payload 0.15.11 → 0.15.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +7 -0
- package/components/index.js +2 -2
- package/dist/admin/components/forms/DraggableSection/index.js +1 -1
- package/dist/admin/components/forms/Form/fieldReducer.js +1 -2
- package/dist/admin/components/forms/Form/types.d.ts +0 -1
- package/dist/admin/components/forms/field-types/Array/Array.js +1 -2
- package/dist/admin/components/forms/field-types/Blocks/Blocks.js +1 -2
- package/dist/admin/components/forms/field-types/HiddenInput/index.js +3 -3
- package/dist/admin/components/forms/field-types/HiddenInput/types.d.ts +1 -1
- package/dist/admin/components/forms/useField/index.js +3 -6
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
## [0.15.12](https://github.com/payloadcms/payload/compare/v0.15.11...v0.15.12) (2022-04-26)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* ensures adding array / block rows modifies form state ([8bdbd0d](https://github.com/payloadcms/payload/commit/8bdbd0dd418cd665441703fa4fd87becafd26170))
|
|
7
|
+
|
|
1
8
|
## [0.15.11](https://github.com/payloadcms/payload/compare/v0.15.10...v0.15.11) (2022-04-24)
|
|
2
9
|
|
|
3
10
|
|
package/components/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(()=>{var e={720:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var o=r(n(206));t.default=function(e){var t=e.children,n=o.default();return t?"function"==typeof t?t(n):t:null}},761:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(497).createContext({});t.default=r},788:function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i.apply(this,arguments)},a=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),c=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),u=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&a(t,e,n);return c(t,e),t},l=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var s=u(n(497)),f=l(n(761)),d=function(e){function t(t){var n=e.call(this,t)||this;return n.requestAnimation=function(e){n.state.animationScheduled||n.setState({animationScheduled:!0},(function(){return requestAnimationFrame((function(t){return n.updateScrollInfo(e,t)}))}))},n.updateScrollInfo=function(e,t){var r=n.state,o=r.x,i=r.y,a=r.xDirection,c=r.yDirection,u=r.eventsFired,l=r.hasScrolled||Boolean(t),s=l?window.pageXOffset:0,f=l?window.pageYOffset:0,d=l?u+1:u,p=s-o,h=f-i,v=s/(document.body.scrollWidth-window.innerWidth)*100,m=f/(document.body.scrollHeight-window.innerHeight)*100,y=(v+m)/2,g=p>0?"right":p<0?"left":a,w=h>0?"down":h<0?"up":c;n.setState({x:s,y:f,xDifference:p,yDifference:h,xDirection:g,yDirection:w,xPercentage:v,yPercentage:m,totalPercentage:y,eventsFired:d,hasScrolled:l,animationScheduled:!1})},n.state={x:0,y:0,xDifference:0,yDifference:0,xDirection:void 0,yDirection:void 0,xPercentage:0,yPercentage:0,totalPercentage:0,eventsFired:0,hasScrolled:!1,animationScheduled:!1},n}return o(t,e),t.prototype.componentDidMount=function(){window.addEventListener("scroll",this.requestAnimation),this.updateScrollInfo()},t.prototype.componentWillUnmount=function(){window.removeEventListener("scroll",this.requestAnimation)},t.prototype.render=function(){var e=this.props.children,t=i({},this.state);return delete t.hasScrolled,delete t.animationScheduled,s.default.createElement(f.default.Provider,{value:i({},t)},e&&e)},t}(s.Component);t.default=d},719:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.withScrollInfo=t.useScrollInfo=t.ScrollInfoProvider=t.ScrollInfoContext=t.ScrollInfo=void 0;var o=n(720);Object.defineProperty(t,"ScrollInfo",{enumerable:!0,get:function(){return r(o).default}});var i=n(761);Object.defineProperty(t,"ScrollInfoContext",{enumerable:!0,get:function(){return r(i).default}});var a=n(788);Object.defineProperty(t,"ScrollInfoProvider",{enumerable:!0,get:function(){return r(a).default}});var c=n(206);Object.defineProperty(t,"useScrollInfo",{enumerable:!0,get:function(){return r(c).default}});var u=n(576);Object.defineProperty(t,"withScrollInfo",{enumerable:!0,get:function(){return r(u).default}})},206:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var o=n(497),i=r(n(761));t.default=function(){return o.useContext(i.default)}},576:function(e,t,n){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},r.apply(this,arguments)},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=o(n(497)),a=n(719);t.default=function(e){return function(t){var n=a.useScrollInfo();return i.default.createElement(e,r({},r(r({},t),{scrollInfo:n})))}}},698:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var c=i(n(497)),u=a(n(796));t.default=function(e){var t=e.children,n=(0,u.default)();return t?"function"==typeof t?c.default.createElement(c.Fragment,null,t(n)):c.default.createElement(c.Fragment,null,t):null}},181:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=(0,n(497).createContext)({});t.default=r},71:function(e,t,n){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},r.apply(this,arguments)},o=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&o(t,e,n);return i(t,e),t},c=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var u=a(n(497)),l=c(n(181)),s=function(e,t){var n=t.payload,o=n.breakpoints;n.animationRef.current=null;var i=e.eventsFired,a=document.documentElement,c=a.style,u=a.clientWidth,l=a.clientHeight,s=window.innerWidth,f=window.innerHeight,d="".concat(u/100,"px"),p="".concat(l/100,"px"),h=o?Object.keys(o).reduce((function(e,t){var n;return r(r({},e),((n={})[t]=window.matchMedia(o[t]).matches,n))}),{}):void 0,v={width:s,height:f,"--vw":d,"--vh":p,breakpoints:h,eventsFired:i+1};return c.setProperty("--vw",d),c.setProperty("--vh",p),v};t.default=function(e){var t=e.breakpoints,n=e.children,o=(0,u.useRef)(null),i=(0,u.useReducer)(s,{width:void 0,height:void 0,"--vw":"","--vh":"",breakpoints:t,eventsFired:0}),a=i[0],c=i[1],f=(0,u.useCallback)((function(){o.current&&cancelAnimationFrame(o.current),o.current=requestAnimationFrame((function(){return c({type:"UPDATE",payload:{breakpoints:t,animationRef:o}})}))}),[t]),d=(0,u.useCallback)((function(){setTimeout((function(){f()}),500)}),[f]);return(0,u.useEffect)((function(){return window.addEventListener("resize",f),window.addEventListener("orientationchange",d),function(){window.removeEventListener("resize",f),window.removeEventListener("orientationchange",d)}}),[f,d]),(0,u.useEffect)((function(){0===a.eventsFired&&c({type:"UPDATE",payload:{breakpoints:t,animationRef:o}})}),[t,a]),u.default.createElement(l.default.Provider,{value:r({},a)},n&&n)}},727:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.withWindowInfo=t.WindowInfoProvider=t.WindowInfoContext=t.WindowInfo=t.useWindowInfo=void 0;var o=n(796);Object.defineProperty(t,"useWindowInfo",{enumerable:!0,get:function(){return r(o).default}});var i=n(698);Object.defineProperty(t,"WindowInfo",{enumerable:!0,get:function(){return r(i).default}});var a=n(181);Object.defineProperty(t,"WindowInfoContext",{enumerable:!0,get:function(){return r(a).default}});var c=n(71);Object.defineProperty(t,"WindowInfoProvider",{enumerable:!0,get:function(){return r(c).default}});var u=n(917);Object.defineProperty(t,"withWindowInfo",{enumerable:!0,get:function(){return r(u).default}})},796:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var o=n(497),i=r(n(181));t.default=function(){return(0,o.useContext)(i.default)}},917:function(e,t,n){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},r.apply(this,arguments)},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=o(n(497)),a=o(n(796));t.default=function(e){return function(t){var n=(0,a.default)();return i.default.createElement(e,r({},r(r({},t),{windowInfo:n})))}}},679:(e,t,n)=>{"use strict";var r=n(864),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},c={};function u(e){return r.isMemo(e)?a:c[e.$$typeof]||o}c[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},c[r.Memo]=a;var l=Object.defineProperty,s=Object.getOwnPropertyNames,f=Object.getOwnPropertySymbols,d=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,h=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(h){var o=p(n);o&&o!==h&&e(t,o,r)}var a=s(n);f&&(a=a.concat(f(n)));for(var c=u(t),v=u(n),m=0;m<a.length;++m){var y=a[m];if(!(i[y]||r&&r[y]||v&&v[y]||c&&c[y])){var g=d(n,y);try{l(t,y,g)}catch(e){}}}}return t}},826:e=>{e.exports=Array.isArray||function(e){return"[object Array]"==Object.prototype.toString.call(e)}},703:(e,t,n)=>{"use strict";var r=n(414);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,i,a){if(a!==r){var c=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw c.name="Invariant Violation",c}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:o};return n.PropTypes=n,n}},697:(e,t,n)=>{e.exports=n(703)()},414:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},921:(e,t)=>{"use strict";
|
|
1
|
+
(()=>{var e={720:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var c=i(n(497)),u=a(n(206));t.default=function(e){var t=e.children,n=(0,u.default)();return t?"function"==typeof t?c.default.createElement(c.Fragment,null,t(n)):c.default.createElement(c.Fragment,null,t):null}},761:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=(0,n(497).createContext)({});t.default=r},788:function(e,t,n){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},r.apply(this,arguments)},o=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&o(t,e,n);return i(t,e),t},c=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var u=a(n(497)),l=c(n(761)),s=function(e,t){var n=t.timestamp;t.animationRef.current=null;var r=e.x,o=e.y,i=e.xDirection,a=e.yDirection,c=e.eventsFired,u=e.hasScrolled||Boolean(n),l=u?window.pageXOffset:0,s=u?window.pageYOffset:0,f=u?c+1:c,d=l-r,p=s-o,h=l/(document.body.scrollWidth-window.innerWidth)*100,v=s/(document.body.scrollHeight-window.innerHeight)*100;return{x:l,y:s,xDifference:d,yDifference:p,xDirection:d>0?"right":d<0?"left":i,yDirection:p>0?"down":p<0?"up":a,xPercentage:h,yPercentage:v,totalPercentage:(h+v)/2,eventsFired:f,hasScrolled:u}};t.default=function(e){var t=e.children,n=(0,u.useRef)(null),o=(0,u.useReducer)(s,{x:0,y:0,xDifference:0,yDifference:0,xDirection:void 0,yDirection:void 0,xPercentage:0,yPercentage:0,totalPercentage:0,eventsFired:0,hasScrolled:!1}),i=o[0],a=o[1],c=(0,u.useCallback)((function(e){n.current&&cancelAnimationFrame(n.current),n.current=requestAnimationFrame((function(t){a({e,timestamp:t,animationRef:n})}))}),[]);return(0,u.useEffect)((function(){return window.addEventListener("scroll",c),function(){window.removeEventListener("scroll",c)}}),[c]),u.default.createElement(l.default.Provider,{value:r({},i)},t&&t)}},719:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.withScrollInfo=t.useScrollInfo=t.ScrollInfoProvider=t.ScrollInfoContext=t.ScrollInfo=void 0;var o=n(720);Object.defineProperty(t,"ScrollInfo",{enumerable:!0,get:function(){return r(o).default}});var i=n(761);Object.defineProperty(t,"ScrollInfoContext",{enumerable:!0,get:function(){return r(i).default}});var a=n(788);Object.defineProperty(t,"ScrollInfoProvider",{enumerable:!0,get:function(){return r(a).default}});var c=n(206);Object.defineProperty(t,"useScrollInfo",{enumerable:!0,get:function(){return r(c).default}});var u=n(576);Object.defineProperty(t,"withScrollInfo",{enumerable:!0,get:function(){return r(u).default}})},206:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var o=n(497),i=r(n(761));t.default=function(){return(0,o.useContext)(i.default)}},576:function(e,t,n){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},r.apply(this,arguments)},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=o(n(497)),a=n(719);t.default=function(e){return function(t){var n=(0,a.useScrollInfo)();return i.default.createElement(e,r({},r(r({},t),{scrollInfo:n})))}}},698:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var c=i(n(497)),u=a(n(796));t.default=function(e){var t=e.children,n=(0,u.default)();return t?"function"==typeof t?c.default.createElement(c.Fragment,null,t(n)):c.default.createElement(c.Fragment,null,t):null}},181:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=(0,n(497).createContext)({});t.default=r},71:function(e,t,n){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},r.apply(this,arguments)},o=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&o(t,e,n);return i(t,e),t},c=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var u=a(n(497)),l=c(n(181)),s=function(e,t){var n=t.payload,o=n.breakpoints;n.animationRef.current=null;var i=e.eventsFired,a=document.documentElement,c=a.style,u=a.clientWidth,l=a.clientHeight,s=window.innerWidth,f=window.innerHeight,d="".concat(u/100,"px"),p="".concat(l/100,"px"),h=o?Object.keys(o).reduce((function(e,t){var n;return r(r({},e),((n={})[t]=window.matchMedia(o[t]).matches,n))}),{}):void 0,v={width:s,height:f,"--vw":d,"--vh":p,breakpoints:h,eventsFired:i+1};return c.setProperty("--vw",d),c.setProperty("--vh",p),v};t.default=function(e){var t=e.breakpoints,n=e.children,o=(0,u.useRef)(null),i=(0,u.useReducer)(s,{width:void 0,height:void 0,"--vw":"","--vh":"",breakpoints:t,eventsFired:0}),a=i[0],c=i[1],f=(0,u.useCallback)((function(){o.current&&cancelAnimationFrame(o.current),o.current=requestAnimationFrame((function(){return c({type:"UPDATE",payload:{breakpoints:t,animationRef:o}})}))}),[t]),d=(0,u.useCallback)((function(){setTimeout((function(){f()}),500)}),[f]);return(0,u.useEffect)((function(){return window.addEventListener("resize",f),window.addEventListener("orientationchange",d),function(){window.removeEventListener("resize",f),window.removeEventListener("orientationchange",d)}}),[f,d]),(0,u.useEffect)((function(){0===a.eventsFired&&c({type:"UPDATE",payload:{breakpoints:t,animationRef:o}})}),[t,a]),u.default.createElement(l.default.Provider,{value:r({},a)},n&&n)}},727:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.withWindowInfo=t.WindowInfoProvider=t.WindowInfoContext=t.WindowInfo=t.useWindowInfo=void 0;var o=n(796);Object.defineProperty(t,"useWindowInfo",{enumerable:!0,get:function(){return r(o).default}});var i=n(698);Object.defineProperty(t,"WindowInfo",{enumerable:!0,get:function(){return r(i).default}});var a=n(181);Object.defineProperty(t,"WindowInfoContext",{enumerable:!0,get:function(){return r(a).default}});var c=n(71);Object.defineProperty(t,"WindowInfoProvider",{enumerable:!0,get:function(){return r(c).default}});var u=n(917);Object.defineProperty(t,"withWindowInfo",{enumerable:!0,get:function(){return r(u).default}})},796:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var o=n(497),i=r(n(181));t.default=function(){return(0,o.useContext)(i.default)}},917:function(e,t,n){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},r.apply(this,arguments)},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=o(n(497)),a=o(n(796));t.default=function(e){return function(t){var n=(0,a.default)();return i.default.createElement(e,r({},r(r({},t),{windowInfo:n})))}}},679:(e,t,n)=>{"use strict";var r=n(864),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},c={};function u(e){return r.isMemo(e)?a:c[e.$$typeof]||o}c[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},c[r.Memo]=a;var l=Object.defineProperty,s=Object.getOwnPropertyNames,f=Object.getOwnPropertySymbols,d=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,h=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(h){var o=p(n);o&&o!==h&&e(t,o,r)}var a=s(n);f&&(a=a.concat(f(n)));for(var c=u(t),v=u(n),m=0;m<a.length;++m){var y=a[m];if(!(i[y]||r&&r[y]||v&&v[y]||c&&c[y])){var g=d(n,y);try{l(t,y,g)}catch(e){}}}}return t}},826:e=>{e.exports=Array.isArray||function(e){return"[object Array]"==Object.prototype.toString.call(e)}},703:(e,t,n)=>{"use strict";var r=n(414);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,i,a){if(a!==r){var c=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw c.name="Invariant Violation",c}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:o};return n.PropTypes=n,n}},697:(e,t,n)=>{e.exports=n(703)()},414:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},921:(e,t)=>{"use strict";
|
|
2
2
|
/** @license React v16.13.1
|
|
3
3
|
* react-is.production.min.js
|
|
4
4
|
*
|
|
@@ -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,l=n?Symbol.for("react.context"):60110,s=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 _(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case s:case f:case i:case c:case a:case p:return e;default:switch(e=e&&e.$$typeof){case l:case d:case m:case v:case u:return e;default:return t}}case o:return t}}}function x(e){return _(e)===f}t.AsyncMode=s,t.ConcurrentMode=f,t.ContextConsumer=l,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 x(e)||_(e)===s},t.isConcurrentMode=x,t.isContextConsumer=function(e){return _(e)===l},t.isContextProvider=function(e){return _(e)===u},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return _(e)===d},t.isFragment=function(e){return _(e)===i},t.isLazy=function(e){return _(e)===m},t.isMemo=function(e){return _(e)===v},t.isPortal=function(e){return _(e)===o},t.isProfiler=function(e){return _(e)===c},t.isStrictMode=function(e){return _(e)===a},t.isSuspense=function(e){return _(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===l||e.$$typeof===d||e.$$typeof===g||e.$$typeof===w||e.$$typeof===b||e.$$typeof===y)},t.typeOf=_},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="",s=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 _=null!=v&&null!=h&&h!==v,x="+"===w||"*"===w,E="?"===w||"*"===w,O=n[2]||s,P=y||g;r.push({name:m||i++,prefix:v||"",delimiter:O,optional:E,repeat:x,partial:_,asterisk:!!b,pattern:P?l(P):b?".*":"[^"+u(O)+"]+?"})}}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,l=0;l<e.length;l++){var s=e[l];if("string"!=typeof s){var f,d=c[s.name];if(null==d){if(s.optional){s.partial&&(i+=s.prefix);continue}throw new TypeError('Expected "'+s.name+'" to be defined')}if(r(d)){if(!s.repeat)throw new TypeError('Expected "'+s.name+'" to not repeat, but received `'+JSON.stringify(d)+"`");if(0===d.length){if(s.optional)continue;throw new TypeError('Expected "'+s.name+'" to not be empty')}for(var p=0;p<d.length;p++){if(f=u(d[p]),!n[l].test(f))throw new TypeError('Expected all "'+s.name+'" to match "'+s.pattern+'", but received `'+JSON.stringify(f)+"`");i+=(0===p?s.prefix:s.delimiter)+f}}else{if(f=s.asterisk?encodeURI(d).replace(/[?#]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})):u(d),!n[l].test(f))throw new TypeError('Expected "'+s.name+'" to match "'+s.pattern+'", but received "'+f+'"');i+=s.prefix+f}}else i+=s}return i}}function u(e){return e.replace(/([.+*?=^!:${}()[\]|\/\\])/g,"\\$1")}function l(e){return e.replace(/([=!:$\/()])/g,"\\$1")}function s(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 l=e[c];if("string"==typeof l)a+=u(l);else{var d=u(l.prefix),p="(?:"+l.pattern+")";t.push(l),l.repeat&&(p+="(?:"+d+p+")*"),a+=p=l.optional?l.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+"|$)",s(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 s(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 s(new RegExp("(?:"+r.join("|")+")",f(n)),t)}(e,t,n):function(e,t,n){return d(i(e,n),t,n)}(e,t,n)}},497: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:()=>Oe,Button:()=>ve,Check:()=>je,Chevron:()=>se,Menu:()=>Ce,MinimalTemplate:()=>Se,Pill:()=>Me,Popup:()=>xe,Search:()=>ke,X:()=>le});var e=n(497),t=n.n(e);function o(e,t){return o=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},o(e,t)}function i(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,o(e,t)}function a(){return a=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},a.apply(this,arguments)}function c(e){return"/"===e.charAt(0)}function u(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 l=function(e,t){void 0===t&&(t="");var n,r=e&&e.split("/")||[],o=t&&t.split("/")||[],i=e&&c(e),a=t&&c(t),l=i||a;if(e&&c(e)?o=r:r.length&&(o.pop(),o=o.concat(r)),!o.length)return"/";if(o.length){var s=o[o.length-1];n="."===s||".."===s||""===s}else n=!1;for(var f=0,d=o.length;d>=0;d--){var p=o[d];"."===p?u(o,d):".."===p?(u(o,d),f++):f&&(u(o,d),f--)}if(!l)for(;f--;f)o.unshift("..");!l||""===o[0]||o[0]&&c(o[0])||o.unshift("");var h=o.join("/");return n&&"/"!==h.substr(-1)&&(h+="/"),h};var s="Invariant failed";function f(e,t){if(!e)throw new Error(s)}function d(e){return"/"===e.charAt(0)?e:"/"+e}function p(e){return"/"===e.charAt(0)?e.substr(1):e}function h(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 v(e){return"/"===e.charAt(e.length-1)?e.slice(0,-1):e}function m(e){var t=e.pathname,n=e.search,r=e.hash,o=t||"/";return n&&"?"!==n&&(o+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(o+="#"===r.charAt(0)?r:"#"+r),o}function y(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),o.state=t):(void 0===(o=a({},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=l(o.pathname,r.pathname)):o.pathname=r.pathname:o.pathname||(o.pathname="/"),o}function g(){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 w=!("undefined"==typeof window||!window.document||!window.document.createElement);function b(e,t){t(window.confirm(e))}var _="popstate",x="hashchange";function E(){try{return window.history.state||{}}catch(e){return{}}}function O(e){void 0===e&&{},w||f(!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,c=i.forceRefresh,u=void 0!==c&&c,l=i.getUserConfirmation,s=void 0===l?b:l,p=i.keyLength,O=void 0===p?6:p,P=e.basename?v(d(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 P&&h(i,P),y(i,r,n)}function j(){return Math.random().toString(36).substr(2,O)}var k=g();function C(e){a(W,e),W.length=n.length,k.notifyListeners(W.location,W.action)}function T(e){(function(e){return void 0===e.state&&-1===navigator.userAgent.indexOf("CriOS")})(e)||A(S(e.state))}function M(){A(S(E()))}var N=!1;function A(e){if(N)!1,C();else{k.confirmTransitionTo(e,"POP",s,(function(t){t?C({action:"POP",location:e}):function(e){var t=W.location,n=R.indexOf(t.key);-1===n&&0;var r=R.indexOf(e.key);-1===r&&0;var o=n-r;o&&(!0,D(o))}(e)}))}}var L=S(E()),R=[L.key];function I(e){return P+m(e)}function D(e){n.go(e)}var $=0;function B(e){1===($+=e)&&1===e?(window.addEventListener(_,T),o&&window.addEventListener(x,M)):0===$&&(window.removeEventListener(_,T),o&&window.removeEventListener(x,M))}var F=!1;var W={length:n.length,action:"POP",location:L,createHref:I,push:function(e,t){var o="PUSH",i=y(e,t,j(),W.location);k.confirmTransitionTo(i,o,s,(function(e){if(e){var t=I(i),a=i.key,c=i.state;if(r)if(n.pushState({key:a,state:c},null,t),u)window.location.href=t;else{var l=R.indexOf(W.location.key),s=R.slice(0,l+1);s.push(i.key),s,C({action:o,location:i})}else window.location.href=t}}))},replace:function(e,t){var o="REPLACE",i=y(e,t,j(),W.location);k.confirmTransitionTo(i,o,s,(function(e){if(e){var t=I(i),a=i.key,c=i.state;if(r)if(n.replaceState({key:a,state:c},null,t),u)window.location.replace(t);else{var l=R.indexOf(W.location.key);-1!==l&&(R[l]=i.key),C({action:o,location:i})}else window.location.replace(t)}}))},go:D,goBack:function(){D(-1)},goForward:function(){D(1)},block:function(e){void 0===e&&!1;var t=k.setPrompt(e);return F||(B(1),!0),function(){return F&&(!1,B(-1)),t()}},listen:function(e){var t=k.appendListener(e);return B(1),function(){B(-1),t()}}};return W}var P="hashchange",S={hashbang:{encodePath:function(e){return"!"===e.charAt(0)?e:"!/"+p(e)},decodePath:function(e){return"!"===e.charAt(0)?e.substr(1):e}},noslash:{encodePath:p,decodePath:d},slash:{encodePath:d,decodePath:d}};function j(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 C(e){window.location.replace(j(window.location.href)+"#"+e)}function T(e){void 0===e&&{},w||f(!1);var t=window.history,n=(window.navigator.userAgent.indexOf("Firefox"),e),r=n.getUserConfirmation,o=void 0===r?b:r,i=n.hashType,c=void 0===i?"slash":i,u=e.basename?v(d(e.basename)):"",l=S[c],s=l.encodePath,p=l.decodePath;function _(){var e=p(k());return u&&h(e,u),y(e)}var x=g();function E(e){a(F,e),F.length=t.length,x.notifyListeners(F.location,F.action)}var O=!1,T=null;function M(){var e,t,n=k(),r=s(n);if(n!==r)C(r);else{var i=_(),a=F.location;if(!O&&(i,a.pathname===t.pathname&&e.search===t.search&&e.hash===t.hash))return;if(T===m(i))return;null,function(e){if(O)!1,E();else{var t="POP";x.confirmTransitionTo(e,t,o,(function(n){n?E({action:t,location:e}):function(e){var t=F.location,n=R.lastIndexOf(m(t));-1===n&&0;var r=R.lastIndexOf(m(e));-1===r&&0;var o=n-r;o&&(!0,I(o))}(e)}))}}(i)}}var N=k(),A=s(N);N!==A&&C(A);var L=_(),R=[m(L)];function I(e){t.go(e)}var D=0;function $(e){1===(D+=e)&&1===e?window.addEventListener(P,M):0===D&&window.removeEventListener(P,M)}var B=!1;var F={length:t.length,action:"POP",location:L,createHref:function(e){var t=document.querySelector("base"),n="";return t&&t.getAttribute("href")&&j(window.location.href),n+"#"+s(u+m(e))},push:function(e,t){var n="PUSH",r=y(e,void 0,void 0,F.location);x.confirmTransitionTo(r,n,o,(function(e){if(e){var t=m(r),o=s(u+t);if(k()!==o){t,function(e){window.location.hash=e}(o);var i=R.lastIndexOf(m(F.location)),a=R.slice(0,i+1);a.push(t),a,E({action:n,location:r})}else E()}}))},replace:function(e,t){var n="REPLACE",r=y(e,void 0,void 0,F.location);x.confirmTransitionTo(r,n,o,(function(e){if(e){var t=m(r),o=s(u+t);k()!==o&&(t,C(o));var i=R.indexOf(m(F.location));-1!==i&&(R[i]=t),E({action:n,location:r})}}))},go:I,goBack:function(){I(-1)},goForward:function(){I(1)},block:function(e){void 0===e&&!1;var t=x.setPrompt(e);return B||($(1),!0),function(){return B&&(!1,$(-1)),t()}},listen:function(e){var t=x.appendListener(e);return $(1),function(){$(-1),t()}}};return F}function M(e,t,n){return Math.min(Math.max(e,t),n)}function N(e){void 0===e&&{};var t=e,n=t.getUserConfirmation,r=t.initialEntries,o=void 0===r?["/"]:r,i=t.initialIndex,c=void 0===i?0:i,u=t.keyLength,l=void 0===u?6:u,s=g();function f(e){a(b,e),b.length=b.entries.length,s.notifyListeners(b.location,b.action)}function d(){return Math.random().toString(36).substr(2,l)}var p=M(c,0,o.length-1),h=o.map((function(e){return y(e,void 0,"string"==typeof e?d():e.key||d())})),v=m;function w(e){var t=M(b.index+e,0,b.entries.length-1),r=b.entries[t];s.confirmTransitionTo(r,"POP",n,(function(e){e?f({action:"POP",location:r,index:t}):f()}))}var b={length:h.length,action:"POP",location:h[p],index:p,entries:h,createHref:v,push:function(e,t){var r="PUSH",o=y(e,t,d(),b.location);s.confirmTransitionTo(o,r,n,(function(e){if(e){var t=b.index+1,n=b.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=y(e,t,d(),b.location);s.confirmTransitionTo(o,r,n,(function(e){e&&(b.entries[b.index]=o,f({action:r,location:o}))}))},go:w,goBack:function(){w(-1)},goForward:function(){w(1)},canGo:function(e){var t=b.index+e;return t>=0&&t<b.entries.length},block:function(e){return void 0===e&&!1,s.setPrompt(e)},listen:function(e){return s.appendListener(e)}};return b}var A=n(697),L=n.n(A),R=1073741823,I="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==n.g?n.g:{};function D(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)}))}}}var $=t().createContext||function(t,n){var r,o,a="__create-react-context-"+function(){var e="__global_unique_id__";return I[e]=(I[e]||0)+1}()+"__",c=function(e){function t(){var t;return(t=e.apply(this,arguments)||this).emitter=D(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):R,0!==(t|=0)&&this.emitter.set(e.value,t))}var i,a},r.render=function(){return this.props.children},t}(e.Component);c.childContextTypes=((r={})[a]=L().object.isRequired,r);var u=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?R:t},r.componentDidMount=function(){this.context[a]&&this.context[a].on(this.onUpdate);var e=this.props.observedBits;this.observedBits=null==e?R: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 u.contextTypes=((o={})[a]=L().object,o),{Provider:c,Consumer:u}};const B=$;var F=n(658),W=n.n(F);n(864);function U(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 H=function(e){var t=B();return t.displayName=e,t},q=H("Router-History"),z=H("Router"),V=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(),this._isMounted=!1,this._pendingLocation=null)},r.render=function(){return t().createElement(z.Provider,{value:{history:this.props.history,location:this.state.location,match:n.computeRootMatch(this.state.location.pathname),staticContext:this.props.staticContext}},t().createElement(q.Provider,{children:this.props.children||null,value:this.props.history}))},n}(t().Component);t().Component;t().Component;var K={},J=0;function X(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,l=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=K[n]||(K[n]={});if(r[e])return r[e];var o=[],i={regexp:W()(e,o,t),keys:o};return J<1e4&&(r[e]=i,J++),i}(n,{end:i,strict:c,sensitive:l}),o=r.regexp,a=r.keys,u=o.exec(e);if(!u)return null;var s=u[0],f=u.slice(1),d=e===s;return i&&!d?null:{path:n,url:"/"===n&&""===s?"/":s,isExact:d,params:a.reduce((function(e,t,n){return e[t.name]=f[n],e}),{})}}),null)}t().Component;function Y(e){return"/"===e.charAt(0)?e:"/"+e}function G(e,t){if(!e)return t;var n=Y(e);return 0!==t.pathname.indexOf(n)?t:a({},t,{pathname:t.pathname.substr(n.length)})}function Q(e){return"string"==typeof e?e:m(e)}function Z(e){return function(){f(!1)}}function ee(){}t().Component;t().Component;t().useContext;t().Component;t().Component;var te=function(e,t){return"function"==typeof e?e(t):e},ne=function(e,t){return"string"==typeof e?y(e,null,null,t):e},re=function(e){return e},oe=t().forwardRef;void 0===oe&&(oe=re);var ie=oe((function(e,n){var r=e.innerRef,o=e.navigate,i=e.onClick,c=U(e,["innerRef","navigate","onClick"]),u=c.target,l=a({},c,{onClick:function(e){try{i&&i(e)}catch(t){throw e.preventDefault(),t}e.defaultPrevented||0!==e.button||u&&"_self"!==u||function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e)||(e.preventDefault(),o())}});return l.ref=re!==oe&&n||r,t().createElement("a",l)}));var ae=oe((function(e,n){var r=e.component,o=void 0===r?ie:r,i=e.replace,c=e.to,u=e.innerRef,l=U(e,["component","replace","to","innerRef"]);return t().createElement(z.Consumer,null,(function(e){e||f(!1);var r=e.history,s=ne(te(c,e.location),e.location),d=s?r.createHref(s):"",p=a({},l,{href:d,navigate:function(){var t=te(c,e.location),n=m(e.location)===m(ne(t));(i||n?r.replace:r.push)(t)}});return re!==oe?p.ref=n||u:p.innerRef=u,t().createElement(o,p)}))})),ce=function(e){return e},ue=t().forwardRef;void 0===ue&&(ue=ce);ue((function(e,n){var r=e["aria-current"],o=void 0===r?"page":r,i=e.activeClassName,c=void 0===i?"active":i,u=e.activeStyle,l=e.className,s=e.exact,d=e.isActive,p=e.location,h=e.sensitive,v=e.strict,m=e.style,y=e.to,g=e.innerRef,w=U(e,["aria-current","activeClassName","activeStyle","className","exact","isActive","location","sensitive","strict","style","to","innerRef"]);return t().createElement(z.Consumer,null,(function(e){e||f(!1);var r=p||e.location,i=ne(te(y,r),r),b=i.pathname,_=b&&b.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1"),x=_?X(r.pathname,{path:_,exact:s,sensitive:h,strict:v}):null,E=!!(d?d(x,r):x),O="function"==typeof l?l(E):l,P="function"==typeof m?m(E):m;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(" ")}(O,c),P=a({},P,u));var S=a({"aria-current":E&&o||null,className:O,style:P,to:i},w);return ce!==ue?S.ref=n||g:S.innerRef=g,t().createElement(ae,S)}))}));const le=()=>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"})),se=e=>{let{className:n}=e;return t().createElement("svg",{className:["icon icon--chevron",n].filter(Boolean).join(" "),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"}))},fe=e=>{const{className:n,children:r}=e,o=["tooltip",n].filter(Boolean).join(" ");return t().createElement("aside",{className:o},r,t().createElement("span",null))},de={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:le,chevron:se,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)"})),swap:()=>t().createElement("svg",{className:"icon icon--swap",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 25 25"},t().createElement("path",{d:"M9.84631 4.78679L6.00004 8.63306L9.84631 12.4793",className:"stroke"}),t().createElement("path",{d:"M15.1537 20.1059L19 16.2596L15.1537 12.4133",className:"stroke"}),t().createElement("line",{x1:"7",y1:"8.7013",x2:"15",y2:"8.7013",stroke:"#333333",className:"stroke"}),t().createElement("line",{x1:"18",y1:"16.1195",x2:"10",y2:"16.1195",className:"stroke"}))},pe="btn",he=n=>{let{children:r,icon:o,tooltip:i}=n;const a=de[o];return t().createElement("span",{className:"".concat(pe,"__content")},i&&t().createElement(fe,{className:"".concat(pe,"__tooltip")},i),r&&t().createElement("span",{className:"".concat(pe,"__label")},r),o&&t().createElement("span",{className:"".concat(pe,"__icon")},(0,e.isValidElement)(o)&&o,a&&t().createElement(a,null)))},ve=e=>{const{className:n,type:r="button",el:o,to:i,url:a,children:c,onClick:u,disabled:l,icon:s,iconStyle:f="without-border",buttonStyle:d="primary",round:p,size:h="medium",iconPosition:v="right",newTab:m,tooltip:y}=e,g=[pe,n&&n,d&&"".concat(pe,"--style-").concat(d),s&&"".concat(pe,"--icon"),f&&"".concat(pe,"--icon-style-").concat(f),s&&!c&&"".concat(pe,"--icon-only"),l&&"".concat(pe,"--disabled"),p&&"".concat(pe,"--round"),h&&"".concat(pe,"--size-").concat(h),v&&"".concat(pe,"--icon-position-").concat(v),y&&"".concat(pe,"--has-tooltip")].filter(Boolean).join(" ");const w={type:r,className:g,disabled:l,onClick:l?void 0: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(ae,{...w,to:i||a},t().createElement(he,{icon:s,tooltip:y},c));case"anchor":return t().createElement("a",{...w,href:a},t().createElement(he,{icon:s,tooltip:y},c));default:return t().createElement("button",{type:"submit",...w},t().createElement(he,{icon:s,tooltip:y},c))}};var me=n(727),ye=n(719);const ge=function(t,n){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];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])},we="popup-button",be=e=>{const{buttonType:n,button:r,setActive:o,active:i}=e,a=[we,"".concat(we,"--").concat(n)].filter(Boolean).join(" "),c=()=>{o(!i)};return"none"===n?null:"custom"===n?t().createElement("div",{role:"button",tabIndex:0,onKeyDown:e=>{"Enter"===e.key&&c()},onClick:c,className:a},r):t().createElement("button",{type:"button",onClick:()=>o(!i),className:a},r)},_e="popup",xe=n=>{const{className:r,render:o,size:i="small",color:a="light",button:c,buttonType:u="default",children:l,showOnHover:s=!1,horizontalAlign:f="left",verticalAlign:d="top",initActive:p=!1,onToggleOpen:h,padding:v,forceOpen:m,boundingRef:y}=n,g=(0,e.useRef)(null),w=(0,e.useRef)(null),[b,_]=(0,e.useState)(!1),[x,E]=(0,e.useState)(p),[O,P]=(0,e.useState)(d),[S,j]=(0,e.useState)(f),{y:k}=(0,ye.useScrollInfo)(),{height:C,width:T}=(0,me.useWindowInfo)(),M=e=>{w.current.contains(e.target)||E(!1)};ge((()=>{if(w.current&&g.current){const{left:e,right:t,top:n,bottom:r}=w.current.getBoundingClientRect();let o=0,i=T,a=C,c=0;(null==y?void 0:y.current)&&({top:o,right:i,bottom:a,left:c}=y.current.getBoundingClientRect()),t>i&&e>c?j("right"):e<c&&t<i&&j("left"),n<o&&r<a?P("bottom"):r>a&&n<o&&P("top"),_(!0)}}),500,[k,C,T]),(0,e.useEffect)((()=>("function"==typeof h&&h(x),x?document.addEventListener("mousedown",M):document.removeEventListener("mousedown",M),()=>{document.removeEventListener("mousedown",M)})),[x,h]),(0,e.useEffect)((()=>{E(m)}),[m]);const N=[_e,r,"".concat(_e,"--size-").concat(i),"".concat(_e,"--color-").concat(a),"".concat(_e,"--v-align-").concat(O),"".concat(_e,"--h-align-").concat(S),x&&b&&"".concat(_e,"--active")].filter(Boolean).join(" ");return t().createElement("div",{className:N},t().createElement("div",{ref:g,className:"".concat(_e,"__wrapper")},s?t().createElement("div",{className:"".concat(_e,"__on-hover-watch"),onMouseEnter:()=>E(!0),onMouseLeave:()=>E(!1)},t().createElement(be,{buttonType:u,button:c,setActive:E,active:x})):t().createElement(be,{buttonType:u,button:c,setActive:E,active:x})),t().createElement("div",{className:"".concat(_e,"__content"),ref:w},t().createElement("div",{className:"".concat(_e,"__wrap")},t().createElement("div",{className:"".concat(_e,"__scroll"),style:{padding:v}},o&&o({close:()=>E(!1)}),l&&l))))},Ee="banner",Oe=e=>{let{children:n,className:r,to:o,icon:i,alignIcon:a="right",onClick:c,type:u="default"}=e;const l=[Ee,"".concat(Ee,"--type-").concat(u),r&&r,o&&"".concat(Ee,"--has-link"),(o||c)&&"".concat(Ee,"--has-action"),i&&"".concat(Ee,"--has-icon"),i&&"".concat(Ee,"--align-icon-").concat(a)].filter(Boolean).join(" ");let s="div";return c&&!o&&(s="button"),o&&(s=ae),t().createElement(s,{className:l,onClick:c,to:o||void 0},i&&"left"===a&&t().createElement(t().Fragment,null,i),t().createElement("span",{className:"".concat(Ee,"__content")},n),i&&"right"===a&&t().createElement(t().Fragment,null,i))},Pe="template-minimal",Se=e=>{const{className:n,style:r={},children:o,width:i="normal"}=e,a=[n,Pe,"".concat(Pe,"--width-").concat(i)].filter(Boolean).join(" ");return t().createElement("section",{className:a,style:r},t().createElement("div",{className:"".concat(Pe,"__wrap")},o))},je=()=>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"})),ke=()=>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"})),Ce=()=>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"})),Te="pill",Me=e=>{let{children:n,className:r,to:o,icon:i,alignIcon:a="right",onClick:c,pillStyle:u="light"}=e;const l=[Te,"".concat(Te,"--style-").concat(u),r&&r,o&&"".concat(Te,"--has-link"),(o||c)&&"".concat(Te,"--has-action"),i&&"".concat(Te,"--has-icon"),i&&"".concat(Te,"--align-icon-").concat(a)].filter(Boolean).join(" ");let s="div";return c&&!o&&(s="button"),o&&(s=ae),t().createElement(s,{className:l,onClick:c,type:"button"===s?"button":void 0,to:o||void 0},i&&"left"===a&&t().createElement(t().Fragment,null,i),n,i&&"right"===a&&t().createElement(t().Fragment,null,i))}})(),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,l=n?Symbol.for("react.context"):60110,s=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 _(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case s:case f:case i:case c:case a:case p:return e;default:switch(e=e&&e.$$typeof){case l:case d:case m:case v:case u:return e;default:return t}}case o:return t}}}function x(e){return _(e)===f}t.AsyncMode=s,t.ConcurrentMode=f,t.ContextConsumer=l,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 x(e)||_(e)===s},t.isConcurrentMode=x,t.isContextConsumer=function(e){return _(e)===l},t.isContextProvider=function(e){return _(e)===u},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return _(e)===d},t.isFragment=function(e){return _(e)===i},t.isLazy=function(e){return _(e)===m},t.isMemo=function(e){return _(e)===v},t.isPortal=function(e){return _(e)===o},t.isProfiler=function(e){return _(e)===c},t.isStrictMode=function(e){return _(e)===a},t.isSuspense=function(e){return _(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===l||e.$$typeof===d||e.$$typeof===g||e.$$typeof===w||e.$$typeof===b||e.$$typeof===y)},t.typeOf=_},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="",s=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 _=null!=v&&null!=h&&h!==v,x="+"===w||"*"===w,E="?"===w||"*"===w,O=n[2]||s,P=y||g;r.push({name:m||i++,prefix:v||"",delimiter:O,optional:E,repeat:x,partial:_,asterisk:!!b,pattern:P?l(P):b?".*":"[^"+u(O)+"]+?"})}}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,l=0;l<e.length;l++){var s=e[l];if("string"!=typeof s){var f,d=c[s.name];if(null==d){if(s.optional){s.partial&&(i+=s.prefix);continue}throw new TypeError('Expected "'+s.name+'" to be defined')}if(r(d)){if(!s.repeat)throw new TypeError('Expected "'+s.name+'" to not repeat, but received `'+JSON.stringify(d)+"`");if(0===d.length){if(s.optional)continue;throw new TypeError('Expected "'+s.name+'" to not be empty')}for(var p=0;p<d.length;p++){if(f=u(d[p]),!n[l].test(f))throw new TypeError('Expected all "'+s.name+'" to match "'+s.pattern+'", but received `'+JSON.stringify(f)+"`");i+=(0===p?s.prefix:s.delimiter)+f}}else{if(f=s.asterisk?encodeURI(d).replace(/[?#]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})):u(d),!n[l].test(f))throw new TypeError('Expected "'+s.name+'" to match "'+s.pattern+'", but received "'+f+'"');i+=s.prefix+f}}else i+=s}return i}}function u(e){return e.replace(/([.+*?=^!:${}()[\]|\/\\])/g,"\\$1")}function l(e){return e.replace(/([=!:$\/()])/g,"\\$1")}function s(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 l=e[c];if("string"==typeof l)a+=u(l);else{var d=u(l.prefix),p="(?:"+l.pattern+")";t.push(l),l.repeat&&(p+="(?:"+d+p+")*"),a+=p=l.optional?l.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+"|$)",s(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 s(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 s(new RegExp("(?:"+r.join("|")+")",f(n)),t)}(e,t,n):function(e,t,n){return d(i(e,n),t,n)}(e,t,n)}},497: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:()=>Oe,Button:()=>ve,Check:()=>ke,Chevron:()=>se,Menu:()=>Ce,MinimalTemplate:()=>je,Pill:()=>Te,Popup:()=>xe,Search:()=>Se,X:()=>le});var e=n(497),t=n.n(e);function o(e,t){return o=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},o(e,t)}function i(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,o(e,t)}function a(){return a=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},a.apply(this,arguments)}function c(e){return"/"===e.charAt(0)}function u(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 l=function(e,t){void 0===t&&(t="");var n,r=e&&e.split("/")||[],o=t&&t.split("/")||[],i=e&&c(e),a=t&&c(t),l=i||a;if(e&&c(e)?o=r:r.length&&(o.pop(),o=o.concat(r)),!o.length)return"/";if(o.length){var s=o[o.length-1];n="."===s||".."===s||""===s}else n=!1;for(var f=0,d=o.length;d>=0;d--){var p=o[d];"."===p?u(o,d):".."===p?(u(o,d),f++):f&&(u(o,d),f--)}if(!l)for(;f--;f)o.unshift("..");!l||""===o[0]||o[0]&&c(o[0])||o.unshift("");var h=o.join("/");return n&&"/"!==h.substr(-1)&&(h+="/"),h};var s="Invariant failed";function f(e,t){if(!e)throw new Error(s)}function d(e){return"/"===e.charAt(0)?e:"/"+e}function p(e){return"/"===e.charAt(0)?e.substr(1):e}function h(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 v(e){return"/"===e.charAt(e.length-1)?e.slice(0,-1):e}function m(e){var t=e.pathname,n=e.search,r=e.hash,o=t||"/";return n&&"?"!==n&&(o+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(o+="#"===r.charAt(0)?r:"#"+r),o}function y(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),o.state=t):(void 0===(o=a({},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=l(o.pathname,r.pathname)):o.pathname=r.pathname:o.pathname||(o.pathname="/"),o}function g(){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 w=!("undefined"==typeof window||!window.document||!window.document.createElement);function b(e,t){t(window.confirm(e))}var _="popstate",x="hashchange";function E(){try{return window.history.state||{}}catch(e){return{}}}function O(e){void 0===e&&{},w||f(!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,c=i.forceRefresh,u=void 0!==c&&c,l=i.getUserConfirmation,s=void 0===l?b:l,p=i.keyLength,O=void 0===p?6:p,P=e.basename?v(d(e.basename)):"";function j(e){var t=e||{},n=t.key,r=t.state,o=window.location,i=o.pathname+o.search+o.hash;return P&&h(i,P),y(i,r,n)}function k(){return Math.random().toString(36).substr(2,O)}var S=g();function C(e){a(W,e),W.length=n.length,S.notifyListeners(W.location,W.action)}function M(e){(function(e){return void 0===e.state&&-1===navigator.userAgent.indexOf("CriOS")})(e)||R(j(e.state))}function T(){R(j(E()))}var N=!1;function R(e){if(N)!1,C();else{S.confirmTransitionTo(e,"POP",s,(function(t){t?C({action:"POP",location:e}):function(e){var t=W.location,n=L.indexOf(t.key);-1===n&&0;var r=L.indexOf(e.key);-1===r&&0;var o=n-r;o&&(!0,I(o))}(e)}))}}var A=j(E()),L=[A.key];function D(e){return P+m(e)}function I(e){n.go(e)}var $=0;function B(e){1===($+=e)&&1===e?(window.addEventListener(_,M),o&&window.addEventListener(x,T)):0===$&&(window.removeEventListener(_,M),o&&window.removeEventListener(x,T))}var F=!1;var W={length:n.length,action:"POP",location:A,createHref:D,push:function(e,t){var o="PUSH",i=y(e,t,k(),W.location);S.confirmTransitionTo(i,o,s,(function(e){if(e){var t=D(i),a=i.key,c=i.state;if(r)if(n.pushState({key:a,state:c},null,t),u)window.location.href=t;else{var l=L.indexOf(W.location.key),s=L.slice(0,l+1);s.push(i.key),s,C({action:o,location:i})}else window.location.href=t}}))},replace:function(e,t){var o="REPLACE",i=y(e,t,k(),W.location);S.confirmTransitionTo(i,o,s,(function(e){if(e){var t=D(i),a=i.key,c=i.state;if(r)if(n.replaceState({key:a,state:c},null,t),u)window.location.replace(t);else{var l=L.indexOf(W.location.key);-1!==l&&(L[l]=i.key),C({action:o,location:i})}else window.location.replace(t)}}))},go:I,goBack:function(){I(-1)},goForward:function(){I(1)},block:function(e){void 0===e&&!1;var t=S.setPrompt(e);return F||(B(1),!0),function(){return F&&(!1,B(-1)),t()}},listen:function(e){var t=S.appendListener(e);return B(1),function(){B(-1),t()}}};return W}var P="hashchange",j={hashbang:{encodePath:function(e){return"!"===e.charAt(0)?e:"!/"+p(e)},decodePath:function(e){return"!"===e.charAt(0)?e.substr(1):e}},noslash:{encodePath:p,decodePath:d},slash:{encodePath:d,decodePath:d}};function k(e){var t=e.indexOf("#");return-1===t?e:e.slice(0,t)}function S(){var e=window.location.href,t=e.indexOf("#");return-1===t?"":e.substring(t+1)}function C(e){window.location.replace(k(window.location.href)+"#"+e)}function M(e){void 0===e&&{},w||f(!1);var t=window.history,n=(window.navigator.userAgent.indexOf("Firefox"),e),r=n.getUserConfirmation,o=void 0===r?b:r,i=n.hashType,c=void 0===i?"slash":i,u=e.basename?v(d(e.basename)):"",l=j[c],s=l.encodePath,p=l.decodePath;function _(){var e=p(S());return u&&h(e,u),y(e)}var x=g();function E(e){a(F,e),F.length=t.length,x.notifyListeners(F.location,F.action)}var O=!1,M=null;function T(){var e,t,n=S(),r=s(n);if(n!==r)C(r);else{var i=_(),a=F.location;if(!O&&(i,a.pathname===t.pathname&&e.search===t.search&&e.hash===t.hash))return;if(M===m(i))return;null,function(e){if(O)!1,E();else{var t="POP";x.confirmTransitionTo(e,t,o,(function(n){n?E({action:t,location:e}):function(e){var t=F.location,n=L.lastIndexOf(m(t));-1===n&&0;var r=L.lastIndexOf(m(e));-1===r&&0;var o=n-r;o&&(!0,D(o))}(e)}))}}(i)}}var N=S(),R=s(N);N!==R&&C(R);var A=_(),L=[m(A)];function D(e){t.go(e)}var I=0;function $(e){1===(I+=e)&&1===e?window.addEventListener(P,T):0===I&&window.removeEventListener(P,T)}var B=!1;var F={length:t.length,action:"POP",location:A,createHref:function(e){var t=document.querySelector("base"),n="";return t&&t.getAttribute("href")&&k(window.location.href),n+"#"+s(u+m(e))},push:function(e,t){var n="PUSH",r=y(e,void 0,void 0,F.location);x.confirmTransitionTo(r,n,o,(function(e){if(e){var t=m(r),o=s(u+t);if(S()!==o){t,function(e){window.location.hash=e}(o);var i=L.lastIndexOf(m(F.location)),a=L.slice(0,i+1);a.push(t),a,E({action:n,location:r})}else E()}}))},replace:function(e,t){var n="REPLACE",r=y(e,void 0,void 0,F.location);x.confirmTransitionTo(r,n,o,(function(e){if(e){var t=m(r),o=s(u+t);S()!==o&&(t,C(o));var i=L.indexOf(m(F.location));-1!==i&&(L[i]=t),E({action:n,location:r})}}))},go:D,goBack:function(){D(-1)},goForward:function(){D(1)},block:function(e){void 0===e&&!1;var t=x.setPrompt(e);return B||($(1),!0),function(){return B&&(!1,$(-1)),t()}},listen:function(e){var t=x.appendListener(e);return $(1),function(){$(-1),t()}}};return F}function T(e,t,n){return Math.min(Math.max(e,t),n)}function N(e){void 0===e&&{};var t=e,n=t.getUserConfirmation,r=t.initialEntries,o=void 0===r?["/"]:r,i=t.initialIndex,c=void 0===i?0:i,u=t.keyLength,l=void 0===u?6:u,s=g();function f(e){a(b,e),b.length=b.entries.length,s.notifyListeners(b.location,b.action)}function d(){return Math.random().toString(36).substr(2,l)}var p=T(c,0,o.length-1),h=o.map((function(e){return y(e,void 0,"string"==typeof e?d():e.key||d())})),v=m;function w(e){var t=T(b.index+e,0,b.entries.length-1),r=b.entries[t];s.confirmTransitionTo(r,"POP",n,(function(e){e?f({action:"POP",location:r,index:t}):f()}))}var b={length:h.length,action:"POP",location:h[p],index:p,entries:h,createHref:v,push:function(e,t){var r="PUSH",o=y(e,t,d(),b.location);s.confirmTransitionTo(o,r,n,(function(e){if(e){var t=b.index+1,n=b.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=y(e,t,d(),b.location);s.confirmTransitionTo(o,r,n,(function(e){e&&(b.entries[b.index]=o,f({action:r,location:o}))}))},go:w,goBack:function(){w(-1)},goForward:function(){w(1)},canGo:function(e){var t=b.index+e;return t>=0&&t<b.entries.length},block:function(e){return void 0===e&&!1,s.setPrompt(e)},listen:function(e){return s.appendListener(e)}};return b}var R=n(697),A=n.n(R),L=1073741823,D="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==n.g?n.g:{};function I(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)}))}}}var $=t().createContext||function(t,n){var r,o,a="__create-react-context-"+function(){var e="__global_unique_id__";return D[e]=(D[e]||0)+1}()+"__",c=function(e){function t(){var t;return(t=e.apply(this,arguments)||this).emitter=I(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);c.childContextTypes=((r={})[a]=A().object.isRequired,r);var u=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 u.contextTypes=((o={})[a]=A().object,o),{Provider:c,Consumer:u}};const B=$;var F=n(658),W=n.n(F);n(864);function U(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 H=function(e){var t=B();return t.displayName=e,t},z=H("Router-History"),q=H("Router"),V=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(),this._isMounted=!1,this._pendingLocation=null)},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(z.Provider,{children:this.props.children||null,value:this.props.history}))},n}(t().Component);t().Component;t().Component;var K={},J=0;function X(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,l=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=K[n]||(K[n]={});if(r[e])return r[e];var o=[],i={regexp:W()(e,o,t),keys:o};return J<1e4&&(r[e]=i,J++),i}(n,{end:i,strict:c,sensitive:l}),o=r.regexp,a=r.keys,u=o.exec(e);if(!u)return null;var s=u[0],f=u.slice(1),d=e===s;return i&&!d?null:{path:n,url:"/"===n&&""===s?"/":s,isExact:d,params:a.reduce((function(e,t,n){return e[t.name]=f[n],e}),{})}}),null)}t().Component;function Y(e){return"/"===e.charAt(0)?e:"/"+e}function G(e,t){if(!e)return t;var n=Y(e);return 0!==t.pathname.indexOf(n)?t:a({},t,{pathname:t.pathname.substr(n.length)})}function Q(e){return"string"==typeof e?e:m(e)}function Z(e){return function(){f(!1)}}function ee(){}t().Component;t().Component;t().useContext;t().Component;t().Component;var te=function(e,t){return"function"==typeof e?e(t):e},ne=function(e,t){return"string"==typeof e?y(e,null,null,t):e},re=function(e){return e},oe=t().forwardRef;void 0===oe&&(oe=re);var ie=oe((function(e,n){var r=e.innerRef,o=e.navigate,i=e.onClick,c=U(e,["innerRef","navigate","onClick"]),u=c.target,l=a({},c,{onClick:function(e){try{i&&i(e)}catch(t){throw e.preventDefault(),t}e.defaultPrevented||0!==e.button||u&&"_self"!==u||function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e)||(e.preventDefault(),o())}});return l.ref=re!==oe&&n||r,t().createElement("a",l)}));var ae=oe((function(e,n){var r=e.component,o=void 0===r?ie:r,i=e.replace,c=e.to,u=e.innerRef,l=U(e,["component","replace","to","innerRef"]);return t().createElement(q.Consumer,null,(function(e){e||f(!1);var r=e.history,s=ne(te(c,e.location),e.location),d=s?r.createHref(s):"",p=a({},l,{href:d,navigate:function(){var t=te(c,e.location),n=m(e.location)===m(ne(t));(i||n?r.replace:r.push)(t)}});return re!==oe?p.ref=n||u:p.innerRef=u,t().createElement(o,p)}))})),ce=function(e){return e},ue=t().forwardRef;void 0===ue&&(ue=ce);ue((function(e,n){var r=e["aria-current"],o=void 0===r?"page":r,i=e.activeClassName,c=void 0===i?"active":i,u=e.activeStyle,l=e.className,s=e.exact,d=e.isActive,p=e.location,h=e.sensitive,v=e.strict,m=e.style,y=e.to,g=e.innerRef,w=U(e,["aria-current","activeClassName","activeStyle","className","exact","isActive","location","sensitive","strict","style","to","innerRef"]);return t().createElement(q.Consumer,null,(function(e){e||f(!1);var r=p||e.location,i=ne(te(y,r),r),b=i.pathname,_=b&&b.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1"),x=_?X(r.pathname,{path:_,exact:s,sensitive:h,strict:v}):null,E=!!(d?d(x,r):x),O="function"==typeof l?l(E):l,P="function"==typeof m?m(E):m;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(" ")}(O,c),P=a({},P,u));var j=a({"aria-current":E&&o||null,className:O,style:P,to:i},w);return ce!==ue?j.ref=n||g:j.innerRef=g,t().createElement(ae,j)}))}));const le=()=>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"})),se=e=>{let{className:n}=e;return t().createElement("svg",{className:["icon icon--chevron",n].filter(Boolean).join(" "),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"}))},fe=e=>{const{className:n,children:r}=e,o=["tooltip",n].filter(Boolean).join(" ");return t().createElement("aside",{className:o},r,t().createElement("span",null))},de={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:le,chevron:se,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)"})),swap:()=>t().createElement("svg",{className:"icon icon--swap",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 25 25"},t().createElement("path",{d:"M9.84631 4.78679L6.00004 8.63306L9.84631 12.4793",className:"stroke"}),t().createElement("path",{d:"M15.1537 20.1059L19 16.2596L15.1537 12.4133",className:"stroke"}),t().createElement("line",{x1:"7",y1:"8.7013",x2:"15",y2:"8.7013",stroke:"#333333",className:"stroke"}),t().createElement("line",{x1:"18",y1:"16.1195",x2:"10",y2:"16.1195",className:"stroke"}))},pe="btn",he=n=>{let{children:r,icon:o,tooltip:i}=n;const a=de[o];return t().createElement("span",{className:"".concat(pe,"__content")},i&&t().createElement(fe,{className:"".concat(pe,"__tooltip")},i),r&&t().createElement("span",{className:"".concat(pe,"__label")},r),o&&t().createElement("span",{className:"".concat(pe,"__icon")},(0,e.isValidElement)(o)&&o,a&&t().createElement(a,null)))},ve=e=>{const{className:n,type:r="button",el:o,to:i,url:a,children:c,onClick:u,disabled:l,icon:s,iconStyle:f="without-border",buttonStyle:d="primary",round:p,size:h="medium",iconPosition:v="right",newTab:m,tooltip:y}=e,g=[pe,n&&n,d&&"".concat(pe,"--style-").concat(d),s&&"".concat(pe,"--icon"),f&&"".concat(pe,"--icon-style-").concat(f),s&&!c&&"".concat(pe,"--icon-only"),l&&"".concat(pe,"--disabled"),p&&"".concat(pe,"--round"),h&&"".concat(pe,"--size-").concat(h),v&&"".concat(pe,"--icon-position-").concat(v),y&&"".concat(pe,"--has-tooltip")].filter(Boolean).join(" ");const w={type:r,className:g,disabled:l,onClick:l?void 0: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(ae,{...w,to:i||a},t().createElement(he,{icon:s,tooltip:y},c));case"anchor":return t().createElement("a",{...w,href:a},t().createElement(he,{icon:s,tooltip:y},c));default:return t().createElement("button",{type:"submit",...w},t().createElement(he,{icon:s,tooltip:y},c))}};var me=n(727),ye=n(719);const ge=function(t,n){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];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])},we="popup-button",be=e=>{const{buttonType:n,button:r,setActive:o,active:i}=e,a=[we,"".concat(we,"--").concat(n)].filter(Boolean).join(" "),c=()=>{o(!i)};return"none"===n?null:"custom"===n?t().createElement("div",{role:"button",tabIndex:0,onKeyDown:e=>{"Enter"===e.key&&c()},onClick:c,className:a},r):t().createElement("button",{type:"button",onClick:()=>o(!i),className:a},r)},_e="popup",xe=n=>{const{className:r,render:o,size:i="small",color:a="light",button:c,buttonType:u="default",children:l,showOnHover:s=!1,horizontalAlign:f="left",verticalAlign:d="top",initActive:p=!1,onToggleOpen:h,padding:v,forceOpen:m,boundingRef:y}=n,g=(0,e.useRef)(null),w=(0,e.useRef)(null),[b,_]=(0,e.useState)(!1),[x,E]=(0,e.useState)(p),[O,P]=(0,e.useState)(d),[j,k]=(0,e.useState)(f),{y:S}=(0,ye.useScrollInfo)(),{height:C,width:M}=(0,me.useWindowInfo)(),T=e=>{w.current.contains(e.target)||E(!1)};ge((()=>{if(w.current&&g.current){const{left:e,right:t,top:n,bottom:r}=w.current.getBoundingClientRect();let o=0,i=M,a=C,c=0;(null==y?void 0:y.current)&&({top:o,right:i,bottom:a,left:c}=y.current.getBoundingClientRect()),t>i&&e>c?k("right"):e<c&&t<i&&k("left"),n<o&&r<a?P("bottom"):r>a&&n<o&&P("top"),_(!0)}}),500,[S,C,M]),(0,e.useEffect)((()=>("function"==typeof h&&h(x),x?document.addEventListener("mousedown",T):document.removeEventListener("mousedown",T),()=>{document.removeEventListener("mousedown",T)})),[x,h]),(0,e.useEffect)((()=>{E(m)}),[m]);const N=[_e,r,"".concat(_e,"--size-").concat(i),"".concat(_e,"--color-").concat(a),"".concat(_e,"--v-align-").concat(O),"".concat(_e,"--h-align-").concat(j),x&&b&&"".concat(_e,"--active")].filter(Boolean).join(" ");return t().createElement("div",{className:N},t().createElement("div",{ref:g,className:"".concat(_e,"__wrapper")},s?t().createElement("div",{className:"".concat(_e,"__on-hover-watch"),onMouseEnter:()=>E(!0),onMouseLeave:()=>E(!1)},t().createElement(be,{buttonType:u,button:c,setActive:E,active:x})):t().createElement(be,{buttonType:u,button:c,setActive:E,active:x})),t().createElement("div",{className:"".concat(_e,"__content"),ref:w},t().createElement("div",{className:"".concat(_e,"__wrap")},t().createElement("div",{className:"".concat(_e,"__scroll"),style:{padding:v}},o&&o({close:()=>E(!1)}),l&&l))))},Ee="banner",Oe=e=>{let{children:n,className:r,to:o,icon:i,alignIcon:a="right",onClick:c,type:u="default"}=e;const l=[Ee,"".concat(Ee,"--type-").concat(u),r&&r,o&&"".concat(Ee,"--has-link"),(o||c)&&"".concat(Ee,"--has-action"),i&&"".concat(Ee,"--has-icon"),i&&"".concat(Ee,"--align-icon-").concat(a)].filter(Boolean).join(" ");let s="div";return c&&!o&&(s="button"),o&&(s=ae),t().createElement(s,{className:l,onClick:c,to:o||void 0},i&&"left"===a&&t().createElement(t().Fragment,null,i),t().createElement("span",{className:"".concat(Ee,"__content")},n),i&&"right"===a&&t().createElement(t().Fragment,null,i))},Pe="template-minimal",je=e=>{const{className:n,style:r={},children:o,width:i="normal"}=e,a=[n,Pe,"".concat(Pe,"--width-").concat(i)].filter(Boolean).join(" ");return t().createElement("section",{className:a,style:r},t().createElement("div",{className:"".concat(Pe,"__wrap")},o))},ke=()=>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"})),Se=()=>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"})),Ce=()=>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"})),Me="pill",Te=e=>{let{children:n,className:r,to:o,icon:i,alignIcon:a="right",onClick:c,pillStyle:u="light"}=e;const l=[Me,"".concat(Me,"--style-").concat(u),r&&r,o&&"".concat(Me,"--has-link"),(o||c)&&"".concat(Me,"--has-action"),i&&"".concat(Me,"--has-icon"),i&&"".concat(Me,"--align-icon-").concat(a)].filter(Boolean).join(" ");let s="div";return c&&!o&&(s="button"),o&&(s=ae),t().createElement(s,{className:l,onClick:c,type:"button"===s?"button":void 0,to:o||void 0},i&&"left"===a&&t().createElement(t().Fragment,null,i),n,i&&"right"===a&&t().createElement(t().Fragment,null,i))}})(),module.exports=r})();
|
|
@@ -26,7 +26,7 @@ const DraggableSection = (props) => {
|
|
|
26
26
|
React.createElement(PositionPanel, { moveRow: moveRow, rowCount: rowCount, positionIndex: rowIndex })),
|
|
27
27
|
React.createElement("div", { className: `${baseClass}__render-fields-wrapper` },
|
|
28
28
|
blockType === 'blocks' && (React.createElement("div", { className: `${baseClass}__section-header` },
|
|
29
|
-
React.createElement(HiddenInput, { name: `${parentPath}.${rowIndex}.id`, value: id
|
|
29
|
+
React.createElement(HiddenInput, { name: `${parentPath}.${rowIndex}.id`, value: id }),
|
|
30
30
|
React.createElement(SectionTitle, { label: label, path: `${parentPath}.${rowIndex}.blockName`, readOnly: readOnly }),
|
|
31
31
|
React.createElement(Button, { icon: "chevron", onClick: () => setRowCollapse(id, !isCollapsed), buttonStyle: "icon-label", className: `toggle-collapse toggle-collapse--is-${isCollapsed ? 'collapsed' : 'open'}`, round: true }))),
|
|
32
32
|
React.createElement(AnimateHeight, { height: isCollapsed ? 0 : 'auto', duration: 200 },
|
|
@@ -13,7 +13,7 @@ const unflattenRowsFromState = (state, path) => {
|
|
|
13
13
|
// Add value to rowsFromStateObject and delete it from remaining state
|
|
14
14
|
Object.keys(state).forEach((key) => {
|
|
15
15
|
if (key.indexOf(`${path}.`) === 0) {
|
|
16
|
-
if (!state[key].
|
|
16
|
+
if (!state[key].disableFormData) {
|
|
17
17
|
const name = key.replace(pathPrefixToRemove, '');
|
|
18
18
|
rowsFromStateObject[name] = state[key];
|
|
19
19
|
rowsFromStateObject[name].initialValue = rowsFromStateObject[name].value;
|
|
@@ -132,7 +132,6 @@ function fieldReducer(state, action) {
|
|
|
132
132
|
valid: action.valid,
|
|
133
133
|
errorMessage: action.errorMessage,
|
|
134
134
|
disableFormData: action.disableFormData,
|
|
135
|
-
ignoreWhileFlattening: action.ignoreWhileFlattening,
|
|
136
135
|
initialValue: action.initialValue,
|
|
137
136
|
validate: action.validate,
|
|
138
137
|
condition: action.condition,
|
|
@@ -45,7 +45,6 @@ const ArrayFieldType = (props) => {
|
|
|
45
45
|
path,
|
|
46
46
|
validate: memoizedValidate,
|
|
47
47
|
disableFormData,
|
|
48
|
-
ignoreWhileFlattening: true,
|
|
49
48
|
condition,
|
|
50
49
|
});
|
|
51
50
|
const addRow = useCallback(async (rowIndex) => {
|
|
@@ -74,7 +73,7 @@ const ArrayFieldType = (props) => {
|
|
|
74
73
|
dispatchRows({ type: 'SET_ALL', data: data || [] });
|
|
75
74
|
}, [formContext, path]);
|
|
76
75
|
useEffect(() => {
|
|
77
|
-
setValue((rows === null || rows === void 0 ? void 0 : rows.length) || 0);
|
|
76
|
+
setValue((rows === null || rows === void 0 ? void 0 : rows.length) || 0, true);
|
|
78
77
|
if ((rows === null || rows === void 0 ? void 0 : rows.length) === 0) {
|
|
79
78
|
setDisableFormData(false);
|
|
80
79
|
}
|
|
@@ -42,7 +42,6 @@ const Blocks = (props) => {
|
|
|
42
42
|
path,
|
|
43
43
|
validate: memoizedValidate,
|
|
44
44
|
disableFormData,
|
|
45
|
-
ignoreWhileFlattening: true,
|
|
46
45
|
condition,
|
|
47
46
|
});
|
|
48
47
|
const addRow = useCallback(async (rowIndex, blockType) => {
|
|
@@ -113,7 +112,7 @@ const Blocks = (props) => {
|
|
|
113
112
|
dispatchRows({ type: 'SET_ALL', data: data || [] });
|
|
114
113
|
}, [formContext, path]);
|
|
115
114
|
useEffect(() => {
|
|
116
|
-
setValue((rows === null || rows === void 0 ? void 0 : rows.length) || 0);
|
|
115
|
+
setValue((rows === null || rows === void 0 ? void 0 : rows.length) || 0, true);
|
|
117
116
|
if ((rows === null || rows === void 0 ? void 0 : rows.length) === 0) {
|
|
118
117
|
setDisableFormData(false);
|
|
119
118
|
}
|
|
@@ -2,16 +2,16 @@ import React, { useEffect } from 'react';
|
|
|
2
2
|
import useField from '../../useField';
|
|
3
3
|
import withCondition from '../../withCondition';
|
|
4
4
|
const HiddenInput = (props) => {
|
|
5
|
-
const { name, path: pathFromProps, value: valueFromProps,
|
|
5
|
+
const { name, path: pathFromProps, value: valueFromProps, disableModifyingForm = true, } = props;
|
|
6
6
|
const path = pathFromProps || name;
|
|
7
7
|
const { value, setValue } = useField({
|
|
8
8
|
path,
|
|
9
9
|
});
|
|
10
10
|
useEffect(() => {
|
|
11
11
|
if (valueFromProps !== undefined) {
|
|
12
|
-
setValue(valueFromProps,
|
|
12
|
+
setValue(valueFromProps, disableModifyingForm);
|
|
13
13
|
}
|
|
14
|
-
}, [valueFromProps, setValue,
|
|
14
|
+
}, [valueFromProps, setValue, disableModifyingForm]);
|
|
15
15
|
return (React.createElement("input", { type: "hidden", value: value || '', onChange: setValue, name: path }));
|
|
16
16
|
};
|
|
17
17
|
export default withCondition(HiddenInput);
|
|
@@ -5,7 +5,7 @@ import useDebounce from '../../../hooks/useDebounce';
|
|
|
5
5
|
import { useDocumentInfo } from '../../utilities/DocumentInfo';
|
|
6
6
|
import { useOperation } from '../../utilities/OperationProvider';
|
|
7
7
|
const useField = (options) => {
|
|
8
|
-
const { path, validate, enableDebouncedValue, disableFormData,
|
|
8
|
+
const { path, validate, enableDebouncedValue, disableFormData, condition, } = options;
|
|
9
9
|
const formContext = useForm();
|
|
10
10
|
const submitted = useFormSubmitted();
|
|
11
11
|
const processing = useFormProcessing();
|
|
@@ -38,7 +38,6 @@ const useField = (options) => {
|
|
|
38
38
|
const fieldToDispatch = {
|
|
39
39
|
path,
|
|
40
40
|
disableFormData,
|
|
41
|
-
ignoreWhileFlattening,
|
|
42
41
|
initialValue,
|
|
43
42
|
validate,
|
|
44
43
|
condition,
|
|
@@ -74,7 +73,6 @@ const useField = (options) => {
|
|
|
74
73
|
getData,
|
|
75
74
|
getSiblingData,
|
|
76
75
|
id,
|
|
77
|
-
ignoreWhileFlattening,
|
|
78
76
|
initialValue,
|
|
79
77
|
operation,
|
|
80
78
|
path,
|
|
@@ -84,9 +82,9 @@ const useField = (options) => {
|
|
|
84
82
|
// Method to return from `useField`, used to
|
|
85
83
|
// update internal field values from field component(s)
|
|
86
84
|
// as fast as they arrive. NOTE - this method is NOT debounced
|
|
87
|
-
const setValue = useCallback((e,
|
|
85
|
+
const setValue = useCallback((e, disableModifyingForm = false) => {
|
|
88
86
|
const val = (e && e.target) ? e.target.value : e;
|
|
89
|
-
if (
|
|
87
|
+
if (!modified && !disableModifyingForm) {
|
|
90
88
|
if (typeof setModified === 'function') {
|
|
91
89
|
setModified(true);
|
|
92
90
|
}
|
|
@@ -95,7 +93,6 @@ const useField = (options) => {
|
|
|
95
93
|
}, [
|
|
96
94
|
setModified,
|
|
97
95
|
modified,
|
|
98
|
-
ignoreWhileFlattening,
|
|
99
96
|
]);
|
|
100
97
|
useEffect(() => {
|
|
101
98
|
setInternalValue(initialValue);
|