@quintype/arrow 3.13.1-build-fix.0 → 3.13.1-subsequentload.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (80) hide show
  1. package/AlsoRead/index.js +1 -0
  2. package/AsideCollection/index.js +1 -0
  3. package/Attachment/index.js +1 -0
  4. package/Author/index.js +1 -0
  5. package/AuthorIntroductionCard/index.js +1 -0
  6. package/AuthorWithTime/index.js +1 -0
  7. package/BigFact/index.js +1 -0
  8. package/BlockQuote/index.js +1 -0
  9. package/Blurb/index.js +1 -0
  10. package/CollectionFilter/index.js +1 -0
  11. package/CollectionName/index.js +1 -0
  12. package/ElevenStories/index.js +1 -0
  13. package/FourColGrid/index.js +1 -0
  14. package/FourColTwelveStories/index.js +1 -0
  15. package/FourStorySlider/index.js +1 -0
  16. package/FourStorySliderPortrait/index.js +1 -0
  17. package/FullScreenSlider/index.js +1 -0
  18. package/HalfScreenSlider/index.js +1 -0
  19. package/Headline/index.js +1 -0
  20. package/HeroImage/index.js +1 -0
  21. package/Image/index.js +1 -0
  22. package/ImageGallery/index.js +1 -0
  23. package/ImageSlideshow/index.js +1 -0
  24. package/KeyEvents/index.js +1 -0
  25. package/LoadmoreButton/index.js +1 -0
  26. package/OneColStoryList/index.js +1 -0
  27. package/PageIntroductionCard/index.js +1 -0
  28. package/QuestionAnswer/index.js +1 -0
  29. package/Quote/index.js +1 -0
  30. package/Reference/index.js +1 -0
  31. package/ScrollSnap/index.js +1 -0
  32. package/SectionTag/index.js +1 -0
  33. package/SocialShareTemplate/index.js +1 -0
  34. package/StoryCard/index.js +1 -0
  35. package/StoryCollection/index.js +1 -0
  36. package/StoryElement/index.js +1 -0
  37. package/StoryElementCard/index.js +1 -0
  38. package/StorycardContent/index.js +1 -0
  39. package/Subheadline/index.js +1 -0
  40. package/Summary/index.js +1 -0
  41. package/TagIntroductionCard/index.js +1 -0
  42. package/Text/index.js +1 -0
  43. package/ThreeColFourteenStories/index.js +1 -0
  44. package/ThreeColGrid/index.js +1 -0
  45. package/ThreeColSevenStory/index.js +1 -0
  46. package/ThreeColSixStories/index.js +1 -0
  47. package/TimeStamp/index.js +1 -0
  48. package/TwoColFourStories/index.js +1 -0
  49. package/TwoColSevenStories/index.js +1 -0
  50. package/TwoColThreeStories/index.js +1 -0
  51. package/Video/index.js +1 -0
  52. package/VideoStoryTemplate/index.js +1 -0
  53. package/package.json +1 -1
  54. package/AlternateCollectionFilter/styles.arrow.css +0 -1
  55. package/AstrologyCollection/styles.arrow.css +0 -1
  56. package/AuthorsList/styles.arrow.css +0 -1
  57. package/FourColFiveStories/styles.arrow.css +0 -1
  58. package/FourColPortraitStories/styles.arrow.css +0 -1
  59. package/FourColSixteenStories/styles.arrow.css +0 -1
  60. package/FourTabbedBigStorySlider/styles.arrow.css +0 -1
  61. package/ListComponent/styles.arrow.css +0 -1
  62. package/ListicleStoryTemplate/styles.arrow.css +0 -1
  63. package/Listicles/styles.arrow.css +0 -1
  64. package/LiveBlogStoryTemplate/styles.arrow.css +0 -1
  65. package/MagazineEditions/styles.arrow.css +0 -1
  66. package/MagazineHeaderCard/styles.arrow.css +0 -1
  67. package/MagazineWidget/styles.arrow.css +0 -1
  68. package/OpinionCollection/styles.arrow.css +0 -1
  69. package/PhotoStoryTemplate/styles.arrow.css +0 -1
  70. package/README.md +0 -194
  71. package/SixColSixStories/styles.arrow.css +0 -1
  72. package/TextStoryTemplate/styles.arrow.css +0 -1
  73. package/ThreeColFlexStories/styles.arrow.css +0 -1
  74. package/ThreeColTwelveStories/styles.arrow.css +0 -1
  75. package/TwoColFourStoryHighlight/styles.arrow.css +0 -1
  76. package/TwoColSixStories/styles.arrow.css +0 -1
  77. package/TwoColTenStoriesSidebar/styles.arrow.css +0 -1
  78. package/app.scss +0 -276
  79. package/cjs/index.js +0 -9
  80. package/esm/index.js +0 -9
