@quintype/arrow 3.13.0 → 3.14.0-revert-removing-index.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 (78) 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/AstrologyCollection/index.js +1 -0
  5. package/Attachment/index.js +1 -0
  6. package/Author/index.js +1 -0
  7. package/AuthorIntroductionCard/index.js +1 -0
  8. package/AuthorWithTime/index.js +1 -0
  9. package/AuthorsList/index.js +1 -0
  10. package/BigFact/index.js +1 -0
  11. package/BlockQuote/index.js +1 -0
  12. package/Blurb/index.js +1 -0
  13. package/CollectionFilter/index.js +1 -0
  14. package/CollectionName/index.js +1 -0
  15. package/ElevenStories/index.js +1 -0
  16. package/FourColFiveStories/index.js +1 -0
  17. package/FourColGrid/index.js +1 -0
  18. package/FourColPortraitStories/index.js +1 -0
  19. package/FourColSixteenStories/index.js +1 -0
  20. package/FourColTwelveStories/index.js +1 -0
  21. package/FourStorySlider/index.js +1 -0
  22. package/FourStorySliderPortrait/index.js +1 -0
  23. package/FourTabbedBigStorySlider/index.js +1 -0
  24. package/FullScreenSlider/index.js +1 -0
  25. package/HalfScreenSlider/index.js +1 -0
  26. package/Headline/index.js +1 -0
  27. package/HeroImage/index.js +1 -0
  28. package/Image/index.js +1 -0
  29. package/ImageGallery/index.js +1 -0
  30. package/ImageSlideshow/index.js +1 -0
  31. package/KeyEvents/index.js +1 -0
  32. package/ListComponent/index.js +1 -0
  33. package/ListicleStoryTemplate/index.js +1 -0
  34. package/Listicles/index.js +1 -0
  35. package/LiveBlogStoryTemplate/index.js +1 -0
  36. package/LoadmoreButton/index.js +1 -0
  37. package/MagazineEditions/index.js +1 -0
  38. package/MagazineHeaderCard/index.js +1 -0
  39. package/MagazineWidget/index.js +1 -0
  40. package/OneColStoryList/index.js +1 -0
  41. package/OpinionCollection/index.js +1 -0
  42. package/PageIntroductionCard/index.js +1 -0
  43. package/PhotoStoryTemplate/index.js +1 -0
  44. package/QuestionAnswer/index.js +1 -0
  45. package/Quote/index.js +1 -0
  46. package/Reference/index.js +1 -0
  47. package/ScrollSnap/index.js +1 -0
  48. package/SectionTag/index.js +1 -0
  49. package/SixColSixStories/index.js +1 -0
  50. package/SocialShareTemplate/index.js +1 -0
  51. package/StoryCard/index.js +1 -0
  52. package/StoryCollection/index.js +1 -0
  53. package/StoryElement/index.js +1 -0
  54. package/StoryElementCard/index.js +1 -0
  55. package/StorycardContent/index.js +1 -0
  56. package/Subheadline/index.js +1 -0
  57. package/Summary/index.js +1 -0
  58. package/TagIntroductionCard/index.js +1 -0
  59. package/Text/index.js +1 -0
  60. package/TextStoryTemplate/index.js +1 -0
  61. package/ThreeColFlexStories/index.js +1 -0
  62. package/ThreeColFourteenStories/index.js +1 -0
  63. package/ThreeColGrid/index.js +1 -0
  64. package/ThreeColSevenStory/index.js +1 -0
  65. package/ThreeColSixStories/index.js +1 -0
  66. package/ThreeColTwelveStories/index.js +1 -0
  67. package/TimeStamp/index.js +1 -0
  68. package/TwoColFourStories/index.js +1 -0
  69. package/TwoColFourStoryHighlight/index.js +1 -0
  70. package/TwoColSevenStories/index.js +1 -0
  71. package/TwoColSixStories/index.js +1 -0
  72. package/TwoColTenStoriesSidebar/index.js +1 -0
  73. package/TwoColThreeStories/index.js +1 -0
  74. package/Video/index.js +1 -0
  75. package/VideoStoryTemplate/index.js +1 -0
  76. package/cjs/index.js +1 -1
  77. package/esm/index.js +1 -1
  78. package/package.json +1 -1
