@makeswift/runtime 0.0.0-a0e5297 → 0.0.0-a49c3c6

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 (167) hide show
  1. package/dist/Page.cjs.js +215 -0
  2. package/dist/Page.cjs.js.map +1 -0
  3. package/dist/Page.es.js +209 -0
  4. package/dist/Page.es.js.map +1 -0
  5. package/dist/actions.cjs.js +5 -0
  6. package/dist/actions.cjs.js.map +1 -1
  7. package/dist/actions.es.js +5 -1
  8. package/dist/actions.es.js.map +1 -1
  9. package/dist/components.cjs.js +16 -1
  10. package/dist/components.cjs.js.map +1 -1
  11. package/dist/components.es.js +7 -2
  12. package/dist/components.es.js.map +1 -1
  13. package/dist/constants.cjs.js +77 -1
  14. package/dist/constants.cjs.js.map +1 -1
  15. package/dist/constants.es.js +77 -1
  16. package/dist/constants.es.js.map +1 -1
  17. package/dist/control-serialization.cjs.js +61 -5
  18. package/dist/control-serialization.cjs.js.map +1 -1
  19. package/dist/control-serialization.es.js +61 -5
  20. package/dist/control-serialization.es.js.map +1 -1
  21. package/dist/descriptors.cjs.js +8 -0
  22. package/dist/descriptors.cjs.js.map +1 -1
  23. package/dist/descriptors.es.js +6 -1
  24. package/dist/descriptors.es.js.map +1 -1
  25. package/dist/instances.cjs.js +17 -0
  26. package/dist/instances.cjs.js.map +1 -1
  27. package/dist/instances.es.js +17 -1
  28. package/dist/instances.es.js.map +1 -1
  29. package/dist/main.cjs.js +1 -0
  30. package/dist/main.cjs.js.map +1 -1
  31. package/dist/main.es.js +1 -1
  32. package/dist/next.cjs.js +37 -17
  33. package/dist/next.cjs.js.map +1 -1
  34. package/dist/next.es.js +38 -18
  35. package/dist/next.es.js.map +1 -1
  36. package/dist/prop-controllers.cjs.js +1 -0
  37. package/dist/prop-controllers.cjs.js.map +1 -1
  38. package/dist/prop-controllers.es.js +1 -1
  39. package/dist/react-builder-preview.cjs.js +3 -0
  40. package/dist/react-builder-preview.cjs.js.map +1 -1
  41. package/dist/react-builder-preview.es.js +4 -1
  42. package/dist/react-builder-preview.es.js.map +1 -1
  43. package/dist/react-page.cjs.js +1 -1
  44. package/dist/react-page.cjs.js.map +1 -1
  45. package/dist/react-page.es.js +2 -2
  46. package/dist/react-page.es.js.map +1 -1
  47. package/dist/react.cjs.js +6 -1
  48. package/dist/react.cjs.js.map +1 -1
  49. package/dist/react.cjs2.js +2371 -319
  50. package/dist/react.cjs2.js.map +1 -1
  51. package/dist/react.es.js +6 -2
  52. package/dist/react.es.js.map +1 -1
  53. package/dist/react.es2.js +2369 -327
  54. package/dist/react.es2.js.map +1 -1
  55. package/dist/types/api/constants.d.ts.map +1 -1
  56. package/dist/types/api/generated/graphql.d.ts +53 -0
  57. package/dist/types/api/generated/graphql.d.ts.map +1 -1
  58. package/dist/types/api/react.d.ts +25 -4
  59. package/dist/types/api/react.d.ts.map +1 -1
  60. package/dist/types/api/types.d.ts +2 -2
  61. package/dist/types/api/types.d.ts.map +1 -1
  62. package/dist/types/builder/serialization/control-serialization.d.ts +55 -7
  63. package/dist/types/builder/serialization/control-serialization.d.ts.map +1 -1
  64. package/dist/types/components/builtin/Form/Form.d.ts +41 -0
  65. package/dist/types/components/builtin/Form/Form.d.ts.map +1 -0
  66. package/dist/types/components/builtin/Form/components/Field/components/Checkbox/index.d.ts +15 -0
  67. package/dist/types/components/builtin/Form/components/Field/components/Checkbox/index.d.ts.map +1 -0
  68. package/dist/types/components/builtin/Form/components/Field/components/CheckboxTableField/index.d.ts +15 -0
  69. package/dist/types/components/builtin/Form/components/Field/components/CheckboxTableField/index.d.ts.map +1 -0
  70. package/dist/types/components/builtin/Form/components/Field/components/EmailTableField/index.d.ts +11 -0
  71. package/dist/types/components/builtin/Form/components/Field/components/EmailTableField/index.d.ts.map +1 -0
  72. package/dist/types/components/builtin/Form/components/Field/components/Input/index.d.ts +14 -0
  73. package/dist/types/components/builtin/Form/components/Field/components/Input/index.d.ts.map +1 -0
  74. package/dist/types/components/builtin/Form/components/Field/components/Label/index.d.ts +16 -0
  75. package/dist/types/components/builtin/Form/components/Field/components/Label/index.d.ts.map +1 -0
  76. package/dist/types/components/builtin/Form/components/Field/components/LongTextTableField/index.d.ts +10 -0
  77. package/dist/types/components/builtin/Form/components/Field/components/LongTextTableField/index.d.ts.map +1 -0
  78. package/dist/types/components/builtin/Form/components/Field/components/MultipleSelectTableField/index.d.ts +23 -0
  79. package/dist/types/components/builtin/Form/components/Field/components/MultipleSelectTableField/index.d.ts.map +1 -0
  80. package/dist/types/components/builtin/Form/components/Field/components/NumberTableField/index.d.ts +11 -0
  81. package/dist/types/components/builtin/Form/components/Field/components/NumberTableField/index.d.ts.map +1 -0
  82. package/dist/types/components/builtin/Form/components/Field/components/PhoneNumberTableField/index.d.ts +11 -0
  83. package/dist/types/components/builtin/Form/components/Field/components/PhoneNumberTableField/index.d.ts.map +1 -0
  84. package/dist/types/components/builtin/Form/components/Field/components/PlaceholderTableField/index.d.ts +3 -0
  85. package/dist/types/components/builtin/Form/components/Field/components/PlaceholderTableField/index.d.ts.map +1 -0
  86. package/dist/types/components/builtin/Form/components/Field/components/RadioButton/index.d.ts +17 -0
  87. package/dist/types/components/builtin/Form/components/Field/components/RadioButton/index.d.ts.map +1 -0
  88. package/dist/types/components/builtin/Form/components/Field/components/SingleLineTextTableField/index.d.ts +11 -0
  89. package/dist/types/components/builtin/Form/components/Field/components/SingleLineTextTableField/index.d.ts.map +1 -0
  90. package/dist/types/components/builtin/Form/components/Field/components/SingleSelectTableField/components/TableColumnRadioButtonGroup/index.d.ts +23 -0
  91. package/dist/types/components/builtin/Form/components/Field/components/SingleSelectTableField/components/TableColumnRadioButtonGroup/index.d.ts.map +1 -0
  92. package/dist/types/components/builtin/Form/components/Field/components/SingleSelectTableField/components/TableColumnSingleSelect/index.d.ts +19 -0
  93. package/dist/types/components/builtin/Form/components/Field/components/SingleSelectTableField/components/TableColumnSingleSelect/index.d.ts.map +1 -0
  94. package/dist/types/components/builtin/Form/components/Field/components/SingleSelectTableField/index.d.ts +24 -0
  95. package/dist/types/components/builtin/Form/components/Field/components/SingleSelectTableField/index.d.ts.map +1 -0
  96. package/dist/types/components/builtin/Form/components/Field/components/TextArea/index.d.ts +13 -0
  97. package/dist/types/components/builtin/Form/components/Field/components/TextArea/index.d.ts.map +1 -0
  98. package/dist/types/components/builtin/Form/components/Field/components/URLTableField/index.d.ts +11 -0
  99. package/dist/types/components/builtin/Form/components/Field/components/URLTableField/index.d.ts.map +1 -0
  100. package/dist/types/components/builtin/Form/components/Field/index.d.ts +19 -0
  101. package/dist/types/components/builtin/Form/components/Field/index.d.ts.map +1 -0
  102. package/dist/types/components/builtin/Form/components/Field/services/cssField.d.ts +11 -0
  103. package/dist/types/components/builtin/Form/components/Field/services/cssField.d.ts.map +1 -0
  104. package/dist/types/components/builtin/Form/components/Placeholder/index.d.ts +9 -0
  105. package/dist/types/components/builtin/Form/components/Placeholder/index.d.ts.map +1 -0
  106. package/dist/types/components/builtin/Form/components/Spinner/index.d.ts +3 -0
  107. package/dist/types/components/builtin/Form/components/Spinner/index.d.ts.map +1 -0
  108. package/dist/types/components/builtin/Form/context/FormContext.d.ts +32 -0
  109. package/dist/types/components/builtin/Form/context/FormContext.d.ts.map +1 -0
  110. package/dist/types/components/builtin/Form/index.d.ts +2 -0
  111. package/dist/types/components/builtin/Form/index.d.ts.map +1 -0
  112. package/dist/types/components/builtin/Image/Image.d.ts.map +1 -1
  113. package/dist/types/components/builtin/Video/Video.d.ts +15 -0
  114. package/dist/types/components/builtin/Video/Video.d.ts.map +1 -0
  115. package/dist/types/components/builtin/Video/index.d.ts +2 -0
  116. package/dist/types/components/builtin/Video/index.d.ts.map +1 -0
  117. package/dist/types/components/builtin/index.d.ts +1 -0
  118. package/dist/types/components/builtin/index.d.ts.map +1 -1
  119. package/dist/types/components/hooks/index.d.ts +1 -0
  120. package/dist/types/components/hooks/index.d.ts.map +1 -1
  121. package/dist/types/components/hooks/useTable.d.ts +66 -0
  122. package/dist/types/components/hooks/useTable.d.ts.map +1 -0
  123. package/dist/types/components/hooks/useTableFormFieldRefs.d.ts +8 -0
  124. package/dist/types/components/hooks/useTableFormFieldRefs.d.ts.map +1 -0
  125. package/dist/types/components/index.d.ts +2 -0
  126. package/dist/types/components/index.d.ts.map +1 -1
  127. package/dist/types/components/page/BodySnippet.d.ts +7 -0
  128. package/dist/types/components/page/BodySnippet.d.ts.map +1 -0
  129. package/dist/types/components/page/Page.d.ts +45 -0
  130. package/dist/types/components/page/Page.d.ts.map +1 -0
  131. package/dist/types/components/page/index.d.ts +2 -0
  132. package/dist/types/components/page/index.d.ts.map +1 -0
  133. package/dist/types/components/shared/BackgroundsContainer/components/Backgrounds/index.d.ts.map +1 -1
  134. package/dist/types/components/shared/FallbackComponent/FallbackComponent.d.ts +7 -0
  135. package/dist/types/components/shared/FallbackComponent/FallbackComponent.d.ts.map +1 -0
  136. package/dist/types/components/shared/FallbackComponent/index.d.ts +2 -0
  137. package/dist/types/components/shared/FallbackComponent/index.d.ts.map +1 -0
  138. package/dist/types/components/utils/placeholders.d.ts +7 -0
  139. package/dist/types/components/utils/placeholders.d.ts.map +1 -1
  140. package/dist/types/components/utils/queries.d.ts +1 -0
  141. package/dist/types/components/utils/queries.d.ts.map +1 -1
  142. package/dist/types/components/utils/types.d.ts +1 -2
  143. package/dist/types/components/utils/types.d.ts.map +1 -1
  144. package/dist/types/controls.d.ts +4 -0
  145. package/dist/types/controls.d.ts.map +1 -0
  146. package/dist/types/index.d.ts +1 -1
  147. package/dist/types/index.d.ts.map +1 -1
  148. package/dist/types/next.d.ts +5 -4
  149. package/dist/types/next.d.ts.map +1 -1
  150. package/dist/types/prop-controllers/descriptors.d.ts +24 -6
  151. package/dist/types/prop-controllers/descriptors.d.ts.map +1 -1
  152. package/dist/types/prop-controllers/index.d.ts +3 -3
  153. package/dist/types/prop-controllers/index.d.ts.map +1 -1
  154. package/dist/types/prop-controllers/instances.d.ts +36 -4
  155. package/dist/types/prop-controllers/instances.d.ts.map +1 -1
  156. package/dist/types/react.d.ts +1 -1
  157. package/dist/types/react.d.ts.map +1 -1
  158. package/dist/types/runtimes/react.d.ts +3 -3
  159. package/dist/types/runtimes/react.d.ts.map +1 -1
  160. package/dist/types/state/actions.d.ts +9 -1
  161. package/dist/types/state/actions.d.ts.map +1 -1
  162. package/dist/types/state/react-builder-preview.d.ts.map +1 -1
  163. package/package.json +3 -1
  164. package/dist/graphql.cjs.js +0 -162
  165. package/dist/graphql.cjs.js.map +0 -1
  166. package/dist/graphql.es.js +0 -157
  167. package/dist/graphql.es.js.map +0 -1
@@ -30,6 +30,10 @@ 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");
@@ -37,7 +41,11 @@ var reactPage = require("./react-page.cjs.js");
37
41
  var actions = require("./actions.cjs.js");
38
42
  var styled = require("styled-components");
39
43
  var framerMotion = require("framer-motion");
44
+ var ssr = require("@apollo/client/react/ssr");
45
+ var uuid = require("uuid/v4");
40
46
  var jsxRuntime = require("react/jsx-runtime");
47
+ require("html-react-parser");
48
+ require("next/head");
41
49
  var boxModels = require("./box-models.cjs.js");
42
50
  var NextImage = require("next/image");
43
51
  var ReactPlayer = require("react-player");
@@ -47,7 +55,7 @@ var scrollIntoView = require("scroll-into-view-if-needed");
47
55
  var NextLink = require("next/link");
48
56
  var reactUseGesture = require("react-use-gesture");
49
57
  var popcorn = require("@popmotion/popcorn");
50
- var uuid = require("uuid/v4");
58
+ var formik = require("formik");
51
59
  var polished = require("polished");
52
60
  var slate = require("slate");
53
61
  var Hotkeys = require("slate-hotkeys");
@@ -79,12 +87,12 @@ function _interopNamespace(e) {
79
87
  }
80
88
  var React__namespace = /* @__PURE__ */ _interopNamespace(React);
81
89
  var styled__default = /* @__PURE__ */ _interopDefaultLegacy(styled);
90
+ var uuid__default = /* @__PURE__ */ _interopDefaultLegacy(uuid);
82
91
  var NextImage__default = /* @__PURE__ */ _interopDefaultLegacy(NextImage);
83
92
  var ReactPlayer__default = /* @__PURE__ */ _interopDefaultLegacy(ReactPlayer);
84
93
  var ColorHelper__default = /* @__PURE__ */ _interopDefaultLegacy(ColorHelper);
85
94
  var scrollIntoView__default = /* @__PURE__ */ _interopDefaultLegacy(scrollIntoView);
86
95
  var NextLink__default = /* @__PURE__ */ _interopDefaultLegacy(NextLink);
87
- var uuid__default = /* @__PURE__ */ _interopDefaultLegacy(uuid);
88
96
  var Hotkeys__default = /* @__PURE__ */ _interopDefaultLegacy(Hotkeys);
89
97
  var ipsum__default = /* @__PURE__ */ _interopDefaultLegacy(ipsum);
90
98
  var Lists__default = /* @__PURE__ */ _interopDefaultLegacy(Lists);
@@ -97,7 +105,7 @@ const PlaceholderBase$1 = styled__default["default"].div`
97
105
  hide
98
106
  }) => hide === true ? "hidden" : "initial"};
99
107
  `;
100
- var Placeholder$1 = React.forwardRef(function Placeholder2(_a, ref) {
108
+ var Placeholder$2 = React.forwardRef(function Placeholder2(_a, ref) {
101
109
  var _b = _a, {
102
110
  hide = false
103
111
  } = _b, restOfProps = __objRest(_b, [
@@ -211,21 +219,164 @@ const TYPOGRAPHIES_BY_ID = client.gql`
211
219
 
212
220
  ${TYPOGRAPHY_FRAGMENT}
213
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
+ `;
214
246
  function isNonNullable(value) {
215
247
  return value != null;
216
248
  }
217
- 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
+ defaultRootElements: /* @__PURE__ */ new Map([[id, element]]),
354
+ children: /* @__PURE__ */ jsxRuntime.jsx(DocumentReference, {
355
+ documentReference: reactPage.createDocumentReference(id)
356
+ })
357
+ })
358
+ }));
359
+ return this.apolloClient.cache.extract();
360
+ }
361
+ }
362
+ const Context$2 = React.createContext(void 0);
218
363
  function useQuery(query, options) {
219
- const client$1 = React.useContext(Context$1);
364
+ const client$1 = React.useContext(Context$2);
220
365
  return client.useQuery(query, __spreadValues({
221
- client: client$1
366
+ client: client$1 == null ? void 0 : client$1.apolloClient
222
367
  }, options));
223
368
  }