@@ -0,0 +1 @@
1
+ import t,{useContext as e,createContext as r}from"react";import n from"lodash.get";import{Link as o,LazyLoadImages as a,ResponsiveImage as i}from"@quintype/components";import l from"prop-types";import"react-timeago";import"date-fns-tz";function s(){return s=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},s.apply(this,arguments)}function c(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r,n,o={},a=Object.keys(t);for(n=0;n<a.length;n++)r=a[n],e.indexOf(r)>=0||(o[r]=t[r]);return o}(t,e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(n=0;n<a.length;n++)r=a[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}var u="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function f(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function h(t){var e={exports:{}};return t(e,e.exports),e.exports}var p=h((function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r={attributeNames:{styleName:"className"},generateScopedName:"[path]___[name]__[local]___[hash:base64:5]",handleMissingStyleName:"throw"};e.default=r})),d=f(h((function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r,n=(r=p)&&r.__esModule?r:{default:r};var o=function(t,e){if("throw"===e)throw new Error(t);return"warn"===e&&console.warn(t),null};e.default=function(t,e,r){var a=Object.keys(e),i=r||{},l=i.handleMissingStyleName,s=void 0===l?n.default.handleMissingStyleName:l,c=i.autoResolveMultipleImports,u=void 0===c?n.default.autoResolveMultipleImports:c;return t?t.split(" ").filter((function(t){return t})).map((function(t){if(function(t){return-1!==t.indexOf(".")}(t))return function(t,e,r){var a=t.split("."),i=a[0],l=a[1],s=r||n.default.handleMissingStyleName;return l?e[i]?e[i][l]?e[i][l]:o("CSS module does not exist: "+l,s):o("CSS module import does not exist: "+i,s):o("Invalid style name: "+t,s)}(t,e,s);if(0===a.length)throw new Error("Cannot use styleName attribute for style name '"+t+"' without importing at least one stylesheet.");if(a.length>1){if(!u)throw new Error("Cannot use anonymous style name '"+t+"' with more than one stylesheet import without setting 'autoResolveMultipleImports' to true.");return function(t,e,r){var a=r||n.default.handleMissingStyleName,i=Object.keys(e).map((function(r){return e[r][t]&&r})).filter((function(t){return t}));if(i.length>1)throw new Error('Cannot resolve styleName "'+t+'" because it is present in multiple imports:\n\n\t'+i.join("\n\t")+'\n\nYou can resolve this by using a named import, e.g:\n\n\timport foo from "'+i[0]+'";\n\t<div styleName="foo.'+t+'" />\n\n');return 0===i.length?o("Could not resolve the styleName '"+t+"'.",a):e[i[0]][t]}(t,e,s)}var r=e[a[0]];return r[t]?r[t]:o("Could not resolve the styleName '"+t+"'.",s)})).filter((function(t){return t})).join(" "):""}}))),v=["element","render"],m=function(e){return function(r){var n=r.element,o=r.render,a=c(r,v);return n?o&&"function"==typeof o?o(r):t.createElement(e,s({},a,{element:n})):null}};m.propTypes={StoryElement:l.element};var y=function(e){var r=e.width,n=void 0===r?40:r,o=e.height,a=void 0===o?30:o,i=e.iconColor,l=void 0===i?"#99B0CB":i;return t.createElement("svg",{width:n,height:a,viewBox:"0 0 102 76",version:"1.1"},t.createElement("g",{id:"demo-home-copy",stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",transform:"translate(-377.000000, -314.000000)"},t.createElement("g",{id:"Group-13",transform:"translate(377.000000, 314.000000)"},t.createElement("path",{d:"M43.2,49.7 L62.2,19.2 L87.2,59.4 L17,59.4 L32.8,39.4 L43.2,49.7 Z M29.9,28.6 C25.8683213,28.6 22.6,25.3316787 22.6,21.3 C22.6,17.2683213 25.8683213,14 29.9,14 C33.9316787,14 37.2,17.2683213 37.2,21.3 C37.2,25.3316787 33.9316787,28.6 29.9,28.6 Z",id:"Combined-Shape",fill:l,fillRule:"nonzero"}),t.createElement("rect",{id:"Rectangle-19",stroke:l,strokeWidth:"3",x:"1.5",y:"1.5",width:"99",height:"73",rx:"3"}))))};y.propTypes={width:l.object,height:l.object,iconColor:l.object};var g=function(){return t.createElement("div",{className:"arr--fallback-image fallback-m_image__1GYCJ fallback-m_image-position__3KddP"},t.createElement("figure",{className:"arr--fallback-svg fallback-m_fallback-svg__tK9fL"},t.createElement(y,null)))},_=function(e){var r=e.slug;return r?t.createElement(o,{href:r,"aria-label":"image-fallback"},g()):g()};function b(t){return b="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},b(t)}_.propTypes={slug:l.string},h((function(t){var e=function(t){var e,r=Object.prototype,n=r.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",i=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function s(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(t){s=function(t,e,r){return t[e]=r}}function c(t,e,r,n){var o=e&&e.prototype instanceof m?e:m,a=Object.create(o.prototype),i=new L(n||[]);return a._invoke=function(t,e,r){var n=f;return function(o,a){if(n===p)throw new Error("Generator is already running");if(n===d){if("throw"===o)throw a;return A()}for(r.method=o,r.arg=a;;){var i=r.delegate;if(i){var l=O(i,r);if(l){if(l===v)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(n===f)throw n=d,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n=p;var s=u(t,e,r);if("normal"===s.type){if(n=r.done?d:h,s.arg===v)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(n=d,r.method="throw",r.arg=s.arg)}}}(t,r,i),a}function u(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=c;var f="suspendedStart",h="suspendedYield",p="executing",d="completed",v={};function m(){}function y(){}function g(){}var _={};s(_,a,(function(){return this}));var b=Object.getPrototypeOf,w=b&&b(b(N([])));w&&w!==r&&n.call(w,a)&&(_=w);var j=g.prototype=m.prototype=Object.create(_);function E(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function x(t,e){function r(o,a,i,l){var s=u(t[o],t,a);if("throw"!==s.type){var c=s.arg,f=c.value;return f&&"object"==typeof f&&n.call(f,"__await")?e.resolve(f.__await).then((function(t){r("next",t,i,l)}),(function(t){r("throw",t,i,l)})):e.resolve(f).then((function(t){c.value=t,i(c)}),(function(t){return r("throw",t,i,l)}))}l(s.arg)}var o;this._invoke=function(t,n){function a(){return new e((function(e,o){r(t,n,e,o)}))}return o=o?o.then(a,a):a()}}function O(t,r){var n=t.iterator[r.method];if(n===e){if(r.delegate=null,"throw"===r.method){if(t.iterator.return&&(r.method="return",r.arg=e,O(t,r),"throw"===r.method))return v;r.method="throw",r.arg=new TypeError("The iterator does not provide a 'throw' method")}return v}var o=u(n,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,v;var a=o.arg;return a?a.done?(r[t.resultName]=a.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,v):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,v)}function S(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function k(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function L(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(S,this),this.reset(!0)}function N(t){if(t){var r=t[a];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function r(){for(;++o<t.length;)if(n.call(t,o))return r.value=t[o],r.done=!1,r;return r.value=e,r.done=!0,r};return i.next=i}}return{next:A}}function A(){return{value:e,done:!0}}return y.prototype=g,s(j,"constructor",g),s(g,"constructor",y),y.displayName=s(g,l,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===y||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,g):(t.__proto__=g,s(t,l,"GeneratorFunction")),t.prototype=Object.create(j),t},t.awrap=function(t){return{__await:t}},E(x.prototype),s(x.prototype,i,(function(){return this})),t.AsyncIterator=x,t.async=function(e,r,n,o,a){void 0===a&&(a=Promise);var i=new x(c(e,r,n,o),a);return t.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},E(j),s(j,l,"Generator"),s(j,a,(function(){return this})),s(j,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=[];for(var r in t)e.push(r);return e.reverse(),function r(){for(;e.length;){var n=e.pop();if(n in t)return r.value=n,r.done=!1,r}return r.done=!0,r}},t.values=N,L.prototype={constructor:L,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(k),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function o(n,o){return l.type="throw",l.arg=t,r.next=n,o&&(r.method="next",r.arg=e),!!o}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],l=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var s=n.call(i,"catchLoc"),c=n.call(i,"finallyLoc");if(s&&c){if(this.prev<i.catchLoc)return o(i.catchLoc,!0);if(this.prev<i.finallyLoc)return o(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return o(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return o(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,v):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),v},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),k(r),v}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;k(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:N(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),v}},t}(t.exports);try{regeneratorRuntime=e}catch(t){"object"==typeof globalThis?globalThis.regeneratorRuntime=e:Function("r","regeneratorRuntime = r")(e)}}));var w=Array.isArray,j="object"==typeof u&&u&&u.Object===Object&&u,E="object"==typeof self&&self&&self.Object===Object&&self,x=j||E||Function("return this")(),O=x.Symbol,S=Object.prototype,k=S.hasOwnProperty,L=S.toString,N=O?O.toStringTag:void 0;var A=function(t){var e=k.call(t,N),r=t[N];try{t[N]=void 0;var n=!0}catch(t){}var o=L.call(t);return n&&(e?t[N]=r:delete t[N]),o},C=Object.prototype.toString;var I=function(t){return C.call(t)},P=O?O.toStringTag:void 0;var R=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":P&&P in Object(t)?A(t):I(t)};var T=function(t){return null!=t&&"object"==typeof t};var z=function(t){return"symbol"==typeof t||T(t)&&"[object Symbol]"==R(t)},F=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,M=/^\w*$/;var G=function(t,e){if(w(t))return!1;var r=typeof t;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=t&&!z(t))||(M.test(t)||!F.test(t)||null!=e&&t in Object(e))};var $=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)};var Y,W=function(t){if(!$(t))return!1;var e=R(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e},Z=x["__core-js_shared__"],B=(Y=/[^.]+$/.exec(Z&&Z.keys&&Z.keys.IE_PROTO||""))?"Symbol(src)_1."+Y:"";var V=function(t){return!!B&&B in t},K=Function.prototype.toString;var U=function(t){if(null!=t){try{return K.call(t)}catch(t){}try{return t+""}catch(t){}}return""},X=/^\[object .+?Constructor\]$/,q=Function.prototype,D=Object.prototype,H=q.toString,J=D.hasOwnProperty,Q=RegExp("^"+H.call(J).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var tt=function(t){return!(!$(t)||V(t))&&(W(t)?Q:X).test(U(t))};var et=function(t,e){return null==t?void 0:t[e]};var rt=function(t,e){var r=et(t,e);return tt(r)?r:void 0},nt=rt(Object,"create");var ot=function(){this.__data__=nt?nt(null):{},this.size=0};var at=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},it=Object.prototype.hasOwnProperty;var lt=function(t){var e=this.__data__;if(nt){var r=e[t];return"__lodash_hash_undefined__"===r?void 0:r}return it.call(e,t)?e[t]:void 0},st=Object.prototype.hasOwnProperty;var ct=function(t){var e=this.__data__;return nt?void 0!==e[t]:st.call(e,t)};var ut=function(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=nt&&void 0===e?"__lodash_hash_undefined__":e,this};function ft(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}ft.prototype.clear=ot,ft.prototype.delete=at,ft.prototype.get=lt,ft.prototype.has=ct,ft.prototype.set=ut;var ht=ft;var pt=function(){this.__data__=[],this.size=0};var dt=function(t,e){return t===e||t!=t&&e!=e};var vt=function(t,e){for(var r=t.length;r--;)if(dt(t[r][0],e))return r;return-1},mt=Array.prototype.splice;var yt=function(t){var e=this.__data__,r=vt(e,t);return!(r<0)&&(r==e.length-1?e.pop():mt.call(e,r,1),--this.size,!0)};var gt=function(t){var e=this.__data__,r=vt(e,t);return r<0?void 0:e[r][1]};var _t=function(t){return vt(this.__data__,t)>-1};var bt=function(t,e){var r=this.__data__,n=vt(r,t);return n<0?(++this.size,r.push([t,e])):r[n][1]=e,this};function wt(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}wt.prototype.clear=pt,wt.prototype.delete=yt,wt.prototype.get=gt,wt.prototype.has=_t,wt.prototype.set=bt;var jt=wt,Et=rt(x,"Map");var xt=function(){this.size=0,this.__data__={hash:new ht,map:new(Et||jt),string:new ht}};var Ot=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t};var St=function(t,e){var r=t.__data__;return Ot(e)?r["string"==typeof e?"string":"hash"]:r.map};var kt=function(t){var e=St(this,t).delete(t);return this.size-=e?1:0,e};var Lt=function(t){return St(this,t).get(t)};var Nt=function(t){return St(this,t).has(t)};var At=function(t,e){var r=St(this,t),n=r.size;return r.set(t,e),this.size+=r.size==n?0:1,this};function Ct(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}Ct.prototype.clear=xt,Ct.prototype.delete=kt,Ct.prototype.get=Lt,Ct.prototype.has=Nt,Ct.prototype.set=At;var It=Ct;function Pt(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var r=function(){var n=arguments,o=e?e.apply(this,n):n[0],a=r.cache;if(a.has(o))return a.get(o);var i=t.apply(this,n);return r.cache=a.set(o,i)||a,i};return r.cache=new(Pt.Cache||It),r}Pt.Cache=It;var Rt=Pt;var Tt=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,zt=/\\(\\)?/g,Ft=function(t){var e=Rt(t,(function(t){return 500===r.size&&r.clear(),t})),r=e.cache;return e}((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(Tt,(function(t,r,n,o){e.push(n?o.replace(zt,"$1"):r||t)})),e}));var Mt=function(t,e){for(var r=-1,n=null==t?0:t.length,o=Array(n);++r<n;)o[r]=e(t[r],r,t);return o},Gt=O?O.prototype:void 0,$t=Gt?Gt.toString:void 0;var Yt=function t(e){if("string"==typeof e)return e;if(w(e))return Mt(e,t)+"";if(z(e))return $t?$t.call(e):"";var r=e+"";return"0"==r&&1/e==-Infinity?"-0":r};var Wt=function(t){return null==t?"":Yt(t)};var Zt=function(t,e){return w(t)?t:G(t,e)?[t]:Ft(Wt(t))};var Bt=function(t){if("string"==typeof t||z(t))return t;var e=t+"";return"0"==e&&1/t==-Infinity?"-0":e};var Vt=function(t,e){for(var r=0,n=(e=Zt(e,t)).length;null!=t&&r<n;)t=t[Bt(e[r++])];return r&&r==n?t:void 0};var Kt=function(t,e,r){var n=null==t?void 0:Vt(t,e);return void 0===n?r:n},Ut=function(t){var e=function(t){return{r:parseInt(t.slice(1,3),16),g:parseInt(t.slice(3,5),16),b:parseInt(t.slice(5,7),16)}}(t);return.299*e.r+.587*e.g+.114*e.b},Xt=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"rgba(255, 255, 255, 0)",e=t.match(/^rgba?[\s+]?\([\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?/i);return e&&4===e.length?"#"+("0"+parseInt(e[1],10).toString(16)).slice(-2)+("0"+parseInt(e[2],10).toString(16)).slice(-2)+("0"+parseInt(e[3],10).toString(16)).slice(-2):t},qt={mobile:767,tablet:1024},Dt=l.shape({"sketches-host":l.string,"cdn-name":l.string,"cdn-image":l.string});l.shape({headline:l.string,"last-published-at":l.number,subheadline:l.string});var Ht=r(),Jt=["story","element","template","opts","css","config","render"],Qt={"./also-read.m.css":{viewports:'"../../../../../assets/stylesheets/viewports.m.css"',mobile:"768px","card-image":"also-read-m_card-image__3CwAv","default-text":"also-read-m_default-text__hp2dp","alsoread-textLeftAlign":"also-read-m_alsoread-textLeftAlign__S0Dxe","alsoread-imageRightAlign":"also-read-m_alsoread-imageRightAlign__1bsF3",headline:"also-read-m_headline__VzF-c","alsoread-default":"also-read-m_alsoread-default__3cYER","card-image-wrapper":"also-read-m_card-image-wrapper__3GFzu",image:"also-read-m_image__2jdRP","content-wrapper":"also-read-m_content-wrapper__26AZX",alsoread:"also-read-m_alsoread__1crOV",dark:"also-read-m_dark__1pUib",light:"also-read-m_light__bTCze"}},te=function(e){var r,n,o=e.story,l=e.linkedImage,s=e.template,c=e.isRightAlign,u="textLeftAlign"===s,f=!!(r=Kt(qt,"mobile"))&&Kt(global,"document.documentElement.clientWidth")<=r,h=u?[16,9]:c&&f?[4,3]:[16,9],p=o["hero-image-caption"]||o.headline;return t.createElement("div",{className:"also-read-m_card-image-wrapper__3GFzu"},null==(n=l)||"object"===b(n)&&0===Object.entries(n).length&&n.constructor===Object||"string"==typeof n&&0===n.trim().length?t.createElement("div",{className:"arr--fallback-also-read also-read-m_image__2jdRP"},t.createElement(_,null)):t.createElement("figure",{className:"also-read-m_card-image__3CwAv"},t.createElement(a,null,t.createElement(i,{slug:l,"aspect-ratio":h,defaultWidth:480,widths:[250,480,640],imgParams:{auto:["format","compress"]},alt:p}))))};te.propTypes={story:l.shape({"hero-image-caption":l.string,headline:l.string}),linkedImage:l.string,template:l.string,isRightAlign:l.bool};var ee=function(r){var a=r.story,i=void 0===a?{}:a,l=r.element,u=r.template,f=void 0===u?"":u,h=r.opts,p=void 0===h?{}:h,v=r.css,m=void 0===v?{}:v;r.config,r.render;var y=c(r,Jt),g=l.text;if(!g)return null;var _=n(i,["linked-stories"],{}),b=n(l,["metadata","linked-story-id"]),w=n(_,[b,"url"]),j=n(_,[b,"hero-image-s3-key"],""),E=w&&w,x=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"rgb(255,255,255)",e=/^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/.test(t)?t:Xt(t);return Ut(e)<155?"light":"dark"}((e(Ht)||{}).theme),O=p.title,S=void 0===O?"":O,k=m.textColor,L=S||"Also Read",N=""===f||"default"===f,A="imageRightAlign"===f,C=f?"alsoread-".concat(f):"alsoread-default";return t.createElement(o,s({"data-test-id":"also-read",href:E,"aria-label":"also-read"},y,{className:"arrow-component arr--also-read-element "+d(C,Qt)+" "+(y&&y.className||"")}),!N&&t.createElement("div",{className:d("default-text ".concat(x),Qt)},L),N&&t.createElement(te,{story:i,linkedImage:j,template:f,isRightAlign:A}),t.createElement("div",{className:"also-read-m_content-wrapper__26AZX"},t.createElement("div",{className:"also-read-m_headline__VzF-c",style:k?{color:k}:{color:x},dangerouslySetInnerHTML:{__html:g}}),A&&t.createElement(te,{story:i,linkedImage:j,template:f})))};ee.propTypes={template:l.string,story:l.shape({"linked-stories":l.object}),element:l.shape({text:l.string,metadata:l.shape({linkedStoryId:l.shape({url:l.string,"hero-image-s3-key":l.string})})}),opts:l.shape({title:l.string}),config:Dt,render:l.func,css:l.object};var re=m(ee);export{re as AlsoRead};
@@ -0,0 +1 @@
1
+ import e from"lodash.get";import t,{PropTypes as r}from"prop-types";import o,{createContext as n,useContext as a,useState as i,useEffect as l}from"react";import c from"react-timeago";import{utcToZonedTime as s,format as u}from"date-fns-tz";import{Link as d,ResponsiveImage as m,ResponsiveHeroImage as h,LinkBase as f}from"@quintype/components";import{connect as p,useSelector as g}from"react-redux";function v(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _(e,t,r,o,n,a,i){try{var l=e[a](i),c=l.value}catch(e){return void r(e)}l.done?t(c):Promise.resolve(c).then(o,n)}function y(e){return function(){var t=this,r=arguments;return new Promise((function(o,n){var a=e.apply(t,r);function i(e){_(a,o,n,i,l,"next",e)}function l(e){_(a,o,n,i,l,"throw",e)}i(void 0)}))}}function b(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,o=new Array(t);r<t;r++)o[r]=e[r];return o}function w(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var o,n,a=[],i=!0,l=!1;try{for(r=r.call(e);!(i=(o=r.next()).done)&&(a.push(o.value),!t||a.length!==t);i=!0);}catch(e){l=!0,n=e}finally{try{i||null==r.return||r.return()}finally{if(l)throw n}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return b(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?b(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var E="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function x(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function k(e){var t={exports:{}};return e(t,t.exports),t.exports}var L=k((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={attributeNames:{styleName:"className"},generateScopedName:"[path]___[name]__[local]___[hash:base64:5]",handleMissingStyleName:"throw"};t.default=r})),T=x(k((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,o=(r=L)&&r.__esModule?r:{default:r};var n=function(e,t){if("throw"===t)throw new Error(e);return"warn"===t&&console.warn(e),null};t.default=function(e,t,r){var a=Object.keys(t),i=r||{},l=i.handleMissingStyleName,c=void 0===l?o.default.handleMissingStyleName:l,s=i.autoResolveMultipleImports,u=void 0===s?o.default.autoResolveMultipleImports:s;return e?e.split(" ").filter((function(e){return e})).map((function(e){if(function(e){return-1!==e.indexOf(".")}(e))return function(e,t,r){var a=e.split("."),i=a[0],l=a[1],c=r||o.default.handleMissingStyleName;return l?t[i]?t[i][l]?t[i][l]:n("CSS module does not exist: "+l,c):n("CSS module import does not exist: "+i,c):n("Invalid style name: "+e,c)}(e,t,c);if(0===a.length)throw new Error("Cannot use styleName attribute for style name '"+e+"' without importing at least one stylesheet.");if(a.length>1){if(!u)throw new Error("Cannot use anonymous style name '"+e+"' with more than one stylesheet import without setting 'autoResolveMultipleImports' to true.");return function(e,t,r){var a=r||o.default.handleMissingStyleName,i=Object.keys(t).map((function(r){return t[r][e]&&r})).filter((function(e){return e}));if(i.length>1)throw new Error('Cannot resolve styleName "'+e+'" because it is present in multiple imports:\n\n\t'+i.join("\n\t")+'\n\nYou can resolve this by using a named import, e.g:\n\n\timport foo from "'+i[0]+'";\n\t<div styleName="foo.'+e+'" />\n\n');return 0===i.length?n("Could not resolve the styleName '"+e+"'.",a):t[i[0]][e]}(e,t,c)}var r=t[a[0]];return r[e]?r[e]:n("Could not resolve the styleName '"+e+"'.",c)})).filter((function(e){return e})).join(" "):""}}))),j=k((function(e){var t=function(e){var t,r=Object.prototype,o=r.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},a=n.iterator||"@@iterator",i=n.asyncIterator||"@@asyncIterator",l=n.toStringTag||"@@toStringTag";function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,r){return e[t]=r}}function s(e,t,r,o){var n=t&&t.prototype instanceof g?t:g,a=Object.create(n.prototype),i=new z(o||[]);return a._invoke=function(e,t,r){var o=d;return function(n,a){if(o===h)throw new Error("Generator is already running");if(o===f){if("throw"===n)throw a;return N()}for(r.method=n,r.arg=a;;){var i=r.delegate;if(i){var l=L(i,r);if(l){if(l===p)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===d)throw o=f,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=h;var c=u(e,t,r);if("normal"===c.type){if(o=r.done?f:m,c.arg===p)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(o=f,r.method="throw",r.arg=c.arg)}}}(e,r,i),a}function u(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=s;var d="suspendedStart",m="suspendedYield",h="executing",f="completed",p={};function g(){}function v(){}function _(){}var y={};c(y,a,(function(){return this}));var b=Object.getPrototypeOf,w=b&&b(b(O([])));w&&w!==r&&o.call(w,a)&&(y=w);var E=_.prototype=g.prototype=Object.create(y);function x(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function k(e,t){function r(n,a,i,l){var c=u(e[n],e,a);if("throw"!==c.type){var s=c.arg,d=s.value;return d&&"object"==typeof d&&o.call(d,"__await")?t.resolve(d.__await).then((function(e){r("next",e,i,l)}),(function(e){r("throw",e,i,l)})):t.resolve(d).then((function(e){s.value=e,i(s)}),(function(e){return r("throw",e,i,l)}))}l(c.arg)}var n;this._invoke=function(e,o){function a(){return new t((function(t,n){r(e,o,t,n)}))}return n=n?n.then(a,a):a()}}function L(e,r){var o=e.iterator[r.method];if(o===t){if(r.delegate=null,"throw"===r.method){if(e.iterator.return&&(r.method="return",r.arg=t,L(e,r),"throw"===r.method))return p;r.method="throw",r.arg=new TypeError("The iterator does not provide a 'throw' method")}return p}var n=u(o,e.iterator,r.arg);if("throw"===n.type)return r.method="throw",r.arg=n.arg,r.delegate=null,p;var a=n.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,p):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,p)}function T(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function j(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function z(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(T,this),this.reset(!0)}function O(e){if(e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,i=function r(){for(;++n<e.length;)if(o.call(e,n))return r.value=e[n],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}return{next:N}}function N(){return{value:t,done:!0}}return v.prototype=_,c(E,"constructor",_),c(_,"constructor",v),v.displayName=c(_,l,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===v||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,_):(e.__proto__=_,c(e,l,"GeneratorFunction")),e.prototype=Object.create(E),e},e.awrap=function(e){return{__await:e}},x(k.prototype),c(k.prototype,i,(function(){return this})),e.AsyncIterator=k,e.async=function(t,r,o,n,a){void 0===a&&(a=Promise);var i=new k(s(t,r,o,n),a);return e.isGeneratorFunction(r)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},x(E),c(E,l,"Generator"),c(E,a,(function(){return this})),c(E,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var o=t.pop();if(o in e)return r.value=o,r.done=!1,r}return r.done=!0,r}},e.values=O,z.prototype={constructor:z,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(j),!e)for(var r in this)"t"===r.charAt(0)&&o.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function n(o,n){return l.type="throw",l.arg=e,r.next=o,n&&(r.method="next",r.arg=t),!!n}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],l=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=o.call(i,"catchLoc"),s=o.call(i,"finallyLoc");if(c&&s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&o.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var a=n;break}}a&&("break"===e||"continue"===e)&&a.tryLoc<=t&&t<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=e,i.arg=t,a?(this.method="next",this.next=a.finallyLoc,p):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),p},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),j(r),p}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var o=r.completion;if("throw"===o.type){var n=o.arg;j(r)}return n}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,o){return this.delegate={iterator:O(e),resultName:r,nextLoc:o},"next"===this.method&&(this.arg=t),p}},e}(e.exports);try{regeneratorRuntime=t}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=t:Function("r","regeneratorRuntime = r")(t)}}));function z(e){return z="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},z(e)}var O=Array.isArray,N="object"==typeof E&&E&&E.Object===Object&&E,C="object"==typeof self&&self&&self.Object===Object&&self,S=N||C||Function("return this")(),A=S.Symbol,I=Object.prototype,M=I.hasOwnProperty,R=I.toString,P=A?A.toStringTag:void 0;var F=function(e){var t=M.call(e,P),r=e[P];try{e[P]=void 0;var o=!0}catch(e){}var n=R.call(e);return o&&(t?e[P]=r:delete e[P]),n},B=Object.prototype.toString;var H=function(e){return B.call(e)},D=A?A.toStringTag:void 0;var W=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":D&&D in Object(e)?F(e):H(e)};var q=function(e){return null!=e&&"object"==typeof e};var U=function(e){return"symbol"==typeof e||q(e)&&"[object Symbol]"==W(e)},G=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Z=/^\w*$/;var J=function(e,t){if(O(e))return!1;var r=typeof e;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=e&&!U(e))||(Z.test(e)||!G.test(e)||null!=t&&e in Object(t))};var K=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)};var V,Y=function(e){if(!K(e))return!1;var t=W(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},$=S["__core-js_shared__"],X=(V=/[^.]+$/.exec($&&$.keys&&$.keys.IE_PROTO||""))?"Symbol(src)_1."+V:"";var Q=function(e){return!!X&&X in e},ee=Function.prototype.toString;var te=function(e){if(null!=e){try{return ee.call(e)}catch(e){}try{return e+""}catch(e){}}return""},re=/^\[object .+?Constructor\]$/,oe=Function.prototype,ne=Object.prototype,ae=oe.toString,ie=ne.hasOwnProperty,le=RegExp("^"+ae.call(ie).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var ce=function(e){return!(!K(e)||Q(e))&&(Y(e)?le:re).test(te(e))};var se=function(e,t){return null==e?void 0:e[t]};var ue=function(e,t){var r=se(e,t);return ce(r)?r:void 0},de=ue(Object,"create");var me=function(){this.__data__=de?de(null):{},this.size=0};var he=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},fe=Object.prototype.hasOwnProperty;var pe=function(e){var t=this.__data__;if(de){var r=t[e];return"__lodash_hash_undefined__"===r?void 0:r}return fe.call(t,e)?t[e]:void 0},ge=Object.prototype.hasOwnProperty;var ve=function(e){var t=this.__data__;return de?void 0!==t[e]:ge.call(t,e)};var _e=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=de&&void 0===t?"__lodash_hash_undefined__":t,this};function ye(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var o=e[t];this.set(o[0],o[1])}}ye.prototype.clear=me,ye.prototype.delete=he,ye.prototype.get=pe,ye.prototype.has=ve,ye.prototype.set=_e;var be=ye;var we=function(){this.__data__=[],this.size=0};var Ee=function(e,t){return e===t||e!=e&&t!=t};var xe=function(e,t){for(var r=e.length;r--;)if(Ee(e[r][0],t))return r;return-1},ke=Array.prototype.splice;var Le=function(e){var t=this.__data__,r=xe(t,e);return!(r<0)&&(r==t.length-1?t.pop():ke.call(t,r,1),--this.size,!0)};var Te=function(e){var t=this.__data__,r=xe(t,e);return r<0?void 0:t[r][1]};var je=function(e){return xe(this.__data__,e)>-1};var ze=function(e,t){var r=this.__data__,o=xe(r,e);return o<0?(++this.size,r.push([e,t])):r[o][1]=t,this};function Oe(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var o=e[t];this.set(o[0],o[1])}}Oe.prototype.clear=we,Oe.prototype.delete=Le,Oe.prototype.get=Te,Oe.prototype.has=je,Oe.prototype.set=ze;var Ne=Oe,Ce=ue(S,"Map");var Se=function(){this.size=0,this.__data__={hash:new be,map:new(Ce||Ne),string:new be}};var Ae=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e};var Ie=function(e,t){var r=e.__data__;return Ae(t)?r["string"==typeof t?"string":"hash"]:r.map};var Me=function(e){var t=Ie(this,e).delete(e);return this.size-=t?1:0,t};var Re=function(e){return Ie(this,e).get(e)};var Pe=function(e){return Ie(this,e).has(e)};var Fe=function(e,t){var r=Ie(this,e),o=r.size;return r.set(e,t),this.size+=r.size==o?0:1,this};function Be(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var o=e[t];this.set(o[0],o[1])}}Be.prototype.clear=Se,Be.prototype.delete=Me,Be.prototype.get=Re,Be.prototype.has=Pe,Be.prototype.set=Fe;var He=Be;function De(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var r=function(){var o=arguments,n=t?t.apply(this,o):o[0],a=r.cache;if(a.has(n))return a.get(n);var i=e.apply(this,o);return r.cache=a.set(n,i)||a,i};return r.cache=new(De.Cache||He),r}De.Cache=He;var We=De;var qe=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ue=/\\(\\)?/g,Ge=function(e){var t=We(e,(function(e){return 500===r.size&&r.clear(),e})),r=t.cache;return t}((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(qe,(function(e,r,o,n){t.push(o?n.replace(Ue,"$1"):r||e)})),t}));var Ze=function(e,t){for(var r=-1,o=null==e?0:e.length,n=Array(o);++r<o;)n[r]=t(e[r],r,e);return n},Je=A?A.prototype:void 0,Ke=Je?Je.toString:void 0;var Ve=function e(t){if("string"==typeof t)return t;if(O(t))return Ze(t,e)+"";if(U(t))return Ke?Ke.call(t):"";var r=t+"";return"0"==r&&1/t==-Infinity?"-0":r};var Ye=function(e){return null==e?"":Ve(e)};var $e=function(e,t){return O(e)?e:J(e,t)?[e]:Ge(Ye(e))};var Xe=function(e){if("string"==typeof e||U(e))return e;var t=e+"";return"0"==t&&1/e==-Infinity?"-0":t};var Qe=function(e,t){for(var r=0,o=(t=$e(t,e)).length;null!=e&&r<o;)e=e[Xe(t[r++])];return r&&r==o?e:void 0};var et=function(e,t,r){var o=null==e?void 0:Qe(e,t);return void 0===o?r:o};var tt=function(e,t,r,o){var n=-1,a=null==e?0:e.length;for(o&&a&&(r=e[++n]);++n<a;)r=t(r,e[n],n,e);return r};var rt=function(e){return function(t){return null==e?void 0:e[t]}}({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"}),ot=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,nt=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]","g");var at=function(e){return(e=Ye(e))&&e.replace(ot,rt).replace(nt,"")},it=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;var lt=function(e){return e.match(it)||[]},ct=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;var st=function(e){return ct.test(e)},ut="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",dt="["+ut+"]",mt="\\d+",ht="[\\u2700-\\u27bf]",ft="[a-z\\xdf-\\xf6\\xf8-\\xff]",pt="[^\\ud800-\\udfff"+ut+mt+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",gt="(?:\\ud83c[\\udde6-\\uddff]){2}",vt="[\\ud800-\\udbff][\\udc00-\\udfff]",_t="[A-Z\\xc0-\\xd6\\xd8-\\xde]",yt="(?:"+ft+"|"+pt+")",bt="(?:"+_t+"|"+pt+")",wt="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?",Et="[\\ufe0e\\ufe0f]?"+wt+("(?:\\u200d(?:"+["[^\\ud800-\\udfff]",gt,vt].join("|")+")[\\ufe0e\\ufe0f]?"+wt+")*"),xt="(?:"+[ht,gt,vt].join("|")+")"+Et,kt=RegExp([_t+"?"+ft+"+(?:['’](?:d|ll|m|re|s|t|ve))?(?="+[dt,_t,"$"].join("|")+")",bt+"+(?:['’](?:D|LL|M|RE|S|T|VE))?(?="+[dt,_t+yt,"$"].join("|")+")",_t+"?"+yt+"+(?:['’](?:d|ll|m|re|s|t|ve))?",_t+"+(?:['’](?:D|LL|M|RE|S|T|VE))?","\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",mt,xt].join("|"),"g");var Lt=function(e){return e.match(kt)||[]};var Tt=function(e,t,r){return e=Ye(e),void 0===(t=r?void 0:t)?st(e)?Lt(e):lt(e):e.match(t)||[]},jt=RegExp("['’]","g");var zt=function(e){return function(t){return tt(Tt(at(t).replace(jt,"")),e,"")}},Ot=zt((function(e,t,r){return e+(r?" ":"")+t.toUpperCase()})),Nt=Ot,Ct=zt((function(e,t,r){return e+(r?" ":"")+t.toLowerCase()})),St=Ct;var At=function(e,t,r,o){var n=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},a=n.showTime,i=void 0!==a&&a,l=n.isTimeFirst,c=void 0!==l&&l,s=n.isUpperCase,u=void 0!==s&&s,d=n.disableMeridiem,m=void 0!==d&&d,h=n.timeFormat,f=void 0===h?"12hours":h,p=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],g=new Date(o),v=g.getDate().toString().padStart(2,0),_=p[g.getMonth()],y=_;u&&(y=Nt(_));var b,w=g.getFullYear(),E=n.localizedMeridiem,x=n.localizedMonths,k=n.direction,L=void 0===k?"ltr":k,T=Mt(o,f),j=T;if(x&&(y=et(x,[St(_)])||_),E){var z=T.includes("am"),O=E.am,N=void 0===O?"am":O,C=E.pm,S=void 0===C?"pm":C;j=(z?T.replace("am",N):T.replace("pm",S))||T}return"rtl"===L?(b=i?"".concat(j):"","".concat(v," ").concat(y,", ").concat(w," ").concat(b," ")):m?"".concat(y," ").concat(v,", ").concat(w):c?"".concat(j,", ").concat(v," ").concat(y," ").concat(w):(b=i?", ".concat(j):"","".concat(v," ").concat(y,", ").concat(w).concat(b))};function It(e,t,r,o,n){var a,i=et(n,["localizedPublishTime",r])||r;return"hour"===t&&e>23||-1!==["day","week","month","year"].indexOf(t)?At(e,t,r,o,n):e>1?(a=et(n,["localizedPublishTime","".concat(t,"s")])||"".concat(t,"s"),"".concat(e," ").concat(a," ").concat(i)):(a=et(n,["localizedPublishTime",t])||t,"".concat(e," ").concat(a," ").concat(i," "))}function Mt(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"12hours",r=new Date(e),o=r.getHours(),n=r.getMinutes(),a=o>=12?"pm":"am",i=(o=(o%=12)||12)+":"+(n=n<10?"0"+n:n)+" "+a;return"24hours"===t?r.toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"}):i}var Rt=function(e){var t=function(e){return{r:parseInt(e.slice(1,3),16),g:parseInt(e.slice(3,5),16),b:parseInt(e.slice(5,7),16)}}(e);return.299*t.r+.587*t.g+.114*t.b},Pt=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"rgba(255, 255, 255, 0)",t=e.match(/^rgba?[\s+]?\([\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?/i);return t&&4===t.length?"#"+("0"+parseInt(t[1],10).toString(16)).slice(-2)+("0"+parseInt(t[2],10).toString(16)).slice(-2)+("0"+parseInt(t[3],10).toString(16)).slice(-2):e},Ft={mobile:767,tablet:1024},Bt=function(e){var t=et(Ft,e);return!!t&&et(global,"document.documentElement.clientWidth")<=t},Ht=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"rgb(255,255,255)",t=/^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/.test(e),r=t?e:Pt(e),o=Rt(r)<155?"light":"dark";return o},Dt=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.magazineSlug,o=void 0===r?"":r,n=t.isArchivePage,a=void 0!==n&&n;if(a)return"/magazine/archive/".concat(o);if(o)return"/magazine/".concat(o,"/").concat(e.slug);var i="section"===e.template;if(i){var l=et(e,["metadata","section","0","id"],""),c=t.sections,s=c&&c.find((function(e){return e.id===l}));return s?s["section-url"]:"/"}return"/collection/".concat(e.slug)};function Wt(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e["story-template"],r=void 0===t?"":t,o=e.metadata,n=void 0===o?{}:o;return"news-elsewhere"===r?et(n,["reference-url"],""):""}var qt=function(e){return null==e||"object"===z(e)&&0===Object.entries(e).length&&e.constructor===Object||"string"==typeof e&&0===e.trim().length};t.shape({"sketches-host":t.string,"cdn-name":t.string,"cdn-image":t.string}),t.shape({headline:t.string,"last-published-at":t.number,subheadline:t.string});var Ut=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return"news-elsewhere"===et(e,["story-template"])?et(e,["metadata","reference-url"],""):e.url||t},Gt=function(){var e=y(j.mark((function e(t){var r,o,n=arguments;return j.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=n.length>1&&void 0!==n[1]?n[1]:"",e.prev=1,e.next=4,fetch("".concat(r,"/api/v1/collections/").concat(t,"?item-type=story&limit=6"));case 4:return e.next=6,e.sent.json();case 6:return o=e.sent,e.abrupt("return",o);case 10:e.prev=10,e.t0=e.catch(1),console.error(e.t0);case 13:case"end":return e.stop()}}),e,null,[[1,10]])})));return function(t){return e.apply(this,arguments)}}(),Zt=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=arguments.length>3?arguments[3]:void 0,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null;if(a&&"story"===n){var i=a&&s(e,a),l=i&&u(i,"yyyy-MM-dd'T'HH:mm:ssXXX",{timeZone:a}),d=At("","","",e,r);return o.createElement("time",{dateTime:l},d)}return o.createElement(c,{date:e,formatter:function(e,o,n,a){return t(e,o,n,a,r)}})},Jt=n(),Kt=function(e){return function(t){return o.createElement(Jt.Provider,{value:t.config},o.createElement(e,t))}},Vt=function(){return a(Jt)},Yt={"./timestamp.m.css":{time:"timestamp-m_time__2v46i","time-wrapper":"timestamp-m_time-wrapper__3O2lM","bottom-fix":"timestamp-m_bottom-fix__1Zh8r",dark:"timestamp-m_dark__2lk9E",light:"timestamp-m_light__2QlrI"}},$t=function(t){var r=t.story,n=t.isBottom,a=t.config,i=void 0===a?{}:a,l=Vt()||{},c=e(i,["showTime"],e(l,["showTime"],!0)),s=r["last-published-at"]||r["first-published-at"],u=n?"bottom-fix":"",d=Ht(l.theme);return o.createElement(o.Fragment,null,c&&o.createElement("div",{"data-test-id":"publish-time",className:"time arr--publish-time "+T("time ".concat(d," ").concat(u),Yt)},o.createElement("div",{className:"timestamp-m_time-wrapper__3O2lM"},Zt(s,It,i))))};$t.propTypes={story:t.object,isBottom:t.bool,config:t.object};var Xt={"./author.m.css":{author:"author-m_author__WRuLm","author-image":"author-m_author-image__3q2oc","author-name":"author-m_author-name__3WP-O","bottom-fix":"author-m_bottom-fix__223TT",prefix:"author-m_prefix__YSInK","rtl-image":"author-m_rtl-image__2nglD","ltr-image":"author-m_ltr-image__3bc0L",dark:"author-m_dark__2TTlp",light:"author-m_light__3y8_x"}},Qt=function(t){var r=t.story,n=t.hideAuthorImage,a=t.isBottom,i=t.prefix,l=void 0===i?"":i,c=t.config,s=void 0===c?{}:c,u=Vt()||{},h=e(u,["showAuthor"],!0),f=e(r,["authors","0"],""),p=f["avatar-url"],g=f["avatar-s3-key"],v=f.name,_=f.slug,y=a?"bottom-fix":"",b=Ht(u.theme),w=e(s,["mountAt"],""),E=function(e){return l?o.createElement("div",{className:"arr-author-prefix "+T("prefix ".concat(b),Xt)},l):!n&&function(e){return p||g?o.createElement("div",{"data-test-id":"author-image",className:T("author-image ".concat(e,"-image"),Xt)},o.createElement("figure",null,g?o.createElement(m,{slug:g,"aspect-ratio":[1,1],defaultWidth:400,imgParams:{auto:["format","compress"]},alt:v}):o.createElement("img",{src:p}))):null}(e)};return o.createElement(o.Fragment,null,h&&o.createElement(d,{href:"".concat(w,"/author/")+_,"aria-label":"author-name",className:"author-name arr-author-name arrow-component "+T("author ".concat(y),Xt)},E("ltr"),o.createElement("div",{"data-test-id":"author-name",className:"author-name "+T("author-name ".concat(b),Xt)},v||r["author-name"]),!l&&E("rtl")))};var er=p((function(t){return{config:e(t,["qt","config"],{})}}))(Qt);Qt.propTypes={story:t.object.isRequired,hideAuthorImage:t.bool,isBottom:t.bool,prefix:t.string,config:t.object},Qt.defaultProps={hideAuthorImage:!1,isBottom:!1,prefix:""};var tr={"./dot.m.css":{dark:"dot-m_dark__1Njxl",light:"dot-m_light__27IA3"}},rr=function(e){var t=e.width,r=void 0===t?"3px":t,n=e.height,a=void 0===n?"3px":n,i=e.color,l=void 0===i?"light":i;return o.createElement("div",{className:T(l,tr)},o.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:r,height:a,viewBox:"0 0 3 3"},o.createElement("circle",{cx:"87",cy:"9",r:"1",fill:"inherit",fillRule:"nonzero",transform:"translate(-86 -8)"})))};rr.propTypes={color:t.string,width:t.string,height:t.string};var or={"./divider.m.css":{dark:"divider-m_dark__26FRi",light:"divider-m_light__w-7sy"}},nr=function(e){var t=e.width,r=void 0===t?"1":t,n=e.height,a=void 0===n?"10":n,i=e.color,l=void 0===i?"light":i;return o.createElement("div",{className:T(l,or)},o.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:r,height:a},o.createElement("path",{fill:"inherit",d:"M0 0h1v10H0z"})))};nr.propTypes={color:t.string,width:t.string,height:t.string};var ar={"./read-time.m.css":{"read-time-wrapper":"read-time-m_read-time-wrapper__3GyC_","dot-indicator":"read-time-m_dot-indicator__3Sqh2",dark:"read-time-m_dark__3yRaK",light:"read-time-m_light__1GAZu"}},ir=function(t){var r=t.story,n=t.opts,a=void 0===n?{}:n,i=t.isLightTheme,l=void 0!==i&&i,c=Vt()||{},s=e(c,["showReadTime"])||e(a,["showReadTime"],!0),u=e(r,["read-time"],0),d=l?"light":Ht(c.theme);if(!s||!u)return null;var m=e(a,["localizedTimeToRead"])||"min read";return o.createElement(o.Fragment,null,o.createElement("div",{"data-test-id":"read-time",className:"arrow-component arr--read-time "+T("read-time-wrapper ".concat(d),ar)},o.createElement("span",{className:"read-time-indicator read-time-m_dot-indicator__3Sqh2"},o.createElement(rr,{color:d})),o.createElement("span",null,u," ",m)))};ir.propTypes={story:t.shape({"read-time":t.number}),opts:t.shape({showReadTime:t.bool}),isLightTheme:t.bool};var lr={"./author-with-timestamp.m.css":{"author-time-wrapper":"author-with-timestamp-m_author-time-wrapper__G7_eI","author-image":"author-with-timestamp-m_author-image__24xrD",dot:"author-with-timestamp-m_dot__1LHXD","bottom-fix":"author-with-timestamp-m_bottom-fix__1rWGv",dash:"author-with-timestamp-m_dash__2L5XC"}},cr=function(t){var r=t.story,n=t.separator,a=t.isBottom,i=t.hideAuthorImage,l=t.prefix,c=t.config,s=void 0===c?{}:c,u=t.isLightTheme,d=Vt()||{},m=e(s,["showAuthor"],e(d,["showAuthor"],!0)),h=e(s,["showTime"],e(d,["showTime"],!0)),f=e(d,["showReadTime"],!0),p=a?"bottom-fix":"",g="dot"===n?"dot":"dash",v=u?"light":Ht(d.theme),_=function(){return h?o.createElement(o.Fragment,null,m&&o.createElement("span",{className:"arr-separator "+T("".concat(g),lr)},"divider"===n?o.createElement(nr,{color:v}):o.createElement(rr,{color:v})),o.createElement($t,{story:r,config:s}),f&&o.createElement(ir,{story:r,opts:s,isLightTheme:u})):null};return o.createElement("div",{className:"arr--author-time "+T("author-time-wrapper ".concat(p),lr)},m?o.createElement(o.Fragment,null,o.createElement(er,{story:r,isBottom:!0,hideAuthorImage:i,prefix:l}),_()):_())};cr.propTypes={story:t.object,separator:t.oneOf(["dot","divider"]),hideAuthorImage:t.bool,isBottom:t.bool,prefix:t.string,config:t.object,isLightTheme:t.bool},cr.defaultProps={separator:"dot",isBottom:!1,hideAuthorImage:!0,prefix:"",isLightTheme:!1};var sr={"./collection-name.m.css":{collection:"collection-name-m_collection__JD6sx","collection-borderLeft":"collection-name-m_collection-borderLeft__3Dznk","border-left":"collection-name-m_border-left__3_pYw","collection-borderBottomFull":"collection-name-m_collection-borderBottomFull__Dkq3K","collection-borderBottom":"collection-name-m_collection-borderBottom__2rdQM","collection-crossLine":"collection-name-m_collection-crossLine__1sIpN","border-bottom":"collection-name-m_border-bottom__1MnlV",dark:"collection-name-m_dark__nMe5H",light:"collection-name-m_light__1vFDN"}},ur=function(t){var r=t.collectionNameBorderColor,n=void 0===r?"":r,a=t.collection,i=t.config,l=t.collectionNameTemplate,c=t.headerLevel,s=t.customCollectionName,u=void 0===s?"":s,m=t.navigate,h=void 0===m||m,f=Vt()||{},p=e(f,["showRowTitle"],!0),g=["borderLeft","borderBottom","crossLine","borderBottomFull"].includes(l)?" collection-".concat(l):"",v=h&&a&&Dt(a,i)||"",_=u||a.name||"",y=Ht(f.theme),b="h"+c,w=Pt(n),E=g.includes("collection-borderBottomFull")?"4px solid ".concat(w):"",x=Bt("mobile");return o.createElement(o.Fragment,null,p&&_&&o.createElement("div",{style:{borderBottom:E},"data-test-id":"collection-name",className:("arr--collection-name arrow-component ".concat(g)?"arr--collection-name arrow-component ".concat(g)+" ":"")+T("collection ".concat(y," ").concat(g),sr)},g.includes("collection-borderLeft")&&o.createElement("span",{className:"arr-collection-name-border-left collection-name-m_border-left__3_pYw",style:{color:w,fontSize:function(){if(x)switch(c){case"1":return"32px";case"2":return"24px";case"3":default:return"20px";case"4":return"18px";case"5":case"6":return"16px"}switch(c){case"1":return"40px";case"2":return"32px";case"3":default:return"24px";case"4":return"20px";case"5":return"18px";case"6":return"16px"}}()}}),v&&!v.includes(void 0)?o.createElement(d,{href:v,"aria-label":"collection-name"},o.createElement(b,null,_)):o.createElement(b,null,_),g.includes("collection-borderBottom")&&!g.includes("collection-borderBottomFull")?o.createElement("div",{className:"collection-name-m_border-bottom__1MnlV",style:{borderBottom:"4px solid ".concat(w)}}):""))};ur.propTypes={collectionNameBorderColor:r.string,collection:r.object,config:r.object,collectionNameTemplate:r.oneOf(["","borderLeft","borderBottom","crossLine","borderBottomFull"]),headerLevel:r.string,customCollectionName:r.string,navigate:r.bool},ur.defaultProps={collectionNameTemplate:"",headerLevel:"3"};var dr=p((function(t){return{config:e(t,["qt","config"],{})}}))(ur),mr=function(e){var t=e.height,r=e.width,n=e.color,a=void 0===n?"#D8D8D8":n,i=e.positionTop;return o.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:r,height:t,viewBox:"0 0 40 40",style:{position:"relative",top:i}},o.createElement("g",{fill:"none",fillRule:"evenodd",stroke:"none",strokeWidth:"1"},o.createElement("g",null,o.createElement("g",{transform:"translate(8 8)"},o.createElement("path",{d:"M0 0H24V24H0z"}),o.createElement("g",{fill:a,fillRule:"nonzero",transform:"translate(0 2)"},o.createElement("path",{d:"M21.043 19.553c0-.743-.601-1.344-1.344-1.344h-15.4a1.343 1.343 0 100 2.688h15.4c.743 0 1.344-.603 1.344-1.344zM1.598 8.673c.022 0 .042 0 .064-.003l2.131 7.713h16.411l2.132-7.713c.022 0 .041.003.063.003a1.599 1.599 0 10-1.52-1.108L17.025 9.82 12.882 2.95a1.599 1.599 0 10-1.765 0L6.976 9.82 3.121 7.565a1.599 1.599 0 10-1.523 1.107z"}))))))};mr.propTypes={height:t.string,width:t.string,color:t.string,positionTop:t.string};var hr=function(e){var t=e.height,r=e.width,n=e.color,a=void 0===n?"#D5D5D5":n,i=e.positionTop;return o.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:r,height:t,viewBox:"0 0 40 40",style:{position:"relative",top:i}},o.createElement("g",{fill:"none",fillRule:"evenodd",stroke:"none",strokeWidth:"1"},o.createElement("g",null,o.createElement("g",{transform:"translate(8 8)"},o.createElement("path",{d:"M0 0H24V24H0z"}),o.createElement("path",{fill:a,fillRule:"nonzero",d:"M12.71 4.364A6.54 6.54 0 000 6.545a6.54 6.54 0 0012.71 2.182h4.745v4.364h4.363V8.727H24V4.364H12.71zM6.544 8.727a2.181 2.181 0 110-4.362 2.181 2.181 0 010 4.362z",transform:"translate(0 5)"})))))};hr.propTypes={height:t.string,width:t.string,color:t.string,positionTop:t.string};var fr=function(e){var t=e.height,r=e.width,n=e.color,a=void 0===n?"#D5D5D5":n,i=e.positionTop;return o.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:r,height:t,viewBox:"0 0 40 40",style:{position:"relative",top:i}},o.createElement("g",{fill:"none",fillRule:"evenodd",stroke:"none",strokeWidth:"1"},o.createElement("g",null,o.createElement("g",{transform:"translate(8 8)"},o.createElement("path",{d:"M0 0H24V24H0z"}),o.createElement("g",{fill:a,fillRule:"nonzero",transform:"translate(3)"},o.createElement("path",{d:"M15.692 9h-.747V6c0-3.31-2.681-6-5.978-6C5.67 0 2.989 2.69 2.989 6v3h-.747A2.249 2.249 0 000 11.25v10.5A2.249 2.249 0 002.242 24h13.45a2.249 2.249 0 002.242-2.25v-10.5A2.249 2.249 0 0015.692 9zM4.982 6c0-2.206 1.787-4 3.985-4s3.985 1.794 3.985 4v3h-7.97V6z"}))))))};fr.propTypes={height:t.string,width:t.string,color:t.string,positionTop:t.string};var pr=function(e){var t=e.width,r=e.height,n=e.color,a=void 0===n?"#D5D5D5":n,i=e.positionTop,l=void 0===i?"":i;return o.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:r,viewBox:"0 0 40 40",style:{position:"relative",top:l}},o.createElement("g",{fill:"none",fillRule:"evenodd",stroke:"none",strokeWidth:"1"},o.createElement("g",null,o.createElement("path",{fill:a,d:"M20 26L12.946577 29.7082039 14.2936609 21.854102 8.5873218 16.2917961 16.4732885 15.145898 20 8 23.5267115 15.145898 31.4126782 16.2917961 25.7063391 21.854102 27.053423 29.7082039z"}))))};pr.propTypes={height:t.string,width:t.string,color:t.string,positionTop:t.string};var gr=function(e){var t=e.width,r=e.height,n=e.color,a=e.iconType,i=e.positionTop;switch(a){case"crown":return o.createElement(mr,{width:t,height:r,color:n,positionTop:i});case"lock":return o.createElement(fr,{width:t,height:r,color:n,positionTop:i});case"key":return o.createElement(hr,{width:t,height:r,color:n,positionTop:i});default:return o.createElement(pr,{width:t,height:r,color:n,positionTop:i})}};function vr(){return o.createElement("svg",{className:"live-icon",xmlns:"http://www.w3.org/2000/svg",width:"25",height:"24",viewBox:"0 0 25 24"},o.createElement("path",{fill:"#ff5858",d:"M12 18a6 6 0 110-12 6 6 0 010 12zm0 2.5a8.5 8.5 0 110-17 8.5 8.5 0 010 17zm0-1a7.5 7.5 0 100-15 7.5 7.5 0 000 15z"}))}gr.propTypes={width:t.string,height:t.string,color:t.string,iconType:t.string,positionTop:t.string};var _r={"./headline.m.css":{wrapper:"headline-m_wrapper__3nUmh",headline:"headline-m_headline__3_NhV",dark:"headline-m_dark__en3hW",light:"headline-m_light__3lKJB"}},yr=function(t){var r=t.story,n=t.headerLevel,a=t.premiumStoryIconConfig,i=void 0===a?{}:a,l=t.isLink,c=Vt()||{},s=i.iconColor,u=void 0===s?"#F7B500":s,m=i.iconStyle,h=void 0===m?"star":m,f=i.enablePremiumStoryIcon,p=void 0!==f&&f,g=i.showLiveIcon,v=void 0!==g&&g,_=e(r,["alternative","home","default","headline"]),y=p&&"subscription"===e(r,["access"]),b=_||r.headline,w="h"+n,E=Ht(c.theme),x=y?"wrapper":"",k="24px",L=v&&"live-blog"===r["story-template"]&&!e(r,["metadata","is-closed"],!1);return o.createElement("div",{"data-test-id":"headline",className:"arrow-component arr--headline "+T(x,_r)},y&&o.createElement(gr,{width:k,height:k,color:u,iconType:h,positionTop:function(){switch(parseInt(n)){case 1:return"-2px";case 2:return"2px";case 3:return"4px";case 4:return"5px";default:return"6px"}}()}),l?o.createElement(d,{href:Ut(r,"/".concat(r.slug)),externalLink:Wt(r),"aria-label":"headline"},o.createElement(w,{className:T("headline ".concat(E),_r)},L&&o.createElement(vr,null),b)):o.createElement(w,{className:T("headline ".concat(E),_r)},L&&o.createElement(vr,null),b))};yr.propTypes={story:t.object.isRequired,headerLevel:t.string,premiumStoryIconConfig:t.shape({iconColor:t.string,iconType:t.string,enablePremiumStoryIcon:t.bool}),isLink:t.bool},yr.defaultProps={headerLevel:"6",isLink:!0};var br=function(e){var t=e.width,r=void 0===t?40:t,n=e.height,a=void 0===n?30:n,i=e.iconColor,l=void 0===i?"#99B0CB":i;return o.createElement("svg",{width:r,height:a,viewBox:"0 0 102 76",version:"1.1"},o.createElement("g",{id:"demo-home-copy",stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",transform:"translate(-377.000000, -314.000000)"},o.createElement("g",{id:"Group-13",transform:"translate(377.000000, 314.000000)"},o.createElement("path",{d:"M43.2,49.7 L62.2,19.2 L87.2,59.4 L17,59.4 L32.8,39.4 L43.2,49.7 Z M29.9,28.6 C25.8683213,28.6 22.6,25.3316787 22.6,21.3 C22.6,17.2683213 25.8683213,14 29.9,14 C33.9316787,14 37.2,17.2683213 37.2,21.3 C37.2,25.3316787 33.9316787,28.6 29.9,28.6 Z",id:"Combined-Shape",fill:l,fillRule:"nonzero"}),o.createElement("rect",{id:"Rectangle-19",stroke:l,strokeWidth:"3",x:"1.5",y:"1.5",width:"99",height:"73",rx:"3"}))))};br.propTypes={width:t.object,height:t.object,iconColor:t.object};var wr=function(){return o.createElement("div",{className:"arr--fallback-image fallback-m_image__1GYCJ fallback-m_image-position__3KddP"},o.createElement("figure",{className:"arr--fallback-svg fallback-m_fallback-svg__tK9fL"},o.createElement(br,null)))},Er=function(e){var t=e.slug;return t?o.createElement(d,{href:t,"aria-label":"image-fallback"},wr()):wr()};Er.propTypes={slug:t.string};var xr=function(){return o.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"36",height:"28"},o.createElement("g",{fill:"none",fillRule:"evenodd"},o.createElement("rect",{width:"36",height:"28",fill:"#3D6FCF",rx:"4"}),o.createElement("path",{stroke:"#FFF",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M22 14.667v4c0 .736-.597 1.333-1.333 1.333h-7.334A1.333 1.333 0 0112 18.667v-7.334c0-.736.597-1.333 1.333-1.333h4M20 8h4v4m-7.333 3.333L24 8"})))},kr=function(e){var t=e.hyperLink,r=void 0===t?"":t;return r?o.createElement(d,{href:r,"aria-label":"hyperlink-button",className:"arr--hyperlink-button hyperlink-m_hyperlink-button__1CqWx",target:"_blank",rel:"noopener noreferrer"},o.createElement(xr,null)):null};kr.propTypes={hyperLink:t.string};var Lr={"./hero-image.m.css":{"hero-image":"hero-image-m_hero-image__3lraV","right-padding":"hero-image-m_right-padding__1LkCe","left-padding":"hero-image-m_left-padding__pYRAj","right-padding-mob":"hero-image-m_right-padding-mob__3-uOU",placeholder:"hero-image-m_placeholder__1omCm","hero-image-mob":"hero-image-m_hero-image-mob__13JJp","with-padding":"hero-image-m_with-padding__324G_",image:"hero-image-m_image__1mz0U"}},Tr=function(t){var r=t.story,n=t.FullBleed,a=t.aspectRatio,i=t.defaultWidth,l=t.widths,c=t.isHorizontal,s=t.isHorizontalMobile,u=t.isHorizontalWithImageLast,m=t.defaultFallback,f=t.isStoryPageImage,p=t.config,v=(Vt()||{}).fallbackImageUrl,_=void 0===v?"":v,y=p.StoryTemplateIcon,b=void 0===y?function(){return null}:y,E=g((function(t){return e(t,["qt","config","showPlaceholder"])}))?"placeholder":"",x=n?"":"with-padding",k="hero-image";c?k="right-padding":u&&(k="left-padding");var L=s?"right-padding-mob":"",j=function(e){var t=w(e,2),r=t[0],o=t[1];return r>0&&o>0?o/r*100:0},z=w(a,2),O=z[0],N=z[1],C=void 0===N?O:N,S=Bt("mobile"),A=S?O:C,I=j(S?O:C),M=e(r,["hero-image-s3-key"])||e(r,["alternative","home","default","hero-image","hero-image-s3-key"]),R=e(r,["hero-image-hyperlink"],""),P=function(){return M?o.createElement(o.Fragment,null,o.createElement("figure",{style:{paddingTop:I+"%"},className:"arr--responsive-hero-image "+T("image ".concat(E),Lr)},o.createElement(b,{storyTemplate:r["story-template"]}),o.createElement(h,{story:r,aspectRatio:A,defaultWidth:i,widths:l,imgParams:{auto:["format","compress"],fit:"max"}})),f&&R&&o.createElement(kr,{hyperLink:R})):_&&!f?o.createElement("figure",{style:{paddingTop:I+"%"},className:"arr--responsive-hero-image "+T("image ".concat(E),Lr)},o.createElement("img",{className:"qt-image","data-src":"".concat(_),alt:"image-fallback"})):o.createElement(o.Fragment,null,m?o.createElement("div",{"data-test-id":"arr--fallback-hero-image",style:{paddingTop:I+"%"},className:"arr--fallback-hero-image "+T("image ".concat(E),Lr)},o.createElement(b,{storyTemplate:r["story-template"]}),o.createElement(Er,null)):null)};return r&&(f?o.createElement("div",{"data-test-id":"arr--hero-image",className:"arr--hero-image "+T("".concat(k," ").concat(x," ").concat(L),Lr)},P()):o.createElement(d,{"data-test-id":"arr--hero-image",href:Ut(r,"/".concat(r.slug)),externalLink:Wt(r),"aria-label":"fallback-hero-image",className:"arr--hero-image "+T("".concat(k," ").concat(x," ").concat(L),Lr)},P()))};Tr.propTypes={story:t.object.isRequired,FullBleed:t.bool,defaultWidth:t.number,widths:t.array,aspectRatio:t.array,isHorizontal:t.bool,isHorizontalMobile:t.bool,defaultFallback:t.bool,isHorizontalWithImageLast:t.bool,isStoryPageImage:t.bool,config:t.object},Tr.defaultProps={FullBleed:!0,aspectRatio:[[1,1],[16,9]],defaultWidth:480,widths:[250,480,640],isHorizontal:!1,isHorizontalMobile:!1,defaultFallback:!0,isStoryPageImage:!1,isHorizontalWithImageLast:!1,config:{}};var jr={"./section.m.css":{section:"section-m_section__2N4S3","section-borderBottomSml":"section-m_section-borderBottomSml__2GNbo","border-bottom":"section-m_border-bottom__3cRoD","section-borderLeft":"section-m_section-borderLeft__3hKVj","border-left":"section-m_border-left__2oUyp","section-solid":"section-m_section-solid__1vB1Q",dark:"section-m_dark__1r3C4",light:"section-m_light__306hW"}},zr=function(t){var r=t.story,n=t.template,a=void 0===n?"":n,i=t.borderColor,l=void 0===i?"":i,c=t.isLightTheme,s=Vt()||{},u=e(s,["showSection"],!0),m=e(s,["sectionTagTemplate"]),h=e(r,["sections",0],""),f=["borderBottomSml","borderLeft","solid"],p=h?h["section-url"]:"/",g="solid"===a||"solid"===m?l:s.theme,v=c?"light":Ht(g),_=Pt(l),y=f.includes(a)?"section section-".concat(a):"section";return m&&(y=f.includes(m)?"section section-".concat(m):"section"),u?o.createElement(d,{href:p,className:"arrow-component arr--section-name","aria-label":"section-name"},o.createElement("div",{"data-test-id":"sectionTag",style:{backgroundColor:y.includes("section-solid")?_:""},className:"section-tag arrow-component "+T("".concat(v," ").concat(y),jr)},y.includes("section-borderLeft")&&o.createElement("span",{className:"section-m_border-left__2oUyp",style:{color:_}}),h["display-name"]||h.name,o.createElement("div",{className:"section-m_border-bottom__3cRoD",style:{backgroundColor:"".concat("solid"===a?"":_)}}))):null};zr.propTypes={story:t.object.isRequired,template:t.oneOf(["","borderBottomSml","borderLeft","solid"]),borderColor:t.string,solidBorderColor:t.string,isLightTheme:t.bool},zr.defaultProps={template:"",isLightTheme:!1};var Or={"./subheadline.m.css":{subheadline:"subheadline-m_subheadline__3fd7z",dark:"subheadline-m_dark__28u00",light:"subheadline-m_light__2YUOe"}},Nr=function(t){var r=t.story,n=t.truncateChars,a=void 0===n?200:n,i=t.lineClamp,l=t.clazzName,c=void 0===l?"":l,s=t.forceShowAtom,u=t.showFullContent,d=Vt()||{};if(!(s||e(d,["showSubheadline"],!0)))return null;var m=Ht(d.theme);return o.createElement("div",{style:{WebkitLineClamp:i},"data-test-id":"subheadline",className:("p-alt arr--sub-headline arrow-component ".concat(c)?"p-alt arr--sub-headline arrow-component ".concat(c)+" ":"")+T("subheadline ".concat(m),Or)},u||"number"==typeof i?r.subheadline:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:60,r=arguments.length>2&&void 0!==arguments[2]&&!arguments[2]?"":" ...";return"string"==typeof e&&e.length>t?e.substring(0,t)+r:e}(r.subheadline,a,!0))};Nr.propTypes={story:t.object.isRequired,lineClamp:t.number,truncateChars:t.number,clazzName:t.string,forceShowAtom:t.bool,showFullContent:t.bool},Nr.defaultProps={forceShowAtom:!1,showFullContent:!1};var Cr={"./storycard.m.css":{"author-timestamp-wrapper":"storycard-m_author-timestamp-wrapper__20yjp","default-card":"storycard-m_default-card__1-POn","horizontal-card":"storycard-m_horizontal-card___7afz","backgroung-img":"storycard-m_backgroung-img__1FMJT","content-overlap":"storycard-m_content-overlap__1yNHR","border-full":"storycard-m_border-full__1nhy7",light:"storycard-m_light__3EhXN",dark:"storycard-m_dark__2wCTq","border-bottom":"storycard-m_border-bottom__2_E-I","border-boxShadow":"storycard-m_border-boxShadow__2-k3Z","center-align":"storycard-m_center-align__1Sn8-","content-bottom":"storycard-m_content-bottom__1QHeC","content-full":"storycard-m_content-full__2zJmU","content-boxShadow":"storycard-m_content-boxShadow__2IAWZ","hero-image":"storycard-m_hero-image__1H3MB","right-padding":"storycard-m_right-padding__12-lQ","horizontal-mob":"storycard-m_horizontal-mob__17JG2",content:"storycard-m_content__1Q9vq","border-default":"storycard-m_border-default__PEZ1x",card:"storycard-m_card__KJwRa","horizontal-image-last":"storycard-m_horizontal-image-last__3o6LY"}},Sr=function(e){var t=e.story,r=e.children,n=e.isHorizontal,a=e.aspectRatio,i=e.border,l=e.useImageAsBackground,c=e.bgImgContentOverlap,s=e.theme,u=e.borderColor,d=e.isHorizontalMobile,m=e.centerAlign,h=e.headerLevel,f=e.hideAuthorImage,p=e.prefix,g=e.config,v=e.isHorizontalWithImageLast;if(!t||qt(t))return o.createElement("div",null);var _=["default","full","bottom","boxShadow"].includes(i)?"border-".concat(i):"",y="default-card";n?y="horizontal-card":v&&(y="horizontal-image-last");var b=l?"backgroung-img":"",w=c?"content-overlap":"",E=Ht(s),x=d?"horizontal-mob":"",k=o.createElement(Ar,{story:t,aspectRatio:a,border:i,isHorizontalMobile:d,isHorizontal:n,centerAlign:m,headerLevel:h,borderColor:u,hideAuthorImage:f,prefix:p,config:g,isHorizontalWithImageLast:v});return o.createElement("div",{"data-test-id":"story-card",style:{backgroundColor:s,color:E},className:"arr--story-card "+T("card ".concat(y," ").concat(_," ").concat(E," ").concat(b," ").concat(w," ").concat(x),Cr)},r||k)},Ar=function(e){var t=e.story;e.border;var r=e.isHorizontal,n=e.aspectRatio,a=e.headerLevel,i=e.isHorizontalMobile,l=void 0!==i&&i,c=e.centerAlign,s=void 0!==c&&c,u=e.borderColor,d=e.hideAuthorImage,m=e.prefix,h=e.isHorizontalWithImageLast,f=e.config,p=s?"center-align":"",g=Pt(u),v=f.localizationConfig,_=void 0===v?{}:v;return o.createElement(o.Fragment,null,r?o.createElement(Tr,{config:f,story:t,isHorizontal:!0,isHorizontalMobile:l,aspectRatio:n}):h?o.createElement(Tr,{config:f,story:t,isHorizontalWithImageLast:!0,isHorizontalMobile:l,aspectRatio:n}):o.createElement(Tr,{story:t,config:f,isHorizontalMobile:l,aspectRatio:n}),o.createElement("div",{className:"arr--story-content "+T("content ".concat(p),Cr)},o.createElement(zr,{story:t,borderColor:g}),o.createElement(yr,{story:t,headerLevel:a,premiumStoryIconConfig:f}),o.createElement(cr,{config:_,story:t,isBottom:!0,prefix:m,hideAuthorImage:d}),o.createElement(Nr,{story:t})))};Ar.propTypes={story:t.object.isRequired,border:t.oneOfType([t.string]),isBottom:t.bool,isHorizontal:t.bool,aspectRatio:t.oneOfType([t.array]),isHorizontalMobile:t.bool,centerAlign:t.bool,headerLevel:t.string,borderColor:t.string,hideAuthorImage:t.bool,prefix:t.string,config:t.object,isHorizontalWithImageLast:t.bool},Sr.propTypes={story:t.object.isRequired,children:t.node,isHorizontal:t.bool,border:t.oneOfType([t.string]),useImageAsBackground:t.bool,bgImgContentOverlap:t.bool,aspectRatio:t.oneOfType([t.array]),theme:t.string,isHorizontalMobile:t.bool,centerAlign:t.bool,headerLevel:t.string,borderColor:t.string,hideAuthorImage:t.bool,prefix:t.string,config:t.object,isHorizontalWithImageLast:t.bool},Sr.defaultProps={isHorizontal:!1,isHorizontalMobile:!1,border:"default",theme:"",centerAlign:!1,borderColor:"",isHorizontalWithImageLast:!1};var Ir=function(e){var t=e.color,r=void 0===t?"#333":t;return o.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},o.createElement("path",{fill:r,fillRule:"evenodd",d:"M12 19.75a7.513 7.513 0 003.875-1.047 7.832 7.832 0 002.828-2.828A7.513 7.513 0 0019.75 12a7.513 7.513 0 00-1.047-3.875c-.698-1.187-1.64-2.13-2.828-2.828S13.395 4.25 12 4.25a7.51 7.51 0 00-3.875 1.047c-1.188.698-2.13 1.64-2.828 2.828S4.25 10.605 4.25 12a7.51 7.51 0 001.047 3.875 7.824 7.824 0 002.828 2.828A7.513 7.513 0 0012 19.75zm.016-1a6.64 6.64 0 01-3.391-.906 6.716 6.716 0 01-2.469-2.453 6.563 6.563 0 01-.906-3.375c0-1.22.302-2.35.906-3.391A6.711 6.711 0 018.61 6.156a6.563 6.563 0 013.375-.906c1.22 0 2.35.302 3.391.906a6.716 6.716 0 012.469 2.453A6.592 6.592 0 0118.751 12a6.616 6.616 0 01-.906 3.375 6.716 6.716 0 01-2.453 2.469 6.563 6.563 0 01-3.375.906zm2.283-3.92l.076-.002a.343.343 0 00.25-.14l.25-.375a.365.365 0 00.078-.266.328.328 0 00-.14-.234l-2.22-1.625V7.625a.362.362 0 00-.109-.266.36.36 0 00-.265-.109h-.438a.357.357 0 00-.265.11.358.358 0 00-.11.265v5c0 .125.052.219.156.281l2.532 1.844a.383.383 0 00.281.078l-.076.001z"}))};Ir.propTypes={color:t.string};var Mr={"./load-more.m.css":{button:"load-more-m_button__1mmf1",default:"load-more-m_default__2_k4V",dark:"load-more-m_dark__3dfzb",light:"load-more-m_light__ePZQI"}};function Rr(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,o)}return r}function Pr(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Rr(Object(r),!0).forEach((function(t){v(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Rr(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var Fr=function(e){var t=e.config,r=void 0===t?{}:t,n=e.collection,a=e.template,i=void 0===a?"SubsequentLoadCount":a,l=e.onClick,c=e.navigate,s=e.qtConfig,u=r.showButton,d=void 0===u||u,m=r.buttonText,h=void 0===m?"Read More":m,p=r.theme,g=void 0===p?"":p,v=r.customUrlPath,_=void 0===v?"":v;if(!d)return null;var y=Ht(g),b=_?"/".concat(_):function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2?arguments[2]:void 0;if(r)return r;var o=t.magazineSlug,n=void 0===o?"":o,a=t.isArchivePage;return void 0!==a&&a?"/magazine/archive/".concat(n):n?"/magazine/".concat(n,"/").concat(e.slug):e?Dt(e,t):"/"}(n,Pr(Pr({},s),r));return"SubsequentLoadCount"===i?o.createElement("div",{onClick:l,"data-test-id":"load-more",className:"arr--button "+T("button ".concat(y," default"),Mr)},h):o.createElement(f,{href:b,navigateTo:c,"data-test-id":"load-more","aria-label":"load-more"},o.createElement("div",{className:"arr--button "+T("button ".concat(y," default"),Mr)},h))};Fr.propTypes={collection:t.object,template:t.string,config:t.object,onClick:t.func,navigate:t.func,qtConfig:t.object};var Br={"./key-events.m.css":{container:"key-events-m_container__1slhR","event-title":"key-events-m_event-title__u9bt3","cards-wrapper":"key-events-m_cards-wrapper__3f8aB","time-wrapper":"key-events-m_time-wrapper__2poXn",dark:"key-events-m_dark__hrnAr",light:"key-events-m_light__2gE0a",borderNone:"key-events-m_borderNone__2tNUK","fade-out":"key-events-m_fade-out__11jv_"}},Hr=function(e){var t=e.config,r=e.index,n=e.cardLength,a=e.card,i=void 0===a?{}:a,l=e.slug,c=e.loadCards,s=e.showLoadMore,u=i["card-added-at"],d=i["story-elements"],m=void 0===d?[]:d,h=i.id,f=t.theme,p=t.mountAt,g=void 0===p?"":p,v=Ht(f),_="dark"===v?"#333":"#fff",y=r===n-1,b=y?"borderNone":"";return o.createElement(o.Fragment,null,o.createElement("div",{className:T("time-wrapper ".concat(v),Br)},o.createElement(Ir,{color:_}),Zt(u,At,{showTime:!0,isTimeFirst:!0})),o.createElement("a",{href:"".concat(g,"/").concat(l,"#").concat(h),"aria-label":"event-title"},o.createElement("div",{className:T("event-title ".concat(v," ").concat(b),Br)},m.map((function(e,t){return"title"===e.type&&o.createElement("h3",{key:t},e.text)})),s&&y&&c&&o.createElement("div",{className:"key-events-m_fade-out__11jv_",style:{backgroundImage:"linear-gradient(to bottom, transparent, ".concat(f,")")}}))))};Hr.propTypes={card:t.shape({"card-added-at":t.number,"story-elements":t.array,id:t.string}),config:t.object,slug:t.string,story:t.object,elements:t.array,index:t.number,cardLength:t.number,loadCards:t.bool,showLoadMore:t.bool};var Dr=function(t){var r=t.story,n=void 0===r?{}:r,a=t.config,l=void 0===a?{}:a,c=t.showLoadMore,s=void 0===c||c,u=e(n,["cards"],[]),d=l.theme,m=l.initialLoadCount,h=void 0===m?4:m,f=Ht(d),p=w(i(h),2),v=p[0],_=p[1],y=u.filter((function(t){return e(t.metadata,["attributes","key-event"])})),b=y.length>v,E=g((function(t){return e(t,["qt","config"],{})}));if(y.length<1)return null;var x=(s?y.slice(0,v):y.slice(0,4)).map((function(e,t,r){return o.createElement(Hr,{cardLength:r.length,card:e,key:e.id,slug:n.slug,config:l,index:t,loadCards:b,showLoadMore:s})}));return o.createElement("div",{style:{background:d},className:"arrow-component "+T("container ".concat(f),Br)},o.createElement("h3",null,"Key Events"),o.createElement("div",{className:"key-events-m_cards-wrapper__3f8aB"},x),s&&b&&o.createElement(Fr,{onClick:function(){_(v+h)},template:"SubsequentLoadCount",config:l,qtConfig:E}))};Dr.propTypes={story:t.object,config:t.object,showLoadMore:t.bool};var Wr=Kt(Dr);function qr(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,o)}return r}function Ur(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?qr(Object(r),!0).forEach((function(t){v(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):qr(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var Gr={"./aside-collection.m.css":{stories:"aside-collection-m_stories__9wfUs",wrapper:"aside-collection-m_wrapper__2TJi5",story:"aside-collection-m_story__17Jdm","story-hero-image":"aside-collection-m_story-hero-image__13nFY","story-byline":"aside-collection-m_story-byline__37KRG",info:"aside-collection-m_info__3p4zt",dark:"aside-collection-m_dark__2ElwM",light:"aside-collection-m_light__2lEO2","ad-slot":"aside-collection-m_ad-slot__28nE2","horizontal-wrapper":"aside-collection-m_horizontal-wrapper__3-KW0",sticky:"aside-collection-m_sticky__AZXBP"}},Zr=function(t){var r=t.data,n=t.slotData,a=t.horizontal,c=t.config,s=t.opts,u=n||c,d=u.theme,m=void 0===d?"":d,h=u.title,f=void 0===h?"":h,p=u.collectionSlug,g=void 0===p?"":p,v=f||"Related Stories",_=a?"horizontal-wrapper":"",b=e(c,["mountAtPrefix"],""),E=w(i([]),2),x=E[0],k=E[1],L=w(i([]),2),T=L[0],z=L[1],O=function(){var e=y(j.mark((function e(t){var r,o;return j.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Gt(t,b);case 2:r=e.sent,z(r),o=r.items,k(o);case 6:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();return l((function(){g&&O(g)}),[g]),l((function(){if(!g&&r){var e=r.items||r;k(e)}}),[r,g]),o.createElement(o.Fragment,null,o.createElement(dr,{customCollectionName:v,textColor:!0,collection:T}),o.createElement("div",{className:"aside-collection-m_stories__9wfUs"},x&&x.length>0?x.slice(0,4).map((function(e){var t=e.story||e;return o.createElement("div",{className:"aside-collection-m_story__17Jdm",key:t.id},o.createElement(Sr,{story:t,isHorizontal:!0,theme:m,config:c},o.createElement("div",{className:"aside-collection-m_story-hero-image__13nFY"},o.createElement(Tr,{story:t,aspectRatio:[[4,3]]})),o.createElement("div",null,_&&o.createElement(zr,{story:t}),o.createElement(yr,{story:t}),o.createElement("div",{className:"aside-collection-m_story-byline__37KRG"},o.createElement(cr,{config:s,story:t})))))})):o.createElement("div",{"data-test-id":"no-stories",className:"aside-collection-m_info__3p4zt"},"No stories found.")))};Zr.propTypes={data:t.oneOfType([t.object,t.array]),config:t.object,horizontal:t.bool,slotData:t.object,opts:t.object};var Jr=function(e){var t=e.data,r=void 0===t?{}:t,n=e.config,a=void 0===n?{}:n,i=e.horizontal,l=void 0!==i&&i,c=e.slots,s=void 0===c?[]:c,u=e.sticky,d=void 0!==u&&u,m=e.keyEventsData,h=void 0===m?{}:m,f=e.enableKeyEvents,p=void 0!==f&&f,g=e.adComponent,v=e.widgetComp,_=e.storyId,y=e.opts,b=void 0===y?{}:y;if(qt(r))return null;var w=a.theme,E=l?"horizontal-wrapper":"";if(l)return o.createElement("div",{style:{backgroundColor:w},"data-test-id":"aside-collection",id:"aside-collection-".concat(_),className:"arrow-component arr--aside-collection "+T("wrapper ".concat(E),Gr)},o.createElement(Zr,{data:r,horizontal:l,config:a,opts:b}));var x=d?"sticky":"";return o.createElement("div",{style:{backgroundColor:w},"data-test-id":"aside-collection",className:"arrow-component arr--aside-collection "+T(["wrapper",E,x].join(" "),Gr)},p&&o.createElement(Wr,{story:h.story,showLoadMore:h.showLoadMore,config:h.config}),s.map((function(e,t){return function(e,t,n){switch(e){case"ad":return o.createElement("div",{className:"aside-collection-ad-slot aside-collection-m_ad-slot__28nE2"},g(Ur(Ur({},t),{},{id:"ad-".concat(n,"_").concat(_)})));case"widget":return o.createElement("div",{className:"aside-collection-ad-slot aside-collection-m_ad-slot__28nE2"},v(Ur(Ur({},t),{},{id:"widget-".concat(n,"_").concat(_)})));case"collection":return o.createElement("div",{id:"aside-collection-".concat(n,"_").concat(_)},o.createElement(Zr,{slotData:t,data:r,horizontal:l,config:a,opts:b}))}}(e.type,e,t)})))};Jr.propTypes={data:t.oneOfType([t.object,t.array]),config:t.object,opts:t.object,horizontal:t.bool,slots:t.array,adComponent:t.func,widgetComp:t.func,sticky:t.bool,keyEventsData:t.shape({story:t.object,config:t.object,showLoadMore:t.boolean}),enableKeyEvents:t.boolean,storyId:t.string};var Kr=Kt(Jr);export{Zr as StoryCollection,Kr as default};
@@ -0,0 +1 @@
1
+ import t,{useContext as e,createContext as r}from"react";import n from"prop-types";import{Link as o}from"@quintype/components";import"react-timeago";import"date-fns-tz";function a(){return a=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},a.apply(this,arguments)}function i(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r,n,o={},a=Object.keys(t);for(n=0;n<a.length;n++)r=a[n],e.indexOf(r)>=0||(o[r]=t[r]);return o}(t,e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(n=0;n<a.length;n++)r=a[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}var c="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function u(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function s(t){var e={exports:{}};return t(e,e.exports),e.exports}var l=s((function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r={attributeNames:{styleName:"className"},generateScopedName:"[path]___[name]__[local]___[hash:base64:5]",handleMissingStyleName:"throw"};e.default=r})),h=u(s((function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r,n=(r=l)&&r.__esModule?r:{default:r};var o=function(t,e){if("throw"===e)throw new Error(t);return"warn"===e&&console.warn(t),null};e.default=function(t,e,r){var a=Object.keys(e),i=r||{},c=i.handleMissingStyleName,u=void 0===c?n.default.handleMissingStyleName:c,s=i.autoResolveMultipleImports,l=void 0===s?n.default.autoResolveMultipleImports:s;return t?t.split(" ").filter((function(t){return t})).map((function(t){if(function(t){return-1!==t.indexOf(".")}(t))return function(t,e,r){var a=t.split("."),i=a[0],c=a[1],u=r||n.default.handleMissingStyleName;return c?e[i]?e[i][c]?e[i][c]:o("CSS module does not exist: "+c,u):o("CSS module import does not exist: "+i,u):o("Invalid style name: "+t,u)}(t,e,u);if(0===a.length)throw new Error("Cannot use styleName attribute for style name '"+t+"' without importing at least one stylesheet.");if(a.length>1){if(!l)throw new Error("Cannot use anonymous style name '"+t+"' with more than one stylesheet import without setting 'autoResolveMultipleImports' to true.");return function(t,e,r){var a=r||n.default.handleMissingStyleName,i=Object.keys(e).map((function(r){return e[r][t]&&r})).filter((function(t){return t}));if(i.length>1)throw new Error('Cannot resolve styleName "'+t+'" because it is present in multiple imports:\n\n\t'+i.join("\n\t")+'\n\nYou can resolve this by using a named import, e.g:\n\n\timport foo from "'+i[0]+'";\n\t<div styleName="foo.'+t+'" />\n\n');return 0===i.length?o("Could not resolve the styleName '"+t+"'.",a):e[i[0]][t]}(t,e,u)}var r=e[a[0]];return r[t]?r[t]:o("Could not resolve the styleName '"+t+"'.",u)})).filter((function(t){return t})).join(" "):""}}))),f=["element","render"],p=function(e){return function(r){var n=r.element,o=r.render,c=i(r,f);return n?o&&"function"==typeof o?o(r):t.createElement(e,a({},c,{element:n})):null}};p.propTypes={StoryElement:n.element};var v=r();s((function(t){var e=function(t){var e,r=Object.prototype,n=r.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",i=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,r){return t[e]=r}}function s(t,e,r,n){var o=e&&e.prototype instanceof m?e:m,a=Object.create(o.prototype),i=new L(n||[]);return a._invoke=function(t,e,r){var n=h;return function(o,a){if(n===p)throw new Error("Generator is already running");if(n===v){if("throw"===o)throw a;return k()}for(r.method=o,r.arg=a;;){var i=r.delegate;if(i){var c=E(i,r);if(c){if(c===d)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(n===h)throw n=v,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n=p;var u=l(t,e,r);if("normal"===u.type){if(n=r.done?v:f,u.arg===d)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(n=v,r.method="throw",r.arg=u.arg)}}}(t,r,i),a}function l(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=s;var h="suspendedStart",f="suspendedYield",p="executing",v="completed",d={};function m(){}function y(){}function _(){}var g={};u(g,a,(function(){return this}));var w=Object.getPrototypeOf,b=w&&w(w(P([])));b&&b!==r&&n.call(b,a)&&(g=b);var j=_.prototype=m.prototype=Object.create(g);function O(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function x(t,e){function r(o,a,i,c){var u=l(t[o],t,a);if("throw"!==u.type){var s=u.arg,h=s.value;return h&&"object"==typeof h&&n.call(h,"__await")?e.resolve(h.__await).then((function(t){r("next",t,i,c)}),(function(t){r("throw",t,i,c)})):e.resolve(h).then((function(t){s.value=t,i(s)}),(function(t){return r("throw",t,i,c)}))}c(u.arg)}var o;this._invoke=function(t,n){function a(){return new e((function(e,o){r(t,n,e,o)}))}return o=o?o.then(a,a):a()}}function E(t,r){var n=t.iterator[r.method];if(n===e){if(r.delegate=null,"throw"===r.method){if(t.iterator.return&&(r.method="return",r.arg=e,E(t,r),"throw"===r.method))return d;r.method="throw",r.arg=new TypeError("The iterator does not provide a 'throw' method")}return d}var o=l(n,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,d;var a=o.arg;return a?a.done?(r[t.resultName]=a.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,d):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,d)}function N(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function S(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function L(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(N,this),this.reset(!0)}function P(t){if(t){var r=t[a];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function r(){for(;++o<t.length;)if(n.call(t,o))return r.value=t[o],r.done=!1,r;return r.value=e,r.done=!0,r};return i.next=i}}return{next:k}}function k(){return{value:e,done:!0}}return y.prototype=_,u(j,"constructor",_),u(_,"constructor",y),y.displayName=u(_,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===y||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,_):(t.__proto__=_,u(t,c,"GeneratorFunction")),t.prototype=Object.create(j),t},t.awrap=function(t){return{__await:t}},O(x.prototype),u(x.prototype,i,(function(){return this})),t.AsyncIterator=x,t.async=function(e,r,n,o,a){void 0===a&&(a=Promise);var i=new x(s(e,r,n,o),a);return t.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},O(j),u(j,c,"Generator"),u(j,a,(function(){return this})),u(j,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=[];for(var r in t)e.push(r);return e.reverse(),function r(){for(;e.length;){var n=e.pop();if(n in t)return r.value=n,r.done=!1,r}return r.done=!0,r}},t.values=P,L.prototype={constructor:L,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(S),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function o(n,o){return c.type="throw",c.arg=t,r.next=n,o&&(r.method="next",r.arg=e),!!o}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],c=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var u=n.call(i,"catchLoc"),s=n.call(i,"finallyLoc");if(u&&s){if(this.prev<i.catchLoc)return o(i.catchLoc,!0);if(this.prev<i.finallyLoc)return o(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return o(i.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return o(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,d):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),d},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),S(r),d}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;S(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:P(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),d}},t}(t.exports);try{regeneratorRuntime=e}catch(t){"object"==typeof globalThis?globalThis.regeneratorRuntime=e:Function("r","regeneratorRuntime = r")(e)}}));var d="object"==typeof c&&c&&c.Object===Object&&c,m="object"==typeof self&&self&&self.Object===Object&&self,y=d||m||Function("return this")(),_=y.Symbol,g=Object.prototype,w=g.hasOwnProperty,b=g.toString,j=_?_.toStringTag:void 0;var O=function(t){var e=w.call(t,j),r=t[j];try{t[j]=void 0;var n=!0}catch(t){}var o=b.call(t);return n&&(e?t[j]=r:delete t[j]),o},x=Object.prototype.toString;var E=function(t){return x.call(t)},N=_?_.toStringTag:void 0;var S=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":N&&N in Object(t)?O(t):E(t)};var L=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)};var P,k=function(t){if(!L(t))return!1;var e=S(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e},F=y["__core-js_shared__"],T=(P=/[^.]+$/.exec(F&&F.keys&&F.keys.IE_PROTO||""))?"Symbol(src)_1."+P:"";var I=function(t){return!!T&&T in t},M=Function.prototype.toString;var z=function(t){if(null!=t){try{return M.call(t)}catch(t){}try{return t+""}catch(t){}}return""},C=/^\[object .+?Constructor\]$/,R=Function.prototype,A=Object.prototype,G=R.toString,$=A.hasOwnProperty,D=RegExp("^"+G.call($).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var U=function(t){return!(!L(t)||I(t))&&(k(t)?D:C).test(z(t))};var Y=function(t,e){return null==t?void 0:t[e]};var q=function(t,e){var r=Y(t,e);return U(r)?r:void 0},H=q(Object,"create");var B=function(){this.__data__=H?H(null):{},this.size=0};var K=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},V=Object.prototype.hasOwnProperty;var J=function(t){var e=this.__data__;if(H){var r=e[t];return"__lodash_hash_undefined__"===r?void 0:r}return V.call(e,t)?e[t]:void 0},Q=Object.prototype.hasOwnProperty;var W=function(t){var e=this.__data__;return H?void 0!==e[t]:Q.call(e,t)};var X=function(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=H&&void 0===e?"__lodash_hash_undefined__":e,this};function Z(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}Z.prototype.clear=B,Z.prototype.delete=K,Z.prototype.get=J,Z.prototype.has=W,Z.prototype.set=X;var tt=Z;var et=function(){this.__data__=[],this.size=0};var rt=function(t,e){return t===e||t!=t&&e!=e};var nt=function(t,e){for(var r=t.length;r--;)if(rt(t[r][0],e))return r;return-1},ot=Array.prototype.splice;var at=function(t){var e=this.__data__,r=nt(e,t);return!(r<0)&&(r==e.length-1?e.pop():ot.call(e,r,1),--this.size,!0)};var it=function(t){var e=this.__data__,r=nt(e,t);return r<0?void 0:e[r][1]};var ct=function(t){return nt(this.__data__,t)>-1};var ut=function(t,e){var r=this.__data__,n=nt(r,t);return n<0?(++this.size,r.push([t,e])):r[n][1]=e,this};function st(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}st.prototype.clear=et,st.prototype.delete=at,st.prototype.get=it,st.prototype.has=ct,st.prototype.set=ut;var lt=st,ht=q(y,"Map");var ft=function(){this.size=0,this.__data__={hash:new tt,map:new(ht||lt),string:new tt}};var pt=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t};var vt=function(t,e){var r=t.__data__;return pt(e)?r["string"==typeof e?"string":"hash"]:r.map};var dt=function(t){var e=vt(this,t).delete(t);return this.size-=e?1:0,e};var mt=function(t){return vt(this,t).get(t)};var yt=function(t){return vt(this,t).has(t)};var _t=function(t,e){var r=vt(this,t),n=r.size;return r.set(t,e),this.size+=r.size==n?0:1,this};function gt(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}gt.prototype.clear=ft,gt.prototype.delete=dt,gt.prototype.get=mt,gt.prototype.has=yt,gt.prototype.set=_t;var wt=gt;function bt(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var r=function(){var n=arguments,o=e?e.apply(this,n):n[0],a=r.cache;if(a.has(o))return a.get(o);var i=t.apply(this,n);return r.cache=a.set(o,i)||a,i};return r.cache=new(bt.Cache||wt),r}bt.Cache=wt;var jt=bt;var Ot=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,xt=/\\(\\)?/g;(function(t){var e=jt(t,(function(t){return 500===r.size&&r.clear(),t})),r=e.cache})((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(Ot,(function(t,r,n,o){e.push(n?o.replace(xt,"$1"):r||t)})),e}));var Et=_?_.prototype:void 0;Et&&Et.toString;var Nt=function(t){var e=function(t){return{r:parseInt(t.slice(1,3),16),g:parseInt(t.slice(3,5),16),b:parseInt(t.slice(5,7),16)}}(t);return.299*e.r+.587*e.g+.114*e.b},St=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"rgba(255, 255, 255, 0)",e=t.match(/^rgba?[\s+]?\([\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?/i);return e&&4===e.length?"#"+("0"+parseInt(e[1],10).toString(16)).slice(-2)+("0"+parseInt(e[2],10).toString(16)).slice(-2)+("0"+parseInt(e[3],10).toString(16)).slice(-2):t};n.shape({"sketches-host":n.string,"cdn-name":n.string,"cdn-image":n.string}),n.shape({headline:n.string,"last-published-at":n.number,subheadline:n.string});var Lt=["element","render"],Pt={"./attachment.m.css":{viewports:'"../../../../../assets/stylesheets/viewports.m.css"',mobile:"768px",tablet:"992px",headline:"attachment-m_headline__kP7Hs","button-wrapper":"attachment-m_button-wrapper__2fajK","file-name":"attachment-m_file-name__1LU9q",dark:"attachment-m_dark__3ixF7",light:"attachment-m_light__1kcpj",pdf:"attachment-m_pdf__3i_bR",doc:"attachment-m_doc__6vUVo attachment-m_pdf__3i_bR",wrapper:"attachment-m_wrapper__3gMwN","content-wrapper":"attachment-m_content-wrapper__3Yu0B"}},kt=function(r){var n=r.element,c=void 0===n?{}:n;r.render;var u=i(r,Lt),s=c["file-name"],l=c.url,f=c["content-type"];if(!f||!l)return null;var p="application/pdf"===f,d=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"rgb(255,255,255)",e=/^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/.test(t)?t:St(t);return Nt(e)<155?"light":"dark"}((e(v)||{}).theme),m=s||(p?"Attached PDF":"Attached DOC");return t.createElement("div",a({"data-test-id":"attachment"},u,{className:"arrow-component arr--attachment-element "+h(d,Pt)+" "+(u&&u.className||"")}),t.createElement("div",{className:"attachment-m_headline__kP7Hs"},"Attachment"),t.createElement("div",{className:"attachment-m_wrapper__3gMwN"},p?t.createElement("div",{"data-test-id":"pdf",className:"attachment-m_pdf__3i_bR"},"PDF"):t.createElement("div",{"data-test-id":"doc",className:"attachment-m_doc__6vUVo attachment-m_pdf__3i_bR"},"DOC"),t.createElement("div",{className:"attachment-m_content-wrapper__3Yu0B"},t.createElement("div",{className:"attachment-m_file-name__1LU9q",dangerouslySetInnerHTML:{__html:m}}),t.createElement(o,{className:"attachment-m_button-wrapper__2fajK",href:l,target:"_blank",rel:"noopener noreferrer",download:!0,"aria-label":"button"},p?"Preview":"Download"))))};kt.propTypes={element:n.shape({url:n.string,fileName:n.string,contentType:n.string}),render:n.func};var Ft=p(kt);export{Ft as Attachment};
@@ -0,0 +1 @@
1
+ import t,{useContext as e,createContext as r}from"react";import n from"prop-types";import o from"lodash.get";import{Link as a,ResponsiveImage as i}from"@quintype/components";import"react-timeago";import"date-fns-tz";import{connect as u}from"react-redux";var c="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function s(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function l(t){var e={exports:{}};return t(e,e.exports),e.exports}var h=l((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=s(l((function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r,n=(r=h)&&r.__esModule?r:{default:r};var o=function(t,e){if("throw"===e)throw new Error(t);return"warn"===e&&console.warn(t),null};e.default=function(t,e,r){var a=Object.keys(e),i=r||{},u=i.handleMissingStyleName,c=void 0===u?n.default.handleMissingStyleName:u,s=i.autoResolveMultipleImports,l=void 0===s?n.default.autoResolveMultipleImports:s;return t?t.split(" ").filter((function(t){return t})).map((function(t){if(function(t){return-1!==t.indexOf(".")}(t))return function(t,e,r){var a=t.split("."),i=a[0],u=a[1],c=r||n.default.handleMissingStyleName;return u?e[i]?e[i][u]?e[i][u]:o("CSS module does not exist: "+u,c):o("CSS module import does not exist: "+i,c):o("Invalid style name: "+t,c)}(t,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(!l)throw new Error("Cannot use anonymous style name '"+t+"' with more than one stylesheet import without setting 'autoResolveMultipleImports' to true.");return function(t,e,r){var a=r||n.default.handleMissingStyleName,i=Object.keys(e).map((function(r){return e[r][t]&&r})).filter((function(t){return t}));if(i.length>1)throw new Error('Cannot resolve styleName "'+t+'" because it is present in multiple imports:\n\n\t'+i.join("\n\t")+'\n\nYou can resolve this by using a named import, e.g:\n\n\timport foo from "'+i[0]+'";\n\t<div styleName="foo.'+t+'" />\n\n');return 0===i.length?o("Could not resolve the styleName '"+t+"'.",a):e[i[0]][t]}(t,e,c)}var r=e[a[0]];return r[t]?r[t]:o("Could not resolve the styleName '"+t+"'.",c)})).filter((function(t){return t})).join(" "):""}}))),p=r();l((function(t){var e=function(t){var e,r=Object.prototype,n=r.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",i=o.asyncIterator||"@@asyncIterator",u=o.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,n){var o=e&&e.prototype instanceof m?e:m,a=Object.create(o.prototype),i=new N(n||[]);return a._invoke=function(t,e,r){var n=h;return function(o,a){if(n===p)throw new Error("Generator is already running");if(n===v){if("throw"===o)throw a;return I()}for(r.method=o,r.arg=a;;){var i=r.delegate;if(i){var u=O(i,r);if(u){if(u===d)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(n===h)throw n=v,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n=p;var c=l(t,e,r);if("normal"===c.type){if(n=r.done?v:f,c.arg===d)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n=v,r.method="throw",r.arg=c.arg)}}}(t,r,i),a}function l(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=s;var h="suspendedStart",f="suspendedYield",p="executing",v="completed",d={};function m(){}function y(){}function g(){}var _={};c(_,a,(function(){return this}));var b=Object.getPrototypeOf,w=b&&b(b(P([])));w&&w!==r&&n.call(w,a)&&(_=w);var x=g.prototype=m.prototype=Object.create(_);function j(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function E(t,e){function r(o,a,i,u){var c=l(t[o],t,a);if("throw"!==c.type){var s=c.arg,h=s.value;return h&&"object"==typeof h&&n.call(h,"__await")?e.resolve(h.__await).then((function(t){r("next",t,i,u)}),(function(t){r("throw",t,i,u)})):e.resolve(h).then((function(t){s.value=t,i(s)}),(function(t){return r("throw",t,i,u)}))}u(c.arg)}var o;this._invoke=function(t,n){function a(){return new e((function(e,o){r(t,n,e,o)}))}return o=o?o.then(a,a):a()}}function O(t,r){var n=t.iterator[r.method];if(n===e){if(r.delegate=null,"throw"===r.method){if(t.iterator.return&&(r.method="return",r.arg=e,O(t,r),"throw"===r.method))return d;r.method="throw",r.arg=new TypeError("The iterator does not provide a 'throw' method")}return d}var o=l(n,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,d;var a=o.arg;return a?a.done?(r[t.resultName]=a.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,d):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,d)}function 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 S(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function N(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(L,this),this.reset(!0)}function P(t){if(t){var r=t[a];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function r(){for(;++o<t.length;)if(n.call(t,o))return r.value=t[o],r.done=!1,r;return r.value=e,r.done=!0,r};return i.next=i}}return{next:I}}function I(){return{value:e,done:!0}}return y.prototype=g,c(x,"constructor",g),c(g,"constructor",y),y.displayName=c(g,u,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===y||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,g):(t.__proto__=g,c(t,u,"GeneratorFunction")),t.prototype=Object.create(x),t},t.awrap=function(t){return{__await:t}},j(E.prototype),c(E.prototype,i,(function(){return this})),t.AsyncIterator=E,t.async=function(e,r,n,o,a){void 0===a&&(a=Promise);var i=new E(s(e,r,n,o),a);return t.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},j(x),c(x,u,"Generator"),c(x,a,(function(){return this})),c(x,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=[];for(var r in t)e.push(r);return e.reverse(),function r(){for(;e.length;){var n=e.pop();if(n in t)return r.value=n,r.done=!1,r}return r.done=!0,r}},t.values=P,N.prototype={constructor:N,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(S),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function o(n,o){return u.type="throw",u.arg=t,r.next=n,o&&(r.method="next",r.arg=e),!!o}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],u=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),s=n.call(i,"finallyLoc");if(c&&s){if(this.prev<i.catchLoc)return o(i.catchLoc,!0);if(this.prev<i.finallyLoc)return o(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return o(i.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return o(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,d):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),d},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),S(r),d}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;S(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:P(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),d}},t}(t.exports);try{regeneratorRuntime=e}catch(t){"object"==typeof globalThis?globalThis.regeneratorRuntime=e:Function("r","regeneratorRuntime = r")(e)}}));var v="object"==typeof c&&c&&c.Object===Object&&c,d="object"==typeof self&&self&&self.Object===Object&&self,m=v||d||Function("return this")(),y=m.Symbol,g=Object.prototype,_=g.hasOwnProperty,b=g.toString,w=y?y.toStringTag:void 0;var x=function(t){var e=_.call(t,w),r=t[w];try{t[w]=void 0;var n=!0}catch(t){}var o=b.call(t);return n&&(e?t[w]=r:delete t[w]),o},j=Object.prototype.toString;var E=function(t){return j.call(t)},O=y?y.toStringTag:void 0;var L=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":O&&O in Object(t)?x(t):E(t)};var S=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)};var N,P=function(t){if(!S(t))return!1;var e=L(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e},I=m["__core-js_shared__"],T=(N=/[^.]+$/.exec(I&&I.keys&&I.keys.IE_PROTO||""))?"Symbol(src)_1."+N:"";var k=function(t){return!!T&&T in t},F=Function.prototype.toString;var z=function(t){if(null!=t){try{return F.call(t)}catch(t){}try{return t+""}catch(t){}}return""},M=/^\[object .+?Constructor\]$/,A=Function.prototype,C=Object.prototype,R=A.toString,G=C.hasOwnProperty,$=RegExp("^"+R.call(G).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var q=function(t){return!(!S(t)||k(t))&&(P(t)?$:M).test(z(t))};var Y=function(t,e){return null==t?void 0:t[e]};var B=function(t,e){var r=Y(t,e);return q(r)?r:void 0},W=B(Object,"create");var D=function(){this.__data__=W?W(null):{},this.size=0};var K=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},U=Object.prototype.hasOwnProperty;var H=function(t){var e=this.__data__;if(W){var r=e[t];return"__lodash_hash_undefined__"===r?void 0:r}return U.call(e,t)?e[t]:void 0},J=Object.prototype.hasOwnProperty;var Q=function(t){var e=this.__data__;return W?void 0!==e[t]:J.call(e,t)};var V=function(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=W&&void 0===e?"__lodash_hash_undefined__":e,this};function X(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}X.prototype.clear=D,X.prototype.delete=K,X.prototype.get=H,X.prototype.has=Q,X.prototype.set=V;var Z=X;var tt=function(){this.__data__=[],this.size=0};var et=function(t,e){return t===e||t!=t&&e!=e};var rt=function(t,e){for(var r=t.length;r--;)if(et(t[r][0],e))return r;return-1},nt=Array.prototype.splice;var ot=function(t){var e=this.__data__,r=rt(e,t);return!(r<0)&&(r==e.length-1?e.pop():nt.call(e,r,1),--this.size,!0)};var at=function(t){var e=this.__data__,r=rt(e,t);return r<0?void 0:e[r][1]};var it=function(t){return rt(this.__data__,t)>-1};var ut=function(t,e){var r=this.__data__,n=rt(r,t);return n<0?(++this.size,r.push([t,e])):r[n][1]=e,this};function ct(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}ct.prototype.clear=tt,ct.prototype.delete=ot,ct.prototype.get=at,ct.prototype.has=it,ct.prototype.set=ut;var st=ct,lt=B(m,"Map");var ht=function(){this.size=0,this.__data__={hash:new Z,map:new(lt||st),string:new Z}};var ft=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t};var pt=function(t,e){var r=t.__data__;return ft(e)?r["string"==typeof e?"string":"hash"]:r.map};var vt=function(t){var e=pt(this,t).delete(t);return this.size-=e?1:0,e};var dt=function(t){return pt(this,t).get(t)};var mt=function(t){return pt(this,t).has(t)};var yt=function(t,e){var r=pt(this,t),n=r.size;return r.set(t,e),this.size+=r.size==n?0:1,this};function gt(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}gt.prototype.clear=ht,gt.prototype.delete=vt,gt.prototype.get=dt,gt.prototype.has=mt,gt.prototype.set=yt;var _t=gt;function bt(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var r=function(){var n=arguments,o=e?e.apply(this,n):n[0],a=r.cache;if(a.has(o))return a.get(o);var i=t.apply(this,n);return r.cache=a.set(o,i)||a,i};return r.cache=new(bt.Cache||_t),r}bt.Cache=_t;var wt=bt;var xt=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,jt=/\\(\\)?/g;(function(t){var e=wt(t,(function(t){return 500===r.size&&r.clear(),t})),r=e.cache})((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(xt,(function(t,r,n,o){e.push(n?o.replace(jt,"$1"):r||t)})),e}));var Et=y?y.prototype:void 0;Et&&Et.toString;var Ot=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},Lt=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"rgba(255, 255, 255, 0)",e=t.match(/^rgba?[\s+]?\([\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?/i);return e&&4===e.length?"#"+("0"+parseInt(e[1],10).toString(16)).slice(-2)+("0"+parseInt(e[2],10).toString(16)).slice(-2)+("0"+parseInt(e[3],10).toString(16)).slice(-2):t};n.shape({"sketches-host":n.string,"cdn-name":n.string,"cdn-image":n.string}),n.shape({headline:n.string,"last-published-at":n.number,subheadline:n.string});var St={"./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"}},Nt=function(r){var n=r.story,u=r.hideAuthorImage,c=r.isBottom,s=r.prefix,l=void 0===s?"":s,h=r.config,v=void 0===h?{}:h,d=e(p)||{},m=o(d,["showAuthor"],!0),y=o(n,["authors","0"],""),g=y["avatar-url"],_=y["avatar-s3-key"],b=y.name,w=y.slug,x=c?"bottom-fix":"",j=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"rgb(255,255,255)",e=/^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/.test(t)?t:Lt(t);return Ot(e)<155?"light":"dark"}(d.theme),E=o(v,["mountAt"],""),O=function(e){return l?t.createElement("div",{className:"arr-author-prefix "+f("prefix ".concat(j),St)},l):!u&&function(e){return g||_?t.createElement("div",{"data-test-id":"author-image",className:f("author-image ".concat(e,"-image"),St)},t.createElement("figure",null,_?t.createElement(i,{slug:_,"aspect-ratio":[1,1],defaultWidth:400,imgParams:{auto:["format","compress"]},alt:b}):t.createElement("img",{src:g}))):null}(e)};return t.createElement(t.Fragment,null,m&&t.createElement(a,{href:"".concat(E,"/author/")+w,"aria-label":"author-name",className:"author-name arr-author-name arrow-component "+f("author ".concat(x),St)},O("ltr"),t.createElement("div",{"data-test-id":"author-name",className:"author-name "+f("author-name ".concat(j),St)},b||n["author-name"]),!l&&O("rtl")))};var Pt=u((function(t){return{config:o(t,["qt","config"],{})}}))(Nt);Nt.propTypes={story:n.object.isRequired,hideAuthorImage:n.bool,isBottom:n.bool,prefix:n.string,config:n.object},Nt.defaultProps={hideAuthorImage:!1,isBottom:!1,prefix:""};export{Pt as Author};
@@ -0,0 +1 @@
1
+ import e,{useState as t,useEffect as r}from"react";import a from"prop-types";import"react-timeago";import"date-fns-tz";import{Link as n,ResponsiveImage as o,SocialShare as i}from"@quintype/components";import l from"lodash.camelcase";var c="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function s(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function u(e){var t={exports:{}};return e(t,t.exports),t.exports}var p=u((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})),h=s(u((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,a=(r=p)&&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,u=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(!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 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(" "):""}})));u((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 T(a||[]);return o._invoke=function(e,t,r){var a=p;return function(n,o){if(a===m)throw new Error("Generator is already running");if(a===f){if("throw"===n)throw o;return C()}for(r.method=n,r.arg=o;;){var i=r.delegate;if(i){var l=j(i,r);if(l){if(l===d)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(a===p)throw a=f,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);a=m;var c=u(e,t,r);if("normal"===c.type){if(a=r.done?f:h,c.arg===d)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 u(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=s;var p="suspendedStart",h="suspendedYield",m="executing",f="completed",d={};function v(){}function _(){}function g(){}var y={};c(y,o,(function(){return this}));var w=Object.getPrototypeOf,b=w&&w(w(z([])));b&&b!==r&&a.call(b,o)&&(y=b);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=u(e[n],e,o);if("throw"!==c.type){var s=c.arg,p=s.value;return p&&"object"==typeof p&&a.call(p,"__await")?t.resolve(p.__await).then((function(e){r("next",e,i,l)}),(function(e){r("throw",e,i,l)})):t.resolve(p).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 j(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,j(e,r),"throw"===r.method))return d;r.method="throw",r.arg=new TypeError("The iterator does not provide a 'throw' method")}return d}var n=u(a,e.iterator,r.arg);if("throw"===n.type)return r.method="throw",r.arg=n.arg,r.delegate=null,d;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,d):o:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,d)}function N(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function O(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function T(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(N,this),this.reset(!0)}function z(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:C}}function C(){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=z,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(O),!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,d):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),d},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),O(r),d}},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;O(r)}return n}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,a){return this.delegate={iterator:z(e),resultName:r,nextLoc:a},"next"===this.method&&(this.arg=t),d}},e}(e.exports);try{regeneratorRuntime=t}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=t:Function("r","regeneratorRuntime = r")(t)}}));var m=Array.isArray,f="object"==typeof c&&c&&c.Object===Object&&c,d="object"==typeof self&&self&&self.Object===Object&&self,v=f||d||Function("return this")(),_=v.Symbol,g=Object.prototype,y=g.hasOwnProperty,w=g.toString,b=_?_.toStringTag:void 0;var E=function(e){var t=y.call(e,b),r=e[b];try{e[b]=void 0;var a=!0}catch(e){}var n=w.call(e);return a&&(t?e[b]=r:delete e[b]),n},k=Object.prototype.toString;var x=function(e){return k.call(e)},j=_?_.toStringTag:void 0;var N=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":j&&j in Object(e)?E(e):x(e)};var O=function(e){return null!=e&&"object"==typeof e};var T=function(e){return"symbol"==typeof e||O(e)&&"[object Symbol]"==N(e)},z=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,C=/^\w*$/;var S=function(e,t){if(m(e))return!1;var r=typeof e;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=e&&!T(e))||(C.test(e)||!z.test(e)||null!=t&&e in Object(t))};var U=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)};var A,L=function(e){if(!U(e))return!1;var t=N(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},M=v["__core-js_shared__"],I=(A=/[^.]+$/.exec(M&&M.keys&&M.keys.IE_PROTO||""))?"Symbol(src)_1."+A:"";var B=function(e){return!!I&&I in e},P=Function.prototype.toString;var F=function(e){if(null!=e){try{return P.call(e)}catch(e){}try{return e+""}catch(e){}}return""},R=/^\[object .+?Constructor\]$/,G=Function.prototype,D=Object.prototype,V=G.toString,q=D.hasOwnProperty,$=RegExp("^"+V.call(q).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var H=function(e){return!(!U(e)||B(e))&&(L(e)?$:R).test(F(e))};var Q=function(e,t){return null==e?void 0:e[t]};var W=function(e,t){var r=Q(e,t);return H(r)?r:void 0},X=W(Object,"create");var Y=function(){this.__data__=X?X(null):{},this.size=0};var J=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},K=Object.prototype.hasOwnProperty;var Z=function(e){var t=this.__data__;if(X){var r=t[e];return"__lodash_hash_undefined__"===r?void 0:r}return K.call(t,e)?t[e]:void 0},ee=Object.prototype.hasOwnProperty;var te=function(e){var t=this.__data__;return X?void 0!==t[e]:ee.call(t,e)};var re=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=X&&void 0===t?"__lodash_hash_undefined__":t,this};function ae(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])}}ae.prototype.clear=Y,ae.prototype.delete=J,ae.prototype.get=Z,ae.prototype.has=te,ae.prototype.set=re;var ne=ae;var oe=function(){this.__data__=[],this.size=0};var ie=function(e,t){return e===t||e!=e&&t!=t};var le=function(e,t){for(var r=e.length;r--;)if(ie(e[r][0],t))return r;return-1},ce=Array.prototype.splice;var se=function(e){var t=this.__data__,r=le(t,e);return!(r<0)&&(r==t.length-1?t.pop():ce.call(t,r,1),--this.size,!0)};var ue=function(e){var t=this.__data__,r=le(t,e);return r<0?void 0:t[r][1]};var pe=function(e){return le(this.__data__,e)>-1};var he=function(e,t){var r=this.__data__,a=le(r,e);return a<0?(++this.size,r.push([e,t])):r[a][1]=t,this};function me(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])}}me.prototype.clear=oe,me.prototype.delete=se,me.prototype.get=ue,me.prototype.has=pe,me.prototype.set=he;var fe=me,de=W(v,"Map");var ve=function(){this.size=0,this.__data__={hash:new ne,map:new(de||fe),string:new ne}};var _e=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e};var ge=function(e,t){var r=e.__data__;return _e(t)?r["string"==typeof t?"string":"hash"]:r.map};var ye=function(e){var t=ge(this,e).delete(e);return this.size-=t?1:0,t};var we=function(e){return ge(this,e).get(e)};var be=function(e){return ge(this,e).has(e)};var Ee=function(e,t){var r=ge(this,e),a=r.size;return r.set(e,t),this.size+=r.size==a?0:1,this};function ke(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])}}ke.prototype.clear=ve,ke.prototype.delete=ye,ke.prototype.get=we,ke.prototype.has=be,ke.prototype.set=Ee;var xe=ke;function je(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(je.Cache||xe),r}je.Cache=xe;var Ne=je;var Oe=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Te=/\\(\\)?/g,ze=function(e){var t=Ne(e,(function(e){return 500===r.size&&r.clear(),e})),r=t.cache;return t}((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(Oe,(function(e,r,a,n){t.push(a?n.replace(Te,"$1"):r||e)})),t}));var Ce=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},Se=_?_.prototype:void 0,Ue=Se?Se.toString:void 0;var Ae=function e(t){if("string"==typeof t)return t;if(m(t))return Ce(t,e)+"";if(T(t))return Ue?Ue.call(t):"";var r=t+"";return"0"==r&&1/t==-Infinity?"-0":r};var Le=function(e){return null==e?"":Ae(e)};var Me=function(e,t){return m(e)?e:S(e,t)?[e]:ze(Le(e))};var Ie=function(e){if("string"==typeof e||T(e))return e;var t=e+"";return"0"==t&&1/e==-Infinity?"-0":t};var Be=function(e,t){for(var r=0,a=(t=Me(t,e)).length;null!=e&&r<a;)e=e[Ie(t[r++])];return r&&r==a?e:void 0};var Pe=function(e,t,r){var a=null==e?void 0:Be(e,t);return void 0===a?r:a},Fe=!("undefined"==typeof window||!window.document||!window.document.createElement)&&window.location.href,Re=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},Ge=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},De={mobile:767,tablet:1024},Ve=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:Ge(e),a=Re(r)<155?"light":"dark";return a};a.shape({"sketches-host":a.string,"cdn-name":a.string,"cdn-image":a.string}),a.shape({headline:a.string,"last-published-at":a.number,subheadline:a.string});var qe=function(t){var r=t.width,a=void 0===r?120:r,n=t.height,o=void 0===n?120:n;return e.createElement("svg",{width:a,height:o,viewBox:"0 0 120 120",xmlns:"http://www.w3.org/2000/svg"},e.createElement("path",{d:"M93.28 108.98c-1.055-17.675-15.47-31.678-33.098-31.678-17.708 0-32.173 14.129-33.11 31.916 9.415 6.311 20.741 9.993 32.927 9.993 12.338 0 23.795-3.774 33.28-10.23l.001-.001zM58.584 73.283c9.928 0 17.977-8.275 17.977-18.483 0-10.209-8.049-18.484-17.977-18.484-9.929 0-17.977 8.275-17.977 18.484 0 10.208 8.048 18.483 17.977 18.483zM60 120C26.863 120 0 93.137 0 60S26.863 0 60 0s60 26.863 60 60-26.863 60-60 60z",fill:"#DADADA",fillRule:"nonzero"}))};qe.propTypes={width:a.object,height:a.object};var $e={"./author-image.m.css":{viewports:'"../../../../assets/stylesheets/viewports.m.css"',mobile:"768px",tablet:"992px","image-container":"author-image-m_image-container__19WNd","author-image":"author-image-m_author-image__D8GMB",square:"author-image-m_square__bjK7M","small-circle":"author-image-m_small-circle__DbQMN","smaller-circle":"author-image-m_smaller-circle__2yMOZ"}},He=function(t,r){var a=t["avatar-url"],n=t["avatar-s3-key"],i=t.name;return e.createElement("div",{"data-test-id":"author-image",className:"arr--author-image "+h("author-image ".concat(r),$e)},e.createElement("figure",{className:"author-image-m_image-container__19WNd"},n?e.createElement(o,{slug:n,alt:i,defaultWidth:250,widths:[250,480],aspectRatio:[[1,1],[1,1]],sizes:"98vw",imgParams:{auto:["format","compress"]}}):a?e.createElement("img",{src:a}):e.createElement(qe,null)))},Qe=function(t){var r=t.author,a=void 0===r?{}:r,o=t.template,i=void 0===o?"":o,l=t.config,c=void 0===l?{}:l,s=a.slug,u=c.mountAt||"",p="";return"smallerCircle"===i?p="smaller-circle":"smallCircle"===i?p="small-circle":"square"===i&&(p="square"),s?e.createElement(n,{href:"".concat(u,"/author/")+s},He(a,p)):He(a,p)};function We(){return We=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},We.apply(this,arguments)}function Xe(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 Ye(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 Xe(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)?Xe(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.")}()}Qe.propTypes={author:a.shape({"avatar-url":a.string,"avatar-s3-key":a.string,name:a.string,slug:a.string}),template:a.string};var Je=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"}))};Je.propTypes={color:a.string};var Ke=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"}))};Ke.propTypes={color:a.string};var Ze=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"}))};Ze.propTypes={color:a.string};var et=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"}))};et.propTypes={color:a.string};var tt=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){return"plain-color-svg"===r?{facebook:e.createElement(Ke,{key:r}),twitter:e.createElement(Je,{key:r}),linkedin:e.createElement(Ze,{key:r}),whatsapp:e.createElement(et,{key:r})}:{facebook:e.createElement(Ke,{color:t,key:r}),twitter:e.createElement(Je,{color:t,key:r}),linkedin:e.createElement(Ze,{color:t,key:r}),whatsapp:e.createElement(et,{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"}]},rt=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"})))};rt.propTypes={color:a.string};var at={"./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"}},nt=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,u=t.theme,p=t.closePopup,m=void 0===p?"":p,f=t.iconType,d=void 0===f?"plain-color-svg":f,v=Ve(u),_="dark"===v?"#000000":"#ffffff",g=tt({fbUrl:a,twitterUrl:o,linkedinUrl:l,whatsappUrl:s,iconColor:_,iconType:d});return e.createElement("div",{className:h("share-popup-wrapper ".concat(v),at)},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:m},e.createElement(rt,{color:_}))),e.createElement("ul",{className:"social-share-popup-m_wrapper__3Ytce"},g.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)})))))};nt.propTypes={fbUrl:a.string,twitterUrl:a.string,linkedinUrl:a.string,whatsappUrl:a.string,grey:a.string,primaryColor:a.string,closePopup:a.bool,theme:a.string,iconType:a.string};var ot=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"}))};ot.propTypes={color:a.string};var it={"./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"}},lt=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};lt.propTypes={name:a.string,url:a.string,icon:a.node,dataTestId:a.string};var ct=function(a){var n=a.fbUrl,o=void 0===n?"":n,i=a.twitterUrl,c=void 0===i?"":i,s=a.linkedinUrl,u=void 0===s?"":s,p=a.whatsappUrl,m=void 0===p?"":p,f=a.vertical,d=void 0!==f&&f,v=a.theme,_=a.iconType,g=void 0===_?"plain-color-svg":_,y=a.open,w=void 0!==y&&y;if(!(o||c||u||m))return null;var b=Ve(v),E="dark"===b?"#000000":"#ffffff",k=tt({fbUrl:o,twitterUrl:c,linkedinUrl:u,whatsappUrl:m,iconColor:E,iconType:g}),x=Ye(t(w),2),j=x[0],N=x[1],O=d?"vertical":"horizontal";r((function(){return N(w)}),[w]);var T=function(){return e.createElement("li",{className:"social-share-template-m_icon__1Mnu5",key:"horizontal-0"},e.createElement("div",{onClick:z},function(t,r){return t?e.createElement(rt,{color:r}):e.createElement(ot,{color:r})}(j,E)))},z=function(){N(!j)},C=!j&&d?"tablet-view-popup":"";return e.createElement("div",{"data-test-id":O,className:"arr--share "+h("".concat(b," ").concat(O," ").concat(C),it)},e.createElement("div",{className:"social-share-template-m_desktop-view__3TmkO"},e.createElement("ul",{"data-test-id":l(g),className:"desktop-share-wrapper "+h("wrapper ".concat(j?"open":""),it)},T(),k.map((function(t,r){return e.createElement(lt,We({},t,{key:t.name,dataTestId:"card-share-".concat(r)}))})))),e.createElement("div",{className:"social-share-template-m_tablet-view__kATzi"},!j&&e.createElement("ul",{className:h("wrapper ".concat(j?"open":""),it)},T()),j&&e.createElement(e.Fragment,null,e.createElement("div",{className:"social-share-template-m_overlay__1nBp-",onClick:z},e.createElement("div",{className:"arr--popup "+h("popup-wrapper ".concat(j?"popup-open":""),it)},e.createElement(nt,{fbUrl:o,twitterUrl:c,linkedinUrl:u,whatsappUrl:m,iconType:g,theme:v,closePopup:function(){N(!1)}}))))))};ct.propTypes={fbUrl:a.string,twitterUrl:a.string,linkedinUrl:a.string,whatsappUrl:a.string,vertical:a.bool,theme:a.string,iconType:a.string,open:a.boolean};var st=function(t){var r=t.color,a=void 0===r?"#F61C0D":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:"M22.077 6.844c.18.703.308 1.77.385 3.203L22.5 12l-.038 1.953c-.077 1.458-.206 2.54-.385 3.242a2.733 2.733 0 01-.692 1.172 2.654 2.654 0 01-1.193.703c-.666.183-2.23.313-4.692.39l-3.5.04-3.5-.04c-2.462-.077-4.026-.207-4.692-.39a2.657 2.657 0 01-1.193-.703 2.733 2.733 0 01-.692-1.172c-.18-.703-.308-1.784-.385-3.242L1.5 12c0-.573.013-1.224.038-1.953.077-1.432.206-2.5.385-3.203A2.718 2.718 0 013.808 4.93c.666-.183 2.23-.313 4.692-.39L12 4.5l3.5.04c2.462.077 4.026.207 4.692.39a2.718 2.718 0 011.885 1.914zm-12.23 8.36l5.5-3.204-5.5-3.164v6.367z"}))};st.propTypes={color:a.string};var ut=function(){return e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",width:"24",height:"24",viewBox:"0 0 24 24"},e.createElement("defs",null,e.createElement("linearGradient",{id:"prefix__b",x1:"0%",x2:"110.694%",y1:"0%",y2:"109.202%"},e.createElement("stop",{offset:"0%",stopColor:"#724AC6"}),e.createElement("stop",{offset:"53.59%",stopColor:"#E5375E"}),e.createElement("stop",{offset:"100%",stopColor:"#FC9949"})),e.createElement("path",{id:"prefix__a",d:"M9 4.636c.784 0 1.512.196 2.182.588.67.392 1.202.924 1.594 1.594.392.67.588 1.398.588 2.182s-.196 1.512-.588 2.182a4.382 4.382 0 01-1.594 1.594c-.67.392-1.398.588-2.182.588s-1.512-.196-2.182-.588a4.382 4.382 0 01-1.594-1.594c-.392-.67-.588-1.398-.588-2.182s.196-1.512.588-2.182a4.382 4.382 0 011.594-1.594A4.247 4.247 0 019 4.636zm0 7.21c.784 0 1.455-.278 2.011-.835.557-.556.835-1.227.835-2.011s-.278-1.455-.835-2.011c-.556-.557-1.227-.835-2.011-.835s-1.455.278-2.011.835c-.557.556-.835 1.227-.835 2.011s.278 1.455.835 2.011A2.739 2.739 0 009 11.846zm5.578-7.4a1.181 1.181 0 01-.322.721.923.923 0 01-.702.304.981.981 0 01-.721-.304.98.98 0 01-.304-.72c0-.279.101-.52.304-.722a.984.984 0 01.72-.303c.279 0 .52.101.722.303a.987.987 0 01.303.721zm2.884 1.025c.025.708.038 1.885.038 3.529s-.019 2.827-.057 3.548c-.038.721-.145 1.347-.322 1.878a4.425 4.425 0 01-1.044 1.651 4.429 4.429 0 01-1.65 1.044c-.532.177-1.158.284-1.879.322-.721.038-1.904.057-3.548.057-1.644 0-2.827-.019-3.548-.057-.721-.038-1.347-.158-1.878-.36a4.05 4.05 0 01-1.651-1.006 4.429 4.429 0 01-1.044-1.65c-.177-.532-.284-1.158-.322-1.879C.519 11.827.5 10.644.5 9c0-1.644.019-2.827.057-3.548.038-.721.145-1.347.322-1.878a4.425 4.425 0 011.044-1.651A4.429 4.429 0 013.573.879C4.106.702 4.732.595 5.453.557 6.173.519 7.356.5 9 .5c1.644 0 2.827.019 3.548.057.721.038 1.347.145 1.878.322a4.425 4.425 0 011.651 1.044 4.429 4.429 0 011.044 1.65c.177.532.29 1.164.341 1.898zm-1.821 8.538c.151-.43.253-1.113.303-2.05.025-.556.038-1.34.038-2.352V8.393a54.22 54.22 0 00-.038-2.353c-.05-.961-.152-1.644-.303-2.049a2.743 2.743 0 00-1.632-1.632c-.405-.151-1.088-.253-2.05-.303a55.796 55.796 0 00-2.352-.038H8.393c-1.012 0-1.796.013-2.353.038-.936.05-1.619.152-2.049.303a2.743 2.743 0 00-1.632 1.632c-.151.405-.253 1.088-.303 2.05-.025.556-.038 1.34-.038 2.352v1.214c0 1.012.013 1.796.038 2.353.05.936.152 1.619.303 2.049.33.784.873 1.328 1.632 1.632.43.151 1.113.253 2.05.303.556.025 1.34.038 2.352.038h1.214a54.22 54.22 0 002.353-.038c.961-.05 1.644-.152 2.049-.303.784-.33 1.328-.873 1.632-1.632z"})),e.createElement("use",{fill:"url(#prefix__b)",fillRule:"nonzero",transform:"translate(3 3)",xlinkHref:"#prefix__a"}))},pt=function(){return e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},e.createElement("path",{fill:"#E60023",d:"M21.5 12a9.209 9.209 0 01-1.283 4.75 9.6 9.6 0 01-3.467 3.467A9.209 9.209 0 0112 21.5c-.97 0-1.903-.14-2.796-.421.613-1.022.996-1.852 1.149-2.49l.613-2.26c.153.306.434.561.842.766.41.204.856.306 1.341.306.92 0 1.756-.262 2.51-.785.753-.524 1.34-1.232 1.761-2.126.422-.894.632-1.87.632-2.93s-.255-2.012-.766-2.854a5.318 5.318 0 00-2.107-1.973c-.893-.473-1.89-.709-2.987-.709-1.303 0-2.452.268-3.448.805a5.465 5.465 0 00-2.088 2.087 5.704 5.704 0 00-.747 2.854c0 .74.185 1.475.556 2.203.37.728.836 1.22 1.398 1.475.179.076.28.038.306-.115l.268-1.073a.266.266 0 00-.076-.268 3.048 3.048 0 01-.498-.977 3.908 3.908 0 01-.192-1.207c0-.715.173-1.385.518-2.01a3.99 3.99 0 011.474-1.514c.664-.408 1.43-.613 2.299-.613 1.174 0 2.132.364 2.873 1.092.74.728 1.11 1.654 1.11 2.777 0 1.277-.287 2.324-.861 3.141-.575.818-1.284 1.226-2.126 1.226-.486 0-.869-.172-1.15-.517-.28-.345-.37-.747-.268-1.207.051-.28.166-.689.345-1.225.281-.945.421-1.603.421-1.973 0-.37-.102-.677-.306-.92-.204-.242-.498-.363-.881-.363-.485 0-.894.217-1.226.65-.332.435-.498.984-.498 1.648 0 .562.09 1.034.268 1.417L8.591 18.13c-.154.638-.166 1.545-.039 2.72-1.813-.69-3.275-1.839-4.386-3.448C3.056 15.792 2.5 13.991 2.5 12c0-1.711.428-3.294 1.283-4.75A9.6 9.6 0 017.25 3.783 9.209 9.209 0 0112 2.5c1.711 0 3.294.428 4.75 1.283a9.6 9.6 0 013.467 3.467A9.209 9.209 0 0121.5 12z"}))},ht={"./author-intro.m.css":{viewports:'"../../../../assets/stylesheets/viewports.m.css"',mobile:"768px",tablet:"992px",connect:"author-intro-m_connect__15zIX","social-share":"author-intro-m_social-share__f5EpE","share-icon":"author-intro-m_share-icon__3gke5",default:"author-intro-m_default__1rQ_v","author-image":"author-intro-m_author-image__2jRxy","author-name":"author-intro-m_author-name__1L60a","author-description":"author-intro-m_author-description__2CTEw",wrapper:"author-intro-m_wrapper__2Bi-s","introduction-card":"author-intro-m_introduction-card__1kdGt","social-wrapper":"author-intro-m_social-wrapper__1F9jD",linkWrapper:"author-intro-m_linkWrapper__Au0nU","social-connect-wrapper":"author-intro-m_social-connect-wrapper__2B0QA",dark:"author-intro-m_dark__ALdDb",light:"author-intro-m_light__2SfeE","small-circle":"author-intro-m_small-circle__jyG1s",border:"author-intro-m_border__3Tii9","fade-out":"author-intro-m_fade-out__1EBqd"}},mt=function(t){var r,a=t.data,n=void 0===a?{}:a,o=t.config,l=void 0===o?{}:o,c=t.template,s=void 0===c?"":c,u=l.theme,p=void 0===u?"":u,m=l.enableBio,f=void 0===m||m,d=l.enableSocialLinks,v=void 0===d||d,_=l.borderSupport,g=void 0===_||_,y=Ve(p),w=n.name,b=n.bio,E=n.social,k="smallCircle"===s,x=k?"small-circle":"default",j=!!(r=Pe(De,"mobile"))&&Pe(global,"document.documentElement.clientWidth")<=r,N=k?"":"full-width-with-padding",O=k&&g?"border":"";return e.createElement("div",{"data-test-id":"author-intro",style:{backgroundColor:p,color:y},className:("".concat(N," arrow-component arr--author-intro-card")?"".concat(N," arrow-component arr--author-intro-card")+" ":"")+h("".concat(x," ").concat(O," ").concat(y),ht)},e.createElement("div",{className:"arrow-author-intro-wrapper "+h("wrapper ".concat(y),ht)},e.createElement("div",{className:"arrow-author-introduction-card author-intro-m_introduction-card__1kdGt"},k&&j?null:e.createElement("h2",{className:h("author-name ".concat(y),ht)},w),f&&b&&e.createElement("div",{"data-test-id":"author-bio",className:h("author-description ".concat(y),ht)},b,k&&e.createElement("div",{className:"author-intro-m_fade-out__1EBqd",style:{backgroundImage:"linear-gradient(to right, transparent, ".concat(p,")")}})),e.createElement("div",{className:"author-intro-m_social-wrapper__1F9jD"},e.createElement("div",{className:"author-intro-m_social-connect-wrapper__2B0QA"},v&&E&&e.createElement(e.Fragment,null,"smallCircle"!==s&&e.createElement("div",{className:h("connect ".concat(y),ht)},"Connect :"),Object.entries(E).map((function(t,r){return t.length>0&&t[1]&&t[1].url?e.createElement("a",{"data-test-id":"social-link",href:t[1].url,key:"".concat(t,"-").concat(r),rel:"noopener noreferrer",target:"_blank",className:"author-intro-m_social-share__f5EpE"},function(t){switch(t){case"twitter":return e.createElement(Je,null);case"facebook":return e.createElement(Ke,null);case"youtube":return e.createElement(st,null);case"linkedin":return e.createElement(Ze,null);case"whatsapp":return e.createElement(et,{color:"#4AC959"});case"instagram":return e.createElement(ut,null);case"pinterest":return e.createElement(pt,null)}}(t[0])):null})))),!k&&e.createElement(i,{template:ct,fullUrl:Fe,title:w,theme:p,iconType:"plain-svg"}))),e.createElement("div",{className:"arrow-author-image author-intro-m_author-image__2jRxy"},e.createElement(Qe,{author:n,template:s}),k&&j&&e.createElement("h2",{className:h("author-name ".concat(y),ht)},w))))};mt.propTypes={data:a.shape({name:a.string,bio:a.string,social:a.object}),config:a.shape({theme:a.string,enableBio:a.bool,enableSocialLinks:a.bool,borderSupport:a.bool}),template:a.string};export{mt as default};
@@ -0,0 +1 @@
1
+ import t,{useContext as e,createContext as r}from"react";import n from"lodash.get";import o from"prop-types";import a from"react-timeago";import{utcToZonedTime as i,format as u}from"date-fns-tz";import{Link as c,ResponsiveImage as s}from"@quintype/components";import{connect as l}from"react-redux";var h="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function f(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function m(t){var e={exports:{}};return t(e,e.exports),e.exports}var d=m((function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r={attributeNames:{styleName:"className"},generateScopedName:"[path]___[name]__[local]___[hash:base64:5]",handleMissingStyleName:"throw"};e.default=r})),p=f(m((function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r,n=(r=d)&&r.__esModule?r:{default:r};var o=function(t,e){if("throw"===e)throw new Error(t);return"warn"===e&&console.warn(t),null};e.default=function(t,e,r){var a=Object.keys(e),i=r||{},u=i.handleMissingStyleName,c=void 0===u?n.default.handleMissingStyleName:u,s=i.autoResolveMultipleImports,l=void 0===s?n.default.autoResolveMultipleImports:s;return t?t.split(" ").filter((function(t){return t})).map((function(t){if(function(t){return-1!==t.indexOf(".")}(t))return function(t,e,r){var a=t.split("."),i=a[0],u=a[1],c=r||n.default.handleMissingStyleName;return u?e[i]?e[i][u]?e[i][u]:o("CSS module does not exist: "+u,c):o("CSS module import does not exist: "+i,c):o("Invalid style name: "+t,c)}(t,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(!l)throw new Error("Cannot use anonymous style name '"+t+"' with more than one stylesheet import without setting 'autoResolveMultipleImports' to true.");return function(t,e,r){var a=r||n.default.handleMissingStyleName,i=Object.keys(e).map((function(r){return e[r][t]&&r})).filter((function(t){return t}));if(i.length>1)throw new Error('Cannot resolve styleName "'+t+'" because it is present in multiple imports:\n\n\t'+i.join("\n\t")+'\n\nYou can resolve this by using a named import, e.g:\n\n\timport foo from "'+i[0]+'";\n\t<div styleName="foo.'+t+'" />\n\n');return 0===i.length?o("Could not resolve the styleName '"+t+"'.",a):e[i[0]][t]}(t,e,c)}var r=e[a[0]];return r[t]?r[t]:o("Could not resolve the styleName '"+t+"'.",c)})).filter((function(t){return t})).join(" "):""}}))),v=r(),g=function(){return e(v)};m((function(t){var e=function(t){var e,r=Object.prototype,n=r.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",i=o.asyncIterator||"@@asyncIterator",u=o.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,n){var o=e&&e.prototype instanceof v?e:v,a=Object.create(o.prototype),i=new A(n||[]);return a._invoke=function(t,e,r){var n=h;return function(o,a){if(n===m)throw new Error("Generator is already running");if(n===d){if("throw"===o)throw a;return S()}for(r.method=o,r.arg=a;;){var i=r.delegate;if(i){var u=T(i,r);if(u){if(u===p)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(n===h)throw n=d,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n=m;var c=l(t,e,r);if("normal"===c.type){if(n=r.done?d:f,c.arg===p)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n=d,r.method="throw",r.arg=c.arg)}}}(t,r,i),a}function l(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=s;var h="suspendedStart",f="suspendedYield",m="executing",d="completed",p={};function v(){}function g(){}function y(){}var _={};c(_,a,(function(){return this}));var b=Object.getPrototypeOf,w=b&&b(b(N([])));w&&w!==r&&n.call(w,a)&&(_=w);var x=y.prototype=v.prototype=Object.create(_);function E(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function j(t,e){function r(o,a,i,u){var c=l(t[o],t,a);if("throw"!==c.type){var s=c.arg,h=s.value;return h&&"object"==typeof h&&n.call(h,"__await")?e.resolve(h.__await).then((function(t){r("next",t,i,u)}),(function(t){r("throw",t,i,u)})):e.resolve(h).then((function(t){s.value=t,i(s)}),(function(t){return r("throw",t,i,u)}))}u(c.arg)}var o;this._invoke=function(t,n){function a(){return new e((function(e,o){r(t,n,e,o)}))}return o=o?o.then(a,a):a()}}function T(t,r){var n=t.iterator[r.method];if(n===e){if(r.delegate=null,"throw"===r.method){if(t.iterator.return&&(r.method="return",r.arg=e,T(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 o=l(n,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,p;var a=o.arg;return a?a.done?(r[t.resultName]=a.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,p):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,p)}function O(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 L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function A(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(O,this),this.reset(!0)}function N(t){if(t){var r=t[a];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function r(){for(;++o<t.length;)if(n.call(t,o))return r.value=t[o],r.done=!1,r;return r.value=e,r.done=!0,r};return i.next=i}}return{next:S}}function S(){return{value:e,done:!0}}return g.prototype=y,c(x,"constructor",y),c(y,"constructor",g),g.displayName=c(y,u,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,y):(t.__proto__=y,c(t,u,"GeneratorFunction")),t.prototype=Object.create(x),t},t.awrap=function(t){return{__await:t}},E(j.prototype),c(j.prototype,i,(function(){return this})),t.AsyncIterator=j,t.async=function(e,r,n,o,a){void 0===a&&(a=Promise);var i=new j(s(e,r,n,o),a);return t.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},E(x),c(x,u,"Generator"),c(x,a,(function(){return this})),c(x,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=[];for(var r in t)e.push(r);return e.reverse(),function r(){for(;e.length;){var n=e.pop();if(n in t)return r.value=n,r.done=!1,r}return r.done=!0,r}},t.values=N,A.prototype={constructor:A,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(L),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function o(n,o){return u.type="throw",u.arg=t,r.next=n,o&&(r.method="next",r.arg=e),!!o}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],u=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),s=n.call(i,"finallyLoc");if(c&&s){if(this.prev<i.catchLoc)return o(i.catchLoc,!0);if(this.prev<i.finallyLoc)return o(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return o(i.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return o(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,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),L(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 n=r.completion;if("throw"===n.type){var o=n.arg;L(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:N(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),p}},t}(t.exports);try{regeneratorRuntime=e}catch(t){"object"==typeof globalThis?globalThis.regeneratorRuntime=e:Function("r","regeneratorRuntime = r")(e)}}));var y=Array.isArray,_="object"==typeof h&&h&&h.Object===Object&&h,b="object"==typeof self&&self&&self.Object===Object&&self,w=_||b||Function("return this")(),x=w.Symbol,E=Object.prototype,j=E.hasOwnProperty,T=E.toString,O=x?x.toStringTag:void 0;var L=function(t){var e=j.call(t,O),r=t[O];try{t[O]=void 0;var n=!0}catch(t){}var o=T.call(t);return n&&(e?t[O]=r:delete t[O]),o},A=Object.prototype.toString;var N=function(t){return A.call(t)},S=x?x.toStringTag:void 0;var I=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":S&&S in Object(t)?L(t):N(t)};var z=function(t){return null!=t&&"object"==typeof t};var k=function(t){return"symbol"==typeof t||z(t)&&"[object Symbol]"==I(t)},M=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,R=/^\w*$/;var F=function(t,e){if(y(t))return!1;var r=typeof t;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=t&&!k(t))||(R.test(t)||!M.test(t)||null!=e&&t in Object(e))};var P=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)};var C,G=function(t){if(!P(t))return!1;var e=I(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e},D=w["__core-js_shared__"],Z=(C=/[^.]+$/.exec(D&&D.keys&&D.keys.IE_PROTO||""))?"Symbol(src)_1."+C:"";var U=function(t){return!!Z&&Z in t},$=Function.prototype.toString;var B=function(t){if(null!=t){try{return $.call(t)}catch(t){}try{return t+""}catch(t){}}return""},H=/^\[object .+?Constructor\]$/,Y=Function.prototype,q=Object.prototype,J=Y.toString,W=q.hasOwnProperty,X=RegExp("^"+J.call(W).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var K=function(t){return!(!P(t)||U(t))&&(G(t)?X:H).test(B(t))};var V=function(t,e){return null==t?void 0:t[e]};var Q=function(t,e){var r=V(t,e);return K(r)?r:void 0},tt=Q(Object,"create");var et=function(){this.__data__=tt?tt(null):{},this.size=0};var rt=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},nt=Object.prototype.hasOwnProperty;var ot=function(t){var e=this.__data__;if(tt){var r=e[t];return"__lodash_hash_undefined__"===r?void 0:r}return nt.call(e,t)?e[t]:void 0},at=Object.prototype.hasOwnProperty;var it=function(t){var e=this.__data__;return tt?void 0!==e[t]:at.call(e,t)};var ut=function(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=tt&&void 0===e?"__lodash_hash_undefined__":e,this};function ct(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}ct.prototype.clear=et,ct.prototype.delete=rt,ct.prototype.get=ot,ct.prototype.has=it,ct.prototype.set=ut;var st=ct;var lt=function(){this.__data__=[],this.size=0};var ht=function(t,e){return t===e||t!=t&&e!=e};var ft=function(t,e){for(var r=t.length;r--;)if(ht(t[r][0],e))return r;return-1},mt=Array.prototype.splice;var dt=function(t){var e=this.__data__,r=ft(e,t);return!(r<0)&&(r==e.length-1?e.pop():mt.call(e,r,1),--this.size,!0)};var pt=function(t){var e=this.__data__,r=ft(e,t);return r<0?void 0:e[r][1]};var vt=function(t){return ft(this.__data__,t)>-1};var gt=function(t,e){var r=this.__data__,n=ft(r,t);return n<0?(++this.size,r.push([t,e])):r[n][1]=e,this};function yt(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}yt.prototype.clear=lt,yt.prototype.delete=dt,yt.prototype.get=pt,yt.prototype.has=vt,yt.prototype.set=gt;var _t=yt,bt=Q(w,"Map");var wt=function(){this.size=0,this.__data__={hash:new st,map:new(bt||_t),string:new st}};var xt=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 xt(e)?r["string"==typeof e?"string":"hash"]:r.map};var jt=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 Ot=function(t){return Et(this,t).has(t)};var Lt=function(t,e){var r=Et(this,t),n=r.size;return r.set(t,e),this.size+=r.size==n?0:1,this};function At(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}At.prototype.clear=wt,At.prototype.delete=jt,At.prototype.get=Tt,At.prototype.has=Ot,At.prototype.set=Lt;var Nt=At;function St(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var r=function(){var n=arguments,o=e?e.apply(this,n):n[0],a=r.cache;if(a.has(o))return a.get(o);var i=t.apply(this,n);return r.cache=a.set(o,i)||a,i};return r.cache=new(St.Cache||Nt),r}St.Cache=Nt;var It=St;var zt=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,kt=/\\(\\)?/g,Mt=function(t){var e=It(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(zt,(function(t,r,n,o){e.push(n?o.replace(kt,"$1"):r||t)})),e}));var Rt=function(t,e){for(var r=-1,n=null==t?0:t.length,o=Array(n);++r<n;)o[r]=e(t[r],r,t);return o},Ft=x?x.prototype:void 0,Pt=Ft?Ft.toString:void 0;var Ct=function t(e){if("string"==typeof e)return e;if(y(e))return Rt(e,t)+"";if(k(e))return Pt?Pt.call(e):"";var r=e+"";return"0"==r&&1/e==-Infinity?"-0":r};var Gt=function(t){return null==t?"":Ct(t)};var Dt=function(t,e){return y(t)?t:F(t,e)?[t]:Mt(Gt(t))};var Zt=function(t){if("string"==typeof t||k(t))return t;var e=t+"";return"0"==e&&1/t==-Infinity?"-0":e};var Ut=function(t,e){for(var r=0,n=(e=Dt(e,t)).length;null!=t&&r<n;)t=t[Zt(e[r++])];return r&&r==n?t:void 0};var $t=function(t,e,r){var n=null==t?void 0:Ut(t,e);return void 0===n?r:n};var Bt=function(t,e,r,n){var o=-1,a=null==t?0:t.length;for(n&&a&&(r=t[++o]);++o<a;)r=e(r,t[o],o,t);return r};var Ht=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"}),Yt=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,qt=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]","g");var Jt=function(t){return(t=Gt(t))&&t.replace(Yt,Ht).replace(qt,"")},Wt=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;var Xt=function(t){return t.match(Wt)||[]},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 Vt=function(t){return Kt.test(t)},Qt="\\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="["+Qt+"]",ee="\\d+",re="[\\u2700-\\u27bf]",ne="[a-z\\xdf-\\xf6\\xf8-\\xff]",oe="[^\\ud800-\\udfff"+Qt+ee+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",ae="(?:\\ud83c[\\udde6-\\uddff]){2}",ie="[\\ud800-\\udbff][\\udc00-\\udfff]",ue="[A-Z\\xc0-\\xd6\\xd8-\\xde]",ce="(?:"+ne+"|"+oe+")",se="(?:"+ue+"|"+oe+")",le="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?",he="[\\ufe0e\\ufe0f]?"+le+("(?:\\u200d(?:"+["[^\\ud800-\\udfff]",ae,ie].join("|")+")[\\ufe0e\\ufe0f]?"+le+")*"),fe="(?:"+[re,ae,ie].join("|")+")"+he,me=RegExp([ue+"?"+ne+"+(?:['’](?:d|ll|m|re|s|t|ve))?(?="+[te,ue,"$"].join("|")+")",se+"+(?:['’](?:D|LL|M|RE|S|T|VE))?(?="+[te,ue+ce,"$"].join("|")+")",ue+"?"+ce+"+(?:['’](?:d|ll|m|re|s|t|ve))?",ue+"+(?:['’](?: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,fe].join("|"),"g");var de=function(t){return t.match(me)||[]};var pe=function(t,e,r){return t=Gt(t),void 0===(e=r?void 0:e)?Vt(t)?de(t):Xt(t):t.match(e)||[]},ve=RegExp("['’]","g");var ge=function(t){return function(e){return Bt(pe(Jt(e).replace(ve,"")),t,"")}},ye=ge((function(t,e,r){return t+(r?" ":"")+e.toUpperCase()})),_e=ge((function(t,e,r){return t+(r?" ":"")+e.toLowerCase()})),be=function(t,e,r,n){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},a=o.showTime,i=void 0!==a&&a,u=o.isTimeFirst,c=void 0!==u&&u,s=o.isUpperCase,l=void 0!==s&&s,h=o.disableMeridiem,f=void 0!==h&&h,m=o.timeFormat,d=void 0===m?"12hours":m,p=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],v=new Date(n),g=v.getDate().toString().padStart(2,0),y=p[v.getMonth()],_=y;l&&(_=ye(y));var b,w=v.getFullYear(),x=o.localizedMeridiem,E=o.localizedMonths,j=o.direction,T=void 0===j?"ltr":j,O=xe(n,d),L=O;if(E&&(_=$t(E,[_e(y)])||y),x){var A=O.includes("am"),N=x.am,S=void 0===N?"am":N,I=x.pm,z=void 0===I?"pm":I;L=(A?O.replace("am",S):O.replace("pm",z))||O}return"rtl"===T?(b=i?"".concat(L):"","".concat(g," ").concat(_,", ").concat(w," ").concat(b," ")):f?"".concat(_," ").concat(g,", ").concat(w):c?"".concat(L,", ").concat(g," ").concat(_," ").concat(w):(b=i?", ".concat(L):"","".concat(g," ").concat(_,", ").concat(w).concat(b))};function we(t,e,r,n,o){var a,i=$t(o,["localizedPublishTime",r])||r;return"hour"===e&&t>23||-1!==["day","week","month","year"].indexOf(e)?be(t,e,r,n,o):t>1?(a=$t(o,["localizedPublishTime","".concat(e,"s")])||"".concat(e,"s"),"".concat(t," ").concat(a," ").concat(i)):(a=$t(o,["localizedPublishTime",e])||e,"".concat(t," ").concat(a," ").concat(i," "))}function xe(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"12hours",r=new Date(t),n=r.getHours(),o=r.getMinutes(),a=n>=12?"pm":"am",i=(n=(n%=12)||12)+":"+(o=o<10?"0"+o:o)+" "+a;return"24hours"===e?r.toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"}):i}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},je=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=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:je(t),n=Ee(r)<155?"light":"dark";return n};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 Oe={"./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"}},Le=function(e){var r=e.story,o=e.isBottom,c=e.config,s=void 0===c?{}:c,l=g()||{},h=n(s,["showTime"],n(l,["showTime"],!0)),f=r["last-published-at"]||r["first-published-at"],m=o?"bottom-fix":"",d=Te(l.theme);return t.createElement(t.Fragment,null,h&&t.createElement("div",{"data-test-id":"publish-time",className:"time arr--publish-time "+p("time ".concat(d," ").concat(m),Oe)},t.createElement("div",{className:"timestamp-m_time-wrapper__3O2lM"},function(e,r){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=arguments.length>3?arguments[3]:void 0,c=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null;if(c&&"story"===o){var s=c&&i(e,c),l=s&&u(s,"yyyy-MM-dd'T'HH:mm:ssXXX",{timeZone:c}),h=be("","","",e,n);return t.createElement("time",{dateTime:l},h)}return t.createElement(a,{date:e,formatter:function(t,e,o,a){return r(t,e,o,a,n)}})}(f,we,s))))};Le.propTypes={story:o.object,isBottom:o.bool,config:o.object};var Ae={"./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"}},Ne=function(e){var r=e.story,o=e.hideAuthorImage,a=e.isBottom,i=e.prefix,u=void 0===i?"":i,l=e.config,h=void 0===l?{}:l,f=g()||{},m=n(f,["showAuthor"],!0),d=n(r,["authors","0"],""),v=d["avatar-url"],y=d["avatar-s3-key"],_=d.name,b=d.slug,w=a?"bottom-fix":"",x=Te(f.theme),E=n(h,["mountAt"],""),j=function(e){return u?t.createElement("div",{className:"arr-author-prefix "+p("prefix ".concat(x),Ae)},u):!o&&function(e){return v||y?t.createElement("div",{"data-test-id":"author-image",className:p("author-image ".concat(e,"-image"),Ae)},t.createElement("figure",null,y?t.createElement(s,{slug:y,"aspect-ratio":[1,1],defaultWidth:400,imgParams:{auto:["format","compress"]},alt:_}):t.createElement("img",{src:v}))):null}(e)};return t.createElement(t.Fragment,null,m&&t.createElement(c,{href:"".concat(E,"/author/")+b,"aria-label":"author-name",className:"author-name arr-author-name arrow-component "+p("author ".concat(w),Ae)},j("ltr"),t.createElement("div",{"data-test-id":"author-name",className:"author-name "+p("author-name ".concat(x),Ae)},_||r["author-name"]),!u&&j("rtl")))};var Se=l((function(t){return{config:n(t,["qt","config"],{})}}))(Ne);Ne.propTypes={story:o.object.isRequired,hideAuthorImage:o.bool,isBottom:o.bool,prefix:o.string,config:o.object},Ne.defaultProps={hideAuthorImage:!1,isBottom:!1,prefix:""};var Ie={"./dot.m.css":{dark:"dot-m_dark__1Njxl",light:"dot-m_light__27IA3"}},ze=function(e){var r=e.width,n=void 0===r?"3px":r,o=e.height,a=void 0===o?"3px":o,i=e.color,u=void 0===i?"light":i;return t.createElement("div",{className:p(u,Ie)},t.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:n,height:a,viewBox:"0 0 3 3"},t.createElement("circle",{cx:"87",cy:"9",r:"1",fill:"inherit",fillRule:"nonzero",transform:"translate(-86 -8)"})))};ze.propTypes={color:o.string,width:o.string,height:o.string};var ke={"./divider.m.css":{dark:"divider-m_dark__26FRi",light:"divider-m_light__w-7sy"}},Me=function(e){var r=e.width,n=void 0===r?"1":r,o=e.height,a=void 0===o?"10":o,i=e.color,u=void 0===i?"light":i;return t.createElement("div",{className:p(u,ke)},t.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:n,height:a},t.createElement("path",{fill:"inherit",d:"M0 0h1v10H0z"})))};Me.propTypes={color:o.string,width:o.string,height:o.string};var Re={"./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"}},Fe=function(e){var r=e.story,o=e.opts,a=void 0===o?{}:o,i=e.isLightTheme,u=void 0!==i&&i,c=g()||{},s=n(c,["showReadTime"])||n(a,["showReadTime"],!0),l=n(r,["read-time"],0),h=u?"light":Te(c.theme);if(!s||!l)return null;var f=n(a,["localizedTimeToRead"])||"min read";return t.createElement(t.Fragment,null,t.createElement("div",{"data-test-id":"read-time",className:"arrow-component arr--read-time "+p("read-time-wrapper ".concat(h),Re)},t.createElement("span",{className:"read-time-indicator read-time-m_dot-indicator__3Sqh2"},t.createElement(ze,{color:h})),t.createElement("span",null,l," ",f)))};Fe.propTypes={story:o.shape({"read-time":o.number}),opts:o.shape({showReadTime:o.bool}),isLightTheme:o.bool};var Pe={"./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"}},Ce=function(e){var r=e.story,o=e.separator,a=e.isBottom,i=e.hideAuthorImage,u=e.prefix,c=e.config,s=void 0===c?{}:c,l=e.isLightTheme,h=g()||{},f=n(s,["showAuthor"],n(h,["showAuthor"],!0)),m=n(s,["showTime"],n(h,["showTime"],!0)),d=n(h,["showReadTime"],!0),v=a?"bottom-fix":"",y="dot"===o?"dot":"dash",_=l?"light":Te(h.theme),b=function(){return m?t.createElement(t.Fragment,null,f&&t.createElement("span",{className:"arr-separator "+p("".concat(y),Pe)},"divider"===o?t.createElement(Me,{color:_}):t.createElement(ze,{color:_})),t.createElement(Le,{story:r,config:s}),d&&t.createElement(Fe,{story:r,opts:s,isLightTheme:l})):null};return t.createElement("div",{className:"arr--author-time "+p("author-time-wrapper ".concat(v),Pe)},f?t.createElement(t.Fragment,null,t.createElement(Se,{story:r,isBottom:!0,hideAuthorImage:i,prefix:u}),b()):b())};Ce.propTypes={story:o.object,separator:o.oneOf(["dot","divider"]),hideAuthorImage:o.bool,isBottom:o.bool,prefix:o.string,config:o.object,isLightTheme:o.bool},Ce.defaultProps={separator:"dot",isBottom:!1,hideAuthorImage:!0,prefix:"",isLightTheme:!1};export{Ce as AuthorWithTime};
@@ -0,0 +1 @@
1
+ import t,{useContext as e,createContext as r}from"react";import n from"prop-types";import"react-timeago";import"date-fns-tz";function o(){return o=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},o.apply(this,arguments)}function i(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r,n,o={},i=Object.keys(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||(o[r]=t[r]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}var a="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function c(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function u(t){var e={exports:{}};return t(e,e.exports),e.exports}var s=u((function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r={attributeNames:{styleName:"className"},generateScopedName:"[path]___[name]__[local]___[hash:base64:5]",handleMissingStyleName:"throw"};e.default=r})),l=c(u((function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r,n=(r=s)&&r.__esModule?r:{default:r};var o=function(t,e){if("throw"===e)throw new Error(t);return"warn"===e&&console.warn(t),null};e.default=function(t,e,r){var i=Object.keys(e),a=r||{},c=a.handleMissingStyleName,u=void 0===c?n.default.handleMissingStyleName:c,s=a.autoResolveMultipleImports,l=void 0===s?n.default.autoResolveMultipleImports:s;return t?t.split(" ").filter((function(t){return t})).map((function(t){if(function(t){return-1!==t.indexOf(".")}(t))return function(t,e,r){var i=t.split("."),a=i[0],c=i[1],u=r||n.default.handleMissingStyleName;return c?e[a]?e[a][c]?e[a][c]:o("CSS module does not exist: "+c,u):o("CSS module import does not exist: "+a,u):o("Invalid style name: "+t,u)}(t,e,u);if(0===i.length)throw new Error("Cannot use styleName attribute for style name '"+t+"' without importing at least one stylesheet.");if(i.length>1){if(!l)throw new Error("Cannot use anonymous style name '"+t+"' with more than one stylesheet import without setting 'autoResolveMultipleImports' to true.");return function(t,e,r){var i=r||n.default.handleMissingStyleName,a=Object.keys(e).map((function(r){return e[r][t]&&r})).filter((function(t){return t}));if(a.length>1)throw new Error('Cannot resolve styleName "'+t+'" because it is present in multiple imports:\n\n\t'+a.join("\n\t")+'\n\nYou can resolve this by using a named import, e.g:\n\n\timport foo from "'+a[0]+'";\n\t<div styleName="foo.'+t+'" />\n\n');return 0===a.length?o("Could not resolve the styleName '"+t+"'.",i):e[a[0]][t]}(t,e,u)}var r=e[i[0]];return r[t]?r[t]:o("Could not resolve the styleName '"+t+"'.",u)})).filter((function(t){return t})).join(" "):""}}))),f=["element","render"],h=function(e){return function(r){var n=r.element,a=r.render,c=i(r,f);return n?a&&"function"==typeof a?a(r):t.createElement(e,o({},c,{element:n})):null}};h.propTypes={StoryElement:n.element};var p=r();u((function(t){var e=function(t){var e,r=Object.prototype,n=r.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,r){return t[e]=r}}function s(t,e,r,n){var o=e&&e.prototype instanceof d?e:d,i=Object.create(o.prototype),a=new N(n||[]);return i._invoke=function(t,e,r){var n=f;return function(o,i){if(n===p)throw new Error("Generator is already running");if(n===v){if("throw"===o)throw i;return k()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var c=E(a,r);if(c){if(c===y)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(n===f)throw n=v,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n=p;var u=l(t,e,r);if("normal"===u.type){if(n=r.done?v:h,u.arg===y)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(n=v,r.method="throw",r.arg=u.arg)}}}(t,r,a),i}function l(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=s;var f="suspendedStart",h="suspendedYield",p="executing",v="completed",y={};function d(){}function g(){}function m(){}var _={};u(_,i,(function(){return this}));var b=Object.getPrototypeOf,w=b&&b(b(P([])));w&&w!==r&&n.call(w,i)&&(_=w);var j=m.prototype=d.prototype=Object.create(_);function O(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function x(t,e){function r(o,i,a,c){var u=l(t[o],t,i);if("throw"!==u.type){var s=u.arg,f=s.value;return f&&"object"==typeof f&&n.call(f,"__await")?e.resolve(f.__await).then((function(t){r("next",t,a,c)}),(function(t){r("throw",t,a,c)})):e.resolve(f).then((function(t){s.value=t,a(s)}),(function(t){return r("throw",t,a,c)}))}c(u.arg)}var o;this._invoke=function(t,n){function i(){return new e((function(e,o){r(t,n,e,o)}))}return o=o?o.then(i,i):i()}}function E(t,r){var n=t.iterator[r.method];if(n===e){if(r.delegate=null,"throw"===r.method){if(t.iterator.return&&(r.method="return",r.arg=e,E(t,r),"throw"===r.method))return y;r.method="throw",r.arg=new TypeError("The iterator does not provide a 'throw' method")}return y}var o=l(n,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,y;var i=o.arg;return i?i.done?(r[t.resultName]=i.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,y):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function S(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function N(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(S,this),this.reset(!0)}function P(t){if(t){var r=t[i];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,a=function r(){for(;++o<t.length;)if(n.call(t,o))return r.value=t[o],r.done=!1,r;return r.value=e,r.done=!0,r};return a.next=a}}return{next:k}}function k(){return{value:e,done:!0}}return g.prototype=m,u(j,"constructor",m),u(m,"constructor",g),g.displayName=u(m,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,m):(t.__proto__=m,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(e,r,n,o,i){void 0===i&&(i=Promise);var a=new x(s(e,r,n,o),i);return t.isGeneratorFunction(r)?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 e=[];for(var r in t)e.push(r);return e.reverse(),function r(){for(;e.length;){var n=e.pop();if(n in t)return r.value=n,r.done=!1,r}return r.done=!0,r}},t.values=P,N.prototype={constructor:N,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(L),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function o(n,o){return c.type="throw",c.arg=t,r.next=n,o&&(r.method="next",r.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var 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,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y},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),L(r),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;L(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:P(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),y}},t}(t.exports);try{regeneratorRuntime=e}catch(t){"object"==typeof globalThis?globalThis.regeneratorRuntime=e:Function("r","regeneratorRuntime = r")(e)}}));var v="object"==typeof a&&a&&a.Object===Object&&a,y="object"==typeof self&&self&&self.Object===Object&&self,d=v||y||Function("return this")(),g=d.Symbol,m=Object.prototype,_=m.hasOwnProperty,b=m.toString,w=g?g.toStringTag:void 0;var j=function(t){var e=_.call(t,w),r=t[w];try{t[w]=void 0;var n=!0}catch(t){}var o=b.call(t);return n&&(e?t[w]=r:delete t[w]),o},O=Object.prototype.toString;var x=function(t){return O.call(t)},E=g?g.toStringTag:void 0;var S=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":E&&E in Object(t)?j(t):x(t)};var L=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)};var N,P=function(t){if(!L(t))return!1;var e=S(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e},k=d["__core-js_shared__"],I=(N=/[^.]+$/.exec(k&&k.keys&&k.keys.IE_PROTO||""))?"Symbol(src)_1."+N:"";var T=function(t){return!!I&&I in t},F=Function.prototype.toString;var M=function(t){if(null!=t){try{return F.call(t)}catch(t){}try{return t+""}catch(t){}}return""},z=/^\[object .+?Constructor\]$/,C=Function.prototype,G=Object.prototype,$=C.toString,A=G.hasOwnProperty,R=RegExp("^"+$.call(A).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var U=function(t){return!(!L(t)||T(t))&&(P(t)?R:z).test(M(t))};var Y=function(t,e){return null==t?void 0:t[e]};var K=function(t,e){var r=Y(t,e);return U(r)?r:void 0},X=K(Object,"create");var q=function(){this.__data__=X?X(null):{},this.size=0};var B=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},D=Object.prototype.hasOwnProperty;var H=function(t){var e=this.__data__;if(X){var r=e[t];return"__lodash_hash_undefined__"===r?void 0:r}return D.call(e,t)?e[t]:void 0},J=Object.prototype.hasOwnProperty;var Q=function(t){var e=this.__data__;return X?void 0!==e[t]:J.call(e,t)};var V=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 W(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}W.prototype.clear=q,W.prototype.delete=B,W.prototype.get=H,W.prototype.has=Q,W.prototype.set=V;var Z=W;var tt=function(){this.__data__=[],this.size=0};var et=function(t,e){return t===e||t!=t&&e!=e};var rt=function(t,e){for(var r=t.length;r--;)if(et(t[r][0],e))return r;return-1},nt=Array.prototype.splice;var ot=function(t){var e=this.__data__,r=rt(e,t);return!(r<0)&&(r==e.length-1?e.pop():nt.call(e,r,1),--this.size,!0)};var it=function(t){var e=this.__data__,r=rt(e,t);return r<0?void 0:e[r][1]};var at=function(t){return rt(this.__data__,t)>-1};var ct=function(t,e){var r=this.__data__,n=rt(r,t);return n<0?(++this.size,r.push([t,e])):r[n][1]=e,this};function ut(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}ut.prototype.clear=tt,ut.prototype.delete=ot,ut.prototype.get=it,ut.prototype.has=at,ut.prototype.set=ct;var st=ut,lt=K(d,"Map");var ft=function(){this.size=0,this.__data__={hash:new Z,map:new(lt||st),string:new Z}};var ht=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t};var pt=function(t,e){var r=t.__data__;return ht(e)?r["string"==typeof e?"string":"hash"]:r.map};var vt=function(t){var e=pt(this,t).delete(t);return this.size-=e?1:0,e};var yt=function(t){return pt(this,t).get(t)};var dt=function(t){return pt(this,t).has(t)};var gt=function(t,e){var r=pt(this,t),n=r.size;return r.set(t,e),this.size+=r.size==n?0:1,this};function mt(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}mt.prototype.clear=ft,mt.prototype.delete=vt,mt.prototype.get=yt,mt.prototype.has=dt,mt.prototype.set=gt;var _t=mt;function bt(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var r=function(){var n=arguments,o=e?e.apply(this,n):n[0],i=r.cache;if(i.has(o))return i.get(o);var a=t.apply(this,n);return r.cache=i.set(o,a)||i,a};return r.cache=new(bt.Cache||_t),r}bt.Cache=_t;var wt=bt;var jt=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ot=/\\(\\)?/g;(function(t){var e=wt(t,(function(t){return 500===r.size&&r.clear(),t})),r=e.cache})((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(jt,(function(t,r,n,o){e.push(n?o.replace(Ot,"$1"):r||t)})),e}));var xt=g?g.prototype:void 0;xt&&xt.toString;var Et=function(t){var e=function(t){return{r:parseInt(t.slice(1,3),16),g:parseInt(t.slice(3,5),16),b:parseInt(t.slice(5,7),16)}}(t);return.299*e.r+.587*e.g+.114*e.b},St=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"rgba(255, 255, 255, 0)",e=t.match(/^rgba?[\s+]?\([\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?/i);return e&&4===e.length?"#"+("0"+parseInt(e[1],10).toString(16)).slice(-2)+("0"+parseInt(e[2],10).toString(16)).slice(-2)+("0"+parseInt(e[3],10).toString(16)).slice(-2):t};n.shape({"sketches-host":n.string,"cdn-name":n.string,"cdn-image":n.string}),n.shape({headline:n.string,"last-published-at":n.number,subheadline:n.string});var Lt=["element","story","config"],Nt={"./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"}},Pt=function(r){var n=r.element;r.story,r.config;var a=i(r,Lt),c=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"rgb(255,255,255)",e=/^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/.test(t)?t:St(t);return Et(e)<155?"light":"dark"}((e(p)||{}).theme),u=n.metadata,s=u.content,f=u.attribution;return t.createElement("div",o({"data-test-id":"bigfact"},a,{className:"arrow-component arr--bigfact-element "+l("bigfact-element ".concat(c),Nt)+" "+(a&&a.className||"")}),t.createElement("div",{className:"big-fact-m_content__1u2Ul"},s),t.createElement("div",{"data-test-id":"attribution",className:l("attribution ".concat(c),Nt)},f))};Pt.propTypes={element:n.shape({metadata:n.shape({content:n.string,attribution:n.string})}),story:n.object,config:n.object};var kt=h(Pt);export{kt as BigFact};