payload 0.10.3-beta.0 → 0.10.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (59) hide show
  1. package/CHANGELOG.md +15 -30
  2. package/components/index.js +1 -1
  3. package/components/styles.css +1 -1
  4. package/dist/admin/components/elements/Button/index.js +2 -0
  5. package/dist/admin/components/elements/Button/types.d.ts +1 -1
  6. package/dist/admin/components/elements/Popup/index.js +2 -1
  7. package/dist/admin/components/elements/Popup/types.d.ts +1 -0
  8. package/dist/admin/components/elements/ReactSelect/index.js +2 -1
  9. package/dist/admin/components/elements/ReactSelect/types.d.ts +1 -0
  10. package/dist/admin/components/elements/UploadCard/index.js +2 -1
  11. package/dist/admin/components/elements/UploadCard/types.d.ts +1 -0
  12. package/dist/admin/components/forms/field-types/RichText/RichText.d.ts +18 -0
  13. package/dist/admin/components/forms/field-types/RichText/RichText.js +27 -22
  14. package/dist/admin/components/forms/field-types/RichText/elements/index.d.ts +10 -2
  15. package/dist/admin/components/forms/field-types/RichText/elements/index.js +2 -0
  16. package/dist/admin/components/forms/field-types/RichText/elements/isActive.js +2 -2
  17. package/dist/admin/components/forms/field-types/RichText/elements/link/index.d.ts +2 -1
  18. package/dist/admin/components/forms/field-types/RichText/elements/link/utilities.js +3 -3
  19. package/dist/admin/components/forms/field-types/RichText/elements/relationship/Button/index.js +1 -4
  20. package/dist/admin/components/forms/field-types/RichText/elements/relationship/Element/index.d.ts +1 -5
  21. package/dist/admin/components/forms/field-types/RichText/elements/relationship/Element/index.js +9 -2
  22. package/dist/admin/components/forms/field-types/RichText/elements/relationship/Element/index.scss +5 -0
  23. package/dist/admin/components/forms/field-types/RichText/elements/relationship/index.d.ts +1 -5
  24. package/dist/admin/components/forms/field-types/RichText/elements/toggle.js +2 -2
  25. package/dist/admin/components/forms/field-types/RichText/elements/upload/Button/index.d.ts +7 -0
  26. package/dist/admin/components/forms/field-types/RichText/elements/upload/Button/index.js +124 -0
  27. package/dist/admin/components/forms/field-types/RichText/elements/upload/Button/index.scss +7 -0
  28. package/dist/admin/components/forms/field-types/RichText/elements/upload/Element/index.d.ts +10 -0
  29. package/dist/admin/components/forms/field-types/RichText/elements/upload/Element/index.js +132 -0
  30. package/dist/admin/components/forms/field-types/RichText/elements/upload/Element/index.scss +45 -0
  31. package/dist/admin/components/forms/field-types/RichText/elements/upload/index.d.ts +14 -0
  32. package/dist/admin/components/forms/field-types/RichText/elements/upload/index.js +10 -0
  33. package/dist/admin/components/forms/field-types/RichText/elements/upload/modal.scss +29 -0
  34. package/dist/admin/components/forms/field-types/RichText/elements/upload/plugin.d.ts +2 -0
  35. package/dist/admin/components/forms/field-types/RichText/elements/upload/plugin.js +7 -0
  36. package/dist/admin/components/icons/Edit/index.d.ts +4 -0
  37. package/dist/admin/components/icons/Edit/index.js +7 -0
  38. package/dist/admin/components/icons/Edit/index.scss +12 -0
  39. package/dist/admin/components/icons/Upload/index.d.ts +4 -0
  40. package/dist/admin/components/icons/Upload/index.js +6 -0
  41. package/dist/admin/components/icons/Upload/index.scss +11 -0
  42. package/dist/admin/components/views/collections/List/formatFields.d.ts +1 -5
  43. package/dist/collections/buildSchema.js +4 -2
  44. package/dist/collections/operations/find.js +6 -2
  45. package/dist/collections/operations/local/update.d.ts +1 -0
  46. package/dist/collections/operations/local/update.js +3 -2
  47. package/dist/collections/operations/update.d.ts +1 -0
  48. package/dist/collections/operations/update.js +3 -3
  49. package/dist/config/schema.js +2 -1
  50. package/dist/fields/config/types.d.ts +1 -1
  51. package/dist/fields/richTextRelationshipPromise.js +2 -2
  52. package/dist/mongoose/buildSchema.d.ts +7 -2
  53. package/dist/mongoose/buildSchema.js +82 -241
  54. package/dist/uploads/imageResizer.js +2 -2
  55. package/dist/utilities/flattenWhereConstraints.d.ts +3 -0
  56. package/dist/utilities/flattenWhereConstraints.js +18 -0
  57. package/docs/fields/rich-text.mdx +7 -2
  58. package/docs/local-api/overview.mdx +5 -0
  59. package/package.json +5 -5
package/CHANGELOG.md CHANGED
@@ -1,44 +1,32 @@
1
- ## [0.10.3-beta.0](https://github.com/payloadcms/payload/compare/v0.10.0...v0.10.3-beta.0) (2021-09-21)
1
+ ## [0.10.6](https://github.com/payloadcms/payload/compare/v0.10.5...v0.10.6) (2021-09-30)
2
2
 
3
3
 
4
4
  ### Bug Fixes
5
5
 
