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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (74) hide show
  1. package/AlsoRead/index.js +1 -0
  2. package/AlternateCollectionFilter/index.js +1 -0
  3. package/AsideCollection/index.js +1 -0
  4. package/Attachment/index.js +1 -0
  5. package/Author/index.js +1 -0
  6. package/AuthorIntroductionCard/index.js +1 -0
  7. package/AuthorWithTime/index.js +1 -0
  8. package/AuthorsList/index.js +1 -0
  9. package/BigFact/index.js +1 -0
  10. package/BlockQuote/index.js +1 -0
  11. package/Blurb/index.js +1 -0
  12. package/CollectionFilter/index.js +1 -0
  13. package/CollectionName/index.js +1 -0
  14. package/ElevenStories/index.js +1 -0
  15. package/FourColFiveStories/index.js +1 -0
  16. package/FourColGrid/index.js +1 -0
  17. package/FourColSixteenStories/index.js +1 -0
  18. package/FourColTwelveStories/index.js +1 -0
  19. package/FourStorySlider/index.js +1 -0
  20. package/FourTabbedBigStorySlider/index.js +1 -0
  21. package/FullScreenSlider/index.js +1 -0
  22. package/HalfScreenSlider/index.js +1 -0
  23. package/Headline/index.js +1 -0
  24. package/HeroImage/index.js +1 -0
  25. package/Image/index.js +1 -0
  26. package/ImageGallery/index.js +1 -0
  27. package/ImageSlideshow/index.js +1 -0
  28. package/KeyEvents/index.js +1 -0
  29. package/ListComponent/index.js +1 -0
  30. package/ListicleStoryTemplate/index.js +1 -0
  31. package/Listicles/index.js +1 -0
  32. package/LiveBlogStoryTemplate/index.js +1 -0
  33. package/LoadmoreButton/index.js +1 -0
  34. package/MagazineEditions/index.js +1 -0
  35. package/MagazineHeaderCard/index.js +1 -0
  36. package/MagazineWidget/index.js +1 -0
  37. package/OneColStoryList/index.js +1 -0
  38. package/OpinionCollection/index.js +1 -0
  39. package/PageIntroductionCard/index.js +1 -0
  40. package/PhotoStoryTemplate/index.js +1 -0
  41. package/QuestionAnswer/index.js +1 -0
  42. package/Quote/index.js +1 -0
  43. package/Reference/index.js +1 -0
  44. package/ScrollSnap/index.js +1 -0
  45. package/SectionTag/index.js +1 -0
  46. package/SixColSixStories/index.js +1 -0
  47. package/SocialShareTemplate/index.js +1 -0
  48. package/StoryCard/index.js +1 -0
  49. package/StoryCollection/index.js +1 -0
  50. package/StoryElement/index.js +1 -0
  51. package/StoryElementCard/index.js +1 -0
  52. package/StorycardContent/index.js +1 -0
  53. package/Subheadline/index.js +1 -0
  54. package/Summary/index.js +1 -0
  55. package/TagIntroductionCard/index.js +1 -0
  56. package/Text/index.js +1 -0
  57. package/TextStoryTemplate/index.js +1 -0
  58. package/ThreeColFlexStories/index.js +1 -0
  59. package/ThreeColFourteenStories/index.js +1 -0
  60. package/ThreeColGrid/index.js +1 -0
  61. package/ThreeColSevenStory/index.js +1 -0
  62. package/ThreeColSixStories/index.js +1 -0
  63. package/ThreeColTwelveStories/index.js +1 -0
  64. package/TimeStamp/index.js +1 -0
  65. package/TwoColFourStories/index.js +1 -0
  66. package/TwoColFourStoryHighlight/index.js +1 -0
  67. package/TwoColSixStories/index.js +1 -0
  68. package/TwoColTenStoriesSidebar/index.js +1 -0
  69. package/TwoColThreeStories/index.js +1 -0
  70. package/Video/index.js +1 -0
  71. package/VideoStoryTemplate/index.js +1 -0
  72. package/cjs/index.js +1 -9
  73. package/esm/index.js +1 -9
  74. package/package.json +1 -1
