@quintype/arrow 3.2.0 → 3.2.1-arrow-chunking.0

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 (74) hide show
  1. package/AlsoRead/index.js +1 -0
  2. package/AlternateCollectionFilter/index.js +1 -0
  3. package/AsideCollection/index.js +1 -0
  4. package/Attachment/index.js +1 -0
  5. package/Author/index.js +1 -0
  6. package/AuthorIntroductionCard/index.js +1 -0
  7. package/AuthorWithTime/index.js +1 -0
  8. package/AuthorsList/index.js +1 -0
  9. package/BigFact/index.js +1 -0
  10. package/BlockQuote/index.js +1 -0
  11. package/Blurb/index.js +1 -0
  12. package/CollectionFilter/index.js +1 -0
  13. package/CollectionName/index.js +1 -0
  14. package/ElevenStories/index.js +1 -0
  15. package/FourColFiveStories/index.js +1 -0
  16. package/FourColGrid/index.js +1 -0
  17. package/FourColSixteenStories/index.js +1 -0
  18. package/FourColTwelveStories/index.js +1 -0
  19. package/FourStorySlider/index.js +1 -0
  20. package/FourTabbedBigStorySlider/index.js +1 -0
  21. package/FullScreenSlider/index.js +1 -0
  22. package/HalfScreenSlider/index.js +1 -0
  23. package/Headline/index.js +1 -0
  24. package/HeroImage/index.js +1 -0
  25. package/Image/index.js +1 -0
  26. package/ImageGallery/index.js +1 -0
  27. package/ImageSlideshow/index.js +1 -0
  28. package/KeyEvents/index.js +1 -0
  29. package/ListComponent/index.js +1 -0
  30. package/ListicleStoryTemplate/index.js +1 -0
  31. package/Listicles/index.js +1 -0
  32. package/LiveBlogStoryTemplate/index.js +1 -0
  33. package/LoadmoreButton/index.js +1 -0
  34. package/MagazineEditions/index.js +1 -0
  35. package/MagazineHeaderCard/index.js +1 -0
  36. package/MagazineWidget/index.js +1 -0
  37. package/OneColStoryList/index.js +1 -0
  38. package/OpinionCollection/index.js +1 -0
  39. package/PageIntroductionCard/index.js +1 -0
  40. package/PhotoStoryTemplate/index.js +1 -0
  41. package/QuestionAnswer/index.js +1 -0
  42. package/Quote/index.js +1 -0
  43. package/Reference/index.js +1 -0
  44. package/ScrollSnap/index.js +1 -0
  45. package/SectionTag/index.js +1 -0
  46. package/SixColSixStories/index.js +1 -0
  47. package/SocialShareTemplate/index.js +1 -0
  48. package/StoryCard/index.js +1 -0
  49. package/StoryCollection/index.js +1 -0
  50. package/StoryElement/index.js +1 -0
  51. package/StoryElementCard/index.js +1 -0
  52. package/StorycardContent/index.js +1 -0
  53. package/Subheadline/index.js +1 -0
  54. package/Summary/index.js +1 -0
  55. package/TagIntroductionCard/index.js +1 -0
  56. package/Text/index.js +1 -0
  57. package/TextStoryTemplate/index.js +1 -0
  58. package/ThreeColFlexStories/index.js +1 -0
  59. package/ThreeColFourteenStories/index.js +1 -0
  60. package/ThreeColGrid/index.js +1 -0
  61. package/ThreeColSevenStory/index.js +1 -0
  62. package/ThreeColSixStories/index.js +1 -0
  63. package/ThreeColTwelveStories/index.js +1 -0
  64. package/TimeStamp/index.js +1 -0
  65. package/TwoColFourStories/index.js +1 -0
  66. package/TwoColFourStoryHighlight/index.js +1 -0
  67. package/TwoColSixStories/index.js +1 -0
  68. package/TwoColTenStoriesSidebar/index.js +1 -0
  69. package/TwoColThreeStories/index.js +1 -0
  70. package/Video/index.js +1 -0
  71. package/VideoStoryTemplate/index.js +1 -0
  72. package/cjs/index.js +1 -9
  73. package/esm/index.js +1 -9
  74. package/package.json +1 -1
