@strapi/admin 4.4.0 → 4.4.2
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/admin/src/content-manager/components/DynamicTable/TableRows/index.js +20 -15
- package/admin/src/content-manager/components/SelectWrapper/index.js +1 -1
- package/admin/src/content-manager/pages/ListView/index.js +24 -15
- package/admin/src/content-manager/pages/ListView/utils/buildQueryString.js +14 -2
- package/admin/src/pages/SettingsPage/pages/Users/ListPage/ModalForm/index.js +2 -2
- package/build/1856.d8f13391.chunk.js +173 -0
- package/build/{2077.c935ee42.chunk.js → 2077.31a2d91e.chunk.js} +4 -4
- package/build/{2912.a015078a.chunk.js → 2912.ab68a736.chunk.js} +8 -8
- package/build/4715.44b1ef9b.chunk.js +386 -0
- package/build/{4982.05eda880.chunk.js → 4982.c2a311b7.chunk.js} +9 -9
- package/build/{524.40377968.chunk.js → 524.8a540ac1.chunk.js} +13 -13
- package/build/{7841.91f793dc.chunk.js → 7841.4b67af3f.chunk.js} +8 -8
- package/build/{7866.1201afbd.chunk.js → 7866.5fbeb7e5.chunk.js} +10 -10
- package/build/{8380.8789ff76.chunk.js → 8380.9b53a31d.chunk.js} +7 -7
- package/build/{8549.133c4473.chunk.js → 8549.cf10b5d1.chunk.js} +4 -4
- package/build/{8773.c06c24c0.chunk.js → 8773.51992277.chunk.js} +7 -7
- package/build/{9066.08049eb1.chunk.js → 9066.26faf397.chunk.js} +4 -4
- package/build/{9166.037339e0.chunk.js → 9166.8fcb3019.chunk.js} +5 -5
- package/build/{9420.43a86e7c.chunk.js → 9420.0fe11290.chunk.js} +6 -6
- package/build/{Admin-authenticatedApp.3a7e3b2c.chunk.js → Admin-authenticatedApp.45cb8bc8.chunk.js} +1 -1
- package/build/{admin-users.97a08630.chunk.js → admin-users.d71f198a.chunk.js} +3 -3
- package/build/{content-manager.66c251d0.chunk.js → content-manager.8bddf2e6.chunk.js} +31 -31
- package/build/{content-type-builder.cc76b669.chunk.js → content-type-builder.a6e29716.chunk.js} +9 -9
- package/build/{email-settings-page.64037147.chunk.js → email-settings-page.bfe6227f.chunk.js} +4 -4
- package/build/{i18n-settings-page.0b73785d.chunk.js → i18n-settings-page.18166125.chunk.js} +4 -4
- package/build/index.html +1 -1
- package/build/main.6650d2e7.js +9338 -0
- package/build/{runtime~main.813e8901.js → runtime~main.0338967e.js} +1 -1
- package/build/{upload-settings.80ff0974.chunk.js → upload-settings.3d613216.chunk.js} +4 -4
- package/build/{users-advanced-settings-page.a02f4806.chunk.js → users-advanced-settings-page.f4051d92.chunk.js} +4 -4
- package/build/{webhook-list-page.2775a683.chunk.js → webhook-list-page.a712ae40.chunk.js} +4 -4
- package/ee/server/controllers/user.js +5 -3
- package/package.json +8 -9
- package/server/controllers/admin.js +3 -0
- package/server/controllers/user.js +3 -2
- package/server/services/api-token.js +0 -1
- package/server/strategies/api-token.js +3 -2
- package/utils/get-custom-app-config-file.js +5 -0
- package/build/1856.47226450.chunk.js +0 -173
- package/build/4715.58cd558f.chunk.js +0 -387
- package/build/main.dedec9ab.js +0 -9337
|
@@ -1,20 +1,26 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
|
+
import { Link, useHistory } from 'react-router-dom';
|
|
4
|
+
import { useIntl } from 'react-intl';
|
|
5
|
+
|
|
3
6
|
import { BaseCheckbox } from '@strapi/design-system/BaseCheckbox';
|
|
4
7
|
import { Box } from '@strapi/design-system/Box';
|
|
5
8
|
import { IconButton } from '@strapi/design-system/IconButton';
|
|
6
9
|
import { Tbody, Td, Tr } from '@strapi/design-system/Table';
|
|
7
10
|
import { Flex } from '@strapi/design-system/Flex';
|
|
11
|
+
|
|
8
12
|
import Trash from '@strapi/icons/Trash';
|
|
9
13
|
import Duplicate from '@strapi/icons/Duplicate';
|
|
10
14
|
import Pencil from '@strapi/icons/Pencil';
|
|
15
|
+
|
|
11
16
|
import { useTracking, stopPropagation, onRowClick } from '@strapi/helper-plugin';
|
|
12
|
-
|
|
13
|
-
import { useIntl } from 'react-intl';
|
|
17
|
+
|
|
14
18
|
import { usePluginsQueryParams } from '../../../hooks';
|
|
15
|
-
|
|
19
|
+
|
|
16
20
|
import { getFullName } from '../../../../utils';
|
|
17
21
|
|
|
22
|
+
import CellContent from '../CellContent';
|
|
23
|
+
|
|
18
24
|
const TableRows = ({
|
|
19
25
|
canCreate,
|
|
20
26
|
canDelete,
|
|
@@ -100,13 +106,14 @@ const TableRows = ({
|
|
|
100
106
|
<Td>
|
|
101
107
|
<Flex justifyContent="end" {...stopPropagation}>
|
|
102
108
|
<IconButton
|
|
109
|
+
forwardedAs={Link}
|
|
103
110
|
onClick={() => {
|
|
104
111
|
trackUsage('willEditEntryFromButton');
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
112
|
+
}}
|
|
113
|
+
to={{
|
|
114
|
+
pathname: `${pathname}/${data.id}`,
|
|
115
|
+
state: { from: pathname },
|
|
116
|
+
search: pluginsQueryParams,
|
|
110
117
|
}}
|
|
111
118
|
label={formatMessage(
|
|
112
119
|
{ id: 'app.component.table.edit', defaultMessage: 'Edit {target}' },
|
|
@@ -119,12 +126,11 @@ const TableRows = ({
|
|
|
119
126
|
{canCreate && (
|
|
120
127
|
<Box paddingLeft={1}>
|
|
121
128
|
<IconButton
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
});
|
|
129
|
+
forwardedAs={Link}
|
|
130
|
+
to={{
|
|
131
|
+
pathname: `${pathname}/create/clone/${data.id}`,
|
|
132
|
+
state: { from: pathname },
|
|
133
|
+
search: pluginsQueryParams,
|
|
128
134
|
}}
|
|
129
135
|
label={formatMessage(
|
|
130
136
|
{
|
|
@@ -144,7 +150,6 @@ const TableRows = ({
|
|
|
144
150
|
<IconButton
|
|
145
151
|
onClick={() => {
|
|
146
152
|
trackUsage('willDeleteEntryFromList');
|
|
147
|
-
|
|
148
153
|
onClickDelete(data.id);
|
|
149
154
|
}}
|
|
150
155
|
label={formatMessage(
|
|
@@ -129,7 +129,7 @@ function SelectWrapper({
|
|
|
129
129
|
const params = { limit: state.limit, ...defaultParams, start: state.start };
|
|
130
130
|
|
|
131
131
|
if (state.contains) {
|
|
132
|
-
params[`filters[${containsKey}][$
|
|
132
|
+
params[`filters[${containsKey}][$containsi]`] = state.contains;
|
|
133
133
|
}
|
|
134
134
|
|
|
135
135
|
try {
|
|
@@ -5,9 +5,11 @@ import { connect } from 'react-redux';
|
|
|
5
5
|
import isEqual from 'react-fast-compare';
|
|
6
6
|
import { bindActionCreators, compose } from 'redux';
|
|
7
7
|
import { useIntl } from 'react-intl';
|
|
8
|
-
import { useHistory, useLocation } from 'react-router-dom';
|
|
8
|
+
import { useHistory, useLocation, Link as ReactRouterLink } from 'react-router-dom';
|
|
9
9
|
import get from 'lodash/get';
|
|
10
10
|
import { stringify } from 'qs';
|
|
11
|
+
import axios from 'axios';
|
|
12
|
+
|
|
11
13
|
import {
|
|
12
14
|
NoPermissions,
|
|
13
15
|
CheckPermissions,
|
|
@@ -19,31 +21,37 @@ import {
|
|
|
19
21
|
useTracking,
|
|
20
22
|
Link,
|
|
21
23
|
} from '@strapi/helper-plugin';
|
|
24
|
+
|
|
22
25
|
import { IconButton } from '@strapi/design-system/IconButton';
|
|
23
26
|
import { Main } from '@strapi/design-system/Main';
|
|
24
27
|
import { Box } from '@strapi/design-system/Box';
|
|
25
28
|
import { ActionLayout, ContentLayout, HeaderLayout } from '@strapi/design-system/Layout';
|
|
26
29
|
import { useNotifyAT } from '@strapi/design-system/LiveRegions';
|
|
27
30
|
import { Button } from '@strapi/design-system/Button';
|
|
31
|
+
|
|
28
32
|
import ArrowLeft from '@strapi/icons/ArrowLeft';
|
|
29
33
|
import Plus from '@strapi/icons/Plus';
|
|
30
34
|
import Cog from '@strapi/icons/Cog';
|
|
31
|
-
|
|
35
|
+
|
|
32
36
|
import { axiosInstance } from '../../../core/utils';
|
|
33
|
-
|
|
37
|
+
|
|
34
38
|
import DynamicTable from '../../components/DynamicTable';
|
|
39
|
+
import AttributeFilter from '../../components/AttributeFilter';
|
|
40
|
+
import { InjectionZone } from '../../../shared/components';
|
|
41
|
+
|
|
35
42
|
import permissions from '../../../permissions';
|
|
43
|
+
|
|
36
44
|
import { getRequestUrl, getTrad } from '../../utils';
|
|
45
|
+
|
|
37
46
|
import FieldPicker from './FieldPicker';
|
|
38
47
|
import PaginationFooter from './PaginationFooter';
|
|
39
48
|
import { getData, getDataSucceeded, onChangeListHeaders, onResetListHeaders } from './actions';
|
|
40
49
|
import makeSelectListView from './selectors';
|
|
41
50
|
import { buildQueryString } from './utils';
|
|
42
|
-
import AttributeFilter from '../../components/AttributeFilter';
|
|
43
51
|
|
|
44
52
|
const cmPermissions = permissions.contentManager;
|
|
45
53
|
|
|
46
|
-
const
|
|
54
|
+
const ConfigureLayoutBox = styled(Box)`
|
|
47
55
|
svg {
|
|
48
56
|
path {
|
|
49
57
|
fill: ${({ theme }) => theme.colors.neutral900};
|
|
@@ -51,7 +59,6 @@ const IconButtonCustom = styled(IconButton)`
|
|
|
51
59
|
}
|
|
52
60
|
`;
|
|
53
61
|
|
|
54
|
-
/* eslint-disable react/no-array-index-key */
|
|
55
62
|
function ListView({
|
|
56
63
|
canCreate,
|
|
57
64
|
canDelete,
|
|
@@ -240,16 +247,18 @@ function ListView({
|
|
|
240
247
|
canCreate ? (
|
|
241
248
|
<Button
|
|
242
249
|
{...props}
|
|
250
|
+
forwardedAs={ReactRouterLink}
|
|
243
251
|
onClick={() => {
|
|
244
252
|
const trackerProperty = hasDraftAndPublish ? { status: 'draft' } : {};
|
|
245
253
|
|
|
246
254
|
trackUsageRef.current('willCreateEntry', trackerProperty);
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
255
|
+
}}
|
|
256
|
+
to={{
|
|
257
|
+
pathname: `${pathname}/create`,
|
|
258
|
+
search: query.plugins ? pluginsQueryParams : '',
|
|
251
259
|
}}
|
|
252
260
|
startIcon={<Plus />}
|
|
261
|
+
style={{ textDecoration: 'none' }}
|
|
253
262
|
>
|
|
254
263
|
{formatMessage({
|
|
255
264
|
id: getTrad('HeaderLayout.button.label-add-entry'),
|
|
@@ -283,20 +292,20 @@ function ListView({
|
|
|
283
292
|
<InjectionZone area="contentManager.listView.actions" />
|
|
284
293
|
<FieldPicker layout={layout} />
|
|
285
294
|
<CheckPermissions permissions={cmPermissions.collectionTypesConfigurations}>
|
|
286
|
-
<
|
|
287
|
-
<
|
|
295
|
+
<ConfigureLayoutBox paddingTop={1} paddingBottom={1}>
|
|
296
|
+
<IconButton
|
|
288
297
|
onClick={() => {
|
|
289
298
|
trackUsage('willEditListLayout');
|
|
290
|
-
|
|
291
|
-
push({ pathname: `${slug}/configurations/list`, search: pluginsQueryParams });
|
|
292
299
|
}}
|
|
300
|
+
forwardedAs={ReactRouterLink}
|
|
301
|
+
to={{ pathname: `${slug}/configurations/list`, search: pluginsQueryParams }}
|
|
293
302
|
icon={<Cog />}
|
|
294
303
|
label={formatMessage({
|
|
295
304
|
id: 'app.links.configure-view',
|
|
296
305
|
defaultMessage: 'Configure the view',
|
|
297
306
|
})}
|
|
298
307
|
/>
|
|
299
|
-
</
|
|
308
|
+
</ConfigureLayoutBox>
|
|
300
309
|
</CheckPermissions>
|
|
301
310
|
</>
|
|
302
311
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { stringify } from 'qs';
|
|
2
|
+
import set from 'lodash/set';
|
|
2
3
|
import createPluginsFilter from './createPluginsFilter';
|
|
3
4
|
|
|
4
5
|
/**
|
|
@@ -12,12 +13,23 @@ const buildQueryString = (queryParams = {}) => {
|
|
|
12
13
|
* Extracting pluginOptions from the query since we don't want them to be part
|
|
13
14
|
* of the url
|
|
14
15
|
*/
|
|
15
|
-
const {
|
|
16
|
+
const {
|
|
17
|
+
plugins: _,
|
|
18
|
+
_q: query,
|
|
19
|
+
...otherQueryParams
|
|
20
|
+
} = {
|
|
16
21
|
...queryParams,
|
|
17
22
|
...createPluginsFilter(queryParams.plugins),
|
|
18
23
|
};
|
|
19
24
|
|
|
20
|
-
|
|
25
|
+
if (query) {
|
|
26
|
+
set(otherQueryParams, `_q`, encodeURIComponent(query));
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
return `${stringify(otherQueryParams, {
|
|
30
|
+
encode: false,
|
|
31
|
+
addQueryPrefix: true,
|
|
32
|
+
})}`;
|
|
21
33
|
};
|
|
22
34
|
|
|
23
35
|
export default buildQueryString;
|
|
@@ -69,8 +69,8 @@ const ModalForm = ({ queryName, onToggle }) => {
|
|
|
69
69
|
} catch (err) {
|
|
70
70
|
unlockApp();
|
|
71
71
|
|
|
72
|
-
if (err?.response?.data.message === 'Email already taken') {
|
|
73
|
-
setErrors({ email: err.response.data.message });
|
|
72
|
+
if (err?.response?.data?.error.message === 'Email already taken') {
|
|
73
|
+
setErrors({ email: err.response.data.error.message });
|
|
74
74
|
}
|
|
75
75
|
}
|
|
76
76
|
};
|
|
@@ -0,0 +1,173 @@
|
|
|
1
|
+
(self.webpackChunk_strapi_admin=self.webpackChunk_strapi_admin||[]).push([[1856],{11856:(Y,un,N)=>{"use strict";Y.exports=N(34796)},34796:function(Y,un,N){(function(en,$){Y.exports=$(N(32735),N(19615))})(this,function(en,$){return function(r){var f={};function e(i){if(f[i])return f[i].exports;var o=f[i]={i,l:!1,exports:{}};return r[i].call(o.exports,o,o.exports,e),o.l=!0,o.exports}return e.m=r,e.c=f,e.d=function(i,o,p){e.o(i,o)||Object.defineProperty(i,o,{enumerable:!0,get:p})},e.r=function(i){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(i,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(i,"__esModule",{value:!0})},e.t=function(i,o){if(1&o&&(i=e(i)),8&o||4&o&&typeof i=="object"&&i&&i.__esModule)return i;var p=Object.create(null);if(e.r(p),Object.defineProperty(p,"default",{enumerable:!0,value:i}),2&o&&typeof i!="string")for(var c in i)e.d(p,c,function(d){return i[d]}.bind(null,c));return p},e.n=function(i){var o=i&&i.__esModule?function(){return i.default}:function(){return i};return e.d(o,"a",o),o},e.o=function(i,o){return Object.prototype.hasOwnProperty.call(i,o)},e.p="",e(e.s=95)}({0:function(r,f,e){r.exports=e(19)()},1:function(r,f){r.exports=en},10:function(r,f,e){var i=e(25),o=e(26),p=e(22),c=e(27);r.exports=function(d,a){return i(d)||o(d,a)||p(d,a)||c()},r.exports.default=r.exports,r.exports.__esModule=!0},13:function(r,f){function e(i){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?(r.exports=e=function(o){return typeof o},r.exports.default=r.exports,r.exports.__esModule=!0):(r.exports=e=function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},r.exports.default=r.exports,r.exports.__esModule=!0),e(i)}r.exports=e,r.exports.default=r.exports,r.exports.__esModule=!0},19:function(r,f,e){"use strict";var i=e(20);function o(){}function p(){}p.resetWarningCache=o,r.exports=function(){function c(b,g,S,u,l,w){if(w!==i){var m=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw m.name="Invariant Violation",m}}function d(){return c}c.isRequired=c;var a={array:c,bool:c,func:c,number:c,object:c,string:c,symbol:c,any:c,arrayOf:d,element:c,elementType:c,instanceOf:d,node:c,objectOf:d,oneOf:d,oneOfType:d,shape:d,exact:d,checkPropTypes:p,resetWarningCache:o};return a.PropTypes=a,a}},2:function(r,f){r.exports=$},20:function(r,f,e){"use strict";r.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},21:function(r,f){r.exports=function(e,i){(i==null||i>e.length)&&(i=e.length);for(var o=0,p=new Array(i);o<i;o++)p[o]=e[o];return p},r.exports.default=r.exports,r.exports.__esModule=!0},22:function(r,f,e){var i=e(21);r.exports=function(o,p){if(o){if(typeof o=="string")return i(o,p);var c=Object.prototype.toString.call(o).slice(8,-1);return c==="Object"&&o.constructor&&(c=o.constructor.name),c==="Map"||c==="Set"?Array.from(o):c==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(c)?i(o,p):void 0}},r.exports.default=r.exports,r.exports.__esModule=!0},24:function(r,f){r.exports=function(e,i){if(e==null)return{};var o,p,c={},d=Object.keys(e);for(p=0;p<d.length;p++)o=d[p],i.indexOf(o)>=0||(c[o]=e[o]);return c},r.exports.default=r.exports,r.exports.__esModule=!0},25:function(r,f){r.exports=function(e){if(Array.isArray(e))return e},r.exports.default=r.exports,r.exports.__esModule=!0},26:function(r,f){r.exports=function(e,i){var o=e==null?null:typeof Symbol!="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(o!=null){var p,c,d=[],a=!0,b=!1;try{for(o=o.call(e);!(a=(p=o.next()).done)&&(d.push(p.value),!i||d.length!==i);a=!0);}catch(g){b=!0,c=g}finally{try{a||o.return==null||o.return()}finally{if(b)throw c}}return d}},r.exports.default=r.exports,r.exports.__esModule=!0},27:function(r,f){r.exports=function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
2
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)},r.exports.default=r.exports,r.exports.__esModule=!0},3:function(r,f){r.exports=function(e,i){return i||(i=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(i)}}))},r.exports.default=r.exports,r.exports.__esModule=!0},4:function(r,f,e){var i=e(24);r.exports=function(o,p){if(o==null)return{};var c,d,a=i(o,p);if(Object.getOwnPropertySymbols){var b=Object.getOwnPropertySymbols(o);for(d=0;d<b.length;d++)c=b[d],p.indexOf(c)>=0||Object.prototype.propertyIsEnumerable.call(o,c)&&(a[c]=o[c])}return a},r.exports.default=r.exports,r.exports.__esModule=!0},46:function(r,f,e){"use strict";e.r(f),e.d(f,"Grid",function(){return E}),e.d(f,"GridItem",function(){return I});var i,o=e(5),p=e.n(o),c=e(4),d=e.n(c),a=e(3),b=e.n(a),g=e(1),S=e.n(g),u=e(2),l=e.n(u),w=e(0),m=e.n(w),O=Object(g.createContext)({gap:0,gridCols:12}),T=e(6),n=e(7),t=["gap","gridCols"],s=l()(T.Box)(i||(i=b()([`
|
|
3
|
+
display: grid;
|
|
4
|
+
grid-template-columns: repeat(`,`, 1fr);
|
|
5
|
+
`,`
|
|
6
|
+
`])),function(v){return v.gridCols},function(v){var A=v.theme,j=v.gap;return Object(n.a)("gap",j,A)}),E=function(v){var A=v.gap,j=v.gridCols,W=d()(v,t);return S.a.createElement(O.Provider,{value:{gap:A,gridCols:j}},S.a.createElement(s,p()({gap:A,gridCols:j},W)))};E.defaultProps={gap:0,gridCols:12},E.propTypes={gap:m.a.oneOfType([m.a.number,m.a.arrayOf(m.a.number)]),gridCols:m.a.number};var R,q=["col","xs","s"],G=l.a.div(R||(R=b()([`
|
|
7
|
+
grid-column: span `,`;
|
|
8
|
+
max-width: 100%;
|
|
9
|
+
|
|
10
|
+
`,` {
|
|
11
|
+
grid-column: span `,`;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
`,` {
|
|
15
|
+
grid-column: span `,`;
|
|
16
|
+
}
|
|
17
|
+
`])),function(v){return v.col},function(v){return v.theme.mediaQueries.tablet},function(v){return v.s},function(v){return v.theme.mediaQueries.mobile},function(v){return v.xs}),I=function(v){var A=v.col,j=v.xs,W=v.s,L=d()(v,q),k=Object(g.useContext)(O),J=k.gap,K=k.gridCols;return S.a.createElement(G,{gap:J,gridCols:K,col:A,xs:j,s:W},S.a.createElement(T.Box,L))};I.defaultProps={col:void 0,s:void 0,xs:void 0},I.propTypes={col:m.a.number,s:m.a.number,xs:m.a.number}},5:function(r,f){function e(){return r.exports=e=Object.assign||function(i){for(var o=1;o<arguments.length;o++){var p=arguments[o];for(var c in p)Object.prototype.hasOwnProperty.call(p,c)&&(i[c]=p[c])}return i},r.exports.default=r.exports,r.exports.__esModule=!0,e.apply(this,arguments)}r.exports=e,r.exports.default=r.exports,r.exports.__esModule=!0},6:function(r,f,e){"use strict";e.r(f),e.d(f,"Box",function(){return T});var i,o=e(3),p=e.n(o),c=e(2),d=e.n(c),a=e(7),b=e(1),g=e.n(b),S=e(0),u=e.n(S),l=function(n){return g.a.createElement("div",n)},w={background:void 0,borderColor:void 0,color:void 0,hiddenS:!1,hiddenXS:!1,padding:void 0,paddingTop:void 0,paddingRight:void 0,paddingBottom:void 0,paddingLeft:void 0,hasRadius:!1,shadow:void 0,children:null,shrink:void 0,grow:void 0,basis:void 0,flex:void 0,_hover:function(){}},m={_hover:u.a.func,background:u.a.string,basis:u.a.oneOfType([u.a.string,u.a.string]),borderColor:u.a.string,children:u.a.oneOfType([u.a.node,u.a.string]),color:u.a.string,flex:u.a.oneOfType([u.a.string,u.a.string]),grow:u.a.oneOfType([u.a.string,u.a.string]),hasRadius:u.a.bool,hiddenS:u.a.bool,hiddenXS:u.a.bool,padding:u.a.oneOfType([u.a.number,u.a.arrayOf(u.a.number)]),paddingBottom:u.a.oneOfType([u.a.number,u.a.arrayOf(u.a.number)]),paddingLeft:u.a.oneOfType([u.a.number,u.a.arrayOf(u.a.number)]),paddingRight:u.a.oneOfType([u.a.number,u.a.arrayOf(u.a.number)]),paddingTop:u.a.oneOfType([u.a.number,u.a.arrayOf(u.a.number)]),shadow:u.a.string,shrink:u.a.oneOfType([u.a.string,u.a.string])};l.defaultProps=w,l.propTypes=m;var O={color:!0},T=d.a.div.withConfig({shouldForwardProp:function(n,t){return!O[n]&&t(n)}})(i||(i=p()([`
|
|
18
|
+
// Font
|
|
19
|
+
font-size: `,`;
|
|
20
|
+
|
|
21
|
+
// Colors
|
|
22
|
+
background: `,`;
|
|
23
|
+
color: `,`;
|
|
24
|
+
|
|
25
|
+
// Spaces
|
|
26
|
+
`,`
|
|
27
|
+
`,`
|
|
28
|
+
`,`
|
|
29
|
+
`,`
|
|
30
|
+
`,`
|
|
31
|
+
`,`
|
|
32
|
+
`,`
|
|
33
|
+
`,`
|
|
34
|
+
`,`
|
|
35
|
+
|
|
36
|
+
// Responsive hiding
|
|
37
|
+
`,`
|
|
38
|
+
`,`
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
// Borders
|
|
42
|
+
border-radius: `,`;
|
|
43
|
+
border-style: `,`;
|
|
44
|
+
border-width: `,`;
|
|
45
|
+
border-color: `,`;
|
|
46
|
+
border: `,`;
|
|
47
|
+
|
|
48
|
+
// Shadows
|
|
49
|
+
box-shadow: `,`;
|
|
50
|
+
|
|
51
|
+
// Handlers
|
|
52
|
+
pointer-events: `,`;
|
|
53
|
+
&:hover {
|
|
54
|
+
`,`
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
// Display
|
|
58
|
+
display: `,`;
|
|
59
|
+
|
|
60
|
+
// Position
|
|
61
|
+
position: `,`;
|
|
62
|
+
left: `,`;
|
|
63
|
+
right: `,`;
|
|
64
|
+
top: `,`;
|
|
65
|
+
bottom: `,`;
|
|
66
|
+
z-index: `,`;
|
|
67
|
+
overflow: `,`;
|
|
68
|
+
cursor: `,`;
|
|
69
|
+
|
|
70
|
+
// Size
|
|
71
|
+
width: `,`;
|
|
72
|
+
max-width: `,`;
|
|
73
|
+
min-width: `,`;
|
|
74
|
+
height: `,`;
|
|
75
|
+
max-height: `,`;
|
|
76
|
+
min-height: `,`;
|
|
77
|
+
|
|
78
|
+
// Animation
|
|
79
|
+
transition: `,`;
|
|
80
|
+
transform: `,`;
|
|
81
|
+
animation: `,`;
|
|
82
|
+
|
|
83
|
+
//Flexbox children props
|
|
84
|
+
flex-shrink: `,`;
|
|
85
|
+
flex-grow: `,`;
|
|
86
|
+
flex-basis: `,`;
|
|
87
|
+
flex: `,`;
|
|
88
|
+
|
|
89
|
+
// Text
|
|
90
|
+
text-align: `,`;
|
|
91
|
+
text-transform: `,`;
|
|
92
|
+
line-height: `,`;
|
|
93
|
+
|
|
94
|
+
// Cursor
|
|
95
|
+
cursor: `,`;
|
|
96
|
+
`])),function(n){var t=n.fontSize;return n.theme.fontSizes[t]||t},function(n){var t=n.theme,s=n.background;return t.colors[s]},function(n){var t=n.theme,s=n.color;return t.colors[s]},function(n){var t=n.theme,s=n.padding;return Object(a.a)("padding",s,t)},function(n){var t=n.theme,s=n.paddingTop;return Object(a.a)("padding-top",s,t)},function(n){var t=n.theme,s=n.paddingRight;return Object(a.a)("padding-right",s,t)},function(n){var t=n.theme,s=n.paddingBottom;return Object(a.a)("padding-bottom",s,t)},function(n){var t=n.theme,s=n.paddingLeft;return Object(a.a)("padding-left",s,t)},function(n){var t=n.theme,s=n.marginLeft;return Object(a.a)("margin-left",s,t)},function(n){var t=n.theme,s=n.marginRight;return Object(a.a)("margin-right",s,t)},function(n){var t=n.theme,s=n.marginTop;return Object(a.a)("margin-top",s,t)},function(n){var t=n.theme,s=n.marginBottom;return Object(a.a)("margin-bottom",s,t)},function(n){var t=n.theme;return n.hiddenS?"".concat(t.mediaQueries.tablet," { display: none; }"):void 0},function(n){var t=n.theme;return n.hiddenXS?"".concat(t.mediaQueries.mobile," { display: none; }"):void 0},function(n){var t=n.theme,s=n.hasRadius,E=n.borderRadius;return s?t.borderRadius:E},function(n){return n.borderStyle},function(n){return n.borderWidth},function(n){var t=n.borderColor;return n.theme.colors[t]},function(n){var t=n.theme,s=n.borderColor,E=n.borderStyle,R=n.borderWidth;if(s&&!E&&!R)return"1px solid ".concat(t.colors[s])},function(n){var t=n.theme,s=n.shadow;return t.shadows[s]},function(n){return n.pointerEvents},function(n){var t=n._hover,s=n.theme;return t?t(s):void 0},function(n){return n.display},function(n){return n.position},function(n){var t=n.left;return n.theme.spaces[t]||t},function(n){var t=n.right;return n.theme.spaces[t]||t},function(n){var t=n.top;return n.theme.spaces[t]||t},function(n){var t=n.bottom;return n.theme.spaces[t]||t},function(n){return n.zIndex},function(n){return n.overflow},function(n){return n.cursor},function(n){var t=n.width;return n.theme.spaces[t]||t},function(n){var t=n.maxWidth;return n.theme.spaces[t]||t},function(n){var t=n.minWidth;return n.theme.spaces[t]||t},function(n){var t=n.height;return n.theme.spaces[t]||t},function(n){var t=n.maxHeight;return n.theme.spaces[t]||t},function(n){var t=n.minHeight;return n.theme.spaces[t]||t},function(n){return n.transition},function(n){return n.transform},function(n){return n.animation},function(n){return n.shrink},function(n){return n.grow},function(n){return n.basis},function(n){return n.flex},function(n){return n.textAlign},function(n){return n.textTransform},function(n){return n.lineHeight},function(n){return n.cursor});T.defaultProps=w,T.propTypes=m},7:function(r,f,e){"use strict";var i=e(10),o=e.n(i),p=e(13),c=e.n(p);f.a=function(d,a,b){var g=a;if(Array.isArray(a)||c()(a)!=="object"||(g=[a==null?void 0:a.desktop,a==null?void 0:a.tablet,a==null?void 0:a.mobile]),g!==void 0){if(Array.isArray(g)){var S=g,u=o()(S,3),l=u[0],w=u[1],m=u[2],O="".concat(d,": ").concat(b.spaces[l],";");return w!==void 0&&(O+="".concat(b.mediaQueries.tablet,`{
|
|
97
|
+
`).concat(d,": ").concat(b.spaces[w],`;
|
|
98
|
+
}`)),m!==void 0&&(O+="".concat(b.mediaQueries.mobile,`{
|
|
99
|
+
`).concat(d,": ").concat(b.spaces[m],`;
|
|
100
|
+
}`)),O}var T=b.spaces[g]||g;return"".concat(d,": ").concat(T,";")}}},8:function(r,f,e){"use strict";e.r(f),e.d(f,"Typography",function(){return T});var i,o=e(3),p=e.n(o),c=e(2),d=e.n(c),a=["alpha","beta","delta","epsilon","omega","pi","sigma"],b=e(1),g=e.n(b),S=e(0),u=e.n(S),l=function(n){return g.a.createElement("div",n)},w={ellipsis:!1,fontWeight:void 0,fontSize:void 0,lineHeight:void 0,textColor:void 0,textTransform:void 0,variant:"omega"},m={ellipsis:u.a.bool,fontSize:u.a.oneOfType([u.a.number,u.a.string]),fontWeight:u.a.string,lineHeight:u.a.oneOfType([u.a.number,u.a.string]),textColor:u.a.string,textTransform:u.a.string,variant:u.a.oneOf(a)};l.defaultProps=w,l.propTypes=m;var O={fontSize:!0,fontWeight:!0},T=d.a.span.withConfig({shouldForwardProp:function(n,t){return!O[n]&&t(n)}})(i||(i=p()([`
|
|
101
|
+
font-weight: `,`;
|
|
102
|
+
font-size: `,`;
|
|
103
|
+
line-height: `,`;
|
|
104
|
+
color: `,`;
|
|
105
|
+
text-transform: `,`;
|
|
106
|
+
`,`
|
|
107
|
+
`,`
|
|
108
|
+
`])),function(n){var t=n.theme,s=n.fontWeight;return t.fontWeights[s]},function(n){var t=n.theme,s=n.fontSize;return t.fontSizes[s]},function(n){var t=n.theme,s=n.lineHeight;return t.lineHeights[s]},function(n){var t=n.theme,s=n.textColor;return t.colors[s||"neutral800"]},function(n){return n.textTransform},function(n){return n.ellipsis&&`
|
|
109
|
+
display: block;
|
|
110
|
+
white-space: nowrap;
|
|
111
|
+
overflow: hidden;
|
|
112
|
+
text-overflow: ellipsis;
|
|
113
|
+
`},function(n){var t=n.variant,s=n.theme;switch(t){case"alpha":return`
|
|
114
|
+
font-weight: `.concat(s.fontWeights.bold,`;
|
|
115
|
+
font-size: `).concat(s.fontSizes[5],`;
|
|
116
|
+
line-height: `).concat(s.lineHeights[2],`;
|
|
117
|
+
`);case"beta":return`
|
|
118
|
+
font-weight: `.concat(s.fontWeights.bold,`;
|
|
119
|
+
font-size: `).concat(s.fontSizes[4],`;
|
|
120
|
+
line-height: `).concat(s.lineHeights[1],`;
|
|
121
|
+
`);case"delta":return`
|
|
122
|
+
font-weight: `.concat(s.fontWeights.semiBold,`;
|
|
123
|
+
font-size: `).concat(s.fontSizes[3],`;
|
|
124
|
+
line-height: `).concat(s.lineHeights[2],`;
|
|
125
|
+
`);case"epsilon":return`
|
|
126
|
+
font-size: `.concat(s.fontSizes[3],`;
|
|
127
|
+
line-height: `).concat(s.lineHeights[6],`;
|
|
128
|
+
`);case"omega":return`
|
|
129
|
+
font-size: `.concat(s.fontSizes[2],`;
|
|
130
|
+
line-height: `).concat(s.lineHeights[4],`;
|
|
131
|
+
`);case"pi":return`
|
|
132
|
+
font-size: `.concat(s.fontSizes[1],`;
|
|
133
|
+
line-height: `).concat(s.lineHeights[3],`;
|
|
134
|
+
`);case"sigma":return`
|
|
135
|
+
font-weight: `.concat(s.fontWeights.bold,`;
|
|
136
|
+
font-size: `).concat(s.fontSizes[0],`;
|
|
137
|
+
line-height: `).concat(s.lineHeights[5],`;
|
|
138
|
+
text-transform: uppercase;
|
|
139
|
+
`);default:return`
|
|
140
|
+
font-size: `.concat(s.fontSizes[2],`;
|
|
141
|
+
`)}});T.defaultProps=w,T.propTypes=m},9:function(r,f,e){"use strict";e.r(f),e.d(f,"Flex",function(){return n});var i,o=e(3),p=e.n(o),c=e(2),d=e.n(c),a=e(6),b=e(7),g=e(1),S=e.n(g),u=e(0),l=e.n(u),w=function(t){return S.a.createElement("div",t)},m={alignItems:"center",basis:void 0,direction:"row",gap:void 0,inline:!1,justifyContent:void 0,reverse:!1,wrap:void 0},O={alignItems:l.a.string,basis:l.a.oneOfType([l.a.string,l.a.number]),direction:l.a.string,gap:l.a.oneOfType([l.a.shape({desktop:l.a.number,mobile:l.a.number,tablet:l.a.number}),l.a.number,l.a.arrayOf(l.a.number),l.a.string]),inline:l.a.bool,justifyContent:l.a.string,reverse:l.a.bool,shrink:l.a.number,wrap:l.a.string};w.defaultProps=m,w.propTypes=O;var T={direction:!0},n=d()(a.Box).withConfig({shouldForwardProp:function(t,s){return!T[t]&&s(t)}})(i||(i=p()([`
|
|
142
|
+
align-items: `,`;
|
|
143
|
+
display: `,`;
|
|
144
|
+
flex-direction: `,`;
|
|
145
|
+
flex-shrink: `,`;
|
|
146
|
+
flex-wrap: `,`;
|
|
147
|
+
`,`};
|
|
148
|
+
justify-content: `,`;
|
|
149
|
+
`])),function(t){return t.alignItems},function(t){return t.inline?"inline-flex":"flex"},function(t){return t.direction},function(t){return t.shrink},function(t){return t.wrap},function(t){var s=t.gap,E=t.theme;return Object(b.a)("gap",s,E)},function(t){return t.justifyContent});n.defaultProps=m,n.propTypes=O},95:function(r,f,e){"use strict";e.r(f),e.d(f,"Layout",function(){return O}),e.d(f,"ActionLayout",function(){return R}),e.d(f,"ContentLayout",function(){return q}),e.d(f,"HeaderLayout",function(){return Q}),e.d(f,"BaseHeaderLayout",function(){return H}),e.d(f,"TwoColsLayout",function(){return rn}),e.d(f,"GridLayout",function(){return on});var i,o,p=e(3),c=e.n(p),d=e(1),a=e.n(d),b=e(0),g=e.n(b),S=e(2),u=e.n(S),l=e(6),w=u()(l.Box)(i||(i=c()([`
|
|
150
|
+
display: grid;
|
|
151
|
+
grid-template-columns: `,`;
|
|
152
|
+
`])),function(h){return h.hasSideNav?"auto 1fr":"1fr"}),m=u()(l.Box)(o||(o=c()([`
|
|
153
|
+
overflow-x: hidden;
|
|
154
|
+
`]))),O=function(h){var y=h.sideNav,x=h.children;return a.a.createElement(w,{hasSideNav:Boolean(y)},y,a.a.createElement(m,{paddingBottom:10},x))};O.defaultProps={sideNav:void 0},O.propTypes={children:g.a.node.isRequired,sideNav:g.a.node};var T,n,t=e(9),s=u()(t.Flex)(T||(T=c()([`
|
|
155
|
+
& > * + * {
|
|
156
|
+
margin-left: `,`;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
margin-left: `,`;
|
|
160
|
+
`])),function(h){return h.theme.spaces[2]},function(h){return h.pullRight?"auto":void 0}),E=u()(s)(n||(n=c()([`
|
|
161
|
+
flex-shrink: 0;
|
|
162
|
+
`]))),R=function(h){var y=h.startActions,x=h.endActions;return y||x?a.a.createElement(l.Box,{paddingLeft:10,paddingRight:10},a.a.createElement(l.Box,{paddingBottom:4},a.a.createElement(t.Flex,{justifyContent:"space-between",alignItems:"flex-start"},y&&a.a.createElement(s,{wrap:"wrap"},y),x&&a.a.createElement(E,{pullRight:!0},x)))):null};R.defaultProps={endActions:void 0,startActions:void 0},R.propTypes={endActions:g.a.node,startActions:g.a.node};var q=function(h){var y=h.children;return a.a.createElement(l.Box,{paddingLeft:10,paddingRight:10},y)};q.propTypes={children:g.a.node.isRequired};var G,I=e(4),v=e.n(I),A=e(5),j=e.n(A),W=e(10),L=e.n(W),k=e(8),J=["navigationAction","primaryAction","secondaryAction","subtitle","title","sticky","width"],K=function(){var h,y,x=Object(d.useRef)(null),B=Object(d.useState)(null),C=L()(B,2),_=C[0],F=C[1],nn=function(M){var P=Object(d.useRef)(null),cn=Object(d.useState)(!0),an=L()(cn,2),dn=an[0],ln=an[1],fn=function(V){var X=L()(V,1)[0];ln(X.isIntersecting)};return Object(d.useEffect)(function(){var V=P.current,X=new IntersectionObserver(fn,M);return V&&X.observe(P.current),function(){V&&X.disconnect()}},[P,M]),[P,dn]}({root:null,rootMargin:"0px",threshold:0}),D=L()(nn,2),z=D[0],U=D[1];return h=z,y=function(){z.current&&F(z.current.getBoundingClientRect())},Object(d.useLayoutEffect)(function(){var M=new ResizeObserver(y);return Array.isArray(h)?h.map(function(P){P.current&&M.observe(P.current)}):h.current&&M.observe(h.current),function(){M.disconnect()}},[]),Object(d.useEffect)(function(){x.current&&F(x.current.getBoundingClientRect())},[x]),{containerRef:z,isVisible:U,baseHeaderLayoutRef:x,headerSize:_}},Q=function(h){var y=K(),x=y.containerRef,B=y.isVisible,C=y.baseHeaderLayoutRef,_=y.headerSize;return a.a.createElement(a.a.Fragment,null,a.a.createElement("div",{style:{height:_==null?void 0:_.height},ref:x},B&&a.a.createElement(H,j()({ref:C},h))),!B&&a.a.createElement(H,j()({},h,{sticky:!0,width:_==null?void 0:_.width})))};Q.displayName="HeaderLayout";var sn=u()(l.Box)(G||(G=c()([`
|
|
163
|
+
position: fixed;
|
|
164
|
+
top: 0;
|
|
165
|
+
right: 0;
|
|
166
|
+
width: `,`px;
|
|
167
|
+
z-index: 4;
|
|
168
|
+
box-shadow: `,`;
|
|
169
|
+
`])),function(h){return h.width},function(h){return h.theme.shadows.tableShadow}),H=a.a.forwardRef(function(h,y){var x=h.navigationAction,B=h.primaryAction,C=h.secondaryAction,_=h.subtitle,F=h.title,nn=h.sticky,D=h.width,z=v()(h,J),U=typeof _=="string";return nn?a.a.createElement(sn,{paddingLeft:6,paddingRight:6,paddingTop:3,paddingBottom:3,background:"neutral0",width:D,"data-strapi-header-sticky":!0},a.a.createElement(t.Flex,{justifyContent:"space-between"},a.a.createElement(t.Flex,null,x&&a.a.createElement(l.Box,{paddingRight:3},x),a.a.createElement(l.Box,null,a.a.createElement(k.Typography,j()({variant:"beta",as:"h1"},z),F),U?a.a.createElement(k.Typography,{variant:"pi",textColor:"neutral600"},_):_),C?a.a.createElement(l.Box,{paddingLeft:4},C):null),a.a.createElement(t.Flex,null,B?a.a.createElement(l.Box,{paddingLeft:2},B):void 0))):a.a.createElement(l.Box,{ref:y,paddingLeft:10,paddingRight:10,paddingBottom:8,paddingTop:x?6:8,background:"neutral100","data-strapi-header":!0},x?a.a.createElement(l.Box,{paddingBottom:2},x):null,a.a.createElement(t.Flex,{justifyContent:"space-between"},a.a.createElement(t.Flex,null,a.a.createElement(k.Typography,j()({as:"h1",variant:"alpha"},z),F),C?a.a.createElement(l.Box,{paddingLeft:4},C):null),B),U?a.a.createElement(k.Typography,{variant:"epsilon",textColor:"neutral600",as:"p"},_):_)});H.displayName="BaseHeaderLayout",H.defaultProps={navigationAction:void 0,primaryAction:void 0,secondaryAction:void 0,subtitle:void 0,sticky:!1,width:void 0},H.propTypes={navigationAction:g.a.node,primaryAction:g.a.node,secondaryAction:g.a.node,sticky:g.a.bool,subtitle:g.a.oneOfType([g.a.string,g.a.node]),title:g.a.string.isRequired,width:g.a.number},Q.defaultProps={navigationAction:void 0,primaryAction:void 0,secondaryAction:void 0,subtitle:void 0},Q.propTypes={navigationAction:g.a.node,primaryAction:g.a.node,secondaryAction:g.a.node,subtitle:g.a.oneOfType([g.a.string,g.a.node]),title:g.a.string.isRequired};var tn,Z=e(46),rn=function(h){var y=h.startCol,x=h.endCol;return a.a.createElement(Z.Grid,{gap:4},a.a.createElement(Z.GridItem,{col:9,s:12},a.a.createElement(l.Box,{hasRadius:!0,background:"neutral0",shadow:"tableShadow"},y)),a.a.createElement(Z.GridItem,{col:3,s:12},a.a.createElement(l.Box,{hasRadius:!0,background:"neutral0",shadow:"tableShadow"},x)))};rn.propTypes={endCol:g.a.node.isRequired,startCol:g.a.node.isRequired};var on=u.a.div(tn||(tn=c()([`
|
|
170
|
+
display: grid;
|
|
171
|
+
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
|
|
172
|
+
grid-gap: `,`;
|
|
173
|
+
`])),function(h){return h.theme.spaces[4]});on.propTypes={children:g.a.node.isRequired}}})})}}]);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(self.webpackChunk_strapi_admin=self.webpackChunk_strapi_admin||[]).push([[2077],{74201:(y,C,h)=>{"use strict";y.exports=h(45214)},45214:function(y,C,h){(function(x,v){y.exports=v(h(32735),h(19615),h(103))})(this,function(x,v,m){return function(t){var f={};function e(o){if(f[o])return f[o].exports;var i=f[o]={i:o,l:!1,exports:{}};return t[o].call(i.exports,i,i.exports,e),i.l=!0,i.exports}return e.m=t,e.c=f,e.d=function(o,i,p){e.o(o,i)||Object.defineProperty(o,i,{enumerable:!0,get:p})},e.r=function(o){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(o,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(o,"__esModule",{value:!0})},e.t=function(o,i){if(1&i&&(o=e(o)),8&i||4&i&&typeof o=="object"&&o&&o.__esModule)return o;var p=Object.create(null);if(e.r(p),Object.defineProperty(p,"default",{enumerable:!0,value:o}),2&i&&typeof o!="string")for(var u in o)e.d(p,u,function(d){return o[d]}.bind(null,u));return p},e.n=function(o){var i=o&&o.__esModule?function(){return o.default}:function(){return o};return e.d(i,"a",i),i},e.o=function(o,i){return Object.prototype.hasOwnProperty.call(o,i)},e.p="",e(e.s=
|
|
1
|
+
(self.webpackChunk_strapi_admin=self.webpackChunk_strapi_admin||[]).push([[2077],{74201:(y,C,h)=>{"use strict";y.exports=h(45214)},45214:function(y,C,h){(function(x,v){y.exports=v(h(32735),h(19615),h(103))})(this,function(x,v,m){return function(t){var f={};function e(o){if(f[o])return f[o].exports;var i=f[o]={i:o,l:!1,exports:{}};return t[o].call(i.exports,i,i.exports,e),i.l=!0,i.exports}return e.m=t,e.c=f,e.d=function(o,i,p){e.o(o,i)||Object.defineProperty(o,i,{enumerable:!0,get:p})},e.r=function(o){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(o,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(o,"__esModule",{value:!0})},e.t=function(o,i){if(1&i&&(o=e(o)),8&i||4&i&&typeof o=="object"&&o&&o.__esModule)return o;var p=Object.create(null);if(e.r(p),Object.defineProperty(p,"default",{enumerable:!0,value:o}),2&i&&typeof o!="string")for(var u in o)e.d(p,u,function(d){return o[d]}.bind(null,u));return p},e.n=function(o){var i=o&&o.__esModule?function(){return o.default}:function(){return o};return e.d(i,"a",i),i},e.o=function(o,i){return Object.prototype.hasOwnProperty.call(o,i)},e.p="",e(e.s=64)}([function(t,f,e){t.exports=e(19)()},function(t,f){t.exports=x},function(t,f){t.exports=v},function(t,f){t.exports=function(e,o){return o||(o=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(o)}}))},t.exports.default=t.exports,t.exports.__esModule=!0},function(t,f,e){var o=e(24);t.exports=function(i,p){if(i==null)return{};var u,d,c=o(i,p);if(Object.getOwnPropertySymbols){var g=Object.getOwnPropertySymbols(i);for(d=0;d<g.length;d++)u=g[d],p.indexOf(u)>=0||Object.prototype.propertyIsEnumerable.call(i,u)&&(c[u]=i[u])}return c},t.exports.default=t.exports,t.exports.__esModule=!0},function(t,f){function e(){return t.exports=e=Object.assign||function(o){for(var i=1;i<arguments.length;i++){var p=arguments[i];for(var u in p)Object.prototype.hasOwnProperty.call(p,u)&&(o[u]=p[u])}return o},t.exports.default=t.exports,t.exports.__esModule=!0,e.apply(this,arguments)}t.exports=e,t.exports.default=t.exports,t.exports.__esModule=!0},function(t,f,e){"use strict";e.r(f),e.d(f,"Box",function(){return j});var o,i=e(3),p=e.n(i),u=e(2),d=e.n(u),c=e(7),g=e(1),O=e.n(g),S=e(0),a=e.n(S),l=function(n){return O.a.createElement("div",n)},w={background:void 0,borderColor:void 0,color:void 0,hiddenS:!1,hiddenXS:!1,padding:void 0,paddingTop:void 0,paddingRight:void 0,paddingBottom:void 0,paddingLeft:void 0,hasRadius:!1,shadow:void 0,children:null,shrink:void 0,grow:void 0,basis:void 0,flex:void 0,_hover:function(){}},b={_hover:a.a.func,background:a.a.string,basis:a.a.oneOfType([a.a.string,a.a.string]),borderColor:a.a.string,children:a.a.oneOfType([a.a.node,a.a.string]),color:a.a.string,flex:a.a.oneOfType([a.a.string,a.a.string]),grow:a.a.oneOfType([a.a.string,a.a.string]),hasRadius:a.a.bool,hiddenS:a.a.bool,hiddenXS:a.a.bool,padding:a.a.oneOfType([a.a.number,a.a.arrayOf(a.a.number)]),paddingBottom:a.a.oneOfType([a.a.number,a.a.arrayOf(a.a.number)]),paddingLeft:a.a.oneOfType([a.a.number,a.a.arrayOf(a.a.number)]),paddingRight:a.a.oneOfType([a.a.number,a.a.arrayOf(a.a.number)]),paddingTop:a.a.oneOfType([a.a.number,a.a.arrayOf(a.a.number)]),shadow:a.a.string,shrink:a.a.oneOfType([a.a.string,a.a.string])};l.defaultProps=w,l.propTypes=b;var T={color:!0},j=d.a.div.withConfig({shouldForwardProp:function(n,r){return!T[n]&&r(n)}})(o||(o=p()([`
|
|
2
2
|
// Font
|
|
3
3
|
font-size: `,`;
|
|
4
4
|
|
|
@@ -77,7 +77,7 @@
|
|
|
77
77
|
|
|
78
78
|
// Cursor
|
|
79
79
|
cursor: `,`;
|
|
80
|
-
`])),function(n){var r=n.fontSize;return n.theme.fontSizes[r]||r},function(n){var r=n.theme,s=n.background;return r.colors[s]},function(n){var r=n.theme,s=n.color;return r.colors[s]},function(n){var r=n.theme,s=n.padding;return Object(c.a)("padding",s,r)},function(n){var r=n.theme,s=n.paddingTop;return Object(c.a)("padding-top",s,r)},function(n){var r=n.theme,s=n.paddingRight;return Object(c.a)("padding-right",s,r)},function(n){var r=n.theme,s=n.paddingBottom;return Object(c.a)("padding-bottom",s,r)},function(n){var r=n.theme,s=n.paddingLeft;return Object(c.a)("padding-left",s,r)},function(n){var r=n.theme,s=n.marginLeft;return Object(c.a)("margin-left",s,r)},function(n){var r=n.theme,s=n.marginRight;return Object(c.a)("margin-right",s,r)},function(n){var r=n.theme,s=n.marginTop;return Object(c.a)("margin-top",s,r)},function(n){var r=n.theme,s=n.marginBottom;return Object(c.a)("margin-bottom",s,r)},function(n){var r=n.theme;return n.hiddenS?"".concat(r.mediaQueries.tablet," { display: none; }"):void 0},function(n){var r=n.theme;return n.hiddenXS?"".concat(r.mediaQueries.mobile," { display: none; }"):void 0},function(n){var r=n.theme,s=n.hasRadius,k=n.borderRadius;return s?r.borderRadius:k},function(n){return n.borderStyle},function(n){return n.borderWidth},function(n){var r=n.borderColor;return n.theme.colors[r]},function(n){var r=n.theme,s=n.borderColor,k=n.borderStyle,M=n.borderWidth;if(s&&!k&&!M)return"1px solid ".concat(r.colors[s])},function(n){var r=n.theme,s=n.shadow;return r.shadows[s]},function(n){return n.pointerEvents},function(n){var r=n._hover,s=n.theme;return r?r(s):void 0},function(n){return n.display},function(n){return n.position},function(n){var r=n.left;return n.theme.spaces[r]||r},function(n){var r=n.right;return n.theme.spaces[r]||r},function(n){var r=n.top;return n.theme.spaces[r]||r},function(n){var r=n.bottom;return n.theme.spaces[r]||r},function(n){return n.zIndex},function(n){return n.overflow},function(n){return n.cursor},function(n){var r=n.width;return n.theme.spaces[r]||r},function(n){var r=n.maxWidth;return n.theme.spaces[r]||r},function(n){var r=n.minWidth;return n.theme.spaces[r]||r},function(n){var r=n.height;return n.theme.spaces[r]||r},function(n){var r=n.maxHeight;return n.theme.spaces[r]||r},function(n){var r=n.minHeight;return n.theme.spaces[r]||r},function(n){return n.transition},function(n){return n.transform},function(n){return n.animation},function(n){return n.shrink},function(n){return n.grow},function(n){return n.basis},function(n){return n.flex},function(n){return n.textAlign},function(n){return n.textTransform},function(n){return n.lineHeight},function(n){return n.cursor});j.defaultProps=w,j.propTypes=b},function(t,f
|
|
80
|
+
`])),function(n){var r=n.fontSize;return n.theme.fontSizes[r]||r},function(n){var r=n.theme,s=n.background;return r.colors[s]},function(n){var r=n.theme,s=n.color;return r.colors[s]},function(n){var r=n.theme,s=n.padding;return Object(c.a)("padding",s,r)},function(n){var r=n.theme,s=n.paddingTop;return Object(c.a)("padding-top",s,r)},function(n){var r=n.theme,s=n.paddingRight;return Object(c.a)("padding-right",s,r)},function(n){var r=n.theme,s=n.paddingBottom;return Object(c.a)("padding-bottom",s,r)},function(n){var r=n.theme,s=n.paddingLeft;return Object(c.a)("padding-left",s,r)},function(n){var r=n.theme,s=n.marginLeft;return Object(c.a)("margin-left",s,r)},function(n){var r=n.theme,s=n.marginRight;return Object(c.a)("margin-right",s,r)},function(n){var r=n.theme,s=n.marginTop;return Object(c.a)("margin-top",s,r)},function(n){var r=n.theme,s=n.marginBottom;return Object(c.a)("margin-bottom",s,r)},function(n){var r=n.theme;return n.hiddenS?"".concat(r.mediaQueries.tablet," { display: none; }"):void 0},function(n){var r=n.theme;return n.hiddenXS?"".concat(r.mediaQueries.mobile," { display: none; }"):void 0},function(n){var r=n.theme,s=n.hasRadius,k=n.borderRadius;return s?r.borderRadius:k},function(n){return n.borderStyle},function(n){return n.borderWidth},function(n){var r=n.borderColor;return n.theme.colors[r]},function(n){var r=n.theme,s=n.borderColor,k=n.borderStyle,M=n.borderWidth;if(s&&!k&&!M)return"1px solid ".concat(r.colors[s])},function(n){var r=n.theme,s=n.shadow;return r.shadows[s]},function(n){return n.pointerEvents},function(n){var r=n._hover,s=n.theme;return r?r(s):void 0},function(n){return n.display},function(n){return n.position},function(n){var r=n.left;return n.theme.spaces[r]||r},function(n){var r=n.right;return n.theme.spaces[r]||r},function(n){var r=n.top;return n.theme.spaces[r]||r},function(n){var r=n.bottom;return n.theme.spaces[r]||r},function(n){return n.zIndex},function(n){return n.overflow},function(n){return n.cursor},function(n){var r=n.width;return n.theme.spaces[r]||r},function(n){var r=n.maxWidth;return n.theme.spaces[r]||r},function(n){var r=n.minWidth;return n.theme.spaces[r]||r},function(n){var r=n.height;return n.theme.spaces[r]||r},function(n){var r=n.maxHeight;return n.theme.spaces[r]||r},function(n){var r=n.minHeight;return n.theme.spaces[r]||r},function(n){return n.transition},function(n){return n.transform},function(n){return n.animation},function(n){return n.shrink},function(n){return n.grow},function(n){return n.basis},function(n){return n.flex},function(n){return n.textAlign},function(n){return n.textTransform},function(n){return n.lineHeight},function(n){return n.cursor});j.defaultProps=w,j.propTypes=b},function(t,f,e){"use strict";var o=e(10),i=e.n(o),p=e(13),u=e.n(p);f.a=function(d,c,g){var O=c;if(Array.isArray(c)||u()(c)!=="object"||(O=[c==null?void 0:c.desktop,c==null?void 0:c.tablet,c==null?void 0:c.mobile]),O!==void 0){if(Array.isArray(O)){var S=O,a=i()(S,3),l=a[0],w=a[1],b=a[2],T="".concat(d,": ").concat(g.spaces[l],";");return w!==void 0&&(T+="".concat(g.mediaQueries.tablet,`{
|
|
81
81
|
`).concat(d,": ").concat(g.spaces[w],`;
|
|
82
82
|
}`)),b!==void 0&&(T+="".concat(g.mediaQueries.mobile,`{
|
|
83
83
|
`).concat(d,": ").concat(g.spaces[b],`;
|
|
@@ -122,7 +122,7 @@
|
|
|
122
122
|
text-transform: uppercase;
|
|
123
123
|
`);default:return`
|
|
124
124
|
font-size: `.concat(s.fontSizes[2],`;
|
|
125
|
-
`)}});j.defaultProps=w,j.propTypes=b},function(t,f,e){"use strict";e.r(f),e.d(f,"Flex",function(){return n});var o,i=e(3),p=e.n(i),u=e(2),d=e.n(u),c=e(
|
|
125
|
+
`)}});j.defaultProps=w,j.propTypes=b},function(t,f,e){"use strict";e.r(f),e.d(f,"Flex",function(){return n});var o,i=e(3),p=e.n(i),u=e(2),d=e.n(u),c=e(6),g=e(7),O=e(1),S=e.n(O),a=e(0),l=e.n(a),w=function(r){return S.a.createElement("div",r)},b={alignItems:"center",basis:void 0,direction:"row",gap:void 0,inline:!1,justifyContent:void 0,reverse:!1,wrap:void 0},T={alignItems:l.a.string,basis:l.a.oneOfType([l.a.string,l.a.number]),direction:l.a.string,gap:l.a.oneOfType([l.a.shape({desktop:l.a.number,mobile:l.a.number,tablet:l.a.number}),l.a.number,l.a.arrayOf(l.a.number),l.a.string]),inline:l.a.bool,justifyContent:l.a.string,reverse:l.a.bool,shrink:l.a.number,wrap:l.a.string};w.defaultProps=b,w.propTypes=T;var j={direction:!0},n=d()(c.Box).withConfig({shouldForwardProp:function(r,s){return!j[r]&&s(r)}})(o||(o=p()([`
|
|
126
126
|
align-items: `,`;
|
|
127
127
|
display: `,`;
|
|
128
128
|
flex-direction: `,`;
|
|
@@ -171,7 +171,7 @@
|
|
|
171
171
|
}
|
|
172
172
|
}
|
|
173
173
|
`)}},,,function(t,f,e){"use strict";var o=e(20);function i(){}function p(){}p.resetWarningCache=i,t.exports=function(){function u(g,O,S,a,l,w){if(w!==o){var b=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw b.name="Invariant Violation",b}}function d(){return u}u.isRequired=u;var c={array:u,bool:u,func:u,number:u,object:u,string:u,symbol:u,any:u,arrayOf:d,element:u,elementType:u,instanceOf:d,node:u,objectOf:d,oneOf:d,oneOfType:d,shape:d,exact:d,checkPropTypes:p,resetWarningCache:i};return c.PropTypes=c,c}},function(t,f,e){"use strict";t.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(t,f){t.exports=function(e,o){(o==null||o>e.length)&&(o=e.length);for(var i=0,p=new Array(o);i<o;i++)p[i]=e[i];return p},t.exports.default=t.exports,t.exports.__esModule=!0},function(t,f,e){var o=e(21);t.exports=function(i,p){if(i){if(typeof i=="string")return o(i,p);var u=Object.prototype.toString.call(i).slice(8,-1);return u==="Object"&&i.constructor&&(u=i.constructor.name),u==="Map"||u==="Set"?Array.from(i):u==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(u)?o(i,p):void 0}},t.exports.default=t.exports,t.exports.__esModule=!0},,function(t,f){t.exports=function(e,o){if(e==null)return{};var i,p,u={},d=Object.keys(e);for(p=0;p<d.length;p++)i=d[p],o.indexOf(i)>=0||(u[i]=e[i]);return u},t.exports.default=t.exports,t.exports.__esModule=!0},function(t,f){t.exports=function(e){if(Array.isArray(e))return e},t.exports.default=t.exports,t.exports.__esModule=!0},function(t,f){t.exports=function(e,o){var i=e==null?null:typeof Symbol!="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(i!=null){var p,u,d=[],c=!0,g=!1;try{for(i=i.call(e);!(c=(p=i.next()).done)&&(d.push(p.value),!o||d.length!==o);c=!0);}catch(O){g=!0,u=O}finally{try{c||i.return==null||i.return()}finally{if(g)throw u}}return d}},t.exports.default=t.exports,t.exports.__esModule=!0},function(t,f){t.exports=function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
174
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)},t.exports.default=t.exports,t.exports.__esModule=!0}
|
|
174
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)},t.exports.default=t.exports,t.exports.__esModule=!0},,,,,,,,,,,,,,,,,,,,,,,,function(t,f){t.exports=m},,,,,,,,,,,,,function(t,f,e){"use strict";e.r(f),e.d(f,"TextButton",function(){return P});var o,i,p,u=e(5),d=e.n(u),c=e(4),g=e.n(c),O=e(3),S=e.n(O),a=e(1),l=e.n(a),w=e(0),b=e.n(w),T=e(2),j=e.n(T),n=e(51),r=e.n(n),s=e(6),k=e(8),M=e(9),_=e(16),F=["children","startIcon","endIcon","onClick","disabled","loading"],L=Object(T.keyframes)(o||(o=S()([`
|
|
175
175
|
from {
|
|
176
176
|
transform: rotate(0deg);
|
|
177
177
|
}
|