6
- * array objects now properly save IDs ([2b8f925](https://github.com/payloadcms/payload/commit/2b8f925e81c58f6aa010bf13a318236f211ea091))
7
- * date field error message position ([03c0435](https://github.com/payloadcms/payload/commit/03c0435e3b3ecdfa0713e3e5026b80f8985ca290))
8
- * properly types optional req in local findByID ([02e7fe3](https://github.com/payloadcms/payload/commit/02e7fe3f1f3763f32f100cf2e5a8596aa16f3bd9))
9
-
10
-
11
- ### Features
12
-
13
- * adjusts empty group population to be virtual only ([8a890fd](https://github.com/payloadcms/payload/commit/8a890fdc15b646c24963a1ef7584237b1d3c5783))
14
- * defaults empty group fields to empty object ([39a8e2c](https://github.com/payloadcms/payload/commit/39a8e2c20fa7e999c89c1ab09e886d874dbfda25))
15
- * defaults empty group fields to empty object ([e39ece4](https://github.com/payloadcms/payload/commit/e39ece4823c9104bd698642e42fd9d1eab67e7b3))
16
- * exposes Pill component for re-use ([7e8df10](https://github.com/payloadcms/payload/commit/7e8df100bbf86798de292466afd4c00c455ecb35))
17
- * performance improvement while saving large docs ([901ad49](https://github.com/payloadcms/payload/commit/901ad498b47bcb8ae995ade18f2fc08cd33f0645))
6
+ * allow debug in payload config ([65bf13d](https://github.com/payloadcms/payload/commit/65bf13d7c137eafdbbeadc1d36d26b7b8389088f))
7
+ * relationship + new slate incompatibility ([f422053](https://github.com/payloadcms/payload/commit/f42205307e33916fc3b139f6ee97eb66d5d0816a))
18
8
 
19
- ## [0.10.2-beta.0](https://github.com/payloadcms/payload/compare/v0.10.0...v0.10.2-beta.0) (2021-09-15)
9
+ ## [0.10.5](https://github.com/payloadcms/payload/compare/v0.10.4...v0.10.5) (2021-09-28)
20
10
 
21
11
 
22
12
  ### Bug Fixes
23
13
 
24
- * array objects now properly save IDs ([2b8f925](https://github.com/payloadcms/payload/commit/2b8f925e81c58f6aa010bf13a318236f211ea091))
25
- * date field error message position ([03c0435](https://github.com/payloadcms/payload/commit/03c0435e3b3ecdfa0713e3e5026b80f8985ca290))
26
- * properly types optional req in local findByID ([02e7fe3](https://github.com/payloadcms/payload/commit/02e7fe3f1f3763f32f100cf2e5a8596aa16f3bd9))
14
+ * ensures that fields within non-required groups are correctly not required ([1597055](https://github.com/payloadcms/payload/commit/15970550f7b00ce0527027c362a9550ff8ad5d2a))
15
+ * index creation on localized field parent ([23e8197](https://github.com/payloadcms/payload/commit/23e81971eb94fd5b991aedb02aab84931937ae37))
16
+ * pagination estimatedCount limited to near query ([73bd698](https://github.com/payloadcms/payload/commit/73bd69870c4ff8ae92053e77ef95cfae18c142b5))
27
17
 
28
18
 
29
19
  ### Features
30
20
 
31
- * adjusts empty group population to be virtual only ([8a890fd](https://github.com/payloadcms/payload/commit/8a890fdc15b646c24963a1ef7584237b1d3c5783))
32
- * defaults empty group fields to empty object ([39a8e2c](https://github.com/payloadcms/payload/commit/39a8e2c20fa7e999c89c1ab09e886d874dbfda25))
33
- * defaults empty group fields to empty object ([e39ece4](https://github.com/payloadcms/payload/commit/e39ece4823c9104bd698642e42fd9d1eab67e7b3))
34
- * exposes Pill component for re-use ([7e8df10](https://github.com/payloadcms/payload/commit/7e8df100bbf86798de292466afd4c00c455ecb35))
35
- * performance improvement while saving large docs ([901ad49](https://github.com/payloadcms/payload/commit/901ad498b47bcb8ae995ade18f2fc08cd33f0645))
21
+ * adds rich text editor upload element ([aa76950](https://github.com/payloadcms/payload/commit/aa769500c934f4dee51a24c0cfc0297c12b5ae47))
22
+ * updates slate, finishes rte upload ([08db431](https://github.com/payloadcms/payload/commit/08db431c0c4626a0d10f4e1c7bca29fa075eedc6))
36
23
 
37
- ## [0.10.1-beta.0](https://github.com/payloadcms/payload/compare/v0.10.0...v0.10.1-beta.0) (2021-09-15)
24
+ ## [0.10.4](https://github.com/payloadcms/payload/compare/v0.10.0...v0.10.4) (2021-09-22)
38
25
 
39
26
 
40
27
  ### Bug Fixes
41
28
 
29
+ * allows image resizing if either width or height is larger ([8661115](https://github.com/payloadcms/payload/commit/866111528377808009fa71595691e6a08ec77dc5))
42
30
  * array objects now properly save IDs ([2b8f925](https://github.com/payloadcms/payload/commit/2b8f925e81c58f6aa010bf13a318236f211ea091))
43
31
  * date field error message position ([03c0435](https://github.com/payloadcms/payload/commit/03c0435e3b3ecdfa0713e3e5026b80f8985ca290))
44
32
  * properly types optional req in local findByID ([02e7fe3](https://github.com/payloadcms/payload/commit/02e7fe3f1f3763f32f100cf2e5a8596aa16f3bd9))
@@ -46,14 +34,11 @@
46
34
 
47
35
  ### Features
48
36
 
49
- * adjusts empty group population to be virtual only ([8a890fd](https://github.com/payloadcms/payload/commit/8a890fdc15b646c24963a1ef7584237b1d3c5783))
50
- * defaults empty group fields to empty object ([39a8e2c](https://github.com/payloadcms/payload/commit/39a8e2c20fa7e999c89c1ab09e886d874dbfda25))
51
- * defaults empty group fields to empty object ([e39ece4](https://github.com/payloadcms/payload/commit/e39ece4823c9104bd698642e42fd9d1eab67e7b3))
37
+ * defaults empty group fields to empty object ([8a890fd](https://github.com/payloadcms/payload/commit/8a890fdc15b646c24963a1ef7584237b1d3c5783))
38
+ * allows local update api to replace existing files with newly uploaded ones ([dbbff4c](https://github.com/payloadcms/payload/commit/dbbff4cfa41aa20077e47c8c7b87d4d00683c571))
52
39
  * exposes Pill component for re-use ([7e8df10](https://github.com/payloadcms/payload/commit/7e8df100bbf86798de292466afd4c00c455ecb35))
53
40
  * performance improvement while saving large docs ([901ad49](https://github.com/payloadcms/payload/commit/901ad498b47bcb8ae995ade18f2fc08cd33f0645))
54
41
 
55
- ## [0.10.1-beta.0](https://github.com/payloadcms/payload/compare/v0.10.0...v0.10.1-beta.0) (2021-09-12)
56
-
57
42
  # [0.10.0](https://github.com/payloadcms/payload/compare/v0.9.5...v0.10.0) (2021-09-09)
58
43
 
59
44
 
@@ -162,7 +147,7 @@ So, where your plugin may have been typed like this before:
162
147
 
163
148
  ```ts
164
149
  import { SanitizedConfig } from 'payload/config';
165
-
150
+
166
151
  const plugin = (config: SanitizedConfig): SanitizedConfig => {
167
152
  return {
168
153
  ...config,
@@ -174,7 +159,7 @@ It can now be written like this:
174
159
 
175
160
  ```ts
176
161
  import { Config } from 'payload/config';
177
-
162
+
178
163
  const plugin = (config: Config): Config => {
179
164
  return {
180
165
  ...config,
@@ -6,4 +6,4 @@
6
6
  *
7
7
  * This source code is licensed under the MIT license found in the
8
8
  * LICENSE file in the root directory of this source tree.
9
- */var n="function"==typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,o=n?Symbol.for("react.portal"):60106,i=n?Symbol.for("react.fragment"):60107,a=n?Symbol.for("react.strict_mode"):60108,c=n?Symbol.for("react.profiler"):60114,u=n?Symbol.for("react.provider"):60109,s=n?Symbol.for("react.context"):60110,l=n?Symbol.for("react.async_mode"):60111,f=n?Symbol.for("react.concurrent_mode"):60111,d=n?Symbol.for("react.forward_ref"):60112,p=n?Symbol.for("react.suspense"):60113,h=n?Symbol.for("react.suspense_list"):60120,v=n?Symbol.for("react.memo"):60115,m=n?Symbol.for("react.lazy"):60116,y=n?Symbol.for("react.block"):60121,g=n?Symbol.for("react.fundamental"):60117,w=n?Symbol.for("react.responder"):60118,b=n?Symbol.for("react.scope"):60119;function x(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case l:case f:case i:case c:case a:case p:return e;default:switch(e=e&&e.$$typeof){case s:case d:case m:case v:case u:return e;default:return t}}case o:return t}}}function _(e){return x(e)===f}t.AsyncMode=l,t.ConcurrentMode=f,t.ContextConsumer=s,t.ContextProvider=u,t.Element=r,t.ForwardRef=d,t.Fragment=i,t.Lazy=m,t.Memo=v,t.Portal=o,t.Profiler=c,t.StrictMode=a,t.Suspense=p,t.isAsyncMode=function(e){return _(e)||x(e)===l},t.isConcurrentMode=_,t.isContextConsumer=function(e){return x(e)===s},t.isContextProvider=function(e){return x(e)===u},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return x(e)===d},t.isFragment=function(e){return x(e)===i},t.isLazy=function(e){return x(e)===m},t.isMemo=function(e){return x(e)===v},t.isPortal=function(e){return x(e)===o},t.isProfiler=function(e){return x(e)===c},t.isStrictMode=function(e){return x(e)===a},t.isSuspense=function(e){return x(e)===p},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===i||e===f||e===c||e===a||e===p||e===h||"object"==typeof e&&null!==e&&(e.$$typeof===m||e.$$typeof===v||e.$$typeof===u||e.$$typeof===s||e.$$typeof===d||e.$$typeof===g||e.$$typeof===w||e.$$typeof===b||e.$$typeof===y)},t.typeOf=x},864:(e,t,n)=>{"use strict";e.exports=n(921)},658:(e,t,n)=>{var r=n(826);e.exports=p,e.exports.parse=i,e.exports.compile=function(e,t){return c(i(e,t),t)},e.exports.tokensToFunction=c,e.exports.tokensToRegExp=d;var o=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function i(e,t){for(var n,r=[],i=0,a=0,c="",l=t&&t.delimiter||"/";null!=(n=o.exec(e));){var f=n[0],d=n[1],p=n.index;if(c+=e.slice(a,p),a=p+f.length,d)c+=d[1];else{var h=e[a],v=n[2],m=n[3],y=n[4],g=n[5],w=n[6],b=n[7];c&&(r.push(c),c="");var x=null!=v&&null!=h&&h!==v,_="+"===w||"*"===w,O="?"===w||"*"===w,P=n[2]||l,E=y||g;r.push({name:m||i++,prefix:v||"",delimiter:P,optional:O,repeat:_,partial:x,asterisk:!!b,pattern:E?s(E):b?".*":"[^"+u(P)+"]+?"})}}return a<e.length&&(c+=e.substr(a)),c&&r.push(c),r}function a(e){return encodeURI(e).replace(/[\/?#]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()}))}function c(e,t){for(var n=new Array(e.length),o=0;o<e.length;o++)"object"==typeof e[o]&&(n[o]=new RegExp("^(?:"+e[o].pattern+")$",f(t)));return function(t,o){for(var i="",c=t||{},u=(o||{}).pretty?a:encodeURIComponent,s=0;s<e.length;s++){var l=e[s];if("string"!=typeof l){var f,d=c[l.name];if(null==d){if(l.optional){l.partial&&(i+=l.prefix);continue}throw new TypeError('Expected "'+l.name+'" to be defined')}if(r(d)){if(!l.repeat)throw new TypeError('Expected "'+l.name+'" to not repeat, but received `'+JSON.stringify(d)+"`");if(0===d.length){if(l.optional)continue;throw new TypeError('Expected "'+l.name+'" to not be empty')}for(var p=0;p<d.length;p++){if(f=u(d[p]),!n[s].test(f))throw new TypeError('Expected all "'+l.name+'" to match "'+l.pattern+'", but received `'+JSON.stringify(f)+"`");i+=(0===p?l.prefix:l.delimiter)+f}}else{if(f=l.asterisk?encodeURI(d).replace(/[?#]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})):u(d),!n[s].test(f))throw new TypeError('Expected "'+l.name+'" to match "'+l.pattern+'", but received "'+f+'"');i+=l.prefix+f}}else i+=l}return i}}function u(e){return e.replace(/([.+*?=^!:${}()[\]|\/\\])/g,"\\$1")}function s(e){return e.replace(/([=!:$\/()])/g,"\\$1")}function l(e,t){return e.keys=t,e}function f(e){return e&&e.sensitive?"":"i"}function d(e,t,n){r(t)||(n=t||n,t=[]);for(var o=(n=n||{}).strict,i=!1!==n.end,a="",c=0;c<e.length;c++){var s=e[c];if("string"==typeof s)a+=u(s);else{var d=u(s.prefix),p="(?:"+s.pattern+")";t.push(s),s.repeat&&(p+="(?:"+d+p+")*"),a+=p=s.optional?s.partial?d+"("+p+")?":"(?:"+d+"("+p+"))?":d+"("+p+")"}}var h=u(n.delimiter||"/"),v=a.slice(-h.length)===h;return o||(a=(v?a.slice(0,-h.length):a)+"(?:"+h+"(?=$))?"),a+=i?"$":o&&v?"":"(?="+h+"|$)",l(new RegExp("^"+a,f(n)),t)}function p(e,t,n){return r(t)||(n=t||n,t=[]),n=n||{},e instanceof RegExp?function(e,t){var n=e.source.match(/\((?!\?)/g);if(n)for(var r=0;r<n.length;r++)t.push({name:r,prefix:null,delimiter:null,optional:!1,repeat:!1,partial:!1,asterisk:!1,pattern:null});return l(e,t)}(e,t):r(e)?function(e,t,n){for(var r=[],o=0;o<e.length;o++)r.push(p(e[o],t,n).source);return l(new RegExp("(?:"+r.join("|")+")",f(n)),t)}(e,t,n):function(e,t,n){return d(i(e,n),t,n)}(e,t,n)}},297:e=>{"use strict";e.exports=require("react")}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={exports:{}};return e[r].call(i.exports,i,i.exports,n),i.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var r={};(()=>{"use strict";n.r(r),n.d(r,{Banner:()=>xe,Button:()=>de,Check:()=>Pe,Chevron:()=>ue,Menu:()=>Se,MinimalTemplate:()=>Oe,Pill:()=>je,Popup:()=>we,Search:()=>Ee,X:()=>ce});var e=n(297),t=n.n(e);function o(e,t){return(o=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function i(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,o(e,t)}var a=n(697),c=n.n(a);function u(){return(u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function s(e){return"/"===e.charAt(0)}function l(e,t){for(var n=t,r=n+1,o=e.length;r<o;n+=1,r+=1)e[n]=e[r];e.pop()}const f=function(e,t){void 0===t&&(t="");var n,r=e&&e.split("/")||[],o=t&&t.split("/")||[],i=e&&s(e),a=t&&s(t),c=i||a;if(e&&s(e)?o=r:r.length&&(o.pop(),o=o.concat(r)),!o.length)return"/";if(o.length){var u=o[o.length-1];n="."===u||".."===u||""===u}else n=!1;for(var f=0,d=o.length;d>=0;d--){var p=o[d];"."===p?l(o,d):".."===p?(l(o,d),f++):f&&(l(o,d),f--)}if(!c)for(;f--;f)o.unshift("..");!c||""===o[0]||o[0]&&s(o[0])||o.unshift("");var h=o.join("/");return n&&"/"!==h.substr(-1)&&(h+="/"),h};var d="Invariant failed";const p=function(e,t){if(!e)throw new Error(d)};function h(e){return"/"===e.charAt(0)?e:"/"+e}function v(e){return"/"===e.charAt(0)?e.substr(1):e}function m(e,t){return function(e,t){return 0===e.toLowerCase().indexOf(t.toLowerCase())&&-1!=="/?#".indexOf(e.charAt(t.length))}(e,t)?e.substr(t.length):e}function y(e){return"/"===e.charAt(e.length-1)?e.slice(0,-1):e}function g(e){var t=e.pathname,n=e.search,r=e.hash,o=t||"/";return n&&"?"!==n&&("?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&("#"===r.charAt(0)?r:"#"+r),o}function w(e,t,n,r){var o;"string"==typeof e?(o=function(e){var t=e||"/",n="",r="",o=t.indexOf("#");-1!==o&&(r=t.substr(o),t=t.substr(0,o));var i=t.indexOf("?");return-1!==i&&(n=t.substr(i),t=t.substr(0,i)),{pathname:t,search:"?"===n?"":n,hash:"#"===r?"":r}}(e)).state=t:(void 0===(o=u({},e)).pathname&&(o.pathname=""),o.search?"?"!==o.search.charAt(0)&&(o.search="?"+o.search):o.search="",o.hash?"#"!==o.hash.charAt(0)&&(o.hash="#"+o.hash):o.hash="",void 0!==t&&void 0===o.state&&(o.state=t));try{o.pathname=decodeURI(o.pathname)}catch(e){throw e instanceof URIError?new URIError('Pathname "'+o.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):e}return n&&(o.key=n),r?o.pathname?"/"!==o.pathname.charAt(0)&&(o.pathname=f(o.pathname,r.pathname)):o.pathname=r.pathname:o.pathname||(o.pathname="/"),o}function b(){var e=null;var t=[];return{setPrompt:function(t){return t,function(){e===t&&null}},confirmTransitionTo:function(t,n,r,o){if(null!=e){var i="function"==typeof e?e(t,n):e;"string"==typeof i?"function"==typeof r?r(i,o):o(!0):o(!1!==i)}else o(!0)},appendListener:function(e){var n=!0;function r(){n&&e.apply(void 0,arguments)}return t.push(r),function(){!1,t.filter((function(e){return e!==r}))}},notifyListeners:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];t.forEach((function(e){return e.apply(void 0,n)}))}}}var x=!("undefined"==typeof window||!window.document||!window.document.createElement);function _(e,t){t(window.confirm(e))}var O="popstate",P="hashchange";function E(){try{return window.history.state||{}}catch(e){return{}}}function S(e){void 0===e&&{},x||p(!1);var t,n=window.history,r=(-1===window.navigator.userAgent.indexOf("Android 2.")&&-1===t.indexOf("Android 4.0")||-1===t.indexOf("Mobile Safari")||-1!==t.indexOf("Chrome")||-1!==t.indexOf("Windows Phone"))&&window.history&&"pushState"in window.history,o=!(-1===window.navigator.userAgent.indexOf("Trident")),i=e,a=i.forceRefresh,c=void 0!==a&&a,s=i.getUserConfirmation,l=void 0===s?_:s,f=i.keyLength,d=void 0===f?6:f,v=e.basename?y(h(e.basename)):"";function S(e){var t=e||{},n=t.key,r=t.state,o=window.location,i=o.pathname+o.search+o.hash;return v&&m(i,v),w(i,r,n)}function $(){return Math.random().toString(36).substr(2,d)}var j=b();function C(e){u(F,e),F.length=n.length,j.notifyListeners(F.location,F.action)}function k(e){(function(e){return void 0===e.state&&-1===navigator.userAgent.indexOf("CriOS")})(e)||A(S(e.state))}function T(){A(S(E()))}var M=!1;function A(e){if(M)!1,C();else{j.confirmTransitionTo(e,"POP",l,(function(t){t?C({action:"POP",location:e}):function(e){var t=F.location,n=L.indexOf(t.key);-1===n&&0;var r=L.indexOf(e.key);-1===r&&0;var o=n-r;o&&(!0,R(o))}(e)}))}}var I=S(E()),L=[I.key];function N(e){return v+g(e)}function R(e){n.go(e)}var D=0;function W(e){1===(D+=e)&&1===e?(window.addEventListener(O,k),o&&window.addEventListener(P,T)):0===D&&(window.removeEventListener(O,k),o&&window.removeEventListener(P,T))}var B=!1;var F={length:n.length,action:"POP",location:I,createHref:N,push:function(e,t){var o="PUSH",i=w(e,t,$(),F.location);j.confirmTransitionTo(i,o,l,(function(e){if(e){var t=N(i),a=i.key,u=i.state;if(r)if(n.pushState({key:a,state:u},null,t),c)window.location.href=t;else{var s=L.indexOf(F.location.key),l=L.slice(0,s+1);l.push(i.key),l,C({action:o,location:i})}else window.location.href=t}}))},replace:function(e,t){var o="REPLACE",i=w(e,t,$(),F.location);j.confirmTransitionTo(i,o,l,(function(e){if(e){var t=N(i),a=i.key,u=i.state;if(r)if(n.replaceState({key:a,state:u},null,t),c)window.location.replace(t);else{var s=L.indexOf(F.location.key);-1!==s&&(L[s]=i.key),C({action:o,location:i})}else window.location.replace(t)}}))},go:R,goBack:function(){R(-1)},goForward:function(){R(1)},block:function(e){void 0===e&&!1;var t=j.setPrompt(e);return B||(W(1),!0),function(){return B&&(!1,W(-1)),t()}},listen:function(e){var t=j.appendListener(e);return W(1),function(){W(-1),t()}}};return F}var $="hashchange",j={hashbang:{encodePath:function(e){return"!"===e.charAt(0)?e:"!/"+v(e)},decodePath:function(e){return"!"===e.charAt(0)?e.substr(1):e}},noslash:{encodePath:v,decodePath:h},slash:{encodePath:h,decodePath:h}};function C(e){var t=e.indexOf("#");return-1===t?e:e.slice(0,t)}function k(){var e=window.location.href,t=e.indexOf("#");return-1===t?"":e.substring(t+1)}function T(e){window.location.replace(C(window.location.href)+"#"+e)}function M(e){void 0===e&&{},x||p(!1);var t=window.history,n=(window.navigator.userAgent.indexOf("Firefox"),e),r=n.getUserConfirmation,o=void 0===r?_:r,i=n.hashType,a=void 0===i?"slash":i,c=e.basename?y(h(e.basename)):"",s=j[a],l=s.encodePath,f=s.decodePath;function d(){var e=f(k());return c&&m(e,c),w(e)}var v=b();function O(e){u(B,e),B.length=t.length,v.notifyListeners(B.location,B.action)}var P=!1,E=null;function S(){var e,t,n=k(),r=l(n);if(n!==r)T(r);else{var i=d(),a=B.location;if(!P&&(i,a.pathname===t.pathname&&e.search===t.search&&e.hash===t.hash))return;if(E===g(i))return;null,function(e){if(P)!1,O();else{var t="POP";v.confirmTransitionTo(e,t,o,(function(n){n?O({action:t,location:e}):function(e){var t=B.location,n=L.lastIndexOf(g(t));-1===n&&0;var r=L.lastIndexOf(g(e));-1===r&&0;var o=n-r;o&&(!0,N(o))}(e)}))}}(i)}}var M=k(),A=l(M);M!==A&&T(A);var I=d(),L=[g(I)];function N(e){t.go(e)}var R=0;function D(e){1===(R+=e)&&1===e?window.addEventListener($,S):0===R&&window.removeEventListener($,S)}var W=!1;var B={length:t.length,action:"POP",location:I,createHref:function(e){var t=document.querySelector("base"),n="";return t&&t.getAttribute("href")&&C(window.location.href),n+"#"+l(c+g(e))},push:function(e,t){var n="PUSH",r=w(e,void 0,void 0,B.location);v.confirmTransitionTo(r,n,o,(function(e){if(e){var t=g(r),o=l(c+t);if(k()!==o){t,function(e){window.location.hash=e}(o);var i=L.lastIndexOf(g(B.location)),a=L.slice(0,i+1);a.push(t),a,O({action:n,location:r})}else O()}}))},replace:function(e,t){var n="REPLACE",r=w(e,void 0,void 0,B.location);v.confirmTransitionTo(r,n,o,(function(e){if(e){var t=g(r),o=l(c+t);k()!==o&&(t,T(o));var i=L.indexOf(g(B.location));-1!==i&&(L[i]=t),O({action:n,location:r})}}))},go:N,goBack:function(){N(-1)},goForward:function(){N(1)},block:function(e){void 0===e&&!1;var t=v.setPrompt(e);return W||(D(1),!0),function(){return W&&(!1,D(-1)),t()}},listen:function(e){var t=v.appendListener(e);return D(1),function(){D(-1),t()}}};return B}function A(e,t,n){return Math.min(Math.max(e,t),n)}function I(e){void 0===e&&{};var t=e,n=t.getUserConfirmation,r=t.initialEntries,o=void 0===r?["/"]:r,i=t.initialIndex,a=void 0===i?0:i,c=t.keyLength,s=void 0===c?6:c,l=b();function f(e){u(y,e),y.length=y.entries.length,l.notifyListeners(y.location,y.action)}function d(){return Math.random().toString(36).substr(2,s)}var p=A(a,0,o.length-1),h=o.map((function(e){return w(e,void 0,"string"==typeof e?d():e.key||d())})),v=g;function m(e){var t=A(y.index+e,0,y.entries.length-1),r=y.entries[t];l.confirmTransitionTo(r,"POP",n,(function(e){e?f({action:"POP",location:r,index:t}):f()}))}var y={length:h.length,action:"POP",location:h[p],index:p,entries:h,createHref:v,push:function(e,t){var r="PUSH",o=w(e,t,d(),y.location);l.confirmTransitionTo(o,r,n,(function(e){if(e){var t=y.index+1,n=y.entries.slice(0);n.length>t?n.splice(t,n.length-t,o):n.push(o),f({action:r,location:o,index:t,entries:n})}}))},replace:function(e,t){var r="REPLACE",o=w(e,t,d(),y.location);l.confirmTransitionTo(o,r,n,(function(e){e&&(y.entries[y.index]=o,f({action:r,location:o}))}))},go:m,goBack:function(){m(-1)},goForward:function(){m(1)},canGo:function(e){var t=y.index+e;return t>=0&&t<y.entries.length},block:function(e){return void 0===e&&!1,l.setPrompt(e)},listen:function(e){return l.appendListener(e)}};return y}var L=1073741823,N="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==n.g?n.g:{};function R(e){var t=[];return{on:function(e){t.push(e)},off:function(e){t=t.filter((function(t){return t!==e}))},get:function(){return e},set:function(n,r){e=n,t.forEach((function(t){return t(e,r)}))}}}const D=t().createContext||function(t,n){var r,o,a="__create-react-context-"+function(){var e="__global_unique_id__";return N[e]=(N[e]||0)+1}()+"__",u=function(e){function t(){var t;return(t=e.apply(this,arguments)||this).emitter=R(t.props.value),t}i(t,e);var r=t.prototype;return r.getChildContext=function(){var e;return(e={})[a]=this.emitter,e},r.componentWillReceiveProps=function(e){if(this.props.value!==e.value){var t,r=this.props.value,o=e.value;((i=r)===(a=o)?0!==i||1/i==1/a:i!=i&&a!=a)?t=0:(t="function"==typeof n?n(r,o):L,0!==(t|=0)&&this.emitter.set(e.value,t))}var i,a},r.render=function(){return this.props.children},t}(e.Component);u.childContextTypes=((r={})[a]=c().object.isRequired,r);var s=function(e){function n(){var t;return(t=e.apply(this,arguments)||this).state={value:t.getValue()},t.onUpdate=function(e,n){0!=((0|t.observedBits)&n)&&t.setState({value:t.getValue()})},t}i(n,e);var r=n.prototype;return r.componentWillReceiveProps=function(e){var t=e.observedBits;this.observedBits=null==t?L:t},r.componentDidMount=function(){this.context[a]&&this.context[a].on(this.onUpdate);var e=this.props.observedBits;this.observedBits=null==e?L:e},r.componentWillUnmount=function(){this.context[a]&&this.context[a].off(this.onUpdate)},r.getValue=function(){return this.context[a]?this.context[a].get():t},r.render=function(){return(e=this.props.children,Array.isArray(e)?e[0]:e)(this.state.value);var e},n}(e.Component);return s.contextTypes=((o={})[a]=c().object,o),{Provider:u,Consumer:s}};var W=n(658),B=n.n(W);n(864);function F(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}n(679);var U=function(e){var t=D();return t.displayName=e,t}("Router-History"),q=function(e){var t=D();return t.displayName=e,t}("Router"),H=function(e){function n(t){var n;return(n=e.call(this,t)||this).state={location:t.history.location},n._isMounted=!1,n._pendingLocation=null,t.staticContext||(n.unlisten=t.history.listen((function(e){n._isMounted?n.setState({location:e}):n._pendingLocation=e}))),n}i(n,e),n.computeRootMatch=function(e){return{path:"/",url:"/",params:{},isExact:"/"===e}};var r=n.prototype;return r.componentDidMount=function(){this._isMounted=!0,this._pendingLocation&&this.setState({location:this._pendingLocation})},r.componentWillUnmount=function(){this.unlisten&&this.unlisten()},r.render=function(){return t().createElement(q.Provider,{value:{history:this.props.history,location:this.state.location,match:n.computeRootMatch(this.state.location.pathname),staticContext:this.props.staticContext}},t().createElement(U.Provider,{children:this.props.children||null,value:this.props.history}))},n}(t().Component);t().Component;t().Component;var z={},V=0;function K(e,t){void 0===t&&(t={}),("string"==typeof t||Array.isArray(t))&&(t={path:t});var n=t,r=n.path,o=n.exact,i=void 0!==o&&o,a=n.strict,c=void 0!==a&&a,u=n.sensitive,s=void 0!==u&&u;return[].concat(r).reduce((function(t,n){if(!n&&""!==n)return null;if(t)return t;var r=function(e,t){var n=""+t.end+t.strict+t.sensitive,r=z[n]||(z[n]={});if(r[e])return r[e];var o=[],i={regexp:B()(e,o,t),keys:o};return V<1e4&&(r[e]=i,V++),i}(n,{end:i,strict:c,sensitive:s}),o=r.regexp,a=r.keys,u=o.exec(e);if(!u)return null;var l=u[0],f=u.slice(1),d=e===l;return i&&!d?null:{path:n,url:"/"===n&&""===l?"/":l,isExact:d,params:a.reduce((function(e,t,n){return e[t.name]=f[n],e}),{})}}),null)}t().Component;function J(e){return"/"===e.charAt(0)?e:"/"+e}function X(e,t){if(!e)return t;var n=J(e);return 0!==t.pathname.indexOf(n)?t:u({},t,{pathname:t.pathname.substr(n.length)})}function Y(e){return"string"==typeof e?e:g(e)}function G(e){return function(){p(!1)}}function Q(){}t().Component;t().Component;t().useContext;t().Component;t().Component;var Z=function(e,t){return"function"==typeof e?e(t):e},ee=function(e,t){return"string"==typeof e?w(e,null,null,t):e},te=function(e){return e},ne=t().forwardRef;void 0===ne&&(ne=te);var re=ne((function(e,n){var r=e.innerRef,o=e.navigate,i=e.onClick,a=F(e,["innerRef","navigate","onClick"]),c=a.target,s=u({},a,{onClick:function(e){try{i&&i(e)}catch(t){throw e.preventDefault(),t}e.defaultPrevented||0!==e.button||c&&"_self"!==c||function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e)||(e.preventDefault(),o())}});return s.ref=te!==ne&&n||r,t().createElement("a",s)}));var oe=ne((function(e,n){var r=e.component,o=void 0===r?re:r,i=e.replace,a=e.to,c=e.innerRef,s=F(e,["component","replace","to","innerRef"]);return t().createElement(q.Consumer,null,(function(e){e||p(!1);var r=e.history,l=ee(Z(a,e.location),e.location),f=l?r.createHref(l):"",d=u({},s,{href:f,navigate:function(){var t=Z(a,e.location);(i?r.replace:r.push)(t)}});return te!==ne?d.ref=n||c:d.innerRef=c,t().createElement(o,d)}))})),ie=function(e){return e},ae=t().forwardRef;void 0===ae&&(ae=ie);ae((function(e,n){var r=e["aria-current"],o=void 0===r?"page":r,i=e.activeClassName,a=void 0===i?"active":i,c=e.activeStyle,s=e.className,l=e.exact,f=e.isActive,d=e.location,h=e.sensitive,v=e.strict,m=e.style,y=e.to,g=e.innerRef,w=F(e,["aria-current","activeClassName","activeStyle","className","exact","isActive","location","sensitive","strict","style","to","innerRef"]);return t().createElement(q.Consumer,null,(function(e){e||p(!1);var r=d||e.location,i=ee(Z(y,r),r),b=i.pathname,x=b&&b.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1"),_=x?K(r.pathname,{path:x,exact:l,sensitive:h,strict:v}):null,O=!!(f?f(_,r):_),P=O?function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.filter((function(e){return e})).join(" ")}(s,a):s,E=O?u({},m,{},c):m,S=u({"aria-current":O&&o||null,className:P,style:E,to:i},w);return ie!==ae?S.ref=n||g:S.innerRef=g,t().createElement(oe,S)}))}));const ce=()=>t().createElement("svg",{width:"25",height:"25",className:"icon icon--x",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 25 25"},t().createElement("line",{className:"stroke",x1:"8.74612",y1:"16.347",x2:"16.3973",y2:"8.69584"}),t().createElement("line",{className:"stroke",x1:"8.6027",y1:"8.69585",x2:"16.2539",y2:"16.3471"})),ue=()=>t().createElement("svg",{className:"icon icon--chevron",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 25 25"},t().createElement("path",{className:"stroke",d:"M9 10.5L12.5 14.5L16 10.5"})),se={plus:()=>t().createElement("svg",{className:"icon icon--plus",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 25 25"},t().createElement("line",{x1:"12.4589",y1:"16.9175",x2:"12.4589",y2:"8.50115",className:"stroke"}),t().createElement("line",{x1:"8.05164",y1:"12.594",x2:"16.468",y2:"12.594",className:"stroke"})),x:ce,chevron:ue},le="btn",fe=({children:n,icon:r})=>{const o=se[r];return t().createElement("span",{className:`${le}__content`},n&&t().createElement("span",{className:`${le}__label`},n),r&&t().createElement("span",{className:`${le}__icon`},(0,e.isValidElement)(r)&&r,o&&t().createElement(o,null)))},de=e=>{const{className:n,type:r="button",el:o,to:i,url:a,children:c,onClick:u,disabled:s,icon:l,iconStyle:f="without-border",buttonStyle:d="primary",round:p,size:h="medium",iconPosition:v="right",newTab:m}=e,y=[le,n&&n,d&&`${le}--style-${d}`,l&&`${le}--icon`,f&&`${le}--icon-style-${f}`,l&&!c&&`${le}--icon-only`,s&&`${le}--disabled`,p&&`${le}--round`,h&&`${le}--size-${h}`,v&&`${le}--icon-position-${v}`].filter(Boolean).join(" ");const g={type:r,className:y,onClick:function(e){"submit"!==r&&u&&e.preventDefault(),u&&u(e)},rel:m?"noopener noreferrer":void 0,target:m?"_blank":void 0};switch(o){case"link":return t().createElement(oe,{...g,to:i||a},t().createElement(fe,{icon:l},c));case"anchor":return t().createElement("a",{...g,href:a},t().createElement(fe,{icon:l},c));default:return t().createElement("button",{type:"submit",...g},t().createElement(fe,{icon:l},c))}};var pe=n(727),he=n(719);const ve=(t,n,r=[])=>{const o=(0,e.useRef)(Date.now());(0,e.useEffect)((()=>{const e=setTimeout((()=>{Date.now()-o.current>=n&&(t(),o.current=Date.now())}),n-(Date.now()-o.current));return()=>{clearTimeout(e)}}),[n,...r])},me="popup-button",ye=e=>{const{buttonType:n,button:r,setActive:o,active:i,onToggleOpen:a}=e,c=[me,`${me}--${n}`].filter(Boolean).join(" "),u=()=>{"function"==typeof a&&a(!i),o(!i)};return"custom"===n?t().createElement("div",{role:"button",tabIndex:0,onKeyDown:e=>{"Enter"===e.key&&u()},onClick:u,className:c},r):t().createElement("button",{type:"button",onClick:()=>o(!i),className:c},r)},ge="popup",we=n=>{const{render:r,size:o="small",color:i="light",button:a,buttonType:c="default",children:u,showOnHover:s=!1,horizontalAlign:l="left",initActive:f=!1,onToggleOpen:d}=n,p=(0,e.useRef)(null),h=(0,e.useRef)(null),[v,m]=(0,e.useState)(f),[y,g]=(0,e.useState)("top"),[w,b]=(0,e.useState)(null),{y:x}=(0,he.useScrollInfo)(),{height:_}=(0,pe.useWindowInfo)(),O=e=>{h.current.contains(e.target)||m(!1)};ve((()=>{if(h.current&&p.current){const{height:e,width:t,right:n}=h.current.getBoundingClientRect(),{y:r}=p.current.getBoundingClientRect(),o=window.innerWidth-n,i=n-t;b("left"===l&&o<=0?"right":"right"===l&&i<=0?"left":"center"===l&&(i<=t/2||o<=t/2)?o>i?"left":"right":null),g(r>e?"top":"bottom")}}),500,[g,h,x,_]),(0,e.useEffect)((()=>(v?document.addEventListener("mousedown",O):document.removeEventListener("mousedown",O),()=>{document.removeEventListener("mousedown",O)})),[v]);const P=[ge,`${ge}--size-${o}`,`${ge}--color-${i}`,`${ge}--v-align-${y}`,`${ge}--h-align-${l}`,w&&`${ge}--force-h-align-${w}`,v&&`${ge}--active`].filter(Boolean).join(" ");return t().createElement("div",{className:P},t().createElement("div",{ref:p,className:`${ge}__wrapper`},s?t().createElement("div",{className:`${ge}__on-hover-watch`,onMouseEnter:()=>m(!0),onMouseLeave:()=>m(!1)},t().createElement(ye,{onToggleOpen:d,buttonType:c,button:a,setActive:m,active:v})):t().createElement(ye,{onToggleOpen:d,buttonType:c,button:a,setActive:m,active:v})),t().createElement("div",{className:`${ge}__content`,ref:h},t().createElement("div",{className:`${ge}__wrap`},t().createElement("div",{className:`${ge}__scroll`},r&&r({close:()=>m(!1)}),u&&u))))},be="banner",xe=({children:e,className:n,to:r,icon:o,alignIcon:i="right",onClick:a,type:c="default"})=>{const u=[be,`${be}--type-${c}`,n&&n,r&&`${be}--has-link`,(r||a)&&`${be}--has-action`,o&&`${be}--has-icon`,o&&`${be}--align-icon-${i}`].filter(Boolean).join(" ");let s="div";return a&&!r&&(s="button"),r&&(s=oe),t().createElement(s,{className:u,onClick:a,to:r||void 0},o&&"left"===i&&t().createElement(t().Fragment,null,o),t().createElement("span",{className:`${be}__content`},e),o&&"right"===i&&t().createElement(t().Fragment,null,o))},_e="template-minimal",Oe=e=>{const{className:n,style:r={},children:o,width:i="normal"}=e,a=[n,_e,`${_e}--width-${i}`].filter(Boolean).join(" ");return t().createElement("section",{className:a,style:r},t().createElement("div",{className:`${_e}__wrap`},o))},Pe=()=>t().createElement("svg",{className:"icon icon--check",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 25 25"},t().createElement("path",{d:"M10.6092 16.0192L17.6477 8.98076",className:"stroke",strokeLinecap:"square",strokeLinejoin:"bevel"}),t().createElement("path",{d:"M7.35229 12.7623L10.6092 16.0192",className:"stroke",strokeLinecap:"square",strokeLinejoin:"bevel"})),Ee=()=>t().createElement("svg",{width:"25",height:"25",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"icon icon--search"},t().createElement("circle",{cx:"11.2069",cy:"10.7069",r:"5",stroke:"#333333",strokeWidth:"2"}),t().createElement("line",{x1:"14.914",y1:"13.9998",x2:"20.5002",y2:"19.586",stroke:"#333333",strokeWidth:"2"})),Se=()=>t().createElement("svg",{width:"25",height:"25",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t().createElement("rect",{x:"3.5",y:"4.5",width:"18",height:"2",fill:"#333333"}),t().createElement("rect",{x:"3.5",y:"11.5",width:"18",height:"2",fill:"#333333"}),t().createElement("rect",{x:"3.5",y:"18.5",width:"18",height:"2",fill:"#333333"})),$e="pill",je=({children:e,className:n,to:r,icon:o,alignIcon:i="right",onClick:a,pillStyle:c="light"})=>{const u=[$e,`${$e}--style-${c}`,n&&n,r&&`${$e}--has-link`,(r||a)&&`${$e}--has-action`,o&&`${$e}--has-icon`,o&&`${$e}--align-icon-${i}`].filter(Boolean).join(" ");let s="div";return a&&!r&&(s="button"),r&&(s=oe),t().createElement(s,{className:u,onClick:a,type:"button"===s?"button":void 0,to:r||void 0},o&&"left"===i&&t().createElement(t().Fragment,null,o),e,o&&"right"===i&&t().createElement(t().Fragment,null,o))}})(),module.exports=r})();
9
+ */var n="function"==typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,o=n?Symbol.for("react.portal"):60106,i=n?Symbol.for("react.fragment"):60107,a=n?Symbol.for("react.strict_mode"):60108,c=n?Symbol.for("react.profiler"):60114,u=n?Symbol.for("react.provider"):60109,s=n?Symbol.for("react.context"):60110,l=n?Symbol.for("react.async_mode"):60111,f=n?Symbol.for("react.concurrent_mode"):60111,d=n?Symbol.for("react.forward_ref"):60112,p=n?Symbol.for("react.suspense"):60113,h=n?Symbol.for("react.suspense_list"):60120,v=n?Symbol.for("react.memo"):60115,m=n?Symbol.for("react.lazy"):60116,y=n?Symbol.for("react.block"):60121,g=n?Symbol.for("react.fundamental"):60117,w=n?Symbol.for("react.responder"):60118,b=n?Symbol.for("react.scope"):60119;function x(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case l:case f:case i:case c:case a:case p:return e;default:switch(e=e&&e.$$typeof){case s:case d:case m:case v:case u:return e;default:return t}}case o:return t}}}function _(e){return x(e)===f}t.AsyncMode=l,t.ConcurrentMode=f,t.ContextConsumer=s,t.ContextProvider=u,t.Element=r,t.ForwardRef=d,t.Fragment=i,t.Lazy=m,t.Memo=v,t.Portal=o,t.Profiler=c,t.StrictMode=a,t.Suspense=p,t.isAsyncMode=function(e){return _(e)||x(e)===l},t.isConcurrentMode=_,t.isContextConsumer=function(e){return x(e)===s},t.isContextProvider=function(e){return x(e)===u},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return x(e)===d},t.isFragment=function(e){return x(e)===i},t.isLazy=function(e){return x(e)===m},t.isMemo=function(e){return x(e)===v},t.isPortal=function(e){return x(e)===o},t.isProfiler=function(e){return x(e)===c},t.isStrictMode=function(e){return x(e)===a},t.isSuspense=function(e){return x(e)===p},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===i||e===f||e===c||e===a||e===p||e===h||"object"==typeof e&&null!==e&&(e.$$typeof===m||e.$$typeof===v||e.$$typeof===u||e.$$typeof===s||e.$$typeof===d||e.$$typeof===g||e.$$typeof===w||e.$$typeof===b||e.$$typeof===y)},t.typeOf=x},864:(e,t,n)=>{"use strict";e.exports=n(921)},658:(e,t,n)=>{var r=n(826);e.exports=p,e.exports.parse=i,e.exports.compile=function(e,t){return c(i(e,t),t)},e.exports.tokensToFunction=c,e.exports.tokensToRegExp=d;var o=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function i(e,t){for(var n,r=[],i=0,a=0,c="",l=t&&t.delimiter||"/";null!=(n=o.exec(e));){var f=n[0],d=n[1],p=n.index;if(c+=e.slice(a,p),a=p+f.length,d)c+=d[1];else{var h=e[a],v=n[2],m=n[3],y=n[4],g=n[5],w=n[6],b=n[7];c&&(r.push(c),c="");var x=null!=v&&null!=h&&h!==v,_="+"===w||"*"===w,O="?"===w||"*"===w,E=n[2]||l,P=y||g;r.push({name:m||i++,prefix:v||"",delimiter:E,optional:O,repeat:_,partial:x,asterisk:!!b,pattern:P?s(P):b?".*":"[^"+u(E)+"]+?"})}}return a<e.length&&(c+=e.substr(a)),c&&r.push(c),r}function a(e){return encodeURI(e).replace(/[\/?#]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()}))}function c(e,t){for(var n=new Array(e.length),o=0;o<e.length;o++)"object"==typeof e[o]&&(n[o]=new RegExp("^(?:"+e[o].pattern+")$",f(t)));return function(t,o){for(var i="",c=t||{},u=(o||{}).pretty?a:encodeURIComponent,s=0;s<e.length;s++){var l=e[s];if("string"!=typeof l){var f,d=c[l.name];if(null==d){if(l.optional){l.partial&&(i+=l.prefix);continue}throw new TypeError('Expected "'+l.name+'" to be defined')}if(r(d)){if(!l.repeat)throw new TypeError('Expected "'+l.name+'" to not repeat, but received `'+JSON.stringify(d)+"`");if(0===d.length){if(l.optional)continue;throw new TypeError('Expected "'+l.name+'" to not be empty')}for(var p=0;p<d.length;p++){if(f=u(d[p]),!n[s].test(f))throw new TypeError('Expected all "'+l.name+'" to match "'+l.pattern+'", but received `'+JSON.stringify(f)+"`");i+=(0===p?l.prefix:l.delimiter)+f}}else{if(f=l.asterisk?encodeURI(d).replace(/[?#]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})):u(d),!n[s].test(f))throw new TypeError('Expected "'+l.name+'" to match "'+l.pattern+'", but received "'+f+'"');i+=l.prefix+f}}else i+=l}return i}}function u(e){return e.replace(/([.+*?=^!:${}()[\]|\/\\])/g,"\\$1")}function s(e){return e.replace(/([=!:$\/()])/g,"\\$1")}function l(e,t){return e.keys=t,e}function f(e){return e&&e.sensitive?"":"i"}function d(e,t,n){r(t)||(n=t||n,t=[]);for(var o=(n=n||{}).strict,i=!1!==n.end,a="",c=0;c<e.length;c++){var s=e[c];if("string"==typeof s)a+=u(s);else{var d=u(s.prefix),p="(?:"+s.pattern+")";t.push(s),s.repeat&&(p+="(?:"+d+p+")*"),a+=p=s.optional?s.partial?d+"("+p+")?":"(?:"+d+"("+p+"))?":d+"("+p+")"}}var h=u(n.delimiter||"/"),v=a.slice(-h.length)===h;return o||(a=(v?a.slice(0,-h.length):a)+"(?:"+h+"(?=$))?"),a+=i?"$":o&&v?"":"(?="+h+"|$)",l(new RegExp("^"+a,f(n)),t)}function p(e,t,n){return r(t)||(n=t||n,t=[]),n=n||{},e instanceof RegExp?function(e,t){var n=e.source.match(/\((?!\?)/g);if(n)for(var r=0;r<n.length;r++)t.push({name:r,prefix:null,delimiter:null,optional:!1,repeat:!1,partial:!1,asterisk:!1,pattern:null});return l(e,t)}(e,t):r(e)?function(e,t,n){for(var r=[],o=0;o<e.length;o++)r.push(p(e[o],t,n).source);return l(new RegExp("(?:"+r.join("|")+")",f(n)),t)}(e,t,n):function(e,t,n){return d(i(e,n),t,n)}(e,t,n)}},297:e=>{"use strict";e.exports=require("react")}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={exports:{}};return e[r].call(i.exports,i,i.exports,n),i.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var r={};(()=>{"use strict";n.r(r),n.d(r,{Banner:()=>xe,Button:()=>de,Check:()=>Ee,Chevron:()=>ue,Menu:()=>Se,MinimalTemplate:()=>Oe,Pill:()=>je,Popup:()=>we,Search:()=>Pe,X:()=>ce});var e=n(297),t=n.n(e);function o(e,t){return(o=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function i(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,o(e,t)}var a=n(697),c=n.n(a);function u(){return(u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function s(e){return"/"===e.charAt(0)}function l(e,t){for(var n=t,r=n+1,o=e.length;r<o;n+=1,r+=1)e[n]=e[r];e.pop()}const f=function(e,t){void 0===t&&(t="");var n,r=e&&e.split("/")||[],o=t&&t.split("/")||[],i=e&&s(e),a=t&&s(t),c=i||a;if(e&&s(e)?o=r:r.length&&(o.pop(),o=o.concat(r)),!o.length)return"/";if(o.length){var u=o[o.length-1];n="."===u||".."===u||""===u}else n=!1;for(var f=0,d=o.length;d>=0;d--){var p=o[d];"."===p?l(o,d):".."===p?(l(o,d),f++):f&&(l(o,d),f--)}if(!c)for(;f--;f)o.unshift("..");!c||""===o[0]||o[0]&&s(o[0])||o.unshift("");var h=o.join("/");return n&&"/"!==h.substr(-1)&&(h+="/"),h};var d="Invariant failed";const p=function(e,t){if(!e)throw new Error(d)};function h(e){return"/"===e.charAt(0)?e:"/"+e}function v(e){return"/"===e.charAt(0)?e.substr(1):e}function m(e,t){return function(e,t){return 0===e.toLowerCase().indexOf(t.toLowerCase())&&-1!=="/?#".indexOf(e.charAt(t.length))}(e,t)?e.substr(t.length):e}function y(e){return"/"===e.charAt(e.length-1)?e.slice(0,-1):e}function g(e){var t=e.pathname,n=e.search,r=e.hash,o=t||"/";return n&&"?"!==n&&("?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&("#"===r.charAt(0)?r:"#"+r),o}function w(e,t,n,r){var o;"string"==typeof e?(o=function(e){var t=e||"/",n="",r="",o=t.indexOf("#");-1!==o&&(r=t.substr(o),t=t.substr(0,o));var i=t.indexOf("?");return-1!==i&&(n=t.substr(i),t=t.substr(0,i)),{pathname:t,search:"?"===n?"":n,hash:"#"===r?"":r}}(e)).state=t:(void 0===(o=u({},e)).pathname&&(o.pathname=""),o.search?"?"!==o.search.charAt(0)&&(o.search="?"+o.search):o.search="",o.hash?"#"!==o.hash.charAt(0)&&(o.hash="#"+o.hash):o.hash="",void 0!==t&&void 0===o.state&&(o.state=t));try{o.pathname=decodeURI(o.pathname)}catch(e){throw e instanceof URIError?new URIError('Pathname "'+o.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):e}return n&&(o.key=n),r?o.pathname?"/"!==o.pathname.charAt(0)&&(o.pathname=f(o.pathname,r.pathname)):o.pathname=r.pathname:o.pathname||(o.pathname="/"),o}function b(){var e=null;var t=[];return{setPrompt:function(t){return t,function(){e===t&&null}},confirmTransitionTo:function(t,n,r,o){if(null!=e){var i="function"==typeof e?e(t,n):e;"string"==typeof i?"function"==typeof r?r(i,o):o(!0):o(!1!==i)}else o(!0)},appendListener:function(e){var n=!0;function r(){n&&e.apply(void 0,arguments)}return t.push(r),function(){!1,t.filter((function(e){return e!==r}))}},notifyListeners:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];t.forEach((function(e){return e.apply(void 0,n)}))}}}var x=!("undefined"==typeof window||!window.document||!window.document.createElement);function _(e,t){t(window.confirm(e))}var O="popstate",E="hashchange";function P(){try{return window.history.state||{}}catch(e){return{}}}function S(e){void 0===e&&{},x||p(!1);var t,n=window.history,r=(-1===window.navigator.userAgent.indexOf("Android 2.")&&-1===t.indexOf("Android 4.0")||-1===t.indexOf("Mobile Safari")||-1!==t.indexOf("Chrome")||-1!==t.indexOf("Windows Phone"))&&window.history&&"pushState"in window.history,o=!(-1===window.navigator.userAgent.indexOf("Trident")),i=e,a=i.forceRefresh,c=void 0!==a&&a,s=i.getUserConfirmation,l=void 0===s?_:s,f=i.keyLength,d=void 0===f?6:f,v=e.basename?y(h(e.basename)):"";function S(e){var t=e||{},n=t.key,r=t.state,o=window.location,i=o.pathname+o.search+o.hash;return v&&m(i,v),w(i,r,n)}function $(){return Math.random().toString(36).substr(2,d)}var j=b();function C(e){u(F,e),F.length=n.length,j.notifyListeners(F.location,F.action)}function k(e){(function(e){return void 0===e.state&&-1===navigator.userAgent.indexOf("CriOS")})(e)||A(S(e.state))}function T(){A(S(P()))}var M=!1;function A(e){if(M)!1,C();else{j.confirmTransitionTo(e,"POP",l,(function(t){t?C({action:"POP",location:e}):function(e){var t=F.location,n=N.indexOf(t.key);-1===n&&0;var r=N.indexOf(e.key);-1===r&&0;var o=n-r;o&&(!0,R(o))}(e)}))}}var I=S(P()),N=[I.key];function L(e){return v+g(e)}function R(e){n.go(e)}var D=0;function W(e){1===(D+=e)&&1===e?(window.addEventListener(O,k),o&&window.addEventListener(E,T)):0===D&&(window.removeEventListener(O,k),o&&window.removeEventListener(E,T))}var B=!1;var F={length:n.length,action:"POP",location:I,createHref:L,push:function(e,t){var o="PUSH",i=w(e,t,$(),F.location);j.confirmTransitionTo(i,o,l,(function(e){if(e){var t=L(i),a=i.key,u=i.state;if(r)if(n.pushState({key:a,state:u},null,t),c)window.location.href=t;else{var s=N.indexOf(F.location.key),l=N.slice(0,s+1);l.push(i.key),l,C({action:o,location:i})}else window.location.href=t}}))},replace:function(e,t){var o="REPLACE",i=w(e,t,$(),F.location);j.confirmTransitionTo(i,o,l,(function(e){if(e){var t=L(i),a=i.key,u=i.state;if(r)if(n.replaceState({key:a,state:u},null,t),c)window.location.replace(t);else{var s=N.indexOf(F.location.key);-1!==s&&(N[s]=i.key),C({action:o,location:i})}else window.location.replace(t)}}))},go:R,goBack:function(){R(-1)},goForward:function(){R(1)},block:function(e){void 0===e&&!1;var t=j.setPrompt(e);return B||(W(1),!0),function(){return B&&(!1,W(-1)),t()}},listen:function(e){var t=j.appendListener(e);return W(1),function(){W(-1),t()}}};return F}var $="hashchange",j={hashbang:{encodePath:function(e){return"!"===e.charAt(0)?e:"!/"+v(e)},decodePath:function(e){return"!"===e.charAt(0)?e.substr(1):e}},noslash:{encodePath:v,decodePath:h},slash:{encodePath:h,decodePath:h}};function C(e){var t=e.indexOf("#");return-1===t?e:e.slice(0,t)}function k(){var e=window.location.href,t=e.indexOf("#");return-1===t?"":e.substring(t+1)}function T(e){window.location.replace(C(window.location.href)+"#"+e)}function M(e){void 0===e&&{},x||p(!1);var t=window.history,n=(window.navigator.userAgent.indexOf("Firefox"),e),r=n.getUserConfirmation,o=void 0===r?_:r,i=n.hashType,a=void 0===i?"slash":i,c=e.basename?y(h(e.basename)):"",s=j[a],l=s.encodePath,f=s.decodePath;function d(){var e=f(k());return c&&m(e,c),w(e)}var v=b();function O(e){u(B,e),B.length=t.length,v.notifyListeners(B.location,B.action)}var E=!1,P=null;function S(){var e,t,n=k(),r=l(n);if(n!==r)T(r);else{var i=d(),a=B.location;if(!E&&(i,a.pathname===t.pathname&&e.search===t.search&&e.hash===t.hash))return;if(P===g(i))return;null,function(e){if(E)!1,O();else{var t="POP";v.confirmTransitionTo(e,t,o,(function(n){n?O({action:t,location:e}):function(e){var t=B.location,n=N.lastIndexOf(g(t));-1===n&&0;var r=N.lastIndexOf(g(e));-1===r&&0;var o=n-r;o&&(!0,L(o))}(e)}))}}(i)}}var M=k(),A=l(M);M!==A&&T(A);var I=d(),N=[g(I)];function L(e){t.go(e)}var R=0;function D(e){1===(R+=e)&&1===e?window.addEventListener($,S):0===R&&window.removeEventListener($,S)}var W=!1;var B={length:t.length,action:"POP",location:I,createHref:function(e){var t=document.querySelector("base"),n="";return t&&t.getAttribute("href")&&C(window.location.href),n+"#"+l(c+g(e))},push:function(e,t){var n="PUSH",r=w(e,void 0,void 0,B.location);v.confirmTransitionTo(r,n,o,(function(e){if(e){var t=g(r),o=l(c+t);if(k()!==o){t,function(e){window.location.hash=e}(o);var i=N.lastIndexOf(g(B.location)),a=N.slice(0,i+1);a.push(t),a,O({action:n,location:r})}else O()}}))},replace:function(e,t){var n="REPLACE",r=w(e,void 0,void 0,B.location);v.confirmTransitionTo(r,n,o,(function(e){if(e){var t=g(r),o=l(c+t);k()!==o&&(t,T(o));var i=N.indexOf(g(B.location));-1!==i&&(N[i]=t),O({action:n,location:r})}}))},go:L,goBack:function(){L(-1)},goForward:function(){L(1)},block:function(e){void 0===e&&!1;var t=v.setPrompt(e);return W||(D(1),!0),function(){return W&&(!1,D(-1)),t()}},listen:function(e){var t=v.appendListener(e);return D(1),function(){D(-1),t()}}};return B}function A(e,t,n){return Math.min(Math.max(e,t),n)}function I(e){void 0===e&&{};var t=e,n=t.getUserConfirmation,r=t.initialEntries,o=void 0===r?["/"]:r,i=t.initialIndex,a=void 0===i?0:i,c=t.keyLength,s=void 0===c?6:c,l=b();function f(e){u(y,e),y.length=y.entries.length,l.notifyListeners(y.location,y.action)}function d(){return Math.random().toString(36).substr(2,s)}var p=A(a,0,o.length-1),h=o.map((function(e){return w(e,void 0,"string"==typeof e?d():e.key||d())})),v=g;function m(e){var t=A(y.index+e,0,y.entries.length-1),r=y.entries[t];l.confirmTransitionTo(r,"POP",n,(function(e){e?f({action:"POP",location:r,index:t}):f()}))}var y={length:h.length,action:"POP",location:h[p],index:p,entries:h,createHref:v,push:function(e,t){var r="PUSH",o=w(e,t,d(),y.location);l.confirmTransitionTo(o,r,n,(function(e){if(e){var t=y.index+1,n=y.entries.slice(0);n.length>t?n.splice(t,n.length-t,o):n.push(o),f({action:r,location:o,index:t,entries:n})}}))},replace:function(e,t){var r="REPLACE",o=w(e,t,d(),y.location);l.confirmTransitionTo(o,r,n,(function(e){e&&(y.entries[y.index]=o,f({action:r,location:o}))}))},go:m,goBack:function(){m(-1)},goForward:function(){m(1)},canGo:function(e){var t=y.index+e;return t>=0&&t<y.entries.length},block:function(e){return void 0===e&&!1,l.setPrompt(e)},listen:function(e){return l.appendListener(e)}};return y}var N=1073741823,L="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==n.g?n.g:{};function R(e){var t=[];return{on:function(e){t.push(e)},off:function(e){t=t.filter((function(t){return t!==e}))},get:function(){return e},set:function(n,r){e=n,t.forEach((function(t){return t(e,r)}))}}}const D=t().createContext||function(t,n){var r,o,a="__create-react-context-"+function(){var e="__global_unique_id__";return L[e]=(L[e]||0)+1}()+"__",u=function(e){function t(){var t;return(t=e.apply(this,arguments)||this).emitter=R(t.props.value),t}i(t,e);var r=t.prototype;return r.getChildContext=function(){var e;return(e={})[a]=this.emitter,e},r.componentWillReceiveProps=function(e){if(this.props.value!==e.value){var t,r=this.props.value,o=e.value;((i=r)===(a=o)?0!==i||1/i==1/a:i!=i&&a!=a)?t=0:(t="function"==typeof n?n(r,o):N,0!==(t|=0)&&this.emitter.set(e.value,t))}var i,a},r.render=function(){return this.props.children},t}(e.Component);u.childContextTypes=((r={})[a]=c().object.isRequired,r);var s=function(e){function n(){var t;return(t=e.apply(this,arguments)||this).state={value:t.getValue()},t.onUpdate=function(e,n){0!=((0|t.observedBits)&n)&&t.setState({value:t.getValue()})},t}i(n,e);var r=n.prototype;return r.componentWillReceiveProps=function(e){var t=e.observedBits;this.observedBits=null==t?N:t},r.componentDidMount=function(){this.context[a]&&this.context[a].on(this.onUpdate);var e=this.props.observedBits;this.observedBits=null==e?N:e},r.componentWillUnmount=function(){this.context[a]&&this.context[a].off(this.onUpdate)},r.getValue=function(){return this.context[a]?this.context[a].get():t},r.render=function(){return(e=this.props.children,Array.isArray(e)?e[0]:e)(this.state.value);var e},n}(e.Component);return s.contextTypes=((o={})[a]=c().object,o),{Provider:u,Consumer:s}};var W=n(658),B=n.n(W);n(864);function F(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}n(679);var U=function(e){var t=D();return t.displayName=e,t}("Router-History"),q=function(e){var t=D();return t.displayName=e,t}("Router"),H=function(e){function n(t){var n;return(n=e.call(this,t)||this).state={location:t.history.location},n._isMounted=!1,n._pendingLocation=null,t.staticContext||(n.unlisten=t.history.listen((function(e){n._isMounted?n.setState({location:e}):n._pendingLocation=e}))),n}i(n,e),n.computeRootMatch=function(e){return{path:"/",url:"/",params:{},isExact:"/"===e}};var r=n.prototype;return r.componentDidMount=function(){this._isMounted=!0,this._pendingLocation&&this.setState({location:this._pendingLocation})},r.componentWillUnmount=function(){this.unlisten&&this.unlisten()},r.render=function(){return t().createElement(q.Provider,{value:{history:this.props.history,location:this.state.location,match:n.computeRootMatch(this.state.location.pathname),staticContext:this.props.staticContext}},t().createElement(U.Provider,{children:this.props.children||null,value:this.props.history}))},n}(t().Component);t().Component;t().Component;var z={},V=0;function K(e,t){void 0===t&&(t={}),("string"==typeof t||Array.isArray(t))&&(t={path:t});var n=t,r=n.path,o=n.exact,i=void 0!==o&&o,a=n.strict,c=void 0!==a&&a,u=n.sensitive,s=void 0!==u&&u;return[].concat(r).reduce((function(t,n){if(!n&&""!==n)return null;if(t)return t;var r=function(e,t){var n=""+t.end+t.strict+t.sensitive,r=z[n]||(z[n]={});if(r[e])return r[e];var o=[],i={regexp:B()(e,o,t),keys:o};return V<1e4&&(r[e]=i,V++),i}(n,{end:i,strict:c,sensitive:s}),o=r.regexp,a=r.keys,u=o.exec(e);if(!u)return null;var l=u[0],f=u.slice(1),d=e===l;return i&&!d?null:{path:n,url:"/"===n&&""===l?"/":l,isExact:d,params:a.reduce((function(e,t,n){return e[t.name]=f[n],e}),{})}}),null)}t().Component;function J(e){return"/"===e.charAt(0)?e:"/"+e}function X(e,t){if(!e)return t;var n=J(e);return 0!==t.pathname.indexOf(n)?t:u({},t,{pathname:t.pathname.substr(n.length)})}function Y(e){return"string"==typeof e?e:g(e)}function G(e){return function(){p(!1)}}function Q(){}t().Component;t().Component;t().useContext;t().Component;t().Component;var Z=function(e,t){return"function"==typeof e?e(t):e},ee=function(e,t){return"string"==typeof e?w(e,null,null,t):e},te=function(e){return e},ne=t().forwardRef;void 0===ne&&(ne=te);var re=ne((function(e,n){var r=e.innerRef,o=e.navigate,i=e.onClick,a=F(e,["innerRef","navigate","onClick"]),c=a.target,s=u({},a,{onClick:function(e){try{i&&i(e)}catch(t){throw e.preventDefault(),t}e.defaultPrevented||0!==e.button||c&&"_self"!==c||function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e)||(e.preventDefault(),o())}});return s.ref=te!==ne&&n||r,t().createElement("a",s)}));var oe=ne((function(e,n){var r=e.component,o=void 0===r?re:r,i=e.replace,a=e.to,c=e.innerRef,s=F(e,["component","replace","to","innerRef"]);return t().createElement(q.Consumer,null,(function(e){e||p(!1);var r=e.history,l=ee(Z(a,e.location),e.location),f=l?r.createHref(l):"",d=u({},s,{href:f,navigate:function(){var t=Z(a,e.location);(i?r.replace:r.push)(t)}});return te!==ne?d.ref=n||c:d.innerRef=c,t().createElement(o,d)}))})),ie=function(e){return e},ae=t().forwardRef;void 0===ae&&(ae=ie);ae((function(e,n){var r=e["aria-current"],o=void 0===r?"page":r,i=e.activeClassName,a=void 0===i?"active":i,c=e.activeStyle,s=e.className,l=e.exact,f=e.isActive,d=e.location,h=e.sensitive,v=e.strict,m=e.style,y=e.to,g=e.innerRef,w=F(e,["aria-current","activeClassName","activeStyle","className","exact","isActive","location","sensitive","strict","style","to","innerRef"]);return t().createElement(q.Consumer,null,(function(e){e||p(!1);var r=d||e.location,i=ee(Z(y,r),r),b=i.pathname,x=b&&b.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1"),_=x?K(r.pathname,{path:x,exact:l,sensitive:h,strict:v}):null,O=!!(f?f(_,r):_),E=O?function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.filter((function(e){return e})).join(" ")}(s,a):s,P=O?u({},m,{},c):m,S=u({"aria-current":O&&o||null,className:E,style:P,to:i},w);return ie!==ae?S.ref=n||g:S.innerRef=g,t().createElement(oe,S)}))}));const ce=()=>t().createElement("svg",{width:"25",height:"25",className:"icon icon--x",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 25 25"},t().createElement("line",{className:"stroke",x1:"8.74612",y1:"16.347",x2:"16.3973",y2:"8.69584"}),t().createElement("line",{className:"stroke",x1:"8.6027",y1:"8.69585",x2:"16.2539",y2:"16.3471"})),ue=()=>t().createElement("svg",{className:"icon icon--chevron",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 25 25"},t().createElement("path",{className:"stroke",d:"M9 10.5L12.5 14.5L16 10.5"})),se={plus:()=>t().createElement("svg",{className:"icon icon--plus",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 25 25"},t().createElement("line",{x1:"12.4589",y1:"16.9175",x2:"12.4589",y2:"8.50115",className:"stroke"}),t().createElement("line",{x1:"8.05164",y1:"12.594",x2:"16.468",y2:"12.594",className:"stroke"})),x:ce,chevron:ue,edit:()=>t().createElement("svg",{className:"icon icon--edit",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 25 25"},t().createElement("polygon",{className:"fill",points:"16.92 16.86 8.25 16.86 8.25 8.21 12.54 8.21 12.54 6.63 6.68 6.63 6.68 18.43 18.5 18.43 18.5 12.53 16.92 12.53 16.92 16.86"}),t().createElement("polygon",{className:"fill",points:"16.31 7.33 17.42 8.44 12.66 13.2 11.51 13.24 11.55 12.09 16.31 7.33"}),t().createElement("rect",{className:"fill",x:"16.94",y:"6.44",width:"1.58",height:"1.15",transform:"translate(10.16 -10.48) rotate(45)"}))},le="btn",fe=({children:n,icon:r})=>{const o=se[r];return t().createElement("span",{className:`${le}__content`},n&&t().createElement("span",{className:`${le}__label`},n),r&&t().createElement("span",{className:`${le}__icon`},(0,e.isValidElement)(r)&&r,o&&t().createElement(o,null)))},de=e=>{const{className:n,type:r="button",el:o,to:i,url:a,children:c,onClick:u,disabled:s,icon:l,iconStyle:f="without-border",buttonStyle:d="primary",round:p,size:h="medium",iconPosition:v="right",newTab:m}=e,y=[le,n&&n,d&&`${le}--style-${d}`,l&&`${le}--icon`,f&&`${le}--icon-style-${f}`,l&&!c&&`${le}--icon-only`,s&&`${le}--disabled`,p&&`${le}--round`,h&&`${le}--size-${h}`,v&&`${le}--icon-position-${v}`].filter(Boolean).join(" ");const g={type:r,className:y,onClick:function(e){"submit"!==r&&u&&e.preventDefault(),u&&u(e)},rel:m?"noopener noreferrer":void 0,target:m?"_blank":void 0};switch(o){case"link":return t().createElement(oe,{...g,to:i||a},t().createElement(fe,{icon:l},c));case"anchor":return t().createElement("a",{...g,href:a},t().createElement(fe,{icon:l},c));default:return t().createElement("button",{type:"submit",...g},t().createElement(fe,{icon:l},c))}};var pe=n(727),he=n(719);const ve=(t,n,r=[])=>{const o=(0,e.useRef)(Date.now());(0,e.useEffect)((()=>{const e=setTimeout((()=>{Date.now()-o.current>=n&&(t(),o.current=Date.now())}),n-(Date.now()-o.current));return()=>{clearTimeout(e)}}),[n,...r])},me="popup-button",ye=e=>{const{buttonType:n,button:r,setActive:o,active:i,onToggleOpen:a}=e,c=[me,`${me}--${n}`].filter(Boolean).join(" "),u=()=>{"function"==typeof a&&a(!i),o(!i)};return"custom"===n?t().createElement("div",{role:"button",tabIndex:0,onKeyDown:e=>{"Enter"===e.key&&u()},onClick:u,className:c},r):t().createElement("button",{type:"button",onClick:()=>o(!i),className:c},r)},ge="popup",we=n=>{const{className:r,render:o,size:i="small",color:a="light",button:c,buttonType:u="default",children:s,showOnHover:l=!1,horizontalAlign:f="left",initActive:d=!1,onToggleOpen:p}=n,h=(0,e.useRef)(null),v=(0,e.useRef)(null),[m,y]=(0,e.useState)(d),[g,w]=(0,e.useState)("top"),[b,x]=(0,e.useState)(null),{y:_}=(0,he.useScrollInfo)(),{height:O}=(0,pe.useWindowInfo)(),E=e=>{v.current.contains(e.target)||y(!1)};ve((()=>{if(v.current&&h.current){const{height:e,width:t,right:n}=v.current.getBoundingClientRect(),{y:r}=h.current.getBoundingClientRect(),o=window.innerWidth-n,i=n-t;x("left"===f&&o<=0?"right":"right"===f&&i<=0?"left":"center"===f&&(i<=t/2||o<=t/2)?o>i?"left":"right":null),w(r>e?"top":"bottom")}}),500,[w,v,_,O]),(0,e.useEffect)((()=>(m?document.addEventListener("mousedown",E):document.removeEventListener("mousedown",E),()=>{document.removeEventListener("mousedown",E)})),[m]);const P=[ge,r,`${ge}--size-${i}`,`${ge}--color-${a}`,`${ge}--v-align-${g}`,`${ge}--h-align-${f}`,b&&`${ge}--force-h-align-${b}`,m&&`${ge}--active`].filter(Boolean).join(" ");return t().createElement("div",{className:P},t().createElement("div",{ref:h,className:`${ge}__wrapper`},l?t().createElement("div",{className:`${ge}__on-hover-watch`,onMouseEnter:()=>y(!0),onMouseLeave:()=>y(!1)},t().createElement(ye,{onToggleOpen:p,buttonType:u,button:c,setActive:y,active:m})):t().createElement(ye,{onToggleOpen:p,buttonType:u,button:c,setActive:y,active:m})),t().createElement("div",{className:`${ge}__content`,ref:v},t().createElement("div",{className:`${ge}__wrap`},t().createElement("div",{className:`${ge}__scroll`},o&&o({close:()=>y(!1)}),s&&s))))},be="banner",xe=({children:e,className:n,to:r,icon:o,alignIcon:i="right",onClick:a,type:c="default"})=>{const u=[be,`${be}--type-${c}`,n&&n,r&&`${be}--has-link`,(r||a)&&`${be}--has-action`,o&&`${be}--has-icon`,o&&`${be}--align-icon-${i}`].filter(Boolean).join(" ");let s="div";return a&&!r&&(s="button"),r&&(s=oe),t().createElement(s,{className:u,onClick:a,to:r||void 0},o&&"left"===i&&t().createElement(t().Fragment,null,o),t().createElement("span",{className:`${be}__content`},e),o&&"right"===i&&t().createElement(t().Fragment,null,o))},_e="template-minimal",Oe=e=>{const{className:n,style:r={},children:o,width:i="normal"}=e,a=[n,_e,`${_e}--width-${i}`].filter(Boolean).join(" ");return t().createElement("section",{className:a,style:r},t().createElement("div",{className:`${_e}__wrap`},o))},Ee=()=>t().createElement("svg",{className:"icon icon--check",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 25 25"},t().createElement("path",{d:"M10.6092 16.0192L17.6477 8.98076",className:"stroke",strokeLinecap:"square",strokeLinejoin:"bevel"}),t().createElement("path",{d:"M7.35229 12.7623L10.6092 16.0192",className:"stroke",strokeLinecap:"square",strokeLinejoin:"bevel"})),Pe=()=>t().createElement("svg",{width:"25",height:"25",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"icon icon--search"},t().createElement("circle",{cx:"11.2069",cy:"10.7069",r:"5",stroke:"#333333",strokeWidth:"2"}),t().createElement("line",{x1:"14.914",y1:"13.9998",x2:"20.5002",y2:"19.586",stroke:"#333333",strokeWidth:"2"})),Se=()=>t().createElement("svg",{width:"25",height:"25",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t().createElement("rect",{x:"3.5",y:"4.5",width:"18",height:"2",fill:"#333333"}),t().createElement("rect",{x:"3.5",y:"11.5",width:"18",height:"2",fill:"#333333"}),t().createElement("rect",{x:"3.5",y:"18.5",width:"18",height:"2",fill:"#333333"})),$e="pill",je=({children:e,className:n,to:r,icon:o,alignIcon:i="right",onClick:a,pillStyle:c="light"})=>{const u=[$e,`${$e}--style-${c}`,n&&n,r&&`${$e}--has-link`,(r||a)&&`${$e}--has-action`,o&&`${$e}--has-icon`,o&&`${$e}--align-icon-${i}`].filter(Boolean).join(" ");let s="div";return a&&!r&&(s="button"),r&&(s=oe),t().createElement(s,{className:u,onClick:a,type:"button"===s?"button":void 0,to:r||void 0},o&&"left"===i&&t().createElement(t().Fragment,null,o),e,o&&"right"===i&&t().createElement(t().Fragment,null,o))}})(),module.exports=r})();
@@ -1 +1 @@
1
- .btn{background:transparent;line-height:1.9230769231rem;border-radius:4px;font-size:1rem;margin-top:1.9230769231rem;margin-bottom:1.9230769231rem;border:0;cursor:pointer;font-weight:400;text-decoration:none;text-align:center;color:inherit}.btn .btn__icon{border:1px solid;border-radius:100%}.btn .btn__icon .stroke{stroke:currentColor;fill:none}.btn .btn__icon .fill{fill:currentColor}.btn--icon-style-none .btn__icon,.btn--icon-style-without-border .btn__icon{border:none}.btn span{line-height:1.9230769231rem}.btn span,.btn svg{vertical-align:top}.btn--size-medium{padding:.9615384615rem 1.9230769231rem}.btn--size-small{padding:.4807692308rem .9615384615rem}.btn--style-primary{background-color:#333;color:#fff}.btn--style-primary:hover{background:#404040}.btn--style-primary:focus{box-shadow:0 0 0 2px #b2ffd6;outline:none}.btn--style-primary:active{background:#4d4d4d}.btn--style-secondary{box-shadow:inset 0 0 0 1px #333;color:#333;background:none}.btn--style-secondary:hover{background:rgba(51,51,51,.02);box-shadow:inset 0 0 0 1px #404040}.btn--style-secondary:focus{outline:none;box-shadow:inset 0 0 0 1px #404040,0 0 0 2px #b2ffd6}.btn--style-secondary:active{background:#ececec}.btn--style-none{padding:0;margin:0;border-radius:0}.btn--style-none:focus{opacity:.8}.btn--style-none:active{opacity:.7}.btn--round{border-radius:100%}.btn--icon span{display:flex;justify-content:space-between}.btn--icon.btn--style-primary .icon .stroke{stroke:#fff;fill:none}.btn--icon.btn--style-primary .icon .fill{fill:#fff}.btn--style-icon-label{padding:0;font-weight:600}.btn--style-light-gray{box-shadow:inset 0 0 0 1px #333}.btn--icon-position-left .btn__content{flex-direction:row-reverse}.btn--icon-position-left .btn__icon{margin-right:.9615384615rem}.btn--icon-position-right .btn__icon{margin-left:.9615384615rem}.btn--icon-only .btn__icon{padding:0;margin:0}.btn:hover .btn__icon{background:#333}.btn:hover .btn__icon .stroke{stroke:#fff;fill:none}.btn:hover .btn__icon .fill{fill:#fff}.btn:focus{outline:none}.btn:focus .btn__icon{background:#dadada}.btn:focus .btn__icon .stroke{stroke:#333;fill:none}.btn:focus .btn__icon .fill{fill:#333}.btn:active .btn__icon{background:#4d4d4d}.btn:active .btn__icon .stroke{stroke:#fff;fill:none}.btn:active .btn__icon .fill{fill:#fff}.icon--plus{width:1.9230769231rem;height:1.9230769231rem}.icon--plus .stroke,.icon--x line{stroke:#333;stroke-width:1px}.icon--chevron{height:1.9230769231rem;width:1.9230769231rem}.icon--chevron .stroke{fill:none;stroke:#333;stroke-width:2px}.popup{position:relative}.popup__content{position:absolute;background:#fff;opacity:0;visibility:hidden;z-index:50;max-width:calc(100vw - 1.92308rem)}.popup__content:after{content:" ";position:absolute;top:calc(100% - 1px);border:12px solid transparent;border-top-color:#fff}.popup__wrap{overflow:hidden}.popup__scroll{padding:1.9230769231rem;padding-right:calc(var(--scrollbar-width) + 1.92308rem);overflow-y:auto;width:calc(100% + var(--scrollbar-width));white-space:nowrap}.popup:active,.popup:focus{outline:none}.popup--size-small .popup__content{box-shadow:0 2px 3px 0 rgba(0,2,4,.1),0 6px 4px -4px rgba(0,2,4,.02)}.popup--size-small.popup--h-align-left .popup__content{left:-.9615384615rem}.popup--size-small.popup--h-align-left .popup__content:after{left:.8173076923rem}.popup--size-large .popup__content{box-shadow:0 2px 20px 7px rgba(0,2,4,.1),0 6px 4px -4px rgba(0,2,4,.02)}.popup--size-large .popup__scroll{padding:2.8846153846rem calc(var(--scrollbar-width) + 2.88462rem) 1.9230769231rem 2.8846153846rem}.popup--size-wide .popup__content{box-shadow:0 2px 3px 0 rgba(0,2,4,.1),0 6px 4px -4px rgba(0,2,4,.02)}.popup--size-wide .popup__content:after{border:12px solid transparent;border-top-color:#fff}.popup--size-wide .popup__scroll{padding:.4807692308rem .9615384615rem}.popup--size-wide.popup--align-left .popup__content{left:-.9615384615rem}.popup--size-wide.popup--align-left .popup__content:after{left:.8173076923rem}.popup--h-align-left .popup__content{left:-3.3653846154rem}.popup--h-align-left .popup__content:after{left:3.3653846154rem}.popup--h-align-center .popup__content,.popup--h-align-center .popup__content:after{left:50%;transform:translateX(-50%)}.popup--h-align-right .popup__content{right:-3.3653846154rem}.popup--h-align-right .popup__content:after{right:3.3653846154rem}.popup--force-h-align-left .popup__content{left:-3.3653846154rem;right:unset;transform:unset}.popup--force-h-align-left .popup__content:after{left:3.3653846154rem;right:unset;transform:unset}.popup--force-h-align-right .popup__content{right:-3.3653846154rem;left:unset;transform:unset}.popup--force-h-align-right .popup__content:after{right:3.3653846154rem;left:unset;transform:unset}.popup--v-align-top .popup__content{bottom:calc(100% + 1.92308rem)}.popup--v-align-bottom .popup__content{box-shadow:0 -2px 20px 7px rgba(0,2,4,.1),0 6px 4px -4px rgba(0,2,4,.02);top:calc(100% + .96154rem)}.popup--v-align-bottom .popup__content:after{top:unset;bottom:calc(100% - 1px);border-top-color:transparent!important;border-bottom-color:#fff}.popup--v-align-bottom.popup--color-dark .popup__content:after{border-bottom-color:#333}.popup--color-dark .popup__content{background:#333;color:#fff}.popup--color-dark .popup__content:after{border-top-color:#333}.popup--active .popup__content{opacity:1;visibility:visible}@media(max-width:1024px){.popup--size-large .popup__scroll,.popup__scroll{padding:1.4423076923rem;padding-right:calc(var(--scrollbar-width) + 1.44231rem)}.popup--h-align-left .popup__content{left:-.9615384615rem}.popup--h-align-left .popup__content:after{left:.9615384615rem}.popup--h-align-center .popup__content,.popup--h-align-center .popup__content:after{left:50%;transform:translateX(-50%)}.popup--h-align-right .popup__content{right:-.9615384615rem}.popup--h-align-right .popup__content:after{right:.9615384615rem}.popup--force-h-align-left .popup__content{left:-.9615384615rem;right:unset;transform:unset}.popup--force-h-align-left .popup__content:after{left:.9615384615rem;right:unset;transform:unset}.popup--force-h-align-right .popup__content{right:-.9615384615rem;left:unset;transform:unset}.popup--force-h-align-right .popup__content:after{right:.9615384615rem;left:unset;transform:unset}}.popup-button{display:inline-flex}.banner{font-size:1rem;line-height:1.9230769231rem;border:0;vertical-align:middle;background:rgba(51,51,51,.1);color:#333;border-radius:3px;padding:.9615384615rem;margin-bottom:1.9230769231rem}.banner--has-action{cursor:pointer;text-decoration:none}.banner--has-icon{display:flex}.banner--has-icon svg{display:block}.banner--type-default.button--has-action:hover{background:#333}.banner--type-default.button--has-action:active{background:#323232}.banner--type-error{background:rgba(255,111,118,.1);color:#ff6f76}.banner--type-error svg .stroke{stroke:#ff6f76;fill:none}.banner--type-error svg .fill{fill:#ff6f76}.banner--type-error.button--has-action:hover{background:rgba(255,111,118,.15)}.banner--type-error.button--has-action:active{background:rgba(255,111,118,.2)}.banner--type-success{background:rgba(178,255,214,.1);color:#4cffa0}.banner--type-success.button--has-action:hover{background:rgba(178,255,214,.15)}.banner--type-success.button--has-action:active{background:rgba(178,255,214,.2)}.template-minimal{display:flex;width:100%;justify-content:center;align-items:center;padding:5.7692307692rem 1.9230769231rem;margin-left:auto;margin-right:auto;min-height:100%}.template-minimal--width-normal .template-minimal__wrap{max-width:500px;width:100%}.template-minimal--width-wide .template-minimal__wrap{max-width:1024px;width:100%}.icon--check{height:1.9230769231rem;width:1.9230769231rem}.icon--check .stroke{fill:none;stroke:#333;stroke-width:2px}.pill{font-size:1rem;line-height:1.9230769231rem;border:0;display:inline-flex;vertical-align:middle;background:#dadada;color:#333;border-radius:3px;padding:0 .4807692308rem 0 .6490384615rem}.pill:active,.pill:focus{outline:none}.pill--has-action{cursor:pointer;text-decoration:none}.pill--has-icon svg{display:block}.pill--align-icon-left{padding-left:.2403846154rem}.pill--align-icon-right{padding-right:.2403846154rem}.pill--style-light:hover{background:#e2e2e2}.pill--style-light:active{background:#e7e7e7}.pill--style-light-gray{background:#f3f3f3;color:#333}.pill--style-dark{background:#333;color:#fff}.pill--style-dark svg .stroke{stroke:#fff;fill:none}.pill--style-dark svg .fill{fill:#fff}.pill--style-dark:hover{background:#3b3b3b}.pill--style-dark:active{background:#404040}
1
+ .btn{background:transparent;line-height:1.9230769231rem;border-radius:4px;font-size:1rem;margin-top:1.9230769231rem;margin-bottom:1.9230769231rem;border:0;cursor:pointer;font-weight:400;text-decoration:none;text-align:center;color:inherit}.btn .btn__icon{border:1px solid;border-radius:100%}.btn .btn__icon .stroke{stroke:currentColor;fill:none}.btn .btn__icon .fill{fill:currentColor}.btn--icon-style-none .btn__icon,.btn--icon-style-without-border .btn__icon{border:none}.btn span{line-height:1.9230769231rem}.btn span,.btn svg{vertical-align:top}.btn--size-medium{padding:.9615384615rem 1.9230769231rem}.btn--size-small{padding:.4807692308rem .9615384615rem}.btn--style-primary{background-color:#333;color:#fff}.btn--style-primary:hover{background:#404040}.btn--style-primary:focus{box-shadow:0 0 0 2px #b2ffd6;outline:none}.btn--style-primary:active{background:#4d4d4d}.btn--style-secondary{box-shadow:inset 0 0 0 1px #333;color:#333;background:none}.btn--style-secondary:hover{background:rgba(51,51,51,.02);box-shadow:inset 0 0 0 1px #404040}.btn--style-secondary:focus{outline:none;box-shadow:inset 0 0 0 1px #404040,0 0 0 2px #b2ffd6}.btn--style-secondary:active{background:#ececec}.btn--style-none{padding:0;margin:0;border-radius:0}.btn--style-none:focus{opacity:.8}.btn--style-none:active{opacity:.7}.btn--round{border-radius:100%}.btn--icon span{display:flex;justify-content:space-between}.btn--icon.btn--style-primary .icon .stroke{stroke:#fff;fill:none}.btn--icon.btn--style-primary .icon .fill{fill:#fff}.btn--style-icon-label{padding:0;font-weight:600}.btn--style-light-gray{box-shadow:inset 0 0 0 1px #333}.btn--icon-position-left .btn__content{flex-direction:row-reverse}.btn--icon-position-left .btn__icon{margin-right:.9615384615rem}.btn--icon-position-right .btn__icon{margin-left:.9615384615rem}.btn--icon-only .btn__icon{padding:0;margin:0}.btn:hover .btn__icon{background:#333}.btn:hover .btn__icon .stroke{stroke:#fff;fill:none}.btn:hover .btn__icon .fill{fill:#fff}.btn:focus{outline:none}.btn:focus .btn__icon{background:#dadada}.btn:focus .btn__icon .stroke{stroke:#333;fill:none}.btn:focus .btn__icon .fill{fill:#333}.btn:active .btn__icon{background:#4d4d4d}.btn:active .btn__icon .stroke{stroke:#fff;fill:none}.btn:active .btn__icon .fill{fill:#fff}.icon--plus{width:1.9230769231rem;height:1.9230769231rem}.icon--plus .stroke,.icon--x line{stroke:#333;stroke-width:1px}.icon--chevron{height:1.9230769231rem;width:1.9230769231rem}.icon--chevron .stroke{fill:none;stroke:#333;stroke-width:2px}.icon--edit{height:1.9230769231rem;width:1.9230769231rem;shape-rendering:auto}.icon--edit .fill{fill:#333;stroke:none}.popup{position:relative}.popup__content{position:absolute;background:#fff;opacity:0;visibility:hidden;z-index:50;max-width:calc(100vw - 1.92308rem)}.popup__content:after{content:" ";position:absolute;top:calc(100% - 1px);border:12px solid transparent;border-top-color:#fff}.popup__wrap{overflow:hidden}.popup__scroll{padding:1.9230769231rem;padding-right:calc(var(--scrollbar-width) + 1.92308rem);overflow-y:auto;width:calc(100% + var(--scrollbar-width));white-space:nowrap}.popup:active,.popup:focus{outline:none}.popup--size-small .popup__content{box-shadow:0 2px 3px 0 rgba(0,2,4,.1),0 6px 4px -4px rgba(0,2,4,.02)}.popup--size-small.popup--h-align-left .popup__content{left:-.9615384615rem}.popup--size-small.popup--h-align-left .popup__content:after{left:.8173076923rem}.popup--size-large .popup__content{box-shadow:0 2px 20px 7px rgba(0,2,4,.1),0 6px 4px -4px rgba(0,2,4,.02)}.popup--size-large .popup__scroll{padding:2.8846153846rem calc(var(--scrollbar-width) + 2.88462rem) 1.9230769231rem 2.8846153846rem}.popup--size-wide .popup__content{box-shadow:0 2px 3px 0 rgba(0,2,4,.1),0 6px 4px -4px rgba(0,2,4,.02)}.popup--size-wide .popup__content:after{border:12px solid transparent;border-top-color:#fff}.popup--size-wide .popup__scroll{padding:.4807692308rem .9615384615rem}.popup--size-wide.popup--align-left .popup__content{left:-.9615384615rem}.popup--size-wide.popup--align-left .popup__content:after{left:.8173076923rem}.popup--h-align-left .popup__content{left:-3.3653846154rem}.popup--h-align-left .popup__content:after{left:3.3653846154rem}.popup--h-align-center .popup__content,.popup--h-align-center .popup__content:after{left:50%;transform:translateX(-50%)}.popup--h-align-right .popup__content{right:-3.3653846154rem}.popup--h-align-right .popup__content:after{right:3.3653846154rem}.popup--force-h-align-left .popup__content{left:-3.3653846154rem;right:unset;transform:unset}.popup--force-h-align-left .popup__content:after{left:3.3653846154rem;right:unset;transform:unset}.popup--force-h-align-right .popup__content{right:-3.3653846154rem;left:unset;transform:unset}.popup--force-h-align-right .popup__content:after{right:3.3653846154rem;left:unset;transform:unset}.popup--v-align-top .popup__content{bottom:calc(100% + 1.92308rem)}.popup--v-align-bottom .popup__content{box-shadow:0 -2px 20px 7px rgba(0,2,4,.1),0 6px 4px -4px rgba(0,2,4,.02);top:calc(100% + .96154rem)}.popup--v-align-bottom .popup__content:after{top:unset;bottom:calc(100% - 1px);border-top-color:transparent!important;border-bottom-color:#fff}.popup--v-align-bottom.popup--color-dark .popup__content:after{border-bottom-color:#333}.popup--color-dark .popup__content{background:#333;color:#fff}.popup--color-dark .popup__content:after{border-top-color:#333}.popup--active .popup__content{opacity:1;visibility:visible}@media(max-width:1024px){.popup--size-large .popup__scroll,.popup__scroll{padding:1.4423076923rem;padding-right:calc(var(--scrollbar-width) + 1.44231rem)}.popup--h-align-left .popup__content{left:-.9615384615rem}.popup--h-align-left .popup__content:after{left:.9615384615rem}.popup--h-align-center .popup__content,.popup--h-align-center .popup__content:after{left:50%;transform:translateX(-50%)}.popup--h-align-right .popup__content{right:-.9615384615rem}.popup--h-align-right .popup__content:after{right:.9615384615rem}.popup--force-h-align-left .popup__content{left:-.9615384615rem;right:unset;transform:unset}.popup--force-h-align-left .popup__content:after{left:.9615384615rem;right:unset;transform:unset}.popup--force-h-align-right .popup__content{right:-.9615384615rem;left:unset;transform:unset}.popup--force-h-align-right .popup__content:after{right:.9615384615rem;left:unset;transform:unset}}.popup-button{display:inline-flex}.banner{font-size:1rem;line-height:1.9230769231rem;border:0;vertical-align:middle;background:rgba(51,51,51,.1);color:#333;border-radius:3px;padding:.9615384615rem;margin-bottom:1.9230769231rem}.banner--has-action{cursor:pointer;text-decoration:none}.banner--has-icon{display:flex}.banner--has-icon svg{display:block}.banner--type-default.button--has-action:hover{background:#333}.banner--type-default.button--has-action:active{background:#323232}.banner--type-error{background:rgba(255,111,118,.1);color:#ff6f76}.banner--type-error svg .stroke{stroke:#ff6f76;fill:none}.banner--type-error svg .fill{fill:#ff6f76}.banner--type-error.button--has-action:hover{background:rgba(255,111,118,.15)}.banner--type-error.button--has-action:active{background:rgba(255,111,118,.2)}.banner--type-success{background:rgba(178,255,214,.1);color:#4cffa0}.banner--type-success.button--has-action:hover{background:rgba(178,255,214,.15)}.banner--type-success.button--has-action:active{background:rgba(178,255,214,.2)}.template-minimal{display:flex;width:100%;justify-content:center;align-items:center;padding:5.7692307692rem 1.9230769231rem;margin-left:auto;margin-right:auto;min-height:100%}.template-minimal--width-normal .template-minimal__wrap{max-width:500px;width:100%}.template-minimal--width-wide .template-minimal__wrap{max-width:1024px;width:100%}.icon--check{height:1.9230769231rem;width:1.9230769231rem}.icon--check .stroke{fill:none;stroke:#333;stroke-width:2px}.pill{font-size:1rem;line-height:1.9230769231rem;border:0;display:inline-flex;vertical-align:middle;background:#dadada;color:#333;border-radius:3px;padding:0 .4807692308rem 0 .6490384615rem}.pill:active,.pill:focus{outline:none}.pill--has-action{cursor:pointer;text-decoration:none}.pill--has-icon svg{display:block}.pill--align-icon-left{padding-left:.2403846154rem}.pill--align-icon-right{padding-right:.2403846154rem}.pill--style-light:hover{background:#e2e2e2}.pill--style-light:active{background:#e7e7e7}.pill--style-light-gray{background:#f3f3f3;color:#333}.pill--style-dark{background:#333;color:#fff}.pill--style-dark svg .stroke{stroke:#fff;fill:none}.pill--style-dark svg .fill{fill:#fff}.pill--style-dark:hover{background:#3b3b3b}.pill--style-dark:active{background:#404040}
@@ -3,11 +3,13 @@ import { Link } from 'react-router-dom';
3
3
  import plus from '../../icons/Plus';
4
4
  import x from '../../icons/X';
5
5
  import chevron from '../../icons/Chevron';
6
+ import edit from '../../icons/Edit';
6
7
  import './index.scss';
7
8
  const icons = {
8
9
  plus,
9
10
  x,
10
11
  chevron,
12
+ edit,
11
13
  };
12
14
  const baseClass = 'btn';
13
15
  const ButtonContents = ({ children, icon }) => {
@@ -8,7 +8,7 @@ export declare type Props = {
8
8
  children?: React.ReactNode;
9
9
  onClick?: (event: MouseEvent) => void;
10
10
  disabled?: boolean;
11
- icon?: React.ReactNode | ['chevron' | 'x' | 'plus'];
11
+ icon?: React.ReactNode | ['chevron' | 'x' | 'plus' | 'edit'];
12
12
  iconStyle?: 'with-border' | 'without-border' | 'none';
13
13
  buttonStyle?: 'primary' | 'secondary' | 'transparent' | 'error' | 'none' | 'icon-label';
14
14
  round?: boolean;
@@ -6,7 +6,7 @@ import PopupButton from './PopupButton';
6
6
  import './index.scss';
7
7
  const baseClass = 'popup';
8
8
  const Popup = (props) => {
9
- const { render, size = 'small', color = 'light', button, buttonType = 'default', children, showOnHover = false, horizontalAlign = 'left', initActive = false, onToggleOpen, } = props;
9
+ const { className, render, size = 'small', color = 'light', button, buttonType = 'default', children, showOnHover = false, horizontalAlign = 'left', initActive = false, onToggleOpen, } = props;
10
10
  const buttonRef = useRef(null);
11
11
  const contentRef = useRef(null);
12
12
  const [active, setActive] = useState(initActive);
@@ -63,6 +63,7 @@ const Popup = (props) => {
63
63
  }, [active]);
64
64
  const classes = [
65
65
  baseClass,
66
+ className,
66
67
  `${baseClass}--size-${size}`,
67
68
  `${baseClass}--color-${color}`,
68
69
  `${baseClass}--v-align-${verticalAlign}`,
@@ -1,5 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  export declare type Props = {
3
+ className?: string;
3
4
  render?: (any: any) => void;
4
5
  children?: React.ReactNode;
5
6
  horizontalAlign?: 'left' | 'center' | 'right';
@@ -3,8 +3,9 @@ import Select from 'react-select';
3
3
  import Chevron from '../../icons/Chevron';
4
4
  import './index.scss';
5
5
  const ReactSelect = (props) => {
6
- const { showError = false, options, onChange, value, disabled = false, } = props;
6
+ const { className, showError = false, options, onChange, value, disabled = false, } = props;
7
7
  const classes = [
8
+ className,
8
9
  'react-select',
9
10
  showError && 'react-select--error',
10
11
  ].filter(Boolean).join(' ');
@@ -5,6 +5,7 @@ export declare type Value = {
5
5
  options?: Value[];
6
6
  };
7
7
  export declare type Props = {
8
+ className?: string;
8
9
  value?: Value | Value[];
9
10
  onChange?: (value: any) => void;
10
11
  disabled?: boolean;
@@ -4,9 +4,10 @@ import Thumbnail from '../Thumbnail';
4
4
  import './index.scss';
5
5
  const baseClass = 'upload-card';
6
6
  const UploadCard = (props) => {
7
- const { onClick, doc, collection, } = props;
7
+ const { className, onClick, doc, collection, } = props;
8
8
  const classes = [
9
9
  baseClass,
10
+ className,
10
11
  typeof onClick === 'function' && `${baseClass}--has-on-click`,
11
12
  ].filter(Boolean).join(' ');
12
13
  return (React.createElement("div", { className: classes, onClick: typeof onClick === 'function' ? onClick : undefined },
@@ -1,5 +1,6 @@
1
1
  import { SanitizedCollectionConfig } from '../../../../collections/config/types';
2
2
  export declare type Props = {
3
+ className?: string;
3
4
  collection: SanitizedCollectionConfig;
4
5
  doc: Record<string, unknown>;
5
6
  onClick?: () => void;
@@ -1,5 +1,23 @@
1
1
  import React from 'react';
2
+ import { BaseEditor } from 'slate';
3
+ import { ReactEditor } from 'slate-react';
4
+ import { HistoryEditor } from 'slate-history';
2
5
  import { Props } from './types';
3
6
  import './index.scss';
7
+ declare type CustomText = {
8
+ text: string;
9
+ [x: string]: unknown;
10
+ };
11
+ declare type CustomElement = {
12
+ type: string;
13
+ children: CustomText[];
14
+ };
15
+ declare module 'slate' {
16
+ interface CustomTypes {
17
+ Editor: BaseEditor & ReactEditor & HistoryEditor;
18
+ Element: CustomElement;
19
+ Text: CustomText;
20
+ }
21
+ }
4
22
  declare const _default: React.FC<Props>;
5
23
  export default _default;
@@ -1,7 +1,7 @@
1
1
  import React, { useState, useCallback, useMemo, useEffect } from 'react';
2
2
  import isHotkey from 'is-hotkey';
3
+ import { createEditor, Transforms, Node, Element as SlateElement, Text } from 'slate';
3
4
  import { Editable, withReact, Slate } from 'slate-react';
4
- import { createEditor, Transforms, Node } from 'slate';
5
5
  import { withHistory } from 'slate-history';
6
6
  import { richText } from '../../../../../fields/validations';
7
7
  import useFieldType from '../../useFieldType';
@@ -20,7 +20,7 @@ import withHTML from './plugins/withHTML';
20
20
  import listTypes from './elements/listTypes';
21
21
  import mergeCustomFunctions from './mergeCustomFunctions';
22
22
  import './index.scss';
23
- const defaultElements = ['h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'ul', 'ol', 'link', 'relationship'];
23
+ const defaultElements = ['h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'ul', 'ol', 'link', 'relationship', 'upload'];
24
24
  const defaultLeaves = ['bold', 'italic', 'underline', 'strikethrough', 'code'];
25
25
  const enterBreakOutTypes = ['h1', 'h2', 'h3', 'h4', 'h5', 'h6'];
26
26
  const baseClass = 'rich-text';
@@ -36,19 +36,19 @@ const RichText = (props) => {
36
36
  const matchedElement = enabledElements[element === null || element === void 0 ? void 0 : element.type];
37
37
  const Element = matchedElement === null || matchedElement === void 0 ? void 0 : matchedElement.Element;
38
38
  if (Element) {
39
- return (React.createElement(Element, { attributes: attributes, element: element }, children));
39
+ return (React.createElement(Element, { attributes: attributes, element: element, path: path }, children));
40
40
  }
41
41
  return React.createElement("div", { ...attributes }, children);
42
- }, [enabledElements]);
42
+ }, [enabledElements, path]);
43
43
  const renderLeaf = useCallback(({ attributes, children, leaf }) => {
44
44
  var _a;
45
45
  const matchedLeafName = Object.keys(enabledLeaves).find((leafName) => leaf[leafName]);
46
46
  if ((_a = enabledLeaves[matchedLeafName]) === null || _a === void 0 ? void 0 : _a.Leaf) {
47
47
  const { Leaf } = enabledLeaves[matchedLeafName];
48
- return (React.createElement(Leaf, { attributes: attributes, leaf: leaf }, children));
48
+ return (React.createElement(Leaf, { attributes: attributes, leaf: leaf, path: path }, children));
49
49
  }
50
50
  return (React.createElement("span", { ...attributes }, children));
51
- }, [enabledLeaves]);
51
+ }, [enabledLeaves, path]);
52
52
  const memoizedValidate = useCallback((value) => {
53
53
  const validationResult = validate(value, { required });
54
54
  return validationResult;
@@ -148,35 +148,40 @@ const RichText = (props) => {
148
148
  }
149
149
  else {
150
150
  const selectedElement = Node.descendant(editor, editor.selection.anchor.path.slice(0, -1));
151
- // Allow hard enter to "break out" of certain elements
152
- if (enterBreakOutTypes.includes(String(selectedElement.type))) {
153
- event.preventDefault();
154
- const selectedLeaf = Node.descendant(editor, editor.selection.anchor.path);
155
- if (String(selectedLeaf.text).length === editor.selection.anchor.offset) {
156
- Transforms.insertNodes(editor, {
157
- type: 'p',
158
- children: [{ text: '', marks: [] }],
159
- });
160
- }
161
- else {
162
- Transforms.splitNodes(editor);
163
- Transforms.setNodes(editor, { type: 'p' });
151
+ if (SlateElement.isElement(selectedElement)) {
152
+ // Allow hard enter to "break out" of certain elements
153
+ if (enterBreakOutTypes.includes(String(selectedElement.type))) {
154
+ event.preventDefault();
155
+ const selectedLeaf = Node.descendant(editor, editor.selection.anchor.path);
156
+ if (Text.isText(selectedLeaf) && String(selectedLeaf.text).length === editor.selection.anchor.offset) {
157
+ Transforms.insertNodes(editor, {
158
+ type: 'p',
159
+ children: [{ text: '' }],
160
+ });
161
+ }
162
+ else {
163
+ Transforms.splitNodes(editor);
164
+ Transforms.setNodes(editor, { type: 'p' });
165
+ }
164
166
  }
165
167
  }
166
168
  }
167
169
  }
168
170
  if (event.key === 'Backspace') {
169
171
  const selectedElement = Node.descendant(editor, editor.selection.anchor.path.slice(0, -1));
170
- if (selectedElement.type === 'li') {
172
+ if (SlateElement.isElement(selectedElement) && selectedElement.type === 'li') {
171
173
  const selectedLeaf = Node.descendant(editor, editor.selection.anchor.path);
172
- if (String(selectedLeaf.text).length === 1) {
174
+ if (Text.isText(selectedLeaf) && String(selectedLeaf.text).length === 1) {
173
175
  Transforms.unwrapNodes(editor, {
174
- match: (n) => listTypes.includes(n.type),
176
+ match: (n) => SlateElement.isElement(n) && listTypes.includes(n.type),
175
177
  split: true,
176
178
  });
177
179
  Transforms.setNodes(editor, { type: 'p' });
178
180
  }
179
181
  }
182
+ else if (editor.isVoid(selectedElement)) {
183
+ Transforms.removeNodes(editor);
184
+ }
180
185
  }
181
186
  Object.keys(hotkeys).forEach((hotkey) => {
182
187
  if (isHotkey(hotkey, event)) {
@@ -49,7 +49,7 @@ declare const _default: {
49
49
  children: any;
50
50
  element: any;
51
51
  }) => JSX.Element;
52
- plugins: ((incomingEditor: import("slate").Editor) => import("slate").Editor)[];
52
+ plugins: ((incomingEditor: import("slate").BaseEditor & import("slate-react").ReactEditor & import("slate-history").HistoryEditor) => import("slate").BaseEditor & import("slate-react").ReactEditor & import("slate-history").HistoryEditor)[];
53
53
  };
54
54
  ol: {
55
55
  Button: () => JSX.Element;
@@ -75,10 +75,18 @@ declare const _default: {
75
75
  Button: import("react").FC<{
76
76
  path: string;
77
77
  }>;
78
- Element: ({ attributes, children, element }: {
78
+ Element: (props: any) => JSX.Element;
79
+ plugins: ((incomingEditor: any) => any)[];
80
+ };
81
+ upload: {
82
+ Button: import("react").FC<{
83
+ path: string;
84
+ }>;
85
+ Element: ({ attributes, children, element, path }: {
79
86
  attributes: any;
80
87
  children: any;
81
88
  element: any;
89
+ path: any;
82
90
  }) => JSX.Element;
83
91
  plugins: ((incomingEditor: any) => any)[];
84
92
  };
@@ -9,6 +9,7 @@ import ol from './ol';
9
9
  import ul from './ul';
10
10
  import li from './li';
11
11
  import relationship from './relationship';
12
+ import upload from './upload';
12
13
  export default {
13
14
  h1,
14
15
  h2,
@@ -21,4 +22,5 @@ export default {
21
22
  ul,
22
23
  li,
23
24
  relationship,
25
+ upload,
24
26
  };
@@ -1,7 +1,7 @@
1
- import { Editor } from 'slate';
1
+ import { Editor, Element } from 'slate';
2
2
  const isElementActive = (editor, format) => {
3
3
  const [match] = Editor.nodes(editor, {
4
- match: (n) => n.type === format,
4
+ match: (n) => Element.isElement(n) && n.type === format,
5
5
  });
6
6
  return !!match;
7
7
  };
@@ -1,4 +1,5 @@
1
1
  /// <reference types="react" />
2
+ import { ReactEditor } from 'slate-react';
2
3
  import './index.scss';
3
4
  declare const link: {
4
5
  Button: () => JSX.Element;
@@ -7,6 +8,6 @@ declare const link: {
7
8
  children: any;
8
9
  element: any;
9
10
  }) => JSX.Element;
10
- plugins: ((incomingEditor: import("slate").Editor) => import("slate").Editor)[];
11
+ plugins: ((incomingEditor: import("slate").BaseEditor & ReactEditor & import("slate-history").HistoryEditor) => import("slate").BaseEditor & ReactEditor & import("slate-history").HistoryEditor)[];
11
12
  };
12
13
  export default link;
@@ -1,10 +1,10 @@
1
- import { Editor, Transforms, Range } from 'slate';
1
+ import { Editor, Transforms, Range, Element } from 'slate';
2
2
  export const isLinkActive = (editor) => {
3
- const [link] = Editor.nodes(editor, { match: (n) => n.type === 'link' });
3
+ const [link] = Editor.nodes(editor, { match: (n) => Element.isElement(n) && n.type === 'link' });
4
4
  return !!link;
5
5
  };
6
6
  export const unwrapLink = (editor) => {
7
- Transforms.unwrapNodes(editor, { match: (n) => n.type === 'link' });
7
+ Transforms.unwrapNodes(editor, { match: (n) => Element.isElement(n) && n.type === 'link' });
8
8
  };
9
9
  export const wrapLink = (editor, url, newTab) => {
10
10
  if (isLinkActive(editor)) {