@@ -0,0 +1 @@
1
+ import e,{createContext as t,useContext as r,useState as o,useEffect as n,Fragment as i}from"react";import a from"axios";import l,{PropTypes as c}from"prop-types";import{connect as s,useSelector as u,useDispatch as m}from"react-redux";import{Link as d,LinkBase as h,ResponsiveImage as f,ResponsiveHeroImage as p,collectionToStories as g}from"@quintype/components";import v from"react-timeago";function _(e,t,r,o,n,i,a){try{var l=e[i](a),c=l.value}catch(e){return void r(e)}l.done?t(c):Promise.resolve(c).then(o,n)}function b(e){return function(){var t=this,r=arguments;return new Promise((function(o,n){var i=e.apply(t,r);function a(e){_(i,o,n,a,l,"next",e)}function l(e){_(i,o,n,a,l,"throw",e)}a(void 0)}))}}function y(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function w(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,o=new Array(t);r<t;r++)o[r]=e[r];return o}function E(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var o,n,i=[],a=!0,l=!1;try{for(r=r.call(e);!(a=(o=r.next()).done)&&(i.push(o.value),!t||i.length!==t);a=!0);}catch(e){l=!0,n=e}finally{try{a||null==r.return||r.return()}finally{if(l)throw n}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return w(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?w(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var x="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function k(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function C(e){var t={exports:{}};return e(t,t.exports),t.exports}var T=C((function(e){var t=function(e){var t,r=Object.prototype,o=r.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",a=n.asyncIterator||"@@asyncIterator",l=n.toStringTag||"@@toStringTag";function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,r){return e[t]=r}}function s(e,t,r,o){var n=t&&t.prototype instanceof g?t:g,i=Object.create(n.prototype),a=new N(o||[]);return i._invoke=function(e,t,r){var o=m;return function(n,i){if(o===h)throw new Error("Generator is already running");if(o===f){if("throw"===n)throw i;return L()}for(r.method=n,r.arg=i;;){var a=r.delegate;if(a){var l=C(a,r);if(l){if(l===p)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===m)throw o=f,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=h;var c=u(e,t,r);if("normal"===c.type){if(o=r.done?f:d,c.arg===p)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(o=f,r.method="throw",r.arg=c.arg)}}}(e,r,a),i}function u(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=s;var m="suspendedStart",d="suspendedYield",h="executing",f="completed",p={};function g(){}function v(){}function _(){}var b={};c(b,i,(function(){return this}));var y=Object.getPrototypeOf,w=y&&y(y(j([])));w&&w!==r&&o.call(w,i)&&(b=w);var E=_.prototype=g.prototype=Object.create(b);function x(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function k(e,t){function r(n,i,a,l){var c=u(e[n],e,i);if("throw"!==c.type){var s=c.arg,m=s.value;return m&&"object"==typeof m&&o.call(m,"__await")?t.resolve(m.__await).then((function(e){r("next",e,a,l)}),(function(e){r("throw",e,a,l)})):t.resolve(m).then((function(e){s.value=e,a(s)}),(function(e){return r("throw",e,a,l)}))}l(c.arg)}var n;this._invoke=function(e,o){function i(){return new t((function(t,n){r(e,o,t,n)}))}return n=n?n.then(i,i):i()}}function C(e,r){var o=e.iterator[r.method];if(o===t){if(r.delegate=null,"throw"===r.method){if(e.iterator.return&&(r.method="return",r.arg=t,C(e,r),"throw"===r.method))return p;r.method="throw",r.arg=new TypeError("The iterator does not provide a 'throw' method")}return p}var n=u(o,e.iterator,r.arg);if("throw"===n.type)return r.method="throw",r.arg=n.arg,r.delegate=null,p;var i=n.arg;return i?i.done?(r[e.resultName]=i.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,p):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,p)}function T(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function z(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function N(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(T,this),this.reset(!0)}function j(e){if(e){var r=e[i];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,a=function r(){for(;++n<e.length;)if(o.call(e,n))return r.value=e[n],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}return{next:L}}function L(){return{value:t,done:!0}}return v.prototype=_,c(E,"constructor",_),c(_,"constructor",v),v.displayName=c(_,l,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===v||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,_):(e.__proto__=_,c(e,l,"GeneratorFunction")),e.prototype=Object.create(E),e},e.awrap=function(e){return{__await:e}},x(k.prototype),c(k.prototype,a,(function(){return this})),e.AsyncIterator=k,e.async=function(t,r,o,n,i){void 0===i&&(i=Promise);var a=new k(s(t,r,o,n),i);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},x(E),c(E,l,"Generator"),c(E,i,(function(){return this})),c(E,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var o=t.pop();if(o in e)return r.value=o,r.done=!1,r}return r.done=!0,r}},e.values=j,N.prototype={constructor:N,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(z),!e)for(var r in this)"t"===r.charAt(0)&&o.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function n(o,n){return l.type="throw",l.arg=e,r.next=o,n&&(r.method="next",r.arg=t),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],l=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var c=o.call(a,"catchLoc"),s=o.call(a,"finallyLoc");if(c&&s){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&o.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var i=n;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,p):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),p},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),z(r),p}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var o=r.completion;if("throw"===o.type){var n=o.arg;z(r)}return n}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,o){return this.delegate={iterator:j(e),resultName:r,nextLoc:o},"next"===this.method&&(this.arg=t),p}},e}(e.exports);try{regeneratorRuntime=t}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=t:Function("r","regeneratorRuntime = r")(t)}})),z=C((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={attributeNames:{styleName:"className"},generateScopedName:"[path]___[name]__[local]___[hash:base64:5]",handleMissingStyleName:"throw"};t.default=r})),N=k(C((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,o=(r=z)&&r.__esModule?r:{default:r};var n=function(e,t){if("throw"===t)throw new Error(e);return"warn"===t&&console.warn(e),null};t.default=function(e,t,r){var i=Object.keys(t),a=r||{},l=a.handleMissingStyleName,c=void 0===l?o.default.handleMissingStyleName:l,s=a.autoResolveMultipleImports,u=void 0===s?o.default.autoResolveMultipleImports:s;return e?e.split(" ").filter((function(e){return e})).map((function(e){if(function(e){return-1!==e.indexOf(".")}(e))return function(e,t,r){var i=e.split("."),a=i[0],l=i[1],c=r||o.default.handleMissingStyleName;return l?t[a]?t[a][l]?t[a][l]:n("CSS module does not exist: "+l,c):n("CSS module import does not exist: "+a,c):n("Invalid style name: "+e,c)}(e,t,c);if(0===i.length)throw new Error("Cannot use styleName attribute for style name '"+e+"' without importing at least one stylesheet.");if(i.length>1){if(!u)throw new Error("Cannot use anonymous style name '"+e+"' with more than one stylesheet import without setting 'autoResolveMultipleImports' to true.");return function(e,t,r){var i=r||o.default.handleMissingStyleName,a=Object.keys(t).map((function(r){return t[r][e]&&r})).filter((function(e){return e}));if(a.length>1)throw new Error('Cannot resolve styleName "'+e+'" because it is present in multiple imports:\n\n\t'+a.join("\n\t")+'\n\nYou can resolve this by using a named import, e.g:\n\n\timport foo from "'+a[0]+'";\n\t<div styleName="foo.'+e+'" />\n\n');return 0===a.length?n("Could not resolve the styleName '"+e+"'.",i):t[a[0]][e]}(e,t,c)}var r=t[i[0]];return r[e]?r[e]:n("Could not resolve the styleName '"+e+"'.",c)})).filter((function(e){return e})).join(" "):""}}))),j=Array.isArray,L="object"==typeof x&&x&&x.Object===Object&&x,O="object"==typeof self&&self&&self.Object===Object&&self,S=L||O||Function("return this")(),I=S.Symbol,A=Object.prototype,M=A.hasOwnProperty,R=A.toString,P=I?I.toStringTag:void 0;var H=function(e){var t=M.call(e,P),r=e[P];try{e[P]=void 0;var o=!0}catch(e){}var n=R.call(e);return o&&(t?e[P]=r:delete e[P]),n},B=Object.prototype.toString;var F=function(e){return B.call(e)},D=I?I.toStringTag:void 0;var W=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":D&&D in Object(e)?H(e):F(e)};var q=function(e){return null!=e&&"object"==typeof e};var G=function(e){return"symbol"==typeof e||q(e)&&"[object Symbol]"==W(e)},U=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Z=/^\w*$/;var Y=function(e,t){if(j(e))return!1;var r=typeof e;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=e&&!G(e))||(Z.test(e)||!U.test(e)||null!=t&&e in Object(t))};var J=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)};var V,$=function(e){if(!J(e))return!1;var t=W(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},K=S["__core-js_shared__"],X=(V=/[^.]+$/.exec(K&&K.keys&&K.keys.IE_PROTO||""))?"Symbol(src)_1."+V:"";var Q=function(e){return!!X&&X in e},ee=Function.prototype.toString;var te=function(e){if(null!=e){try{return ee.call(e)}catch(e){}try{return e+""}catch(e){}}return""},re=/^\[object .+?Constructor\]$/,oe=Function.prototype,ne=Object.prototype,ie=oe.toString,ae=ne.hasOwnProperty,le=RegExp("^"+ie.call(ae).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var ce=function(e){return!(!J(e)||Q(e))&&($(e)?le:re).test(te(e))};var se=function(e,t){return null==e?void 0:e[t]};var ue=function(e,t){var r=se(e,t);return ce(r)?r:void 0},me=ue(Object,"create");var de=function(){this.__data__=me?me(null):{},this.size=0};var he=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},fe=Object.prototype.hasOwnProperty;var pe=function(e){var t=this.__data__;if(me){var r=t[e];return"__lodash_hash_undefined__"===r?void 0:r}return fe.call(t,e)?t[e]:void 0},ge=Object.prototype.hasOwnProperty;var ve=function(e){var t=this.__data__;return me?void 0!==t[e]:ge.call(t,e)};var _e=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=me&&void 0===t?"__lodash_hash_undefined__":t,this};function be(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var o=e[t];this.set(o[0],o[1])}}be.prototype.clear=de,be.prototype.delete=he,be.prototype.get=pe,be.prototype.has=ve,be.prototype.set=_e;var ye=be;var we=function(){this.__data__=[],this.size=0};var Ee=function(e,t){return e===t||e!=e&&t!=t};var xe=function(e,t){for(var r=e.length;r--;)if(Ee(e[r][0],t))return r;return-1},ke=Array.prototype.splice;var Ce=function(e){var t=this.__data__,r=xe(t,e);return!(r<0)&&(r==t.length-1?t.pop():ke.call(t,r,1),--this.size,!0)};var Te=function(e){var t=this.__data__,r=xe(t,e);return r<0?void 0:t[r][1]};var ze=function(e){return xe(this.__data__,e)>-1};var Ne=function(e,t){var r=this.__data__,o=xe(r,e);return o<0?(++this.size,r.push([e,t])):r[o][1]=t,this};function je(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var o=e[t];this.set(o[0],o[1])}}je.prototype.clear=we,je.prototype.delete=Ce,je.prototype.get=Te,je.prototype.has=ze,je.prototype.set=Ne;var Le=je,Oe=ue(S,"Map");var Se=function(){this.size=0,this.__data__={hash:new ye,map:new(Oe||Le),string:new ye}};var Ie=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e};var Ae=function(e,t){var r=e.__data__;return Ie(t)?r["string"==typeof t?"string":"hash"]:r.map};var Me=function(e){var t=Ae(this,e).delete(e);return this.size-=t?1:0,t};var Re=function(e){return Ae(this,e).get(e)};var Pe=function(e){return Ae(this,e).has(e)};var He=function(e,t){var r=Ae(this,e),o=r.size;return r.set(e,t),this.size+=r.size==o?0:1,this};function Be(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var o=e[t];this.set(o[0],o[1])}}Be.prototype.clear=Se,Be.prototype.delete=Me,Be.prototype.get=Re,Be.prototype.has=Pe,Be.prototype.set=He;var Fe=Be;function De(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var r=function(){var o=arguments,n=t?t.apply(this,o):o[0],i=r.cache;if(i.has(n))return i.get(n);var a=e.apply(this,o);return r.cache=i.set(n,a)||i,a};return r.cache=new(De.Cache||Fe),r}De.Cache=Fe;var We=De;var qe=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ge=/\\(\\)?/g,Ue=function(e){var t=We(e,(function(e){return 500===r.size&&r.clear(),e})),r=t.cache;return t}((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(qe,(function(e,r,o,n){t.push(o?n.replace(Ge,"$1"):r||e)})),t}));var Ze=function(e,t){for(var r=-1,o=null==e?0:e.length,n=Array(o);++r<o;)n[r]=t(e[r],r,e);return n},Ye=I?I.prototype:void 0,Je=Ye?Ye.toString:void 0;var Ve=function e(t){if("string"==typeof t)return t;if(j(t))return Ze(t,e)+"";if(G(t))return Je?Je.call(t):"";var r=t+"";return"0"==r&&1/t==-Infinity?"-0":r};var $e=function(e){return null==e?"":Ve(e)};var Ke=function(e,t){return j(e)?e:Y(e,t)?[e]:Ue($e(e))};var Xe=function(e){if("string"==typeof e||G(e))return e;var t=e+"";return"0"==t&&1/e==-Infinity?"-0":t};var Qe=function(e,t){for(var r=0,o=(t=Ke(t,e)).length;null!=e&&r<o;)e=e[Xe(t[r++])];return r&&r==o?e:void 0};var et=function(e,t,r){var o=null==e?void 0:Qe(e,t);return void 0===o?r:o},tt=t(),rt=function(){return r(tt)};function ot(e){return(ot="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})(e)}var nt=function(e,t,r,o){var n=-1,i=null==e?0:e.length;for(o&&i&&(r=e[++n]);++n<i;)r=t(r,e[n],n,e);return r};var it=function(e){return function(t){return null==e?void 0:e[t]}}({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"}),at=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,lt=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]","g");var ct=function(e){return(e=$e(e))&&e.replace(at,it).replace(lt,"")},st=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;var ut=function(e){return e.match(st)||[]},mt=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;var dt=function(e){return mt.test(e)},ht="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",ft="["+ht+"]",pt="\\d+",gt="[\\u2700-\\u27bf]",vt="[a-z\\xdf-\\xf6\\xf8-\\xff]",_t="[^\\ud800-\\udfff"+ht+pt+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",bt="(?:\\ud83c[\\udde6-\\uddff]){2}",yt="[\\ud800-\\udbff][\\udc00-\\udfff]",wt="[A-Z\\xc0-\\xd6\\xd8-\\xde]",Et="(?:"+vt+"|"+_t+")",xt="(?:"+wt+"|"+_t+")",kt="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?",Ct="[\\ufe0e\\ufe0f]?"+kt+("(?:\\u200d(?:"+["[^\\ud800-\\udfff]",bt,yt].join("|")+")[\\ufe0e\\ufe0f]?"+kt+")*"),Tt="(?:"+[gt,bt,yt].join("|")+")"+Ct,zt=RegExp([wt+"?"+vt+"+(?:['’](?:d|ll|m|re|s|t|ve))?(?="+[ft,wt,"$"].join("|")+")",xt+"+(?:['’](?:D|LL|M|RE|S|T|VE))?(?="+[ft,wt+Et,"$"].join("|")+")",wt+"?"+Et+"+(?:['’](?:d|ll|m|re|s|t|ve))?",wt+"+(?:['’](?:D|LL|M|RE|S|T|VE))?","\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",pt,Tt].join("|"),"g");var Nt=function(e){return e.match(zt)||[]};var jt=function(e,t,r){return e=$e(e),void 0===(t=r?void 0:t)?dt(e)?Nt(e):ut(e):e.match(t)||[]},Lt=RegExp("['’]","g");var Ot=function(e){return function(t){return nt(jt(ct(t).replace(Lt,"")),e,"")}},St=Ot((function(e,t,r){return e+(r?" ":"")+t.toUpperCase()})),It=Ot((function(e,t,r){return e+(r?" ":"")+t.toLowerCase()}));function At(e,t,r,o,n){var i,a=et(n,["localizedPublishTime",r])||r;return"hour"===t&&e>23||-1!==["day","week","month","year"].indexOf(t)?function(e,t,r,o){var n=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},i=n.showTime,a=void 0!==i&&i,l=n.isTimeFirst,c=void 0!==l&&l,s=n.isUpperCase,u=void 0!==s&&s,m=n.disableMeridiem,d=void 0!==m&&m,h=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],f=new Date(o),p=f.getDate().toString().padStart(2,0),g=h[f.getMonth()],v=g;u&&(v=St(g));var _,b=f.getFullYear(),y=n.localizedMeridiem,w=n.localizedMonths,E=n.direction,x=void 0===E?"ltr":E,k=Mt(o),C=k;if(w&&(v=et(w,[It(g)])||g),y){var T=k.includes("am"),z=y.am,N=void 0===z?"am":z,j=y.pm,L=void 0===j?"pm":j;C=(T?k.replace("am",N):k.replace("pm",L))||k}return"rtl"===x?(_=a?"".concat(C):"","".concat(p," ").concat(v,", ").concat(b," ").concat(_," ")):d?"".concat(v," ").concat(p,", ").concat(b):c?"".concat(C,", ").concat(p," ").concat(v," ").concat(b):(_=a?", ".concat(C):"","".concat(p," ").concat(v,", ").concat(b).concat(_))}(e,t,r,o,n):e>1?(i=et(n,["localizedPublishTime","".concat(t,"s")])||"".concat(t,"s"),"".concat(e," ").concat(i," ").concat(a)):(i=et(n,["localizedPublishTime",t])||t,"".concat(e," ").concat(i," ").concat(a," "))}function Mt(e){var t=new Date(e),r=t.getHours(),o=t.getMinutes(),n=r>=12?"pm":"am";return(r=(r%=12)||12)+":"+(o=o<10?"0"+o:o)+" "+n}var Rt=function(e){var t=function(e){return{r:parseInt(e.slice(1,3),16),g:parseInt(e.slice(3,5),16),b:parseInt(e.slice(5,7),16)}}(e);return.299*t.r+.587*t.g+.114*t.b},Pt=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"rgba(255, 255, 255, 0)",t=e.match(/^rgba?[\s+]?\([\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?/i);return t&&4===t.length?"#"+("0"+parseInt(t[1],10).toString(16)).slice(-2)+("0"+parseInt(t[2],10).toString(16)).slice(-2)+("0"+parseInt(t[3],10).toString(16)).slice(-2):e},Ht={mobile:767,tablet:1024},Bt=function(e){var t=et(Ht,e);return!!t&&et(global,"document.documentElement.clientWidth")<=t},Ft=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"rgb(255,255,255)",t=/^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/.test(e),r=t?e:Pt(e),o=Rt(r)<155?"light":"dark";return o},Dt=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.magazineSlug,o=void 0===r?"":r,n=t.isArchivePage,i=void 0!==n&&n;if(i)return"/magazine/archive/".concat(o);if(o)return"/magazine/".concat(o,"/").concat(e.slug);var a="section"===e.template;if(a){var l=et(e,["metadata","section","0","id"],""),c=t.sections,s=c&&c.find((function(e){return e.id===l}));return s?s["section-url"]:"/"}return"/collection/".concat(e.slug)};function Wt(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e["story-template"],r=void 0===t?"":t,o=e.metadata,n=void 0===o?{}:o;return"news-elsewhere"===r?et(n,["reference-url"],""):""}l.shape({"sketches-host":l.string,"cdn-name":l.string,"cdn-image":l.string}),l.shape({headline:l.string,"last-published-at":l.number,subheadline:l.string});var qt=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return"news-elsewhere"===et(e,["story-template"])?et(e,["metadata","reference-url"],""):e.url||t},Gt=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2?arguments[2]:void 0;if(r)return r;var o=t.magazineSlug,n=void 0===o?"":o,i=t.isArchivePage,a=void 0!==i&&i;return a?"/magazine/archive/".concat(n):n?"/magazine/".concat(n,"/").concat(e.slug):e?Dt(e,t):"/"},Ut={"./collection-name.m.css":{collection:"collection-name-m_collection__JD6sx","collection-borderLeft":"collection-name-m_collection-borderLeft__3Dznk","border-left":"collection-name-m_border-left__3_pYw","collection-borderBottomFull":"collection-name-m_collection-borderBottomFull__Dkq3K","collection-borderBottom":"collection-name-m_collection-borderBottom__2rdQM","collection-crossLine":"collection-name-m_collection-crossLine__1sIpN","border-bottom":"collection-name-m_border-bottom__1MnlV",dark:"collection-name-m_dark__nMe5H",light:"collection-name-m_light__1vFDN"}},Zt=function(t){var r=t.collectionNameBorderColor,o=void 0===r?"":r,n=t.collection,i=t.config,a=t.collectionNameTemplate,l=t.headerLevel,c=t.customCollectionName,s=void 0===c?"":c,u=t.navigate,m=void 0===u||u,h=rt()||{},f=et(h,["showRowTitle"],!0),p=["borderLeft","borderBottom","crossLine","borderBottomFull"].includes(a)?" collection-".concat(a):"",g=m&&n&&Dt(n,i)||"",v=s||n.name||"",_=Ft(h.theme),b="h"+l,y=Pt(o),w=p.includes("collection-borderBottomFull")?"4px solid ".concat(y):"",E=Bt("mobile");return e.createElement(e.Fragment,null,f&&v&&e.createElement("div",{style:{borderBottom:w},"data-test-id":"collection-name",className:"arr--collection-name arrow-component "+N("collection ".concat(_," ").concat(p),Ut)},p.includes("collection-borderLeft")&&e.createElement("span",{className:"arr-collection-name-border-left collection-name-m_border-left__3_pYw",style:{color:y,fontSize:function(){if(E)switch(l){case"1":return"32px";case"2":return"24px";case"3":return"20px";case"4":return"18px";case"5":case"6":return"16px";default:return"20px"}switch(l){case"1":return"40px";case"2":return"32px";case"3":return"24px";case"4":return"20px";case"5":return"18px";case"6":return"16px";default:return"24px"}}()}}),g&&!g.includes(void 0)?e.createElement(d,{href:g,"aria-label":"collection-name"},e.createElement(b,null,v)):e.createElement(b,null,v),p.includes("collection-borderBottom")&&!p.includes("collection-borderBottomFull")?e.createElement("div",{className:"collection-name-m_border-bottom__1MnlV",style:{borderBottom:"4px solid ".concat(y)}}):""))};Zt.propTypes={collectionNameBorderColor:c.string,collection:c.object,config:c.object,collectionNameTemplate:c.oneOf(["","borderLeft","borderBottom","crossLine","borderBottomFull"]),headerLevel:c.string,customCollectionName:c.string,navigate:c.bool},Zt.defaultProps={collectionNameTemplate:"",headerLevel:"3"};var Yt=s((function(e){return{config:et(e,["qt","config"],{})}}))(Zt),Jt={"./load-more.m.css":{button:"load-more-m_button__1mmf1",default:"load-more-m_default__2_k4V",dark:"load-more-m_dark__3dfzb",light:"load-more-m_light__ePZQI"}};function Vt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,o)}return r}function $t(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Vt(Object(r),!0).forEach((function(t){y(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Vt(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var Kt=function(t){var r=t.config,o=void 0===r?{}:r,n=t.collection,i=t.template,a=void 0===i?"SubsequentLoadCount":i,l=t.onClick,c=t.navigate,s=t.qtConfig,u=o.showButton,m=void 0===u||u,d=o.buttonText,f=void 0===d?"Read More":d,p=o.theme,g=void 0===p?"":p,v=o.customUrlPath,_=void 0===v?"":v;if(!m)return null;var b=Ft(g),y=_?"/".concat(_):Gt(n,$t($t({},s),o));return"SubsequentLoadCount"===a?e.createElement("div",{onClick:l,"data-test-id":"load-more",className:"arr--button "+N("button ".concat(b," default"),Jt)},f):e.createElement(h,{href:y,navigateTo:c,"data-test-id":"load-more","aria-label":"load-more"},e.createElement("div",{className:"arr--button "+N("button ".concat(b," default"),Jt)},f))};Kt.propTypes={collection:l.object,template:l.string,config:l.object,onClick:l.func,navigate:l.func,qtConfig:l.object};var Xt=function(t){var r=t.height,o=t.width,n=t.color,i=void 0===n?"#D8D8D8":n,a=t.positionTop;return e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:o,height:r,viewBox:"0 0 40 40",style:{position:"relative",top:a}},e.createElement("g",{fill:"none",fillRule:"evenodd",stroke:"none",strokeWidth:"1"},e.createElement("g",null,e.createElement("g",{transform:"translate(8 8)"},e.createElement("path",{d:"M0 0H24V24H0z"}),e.createElement("g",{fill:i,fillRule:"nonzero",transform:"translate(0 2)"},e.createElement("path",{d:"M21.043 19.553c0-.743-.601-1.344-1.344-1.344h-15.4a1.343 1.343 0 100 2.688h15.4c.743 0 1.344-.603 1.344-1.344zM1.598 8.673c.022 0 .042 0 .064-.003l2.131 7.713h16.411l2.132-7.713c.022 0 .041.003.063.003a1.599 1.599 0 10-1.52-1.108L17.025 9.82 12.882 2.95a1.599 1.599 0 10-1.765 0L6.976 9.82 3.121 7.565a1.599 1.599 0 10-1.523 1.107z"}))))))};Xt.propTypes={height:l.string,width:l.string,color:l.string,positionTop:l.string};var Qt=function(t){var r=t.height,o=t.width,n=t.color,i=void 0===n?"#D5D5D5":n,a=t.positionTop;return e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:o,height:r,viewBox:"0 0 40 40",style:{position:"relative",top:a}},e.createElement("g",{fill:"none",fillRule:"evenodd",stroke:"none",strokeWidth:"1"},e.createElement("g",null,e.createElement("g",{transform:"translate(8 8)"},e.createElement("path",{d:"M0 0H24V24H0z"}),e.createElement("path",{fill:i,fillRule:"nonzero",d:"M12.71 4.364A6.54 6.54 0 000 6.545a6.54 6.54 0 0012.71 2.182h4.745v4.364h4.363V8.727H24V4.364H12.71zM6.544 8.727a2.181 2.181 0 110-4.362 2.181 2.181 0 010 4.362z",transform:"translate(0 5)"})))))};Qt.propTypes={height:l.string,width:l.string,color:l.string,positionTop:l.string};var er=function(t){var r=t.height,o=t.width,n=t.color,i=void 0===n?"#D5D5D5":n,a=t.positionTop;return e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:o,height:r,viewBox:"0 0 40 40",style:{position:"relative",top:a}},e.createElement("g",{fill:"none",fillRule:"evenodd",stroke:"none",strokeWidth:"1"},e.createElement("g",null,e.createElement("g",{transform:"translate(8 8)"},e.createElement("path",{d:"M0 0H24V24H0z"}),e.createElement("g",{fill:i,fillRule:"nonzero",transform:"translate(3)"},e.createElement("path",{d:"M15.692 9h-.747V6c0-3.31-2.681-6-5.978-6C5.67 0 2.989 2.69 2.989 6v3h-.747A2.249 2.249 0 000 11.25v10.5A2.249 2.249 0 002.242 24h13.45a2.249 2.249 0 002.242-2.25v-10.5A2.249 2.249 0 0015.692 9zM4.982 6c0-2.206 1.787-4 3.985-4s3.985 1.794 3.985 4v3h-7.97V6z"}))))))};er.propTypes={height:l.string,width:l.string,color:l.string,positionTop:l.string};var tr=function(t){var r=t.width,o=t.height,n=t.color,i=void 0===n?"#D5D5D5":n,a=t.positionTop,l=void 0===a?"":a;return e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:r,height:o,viewBox:"0 0 40 40",style:{position:"relative",top:l}},e.createElement("g",{fill:"none",fillRule:"evenodd",stroke:"none",strokeWidth:"1"},e.createElement("g",null,e.createElement("path",{fill:i,d:"M20 26L12.946577 29.7082039 14.2936609 21.854102 8.5873218 16.2917961 16.4732885 15.145898 20 8 23.5267115 15.145898 31.4126782 16.2917961 25.7063391 21.854102 27.053423 29.7082039z"}))))};tr.propTypes={height:l.string,width:l.string,color:l.string,positionTop:l.string};var rr=function(t){var r=t.width,o=t.height,n=t.color,i=t.iconType,a=t.positionTop;switch(i){case"crown":return e.createElement(Xt,{width:r,height:o,color:n,positionTop:a});case"lock":return e.createElement(er,{width:r,height:o,color:n,positionTop:a});case"key":return e.createElement(Qt,{width:r,height:o,color:n,positionTop:a});default:return e.createElement(tr,{width:r,height:o,color:n,positionTop:a})}};rr.propTypes={width:l.string,height:l.string,color:l.string,iconType:l.string,positionTop:l.string};var or={"./headline.m.css":{wrapper:"headline-m_wrapper__3nUmh",headline:"headline-m_headline__3_NhV",dark:"headline-m_dark__en3hW",light:"headline-m_light__3lKJB"}},nr=function(t){var r=t.story,o=t.headerLevel,n=t.premiumStoryIconConfig,i=void 0===n?{}:n,a=t.isLink,l=rt()||{},c=i.iconColor,s=void 0===c?"#F7B500":c,u=i.iconStyle,m=void 0===u?"star":u,h=i.enablePremiumStoryIcon,f=void 0!==h&&h,p=et(r,["alternative","home","default","headline"]),g=f&&"subscription"===et(r,["access"]),v=p||r.headline,_="h"+o,b=Ft(l.theme),y=g?"wrapper":"",w="24px";return e.createElement("div",{"data-test-id":"headline",className:"arrow-component arr--headline "+N(y,or)},g&&e.createElement(rr,{width:w,height:w,color:s,iconType:m,positionTop:function(){switch(parseInt(o)){case 1:return"-2px";case 2:return"2px";case 3:return"4px";case 4:return"5px";default:return"6px"}}()}),a?e.createElement(d,{href:qt(r,"/".concat(r.slug)),externalLink:Wt(r),"aria-label":"headline"},e.createElement(_,{className:N("headline ".concat(b),or)},v)):e.createElement(_,{className:N("headline ".concat(b),or)},v))};nr.propTypes={story:l.object.isRequired,headerLevel:l.string,premiumStoryIconConfig:l.shape({iconColor:l.string,iconType:l.string,enablePremiumStoryIcon:l.bool}),isLink:l.bool},nr.defaultProps={headerLevel:"6",isLink:!0};var ir={"./subheadline.m.css":{subheadline:"subheadline-m_subheadline__3fd7z",dark:"subheadline-m_dark__28u00",light:"subheadline-m_light__2YUOe"}},ar=function(t){var r=t.story,o=t.truncateChars,n=void 0===o?200:o,i=t.lineClamp,a=t.clazzName,l=void 0===a?"":a,c=t.forceShowAtom,s=t.showFullContent,u=rt()||{};if(!(c||et(u,["showSubheadline"],!0)))return null;var m=Ft(u.theme);return e.createElement("div",{style:{WebkitLineClamp:i},"data-test-id":"subheadline",className:("p-alt arr--sub-headline arrow-component ".concat(l)?"p-alt arr--sub-headline arrow-component ".concat(l)+" ":"")+N("subheadline ".concat(m),ir)},s||"number"==typeof i?r.subheadline:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:60,r=arguments.length>2&&void 0!==arguments[2]&&!arguments[2]?"":" ...";return"string"==typeof e&&e.length>t?e.substring(0,t)+r:e}(r.subheadline,n,!0))};ar.propTypes={story:l.object.isRequired,lineClamp:l.number,truncateChars:l.number,clazzName:l.string,forceShowAtom:l.bool,showFullContent:l.bool},ar.defaultProps={forceShowAtom:!1,showFullContent:!1};var lr={"./timestamp.m.css":{time:"timestamp-m_time__2v46i","time-wrapper":"timestamp-m_time-wrapper__3O2lM","bottom-fix":"timestamp-m_bottom-fix__1Zh8r",dark:"timestamp-m_dark__2lk9E",light:"timestamp-m_light__2QlrI"}},cr=function(t){var r=t.story,o=t.isBottom,n=t.config,i=void 0===n?{}:n,a=rt()||{},l=et(a,["showTime"],!0),c=r["last-published-at"]||r["first-published-at"],s=o?"bottom-fix":"",u=Ft(a.theme);return e.createElement(e.Fragment,null,l&&e.createElement("div",{"data-test-id":"publish-time",className:"time arr--publish-time "+N("time ".concat(u," ").concat(s),lr)},e.createElement("div",{className:"timestamp-m_time-wrapper__3O2lM"},function(t,r){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return e.createElement(v,{date:t,formatter:function(e,t,n,i){return r(e,t,n,i,o)}})}(c,At,i))))};cr.propTypes={story:l.object,isBottom:l.bool,config:l.object};var sr={"./author.m.css":{author:"author-m_author__WRuLm","author-image":"author-m_author-image__3q2oc","author-name":"author-m_author-name__3WP-O","bottom-fix":"author-m_bottom-fix__223TT",prefix:"author-m_prefix__YSInK","rtl-image":"author-m_rtl-image__2nglD","ltr-image":"author-m_ltr-image__3bc0L",dark:"author-m_dark__2TTlp",light:"author-m_light__3y8_x"}},ur=function(t){var r=t.story,o=t.hideAuthorImage,n=t.isBottom,i=t.prefix,a=void 0===i?"":i,l=t.config,c=void 0===l?{}:l,s=rt()||{},u=et(s,["showAuthor"],!0),m=et(r,["authors","0"],""),h=m["avatar-url"],p=m["avatar-s3-key"],g=m.name,v=m.slug,_=n?"bottom-fix":"",b=Ft(s.theme),y=et(c,["mountAt"],""),w=function(t){return a?e.createElement("div",{className:"arr-author-prefix "+N("prefix ".concat(b),sr)},a):!o&&function(t){return h||p?e.createElement("div",{"data-test-id":"author-image",className:N("author-image ".concat(t,"-image"),sr)},e.createElement("figure",null,p?e.createElement(f,{slug:p,"aspect-ratio":[1,1],defaultWidth:400,imgParams:{auto:["format","compress"]},alt:g}):e.createElement("img",{src:h}))):null}(t)};return e.createElement(e.Fragment,null,u&&e.createElement(d,{href:"".concat(y,"/author/")+v,"aria-label":"author-name",className:"author-name arr-author-name arrow-component "+N("author ".concat(_),sr)},w("ltr"),e.createElement("div",{"data-test-id":"author-name",className:"author-name "+N("author-name ".concat(b),sr)},g||r["author-name"]),!a&&w("rtl")))};var mr=s((function(e){return{config:et(e,["qt","config"],{})}}))(ur);ur.propTypes={story:l.object.isRequired,hideAuthorImage:l.bool,isBottom:l.bool,prefix:l.string,config:l.object},ur.defaultProps={hideAuthorImage:!1,isBottom:!1,prefix:""};var dr={"./dot.m.css":{dark:"dot-m_dark__1Njxl",light:"dot-m_light__27IA3"}},hr=function(t){var r=t.width,o=void 0===r?"3px":r,n=t.height,i=void 0===n?"3px":n,a=t.color,l=void 0===a?"light":a;return e.createElement("div",{className:N(l,dr)},e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:o,height:i,viewBox:"0 0 3 3"},e.createElement("circle",{cx:"87",cy:"9",r:"1",fill:"inherit",fillRule:"nonzero",transform:"translate(-86 -8)"})))};hr.propTypes={color:l.string,width:l.string,height:l.string};var fr={"./divider.m.css":{dark:"divider-m_dark__26FRi",light:"divider-m_light__w-7sy"}},pr=function(t){var r=t.width,o=void 0===r?"1":r,n=t.height,i=void 0===n?"10":n,a=t.color,l=void 0===a?"light":a;return e.createElement("div",{className:N(l,fr)},e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:o,height:i},e.createElement("path",{fill:"inherit",d:"M0 0h1v10H0z"})))};pr.propTypes={color:l.string,width:l.string,height:l.string};var gr={"./read-time.m.css":{"read-time-wrapper":"read-time-m_read-time-wrapper__3GyC_","dot-indicator":"read-time-m_dot-indicator__3Sqh2",dark:"read-time-m_dark__3yRaK",light:"read-time-m_light__1GAZu"}},vr=function(t){var r=t.story,o=t.opts,n=void 0===o?{}:o,i=t.isLightTheme,a=void 0!==i&&i,l=rt()||{},c=et(l,["showReadTime"])||et(n,["showReadTime"],!0),s=et(r,["read-time"],0),u=a?"light":Ft(l.theme);if(!c||!s)return null;var m=et(n,["localizedTimeToRead"])||"min read";return e.createElement(e.Fragment,null,e.createElement("div",{"data-test-id":"read-time",className:"arrow-component arr--read-time "+N("read-time-wrapper ".concat(u),gr)},e.createElement("span",{className:"read-time-indicator read-time-m_dot-indicator__3Sqh2"},e.createElement(hr,{color:u})),e.createElement("span",null,s," ",m)))};vr.propTypes={story:l.shape({"read-time":l.number}),opts:l.shape({showReadTime:l.bool}),isLightTheme:l.bool};var _r={"./author-with-timestamp.m.css":{"author-time-wrapper":"author-with-timestamp-m_author-time-wrapper__G7_eI","author-image":"author-with-timestamp-m_author-image__24xrD",dot:"author-with-timestamp-m_dot__1LHXD","bottom-fix":"author-with-timestamp-m_bottom-fix__1rWGv",dash:"author-with-timestamp-m_dash__2L5XC"}},br=function(t){var r=t.story,o=t.separator,n=t.isBottom,i=t.hideAuthorImage,a=t.prefix,l=t.config,c=void 0===l?{}:l,s=t.isLightTheme,u=rt()||{},m=et(c,["showAuthor"],et(u,["showAuthor"],!0)),d=et(u,["showTime"],!0),h=et(u,["showReadTime"],!0),f=n?"bottom-fix":"",p="dot"===o?"dot":"dash",g=s?"light":Ft(u.theme),v=function(){return d?e.createElement(e.Fragment,null,m&&e.createElement("span",{className:"arr-separator "+N("".concat(p),_r)},"divider"===o?e.createElement(pr,{color:g}):e.createElement(hr,{color:g})),e.createElement(cr,{story:r,config:c}),h&&e.createElement(vr,{story:r,opts:c,isLightTheme:s})):null};return e.createElement("div",{className:"arr--author-time "+N("author-time-wrapper ".concat(f),_r)},m?e.createElement(e.Fragment,null,e.createElement(mr,{story:r,isBottom:!0,hideAuthorImage:i,prefix:a}),v()):v())};br.propTypes={story:l.object,separator:l.oneOf(["dot","divider"]),hideAuthorImage:l.bool,isBottom:l.bool,prefix:l.string,config:l.object,isLightTheme:l.bool},br.defaultProps={separator:"dot",isBottom:!1,hideAuthorImage:!0,prefix:"",isLightTheme:!1};var yr=function(t){var r=t.width,o=void 0===r?40:r,n=t.height,i=void 0===n?30:n,a=t.iconColor,l=void 0===a?"#99B0CB":a;return e.createElement("svg",{width:o,height:i,viewBox:"0 0 102 76",version:"1.1"},e.createElement("g",{id:"demo-home-copy",stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",transform:"translate(-377.000000, -314.000000)"},e.createElement("g",{id:"Group-13",transform:"translate(377.000000, 314.000000)"},e.createElement("path",{d:"M43.2,49.7 L62.2,19.2 L87.2,59.4 L17,59.4 L32.8,39.4 L43.2,49.7 Z M29.9,28.6 C25.8683213,28.6 22.6,25.3316787 22.6,21.3 C22.6,17.2683213 25.8683213,14 29.9,14 C33.9316787,14 37.2,17.2683213 37.2,21.3 C37.2,25.3316787 33.9316787,28.6 29.9,28.6 Z",id:"Combined-Shape",fill:l,fillRule:"nonzero"}),e.createElement("rect",{id:"Rectangle-19",stroke:l,strokeWidth:"3",x:"1.5",y:"1.5",width:"99",height:"73",rx:"3"}))))};yr.propTypes={width:l.object,height:l.object,iconColor:l.object};var wr=function(){return e.createElement("div",{className:"arr--fallback-image fallback-m_image__1GYCJ fallback-m_image-position__3KddP"},e.createElement("figure",{className:"arr--fallback-svg fallback-m_fallback-svg__tK9fL"},e.createElement(yr,null)))},Er=function(t){var r=t.slug;return r?e.createElement(d,{href:r,"aria-label":"image-fallback"},wr()):wr()};Er.propTypes={slug:l.string};var xr={"./hero-image.m.css":{"hero-image":"hero-image-m_hero-image__3lraV","right-padding":"hero-image-m_right-padding__1LkCe","left-padding":"hero-image-m_left-padding__pYRAj","right-padding-mob":"hero-image-m_right-padding-mob__3-uOU",placeholder:"hero-image-m_placeholder__1omCm","hero-image-mob":"hero-image-m_hero-image-mob__13JJp","with-padding":"hero-image-m_with-padding__324G_",image:"hero-image-m_image__1mz0U"}},kr=function(t){var r=t.story,o=t.FullBleed,n=t.aspectRatio,i=t.defaultWidth,a=t.widths,l=t.isHorizontal,c=t.isHorizontalMobile,s=t.isHorizontalWithImageLast,m=t.defaultFallback,h=t.isStoryPageImage,g=(rt()||{}).fallbackImageUrl,v=void 0===g?"":g,_=u((function(e){return et(e,["qt","config","showPlaceholder"])}))?"placeholder":"",b=o?"":"with-padding",y="hero-image";l?y="right-padding":s&&(y="left-padding");var w=c?"right-padding-mob":"",x=function(e){var t=E(e,2),r=t[0],o=t[1];return r>0&&o>0?o/r*100:0},k=E(n,2),C=k[0],T=k[1],z=void 0===T?C:T,j=Bt("mobile"),L=j?C:z,O=x(j?C:z),S=et(r,["hero-image-s3-key"])||et(r,["alternative","home","default","hero-image","hero-image-s3-key"]),I=function(){return S?e.createElement("figure",{style:{paddingTop:O+"%"},className:"arr--responsive-hero-image "+N("image ".concat(_),xr)},e.createElement(p,{story:r,aspectRatio:L,defaultWidth:i,widths:a,imgParams:{auto:["format","compress"],fit:"max"}})):v?e.createElement("figure",{style:{paddingTop:O+"%"},className:"arr--responsive-hero-image "+N("image ".concat(_),xr)},e.createElement(f,{slug:!h&&v,metadata:{},"aspect-ratio":L,defaultWidth:i,widths:a,imgParams:{auto:["format","compress"],fit:"max"},className:"",alt:"image-fallback"})):e.createElement(e.Fragment,null,m?e.createElement("div",{"data-test-id":"arr--fallback-hero-image",style:{paddingTop:O+"%"},className:"arr--fallback-hero-image "+N("image ".concat(_),xr)},e.createElement(Er,null)):null)};return r&&(h?e.createElement("div",{"data-test-id":"arr--hero-image",className:"arr--hero-image "+N("".concat(y," ").concat(b," ").concat(w),xr)},I()):e.createElement(d,{"data-test-id":"arr--hero-image",href:qt(r,"/".concat(r.slug)),externalLink:Wt(r),"aria-label":"fallback-hero-image",className:"arr--hero-image "+N("".concat(y," ").concat(b," ").concat(w),xr)},I()))};kr.propTypes={story:l.object.isRequired,FullBleed:l.bool,defaultWidth:l.number,widths:l.array,aspectRatio:l.array,isHorizontal:l.bool,isHorizontalMobile:l.bool,defaultFallback:l.bool,isHorizontalWithImageLast:l.bool},kr.defaultProps={FullBleed:!0,aspectRatio:[[1,1],[16,9]],defaultWidth:480,widths:[250,480,640],isHorizontal:!1,isHorizontalMobile:!1,defaultFallback:!0,isStoryPageImage:!1,isHorizontalWithImageLast:!1};var Cr={"./section.m.css":{section:"section-m_section__2N4S3","section-borderBottomSml":"section-m_section-borderBottomSml__2GNbo","border-bottom":"section-m_border-bottom__3cRoD","section-borderLeft":"section-m_section-borderLeft__3hKVj","border-left":"section-m_border-left__2oUyp","section-solid":"section-m_section-solid__1vB1Q",dark:"section-m_dark__1r3C4",light:"section-m_light__306hW"}},Tr=function(t){var r=t.story,o=t.template,n=void 0===o?"":o,i=t.borderColor,a=void 0===i?"":i,l=t.isLightTheme,c=rt()||{},s=et(c,["showSection"],!0),u=et(c,["sectionTagTemplate"]),m=et(r,["sections",0],""),h=["borderBottomSml","borderLeft","solid"],f=m?m["section-url"]:"/",p="solid"===n||"solid"===u?a:c.theme,g=l?"light":Ft(p),v=Pt(a),_=h.includes(n)?"section section-".concat(n):"section";return u&&(_=h.includes(u)?"section section-".concat(u):"section"),s?e.createElement(d,{href:f,className:"arrow-component arr--section-name","aria-label":"section-name"},e.createElement("div",{"data-test-id":"sectionTag",style:{backgroundColor:_.includes("section-solid")?v:""},className:"section-tag arrow-component "+N("".concat(g," ").concat(_),Cr)},_.includes("section-borderLeft")&&e.createElement("span",{className:"section-m_border-left__2oUyp",style:{color:v}}),m["display-name"]||m.name,e.createElement("div",{className:"section-m_border-bottom__3cRoD",style:{backgroundColor:"".concat("solid"===n?"":v)}}))):null};Tr.propTypes={story:l.object.isRequired,template:l.oneOf(["","borderBottomSml","borderLeft","solid"]),borderColor:l.string,solidBorderColor:l.string,isLightTheme:l.bool},Tr.defaultProps={template:"",isLightTheme:!1};var zr={"./storycard.m.css":{"author-timestamp-wrapper":"storycard-m_author-timestamp-wrapper__20yjp","default-card":"storycard-m_default-card__1-POn","horizontal-card":"storycard-m_horizontal-card___7afz","backgroung-img":"storycard-m_backgroung-img__1FMJT","content-overlap":"storycard-m_content-overlap__1yNHR","border-full":"storycard-m_border-full__1nhy7",light:"storycard-m_light__3EhXN",dark:"storycard-m_dark__2wCTq","border-bottom":"storycard-m_border-bottom__2_E-I","border-boxShadow":"storycard-m_border-boxShadow__2-k3Z","center-align":"storycard-m_center-align__1Sn8-","content-bottom":"storycard-m_content-bottom__1QHeC","content-full":"storycard-m_content-full__2zJmU","content-boxShadow":"storycard-m_content-boxShadow__2IAWZ","hero-image":"storycard-m_hero-image__1H3MB","right-padding":"storycard-m_right-padding__12-lQ","horizontal-mob":"storycard-m_horizontal-mob__17JG2",content:"storycard-m_content__1Q9vq","border-default":"storycard-m_border-default__PEZ1x",card:"storycard-m_card__KJwRa","horizontal-image-last":"storycard-m_horizontal-image-last__3o6LY"}},Nr=function(t){var r,o=t.story,n=t.children,i=t.isHorizontal,a=t.aspectRatio,l=t.border,c=t.useImageAsBackground,s=t.bgImgContentOverlap,u=t.theme,m=t.borderColor,d=t.isHorizontalMobile,h=t.centerAlign,f=t.headerLevel,p=t.hideAuthorImage,g=t.prefix,v=t.config,_=t.isHorizontalWithImageLast;if(!o||(null==(r=o)||"object"===ot(r)&&0===Object.entries(r).length&&r.constructor===Object||"string"==typeof r&&0===r.trim().length))return e.createElement("div",null);var b=["default","full","bottom","boxShadow"].includes(l)?"border-".concat(l):"",y="default-card";i?y="horizontal-card":_&&(y="horizontal-image-last");var w=c?"backgroung-img":"",E=s?"content-overlap":"",x=Ft(u),k=d?"horizontal-mob":"",C=e.createElement(jr,{story:o,aspectRatio:a,border:l,isHorizontalMobile:d,isHorizontal:i,centerAlign:h,headerLevel:f,borderColor:m,hideAuthorImage:p,prefix:g,config:v,isHorizontalWithImageLast:_});return e.createElement("div",{"data-test-id":"story-card",style:{backgroundColor:u,color:x},className:"arr--story-card "+N("card ".concat(y," ").concat(b," ").concat(x," ").concat(w," ").concat(E," ").concat(k),zr)},n||C)},jr=function(t){var r=t.story;t.border;var o=t.isHorizontal,n=t.aspectRatio,i=t.headerLevel,a=t.isHorizontalMobile,l=void 0!==a&&a,c=t.centerAlign,s=void 0!==c&&c,u=t.borderColor,m=t.hideAuthorImage,d=t.prefix,h=t.isHorizontalWithImageLast,f=t.config,p=s?"center-align":"",g=Pt(u),v=f.localizationConfig,_=void 0===v?{}:v;return e.createElement(e.Fragment,null,o?e.createElement(kr,{story:r,isHorizontal:!0,isHorizontalMobile:l,aspectRatio:n}):h?e.createElement(kr,{story:r,isHorizontalWithImageLast:!0,isHorizontalMobile:l,aspectRatio:n}):e.createElement(kr,{story:r,isHorizontalMobile:l,aspectRatio:n}),e.createElement("div",{className:"arr--story-content "+N("content ".concat(p),zr)},e.createElement(Tr,{story:r,borderColor:g}),e.createElement(nr,{story:r,headerLevel:i,premiumStoryIconConfig:f}),e.createElement(br,{config:_,story:r,isBottom:!0,prefix:d,hideAuthorImage:m}),e.createElement(ar,{story:r})))};jr.propTypes={story:l.object.isRequired,border:l.oneOfType([l.string]),isBottom:l.bool,isHorizontal:l.bool,aspectRatio:l.oneOfType([l.array]),isHorizontalMobile:l.bool,centerAlign:l.bool,headerLevel:l.string,borderColor:l.string,hideAuthorImage:l.bool,prefix:l.string,config:l.object,isHorizontalWithImageLast:l.bool},Nr.propTypes={story:l.object.isRequired,children:l.node,isHorizontal:l.bool,border:l.oneOfType([l.string]),useImageAsBackground:l.bool,bgImgContentOverlap:l.bool,aspectRatio:l.oneOfType([l.array]),theme:l.string,isHorizontalMobile:l.bool,centerAlign:l.bool,headerLevel:l.string,borderColor:l.string,hideAuthorImage:l.bool,prefix:l.string,config:l.object,isHorizontalWithImageLast:l.bool},Nr.defaultProps={isHorizontal:!1,isHorizontalMobile:!1,border:"default",theme:"",centerAlign:!1,borderColor:"",isHorizontalWithImageLast:!1};var Lr={"./storycardContent.m.css":{wrapper:"storycardContent-m_wrapper__TEmfA","horizontal-content-wrapper":"storycardContent-m_horizontal-content-wrapper__NgpuC","border-full":"storycardContent-m_border-full__2km37"}},Or=function(t){var r=t.story,o=t.children,n=t.theme,i=t.border,a=t.isHorizontalMobile,l=t.headerLevel,c=t.borderColor,s=t.config,u=Ft(n),m=Pt(c),d=["full"].includes(i)?"border-".concat(i):"",h=a?"horizontal-content-wrapper":"";return e.createElement("div",{"data-test-id":"story-card-content",style:{backgroundColor:n,color:u},className:"arr--content-wrapper "+N("wrapper ".concat(d," ").concat(h),Lr)},o||e.createElement(Sr,{story:r,headerLevel:l,isHorizontalMobile:a,borderColor:m,config:s}))},Sr=function(t){var r=t.story,o=t.headerLevel,n=t.borderColor,i=t.config,a=void 0===i?{}:i,l=Pt(n),c=a.localizationConfig,s=void 0===c?{}:c;return e.createElement("div",null,e.createElement(Tr,{story:r,borderColor:l}),e.createElement(nr,{story:r,headerLevel:o,premiumStoryIconConfig:a}),e.createElement(br,{config:s,story:r}))};Sr.propTypes={story:l.object.isRequired,border:l.string,theme:l.string,isHorizontalMobile:l.bool,headerLevel:l.string,borderColor:l.string,config:l.object},Or.propTypes={story:l.object.isRequired,children:l.node,theme:l.string,border:l.string,isHorizontalMobile:l.bool,headerLevel:l.string,borderColor:l.string,config:l.object};var Ir=function(t){return t.width,t.height,t.iconColor,e.createElement("div",{className:"loading-m_loading-indicator__2Dlst"},e.createElement("svg",{width:"40",height:"40",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 100",preserveAspectRatio:"xMidYMid"},e.createElement("circle",{cx:"84",cy:"50",r:"0",fill:"currentColor"},e.createElement("animate",{attributeName:"r",values:"10;0;0;0;0",keyTimes:"0;0.25;0.5;0.75;1",keySplines:"0 0.5 0.5 1;0 0.5 0.5 1;0 0.5 0.5 1;0 0.5 0.5 1",calcMode:"spline",dur:"2s",repeatCount:"indefinite",begin:"0s"}),e.createElement("animate",{attributeName:"cx",values:"84;84;84;84;84",keyTimes:"0;0.25;0.5;0.75;1",keySplines:"0 0.5 0.5 1;0 0.5 0.5 1;0 0.5 0.5 1;0 0.5 0.5 1",calcMode:"spline",dur:"2s",repeatCount:"indefinite",begin:"0s"})),e.createElement("circle",{cx:"84",cy:"50",r:".709",fill:"currentColor"},e.createElement("animate",{attributeName:"r",values:"0;10;10;10;0",keyTimes:"0;0.25;0.5;0.75;1",keySplines:"0 0.5 0.5 1;0 0.5 0.5 1;0 0.5 0.5 1;0 0.5 0.5 1",calcMode:"spline",dur:"2s",repeatCount:"indefinite",begin:"-1s"}),e.createElement("animate",{attributeName:"cx",values:"16;16;50;84;84",keyTimes:"0;0.25;0.5;0.75;1",keySplines:"0 0.5 0.5 1;0 0.5 0.5 1;0 0.5 0.5 1;0 0.5 0.5 1",calcMode:"spline",dur:"2s",repeatCount:"indefinite",begin:"-1s"})),e.createElement("circle",{cx:"81.59",cy:"50",r:"10",fill:"currentColor"},e.createElement("animate",{attributeName:"r",values:"0;10;10;10;0",keyTimes:"0;0.25;0.5;0.75;1",keySplines:"0 0.5 0.5 1;0 0.5 0.5 1;0 0.5 0.5 1;0 0.5 0.5 1",calcMode:"spline",dur:"2s",repeatCount:"indefinite",begin:"-0.5s"}),e.createElement("animate",{attributeName:"cx",values:"16;16;50;84;84",keyTimes:"0;0.25;0.5;0.75;1",keySplines:"0 0.5 0.5 1;0 0.5 0.5 1;0 0.5 0.5 1;0 0.5 0.5 1",calcMode:"spline",dur:"2s",repeatCount:"indefinite",begin:"-0.5s"})),e.createElement("circle",{cx:"47.59",cy:"50",r:"10",fill:"currentColor"},e.createElement("animate",{attributeName:"r",values:"0;10;10;10;0",keyTimes:"0;0.25;0.5;0.75;1",keySplines:"0 0.5 0.5 1;0 0.5 0.5 1;0 0.5 0.5 1;0 0.5 0.5 1",calcMode:"spline",dur:"2s",repeatCount:"indefinite",begin:"0s"}),e.createElement("animate",{attributeName:"cx",values:"16;16;50;84;84",keyTimes:"0;0.25;0.5;0.75;1",keySplines:"0 0.5 0.5 1;0 0.5 0.5 1;0 0.5 0.5 1;0 0.5 0.5 1",calcMode:"spline",dur:"2s",repeatCount:"indefinite",begin:"0s"})),e.createElement("circle",{cx:"16",cy:"50",r:"9.291",fill:"currentColor"},e.createElement("animate",{attributeName:"r",values:"0;0;10;10;10",keyTimes:"0;0.25;0.5;0.75;1",keySplines:"0 0.5 0.5 1;0 0.5 0.5 1;0 0.5 0.5 1;0 0.5 0.5 1",calcMode:"spline",dur:"2s",repeatCount:"indefinite",begin:"0s"}),e.createElement("animate",{attributeName:"cx",values:"16;16;16;50;84",keyTimes:"0;0.25;0.5;0.75;1",keySplines:"0 0.5 0.5 1;0 0.5 0.5 1;0 0.5 0.5 1;0 0.5 0.5 1",calcMode:"spline",dur:"2s",repeatCount:"indefinite",begin:"0s"}))))};Ir.propTypes={width:l.object,height:l.object,iconColor:l.object};var Ar={"./collection-filter.m.css":{navigator:"collection-filter-m_navigator__3MDUp",wrapper:"collection-filter-m_wrapper__3Nx_h","collection-filter":"collection-filter-m_collection-filter__3At2n",divider:"collection-filter-m_divider__3Nm-k",dark:"collection-filter-m_dark__2LMGY",light:"collection-filter-m_light__1wyGa","subCollection-wrapper":"collection-filter-m_subCollection-wrapper__14azF","subCollection-stories":"collection-filter-m_subCollection-stories__2RDkI",cards:"collection-filter-m_cards__1Co_7","last-column":"collection-filter-m_last-column__UP63_",card:"collection-filter-m_card__2IOTX","card-wrapper":"collection-filter-m_card-wrapper__qzzWB","child-collections":"collection-filter-m_child-collections__2-FiJ","child-collection":"collection-filter-m_child-collection__1YB-F","child-collection-wrapper":"collection-filter-m_child-collection-wrapper__2ezSh","open-subchild":"collection-filter-m_open-subchild__koie_",fadein:"collection-filter-m_fadein__Dxs8G",fadeIn:"collection-filter-m_fadeIn__1AtGp"}};function Mr(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,o)}return r}function Rr(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Mr(Object(r),!0).forEach((function(t){y(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Mr(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var Pr,Hr=function(t){var r=t.collection,l=t.config,c=void 0===l?{}:l,s=c.collectionNameBorderColor,d=void 0===s?"":s,h=c.borderColor,f=void 0===h?"":h,p=c.theme,v=void 0===p?"":p,_=c.slotConfig,w=void 0===_?[]:_,x=c.border,k=void 0===x?"":x,C=c.collectionNameTemplate,z=void 0===C?"":C,j=c.footerSlotConfig,L=void 0===j?{}:j,O=c.footerButton,S=void 0===O?"":O,I=et(w,[0],{}),A=I.type,M=void 0===A?"story":A,R=I.component,P=L.footerSlot,H=E(o([]),2),B=H[0],F=H[1],D=E(o({}),2),W=D[0],q=D[1],G=E(o(0),2),U=G[0],Z=G[1],Y=E(o(!0),2),J=Y[0],V=Y[1],$=et(r,["items"],[]).filter((function(e){return"collection"===e.type}));if($.length<1)return null;var K=$.map((function(e){return e.id})),X=function(e,t){q((function(r){return Rr(Rr({},r),{},y({},e,t))}))};function Q(){return ee.apply(this,arguments)}function ee(){return(ee=b(T.mark((function e(){var t,r,o,n,i=arguments;return T.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=i.length>0&&void 0!==i[0]?i[0]:K[0],V(!0),e.prev=2,r={},t in W){e.next=11;break}return e.next=7,a.get("/api/v1/collections/".concat(t));case 7:o=e.sent,r=o.data,e.next=12;break;case 11:r=W[t];case 12:X(t,r),n=g(r),V(!1),F(n),e.next=21;break;case 18:e.prev=18,e.t0=e.catch(2),console.error("API call failed",e.t0);case 21:case"end":return e.stop()}}),e,null,[[2,18]])})))).apply(this,arguments)}n((function(e){Q(e)}),[]);var te=m(),re=u((function(e){return et(e,["qt","config"],{})})),oe=Gt($[U],re),ne=B.slice(0,9),ie=Ft(v),ae=P?P():null;return e.createElement("div",{className:"full-width-with-padding arrow-component","data-test-id":"collection-filter",style:{backgroundColor:v,color:ie}},e.createElement("div",{className:"collection-filter-m_wrapper__3Nx_h"},e.createElement(Yt,{collection:r,collectionNameTemplate:z,collectionNameBorderColor:d}),e.createElement("div",{className:"collection-filter-m_collection-filter__3At2n"},e.createElement("div",{className:"collection-filter-m_child-collections__2-FiJ"},$.map((function(t,r){return e.createElement("div",{key:r,className:N("child-collection-wrapper ".concat(r===U?"open-subchild":""),Ar)},e.createElement("div",{onClick:function(e){return function(e,t,r){e.stopPropagation(),Q(r),Z(U===t?0:t)}(e,r,t.id)},className:N("child-collection ".concat(ie),Ar)},t.name),e.createElement("span",{className:N("navigator ".concat(ie),Ar)}))}))),e.createElement("span",{className:N("divider ".concat(ie),Ar)}),e.createElement("div",{className:"collection-filter-m_subCollection-wrapper__14azF"},J?e.createElement(Ir,null):e.createElement("div",{className:"collection-filter-m_subCollection-stories__2RDkI"},e.createElement("div",{className:"collection-filter-m_cards__1Co_7"},ne.slice(0,1).map((function(t,r){return e.createElement("div",{className:"collection-filter-m_card__2IOTX",key:r},e.createElement(Nr,{story:t,border:k,theme:v,config:c},e.createElement(kr,{story:t,aspectRatio:[[16,9]]}),e.createElement(Or,{story:t,border:k,borderColor:f,config:c})))})),ne.slice(1,4).map((function(t,r){return e.createElement(i,{key:r},function(t,r){return e.createElement("div",{className:"collection-filter-m_card__2IOTX",key:r},e.createElement(Nr,{story:t,isHorizontalMobile:!0,theme:v,border:k,borderColor:f,config:c},e.createElement(kr,{story:t,isHorizontalMobile:!0}),e.createElement(Or,{story:t,border:k,borderColor:f,config:c})))}(t,r))}))),e.createElement("div",{className:"collection-filter-m_last-column__UP63_"},ne.slice(4,6).map((function(t,r){return e.createElement(i,{key:r},function(t,r){return e.createElement("div",{className:"collection-filter-m_card__2IOTX",key:r},e.createElement(Nr,{story:t,isHorizontal:!0,theme:v,border:k,borderColor:f,config:c},e.createElement(kr,{story:t,isHorizontal:!0,aspectRatio:[[1,1]]}),e.createElement(Or,{story:t,isHorizontal:!0,border:k,borderColor:f,config:c})))}(t,r))})),function(e,t,r,o){switch(e){case"story":return r();case"collection":return o();default:return t?t():null}}(M,R,(function(){return function(t){return e.createElement("div",null,t.slice(6,9).map((function(t,r){return e.createElement("div",{className:"collection-filter-m_card__2IOTX",key:r},e.createElement(Nr,{story:t,isHorizontal:!0,theme:v,border:k,borderColor:f,config:c},e.createElement(kr,{story:t,isHorizontal:!0,aspectRatio:[[1,1]]}),e.createElement(Or,{story:t,border:k,borderColor:f,config:c})))})))}(ne)})))))),e.createElement(Kt,{collection:$[U],template:S,config:c,navigate:function(){return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";global.app.navigateToPage(e,t)}(te,oe)},qtConfig:re}),ae))},Br=(Pr=Hr,function(t){return e.createElement(tt.Provider,{value:t.config},e.createElement(Pr,t))});Hr.propTypes={collection:l.object.isRequired,config:l.shape({borderColor:l.string,theme:l.string,border:l.string,slotConfig:l.array,collectionNameTemplate:l.string,footerSlotConfig:l.object,footerButton:l.string,collectionNameBorderColor:l.string})},Hr.defaultProps={theme:"#ffffff",slotConfig:"story",border:""};export{Br as default};
@@ -0,0 +1 @@
1
+ import t,{useContext as e,createContext as r}from"react";import{connect as n}from"react-redux";import o,{PropTypes as i}from"prop-types";import{Link as a}from"@quintype/components";import"react-timeago";var c="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function l(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function u(t){var e={exports:{}};return t(e,e.exports),e.exports}var s=u((function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r={attributeNames:{styleName:"className"},generateScopedName:"[path]___[name]__[local]___[hash:base64:5]",handleMissingStyleName:"throw"};e.default=r})),f=l(u((function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r,n=(r=s)&&r.__esModule?r:{default:r};var o=function(t,e){if("throw"===e)throw new Error(t);return"warn"===e&&console.warn(t),null};e.default=function(t,e,r){var i=Object.keys(e),a=r||{},c=a.handleMissingStyleName,l=void 0===c?n.default.handleMissingStyleName:c,u=a.autoResolveMultipleImports,s=void 0===u?n.default.autoResolveMultipleImports:u;return t?t.split(" ").filter((function(t){return t})).map((function(t){if(function(t){return-1!==t.indexOf(".")}(t))return function(t,e,r){var i=t.split("."),a=i[0],c=i[1],l=r||n.default.handleMissingStyleName;return c?e[a]?e[a][c]?e[a][c]:o("CSS module does not exist: "+c,l):o("CSS module import does not exist: "+a,l):o("Invalid style name: "+t,l)}(t,e,l);if(0===i.length)throw new Error("Cannot use styleName attribute for style name '"+t+"' without importing at least one stylesheet.");if(i.length>1){if(!s)throw new Error("Cannot use anonymous style name '"+t+"' with more than one stylesheet import without setting 'autoResolveMultipleImports' to true.");return function(t,e,r){var i=r||n.default.handleMissingStyleName,a=Object.keys(e).map((function(r){return e[r][t]&&r})).filter((function(t){return t}));if(a.length>1)throw new Error('Cannot resolve styleName "'+t+'" because it is present in multiple imports:\n\n\t'+a.join("\n\t")+'\n\nYou can resolve this by using a named import, e.g:\n\n\timport foo from "'+a[0]+'";\n\t<div styleName="foo.'+t+'" />\n\n');return 0===a.length?o("Could not resolve the styleName '"+t+"'.",i):e[a[0]][t]}(t,e,l)}var r=e[i[0]];return r[t]?r[t]:o("Could not resolve the styleName '"+t+"'.",l)})).filter((function(t){return t})).join(" "):""}}))),h=r(),p=Array.isArray,d="object"==typeof c&&c&&c.Object===Object&&c,v="object"==typeof self&&self&&self.Object===Object&&self,m=d||v||Function("return this")(),y=m.Symbol,g=Object.prototype,_=g.hasOwnProperty,b=g.toString,w=y?y.toStringTag:void 0;var x=function(t){var e=_.call(t,w),r=t[w];try{t[w]=void 0;var n=!0}catch(t){}var o=b.call(t);return n&&(e?t[w]=r:delete t[w]),o},j=Object.prototype.toString;var L=function(t){return j.call(t)},O=y?y.toStringTag:void 0;var E=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":O&&O in Object(t)?x(t):L(t)};var N=function(t){return null!=t&&"object"==typeof t};var S=function(t){return"symbol"==typeof t||N(t)&&"[object Symbol]"==E(t)},F=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,P=/^\w*$/;var T=function(t,e){if(p(t))return!1;var r=typeof t;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=t&&!S(t))||(P.test(t)||!F.test(t)||null!=e&&t in Object(e))};var k=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)};var z,I=function(t){if(!k(t))return!1;var e=E(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e},M=m["__core-js_shared__"],B=(z=/[^.]+$/.exec(M&&M.keys&&M.keys.IE_PROTO||""))?"Symbol(src)_1."+z:"";var C=function(t){return!!B&&B in t},A=Function.prototype.toString;var $=function(t){if(null!=t){try{return A.call(t)}catch(t){}try{return t+""}catch(t){}}return""},G=/^\[object .+?Constructor\]$/,R=Function.prototype,Y=Object.prototype,D=R.toString,q=Y.hasOwnProperty,V=RegExp("^"+D.call(q).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var H=function(t){return!(!k(t)||C(t))&&(I(t)?V:G).test($(t))};var J=function(t,e){return null==t?void 0:t[e]};var K=function(t,e){var r=J(t,e);return H(r)?r:void 0},Q=K(Object,"create");var U=function(){this.__data__=Q?Q(null):{},this.size=0};var W=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},X=Object.prototype.hasOwnProperty;var Z=function(t){var e=this.__data__;if(Q){var r=e[t];return"__lodash_hash_undefined__"===r?void 0:r}return X.call(e,t)?e[t]:void 0},tt=Object.prototype.hasOwnProperty;var et=function(t){var e=this.__data__;return Q?void 0!==e[t]:tt.call(e,t)};var rt=function(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=Q&&void 0===e?"__lodash_hash_undefined__":e,this};function nt(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}nt.prototype.clear=U,nt.prototype.delete=W,nt.prototype.get=Z,nt.prototype.has=et,nt.prototype.set=rt;var ot=nt;var it=function(){this.__data__=[],this.size=0};var at=function(t,e){return t===e||t!=t&&e!=e};var ct=function(t,e){for(var r=t.length;r--;)if(at(t[r][0],e))return r;return-1},lt=Array.prototype.splice;var ut=function(t){var e=this.__data__,r=ct(e,t);return!(r<0)&&(r==e.length-1?e.pop():lt.call(e,r,1),--this.size,!0)};var st=function(t){var e=this.__data__,r=ct(e,t);return r<0?void 0:e[r][1]};var ft=function(t){return ct(this.__data__,t)>-1};var ht=function(t,e){var r=this.__data__,n=ct(r,t);return n<0?(++this.size,r.push([t,e])):r[n][1]=e,this};function pt(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}pt.prototype.clear=it,pt.prototype.delete=ut,pt.prototype.get=st,pt.prototype.has=ft,pt.prototype.set=ht;var dt=pt,vt=K(m,"Map");var mt=function(){this.size=0,this.__data__={hash:new ot,map:new(vt||dt),string:new ot}};var yt=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t};var gt=function(t,e){var r=t.__data__;return yt(e)?r["string"==typeof e?"string":"hash"]:r.map};var _t=function(t){var e=gt(this,t).delete(t);return this.size-=e?1:0,e};var bt=function(t){return gt(this,t).get(t)};var wt=function(t){return gt(this,t).has(t)};var xt=function(t,e){var r=gt(this,t),n=r.size;return r.set(t,e),this.size+=r.size==n?0:1,this};function jt(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}jt.prototype.clear=mt,jt.prototype.delete=_t,jt.prototype.get=bt,jt.prototype.has=wt,jt.prototype.set=xt;var Lt=jt;function Ot(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var r=function(){var n=arguments,o=e?e.apply(this,n):n[0],i=r.cache;if(i.has(o))return i.get(o);var a=t.apply(this,n);return r.cache=i.set(o,a)||i,a};return r.cache=new(Ot.Cache||Lt),r}Ot.Cache=Lt;var Et=Ot;var Nt=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,St=/\\(\\)?/g,Ft=function(t){var e=Et(t,(function(t){return 500===r.size&&r.clear(),t})),r=e.cache;return e}((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(Nt,(function(t,r,n,o){e.push(n?o.replace(St,"$1"):r||t)})),e}));var Pt=function(t,e){for(var r=-1,n=null==t?0:t.length,o=Array(n);++r<n;)o[r]=e(t[r],r,t);return o},Tt=y?y.prototype:void 0,kt=Tt?Tt.toString:void 0;var zt=function t(e){if("string"==typeof e)return e;if(p(e))return Pt(e,t)+"";if(S(e))return kt?kt.call(e):"";var r=e+"";return"0"==r&&1/e==-Infinity?"-0":r};var It=function(t){return null==t?"":zt(t)};var Mt=function(t,e){return p(t)?t:T(t,e)?[t]:Ft(It(t))};var Bt=function(t){if("string"==typeof t||S(t))return t;var e=t+"";return"0"==e&&1/t==-Infinity?"-0":e};var Ct=function(t,e){for(var r=0,n=(e=Mt(e,t)).length;null!=t&&r<n;)t=t[Bt(e[r++])];return r&&r==n?t:void 0};var At=function(t,e,r){var n=null==t?void 0:Ct(t,e);return void 0===n?r:n};u((function(t){var e=function(t){var e,r=Object.prototype,n=r.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function u(t,e,r,n){var o=e&&e.prototype instanceof m?e:m,i=Object.create(o.prototype),a=new S(n||[]);return i._invoke=function(t,e,r){var n=f;return function(o,i){if(n===p)throw new Error("Generator is already running");if(n===d){if("throw"===o)throw i;return P()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var c=O(a,r);if(c){if(c===v)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(n===f)throw n=d,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n=p;var l=s(t,e,r);if("normal"===l.type){if(n=r.done?d:h,l.arg===v)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(n=d,r.method="throw",r.arg=l.arg)}}}(t,r,a),i}function s(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=u;var f="suspendedStart",h="suspendedYield",p="executing",d="completed",v={};function m(){}function y(){}function g(){}var _={};l(_,i,(function(){return this}));var b=Object.getPrototypeOf,w=b&&b(b(F([])));w&&w!==r&&n.call(w,i)&&(_=w);var x=g.prototype=m.prototype=Object.create(_);function j(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function L(t,e){function r(o,i,a,c){var l=s(t[o],t,i);if("throw"!==l.type){var u=l.arg,f=u.value;return f&&"object"==typeof f&&n.call(f,"__await")?e.resolve(f.__await).then((function(t){r("next",t,a,c)}),(function(t){r("throw",t,a,c)})):e.resolve(f).then((function(t){u.value=t,a(u)}),(function(t){return r("throw",t,a,c)}))}c(l.arg)}var o;this._invoke=function(t,n){function i(){return new e((function(e,o){r(t,n,e,o)}))}return o=o?o.then(i,i):i()}}function O(t,r){var n=t.iterator[r.method];if(n===e){if(r.delegate=null,"throw"===r.method){if(t.iterator.return&&(r.method="return",r.arg=e,O(t,r),"throw"===r.method))return v;r.method="throw",r.arg=new TypeError("The iterator does not provide a 'throw' method")}return v}var o=s(n,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,v;var i=o.arg;return i?i.done?(r[t.resultName]=i.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,v):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,v)}function E(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function N(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function S(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(E,this),this.reset(!0)}function F(t){if(t){var r=t[i];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,a=function r(){for(;++o<t.length;)if(n.call(t,o))return r.value=t[o],r.done=!1,r;return r.value=e,r.done=!0,r};return a.next=a}}return{next:P}}function P(){return{value:e,done:!0}}return y.prototype=g,l(x,"constructor",g),l(g,"constructor",y),y.displayName=l(g,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===y||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,g):(t.__proto__=g,l(t,c,"GeneratorFunction")),t.prototype=Object.create(x),t},t.awrap=function(t){return{__await:t}},j(L.prototype),l(L.prototype,a,(function(){return this})),t.AsyncIterator=L,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new L(u(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},j(x),l(x,c,"Generator"),l(x,i,(function(){return this})),l(x,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=[];for(var r in t)e.push(r);return e.reverse(),function r(){for(;e.length;){var n=e.pop();if(n in t)return r.value=n,r.done=!1,r}return r.done=!0,r}},t.values=F,S.prototype={constructor:S,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(N),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function o(n,o){return c.type="throw",c.arg=t,r.next=n,o&&(r.method="next",r.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var l=n.call(a,"catchLoc"),u=n.call(a,"finallyLoc");if(l&&u){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,v):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),v},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),N(r),v}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;N(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:F(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),v}},t}(t.exports);try{regeneratorRuntime=e}catch(t){"object"==typeof globalThis?globalThis.regeneratorRuntime=e:Function("r","regeneratorRuntime = r")(e)}}));var $t=function(t){var e=function(t){return{r:parseInt(t.slice(1,3),16),g:parseInt(t.slice(3,5),16),b:parseInt(t.slice(5,7),16)}}(t);return.299*e.r+.587*e.g+.114*e.b},Gt=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"rgba(255, 255, 255, 0)",e=t.match(/^rgba?[\s+]?\([\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?/i);return e&&4===e.length?"#"+("0"+parseInt(e[1],10).toString(16)).slice(-2)+("0"+parseInt(e[2],10).toString(16)).slice(-2)+("0"+parseInt(e[3],10).toString(16)).slice(-2):t},Rt={mobile:767,tablet:1024};o.shape({"sketches-host":o.string,"cdn-name":o.string,"cdn-image":o.string}),o.shape({headline:o.string,"last-published-at":o.number,subheadline:o.string});var Yt={"./collection-name.m.css":{collection:"collection-name-m_collection__JD6sx","collection-borderLeft":"collection-name-m_collection-borderLeft__3Dznk","border-left":"collection-name-m_border-left__3_pYw","collection-borderBottomFull":"collection-name-m_collection-borderBottomFull__Dkq3K","collection-borderBottom":"collection-name-m_collection-borderBottom__2rdQM","collection-crossLine":"collection-name-m_collection-crossLine__1sIpN","border-bottom":"collection-name-m_border-bottom__1MnlV",dark:"collection-name-m_dark__nMe5H",light:"collection-name-m_light__1vFDN"}},Dt=function(r){var n,o=r.collectionNameBorderColor,i=void 0===o?"":o,c=r.collection,l=r.config,u=r.collectionNameTemplate,s=r.headerLevel,p=r.customCollectionName,d=void 0===p?"":p,v=r.navigate,m=void 0===v||v,y=e(h)||{},g=At(y,["showRowTitle"],!0),_=["borderLeft","borderBottom","crossLine","borderBottomFull"].includes(u)?" collection-".concat(u):"",b=m&&c&&function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=e.magazineSlug,n=void 0===r?"":r,o=e.isArchivePage;if(void 0!==o&&o)return"/magazine/archive/".concat(n);if(n)return"/magazine/".concat(n,"/").concat(t.slug);if("section"===t.template){var i=At(t,["metadata","section","0","id"],""),a=e.sections,c=a&&a.find((function(t){return t.id===i}));return c?c["section-url"]:"/"}return"/collection/".concat(t.slug)}(c,l)||"",w=d||c.name||"",x=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"rgb(255,255,255)",e=/^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/.test(t)?t:Gt(t);return $t(e)<155?"light":"dark"}(y.theme),j="h"+s,L=Gt(i),O=_.includes("collection-borderBottomFull")?"4px solid ".concat(L):"",E=!!(n=At(Rt,"mobile"))&&At(global,"document.documentElement.clientWidth")<=n;return t.createElement(t.Fragment,null,g&&w&&t.createElement("div",{style:{borderBottom:O},"data-test-id":"collection-name",className:"arr--collection-name arrow-component "+f("collection ".concat(x," ").concat(_),Yt)},_.includes("collection-borderLeft")&&t.createElement("span",{className:"arr-collection-name-border-left collection-name-m_border-left__3_pYw",style:{color:L,fontSize:function(){if(E)switch(s){case"1":return"32px";case"2":return"24px";case"3":return"20px";case"4":return"18px";case"5":case"6":return"16px";default:return"20px"}switch(s){case"1":return"40px";case"2":return"32px";case"3":return"24px";case"4":return"20px";case"5":return"18px";case"6":return"16px";default:return"24px"}}()}}),b&&!b.includes(void 0)?t.createElement(a,{href:b,"aria-label":"collection-name"},t.createElement(j,null,w)):t.createElement(j,null,w),_.includes("collection-borderBottom")&&!_.includes("collection-borderBottomFull")?t.createElement("div",{className:"collection-name-m_border-bottom__1MnlV",style:{borderBottom:"4px solid ".concat(L)}}):""))};Dt.propTypes={collectionNameBorderColor:i.string,collection:i.object,config:i.object,collectionNameTemplate:i.oneOf(["","borderLeft","borderBottom","crossLine","borderBottomFull"]),headerLevel:i.string,customCollectionName:i.string,navigate:i.bool},Dt.defaultProps={collectionNameTemplate:"",headerLevel:"3"};var qt=n((function(t){return{config:At(t,["qt","config"],{})}}))(Dt);export{qt as CollectionName,Dt as CollectionNameBase};
@@ -0,0 +1 @@
1
+ import e,{createContext as t,useContext as r,Fragment as o}from"react";import n,{PropTypes as a}from"prop-types";import{Link as i,ResponsiveImage as l,ResponsiveHeroImage as c,LinkBase as s,collectionToStories as m}from"@quintype/components";import u from"react-timeago";import{connect as d,useSelector as h,useDispatch as f}from"react-redux";var p="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function g(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function _(e){var t={exports:{}};return e(t,t.exports),t.exports}var v=_((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={attributeNames:{styleName:"className"},generateScopedName:"[path]___[name]__[local]___[hash:base64:5]",handleMissingStyleName:"throw"};t.default=r})),y=g(_((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,o=(r=v)&&r.__esModule?r:{default:r};var n=function(e,t){if("throw"===t)throw new Error(e);return"warn"===t&&console.warn(e),null};t.default=function(e,t,r){var a=Object.keys(t),i=r||{},l=i.handleMissingStyleName,c=void 0===l?o.default.handleMissingStyleName:l,s=i.autoResolveMultipleImports,m=void 0===s?o.default.autoResolveMultipleImports:s;return e?e.split(" ").filter((function(e){return e})).map((function(e){if(function(e){return-1!==e.indexOf(".")}(e))return function(e,t,r){var a=e.split("."),i=a[0],l=a[1],c=r||o.default.handleMissingStyleName;return l?t[i]?t[i][l]?t[i][l]:n("CSS module does not exist: "+l,c):n("CSS module import does not exist: "+i,c):n("Invalid style name: "+e,c)}(e,t,c);if(0===a.length)throw new Error("Cannot use styleName attribute for style name '"+e+"' without importing at least one stylesheet.");if(a.length>1){if(!m)throw new Error("Cannot use anonymous style name '"+e+"' with more than one stylesheet import without setting 'autoResolveMultipleImports' to true.");return function(e,t,r){var a=r||o.default.handleMissingStyleName,i=Object.keys(t).map((function(r){return t[r][e]&&r})).filter((function(e){return e}));if(i.length>1)throw new Error('Cannot resolve styleName "'+e+'" because it is present in multiple imports:\n\n\t'+i.join("\n\t")+'\n\nYou can resolve this by using a named import, e.g:\n\n\timport foo from "'+i[0]+'";\n\t<div styleName="foo.'+e+'" />\n\n');return 0===i.length?n("Could not resolve the styleName '"+e+"'.",a):t[i[0]][e]}(e,t,c)}var r=t[a[0]];return r[e]?r[e]:n("Could not resolve the styleName '"+e+"'.",c)})).filter((function(e){return e})).join(" "):""}}))),b=Array.isArray,w="object"==typeof p&&p&&p.Object===Object&&p,E="object"==typeof self&&self&&self.Object===Object&&self,x=w||E||Function("return this")(),N=x.Symbol,k=Object.prototype,L=k.hasOwnProperty,T=k.toString,C=N?N.toStringTag:void 0;var z=function(e){var t=L.call(e,C),r=e[C];try{e[C]=void 0;var o=!0}catch(e){}var n=T.call(e);return o&&(t?e[C]=r:delete e[C]),n},I=Object.prototype.toString;var j=function(e){return I.call(e)},S=N?N.toStringTag:void 0;var A=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":S&&S in Object(e)?z(e):j(e)};var O=function(e){return null!=e&&"object"==typeof e};var R=function(e){return"symbol"==typeof e||O(e)&&"[object Symbol]"==A(e)},M=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,P=/^\w*$/;var B=function(e,t){if(b(e))return!1;var r=typeof e;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=e&&!R(e))||(P.test(e)||!M.test(e)||null!=t&&e in Object(t))};var H=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)};var F,D=function(e){if(!H(e))return!1;var t=A(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},W=x["__core-js_shared__"],q=(F=/[^.]+$/.exec(W&&W.keys&&W.keys.IE_PROTO||""))?"Symbol(src)_1."+F:"";var G=function(e){return!!q&&q in e},U=Function.prototype.toString;var Q=function(e){if(null!=e){try{return U.call(e)}catch(e){}try{return e+""}catch(e){}}return""},Z=/^\[object .+?Constructor\]$/,V=Function.prototype,Y=Object.prototype,J=V.toString,K=Y.hasOwnProperty,$=RegExp("^"+J.call(K).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var X=function(e){return!(!H(e)||G(e))&&(D(e)?$:Z).test(Q(e))};var ee=function(e,t){return null==e?void 0:e[t]};var te=function(e,t){var r=ee(e,t);return X(r)?r:void 0},re=te(Object,"create");var oe=function(){this.__data__=re?re(null):{},this.size=0};var ne=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},ae=Object.prototype.hasOwnProperty;var ie=function(e){var t=this.__data__;if(re){var r=t[e];return"__lodash_hash_undefined__"===r?void 0:r}return ae.call(t,e)?t[e]:void 0},le=Object.prototype.hasOwnProperty;var ce=function(e){var t=this.__data__;return re?void 0!==t[e]:le.call(t,e)};var se=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=re&&void 0===t?"__lodash_hash_undefined__":t,this};function me(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var o=e[t];this.set(o[0],o[1])}}me.prototype.clear=oe,me.prototype.delete=ne,me.prototype.get=ie,me.prototype.has=ce,me.prototype.set=se;var ue=me;var de=function(){this.__data__=[],this.size=0};var he=function(e,t){return e===t||e!=e&&t!=t};var fe=function(e,t){for(var r=e.length;r--;)if(he(e[r][0],t))return r;return-1},pe=Array.prototype.splice;var ge=function(e){var t=this.__data__,r=fe(t,e);return!(r<0)&&(r==t.length-1?t.pop():pe.call(t,r,1),--this.size,!0)};var _e=function(e){var t=this.__data__,r=fe(t,e);return r<0?void 0:t[r][1]};var ve=function(e){return fe(this.__data__,e)>-1};var ye=function(e,t){var r=this.__data__,o=fe(r,e);return o<0?(++this.size,r.push([e,t])):r[o][1]=t,this};function be(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var o=e[t];this.set(o[0],o[1])}}be.prototype.clear=de,be.prototype.delete=ge,be.prototype.get=_e,be.prototype.has=ve,be.prototype.set=ye;var we=be,Ee=te(x,"Map");var xe=function(){this.size=0,this.__data__={hash:new ue,map:new(Ee||we),string:new ue}};var Ne=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e};var ke=function(e,t){var r=e.__data__;return Ne(t)?r["string"==typeof t?"string":"hash"]:r.map};var Le=function(e){var t=ke(this,e).delete(e);return this.size-=t?1:0,t};var Te=function(e){return ke(this,e).get(e)};var Ce=function(e){return ke(this,e).has(e)};var ze=function(e,t){var r=ke(this,e),o=r.size;return r.set(e,t),this.size+=r.size==o?0:1,this};function Ie(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var o=e[t];this.set(o[0],o[1])}}Ie.prototype.clear=xe,Ie.prototype.delete=Le,Ie.prototype.get=Te,Ie.prototype.has=Ce,Ie.prototype.set=ze;var je=Ie;function Se(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var r=function(){var o=arguments,n=t?t.apply(this,o):o[0],a=r.cache;if(a.has(n))return a.get(n);var i=e.apply(this,o);return r.cache=a.set(n,i)||a,i};return r.cache=new(Se.Cache||je),r}Se.Cache=je;var Ae=Se;var Oe=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Re=/\\(\\)?/g,Me=function(e){var t=Ae(e,(function(e){return 500===r.size&&r.clear(),e})),r=t.cache;return t}((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(Oe,(function(e,r,o,n){t.push(o?n.replace(Re,"$1"):r||e)})),t}));var Pe=function(e,t){for(var r=-1,o=null==e?0:e.length,n=Array(o);++r<o;)n[r]=t(e[r],r,e);return n},Be=N?N.prototype:void 0,He=Be?Be.toString:void 0;var Fe=function e(t){if("string"==typeof t)return t;if(b(t))return Pe(t,e)+"";if(R(t))return He?He.call(t):"";var r=t+"";return"0"==r&&1/t==-Infinity?"-0":r};var De=function(e){return null==e?"":Fe(e)};var We=function(e,t){return b(e)?e:B(e,t)?[e]:Me(De(e))};var qe=function(e){if("string"==typeof e||R(e))return e;var t=e+"";return"0"==t&&1/e==-Infinity?"-0":t};var Ge=function(e,t){for(var r=0,o=(t=We(t,e)).length;null!=e&&r<o;)e=e[qe(t[r++])];return r&&r==o?e:void 0};var Ue=function(e,t,r){var o=null==e?void 0:Ge(e,t);return void 0===o?r:o},Qe=t(),Ze=function(){return r(Qe)};function Ve(e){return(Ve="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})(e)}_((function(e){var t=function(e){var t,r=Object.prototype,o=r.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},a=n.iterator||"@@iterator",i=n.asyncIterator||"@@asyncIterator",l=n.toStringTag||"@@toStringTag";function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,r){return e[t]=r}}function s(e,t,r,o){var n=t&&t.prototype instanceof g?t:g,a=Object.create(n.prototype),i=new C(o||[]);return a._invoke=function(e,t,r){var o=u;return function(n,a){if(o===h)throw new Error("Generator is already running");if(o===f){if("throw"===n)throw a;return I()}for(r.method=n,r.arg=a;;){var i=r.delegate;if(i){var l=k(i,r);if(l){if(l===p)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===u)throw o=f,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=h;var c=m(e,t,r);if("normal"===c.type){if(o=r.done?f:d,c.arg===p)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(o=f,r.method="throw",r.arg=c.arg)}}}(e,r,i),a}function m(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=s;var u="suspendedStart",d="suspendedYield",h="executing",f="completed",p={};function g(){}function _(){}function v(){}var y={};c(y,a,(function(){return this}));var b=Object.getPrototypeOf,w=b&&b(b(z([])));w&&w!==r&&o.call(w,a)&&(y=w);var E=v.prototype=g.prototype=Object.create(y);function x(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function N(e,t){function r(n,a,i,l){var c=m(e[n],e,a);if("throw"!==c.type){var s=c.arg,u=s.value;return u&&"object"==typeof u&&o.call(u,"__await")?t.resolve(u.__await).then((function(e){r("next",e,i,l)}),(function(e){r("throw",e,i,l)})):t.resolve(u).then((function(e){s.value=e,i(s)}),(function(e){return r("throw",e,i,l)}))}l(c.arg)}var n;this._invoke=function(e,o){function a(){return new t((function(t,n){r(e,o,t,n)}))}return n=n?n.then(a,a):a()}}function k(e,r){var o=e.iterator[r.method];if(o===t){if(r.delegate=null,"throw"===r.method){if(e.iterator.return&&(r.method="return",r.arg=t,k(e,r),"throw"===r.method))return p;r.method="throw",r.arg=new TypeError("The iterator does not provide a 'throw' method")}return p}var n=m(o,e.iterator,r.arg);if("throw"===n.type)return r.method="throw",r.arg=n.arg,r.delegate=null,p;var a=n.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,p):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,p)}function L(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function T(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function C(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(L,this),this.reset(!0)}function z(e){if(e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,i=function r(){for(;++n<e.length;)if(o.call(e,n))return r.value=e[n],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}return{next:I}}function I(){return{value:t,done:!0}}return _.prototype=v,c(E,"constructor",v),c(v,"constructor",_),_.displayName=c(v,l,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===_||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,c(e,l,"GeneratorFunction")),e.prototype=Object.create(E),e},e.awrap=function(e){return{__await:e}},x(N.prototype),c(N.prototype,i,(function(){return this})),e.AsyncIterator=N,e.async=function(t,r,o,n,a){void 0===a&&(a=Promise);var i=new N(s(t,r,o,n),a);return e.isGeneratorFunction(r)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},x(E),c(E,l,"Generator"),c(E,a,(function(){return this})),c(E,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var o=t.pop();if(o in e)return r.value=o,r.done=!1,r}return r.done=!0,r}},e.values=z,C.prototype={constructor:C,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(T),!e)for(var r in this)"t"===r.charAt(0)&&o.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function n(o,n){return l.type="throw",l.arg=e,r.next=o,n&&(r.method="next",r.arg=t),!!n}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],l=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=o.call(i,"catchLoc"),s=o.call(i,"finallyLoc");if(c&&s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&o.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var a=n;break}}a&&("break"===e||"continue"===e)&&a.tryLoc<=t&&t<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=e,i.arg=t,a?(this.method="next",this.next=a.finallyLoc,p):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),p},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),T(r),p}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var o=r.completion;if("throw"===o.type){var n=o.arg;T(r)}return n}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,o){return this.delegate={iterator:z(e),resultName:r,nextLoc:o},"next"===this.method&&(this.arg=t),p}},e}(e.exports);try{regeneratorRuntime=t}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=t:Function("r","regeneratorRuntime = r")(t)}}));var Ye=function(e,t,r,o){var n=-1,a=null==e?0:e.length;for(o&&a&&(r=e[++n]);++n<a;)r=t(r,e[n],n,e);return r};var Je=function(e){return function(t){return null==e?void 0:e[t]}}({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"}),Ke=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,$e=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]","g");var Xe=function(e){return(e=De(e))&&e.replace(Ke,Je).replace($e,"")},et=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;var tt=function(e){return e.match(et)||[]},rt=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;var ot=function(e){return rt.test(e)},nt="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",at="["+nt+"]",it="\\d+",lt="[\\u2700-\\u27bf]",ct="[a-z\\xdf-\\xf6\\xf8-\\xff]",st="[^\\ud800-\\udfff"+nt+it+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",mt="(?:\\ud83c[\\udde6-\\uddff]){2}",ut="[\\ud800-\\udbff][\\udc00-\\udfff]",dt="[A-Z\\xc0-\\xd6\\xd8-\\xde]",ht="(?:"+ct+"|"+st+")",ft="(?:"+dt+"|"+st+")",pt="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?",gt="[\\ufe0e\\ufe0f]?"+pt+("(?:\\u200d(?:"+["[^\\ud800-\\udfff]",mt,ut].join("|")+")[\\ufe0e\\ufe0f]?"+pt+")*"),_t="(?:"+[lt,mt,ut].join("|")+")"+gt,vt=RegExp([dt+"?"+ct+"+(?:['’](?:d|ll|m|re|s|t|ve))?(?="+[at,dt,"$"].join("|")+")",ft+"+(?:['’](?:D|LL|M|RE|S|T|VE))?(?="+[at,dt+ht,"$"].join("|")+")",dt+"?"+ht+"+(?:['’](?:d|ll|m|re|s|t|ve))?",dt+"+(?:['’](?:D|LL|M|RE|S|T|VE))?","\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",it,_t].join("|"),"g");var yt=function(e){return e.match(vt)||[]};var bt=function(e,t,r){return e=De(e),void 0===(t=r?void 0:t)?ot(e)?yt(e):tt(e):e.match(t)||[]},wt=RegExp("['’]","g");var Et=function(e){return function(t){return Ye(bt(Xe(t).replace(wt,"")),e,"")}},xt=Et((function(e,t,r){return e+(r?" ":"")+t.toUpperCase()})),Nt=Et((function(e,t,r){return e+(r?" ":"")+t.toLowerCase()}));function kt(e,t,r,o,n){var a,i=Ue(n,["localizedPublishTime",r])||r;return"hour"===t&&e>23||-1!==["day","week","month","year"].indexOf(t)?function(e,t,r,o){var n=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},a=n.showTime,i=void 0!==a&&a,l=n.isTimeFirst,c=void 0!==l&&l,s=n.isUpperCase,m=void 0!==s&&s,u=n.disableMeridiem,d=void 0!==u&&u,h=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],f=new Date(o),p=f.getDate().toString().padStart(2,0),g=h[f.getMonth()],_=g;m&&(_=xt(g));var v,y=f.getFullYear(),b=n.localizedMeridiem,w=n.localizedMonths,E=n.direction,x=void 0===E?"ltr":E,N=Lt(o),k=N;if(w&&(_=Ue(w,[Nt(g)])||g),b){var L=N.includes("am"),T=b.am,C=void 0===T?"am":T,z=b.pm,I=void 0===z?"pm":z;k=(L?N.replace("am",C):N.replace("pm",I))||N}return"rtl"===x?(v=i?"".concat(k):"","".concat(p," ").concat(_,", ").concat(y," ").concat(v," ")):d?"".concat(_," ").concat(p,", ").concat(y):c?"".concat(k,", ").concat(p," ").concat(_," ").concat(y):(v=i?", ".concat(k):"","".concat(p," ").concat(_,", ").concat(y).concat(v))}(e,t,r,o,n):e>1?(a=Ue(n,["localizedPublishTime","".concat(t,"s")])||"".concat(t,"s"),"".concat(e," ").concat(a," ").concat(i)):(a=Ue(n,["localizedPublishTime",t])||t,"".concat(e," ").concat(a," ").concat(i," "))}function Lt(e){var t=new Date(e),r=t.getHours(),o=t.getMinutes(),n=r>=12?"pm":"am";return(r=(r%=12)||12)+":"+(o=o<10?"0"+o:o)+" "+n}var Tt=function(e){var t=function(e){return{r:parseInt(e.slice(1,3),16),g:parseInt(e.slice(3,5),16),b:parseInt(e.slice(5,7),16)}}(e);return.299*t.r+.587*t.g+.114*t.b},Ct=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"rgba(255, 255, 255, 0)",t=e.match(/^rgba?[\s+]?\([\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?/i);return t&&4===t.length?"#"+("0"+parseInt(t[1],10).toString(16)).slice(-2)+("0"+parseInt(t[2],10).toString(16)).slice(-2)+("0"+parseInt(t[3],10).toString(16)).slice(-2):e},zt={mobile:767,tablet:1024},It=function(e){var t=Ue(zt,e);return!!t&&Ue(global,"document.documentElement.clientWidth")<=t},jt=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"rgb(255,255,255)",t=/^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/.test(e),r=t?e:Ct(e),o=Tt(r)<155?"light":"dark";return o},St=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.magazineSlug,o=void 0===r?"":r,n=t.isArchivePage,a=void 0!==n&&n;if(a)return"/magazine/archive/".concat(o);if(o)return"/magazine/".concat(o,"/").concat(e.slug);var i="section"===e.template;if(i){var l=Ue(e,["metadata","section","0","id"],""),c=t.sections,s=c&&c.find((function(e){return e.id===l}));return s?s["section-url"]:"/"}return"/collection/".concat(e.slug)};function At(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e["story-template"],r=void 0===t?"":t,o=e.metadata,n=void 0===o?{}:o;return"news-elsewhere"===r?Ue(n,["reference-url"],""):""}n.shape({"sketches-host":n.string,"cdn-name":n.string,"cdn-image":n.string}),n.shape({headline:n.string,"last-published-at":n.number,subheadline:n.string});var Ot=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return"news-elsewhere"===Ue(e,["story-template"])?Ue(e,["metadata","reference-url"],""):e.url||t},Rt=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2?arguments[2]:void 0;if(r)return r;var o=t.magazineSlug,n=void 0===o?"":o,a=t.isArchivePage,i=void 0!==a&&a;return i?"/magazine/archive/".concat(n):n?"/magazine/".concat(n,"/").concat(e.slug):e?St(e,t):"/"},Mt=function(t){var r=t.height,o=t.width,n=t.color,a=void 0===n?"#D8D8D8":n,i=t.positionTop;return e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:o,height:r,viewBox:"0 0 40 40",style:{position:"relative",top:i}},e.createElement("g",{fill:"none",fillRule:"evenodd",stroke:"none",strokeWidth:"1"},e.createElement("g",null,e.createElement("g",{transform:"translate(8 8)"},e.createElement("path",{d:"M0 0H24V24H0z"}),e.createElement("g",{fill:a,fillRule:"nonzero",transform:"translate(0 2)"},e.createElement("path",{d:"M21.043 19.553c0-.743-.601-1.344-1.344-1.344h-15.4a1.343 1.343 0 100 2.688h15.4c.743 0 1.344-.603 1.344-1.344zM1.598 8.673c.022 0 .042 0 .064-.003l2.131 7.713h16.411l2.132-7.713c.022 0 .041.003.063.003a1.599 1.599 0 10-1.52-1.108L17.025 9.82 12.882 2.95a1.599 1.599 0 10-1.765 0L6.976 9.82 3.121 7.565a1.599 1.599 0 10-1.523 1.107z"}))))))};Mt.propTypes={height:n.string,width:n.string,color:n.string,positionTop:n.string};var Pt=function(t){var r=t.height,o=t.width,n=t.color,a=void 0===n?"#D5D5D5":n,i=t.positionTop;return e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:o,height:r,viewBox:"0 0 40 40",style:{position:"relative",top:i}},e.createElement("g",{fill:"none",fillRule:"evenodd",stroke:"none",strokeWidth:"1"},e.createElement("g",null,e.createElement("g",{transform:"translate(8 8)"},e.createElement("path",{d:"M0 0H24V24H0z"}),e.createElement("path",{fill:a,fillRule:"nonzero",d:"M12.71 4.364A6.54 6.54 0 000 6.545a6.54 6.54 0 0012.71 2.182h4.745v4.364h4.363V8.727H24V4.364H12.71zM6.544 8.727a2.181 2.181 0 110-4.362 2.181 2.181 0 010 4.362z",transform:"translate(0 5)"})))))};Pt.propTypes={height:n.string,width:n.string,color:n.string,positionTop:n.string};var Bt=function(t){var r=t.height,o=t.width,n=t.color,a=void 0===n?"#D5D5D5":n,i=t.positionTop;return e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:o,height:r,viewBox:"0 0 40 40",style:{position:"relative",top:i}},e.createElement("g",{fill:"none",fillRule:"evenodd",stroke:"none",strokeWidth:"1"},e.createElement("g",null,e.createElement("g",{transform:"translate(8 8)"},e.createElement("path",{d:"M0 0H24V24H0z"}),e.createElement("g",{fill:a,fillRule:"nonzero",transform:"translate(3)"},e.createElement("path",{d:"M15.692 9h-.747V6c0-3.31-2.681-6-5.978-6C5.67 0 2.989 2.69 2.989 6v3h-.747A2.249 2.249 0 000 11.25v10.5A2.249 2.249 0 002.242 24h13.45a2.249 2.249 0 002.242-2.25v-10.5A2.249 2.249 0 0015.692 9zM4.982 6c0-2.206 1.787-4 3.985-4s3.985 1.794 3.985 4v3h-7.97V6z"}))))))};Bt.propTypes={height:n.string,width:n.string,color:n.string,positionTop:n.string};var Ht=function(t){var r=t.width,o=t.height,n=t.color,a=void 0===n?"#D5D5D5":n,i=t.positionTop,l=void 0===i?"":i;return e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:r,height:o,viewBox:"0 0 40 40",style:{position:"relative",top:l}},e.createElement("g",{fill:"none",fillRule:"evenodd",stroke:"none",strokeWidth:"1"},e.createElement("g",null,e.createElement("path",{fill:a,d:"M20 26L12.946577 29.7082039 14.2936609 21.854102 8.5873218 16.2917961 16.4732885 15.145898 20 8 23.5267115 15.145898 31.4126782 16.2917961 25.7063391 21.854102 27.053423 29.7082039z"}))))};Ht.propTypes={height:n.string,width:n.string,color:n.string,positionTop:n.string};var Ft=function(t){var r=t.width,o=t.height,n=t.color,a=t.iconType,i=t.positionTop;switch(a){case"crown":return e.createElement(Mt,{width:r,height:o,color:n,positionTop:i});case"lock":return e.createElement(Bt,{width:r,height:o,color:n,positionTop:i});case"key":return e.createElement(Pt,{width:r,height:o,color:n,positionTop:i});default:return e.createElement(Ht,{width:r,height:o,color:n,positionTop:i})}};Ft.propTypes={width:n.string,height:n.string,color:n.string,iconType:n.string,positionTop:n.string};var Dt={"./headline.m.css":{wrapper:"headline-m_wrapper__3nUmh",headline:"headline-m_headline__3_NhV",dark:"headline-m_dark__en3hW",light:"headline-m_light__3lKJB"}},Wt=function(t){var r=t.story,o=t.headerLevel,n=t.premiumStoryIconConfig,a=void 0===n?{}:n,l=t.isLink,c=Ze()||{},s=a.iconColor,m=void 0===s?"#F7B500":s,u=a.iconStyle,d=void 0===u?"star":u,h=a.enablePremiumStoryIcon,f=void 0!==h&&h,p=Ue(r,["alternative","home","default","headline"]),g=f&&"subscription"===Ue(r,["access"]),_=p||r.headline,v="h"+o,b=jt(c.theme),w=g?"wrapper":"",E="24px";return e.createElement("div",{"data-test-id":"headline",className:"arrow-component arr--headline "+y(w,Dt)},g&&e.createElement(Ft,{width:E,height:E,color:m,iconType:d,positionTop:function(){switch(parseInt(o)){case 1:return"-2px";case 2:return"2px";case 3:return"4px";case 4:return"5px";default:return"6px"}}()}),l?e.createElement(i,{href:Ot(r,"/".concat(r.slug)),externalLink:At(r),"aria-label":"headline"},e.createElement(v,{className:y("headline ".concat(b),Dt)},_)):e.createElement(v,{className:y("headline ".concat(b),Dt)},_))};Wt.propTypes={story:n.object.isRequired,headerLevel:n.string,premiumStoryIconConfig:n.shape({iconColor:n.string,iconType:n.string,enablePremiumStoryIcon:n.bool}),isLink:n.bool},Wt.defaultProps={headerLevel:"6",isLink:!0};var qt={"./subheadline.m.css":{subheadline:"subheadline-m_subheadline__3fd7z",dark:"subheadline-m_dark__28u00",light:"subheadline-m_light__2YUOe"}},Gt=function(t){var r=t.story,o=t.truncateChars,n=void 0===o?200:o,a=t.lineClamp,i=t.clazzName,l=void 0===i?"":i,c=t.forceShowAtom,s=t.showFullContent,m=Ze()||{};if(!(c||Ue(m,["showSubheadline"],!0)))return null;var u=jt(m.theme);return e.createElement("div",{style:{WebkitLineClamp:a},"data-test-id":"subheadline",className:("p-alt arr--sub-headline arrow-component ".concat(l)?"p-alt arr--sub-headline arrow-component ".concat(l)+" ":"")+y("subheadline ".concat(u),qt)},s||"number"==typeof a?r.subheadline:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:60,r=arguments.length>2&&void 0!==arguments[2]&&!arguments[2]?"":" ...";return"string"==typeof e&&e.length>t?e.substring(0,t)+r:e}(r.subheadline,n,!0))};Gt.propTypes={story:n.object.isRequired,lineClamp:n.number,truncateChars:n.number,clazzName:n.string,forceShowAtom:n.bool,showFullContent:n.bool},Gt.defaultProps={forceShowAtom:!1,showFullContent:!1};var Ut={"./timestamp.m.css":{time:"timestamp-m_time__2v46i","time-wrapper":"timestamp-m_time-wrapper__3O2lM","bottom-fix":"timestamp-m_bottom-fix__1Zh8r",dark:"timestamp-m_dark__2lk9E",light:"timestamp-m_light__2QlrI"}},Qt=function(t){var r=t.story,o=t.isBottom,n=t.config,a=void 0===n?{}:n,i=Ze()||{},l=Ue(i,["showTime"],!0),c=r["last-published-at"]||r["first-published-at"],s=o?"bottom-fix":"",m=jt(i.theme);return e.createElement(e.Fragment,null,l&&e.createElement("div",{"data-test-id":"publish-time",className:"time arr--publish-time "+y("time ".concat(m," ").concat(s),Ut)},e.createElement("div",{className:"timestamp-m_time-wrapper__3O2lM"},function(t,r){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return e.createElement(u,{date:t,formatter:function(e,t,n,a){return r(e,t,n,a,o)}})}(c,kt,a))))};Qt.propTypes={story:n.object,isBottom:n.bool,config:n.object};var Zt={"./author.m.css":{author:"author-m_author__WRuLm","author-image":"author-m_author-image__3q2oc","author-name":"author-m_author-name__3WP-O","bottom-fix":"author-m_bottom-fix__223TT",prefix:"author-m_prefix__YSInK","rtl-image":"author-m_rtl-image__2nglD","ltr-image":"author-m_ltr-image__3bc0L",dark:"author-m_dark__2TTlp",light:"author-m_light__3y8_x"}},Vt=function(t){var r=t.story,o=t.hideAuthorImage,n=t.isBottom,a=t.prefix,c=void 0===a?"":a,s=t.config,m=void 0===s?{}:s,u=Ze()||{},d=Ue(u,["showAuthor"],!0),h=Ue(r,["authors","0"],""),f=h["avatar-url"],p=h["avatar-s3-key"],g=h.name,_=h.slug,v=n?"bottom-fix":"",b=jt(u.theme),w=Ue(m,["mountAt"],""),E=function(t){return c?e.createElement("div",{className:"arr-author-prefix "+y("prefix ".concat(b),Zt)},c):!o&&function(t){return f||p?e.createElement("div",{"data-test-id":"author-image",className:y("author-image ".concat(t,"-image"),Zt)},e.createElement("figure",null,p?e.createElement(l,{slug:p,"aspect-ratio":[1,1],defaultWidth:400,imgParams:{auto:["format","compress"]},alt:g}):e.createElement("img",{src:f}))):null}(t)};return e.createElement(e.Fragment,null,d&&e.createElement(i,{href:"".concat(w,"/author/")+_,"aria-label":"author-name",className:"author-name arr-author-name arrow-component "+y("author ".concat(v),Zt)},E("ltr"),e.createElement("div",{"data-test-id":"author-name",className:"author-name "+y("author-name ".concat(b),Zt)},g||r["author-name"]),!c&&E("rtl")))};var Yt=d((function(e){return{config:Ue(e,["qt","config"],{})}}))(Vt);Vt.propTypes={story:n.object.isRequired,hideAuthorImage:n.bool,isBottom:n.bool,prefix:n.string,config:n.object},Vt.defaultProps={hideAuthorImage:!1,isBottom:!1,prefix:""};var Jt={"./dot.m.css":{dark:"dot-m_dark__1Njxl",light:"dot-m_light__27IA3"}},Kt=function(t){var r=t.width,o=void 0===r?"3px":r,n=t.height,a=void 0===n?"3px":n,i=t.color,l=void 0===i?"light":i;return e.createElement("div",{className:y(l,Jt)},e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:o,height:a,viewBox:"0 0 3 3"},e.createElement("circle",{cx:"87",cy:"9",r:"1",fill:"inherit",fillRule:"nonzero",transform:"translate(-86 -8)"})))};Kt.propTypes={color:n.string,width:n.string,height:n.string};var $t={"./divider.m.css":{dark:"divider-m_dark__26FRi",light:"divider-m_light__w-7sy"}},Xt=function(t){var r=t.width,o=void 0===r?"1":r,n=t.height,a=void 0===n?"10":n,i=t.color,l=void 0===i?"light":i;return e.createElement("div",{className:y(l,$t)},e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:o,height:a},e.createElement("path",{fill:"inherit",d:"M0 0h1v10H0z"})))};Xt.propTypes={color:n.string,width:n.string,height:n.string};var er={"./read-time.m.css":{"read-time-wrapper":"read-time-m_read-time-wrapper__3GyC_","dot-indicator":"read-time-m_dot-indicator__3Sqh2",dark:"read-time-m_dark__3yRaK",light:"read-time-m_light__1GAZu"}},tr=function(t){var r=t.story,o=t.opts,n=void 0===o?{}:o,a=t.isLightTheme,i=void 0!==a&&a,l=Ze()||{},c=Ue(l,["showReadTime"])||Ue(n,["showReadTime"],!0),s=Ue(r,["read-time"],0),m=i?"light":jt(l.theme);if(!c||!s)return null;var u=Ue(n,["localizedTimeToRead"])||"min read";return e.createElement(e.Fragment,null,e.createElement("div",{"data-test-id":"read-time",className:"arrow-component arr--read-time "+y("read-time-wrapper ".concat(m),er)},e.createElement("span",{className:"read-time-indicator read-time-m_dot-indicator__3Sqh2"},e.createElement(Kt,{color:m})),e.createElement("span",null,s," ",u)))};tr.propTypes={story:n.shape({"read-time":n.number}),opts:n.shape({showReadTime:n.bool}),isLightTheme:n.bool};var rr={"./author-with-timestamp.m.css":{"author-time-wrapper":"author-with-timestamp-m_author-time-wrapper__G7_eI","author-image":"author-with-timestamp-m_author-image__24xrD",dot:"author-with-timestamp-m_dot__1LHXD","bottom-fix":"author-with-timestamp-m_bottom-fix__1rWGv",dash:"author-with-timestamp-m_dash__2L5XC"}},or=function(t){var r=t.story,o=t.separator,n=t.isBottom,a=t.hideAuthorImage,i=t.prefix,l=t.config,c=void 0===l?{}:l,s=t.isLightTheme,m=Ze()||{},u=Ue(c,["showAuthor"],Ue(m,["showAuthor"],!0)),d=Ue(m,["showTime"],!0),h=Ue(m,["showReadTime"],!0),f=n?"bottom-fix":"",p="dot"===o?"dot":"dash",g=s?"light":jt(m.theme),_=function(){return d?e.createElement(e.Fragment,null,u&&e.createElement("span",{className:"arr-separator "+y("".concat(p),rr)},"divider"===o?e.createElement(Xt,{color:g}):e.createElement(Kt,{color:g})),e.createElement(Qt,{story:r,config:c}),h&&e.createElement(tr,{story:r,opts:c,isLightTheme:s})):null};return e.createElement("div",{className:"arr--author-time "+y("author-time-wrapper ".concat(f),rr)},u?e.createElement(e.Fragment,null,e.createElement(Yt,{story:r,isBottom:!0,hideAuthorImage:a,prefix:i}),_()):_())};function nr(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,o=new Array(t);r<t;r++)o[r]=e[r];return o}function ar(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var o,n,a=[],i=!0,l=!1;try{for(r=r.call(e);!(i=(o=r.next()).done)&&(a.push(o.value),!t||a.length!==t);i=!0);}catch(e){l=!0,n=e}finally{try{i||null==r.return||r.return()}finally{if(l)throw n}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return nr(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?nr(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}or.propTypes={story:n.object,separator:n.oneOf(["dot","divider"]),hideAuthorImage:n.bool,isBottom:n.bool,prefix:n.string,config:n.object,isLightTheme:n.bool},or.defaultProps={separator:"dot",isBottom:!1,hideAuthorImage:!0,prefix:"",isLightTheme:!1};var ir=function(t){var r=t.width,o=void 0===r?40:r,n=t.height,a=void 0===n?30:n,i=t.iconColor,l=void 0===i?"#99B0CB":i;return e.createElement("svg",{width:o,height:a,viewBox:"0 0 102 76",version:"1.1"},e.createElement("g",{id:"demo-home-copy",stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",transform:"translate(-377.000000, -314.000000)"},e.createElement("g",{id:"Group-13",transform:"translate(377.000000, 314.000000)"},e.createElement("path",{d:"M43.2,49.7 L62.2,19.2 L87.2,59.4 L17,59.4 L32.8,39.4 L43.2,49.7 Z M29.9,28.6 C25.8683213,28.6 22.6,25.3316787 22.6,21.3 C22.6,17.2683213 25.8683213,14 29.9,14 C33.9316787,14 37.2,17.2683213 37.2,21.3 C37.2,25.3316787 33.9316787,28.6 29.9,28.6 Z",id:"Combined-Shape",fill:l,fillRule:"nonzero"}),e.createElement("rect",{id:"Rectangle-19",stroke:l,strokeWidth:"3",x:"1.5",y:"1.5",width:"99",height:"73",rx:"3"}))))};ir.propTypes={width:n.object,height:n.object,iconColor:n.object};var lr=function(){return e.createElement("div",{className:"arr--fallback-image fallback-m_image__1GYCJ fallback-m_image-position__3KddP"},e.createElement("figure",{className:"arr--fallback-svg fallback-m_fallback-svg__tK9fL"},e.createElement(ir,null)))},cr=function(t){var r=t.slug;return r?e.createElement(i,{href:r,"aria-label":"image-fallback"},lr()):lr()};cr.propTypes={slug:n.string};var sr={"./hero-image.m.css":{"hero-image":"hero-image-m_hero-image__3lraV","right-padding":"hero-image-m_right-padding__1LkCe","left-padding":"hero-image-m_left-padding__pYRAj","right-padding-mob":"hero-image-m_right-padding-mob__3-uOU",placeholder:"hero-image-m_placeholder__1omCm","hero-image-mob":"hero-image-m_hero-image-mob__13JJp","with-padding":"hero-image-m_with-padding__324G_",image:"hero-image-m_image__1mz0U"}},mr=function(t){var r=t.story,o=t.FullBleed,n=t.aspectRatio,a=t.defaultWidth,s=t.widths,m=t.isHorizontal,u=t.isHorizontalMobile,d=t.isHorizontalWithImageLast,f=t.defaultFallback,p=t.isStoryPageImage,g=(Ze()||{}).fallbackImageUrl,_=void 0===g?"":g,v=h((function(e){return Ue(e,["qt","config","showPlaceholder"])}))?"placeholder":"",b=o?"":"with-padding",w="hero-image";m?w="right-padding":d&&(w="left-padding");var E=u?"right-padding-mob":"",x=function(e){var t=ar(e,2),r=t[0],o=t[1];return r>0&&o>0?o/r*100:0},N=ar(n,2),k=N[0],L=N[1],T=void 0===L?k:L,C=It("mobile"),z=C?k:T,I=x(C?k:T),j=Ue(r,["hero-image-s3-key"])||Ue(r,["alternative","home","default","hero-image","hero-image-s3-key"]),S=function(){return j?e.createElement("figure",{style:{paddingTop:I+"%"},className:"arr--responsive-hero-image "+y("image ".concat(v),sr)},e.createElement(c,{story:r,aspectRatio:z,defaultWidth:a,widths:s,imgParams:{auto:["format","compress"],fit:"max"}})):_?e.createElement("figure",{style:{paddingTop:I+"%"},className:"arr--responsive-hero-image "+y("image ".concat(v),sr)},e.createElement(l,{slug:!p&&_,metadata:{},"aspect-ratio":z,defaultWidth:a,widths:s,imgParams:{auto:["format","compress"],fit:"max"},className:"",alt:"image-fallback"})):e.createElement(e.Fragment,null,f?e.createElement("div",{"data-test-id":"arr--fallback-hero-image",style:{paddingTop:I+"%"},className:"arr--fallback-hero-image "+y("image ".concat(v),sr)},e.createElement(cr,null)):null)};return r&&(p?e.createElement("div",{"data-test-id":"arr--hero-image",className:"arr--hero-image "+y("".concat(w," ").concat(b," ").concat(E),sr)},S()):e.createElement(i,{"data-test-id":"arr--hero-image",href:Ot(r,"/".concat(r.slug)),externalLink:At(r),"aria-label":"fallback-hero-image",className:"arr--hero-image "+y("".concat(w," ").concat(b," ").concat(E),sr)},S()))};mr.propTypes={story:n.object.isRequired,FullBleed:n.bool,defaultWidth:n.number,widths:n.array,aspectRatio:n.array,isHorizontal:n.bool,isHorizontalMobile:n.bool,defaultFallback:n.bool,isHorizontalWithImageLast:n.bool},mr.defaultProps={FullBleed:!0,aspectRatio:[[1,1],[16,9]],defaultWidth:480,widths:[250,480,640],isHorizontal:!1,isHorizontalMobile:!1,defaultFallback:!0,isStoryPageImage:!1,isHorizontalWithImageLast:!1};var ur={"./section.m.css":{section:"section-m_section__2N4S3","section-borderBottomSml":"section-m_section-borderBottomSml__2GNbo","border-bottom":"section-m_border-bottom__3cRoD","section-borderLeft":"section-m_section-borderLeft__3hKVj","border-left":"section-m_border-left__2oUyp","section-solid":"section-m_section-solid__1vB1Q",dark:"section-m_dark__1r3C4",light:"section-m_light__306hW"}},dr=function(t){var r=t.story,o=t.template,n=void 0===o?"":o,a=t.borderColor,l=void 0===a?"":a,c=t.isLightTheme,s=Ze()||{},m=Ue(s,["showSection"],!0),u=Ue(s,["sectionTagTemplate"]),d=Ue(r,["sections",0],""),h=["borderBottomSml","borderLeft","solid"],f=d?d["section-url"]:"/",p="solid"===n||"solid"===u?l:s.theme,g=c?"light":jt(p),_=Ct(l),v=h.includes(n)?"section section-".concat(n):"section";return u&&(v=h.includes(u)?"section section-".concat(u):"section"),m?e.createElement(i,{href:f,className:"arrow-component arr--section-name","aria-label":"section-name"},e.createElement("div",{"data-test-id":"sectionTag",style:{backgroundColor:v.includes("section-solid")?_:""},className:"section-tag arrow-component "+y("".concat(g," ").concat(v),ur)},v.includes("section-borderLeft")&&e.createElement("span",{className:"section-m_border-left__2oUyp",style:{color:_}}),d["display-name"]||d.name,e.createElement("div",{className:"section-m_border-bottom__3cRoD",style:{backgroundColor:"".concat("solid"===n?"":_)}}))):null};dr.propTypes={story:n.object.isRequired,template:n.oneOf(["","borderBottomSml","borderLeft","solid"]),borderColor:n.string,solidBorderColor:n.string,isLightTheme:n.bool},dr.defaultProps={template:"",isLightTheme:!1};var hr={"./storycard.m.css":{"author-timestamp-wrapper":"storycard-m_author-timestamp-wrapper__20yjp","default-card":"storycard-m_default-card__1-POn","horizontal-card":"storycard-m_horizontal-card___7afz","backgroung-img":"storycard-m_backgroung-img__1FMJT","content-overlap":"storycard-m_content-overlap__1yNHR","border-full":"storycard-m_border-full__1nhy7",light:"storycard-m_light__3EhXN",dark:"storycard-m_dark__2wCTq","border-bottom":"storycard-m_border-bottom__2_E-I","border-boxShadow":"storycard-m_border-boxShadow__2-k3Z","center-align":"storycard-m_center-align__1Sn8-","content-bottom":"storycard-m_content-bottom__1QHeC","content-full":"storycard-m_content-full__2zJmU","content-boxShadow":"storycard-m_content-boxShadow__2IAWZ","hero-image":"storycard-m_hero-image__1H3MB","right-padding":"storycard-m_right-padding__12-lQ","horizontal-mob":"storycard-m_horizontal-mob__17JG2",content:"storycard-m_content__1Q9vq","border-default":"storycard-m_border-default__PEZ1x",card:"storycard-m_card__KJwRa","horizontal-image-last":"storycard-m_horizontal-image-last__3o6LY"}},fr=function(t){var r,o=t.story,n=t.children,a=t.isHorizontal,i=t.aspectRatio,l=t.border,c=t.useImageAsBackground,s=t.bgImgContentOverlap,m=t.theme,u=t.borderColor,d=t.isHorizontalMobile,h=t.centerAlign,f=t.headerLevel,p=t.hideAuthorImage,g=t.prefix,_=t.config,v=t.isHorizontalWithImageLast;if(!o||(null==(r=o)||"object"===Ve(r)&&0===Object.entries(r).length&&r.constructor===Object||"string"==typeof r&&0===r.trim().length))return e.createElement("div",null);var b=["default","full","bottom","boxShadow"].includes(l)?"border-".concat(l):"",w="default-card";a?w="horizontal-card":v&&(w="horizontal-image-last");var E=c?"backgroung-img":"",x=s?"content-overlap":"",N=jt(m),k=d?"horizontal-mob":"",L=e.createElement(pr,{story:o,aspectRatio:i,border:l,isHorizontalMobile:d,isHorizontal:a,centerAlign:h,headerLevel:f,borderColor:u,hideAuthorImage:p,prefix:g,config:_,isHorizontalWithImageLast:v});return e.createElement("div",{"data-test-id":"story-card",style:{backgroundColor:m,color:N},className:"arr--story-card "+y("card ".concat(w," ").concat(b," ").concat(N," ").concat(E," ").concat(x," ").concat(k),hr)},n||L)},pr=function(t){var r=t.story;t.border;var o=t.isHorizontal,n=t.aspectRatio,a=t.headerLevel,i=t.isHorizontalMobile,l=void 0!==i&&i,c=t.centerAlign,s=void 0!==c&&c,m=t.borderColor,u=t.hideAuthorImage,d=t.prefix,h=t.isHorizontalWithImageLast,f=t.config,p=s?"center-align":"",g=Ct(m),_=f.localizationConfig,v=void 0===_?{}:_;return e.createElement(e.Fragment,null,o?e.createElement(mr,{story:r,isHorizontal:!0,isHorizontalMobile:l,aspectRatio:n}):h?e.createElement(mr,{story:r,isHorizontalWithImageLast:!0,isHorizontalMobile:l,aspectRatio:n}):e.createElement(mr,{story:r,isHorizontalMobile:l,aspectRatio:n}),e.createElement("div",{className:"arr--story-content "+y("content ".concat(p),hr)},e.createElement(dr,{story:r,borderColor:g}),e.createElement(Wt,{story:r,headerLevel:a,premiumStoryIconConfig:f}),e.createElement(or,{config:v,story:r,isBottom:!0,prefix:d,hideAuthorImage:u}),e.createElement(Gt,{story:r})))};pr.propTypes={story:n.object.isRequired,border:n.oneOfType([n.string]),isBottom:n.bool,isHorizontal:n.bool,aspectRatio:n.oneOfType([n.array]),isHorizontalMobile:n.bool,centerAlign:n.bool,headerLevel:n.string,borderColor:n.string,hideAuthorImage:n.bool,prefix:n.string,config:n.object,isHorizontalWithImageLast:n.bool},fr.propTypes={story:n.object.isRequired,children:n.node,isHorizontal:n.bool,border:n.oneOfType([n.string]),useImageAsBackground:n.bool,bgImgContentOverlap:n.bool,aspectRatio:n.oneOfType([n.array]),theme:n.string,isHorizontalMobile:n.bool,centerAlign:n.bool,headerLevel:n.string,borderColor:n.string,hideAuthorImage:n.bool,prefix:n.string,config:n.object,isHorizontalWithImageLast:n.bool},fr.defaultProps={isHorizontal:!1,isHorizontalMobile:!1,border:"default",theme:"",centerAlign:!1,borderColor:"",isHorizontalWithImageLast:!1};var gr={"./collection-name.m.css":{collection:"collection-name-m_collection__JD6sx","collection-borderLeft":"collection-name-m_collection-borderLeft__3Dznk","border-left":"collection-name-m_border-left__3_pYw","collection-borderBottomFull":"collection-name-m_collection-borderBottomFull__Dkq3K","collection-borderBottom":"collection-name-m_collection-borderBottom__2rdQM","collection-crossLine":"collection-name-m_collection-crossLine__1sIpN","border-bottom":"collection-name-m_border-bottom__1MnlV",dark:"collection-name-m_dark__nMe5H",light:"collection-name-m_light__1vFDN"}},_r=function(t){var r=t.collectionNameBorderColor,o=void 0===r?"":r,n=t.collection,a=t.config,l=t.collectionNameTemplate,c=t.headerLevel,s=t.customCollectionName,m=void 0===s?"":s,u=t.navigate,d=void 0===u||u,h=Ze()||{},f=Ue(h,["showRowTitle"],!0),p=["borderLeft","borderBottom","crossLine","borderBottomFull"].includes(l)?" collection-".concat(l):"",g=d&&n&&St(n,a)||"",_=m||n.name||"",v=jt(h.theme),b="h"+c,w=Ct(o),E=p.includes("collection-borderBottomFull")?"4px solid ".concat(w):"",x=It("mobile");return e.createElement(e.Fragment,null,f&&_&&e.createElement("div",{style:{borderBottom:E},"data-test-id":"collection-name",className:"arr--collection-name arrow-component "+y("collection ".concat(v," ").concat(p),gr)},p.includes("collection-borderLeft")&&e.createElement("span",{className:"arr-collection-name-border-left collection-name-m_border-left__3_pYw",style:{color:w,fontSize:function(){if(x)switch(c){case"1":return"32px";case"2":return"24px";case"3":return"20px";case"4":return"18px";case"5":case"6":return"16px";default:return"20px"}switch(c){case"1":return"40px";case"2":return"32px";case"3":return"24px";case"4":return"20px";case"5":return"18px";case"6":return"16px";default:return"24px"}}()}}),g&&!g.includes(void 0)?e.createElement(i,{href:g,"aria-label":"collection-name"},e.createElement(b,null,_)):e.createElement(b,null,_),p.includes("collection-borderBottom")&&!p.includes("collection-borderBottomFull")?e.createElement("div",{className:"collection-name-m_border-bottom__1MnlV",style:{borderBottom:"4px solid ".concat(w)}}):""))};_r.propTypes={collectionNameBorderColor:a.string,collection:a.object,config:a.object,collectionNameTemplate:a.oneOf(["","borderLeft","borderBottom","crossLine","borderBottomFull"]),headerLevel:a.string,customCollectionName:a.string,navigate:a.bool},_r.defaultProps={collectionNameTemplate:"",headerLevel:"3"};var vr=d((function(e){return{config:Ue(e,["qt","config"],{})}}))(_r);function yr(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var br={"./load-more.m.css":{button:"load-more-m_button__1mmf1",default:"load-more-m_default__2_k4V",dark:"load-more-m_dark__3dfzb",light:"load-more-m_light__ePZQI"}};function wr(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,o)}return r}function Er(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?wr(Object(r),!0).forEach((function(t){yr(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):wr(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var xr=function(t){var r=t.config,o=void 0===r?{}:r,n=t.collection,a=t.template,i=void 0===a?"SubsequentLoadCount":a,l=t.onClick,c=t.navigate,m=t.qtConfig,u=o.showButton,d=void 0===u||u,h=o.buttonText,f=void 0===h?"Read More":h,p=o.theme,g=void 0===p?"":p,_=o.customUrlPath,v=void 0===_?"":_;if(!d)return null;var b=jt(g),w=v?"/".concat(v):Rt(n,Er(Er({},m),o));return"SubsequentLoadCount"===i?e.createElement("div",{onClick:l,"data-test-id":"load-more",className:"arr--button "+y("button ".concat(b," default"),br)},f):e.createElement(s,{href:w,navigateTo:c,"data-test-id":"load-more","aria-label":"load-more"},e.createElement("div",{className:"arr--button "+y("button ".concat(b," default"),br)},f))};xr.propTypes={collection:n.object,template:n.string,config:n.object,onClick:n.func,navigate:n.func,qtConfig:n.object};var Nr={"./11-stories.m.css":{"eleven-stories":"_11-stories-m_eleven-stories__13Nwq",wrapper:"_11-stories-m_wrapper__1vPIm","wrapper-with-divider":"_11-stories-m_wrapper-with-divider__2VLKs",divider:"_11-stories-m_divider__Q069K",dark:"_11-stories-m_dark__2cPpn",light:"_11-stories-m_light__17K2B","column-one":"_11-stories-m_column-one__1h-Sf","column-two":"_11-stories-m_column-two__3fctd","story-card":"_11-stories-m_story-card__opQxo","first-story-card":"_11-stories-m_first-story-card__2Y4Dk","child-collection-wrapper":"_11-stories-m_child-collection-wrapper__qlj01","column-three":"_11-stories-m_column-three__1BGNt"}},kr=function(t){var r=t.collection,n=t.config,a=void 0===n?{}:n,i=m(r);if(i.length<1)return null;var l=a.collectionNameBorderColor,c=void 0===l?"":l,s=a.borderColor,u=void 0===s?"":s,d=a.theme,p=void 0===d?"":d,g=a.slotConfig,_=void 0===g?[]:g,v=a.withseparator,b=a.collectionNameTemplate,w=void 0===b?"":b,E=a.footerSlotConfig,x=void 0===E?{}:E,N=a.footerButton,k=void 0===N?"":N,L=a.localizationConfig,T=void 0===L?{}:L,C=Ue(_,[0],{}),z=C.type,I=void 0===z?"story":z,j=C.component,S=x.footerSlot,A=f(),O=h((function(e){return Ue(e,["qt","config"],{})})),R=Rt(r,O),M=jt(p),P=Ct(u),B=function(e,t,r,o){switch(e){case"story":return r();case"collection":return o();default:return t?t():null}}(I,j,(function(){return e.createElement("div",{className:"_11-stories-m_column-three__1BGNt"},i.slice(6,7).map((function(t,r){return e.createElement("div",{className:"_11-stories-m_first-story-card__2Y4Dk",key:"story-".concat(r)},e.createElement(fr,{story:t,theme:p,border:v?"bottom":""},e.createElement(dr,{story:t,borderColor:P}),e.createElement(Wt,{story:t,premiumStoryIconConfig:a}),e.createElement(or,{config:T,story:t,hideAuthorImage:!1}),e.createElement(Gt,{story:t,clazzName:"arr-hidden-mob"})))})),i.slice(7,10).map((function(t,r){return e.createElement("div",{className:"_11-stories-m_story-card__opQxo",key:"story-".concat(r)},e.createElement(fr,{story:t,theme:p,border:v?"bottom":""},e.createElement(dr,{story:t,borderColor:P}),e.createElement(Wt,{story:t,premiumStoryIconConfig:a}),e.createElement(or,{config:T,story:t,hideAuthorImage:!1})))})),i.slice(10,11).map((function(t,r){return e.createElement("div",{className:"_11-stories-m_story-card__opQxo",key:"story-".concat(r)},e.createElement(fr,{story:t,theme:p},e.createElement(dr,{story:t,borderColor:P}),e.createElement(Wt,{story:t,premiumStoryIconConfig:a}),e.createElement(or,{config:T,story:t,hideAuthorImage:!1})))})))}),(function(){var t=Ue(r,["items"],[]).find((function(e){return"collection"===e.type}));return e.createElement("div",{className:"_11-stories-m_child-collection-wrapper__qlj01"},e.createElement(vr,{collection:t,collectionNameTemplate:w,headerLevel:"5"}),i.slice(0,1).map((function(t,r){return e.createElement("div",{className:"_11-stories-m_first-story-card__2Y4Dk",key:"story-".concat(r)},e.createElement(fr,{story:t,theme:p,headerLevel:"4",border:v?"bottom":""},e.createElement(dr,{story:t,borderColor:P}),e.createElement(Wt,{story:t,premiumStoryIconConfig:a}),e.createElement(or,{config:T,story:t,hideAuthorImage:!1}),e.createElement(Gt,{story:t})))})),i.slice(1,4).map((function(t,r){return e.createElement("div",{className:"_11-stories-m_story-card__opQxo",key:"story-".concat(r)},e.createElement(fr,{story:t,theme:p,border:v?"bottom":""},e.createElement(dr,{story:t,borderColor:P}),e.createElement(Wt,{story:t,premiumStoryIconConfig:a}),e.createElement(or,{config:T,story:t,hideAuthorImage:!1})))})),i.slice(4,5).map((function(t,r){return e.createElement("div",{className:"_11-stories-m_story-card__opQxo",key:"story-".concat(r)},e.createElement(fr,{story:t,theme:p},e.createElement(dr,{story:t,borderColor:P}),e.createElement(Wt,{story:t,premiumStoryIconConfig:a}),e.createElement(or,{config:T,story:t,hideAuthorImage:!1})))})))})),H=S?S():null;return e.createElement("div",{className:"full-width-with-padding arrow-component","data-test-id":"eleven-stories",style:{backgroundColor:p,color:M}},e.createElement("div",{className:"_11-stories-m_eleven-stories__13Nwq"},e.createElement(vr,{collection:r,collectionNameTemplate:w,collectionNameBorderColor:c}),v?e.createElement(e.Fragment,null,e.createElement("div",{className:"_11-stories-m_wrapper-with-divider__2VLKs"},e.createElement("div",{className:"_11-stories-m_column-one__1h-Sf"},i.slice(2,3).map((function(t,r){return e.createElement("div",{className:"_11-stories-m_story-card__opQxo",key:"story-".concat(r)},e.createElement(fr,{story:t,theme:p,border:"bottom",isHorizontalMobile:!0,borderColor:P,config:a,hideAuthorImage:!1,headerLevel:"5"}))})),i.slice(3,5).map((function(t,r){return e.createElement(o,{key:"story-col-".concat(r,"-").concat(Ue(t,["id"],"0"))},e.createElement("div",{className:"_11-stories-m_story-card__opQxo",key:"story-".concat(r)},e.createElement(fr,{story:t,theme:p,border:v?"bottom":""},e.createElement(dr,{story:t,borderColor:P}),e.createElement(Wt,{story:t,premiumStoryIconConfig:a}),e.createElement(or,{config:T,story:t,hideAuthorImage:!1}))))})),i.slice(5,6).map((function(t,r){return e.createElement(o,{key:"story-col2-".concat(r,"-").concat(Ue(t,["id"],"0"))},e.createElement("div",{className:"_11-stories-m_story-card__opQxo",key:"story-".concat(r)},e.createElement(fr,{story:t,theme:p},e.createElement(dr,{story:t,borderColor:P}),e.createElement(Wt,{story:t,premiumStoryIconConfig:a}),e.createElement(or,{config:T,story:t,hideAuthorImage:!1}))))}))),e.createElement("div",{className:y("divider ".concat(M),Nr)}),e.createElement("div",{className:"_11-stories-m_column-two__3fctd"},i.slice(0,1).map((function(t,r){return e.createElement("div",{className:"_11-stories-m_story-card__opQxo",key:"story-".concat(r)},e.createElement(fr,{story:t,theme:p,borderColor:P,centerAlign:!0,border:"bottom",headerLevel:"3",aspectRatio:[[16,9],[16,9]],hideAuthorImage:!1,config:a}))})),i.slice(1,2).map((function(t,r){return e.createElement("div",{className:"_11-stories-m_story-card__opQxo",key:"story-".concat(r)},e.createElement(fr,{story:t,isHorizontal:!0,theme:p,borderColor:P,hideAuthorImage:!1,headerLevel:"5",config:a}))}))),e.createElement("div",{className:y("divider ".concat(M),Nr)}),B)):e.createElement(e.Fragment,null,e.createElement("div",{className:"_11-stories-m_wrapper__1vPIm"},e.createElement("div",{className:"_11-stories-m_column-one__1h-Sf"},i.slice(2,3).map((function(t,r){return e.createElement("div",{className:"_11-stories-m_story-card__opQxo",key:"story-".concat(r)},e.createElement(fr,{story:t,theme:p,borderColor:P,isHorizontalMobile:!0,headerLevel:"5",hideAuthorImage:!1,config:a}))})),i.slice(3,6).map((function(t,r){return e.createElement(o,{key:"story-col1-".concat(Ue(t,["id"],"0"))},e.createElement("div",{className:"_11-stories-m_story-card__opQxo",key:"story-".concat(r)},e.createElement(fr,{story:t,theme:p,config:a},e.createElement(dr,{story:t,borderColor:P}),e.createElement(Wt,{story:t,premiumStoryIconConfig:a}),e.createElement(or,{config:T,story:t,hideAuthorImage:!1}))))}))),e.createElement("div",{className:"_11-stories-m_column-two__3fctd"},i.slice(0,1).map((function(t,r){return e.createElement("div",{className:"_11-stories-m_story-card__opQxo",key:"story-".concat(r)},e.createElement(fr,{story:t,borderColor:P,theme:p,headerLevel:"3",centerAlign:!0,aspectRatio:[[16,9],[16,9]],hideAuthorImage:!1,config:a}))})),i.slice(1,2).map((function(t,r){return e.createElement("div",{className:"_11-stories-m_story-card__opQxo",key:"story-".concat(r)},e.createElement(fr,{story:t,isHorizontal:!0,theme:p,borderColor:P,hideAuthorImage:!1,headerLevel:"5",config:a}))}))),B)),e.createElement(xr,{collection:r,template:k,config:a,navigate:function(){return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";global.app.navigateToPage(e,t)}(A,R)},qtConfig:O}),H))};kr.propTypes={collection:n.object.isRequired,config:n.shape({borderColor:n.string,footerButton:n.string,theme:n.string,border:n.string,slotConfig:n.array,withseparator:n.bool,collectionNameTemplate:n.string,collectionNameBorderColor:n.string})};var Lr,Tr=(Lr=kr,function(t){return e.createElement(Qe.Provider,{value:t.config},e.createElement(Lr,t))});export{Tr as default};
@@ -0,0 +1 @@
1
+ import e,{createContext as t,useContext as r,useState as o,useEffect as n,useRef as i}from"react";import a,{PropTypes as l}from"prop-types";import{useSelector as c,connect as s,useDispatch as u}from"react-redux";import{Link as d,ResponsiveImage as m,ResponsiveHeroImage as f,LinkBase as h,collectionToStories as p}from"@quintype/components";import g from"react-timeago";import v from"react-dom";function _(e){if(Array.isArray(e))return e}function y(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,o=new Array(t);r<t;r++)o[r]=e[r];return o}function b(e,t){if(e){if("string"==typeof e)return y(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?y(e,t):void 0}}function w(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function E(e){return _(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||b(e)||w()}var x=Array.isArray,L="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function T(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function N(e){var t={exports:{}};return e(t,t.exports),t.exports}var j="object"==typeof L&&L&&L.Object===Object&&L,k="object"==typeof self&&self&&self.Object===Object&&self,C=j||k||Function("return this")(),S=C.Symbol,O=Object.prototype,z=O.hasOwnProperty,M=O.toString,I=S?S.toStringTag:void 0;var A=function(e){var t=z.call(e,I),r=e[I];try{e[I]=void 0;var o=!0}catch(e){}var n=M.call(e);return o&&(t?e[I]=r:delete e[I]),n},P=Object.prototype.toString;var R=function(e){return P.call(e)},B=S?S.toStringTag:void 0;var F=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":B&&B in Object(e)?A(e):R(e)};var D=function(e){return null!=e&&"object"==typeof e};var H=function(e){return"symbol"==typeof e||D(e)&&"[object Symbol]"==F(e)},W=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,U=/^\w*$/;var G=function(e,t){if(x(e))return!1;var r=typeof e;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=e&&!H(e))||(U.test(e)||!W.test(e)||null!=t&&e in Object(t))};var q=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)};var V,Z=function(e){if(!q(e))return!1;var t=F(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},$=C["__core-js_shared__"],Y=(V=/[^.]+$/.exec($&&$.keys&&$.keys.IE_PROTO||""))?"Symbol(src)_1."+V:"";var J=function(e){return!!Y&&Y in e},K=Function.prototype.toString;var Q=function(e){if(null!=e){try{return K.call(e)}catch(e){}try{return e+""}catch(e){}}return""},X=/^\[object .+?Constructor\]$/,ee=Function.prototype,te=Object.prototype,re=ee.toString,oe=te.hasOwnProperty,ne=RegExp("^"+re.call(oe).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var ie=function(e){return!(!q(e)||J(e))&&(Z(e)?ne:X).test(Q(e))};var ae=function(e,t){return null==e?void 0:e[t]};var le=function(e,t){var r=ae(e,t);return ie(r)?r:void 0},ce=le(Object,"create");var se=function(){this.__data__=ce?ce(null):{},this.size=0};var ue=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},de=Object.prototype.hasOwnProperty;var me=function(e){var t=this.__data__;if(ce){var r=t[e];return"__lodash_hash_undefined__"===r?void 0:r}return de.call(t,e)?t[e]:void 0},fe=Object.prototype.hasOwnProperty;var he=function(e){var t=this.__data__;return ce?void 0!==t[e]:fe.call(t,e)};var pe=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=ce&&void 0===t?"__lodash_hash_undefined__":t,this};function ge(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var o=e[t];this.set(o[0],o[1])}}ge.prototype.clear=se,ge.prototype.delete=ue,ge.prototype.get=me,ge.prototype.has=he,ge.prototype.set=pe;var ve=ge;var _e=function(){this.__data__=[],this.size=0};var ye=function(e,t){return e===t||e!=e&&t!=t};var be=function(e,t){for(var r=e.length;r--;)if(ye(e[r][0],t))return r;return-1},we=Array.prototype.splice;var Ee=function(e){var t=this.__data__,r=be(t,e);return!(r<0)&&(r==t.length-1?t.pop():we.call(t,r,1),--this.size,!0)};var xe=function(e){var t=this.__data__,r=be(t,e);return r<0?void 0:t[r][1]};var Le=function(e){return be(this.__data__,e)>-1};var Te=function(e,t){var r=this.__data__,o=be(r,e);return o<0?(++this.size,r.push([e,t])):r[o][1]=t,this};function Ne(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var o=e[t];this.set(o[0],o[1])}}Ne.prototype.clear=_e,Ne.prototype.delete=Ee,Ne.prototype.get=xe,Ne.prototype.has=Le,Ne.prototype.set=Te;var je=Ne,ke=le(C,"Map");var Ce=function(){this.size=0,this.__data__={hash:new ve,map:new(ke||je),string:new ve}};var Se=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e};var Oe=function(e,t){var r=e.__data__;return Se(t)?r["string"==typeof t?"string":"hash"]:r.map};var ze=function(e){var t=Oe(this,e).delete(e);return this.size-=t?1:0,t};var Me=function(e){return Oe(this,e).get(e)};var Ie=function(e){return Oe(this,e).has(e)};var Ae=function(e,t){var r=Oe(this,e),o=r.size;return r.set(e,t),this.size+=r.size==o?0:1,this};function Pe(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var o=e[t];this.set(o[0],o[1])}}Pe.prototype.clear=Ce,Pe.prototype.delete=ze,Pe.prototype.get=Me,Pe.prototype.has=Ie,Pe.prototype.set=Ae;var Re=Pe;function Be(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var r=function(){var o=arguments,n=t?t.apply(this,o):o[0],i=r.cache;if(i.has(n))return i.get(n);var a=e.apply(this,o);return r.cache=i.set(n,a)||i,a};return r.cache=new(Be.Cache||Re),r}Be.Cache=Re;var Fe=Be;var De=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,He=/\\(\\)?/g,We=function(e){var t=Fe(e,(function(e){return 500===r.size&&r.clear(),e})),r=t.cache;return t}((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(De,(function(e,r,o,n){t.push(o?n.replace(He,"$1"):r||e)})),t}));var Ue=function(e,t){for(var r=-1,o=null==e?0:e.length,n=Array(o);++r<o;)n[r]=t(e[r],r,e);return n},Ge=S?S.prototype:void 0,qe=Ge?Ge.toString:void 0;var Ve=function e(t){if("string"==typeof t)return t;if(x(t))return Ue(t,e)+"";if(H(t))return qe?qe.call(t):"";var r=t+"";return"0"==r&&1/t==-Infinity?"-0":r};var Ze=function(e){return null==e?"":Ve(e)};var $e=function(e,t){return x(e)?e:G(e,t)?[e]:We(Ze(e))};var Ye=function(e){if("string"==typeof e||H(e))return e;var t=e+"";return"0"==t&&1/e==-Infinity?"-0":t};var Je=function(e,t){for(var r=0,o=(t=$e(t,e)).length;null!=e&&r<o;)e=e[Ye(t[r++])];return r&&r==o?e:void 0};var Ke=function(e,t,r){var o=null==e?void 0:Je(e,t);return void 0===o?r:o};function Qe(e,t){return _(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var o,n,i=[],a=!0,l=!1;try{for(r=r.call(e);!(a=(o=r.next()).done)&&(i.push(o.value),!t||i.length!==t);a=!0);}catch(e){l=!0,n=e}finally{try{a||null==r.return||r.return()}finally{if(l)throw n}}return i}}(e,t)||b(e,t)||w()}var Xe=N((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={attributeNames:{styleName:"className"},generateScopedName:"[path]___[name]__[local]___[hash:base64:5]",handleMissingStyleName:"throw"};t.default=r})),et=T(N((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,o=(r=Xe)&&r.__esModule?r:{default:r};var n=function(e,t){if("throw"===t)throw new Error(e);return"warn"===t&&console.warn(e),null};t.default=function(e,t,r){var i=Object.keys(t),a=r||{},l=a.handleMissingStyleName,c=void 0===l?o.default.handleMissingStyleName:l,s=a.autoResolveMultipleImports,u=void 0===s?o.default.autoResolveMultipleImports:s;return e?e.split(" ").filter((function(e){return e})).map((function(e){if(function(e){return-1!==e.indexOf(".")}(e))return function(e,t,r){var i=e.split("."),a=i[0],l=i[1],c=r||o.default.handleMissingStyleName;return l?t[a]?t[a][l]?t[a][l]:n("CSS module does not exist: "+l,c):n("CSS module import does not exist: "+a,c):n("Invalid style name: "+e,c)}(e,t,c);if(0===i.length)throw new Error("Cannot use styleName attribute for style name '"+e+"' without importing at least one stylesheet.");if(i.length>1){if(!u)throw new Error("Cannot use anonymous style name '"+e+"' with more than one stylesheet import without setting 'autoResolveMultipleImports' to true.");return function(e,t,r){var i=r||o.default.handleMissingStyleName,a=Object.keys(t).map((function(r){return t[r][e]&&r})).filter((function(e){return e}));if(a.length>1)throw new Error('Cannot resolve styleName "'+e+'" because it is present in multiple imports:\n\n\t'+a.join("\n\t")+'\n\nYou can resolve this by using a named import, e.g:\n\n\timport foo from "'+a[0]+'";\n\t<div styleName="foo.'+e+'" />\n\n');return 0===a.length?n("Could not resolve the styleName '"+e+"'.",i):t[a[0]][e]}(e,t,c)}var r=t[i[0]];return r[e]?r[e]:n("Could not resolve the styleName '"+e+"'.",c)})).filter((function(e){return e})).join(" "):""}})));N((function(e){var t=function(e){var t,r=Object.prototype,o=r.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",a=n.asyncIterator||"@@asyncIterator",l=n.toStringTag||"@@toStringTag";function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,r){return e[t]=r}}function s(e,t,r,o){var n=t&&t.prototype instanceof g?t:g,i=Object.create(n.prototype),a=new k(o||[]);return i._invoke=function(e,t,r){var o=d;return function(n,i){if(o===f)throw new Error("Generator is already running");if(o===h){if("throw"===n)throw i;return S()}for(r.method=n,r.arg=i;;){var a=r.delegate;if(a){var l=T(a,r);if(l){if(l===p)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===d)throw o=h,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=f;var c=u(e,t,r);if("normal"===c.type){if(o=r.done?h:m,c.arg===p)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(o=h,r.method="throw",r.arg=c.arg)}}}(e,r,a),i}function u(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=s;var d="suspendedStart",m="suspendedYield",f="executing",h="completed",p={};function g(){}function v(){}function _(){}var y={};c(y,i,(function(){return this}));var b=Object.getPrototypeOf,w=b&&b(b(C([])));w&&w!==r&&o.call(w,i)&&(y=w);var E=_.prototype=g.prototype=Object.create(y);function x(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function L(e,t){function r(n,i,a,l){var c=u(e[n],e,i);if("throw"!==c.type){var s=c.arg,d=s.value;return d&&"object"==typeof d&&o.call(d,"__await")?t.resolve(d.__await).then((function(e){r("next",e,a,l)}),(function(e){r("throw",e,a,l)})):t.resolve(d).then((function(e){s.value=e,a(s)}),(function(e){return r("throw",e,a,l)}))}l(c.arg)}var n;this._invoke=function(e,o){function i(){return new t((function(t,n){r(e,o,t,n)}))}return n=n?n.then(i,i):i()}}function T(e,r){var o=e.iterator[r.method];if(o===t){if(r.delegate=null,"throw"===r.method){if(e.iterator.return&&(r.method="return",r.arg=t,T(e,r),"throw"===r.method))return p;r.method="throw",r.arg=new TypeError("The iterator does not provide a 'throw' method")}return p}var n=u(o,e.iterator,r.arg);if("throw"===n.type)return r.method="throw",r.arg=n.arg,r.delegate=null,p;var i=n.arg;return i?i.done?(r[e.resultName]=i.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,p):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,p)}function N(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function j(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function k(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(N,this),this.reset(!0)}function C(e){if(e){var r=e[i];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,a=function r(){for(;++n<e.length;)if(o.call(e,n))return r.value=e[n],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}return{next:S}}function S(){return{value:t,done:!0}}return v.prototype=_,c(E,"constructor",_),c(_,"constructor",v),v.displayName=c(_,l,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===v||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,_):(e.__proto__=_,c(e,l,"GeneratorFunction")),e.prototype=Object.create(E),e},e.awrap=function(e){return{__await:e}},x(L.prototype),c(L.prototype,a,(function(){return this})),e.AsyncIterator=L,e.async=function(t,r,o,n,i){void 0===i&&(i=Promise);var a=new L(s(t,r,o,n),i);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},x(E),c(E,l,"Generator"),c(E,i,(function(){return this})),c(E,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var o=t.pop();if(o in e)return r.value=o,r.done=!1,r}return r.done=!0,r}},e.values=C,k.prototype={constructor:k,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(j),!e)for(var r in this)"t"===r.charAt(0)&&o.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function n(o,n){return l.type="throw",l.arg=e,r.next=o,n&&(r.method="next",r.arg=t),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],l=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var c=o.call(a,"catchLoc"),s=o.call(a,"finallyLoc");if(c&&s){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&o.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var i=n;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,p):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),p},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),j(r),p}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var o=r.completion;if("throw"===o.type){var n=o.arg;j(r)}return n}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,o){return this.delegate={iterator:C(e),resultName:r,nextLoc:o},"next"===this.method&&(this.arg=t),p}},e}(e.exports);try{regeneratorRuntime=t}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=t:Function("r","regeneratorRuntime = r")(t)}}));var tt=function(e,t,r,o){var n=-1,i=null==e?0:e.length;for(o&&i&&(r=e[++n]);++n<i;)r=t(r,e[n],n,e);return r};var rt=function(e){return function(t){return null==e?void 0:e[t]}}({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"}),ot=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,nt=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]","g");var it=function(e){return(e=Ze(e))&&e.replace(ot,rt).replace(nt,"")},at=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;var lt=function(e){return e.match(at)||[]},ct=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;var st=function(e){return ct.test(e)},ut="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",dt="["+ut+"]",mt="\\d+",ft="[\\u2700-\\u27bf]",ht="[a-z\\xdf-\\xf6\\xf8-\\xff]",pt="[^\\ud800-\\udfff"+ut+mt+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",gt="(?:\\ud83c[\\udde6-\\uddff]){2}",vt="[\\ud800-\\udbff][\\udc00-\\udfff]",_t="[A-Z\\xc0-\\xd6\\xd8-\\xde]",yt="(?:"+ht+"|"+pt+")",bt="(?:"+_t+"|"+pt+")",wt="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?",Et="[\\ufe0e\\ufe0f]?"+wt+("(?:\\u200d(?:"+["[^\\ud800-\\udfff]",gt,vt].join("|")+")[\\ufe0e\\ufe0f]?"+wt+")*"),xt="(?:"+[ft,gt,vt].join("|")+")"+Et,Lt=RegExp([_t+"?"+ht+"+(?:['’](?:d|ll|m|re|s|t|ve))?(?="+[dt,_t,"$"].join("|")+")",bt+"+(?:['’](?:D|LL|M|RE|S|T|VE))?(?="+[dt,_t+yt,"$"].join("|")+")",_t+"?"+yt+"+(?:['’](?:d|ll|m|re|s|t|ve))?",_t+"+(?:['’](?:D|LL|M|RE|S|T|VE))?","\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",mt,xt].join("|"),"g");var Tt=function(e){return e.match(Lt)||[]};var Nt=function(e,t,r){return e=Ze(e),void 0===(t=r?void 0:t)?st(e)?Tt(e):lt(e):e.match(t)||[]},jt=RegExp("['’]","g");var kt=function(e){return function(t){return tt(Nt(it(t).replace(jt,"")),e,"")}},Ct=kt((function(e,t,r){return e+(r?" ":"")+t.toUpperCase()})),St=kt((function(e,t,r){return e+(r?" ":"")+t.toLowerCase()}));function Ot(e,t,r,o,n){var i,a=Ke(n,["localizedPublishTime",r])||r;return"hour"===t&&e>23||-1!==["day","week","month","year"].indexOf(t)?function(e,t,r,o){var n=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},i=n.showTime,a=void 0!==i&&i,l=n.isTimeFirst,c=void 0!==l&&l,s=n.isUpperCase,u=void 0!==s&&s,d=n.disableMeridiem,m=void 0!==d&&d,f=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],h=new Date(o),p=h.getDate().toString().padStart(2,0),g=f[h.getMonth()],v=g;u&&(v=Ct(g));var _,y=h.getFullYear(),b=n.localizedMeridiem,w=n.localizedMonths,E=n.direction,x=void 0===E?"ltr":E,L=zt(o),T=L;if(w&&(v=Ke(w,[St(g)])||g),b){var N=L.includes("am"),j=b.am,k=void 0===j?"am":j,C=b.pm,S=void 0===C?"pm":C;T=(N?L.replace("am",k):L.replace("pm",S))||L}return"rtl"===x?(_=a?"".concat(T):"","".concat(p," ").concat(v,", ").concat(y," ").concat(_," ")):m?"".concat(v," ").concat(p,", ").concat(y):c?"".concat(T,", ").concat(p," ").concat(v," ").concat(y):(_=a?", ".concat(T):"","".concat(p," ").concat(v,", ").concat(y).concat(_))}(e,t,r,o,n):e>1?(i=Ke(n,["localizedPublishTime","".concat(t,"s")])||"".concat(t,"s"),"".concat(e," ").concat(i," ").concat(a)):(i=Ke(n,["localizedPublishTime",t])||t,"".concat(e," ").concat(i," ").concat(a," "))}function zt(e){var t=new Date(e),r=t.getHours(),o=t.getMinutes(),n=r>=12?"pm":"am";return(r=(r%=12)||12)+":"+(o=o<10?"0"+o:o)+" "+n}var Mt=function(e){var t=function(e){return{r:parseInt(e.slice(1,3),16),g:parseInt(e.slice(3,5),16),b:parseInt(e.slice(5,7),16)}}(e);return.299*t.r+.587*t.g+.114*t.b},It=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"rgba(255, 255, 255, 0)",t=e.match(/^rgba?[\s+]?\([\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?/i);return t&&4===t.length?"#"+("0"+parseInt(t[1],10).toString(16)).slice(-2)+("0"+parseInt(t[2],10).toString(16)).slice(-2)+("0"+parseInt(t[3],10).toString(16)).slice(-2):e},At={mobile:767,tablet:1024},Pt=function(e){var t=Ke(At,e);return!!t&&Ke(global,"document.documentElement.clientWidth")<=t},Rt=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"rgb(255,255,255)",t=/^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/.test(e),r=t?e:It(e),o=Mt(r)<155?"light":"dark";return o},Bt=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.magazineSlug,o=void 0===r?"":r,n=t.isArchivePage,i=void 0!==n&&n;if(i)return"/magazine/archive/".concat(o);if(o)return"/magazine/".concat(o,"/").concat(e.slug);var a="section"===e.template;if(a){var l=Ke(e,["metadata","section","0","id"],""),c=t.sections,s=c&&c.find((function(e){return e.id===l}));return s?s["section-url"]:"/"}return"/collection/".concat(e.slug)};function Ft(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e["story-template"],r=void 0===t?"":t,o=e.metadata,n=void 0===o?{}:o;return"news-elsewhere"===r?Ke(n,["reference-url"],""):""}a.shape({"sketches-host":a.string,"cdn-name":a.string,"cdn-image":a.string}),a.shape({headline:a.string,"last-published-at":a.number,subheadline:a.string});var Dt=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return"news-elsewhere"===Ke(e,["story-template"])?Ke(e,["metadata","reference-url"],""):e.url||t},Ht=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2?arguments[2]:void 0;if(r)return r;var o=t.magazineSlug,n=void 0===o?"":o,i=t.isArchivePage,a=void 0!==i&&i;return a?"/magazine/archive/".concat(n):n?"/magazine/".concat(n,"/").concat(e.slug):e?Bt(e,t):"/"},Wt=t(),Ut=function(){return r(Wt)},Gt=function(t){var r=t.width,o=void 0===r?40:r,n=t.height,i=void 0===n?30:n,a=t.iconColor,l=void 0===a?"#99B0CB":a;return e.createElement("svg",{width:o,height:i,viewBox:"0 0 102 76",version:"1.1"},e.createElement("g",{id:"demo-home-copy",stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",transform:"translate(-377.000000, -314.000000)"},e.createElement("g",{id:"Group-13",transform:"translate(377.000000, 314.000000)"},e.createElement("path",{d:"M43.2,49.7 L62.2,19.2 L87.2,59.4 L17,59.4 L32.8,39.4 L43.2,49.7 Z M29.9,28.6 C25.8683213,28.6 22.6,25.3316787 22.6,21.3 C22.6,17.2683213 25.8683213,14 29.9,14 C33.9316787,14 37.2,17.2683213 37.2,21.3 C37.2,25.3316787 33.9316787,28.6 29.9,28.6 Z",id:"Combined-Shape",fill:l,fillRule:"nonzero"}),e.createElement("rect",{id:"Rectangle-19",stroke:l,strokeWidth:"3",x:"1.5",y:"1.5",width:"99",height:"73",rx:"3"}))))};Gt.propTypes={width:a.object,height:a.object,iconColor:a.object};var qt=function(){return e.createElement("div",{className:"arr--fallback-image fallback-m_image__1GYCJ fallback-m_image-position__3KddP"},e.createElement("figure",{className:"arr--fallback-svg fallback-m_fallback-svg__tK9fL"},e.createElement(Gt,null)))},Vt=function(t){var r=t.slug;return r?e.createElement(d,{href:r,"aria-label":"image-fallback"},qt()):qt()};Vt.propTypes={slug:a.string};var Zt={"./hero-image.m.css":{"hero-image":"hero-image-m_hero-image__3lraV","right-padding":"hero-image-m_right-padding__1LkCe","left-padding":"hero-image-m_left-padding__pYRAj","right-padding-mob":"hero-image-m_right-padding-mob__3-uOU",placeholder:"hero-image-m_placeholder__1omCm","hero-image-mob":"hero-image-m_hero-image-mob__13JJp","with-padding":"hero-image-m_with-padding__324G_",image:"hero-image-m_image__1mz0U"}},$t=function(t){var r=t.story,o=t.FullBleed,n=t.aspectRatio,i=t.defaultWidth,a=t.widths,l=t.isHorizontal,s=t.isHorizontalMobile,u=t.isHorizontalWithImageLast,h=t.defaultFallback,p=t.isStoryPageImage,g=(Ut()||{}).fallbackImageUrl,v=void 0===g?"":g,_=c((function(e){return Ke(e,["qt","config","showPlaceholder"])}))?"placeholder":"",y=o?"":"with-padding",b="hero-image";l?b="right-padding":u&&(b="left-padding");var w=s?"right-padding-mob":"",E=function(e){var t=Qe(e,2),r=t[0],o=t[1];return r>0&&o>0?o/r*100:0},x=Qe(n,2),L=x[0],T=x[1],N=void 0===T?L:T,j=Pt("mobile"),k=j?L:N,C=E(j?L:N),S=Ke(r,["hero-image-s3-key"])||Ke(r,["alternative","home","default","hero-image","hero-image-s3-key"]),O=function(){return S?e.createElement("figure",{style:{paddingTop:C+"%"},className:"arr--responsive-hero-image "+et("image ".concat(_),Zt)},e.createElement(f,{story:r,aspectRatio:k,defaultWidth:i,widths:a,imgParams:{auto:["format","compress"],fit:"max"}})):v?e.createElement("figure",{style:{paddingTop:C+"%"},className:"arr--responsive-hero-image "+et("image ".concat(_),Zt)},e.createElement(m,{slug:!p&&v,metadata:{},"aspect-ratio":k,defaultWidth:i,widths:a,imgParams:{auto:["format","compress"],fit:"max"},className:"",alt:"image-fallback"})):e.createElement(e.Fragment,null,h?e.createElement("div",{"data-test-id":"arr--fallback-hero-image",style:{paddingTop:C+"%"},className:"arr--fallback-hero-image "+et("image ".concat(_),Zt)},e.createElement(Vt,null)):null)};return r&&(p?e.createElement("div",{"data-test-id":"arr--hero-image",className:"arr--hero-image "+et("".concat(b," ").concat(y," ").concat(w),Zt)},O()):e.createElement(d,{"data-test-id":"arr--hero-image",href:Dt(r,"/".concat(r.slug)),externalLink:Ft(r),"aria-label":"fallback-hero-image",className:"arr--hero-image "+et("".concat(b," ").concat(y," ").concat(w),Zt)},O()))};function Yt(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}$t.propTypes={story:a.object.isRequired,FullBleed:a.bool,defaultWidth:a.number,widths:a.array,aspectRatio:a.array,isHorizontal:a.bool,isHorizontalMobile:a.bool,defaultFallback:a.bool,isHorizontalWithImageLast:a.bool},$t.defaultProps={FullBleed:!0,aspectRatio:[[1,1],[16,9]],defaultWidth:480,widths:[250,480,640],isHorizontal:!1,isHorizontalMobile:!1,defaultFallback:!0,isStoryPageImage:!1,isHorizontalWithImageLast:!1};var Jt={"./load-more.m.css":{button:"load-more-m_button__1mmf1",default:"load-more-m_default__2_k4V",dark:"load-more-m_dark__3dfzb",light:"load-more-m_light__ePZQI"}};function Kt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,o)}return r}function Qt(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Kt(Object(r),!0).forEach((function(t){Yt(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Kt(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var Xt=function(t){var r=t.config,o=void 0===r?{}:r,n=t.collection,i=t.template,a=void 0===i?"SubsequentLoadCount":i,l=t.onClick,c=t.navigate,s=t.qtConfig,u=o.showButton,d=void 0===u||u,m=o.buttonText,f=void 0===m?"Read More":m,p=o.theme,g=void 0===p?"":p,v=o.customUrlPath,_=void 0===v?"":v;if(!d)return null;var y=Rt(g),b=_?"/".concat(_):Ht(n,Qt(Qt({},s),o));return"SubsequentLoadCount"===a?e.createElement("div",{onClick:l,"data-test-id":"load-more",className:"arr--button "+et("button ".concat(y," default"),Jt)},f):e.createElement(h,{href:b,navigateTo:c,"data-test-id":"load-more","aria-label":"load-more"},e.createElement("div",{className:"arr--button "+et("button ".concat(y," default"),Jt)},f))};Xt.propTypes={collection:a.object,template:a.string,config:a.object,onClick:a.func,navigate:a.func,qtConfig:a.object};var er={"./collection-name.m.css":{collection:"collection-name-m_collection__JD6sx","collection-borderLeft":"collection-name-m_collection-borderLeft__3Dznk","border-left":"collection-name-m_border-left__3_pYw","collection-borderBottomFull":"collection-name-m_collection-borderBottomFull__Dkq3K","collection-borderBottom":"collection-name-m_collection-borderBottom__2rdQM","collection-crossLine":"collection-name-m_collection-crossLine__1sIpN","border-bottom":"collection-name-m_border-bottom__1MnlV",dark:"collection-name-m_dark__nMe5H",light:"collection-name-m_light__1vFDN"}},tr=function(t){var r=t.collectionNameBorderColor,o=void 0===r?"":r,n=t.collection,i=t.config,a=t.collectionNameTemplate,l=t.headerLevel,c=t.customCollectionName,s=void 0===c?"":c,u=t.navigate,m=void 0===u||u,f=Ut()||{},h=Ke(f,["showRowTitle"],!0),p=["borderLeft","borderBottom","crossLine","borderBottomFull"].includes(a)?" collection-".concat(a):"",g=m&&n&&Bt(n,i)||"",v=s||n.name||"",_=Rt(f.theme),y="h"+l,b=It(o),w=p.includes("collection-borderBottomFull")?"4px solid ".concat(b):"",E=Pt("mobile");return e.createElement(e.Fragment,null,h&&v&&e.createElement("div",{style:{borderBottom:w},"data-test-id":"collection-name",className:"arr--collection-name arrow-component "+et("collection ".concat(_," ").concat(p),er)},p.includes("collection-borderLeft")&&e.createElement("span",{className:"arr-collection-name-border-left collection-name-m_border-left__3_pYw",style:{color:b,fontSize:function(){if(E)switch(l){case"1":return"32px";case"2":return"24px";case"3":return"20px";case"4":return"18px";case"5":case"6":return"16px";default:return"20px"}switch(l){case"1":return"40px";case"2":return"32px";case"3":return"24px";case"4":return"20px";case"5":return"18px";case"6":return"16px";default:return"24px"}}()}}),g&&!g.includes(void 0)?e.createElement(d,{href:g,"aria-label":"collection-name"},e.createElement(y,null,v)):e.createElement(y,null,v),p.includes("collection-borderBottom")&&!p.includes("collection-borderBottomFull")?e.createElement("div",{className:"collection-name-m_border-bottom__1MnlV",style:{borderBottom:"4px solid ".concat(b)}}):""))};tr.propTypes={collectionNameBorderColor:l.string,collection:l.object,config:l.object,collectionNameTemplate:l.oneOf(["","borderLeft","borderBottom","crossLine","borderBottomFull"]),headerLevel:l.string,customCollectionName:l.string,navigate:l.bool},tr.defaultProps={collectionNameTemplate:"",headerLevel:"3"};var rr=s((function(e){return{config:Ke(e,["qt","config"],{})}}))(tr),or=function(t){var r=t.height,o=t.width,n=t.color,i=void 0===n?"#D8D8D8":n,a=t.positionTop;return e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:o,height:r,viewBox:"0 0 40 40",style:{position:"relative",top:a}},e.createElement("g",{fill:"none",fillRule:"evenodd",stroke:"none",strokeWidth:"1"},e.createElement("g",null,e.createElement("g",{transform:"translate(8 8)"},e.createElement("path",{d:"M0 0H24V24H0z"}),e.createElement("g",{fill:i,fillRule:"nonzero",transform:"translate(0 2)"},e.createElement("path",{d:"M21.043 19.553c0-.743-.601-1.344-1.344-1.344h-15.4a1.343 1.343 0 100 2.688h15.4c.743 0 1.344-.603 1.344-1.344zM1.598 8.673c.022 0 .042 0 .064-.003l2.131 7.713h16.411l2.132-7.713c.022 0 .041.003.063.003a1.599 1.599 0 10-1.52-1.108L17.025 9.82 12.882 2.95a1.599 1.599 0 10-1.765 0L6.976 9.82 3.121 7.565a1.599 1.599 0 10-1.523 1.107z"}))))))};or.propTypes={height:a.string,width:a.string,color:a.string,positionTop:a.string};var nr=function(t){var r=t.height,o=t.width,n=t.color,i=void 0===n?"#D5D5D5":n,a=t.positionTop;return e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:o,height:r,viewBox:"0 0 40 40",style:{position:"relative",top:a}},e.createElement("g",{fill:"none",fillRule:"evenodd",stroke:"none",strokeWidth:"1"},e.createElement("g",null,e.createElement("g",{transform:"translate(8 8)"},e.createElement("path",{d:"M0 0H24V24H0z"}),e.createElement("path",{fill:i,fillRule:"nonzero",d:"M12.71 4.364A6.54 6.54 0 000 6.545a6.54 6.54 0 0012.71 2.182h4.745v4.364h4.363V8.727H24V4.364H12.71zM6.544 8.727a2.181 2.181 0 110-4.362 2.181 2.181 0 010 4.362z",transform:"translate(0 5)"})))))};nr.propTypes={height:a.string,width:a.string,color:a.string,positionTop:a.string};var ir=function(t){var r=t.height,o=t.width,n=t.color,i=void 0===n?"#D5D5D5":n,a=t.positionTop;return e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:o,height:r,viewBox:"0 0 40 40",style:{position:"relative",top:a}},e.createElement("g",{fill:"none",fillRule:"evenodd",stroke:"none",strokeWidth:"1"},e.createElement("g",null,e.createElement("g",{transform:"translate(8 8)"},e.createElement("path",{d:"M0 0H24V24H0z"}),e.createElement("g",{fill:i,fillRule:"nonzero",transform:"translate(3)"},e.createElement("path",{d:"M15.692 9h-.747V6c0-3.31-2.681-6-5.978-6C5.67 0 2.989 2.69 2.989 6v3h-.747A2.249 2.249 0 000 11.25v10.5A2.249 2.249 0 002.242 24h13.45a2.249 2.249 0 002.242-2.25v-10.5A2.249 2.249 0 0015.692 9zM4.982 6c0-2.206 1.787-4 3.985-4s3.985 1.794 3.985 4v3h-7.97V6z"}))))))};ir.propTypes={height:a.string,width:a.string,color:a.string,positionTop:a.string};var ar=function(t){var r=t.width,o=t.height,n=t.color,i=void 0===n?"#D5D5D5":n,a=t.positionTop,l=void 0===a?"":a;return e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:r,height:o,viewBox:"0 0 40 40",style:{position:"relative",top:l}},e.createElement("g",{fill:"none",fillRule:"evenodd",stroke:"none",strokeWidth:"1"},e.createElement("g",null,e.createElement("path",{fill:i,d:"M20 26L12.946577 29.7082039 14.2936609 21.854102 8.5873218 16.2917961 16.4732885 15.145898 20 8 23.5267115 15.145898 31.4126782 16.2917961 25.7063391 21.854102 27.053423 29.7082039z"}))))};ar.propTypes={height:a.string,width:a.string,color:a.string,positionTop:a.string};var lr=function(t){var r=t.width,o=t.height,n=t.color,i=t.iconType,a=t.positionTop;switch(i){case"crown":return e.createElement(or,{width:r,height:o,color:n,positionTop:a});case"lock":return e.createElement(ir,{width:r,height:o,color:n,positionTop:a});case"key":return e.createElement(nr,{width:r,height:o,color:n,positionTop:a});default:return e.createElement(ar,{width:r,height:o,color:n,positionTop:a})}};lr.propTypes={width:a.string,height:a.string,color:a.string,iconType:a.string,positionTop:a.string};var cr={"./headline.m.css":{wrapper:"headline-m_wrapper__3nUmh",headline:"headline-m_headline__3_NhV",dark:"headline-m_dark__en3hW",light:"headline-m_light__3lKJB"}},sr=function(t){var r=t.story,o=t.headerLevel,n=t.premiumStoryIconConfig,i=void 0===n?{}:n,a=t.isLink,l=Ut()||{},c=i.iconColor,s=void 0===c?"#F7B500":c,u=i.iconStyle,m=void 0===u?"star":u,f=i.enablePremiumStoryIcon,h=void 0!==f&&f,p=Ke(r,["alternative","home","default","headline"]),g=h&&"subscription"===Ke(r,["access"]),v=p||r.headline,_="h"+o,y=Rt(l.theme),b=g?"wrapper":"",w="24px";return e.createElement("div",{"data-test-id":"headline",className:"arrow-component arr--headline "+et(b,cr)},g&&e.createElement(lr,{width:w,height:w,color:s,iconType:m,positionTop:function(){switch(parseInt(o)){case 1:return"-2px";case 2:return"2px";case 3:return"4px";case 4:return"5px";default:return"6px"}}()}),a?e.createElement(d,{href:Dt(r,"/".concat(r.slug)),externalLink:Ft(r),"aria-label":"headline"},e.createElement(_,{className:et("headline ".concat(y),cr)},v)):e.createElement(_,{className:et("headline ".concat(y),cr)},v))};sr.propTypes={story:a.object.isRequired,headerLevel:a.string,premiumStoryIconConfig:a.shape({iconColor:a.string,iconType:a.string,enablePremiumStoryIcon:a.bool}),isLink:a.bool},sr.defaultProps={headerLevel:"6",isLink:!0};var ur={"./section.m.css":{section:"section-m_section__2N4S3","section-borderBottomSml":"section-m_section-borderBottomSml__2GNbo","border-bottom":"section-m_border-bottom__3cRoD","section-borderLeft":"section-m_section-borderLeft__3hKVj","border-left":"section-m_border-left__2oUyp","section-solid":"section-m_section-solid__1vB1Q",dark:"section-m_dark__1r3C4",light:"section-m_light__306hW"}},dr=function(t){var r=t.story,o=t.template,n=void 0===o?"":o,i=t.borderColor,a=void 0===i?"":i,l=t.isLightTheme,c=Ut()||{},s=Ke(c,["showSection"],!0),u=Ke(c,["sectionTagTemplate"]),m=Ke(r,["sections",0],""),f=["borderBottomSml","borderLeft","solid"],h=m?m["section-url"]:"/",p="solid"===n||"solid"===u?a:c.theme,g=l?"light":Rt(p),v=It(a),_=f.includes(n)?"section section-".concat(n):"section";return u&&(_=f.includes(u)?"section section-".concat(u):"section"),s?e.createElement(d,{href:h,className:"arrow-component arr--section-name","aria-label":"section-name"},e.createElement("div",{"data-test-id":"sectionTag",style:{backgroundColor:_.includes("section-solid")?v:""},className:"section-tag arrow-component "+et("".concat(g," ").concat(_),ur)},_.includes("section-borderLeft")&&e.createElement("span",{className:"section-m_border-left__2oUyp",style:{color:v}}),m["display-name"]||m.name,e.createElement("div",{className:"section-m_border-bottom__3cRoD",style:{backgroundColor:"".concat("solid"===n?"":v)}}))):null};dr.propTypes={story:a.object.isRequired,template:a.oneOf(["","borderBottomSml","borderLeft","solid"]),borderColor:a.string,solidBorderColor:a.string,isLightTheme:a.bool},dr.defaultProps={template:"",isLightTheme:!1};var mr={"./timestamp.m.css":{time:"timestamp-m_time__2v46i","time-wrapper":"timestamp-m_time-wrapper__3O2lM","bottom-fix":"timestamp-m_bottom-fix__1Zh8r",dark:"timestamp-m_dark__2lk9E",light:"timestamp-m_light__2QlrI"}},fr=function(t){var r=t.story,o=t.isBottom,n=t.config,i=void 0===n?{}:n,a=Ut()||{},l=Ke(a,["showTime"],!0),c=r["last-published-at"]||r["first-published-at"],s=o?"bottom-fix":"",u=Rt(a.theme);return e.createElement(e.Fragment,null,l&&e.createElement("div",{"data-test-id":"publish-time",className:"time arr--publish-time "+et("time ".concat(u," ").concat(s),mr)},e.createElement("div",{className:"timestamp-m_time-wrapper__3O2lM"},function(t,r){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return e.createElement(g,{date:t,formatter:function(e,t,n,i){return r(e,t,n,i,o)}})}(c,Ot,i))))};fr.propTypes={story:a.object,isBottom:a.bool,config:a.object};var hr={"./author.m.css":{author:"author-m_author__WRuLm","author-image":"author-m_author-image__3q2oc","author-name":"author-m_author-name__3WP-O","bottom-fix":"author-m_bottom-fix__223TT",prefix:"author-m_prefix__YSInK","rtl-image":"author-m_rtl-image__2nglD","ltr-image":"author-m_ltr-image__3bc0L",dark:"author-m_dark__2TTlp",light:"author-m_light__3y8_x"}},pr=function(t){var r=t.story,o=t.hideAuthorImage,n=t.isBottom,i=t.prefix,a=void 0===i?"":i,l=t.config,c=void 0===l?{}:l,s=Ut()||{},u=Ke(s,["showAuthor"],!0),f=Ke(r,["authors","0"],""),h=f["avatar-url"],p=f["avatar-s3-key"],g=f.name,v=f.slug,_=n?"bottom-fix":"",y=Rt(s.theme),b=Ke(c,["mountAt"],""),w=function(t){return a?e.createElement("div",{className:"arr-author-prefix "+et("prefix ".concat(y),hr)},a):!o&&function(t){return h||p?e.createElement("div",{"data-test-id":"author-image",className:et("author-image ".concat(t,"-image"),hr)},e.createElement("figure",null,p?e.createElement(m,{slug:p,"aspect-ratio":[1,1],defaultWidth:400,imgParams:{auto:["format","compress"]},alt:g}):e.createElement("img",{src:h}))):null}(t)};return e.createElement(e.Fragment,null,u&&e.createElement(d,{href:"".concat(b,"/author/")+v,"aria-label":"author-name",className:"author-name arr-author-name arrow-component "+et("author ".concat(_),hr)},w("ltr"),e.createElement("div",{"data-test-id":"author-name",className:"author-name "+et("author-name ".concat(y),hr)},g||r["author-name"]),!a&&w("rtl")))};var gr=s((function(e){return{config:Ke(e,["qt","config"],{})}}))(pr);pr.propTypes={story:a.object.isRequired,hideAuthorImage:a.bool,isBottom:a.bool,prefix:a.string,config:a.object},pr.defaultProps={hideAuthorImage:!1,isBottom:!1,prefix:""};var vr={"./dot.m.css":{dark:"dot-m_dark__1Njxl",light:"dot-m_light__27IA3"}},_r=function(t){var r=t.width,o=void 0===r?"3px":r,n=t.height,i=void 0===n?"3px":n,a=t.color,l=void 0===a?"light":a;return e.createElement("div",{className:et(l,vr)},e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:o,height:i,viewBox:"0 0 3 3"},e.createElement("circle",{cx:"87",cy:"9",r:"1",fill:"inherit",fillRule:"nonzero",transform:"translate(-86 -8)"})))};_r.propTypes={color:a.string,width:a.string,height:a.string};var yr={"./divider.m.css":{dark:"divider-m_dark__26FRi",light:"divider-m_light__w-7sy"}},br=function(t){var r=t.width,o=void 0===r?"1":r,n=t.height,i=void 0===n?"10":n,a=t.color,l=void 0===a?"light":a;return e.createElement("div",{className:et(l,yr)},e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:o,height:i},e.createElement("path",{fill:"inherit",d:"M0 0h1v10H0z"})))};br.propTypes={color:a.string,width:a.string,height:a.string};var wr={"./read-time.m.css":{"read-time-wrapper":"read-time-m_read-time-wrapper__3GyC_","dot-indicator":"read-time-m_dot-indicator__3Sqh2",dark:"read-time-m_dark__3yRaK",light:"read-time-m_light__1GAZu"}},Er=function(t){var r=t.story,o=t.opts,n=void 0===o?{}:o,i=t.isLightTheme,a=void 0!==i&&i,l=Ut()||{},c=Ke(l,["showReadTime"])||Ke(n,["showReadTime"],!0),s=Ke(r,["read-time"],0),u=a?"light":Rt(l.theme);if(!c||!s)return null;var d=Ke(n,["localizedTimeToRead"])||"min read";return e.createElement(e.Fragment,null,e.createElement("div",{"data-test-id":"read-time",className:"arrow-component arr--read-time "+et("read-time-wrapper ".concat(u),wr)},e.createElement("span",{className:"read-time-indicator read-time-m_dot-indicator__3Sqh2"},e.createElement(_r,{color:u})),e.createElement("span",null,s," ",d)))};Er.propTypes={story:a.shape({"read-time":a.number}),opts:a.shape({showReadTime:a.bool}),isLightTheme:a.bool};var xr={"./author-with-timestamp.m.css":{"author-time-wrapper":"author-with-timestamp-m_author-time-wrapper__G7_eI","author-image":"author-with-timestamp-m_author-image__24xrD",dot:"author-with-timestamp-m_dot__1LHXD","bottom-fix":"author-with-timestamp-m_bottom-fix__1rWGv",dash:"author-with-timestamp-m_dash__2L5XC"}},Lr=function(t){var r=t.story,o=t.separator,n=t.isBottom,i=t.hideAuthorImage,a=t.prefix,l=t.config,c=void 0===l?{}:l,s=t.isLightTheme,u=Ut()||{},d=Ke(c,["showAuthor"],Ke(u,["showAuthor"],!0)),m=Ke(u,["showTime"],!0),f=Ke(u,["showReadTime"],!0),h=n?"bottom-fix":"",p="dot"===o?"dot":"dash",g=s?"light":Rt(u.theme),v=function(){return m?e.createElement(e.Fragment,null,d&&e.createElement("span",{className:"arr-separator "+et("".concat(p),xr)},"divider"===o?e.createElement(br,{color:g}):e.createElement(_r,{color:g})),e.createElement(fr,{story:r,config:c}),f&&e.createElement(Er,{story:r,opts:c,isLightTheme:s})):null};return e.createElement("div",{className:"arr--author-time "+et("author-time-wrapper ".concat(h),xr)},d?e.createElement(e.Fragment,null,e.createElement(gr,{story:r,isBottom:!0,hideAuthorImage:i,prefix:a}),v()):v())};Lr.propTypes={story:a.object,separator:a.oneOf(["dot","divider"]),hideAuthorImage:a.bool,isBottom:a.bool,prefix:a.string,config:a.object,isLightTheme:a.bool},Lr.defaultProps={separator:"dot",isBottom:!1,hideAuthorImage:!0,prefix:"",isLightTheme:!1};var Tr={"./storycardContent.m.css":{wrapper:"storycardContent-m_wrapper__TEmfA","horizontal-content-wrapper":"storycardContent-m_horizontal-content-wrapper__NgpuC","border-full":"storycardContent-m_border-full__2km37"}},Nr=function(t){var r=t.story,o=t.children,n=t.theme,i=t.border,a=t.isHorizontalMobile,l=t.headerLevel,c=t.borderColor,s=t.config,u=Rt(n),d=It(c),m=["full"].includes(i)?"border-".concat(i):"",f=a?"horizontal-content-wrapper":"";return e.createElement("div",{"data-test-id":"story-card-content",style:{backgroundColor:n,color:u},className:"arr--content-wrapper "+et("wrapper ".concat(m," ").concat(f),Tr)},o||e.createElement(jr,{story:r,headerLevel:l,isHorizontalMobile:a,borderColor:d,config:s}))},jr=function(t){var r=t.story,o=t.headerLevel,n=t.borderColor,i=t.config,a=void 0===i?{}:i,l=It(n),c=a.localizationConfig,s=void 0===c?{}:c;return e.createElement("div",null,e.createElement(dr,{story:r,borderColor:l}),e.createElement(sr,{story:r,headerLevel:o,premiumStoryIconConfig:a}),e.createElement(Lr,{config:s,story:r}))};jr.propTypes={story:a.object.isRequired,border:a.string,theme:a.string,isHorizontalMobile:a.bool,headerLevel:a.string,borderColor:a.string,config:a.object},Nr.propTypes={story:a.object.isRequired,children:a.node,theme:a.string,border:a.string,isHorizontalMobile:a.bool,headerLevel:a.string,borderColor:a.string,config:a.object};var kr="undefined"!=typeof window,Cr=function(){return Promise.resolve(kr&&!(void 0!==window.IntersectionObserver)&&import("intersection-observer"))},Sr={root:null,rootMargin:"200px 0px 0px 0px"},Or=function(e,t){e.filter((function(e){return e.isIntersecting})).forEach((function(e){e.target._onIntersect(t)}))},zr=function(e){var t=e.ref,r=Qe(o(!1),2),i=r[0],a=r[1];return n((function(){var e=t.current;if(e)return Cr().then((function(e){if(kr)return new window.IntersectionObserver(Or,Sr)})).then((function(t){return t.observe(e)})),e._onIntersect=function(t){a(!0),t.unobserve(e)},function(){return e._isSubscribed=!1}}),[t]),i},Mr={__html:""},Ir="undefined"==typeof window,Ar=function(t){var r=t.children,o=i(null),a=zr({ref:o});return n((function(){var e=o.current;if(a){var t=e.hasChildNodes()?"hydrate":"render";v[t](r,e)}}),[r,a]),Ir?e.createElement("div",{ref:o},r):e.createElement("div",{ref:o,suppressHydrationWarning:!0,dangerouslySetInnerHTML:Mr})};Ar.propTypes={children:a.element};var Pr=function(t){var r=t.collection,o=t.componentName,n=t.offset,i=t.limit;return e.createElement("div",{id:"ELM-".concat(r.id),"data-collection-slug":r.slug,"data-component-name":o,"data-collection-offset":n,"data-collection-limit":i})};Pr.propTypes={collection:a.shape({id:a.string,slug:a.string}),componentName:a.string,offset:a.number,limit:a.number};var Rr=function(t){var r=t.collection,o=t.config,n=t.getMoreStories,i=t.isLoadMoreVisible,a=t.isLoading,l=t.isolatedLoadMore,s=t.hideFirstCard,d=p(r);if(!d.length)return null;var m=o.collectionNameBorderColor,f=void 0===m?"":m,h=o.theme,g=void 0===h?"":h,v=o.slotConfig,_=void 0===v?[]:v,y=o.collectionNameTemplate,b=void 0===y?"":y,w=o.footerButton,x=void 0===w?"":w,L=o.borderColor,T=void 0===L?"":L,N=Ke(_,[0],{}),j=N.type,k=void 0===j?"story":j,C=N.component,S=Rt(g),O=It(T),z="ad"===k||"widget"===k?function(e,t,r,o){switch(e){case"story":return r();case"collection":return o();default:return t?t():null}}(k,C):null,M=u(),I=c((function(e){return Ke(e,["qt","config"],{})})),A=E(d||[]),P=A[0],R=A.slice(1),B=function(t){return e.createElement(e.Fragment,null,e.createElement($t,{story:t,aspectRatio:[[16,9]]}),e.createElement(Nr,{theme:g,story:t,config:o,headerLevel:6,borderColor:O}))},F=function(t,r){return e.createElement("div",{className:"four-col-five-stories-m_card__2lzhH","data-test-id":"story-card",key:"four-col-five-story-".concat(r,"-").concat(Ke(t,["id"],"0"))},B(t))},D=s?d:R;return e.createElement("div",{className:"full-width-with-padding arrow-component","data-test-id":"four-col-five-stories",style:{backgroundColor:g,color:S}},e.createElement("div",{className:"four-col-five-stories-m_four-col-five-stories__16ja_"},e.createElement(rr,{collection:r,collectionNameTemplate:b,collectionNameBorderColor:f,headerLevel:2}),e.createElement("div",{className:"four-col-five-stories-m_wrapper__31KAU"},!s&&e.createElement("div",{className:"four-col-five-stories-m_first-card__3dXVH","data-test-id":"story-card"},B(P)),e.createElement("div",{className:"four-col-five-stories-m_other-cards__1P4k5"},D.slice(0,3).map((function(e,t){return F(e,t)})),z,D.slice(3).map((function(e,t){return F(e,t)})))),function(t){if(!i)return null;if(l)return e.createElement(Pr,{collection:r,componentName:"FourColFiveStories",offset:d.length,limit:4});var n=Ht(r,I);return e.createElement(Ar,null,e.createElement(Xt,{config:o,collection:r,template:x,onClick:function(){return function(e){var t=e.isLoading,r=e.renderStories,o=e.getMoreStories;t||o(r.length+1,4)}(t)},navigate:function(){return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";global.app.navigateToPage(e,t)}(M,n)},qtConfig:I}))}({isLoading:a,renderStories:D,getMoreStories:n})))};Rr.propTypes={collection:a.object,config:a.shape({collectionNameBorderColor:a.string,theme:a.string,slotConfig:a.array,collectionNameTemplate:a.string,footerButton:a.string,borderColor:a.string}),getMoreStories:a.func,isLoading:a.bool,hideFirstCard:a.bool,isLoadMoreVisible:a.bool,isolatedLoadMore:a.bool},Rr.defaultProps={getMoreStories:function(){},isLoadMoreVisible:!0,isLoading:!1,collection:{},config:{},hideFirstCard:!1};var Br,Fr=(Br=Rr,function(t){return e.createElement(Wt.Provider,{value:t.config},e.createElement(Br,t))});export{Fr as default};