224
- function ApolloProvider({
369
+ function useMutation(mutation, options) {
370
+ const client$1 = React.useContext(Context$2);
371
+ return client.useMutation(mutation, __spreadValues({
372
+ client: client$1 == null ? void 0 : client$1.apolloClient
373
+ }, options));
374
+ }
375
+ function MakeswiftProvider({
225
376
  client: client2,
226
377
  children
227
378
  }) {
228
- return /* @__PURE__ */ jsxRuntime.jsx(Context$1.Provider, {
379
+ return /* @__PURE__ */ jsxRuntime.jsx(Context$2.Provider, {
229
380
  value: client2,
230
381
  children
231
382
  });
@@ -513,6 +664,12 @@ function usePage(pageId) {
513
664
  const { pagePathnamesById: [page] = [] } = data;
514
665
  return page;
515
666
  }
667
+ function useTable(tableId) {
668
+ return useQuery(TABLE_BY_ID, {
669
+ skip: tableId == null,
670
+ variables: { id: tableId }
671
+ });
672
+ }
516
673
  const defaultExitedProps = {
517
674
  opacity: 0,
518
675
  x: 0,
@@ -983,8 +1140,8 @@ function getScrollParent(element) {
983
1140
  return element;
984
1141
  return getScrollParent(parentElement);
985
1142
  }
986
- function Parallax(_g) {
987
- var _h = _g, {
1143
+ function Parallax(_g2) {
1144
+ var _h = _g2, {
988
1145
  strength,
989
1146
  children
990
1147
  } = _h, rest = __objRest(_h, [
@@ -1070,7 +1227,7 @@ function Parallax(_g) {
1070
1227
  children: children(getProps)
1071
1228
  }));
1072
1229
  }
1073
- const Container$8 = styled__default["default"].div`
1230
+ const Container$d = styled__default["default"].div`
1074
1231
  position: absolute;
1075
1232
  top: 0;
1076
1233
  left: 0;
@@ -1124,7 +1281,7 @@ function BackgroundVideo({
1124
1281
  }, [aspectRatio, zoom]);
1125
1282
  if (!ReactPlayer__default["default"].canPlay(url))
1126
1283
  return /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, {});
1127
- return /* @__PURE__ */ jsxRuntime.jsxs(Container$8, {
1284
+ return /* @__PURE__ */ jsxRuntime.jsxs(Container$d, {
1128
1285
  ref: container,
1129
1286
  children: [container.current && /* @__PURE__ */ jsxRuntime.jsx(ReactPlayer__default["default"], {
1130
1287
  url,
@@ -1203,10 +1360,10 @@ const AbsoluteFill = styled__default["default"].div`
1203
1360
  right: 0;
1204
1361
  bottom: 0;
1205
1362
  `;
1206
- const Container$7 = styled__default["default"](AbsoluteFill)`
1363
+ const Container$c = styled__default["default"](AbsoluteFill)`
1207
1364
  border-radius: inherit;
1208
1365
  `;
1209
- const BackgroundsContainer$1 = styled__default["default"](Container$7)`
1366
+ const BackgroundsContainer$1 = styled__default["default"](Container$c)`
1210
1367
  overflow: hidden;
1211
1368
  ${(p) => cssMediaRules([p.visibility], ([visibility]) => styled.css`
1212
1369
  display: ${visibility === true ? "block" : "none"};
@@ -1215,6 +1372,9 @@ const BackgroundsContainer$1 = styled__default["default"](Container$7)`
1215
1372
  function Backgrounds({
1216
1373
  backgrounds
1217
1374
  }) {
1375
+ const isPrefetching = useIsPrefetching();
1376
+ if (isPrefetching)
1377
+ return /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, {});
1218
1378
  if (backgrounds == null)
1219
1379
  return /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, {});
1220
1380
  return /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, {
@@ -1230,7 +1390,7 @@ function Backgrounds({
1230
1390
  visibility,
1231
1391
  children: [...value].reverse().map((bg) => {
1232
1392
  if (bg.type === "color") {
1233
- return /* @__PURE__ */ jsxRuntime.jsx(Container$7, {
1393
+ return /* @__PURE__ */ jsxRuntime.jsx(Container$c, {
1234
1394
  style: {
1235
1395
  backgroundColor: getColor(bg.payload)
1236
1396
  }
@@ -1266,7 +1426,7 @@ function Backgrounds({
1266
1426
  }
1267
1427
  return /* @__PURE__ */ jsxRuntime.jsx(Parallax, {
1268
1428
  strength: parallax,
1269
- children: (getParallaxProps) => /* @__PURE__ */ jsxRuntime.jsx(Container$7, __spreadValues({}, getParallaxProps({
1429
+ children: (getParallaxProps) => /* @__PURE__ */ jsxRuntime.jsx(Container$c, __spreadValues({}, getParallaxProps({
1270
1430
  style: {
1271
1431
  backgroundImage: publicUrl != null ? `url('${publicUrl}')` : void 0,
1272
1432
  backgroundPosition,
@@ -1284,7 +1444,7 @@ function Backgrounds({
1284
1444
  isRadial
1285
1445
  } = bg.payload;
1286
1446
  const gradient = `${getStopsStyle(stops)}`;
1287
- return /* @__PURE__ */ jsxRuntime.jsx(Container$7, {
1447
+ return /* @__PURE__ */ jsxRuntime.jsx(Container$c, {
1288
1448
  style: {
1289
1449
  background: isRadial ? `radial-gradient(${gradient})` : `linear-gradient(${angle}rad, ${gradient})`
1290
1450
  }
@@ -1301,7 +1461,7 @@ function Backgrounds({
1301
1461
  } = bg.payload;
1302
1462
  return /* @__PURE__ */ jsxRuntime.jsx(Parallax, {
1303
1463
  strength: parallax,
1304
- children: (getParallaxProps) => /* @__PURE__ */ jsxRuntime.jsx(Container$7, __spreadProps(__spreadValues({}, getParallaxProps({})), {
1464
+ children: (getParallaxProps) => /* @__PURE__ */ jsxRuntime.jsx(Container$c, __spreadProps(__spreadValues({}, getParallaxProps({})), {
1305
1465
  children: /* @__PURE__ */ jsxRuntime.jsx(BackgroundVideo, {
1306
1466
  url,
1307
1467
  zoom,
@@ -1369,7 +1529,7 @@ const Grid$1 = styled__default["default"](framerMotion.motion.div)`
1369
1529
  alignContent
1370
1530
  }))}
1371
1531
  `;
1372
- const GridItem$1 = styled__default["default"](framerMotion.motion.div)`
1532
+ const GridItem$2 = styled__default["default"](framerMotion.motion.div)`
1373
1533
  display: flex;
1374
1534
 
1375
1535
  /* IE11 doesn't recognize space-between and treats it as stretch, so we fall back to flex-start */
@@ -1480,7 +1640,7 @@ const Box = React.forwardRef(function Box2({
1480
1640
  animate: animate == null ? void 0 : animate.parent,
1481
1641
  initial: initial == null ? void 0 : initial.parent,
1482
1642
  transition: transition == null ? void 0 : transition.parent,
1483
- children: children && children.elements.length > 0 ? children.elements.map((child, index) => /* @__PURE__ */ jsxRuntime.jsx(GridItem$1, {
1643
+ children: children && children.elements.length > 0 ? children.elements.map((child, index) => /* @__PURE__ */ jsxRuntime.jsx(GridItem$2, {
1484
1644
  grid: children.columns,
1485
1645
  index,
1486
1646
  columnGap,
@@ -1491,13 +1651,13 @@ const Box = React.forwardRef(function Box2({
1491
1651
  children: /* @__PURE__ */ jsxRuntime.jsx(Element$1, {
1492
1652
  element: child
1493
1653
  })
1494
- }, child.key)) : /* @__PURE__ */ jsxRuntime.jsx(Placeholder$1, {
1654
+ }, child.key)) : /* @__PURE__ */ jsxRuntime.jsx(Placeholder$2, {
1495
1655
  hide: hidePlaceholder
1496
1656
  })
1497
1657
  })
1498
1658
  }, key == null ? void 0 : key.container);
1499
1659
  });
1500
- function registerComponent$a(runtime) {
1660
+ function registerComponent$c(runtime) {
1501
1661
  return runtime.registerComponent(Box, {
1502
1662
  type: "./components/Box/index.js",
1503
1663
  label: "Box",
@@ -1762,7 +1922,7 @@ const Link = React.forwardRef(function Link2(_k, ref) {
1762
1922
  }))
1763
1923
  });
1764
1924
  });
1765
- const StyledButton = styled__default["default"](Link)`
1925
+ const StyledButton$1 = styled__default["default"](Link)`
1766
1926
  display: table;
1767
1927
  border: 0;
1768
1928
  outline: 0;
@@ -1954,7 +2114,7 @@ const StyledButton = styled__default["default"](Link)`
1954
2114
  })}
1955
2115
  ${cssTextStyle()}
1956
2116
  `;
1957
- const Button = React.forwardRef(function Button2(_m, ref) {
2117
+ const Button$1 = React.forwardRef(function Button2(_m, ref) {
1958
2118
  var _n = _m, {
1959
2119
  id,
1960
2120
  children,
@@ -1980,7 +2140,7 @@ const Button = React.forwardRef(function Button2(_m, ref) {
1980
2140
  "width",
1981
2141
  "margin"
1982
2142
  ]);
1983
- return /* @__PURE__ */ jsxRuntime.jsx(StyledButton, __spreadProps(__spreadValues({}, restOfProps), {
2143
+ return /* @__PURE__ */ jsxRuntime.jsx(StyledButton$1, __spreadProps(__spreadValues({}, restOfProps), {
1984
2144
  ref,
1985
2145
  id,
1986
2146
  color: useColor(color),
@@ -1995,8 +2155,8 @@ const Button = React.forwardRef(function Button2(_m, ref) {
1995
2155
  children: children == null ? "Button Text" : children
1996
2156
  }));
1997
2157
  });
1998
- function registerComponent$9(runtime) {
1999
- return runtime.registerComponent(Button, {
2158
+ function registerComponent$b(runtime) {
2159
+ return runtime.registerComponent(Button$1, {
2000
2160
  type: "./components/Button/index.js",
2001
2161
  label: "Button",
2002
2162
  props: {
@@ -2091,6 +2251,10 @@ const placeholders = {
2091
2251
  image: {
2092
2252
  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",
2093
2253
  dimensions: { width: 360, height: 240 }
2254
+ },
2255
+ video: {
2256
+ 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",
2257
+ dimensions: { width: 712, height: 400 }
2094
2258
  }
2095
2259
  };
2096
2260
  function loadImage(src) {
@@ -2150,6 +2314,7 @@ const ImageComponent = React.forwardRef(function Image2({
2150
2314
  const dataDimensions = (fileData == null ? void 0 : fileData.publicUrl) ? fileData == null ? void 0 : fileData.dimensions : placeholder2.dimensions;
2151
2315
  const [measuredDimensions, setMeasuredDimensions] = React.useState(null);
2152
2316
  const isInBuilder = useIsInBuilder();
2317
+ const isPrefetching = useIsPrefetching();
2153
2318
  React.useEffect(() => {
2154
2319
  if (dataDimensions)
2155
2320
  return;
@@ -2169,6 +2334,8 @@ const ImageComponent = React.forwardRef(function Image2({
2169
2334
  const dimensions = dataDimensions != null ? dataDimensions : measuredDimensions;
2170
2335
  if (!dimensions)
2171
2336
  return null;
2337
+ if (isPrefetching)
2338
+ return null;
2172
2339
  return /* @__PURE__ */ jsxRuntime.jsx(ImageContainer, {
2173
2340
  as: link ? Link : "div",
2174
2341
  link,
@@ -2196,7 +2363,7 @@ const ImageComponent = React.forwardRef(function Image2({
2196
2363
  })
2197
2364
  });
2198
2365
  });
2199
- function registerComponent$8(runtime) {
2366
+ function registerComponent$a(runtime) {
2200
2367
  return runtime.registerComponent(ImageComponent, {
2201
2368
  type: "./components/Image/index.js",
2202
2369
  label: "Image",
@@ -2245,7 +2412,7 @@ const RightChevron = () => /* @__PURE__ */ jsxRuntime.jsx("svg", {
2245
2412
  strokeWidth: "2"
2246
2413
  })
2247
2414
  });
2248
- const Container$6 = styled__default["default"].div`
2415
+ const Container$b = styled__default["default"].div`
2249
2416
  position: relative;
2250
2417
  height: 100%;
2251
2418
  `;
@@ -2545,7 +2712,7 @@ const Carousel = React.forwardRef(function Carousel2({
2545
2712
  break;
2546
2713
  }
2547
2714
  },
2548
- children: [/* @__PURE__ */ jsxRuntime.jsxs(Container$6, {
2715
+ children: [/* @__PURE__ */ jsxRuntime.jsxs(Container$b, {
2549
2716
  children: [/* @__PURE__ */ jsxRuntime.jsx(ClipMask, {
2550
2717
  children: /* @__PURE__ */ jsxRuntime.jsx(Page, __spreadProps(__spreadValues({}, bindPage()), {
2551
2718
  animate: animation,
@@ -2621,7 +2788,7 @@ const Carousel = React.forwardRef(function Carousel2({
2621
2788
  })]
2622
2789
  });
2623
2790
  });
2624
- function registerComponent$7(runtime) {
2791
+ function registerComponent$9(runtime) {
2625
2792
  return runtime.registerComponent(Carousel, {
2626
2793
  type: "./components/Carousel/index.js",
2627
2794
  label: "Carousel",
@@ -2741,14 +2908,14 @@ const Block$1 = styled__default["default"].div`
2741
2908
  padding: 0.5em;
2742
2909
  font-size: 1em;
2743
2910
  `;
2744
- const Label = styled__default["default"].div`
2911
+ const Label$3 = styled__default["default"].div`
2745
2912
  margin-top: 0.25em;
2746
2913
  `;
2747
2914
  const Segment = styled__default["default"].div`
2748
2915
  flex: 1;
2749
2916
  text-align: center;
2750
2917
  `;
2751
- const Container$5 = styled__default["default"].div`
2918
+ const Container$a = styled__default["default"].div`
2752
2919
  display: flex;
2753
2920
  ${cssWidth("560px")}
2754
2921
  ${cssMargin()}
@@ -2758,7 +2925,7 @@ const Container$5 = styled__default["default"].div`
2758
2925
  return styled.css`
2759
2926
  font-size: 18px;
2760
2927
 
2761
- ${Label} {
2928
+ ${Label$3} {
2762
2929
  font-size: 14px;
2763
2930
  }
2764
2931
  `;
@@ -2766,7 +2933,7 @@ const Container$5 = styled__default["default"].div`
2766
2933
  return styled.css`
2767
2934
  font-size: 32px;
2768
2935
 
2769
- ${Label} {
2936
+ ${Label$3} {
2770
2937
  font-size: 18px;
2771
2938
  }
2772
2939
  `;
@@ -2774,7 +2941,7 @@ const Container$5 = styled__default["default"].div`
2774
2941
  return styled.css`
2775
2942
  font-size: 24px;
2776
2943
 
2777
- ${Label} {
2944
+ ${Label$3} {
2778
2945
  font-size: 16px;
2779
2946
  }
2780
2947
  `;
@@ -2911,7 +3078,7 @@ const Container$5 = styled__default["default"].div`
2911
3078
  })}
2912
3079
  }
2913
3080
 
2914
- ${Label} {
3081
+ ${Label$3} {
2915
3082
  ${(p) => cssMediaRules([p.labelColor, p.labelFont], ([labelColor = {
2916
3083
  swatch: {
2917
3084
  hue: 0,
@@ -2988,7 +3155,7 @@ const Countdown = React.forwardRef(function Countdown2({
2988
3155
  }, 1e3);
2989
3156
  return () => clearInterval(intervalId);
2990
3157
  }, [date]);
2991
- return /* @__PURE__ */ jsxRuntime.jsxs(Container$5, {
3158
+ return /* @__PURE__ */ jsxRuntime.jsxs(Container$a, {
2992
3159
  ref,
2993
3160
  id,
2994
3161
  width,
@@ -3007,7 +3174,7 @@ const Countdown = React.forwardRef(function Countdown2({
3007
3174
  children: /* @__PURE__ */ jsxRuntime.jsx("span", {
3008
3175
  children: days
3009
3176
  })
3010
- }), /* @__PURE__ */ jsxRuntime.jsx(Label, {
3177
+ }), /* @__PURE__ */ jsxRuntime.jsx(Label$3, {
3011
3178
  children: daysLabel == null ? "Days" : daysLabel
3012
3179
  })]
3013
3180
  }), /* @__PURE__ */ jsxRuntime.jsxs(Segment, {
@@ -3015,7 +3182,7 @@ const Countdown = React.forwardRef(function Countdown2({
3015
3182
  children: /* @__PURE__ */ jsxRuntime.jsx("span", {
3016
3183
  children: hours
3017
3184
  })
3018
- }), /* @__PURE__ */ jsxRuntime.jsx(Label, {
3185
+ }), /* @__PURE__ */ jsxRuntime.jsx(Label$3, {
3019
3186
  children: hoursLabel == null ? "Hours" : hoursLabel
3020
3187
  })]
3021
3188
  }), /* @__PURE__ */ jsxRuntime.jsxs(Segment, {
@@ -3023,7 +3190,7 @@ const Countdown = React.forwardRef(function Countdown2({
3023
3190
  children: /* @__PURE__ */ jsxRuntime.jsx("span", {
3024
3191
  children: minutes
3025
3192
  })
3026
- }), /* @__PURE__ */ jsxRuntime.jsx(Label, {
3193
+ }), /* @__PURE__ */ jsxRuntime.jsx(Label$3, {
3027
3194
  children: minutesLabel == null ? "Minutes" : minutesLabel
3028
3195
  })]
3029
3196
  }), /* @__PURE__ */ jsxRuntime.jsxs(Segment, {
@@ -3031,13 +3198,13 @@ const Countdown = React.forwardRef(function Countdown2({
3031
3198
  children: /* @__PURE__ */ jsxRuntime.jsx("span", {
3032
3199
  children: seconds
3033
3200
  })
3034
- }), /* @__PURE__ */ jsxRuntime.jsx(Label, {
3201
+ }), /* @__PURE__ */ jsxRuntime.jsx(Label$3, {
3035
3202
  children: secondsLabel == null ? "Seconds" : secondsLabel
3036
3203
  })]
3037
3204
  })]
3038
3205
  });
3039
3206
  });
3040
- function registerComponent$6(runtime) {
3207
+ function registerComponent$8(runtime) {
3041
3208
  return runtime.registerComponent(Countdown, {
3042
3209
  type: "./components/Countdown/index.js",
3043
3210
  label: "Countdown",
@@ -3173,7 +3340,7 @@ const IE11MinHeightContainer = styled__default["default"].div`
3173
3340
  ${cssWidth()}
3174
3341
  ${cssMargin()}
3175
3342
  `;
3176
- const Container$4 = styled__default["default"].div`
3343
+ const Container$9 = styled__default["default"].div`
3177
3344
  display: flex;
3178
3345
  flex-direction: column;
3179
3346
  justify-content: center;
@@ -3232,7 +3399,7 @@ const Divider = React.forwardRef(function Divider2({
3232
3399
  id,
3233
3400
  width,
3234
3401
  margin,
3235
- children: /* @__PURE__ */ jsxRuntime.jsx(Container$4, {
3402
+ children: /* @__PURE__ */ jsxRuntime.jsx(Container$9, {
3236
3403
  children: /* @__PURE__ */ jsxRuntime.jsx(Line, {
3237
3404
  variant,
3238
3405
  thickness,
@@ -3241,7 +3408,7 @@ const Divider = React.forwardRef(function Divider2({
3241
3408
  })
3242
3409
  });
3243
3410
  });
3244
- function registerComponent$5(runtime) {
3411
+ function registerComponent$7(runtime) {
3245
3412
  return runtime.registerComponent(Divider, {
3246
3413
  type: "./components/Divider/index.js",
3247
3414
  label: "Divider",
@@ -3291,7 +3458,7 @@ function registerComponent$5(runtime) {
3291
3458
  }
3292
3459
  });
3293
3460
  }
3294
- const Container$3 = styled__default["default"].div`
3461
+ const Container$8 = styled__default["default"].div`
3295
3462
  min-height: 15px;
3296
3463
  ${cssWidth()}
3297
3464
  ${cssMargin()}
@@ -3371,7 +3538,7 @@ const Embed = React.forwardRef(function Embed2({
3371
3538
  }, [container, html]);
3372
3539
  if (shouldRender === false)
3373
3540
  return null;
3374
- return /* @__PURE__ */ jsxRuntime.jsx(Container$3, {
3541
+ return /* @__PURE__ */ jsxRuntime.jsx(Container$8, {
3375
3542
  ref: setContainer,
3376
3543
  id,
3377
3544
  margin,
@@ -3381,7 +3548,7 @@ const Embed = React.forwardRef(function Embed2({
3381
3548
  }
3382
3549
  });
3383
3550
  });
3384
- function registerComponent$4(runtime) {
3551
+ function registerComponent$6(runtime) {
3385
3552
  return runtime.registerComponent(Embed, {
3386
3553
  type: "./components/Embed/index.js",
3387
3554
  label: "Embed",
@@ -3397,9 +3564,9 @@ function registerComponent$4(runtime) {
3397
3564
  }
3398
3565
  });
3399
3566
  }
3400
- var _path$r;
3401
- function _extends$r() {
3402
- _extends$r = Object.assign || function(target) {
3567
+ var _path$t;
3568
+ function _extends$u() {
3569
+ _extends$u = Object.assign || function(target) {
3403
3570
  for (var i = 1; i < arguments.length; i++) {
3404
3571
  var source = arguments[i];
3405
3572
  for (var key in source) {
@@ -3410,106 +3577,1884 @@ function _extends$r() {
3410
3577
  }
3411
3578
  return target;
3412
3579
  };
3413
- return _extends$r.apply(this, arguments);
3580
+ return _extends$u.apply(this, arguments);
3414
3581
  }
3415
- var SvgMobileMenu28 = function SvgMobileMenu282(props) {
3416
- return /* @__PURE__ */ React__namespace.createElement("svg", _extends$r({
3417
- xmlns: "http://www.w3.org/2000/svg",
3418
- width: 28,
3419
- height: 28
3420
- }, props), _path$r || (_path$r = /* @__PURE__ */ React__namespace.createElement("path", {
3421
- 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"
3582
+ var SvgCheck12 = function SvgCheck122(props) {
3583
+ return /* @__PURE__ */ React__namespace.createElement("svg", _extends$u({
3584
+ width: 12,
3585
+ height: 12,
3586
+ xmlns: "http://www.w3.org/2000/svg"
3587
+ }, props), _path$t || (_path$t = /* @__PURE__ */ React__namespace.createElement("path", {
3588
+ fillRule: "evenodd",
3589
+ clipRule: "evenodd",
3590
+ 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"
3422
3591
  })));
3423
3592
  };
3424
- const GutterContainer = styled__default["default"].div`
3425
- ${(p) => cssMediaRules([p.gutter], ([gutter = {
3426
- value: 0,
3427
- unit: "px"
3428
- }]) => styled.css`
3429
- padding-left: ${p.first ? "0px" : `${gutter.value / 2}${gutter.unit}`};
3430
- padding-right: ${p.last ? "0px" : `${gutter.value / 2}${gutter.unit}`};
3593
+ const Shapes = Object.freeze({
3594
+ SQUARE: "square",
3595
+ ROUNDED: "rounded",
3596
+ PILL: "pill"
3597
+ });
3598
+ const Sizes = Object.freeze({
3599
+ SMALL: "small",
3600
+ MEDIUM: "medium",
3601
+ LARGE: "large"
3602
+ });
3603
+ const Contrasts = Object.freeze({
3604
+ LIGHT: "light",
3605
+ DARK: "dark"
3606
+ });
3607
+ const Context$1 = React.createContext({});
3608
+ function useFormContext() {
3609
+ return React.useContext(Context$1);
3610
+ }
3611
+ const { Provider } = Context$1;
3612
+ function getSizeHeight$2(size) {
3613
+ switch (size) {
3614
+ case Sizes.SMALL:
3615
+ return 30;
3616
+ case Sizes.MEDIUM:
3617
+ return 38;
3618
+ case Sizes.LARGE:
3619
+ return 48;
3620
+ default:
3621
+ throw new Error(`Invalid form size "${size}"`);
3622
+ }
3623
+ }
3624
+ function getSizeHorizontalPadding(size) {
3625
+ switch (size) {
3626
+ case Sizes.SMALL:
3627
+ return 8;
3628
+ case Sizes.MEDIUM:
3629
+ return 12;
3630
+ case Sizes.LARGE:
3631
+ return 16;
3632
+ default:
3633
+ throw new Error(`Invalid form size "${size}"`);
3634
+ }
3635
+ }
3636
+ function getSizeVerticalPadding(size) {
3637
+ switch (size) {
3638
+ case Sizes.SMALL:
3639
+ return 3;
3640
+ case Sizes.MEDIUM:
3641
+ return 7;
3642
+ case Sizes.LARGE:
3643
+ return 11;
3644
+ default:
3645
+ throw new Error(`Invalid form size "${size}"`);
3646
+ }
3647
+ }
3648
+ function getShapeBorderRadius(shape) {
3649
+ switch (shape) {
3650
+ case Shapes.SQUARE:
3651
+ return 0;
3652
+ case Shapes.ROUNDED:
3653
+ return 4;
3654
+ case Shapes.PILL:
3655
+ return 500;
3656
+ default:
3657
+ throw new Error(`Invalid form shape "${shape}"`);
3658
+ }
3659
+ }
3660
+ function getContrastBorderColor(contrast, error) {
3661
+ switch (contrast) {
3662
+ case Contrasts.LIGHT:
3663
+ return error ? "rgba(255, 0, 0, 0.7)" : "rgba(0, 0, 0, 0.25)";
3664
+ case Contrasts.DARK:
3665
+ return error ? "rgba(255, 0, 0, 0.7)" : "rgba(255, 255, 255, 0.6)";
3666
+ default:
3667
+ throw new Error(`Invalid form contrast "${contrast}"`);
3668
+ }
3669
+ }
3670
+ function getContrastBackgroundColor(contrast) {
3671
+ switch (contrast) {
3672
+ case Contrasts.LIGHT:
3673
+ return "white";
3674
+ case Contrasts.DARK:
3675
+ return "rgba(0, 0, 0, 0.7)";
3676
+ default:
3677
+ throw new Error(`Invalid form contrast "${contrast}"`);
3678
+ }
3679
+ }
3680
+ function getContrastColor$1(contrast) {
3681
+ switch (contrast) {
3682
+ case Contrasts.LIGHT:
3683
+ return "rgba(0, 0, 0, 0.95)";
3684
+ case Contrasts.DARK:
3685
+ return "white";
3686
+ default:
3687
+ throw new Error(`Invalid form contrast "${contrast}"`);
3688
+ }
3689
+ }
3690
+ function getContrastPlaceholderColor(contrast) {
3691
+ switch (contrast) {
3692
+ case Contrasts.LIGHT:
3693
+ return "rgba(0, 0, 0, 0.3)";
3694
+ case Contrasts.DARK:
3695
+ return "rgba(255,255,255,0.3)";
3696
+ default:
3697
+ throw new Error(`Invalid form contrast "${contrast}"`);
3698
+ }
3699
+ }
3700
+ function cssField() {
3701
+ return styled.css`
3702
+ display: block;
3703
+ width: 100%;
3704
+ outline: none;
3705
+ border-width: 1px;
3706
+ border-style: solid;
3707
+ transition: border-color 200ms;
3708
+ ${(props) => cssMediaRules([props.shape, props.size, props.contrast, props.brandColor], ([
3709
+ shape = Shapes.ROUNDED,
3710
+ size = Sizes.MEDIUM,
3711
+ contrast = Contrasts.LIGHT,
3712
+ brandColor = { swatch: { hue: 0, saturation: 0, lightness: 0 }, alpha: 1 }
3713
+ ]) => styled.css`
3714
+ padding: ${getSizeVerticalPadding(size)}px ${getSizeHorizontalPadding(size)}px;
3715
+ border-radius: ${getShapeBorderRadius(shape)}px;
3716
+ border-color: ${getContrastBorderColor(contrast, props.error)};
3717
+ color: ${getContrastColor$1(contrast)};
3718
+ background-color: ${getContrastBackgroundColor(contrast)};
3719
+
3720
+ :focus,
3721
+ :focus-within {
3722
+ border-color: ${colorToString(brandColor)};
3723
+ }
3724
+
3725
+ ::placeholder {
3726
+ color: ${getContrastPlaceholderColor(contrast)};
3727
+ }
3728
+ `)}
3729
+ `;
3730
+ }
3731
+ function getSizeHeight$1(size) {
3732
+ switch (size) {
3733
+ case Sizes.SMALL:
3734
+ return 36;
3735
+ case Sizes.MEDIUM:
3736
+ return 42;
3737
+ case Sizes.LARGE:
3738
+ return 48;
3739
+ default:
3740
+ throw new Error(`Invalid form size "${size}"`);
3741
+ }
3742
+ }
3743
+ const Base$2 = styled__default["default"].input`
3744
+ ${cssField()}
3745
+ ${(props) => cssMediaRules([props.size], ([size = Sizes.MEDIUM]) => styled.css`
3746
+ min-height: ${getSizeHeight$1(size)}px;
3747
+ max-height: ${getSizeHeight$1(size)}px;
3431
3748
  `)}
3432
3749
  `;
3433
- const PlaceholderLink$1 = styled__default["default"].div`
3434
- width: ${(props) => props.width}px;
3435
- height: ${(props) => props.button === true ? 32 : 8}px;
3750
+ var Input$2 = React.forwardRef(function Input2(_o, ref) {
3751
+ var _p = _o, {
3752
+ error = false,
3753
+ form
3754
+ } = _p, restOfProps = __objRest(_p, [
3755
+ "error",
3756
+ "form"
3757
+ ]);
3758
+ const {
3759
+ shape,
3760
+ size,
3761
+ contrast,
3762
+ brandColor
3763
+ } = useFormContext();
3764
+ return /* @__PURE__ */ jsxRuntime.jsx(Base$2, __spreadProps(__spreadValues({}, restOfProps), {
3765
+ ref,
3766
+ error,
3767
+ shape,
3768
+ size,
3769
+ contrast,
3770
+ brandColor
3771
+ }));
3772
+ });
3773
+ const Container$7 = styled__default["default"].div`
3774
+ display: flex;
3775
+ flex-direction: column;
3776
+ ${cssWidth()};
3777
+ ${cssMargin()};
3778
+ `;
3779
+ const Label$2 = styled__default["default"].div`
3780
+ max-width: 120px;
3781
+ min-width: 60px;
3782
+ height: 8px;
3783
+ border-radius: 2px;
3436
3784
  background-color: #a1a8c2;
3437
- border-radius: ${(props) => props.button === true ? 6 : 2}px;
3438
3785
  opacity: 0.4;
3786
+ margin-bottom: 8px;
3439
3787
  `;
3440
- const links$1 = [{
3441
- width: 50
3442
- }, {
3443
- width: 70
3444
- }, {
3445
- width: 60
3446
- }, {
3447
- width: 80,
3448
- button: true
3449
- }];
3450
- function LinksPlaceholder({
3451
- gutter
3452
- }) {
3453
- return /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, {
3454
- children: links$1.map((link, i) => /* @__PURE__ */ jsxRuntime.jsx(GutterContainer, {
3455
- gutter,
3456
- first: i === 0,
3457
- last: i === links$1.length - 1,
3458
- children: /* @__PURE__ */ jsxRuntime.jsx(PlaceholderLink$1, __spreadValues({}, link))
3459
- }, i))
3788
+ const Input$1 = styled__default["default"].div`
3789
+ min-width: 80px;
3790
+ height: 32px;
3791
+ border-radius: 4px;
3792
+ border-width: 2px;
3793
+ border-style: solid;
3794
+ border-color: #a1a8c2;
3795
+ opacity: 0.4;
3796
+ `;
3797
+ const Button = styled__default["default"].div`
3798
+ min-width: 140px;
3799
+ height: 32px;
3800
+ border-radius: 4px;
3801
+ background-color: #a1a8c2;
3802
+ opacity: 0.4;
3803
+ `;
3804
+ var Placeholder$1 = React.forwardRef(function Placeholder3({
3805
+ width,
3806
+ margin
3807
+ }, ref) {
3808
+ return /* @__PURE__ */ jsxRuntime.jsxs(Container$7, {
3809
+ ref,
3810
+ width,
3811
+ margin,
3812
+ children: [/* @__PURE__ */ jsxRuntime.jsxs("div", {
3813
+ style: {
3814
+ display: "flex",
3815
+ flexDirection: "column",
3816
+ marginBottom: 16
3817
+ },
3818
+ children: [/* @__PURE__ */ jsxRuntime.jsx(Label$2, {}), /* @__PURE__ */ jsxRuntime.jsx(Input$1, {})]
3819
+ }), /* @__PURE__ */ jsxRuntime.jsxs("div", {
3820
+ style: {
3821
+ display: "flex",
3822
+ flexDirection: "column",
3823
+ marginBottom: 16
3824
+ },
3825
+ children: [/* @__PURE__ */ jsxRuntime.jsx(Label$2, {}), /* @__PURE__ */ jsxRuntime.jsx(Input$1, {})]
3826
+ }), /* @__PURE__ */ jsxRuntime.jsx("div", {
3827
+ style: {
3828
+ display: "flex",
3829
+ flexDirection: "column",
3830
+ justifyContent: "flex-end"
3831
+ },
3832
+ children: /* @__PURE__ */ jsxRuntime.jsx(Button, {})
3833
+ })]
3460
3834
  });
3835
+ });
3836
+ function getSizeHeight(size) {
3837
+ switch (size) {
3838
+ case Sizes.SMALL:
3839
+ return 14;
3840
+ case Sizes.MEDIUM:
3841
+ return 18;
3842
+ case Sizes.LARGE:
3843
+ return 22;
3844
+ default:
3845
+ throw new Error(`Invalid form size "${size}"`);
3846
+ }
3461
3847
  }
3462
- var _path$q;
3463
- function _extends$q() {
3464
- _extends$q = Object.assign || function(target) {
3465
- for (var i = 1; i < arguments.length; i++) {
3466
- var source = arguments[i];
3467
- for (var key in source) {
3468
- if (Object.prototype.hasOwnProperty.call(source, key)) {
3469
- target[key] = source[key];
3470
- }
3471
- }
3472
- }
3473
- return target;
3474
- };
3475
- return _extends$q.apply(this, arguments);
3848
+ function getContrastColor(contrast) {
3849
+ switch (contrast) {
3850
+ case Contrasts.LIGHT:
3851
+ return "rgba(0, 0, 0, 0.8)";
3852
+ case Contrasts.DARK:
3853
+ return "rgba(255, 255, 255, 0.95)";
3854
+ default:
3855
+ throw new Error(`Invalid form contrast "${contrast}"`);
3856
+ }
3476
3857
  }
3477
- var SvgCaretDown8 = function SvgCaretDown82(props) {
3478
- return /* @__PURE__ */ React__namespace.createElement("svg", _extends$q({
3479
- width: 8,
3480
- height: 8,
3481
- xmlns: "http://www.w3.org/2000/svg"
3482
- }, props), _path$q || (_path$q = /* @__PURE__ */ React__namespace.createElement("path", {
3483
- 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"
3484
- })));
3485
- };
3486
- var _path$p;
3487
- function _extends$p() {
3488
- _extends$p = Object.assign || function(target) {
3489
- for (var i = 1; i < arguments.length; i++) {
3490
- var source = arguments[i];
3491
- for (var key in source) {
3492
- if (Object.prototype.hasOwnProperty.call(source, key)) {
3493
- target[key] = source[key];
3494
- }
3495
- }
3496
- }
3497
- return target;
3498
- };
3499
- return _extends$p.apply(this, arguments);
3858
+ const Base$1 = styled__default["default"].label`
3859
+ display: block;
3860
+ margin: 0 0 0.25em 0;
3861
+ ${cssTextStyle()}
3862
+ ${(props) => cssMediaRules([props.size, props.contrast, props.textColor], ([size = Sizes.MEDIUM, contrast = Contrasts.LIGHT, textColor]) => styled.css`
3863
+ min-height: ${getSizeHeight(size)}px;
3864
+ color: ${textColor == null ? getContrastColor(contrast) : colorToString(textColor)};
3865
+ `)}
3866
+ `;
3867
+ function Label$1(props) {
3868
+ const {
3869
+ contrast,
3870
+ size,
3871
+ labelTextStyle,
3872
+ labelTextColor
3873
+ } = useFormContext();
3874
+ return /* @__PURE__ */ jsxRuntime.jsx(Base$1, __spreadProps(__spreadValues({}, props), {
3875
+ contrast,
3876
+ size,
3877
+ textStyle: labelTextStyle,
3878
+ textColor: useColor(labelTextColor)
3879
+ }));
3500
3880
  }
3501
- var SvgPlus8 = function SvgPlus82(props) {
3502
- return /* @__PURE__ */ React__namespace.createElement("svg", _extends$p({
3503
- width: 8,
3881
+ var SingleLineTextTableField = React.forwardRef(function SingleLineTextTableField2(_q, ref) {
3882
+ var _r = _q, {
3883
+ id,
3884
+ label = "",
3885
+ name,
3886
+ error,
3887
+ hideLabel = false
3888
+ } = _r, restOfProps = __objRest(_r, [
3889
+ "id",
3890
+ "label",
3891
+ "name",
3892
+ "error",
3893
+ "hideLabel"
3894
+ ]);
3895
+ return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, {
3896
+ children: [!hideLabel && /* @__PURE__ */ jsxRuntime.jsx(Label$1, {
3897
+ htmlFor: id,
3898
+ children: label
3899
+ }), /* @__PURE__ */ jsxRuntime.jsx(Input$2, __spreadProps(__spreadValues({}, restOfProps), {
3900
+ "aria-label": label,
3901
+ ref,
3902
+ id,
3903
+ name,
3904
+ type: "text",
3905
+ error: error != null
3906
+ }))]
3907
+ });
3908
+ });
3909
+ const Base = styled__default["default"].textarea`
3910
+ resize: vertical;
3911
+ ${cssField()}
3912
+ `;
3913
+ var TextArea = React.forwardRef(function TextArea2(_s, ref) {
3914
+ var _t = _s, {
3915
+ error = false,
3916
+ form
3917
+ } = _t, restOfProps = __objRest(_t, [
3918
+ "error",
3919
+ "form"
3920
+ ]);
3921
+ const {
3922
+ shape,
3923
+ size,
3924
+ contrast,
3925
+ brandColor
3926
+ } = useFormContext();
3927
+ return /* @__PURE__ */ jsxRuntime.jsx(Base, __spreadProps(__spreadValues({}, restOfProps), {
3928
+ ref,
3929
+ rows: 4,
3930
+ error,
3931
+ shape,
3932
+ size,
3933
+ contrast,
3934
+ brandColor
3935
+ }));
3936
+ });
3937
+ var LongTextTableField = React.forwardRef(function LongTextTableField2(_u, ref) {
3938
+ var _v = _u, {
3939
+ id,
3940
+ label = "",
3941
+ error,
3942
+ hideLabel = false
3943
+ } = _v, restOfProps = __objRest(_v, [
3944
+ "id",
3945
+ "label",
3946
+ "error",
3947
+ "hideLabel"
3948
+ ]);
3949
+ return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, {
3950
+ children: [!hideLabel && /* @__PURE__ */ jsxRuntime.jsx(Label$1, {
3951
+ htmlFor: id,
3952
+ children: label
3953
+ }), /* @__PURE__ */ jsxRuntime.jsx(TextArea, __spreadProps(__spreadValues({}, restOfProps), {
3954
+ "aria-label": label,
3955
+ ref,
3956
+ id,
3957
+ error: error != null
3958
+ }))]
3959
+ });
3960
+ });
3961
+ function getCheckmarkColor$1({
3962
+ swatch: {
3963
+ hue: h,
3964
+ saturation: s,
3965
+ lightness: l
3966
+ },
3967
+ alpha: a
3968
+ }) {
3969
+ return ColorHelper__default["default"]({
3970
+ h,
3971
+ s,
3972
+ l
3973
+ }).alpha(a).isLight() ? "rgba(0, 0, 0, 0.7)" : "rgba(255, 255, 255, 0.95)";
3974
+ }
3975
+ const Container$6 = styled__default["default"].div`
3976
+ position: relative;
3977
+ ${(props) => cssMediaRules([props.size], ([size = Sizes.MEDIUM]) => styled.css`
3978
+ height: ${getSizeHeight(size)}px;
3979
+ width: ${getSizeHeight(size)}px;
3980
+ `)}
3981
+ `;
3982
+ const FakeCheckbox = styled__default["default"].div`
3983
+ position: absolute;
3984
+ width: 100%;
3985
+ height: 100%;
3986
+ border-style: solid;
3987
+ border-radius: 4px;
3988
+ pointer-events: none;
3989
+ border-width: 1px;
3990
+ ${(props) => cssMediaRules([props.contrast], ([contrast = Contrasts.LIGHT]) => styled.css`
3991
+ border-color: ${getContrastBorderColor(contrast, props.error)};
3992
+ background-color: ${getContrastBackgroundColor(contrast)};
3993
+ `)}
3994
+ `;
3995
+ const HiddenCheckbox = styled__default["default"].input`
3996
+ position: absolute;
3997
+ opacity: 0;
3998
+ width: 100%;
3999
+ height: 100%;
4000
+ cursor: pointer;
4001
+
4002
+ &:disabled {
4003
+ cursor: no-drop;
4004
+
4005
+ & ~ ${FakeCheckbox} {
4006
+ opacity: 0.5;
4007
+ }
4008
+ }
4009
+
4010
+ &:checked ~ ${FakeCheckbox} {
4011
+ ${(props) => cssMediaRules([props.brandColor], ([{
4012
+ swatch = {
4013
+ hue: 0,
4014
+ saturation: 0,
4015
+ lightness: 0
4016
+ },
4017
+ alpha = 1
4018
+ } = {}]) => styled.css`
4019
+ background-color: ${colorToString({
4020
+ swatch,
4021
+ alpha
4022
+ })};
4023
+ `)}
4024
+ border-color: transparent;
4025
+
4026
+ &::after {
4027
+ content: '';
4028
+ position: absolute;
4029
+ box-sizing: content-box;
4030
+ width: 25%;
4031
+ height: 50%;
4032
+ ${(props) => cssMediaRules([props.size], ([size = Sizes.MEDIUM]) => styled.css`
4033
+ border-width: ${getSizeHeight(size) * 0.1}px;
4034
+ border-left: 0;
4035
+ border-top: 0;
4036
+ `)}
4037
+ border-style: solid;
4038
+ ${(props) => cssMediaRules([props.brandColor], ([{
4039
+ swatch = {
4040
+ hue: 0,
4041
+ saturation: 0,
4042
+ lightness: 0
4043
+ },
4044
+ alpha = 1
4045
+ } = {}]) => styled.css`
4046
+ border-color: ${getCheckmarkColor$1({
4047
+ swatch,
4048
+ alpha
4049
+ })};
4050
+ `)}
4051
+ transform: rotate(45deg) translate3d(91%, -23%, 0);
4052
+ }
4053
+ }
4054
+
4055
+ &:not(:disabled) {
4056
+ &:focus ~ ${FakeCheckbox} {
4057
+ ${(props) => cssMediaRules([props.brandColor], ([brandColor = {
4058
+ swatch: {
4059
+ hue: 0,
4060
+ saturation: 0,
4061
+ lightness: 0
4062
+ },
4063
+ alpha: 1
4064
+ }]) => styled.css`
4065
+ border-color: ${colorToString(brandColor)};
4066
+ `)}
4067
+ }
4068
+ }
4069
+
4070
+ &:not(:disabled):checked {
4071
+ &:focus ~ ${FakeCheckbox} {
4072
+ ${(props) => cssMediaRules([props.contrast], ([contrast = Contrasts.LIGHT]) => styled.css`
4073
+ border-color: ${getContrastBorderColor(contrast, props.error)};
4074
+ `)}
4075
+ }
4076
+ }
4077
+ `;
4078
+ var Checkbox = React.forwardRef(function Checkbox2(_w, ref) {
4079
+ var _x = _w, {
4080
+ error,
4081
+ className,
4082
+ style,
4083
+ form
4084
+ } = _x, restOfProps = __objRest(_x, [
4085
+ "error",
4086
+ "className",
4087
+ "style",
4088
+ "form"
4089
+ ]);
4090
+ const {
4091
+ size,
4092
+ contrast,
4093
+ brandColor
4094
+ } = useFormContext();
4095
+ return /* @__PURE__ */ jsxRuntime.jsxs(Container$6, {
4096
+ size,
4097
+ children: [/* @__PURE__ */ jsxRuntime.jsx(HiddenCheckbox, __spreadProps(__spreadValues({}, restOfProps), {
4098
+ type: "checkbox",
4099
+ ref,
4100
+ error,
4101
+ size,
4102
+ contrast,
4103
+ brandColor
4104
+ })), /* @__PURE__ */ jsxRuntime.jsx(FakeCheckbox, {
4105
+ className,
4106
+ error,
4107
+ contrast,
4108
+ style
4109
+ })]
4110
+ });
4111
+ });
4112
+ const StyledLabel$2 = styled__default["default"](Label$1)`
4113
+ display: flex;
4114
+ align-items: center;
4115
+ margin: 0;
4116
+ ${(props) => cssMediaRules([props.size], ([size = Sizes.MEDIUM]) => styled.css`
4117
+ min-height: ${getSizeHeight$1(size)}px;
4118
+ max-height: ${getSizeHeight$1(size)}px;
4119
+ `)}
4120
+ `;
4121
+ const CheckboxContainer$1 = styled__default["default"].span`
4122
+ margin-right: 8px;
4123
+ `;
4124
+ var CheckboxTableField = React.forwardRef(function CheckboxTableField2(_y, ref) {
4125
+ var _z = _y, {
4126
+ form,
4127
+ id,
4128
+ name,
4129
+ label = "",
4130
+ value = false,
4131
+ error
4132
+ } = _z, restOfProps = __objRest(_z, [
4133
+ "form",
4134
+ "id",
4135
+ "name",
4136
+ "label",
4137
+ "value",
4138
+ "error"
4139
+ ]);
4140
+ const {
4141
+ size
4142
+ } = useFormContext();
4143
+ function handleChange(event) {
4144
+ form.setFieldValue(name, event.currentTarget.checked);
4145
+ }
4146
+ return /* @__PURE__ */ jsxRuntime.jsxs(StyledLabel$2, {
4147
+ htmlFor: id,
4148
+ size,
4149
+ children: [/* @__PURE__ */ jsxRuntime.jsx(CheckboxContainer$1, {
4150
+ children: /* @__PURE__ */ jsxRuntime.jsx(Checkbox, __spreadProps(__spreadValues({}, restOfProps), {
4151
+ "aria-label": label,
4152
+ checked: value,
4153
+ onChange: handleChange,
4154
+ ref,
4155
+ id,
4156
+ error: error != null
4157
+ }))
4158
+ }), label]
4159
+ });
4160
+ });
4161
+ const MainLabel = styled__default["default"](Label$1)`
4162
+ margin: 0 0 4px 0;
4163
+ `;
4164
+ const StyledLabel$1 = styled__default["default"](Label$1)`
4165
+ display: flex;
4166
+ align-items: center;
4167
+ margin: 8px 0;
4168
+
4169
+ &:last-of-type {
4170
+ margin-bottom: 0;
4171
+ }
4172
+ `;
4173
+ const CheckboxContainer = styled__default["default"].span`
4174
+ margin-right: 8px;
4175
+ `;
4176
+ var MultipleSelectTableField = React.forwardRef(function MultipleSelectTableField2(_A, ref) {
4177
+ var _B = _A, {
4178
+ tableColumn,
4179
+ label = "",
4180
+ required,
4181
+ value = [],
4182
+ onChange,
4183
+ hideLabel = false
4184
+ } = _B, restOfProps = __objRest(_B, [
4185
+ "tableColumn",
4186
+ "label",
4187
+ "required",
4188
+ "value",
4189
+ "onChange",
4190
+ "hideLabel"
4191
+ ]);
4192
+ const handle = React.useRef({
4193
+ validity: {
4194
+ valueMissing: required === true && value.length === 0,
4195
+ typeMismatch: false
4196
+ }
4197
+ });
4198
+ React.useImperativeHandle(ref, () => handle.current, []);
4199
+ function handleChange(event) {
4200
+ handle.current.validity.valueMissing = required === true && !event.currentTarget.checked && value.filter((v) => v !== event.currentTarget.value).length === 0;
4201
+ onChange(event);
4202
+ }
4203
+ return /* @__PURE__ */ jsxRuntime.jsxs("div", {
4204
+ children: [!hideLabel && /* @__PURE__ */ jsxRuntime.jsx(MainLabel, {
4205
+ children: label
4206
+ }), tableColumn.options.map((option) => /* @__PURE__ */ jsxRuntime.jsxs(StyledLabel$1, {
4207
+ htmlFor: option.id,
4208
+ children: [/* @__PURE__ */ jsxRuntime.jsx(CheckboxContainer, {
4209
+ children: /* @__PURE__ */ jsxRuntime.jsx(Checkbox, __spreadProps(__spreadValues({}, restOfProps), {
4210
+ "aria-label": label,
4211
+ onChange: handleChange,
4212
+ checked: value.includes(option.name),
4213
+ id: option.id,
4214
+ value: option.name
4215
+ }))
4216
+ }), option.name]
4217
+ }, option.id))]
4218
+ });
4219
+ });
4220
+ function getCheckmarkColor({
4221
+ swatch: {
4222
+ hue: h,
4223
+ saturation: s,
4224
+ lightness: l
4225
+ } = {
4226
+ hue: 0,
4227
+ saturation: 0,
4228
+ lightness: 0
4229
+ },
4230
+ alpha: a
4231
+ }) {
4232
+ return ColorHelper__default["default"]({
4233
+ h,
4234
+ s,
4235
+ l
4236
+ }).alpha(a).isLight() ? "rgba(0, 0, 0, 0.7)" : "rgba(255, 255, 255, 0.95)";
4237
+ }
4238
+ const Container$5 = styled__default["default"].div`
4239
+ position: relative;
4240
+ ${(props) => cssMediaRules([props.size], ([size = Sizes.MEDIUM]) => styled.css`
4241
+ height: ${getSizeHeight(size)}px;
4242
+ width: ${getSizeHeight(size)}px;
4243
+ `)}
4244
+ `;
4245
+ const FakeRadioButton = styled__default["default"].div`
4246
+ position: absolute;
4247
+ width: 100%;
4248
+ height: 100%;
4249
+ border-style: solid;
4250
+ border-radius: 50%;
4251
+ pointer-events: none;
4252
+ border-width: 1px;
4253
+ ${(props) => cssMediaRules([props.contrast], ([contrast = Contrasts.LIGHT]) => styled.css`
4254
+ border-color: ${getContrastBorderColor(contrast, props.error)};
4255
+ background-color: ${getContrastBackgroundColor(contrast)};
4256
+ `)}
4257
+ `;
4258
+ const HiddenRadioButton = styled__default["default"].input.attrs({
4259
+ type: "radio"
4260
+ })`
4261
+ position: absolute;
4262
+ opacity: 0;
4263
+ width: 100%;
4264
+ height: 100%;
4265
+ cursor: pointer;
4266
+
4267
+ &:disabled {
4268
+ cursor: no-drop;
4269
+
4270
+ & ~ ${FakeRadioButton} {
4271
+ opacity: 0.5;
4272
+ }
4273
+ }
4274
+
4275
+ &:checked ~ ${FakeRadioButton} {
4276
+ ${(props) => cssMediaRules([props.brandColor], ([brandColor = {
4277
+ swatch: {
4278
+ hue: 0,
4279
+ saturation: 0,
4280
+ lightness: 0
4281
+ },
4282
+ alpha: 1
4283
+ }]) => styled.css`
4284
+ background-color: ${colorToString(brandColor)};
4285
+ `)}
4286
+ border-color: transparent;
4287
+
4288
+ &::after {
4289
+ content: '';
4290
+ position: absolute;
4291
+ box-sizing: content-box;
4292
+ top: 50%;
4293
+ left: 50%;
4294
+ width: 50%;
4295
+ height: 50%;
4296
+ border-radius: 50%;
4297
+ transform: translate(-50%, -50%);
4298
+ ${(props) => cssMediaRules([props.brandColor], ([brandColor = {
4299
+ swatch: {
4300
+ hue: 0,
4301
+ saturation: 0,
4302
+ lightness: 0
4303
+ },
4304
+ alpha: 1
4305
+ }]) => styled.css`
4306
+ background-color: ${getCheckmarkColor(brandColor)};
4307
+ `)}
4308
+ }
4309
+ }
4310
+
4311
+ &:not(:disabled) {
4312
+ &:focus ~ ${FakeRadioButton} {
4313
+ ${(props) => cssMediaRules([props.brandColor], ([brandColor = {
4314
+ swatch: {
4315
+ hue: 0,
4316
+ saturation: 0,
4317
+ lightness: 0
4318
+ },
4319
+ alpha: 1
4320
+ }]) => styled.css`
4321
+ border-color: ${colorToString(brandColor)};
4322
+ `)}
4323
+ }
4324
+ }
4325
+
4326
+ &:not(:disabled):checked {
4327
+ &:focus ~ ${FakeRadioButton} {
4328
+ ${(props) => cssMediaRules([props.contrast], ([contrast = Contrasts.LIGHT]) => styled.css`
4329
+ border-color: ${getContrastBorderColor(contrast, props.error)};
4330
+ `)}
4331
+ }
4332
+ }
4333
+ `;
4334
+ var RadioButton = React.forwardRef(function RadioButton2(_C, ref) {
4335
+ var _D = _C, {
4336
+ error,
4337
+ className,
4338
+ style,
4339
+ form
4340
+ } = _D, restOfProps = __objRest(_D, [
4341
+ "error",
4342
+ "className",
4343
+ "style",
4344
+ "form"
4345
+ ]);
4346
+ const {
4347
+ size,
4348
+ contrast,
4349
+ brandColor
4350
+ } = useFormContext();
4351
+ return /* @__PURE__ */ jsxRuntime.jsxs(Container$5, {
4352
+ size,
4353
+ children: [/* @__PURE__ */ jsxRuntime.jsx(HiddenRadioButton, __spreadProps(__spreadValues({}, restOfProps), {
4354
+ ref,
4355
+ error,
4356
+ contrast,
4357
+ brandColor
4358
+ })), /* @__PURE__ */ jsxRuntime.jsx(FakeRadioButton, {
4359
+ className,
4360
+ error,
4361
+ contrast,
4362
+ style
4363
+ })]
4364
+ });
4365
+ });
4366
+ const StyledLabel = styled__default["default"](Label$1)`
4367
+ display: flex;
4368
+ align-items: center;
4369
+ margin: 8px 0;
4370
+
4371
+ &:last-of-type {
4372
+ margin-bottom: 0;
4373
+ }
4374
+ `;
4375
+ const RadioButtonContainer = styled__default["default"].span`
4376
+ margin-right: 8px;
4377
+ `;
4378
+ var TableColumnRadioButtonGroup = React.forwardRef(function TableColumnRadioButtonGroup2(_E, ref) {
4379
+ var _F = _E, {
4380
+ tableColumn,
4381
+ label = "",
4382
+ value = "",
4383
+ required = false,
4384
+ hideLabel = false,
4385
+ onChange
4386
+ } = _F, restOfProps = __objRest(_F, [
4387
+ "tableColumn",
4388
+ "label",
4389
+ "value",
4390
+ "required",
4391
+ "hideLabel",
4392
+ "onChange"
4393
+ ]);
4394
+ const handle = React.useRef({
4395
+ validity: {
4396
+ valueMissing: required === true && value === "",
4397
+ typeMismatch: false
4398
+ }
4399
+ });
4400
+ React.useImperativeHandle(ref, () => handle.current, []);
4401
+ function handleChange(event) {
4402
+ handle.current.validity.valueMissing = required === true && !event.currentTarget.checked;
4403
+ onChange(event);
4404
+ }
4405
+ return /* @__PURE__ */ jsxRuntime.jsxs("div", {
4406
+ children: [!hideLabel && /* @__PURE__ */ jsxRuntime.jsx(Label$1, {
4407
+ as: "p",
4408
+ children: label
4409
+ }), tableColumn.options.map((option) => /* @__PURE__ */ jsxRuntime.jsxs(StyledLabel, {
4410
+ htmlFor: option.id,
4411
+ "aria-label": label,
4412
+ children: [/* @__PURE__ */ jsxRuntime.jsx(RadioButtonContainer, {
4413
+ children: /* @__PURE__ */ jsxRuntime.jsx(RadioButton, __spreadProps(__spreadValues({}, restOfProps), {
4414
+ onChange: handleChange,
4415
+ checked: value === option.name,
4416
+ id: option.id,
4417
+ value: option.name
4418
+ }))
4419
+ }), option.name]
4420
+ }, option.id))]
4421
+ });
4422
+ });
4423
+ const Container$4 = styled__default["default"].div`
4424
+ ${cssField()}
4425
+ display: flex;
4426
+ align-items: center;
4427
+ position: relative;
4428
+ user-select: none;
4429
+ border-color: #f19eb9;
4430
+
4431
+ &:focus,
4432
+ &:focus-within {
4433
+ border-color: #e54e7f;
4434
+ }
4435
+
4436
+ ${(props) => cssMediaRules([props.size, props.contrast], ([size = Sizes.MEDIUM, contrast = Contrasts.LIGHT]) => styled.css`
4437
+ min-height: ${getSizeHeight$2(size)}px;
4438
+ max-height: ${getSizeHeight$2(size)}px;
4439
+
4440
+ &::after {
4441
+ content: '';
4442
+ position: absolute;
4443
+ right: ${getSizeHorizontalPadding(size)}px;
4444
+ top: 50%;
4445
+ transform: translate3d(0, -25%, 0);
4446
+ border: solid 0.35em transparent;
4447
+ border-top-color: ${getContrastColor$1(contrast)};
4448
+ }
4449
+ `)}
4450
+ `;
4451
+ const Select = styled__default["default"].select`
4452
+ appearance: none;
4453
+ position: absolute;
4454
+ top: 0;
4455
+ left: 0;
4456
+ opacity: 0;
4457
+ width: 100%;
4458
+ height: 100%;
4459
+ `;
4460
+ var TableColumnSingleSelect = React.forwardRef(function TableColumnSingleSelect2(_G, ref) {
4461
+ var _H = _G, {
4462
+ id,
4463
+ tableColumn,
4464
+ value = "",
4465
+ label = "",
4466
+ error = false,
4467
+ hideLabel = false,
4468
+ form
4469
+ } = _H, restOfProps = __objRest(_H, [
4470
+ "id",
4471
+ "tableColumn",
4472
+ "value",
4473
+ "label",
4474
+ "error",
4475
+ "hideLabel",
4476
+ "form"
4477
+ ]);
4478
+ const {
4479
+ shape,
4480
+ size,
4481
+ contrast,
4482
+ brandColor
4483
+ } = useFormContext();
4484
+ return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, {
4485
+ children: [!hideLabel && /* @__PURE__ */ jsxRuntime.jsx(Label$1, {
4486
+ htmlFor: id,
4487
+ children: label
4488
+ }), /* @__PURE__ */ jsxRuntime.jsxs(Container$4, {
4489
+ error,
4490
+ shape,
4491
+ size,
4492
+ contrast,
4493
+ brandColor,
4494
+ children: [/* @__PURE__ */ jsxRuntime.jsx("span", {
4495
+ children: value === "" ? "-" : value
4496
+ }), /* @__PURE__ */ jsxRuntime.jsxs(Select, __spreadProps(__spreadValues({}, restOfProps), {
4497
+ "aria-label": label,
4498
+ ref,
4499
+ id,
4500
+ value,
4501
+ children: [/* @__PURE__ */ jsxRuntime.jsx("option", {
4502
+ value: "",
4503
+ children: "-"
4504
+ }), tableColumn.options.map((option) => /* @__PURE__ */ jsxRuntime.jsx("option", {
4505
+ value: option.name,
4506
+ children: option.name
4507
+ }, option.id))]
4508
+ }))]
4509
+ })]
4510
+ });
4511
+ });
4512
+ var SingleSelectTableField = React.forwardRef(function SingleSelectTableField2(_I, ref) {
4513
+ var _J = _I, {
4514
+ type
4515
+ } = _J, restOfProps = __objRest(_J, [
4516
+ "type"
4517
+ ]);
4518
+ return type === "select" ? /* @__PURE__ */ jsxRuntime.jsx(TableColumnSingleSelect, __spreadProps(__spreadValues({}, restOfProps), {
4519
+ ref
4520
+ })) : /* @__PURE__ */ jsxRuntime.jsx(TableColumnRadioButtonGroup, __spreadProps(__spreadValues({}, restOfProps), {
4521
+ ref
4522
+ }));
4523
+ });
4524
+ var PhoneNumberTableField = React.forwardRef(function PhoneNumberTableField2(_K, ref) {
4525
+ var _L = _K, {
4526
+ id,
4527
+ label = "",
4528
+ name,
4529
+ error,
4530
+ hideLabel = false
4531
+ } = _L, restOfProps = __objRest(_L, [
4532
+ "id",
4533
+ "label",
4534
+ "name",
4535
+ "error",
4536
+ "hideLabel"
4537
+ ]);
4538
+ return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, {
4539
+ children: [!hideLabel && /* @__PURE__ */ jsxRuntime.jsx(Label$1, {
4540
+ htmlFor: id,
4541
+ children: label
4542
+ }), /* @__PURE__ */ jsxRuntime.jsx(Input$2, __spreadProps(__spreadValues({}, restOfProps), {
4543
+ "aria-label": label,
4544
+ ref,
4545
+ id,
4546
+ name,
4547
+ type: "tel",
4548
+ error: error != null
4549
+ }))]
4550
+ });
4551
+ });
4552
+ var EmailTableField = React.forwardRef(function EmailTableField2(_M, ref) {
4553
+ var _N = _M, {
4554
+ id,
4555
+ label = "",
4556
+ name,
4557
+ error,
4558
+ hideLabel = false
4559
+ } = _N, restOfProps = __objRest(_N, [
4560
+ "id",
4561
+ "label",
4562
+ "name",
4563
+ "error",
4564
+ "hideLabel"
4565
+ ]);
4566
+ return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, {
4567
+ children: [!hideLabel && /* @__PURE__ */ jsxRuntime.jsx(Label$1, {
4568
+ htmlFor: id,
4569
+ children: label
4570
+ }), /* @__PURE__ */ jsxRuntime.jsx(Input$2, __spreadProps(__spreadValues({}, restOfProps), {
4571
+ "aria-label": label,
4572
+ ref,
4573
+ id,
4574
+ name,
4575
+ type: "email",
4576
+ error: error != null
4577
+ }))]
4578
+ });
4579
+ });
4580
+ var URLTableField = React.forwardRef(function URLTableField2(_O, ref) {
4581
+ var _P = _O, {
4582
+ id,
4583
+ label = "",
4584
+ name,
4585
+ error,
4586
+ hideLabel = false
4587
+ } = _P, restOfProps = __objRest(_P, [
4588
+ "id",
4589
+ "label",
4590
+ "name",
4591
+ "error",
4592
+ "hideLabel"
4593
+ ]);
4594
+ return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, {
4595
+ children: [!hideLabel && /* @__PURE__ */ jsxRuntime.jsx(Label$1, {
4596
+ htmlFor: id,
4597
+ children: label
4598
+ }), /* @__PURE__ */ jsxRuntime.jsx(Input$2, __spreadProps(__spreadValues({}, restOfProps), {
4599
+ "aria-label": label,
4600
+ ref,
4601
+ id,
4602
+ name,
4603
+ type: "url",
4604
+ error: error != null
4605
+ }))]
4606
+ });
4607
+ });
4608
+ var NumberTableField = React.forwardRef(function NumberTableField2(_Q, ref) {
4609
+ var _R = _Q, {
4610
+ id,
4611
+ label = "",
4612
+ name,
4613
+ error,
4614
+ hideLabel = false
4615
+ } = _R, restOfProps = __objRest(_R, [
4616
+ "id",
4617
+ "label",
4618
+ "name",
4619
+ "error",
4620
+ "hideLabel"
4621
+ ]);
4622
+ return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, {
4623
+ children: [!hideLabel && /* @__PURE__ */ jsxRuntime.jsx(Label$1, {
4624
+ htmlFor: id,
4625
+ children: label
4626
+ }), /* @__PURE__ */ jsxRuntime.jsx(Input$2, __spreadProps(__spreadValues({}, restOfProps), {
4627
+ "aria-label": label,
4628
+ ref,
4629
+ id,
4630
+ name,
4631
+ type: "number",
4632
+ error: error != null
4633
+ }))]
4634
+ });
4635
+ });
4636
+ const Label = styled__default["default"].div`
4637
+ display: block;
4638
+ max-width: 120px;
4639
+ min-width: 60px;
4640
+ border-radius: 2px;
4641
+ background-color: #5f49f4;
4642
+ opacity: 0.4;
4643
+ ${(props) => cssMediaRules([props.size], ([size = Sizes.MEDIUM]) => styled.css`
4644
+ margin: calc(0.25 * ${getSizeHeight(size)}px + 2px) 0;
4645
+ min-height: ${0.5 * getSizeHeight(size)}px;
4646
+ max-height: ${0.5 * getSizeHeight(size)}px;
4647
+ `)}
4648
+ `;
4649
+ const Input = styled__default["default"].div`
4650
+ display: block;
4651
+ width: 100%;
4652
+ border-width: 2px;
4653
+ border-style: solid;
4654
+ border-color: #5f49f4;
4655
+ opacity: 0.4;
4656
+ ${(props) => cssMediaRules([props.shape, props.size], ([shape = Shapes.ROUNDED, size = Sizes.MEDIUM]) => styled.css`
4657
+ min-height: ${getSizeHeight$1(size)}px;
4658
+ max-height: ${getSizeHeight$1(size)}px;
4659
+ border-radius: ${getShapeBorderRadius(shape)}px;
4660
+ `)}
4661
+ `;
4662
+ function PlaceholderTableField() {
4663
+ const {
4664
+ size,
4665
+ shape
4666
+ } = useFormContext();
4667
+ return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, {
4668
+ children: [/* @__PURE__ */ jsxRuntime.jsx(Label, {
4669
+ size
4670
+ }), /* @__PURE__ */ jsxRuntime.jsx(Input, {
4671
+ shape,
4672
+ size
4673
+ })]
4674
+ });
4675
+ }
4676
+ function getTypeMismatchErrorMessage(tableColumn, label) {
4677
+ switch ((tableColumn || {}).__typename) {
4678
+ case "PhoneNumberTableColumn":
4679
+ return `${label} field must be a valid phone number.`;
4680
+ case "EmailTableColumn":
4681
+ return `${label} field must be a valid email.`;
4682
+ case "URLTableColumn":
4683
+ return `${label} field must be a valid URL.`;
4684
+ case "NumberTableColumn":
4685
+ return `${label} field must be a valid number.`;
4686
+ case "SingleLineTextTableColumn":
4687
+ case "LongTextTableColumn":
4688
+ case "CheckboxTableColumn":
4689
+ default:
4690
+ return `${label} field is invalid.`;
4691
+ }
4692
+ }
4693
+ function getTableColumnField(tableColumn) {
4694
+ switch ((tableColumn || {}).__typename) {
4695
+ case "SingleLineTextTableColumn":
4696
+ return SingleLineTextTableField;
4697
+ case "LongTextTableColumn":
4698
+ return LongTextTableField;
4699
+ case "CheckboxTableColumn":
4700
+ return CheckboxTableField;
4701
+ case "MultipleSelectTableColumn":
4702
+ return MultipleSelectTableField;
4703
+ case "SingleSelectTableColumn":
4704
+ return SingleSelectTableField;
4705
+ case "PhoneNumberTableColumn":
4706
+ return PhoneNumberTableField;
4707
+ case "EmailTableColumn":
4708
+ return EmailTableField;
4709
+ case "URLTableColumn":
4710
+ return URLTableField;
4711
+ case "NumberTableColumn":
4712
+ return NumberTableField;
4713
+ default:
4714
+ return SingleLineTextTableField;
4715
+ }
4716
+ }
4717
+ function Field({
4718
+ tableColumn,
4719
+ tableFormField: {
4720
+ id,
4721
+ label = "",
4722
+ placeholder: placeholder2,
4723
+ required = false,
4724
+ hidden = false,
4725
+ type = "radio",
4726
+ hideLabel = false
4727
+ }
4728
+ }) {
4729
+ const TableColumnField = getTableColumnField(tableColumn);
4730
+ const input = React.useRef(null);
4731
+ if (!tableColumn)
4732
+ return /* @__PURE__ */ jsxRuntime.jsx(PlaceholderTableField, {});
4733
+ function validate() {
4734
+ let errorMessage;
4735
+ if (input.current) {
4736
+ const {
4737
+ validity = {}
4738
+ } = input.current;
4739
+ if (validity.valueMissing)
4740
+ errorMessage = `${label} is required.`;
4741
+ if (validity.typeMismatch)
4742
+ errorMessage = getTypeMismatchErrorMessage(tableColumn, label);
4743
+ }
4744
+ return errorMessage;
4745
+ }
4746
+ return /* @__PURE__ */ jsxRuntime.jsx(formik.Field, {
4747
+ name: tableColumn.name,
4748
+ validate,
4749
+ children: ({
4750
+ field,
4751
+ form
4752
+ }) => hidden ? /* @__PURE__ */ jsxRuntime.jsx("input", __spreadProps(__spreadValues({}, field), {
4753
+ ref: input,
4754
+ type: "hidden"
4755
+ })) : /* @__PURE__ */ jsxRuntime.jsx(TableColumnField, __spreadProps(__spreadValues({}, field), {
4756
+ type,
4757
+ form,
4758
+ tableColumn,
4759
+ ref: input,
4760
+ id,
4761
+ error: formik.getIn(form.touched, field.name) && formik.getIn(form.errors, field.name),
4762
+ label,
4763
+ placeholder: placeholder2,
4764
+ required,
4765
+ hideLabel
4766
+ }))
4767
+ });
4768
+ }
4769
+ var _g;
4770
+ function _extends$t() {
4771
+ _extends$t = Object.assign || function(target) {
4772
+ for (var i = 1; i < arguments.length; i++) {
4773
+ var source = arguments[i];
4774
+ for (var key in source) {
4775
+ if (Object.prototype.hasOwnProperty.call(source, key)) {
4776
+ target[key] = source[key];
4777
+ }
4778
+ }
4779
+ }
4780
+ return target;
4781
+ };
4782
+ return _extends$t.apply(this, arguments);
4783
+ }
4784
+ var SvgSpinner20 = function SvgSpinner202(props) {
4785
+ return /* @__PURE__ */ React__namespace.createElement("svg", _extends$t({
4786
+ xmlns: "http://www.w3.org/2000/svg",
4787
+ width: 20,
4788
+ height: 20
4789
+ }, props), _g || (_g = /* @__PURE__ */ React__namespace.createElement("g", {
4790
+ fill: "none",
4791
+ strokeWidth: 2,
4792
+ transform: "translate(1 1)"
4793
+ }, /* @__PURE__ */ React__namespace.createElement("circle", {
4794
+ stroke: "currentColor",
4795
+ cx: 9,
4796
+ cy: 9,
4797
+ r: 9,
4798
+ strokeOpacity: 0.4
4799
+ }), /* @__PURE__ */ React__namespace.createElement("path", {
4800
+ d: "M9 18A9 9 0 0 0 9 0"
4801
+ }))));
4802
+ };
4803
+ const spin = styled.keyframes`
4804
+ from {
4805
+ transform: rotate(0deg);
4806
+ }
4807
+ to {
4808
+ transform: rotate(360deg);
4809
+ }
4810
+ `;
4811
+ const Icon = styled__default["default"](SvgSpinner20)`
4812
+ display: inline-flex;
4813
+ animation: ${spin} 1s linear infinite;
4814
+ stroke: currentColor;
4815
+ `;
4816
+ function Spinner() {
4817
+ return /* @__PURE__ */ jsxRuntime.jsx(Icon, {});
4818
+ }
4819
+ function useTableFormFieldRefs(propController, { fieldsCount }) {
4820
+ const [container, setContainer] = React.useState(null);
4821
+ const [items, setItems] = React.useState(Array(fieldsCount + 1).fill(null));
4822
+ const isInBuilder = useIsInBuilder();
4823
+ React.useEffect(() => {
4824
+ if (!isInBuilder)
4825
+ return;
4826
+ let animationFrameHandle = requestAnimationFrame(handleAnimationFrameRequest);
4827
+ return () => {
4828
+ cancelAnimationFrame(animationFrameHandle);
4829
+ };
4830
+ function handleAnimationFrameRequest() {
4831
+ if (propController == null)
4832
+ return;
4833
+ if (container != null)
4834
+ propController.tableFormLayoutChange({ layout: boxModels.getBox(container) });
4835
+ items.map((item, index) => {
4836
+ if (item == null)
4837
+ return;
4838
+ propController.tableFormFieldLayoutChange({ index, layout: boxModels.getBox(item) });
4839
+ });
4840
+ animationFrameHandle = requestAnimationFrame(handleAnimationFrameRequest);
4841
+ }
4842
+ }, [propController, container, items, isInBuilder]);
4843
+ const itemRefs = React.useMemo(() => Array.from({ length: fieldsCount + 1 }).map((_, index) => (item) => {
4844
+ setItems((is) => [...is.slice(0, index), item, ...is.slice(index + 1)]);
4845
+ }), [fieldsCount, setItems]);
4846
+ return { container: setContainer, items: itemRefs };
4847
+ }
4848
+ const LOCAL_STORAGE_NAMESPACE = "@@makeswift/components/form";
4849
+ function getSizeFontSize(size) {
4850
+ switch (size) {
4851
+ case Sizes.SMALL:
4852
+ return 12;
4853
+ case Sizes.MEDIUM:
4854
+ return 14;
4855
+ case Sizes.LARGE:
4856
+ return 18;
4857
+ default:
4858
+ throw new Error(`Invalid form size "${size}"`);
4859
+ }
4860
+ }
4861
+ const Alignments = {
4862
+ LEFT: "left",
4863
+ CENTER: "center",
4864
+ RIGHT: "right"
4865
+ };
4866
+ const GridForm = styled__default["default"].form`
4867
+ display: flex;
4868
+ flex-wrap: wrap;
4869
+ width: 100%;
4870
+ ${(props) => cssMediaRules([props.size], ([size = Sizes.MEDIUM]) => styled.css`
4871
+ font-size: ${getSizeFontSize(size)}px;
4872
+ `)}
4873
+ ${cssWidth()}
4874
+ ${cssMargin()}
4875
+ `;
4876
+ const GridItem$1 = styled__default["default"].div`
4877
+ align-self: flex-end;
4878
+ flex-direction: column;
4879
+ ${cssGridItem()}
4880
+ `;
4881
+ function getAlignmentMargin(alignment) {
4882
+ switch (alignment) {
4883
+ case Alignments.LEFT:
4884
+ return "0 auto 0 0";
4885
+ case Alignments.RIGHT:
4886
+ return "0 0 0 auto";
4887
+ default:
4888
+ return "0 auto";
4889
+ }
4890
+ }
4891
+ const StyledButton = styled__default["default"]((props) => /* @__PURE__ */ jsxRuntime.jsx(Button$1, __spreadProps(__spreadValues({}, props), {
4892
+ as: "button"
4893
+ })))`
4894
+ display: flex;
4895
+ align-items: center;
4896
+ justify-content: center;
4897
+ ${(props) => cssMediaRules([props.size, props.alignment], ([size = Sizes.MEDIUM, alignment = Alignments.CENTER]) => styled.css`
4898
+ min-height: ${getSizeHeight$1(size)}px;
4899
+ max-height: ${getSizeHeight$1(size)}px;
4900
+ margin: ${getAlignmentMargin(alignment)};
4901
+ padding-top: 0;
4902
+ padding-bottom: 0;
4903
+ `)}
4904
+ `;
4905
+ const ErrorContainer = styled__default["default"].div`
4906
+ padding: 8px 16px;
4907
+ background-color: #f19eb9;
4908
+ border-radius: 4px;
4909
+ margin-top: 16px;
4910
+ `;
4911
+ const IconContainer = styled__default["default"].div`
4912
+ fill: currentColor;
4913
+ `;
4914
+ const ErrorMessage = styled__default["default"].p`
4915
+ font-size: 12px;
4916
+ margin: 8px 0;
4917
+ color: rgba(127, 0, 0, 0.95);
4918
+ `;
4919
+ function getTableColumnDefaultValue(tableColumn) {
4920
+ switch (tableColumn.__typename) {
4921
+ case "CheckboxTableColumn":
4922
+ return false;
4923
+ case "MultipleSelectTableColumn":
4924
+ return [];
4925
+ case "SingleLineTextTableColumn":
4926
+ case "LongTextTableColumn":
4927
+ case "SingleSelectTableColumn":
4928
+ case "PhoneNumberTableColumn":
4929
+ case "EmailTableColumn":
4930
+ case "URLTableColumn":
4931
+ case "NumberTableColumn":
4932
+ default:
4933
+ return "";
4934
+ }
4935
+ }
4936
+ const CREATE_TABLE_RECORD = client.gql`
4937
+ mutation CreateTableRecord($input: CreateTableRecordInput!) {
4938
+ createTableRecord(input: $input) {
4939
+ tableRecord {
4940
+ id
4941
+ }
4942
+ }
4943
+ }
4944
+ `;
4945
+ const Form = React.forwardRef(function Form2({
4946
+ id,
4947
+ tableId,
4948
+ fields: fieldsProp,
4949
+ submitLabel = "Submit",
4950
+ submitLink,
4951
+ shape,
4952
+ size,
4953
+ contrast,
4954
+ brandColor,
4955
+ gap,
4956
+ width,
4957
+ margin,
4958
+ submitTextStyle,
4959
+ submitVariant,
4960
+ submitTextColor,
4961
+ submitWidth,
4962
+ submitAlignment,
4963
+ labelTextStyle,
4964
+ labelTextColor
4965
+ }, ref) {
4966
+ const fields = React.useMemo(() => {
4967
+ var _a;
4968
+ return (_a = fieldsProp == null ? void 0 : fieldsProp.fields) != null ? _a : [];
4969
+ }, [fieldsProp]);
4970
+ const grid = React.useMemo(() => {
4971
+ var _a;
4972
+ return (_a = fieldsProp == null ? void 0 : fieldsProp.grid) != null ? _a : [];
4973
+ }, [fieldsProp]);
4974
+ const {
4975
+ data: {
4976
+ table
4977
+ } = {}
4978
+ } = useTable(tableId);
4979
+ const [createTableRecord] = useMutation(CREATE_TABLE_RECORD);
4980
+ const [refEl, setRefEl] = React.useState(null);
4981
+ const [propControllers, setPropControllers] = React.useState(null);
4982
+ const [initialValues, setInitialValues] = React.useState(() => fields.reduce((acc, formField) => {
4983
+ const tableColumn = table && table.columns.find((field) => field.id === formField.tableColumnId);
4984
+ const defaultValue = formField ? formField.defaultValue : null;
4985
+ if (tableColumn) {
4986
+ acc[tableColumn.name] = defaultValue == null ? getTableColumnDefaultValue(tableColumn) : defaultValue;
4987
+ }
4988
+ return acc;
4989
+ }, {}));
4990
+ const controller = propControllers == null ? void 0 : propControllers.fields;
4991
+ const {
4992
+ container,
4993
+ items
4994
+ } = useTableFormFieldRefs(controller, {
4995
+ fieldsCount: fields.length
4996
+ });
4997
+ const [isDone, setIsDone] = React.useState(false);
4998
+ const linkRef = React.useRef(null);
4999
+ React.useImperativeHandle(ref, () => ({
5000
+ getBoxModel() {
5001
+ return refEl instanceof Element ? boxModels.getBox(refEl) : null;
5002
+ },
5003
+ setPropControllers
5004
+ }), [refEl, setPropControllers]);
5005
+ React.useEffect(() => {
5006
+ container(refEl);
5007
+ }, [container, refEl]);
5008
+ React.useEffect(() => {
5009
+ if (!isDone)
5010
+ return;
5011
+ let timeoutId = setTimeout(() => setIsDone(false), 2500);
5012
+ return () => clearTimeout(timeoutId);
5013
+ }, [isDone]);
5014
+ function getTableColumn({
5015
+ tableColumnId
5016
+ }) {
5017
+ return table && table.columns.find((field) => tableColumnId === field.id);
5018
+ }
5019
+ async function handleSubmit(values, {
5020
+ setSubmitting,
5021
+ resetForm,
5022
+ setStatus
5023
+ }) {
5024
+ if (table) {
5025
+ const columns = [];
5026
+ fields.forEach((field) => {
5027
+ const tableColumn = getTableColumn(field);
5028
+ if (tableColumn) {
5029
+ const data = values[tableColumn.name];
5030
+ if (data) {
5031
+ columns.push({
5032
+ columnId: field.tableColumnId,
5033
+ data
5034
+ });
5035
+ if (field.autofill) {
5036
+ localStorage.setItem(`${LOCAL_STORAGE_NAMESPACE}/${tableColumn.name}`, JSON.stringify(data));
5037
+ }
5038
+ }
5039
+ }
5040
+ });
5041
+ try {
5042
+ await createTableRecord({
5043
+ variables: {
5044
+ input: {
5045
+ data: {
5046
+ tableId: table.id,
5047
+ columns
5048
+ }
5049
+ }
5050
+ }
5051
+ });
5052
+ setIsDone(true);
5053
+ setInitialValues((prev) => fields.reduce((acc, field) => {
5054
+ const tableColumn = getTableColumn(field);
5055
+ if (tableColumn) {
5056
+ const data = values[tableColumn.name];
5057
+ if (data && field.autofill)
5058
+ return __spreadProps(__spreadValues({}, acc), {
5059
+ [tableColumn.name]: data
5060
+ });
5061
+ }
5062
+ return acc;
5063
+ }, __spreadValues({}, prev)));
5064
+ resetForm();
5065
+ if (linkRef.current != null)
5066
+ linkRef.current.click();
5067
+ } catch (error) {
5068
+ setStatus({
5069
+ error: "An unexpected error has occurred, please try again later"
5070
+ });
5071
+ } finally {
5072
+ setSubmitting(false);
5073
+ }
5074
+ }
5075
+ }
5076
+ React.useEffect(() => {
5077
+ setInitialValues((prev) => fields.reduce((acc, formField) => {
5078
+ const tableColumn = table && table.columns.find((field) => field.id === formField.tableColumnId);
5079
+ if (tableColumn && formField.autofill) {
5080
+ const storedValue = localStorage.getItem(`${LOCAL_STORAGE_NAMESPACE}/${tableColumn.name}`);
5081
+ if (storedValue) {
5082
+ try {
5083
+ acc[tableColumn.name] = JSON.parse(storedValue);
5084
+ } catch (e) {
5085
+ }
5086
+ }
5087
+ }
5088
+ return acc;
5089
+ }, __spreadValues({}, prev)));
5090
+ }, [fields, table]);
5091
+ const brandColorData = useColor(brandColor);
5092
+ return /* @__PURE__ */ jsxRuntime.jsx(Provider, {
5093
+ value: {
5094
+ shape,
5095
+ size,
5096
+ contrast,
5097
+ brandColor: brandColorData,
5098
+ labelTextStyle,
5099
+ labelTextColor
5100
+ },
5101
+ children: tableId == null ? /* @__PURE__ */ jsxRuntime.jsx(Placeholder$1, {
5102
+ ref: setRefEl,
5103
+ width,
5104
+ margin
5105
+ }) : /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, {
5106
+ children: /* @__PURE__ */ jsxRuntime.jsx(formik.Formik, {
5107
+ onSubmit: handleSubmit,
5108
+ initialValues,
5109
+ initialStatus: {
5110
+ error: null
5111
+ },
5112
+ enableReinitialize: true,
5113
+ children: (formik$1) => {
5114
+ const error = formik$1.status && formik$1.status.error;
5115
+ const errors = fields.map((field) => {
5116
+ const tableColumn = getTableColumn(field);
5117
+ return tableColumn && formik.getIn(formik$1.touched, tableColumn.name) && formik.getIn(formik$1.errors, tableColumn.name);
5118
+ }).filter((message) => typeof message === "string");
5119
+ return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, {
5120
+ children: [/* @__PURE__ */ jsxRuntime.jsxs(GridForm, {
5121
+ ref: setRefEl,
5122
+ id,
5123
+ width,
5124
+ margin,
5125
+ size,
5126
+ onSubmit: formik$1.handleSubmit,
5127
+ onReset: formik$1.handleReset,
5128
+ noValidate: true,
5129
+ children: [fields.map((field, index) => {
5130
+ const tableColumn = getTableColumn(field);
5131
+ return /* @__PURE__ */ jsxRuntime.jsx(GridItem$1, {
5132
+ ref: items[index],
5133
+ grid,
5134
+ index,
5135
+ rowGap: gap,
5136
+ columnGap: gap,
5137
+ children: /* @__PURE__ */ jsxRuntime.jsx(Field, {
5138
+ tableColumn,
5139
+ tableFormField: field
5140
+ })
5141
+ }, field.id);
5142
+ }), /* @__PURE__ */ jsxRuntime.jsxs(GridItem$1, {
5143
+ ref: items[fields.length],
5144
+ grid,
5145
+ index: fields.length,
5146
+ rowGap: gap,
5147
+ columnGap: gap,
5148
+ children: [/* @__PURE__ */ jsxRuntime.jsx(StyledButton, {
5149
+ type: "submit",
5150
+ disabled: formik$1.isSubmitting || isDone,
5151
+ shape,
5152
+ size,
5153
+ color: brandColor,
5154
+ variant: submitVariant,
5155
+ textColor: submitTextColor,
5156
+ width: submitWidth,
5157
+ alignment: submitAlignment,
5158
+ textStyle: submitTextStyle,
5159
+ children: formik$1.isSubmitting ? /* @__PURE__ */ jsxRuntime.jsx(Spinner, {}) : isDone ? /* @__PURE__ */ jsxRuntime.jsx(IconContainer, {
5160
+ children: /* @__PURE__ */ jsxRuntime.jsx(SvgCheck12, {})
5161
+ }) : submitLabel
5162
+ }), (errors.length > 0 || error) && /* @__PURE__ */ jsxRuntime.jsxs(ErrorContainer, {
5163
+ children: [errors.map((message) => /* @__PURE__ */ jsxRuntime.jsx(ErrorMessage, {
5164
+ children: message
5165
+ }, message)), error != null && /* @__PURE__ */ jsxRuntime.jsx(ErrorMessage, {
5166
+ children: error
5167
+ })]
5168
+ })]
5169
+ })]
5170
+ }), submitLink != null && /* @__PURE__ */ jsxRuntime.jsx(Link, {
5171
+ ref: linkRef,
5172
+ hidden: true,
5173
+ link: submitLink
5174
+ })]
5175
+ });
5176
+ }
5177
+ })
5178
+ })
5179
+ });
5180
+ });
5181
+ function registerComponent$5(runtime) {
5182
+ return runtime.registerComponent(Form, {
5183
+ type: "./components/Form/index.js",
5184
+ label: "Form",
5185
+ icon: "Form40",
5186
+ props: {
5187
+ id: descriptors.ElementID(),
5188
+ tableId: descriptors.Table(),
5189
+ fields: descriptors.TableFormFields(),
5190
+ submitLink: descriptors.Link({
5191
+ label: "Redirect to",
5192
+ options: [{
5193
+ value: "OPEN_PAGE",
5194
+ label: "Open page"
5195
+ }, {
5196
+ value: "OPEN_URL",
5197
+ label: "Open URL"
5198
+ }]
5199
+ }),
5200
+ gap: descriptors.GapY({
5201
+ preset: [{
5202
+ deviceId: "desktop",
5203
+ value: {
5204
+ value: 10,
5205
+ unit: "px"
5206
+ }
5207
+ }],
5208
+ label: "Gap",
5209
+ defaultValue: {
5210
+ value: 0,
5211
+ unit: "px"
5212
+ }
5213
+ }),
5214
+ shape: descriptors.ResponsiveIconRadioGroup({
5215
+ label: "Shape",
5216
+ options: [{
5217
+ label: "Pill",
5218
+ value: Shapes.PILL,
5219
+ icon: "ButtonPill16"
5220
+ }, {
5221
+ label: "Rounded",
5222
+ value: Shapes.ROUNDED,
5223
+ icon: "ButtonRounded16"
5224
+ }, {
5225
+ label: "Square",
5226
+ value: Shapes.SQUARE,
5227
+ icon: "ButtonSquare16"
5228
+ }],
5229
+ defaultValue: Shapes.ROUNDED
5230
+ }),
5231
+ size: descriptors.ResponsiveIconRadioGroup({
5232
+ label: "Size",
5233
+ options: [{
5234
+ label: "Small",
5235
+ value: Sizes.SMALL,
5236
+ icon: "SizeSmall16"
5237
+ }, {
5238
+ label: "Medium",
5239
+ value: Sizes.MEDIUM,
5240
+ icon: "SizeMedium16"
5241
+ }, {
5242
+ label: "Large",
5243
+ value: Sizes.LARGE,
5244
+ icon: "SizeLarge16"
5245
+ }],
5246
+ defaultValue: Sizes.MEDIUM
5247
+ }),
5248
+ contrast: descriptors.ResponsiveIconRadioGroup({
5249
+ label: "Color",
5250
+ options: [{
5251
+ label: "Light mode",
5252
+ value: Contrasts.LIGHT,
5253
+ icon: "Sun16"
5254
+ }, {
5255
+ label: "Dark mode",
5256
+ value: Contrasts.DARK,
5257
+ icon: "Moon16"
5258
+ }],
5259
+ defaultValue: Contrasts.LIGHT
5260
+ }),
5261
+ labelTextStyle: descriptors.TextStyle({
5262
+ label: "Label text style"
5263
+ }),
5264
+ labelTextColor: descriptors.ResponsiveColor({
5265
+ label: "Label text color"
5266
+ }),
5267
+ submitTextStyle: descriptors.TextStyle({
5268
+ label: "Button text style"
5269
+ }),
5270
+ brandColor: descriptors.ResponsiveColor({
5271
+ label: "Button color",
5272
+ placeholder: "black"
5273
+ }),
5274
+ submitTextColor: descriptors.ResponsiveColor({
5275
+ label: "Button text color",
5276
+ placeholder: "white"
5277
+ }),
5278
+ submitLabel: descriptors.TextInput({
5279
+ label: "Button label",
5280
+ placeholder: "Submit"
5281
+ }),
5282
+ submitVariant: descriptors.ResponsiveSelect({
5283
+ label: "Button style",
5284
+ options: [{
5285
+ value: "flat",
5286
+ label: "Flat"
5287
+ }, {
5288
+ value: "outline",
5289
+ label: "Outline"
5290
+ }, {
5291
+ value: "shadow",
5292
+ label: "Floating"
5293
+ }, {
5294
+ value: "clear",
5295
+ label: "Clear"
5296
+ }, {
5297
+ value: "blocky",
5298
+ label: "Blocky"
5299
+ }, {
5300
+ value: "bubbly",
5301
+ label: "Bubbly"
5302
+ }, {
5303
+ value: "skewed",
5304
+ label: "Skewed"
5305
+ }],
5306
+ defaultValue: "flat"
5307
+ }),
5308
+ submitWidth: descriptors.ResponsiveLength({
5309
+ label: "Button width"
5310
+ }),
5311
+ submitAlignment: descriptors.ResponsiveIconRadioGroup({
5312
+ label: "Button alignment",
5313
+ options: [{
5314
+ label: "Left",
5315
+ value: Alignments.LEFT,
5316
+ icon: "AlignLeft16"
5317
+ }, {
5318
+ label: "Center",
5319
+ value: Alignments.CENTER,
5320
+ icon: "AlignCenter16"
5321
+ }, {
5322
+ label: "Right",
5323
+ value: Alignments.RIGHT,
5324
+ icon: "AlignRight16"
5325
+ }],
5326
+ defaultValue: Alignments.CENTER
5327
+ }),
5328
+ width: descriptors.Width({
5329
+ preset: [{
5330
+ deviceId: "desktop",
5331
+ value: {
5332
+ value: 550,
5333
+ unit: "px"
5334
+ }
5335
+ }],
5336
+ defaultValue: {
5337
+ value: 100,
5338
+ unit: "%"
5339
+ }
5340
+ }),
5341
+ margin: descriptors.Margin()
5342
+ }
5343
+ });
5344
+ }
5345
+ var _path$s;
5346
+ function _extends$s() {
5347
+ _extends$s = Object.assign || function(target) {
5348
+ for (var i = 1; i < arguments.length; i++) {
5349
+ var source = arguments[i];
5350
+ for (var key in source) {
5351
+ if (Object.prototype.hasOwnProperty.call(source, key)) {
5352
+ target[key] = source[key];
5353
+ }
5354
+ }
5355
+ }
5356
+ return target;
5357
+ };
5358
+ return _extends$s.apply(this, arguments);
5359
+ }
5360
+ var SvgMobileMenu28 = function SvgMobileMenu282(props) {
5361
+ return /* @__PURE__ */ React__namespace.createElement("svg", _extends$s({
5362
+ xmlns: "http://www.w3.org/2000/svg",
5363
+ width: 28,
5364
+ height: 28
5365
+ }, props), _path$s || (_path$s = /* @__PURE__ */ React__namespace.createElement("path", {
5366
+ 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"
5367
+ })));
5368
+ };
5369
+ const GutterContainer = styled__default["default"].div`
5370
+ ${(p) => cssMediaRules([p.gutter], ([gutter = {
5371
+ value: 0,
5372
+ unit: "px"
5373
+ }]) => styled.css`
5374
+ padding-left: ${p.first ? "0px" : `${gutter.value / 2}${gutter.unit}`};
5375
+ padding-right: ${p.last ? "0px" : `${gutter.value / 2}${gutter.unit}`};
5376
+ `)}
5377
+ `;
5378
+ const PlaceholderLink$1 = styled__default["default"].div`
5379
+ width: ${(props) => props.width}px;
5380
+ height: ${(props) => props.button === true ? 32 : 8}px;
5381
+ background-color: #a1a8c2;
5382
+ border-radius: ${(props) => props.button === true ? 6 : 2}px;
5383
+ opacity: 0.4;
5384
+ `;
5385
+ const links$1 = [{
5386
+ width: 50
5387
+ }, {
5388
+ width: 70
5389
+ }, {
5390
+ width: 60
5391
+ }, {
5392
+ width: 80,
5393
+ button: true
5394
+ }];
5395
+ function LinksPlaceholder({
5396
+ gutter
5397
+ }) {
5398
+ return /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, {
5399
+ children: links$1.map((link, i) => /* @__PURE__ */ jsxRuntime.jsx(GutterContainer, {
5400
+ gutter,
5401
+ first: i === 0,
5402
+ last: i === links$1.length - 1,
5403
+ children: /* @__PURE__ */ jsxRuntime.jsx(PlaceholderLink$1, __spreadValues({}, link))
5404
+ }, i))
5405
+ });
5406
+ }
5407
+ var _path$r;
5408
+ function _extends$r() {
5409
+ _extends$r = Object.assign || function(target) {
5410
+ for (var i = 1; i < arguments.length; i++) {
5411
+ var source = arguments[i];
5412
+ for (var key in source) {
5413
+ if (Object.prototype.hasOwnProperty.call(source, key)) {
5414
+ target[key] = source[key];
5415
+ }
5416
+ }
5417
+ }
5418
+ return target;
5419
+ };
5420
+ return _extends$r.apply(this, arguments);
5421
+ }
5422
+ var SvgCaretDown8 = function SvgCaretDown82(props) {
5423
+ return /* @__PURE__ */ React__namespace.createElement("svg", _extends$r({
5424
+ width: 8,
3504
5425
  height: 8,
3505
5426
  xmlns: "http://www.w3.org/2000/svg"
3506
- }, props), _path$p || (_path$p = /* @__PURE__ */ React__namespace.createElement("path", {
5427
+ }, props), _path$r || (_path$r = /* @__PURE__ */ React__namespace.createElement("path", {
5428
+ 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"
5429
+ })));
5430
+ };
5431
+ var _path$q;
5432
+ function _extends$q() {
5433
+ _extends$q = Object.assign || function(target) {
5434
+ for (var i = 1; i < arguments.length; i++) {
5435
+ var source = arguments[i];
5436
+ for (var key in source) {
5437
+ if (Object.prototype.hasOwnProperty.call(source, key)) {
5438
+ target[key] = source[key];
5439
+ }
5440
+ }
5441
+ }
5442
+ return target;
5443
+ };
5444
+ return _extends$q.apply(this, arguments);
5445
+ }
5446
+ var SvgPlus8 = function SvgPlus82(props) {
5447
+ return /* @__PURE__ */ React__namespace.createElement("svg", _extends$q({
5448
+ width: 8,
5449
+ height: 8,
5450
+ xmlns: "http://www.w3.org/2000/svg"
5451
+ }, props), _path$q || (_path$q = /* @__PURE__ */ React__namespace.createElement("path", {
3507
5452
  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"
3508
5453
  })));
3509
5454
  };
3510
- var _path$o;
3511
- function _extends$o() {
3512
- _extends$o = Object.assign || function(target) {
5455
+ var _path$p;
5456
+ function _extends$p() {
5457
+ _extends$p = Object.assign || function(target) {
3513
5458
  for (var i = 1; i < arguments.length; i++) {
3514
5459
  var source = arguments[i];
3515
5460
  for (var key in source) {
@@ -3520,20 +5465,20 @@ function _extends$o() {
3520
5465
  }
3521
5466
  return target;
3522
5467
  };
3523
- return _extends$o.apply(this, arguments);
5468
+ return _extends$p.apply(this, arguments);
3524
5469
  }
3525
5470
  var SvgArrowDown8 = function SvgArrowDown82(props) {
3526
- return /* @__PURE__ */ React__namespace.createElement("svg", _extends$o({
5471
+ return /* @__PURE__ */ React__namespace.createElement("svg", _extends$p({
3527
5472
  width: 8,
3528
5473
  height: 8,
3529
5474
  xmlns: "http://www.w3.org/2000/svg"
3530
- }, props), _path$o || (_path$o = /* @__PURE__ */ React__namespace.createElement("path", {
5475
+ }, props), _path$p || (_path$p = /* @__PURE__ */ React__namespace.createElement("path", {
3531
5476
  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"
3532
5477
  })));
3533
5478
  };
3534
- var _path$n;
3535
- function _extends$n() {
3536
- _extends$n = Object.assign || function(target) {
5479
+ var _path$o;
5480
+ function _extends$o() {
5481
+ _extends$o = Object.assign || function(target) {
3537
5482
  for (var i = 1; i < arguments.length; i++) {
3538
5483
  var source = arguments[i];
3539
5484
  for (var key in source) {
@@ -3544,14 +5489,14 @@ function _extends$n() {
3544
5489
  }
3545
5490
  return target;
3546
5491
  };
3547
- return _extends$n.apply(this, arguments);
5492
+ return _extends$o.apply(this, arguments);
3548
5493
  }
3549
5494
  var SvgChevronDown8 = function SvgChevronDown82(props) {
3550
- return /* @__PURE__ */ React__namespace.createElement("svg", _extends$n({
5495
+ return /* @__PURE__ */ React__namespace.createElement("svg", _extends$o({
3551
5496
  width: 8,
3552
5497
  height: 8,
3553
5498
  xmlns: "http://www.w3.org/2000/svg"
3554
- }, props), _path$n || (_path$n = /* @__PURE__ */ React__namespace.createElement("path", {
5499
+ }, props), _path$o || (_path$o = /* @__PURE__ */ React__namespace.createElement("path", {
3555
5500
  fillRule: "evenodd",
3556
5501
  clipRule: "evenodd",
3557
5502
  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"
@@ -3626,22 +5571,22 @@ const StyledDropDownItem = styled__default["default"](Link)`
3626
5571
  background-color: rgba(0, 0, 0, 0.04);
3627
5572
  }
3628
5573
  `;
3629
- function DropDownItem$1(_o) {
3630
- var _p = _o, {
5574
+ function DropDownItem$1(_S) {
5575
+ var _T = _S, {
3631
5576
  color
3632
- } = _p, restOfProps = __objRest(_p, [
5577
+ } = _T, restOfProps = __objRest(_T, [
3633
5578
  "color"
3634
5579
  ]);
3635
5580
  return /* @__PURE__ */ jsxRuntime.jsx(StyledDropDownItem, __spreadProps(__spreadValues({}, restOfProps), {
3636
5581
  color: useColor(color)
3637
5582
  }));
3638
5583
  }
3639
- function DropDownButton(_q) {
3640
- var _r = _q, {
5584
+ function DropDownButton(_U) {
5585
+ var _V = _U, {
3641
5586
  label,
3642
5587
  caret = "caret",
3643
5588
  links: links2 = []
3644
- } = _r, restOfProps = __objRest(_r, [
5589
+ } = _V, restOfProps = __objRest(_V, [
3645
5590
  "label",
3646
5591
  "caret",
3647
5592
  "links"
@@ -3657,7 +5602,7 @@ function DropDownButton(_q) {
3657
5602
  }, [setPosition]);
3658
5603
  return /* @__PURE__ */ jsxRuntime.jsxs(DropDownContainer, {
3659
5604
  ref: container,
3660
- children: [/* @__PURE__ */ jsxRuntime.jsx(Button, __spreadProps(__spreadValues({}, restOfProps), {
5605
+ children: [/* @__PURE__ */ jsxRuntime.jsx(Button$1, __spreadProps(__spreadValues({}, restOfProps), {
3661
5606
  children: /* @__PURE__ */ jsxRuntime.jsxs("div", {
3662
5607
  style: {
3663
5608
  display: "flex",
@@ -3687,9 +5632,9 @@ function DropDownButton(_q) {
3687
5632
  })]
3688
5633
  });
3689
5634
  }
3690
- var _path$m;
3691
- function _extends$m() {
3692
- _extends$m = Object.assign || function(target) {
5635
+ var _path$n;
5636
+ function _extends$n() {
5637
+ _extends$n = Object.assign || function(target) {
3693
5638
  for (var i = 1; i < arguments.length; i++) {
3694
5639
  var source = arguments[i];
3695
5640
  for (var key in source) {
@@ -3700,14 +5645,14 @@ function _extends$m() {
3700
5645
  }
3701
5646
  return target;
3702
5647
  };
3703
- return _extends$m.apply(this, arguments);
5648
+ return _extends$n.apply(this, arguments);
3704
5649
  }
3705
5650
  var SvgTimes16 = function SvgTimes162(props) {
3706
- return /* @__PURE__ */ React__namespace.createElement("svg", _extends$m({
5651
+ return /* @__PURE__ */ React__namespace.createElement("svg", _extends$n({
3707
5652
  width: 16,
3708
5653
  height: 16,
3709
5654
  xmlns: "http://www.w3.org/2000/svg"
3710
- }, props), _path$m || (_path$m = /* @__PURE__ */ React__namespace.createElement("path", {
5655
+ }, props), _path$n || (_path$n = /* @__PURE__ */ React__namespace.createElement("path", {
3711
5656
  fillRule: "evenodd",
3712
5657
  clipRule: "evenodd",
3713
5658
  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"
@@ -3718,7 +5663,7 @@ const DropDownMenu = styled__default["default"].div`
3718
5663
  flex-direction: column;
3719
5664
  padding: 8px;
3720
5665
  `;
3721
- const ButtonLink$1 = styled__default["default"](Button)`
5666
+ const ButtonLink$1 = styled__default["default"](Button$1)`
3722
5667
  margin: 8px 0;
3723
5668
  `;
3724
5669
  const StyledLink$2 = styled__default["default"](Link)`
@@ -3731,24 +5676,24 @@ const StyledLink$2 = styled__default["default"](Link)`
3731
5676
  color: ${color == null ? "black" : colorToString(color)};
3732
5677
  `)}
3733
5678
  `;
3734
- function DropDownItem(_s) {
3735
- var _t = _s, {
5679
+ function DropDownItem(_W) {
5680
+ var _X = _W, {
3736
5681
  color
3737
- } = _t, restOfProps = __objRest(_t, [
5682
+ } = _X, restOfProps = __objRest(_X, [
3738
5683
  "color"
3739
5684
  ]);
3740
5685
  return /* @__PURE__ */ jsxRuntime.jsx(StyledLink$2, __spreadProps(__spreadValues({}, restOfProps), {
3741
5686
  color: useColor(color)
3742
5687
  }));
3743
5688
  }
3744
- function MobileDropDownButton(_u) {
3745
- var _v = _u, {
5689
+ function MobileDropDownButton(_Y) {
5690
+ var _Z = _Y, {
3746
5691
  label,
3747
5692
  caret,
3748
5693
  links: links2 = [],
3749
5694
  onClose = () => {
3750
5695
  }
3751
- } = _v, restOfProps = __objRest(_v, [
5696
+ } = _Z, restOfProps = __objRest(_Z, [
3752
5697
  "label",
3753
5698
  "caret",
3754
5699
  "links",
@@ -3790,10 +5735,10 @@ function MobileDropDownButton(_u) {
3790
5735
  })]
3791
5736
  });
3792
5737
  }
3793
- const ButtonLink = styled__default["default"](Button)`
5738
+ const ButtonLink = styled__default["default"](Button$1)`
3794
5739
  margin: 8px 0;
3795
5740
  `;
3796
- const Container$2 = styled__default["default"].div`
5741
+ const Container$3 = styled__default["default"].div`
3797
5742
  position: fixed;
3798
5743
  flex-direction: column;
3799
5744
  width: 100%;
@@ -3847,7 +5792,7 @@ function MobileMenu({
3847
5792
  onClose = () => {
3848
5793
  }
3849
5794
  }) {
3850
- return /* @__PURE__ */ jsxRuntime.jsxs(Container$2, {
5795
+ return /* @__PURE__ */ jsxRuntime.jsxs(Container$3, {
3851
5796
  animation,
3852
5797
  backgroundColor: useColor(backgroundColor),
3853
5798
  open,
@@ -3873,7 +5818,7 @@ function MobileMenu({
3873
5818
  })]
3874
5819
  });
3875
5820
  }
3876
- const Container$1 = styled__default["default"].nav`
5821
+ const Container$2 = styled__default["default"].nav`
3877
5822
  display: flex;
3878
5823
  align-items: center;
3879
5824
  ${cssWidth()}
@@ -3930,7 +5875,7 @@ const Navigation = React.forwardRef(function Navigation2({
3930
5875
  margin
3931
5876
  }, ref) {
3932
5877
  const [isOpen, setIsOpen] = React.useState(false);
3933
- return /* @__PURE__ */ jsxRuntime.jsxs(Container$1, {
5878
+ return /* @__PURE__ */ jsxRuntime.jsxs(Container$2, {
3934
5879
  ref,
3935
5880
  id,
3936
5881
  margin,
@@ -3955,7 +5900,7 @@ const Navigation = React.forwardRef(function Navigation2({
3955
5900
  gutter,
3956
5901
  first: i === 0,
3957
5902
  last: i === links2.length - 1,
3958
- children: [link.type === "button" && /* @__PURE__ */ jsxRuntime.jsx(Button, __spreadProps(__spreadValues({}, link.payload), {
5903
+ children: [link.type === "button" && /* @__PURE__ */ jsxRuntime.jsx(Button$1, __spreadProps(__spreadValues({}, link.payload), {
3959
5904
  children: link.payload.label
3960
5905
  })), link.type === "dropdown" && /* @__PURE__ */ jsxRuntime.jsx(DropDownButton, __spreadValues({}, link.payload))]
3961
5906
  }, link.id)) : /* @__PURE__ */ jsxRuntime.jsx(LinksPlaceholder, {
@@ -3978,7 +5923,7 @@ const Navigation = React.forwardRef(function Navigation2({
3978
5923
  })]
3979
5924
  });
3980
5925
  });
3981
- function registerComponent$3(runtime) {
5926
+ function registerComponent$4(runtime) {
3982
5927
  return runtime.registerComponent(Navigation, {
3983
5928
  type: "./components/Navigation/index.js",
3984
5929
  label: "Navigation",
@@ -4082,7 +6027,7 @@ const PlaceholderBase = styled__default["default"].div`
4082
6027
  height: 80px;
4083
6028
  padding: 8px;
4084
6029
  `;
4085
- var Placeholder = React.forwardRef(function Placeholder3(props, ref) {
6030
+ var Placeholder = React.forwardRef(function Placeholder4(props, ref) {
4086
6031
  return /* @__PURE__ */ jsxRuntime.jsx(PlaceholderBase, __spreadProps(__spreadValues({}, props), {
4087
6032
  ref,
4088
6033
  children: /* @__PURE__ */ jsxRuntime.jsx("svg", {
@@ -4155,7 +6100,7 @@ const Root = React.forwardRef(function Page2({
4155
6100
  })]
4156
6101
  });
4157
6102
  });
4158
- function registerComponent$2(runtime) {
6103
+ function registerComponent$3(runtime) {
4159
6104
  return runtime.registerComponent(Root, {
4160
6105
  type: "./components/Root/index.js",
4161
6106
  label: "Page",
@@ -4168,6 +6113,30 @@ function registerComponent$2(runtime) {
4168
6113
  }
4169
6114
  });
4170
6115
  }
6116
+ var _path$m;
6117
+ function _extends$m() {
6118
+ _extends$m = Object.assign || function(target) {
6119
+ for (var i = 1; i < arguments.length; i++) {
6120
+ var source = arguments[i];
6121
+ for (var key in source) {
6122
+ if (Object.prototype.hasOwnProperty.call(source, key)) {
6123
+ target[key] = source[key];
6124
+ }
6125
+ }
6126
+ }
6127
+ return target;
6128
+ };
6129
+ return _extends$m.apply(this, arguments);
6130
+ }
6131
+ var SvgLogoAngellist20 = function SvgLogoAngellist202(props) {
6132
+ return /* @__PURE__ */ React__namespace.createElement("svg", _extends$m({
6133
+ xmlns: "http://www.w3.org/2000/svg",
6134
+ width: 20,
6135
+ height: 20
6136
+ }, props), _path$m || (_path$m = /* @__PURE__ */ React__namespace.createElement("path", {
6137
+ 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"
6138
+ })));
6139
+ };
4171
6140
  var _path$l;
4172
6141
  function _extends$l() {
4173
6142
  _extends$l = Object.assign || function(target) {
@@ -4183,13 +6152,13 @@ function _extends$l() {
4183
6152
  };
4184
6153
  return _extends$l.apply(this, arguments);
4185
6154
  }
4186
- var SvgLogoAngellist20 = function SvgLogoAngellist202(props) {
6155
+ var SvgLogoCodepen20 = function SvgLogoCodepen202(props) {
4187
6156
  return /* @__PURE__ */ React__namespace.createElement("svg", _extends$l({
4188
6157
  xmlns: "http://www.w3.org/2000/svg",
4189
6158
  width: 20,
4190
6159
  height: 20
4191
6160
  }, props), _path$l || (_path$l = /* @__PURE__ */ React__namespace.createElement("path", {
4192
- 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"
6161
+ 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"
4193
6162
  })));
4194
6163
  };
4195
6164
  var _path$k;
@@ -4207,13 +6176,13 @@ function _extends$k() {
4207
6176
  };
4208
6177
  return _extends$k.apply(this, arguments);
4209
6178
  }
4210
- var SvgLogoCodepen20 = function SvgLogoCodepen202(props) {
6179
+ var SvgLogoDribbble20 = function SvgLogoDribbble202(props) {
4211
6180
  return /* @__PURE__ */ React__namespace.createElement("svg", _extends$k({
4212
6181
  xmlns: "http://www.w3.org/2000/svg",
4213
6182
  width: 20,
4214
6183
  height: 20
4215
6184
  }, props), _path$k || (_path$k = /* @__PURE__ */ React__namespace.createElement("path", {
4216
- 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"
6185
+ 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"
4217
6186
  })));
4218
6187
  };
4219
6188
  var _path$j;
@@ -4231,13 +6200,13 @@ function _extends$j() {
4231
6200
  };
4232
6201
  return _extends$j.apply(this, arguments);
4233
6202
  }
4234
- var SvgLogoDribbble20 = function SvgLogoDribbble202(props) {
6203
+ var SvgLogoFacebook20 = function SvgLogoFacebook202(props) {
4235
6204
  return /* @__PURE__ */ React__namespace.createElement("svg", _extends$j({
4236
6205
  xmlns: "http://www.w3.org/2000/svg",
4237
6206
  width: 20,
4238
6207
  height: 20
4239
6208
  }, props), _path$j || (_path$j = /* @__PURE__ */ React__namespace.createElement("path", {
4240
- 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"
6209
+ 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"
4241
6210
  })));
4242
6211
  };
4243
6212
  var _path$i;
@@ -4255,13 +6224,13 @@ function _extends$i() {
4255
6224
  };
4256
6225
  return _extends$i.apply(this, arguments);
4257
6226
  }
4258
- var SvgLogoFacebook20 = function SvgLogoFacebook202(props) {
6227
+ var SvgLogoGithub20 = function SvgLogoGithub202(props) {
4259
6228
  return /* @__PURE__ */ React__namespace.createElement("svg", _extends$i({
4260
6229
  xmlns: "http://www.w3.org/2000/svg",
4261
6230
  width: 20,
4262
6231
  height: 20
4263
6232
  }, props), _path$i || (_path$i = /* @__PURE__ */ React__namespace.createElement("path", {
4264
- 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"
6233
+ 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"
4265
6234
  })));
4266
6235
  };
4267
6236
  var _path$h;
@@ -4279,13 +6248,13 @@ function _extends$h() {
4279
6248
  };
4280
6249
  return _extends$h.apply(this, arguments);
4281
6250
  }
4282
- var SvgLogoGithub20 = function SvgLogoGithub202(props) {
6251
+ var SvgLogoInstagram20 = function SvgLogoInstagram202(props) {
4283
6252
  return /* @__PURE__ */ React__namespace.createElement("svg", _extends$h({
4284
6253
  xmlns: "http://www.w3.org/2000/svg",
4285
6254
  width: 20,
4286
6255
  height: 20
4287
6256
  }, props), _path$h || (_path$h = /* @__PURE__ */ React__namespace.createElement("path", {
4288
- 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"
6257
+ 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"
4289
6258
  })));
4290
6259
  };
4291
6260
  var _path$g;
@@ -4303,13 +6272,13 @@ function _extends$g() {
4303
6272
  };
4304
6273
  return _extends$g.apply(this, arguments);
4305
6274
  }
4306
- var SvgLogoInstagram20 = function SvgLogoInstagram202(props) {
6275
+ var SvgLogoLinkedin20 = function SvgLogoLinkedin202(props) {
4307
6276
  return /* @__PURE__ */ React__namespace.createElement("svg", _extends$g({
4308
6277
  xmlns: "http://www.w3.org/2000/svg",
4309
6278
  width: 20,
4310
6279
  height: 20
4311
6280
  }, props), _path$g || (_path$g = /* @__PURE__ */ React__namespace.createElement("path", {
4312
- 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"
6281
+ 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"
4313
6282
  })));
4314
6283
  };
4315
6284
  var _path$f;
@@ -4327,13 +6296,13 @@ function _extends$f() {
4327
6296
  };
4328
6297
  return _extends$f.apply(this, arguments);
4329
6298
  }
4330
- var SvgLogoLinkedin20 = function SvgLogoLinkedin202(props) {
6299
+ var SvgLogoMedium20 = function SvgLogoMedium202(props) {
4331
6300
  return /* @__PURE__ */ React__namespace.createElement("svg", _extends$f({
4332
6301
  xmlns: "http://www.w3.org/2000/svg",
4333
6302
  width: 20,
4334
6303
  height: 20
4335
6304
  }, props), _path$f || (_path$f = /* @__PURE__ */ React__namespace.createElement("path", {
4336
- 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"
6305
+ 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"
4337
6306
  })));
4338
6307
  };
4339
6308
  var _path$e;
@@ -4351,13 +6320,13 @@ function _extends$e() {
4351
6320
  };
4352
6321
  return _extends$e.apply(this, arguments);
4353
6322
  }
4354
- var SvgLogoMedium20 = function SvgLogoMedium202(props) {
6323
+ var SvgLogoPinterest20 = function SvgLogoPinterest202(props) {
4355
6324
  return /* @__PURE__ */ React__namespace.createElement("svg", _extends$e({
4356
6325
  xmlns: "http://www.w3.org/2000/svg",
4357
6326
  width: 20,
4358
6327
  height: 20
4359
6328
  }, props), _path$e || (_path$e = /* @__PURE__ */ React__namespace.createElement("path", {
4360
- 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"
6329
+ 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"
4361
6330
  })));
4362
6331
  };
4363
6332
  var _path$d;
@@ -4375,13 +6344,13 @@ function _extends$d() {
4375
6344
  };
4376
6345
  return _extends$d.apply(this, arguments);
4377
6346
  }
4378
- var SvgLogoPinterest20 = function SvgLogoPinterest202(props) {
6347
+ var SvgLogoReddit20 = function SvgLogoReddit202(props) {
4379
6348
  return /* @__PURE__ */ React__namespace.createElement("svg", _extends$d({
4380
6349
  xmlns: "http://www.w3.org/2000/svg",
4381
6350
  width: 20,
4382
6351
  height: 20
4383
6352
  }, props), _path$d || (_path$d = /* @__PURE__ */ React__namespace.createElement("path", {
4384
- 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"
6353
+ 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"
4385
6354
  })));
4386
6355
  };
4387
6356
  var _path$c;
@@ -4399,13 +6368,13 @@ function _extends$c() {
4399
6368
  };
4400
6369
  return _extends$c.apply(this, arguments);
4401
6370
  }
4402
- var SvgLogoReddit20 = function SvgLogoReddit202(props) {
6371
+ var SvgLogoRss20 = function SvgLogoRss202(props) {
4403
6372
  return /* @__PURE__ */ React__namespace.createElement("svg", _extends$c({
4404
6373
  xmlns: "http://www.w3.org/2000/svg",
4405
6374
  width: 20,
4406
6375
  height: 20
4407
6376
  }, props), _path$c || (_path$c = /* @__PURE__ */ React__namespace.createElement("path", {
4408
- 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"
6377
+ 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"
4409
6378
  })));
4410
6379
  };
4411
6380
  var _path$b;
@@ -4423,13 +6392,13 @@ function _extends$b() {
4423
6392
  };
4424
6393
  return _extends$b.apply(this, arguments);
4425
6394
  }
4426
- var SvgLogoRss20 = function SvgLogoRss202(props) {
6395
+ var SvgLogoSnapchat20 = function SvgLogoSnapchat202(props) {
4427
6396
  return /* @__PURE__ */ React__namespace.createElement("svg", _extends$b({
4428
6397
  xmlns: "http://www.w3.org/2000/svg",
4429
6398
  width: 20,
4430
6399
  height: 20
4431
6400
  }, props), _path$b || (_path$b = /* @__PURE__ */ React__namespace.createElement("path", {
4432
- 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"
6401
+ 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"
4433
6402
  })));
4434
6403
  };
4435
6404
  var _path$a;
@@ -4447,13 +6416,13 @@ function _extends$a() {
4447
6416
  };
4448
6417
  return _extends$a.apply(this, arguments);
4449
6418
  }
4450
- var SvgLogoSnapchat20 = function SvgLogoSnapchat202(props) {
6419
+ var SvgLogoSoundcloud20 = function SvgLogoSoundcloud202(props) {
4451
6420
  return /* @__PURE__ */ React__namespace.createElement("svg", _extends$a({
4452
6421
  xmlns: "http://www.w3.org/2000/svg",
4453
6422
  width: 20,
4454
6423
  height: 20
4455
6424
  }, props), _path$a || (_path$a = /* @__PURE__ */ React__namespace.createElement("path", {
4456
- 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"
6425
+ 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"
4457
6426
  })));
4458
6427
  };
4459
6428
  var _path$9;
@@ -4471,13 +6440,13 @@ function _extends$9() {
4471
6440
  };
4472
6441
  return _extends$9.apply(this, arguments);
4473
6442
  }
4474
- var SvgLogoSoundcloud20 = function SvgLogoSoundcloud202(props) {
6443
+ var SvgLogoSpotify20 = function SvgLogoSpotify202(props) {
4475
6444
  return /* @__PURE__ */ React__namespace.createElement("svg", _extends$9({
4476
6445
  xmlns: "http://www.w3.org/2000/svg",
4477
6446
  width: 20,
4478
6447
  height: 20
4479
6448
  }, props), _path$9 || (_path$9 = /* @__PURE__ */ React__namespace.createElement("path", {
4480
- 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"
6449
+ 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"
4481
6450
  })));
4482
6451
  };
4483
6452
  var _path$8;
@@ -4495,13 +6464,13 @@ function _extends$8() {
4495
6464
  };
4496
6465
  return _extends$8.apply(this, arguments);
4497
6466
  }
4498
- var SvgLogoSpotify20 = function SvgLogoSpotify202(props) {
6467
+ var SvgLogoTelegram20 = function SvgLogoTelegram202(props) {
4499
6468
  return /* @__PURE__ */ React__namespace.createElement("svg", _extends$8({
4500
6469
  xmlns: "http://www.w3.org/2000/svg",
4501
6470
  width: 20,
4502
6471
  height: 20
4503
6472
  }, props), _path$8 || (_path$8 = /* @__PURE__ */ React__namespace.createElement("path", {
4504
- 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"
6473
+ 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"
4505
6474
  })));
4506
6475
  };
4507
6476
  var _path$7;
@@ -4519,13 +6488,13 @@ function _extends$7() {
4519
6488
  };
4520
6489
  return _extends$7.apply(this, arguments);
4521
6490
  }
4522
- var SvgLogoTelegram20 = function SvgLogoTelegram202(props) {
6491
+ var SvgLogoTumblr20 = function SvgLogoTumblr202(props) {
4523
6492
  return /* @__PURE__ */ React__namespace.createElement("svg", _extends$7({
4524
6493
  xmlns: "http://www.w3.org/2000/svg",
4525
6494
  width: 20,
4526
6495
  height: 20
4527
6496
  }, props), _path$7 || (_path$7 = /* @__PURE__ */ React__namespace.createElement("path", {
4528
- 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"
6497
+ 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"
4529
6498
  })));
4530
6499
  };
4531
6500
  var _path$6;
@@ -4543,13 +6512,13 @@ function _extends$6() {
4543
6512
  };
4544
6513
  return _extends$6.apply(this, arguments);
4545
6514
  }
4546
- var SvgLogoTumblr20 = function SvgLogoTumblr202(props) {
6515
+ var SvgLogoTwitch20 = function SvgLogoTwitch202(props) {
4547
6516
  return /* @__PURE__ */ React__namespace.createElement("svg", _extends$6({
4548
6517
  xmlns: "http://www.w3.org/2000/svg",
4549
6518
  width: 20,
4550
6519
  height: 20
4551
6520
  }, props), _path$6 || (_path$6 = /* @__PURE__ */ React__namespace.createElement("path", {
4552
- 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"
6521
+ 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"
4553
6522
  })));
4554
6523
  };
4555
6524
  var _path$5;
@@ -4567,13 +6536,13 @@ function _extends$5() {
4567
6536
  };
4568
6537
  return _extends$5.apply(this, arguments);
4569
6538
  }
4570
- var SvgLogoTwitch20 = function SvgLogoTwitch202(props) {
6539
+ var SvgLogoTwitter20 = function SvgLogoTwitter202(props) {
4571
6540
  return /* @__PURE__ */ React__namespace.createElement("svg", _extends$5({
4572
6541
  xmlns: "http://www.w3.org/2000/svg",
4573
6542
  width: 20,
4574
6543
  height: 20
4575
6544
  }, props), _path$5 || (_path$5 = /* @__PURE__ */ React__namespace.createElement("path", {
4576
- 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"
6545
+ 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"
4577
6546
  })));
4578
6547
  };
4579
6548
  var _path$4;
@@ -4591,13 +6560,13 @@ function _extends$4() {
4591
6560
  };
4592
6561
  return _extends$4.apply(this, arguments);
4593
6562
  }
4594
- var SvgLogoTwitter20 = function SvgLogoTwitter202(props) {
6563
+ var SvgLogoWhatsapp20 = function SvgLogoWhatsapp202(props) {
4595
6564
  return /* @__PURE__ */ React__namespace.createElement("svg", _extends$4({
4596
6565
  xmlns: "http://www.w3.org/2000/svg",
4597
6566
  width: 20,
4598
6567
  height: 20
4599
6568
  }, props), _path$4 || (_path$4 = /* @__PURE__ */ React__namespace.createElement("path", {
4600
- 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"
6569
+ 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"
4601
6570
  })));
4602
6571
  };
4603
6572
  var _path$3;
@@ -4615,13 +6584,13 @@ function _extends$3() {
4615
6584
  };
4616
6585
  return _extends$3.apply(this, arguments);
4617
6586
  }
4618
- var SvgLogoWhatsapp20 = function SvgLogoWhatsapp202(props) {
6587
+ var SvgLogoVimeo20 = function SvgLogoVimeo202(props) {
4619
6588
  return /* @__PURE__ */ React__namespace.createElement("svg", _extends$3({
4620
6589
  xmlns: "http://www.w3.org/2000/svg",
4621
6590
  width: 20,
4622
6591
  height: 20
4623
6592
  }, props), _path$3 || (_path$3 = /* @__PURE__ */ React__namespace.createElement("path", {
4624
- 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"
6593
+ 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"
4625
6594
  })));
4626
6595
  };
4627
6596
  var _path$2;
@@ -4639,13 +6608,13 @@ function _extends$2() {
4639
6608
  };
4640
6609
  return _extends$2.apply(this, arguments);
4641
6610
  }
4642
- var SvgLogoVimeo20 = function SvgLogoVimeo202(props) {
6611
+ var SvgLogoYelp20 = function SvgLogoYelp202(props) {
4643
6612
  return /* @__PURE__ */ React__namespace.createElement("svg", _extends$2({
4644
6613
  xmlns: "http://www.w3.org/2000/svg",
4645
6614
  width: 20,
4646
6615
  height: 20
4647
6616
  }, props), _path$2 || (_path$2 = /* @__PURE__ */ React__namespace.createElement("path", {
4648
- 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"
6617
+ 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"
4649
6618
  })));
4650
6619
  };
4651
6620
  var _path$1;
@@ -4663,36 +6632,12 @@ function _extends$1() {
4663
6632
  };
4664
6633
  return _extends$1.apply(this, arguments);
4665
6634
  }
4666
- var SvgLogoYelp20 = function SvgLogoYelp202(props) {
6635
+ var SvgLogoYoutube20 = function SvgLogoYoutube202(props) {
4667
6636
  return /* @__PURE__ */ React__namespace.createElement("svg", _extends$1({
4668
6637
  xmlns: "http://www.w3.org/2000/svg",
4669
6638
  width: 20,
4670
6639
  height: 20
4671
6640
  }, props), _path$1 || (_path$1 = /* @__PURE__ */ React__namespace.createElement("path", {
4672
- 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"
4673
- })));
4674
- };
4675
- var _path;
4676
- function _extends() {
4677
- _extends = Object.assign || function(target) {
4678
- for (var i = 1; i < arguments.length; i++) {
4679
- var source = arguments[i];
4680
- for (var key in source) {
4681
- if (Object.prototype.hasOwnProperty.call(source, key)) {
4682
- target[key] = source[key];
4683
- }
4684
- }
4685
- }
4686
- return target;
4687
- };
4688
- return _extends.apply(this, arguments);
4689
- }
4690
- var SvgLogoYoutube20 = function SvgLogoYoutube202(props) {
4691
- return /* @__PURE__ */ React__namespace.createElement("svg", _extends({
4692
- xmlns: "http://www.w3.org/2000/svg",
4693
- width: 20,
4694
- height: 20
4695
- }, props), _path || (_path = /* @__PURE__ */ React__namespace.createElement("path", {
4696
6641
  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"
4697
6642
  })));
4698
6643
  };
@@ -4832,7 +6777,7 @@ function SocialLinksPlaceholder({
4832
6777
  }, link.id))
4833
6778
  });
4834
6779
  }
4835
- const Container = styled__default["default"].div`
6780
+ const Container$1 = styled__default["default"].div`
4836
6781
  display: flex;
4837
6782
  flex-direction: row;
4838
6783
  flex-wrap: wrap;
@@ -4916,7 +6861,7 @@ const SocialLinks = React.forwardRef(function SocialLinks2({
4916
6861
  }, ref) {
4917
6862
  const fillData = useColor(fill);
4918
6863
  const backgroundColorData = useColor(backgroundColor);
4919
- return /* @__PURE__ */ jsxRuntime.jsx(Container, {
6864
+ return /* @__PURE__ */ jsxRuntime.jsx(Container$1, {
4920
6865
  ref,
4921
6866
  id,
4922
6867
  alignment,
@@ -4952,7 +6897,7 @@ const SocialLinks = React.forwardRef(function SocialLinks2({
4952
6897
  })
4953
6898
  });
4954
6899
  });
4955
- function registerComponent$1(runtime) {
6900
+ function registerComponent$2(runtime) {
4956
6901
  return runtime.registerComponent(SocialLinks, {
4957
6902
  type: "./components/SocialLinks/index.js",
4958
6903
  label: "Social Links",
@@ -5200,10 +7145,10 @@ const Span = styled__default["default"].span`
5200
7145
  `}
5201
7146
  `, shallowMergeFallbacks)}
5202
7147
  `;
5203
- function Mark(_w) {
5204
- var _x = _w, {
7148
+ function Mark(__) {
7149
+ var _$ = __, {
5205
7150
  value
5206
- } = _x, restOfProps = __objRest(_x, [
7151
+ } = _$, restOfProps = __objRest(_$, [
5207
7152
  "value"
5208
7153
  ]);
5209
7154
  const typographyStyle = useTypographyMark(value);
@@ -5241,10 +7186,10 @@ const StyledBlock = styled__default["default"].div`
5241
7186
  border-left: 5px solid rgba(0, 0, 0, 0.1);
5242
7187
  ` : ""}
5243
7188
  `;
5244
- var Block = React.forwardRef(function Block2(_y, ref) {
5245
- var _z = _y, {
7189
+ var Block = React.forwardRef(function Block2(_aa, ref) {
7190
+ var _ba = _aa, {
5246
7191
  textAlign
5247
- } = _z, restOfProps = __objRest(_z, [
7192
+ } = _ba, restOfProps = __objRest(_ba, [
5248
7193
  "textAlign"
5249
7194
  ]);
5250
7195
  return /* @__PURE__ */ jsxRuntime.jsx(StyledBlock, __spreadProps(__spreadValues({}, restOfProps), {
@@ -5369,10 +7314,10 @@ function Inlines() {
5369
7314
  }
5370
7315
  };
5371
7316
  }
5372
- const RichTextEditor = styled__default["default"](React.forwardRef(function RichTextEditor2(_A, ref) {
5373
- var _B = _A, {
7317
+ const RichTextEditor = styled__default["default"](React.forwardRef(function RichTextEditor2(_ca, ref) {
7318
+ var _da = _ca, {
5374
7319
  placeholder: placeholder2 = "Write some text..."
5375
- } = _B, restOfProps = __objRest(_B, [
7320
+ } = _da, restOfProps = __objRest(_da, [
5376
7321
  "placeholder"
5377
7322
  ]);
5378
7323
  const plugins = React.useMemo(() => [Lists__default["default"](), LinkPlugin(), Inlines(), DeviceOverridesBlockPlugin(), DeviceOverridesMarksPlugin()], []);
@@ -5489,7 +7434,7 @@ const Text = React.forwardRef(function Text2({
5489
7434
  onKeyDown: handleKeyDown
5490
7435
  });
5491
7436
  });
5492
- function registerComponent(runtime) {
7437
+ function registerComponent$1(runtime) {
5493
7438
  return runtime.registerComponent(Text, {
5494
7439
  type: "./components/Text/index.js",
5495
7440
  label: "Text",
@@ -5567,18 +7512,103 @@ function registerComponent(runtime) {
5567
7512
  }
5568
7513
  });
5569
7514
  }
7515
+ const Container = styled__default["default"].div`
7516
+ display: flex;
7517
+ flex-direction: column;
7518
+ overflow: hidden;
7519
+ ${cssWidth("560px")}
7520
+ ${cssMargin()}
7521
+ ${cssBorderRadius()}
7522
+ `;
7523
+ const ASPECT_RATIO = 16 / 9;
7524
+ const Video = React.forwardRef(function Video2({
7525
+ id,
7526
+ video,
7527
+ width,
7528
+ margin,
7529
+ borderRadius
7530
+ }, ref) {
7531
+ const canPlayUrl = video && video.url != null && ReactPlayer__default["default"].canPlay(video.url);
7532
+ return /* @__PURE__ */ jsxRuntime.jsx(Container, {
7533
+ ref,
7534
+ id,
7535
+ width,
7536
+ margin,
7537
+ borderRadius,
7538
+ children: /* @__PURE__ */ jsxRuntime.jsx("div", {
7539
+ style: {
7540
+ position: "relative",
7541
+ paddingTop: `${100 / ASPECT_RATIO}%`
7542
+ },
7543
+ children: /* @__PURE__ */ jsxRuntime.jsx("div", {
7544
+ style: {
7545
+ position: "absolute",
7546
+ top: 0,
7547
+ left: 0,
7548
+ right: 0,
7549
+ bottom: 0
7550
+ },
7551
+ children: canPlayUrl === true ? /* @__PURE__ */ jsxRuntime.jsx(ReactPlayer__default["default"], __spreadProps(__spreadValues({}, video), {
7552
+ width: "100%",
7553
+ height: "100%",
7554
+ config: {
7555
+ vimeo: {
7556
+ playerOptions: {
7557
+ background: video != null && !video.controls
7558
+ }
7559
+ },
7560
+ wistia: {
7561
+ options: {
7562
+ endVideoBehavior: video != null && video.loop === true ? "loop" : "default"
7563
+ }
7564
+ }
7565
+ }
7566
+ })) : /* @__PURE__ */ jsxRuntime.jsx("img", {
7567
+ width: "100%",
7568
+ src: placeholders.video.src,
7569
+ alt: "Video Placeholder"
7570
+ })
7571
+ })
7572
+ })
7573
+ });
7574
+ });
7575
+ function registerComponent(runtime) {
7576
+ return runtime.registerComponent(Video, {
7577
+ type: "./components/Video/index.js",
7578
+ label: "Video",
7579
+ icon: "Video40",
7580
+ props: {
7581
+ id: descriptors.ElementID(),
7582
+ video: descriptors.Video({
7583
+ preset: {
7584
+ controls: true
7585
+ }
7586
+ }),
7587
+ width: descriptors.Width({
7588
+ defaultValue: {
7589
+ value: 560,
7590
+ unit: "px"
7591
+ }
7592
+ }),
7593
+ margin: descriptors.Margin(),
7594
+ borderRadius: descriptors.BorderRadius()
7595
+ }
7596
+ });
7597
+ }
5570
7598
  function registerBuiltinComponents(runtime) {
5571
- const unregisterBoxComponent = registerComponent$a(runtime);
5572
- const unregisterButtonComponent = registerComponent$9(runtime);
5573
- const unregisterCarouselComponent = registerComponent$7(runtime);
5574
- const unregisterCountdownComponent = registerComponent$6(runtime);
5575
- const unregisterDividerComponent = registerComponent$5(runtime);
5576
- const unregisterEmbedComponent = registerComponent$4(runtime);
5577
- const unregisterImageComponent = registerComponent$8(runtime);
5578
- const unregisterNavigationComponent = registerComponent$3(runtime);
5579
- const unregisterRootComponent = registerComponent$2(runtime);
5580
- const unregisterSocialLinksComponent = registerComponent$1(runtime);
5581
- const unregisterTextComponent = registerComponent(runtime);
7599
+ const unregisterBoxComponent = registerComponent$c(runtime);
7600
+ const unregisterButtonComponent = registerComponent$b(runtime);
7601
+ const unregisterCarouselComponent = registerComponent$9(runtime);
7602
+ const unregisterCountdownComponent = registerComponent$8(runtime);
7603
+ const unregisterDividerComponent = registerComponent$7(runtime);
7604
+ const unregisterEmbedComponent = registerComponent$6(runtime);
7605
+ const unregisterFormComponent = registerComponent$5(runtime);
7606
+ const unregisterImageComponent = registerComponent$a(runtime);
7607
+ const unregisterNavigationComponent = registerComponent$4(runtime);
7608
+ const unregisterRootComponent = registerComponent$3(runtime);
7609
+ const unregisterSocialLinksComponent = registerComponent$2(runtime);
7610
+ const unregisterTextComponent = registerComponent$1(runtime);
7611
+ const unregisterVideoComponent = registerComponent(runtime);
5582
7612
  return () => {
5583
7613
  unregisterBoxComponent();
5584
7614
  unregisterButtonComponent();
@@ -5586,13 +7616,66 @@ function registerBuiltinComponents(runtime) {
5586
7616
  unregisterCountdownComponent();
5587
7617
  unregisterDividerComponent();
5588
7618
  unregisterEmbedComponent();
7619
+ unregisterFormComponent();
5589
7620
  unregisterImageComponent();
5590
7621
  unregisterNavigationComponent();
5591
7622
  unregisterRootComponent();
5592
7623
  unregisterSocialLinksComponent();
5593
7624
  unregisterTextComponent();
7625
+ unregisterTextComponent();
7626
+ unregisterVideoComponent();
7627
+ };
7628
+ }
7629
+ var _path;
7630
+ function _extends() {
7631
+ _extends = Object.assign || function(target) {
7632
+ for (var i = 1; i < arguments.length; i++) {
7633
+ var source = arguments[i];
7634
+ for (var key in source) {
7635
+ if (Object.prototype.hasOwnProperty.call(source, key)) {
7636
+ target[key] = source[key];
7637
+ }
7638
+ }
7639
+ }
7640
+ return target;
5594
7641
  };
7642
+ return _extends.apply(this, arguments);
5595
7643
  }
7644
+ var SvgWarning20 = function SvgWarning202(props) {
7645
+ return /* @__PURE__ */ React__namespace.createElement("svg", _extends({
7646
+ width: 20,
7647
+ height: 20,
7648
+ xmlns: "http://www.w3.org/2000/svg"
7649
+ }, props), _path || (_path = /* @__PURE__ */ React__namespace.createElement("path", {
7650
+ fillRule: "evenodd",
7651
+ clipRule: "evenodd",
7652
+ 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"
7653
+ })));
7654
+ };
7655
+ const ErrorDiv = styled__default["default"]("div")`
7656
+ width: 100%;
7657
+ height: 54px;
7658
+ background-color: #fcedf2;
7659
+ border-radius: 6px;
7660
+ padding: 16px;
7661
+ display: flex;
7662
+ align-items: center;
7663
+ gap: 8px;
7664
+ color: #c73e6d;
7665
+ fill: currentColor;
7666
+ font-family: Heebo, sans-serif;
7667
+ font-size: 16px;
7668
+ `;
7669
+ const FallbackComponent = React.forwardRef(function FallbackComponent2({
7670
+ text
7671
+ }, ref) {
7672
+ return /* @__PURE__ */ jsxRuntime.jsxs(ErrorDiv, {
7673
+ ref,
7674
+ children: [/* @__PURE__ */ jsxRuntime.jsx(SvgWarning20, {}), /* @__PURE__ */ jsxRuntime.jsx("span", {
7675
+ children: text
7676
+ })]
7677
+ });
7678
+ });
5596
7679
  const contextDefaultValue = reactPage.configureStore();
5597
7680
  function createReactRuntime(store) {
5598
7681
  return {
@@ -5619,10 +7702,9 @@ function createReactRuntime(store) {
5619
7702
  const ReactRuntime = createReactRuntime(contextDefaultValue);
5620
7703
  const Context = React.createContext(contextDefaultValue);
5621
7704
  function RuntimeProvider({
7705
+ client: client2,
5622
7706
  children,
5623
- defaultRootElements,
5624
- registerComponents,
5625
- makeswiftApiEndpoint
7707
+ defaultRootElements
5626
7708
  }) {
5627
7709
  const [store, setStore] = React.useState(() => {
5628
7710
  const store2 = reactPage.configureStore({
@@ -5631,27 +7713,11 @@ function RuntimeProvider({
5631
7713
  });
5632
7714
  const runtime = createReactRuntime(store2);
5633
7715
  registerBuiltinComponents(runtime);
5634
- registerComponents == null ? void 0 : registerComponents(runtime);
5635
7716
  return store2;
5636
7717
  });
5637
- const [client$1, setClient] = React.useState(new client.ApolloClient({
5638
- uri: makeswiftApiEndpoint,
5639
- cache: new client.InMemoryCache()
5640
- }));
5641
- React.useEffect(() => {
5642
- setClient(({
5643
- cache
5644
- }) => new client.ApolloClient({
5645
- uri: makeswiftApiEndpoint,
5646
- cache
5647
- }));
5648
- }, [makeswiftApiEndpoint]);
5649
7718
  React.useEffect(() => {
5650
7719
  return registerBuiltinComponents(createReactRuntime(store));
5651
7720
  }, [store]);
5652
- React.useEffect(() => {
5653
- return registerComponents == null ? void 0 : registerComponents(createReactRuntime(store));
5654
- }, [store, registerComponents]);
5655
7721
  React.useEffect(() => {
5656
7722
  const isInBuilder = window.parent !== window;
5657
7723
  if (isInBuilder)
@@ -5662,10 +7728,10 @@ function RuntimeProvider({
5662
7728
  });
5663
7729
  setStore((store2) => ReactBuilderPreview.configureStore({
5664
7730
  preloadedState: store2.getState(),
5665
- client: client$1
7731
+ client: client2.apolloClient
5666
7732
  }));
5667
7733
  }
5668
- }, [client$1]);
7734
+ }, [client2]);
5669
7735
  React.useEffect(() => {
5670
7736
  const isInBuilder = window.parent !== window;
5671
7737
  if (!isInBuilder)
@@ -5689,8 +7755,8 @@ function RuntimeProvider({
5689
7755
  }, []);
5690
7756
  return /* @__PURE__ */ jsxRuntime.jsx(Context.Provider, {
5691
7757
  value: store,
5692
- children: /* @__PURE__ */ jsxRuntime.jsx(ApolloProvider, {
5693
- client: client$1,
7758
+ children: /* @__PURE__ */ jsxRuntime.jsx(MakeswiftProvider, {
7759
+ client: client2,
5694
7760
  children
5695
7761
  })
5696
7762
  });
@@ -5744,15 +7810,9 @@ const ElementData = React.memo(React.forwardRef(function ElementData2({
5744
7810
  }, ref) {
5745
7811
  const Component = useComponent(elementData.type);
5746
7812
  if (Component == null) {
5747
- return /* @__PURE__ */ jsxRuntime.jsxs("div", {
7813
+ return /* @__PURE__ */ jsxRuntime.jsx(FallbackComponent, {
5748
7814
  ref,
5749
- children: [/* @__PURE__ */ jsxRuntime.jsx("p", {
5750
- children: "Component Not Found"
5751
- }), /* @__PURE__ */ jsxRuntime.jsx("pre", {
5752
- children: /* @__PURE__ */ jsxRuntime.jsx("code", {
5753
- children: JSON.stringify(elementData, null, 2)
5754
- })
5755
- })]
7815
+ text: "Component not found"
5756
7816
  });
5757
7817
  }
5758
7818
  return /* @__PURE__ */ React.createElement(Component, __spreadProps(__spreadValues({}, elementData.props), {
@@ -5782,27 +7842,15 @@ const ElementReference = React.memo(React.forwardRef(function ElementReference2(
5782
7842
  const globalElementData = (_a = data == null ? void 0 : data.globalElement) == null ? void 0 : _a.data;
5783
7843
  const elementReferenceDocument = useDocument(elementReference.key);
5784
7844
  if (error != null) {
5785
- return /* @__PURE__ */ jsxRuntime.jsxs("div", {
7845
+ return /* @__PURE__ */ jsxRuntime.jsx(FallbackComponent, {
5786
7846
  ref,
5787
- children: [/* @__PURE__ */ jsxRuntime.jsx("p", {
5788
- children: "Something went wrong!"
5789
- }), /* @__PURE__ */ jsxRuntime.jsx("pre", {
5790
- children: /* @__PURE__ */ jsxRuntime.jsx("code", {
5791
- children: JSON.stringify(error, null, 2)
5792
- })
5793
- })]
7847
+ text: "Something went wrong!"
5794
7848
  });
5795
7849
  }
5796
7850
  if (globalElementData == null) {
5797
- return /* @__PURE__ */ jsxRuntime.jsxs("div", {
7851
+ return /* @__PURE__ */ jsxRuntime.jsx(FallbackComponent, {
5798
7852
  ref,
5799
- children: [/* @__PURE__ */ jsxRuntime.jsx("p", {
5800
- children: "Not Found"
5801
- }), /* @__PURE__ */ jsxRuntime.jsx("pre", {
5802
- children: /* @__PURE__ */ jsxRuntime.jsx("code", {
5803
- children: JSON.stringify(elementReference, null, 2)
5804
- })
5805
- })]
7853
+ text: "This global component doesn't exist"
5806
7854
  });
5807
7855
  }
5808
7856
  return elementReferenceDocument != null ? /* @__PURE__ */ jsxRuntime.jsx(Document, {
@@ -5855,15 +7903,9 @@ const DocumentReference = React.memo(React.forwardRef(function DocumentReference
5855
7903
  }, ref) {
5856
7904
  const document = useDocument(documentReference.key);
5857
7905
  if (document == null) {
5858
- return /* @__PURE__ */ jsxRuntime.jsxs("div", {
7906
+ return /* @__PURE__ */ jsxRuntime.jsx(FallbackComponent, {
5859
7907
  ref,
5860
- children: [/* @__PURE__ */ jsxRuntime.jsx("p", {
5861
- children: "Document Not Found"
5862
- }), /* @__PURE__ */ jsxRuntime.jsx("pre", {
5863
- children: /* @__PURE__ */ jsxRuntime.jsx("code", {
5864
- children: JSON.stringify(documentReference, null, 2)
5865
- })
5866
- })]
7908
+ text: "Document not found"
5867
7909
  });
5868
7910
  }
5869
7911
  return /* @__PURE__ */ jsxRuntime.jsx(Document, {
@@ -5872,7 +7914,7 @@ const DocumentReference = React.memo(React.forwardRef(function DocumentReference
5872
7914
  });
5873
7915
  }));
5874
7916
  exports.Box = Box;
5875
- exports.Button = Button;
7917
+ exports.Button = Button$1;
5876
7918
  exports.Carousel = Carousel;
5877
7919
  exports.Countdown = Countdown;
5878
7920
  exports.DEFAULT_BOX_ANIMATE_DELAY = DEFAULT_BOX_ANIMATE_DELAY;
@@ -5886,7 +7928,9 @@ exports.Divider = Divider;
5886
7928
  exports.DocumentReference = DocumentReference;
5887
7929
  exports.Element = Element$1;
5888
7930
  exports.Embed = Embed;
7931
+ exports.Form = Form;
5889
7932
  exports.ImageComponent = ImageComponent;
7933
+ exports.MakeswiftClient = MakeswiftClient;
5890
7934
  exports.Navigation = Navigation;
5891
7935
  exports.PageProvider = PageProvider;
5892
7936
  exports.ReactRuntime = ReactRuntime;
@@ -5904,7 +7948,15 @@ exports.cssPadding = cssPadding;
5904
7948
  exports.cssTextStyle = cssTextStyle;
5905
7949
  exports.cssWidth = cssWidth;
5906
7950
  exports.registerBuiltinComponents = registerBuiltinComponents;
5907
- exports.registerComponent = registerComponent$a;
7951
+ exports.registerComponent = registerComponent$c;
7952
+ exports.useBackgrounds = useBackgrounds;
7953
+ exports.useBorder = useBorder;
7954
+ exports.useBoxShadow = useBoxShadow;
7955
+ exports.useColor = useColor;
7956
+ exports.useFile = useFile;
5908
7957
  exports.useIsInBuilder = useIsInBuilder;
7958
+ exports.useMediaQuery = useMediaQuery;
7959
+ exports.usePage = usePage;
5909
7960
  exports.usePageId = usePageId;
7961
+ exports.useTable = useTable;
5910
7962
  //# sourceMappingURL=react.cjs2.js.map