@quintype/arrow 3.2.0 → 3.2.1-arrow-chunking.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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/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/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/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/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 o from"prop-types";import{Link as n,ResponsiveImage as a,ResponsiveHeroImage as i}from"@quintype/components";import l from"react-timeago";import{connect as c,useSelector as s}from"react-redux";var u="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function h(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function d(t){var e={exports:{}};return t(e,e.exports),e.exports}var m=d((function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r={attributeNames:{styleName:"className"},generateScopedName:"[path]___[name]__[local]___[hash:base64:5]",handleMissingStyleName:"throw"};e.default=r})),f=h(d((function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r,o=(r=m)&&r.__esModule?r:{default:r};var n=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,c=void 0===l?o.default.handleMissingStyleName:l,s=i.autoResolveMultipleImports,u=void 0===s?o.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],l=a[1],c=r||o.default.handleMissingStyleName;return l?e[i]?e[i][l]?e[i][l]:n("CSS module does not exist: "+l,c):n("CSS module import does not exist: "+i,c):n("Invalid style name: "+t,c)}(t,e,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(!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||o.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?n("Could not resolve the styleName '"+t+"'.",a):e[i[0]][t]}(t,e,c)}var r=e[a[0]];return r[t]?r[t]:n("Could not resolve the styleName '"+t+"'.",c)})).filter((function(t){return t})).join(" "):""}}))),p=r(),g=function(){return e(p)},v=Array.isArray,_="object"==typeof u&&u&&u.Object===Object&&u,y="object"==typeof self&&self&&self.Object===Object&&self,b=_||y||Function("return this")(),w=b.Symbol,E=Object.prototype,x=E.hasOwnProperty,T=E.toString,z=w?w.toStringTag:void 0;var L=function(t){var e=x.call(t,z),r=t[z];try{t[z]=void 0;var o=!0}catch(t){}var n=T.call(t);return o&&(e?t[z]=r:delete t[z]),n},k=Object.prototype.toString;var j=function(t){return k.call(t)},S=w?w.toStringTag:void 0;var A=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":S&&S in Object(t)?L(t):j(t)};var I=function(t){return null!=t&&"object"==typeof t};var N=function(t){return"symbol"==typeof t||I(t)&&"[object Symbol]"==A(t)},O=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,C=/^\w*$/;var R=function(t,e){if(v(t))return!1;var r=typeof t;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=t&&!N(t))||(C.test(t)||!O.test(t)||null!=e&&t in Object(e))};var M=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)};var H,P=function(t){if(!M(t))return!1;var e=A(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e},F=b["__core-js_shared__"],B=(H=/[^.]+$/.exec(F&&F.keys&&F.keys.IE_PROTO||""))?"Symbol(src)_1."+H:"";var W=function(t){return!!B&&B in t},D=Function.prototype.toString;var G=function(t){if(null!=t){try{return D.call(t)}catch(t){}try{return t+""}catch(t){}}return""},U=/^\[object .+?Constructor\]$/,Z=Function.prototype,q=Object.prototype,J=Z.toString,$=q.hasOwnProperty,V=RegExp("^"+J.call($).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var Y=function(t){return!(!M(t)||W(t))&&(P(t)?V:U).test(G(t))};var K=function(t,e){return null==t?void 0:t[e]};var Q=function(t,e){var r=K(t,e);return Y(r)?r:void 0},X=Q(Object,"create");var tt=function(){this.__data__=X?X(null):{},this.size=0};var et=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},rt=Object.prototype.hasOwnProperty;var ot=function(t){var e=this.__data__;if(X){var r=e[t];return"__lodash_hash_undefined__"===r?void 0:r}return rt.call(e,t)?e[t]:void 0},nt=Object.prototype.hasOwnProperty;var at=function(t){var e=this.__data__;return X?void 0!==e[t]:nt.call(e,t)};var it=function(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=X&&void 0===e?"__lodash_hash_undefined__":e,this};function lt(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var o=t[e];this.set(o[0],o[1])}}lt.prototype.clear=tt,lt.prototype.delete=et,lt.prototype.get=ot,lt.prototype.has=at,lt.prototype.set=it;var ct=lt;var st=function(){this.__data__=[],this.size=0};var ut=function(t,e){return t===e||t!=t&&e!=e};var ht=function(t,e){for(var r=t.length;r--;)if(ut(t[r][0],e))return r;return-1},dt=Array.prototype.splice;var mt=function(t){var e=this.__data__,r=ht(e,t);return!(r<0)&&(r==e.length-1?e.pop():dt.call(e,r,1),--this.size,!0)};var ft=function(t){var e=this.__data__,r=ht(e,t);return r<0?void 0:e[r][1]};var pt=function(t){return ht(this.__data__,t)>-1};var gt=function(t,e){var r=this.__data__,o=ht(r,t);return o<0?(++this.size,r.push([t,e])):r[o][1]=e,this};function vt(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var o=t[e];this.set(o[0],o[1])}}vt.prototype.clear=st,vt.prototype.delete=mt,vt.prototype.get=ft,vt.prototype.has=pt,vt.prototype.set=gt;var _t=vt,yt=Q(b,"Map");var bt=function(){this.size=0,this.__data__={hash:new ct,map:new(yt||_t),string:new ct}};var wt=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t};var Et=function(t,e){var r=t.__data__;return wt(e)?r["string"==typeof e?"string":"hash"]:r.map};var xt=function(t){var e=Et(this,t).delete(t);return this.size-=e?1:0,e};var Tt=function(t){return Et(this,t).get(t)};var zt=function(t){return Et(this,t).has(t)};var Lt=function(t,e){var r=Et(this,t),o=r.size;return r.set(t,e),this.size+=r.size==o?0:1,this};function kt(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var o=t[e];this.set(o[0],o[1])}}kt.prototype.clear=bt,kt.prototype.delete=xt,kt.prototype.get=Tt,kt.prototype.has=zt,kt.prototype.set=Lt;var jt=kt;function St(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var r=function(){var o=arguments,n=e?e.apply(this,o):o[0],a=r.cache;if(a.has(n))return a.get(n);var i=t.apply(this,o);return r.cache=a.set(n,i)||a,i};return r.cache=new(St.Cache||jt),r}St.Cache=jt;var At=St;var It=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Nt=/\\(\\)?/g,Ot=function(t){var e=At(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(It,(function(t,r,o,n){e.push(o?n.replace(Nt,"$1"):r||t)})),e}));var Ct=function(t,e){for(var r=-1,o=null==t?0:t.length,n=Array(o);++r<o;)n[r]=e(t[r],r,t);return n},Rt=w?w.prototype:void 0,Mt=Rt?Rt.toString:void 0;var Ht=function t(e){if("string"==typeof e)return e;if(v(e))return Ct(e,t)+"";if(N(e))return Mt?Mt.call(e):"";var r=e+"";return"0"==r&&1/e==-Infinity?"-0":r};var Pt=function(t){return null==t?"":Ht(t)};var Ft=function(t,e){return v(t)?t:R(t,e)?[t]:Ot(Pt(t))};var Bt=function(t){if("string"==typeof t||N(t))return t;var e=t+"";return"0"==e&&1/t==-Infinity?"-0":e};var Wt=function(t,e){for(var r=0,o=(e=Ft(e,t)).length;null!=t&&r<o;)t=t[Bt(e[r++])];return r&&r==o?t:void 0};var Dt=function(t,e,r){var o=null==t?void 0:Wt(t,e);return void 0===o?r:o};function Gt(t){return(Gt="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)}d((function(t){var e=function(t){var e,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(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(t){c=function(t,e,r){return t[e]=r}}function s(t,e,r,o){var n=e&&e.prototype instanceof g?e:g,a=Object.create(n.prototype),i=new j(o||[]);return a._invoke=function(t,e,r){var o=h;return function(n,a){if(o===m)throw new Error("Generator is already running");if(o===f){if("throw"===n)throw a;return A()}for(r.method=n,r.arg=a;;){var i=r.delegate;if(i){var l=z(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===h)throw o=f,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=m;var c=u(t,e,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)}}}(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=s;var h="suspendedStart",d="suspendedYield",m="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(S([])));w&&w!==r&&o.call(w,a)&&(y=w);var E=_.prototype=g.prototype=Object.create(y);function x(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function T(t,e){function r(n,a,i,l){var c=u(t[n],t,a);if("throw"!==c.type){var s=c.arg,h=s.value;return h&&"object"==typeof h&&o.call(h,"__await")?e.resolve(h.__await).then((function(t){r("next",t,i,l)}),(function(t){r("throw",t,i,l)})):e.resolve(h).then((function(t){s.value=t,i(s)}),(function(t){return r("throw",t,i,l)}))}l(c.arg)}var n;this._invoke=function(t,o){function a(){return new e((function(e,n){r(t,o,e,n)}))}return n=n?n.then(a,a):a()}}function z(t,r){var o=t.iterator[r.method];if(o===e){if(r.delegate=null,"throw"===r.method){if(t.iterator.return&&(r.method="return",r.arg=e,z(t,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,t.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[t.resultName]=a.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,p):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,p)}function L(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 j(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(L,this),this.reset(!0)}function S(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 n=-1,i=function r(){for(;++n<t.length;)if(o.call(t,n))return r.value=t[n],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 v.prototype=_,c(E,"constructor",_),c(_,"constructor",v),v.displayName=c(_,l,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===v||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,_):(t.__proto__=_,c(t,l,"GeneratorFunction")),t.prototype=Object.create(E),t},t.awrap=function(t){return{__await:t}},x(T.prototype),c(T.prototype,i,(function(){return this})),t.AsyncIterator=T,t.async=function(e,r,o,n,a){void 0===a&&(a=Promise);var i=new T(s(e,r,o,n),a);return t.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},x(E),c(E,l,"Generator"),c(E,a,(function(){return this})),c(E,"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 o=e.pop();if(o in t)return r.value=o,r.done=!1,r}return r.done=!0,r}},t.values=S,j.prototype={constructor:j,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)&&o.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 n(o,n){return l.type="throw",l.arg=t,r.next=o,n&&(r.method="next",r.arg=e),!!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(t,e){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"===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,p):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),p},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),p}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var o=r.completion;if("throw"===o.type){var n=o.arg;k(r)}return n}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,o){return this.delegate={iterator:S(t),resultName:r,nextLoc:o},"next"===this.method&&(this.arg=e),p}},t}(t.exports);try{regeneratorRuntime=e}catch(t){"object"==typeof globalThis?globalThis.regeneratorRuntime=e:Function("r","regeneratorRuntime = r")(e)}}));var Ut=function(t,e,r,o){var n=-1,a=null==t?0:t.length;for(o&&a&&(r=t[++n]);++n<a;)r=e(r,t[n],n,t);return r};var Zt=function(t){return function(e){return null==t?void 0:t[e]}}({"À":"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"}),qt=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Jt=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]","g");var $t=function(t){return(t=Pt(t))&&t.replace(qt,Zt).replace(Jt,"")},Vt=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;var Yt=function(t){return t.match(Vt)||[]},Kt=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;var Qt=function(t){return Kt.test(t)},Xt="\\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",te="["+Xt+"]",ee="\\d+",re="[\\u2700-\\u27bf]",oe="[a-z\\xdf-\\xf6\\xf8-\\xff]",ne="[^\\ud800-\\udfff"+Xt+ee+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",ae="(?:\\ud83c[\\udde6-\\uddff]){2}",ie="[\\ud800-\\udbff][\\udc00-\\udfff]",le="[A-Z\\xc0-\\xd6\\xd8-\\xde]",ce="(?:"+oe+"|"+ne+")",se="(?:"+le+"|"+ne+")",ue="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?",he="[\\ufe0e\\ufe0f]?"+ue+("(?:\\u200d(?:"+["[^\\ud800-\\udfff]",ae,ie].join("|")+")[\\ufe0e\\ufe0f]?"+ue+")*"),de="(?:"+[re,ae,ie].join("|")+")"+he,me=RegExp([le+"?"+oe+"+(?:['’](?:d|ll|m|re|s|t|ve))?(?="+[te,le,"$"].join("|")+")",se+"+(?:['’](?:D|LL|M|RE|S|T|VE))?(?="+[te,le+ce,"$"].join("|")+")",le+"?"+ce+"+(?:['’](?:d|ll|m|re|s|t|ve))?",le+"+(?:['’](?: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_])",ee,de].join("|"),"g");var fe=function(t){return t.match(me)||[]};var pe=function(t,e,r){return t=Pt(t),void 0===(e=r?void 0:e)?Qt(t)?fe(t):Yt(t):t.match(e)||[]},ge=RegExp("['’]","g");var ve=function(t){return function(e){return Ut(pe($t(e).replace(ge,"")),t,"")}},_e=ve((function(t,e,r){return t+(r?" ":"")+e.toUpperCase()})),ye=ve((function(t,e,r){return t+(r?" ":"")+e.toLowerCase()}));function be(t,e,r,o,n){var a,i=Dt(n,["localizedPublishTime",r])||r;return"hour"===e&&t>23||-1!==["day","week","month","year"].indexOf(e)?function(t,e,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,h=n.disableMeridiem,d=void 0!==h&&h,m=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],f=new Date(o),p=f.getDate().toString().padStart(2,0),g=m[f.getMonth()],v=g;u&&(v=_e(g));var _,y=f.getFullYear(),b=n.localizedMeridiem,w=n.localizedMonths,E=n.direction,x=void 0===E?"ltr":E,T=we(o),z=T;if(w&&(v=Dt(w,[ye(g)])||g),b){var L=T.includes("am"),k=b.am,j=void 0===k?"am":k,S=b.pm,A=void 0===S?"pm":S;z=(L?T.replace("am",j):T.replace("pm",A))||T}return"rtl"===x?(_=i?"".concat(z):"","".concat(p," ").concat(v,", ").concat(y," ").concat(_," ")):d?"".concat(v," ").concat(p,", ").concat(y):c?"".concat(z,", ").concat(p," ").concat(v," ").concat(y):(_=i?", ".concat(z):"","".concat(p," ").concat(v,", ").concat(y).concat(_))}(t,e,r,o,n):t>1?(a=Dt(n,["localizedPublishTime","".concat(e,"s")])||"".concat(e,"s"),"".concat(t," ").concat(a," ").concat(i)):(a=Dt(n,["localizedPublishTime",e])||e,"".concat(t," ").concat(a," ").concat(i," "))}function we(t){var e=new Date(t),r=e.getHours(),o=e.getMinutes(),n=r>=12?"pm":"am";return(r=(r%=12)||12)+":"+(o=o<10?"0"+o:o)+" "+n}var Ee=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},xe=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},Te={mobile:767,tablet:1024},ze=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),r=e?t:xe(t),o=Ee(r)<155?"light":"dark";return o};function Le(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t["story-template"],r=void 0===e?"":e,o=t.metadata,n=void 0===o?{}:o;return"news-elsewhere"===r?Dt(n,["reference-url"],""):""}o.shape({"sketches-host":o.string,"cdn-name":o.string,"cdn-image":o.string}),o.shape({headline:o.string,"last-published-at":o.number,subheadline:o.string});var ke=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return"news-elsewhere"===Dt(t,["story-template"])?Dt(t,["metadata","reference-url"],""):t.url||e},je=function(e){var r=e.height,o=e.width,n=e.color,a=void 0===n?"#D8D8D8":n,i=e.positionTop;return t.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:o,height:r,viewBox:"0 0 40 40",style:{position:"relative",top:i}},t.createElement("g",{fill:"none",fillRule:"evenodd",stroke:"none",strokeWidth:"1"},t.createElement("g",null,t.createElement("g",{transform:"translate(8 8)"},t.createElement("path",{d:"M0 0H24V24H0z"}),t.createElement("g",{fill:a,fillRule:"nonzero",transform:"translate(0 2)"},t.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"}))))))};je.propTypes={height:o.string,width:o.string,color:o.string,positionTop:o.string};var Se=function(e){var r=e.height,o=e.width,n=e.color,a=void 0===n?"#D5D5D5":n,i=e.positionTop;return t.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:o,height:r,viewBox:"0 0 40 40",style:{position:"relative",top:i}},t.createElement("g",{fill:"none",fillRule:"evenodd",stroke:"none",strokeWidth:"1"},t.createElement("g",null,t.createElement("g",{transform:"translate(8 8)"},t.createElement("path",{d:"M0 0H24V24H0z"}),t.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)"})))))};Se.propTypes={height:o.string,width:o.string,color:o.string,positionTop:o.string};var Ae=function(e){var r=e.height,o=e.width,n=e.color,a=void 0===n?"#D5D5D5":n,i=e.positionTop;return t.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:o,height:r,viewBox:"0 0 40 40",style:{position:"relative",top:i}},t.createElement("g",{fill:"none",fillRule:"evenodd",stroke:"none",strokeWidth:"1"},t.createElement("g",null,t.createElement("g",{transform:"translate(8 8)"},t.createElement("path",{d:"M0 0H24V24H0z"}),t.createElement("g",{fill:a,fillRule:"nonzero",transform:"translate(3)"},t.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"}))))))};Ae.propTypes={height:o.string,width:o.string,color:o.string,positionTop:o.string};var Ie=function(e){var r=e.width,o=e.height,n=e.color,a=void 0===n?"#D5D5D5":n,i=e.positionTop,l=void 0===i?"":i;return t.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:r,height:o,viewBox:"0 0 40 40",style:{position:"relative",top:l}},t.createElement("g",{fill:"none",fillRule:"evenodd",stroke:"none",strokeWidth:"1"},t.createElement("g",null,t.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"}))))};Ie.propTypes={height:o.string,width:o.string,color:o.string,positionTop:o.string};var Ne=function(e){var r=e.width,o=e.height,n=e.color,a=e.iconType,i=e.positionTop;switch(a){case"crown":return t.createElement(je,{width:r,height:o,color:n,positionTop:i});case"lock":return t.createElement(Ae,{width:r,height:o,color:n,positionTop:i});case"key":return t.createElement(Se,{width:r,height:o,color:n,positionTop:i});default:return t.createElement(Ie,{width:r,height:o,color:n,positionTop:i})}};Ne.propTypes={width:o.string,height:o.string,color:o.string,iconType:o.string,positionTop:o.string};var Oe={"./headline.m.css":{wrapper:"headline-m_wrapper__3nUmh",headline:"headline-m_headline__3_NhV",dark:"headline-m_dark__en3hW",light:"headline-m_light__3lKJB"}},Ce=function(e){var r=e.story,o=e.headerLevel,a=e.premiumStoryIconConfig,i=void 0===a?{}:a,l=e.isLink,c=g()||{},s=i.iconColor,u=void 0===s?"#F7B500":s,h=i.iconStyle,d=void 0===h?"star":h,m=i.enablePremiumStoryIcon,p=void 0!==m&&m,v=Dt(r,["alternative","home","default","headline"]),_=p&&"subscription"===Dt(r,["access"]),y=v||r.headline,b="h"+o,w=ze(c.theme),E=_?"wrapper":"",x="24px";return t.createElement("div",{"data-test-id":"headline",className:"arrow-component arr--headline "+f(E,Oe)},_&&t.createElement(Ne,{width:x,height:x,color:u,iconType:d,positionTop:function(){switch(parseInt(o)){case 1:return"-2px";case 2:return"2px";case 3:return"4px";case 4:return"5px";default:return"6px"}}()}),l?t.createElement(n,{href:ke(r,"/".concat(r.slug)),externalLink:Le(r),"aria-label":"headline"},t.createElement(b,{className:f("headline ".concat(w),Oe)},y)):t.createElement(b,{className:f("headline ".concat(w),Oe)},y))};Ce.propTypes={story:o.object.isRequired,headerLevel:o.string,premiumStoryIconConfig:o.shape({iconColor:o.string,iconType:o.string,enablePremiumStoryIcon:o.bool}),isLink:o.bool},Ce.defaultProps={headerLevel:"6",isLink:!0};var Re={"./subheadline.m.css":{subheadline:"subheadline-m_subheadline__3fd7z",dark:"subheadline-m_dark__28u00",light:"subheadline-m_light__2YUOe"}},Me=function(e){var r=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=g()||{};if(!(c||Dt(u,["showSubheadline"],!0)))return null;var h=ze(u.theme);return t.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)+" ":"")+f("subheadline ".concat(h),Re)},s||"number"==typeof a?r.subheadline:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:60,r=arguments.length>2&&void 0!==arguments[2]&&!arguments[2]?"":" ...";return"string"==typeof t&&t.length>e?t.substring(0,e)+r:t}(r.subheadline,n,!0))};Me.propTypes={story:o.object.isRequired,lineClamp:o.number,truncateChars:o.number,clazzName:o.string,forceShowAtom:o.bool,showFullContent:o.bool},Me.defaultProps={forceShowAtom:!1,showFullContent:!1};var He={"./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"}},Pe=function(e){var r=e.story,o=e.isBottom,n=e.config,a=void 0===n?{}:n,i=g()||{},c=Dt(i,["showTime"],!0),s=r["last-published-at"]||r["first-published-at"],u=o?"bottom-fix":"",h=ze(i.theme);return t.createElement(t.Fragment,null,c&&t.createElement("div",{"data-test-id":"publish-time",className:"time arr--publish-time "+f("time ".concat(h," ").concat(u),He)},t.createElement("div",{className:"timestamp-m_time-wrapper__3O2lM"},function(e,r){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return t.createElement(l,{date:e,formatter:function(t,e,n,a){return r(t,e,n,a,o)}})}(s,be,a))))};Pe.propTypes={story:o.object,isBottom:o.bool,config:o.object};var Fe={"./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"}},Be=function(e){var r=e.story,o=e.hideAuthorImage,i=e.isBottom,l=e.prefix,c=void 0===l?"":l,s=e.config,u=void 0===s?{}:s,h=g()||{},d=Dt(h,["showAuthor"],!0),m=Dt(r,["authors","0"],""),p=m["avatar-url"],v=m["avatar-s3-key"],_=m.name,y=m.slug,b=i?"bottom-fix":"",w=ze(h.theme),E=Dt(u,["mountAt"],""),x=function(e){return c?t.createElement("div",{className:"arr-author-prefix "+f("prefix ".concat(w),Fe)},c):!o&&function(e){return p||v?t.createElement("div",{"data-test-id":"author-image",className:f("author-image ".concat(e,"-image"),Fe)},t.createElement("figure",null,v?t.createElement(a,{slug:v,"aspect-ratio":[1,1],defaultWidth:400,imgParams:{auto:["format","compress"]},alt:_}):t.createElement("img",{src:p}))):null}(e)};return t.createElement(t.Fragment,null,d&&t.createElement(n,{href:"".concat(E,"/author/")+y,"aria-label":"author-name",className:"author-name arr-author-name arrow-component "+f("author ".concat(b),Fe)},x("ltr"),t.createElement("div",{"data-test-id":"author-name",className:"author-name "+f("author-name ".concat(w),Fe)},_||r["author-name"]),!c&&x("rtl")))};var We=c((function(t){return{config:Dt(t,["qt","config"],{})}}))(Be);Be.propTypes={story:o.object.isRequired,hideAuthorImage:o.bool,isBottom:o.bool,prefix:o.string,config:o.object},Be.defaultProps={hideAuthorImage:!1,isBottom:!1,prefix:""};var De={"./dot.m.css":{dark:"dot-m_dark__1Njxl",light:"dot-m_light__27IA3"}},Ge=function(e){var r=e.width,o=void 0===r?"3px":r,n=e.height,a=void 0===n?"3px":n,i=e.color,l=void 0===i?"light":i;return t.createElement("div",{className:f(l,De)},t.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:o,height:a,viewBox:"0 0 3 3"},t.createElement("circle",{cx:"87",cy:"9",r:"1",fill:"inherit",fillRule:"nonzero",transform:"translate(-86 -8)"})))};Ge.propTypes={color:o.string,width:o.string,height:o.string};var Ue={"./divider.m.css":{dark:"divider-m_dark__26FRi",light:"divider-m_light__w-7sy"}},Ze=function(e){var r=e.width,o=void 0===r?"1":r,n=e.height,a=void 0===n?"10":n,i=e.color,l=void 0===i?"light":i;return t.createElement("div",{className:f(l,Ue)},t.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:o,height:a},t.createElement("path",{fill:"inherit",d:"M0 0h1v10H0z"})))};Ze.propTypes={color:o.string,width:o.string,height:o.string};var qe={"./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"}},Je=function(e){var r=e.story,o=e.opts,n=void 0===o?{}:o,a=e.isLightTheme,i=void 0!==a&&a,l=g()||{},c=Dt(l,["showReadTime"])||Dt(n,["showReadTime"],!0),s=Dt(r,["read-time"],0),u=i?"light":ze(l.theme);if(!c||!s)return null;var h=Dt(n,["localizedTimeToRead"])||"min read";return t.createElement(t.Fragment,null,t.createElement("div",{"data-test-id":"read-time",className:"arrow-component arr--read-time "+f("read-time-wrapper ".concat(u),qe)},t.createElement("span",{className:"read-time-indicator read-time-m_dot-indicator__3Sqh2"},t.createElement(Ge,{color:u})),t.createElement("span",null,s," ",h)))};Je.propTypes={story:o.shape({"read-time":o.number}),opts:o.shape({showReadTime:o.bool}),isLightTheme:o.bool};var $e={"./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"}},Ve=function(e){var r=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=g()||{},h=Dt(c,["showAuthor"],Dt(u,["showAuthor"],!0)),d=Dt(u,["showTime"],!0),m=Dt(u,["showReadTime"],!0),p=n?"bottom-fix":"",v="dot"===o?"dot":"dash",_=s?"light":ze(u.theme),y=function(){return d?t.createElement(t.Fragment,null,h&&t.createElement("span",{className:"arr-separator "+f("".concat(v),$e)},"divider"===o?t.createElement(Ze,{color:_}):t.createElement(Ge,{color:_})),t.createElement(Pe,{story:r,config:c}),m&&t.createElement(Je,{story:r,opts:c,isLightTheme:s})):null};return t.createElement("div",{className:"arr--author-time "+f("author-time-wrapper ".concat(p),$e)},h?t.createElement(t.Fragment,null,t.createElement(We,{story:r,isBottom:!0,hideAuthorImage:a,prefix:i}),y()):y())};function Ye(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,o=new Array(e);r<e;r++)o[r]=t[r];return o}function Ke(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var o,n,a=[],i=!0,l=!1;try{for(r=r.call(t);!(i=(o=r.next()).done)&&(a.push(o.value),!e||a.length!==e);i=!0);}catch(t){l=!0,n=t}finally{try{i||null==r.return||r.return()}finally{if(l)throw n}}return a}}(t,e)||function(t,e){if(t){if("string"==typeof t)return Ye(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Ye(t,e):void 0}}(t,e)||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.")}()}Ve.propTypes={story:o.object,separator:o.oneOf(["dot","divider"]),hideAuthorImage:o.bool,isBottom:o.bool,prefix:o.string,config:o.object,isLightTheme:o.bool},Ve.defaultProps={separator:"dot",isBottom:!1,hideAuthorImage:!0,prefix:"",isLightTheme:!1};var Qe=function(e){var r=e.width,o=void 0===r?40:r,n=e.height,a=void 0===n?30:n,i=e.iconColor,l=void 0===i?"#99B0CB":i;return t.createElement("svg",{width:o,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"}))))};Qe.propTypes={width:o.object,height:o.object,iconColor:o.object};var Xe=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(Qe,null)))},tr=function(e){var r=e.slug;return r?t.createElement(n,{href:r,"aria-label":"image-fallback"},Xe()):Xe()};tr.propTypes={slug:o.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"}},rr=function(e){var r=e.story,o=e.FullBleed,l=e.aspectRatio,c=e.defaultWidth,u=e.widths,h=e.isHorizontal,d=e.isHorizontalMobile,m=e.isHorizontalWithImageLast,p=e.defaultFallback,v=e.isStoryPageImage,_=(g()||{}).fallbackImageUrl,y=void 0===_?"":_,b=s((function(t){return Dt(t,["qt","config","showPlaceholder"])}))?"placeholder":"",w=o?"":"with-padding",E="hero-image";h?E="right-padding":m&&(E="left-padding");var x,T=d?"right-padding-mob":"",z=function(t){var e=Ke(t,2),r=e[0],o=e[1];return r>0&&o>0?o/r*100:0},L=Ke(l,2),k=L[0],j=L[1],S=void 0===j?k:j,A=!!(x=Dt(Te,"mobile"))&&Dt(global,"document.documentElement.clientWidth")<=x,I=A?k:S,N=z(A?k:S),O=Dt(r,["hero-image-s3-key"])||Dt(r,["alternative","home","default","hero-image","hero-image-s3-key"]),C=function(){return O?t.createElement("figure",{style:{paddingTop:N+"%"},className:"arr--responsive-hero-image "+f("image ".concat(b),er)},t.createElement(i,{story:r,aspectRatio:I,defaultWidth:c,widths:u,imgParams:{auto:["format","compress"],fit:"max"}})):y?t.createElement("figure",{style:{paddingTop:N+"%"},className:"arr--responsive-hero-image "+f("image ".concat(b),er)},t.createElement(a,{slug:!v&&y,metadata:{},"aspect-ratio":I,defaultWidth:c,widths:u,imgParams:{auto:["format","compress"],fit:"max"},className:"",alt:"image-fallback"})):t.createElement(t.Fragment,null,p?t.createElement("div",{"data-test-id":"arr--fallback-hero-image",style:{paddingTop:N+"%"},className:"arr--fallback-hero-image "+f("image ".concat(b),er)},t.createElement(tr,null)):null)};return r&&(v?t.createElement("div",{"data-test-id":"arr--hero-image",className:"arr--hero-image "+f("".concat(E," ").concat(w," ").concat(T),er)},C()):t.createElement(n,{"data-test-id":"arr--hero-image",href:ke(r,"/".concat(r.slug)),externalLink:Le(r),"aria-label":"fallback-hero-image",className:"arr--hero-image "+f("".concat(E," ").concat(w," ").concat(T),er)},C()))};rr.propTypes={story:o.object.isRequired,FullBleed:o.bool,defaultWidth:o.number,widths:o.array,aspectRatio:o.array,isHorizontal:o.bool,isHorizontalMobile:o.bool,defaultFallback:o.bool,isHorizontalWithImageLast:o.bool},rr.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 or={"./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"}},nr=function(e){var r=e.story,o=e.template,a=void 0===o?"":o,i=e.borderColor,l=void 0===i?"":i,c=e.isLightTheme,s=g()||{},u=Dt(s,["showSection"],!0),h=Dt(s,["sectionTagTemplate"]),d=Dt(r,["sections",0],""),m=["borderBottomSml","borderLeft","solid"],p=d?d["section-url"]:"/",v="solid"===a||"solid"===h?l:s.theme,_=c?"light":ze(v),y=xe(l),b=m.includes(a)?"section section-".concat(a):"section";return h&&(b=m.includes(h)?"section section-".concat(h):"section"),u?t.createElement(n,{href:p,className:"arrow-component arr--section-name","aria-label":"section-name"},t.createElement("div",{"data-test-id":"sectionTag",style:{backgroundColor:b.includes("section-solid")?y:""},className:"section-tag arrow-component "+f("".concat(_," ").concat(b),or)},b.includes("section-borderLeft")&&t.createElement("span",{className:"section-m_border-left__2oUyp",style:{color:y}}),d["display-name"]||d.name,t.createElement("div",{className:"section-m_border-bottom__3cRoD",style:{backgroundColor:"".concat("solid"===a?"":y)}}))):null};nr.propTypes={story:o.object.isRequired,template:o.oneOf(["","borderBottomSml","borderLeft","solid"]),borderColor:o.string,solidBorderColor:o.string,isLightTheme:o.bool},nr.defaultProps={template:"",isLightTheme:!1};var ar={"./storycard.m.css":{"author-timestamp-wrapper":"storycard-m_author-timestamp-wrapper__20yjp","default-card":"storycard-m_default-card__1-POn","horizontal-card":"storycard-m_horizontal-card___7afz","backgroung-img":"storycard-m_backgroung-img__1FMJT","content-overlap":"storycard-m_content-overlap__1yNHR","border-full":"storycard-m_border-full__1nhy7",light:"storycard-m_light__3EhXN",dark:"storycard-m_dark__2wCTq","border-bottom":"storycard-m_border-bottom__2_E-I","border-boxShadow":"storycard-m_border-boxShadow__2-k3Z","center-align":"storycard-m_center-align__1Sn8-","content-bottom":"storycard-m_content-bottom__1QHeC","content-full":"storycard-m_content-full__2zJmU","content-boxShadow":"storycard-m_content-boxShadow__2IAWZ","hero-image":"storycard-m_hero-image__1H3MB","right-padding":"storycard-m_right-padding__12-lQ","horizontal-mob":"storycard-m_horizontal-mob__17JG2",content:"storycard-m_content__1Q9vq","border-default":"storycard-m_border-default__PEZ1x",card:"storycard-m_card__KJwRa","horizontal-image-last":"storycard-m_horizontal-image-last__3o6LY"}},ir=function(e){var r,o=e.story,n=e.children,a=e.isHorizontal,i=e.aspectRatio,l=e.border,c=e.useImageAsBackground,s=e.bgImgContentOverlap,u=e.theme,h=e.borderColor,d=e.isHorizontalMobile,m=e.centerAlign,p=e.headerLevel,g=e.hideAuthorImage,v=e.prefix,_=e.config,y=e.isHorizontalWithImageLast;if(!o||(null==(r=o)||"object"===Gt(r)&&0===Object.entries(r).length&&r.constructor===Object||"string"==typeof r&&0===r.trim().length))return t.createElement("div",null);var b=["default","full","bottom","boxShadow"].includes(l)?"border-".concat(l):"",w="default-card";a?w="horizontal-card":y&&(w="horizontal-image-last");var E=c?"backgroung-img":"",x=s?"content-overlap":"",T=ze(u),z=d?"horizontal-mob":"",L=t.createElement(lr,{story:o,aspectRatio:i,border:l,isHorizontalMobile:d,isHorizontal:a,centerAlign:m,headerLevel:p,borderColor:h,hideAuthorImage:g,prefix:v,config:_,isHorizontalWithImageLast:y});return t.createElement("div",{"data-test-id":"story-card",style:{backgroundColor:u,color:T},className:"arr--story-card "+f("card ".concat(w," ").concat(b," ").concat(T," ").concat(E," ").concat(x," ").concat(z),ar)},n||L)},lr=function(e){var r=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,h=e.hideAuthorImage,d=e.prefix,m=e.isHorizontalWithImageLast,p=e.config,g=s?"center-align":"",v=xe(u),_=p.localizationConfig,y=void 0===_?{}:_;return t.createElement(t.Fragment,null,o?t.createElement(rr,{story:r,isHorizontal:!0,isHorizontalMobile:l,aspectRatio:n}):m?t.createElement(rr,{story:r,isHorizontalWithImageLast:!0,isHorizontalMobile:l,aspectRatio:n}):t.createElement(rr,{story:r,isHorizontalMobile:l,aspectRatio:n}),t.createElement("div",{className:"arr--story-content "+f("content ".concat(g),ar)},t.createElement(nr,{story:r,borderColor:v}),t.createElement(Ce,{story:r,headerLevel:a,premiumStoryIconConfig:p}),t.createElement(Ve,{config:y,story:r,isBottom:!0,prefix:d,hideAuthorImage:h}),t.createElement(Me,{story:r})))};lr.propTypes={story:o.object.isRequired,border:o.oneOfType([o.string]),isBottom:o.bool,isHorizontal:o.bool,aspectRatio:o.oneOfType([o.array]),isHorizontalMobile:o.bool,centerAlign:o.bool,headerLevel:o.string,borderColor:o.string,hideAuthorImage:o.bool,prefix:o.string,config:o.object,isHorizontalWithImageLast:o.bool},ir.propTypes={story:o.object.isRequired,children:o.node,isHorizontal:o.bool,border:o.oneOfType([o.string]),useImageAsBackground:o.bool,bgImgContentOverlap:o.bool,aspectRatio:o.oneOfType([o.array]),theme:o.string,isHorizontalMobile:o.bool,centerAlign:o.bool,headerLevel:o.string,borderColor:o.string,hideAuthorImage:o.bool,prefix:o.string,config:o.object,isHorizontalWithImageLast:o.bool},ir.defaultProps={isHorizontal:!1,isHorizontalMobile:!1,border:"default",theme:"",centerAlign:!1,borderColor:"",isHorizontalWithImageLast:!1};export{ir as StoryCard};
|
|
@@ -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 from"react";import{StoryElement as r}from"@quintype/components";import e from"prop-types";import"react-timeago";function n(){return(n=Object.assign||function(t){for(var r=1;r<arguments.length;r++){var e=arguments[r];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])}return t}).apply(this,arguments)}function o(t,r){if(null==t)return{};var e,n,o=function(t,r){if(null==t)return{};var e,n,o={},i=Object.keys(t);for(n=0;n<i.length;n++)e=i[n],r.indexOf(e)>=0||(o[e]=t[e]);return o}(t,r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)e=i[n],r.indexOf(e)>=0||Object.prototype.propertyIsEnumerable.call(t,e)&&(o[e]=t[e])}return o}var i=["element","render"],a=function(r){return function(e){var a=e.element,c=e.render,u=o(e,i);return a?c&&"function"==typeof c?c(e):t.createElement(r,n({},u,{element:a})):null}};a.propTypes={StoryElement:e.element};var c,u="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};(function(t){var r=function(t){var r,e=Object.prototype,n=e.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(t,r,e){return Object.defineProperty(t,r,{value:e,enumerable:!0,configurable:!0,writable:!0}),t[r]}try{u({},"")}catch(t){u=function(t,r,e){return t[r]=e}}function s(t,r,e,n){var o=r&&r.prototype instanceof d?r:d,i=Object.create(o.prototype),a=new P(n||[]);return i._invoke=function(t,r,e){var n=h;return function(o,i){if(n===p)throw new Error("Generator is already running");if(n===v){if("throw"===o)throw i;return k()}for(e.method=o,e.arg=i;;){var a=e.delegate;if(a){var c=E(a,e);if(c){if(c===y)continue;return c}}if("next"===e.method)e.sent=e._sent=e.arg;else if("throw"===e.method){if(n===h)throw n=v,e.arg;e.dispatchException(e.arg)}else"return"===e.method&&e.abrupt("return",e.arg);n=p;var u=l(t,r,e);if("normal"===u.type){if(n=e.done?v:f,u.arg===y)continue;return{value:u.arg,done:e.done}}"throw"===u.type&&(n=v,e.method="throw",e.arg=u.arg)}}}(t,e,a),i}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 h="suspendedStart",f="suspendedYield",p="executing",v="completed",y={};function d(){}function g(){}function _(){}var m={};u(m,i,(function(){return this}));var b=Object.getPrototypeOf,w=b&&b(b(T([])));w&&w!==e&&n.call(w,i)&&(m=w);var j=_.prototype=d.prototype=Object.create(m);function O(t){["next","throw","return"].forEach((function(r){u(t,r,(function(t){return this._invoke(r,t)}))}))}function x(t,r){function e(o,i,a,c){var u=l(t[o],t,i);if("throw"!==u.type){var s=u.arg,h=s.value;return h&&"object"==typeof h&&n.call(h,"__await")?r.resolve(h.__await).then((function(t){e("next",t,a,c)}),(function(t){e("throw",t,a,c)})):r.resolve(h).then((function(t){s.value=t,a(s)}),(function(t){return e("throw",t,a,c)}))}c(u.arg)}var o;this._invoke=function(t,n){function i(){return new r((function(r,o){e(t,n,r,o)}))}return o=o?o.then(i,i):i()}}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 y;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return y}var o=l(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,y;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=r),e.delegate=null,y):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,y)}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 P(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(L,this),this.reset(!0)}function T(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,a=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 a.next=a}}return{next:k}}function k(){return{value:r,done:!0}}return g.prototype=_,u(j,"constructor",_),u(_,"constructor",g),g.displayName=u(_,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var r="function"==typeof t&&t.constructor;return!!r&&(r===g||"GeneratorFunction"===(r.displayName||r.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,a,(function(){return this})),t.AsyncIterator=x,t.async=function(r,e,n,o,i){void 0===i&&(i=Promise);var a=new x(s(r,e,n,o),i);return t.isGeneratorFunction(e)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},O(j),u(j,c,"Generator"),u(j,i,(function(){return this})),u(j,"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=T,P.prototype={constructor:P,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 c.type="throw",c.arg=t,e.next=n,o&&(e.method="next",e.arg=r),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var u=n.call(a,"catchLoc"),s=n.call(a,"finallyLoc");if(u&&s){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.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 i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=r&&r<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=r,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a)},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),y},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),y}},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:T(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=r),y}},t}(t.exports);try{regeneratorRuntime=r}catch(t){"object"==typeof globalThis?globalThis.regeneratorRuntime=r:Function("r","regeneratorRuntime = r")(r)}})(c={exports:{}},c.exports);var s="object"==typeof u&&u&&u.Object===Object&&u,l="object"==typeof self&&self&&self.Object===Object&&self,h=s||l||Function("return this")(),f=h.Symbol,p=Object.prototype,v=p.hasOwnProperty,y=p.toString,d=f?f.toStringTag:void 0;var g=function(t){var r=v.call(t,d),e=t[d];try{t[d]=void 0;var n=!0}catch(t){}var o=y.call(t);return n&&(r?t[d]=e:delete t[d]),o},_=Object.prototype.toString;var m=function(t){return _.call(t)},b=f?f.toStringTag:void 0;var w=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":b&&b in Object(t)?g(t):m(t)};var j=function(t){var r=typeof t;return null!=t&&("object"==r||"function"==r)};var O,x=function(t){if(!j(t))return!1;var r=w(t);return"[object Function]"==r||"[object GeneratorFunction]"==r||"[object AsyncFunction]"==r||"[object Proxy]"==r},E=h["__core-js_shared__"],L=(O=/[^.]+$/.exec(E&&E.keys&&E.keys.IE_PROTO||""))?"Symbol(src)_1."+O:"";var S=function(t){return!!L&&L in t},P=Function.prototype.toString;var T=function(t){if(null!=t){try{return P.call(t)}catch(t){}try{return t+""}catch(t){}}return""},k=/^\[object .+?Constructor\]$/,z=Function.prototype,F=Object.prototype,G=z.toString,N=F.hasOwnProperty,$=RegExp("^"+G.call(N).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var A=function(t){return!(!j(t)||S(t))&&(x(t)?$:k).test(T(t))};var I=function(t,r){return null==t?void 0:t[r]};var R=function(t,r){var e=I(t,r);return A(e)?e:void 0},C=R(Object,"create");var Y=function(){this.__data__=C?C(null):{},this.size=0};var q=function(t){var r=this.has(t)&&delete this.__data__[t];return this.size-=r?1:0,r},M=Object.prototype.hasOwnProperty;var U=function(t){var r=this.__data__;if(C){var e=r[t];return"__lodash_hash_undefined__"===e?void 0:e}return M.call(r,t)?r[t]:void 0},B=Object.prototype.hasOwnProperty;var D=function(t){var r=this.__data__;return C?void 0!==r[t]:B.call(r,t)};var H=function(t,r){var e=this.__data__;return this.size+=this.has(t)?0:1,e[t]=C&&void 0===r?"__lodash_hash_undefined__":r,this};function J(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])}}J.prototype.clear=Y,J.prototype.delete=q,J.prototype.get=U,J.prototype.has=D,J.prototype.set=H;var K=J;var Q=function(){this.__data__=[],this.size=0};var V=function(t,r){return t===r||t!=t&&r!=r};var W=function(t,r){for(var e=t.length;e--;)if(V(t[e][0],r))return e;return-1},X=Array.prototype.splice;var Z=function(t){var r=this.__data__,e=W(r,t);return!(e<0)&&(e==r.length-1?r.pop():X.call(r,e,1),--this.size,!0)};var tt=function(t){var r=this.__data__,e=W(r,t);return e<0?void 0:r[e][1]};var rt=function(t){return W(this.__data__,t)>-1};var et=function(t,r){var e=this.__data__,n=W(e,t);return n<0?(++this.size,e.push([t,r])):e[n][1]=r,this};function nt(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])}}nt.prototype.clear=Q,nt.prototype.delete=Z,nt.prototype.get=tt,nt.prototype.has=rt,nt.prototype.set=et;var ot=nt,it=R(h,"Map");var at=function(){this.size=0,this.__data__={hash:new K,map:new(it||ot),string:new K}};var ct=function(t){var r=typeof t;return"string"==r||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==t:null===t};var ut=function(t,r){var e=t.__data__;return ct(r)?e["string"==typeof r?"string":"hash"]:e.map};var st=function(t){var r=ut(this,t).delete(t);return this.size-=r?1:0,r};var lt=function(t){return ut(this,t).get(t)};var ht=function(t){return ut(this,t).has(t)};var ft=function(t,r){var e=ut(this,t),n=e.size;return e.set(t,r),this.size+=e.size==n?0:1,this};function pt(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])}}pt.prototype.clear=at,pt.prototype.delete=st,pt.prototype.get=lt,pt.prototype.has=ht,pt.prototype.set=ft;var vt=pt;function yt(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],i=e.cache;if(i.has(o))return i.get(o);var a=t.apply(this,n);return e.cache=i.set(o,a)||i,a};return e.cache=new(yt.Cache||vt),e}yt.Cache=vt;var dt=yt;var gt=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,_t=/\\(\\)?/g;(function(t){var r=dt(t,(function(t){return 500===e.size&&e.clear(),t})),e=r.cache})((function(t){var r=[];return 46===t.charCodeAt(0)&&r.push(""),t.replace(gt,(function(t,e,n,o){r.push(n?o.replace(_t,"$1"):e||t)})),r}));var mt=f?f.prototype:void 0;mt&&mt.toString;var bt=e.shape({"sketches-host":e.string,"cdn-name":e.string,"cdn-image":e.string}),wt=e.shape({headline:e.string,"last-published-at":e.number,subheadline:e.string}),jt=["element","story","config"],Ot=function(e){var i=e.element;e.story,e.config;var a=o(e,jt);return t.createElement("div",n({},a,{"data-test-id":"story-elements"}),t.createElement(r,{element:i}))},xt=a(Ot);Ot.propTypes={element:e.object,story:wt,config:bt};export{xt as StoryElement};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import e,{useContext as t,createContext as r,useState as a,useEffect as n,Suspense as o,lazy as i,useRef as l}from"react";import c,{number as s,string as m,func as u,array as d,bool as p}from"prop-types";import"react-timeago";import{Link as f,LazyLoadImages as h,ResponsiveImage as v,StoryElement as _,SocialShare as g}from"@quintype/components";import{useSelector as y}from"react-redux";function b(){return(b=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e}).apply(this,arguments)}var w="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function E(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 x=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})),N=E(k((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,a=(r=x)&&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 o=Object.keys(t),i=r||{},l=i.handleMissingStyleName,c=void 0===l?a.default.handleMissingStyleName:l,s=i.autoResolveMultipleImports,m=void 0===s?a.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 o=e.split("."),i=o[0],l=o[1],c=r||a.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===o.length)throw new Error("Cannot use styleName attribute for style name '"+e+"' without importing at least one stylesheet.");if(o.length>1){if(!m)throw new Error("Cannot use anonymous style name '"+e+"' with more than one stylesheet import without setting 'autoResolveMultipleImports' to true.");return function(e,t,r){var o=r||a.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+"'.",o):t[i[0]][e]}(e,t,c)}var r=t[o[0]];return r[e]?r[e]:n("Could not resolve the styleName '"+e+"'.",c)})).filter((function(e){return e})).join(" "):""}}))),C=Array.isArray,T="object"==typeof w&&w&&w.Object===Object&&w,q="object"==typeof self&&self&&self.Object===Object&&self,j=T||q||Function("return this")(),I=j.Symbol,O=Object.prototype,S=O.hasOwnProperty,L=O.toString,A=I?I.toStringTag:void 0;var M=function(e){var t=S.call(e,A),r=e[A];try{e[A]=void 0;var a=!0}catch(e){}var n=L.call(e);return a&&(t?e[A]=r:delete e[A]),n},U=Object.prototype.toString;var R=function(e){return U.call(e)},z=I?I.toStringTag:void 0;var P=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":z&&z in Object(e)?M(e):R(e)};var H=function(e){return null!=e&&"object"==typeof e};var B=function(e){return"symbol"==typeof e||H(e)&&"[object Symbol]"==P(e)},V=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,F=/^\w*$/;var D=function(e,t){if(C(e))return!1;var r=typeof e;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=e&&!B(e))||(F.test(e)||!V.test(e)||null!=t&&e in Object(t))};var Z=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)};var G,W=function(e){if(!Z(e))return!1;var t=P(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},Y=j["__core-js_shared__"],Q=(G=/[^.]+$/.exec(Y&&Y.keys&&Y.keys.IE_PROTO||""))?"Symbol(src)_1."+G:"";var K=function(e){return!!Q&&Q in e},X=Function.prototype.toString;var J=function(e){if(null!=e){try{return X.call(e)}catch(e){}try{return e+""}catch(e){}}return""},$=/^\[object .+?Constructor\]$/,ee=Function.prototype,te=Object.prototype,re=ee.toString,ae=te.hasOwnProperty,ne=RegExp("^"+re.call(ae).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var oe=function(e){return!(!Z(e)||K(e))&&(W(e)?ne:$).test(J(e))};var ie=function(e,t){return null==e?void 0:e[t]};var le=function(e,t){var r=ie(e,t);return oe(r)?r:void 0},ce=le(Object,"create");var se=function(){this.__data__=ce?ce(null):{},this.size=0};var me=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(ce){var r=t[e];return"__lodash_hash_undefined__"===r?void 0:r}return ue.call(t,e)?t[e]:void 0},pe=Object.prototype.hasOwnProperty;var fe=function(e){var t=this.__data__;return ce?void 0!==t[e]:pe.call(t,e)};var he=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=ce&&void 0===t?"__lodash_hash_undefined__":t,this};function ve(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var a=e[t];this.set(a[0],a[1])}}ve.prototype.clear=se,ve.prototype.delete=me,ve.prototype.get=de,ve.prototype.has=fe,ve.prototype.set=he;var _e=ve;var ge=function(){this.__data__=[],this.size=0};var ye=function(e,t){return e===t||e!=e&&t!=t};var be=function(e,t){for(var r=e.length;r--;)if(ye(e[r][0],t))return r;return-1},we=Array.prototype.splice;var Ee=function(e){var t=this.__data__,r=be(t,e);return!(r<0)&&(r==t.length-1?t.pop():we.call(t,r,1),--this.size,!0)};var ke=function(e){var t=this.__data__,r=be(t,e);return r<0?void 0:t[r][1]};var xe=function(e){return be(this.__data__,e)>-1};var Ne=function(e,t){var r=this.__data__,a=be(r,e);return a<0?(++this.size,r.push([e,t])):r[a][1]=t,this};function Ce(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var a=e[t];this.set(a[0],a[1])}}Ce.prototype.clear=ge,Ce.prototype.delete=Ee,Ce.prototype.get=ke,Ce.prototype.has=xe,Ce.prototype.set=Ne;var Te=Ce,qe=le(j,"Map");var je=function(){this.size=0,this.__data__={hash:new _e,map:new(qe||Te),string:new _e}};var Ie=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e};var Oe=function(e,t){var r=e.__data__;return Ie(t)?r["string"==typeof t?"string":"hash"]:r.map};var Se=function(e){var t=Oe(this,e).delete(e);return this.size-=t?1:0,t};var Le=function(e){return Oe(this,e).get(e)};var Ae=function(e){return Oe(this,e).has(e)};var Me=function(e,t){var r=Oe(this,e),a=r.size;return r.set(e,t),this.size+=r.size==a?0:1,this};function Ue(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var a=e[t];this.set(a[0],a[1])}}Ue.prototype.clear=je,Ue.prototype.delete=Se,Ue.prototype.get=Le,Ue.prototype.has=Ae,Ue.prototype.set=Me;var Re=Ue;function ze(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var r=function(){var a=arguments,n=t?t.apply(this,a):a[0],o=r.cache;if(o.has(n))return o.get(n);var i=e.apply(this,a);return r.cache=o.set(n,i)||o,i};return r.cache=new(ze.Cache||Re),r}ze.Cache=Re;var Pe=ze;var He=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Be=/\\(\\)?/g,Ve=function(e){var t=Pe(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,a,n){t.push(a?n.replace(Be,"$1"):r||e)})),t}));var Fe=function(e,t){for(var r=-1,a=null==e?0:e.length,n=Array(a);++r<a;)n[r]=t(e[r],r,e);return n},De=I?I.prototype:void 0,Ze=De?De.toString:void 0;var Ge=function e(t){if("string"==typeof t)return t;if(C(t))return Fe(t,e)+"";if(B(t))return Ze?Ze.call(t):"";var r=t+"";return"0"==r&&1/t==-Infinity?"-0":r};var We=function(e){return null==e?"":Ge(e)};var Ye=function(e,t){return C(e)?e:D(e,t)?[e]:Ve(We(e))};var Qe=function(e){if("string"==typeof e||B(e))return e;var t=e+"";return"0"==t&&1/e==-Infinity?"-0":t};var Ke=function(e,t){for(var r=0,a=(t=Ye(t,e)).length;null!=e&&r<a;)e=e[Qe(t[r++])];return r&&r==a?e:void 0};var Xe=function(e,t,r){var a=null==e?void 0:Ke(e,t);return void 0===a?r:a};function Je(e,t){if(null==e)return{};var r,a,n=function(e,t){if(null==e)return{};var r,a,n={},o=Object.keys(e);for(a=0;a<o.length;a++)r=o[a],t.indexOf(r)>=0||(n[r]=e[r]);return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)r=o[a],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}var $e=["element","render"],et=function(t){return function(r){var a=r.element,n=r.render,o=Je(r,$e);return a?n&&"function"==typeof n?n(r):e.createElement(t,b({},o,{element:a})):null}};function tt(e){return(tt="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)}et.propTypes={StoryElement:c.element},k((function(e){var t=function(e){var t,r=Object.prototype,a=r.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},o=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,a){var n=t&&t.prototype instanceof v?t:v,o=Object.create(n.prototype),i=new q(a||[]);return o._invoke=function(e,t,r){var a=u;return function(n,o){if(a===p)throw new Error("Generator is already running");if(a===f){if("throw"===n)throw o;return I()}for(r.method=n,r.arg=o;;){var i=r.delegate;if(i){var l=N(i,r);if(l){if(l===h)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(a===u)throw a=f,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);a=p;var c=m(e,t,r);if("normal"===c.type){if(a=r.done?f:d,c.arg===h)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(a=f,r.method="throw",r.arg=c.arg)}}}(e,r,i),o}function m(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=s;var u="suspendedStart",d="suspendedYield",p="executing",f="completed",h={};function v(){}function _(){}function g(){}var y={};c(y,o,(function(){return this}));var b=Object.getPrototypeOf,w=b&&b(b(j([])));w&&w!==r&&a.call(w,o)&&(y=w);var E=g.prototype=v.prototype=Object.create(y);function k(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function x(e,t){function r(n,o,i,l){var c=m(e[n],e,o);if("throw"!==c.type){var s=c.arg,u=s.value;return u&&"object"==typeof u&&a.call(u,"__await")?t.resolve(u.__await).then((function(e){r("next",e,i,l)}),(function(e){r("throw",e,i,l)})):t.resolve(u).then((function(e){s.value=e,i(s)}),(function(e){return r("throw",e,i,l)}))}l(c.arg)}var n;this._invoke=function(e,a){function o(){return new t((function(t,n){r(e,a,t,n)}))}return n=n?n.then(o,o):o()}}function N(e,r){var a=e.iterator[r.method];if(a===t){if(r.delegate=null,"throw"===r.method){if(e.iterator.return&&(r.method="return",r.arg=t,N(e,r),"throw"===r.method))return h;r.method="throw",r.arg=new TypeError("The iterator does not provide a 'throw' method")}return h}var n=m(a,e.iterator,r.arg);if("throw"===n.type)return r.method="throw",r.arg=n.arg,r.delegate=null,h;var o=n.arg;return o?o.done?(r[e.resultName]=o.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,h):o:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,h)}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 T(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function q(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(C,this),this.reset(!0)}function j(e){if(e){var r=e[o];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(a.call(e,n))return r.value=e[n],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}return{next:I}}function I(){return{value:t,done:!0}}return _.prototype=g,c(E,"constructor",g),c(g,"constructor",_),_.displayName=c(g,l,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===_||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,g):(e.__proto__=g,c(e,l,"GeneratorFunction")),e.prototype=Object.create(E),e},e.awrap=function(e){return{__await:e}},k(x.prototype),c(x.prototype,i,(function(){return this})),e.AsyncIterator=x,e.async=function(t,r,a,n,o){void 0===o&&(o=Promise);var i=new x(s(t,r,a,n),o);return e.isGeneratorFunction(r)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},k(E),c(E,l,"Generator"),c(E,o,(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 a=t.pop();if(a in e)return r.value=a,r.done=!1,r}return r.done=!0,r}},e.values=j,q.prototype={constructor:q,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(T),!e)for(var r in this)"t"===r.charAt(0)&&a.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(a,n){return l.type="throw",l.arg=e,r.next=a,n&&(r.method="next",r.arg=t),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],l=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=a.call(i,"catchLoc"),s=a.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&&a.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var o=n;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,h):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),h},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),T(r),h}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var a=r.completion;if("throw"===a.type){var n=a.arg;T(r)}return n}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,a){return this.delegate={iterator:j(e),resultName:r,nextLoc:a},"next"===this.method&&(this.arg=t),h}},e}(e.exports);try{regeneratorRuntime=t}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=t:Function("r","regeneratorRuntime = r")(t)}}));var rt=function(e,t,r,a){var n=-1,o=null==e?0:e.length;for(a&&o&&(r=e[++n]);++n<o;)r=t(r,e[n],n,e);return r};var at=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"}),nt=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,ot=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]","g");var it=function(e){return(e=We(e))&&e.replace(nt,at).replace(ot,"")},lt=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;var ct=function(e){return e.match(lt)||[]},st=/[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 st.test(e)},ut="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",dt="["+ut+"]",pt="\\d+",ft="[\\u2700-\\u27bf]",ht="[a-z\\xdf-\\xf6\\xf8-\\xff]",vt="[^\\ud800-\\udfff"+ut+pt+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",_t="(?:\\ud83c[\\udde6-\\uddff]){2}",gt="[\\ud800-\\udbff][\\udc00-\\udfff]",yt="[A-Z\\xc0-\\xd6\\xd8-\\xde]",bt="(?:"+ht+"|"+vt+")",wt="(?:"+yt+"|"+vt+")",Et="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?",kt="[\\ufe0e\\ufe0f]?"+Et+("(?:\\u200d(?:"+["[^\\ud800-\\udfff]",_t,gt].join("|")+")[\\ufe0e\\ufe0f]?"+Et+")*"),xt="(?:"+[ft,_t,gt].join("|")+")"+kt,Nt=RegExp([yt+"?"+ht+"+(?:['’](?:d|ll|m|re|s|t|ve))?(?="+[dt,yt,"$"].join("|")+")",wt+"+(?:['’](?:D|LL|M|RE|S|T|VE))?(?="+[dt,yt+bt,"$"].join("|")+")",yt+"?"+bt+"+(?:['’](?: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_])",pt,xt].join("|"),"g");var Ct=function(e){return e.match(Nt)||[]};var Tt=function(e,t,r){return e=We(e),void 0===(t=r?void 0:t)?mt(e)?Ct(e):ct(e):e.match(t)||[]},qt=RegExp("['’]","g");var jt=function(e){return function(t){return rt(Tt(it(t).replace(qt,"")),e,"")}},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},Ot=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},St={mobile:767,tablet:1024},Lt=function(e){var t=Xe(St,e);return!!t&&Xe(global,"document.documentElement.clientWidth")<=t},At=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:Ot(e),a=It(r)<155?"light":"dark";return a},Mt=function(e){var t=e,r=e.match(/(<a).*?(>)/g);return r&&r.forEach((function(e){/target=/g.test(e)||(t=t.replace(e,"<a aria-label='content' target='_blank'".concat(e.substring(2))))})),t},Ut=c.shape({"sketches-host":c.string,"cdn-name":c.string,"cdn-image":c.string}),Rt=c.shape({headline:c.string,"last-published-at":c.number,subheadline:c.string}),zt=function(){if("undefined"!=typeof window&&window.matchMedia&&window.matchMedia("(max-width: 767px)").matches){setTimeout((function(){document.querySelectorAll(".story-element-jsembed.story-element-jsembed-facebook-post span").forEach((function(e){e.classList.contains("fixed-mobile-fb-video")||(e.style.height="".concat(Math.ceil(.7*e.offsetHeight),"px"),e.classList.add("fixed-mobile-fb-video"))}))}),3e3)}},Pt=r(),Ht=function(){return t(Pt)},Bt=["element","opts","css","story","config"],Vt={"./text.m.css":{viewports:'"../../../../../assets/stylesheets/viewports.m.css"',mobile:"768px",promotionalMessage:"text-m_promotionalMessage__CUsPM",textElement:"text-m_textElement__e3QEt",dark:"text-m_dark__1TC18",light:"text-m_light__2cRe8"}},Ft=function(t){var r=t.element,a=void 0===r?{}:r,n=t.opts,o=void 0===n?{}:n,i=t.css,l=void 0===i?{}:i;t.story,t.config;var c=Je(t,Bt),s=a.text;if(!s)return null;var m=Ht()||{},u=At(m.theme),d=l.textColor,p=o.isExternalLink,f=(void 0===p||p)&&Mt(s)||s,h=Xe(a,["metadata","promotional-message"],!1),v=h?"promotionalMessage":"textElement";return e.createElement("div",b({style:h?{}:{color:d},"data-test-id":h?"promotional-message":"text",dangerouslySetInnerHTML:{__html:f},id:"text-element"},c,{className:"arrow-component arr--text-element "+N("".concat(v," ").concat(u),Vt)+" "+(c&&c.className||"")}))};Ft.propTypes={element:c.shape({text:c.string}),opts:c.shape({isExternalLink:c.bool}),css:c.shape({hyperlinkColor:c.string,textColor:c.string}),story:Rt,config:Ut};var Dt=et(Ft);function Zt(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,a=new Array(t);r<t;r++)a[r]=e[r];return a}function Gt(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 a,n,o=[],i=!0,l=!1;try{for(r=r.call(e);!(i=(a=r.next()).done)&&(o.push(a.value),!t||o.length!==t);i=!0);}catch(e){l=!0,n=e}finally{try{i||null==r.return||r.return()}finally{if(l)throw n}}return o}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Zt(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)?Zt(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 Wt=["element","template","opts","css","story","config","render"],Yt={"./blurb.m.css":{viewports:'"../../../../../assets/stylesheets/viewports.m.css"',mobile:"768px",blurb:"blurb-m_blurb__3pXi5","blurb-default":"blurb-m_blurb-default__JR86y","blurb-withBorder":"blurb-m_blurb-withBorder__SjW--",dark:"blurb-m_dark__1eErz",light:"blurb-m_light__OBWiH"}},Qt=function(t){var r=t.element,o=t.template,i=void 0===o?"":o,l=t.opts,c=void 0===l?{}:l,s=t.css,m=void 0===s?{}:s;t.story,t.config,t.render;var u=Je(t,Wt),d=r.text,p=m.borderColor,f="withBorder"===i?{border:"solid 2px ".concat(p)}:{borderLeft:"solid 2px ".concat(p)},h=Gt(a(f),2),v=h[0],_=h[1];if(!d)return null;n((function(){var e=document.getElementsByTagName("HTML");e&&e.length&&"rtl"===e[0].dir.toLowerCase()&&"withBorder"!==i&&_({borderRight:"solid 2px ".concat(p)})}),[]);var g=c.isExternalLink,y=(void 0===g||g)&&Mt(d)||d,w=i?"blurb-".concat(i):"blurb",E=Ht()||{},k=At(E.theme);return e.createElement("div",b({"data-test-id":"blurb",style:p&&v,dangerouslySetInnerHTML:{__html:y}},u,{className:"arrow-component arr-custom-style arr--blurb-element "+N("".concat(w," ").concat(k),Yt)+" "+(u&&u.className||"")}))};Qt.propTypes={element:c.shape({text:c.string}),template:c.string,opts:c.shape({isExternalLink:c.bool}),story:Rt,config:Ut,render:c.func,css:c.object};var Kt=et(Qt),Xt=["element","template","opts","css","story","config","render"],Jt={"./summary.m.css":{viewports:'"../../../../../assets/stylesheets/viewports.m.css"',mobile:"768px",headline:"summary-m_headline__30sie",summary:"summary-m_summary__3-CnO",content:"summary-m_content__37n8C","summary-header":"summary-m_summary-header__UKVHi","summary-border":"summary-m_summary-border__M9hrr",dark:"summary-m_dark__1ZuzR",light:"summary-m_light__2SYiC","heading-wrapper":"summary-m_heading-wrapper__23S51","content-border":"summary-m_content-border__3ilmJ"}},$t=function(t){var r=t.element,a=t.template,n=void 0===a?"":a,o=t.opts,i=void 0===o?{}:o,l=t.css,c=void 0===l?{}:l;t.story,t.config,t.render;var s=Je(t,Xt),m=Ht()||{},u=At(m.theme),d=r.text;if(!d)return null;var p=c.headerBgColor,f=i.isExternalLink,h=void 0===f||f,v=i.headline,_=void 0===v?"Summary":v,g=i.hideHeadline,y=void 0!==g&&g,w=h&&Mt(d)||d,E=["header","border"].includes(n)?"summary-".concat(n):"summary",k=y?"content-border":"",x="header"===n||"border"===n,C=x?"".concat(p):"",T=x?At(p):"",q="header"===n?"":u;return e.createElement("div",b({"data-test-id":"summary"},s,{className:"arrow-component arr--summary-element arr-custom-style "+N(E,Jt)+" "+(s&&s.className||"")}),!y&&e.createElement("div",{"data-test-id":"summary-headline",className:N("heading-wrapper ".concat(u),Jt)},e.createElement("div",{style:{backgroundColor:C},className:N("headline ".concat(T," ").concat(u),Jt)},_)),e.createElement("div",{dangerouslySetInnerHTML:{__html:w},className:N("content ".concat(k," ").concat(q," ").concat(u),Jt)}))};$t.propTypes={element:c.shape({text:c.string}),template:c.string,opts:c.shape({isExternalLink:c.bool,headline:c.string,hideHeadline:c.bool}),story:Rt,config:Ut,render:c.func,css:c.shape({headerBgColor:c.string})};var er=et($t),tr=function(t){var r=t.width,a=t.height,n=t.color,o=t.opacity,i="light"===n&&"#ffffff",l="dark"===n&&"#0d0d0d";return e.createElement("div",{className:"icon-m_curve-wrapper__3-sLV",style:{fill:"".concat(i||l||n)}},e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:r,height:a,viewBox:"0 0 64 64"},e.createElement("path",{fill:"inherit",opacity:o,d:"M61 44.702c0 3.465-1.13 6.214-3.39 8.248-2.261 2.033-5.125 3.05-8.59 3.05-4.07 0-7.423-1.356-10.06-4.067-2.638-2.712-3.956-6.704-3.956-11.976 0-4.971.716-9.227 2.147-12.767 1.432-3.54 3.165-6.553 5.2-9.039 2.034-2.485 4.144-4.481 6.33-5.988 2.184-1.506 4.106-2.56 5.763-3.163l5.652 7.909c-3.316 1.657-5.99 3.879-8.025 6.666-2.035 2.786-3.052 6.289-3.052 10.507.603-.15 1.432-.226 2.487-.226 3.014 0 5.35 1.054 7.007 3.163C60.171 39.13 61 41.69 61 44.702zm-33.004 0c0 3.465-1.13 6.214-3.39 8.248-2.261 2.033-5.125 3.05-8.59 3.05-4.07 0-7.423-1.356-10.06-4.067C3.319 49.22 2 45.229 2 39.957c0-4.971.716-9.227 2.148-12.767 1.431-3.54 3.164-6.553 5.199-9.039 2.034-2.485 4.144-4.481 6.33-5.988C17.86 10.657 19.782 9.603 21.44 9l5.651 7.909c-3.316 1.657-5.99 3.879-8.025 6.666-2.034 2.786-3.052 6.289-3.052 10.507.603-.15 1.432-.226 2.487-.226 3.014 0 5.35 1.054 7.008 3.163 1.657 2.11 2.486 4.67 2.486 7.683z"})))};tr.propTypes={width:c.string,height:c.string,color:c.string,opacity:c.string};var rr=function(t){var r=t.width,a=t.height,n=t.color,o=t.opacity,i="light"===n&&"#ffffff",l="dark"===n&&"#0d0d0d";return e.createElement("div",{className:"icon-m_edge-wrapper__xUOdp",style:{fill:"".concat(i||l||n)}},e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:r,height:a,viewBox:"0 0 64 64"},e.createElement("path",{fill:"inherit",opacity:o,d:"M16.858 29.836v4.727H28V60H4V29.836c0-9.6 2.606-16.727 7.746-21.187C15.3 5.564 19.8 4 25.122 4v13.627c-2.888 0-8.264 0-8.264 12.209zm40.264-12.21V4c-5.32 0-9.82 1.564-13.376 4.65C38.606 13.108 36 20.236 36 29.835V60h24V34.563H48.857v-4.727c0-12.21 5.377-12.21 8.265-12.21z"})))};rr.propTypes={width:c.string,height:c.string,color:c.string,opacity:c.string};var ar=["element","template","css","story","config","render"],nr={"./block-quote.m.css":{viewports:'"../../../../../assets/stylesheets/viewports.m.css"',mobile:"768px","blockquote-withBackground":"block-quote-m_blockquote-withBackground__1yW-u",icon:"block-quote-m_icon__m-EIZ","icon-border":"block-quote-m_icon-border__2xQQY",blockquote:"block-quote-m_blockquote__HPVh0","blockquote-default":"block-quote-m_blockquote-default__fZ8a1","blockquote-withBorder":"block-quote-m_blockquote-withBorder__1GVQL",border:"block-quote-m_border__1ZTPR",content:"block-quote-m_content__xpMqX",wrapper:"block-quote-m_wrapper__2KEhw",attribution:"block-quote-m_attribution__2m4s2","quote-wrapper":"block-quote-m_quote-wrapper__83bEy",dark:"block-quote-m_dark__HaZuG",light:"block-quote-m_light__1QrNc"}},or=function(t,r,a,n){var o=Lt("mobile")?"48px":"64px";return"withBackground"===r?"edgeIcon"===t?e.createElement(rr,{width:o,height:o,color:n,opacity:".4"}):e.createElement(tr,{width:o,height:o,color:n,opacity:".4"}):"withBackground"!==r?"edgeIcon"===t?e.createElement(rr,{width:o,height:o,color:a}):e.createElement(tr,{width:o,height:o,color:a}):void 0},ir=function(t){var r=t.element,a=t.template,n=t.css,o=void 0===n?{}:n;t.story,t.config,t.render;var i=Je(t,ar),l=Xe(r,["metadata"]),c=l.content,s=l.attribution;if(!c)return null;var m=o.blockQuoteColor,u=o.backgroundShade,d=o.iconType,p=a?"blockquote-".concat(a):"blockquote",f="withBackground"===a,h=f?At(u):"",v=f&&u?{backgroundColor:u}:{},_=Ht()||{},g=At(f?v.backgroundColor:_.theme);return e.createElement("div",b({"data-test-id":"blockquote",style:v},i,{className:"arrow-component arr--block-quote "+N("".concat(p," ").concat(h),nr)+" "+(i&&i.className||"")}),e.createElement("div",{className:"block-quote-m_quote-wrapper__83bEy"},"withBorder"===a?e.createElement("div",{className:"block-quote-m_icon-border__2xQQY"},e.createElement("div",{className:"block-quote-m_icon__m-EIZ"},or(d,a,m,h)),e.createElement("div",{className:"block-quote-m_border__1ZTPR",style:m&&{backgroundColor:m}})):e.createElement("div",{className:"block-quote-m_icon__m-EIZ"},or(d,a,m,h)),e.createElement("div",{className:"block-quote-m_wrapper__2KEhw",style:m&&{borderColor:m}},e.createElement("div",{dangerouslySetInnerHTML:{__html:c},className:N("content ".concat(g),nr)}),e.createElement("div",{dangerouslySetInnerHTML:{__html:s},className:N("attribution ".concat(g),nr)}))))};ir.propTypes={element:c.shape({metadata:c.shape({content:c.string,attribution:c.string})}),template:c.string,story:Rt,config:Ut,render:c.func,css:c.object};var lr=et(ir),cr=["element","story","config"],sr={"./big-fact.m.css":{viewports:'"../../../../../assets/stylesheets/viewports.m.css"',mobile:"768px","bigfact-element":"big-fact-m_bigfact-element__3uAwv",light:"big-fact-m_light__ha49M",content:"big-fact-m_content__1u2Ul",attribution:"big-fact-m_attribution__3XK_P",dark:"big-fact-m_dark__7a_KC"}},mr=function(t){var r=t.element;t.story,t.config;var a=Je(t,cr),n=Ht()||{},o=At(n.theme),i=r.metadata,l=i.content,c=i.attribution;return e.createElement("div",b({"data-test-id":"bigfact"},a,{className:"arrow-component arr--bigfact-element "+N("bigfact-element ".concat(o),sr)+" "+(a&&a.className||"")}),e.createElement("div",{className:"big-fact-m_content__1u2Ul"},l),e.createElement("div",{"data-test-id":"attribution",className:N("attribution ".concat(o),sr)},c))};mr.propTypes={element:c.shape({metadata:c.shape({content:c.string,attribution:c.string})}),story:c.object,config:c.object};var ur=et(mr),dr=function(t){var r=t.width,a=void 0===r?40:r,n=t.height,o=void 0===n?30:n,i=t.iconColor,l=void 0===i?"#99B0CB":i;return e.createElement("svg",{width:a,height:o,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"}))))};dr.propTypes={width:c.object,height:c.object,iconColor:c.object};var pr=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(dr,null)))},fr=function(t){var r=t.slug;return r?e.createElement(f,{href:r,"aria-label":"image-fallback"},pr()):pr()};fr.propTypes={slug:c.string};var hr=["story","element","template","opts","css","config","render"],vr={"./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"}},_r=function(t){var r,a=t.story,n=t.linkedImage,o=t.template,i=t.isRightAlign,l="textLeftAlign"===o,c=Lt("mobile"),s=l?[16,9]:i&&c?[4,3]:[16,9],m=a["hero-image-caption"]||a.headline;return e.createElement("div",{className:"also-read-m_card-image-wrapper__3GFzu"},null==(r=n)||"object"===tt(r)&&0===Object.entries(r).length&&r.constructor===Object||"string"==typeof r&&0===r.trim().length?e.createElement("div",{className:"arr--fallback-also-read also-read-m_image__2jdRP"},e.createElement(fr,null)):e.createElement("figure",{className:"also-read-m_card-image__3CwAv"},e.createElement(h,null,e.createElement(v,{slug:n,"aspect-ratio":s,defaultWidth:480,widths:[250,480,640],imgParams:{auto:["format","compress"]},alt:m}))))};_r.propTypes={story:c.shape({"hero-image-caption":c.string,headline:c.string}),linkedImage:c.string,template:c.string,isRightAlign:c.bool};var gr=function(t){var r=t.story,a=void 0===r?{}:r,n=t.element,o=t.template,i=void 0===o?"":o,l=t.opts,c=void 0===l?{}:l,s=t.css,m=void 0===s?{}:s;t.config,t.render;var u=Je(t,hr),d=n.text;if(!d)return null;var p=Xe(a,["linked-stories"],{}),h=Xe(n,["metadata","linked-story-id"]),v=Xe(p,[h,"url"]),_=Xe(p,[h,"hero-image-s3-key"],""),g=v&&v,y=Ht()||{},w=At(y.theme),E=c.title,k=void 0===E?"":E,x=m.textColor,C=k||"Also Read",T=""===i||"default"===i,q="imageRightAlign"===i,j=i?"alsoread-".concat(i):"alsoread-default";return e.createElement(f,b({"data-test-id":"also-read",href:g,"aria-label":"also-read"},u,{className:"arrow-component arr--also-read-element "+N(j,vr)+" "+(u&&u.className||"")}),!T&&e.createElement("div",{className:N("default-text ".concat(w),vr)},C),T&&e.createElement(_r,{story:a,linkedImage:_,template:i,isRightAlign:q}),e.createElement("div",{className:"also-read-m_content-wrapper__26AZX"},e.createElement("div",{className:"also-read-m_headline__VzF-c",style:x?{color:x}:{color:w},dangerouslySetInnerHTML:{__html:d}}),q&&e.createElement(_r,{story:a,linkedImage:_,template:i})))};gr.propTypes={template:c.string,story:c.shape({"linked-stories":c.object}),element:c.shape({text:c.string,metadata:c.shape({linkedStoryId:c.shape({url:c.string,"hero-image-s3-key":c.string})})}),opts:c.shape({title:c.string}),config:Ut,render:c.func,css:c.object};var yr=et(gr);function br(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var wr=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"}))))};function Er(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,a)}return r}wr.propTypes={width:c.object,height:c.object,iconColor:c.object};var kr=i((function(){return import("react-image-lightbox")})),xr=function(t){var r=t.imageSlug,n=void 0===r?"":r,i=t.template,l=t.element,c=void 0===l?{}:l,s=t.props,m=y((function(e){return Xe(e,["qt","config","cdn-image"])})),u=Gt(a(0),2),d=u[0],p=u[1],f=Gt(a(!1),2),h=f[0],v=f[1],_=Xe(global,["innerWidth"],0),g=[];n||(g=Xe(c,["story-elements"],[]).map((function(e){return"//".concat(m,"/").concat(e["image-s3-key"],"?w=").concat(_)})));var w=n?"onClick":"onClickHandler",E=g.length,k=n?{mainSrc:"//".concat(m,"/").concat(n,"?w=").concat(_)}:{mainSrc:g[d],nextSrc:g[(d+1)%E],prevSrc:g[(d+E-1)%E],onMoveNextRequest:function(){return function(e){p((d+1)%e)}(E)},onMovePrevRequest:function(){return function(e){p((d+e-1)%e)}(E)}},x=function(){return e.createElement("div",null,e.createElement(wr,null))};return e.createElement("div",null,e.createElement(i,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Er(Object(r),!0).forEach((function(t){br(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Er(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}(br({},w,(function(e){v(!0),p(e)})),s)),h?e.createElement(o,{fallback:e.createElement(x,null)},e.createElement(kr,b({wrapperClassName:"arr--image-lightbox",onCloseRequest:function(){p(0),v(!1)}},k))):null)};xr.propTypes={imageSlug:c.string,template:c.func,element:c.shape({"story-elements":c.array}),props:c.object};var Nr={"./caption-attribution.m.css":{viewports:'"../../../../assets/stylesheets/viewports.m.css"',mobile:"768px",caption:"caption-attribution-m_caption__BM5NN",wrapper:"caption-attribution-m_wrapper__oHBX7",dark:"caption-attribution-m_dark__uER8u",attribution:"caption-attribution-m_attribution__279W9",light:"caption-attribution-m_light__19OWp"}},Cr=function(t){var r=t.story,a=t.element;if(t.config,!r&&!a)return null;var n=Ht()||{},o=At(n.theme),i=r||{},l=i["hero-image-caption"],c=void 0===l?"":l,s=i["hero-image-attribution"],m=void 0===s?"":s,u=a||{},d=u.title,p=void 0===d?"":d,f=u["image-attribution"],h=c||p,v=m||(void 0===f?"":f),_=h?"wrapper":"";return e.createElement("div",{"data-test-id":"caption",className:"arr--caption-attribution "+N("caption ".concat(o),Nr)},e.createElement("span",{dangerouslySetInnerHTML:{__html:h}}),v&&e.createElement("span",{"data-test-id":"attribution",dangerouslySetInnerHTML:{__html:v},className:N("attribution ".concat(o," ").concat(_),Nr)}))};Cr.propTypes={config:c.shape({theme:c.string}),story:Rt,element:c.shape({"image-attribution":c.string,title:c.string})};var Tr=["element","opts","story","config","caption"],qr=function(t){var r=t.element,a=t.opts,n=void 0===a?{}:a,o=t.story,i=void 0===o?{}:o;t.config;var l=t.caption,s=void 0===l||l,m=Je(t,Tr);if(!r)return null;var u=Ht()||{},d=function(t){var a=t.onClick;return e.createElement(e.Fragment,null,e.createElement("figure",{className:"image-m_element__KVuzX",onClick:function(){return a()}},e.createElement(v,{slug:r["image-s3-key"],metadata:r["image-metadata"],alt:r.title,aspectRatio:null,defaultWidth:640,widths:n.imageWidths||[360,640,1200],imgParams:{auto:["format","compress"]}})))};return d.propTypes={onClick:c.func},e.createElement("div",b({className:"arrow-component arr--image-element"},m,{"data-test-id":"image-element"}),e.createElement(xr,{template:d,element:r,imageSlug:r["image-s3-key"],story:i}),s&&e.createElement(Cr,{element:r,config:u}))};qr.propTypes={element:c.shape({"image-s3-key":c.string,"image-metadata":c.object,"image-attribution":c.string,title:c.string}),caption:c.bool,opts:c.shape({imageWidths:c.array}),story:Rt,config:Ut};var jr=et(qr),Ir=["element","template","css","story","config","opts","render"],Or={"./question-answer.m.css":{viewports:'"../../../../../assets/stylesheets/viewports.m.css"',mobile:"768px","qa-withAuthorImage":"question-answer-m_qa-withAuthorImage__1JB3N","a-element":"question-answer-m_a-element__BTxfl","qa-default":"question-answer-m_qa-default__2fGK3","q-element":"question-answer-m_q-element__1ZA5d",dark:"question-answer-m_dark__O4Mnm",hidden:"question-answer-m_hidden__K0n4n",curveIcon:"question-answer-m_curveIcon__64641",edgeIcon:"question-answer-m_edgeIcon__3js6c",labelAttribution:"question-answer-m_labelAttribution__Rq-v3",light:"question-answer-m_light__3Iqv4",content:"question-answer-m_content__16Ng7"}},Sr=function(t){var r=t.element,a=t.template,n=t.css,o=void 0===n?{}:n;t.story,t.config;var i=t.opts,l=void 0===i?{}:i;t.render;var c=Je(t,Ir),s=Ht()||{},m=At(s.theme);if(!r)return null;var u=l.type,d=l.defaultIconType,p=l.isExternalLink,f=void 0===p||p,h=o.iconColor,v=function(e,t){switch(e){case"q-and-a":var r=Xe(t,["metadata"]);return{question:r.question,answer:r.answer,questionAttribution:Xe(t,["metadata","interviewer","avatar-url"]),answerAttribution:Xe(t,["metadata","interviewee","avatar-url"])};case"question":return{question:Xe(t,["text"]),questionAttribution:Xe(t,["metadata","interviewer","avatar-url"])};case"answer":return{answer:Xe(t,["text"]),answerAttribution:Xe(t,["metadata","interviewee","avatar-url"])}}}(u,r),_=v.question,g=v.answer,y=v.questionAttribution,w=v.answerAttribution,E=At(h),k=_&&(f&&Mt(_)||_),x=g&&(f&&Mt(g)||g),C="withAuthorImage"===a,T=C?"qa-withAuthorImage":"qa-default",q="curve"===d?"curveIcon":"edgeIcon",j=C?y&&e.createElement(e.Fragment,null,e.createElement("div",{className:"question-answer-m_labelAttribution__Rq-v3"},e.createElement("img",{src:y,loading:"lazy"})),e.createElement("span",{className:"question-answer-m_hidden__K0n4n"})):e.createElement("div",{"data-test-id":q,style:{backgroundColor:h},className:N("".concat(q," ").concat(E),Or)},"Q"),I=C?w&&e.createElement(e.Fragment,null,e.createElement("div",{className:"question-answer-m_labelAttribution__Rq-v3"},e.createElement("img",{src:w,loading:"lazy"})),e.createElement("span",{className:"question-answer-m_hidden__K0n4n"})):e.createElement("div",{"data-test-id":q,style:{backgroundColor:h},className:N("".concat(q," ").concat(E),Or)},"A");return e.createElement("div",b({"data-test-id":"question-answer"},c,{className:"arrow-component arr-custom-style arr--qa-element "+N(T,Or)+" "+(c&&c.className||"")}),"answer"!==u&&e.createElement("div",{className:"question-answer-m_q-element__1ZA5d","data-test-id":"question"},j,e.createElement("div",{dangerouslySetInnerHTML:{__html:k},className:N("content ".concat(m),Or)})),"question"!==u&&e.createElement("div",{className:"question-answer-m_a-element__BTxfl","data-test-id":"answer"},I,e.createElement("div",{dangerouslySetInnerHTML:{__html:x},className:N("content ".concat(m),Or)})))};Sr.propTypes={element:c.shape({metadata:c.shape({interviewer:c.shape({"avatar-url":c.string}),interviewee:c.shape({"avatar-url":c.string}),question:c.string,answer:c.string}),text:c.string}),opts:c.shape({type:c.string,defaultIconType:c.string,isExternalLink:c.bool}),template:c.string,css:c.object,config:Ut,story:Rt,render:c.func};var Lr=et(Sr),Ar=["element","template","opts","story","config"],Mr={"./image-gallery.m.css":{viewports:'"../../../../../assets/stylesheets/viewports.m.css"',mobile:"768px","image-gallery":"image-gallery-m_image-gallery__1Q7if",image:"image-gallery-m_image__3qwSJ","template-2":"image-gallery-m_template-2__2pjmE","left-images":"image-gallery-m_left-images__34gjv"}},Ur=function(t){var r=t.element,a=t.template,n=void 0===a?"":a;t.opts,t.story,t.config;var o=Je(t,Ar);if(!r)return null;var i=Lt("mobile"),l=r["story-elements"],s="template-2"===n&&l.length,m=s>6?l.slice(0,6):l,u=s>4?l.slice(0,4):l,d=i?u:m,p="template-2"===n?"template-2":"",f=function(){var t=s>6&&l.length-6,r=s>4&&l.length-4,a=i?r:t;return e.createElement("div",{className:"image-gallery-m_left-images__34gjv"},a)},h=function(t){var r=t.onClickHandler,a=d.map((function(t,a){return e.createElement("figure",{key:a,"data-text-id":"image-".concat(a),onClick:function(){return r&&r(a)},className:N("image ".concat(p),Mr)},e.createElement(v,{slug:t["image-s3-key"],metadata:t["image-metadata"],alt:t.title,aspectRatio:[1,1],defaultWidth:640,imgParams:{auto:["format","compress"]}}),d.length-1===a&&e.createElement(f,null))}));return e.createElement("div",b({className:" arrow-component arr--image-element image-gallery-m_image-gallery__1Q7if "+(o&&o.className||"")},o,{"data-test-id":"image-gallery"}),a)};return h.propTypes={onClickHandler:c.func},e.createElement(xr,{template:h,element:r})};Ur.propTypes={element:c.shape({"story-elements":c.array}),opts:c.shape({imageWidths:c.array}),story:Rt,config:Ut,template:c.string};var Rr=et(Ur),zr=["element","story","config"],Pr=function(t){var r=t.element;t.story,t.config;var a=Je(t,zr);return e.createElement("div",b({},a,{"data-test-id":"story-elements"}),e.createElement(_,{element:r}))},Hr=et(Pr);Pr.propTypes={element:c.object,story:Rt,config:Ut};var Br=["element","story","config","loadIframeOnClick"],Vr=function(t){var r=t.element;t.story,t.config;var a=t.loadIframeOnClick,n=void 0!==a&&a,o=Je(t,Br);return e.createElement("div",b({className:"video-m_container__MYuWI "+(o&&o.className||"")},o,{"data-test-id":"video"}),e.createElement(_,{element:r,loadIframeOnClick:n}))};Vr.propTypes={element:c.object,story:Rt,config:Ut,loadIframeOnClick:c.bool};var Fr=et(Vr),Dr=["element","template","css","story","config","render"],Zr={"./quote.m.css":{viewports:'"../../../../../assets/stylesheets/viewports.m.css"',mobile:"768px",quote:"quote-m_quote__13tTt",text:"quote-m_text__2hXSE","quote-borderNone":"quote-m_quote-borderNone__2EuoK","quote-borderTopSmall":"quote-m_quote-borderTopSmall__2DN-3","quote-borderLeft":"quote-m_quote-borderLeft__3QaAY",dark:"quote-m_dark__1migZ",light:"quote-m_light__30NnM",attribution:"quote-m_attribution__20Y6O",line:"quote-m_line__3gtoE"}},Gr=function(t){var r=t.element,a=t.template,n=void 0===a?"":a,o=t.css,i=void 0===o?{}:o;t.story,t.config,t.render;var l=Je(t,Dr),c=Ht()||{},s=At(c.theme),m=r.metadata,u=m.content,d=m.attribution;if(!u)return null;var p=i.borderColor,f="borderLeft"===n&&"4px solid ".concat(p),h=n?"quote-".concat(n):"quote";return e.createElement("div",b({"data-test-id":"quote"},l,{className:"arrow-component arr--quote-element "+N(h,Zr)+" "+(l&&l.className||"")}),"borderTopSmall"===n&&e.createElement("div",{className:"quote-m_line__3gtoE",style:p&&{backgroundColor:p}}),e.createElement("p",{style:p&&{borderLeft:f},dangerouslySetInnerHTML:{__html:u},className:N("text ".concat(s),Zr)}),e.createElement("p",{"data-test-id":"quote-attribution",className:N("attribution ".concat(s),Zr)},d))};Gr.propTypes={element:c.shape({metadata:c.shape({content:c.string,attribution:c.string})}),template:c.string,story:Rt,config:Ut,render:c.func,css:c.object};var Wr=et(Gr),Yr=["element","config","opts"],Qr={"./reference.m.css":{viewports:'"../../../../../assets/stylesheets/viewports.m.css"',mobile:"768px",tablet:"992px",wrapper:"reference-m_wrapper__1C4Ot",name:"reference-m_name__24IwG",description:"reference-m_description__2x3Io",dark:"reference-m_dark__3Zlnx",light:"reference-m_light__1B8Ud"}},Kr=function(t){var r=t.element;t.config;var a=t.opts,n=void 0===a?{}:a,o=Je(t,Yr);if(!r)return null;var i=Ht()||{},l=At(i.theme),c=r["story-elements"]&&r["story-elements"].map((function(e){return e.metadata})),s=n.showHeadline,m=void 0===s||s,u=n.headlineText;return e.createElement("div",b({className:"arrow-component arr--reference-element"},o),c&&c.map((function(t,r){var a=t.name,n=void 0===a?"":a,o=t.description,i=void 0===o?"":o,c=t.url;return e.createElement("div",{key:r,className:N("wrapper ".concat(l),Qr)},e.createElement(f,{href:c,"aria-label":"reference-headline"},m&&e.createElement("div",{className:"reference-m_name__24IwG","data-test-id":"ref-headline"},u||n),e.createElement("div",{className:"reference-m_description__2x3Io"},i)))})))};Kr.propTypes={element:c.shape({"story-elements":c.arrayOf(c.shape({metadata:c.shape({name:c.string,description:c.string,url:c.string})}))}),opts:c.shape({hideHeadline:c.bool}),config:Ut};var Xr=et(Kr),Jr=["element","render"],$r={"./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"}},ea=function(t){var r=t.element,a=void 0===r?{}:r;t.render;var n=Je(t,Jr),o=a["file-name"],i=a.url,l=a["content-type"];if(!l||!i)return null;var c="application/pdf"===l,s=Ht()||{},m=At(s.theme),u=o||(c?"Attached PDF":"Attached DOC");return e.createElement("div",b({"data-test-id":"attachment"},n,{className:"arrow-component arr--attachment-element "+N(m,$r)+" "+(n&&n.className||"")}),e.createElement("div",{className:"attachment-m_headline__kP7Hs"},"Attachment"),e.createElement("div",{className:"attachment-m_wrapper__3gMwN"},c?e.createElement("div",{"data-test-id":"pdf",className:"attachment-m_pdf__3i_bR"},"PDF"):e.createElement("div",{"data-test-id":"doc",className:"attachment-m_doc__6vUVo attachment-m_pdf__3i_bR"},"DOC"),e.createElement("div",{className:"attachment-m_content-wrapper__3Yu0B"},e.createElement("div",{className:"attachment-m_file-name__1LU9q",dangerouslySetInnerHTML:{__html:u}}),e.createElement(f,{className:"attachment-m_button-wrapper__2fajK",href:i,target:"_blank",rel:"noopener noreferrer",download:!0,"aria-label":"button"},c?"Preview":"Download"))))};ea.propTypes={element:c.shape({url:c.string,fileName:c.string,contentType:c.string}),render:c.func};var ta=et(ea),ra=function(t){var r=t.color,a=void 0===r?"#1CB7EB":r;return e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},e.createElement("path",{fill:a,d:"M19.137 8.594c.023.094.035.246.035.457 0 1.687-.41 3.316-1.23 4.887-.844 1.664-2.028 2.988-3.551 3.972-1.664 1.102-3.575 1.652-5.73 1.652-2.063 0-3.95-.55-5.661-1.652.258.024.55.035.879.035 1.71 0 3.246-.527 4.605-1.582-.82 0-1.54-.24-2.162-.72a3.673 3.673 0 01-1.283-1.811c.234.023.457.035.668.035.328 0 .656-.035.984-.105a3.724 3.724 0 01-2.109-1.301 3.542 3.542 0 01-.844-2.32v-.07a3.493 3.493 0 001.653.492 4.097 4.097 0 01-1.196-1.336 3.557 3.557 0 01-.457-1.776c0-.644.176-1.26.528-1.845a10.188 10.188 0 003.357 2.742 10.222 10.222 0 004.236 1.125 5.122 5.122 0 01-.07-.844c0-.656.164-1.272.492-1.846a3.615 3.615 0 011.336-1.353 3.568 3.568 0 011.828-.492c.54 0 1.037.105 1.494.316.457.21.862.492 1.213.844a7.479 7.479 0 002.356-.88c-.281.868-.82 1.548-1.617 2.04A7.926 7.926 0 0021 6.66a8.132 8.132 0 01-1.863 1.934z"}))};ra.propTypes={color:c.string};var aa=function(t){var r=t.color,a=void 0===r?"#3B5998":r;return e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},e.createElement("path",{fill:a,d:"M9.906 20v-7.156H7.5V10h2.406V7.75c0-1.187.334-2.11 1-2.766.667-.656 1.552-.984 2.656-.984.896 0 1.625.042 2.188.125v2.531h-1.5c-.563 0-.948.125-1.156.375-.167.209-.25.542-.25 1V10H15.5l-.375 2.844h-2.281V20H9.906z"}))};aa.propTypes={color:c.string};var na=function(t){var r=t.color,a=void 0===r?"#0077B5":r;return e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},e.createElement("path",{fill:a,d:"M6.71 19H3.26V7.904h3.45V19zM5.005 6.383a1.926 1.926 0 01-1.41-.594A1.923 1.923 0 013 4.38c0-.544.198-1.014.594-1.41a1.926 1.926 0 011.41-.594c.544 0 1.014.198 1.41.594.396.396.594.866.594 1.41 0 .544-.198 1.014-.594 1.41a1.926 1.926 0 01-1.41.594zM19.625 19h-3.451v-5.418c0-.89-.074-1.534-.223-1.93-.272-.668-.804-1.002-1.596-1.002-.791 0-1.348.297-1.67.891-.247.445-.37 1.1-.37 1.967V19H8.9V7.904h3.303v1.522h.037c.248-.495.643-.903 1.188-1.225.593-.396 1.286-.594 2.078-.594 1.608 0 2.734.508 3.377 1.522.495.816.742 2.078.742 3.785V19z"}))};na.propTypes={color:c.string};var oa=function(t){var r=t.color,a=void 0===r?"#4AC959":r;return e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},e.createElement("path",{fill:a,fillRule:"evenodd",d:"M18.404 5.505a9.457 9.457 0 012.02 2.96 8.587 8.587 0 01.715 3.449 8.665 8.665 0 01-1.245 4.53 9.282 9.282 0 01-3.347 3.307 8.894 8.894 0 01-4.552 1.225 8.835 8.835 0 01-4.327-1.102l-4.817 1.265 1.307-4.694a8.775 8.775 0 01-1.225-4.531 8.77 8.77 0 011.225-4.531 9.17 9.17 0 013.306-3.307 8.781 8.781 0 014.531-1.224c1.198 0 2.347.23 3.45.693a9.515 9.515 0 012.959 1.96zm-6.409 13.96c1.36 0 2.626-.34 3.797-1.02a7.75 7.75 0 002.796-2.756 7.202 7.202 0 001.04-3.775c0-.98-.203-1.933-.612-2.858a8.088 8.088 0 00-1.694-2.47 7.565 7.565 0 00-2.449-1.653 7.405 7.405 0 00-2.878-.571c-1.36 0-2.62.34-3.776 1.02a7.646 7.646 0 00-2.755 2.756 7.316 7.316 0 00-1.02 3.776c0 1.442.394 2.775 1.183 4l.164.286-.776 2.775 2.857-.734.286.163a7.275 7.275 0 003.837 1.061zm4.123-5.674l.123.082c.19.082.299.15.326.204.027.054.034.19.02.408a2.11 2.11 0 01-.163.674c-.095.231-.313.462-.653.694-.34.231-.633.36-.878.388-.38.054-.748.054-1.102 0-.408-.082-.952-.273-1.632-.572-1.388-.599-2.654-1.714-3.797-3.347l-.081-.082c-.6-.843-.898-1.62-.898-2.327 0-.707.244-1.32.734-1.837l.041-.04c.19-.19.395-.286.612-.286h.49c.11 0 .198.02.266.061.068.041.129.143.183.306l.694 1.674c.082.163.095.3.041.408a2.832 2.832 0 01-.53.735.917.917 0 00-.205.265c-.027.068 0 .143.082.225.38.707.83 1.265 1.347 1.673.381.3.952.64 1.714 1.02.218.11.381.096.49-.04.354-.408.599-.707.735-.898.054-.109.123-.163.204-.163.082 0 .177.013.286.04.218.082.735.327 1.551.735z"}))};oa.propTypes={color:c.string};var ia=function(t){var r=t.fbUrl,a=t.twitterUrl,n=t.linkedinUrl,o=t.whatsappUrl,i=t.iconColor,l=t.iconType,c=function(t,r){switch(r){case"plain-color-svg":return{facebook:e.createElement(aa,{key:r}),twitter:e.createElement(ra,{key:r}),linkedin:e.createElement(na,{key:r}),whatsapp:e.createElement(oa,{key:r})};default:return{facebook:e.createElement(aa,{color:t,key:r}),twitter:e.createElement(ra,{color:t,key:r}),linkedin:e.createElement(na,{color:t,key:r}),whatsapp:e.createElement(oa,{color:t,key:r})}}}(i,void 0===l?"plain-svg":l);return[{name:"facebook",url:r,icon:c.facebook,text:"Facebook",bgColor:"#4e71a8",alt:"fb icon"},{name:"twitter",url:a,icon:c.twitter,text:"Twitter",bgColor:"#1db7eb",alt:"twitter icon"},{name:"linkedin",url:n,icon:c.linkedin,text:"LinkedIn",bgColor:"#0077B5",alt:"linkedin icon"},{name:"whatsapp",url:o,icon:c.whatsapp,text:"Whatsapp",bgColor:"#25d366",alt:"whatsapp share"}]},la=function(t){var r=t.color,a=void 0===r?"#333":r;return e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},e.createElement("g",{fill:"none",stroke:a,strokeLinecap:"square",strokeWidth:"2"},e.createElement("path",{d:"M16.95 6.914l-9.9 9.9M16.95 17.107l-9.9-9.9"})))};la.propTypes={color:c.string};var ca={"./social-share-popup.m.css":{"share-popup-wrapper":"social-share-popup-m_share-popup-wrapper__GEJqD",light:"social-share-popup-m_light__gQmxf",dark:"social-share-popup-m_dark__26Igp","share-popup":"social-share-popup-m_share-popup__QRt3l social-share-popup-m_share-popup-wrapper__GEJqD","social-wrapper":"social-share-popup-m_social-wrapper__1lPzr","social-icon-wrapper":"social-share-popup-m_social-icon-wrapper__36jyV",wrapper:"social-share-popup-m_wrapper__3Ytce","top-bar":"social-share-popup-m_top-bar__174Um","share-text":"social-share-popup-m_share-text__19E-F",close:"social-share-popup-m_close__3k-Hj","social-icon":"social-share-popup-m_social-icon__2a4nT","social-text":"social-share-popup-m_social-text__1QPXb"}},sa=function(t){var r=t.fbUrl,a=void 0===r?"":r,n=t.twitterUrl,o=void 0===n?"":n,i=t.linkedinUrl,l=void 0===i?"":i,c=t.whatsappUrl,s=void 0===c?"":c,m=t.theme,u=t.closePopup,d=void 0===u?"":u,p=t.iconType,f=void 0===p?"plain-color-svg":p,h=At(m),v="dark"===h?"#000000":"#ffffff",_=ia({fbUrl:a,twitterUrl:o,linkedinUrl:l,whatsappUrl:s,iconColor:v,iconType:f});return e.createElement("div",{className:N("share-popup-wrapper ".concat(h),ca)},e.createElement("div",{className:"social-share-popup-m_share-popup__QRt3l social-share-popup-m_share-popup-wrapper__GEJqD"},e.createElement("div",{className:"social-share-popup-m_top-bar__174Um"},e.createElement("span",{className:"social-share-popup-m_share-text__19E-F"},"Share via"),e.createElement("span",{className:"social-share-popup-m_close__3k-Hj",onClick:d},e.createElement(la,{color:v}))),e.createElement("ul",{className:"social-share-popup-m_wrapper__3Ytce"},_.map((function(t,r){var a=t.url,n=t.icon,o=t.text,i=t.bgColor;return t.alt,function(t,r,a,n){return t?e.createElement("li",{className:"social-share-popup-m_social-icon-wrapper__36jyV","data-testid":a,key:"popup-item-".concat(n)},e.createElement("a",{href:t,target:"_blank",rel:"noopener noreferrer",className:"social-share-popup-m_social-wrapper__1lPzr","aria-label":"social-icon"},r,e.createElement("span",{className:"social-share-popup-m_social-text__1QPXb"},a))):null}(a,n,o,i)})))))};sa.propTypes={fbUrl:c.string,twitterUrl:c.string,linkedinUrl:c.string,whatsappUrl:c.string,grey:c.string,primaryColor:c.string,closePopup:c.bool,theme:c.string,iconType:c.string};var ma=function(t){var r=t.color,a=void 0===r?"#0D0D0D":r;return e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},e.createElement("path",{fill:a,fillRule:"evenodd",d:"M15.843 3.189c-1.478 0-2.689 1.239-2.689 2.75 0 .293.046.58.13.846L8.844 9.31a2.638 2.638 0 00-1.687-.621c-1.477 0-2.688 1.238-2.688 2.75 0 1.51 1.21 2.75 2.688 2.75.638 0 1.224-.231 1.687-.615l4.446 2.525a2.778 2.778 0 00-.136.84c0 1.51 1.211 2.75 2.689 2.75 1.477 0 2.688-1.24 2.688-2.75 0-1.512-1.21-2.75-2.688-2.75-.742 0-1.419.317-1.907.82l-4.323-2.46a2.763 2.763 0 000-2.221l4.317-2.459c.488.506 1.168.82 1.913.82 1.477 0 2.688-1.239 2.688-2.75s-1.21-2.75-2.688-2.75z"}))};ma.propTypes={color:c.string};var ua=function(e,t,r){var a=-1,n=e.length;t<0&&(t=-t>n?0:n+t),(r=r>n?n:r)<0&&(r+=n),n=t>r?0:r-t>>>0,t>>>=0;for(var o=Array(n);++a<n;)o[a]=e[a+t];return o};var da=function(e,t,r){var a=e.length;return r=void 0===r?a:r,!t&&r>=a?e:ua(e,t,r)},pa=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");var fa=function(e){return pa.test(e)};var ha=function(e){return e.split("")},va="[\\ud800-\\udfff]",_a="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",ga="\\ud83c[\\udffb-\\udfff]",ya="[^\\ud800-\\udfff]",ba="(?:\\ud83c[\\udde6-\\uddff]){2}",wa="[\\ud800-\\udbff][\\udc00-\\udfff]",Ea="(?:"+_a+"|"+ga+")"+"?",ka="[\\ufe0e\\ufe0f]?"+Ea+("(?:\\u200d(?:"+[ya,ba,wa].join("|")+")[\\ufe0e\\ufe0f]?"+Ea+")*"),xa="(?:"+[ya+_a+"?",_a,ba,wa,va].join("|")+")",Na=RegExp(ga+"(?="+ga+")|"+xa+ka,"g");var Ca=function(e){return e.match(Na)||[]};var Ta=function(e){return fa(e)?Ca(e):ha(e)};var qa=function(e){return function(t){t=We(t);var r=fa(t)?Ta(t):void 0,a=r?r[0]:t.charAt(0),n=r?da(r,1).join(""):t.slice(1);return a[e]()+n}}("toUpperCase");var ja=function(e){return qa(We(e).toLowerCase())},Ia=jt((function(e,t,r){return t=t.toLowerCase(),e+(r?ja(t):t)})),Oa={"./social-share-template.m.css":{"desktop-view":"social-share-template-m_desktop-view__3TmkO","tablet-view":"social-share-template-m_tablet-view__kATzi",wrapper:"social-share-template-m_wrapper__1wXin",horizontal:"social-share-template-m_horizontal__1c9Kt",vertical:"social-share-template-m_vertical__VU5JY",light:"social-share-template-m_light__3-V_k",dark:"social-share-template-m_dark__1lmTM",icon:"social-share-template-m_icon__1Mnu5",open:"social-share-template-m_open__3xObA","popup-wrapper":"social-share-template-m_popup-wrapper__1Zv3e","popup-open":"social-share-template-m_popup-open__21UNo",overlay:"social-share-template-m_overlay__1nBp-","tablet-view-popup":"social-share-template-m_tablet-view-popup__1hXU9"}},Sa=function(t){var r=t.name,a=t.url,n=t.icon,o=t.dataTestId;return a?e.createElement("li",{"data-testid":o,className:"social-share-template-m_icon__1Mnu5"},e.createElement("a",{href:a,target:"_blank",rel:"noopener noreferrer","data-share-icon":r,"aria-label":"share-icon"},n)):null};Sa.propTypes={name:c.string,url:c.string,icon:c.node,dataTestId:c.string};var La=function(t){var r=t.fbUrl,o=void 0===r?"":r,i=t.twitterUrl,l=void 0===i?"":i,c=t.linkedinUrl,s=void 0===c?"":c,m=t.whatsappUrl,u=void 0===m?"":m,d=t.vertical,p=void 0!==d&&d,f=t.theme,h=t.iconType,v=void 0===h?"plain-color-svg":h,_=t.open,g=void 0!==_&&_;if(!(o||l||s||u))return null;var y=At(f),w="dark"===y?"#000000":"#ffffff",E=ia({fbUrl:o,twitterUrl:l,linkedinUrl:s,whatsappUrl:u,iconColor:w,iconType:v}),k=Gt(a(g),2),x=k[0],C=k[1],T=p?"vertical":"horizontal";n((function(){return C(g)}),[g]);var q=function(){return e.createElement("li",{className:"social-share-template-m_icon__1Mnu5",key:"horizontal-0"},e.createElement("div",{onClick:j},function(t,r){return t?e.createElement(la,{color:r}):e.createElement(ma,{color:r})}(x,w)))},j=function(){C(!x)},I=!x&&p?"tablet-view-popup":"";return e.createElement("div",{"data-test-id":T,className:"arr--share "+N("".concat(y," ").concat(T," ").concat(I),Oa)},e.createElement("div",{className:"social-share-template-m_desktop-view__3TmkO"},e.createElement("ul",{"data-test-id":Ia(v),className:"desktop-share-wrapper "+N("wrapper ".concat(x?"open":""),Oa)},q(),E.map((function(t,r){return e.createElement(Sa,b({},t,{key:t.name,dataTestId:"card-share-".concat(r)}))})))),e.createElement("div",{className:"social-share-template-m_tablet-view__kATzi"},!x&&e.createElement("ul",{className:N("wrapper ".concat(x?"open":""),Oa)},q()),x&&e.createElement(e.Fragment,null,e.createElement("div",{className:"social-share-template-m_overlay__1nBp-",onClick:j},e.createElement("div",{className:"arr--popup "+N("popup-wrapper ".concat(x?"popup-open":""),Oa)},e.createElement(sa,{fbUrl:o,twitterUrl:l,linkedinUrl:s,whatsappUrl:u,iconType:v,theme:f,closePopup:function(){C(!1)}}))))))};La.propTypes={fbUrl:c.string,twitterUrl:c.string,linkedinUrl:c.string,whatsappUrl:c.string,vertical:c.bool,theme:c.string,iconType:c.string,open:c.boolean};var Aa=function(t){var r=t.color,a=void 0===r?"#333":r;return e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 10 16"},e.createElement("g",{fill:"none",fillRule:"nonzero"},e.createElement("path",{d:"M17 20H-7V-4h24z",opacity:".384"}),e.createElement("path",{stroke:a,d:"M9 16L1 8l8-8"})))};Aa.propTypes={color:c.string};var Ma=function(t){var r=t.color,a=void 0===r?"#333":r;return e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 10 16"},e.createElement("g",{fill:"none",fillRule:"nonzero"},e.createElement("path",{d:"M-7-4h24v24H-7z",opacity:".384"}),e.createElement("path",{stroke:a,d:"M1 0l8 8-8 8"})))};Ma.propTypes={color:c.string};var Ua={"./slider-arrow.m.css":{arrow:"slider-arrow-m_arrow__1eBUU","left-arrow-dark":"slider-arrow-m_left-arrow-dark__3mTJS","right-arrow-dark":"slider-arrow-m_right-arrow-dark__3hWZe","left-arrow-light":"slider-arrow-m_left-arrow-light__2ipUK","right-arrow-light":"slider-arrow-m_right-arrow-light__3omMU","left-arrow-ltr":"slider-arrow-m_left-arrow-ltr__1ngNF","right-arrow-ltr":"slider-arrow-m_right-arrow-ltr__2svWX","left-arrow-rtl":"slider-arrow-m_left-arrow-rtl__2ynyn","right-arrow-rtl":"slider-arrow-m_right-arrow-rtl__1GjPz"}},Ra=function(t){var r=t.selectedIndex,a=t.previousClick,n=t.nextClick,o=t.noOfItems,i=t.perView,l=t.languageDirection;if(o<1)return null;var c=Ht()||{},s=At(c.theme),m="rtl"===l?"left-arrow-rtl":"left-arrow-ltr",u="rtl"===l?"right-arrow-rtl":"right-arrow-ltr";return e.createElement(e.Fragment,null,0!==r?e.createElement("button",{onClick:a,className:("left-arrow ".concat(m)?"left-arrow ".concat(m)+" ":"")+N("arrow left-arrow-".concat(s," ").concat(m),Ua)},e.createElement(Aa,{color:"dark"===s?"#fff":"#333"})):null,r<o-1&&!(r>=o-i)?e.createElement("button",{onClick:n,className:("right-arrow ".concat(u)?"right-arrow ".concat(u)+" ":"")+N("arrow right-arrow-".concat(s," ").concat(u),Ua)},e.createElement(Ma,{color:"dark"===s?"#fff":"#333"})):null)};Ra.propTypes={noOfItems:s,perView:s,slideIndicator:m,previousClick:u,nextClick:u,selectedIndex:s,languageDirection:m};var za={"./slider-indicator.m.css":{indicators:"slider-indicator-m_indicators__3MNXc",indicator:"slider-indicator-m_indicator__gTv3x","indicator-button":"slider-indicator-m_indicator-button__1e82r","indicator-dots":"slider-indicator-m_indicator-dots__2TR3H","indicator-dots-dark":"slider-indicator-m_indicator-dots-dark__sGrev","indicator-dots-light":"slider-indicator-m_indicator-dots-light__2nPn-","indicator-dashes":"slider-indicator-m_indicator-dashes__DyNCE","indicator-dashes-dark":"slider-indicator-m_indicator-dashes-dark__VrqJI","indicator-dashes-light":"slider-indicator-m_indicator-dashes-light__34ESx"}},Pa=function(t){var r=t.indicatorItems,a=t.indicatorClick,n=t.selectedIndex,o=t.indicatorType;if(r.length<1)return null;var i=Ht()||{},l=At(i.theme);return e.createElement("ul",{className:"slider-indicators slider-indicator-m_indicators__3MNXc"},r.map((function(t,r){return e.createElement("li",{key:"slider-".concat(r),className:"indicator slider-indicator-m_indicator__gTv3x",onClick:function(e){return a(e,r)}},e.createElement("button",{"aria-pressed":n===r?"true":"false",className:("indicator-button indicator-".concat(o)?"indicator-button indicator-".concat(o)+" ":"")+N("indicator-button indicator-".concat(o," indicator-").concat(o,"-").concat(l),za)}))})))};Pa.propTypes={indicatorItems:d,perView:s,indicatorType:m,indicatorClick:u,selectedIndex:s};var Ha=function(e,t,r,a){var n,o,i,l,c=Math.floor(r.current.scrollWidth*(e/a)),s="rtl"===t?-1*c:c;n=r.current,o=s,i=!0,n.scrollTo((br(l={},i?"left":"top",o),br(l,"behavior","smooth"),l))},Ba=function(t){var r=t.children,o=t.isArrow,i=t.interval,c=t.isInfinite,s=t.pauseOnHover,m=t.perView,u=t.slideIndicator,d=Gt(a(0),2),p=d[0],f=d[1],h=Gt(a(!1),2),v=h[0],_=h[1],g=y((function(e){return Xe(e,["qt","config","language","direction"],"ltr")})),b=r?r.length:0,w=l(null),E=r.length-(m-1),k=r.slice(0,E);n((function(){if(c&&!v){var e=setInterval((function(){x()}),i);return function(){clearInterval(e)}}}),[c,v]);var x=function(){f((function(e){var t=e===b-m?0:e+1;return Ha(t,g,w,b),t}))},N=function(){s&&_(!v)};return e.createElement("div",{className:"scroll-snap-container"},e.createElement("div",{className:"scroll-snap-wrapper scroll-snap-m_wrapper__1Rz9v",onMouseEnter:N,onMouseLeave:N},e.createElement("div",{ref:w,className:"scroll-snap-carousel scroll-snap-m_carousel__2m3cg"},r),o&&e.createElement(Ra,{noOfItems:b,perView:m,previousClick:function(e){e.preventDefault(),e.stopPropagation();var t=p-1;f(t),Ha(t,g,w,b)},nextClick:function(e){if(e.preventDefault(),e.stopPropagation(),p<b){var t=p+1;f(t),Ha(t,g,w,b)}},selectedIndex:p,languageDirection:g})),r.length>m&&"none"!==u&&e.createElement(Pa,{indicatorItems:k,indicatorClick:function(e,t){e.preventDefault(),e.stopPropagation(),f(t),Ha(t,g,w,b)},selectedIndex:p,indicatorType:u}))};Ba.defaultProps={isArrow:!0,isInfinite:!1,interval:4e3,pauseOnHover:!0,perView:1,slideIndicator:"dots"},Ba.propTypes={children:d.isRequired,isArrow:p,isInfinite:p,interval:s,pauseOnHover:p,perView:s,slideIndicator:m};var Va=function(t){if(!t.element)return null;var r=function(r){var a=r.onClickHandler,n=Xe(t,["element","story-elements"],[]);return e.createElement("div",{className:"arr--image-slideshow-element image-slideshow-m_slideshow__3jRFX","data-test-id":"image-slideshow"},e.createElement(Ba,{slideIndicator:"none"},n.map((function(t,r){return function(t,r,a){var n=t.id,o=t["image-s3-key"],i=t.metadata,l=t.title;return e.createElement("div",{onClick:function(){return a(r)},className:"image-slideshow-m_slide__3URCC",key:n},e.createElement("figure",{key:n,className:"image-slideshow-m_image-container__2VTEK"},e.createElement(h,{margin:"0px"},e.createElement(v,{slug:o,metadata:i,"aspect-ratio":[16,9],defaultWidth:480,widths:[250,480,640],imgParams:{auto:["format","compress"]},className:"image-slideshow-m_image__1p1fO",alt:l}))),e.createElement("p",{className:"image-slideshow-m_caption__mWpmc"},l))}(t,r,a)}))))};return r.propTypes={onClickHandler:c.func},e.createElement(xr,{template:r,element:t.element})};Va.propTypes={element:c.shape({"story-elements":c.array}),story:Rt};var Fa=et(Va),Da={"./story-element-card.m.css":{"element-container":"story-element-card-m_element-container__1ZeJL","live-blog":"story-element-card-m_live-blog__JSpmI","image-share":"story-element-card-m_image-share__2V7dB","story-card":"story-element-card-m_story-card__H2VYl",table:"story-element-card-m_table__34F2c",dark:"story-element-card-m_dark__1AX15",light:"story-element-card-m_light__3T2uA"}},Za=function(e){return e.subtype||e.type||""},Ga=function(t,r){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=arguments.length>3?arguments[3]:void 0,o=arguments.length>4?arguments[4]:void 0,i=arguments.length>5?arguments[5]:void 0,l=arguments.length>6?arguments[6]:void 0,c=a.text,s=void 0===c?{}:c,m=a.summary,u=void 0===m?{}:m,d=a.blurb,p=void 0===d?{}:d,f=a.blockquote,h=void 0===f?{}:f,v=a.quote,_=void 0===v?{}:v,g=a["also-read"],y=void 0===g?{}:g,w=a["q-and-a"],E=void 0===w?{}:w,k=a.question,x=void 0===k?{}:k,N=a.answer,C=void 0===N?{}:N,T=a.references,q=void 0===T?{}:T,j=Za(r);"image-gallery"===j&&(j=r.metadata.type);var I=Xe(r,["id"]);switch(j){case"ad":return e.createElement(n,b({},r,{id:"ad-".concat(i,"_").concat(l)}));case"widget":return e.createElement(o,{widgetCode:r.config.customCode,id:"widget-".concat(i,"_").concat(l)});case"text":var O=s.css,S=(O=void 0===O?{}:O).textColor,L=void 0===S?"#000":S,A=O.hyperlinkColor,M=void 0===A?"#2f81cd":A;return e.createElement(Dt,{element:r,css:{textColor:L,hyperlinkColor:M}});case"summary":var U=u.template,R=void 0===U?"":U,z=u.css,P=(z=void 0===z?{}:z).headerBgColor,H=void 0===P?"":P,B=u.opts,V=(B=void 0===B?{}:B).headline,F=void 0===V?"":V,D=B.hideHeadline,Z=void 0!==D&&D;return e.createElement(er,{element:r,template:R,opts:{headline:F||"Summary",hideHeadline:Z},css:{headerBgColor:H||""}});case"blurb":var G=p.template,W=void 0===G?"default":G,Y=p.css,Q=(Y=void 0===Y?{}:Y).borderColor,K=void 0===Q?"#2f81cd":Q;return e.createElement(Kt,{element:r,template:W,css:{borderColor:K}});case"blockquote":var X=h.template,J=void 0===X?"default":X,$=h.css,ee=($=void 0===$?{}:$).iconType,te=void 0===ee?"edgeIcon":ee,re=$.blockQuoteColor,ae=void 0===re?"#2f81cd":re,ne=$.backgroundShade,oe=void 0===ne?"":ne;return e.createElement(lr,{element:r,template:J,css:{iconType:te,blockQuoteColor:ae,backgroundShade:oe}});case"quote":var ie=_.template,le=void 0===ie?"borderNone":ie,ce=_.css,se=(ce=void 0===ce?{}:ce).borderColor,me=void 0===se?"#2f81cd":se;return e.createElement(Wr,{element:r,template:le,css:{borderColor:me}});case"bigfact":return e.createElement(ur,{element:r});case"also-read":var ue=y.template,de=void 0===ue?"default":ue,pe=y.css,fe=(pe=void 0===pe?{}:pe).textColor,he=void 0===fe?"#000":fe,ve=y.opts,_e=(ve=void 0===ve?{}:ve).title,ge=void 0===_e?"":_e;return e.createElement(yr,{story:t,element:r,template:de,css:{textColor:he},opts:{title:ge}});case"image":return e.createElement(jr,{element:r});case"q-and-a":var ye=E.template,be=void 0===ye?"default":ye,we=E.css,Ee=(we=void 0===we?{}:we).iconColor,ke=void 0===Ee?"":Ee,xe=E.opts,Ne=(xe=void 0===xe?{}:xe).defaultIconType,Ce=void 0===Ne?"edge":Ne;return e.createElement(Lr,{element:r,opts:{type:"q-and-a",defaultIconType:Ce},template:be,css:{iconColor:ke}});case"question":var Te=x.template,qe=void 0===Te?"default":Te,je=x.css,Ie=(je=void 0===je?{}:je).questionIconColor,Oe=void 0===Ie?"":Ie,Se=x.opts,Le=(Se=void 0===Se?{}:Se).defaultQuestionIconType,Ae=void 0===Le?"edge":Le;return e.createElement(Lr,{element:r,opts:{type:"question",defaultIconType:Ae},template:qe,css:{iconColor:Oe}});case"answer":var Me=C.template,Ue=void 0===Me?"default":Me,Re=C.css,ze=(Re=void 0===Re?{}:Re).answerIconColor,Pe=void 0===ze?"":ze,He=C.opts,Be=(He=void 0===He?{}:He).defaultAnswerIconType,Ve=void 0===Be?"edge":Be;return e.createElement(Lr,{element:r,opts:{type:"answer",defaultIconType:Ve},template:Ue,css:{iconColor:Pe}});case"gallery":return e.createElement("div",{className:"content-style",id:"image-gallery-".concat(I)},e.createElement(Rr,{element:r}));case"slideshow":return e.createElement("div",{className:"content-style",id:"image-slideshow-".concat(I)},e.createElement(Fa,{element:r}));case"youtube-video":case"dailymotion-video":return e.createElement("div",{className:"content-style",id:"video-".concat(I)},e.createElement(Fr,{element:r,story:t,loadIframeOnClick:!0}));case"attachment":return e.createElement(ta,{element:r});case"tweet":case"jsembed":return e.createElement("div",{className:"content-style",id:"jsembed-".concat(I)},e.createElement(Hr,{element:r}));case"references":var Fe=q.opts,De=(Fe=void 0===Fe?{}:Fe).showHeadline,Ze=void 0===De||De,Ge=Fe.headlineText,We=void 0===Ge?"":Ge;return e.createElement(Xr,{element:r,opts:{showHeadline:Ze,headlineText:We}});default:return e.createElement("div",{className:"content-style",id:"element-".concat(I)},e.createElement(Hr,{element:r,story:t}))}},Wa=function(t){var r=t.imageElement,a=t.story;t.children;var n=t.config,o=t.card;return e.createElement(e.Fragment,null,e.createElement("div",{style:{backgroundColor:n.theme}},e.createElement(jr,{element:r,caption:!1}),e.createElement("div",{className:"story-element-card-m_image-share__2V7dB"},e.createElement(Cr,{element:r,config:n}),e.createElement(g,{template:La,title:a.headline,theme:n.theme,fullUrl:encodeURI("".concat(Xe(a,["url"],""),"?cardId=").concat(Xe(o,["id"],-1)))}))))};Wa.propTypes={story:c.object,imageElement:c.object,config:c.object,children:c.node,card:c.shape({id:c.string})};var Ya=function(t){var r=t.story,a=t.card,n=t.heroVideoElementId,o=void 0===n?-1:n,i=t.config,l=t.isLive,c=t.theme,s=t.adComponent,m=t.widgetComp,u=At(c),d=l?"live-blog":"",p=!0;return e.createElement("div",{className:"arr--story-page-card-wrapper"},Xe(a,["story-elements"],[]).map((function(t,n){if(t.id===o)return!1;t.subtype&&"facebook-post"===t.subtype&&p&&(zt(),p=!1);var l=t&&"table"===t.subtype?"table":"",c=Xe(a,["id"],"");return e.createElement("div",{key:t.id,className:"arr--element-container "+N("element-container ".concat(d," ").concat(l," ").concat(u),Da)},Ga(r,t,i,s,m,n,c))})))};Ya.propTypes={story:c.object,card:c.array,heroVideoElementId:c.number,config:c.object,isLive:c.bool,theme:c.string,adComponent:c.func,widgetComp:c.func};var Qa=function(t){var r=t.card,a=void 0===r?{}:r,n=t.config,o=t.story,i=t.adComponent,l=t.widgetComp,c=!0;return e.createElement("div",{className:"story-element-card-m_story-card__H2VYl"},Xe(a,["story-elements"],[]).map((function(t,r){var s=Xe(a,["id"],"");return"image"===t.type?e.createElement(Wa,{imageElement:t,story:o,config:n,card:a}):(t.subtype&&"facebook-post"===t.subtype&&c&&(zt(),c=!1),e.createElement("div",{className:"story-element-card-m_element-container__1ZeJL",key:r},Ga(o,t,n,i,l,r,s)))})))};Qa.propTypes={story:c.object,card:c.object,config:c.object,adComponent:c.func,widgetComp:c.func};var Ka=function(t){var r=t.id,a=void 0===r?"":r,n=t.element,o=void 0===n?{}:n,i=t.AdComponent,l=t.WidgetComp;switch(o.type){case"ad":return e.createElement(i,b({},o,{id:"ad-after-story-".concat(a)}));case"widget":return e.createElement(l,{widgetCode:o.config.customCode,id:"widget-after-story-".concat(a)});default:return null}};Ka.propTypes={id:c.string,element:c.object,AdComponent:c.func,WidgetComp:c.func};export{Qa as PhotoStoryElement,Ka as SlotAfterStory,Ya as StoryElementCard};
|