@@ -0,0 +1 @@
1
+ import t,{useContext as e,createContext as r}from"react";import n from"lodash.get";import{Link as o,LazyLoadImages as a,ResponsiveImage as i}from"@quintype/components";import l from"prop-types";import"react-timeago";import"date-fns-tz";function s(){return s=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},s.apply(this,arguments)}function c(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r,n,o={},a=Object.keys(t);for(n=0;n<a.length;n++)r=a[n],e.indexOf(r)>=0||(o[r]=t[r]);return o}(t,e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(n=0;n<a.length;n++)r=a[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}var u="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function f(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function h(t){var e={exports:{}};return t(e,e.exports),e.exports}var p=h((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})),d=f(h((function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r,n=(r=p)&&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 a=Object.keys(e),i=r||{},l=i.handleMissingStyleName,s=void 0===l?n.default.handleMissingStyleName:l,c=i.autoResolveMultipleImports,u=void 0===c?n.default.autoResolveMultipleImports:c;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 a=t.split("."),i=a[0],l=a[1],s=r||n.default.handleMissingStyleName;return l?e[i]?e[i][l]?e[i][l]:o("CSS module does not exist: "+l,s):o("CSS module import does not exist: "+i,s):o("Invalid style name: "+t,s)}(t,e,s);if(0===a.length)throw new Error("Cannot use styleName attribute for style name '"+t+"' without importing at least one stylesheet.");if(a.length>1){if(!u)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 a=r||n.default.handleMissingStyleName,i=Object.keys(e).map((function(r){return e[r][t]&&r})).filter((function(t){return t}));if(i.length>1)throw new Error('Cannot resolve styleName "'+t+'" 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.'+t+'" />\n\n');return 0===i.length?o("Could not resolve the styleName '"+t+"'.",a):e[i[0]][t]}(t,e,s)}var r=e[a[0]];return r[t]?r[t]:o("Could not resolve the styleName '"+t+"'.",s)})).filter((function(t){return t})).join(" "):""}}))),v=["element","render"],m=function(e){return function(r){var n=r.element,o=r.render,a=c(r,v);return n?o&&"function"==typeof o?o(r):t.createElement(e,s({},a,{element:n})):null}};m.propTypes={StoryElement:l.element};var y=function(e){var r=e.width,n=void 0===r?40:r,o=e.height,a=void 0===o?30:o,i=e.iconColor,l=void 0===i?"#99B0CB":i;return t.createElement("svg",{width:n,height:a,viewBox:"0 0 102 76",version:"1.1"},t.createElement("g",{id:"demo-home-copy",stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",transform:"translate(-377.000000, -314.000000)"},t.createElement("g",{id:"Group-13",transform:"translate(377.000000, 314.000000)"},t.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"}),t.createElement("rect",{id:"Rectangle-19",stroke:l,strokeWidth:"3",x:"1.5",y:"1.5",width:"99",height:"73",rx:"3"}))))};y.propTypes={width:l.object,height:l.object,iconColor:l.object};var g=function(){return t.createElement("div",{className:"arr--fallback-image fallback-m_image__1GYCJ fallback-m_image-position__3KddP"},t.createElement("figure",{className:"arr--fallback-svg fallback-m_fallback-svg__tK9fL"},t.createElement(y,null)))},_=function(e){var r=e.slug;return r?t.createElement(o,{href:r,"aria-label":"image-fallback"},g()):g()};function b(t){return b="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},b(t)}_.propTypes={slug:l.string},h((function(t){var e=function(t){var e,r=Object.prototype,n=r.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",i=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function s(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(t){s=function(t,e,r){return t[e]=r}}function c(t,e,r,n){var o=e&&e.prototype instanceof m?e:m,a=Object.create(o.prototype),i=new L(n||[]);return a._invoke=function(t,e,r){var n=f;return function(o,a){if(n===p)throw new Error("Generator is already running");if(n===d){if("throw"===o)throw a;return A()}for(r.method=o,r.arg=a;;){var i=r.delegate;if(i){var l=O(i,r);if(l){if(l===v)continue;return l}}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 s=u(t,e,r);if("normal"===s.type){if(n=r.done?d:h,s.arg===v)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(n=d,r.method="throw",r.arg=s.arg)}}}(t,r,i),a}function u(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=c;var f="suspendedStart",h="suspendedYield",p="executing",d="completed",v={};function m(){}function y(){}function g(){}var _={};s(_,a,(function(){return this}));var b=Object.getPrototypeOf,w=b&&b(b(N([])));w&&w!==r&&n.call(w,a)&&(_=w);var j=g.prototype=m.prototype=Object.create(_);function E(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function x(t,e){function r(o,a,i,l){var s=u(t[o],t,a);if("throw"!==s.type){var c=s.arg,f=c.value;return f&&"object"==typeof f&&n.call(f,"__await")?e.resolve(f.__await).then((function(t){r("next",t,i,l)}),(function(t){r("throw",t,i,l)})):e.resolve(f).then((function(t){c.value=t,i(c)}),(function(t){return r("throw",t,i,l)}))}l(s.arg)}var o;this._invoke=function(t,n){function a(){return new e((function(e,o){r(t,n,e,o)}))}return o=o?o.then(a,a):a()}}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=u(n,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,v;var a=o.arg;return a?a.done?(r[t.resultName]=a.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,v):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,v)}function S(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 k(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function L(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(S,this),this.reset(!0)}function N(t){if(t){var r=t[a];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=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 i.next=i}}return{next:A}}function A(){return{value:e,done:!0}}return y.prototype=g,s(j,"constructor",g),s(g,"constructor",y),y.displayName=s(g,l,"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,s(t,l,"GeneratorFunction")),t.prototype=Object.create(j),t},t.awrap=function(t){return{__await:t}},E(x.prototype),s(x.prototype,i,(function(){return this})),t.AsyncIterator=x,t.async=function(e,r,n,o,a){void 0===a&&(a=Promise);var i=new x(c(e,r,n,o),a);return t.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},E(j),s(j,l,"Generator"),s(j,a,(function(){return this})),s(j,"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=N,L.prototype={constructor:L,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(k),!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 l.type="throw",l.arg=t,r.next=n,o&&(r.method="next",r.arg=e),!!o}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],l=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var s=n.call(i,"catchLoc"),c=n.call(i,"finallyLoc");if(s&&c){if(this.prev<i.catchLoc)return o(i.catchLoc,!0);if(this.prev<i.finallyLoc)return o(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return o(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return o(i.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 a=o;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,v):this.complete(i)},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),k(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;k(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:N(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 w=Array.isArray,j="object"==typeof u&&u&&u.Object===Object&&u,E="object"==typeof self&&self&&self.Object===Object&&self,x=j||E||Function("return this")(),O=x.Symbol,S=Object.prototype,k=S.hasOwnProperty,L=S.toString,N=O?O.toStringTag:void 0;var A=function(t){var e=k.call(t,N),r=t[N];try{t[N]=void 0;var n=!0}catch(t){}var o=L.call(t);return n&&(e?t[N]=r:delete t[N]),o},C=Object.prototype.toString;var I=function(t){return C.call(t)},P=O?O.toStringTag:void 0;var R=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":P&&P in Object(t)?A(t):I(t)};var T=function(t){return null!=t&&"object"==typeof t};var z=function(t){return"symbol"==typeof t||T(t)&&"[object Symbol]"==R(t)},F=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,M=/^\w*$/;var G=function(t,e){if(w(t))return!1;var r=typeof t;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=t&&!z(t))||(M.test(t)||!F.test(t)||null!=e&&t in Object(e))};var $=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)};var Y,W=function(t){if(!$(t))return!1;var e=R(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e},Z=x["__core-js_shared__"],B=(Y=/[^.]+$/.exec(Z&&Z.keys&&Z.keys.IE_PROTO||""))?"Symbol(src)_1."+Y:"";var V=function(t){return!!B&&B in t},K=Function.prototype.toString;var U=function(t){if(null!=t){try{return K.call(t)}catch(t){}try{return t+""}catch(t){}}return""},X=/^\[object .+?Constructor\]$/,q=Function.prototype,D=Object.prototype,H=q.toString,J=D.hasOwnProperty,Q=RegExp("^"+H.call(J).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var tt=function(t){return!(!$(t)||V(t))&&(W(t)?Q:X).test(U(t))};var et=function(t,e){return null==t?void 0:t[e]};var rt=function(t,e){var r=et(t,e);return tt(r)?r:void 0},nt=rt(Object,"create");var ot=function(){this.__data__=nt?nt(null):{},this.size=0};var at=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},it=Object.prototype.hasOwnProperty;var lt=function(t){var e=this.__data__;if(nt){var r=e[t];return"__lodash_hash_undefined__"===r?void 0:r}return it.call(e,t)?e[t]:void 0},st=Object.prototype.hasOwnProperty;var ct=function(t){var e=this.__data__;return nt?void 0!==e[t]:st.call(e,t)};var ut=function(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=nt&&void 0===e?"__lodash_hash_undefined__":e,this};function ft(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])}}ft.prototype.clear=ot,ft.prototype.delete=at,ft.prototype.get=lt,ft.prototype.has=ct,ft.prototype.set=ut;var ht=ft;var pt=function(){this.__data__=[],this.size=0};var dt=function(t,e){return t===e||t!=t&&e!=e};var vt=function(t,e){for(var r=t.length;r--;)if(dt(t[r][0],e))return r;return-1},mt=Array.prototype.splice;var yt=function(t){var e=this.__data__,r=vt(e,t);return!(r<0)&&(r==e.length-1?e.pop():mt.call(e,r,1),--this.size,!0)};var gt=function(t){var e=this.__data__,r=vt(e,t);return r<0?void 0:e[r][1]};var _t=function(t){return vt(this.__data__,t)>-1};var bt=function(t,e){var r=this.__data__,n=vt(r,t);return n<0?(++this.size,r.push([t,e])):r[n][1]=e,this};function wt(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])}}wt.prototype.clear=pt,wt.prototype.delete=yt,wt.prototype.get=gt,wt.prototype.has=_t,wt.prototype.set=bt;var jt=wt,Et=rt(x,"Map");var xt=function(){this.size=0,this.__data__={hash:new ht,map:new(Et||jt),string:new ht}};var Ot=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t};var St=function(t,e){var r=t.__data__;return Ot(e)?r["string"==typeof e?"string":"hash"]:r.map};var kt=function(t){var e=St(this,t).delete(t);return this.size-=e?1:0,e};var Lt=function(t){return St(this,t).get(t)};var Nt=function(t){return St(this,t).has(t)};var At=function(t,e){var r=St(this,t),n=r.size;return r.set(t,e),this.size+=r.size==n?0:1,this};function Ct(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])}}Ct.prototype.clear=xt,Ct.prototype.delete=kt,Ct.prototype.get=Lt,Ct.prototype.has=Nt,Ct.prototype.set=At;var It=Ct;function Pt(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],a=r.cache;if(a.has(o))return a.get(o);var i=t.apply(this,n);return r.cache=a.set(o,i)||a,i};return r.cache=new(Pt.Cache||It),r}Pt.Cache=It;var Rt=Pt;var Tt=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,zt=/\\(\\)?/g,Ft=function(t){var e=Rt(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(Tt,(function(t,r,n,o){e.push(n?o.replace(zt,"$1"):r||t)})),e}));var Mt=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},Gt=O?O.prototype:void 0,$t=Gt?Gt.toString:void 0;var Yt=function t(e){if("string"==typeof e)return e;if(w(e))return Mt(e,t)+"";if(z(e))return $t?$t.call(e):"";var r=e+"";return"0"==r&&1/e==-Infinity?"-0":r};var Wt=function(t){return null==t?"":Yt(t)};var Zt=function(t,e){return w(t)?t:G(t,e)?[t]:Ft(Wt(t))};var Bt=function(t){if("string"==typeof t||z(t))return t;var e=t+"";return"0"==e&&1/t==-Infinity?"-0":e};var Vt=function(t,e){for(var r=0,n=(e=Zt(e,t)).length;null!=t&&r<n;)t=t[Bt(e[r++])];return r&&r==n?t:void 0};var Kt=function(t,e,r){var n=null==t?void 0:Vt(t,e);return void 0===n?r:n},Ut=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},Xt=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},qt={mobile:767,tablet:1024},Dt=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 Ht=r(),Jt=["story","element","template","opts","css","config","render"],Qt={"./also-read.m.css":{viewports:'"../../../../../assets/stylesheets/viewports.m.css"',mobile:"768px","card-image":"also-read-m_card-image__3CwAv","default-text":"also-read-m_default-text__hp2dp","alsoread-textLeftAlign":"also-read-m_alsoread-textLeftAlign__S0Dxe","alsoread-imageRightAlign":"also-read-m_alsoread-imageRightAlign__1bsF3",headline:"also-read-m_headline__VzF-c","alsoread-default":"also-read-m_alsoread-default__3cYER","card-image-wrapper":"also-read-m_card-image-wrapper__3GFzu",image:"also-read-m_image__2jdRP","content-wrapper":"also-read-m_content-wrapper__26AZX",alsoread:"also-read-m_alsoread__1crOV",dark:"also-read-m_dark__1pUib",light:"also-read-m_light__bTCze"}},te=function(e){var r,n,o=e.story,l=e.linkedImage,s=e.template,c=e.isRightAlign,u="textLeftAlign"===s,f=!!(r=Kt(qt,"mobile"))&&Kt(global,"document.documentElement.clientWidth")<=r,h=u?[16,9]:c&&f?[4,3]:[16,9],p=o["hero-image-caption"]||o.headline;return t.createElement("div",{className:"also-read-m_card-image-wrapper__3GFzu"},null==(n=l)||"object"===b(n)&&0===Object.entries(n).length&&n.constructor===Object||"string"==typeof n&&0===n.trim().length?t.createElement("div",{className:"arr--fallback-also-read also-read-m_image__2jdRP"},t.createElement(_,null)):t.createElement("figure",{className:"also-read-m_card-image__3CwAv"},t.createElement(a,null,t.createElement(i,{slug:l,"aspect-ratio":h,defaultWidth:480,widths:[250,480,640],imgParams:{auto:["format","compress"]},alt:p}))))};te.propTypes={story:l.shape({"hero-image-caption":l.string,headline:l.string}),linkedImage:l.string,template:l.string,isRightAlign:l.bool};var ee=function(r){var a=r.story,i=void 0===a?{}:a,l=r.element,u=r.template,f=void 0===u?"":u,h=r.opts,p=void 0===h?{}:h,v=r.css,m=void 0===v?{}:v;r.config,r.render;var y=c(r,Jt),g=l.text;if(!g)return null;var _=n(i,["linked-stories"],{}),b=n(l,["metadata","linked-story-id"]),w=n(_,[b,"url"]),j=n(_,[b,"hero-image-s3-key"],""),E=w&&w,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:Xt(t);return Ut(e)<155?"light":"dark"}((e(Ht)||{}).theme),O=p.title,S=void 0===O?"":O,k=m.textColor,L=S||"Also Read",N=""===f||"default"===f,A="imageRightAlign"===f,C=f?"alsoread-".concat(f):"alsoread-default";return t.createElement(o,s({"data-test-id":"also-read",href:E,"aria-label":"also-read"},y,{className:"arrow-component arr--also-read-element "+d(C,Qt)+" "+(y&&y.className||"")}),!N&&t.createElement("div",{className:d("default-text ".concat(x),Qt)},L),N&&t.createElement(te,{story:i,linkedImage:j,template:f,isRightAlign:A}),t.createElement("div",{className:"also-read-m_content-wrapper__26AZX"},t.createElement("div",{className:"also-read-m_headline__VzF-c",style:k?{color:k}:{color:x},dangerouslySetInnerHTML:{__html:g}}),A&&t.createElement(te,{story:i,linkedImage:j,template:f})))};ee.propTypes={template:l.string,story:l.shape({"linked-stories":l.object}),element:l.shape({text:l.string,metadata:l.shape({linkedStoryId:l.shape({url:l.string,"hero-image-s3-key":l.string})})}),opts:l.shape({title:l.string}),config:Dt,render:l.func,css:l.object};var re=m(ee);export{re as AlsoRead};
@@ -0,0 +1 @@
1
+ import e,{createContext as t,useContext as r,useState as o,useEffect as n}from"react";import a from"axios";import i,{PropTypes as l}from"prop-types";import c from"lodash.get";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";import{utcToZonedTime as _,format as b}from"date-fns-tz";function y(e,t,r,o,n,a,i){try{var l=e[a](i),c=l.value}catch(e){return void r(e)}l.done?t(c):Promise.resolve(c).then(o,n)}function w(e){return function(){var t=this,r=arguments;return new Promise((function(o,n){var a=e.apply(t,r);function i(e){y(a,o,n,i,l,"next",e)}function l(e){y(a,o,n,i,l,"throw",e)}i(void 0)}))}}function E(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function x(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 k(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 x(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)?x(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 T="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function C(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function L(e){var t={exports:{}};return e(t,t.exports),t.exports}var j=L((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 j(o||[]);return a._invoke=function(e,t,r){var o=m;return function(n,a){if(o===h)throw new Error("Generator is already running");if(o===f){if("throw"===n)throw a;return z()}for(r.method=n,r.arg=a;;){var i=r.delegate;if(i){var l=T(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===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,i),a}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,a,(function(){return this}));var y=Object.getPrototypeOf,w=y&&y(y(N([])));w&&w!==r&&o.call(w,a)&&(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,a,i,l){var c=u(e[n],e,a);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,i,l)}),(function(e){r("throw",e,i,l)})):t.resolve(m).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 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 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 C(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 L(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function j(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(C,this),this.reset(!0)}function N(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:z}}function z(){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,i,(function(){return this})),e.AsyncIterator=k,e.async=function(t,r,o,n,a){void 0===a&&(a=Promise);var i=new k(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=N,j.prototype={constructor:j,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(L),!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),L(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;L(r)}return n}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,o){return this.delegate={iterator:N(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)}})),N=L((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})),z=C(L((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,o=(r=N)&&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,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 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(!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 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(" "):""}}))),S=t(),O=function(){return r(S)};function M(e){return M="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},M(e)}var I=Array.isArray,A="object"==typeof T&&T&&T.Object===Object&&T,R="object"==typeof self&&self&&self.Object===Object&&self,P=A||R||Function("return this")(),B=P.Symbol,H=Object.prototype,F=H.hasOwnProperty,D=H.toString,W=B?B.toStringTag:void 0;var q=function(e){var t=F.call(e,W),r=e[W];try{e[W]=void 0;var o=!0}catch(e){}var n=D.call(e);return o&&(t?e[W]=r:delete e[W]),n},U=Object.prototype.toString;var G=function(e){return U.call(e)},Z=B?B.toStringTag:void 0;var J=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":Z&&Z in Object(e)?q(e):G(e)};var V=function(e){return null!=e&&"object"==typeof e};var Y=function(e){return"symbol"==typeof e||V(e)&&"[object Symbol]"==J(e)},K=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,$=/^\w*$/;var Q=function(e,t){if(I(e))return!1;var r=typeof e;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=e&&!Y(e))||($.test(e)||!K.test(e)||null!=t&&e in Object(t))};var X=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)};var ee,te=function(e){if(!X(e))return!1;var t=J(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},re=P["__core-js_shared__"],oe=(ee=/[^.]+$/.exec(re&&re.keys&&re.keys.IE_PROTO||""))?"Symbol(src)_1."+ee:"";var ne=function(e){return!!oe&&oe in e},ae=Function.prototype.toString;var ie=function(e){if(null!=e){try{return ae.call(e)}catch(e){}try{return e+""}catch(e){}}return""},le=/^\[object .+?Constructor\]$/,ce=Function.prototype,se=Object.prototype,ue=ce.toString,me=se.hasOwnProperty,de=RegExp("^"+ue.call(me).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var he=function(e){return!(!X(e)||ne(e))&&(te(e)?de:le).test(ie(e))};var fe=function(e,t){return null==e?void 0:e[t]};var pe=function(e,t){var r=fe(e,t);return he(r)?r:void 0},ge=pe(Object,"create");var ve=function(){this.__data__=ge?ge(null):{},this.size=0};var _e=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},be=Object.prototype.hasOwnProperty;var ye=function(e){var t=this.__data__;if(ge){var r=t[e];return"__lodash_hash_undefined__"===r?void 0:r}return be.call(t,e)?t[e]:void 0},we=Object.prototype.hasOwnProperty;var Ee=function(e){var t=this.__data__;return ge?void 0!==t[e]:we.call(t,e)};var xe=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=ge&&void 0===t?"__lodash_hash_undefined__":t,this};function ke(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])}}ke.prototype.clear=ve,ke.prototype.delete=_e,ke.prototype.get=ye,ke.prototype.has=Ee,ke.prototype.set=xe;var Te=ke;var Ce=function(){this.__data__=[],this.size=0};var Le=function(e,t){return e===t||e!=e&&t!=t};var je=function(e,t){for(var r=e.length;r--;)if(Le(e[r][0],t))return r;return-1},Ne=Array.prototype.splice;var ze=function(e){var t=this.__data__,r=je(t,e);return!(r<0)&&(r==t.length-1?t.pop():Ne.call(t,r,1),--this.size,!0)};var Se=function(e){var t=this.__data__,r=je(t,e);return r<0?void 0:t[r][1]};var Oe=function(e){return je(this.__data__,e)>-1};var Me=function(e,t){var r=this.__data__,o=je(r,e);return o<0?(++this.size,r.push([e,t])):r[o][1]=t,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=Ce,Ie.prototype.delete=ze,Ie.prototype.get=Se,Ie.prototype.has=Oe,Ie.prototype.set=Me;var Ae=Ie,Re=pe(P,"Map");var Pe=function(){this.size=0,this.__data__={hash:new Te,map:new(Re||Ae),string:new Te}};var Be=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e};var He=function(e,t){var r=e.__data__;return Be(t)?r["string"==typeof t?"string":"hash"]:r.map};var Fe=function(e){var t=He(this,e).delete(e);return this.size-=t?1:0,t};var De=function(e){return He(this,e).get(e)};var We=function(e){return He(this,e).has(e)};var qe=function(e,t){var r=He(this,e),o=r.size;return r.set(e,t),this.size+=r.size==o?0:1,this};function Ue(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])}}Ue.prototype.clear=Pe,Ue.prototype.delete=Fe,Ue.prototype.get=De,Ue.prototype.has=We,Ue.prototype.set=qe;var Ge=Ue;function Ze(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(Ze.Cache||Ge),r}Ze.Cache=Ge;var Je=Ze;var Ve=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ye=/\\(\\)?/g,Ke=function(e){var t=Je(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(Ve,(function(e,r,o,n){t.push(o?n.replace(Ye,"$1"):r||e)})),t}));var $e=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},Qe=B?B.prototype:void 0,Xe=Qe?Qe.toString:void 0;var et=function e(t){if("string"==typeof t)return t;if(I(t))return $e(t,e)+"";if(Y(t))return Xe?Xe.call(t):"";var r=t+"";return"0"==r&&1/t==-Infinity?"-0":r};var tt=function(e){return null==e?"":et(e)};var rt=function(e,t){return I(e)?e:Q(e,t)?[e]:Ke(tt(e))};var ot=function(e){if("string"==typeof e||Y(e))return e;var t=e+"";return"0"==t&&1/e==-Infinity?"-0":t};var nt=function(e,t){for(var r=0,o=(t=rt(t,e)).length;null!=e&&r<o;)e=e[ot(t[r++])];return r&&r==o?e:void 0};var at=function(e,t,r){var o=null==e?void 0:nt(e,t);return void 0===o?r:o};var it=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 lt=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"}),ct=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,st=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]","g");var ut=function(e){return(e=tt(e))&&e.replace(ct,lt).replace(st,"")},mt=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;var dt=function(e){return e.match(mt)||[]},ht=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;var ft=function(e){return ht.test(e)},pt="\\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",gt="["+pt+"]",vt="\\d+",_t="[\\u2700-\\u27bf]",bt="[a-z\\xdf-\\xf6\\xf8-\\xff]",yt="[^\\ud800-\\udfff"+pt+vt+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",wt="(?:\\ud83c[\\udde6-\\uddff]){2}",Et="[\\ud800-\\udbff][\\udc00-\\udfff]",xt="[A-Z\\xc0-\\xd6\\xd8-\\xde]",kt="(?:"+bt+"|"+yt+")",Tt="(?:"+xt+"|"+yt+")",Ct="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?",Lt="[\\ufe0e\\ufe0f]?"+Ct+("(?:\\u200d(?:"+["[^\\ud800-\\udfff]",wt,Et].join("|")+")[\\ufe0e\\ufe0f]?"+Ct+")*"),jt="(?:"+[_t,wt,Et].join("|")+")"+Lt,Nt=RegExp([xt+"?"+bt+"+(?:['’](?:d|ll|m|re|s|t|ve))?(?="+[gt,xt,"$"].join("|")+")",Tt+"+(?:['’](?:D|LL|M|RE|S|T|VE))?(?="+[gt,xt+kt,"$"].join("|")+")",xt+"?"+kt+"+(?:['’](?:d|ll|m|re|s|t|ve))?",xt+"+(?:['’](?: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_])",vt,jt].join("|"),"g");var zt=function(e){return e.match(Nt)||[]};var St=function(e,t,r){return e=tt(e),void 0===(t=r?void 0:t)?ft(e)?zt(e):dt(e):e.match(t)||[]},Ot=RegExp("['’]","g");var Mt=function(e){return function(t){return it(St(ut(t).replace(Ot,"")),e,"")}},It=Mt((function(e,t,r){return e+(r?" ":"")+t.toUpperCase()})),At=It,Rt=Mt((function(e,t,r){return e+(r?" ":"")+t.toLowerCase()})),Pt=Rt;var Bt=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,u=void 0!==s&&s,m=n.disableMeridiem,d=void 0!==m&&m,h=n.timeFormat,f=void 0===h?"12hours":h,p=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],g=new Date(o),v=g.getDate().toString().padStart(2,0),_=p[g.getMonth()],b=_;u&&(b=At(_));var y,w=g.getFullYear(),E=n.localizedMeridiem,x=n.localizedMonths,k=n.direction,T=void 0===k?"ltr":k,C=Ft(o,f),L=C;if(x&&(b=at(x,[Pt(_)])||_),E){var j=C.includes("am"),N=E.am,z=void 0===N?"am":N,S=E.pm,O=void 0===S?"pm":S;L=(j?C.replace("am",z):C.replace("pm",O))||C}return"rtl"===T?(y=i?"".concat(L):"","".concat(v," ").concat(b,", ").concat(w," ").concat(y," ")):d?"".concat(b," ").concat(v,", ").concat(w):c?"".concat(L,", ").concat(v," ").concat(b," ").concat(w):(y=i?", ".concat(L):"","".concat(v," ").concat(b,", ").concat(w).concat(y))};function Ht(e,t,r,o,n){var a,i=at(n,["localizedPublishTime",r])||r;return"hour"===t&&e>23||-1!==["day","week","month","year"].indexOf(t)?Bt(e,t,r,o,n):e>1?(a=at(n,["localizedPublishTime","".concat(t,"s")])||"".concat(t,"s"),"".concat(e," ").concat(a," ").concat(i)):(a=at(n,["localizedPublishTime",t])||t,"".concat(e," ").concat(a," ").concat(i," "))}function Ft(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"12hours",r=new Date(e),o=r.getHours(),n=r.getMinutes(),a=o>=12?"pm":"am",i=(o=(o%=12)||12)+":"+(n=n<10?"0"+n:n)+" "+a;return"24hours"===t?r.toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"}):i}var Dt=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},Wt=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},qt={mobile:767,tablet:1024},Ut=function(e){var t=at(qt,e);return!!t&&at(global,"document.documentElement.clientWidth")<=t},Gt=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:Wt(e),o=Dt(r)<155?"light":"dark";return o},Zt=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=at(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 Jt(){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?at(n,["reference-url"],""):""}i.shape({"sketches-host":i.string,"cdn-name":i.string,"cdn-image":i.string}),i.shape({headline:i.string,"last-published-at":i.number,subheadline:i.string});var Vt=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return"news-elsewhere"===at(e,["story-template"])?at(e,["metadata","reference-url"],""):e.url||t},Yt=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?Zt(e,t):"/"},Kt={"./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"}},$t=function(t){var r=t.collectionNameBorderColor,o=void 0===r?"":r,n=t.collection,a=t.config,i=t.collectionNameTemplate,l=t.headerLevel,s=t.customCollectionName,u=void 0===s?"":s,m=t.navigate,h=void 0===m||m,f=O()||{},p=c(f,["showRowTitle"],!0),g=["borderLeft","borderBottom","crossLine","borderBottomFull"].includes(i)?" collection-".concat(i):"",v=h&&n&&Zt(n,a)||"",_=u||n.name||"",b=Gt(f.theme),y="h"+l,w=Wt(o),E=g.includes("collection-borderBottomFull")?"4px solid ".concat(w):"",x=Ut("mobile");return e.createElement(e.Fragment,null,p&&_&&e.createElement("div",{style:{borderBottom:E},"data-test-id":"collection-name",className:("arr--collection-name arrow-component ".concat(g)?"arr--collection-name arrow-component ".concat(g)+" ":"")+z("collection ".concat(b," ").concat(g),Kt)},g.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(l){case"1":return"32px";case"2":return"24px";case"3":default:return"20px";case"4":return"18px";case"5":case"6":return"16px"}switch(l){case"1":return"40px";case"2":return"32px";case"3":default:return"24px";case"4":return"20px";case"5":return"18px";case"6":return"16px"}}()}}),v&&!v.includes(void 0)?e.createElement(d,{href:v,"aria-label":"collection-name"},e.createElement(y,null,_)):e.createElement(y,null,_),g.includes("collection-borderBottom")&&!g.includes("collection-borderBottomFull")?e.createElement("div",{className:"collection-name-m_border-bottom__1MnlV",style:{borderBottom:"4px solid ".concat(w)}}):""))};$t.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},$t.defaultProps={collectionNameTemplate:"",headerLevel:"3"};var Qt=s((function(e){return{config:c(e,["qt","config"],{})}}))($t),Xt={"./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 er(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 tr(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?er(Object(r),!0).forEach((function(t){E(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):er(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var rr=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,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=Gt(g),y=_?"/".concat(_):Yt(n,tr(tr({},s),o));return"SubsequentLoadCount"===i?e.createElement("div",{onClick:l,"data-test-id":"load-more",className:"arr--button "+z("button ".concat(b," default"),Xt)},f):e.createElement(h,{href:y,navigateTo:c,"data-test-id":"load-more","aria-label":"load-more"},e.createElement("div",{className:"arr--button "+z("button ".concat(b," default"),Xt)},f))};rr.propTypes={collection:i.object,template:i.string,config:i.object,onClick:i.func,navigate:i.func,qtConfig:i.object};var or=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"}))))))};or.propTypes={height:i.string,width:i.string,color:i.string,positionTop:i.string};var nr=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)"})))))};nr.propTypes={height:i.string,width:i.string,color:i.string,positionTop:i.string};var ar=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"}))))))};ar.propTypes={height:i.string,width:i.string,color:i.string,positionTop:i.string};var ir=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"}))))};ir.propTypes={height:i.string,width:i.string,color:i.string,positionTop:i.string};var lr=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(or,{width:r,height:o,color:n,positionTop:i});case"lock":return e.createElement(ar,{width:r,height:o,color:n,positionTop:i});case"key":return e.createElement(nr,{width:r,height:o,color:n,positionTop:i});default:return e.createElement(ir,{width:r,height:o,color:n,positionTop:i})}};function cr(){return e.createElement("svg",{className:"live-icon",xmlns:"http://www.w3.org/2000/svg",width:"25",height:"24",viewBox:"0 0 25 24"},e.createElement("path",{fill:"#ff5858",d:"M12 18a6 6 0 110-12 6 6 0 010 12zm0 2.5a8.5 8.5 0 110-17 8.5 8.5 0 010 17zm0-1a7.5 7.5 0 100-15 7.5 7.5 0 000 15z"}))}lr.propTypes={width:i.string,height:i.string,color:i.string,iconType:i.string,positionTop:i.string};var sr={"./headline.m.css":{wrapper:"headline-m_wrapper__3nUmh",headline:"headline-m_headline__3_NhV",dark:"headline-m_dark__en3hW",light:"headline-m_light__3lKJB"}},ur=function(t){var r=t.story,o=t.headerLevel,n=t.premiumStoryIconConfig,a=void 0===n?{}:n,i=t.isLink,l=O()||{},s=a.iconColor,u=void 0===s?"#F7B500":s,m=a.iconStyle,h=void 0===m?"star":m,f=a.enablePremiumStoryIcon,p=void 0!==f&&f,g=a.showLiveIcon,v=void 0!==g&&g,_=c(r,["alternative","home","default","headline"]),b=p&&"subscription"===c(r,["access"]),y=_||r.headline,w="h"+o,E=Gt(l.theme),x=b?"wrapper":"",k="24px",T=v&&"live-blog"===r["story-template"]&&!c(r,["metadata","is-closed"],!1);return e.createElement("div",{"data-test-id":"headline",className:"arrow-component arr--headline "+z(x,sr)},b&&e.createElement(lr,{width:k,height:k,color:u,iconType:h,positionTop:function(){switch(parseInt(o)){case 1:return"-2px";case 2:return"2px";case 3:return"4px";case 4:return"5px";default:return"6px"}}()}),i?e.createElement(d,{href:Vt(r,"/".concat(r.slug)),externalLink:Jt(r),"aria-label":"headline"},e.createElement(w,{className:z("headline ".concat(E),sr)},T&&e.createElement(cr,null),y)):e.createElement(w,{className:z("headline ".concat(E),sr)},T&&e.createElement(cr,null),y))};ur.propTypes={story:i.object.isRequired,headerLevel:i.string,premiumStoryIconConfig:i.shape({iconColor:i.string,iconType:i.string,enablePremiumStoryIcon:i.bool}),isLink:i.bool},ur.defaultProps={headerLevel:"6",isLink:!0};var mr={"./subheadline.m.css":{subheadline:"subheadline-m_subheadline__3fd7z",dark:"subheadline-m_dark__28u00",light:"subheadline-m_light__2YUOe"}},dr=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,s=t.forceShowAtom,u=t.showFullContent,m=O()||{};if(!(s||c(m,["showSubheadline"],!0)))return null;var d=Gt(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)+" ":"")+z("subheadline ".concat(d),mr)},u||"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))};dr.propTypes={story:i.object.isRequired,lineClamp:i.number,truncateChars:i.number,clazzName:i.string,forceShowAtom:i.bool,showFullContent:i.bool},dr.defaultProps={forceShowAtom:!1,showFullContent:!1};var hr={"./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,a=void 0===n?{}:n,i=O()||{},l=c(a,["showTime"],c(i,["showTime"],!0)),s=r["last-published-at"]||r["first-published-at"],u=o?"bottom-fix":"",m=Gt(i.theme);return e.createElement(e.Fragment,null,l&&e.createElement("div",{"data-test-id":"publish-time",className:"time arr--publish-time "+z("time ".concat(m," ").concat(u),hr)},e.createElement("div",{className:"timestamp-m_time-wrapper__3O2lM"},function(t,r){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=arguments.length>3?arguments[3]:void 0,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null;if(a&&"story"===n){var i=a&&_(t,a),l=i&&b(i,"yyyy-MM-dd'T'HH:mm:ssXXX",{timeZone:a}),c=Bt("","","",t,o);return e.createElement("time",{dateTime:l},c)}return e.createElement(v,{date:t,formatter:function(e,t,n,a){return r(e,t,n,a,o)}})}(s,Ht,a))))};fr.propTypes={story:i.object,isBottom:i.bool,config:i.object};var pr={"./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"}},gr=function(t){var r=t.story,o=t.hideAuthorImage,n=t.isBottom,a=t.prefix,i=void 0===a?"":a,l=t.config,s=void 0===l?{}:l,u=O()||{},m=c(u,["showAuthor"],!0),h=c(r,["authors","0"],""),p=h["avatar-url"],g=h["avatar-s3-key"],v=h.name,_=h.slug,b=n?"bottom-fix":"",y=Gt(u.theme),w=c(s,["mountAt"],""),E=function(t){return i?e.createElement("div",{className:"arr-author-prefix "+z("prefix ".concat(y),pr)},i):!o&&function(t){return p||g?e.createElement("div",{"data-test-id":"author-image",className:z("author-image ".concat(t,"-image"),pr)},e.createElement("figure",null,g?e.createElement(f,{slug:g,"aspect-ratio":[1,1],defaultWidth:400,imgParams:{auto:["format","compress"]},alt:v}):e.createElement("img",{src:p}))):null}(t)};return e.createElement(e.Fragment,null,m&&e.createElement(d,{href:"".concat(w,"/author/")+_,"aria-label":"author-name",className:"author-name arr-author-name arrow-component "+z("author ".concat(b),pr)},E("ltr"),e.createElement("div",{"data-test-id":"author-name",className:"author-name "+z("author-name ".concat(y),pr)},v||r["author-name"]),!i&&E("rtl")))};var vr=s((function(e){return{config:c(e,["qt","config"],{})}}))(gr);gr.propTypes={story:i.object.isRequired,hideAuthorImage:i.bool,isBottom:i.bool,prefix:i.string,config:i.object},gr.defaultProps={hideAuthorImage:!1,isBottom:!1,prefix:""};var _r={"./dot.m.css":{dark:"dot-m_dark__1Njxl",light:"dot-m_light__27IA3"}},br=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:z(l,_r)},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)"})))};br.propTypes={color:i.string,width:i.string,height:i.string};var yr={"./divider.m.css":{dark:"divider-m_dark__26FRi",light:"divider-m_light__w-7sy"}},wr=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:z(l,yr)},e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:o,height:a},e.createElement("path",{fill:"inherit",d:"M0 0h1v10H0z"})))};wr.propTypes={color:i.string,width:i.string,height:i.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"}},xr=function(t){var r=t.story,o=t.opts,n=void 0===o?{}:o,a=t.isLightTheme,i=void 0!==a&&a,l=O()||{},s=c(l,["showReadTime"])||c(n,["showReadTime"],!0),u=c(r,["read-time"],0),m=i?"light":Gt(l.theme);if(!s||!u)return null;var d=c(n,["localizedTimeToRead"])||"min read";return e.createElement(e.Fragment,null,e.createElement("div",{"data-test-id":"read-time",className:"arrow-component arr--read-time "+z("read-time-wrapper ".concat(m),Er)},e.createElement("span",{className:"read-time-indicator read-time-m_dot-indicator__3Sqh2"},e.createElement(br,{color:m})),e.createElement("span",null,u," ",d)))};xr.propTypes={story:i.shape({"read-time":i.number}),opts:i.shape({showReadTime:i.bool}),isLightTheme:i.bool};var kr={"./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"}},Tr=function(t){var r=t.story,o=t.separator,n=t.isBottom,a=t.hideAuthorImage,i=t.prefix,l=t.config,s=void 0===l?{}:l,u=t.isLightTheme,m=O()||{},d=c(s,["showAuthor"],c(m,["showAuthor"],!0)),h=c(s,["showTime"],c(m,["showTime"],!0)),f=c(m,["showReadTime"],!0),p=n?"bottom-fix":"",g="dot"===o?"dot":"dash",v=u?"light":Gt(m.theme),_=function(){return h?e.createElement(e.Fragment,null,d&&e.createElement("span",{className:"arr-separator "+z("".concat(g),kr)},"divider"===o?e.createElement(wr,{color:v}):e.createElement(br,{color:v})),e.createElement(fr,{story:r,config:s}),f&&e.createElement(xr,{story:r,opts:s,isLightTheme:u})):null};return e.createElement("div",{className:"arr--author-time "+z("author-time-wrapper ".concat(p),kr)},d?e.createElement(e.Fragment,null,e.createElement(vr,{story:r,isBottom:!0,hideAuthorImage:a,prefix:i}),_()):_())};Tr.propTypes={story:i.object,separator:i.oneOf(["dot","divider"]),hideAuthorImage:i.bool,isBottom:i.bool,prefix:i.string,config:i.object,isLightTheme:i.bool},Tr.defaultProps={separator:"dot",isBottom:!1,hideAuthorImage:!0,prefix:"",isLightTheme:!1};var Cr=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"}))))};Cr.propTypes={width:i.object,height:i.object,iconColor:i.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(Cr,null)))},jr=function(t){var r=t.slug;return r?e.createElement(d,{href:r,"aria-label":"image-fallback"},Lr()):Lr()};jr.propTypes={slug:i.string};var Nr=function(){return e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"36",height:"28"},e.createElement("g",{fill:"none",fillRule:"evenodd"},e.createElement("rect",{width:"36",height:"28",fill:"#3D6FCF",rx:"4"}),e.createElement("path",{stroke:"#FFF",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M22 14.667v4c0 .736-.597 1.333-1.333 1.333h-7.334A1.333 1.333 0 0112 18.667v-7.334c0-.736.597-1.333 1.333-1.333h4M20 8h4v4m-7.333 3.333L24 8"})))},zr=function(t){var r=t.hyperLink,o=void 0===r?"":r;return o?e.createElement(d,{href:o,"aria-label":"hyperlink-button",className:"arr--hyperlink-button hyperlink-m_hyperlink-button__1CqWx",target:"_blank",rel:"noopener noreferrer"},e.createElement(Nr,null)):null};zr.propTypes={hyperLink:i.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"}},Or=function(t){var r=t.story,o=t.FullBleed,n=t.aspectRatio,a=t.defaultWidth,i=t.widths,l=t.isHorizontal,s=t.isHorizontalMobile,m=t.isHorizontalWithImageLast,h=t.defaultFallback,f=t.isStoryPageImage,g=t.config,v=(O()||{}).fallbackImageUrl,_=void 0===v?"":v,b=g.StoryTemplateIcon,y=void 0===b?function(){return null}:b,w=u((function(e){return c(e,["qt","config","showPlaceholder"])}))?"placeholder":"",E=o?"":"with-padding",x="hero-image";l?x="right-padding":m&&(x="left-padding");var T=s?"right-padding-mob":"",C=function(e){var t=k(e,2),r=t[0],o=t[1];return r>0&&o>0?o/r*100:0},L=k(n,2),j=L[0],N=L[1],S=void 0===N?j:N,M=Ut("mobile"),I=M?j:S,A=C(M?j:S),R=c(r,["hero-image-s3-key"])||c(r,["alternative","home","default","hero-image","hero-image-s3-key"]),P=c(r,["hero-image-hyperlink"],""),B=function(){return R?e.createElement(e.Fragment,null,e.createElement("figure",{style:{paddingTop:A+"%"},className:"arr--responsive-hero-image "+z("image ".concat(w),Sr)},e.createElement(y,{storyTemplate:r["story-template"]}),e.createElement(p,{story:r,aspectRatio:I,defaultWidth:a,widths:i,imgParams:{auto:["format","compress"],fit:"max"}})),f&&P&&e.createElement(zr,{hyperLink:P})):_&&!f?e.createElement("figure",{style:{paddingTop:A+"%"},className:"arr--responsive-hero-image "+z("image ".concat(w),Sr)},e.createElement("img",{className:"qt-image","data-src":"".concat(_),alt:"image-fallback"})):e.createElement(e.Fragment,null,h?e.createElement("div",{"data-test-id":"arr--fallback-hero-image",style:{paddingTop:A+"%"},className:"arr--fallback-hero-image "+z("image ".concat(w),Sr)},e.createElement(y,{storyTemplate:r["story-template"]}),e.createElement(jr,null)):null)};return r&&(f?e.createElement("div",{"data-test-id":"arr--hero-image",className:"arr--hero-image "+z("".concat(x," ").concat(E," ").concat(T),Sr)},B()):e.createElement(d,{"data-test-id":"arr--hero-image",href:Vt(r,"/".concat(r.slug)),externalLink:Jt(r),"aria-label":"fallback-hero-image",className:"arr--hero-image "+z("".concat(x," ").concat(E," ").concat(T),Sr)},B()))};Or.propTypes={story:i.object.isRequired,FullBleed:i.bool,defaultWidth:i.number,widths:i.array,aspectRatio:i.array,isHorizontal:i.bool,isHorizontalMobile:i.bool,defaultFallback:i.bool,isHorizontalWithImageLast:i.bool,isStoryPageImage:i.bool,config:i.object},Or.defaultProps={FullBleed:!0,aspectRatio:[[1,1],[16,9]],defaultWidth:480,widths:[250,480,640],isHorizontal:!1,isHorizontalMobile:!1,defaultFallback:!0,isStoryPageImage:!1,isHorizontalWithImageLast:!1,config:{}};var Mr={"./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"}},Ir=function(t){var r=t.story,o=t.template,n=void 0===o?"":o,a=t.borderColor,i=void 0===a?"":a,l=t.isLightTheme,s=O()||{},u=c(s,["showSection"],!0),m=c(s,["sectionTagTemplate"]),h=c(r,["sections",0],""),f=["borderBottomSml","borderLeft","solid"],p=h?h["section-url"]:"/",g="solid"===n||"solid"===m?i:s.theme,v=l?"light":Gt(g),_=Wt(i),b=f.includes(n)?"section section-".concat(n):"section";return m&&(b=f.includes(m)?"section section-".concat(m):"section"),u?e.createElement(d,{href:p,className:"arrow-component arr--section-name","aria-label":"section-name"},e.createElement("div",{"data-test-id":"sectionTag",style:{backgroundColor:b.includes("section-solid")?_:""},className:"section-tag arrow-component "+z("".concat(v," ").concat(b),Mr)},b.includes("section-borderLeft")&&e.createElement("span",{className:"section-m_border-left__2oUyp",style:{color:_}}),h["display-name"]||h.name,e.createElement("div",{className:"section-m_border-bottom__3cRoD",style:{backgroundColor:"".concat("solid"===n?"":_)}}))):null};Ir.propTypes={story:i.object.isRequired,template:i.oneOf(["","borderBottomSml","borderLeft","solid"]),borderColor:i.string,solidBorderColor:i.string,isLightTheme:i.bool},Ir.defaultProps={template:"",isLightTheme:!1};var Ar={"./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"}},Rr=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,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"===M(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";a?y="horizontal-card":_&&(y="horizontal-image-last");var w=c?"backgroung-img":"",E=s?"content-overlap":"",x=Gt(u),k=d?"horizontal-mob":"",T=e.createElement(Pr,{story:o,aspectRatio:i,border:l,isHorizontalMobile:d,isHorizontal:a,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 "+z("card ".concat(y," ").concat(b," ").concat(x," ").concat(w," ").concat(E," ").concat(k),Ar)},n||T)},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,u=t.borderColor,m=t.hideAuthorImage,d=t.prefix,h=t.isHorizontalWithImageLast,f=t.config,p=s?"center-align":"",g=Wt(u),v=f.localizationConfig,_=void 0===v?{}:v;return e.createElement(e.Fragment,null,o?e.createElement(Or,{config:f,story:r,isHorizontal:!0,isHorizontalMobile:l,aspectRatio:n}):h?e.createElement(Or,{config:f,story:r,isHorizontalWithImageLast:!0,isHorizontalMobile:l,aspectRatio:n}):e.createElement(Or,{story:r,config:f,isHorizontalMobile:l,aspectRatio:n}),e.createElement("div",{className:"arr--story-content "+z("content ".concat(p),Ar)},e.createElement(Ir,{story:r,borderColor:g}),e.createElement(ur,{story:r,headerLevel:a,premiumStoryIconConfig:f}),e.createElement(Tr,{config:_,story:r,isBottom:!0,prefix:d,hideAuthorImage:m}),e.createElement(dr,{story:r})))};Pr.propTypes={story:i.object.isRequired,border:i.oneOfType([i.string]),isBottom:i.bool,isHorizontal:i.bool,aspectRatio:i.oneOfType([i.array]),isHorizontalMobile:i.bool,centerAlign:i.bool,headerLevel:i.string,borderColor:i.string,hideAuthorImage:i.bool,prefix:i.string,config:i.object,isHorizontalWithImageLast:i.bool},Rr.propTypes={story:i.object.isRequired,children:i.node,isHorizontal:i.bool,border:i.oneOfType([i.string]),useImageAsBackground:i.bool,bgImgContentOverlap:i.bool,aspectRatio:i.oneOfType([i.array]),theme:i.string,isHorizontalMobile:i.bool,centerAlign:i.bool,headerLevel:i.string,borderColor:i.string,hideAuthorImage:i.bool,prefix:i.string,config:i.object,isHorizontalWithImageLast:i.bool},Rr.defaultProps={isHorizontal:!1,isHorizontalMobile:!1,border:"default",theme:"",centerAlign:!1,borderColor:"",isHorizontalWithImageLast:!1};var Br={"./storycardContent.m.css":{wrapper:"storycardContent-m_wrapper__TEmfA","horizontal-content-wrapper":"storycardContent-m_horizontal-content-wrapper__NgpuC","border-full":"storycardContent-m_border-full__2km37"}},Hr=function(t){var r=t.story,o=t.children,n=t.theme,a=t.border,i=t.isHorizontalMobile,l=t.headerLevel,c=t.borderColor,s=t.config,u=Gt(n),m=Wt(c),d=["full"].includes(a)?"border-".concat(a):"",h=i?"horizontal-content-wrapper":"";return e.createElement("div",{"data-test-id":"story-card-content",style:{backgroundColor:n,color:u},className:"arr--content-wrapper "+z("wrapper ".concat(d," ").concat(h),Br)},o||e.createElement(Fr,{story:r,headerLevel:l,isHorizontalMobile:i,borderColor:m,config:s}))},Fr=function(t){var r=t.story,o=t.headerLevel,n=t.borderColor,a=t.config,i=void 0===a?{}:a,l=Wt(n),c=i.localizationConfig,s=void 0===c?{}:c;return e.createElement("div",null,e.createElement(Ir,{story:r,borderColor:l}),e.createElement(ur,{story:r,headerLevel:o,premiumStoryIconConfig:i}),e.createElement(Tr,{config:s,story:r}))};Fr.propTypes={story:i.object.isRequired,border:i.string,theme:i.string,isHorizontalMobile:i.bool,headerLevel:i.string,borderColor:i.string,config:i.object},Hr.propTypes={story:i.object.isRequired,children:i.node,theme:i.string,border:i.string,isHorizontalMobile:i.bool,headerLevel:i.string,borderColor:i.string,config:i.object};var Dr=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"}))))};Dr.propTypes={width:i.object,height:i.object,iconColor:i.object};var Wr={"./alternate-collection-filter.m.css":{navigator:"alternate-collection-filter-m_navigator__20CE0",wrapper:"alternate-collection-filter-m_wrapper__y_0ov","arr--headline":"alternate-collection-filter-m_arr--headline__24KSK","arr--read-time":"alternate-collection-filter-m_arr--read-time__mjm5v","read-time-indicator":"alternate-collection-filter-m_read-time-indicator__kaM3d","arr--publish-time":"alternate-collection-filter-m_arr--publish-time__1nsEF","arr-separator":"alternate-collection-filter-m_arr-separator__st4TN","arr--button":"alternate-collection-filter-m_arr--button__y0_Yh","light-wrapper":"alternate-collection-filter-m_light-wrapper__1CJKq","arr--collection-name":"alternate-collection-filter-m_arr--collection-name__1EyHs","section-tag":"alternate-collection-filter-m_section-tag__4AVsa","author-name":"alternate-collection-filter-m_author-name__WPATU","collection-filter":"alternate-collection-filter-m_collection-filter__34wis",divider:"alternate-collection-filter-m_divider__Mwn0n",dark:"alternate-collection-filter-m_dark__IaLvx",light:"alternate-collection-filter-m_light__2FdRq","subCollection-wrapper":"alternate-collection-filter-m_subCollection-wrapper__3Tj-s",cards:"alternate-collection-filter-m_cards__30xpt",card:"alternate-collection-filter-m_card__1Mb8D","card-wrapper":"alternate-collection-filter-m_card-wrapper__3puyR","child-collections":"alternate-collection-filter-m_child-collections__9s0wl","child-collection":"alternate-collection-filter-m_child-collection__1SXcM","child-collection-wrapper":"alternate-collection-filter-m_child-collection-wrapper__JdK4a","open-subchild":"alternate-collection-filter-m_open-subchild__urMg0",fadein:"alternate-collection-filter-m_fadein__3-kJ6","subCollection-stories":"alternate-collection-filter-m_subCollection-stories__2o4ws",fadeIn:"alternate-collection-filter-m_fadeIn__3g-o6","no-button-wrapper":"alternate-collection-filter-m_no-button-wrapper__1auuJ"}};function qr(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 Ur(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?qr(Object(r),!0).forEach((function(t){E(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):qr(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var Gr,Zr=function(t){var r=t.collection,i=t.config,l=void 0===i?{}:i,s=l.collectionNameBorderColor,d=void 0===s?"":s,h=l.borderColor,f=void 0===h?"":h,p=l.theme,v=void 0===p?"":p,_=l.border,b=void 0===_?"":_,y=l.collectionNameTemplate,x=void 0===y?"":y,T=l.footerSlotConfig,C=void 0===T?{}:T,L=l.footerButton,N=void 0===L?"":L,S=l.showButton,O=void 0===S||S,M=C.footerSlot,I=k(o([]),2),A=I[0],R=I[1],P=k(o({}),2),B=P[0],H=P[1],F=k(o(0),2),D=F[0],W=F[1],q=k(o(!0),2),U=q[0],G=q[1],Z=c(r,["items"],[]).filter((function(e){return"collection"===e.type}));if(Z.length<1)return null;var J=Z.map((function(e){return e.id})),V=function(e,t){H((function(r){return Ur(Ur({},r),{},E({},e,t))}))};function Y(){return K.apply(this,arguments)}function K(){return K=w(j.mark((function e(){var t,r,o,n,i=arguments;return j.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=i.length>0&&void 0!==i[0]?i[0]:J[0],G(!0),e.prev=2,r={},t in B){e.next=11;break}return e.next=7,a.get("/api/v1/collections/".concat(t,"?limit=7"));case 7:o=e.sent,r=o.data,e.next=12;break;case 11:r=B[t];case 12:V(t,r),n=g(r),G(!1),R(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]])}))),K.apply(this,arguments)}n((function(e){Y(e)}),[]);var $=m(),Q=u((function(e){return c(e,["qt","config"],{})})),X=Yt(Z[D],Q),ee=A.slice(0,9),te=Gt(v),re=M?M():null,oe="light"===te?"light-wrapper":"";return e.createElement("div",{className:"full-width-with-padding arrow-component","data-test-id":"collection-filter",style:{backgroundColor:v,color:te}},e.createElement("div",{className:z("wrapper ".concat(oe),Wr)},e.createElement(Qt,{collection:r,collectionNameTemplate:x,collectionNameBorderColor:d}),e.createElement("div",{className:"alternate-collection-filter-m_collection-filter__34wis"},e.createElement("div",{className:"alternate-collection-filter-m_child-collections__9s0wl"},Z.map((function(t,r){return e.createElement("div",{key:r,className:(r===D?(r===D?"open-subchild":"")+" ":"")+z("child-collection-wrapper ".concat(r===D?"open-subchild":""),Wr)},e.createElement("div",{onClick:function(e){return function(e,t,r){e.stopPropagation(),Y(r),W(D===t?0:t)}(e,r,t.id)},className:z("child-collection ".concat(te),Wr)},t.name),e.createElement("span",{className:("navigator ".concat(te)?"navigator ".concat(te)+" ":"")+z("navigator ".concat(te),Wr)}))}))),e.createElement("span",{className:("divider ".concat(te)?"divider ".concat(te)+" ":"")+z("divider ".concat(te),Wr)}),e.createElement("div",{className:"alternate-collection-filter-m_subCollection-wrapper__3Tj-s"},U?e.createElement(Dr,null):e.createElement("div",{className:"alternate-collection-filter-m_subCollection-stories__2o4ws"},e.createElement("div",{className:"alternate-collection-filter-m_cards__30xpt"},ee.slice(0,6).map((function(t,r){return e.createElement("div",{className:"alternate-collection-filter-m_card__1Mb8D",key:r},e.createElement(Rr,{story:t,border:b,theme:v,config:l},e.createElement(Or,{story:t,aspectRatio:[[16,9]]}),e.createElement(Hr,{story:t,border:b,borderColor:f,config:l})))})))))),ee.length>6&&e.createElement(rr,{collection:Z[D],template:N,config:l,navigate:function(){return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";global.app.navigateToPage(e,t)}($,X)},qtConfig:Q}),e.createElement("div",{className:z("".concat(O?"":"no-button-wrapper"),Wr)},re)))},Jr=(Gr=Zr,function(t){return e.createElement(S.Provider,{value:t.config},e.createElement(Gr,t))});Zr.propTypes={collection:i.object.isRequired,config:i.shape({borderColor:i.string,theme:i.string,border:i.string,collectionNameTemplate:i.string,footerSlotConfig:i.object,footerButton:i.string,collectionNameBorderColor:i.string})},Zr.defaultProps={theme:"#ffffff",slotConfig:"story",border:""};export{Jr as default};
@@ -0,0 +1 @@
1
+ import e from"lodash.get";import t,{PropTypes as r}from"prop-types";import o,{createContext as n,useContext as a,useState as i,useEffect as l}from"react";import c from"react-timeago";import{utcToZonedTime as s,format as u}from"date-fns-tz";import{Link as d,ResponsiveImage as m,ResponsiveHeroImage as h,LinkBase as f}from"@quintype/components";import{connect as p,useSelector as g}from"react-redux";function v(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _(e,t,r,o,n,a,i){try{var l=e[a](i),c=l.value}catch(e){return void r(e)}l.done?t(c):Promise.resolve(c).then(o,n)}function y(e){return function(){var t=this,r=arguments;return new Promise((function(o,n){var a=e.apply(t,r);function i(e){_(a,o,n,i,l,"next",e)}function l(e){_(a,o,n,i,l,"throw",e)}i(void 0)}))}}function b(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 w(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 b(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)?b(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 E="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function x(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function k(e){var t={exports:{}};return e(t,t.exports),t.exports}var L=k((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})),T=x(k((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,o=(r=L)&&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,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 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(!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 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(" "):""}}))),j=k((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 z(o||[]);return a._invoke=function(e,t,r){var o=d;return function(n,a){if(o===h)throw new Error("Generator is already running");if(o===f){if("throw"===n)throw a;return N()}for(r.method=n,r.arg=a;;){var i=r.delegate;if(i){var l=L(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===d)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:m,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 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",h="executing",f="completed",p={};function g(){}function v(){}function _(){}var y={};c(y,a,(function(){return this}));var b=Object.getPrototypeOf,w=b&&b(b(O([])));w&&w!==r&&o.call(w,a)&&(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 k(e,t){function r(n,a,i,l){var c=u(e[n],e,a);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,i,l)}),(function(e){r("throw",e,i,l)})):t.resolve(d).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 L(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,L(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 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 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 j(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function z(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(T,this),this.reset(!0)}function O(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:N}}function N(){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,i,(function(){return this})),e.AsyncIterator=k,e.async=function(t,r,o,n,a){void 0===a&&(a=Promise);var i=new k(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=O,z.prototype={constructor:z,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 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),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:O(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)}}));function z(e){return z="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},z(e)}var O=Array.isArray,N="object"==typeof E&&E&&E.Object===Object&&E,C="object"==typeof self&&self&&self.Object===Object&&self,S=N||C||Function("return this")(),A=S.Symbol,I=Object.prototype,M=I.hasOwnProperty,R=I.toString,P=A?A.toStringTag:void 0;var F=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 H=function(e){return B.call(e)},D=A?A.toStringTag:void 0;var W=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":D&&D in Object(e)?F(e):H(e)};var q=function(e){return null!=e&&"object"==typeof e};var U=function(e){return"symbol"==typeof e||q(e)&&"[object Symbol]"==W(e)},G=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Z=/^\w*$/;var J=function(e,t){if(O(e))return!1;var r=typeof e;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=e&&!U(e))||(Z.test(e)||!G.test(e)||null!=t&&e in Object(t))};var K=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)};var V,Y=function(e){if(!K(e))return!1;var t=W(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},$=S["__core-js_shared__"],X=(V=/[^.]+$/.exec($&&$.keys&&$.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,ae=oe.toString,ie=ne.hasOwnProperty,le=RegExp("^"+ae.call(ie).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var ce=function(e){return!(!K(e)||Q(e))&&(Y(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},de=ue(Object,"create");var me=function(){this.__data__=de?de(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(de){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 de?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]=de&&void 0===t?"__lodash_hash_undefined__":t,this};function ye(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])}}ye.prototype.clear=me,ye.prototype.delete=he,ye.prototype.get=pe,ye.prototype.has=ve,ye.prototype.set=_e;var be=ye;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 Le=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 je=function(e){return xe(this.__data__,e)>-1};var ze=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 Oe(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])}}Oe.prototype.clear=we,Oe.prototype.delete=Le,Oe.prototype.get=Te,Oe.prototype.has=je,Oe.prototype.set=ze;var Ne=Oe,Ce=ue(S,"Map");var Se=function(){this.size=0,this.__data__={hash:new be,map:new(Ce||Ne),string:new be}};var Ae=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e};var Ie=function(e,t){var r=e.__data__;return Ae(t)?r["string"==typeof t?"string":"hash"]:r.map};var Me=function(e){var t=Ie(this,e).delete(e);return this.size-=t?1:0,t};var Re=function(e){return Ie(this,e).get(e)};var Pe=function(e){return Ie(this,e).has(e)};var Fe=function(e,t){var r=Ie(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=Fe;var He=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],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(De.Cache||He),r}De.Cache=He;var We=De;var qe=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ue=/\\(\\)?/g,Ge=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(Ue,"$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},Je=A?A.prototype:void 0,Ke=Je?Je.toString:void 0;var Ve=function e(t){if("string"==typeof t)return t;if(O(t))return Ze(t,e)+"";if(U(t))return Ke?Ke.call(t):"";var r=t+"";return"0"==r&&1/t==-Infinity?"-0":r};var Ye=function(e){return null==e?"":Ve(e)};var $e=function(e,t){return O(e)?e:J(e,t)?[e]:Ge(Ye(e))};var Xe=function(e){if("string"==typeof e||U(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=$e(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};var tt=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 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 at=function(e){return(e=Ye(e))&&e.replace(ot,rt).replace(nt,"")},it=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;var lt=function(e){return e.match(it)||[]},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+",ht="[\\u2700-\\u27bf]",ft="[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="(?:"+ft+"|"+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="(?:"+[ht,gt,vt].join("|")+")"+Et,kt=RegExp([_t+"?"+ft+"+(?:['’](?: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 Lt=function(e){return e.match(kt)||[]};var Tt=function(e,t,r){return e=Ye(e),void 0===(t=r?void 0:t)?st(e)?Lt(e):lt(e):e.match(t)||[]},jt=RegExp("['’]","g");var zt=function(e){return function(t){return tt(Tt(at(t).replace(jt,"")),e,"")}},Ot=zt((function(e,t,r){return e+(r?" ":"")+t.toUpperCase()})),Nt=Ot,Ct=zt((function(e,t,r){return e+(r?" ":"")+t.toLowerCase()})),St=Ct;var At=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,u=void 0!==s&&s,d=n.disableMeridiem,m=void 0!==d&&d,h=n.timeFormat,f=void 0===h?"12hours":h,p=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],g=new Date(o),v=g.getDate().toString().padStart(2,0),_=p[g.getMonth()],y=_;u&&(y=Nt(_));var b,w=g.getFullYear(),E=n.localizedMeridiem,x=n.localizedMonths,k=n.direction,L=void 0===k?"ltr":k,T=Mt(o,f),j=T;if(x&&(y=et(x,[St(_)])||_),E){var z=T.includes("am"),O=E.am,N=void 0===O?"am":O,C=E.pm,S=void 0===C?"pm":C;j=(z?T.replace("am",N):T.replace("pm",S))||T}return"rtl"===L?(b=i?"".concat(j):"","".concat(v," ").concat(y,", ").concat(w," ").concat(b," ")):m?"".concat(y," ").concat(v,", ").concat(w):c?"".concat(j,", ").concat(v," ").concat(y," ").concat(w):(b=i?", ".concat(j):"","".concat(v," ").concat(y,", ").concat(w).concat(b))};function It(e,t,r,o,n){var a,i=et(n,["localizedPublishTime",r])||r;return"hour"===t&&e>23||-1!==["day","week","month","year"].indexOf(t)?At(e,t,r,o,n):e>1?(a=et(n,["localizedPublishTime","".concat(t,"s")])||"".concat(t,"s"),"".concat(e," ").concat(a," ").concat(i)):(a=et(n,["localizedPublishTime",t])||t,"".concat(e," ").concat(a," ").concat(i," "))}function Mt(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"12hours",r=new Date(e),o=r.getHours(),n=r.getMinutes(),a=o>=12?"pm":"am",i=(o=(o%=12)||12)+":"+(n=n<10?"0"+n:n)+" "+a;return"24hours"===t?r.toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"}):i}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},Ft={mobile:767,tablet:1024},Bt=function(e){var t=et(Ft,e);return!!t&&et(global,"document.documentElement.clientWidth")<=t},Ht=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,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=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"],""):""}var qt=function(e){return null==e||"object"===z(e)&&0===Object.entries(e).length&&e.constructor===Object||"string"==typeof e&&0===e.trim().length};t.shape({"sketches-host":t.string,"cdn-name":t.string,"cdn-image":t.string}),t.shape({headline:t.string,"last-published-at":t.number,subheadline:t.string});var Ut=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=y(j.mark((function e(t){var r,o,n=arguments;return j.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=n.length>1&&void 0!==n[1]?n[1]:"",e.prev=1,e.next=4,fetch("".concat(r,"/api/v1/collections/").concat(t,"?item-type=story&limit=6"));case 4:return e.next=6,e.sent.json();case 6:return o=e.sent,e.abrupt("return",o);case 10:e.prev=10,e.t0=e.catch(1),console.error(e.t0);case 13:case"end":return e.stop()}}),e,null,[[1,10]])})));return function(t){return e.apply(this,arguments)}}(),Zt=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=arguments.length>3?arguments[3]:void 0,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null;if(a&&"story"===n){var i=a&&s(e,a),l=i&&u(i,"yyyy-MM-dd'T'HH:mm:ssXXX",{timeZone:a}),d=At("","","",e,r);return o.createElement("time",{dateTime:l},d)}return o.createElement(c,{date:e,formatter:function(e,o,n,a){return t(e,o,n,a,r)}})},Jt=n(),Kt=function(e){return function(t){return o.createElement(Jt.Provider,{value:t.config},o.createElement(e,t))}},Vt=function(){return a(Jt)},Yt={"./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"}},$t=function(t){var r=t.story,n=t.isBottom,a=t.config,i=void 0===a?{}:a,l=Vt()||{},c=e(i,["showTime"],e(l,["showTime"],!0)),s=r["last-published-at"]||r["first-published-at"],u=n?"bottom-fix":"",d=Ht(l.theme);return o.createElement(o.Fragment,null,c&&o.createElement("div",{"data-test-id":"publish-time",className:"time arr--publish-time "+T("time ".concat(d," ").concat(u),Yt)},o.createElement("div",{className:"timestamp-m_time-wrapper__3O2lM"},Zt(s,It,i))))};$t.propTypes={story:t.object,isBottom:t.bool,config:t.object};var Xt={"./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"}},Qt=function(t){var r=t.story,n=t.hideAuthorImage,a=t.isBottom,i=t.prefix,l=void 0===i?"":i,c=t.config,s=void 0===c?{}:c,u=Vt()||{},h=e(u,["showAuthor"],!0),f=e(r,["authors","0"],""),p=f["avatar-url"],g=f["avatar-s3-key"],v=f.name,_=f.slug,y=a?"bottom-fix":"",b=Ht(u.theme),w=e(s,["mountAt"],""),E=function(e){return l?o.createElement("div",{className:"arr-author-prefix "+T("prefix ".concat(b),Xt)},l):!n&&function(e){return p||g?o.createElement("div",{"data-test-id":"author-image",className:T("author-image ".concat(e,"-image"),Xt)},o.createElement("figure",null,g?o.createElement(m,{slug:g,"aspect-ratio":[1,1],defaultWidth:400,imgParams:{auto:["format","compress"]},alt:v}):o.createElement("img",{src:p}))):null}(e)};return o.createElement(o.Fragment,null,h&&o.createElement(d,{href:"".concat(w,"/author/")+_,"aria-label":"author-name",className:"author-name arr-author-name arrow-component "+T("author ".concat(y),Xt)},E("ltr"),o.createElement("div",{"data-test-id":"author-name",className:"author-name "+T("author-name ".concat(b),Xt)},v||r["author-name"]),!l&&E("rtl")))};var er=p((function(t){return{config:e(t,["qt","config"],{})}}))(Qt);Qt.propTypes={story:t.object.isRequired,hideAuthorImage:t.bool,isBottom:t.bool,prefix:t.string,config:t.object},Qt.defaultProps={hideAuthorImage:!1,isBottom:!1,prefix:""};var tr={"./dot.m.css":{dark:"dot-m_dark__1Njxl",light:"dot-m_light__27IA3"}},rr=function(e){var t=e.width,r=void 0===t?"3px":t,n=e.height,a=void 0===n?"3px":n,i=e.color,l=void 0===i?"light":i;return o.createElement("div",{className:T(l,tr)},o.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:r,height:a,viewBox:"0 0 3 3"},o.createElement("circle",{cx:"87",cy:"9",r:"1",fill:"inherit",fillRule:"nonzero",transform:"translate(-86 -8)"})))};rr.propTypes={color:t.string,width:t.string,height:t.string};var or={"./divider.m.css":{dark:"divider-m_dark__26FRi",light:"divider-m_light__w-7sy"}},nr=function(e){var t=e.width,r=void 0===t?"1":t,n=e.height,a=void 0===n?"10":n,i=e.color,l=void 0===i?"light":i;return o.createElement("div",{className:T(l,or)},o.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:r,height:a},o.createElement("path",{fill:"inherit",d:"M0 0h1v10H0z"})))};nr.propTypes={color:t.string,width:t.string,height:t.string};var ar={"./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"}},ir=function(t){var r=t.story,n=t.opts,a=void 0===n?{}:n,i=t.isLightTheme,l=void 0!==i&&i,c=Vt()||{},s=e(c,["showReadTime"])||e(a,["showReadTime"],!0),u=e(r,["read-time"],0),d=l?"light":Ht(c.theme);if(!s||!u)return null;var m=e(a,["localizedTimeToRead"])||"min read";return o.createElement(o.Fragment,null,o.createElement("div",{"data-test-id":"read-time",className:"arrow-component arr--read-time "+T("read-time-wrapper ".concat(d),ar)},o.createElement("span",{className:"read-time-indicator read-time-m_dot-indicator__3Sqh2"},o.createElement(rr,{color:d})),o.createElement("span",null,u," ",m)))};ir.propTypes={story:t.shape({"read-time":t.number}),opts:t.shape({showReadTime:t.bool}),isLightTheme:t.bool};var lr={"./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"}},cr=function(t){var r=t.story,n=t.separator,a=t.isBottom,i=t.hideAuthorImage,l=t.prefix,c=t.config,s=void 0===c?{}:c,u=t.isLightTheme,d=Vt()||{},m=e(s,["showAuthor"],e(d,["showAuthor"],!0)),h=e(s,["showTime"],e(d,["showTime"],!0)),f=e(d,["showReadTime"],!0),p=a?"bottom-fix":"",g="dot"===n?"dot":"dash",v=u?"light":Ht(d.theme),_=function(){return h?o.createElement(o.Fragment,null,m&&o.createElement("span",{className:"arr-separator "+T("".concat(g),lr)},"divider"===n?o.createElement(nr,{color:v}):o.createElement(rr,{color:v})),o.createElement($t,{story:r,config:s}),f&&o.createElement(ir,{story:r,opts:s,isLightTheme:u})):null};return o.createElement("div",{className:"arr--author-time "+T("author-time-wrapper ".concat(p),lr)},m?o.createElement(o.Fragment,null,o.createElement(er,{story:r,isBottom:!0,hideAuthorImage:i,prefix:l}),_()):_())};cr.propTypes={story:t.object,separator:t.oneOf(["dot","divider"]),hideAuthorImage:t.bool,isBottom:t.bool,prefix:t.string,config:t.object,isLightTheme:t.bool},cr.defaultProps={separator:"dot",isBottom:!1,hideAuthorImage:!0,prefix:"",isLightTheme:!1};var sr={"./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"}},ur=function(t){var r=t.collectionNameBorderColor,n=void 0===r?"":r,a=t.collection,i=t.config,l=t.collectionNameTemplate,c=t.headerLevel,s=t.customCollectionName,u=void 0===s?"":s,m=t.navigate,h=void 0===m||m,f=Vt()||{},p=e(f,["showRowTitle"],!0),g=["borderLeft","borderBottom","crossLine","borderBottomFull"].includes(l)?" collection-".concat(l):"",v=h&&a&&Dt(a,i)||"",_=u||a.name||"",y=Ht(f.theme),b="h"+c,w=Pt(n),E=g.includes("collection-borderBottomFull")?"4px solid ".concat(w):"",x=Bt("mobile");return o.createElement(o.Fragment,null,p&&_&&o.createElement("div",{style:{borderBottom:E},"data-test-id":"collection-name",className:("arr--collection-name arrow-component ".concat(g)?"arr--collection-name arrow-component ".concat(g)+" ":"")+T("collection ".concat(y," ").concat(g),sr)},g.includes("collection-borderLeft")&&o.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":default:return"20px";case"4":return"18px";case"5":case"6":return"16px"}switch(c){case"1":return"40px";case"2":return"32px";case"3":default:return"24px";case"4":return"20px";case"5":return"18px";case"6":return"16px"}}()}}),v&&!v.includes(void 0)?o.createElement(d,{href:v,"aria-label":"collection-name"},o.createElement(b,null,_)):o.createElement(b,null,_),g.includes("collection-borderBottom")&&!g.includes("collection-borderBottomFull")?o.createElement("div",{className:"collection-name-m_border-bottom__1MnlV",style:{borderBottom:"4px solid ".concat(w)}}):""))};ur.propTypes={collectionNameBorderColor:r.string,collection:r.object,config:r.object,collectionNameTemplate:r.oneOf(["","borderLeft","borderBottom","crossLine","borderBottomFull"]),headerLevel:r.string,customCollectionName:r.string,navigate:r.bool},ur.defaultProps={collectionNameTemplate:"",headerLevel:"3"};var dr=p((function(t){return{config:e(t,["qt","config"],{})}}))(ur),mr=function(e){var t=e.height,r=e.width,n=e.color,a=void 0===n?"#D8D8D8":n,i=e.positionTop;return o.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:r,height:t,viewBox:"0 0 40 40",style:{position:"relative",top:i}},o.createElement("g",{fill:"none",fillRule:"evenodd",stroke:"none",strokeWidth:"1"},o.createElement("g",null,o.createElement("g",{transform:"translate(8 8)"},o.createElement("path",{d:"M0 0H24V24H0z"}),o.createElement("g",{fill:a,fillRule:"nonzero",transform:"translate(0 2)"},o.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"}))))))};mr.propTypes={height:t.string,width:t.string,color:t.string,positionTop:t.string};var hr=function(e){var t=e.height,r=e.width,n=e.color,a=void 0===n?"#D5D5D5":n,i=e.positionTop;return o.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:r,height:t,viewBox:"0 0 40 40",style:{position:"relative",top:i}},o.createElement("g",{fill:"none",fillRule:"evenodd",stroke:"none",strokeWidth:"1"},o.createElement("g",null,o.createElement("g",{transform:"translate(8 8)"},o.createElement("path",{d:"M0 0H24V24H0z"}),o.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)"})))))};hr.propTypes={height:t.string,width:t.string,color:t.string,positionTop:t.string};var fr=function(e){var t=e.height,r=e.width,n=e.color,a=void 0===n?"#D5D5D5":n,i=e.positionTop;return o.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:r,height:t,viewBox:"0 0 40 40",style:{position:"relative",top:i}},o.createElement("g",{fill:"none",fillRule:"evenodd",stroke:"none",strokeWidth:"1"},o.createElement("g",null,o.createElement("g",{transform:"translate(8 8)"},o.createElement("path",{d:"M0 0H24V24H0z"}),o.createElement("g",{fill:a,fillRule:"nonzero",transform:"translate(3)"},o.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"}))))))};fr.propTypes={height:t.string,width:t.string,color:t.string,positionTop:t.string};var pr=function(e){var t=e.width,r=e.height,n=e.color,a=void 0===n?"#D5D5D5":n,i=e.positionTop,l=void 0===i?"":i;return o.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:r,viewBox:"0 0 40 40",style:{position:"relative",top:l}},o.createElement("g",{fill:"none",fillRule:"evenodd",stroke:"none",strokeWidth:"1"},o.createElement("g",null,o.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"}))))};pr.propTypes={height:t.string,width:t.string,color:t.string,positionTop:t.string};var gr=function(e){var t=e.width,r=e.height,n=e.color,a=e.iconType,i=e.positionTop;switch(a){case"crown":return o.createElement(mr,{width:t,height:r,color:n,positionTop:i});case"lock":return o.createElement(fr,{width:t,height:r,color:n,positionTop:i});case"key":return o.createElement(hr,{width:t,height:r,color:n,positionTop:i});default:return o.createElement(pr,{width:t,height:r,color:n,positionTop:i})}};function vr(){return o.createElement("svg",{className:"live-icon",xmlns:"http://www.w3.org/2000/svg",width:"25",height:"24",viewBox:"0 0 25 24"},o.createElement("path",{fill:"#ff5858",d:"M12 18a6 6 0 110-12 6 6 0 010 12zm0 2.5a8.5 8.5 0 110-17 8.5 8.5 0 010 17zm0-1a7.5 7.5 0 100-15 7.5 7.5 0 000 15z"}))}gr.propTypes={width:t.string,height:t.string,color:t.string,iconType:t.string,positionTop:t.string};var _r={"./headline.m.css":{wrapper:"headline-m_wrapper__3nUmh",headline:"headline-m_headline__3_NhV",dark:"headline-m_dark__en3hW",light:"headline-m_light__3lKJB"}},yr=function(t){var r=t.story,n=t.headerLevel,a=t.premiumStoryIconConfig,i=void 0===a?{}:a,l=t.isLink,c=Vt()||{},s=i.iconColor,u=void 0===s?"#F7B500":s,m=i.iconStyle,h=void 0===m?"star":m,f=i.enablePremiumStoryIcon,p=void 0!==f&&f,g=i.showLiveIcon,v=void 0!==g&&g,_=e(r,["alternative","home","default","headline"]),y=p&&"subscription"===e(r,["access"]),b=_||r.headline,w="h"+n,E=Ht(c.theme),x=y?"wrapper":"",k="24px",L=v&&"live-blog"===r["story-template"]&&!e(r,["metadata","is-closed"],!1);return o.createElement("div",{"data-test-id":"headline",className:"arrow-component arr--headline "+T(x,_r)},y&&o.createElement(gr,{width:k,height:k,color:u,iconType:h,positionTop:function(){switch(parseInt(n)){case 1:return"-2px";case 2:return"2px";case 3:return"4px";case 4:return"5px";default:return"6px"}}()}),l?o.createElement(d,{href:Ut(r,"/".concat(r.slug)),externalLink:Wt(r),"aria-label":"headline"},o.createElement(w,{className:T("headline ".concat(E),_r)},L&&o.createElement(vr,null),b)):o.createElement(w,{className:T("headline ".concat(E),_r)},L&&o.createElement(vr,null),b))};yr.propTypes={story:t.object.isRequired,headerLevel:t.string,premiumStoryIconConfig:t.shape({iconColor:t.string,iconType:t.string,enablePremiumStoryIcon:t.bool}),isLink:t.bool},yr.defaultProps={headerLevel:"6",isLink:!0};var br=function(e){var t=e.width,r=void 0===t?40:t,n=e.height,a=void 0===n?30:n,i=e.iconColor,l=void 0===i?"#99B0CB":i;return o.createElement("svg",{width:r,height:a,viewBox:"0 0 102 76",version:"1.1"},o.createElement("g",{id:"demo-home-copy",stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",transform:"translate(-377.000000, -314.000000)"},o.createElement("g",{id:"Group-13",transform:"translate(377.000000, 314.000000)"},o.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"}),o.createElement("rect",{id:"Rectangle-19",stroke:l,strokeWidth:"3",x:"1.5",y:"1.5",width:"99",height:"73",rx:"3"}))))};br.propTypes={width:t.object,height:t.object,iconColor:t.object};var wr=function(){return o.createElement("div",{className:"arr--fallback-image fallback-m_image__1GYCJ fallback-m_image-position__3KddP"},o.createElement("figure",{className:"arr--fallback-svg fallback-m_fallback-svg__tK9fL"},o.createElement(br,null)))},Er=function(e){var t=e.slug;return t?o.createElement(d,{href:t,"aria-label":"image-fallback"},wr()):wr()};Er.propTypes={slug:t.string};var xr=function(){return o.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"36",height:"28"},o.createElement("g",{fill:"none",fillRule:"evenodd"},o.createElement("rect",{width:"36",height:"28",fill:"#3D6FCF",rx:"4"}),o.createElement("path",{stroke:"#FFF",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M22 14.667v4c0 .736-.597 1.333-1.333 1.333h-7.334A1.333 1.333 0 0112 18.667v-7.334c0-.736.597-1.333 1.333-1.333h4M20 8h4v4m-7.333 3.333L24 8"})))},kr=function(e){var t=e.hyperLink,r=void 0===t?"":t;return r?o.createElement(d,{href:r,"aria-label":"hyperlink-button",className:"arr--hyperlink-button hyperlink-m_hyperlink-button__1CqWx",target:"_blank",rel:"noopener noreferrer"},o.createElement(xr,null)):null};kr.propTypes={hyperLink:t.string};var Lr={"./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"}},Tr=function(t){var r=t.story,n=t.FullBleed,a=t.aspectRatio,i=t.defaultWidth,l=t.widths,c=t.isHorizontal,s=t.isHorizontalMobile,u=t.isHorizontalWithImageLast,m=t.defaultFallback,f=t.isStoryPageImage,p=t.config,v=(Vt()||{}).fallbackImageUrl,_=void 0===v?"":v,y=p.StoryTemplateIcon,b=void 0===y?function(){return null}:y,E=g((function(t){return e(t,["qt","config","showPlaceholder"])}))?"placeholder":"",x=n?"":"with-padding",k="hero-image";c?k="right-padding":u&&(k="left-padding");var L=s?"right-padding-mob":"",j=function(e){var t=w(e,2),r=t[0],o=t[1];return r>0&&o>0?o/r*100:0},z=w(a,2),O=z[0],N=z[1],C=void 0===N?O:N,S=Bt("mobile"),A=S?O:C,I=j(S?O:C),M=e(r,["hero-image-s3-key"])||e(r,["alternative","home","default","hero-image","hero-image-s3-key"]),R=e(r,["hero-image-hyperlink"],""),P=function(){return M?o.createElement(o.Fragment,null,o.createElement("figure",{style:{paddingTop:I+"%"},className:"arr--responsive-hero-image "+T("image ".concat(E),Lr)},o.createElement(b,{storyTemplate:r["story-template"]}),o.createElement(h,{story:r,aspectRatio:A,defaultWidth:i,widths:l,imgParams:{auto:["format","compress"],fit:"max"}})),f&&R&&o.createElement(kr,{hyperLink:R})):_&&!f?o.createElement("figure",{style:{paddingTop:I+"%"},className:"arr--responsive-hero-image "+T("image ".concat(E),Lr)},o.createElement("img",{className:"qt-image","data-src":"".concat(_),alt:"image-fallback"})):o.createElement(o.Fragment,null,m?o.createElement("div",{"data-test-id":"arr--fallback-hero-image",style:{paddingTop:I+"%"},className:"arr--fallback-hero-image "+T("image ".concat(E),Lr)},o.createElement(b,{storyTemplate:r["story-template"]}),o.createElement(Er,null)):null)};return r&&(f?o.createElement("div",{"data-test-id":"arr--hero-image",className:"arr--hero-image "+T("".concat(k," ").concat(x," ").concat(L),Lr)},P()):o.createElement(d,{"data-test-id":"arr--hero-image",href:Ut(r,"/".concat(r.slug)),externalLink:Wt(r),"aria-label":"fallback-hero-image",className:"arr--hero-image "+T("".concat(k," ").concat(x," ").concat(L),Lr)},P()))};Tr.propTypes={story:t.object.isRequired,FullBleed:t.bool,defaultWidth:t.number,widths:t.array,aspectRatio:t.array,isHorizontal:t.bool,isHorizontalMobile:t.bool,defaultFallback:t.bool,isHorizontalWithImageLast:t.bool,isStoryPageImage:t.bool,config:t.object},Tr.defaultProps={FullBleed:!0,aspectRatio:[[1,1],[16,9]],defaultWidth:480,widths:[250,480,640],isHorizontal:!1,isHorizontalMobile:!1,defaultFallback:!0,isStoryPageImage:!1,isHorizontalWithImageLast:!1,config:{}};var jr={"./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"}},zr=function(t){var r=t.story,n=t.template,a=void 0===n?"":n,i=t.borderColor,l=void 0===i?"":i,c=t.isLightTheme,s=Vt()||{},u=e(s,["showSection"],!0),m=e(s,["sectionTagTemplate"]),h=e(r,["sections",0],""),f=["borderBottomSml","borderLeft","solid"],p=h?h["section-url"]:"/",g="solid"===a||"solid"===m?l:s.theme,v=c?"light":Ht(g),_=Pt(l),y=f.includes(a)?"section section-".concat(a):"section";return m&&(y=f.includes(m)?"section section-".concat(m):"section"),u?o.createElement(d,{href:p,className:"arrow-component arr--section-name","aria-label":"section-name"},o.createElement("div",{"data-test-id":"sectionTag",style:{backgroundColor:y.includes("section-solid")?_:""},className:"section-tag arrow-component "+T("".concat(v," ").concat(y),jr)},y.includes("section-borderLeft")&&o.createElement("span",{className:"section-m_border-left__2oUyp",style:{color:_}}),h["display-name"]||h.name,o.createElement("div",{className:"section-m_border-bottom__3cRoD",style:{backgroundColor:"".concat("solid"===a?"":_)}}))):null};zr.propTypes={story:t.object.isRequired,template:t.oneOf(["","borderBottomSml","borderLeft","solid"]),borderColor:t.string,solidBorderColor:t.string,isLightTheme:t.bool},zr.defaultProps={template:"",isLightTheme:!1};var Or={"./subheadline.m.css":{subheadline:"subheadline-m_subheadline__3fd7z",dark:"subheadline-m_dark__28u00",light:"subheadline-m_light__2YUOe"}},Nr=function(t){var r=t.story,n=t.truncateChars,a=void 0===n?200:n,i=t.lineClamp,l=t.clazzName,c=void 0===l?"":l,s=t.forceShowAtom,u=t.showFullContent,d=Vt()||{};if(!(s||e(d,["showSubheadline"],!0)))return null;var m=Ht(d.theme);return o.createElement("div",{style:{WebkitLineClamp:i},"data-test-id":"subheadline",className:("p-alt arr--sub-headline arrow-component ".concat(c)?"p-alt arr--sub-headline arrow-component ".concat(c)+" ":"")+T("subheadline ".concat(m),Or)},u||"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,a,!0))};Nr.propTypes={story:t.object.isRequired,lineClamp:t.number,truncateChars:t.number,clazzName:t.string,forceShowAtom:t.bool,showFullContent:t.bool},Nr.defaultProps={forceShowAtom:!1,showFullContent:!1};var Cr={"./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"}},Sr=function(e){var t=e.story,r=e.children,n=e.isHorizontal,a=e.aspectRatio,i=e.border,l=e.useImageAsBackground,c=e.bgImgContentOverlap,s=e.theme,u=e.borderColor,d=e.isHorizontalMobile,m=e.centerAlign,h=e.headerLevel,f=e.hideAuthorImage,p=e.prefix,g=e.config,v=e.isHorizontalWithImageLast;if(!t||qt(t))return o.createElement("div",null);var _=["default","full","bottom","boxShadow"].includes(i)?"border-".concat(i):"",y="default-card";n?y="horizontal-card":v&&(y="horizontal-image-last");var b=l?"backgroung-img":"",w=c?"content-overlap":"",E=Ht(s),x=d?"horizontal-mob":"",k=o.createElement(Ar,{story:t,aspectRatio:a,border:i,isHorizontalMobile:d,isHorizontal:n,centerAlign:m,headerLevel:h,borderColor:u,hideAuthorImage:f,prefix:p,config:g,isHorizontalWithImageLast:v});return o.createElement("div",{"data-test-id":"story-card",style:{backgroundColor:s,color:E},className:"arr--story-card "+T("card ".concat(y," ").concat(_," ").concat(E," ").concat(b," ").concat(w," ").concat(x),Cr)},r||k)},Ar=function(e){var t=e.story;e.border;var r=e.isHorizontal,n=e.aspectRatio,a=e.headerLevel,i=e.isHorizontalMobile,l=void 0!==i&&i,c=e.centerAlign,s=void 0!==c&&c,u=e.borderColor,d=e.hideAuthorImage,m=e.prefix,h=e.isHorizontalWithImageLast,f=e.config,p=s?"center-align":"",g=Pt(u),v=f.localizationConfig,_=void 0===v?{}:v;return o.createElement(o.Fragment,null,r?o.createElement(Tr,{config:f,story:t,isHorizontal:!0,isHorizontalMobile:l,aspectRatio:n}):h?o.createElement(Tr,{config:f,story:t,isHorizontalWithImageLast:!0,isHorizontalMobile:l,aspectRatio:n}):o.createElement(Tr,{story:t,config:f,isHorizontalMobile:l,aspectRatio:n}),o.createElement("div",{className:"arr--story-content "+T("content ".concat(p),Cr)},o.createElement(zr,{story:t,borderColor:g}),o.createElement(yr,{story:t,headerLevel:a,premiumStoryIconConfig:f}),o.createElement(cr,{config:_,story:t,isBottom:!0,prefix:m,hideAuthorImage:d}),o.createElement(Nr,{story:t})))};Ar.propTypes={story:t.object.isRequired,border:t.oneOfType([t.string]),isBottom:t.bool,isHorizontal:t.bool,aspectRatio:t.oneOfType([t.array]),isHorizontalMobile:t.bool,centerAlign:t.bool,headerLevel:t.string,borderColor:t.string,hideAuthorImage:t.bool,prefix:t.string,config:t.object,isHorizontalWithImageLast:t.bool},Sr.propTypes={story:t.object.isRequired,children:t.node,isHorizontal:t.bool,border:t.oneOfType([t.string]),useImageAsBackground:t.bool,bgImgContentOverlap:t.bool,aspectRatio:t.oneOfType([t.array]),theme:t.string,isHorizontalMobile:t.bool,centerAlign:t.bool,headerLevel:t.string,borderColor:t.string,hideAuthorImage:t.bool,prefix:t.string,config:t.object,isHorizontalWithImageLast:t.bool},Sr.defaultProps={isHorizontal:!1,isHorizontalMobile:!1,border:"default",theme:"",centerAlign:!1,borderColor:"",isHorizontalWithImageLast:!1};var Ir=function(e){var t=e.color,r=void 0===t?"#333":t;return o.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},o.createElement("path",{fill:r,fillRule:"evenodd",d:"M12 19.75a7.513 7.513 0 003.875-1.047 7.832 7.832 0 002.828-2.828A7.513 7.513 0 0019.75 12a7.513 7.513 0 00-1.047-3.875c-.698-1.187-1.64-2.13-2.828-2.828S13.395 4.25 12 4.25a7.51 7.51 0 00-3.875 1.047c-1.188.698-2.13 1.64-2.828 2.828S4.25 10.605 4.25 12a7.51 7.51 0 001.047 3.875 7.824 7.824 0 002.828 2.828A7.513 7.513 0 0012 19.75zm.016-1a6.64 6.64 0 01-3.391-.906 6.716 6.716 0 01-2.469-2.453 6.563 6.563 0 01-.906-3.375c0-1.22.302-2.35.906-3.391A6.711 6.711 0 018.61 6.156a6.563 6.563 0 013.375-.906c1.22 0 2.35.302 3.391.906a6.716 6.716 0 012.469 2.453A6.592 6.592 0 0118.751 12a6.616 6.616 0 01-.906 3.375 6.716 6.716 0 01-2.453 2.469 6.563 6.563 0 01-3.375.906zm2.283-3.92l.076-.002a.343.343 0 00.25-.14l.25-.375a.365.365 0 00.078-.266.328.328 0 00-.14-.234l-2.22-1.625V7.625a.362.362 0 00-.109-.266.36.36 0 00-.265-.109h-.438a.357.357 0 00-.265.11.358.358 0 00-.11.265v5c0 .125.052.219.156.281l2.532 1.844a.383.383 0 00.281.078l-.076.001z"}))};Ir.propTypes={color:t.string};var Mr={"./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 Rr(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 Pr(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Rr(Object(r),!0).forEach((function(t){v(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Rr(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var Fr=function(e){var t=e.config,r=void 0===t?{}:t,n=e.collection,a=e.template,i=void 0===a?"SubsequentLoadCount":a,l=e.onClick,c=e.navigate,s=e.qtConfig,u=r.showButton,d=void 0===u||u,m=r.buttonText,h=void 0===m?"Read More":m,p=r.theme,g=void 0===p?"":p,v=r.customUrlPath,_=void 0===v?"":v;if(!d)return null;var y=Ht(g),b=_?"/".concat(_):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;return void 0!==a&&a?"/magazine/archive/".concat(n):n?"/magazine/".concat(n,"/").concat(e.slug):e?Dt(e,t):"/"}(n,Pr(Pr({},s),r));return"SubsequentLoadCount"===i?o.createElement("div",{onClick:l,"data-test-id":"load-more",className:"arr--button "+T("button ".concat(y," default"),Mr)},h):o.createElement(f,{href:b,navigateTo:c,"data-test-id":"load-more","aria-label":"load-more"},o.createElement("div",{className:"arr--button "+T("button ".concat(y," default"),Mr)},h))};Fr.propTypes={collection:t.object,template:t.string,config:t.object,onClick:t.func,navigate:t.func,qtConfig:t.object};var Br={"./key-events.m.css":{container:"key-events-m_container__1slhR","event-title":"key-events-m_event-title__u9bt3","cards-wrapper":"key-events-m_cards-wrapper__3f8aB","time-wrapper":"key-events-m_time-wrapper__2poXn",dark:"key-events-m_dark__hrnAr",light:"key-events-m_light__2gE0a",borderNone:"key-events-m_borderNone__2tNUK","fade-out":"key-events-m_fade-out__11jv_"}},Hr=function(e){var t=e.config,r=e.index,n=e.cardLength,a=e.card,i=void 0===a?{}:a,l=e.slug,c=e.loadCards,s=e.showLoadMore,u=i["card-added-at"],d=i["story-elements"],m=void 0===d?[]:d,h=i.id,f=t.theme,p=t.mountAt,g=void 0===p?"":p,v=Ht(f),_="dark"===v?"#333":"#fff",y=r===n-1,b=y?"borderNone":"";return o.createElement(o.Fragment,null,o.createElement("div",{className:T("time-wrapper ".concat(v),Br)},o.createElement(Ir,{color:_}),Zt(u,At,{showTime:!0,isTimeFirst:!0})),o.createElement("a",{href:"".concat(g,"/").concat(l,"#").concat(h),"aria-label":"event-title"},o.createElement("div",{className:T("event-title ".concat(v," ").concat(b),Br)},m.map((function(e,t){return"title"===e.type&&o.createElement("h3",{key:t},e.text)})),s&&y&&c&&o.createElement("div",{className:"key-events-m_fade-out__11jv_",style:{backgroundImage:"linear-gradient(to bottom, transparent, ".concat(f,")")}}))))};Hr.propTypes={card:t.shape({"card-added-at":t.number,"story-elements":t.array,id:t.string}),config:t.object,slug:t.string,story:t.object,elements:t.array,index:t.number,cardLength:t.number,loadCards:t.bool,showLoadMore:t.bool};var Dr=function(t){var r=t.story,n=void 0===r?{}:r,a=t.config,l=void 0===a?{}:a,c=t.showLoadMore,s=void 0===c||c,u=e(n,["cards"],[]),d=l.theme,m=l.initialLoadCount,h=void 0===m?4:m,f=Ht(d),p=w(i(h),2),v=p[0],_=p[1],y=u.filter((function(t){return e(t.metadata,["attributes","key-event"])})),b=y.length>v,E=g((function(t){return e(t,["qt","config"],{})}));if(y.length<1)return null;var x=(s?y.slice(0,v):y.slice(0,4)).map((function(e,t,r){return o.createElement(Hr,{cardLength:r.length,card:e,key:e.id,slug:n.slug,config:l,index:t,loadCards:b,showLoadMore:s})}));return o.createElement("div",{style:{background:d},className:"arrow-component "+T("container ".concat(f),Br)},o.createElement("h3",null,"Key Events"),o.createElement("div",{className:"key-events-m_cards-wrapper__3f8aB"},x),s&&b&&o.createElement(Fr,{onClick:function(){_(v+h)},template:"SubsequentLoadCount",config:l,qtConfig:E}))};Dr.propTypes={story:t.object,config:t.object,showLoadMore:t.bool};var Wr=Kt(Dr);function qr(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 Ur(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?qr(Object(r),!0).forEach((function(t){v(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):qr(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var Gr={"./aside-collection.m.css":{stories:"aside-collection-m_stories__9wfUs",wrapper:"aside-collection-m_wrapper__2TJi5",story:"aside-collection-m_story__17Jdm","story-hero-image":"aside-collection-m_story-hero-image__13nFY","story-byline":"aside-collection-m_story-byline__37KRG",info:"aside-collection-m_info__3p4zt",dark:"aside-collection-m_dark__2ElwM",light:"aside-collection-m_light__2lEO2","ad-slot":"aside-collection-m_ad-slot__28nE2","horizontal-wrapper":"aside-collection-m_horizontal-wrapper__3-KW0",sticky:"aside-collection-m_sticky__AZXBP"}},Zr=function(t){var r=t.data,n=t.slotData,a=t.horizontal,c=t.config,s=t.opts,u=n||c,d=u.theme,m=void 0===d?"":d,h=u.title,f=void 0===h?"":h,p=u.collectionSlug,g=void 0===p?"":p,v=f||"Related Stories",_=a?"horizontal-wrapper":"",b=e(c,["mountAtPrefix"],""),E=w(i([]),2),x=E[0],k=E[1],L=w(i([]),2),T=L[0],z=L[1],O=function(){var e=y(j.mark((function e(t){var r,o;return j.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Gt(t,b);case 2:r=e.sent,z(r),o=r.items,k(o);case 6:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();return l((function(){g&&O(g)}),[g]),l((function(){if(!g&&r){var e=r.items||r;k(e)}}),[r,g]),o.createElement(o.Fragment,null,o.createElement(dr,{customCollectionName:v,textColor:!0,collection:T}),o.createElement("div",{className:"aside-collection-m_stories__9wfUs"},x&&x.length>0?x.slice(0,4).map((function(e){var t=e.story||e;return o.createElement("div",{className:"aside-collection-m_story__17Jdm",key:t.id},o.createElement(Sr,{story:t,isHorizontal:!0,theme:m,config:c},o.createElement("div",{className:"aside-collection-m_story-hero-image__13nFY"},o.createElement(Tr,{story:t,aspectRatio:[[4,3]]})),o.createElement("div",null,_&&o.createElement(zr,{story:t}),o.createElement(yr,{story:t}),o.createElement("div",{className:"aside-collection-m_story-byline__37KRG"},o.createElement(cr,{config:s,story:t})))))})):o.createElement("div",{"data-test-id":"no-stories",className:"aside-collection-m_info__3p4zt"},"No stories found.")))};Zr.propTypes={data:t.oneOfType([t.object,t.array]),config:t.object,horizontal:t.bool,slotData:t.object,opts:t.object};var Jr=function(e){var t=e.data,r=void 0===t?{}:t,n=e.config,a=void 0===n?{}:n,i=e.horizontal,l=void 0!==i&&i,c=e.slots,s=void 0===c?[]:c,u=e.sticky,d=void 0!==u&&u,m=e.keyEventsData,h=void 0===m?{}:m,f=e.enableKeyEvents,p=void 0!==f&&f,g=e.adComponent,v=e.widgetComp,_=e.storyId,y=e.opts,b=void 0===y?{}:y;if(qt(r))return null;var w=a.theme,E=l?"horizontal-wrapper":"";if(l)return o.createElement("div",{style:{backgroundColor:w},"data-test-id":"aside-collection",id:"aside-collection-".concat(_),className:"arrow-component arr--aside-collection "+T("wrapper ".concat(E),Gr)},o.createElement(Zr,{data:r,horizontal:l,config:a,opts:b}));var x=d?"sticky":"";return o.createElement("div",{style:{backgroundColor:w},"data-test-id":"aside-collection",className:"arrow-component arr--aside-collection "+T(["wrapper",E,x].join(" "),Gr)},p&&o.createElement(Wr,{story:h.story,showLoadMore:h.showLoadMore,config:h.config}),s.map((function(e,t){return function(e,t,n){switch(e){case"ad":return o.createElement("div",{className:"aside-collection-ad-slot aside-collection-m_ad-slot__28nE2"},g(Ur(Ur({},t),{},{id:"ad-".concat(n,"_").concat(_)})));case"widget":return o.createElement("div",{className:"aside-collection-ad-slot aside-collection-m_ad-slot__28nE2"},v(Ur(Ur({},t),{},{id:"widget-".concat(n,"_").concat(_)})));case"collection":return o.createElement("div",{id:"aside-collection-".concat(n,"_").concat(_)},o.createElement(Zr,{slotData:t,data:r,horizontal:l,config:a,opts:b}))}}(e.type,e,t)})))};Jr.propTypes={data:t.oneOfType([t.object,t.array]),config:t.object,opts:t.object,horizontal:t.bool,slots:t.array,adComponent:t.func,widgetComp:t.func,sticky:t.bool,keyEventsData:t.shape({story:t.object,config:t.object,showLoadMore:t.boolean}),enableKeyEvents:t.boolean,storyId:t.string};var Kr=Kt(Jr);export{Zr as StoryCollection,Kr as default};