@makeswift/runtime 0.0.0-ef05bba → 0.0.0-f5b044f

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (227) hide show
  1. package/builder.js +1 -0
  2. package/dist/Page.cjs.js +215 -0
  3. package/dist/Page.cjs.js.map +1 -0
  4. package/dist/Page.es.js +209 -0
  5. package/dist/Page.es.js.map +1 -0
  6. package/dist/actions.cjs.js +43 -2
  7. package/dist/actions.cjs.js.map +1 -1
  8. package/dist/actions.es.js +37 -2
  9. package/dist/actions.es.js.map +1 -1
  10. package/dist/api.cjs.js +1 -2
  11. package/dist/api.cjs.js.map +1 -1
  12. package/dist/box-model.cjs.js +1 -2
  13. package/dist/box-model.cjs.js.map +1 -1
  14. package/dist/box-models.cjs.js +2 -0
  15. package/dist/box-models.cjs.js.map +1 -1
  16. package/dist/box-models.es.js +2 -0
  17. package/dist/box-models.es.js.map +1 -1
  18. package/dist/builder.cjs.js +10 -0
  19. package/dist/builder.cjs.js.map +1 -0
  20. package/dist/builder.es.js +3 -0
  21. package/dist/builder.es.js.map +1 -0
  22. package/dist/components.cjs.js +54 -38
  23. package/dist/components.cjs.js.map +1 -1
  24. package/dist/components.es.js +14 -7
  25. package/dist/components.es.js.map +1 -1
  26. package/dist/constants.cjs.js +96 -1
  27. package/dist/constants.cjs.js.map +1 -1
  28. package/dist/constants.es.js +96 -1
  29. package/dist/constants.es.js.map +1 -1
  30. package/dist/control-serialization.cjs.js +223 -0
  31. package/dist/control-serialization.cjs.js.map +1 -0
  32. package/dist/control-serialization.es.js +218 -0
  33. package/dist/control-serialization.es.js.map +1 -0
  34. package/dist/descriptors.cjs.js +17 -3
  35. package/dist/descriptors.cjs.js.map +1 -1
  36. package/dist/descriptors.es.js +14 -4
  37. package/dist/descriptors.es.js.map +1 -1
  38. package/dist/index.cjs.js +8037 -0
  39. package/dist/index.cjs.js.map +1 -0
  40. package/dist/index.es.js +7956 -0
  41. package/dist/index.es.js.map +1 -0
  42. package/dist/instances.cjs.js +17 -0
  43. package/dist/instances.cjs.js.map +1 -1
  44. package/dist/instances.es.js +17 -1
  45. package/dist/instances.es.js.map +1 -1
  46. package/dist/main.cjs.js +10 -2
  47. package/dist/main.cjs.js.map +1 -1
  48. package/dist/main.es.js +5 -1
  49. package/dist/main.es.js.map +1 -1
  50. package/dist/next.cjs.js +64 -22
  51. package/dist/next.cjs.js.map +1 -1
  52. package/dist/next.es.js +61 -19
  53. package/dist/next.es.js.map +1 -1
  54. package/dist/prop-controllers.cjs.js +2 -2
  55. package/dist/prop-controllers.es.js +1 -1
  56. package/dist/react-builder-preview.cjs.js +36 -39
  57. package/dist/react-builder-preview.cjs.js.map +1 -1
  58. package/dist/react-builder-preview.es.js +34 -37
  59. package/dist/react-builder-preview.es.js.map +1 -1
  60. package/dist/react-page.cjs.js +263 -0
  61. package/dist/react-page.cjs.js.map +1 -0
  62. package/dist/react-page.es.js +241 -0
  63. package/dist/react-page.es.js.map +1 -0
  64. package/dist/react.cjs.js +21 -14
  65. package/dist/react.cjs.js.map +1 -1
  66. package/dist/react.cjs2.js +2500 -567
  67. package/dist/react.cjs2.js.map +1 -1
  68. package/dist/react.es.js +13 -7
  69. package/dist/react.es.js.map +1 -1
  70. package/dist/react.es2.js +2488 -557
  71. package/dist/react.es2.js.map +1 -1
  72. package/dist/types/api/constants.d.ts.map +1 -1
  73. package/dist/types/api/generated/graphql.d.ts +59 -0
  74. package/dist/types/api/generated/graphql.d.ts.map +1 -1
  75. package/dist/types/api/react.d.ts +26 -4
  76. package/dist/types/api/react.d.ts.map +1 -1
  77. package/dist/types/api/types.d.ts +2 -2
  78. package/dist/types/api/types.d.ts.map +1 -1
  79. package/dist/types/builder/index.d.ts +2 -0
  80. package/dist/types/builder/index.d.ts.map +1 -0
  81. package/dist/types/builder/serialization/control-serialization.d.ts +144 -0
  82. package/dist/types/builder/serialization/control-serialization.d.ts.map +1 -0
  83. package/dist/types/builder/serialization/function-serialization.d.ts +12 -0
  84. package/dist/types/builder/serialization/function-serialization.d.ts.map +1 -0
  85. package/dist/types/builder/serialization/index.d.ts +3 -0
  86. package/dist/types/builder/serialization/index.d.ts.map +1 -0
  87. package/dist/types/components/builtin/Box/Box.d.ts +2 -2
  88. package/dist/types/components/builtin/Box/Box.d.ts.map +1 -1
  89. package/dist/types/components/builtin/Button/Button.d.ts +5 -5
  90. package/dist/types/components/builtin/Button/Button.d.ts.map +1 -1
  91. package/dist/types/components/builtin/Carousel/Carousel.d.ts +6 -5
  92. package/dist/types/components/builtin/Carousel/Carousel.d.ts.map +1 -1
  93. package/dist/types/components/builtin/Countdown/Countdown.d.ts +6 -5
  94. package/dist/types/components/builtin/Countdown/Countdown.d.ts.map +1 -1
  95. package/dist/types/components/builtin/Divider/Divider.d.ts +4 -3
  96. package/dist/types/components/builtin/Divider/Divider.d.ts.map +1 -1
  97. package/dist/types/components/builtin/Embed/Embed.d.ts +2 -2
  98. package/dist/types/components/builtin/Embed/Embed.d.ts.map +1 -1
  99. package/dist/types/components/builtin/Form/Form.d.ts +42 -0
  100. package/dist/types/components/builtin/Form/Form.d.ts.map +1 -0
  101. package/dist/types/components/builtin/Form/components/Field/components/Checkbox/index.d.ts +15 -0
  102. package/dist/types/components/builtin/Form/components/Field/components/Checkbox/index.d.ts.map +1 -0
  103. package/dist/types/components/builtin/Form/components/Field/components/CheckboxTableField/index.d.ts +15 -0
  104. package/dist/types/components/builtin/Form/components/Field/components/CheckboxTableField/index.d.ts.map +1 -0
  105. package/dist/types/components/builtin/Form/components/Field/components/EmailTableField/index.d.ts +11 -0
  106. package/dist/types/components/builtin/Form/components/Field/components/EmailTableField/index.d.ts.map +1 -0
  107. package/dist/types/components/builtin/Form/components/Field/components/Input/index.d.ts +14 -0
  108. package/dist/types/components/builtin/Form/components/Field/components/Input/index.d.ts.map +1 -0
  109. package/dist/types/components/builtin/Form/components/Field/components/Label/index.d.ts +16 -0
  110. package/dist/types/components/builtin/Form/components/Field/components/Label/index.d.ts.map +1 -0
  111. package/dist/types/components/builtin/Form/components/Field/components/LongTextTableField/index.d.ts +10 -0
  112. package/dist/types/components/builtin/Form/components/Field/components/LongTextTableField/index.d.ts.map +1 -0
  113. package/dist/types/components/builtin/Form/components/Field/components/MultipleSelectTableField/index.d.ts +23 -0
  114. package/dist/types/components/builtin/Form/components/Field/components/MultipleSelectTableField/index.d.ts.map +1 -0
  115. package/dist/types/components/builtin/Form/components/Field/components/NumberTableField/index.d.ts +11 -0
  116. package/dist/types/components/builtin/Form/components/Field/components/NumberTableField/index.d.ts.map +1 -0
  117. package/dist/types/components/builtin/Form/components/Field/components/PhoneNumberTableField/index.d.ts +11 -0
  118. package/dist/types/components/builtin/Form/components/Field/components/PhoneNumberTableField/index.d.ts.map +1 -0
  119. package/dist/types/components/builtin/Form/components/Field/components/PlaceholderTableField/index.d.ts +3 -0
  120. package/dist/types/components/builtin/Form/components/Field/components/PlaceholderTableField/index.d.ts.map +1 -0
  121. package/dist/types/components/builtin/Form/components/Field/components/RadioButton/index.d.ts +17 -0
  122. package/dist/types/components/builtin/Form/components/Field/components/RadioButton/index.d.ts.map +1 -0
  123. package/dist/types/components/builtin/Form/components/Field/components/SingleLineTextTableField/index.d.ts +11 -0
  124. package/dist/types/components/builtin/Form/components/Field/components/SingleLineTextTableField/index.d.ts.map +1 -0
  125. package/dist/types/components/builtin/Form/components/Field/components/SingleSelectTableField/components/TableColumnRadioButtonGroup/index.d.ts +23 -0
  126. package/dist/types/components/builtin/Form/components/Field/components/SingleSelectTableField/components/TableColumnRadioButtonGroup/index.d.ts.map +1 -0
  127. package/dist/types/components/builtin/Form/components/Field/components/SingleSelectTableField/components/TableColumnSingleSelect/index.d.ts +19 -0
  128. package/dist/types/components/builtin/Form/components/Field/components/SingleSelectTableField/components/TableColumnSingleSelect/index.d.ts.map +1 -0
  129. package/dist/types/components/builtin/Form/components/Field/components/SingleSelectTableField/index.d.ts +24 -0
  130. package/dist/types/components/builtin/Form/components/Field/components/SingleSelectTableField/index.d.ts.map +1 -0
  131. package/dist/types/components/builtin/Form/components/Field/components/TextArea/index.d.ts +13 -0
  132. package/dist/types/components/builtin/Form/components/Field/components/TextArea/index.d.ts.map +1 -0
  133. package/dist/types/components/builtin/Form/components/Field/components/URLTableField/index.d.ts +11 -0
  134. package/dist/types/components/builtin/Form/components/Field/components/URLTableField/index.d.ts.map +1 -0
  135. package/dist/types/components/builtin/Form/components/Field/index.d.ts +19 -0
  136. package/dist/types/components/builtin/Form/components/Field/index.d.ts.map +1 -0
  137. package/dist/types/components/builtin/Form/components/Field/services/cssField.d.ts +11 -0
  138. package/dist/types/components/builtin/Form/components/Field/services/cssField.d.ts.map +1 -0
  139. package/dist/types/components/builtin/Form/components/Placeholder/index.d.ts +9 -0
  140. package/dist/types/components/builtin/Form/components/Placeholder/index.d.ts.map +1 -0
  141. package/dist/types/components/builtin/Form/components/Spinner/index.d.ts +3 -0
  142. package/dist/types/components/builtin/Form/components/Spinner/index.d.ts.map +1 -0
  143. package/dist/types/components/builtin/Form/context/FormContext.d.ts +33 -0
  144. package/dist/types/components/builtin/Form/context/FormContext.d.ts.map +1 -0
  145. package/dist/types/components/builtin/Form/index.d.ts +2 -0
  146. package/dist/types/components/builtin/Form/index.d.ts.map +1 -0
  147. package/dist/types/components/builtin/Image/Image.d.ts.map +1 -1
  148. package/dist/types/components/builtin/Navigation/Navigation.d.ts +6 -5
  149. package/dist/types/components/builtin/Navigation/Navigation.d.ts.map +1 -1
  150. package/dist/types/components/builtin/Navigation/components/MobileMenu/index.d.ts +4 -3
  151. package/dist/types/components/builtin/Navigation/components/MobileMenu/index.d.ts.map +1 -1
  152. package/dist/types/components/builtin/SocialLinks/SocialLinks.d.ts +5 -4
  153. package/dist/types/components/builtin/SocialLinks/SocialLinks.d.ts.map +1 -1
  154. package/dist/types/components/builtin/Text/Text.d.ts +2 -2
  155. package/dist/types/components/builtin/Text/Text.d.ts.map +1 -1
  156. package/dist/types/components/builtin/Video/Video.d.ts +15 -0
  157. package/dist/types/components/builtin/Video/Video.d.ts.map +1 -0
  158. package/dist/types/components/builtin/Video/index.d.ts +2 -0
  159. package/dist/types/components/builtin/Video/index.d.ts.map +1 -0
  160. package/dist/types/components/builtin/index.d.ts +1 -0
  161. package/dist/types/components/builtin/index.d.ts.map +1 -1
  162. package/dist/types/components/hooks/index.d.ts +1 -0
  163. package/dist/types/components/hooks/index.d.ts.map +1 -1
  164. package/dist/types/components/hooks/useTable.d.ts +66 -0
  165. package/dist/types/components/hooks/useTable.d.ts.map +1 -0
  166. package/dist/types/components/hooks/useTableFormFieldRefs.d.ts +8 -0
  167. package/dist/types/components/hooks/useTableFormFieldRefs.d.ts.map +1 -0
  168. package/dist/types/components/index.d.ts +2 -0
  169. package/dist/types/components/index.d.ts.map +1 -1
  170. package/dist/types/components/page/BodySnippet.d.ts +7 -0
  171. package/dist/types/components/page/BodySnippet.d.ts.map +1 -0
  172. package/dist/types/components/page/Page.d.ts +43 -0
  173. package/dist/types/components/page/Page.d.ts.map +1 -0
  174. package/dist/types/components/page/index.d.ts +2 -0
  175. package/dist/types/components/page/index.d.ts.map +1 -0
  176. package/dist/types/components/shared/BackgroundsContainer/components/Backgrounds/index.d.ts.map +1 -1
  177. package/dist/types/components/shared/FallbackComponent/FallbackComponent.d.ts +7 -0
  178. package/dist/types/components/shared/FallbackComponent/FallbackComponent.d.ts.map +1 -0
  179. package/dist/types/components/shared/FallbackComponent/index.d.ts +2 -0
  180. package/dist/types/components/shared/FallbackComponent/index.d.ts.map +1 -0
  181. package/dist/types/components/utils/placeholders.d.ts +7 -0
  182. package/dist/types/components/utils/placeholders.d.ts.map +1 -1
  183. package/dist/types/components/utils/queries.d.ts +1 -0
  184. package/dist/types/components/utils/queries.d.ts.map +1 -1
  185. package/dist/types/components/utils/responsive-style.d.ts +9 -0
  186. package/dist/types/components/utils/responsive-style.d.ts.map +1 -0
  187. package/dist/types/components/utils/types.d.ts +1 -2
  188. package/dist/types/components/utils/types.d.ts.map +1 -1
  189. package/dist/types/controls/select.d.ts +19 -0
  190. package/dist/types/controls/select.d.ts.map +1 -0
  191. package/dist/types/controls.d.ts +4 -0
  192. package/dist/types/controls.d.ts.map +1 -0
  193. package/dist/types/index.d.ts +2 -1
  194. package/dist/types/index.d.ts.map +1 -1
  195. package/dist/types/next.d.ts +8 -4
  196. package/dist/types/next.d.ts.map +1 -1
  197. package/dist/types/prop-controllers/descriptors.d.ts +58 -26
  198. package/dist/types/prop-controllers/descriptors.d.ts.map +1 -1
  199. package/dist/types/prop-controllers/index.d.ts +3 -3
  200. package/dist/types/prop-controllers/index.d.ts.map +1 -1
  201. package/dist/types/prop-controllers/instances/slot.d.ts +2 -0
  202. package/dist/types/prop-controllers/instances/slot.d.ts.map +1 -0
  203. package/dist/types/prop-controllers/instances.d.ts +36 -4
  204. package/dist/types/prop-controllers/instances.d.ts.map +1 -1
  205. package/dist/types/react.d.ts +1 -1
  206. package/dist/types/react.d.ts.map +1 -1
  207. package/dist/types/runtimes/index.d.ts +43 -0
  208. package/dist/types/runtimes/index.d.ts.map +1 -0
  209. package/dist/types/runtimes/react/controls.d.ts +10 -0
  210. package/dist/types/runtimes/react/controls.d.ts.map +1 -0
  211. package/dist/types/runtimes/react/index.d.ts +45 -0
  212. package/dist/types/runtimes/react/index.d.ts.map +1 -0
  213. package/dist/types/runtimes/react/react.d.ts +43 -0
  214. package/dist/types/runtimes/react/react.d.ts.map +1 -0
  215. package/dist/types/runtimes/react.d.ts +16 -9
  216. package/dist/types/runtimes/react.d.ts.map +1 -1
  217. package/dist/types/state/actions.d.ts +55 -1
  218. package/dist/types/state/actions.d.ts.map +1 -1
  219. package/dist/types/state/modules/box-models.d.ts.map +1 -1
  220. package/dist/types/state/modules/read-only-documents.d.ts +8 -4
  221. package/dist/types/state/modules/read-only-documents.d.ts.map +1 -1
  222. package/dist/types/state/modules/read-write-documents.d.ts +1 -1
  223. package/dist/types/state/modules/read-write-documents.d.ts.map +1 -1
  224. package/dist/types/state/react-builder-preview.d.ts.map +1 -1
  225. package/dist/types/state/react-page.d.ts +4 -3
  226. package/dist/types/state/react-page.d.ts.map +1 -1
  227. package/package.json +22 -7
package/dist/react.es2.js CHANGED
@@ -29,239 +29,39 @@ var __objRest = (source, exclude) => {
29
29
  }
30
30
  return target;
31
31
  };
32
+ var __publicField = (obj, key, value) => {
33
+ __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
34
+ return value;
35
+ };
32
36
  import * as React from "react";
33
37
  import { forwardRef, createContext, useContext, useMemo, useState, useLayoutEffect, useCallback, useEffect, useRef, useImperativeHandle, Children, createElement, Fragment as Fragment$1, memo } from "react";
34
38
  import { useSyncExternalStoreWithSelector } from "use-sync-external-store/shim/with-selector";
35
- import { gql, useQuery as useQuery$1, ApolloClient, InMemoryCache } from "@apollo/client";
36
- import { combineReducers, createStore, applyMiddleware } from "redux";
37
- import thunk from "redux-thunk";
38
- import { A as ActionTypes, r as registerComponentHandleEffect, e as mountComponentEffect, f as registerComponentEffect, g as registerReactComponentEffect } from "./actions.es.js";
39
- import { T as Types, E as ElementID, B as Backgrounds$1, W as Width, R as ResponsiveIconRadioGroup, M as Margin, P as Padding, a as Border, b as BorderRadius, S as Shadows, G as GapY, c as GapX, e as ResponsiveSelect, f as ResponsiveNumber, C as Checkbox, g as Grid$2, h as TextInput, L as Link$1, i as ResponsiveColor, j as TextStyle, I as Image$1, k as ResponsiveOpacity, l as Images, N as Number$1, D as Date$1, F as Font, m as ResponsiveLength, n as TextArea, o as NavigationLinks, p as SocialLinks$1, q as RichText } from "./descriptors.es.js";
39
+ import { gql, useQuery as useQuery$1, useMutation as useMutation$1, ApolloClient, InMemoryCache } from "@apollo/client";
40
+ import { a as createDocumentReference, g as getIsInBuilder, b as configureStore, d as getElementId, e as getReactComponent, f as getDocument, i as isElementReference, c as createDocument } from "./react-page.es.js";
41
+ import { f as registerComponentHandleEffect, g as mountComponentEffect, h as registerComponentEffect, j as registerReactComponentEffect, k as registerDocumentEffect } from "./actions.es.js";
40
42
  import styled, { css, keyframes, createGlobalStyle } from "styled-components";
41
43
  import { useReducedMotion, useAnimation, motion } from "framer-motion";
44
+ import { getDataFromTree } from "@apollo/client/react/ssr";
45
+ import { KeyUtils, Value } from "slate";
46
+ import uuid from "uuid/v4";
42
47
  import { jsx, Fragment, jsxs } from "react/jsx-runtime";
48
+ import "html-react-parser";
49
+ import "next/head";
43
50
  import { p as parse, c as createBox, g as getBox } from "./box-models.es.js";
44
51
  import NextImage from "next/image";
45
52
  import ReactPlayer from "react-player";
53
+ import { E as ElementID, B as Backgrounds$1, W as Width, R as ResponsiveIconRadioGroup, M as Margin, P as Padding, a as Border, b as BorderRadius, S as Shadows, G as GapY, c as GapX, e as ResponsiveSelect, f as ResponsiveNumber, C as Checkbox$1, g as Grid$2, h as TextInput, L as Link$1, i as ResponsiveColor, j as TextStyle, I as Image$1, k as ResponsiveOpacity, l as Images, N as Number$1, D as Date$1, F as Font, m as ResponsiveLength, n as TextArea$1, o as Table, p as TableFormFields, q as NavigationLinks, r as SocialLinks$1, s as RichText, V as Video$1 } from "./descriptors.es.js";
46
54
  import ColorHelper from "color";
47
55
  import scrollIntoView from "scroll-into-view-if-needed";
48
56
  import NextLink from "next/link";
49
57
  import { useGesture } from "react-use-gesture";
50
58
  import { wrap } from "@popmotion/popcorn";
51
- import uuid from "uuid/v4";
59
+ import { Field as Field$1, getIn, Formik } from "formik";
52
60
  import { normalize } from "polished";
53
- import { Value } from "slate";
54
61
  import Hotkeys from "slate-hotkeys";
55
62
  import ipsum from "corporate-ipsum";
56
63
  import { Editor } from "slate-react";
57
64
  import Lists from "@convertkit/slate-lists";
