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