@quintype/arrow 3.1.0 → 3.2.1-arrow-chunking.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/AlsoRead/index.js +1 -0
- package/AlternateCollectionFilter/index.js +1 -0
- package/AsideCollection/index.js +1 -0
- package/Attachment/index.js +1 -0
- package/Author/index.js +1 -0
- package/AuthorIntroductionCard/index.js +1 -0
- package/AuthorWithTime/index.js +1 -0
- package/AuthorsList/index.js +1 -0
- package/BigFact/index.js +1 -0
- package/BlockQuote/index.js +1 -0
- package/Blurb/index.js +1 -0
- package/CollectionFilter/index.js +1 -0
- package/CollectionName/index.js +1 -0
- package/ElevenStories/index.js +1 -0
- package/FourColFiveStories/index.js +1 -0
- package/FourColFiveStories/styles.arrow.css +1 -1
- package/FourColGrid/index.js +1 -0
- package/FourColSixteenStories/index.js +1 -0
- package/FourColTwelveStories/index.js +1 -0
- package/FourStorySlider/index.js +1 -0
- package/FourTabbedBigStorySlider/index.js +1 -0
- package/FullScreenSlider/index.js +1 -0
- package/HalfScreenSlider/index.js +1 -0
- package/Headline/index.js +1 -0
- package/HeroImage/index.js +1 -0
- package/Image/index.js +1 -0
- package/ImageGallery/index.js +1 -0
- package/ImageSlideshow/index.js +1 -0
- package/KeyEvents/index.js +1 -0
- package/ListComponent/index.js +1 -0
- package/ListicleStoryTemplate/index.js +1 -0
- package/Listicles/index.js +1 -0
- package/LiveBlogStoryTemplate/index.js +1 -0
- package/LiveBlogStoryTemplate/styles.arrow.css +1 -1
- package/LoadmoreButton/index.js +1 -0
- package/MagazineEditions/index.js +1 -0
- package/MagazineHeaderCard/index.js +1 -0
- package/MagazineWidget/index.js +1 -0
- package/OneColStoryList/index.js +1 -0
- package/OpinionCollection/index.js +1 -0
- package/PageIntroductionCard/index.js +1 -0
- package/PhotoStoryTemplate/index.js +1 -0
- package/QuestionAnswer/index.js +1 -0
- package/Quote/index.js +1 -0
- package/Reference/index.js +1 -0
- package/ScrollSnap/index.js +1 -0
- package/SectionTag/index.js +1 -0
- package/SixColSixStories/index.js +1 -0
- package/SocialShareTemplate/index.js +1 -0
- package/StoryCard/index.js +1 -0
- package/StoryCollection/index.js +1 -0
- package/StoryElement/index.js +1 -0
- package/StoryElementCard/index.js +1 -0
- package/StorycardContent/index.js +1 -0
- package/Subheadline/index.js +1 -0
- package/Summary/index.js +1 -0
- package/TagIntroductionCard/index.js +1 -0
- package/Text/index.js +1 -0
- package/TextStoryTemplate/index.js +1 -0
- package/TextStoryTemplate/styles.arrow.css +1 -1
- package/ThreeColFlexStories/index.js +1 -0
- package/ThreeColFourteenStories/index.js +1 -0
- package/ThreeColGrid/index.js +1 -0
- package/ThreeColSevenStory/index.js +1 -0
- package/ThreeColSixStories/index.js +1 -0
- package/ThreeColTwelveStories/index.js +1 -0
- package/TimeStamp/index.js +1 -0
- package/TwoColFourStories/index.js +1 -0
- package/TwoColFourStoryHighlight/index.js +1 -0
- package/TwoColSixStories/index.js +1 -0
- package/TwoColSixStories/styles.arrow.css +1 -1
- package/TwoColTenStoriesSidebar/index.js +1 -0
- package/TwoColThreeStories/index.js +1 -0
- package/Video/index.js +1 -0
- package/VideoStoryTemplate/index.js +1 -0
- package/cjs/index.js +1 -9
- package/esm/index.js +1 -9
- package/package.json +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import t,{useContext as e,createContext as r}from"react";import{Link as n,LazyLoadImages as o,ResponsiveImage as a}from"@quintype/components";import i from"prop-types";import"react-timeago";function l(){return(l=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}).apply(this,arguments)}function s(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 c="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function u(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function f(t){var e={exports:{}};return t(e,e.exports),e.exports}var h=f((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})),p=u(f((function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r,n=(r=h)&&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(" "):""}}))),d=Array.isArray,v="object"==typeof c&&c&&c.Object===Object&&c,m="object"==typeof self&&self&&self.Object===Object&&self,y=v||m||Function("return this")(),g=y.Symbol,_=Object.prototype,b=_.hasOwnProperty,w=_.toString,j=g?g.toStringTag:void 0;var E=function(t){var e=b.call(t,j),r=t[j];try{t[j]=void 0;var n=!0}catch(t){}var o=w.call(t);return n&&(e?t[j]=r:delete t[j]),o},x=Object.prototype.toString;var O=function(t){return x.call(t)},S=g?g.toStringTag:void 0;var k=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":S&&S in Object(t)?E(t):O(t)};var L=function(t){return null!=t&&"object"==typeof t};var N=function(t){return"symbol"==typeof t||L(t)&&"[object Symbol]"==k(t)},A=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,C=/^\w*$/;var I=function(t,e){if(d(t))return!1;var r=typeof t;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=t&&!N(t))||(C.test(t)||!A.test(t)||null!=e&&t in Object(e))};var P=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)};var R,T=function(t){if(!P(t))return!1;var e=k(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e},F=y["__core-js_shared__"],z=(R=/[^.]+$/.exec(F&&F.keys&&F.keys.IE_PROTO||""))?"Symbol(src)_1."+R:"";var M=function(t){return!!z&&z in t},G=Function.prototype.toString;var $=function(t){if(null!=t){try{return G.call(t)}catch(t){}try{return t+""}catch(t){}}return""},Y=/^\[object .+?Constructor\]$/,W=Function.prototype,Z=Object.prototype,B=W.toString,V=Z.hasOwnProperty,K=RegExp("^"+B.call(V).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var U=function(t){return!(!P(t)||M(t))&&(T(t)?K:Y).test($(t))};var X=function(t,e){return null==t?void 0:t[e]};var q=function(t,e){var r=X(t,e);return U(r)?r:void 0},D=q(Object,"create");var H=function(){this.__data__=D?D(null):{},this.size=0};var J=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},Q=Object.prototype.hasOwnProperty;var tt=function(t){var e=this.__data__;if(D){var r=e[t];return"__lodash_hash_undefined__"===r?void 0:r}return Q.call(e,t)?e[t]:void 0},et=Object.prototype.hasOwnProperty;var rt=function(t){var e=this.__data__;return D?void 0!==e[t]:et.call(e,t)};var nt=function(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=D&&void 0===e?"__lodash_hash_undefined__":e,this};function ot(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])}}ot.prototype.clear=H,ot.prototype.delete=J,ot.prototype.get=tt,ot.prototype.has=rt,ot.prototype.set=nt;var at=ot;var it=function(){this.__data__=[],this.size=0};var lt=function(t,e){return t===e||t!=t&&e!=e};var st=function(t,e){for(var r=t.length;r--;)if(lt(t[r][0],e))return r;return-1},ct=Array.prototype.splice;var ut=function(t){var e=this.__data__,r=st(e,t);return!(r<0)&&(r==e.length-1?e.pop():ct.call(e,r,1),--this.size,!0)};var ft=function(t){var e=this.__data__,r=st(e,t);return r<0?void 0:e[r][1]};var ht=function(t){return st(this.__data__,t)>-1};var pt=function(t,e){var r=this.__data__,n=st(r,t);return n<0?(++this.size,r.push([t,e])):r[n][1]=e,this};function dt(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])}}dt.prototype.clear=it,dt.prototype.delete=ut,dt.prototype.get=ft,dt.prototype.has=ht,dt.prototype.set=pt;var vt=dt,mt=q(y,"Map");var yt=function(){this.size=0,this.__data__={hash:new at,map:new(mt||vt),string:new at}};var gt=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t};var _t=function(t,e){var r=t.__data__;return gt(e)?r["string"==typeof e?"string":"hash"]:r.map};var bt=function(t){var e=_t(this,t).delete(t);return this.size-=e?1:0,e};var wt=function(t){return _t(this,t).get(t)};var jt=function(t){return _t(this,t).has(t)};var Et=function(t,e){var r=_t(this,t),n=r.size;return r.set(t,e),this.size+=r.size==n?0:1,this};function xt(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])}}xt.prototype.clear=yt,xt.prototype.delete=bt,xt.prototype.get=wt,xt.prototype.has=jt,xt.prototype.set=Et;var Ot=xt;function St(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(St.Cache||Ot),r}St.Cache=Ot;var kt=St;var Lt=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Nt=/\\(\\)?/g,At=function(t){var e=kt(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(Lt,(function(t,r,n,o){e.push(n?o.replace(Nt,"$1"):r||t)})),e}));var Ct=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},It=g?g.prototype:void 0,Pt=It?It.toString:void 0;var Rt=function t(e){if("string"==typeof e)return e;if(d(e))return Ct(e,t)+"";if(N(e))return Pt?Pt.call(e):"";var r=e+"";return"0"==r&&1/e==-Infinity?"-0":r};var Tt=function(t){return null==t?"":Rt(t)};var Ft=function(t,e){return d(t)?t:I(t,e)?[t]:At(Tt(t))};var zt=function(t){if("string"==typeof t||N(t))return t;var e=t+"";return"0"==e&&1/t==-Infinity?"-0":e};var Mt=function(t,e){for(var r=0,n=(e=Ft(e,t)).length;null!=t&&r<n;)t=t[zt(e[r++])];return r&&r==n?t:void 0};var Gt=function(t,e,r){var n=null==t?void 0:Mt(t,e);return void 0===n?r:n},$t=["element","render"],Yt=function(e){return function(r){var n=r.element,o=r.render,a=s(r,$t);return n?o&&"function"==typeof o?o(r):t.createElement(e,l({},a,{element:n})):null}};Yt.propTypes={StoryElement:i.element};var Wt=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"}))))};Wt.propTypes={width:i.object,height:i.object,iconColor:i.object};var Zt=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(Wt,null)))},Bt=function(e){var r=e.slug;return r?t.createElement(n,{href:r,"aria-label":"image-fallback"},Zt()):Zt()};function Vt(t){return(Vt="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})(t)}Bt.propTypes={slug:i.string},f((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 Kt=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},Ut=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},Xt={mobile:767,tablet:1024},qt=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 Dt=r(),Ht=["story","element","template","opts","css","config","render"],Jt={"./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"}},Qt=function(e){var r,n,i=e.story,l=e.linkedImage,s=e.template,c=e.isRightAlign,u="textLeftAlign"===s,f=!!(r=Gt(Xt,"mobile"))&&Gt(global,"document.documentElement.clientWidth")<=r,h=u?[16,9]:c&&f?[4,3]:[16,9],p=i["hero-image-caption"]||i.headline;return t.createElement("div",{className:"also-read-m_card-image-wrapper__3GFzu"},null==(n=l)||"object"===Vt(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(Bt,null)):t.createElement("figure",{className:"also-read-m_card-image__3CwAv"},t.createElement(o,null,t.createElement(a,{slug:l,"aspect-ratio":h,defaultWidth:480,widths:[250,480,640],imgParams:{auto:["format","compress"]},alt:p}))))};Qt.propTypes={story:i.shape({"hero-image-caption":i.string,headline:i.string}),linkedImage:i.string,template:i.string,isRightAlign:i.bool};var te=function(r){var o=r.story,a=void 0===o?{}:o,i=r.element,c=r.template,u=void 0===c?"":c,f=r.opts,h=void 0===f?{}:f,d=r.css,v=void 0===d?{}:d;r.config,r.render;var m=s(r,Ht),y=i.text;if(!y)return null;var g=Gt(a,["linked-stories"],{}),_=Gt(i,["metadata","linked-story-id"]),b=Gt(g,[_,"url"]),w=Gt(g,[_,"hero-image-s3-key"],""),j=b&&b,E=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:Ut(t);return Kt(e)<155?"light":"dark"}((e(Dt)||{}).theme),x=h.title,O=void 0===x?"":x,S=v.textColor,k=O||"Also Read",L=""===u||"default"===u,N="imageRightAlign"===u,A=u?"alsoread-".concat(u):"alsoread-default";return t.createElement(n,l({"data-test-id":"also-read",href:j,"aria-label":"also-read"},m,{className:"arrow-component arr--also-read-element "+p(A,Jt)+" "+(m&&m.className||"")}),!L&&t.createElement("div",{className:p("default-text ".concat(E),Jt)},k),L&&t.createElement(Qt,{story:a,linkedImage:w,template:u,isRightAlign:N}),t.createElement("div",{className:"also-read-m_content-wrapper__26AZX"},t.createElement("div",{className:"also-read-m_headline__VzF-c",style:S?{color:S}:{color:E},dangerouslySetInnerHTML:{__html:y}}),N&&t.createElement(Qt,{story:a,linkedImage:w,template:u})))};te.propTypes={template:i.string,story:i.shape({"linked-stories":i.object}),element:i.shape({text:i.string,metadata:i.shape({linkedStoryId:i.shape({url:i.string,"hero-image-s3-key":i.string})})}),opts:i.shape({title:i.string}),config:qt,render:i.func,css:i.object};var ee=Yt(te);export{ee 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{connect as c,useSelector as s,useDispatch as u}from"react-redux";import{Link as m,LinkBase as d,ResponsiveImage as h,ResponsiveHeroImage as f,collectionToStories as p}from"@quintype/components";import g from"react-timeago";function v(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 _(e){return function(){var t=this,r=arguments;return new Promise((function(o,n){var a=e.apply(t,r);function i(e){v(a,o,n,i,l,"next",e)}function l(e){v(a,o,n,i,l,"throw",e)}i(void 0)}))}}function b(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function y(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,o=new Array(t);r<t;r++)o[r]=e[r];return o}function 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 y(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?y(e,t):void 0}}(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 T=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 N(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(L([])));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 j(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function N(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(C,this),this.reset(!0)}function L(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=L,N.prototype={constructor:N,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(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:L(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)}})),C=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})),j=x(k((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,o=(r=C)&&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(" "):""}}))),N=Array.isArray,L="object"==typeof E&&E&&E.Object===Object&&E,z="object"==typeof self&&self&&self.Object===Object&&self,O=L||z||Function("return this")(),S=O.Symbol,A=Object.prototype,M=A.hasOwnProperty,I=A.toString,P=S?S.toStringTag:void 0;var R=function(e){var t=M.call(e,P),r=e[P];try{e[P]=void 0;var o=!0}catch(e){}var n=I.call(e);return o&&(t?e[P]=r:delete e[P]),n},B=Object.prototype.toString;var H=function(e){return B.call(e)},F=S?S.toStringTag:void 0;var D=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":F&&F in Object(e)?R(e):H(e)};var W=function(e){return null!=e&&"object"==typeof e};var q=function(e){return"symbol"==typeof e||W(e)&&"[object Symbol]"==D(e)},U=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,G=/^\w*$/;var Z=function(e,t){if(N(e))return!1;var r=typeof e;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=e&&!q(e))||(G.test(e)||!U.test(e)||null!=t&&e in Object(t))};var J=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)};var V,Y=function(e){if(!J(e))return!1;var t=D(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},K=O["__core-js_shared__"],$=(V=/[^.]+$/.exec(K&&K.keys&&K.keys.IE_PROTO||""))?"Symbol(src)_1."+V:"";var Q=function(e){return!!$&&$ in e},X=Function.prototype.toString;var ee=function(e){if(null!=e){try{return X.call(e)}catch(e){}try{return e+""}catch(e){}}return""},te=/^\[object .+?Constructor\]$/,re=Function.prototype,oe=Object.prototype,ne=re.toString,ae=oe.hasOwnProperty,ie=RegExp("^"+ne.call(ae).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var le=function(e){return!(!J(e)||Q(e))&&(Y(e)?ie:te).test(ee(e))};var ce=function(e,t){return null==e?void 0:e[t]};var se=function(e,t){var r=ce(e,t);return le(r)?r:void 0},ue=se(Object,"create");var me=function(){this.__data__=ue?ue(null):{},this.size=0};var de=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},he=Object.prototype.hasOwnProperty;var fe=function(e){var t=this.__data__;if(ue){var r=t[e];return"__lodash_hash_undefined__"===r?void 0:r}return he.call(t,e)?t[e]:void 0},pe=Object.prototype.hasOwnProperty;var ge=function(e){var t=this.__data__;return ue?void 0!==t[e]:pe.call(t,e)};var ve=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=ue&&void 0===t?"__lodash_hash_undefined__":t,this};function _e(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])}}_e.prototype.clear=me,_e.prototype.delete=de,_e.prototype.get=fe,_e.prototype.has=ge,_e.prototype.set=ve;var be=_e;var ye=function(){this.__data__=[],this.size=0};var we=function(e,t){return e===t||e!=e&&t!=t};var Ee=function(e,t){for(var r=e.length;r--;)if(we(e[r][0],t))return r;return-1},xe=Array.prototype.splice;var ke=function(e){var t=this.__data__,r=Ee(t,e);return!(r<0)&&(r==t.length-1?t.pop():xe.call(t,r,1),--this.size,!0)};var Te=function(e){var t=this.__data__,r=Ee(t,e);return r<0?void 0:t[r][1]};var Ce=function(e){return Ee(this.__data__,e)>-1};var je=function(e,t){var r=this.__data__,o=Ee(r,e);return o<0?(++this.size,r.push([e,t])):r[o][1]=t,this};function Ne(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var o=e[t];this.set(o[0],o[1])}}Ne.prototype.clear=ye,Ne.prototype.delete=ke,Ne.prototype.get=Te,Ne.prototype.has=Ce,Ne.prototype.set=je;var Le=Ne,ze=se(O,"Map");var Oe=function(){this.size=0,this.__data__={hash:new be,map:new(ze||Le),string:new be}};var Se=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e};var Ae=function(e,t){var r=e.__data__;return Se(t)?r["string"==typeof t?"string":"hash"]:r.map};var Me=function(e){var t=Ae(this,e).delete(e);return this.size-=t?1:0,t};var Ie=function(e){return Ae(this,e).get(e)};var Pe=function(e){return Ae(this,e).has(e)};var Re=function(e,t){var r=Ae(this,e),o=r.size;return r.set(e,t),this.size+=r.size==o?0:1,this};function Be(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var o=e[t];this.set(o[0],o[1])}}Be.prototype.clear=Oe,Be.prototype.delete=Me,Be.prototype.get=Ie,Be.prototype.has=Pe,Be.prototype.set=Re;var He=Be;function Fe(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(Fe.Cache||He),r}Fe.Cache=He;var De=Fe;var We=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,qe=/\\(\\)?/g,Ue=function(e){var t=De(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(We,(function(e,r,o,n){t.push(o?n.replace(qe,"$1"):r||e)})),t}));var Ge=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},Ze=S?S.prototype:void 0,Je=Ze?Ze.toString:void 0;var Ve=function e(t){if("string"==typeof t)return t;if(N(t))return Ge(t,e)+"";if(q(t))return Je?Je.call(t):"";var r=t+"";return"0"==r&&1/t==-Infinity?"-0":r};var Ye=function(e){return null==e?"":Ve(e)};var Ke=function(e,t){return N(e)?e:Z(e,t)?[e]:Ue(Ye(e))};var $e=function(e){if("string"==typeof e||q(e))return e;var t=e+"";return"0"==t&&1/e==-Infinity?"-0":t};var Qe=function(e,t){for(var r=0,o=(t=Ke(t,e)).length;null!=e&&r<o;)e=e[$e(t[r++])];return r&&r==o?e:void 0};var Xe=function(e,t,r){var o=null==e?void 0:Qe(e,t);return void 0===o?r:o},et=t(),tt=function(){return r(et)};function rt(e){return(rt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var ot=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 nt=function(e){return function(t){return null==e?void 0:e[t]}}({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"}),at=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,it=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]","g");var lt=function(e){return(e=Ye(e))&&e.replace(at,nt).replace(it,"")},ct=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;var st=function(e){return e.match(ct)||[]},ut=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;var mt=function(e){return ut.test(e)},dt="\\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",ht="["+dt+"]",ft="\\d+",pt="[\\u2700-\\u27bf]",gt="[a-z\\xdf-\\xf6\\xf8-\\xff]",vt="[^\\ud800-\\udfff"+dt+ft+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",_t="(?:\\ud83c[\\udde6-\\uddff]){2}",bt="[\\ud800-\\udbff][\\udc00-\\udfff]",yt="[A-Z\\xc0-\\xd6\\xd8-\\xde]",wt="(?:"+gt+"|"+vt+")",Et="(?:"+yt+"|"+vt+")",xt="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?",kt="[\\ufe0e\\ufe0f]?"+xt+("(?:\\u200d(?:"+["[^\\ud800-\\udfff]",_t,bt].join("|")+")[\\ufe0e\\ufe0f]?"+xt+")*"),Tt="(?:"+[pt,_t,bt].join("|")+")"+kt,Ct=RegExp([yt+"?"+gt+"+(?:['’](?:d|ll|m|re|s|t|ve))?(?="+[ht,yt,"$"].join("|")+")",Et+"+(?:['’](?:D|LL|M|RE|S|T|VE))?(?="+[ht,yt+wt,"$"].join("|")+")",yt+"?"+wt+"+(?:['’](?:d|ll|m|re|s|t|ve))?",yt+"+(?:['’](?: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_])",ft,Tt].join("|"),"g");var jt=function(e){return e.match(Ct)||[]};var Nt=function(e,t,r){return e=Ye(e),void 0===(t=r?void 0:t)?mt(e)?jt(e):st(e):e.match(t)||[]},Lt=RegExp("['’]","g");var zt=function(e){return function(t){return ot(Nt(lt(t).replace(Lt,"")),e,"")}},Ot=zt((function(e,t,r){return e+(r?" ":"")+t.toUpperCase()})),St=zt((function(e,t,r){return e+(r?" ":"")+t.toLowerCase()}));function At(e,t,r,o,n){var a,i=Xe(n,["localizedPublishTime",r])||r;return"hour"===t&&e>23||-1!==["day","week","month","year"].indexOf(t)?function(e,t,r,o){var n=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},a=n.showTime,i=void 0!==a&&a,l=n.isTimeFirst,c=void 0!==l&&l,s=n.isUpperCase,u=void 0!==s&&s,m=n.disableMeridiem,d=void 0!==m&&m,h=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],f=new Date(o),p=f.getDate().toString().padStart(2,0),g=h[f.getMonth()],v=g;u&&(v=Ot(g));var _,b=f.getFullYear(),y=n.localizedMeridiem,w=n.localizedMonths,E=n.direction,x=void 0===E?"ltr":E,k=Mt(o),T=k;if(w&&(v=Xe(w,[St(g)])||g),y){var C=k.includes("am"),j=y.am,N=void 0===j?"am":j,L=y.pm,z=void 0===L?"pm":L;T=(C?k.replace("am",N):k.replace("pm",z))||k}return"rtl"===x?(_=i?"".concat(T):"","".concat(p," ").concat(v,", ").concat(b," ").concat(_," ")):d?"".concat(v," ").concat(p,", ").concat(b):c?"".concat(T,", ").concat(p," ").concat(v," ").concat(b):(_=i?", ".concat(T):"","".concat(p," ").concat(v,", ").concat(b).concat(_))}(e,t,r,o,n):e>1?(a=Xe(n,["localizedPublishTime","".concat(t,"s")])||"".concat(t,"s"),"".concat(e," ").concat(a," ").concat(i)):(a=Xe(n,["localizedPublishTime",t])||t,"".concat(e," ").concat(a," ").concat(i," "))}function Mt(e){var t=new Date(e),r=t.getHours(),o=t.getMinutes(),n=r>=12?"pm":"am";return(r=(r%=12)||12)+":"+(o=o<10?"0"+o:o)+" "+n}var It=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},Rt={mobile:767,tablet:1024},Bt=function(e){var t=Xe(Rt,e);return!!t&&Xe(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=It(r)<155?"light":"dark";return o},Ft=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=Xe(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 Dt(){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?Xe(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 Wt=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return"news-elsewhere"===Xe(e,["story-template"])?Xe(e,["metadata","reference-url"],""):e.url||t},qt=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?Ft(e,t):"/"},Ut={"./collection-name.m.css":{collection:"collection-name-m_collection__JD6sx","collection-borderLeft":"collection-name-m_collection-borderLeft__3Dznk","border-left":"collection-name-m_border-left__3_pYw","collection-borderBottomFull":"collection-name-m_collection-borderBottomFull__Dkq3K","collection-borderBottom":"collection-name-m_collection-borderBottom__2rdQM","collection-crossLine":"collection-name-m_collection-crossLine__1sIpN","border-bottom":"collection-name-m_border-bottom__1MnlV",dark:"collection-name-m_dark__nMe5H",light:"collection-name-m_light__1vFDN"}},Gt=function(t){var r=t.collectionNameBorderColor,o=void 0===r?"":r,n=t.collection,a=t.config,i=t.collectionNameTemplate,l=t.headerLevel,c=t.customCollectionName,s=void 0===c?"":c,u=t.navigate,d=void 0===u||u,h=tt()||{},f=Xe(h,["showRowTitle"],!0),p=["borderLeft","borderBottom","crossLine","borderBottomFull"].includes(i)?" collection-".concat(i):"",g=d&&n&&Ft(n,a)||"",v=s||n.name||"",_=Ht(h.theme),b="h"+l,y=Pt(o),w=p.includes("collection-borderBottomFull")?"4px solid ".concat(y):"",E=Bt("mobile");return e.createElement(e.Fragment,null,f&&v&&e.createElement("div",{style:{borderBottom:w},"data-test-id":"collection-name",className:"arr--collection-name arrow-component "+j("collection ".concat(_," ").concat(p),Ut)},p.includes("collection-borderLeft")&&e.createElement("span",{className:"arr-collection-name-border-left collection-name-m_border-left__3_pYw",style:{color:y,fontSize:function(){if(E)switch(l){case"1":return"32px";case"2":return"24px";case"3":return"20px";case"4":return"18px";case"5":case"6":return"16px";default:return"20px"}switch(l){case"1":return"40px";case"2":return"32px";case"3":return"24px";case"4":return"20px";case"5":return"18px";case"6":return"16px";default:return"24px"}}()}}),g&&!g.includes(void 0)?e.createElement(m,{href:g,"aria-label":"collection-name"},e.createElement(b,null,v)):e.createElement(b,null,v),p.includes("collection-borderBottom")&&!p.includes("collection-borderBottomFull")?e.createElement("div",{className:"collection-name-m_border-bottom__1MnlV",style:{borderBottom:"4px solid ".concat(y)}}):""))};Gt.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},Gt.defaultProps={collectionNameTemplate:"",headerLevel:"3"};var Zt=c((function(e){return{config:Xe(e,["qt","config"],{})}}))(Gt),Jt={"./load-more.m.css":{button:"load-more-m_button__1mmf1",default:"load-more-m_default__2_k4V",dark:"load-more-m_dark__3dfzb",light:"load-more-m_light__ePZQI"}};function Vt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,o)}return r}function Yt(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Vt(Object(r),!0).forEach((function(t){b(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Vt(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var Kt=function(t){var r=t.config,o=void 0===r?{}:r,n=t.collection,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,h=o.buttonText,f=void 0===h?"Read More":h,p=o.theme,g=void 0===p?"":p,v=o.customUrlPath,_=void 0===v?"":v;if(!m)return null;var b=Ht(g),y=_?"/".concat(_):qt(n,Yt(Yt({},s),o));return"SubsequentLoadCount"===i?e.createElement("div",{onClick:l,"data-test-id":"load-more",className:"arr--button "+j("button ".concat(b," default"),Jt)},f):e.createElement(d,{href:y,navigateTo:c,"data-test-id":"load-more","aria-label":"load-more"},e.createElement("div",{className:"arr--button "+j("button ".concat(b," default"),Jt)},f))};Kt.propTypes={collection:i.object,template:i.string,config:i.object,onClick:i.func,navigate:i.func,qtConfig:i.object};var $t=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"}))))))};$t.propTypes={height:i.string,width:i.string,color:i.string,positionTop:i.string};var Qt=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)"})))))};Qt.propTypes={height:i.string,width:i.string,color:i.string,positionTop:i.string};var Xt=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"}))))))};Xt.propTypes={height:i.string,width:i.string,color:i.string,positionTop:i.string};var er=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"}))))};er.propTypes={height:i.string,width:i.string,color:i.string,positionTop:i.string};var tr=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($t,{width:r,height:o,color:n,positionTop:i});case"lock":return e.createElement(Xt,{width:r,height:o,color:n,positionTop:i});case"key":return e.createElement(Qt,{width:r,height:o,color:n,positionTop:i});default:return e.createElement(er,{width:r,height:o,color:n,positionTop:i})}};tr.propTypes={width:i.string,height:i.string,color:i.string,iconType:i.string,positionTop:i.string};var rr={"./headline.m.css":{wrapper:"headline-m_wrapper__3nUmh",headline:"headline-m_headline__3_NhV",dark:"headline-m_dark__en3hW",light:"headline-m_light__3lKJB"}},or=function(t){var r=t.story,o=t.headerLevel,n=t.premiumStoryIconConfig,a=void 0===n?{}:n,i=t.isLink,l=tt()||{},c=a.iconColor,s=void 0===c?"#F7B500":c,u=a.iconStyle,d=void 0===u?"star":u,h=a.enablePremiumStoryIcon,f=void 0!==h&&h,p=Xe(r,["alternative","home","default","headline"]),g=f&&"subscription"===Xe(r,["access"]),v=p||r.headline,_="h"+o,b=Ht(l.theme),y=g?"wrapper":"",w="24px";return e.createElement("div",{"data-test-id":"headline",className:"arrow-component arr--headline "+j(y,rr)},g&&e.createElement(tr,{width:w,height:w,color:s,iconType:d,positionTop:function(){switch(parseInt(o)){case 1:return"-2px";case 2:return"2px";case 3:return"4px";case 4:return"5px";default:return"6px"}}()}),i?e.createElement(m,{href:Wt(r,"/".concat(r.slug)),externalLink:Dt(r),"aria-label":"headline"},e.createElement(_,{className:j("headline ".concat(b),rr)},v)):e.createElement(_,{className:j("headline ".concat(b),rr)},v))};or.propTypes={story:i.object.isRequired,headerLevel:i.string,premiumStoryIconConfig:i.shape({iconColor:i.string,iconType:i.string,enablePremiumStoryIcon:i.bool}),isLink:i.bool},or.defaultProps={headerLevel:"6",isLink:!0};var nr={"./subheadline.m.css":{subheadline:"subheadline-m_subheadline__3fd7z",dark:"subheadline-m_dark__28u00",light:"subheadline-m_light__2YUOe"}},ar=function(t){var r=t.story,o=t.truncateChars,n=void 0===o?200:o,a=t.lineClamp,i=t.clazzName,l=void 0===i?"":i,c=t.forceShowAtom,s=t.showFullContent,u=tt()||{};if(!(c||Xe(u,["showSubheadline"],!0)))return null;var m=Ht(u.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)+" ":"")+j("subheadline ".concat(m),nr)},s||"number"==typeof a?r.subheadline:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:60,r=arguments.length>2&&void 0!==arguments[2]&&!arguments[2]?"":" ...";return"string"==typeof e&&e.length>t?e.substring(0,t)+r:e}(r.subheadline,n,!0))};ar.propTypes={story:i.object.isRequired,lineClamp:i.number,truncateChars:i.number,clazzName:i.string,forceShowAtom:i.bool,showFullContent:i.bool},ar.defaultProps={forceShowAtom:!1,showFullContent:!1};var ir={"./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"}},lr=function(t){var r=t.story,o=t.isBottom,n=t.config,a=void 0===n?{}:n,i=tt()||{},l=Xe(i,["showTime"],!0),c=r["last-published-at"]||r["first-published-at"],s=o?"bottom-fix":"",u=Ht(i.theme);return e.createElement(e.Fragment,null,l&&e.createElement("div",{"data-test-id":"publish-time",className:"time arr--publish-time "+j("time ".concat(u," ").concat(s),ir)},e.createElement("div",{className:"timestamp-m_time-wrapper__3O2lM"},function(t,r){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return e.createElement(g,{date:t,formatter:function(e,t,n,a){return r(e,t,n,a,o)}})}(c,At,a))))};lr.propTypes={story:i.object,isBottom:i.bool,config:i.object};var cr={"./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"}},sr=function(t){var r=t.story,o=t.hideAuthorImage,n=t.isBottom,a=t.prefix,i=void 0===a?"":a,l=t.config,c=void 0===l?{}:l,s=tt()||{},u=Xe(s,["showAuthor"],!0),d=Xe(r,["authors","0"],""),f=d["avatar-url"],p=d["avatar-s3-key"],g=d.name,v=d.slug,_=n?"bottom-fix":"",b=Ht(s.theme),y=Xe(c,["mountAt"],""),w=function(t){return i?e.createElement("div",{className:"arr-author-prefix "+j("prefix ".concat(b),cr)},i):!o&&function(t){return f||p?e.createElement("div",{"data-test-id":"author-image",className:j("author-image ".concat(t,"-image"),cr)},e.createElement("figure",null,p?e.createElement(h,{slug:p,"aspect-ratio":[1,1],defaultWidth:400,imgParams:{auto:["format","compress"]},alt:g}):e.createElement("img",{src:f}))):null}(t)};return e.createElement(e.Fragment,null,u&&e.createElement(m,{href:"".concat(y,"/author/")+v,"aria-label":"author-name",className:"author-name arr-author-name arrow-component "+j("author ".concat(_),cr)},w("ltr"),e.createElement("div",{"data-test-id":"author-name",className:"author-name "+j("author-name ".concat(b),cr)},g||r["author-name"]),!i&&w("rtl")))};var ur=c((function(e){return{config:Xe(e,["qt","config"],{})}}))(sr);sr.propTypes={story:i.object.isRequired,hideAuthorImage:i.bool,isBottom:i.bool,prefix:i.string,config:i.object},sr.defaultProps={hideAuthorImage:!1,isBottom:!1,prefix:""};var mr={"./dot.m.css":{dark:"dot-m_dark__1Njxl",light:"dot-m_light__27IA3"}},dr=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:j(l,mr)},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)"})))};dr.propTypes={color:i.string,width:i.string,height:i.string};var hr={"./divider.m.css":{dark:"divider-m_dark__26FRi",light:"divider-m_light__w-7sy"}},fr=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:j(l,hr)},e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:o,height:a},e.createElement("path",{fill:"inherit",d:"M0 0h1v10H0z"})))};fr.propTypes={color:i.string,width:i.string,height:i.string};var pr={"./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"}},gr=function(t){var r=t.story,o=t.opts,n=void 0===o?{}:o,a=t.isLightTheme,i=void 0!==a&&a,l=tt()||{},c=Xe(l,["showReadTime"])||Xe(n,["showReadTime"],!0),s=Xe(r,["read-time"],0),u=i?"light":Ht(l.theme);if(!c||!s)return null;var m=Xe(n,["localizedTimeToRead"])||"min read";return e.createElement(e.Fragment,null,e.createElement("div",{"data-test-id":"read-time",className:"arrow-component arr--read-time "+j("read-time-wrapper ".concat(u),pr)},e.createElement("span",{className:"read-time-indicator read-time-m_dot-indicator__3Sqh2"},e.createElement(dr,{color:u})),e.createElement("span",null,s," ",m)))};gr.propTypes={story:i.shape({"read-time":i.number}),opts:i.shape({showReadTime:i.bool}),isLightTheme:i.bool};var vr={"./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"}},_r=function(t){var r=t.story,o=t.separator,n=t.isBottom,a=t.hideAuthorImage,i=t.prefix,l=t.config,c=void 0===l?{}:l,s=t.isLightTheme,u=tt()||{},m=Xe(c,["showAuthor"],Xe(u,["showAuthor"],!0)),d=Xe(u,["showTime"],!0),h=Xe(u,["showReadTime"],!0),f=n?"bottom-fix":"",p="dot"===o?"dot":"dash",g=s?"light":Ht(u.theme),v=function(){return d?e.createElement(e.Fragment,null,m&&e.createElement("span",{className:"arr-separator "+j("".concat(p),vr)},"divider"===o?e.createElement(fr,{color:g}):e.createElement(dr,{color:g})),e.createElement(lr,{story:r,config:c}),h&&e.createElement(gr,{story:r,opts:c,isLightTheme:s})):null};return e.createElement("div",{className:"arr--author-time "+j("author-time-wrapper ".concat(f),vr)},m?e.createElement(e.Fragment,null,e.createElement(ur,{story:r,isBottom:!0,hideAuthorImage:a,prefix:i}),v()):v())};_r.propTypes={story:i.object,separator:i.oneOf(["dot","divider"]),hideAuthorImage:i.bool,isBottom:i.bool,prefix:i.string,config:i.object,isLightTheme:i.bool},_r.defaultProps={separator:"dot",isBottom:!1,hideAuthorImage:!0,prefix:"",isLightTheme:!1};var br=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"}))))};br.propTypes={width:i.object,height:i.object,iconColor:i.object};var yr=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(br,null)))},wr=function(t){var r=t.slug;return r?e.createElement(m,{href:r,"aria-label":"image-fallback"},yr()):yr()};wr.propTypes={slug:i.string};var Er={"./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"}},xr=function(t){var r=t.story,o=t.FullBleed,n=t.aspectRatio,a=t.defaultWidth,i=t.widths,l=t.isHorizontal,c=t.isHorizontalMobile,u=t.isHorizontalWithImageLast,d=t.defaultFallback,p=t.isStoryPageImage,g=(tt()||{}).fallbackImageUrl,v=void 0===g?"":g,_=s((function(e){return Xe(e,["qt","config","showPlaceholder"])}))?"placeholder":"",b=o?"":"with-padding",y="hero-image";l?y="right-padding":u&&(y="left-padding");var E=c?"right-padding-mob":"",x=function(e){var t=w(e,2),r=t[0],o=t[1];return r>0&&o>0?o/r*100:0},k=w(n,2),T=k[0],C=k[1],N=void 0===C?T:C,L=Bt("mobile"),z=L?T:N,O=x(L?T:N),S=Xe(r,["hero-image-s3-key"])||Xe(r,["alternative","home","default","hero-image","hero-image-s3-key"]),A=function(){return S?e.createElement("figure",{style:{paddingTop:O+"%"},className:"arr--responsive-hero-image "+j("image ".concat(_),Er)},e.createElement(f,{story:r,aspectRatio:z,defaultWidth:a,widths:i,imgParams:{auto:["format","compress"],fit:"max"}})):v?e.createElement("figure",{style:{paddingTop:O+"%"},className:"arr--responsive-hero-image "+j("image ".concat(_),Er)},e.createElement(h,{slug:!p&&v,metadata:{},"aspect-ratio":z,defaultWidth:a,widths:i,imgParams:{auto:["format","compress"],fit:"max"},className:"",alt:"image-fallback"})):e.createElement(e.Fragment,null,d?e.createElement("div",{"data-test-id":"arr--fallback-hero-image",style:{paddingTop:O+"%"},className:"arr--fallback-hero-image "+j("image ".concat(_),Er)},e.createElement(wr,null)):null)};return r&&(p?e.createElement("div",{"data-test-id":"arr--hero-image",className:"arr--hero-image "+j("".concat(y," ").concat(b," ").concat(E),Er)},A()):e.createElement(m,{"data-test-id":"arr--hero-image",href:Wt(r,"/".concat(r.slug)),externalLink:Dt(r),"aria-label":"fallback-hero-image",className:"arr--hero-image "+j("".concat(y," ").concat(b," ").concat(E),Er)},A()))};xr.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},xr.defaultProps={FullBleed:!0,aspectRatio:[[1,1],[16,9]],defaultWidth:480,widths:[250,480,640],isHorizontal:!1,isHorizontalMobile:!1,defaultFallback:!0,isStoryPageImage:!1,isHorizontalWithImageLast:!1};var kr={"./section.m.css":{section:"section-m_section__2N4S3","section-borderBottomSml":"section-m_section-borderBottomSml__2GNbo","border-bottom":"section-m_border-bottom__3cRoD","section-borderLeft":"section-m_section-borderLeft__3hKVj","border-left":"section-m_border-left__2oUyp","section-solid":"section-m_section-solid__1vB1Q",dark:"section-m_dark__1r3C4",light:"section-m_light__306hW"}},Tr=function(t){var r=t.story,o=t.template,n=void 0===o?"":o,a=t.borderColor,i=void 0===a?"":a,l=t.isLightTheme,c=tt()||{},s=Xe(c,["showSection"],!0),u=Xe(c,["sectionTagTemplate"]),d=Xe(r,["sections",0],""),h=["borderBottomSml","borderLeft","solid"],f=d?d["section-url"]:"/",p="solid"===n||"solid"===u?i:c.theme,g=l?"light":Ht(p),v=Pt(i),_=h.includes(n)?"section section-".concat(n):"section";return u&&(_=h.includes(u)?"section section-".concat(u):"section"),s?e.createElement(m,{href:f,className:"arrow-component arr--section-name","aria-label":"section-name"},e.createElement("div",{"data-test-id":"sectionTag",style:{backgroundColor:_.includes("section-solid")?v:""},className:"section-tag arrow-component "+j("".concat(g," ").concat(_),kr)},_.includes("section-borderLeft")&&e.createElement("span",{className:"section-m_border-left__2oUyp",style:{color:v}}),d["display-name"]||d.name,e.createElement("div",{className:"section-m_border-bottom__3cRoD",style:{backgroundColor:"".concat("solid"===n?"":v)}}))):null};Tr.propTypes={story:i.object.isRequired,template:i.oneOf(["","borderBottomSml","borderLeft","solid"]),borderColor:i.string,solidBorderColor:i.string,isLightTheme:i.bool},Tr.defaultProps={template:"",isLightTheme:!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"}},jr=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"===rt(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=Ht(u),k=d?"horizontal-mob":"",T=e.createElement(Nr,{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 "+j("card ".concat(y," ").concat(b," ").concat(x," ").concat(w," ").concat(E," ").concat(k),Cr)},n||T)},Nr=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=Pt(u),v=f.localizationConfig,_=void 0===v?{}:v;return e.createElement(e.Fragment,null,o?e.createElement(xr,{story:r,isHorizontal:!0,isHorizontalMobile:l,aspectRatio:n}):h?e.createElement(xr,{story:r,isHorizontalWithImageLast:!0,isHorizontalMobile:l,aspectRatio:n}):e.createElement(xr,{story:r,isHorizontalMobile:l,aspectRatio:n}),e.createElement("div",{className:"arr--story-content "+j("content ".concat(p),Cr)},e.createElement(Tr,{story:r,borderColor:g}),e.createElement(or,{story:r,headerLevel:a,premiumStoryIconConfig:f}),e.createElement(_r,{config:_,story:r,isBottom:!0,prefix:d,hideAuthorImage:m}),e.createElement(ar,{story:r})))};Nr.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},jr.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},jr.defaultProps={isHorizontal:!1,isHorizontalMobile:!1,border:"default",theme:"",centerAlign:!1,borderColor:"",isHorizontalWithImageLast:!1};var Lr={"./storycardContent.m.css":{wrapper:"storycardContent-m_wrapper__TEmfA","horizontal-content-wrapper":"storycardContent-m_horizontal-content-wrapper__NgpuC","border-full":"storycardContent-m_border-full__2km37"}},zr=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=Ht(n),m=Pt(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 "+j("wrapper ".concat(d," ").concat(h),Lr)},o||e.createElement(Or,{story:r,headerLevel:l,isHorizontalMobile:i,borderColor:m,config:s}))},Or=function(t){var r=t.story,o=t.headerLevel,n=t.borderColor,a=t.config,i=void 0===a?{}:a,l=Pt(n),c=i.localizationConfig,s=void 0===c?{}:c;return e.createElement("div",null,e.createElement(Tr,{story:r,borderColor:l}),e.createElement(or,{story:r,headerLevel:o,premiumStoryIconConfig:i}),e.createElement(_r,{config:s,story:r}))};Or.propTypes={story:i.object.isRequired,border:i.string,theme:i.string,isHorizontalMobile:i.bool,headerLevel:i.string,borderColor:i.string,config:i.object},zr.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 Sr=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"}))))};Sr.propTypes={width:i.object,height:i.object,iconColor:i.object};var Ar={"./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 Mr(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,o)}return r}function Ir(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Mr(Object(r),!0).forEach((function(t){b(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Mr(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var Pr,Rr=function(t){var r=t.collection,i=t.config,l=void 0===i?{}:i,c=l.collectionNameBorderColor,m=void 0===c?"":c,d=l.borderColor,h=void 0===d?"":d,f=l.theme,g=void 0===f?"":f,v=l.border,y=void 0===v?"":v,E=l.collectionNameTemplate,x=void 0===E?"":E,k=l.footerSlotConfig,C=void 0===k?{}:k,N=l.footerButton,L=void 0===N?"":N,z=l.showButton,O=void 0===z||z,S=C.footerSlot,A=w(o([]),2),M=A[0],I=A[1],P=w(o({}),2),R=P[0],B=P[1],H=w(o(0),2),F=H[0],D=H[1],W=w(o(!0),2),q=W[0],U=W[1],G=Xe(r,["items"],[]).filter((function(e){return"collection"===e.type}));if(G.length<1)return null;var Z=G.map((function(e){return e.id})),J=function(e,t){B((function(r){return Ir(Ir({},r),{},b({},e,t))}))};function V(){return Y.apply(this,arguments)}function Y(){return(Y=_(T.mark((function e(){var t,r,o,n,i=arguments;return T.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=i.length>0&&void 0!==i[0]?i[0]:Z[0],U(!0),e.prev=2,r={},t in R){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=R[t];case 12:J(t,r),n=p(r),U(!1),I(n),e.next=21;break;case 18:e.prev=18,e.t0=e.catch(2),console.error("API call failed",e.t0);case 21:case"end":return e.stop()}}),e,null,[[2,18]])})))).apply(this,arguments)}n((function(e){V(e)}),[]);var K=u(),$=s((function(e){return Xe(e,["qt","config"],{})})),Q=qt(G[F],$),X=M.slice(0,9),ee=Ht(g),te=S?S():null,re="light"===ee?"light-wrapper":"";return e.createElement("div",{className:"full-width-with-padding arrow-component","data-test-id":"collection-filter",style:{backgroundColor:g,color:ee}},e.createElement("div",{className:j("wrapper ".concat(re),Ar)},e.createElement(Zt,{collection:r,collectionNameTemplate:x,collectionNameBorderColor:m}),e.createElement("div",{className:"alternate-collection-filter-m_collection-filter__34wis"},e.createElement("div",{className:"alternate-collection-filter-m_child-collections__9s0wl"},G.map((function(t,r){return e.createElement("div",{key:r,className:(r===F?(r===F?"open-subchild":"")+" ":"")+j("child-collection-wrapper ".concat(r===F?"open-subchild":""),Ar)},e.createElement("div",{onClick:function(e){return function(e,t,r){e.stopPropagation(),V(r),D(F===t?0:t)}(e,r,t.id)},className:j("child-collection ".concat(ee),Ar)},t.name),e.createElement("span",{className:("navigator ".concat(ee)?"navigator ".concat(ee)+" ":"")+j("navigator ".concat(ee),Ar)}))}))),e.createElement("span",{className:("divider ".concat(ee)?"divider ".concat(ee)+" ":"")+j("divider ".concat(ee),Ar)}),e.createElement("div",{className:"alternate-collection-filter-m_subCollection-wrapper__3Tj-s"},q?e.createElement(Sr,null):e.createElement("div",{className:"alternate-collection-filter-m_subCollection-stories__2o4ws"},e.createElement("div",{className:"alternate-collection-filter-m_cards__30xpt"},X.slice(0,6).map((function(t,r){return e.createElement("div",{className:"alternate-collection-filter-m_card__1Mb8D",key:r},e.createElement(jr,{story:t,border:y,theme:g,config:l},e.createElement(xr,{story:t,aspectRatio:[[16,9]]}),e.createElement(zr,{story:t,border:y,borderColor:h,config:l})))})))))),X.length>6&&e.createElement(Kt,{collection:G[F],template:L,config:l,navigate:function(){return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";global.app.navigateToPage(e,t)}(K,Q)},qtConfig:$}),e.createElement("div",{className:j("".concat(O?"":"no-button-wrapper"),Ar)},te)))},Br=(Pr=Rr,function(t){return e.createElement(et.Provider,{value:t.config},e.createElement(Pr,t))});Rr.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})},Rr.defaultProps={theme:"#ffffff",slotConfig:"story",border:""};export{Br as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import e,{PropTypes as t}from"prop-types";import r,{createContext as o,useContext as n,useState as a,useEffect as i}from"react";import l from"react-timeago";import{Link as c,ResponsiveImage as s,ResponsiveHeroImage as u,LinkBase as d}from"@quintype/components";import{connect as m,useSelector as h}from"react-redux";function f(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function p(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 g(e){return function(){var t=this,r=arguments;return new Promise((function(o,n){var a=e.apply(t,r);function i(e){p(a,o,n,i,l,"next",e)}function l(e){p(a,o,n,i,l,"throw",e)}i(void 0)}))}}function v(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,o=new Array(t);r<t;r++)o[r]=e[r];return o}function _(e,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 v(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)?v(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 y="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function b(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function w(e){var t={exports:{}};return e(t,t.exports),t.exports}var E=w((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})),x=b(w((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,o=(r=E)&&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(" "):""}}))),k=w((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 T(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=j(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 j(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,j(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 z(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 T(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(z,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,T.prototype={constructor:T,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: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)}})),j=Array.isArray,z="object"==typeof y&&y&&y.Object===Object&&y,L="object"==typeof self&&self&&self.Object===Object&&self,T=z||L||Function("return this")(),O=T.Symbol,N=Object.prototype,C=N.hasOwnProperty,S=N.toString,A=O?O.toStringTag:void 0;var I=function(e){var t=C.call(e,A),r=e[A];try{e[A]=void 0;var o=!0}catch(e){}var n=S.call(e);return o&&(t?e[A]=r:delete e[A]),n},R=Object.prototype.toString;var M=function(e){return R.call(e)},P=O?O.toStringTag:void 0;var B=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":P&&P in Object(e)?I(e):M(e)};var H=function(e){return null!=e&&"object"==typeof e};var F=function(e){return"symbol"==typeof e||H(e)&&"[object Symbol]"==B(e)},D=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,W=/^\w*$/;var U=function(e,t){if(j(e))return!1;var r=typeof e;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=e&&!F(e))||(W.test(e)||!D.test(e)||null!=t&&e in Object(t))};var q=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)};var G,Z=function(e){if(!q(e))return!1;var t=B(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},J=T["__core-js_shared__"],K=(G=/[^.]+$/.exec(J&&J.keys&&J.keys.IE_PROTO||""))?"Symbol(src)_1."+G:"";var V=function(e){return!!K&&K in e},Y=Function.prototype.toString;var $=function(e){if(null!=e){try{return Y.call(e)}catch(e){}try{return e+""}catch(e){}}return""},Q=/^\[object .+?Constructor\]$/,X=Function.prototype,ee=Object.prototype,te=X.toString,re=ee.hasOwnProperty,oe=RegExp("^"+te.call(re).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var ne=function(e){return!(!q(e)||V(e))&&(Z(e)?oe:Q).test($(e))};var ae=function(e,t){return null==e?void 0:e[t]};var ie=function(e,t){var r=ae(e,t);return ne(r)?r:void 0},le=ie(Object,"create");var ce=function(){this.__data__=le?le(null):{},this.size=0};var se=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},ue=Object.prototype.hasOwnProperty;var de=function(e){var t=this.__data__;if(le){var r=t[e];return"__lodash_hash_undefined__"===r?void 0:r}return ue.call(t,e)?t[e]:void 0},me=Object.prototype.hasOwnProperty;var he=function(e){var t=this.__data__;return le?void 0!==t[e]:me.call(t,e)};var fe=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=le&&void 0===t?"__lodash_hash_undefined__":t,this};function pe(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var o=e[t];this.set(o[0],o[1])}}pe.prototype.clear=ce,pe.prototype.delete=se,pe.prototype.get=de,pe.prototype.has=he,pe.prototype.set=fe;var ge=pe;var ve=function(){this.__data__=[],this.size=0};var _e=function(e,t){return e===t||e!=e&&t!=t};var ye=function(e,t){for(var r=e.length;r--;)if(_e(e[r][0],t))return r;return-1},be=Array.prototype.splice;var we=function(e){var t=this.__data__,r=ye(t,e);return!(r<0)&&(r==t.length-1?t.pop():be.call(t,r,1),--this.size,!0)};var Ee=function(e){var t=this.__data__,r=ye(t,e);return r<0?void 0:t[r][1]};var xe=function(e){return ye(this.__data__,e)>-1};var ke=function(e,t){var r=this.__data__,o=ye(r,e);return o<0?(++this.size,r.push([e,t])):r[o][1]=t,this};function je(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var o=e[t];this.set(o[0],o[1])}}je.prototype.clear=ve,je.prototype.delete=we,je.prototype.get=Ee,je.prototype.has=xe,je.prototype.set=ke;var ze=je,Le=ie(T,"Map");var Te=function(){this.size=0,this.__data__={hash:new ge,map:new(Le||ze),string:new ge}};var Oe=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e};var Ne=function(e,t){var r=e.__data__;return Oe(t)?r["string"==typeof t?"string":"hash"]:r.map};var Ce=function(e){var t=Ne(this,e).delete(e);return this.size-=t?1:0,t};var Se=function(e){return Ne(this,e).get(e)};var Ae=function(e){return Ne(this,e).has(e)};var Ie=function(e,t){var r=Ne(this,e),o=r.size;return r.set(e,t),this.size+=r.size==o?0:1,this};function Re(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])}}Re.prototype.clear=Te,Re.prototype.delete=Ce,Re.prototype.get=Se,Re.prototype.has=Ae,Re.prototype.set=Ie;var Me=Re;function Pe(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(Pe.Cache||Me),r}Pe.Cache=Me;var Be=Pe;var He=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Fe=/\\(\\)?/g,De=function(e){var t=Be(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(He,(function(e,r,o,n){t.push(o?n.replace(Fe,"$1"):r||e)})),t}));var We=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},Ue=O?O.prototype:void 0,qe=Ue?Ue.toString:void 0;var Ge=function e(t){if("string"==typeof t)return t;if(j(t))return We(t,e)+"";if(F(t))return qe?qe.call(t):"";var r=t+"";return"0"==r&&1/t==-Infinity?"-0":r};var Ze=function(e){return null==e?"":Ge(e)};var Je=function(e,t){return j(e)?e:U(e,t)?[e]:De(Ze(e))};var Ke=function(e){if("string"==typeof e||F(e))return e;var t=e+"";return"0"==t&&1/e==-Infinity?"-0":t};var Ve=function(e,t){for(var r=0,o=(t=Je(t,e)).length;null!=e&&r<o;)e=e[Ke(t[r++])];return r&&r==o?e:void 0};var Ye=function(e,t,r){var o=null==e?void 0:Ve(e,t);return void 0===o?r:o};function $e(e){return($e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var Qe=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 Xe=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"}),et=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,tt=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]","g");var rt=function(e){return(e=Ze(e))&&e.replace(et,Xe).replace(tt,"")},ot=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;var nt=function(e){return e.match(ot)||[]},at=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;var it=function(e){return at.test(e)},lt="\\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",ct="["+lt+"]",st="\\d+",ut="[\\u2700-\\u27bf]",dt="[a-z\\xdf-\\xf6\\xf8-\\xff]",mt="[^\\ud800-\\udfff"+lt+st+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",ht="(?:\\ud83c[\\udde6-\\uddff]){2}",ft="[\\ud800-\\udbff][\\udc00-\\udfff]",pt="[A-Z\\xc0-\\xd6\\xd8-\\xde]",gt="(?:"+dt+"|"+mt+")",vt="(?:"+pt+"|"+mt+")",_t="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?",yt="[\\ufe0e\\ufe0f]?"+_t+("(?:\\u200d(?:"+["[^\\ud800-\\udfff]",ht,ft].join("|")+")[\\ufe0e\\ufe0f]?"+_t+")*"),bt="(?:"+[ut,ht,ft].join("|")+")"+yt,wt=RegExp([pt+"?"+dt+"+(?:['’](?:d|ll|m|re|s|t|ve))?(?="+[ct,pt,"$"].join("|")+")",vt+"+(?:['’](?:D|LL|M|RE|S|T|VE))?(?="+[ct,pt+gt,"$"].join("|")+")",pt+"?"+gt+"+(?:['’](?:d|ll|m|re|s|t|ve))?",pt+"+(?:['’](?: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_])",st,bt].join("|"),"g");var Et=function(e){return e.match(wt)||[]};var xt=function(e,t,r){return e=Ze(e),void 0===(t=r?void 0:t)?it(e)?Et(e):nt(e):e.match(t)||[]},kt=RegExp("['’]","g");var jt=function(e){return function(t){return Qe(xt(rt(t).replace(kt,"")),e,"")}},zt=jt((function(e,t,r){return e+(r?" ":"")+t.toUpperCase()})),Lt=jt((function(e,t,r){return e+(r?" ":"")+t.toLowerCase()}));var Tt=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=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],f=new Date(o),p=f.getDate().toString().padStart(2,0),g=h[f.getMonth()],v=g;u&&(v=zt(g));var _,y=f.getFullYear(),b=n.localizedMeridiem,w=n.localizedMonths,E=n.direction,x=void 0===E?"ltr":E,k=Nt(o),j=k;if(w&&(v=Ye(w,[Lt(g)])||g),b){var z=k.includes("am"),L=b.am,T=void 0===L?"am":L,O=b.pm,N=void 0===O?"pm":O;j=(z?k.replace("am",T):k.replace("pm",N))||k}return"rtl"===x?(_=i?"".concat(j):"","".concat(p," ").concat(v,", ").concat(y," ").concat(_," ")):m?"".concat(v," ").concat(p,", ").concat(y):c?"".concat(j,", ").concat(p," ").concat(v," ").concat(y):(_=i?", ".concat(j):"","".concat(p," ").concat(v,", ").concat(y).concat(_))};function Ot(e,t,r,o,n){var a,i=Ye(n,["localizedPublishTime",r])||r;return"hour"===t&&e>23||-1!==["day","week","month","year"].indexOf(t)?Tt(e,t,r,o,n):e>1?(a=Ye(n,["localizedPublishTime","".concat(t,"s")])||"".concat(t,"s"),"".concat(e," ").concat(a," ").concat(i)):(a=Ye(n,["localizedPublishTime",t])||t,"".concat(e," ").concat(a," ").concat(i," "))}function Nt(e){var t=new Date(e),r=t.getHours(),o=t.getMinutes(),n=r>=12?"pm":"am";return(r=(r%=12)||12)+":"+(o=o<10?"0"+o:o)+" "+n}var Ct=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},St=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"rgba(255, 255, 255, 0)",t=e.match(/^rgba?[\s+]?\([\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?/i);return t&&4===t.length?"#"+("0"+parseInt(t[1],10).toString(16)).slice(-2)+("0"+parseInt(t[2],10).toString(16)).slice(-2)+("0"+parseInt(t[3],10).toString(16)).slice(-2):e},At={mobile:767,tablet:1024},It=function(e){var t=Ye(At,e);return!!t&&Ye(global,"document.documentElement.clientWidth")<=t},Rt=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"rgb(255,255,255)",t=/^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/.test(e),r=t?e:St(e),o=Ct(r)<155?"light":"dark";return o},Mt=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=Ye(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 Pt(){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?Ye(n,["reference-url"],""):""}var Bt=function(e){return null==e||"object"===$e(e)&&0===Object.entries(e).length&&e.constructor===Object||"string"==typeof e&&0===e.trim().length};e.shape({"sketches-host":e.string,"cdn-name":e.string,"cdn-image":e.string}),e.shape({headline:e.string,"last-published-at":e.number,subheadline:e.string});var Ht=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return"news-elsewhere"===Ye(e,["story-template"])?Ye(e,["metadata","reference-url"],""):e.url||t},Ft=function(){var e=g(k.mark((function e(t){var r,o,n=arguments;return k.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)}}(),Dt=function(e,t){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return r.createElement(l,{date:e,formatter:function(e,r,n,a){return t(e,r,n,a,o)}})},Wt=o(),Ut=function(e){return function(t){return r.createElement(Wt.Provider,{value:t.config},r.createElement(e,t))}},qt=function(){return n(Wt)},Gt={"./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"}},Zt=function(e){var t=e.story,o=e.isBottom,n=e.config,a=void 0===n?{}:n,i=qt()||{},l=Ye(i,["showTime"],!0),c=t["last-published-at"]||t["first-published-at"],s=o?"bottom-fix":"",u=Rt(i.theme);return r.createElement(r.Fragment,null,l&&r.createElement("div",{"data-test-id":"publish-time",className:"time arr--publish-time "+x("time ".concat(u," ").concat(s),Gt)},r.createElement("div",{className:"timestamp-m_time-wrapper__3O2lM"},Dt(c,Ot,a))))};Zt.propTypes={story:e.object,isBottom:e.bool,config:e.object};var Jt={"./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"}},Kt=function(e){var t=e.story,o=e.hideAuthorImage,n=e.isBottom,a=e.prefix,i=void 0===a?"":a,l=e.config,u=void 0===l?{}:l,d=qt()||{},m=Ye(d,["showAuthor"],!0),h=Ye(t,["authors","0"],""),f=h["avatar-url"],p=h["avatar-s3-key"],g=h.name,v=h.slug,_=n?"bottom-fix":"",y=Rt(d.theme),b=Ye(u,["mountAt"],""),w=function(e){return i?r.createElement("div",{className:"arr-author-prefix "+x("prefix ".concat(y),Jt)},i):!o&&function(e){return f||p?r.createElement("div",{"data-test-id":"author-image",className:x("author-image ".concat(e,"-image"),Jt)},r.createElement("figure",null,p?r.createElement(s,{slug:p,"aspect-ratio":[1,1],defaultWidth:400,imgParams:{auto:["format","compress"]},alt:g}):r.createElement("img",{src:f}))):null}(e)};return r.createElement(r.Fragment,null,m&&r.createElement(c,{href:"".concat(b,"/author/")+v,"aria-label":"author-name",className:"author-name arr-author-name arrow-component "+x("author ".concat(_),Jt)},w("ltr"),r.createElement("div",{"data-test-id":"author-name",className:"author-name "+x("author-name ".concat(y),Jt)},g||t["author-name"]),!i&&w("rtl")))};var Vt=m((function(e){return{config:Ye(e,["qt","config"],{})}}))(Kt);Kt.propTypes={story:e.object.isRequired,hideAuthorImage:e.bool,isBottom:e.bool,prefix:e.string,config:e.object},Kt.defaultProps={hideAuthorImage:!1,isBottom:!1,prefix:""};var Yt={"./dot.m.css":{dark:"dot-m_dark__1Njxl",light:"dot-m_light__27IA3"}},$t=function(e){var t=e.width,o=void 0===t?"3px":t,n=e.height,a=void 0===n?"3px":n,i=e.color,l=void 0===i?"light":i;return r.createElement("div",{className:x(l,Yt)},r.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:o,height:a,viewBox:"0 0 3 3"},r.createElement("circle",{cx:"87",cy:"9",r:"1",fill:"inherit",fillRule:"nonzero",transform:"translate(-86 -8)"})))};$t.propTypes={color:e.string,width:e.string,height:e.string};var Qt={"./divider.m.css":{dark:"divider-m_dark__26FRi",light:"divider-m_light__w-7sy"}},Xt=function(e){var t=e.width,o=void 0===t?"1":t,n=e.height,a=void 0===n?"10":n,i=e.color,l=void 0===i?"light":i;return r.createElement("div",{className:x(l,Qt)},r.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:o,height:a},r.createElement("path",{fill:"inherit",d:"M0 0h1v10H0z"})))};Xt.propTypes={color:e.string,width:e.string,height:e.string};var er={"./read-time.m.css":{"read-time-wrapper":"read-time-m_read-time-wrapper__3GyC_","dot-indicator":"read-time-m_dot-indicator__3Sqh2",dark:"read-time-m_dark__3yRaK",light:"read-time-m_light__1GAZu"}},tr=function(e){var t=e.story,o=e.opts,n=void 0===o?{}:o,a=e.isLightTheme,i=void 0!==a&&a,l=qt()||{},c=Ye(l,["showReadTime"])||Ye(n,["showReadTime"],!0),s=Ye(t,["read-time"],0),u=i?"light":Rt(l.theme);if(!c||!s)return null;var d=Ye(n,["localizedTimeToRead"])||"min read";return r.createElement(r.Fragment,null,r.createElement("div",{"data-test-id":"read-time",className:"arrow-component arr--read-time "+x("read-time-wrapper ".concat(u),er)},r.createElement("span",{className:"read-time-indicator read-time-m_dot-indicator__3Sqh2"},r.createElement($t,{color:u})),r.createElement("span",null,s," ",d)))};tr.propTypes={story:e.shape({"read-time":e.number}),opts:e.shape({showReadTime:e.bool}),isLightTheme:e.bool};var rr={"./author-with-timestamp.m.css":{"author-time-wrapper":"author-with-timestamp-m_author-time-wrapper__G7_eI","author-image":"author-with-timestamp-m_author-image__24xrD",dot:"author-with-timestamp-m_dot__1LHXD","bottom-fix":"author-with-timestamp-m_bottom-fix__1rWGv",dash:"author-with-timestamp-m_dash__2L5XC"}},or=function(e){var t=e.story,o=e.separator,n=e.isBottom,a=e.hideAuthorImage,i=e.prefix,l=e.config,c=void 0===l?{}:l,s=e.isLightTheme,u=qt()||{},d=Ye(c,["showAuthor"],Ye(u,["showAuthor"],!0)),m=Ye(u,["showTime"],!0),h=Ye(u,["showReadTime"],!0),f=n?"bottom-fix":"",p="dot"===o?"dot":"dash",g=s?"light":Rt(u.theme),v=function(){return m?r.createElement(r.Fragment,null,d&&r.createElement("span",{className:"arr-separator "+x("".concat(p),rr)},"divider"===o?r.createElement(Xt,{color:g}):r.createElement($t,{color:g})),r.createElement(Zt,{story:t,config:c}),h&&r.createElement(tr,{story:t,opts:c,isLightTheme:s})):null};return r.createElement("div",{className:"arr--author-time "+x("author-time-wrapper ".concat(f),rr)},d?r.createElement(r.Fragment,null,r.createElement(Vt,{story:t,isBottom:!0,hideAuthorImage:a,prefix:i}),v()):v())};or.propTypes={story:e.object,separator:e.oneOf(["dot","divider"]),hideAuthorImage:e.bool,isBottom:e.bool,prefix:e.string,config:e.object,isLightTheme:e.bool},or.defaultProps={separator:"dot",isBottom:!1,hideAuthorImage:!0,prefix:"",isLightTheme:!1};var nr={"./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"}},ar=function(e){var t=e.collectionNameBorderColor,o=void 0===t?"":t,n=e.collection,a=e.config,i=e.collectionNameTemplate,l=e.headerLevel,s=e.customCollectionName,u=void 0===s?"":s,d=e.navigate,m=void 0===d||d,h=qt()||{},f=Ye(h,["showRowTitle"],!0),p=["borderLeft","borderBottom","crossLine","borderBottomFull"].includes(i)?" collection-".concat(i):"",g=m&&n&&Mt(n,a)||"",v=u||n.name||"",_=Rt(h.theme),y="h"+l,b=St(o),w=p.includes("collection-borderBottomFull")?"4px solid ".concat(b):"",E=It("mobile");return r.createElement(r.Fragment,null,f&&v&&r.createElement("div",{style:{borderBottom:w},"data-test-id":"collection-name",className:"arr--collection-name arrow-component "+x("collection ".concat(_," ").concat(p),nr)},p.includes("collection-borderLeft")&&r.createElement("span",{className:"arr-collection-name-border-left collection-name-m_border-left__3_pYw",style:{color:b,fontSize:function(){if(E)switch(l){case"1":return"32px";case"2":return"24px";case"3":return"20px";case"4":return"18px";case"5":case"6":return"16px";default:return"20px"}switch(l){case"1":return"40px";case"2":return"32px";case"3":return"24px";case"4":return"20px";case"5":return"18px";case"6":return"16px";default:return"24px"}}()}}),g&&!g.includes(void 0)?r.createElement(c,{href:g,"aria-label":"collection-name"},r.createElement(y,null,v)):r.createElement(y,null,v),p.includes("collection-borderBottom")&&!p.includes("collection-borderBottomFull")?r.createElement("div",{className:"collection-name-m_border-bottom__1MnlV",style:{borderBottom:"4px solid ".concat(b)}}):""))};ar.propTypes={collectionNameBorderColor:t.string,collection:t.object,config:t.object,collectionNameTemplate:t.oneOf(["","borderLeft","borderBottom","crossLine","borderBottomFull"]),headerLevel:t.string,customCollectionName:t.string,navigate:t.bool},ar.defaultProps={collectionNameTemplate:"",headerLevel:"3"};var ir=m((function(e){return{config:Ye(e,["qt","config"],{})}}))(ar),lr=function(e){var t=e.height,o=e.width,n=e.color,a=void 0===n?"#D8D8D8":n,i=e.positionTop;return r.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:o,height:t,viewBox:"0 0 40 40",style:{position:"relative",top:i}},r.createElement("g",{fill:"none",fillRule:"evenodd",stroke:"none",strokeWidth:"1"},r.createElement("g",null,r.createElement("g",{transform:"translate(8 8)"},r.createElement("path",{d:"M0 0H24V24H0z"}),r.createElement("g",{fill:a,fillRule:"nonzero",transform:"translate(0 2)"},r.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"}))))))};lr.propTypes={height:e.string,width:e.string,color:e.string,positionTop:e.string};var cr=function(e){var t=e.height,o=e.width,n=e.color,a=void 0===n?"#D5D5D5":n,i=e.positionTop;return r.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:o,height:t,viewBox:"0 0 40 40",style:{position:"relative",top:i}},r.createElement("g",{fill:"none",fillRule:"evenodd",stroke:"none",strokeWidth:"1"},r.createElement("g",null,r.createElement("g",{transform:"translate(8 8)"},r.createElement("path",{d:"M0 0H24V24H0z"}),r.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)"})))))};cr.propTypes={height:e.string,width:e.string,color:e.string,positionTop:e.string};var sr=function(e){var t=e.height,o=e.width,n=e.color,a=void 0===n?"#D5D5D5":n,i=e.positionTop;return r.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:o,height:t,viewBox:"0 0 40 40",style:{position:"relative",top:i}},r.createElement("g",{fill:"none",fillRule:"evenodd",stroke:"none",strokeWidth:"1"},r.createElement("g",null,r.createElement("g",{transform:"translate(8 8)"},r.createElement("path",{d:"M0 0H24V24H0z"}),r.createElement("g",{fill:a,fillRule:"nonzero",transform:"translate(3)"},r.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"}))))))};sr.propTypes={height:e.string,width:e.string,color:e.string,positionTop:e.string};var ur=function(e){var t=e.width,o=e.height,n=e.color,a=void 0===n?"#D5D5D5":n,i=e.positionTop,l=void 0===i?"":i;return r.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:o,viewBox:"0 0 40 40",style:{position:"relative",top:l}},r.createElement("g",{fill:"none",fillRule:"evenodd",stroke:"none",strokeWidth:"1"},r.createElement("g",null,r.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"}))))};ur.propTypes={height:e.string,width:e.string,color:e.string,positionTop:e.string};var dr=function(e){var t=e.width,o=e.height,n=e.color,a=e.iconType,i=e.positionTop;switch(a){case"crown":return r.createElement(lr,{width:t,height:o,color:n,positionTop:i});case"lock":return r.createElement(sr,{width:t,height:o,color:n,positionTop:i});case"key":return r.createElement(cr,{width:t,height:o,color:n,positionTop:i});default:return r.createElement(ur,{width:t,height:o,color:n,positionTop:i})}};dr.propTypes={width:e.string,height:e.string,color:e.string,iconType:e.string,positionTop:e.string};var mr={"./headline.m.css":{wrapper:"headline-m_wrapper__3nUmh",headline:"headline-m_headline__3_NhV",dark:"headline-m_dark__en3hW",light:"headline-m_light__3lKJB"}},hr=function(e){var t=e.story,o=e.headerLevel,n=e.premiumStoryIconConfig,a=void 0===n?{}:n,i=e.isLink,l=qt()||{},s=a.iconColor,u=void 0===s?"#F7B500":s,d=a.iconStyle,m=void 0===d?"star":d,h=a.enablePremiumStoryIcon,f=void 0!==h&&h,p=Ye(t,["alternative","home","default","headline"]),g=f&&"subscription"===Ye(t,["access"]),v=p||t.headline,_="h"+o,y=Rt(l.theme),b=g?"wrapper":"",w="24px";return r.createElement("div",{"data-test-id":"headline",className:"arrow-component arr--headline "+x(b,mr)},g&&r.createElement(dr,{width:w,height:w,color:u,iconType:m,positionTop:function(){switch(parseInt(o)){case 1:return"-2px";case 2:return"2px";case 3:return"4px";case 4:return"5px";default:return"6px"}}()}),i?r.createElement(c,{href:Ht(t,"/".concat(t.slug)),externalLink:Pt(t),"aria-label":"headline"},r.createElement(_,{className:x("headline ".concat(y),mr)},v)):r.createElement(_,{className:x("headline ".concat(y),mr)},v))};hr.propTypes={story:e.object.isRequired,headerLevel:e.string,premiumStoryIconConfig:e.shape({iconColor:e.string,iconType:e.string,enablePremiumStoryIcon:e.bool}),isLink:e.bool},hr.defaultProps={headerLevel:"6",isLink:!0};var fr=function(e){var t=e.width,o=void 0===t?40:t,n=e.height,a=void 0===n?30:n,i=e.iconColor,l=void 0===i?"#99B0CB":i;return r.createElement("svg",{width:o,height:a,viewBox:"0 0 102 76",version:"1.1"},r.createElement("g",{id:"demo-home-copy",stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",transform:"translate(-377.000000, -314.000000)"},r.createElement("g",{id:"Group-13",transform:"translate(377.000000, 314.000000)"},r.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"}),r.createElement("rect",{id:"Rectangle-19",stroke:l,strokeWidth:"3",x:"1.5",y:"1.5",width:"99",height:"73",rx:"3"}))))};fr.propTypes={width:e.object,height:e.object,iconColor:e.object};var pr=function(){return r.createElement("div",{className:"arr--fallback-image fallback-m_image__1GYCJ fallback-m_image-position__3KddP"},r.createElement("figure",{className:"arr--fallback-svg fallback-m_fallback-svg__tK9fL"},r.createElement(fr,null)))},gr=function(e){var t=e.slug;return t?r.createElement(c,{href:t,"aria-label":"image-fallback"},pr()):pr()};gr.propTypes={slug:e.string};var vr={"./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"}},_r=function(e){var t=e.story,o=e.FullBleed,n=e.aspectRatio,a=e.defaultWidth,i=e.widths,l=e.isHorizontal,d=e.isHorizontalMobile,m=e.isHorizontalWithImageLast,f=e.defaultFallback,p=e.isStoryPageImage,g=(qt()||{}).fallbackImageUrl,v=void 0===g?"":g,y=h((function(e){return Ye(e,["qt","config","showPlaceholder"])}))?"placeholder":"",b=o?"":"with-padding",w="hero-image";l?w="right-padding":m&&(w="left-padding");var E=d?"right-padding-mob":"",k=function(e){var t=_(e,2),r=t[0],o=t[1];return r>0&&o>0?o/r*100:0},j=_(n,2),z=j[0],L=j[1],T=void 0===L?z:L,O=It("mobile"),N=O?z:T,C=k(O?z:T),S=Ye(t,["hero-image-s3-key"])||Ye(t,["alternative","home","default","hero-image","hero-image-s3-key"]),A=function(){return S?r.createElement("figure",{style:{paddingTop:C+"%"},className:"arr--responsive-hero-image "+x("image ".concat(y),vr)},r.createElement(u,{story:t,aspectRatio:N,defaultWidth:a,widths:i,imgParams:{auto:["format","compress"],fit:"max"}})):v?r.createElement("figure",{style:{paddingTop:C+"%"},className:"arr--responsive-hero-image "+x("image ".concat(y),vr)},r.createElement(s,{slug:!p&&v,metadata:{},"aspect-ratio":N,defaultWidth:a,widths:i,imgParams:{auto:["format","compress"],fit:"max"},className:"",alt:"image-fallback"})):r.createElement(r.Fragment,null,f?r.createElement("div",{"data-test-id":"arr--fallback-hero-image",style:{paddingTop:C+"%"},className:"arr--fallback-hero-image "+x("image ".concat(y),vr)},r.createElement(gr,null)):null)};return t&&(p?r.createElement("div",{"data-test-id":"arr--hero-image",className:"arr--hero-image "+x("".concat(w," ").concat(b," ").concat(E),vr)},A()):r.createElement(c,{"data-test-id":"arr--hero-image",href:Ht(t,"/".concat(t.slug)),externalLink:Pt(t),"aria-label":"fallback-hero-image",className:"arr--hero-image "+x("".concat(w," ").concat(b," ").concat(E),vr)},A()))};_r.propTypes={story:e.object.isRequired,FullBleed:e.bool,defaultWidth:e.number,widths:e.array,aspectRatio:e.array,isHorizontal:e.bool,isHorizontalMobile:e.bool,defaultFallback:e.bool,isHorizontalWithImageLast:e.bool},_r.defaultProps={FullBleed:!0,aspectRatio:[[1,1],[16,9]],defaultWidth:480,widths:[250,480,640],isHorizontal:!1,isHorizontalMobile:!1,defaultFallback:!0,isStoryPageImage:!1,isHorizontalWithImageLast:!1};var yr={"./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"}},br=function(e){var t=e.story,o=e.template,n=void 0===o?"":o,a=e.borderColor,i=void 0===a?"":a,l=e.isLightTheme,s=qt()||{},u=Ye(s,["showSection"],!0),d=Ye(s,["sectionTagTemplate"]),m=Ye(t,["sections",0],""),h=["borderBottomSml","borderLeft","solid"],f=m?m["section-url"]:"/",p="solid"===n||"solid"===d?i:s.theme,g=l?"light":Rt(p),v=St(i),_=h.includes(n)?"section section-".concat(n):"section";return d&&(_=h.includes(d)?"section section-".concat(d):"section"),u?r.createElement(c,{href:f,className:"arrow-component arr--section-name","aria-label":"section-name"},r.createElement("div",{"data-test-id":"sectionTag",style:{backgroundColor:_.includes("section-solid")?v:""},className:"section-tag arrow-component "+x("".concat(g," ").concat(_),yr)},_.includes("section-borderLeft")&&r.createElement("span",{className:"section-m_border-left__2oUyp",style:{color:v}}),m["display-name"]||m.name,r.createElement("div",{className:"section-m_border-bottom__3cRoD",style:{backgroundColor:"".concat("solid"===n?"":v)}}))):null};br.propTypes={story:e.object.isRequired,template:e.oneOf(["","borderBottomSml","borderLeft","solid"]),borderColor:e.string,solidBorderColor:e.string,isLightTheme:e.bool},br.defaultProps={template:"",isLightTheme:!1};var wr={"./subheadline.m.css":{subheadline:"subheadline-m_subheadline__3fd7z",dark:"subheadline-m_dark__28u00",light:"subheadline-m_light__2YUOe"}},Er=function(e){var t=e.story,o=e.truncateChars,n=void 0===o?200:o,a=e.lineClamp,i=e.clazzName,l=void 0===i?"":i,c=e.forceShowAtom,s=e.showFullContent,u=qt()||{};if(!(c||Ye(u,["showSubheadline"],!0)))return null;var d=Rt(u.theme);return r.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)+" ":"")+x("subheadline ".concat(d),wr)},s||"number"==typeof a?t.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}(t.subheadline,n,!0))};Er.propTypes={story:e.object.isRequired,lineClamp:e.number,truncateChars:e.number,clazzName:e.string,forceShowAtom:e.bool,showFullContent:e.bool},Er.defaultProps={forceShowAtom:!1,showFullContent:!1};var xr={"./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"}},kr=function(e){var t=e.story,o=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||Bt(t))return r.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=Rt(s),k=d?"horizontal-mob":"",j=r.createElement(jr,{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 r.createElement("div",{"data-test-id":"story-card",style:{backgroundColor:s,color:E},className:"arr--story-card "+x("card ".concat(y," ").concat(_," ").concat(E," ").concat(b," ").concat(w," ").concat(k),xr)},o||j)},jr=function(e){var t=e.story;e.border;var o=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=St(u),v=f.localizationConfig,_=void 0===v?{}:v;return r.createElement(r.Fragment,null,o?r.createElement(_r,{story:t,isHorizontal:!0,isHorizontalMobile:l,aspectRatio:n}):h?r.createElement(_r,{story:t,isHorizontalWithImageLast:!0,isHorizontalMobile:l,aspectRatio:n}):r.createElement(_r,{story:t,isHorizontalMobile:l,aspectRatio:n}),r.createElement("div",{className:"arr--story-content "+x("content ".concat(p),xr)},r.createElement(br,{story:t,borderColor:g}),r.createElement(hr,{story:t,headerLevel:a,premiumStoryIconConfig:f}),r.createElement(or,{config:_,story:t,isBottom:!0,prefix:m,hideAuthorImage:d}),r.createElement(Er,{story:t})))};jr.propTypes={story:e.object.isRequired,border:e.oneOfType([e.string]),isBottom:e.bool,isHorizontal:e.bool,aspectRatio:e.oneOfType([e.array]),isHorizontalMobile:e.bool,centerAlign:e.bool,headerLevel:e.string,borderColor:e.string,hideAuthorImage:e.bool,prefix:e.string,config:e.object,isHorizontalWithImageLast:e.bool},kr.propTypes={story:e.object.isRequired,children:e.node,isHorizontal:e.bool,border:e.oneOfType([e.string]),useImageAsBackground:e.bool,bgImgContentOverlap:e.bool,aspectRatio:e.oneOfType([e.array]),theme:e.string,isHorizontalMobile:e.bool,centerAlign:e.bool,headerLevel:e.string,borderColor:e.string,hideAuthorImage:e.bool,prefix:e.string,config:e.object,isHorizontalWithImageLast:e.bool},kr.defaultProps={isHorizontal:!1,isHorizontalMobile:!1,border:"default",theme:"",centerAlign:!1,borderColor:"",isHorizontalWithImageLast:!1};var zr=function(e){var t=e.color,o=void 0===t?"#333":t;return r.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},r.createElement("path",{fill:o,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"}))};zr.propTypes={color:e.string};var Lr={"./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 Tr(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 Or(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Tr(Object(r),!0).forEach((function(t){f(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Tr(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var Nr=function(e){var t=e.config,o=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=o.showButton,m=void 0===u||u,h=o.buttonText,f=void 0===h?"Read More":h,p=o.theme,g=void 0===p?"":p,v=o.customUrlPath,_=void 0===v?"":v;if(!m)return null;var y=Rt(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?Mt(e,t):"/"}(n,Or(Or({},s),o));return"SubsequentLoadCount"===i?r.createElement("div",{onClick:l,"data-test-id":"load-more",className:"arr--button "+x("button ".concat(y," default"),Lr)},f):r.createElement(d,{href:b,navigateTo:c,"data-test-id":"load-more","aria-label":"load-more"},r.createElement("div",{className:"arr--button "+x("button ".concat(y," default"),Lr)},f))};Nr.propTypes={collection:e.object,template:e.string,config:e.object,onClick:e.func,navigate:e.func,qtConfig:e.object};var Cr={"./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_"}},Sr=function(e){var t=e.config,o=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=Rt(f),_="dark"===v?"#333":"#fff",y=o===n-1,b=y?"borderNone":"";return r.createElement(r.Fragment,null,r.createElement("div",{className:x("time-wrapper ".concat(v),Cr)},r.createElement(zr,{color:_}),Dt(u,Tt,{showTime:!0,isTimeFirst:!0})),r.createElement("a",{href:"".concat(g,"/").concat(l,"#").concat(h),"aria-label":"event-title"},r.createElement("div",{className:x("event-title ".concat(v," ").concat(b),Cr)},m.map((function(e,t){return"title"===e.type&&r.createElement("h3",{key:t},e.text)})),s&&y&&c&&r.createElement("div",{className:"key-events-m_fade-out__11jv_",style:{backgroundImage:"linear-gradient(to bottom, transparent, ".concat(f,")")}}))))};Sr.propTypes={card:e.shape({"card-added-at":e.number,"story-elements":e.array,id:e.string}),config:e.object,slug:e.string,story:e.object,elements:e.array,index:e.number,cardLength:e.number,loadCards:e.bool,showLoadMore:e.bool};var Ar=function(e){var t=e.story,o=void 0===t?{}:t,n=e.config,i=void 0===n?{}:n,l=e.showLoadMore,c=void 0===l||l,s=Ye(o,["cards"],[]),u=i.theme,d=i.initialLoadCount,m=void 0===d?4:d,f=Rt(u),p=_(a(m),2),g=p[0],v=p[1],y=s.filter((function(e){return Ye(e.metadata,["attributes","key-event"])})),b=y.length>g,w=h((function(e){return Ye(e,["qt","config"],{})}));if(y.length<1)return null;var E=(c?y.slice(0,g):y.slice(0,4)).map((function(e,t,n){return r.createElement(Sr,{cardLength:n.length,card:e,key:e.id,slug:o.slug,config:i,index:t,loadCards:b,showLoadMore:c})}));return r.createElement("div",{style:{background:u},className:"arrow-component "+x("container ".concat(f),Cr)},r.createElement("h3",null,"Key Events"),r.createElement("div",{className:"key-events-m_cards-wrapper__3f8aB"},E),c&&b&&r.createElement(Nr,{onClick:function(){v(g+m)},template:"SubsequentLoadCount",config:i,qtConfig:w}))};Ar.propTypes={story:e.object,config:e.object,showLoadMore:e.bool};var Ir=Ut(Ar);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 Mr(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){f(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 Pr={"./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"}},Br=function(e){var t=e.data,o=e.slotData,n=e.horizontal,l=e.config,c=e.opts,s=o||l,u=s.theme,d=void 0===u?"":u,m=s.title,h=void 0===m?"":m,f=s.collectionSlug,p=void 0===f?"":f,v=h||"Related Stories",y=n?"horizontal-wrapper":"",b=Ye(l,["mountAtPrefix"],""),w=_(a([]),2),E=w[0],x=w[1],j=_(a([]),2),z=j[0],L=j[1],T=function(){var e=g(k.mark((function e(t){var r,o;return k.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Ft(t,b);case 2:r=e.sent,L(r),o=r.items,x(o);case 6:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();return i((function(){p&&T(p)}),[p]),i((function(){if(!p&&t){var e=t.items||t;x(e)}}),[t,p]),r.createElement(r.Fragment,null,r.createElement(ir,{customCollectionName:v,textColor:!0,collection:z}),r.createElement("div",{className:"aside-collection-m_stories__9wfUs"},E&&E.length>0?E.slice(0,4).map((function(e){var t=e.story||e;return r.createElement("div",{className:"aside-collection-m_story__17Jdm",key:t.id},r.createElement(kr,{story:t,isHorizontal:!0,theme:d,config:l},r.createElement("div",{className:"aside-collection-m_story-hero-image__13nFY"},r.createElement(_r,{story:t,aspectRatio:[[4,3]]})),r.createElement("div",null,y&&r.createElement(br,{story:t}),r.createElement(hr,{story:t}),r.createElement("div",{className:"aside-collection-m_story-byline__37KRG"},r.createElement(or,{config:c,story:t})))))})):r.createElement("div",{"data-test-id":"no-stories",className:"aside-collection-m_info__3p4zt"},"No stories found.")))};Br.propTypes={data:e.oneOfType([e.object,e.array]),config:e.object,horizontal:e.bool,slotData:e.object,opts:e.object};var Hr=function(e){var t=e.data,o=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(Bt(o))return null;var w=a.theme,E=l?"horizontal-wrapper":"";if(l)return r.createElement("div",{style:{backgroundColor:w},"data-test-id":"aside-collection",id:"aside-collection-".concat(_),className:"arrow-component arr--aside-collection "+x("wrapper ".concat(E),Pr)},r.createElement(Br,{data:o,horizontal:l,config:a,opts:b}));var k=d?"sticky":"";return r.createElement("div",{style:{backgroundColor:w},"data-test-id":"aside-collection",className:"arrow-component arr--aside-collection "+x(["wrapper",E,k].join(" "),Pr)},p&&r.createElement(Ir,{story:h.story,showLoadMore:h.showLoadMore,config:h.config}),s.map((function(e,t){return function(e,t,n){switch(e){case"ad":return r.createElement("div",{className:"aside-collection-ad-slot aside-collection-m_ad-slot__28nE2"},g(Mr(Mr({},t),{},{id:"ad-".concat(n,"_").concat(_)})));case"widget":return r.createElement("div",{className:"aside-collection-ad-slot aside-collection-m_ad-slot__28nE2"},v(Mr(Mr({},t),{},{id:"widget-".concat(n,"_").concat(_)})));case"collection":return r.createElement("div",{id:"aside-collection-".concat(n,"_").concat(_)},r.createElement(Br,{slotData:t,data:o,horizontal:l,config:a,opts:b}))}}(e.type,e,t)})))};Hr.propTypes={data:e.oneOfType([e.object,e.array]),config:e.object,opts:e.object,horizontal:e.bool,slots:e.array,adComponent:e.func,widgetComp:e.func,sticky:e.bool,keyEventsData:e.shape({story:e.object,config:e.object,showLoadMore:e.boolean}),enableKeyEvents:e.boolean,storyId:e.string};var Fr=Ut(Hr);export{Br as StoryCollection,Fr as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import t,{useContext as e,createContext as r}from"react";import n from"prop-types";import{Link as o}from"@quintype/components";import"react-timeago";function a(){return(a=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}).apply(this,arguments)}function i(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 c="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function u(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function s(t){var e={exports:{}};return t(e,e.exports),e.exports}var l=s((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})),h=u(s((function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r,n=(r=l)&&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||{},c=i.handleMissingStyleName,u=void 0===c?n.default.handleMissingStyleName:c,s=i.autoResolveMultipleImports,l=void 0===s?n.default.autoResolveMultipleImports:s;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],c=a[1],u=r||n.default.handleMissingStyleName;return c?e[i]?e[i][c]?e[i][c]:o("CSS module does not exist: "+c,u):o("CSS module import does not exist: "+i,u):o("Invalid style name: "+t,u)}(t,e,u);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(!l)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,u)}var r=e[a[0]];return r[t]?r[t]:o("Could not resolve the styleName '"+t+"'.",u)})).filter((function(t){return t})).join(" "):""}}))),f=["element","render"],p=function(e){return function(r){var n=r.element,o=r.render,c=i(r,f);return n?o&&"function"==typeof o?o(r):t.createElement(e,a({},c,{element:n})):null}};p.propTypes={StoryElement:n.element};var v=r();s((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",c=o.toStringTag||"@@toStringTag";function u(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,r){return t[e]=r}}function s(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=h;return function(o,a){if(n===p)throw new Error("Generator is already running");if(n===v){if("throw"===o)throw a;return k()}for(r.method=o,r.arg=a;;){var i=r.delegate;if(i){var c=E(i,r);if(c){if(c===d)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(n===h)throw n=v,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n=p;var u=l(t,e,r);if("normal"===u.type){if(n=r.done?v:f,u.arg===d)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(n=v,r.method="throw",r.arg=u.arg)}}}(t,r,i),a}function l(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=s;var h="suspendedStart",f="suspendedYield",p="executing",v="completed",d={};function m(){}function y(){}function _(){}var g={};u(g,a,(function(){return this}));var w=Object.getPrototypeOf,b=w&&w(w(P([])));b&&b!==r&&n.call(b,a)&&(g=b);var j=_.prototype=m.prototype=Object.create(g);function O(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function x(t,e){function r(o,a,i,c){var u=l(t[o],t,a);if("throw"!==u.type){var s=u.arg,h=s.value;return h&&"object"==typeof h&&n.call(h,"__await")?e.resolve(h.__await).then((function(t){r("next",t,i,c)}),(function(t){r("throw",t,i,c)})):e.resolve(h).then((function(t){s.value=t,i(s)}),(function(t){return r("throw",t,i,c)}))}c(u.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 E(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,E(t,r),"throw"===r.method))return d;r.method="throw",r.arg=new TypeError("The iterator does not provide a 'throw' method")}return d}var o=l(n,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,d;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,d):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,d)}function N(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 S(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function L(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(N,this),this.reset(!0)}function P(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:k}}function k(){return{value:e,done:!0}}return y.prototype=_,u(j,"constructor",_),u(_,"constructor",y),y.displayName=u(_,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===y||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,_):(t.__proto__=_,u(t,c,"GeneratorFunction")),t.prototype=Object.create(j),t},t.awrap=function(t){return{__await:t}},O(x.prototype),u(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(s(e,r,n,o),a);return t.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},O(j),u(j,c,"Generator"),u(j,a,(function(){return this})),u(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=P,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(S),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function o(n,o){return c.type="throw",c.arg=t,r.next=n,o&&(r.method="next",r.arg=e),!!o}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],c=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var u=n.call(i,"catchLoc"),s=n.call(i,"finallyLoc");if(u&&s){if(this.prev<i.catchLoc)return o(i.catchLoc,!0);if(this.prev<i.finallyLoc)return o(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return o(i.catchLoc,!0)}else{if(!s)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,d):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),d},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),S(r),d}},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;S(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:P(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),d}},t}(t.exports);try{regeneratorRuntime=e}catch(t){"object"==typeof globalThis?globalThis.regeneratorRuntime=e:Function("r","regeneratorRuntime = r")(e)}}));var d="object"==typeof c&&c&&c.Object===Object&&c,m="object"==typeof self&&self&&self.Object===Object&&self,y=d||m||Function("return this")(),_=y.Symbol,g=Object.prototype,w=g.hasOwnProperty,b=g.toString,j=_?_.toStringTag:void 0;var O=function(t){var e=w.call(t,j),r=t[j];try{t[j]=void 0;var n=!0}catch(t){}var o=b.call(t);return n&&(e?t[j]=r:delete t[j]),o},x=Object.prototype.toString;var E=function(t){return x.call(t)},N=_?_.toStringTag:void 0;var S=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":N&&N in Object(t)?O(t):E(t)};var L=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)};var P,k=function(t){if(!L(t))return!1;var e=S(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e},F=y["__core-js_shared__"],T=(P=/[^.]+$/.exec(F&&F.keys&&F.keys.IE_PROTO||""))?"Symbol(src)_1."+P:"";var I=function(t){return!!T&&T in t},M=Function.prototype.toString;var C=function(t){if(null!=t){try{return M.call(t)}catch(t){}try{return t+""}catch(t){}}return""},z=/^\[object .+?Constructor\]$/,R=Function.prototype,A=Object.prototype,G=R.toString,$=A.hasOwnProperty,D=RegExp("^"+G.call($).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var U=function(t){return!(!L(t)||I(t))&&(k(t)?D:z).test(C(t))};var Y=function(t,e){return null==t?void 0:t[e]};var q=function(t,e){var r=Y(t,e);return U(r)?r:void 0},H=q(Object,"create");var B=function(){this.__data__=H?H(null):{},this.size=0};var K=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},V=Object.prototype.hasOwnProperty;var J=function(t){var e=this.__data__;if(H){var r=e[t];return"__lodash_hash_undefined__"===r?void 0:r}return V.call(e,t)?e[t]:void 0},Q=Object.prototype.hasOwnProperty;var W=function(t){var e=this.__data__;return H?void 0!==e[t]:Q.call(e,t)};var X=function(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=H&&void 0===e?"__lodash_hash_undefined__":e,this};function Z(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])}}Z.prototype.clear=B,Z.prototype.delete=K,Z.prototype.get=J,Z.prototype.has=W,Z.prototype.set=X;var tt=Z;var et=function(){this.__data__=[],this.size=0};var rt=function(t,e){return t===e||t!=t&&e!=e};var nt=function(t,e){for(var r=t.length;r--;)if(rt(t[r][0],e))return r;return-1},ot=Array.prototype.splice;var at=function(t){var e=this.__data__,r=nt(e,t);return!(r<0)&&(r==e.length-1?e.pop():ot.call(e,r,1),--this.size,!0)};var it=function(t){var e=this.__data__,r=nt(e,t);return r<0?void 0:e[r][1]};var ct=function(t){return nt(this.__data__,t)>-1};var ut=function(t,e){var r=this.__data__,n=nt(r,t);return n<0?(++this.size,r.push([t,e])):r[n][1]=e,this};function st(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])}}st.prototype.clear=et,st.prototype.delete=at,st.prototype.get=it,st.prototype.has=ct,st.prototype.set=ut;var lt=st,ht=q(y,"Map");var ft=function(){this.size=0,this.__data__={hash:new tt,map:new(ht||lt),string:new tt}};var pt=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t};var vt=function(t,e){var r=t.__data__;return pt(e)?r["string"==typeof e?"string":"hash"]:r.map};var dt=function(t){var e=vt(this,t).delete(t);return this.size-=e?1:0,e};var mt=function(t){return vt(this,t).get(t)};var yt=function(t){return vt(this,t).has(t)};var _t=function(t,e){var r=vt(this,t),n=r.size;return r.set(t,e),this.size+=r.size==n?0:1,this};function gt(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])}}gt.prototype.clear=ft,gt.prototype.delete=dt,gt.prototype.get=mt,gt.prototype.has=yt,gt.prototype.set=_t;var wt=gt;function bt(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(bt.Cache||wt),r}bt.Cache=wt;var jt=bt;var Ot=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,xt=/\\(\\)?/g;(function(t){var e=jt(t,(function(t){return 500===r.size&&r.clear(),t})),r=e.cache})((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(Ot,(function(t,r,n,o){e.push(n?o.replace(xt,"$1"):r||t)})),e}));var Et=_?_.prototype:void 0;Et&&Et.toString;var Nt=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},St=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};n.shape({"sketches-host":n.string,"cdn-name":n.string,"cdn-image":n.string}),n.shape({headline:n.string,"last-published-at":n.number,subheadline:n.string});var Lt=["element","render"],Pt={"./attachment.m.css":{viewports:'"../../../../../assets/stylesheets/viewports.m.css"',mobile:"768px",tablet:"992px",headline:"attachment-m_headline__kP7Hs","button-wrapper":"attachment-m_button-wrapper__2fajK","file-name":"attachment-m_file-name__1LU9q",dark:"attachment-m_dark__3ixF7",light:"attachment-m_light__1kcpj",pdf:"attachment-m_pdf__3i_bR",doc:"attachment-m_doc__6vUVo attachment-m_pdf__3i_bR",wrapper:"attachment-m_wrapper__3gMwN","content-wrapper":"attachment-m_content-wrapper__3Yu0B"}},kt=function(r){var n=r.element,c=void 0===n?{}:n;r.render;var u=i(r,Lt),s=c["file-name"],l=c.url,f=c["content-type"];if(!f||!l)return null;var p="application/pdf"===f,d=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:St(t);return Nt(e)<155?"light":"dark"}((e(v)||{}).theme),m=s||(p?"Attached PDF":"Attached DOC");return t.createElement("div",a({"data-test-id":"attachment"},u,{className:"arrow-component arr--attachment-element "+h(d,Pt)+" "+(u&&u.className||"")}),t.createElement("div",{className:"attachment-m_headline__kP7Hs"},"Attachment"),t.createElement("div",{className:"attachment-m_wrapper__3gMwN"},p?t.createElement("div",{"data-test-id":"pdf",className:"attachment-m_pdf__3i_bR"},"PDF"):t.createElement("div",{"data-test-id":"doc",className:"attachment-m_doc__6vUVo attachment-m_pdf__3i_bR"},"DOC"),t.createElement("div",{className:"attachment-m_content-wrapper__3Yu0B"},t.createElement("div",{className:"attachment-m_file-name__1LU9q",dangerouslySetInnerHTML:{__html:m}}),t.createElement(o,{className:"attachment-m_button-wrapper__2fajK",href:l,target:"_blank",rel:"noopener noreferrer",download:!0,"aria-label":"button"},p?"Preview":"Download"))))};kt.propTypes={element:n.shape({url:n.string,fileName:n.string,contentType:n.string}),render:n.func};var Ft=p(kt);export{Ft as Attachment};
|
package/Author/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import t,{useContext as r,createContext as e}from"react";import n from"prop-types";import{Link as o,ResponsiveImage as a}from"@quintype/components";import"react-timeago";import{connect as i}from"react-redux";var u="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function c(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function s(t){var r={exports:{}};return t(r,r.exports),r.exports}var l=s((function(t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var e={attributeNames:{styleName:"className"},generateScopedName:"[path]___[name]__[local]___[hash:base64:5]",handleMissingStyleName:"throw"};r.default=e})),f=c(s((function(t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var e,n=(e=l)&&e.__esModule?e:{default:e};var o=function(t,r){if("throw"===r)throw new Error(t);return"warn"===r&&console.warn(t),null};r.default=function(t,r,e){var a=Object.keys(r),i=e||{},u=i.handleMissingStyleName,c=void 0===u?n.default.handleMissingStyleName:u,s=i.autoResolveMultipleImports,l=void 0===s?n.default.autoResolveMultipleImports:s;return t?t.split(" ").filter((function(t){return t})).map((function(t){if(function(t){return-1!==t.indexOf(".")}(t))return function(t,r,e){var a=t.split("."),i=a[0],u=a[1],c=e||n.default.handleMissingStyleName;return u?r[i]?r[i][u]?r[i][u]:o("CSS module does not exist: "+u,c):o("CSS module import does not exist: "+i,c):o("Invalid style name: "+t,c)}(t,r,c);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(!l)throw new Error("Cannot use anonymous style name '"+t+"' with more than one stylesheet import without setting 'autoResolveMultipleImports' to true.");return function(t,r,e){var a=e||n.default.handleMissingStyleName,i=Object.keys(r).map((function(e){return r[e][t]&&e})).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):r[i[0]][t]}(t,r,c)}var e=r[a[0]];return e[t]?e[t]:o("Could not resolve the styleName '"+t+"'.",c)})).filter((function(t){return t})).join(" "):""}}))),h=Array.isArray,p="object"==typeof u&&u&&u.Object===Object&&u,v="object"==typeof self&&self&&self.Object===Object&&self,d=p||v||Function("return this")(),y=d.Symbol,m=Object.prototype,g=m.hasOwnProperty,_=m.toString,b=y?y.toStringTag:void 0;var w=function(t){var r=g.call(t,b),e=t[b];try{t[b]=void 0;var n=!0}catch(t){}var o=_.call(t);return n&&(r?t[b]=e:delete t[b]),o},x=Object.prototype.toString;var j=function(t){return x.call(t)},O=y?y.toStringTag:void 0;var E=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":O&&O in Object(t)?w(t):j(t)};var L=function(t){return null!=t&&"object"==typeof t};var S=function(t){return"symbol"==typeof t||L(t)&&"[object Symbol]"==E(t)},N=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,I=/^\w*$/;var P=function(t,r){if(h(t))return!1;var e=typeof t;return!("number"!=e&&"symbol"!=e&&"boolean"!=e&&null!=t&&!S(t))||(I.test(t)||!N.test(t)||null!=r&&t in Object(r))};var T=function(t){var r=typeof t;return null!=t&&("object"==r||"function"==r)};var k,A=function(t){if(!T(t))return!1;var r=E(t);return"[object Function]"==r||"[object GeneratorFunction]"==r||"[object AsyncFunction]"==r||"[object Proxy]"==r},F=d["__core-js_shared__"],M=(k=/[^.]+$/.exec(F&&F.keys&&F.keys.IE_PROTO||""))?"Symbol(src)_1."+k:"";var z=function(t){return!!M&&M in t},C=Function.prototype.toString;var R=function(t){if(null!=t){try{return C.call(t)}catch(t){}try{return t+""}catch(t){}}return""},$=/^\[object .+?Constructor\]$/,G=Function.prototype,q=Object.prototype,Y=G.toString,B=q.hasOwnProperty,W=RegExp("^"+Y.call(B).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var D=function(t){return!(!T(t)||z(t))&&(A(t)?W:$).test(R(t))};var K=function(t,r){return null==t?void 0:t[r]};var U=function(t,r){var e=K(t,r);return D(e)?e:void 0},H=U(Object,"create");var J=function(){this.__data__=H?H(null):{},this.size=0};var Q=function(t){var r=this.has(t)&&delete this.__data__[t];return this.size-=r?1:0,r},V=Object.prototype.hasOwnProperty;var X=function(t){var r=this.__data__;if(H){var e=r[t];return"__lodash_hash_undefined__"===e?void 0:e}return V.call(r,t)?r[t]:void 0},Z=Object.prototype.hasOwnProperty;var tt=function(t){var r=this.__data__;return H?void 0!==r[t]:Z.call(r,t)};var rt=function(t,r){var e=this.__data__;return this.size+=this.has(t)?0:1,e[t]=H&&void 0===r?"__lodash_hash_undefined__":r,this};function et(t){var r=-1,e=null==t?0:t.length;for(this.clear();++r<e;){var n=t[r];this.set(n[0],n[1])}}et.prototype.clear=J,et.prototype.delete=Q,et.prototype.get=X,et.prototype.has=tt,et.prototype.set=rt;var nt=et;var ot=function(){this.__data__=[],this.size=0};var at=function(t,r){return t===r||t!=t&&r!=r};var it=function(t,r){for(var e=t.length;e--;)if(at(t[e][0],r))return e;return-1},ut=Array.prototype.splice;var ct=function(t){var r=this.__data__,e=it(r,t);return!(e<0)&&(e==r.length-1?r.pop():ut.call(r,e,1),--this.size,!0)};var st=function(t){var r=this.__data__,e=it(r,t);return e<0?void 0:r[e][1]};var lt=function(t){return it(this.__data__,t)>-1};var ft=function(t,r){var e=this.__data__,n=it(e,t);return n<0?(++this.size,e.push([t,r])):e[n][1]=r,this};function ht(t){var r=-1,e=null==t?0:t.length;for(this.clear();++r<e;){var n=t[r];this.set(n[0],n[1])}}ht.prototype.clear=ot,ht.prototype.delete=ct,ht.prototype.get=st,ht.prototype.has=lt,ht.prototype.set=ft;var pt=ht,vt=U(d,"Map");var dt=function(){this.size=0,this.__data__={hash:new nt,map:new(vt||pt),string:new nt}};var yt=function(t){var r=typeof t;return"string"==r||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==t:null===t};var mt=function(t,r){var e=t.__data__;return yt(r)?e["string"==typeof r?"string":"hash"]:e.map};var gt=function(t){var r=mt(this,t).delete(t);return this.size-=r?1:0,r};var _t=function(t){return mt(this,t).get(t)};var bt=function(t){return mt(this,t).has(t)};var wt=function(t,r){var e=mt(this,t),n=e.size;return e.set(t,r),this.size+=e.size==n?0:1,this};function xt(t){var r=-1,e=null==t?0:t.length;for(this.clear();++r<e;){var n=t[r];this.set(n[0],n[1])}}xt.prototype.clear=dt,xt.prototype.delete=gt,xt.prototype.get=_t,xt.prototype.has=bt,xt.prototype.set=wt;var jt=xt;function Ot(t,r){if("function"!=typeof t||null!=r&&"function"!=typeof r)throw new TypeError("Expected a function");var e=function(){var n=arguments,o=r?r.apply(this,n):n[0],a=e.cache;if(a.has(o))return a.get(o);var i=t.apply(this,n);return e.cache=a.set(o,i)||a,i};return e.cache=new(Ot.Cache||jt),e}Ot.Cache=jt;var Et=Ot;var Lt=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,St=/\\(\\)?/g,Nt=function(t){var r=Et(t,(function(t){return 500===e.size&&e.clear(),t})),e=r.cache;return r}((function(t){var r=[];return 46===t.charCodeAt(0)&&r.push(""),t.replace(Lt,(function(t,e,n,o){r.push(n?o.replace(St,"$1"):e||t)})),r}));var It=function(t,r){for(var e=-1,n=null==t?0:t.length,o=Array(n);++e<n;)o[e]=r(t[e],e,t);return o},Pt=y?y.prototype:void 0,Tt=Pt?Pt.toString:void 0;var kt=function t(r){if("string"==typeof r)return r;if(h(r))return It(r,t)+"";if(S(r))return Tt?Tt.call(r):"";var e=r+"";return"0"==e&&1/r==-Infinity?"-0":e};var At=function(t){return null==t?"":kt(t)};var Ft=function(t,r){return h(t)?t:P(t,r)?[t]:Nt(At(t))};var Mt=function(t){if("string"==typeof t||S(t))return t;var r=t+"";return"0"==r&&1/t==-Infinity?"-0":r};var zt=function(t,r){for(var e=0,n=(r=Ft(r,t)).length;null!=t&&e<n;)t=t[Mt(r[e++])];return e&&e==n?t:void 0};var Ct=function(t,r,e){var n=null==t?void 0:zt(t,r);return void 0===n?e:n},Rt=e();s((function(t){var r=function(t){var r,e=Object.prototype,n=e.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",i=o.asyncIterator||"@@asyncIterator",u=o.toStringTag||"@@toStringTag";function c(t,r,e){return Object.defineProperty(t,r,{value:e,enumerable:!0,configurable:!0,writable:!0}),t[r]}try{c({},"")}catch(t){c=function(t,r,e){return t[r]=e}}function s(t,r,e,n){var o=r&&r.prototype instanceof y?r:y,a=Object.create(o.prototype),i=new N(n||[]);return a._invoke=function(t,r,e){var n=f;return function(o,a){if(n===p)throw new Error("Generator is already running");if(n===v){if("throw"===o)throw a;return P()}for(e.method=o,e.arg=a;;){var i=e.delegate;if(i){var u=E(i,e);if(u){if(u===d)continue;return u}}if("next"===e.method)e.sent=e._sent=e.arg;else if("throw"===e.method){if(n===f)throw n=v,e.arg;e.dispatchException(e.arg)}else"return"===e.method&&e.abrupt("return",e.arg);n=p;var c=l(t,r,e);if("normal"===c.type){if(n=e.done?v:h,c.arg===d)continue;return{value:c.arg,done:e.done}}"throw"===c.type&&(n=v,e.method="throw",e.arg=c.arg)}}}(t,e,i),a}function l(t,r,e){try{return{type:"normal",arg:t.call(r,e)}}catch(t){return{type:"throw",arg:t}}}t.wrap=s;var f="suspendedStart",h="suspendedYield",p="executing",v="completed",d={};function y(){}function m(){}function g(){}var _={};c(_,a,(function(){return this}));var b=Object.getPrototypeOf,w=b&&b(b(I([])));w&&w!==e&&n.call(w,a)&&(_=w);var x=g.prototype=y.prototype=Object.create(_);function j(t){["next","throw","return"].forEach((function(r){c(t,r,(function(t){return this._invoke(r,t)}))}))}function O(t,r){function e(o,a,i,u){var c=l(t[o],t,a);if("throw"!==c.type){var s=c.arg,f=s.value;return f&&"object"==typeof f&&n.call(f,"__await")?r.resolve(f.__await).then((function(t){e("next",t,i,u)}),(function(t){e("throw",t,i,u)})):r.resolve(f).then((function(t){s.value=t,i(s)}),(function(t){return e("throw",t,i,u)}))}u(c.arg)}var o;this._invoke=function(t,n){function a(){return new r((function(r,o){e(t,n,r,o)}))}return o=o?o.then(a,a):a()}}function E(t,e){var n=t.iterator[e.method];if(n===r){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=r,E(t,e),"throw"===e.method))return d;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return d}var o=l(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,d;var a=o.arg;return a?a.done?(e[t.resultName]=a.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=r),e.delegate=null,d):a:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,d)}function L(t){var r={tryLoc:t[0]};1 in t&&(r.catchLoc=t[1]),2 in t&&(r.finallyLoc=t[2],r.afterLoc=t[3]),this.tryEntries.push(r)}function S(t){var r=t.completion||{};r.type="normal",delete r.arg,t.completion=r}function N(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(L,this),this.reset(!0)}function I(t){if(t){var e=t[a];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function e(){for(;++o<t.length;)if(n.call(t,o))return e.value=t[o],e.done=!1,e;return e.value=r,e.done=!0,e};return i.next=i}}return{next:P}}function P(){return{value:r,done:!0}}return m.prototype=g,c(x,"constructor",g),c(g,"constructor",m),m.displayName=c(g,u,"GeneratorFunction"),t.isGeneratorFunction=function(t){var r="function"==typeof t&&t.constructor;return!!r&&(r===m||"GeneratorFunction"===(r.displayName||r.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,g):(t.__proto__=g,c(t,u,"GeneratorFunction")),t.prototype=Object.create(x),t},t.awrap=function(t){return{__await:t}},j(O.prototype),c(O.prototype,i,(function(){return this})),t.AsyncIterator=O,t.async=function(r,e,n,o,a){void 0===a&&(a=Promise);var i=new O(s(r,e,n,o),a);return t.isGeneratorFunction(e)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},j(x),c(x,u,"Generator"),c(x,a,(function(){return this})),c(x,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var r=[];for(var e in t)r.push(e);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=I,N.prototype={constructor:N,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=r,this.done=!1,this.delegate=null,this.method="next",this.arg=r,this.tryEntries.forEach(S),!t)for(var e in this)"t"===e.charAt(0)&&n.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=r)},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 e=this;function o(n,o){return u.type="throw",u.arg=t,e.next=n,o&&(e.method="next",e.arg=r),!!o}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],u=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),s=n.call(i,"finallyLoc");if(c&&s){if(this.prev<i.catchLoc)return o(i.catchLoc,!0);if(this.prev<i.finallyLoc)return o(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return o(i.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return o(i.finallyLoc)}}}},abrupt:function(t,r){for(var e=this.tryEntries.length-1;e>=0;--e){var o=this.tryEntries[e];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=r&&r<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=r,a?(this.method="next",this.next=a.finallyLoc,d):this.complete(i)},complete:function(t,r){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&&r&&(this.next=r),d},finish:function(t){for(var r=this.tryEntries.length-1;r>=0;--r){var e=this.tryEntries[r];if(e.finallyLoc===t)return this.complete(e.completion,e.afterLoc),S(e),d}},catch:function(t){for(var r=this.tryEntries.length-1;r>=0;--r){var e=this.tryEntries[r];if(e.tryLoc===t){var n=e.completion;if("throw"===n.type){var o=n.arg;S(e)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:I(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=r),d}},t}(t.exports);try{regeneratorRuntime=r}catch(t){"object"==typeof globalThis?globalThis.regeneratorRuntime=r:Function("r","regeneratorRuntime = r")(r)}}));var $t=function(t){var r=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*r.r+.587*r.g+.114*r.b},Gt=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"rgba(255, 255, 255, 0)",r=t.match(/^rgba?[\s+]?\([\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?/i);return r&&4===r.length?"#"+("0"+parseInt(r[1],10).toString(16)).slice(-2)+("0"+parseInt(r[2],10).toString(16)).slice(-2)+("0"+parseInt(r[3],10).toString(16)).slice(-2):t};n.shape({"sketches-host":n.string,"cdn-name":n.string,"cdn-image":n.string}),n.shape({headline:n.string,"last-published-at":n.number,subheadline:n.string});var qt={"./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"}},Yt=function(e){var n=e.story,i=e.hideAuthorImage,u=e.isBottom,c=e.prefix,s=void 0===c?"":c,l=e.config,h=void 0===l?{}:l,p=r(Rt)||{},v=Ct(p,["showAuthor"],!0),d=Ct(n,["authors","0"],""),y=d["avatar-url"],m=d["avatar-s3-key"],g=d.name,_=d.slug,b=u?"bottom-fix":"",w=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"rgb(255,255,255)",r=/^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/.test(t)?t:Gt(t);return $t(r)<155?"light":"dark"}(p.theme),x=Ct(h,["mountAt"],""),j=function(r){return s?t.createElement("div",{className:"arr-author-prefix "+f("prefix ".concat(w),qt)},s):!i&&function(r){return y||m?t.createElement("div",{"data-test-id":"author-image",className:f("author-image ".concat(r,"-image"),qt)},t.createElement("figure",null,m?t.createElement(a,{slug:m,"aspect-ratio":[1,1],defaultWidth:400,imgParams:{auto:["format","compress"]},alt:g}):t.createElement("img",{src:y}))):null}(r)};return t.createElement(t.Fragment,null,v&&t.createElement(o,{href:"".concat(x,"/author/")+_,"aria-label":"author-name",className:"author-name arr-author-name arrow-component "+f("author ".concat(b),qt)},j("ltr"),t.createElement("div",{"data-test-id":"author-name",className:"author-name "+f("author-name ".concat(w),qt)},g||n["author-name"]),!s&&j("rtl")))};var Bt=i((function(t){return{config:Ct(t,["qt","config"],{})}}))(Yt);Yt.propTypes={story:n.object.isRequired,hideAuthorImage:n.bool,isBottom:n.bool,prefix:n.string,config:n.object},Yt.defaultProps={hideAuthorImage:!1,isBottom:!1,prefix:""};export{Bt as Author};
|