construct-hub-webapp 0.1.439 → 0.1.443

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (54) hide show
  1. package/.gitattributes +1 -0
  2. package/build/asset-manifest.json +40 -40
  3. package/build/index.html +1 -1
  4. package/build/static/js/0.5d7aa10f.chunk.js +2 -0
  5. package/build/static/js/{0.2e120b2f.chunk.js.map → 0.5d7aa10f.chunk.js.map} +1 -1
  6. package/build/static/js/{1.9cc19f93.chunk.js → 1.81b10c86.chunk.js} +2 -2
  7. package/build/static/js/{1.9cc19f93.chunk.js.map → 1.81b10c86.chunk.js.map} +1 -1
  8. package/build/static/js/{10.dc8329c6.chunk.js → 10.c1cef902.chunk.js} +2 -2
  9. package/build/static/js/{10.dc8329c6.chunk.js.map → 10.c1cef902.chunk.js.map} +1 -1
  10. package/build/static/js/{11.ac7ee4e8.chunk.js → 11.f17b9786.chunk.js} +2 -2
  11. package/build/static/js/{11.ac7ee4e8.chunk.js.map → 11.f17b9786.chunk.js.map} +1 -1
  12. package/build/static/js/{12.7c6d5a9b.chunk.js → 12.058c1e48.chunk.js} +2 -2
  13. package/build/static/js/{12.7c6d5a9b.chunk.js.map → 12.058c1e48.chunk.js.map} +1 -1
  14. package/build/static/js/{13.154f7765.chunk.js → 13.4a6bd352.chunk.js} +2 -2
  15. package/build/static/js/{13.154f7765.chunk.js.map → 13.4a6bd352.chunk.js.map} +1 -1
  16. package/build/static/js/{14.cb53c7d1.chunk.js → 14.bc7a075e.chunk.js} +2 -2
  17. package/build/static/js/{14.cb53c7d1.chunk.js.map → 14.bc7a075e.chunk.js.map} +1 -1
  18. package/build/static/js/{15.45c9624b.chunk.js → 15.6ef33063.chunk.js} +3 -3
  19. package/build/static/js/{15.45c9624b.chunk.js.LICENSE.txt → 15.6ef33063.chunk.js.LICENSE.txt} +0 -0
  20. package/build/static/js/{15.45c9624b.chunk.js.map → 15.6ef33063.chunk.js.map} +1 -1
  21. package/build/static/js/{16.185808b7.chunk.js → 16.f993fdf0.chunk.js} +2 -2
  22. package/build/static/js/{16.185808b7.chunk.js.map → 16.f993fdf0.chunk.js.map} +1 -1
  23. package/build/static/js/{4.7cdaa0a7.chunk.js → 4.99a7c5e1.chunk.js} +3 -3
  24. package/build/static/js/{4.7cdaa0a7.chunk.js.LICENSE.txt → 4.99a7c5e1.chunk.js.LICENSE.txt} +0 -0
  25. package/build/static/js/{4.7cdaa0a7.chunk.js.map → 4.99a7c5e1.chunk.js.map} +1 -1
  26. package/build/static/js/5.1801bbc2.chunk.js +3 -0
  27. package/build/static/js/{5.a110843d.chunk.js.LICENSE.txt → 5.1801bbc2.chunk.js.LICENSE.txt} +0 -0
  28. package/build/static/js/{5.a110843d.chunk.js.map → 5.1801bbc2.chunk.js.map} +1 -1
  29. package/build/static/js/6.602ea6c4.chunk.js +2 -0
  30. package/build/static/js/6.602ea6c4.chunk.js.map +1 -0
  31. package/build/static/js/7.41bc0560.chunk.js +2 -0
  32. package/build/static/js/7.41bc0560.chunk.js.map +1 -0
  33. package/build/static/js/8.09b8b6b2.chunk.js +2 -0
  34. package/build/static/js/8.09b8b6b2.chunk.js.map +1 -0
  35. package/build/static/js/{9.cd98fda9.chunk.js → 9.44832d44.chunk.js} +2 -2
  36. package/build/static/js/{9.cd98fda9.chunk.js.map → 9.44832d44.chunk.js.map} +1 -1
  37. package/build/static/js/main.4f38042f.chunk.js +2 -0
  38. package/build/static/js/main.4f38042f.chunk.js.map +1 -0
  39. package/build/static/js/runtime-main.e409fce8.js +2 -0
  40. package/build/static/js/{runtime-main.e4632d3a.js.map → runtime-main.e409fce8.js.map} +1 -1
  41. package/cypress/integration/home.spec.ts +7 -7
  42. package/cypress/integration/xss.spec.ts +1 -1
  43. package/package.json +1 -1
  44. package/build/static/js/0.2e120b2f.chunk.js +0 -2
  45. package/build/static/js/5.a110843d.chunk.js +0 -3
  46. package/build/static/js/6.8944c773.chunk.js +0 -2
  47. package/build/static/js/6.8944c773.chunk.js.map +0 -1
  48. package/build/static/js/7.80720b8b.chunk.js +0 -2
  49. package/build/static/js/7.80720b8b.chunk.js.map +0 -1
  50. package/build/static/js/8.e4b13e68.chunk.js +0 -2
  51. package/build/static/js/8.e4b13e68.chunk.js.map +0 -1
  52. package/build/static/js/main.ded71e5d.chunk.js +0 -2
  53. package/build/static/js/main.ded71e5d.chunk.js.map +0 -1
  54. package/build/static/js/runtime-main.e4632d3a.js +0 -2