58
- function isElementReference(element) {
59
- return !("props" in element);
60
- }
61
- function createDocument(rootElement) {
62
- return { rootElement };
63
- }
64
- function getInitialState$3({
65
- rootElements = /* @__PURE__ */ new Map()
66
- } = {}) {
67
- const initialState = /* @__PURE__ */ new Map();
68
- rootElements.forEach((rootElement, elementKey) => {
69
- initialState.set(elementKey, createDocument(rootElement));
70
- });
71
- return initialState;
72
- }
73
- function getDocuments(state) {
74
- return state;
75
- }
76
- function getDocument(state, documentKey) {
77
- var _a;
78
- return (_a = getDocuments(state).get(documentKey)) != null ? _a : null;
79
- }
80
- function getDocumentRootElement$1(state, documentKey) {
81
- var _a, _b;
82
- return (_b = (_a = getDocument(state, documentKey)) == null ? void 0 : _a.rootElement) != null ? _b : null;
83
- }
84
- function reducer$4(state = getInitialState$3(), _action) {
85
- return state;
86
- }
87
- function getInitialState$2({
88
- reactComponents = /* @__PURE__ */ new Map()
89
- } = {}) {
90
- return reactComponents;
91
- }
92
- function getReactComponents(state) {
93
- return state;
94
- }
95
- function getReactComponent$1(state, type) {
96
- var _a;
97
- return (_a = getReactComponents(state).get(type)) != null ? _a : null;
98
- }
99
- function reducer$3(state = getInitialState$2(), action) {
100
- switch (action.type) {
101
- case ActionTypes.REGISTER_REACT_COMPONENT:
102
- return new Map(state).set(action.payload.type, action.payload.component);
103
- case ActionTypes.UNREGISTER_REACT_COMPONENT: {
104
- const nextState = new Map(state);
105
- const deleted = nextState.delete(action.payload.type);
106
- return deleted ? nextState : state;
107
- }
108
- default:
109
- return state;
110
- }
111
- }
112
- function getInitialState$1({
113
- componentsMeta = /* @__PURE__ */ new Map()
114
- } = {}) {
115
- return componentsMeta;
116
- }
117
- function getComponentsMeta(state) {
118
- return state;
119
- }
120
- function reducer$2(state = getInitialState$1(), action) {
121
- switch (action.type) {
122
- case ActionTypes.REGISTER_COMPONENT:
123
- return new Map(state).set(action.payload.type, action.payload.meta);
124
- case ActionTypes.UNREGISTER_COMPONENT: {
125
- const nextState = new Map(state);
126
- const deleted = nextState.delete(action.payload.type);
127
- return deleted ? nextState : state;
128
- }
129
- default:
130
- return state;
131
- }
132
- }
133
- function getInitialState({
134
- propControllerDescriptors = /* @__PURE__ */ new Map()
135
- } = {}) {
136
- return propControllerDescriptors;
137
- }
138
- function getPropControllerDescriptors$1(state) {
139
- return state;
140
- }
141
- function getComponentPropControllerDescriptors$1(state, componentType) {
142
- var _a;
143
- return (_a = getPropControllerDescriptors$1(state).get(componentType)) != null ? _a : null;
144
- }
145
- function reducer$1(state = getInitialState(), action) {
146
- switch (action.type) {
147
- case ActionTypes.REGISTER_COMPONENT:
148
- return new Map(state).set(action.payload.type, action.payload.propControllerDescriptors);
149
- case ActionTypes.UNREGISTER_COMPONENT: {
150
- const nextState = new Map(state);
151
- const deleted = nextState.delete(action.payload.type);
152
- return deleted ? nextState : state;
153
- }
154
- default:
155
- return state;
156
- }
157
- }
158
- function getElementChildren(descriptor, prop) {
159
- if (prop == null)
160
- return [];
161
- switch (descriptor.type) {
162
- case Types.Grid:
163
- return prop.elements;
164
- default:
165
- return [];
166
- }
167
- }
168
- function getElementId$1(descriptor, prop) {
169
- if (prop == null)
170
- return null;
171
- switch (descriptor.type) {
172
- case Types.ElementID:
173
- return prop;
174
- default:
175
- return null;
176
- }
177
- }
178
- const reducer = combineReducers({
179
- documents: reducer$4,
180
- reactComponents: reducer$3,
181
- componentsMeta: reducer$2,
182
- propControllers: reducer$1,
183
- isInBuilder: (_state = false, _action) => false
184
- });
185
- function getDocumentsStateSlice(state) {
186
- return state.documents;
187
- }
188
- function getDocumentRootElement(state, documentKey) {
189
- return getDocumentRootElement$1(getDocumentsStateSlice(state), documentKey);
190
- }
191
- function getReactComponentsStateSlice(state) {
192
- return state.reactComponents;
193
- }
194
- function getReactComponent(state, type) {
195
- return getReactComponent$1(getReactComponentsStateSlice(state), type);
196
- }
197
- function getPropControllersStateSlice(state) {
198
- return state.propControllers;
199
- }
200
- function getPropControllerDescriptors(state) {
201
- return getPropControllerDescriptors$1(getPropControllersStateSlice(state));
202
- }
203
- function getComponentPropControllerDescriptors(state, componentType) {
204
- return getComponentPropControllerDescriptors$1(getPropControllersStateSlice(state), componentType);
205
- }
206
- function normalizeElement(element, descriptors) {
207
- const elements = /* @__PURE__ */ new Map();
208
- const remaining = [element];
209
- let current;
210
- while (current = remaining.pop()) {
211
- elements.set(current.key, current);
212
- if (isElementReference(current))
213
- continue;
214
- const elementDescriptors = descriptors.get(element.type);
215
- if (elementDescriptors == null)
216
- continue;
217
- const parent = current;
218
- const children = Object.entries(elementDescriptors).reduce((acc, [propName, descriptor]) => {
219
- return [...acc, ...getElementChildren(descriptor, parent.props[propName])];
220
- }, []);
221
- remaining.push(...children);
222
- }
223
- return elements;
224
- }
225
- function getDocumentElements(state, documentKey) {
226
- const rootElement = getDocumentRootElement(state, documentKey);
227
- const descriptors = getPropControllerDescriptors(state);
228
- if (rootElement == null)
229
- return /* @__PURE__ */ new Map();
230
- return normalizeElement(rootElement, descriptors);
231
- }
232
- function getElement(state, documentKey, elementKey) {
233
- var _a;
234
- return (_a = getDocumentElements(state, documentKey).get(elementKey)) != null ? _a : null;
235
- }
236
- function getElementPropControllerDescriptors(state, documentKey, elementKey) {
237
- const element = getElement(state, documentKey, elementKey);
238
- if (element == null || isElementReference(element))
239
- return null;
240
- return getComponentPropControllerDescriptors(state, element.type);
241
- }
242
- function getElementId(state, documentKey, elementKey) {
243
- const element = getElement(state, documentKey, elementKey);
244
- if (element == null || isElementReference(element))
245
- return null;
246
- const descriptors = getComponentPropControllerDescriptors(state, element.type);
247
- if (descriptors == null)
248
- return null;
249
- const elementId = Object.entries(descriptors).reduce((acc, [propName, descriptor]) => {
250
- if (acc != null)
251
- return acc;
252
- return getElementId$1(descriptor, element.props[propName]);
253
- }, null);
254
- return elementId;
255
- }
256
- function getIsInBuilder(state) {
257
- return state.isInBuilder;
258
- }
259
- function configureStore({
260
- rootElements,
261
- preloadedState
262
- } = {}) {
263
- return createStore(reducer, __spreadProps(__spreadValues({}, preloadedState), { documents: getInitialState$3({ rootElements }) }), applyMiddleware(thunk));
264
- }
265
65
  const PlaceholderBase$1 = styled.div`
266
66
  width: 100%;
267
67
  background: rgba(161, 168, 194, 0.18);
@@ -271,7 +71,7 @@ const PlaceholderBase$1 = styled.div`
271
71
  hide
272
72
  }) => hide === true ? "hidden" : "initial"};
273
73
  `;
274
- var Placeholder$1 = forwardRef(function Placeholder(_a, ref) {
74
+ var Placeholder$2 = forwardRef(function Placeholder(_a, ref) {
275
75
  var _b = _a, {
276
76
  hide = false
277
77
  } = _b, restOfProps = __objRest(_b, [
@@ -385,21 +185,168 @@ const TYPOGRAPHIES_BY_ID = gql`
385
185
 
386
186
  ${TYPOGRAPHY_FRAGMENT}
387
187
  `;
188
+ const TABLE_BY_ID = gql`
189
+ query TableById($id: ID!) {
190
+ table(id: $id) {
191
+ id
192
+ name
193
+ columns {
194
+ id
195
+ name
196
+ ... on MultipleSelectTableColumn {
197
+ options {
198
+ id
199
+ name
200
+ }
201
+ }
202
+ ... on SingleSelectTableColumn {
203
+ options {
204
+ id
205
+ name
206
+ }
207
+ }
208
+ }
209
+ }
210
+ }
211
+ `;
388
212
  function isNonNullable(value) {
389
213
  return value != null;
390
214
  }
391
- const Context$1 = createContext(void 0);
215
+ const typePolicies = {
216
+ Query: {
217
+ fields: {
218
+ swatches(existingData, {
219
+ args,
220
+ toReference
221
+ }) {
222
+ return existingData != null ? existingData : args == null ? void 0 : args.ids.map((id) => toReference({
223
+ __typename: "Swatch",
224
+ id
225
+ }, true));
226
+ },
227
+ file(existingData, {
228
+ args,
229
+ toReference
230
+ }) {
231
+ return existingData != null ? existingData : toReference({
232
+ __typename: "File",
233
+ id: args == null ? void 0 : args.id
234
+ }, true);
235
+ },
236
+ files(existingData, {
237
+ args,
238
+ toReference
239
+ }) {
240
+ return existingData != null ? existingData : args == null ? void 0 : args.ids.map((id) => toReference({
241
+ __typename: "File",
242
+ id
243
+ }, true));
244
+ },
245
+ typographies(existingData, {
246
+ args,
247
+ toReference
248
+ }) {
249
+ return existingData != null ? existingData : args == null ? void 0 : args.ids.map((id) => toReference({
250
+ __typename: "Typography",
251
+ id
252
+ }, true));
253
+ },
254
+ pagePathnamesById(existingData, {
255
+ args,
256
+ toReference
257
+ }) {
258
+ return existingData != null ? existingData : args == null ? void 0 : args.ids.map((id) => toReference({
259
+ __typename: "PagePathnameSlice",
260
+ id
261
+ }, true));
262
+ },
263
+ globalElement(existingData, {
264
+ args,
265
+ toReference
266
+ }) {
267
+ return existingData != null ? existingData : toReference({
268
+ __typename: "GlobalElement",
269
+ id: args == null ? void 0 : args.id
270
+ }, true);
271
+ },
272
+ table(existingData, {
273
+ args,
274
+ toReference
275
+ }) {
276
+ return existingData != null ? existingData : toReference({
277
+ __typename: "Table",
278
+ id: args == null ? void 0 : args.id
279
+ }, true);
280
+ }
281
+ }
282
+ }
283
+ };
284
+ const PrefetchContext = createContext(false);
285
+ function useIsPrefetching() {
286
+ return useContext(PrefetchContext);
287
+ }
288
+ function createApolloClient({
289
+ uri,
290
+ cacheData
291
+ }) {
292
+ const cache = new InMemoryCache({
293
+ typePolicies
294
+ });
295
+ if (cacheData)
296
+ cache.restore(cacheData);
297
+ return new ApolloClient({
298
+ uri,
299
+ cache
300
+ });
301
+ }
302
+ class MakeswiftClient {
303
+ constructor({
304
+ uri,
305
+ cacheData
306
+ }) {
307
+ __publicField(this, "apolloClient");
308
+ this.apolloClient = createApolloClient({
309
+ uri,
310
+ cacheData
311
+ });
312
+ }
313
+ async prefetch(element) {
314
+ const id = uuid();
315
+ await getDataFromTree(/* @__PURE__ */ jsx(PrefetchContext.Provider, {
316
+ value: true,
317
+ children: /* @__PURE__ */ jsx(RuntimeProvider, {
318
+ client: this,
319
+ rootElements: /* @__PURE__ */ new Map([[id, element]]),
320
+ children: /* @__PURE__ */ jsx(DocumentReference, {
321
+ documentReference: createDocumentReference(id)
322
+ })
323
+ })
324
+ }));
325
+ KeyUtils.resetGenerator();
326
+ return this.apolloClient.cache.extract();
327
+ }
328
+ updateCacheData(cacheData) {
329
+ this.apolloClient.cache.restore(cacheData);
330
+ }
331
+ }
332
+ const Context$2 = createContext(void 0);
392
333
  function useQuery(query, options) {
393
- const client = useContext(Context$1);
334
+ const client = useContext(Context$2);
394
335
  return useQuery$1(query, __spreadValues({
395
- client
336
+ client: client == null ? void 0 : client.apolloClient
337
+ }, options));
338
+ }
339
+ function useMutation(mutation, options) {
340
+ const client = useContext(Context$2);
341
+ return useMutation$1(mutation, __spreadValues({
342
+ client: client == null ? void 0 : client.apolloClient
396
343
  }, options));
397
344
  }
398
- function ApolloProvider({
345
+ function MakeswiftProvider({
399
346
  client,
400
347
  children
401
348
  }) {
402
- return /* @__PURE__ */ jsx(Context$1.Provider, {
349
+ return /* @__PURE__ */ jsx(Context$2.Provider, {
403
350
  value: client,
404
351
  children
405
352
  });
@@ -612,8 +559,8 @@ function shallowMerge(a, b) {
612
559
  }
613
560
  const DEVICES = [
614
561
  { id: "desktop", minWidth: 769 },
615
- { id: "tablet", minWidth: 476, maxWidth: 768 },
616
- { id: "mobile", maxWidth: 475 }
562
+ { id: "tablet", minWidth: 576, maxWidth: 768 },
563
+ { id: "mobile", maxWidth: 575 }
617
564
  ];
618
565
  const getDevice = (deviceId) => {
619
566
  const device = DEVICES.find(({ id }) => id === deviceId);
@@ -687,6 +634,12 @@ function usePage(pageId) {
687
634
  const { pagePathnamesById: [page] = [] } = data;
688
635
  return page;
689
636
  }
637
+ function useTable(tableId) {
638
+ return useQuery(TABLE_BY_ID, {
639
+ skip: tableId == null,
640
+ variables: { id: tableId }
641
+ });
642
+ }
690
643
  const defaultExitedProps = {
691
644
  opacity: 0,
692
645
  x: 0,
@@ -1157,8 +1110,8 @@ function getScrollParent(element) {
1157
1110
  return element;
1158
1111
  return getScrollParent(parentElement);
1159
1112
  }
1160
- function Parallax(_g) {
1161
- var _h = _g, {
1113
+ function Parallax(_g2) {
1114
+ var _h = _g2, {
1162
1115
  strength,
1163
1116
  children
1164
1117
  } = _h, rest = __objRest(_h, [
@@ -1244,7 +1197,7 @@ function Parallax(_g) {
1244
1197
  children: children(getProps)
1245
1198
  }));
1246
1199
  }
1247
- const Container$8 = styled.div`
1200
+ const Container$d = styled.div`
1248
1201
  position: absolute;
1249
1202
  top: 0;
1250
1203
  left: 0;
@@ -1298,7 +1251,7 @@ function BackgroundVideo({
1298
1251
  }, [aspectRatio, zoom]);
1299
1252
  if (!ReactPlayer.canPlay(url))
1300
1253
  return /* @__PURE__ */ jsx(Fragment, {});
1301
- return /* @__PURE__ */ jsxs(Container$8, {
1254
+ return /* @__PURE__ */ jsxs(Container$d, {
1302
1255
  ref: container,
1303
1256
  children: [container.current && /* @__PURE__ */ jsx(ReactPlayer, {
1304
1257
  url,
@@ -1377,10 +1330,10 @@ const AbsoluteFill = styled.div`
1377
1330
  right: 0;
1378
1331
  bottom: 0;
1379
1332
  `;
1380
- const Container$7 = styled(AbsoluteFill)`
1333
+ const Container$c = styled(AbsoluteFill)`
1381
1334
  border-radius: inherit;
1382
1335
  `;
1383
- const BackgroundsContainer$1 = styled(Container$7)`
1336
+ const BackgroundsContainer$1 = styled(Container$c)`
1384
1337
  overflow: hidden;
