@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,387 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_strapi_admin=self.webpackChunk_strapi_admin||[]).push([[4715],{14715:(An,ie,sn)=>{"use strict";An.exports=sn(83885)},83885:function(An,ie,sn){var ae=sn(98399);(function(Pn,Ln){An.exports=Ln(sn(32735),sn(19615),sn(60672),sn(12788),sn(94009))})(this,function(Pn,Ln,ue,ce,se){return function(a){var l={};function n(i){if(l[i])return l[i].exports;var o=l[i]={i,l:!1,exports:{}};return a[i].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=a,n.c=l,n.d=function(i,o,M){n.o(i,o)||Object.defineProperty(i,o,{enumerable:!0,get:M})},n.r=function(i){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(i,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(i,"__esModule",{value:!0})},n.t=function(i,o){if(1&o&&(i=n(i)),8&o||4&o&&typeof i=="object"&&i&&i.__esModule)return i;var M=Object.create(null);if(n.r(M),Object.defineProperty(M,"default",{enumerable:!0,value:i}),2&o&&typeof i!="string")for(var s in i)n.d(M,s,function(c){return i[c]}.bind(null,s));return M},n.n=function(i){var o=i&&i.__esModule?function(){return i.default}:function(){return i};return n.d(o,"a",o),o},n.o=function(i,o){return Object.prototype.hasOwnProperty.call(i,o)},n.p="",n(n.s=103)}([function(a,l,n){a.exports=n(19)()},function(a,l){a.exports=Pn},function(a,l){a.exports=Ln},function(a,l){a.exports=function(n,i){return i||(i=n.slice(0)),Object.freeze(Object.defineProperties(n,{raw:{value:Object.freeze(i)}}))},a.exports.default=a.exports,a.exports.__esModule=!0},function(a,l,n){var i=n(24);a.exports=function(o,M){if(o==null)return{};var s,c,u=i(o,M);if(Object.getOwnPropertySymbols){var h=Object.getOwnPropertySymbols(o);for(c=0;c<h.length;c++)s=h[c],M.indexOf(s)>=0||Object.prototype.propertyIsEnumerable.call(o,s)&&(u[s]=o[s])}return u},a.exports.default=a.exports,a.exports.__esModule=!0},function(a,l,n){"use strict";n.r(l),n.d(l,"Box",function(){return x});var i,o=n(3),M=n.n(o),s=n(2),c=n.n(s),u=n(7),h=n(1),j=n.n(h),p=n(0),r=n.n(p),N=function(e){return j.a.createElement("div",e)},f={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(){}},v={_hover:r.a.func,background:r.a.string,basis:r.a.oneOfType([r.a.string,r.a.string]),borderColor:r.a.string,children:r.a.oneOfType([r.a.node,r.a.string]),color:r.a.string,flex:r.a.oneOfType([r.a.string,r.a.string]),grow:r.a.oneOfType([r.a.string,r.a.string]),hasRadius:r.a.bool,hiddenS:r.a.bool,hiddenXS:r.a.bool,padding:r.a.oneOfType([r.a.number,r.a.arrayOf(r.a.number)]),paddingBottom:r.a.oneOfType([r.a.number,r.a.arrayOf(r.a.number)]),paddingLeft:r.a.oneOfType([r.a.number,r.a.arrayOf(r.a.number)]),paddingRight:r.a.oneOfType([r.a.number,r.a.arrayOf(r.a.number)]),paddingTop:r.a.oneOfType([r.a.number,r.a.arrayOf(r.a.number)]),shadow:r.a.string,shrink:r.a.oneOfType([r.a.string,r.a.string])};N.defaultProps=f,N.propTypes=v;var y={color:!0},x=c.a.div.withConfig({shouldForwardProp:function(e,t){return!y[e]&&t(e)}})(i||(i=M()([`
|
|
2
|
-
// Font
|
|
3
|
-
font-size: `,`;
|
|
4
|
-
|
|
5
|
-
// Colors
|
|
6
|
-
background: `,`;
|
|
7
|
-
color: `,`;
|
|
8
|
-
|
|
9
|
-
// Spaces
|
|
10
|
-
`,`
|
|
11
|
-
`,`
|
|
12
|
-
`,`
|
|
13
|
-
`,`
|
|
14
|
-
`,`
|
|
15
|
-
`,`
|
|
16
|
-
`,`
|
|
17
|
-
`,`
|
|
18
|
-
`,`
|
|
19
|
-
|
|
20
|
-
// Responsive hiding
|
|
21
|
-
`,`
|
|
22
|
-
`,`
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
// Borders
|
|
26
|
-
border-radius: `,`;
|
|
27
|
-
border-style: `,`;
|
|
28
|
-
border-width: `,`;
|
|
29
|
-
border-color: `,`;
|
|
30
|
-
border: `,`;
|
|
31
|
-
|
|
32
|
-
// Shadows
|
|
33
|
-
box-shadow: `,`;
|
|
34
|
-
|
|
35
|
-
// Handlers
|
|
36
|
-
pointer-events: `,`;
|
|
37
|
-
&:hover {
|
|
38
|
-
`,`
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
// Display
|
|
42
|
-
display: `,`;
|
|
43
|
-
|
|
44
|
-
// Position
|
|
45
|
-
position: `,`;
|
|
46
|
-
left: `,`;
|
|
47
|
-
right: `,`;
|
|
48
|
-
top: `,`;
|
|
49
|
-
bottom: `,`;
|
|
50
|
-
z-index: `,`;
|
|
51
|
-
overflow: `,`;
|
|
52
|
-
cursor: `,`;
|
|
53
|
-
|
|
54
|
-
// Size
|
|
55
|
-
width: `,`;
|
|
56
|
-
max-width: `,`;
|
|
57
|
-
min-width: `,`;
|
|
58
|
-
height: `,`;
|
|
59
|
-
max-height: `,`;
|
|
60
|
-
min-height: `,`;
|
|
61
|
-
|
|
62
|
-
// Animation
|
|
63
|
-
transition: `,`;
|
|
64
|
-
transform: `,`;
|
|
65
|
-
animation: `,`;
|
|
66
|
-
|
|
67
|
-
//Flexbox children props
|
|
68
|
-
flex-shrink: `,`;
|
|
69
|
-
flex-grow: `,`;
|
|
70
|
-
flex-basis: `,`;
|
|
71
|
-
flex: `,`;
|
|
72
|
-
|
|
73
|
-
// Text
|
|
74
|
-
text-align: `,`;
|
|
75
|
-
text-transform: `,`;
|
|
76
|
-
line-height: `,`;
|
|
77
|
-
|
|
78
|
-
// Cursor
|
|
79
|
-
cursor: `,`;
|
|
80
|
-
`])),function(e){var t=e.fontSize;return e.theme.fontSizes[t]||t},function(e){var t=e.theme,d=e.background;return t.colors[d]},function(e){var t=e.theme,d=e.color;return t.colors[d]},function(e){var t=e.theme,d=e.padding;return Object(u.a)("padding",d,t)},function(e){var t=e.theme,d=e.paddingTop;return Object(u.a)("padding-top",d,t)},function(e){var t=e.theme,d=e.paddingRight;return Object(u.a)("padding-right",d,t)},function(e){var t=e.theme,d=e.paddingBottom;return Object(u.a)("padding-bottom",d,t)},function(e){var t=e.theme,d=e.paddingLeft;return Object(u.a)("padding-left",d,t)},function(e){var t=e.theme,d=e.marginLeft;return Object(u.a)("margin-left",d,t)},function(e){var t=e.theme,d=e.marginRight;return Object(u.a)("margin-right",d,t)},function(e){var t=e.theme,d=e.marginTop;return Object(u.a)("margin-top",d,t)},function(e){var t=e.theme,d=e.marginBottom;return Object(u.a)("margin-bottom",d,t)},function(e){var t=e.theme;return e.hiddenS?"".concat(t.mediaQueries.tablet," { display: none; }"):void 0},function(e){var t=e.theme;return e.hiddenXS?"".concat(t.mediaQueries.mobile," { display: none; }"):void 0},function(e){var t=e.theme,d=e.hasRadius,O=e.borderRadius;return d?t.borderRadius:O},function(e){return e.borderStyle},function(e){return e.borderWidth},function(e){var t=e.borderColor;return e.theme.colors[t]},function(e){var t=e.theme,d=e.borderColor,O=e.borderStyle,A=e.borderWidth;if(d&&!O&&!A)return"1px solid ".concat(t.colors[d])},function(e){var t=e.theme,d=e.shadow;return t.shadows[d]},function(e){return e.pointerEvents},function(e){var t=e._hover,d=e.theme;return t?t(d):void 0},function(e){return e.display},function(e){return e.position},function(e){var t=e.left;return e.theme.spaces[t]||t},function(e){var t=e.right;return e.theme.spaces[t]||t},function(e){var t=e.top;return e.theme.spaces[t]||t},function(e){var t=e.bottom;return e.theme.spaces[t]||t},function(e){return e.zIndex},function(e){return e.overflow},function(e){return e.cursor},function(e){var t=e.width;return e.theme.spaces[t]||t},function(e){var t=e.maxWidth;return e.theme.spaces[t]||t},function(e){var t=e.minWidth;return e.theme.spaces[t]||t},function(e){var t=e.height;return e.theme.spaces[t]||t},function(e){var t=e.maxHeight;return e.theme.spaces[t]||t},function(e){var t=e.minHeight;return e.theme.spaces[t]||t},function(e){return e.transition},function(e){return e.transform},function(e){return e.animation},function(e){return e.shrink},function(e){return e.grow},function(e){return e.basis},function(e){return e.flex},function(e){return e.textAlign},function(e){return e.textTransform},function(e){return e.lineHeight},function(e){return e.cursor});x.defaultProps=f,x.propTypes=v},function(a,l){function n(){return a.exports=n=Object.assign||function(i){for(var o=1;o<arguments.length;o++){var M=arguments[o];for(var s in M)Object.prototype.hasOwnProperty.call(M,s)&&(i[s]=M[s])}return i},a.exports.default=a.exports,a.exports.__esModule=!0,n.apply(this,arguments)}a.exports=n,a.exports.default=a.exports,a.exports.__esModule=!0},function(a,l,n){"use strict";var i=n(10),o=n.n(i),M=n(13),s=n.n(M);l.a=function(c,u,h){var j=u;if(Array.isArray(u)||s()(u)!=="object"||(j=[u==null?void 0:u.desktop,u==null?void 0:u.tablet,u==null?void 0:u.mobile]),j!==void 0){if(Array.isArray(j)){var p=j,r=o()(p,3),N=r[0],f=r[1],v=r[2],y="".concat(c,": ").concat(h.spaces[N],";");return f!==void 0&&(y+="".concat(h.mediaQueries.tablet,`{
|
|
81
|
-
`).concat(c,": ").concat(h.spaces[f],`;
|
|
82
|
-
}`)),v!==void 0&&(y+="".concat(h.mediaQueries.mobile,`{
|
|
83
|
-
`).concat(c,": ").concat(h.spaces[v],`;
|
|
84
|
-
}`)),y}var x=h.spaces[j]||j;return"".concat(c,": ").concat(x,";")}}},function(a,l,n){"use strict";n.r(l),n.d(l,"Typography",function(){return x});var i,o=n(3),M=n.n(o),s=n(2),c=n.n(s),u=["alpha","beta","delta","epsilon","omega","pi","sigma"],h=n(1),j=n.n(h),p=n(0),r=n.n(p),N=function(e){return j.a.createElement("div",e)},f={ellipsis:!1,fontWeight:void 0,fontSize:void 0,lineHeight:void 0,textColor:void 0,textTransform:void 0,variant:"omega"},v={ellipsis:r.a.bool,fontSize:r.a.oneOfType([r.a.number,r.a.string]),fontWeight:r.a.string,lineHeight:r.a.oneOfType([r.a.number,r.a.string]),textColor:r.a.string,textTransform:r.a.string,variant:r.a.oneOf(u)};N.defaultProps=f,N.propTypes=v;var y={fontSize:!0,fontWeight:!0},x=c.a.span.withConfig({shouldForwardProp:function(e,t){return!y[e]&&t(e)}})(i||(i=M()([`
|
|
85
|
-
font-weight: `,`;
|
|
86
|
-
font-size: `,`;
|
|
87
|
-
line-height: `,`;
|
|
88
|
-
color: `,`;
|
|
89
|
-
text-transform: `,`;
|
|
90
|
-
`,`
|
|
91
|
-
`,`
|
|
92
|
-
`])),function(e){var t=e.theme,d=e.fontWeight;return t.fontWeights[d]},function(e){var t=e.theme,d=e.fontSize;return t.fontSizes[d]},function(e){var t=e.theme,d=e.lineHeight;return t.lineHeights[d]},function(e){var t=e.theme,d=e.textColor;return t.colors[d||"neutral800"]},function(e){return e.textTransform},function(e){return e.ellipsis&&`
|
|
93
|
-
display: block;
|
|
94
|
-
white-space: nowrap;
|
|
95
|
-
overflow: hidden;
|
|
96
|
-
text-overflow: ellipsis;
|
|
97
|
-
`},function(e){var t=e.variant,d=e.theme;switch(t){case"alpha":return`
|
|
98
|
-
font-weight: `.concat(d.fontWeights.bold,`;
|
|
99
|
-
font-size: `).concat(d.fontSizes[5],`;
|
|
100
|
-
line-height: `).concat(d.lineHeights[2],`;
|
|
101
|
-
`);case"beta":return`
|
|
102
|
-
font-weight: `.concat(d.fontWeights.bold,`;
|
|
103
|
-
font-size: `).concat(d.fontSizes[4],`;
|
|
104
|
-
line-height: `).concat(d.lineHeights[1],`;
|
|
105
|
-
`);case"delta":return`
|
|
106
|
-
font-weight: `.concat(d.fontWeights.semiBold,`;
|
|
107
|
-
font-size: `).concat(d.fontSizes[3],`;
|
|
108
|
-
line-height: `).concat(d.lineHeights[2],`;
|
|
109
|
-
`);case"epsilon":return`
|
|
110
|
-
font-size: `.concat(d.fontSizes[3],`;
|
|
111
|
-
line-height: `).concat(d.lineHeights[6],`;
|
|
112
|
-
`);case"omega":return`
|
|
113
|
-
font-size: `.concat(d.fontSizes[2],`;
|
|
114
|
-
line-height: `).concat(d.lineHeights[4],`;
|
|
115
|
-
`);case"pi":return`
|
|
116
|
-
font-size: `.concat(d.fontSizes[1],`;
|
|
117
|
-
line-height: `).concat(d.lineHeights[3],`;
|
|
118
|
-
`);case"sigma":return`
|
|
119
|
-
font-weight: `.concat(d.fontWeights.bold,`;
|
|
120
|
-
font-size: `).concat(d.fontSizes[0],`;
|
|
121
|
-
line-height: `).concat(d.lineHeights[5],`;
|
|
122
|
-
text-transform: uppercase;
|
|
123
|
-
`);default:return`
|
|
124
|
-
font-size: `.concat(d.fontSizes[2],`;
|
|
125
|
-
`)}});x.defaultProps=f,x.propTypes=v},function(a,l,n){"use strict";n.r(l),n.d(l,"Flex",function(){return e});var i,o=n(3),M=n.n(o),s=n(2),c=n.n(s),u=n(5),h=n(7),j=n(1),p=n.n(j),r=n(0),N=n.n(r),f=function(t){return p.a.createElement("div",t)},v={alignItems:"center",basis:void 0,direction:"row",gap:void 0,inline:!1,justifyContent:void 0,reverse:!1,wrap:void 0},y={alignItems:N.a.string,basis:N.a.oneOfType([N.a.string,N.a.number]),direction:N.a.string,gap:N.a.oneOfType([N.a.shape({desktop:N.a.number,mobile:N.a.number,tablet:N.a.number}),N.a.number,N.a.arrayOf(N.a.number),N.a.string]),inline:N.a.bool,justifyContent:N.a.string,reverse:N.a.bool,shrink:N.a.number,wrap:N.a.string};f.defaultProps=v,f.propTypes=y;var x={direction:!0},e=c()(u.Box).withConfig({shouldForwardProp:function(t,d){return!x[t]&&d(t)}})(i||(i=M()([`
|
|
126
|
-
align-items: `,`;
|
|
127
|
-
display: `,`;
|
|
128
|
-
flex-direction: `,`;
|
|
129
|
-
flex-shrink: `,`;
|
|
130
|
-
flex-wrap: `,`;
|
|
131
|
-
`,`};
|
|
132
|
-
justify-content: `,`;
|
|
133
|
-
`])),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 d=t.gap,O=t.theme;return Object(h.a)("gap",d,O)},function(t){return t.justifyContent});e.defaultProps=v,e.propTypes=y},function(a,l,n){var i=n(25),o=n(26),M=n(22),s=n(27);a.exports=function(c,u){return i(c)||o(c,u)||M(c,u)||s()},a.exports.default=a.exports,a.exports.__esModule=!0},function(a,l,n){"use strict";n.d(l,"a",function(){return i});var i={DOWN:"ArrowDown",UP:"ArrowUp",RIGHT:"ArrowRight",LEFT:"ArrowLeft",ESCAPE:"Escape",ENTER:"Enter",SPACE:" ",TAB:"Tab",END:"End",HOME:"Home",DELETE:"Delete",PAGE_UP:"PageUp",PAGE_DOWN:"PageDown",BACKSPACE:"Backspace",CLEAR:"Clear"}},function(a,l,n){"use strict";n.d(l,"a",function(){return o}),n.d(l,"b",function(){return M});var i=n(1),o=Object(i.createContext)({error:void 0,hint:void 0,name:"",id:""}),M=function(){return Object(i.useContext)(o)}},function(a,l){function n(i){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?(a.exports=n=function(o){return typeof o},a.exports.default=a.exports,a.exports.__esModule=!0):(a.exports=n=function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},a.exports.default=a.exports,a.exports.__esModule=!0),n(i)}a.exports=n,a.exports.default=a.exports,a.exports.__esModule=!0},function(a,l,n){"use strict";n.d(l,"a",function(){return M});var i=n(1),o=0,M=function(s,c){return Object(i.useRef)(c||"".concat(s,"-").concat(++o)).current}},function(a,l,n){"use strict";n.r(l),n.d(l,"Field",function(){return r}),n.d(l,"FieldLabel",function(){return Q}),n.d(l,"InputWrapper",function(){return E.b}),n.d(l,"FieldInput",function(){return E.a}),n.d(l,"FieldHint",function(){return X}),n.d(l,"FieldError",function(){return z}),n.d(l,"FieldContext",function(){return h.a}),n.d(l,"useField",function(){return h.b}),n.d(l,"FieldAction",function(){return F});var i=n(4),o=n.n(i),M=n(1),s=n.n(M),c=n(0),u=n.n(c),h=n(12),j=n(14),p=["children","name","error","hint","id"],r=function(m){var T=m.children,w=m.name,S=m.error,U=m.hint,_=m.id,G=o()(m,p),H=Object(j.a)("field",_);return s.a.createElement("div",G,s.a.createElement(h.a.Provider,{value:{name:w,id:H,error:S,hint:U}},T))};r.defaultProps={error:void 0,hint:void 0,id:void 0,name:void 0},r.propTypes={children:u.a.node.isRequired,error:u.a.string,hint:u.a.oneOfType([u.a.string,u.a.node,u.a.arrayOf(u.a.node)]),id:u.a.oneOfType([u.a.string,u.a.number]),name:u.a.string};var N,f,v=n(6),y=n.n(v),x=n(3),e=n.n(x),t=n(2),d=n.n(t),O=n(9),A=n(8),D=["children","required","action"],L=d()(A.Typography)(N||(N=e()([`
|
|
134
|
-
line-height: 0;
|
|
135
|
-
`]))),R=d()(O.Flex)(f||(f=e()([`
|
|
136
|
-
line-height: 0;
|
|
137
|
-
|
|
138
|
-
svg path {
|
|
139
|
-
fill: `,`;
|
|
140
|
-
}
|
|
141
|
-
`])),function(m){return m.theme.colors.neutral500}),Q=function(m){var T=m.children,w=m.required,S=m.action,U=o()(m,D),_=Object(h.b)().id;return s.a.createElement(A.Typography,y()({variant:"pi",textColor:"neutral800",htmlFor:_,fontWeight:"bold",as:"label",required:w},U),s.a.createElement(O.Flex,{alignItems:"center"},T,w&&s.a.createElement(L,{textColor:"danger600"},"*"),S&&s.a.createElement(R,{marginLeft:1},S)))};Q.defaultProps={required:!1,action:void 0},Q.propTypes={action:u.a.element,children:u.a.node.isRequired,required:u.a.bool};var b,E=n(34),X=function(){var m=Object(h.b)(),T=m.id,w=m.hint,S=m.error;return!w||S?null:s.a.createElement(A.Typography,{variant:"pi",as:"p",id:"".concat(T,"-hint"),textColor:"neutral600"},w)},z=function(){var m=Object(h.b)(),T=m.id,w=m.error;return w?s.a.createElement(A.Typography,{variant:"pi",as:"p",id:"".concat(T,"-error"),textColor:"danger600","data-strapi-field-error":!0},w):null},C=["label","children"],B=d.a.button(b||(b=e()([`
|
|
142
|
-
border: none;
|
|
143
|
-
background: transparent;
|
|
144
|
-
// TODO: Make sure to use the theme when it's ready
|
|
145
|
-
font-size: 1.6rem;
|
|
146
|
-
width: auto;
|
|
147
|
-
padding: 0;
|
|
148
|
-
display: flex;
|
|
149
|
-
align-items: center;
|
|
150
|
-
`]))),F=function(m){var T=m.label,w=m.children,S=o()(m,C);return s.a.createElement(B,y()({"aria-label":T,type:"button"},S),w)};F.propTypes={children:u.a.node.isRequired,label:u.a.string.isRequired}},function(a,l,n){"use strict";n.d(l,"b",function(){return i}),n.d(l,"c",function(){return o}),n.d(l,"a",function(){return M});var i=function(s){return function(c){var u=c.theme,h=c.size;return u.sizes[s][h]}},o=function(){var s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"&";return function(c){var u=c.theme,h=c.hasError;return`
|
|
151
|
-
outline: none;
|
|
152
|
-
box-shadow: 0;
|
|
153
|
-
transition-property: border-color, box-shadow, fill;
|
|
154
|
-
transition-duration: 0.2s;
|
|
155
|
-
|
|
156
|
-
`.concat(s,`:focus-within {
|
|
157
|
-
border: 1px solid `).concat(h?u.colors.danger600:u.colors.primary600,`;
|
|
158
|
-
box-shadow: `).concat(h?u.colors.danger600:u.colors.primary600,` 0px 0px 0px 2px;
|
|
159
|
-
}
|
|
160
|
-
`)}},M=function(s){var c=s.theme;return`
|
|
161
|
-
position: relative;
|
|
162
|
-
outline: none;
|
|
163
|
-
|
|
164
|
-
&:after {
|
|
165
|
-
transition-property: all;
|
|
166
|
-
transition-duration: 0.2s;
|
|
167
|
-
border-radius: 8px;
|
|
168
|
-
content: '';
|
|
169
|
-
position: absolute;
|
|
170
|
-
top: -4px;
|
|
171
|
-
bottom: -4px;
|
|
172
|
-
left: -4px;
|
|
173
|
-
right: -4px;
|
|
174
|
-
border: 2px solid transparent;
|
|
175
|
-
}
|
|
176
|
-
|
|
177
|
-
&:focus-visible {
|
|
178
|
-
outline: none;
|
|
179
|
-
&:after {
|
|
180
|
-
border-radius: 8px;
|
|
181
|
-
content: '';
|
|
182
|
-
position: absolute;
|
|
183
|
-
top: -5px;
|
|
184
|
-
bottom: -5px;
|
|
185
|
-
left: -5px;
|
|
186
|
-
right: -5px;
|
|
187
|
-
border: 2px solid `.concat(c.colors.primary600,`;
|
|
188
|
-
}
|
|
189
|
-
}
|
|
190
|
-
`)}},,function(a,l,n){"use strict";n.r(l),n.d(l,"VisuallyHidden",function(){return c});var i,o=n(3),M=n.n(o),s=n(2),c=n.n(s).a.div(i||(i=M()([`
|
|
191
|
-
border: 0;
|
|
192
|
-
clip: rect(0 0 0 0);
|
|
193
|
-
height: 1px;
|
|
194
|
-
margin: -1px;
|
|
195
|
-
overflow: hidden;
|
|
196
|
-
padding: 0;
|
|
197
|
-
position: absolute;
|
|
198
|
-
width: 1px;
|
|
199
|
-
`])))},function(a,l,n){"use strict";var i=n(20);function o(){}function M(){}M.resetWarningCache=o,a.exports=function(){function s(h,j,p,r,N,f){if(f!==i){var v=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 v.name="Invariant Violation",v}}function c(){return s}s.isRequired=s;var u={array:s,bool:s,func:s,number:s,object:s,string:s,symbol:s,any:s,arrayOf:c,element:s,elementType:s,instanceOf:c,node:s,objectOf:c,oneOf:c,oneOfType:c,shape:c,exact:c,checkPropTypes:M,resetWarningCache:o};return u.PropTypes=u,u}},function(a,l,n){"use strict";a.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(a,l){a.exports=function(n,i){(i==null||i>n.length)&&(i=n.length);for(var o=0,M=new Array(i);o<i;o++)M[o]=n[o];return M},a.exports.default=a.exports,a.exports.__esModule=!0},function(a,l,n){var i=n(21);a.exports=function(o,M){if(o){if(typeof o=="string")return i(o,M);var s=Object.prototype.toString.call(o).slice(8,-1);return s==="Object"&&o.constructor&&(s=o.constructor.name),s==="Map"||s==="Set"?Array.from(o):s==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s)?i(o,M):void 0}},a.exports.default=a.exports,a.exports.__esModule=!0},function(a,l,n){"use strict";n.r(l),n.d(l,"Stack",function(){return A});var i,o,M=n(6),s=n.n(M),c=n(4),u=n.n(c),h=n(3),j=n.n(h),p=n(1),r=n.n(p),N=n(0),f=n.n(N),v=n(2),y=n.n(v),x=n(9),e=["horizontal","spacing","size"],t={size:!0},d=y()(x.Flex).withConfig({shouldForwardProp:function(D,L){return!t[D]&&L(D)}})(i||(i=j()([`
|
|
200
|
-
& > * {
|
|
201
|
-
margin-top: 0;
|
|
202
|
-
margin-bottom: 0;
|
|
203
|
-
}
|
|
204
|
-
|
|
205
|
-
& > * + * {
|
|
206
|
-
margin-top: `,`;
|
|
207
|
-
}
|
|
208
|
-
`])),function(D){var L=D.theme,R=D.spacing;return L.spaces[R]}),O=y()(x.Flex).withConfig({shouldForwardProp:function(D,L){return!t[D]&&L(D)}})(o||(o=j()([`
|
|
209
|
-
& > * {
|
|
210
|
-
margin-left: 0;
|
|
211
|
-
margin-right: 0;
|
|
212
|
-
}
|
|
213
|
-
|
|
214
|
-
& > * + * {
|
|
215
|
-
margin-left: `,`;
|
|
216
|
-
}
|
|
217
|
-
`])),function(D){var L=D.theme,R=D.spacing;return L.spaces[R]}),A=Object(p.forwardRef)(function(D,L){var R=D.horizontal,Q=D.spacing,b=D.size,E=u()(D,e);return b&&ae.warn('Deprecation warning: Usage of "size" prop in Stack component is deprecated. This is discouraged and will be removed in the next major release. Please use "spacing" instead'),R?r.a.createElement(O,s()({ref:L,spacing:Q||b},E)):r.a.createElement(d,s()({direction:"column",alignItems:"stretch",ref:L,spacing:Q||b},E))});A.displayName="Stack",A.defaultProps={horizontal:!1,size:void 0,spacing:void 0},A.propTypes={horizontal:f.a.bool,size:f.a.number,spacing:f.a.number}},function(a,l){a.exports=function(n,i){if(n==null)return{};var o,M,s={},c=Object.keys(n);for(M=0;M<c.length;M++)o=c[M],i.indexOf(o)>=0||(s[o]=n[o]);return s},a.exports.default=a.exports,a.exports.__esModule=!0},function(a,l){a.exports=function(n){if(Array.isArray(n))return n},a.exports.default=a.exports,a.exports.__esModule=!0},function(a,l){a.exports=function(n,i){var o=n==null?null:typeof Symbol!="undefined"&&n[Symbol.iterator]||n["@@iterator"];if(o!=null){var M,s,c=[],u=!0,h=!1;try{for(o=o.call(n);!(u=(M=o.next()).done)&&(c.push(M.value),!i||c.length!==i);u=!0);}catch(j){h=!0,s=j}finally{try{u||o.return==null||o.return()}finally{if(h)throw s}}return c}},a.exports.default=a.exports,a.exports.__esModule=!0},function(a,l){a.exports=function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
218
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)},a.exports.default=a.exports,a.exports.__esModule=!0},function(a,l,n){"use strict";n.d(l,"a",function(){return i});var i={input:{S:"".concat(2,"rem"),M:"".concat(2.5,"rem")},accordions:{S:"".concat(3,"rem"),M:"".concat(5.5,"rem")}}},,function(a,l,n){"use strict";n.r(l),n.d(l,"Portal",function(){return c});var i=n(10),o=n.n(i),M=n(1),s=n(35),c=function(u){var h=u.children,j=Object(M.useRef)(null),p=Object(M.useState)(!1),r=o()(p,2),N=r[0],f=r[1];return Object(M.useLayoutEffect)(function(){return j.current=document.createElement("div"),j.current.setAttribute("data-react-portal","true"),document.body.appendChild(j.current),f(!0),function(){var v;(v=j.current)===null||v===void 0||v.remove()}},[]),N&&j.current?Object(s.createPortal)(h,j.current):null}},function(a,l){a.exports=function(n,i,o){return i in n?Object.defineProperty(n,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[i]=o,n},a.exports.default=a.exports,a.exports.__esModule=!0},function(a,l){a.exports=ue},,function(a,l,n){"use strict";n.d(l,"b",function(){return R}),n.d(l,"a",function(){return Q});var i,o,M=n(6),s=n.n(M),c=n(4),u=n.n(c),h=n(3),j=n.n(h),p=n(1),r=n.n(p),N=n(2),f=n.n(N),v=n(0),y=n.n(v),x=n(28),e=n(16),t=n(12),d=n(9),O=n(5),A=["endAction","startAction","disabled","onChange","size"],D={S:6.5,M:10.5},L=f.a.input(i||(i=j()([`
|
|
219
|
-
border: none;
|
|
220
|
-
border-radius: `,`;
|
|
221
|
-
padding-bottom: `,`;
|
|
222
|
-
padding-left: `,`;
|
|
223
|
-
padding-right: `,`;
|
|
224
|
-
padding-top: `,`;
|
|
225
|
-
cursor: `,`;
|
|
226
|
-
|
|
227
|
-
color: `,`;
|
|
228
|
-
font-weight: 400;
|
|
229
|
-
// TODO: Make sure to use the theme when it's ready
|
|
230
|
-
font-size: `,`rem;
|
|
231
|
-
display: block;
|
|
232
|
-
width: 100%;
|
|
233
|
-
background: inherit;
|
|
234
|
-
|
|
235
|
-
::placeholder {
|
|
236
|
-
color: `,`;
|
|
237
|
-
opacity: 1;
|
|
238
|
-
}
|
|
239
|
-
|
|
240
|
-
&[aria-disabled='true'] {
|
|
241
|
-
color: inherit;
|
|
242
|
-
}
|
|
243
|
-
|
|
244
|
-
//focus managed by InputWrapper
|
|
245
|
-
&:focus {
|
|
246
|
-
outline: none;
|
|
247
|
-
box-shadow: none;
|
|
248
|
-
}
|
|
249
|
-
`])),function(b){return b.theme.borderRadius},function(b){var E=b.size;return"".concat(D[E]/16,"rem")},function(b){var E=b.theme;return b.hasLeftAction?0:E.spaces[4]},function(b){var E=b.theme;return b.hasRightAction?0:E.spaces[4]},function(b){var E=b.size;return"".concat(D[E]/16,"rem")},function(b){return b["aria-disabled"]?"not-allowed":void 0},function(b){return b.theme.colors.neutral800},.875,function(b){return b.theme.colors.neutral500}),R=f()(d.Flex)(o||(o=j()([`
|
|
250
|
-
border: 1px solid `,`;
|
|
251
|
-
border-radius: `,`;
|
|
252
|
-
background: `,`;
|
|
253
|
-
`,`
|
|
254
|
-
|
|
255
|
-
`,`
|
|
256
|
-
`])),function(b){var E=b.theme;return b.hasError?E.colors.danger600:E.colors.neutral200},function(b){return b.theme.borderRadius},function(b){return b.theme.colors.neutral0},Object(e.c)(),function(b){var E=b.theme;return b.disabled?`
|
|
257
|
-
color: `.concat(E.colors.neutral600,`;
|
|
258
|
-
background: `).concat(E.colors.neutral150,`;
|
|
259
|
-
|
|
260
|
-
`):void 0}),Q=Object(p.forwardRef)(function(b,E){var X,z=b.endAction,C=b.startAction,B=b.disabled,F=b.onChange,m=b.size,T=u()(b,A),w=Object(t.b)(),S=w.id,U=w.error,_=w.hint,G=w.name;U?X="".concat(S,"-error"):_&&(X="".concat(S,"-hint"));var H=Boolean(U);return r.a.createElement(R,{size:m,justifyContent:"space-between",hasError:H,disabled:B},C&&r.a.createElement(O.Box,{paddingLeft:3,paddingRight:2},C),r.a.createElement(L,s()({id:S,name:G,ref:E,"aria-describedby":X,"aria-invalid":H,"aria-disabled":B,hasLeftAction:Boolean(C),hasRightAction:Boolean(z),onChange:function(V){B||F(V)},size:m},T)),z&&r.a.createElement(O.Box,{paddingLeft:2,paddingRight:3},z))});Q.displayName="FieldInput",Q.defaultProps={disabled:!1,endAction:void 0,size:"M",startAction:void 0,onChange:function(){}},Q.propTypes={disabled:y.a.bool,endAction:y.a.element,onChange:y.a.func,size:y.a.oneOf(Object.keys(x.a.input)),startAction:y.a.element}},function(a,l){a.exports=ce},function(a,l){a.exports=se},,,,function(a,l,n){"use strict";n.r(l),n.d(l,"position",function(){return D}),n.d(l,"Popover",function(){return b});var i,o,M=n(6),s=n.n(M),c=n(10),u=n.n(c),h=n(4),j=n.n(h),p=n(3),r=n.n(p),N=n(1),f=n.n(N),v=n(0),y=n.n(v),x=n(2),e=n.n(x),t=n(5),d=n(30),O=n(48),A=["source","children","spacing","fullWidth","onReachEnd","intersectionId","centered"],D=function(z,C,B,F){var m=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0,T=z.getBoundingClientRect(),w=T.top+T.height+window.pageYOffset+m,S=T.left+window.pageXOffset;if(!C)return{left:S,top:w,width:B?T.width:void 0};var U=C.getBoundingClientRect();if(F){var _=10,G=U.width+_,H=(T.width-G)/2;S=T.left+H+window.pageXOffset}U.left<0?S=T.left+window.pageXOffset:U.left+U.width>window.innerWidth&&(S=window.innerWidth-U.width-20);var V=window.innerHeight+window.pageYOffset;if(w+U.height+m>V){var nn=10;w=window.pageYOffset+T.top-U.height-nn-m}return{left:S,top:w,width:B?T.width:void 0}},L=e()(t.Box)(i||(i=r()([`
|
|
261
|
-
box-shadow: `,`;
|
|
262
|
-
position: absolute;
|
|
263
|
-
z-index: 4;
|
|
264
|
-
border: 1px solid `,`;
|
|
265
|
-
background: `,`;
|
|
266
|
-
`])),function(z){return z.theme.shadows.filterShadow},function(z){return z.theme.colors.neutral150},function(z){return z.theme.colors.neutral0}),R=e()(t.Box)(o||(o=r()([`
|
|
267
|
-
// 16 is base base size, 3 is the factor to get closer to 40px and 5 is the number of elements visible in the list
|
|
268
|
-
max-height: `,`rem;
|
|
269
|
-
overflow-y: auto;
|
|
270
|
-
overflow-x: hidden;
|
|
271
|
-
|
|
272
|
-
&::-webkit-scrollbar {
|
|
273
|
-
-webkit-appearance: none;
|
|
274
|
-
width: 4px;
|
|
275
|
-
}
|
|
276
|
-
|
|
277
|
-
&::-webkit-scrollbar-track {
|
|
278
|
-
background: `,`;
|
|
279
|
-
}
|
|
280
|
-
|
|
281
|
-
&::-webkit-scrollbar-thumb {
|
|
282
|
-
background: `,`;
|
|
283
|
-
border-radius: `,`;
|
|
284
|
-
margin-right: 10px;
|
|
285
|
-
}
|
|
286
|
-
`])),15,function(z){return z.theme.colors.neutral0},function(z){return z.theme.colors.neutral150},function(z){return z.theme.borderRadius}),Q=function(z){var C,B,F,m,T,w,S=z.source,U=z.children,_=z.spacing,G=z.fullWidth,H=z.onReachEnd,V=z.intersectionId,nn=z.centered,ln=j()(z,A),q=Object(N.useRef)(null),dn=Object(N.useState)(D(S.current,q.current,G,nn,_)),Z=u()(dn,2),K=Z[0],fn=K.left,Mn=K.top,Nn=K.width,yn=Z[1];Object(O.a)([S,q],function(){return yn(D(S.current,q.current,G,nn,_))}),C=q,B=H,F={selectorToWatch:"#".concat(V),skipWhen:!V||!H},m=F.selectorToWatch,T=F.skipWhen,w=T!==void 0&&T,Object(N.useEffect)(function(){if(!w){var Cn={root:C.current,rootMargin:"0px"},gn=new IntersectionObserver(function(mn){mn.forEach(function(Tn){Tn.isIntersecting&&C.current.scrollHeight>C.current.clientHeight&&B(Tn)})},Cn),On=C.current.querySelector(m);return gn.observe(On),function(){gn.disconnect()}}},[w,B,m]);var Dn={left:"".concat(fn,"px"),top:"".concat(Mn,"px"),width:Nn?"".concat(Nn,"px"):void 0};return f.a.createElement(L,{style:Dn,hasRadius:!0,background:"neutral0",padding:1},f.a.createElement(R,s()({ref:q},ln),U,V&&H&&f.a.createElement(t.Box,{id:V,width:"100%",height:"1px"})))},b=function(z){return f.a.createElement(d.Portal,null,f.a.createElement(Q,z))},E={fullWidth:!1,intersectionId:void 0,onReachEnd:void 0,centered:!1},X={centered:y.a.bool,children:y.a.node.isRequired,fullWidth:y.a.bool,intersectionId:y.a.string,onReachEnd:y.a.func,source:y.a.shape({current:(typeof Element=="undefined"?y.a.any:y.a.instanceOf(Element)).isRequired}).isRequired,spacing:y.a.number};Q.propTypes=X,Q.defaultProps=E,b.propTypes=X,b.defaultProps=E},,,,,,,,function(a,l,n){"use strict";n.d(l,"a",function(){return o});var i=n(1),o=function(M,s){Object(i.useEffect)(function(){var c=new ResizeObserver(s);return Array.isArray(M)?M.map(function(u){u.current&&c.observe(u.current)}):M.current&&c.observe(M.current),function(){c.disconnect()}},[])}},,,,,,,function(a,l,n){"use strict";n.d(l,"c",function(){return N}),n.d(l,"b",function(){return f}),n.d(l,"a",function(){return v});var i,o,M,s=n(3),c=n.n(s),u=n(2),h=n.n(u),j=n(5),p=n(9),r=n(16),N=h()(p.Flex)(i||(i=c()([`
|
|
287
|
-
position: relative;
|
|
288
|
-
border: 1px solid `,`;
|
|
289
|
-
padding-right: `,`;
|
|
290
|
-
border-radius: `,`;
|
|
291
|
-
background: `,`;
|
|
292
|
-
overflow: hidden;
|
|
293
|
-
min-height: `,`;
|
|
294
|
-
|
|
295
|
-
`,`
|
|
296
|
-
|
|
297
|
-
`,`
|
|
298
|
-
`])),function(y){var x=y.theme;return y.hasError?x.colors.danger600:x.colors.neutral200},function(y){return y.theme.spaces[3]},function(y){return y.theme.borderRadius},function(y){return y.theme.colors.neutral0},Object(r.b)("input"),function(y){var x=y.theme;return y.disabled?`
|
|
299
|
-
color: `.concat(x.colors.neutral600,`;
|
|
300
|
-
background: `).concat(x.colors.neutral150,`;
|
|
301
|
-
`):void 0},Object(r.c)()),f=h()(j.Box)(o||(o=c()([`
|
|
302
|
-
background: transparent;
|
|
303
|
-
border: none;
|
|
304
|
-
position: relative;
|
|
305
|
-
z-index: 1;
|
|
306
|
-
|
|
307
|
-
svg {
|
|
308
|
-
height: `,`rem;
|
|
309
|
-
width: `,`rem;
|
|
310
|
-
}
|
|
311
|
-
|
|
312
|
-
svg path {
|
|
313
|
-
fill: `,`;
|
|
314
|
-
}
|
|
315
|
-
`])),11/16,11/16,function(y){return y.theme.colors.neutral600}),v=h()(f)(M||(M=c()([`
|
|
316
|
-
display: flex;
|
|
317
|
-
background: none;
|
|
318
|
-
border: none;
|
|
319
|
-
cursor: `,`;
|
|
320
|
-
|
|
321
|
-
svg {
|
|
322
|
-
width: `,`rem;
|
|
323
|
-
}
|
|
324
|
-
`])),function(y){return y.disabled?"not-allowed":void 0},6/16)},,,,,,,,,,,,,,,,,,,function(a,l,n){"use strict";function i(c){return typeof c=="object"&&c!=null&&c.nodeType===1}function o(c,u){return(!u||c!=="hidden")&&c!=="visible"&&c!=="clip"}function M(c,u){if(c.clientHeight<c.scrollHeight||c.clientWidth<c.scrollWidth){var h=getComputedStyle(c,null);return o(h.overflowY,u)||o(h.overflowX,u)||function(j){var p=function(r){if(!r.ownerDocument||!r.ownerDocument.defaultView)return null;try{return r.ownerDocument.defaultView.frameElement}catch(N){return null}}(j);return!!p&&(p.clientHeight<j.scrollHeight||p.clientWidth<j.scrollWidth)}(c)}return!1}function s(c,u,h,j,p,r,N,f){return r<c&&N>u||r>c&&N<u?0:r<=c&&f<=h||N>=u&&f>=h?r-c-j:N>u&&f<h||r<c&&f>h?N-u+p:0}l.a=function(c,u){var h=window,j=u.scrollMode,p=u.block,r=u.inline,N=u.boundary,f=u.skipOverflowHiddenElements,v=typeof N=="function"?N:function(Dn){return Dn!==N};if(!i(c))throw new TypeError("Invalid target");for(var y=document.scrollingElement||document.documentElement,x=[],e=c;i(e)&&v(e);){if((e=e.parentElement)===y){x.push(e);break}e!=null&&e===document.body&&M(e)&&!M(document.documentElement)||e!=null&&M(e,f)&&x.push(e)}for(var t=h.visualViewport?h.visualViewport.width:innerWidth,d=h.visualViewport?h.visualViewport.height:innerHeight,O=window.scrollX||pageXOffset,A=window.scrollY||pageYOffset,D=c.getBoundingClientRect(),L=D.height,R=D.width,Q=D.top,b=D.right,E=D.bottom,X=D.left,z=p==="start"||p==="nearest"?Q:p==="end"?E:Q+L/2,C=r==="center"?X+R/2:r==="end"?b:X,B=[],F=0;F<x.length;F++){var m=x[F],T=m.getBoundingClientRect(),w=T.height,S=T.width,U=T.top,_=T.right,G=T.bottom,H=T.left;if(j==="if-needed"&&Q>=0&&X>=0&&E<=d&&b<=t&&Q>=U&&E<=G&&X>=H&&b<=_)return B;var V=getComputedStyle(m),nn=parseInt(V.borderLeftWidth,10),ln=parseInt(V.borderTopWidth,10),q=parseInt(V.borderRightWidth,10),dn=parseInt(V.borderBottomWidth,10),Z=0,K=0,fn="offsetWidth"in m?m.offsetWidth-m.clientWidth-nn-q:0,Mn="offsetHeight"in m?m.offsetHeight-m.clientHeight-ln-dn:0;if(y===m)Z=p==="start"?z:p==="end"?z-d:p==="nearest"?s(A,A+d,d,ln,dn,A+z,A+z+L,L):z-d/2,K=r==="start"?C:r==="center"?C-t/2:r==="end"?C-t:s(O,O+t,t,nn,q,O+C,O+C+R,R),Z=Math.max(0,Z+A),K=Math.max(0,K+O);else{Z=p==="start"?z-U-ln:p==="end"?z-G+dn+Mn:p==="nearest"?s(U,G,w,ln,dn+Mn,z,z+L,L):z-(U+w/2)+Mn/2,K=r==="start"?C-H-nn:r==="center"?C-(H+S/2)+fn/2:r==="end"?C-_+q+fn:s(H,_,S,nn,q+fn,C,C+R,R);var Nn=m.scrollLeft,yn=m.scrollTop;z+=yn-(Z=Math.max(0,Math.min(yn+Z,m.scrollHeight-w+Mn))),C+=Nn-(K=Math.max(0,Math.min(Nn+K,m.scrollWidth-S+fn)))}B.push({el:m,top:Z,left:K})}return B}},,,,,function(a,l,n){"use strict";n.d(l,"a",function(){return O});var i,o,M=n(6),s=n.n(M),c=n(4),u=n.n(c),h=n(3),j=n.n(h),p=n(1),r=n.n(p),N=n(0),f=n.n(N),v=n(2),y=n.n(v),x=n(18),e=["children","small"],t=Object(v.keyframes)(i||(i=j()([`
|
|
325
|
-
from {
|
|
326
|
-
transform: rotate(0deg);
|
|
327
|
-
}
|
|
328
|
-
to {
|
|
329
|
-
transform: rotate(359deg);
|
|
330
|
-
}
|
|
331
|
-
`]))),d=y.a.img(o||(o=j()([`
|
|
332
|
-
animation: `,` 1s infinite linear;
|
|
333
|
-
will-change: transform;
|
|
334
|
-
`,`
|
|
335
|
-
`])),t,function(A){var D=A.small,L=A.theme;return D&&"width: ".concat(L.spaces[6],"; height: ").concat(L.spaces[6],";")}),O=Object(p.forwardRef)(function(A,D){var L=A.children,R=A.small,Q=u()(A,e);return r.a.createElement("div",s()({role:"alert","aria-live":"assertive",ref:D},Q),r.a.createElement(x.VisuallyHidden,null,L),r.a.createElement(d,{src:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNjMiIGhlaWdodD0iNjMiIHZpZXdCb3g9IjAgMCA2MyA2MyIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTQyLjU1NjMgMTEuOTgxNkMzOS40ODQgMTAuMzA3MSAzNS44NTc1IDkuMjkwOTcgMzIuMzM1NCA5LjEzNTIxQzI4LjY0NDMgOC45Mjg4OCAyNC44Mjk1IDkuNzIzMTggMjEuMzMzNiAxMS40MTI5QzIwLjkxMjMgMTEuNTkwMSAyMC41Mzc2IDExLjgxMDEgMjAuMTcyMiAxMi4wMjQ5TDIwLjAxMDggMTIuMTE3OUMxOS44Nzc0IDEyLjE5NTEgMTkuNzQ0MSAxMi4yNzI0IDE5LjYwOCAxMi4zNTM2QzE5LjMyNTMgMTIuNTE0NiAxOS4wNDkyIDEyLjY3NDQgMTguNzU0NCAxMi44NzkyQzE4LjU0NjMgMTMuMDMyOSAxOC4zMzk1IDEzLjE3NTkgMTguMTMwMSAxMy4zMjNDMTcuNTY1OCAxMy43MjA4IDE2Ljk4NjggMTQuMTMxNyAxNi40OTgzIDE0LjU5NzlDMTQuODQ3NiAxNS45NTI0IDEzLjU1NzEgMTcuNjA3NSAxMi42MDcxIDE4LjkyMTRDMTAuNDM2NSAyMi4xN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use strict";n.r(l),n.d(l,"Combobox",function(){return vn}),n.d(l,"CreatableCombobox",function(){return Sn}),n.d(l,"ComboboxOption",function(){return gn});var i=n(31),o=n.n(i),M=n(6),s=n.n(M),c=n(10),u=n.n(c),h=n(4),j=n.n(h),p=n(1),r=n.n(p),N=n(0),f=n.n(N),v=n(14),y=n(32),x=n.n(y),e=n(36),t=n.n(e),d=n(74),O=n(11),A="Close",D="CloseSelect",L="First",R="Last",Q="Next",b="Open",E="Previous",X="Type";function z(){var g=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],I=arguments.length>1?arguments[1]:void 0,k=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],W=String(I!=null?I:"").toLowerCase();return W?g.filter(function(rn){return rn.props.children.toString().toLowerCase().includes(W)&&k.indexOf(rn)<0}):g}function C(g,I,k){switch(k){case L:return 0;case R:return I;case E:return Math.max(0,g-1);case Q:return Math.min(I,g+1);default:return g}}function B(g){Object(d.a)(g,{scrollMode:"if-needed",block:"nearest",inline:"nearest"}).forEach(function(I){var k=I.el,W=I.top,rn=I.left;k.scrollTop=W,k.scrollLeft=rn})}var F,m,T,w,S,U=n(9),_=n(55),G=n(40),H=n(5),V=n(8),nn=n(79),ln=n(3),q=n.n(ln),dn=n(2),Z=n.n(dn),K=n(16),fn=Z()(U.Flex)(F||(F=q()([`
|
|
336
|
-
position: relative;
|
|
337
|
-
border: 1px solid `,`;
|
|
338
|
-
padding-right: `,`;
|
|
339
|
-
padding-left: `,`;
|
|
340
|
-
border-radius: `,`;
|
|
341
|
-
background: `,`;
|
|
342
|
-
|
|
343
|
-
`,`
|
|
344
|
-
|
|
345
|
-
`,`
|
|
346
|
-
`])),function(g){var I=g.theme;return g.hasError?I.colors.danger600:I.colors.neutral200},function(g){return g.theme.spaces[3]},function(g){return g.theme.spaces[3]},function(g){return g.theme.borderRadius},function(g){return g.theme.colors.neutral0},function(g){var I=g.theme;return g.$disabled?`
|
|
347
|
-
color: `.concat(I.colors.neutral600,`;
|
|
348
|
-
background: `).concat(I.colors.neutral150,`;
|
|
349
|
-
`):void 0},Object(K.c)()),Mn=Z.a.div(m||(m=q()([`
|
|
350
|
-
padding: 1px 2px;
|
|
351
|
-
grid-area: 1 / 1 / 2 / 3;
|
|
352
|
-
`]))),Nn=Z()(U.Flex)(T||(T=q()([`
|
|
353
|
-
display: grid;
|
|
354
|
-
flex: 1 1 0%;
|
|
355
|
-
position: relative;
|
|
356
|
-
`]))),yn=Z.a.input(w||(w=q()([`
|
|
357
|
-
display: inline-grid;
|
|
358
|
-
grid-area: 1 / 1 / 2 / 3;
|
|
359
|
-
grid-template-columns: 0px min-content;
|
|
360
|
-
background: transparent;
|
|
361
|
-
min-height: `,`rem;
|
|
362
|
-
border: none;
|
|
363
|
-
flex: 1;
|
|
364
|
-
font-size: `,`rem;
|
|
365
|
-
color: `,`;
|
|
366
|
-
outline: none;
|
|
367
|
-
&:focus-visible {
|
|
368
|
-
outline: none;
|
|
369
|
-
box-shadow: none;
|
|
370
|
-
outline-offset: 0;
|
|
371
|
-
}
|
|
372
|
-
&[aria-disabled='true'] {
|
|
373
|
-
background: inherit;
|
|
374
|
-
color: inherit;
|
|
375
|
-
cursor: not-allowed;
|
|
376
|
-
}
|
|
377
|
-
`])),2.5,.875,function(g){return g.theme.colors.neutral800}),Dn=Z()(H.Box)(S||(S=q()([`
|
|
378
|
-
width: 100%;
|
|
379
|
-
border: none;
|
|
380
|
-
text-align: left;
|
|
381
|
-
outline-offset: -3px;
|
|
382
|
-
`,`
|
|
383
|
-
|
|
384
|
-
&:hover {
|
|
385
|
-
background: `,`;
|
|
386
|
-
}
|
|
387
|
-
`])),function(g){var I=g.isSelected,k=g.theme;return I&&"background: ".concat(k.colors.primary100,";")},function(g){return g.theme.colors.primary100}),Cn=["isSelected","children"],gn=Object(p.forwardRef)(function(g,I){var k=g.isSelected,W=g.children,rn=j()(g,Cn);return r.a.createElement(Dn,s()({hasRadius:!0,paddingLeft:4,paddingRight:4,paddingTop:2,paddingBottom:2,role:"option",background:"neutral0",isSelected:k,ref:I},rn),r.a.createElement(V.Typography,{textColor:k?"primary600":"neutral800",fontWeight:k?"bold":null},W))});gn.defaultProps={isSelected:!1},gn.propTypes={children:f.a.oneOfType([f.a.string,f.a.number]).isRequired,isSelected:f.a.bool},gn.displayName="ComboboxOption";var On=function(g){var I=g.options,k=g.activeOptionRef;return Object(p.useEffect)(function(){k.current&&B(k.current)},[]),I};On.defaultProps={activeOptionRef:void 0},On.propTypes={options:f.a.array.isRequired};var mn=n(15),Tn=n(23),le=n(18),de=["children","clearLabel","creatable","createMessage","disabled","error","hasMoreItems","hint","label","labelAction","loading","loadingMessage","noOptionsMessage","onChange","onClear","onCreateOption","onInputChange","onLoadMore","placeholder","required","value"];function Wn(g,I){var k=Object.keys(g);if(Object.getOwnPropertySymbols){var W=Object.getOwnPropertySymbols(g);I&&(W=W.filter(function(rn){return Object.getOwnPropertyDescriptor(g,rn).enumerable})),k.push.apply(k,W)}return k}function Bn(g){for(var I=1;I<arguments.length;I++){var k=arguments[I]!=null?arguments[I]:{};I%2?Wn(Object(k),!0).forEach(function(W){o()(g,W,k[W])}):Object.getOwnPropertyDescriptors?Object.defineProperties(g,Object.getOwnPropertyDescriptors(k)):Wn(Object(k)).forEach(function(W){Object.defineProperty(g,W,Object.getOwnPropertyDescriptor(k,W))})}return g}var vn=function(g){var I=g.children,k=g.clearLabel,W=g.creatable,rn=g.createMessage,an=g.disabled,kn=g.error,fe=g.hasMoreItems,Hn=g.hint,bn=g.label,Me=g.labelAction,Qn=g.loading,ge=g.loadingMessage,pe=g.noOptionsMessage,Fn=g.onChange,_n=g.onClear,he=g.onCreateOption,Vn=g.onInputChange,Ne=g.onLoadMore,ye=g.placeholder,me=g.required,pn=g.value,be=j()(g,de),je=Object(p.useState)(0),qn=u()(je,2),J=qn[0],Zn=qn[1],ze=Object(p.useState)(null),Xn=u()(ze,2),De=Xn[0],Oe=Xn[1],ve=Object(p.useState)(I),Gn=u()(ve,2),tn=Gn[0],Kn=Gn[1],xe=Object(p.useState)(!1),$n=u()(xe,2),jn=$n[0],Te=$n[1],Ie=Object(p.useState)(""),Jn=u()(Ie,2),$=Jn[0],In=Jn[1],zn=Object(p.useRef)(),wn=Object(p.useRef)(!1),xn=Object(p.useRef)(),ne=Object(p.useRef)(),we=Object(p.useRef)(),ee=Object(p.useRef)(!0),en=Object(v.a)("combobox"),Un="".concat(en,"-label");if(!bn&&!be["aria-label"])throw new Error('The Combobox component needs a "label" or an "aria-label" props');Object(p.useEffect)(function(){Kn(z(I,$))},[$,I]),Object(p.useEffect)(function(){jn&&zn.current&&B(zn.current)},[J]),Object(p.useLayoutEffect)(function(){ee.current&&(ee.current=!1)},[pn]);var re,Yn,Ee=jn?"".concat(en,"-").concat(J):"",te=function(){Fn(null),In("")},En=function(P){Zn(P)},oe=function(){wn.current=!0},Rn=function(P){var Y=tn[P];if(In(""),Y)return Fn(Y.props.value),hn(!1);W&&(he($),hn(!1))},hn=function(P){var Y=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1];Te(P),Y&&xn.current.focus()},Ae=p.Children.toArray(tn).map(function(P,Y){var un=J===Y;return Object(p.cloneElement)(P,{id:"".concat(en,"-").concat(Y),"aria-selected":De===Y,"aria-posinset":Y+1,"aria-setsize":p.Children.toArray(tn).length,ref:function(cn){un&&(zn.current=cn)},onClick:function(){return En(cn=Y),void Rn(cn);var cn},onMouseDown:oe,isSelected:un})});return r.a.createElement(mn.Field,{hint:Hn,error:kn,id:en},r.a.createElement(le.VisuallyHidden,{"aria-live":"polite","aria-atomic":"false","aria-relevant":"additions text"},pn),r.a.createElement(Tn.Stack,{spacing:bn||Hn||kn?1:0},bn&&r.a.createElement(mn.FieldLabel,{action:Me,required:me,id:Un},bn),r.a.createElement(fn,{ref:ne,$disabled:an,hasError:kn},r.a.createElement(Nn,{wrap:"wrap"},!$&&pn&&r.a.createElement(Mn,{id:"".concat(en,"-selected-value")},r.a.createElement(V.Typography,null,(Yn=I.find(function(P){var Y;return((Y=P.props)===null||Y===void 0?void 0:Y.value.toLowerCase())===pn.toLowerCase()}).props)===null||Yn===void 0?void 0:Yn.children)),r.a.createElement(yn,{"aria-activedescendant":Ee,"aria-autocomplete":"list","aria-controls":"".concat(en,"-listbox"),"aria-disabled":an,"aria-expanded":jn,"aria-haspopup":"listbox","aria-labelledby":bn?Un:void 0,id:en,onBlur:an?void 0:function(P){P.preventDefault(),pn&&!wn.current&&In(""),wn.current?wn.current=!1:hn(!1,!1)},onClick:an?void 0:function(P){P.preventDefault(),hn(P,!0)},onInput:an?void 0:function(P){Vn&&Vn(P);var Y=xn.current.value;Kn(z(I,Y)),Zn(0),Oe(null),$!==Y&&In(Y),jn||hn(!0,!1)},onKeyDown:an?void 0:function(P){var Y=P.key,un=W&&$?tn.length:tn.length-1,cn=function(on,Le){return Le||on!==O.a.DOWN?on===O.a.DOWN?Q:on===O.a.UP?E:on===O.a.HOME?L:on===O.a.END?R:on===O.a.ESCAPE?A:on===O.a.ENTER?D:on===O.a.BACKSPACE||on===O.a.CLEAR||on.length===1?X:void 0:b}(Y,jn);switch(pn&&!$&&Y===O.a.BACKSPACE&&te(),cn){case Q:return En(J===un?0:C(J,un,cn));case E:return En(J===0?un:C(J,un,cn));case R:case L:return En(J===un?0:C(J,un,cn));case D:return P.preventDefault(),void Rn(J);case A:return P.preventDefault(),hn(!1);case b:return hn(!0);default:return}},placeholder:pn?"":ye,readOnly:an,ref:xn,role:"combobox",autoComplete:"off",autoCorrect:"off",spellCheck:"off",type:"text",value:$})),r.a.createElement(U.Flex,null,(pn||$)&&r.a.createElement(_.b,{id:"".concat(en,"-clear"),"aria-label":k,disabled:an,paddingLeft:3,as:"button",onClick:function(){xn.current.focus(),_n&&_n(),te()},type:"button"},r.a.createElement(t.a,null)),r.a.createElement(_.a,{disabled:an,paddingLeft:3,"aria-hidden":!0,as:"button",onClick:function(){xn.current.focus(),hn(!0)},tabIndex:-1,type:"button"},r.a.createElement(x.a,null)))),r.a.createElement(mn.FieldHint,null),r.a.createElement(mn.FieldError,null)),jn&&r.a.createElement(G.Popover,{id:"".concat(en,"-popover"),source:ne,spacing:4,fullWidth:!0,intersectionId:"".concat(en,"-listbox-popover-intersection"),onReachEnd:fe&&!Qn?Ne:void 0},r.a.createElement("div",{role:"listbox",ref:we,id:"".concat(en,"-listbox"),"aria-labelledby":bn?Un:void 0},(Boolean(tn.length)||W)&&r.a.createElement(r.a.Fragment,null,r.a.createElement(On,{activeOptionRef:zn,options:Ae}),(re=tn.findIndex(function(P){var Y;return((Y=P.props)===null||Y===void 0?void 0:Y.children)===$}),$&&re===-1&&W&&r.a.createElement(gn,{isSelected:J===tn.length,ref:function(P){J===tn.length&&(zn.current=P)},onMouseDown:oe,onClick:function(){return Rn()},taindex:0},rn($)))),!Boolean(tn.length)&&!W&&!Qn&&r.a.createElement(H.Box,{paddingLeft:4,paddingRight:4,paddingTop:2,paddingBottom:2,ref:zn},r.a.createElement(V.Typography,{textColor:"neutral800"},pe($))),Qn&&r.a.createElement(U.Flex,{justifyContent:"center",alignItems:"center",paddingTop:2,paddingBottom:2},r.a.createElement(nn.a,{small:!0},ge)))))},Sn=function(g){return r.a.createElement(vn,s()({},g,{creatable:!0}))};vn.defaultProps=Sn.defaultProps={"aria-label":void 0,clearLabel:"clear",creatable:!1,createMessage:function(g){return'Create "'.concat(g,'"')},disabled:!1,error:void 0,hasMoreItems:!1,hint:void 0,label:void 0,loading:!1,loadingMessage:"Loading content...",noOptionsMessage:function(){return"No results found"},onClear:void 0,onCreateOption:void 0,onInputChange:void 0,onLoadMore:void 0,placeholder:"Select or enter a value",value:void 0},vn.propTypes={"aria-label":f.a.string,children:f.a.oneOfType([f.a.arrayOf(f.a.node),f.a.node]),clearLabel:f.a.string,creatable:f.a.bool,createMessage:f.a.func,disabled:f.a.bool,error:f.a.string,hasMoreItems:f.a.bool,hint:f.a.oneOfType([f.a.string,f.a.node,f.a.arrayOf(f.a.node)]),label:f.a.string,labelAction:f.a.element,loading:f.a.bool,loadingMessage:f.a.string,noOptionsMessage:f.a.func,onChange:f.a.func.isRequired,onClear:f.a.func,onCreateOption:f.a.func,onInputChange:f.a.func,onLoadMore:f.a.func,placeholder:f.a.string,value:f.a.string},Sn.propTypes=Bn(Bn({},vn.propTypes),{},{onCreateOption:f.a.func.isRequired})}])})}}]);
|