@@ -110,7 +110,7 @@ describe("Home (Redesign / WIP)", () => {
110
110
 
111
111
  describe("Featured Section", () => {
112
112
  it("has a header and 4 cards", () => {
113
- cy.visit("/?ff-fullSite");
113
+ cy.visit("/");
114
114
  cy.getByDataTest(home.featuredContainer)
115
115
  .should("be.visible")
116
116
  .within(() => {
@@ -127,7 +127,7 @@ describe("Home (Redesign / WIP)", () => {
127
127
  });
128
128
 
129
129
  it("shows recently updated if no content is featured", () => {
130
- cy.visitWithConfig("/?ff-fullSite", {
130
+ cy.visitWithConfig("/", {
131
131
  featuredPackages: undefined,
132
132
  });
133
133
 
@@ -171,7 +171,7 @@ describe("Home (Redesign / WIP)", () => {
171
171
  ],
172
172
  };
173
173
 
174
- cy.visitWithConfig("/?ff-fullSite", {
174
+ cy.visitWithConfig("/", {
175
175
  featuredPackages,
176
176
  });
177
177
 
@@ -193,7 +193,7 @@ describe("Home (Redesign / WIP)", () => {
193
193
 
194
194
  describe("CDK Type Section", () => {
195
195
  it("has heading, description, 3 tabs, 4 cards, and a see all button", () => {
196
- cy.visit("/?ff-fullSite");
196
+ cy.visit("/");
197
197
 
198
198
  cy.getByDataTest(home.cdkTypeSection).within(() => {
199
199
  cy.getByDataTest(home.cdkTypeSectionHeading).should("be.visible");
@@ -215,7 +215,7 @@ describe("Home (Redesign / WIP)", () => {
215
215
  });
216
216
 
217
217
  it("reveals different cards for respective tabs", () => {
218
- cy.visit("/?ff-fullSite");
218
+ cy.visit("/");
219
219
 
220
220
  cy.getByDataTest(home.cdkTypeSection).within(() => {
221
221
  cy.getByDataTest(home.cdkTypeTab).each((tab, index) => {
@@ -236,7 +236,7 @@ describe("Home (Redesign / WIP)", () => {
236
236
  });
237
237
 
238
238
  it("has a see all button which opens the correct search url", () => {
239
- cy.visit("/?ff-fullSite");
239
+ cy.visit("/");
240
240
 
241
241
  const testSeeAll = (tagName: string, index: number) => {
242
242
  cy.getByDataTest(home.cdkTypeTab).eq(index).click();
@@ -253,7 +253,7 @@ describe("Home (Redesign / WIP)", () => {
253
253
  );
254
254
  };
255
255
 
256
- ["community", "aws-official", "hashicorp-official"].forEach(testSeeAll);
256
+ ["community", "aws-published", "hashicorp-published"].forEach(testSeeAll);
257
257
  });
258
258
  });
259
259
  });
@@ -21,7 +21,7 @@ const withWindowAlertCheck = (assertion: () => Promise<unknown>) => {
21
21
  };
22
22
 
23
23
  const checkURL = (params: Parameters<typeof getSearchPath>[0]) => {
24
- cy.url().should("eq", `http://localhost:3000${getSearchPath(params)}`);
24
+ cy.url().should("eq", `${Cypress.config().baseUrl}${getSearchPath(params)}`);
25
25
  };
26
26
 
27
27
  const testSearchURL = async (query: string) => {
package/package.json CHANGED
@@ -117,7 +117,7 @@
117
117
  "node": ">= 12.20.0"
118
118
  },
119
119
  "license": "Apache-2.0",
120
- "version": "0.1.439",
120
+ "version": "0.1.443",
121
121
  "eslintConfig": {
122
122
  "extends": [
123
123
  "react-app",
@@ -1,2 +0,0 @@
1
- (this["webpackJsonpconstruct-hub-webapp"]=this["webpackJsonpconstruct-hub-webapp"]||[]).push([[0],{225:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return fe}));var r=n(59),o=n.n(r),i=n(349),a=n.n(i),u=n(103),c=n.n(u),s=n(0),l=n.n(s),f=n(101),p=n.n(f),d="bodyAttributes",y="htmlAttributes",h="titleAttributes",b={BASE:"base",BODY:"body",HEAD:"head",HTML:"html",LINK:"link",META:"meta",NOSCRIPT:"noscript",SCRIPT:"script",STYLE:"style",TITLE:"title"},m=(Object.keys(b).map((function(e){return b[e]})),"charset"),T="cssText",v="href",w="http-equiv",g="innerHTML",A="itemprop",C="name",O="property",E="rel",S="src",j="target",P={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},k="defaultTitle",L="defer",I="encodeSpecialCharacters",x="onChangeClientState",M="titleTemplate",N=Object.keys(P).reduce((function(e,t){return e[P[t]]=t,e}),{}),R=[b.NOSCRIPT,b.SCRIPT,b.STYLE],D="data-react-helmet",H="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},q=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},Y=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),_=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},F=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n},B=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t},U=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return!1===t?String(e):String(e).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;")},K=function(e){var t=Q(e,b.TITLE),n=Q(e,M);if(n&&t)return n.replace(/%s/g,(function(){return Array.isArray(t)?t.join(""):t}));var r=Q(e,k);return t||r||void 0},W=function(e){return Q(e,x)||function(){}},z=function(e,t){return t.filter((function(t){return"undefined"!==typeof t[e]})).map((function(t){return t[e]})).reduce((function(e,t){return _({},e,t)}),{})},J=function(e,t){return t.filter((function(e){return"undefined"!==typeof e[b.BASE]})).map((function(e){return e[b.BASE]})).reverse().reduce((function(t,n){if(!t.length)for(var r=Object.keys(n),o=0;o<r.length;o++){var i=r[o].toLowerCase();if(-1!==e.indexOf(i)&&n[i])return t.concat(n)}return t}),[])},G=function(e,t,n){var r={};return n.filter((function(t){return!!Array.isArray(t[e])||("undefined"!==typeof t[e]&&ee("Helmet: "+e+' should be of type "Array". Instead found type "'+H(t[e])+'"'),!1)})).map((function(t){return t[e]})).reverse().reduce((function(e,n){var o={};n.filter((function(e){for(var n=void 0,i=Object.keys(e),a=0;a<i.length;a++){var u=i[a],c=u.toLowerCase();-1===t.indexOf(c)||n===E&&"canonical"===e[n].toLowerCase()||c===E&&"stylesheet"===e[c].toLowerCase()||(n=c),-1===t.indexOf(u)||u!==g&&u!==T&&u!==A||(n=u)}if(!n||!e[n])return!1;var s=e[n].toLowerCase();return r[n]||(r[n]={}),o[n]||(o[n]={}),!r[n][s]&&(o[n][s]=!0,!0)})).reverse().forEach((function(t){return e.push(t)}));for(var i=Object.keys(o),a=0;a<i.length;a++){var u=i[a],c=p()({},r[u],o[u]);r[u]=c}return e}),[]).reverse()},Q=function(e,t){for(var n=e.length-1;n>=0;n--){var r=e[n];if(r.hasOwnProperty(t))return r[t]}return null},V=function(){var e=Date.now();return function(t){var n=Date.now();n-e>16?(e=n,t(n)):setTimeout((function(){V(t)}),0)}}(),X=function(e){return clearTimeout(e)},Z="undefined"!==typeof window?window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||V:e.requestAnimationFrame||V,$="undefined"!==typeof window?window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||X:e.cancelAnimationFrame||X,ee=function(e){return console&&"function"===typeof console.warn&&console.warn(e)},te=null,ne=function(e,t){var n=e.baseTag,r=e.bodyAttributes,o=e.htmlAttributes,i=e.linkTags,a=e.metaTags,u=e.noscriptTags,c=e.onChangeClientState,s=e.scriptTags,l=e.styleTags,f=e.title,p=e.titleAttributes;ie(b.BODY,r),ie(b.HTML,o),oe(f,p);var d={baseTag:ae(b.BASE,n),linkTags:ae(b.LINK,i),metaTags:ae(b.META,a),noscriptTags:ae(b.NOSCRIPT,u),scriptTags:ae(b.SCRIPT,s),styleTags:ae(b.STYLE,l)},y={},h={};Object.keys(d).forEach((function(e){var t=d[e],n=t.newTags,r=t.oldTags;n.length&&(y[e]=n),r.length&&(h[e]=d[e].oldTags)})),t&&t(),c(e,y,h)},re=function(e){return Array.isArray(e)?e.join(""):e},oe=function(e,t){"undefined"!==typeof e&&document.title!==e&&(document.title=re(e)),ie(b.TITLE,t)},ie=function(e,t){var n=document.getElementsByTagName(e)[0];if(n){for(var r=n.getAttribute(D),o=r?r.split(","):[],i=[].concat(o),a=Object.keys(t),u=0;u<a.length;u++){var c=a[u],s=t[c]||"";n.getAttribute(c)!==s&&n.setAttribute(c,s),-1===o.indexOf(c)&&o.push(c);var l=i.indexOf(c);-1!==l&&i.splice(l,1)}for(var f=i.length-1;f>=0;f--)n.removeAttribute(i[f]);o.length===i.length?n.removeAttribute(D):n.getAttribute(D)!==a.join(",")&&n.setAttribute(D,a.join(","))}},ae=function(e,t){var n=document.head||document.querySelector(b.HEAD),r=n.querySelectorAll(e+"["+"data-react-helmet]"),o=Array.prototype.slice.call(r),i=[],a=void 0;return t&&t.length&&t.forEach((function(t){var n=document.createElement(e);for(var r in t)if(t.hasOwnProperty(r))if(r===g)n.innerHTML=t.innerHTML;else if(r===T)n.styleSheet?n.styleSheet.cssText=t.cssText:n.appendChild(document.createTextNode(t.cssText));else{var u="undefined"===typeof t[r]?"":t[r];n.setAttribute(r,u)}n.setAttribute(D,"true"),o.some((function(e,t){return a=t,n.isEqualNode(e)}))?o.splice(a,1):i.push(n)})),o.forEach((function(e){return e.parentNode.removeChild(e)})),i.forEach((function(e){return n.appendChild(e)})),{oldTags:o,newTags:i}},ue=function(e){return Object.keys(e).reduce((function(t,n){var r="undefined"!==typeof e[n]?n+'="'+e[n]+'"':""+n;return t?t+" "+r:r}),"")},ce=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(e).reduce((function(t,n){return t[P[n]||n]=e[n],t}),t)},se=function(e,t,n){switch(e){case b.TITLE:return{toComponent:function(){return function(e,t,n){var r,o=((r={key:t})[D]=!0,r),i=ce(n,o);return[l.a.createElement(b.TITLE,i,t)]}(0,t.title,t.titleAttributes)},toString:function(){return function(e,t,n,r){var o=ue(n),i=re(t);return o?"<"+e+' data-react-helmet="true" '+o+">"+U(i,r)+"</"+e+">":"<"+e+' data-react-helmet="true">'+U(i,r)+"</"+e+">"}(e,t.title,t.titleAttributes,n)}};case d:case y:return{toComponent:function(){return ce(t)},toString:function(){return ue(t)}};default:return{toComponent:function(){return function(e,t){return t.map((function(t,n){var r,o=((r={key:n})[D]=!0,r);return Object.keys(t).forEach((function(e){var n=P[e]||e;if(n===g||n===T){var r=t.innerHTML||t.cssText;o.dangerouslySetInnerHTML={__html:r}}else o[n]=t[e]})),l.a.createElement(e,o)}))}(e,t)},toString:function(){return function(e,t,n){return t.reduce((function(t,r){var o=Object.keys(r).filter((function(e){return!(e===g||e===T)})).reduce((function(e,t){var o="undefined"===typeof r[t]?t:t+'="'+U(r[t],n)+'"';return e?e+" "+o:o}),""),i=r.innerHTML||r.cssText||"",a=-1===R.indexOf(e);return t+"<"+e+' data-react-helmet="true" '+o+(a?"/>":">"+i+"</"+e+">")}),"")}(e,t,n)}}}},le=function(e){var t=e.baseTag,n=e.bodyAttributes,r=e.encode,o=e.htmlAttributes,i=e.linkTags,a=e.metaTags,u=e.noscriptTags,c=e.scriptTags,s=e.styleTags,l=e.title,f=void 0===l?"":l,p=e.titleAttributes;return{base:se(b.BASE,t,r),bodyAttributes:se(d,n,r),htmlAttributes:se(y,o,r),link:se(b.LINK,i,r),meta:se(b.META,a,r),noscript:se(b.NOSCRIPT,u,r),script:se(b.SCRIPT,c,r),style:se(b.STYLE,s,r),title:se(b.TITLE,{title:f,titleAttributes:p},r)}},fe=function(e){var t,n;return n=t=function(t){function n(){return q(this,n),B(this,t.apply(this,arguments))}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(n,t),n.prototype.shouldComponentUpdate=function(e){return!c()(this.props,e)},n.prototype.mapNestedChildrenToProps=function(e,t){if(!t)return null;switch(e.type){case b.SCRIPT:case b.NOSCRIPT:return{innerHTML:t};case b.STYLE:return{cssText:t}}throw new Error("<"+e.type+" /> elements are self-closing and can not contain children. Refer to our API for more information.")},n.prototype.flattenArrayTypeChildren=function(e){var t,n=e.child,r=e.arrayTypeChildren,o=e.newChildProps,i=e.nestedChildren;return _({},r,((t={})[n.type]=[].concat(r[n.type]||[],[_({},o,this.mapNestedChildrenToProps(n,i))]),t))},n.prototype.mapObjectTypeChildren=function(e){var t,n,r=e.child,o=e.newProps,i=e.newChildProps,a=e.nestedChildren;switch(r.type){case b.TITLE:return _({},o,((t={})[r.type]=a,t.titleAttributes=_({},i),t));case b.BODY:return _({},o,{bodyAttributes:_({},i)});case b.HTML:return _({},o,{htmlAttributes:_({},i)})}return _({},o,((n={})[r.type]=_({},i),n))},n.prototype.mapArrayTypeChildrenToProps=function(e,t){var n=_({},t);return Object.keys(e).forEach((function(t){var r;n=_({},n,((r={})[t]=e[t],r))})),n},n.prototype.warnOnInvalidChildren=function(e,t){return!0},n.prototype.mapChildrenToProps=function(e,t){var n=this,r={};return l.a.Children.forEach(e,(function(e){if(e&&e.props){var o=e.props,i=o.children,a=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(e).reduce((function(t,n){return t[N[n]||n]=e[n],t}),t)}(F(o,["children"]));switch(n.warnOnInvalidChildren(e,i),e.type){case b.LINK:case b.META:case b.NOSCRIPT:case b.SCRIPT:case b.STYLE:r=n.flattenArrayTypeChildren({child:e,arrayTypeChildren:r,newChildProps:a,nestedChildren:i});break;default:t=n.mapObjectTypeChildren({child:e,newProps:t,newChildProps:a,nestedChildren:i})}}})),t=this.mapArrayTypeChildrenToProps(r,t)},n.prototype.render=function(){var t=this.props,n=t.children,r=F(t,["children"]),o=_({},r);return n&&(o=this.mapChildrenToProps(n,o)),l.a.createElement(e,o)},Y(n,null,[{key:"canUseDOM",set:function(t){e.canUseDOM=t}}]),n}(l.a.Component),t.propTypes={base:o.a.object,bodyAttributes:o.a.object,children:o.a.oneOfType([o.a.arrayOf(o.a.node),o.a.node]),defaultTitle:o.a.string,defer:o.a.bool,encodeSpecialCharacters:o.a.bool,htmlAttributes:o.a.object,link:o.a.arrayOf(o.a.object),meta:o.a.arrayOf(o.a.object),noscript:o.a.arrayOf(o.a.object),onChangeClientState:o.a.func,script:o.a.arrayOf(o.a.object),style:o.a.arrayOf(o.a.object),title:o.a.string,titleAttributes:o.a.object,titleTemplate:o.a.string},t.defaultProps={defer:!0,encodeSpecialCharacters:!0},t.peek=e.peek,t.rewind=function(){var t=e.rewind();return t||(t=le({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}})),t},n}(a()((function(e){return{baseTag:J([v,j],e),bodyAttributes:z(d,e),defer:Q(e,L),encode:Q(e,I),htmlAttributes:z(y,e),linkTags:G(b.LINK,[E,v],e),metaTags:G(b.META,[C,m,w,O,A],e),noscriptTags:G(b.NOSCRIPT,[g],e),onChangeClientState:W(e),scriptTags:G(b.SCRIPT,[S,g],e),styleTags:G(b.STYLE,[T],e),title:K(e),titleAttributes:z(h,e)}}),(function(e){te&&$(te),e.defer?te=Z((function(){ne(e,(function(){te=null}))})):(ne(e),te=null)}),le)((function(){return null})));fe.renderStatic=fe.rewind}).call(this,n(109))},349:function(e,t,n){"use strict";var r,o=n(0),i=(r=o)&&"object"===typeof r&&"default"in r?r.default:r;function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var u=!("undefined"===typeof window||!window.document||!window.document.createElement);e.exports=function(e,t,n){if("function"!==typeof e)throw new Error("Expected reducePropsToState to be a function.");if("function"!==typeof t)throw new Error("Expected handleStateChangeOnClient to be a function.");if("undefined"!==typeof n&&"function"!==typeof n)throw new Error("Expected mapStateOnServer to either be undefined or a function.");return function(r){if("function"!==typeof r)throw new Error("Expected WrappedComponent to be a React component.");var c,s=[];function l(){c=e(s.map((function(e){return e.props}))),f.canUseDOM?t(c):n&&(c=n(c))}var f=function(e){var t,n;function o(){return e.apply(this,arguments)||this}n=e,(t=o).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,o.peek=function(){return c},o.rewind=function(){if(o.canUseDOM)throw new Error("You may only call rewind() on the server. Call peek() to read the current state.");var e=c;return c=void 0,s=[],e};var a=o.prototype;return a.UNSAFE_componentWillMount=function(){s.push(this),l()},a.componentDidUpdate=function(){l()},a.componentWillUnmount=function(){var e=s.indexOf(this);s.splice(e,1),l()},a.render=function(){return i.createElement(r,this.props)},o}(o.PureComponent);return a(f,"displayName","SideEffect("+function(e){return e.displayName||e.name||"Component"}(r)+")"),a(f,"canUseDOM",u),f}}}}]);
2
- //# sourceMappingURL=0.2e120b2f.chunk.js.map