1385
1338
  ${(p) => cssMediaRules([p.visibility], ([visibility]) => css`
1386
1339
  display: ${visibility === true ? "block" : "none"};
@@ -1389,6 +1342,9 @@ const BackgroundsContainer$1 = styled(Container$7)`
1389
1342
  function Backgrounds({
1390
1343
  backgrounds
1391
1344
  }) {
1345
+ const isPrefetching = useIsPrefetching();
1346
+ if (isPrefetching)
1347
+ return /* @__PURE__ */ jsx(Fragment, {});
1392
1348
  if (backgrounds == null)
1393
1349
  return /* @__PURE__ */ jsx(Fragment, {});
1394
1350
  return /* @__PURE__ */ jsx(Fragment, {
@@ -1404,7 +1360,7 @@ function Backgrounds({
1404
1360
  visibility,
1405
1361
  children: [...value].reverse().map((bg) => {
1406
1362
  if (bg.type === "color") {
1407
- return /* @__PURE__ */ jsx(Container$7, {
1363
+ return /* @__PURE__ */ jsx(Container$c, {
1408
1364
  style: {
1409
1365
  backgroundColor: getColor(bg.payload)
1410
1366
  }
@@ -1440,7 +1396,7 @@ function Backgrounds({
1440
1396
  }
1441
1397
  return /* @__PURE__ */ jsx(Parallax, {
1442
1398
  strength: parallax,
1443
- children: (getParallaxProps) => /* @__PURE__ */ jsx(Container$7, __spreadValues({}, getParallaxProps({
1399
+ children: (getParallaxProps) => /* @__PURE__ */ jsx(Container$c, __spreadValues({}, getParallaxProps({
1444
1400
  style: {
1445
1401
  backgroundImage: publicUrl != null ? `url('${publicUrl}')` : void 0,
1446
1402
  backgroundPosition,
@@ -1458,7 +1414,7 @@ function Backgrounds({
1458
1414
  isRadial
1459
1415
  } = bg.payload;
1460
1416
  const gradient = `${getStopsStyle(stops)}`;
1461
- return /* @__PURE__ */ jsx(Container$7, {
1417
+ return /* @__PURE__ */ jsx(Container$c, {
1462
1418
  style: {
1463
1419
  background: isRadial ? `radial-gradient(${gradient})` : `linear-gradient(${angle}rad, ${gradient})`
1464
1420
  }
@@ -1475,7 +1431,7 @@ function Backgrounds({
1475
1431
  } = bg.payload;
1476
1432
  return /* @__PURE__ */ jsx(Parallax, {
1477
1433
  strength: parallax,
1478
- children: (getParallaxProps) => /* @__PURE__ */ jsx(Container$7, __spreadProps(__spreadValues({}, getParallaxProps({})), {
1434
+ children: (getParallaxProps) => /* @__PURE__ */ jsx(Container$c, __spreadProps(__spreadValues({}, getParallaxProps({})), {
1479
1435
  children: /* @__PURE__ */ jsx(BackgroundVideo, {
1480
1436
  url,
1481
1437
  zoom,
@@ -1543,7 +1499,7 @@ const Grid$1 = styled(motion.div)`
1543
1499
  alignContent
1544
1500
  }))}
1545
1501
  `;
1546
- const GridItem$1 = styled(motion.div)`
1502
+ const GridItem$2 = styled(motion.div)`
1547
1503
  display: flex;
1548
1504
 
1549
1505
  /* IE11 doesn't recognize space-between and treats it as stretch, so we fall back to flex-start */
@@ -1654,7 +1610,7 @@ const Box = forwardRef(function Box2({
1654
1610
  animate: animate == null ? void 0 : animate.parent,
1655
1611
  initial: initial == null ? void 0 : initial.parent,
1656
1612
  transition: transition == null ? void 0 : transition.parent,
1657
- children: children && children.elements.length > 0 ? children.elements.map((child, index) => /* @__PURE__ */ jsx(GridItem$1, {
1613
+ children: children && children.elements.length > 0 ? children.elements.map((child, index) => /* @__PURE__ */ jsx(GridItem$2, {
1658
1614
  grid: children.columns,
1659
1615
  index,
1660
1616
  columnGap,
@@ -1665,13 +1621,20 @@ const Box = forwardRef(function Box2({
1665
1621
  children: /* @__PURE__ */ jsx(Element$1, {
1666
1622
  element: child
1667
1623
  })
1668
- }, child.key)) : /* @__PURE__ */ jsx(Placeholder$1, {
1624
+ }, child.key)) : /* @__PURE__ */ jsx(Placeholder$2, {
1669
1625
  hide: hidePlaceholder
1670
1626
  })
1671
1627
  })
1672
1628
  }, key == null ? void 0 : key.container);
1673
1629
  });
1674
- function registerComponent$a(runtime) {
1630
+ function registerComponent$c(runtime) {
1631
+ function isHiddenBasedOnAnimationType(props, deviceId, property) {
1632
+ var _a, _b;
1633
+ const animateIn = props[property];
1634
+ return ((_b = (_a = findDeviceOverride(animateIn, deviceId)) == null ? void 0 : _a.value) != null ? _b : "none") === "none";
1635
+ }
1636
+ const isHiddenBasedOnBoxAnimation = (props, deviceId) => isHiddenBasedOnAnimationType(props, deviceId, "boxAnimateType");
1637
+ const isHiddenBasedOnItemAnimation = (props, deviceId) => isHiddenBasedOnAnimationType(props, deviceId, "itemAnimateType");
1675
1638
  return runtime.registerComponent(Box, {
1676
1639
  type: "./components/Box/index.js",
1677
1640
  label: "Box",
@@ -1740,8 +1703,12 @@ function registerComponent$a(runtime) {
1740
1703
  border: Border(),
1741
1704
  borderRadius: BorderRadius(),
1742
1705
  boxShadow: Shadows(),
1743
- rowGap: GapY({}),
1744
- columnGap: GapX({}),
1706
+ rowGap: GapY((props) => ({
1707
+ hidden: props.children == null
1708
+ })),
1709
+ columnGap: GapX((props) => ({
1710
+ hidden: props.children == null
1711
+ })),
1745
1712
  boxAnimateType: ResponsiveSelect({
1746
1713
  label: "Animate box in",
1747
1714
  labelOrientation: "vertical",
@@ -1775,20 +1742,22 @@ function registerComponent$a(runtime) {
1775
1742
  }],
1776
1743
  defaultValue: "none"
1777
1744
  }),
1778
- boxAnimateDuration: ResponsiveNumber({
1745
+ boxAnimateDuration: ResponsiveNumber((props, device) => ({
1779
1746
  label: "Box duration",
1780
1747
  defaultValue: DEFAULT_BOX_ANIMATE_DURATION,
1781
1748
  min: 0.1,
1782
1749
  step: 0.05,
1783
- suffix: "s"
1784
- }),
1785
- boxAnimateDelay: ResponsiveNumber({
1750
+ suffix: "s",
1751
+ hidden: isHiddenBasedOnBoxAnimation(props, device)
1752
+ })),
1753
+ boxAnimateDelay: ResponsiveNumber((props, device) => ({
1786
1754
  label: "Box delay",
1787
1755
  defaultValue: DEFAULT_BOX_ANIMATE_DELAY,
1788
1756
  min: 0,
1789
1757
  step: 0.05,
1790
- suffix: "s"
1791
- }),
1758
+ suffix: "s",
1759
+ hidden: isHiddenBasedOnBoxAnimation(props, device)
1760
+ })),
1792
1761
  itemAnimateType: ResponsiveSelect({
1793
1762
  label: "Animate items in",
1794
1763
  labelOrientation: "vertical",
@@ -1822,30 +1791,34 @@ function registerComponent$a(runtime) {
1822
1791
  }],
1823
1792
  defaultValue: "none"
1824
1793
  }),
1825
- itemAnimateDuration: ResponsiveNumber({
1794
+ itemAnimateDuration: ResponsiveNumber((props, device) => ({
1826
1795
  label: "Items duration",
1827
1796
  defaultValue: DEFAULT_BOX_ANIMATE_DURATION,
1828
1797
  min: 0.1,
1829
1798
  step: 0.05,
1830
- suffix: "s"
1831
- }),
1832
- itemAnimateDelay: ResponsiveNumber({
1799
+ suffix: "s",
1800
+ hidden: isHiddenBasedOnItemAnimation(props, device)
1801
+ })),
1802
+ itemAnimateDelay: ResponsiveNumber((props, device) => ({
1833
1803
  label: "Items delay",
1834
1804
  defaultValue: DEFAULT_ITEM_ANIMATE_DELAY,
1835
1805
  min: 0,
1836
1806
  step: 0.05,
1837
- suffix: "s"
1838
- }),
1839
- itemStaggerDuration: ResponsiveNumber({
1807
+ suffix: "s",
1808
+ hidden: isHiddenBasedOnItemAnimation(props, device)
1809
+ })),
1810
+ itemStaggerDuration: ResponsiveNumber((props, device) => ({
1840
1811
  label: "Stagger",
1841
1812
  min: 0,
1842
1813
  step: 0.05,
1843
1814
  suffix: "s",
1844
- defaultValue: DEFAULT_ITEM_STAGGER_DURATION
1845
- }),
1846
- hidePlaceholder: Checkbox({
1847
- label: "Hide placeholder"
1848
- }),
1815
+ defaultValue: DEFAULT_ITEM_STAGGER_DURATION,
1816
+ hidden: isHiddenBasedOnItemAnimation(props, device)
1817
+ })),
1818
+ hidePlaceholder: Checkbox$1((props) => ({
1819
+ label: "Hide placeholder",
1820
+ hidden: props.children != null
1821
+ })),
1849
1822
  children: Grid$2()
1850
1823
  }
1851
1824
  });
@@ -1936,7 +1909,7 @@ const Link = forwardRef(function Link2(_k, ref) {
1936
1909
  }))
1937
1910
  });
1938
1911
  });
1939
- const StyledButton = styled(Link)`
1912
+ const StyledButton$1 = styled(Link)`
1940
1913
  display: table;
1941
1914
  border: 0;
1942
1915
  outline: 0;
@@ -2128,7 +2101,7 @@ const StyledButton = styled(Link)`
2128
2101
  })}
2129
2102
  ${cssTextStyle()}
2130
2103
  `;
2131
- const Button = forwardRef(function Button2(_m, ref) {
2104
+ const Button$1 = forwardRef(function Button2(_m, ref) {
2132
2105
  var _n = _m, {
2133
2106
  id,
2134
2107
  children,
@@ -2154,7 +2127,7 @@ const Button = forwardRef(function Button2(_m, ref) {
2154
2127
  "width",
2155
2128
  "margin"
2156
2129
  ]);
2157
- return /* @__PURE__ */ jsx(StyledButton, __spreadProps(__spreadValues({}, restOfProps), {
2130
+ return /* @__PURE__ */ jsx(StyledButton$1, __spreadProps(__spreadValues({}, restOfProps), {
2158
2131
  ref,
2159
2132
  id,
2160
2133
  color: useColor(color),
@@ -2169,8 +2142,8 @@ const Button = forwardRef(function Button2(_m, ref) {
2169
2142
  children: children == null ? "Button Text" : children
2170
2143
  }));
2171
2144
  });
2172
- function registerComponent$9(runtime) {
2173
- return runtime.registerComponent(Button, {
2145
+ function registerComponent$b(runtime) {
2146
+ return runtime.registerComponent(Button$1, {
2174
2147
  type: "./components/Button/index.js",
2175
2148
  label: "Button",
2176
2149
  props: {
@@ -2265,6 +2238,10 @@ const placeholders = {
2265
2238
  image: {
2266
2239
  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",
2267
2240
  dimensions: { width: 360, height: 240 }
2241
+ },
2242
+ video: {
2243
+ 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",
2244
+ dimensions: { width: 712, height: 400 }
2268
2245
  }
2269
2246
  };
2270
2247
  function loadImage(src) {
@@ -2324,6 +2301,7 @@ const ImageComponent = forwardRef(function Image2({
2324
2301
  const dataDimensions = (fileData == null ? void 0 : fileData.publicUrl) ? fileData == null ? void 0 : fileData.dimensions : placeholder2.dimensions;
2325
2302
  const [measuredDimensions, setMeasuredDimensions] = useState(null);
2326
2303
  const isInBuilder = useIsInBuilder();
2304
+ const isPrefetching = useIsPrefetching();
2327
2305
  useEffect(() => {
2328
2306
  if (dataDimensions)
2329
2307
  return;
@@ -2343,6 +2321,8 @@ const ImageComponent = forwardRef(function Image2({
2343
2321
  const dimensions = dataDimensions != null ? dataDimensions : measuredDimensions;
2344
2322
  if (!dimensions)
2345
2323
  return null;
2324
+ if (isPrefetching)
2325
+ return null;
2346
2326
  return /* @__PURE__ */ jsx(ImageContainer, {
2347
2327
  as: link ? Link : "div",
2348
2328
  link,
@@ -2370,7 +2350,7 @@ const ImageComponent = forwardRef(function Image2({
2370
2350
  })
2371
2351
  });
2372
2352
  });
2373
- function registerComponent$8(runtime) {
2353
+ function registerComponent$a(runtime) {
2374
2354
  return runtime.registerComponent(ImageComponent, {
2375
2355
  type: "./components/Image/index.js",
2376
2356
  label: "Image",
@@ -2419,7 +2399,7 @@ const RightChevron = () => /* @__PURE__ */ jsx("svg", {
2419
2399
  strokeWidth: "2"
2420
2400
  })
2421
2401
  });
2422
- const Container$6 = styled.div`
2402
+ const Container$b = styled.div`
2423
2403
  position: relative;
2424
2404
  height: 100%;
2425
2405
  `;
@@ -2719,7 +2699,7 @@ const Carousel = forwardRef(function Carousel2({
2719
2699
  break;
2720
2700
  }
2721
2701
  },
2722
- children: [/* @__PURE__ */ jsxs(Container$6, {
2702
+ children: [/* @__PURE__ */ jsxs(Container$b, {
2723
2703
  children: [/* @__PURE__ */ jsx(ClipMask, {
2724
2704
  children: /* @__PURE__ */ jsx(Page, __spreadProps(__spreadValues({}, bindPage()), {
2725
2705
  animate: animation,
@@ -2795,7 +2775,7 @@ const Carousel = forwardRef(function Carousel2({
2795
2775
  })]
2796
2776
  });
2797
2777
  });
2798
- function registerComponent$7(runtime) {
2778
+ function registerComponent$9(runtime) {
2799
2779
  return runtime.registerComponent(Carousel, {
2800
2780
  type: "./components/Carousel/index.js",
2801
2781
  label: "Carousel",
@@ -2858,7 +2838,7 @@ function registerComponent$7(runtime) {
2858
2838
  unit: "px"
2859
2839
  }
2860
2840
  }),
2861
- autoplay: Checkbox({
2841
+ autoplay: Checkbox$1({
2862
2842
  label: "Autoplay"
2863
2843
  }),
2864
2844
  delay: Number$1({
@@ -2868,7 +2848,7 @@ function registerComponent$7(runtime) {
2868
2848
  step: 0.1,
2869
2849
  suffix: "seconds"
2870
2850
  }),
2871
- showArrows: Checkbox({
2851
+ showArrows: Checkbox$1({
2872
2852
  preset: true,
2873
2853
  label: "Show arrows"
2874
2854
  }),
@@ -2897,7 +2877,7 @@ function registerComponent$7(runtime) {
2897
2877
  label: "Arrow background",
2898
2878
  placeholder: "white"
2899
2879
  }),
2900
- showDots: Checkbox({
2880
+ showDots: Checkbox$1({
2901
2881
  preset: true,
2902
2882
  label: "Show dots"
2903
2883
  }),
@@ -2915,14 +2895,14 @@ const Block$1 = styled.div`
2915
2895
  padding: 0.5em;
2916
2896
  font-size: 1em;
2917
2897
  `;
2918
- const Label = styled.div`
2898
+ const Label$3 = styled.div`
2919
2899
  margin-top: 0.25em;
2920
2900
  `;
2921
2901
  const Segment = styled.div`
2922
2902
  flex: 1;
2923
2903
  text-align: center;
2924
2904
  `;
2925
- const Container$5 = styled.div`
2905
+ const Container$a = styled.div`
2926
2906
  display: flex;
2927
2907
  ${cssWidth("560px")}
2928
2908
  ${cssMargin()}
@@ -2932,7 +2912,7 @@ const Container$5 = styled.div`
2932
2912
  return css`
2933
2913
  font-size: 18px;
2934
2914
 
2935
- ${Label} {
2915
+ ${Label$3} {
2936
2916
  font-size: 14px;
2937
2917
  }
2938
2918
  `;
@@ -2940,7 +2920,7 @@ const Container$5 = styled.div`
2940
2920
  return css`
2941
2921
  font-size: 32px;
2942
2922
 
2943
- ${Label} {
2923
+ ${Label$3} {
2944
2924
  font-size: 18px;
2945
2925
  }
2946
2926
  `;
@@ -2948,7 +2928,7 @@ const Container$5 = styled.div`
2948
2928
  return css`
2949
2929
  font-size: 24px;
2950
2930
 
2951
- ${Label} {
2931
+ ${Label$3} {
2952
2932
  font-size: 16px;
2953
2933
  }
2954
2934
  `;
@@ -3085,7 +3065,7 @@ const Container$5 = styled.div`
3085
3065
  })}
3086
3066
  }
3087
3067
 
3088
- ${Label} {
3068
+ ${Label$3} {
3089
3069
  ${(p) => cssMediaRules([p.labelColor, p.labelFont], ([labelColor = {
3090
3070
  swatch: {
3091
3071
  hue: 0,
@@ -3162,7 +3142,7 @@ const Countdown = forwardRef(function Countdown2({
3162
3142
  }, 1e3);
3163
3143
  return () => clearInterval(intervalId);
3164
3144
  }, [date]);
3165
- return /* @__PURE__ */ jsxs(Container$5, {
3145
+ return /* @__PURE__ */ jsxs(Container$a, {
3166
3146
  ref,
3167
3147
  id,
3168
3148
  width,
@@ -3181,7 +3161,7 @@ const Countdown = forwardRef(function Countdown2({
3181
3161
  children: /* @__PURE__ */ jsx("span", {
3182
3162
  children: days
3183
3163
  })
3184
- }), /* @__PURE__ */ jsx(Label, {
3164
+ }), /* @__PURE__ */ jsx(Label$3, {
3185
3165
  children: daysLabel == null ? "Days" : daysLabel
3186
3166
  })]
3187
3167
  }), /* @__PURE__ */ jsxs(Segment, {
@@ -3189,7 +3169,7 @@ const Countdown = forwardRef(function Countdown2({
3189
3169
  children: /* @__PURE__ */ jsx("span", {
3190
3170
  children: hours
3191
3171
  })
3192
- }), /* @__PURE__ */ jsx(Label, {
3172
+ }), /* @__PURE__ */ jsx(Label$3, {
3193
3173
  children: hoursLabel == null ? "Hours" : hoursLabel
3194
3174
  })]
3195
3175
  }), /* @__PURE__ */ jsxs(Segment, {
@@ -3197,7 +3177,7 @@ const Countdown = forwardRef(function Countdown2({
3197
3177
  children: /* @__PURE__ */ jsx("span", {
3198
3178
  children: minutes
3199
3179
  })
3200
- }), /* @__PURE__ */ jsx(Label, {
3180
+ }), /* @__PURE__ */ jsx(Label$3, {
3201
3181
  children: minutesLabel == null ? "Minutes" : minutesLabel
3202
3182
  })]
3203
3183
  }), /* @__PURE__ */ jsxs(Segment, {
@@ -3205,13 +3185,13 @@ const Countdown = forwardRef(function Countdown2({
3205
3185
  children: /* @__PURE__ */ jsx("span", {
3206
3186
  children: seconds
3207
3187
  })
3208
- }), /* @__PURE__ */ jsx(Label, {
3188
+ }), /* @__PURE__ */ jsx(Label$3, {
3209
3189
  children: secondsLabel == null ? "Seconds" : secondsLabel
3210
3190
  })]
3211
3191
  })]
3212
3192
  });
3213
3193
  });
3214
- function registerComponent$6(runtime) {
3194
+ function registerComponent$8(runtime) {
3215
3195
  return runtime.registerComponent(Countdown, {
3216
3196
  type: "./components/Countdown/index.js",
3217
3197
  label: "Countdown",
@@ -3347,7 +3327,7 @@ const IE11MinHeightContainer = styled.div`
3347
3327
  ${cssWidth()}
3348
3328
  ${cssMargin()}
3349
3329
  `;
3350
- const Container$4 = styled.div`
3330
+ const Container$9 = styled.div`
3351
3331
  display: flex;
3352
3332
  flex-direction: column;
3353
3333
  justify-content: center;
@@ -3406,7 +3386,7 @@ const Divider = forwardRef(function Divider2({
3406
3386
  id,
3407
3387
  width,
3408
3388
  margin,
3409
- children: /* @__PURE__ */ jsx(Container$4, {
3389
+ children: /* @__PURE__ */ jsx(Container$9, {
3410
3390
  children: /* @__PURE__ */ jsx(Line, {
3411
3391
  variant,
3412
3392
  thickness,
@@ -3415,7 +3395,7 @@ const Divider = forwardRef(function Divider2({
3415
3395
  })
3416
3396
  });
3417
3397
  });
3418
- function registerComponent$5(runtime) {
3398
+ function registerComponent$7(runtime) {
3419
3399
  return runtime.registerComponent(Divider, {
3420
3400
  type: "./components/Divider/index.js",
3421
3401
  label: "Divider",
@@ -3465,7 +3445,7 @@ function registerComponent$5(runtime) {
3465
3445
  }
3466
3446
  });
3467
3447
  }
3468
- const Container$3 = styled.div`
3448
+ const Container$8 = styled.div`
3469
3449
  min-height: 15px;
3470
3450
  ${cssWidth()}
3471
3451
  ${cssMargin()}
@@ -3545,7 +3525,7 @@ const Embed = forwardRef(function Embed2({
3545
3525
  }, [container, html]);
3546
3526
  if (shouldRender === false)
3547
3527
  return null;
3548
- return /* @__PURE__ */ jsx(Container$3, {
3528
+ return /* @__PURE__ */ jsx(Container$8, {
3549
3529
  ref: setContainer,
3550
3530
  id,
3551
3531
  margin,
@@ -3555,14 +3535,14 @@ const Embed = forwardRef(function Embed2({
3555
3535
  }
3556
3536
  });
3557
3537
  });
3558
- function registerComponent$4(runtime) {
3538
+ function registerComponent$6(runtime) {
3559
3539
  return runtime.registerComponent(Embed, {
3560
3540
  type: "./components/Embed/index.js",
3561
3541
  label: "Embed",
3562
3542
  icon: "Code40",
3563
3543
  props: {
3564
3544
  id: ElementID(),
3565
- html: TextArea({
3545
+ html: TextArea$1({
3566
3546
  label: "Code",
3567
3547
  rows: 20
3568
3548
  }),
@@ -3571,9 +3551,9 @@ function registerComponent$4(runtime) {
3571
3551
  }
3572
3552
  });
3573
3553
  }
3574
- var _path$r;
3575
- function _extends$r() {
3576
- _extends$r = Object.assign || function(target) {
3554
+ var _path$t;
3555
+ function _extends$u() {
3556
+ _extends$u = Object.assign || function(target) {
3577
3557
  for (var i = 1; i < arguments.length; i++) {
3578
3558
  var source = arguments[i];
3579
3559
  for (var key in source) {
@@ -3584,82 +3564,1774 @@ function _extends$r() {
3584
3564
  }
3585
3565
  return target;
3586
3566
  };
3587
- return _extends$r.apply(this, arguments);
3567
+ return _extends$u.apply(this, arguments);
3588
3568
  }
3589
- var SvgMobileMenu28 = function SvgMobileMenu282(props) {
3590
- return /* @__PURE__ */ React.createElement("svg", _extends$r({
3591
- xmlns: "http://www.w3.org/2000/svg",
3592
- width: 28,
3593
- height: 28
3594
- }, props), _path$r || (_path$r = /* @__PURE__ */ React.createElement("path", {
3595
- 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"
3569
+ var SvgCheck12 = function SvgCheck122(props) {
3570
+ return /* @__PURE__ */ React.createElement("svg", _extends$u({
3571
+ width: 12,
3572
+ height: 12,
3573
+ xmlns: "http://www.w3.org/2000/svg"
3574
+ }, props), _path$t || (_path$t = /* @__PURE__ */ React.createElement("path", {
3575
+ fillRule: "evenodd",
3576
+ clipRule: "evenodd",
3577
+ 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"
3596
3578
  })));
3597
3579
  };
3598
- const GutterContainer = styled.div`
3599
- ${(p) => cssMediaRules([p.gutter], ([gutter = {
3600
- value: 0,
3601
- unit: "px"
3602
- }]) => css`
3603
- padding-left: ${p.first ? "0px" : `${gutter.value / 2}${gutter.unit}`};
3604
- padding-right: ${p.last ? "0px" : `${gutter.value / 2}${gutter.unit}`};
3580
+ const Shapes = Object.freeze({
3581
+ SQUARE: "square",
3582
+ ROUNDED: "rounded",
3583
+ PILL: "pill"
3584
+ });
3585
+ const Sizes = Object.freeze({
3586
+ SMALL: "small",
3587
+ MEDIUM: "medium",
3588
+ LARGE: "large"
3589
+ });
3590
+ const Contrasts = Object.freeze({
3591
+ LIGHT: "light",
3592
+ DARK: "dark"
3593
+ });
3594
+ const Context$1 = createContext({});
3595
+ function useFormContext() {
3596
+ return useContext(Context$1);
3597
+ }
3598
+ const { Provider } = Context$1;
3599
+ function getSizeHeight$2(size) {
3600
+ switch (size) {
3601
+ case Sizes.SMALL:
3602
+ return 30;
3603
+ case Sizes.MEDIUM:
3604
+ return 38;
3605
+ case Sizes.LARGE:
3606
+ return 48;
3607
+ default:
3608
+ throw new Error(`Invalid form size "${size}"`);
3609
+ }
3610
+ }
3611
+ function getSizeHorizontalPadding(size) {
3612
+ switch (size) {
3613
+ case Sizes.SMALL:
3614
+ return 8;
3615
+ case Sizes.MEDIUM:
3616
+ return 12;
3617
+ case Sizes.LARGE:
3618
+ return 16;
3619
+ default:
3620
+ throw new Error(`Invalid form size "${size}"`);
3621
+ }
3622
+ }
3623
+ function getSizeVerticalPadding(size) {
3624
+ switch (size) {
3625
+ case Sizes.SMALL:
3626
+ return 3;
3627
+ case Sizes.MEDIUM:
3628
+ return 7;
3629
+ case Sizes.LARGE:
3630
+ return 11;
3631
+ default:
3632
+ throw new Error(`Invalid form size "${size}"`);
3633
+ }
3634
+ }
3635
+ function getShapeBorderRadius(shape) {
3636
+ switch (shape) {
3637
+ case Shapes.SQUARE:
3638
+ return 0;
3639
+ case Shapes.ROUNDED:
3640
+ return 4;
3641
+ case Shapes.PILL:
3642
+ return 500;
3643
+ default:
3644
+ throw new Error(`Invalid form shape "${shape}"`);
3645
+ }
3646
+ }
3647
+ function getContrastBorderColor(contrast, error) {
3648
+ switch (contrast) {
3649
+ case Contrasts.LIGHT:
3650
+ return error ? "rgba(255, 0, 0, 0.7)" : "rgba(0, 0, 0, 0.25)";
3651
+ case Contrasts.DARK:
3652
+ return error ? "rgba(255, 0, 0, 0.7)" : "rgba(255, 255, 255, 0.6)";
3653
+ default:
3654
+ throw new Error(`Invalid form contrast "${contrast}"`);
3655
+ }
3656
+ }
3657
+ function getContrastBackgroundColor(contrast) {
3658
+ switch (contrast) {
3659
+ case Contrasts.LIGHT:
3660
+ return "white";
3661
+ case Contrasts.DARK:
3662
+ return "rgba(0, 0, 0, 0.7)";
3663
+ default:
3664
+ throw new Error(`Invalid form contrast "${contrast}"`);
3665
+ }
3666
+ }
3667
+ function getContrastColor$1(contrast) {
3668
+ switch (contrast) {
3669
+ case Contrasts.LIGHT:
3670
+ return "rgba(0, 0, 0, 0.95)";
3671
+ case Contrasts.DARK:
3672
+ return "white";
3673
+ default:
3674
+ throw new Error(`Invalid form contrast "${contrast}"`);
3675
+ }
3676
+ }
3677
+ function getContrastPlaceholderColor(contrast) {
3678
+ switch (contrast) {
3679
+ case Contrasts.LIGHT:
3680
+ return "rgba(0, 0, 0, 0.3)";
3681
+ case Contrasts.DARK:
3682
+ return "rgba(255,255,255,0.3)";
3683
+ default:
3684
+ throw new Error(`Invalid form contrast "${contrast}"`);
3685
+ }
3686
+ }
3687
+ function cssField() {
3688
+ return css`
3689
+ display: block;
3690
+ width: 100%;
3691
+ outline: none;
3692
+ border-width: 1px;
3693
+ border-style: solid;
3694
+ transition: border-color 200ms;
3695
+ ${(props) => cssMediaRules([props.shape, props.size, props.contrast, props.brandColor], ([
3696
+ shape = Shapes.ROUNDED,
3697
+ size = Sizes.MEDIUM,
3698
+ contrast = Contrasts.LIGHT,
3699
+ brandColor = { swatch: { hue: 0, saturation: 0, lightness: 0 }, alpha: 1 }
3700
+ ]) => css`
3701
+ padding: ${getSizeVerticalPadding(size)}px ${getSizeHorizontalPadding(size)}px;
3702
+ border-radius: ${getShapeBorderRadius(shape)}px;
3703
+ border-color: ${getContrastBorderColor(contrast, props.error)};
3704
+ color: ${getContrastColor$1(contrast)};
3705
+ background-color: ${getContrastBackgroundColor(contrast)};
3706
+
3707
+ :focus,
3708
+ :focus-within {
3709
+ border-color: ${colorToString(brandColor)};
3710
+ }
3711
+
3712
+ ::placeholder {
3713
+ color: ${getContrastPlaceholderColor(contrast)};
3714
+ }
3715
+ `)}
3716
+ `;
3717
+ }
3718
+ function getSizeHeight$1(size) {
3719
+ switch (size) {
3720
+ case Sizes.SMALL:
3721
+ return 36;
3722
+ case Sizes.MEDIUM:
3723
+ return 42;
3724
+ case Sizes.LARGE:
3725
+ return 48;
3726
+ default:
3727
+ throw new Error(`Invalid form size "${size}"`);
3728
+ }
3729
+ }
3730
+ const Base$2 = styled.input`
3731
+ ${cssField()}
3732
+ ${(props) => cssMediaRules([props.size], ([size = Sizes.MEDIUM]) => css`
3733
+ min-height: ${getSizeHeight$1(size)}px;
3734
+ max-height: ${getSizeHeight$1(size)}px;
3605
3735
  `)}
3606
3736
  `;
3607
- const PlaceholderLink$1 = styled.div`
3608
- width: ${(props) => props.width}px;
3609
- height: ${(props) => props.button === true ? 32 : 8}px;
3737
+ var Input$2 = forwardRef(function Input(_o, ref) {
3738
+ var _p = _o, {
3739
+ error = false,
3740
+ form
3741
+ } = _p, restOfProps = __objRest(_p, [
3742
+ "error",
3743
+ "form"
3744
+ ]);
3745
+ const {
3746
+ shape,
3747
+ size,
3748
+ contrast,
3749
+ brandColor
3750
+ } = useFormContext();
3751
+ return /* @__PURE__ */ jsx(Base$2, __spreadProps(__spreadValues({}, restOfProps), {
3752
+ ref,
3753
+ error,
3754
+ shape,
3755
+ size,
3756
+ contrast,
3757
+ brandColor
3758
+ }));
3759
+ });
3760
+ const Container$7 = styled.div`
3761
+ display: flex;
3762
+ flex-direction: column;
3763
+ ${cssWidth()};
3764
+ ${cssMargin()};
3765
+ `;
3766
+ const Label$2 = styled.div`
3767
+ max-width: 120px;
3768
+ min-width: 60px;
3769
+ height: 8px;
3770
+ border-radius: 2px;
3610
3771
  background-color: #a1a8c2;
3611
- border-radius: ${(props) => props.button === true ? 6 : 2}px;
3612
3772
  opacity: 0.4;
3773
+ margin-bottom: 8px;
3613
3774
  `;
3614
- const links$1 = [{
3615
- width: 50
3616
- }, {
3617
- width: 70
3618
- }, {
3619
- width: 60
3620
- }, {
3621
- width: 80,
3622
- button: true
3623
- }];
3624
- function LinksPlaceholder({
3625
- gutter
3626
- }) {
3627
- return /* @__PURE__ */ jsx(Fragment, {
3628
- children: links$1.map((link, i) => /* @__PURE__ */ jsx(GutterContainer, {
3629
- gutter,
3630
- first: i === 0,
3631
- last: i === links$1.length - 1,
3632
- children: /* @__PURE__ */ jsx(PlaceholderLink$1, __spreadValues({}, link))
3633
- }, i))
3634
- });
3635
- }
3636
- var _path$q;
3637
- function _extends$q() {
3638
- _extends$q = Object.assign || function(target) {
3639
- for (var i = 1; i < arguments.length; i++) {
3640
- var source = arguments[i];
3641
- for (var key in source) {
3642
- if (Object.prototype.hasOwnProperty.call(source, key)) {
3643
- target[key] = source[key];
3644
- }
3645
- }
3646
- }
3647
- return target;
3648
- };
3649
- return _extends$q.apply(this, arguments);
3650
- }
3651
- var SvgCaretDown8 = function SvgCaretDown82(props) {
3652
- return /* @__PURE__ */ React.createElement("svg", _extends$q({
3653
- width: 8,
3654
- height: 8,
3655
- xmlns: "http://www.w3.org/2000/svg"
3656
- }, props), _path$q || (_path$q = /* @__PURE__ */ React.createElement("path", {
3657
- 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"
3658
- })));
3659
- };
3660
- var _path$p;
3661
- function _extends$p() {
3662
- _extends$p = Object.assign || function(target) {
3775
+ const Input$1 = styled.div`
3776
+ min-width: 80px;
3777
+ height: 32px;
3778
+ border-radius: 4px;
3779
+ border-width: 2px;
3780
+ border-style: solid;
3781
+ border-color: #a1a8c2;
3782
+ opacity: 0.4;
3783
+ `;
3784
+ const Button = styled.div`
3785
+ min-width: 140px;
3786
+ height: 32px;
3787
+ border-radius: 4px;
3788
+ background-color: #a1a8c2;
3789
+ opacity: 0.4;
3790
+ `;
3791
+ var Placeholder$1 = forwardRef(function Placeholder2({
3792
+ width,
3793
+ margin
3794
+ }, ref) {
3795
+ return /* @__PURE__ */ jsxs(Container$7, {
3796
+ ref,
3797
+ width,
3798
+ margin,
3799
+ children: [/* @__PURE__ */ jsxs("div", {
3800
+ style: {
3801
+ display: "flex",
3802
+ flexDirection: "column",
3803
+ marginBottom: 16
3804
+ },
3805
+ children: [/* @__PURE__ */ jsx(Label$2, {}), /* @__PURE__ */ jsx(Input$1, {})]
3806
+ }), /* @__PURE__ */ jsxs("div", {
3807
+ style: {
3808
+ display: "flex",
3809
+ flexDirection: "column",
3810
+ marginBottom: 16
3811
+ },
3812
+ children: [/* @__PURE__ */ jsx(Label$2, {}), /* @__PURE__ */ jsx(Input$1, {})]
3813
+ }), /* @__PURE__ */ jsx("div", {
3814
+ style: {
3815
+ display: "flex",
3816
+ flexDirection: "column",
3817
+ justifyContent: "flex-end"
3818
+ },
3819
+ children: /* @__PURE__ */ jsx(Button, {})
3820
+ })]
3821
+ });
3822
+ });
3823
+ function getSizeHeight(size) {
3824
+ switch (size) {
3825
+ case Sizes.SMALL:
3826
+ return 14;
3827
+ case Sizes.MEDIUM:
3828
+ return 18;
3829
+ case Sizes.LARGE:
3830
+ return 22;
3831
+ default:
3832
+ throw new Error(`Invalid form size "${size}"`);
3833
+ }
3834
+ }
3835
+ function getContrastColor(contrast) {
3836
+ switch (contrast) {
3837
+ case Contrasts.LIGHT:
3838
+ return "rgba(0, 0, 0, 0.8)";
3839
+ case Contrasts.DARK:
3840
+ return "rgba(255, 255, 255, 0.95)";
3841
+ default:
3842
+ throw new Error(`Invalid form contrast "${contrast}"`);
3843
+ }
3844
+ }
3845
+ const Base$1 = styled.label`
3846
+ display: block;
3847
+ margin: 0 0 0.25em 0;
3848
+ ${cssTextStyle()}
3849
+ ${(props) => cssMediaRules([props.size, props.contrast, props.textColor], ([size = Sizes.MEDIUM, contrast = Contrasts.LIGHT, textColor]) => css`
3850
+ min-height: ${getSizeHeight(size)}px;
3851
+ color: ${textColor == null ? getContrastColor(contrast) : colorToString(textColor)};
3852
+ `)}
3853
+ `;
3854
+ function Label$1(props) {
3855
+ const {
3856
+ contrast,
3857
+ size,
3858
+ labelTextStyle,
3859
+ labelTextColor
3860
+ } = useFormContext();
3861
+ return /* @__PURE__ */ jsx(Base$1, __spreadProps(__spreadValues({}, props), {
3862
+ contrast,
3863
+ size,
3864
+ textStyle: labelTextStyle,
3865
+ textColor: useColor(labelTextColor)
3866
+ }));
3867
+ }
3868
+ var SingleLineTextTableField = forwardRef(function SingleLineTextTableField2(_q, ref) {
3869
+ var _r = _q, {
3870
+ id,
3871
+ label = "",
3872
+ name,
3873
+ error,
3874
+ hideLabel = false
3875
+ } = _r, restOfProps = __objRest(_r, [
3876
+ "id",
3877
+ "label",
3878
+ "name",
3879
+ "error",
3880
+ "hideLabel"
3881
+ ]);
3882
+ return /* @__PURE__ */ jsxs(Fragment, {
3883
+ children: [!hideLabel && /* @__PURE__ */ jsx(Label$1, {
3884
+ htmlFor: id,
3885
+ children: label
3886
+ }), /* @__PURE__ */ jsx(Input$2, __spreadProps(__spreadValues({}, restOfProps), {
3887
+ "aria-label": label,
3888
+ ref,
3889
+ id,
3890
+ name,
3891
+ type: "text",
3892
+ error: error != null
3893
+ }))]
3894
+ });
3895
+ });
3896
+ const Base = styled.textarea`
3897
+ resize: vertical;
3898
+ ${cssField()}
3899
+ `;
3900
+ var TextArea = forwardRef(function TextArea2(_s, ref) {
3901
+ var _t = _s, {
3902
+ error = false,
3903
+ form
3904
+ } = _t, restOfProps = __objRest(_t, [
3905
+ "error",
3906
+ "form"
3907
+ ]);
3908
+ const {
3909
+ shape,
3910
+ size,
3911
+ contrast,
3912
+ brandColor
3913
+ } = useFormContext();
3914
+ return /* @__PURE__ */ jsx(Base, __spreadProps(__spreadValues({}, restOfProps), {
3915
+ ref,
3916
+ rows: 4,
3917
+ error,
3918
+ shape,
3919
+ size,
3920
+ contrast,
3921
+ brandColor
3922
+ }));
3923
+ });
3924
+ var LongTextTableField = forwardRef(function LongTextTableField2(_u, ref) {
3925
+ var _v = _u, {
3926
+ id,
3927
+ label = "",
3928
+ error,
3929
+ hideLabel = false
3930
+ } = _v, restOfProps = __objRest(_v, [
3931
+ "id",
3932
+ "label",
3933
+ "error",
3934
+ "hideLabel"
3935
+ ]);
3936
+ return /* @__PURE__ */ jsxs(Fragment, {
3937
+ children: [!hideLabel && /* @__PURE__ */ jsx(Label$1, {
3938
+ htmlFor: id,
3939
+ children: label
3940
+ }), /* @__PURE__ */ jsx(TextArea, __spreadProps(__spreadValues({}, restOfProps), {
3941
+ "aria-label": label,
3942
+ ref,
3943
+ id,
3944
+ error: error != null
3945
+ }))]
3946
+ });
3947
+ });
3948
+ function getCheckmarkColor$1({
3949
+ swatch: {
3950
+ hue: h,
3951
+ saturation: s,
3952
+ lightness: l
3953
+ },
3954
+ alpha: a
3955
+ }) {
3956
+ return ColorHelper({
3957
+ h,
3958
+ s,
3959
+ l
3960
+ }).alpha(a).isLight() ? "rgba(0, 0, 0, 0.7)" : "rgba(255, 255, 255, 0.95)";
3961
+ }
3962
+ const Container$6 = styled.div`
3963
+ position: relative;
3964
+ ${(props) => cssMediaRules([props.size], ([size = Sizes.MEDIUM]) => css`
3965
+ height: ${getSizeHeight(size)}px;
3966
+ width: ${getSizeHeight(size)}px;
3967
+ `)}
3968
+ `;
3969
+ const FakeCheckbox = styled.div`
3970
+ position: absolute;
3971
+ width: 100%;
3972
+ height: 100%;
3973
+ border-style: solid;
3974
+ border-radius: 4px;
3975
+ pointer-events: none;
3976
+ border-width: 1px;
3977
+ ${(props) => cssMediaRules([props.contrast], ([contrast = Contrasts.LIGHT]) => css`
3978
+ border-color: ${getContrastBorderColor(contrast, props.error)};
3979
+ background-color: ${getContrastBackgroundColor(contrast)};
3980
+ `)}
3981
+ `;
3982
+ const HiddenCheckbox = styled.input`
3983
+ position: absolute;
3984
+ opacity: 0;
3985
+ width: 100%;
3986
+ height: 100%;
3987
+ cursor: pointer;
3988
+
3989
+ &:disabled {
3990
+ cursor: no-drop;
3991
+
3992
+ & ~ ${FakeCheckbox} {
3993
+ opacity: 0.5;
3994
+ }
3995
+ }
3996
+
3997
+ &:checked ~ ${FakeCheckbox} {
3998
+ ${(props) => cssMediaRules([props.brandColor], ([{
3999
+ swatch = {
4000
+ hue: 0,
4001
+ saturation: 0,
4002
+ lightness: 0
4003
+ },
4004
+ alpha = 1
4005
+ } = {}]) => css`
4006
+ background-color: ${colorToString({
4007
+ swatch,
4008
+ alpha
4009
+ })};
4010
+ `)}
4011
+ border-color: transparent;
4012
+
4013
+ &::after {
4014
+ content: '';
4015
+ position: absolute;
4016
+ box-sizing: content-box;
4017
+ width: 25%;
4018
+ height: 50%;
4019
+ ${(props) => cssMediaRules([props.size], ([size = Sizes.MEDIUM]) => css`
4020
+ border-width: ${getSizeHeight(size) * 0.1}px;
4021
+ border-left: 0;
4022
+ border-top: 0;
4023
+ `)}
4024
+ border-style: solid;
4025
+ ${(props) => cssMediaRules([props.brandColor], ([{
4026
+ swatch = {
4027
+ hue: 0,
4028
+ saturation: 0,
4029
+ lightness: 0
4030
+ },
4031
+ alpha = 1
4032
+ } = {}]) => css`
4033
+ border-color: ${getCheckmarkColor$1({
4034
+ swatch,
4035
+ alpha
4036
+ })};
4037
+ `)}
4038
+ transform: rotate(45deg) translate3d(91%, -23%, 0);
4039
+ }
4040
+ }
4041
+
4042
+ &:not(:disabled) {
4043
+ &:focus ~ ${FakeCheckbox} {
4044
+ ${(props) => cssMediaRules([props.brandColor], ([brandColor = {
4045
+ swatch: {
4046
+ hue: 0,
4047
+ saturation: 0,
4048
+ lightness: 0
4049
+ },
4050
+ alpha: 1
4051
+ }]) => css`
4052
+ border-color: ${colorToString(brandColor)};
4053
+ `)}
4054
+ }
4055
+ }
4056
+
4057
+ &:not(:disabled):checked {
4058
+ &:focus ~ ${FakeCheckbox} {
4059
+ ${(props) => cssMediaRules([props.contrast], ([contrast = Contrasts.LIGHT]) => css`
4060
+ border-color: ${getContrastBorderColor(contrast, props.error)};
4061
+ `)}
4062
+ }
4063
+ }
4064
+ `;
4065
+ var Checkbox = forwardRef(function Checkbox2(_w, ref) {
4066
+ var _x = _w, {
4067
+ error,
4068
+ className,
4069
+ style,
4070
+ form
4071
+ } = _x, restOfProps = __objRest(_x, [
4072
+ "error",
4073
+ "className",
4074
+ "style",
4075
+ "form"
4076
+ ]);
4077
+ const {
4078
+ size,
4079
+ contrast,
4080
+ brandColor
4081
+ } = useFormContext();
4082
+ return /* @__PURE__ */ jsxs(Container$6, {
4083
+ size,
4084
+ children: [/* @__PURE__ */ jsx(HiddenCheckbox, __spreadProps(__spreadValues({}, restOfProps), {
4085
+ type: "checkbox",
4086
+ ref,
4087
+ error,
4088
+ size,
4089
+ contrast,
4090
+ brandColor
4091
+ })), /* @__PURE__ */ jsx(FakeCheckbox, {
4092
+ className,
4093
+ error,
4094
+ contrast,
4095
+ style
4096
+ })]
4097
+ });
4098
+ });
4099
+ const StyledLabel$2 = styled(Label$1)`
4100
+ display: flex;
4101
+ align-items: center;
4102
+ margin: 0;
4103
+ ${(props) => cssMediaRules([props.size], ([size = Sizes.MEDIUM]) => css`
4104
+ min-height: ${getSizeHeight$1(size)}px;
4105
+ max-height: ${getSizeHeight$1(size)}px;
4106
+ `)}
4107
+ `;
4108
+ const CheckboxContainer$1 = styled.span`
4109
+ margin-right: 8px;
4110
+ `;
4111
+ var CheckboxTableField = forwardRef(function CheckboxTableField2(_y, ref) {
4112
+ var _z = _y, {
4113
+ form,
4114
+ id,
4115
+ name,
4116
+ label = "",
4117
+ value = false,
4118
+ error
4119
+ } = _z, restOfProps = __objRest(_z, [
4120
+ "form",
4121
+ "id",
4122
+ "name",
4123
+ "label",
4124
+ "value",
4125
+ "error"
4126
+ ]);
4127
+ const {
4128
+ size
4129
+ } = useFormContext();
4130
+ function handleChange(event) {
4131
+ form.setFieldValue(name, event.currentTarget.checked);
4132
+ }
4133
+ return /* @__PURE__ */ jsxs(StyledLabel$2, {
4134
+ htmlFor: id,
4135
+ size,
4136
+ children: [/* @__PURE__ */ jsx(CheckboxContainer$1, {
4137
+ children: /* @__PURE__ */ jsx(Checkbox, __spreadProps(__spreadValues({}, restOfProps), {
4138
+ "aria-label": label,
4139
+ checked: value,
4140
+ onChange: handleChange,
4141
+ ref,
4142
+ id,
4143
+ error: error != null
4144
+ }))
4145
+ }), label]
4146
+ });
4147
+ });
4148
+ const MainLabel = styled(Label$1)`
4149
+ margin: 0 0 4px 0;
4150
+ `;
4151
+ const StyledLabel$1 = styled(Label$1)`
4152
+ display: flex;
4153
+ align-items: center;
4154
+ margin: 8px 0;
4155
+
4156
+ &:last-of-type {
4157
+ margin-bottom: 0;
4158
+ }
4159
+ `;
4160
+ const CheckboxContainer = styled.span`
4161
+ margin-right: 8px;
4162
+ `;
4163
+ var MultipleSelectTableField = forwardRef(function MultipleSelectTableField2(_A, ref) {
4164
+ var _B = _A, {
4165
+ tableColumn,
4166
+ label = "",
4167
+ required,
4168
+ value = [],
4169
+ onChange,
4170
+ hideLabel = false
4171
+ } = _B, restOfProps = __objRest(_B, [
4172
+ "tableColumn",
4173
+ "label",
4174
+ "required",
4175
+ "value",
4176
+ "onChange",
4177
+ "hideLabel"
4178
+ ]);
4179
+ const handle = useRef({
4180
+ validity: {
4181
+ valueMissing: required === true && value.length === 0,
4182
+ typeMismatch: false
4183
+ }
4184
+ });
4185
+ useImperativeHandle(ref, () => handle.current, []);
4186
+ function handleChange(event) {
4187
+ handle.current.validity.valueMissing = required === true && !event.currentTarget.checked && value.filter((v) => v !== event.currentTarget.value).length === 0;
4188
+ onChange(event);
4189
+ }
4190
+ return /* @__PURE__ */ jsxs("div", {
4191
+ children: [!hideLabel && /* @__PURE__ */ jsx(MainLabel, {
4192
+ children: label
4193
+ }), tableColumn.options.map((option) => /* @__PURE__ */ jsxs(StyledLabel$1, {
4194
+ htmlFor: option.id,
4195
+ children: [/* @__PURE__ */ jsx(CheckboxContainer, {
4196
+ children: /* @__PURE__ */ jsx(Checkbox, __spreadProps(__spreadValues({}, restOfProps), {
4197
+ "aria-label": label,
4198
+ onChange: handleChange,
4199
+ checked: value.includes(option.name),
4200
+ id: option.id,
4201
+ value: option.name
4202
+ }))
4203
+ }), option.name]
4204
+ }, option.id))]
4205
+ });
4206
+ });
4207
+ function getCheckmarkColor({
4208
+ swatch: {
4209
+ hue: h,
4210
+ saturation: s,
4211
+ lightness: l
4212
+ } = {
4213
+ hue: 0,
4214
+ saturation: 0,
4215
+ lightness: 0
4216
+ },
4217
+ alpha: a
4218
+ }) {
4219
+ return ColorHelper({
4220
+ h,
4221
+ s,
4222
+ l
4223
+ }).alpha(a).isLight() ? "rgba(0, 0, 0, 0.7)" : "rgba(255, 255, 255, 0.95)";
4224
+ }
4225
+ const Container$5 = styled.div`
4226
+ position: relative;
4227
+ ${(props) => cssMediaRules([props.size], ([size = Sizes.MEDIUM]) => css`
4228
+ height: ${getSizeHeight(size)}px;
4229
+ width: ${getSizeHeight(size)}px;
4230
+ `)}
4231
+ `;
4232
+ const FakeRadioButton = styled.div`
4233
+ position: absolute;
4234
+ width: 100%;
4235
+ height: 100%;
4236
+ border-style: solid;
4237
+ border-radius: 50%;
4238
+ pointer-events: none;
4239
+ border-width: 1px;
4240
+ ${(props) => cssMediaRules([props.contrast], ([contrast = Contrasts.LIGHT]) => css`
4241
+ border-color: ${getContrastBorderColor(contrast, props.error)};
4242
+ background-color: ${getContrastBackgroundColor(contrast)};
4243
+ `)}
4244
+ `;
4245
+ const HiddenRadioButton = styled.input.attrs({
4246
+ type: "radio"
4247
+ })`
4248
+ position: absolute;
4249
+ opacity: 0;
4250
+ width: 100%;
4251
+ height: 100%;
4252
+ cursor: pointer;
4253
+
4254
+ &:disabled {
4255
+ cursor: no-drop;
4256
+
4257
+ & ~ ${FakeRadioButton} {
4258
+ opacity: 0.5;
4259
+ }
4260
+ }
4261
+
4262
+ &:checked ~ ${FakeRadioButton} {
4263
+ ${(props) => cssMediaRules([props.brandColor], ([brandColor = {
4264
+ swatch: {
4265
+ hue: 0,
4266
+ saturation: 0,
4267
+ lightness: 0
4268
+ },
4269
+ alpha: 1
4270
+ }]) => css`
4271
+ background-color: ${colorToString(brandColor)};
4272
+ `)}
4273
+ border-color: transparent;
4274
+
4275
+ &::after {
4276
+ content: '';
4277
+ position: absolute;
4278
+ box-sizing: content-box;
4279
+ top: 50%;
4280
+ left: 50%;
4281
+ width: 50%;
4282
+ height: 50%;
4283
+ border-radius: 50%;
4284
+ transform: translate(-50%, -50%);
4285
+ ${(props) => cssMediaRules([props.brandColor], ([brandColor = {
4286
+ swatch: {
4287
+ hue: 0,
4288
+ saturation: 0,
4289
+ lightness: 0
4290
+ },
4291
+ alpha: 1
4292
+ }]) => css`
4293
+ background-color: ${getCheckmarkColor(brandColor)};
4294
+ `)}
4295
+ }
4296
+ }
4297
+
4298
+ &:not(:disabled) {
4299
+ &:focus ~ ${FakeRadioButton} {
4300
+ ${(props) => cssMediaRules([props.brandColor], ([brandColor = {
4301
+ swatch: {
4302
+ hue: 0,
4303
+ saturation: 0,
4304
+ lightness: 0
4305
+ },
4306
+ alpha: 1
4307
+ }]) => css`
4308
+ border-color: ${colorToString(brandColor)};
4309
+ `)}
4310
+ }
4311
+ }
4312
+
4313
+ &:not(:disabled):checked {
4314
+ &:focus ~ ${FakeRadioButton} {
4315
+ ${(props) => cssMediaRules([props.contrast], ([contrast = Contrasts.LIGHT]) => css`
4316
+ border-color: ${getContrastBorderColor(contrast, props.error)};
4317
+ `)}
4318
+ }
4319
+ }
4320
+ `;
4321
+ var RadioButton = forwardRef(function RadioButton2(_C, ref) {
4322
+ var _D = _C, {
4323
+ error,
4324
+ className,
4325
+ style,
4326
+ form
4327
+ } = _D, restOfProps = __objRest(_D, [
4328
+ "error",
4329
+ "className",
4330
+ "style",
4331
+ "form"
4332
+ ]);
4333
+ const {
4334
+ size,
4335
+ contrast,
4336
+ brandColor
4337
+ } = useFormContext();
4338
+ return /* @__PURE__ */ jsxs(Container$5, {
4339
+ size,
4340
+ children: [/* @__PURE__ */ jsx(HiddenRadioButton, __spreadProps(__spreadValues({}, restOfProps), {
4341
+ ref,
4342
+ error,
4343
+ contrast,
4344
+ brandColor
4345
+ })), /* @__PURE__ */ jsx(FakeRadioButton, {
4346
+ className,
4347
+ error,
4348
+ contrast,
4349
+ style
4350
+ })]
4351
+ });
4352
+ });
4353
+ const StyledLabel = styled(Label$1)`
4354
+ display: flex;
4355
+ align-items: center;
4356
+ margin: 8px 0;
4357
+
4358
+ &:last-of-type {
4359
+ margin-bottom: 0;
4360
+ }
4361
+ `;
4362
+ const RadioButtonContainer = styled.span`
4363
+ margin-right: 8px;
4364
+ `;
4365
+ var TableColumnRadioButtonGroup = forwardRef(function TableColumnRadioButtonGroup2(_E, ref) {
4366
+ var _F = _E, {
4367
+ tableColumn,
4368
+ label = "",
4369
+ value = "",
4370
+ required = false,
4371
+ hideLabel = false,
4372
+ onChange
4373
+ } = _F, restOfProps = __objRest(_F, [
4374
+ "tableColumn",
4375
+ "label",
4376
+ "value",
4377
+ "required",
4378
+ "hideLabel",
4379
+ "onChange"
4380
+ ]);
4381
+ const handle = useRef({
4382
+ validity: {
4383
+ valueMissing: required === true && value === "",
4384
+ typeMismatch: false
4385
+ }
4386
+ });
4387
+ useImperativeHandle(ref, () => handle.current, []);
4388
+ function handleChange(event) {
4389
+ handle.current.validity.valueMissing = required === true && !event.currentTarget.checked;
4390
+ onChange(event);
4391
+ }
4392
+ return /* @__PURE__ */ jsxs("div", {
4393
+ children: [!hideLabel && /* @__PURE__ */ jsx(Label$1, {
4394
+ as: "p",
4395
+ children: label
4396
+ }), tableColumn.options.map((option) => /* @__PURE__ */ jsxs(StyledLabel, {
4397
+ htmlFor: option.id,
4398
+ "aria-label": label,
4399
+ children: [/* @__PURE__ */ jsx(RadioButtonContainer, {
4400
+ children: /* @__PURE__ */ jsx(RadioButton, __spreadProps(__spreadValues({}, restOfProps), {
4401
+ onChange: handleChange,
4402
+ checked: value === option.name,
4403
+ id: option.id,
4404
+ value: option.name
4405
+ }))
4406
+ }), option.name]
4407
+ }, option.id))]
4408
+ });
4409
+ });
4410
+ const Container$4 = styled.div`
4411
+ ${cssField()}
4412
+ display: flex;
4413
+ align-items: center;
4414
+ position: relative;
4415
+ user-select: none;
4416
+ border-color: #f19eb9;
4417
+
4418
+ &:focus,
4419
+ &:focus-within {
4420
+ border-color: #e54e7f;
4421
+ }
4422
+
4423
+ ${(props) => cssMediaRules([props.size, props.contrast], ([size = Sizes.MEDIUM, contrast = Contrasts.LIGHT]) => css`
4424
+ min-height: ${getSizeHeight$2(size)}px;
4425
+ max-height: ${getSizeHeight$2(size)}px;
4426
+
4427
+ &::after {
4428
+ content: '';
4429
+ position: absolute;
4430
+ right: ${getSizeHorizontalPadding(size)}px;
4431
+ top: 50%;
4432
+ transform: translate3d(0, -25%, 0);
4433
+ border: solid 0.35em transparent;
4434
+ border-top-color: ${getContrastColor$1(contrast)};
4435
+ }
4436
+ `)}
4437
+ `;
4438
+ const Select = styled.select`
4439
+ appearance: none;
4440
+ position: absolute;
4441
+ top: 0;
4442
+ left: 0;
4443
+ opacity: 0;
4444
+ width: 100%;
4445
+ height: 100%;
4446
+ `;
4447
+ var TableColumnSingleSelect = forwardRef(function TableColumnSingleSelect2(_G, ref) {
4448
+ var _H = _G, {
4449
+ id,
4450
+ tableColumn,
4451
+ value = "",
4452
+ label = "",
4453
+ error = false,
4454
+ hideLabel = false,
4455
+ form
4456
+ } = _H, restOfProps = __objRest(_H, [
4457
+ "id",
4458
+ "tableColumn",
4459
+ "value",
4460
+ "label",
4461
+ "error",
4462
+ "hideLabel",
4463
+ "form"
4464
+ ]);
4465
+ const {
4466
+ shape,
4467
+ size,
4468
+ contrast,
4469
+ brandColor
4470
+ } = useFormContext();
4471
+ return /* @__PURE__ */ jsxs(Fragment, {
4472
+ children: [!hideLabel && /* @__PURE__ */ jsx(Label$1, {
4473
+ htmlFor: id,
4474
+ children: label
4475
+ }), /* @__PURE__ */ jsxs(Container$4, {
4476
+ error,
4477
+ shape,
4478
+ size,
4479
+ contrast,
4480
+ brandColor,
4481
+ children: [/* @__PURE__ */ jsx("span", {
4482
+ children: value === "" ? "-" : value
4483
+ }), /* @__PURE__ */ jsxs(Select, __spreadProps(__spreadValues({}, restOfProps), {
4484
+ "aria-label": label,
4485
+ ref,
4486
+ id,
4487
+ value,
4488
+ children: [/* @__PURE__ */ jsx("option", {
4489
+ value: "",
4490
+ children: "-"
4491
+ }), tableColumn.options.map((option) => /* @__PURE__ */ jsx("option", {
4492
+ value: option.name,
4493
+ children: option.name
4494
+ }, option.id))]
4495
+ }))]
4496
+ })]
4497
+ });
4498
+ });
4499
+ var SingleSelectTableField = forwardRef(function SingleSelectTableField2(_I, ref) {
4500
+ var _J = _I, {
4501
+ type
4502
+ } = _J, restOfProps = __objRest(_J, [
4503
+ "type"
4504
+ ]);
4505
+ return type === "select" ? /* @__PURE__ */ jsx(TableColumnSingleSelect, __spreadProps(__spreadValues({}, restOfProps), {
4506
+ ref
4507
+ })) : /* @__PURE__ */ jsx(TableColumnRadioButtonGroup, __spreadProps(__spreadValues({}, restOfProps), {
4508
+ ref
4509
+ }));
4510
+ });
4511
+ var PhoneNumberTableField = forwardRef(function PhoneNumberTableField2(_K, ref) {
4512
+ var _L = _K, {
4513
+ id,
4514
+ label = "",
4515
+ name,
4516
+ error,
4517
+ hideLabel = false
4518
+ } = _L, restOfProps = __objRest(_L, [
4519
+ "id",
4520
+ "label",
4521
+ "name",
4522
+ "error",
4523
+ "hideLabel"
4524
+ ]);
4525
+ return /* @__PURE__ */ jsxs(Fragment, {
4526
+ children: [!hideLabel && /* @__PURE__ */ jsx(Label$1, {
4527
+ htmlFor: id,
4528
+ children: label
4529
+ }), /* @__PURE__ */ jsx(Input$2, __spreadProps(__spreadValues({}, restOfProps), {
4530
+ "aria-label": label,
4531
+ ref,
4532
+ id,
4533
+ name,
4534
+ type: "tel",
4535
+ error: error != null
4536
+ }))]
4537
+ });
4538
+ });
4539
+ var EmailTableField = forwardRef(function EmailTableField2(_M, ref) {
4540
+ var _N = _M, {
4541
+ id,
4542
+ label = "",
4543
+ name,
4544
+ error,
4545
+ hideLabel = false
4546
+ } = _N, restOfProps = __objRest(_N, [
4547
+ "id",
4548
+ "label",
4549
+ "name",
4550
+ "error",
4551
+ "hideLabel"
4552
+ ]);
4553
+ return /* @__PURE__ */ jsxs(Fragment, {
4554
+ children: [!hideLabel && /* @__PURE__ */ jsx(Label$1, {
4555
+ htmlFor: id,
4556
+ children: label
4557
+ }), /* @__PURE__ */ jsx(Input$2, __spreadProps(__spreadValues({}, restOfProps), {
4558
+ "aria-label": label,
4559
+ ref,
4560
+ id,
4561
+ name,
4562
+ type: "email",
4563
+ error: error != null
4564
+ }))]
4565
+ });
4566
+ });
4567
+ var URLTableField = forwardRef(function URLTableField2(_O, ref) {
4568
+ var _P = _O, {
4569
+ id,
4570
+ label = "",
4571
+ name,
4572
+ error,
4573
+ hideLabel = false
4574
+ } = _P, restOfProps = __objRest(_P, [
4575
+ "id",
4576
+ "label",
4577
+ "name",
4578
+ "error",
4579
+ "hideLabel"
4580
+ ]);
4581
+ return /* @__PURE__ */ jsxs(Fragment, {
4582
+ children: [!hideLabel && /* @__PURE__ */ jsx(Label$1, {
4583
+ htmlFor: id,
4584
+ children: label
4585
+ }), /* @__PURE__ */ jsx(Input$2, __spreadProps(__spreadValues({}, restOfProps), {
4586
+ "aria-label": label,
4587
+ ref,
4588
+ id,
4589
+ name,
4590
+ type: "url",
4591
+ error: error != null
4592
+ }))]
4593
+ });
4594
+ });
4595
+ var NumberTableField = forwardRef(function NumberTableField2(_Q, ref) {
4596
+ var _R = _Q, {
4597
+ id,
4598
+ label = "",
4599
+ name,
4600
+ error,
4601
+ hideLabel = false
4602
+ } = _R, restOfProps = __objRest(_R, [
4603
+ "id",
4604
+ "label",
4605
+ "name",
4606
+ "error",
4607
+ "hideLabel"
4608
+ ]);
4609
+ return /* @__PURE__ */ jsxs(Fragment, {
4610
+ children: [!hideLabel && /* @__PURE__ */ jsx(Label$1, {
4611
+ htmlFor: id,
4612
+ children: label
4613
+ }), /* @__PURE__ */ jsx(Input$2, __spreadProps(__spreadValues({}, restOfProps), {
4614
+ "aria-label": label,
4615
+ ref,
4616
+ id,
4617
+ name,
4618
+ type: "number",
4619
+ error: error != null
4620
+ }))]
4621
+ });
4622
+ });
4623
+ const Label = styled.div`
4624
+ display: block;
4625
+ max-width: 120px;
4626
+ min-width: 60px;
4627
+ border-radius: 2px;
4628
+ background-color: #5f49f4;
4629
+ opacity: 0.4;
4630
+ ${(props) => cssMediaRules([props.size], ([size = Sizes.MEDIUM]) => css`
4631
+ margin: calc(0.25 * ${getSizeHeight(size)}px + 2px) 0;
4632
+ min-height: ${0.5 * getSizeHeight(size)}px;
4633
+ max-height: ${0.5 * getSizeHeight(size)}px;
4634
+ `)}
4635
+ `;
4636
+ const Input2 = styled.div`
4637
+ display: block;
4638
+ width: 100%;
4639
+ border-width: 2px;
4640
+ border-style: solid;
4641
+ border-color: #5f49f4;
4642
+ opacity: 0.4;
4643
+ ${(props) => cssMediaRules([props.shape, props.size], ([shape = Shapes.ROUNDED, size = Sizes.MEDIUM]) => css`
4644
+ min-height: ${getSizeHeight$1(size)}px;
4645
+ max-height: ${getSizeHeight$1(size)}px;
4646
+ border-radius: ${getShapeBorderRadius(shape)}px;
4647
+ `)}
4648
+ `;
4649
+ function PlaceholderTableField() {
4650
+ const {
4651
+ size,
4652
+ shape
4653
+ } = useFormContext();
4654
+ return /* @__PURE__ */ jsxs(Fragment, {
4655
+ children: [/* @__PURE__ */ jsx(Label, {
4656
+ size
4657
+ }), /* @__PURE__ */ jsx(Input2, {
4658
+ shape,
4659
+ size
4660
+ })]
4661
+ });
4662
+ }
4663
+ function getTypeMismatchErrorMessage(tableColumn, label) {
4664
+ switch ((tableColumn || {}).__typename) {
4665
+ case "PhoneNumberTableColumn":
4666
+ return `${label} field must be a valid phone number.`;
4667
+ case "EmailTableColumn":
4668
+ return `${label} field must be a valid email.`;
4669
+ case "URLTableColumn":
4670
+ return `${label} field must be a valid URL.`;
4671
+ case "NumberTableColumn":
4672
+ return `${label} field must be a valid number.`;
4673
+ case "SingleLineTextTableColumn":
4674
+ case "LongTextTableColumn":
4675
+ case "CheckboxTableColumn":
4676
+ default:
4677
+ return `${label} field is invalid.`;
4678
+ }
4679
+ }
4680
+ function getTableColumnField(tableColumn) {
4681
+ switch ((tableColumn || {}).__typename) {
4682
+ case "SingleLineTextTableColumn":
4683
+ return SingleLineTextTableField;
4684
+ case "LongTextTableColumn":
4685
+ return LongTextTableField;
4686
+ case "CheckboxTableColumn":
4687
+ return CheckboxTableField;
4688
+ case "MultipleSelectTableColumn":
4689
+ return MultipleSelectTableField;
4690
+ case "SingleSelectTableColumn":
4691
+ return SingleSelectTableField;
4692
+ case "PhoneNumberTableColumn":
4693
+ return PhoneNumberTableField;
4694
+ case "EmailTableColumn":
4695
+ return EmailTableField;
4696
+ case "URLTableColumn":
4697
+ return URLTableField;
4698
+ case "NumberTableColumn":
4699
+ return NumberTableField;
4700
+ default:
4701
+ return SingleLineTextTableField;
4702
+ }
4703
+ }
4704
+ function Field({
4705
+ tableColumn,
4706
+ tableFormField: {
4707
+ id,
4708
+ label = "",
4709
+ placeholder: placeholder2,
4710
+ required = false,
4711
+ hidden = false,
4712
+ type = "radio",
4713
+ hideLabel = false
4714
+ }
4715
+ }) {
4716
+ const TableColumnField = getTableColumnField(tableColumn);
4717
+ const input = useRef(null);
4718
+ if (!tableColumn)
4719
+ return /* @__PURE__ */ jsx(PlaceholderTableField, {});
4720
+ function validate() {
4721
+ let errorMessage;
4722
+ if (input.current) {
4723
+ const {
4724
+ validity = {}
4725
+ } = input.current;
4726
+ if (validity.valueMissing)
4727
+ errorMessage = `${label} is required.`;
4728
+ if (validity.typeMismatch)
4729
+ errorMessage = getTypeMismatchErrorMessage(tableColumn, label);
4730
+ }
4731
+ return errorMessage;
4732
+ }
4733
+ return /* @__PURE__ */ jsx(Field$1, {
4734
+ name: tableColumn.name,
4735
+ validate,
4736
+ children: ({
4737
+ field,
4738
+ form
4739
+ }) => hidden ? /* @__PURE__ */ jsx("input", __spreadProps(__spreadValues({}, field), {
4740
+ ref: input,
4741
+ type: "hidden"
4742
+ })) : /* @__PURE__ */ jsx(TableColumnField, __spreadProps(__spreadValues({}, field), {
4743
+ type,
4744
+ form,
4745
+ tableColumn,
4746
+ ref: input,
4747
+ id,
4748
+ error: getIn(form.touched, field.name) && getIn(form.errors, field.name),
4749
+ label,
4750
+ placeholder: placeholder2,
4751
+ required,
4752
+ hideLabel
4753
+ }))
4754
+ });
4755
+ }
4756
+ var _g;
4757
+ function _extends$t() {
4758
+ _extends$t = Object.assign || function(target) {
4759
+ for (var i = 1; i < arguments.length; i++) {
4760
+ var source = arguments[i];
4761
+ for (var key in source) {
4762
+ if (Object.prototype.hasOwnProperty.call(source, key)) {
4763
+ target[key] = source[key];
4764
+ }
4765
+ }
4766
+ }
4767
+ return target;
4768
+ };
4769
+ return _extends$t.apply(this, arguments);
4770
+ }
4771
+ var SvgSpinner20 = function SvgSpinner202(props) {
4772
+ return /* @__PURE__ */ React.createElement("svg", _extends$t({
4773
+ xmlns: "http://www.w3.org/2000/svg",
4774
+ width: 20,
4775
+ height: 20
4776
+ }, props), _g || (_g = /* @__PURE__ */ React.createElement("g", {
4777
+ fill: "none",
4778
+ strokeWidth: 2,
4779
+ transform: "translate(1 1)"
4780
+ }, /* @__PURE__ */ React.createElement("circle", {
4781
+ stroke: "currentColor",
4782
+ cx: 9,
4783
+ cy: 9,
4784
+ r: 9,
4785
+ strokeOpacity: 0.4
4786
+ }), /* @__PURE__ */ React.createElement("path", {
4787
+ d: "M9 18A9 9 0 0 0 9 0"
4788
+ }))));
4789
+ };
4790
+ const spin = keyframes`
4791
+ from {
4792
+ transform: rotate(0deg);
4793
+ }
4794
+ to {
4795
+ transform: rotate(360deg);
4796
+ }
4797
+ `;
4798
+ const Icon = styled(SvgSpinner20)`
4799
+ display: inline-flex;
4800
+ animation: ${spin} 1s linear infinite;
4801
+ stroke: currentColor;
4802
+ `;
4803
+ function Spinner() {
4804
+ return /* @__PURE__ */ jsx(Icon, {});
4805
+ }
4806
+ function useTableFormFieldRefs(propController, { fieldsCount }) {
4807
+ const [container, setContainer] = useState(null);
4808
+ const [items, setItems] = useState(Array(fieldsCount + 1).fill(null));
4809
+ const isInBuilder = useIsInBuilder();
4810
+ useEffect(() => {
4811
+ if (!isInBuilder)
4812
+ return;
4813
+ let animationFrameHandle = requestAnimationFrame(handleAnimationFrameRequest);
4814
+ return () => {
4815
+ cancelAnimationFrame(animationFrameHandle);
4816
+ };
4817
+ function handleAnimationFrameRequest() {
4818
+ if (propController == null)
4819
+ return;
4820
+ if (container != null)
4821
+ propController.tableFormLayoutChange({ layout: getBox(container) });
4822
+ items.map((item, index) => {
4823
+ if (item == null)
4824
+ return;
4825
+ propController.tableFormFieldLayoutChange({ index, layout: getBox(item) });
4826
+ });
4827
+ animationFrameHandle = requestAnimationFrame(handleAnimationFrameRequest);
4828
+ }
4829
+ }, [propController, container, items, isInBuilder]);
4830
+ const itemRefs = useMemo(() => Array.from({ length: fieldsCount + 1 }).map((_, index) => (item) => {
4831
+ setItems((is) => [...is.slice(0, index), item, ...is.slice(index + 1)]);
4832
+ }), [fieldsCount, setItems]);
4833
+ return { container: setContainer, items: itemRefs };
4834
+ }
4835
+ const LOCAL_STORAGE_NAMESPACE = "@@makeswift/components/form";
4836
+ function getSizeFontSize(size) {
4837
+ switch (size) {
4838
+ case Sizes.SMALL:
4839
+ return 12;
4840
+ case Sizes.MEDIUM:
4841
+ return 14;
4842
+ case Sizes.LARGE:
4843
+ return 18;
4844
+ default:
4845
+ throw new Error(`Invalid form size "${size}"`);
4846
+ }
4847
+ }
4848
+ const Alignments = {
4849
+ LEFT: "left",
4850
+ CENTER: "center",
4851
+ RIGHT: "right"
4852
+ };
4853
+ const GridForm = styled.form`
4854
+ display: flex;
4855
+ flex-wrap: wrap;
4856
+ width: 100%;
4857
+ ${(props) => cssMediaRules([props.size], ([size = Sizes.MEDIUM]) => css`
4858
+ font-size: ${getSizeFontSize(size)}px;
4859
+ `)}
4860
+ ${cssWidth()}
4861
+ ${cssMargin()}
4862
+ `;
4863
+ const GridItem$1 = styled.div`
4864
+ align-self: flex-end;
4865
+ flex-direction: column;
4866
+ ${cssGridItem()}
4867
+ `;
4868
+ function getAlignmentMargin(alignment) {
4869
+ switch (alignment) {
4870
+ case Alignments.LEFT:
4871
+ return "0 auto 0 0";
4872
+ case Alignments.RIGHT:
4873
+ return "0 0 0 auto";
4874
+ default:
4875
+ return "0 auto";
4876
+ }
4877
+ }
4878
+ const StyledButton = styled((props) => /* @__PURE__ */ jsx(Button$1, __spreadProps(__spreadValues({}, props), {
4879
+ as: "button"
4880
+ })))`
4881
+ display: flex;
4882
+ align-items: center;
4883
+ justify-content: center;
4884
+ ${(props) => cssMediaRules([props.size, props.alignment], ([size = Sizes.MEDIUM, alignment = Alignments.CENTER]) => css`
4885
+ min-height: ${getSizeHeight$1(size)}px;
4886
+ max-height: ${getSizeHeight$1(size)}px;
4887
+ margin: ${getAlignmentMargin(alignment)};
4888
+ padding-top: 0;
4889
+ padding-bottom: 0;
4890
+ `)}
4891
+ `;
4892
+ const ErrorContainer = styled.div`
4893
+ padding: 8px 16px;
4894
+ background-color: #f19eb9;
4895
+ border-radius: 4px;
4896
+ margin-top: 16px;
4897
+ `;
4898
+ const IconContainer = styled.div`
4899
+ fill: currentColor;
4900
+ `;
4901
+ const ErrorMessage = styled.p`
4902
+ font-size: 12px;
4903
+ margin: 8px 0;
4904
+ color: rgba(127, 0, 0, 0.95);
4905
+ `;
4906
+ function getTableColumnDefaultValue(tableColumn) {
4907
+ switch (tableColumn.__typename) {
4908
+ case "CheckboxTableColumn":
4909
+ return false;
4910
+ case "MultipleSelectTableColumn":
4911
+ return [];
4912
+ case "SingleLineTextTableColumn":
4913
+ case "LongTextTableColumn":
4914
+ case "SingleSelectTableColumn":
4915
+ case "PhoneNumberTableColumn":
4916
+ case "EmailTableColumn":
4917
+ case "URLTableColumn":
4918
+ case "NumberTableColumn":
4919
+ default:
4920
+ return "";
4921
+ }
4922
+ }
4923
+ const CREATE_TABLE_RECORD = gql`
4924
+ mutation CreateTableRecord($input: CreateTableRecordInput!) {
4925
+ createTableRecord(input: $input) {
4926
+ tableRecord {
4927
+ id
4928
+ }
4929
+ }
4930
+ }
4931
+ `;
4932
+ const Form = forwardRef(function Form2({
4933
+ id,
4934
+ tableId,
4935
+ fields: fieldsProp,
4936
+ submitLabel = "Submit",
4937
+ submitLink,
4938
+ shape,
4939
+ size,
4940
+ contrast,
4941
+ brandColor,
4942
+ gap,
4943
+ width,
4944
+ margin,
4945
+ submitTextStyle,
4946
+ submitVariant,
4947
+ submitTextColor,
4948
+ submitWidth,
4949
+ submitAlignment,
4950
+ labelTextStyle,
4951
+ labelTextColor
4952
+ }, ref) {
4953
+ const fields = useMemo(() => {
4954
+ var _a;
4955
+ return (_a = fieldsProp == null ? void 0 : fieldsProp.fields) != null ? _a : [];
4956
+ }, [fieldsProp]);
4957
+ const grid = useMemo(() => {
4958
+ var _a;
4959
+ return (_a = fieldsProp == null ? void 0 : fieldsProp.grid) != null ? _a : [];
4960
+ }, [fieldsProp]);
4961
+ const {
4962
+ data: {
4963
+ table
4964
+ } = {}
4965
+ } = useTable(tableId);
4966
+ const [createTableRecord] = useMutation(CREATE_TABLE_RECORD);
4967
+ const [refEl, setRefEl] = useState(null);
4968
+ const [propControllers, setPropControllers] = useState(null);
4969
+ const [initialValues, setInitialValues] = useState(() => fields.reduce((acc, formField) => {
4970
+ const tableColumn = table && table.columns.find((field) => field.id === formField.tableColumnId);
4971
+ const defaultValue = formField ? formField.defaultValue : null;
4972
+ if (tableColumn) {
4973
+ acc[tableColumn.name] = defaultValue == null ? getTableColumnDefaultValue(tableColumn) : defaultValue;
4974
+ }
4975
+ return acc;
4976
+ }, {}));
4977
+ const controller = propControllers == null ? void 0 : propControllers.fields;
4978
+ const {
4979
+ container,
4980
+ items
4981
+ } = useTableFormFieldRefs(controller, {
4982
+ fieldsCount: fields.length
4983
+ });
4984
+ const [isDone, setIsDone] = useState(false);
4985
+ const linkRef = useRef(null);
4986
+ useImperativeHandle(ref, () => ({
4987
+ getBoxModel() {
4988
+ return refEl instanceof Element ? getBox(refEl) : null;
4989
+ },
4990
+ setPropControllers
4991
+ }), [refEl, setPropControllers]);
4992
+ useEffect(() => {
4993
+ container(refEl);
4994
+ }, [container, refEl]);
4995
+ useEffect(() => {
4996
+ if (!isDone)
4997
+ return;
4998
+ let timeoutId = setTimeout(() => setIsDone(false), 2500);
4999
+ return () => clearTimeout(timeoutId);
5000
+ }, [isDone]);
5001
+ function getTableColumn({
5002
+ tableColumnId
5003
+ }) {
5004
+ return table && table.columns.find((field) => tableColumnId === field.id);
5005
+ }
5006
+ async function handleSubmit(values, {
5007
+ setSubmitting,
5008
+ resetForm,
5009
+ setStatus
5010
+ }) {
5011
+ if (table) {
5012
+ const columns = [];
5013
+ fields.forEach((field) => {
5014
+ const tableColumn = getTableColumn(field);
5015
+ if (tableColumn) {
5016
+ const data = values[tableColumn.name];
5017
+ if (data) {
5018
+ columns.push({
5019
+ columnId: field.tableColumnId,
5020
+ data
5021
+ });
5022
+ if (field.autofill) {
5023
+ localStorage.setItem(`${LOCAL_STORAGE_NAMESPACE}/${tableColumn.name}`, JSON.stringify(data));
5024
+ }
5025
+ }
5026
+ }
5027
+ });
5028
+ try {
5029
+ await createTableRecord({
5030
+ variables: {
5031
+ input: {
5032
+ data: {
5033
+ tableId: table.id,
5034
+ columns
5035
+ }
5036
+ }
5037
+ }
5038
+ });
5039
+ setIsDone(true);
5040
+ setInitialValues((prev) => fields.reduce((acc, field) => {
5041
+ const tableColumn = getTableColumn(field);
5042
+ if (tableColumn) {
5043
+ const data = values[tableColumn.name];
5044
+ if (data && field.autofill)
5045
+ return __spreadProps(__spreadValues({}, acc), {
5046
+ [tableColumn.name]: data
5047
+ });
5048
+ }
5049
+ return acc;
5050
+ }, __spreadValues({}, prev)));
5051
+ resetForm();
5052
+ if (linkRef.current != null)
5053
+ linkRef.current.click();
5054
+ } catch (error) {
5055
+ setStatus({
5056
+ error: "An unexpected error has occurred, please try again later"
5057
+ });
5058
+ } finally {
5059
+ setSubmitting(false);
5060
+ }
5061
+ }
5062
+ }
5063
+ useEffect(() => {
5064
+ setInitialValues((prev) => fields.reduce((acc, formField) => {
5065
+ const tableColumn = table && table.columns.find((field) => field.id === formField.tableColumnId);
5066
+ if (tableColumn && formField.autofill) {
5067
+ const storedValue = localStorage.getItem(`${LOCAL_STORAGE_NAMESPACE}/${tableColumn.name}`);
5068
+ if (storedValue) {
5069
+ try {
5070
+ acc[tableColumn.name] = JSON.parse(storedValue);
5071
+ } catch (e) {
5072
+ }
5073
+ }
5074
+ }
5075
+ return acc;
5076
+ }, __spreadValues({}, prev)));
5077
+ }, [fields, table]);
5078
+ const brandColorData = useColor(brandColor);
5079
+ return /* @__PURE__ */ jsx(Provider, {
5080
+ value: {
5081
+ shape,
5082
+ size,
5083
+ contrast,
5084
+ brandColor: brandColorData,
5085
+ labelTextStyle,
5086
+ labelTextColor
5087
+ },
5088
+ children: tableId == null ? /* @__PURE__ */ jsx(Placeholder$1, {
5089
+ ref: setRefEl,
5090
+ width,
5091
+ margin
5092
+ }) : /* @__PURE__ */ jsx(Fragment, {
5093
+ children: /* @__PURE__ */ jsx(Formik, {
5094
+ onSubmit: handleSubmit,
5095
+ initialValues,
5096
+ initialStatus: {
5097
+ error: null
5098
+ },
5099
+ enableReinitialize: true,
5100
+ children: (formik) => {
5101
+ const error = formik.status && formik.status.error;
5102
+ const errors = fields.map((field) => {
5103
+ const tableColumn = getTableColumn(field);
5104
+ return tableColumn && getIn(formik.touched, tableColumn.name) && getIn(formik.errors, tableColumn.name);
5105
+ }).filter((message) => typeof message === "string");
5106
+ return /* @__PURE__ */ jsxs(Fragment, {
5107
+ children: [/* @__PURE__ */ jsxs(GridForm, {
5108
+ ref: setRefEl,
5109
+ id,
5110
+ width,
5111
+ margin,
5112
+ size,
5113
+ onSubmit: formik.handleSubmit,
5114
+ onReset: formik.handleReset,
5115
+ noValidate: true,
5116
+ children: [fields.map((field, index) => {
5117
+ const tableColumn = getTableColumn(field);
5118
+ return /* @__PURE__ */ jsx(GridItem$1, {
5119
+ ref: items[index],
5120
+ grid,
5121
+ index,
5122
+ rowGap: gap,
5123
+ columnGap: gap,
5124
+ children: /* @__PURE__ */ jsx(Field, {
5125
+ tableColumn,
5126
+ tableFormField: field
5127
+ })
5128
+ }, field.id);
5129
+ }), /* @__PURE__ */ jsxs(GridItem$1, {
5130
+ ref: items[fields.length],
5131
+ grid,
5132
+ index: fields.length,
5133
+ rowGap: gap,
5134
+ columnGap: gap,
5135
+ children: [/* @__PURE__ */ jsx(StyledButton, {
5136
+ type: "submit",
5137
+ disabled: formik.isSubmitting || isDone,
5138
+ shape,
5139
+ size,
5140
+ color: brandColor,
5141
+ variant: submitVariant,
5142
+ textColor: submitTextColor,
5143
+ width: submitWidth,
5144
+ alignment: submitAlignment,
5145
+ textStyle: submitTextStyle,
5146
+ children: formik.isSubmitting ? /* @__PURE__ */ jsx(Spinner, {}) : isDone ? /* @__PURE__ */ jsx(IconContainer, {
5147
+ children: /* @__PURE__ */ jsx(SvgCheck12, {})
5148
+ }) : submitLabel
5149
+ }), (errors.length > 0 || error) && /* @__PURE__ */ jsxs(ErrorContainer, {
5150
+ children: [errors.map((message) => /* @__PURE__ */ jsx(ErrorMessage, {
5151
+ children: message
5152
+ }, message)), error != null && /* @__PURE__ */ jsx(ErrorMessage, {
5153
+ children: error
5154
+ })]
5155
+ })]
5156
+ })]
5157
+ }), submitLink != null && /* @__PURE__ */ jsx(Link, {
5158
+ ref: linkRef,
5159
+ hidden: true,
5160
+ link: submitLink
5161
+ })]
5162
+ });
5163
+ }
5164
+ })
5165
+ })
5166
+ });
5167
+ });
5168
+ function registerComponent$5(runtime) {
5169
+ return runtime.registerComponent(Form, {
5170
+ type: "./components/Form/index.js",
5171
+ label: "Form",
5172
+ icon: "Form40",
5173
+ props: {
5174
+ id: ElementID(),
5175
+ tableId: Table(),
5176
+ fields: TableFormFields(),
5177
+ submitLink: Link$1({
5178
+ label: "Redirect to",
5179
+ options: [{
5180
+ value: "OPEN_PAGE",
5181
+ label: "Open page"
5182
+ }, {
5183
+ value: "OPEN_URL",
5184
+ label: "Open URL"
5185
+ }]
5186
+ }),
5187
+ gap: GapY({
5188
+ preset: [{
5189
+ deviceId: "desktop",
5190
+ value: {
5191
+ value: 10,
5192
+ unit: "px"
5193
+ }
5194
+ }],
5195
+ label: "Gap",
5196
+ defaultValue: {
5197
+ value: 0,
5198
+ unit: "px"
5199
+ }
5200
+ }),
5201
+ shape: ResponsiveIconRadioGroup({
5202
+ label: "Shape",
5203
+ options: [{
5204
+ label: "Pill",
5205
+ value: Shapes.PILL,
5206
+ icon: "ButtonPill16"
5207
+ }, {
5208
+ label: "Rounded",
5209
+ value: Shapes.ROUNDED,
5210
+ icon: "ButtonRounded16"
5211
+ }, {
5212
+ label: "Square",
5213
+ value: Shapes.SQUARE,
5214
+ icon: "ButtonSquare16"
5215
+ }],
5216
+ defaultValue: Shapes.ROUNDED
5217
+ }),
5218
+ size: ResponsiveIconRadioGroup({
5219
+ label: "Size",
5220
+ options: [{
5221
+ label: "Small",
5222
+ value: Sizes.SMALL,
5223
+ icon: "SizeSmall16"
5224
+ }, {
5225
+ label: "Medium",
5226
+ value: Sizes.MEDIUM,
5227
+ icon: "SizeMedium16"
5228
+ }, {
5229
+ label: "Large",
5230
+ value: Sizes.LARGE,
5231
+ icon: "SizeLarge16"
5232
+ }],
5233
+ defaultValue: Sizes.MEDIUM
5234
+ }),
5235
+ contrast: ResponsiveIconRadioGroup({
5236
+ label: "Color",
5237
+ options: [{
5238
+ label: "Light mode",
5239
+ value: Contrasts.LIGHT,
5240
+ icon: "Sun16"
5241
+ }, {
5242
+ label: "Dark mode",
5243
+ value: Contrasts.DARK,
5244
+ icon: "Moon16"
5245
+ }],
5246
+ defaultValue: Contrasts.LIGHT
5247
+ }),
5248
+ labelTextStyle: TextStyle({
5249
+ label: "Label text style"
5250
+ }),
5251
+ labelTextColor: ResponsiveColor({
5252
+ label: "Label text color"
5253
+ }),
5254
+ submitTextStyle: TextStyle({
5255
+ label: "Button text style"
5256
+ }),
5257
+ brandColor: ResponsiveColor({
5258
+ label: "Button color",
5259
+ placeholder: "black"
5260
+ }),
5261
+ submitTextColor: ResponsiveColor({
5262
+ label: "Button text color",
5263
+ placeholder: "white"
5264
+ }),
5265
+ submitLabel: TextInput({
5266
+ label: "Button label",
5267
+ placeholder: "Submit"
5268
+ }),
5269
+ submitVariant: ResponsiveSelect({
5270
+ label: "Button style",
5271
+ options: [{
5272
+ value: "flat",
5273
+ label: "Flat"
5274
+ }, {
5275
+ value: "outline",
5276
+ label: "Outline"
5277
+ }, {
5278
+ value: "shadow",
5279
+ label: "Floating"
5280
+ }, {
5281
+ value: "clear",
5282
+ label: "Clear"
5283
+ }, {
5284
+ value: "blocky",
5285
+ label: "Blocky"
5286
+ }, {
5287
+ value: "bubbly",
5288
+ label: "Bubbly"
5289
+ }, {
5290
+ value: "skewed",
5291
+ label: "Skewed"
5292
+ }],
5293
+ defaultValue: "flat"
5294
+ }),
5295
+ submitWidth: ResponsiveLength({
5296
+ label: "Button width"
5297
+ }),
5298
+ submitAlignment: ResponsiveIconRadioGroup({
5299
+ label: "Button alignment",
5300
+ options: [{
5301
+ label: "Left",
5302
+ value: Alignments.LEFT,
5303
+ icon: "AlignLeft16"
5304
+ }, {
5305
+ label: "Center",
5306
+ value: Alignments.CENTER,
5307
+ icon: "AlignCenter16"
5308
+ }, {
5309
+ label: "Right",
5310
+ value: Alignments.RIGHT,
5311
+ icon: "AlignRight16"
5312
+ }],
5313
+ defaultValue: Alignments.CENTER
5314
+ }),
5315
+ width: Width({
5316
+ preset: [{
5317
+ deviceId: "desktop",
5318
+ value: {
5319
+ value: 550,
5320
+ unit: "px"
5321
+ }
5322
+ }],
5323
+ defaultValue: {
5324
+ value: 100,
5325
+ unit: "%"
5326
+ }
5327
+ }),
5328
+ margin: Margin()
5329
+ }
5330
+ });
5331
+ }
5332
+ var _path$s;
5333
+ function _extends$s() {
5334
+ _extends$s = Object.assign || function(target) {
3663
5335
  for (var i = 1; i < arguments.length; i++) {
3664
5336
  var source = arguments[i];
3665
5337
  for (var key in source) {
@@ -3670,20 +5342,106 @@ function _extends$p() {
3670
5342
  }
3671
5343
  return target;
3672
5344
  };
3673
- return _extends$p.apply(this, arguments);
5345
+ return _extends$s.apply(this, arguments);
5346
+ }
5347
+ var SvgMobileMenu28 = function SvgMobileMenu282(props) {
5348
+ return /* @__PURE__ */ React.createElement("svg", _extends$s({
5349
+ xmlns: "http://www.w3.org/2000/svg",
5350
+ width: 28,
5351
+ height: 28
5352
+ }, props), _path$s || (_path$s = /* @__PURE__ */ React.createElement("path", {
5353
+ 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"
5354
+ })));
5355
+ };
5356
+ const GutterContainer = styled.div`
5357
+ ${(p) => cssMediaRules([p.gutter], ([gutter = {
5358
+ value: 0,
5359
+ unit: "px"
5360
+ }]) => css`
5361
+ padding-left: ${p.first ? "0px" : `${gutter.value / 2}${gutter.unit}`};
5362
+ padding-right: ${p.last ? "0px" : `${gutter.value / 2}${gutter.unit}`};
5363
+ `)}
5364
+ `;
5365
+ const PlaceholderLink$1 = styled.div`
5366
+ width: ${(props) => props.width}px;
5367
+ height: ${(props) => props.button === true ? 32 : 8}px;
5368
+ background-color: #a1a8c2;
5369
+ border-radius: ${(props) => props.button === true ? 6 : 2}px;
5370
+ opacity: 0.4;
5371
+ `;
5372
+ const links$1 = [{
5373
+ width: 50
5374
+ }, {
5375
+ width: 70
5376
+ }, {
5377
+ width: 60
5378
+ }, {
5379
+ width: 80,
5380
+ button: true
5381
+ }];
5382
+ function LinksPlaceholder({
5383
+ gutter
5384
+ }) {
5385
+ return /* @__PURE__ */ jsx(Fragment, {
5386
+ children: links$1.map((link, i) => /* @__PURE__ */ jsx(GutterContainer, {
5387
+ gutter,
5388
+ first: i === 0,
5389
+ last: i === links$1.length - 1,
5390
+ children: /* @__PURE__ */ jsx(PlaceholderLink$1, __spreadValues({}, link))
5391
+ }, i))
5392
+ });
5393
+ }
5394
+ var _path$r;
5395
+ function _extends$r() {
5396
+ _extends$r = Object.assign || function(target) {
5397
+ for (var i = 1; i < arguments.length; i++) {
5398
+ var source = arguments[i];
5399
+ for (var key in source) {
5400
+ if (Object.prototype.hasOwnProperty.call(source, key)) {
5401
+ target[key] = source[key];
5402
+ }
5403
+ }
5404
+ }
5405
+ return target;
5406
+ };
5407
+ return _extends$r.apply(this, arguments);
5408
+ }
5409
+ var SvgCaretDown8 = function SvgCaretDown82(props) {
5410
+ return /* @__PURE__ */ React.createElement("svg", _extends$r({
5411
+ width: 8,
5412
+ height: 8,
5413
+ xmlns: "http://www.w3.org/2000/svg"
5414
+ }, props), _path$r || (_path$r = /* @__PURE__ */ React.createElement("path", {
5415
+ 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"
5416
+ })));
5417
+ };
5418
+ var _path$q;
5419
+ function _extends$q() {
5420
+ _extends$q = Object.assign || function(target) {
5421
+ for (var i = 1; i < arguments.length; i++) {
5422
+ var source = arguments[i];
5423
+ for (var key in source) {
5424
+ if (Object.prototype.hasOwnProperty.call(source, key)) {
5425
+ target[key] = source[key];
5426
+ }
5427
+ }
5428
+ }
5429
+ return target;
5430
+ };
5431
+ return _extends$q.apply(this, arguments);
3674
5432
  }
3675
5433
  var SvgPlus8 = function SvgPlus82(props) {
3676
- return /* @__PURE__ */ React.createElement("svg", _extends$p({
5434
+ return /* @__PURE__ */ React.createElement("svg", _extends$q({
3677
5435
  width: 8,
3678
5436
  height: 8,
3679
5437
  xmlns: "http://www.w3.org/2000/svg"
3680
- }, props), _path$p || (_path$p = /* @__PURE__ */ React.createElement("path", {
5438
+ }, props), _path$q || (_path$q = /* @__PURE__ */ React.createElement("path", {
3681
5439
  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"
3682
5440
  })));
3683
5441
  };
3684
- var _path$o;
3685
- function _extends$o() {
3686
- _extends$o = Object.assign || function(target) {
5442
+ var _path$p;
5443
+ function _extends$p() {
5444
+ _extends$p = Object.assign || function(target) {
3687
5445
  for (var i = 1; i < arguments.length; i++) {
3688
5446
  var source = arguments[i];
3689
5447
  for (var key in source) {
@@ -3694,20 +5452,20 @@ function _extends$o() {
3694
5452
  }
3695
5453
  return target;
3696
5454
  };
3697
- return _extends$o.apply(this, arguments);
5455
+ return _extends$p.apply(this, arguments);
3698
5456
  }
3699
5457
  var SvgArrowDown8 = function SvgArrowDown82(props) {
3700
- return /* @__PURE__ */ React.createElement("svg", _extends$o({
5458
+ return /* @__PURE__ */ React.createElement("svg", _extends$p({
3701
5459
  width: 8,
3702
5460
  height: 8,
3703
5461
  xmlns: "http://www.w3.org/2000/svg"
3704
- }, props), _path$o || (_path$o = /* @__PURE__ */ React.createElement("path", {
5462
+ }, props), _path$p || (_path$p = /* @__PURE__ */ React.createElement("path", {
3705
5463
  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"
3706
5464
  })));
3707
5465
  };
3708
- var _path$n;
3709
- function _extends$n() {
3710
- _extends$n = Object.assign || function(target) {
5466
+ var _path$o;
5467
+ function _extends$o() {
5468
+ _extends$o = Object.assign || function(target) {
3711
5469
  for (var i = 1; i < arguments.length; i++) {
3712
5470
  var source = arguments[i];
3713
5471
  for (var key in source) {
@@ -3718,14 +5476,14 @@ function _extends$n() {
3718
5476
  }
3719
5477
  return target;
3720
5478
  };
3721
- return _extends$n.apply(this, arguments);
5479
+ return _extends$o.apply(this, arguments);
3722
5480
  }
3723
5481
  var SvgChevronDown8 = function SvgChevronDown82(props) {
3724
- return /* @__PURE__ */ React.createElement("svg", _extends$n({
5482
+ return /* @__PURE__ */ React.createElement("svg", _extends$o({
3725
5483
  width: 8,
3726
5484
  height: 8,
3727
5485
  xmlns: "http://www.w3.org/2000/svg"
3728
- }, props), _path$n || (_path$n = /* @__PURE__ */ React.createElement("path", {
5486
+ }, props), _path$o || (_path$o = /* @__PURE__ */ React.createElement("path", {
3729
5487
  fillRule: "evenodd",
3730
5488
  clipRule: "evenodd",
3731
5489
  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"
@@ -3800,22 +5558,22 @@ const StyledDropDownItem = styled(Link)`
3800
5558
  background-color: rgba(0, 0, 0, 0.04);
3801
5559
  }
3802
5560
  `;
3803
- function DropDownItem$1(_o) {
3804
- var _p = _o, {
5561
+ function DropDownItem$1(_S) {
5562
+ var _T = _S, {
3805
5563
  color
3806
- } = _p, restOfProps = __objRest(_p, [
5564
+ } = _T, restOfProps = __objRest(_T, [
3807
5565
  "color"
3808
5566
  ]);
3809
5567
  return /* @__PURE__ */ jsx(StyledDropDownItem, __spreadProps(__spreadValues({}, restOfProps), {
3810
5568
  color: useColor(color)
3811
5569
  }));
3812
5570
  }
3813
- function DropDownButton(_q) {
3814
- var _r = _q, {
5571
+ function DropDownButton(_U) {
5572
+ var _V = _U, {
3815
5573
  label,
3816
5574
  caret = "caret",
3817
5575
  links: links2 = []
3818
- } = _r, restOfProps = __objRest(_r, [
5576
+ } = _V, restOfProps = __objRest(_V, [
3819
5577
  "label",
3820
5578
  "caret",
3821
5579
  "links"
@@ -3831,7 +5589,7 @@ function DropDownButton(_q) {
3831
5589
  }, [setPosition]);
3832
5590
  return /* @__PURE__ */ jsxs(DropDownContainer, {
3833
5591
  ref: container,
3834
- children: [/* @__PURE__ */ jsx(Button, __spreadProps(__spreadValues({}, restOfProps), {
5592
+ children: [/* @__PURE__ */ jsx(Button$1, __spreadProps(__spreadValues({}, restOfProps), {
3835
5593
  children: /* @__PURE__ */ jsxs("div", {
3836
5594
  style: {
3837
5595
  display: "flex",
@@ -3861,9 +5619,9 @@ function DropDownButton(_q) {
3861
5619
  })]
3862
5620
  });
3863
5621
  }
3864
- var _path$m;
3865
- function _extends$m() {
3866
- _extends$m = Object.assign || function(target) {
5622
+ var _path$n;
5623
+ function _extends$n() {
5624
+ _extends$n = Object.assign || function(target) {
3867
5625
  for (var i = 1; i < arguments.length; i++) {
3868
5626
  var source = arguments[i];
3869
5627
  for (var key in source) {
@@ -3874,14 +5632,14 @@ function _extends$m() {
3874
5632
  }
3875
5633
  return target;
3876
5634
  };
3877
- return _extends$m.apply(this, arguments);
5635
+ return _extends$n.apply(this, arguments);
3878
5636
  }
3879
5637
  var SvgTimes16 = function SvgTimes162(props) {
3880
- return /* @__PURE__ */ React.createElement("svg", _extends$m({
5638
+ return /* @__PURE__ */ React.createElement("svg", _extends$n({
3881
5639
  width: 16,
3882
5640
  height: 16,
3883
5641
  xmlns: "http://www.w3.org/2000/svg"
3884
- }, props), _path$m || (_path$m = /* @__PURE__ */ React.createElement("path", {
5642
+ }, props), _path$n || (_path$n = /* @__PURE__ */ React.createElement("path", {
3885
5643
  fillRule: "evenodd",
3886
5644
  clipRule: "evenodd",
3887
5645
  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"
@@ -3892,7 +5650,7 @@ const DropDownMenu = styled.div`
3892
5650
  flex-direction: column;
3893
5651
  padding: 8px;
3894
5652
  `;
3895
- const ButtonLink$1 = styled(Button)`
5653
+ const ButtonLink$1 = styled(Button$1)`
3896
5654
  margin: 8px 0;
3897
5655
  `;
3898
5656
  const StyledLink$2 = styled(Link)`
@@ -3905,24 +5663,24 @@ const StyledLink$2 = styled(Link)`
3905
5663
  color: ${color == null ? "black" : colorToString(color)};
3906
5664
  `)}
3907
5665
  `;
3908
- function DropDownItem(_s) {
3909
- var _t = _s, {
5666
+ function DropDownItem(_W) {
5667
+ var _X = _W, {
3910
5668
  color
3911
- } = _t, restOfProps = __objRest(_t, [
5669
+ } = _X, restOfProps = __objRest(_X, [
3912
5670
  "color"
3913
5671
  ]);
3914
5672
  return /* @__PURE__ */ jsx(StyledLink$2, __spreadProps(__spreadValues({}, restOfProps), {
3915
5673
  color: useColor(color)
3916
5674
  }));
3917
5675
  }
3918
- function MobileDropDownButton(_u) {
3919
- var _v = _u, {
5676
+ function MobileDropDownButton(_Y) {
5677
+ var _Z = _Y, {
3920
5678
  label,
3921
5679
  caret,
3922
5680
  links: links2 = [],
3923
5681
  onClose = () => {
3924
5682
  }
3925
- } = _v, restOfProps = __objRest(_v, [
5683
+ } = _Z, restOfProps = __objRest(_Z, [
3926
5684
  "label",
3927
5685
  "caret",
3928
5686
  "links",
@@ -3964,10 +5722,10 @@ function MobileDropDownButton(_u) {
3964
5722
  })]
3965
5723
  });
3966
5724
  }
3967
- const ButtonLink = styled(Button)`
5725
+ const ButtonLink = styled(Button$1)`
3968
5726
  margin: 8px 0;
3969
5727
  `;
3970
- const Container$2 = styled.div`
5728
+ const Container$3 = styled.div`
3971
5729
  position: fixed;
3972
5730
  flex-direction: column;
3973
5731
  width: 100%;
@@ -4021,7 +5779,7 @@ function MobileMenu({
4021
5779
  onClose = () => {
4022
5780
  }
4023
5781
  }) {
4024
- return /* @__PURE__ */ jsxs(Container$2, {
5782
+ return /* @__PURE__ */ jsxs(Container$3, {
4025
5783
  animation,
4026
5784
  backgroundColor: useColor(backgroundColor),
4027
5785
  open,
@@ -4047,7 +5805,7 @@ function MobileMenu({
4047
5805
  })]
4048
5806
  });
4049
5807
  }
4050
- const Container$1 = styled.nav`
5808
+ const Container$2 = styled.nav`
4051
5809
  display: flex;
4052
5810
  align-items: center;
4053
5811
  ${cssWidth()}
@@ -4104,7 +5862,7 @@ const Navigation = forwardRef(function Navigation2({
4104
5862
  margin
4105
5863
  }, ref) {
4106
5864
  const [isOpen, setIsOpen] = useState(false);
4107
- return /* @__PURE__ */ jsxs(Container$1, {
5865
+ return /* @__PURE__ */ jsxs(Container$2, {
4108
5866
  ref,
4109
5867
  id,
4110
5868
  margin,
@@ -4129,7 +5887,7 @@ const Navigation = forwardRef(function Navigation2({
4129
5887
  gutter,
4130
5888
  first: i === 0,
4131
5889
  last: i === links2.length - 1,
4132
- children: [link.type === "button" && /* @__PURE__ */ jsx(Button, __spreadProps(__spreadValues({}, link.payload), {
5890
+ children: [link.type === "button" && /* @__PURE__ */ jsx(Button$1, __spreadProps(__spreadValues({}, link.payload), {
4133
5891
  children: link.payload.label
4134
5892
  })), link.type === "dropdown" && /* @__PURE__ */ jsx(DropDownButton, __spreadValues({}, link.payload))]
4135
5893
  }, link.id)) : /* @__PURE__ */ jsx(LinksPlaceholder, {
@@ -4152,7 +5910,7 @@ const Navigation = forwardRef(function Navigation2({
4152
5910
  })]
4153
5911
  });
4154
5912
  });
4155
- function registerComponent$3(runtime) {
5913
+ function registerComponent$4(runtime) {
4156
5914
  return runtime.registerComponent(Navigation, {
4157
5915
  type: "./components/Navigation/index.js",
4158
5916
  label: "Navigation",
@@ -4163,7 +5921,7 @@ function registerComponent$3(runtime) {
4163
5921
  linkTextStyle: TextStyle({
4164
5922
  label: "Link text style"
4165
5923
  }),
4166
- showLogo: Checkbox({
5924
+ showLogo: Checkbox$1({
4167
5925
  preset: true,
4168
5926
  label: "Show logo"
4169
5927
  }),
@@ -4256,7 +6014,7 @@ const PlaceholderBase = styled.div`
4256
6014
  height: 80px;
4257
6015
  padding: 8px;
4258
6016
  `;
4259
- var Placeholder2 = forwardRef(function Placeholder3(props, ref) {
6017
+ var Placeholder3 = forwardRef(function Placeholder4(props, ref) {
4260
6018
  return /* @__PURE__ */ jsx(PlaceholderBase, __spreadProps(__spreadValues({}, props), {
4261
6019
  ref,
4262
6020
  children: /* @__PURE__ */ jsx("svg", {
@@ -4324,12 +6082,12 @@ const Root = forwardRef(function Page2({
4324
6082
  children: /* @__PURE__ */ jsx(Element$1, {
4325
6083
  element: child
4326
6084
  })
4327
- }, child.key)) : /* @__PURE__ */ jsx(Placeholder2, {})
6085
+ }, child.key)) : /* @__PURE__ */ jsx(Placeholder3, {})
4328
6086
  })
4329
6087
  })]
4330
6088
  });
4331
6089
  });
4332
- function registerComponent$2(runtime) {
6090
+ function registerComponent$3(runtime) {
4333
6091
  return runtime.registerComponent(Root, {
4334
6092
  type: "./components/Root/index.js",
4335
6093
  label: "Page",
@@ -4342,6 +6100,30 @@ function registerComponent$2(runtime) {
4342
6100
  }
4343
6101
  });
4344
6102
  }
6103
+ var _path$m;
6104
+ function _extends$m() {
6105
+ _extends$m = Object.assign || function(target) {
6106
+ for (var i = 1; i < arguments.length; i++) {
6107
+ var source = arguments[i];
6108
+ for (var key in source) {
6109
+ if (Object.prototype.hasOwnProperty.call(source, key)) {
6110
+ target[key] = source[key];
6111
+ }
6112
+ }
6113
+ }
6114
+ return target;
6115
+ };
6116
+ return _extends$m.apply(this, arguments);
6117
+ }
6118
+ var SvgLogoAngellist20 = function SvgLogoAngellist202(props) {
6119
+ return /* @__PURE__ */ React.createElement("svg", _extends$m({
6120
+ xmlns: "http://www.w3.org/2000/svg",
6121
+ width: 20,
6122
+ height: 20
6123
+ }, props), _path$m || (_path$m = /* @__PURE__ */ React.createElement("path", {
6124
+ 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"
6125
+ })));
6126
+ };
4345
6127
  var _path$l;
4346
6128
  function _extends$l() {
4347
6129
  _extends$l = Object.assign || function(target) {
@@ -4357,13 +6139,13 @@ function _extends$l() {
4357
6139
  };
4358
6140
  return _extends$l.apply(this, arguments);
4359
6141
  }
4360
- var SvgLogoAngellist20 = function SvgLogoAngellist202(props) {
6142
+ var SvgLogoCodepen20 = function SvgLogoCodepen202(props) {
4361
6143
  return /* @__PURE__ */ React.createElement("svg", _extends$l({
4362
6144
  xmlns: "http://www.w3.org/2000/svg",
4363
6145
  width: 20,
4364
6146
  height: 20
4365
6147
  }, props), _path$l || (_path$l = /* @__PURE__ */ React.createElement("path", {
4366
- 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"
6148
+ 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"
4367
6149
  })));
4368
6150
  };
4369
6151
  var _path$k;
@@ -4381,13 +6163,13 @@ function _extends$k() {
4381
6163
  };
4382
6164
  return _extends$k.apply(this, arguments);
4383
6165
  }
4384
- var SvgLogoCodepen20 = function SvgLogoCodepen202(props) {
6166
+ var SvgLogoDribbble20 = function SvgLogoDribbble202(props) {
4385
6167
  return /* @__PURE__ */ React.createElement("svg", _extends$k({
4386
6168
  xmlns: "http://www.w3.org/2000/svg",
4387
6169
  width: 20,
4388
6170
  height: 20
4389
6171
  }, props), _path$k || (_path$k = /* @__PURE__ */ React.createElement("path", {
4390
- 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"
6172
+ 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"
4391
6173
  })));
4392
6174
  };
4393
6175
  var _path$j;
@@ -4405,13 +6187,13 @@ function _extends$j() {
4405
6187
  };
4406
6188
  return _extends$j.apply(this, arguments);
4407
6189
  }
4408
- var SvgLogoDribbble20 = function SvgLogoDribbble202(props) {
6190
+ var SvgLogoFacebook20 = function SvgLogoFacebook202(props) {
4409
6191
  return /* @__PURE__ */ React.createElement("svg", _extends$j({
4410
6192
  xmlns: "http://www.w3.org/2000/svg",
4411
6193
  width: 20,
4412
6194
  height: 20
4413
6195
  }, props), _path$j || (_path$j = /* @__PURE__ */ React.createElement("path", {
4414
- 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"
6196
+ 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"
4415
6197
  })));
4416
6198
  };
4417
6199
  var _path$i;
@@ -4429,13 +6211,13 @@ function _extends$i() {
4429
6211
  };
4430
6212
  return _extends$i.apply(this, arguments);
4431
6213
  }
4432
- var SvgLogoFacebook20 = function SvgLogoFacebook202(props) {
6214
+ var SvgLogoGithub20 = function SvgLogoGithub202(props) {
4433
6215
  return /* @__PURE__ */ React.createElement("svg", _extends$i({
4434
6216
  xmlns: "http://www.w3.org/2000/svg",
4435
6217
  width: 20,
4436
6218
  height: 20
4437
6219
  }, props), _path$i || (_path$i = /* @__PURE__ */ React.createElement("path", {
4438
- 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"
6220
+ 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"
4439
6221
  })));
4440
6222
  };
4441
6223
  var _path$h;
@@ -4453,13 +6235,13 @@ function _extends$h() {
4453
6235
  };
4454
6236
  return _extends$h.apply(this, arguments);
4455
6237
  }
4456
- var SvgLogoGithub20 = function SvgLogoGithub202(props) {
6238
+ var SvgLogoInstagram20 = function SvgLogoInstagram202(props) {
4457
6239
  return /* @__PURE__ */ React.createElement("svg", _extends$h({
4458
6240
  xmlns: "http://www.w3.org/2000/svg",
4459
6241
  width: 20,
4460
6242
  height: 20
4461
6243
  }, props), _path$h || (_path$h = /* @__PURE__ */ React.createElement("path", {
4462
- 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"
6244
+ 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"
4463
6245
  })));
4464
6246
  };
4465
6247
  var _path$g;
@@ -4477,13 +6259,13 @@ function _extends$g() {
4477
6259
  };
4478
6260
  return _extends$g.apply(this, arguments);
4479
6261
  }
4480
- var SvgLogoInstagram20 = function SvgLogoInstagram202(props) {
6262
+ var SvgLogoLinkedin20 = function SvgLogoLinkedin202(props) {
4481
6263
  return /* @__PURE__ */ React.createElement("svg", _extends$g({
4482
6264
  xmlns: "http://www.w3.org/2000/svg",
4483
6265
  width: 20,
4484
6266
  height: 20
4485
6267
  }, props), _path$g || (_path$g = /* @__PURE__ */ React.createElement("path", {
4486
- 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"
6268
+ 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"
4487
6269
  })));
4488
6270
  };
4489
6271
  var _path$f;
@@ -4501,13 +6283,13 @@ function _extends$f() {
4501
6283
  };
4502
6284
  return _extends$f.apply(this, arguments);
4503
6285
  }
4504
- var SvgLogoLinkedin20 = function SvgLogoLinkedin202(props) {
6286
+ var SvgLogoMedium20 = function SvgLogoMedium202(props) {
4505
6287
  return /* @__PURE__ */ React.createElement("svg", _extends$f({
4506
6288
  xmlns: "http://www.w3.org/2000/svg",
4507
6289
  width: 20,
4508
6290
  height: 20
4509
6291
  }, props), _path$f || (_path$f = /* @__PURE__ */ React.createElement("path", {
4510
- 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"
6292
+ 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"
4511
6293
  })));
4512
6294
  };
4513
6295
  var _path$e;
@@ -4525,13 +6307,13 @@ function _extends$e() {
4525
6307
  };
4526
6308
  return _extends$e.apply(this, arguments);
4527
6309
  }
4528
- var SvgLogoMedium20 = function SvgLogoMedium202(props) {
6310
+ var SvgLogoPinterest20 = function SvgLogoPinterest202(props) {
4529
6311
  return /* @__PURE__ */ React.createElement("svg", _extends$e({
4530
6312
  xmlns: "http://www.w3.org/2000/svg",
4531
6313
  width: 20,
4532
6314
  height: 20
4533
6315
  }, props), _path$e || (_path$e = /* @__PURE__ */ React.createElement("path", {
4534
- 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"
6316
+ 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"
4535
6317
  })));
4536
6318
  };
4537
6319
  var _path$d;
@@ -4549,13 +6331,13 @@ function _extends$d() {
4549
6331
  };
4550
6332
  return _extends$d.apply(this, arguments);
4551
6333
  }
4552
- var SvgLogoPinterest20 = function SvgLogoPinterest202(props) {
6334
+ var SvgLogoReddit20 = function SvgLogoReddit202(props) {
4553
6335
  return /* @__PURE__ */ React.createElement("svg", _extends$d({
4554
6336
  xmlns: "http://www.w3.org/2000/svg",
4555
6337
  width: 20,
4556
6338
  height: 20
4557
6339
  }, props), _path$d || (_path$d = /* @__PURE__ */ React.createElement("path", {
4558
- 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"
6340
+ 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"
4559
6341
  })));
4560
6342
  };
4561
6343
  var _path$c;
@@ -4573,13 +6355,13 @@ function _extends$c() {
4573
6355
  };
4574
6356
  return _extends$c.apply(this, arguments);
4575
6357
  }
4576
- var SvgLogoReddit20 = function SvgLogoReddit202(props) {
6358
+ var SvgLogoRss20 = function SvgLogoRss202(props) {
4577
6359
  return /* @__PURE__ */ React.createElement("svg", _extends$c({
4578
6360
  xmlns: "http://www.w3.org/2000/svg",
4579
6361
  width: 20,
4580
6362
  height: 20
4581
6363
  }, props), _path$c || (_path$c = /* @__PURE__ */ React.createElement("path", {
4582
- 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"
6364
+ 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"
4583
6365
  })));
4584
6366
  };
4585
6367
  var _path$b;
@@ -4597,13 +6379,13 @@ function _extends$b() {
4597
6379
  };
4598
6380
  return _extends$b.apply(this, arguments);
4599
6381
  }
4600
- var SvgLogoRss20 = function SvgLogoRss202(props) {
6382
+ var SvgLogoSnapchat20 = function SvgLogoSnapchat202(props) {
4601
6383
  return /* @__PURE__ */ React.createElement("svg", _extends$b({
4602
6384
  xmlns: "http://www.w3.org/2000/svg",
4603
6385
  width: 20,
4604
6386
  height: 20
4605
6387
  }, props), _path$b || (_path$b = /* @__PURE__ */ React.createElement("path", {
4606
- 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"
6388
+ 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"
4607
6389
  })));
4608
6390
  };
4609
6391
  var _path$a;
@@ -4621,13 +6403,13 @@ function _extends$a() {
4621
6403
  };
4622
6404
  return _extends$a.apply(this, arguments);
4623
6405
  }
4624
- var SvgLogoSnapchat20 = function SvgLogoSnapchat202(props) {
6406
+ var SvgLogoSoundcloud20 = function SvgLogoSoundcloud202(props) {
4625
6407
  return /* @__PURE__ */ React.createElement("svg", _extends$a({
4626
6408
  xmlns: "http://www.w3.org/2000/svg",
4627
6409
  width: 20,
4628
6410
  height: 20
4629
6411
  }, props), _path$a || (_path$a = /* @__PURE__ */ React.createElement("path", {
4630
- 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"
6412
+ 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"
4631
6413
  })));
4632
6414
  };
4633
6415
  var _path$9;
@@ -4645,13 +6427,13 @@ function _extends$9() {
4645
6427
  };
4646
6428
  return _extends$9.apply(this, arguments);
4647
6429
  }
4648
- var SvgLogoSoundcloud20 = function SvgLogoSoundcloud202(props) {
6430
+ var SvgLogoSpotify20 = function SvgLogoSpotify202(props) {
4649
6431
  return /* @__PURE__ */ React.createElement("svg", _extends$9({
4650
6432
  xmlns: "http://www.w3.org/2000/svg",
4651
6433
  width: 20,
4652
6434
  height: 20
4653
6435
  }, props), _path$9 || (_path$9 = /* @__PURE__ */ React.createElement("path", {
4654
- 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"
6436
+ 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"
4655
6437
  })));
4656
6438
  };
4657
6439
  var _path$8;
@@ -4669,13 +6451,13 @@ function _extends$8() {
4669
6451
  };
4670
6452
  return _extends$8.apply(this, arguments);
4671
6453
  }
4672
- var SvgLogoSpotify20 = function SvgLogoSpotify202(props) {
6454
+ var SvgLogoTelegram20 = function SvgLogoTelegram202(props) {
4673
6455
  return /* @__PURE__ */ React.createElement("svg", _extends$8({
4674
6456
  xmlns: "http://www.w3.org/2000/svg",
4675
6457
  width: 20,
4676
6458
  height: 20
4677
6459
  }, props), _path$8 || (_path$8 = /* @__PURE__ */ React.createElement("path", {
4678
- 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"
6460
+ 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"
4679
6461
  })));
4680
6462
  };
4681
6463
  var _path$7;
@@ -4693,13 +6475,13 @@ function _extends$7() {
4693
6475
  };
4694
6476
  return _extends$7.apply(this, arguments);
4695
6477
  }
4696
- var SvgLogoTelegram20 = function SvgLogoTelegram202(props) {
6478
+ var SvgLogoTumblr20 = function SvgLogoTumblr202(props) {
4697
6479
  return /* @__PURE__ */ React.createElement("svg", _extends$7({
4698
6480
  xmlns: "http://www.w3.org/2000/svg",
4699
6481
  width: 20,
4700
6482
  height: 20
4701
6483
  }, props), _path$7 || (_path$7 = /* @__PURE__ */ React.createElement("path", {
4702
- 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"
6484
+ 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"
4703
6485
  })));
4704
6486
  };
4705
6487
  var _path$6;
@@ -4717,13 +6499,13 @@ function _extends$6() {
4717
6499
  };
4718
6500
  return _extends$6.apply(this, arguments);
4719
6501
  }
4720
- var SvgLogoTumblr20 = function SvgLogoTumblr202(props) {
6502
+ var SvgLogoTwitch20 = function SvgLogoTwitch202(props) {
4721
6503
  return /* @__PURE__ */ React.createElement("svg", _extends$6({
4722
6504
  xmlns: "http://www.w3.org/2000/svg",
4723
6505
  width: 20,
4724
6506
  height: 20
4725
6507
  }, props), _path$6 || (_path$6 = /* @__PURE__ */ React.createElement("path", {
4726
- 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"
6508
+ 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"
4727
6509
  })));
4728
6510
  };
4729
6511
  var _path$5;
@@ -4741,13 +6523,13 @@ function _extends$5() {
4741
6523
  };
4742
6524
  return _extends$5.apply(this, arguments);
4743
6525
  }
4744
- var SvgLogoTwitch20 = function SvgLogoTwitch202(props) {
6526
+ var SvgLogoTwitter20 = function SvgLogoTwitter202(props) {
4745
6527
  return /* @__PURE__ */ React.createElement("svg", _extends$5({
4746
6528
  xmlns: "http://www.w3.org/2000/svg",
4747
6529
  width: 20,
4748
6530
  height: 20
4749
6531
  }, props), _path$5 || (_path$5 = /* @__PURE__ */ React.createElement("path", {
4750
- 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"
6532
+ 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"
4751
6533
  })));
4752
6534
  };
4753
6535
  var _path$4;
@@ -4765,13 +6547,13 @@ function _extends$4() {
4765
6547
  };
4766
6548
  return _extends$4.apply(this, arguments);
4767
6549
  }
4768
- var SvgLogoTwitter20 = function SvgLogoTwitter202(props) {
6550
+ var SvgLogoWhatsapp20 = function SvgLogoWhatsapp202(props) {
4769
6551
  return /* @__PURE__ */ React.createElement("svg", _extends$4({
4770
6552
  xmlns: "http://www.w3.org/2000/svg",
4771
6553
  width: 20,
4772
6554
  height: 20
4773
6555
  }, props), _path$4 || (_path$4 = /* @__PURE__ */ React.createElement("path", {
4774
- 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"
6556
+ 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"
4775
6557
  })));
4776
6558
  };
4777
6559
  var _path$3;
@@ -4789,13 +6571,13 @@ function _extends$3() {
4789
6571
  };
4790
6572
  return _extends$3.apply(this, arguments);
4791
6573
  }
4792
- var SvgLogoWhatsapp20 = function SvgLogoWhatsapp202(props) {
6574
+ var SvgLogoVimeo20 = function SvgLogoVimeo202(props) {
4793
6575
  return /* @__PURE__ */ React.createElement("svg", _extends$3({
4794
6576
  xmlns: "http://www.w3.org/2000/svg",
4795
6577
  width: 20,
4796
6578
  height: 20
4797
6579
  }, props), _path$3 || (_path$3 = /* @__PURE__ */ React.createElement("path", {
4798
- 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"
6580
+ 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"
4799
6581
  })));
4800
6582
  };
4801
6583
  var _path$2;
@@ -4813,13 +6595,13 @@ function _extends$2() {
4813
6595
  };
4814
6596
  return _extends$2.apply(this, arguments);
4815
6597
  }
4816
- var SvgLogoVimeo20 = function SvgLogoVimeo202(props) {
6598
+ var SvgLogoYelp20 = function SvgLogoYelp202(props) {
4817
6599
  return /* @__PURE__ */ React.createElement("svg", _extends$2({
4818
6600
  xmlns: "http://www.w3.org/2000/svg",
4819
6601
  width: 20,
4820
6602
  height: 20
4821
6603
  }, props), _path$2 || (_path$2 = /* @__PURE__ */ React.createElement("path", {
4822
- 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"
6604
+ 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"
4823
6605
  })));
4824
6606
  };
4825
6607
  var _path$1;
@@ -4837,36 +6619,12 @@ function _extends$1() {
4837
6619
  };
4838
6620
  return _extends$1.apply(this, arguments);
4839
6621
  }
4840
- var SvgLogoYelp20 = function SvgLogoYelp202(props) {
6622
+ var SvgLogoYoutube20 = function SvgLogoYoutube202(props) {
4841
6623
  return /* @__PURE__ */ React.createElement("svg", _extends$1({
4842
6624
  xmlns: "http://www.w3.org/2000/svg",
4843
6625
  width: 20,
4844
6626
  height: 20
4845
6627
  }, props), _path$1 || (_path$1 = /* @__PURE__ */ React.createElement("path", {
4846
- 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"
4847
- })));
4848
- };
4849
- var _path;
4850
- function _extends() {
4851
- _extends = Object.assign || function(target) {
4852
- for (var i = 1; i < arguments.length; i++) {
4853
- var source = arguments[i];
4854
- for (var key in source) {
4855
- if (Object.prototype.hasOwnProperty.call(source, key)) {
4856
- target[key] = source[key];
4857
- }
4858
- }
4859
- }
4860
- return target;
4861
- };
4862
- return _extends.apply(this, arguments);
4863
- }
4864
- var SvgLogoYoutube20 = function SvgLogoYoutube202(props) {
4865
- return /* @__PURE__ */ React.createElement("svg", _extends({
4866
- xmlns: "http://www.w3.org/2000/svg",
4867
- width: 20,
4868
- height: 20
4869
- }, props), _path || (_path = /* @__PURE__ */ React.createElement("path", {
4870
6628
  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"
4871
6629
  })));
4872
6630
  };
@@ -5006,7 +6764,7 @@ function SocialLinksPlaceholder({
5006
6764
  }, link.id))
5007
6765
  });
5008
6766
  }
5009
- const Container = styled.div`
6767
+ const Container$1 = styled.div`
5010
6768
  display: flex;
5011
6769
  flex-direction: row;
5012
6770
  flex-wrap: wrap;
@@ -5090,7 +6848,7 @@ const SocialLinks = forwardRef(function SocialLinks2({
5090
6848
  }, ref) {
5091
6849
  const fillData = useColor(fill);
5092
6850
  const backgroundColorData = useColor(backgroundColor);
5093
- return /* @__PURE__ */ jsx(Container, {
6851
+ return /* @__PURE__ */ jsx(Container$1, {
5094
6852
  ref,
5095
6853
  id,
5096
6854
  alignment,
@@ -5126,7 +6884,7 @@ const SocialLinks = forwardRef(function SocialLinks2({
5126
6884
  })
5127
6885
  });
5128
6886
  });
5129
- function registerComponent$1(runtime) {
6887
+ function registerComponent$2(runtime) {
5130
6888
  return runtime.registerComponent(SocialLinks, {
5131
6889
  type: "./components/SocialLinks/index.js",
5132
6890
  label: "Social Links",
@@ -5374,10 +7132,10 @@ const Span = styled.span`
5374
7132
  `}
5375
7133
  `, shallowMergeFallbacks)}
5376
7134
  `;
5377
- function Mark(_w) {
5378
- var _x = _w, {
7135
+ function Mark(__) {
7136
+ var _$ = __, {
5379
7137
  value
5380
- } = _x, restOfProps = __objRest(_x, [
7138
+ } = _$, restOfProps = __objRest(_$, [
5381
7139
  "value"
5382
7140
  ]);
5383
7141
  const typographyStyle = useTypographyMark(value);
@@ -5415,10 +7173,10 @@ const StyledBlock = styled.div`
5415
7173
  border-left: 5px solid rgba(0, 0, 0, 0.1);
5416
7174
  ` : ""}
5417
7175
  `;
5418
- var Block = forwardRef(function Block2(_y, ref) {
5419
- var _z = _y, {
7176
+ var Block = forwardRef(function Block2(_aa, ref) {
7177
+ var _ba = _aa, {
5420
7178
  textAlign
5421
- } = _z, restOfProps = __objRest(_z, [
7179
+ } = _ba, restOfProps = __objRest(_ba, [
5422
7180
  "textAlign"
5423
7181
  ]);
5424
7182
  return /* @__PURE__ */ jsx(StyledBlock, __spreadProps(__spreadValues({}, restOfProps), {
@@ -5543,10 +7301,10 @@ function Inlines() {
5543
7301
  }
5544
7302
  };
5545
7303
  }
5546
- const RichTextEditor = styled(forwardRef(function RichTextEditor2(_A, ref) {
5547
- var _B = _A, {
7304
+ const RichTextEditor = styled(forwardRef(function RichTextEditor2(_ca, ref) {
7305
+ var _da = _ca, {
5548
7306
  placeholder: placeholder2 = "Write some text..."
5549
- } = _B, restOfProps = __objRest(_B, [
7307
+ } = _da, restOfProps = __objRest(_da, [
5550
7308
  "placeholder"
5551
7309
  ]);
5552
7310
  const plugins = useMemo(() => [Lists(), LinkPlugin(), Inlines(), DeviceOverridesBlockPlugin(), DeviceOverridesMarksPlugin()], []);
@@ -5663,7 +7421,7 @@ const Text = forwardRef(function Text2({
5663
7421
  onKeyDown: handleKeyDown
5664
7422
  });
5665
7423
  });
5666
- function registerComponent(runtime) {
7424
+ function registerComponent$1(runtime) {
5667
7425
  return runtime.registerComponent(Text, {
5668
7426
  type: "./components/Text/index.js",
5669
7427
  label: "Text",
@@ -5741,18 +7499,103 @@ function registerComponent(runtime) {
5741
7499
  }
5742
7500
  });
5743
7501
  }
7502
+ const Container = styled.div`
7503
+ display: flex;
7504
+ flex-direction: column;
7505
+ overflow: hidden;
7506
+ ${cssWidth("560px")}
7507
+ ${cssMargin()}
7508
+ ${cssBorderRadius()}
7509
+ `;
7510
+ const ASPECT_RATIO = 16 / 9;
7511
+ const Video = forwardRef(function Video2({
7512
+ id,
7513
+ video,
7514
+ width,
7515
+ margin,
7516
+ borderRadius
7517
+ }, ref) {
7518
+ const canPlayUrl = video && video.url != null && ReactPlayer.canPlay(video.url);
7519
+ return /* @__PURE__ */ jsx(Container, {
7520
+ ref,
7521
+ id,
7522
+ width,
7523
+ margin,
7524
+ borderRadius,
7525
+ children: /* @__PURE__ */ jsx("div", {
7526
+ style: {
7527
+ position: "relative",
7528
+ paddingTop: `${100 / ASPECT_RATIO}%`
7529
+ },
7530
+ children: /* @__PURE__ */ jsx("div", {
7531
+ style: {
7532
+ position: "absolute",
7533
+ top: 0,
7534
+ left: 0,
7535
+ right: 0,
7536
+ bottom: 0
7537
+ },
7538
+ children: canPlayUrl === true ? /* @__PURE__ */ jsx(ReactPlayer, __spreadProps(__spreadValues({}, video), {
7539
+ width: "100%",
7540
+ height: "100%",
7541
+ config: {
7542
+ vimeo: {
7543
+ playerOptions: {
7544
+ background: video != null && !video.controls
7545
+ }
7546
+ },
7547
+ wistia: {
7548
+ options: {
7549
+ endVideoBehavior: video != null && video.loop === true ? "loop" : "default"
7550
+ }
7551
+ }
7552
+ }
7553
+ })) : /* @__PURE__ */ jsx("img", {
7554
+ width: "100%",
7555
+ src: placeholders.video.src,
7556
+ alt: "Video Placeholder"
7557
+ })
7558
+ })
7559
+ })
7560
+ });
7561
+ });
7562
+ function registerComponent(runtime) {
7563
+ return runtime.registerComponent(Video, {
7564
+ type: "./components/Video/index.js",
7565
+ label: "Video",
7566
+ icon: "Video40",
7567
+ props: {
7568
+ id: ElementID(),
7569
+ video: Video$1({
7570
+ preset: {
7571
+ controls: true
7572
+ }
7573
+ }),
7574
+ width: Width({
7575
+ defaultValue: {
7576
+ value: 560,
7577
+ unit: "px"
7578
+ }
7579
+ }),
7580
+ margin: Margin(),
7581
+ borderRadius: BorderRadius()
7582
+ }
7583
+ });
7584
+ }
5744
7585
  function registerBuiltinComponents(runtime) {
5745
- const unregisterBoxComponent = registerComponent$a(runtime);
5746
- const unregisterButtonComponent = registerComponent$9(runtime);
5747
- const unregisterCarouselComponent = registerComponent$7(runtime);
5748
- const unregisterCountdownComponent = registerComponent$6(runtime);
5749
- const unregisterDividerComponent = registerComponent$5(runtime);
5750
- const unregisterEmbedComponent = registerComponent$4(runtime);
5751
- const unregisterImageComponent = registerComponent$8(runtime);
5752
- const unregisterNavigationComponent = registerComponent$3(runtime);
5753
- const unregisterRootComponent = registerComponent$2(runtime);
5754
- const unregisterSocialLinksComponent = registerComponent$1(runtime);
5755
- const unregisterTextComponent = registerComponent(runtime);
7586
+ const unregisterBoxComponent = registerComponent$c(runtime);
7587
+ const unregisterButtonComponent = registerComponent$b(runtime);
7588
+ const unregisterCarouselComponent = registerComponent$9(runtime);
7589
+ const unregisterCountdownComponent = registerComponent$8(runtime);
7590
+ const unregisterDividerComponent = registerComponent$7(runtime);
7591
+ const unregisterEmbedComponent = registerComponent$6(runtime);
7592
+ const unregisterFormComponent = registerComponent$5(runtime);
7593
+ const unregisterImageComponent = registerComponent$a(runtime);
7594
+ const unregisterNavigationComponent = registerComponent$4(runtime);
7595
+ const unregisterRootComponent = registerComponent$3(runtime);
7596
+ const unregisterSocialLinksComponent = registerComponent$2(runtime);
7597
+ const unregisterTextComponent = registerComponent$1(runtime);
7598
+ const unregisterVideoComponent = registerComponent(runtime);
5756
7599
  return () => {
5757
7600
  unregisterBoxComponent();
5758
7601
  unregisterButtonComponent();
@@ -5760,13 +7603,66 @@ function registerBuiltinComponents(runtime) {
5760
7603
  unregisterCountdownComponent();
5761
7604
  unregisterDividerComponent();
5762
7605
  unregisterEmbedComponent();
7606
+ unregisterFormComponent();
5763
7607
  unregisterImageComponent();
5764
7608
  unregisterNavigationComponent();
5765
7609
  unregisterRootComponent();
5766
7610
  unregisterSocialLinksComponent();
5767
7611
  unregisterTextComponent();
7612
+ unregisterTextComponent();
7613
+ unregisterVideoComponent();
7614
+ };
7615
+ }
7616
+ var _path;
7617
+ function _extends() {
7618
+ _extends = Object.assign || function(target) {
7619
+ for (var i = 1; i < arguments.length; i++) {
7620
+ var source = arguments[i];
7621
+ for (var key in source) {
7622
+ if (Object.prototype.hasOwnProperty.call(source, key)) {
7623
+ target[key] = source[key];
7624
+ }
7625
+ }
7626
+ }
7627
+ return target;
5768
7628
  };
7629
+ return _extends.apply(this, arguments);
5769
7630
  }
7631
+ var SvgWarning20 = function SvgWarning202(props) {
7632
+ return /* @__PURE__ */ React.createElement("svg", _extends({
7633
+ width: 20,
7634
+ height: 20,
7635
+ xmlns: "http://www.w3.org/2000/svg"
7636
+ }, props), _path || (_path = /* @__PURE__ */ React.createElement("path", {
7637
+ fillRule: "evenodd",
7638
+ clipRule: "evenodd",
7639
+ 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"
7640
+ })));
7641
+ };
7642
+ const ErrorDiv = styled("div")`
7643
+ width: 100%;
7644
+ height: 54px;
7645
+ background-color: #fcedf2;
7646
+ border-radius: 6px;
7647
+ padding: 16px;
7648
+ display: flex;
7649
+ align-items: center;
7650
+ gap: 8px;
7651
+ color: #c73e6d;
7652
+ fill: currentColor;
7653
+ font-family: Heebo, sans-serif;
7654
+ font-size: 16px;
7655
+ `;
7656
+ const FallbackComponent = forwardRef(function FallbackComponent2({
7657
+ text
7658
+ }, ref) {
7659
+ return /* @__PURE__ */ jsxs(ErrorDiv, {
7660
+ ref,
7661
+ children: [/* @__PURE__ */ jsx(SvgWarning20, {}), /* @__PURE__ */ jsx("span", {
7662
+ children: text
7663
+ })]
7664
+ });
7665
+ });
5770
7666
  const contextDefaultValue = configureStore();
5771
7667
  function createReactRuntime(store) {
5772
7668
  return {
@@ -5793,39 +7689,31 @@ function createReactRuntime(store) {
5793
7689
  const ReactRuntime = createReactRuntime(contextDefaultValue);
5794
7690
  const Context = createContext(contextDefaultValue);
5795
7691
  function RuntimeProvider({
7692
+ client,
5796
7693
  children,
5797
- defaultRootElements,
5798
- registerComponents,
5799
- makeswiftApiEndpoint
7694
+ rootElements
5800
7695
  }) {
5801
7696
  const [store, setStore] = useState(() => {
5802
7697
  const store2 = configureStore({
5803
7698
  preloadedState: contextDefaultValue.getState(),
5804
- rootElements: defaultRootElements
7699
+ rootElements
5805
7700
  });
5806
7701
  const runtime = createReactRuntime(store2);
5807
7702
  registerBuiltinComponents(runtime);
5808
- registerComponents == null ? void 0 : registerComponents(runtime);
5809
7703
  return store2;
5810
7704
  });
5811
- const [client, setClient] = useState(new ApolloClient({
5812
- uri: makeswiftApiEndpoint,
5813
- cache: new InMemoryCache()
5814
- }));
5815
- useEffect(() => {
5816
- setClient(({
5817
- cache
5818
- }) => new ApolloClient({
5819
- uri: makeswiftApiEndpoint,
5820
- cache
5821
- }));
5822
- }, [makeswiftApiEndpoint]);
5823
7705
  useEffect(() => {
5824
7706
  return registerBuiltinComponents(createReactRuntime(store));
5825
7707
  }, [store]);
5826
7708
  useEffect(() => {
5827
- return registerComponents == null ? void 0 : registerComponents(createReactRuntime(store));
5828
- }, [store, registerComponents]);
7709
+ var _a;
7710
+ const unregisterDocuments = Array.from((_a = rootElements == null ? void 0 : rootElements.entries()) != null ? _a : []).map(([documentKey, rootElement]) => store.dispatch(registerDocumentEffect(createDocument(documentKey, rootElement))));
7711
+ return () => {
7712
+ unregisterDocuments.forEach((unregisterDocument) => {
7713
+ unregisterDocument();
7714
+ });
7715
+ };
7716
+ }, [store, rootElements]);
5829
7717
  useEffect(() => {
5830
7718
  const isInBuilder = window.parent !== window;
5831
7719
  if (isInBuilder)
@@ -5834,7 +7722,7 @@ function RuntimeProvider({
5834
7722
  const ReactBuilderPreview = await import("./react-builder-preview.es.js");
5835
7723
  setStore((store2) => ReactBuilderPreview.configureStore({
5836
7724
  preloadedState: store2.getState(),
5837
- client
7725
+ client: client.apolloClient
5838
7726
  }));
5839
7727
  }
5840
7728
  }, [client]);
@@ -5861,12 +7749,31 @@ function RuntimeProvider({
5861
7749
  }, []);
5862
7750
  return /* @__PURE__ */ jsx(Context.Provider, {
5863
7751
  value: store,
5864
- children: /* @__PURE__ */ jsx(ApolloProvider, {
7752
+ children: /* @__PURE__ */ jsx(MakeswiftProvider, {
5865
7753
  client,
5866
7754
  children
5867
7755
  })
5868
7756
  });
5869
7757
  }
7758
+ const PageContext = createContext(null);
7759
+ function usePageIdOrNull() {
7760
+ return useContext(PageContext);
7761
+ }
7762
+ function usePageId() {
7763
+ const pageIdOrNull = usePageIdOrNull();
7764
+ if (pageIdOrNull == null)
7765
+ throw new Error("`usePageId` must be used with `<PageProvider>`");
7766
+ return pageIdOrNull;
7767
+ }
7768
+ function PageProvider({
7769
+ id,
7770
+ children
7771
+ }) {
7772
+ return /* @__PURE__ */ jsx(PageContext.Provider, {
7773
+ value: id,
7774
+ children
7775
+ });
7776
+ }
5870
7777
  const DocumentContext = createContext(null);
5871
7778
  function useDocumentKey() {
5872
7779
  return useContext(DocumentContext);
@@ -5882,8 +7789,8 @@ function useElementId(elementKey) {
5882
7789
  const documentKey = useDocumentKey();
5883
7790
  return useSelector((state) => documentKey == null || elementKey == null ? null : getElementId(state, documentKey, elementKey));
5884
7791
  }
5885
- function useDocumentRootElement(documentKey) {
5886
- return useSelector((state) => getDocumentRootElement(state, documentKey));
7792
+ function useDocument(documentKey) {
7793
+ return useSelector((state) => getDocument(state, documentKey));
5887
7794
  }
5888
7795
  function useIsInBuilder() {
5889
7796
  return useSelector((state) => getIsInBuilder(state));
@@ -5897,15 +7804,9 @@ const ElementData = memo(forwardRef(function ElementData2({
5897
7804
  }, ref) {
5898
7805
  const Component = useComponent(elementData.type);
5899
7806
  if (Component == null) {
5900
- return /* @__PURE__ */ jsxs("div", {
7807
+ return /* @__PURE__ */ jsx(FallbackComponent, {
5901
7808
  ref,
5902
- children: [/* @__PURE__ */ jsx("p", {
5903
- children: "Component Not Found"
5904
- }), /* @__PURE__ */ jsx("pre", {
5905
- children: /* @__PURE__ */ jsx("code", {
5906
- children: JSON.stringify(elementData, null, 2)
5907
- })
5908
- })]
7809
+ text: "Component not found"
5909
7810
  });
5910
7811
  }
5911
7812
  return /* @__PURE__ */ createElement(Component, __spreadProps(__spreadValues({}, elementData.props), {
@@ -5916,24 +7817,52 @@ const ElementData = memo(forwardRef(function ElementData2({
5916
7817
  const ElementReference = memo(forwardRef(function ElementReference2({
5917
7818
  elementReference
5918
7819
  }, ref) {
5919
- return /* @__PURE__ */ jsxs("div", {
5920
- ref,
5921
- children: [/* @__PURE__ */ jsx("p", {
5922
- children: "Not Implemented"
5923
- }), /* @__PURE__ */ jsx("pre", {
5924
- children: /* @__PURE__ */ jsx("code", {
5925
- children: JSON.stringify(elementReference, null, 2)
5926
- })
5927
- })]
7820
+ var _a;
7821
+ const {
7822
+ error,
7823
+ data
7824
+ } = useQuery(gql`
7825
+ query ElementReferenceGlobalElement($id: ID!) {
7826
+ globalElement(id: $id) {
7827
+ id
7828
+ data
7829
+ }
7830
+ }
7831
+ `, {
7832
+ variables: {
7833
+ id: elementReference.value
7834
+ }
7835
+ });
7836
+ const globalElementData = (_a = data == null ? void 0 : data.globalElement) == null ? void 0 : _a.data;
7837
+ const elementReferenceDocument = useDocument(elementReference.key);
7838
+ if (error != null) {
7839
+ return /* @__PURE__ */ jsx(FallbackComponent, {
7840
+ ref,
7841
+ text: "Something went wrong!"
7842
+ });
7843
+ }
7844
+ if (globalElementData == null) {
7845
+ return /* @__PURE__ */ jsx(FallbackComponent, {
7846
+ ref,
7847
+ text: "This global component doesn't exist"
7848
+ });
7849
+ }
7850
+ return elementReferenceDocument != null ? /* @__PURE__ */ jsx(Document, {
7851
+ document: elementReferenceDocument,
7852
+ ref
7853
+ }) : /* @__PURE__ */ jsx(ElementData, {
7854
+ elementData: globalElementData,
7855
+ ref
5928
7856
  });
5929
7857
  }));
5930
- const Element$1 = memo(function Element2({
7858
+ const Element$1 = memo(forwardRef(function Element2({
5931
7859
  element
5932
- }) {
7860
+ }, ref) {
5933
7861
  const elementKey = element.key;
5934
7862
  const dispatch = useDispatch();
5935
7863
  const documentKey = useDocumentKey();
5936
7864
  const [handle, setHandle] = useState(null);
7865
+ useImperativeHandle(ref, () => handle, [handle]);
5937
7866
  useEffect(() => {
5938
7867
  if (documentKey == null)
5939
7868
  return;
@@ -5951,30 +7880,32 @@ const Element$1 = memo(function Element2({
5951
7880
  ref: setHandle,
5952
7881
  elementData: element
5953
7882
  }, elementKey);
5954
- });
5955
- const Document = memo(function Document2({
5956
- documentKey
5957
- }) {
5958
- const documentRootElement = useDocumentRootElement(documentKey);
5959
- if (documentRootElement == null) {
5960
- return /* @__PURE__ */ jsxs("div", {
5961
- children: [/* @__PURE__ */ jsx("p", {
5962
- children: "Document Not Found"
5963
- }), /* @__PURE__ */ jsx("pre", {
5964
- children: /* @__PURE__ */ jsx("code", {
5965
- children: JSON.stringify({
5966
- documentKey
5967
- }, null, 2)
5968
- })
5969
- })]
5970
- });
5971
- }
7883
+ }));
7884
+ const Document = memo(forwardRef(function Document2({
7885
+ document
7886
+ }, ref) {
5972
7887
  return /* @__PURE__ */ jsx(DocumentContext.Provider, {
5973
- value: documentKey,
7888
+ value: document.key,
5974
7889
  children: /* @__PURE__ */ jsx(Element$1, {
5975
- element: documentRootElement
7890
+ ref,
7891
+ element: document.rootElement
5976
7892
  })
5977
7893
  });
5978
- });
5979
- export { getDocumentRootElement$1 as A, Box as B, Carousel as C, Document as D, Element$1 as E, createDocument as F, reducer$3 as G, reducer$2 as H, ImageComponent as I, reducer$1 as J, getComponentsMeta as K, getComponentPropControllerDescriptors$1 as L, getElementPropControllerDescriptors as M, Navigation as N, RuntimeProvider as R, SocialLinks as S, Text as T, ReactRuntime as a, Button as b, Countdown as c, Divider as d, Embed as e, Root as f, registerComponent$a as g, DEFAULT_BOX_ANIMATE_TYPE as h, DEFAULT_BOX_ANIMATE_DELAY as i, DEFAULT_BOX_ANIMATE_DURATION as j, DEFAULT_ITEM_ANIMATE_TYPE as k, DEFAULT_ITEM_ANIMATE_DELAY as l, DEFAULT_ITEM_ANIMATE_DURATION as m, DEFAULT_ITEM_STAGGER_DURATION as n, cssMediaRules as o, cssWidth as p, cssMargin as q, registerBuiltinComponents as r, cssPadding as s, cssBorder as t, useIsInBuilder as u, cssBorderRadius as v, cssBoxShadow as w, cssGridItem as x, cssTextStyle as y, getInitialState$3 as z };
7894
+ }));
7895
+ const DocumentReference = memo(forwardRef(function DocumentReference2({
7896
+ documentReference
7897
+ }, ref) {
7898
+ const document = useDocument(documentReference.key);
7899
+ if (document == null) {
7900
+ return /* @__PURE__ */ jsx(FallbackComponent, {
7901
+ ref,
7902
+ text: "Document not found"
7903
+ });
7904
+ }
7905
+ return /* @__PURE__ */ jsx(Document, {
7906
+ ref,
7907
+ document
7908
+ });
7909
+ }));
7910
+ export { useBackgrounds as A, Box as B, Carousel as C, DocumentReference as D, Element$1 as E, Form as F, useBorder as G, useBoxShadow as H, ImageComponent as I, useColor as J, useFile as K, useMediaQuery as L, usePage as M, Navigation as N, useTable as O, PageProvider as P, MakeswiftClient as Q, RuntimeProvider as R, SocialLinks as S, Text as T, ReactRuntime as a, usePageId as b, Button$1 as c, Countdown as d, Divider as e, Embed as f, Root as g, registerComponent$c as h, DEFAULT_BOX_ANIMATE_TYPE as i, DEFAULT_BOX_ANIMATE_DELAY as j, DEFAULT_BOX_ANIMATE_DURATION as k, DEFAULT_ITEM_ANIMATE_TYPE as l, DEFAULT_ITEM_ANIMATE_DELAY as m, DEFAULT_ITEM_ANIMATE_DURATION as n, DEFAULT_ITEM_STAGGER_DURATION as o, cssMediaRules as p, cssWidth as q, registerBuiltinComponents as r, cssMargin as s, cssPadding as t, useIsInBuilder as u, cssBorder as v, cssBorderRadius as w, cssBoxShadow as x, cssGridItem as y, cssTextStyle as z };
5980
7911
  //# sourceMappingURL=react.es2.js.map