@@ -0,0 +1 @@
1
+ import e,{createContext as t,useContext as r,useState as o,useRef as n,useEffect as a}from"react";import i,{PropTypes as l,number as c,string as s,func as u,array as d,bool as m}from"prop-types";import{connect as h,useSelector as f,useDispatch as p}from"react-redux";import{Link as g,LinkBase as v,ResponsiveImage as _,ResponsiveHeroImage as b,collectionToStories as y}from"@quintype/components";import w from"react-timeago";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 T(e){var t={exports:{}};return e(t,t.exports),t.exports}var k=T((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={attributeNames:{styleName:"className"},generateScopedName:"[path]___[name]__[local]___[hash:base64:5]",handleMissingStyleName:"throw"};t.default=r})),N=x(T((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,o=(r=k)&&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(" "):""}}))),L=Array.isArray,j="object"==typeof E&&E&&E.Object===Object&&E,C="object"==typeof self&&self&&self.Object===Object&&self,O=j||C||Function("return this")(),S=O.Symbol,z=Object.prototype,I=z.hasOwnProperty,A=z.toString,P=S?S.toStringTag:void 0;var R=function(e){var t=I.call(e,P),r=e[P];try{e[P]=void 0;var o=!0}catch(e){}var n=A.call(e);return o&&(t?e[P]=r:delete e[P]),n},M=Object.prototype.toString;var B=function(e){return M.call(e)},D=S?S.toStringTag:void 0;var F=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":D&&D in Object(e)?R(e):B(e)};var H=function(e){return null!=e&&"object"==typeof e};var U=function(e){return"symbol"==typeof e||H(e)&&"[object Symbol]"==F(e)},W=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,q=/^\w*$/;var V=function(e,t){if(L(e))return!1;var r=typeof e;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=e&&!U(e))||(q.test(e)||!W.test(e)||null!=t&&e in Object(t))};var G=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)};var Z,Y=function(e){if(!G(e))return!1;var t=F(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},$=O["__core-js_shared__"],J=(Z=/[^.]+$/.exec($&&$.keys&&$.keys.IE_PROTO||""))?"Symbol(src)_1."+Z:"";var K=function(e){return!!J&&J in e},X=Function.prototype.toString;var Q=function(e){if(null!=e){try{return X.call(e)}catch(e){}try{return e+""}catch(e){}}return""},ee=/^\[object .+?Constructor\]$/,te=Function.prototype,re=Object.prototype,oe=te.toString,ne=re.hasOwnProperty,ae=RegExp("^"+oe.call(ne).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var ie=function(e){return!(!G(e)||K(e))&&(Y(e)?ae:ee).test(Q(e))};var le=function(e,t){return null==e?void 0:e[t]};var ce=function(e,t){var r=le(e,t);return ie(r)?r:void 0},se=ce(Object,"create");var ue=function(){this.__data__=se?se(null):{},this.size=0};var de=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},me=Object.prototype.hasOwnProperty;var he=function(e){var t=this.__data__;if(se){var r=t[e];return"__lodash_hash_undefined__"===r?void 0:r}return me.call(t,e)?t[e]:void 0},fe=Object.prototype.hasOwnProperty;var pe=function(e){var t=this.__data__;return se?void 0!==t[e]:fe.call(t,e)};var ge=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=se&&void 0===t?"__lodash_hash_undefined__":t,this};function ve(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var o=e[t];this.set(o[0],o[1])}}ve.prototype.clear=ue,ve.prototype.delete=de,ve.prototype.get=he,ve.prototype.has=pe,ve.prototype.set=ge;var _e=ve;var be=function(){this.__data__=[],this.size=0};var ye=function(e,t){return e===t||e!=e&&t!=t};var we=function(e,t){for(var r=e.length;r--;)if(ye(e[r][0],t))return r;return-1},Ee=Array.prototype.splice;var xe=function(e){var t=this.__data__,r=we(t,e);return!(r<0)&&(r==t.length-1?t.pop():Ee.call(t,r,1),--this.size,!0)};var Te=function(e){var t=this.__data__,r=we(t,e);return r<0?void 0:t[r][1]};var ke=function(e){return we(this.__data__,e)>-1};var Ne=function(e,t){var r=this.__data__,o=we(r,e);return o<0?(++this.size,r.push([e,t])):r[o][1]=t,this};function Le(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])}}Le.prototype.clear=be,Le.prototype.delete=xe,Le.prototype.get=Te,Le.prototype.has=ke,Le.prototype.set=Ne;var je=Le,Ce=ce(O,"Map");var Oe=function(){this.size=0,this.__data__={hash:new _e,map:new(Ce||je),string:new _e}};var Se=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e};var ze=function(e,t){var r=e.__data__;return Se(t)?r["string"==typeof t?"string":"hash"]:r.map};var Ie=function(e){var t=ze(this,e).delete(e);return this.size-=t?1:0,t};var Ae=function(e){return ze(this,e).get(e)};var Pe=function(e){return ze(this,e).has(e)};var Re=function(e,t){var r=ze(this,e),o=r.size;return r.set(e,t),this.size+=r.size==o?0:1,this};function Me(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var o=e[t];this.set(o[0],o[1])}}Me.prototype.clear=Oe,Me.prototype.delete=Ie,Me.prototype.get=Ae,Me.prototype.has=Pe,Me.prototype.set=Re;var Be=Me;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||Be),r}De.Cache=Be;var Fe=De;var He=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ue=/\\(\\)?/g,We=function(e){var t=Fe(e,(function(e){return 500===r.size&&r.clear(),e})),r=t.cache;return t}((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(He,(function(e,r,o,n){t.push(o?n.replace(Ue,"$1"):r||e)})),t}));var qe=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},Ve=S?S.prototype:void 0,Ge=Ve?Ve.toString:void 0;var Ze=function e(t){if("string"==typeof t)return t;if(L(t))return qe(t,e)+"";if(U(t))return Ge?Ge.call(t):"";var r=t+"";return"0"==r&&1/t==-Infinity?"-0":r};var Ye=function(e){return null==e?"":Ze(e)};var $e=function(e,t){return L(e)?e:V(e,t)?[e]:We(Ye(e))};var Je=function(e){if("string"==typeof e||U(e))return e;var t=e+"";return"0"==t&&1/e==-Infinity?"-0":t};var Ke=function(e,t){for(var r=0,o=(t=$e(t,e)).length;null!=e&&r<o;)e=e[Je(t[r++])];return r&&r==o?e:void 0};var Xe=function(e,t,r){var o=null==e?void 0:Ke(e,t);return void 0===o?r:o},Qe=t(),et=function(){return r(Qe)};function tt(e){return(tt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}T((function(e){var t=function(e){var t,r=Object.prototype,o=r.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},a=n.iterator||"@@iterator",i=n.asyncIterator||"@@asyncIterator",l=n.toStringTag||"@@toStringTag";function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,r){return e[t]=r}}function s(e,t,r,o){var n=t&&t.prototype instanceof g?t:g,a=Object.create(n.prototype),i=new j(o||[]);return a._invoke=function(e,t,r){var o=d;return function(n,a){if(o===h)throw new Error("Generator is already running");if(o===f){if("throw"===n)throw a;return O()}for(r.method=n,r.arg=a;;){var i=r.delegate;if(i){var l=k(i,r);if(l){if(l===p)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===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 b={};c(b,a,(function(){return this}));var y=Object.getPrototypeOf,w=y&&y(y(C([])));w&&w!==r&&o.call(w,a)&&(b=w);var E=_.prototype=g.prototype=Object.create(b);function x(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function T(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 k(e,r){var o=e.iterator[r.method];if(o===t){if(r.delegate=null,"throw"===r.method){if(e.iterator.return&&(r.method="return",r.arg=t,k(e,r),"throw"===r.method))return p;r.method="throw",r.arg=new TypeError("The iterator does not provide a 'throw' method")}return p}var n=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 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 L(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function j(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(N,this),this.reset(!0)}function C(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:O}}function O(){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(T.prototype),c(T.prototype,i,(function(){return this})),e.AsyncIterator=T,e.async=function(t,r,o,n,a){void 0===a&&(a=Promise);var i=new T(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=C,j.prototype={constructor:j,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(L),!e)for(var r in this)"t"===r.charAt(0)&&o.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function n(o,n){return l.type="throw",l.arg=e,r.next=o,n&&(r.method="next",r.arg=t),!!n}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],l=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=o.call(i,"catchLoc"),s=o.call(i,"finallyLoc");if(c&&s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&o.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var a=n;break}}a&&("break"===e||"continue"===e)&&a.tryLoc<=t&&t<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=e,i.arg=t,a?(this.method="next",this.next=a.finallyLoc,p):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),p},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),L(r),p}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var o=r.completion;if("throw"===o.type){var n=o.arg;L(r)}return n}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,o){return this.delegate={iterator:C(e),resultName:r,nextLoc:o},"next"===this.method&&(this.arg=t),p}},e}(e.exports);try{regeneratorRuntime=t}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=t:Function("r","regeneratorRuntime = r")(t)}}));var rt=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 ot=function(e){return function(t){return null==e?void 0:e[t]}}({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"}),nt=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,at=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]","g");var it=function(e){return(e=Ye(e))&&e.replace(nt,ot).replace(at,"")},lt=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;var ct=function(e){return e.match(lt)||[]},st=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;var ut=function(e){return st.test(e)},dt="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",mt="["+dt+"]",ht="\\d+",ft="[\\u2700-\\u27bf]",pt="[a-z\\xdf-\\xf6\\xf8-\\xff]",gt="[^\\ud800-\\udfff"+dt+ht+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",vt="(?:\\ud83c[\\udde6-\\uddff]){2}",_t="[\\ud800-\\udbff][\\udc00-\\udfff]",bt="[A-Z\\xc0-\\xd6\\xd8-\\xde]",yt="(?:"+pt+"|"+gt+")",wt="(?:"+bt+"|"+gt+")",Et="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?",xt="[\\ufe0e\\ufe0f]?"+Et+("(?:\\u200d(?:"+["[^\\ud800-\\udfff]",vt,_t].join("|")+")[\\ufe0e\\ufe0f]?"+Et+")*"),Tt="(?:"+[ft,vt,_t].join("|")+")"+xt,kt=RegExp([bt+"?"+pt+"+(?:['’](?:d|ll|m|re|s|t|ve))?(?="+[mt,bt,"$"].join("|")+")",wt+"+(?:['’](?:D|LL|M|RE|S|T|VE))?(?="+[mt,bt+yt,"$"].join("|")+")",bt+"?"+yt+"+(?:['’](?:d|ll|m|re|s|t|ve))?",bt+"+(?:['’](?: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_])",ht,Tt].join("|"),"g");var Nt=function(e){return e.match(kt)||[]};var Lt=function(e,t,r){return e=Ye(e),void 0===(t=r?void 0:t)?ut(e)?Nt(e):ct(e):e.match(t)||[]},jt=RegExp("['’]","g");var Ct=function(e){return function(t){return rt(Lt(it(t).replace(jt,"")),e,"")}},Ot=Ct((function(e,t,r){return e+(r?" ":"")+t.toUpperCase()})),St=Ct((function(e,t,r){return e+(r?" ":"")+t.toLowerCase()}));function zt(e,t,r,o,n){var a,i=Xe(n,["localizedPublishTime",r])||r;return"hour"===t&&e>23||-1!==["day","week","month","year"].indexOf(t)?function(e,t,r,o){var n=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},a=n.showTime,i=void 0!==a&&a,l=n.isTimeFirst,c=void 0!==l&&l,s=n.isUpperCase,u=void 0!==s&&s,d=n.disableMeridiem,m=void 0!==d&&d,h=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],f=new Date(o),p=f.getDate().toString().padStart(2,0),g=h[f.getMonth()],v=g;u&&(v=Ot(g));var _,b=f.getFullYear(),y=n.localizedMeridiem,w=n.localizedMonths,E=n.direction,x=void 0===E?"ltr":E,T=It(o),k=T;if(w&&(v=Xe(w,[St(g)])||g),y){var N=T.includes("am"),L=y.am,j=void 0===L?"am":L,C=y.pm,O=void 0===C?"pm":C;k=(N?T.replace("am",j):T.replace("pm",O))||T}return"rtl"===x?(_=i?"".concat(k):"","".concat(p," ").concat(v,", ").concat(b," ").concat(_," ")):m?"".concat(v," ").concat(p,", ").concat(b):c?"".concat(k,", ").concat(p," ").concat(v," ").concat(b):(_=i?", ".concat(k):"","".concat(p," ").concat(v,", ").concat(b).concat(_))}(e,t,r,o,n):e>1?(a=Xe(n,["localizedPublishTime","".concat(t,"s")])||"".concat(t,"s"),"".concat(e," ").concat(a," ").concat(i)):(a=Xe(n,["localizedPublishTime",t])||t,"".concat(e," ").concat(a," ").concat(i," "))}function It(e){var t=new Date(e),r=t.getHours(),o=t.getMinutes(),n=r>=12?"pm":"am";return(r=(r%=12)||12)+":"+(o=o<10?"0"+o:o)+" "+n}var At=function(e){var t=function(e){return{r:parseInt(e.slice(1,3),16),g:parseInt(e.slice(3,5),16),b:parseInt(e.slice(5,7),16)}}(e);return.299*t.r+.587*t.g+.114*t.b},Pt=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"rgba(255, 255, 255, 0)",t=e.match(/^rgba?[\s+]?\([\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?/i);return t&&4===t.length?"#"+("0"+parseInt(t[1],10).toString(16)).slice(-2)+("0"+parseInt(t[2],10).toString(16)).slice(-2)+("0"+parseInt(t[3],10).toString(16)).slice(-2):e},Rt={mobile:767,tablet:1024},Mt=function(e){var t=Xe(Rt,e);return!!t&&Xe(global,"document.documentElement.clientWidth")<=t},Bt=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=At(r)<155?"light":"dark";return o};var 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=Xe(e,["metadata","section","0","id"],""),c=t.sections,s=c&&c.find((function(e){return e.id===l}));return s?s["section-url"]:"/"}return"/collection/".concat(e.slug)};function Ft(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e["story-template"],r=void 0===t?"":t,o=e.metadata,n=void 0===o?{}:o;return"news-elsewhere"===r?Xe(n,["reference-url"],""):""}i.shape({"sketches-host":i.string,"cdn-name":i.string,"cdn-image":i.string}),i.shape({headline:i.string,"last-published-at":i.number,subheadline:i.string});var Ht=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return"news-elsewhere"===Xe(e,["story-template"])?Xe(e,["metadata","reference-url"],""):e.url||t},Ut=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2?arguments[2]:void 0;if(r)return r;var o=t.magazineSlug,n=void 0===o?"":o,a=t.isArchivePage,i=void 0!==a&&a;return i?"/magazine/archive/".concat(n):n?"/magazine/".concat(n,"/").concat(e.slug):e?Dt(e,t):"/"},Wt={"./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"}},qt=function(t){var r=t.collectionNameBorderColor,o=void 0===r?"":r,n=t.collection,a=t.config,i=t.collectionNameTemplate,l=t.headerLevel,c=t.customCollectionName,s=void 0===c?"":c,u=t.navigate,d=void 0===u||u,m=et()||{},h=Xe(m,["showRowTitle"],!0),f=["borderLeft","borderBottom","crossLine","borderBottomFull"].includes(i)?" collection-".concat(i):"",p=d&&n&&Dt(n,a)||"",v=s||n.name||"",_=Bt(m.theme),b="h"+l,y=Pt(o),w=f.includes("collection-borderBottomFull")?"4px solid ".concat(y):"",E=Mt("mobile");return e.createElement(e.Fragment,null,h&&v&&e.createElement("div",{style:{borderBottom:w},"data-test-id":"collection-name",className:"arr--collection-name arrow-component "+N("collection ".concat(_," ").concat(f),Wt)},f.includes("collection-borderLeft")&&e.createElement("span",{className:"arr-collection-name-border-left collection-name-m_border-left__3_pYw",style:{color:y,fontSize:function(){if(E)switch(l){case"1":return"32px";case"2":return"24px";case"3":return"20px";case"4":return"18px";case"5":case"6":return"16px";default:return"20px"}switch(l){case"1":return"40px";case"2":return"32px";case"3":return"24px";case"4":return"20px";case"5":return"18px";case"6":return"16px";default:return"24px"}}()}}),p&&!p.includes(void 0)?e.createElement(g,{href:p,"aria-label":"collection-name"},e.createElement(b,null,v)):e.createElement(b,null,v),f.includes("collection-borderBottom")&&!f.includes("collection-borderBottomFull")?e.createElement("div",{className:"collection-name-m_border-bottom__1MnlV",style:{borderBottom:"4px solid ".concat(y)}}):""))};qt.propTypes={collectionNameBorderColor:l.string,collection:l.object,config:l.object,collectionNameTemplate:l.oneOf(["","borderLeft","borderBottom","crossLine","borderBottomFull"]),headerLevel:l.string,customCollectionName:l.string,navigate:l.bool},qt.defaultProps={collectionNameTemplate:"",headerLevel:"3"};var Vt=h((function(e){return{config:Xe(e,["qt","config"],{})}}))(qt);function Gt(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Zt={"./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 Yt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,o)}return r}function $t(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Yt(Object(r),!0).forEach((function(t){Gt(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Yt(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var Jt=function(t){var r=t.config,o=void 0===r?{}:r,n=t.collection,a=t.template,i=void 0===a?"SubsequentLoadCount":a,l=t.onClick,c=t.navigate,s=t.qtConfig,u=o.showButton,d=void 0===u||u,m=o.buttonText,h=void 0===m?"Read More":m,f=o.theme,p=void 0===f?"":f,g=o.customUrlPath,_=void 0===g?"":g;if(!d)return null;var b=Bt(p),y=_?"/".concat(_):Ut(n,$t($t({},s),o));return"SubsequentLoadCount"===i?e.createElement("div",{onClick:l,"data-test-id":"load-more",className:"arr--button "+N("button ".concat(b," default"),Zt)},h):e.createElement(v,{href:y,navigateTo:c,"data-test-id":"load-more","aria-label":"load-more"},e.createElement("div",{className:"arr--button "+N("button ".concat(b," default"),Zt)},h))};Jt.propTypes={collection:i.object,template:i.string,config:i.object,onClick:i.func,navigate:i.func,qtConfig:i.object};var Kt=function(t){var r=t.height,o=t.width,n=t.color,a=void 0===n?"#D8D8D8":n,i=t.positionTop;return e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:o,height:r,viewBox:"0 0 40 40",style:{position:"relative",top:i}},e.createElement("g",{fill:"none",fillRule:"evenodd",stroke:"none",strokeWidth:"1"},e.createElement("g",null,e.createElement("g",{transform:"translate(8 8)"},e.createElement("path",{d:"M0 0H24V24H0z"}),e.createElement("g",{fill:a,fillRule:"nonzero",transform:"translate(0 2)"},e.createElement("path",{d:"M21.043 19.553c0-.743-.601-1.344-1.344-1.344h-15.4a1.343 1.343 0 100 2.688h15.4c.743 0 1.344-.603 1.344-1.344zM1.598 8.673c.022 0 .042 0 .064-.003l2.131 7.713h16.411l2.132-7.713c.022 0 .041.003.063.003a1.599 1.599 0 10-1.52-1.108L17.025 9.82 12.882 2.95a1.599 1.599 0 10-1.765 0L6.976 9.82 3.121 7.565a1.599 1.599 0 10-1.523 1.107z"}))))))};Kt.propTypes={height:i.string,width:i.string,color:i.string,positionTop:i.string};var Xt=function(t){var r=t.height,o=t.width,n=t.color,a=void 0===n?"#D5D5D5":n,i=t.positionTop;return e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:o,height:r,viewBox:"0 0 40 40",style:{position:"relative",top:i}},e.createElement("g",{fill:"none",fillRule:"evenodd",stroke:"none",strokeWidth:"1"},e.createElement("g",null,e.createElement("g",{transform:"translate(8 8)"},e.createElement("path",{d:"M0 0H24V24H0z"}),e.createElement("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)"})))))};Xt.propTypes={height:i.string,width:i.string,color:i.string,positionTop:i.string};var Qt=function(t){var r=t.height,o=t.width,n=t.color,a=void 0===n?"#D5D5D5":n,i=t.positionTop;return e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:o,height:r,viewBox:"0 0 40 40",style:{position:"relative",top:i}},e.createElement("g",{fill:"none",fillRule:"evenodd",stroke:"none",strokeWidth:"1"},e.createElement("g",null,e.createElement("g",{transform:"translate(8 8)"},e.createElement("path",{d:"M0 0H24V24H0z"}),e.createElement("g",{fill:a,fillRule:"nonzero",transform:"translate(3)"},e.createElement("path",{d:"M15.692 9h-.747V6c0-3.31-2.681-6-5.978-6C5.67 0 2.989 2.69 2.989 6v3h-.747A2.249 2.249 0 000 11.25v10.5A2.249 2.249 0 002.242 24h13.45a2.249 2.249 0 002.242-2.25v-10.5A2.249 2.249 0 0015.692 9zM4.982 6c0-2.206 1.787-4 3.985-4s3.985 1.794 3.985 4v3h-7.97V6z"}))))))};Qt.propTypes={height:i.string,width:i.string,color:i.string,positionTop:i.string};var er=function(t){var r=t.width,o=t.height,n=t.color,a=void 0===n?"#D5D5D5":n,i=t.positionTop,l=void 0===i?"":i;return e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:r,height:o,viewBox:"0 0 40 40",style:{position:"relative",top:l}},e.createElement("g",{fill:"none",fillRule:"evenodd",stroke:"none",strokeWidth:"1"},e.createElement("g",null,e.createElement("path",{fill:a,d:"M20 26L12.946577 29.7082039 14.2936609 21.854102 8.5873218 16.2917961 16.4732885 15.145898 20 8 23.5267115 15.145898 31.4126782 16.2917961 25.7063391 21.854102 27.053423 29.7082039z"}))))};er.propTypes={height:i.string,width:i.string,color:i.string,positionTop:i.string};var tr=function(t){var r=t.width,o=t.height,n=t.color,a=t.iconType,i=t.positionTop;switch(a){case"crown":return e.createElement(Kt,{width:r,height:o,color:n,positionTop:i});case"lock":return e.createElement(Qt,{width:r,height:o,color:n,positionTop:i});case"key":return e.createElement(Xt,{width:r,height:o,color:n,positionTop:i});default:return e.createElement(er,{width:r,height:o,color:n,positionTop:i})}};tr.propTypes={width:i.string,height:i.string,color:i.string,iconType:i.string,positionTop:i.string};var rr={"./headline.m.css":{wrapper:"headline-m_wrapper__3nUmh",headline:"headline-m_headline__3_NhV",dark:"headline-m_dark__en3hW",light:"headline-m_light__3lKJB"}},or=function(t){var r=t.story,o=t.headerLevel,n=t.premiumStoryIconConfig,a=void 0===n?{}:n,i=t.isLink,l=et()||{},c=a.iconColor,s=void 0===c?"#F7B500":c,u=a.iconStyle,d=void 0===u?"star":u,m=a.enablePremiumStoryIcon,h=void 0!==m&&m,f=Xe(r,["alternative","home","default","headline"]),p=h&&"subscription"===Xe(r,["access"]),v=f||r.headline,_="h"+o,b=Bt(l.theme),y=p?"wrapper":"",w="24px";return e.createElement("div",{"data-test-id":"headline",className:"arrow-component arr--headline "+N(y,rr)},p&&e.createElement(tr,{width:w,height:w,color:s,iconType:d,positionTop:function(){switch(parseInt(o)){case 1:return"-2px";case 2:return"2px";case 3:return"4px";case 4:return"5px";default:return"6px"}}()}),i?e.createElement(g,{href:Ht(r,"/".concat(r.slug)),externalLink:Ft(r),"aria-label":"headline"},e.createElement(_,{className:N("headline ".concat(b),rr)},v)):e.createElement(_,{className:N("headline ".concat(b),rr)},v))};or.propTypes={story:i.object.isRequired,headerLevel:i.string,premiumStoryIconConfig:i.shape({iconColor:i.string,iconType:i.string,enablePremiumStoryIcon:i.bool}),isLink:i.bool},or.defaultProps={headerLevel:"6",isLink:!0};var nr={"./subheadline.m.css":{subheadline:"subheadline-m_subheadline__3fd7z",dark:"subheadline-m_dark__28u00",light:"subheadline-m_light__2YUOe"}},ar=function(t){var r=t.story,o=t.truncateChars,n=void 0===o?200:o,a=t.lineClamp,i=t.clazzName,l=void 0===i?"":i,c=t.forceShowAtom,s=t.showFullContent,u=et()||{};if(!(c||Xe(u,["showSubheadline"],!0)))return null;var d=Bt(u.theme);return e.createElement("div",{style:{WebkitLineClamp:a},"data-test-id":"subheadline",className:("p-alt arr--sub-headline arrow-component ".concat(l)?"p-alt arr--sub-headline arrow-component ".concat(l)+" ":"")+N("subheadline ".concat(d),nr)},s||"number"==typeof a?r.subheadline:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:60,r=arguments.length>2&&void 0!==arguments[2]&&!arguments[2]?"":" ...";return"string"==typeof e&&e.length>t?e.substring(0,t)+r:e}(r.subheadline,n,!0))};ar.propTypes={story:i.object.isRequired,lineClamp:i.number,truncateChars:i.number,clazzName:i.string,forceShowAtom:i.bool,showFullContent:i.bool},ar.defaultProps={forceShowAtom:!1,showFullContent:!1};var ir={"./timestamp.m.css":{time:"timestamp-m_time__2v46i","time-wrapper":"timestamp-m_time-wrapper__3O2lM","bottom-fix":"timestamp-m_bottom-fix__1Zh8r",dark:"timestamp-m_dark__2lk9E",light:"timestamp-m_light__2QlrI"}},lr=function(t){var r=t.story,o=t.isBottom,n=t.config,a=void 0===n?{}:n,i=et()||{},l=Xe(i,["showTime"],!0),c=r["last-published-at"]||r["first-published-at"],s=o?"bottom-fix":"",u=Bt(i.theme);return e.createElement(e.Fragment,null,l&&e.createElement("div",{"data-test-id":"publish-time",className:"time arr--publish-time "+N("time ".concat(u," ").concat(s),ir)},e.createElement("div",{className:"timestamp-m_time-wrapper__3O2lM"},function(t,r){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return e.createElement(w,{date:t,formatter:function(e,t,n,a){return r(e,t,n,a,o)}})}(c,zt,a))))};lr.propTypes={story:i.object,isBottom:i.bool,config:i.object};var cr={"./author.m.css":{author:"author-m_author__WRuLm","author-image":"author-m_author-image__3q2oc","author-name":"author-m_author-name__3WP-O","bottom-fix":"author-m_bottom-fix__223TT",prefix:"author-m_prefix__YSInK","rtl-image":"author-m_rtl-image__2nglD","ltr-image":"author-m_ltr-image__3bc0L",dark:"author-m_dark__2TTlp",light:"author-m_light__3y8_x"}},sr=function(t){var r=t.story,o=t.hideAuthorImage,n=t.isBottom,a=t.prefix,i=void 0===a?"":a,l=t.config,c=void 0===l?{}:l,s=et()||{},u=Xe(s,["showAuthor"],!0),d=Xe(r,["authors","0"],""),m=d["avatar-url"],h=d["avatar-s3-key"],f=d.name,p=d.slug,v=n?"bottom-fix":"",b=Bt(s.theme),y=Xe(c,["mountAt"],""),w=function(t){return i?e.createElement("div",{className:"arr-author-prefix "+N("prefix ".concat(b),cr)},i):!o&&function(t){return m||h?e.createElement("div",{"data-test-id":"author-image",className:N("author-image ".concat(t,"-image"),cr)},e.createElement("figure",null,h?e.createElement(_,{slug:h,"aspect-ratio":[1,1],defaultWidth:400,imgParams:{auto:["format","compress"]},alt:f}):e.createElement("img",{src:m}))):null}(t)};return e.createElement(e.Fragment,null,u&&e.createElement(g,{href:"".concat(y,"/author/")+p,"aria-label":"author-name",className:"author-name arr-author-name arrow-component "+N("author ".concat(v),cr)},w("ltr"),e.createElement("div",{"data-test-id":"author-name",className:"author-name "+N("author-name ".concat(b),cr)},f||r["author-name"]),!i&&w("rtl")))};var ur=h((function(e){return{config:Xe(e,["qt","config"],{})}}))(sr);sr.propTypes={story:i.object.isRequired,hideAuthorImage:i.bool,isBottom:i.bool,prefix:i.string,config:i.object},sr.defaultProps={hideAuthorImage:!1,isBottom:!1,prefix:""};var dr={"./dot.m.css":{dark:"dot-m_dark__1Njxl",light:"dot-m_light__27IA3"}},mr=function(t){var r=t.width,o=void 0===r?"3px":r,n=t.height,a=void 0===n?"3px":n,i=t.color,l=void 0===i?"light":i;return e.createElement("div",{className:N(l,dr)},e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:o,height:a,viewBox:"0 0 3 3"},e.createElement("circle",{cx:"87",cy:"9",r:"1",fill:"inherit",fillRule:"nonzero",transform:"translate(-86 -8)"})))};mr.propTypes={color:i.string,width:i.string,height:i.string};var hr={"./divider.m.css":{dark:"divider-m_dark__26FRi",light:"divider-m_light__w-7sy"}},fr=function(t){var r=t.width,o=void 0===r?"1":r,n=t.height,a=void 0===n?"10":n,i=t.color,l=void 0===i?"light":i;return e.createElement("div",{className:N(l,hr)},e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:o,height:a},e.createElement("path",{fill:"inherit",d:"M0 0h1v10H0z"})))};fr.propTypes={color:i.string,width:i.string,height:i.string};var pr={"./read-time.m.css":{"read-time-wrapper":"read-time-m_read-time-wrapper__3GyC_","dot-indicator":"read-time-m_dot-indicator__3Sqh2",dark:"read-time-m_dark__3yRaK",light:"read-time-m_light__1GAZu"}},gr=function(t){var r=t.story,o=t.opts,n=void 0===o?{}:o,a=t.isLightTheme,i=void 0!==a&&a,l=et()||{},c=Xe(l,["showReadTime"])||Xe(n,["showReadTime"],!0),s=Xe(r,["read-time"],0),u=i?"light":Bt(l.theme);if(!c||!s)return null;var d=Xe(n,["localizedTimeToRead"])||"min read";return e.createElement(e.Fragment,null,e.createElement("div",{"data-test-id":"read-time",className:"arrow-component arr--read-time "+N("read-time-wrapper ".concat(u),pr)},e.createElement("span",{className:"read-time-indicator read-time-m_dot-indicator__3Sqh2"},e.createElement(mr,{color:u})),e.createElement("span",null,s," ",d)))};gr.propTypes={story:i.shape({"read-time":i.number}),opts:i.shape({showReadTime:i.bool}),isLightTheme:i.bool};var vr={"./author-with-timestamp.m.css":{"author-time-wrapper":"author-with-timestamp-m_author-time-wrapper__G7_eI","author-image":"author-with-timestamp-m_author-image__24xrD",dot:"author-with-timestamp-m_dot__1LHXD","bottom-fix":"author-with-timestamp-m_bottom-fix__1rWGv",dash:"author-with-timestamp-m_dash__2L5XC"}},_r=function(t){var r=t.story,o=t.separator,n=t.isBottom,a=t.hideAuthorImage,i=t.prefix,l=t.config,c=void 0===l?{}:l,s=t.isLightTheme,u=et()||{},d=Xe(c,["showAuthor"],Xe(u,["showAuthor"],!0)),m=Xe(u,["showTime"],!0),h=Xe(u,["showReadTime"],!0),f=n?"bottom-fix":"",p="dot"===o?"dot":"dash",g=s?"light":Bt(u.theme),v=function(){return m?e.createElement(e.Fragment,null,d&&e.createElement("span",{className:"arr-separator "+N("".concat(p),vr)},"divider"===o?e.createElement(fr,{color:g}):e.createElement(mr,{color:g})),e.createElement(lr,{story:r,config:c}),h&&e.createElement(gr,{story:r,opts:c,isLightTheme:s})):null};return e.createElement("div",{className:"arr--author-time "+N("author-time-wrapper ".concat(f),vr)},d?e.createElement(e.Fragment,null,e.createElement(ur,{story:r,isBottom:!0,hideAuthorImage:a,prefix:i}),v()):v())};function br(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 yr(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 br(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)?br(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.")}()}_r.propTypes={story:i.object,separator:i.oneOf(["dot","divider"]),hideAuthorImage:i.bool,isBottom:i.bool,prefix:i.string,config:i.object,isLightTheme:i.bool},_r.defaultProps={separator:"dot",isBottom:!1,hideAuthorImage:!0,prefix:"",isLightTheme:!1};var wr=function(t){var r=t.width,o=void 0===r?40:r,n=t.height,a=void 0===n?30:n,i=t.iconColor,l=void 0===i?"#99B0CB":i;return e.createElement("svg",{width:o,height:a,viewBox:"0 0 102 76",version:"1.1"},e.createElement("g",{id:"demo-home-copy",stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",transform:"translate(-377.000000, -314.000000)"},e.createElement("g",{id:"Group-13",transform:"translate(377.000000, 314.000000)"},e.createElement("path",{d:"M43.2,49.7 L62.2,19.2 L87.2,59.4 L17,59.4 L32.8,39.4 L43.2,49.7 Z M29.9,28.6 C25.8683213,28.6 22.6,25.3316787 22.6,21.3 C22.6,17.2683213 25.8683213,14 29.9,14 C33.9316787,14 37.2,17.2683213 37.2,21.3 C37.2,25.3316787 33.9316787,28.6 29.9,28.6 Z",id:"Combined-Shape",fill:l,fillRule:"nonzero"}),e.createElement("rect",{id:"Rectangle-19",stroke:l,strokeWidth:"3",x:"1.5",y:"1.5",width:"99",height:"73",rx:"3"}))))};wr.propTypes={width:i.object,height:i.object,iconColor:i.object};var Er=function(){return e.createElement("div",{className:"arr--fallback-image fallback-m_image__1GYCJ fallback-m_image-position__3KddP"},e.createElement("figure",{className:"arr--fallback-svg fallback-m_fallback-svg__tK9fL"},e.createElement(wr,null)))},xr=function(t){var r=t.slug;return r?e.createElement(g,{href:r,"aria-label":"image-fallback"},Er()):Er()};xr.propTypes={slug:i.string};var Tr={"./hero-image.m.css":{"hero-image":"hero-image-m_hero-image__3lraV","right-padding":"hero-image-m_right-padding__1LkCe","left-padding":"hero-image-m_left-padding__pYRAj","right-padding-mob":"hero-image-m_right-padding-mob__3-uOU",placeholder:"hero-image-m_placeholder__1omCm","hero-image-mob":"hero-image-m_hero-image-mob__13JJp","with-padding":"hero-image-m_with-padding__324G_",image:"hero-image-m_image__1mz0U"}},kr=function(t){var r=t.story,o=t.FullBleed,n=t.aspectRatio,a=t.defaultWidth,i=t.widths,l=t.isHorizontal,c=t.isHorizontalMobile,s=t.isHorizontalWithImageLast,u=t.defaultFallback,d=t.isStoryPageImage,m=(et()||{}).fallbackImageUrl,h=void 0===m?"":m,p=f((function(e){return Xe(e,["qt","config","showPlaceholder"])}))?"placeholder":"",v=o?"":"with-padding",y="hero-image";l?y="right-padding":s&&(y="left-padding");var w=c?"right-padding-mob":"",E=function(e){var t=yr(e,2),r=t[0],o=t[1];return r>0&&o>0?o/r*100:0},x=yr(n,2),T=x[0],k=x[1],L=void 0===k?T:k,j=Mt("mobile"),C=j?T:L,O=E(j?T:L),S=Xe(r,["hero-image-s3-key"])||Xe(r,["alternative","home","default","hero-image","hero-image-s3-key"]),z=function(){return S?e.createElement("figure",{style:{paddingTop:O+"%"},className:"arr--responsive-hero-image "+N("image ".concat(p),Tr)},e.createElement(b,{story:r,aspectRatio:C,defaultWidth:a,widths:i,imgParams:{auto:["format","compress"],fit:"max"}})):h?e.createElement("figure",{style:{paddingTop:O+"%"},className:"arr--responsive-hero-image "+N("image ".concat(p),Tr)},e.createElement(_,{slug:!d&&h,metadata:{},"aspect-ratio":C,defaultWidth:a,widths:i,imgParams:{auto:["format","compress"],fit:"max"},className:"",alt:"image-fallback"})):e.createElement(e.Fragment,null,u?e.createElement("div",{"data-test-id":"arr--fallback-hero-image",style:{paddingTop:O+"%"},className:"arr--fallback-hero-image "+N("image ".concat(p),Tr)},e.createElement(xr,null)):null)};return r&&(d?e.createElement("div",{"data-test-id":"arr--hero-image",className:"arr--hero-image "+N("".concat(y," ").concat(v," ").concat(w),Tr)},z()):e.createElement(g,{"data-test-id":"arr--hero-image",href:Ht(r,"/".concat(r.slug)),externalLink:Ft(r),"aria-label":"fallback-hero-image",className:"arr--hero-image "+N("".concat(y," ").concat(v," ").concat(w),Tr)},z()))};kr.propTypes={story:i.object.isRequired,FullBleed:i.bool,defaultWidth:i.number,widths:i.array,aspectRatio:i.array,isHorizontal:i.bool,isHorizontalMobile:i.bool,defaultFallback:i.bool,isHorizontalWithImageLast:i.bool},kr.defaultProps={FullBleed:!0,aspectRatio:[[1,1],[16,9]],defaultWidth:480,widths:[250,480,640],isHorizontal:!1,isHorizontalMobile:!1,defaultFallback:!0,isStoryPageImage:!1,isHorizontalWithImageLast:!1};var Nr={"./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"}},Lr=function(t){var r=t.story,o=t.template,n=void 0===o?"":o,a=t.borderColor,i=void 0===a?"":a,l=t.isLightTheme,c=et()||{},s=Xe(c,["showSection"],!0),u=Xe(c,["sectionTagTemplate"]),d=Xe(r,["sections",0],""),m=["borderBottomSml","borderLeft","solid"],h=d?d["section-url"]:"/",f="solid"===n||"solid"===u?i:c.theme,p=l?"light":Bt(f),v=Pt(i),_=m.includes(n)?"section section-".concat(n):"section";return u&&(_=m.includes(u)?"section section-".concat(u):"section"),s?e.createElement(g,{href:h,className:"arrow-component arr--section-name","aria-label":"section-name"},e.createElement("div",{"data-test-id":"sectionTag",style:{backgroundColor:_.includes("section-solid")?v:""},className:"section-tag arrow-component "+N("".concat(p," ").concat(_),Nr)},_.includes("section-borderLeft")&&e.createElement("span",{className:"section-m_border-left__2oUyp",style:{color:v}}),d["display-name"]||d.name,e.createElement("div",{className:"section-m_border-bottom__3cRoD",style:{backgroundColor:"".concat("solid"===n?"":v)}}))):null};Lr.propTypes={story:i.object.isRequired,template:i.oneOf(["","borderBottomSml","borderLeft","solid"]),borderColor:i.string,solidBorderColor:i.string,isLightTheme:i.bool},Lr.defaultProps={template:"",isLightTheme:!1};var jr={"./slider-horizontal-card.m.css":{horizontal:"slider-horizontal-card-m_horizontal__93KuC",content:"slider-horizontal-card-m_content__1EUZE",border:"slider-horizontal-card-m_border__2Mfp4"}},Cr=function(t){var r,o=t.story,n=t.border,a=void 0===n?"":n,i=t.theme,l=void 0===i?"":i,c=t.headerLevel,s=t.borderColor,u=void 0===s?"":s,d=t.config,m=void 0===d?{}:d;if(!o||(null==(r=o)||"object"===tt(r)&&0===Object.entries(r).length&&r.constructor===Object||"string"==typeof r&&0===r.trim().length))return e.createElement("div",null);var h="full"===a?"border":"",f=Bt(l),p=m.localizationConfig,g=void 0===p?{}:p;return e.createElement("div",{style:{backgroundColor:l,color:f},className:N("horizontal ".concat(h),jr)},e.createElement(kr,{story:o,aspectRatio:[[4,3],[16,9]]}),e.createElement("div",{className:"arr--content slider-horizontal-card-m_content__1EUZE"},e.createElement(Lr,{story:o,borderColor:u}),e.createElement(or,{story:o,headerLevel:c,premiumStoryIconConfig:m}),e.createElement(ar,{story:o}),e.createElement(_r,{config:g,story:o,isBottom:!0,prefix:"By"})))};Cr.propTypes={story:i.object.isRequired,border:i.string,theme:i.string,headerLevel:i.string,borderColor:i.string,config:i.object};var Or=function(t){var r=t.color,o=void 0===r?"#333":r;return e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 10 16"},e.createElement("g",{fill:"none",fillRule:"nonzero"},e.createElement("path",{d:"M17 20H-7V-4h24z",opacity:".384"}),e.createElement("path",{stroke:o,d:"M9 16L1 8l8-8"})))};Or.propTypes={color:i.string};var Sr=function(t){var r=t.color,o=void 0===r?"#333":r;return e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 10 16"},e.createElement("g",{fill:"none",fillRule:"nonzero"},e.createElement("path",{d:"M-7-4h24v24H-7z",opacity:".384"}),e.createElement("path",{stroke:o,d:"M1 0l8 8-8 8"})))};Sr.propTypes={color:i.string};var zr={"./slider-arrow.m.css":{arrow:"slider-arrow-m_arrow__1eBUU","left-arrow-dark":"slider-arrow-m_left-arrow-dark__3mTJS","right-arrow-dark":"slider-arrow-m_right-arrow-dark__3hWZe","left-arrow-light":"slider-arrow-m_left-arrow-light__2ipUK","right-arrow-light":"slider-arrow-m_right-arrow-light__3omMU","left-arrow-ltr":"slider-arrow-m_left-arrow-ltr__1ngNF","right-arrow-ltr":"slider-arrow-m_right-arrow-ltr__2svWX","left-arrow-rtl":"slider-arrow-m_left-arrow-rtl__2ynyn","right-arrow-rtl":"slider-arrow-m_right-arrow-rtl__1GjPz"}},Ir=function(t){var r=t.selectedIndex,o=t.previousClick,n=t.nextClick,a=t.noOfItems,i=t.perView,l=t.languageDirection;if(a<1)return null;var c=et()||{},s=Bt(c.theme),u="rtl"===l?"left-arrow-rtl":"left-arrow-ltr",d="rtl"===l?"right-arrow-rtl":"right-arrow-ltr";return e.createElement(e.Fragment,null,0!==r?e.createElement("button",{onClick:o,className:("left-arrow ".concat(u)?"left-arrow ".concat(u)+" ":"")+N("arrow left-arrow-".concat(s," ").concat(u),zr)},e.createElement(Or,{color:"dark"===s?"#fff":"#333"})):null,r<a-1&&!(r>=a-i)?e.createElement("button",{onClick:n,className:("right-arrow ".concat(d)?"right-arrow ".concat(d)+" ":"")+N("arrow right-arrow-".concat(s," ").concat(d),zr)},e.createElement(Sr,{color:"dark"===s?"#fff":"#333"})):null)};Ir.propTypes={noOfItems:c,perView:c,slideIndicator:s,previousClick:u,nextClick:u,selectedIndex:c,languageDirection:s};var Ar={"./slider-indicator.m.css":{indicators:"slider-indicator-m_indicators__3MNXc",indicator:"slider-indicator-m_indicator__gTv3x","indicator-button":"slider-indicator-m_indicator-button__1e82r","indicator-dots":"slider-indicator-m_indicator-dots__2TR3H","indicator-dots-dark":"slider-indicator-m_indicator-dots-dark__sGrev","indicator-dots-light":"slider-indicator-m_indicator-dots-light__2nPn-","indicator-dashes":"slider-indicator-m_indicator-dashes__DyNCE","indicator-dashes-dark":"slider-indicator-m_indicator-dashes-dark__VrqJI","indicator-dashes-light":"slider-indicator-m_indicator-dashes-light__34ESx"}},Pr=function(t){var r=t.indicatorItems,o=t.indicatorClick,n=t.selectedIndex,a=t.indicatorType;if(r.length<1)return null;var i=et()||{},l=Bt(i.theme);return e.createElement("ul",{className:"slider-indicators slider-indicator-m_indicators__3MNXc"},r.map((function(t,r){return e.createElement("li",{key:"slider-".concat(r),className:"indicator slider-indicator-m_indicator__gTv3x",onClick:function(e){return o(e,r)}},e.createElement("button",{"aria-pressed":n===r?"true":"false",className:("indicator-button indicator-".concat(a)?"indicator-button indicator-".concat(a)+" ":"")+N("indicator-button indicator-".concat(a," indicator-").concat(a,"-").concat(l),Ar)}))})))};Pr.propTypes={indicatorItems:d,perView:c,indicatorType:s,indicatorClick:u,selectedIndex:c};var Rr=function(e,t,r,o){var n,a,i,l,c=Math.floor(r.current.scrollWidth*(e/o)),s="rtl"===t?-1*c:c;n=r.current,a=s,i=!0,n.scrollTo((Gt(l={},i?"left":"top",a),Gt(l,"behavior","smooth"),l))},Mr=function(t){var r=t.children,i=t.isArrow,l=t.interval,c=t.isInfinite,s=t.pauseOnHover,u=t.perView,d=t.slideIndicator,m=yr(o(0),2),h=m[0],p=m[1],g=yr(o(!1),2),v=g[0],_=g[1],b=f((function(e){return Xe(e,["qt","config","language","direction"],"ltr")})),y=r?r.length:0,w=n(null),E=r.length-(u-1),x=r.slice(0,E);a((function(){if(c&&!v){var e=setInterval((function(){T()}),l);return function(){clearInterval(e)}}}),[c,v]);var T=function(){p((function(e){var t=e===y-u?0:e+1;return Rr(t,b,w,y),t}))},k=function(){s&&_(!v)};return e.createElement("div",{className:"scroll-snap-container"},e.createElement("div",{className:"scroll-snap-wrapper scroll-snap-m_wrapper__1Rz9v",onMouseEnter:k,onMouseLeave:k},e.createElement("div",{ref:w,className:"scroll-snap-carousel scroll-snap-m_carousel__2m3cg"},r),i&&e.createElement(Ir,{noOfItems:y,perView:u,previousClick:function(e){e.preventDefault(),e.stopPropagation();var t=h-1;p(t),Rr(t,b,w,y)},nextClick:function(e){if(e.preventDefault(),e.stopPropagation(),h<y){var t=h+1;p(t),Rr(t,b,w,y)}},selectedIndex:h,languageDirection:b})),r.length>u&&"none"!==d&&e.createElement(Pr,{indicatorItems:x,indicatorClick:function(e,t){e.preventDefault(),e.stopPropagation(),p(t),Rr(t,b,w,y)},selectedIndex:h,indicatorType:d}))};Mr.defaultProps={isArrow:!0,isInfinite:!1,interval:4e3,pauseOnHover:!0,perView:1,slideIndicator:"dots"},Mr.propTypes={children:d.isRequired,isArrow:m,isInfinite:m,interval:c,pauseOnHover:m,perView:c,slideIndicator:s};var Br,Dr={"./half-screen-slider.m.css":{"half-screen-slider":"half-screen-slider-m_half-screen-slider__1rprD",wrapper:"half-screen-slider-m_wrapper__32kXu",border:"half-screen-slider-m_border__2c1DP",dark:"half-screen-slider-m_dark__3L9l_",light:"half-screen-slider-m_light__2TZ5m"}},Fr=function(t){var r=t.collection,o=t.config,n=void 0===o?{}:o,a=n.collectionNameBorderColor,i=void 0===a?"":a,l=n.borderColor,c=void 0===l?"":l,s=n.theme,u=void 0===s?"":s,d=n.border,m=void 0===d?"":d,h=n.numberOfStoriesToShow,g=void 0===h?1:h,v=n.collectionNameTemplate,_=n.footerButton,b=void 0===_?"":_,w=n.footerSlotConfig,E=void 0===w?{}:w,x=n.navigationArrows,T=void 0===x||x,k=n.slideIndicator,L=void 0===k?"none":k,j=n.isInfinite,C=void 0!==j&&j,O=E.footerSlot,S=y(r),z=Bt(u),I="full"===m?"border":"";if(S.length<1)return null;var A=O?O():null,P=function(e){return e?parseInt(e):1}(g),R=p(),M=f((function(e){return Xe(e,["qt","config"],{})})),B=Ut(r,M);return e.createElement("div",{className:"full-width-with-padding arrow-component","data-test-id":"half-screen-slider",style:{backgroundColor:u,color:z}},e.createElement("div",{className:"half-screen-slider-m_half-screen-slider__1rprD"},e.createElement(Vt,{collection:r,collectionNameTemplate:v,collectionNameBorderColor:i}),e.createElement("div",{className:N("wrapper ".concat(I," ").concat(z),Dr)},e.createElement(Mr,{isArrow:T,slideIndicator:L,isInfinite:C},S.slice(0,P).map((function(t,r){return e.createElement(Cr,{headerLevel:"2",key:r,story:t,isHorizontal:!0,borderColor:c,config:n})}))))),e.createElement(Jt,{template:b,collection:r,config:n,navigate:function(){return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";global.app.navigateToPage(e,t)}(R,B)},qtConfig:M}),A)},Hr=(Br=Fr,function(t){return e.createElement(Qe.Provider,{value:t.config},e.createElement(Br,t))});Fr.propTypes={footerButton:i.string,collection:i.object.isRequired,config:i.object.isRequired,border:i.string,autoplaySpeed:i.number,numberOfStoriesToShow:i.number,theme:i.string,collectionTemplate:i.string,collectionNameBorderColor:i.string,borderColor:i.string};export{Hr 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";var i="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function a(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 s=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})),c=a(l((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||{},l=a.handleMissingStyleName,s=void 0===l?n.default.handleMissingStyleName:l,c=a.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 i=t.split("."),a=i[0],l=i[1],s=r||n.default.handleMissingStyleName;return l?e[a]?e[a][l]?e[a][l]:o("CSS module does not exist: "+l,s):o("CSS module import does not exist: "+a,s):o("Invalid style name: "+t,s)}(t,e,s);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(!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 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,s)}var r=e[i[0]];return r[t]?r[t]:o("Could not resolve the styleName '"+t+"'.",s)})).filter((function(t){return t})).join(" "):""}}))),u=r(),h=Array.isArray,f="object"==typeof i&&i&&i.Object===Object&&i,p="object"==typeof self&&self&&self.Object===Object&&self,v=f||p||Function("return this")(),d=v.Symbol,g=Object.prototype,y=g.hasOwnProperty,m=g.toString,w=d?d.toStringTag:void 0;var _=function(t){var e=y.call(t,w),r=t[w];try{t[w]=void 0;var n=!0}catch(t){}var o=m.call(t);return n&&(e?t[w]=r:delete t[w]),o},b=Object.prototype.toString;var E=function(t){return b.call(t)},x=d?d.toStringTag:void 0;var j=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":x&&x in Object(t)?_(t):E(t)};var L=function(t){return null!=t&&"object"==typeof t};var O=function(t){return"symbol"==typeof t||L(t)&&"[object Symbol]"==j(t)},T=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,S=/^\w*$/;var k=function(t,e){if(h(t))return!1;var r=typeof t;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=t&&!O(t))||(S.test(t)||!T.test(t)||null!=e&&t in Object(e))};var N=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)};var z,M=function(t){if(!N(t))return!1;var e=j(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e},I=v["__core-js_shared__"],P=(z=/[^.]+$/.exec(I&&I.keys&&I.keys.IE_PROTO||""))?"Symbol(src)_1."+z:"";var C=function(t){return!!P&&P in t},R=Function.prototype.toString;var F=function(t){if(null!=t){try{return R.call(t)}catch(t){}try{return t+""}catch(t){}}return""},A=/^\[object .+?Constructor\]$/,D=Function.prototype,$=Object.prototype,G=D.toString,H=$.hasOwnProperty,V=RegExp("^"+G.call(H).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var B=function(t){return!(!N(t)||C(t))&&(M(t)?V:A).test(F(t))};var W=function(t,e){return null==t?void 0:t[e]};var Y=function(t,e){var r=W(t,e);return B(r)?r:void 0},q=Y(Object,"create");var U=function(){this.__data__=q?q(null):{},this.size=0};var J=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},K=Object.prototype.hasOwnProperty;var Q=function(t){var e=this.__data__;if(q){var r=e[t];return"__lodash_hash_undefined__"===r?void 0:r}return K.call(e,t)?e[t]:void 0},X=Object.prototype.hasOwnProperty;var Z=function(t){var e=this.__data__;return q?void 0!==e[t]:X.call(e,t)};var tt=function(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=q&&void 0===e?"__lodash_hash_undefined__":e,this};function et(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])}}et.prototype.clear=U,et.prototype.delete=J,et.prototype.get=Q,et.prototype.has=Z,et.prototype.set=tt;var rt=et;var nt=function(){this.__data__=[],this.size=0};var ot=function(t,e){return t===e||t!=t&&e!=e};var it=function(t,e){for(var r=t.length;r--;)if(ot(t[r][0],e))return r;return-1},at=Array.prototype.splice;var lt=function(t){var e=this.__data__,r=it(e,t);return!(r<0)&&(r==e.length-1?e.pop():at.call(e,r,1),--this.size,!0)};var st=function(t){var e=this.__data__,r=it(e,t);return r<0?void 0:e[r][1]};var ct=function(t){return it(this.__data__,t)>-1};var ut=function(t,e){var r=this.__data__,n=it(r,t);return n<0?(++this.size,r.push([t,e])):r[n][1]=e,this};function ht(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])}}ht.prototype.clear=nt,ht.prototype.delete=lt,ht.prototype.get=st,ht.prototype.has=ct,ht.prototype.set=ut;var ft=ht,pt=Y(v,"Map");var vt=function(){this.size=0,this.__data__={hash:new rt,map:new(pt||ft),string:new rt}};var dt=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t};var gt=function(t,e){var r=t.__data__;return dt(e)?r["string"==typeof e?"string":"hash"]:r.map};var yt=function(t){var e=gt(this,t).delete(t);return this.size-=e?1:0,e};var mt=function(t){return gt(this,t).get(t)};var wt=function(t){return gt(this,t).has(t)};var _t=function(t,e){var r=gt(this,t),n=r.size;return r.set(t,e),this.size+=r.size==n?0:1,this};function bt(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])}}bt.prototype.clear=vt,bt.prototype.delete=yt,bt.prototype.get=mt,bt.prototype.has=wt,bt.prototype.set=_t;var Et=bt;function xt(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(xt.Cache||Et),r}xt.Cache=Et;var jt=xt;var Lt=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ot=/\\(\\)?/g,Tt=function(t){var e=jt(t,(function(t){return 500===r.size&&r.clear(),t})),r=e.cache;return e}((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(Lt,(function(t,r,n,o){e.push(n?o.replace(Ot,"$1"):r||t)})),e}));var St=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},kt=d?d.prototype:void 0,Nt=kt?kt.toString:void 0;var zt=function t(e){if("string"==typeof e)return e;if(h(e))return St(e,t)+"";if(O(e))return Nt?Nt.call(e):"";var r=e+"";return"0"==r&&1/e==-Infinity?"-0":r};var Mt=function(t){return null==t?"":zt(t)};var It=function(t,e){return h(t)?t:k(t,e)?[t]:Tt(Mt(t))};var Pt=function(t){if("string"==typeof t||O(t))return t;var e=t+"";return"0"==e&&1/t==-Infinity?"-0":e};var Ct=function(t,e){for(var r=0,n=(e=It(e,t)).length;null!=t&&r<n;)t=t[Pt(e[r++])];return r&&r==n?t:void 0};var Rt=function(t,e,r){var n=null==t?void 0:Ct(t,e);return void 0===n?r:n};l((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",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 g?e:g,i=Object.create(o.prototype),a=new S(n||[]);return i._invoke=function(t,e,r){var n=h;return function(o,i){if(n===p)throw new Error("Generator is already running");if(n===v){if("throw"===o)throw i;return N()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var l=L(a,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(n===h)throw n=v,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?v:f,s.arg===d)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(n=v,r.method="throw",r.arg=s.arg)}}}(t,r,a),i}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 h="suspendedStart",f="suspendedYield",p="executing",v="completed",d={};function g(){}function y(){}function m(){}var w={};s(w,i,(function(){return this}));var _=Object.getPrototypeOf,b=_&&_(_(k([])));b&&b!==r&&n.call(b,i)&&(w=b);var E=m.prototype=g.prototype=Object.create(w);function x(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function j(t,e){function r(o,i,a,l){var s=u(t[o],t,i);if("throw"!==s.type){var c=s.arg,h=c.value;return h&&"object"==typeof h&&n.call(h,"__await")?e.resolve(h.__await).then((function(t){r("next",t,a,l)}),(function(t){r("throw",t,a,l)})):e.resolve(h).then((function(t){c.value=t,a(c)}),(function(t){return r("throw",t,a,l)}))}l(s.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 L(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,L(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=u(n,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,d;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,d):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,d)}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 T(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function S(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(O,this),this.reset(!0)}function k(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:N}}function N(){return{value:e,done:!0}}return y.prototype=m,s(E,"constructor",m),s(m,"constructor",y),y.displayName=s(m,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,m):(t.__proto__=m,s(t,l,"GeneratorFunction")),t.prototype=Object.create(E),t},t.awrap=function(t){return{__await:t}},x(j.prototype),s(j.prototype,a,(function(){return this})),t.AsyncIterator=j,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new j(c(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},x(E),s(E,l,"Generator"),s(E,i,(function(){return this})),s(E,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=[];for(var r in t)e.push(r);return e.reverse(),function r(){for(;e.length;){var n=e.pop();if(n in t)return r.value=n,r.done=!1,r}return r.done=!0,r}},t.values=k,S.prototype={constructor:S,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(T),!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 i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],l=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var s=n.call(a,"catchLoc"),c=n.call(a,"finallyLoc");if(s&&c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!c)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,d):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),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),T(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;T(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:k(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 Ft=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},At=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};function Dt(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t["story-template"],r=void 0===e?"":e,n=t.metadata,o=void 0===n?{}:n;return"news-elsewhere"===r?Rt(o,["reference-url"],""):""}n.shape({"sketches-host":n.string,"cdn-name":n.string,"cdn-image":n.string}),n.shape({headline:n.string,"last-published-at":n.number,subheadline:n.string});var $t=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return"news-elsewhere"===Rt(t,["story-template"])?Rt(t,["metadata","reference-url"],""):t.url||e},Gt=function(e){var r=e.height,n=e.width,o=e.color,i=void 0===o?"#D8D8D8":o,a=e.positionTop;return t.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:n,height:r,viewBox:"0 0 40 40",style:{position:"relative",top:a}},t.createElement("g",{fill:"none",fillRule:"evenodd",stroke:"none",strokeWidth:"1"},t.createElement("g",null,t.createElement("g",{transform:"translate(8 8)"},t.createElement("path",{d:"M0 0H24V24H0z"}),t.createElement("g",{fill:i,fillRule:"nonzero",transform:"translate(0 2)"},t.createElement("path",{d:"M21.043 19.553c0-.743-.601-1.344-1.344-1.344h-15.4a1.343 1.343 0 100 2.688h15.4c.743 0 1.344-.603 1.344-1.344zM1.598 8.673c.022 0 .042 0 .064-.003l2.131 7.713h16.411l2.132-7.713c.022 0 .041.003.063.003a1.599 1.599 0 10-1.52-1.108L17.025 9.82 12.882 2.95a1.599 1.599 0 10-1.765 0L6.976 9.82 3.121 7.565a1.599 1.599 0 10-1.523 1.107z"}))))))};Gt.propTypes={height:n.string,width:n.string,color:n.string,positionTop:n.string};var Ht=function(e){var r=e.height,n=e.width,o=e.color,i=void 0===o?"#D5D5D5":o,a=e.positionTop;return t.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:n,height:r,viewBox:"0 0 40 40",style:{position:"relative",top:a}},t.createElement("g",{fill:"none",fillRule:"evenodd",stroke:"none",strokeWidth:"1"},t.createElement("g",null,t.createElement("g",{transform:"translate(8 8)"},t.createElement("path",{d:"M0 0H24V24H0z"}),t.createElement("path",{fill:i,fillRule:"nonzero",d:"M12.71 4.364A6.54 6.54 0 000 6.545a6.54 6.54 0 0012.71 2.182h4.745v4.364h4.363V8.727H24V4.364H12.71zM6.544 8.727a2.181 2.181 0 110-4.362 2.181 2.181 0 010 4.362z",transform:"translate(0 5)"})))))};Ht.propTypes={height:n.string,width:n.string,color:n.string,positionTop:n.string};var Vt=function(e){var r=e.height,n=e.width,o=e.color,i=void 0===o?"#D5D5D5":o,a=e.positionTop;return t.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:n,height:r,viewBox:"0 0 40 40",style:{position:"relative",top:a}},t.createElement("g",{fill:"none",fillRule:"evenodd",stroke:"none",strokeWidth:"1"},t.createElement("g",null,t.createElement("g",{transform:"translate(8 8)"},t.createElement("path",{d:"M0 0H24V24H0z"}),t.createElement("g",{fill:i,fillRule:"nonzero",transform:"translate(3)"},t.createElement("path",{d:"M15.692 9h-.747V6c0-3.31-2.681-6-5.978-6C5.67 0 2.989 2.69 2.989 6v3h-.747A2.249 2.249 0 000 11.25v10.5A2.249 2.249 0 002.242 24h13.45a2.249 2.249 0 002.242-2.25v-10.5A2.249 2.249 0 0015.692 9zM4.982 6c0-2.206 1.787-4 3.985-4s3.985 1.794 3.985 4v3h-7.97V6z"}))))))};Vt.propTypes={height:n.string,width:n.string,color:n.string,positionTop:n.string};var Bt=function(e){var r=e.width,n=e.height,o=e.color,i=void 0===o?"#D5D5D5":o,a=e.positionTop,l=void 0===a?"":a;return t.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:r,height:n,viewBox:"0 0 40 40",style:{position:"relative",top:l}},t.createElement("g",{fill:"none",fillRule:"evenodd",stroke:"none",strokeWidth:"1"},t.createElement("g",null,t.createElement("path",{fill:i,d:"M20 26L12.946577 29.7082039 14.2936609 21.854102 8.5873218 16.2917961 16.4732885 15.145898 20 8 23.5267115 15.145898 31.4126782 16.2917961 25.7063391 21.854102 27.053423 29.7082039z"}))))};Bt.propTypes={height:n.string,width:n.string,color:n.string,positionTop:n.string};var Wt=function(e){var r=e.width,n=e.height,o=e.color,i=e.iconType,a=e.positionTop;switch(i){case"crown":return t.createElement(Gt,{width:r,height:n,color:o,positionTop:a});case"lock":return t.createElement(Vt,{width:r,height:n,color:o,positionTop:a});case"key":return t.createElement(Ht,{width:r,height:n,color:o,positionTop:a});default:return t.createElement(Bt,{width:r,height:n,color:o,positionTop:a})}};Wt.propTypes={width:n.string,height:n.string,color:n.string,iconType:n.string,positionTop:n.string};var Yt={"./headline.m.css":{wrapper:"headline-m_wrapper__3nUmh",headline:"headline-m_headline__3_NhV",dark:"headline-m_dark__en3hW",light:"headline-m_light__3lKJB"}},qt=function(r){var n=r.story,i=r.headerLevel,a=r.premiumStoryIconConfig,l=void 0===a?{}:a,s=r.isLink,h=e(u)||{},f=l.iconColor,p=void 0===f?"#F7B500":f,v=l.iconStyle,d=void 0===v?"star":v,g=l.enablePremiumStoryIcon,y=void 0!==g&&g,m=Rt(n,["alternative","home","default","headline"]),w=y&&"subscription"===Rt(n,["access"]),_=m||n.headline,b="h"+i,E=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"rgb(255,255,255)",e=/^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/.test(t)?t:At(t);return Ft(e)<155?"light":"dark"}(h.theme),x=w?"wrapper":"",j="24px";return t.createElement("div",{"data-test-id":"headline",className:"arrow-component arr--headline "+c(x,Yt)},w&&t.createElement(Wt,{width:j,height:j,color:p,iconType:d,positionTop:function(){switch(parseInt(i)){case 1:return"-2px";case 2:return"2px";case 3:return"4px";case 4:return"5px";default:return"6px"}}()}),s?t.createElement(o,{href:$t(n,"/".concat(n.slug)),externalLink:Dt(n),"aria-label":"headline"},t.createElement(b,{className:c("headline ".concat(E),Yt)},_)):t.createElement(b,{className:c("headline ".concat(E),Yt)},_))};qt.propTypes={story:n.object.isRequired,headerLevel:n.string,premiumStoryIconConfig:n.shape({iconColor:n.string,iconType:n.string,enablePremiumStoryIcon:n.bool}),isLink:n.bool},qt.defaultProps={headerLevel:"6",isLink:!0};export{qt as Headline};
@@ -0,0 +1 @@
1
+ import{Link as t,ResponsiveImage as e,ResponsiveHeroImage as r}from"@quintype/components";import n from"prop-types";import o,{useContext as a,createContext as i}from"react";import{useSelector as l}from"react-redux";import"react-timeago";function u(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function c(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,a=[],i=!0,l=!1;try{for(r=r.call(t);!(i=(n=r.next()).done)&&(a.push(n.value),!e||a.length!==e);i=!0);}catch(t){l=!0,o=t}finally{try{i||null==r.return||r.return()}finally{if(l)throw o}}return a}}(t,e)||function(t,e){if(t){if("string"==typeof t)return u(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?u(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var s="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,u=void 0===l?n.default.handleMissingStyleName:l,c=i.autoResolveMultipleImports,s=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],u=r||n.default.handleMissingStyleName;return l?e[i]?e[i][l]?e[i][l]:o("CSS module does not exist: "+l,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(!s)throw new Error("Cannot use anonymous style name '"+t+"' with more than one stylesheet import without setting 'autoResolveMultipleImports' to true.");return function(t,e,r){var 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(" "):""}}))),m=Array.isArray,v="object"==typeof s&&s&&s.Object===Object&&s,g="object"==typeof self&&self&&self.Object===Object&&self,y=v||g||Function("return this")(),_=y.Symbol,b=Object.prototype,w=b.hasOwnProperty,j=b.toString,E=_?_.toStringTag:void 0;var x=function(t){var e=w.call(t,E),r=t[E];try{t[E]=void 0;var n=!0}catch(t){}var o=j.call(t);return n&&(e?t[E]=r:delete t[E]),o},O=Object.prototype.toString;var L=function(t){return O.call(t)},k=_?_.toStringTag:void 0;var S=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":k&&k in Object(t)?x(t):L(t)};var N=function(t){return null!=t&&"object"==typeof t};var z=function(t){return"symbol"==typeof t||N(t)&&"[object Symbol]"==S(t)},C=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,P=/^\w*$/;var T=function(t,e){if(m(t))return!1;var r=typeof t;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=t&&!z(t))||(P.test(t)||!C.test(t)||null!=e&&t in Object(e))};var F=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)};var I,M=function(t){if(!F(t))return!1;var e=S(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e},R=y["__core-js_shared__"],A=(I=/[^.]+$/.exec(R&&R.keys&&R.keys.IE_PROTO||""))?"Symbol(src)_1."+I:"";var G=function(t){return!!A&&A in t},W=Function.prototype.toString;var $=function(t){if(null!=t){try{return W.call(t)}catch(t){}try{return t+""}catch(t){}}return""},H=/^\[object .+?Constructor\]$/,B=Function.prototype,U=Object.prototype,Y=B.toString,q=U.hasOwnProperty,J=RegExp("^"+Y.call(q).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var K=function(t){return!(!F(t)||G(t))&&(M(t)?J:H).test($(t))};var Z=function(t,e){return null==t?void 0:t[e]};var V=function(t,e){var r=Z(t,e);return K(r)?r:void 0},D=V(Object,"create");var Q=function(){this.__data__=D?D(null):{},this.size=0};var X=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},tt=Object.prototype.hasOwnProperty;var et=function(t){var e=this.__data__;if(D){var r=e[t];return"__lodash_hash_undefined__"===r?void 0:r}return tt.call(e,t)?e[t]:void 0},rt=Object.prototype.hasOwnProperty;var nt=function(t){var e=this.__data__;return D?void 0!==e[t]:rt.call(e,t)};var ot=function(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=D&&void 0===e?"__lodash_hash_undefined__":e,this};function 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=Q,at.prototype.delete=X,at.prototype.get=et,at.prototype.has=nt,at.prototype.set=ot;var it=at;var lt=function(){this.__data__=[],this.size=0};var ut=function(t,e){return t===e||t!=t&&e!=e};var ct=function(t,e){for(var r=t.length;r--;)if(ut(t[r][0],e))return r;return-1},st=Array.prototype.splice;var ft=function(t){var e=this.__data__,r=ct(e,t);return!(r<0)&&(r==e.length-1?e.pop():st.call(e,r,1),--this.size,!0)};var ht=function(t){var e=this.__data__,r=ct(e,t);return r<0?void 0:e[r][1]};var pt=function(t){return ct(this.__data__,t)>-1};var dt=function(t,e){var r=this.__data__,n=ct(r,t);return n<0?(++this.size,r.push([t,e])):r[n][1]=e,this};function 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=lt,mt.prototype.delete=ft,mt.prototype.get=ht,mt.prototype.has=pt,mt.prototype.set=dt;var vt=mt,gt=V(y,"Map");var yt=function(){this.size=0,this.__data__={hash:new it,map:new(gt||vt),string:new it}};var _t=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t};var bt=function(t,e){var r=t.__data__;return _t(e)?r["string"==typeof e?"string":"hash"]:r.map};var wt=function(t){var e=bt(this,t).delete(t);return this.size-=e?1:0,e};var jt=function(t){return bt(this,t).get(t)};var Et=function(t){return bt(this,t).has(t)};var xt=function(t,e){var r=bt(this,t),n=r.size;return r.set(t,e),this.size+=r.size==n?0:1,this};function Ot(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}Ot.prototype.clear=yt,Ot.prototype.delete=wt,Ot.prototype.get=jt,Ot.prototype.has=Et,Ot.prototype.set=xt;var Lt=Ot;function kt(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(kt.Cache||Lt),r}kt.Cache=Lt;var St=kt;var Nt=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,zt=/\\(\\)?/g,Ct=function(t){var e=St(t,(function(t){return 500===r.size&&r.clear(),t})),r=e.cache;return e}((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(Nt,(function(t,r,n,o){e.push(n?o.replace(zt,"$1"):r||t)})),e}));var Pt=function(t,e){for(var r=-1,n=null==t?0:t.length,o=Array(n);++r<n;)o[r]=e(t[r],r,t);return o},Tt=_?_.prototype:void 0,Ft=Tt?Tt.toString:void 0;var It=function t(e){if("string"==typeof e)return e;if(m(e))return Pt(e,t)+"";if(z(e))return Ft?Ft.call(e):"";var r=e+"";return"0"==r&&1/e==-Infinity?"-0":r};var Mt=function(t){return null==t?"":It(t)};var Rt=function(t,e){return m(t)?t:T(t,e)?[t]:Ct(Mt(t))};var At=function(t){if("string"==typeof t||z(t))return t;var e=t+"";return"0"==e&&1/t==-Infinity?"-0":e};var Gt=function(t,e){for(var r=0,n=(e=Rt(e,t)).length;null!=t&&r<n;)t=t[At(e[r++])];return r&&r==n?t:void 0};var Wt=function(t,e,r){var n=null==t?void 0:Gt(t,e);return void 0===n?r:n};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 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 c(t,e,r,n){var o=e&&e.prototype instanceof v?e:v,a=Object.create(o.prototype),i=new S(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 z()}for(r.method=o,r.arg=a;;){var i=r.delegate;if(i){var l=O(i,r);if(l){if(l===m)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 u=s(t,e,r);if("normal"===u.type){if(n=r.done?d:h,u.arg===m)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(n=d,r.method="throw",r.arg=u.arg)}}}(t,r,i),a}function s(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",m={};function v(){}function g(){}function y(){}var _={};u(_,a,(function(){return this}));var b=Object.getPrototypeOf,w=b&&b(b(N([])));w&&w!==r&&n.call(w,a)&&(_=w);var j=y.prototype=v.prototype=Object.create(_);function E(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,l){var u=s(t[o],t,a);if("throw"!==u.type){var c=u.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(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 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 m;r.method="throw",r.arg=new TypeError("The iterator does not provide a 'throw' method")}return m}var o=s(n,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,m;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,m):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,m)}function L(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function k(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function S(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(L,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:z}}function z(){return{value:e,done:!0}}return g.prototype=y,u(j,"constructor",y),u(y,"constructor",g),g.displayName=u(y,l,"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,u(t,l,"GeneratorFunction")),t.prototype=Object.create(j),t},t.awrap=function(t){return{__await:t}},E(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(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),u(j,l,"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=N,S.prototype={constructor:S,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(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 u=n.call(i,"catchLoc"),c=n.call(i,"finallyLoc");if(u&&c){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(!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,m):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),m},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),m}},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),m}},t}(t.exports);try{regeneratorRuntime=e}catch(t){"object"==typeof globalThis?globalThis.regeneratorRuntime=e:Function("r","regeneratorRuntime = r")(e)}}));var $t={mobile:767,tablet:1024};function Ht(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t["story-template"],r=void 0===e?"":e,n=t.metadata,o=void 0===n?{}:n;return"news-elsewhere"===r?Wt(o,["reference-url"],""):""}n.shape({"sketches-host":n.string,"cdn-name":n.string,"cdn-image":n.string}),n.shape({headline:n.string,"last-published-at":n.number,subheadline:n.string});var Bt=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return"news-elsewhere"===Wt(t,["story-template"])?Wt(t,["metadata","reference-url"],""):t.url||e},Ut=i(),Yt=function(t){var e=t.width,r=void 0===e?40:e,n=t.height,a=void 0===n?30:n,i=t.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"}))))};Yt.propTypes={width:n.object,height:n.object,iconColor:n.object};var qt=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(Yt,null)))},Jt=function(e){var r=e.slug;return r?o.createElement(t,{href:r,"aria-label":"image-fallback"},qt()):qt()};Jt.propTypes={slug:n.string};var Kt={"./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"}},Zt=function(n){var i=n.story,u=n.FullBleed,s=n.aspectRatio,f=n.defaultWidth,h=n.widths,p=n.isHorizontal,m=n.isHorizontalMobile,v=n.isHorizontalWithImageLast,g=n.defaultFallback,y=n.isStoryPageImage,_=(a(Ut)||{}).fallbackImageUrl,b=void 0===_?"":_,w=l((function(t){return Wt(t,["qt","config","showPlaceholder"])}))?"placeholder":"",j=u?"":"with-padding",E="hero-image";p?E="right-padding":v&&(E="left-padding");var x,O=m?"right-padding-mob":"",L=function(t){var e=c(t,2),r=e[0],n=e[1];return r>0&&n>0?n/r*100:0},k=c(s,2),S=k[0],N=k[1],z=void 0===N?S:N,C=!!(x=Wt($t,"mobile"))&&Wt(global,"document.documentElement.clientWidth")<=x,P=C?S:z,T=L(C?S:z),F=Wt(i,["hero-image-s3-key"])||Wt(i,["alternative","home","default","hero-image","hero-image-s3-key"]),I=function(){return F?o.createElement("figure",{style:{paddingTop:T+"%"},className:"arr--responsive-hero-image "+d("image ".concat(w),Kt)},o.createElement(r,{story:i,aspectRatio:P,defaultWidth:f,widths:h,imgParams:{auto:["format","compress"],fit:"max"}})):b?o.createElement("figure",{style:{paddingTop:T+"%"},className:"arr--responsive-hero-image "+d("image ".concat(w),Kt)},o.createElement(e,{slug:!y&&b,metadata:{},"aspect-ratio":P,defaultWidth:f,widths:h,imgParams:{auto:["format","compress"],fit:"max"},className:"",alt:"image-fallback"})):o.createElement(o.Fragment,null,g?o.createElement("div",{"data-test-id":"arr--fallback-hero-image",style:{paddingTop:T+"%"},className:"arr--fallback-hero-image "+d("image ".concat(w),Kt)},o.createElement(Jt,null)):null)};return i&&(y?o.createElement("div",{"data-test-id":"arr--hero-image",className:"arr--hero-image "+d("".concat(E," ").concat(j," ").concat(O),Kt)},I()):o.createElement(t,{"data-test-id":"arr--hero-image",href:Bt(i,"/".concat(i.slug)),externalLink:Ht(i),"aria-label":"fallback-hero-image",className:"arr--hero-image "+d("".concat(E," ").concat(j," ").concat(O),Kt)},I()))};Zt.propTypes={story:n.object.isRequired,FullBleed:n.bool,defaultWidth:n.number,widths:n.array,aspectRatio:n.array,isHorizontal:n.bool,isHorizontalMobile:n.bool,defaultFallback:n.bool,isHorizontalWithImageLast:n.bool},Zt.defaultProps={FullBleed:!0,aspectRatio:[[1,1],[16,9]],defaultWidth:480,widths:[250,480,640],isHorizontal:!1,isHorizontalMobile:!1,defaultFallback:!0,isStoryPageImage:!1,isHorizontalWithImageLast:!1};export{Zt as HeroImage};
package/Image/index.js ADDED
@@ -0,0 +1 @@
1
+ import t,{useState as e,Suspense as r,lazy as n,useContext as o,createContext as i}from"react";import a from"prop-types";import{ResponsiveImage as c}from"@quintype/components";import"react-timeago";import{useSelector as u}from"react-redux";function l(){return(l=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t}).apply(this,arguments)}function s(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r,n,o={},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 f=["element","render"],p=function(e){return function(r){var n=r.element,o=r.render,i=s(r,f);return n?o&&"function"==typeof o?o(r):t.createElement(e,l({},i,{element:n})):null}};p.propTypes={StoryElement:a.element};var h="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function m(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function v(t){var e={exports:{}};return t(e,e.exports),e.exports}v((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 l(t,e,r,n){var o=e&&e.prototype instanceof y?e:y,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===h)throw new Error("Generator is already running");if(n===m){if("throw"===o)throw i;return T()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var c=x(a,r);if(c){if(c===v)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(n===f)throw n=m,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n=h;var u=s(t,e,r);if("normal"===u.type){if(n=r.done?m:p,u.arg===v)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(n=m,r.method="throw",r.arg=u.arg)}}}(t,r,a),i}function s(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=l;var f="suspendedStart",p="suspendedYield",h="executing",m="completed",v={};function y(){}function d(){}function g(){}var b={};u(b,i,(function(){return this}));var _=Object.getPrototypeOf,w=_&&_(_(C([])));w&&w!==r&&n.call(w,i)&&(b=w);var j=g.prototype=y.prototype=Object.create(b);function E(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function O(t,e){function r(o,i,a,c){var u=s(t[o],t,i);if("throw"!==u.type){var l=u.arg,f=l.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){l.value=t,a(l)}),(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 x(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,x(t,r),"throw"===r.method))return v;r.method="throw",r.arg=new TypeError("The iterator does not provide a 'throw' method")}return v}var o=s(n,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,v;var i=o.arg;return i?i.done?(r[t.resultName]=i.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,v):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,v)}function 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 N(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(S,this),this.reset(!0)}function C(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:T}}function T(){return{value:e,done:!0}}return d.prototype=g,u(j,"constructor",g),u(g,"constructor",d),d.displayName=u(g,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===d||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,g):(t.__proto__=g,u(t,c,"GeneratorFunction")),t.prototype=Object.create(j),t},t.awrap=function(t){return{__await:t}},E(O.prototype),u(O.prototype,a,(function(){return this})),t.AsyncIterator=O,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new O(l(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},E(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=C,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(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 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"),l=n.call(a,"finallyLoc");if(u&&l){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(!l)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,v):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),v},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),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:C(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 y=Array.isArray,d="object"==typeof h&&h&&h.Object===Object&&h,g="object"==typeof self&&self&&self.Object===Object&&self,b=d||g||Function("return this")(),_=b.Symbol,w=Object.prototype,j=w.hasOwnProperty,E=w.toString,O=_?_.toStringTag:void 0;var x=function(t){var e=j.call(t,O),r=t[O];try{t[O]=void 0;var n=!0}catch(t){}var o=E.call(t);return n&&(e?t[O]=r:delete t[O]),o},S=Object.prototype.toString;var k=function(t){return S.call(t)},N=_?_.toStringTag:void 0;var C=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":N&&N in Object(t)?x(t):k(t)};var T=function(t){return null!=t&&"object"==typeof t};var M=function(t){return"symbol"==typeof t||T(t)&&"[object Symbol]"==C(t)},L=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,P=/^\w*$/;var I=function(t,e){if(y(t))return!1;var r=typeof t;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=t&&!M(t))||(P.test(t)||!L.test(t)||null!=e&&t in Object(e))};var A=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)};var F,R=function(t){if(!A(t))return!1;var e=C(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e},z=b["__core-js_shared__"],$=(F=/[^.]+$/.exec(z&&z.keys&&z.keys.IE_PROTO||""))?"Symbol(src)_1."+F:"";var G=function(t){return!!$&&$ in t},W=Function.prototype.toString;var q=function(t){if(null!=t){try{return W.call(t)}catch(t){}try{return t+""}catch(t){}}return""},D=/^\[object .+?Constructor\]$/,H=Function.prototype,Y=Object.prototype,B=H.toString,U=Y.hasOwnProperty,X=RegExp("^"+B.call(U).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var K=function(t){return!(!A(t)||G(t))&&(R(t)?X:D).test(q(t))};var V=function(t,e){return null==t?void 0:t[e]};var J=function(t,e){var r=V(t,e);return K(r)?r:void 0},Q=J(Object,"create");var Z=function(){this.__data__=Q?Q(null):{},this.size=0};var tt=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},et=Object.prototype.hasOwnProperty;var rt=function(t){var e=this.__data__;if(Q){var r=e[t];return"__lodash_hash_undefined__"===r?void 0:r}return et.call(e,t)?e[t]:void 0},nt=Object.prototype.hasOwnProperty;var ot=function(t){var e=this.__data__;return Q?void 0!==e[t]:nt.call(e,t)};var it=function(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=Q&&void 0===e?"__lodash_hash_undefined__":e,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=Z,at.prototype.delete=tt,at.prototype.get=rt,at.prototype.has=ot,at.prototype.set=it;var ct=at;var ut=function(){this.__data__=[],this.size=0};var lt=function(t,e){return t===e||t!=t&&e!=e};var st=function(t,e){for(var r=t.length;r--;)if(lt(t[r][0],e))return r;return-1},ft=Array.prototype.splice;var pt=function(t){var e=this.__data__,r=st(e,t);return!(r<0)&&(r==e.length-1?e.pop():ft.call(e,r,1),--this.size,!0)};var ht=function(t){var e=this.__data__,r=st(e,t);return r<0?void 0:e[r][1]};var mt=function(t){return st(this.__data__,t)>-1};var vt=function(t,e){var r=this.__data__,n=st(r,t);return n<0?(++this.size,r.push([t,e])):r[n][1]=e,this};function 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=ut,yt.prototype.delete=pt,yt.prototype.get=ht,yt.prototype.has=mt,yt.prototype.set=vt;var dt=yt,gt=J(b,"Map");var bt=function(){this.size=0,this.__data__={hash:new ct,map:new(gt||dt),string:new ct}};var _t=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t};var wt=function(t,e){var r=t.__data__;return _t(e)?r["string"==typeof e?"string":"hash"]:r.map};var jt=function(t){var e=wt(this,t).delete(t);return this.size-=e?1:0,e};var Et=function(t){return wt(this,t).get(t)};var Ot=function(t){return wt(this,t).has(t)};var xt=function(t,e){var r=wt(this,t),n=r.size;return r.set(t,e),this.size+=r.size==n?0:1,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=bt,St.prototype.delete=jt,St.prototype.get=Et,St.prototype.has=Ot,St.prototype.set=xt;var kt=St;function Nt(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(Nt.Cache||kt),r}Nt.Cache=kt;var Ct=Nt;var Tt=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Mt=/\\(\\)?/g,Lt=function(t){var e=Ct(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(Mt,"$1"):r||t)})),e}));var Pt=function(t,e){for(var r=-1,n=null==t?0:t.length,o=Array(n);++r<n;)o[r]=e(t[r],r,t);return o},It=_?_.prototype:void 0,At=It?It.toString:void 0;var Ft=function t(e){if("string"==typeof e)return e;if(y(e))return Pt(e,t)+"";if(M(e))return At?At.call(e):"";var r=e+"";return"0"==r&&1/e==-Infinity?"-0":r};var Rt=function(t){return null==t?"":Ft(t)};var zt=function(t,e){return y(t)?t:I(t,e)?[t]:Lt(Rt(t))};var $t=function(t){if("string"==typeof t||M(t))return t;var e=t+"";return"0"==e&&1/t==-Infinity?"-0":e};var Gt=function(t,e){for(var r=0,n=(e=zt(e,t)).length;null!=t&&r<n;)t=t[$t(e[r++])];return r&&r==n?t:void 0};var Wt=function(t,e,r){var n=null==t?void 0:Gt(t,e);return void 0===n?r:n},qt=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},Dt=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},Ht=a.shape({"sketches-host":a.string,"cdn-name":a.string,"cdn-image":a.string}),Yt=a.shape({headline:a.string,"last-published-at":a.number,subheadline:a.string});function Bt(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Ut(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function Xt(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i=[],a=!0,c=!1;try{for(r=r.call(t);!(a=(n=r.next()).done)&&(i.push(n.value),!e||i.length!==e);a=!0);}catch(t){c=!0,o=t}finally{try{a||null==r.return||r.return()}finally{if(c)throw o}}return i}}(t,e)||function(t,e){if(t){if("string"==typeof t)return Ut(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Ut(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var Kt=function(e){return e.width,e.height,e.iconColor,t.createElement("div",{className:"loading-m_loading-indicator__2Dlst"},t.createElement("svg",{width:"40",height:"40",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 100",preserveAspectRatio:"xMidYMid"},t.createElement("circle",{cx:"84",cy:"50",r:"0",fill:"currentColor"},t.createElement("animate",{attributeName:"r",values:"10;0;0;0;0",keyTimes:"0;0.25;0.5;0.75;1",keySplines:"0 0.5 0.5 1;0 0.5 0.5 1;0 0.5 0.5 1;0 0.5 0.5 1",calcMode:"spline",dur:"2s",repeatCount:"indefinite",begin:"0s"}),t.createElement("animate",{attributeName:"cx",values:"84;84;84;84;84",keyTimes:"0;0.25;0.5;0.75;1",keySplines:"0 0.5 0.5 1;0 0.5 0.5 1;0 0.5 0.5 1;0 0.5 0.5 1",calcMode:"spline",dur:"2s",repeatCount:"indefinite",begin:"0s"})),t.createElement("circle",{cx:"84",cy:"50",r:".709",fill:"currentColor"},t.createElement("animate",{attributeName:"r",values:"0;10;10;10;0",keyTimes:"0;0.25;0.5;0.75;1",keySplines:"0 0.5 0.5 1;0 0.5 0.5 1;0 0.5 0.5 1;0 0.5 0.5 1",calcMode:"spline",dur:"2s",repeatCount:"indefinite",begin:"-1s"}),t.createElement("animate",{attributeName:"cx",values:"16;16;50;84;84",keyTimes:"0;0.25;0.5;0.75;1",keySplines:"0 0.5 0.5 1;0 0.5 0.5 1;0 0.5 0.5 1;0 0.5 0.5 1",calcMode:"spline",dur:"2s",repeatCount:"indefinite",begin:"-1s"})),t.createElement("circle",{cx:"81.59",cy:"50",r:"10",fill:"currentColor"},t.createElement("animate",{attributeName:"r",values:"0;10;10;10;0",keyTimes:"0;0.25;0.5;0.75;1",keySplines:"0 0.5 0.5 1;0 0.5 0.5 1;0 0.5 0.5 1;0 0.5 0.5 1",calcMode:"spline",dur:"2s",repeatCount:"indefinite",begin:"-0.5s"}),t.createElement("animate",{attributeName:"cx",values:"16;16;50;84;84",keyTimes:"0;0.25;0.5;0.75;1",keySplines:"0 0.5 0.5 1;0 0.5 0.5 1;0 0.5 0.5 1;0 0.5 0.5 1",calcMode:"spline",dur:"2s",repeatCount:"indefinite",begin:"-0.5s"})),t.createElement("circle",{cx:"47.59",cy:"50",r:"10",fill:"currentColor"},t.createElement("animate",{attributeName:"r",values:"0;10;10;10;0",keyTimes:"0;0.25;0.5;0.75;1",keySplines:"0 0.5 0.5 1;0 0.5 0.5 1;0 0.5 0.5 1;0 0.5 0.5 1",calcMode:"spline",dur:"2s",repeatCount:"indefinite",begin:"0s"}),t.createElement("animate",{attributeName:"cx",values:"16;16;50;84;84",keyTimes:"0;0.25;0.5;0.75;1",keySplines:"0 0.5 0.5 1;0 0.5 0.5 1;0 0.5 0.5 1;0 0.5 0.5 1",calcMode:"spline",dur:"2s",repeatCount:"indefinite",begin:"0s"})),t.createElement("circle",{cx:"16",cy:"50",r:"9.291",fill:"currentColor"},t.createElement("animate",{attributeName:"r",values:"0;0;10;10;10",keyTimes:"0;0.25;0.5;0.75;1",keySplines:"0 0.5 0.5 1;0 0.5 0.5 1;0 0.5 0.5 1;0 0.5 0.5 1",calcMode:"spline",dur:"2s",repeatCount:"indefinite",begin:"0s"}),t.createElement("animate",{attributeName:"cx",values:"16;16;16;50;84",keyTimes:"0;0.25;0.5;0.75;1",keySplines:"0 0.5 0.5 1;0 0.5 0.5 1;0 0.5 0.5 1;0 0.5 0.5 1",calcMode:"spline",dur:"2s",repeatCount:"indefinite",begin:"0s"}))))};function Vt(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}Kt.propTypes={width:a.object,height:a.object,iconColor:a.object};var Jt=n((function(){return import("react-image-lightbox")})),Qt=function(n){var o=n.imageSlug,i=void 0===o?"":o,a=n.template,c=n.element,s=void 0===c?{}:c,f=n.props,p=u((function(t){return Wt(t,["qt","config","cdn-image"])})),h=Xt(e(0),2),m=h[0],v=h[1],y=Xt(e(!1),2),d=y[0],g=y[1],b=Wt(global,["innerWidth"],0),_=[];i||(_=Wt(s,["story-elements"],[]).map((function(t){return"//".concat(p,"/").concat(t["image-s3-key"],"?w=").concat(b)})));var w=i?"onClick":"onClickHandler",j=_.length,E=i?{mainSrc:"//".concat(p,"/").concat(i,"?w=").concat(b)}:{mainSrc:_[m],nextSrc:_[(m+1)%j],prevSrc:_[(m+j-1)%j],onMoveNextRequest:function(){return function(t){v((m+1)%t)}(j)},onMovePrevRequest:function(){return function(t){v((m+t-1)%t)}(j)}},O=function(){return t.createElement("div",null,t.createElement(Kt,null))};return t.createElement("div",null,t.createElement(a,function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Vt(Object(r),!0).forEach((function(e){Bt(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Vt(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}(Bt({},w,(function(t){g(!0),v(t)})),f)),d?t.createElement(r,{fallback:t.createElement(O,null)},t.createElement(Jt,l({wrapperClassName:"arr--image-lightbox",onCloseRequest:function(){v(0),g(!1)}},E))):null)};Qt.propTypes={imageSlug:a.string,template:a.func,element:a.shape({"story-elements":a.array}),props:a.object};var Zt=i(),te=function(){return o(Zt)},ee=v((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})),re=m(v((function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r,n=(r=ee)&&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,l=a.autoResolveMultipleImports,s=void 0===l?n.default.autoResolveMultipleImports:l;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(!s)throw new Error("Cannot use anonymous style name '"+t+"' with more than one stylesheet import without setting 'autoResolveMultipleImports' to true.");return function(t,e,r){var i=r||n.default.handleMissingStyleName,a=Object.keys(e).map((function(r){return e[r][t]&&r})).filter((function(t){return t}));if(a.length>1)throw new Error('Cannot resolve styleName "'+t+'" because it is present in multiple imports:\n\n\t'+a.join("\n\t")+'\n\nYou can resolve this by using a named import, e.g:\n\n\timport foo from "'+a[0]+'";\n\t<div styleName="foo.'+t+'" />\n\n');return 0===a.length?o("Could not resolve the styleName '"+t+"'.",i):e[a[0]][t]}(t,e,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(" "):""}}))),ne={"./caption-attribution.m.css":{viewports:'"../../../../assets/stylesheets/viewports.m.css"',mobile:"768px",caption:"caption-attribution-m_caption__BM5NN",wrapper:"caption-attribution-m_wrapper__oHBX7",dark:"caption-attribution-m_dark__uER8u",attribution:"caption-attribution-m_attribution__279W9",light:"caption-attribution-m_light__19OWp"}},oe=function(e){var r=e.story,n=e.element;if(e.config,!r&&!n)return null;var o=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:Dt(t);return qt(e)<155?"light":"dark"}((te()||{}).theme),i=r||{},a=i["hero-image-caption"],c=void 0===a?"":a,u=i["hero-image-attribution"],l=void 0===u?"":u,s=n||{},f=s.title,p=void 0===f?"":f,h=s["image-attribution"],m=c||p,v=l||(void 0===h?"":h),y=m?"wrapper":"";return t.createElement("div",{"data-test-id":"caption",className:"arr--caption-attribution "+re("caption ".concat(o),ne)},t.createElement("span",{dangerouslySetInnerHTML:{__html:m}}),v&&t.createElement("span",{"data-test-id":"attribution",dangerouslySetInnerHTML:{__html:v},className:re("attribution ".concat(o," ").concat(y),ne)}))};oe.propTypes={config:a.shape({theme:a.string}),story:Yt,element:a.shape({"image-attribution":a.string,title:a.string})};var ie=["element","opts","story","config","caption"],ae=function(e){var r=e.element,n=e.opts,o=void 0===n?{}:n,i=e.story,u=void 0===i?{}:i;e.config;var f=e.caption,p=void 0===f||f,h=s(e,ie);if(!r)return null;var m=te()||{},v=function(e){var n=e.onClick;return t.createElement(t.Fragment,null,t.createElement("figure",{className:"image-m_element__KVuzX",onClick:function(){return n()}},t.createElement(c,{slug:r["image-s3-key"],metadata:r["image-metadata"],alt:r.title,aspectRatio:null,defaultWidth:640,widths:o.imageWidths||[360,640,1200],imgParams:{auto:["format","compress"]}})))};return v.propTypes={onClick:a.func},t.createElement("div",l({className:"arrow-component arr--image-element"},h,{"data-test-id":"image-element"}),t.createElement(Qt,{template:v,element:r,imageSlug:r["image-s3-key"],story:u}),p&&t.createElement(oe,{element:r,config:m}))};ae.propTypes={element:a.shape({"image-s3-key":a.string,"image-metadata":a.object,"image-attribution":a.string,title:a.string}),caption:a.bool,opts:a.shape({imageWidths:a.array}),story:Yt,config:Ht};var ce=p(ae);export{ce as Image};
@@ -0,0 +1 @@
1
+ import e,{useState as t,Suspense as r,lazy as n}from"react";import o from"prop-types";import{ResponsiveImage as i}from"@quintype/components";import{useSelector as a}from"react-redux";import"react-timeago";function l(){return(l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function c(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var u="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 f(e){var t={exports:{}};return e(t,t.exports),t.exports}var p=f((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(f((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,n=(r=p)&&r.__esModule?r:{default:r};var o=function(e,t){if("throw"===t)throw new Error(e);return"warn"===t&&console.warn(e),null};t.default=function(e,t,r){var i=Object.keys(t),a=r||{},l=a.handleMissingStyleName,c=void 0===l?n.default.handleMissingStyleName:l,u=a.autoResolveMultipleImports,s=void 0===u?n.default.autoResolveMultipleImports:u;return e?e.split(" ").filter((function(e){return e})).map((function(e){if(function(e){return-1!==e.indexOf(".")}(e))return function(e,t,r){var i=e.split("."),a=i[0],l=i[1],c=r||n.default.handleMissingStyleName;return l?t[a]?t[a][l]?t[a][l]:o("CSS module does not exist: "+l,c):o("CSS module import does not exist: "+a,c):o("Invalid style name: "+e,c)}(e,t,c);if(0===i.length)throw new Error("Cannot use styleName attribute for style name '"+e+"' without importing at least one stylesheet.");if(i.length>1){if(!s)throw new Error("Cannot use anonymous style name '"+e+"' with more than one stylesheet import without setting 'autoResolveMultipleImports' to true.");return function(e,t,r){var i=r||n.default.handleMissingStyleName,a=Object.keys(t).map((function(r){return t[r][e]&&r})).filter((function(e){return e}));if(a.length>1)throw new Error('Cannot resolve styleName "'+e+'" because it is present in multiple imports:\n\n\t'+a.join("\n\t")+'\n\nYou can resolve this by using a named import, e.g:\n\n\timport foo from "'+a[0]+'";\n\t<div styleName="foo.'+e+'" />\n\n');return 0===a.length?o("Could not resolve the styleName '"+e+"'.",i):t[a[0]][e]}(e,t,c)}var r=t[i[0]];return r[e]?r[e]:o("Could not resolve the styleName '"+e+"'.",c)})).filter((function(e){return e})).join(" "):""}}))),m=["element","render"],y=function(t){return function(r){var n=r.element,o=r.render,i=c(r,m);return n?o&&"function"==typeof o?o(r):e.createElement(t,l({},i,{element:n})):null}};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 d(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function g(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 n,o,i=[],a=!0,l=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==r.return||r.return()}finally{if(l)throw o}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return d(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)?d(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.")}()}y.propTypes={StoryElement:o.element};var b=Array.isArray,_="object"==typeof u&&u&&u.Object===Object&&u,w="object"==typeof self&&self&&self.Object===Object&&self,j=_||w||Function("return this")(),O=j.Symbol,E=Object.prototype,x=E.hasOwnProperty,S=E.toString,k=O?O.toStringTag:void 0;var N=function(e){var t=x.call(e,k),r=e[k];try{e[k]=void 0;var n=!0}catch(e){}var o=S.call(e);return n&&(t?e[k]=r:delete e[k]),o},C=Object.prototype.toString;var P=function(e){return C.call(e)},T=O?O.toStringTag:void 0;var L=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":T&&T in Object(e)?N(e):P(e)};var M=function(e){return null!=e&&"object"==typeof e};var A=function(e){return"symbol"==typeof e||M(e)&&"[object Symbol]"==L(e)},I=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,R=/^\w*$/;var z=function(e,t){if(b(e))return!1;var r=typeof e;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=e&&!A(e))||(R.test(e)||!I.test(e)||null!=t&&e in Object(t))};var F=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)};var $,G=function(e){if(!F(e))return!1;var t=L(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},q=j["__core-js_shared__"],D=($=/[^.]+$/.exec(q&&q.keys&&q.keys.IE_PROTO||""))?"Symbol(src)_1."+$:"";var W=function(e){return!!D&&D in e},Y=Function.prototype.toString;var H=function(e){if(null!=e){try{return Y.call(e)}catch(e){}try{return e+""}catch(e){}}return""},Q=/^\[object .+?Constructor\]$/,U=Function.prototype,B=Object.prototype,J=U.toString,K=B.hasOwnProperty,V=RegExp("^"+J.call(K).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var X=function(e){return!(!F(e)||W(e))&&(G(e)?V:Q).test(H(e))};var Z=function(e,t){return null==e?void 0:e[t]};var ee=function(e,t){var r=Z(e,t);return X(r)?r:void 0},te=ee(Object,"create");var re=function(){this.__data__=te?te(null):{},this.size=0};var ne=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},oe=Object.prototype.hasOwnProperty;var ie=function(e){var t=this.__data__;if(te){var r=t[e];return"__lodash_hash_undefined__"===r?void 0:r}return oe.call(t,e)?t[e]:void 0},ae=Object.prototype.hasOwnProperty;var le=function(e){var t=this.__data__;return te?void 0!==t[e]:ae.call(t,e)};var ce=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=te&&void 0===t?"__lodash_hash_undefined__":t,this};function ue(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}ue.prototype.clear=re,ue.prototype.delete=ne,ue.prototype.get=ie,ue.prototype.has=le,ue.prototype.set=ce;var se=ue;var fe=function(){this.__data__=[],this.size=0};var pe=function(e,t){return e===t||e!=e&&t!=t};var he=function(e,t){for(var r=e.length;r--;)if(pe(e[r][0],t))return r;return-1},me=Array.prototype.splice;var ye=function(e){var t=this.__data__,r=he(t,e);return!(r<0)&&(r==t.length-1?t.pop():me.call(t,r,1),--this.size,!0)};var ve=function(e){var t=this.__data__,r=he(t,e);return r<0?void 0:t[r][1]};var de=function(e){return he(this.__data__,e)>-1};var ge=function(e,t){var r=this.__data__,n=he(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this};function be(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}be.prototype.clear=fe,be.prototype.delete=ye,be.prototype.get=ve,be.prototype.has=de,be.prototype.set=ge;var _e=be,we=ee(j,"Map");var je=function(){this.size=0,this.__data__={hash:new se,map:new(we||_e),string:new se}};var Oe=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e};var Ee=function(e,t){var r=e.__data__;return Oe(t)?r["string"==typeof t?"string":"hash"]:r.map};var xe=function(e){var t=Ee(this,e).delete(e);return this.size-=t?1:0,t};var Se=function(e){return Ee(this,e).get(e)};var ke=function(e){return Ee(this,e).has(e)};var Ne=function(e,t){var r=Ee(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this};function Ce(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Ce.prototype.clear=je,Ce.prototype.delete=xe,Ce.prototype.get=Se,Ce.prototype.has=ke,Ce.prototype.set=Ne;var Pe=Ce;function Te(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var r=function(){var n=arguments,o=t?t.apply(this,n):n[0],i=r.cache;if(i.has(o))return i.get(o);var a=e.apply(this,n);return r.cache=i.set(o,a)||i,a};return r.cache=new(Te.Cache||Pe),r}Te.Cache=Pe;var Le=Te;var Me=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ae=/\\(\\)?/g,Ie=function(e){var t=Le(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(Me,(function(e,r,n,o){t.push(n?o.replace(Ae,"$1"):r||e)})),t}));var Re=function(e,t){for(var r=-1,n=null==e?0:e.length,o=Array(n);++r<n;)o[r]=t(e[r],r,e);return o},ze=O?O.prototype:void 0,Fe=ze?ze.toString:void 0;var $e=function e(t){if("string"==typeof t)return t;if(b(t))return Re(t,e)+"";if(A(t))return Fe?Fe.call(t):"";var r=t+"";return"0"==r&&1/t==-Infinity?"-0":r};var Ge=function(e){return null==e?"":$e(e)};var qe=function(e,t){return b(e)?e:z(e,t)?[e]:Ie(Ge(e))};var De=function(e){if("string"==typeof e||A(e))return e;var t=e+"";return"0"==t&&1/e==-Infinity?"-0":t};var We=function(e,t){for(var r=0,n=(t=qe(t,e)).length;null!=e&&r<n;)e=e[De(t[r++])];return r&&r==n?e:void 0};var Ye=function(e,t,r){var n=null==e?void 0:We(e,t);return void 0===n?r:n},He=function(t){return t.width,t.height,t.iconColor,e.createElement("div",{className:"loading-m_loading-indicator__2Dlst"},e.createElement("svg",{width:"40",height:"40",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 100",preserveAspectRatio:"xMidYMid"},e.createElement("circle",{cx:"84",cy:"50",r:"0",fill:"currentColor"},e.createElement("animate",{attributeName:"r",values:"10;0;0;0;0",keyTimes:"0;0.25;0.5;0.75;1",keySplines:"0 0.5 0.5 1;0 0.5 0.5 1;0 0.5 0.5 1;0 0.5 0.5 1",calcMode:"spline",dur:"2s",repeatCount:"indefinite",begin:"0s"}),e.createElement("animate",{attributeName:"cx",values:"84;84;84;84;84",keyTimes:"0;0.25;0.5;0.75;1",keySplines:"0 0.5 0.5 1;0 0.5 0.5 1;0 0.5 0.5 1;0 0.5 0.5 1",calcMode:"spline",dur:"2s",repeatCount:"indefinite",begin:"0s"})),e.createElement("circle",{cx:"84",cy:"50",r:".709",fill:"currentColor"},e.createElement("animate",{attributeName:"r",values:"0;10;10;10;0",keyTimes:"0;0.25;0.5;0.75;1",keySplines:"0 0.5 0.5 1;0 0.5 0.5 1;0 0.5 0.5 1;0 0.5 0.5 1",calcMode:"spline",dur:"2s",repeatCount:"indefinite",begin:"-1s"}),e.createElement("animate",{attributeName:"cx",values:"16;16;50;84;84",keyTimes:"0;0.25;0.5;0.75;1",keySplines:"0 0.5 0.5 1;0 0.5 0.5 1;0 0.5 0.5 1;0 0.5 0.5 1",calcMode:"spline",dur:"2s",repeatCount:"indefinite",begin:"-1s"})),e.createElement("circle",{cx:"81.59",cy:"50",r:"10",fill:"currentColor"},e.createElement("animate",{attributeName:"r",values:"0;10;10;10;0",keyTimes:"0;0.25;0.5;0.75;1",keySplines:"0 0.5 0.5 1;0 0.5 0.5 1;0 0.5 0.5 1;0 0.5 0.5 1",calcMode:"spline",dur:"2s",repeatCount:"indefinite",begin:"-0.5s"}),e.createElement("animate",{attributeName:"cx",values:"16;16;50;84;84",keyTimes:"0;0.25;0.5;0.75;1",keySplines:"0 0.5 0.5 1;0 0.5 0.5 1;0 0.5 0.5 1;0 0.5 0.5 1",calcMode:"spline",dur:"2s",repeatCount:"indefinite",begin:"-0.5s"})),e.createElement("circle",{cx:"47.59",cy:"50",r:"10",fill:"currentColor"},e.createElement("animate",{attributeName:"r",values:"0;10;10;10;0",keyTimes:"0;0.25;0.5;0.75;1",keySplines:"0 0.5 0.5 1;0 0.5 0.5 1;0 0.5 0.5 1;0 0.5 0.5 1",calcMode:"spline",dur:"2s",repeatCount:"indefinite",begin:"0s"}),e.createElement("animate",{attributeName:"cx",values:"16;16;50;84;84",keyTimes:"0;0.25;0.5;0.75;1",keySplines:"0 0.5 0.5 1;0 0.5 0.5 1;0 0.5 0.5 1;0 0.5 0.5 1",calcMode:"spline",dur:"2s",repeatCount:"indefinite",begin:"0s"})),e.createElement("circle",{cx:"16",cy:"50",r:"9.291",fill:"currentColor"},e.createElement("animate",{attributeName:"r",values:"0;0;10;10;10",keyTimes:"0;0.25;0.5;0.75;1",keySplines:"0 0.5 0.5 1;0 0.5 0.5 1;0 0.5 0.5 1;0 0.5 0.5 1",calcMode:"spline",dur:"2s",repeatCount:"indefinite",begin:"0s"}),e.createElement("animate",{attributeName:"cx",values:"16;16;16;50;84",keyTimes:"0;0.25;0.5;0.75;1",keySplines:"0 0.5 0.5 1;0 0.5 0.5 1;0 0.5 0.5 1;0 0.5 0.5 1",calcMode:"spline",dur:"2s",repeatCount:"indefinite",begin:"0s"}))))};function Qe(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}He.propTypes={width:o.object,height:o.object,iconColor:o.object};var Ue=n((function(){return import("react-image-lightbox")})),Be=function(n){var o=n.imageSlug,i=void 0===o?"":o,c=n.template,u=n.element,s=void 0===u?{}:u,f=n.props,p=a((function(e){return Ye(e,["qt","config","cdn-image"])})),h=g(t(0),2),m=h[0],y=h[1],d=g(t(!1),2),b=d[0],_=d[1],w=Ye(global,["innerWidth"],0),j=[];i||(j=Ye(s,["story-elements"],[]).map((function(e){return"//".concat(p,"/").concat(e["image-s3-key"],"?w=").concat(w)})));var O=i?"onClick":"onClickHandler",E=j.length,x=i?{mainSrc:"//".concat(p,"/").concat(i,"?w=").concat(w)}:{mainSrc:j[m],nextSrc:j[(m+1)%E],prevSrc:j[(m+E-1)%E],onMoveNextRequest:function(){return function(e){y((m+1)%e)}(E)},onMovePrevRequest:function(){return function(e){y((m+e-1)%e)}(E)}},S=function(){return e.createElement("div",null,e.createElement(He,null))};return e.createElement("div",null,e.createElement(c,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Qe(Object(r),!0).forEach((function(t){v(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Qe(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}(v({},O,(function(e){_(!0),y(e)})),f)),b?e.createElement(r,{fallback:e.createElement(S,null)},e.createElement(Ue,l({wrapperClassName:"arr--image-lightbox",onCloseRequest:function(){y(0),_(!1)}},x))):null)};Be.propTypes={imageSlug:o.string,template:o.func,element:o.shape({"story-elements":o.array}),props:o.object},f((function(e){var t=function(e){var t,r=Object.prototype,n=r.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",l=o.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 u(e,t,r,n){var o=t&&t.prototype instanceof v?t:v,i=Object.create(o.prototype),a=new N(n||[]);return i._invoke=function(e,t,r){var n=f;return function(o,i){if(n===h)throw new Error("Generator is already running");if(n===m){if("throw"===o)throw i;return P()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var l=x(a,r);if(l){if(l===y)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(n===f)throw n=m,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n=h;var c=s(e,t,r);if("normal"===c.type){if(n=r.done?m:p,c.arg===y)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n=m,r.method="throw",r.arg=c.arg)}}}(e,r,a),i}function s(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=u;var f="suspendedStart",p="suspendedYield",h="executing",m="completed",y={};function v(){}function d(){}function g(){}var b={};c(b,i,(function(){return this}));var _=Object.getPrototypeOf,w=_&&_(_(C([])));w&&w!==r&&n.call(w,i)&&(b=w);var j=g.prototype=v.prototype=Object.create(b);function O(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function E(e,t){function r(o,i,a,l){var c=s(e[o],e,i);if("throw"!==c.type){var u=c.arg,f=u.value;return f&&"object"==typeof f&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){r("next",e,a,l)}),(function(e){r("throw",e,a,l)})):t.resolve(f).then((function(e){u.value=e,a(u)}),(function(e){return r("throw",e,a,l)}))}l(c.arg)}var o;this._invoke=function(e,n){function i(){return new t((function(t,o){r(e,n,t,o)}))}return o=o?o.then(i,i):i()}}function x(e,r){var n=e.iterator[r.method];if(n===t){if(r.delegate=null,"throw"===r.method){if(e.iterator.return&&(r.method="return",r.arg=t,x(e,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=s(n,e.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[e.resultName]=i.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function S(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 k(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function N(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(S,this),this.reset(!0)}function C(e){if(e){var r=e[i];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}return{next:P}}function P(){return{value:t,done:!0}}return d.prototype=g,c(j,"constructor",g),c(g,"constructor",d),d.displayName=c(g,l,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===d||"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(j),e},e.awrap=function(e){return{__await:e}},O(E.prototype),c(E.prototype,a,(function(){return this})),e.AsyncIterator=E,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new E(u(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},O(j),c(j,l,"Generator"),c(j,i,(function(){return this})),c(j,"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 n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=C,N.prototype={constructor:N,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(k),!e)for(var r in this)"t"===r.charAt(0)&&n.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 o(n,o){return l.type="throw",l.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],l=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=n.call(a,"catchLoc"),u=n.call(a,"finallyLoc");if(c&&u){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(e,t){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"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),y},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),k(r),y}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;k(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:C(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y}},e}(e.exports);try{regeneratorRuntime=t}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=t:Function("r","regeneratorRuntime = r")(t)}}));var Je={mobile:767,tablet:1024},Ke=o.shape({"sketches-host":o.string,"cdn-name":o.string,"cdn-image":o.string}),Ve=o.shape({headline:o.string,"last-published-at":o.number,subheadline:o.string}),Xe=["element","template","opts","story","config"],Ze={"./image-gallery.m.css":{viewports:'"../../../../../assets/stylesheets/viewports.m.css"',mobile:"768px","image-gallery":"image-gallery-m_image-gallery__1Q7if",image:"image-gallery-m_image__3qwSJ","template-2":"image-gallery-m_template-2__2pjmE","left-images":"image-gallery-m_left-images__34gjv"}},et=function(t){var r=t.element,n=t.template,a=void 0===n?"":n;t.opts,t.story,t.config;var u=c(t,Xe);if(!r)return null;var s,f=!!(s=Ye(Je,"mobile"))&&Ye(global,"document.documentElement.clientWidth")<=s,p=r["story-elements"],m="template-2"===a&&p.length,y=m>6?p.slice(0,6):p,v=m>4?p.slice(0,4):p,d=f?v:y,g="template-2"===a?"template-2":"",b=function(){var t=m>6&&p.length-6,r=m>4&&p.length-4,n=f?r:t;return e.createElement("div",{className:"image-gallery-m_left-images__34gjv"},n)},_=function(t){var r=t.onClickHandler,n=d.map((function(t,n){return e.createElement("figure",{key:n,"data-text-id":"image-".concat(n),onClick:function(){return r&&r(n)},className:h("image ".concat(g),Ze)},e.createElement(i,{slug:t["image-s3-key"],metadata:t["image-metadata"],alt:t.title,aspectRatio:[1,1],defaultWidth:640,imgParams:{auto:["format","compress"]}}),d.length-1===n&&e.createElement(b,null))}));return e.createElement("div",l({className:" arrow-component arr--image-element image-gallery-m_image-gallery__1Q7if "+(u&&u.className||"")},u,{"data-test-id":"image-gallery"}),n)};return _.propTypes={onClickHandler:o.func},e.createElement(Be,{template:_,element:r})};et.propTypes={element:o.shape({"story-elements":o.array}),opts:o.shape({imageWidths:o.array}),story:Ve,config:Ke,template:o.string};var tt=y(et);export{tt as ImageGallery};
@@ -0,0 +1 @@
1
+ import{LazyLoadImages as e,ResponsiveImage as t}from"@quintype/components";import r,{number as n,string as o,func as i,array as a,bool as c}from"prop-types";import l,{useState as s,Suspense as u,lazy as f,useContext as p,createContext as d,useRef as h,useEffect as m}from"react";import"react-timeago";import{useSelector as v}from"react-redux";var y=Array.isArray,g="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function _(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function w(e){var t={exports:{}};return e(t,t.exports),t.exports}var b="object"==typeof g&&g&&g.Object===Object&&g,E="object"==typeof self&&self&&self.Object===Object&&self,O=b||E||Function("return this")(),x=O.Symbol,j=Object.prototype,k=j.hasOwnProperty,S=j.toString,N=x?x.toStringTag:void 0;var C=function(e){var t=k.call(e,N),r=e[N];try{e[N]=void 0;var n=!0}catch(e){}var o=S.call(e);return n&&(t?e[N]=r:delete e[N]),o},I=Object.prototype.toString;var T=function(e){return I.call(e)},M=x?x.toStringTag:void 0;var P=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":M&&M in Object(e)?C(e):T(e)};var L=function(e){return null!=e&&"object"==typeof e};var A=function(e){return"symbol"==typeof e||L(e)&&"[object Symbol]"==P(e)},R=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,z=/^\w*$/;var F=function(e,t){if(y(e))return!1;var r=typeof e;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=e&&!A(e))||(z.test(e)||!R.test(e)||null!=t&&e in Object(t))};var D=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)};var G,$=function(e){if(!D(e))return!1;var t=P(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},V=O["__core-js_shared__"],H=(G=/[^.]+$/.exec(V&&V.keys&&V.keys.IE_PROTO||""))?"Symbol(src)_1."+G:"";var q=function(e){return!!H&&H in e},U=Function.prototype.toString;var W=function(e){if(null!=e){try{return U.call(e)}catch(e){}try{return e+""}catch(e){}}return""},B=/^\[object .+?Constructor\]$/,X=Function.prototype,Y=Object.prototype,J=X.toString,K=Y.hasOwnProperty,Z=RegExp("^"+J.call(K).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var Q=function(e){return!(!D(e)||q(e))&&($(e)?Z:B).test(W(e))};var ee=function(e,t){return null==e?void 0:e[t]};var te=function(e,t){var r=ee(e,t);return Q(r)?r:void 0},re=te(Object,"create");var ne=function(){this.__data__=re?re(null):{},this.size=0};var oe=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},ie=Object.prototype.hasOwnProperty;var ae=function(e){var t=this.__data__;if(re){var r=t[e];return"__lodash_hash_undefined__"===r?void 0:r}return ie.call(t,e)?t[e]:void 0},ce=Object.prototype.hasOwnProperty;var le=function(e){var t=this.__data__;return re?void 0!==t[e]:ce.call(t,e)};var se=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=re&&void 0===t?"__lodash_hash_undefined__":t,this};function ue(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}ue.prototype.clear=ne,ue.prototype.delete=oe,ue.prototype.get=ae,ue.prototype.has=le,ue.prototype.set=se;var fe=ue;var pe=function(){this.__data__=[],this.size=0};var de=function(e,t){return e===t||e!=e&&t!=t};var he=function(e,t){for(var r=e.length;r--;)if(de(e[r][0],t))return r;return-1},me=Array.prototype.splice;var ve=function(e){var t=this.__data__,r=he(t,e);return!(r<0)&&(r==t.length-1?t.pop():me.call(t,r,1),--this.size,!0)};var ye=function(e){var t=this.__data__,r=he(t,e);return r<0?void 0:t[r][1]};var ge=function(e){return he(this.__data__,e)>-1};var _e=function(e,t){var r=this.__data__,n=he(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this};function we(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}we.prototype.clear=pe,we.prototype.delete=ve,we.prototype.get=ye,we.prototype.has=ge,we.prototype.set=_e;var be=we,Ee=te(O,"Map");var Oe=function(){this.size=0,this.__data__={hash:new fe,map:new(Ee||be),string:new fe}};var xe=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e};var je=function(e,t){var r=e.__data__;return xe(t)?r["string"==typeof t?"string":"hash"]:r.map};var ke=function(e){var t=je(this,e).delete(e);return this.size-=t?1:0,t};var Se=function(e){return je(this,e).get(e)};var Ne=function(e){return je(this,e).has(e)};var Ce=function(e,t){var r=je(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this};function Ie(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Ie.prototype.clear=Oe,Ie.prototype.delete=ke,Ie.prototype.get=Se,Ie.prototype.has=Ne,Ie.prototype.set=Ce;var Te=Ie;function Me(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var r=function(){var n=arguments,o=t?t.apply(this,n):n[0],i=r.cache;if(i.has(o))return i.get(o);var a=e.apply(this,n);return r.cache=i.set(o,a)||i,a};return r.cache=new(Me.Cache||Te),r}Me.Cache=Te;var Pe=Me;var Le=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ae=/\\(\\)?/g,Re=function(e){var t=Pe(e,(function(e){return 500===r.size&&r.clear(),e})),r=t.cache;return t}((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(Le,(function(e,r,n,o){t.push(n?o.replace(Ae,"$1"):r||e)})),t}));var ze=function(e,t){for(var r=-1,n=null==e?0:e.length,o=Array(n);++r<n;)o[r]=t(e[r],r,e);return o},Fe=x?x.prototype:void 0,De=Fe?Fe.toString:void 0;var Ge=function e(t){if("string"==typeof t)return t;if(y(t))return ze(t,e)+"";if(A(t))return De?De.call(t):"";var r=t+"";return"0"==r&&1/t==-Infinity?"-0":r};var $e=function(e){return null==e?"":Ge(e)};var Ve=function(e,t){return y(e)?e:F(e,t)?[e]:Re($e(e))};var He=function(e){if("string"==typeof e||A(e))return e;var t=e+"";return"0"==t&&1/e==-Infinity?"-0":t};var qe=function(e,t){for(var r=0,n=(t=Ve(t,e)).length;null!=e&&r<n;)e=e[He(t[r++])];return r&&r==n?e:void 0};var Ue=function(e,t,r){var n=null==e?void 0:qe(e,t);return void 0===n?r:n};w((function(e){var t=function(e){var t,r=Object.prototype,n=r.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function l(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(e){l=function(e,t,r){return e[t]=r}}function s(e,t,r,n){var o=t&&t.prototype instanceof v?t:v,i=Object.create(o.prototype),a=new N(n||[]);return i._invoke=function(e,t,r){var n=f;return function(o,i){if(n===d)throw new Error("Generator is already running");if(n===h){if("throw"===o)throw i;return I()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var c=j(a,r);if(c){if(c===m)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(n===f)throw n=h,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n=d;var l=u(e,t,r);if("normal"===l.type){if(n=r.done?h:p,l.arg===m)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(n=h,r.method="throw",r.arg=l.arg)}}}(e,r,a),i}function u(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=s;var f="suspendedStart",p="suspendedYield",d="executing",h="completed",m={};function v(){}function y(){}function g(){}var _={};l(_,i,(function(){return this}));var w=Object.getPrototypeOf,b=w&&w(w(C([])));b&&b!==r&&n.call(b,i)&&(_=b);var E=g.prototype=v.prototype=Object.create(_);function O(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function x(e,t){function r(o,i,a,c){var l=u(e[o],e,i);if("throw"!==l.type){var s=l.arg,f=s.value;return f&&"object"==typeof f&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){r("next",e,a,c)}),(function(e){r("throw",e,a,c)})):t.resolve(f).then((function(e){s.value=e,a(s)}),(function(e){return r("throw",e,a,c)}))}c(l.arg)}var o;this._invoke=function(e,n){function i(){return new t((function(t,o){r(e,n,t,o)}))}return o=o?o.then(i,i):i()}}function j(e,r){var n=e.iterator[r.method];if(n===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 m;r.method="throw",r.arg=new TypeError("The iterator does not provide a 'throw' method")}return m}var o=u(n,e.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,m;var i=o.arg;return i?i.done?(r[e.resultName]=i.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,m):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,m)}function k(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 S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function N(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(k,this),this.reset(!0)}function C(e){if(e){var r=e[i];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}return{next:I}}function I(){return{value:t,done:!0}}return y.prototype=g,l(E,"constructor",g),l(g,"constructor",y),y.displayName=l(g,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===y||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,g):(e.__proto__=g,l(e,c,"GeneratorFunction")),e.prototype=Object.create(E),e},e.awrap=function(e){return{__await:e}},O(x.prototype),l(x.prototype,a,(function(){return this})),e.AsyncIterator=x,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new x(s(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},O(E),l(E,c,"Generator"),l(E,i,(function(){return this})),l(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 n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=C,N.prototype={constructor:N,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(S),!e)for(var r in this)"t"===r.charAt(0)&&n.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 o(n,o){return c.type="throw",c.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var l=n.call(a,"catchLoc"),s=n.call(a,"finallyLoc");if(l&&s){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(e,t){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"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,m):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),m},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),S(r),m}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;S(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:C(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),m}},e}(e.exports);try{regeneratorRuntime=t}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=t:Function("r","regeneratorRuntime = r")(t)}}));var We=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},Be=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},Xe=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:Be(e),n=We(r)<155?"light":"dark";return n};r.shape({"sketches-host":r.string,"cdn-name":r.string,"cdn-image":r.string});var Ye=r.shape({headline:r.string,"last-published-at":r.number,subheadline:r.string});function Je(){return(Je=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function Ke(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Ze(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Qe(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 n,o,i=[],a=!0,c=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);a=!0);}catch(e){c=!0,o=e}finally{try{a||null==r.return||r.return()}finally{if(c)throw o}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Ze(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)?Ze(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 et=function(e){return e.width,e.height,e.iconColor,l.createElement("div",{className:"loading-m_loading-indicator__2Dlst"},l.createElement("svg",{width:"40",height:"40",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 100",preserveAspectRatio:"xMidYMid"},l.createElement("circle",{cx:"84",cy:"50",r:"0",fill:"currentColor"},l.createElement("animate",{attributeName:"r",values:"10;0;0;0;0",keyTimes:"0;0.25;0.5;0.75;1",keySplines:"0 0.5 0.5 1;0 0.5 0.5 1;0 0.5 0.5 1;0 0.5 0.5 1",calcMode:"spline",dur:"2s",repeatCount:"indefinite",begin:"0s"}),l.createElement("animate",{attributeName:"cx",values:"84;84;84;84;84",keyTimes:"0;0.25;0.5;0.75;1",keySplines:"0 0.5 0.5 1;0 0.5 0.5 1;0 0.5 0.5 1;0 0.5 0.5 1",calcMode:"spline",dur:"2s",repeatCount:"indefinite",begin:"0s"})),l.createElement("circle",{cx:"84",cy:"50",r:".709",fill:"currentColor"},l.createElement("animate",{attributeName:"r",values:"0;10;10;10;0",keyTimes:"0;0.25;0.5;0.75;1",keySplines:"0 0.5 0.5 1;0 0.5 0.5 1;0 0.5 0.5 1;0 0.5 0.5 1",calcMode:"spline",dur:"2s",repeatCount:"indefinite",begin:"-1s"}),l.createElement("animate",{attributeName:"cx",values:"16;16;50;84;84",keyTimes:"0;0.25;0.5;0.75;1",keySplines:"0 0.5 0.5 1;0 0.5 0.5 1;0 0.5 0.5 1;0 0.5 0.5 1",calcMode:"spline",dur:"2s",repeatCount:"indefinite",begin:"-1s"})),l.createElement("circle",{cx:"81.59",cy:"50",r:"10",fill:"currentColor"},l.createElement("animate",{attributeName:"r",values:"0;10;10;10;0",keyTimes:"0;0.25;0.5;0.75;1",keySplines:"0 0.5 0.5 1;0 0.5 0.5 1;0 0.5 0.5 1;0 0.5 0.5 1",calcMode:"spline",dur:"2s",repeatCount:"indefinite",begin:"-0.5s"}),l.createElement("animate",{attributeName:"cx",values:"16;16;50;84;84",keyTimes:"0;0.25;0.5;0.75;1",keySplines:"0 0.5 0.5 1;0 0.5 0.5 1;0 0.5 0.5 1;0 0.5 0.5 1",calcMode:"spline",dur:"2s",repeatCount:"indefinite",begin:"-0.5s"})),l.createElement("circle",{cx:"47.59",cy:"50",r:"10",fill:"currentColor"},l.createElement("animate",{attributeName:"r",values:"0;10;10;10;0",keyTimes:"0;0.25;0.5;0.75;1",keySplines:"0 0.5 0.5 1;0 0.5 0.5 1;0 0.5 0.5 1;0 0.5 0.5 1",calcMode:"spline",dur:"2s",repeatCount:"indefinite",begin:"0s"}),l.createElement("animate",{attributeName:"cx",values:"16;16;50;84;84",keyTimes:"0;0.25;0.5;0.75;1",keySplines:"0 0.5 0.5 1;0 0.5 0.5 1;0 0.5 0.5 1;0 0.5 0.5 1",calcMode:"spline",dur:"2s",repeatCount:"indefinite",begin:"0s"})),l.createElement("circle",{cx:"16",cy:"50",r:"9.291",fill:"currentColor"},l.createElement("animate",{attributeName:"r",values:"0;0;10;10;10",keyTimes:"0;0.25;0.5;0.75;1",keySplines:"0 0.5 0.5 1;0 0.5 0.5 1;0 0.5 0.5 1;0 0.5 0.5 1",calcMode:"spline",dur:"2s",repeatCount:"indefinite",begin:"0s"}),l.createElement("animate",{attributeName:"cx",values:"16;16;16;50;84",keyTimes:"0;0.25;0.5;0.75;1",keySplines:"0 0.5 0.5 1;0 0.5 0.5 1;0 0.5 0.5 1;0 0.5 0.5 1",calcMode:"spline",dur:"2s",repeatCount:"indefinite",begin:"0s"}))))};function tt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}et.propTypes={width:r.object,height:r.object,iconColor:r.object};var rt=f((function(){return import("react-image-lightbox")})),nt=function(e){var t=e.imageSlug,r=void 0===t?"":t,n=e.template,o=e.element,i=void 0===o?{}:o,a=e.props,c=v((function(e){return Ue(e,["qt","config","cdn-image"])})),f=Qe(s(0),2),p=f[0],d=f[1],h=Qe(s(!1),2),m=h[0],y=h[1],g=Ue(global,["innerWidth"],0),_=[];r||(_=Ue(i,["story-elements"],[]).map((function(e){return"//".concat(c,"/").concat(e["image-s3-key"],"?w=").concat(g)})));var w=r?"onClick":"onClickHandler",b=_.length,E=r?{mainSrc:"//".concat(c,"/").concat(r,"?w=").concat(g)}:{mainSrc:_[p],nextSrc:_[(p+1)%b],prevSrc:_[(p+b-1)%b],onMoveNextRequest:function(){return function(e){d((p+1)%e)}(b)},onMovePrevRequest:function(){return function(e){d((p+e-1)%e)}(b)}},O=function(){return l.createElement("div",null,l.createElement(et,null))};return l.createElement("div",null,l.createElement(n,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?tt(Object(r),!0).forEach((function(t){Ke(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):tt(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}(Ke({},w,(function(e){y(!0),d(e)})),a)),m?l.createElement(u,{fallback:l.createElement(O,null)},l.createElement(rt,Je({wrapperClassName:"arr--image-lightbox",onCloseRequest:function(){d(0),y(!1)}},E))):null)};function ot(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}nt.propTypes={imageSlug:r.string,template:r.func,element:r.shape({"story-elements":r.array}),props:r.object};var it=["element","render"],at=function(e){return function(t){var r=t.element,n=t.render,o=ot(t,it);return r?n&&"function"==typeof n?n(t):l.createElement(e,Je({},o,{element:r})):null}};at.propTypes={StoryElement:r.element};var ct=w((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={attributeNames:{styleName:"className"},generateScopedName:"[path]___[name]__[local]___[hash:base64:5]",handleMissingStyleName:"throw"};t.default=r})),lt=_(w((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,n=(r=ct)&&r.__esModule?r:{default:r};var o=function(e,t){if("throw"===t)throw new Error(e);return"warn"===t&&console.warn(e),null};t.default=function(e,t,r){var i=Object.keys(t),a=r||{},c=a.handleMissingStyleName,l=void 0===c?n.default.handleMissingStyleName:c,s=a.autoResolveMultipleImports,u=void 0===s?n.default.autoResolveMultipleImports:s;return e?e.split(" ").filter((function(e){return e})).map((function(e){if(function(e){return-1!==e.indexOf(".")}(e))return function(e,t,r){var i=e.split("."),a=i[0],c=i[1],l=r||n.default.handleMissingStyleName;return c?t[a]?t[a][c]?t[a][c]:o("CSS module does not exist: "+c,l):o("CSS module import does not exist: "+a,l):o("Invalid style name: "+e,l)}(e,t,l);if(0===i.length)throw new Error("Cannot use styleName attribute for style name '"+e+"' without importing at least one stylesheet.");if(i.length>1){if(!u)throw new Error("Cannot use anonymous style name '"+e+"' with more than one stylesheet import without setting 'autoResolveMultipleImports' to true.");return function(e,t,r){var i=r||n.default.handleMissingStyleName,a=Object.keys(t).map((function(r){return t[r][e]&&r})).filter((function(e){return e}));if(a.length>1)throw new Error('Cannot resolve styleName "'+e+'" because it is present in multiple imports:\n\n\t'+a.join("\n\t")+'\n\nYou can resolve this by using a named import, e.g:\n\n\timport foo from "'+a[0]+'";\n\t<div styleName="foo.'+e+'" />\n\n');return 0===a.length?o("Could not resolve the styleName '"+e+"'.",i):t[a[0]][e]}(e,t,l)}var r=t[i[0]];return r[e]?r[e]:o("Could not resolve the styleName '"+e+"'.",l)})).filter((function(e){return e})).join(" "):""}}))),st=function(e){var t=e.color,r=void 0===t?"#333":t;return l.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 10 16"},l.createElement("g",{fill:"none",fillRule:"nonzero"},l.createElement("path",{d:"M17 20H-7V-4h24z",opacity:".384"}),l.createElement("path",{stroke:r,d:"M9 16L1 8l8-8"})))};st.propTypes={color:r.string};var ut=function(e){var t=e.color,r=void 0===t?"#333":t;return l.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 10 16"},l.createElement("g",{fill:"none",fillRule:"nonzero"},l.createElement("path",{d:"M-7-4h24v24H-7z",opacity:".384"}),l.createElement("path",{stroke:r,d:"M1 0l8 8-8 8"})))};ut.propTypes={color:r.string};var ft=d(),pt=function(){return p(ft)},dt={"./slider-arrow.m.css":{arrow:"slider-arrow-m_arrow__1eBUU","left-arrow-dark":"slider-arrow-m_left-arrow-dark__3mTJS","right-arrow-dark":"slider-arrow-m_right-arrow-dark__3hWZe","left-arrow-light":"slider-arrow-m_left-arrow-light__2ipUK","right-arrow-light":"slider-arrow-m_right-arrow-light__3omMU","left-arrow-ltr":"slider-arrow-m_left-arrow-ltr__1ngNF","right-arrow-ltr":"slider-arrow-m_right-arrow-ltr__2svWX","left-arrow-rtl":"slider-arrow-m_left-arrow-rtl__2ynyn","right-arrow-rtl":"slider-arrow-m_right-arrow-rtl__1GjPz"}},ht=function(e){var t=e.selectedIndex,r=e.previousClick,n=e.nextClick,o=e.noOfItems,i=e.perView,a=e.languageDirection;if(o<1)return null;var c=pt()||{},s=Xe(c.theme),u="rtl"===a?"left-arrow-rtl":"left-arrow-ltr",f="rtl"===a?"right-arrow-rtl":"right-arrow-ltr";return l.createElement(l.Fragment,null,0!==t?l.createElement("button",{onClick:r,className:("left-arrow ".concat(u)?"left-arrow ".concat(u)+" ":"")+lt("arrow left-arrow-".concat(s," ").concat(u),dt)},l.createElement(st,{color:"dark"===s?"#fff":"#333"})):null,t<o-1&&!(t>=o-i)?l.createElement("button",{onClick:n,className:("right-arrow ".concat(f)?"right-arrow ".concat(f)+" ":"")+lt("arrow right-arrow-".concat(s," ").concat(f),dt)},l.createElement(ut,{color:"dark"===s?"#fff":"#333"})):null)};ht.propTypes={noOfItems:n,perView:n,slideIndicator:o,previousClick:i,nextClick:i,selectedIndex:n,languageDirection:o};var mt={"./slider-indicator.m.css":{indicators:"slider-indicator-m_indicators__3MNXc",indicator:"slider-indicator-m_indicator__gTv3x","indicator-button":"slider-indicator-m_indicator-button__1e82r","indicator-dots":"slider-indicator-m_indicator-dots__2TR3H","indicator-dots-dark":"slider-indicator-m_indicator-dots-dark__sGrev","indicator-dots-light":"slider-indicator-m_indicator-dots-light__2nPn-","indicator-dashes":"slider-indicator-m_indicator-dashes__DyNCE","indicator-dashes-dark":"slider-indicator-m_indicator-dashes-dark__VrqJI","indicator-dashes-light":"slider-indicator-m_indicator-dashes-light__34ESx"}},vt=function(e){var t=e.indicatorItems,r=e.indicatorClick,n=e.selectedIndex,o=e.indicatorType;if(t.length<1)return null;var i=pt()||{},a=Xe(i.theme);return l.createElement("ul",{className:"slider-indicators slider-indicator-m_indicators__3MNXc"},t.map((function(e,t){return l.createElement("li",{key:"slider-".concat(t),className:"indicator slider-indicator-m_indicator__gTv3x",onClick:function(e){return r(e,t)}},l.createElement("button",{"aria-pressed":n===t?"true":"false",className:("indicator-button indicator-".concat(o)?"indicator-button indicator-".concat(o)+" ":"")+lt("indicator-button indicator-".concat(o," indicator-").concat(o,"-").concat(a),mt)}))})))};vt.propTypes={indicatorItems:a,perView:n,indicatorType:o,indicatorClick:i,selectedIndex:n};var yt=function(e,t,r,n){var o,i,a,c,l=Math.floor(r.current.scrollWidth*(e/n)),s="rtl"===t?-1*l:l;o=r.current,i=s,a=!0,o.scrollTo((Ke(c={},a?"left":"top",i),Ke(c,"behavior","smooth"),c))},gt=function(e){var t=e.children,r=e.isArrow,n=e.interval,o=e.isInfinite,i=e.pauseOnHover,a=e.perView,c=e.slideIndicator,u=Qe(s(0),2),f=u[0],p=u[1],d=Qe(s(!1),2),y=d[0],g=d[1],_=v((function(e){return Ue(e,["qt","config","language","direction"],"ltr")})),w=t?t.length:0,b=h(null),E=t.length-(a-1),O=t.slice(0,E);m((function(){if(o&&!y){var e=setInterval((function(){x()}),n);return function(){clearInterval(e)}}}),[o,y]);var x=function(){p((function(e){var t=e===w-a?0:e+1;return yt(t,_,b,w),t}))},j=function(){i&&g(!y)};return l.createElement("div",{className:"scroll-snap-container"},l.createElement("div",{className:"scroll-snap-wrapper scroll-snap-m_wrapper__1Rz9v",onMouseEnter:j,onMouseLeave:j},l.createElement("div",{ref:b,className:"scroll-snap-carousel scroll-snap-m_carousel__2m3cg"},t),r&&l.createElement(ht,{noOfItems:w,perView:a,previousClick:function(e){e.preventDefault(),e.stopPropagation();var t=f-1;p(t),yt(t,_,b,w)},nextClick:function(e){if(e.preventDefault(),e.stopPropagation(),f<w){var t=f+1;p(t),yt(t,_,b,w)}},selectedIndex:f,languageDirection:_})),t.length>a&&"none"!==c&&l.createElement(vt,{indicatorItems:O,indicatorClick:function(e,t){e.preventDefault(),e.stopPropagation(),p(t),yt(t,_,b,w)},selectedIndex:f,indicatorType:c}))};gt.defaultProps={isArrow:!0,isInfinite:!1,interval:4e3,pauseOnHover:!0,perView:1,slideIndicator:"dots"},gt.propTypes={children:a.isRequired,isArrow:c,isInfinite:c,interval:n,pauseOnHover:c,perView:n,slideIndicator:o};var _t=function(n){if(!n.element)return null;var o=function(r){var o=r.onClickHandler,i=Ue(n,["element","story-elements"],[]);return l.createElement("div",{className:"arr--image-slideshow-element image-slideshow-m_slideshow__3jRFX","data-test-id":"image-slideshow"},l.createElement(gt,{slideIndicator:"none"},i.map((function(r,n){return function(r,n,o){var i=r.id,a=r["image-s3-key"],c=r.metadata,s=r.title;return l.createElement("div",{onClick:function(){return o(n)},className:"image-slideshow-m_slide__3URCC",key:i},l.createElement("figure",{key:i,className:"image-slideshow-m_image-container__2VTEK"},l.createElement(e,{margin:"0px"},l.createElement(t,{slug:a,metadata:c,"aspect-ratio":[16,9],defaultWidth:480,widths:[250,480,640],imgParams:{auto:["format","compress"]},className:"image-slideshow-m_image__1p1fO",alt:s}))),l.createElement("p",{className:"image-slideshow-m_caption__mWpmc"},s))}(r,n,o)}))))};return o.propTypes={onClickHandler:r.func},l.createElement(nt,{template:o,element:n.element})};_t.propTypes={element:r.shape({"story-elements":r.array}),story:Ye};var wt=at(_t);export{wt as ImageSlideshow};
@@ -0,0 +1 @@
1
+ import t,{createContext as e,useState as r}from"react";import n from"prop-types";import o from"react-timeago";import{LinkBase as a}from"@quintype/components";import{useSelector as i}from"react-redux";function u(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function c(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,a=[],i=!0,u=!1;try{for(r=r.call(t);!(i=(n=r.next()).done)&&(a.push(n.value),!e||a.length!==e);i=!0);}catch(t){u=!0,o=t}finally{try{i||null==r.return||r.return()}finally{if(u)throw o}}return a}}(t,e)||function(t,e){if(t){if("string"==typeof t)return u(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?u(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var l="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 f(t){var e={exports:{}};return t(e,e.exports),e.exports}var d=f((function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r={attributeNames:{styleName:"className"},generateScopedName:"[path]___[name]__[local]___[hash:base64:5]",handleMissingStyleName:"throw"};e.default=r})),h=s(f((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,l=i.autoResolveMultipleImports,s=void 0===l?n.default.autoResolveMultipleImports:l;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(!s)throw new Error("Cannot use anonymous style name '"+t+"' with more than one stylesheet import without setting 'autoResolveMultipleImports' to true.");return function(t,e,r){var 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=Array.isArray,p="object"==typeof l&&l&&l.Object===Object&&l,y="object"==typeof self&&self&&self.Object===Object&&self,m=p||y||Function("return this")(),g=m.Symbol,b=Object.prototype,_=b.hasOwnProperty,w=b.toString,x=g?g.toStringTag:void 0;var j=function(t){var e=_.call(t,x),r=t[x];try{t[x]=void 0;var n=!0}catch(t){}var o=w.call(t);return n&&(e?t[x]=r:delete t[x]),o},E=Object.prototype.toString;var O=function(t){return E.call(t)},S=g?g.toStringTag:void 0;var L=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":S&&S in Object(t)?j(t):O(t)};var A=function(t){return null!=t&&"object"==typeof t};var k=function(t){return"symbol"==typeof t||A(t)&&"[object Symbol]"==L(t)},N=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,z=/^\w*$/;var C=function(t,e){if(v(t))return!1;var r=typeof t;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=t&&!k(t))||(z.test(t)||!N.test(t)||null!=e&&t in Object(e))};var T=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)};var I,M=function(t){if(!T(t))return!1;var e=L(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e},P=m["__core-js_shared__"],R=(I=/[^.]+$/.exec(P&&P.keys&&P.keys.IE_PROTO||""))?"Symbol(src)_1."+I:"";var F=function(t){return!!R&&R in t},U=Function.prototype.toString;var D=function(t){if(null!=t){try{return U.call(t)}catch(t){}try{return t+""}catch(t){}}return""},G=/^\[object .+?Constructor\]$/,$=Function.prototype,Z=Object.prototype,q=$.toString,Y=Z.hasOwnProperty,J=RegExp("^"+q.call(Y).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var B=function(t){return!(!T(t)||F(t))&&(M(t)?J:G).test(D(t))};var H=function(t,e){return null==t?void 0:t[e]};var V=function(t,e){var r=H(t,e);return B(r)?r:void 0},K=V(Object,"create");var Q=function(){this.__data__=K?K(null):{},this.size=0};var W=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},X=Object.prototype.hasOwnProperty;var tt=function(t){var e=this.__data__;if(K){var r=e[t];return"__lodash_hash_undefined__"===r?void 0:r}return X.call(e,t)?e[t]:void 0},et=Object.prototype.hasOwnProperty;var rt=function(t){var e=this.__data__;return K?void 0!==e[t]:et.call(e,t)};var nt=function(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=K&&void 0===e?"__lodash_hash_undefined__":e,this};function ot(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}ot.prototype.clear=Q,ot.prototype.delete=W,ot.prototype.get=tt,ot.prototype.has=rt,ot.prototype.set=nt;var at=ot;var it=function(){this.__data__=[],this.size=0};var ut=function(t,e){return t===e||t!=t&&e!=e};var ct=function(t,e){for(var r=t.length;r--;)if(ut(t[r][0],e))return r;return-1},lt=Array.prototype.splice;var st=function(t){var e=this.__data__,r=ct(e,t);return!(r<0)&&(r==e.length-1?e.pop():lt.call(e,r,1),--this.size,!0)};var ft=function(t){var e=this.__data__,r=ct(e,t);return r<0?void 0:e[r][1]};var dt=function(t){return ct(this.__data__,t)>-1};var ht=function(t,e){var r=this.__data__,n=ct(r,t);return n<0?(++this.size,r.push([t,e])):r[n][1]=e,this};function vt(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])}}vt.prototype.clear=it,vt.prototype.delete=st,vt.prototype.get=ft,vt.prototype.has=dt,vt.prototype.set=ht;var pt=vt,yt=V(m,"Map");var mt=function(){this.size=0,this.__data__={hash:new at,map:new(yt||pt),string:new at}};var gt=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t};var bt=function(t,e){var r=t.__data__;return gt(e)?r["string"==typeof e?"string":"hash"]:r.map};var _t=function(t){var e=bt(this,t).delete(t);return this.size-=e?1:0,e};var wt=function(t){return bt(this,t).get(t)};var xt=function(t){return bt(this,t).has(t)};var jt=function(t,e){var r=bt(this,t),n=r.size;return r.set(t,e),this.size+=r.size==n?0:1,this};function Et(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])}}Et.prototype.clear=mt,Et.prototype.delete=_t,Et.prototype.get=wt,Et.prototype.has=xt,Et.prototype.set=jt;var Ot=Et;function St(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var r=function(){var n=arguments,o=e?e.apply(this,n):n[0],a=r.cache;if(a.has(o))return a.get(o);var i=t.apply(this,n);return r.cache=a.set(o,i)||a,i};return r.cache=new(St.Cache||Ot),r}St.Cache=Ot;var Lt=St;var At=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,kt=/\\(\\)?/g,Nt=function(t){var e=Lt(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(At,(function(t,r,n,o){e.push(n?o.replace(kt,"$1"):r||t)})),e}));var zt=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},Ct=g?g.prototype:void 0,Tt=Ct?Ct.toString:void 0;var It=function t(e){if("string"==typeof e)return e;if(v(e))return zt(e,t)+"";if(k(e))return Tt?Tt.call(e):"";var r=e+"";return"0"==r&&1/e==-Infinity?"-0":r};var Mt=function(t){return null==t?"":It(t)};var Pt=function(t,e){return v(t)?t:C(t,e)?[t]:Nt(Mt(t))};var Rt=function(t){if("string"==typeof t||k(t))return t;var e=t+"";return"0"==e&&1/t==-Infinity?"-0":e};var Ft=function(t,e){for(var r=0,n=(e=Pt(e,t)).length;null!=t&&r<n;)t=t[Rt(e[r++])];return r&&r==n?t:void 0};var Ut=function(t,e,r){var n=null==t?void 0:Ft(t,e);return void 0===n?r:n},Dt=function(e){var r=e.color,n=void 0===r?"#333":r;return t.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},t.createElement("path",{fill:n,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"}))};Dt.propTypes={color:n.string},f((function(t){var e=function(t){var e,r=Object.prototype,n=r.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",i=o.asyncIterator||"@@asyncIterator",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 l(t,e,r,n){var o=e&&e.prototype instanceof y?e:y,a=Object.create(o.prototype),i=new A(n||[]);return a._invoke=function(t,e,r){var n=f;return function(o,a){if(n===h)throw new Error("Generator is already running");if(n===v){if("throw"===o)throw a;return N()}for(r.method=o,r.arg=a;;){var i=r.delegate;if(i){var u=O(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===f)throw n=v,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n=h;var c=s(t,e,r);if("normal"===c.type){if(n=r.done?v:d,c.arg===p)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 s(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=l;var f="suspendedStart",d="suspendedYield",h="executing",v="completed",p={};function y(){}function m(){}function g(){}var b={};c(b,a,(function(){return this}));var _=Object.getPrototypeOf,w=_&&_(_(k([])));w&&w!==r&&n.call(w,a)&&(b=w);var x=g.prototype=y.prototype=Object.create(b);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=s(t[o],t,a);if("throw"!==c.type){var l=c.arg,f=l.value;return f&&"object"==typeof f&&n.call(f,"__await")?e.resolve(f.__await).then((function(t){r("next",t,i,u)}),(function(t){r("throw",t,i,u)})):e.resolve(f).then((function(t){l.value=t,i(l)}),(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 p;r.method="throw",r.arg=new TypeError("The iterator does not provide a 'throw' method")}return p}var o=s(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 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 A(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(S,this),this.reset(!0)}function k(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:N}}function N(){return{value:e,done:!0}}return m.prototype=g,c(x,"constructor",g),c(g,"constructor",m),m.displayName=c(g,u,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===m||"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(l(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=k,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"),l=n.call(i,"finallyLoc");if(c&&l){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(!l)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:k(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 Gt=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 $t=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"}),Zt=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,qt=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]","g");var Yt=function(t){return(t=Mt(t))&&t.replace(Zt,$t).replace(qt,"")},Jt=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;var Bt=function(t){return t.match(Jt)||[]},Ht=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;var Vt=function(t){return Ht.test(t)},Kt="\\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",Qt="["+Kt+"]",Wt="\\d+",Xt="[\\u2700-\\u27bf]",te="[a-z\\xdf-\\xf6\\xf8-\\xff]",ee="[^\\ud800-\\udfff"+Kt+Wt+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",re="(?:\\ud83c[\\udde6-\\uddff]){2}",ne="[\\ud800-\\udbff][\\udc00-\\udfff]",oe="[A-Z\\xc0-\\xd6\\xd8-\\xde]",ae="(?:"+te+"|"+ee+")",ie="(?:"+oe+"|"+ee+")",ue="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?",ce="[\\ufe0e\\ufe0f]?"+ue+("(?:\\u200d(?:"+["[^\\ud800-\\udfff]",re,ne].join("|")+")[\\ufe0e\\ufe0f]?"+ue+")*"),le="(?:"+[Xt,re,ne].join("|")+")"+ce,se=RegExp([oe+"?"+te+"+(?:['’](?:d|ll|m|re|s|t|ve))?(?="+[Qt,oe,"$"].join("|")+")",ie+"+(?:['’](?:D|LL|M|RE|S|T|VE))?(?="+[Qt,oe+ae,"$"].join("|")+")",oe+"?"+ae+"+(?:['’](?:d|ll|m|re|s|t|ve))?",oe+"+(?:['’](?: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_])",Wt,le].join("|"),"g");var fe=function(t){return t.match(se)||[]};var de=function(t,e,r){return t=Mt(t),void 0===(e=r?void 0:e)?Vt(t)?fe(t):Bt(t):t.match(e)||[]},he=RegExp("['’]","g");var ve=function(t){return function(e){return Gt(de(Yt(e).replace(he,"")),t,"")}},pe=ve((function(t,e,r){return t+(r?" ":"")+e.toUpperCase()})),ye=ve((function(t,e,r){return t+(r?" ":"")+e.toLowerCase()})),me=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,l=o.isUpperCase,s=void 0!==l&&l,f=o.disableMeridiem,d=void 0!==f&&f,h=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],v=new Date(n),p=v.getDate().toString().padStart(2,0),y=h[v.getMonth()],m=y;s&&(m=pe(y));var g,b=v.getFullYear(),_=o.localizedMeridiem,w=o.localizedMonths,x=o.direction,j=void 0===x?"ltr":x,E=ge(n),O=E;if(w&&(m=Ut(w,[ye(y)])||y),_){var S=E.includes("am"),L=_.am,A=void 0===L?"am":L,k=_.pm,N=void 0===k?"pm":k;O=(S?E.replace("am",A):E.replace("pm",N))||E}return"rtl"===j?(g=i?"".concat(O):"","".concat(p," ").concat(m,", ").concat(b," ").concat(g," ")):d?"".concat(m," ").concat(p,", ").concat(b):c?"".concat(O,", ").concat(p," ").concat(m," ").concat(b):(g=i?", ".concat(O):"","".concat(p," ").concat(m,", ").concat(b).concat(g))};function ge(t){var e=new Date(t),r=e.getHours(),n=e.getMinutes(),o=r>=12?"pm":"am";return(r=(r%=12)||12)+":"+(n=n<10?"0"+n:n)+" "+o}var be=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},_e=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},we=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:_e(t),n=be(r)<155?"light":"dark";return n},xe=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=e.magazineSlug,n=void 0===r?"":r,o=e.isArchivePage,a=void 0!==o&&o;if(a)return"/magazine/archive/".concat(n);if(n)return"/magazine/".concat(n,"/").concat(t.slug);var i="section"===t.template;if(i){var u=Ut(t,["metadata","section","0","id"],""),c=e.sections,l=c&&c.find((function(t){return t.id===u}));return l?l["section-url"]:"/"}return"/collection/".concat(t.slug)};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});function je(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var Ee={"./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 Oe(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Se(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Oe(Object(r),!0).forEach((function(e){je(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Oe(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var Le=function(e){var r=e.config,n=void 0===r?{}:r,o=e.collection,i=e.template,u=void 0===i?"SubsequentLoadCount":i,c=e.onClick,l=e.navigate,s=e.qtConfig,f=n.showButton,d=void 0===f||f,v=n.buttonText,p=void 0===v?"Read More":v,y=n.theme,m=void 0===y?"":y,g=n.customUrlPath,b=void 0===g?"":g;if(!d)return null;var _=we(m),w=b?"/".concat(b):function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2?arguments[2]:void 0;if(r)return r;var n=e.magazineSlug,o=void 0===n?"":n,a=e.isArchivePage;return void 0!==a&&a?"/magazine/archive/".concat(o):o?"/magazine/".concat(o,"/").concat(t.slug):t?xe(t,e):"/"}(o,Se(Se({},s),n));return"SubsequentLoadCount"===u?t.createElement("div",{onClick:c,"data-test-id":"load-more",className:"arr--button "+h("button ".concat(_," default"),Ee)},p):t.createElement(a,{href:w,navigateTo:l,"data-test-id":"load-more","aria-label":"load-more"},t.createElement("div",{className:"arr--button "+h("button ".concat(_," default"),Ee)},p))};Le.propTypes={collection:n.object,template:n.string,config:n.object,onClick:n.func,navigate:n.func,qtConfig:n.object};var Ae=e(),ke={"./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_"}},Ne=function(e){var r=e.config,n=e.index,a=e.cardLength,i=e.card,u=void 0===i?{}:i,c=e.slug,l=e.loadCards,s=e.showLoadMore,f=u["card-added-at"],d=u["story-elements"],v=void 0===d?[]:d,p=u.id,y=r.theme,m=r.mountAt,g=void 0===m?"":m,b=we(y),_="dark"===b?"#333":"#fff",w=n===a-1,x=w?"borderNone":"";return t.createElement(t.Fragment,null,t.createElement("div",{className:h("time-wrapper ".concat(b),ke)},t.createElement(Dt,{color:_}),function(e,r){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return t.createElement(o,{date:e,formatter:function(t,e,o,a){return r(t,e,o,a,n)}})}(f,me,{showTime:!0,isTimeFirst:!0})),t.createElement("a",{href:"".concat(g,"/").concat(c,"#").concat(p),"aria-label":"event-title"},t.createElement("div",{className:h("event-title ".concat(b," ").concat(x),ke)},v.map((function(e,r){return"title"===e.type&&t.createElement("h3",{key:r},e.text)})),s&&w&&l&&t.createElement("div",{className:"key-events-m_fade-out__11jv_",style:{backgroundImage:"linear-gradient(to bottom, transparent, ".concat(y,")")}}))))};Ne.propTypes={card:n.shape({"card-added-at":n.number,"story-elements":n.array,id:n.string}),config:n.object,slug:n.string,story:n.object,elements:n.array,index:n.number,cardLength:n.number,loadCards:n.bool,showLoadMore:n.bool};var ze=function(e){var n=e.story,o=void 0===n?{}:n,a=e.config,u=void 0===a?{}:a,l=e.showLoadMore,s=void 0===l||l,f=Ut(o,["cards"],[]),d=u.theme,v=u.initialLoadCount,p=void 0===v?4:v,y=we(d),m=c(r(p),2),g=m[0],b=m[1],_=f.filter((function(t){return Ut(t.metadata,["attributes","key-event"])})),w=_.length>g,x=i((function(t){return Ut(t,["qt","config"],{})}));if(_.length<1)return null;var j=(s?_.slice(0,g):_.slice(0,4)).map((function(e,r,n){return t.createElement(Ne,{cardLength:n.length,card:e,key:e.id,slug:o.slug,config:u,index:r,loadCards:w,showLoadMore:s})}));return t.createElement("div",{style:{background:d},className:"arrow-component "+h("container ".concat(y),ke)},t.createElement("h3",null,"Key Events"),t.createElement("div",{className:"key-events-m_cards-wrapper__3f8aB"},j),s&&w&&t.createElement(Le,{onClick:function(){b(g+p)},template:"SubsequentLoadCount",config:u,qtConfig:x}))};ze.propTypes={story:n.object,config:n.object,showLoadMore:n.bool};var Ce,Te=(Ce=ze,function(e){return t.createElement(Ae.Provider,{value:e.config},t.createElement(Ce,e))});export{Te as default};