@quintype/arrow 3.13.1-subsequentload.0 → 3.13.1-subsequentloadcount.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (80) hide show
  1. package/AlternateCollectionFilter/styles.arrow.css +1 -0
  2. package/AstrologyCollection/styles.arrow.css +1 -0
  3. package/AuthorsList/styles.arrow.css +1 -0
  4. package/FourColFiveStories/styles.arrow.css +1 -0
  5. package/FourColPortraitStories/styles.arrow.css +1 -0
  6. package/FourColSixteenStories/styles.arrow.css +1 -0
  7. package/FourTabbedBigStorySlider/styles.arrow.css +1 -0
  8. package/ListComponent/styles.arrow.css +1 -0
  9. package/ListicleStoryTemplate/styles.arrow.css +1 -0
  10. package/Listicles/styles.arrow.css +1 -0
  11. package/LiveBlogStoryTemplate/styles.arrow.css +1 -0
  12. package/MagazineEditions/styles.arrow.css +1 -0
  13. package/MagazineHeaderCard/styles.arrow.css +1 -0
  14. package/MagazineWidget/styles.arrow.css +1 -0
  15. package/OpinionCollection/styles.arrow.css +1 -0
  16. package/PhotoStoryTemplate/styles.arrow.css +1 -0
  17. package/README.md +194 -0
  18. package/SixColSixStories/styles.arrow.css +1 -0
  19. package/TextStoryTemplate/styles.arrow.css +1 -0
  20. package/ThreeColFlexStories/styles.arrow.css +1 -0
  21. package/ThreeColTwelveStories/styles.arrow.css +1 -0
  22. package/TwoColFourStoryHighlight/styles.arrow.css +1 -0
  23. package/TwoColSixStories/styles.arrow.css +1 -0
  24. package/TwoColTenStoriesSidebar/styles.arrow.css +1 -0
  25. package/app.scss +276 -0
  26. package/cjs/index.js +9 -0
  27. package/esm/index.js +9 -0
  28. package/package.json +1 -1
  29. package/AlsoRead/index.js +0 -1
  30. package/AsideCollection/index.js +0 -1
  31. package/Attachment/index.js +0 -1
  32. package/Author/index.js +0 -1
  33. package/AuthorIntroductionCard/index.js +0 -1
  34. package/AuthorWithTime/index.js +0 -1
  35. package/BigFact/index.js +0 -1
  36. package/BlockQuote/index.js +0 -1
  37. package/Blurb/index.js +0 -1
  38. package/CollectionFilter/index.js +0 -1
  39. package/CollectionName/index.js +0 -1
  40. package/ElevenStories/index.js +0 -1
  41. package/FourColGrid/index.js +0 -1
  42. package/FourColTwelveStories/index.js +0 -1
  43. package/FourStorySlider/index.js +0 -1
  44. package/FourStorySliderPortrait/index.js +0 -1
  45. package/FullScreenSlider/index.js +0 -1
  46. package/HalfScreenSlider/index.js +0 -1
  47. package/Headline/index.js +0 -1
  48. package/HeroImage/index.js +0 -1
  49. package/Image/index.js +0 -1
  50. package/ImageGallery/index.js +0 -1
  51. package/ImageSlideshow/index.js +0 -1
  52. package/KeyEvents/index.js +0 -1
  53. package/LoadmoreButton/index.js +0 -1
  54. package/OneColStoryList/index.js +0 -1
  55. package/PageIntroductionCard/index.js +0 -1
  56. package/QuestionAnswer/index.js +0 -1
  57. package/Quote/index.js +0 -1
  58. package/Reference/index.js +0 -1
  59. package/ScrollSnap/index.js +0 -1
  60. package/SectionTag/index.js +0 -1
  61. package/SocialShareTemplate/index.js +0 -1
  62. package/StoryCard/index.js +0 -1
  63. package/StoryCollection/index.js +0 -1
  64. package/StoryElement/index.js +0 -1
  65. package/StoryElementCard/index.js +0 -1
  66. package/StorycardContent/index.js +0 -1
  67. package/Subheadline/index.js +0 -1
  68. package/Summary/index.js +0 -1
  69. package/TagIntroductionCard/index.js +0 -1
  70. package/Text/index.js +0 -1
  71. package/ThreeColFourteenStories/index.js +0 -1
  72. package/ThreeColGrid/index.js +0 -1
  73. package/ThreeColSevenStory/index.js +0 -1
  74. package/ThreeColSixStories/index.js +0 -1
  75. package/TimeStamp/index.js +0 -1
  76. package/TwoColFourStories/index.js +0 -1
  77. package/TwoColSevenStories/index.js +0 -1
  78. package/TwoColThreeStories/index.js +0 -1
  79. package/Video/index.js +0 -1
  80. package/VideoStoryTemplate/index.js +0 -1
@@ -1 +0,0 @@
1
- import t,{useContext as e,createContext as r}from"react";import n from"lodash.get";import o from"prop-types";import"react-timeago";import"date-fns-tz";function i(){return i=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},i.apply(this,arguments)}function a(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 c="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function u(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function 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})),h=u(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||{},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(" "):""}})));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",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=h;return function(o,i){if(n===p)throw new Error("Generator is already running");if(n===d){if("throw"===o)throw i;return L()}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===h)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:f,u.arg===v)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(n=d,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 h="suspendedStart",f="suspendedYield",p="executing",d="completed",v={};function y(){}function m(){}function g(){}var _={};u(_,i,(function(){return this}));var b=Object.getPrototypeOf,w=b&&b(b(S([])));w&&w!==r&&n.call(w,i)&&(_=w);var k=g.prototype=y.prototype=Object.create(_);function E(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function j(t,e){function r(o,i,a,c){var u=s(t[o],t,i);if("throw"!==u.type){var l=u.arg,h=l.value;return h&&"object"==typeof h&&n.call(h,"__await")?e.resolve(h.__await).then((function(t){r("next",t,a,c)}),(function(t){r("throw",t,a,c)})):e.resolve(h).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 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 q(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function N(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(O,this),this.reset(!0)}function S(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:L}}function L(){return{value:e,done:!0}}return m.prototype=g,u(k,"constructor",g),u(g,"constructor",m),m.displayName=u(g,c,"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,u(t,c,"GeneratorFunction")),t.prototype=Object.create(k),t},t.awrap=function(t){return{__await:t}},E(j.prototype),u(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(l(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},E(k),u(k,c,"Generator"),u(k,i,(function(){return this})),u(k,"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=S,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(q),!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),q(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;q(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:S(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 f=Array.isArray,p="object"==typeof c&&c&&c.Object===Object&&c,d="object"==typeof self&&self&&self.Object===Object&&self,v=p||d||Function("return this")(),y=v.Symbol,m=Object.prototype,g=m.hasOwnProperty,_=m.toString,b=y?y.toStringTag:void 0;var w=function(t){var e=g.call(t,b),r=t[b];try{t[b]=void 0;var n=!0}catch(t){}var o=_.call(t);return n&&(e?t[b]=r:delete t[b]),o},k=Object.prototype.toString;var E=function(t){return k.call(t)},j=y?y.toStringTag:void 0;var x=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":j&&j in Object(t)?w(t):E(t)};var O=function(t){return null!=t&&"object"==typeof t};var q=function(t){return"symbol"==typeof t||O(t)&&"[object Symbol]"==x(t)},N=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,S=/^\w*$/;var L=function(t,e){if(f(t))return!1;var r=typeof t;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=t&&!q(t))||(S.test(t)||!N.test(t)||null!=e&&t in Object(e))};var I=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)};var P,T=function(t){if(!I(t))return!1;var e=x(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e},C=v["__core-js_shared__"],M=(P=/[^.]+$/.exec(C&&C.keys&&C.keys.IE_PROTO||""))?"Symbol(src)_1."+P:"";var z=function(t){return!!M&&M in t},F=Function.prototype.toString;var G=function(t){if(null!=t){try{return F.call(t)}catch(t){}try{return t+""}catch(t){}}return""},A=/^\[object .+?Constructor\]$/,B=Function.prototype,R=Object.prototype,$=B.toString,V=R.hasOwnProperty,H=RegExp("^"+$.call(V).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var Q=function(t){return!(!I(t)||z(t))&&(T(t)?H:A).test(G(t))};var Z=function(t,e){return null==t?void 0:t[e]};var Y=function(t,e){var r=Z(t,e);return Q(r)?r:void 0},K=Y(Object,"create");var U=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 D=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},J=Object.prototype.hasOwnProperty;var tt=function(t){var e=this.__data__;return K?void 0!==e[t]:J.call(e,t)};var et=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 rt(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])}}rt.prototype.clear=U,rt.prototype.delete=W,rt.prototype.get=D,rt.prototype.has=tt,rt.prototype.set=et;var nt=rt;var ot=function(){this.__data__=[],this.size=0};var it=function(t,e){return t===e||t!=t&&e!=e};var at=function(t,e){for(var r=t.length;r--;)if(it(t[r][0],e))return r;return-1},ct=Array.prototype.splice;var ut=function(t){var e=this.__data__,r=at(e,t);return!(r<0)&&(r==e.length-1?e.pop():ct.call(e,r,1),--this.size,!0)};var lt=function(t){var e=this.__data__,r=at(e,t);return r<0?void 0:e[r][1]};var st=function(t){return at(this.__data__,t)>-1};var ht=function(t,e){var r=this.__data__,n=at(r,t);return n<0?(++this.size,r.push([t,e])):r[n][1]=e,this};function ft(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}ft.prototype.clear=ot,ft.prototype.delete=ut,ft.prototype.get=lt,ft.prototype.has=st,ft.prototype.set=ht;var pt=ft,dt=Y(v,"Map");var vt=function(){this.size=0,this.__data__={hash:new nt,map:new(dt||pt),string:new nt}};var yt=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t};var mt=function(t,e){var r=t.__data__;return yt(e)?r["string"==typeof e?"string":"hash"]:r.map};var gt=function(t){var e=mt(this,t).delete(t);return this.size-=e?1:0,e};var _t=function(t){return mt(this,t).get(t)};var bt=function(t){return mt(this,t).has(t)};var wt=function(t,e){var r=mt(this,t),n=r.size;return r.set(t,e),this.size+=r.size==n?0:1,this};function kt(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])}}kt.prototype.clear=vt,kt.prototype.delete=gt,kt.prototype.get=_t,kt.prototype.has=bt,kt.prototype.set=wt;var Et=kt;function jt(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(jt.Cache||Et),r}jt.Cache=Et;var xt=jt;var Ot=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,qt=/\\(\\)?/g,Nt=function(t){var e=xt(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(Ot,(function(t,r,n,o){e.push(n?o.replace(qt,"$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},Lt=y?y.prototype:void 0,It=Lt?Lt.toString:void 0;var Pt=function t(e){if("string"==typeof e)return e;if(f(e))return St(e,t)+"";if(q(e))return It?It.call(e):"";var r=e+"";return"0"==r&&1/e==-Infinity?"-0":r};var Tt=function(t){return null==t?"":Pt(t)};var Ct=function(t,e){return f(t)?t:L(t,e)?[t]:Nt(Tt(t))};var Mt=function(t){if("string"==typeof t||q(t))return t;var e=t+"";return"0"==e&&1/t==-Infinity?"-0":e};var zt=function(t,e){for(var r=0,n=(e=Ct(e,t)).length;null!=t&&r<n;)t=t[Mt(e[r++])];return r&&r==n?t:void 0};var Ft=function(t,e,r){var n=null==t?void 0:zt(t,e);return void 0===n?r:n},Gt=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},Bt={mobile:767,tablet:1024},Rt=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:At(t),n=Gt(r)<155?"light":"dark";return n},$t=o.shape({"sketches-host":o.string,"cdn-name":o.string,"cdn-image":o.string}),Vt=o.shape({headline:o.string,"last-published-at":o.number,subheadline:o.string}),Ht=["element","render"],Qt=function(e){return function(r){var n=r.element,o=r.render,c=a(r,Ht);return n?o&&"function"==typeof o?o(r):t.createElement(e,i({},c,{element:n})):null}};Qt.propTypes={StoryElement:o.element};var Zt=function(e){var r=e.width,n=e.height,o=e.color,i=e.opacity,a="light"===o&&"#ffffff",c="dark"===o&&"#0d0d0d";return t.createElement("div",{className:"icon-m_curve-wrapper__3-sLV",style:{fill:"".concat(a||c||o)}},t.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:r,height:n,viewBox:"0 0 64 64"},t.createElement("path",{fill:"inherit",opacity:i,d:"M61 44.702c0 3.465-1.13 6.214-3.39 8.248-2.261 2.033-5.125 3.05-8.59 3.05-4.07 0-7.423-1.356-10.06-4.067-2.638-2.712-3.956-6.704-3.956-11.976 0-4.971.716-9.227 2.147-12.767 1.432-3.54 3.165-6.553 5.2-9.039 2.034-2.485 4.144-4.481 6.33-5.988 2.184-1.506 4.106-2.56 5.763-3.163l5.652 7.909c-3.316 1.657-5.99 3.879-8.025 6.666-2.035 2.786-3.052 6.289-3.052 10.507.603-.15 1.432-.226 2.487-.226 3.014 0 5.35 1.054 7.007 3.163C60.171 39.13 61 41.69 61 44.702zm-33.004 0c0 3.465-1.13 6.214-3.39 8.248-2.261 2.033-5.125 3.05-8.59 3.05-4.07 0-7.423-1.356-10.06-4.067C3.319 49.22 2 45.229 2 39.957c0-4.971.716-9.227 2.148-12.767 1.431-3.54 3.164-6.553 5.199-9.039 2.034-2.485 4.144-4.481 6.33-5.988C17.86 10.657 19.782 9.603 21.44 9l5.651 7.909c-3.316 1.657-5.99 3.879-8.025 6.666-2.034 2.786-3.052 6.289-3.052 10.507.603-.15 1.432-.226 2.487-.226 3.014 0 5.35 1.054 7.008 3.163 1.657 2.11 2.486 4.67 2.486 7.683z"})))};Zt.propTypes={width:o.string,height:o.string,color:o.string,opacity:o.string};var Yt=function(e){var r=e.width,n=e.height,o=e.color,i=e.opacity,a="light"===o&&"#ffffff",c="dark"===o&&"#0d0d0d";return t.createElement("div",{className:"icon-m_edge-wrapper__xUOdp",style:{fill:"".concat(a||c||o)}},t.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:r,height:n,viewBox:"0 0 64 64"},t.createElement("path",{fill:"inherit",opacity:i,d:"M16.858 29.836v4.727H28V60H4V29.836c0-9.6 2.606-16.727 7.746-21.187C15.3 5.564 19.8 4 25.122 4v13.627c-2.888 0-8.264 0-8.264 12.209zm40.264-12.21V4c-5.32 0-9.82 1.564-13.376 4.65C38.606 13.108 36 20.236 36 29.835V60h24V34.563H48.857v-4.727c0-12.21 5.377-12.21 8.265-12.21z"})))};Yt.propTypes={width:o.string,height:o.string,color:o.string,opacity:o.string};var Kt=r(),Ut=["element","template","css","story","config","render"],Wt={"./block-quote.m.css":{viewports:'"../../../../../assets/stylesheets/viewports.m.css"',mobile:"768px","blockquote-withBackground":"block-quote-m_blockquote-withBackground__1yW-u",icon:"block-quote-m_icon__m-EIZ","icon-border":"block-quote-m_icon-border__2xQQY",blockquote:"block-quote-m_blockquote__HPVh0","blockquote-default":"block-quote-m_blockquote-default__fZ8a1","blockquote-withBorder":"block-quote-m_blockquote-withBorder__1GVQL",border:"block-quote-m_border__1ZTPR",content:"block-quote-m_content__xpMqX",wrapper:"block-quote-m_wrapper__2KEhw",attribution:"block-quote-m_attribution__2m4s2","quote-wrapper":"block-quote-m_quote-wrapper__83bEy",dark:"block-quote-m_dark__HaZuG",light:"block-quote-m_light__1QrNc"}},Xt=function(e,r,n,o){var i,a=!!(i=Ft(Bt,"mobile"))&&Ft(global,"document.documentElement.clientWidth")<=i?"48px":"64px";return"withBackground"===r?"edgeIcon"===e?t.createElement(Yt,{width:a,height:a,color:o,opacity:".4"}):t.createElement(Zt,{width:a,height:a,color:o,opacity:".4"}):"withBackground"!==r?"edgeIcon"===e?t.createElement(Yt,{width:a,height:a,color:n}):t.createElement(Zt,{width:a,height:a,color:n}):void 0},Dt=function(r){var o=r.element,c=r.template,u=r.css,l=void 0===u?{}:u;r.story,r.config,r.render;var s=a(r,Ut),f=n(o,["metadata"]),p=f.content,d=f.attribution;if(!p)return null;var v=l.blockQuoteColor,y=l.backgroundShade,m=l.iconType,g=c?"blockquote-".concat(c):"blockquote",_="withBackground"===c,b=_?Rt(y):"",w=_&&y?{backgroundColor:y}:{},k=e(Kt)||{},E=Rt(_?w.backgroundColor:k.theme);return t.createElement("div",i({"data-test-id":"blockquote",style:w},s,{className:"arrow-component arr--block-quote "+h("".concat(g," ").concat(b),Wt)+" "+(s&&s.className||"")}),t.createElement("div",{className:"block-quote-m_quote-wrapper__83bEy"},"withBorder"===c?t.createElement("div",{className:"block-quote-m_icon-border__2xQQY"},t.createElement("div",{className:"block-quote-m_icon__m-EIZ"},Xt(m,c,v,b)),t.createElement("div",{className:"block-quote-m_border__1ZTPR",style:v&&{backgroundColor:v}})):t.createElement("div",{className:"block-quote-m_icon__m-EIZ"},Xt(m,c,v,b)),t.createElement("div",{className:"block-quote-m_wrapper__2KEhw",style:v&&{borderColor:v}},t.createElement("div",{dangerouslySetInnerHTML:{__html:p},className:h("content ".concat(E),Wt)}),t.createElement("div",{dangerouslySetInnerHTML:{__html:d},className:h("attribution ".concat(E),Wt)}))))};Dt.propTypes={element:o.shape({metadata:o.shape({content:o.string,attribution:o.string})}),template:o.string,story:Vt,config:$t,render:o.func,css:o.object};var Jt=Qt(Dt);export{Jt as BlockQuote,Dt as BlockQuoteBase};
package/Blurb/index.js DELETED
@@ -1 +0,0 @@
1
- import t,{useContext as e,createContext as r,useState as n,useEffect as o}from"react";import i from"prop-types";import"react-timeago";import"date-fns-tz";function a(){return a=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},a.apply(this,arguments)}function 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,i=[],a=!0,u=!1;try{for(r=r.call(t);!(a=(n=r.next()).done)&&(i.push(n.value),!e||i.length!==e);a=!0);}catch(t){u=!0,o=t}finally{try{a||null==r.return||r.return()}finally{if(u)throw o}}return i}}(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.")}()}function l(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 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})),v=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 i=Object.keys(e),a=r||{},u=a.handleMissingStyleName,c=void 0===u?n.default.handleMissingStyleName:u,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],u=i[1],c=r||n.default.handleMissingStyleName;return u?e[a]?e[a][u]?e[a][u]:o("CSS module does not exist: "+u,c):o("CSS module import does not exist: "+a,c):o("Invalid style name: "+t,c)}(t,e,c);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,c)}var r=e[i[0]];return r[t]?r[t]:o("Could not resolve the styleName '"+t+"'.",c)})).filter((function(t){return t})).join(" "):""}}))),d=["element","render"],y=function(e){return function(r){var n=r.element,o=r.render,i=l(r,d);return n?o&&"function"==typeof o?o(r):t.createElement(e,a({},i,{element:n})):null}};y.propTypes={StoryElement:i.element},h((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",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,i=Object.create(o.prototype),a=new N(n||[]);return i._invoke=function(t,e,r){var n=f;return function(o,i){if(n===p)throw new Error("Generator is already running");if(n===v){if("throw"===o)throw i;return I()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var u=E(a,r);if(u){if(u===d)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(n===f)throw n=v,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n=p;var c=s(t,e,r);if("normal"===c.type){if(n=r.done?v:h,c.arg===d)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n=v,r.method="throw",r.arg=c.arg)}}}(t,r,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",h="suspendedYield",p="executing",v="completed",d={};function y(){}function g(){}function m(){}var b={};c(b,i,(function(){return this}));var _=Object.getPrototypeOf,w=_&&_(_(k([])));w&&w!==r&&n.call(w,i)&&(b=w);var j=m.prototype=y.prototype=Object.create(b);function O(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function x(t,e){function r(o,i,a,u){var c=s(t[o],t,i);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,a,u)}),(function(t){r("throw",t,a,u)})):e.resolve(f).then((function(t){l.value=t,a(l)}),(function(t){return r("throw",t,a,u)}))}u(c.arg)}var o;this._invoke=function(t,n){function i(){return new e((function(e,o){r(t,n,e,o)}))}return o=o?o.then(i,i):i()}}function E(t,r){var n=t.iterator[r.method];if(n===e){if(r.delegate=null,"throw"===r.method){if(t.iterator.return&&(r.method="return",r.arg=e,E(t,r),"throw"===r.method))return d;r.method="throw",r.arg=new TypeError("The iterator does not provide a 'throw' method")}return d}var o=s(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 S(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function N(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(S,this),this.reset(!0)}function 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:I}}function I(){return{value:e,done:!0}}return g.prototype=m,c(j,"constructor",m),c(m,"constructor",g),g.displayName=c(m,u,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,m):(t.__proto__=m,c(t,u,"GeneratorFunction")),t.prototype=Object.create(j),t},t.awrap=function(t){return{__await:t}},O(x.prototype),c(x.prototype,a,(function(){return this})),t.AsyncIterator=x,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new x(l(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},O(j),c(j,u,"Generator"),c(j,i,(function(){return this})),c(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=k,N.prototype={constructor:N,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(L),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function o(n,o){return u.type="throw",u.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],u=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=n.call(a,"catchLoc"),l=n.call(a,"finallyLoc");if(c&&l){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(!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,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),L(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;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),d}},t}(t.exports);try{regeneratorRuntime=e}catch(t){"object"==typeof globalThis?globalThis.regeneratorRuntime=e:Function("r","regeneratorRuntime = r")(e)}}));var g="object"==typeof s&&s&&s.Object===Object&&s,m="object"==typeof self&&self&&self.Object===Object&&self,b=g||m||Function("return this")(),_=b.Symbol,w=Object.prototype,j=w.hasOwnProperty,O=w.toString,x=_?_.toStringTag:void 0;var E=function(t){var e=j.call(t,x),r=t[x];try{t[x]=void 0;var n=!0}catch(t){}var o=O.call(t);return n&&(e?t[x]=r:delete t[x]),o},S=Object.prototype.toString;var L=function(t){return S.call(t)},N=_?_.toStringTag:void 0;var k=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":N&&N in Object(t)?E(t):L(t)};var I=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)};var P,T=function(t){if(!I(t))return!1;var e=k(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e},M=b["__core-js_shared__"],z=(P=/[^.]+$/.exec(M&&M.keys&&M.keys.IE_PROTO||""))?"Symbol(src)_1."+P:"";var C=function(t){return!!z&&z in t},F=Function.prototype.toString;var A=function(t){if(null!=t){try{return F.call(t)}catch(t){}try{return t+""}catch(t){}}return""},R=/^\[object .+?Constructor\]$/,$=Function.prototype,G=Object.prototype,B=$.toString,H=G.hasOwnProperty,Y=RegExp("^"+B.call(H).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var U=function(t){return!(!I(t)||C(t))&&(T(t)?Y:R).test(A(t))};var W=function(t,e){return null==t?void 0:t[e]};var J=function(t,e){var r=W(t,e);return U(r)?r:void 0},X=J(Object,"create");var q=function(){this.__data__=X?X(null):{},this.size=0};var D=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(X){var r=e[t];return"__lodash_hash_undefined__"===r?void 0:r}return K.call(e,t)?e[t]:void 0},V=Object.prototype.hasOwnProperty;var Z=function(t){var e=this.__data__;return X?void 0!==e[t]:V.call(e,t)};var tt=function(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=X&&void 0===e?"__lodash_hash_undefined__":e,this};function 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=q,et.prototype.delete=D,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 ut=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 ct=function(t){var e=this.__data__,r=it(e,t);return r<0?void 0:e[r][1]};var lt=function(t){return it(this.__data__,t)>-1};var st=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 ft(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}ft.prototype.clear=nt,ft.prototype.delete=ut,ft.prototype.get=ct,ft.prototype.has=lt,ft.prototype.set=st;var ht=ft,pt=J(b,"Map");var vt=function(){this.size=0,this.__data__={hash:new rt,map:new(pt||ht),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 yt=function(t,e){var r=t.__data__;return dt(e)?r["string"==typeof e?"string":"hash"]:r.map};var gt=function(t){var e=yt(this,t).delete(t);return this.size-=e?1:0,e};var mt=function(t){return yt(this,t).get(t)};var bt=function(t){return yt(this,t).has(t)};var _t=function(t,e){var r=yt(this,t),n=r.size;return r.set(t,e),this.size+=r.size==n?0:1,this};function wt(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}wt.prototype.clear=vt,wt.prototype.delete=gt,wt.prototype.get=mt,wt.prototype.has=bt,wt.prototype.set=_t;var jt=wt;function Ot(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(Ot.Cache||jt),r}Ot.Cache=jt;var xt=Ot;var Et=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,St=/\\(\\)?/g;(function(t){var e=xt(t,(function(t){return 500===r.size&&r.clear(),t})),r=e.cache})((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(Et,(function(t,r,n,o){e.push(n?o.replace(St,"$1"):r||t)})),e}));var Lt=_?_.prototype:void 0;Lt&&Lt.toString;var Nt=function(t){var e=function(t){return{r:parseInt(t.slice(1,3),16),g:parseInt(t.slice(3,5),16),b:parseInt(t.slice(5,7),16)}}(t);return.299*e.r+.587*e.g+.114*e.b},kt=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},It=i.shape({"sketches-host":i.string,"cdn-name":i.string,"cdn-image":i.string}),Pt=i.shape({headline:i.string,"last-published-at":i.number,subheadline:i.string}),Tt=r(),Mt=["element","template","opts","css","story","config","render"],zt={"./blurb.m.css":{viewports:'"../../../../../assets/stylesheets/viewports.m.css"',mobile:"768px",blurb:"blurb-m_blurb__3pXi5","blurb-default":"blurb-m_blurb-default__JR86y","blurb-withBorder":"blurb-m_blurb-withBorder__SjW--",dark:"blurb-m_dark__1eErz",light:"blurb-m_light__OBWiH"}},Ct=function(r){var i=r.element,u=r.template,s=void 0===u?"":u,f=r.opts,h=void 0===f?{}:f,p=r.css,d=void 0===p?{}:p;r.story,r.config,r.render;var y=l(r,Mt),g=i.text,m=d.borderColor,b="withBorder"===s?{border:"solid 2px ".concat(m)}:{borderLeft:"solid 2px ".concat(m)},_=c(n(b),2),w=_[0],j=_[1];if(!g)return null;o((function(){var t=document.getElementsByTagName("HTML");t&&t.length&&"rtl"===t[0].dir.toLowerCase()&&"withBorder"!==s&&j({borderRight:"solid 2px ".concat(m)})}),[]);var O=h.isExternalLink,x=(void 0===O||O)&&function(t){var e=t,r=t.match(/(<a).*?(>)/g);return r&&r.forEach((function(t){/target=/g.test(t)||(e=e.replace(t,"<a aria-label='content' target='_blank'".concat(t.substring(2))))})),e}(g)||g,E=s?"blurb-".concat(s):"blurb",S=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:kt(t);return Nt(e)<155?"light":"dark"}((e(Tt)||{}).theme);return t.createElement("div",a({"data-test-id":"blurb",style:m&&w,dangerouslySetInnerHTML:{__html:x}},y,{className:"arrow-component arr-custom-style arr--blurb-element "+v("".concat(E," ").concat(S),zt)+" "+(y&&y.className||"")}))};Ct.propTypes={element:i.shape({text:i.string}),template:i.string,opts:i.shape({isExternalLink:i.bool}),story:Pt,config:It,render:i.func,css:i.object};var Ft=y(Ct);export{Ft as Blurb};
@@ -1 +0,0 @@
1
- import e,{createContext as t,useContext as r,useState as o,useEffect as n,Fragment as i}from"react";import a from"axios";import l,{PropTypes as c}from"prop-types";import s from"lodash.get";import{connect as u,useSelector as m,useDispatch as d}from"react-redux";import{Link as h,LinkBase as f,ResponsiveImage as p,ResponsiveHeroImage as g,collectionToStories as v}from"@quintype/components";import _ from"react-timeago";import{utcToZonedTime as b,format as y}from"date-fns-tz";function w(e,t,r,o,n,i,a){try{var l=e[i](a),c=l.value}catch(e){return void r(e)}l.done?t(c):Promise.resolve(c).then(o,n)}function E(e){return function(){var t=this,r=arguments;return new Promise((function(o,n){var i=e.apply(t,r);function a(e){w(i,o,n,a,l,"next",e)}function l(e){w(i,o,n,a,l,"throw",e)}a(void 0)}))}}function x(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function k(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 T(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,i=[],a=!0,l=!1;try{for(r=r.call(e);!(a=(o=r.next()).done)&&(i.push(o.value),!t||i.length!==t);a=!0);}catch(e){l=!0,n=e}finally{try{a||null==r.return||r.return()}finally{if(l)throw n}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return k(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)?k(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 C="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function z(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function N(e){var t={exports:{}};return e(t,t.exports),t.exports}var L=N((function(e){var t=function(e){var t,r=Object.prototype,o=r.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",a=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,i=Object.create(n.prototype),a=new N(o||[]);return i._invoke=function(e,t,r){var o=m;return function(n,i){if(o===h)throw new Error("Generator is already running");if(o===f){if("throw"===n)throw i;return j()}for(r.method=n,r.arg=i;;){var a=r.delegate;if(a){var l=T(a,r);if(l){if(l===p)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===m)throw o=f,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=h;var c=u(e,t,r);if("normal"===c.type){if(o=r.done?f:d,c.arg===p)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(o=f,r.method="throw",r.arg=c.arg)}}}(e,r,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 m="suspendedStart",d="suspendedYield",h="executing",f="completed",p={};function g(){}function v(){}function _(){}var b={};c(b,i,(function(){return this}));var y=Object.getPrototypeOf,w=y&&y(y(L([])));w&&w!==r&&o.call(w,i)&&(b=w);var E=_.prototype=g.prototype=Object.create(b);function x(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function k(e,t){function r(n,i,a,l){var c=u(e[n],e,i);if("throw"!==c.type){var s=c.arg,m=s.value;return m&&"object"==typeof m&&o.call(m,"__await")?t.resolve(m.__await).then((function(e){r("next",e,a,l)}),(function(e){r("throw",e,a,l)})):t.resolve(m).then((function(e){s.value=e,a(s)}),(function(e){return r("throw",e,a,l)}))}l(c.arg)}var n;this._invoke=function(e,o){function i(){return new t((function(t,n){r(e,o,t,n)}))}return n=n?n.then(i,i):i()}}function T(e,r){var o=e.iterator[r.method];if(o===t){if(r.delegate=null,"throw"===r.method){if(e.iterator.return&&(r.method="return",r.arg=t,T(e,r),"throw"===r.method))return p;r.method="throw",r.arg=new TypeError("The iterator does not provide a 'throw' method")}return p}var n=u(o,e.iterator,r.arg);if("throw"===n.type)return r.method="throw",r.arg=n.arg,r.delegate=null,p;var i=n.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,p):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,p)}function C(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function z(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function N(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(C,this),this.reset(!0)}function L(e){if(e){var r=e[i];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,a=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 a.next=a}}return{next:j}}function j(){return{value:t,done:!0}}return v.prototype=_,c(E,"constructor",_),c(_,"constructor",v),v.displayName=c(_,l,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===v||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,_):(e.__proto__=_,c(e,l,"GeneratorFunction")),e.prototype=Object.create(E),e},e.awrap=function(e){return{__await:e}},x(k.prototype),c(k.prototype,a,(function(){return this})),e.AsyncIterator=k,e.async=function(t,r,o,n,i){void 0===i&&(i=Promise);var a=new k(s(t,r,o,n),i);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},x(E),c(E,l,"Generator"),c(E,i,(function(){return this})),c(E,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var o=t.pop();if(o in e)return r.value=o,r.done=!1,r}return r.done=!0,r}},e.values=L,N.prototype={constructor:N,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(z),!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 i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],l=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var c=o.call(a,"catchLoc"),s=o.call(a,"finallyLoc");if(c&&s){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.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 i=n;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,p):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),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),z(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;z(r)}return n}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,o){return this.delegate={iterator:L(e),resultName:r,nextLoc:o},"next"===this.method&&(this.arg=t),p}},e}(e.exports);try{regeneratorRuntime=t}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=t:Function("r","regeneratorRuntime = r")(t)}})),j=N((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})),O=z(N((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,o=(r=j)&&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 i=Object.keys(t),a=r||{},l=a.handleMissingStyleName,c=void 0===l?o.default.handleMissingStyleName:l,s=a.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 i=e.split("."),a=i[0],l=i[1],c=r||o.default.handleMissingStyleName;return l?t[a]?t[a][l]?t[a][l]:n("CSS module does not exist: "+l,c):n("CSS module import does not exist: "+a,c):n("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(!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||o.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?n("Could not resolve the styleName '"+e+"'.",i):t[a[0]][e]}(e,t,c)}var r=t[i[0]];return r[e]?r[e]:n("Could not resolve the styleName '"+e+"'.",c)})).filter((function(e){return e})).join(" "):""}}))),S=t(),I=function(){return r(S)};function M(e){return M="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},M(e)}var A=Array.isArray,R="object"==typeof C&&C&&C.Object===Object&&C,P="object"==typeof self&&self&&self.Object===Object&&self,H=R||P||Function("return this")(),B=H.Symbol,F=Object.prototype,D=F.hasOwnProperty,W=F.toString,q=B?B.toStringTag:void 0;var G=function(e){var t=D.call(e,q),r=e[q];try{e[q]=void 0;var o=!0}catch(e){}var n=W.call(e);return o&&(t?e[q]=r:delete e[q]),n},U=Object.prototype.toString;var Z=function(e){return U.call(e)},Y=B?B.toStringTag:void 0;var J=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":Y&&Y in Object(e)?G(e):Z(e)};var V=function(e){return null!=e&&"object"==typeof e};var $=function(e){return"symbol"==typeof e||V(e)&&"[object Symbol]"==J(e)},X=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,K=/^\w*$/;var Q=function(e,t){if(A(e))return!1;var r=typeof e;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=e&&!$(e))||(K.test(e)||!X.test(e)||null!=t&&e in Object(t))};var ee=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)};var te,re=function(e){if(!ee(e))return!1;var t=J(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},oe=H["__core-js_shared__"],ne=(te=/[^.]+$/.exec(oe&&oe.keys&&oe.keys.IE_PROTO||""))?"Symbol(src)_1."+te:"";var ie=function(e){return!!ne&&ne in e},ae=Function.prototype.toString;var le=function(e){if(null!=e){try{return ae.call(e)}catch(e){}try{return e+""}catch(e){}}return""},ce=/^\[object .+?Constructor\]$/,se=Function.prototype,ue=Object.prototype,me=se.toString,de=ue.hasOwnProperty,he=RegExp("^"+me.call(de).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var fe=function(e){return!(!ee(e)||ie(e))&&(re(e)?he:ce).test(le(e))};var pe=function(e,t){return null==e?void 0:e[t]};var ge=function(e,t){var r=pe(e,t);return fe(r)?r:void 0},ve=ge(Object,"create");var _e=function(){this.__data__=ve?ve(null):{},this.size=0};var be=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},ye=Object.prototype.hasOwnProperty;var we=function(e){var t=this.__data__;if(ve){var r=t[e];return"__lodash_hash_undefined__"===r?void 0:r}return ye.call(t,e)?t[e]:void 0},Ee=Object.prototype.hasOwnProperty;var xe=function(e){var t=this.__data__;return ve?void 0!==t[e]:Ee.call(t,e)};var ke=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=ve&&void 0===t?"__lodash_hash_undefined__":t,this};function Te(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])}}Te.prototype.clear=_e,Te.prototype.delete=be,Te.prototype.get=we,Te.prototype.has=xe,Te.prototype.set=ke;var Ce=Te;var ze=function(){this.__data__=[],this.size=0};var Ne=function(e,t){return e===t||e!=e&&t!=t};var Le=function(e,t){for(var r=e.length;r--;)if(Ne(e[r][0],t))return r;return-1},je=Array.prototype.splice;var Oe=function(e){var t=this.__data__,r=Le(t,e);return!(r<0)&&(r==t.length-1?t.pop():je.call(t,r,1),--this.size,!0)};var Se=function(e){var t=this.__data__,r=Le(t,e);return r<0?void 0:t[r][1]};var Ie=function(e){return Le(this.__data__,e)>-1};var Me=function(e,t){var r=this.__data__,o=Le(r,e);return o<0?(++this.size,r.push([e,t])):r[o][1]=t,this};function Ae(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])}}Ae.prototype.clear=ze,Ae.prototype.delete=Oe,Ae.prototype.get=Se,Ae.prototype.has=Ie,Ae.prototype.set=Me;var Re=Ae,Pe=ge(H,"Map");var He=function(){this.size=0,this.__data__={hash:new Ce,map:new(Pe||Re),string:new Ce}};var Be=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e};var Fe=function(e,t){var r=e.__data__;return Be(t)?r["string"==typeof t?"string":"hash"]:r.map};var De=function(e){var t=Fe(this,e).delete(e);return this.size-=t?1:0,t};var We=function(e){return Fe(this,e).get(e)};var qe=function(e){return Fe(this,e).has(e)};var Ge=function(e,t){var r=Fe(this,e),o=r.size;return r.set(e,t),this.size+=r.size==o?0:1,this};function Ue(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var o=e[t];this.set(o[0],o[1])}}Ue.prototype.clear=He,Ue.prototype.delete=De,Ue.prototype.get=We,Ue.prototype.has=qe,Ue.prototype.set=Ge;var Ze=Ue;function Ye(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],i=r.cache;if(i.has(n))return i.get(n);var a=e.apply(this,o);return r.cache=i.set(n,a)||i,a};return r.cache=new(Ye.Cache||Ze),r}Ye.Cache=Ze;var Je=Ye;var Ve=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,$e=/\\(\\)?/g,Xe=function(e){var t=Je(e,(function(e){return 500===r.size&&r.clear(),e})),r=t.cache;return t}((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(Ve,(function(e,r,o,n){t.push(o?n.replace($e,"$1"):r||e)})),t}));var Ke=function(e,t){for(var r=-1,o=null==e?0:e.length,n=Array(o);++r<o;)n[r]=t(e[r],r,e);return n},Qe=B?B.prototype:void 0,et=Qe?Qe.toString:void 0;var tt=function e(t){if("string"==typeof t)return t;if(A(t))return Ke(t,e)+"";if($(t))return et?et.call(t):"";var r=t+"";return"0"==r&&1/t==-Infinity?"-0":r};var rt=function(e){return null==e?"":tt(e)};var ot=function(e,t){return A(e)?e:Q(e,t)?[e]:Xe(rt(e))};var nt=function(e){if("string"==typeof e||$(e))return e;var t=e+"";return"0"==t&&1/e==-Infinity?"-0":t};var it=function(e,t){for(var r=0,o=(t=ot(t,e)).length;null!=e&&r<o;)e=e[nt(t[r++])];return r&&r==o?e:void 0};var at=function(e,t,r){var o=null==e?void 0:it(e,t);return void 0===o?r:o};var lt=function(e,t,r,o){var n=-1,i=null==e?0:e.length;for(o&&i&&(r=e[++n]);++n<i;)r=t(r,e[n],n,e);return r};var ct=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"}),st=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,ut=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]","g");var mt=function(e){return(e=rt(e))&&e.replace(st,ct).replace(ut,"")},dt=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;var ht=function(e){return e.match(dt)||[]},ft=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;var pt=function(e){return ft.test(e)},gt="\\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",vt="["+gt+"]",_t="\\d+",bt="[\\u2700-\\u27bf]",yt="[a-z\\xdf-\\xf6\\xf8-\\xff]",wt="[^\\ud800-\\udfff"+gt+_t+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",Et="(?:\\ud83c[\\udde6-\\uddff]){2}",xt="[\\ud800-\\udbff][\\udc00-\\udfff]",kt="[A-Z\\xc0-\\xd6\\xd8-\\xde]",Tt="(?:"+yt+"|"+wt+")",Ct="(?:"+kt+"|"+wt+")",zt="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?",Nt="[\\ufe0e\\ufe0f]?"+zt+("(?:\\u200d(?:"+["[^\\ud800-\\udfff]",Et,xt].join("|")+")[\\ufe0e\\ufe0f]?"+zt+")*"),Lt="(?:"+[bt,Et,xt].join("|")+")"+Nt,jt=RegExp([kt+"?"+yt+"+(?:['’](?:d|ll|m|re|s|t|ve))?(?="+[vt,kt,"$"].join("|")+")",Ct+"+(?:['’](?:D|LL|M|RE|S|T|VE))?(?="+[vt,kt+Tt,"$"].join("|")+")",kt+"?"+Tt+"+(?:['’](?:d|ll|m|re|s|t|ve))?",kt+"+(?:['’](?: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_])",_t,Lt].join("|"),"g");var Ot=function(e){return e.match(jt)||[]};var St=function(e,t,r){return e=rt(e),void 0===(t=r?void 0:t)?pt(e)?Ot(e):ht(e):e.match(t)||[]},It=RegExp("['’]","g");var Mt=function(e){return function(t){return lt(St(mt(t).replace(It,"")),e,"")}},At=Mt((function(e,t,r){return e+(r?" ":"")+t.toUpperCase()})),Rt=At,Pt=Mt((function(e,t,r){return e+(r?" ":"")+t.toLowerCase()})),Ht=Pt;var Bt=function(e,t,r,o){var n=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},i=n.showTime,a=void 0!==i&&i,l=n.isTimeFirst,c=void 0!==l&&l,s=n.isUpperCase,u=void 0!==s&&s,m=n.disableMeridiem,d=void 0!==m&&m,h=n.timeFormat,f=void 0===h?"12hours":h,p=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],g=new Date(o),v=g.getDate().toString().padStart(2,0),_=p[g.getMonth()],b=_;u&&(b=Rt(_));var y,w=g.getFullYear(),E=n.localizedMeridiem,x=n.localizedMonths,k=n.direction,T=void 0===k?"ltr":k,C=Dt(o,f),z=C;if(x&&(b=at(x,[Ht(_)])||_),E){var N=C.includes("am"),L=E.am,j=void 0===L?"am":L,O=E.pm,S=void 0===O?"pm":O;z=(N?C.replace("am",j):C.replace("pm",S))||C}return"rtl"===T?(y=a?"".concat(z):"","".concat(v," ").concat(b,", ").concat(w," ").concat(y," ")):d?"".concat(b," ").concat(v,", ").concat(w):c?"".concat(z,", ").concat(v," ").concat(b," ").concat(w):(y=a?", ".concat(z):"","".concat(v," ").concat(b,", ").concat(w).concat(y))};function Ft(e,t,r,o,n){var i,a=at(n,["localizedPublishTime",r])||r;return"hour"===t&&e>23||-1!==["day","week","month","year"].indexOf(t)?Bt(e,t,r,o,n):e>1?(i=at(n,["localizedPublishTime","".concat(t,"s")])||"".concat(t,"s"),"".concat(e," ").concat(i," ").concat(a)):(i=at(n,["localizedPublishTime",t])||t,"".concat(e," ").concat(i," ").concat(a," "))}function Dt(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"12hours",r=new Date(e),o=r.getHours(),n=r.getMinutes(),i=o>=12?"pm":"am",a=(o=(o%=12)||12)+":"+(n=n<10?"0"+n:n)+" "+i;return"24hours"===t?r.toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"}):a}var Wt=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},qt=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},Gt={mobile:767,tablet:1024},Ut=function(e){var t=at(Gt,e);return!!t&&at(global,"document.documentElement.clientWidth")<=t},Zt=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:qt(e),o=Wt(r)<155?"light":"dark";return o},Yt=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.magazineSlug,o=void 0===r?"":r,n=t.isArchivePage,i=void 0!==n&&n;if(i)return"/magazine/archive/".concat(o);if(o)return"/magazine/".concat(o,"/").concat(e.slug);var a="section"===e.template;if(a){var l=at(e,["metadata","section","0","id"],""),c=t.sections,s=c&&c.find((function(e){return e.id===l}));return s?s["section-url"]:"/"}return"/collection/".concat(e.slug)};function Jt(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e["story-template"],r=void 0===t?"":t,o=e.metadata,n=void 0===o?{}:o;return"news-elsewhere"===r?at(n,["reference-url"],""):""}l.shape({"sketches-host":l.string,"cdn-name":l.string,"cdn-image":l.string}),l.shape({headline:l.string,"last-published-at":l.number,subheadline:l.string});var Vt=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return"news-elsewhere"===at(e,["story-template"])?at(e,["metadata","reference-url"],""):e.url||t},$t=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,i=t.isArchivePage,a=void 0!==i&&i;return a?"/magazine/archive/".concat(n):n?"/magazine/".concat(n,"/").concat(e.slug):e?Yt(e,t):"/"},Xt={"./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"}},Kt=function(t){var r=t.collectionNameBorderColor,o=void 0===r?"":r,n=t.collection,i=t.config,a=t.collectionNameTemplate,l=t.headerLevel,c=t.customCollectionName,u=void 0===c?"":c,m=t.navigate,d=void 0===m||m,f=I()||{},p=s(f,["showRowTitle"],!0),g=["borderLeft","borderBottom","crossLine","borderBottomFull"].includes(a)?" collection-".concat(a):"",v=d&&n&&Yt(n,i)||"",_=u||n.name||"",b=Zt(f.theme),y="h"+l,w=qt(o),E=g.includes("collection-borderBottomFull")?"4px solid ".concat(w):"",x=Ut("mobile");return e.createElement(e.Fragment,null,p&&_&&e.createElement("div",{style:{borderBottom:E},"data-test-id":"collection-name",className:("arr--collection-name arrow-component ".concat(g)?"arr--collection-name arrow-component ".concat(g)+" ":"")+O("collection ".concat(b," ").concat(g),Xt)},g.includes("collection-borderLeft")&&e.createElement("span",{className:"arr-collection-name-border-left collection-name-m_border-left__3_pYw",style:{color:w,fontSize:function(){if(x)switch(l){case"1":return"32px";case"2":return"24px";case"3":default:return"20px";case"4":return"18px";case"5":case"6":return"16px"}switch(l){case"1":return"40px";case"2":return"32px";case"3":default:return"24px";case"4":return"20px";case"5":return"18px";case"6":return"16px"}}()}}),v&&!v.includes(void 0)?e.createElement(h,{href:v,"aria-label":"collection-name"},e.createElement(y,null,_)):e.createElement(y,null,_),g.includes("collection-borderBottom")&&!g.includes("collection-borderBottomFull")?e.createElement("div",{className:"collection-name-m_border-bottom__1MnlV",style:{borderBottom:"4px solid ".concat(w)}}):""))};Kt.propTypes={collectionNameBorderColor:c.string,collection:c.object,config:c.object,collectionNameTemplate:c.oneOf(["","borderLeft","borderBottom","crossLine","borderBottomFull"]),headerLevel:c.string,customCollectionName:c.string,navigate:c.bool},Kt.defaultProps={collectionNameTemplate:"",headerLevel:"3"};var Qt=u((function(e){return{config:s(e,["qt","config"],{})}}))(Kt),er={"./load-more.m.css":{button:"load-more-m_button__1mmf1",default:"load-more-m_default__2_k4V",dark:"load-more-m_dark__3dfzb",light:"load-more-m_light__ePZQI"}};function tr(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,o)}return r}function rr(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?tr(Object(r),!0).forEach((function(t){x(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):tr(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var or=function(t){var r=t.config,o=void 0===r?{}:r,n=t.collection,i=t.template,a=void 0===i?"SubsequentLoadCount":i,l=t.onClick,c=t.navigate,s=t.qtConfig,u=o.showButton,m=void 0===u||u,d=o.buttonText,h=void 0===d?"Read More":d,p=o.theme,g=void 0===p?"":p,v=o.customUrlPath,_=void 0===v?"":v;if(!m)return null;var b=Zt(g),y=_?"/".concat(_):$t(n,rr(rr({},s),o));return"SubsequentLoadCount"===a?e.createElement("div",{onClick:l,"data-test-id":"load-more",className:"arr--button "+O("button ".concat(b," default"),er)},h):e.createElement(f,{href:y,navigateTo:c,"data-test-id":"load-more","aria-label":"load-more"},e.createElement("div",{className:"arr--button "+O("button ".concat(b," default"),er)},h))};or.propTypes={collection:l.object,template:l.string,config:l.object,onClick:l.func,navigate:l.func,qtConfig:l.object};var nr=function(t){var r=t.height,o=t.width,n=t.color,i=void 0===n?"#D8D8D8":n,a=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:a}},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:i,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"}))))))};nr.propTypes={height:l.string,width:l.string,color:l.string,positionTop:l.string};var ir=function(t){var r=t.height,o=t.width,n=t.color,i=void 0===n?"#D5D5D5":n,a=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:a}},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: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)"})))))};ir.propTypes={height:l.string,width:l.string,color:l.string,positionTop:l.string};var ar=function(t){var r=t.height,o=t.width,n=t.color,i=void 0===n?"#D5D5D5":n,a=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:a}},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:i,fillRule:"nonzero",transform:"translate(3)"},e.createElement("path",{d:"M15.692 9h-.747V6c0-3.31-2.681-6-5.978-6C5.67 0 2.989 2.69 2.989 6v3h-.747A2.249 2.249 0 000 11.25v10.5A2.249 2.249 0 002.242 24h13.45a2.249 2.249 0 002.242-2.25v-10.5A2.249 2.249 0 0015.692 9zM4.982 6c0-2.206 1.787-4 3.985-4s3.985 1.794 3.985 4v3h-7.97V6z"}))))))};ar.propTypes={height:l.string,width:l.string,color:l.string,positionTop:l.string};var lr=function(t){var r=t.width,o=t.height,n=t.color,i=void 0===n?"#D5D5D5":n,a=t.positionTop,l=void 0===a?"":a;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: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"}))))};lr.propTypes={height:l.string,width:l.string,color:l.string,positionTop:l.string};var cr=function(t){var r=t.width,o=t.height,n=t.color,i=t.iconType,a=t.positionTop;switch(i){case"crown":return e.createElement(nr,{width:r,height:o,color:n,positionTop:a});case"lock":return e.createElement(ar,{width:r,height:o,color:n,positionTop:a});case"key":return e.createElement(ir,{width:r,height:o,color:n,positionTop:a});default:return e.createElement(lr,{width:r,height:o,color:n,positionTop:a})}};function sr(){return e.createElement("svg",{className:"live-icon",xmlns:"http://www.w3.org/2000/svg",width:"25",height:"24",viewBox:"0 0 25 24"},e.createElement("path",{fill:"#ff5858",d:"M12 18a6 6 0 110-12 6 6 0 010 12zm0 2.5a8.5 8.5 0 110-17 8.5 8.5 0 010 17zm0-1a7.5 7.5 0 100-15 7.5 7.5 0 000 15z"}))}cr.propTypes={width:l.string,height:l.string,color:l.string,iconType:l.string,positionTop:l.string};var ur={"./headline.m.css":{wrapper:"headline-m_wrapper__3nUmh",headline:"headline-m_headline__3_NhV",dark:"headline-m_dark__en3hW",light:"headline-m_light__3lKJB"}},mr=function(t){var r=t.story,o=t.headerLevel,n=t.premiumStoryIconConfig,i=void 0===n?{}:n,a=t.isLink,l=I()||{},c=i.iconColor,u=void 0===c?"#F7B500":c,m=i.iconStyle,d=void 0===m?"star":m,f=i.enablePremiumStoryIcon,p=void 0!==f&&f,g=i.showLiveIcon,v=void 0!==g&&g,_=s(r,["alternative","home","default","headline"]),b=p&&"subscription"===s(r,["access"]),y=_||r.headline,w="h"+o,E=Zt(l.theme),x=b?"wrapper":"",k="24px",T=v&&"live-blog"===r["story-template"]&&!s(r,["metadata","is-closed"],!1);return e.createElement("div",{"data-test-id":"headline",className:"arrow-component arr--headline "+O(x,ur)},b&&e.createElement(cr,{width:k,height:k,color:u,iconType:d,positionTop:function(){switch(parseInt(o)){case 1:return"-2px";case 2:return"2px";case 3:return"4px";case 4:return"5px";default:return"6px"}}()}),a?e.createElement(h,{href:Vt(r,"/".concat(r.slug)),externalLink:Jt(r),"aria-label":"headline"},e.createElement(w,{className:O("headline ".concat(E),ur)},T&&e.createElement(sr,null),y)):e.createElement(w,{className:O("headline ".concat(E),ur)},T&&e.createElement(sr,null),y))};mr.propTypes={story:l.object.isRequired,headerLevel:l.string,premiumStoryIconConfig:l.shape({iconColor:l.string,iconType:l.string,enablePremiumStoryIcon:l.bool}),isLink:l.bool},mr.defaultProps={headerLevel:"6",isLink:!0};var dr={"./subheadline.m.css":{subheadline:"subheadline-m_subheadline__3fd7z",dark:"subheadline-m_dark__28u00",light:"subheadline-m_light__2YUOe"}},hr=function(t){var r=t.story,o=t.truncateChars,n=void 0===o?200:o,i=t.lineClamp,a=t.clazzName,l=void 0===a?"":a,c=t.forceShowAtom,u=t.showFullContent,m=I()||{};if(!(c||s(m,["showSubheadline"],!0)))return null;var d=Zt(m.theme);return e.createElement("div",{style:{WebkitLineClamp:i},"data-test-id":"subheadline",className:("p-alt arr--sub-headline arrow-component ".concat(l)?"p-alt arr--sub-headline arrow-component ".concat(l)+" ":"")+O("subheadline ".concat(d),dr)},u||"number"==typeof i?r.subheadline:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:60,r=arguments.length>2&&void 0!==arguments[2]&&!arguments[2]?"":" ...";return"string"==typeof e&&e.length>t?e.substring(0,t)+r:e}(r.subheadline,n,!0))};hr.propTypes={story:l.object.isRequired,lineClamp:l.number,truncateChars:l.number,clazzName:l.string,forceShowAtom:l.bool,showFullContent:l.bool},hr.defaultProps={forceShowAtom:!1,showFullContent:!1};var fr={"./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"}},pr=function(t){var r=t.story,o=t.isBottom,n=t.config,i=void 0===n?{}:n,a=I()||{},l=s(i,["showTime"],s(a,["showTime"],!0)),c=r["last-published-at"]||r["first-published-at"],u=o?"bottom-fix":"",m=Zt(a.theme);return e.createElement(e.Fragment,null,l&&e.createElement("div",{"data-test-id":"publish-time",className:"time arr--publish-time "+O("time ".concat(m," ").concat(u),fr)},e.createElement("div",{className:"timestamp-m_time-wrapper__3O2lM"},function(t,r){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=arguments.length>3?arguments[3]:void 0,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null;if(i&&"story"===n){var a=i&&b(t,i),l=a&&y(a,"yyyy-MM-dd'T'HH:mm:ssXXX",{timeZone:i}),c=Bt("","","",t,o);return e.createElement("time",{dateTime:l},c)}return e.createElement(_,{date:t,formatter:function(e,t,n,i){return r(e,t,n,i,o)}})}(c,Ft,i))))};pr.propTypes={story:l.object,isBottom:l.bool,config:l.object};var gr={"./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"}},vr=function(t){var r=t.story,o=t.hideAuthorImage,n=t.isBottom,i=t.prefix,a=void 0===i?"":i,l=t.config,c=void 0===l?{}:l,u=I()||{},m=s(u,["showAuthor"],!0),d=s(r,["authors","0"],""),f=d["avatar-url"],g=d["avatar-s3-key"],v=d.name,_=d.slug,b=n?"bottom-fix":"",y=Zt(u.theme),w=s(c,["mountAt"],""),E=function(t){return a?e.createElement("div",{className:"arr-author-prefix "+O("prefix ".concat(y),gr)},a):!o&&function(t){return f||g?e.createElement("div",{"data-test-id":"author-image",className:O("author-image ".concat(t,"-image"),gr)},e.createElement("figure",null,g?e.createElement(p,{slug:g,"aspect-ratio":[1,1],defaultWidth:400,imgParams:{auto:["format","compress"]},alt:v}):e.createElement("img",{src:f}))):null}(t)};return e.createElement(e.Fragment,null,m&&e.createElement(h,{href:"".concat(w,"/author/")+_,"aria-label":"author-name",className:"author-name arr-author-name arrow-component "+O("author ".concat(b),gr)},E("ltr"),e.createElement("div",{"data-test-id":"author-name",className:"author-name "+O("author-name ".concat(y),gr)},v||r["author-name"]),!a&&E("rtl")))};var _r=u((function(e){return{config:s(e,["qt","config"],{})}}))(vr);vr.propTypes={story:l.object.isRequired,hideAuthorImage:l.bool,isBottom:l.bool,prefix:l.string,config:l.object},vr.defaultProps={hideAuthorImage:!1,isBottom:!1,prefix:""};var br={"./dot.m.css":{dark:"dot-m_dark__1Njxl",light:"dot-m_light__27IA3"}},yr=function(t){var r=t.width,o=void 0===r?"3px":r,n=t.height,i=void 0===n?"3px":n,a=t.color,l=void 0===a?"light":a;return e.createElement("div",{className:O(l,br)},e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:o,height:i,viewBox:"0 0 3 3"},e.createElement("circle",{cx:"87",cy:"9",r:"1",fill:"inherit",fillRule:"nonzero",transform:"translate(-86 -8)"})))};yr.propTypes={color:l.string,width:l.string,height:l.string};var wr={"./divider.m.css":{dark:"divider-m_dark__26FRi",light:"divider-m_light__w-7sy"}},Er=function(t){var r=t.width,o=void 0===r?"1":r,n=t.height,i=void 0===n?"10":n,a=t.color,l=void 0===a?"light":a;return e.createElement("div",{className:O(l,wr)},e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:o,height:i},e.createElement("path",{fill:"inherit",d:"M0 0h1v10H0z"})))};Er.propTypes={color:l.string,width:l.string,height:l.string};var xr={"./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"}},kr=function(t){var r=t.story,o=t.opts,n=void 0===o?{}:o,i=t.isLightTheme,a=void 0!==i&&i,l=I()||{},c=s(l,["showReadTime"])||s(n,["showReadTime"],!0),u=s(r,["read-time"],0),m=a?"light":Zt(l.theme);if(!c||!u)return null;var d=s(n,["localizedTimeToRead"])||"min read";return e.createElement(e.Fragment,null,e.createElement("div",{"data-test-id":"read-time",className:"arrow-component arr--read-time "+O("read-time-wrapper ".concat(m),xr)},e.createElement("span",{className:"read-time-indicator read-time-m_dot-indicator__3Sqh2"},e.createElement(yr,{color:m})),e.createElement("span",null,u," ",d)))};kr.propTypes={story:l.shape({"read-time":l.number}),opts:l.shape({showReadTime:l.bool}),isLightTheme:l.bool};var Tr={"./author-with-timestamp.m.css":{"author-time-wrapper":"author-with-timestamp-m_author-time-wrapper__G7_eI","author-image":"author-with-timestamp-m_author-image__24xrD",dot:"author-with-timestamp-m_dot__1LHXD","bottom-fix":"author-with-timestamp-m_bottom-fix__1rWGv",dash:"author-with-timestamp-m_dash__2L5XC"}},Cr=function(t){var r=t.story,o=t.separator,n=t.isBottom,i=t.hideAuthorImage,a=t.prefix,l=t.config,c=void 0===l?{}:l,u=t.isLightTheme,m=I()||{},d=s(c,["showAuthor"],s(m,["showAuthor"],!0)),h=s(c,["showTime"],s(m,["showTime"],!0)),f=s(m,["showReadTime"],!0),p=n?"bottom-fix":"",g="dot"===o?"dot":"dash",v=u?"light":Zt(m.theme),_=function(){return h?e.createElement(e.Fragment,null,d&&e.createElement("span",{className:"arr-separator "+O("".concat(g),Tr)},"divider"===o?e.createElement(Er,{color:v}):e.createElement(yr,{color:v})),e.createElement(pr,{story:r,config:c}),f&&e.createElement(kr,{story:r,opts:c,isLightTheme:u})):null};return e.createElement("div",{className:"arr--author-time "+O("author-time-wrapper ".concat(p),Tr)},d?e.createElement(e.Fragment,null,e.createElement(_r,{story:r,isBottom:!0,hideAuthorImage:i,prefix:a}),_()):_())};Cr.propTypes={story:l.object,separator:l.oneOf(["dot","divider"]),hideAuthorImage:l.bool,isBottom:l.bool,prefix:l.string,config:l.object,isLightTheme:l.bool},Cr.defaultProps={separator:"dot",isBottom:!1,hideAuthorImage:!0,prefix:"",isLightTheme:!1};var zr=function(t){var r=t.width,o=void 0===r?40:r,n=t.height,i=void 0===n?30:n,a=t.iconColor,l=void 0===a?"#99B0CB":a;return e.createElement("svg",{width:o,height:i,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"}))))};zr.propTypes={width:l.object,height:l.object,iconColor:l.object};var Nr=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(zr,null)))},Lr=function(t){var r=t.slug;return r?e.createElement(h,{href:r,"aria-label":"image-fallback"},Nr()):Nr()};Lr.propTypes={slug:l.string};var jr=function(){return e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"36",height:"28"},e.createElement("g",{fill:"none",fillRule:"evenodd"},e.createElement("rect",{width:"36",height:"28",fill:"#3D6FCF",rx:"4"}),e.createElement("path",{stroke:"#FFF",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M22 14.667v4c0 .736-.597 1.333-1.333 1.333h-7.334A1.333 1.333 0 0112 18.667v-7.334c0-.736.597-1.333 1.333-1.333h4M20 8h4v4m-7.333 3.333L24 8"})))},Or=function(t){var r=t.hyperLink,o=void 0===r?"":r;return o?e.createElement(h,{href:o,"aria-label":"hyperlink-button",className:"arr--hyperlink-button hyperlink-m_hyperlink-button__1CqWx",target:"_blank",rel:"noopener noreferrer"},e.createElement(jr,null)):null};Or.propTypes={hyperLink:l.string};var Sr={"./hero-image.m.css":{"hero-image":"hero-image-m_hero-image__3lraV","right-padding":"hero-image-m_right-padding__1LkCe","left-padding":"hero-image-m_left-padding__pYRAj","right-padding-mob":"hero-image-m_right-padding-mob__3-uOU",placeholder:"hero-image-m_placeholder__1omCm","hero-image-mob":"hero-image-m_hero-image-mob__13JJp","with-padding":"hero-image-m_with-padding__324G_",image:"hero-image-m_image__1mz0U"}},Ir=function(t){var r=t.story,o=t.FullBleed,n=t.aspectRatio,i=t.defaultWidth,a=t.widths,l=t.isHorizontal,c=t.isHorizontalMobile,u=t.isHorizontalWithImageLast,d=t.defaultFallback,f=t.isStoryPageImage,p=t.config,v=(I()||{}).fallbackImageUrl,_=void 0===v?"":v,b=p.StoryTemplateIcon,y=void 0===b?function(){return null}:b,w=m((function(e){return s(e,["qt","config","showPlaceholder"])}))?"placeholder":"",E=o?"":"with-padding",x="hero-image";l?x="right-padding":u&&(x="left-padding");var k=c?"right-padding-mob":"",C=function(e){var t=T(e,2),r=t[0],o=t[1];return r>0&&o>0?o/r*100:0},z=T(n,2),N=z[0],L=z[1],j=void 0===L?N:L,S=Ut("mobile"),M=S?N:j,A=C(S?N:j),R=s(r,["hero-image-s3-key"])||s(r,["alternative","home","default","hero-image","hero-image-s3-key"]),P=s(r,["hero-image-hyperlink"],""),H=function(){return R?e.createElement(e.Fragment,null,e.createElement("figure",{style:{paddingTop:A+"%"},className:"arr--responsive-hero-image "+O("image ".concat(w),Sr)},e.createElement(y,{storyTemplate:r["story-template"]}),e.createElement(g,{story:r,aspectRatio:M,defaultWidth:i,widths:a,imgParams:{auto:["format","compress"],fit:"max"}})),f&&P&&e.createElement(Or,{hyperLink:P})):_&&!f?e.createElement("figure",{style:{paddingTop:A+"%"},className:"arr--responsive-hero-image "+O("image ".concat(w),Sr)},e.createElement("img",{className:"qt-image","data-src":"".concat(_),alt:"image-fallback"})):e.createElement(e.Fragment,null,d?e.createElement("div",{"data-test-id":"arr--fallback-hero-image",style:{paddingTop:A+"%"},className:"arr--fallback-hero-image "+O("image ".concat(w),Sr)},e.createElement(y,{storyTemplate:r["story-template"]}),e.createElement(Lr,null)):null)};return r&&(f?e.createElement("div",{"data-test-id":"arr--hero-image",className:"arr--hero-image "+O("".concat(x," ").concat(E," ").concat(k),Sr)},H()):e.createElement(h,{"data-test-id":"arr--hero-image",href:Vt(r,"/".concat(r.slug)),externalLink:Jt(r),"aria-label":"fallback-hero-image",className:"arr--hero-image "+O("".concat(x," ").concat(E," ").concat(k),Sr)},H()))};Ir.propTypes={story:l.object.isRequired,FullBleed:l.bool,defaultWidth:l.number,widths:l.array,aspectRatio:l.array,isHorizontal:l.bool,isHorizontalMobile:l.bool,defaultFallback:l.bool,isHorizontalWithImageLast:l.bool,isStoryPageImage:l.bool,config:l.object},Ir.defaultProps={FullBleed:!0,aspectRatio:[[1,1],[16,9]],defaultWidth:480,widths:[250,480,640],isHorizontal:!1,isHorizontalMobile:!1,defaultFallback:!0,isStoryPageImage:!1,isHorizontalWithImageLast:!1,config:{}};var Mr={"./section.m.css":{section:"section-m_section__2N4S3","section-borderBottomSml":"section-m_section-borderBottomSml__2GNbo","border-bottom":"section-m_border-bottom__3cRoD","section-borderLeft":"section-m_section-borderLeft__3hKVj","border-left":"section-m_border-left__2oUyp","section-solid":"section-m_section-solid__1vB1Q",dark:"section-m_dark__1r3C4",light:"section-m_light__306hW"}},Ar=function(t){var r=t.story,o=t.template,n=void 0===o?"":o,i=t.borderColor,a=void 0===i?"":i,l=t.isLightTheme,c=I()||{},u=s(c,["showSection"],!0),m=s(c,["sectionTagTemplate"]),d=s(r,["sections",0],""),f=["borderBottomSml","borderLeft","solid"],p=d?d["section-url"]:"/",g="solid"===n||"solid"===m?a:c.theme,v=l?"light":Zt(g),_=qt(a),b=f.includes(n)?"section section-".concat(n):"section";return m&&(b=f.includes(m)?"section section-".concat(m):"section"),u?e.createElement(h,{href:p,className:"arrow-component arr--section-name","aria-label":"section-name"},e.createElement("div",{"data-test-id":"sectionTag",style:{backgroundColor:b.includes("section-solid")?_:""},className:"section-tag arrow-component "+O("".concat(v," ").concat(b),Mr)},b.includes("section-borderLeft")&&e.createElement("span",{className:"section-m_border-left__2oUyp",style:{color:_}}),d["display-name"]||d.name,e.createElement("div",{className:"section-m_border-bottom__3cRoD",style:{backgroundColor:"".concat("solid"===n?"":_)}}))):null};Ar.propTypes={story:l.object.isRequired,template:l.oneOf(["","borderBottomSml","borderLeft","solid"]),borderColor:l.string,solidBorderColor:l.string,isLightTheme:l.bool},Ar.defaultProps={template:"",isLightTheme:!1};var Rr={"./storycard.m.css":{"author-timestamp-wrapper":"storycard-m_author-timestamp-wrapper__20yjp","default-card":"storycard-m_default-card__1-POn","horizontal-card":"storycard-m_horizontal-card___7afz","backgroung-img":"storycard-m_backgroung-img__1FMJT","content-overlap":"storycard-m_content-overlap__1yNHR","border-full":"storycard-m_border-full__1nhy7",light:"storycard-m_light__3EhXN",dark:"storycard-m_dark__2wCTq","border-bottom":"storycard-m_border-bottom__2_E-I","border-boxShadow":"storycard-m_border-boxShadow__2-k3Z","center-align":"storycard-m_center-align__1Sn8-","content-bottom":"storycard-m_content-bottom__1QHeC","content-full":"storycard-m_content-full__2zJmU","content-boxShadow":"storycard-m_content-boxShadow__2IAWZ","hero-image":"storycard-m_hero-image__1H3MB","right-padding":"storycard-m_right-padding__12-lQ","horizontal-mob":"storycard-m_horizontal-mob__17JG2",content:"storycard-m_content__1Q9vq","border-default":"storycard-m_border-default__PEZ1x",card:"storycard-m_card__KJwRa","horizontal-image-last":"storycard-m_horizontal-image-last__3o6LY"}},Pr=function(t){var r,o=t.story,n=t.children,i=t.isHorizontal,a=t.aspectRatio,l=t.border,c=t.useImageAsBackground,s=t.bgImgContentOverlap,u=t.theme,m=t.borderColor,d=t.isHorizontalMobile,h=t.centerAlign,f=t.headerLevel,p=t.hideAuthorImage,g=t.prefix,v=t.config,_=t.isHorizontalWithImageLast;if(!o||(null==(r=o)||"object"===M(r)&&0===Object.entries(r).length&&r.constructor===Object||"string"==typeof r&&0===r.trim().length))return e.createElement("div",null);var b=["default","full","bottom","boxShadow"].includes(l)?"border-".concat(l):"",y="default-card";i?y="horizontal-card":_&&(y="horizontal-image-last");var w=c?"backgroung-img":"",E=s?"content-overlap":"",x=Zt(u),k=d?"horizontal-mob":"",T=e.createElement(Hr,{story:o,aspectRatio:a,border:l,isHorizontalMobile:d,isHorizontal:i,centerAlign:h,headerLevel:f,borderColor:m,hideAuthorImage:p,prefix:g,config:v,isHorizontalWithImageLast:_});return e.createElement("div",{"data-test-id":"story-card",style:{backgroundColor:u,color:x},className:"arr--story-card "+O("card ".concat(y," ").concat(b," ").concat(x," ").concat(w," ").concat(E," ").concat(k),Rr)},n||T)},Hr=function(t){var r=t.story;t.border;var o=t.isHorizontal,n=t.aspectRatio,i=t.headerLevel,a=t.isHorizontalMobile,l=void 0!==a&&a,c=t.centerAlign,s=void 0!==c&&c,u=t.borderColor,m=t.hideAuthorImage,d=t.prefix,h=t.isHorizontalWithImageLast,f=t.config,p=s?"center-align":"",g=qt(u),v=f.localizationConfig,_=void 0===v?{}:v;return e.createElement(e.Fragment,null,o?e.createElement(Ir,{config:f,story:r,isHorizontal:!0,isHorizontalMobile:l,aspectRatio:n}):h?e.createElement(Ir,{config:f,story:r,isHorizontalWithImageLast:!0,isHorizontalMobile:l,aspectRatio:n}):e.createElement(Ir,{story:r,config:f,isHorizontalMobile:l,aspectRatio:n}),e.createElement("div",{className:"arr--story-content "+O("content ".concat(p),Rr)},e.createElement(Ar,{story:r,borderColor:g}),e.createElement(mr,{story:r,headerLevel:i,premiumStoryIconConfig:f}),e.createElement(Cr,{config:_,story:r,isBottom:!0,prefix:d,hideAuthorImage:m}),e.createElement(hr,{story:r})))};Hr.propTypes={story:l.object.isRequired,border:l.oneOfType([l.string]),isBottom:l.bool,isHorizontal:l.bool,aspectRatio:l.oneOfType([l.array]),isHorizontalMobile:l.bool,centerAlign:l.bool,headerLevel:l.string,borderColor:l.string,hideAuthorImage:l.bool,prefix:l.string,config:l.object,isHorizontalWithImageLast:l.bool},Pr.propTypes={story:l.object.isRequired,children:l.node,isHorizontal:l.bool,border:l.oneOfType([l.string]),useImageAsBackground:l.bool,bgImgContentOverlap:l.bool,aspectRatio:l.oneOfType([l.array]),theme:l.string,isHorizontalMobile:l.bool,centerAlign:l.bool,headerLevel:l.string,borderColor:l.string,hideAuthorImage:l.bool,prefix:l.string,config:l.object,isHorizontalWithImageLast:l.bool},Pr.defaultProps={isHorizontal:!1,isHorizontalMobile:!1,border:"default",theme:"",centerAlign:!1,borderColor:"",isHorizontalWithImageLast:!1};var Br={"./storycardContent.m.css":{wrapper:"storycardContent-m_wrapper__TEmfA","horizontal-content-wrapper":"storycardContent-m_horizontal-content-wrapper__NgpuC","border-full":"storycardContent-m_border-full__2km37"}},Fr=function(t){var r=t.story,o=t.children,n=t.theme,i=t.border,a=t.isHorizontalMobile,l=t.headerLevel,c=t.borderColor,s=t.config,u=Zt(n),m=qt(c),d=["full"].includes(i)?"border-".concat(i):"",h=a?"horizontal-content-wrapper":"";return e.createElement("div",{"data-test-id":"story-card-content",style:{backgroundColor:n,color:u},className:"arr--content-wrapper "+O("wrapper ".concat(d," ").concat(h),Br)},o||e.createElement(Dr,{story:r,headerLevel:l,isHorizontalMobile:a,borderColor:m,config:s}))},Dr=function(t){var r=t.story,o=t.headerLevel,n=t.borderColor,i=t.config,a=void 0===i?{}:i,l=qt(n),c=a.localizationConfig,s=void 0===c?{}:c;return e.createElement("div",null,e.createElement(Ar,{story:r,borderColor:l}),e.createElement(mr,{story:r,headerLevel:o,premiumStoryIconConfig:a}),e.createElement(Cr,{config:s,story:r}))};Dr.propTypes={story:l.object.isRequired,border:l.string,theme:l.string,isHorizontalMobile:l.bool,headerLevel:l.string,borderColor:l.string,config:l.object},Fr.propTypes={story:l.object.isRequired,children:l.node,theme:l.string,border:l.string,isHorizontalMobile:l.bool,headerLevel:l.string,borderColor:l.string,config:l.object};var Wr=function(t){return t.width,t.height,t.iconColor,e.createElement("div",{className:"loading-m_loading-indicator__2Dlst"},e.createElement("svg",{width:"40",height:"40",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 100",preserveAspectRatio:"xMidYMid"},e.createElement("circle",{cx:"84",cy:"50",r:"0",fill:"currentColor"},e.createElement("animate",{attributeName:"r",values:"10;0;0;0;0",keyTimes:"0;0.25;0.5;0.75;1",keySplines:"0 0.5 0.5 1;0 0.5 0.5 1;0 0.5 0.5 1;0 0.5 0.5 1",calcMode:"spline",dur:"2s",repeatCount:"indefinite",begin:"0s"}),e.createElement("animate",{attributeName:"cx",values:"84;84;84;84;84",keyTimes:"0;0.25;0.5;0.75;1",keySplines:"0 0.5 0.5 1;0 0.5 0.5 1;0 0.5 0.5 1;0 0.5 0.5 1",calcMode:"spline",dur:"2s",repeatCount:"indefinite",begin:"0s"})),e.createElement("circle",{cx:"84",cy:"50",r:".709",fill:"currentColor"},e.createElement("animate",{attributeName:"r",values:"0;10;10;10;0",keyTimes:"0;0.25;0.5;0.75;1",keySplines:"0 0.5 0.5 1;0 0.5 0.5 1;0 0.5 0.5 1;0 0.5 0.5 1",calcMode:"spline",dur:"2s",repeatCount:"indefinite",begin:"-1s"}),e.createElement("animate",{attributeName:"cx",values:"16;16;50;84;84",keyTimes:"0;0.25;0.5;0.75;1",keySplines:"0 0.5 0.5 1;0 0.5 0.5 1;0 0.5 0.5 1;0 0.5 0.5 1",calcMode:"spline",dur:"2s",repeatCount:"indefinite",begin:"-1s"})),e.createElement("circle",{cx:"81.59",cy:"50",r:"10",fill:"currentColor"},e.createElement("animate",{attributeName:"r",values:"0;10;10;10;0",keyTimes:"0;0.25;0.5;0.75;1",keySplines:"0 0.5 0.5 1;0 0.5 0.5 1;0 0.5 0.5 1;0 0.5 0.5 1",calcMode:"spline",dur:"2s",repeatCount:"indefinite",begin:"-0.5s"}),e.createElement("animate",{attributeName:"cx",values:"16;16;50;84;84",keyTimes:"0;0.25;0.5;0.75;1",keySplines:"0 0.5 0.5 1;0 0.5 0.5 1;0 0.5 0.5 1;0 0.5 0.5 1",calcMode:"spline",dur:"2s",repeatCount:"indefinite",begin:"-0.5s"})),e.createElement("circle",{cx:"47.59",cy:"50",r:"10",fill:"currentColor"},e.createElement("animate",{attributeName:"r",values:"0;10;10;10;0",keyTimes:"0;0.25;0.5;0.75;1",keySplines:"0 0.5 0.5 1;0 0.5 0.5 1;0 0.5 0.5 1;0 0.5 0.5 1",calcMode:"spline",dur:"2s",repeatCount:"indefinite",begin:"0s"}),e.createElement("animate",{attributeName:"cx",values:"16;16;50;84;84",keyTimes:"0;0.25;0.5;0.75;1",keySplines:"0 0.5 0.5 1;0 0.5 0.5 1;0 0.5 0.5 1;0 0.5 0.5 1",calcMode:"spline",dur:"2s",repeatCount:"indefinite",begin:"0s"})),e.createElement("circle",{cx:"16",cy:"50",r:"9.291",fill:"currentColor"},e.createElement("animate",{attributeName:"r",values:"0;0;10;10;10",keyTimes:"0;0.25;0.5;0.75;1",keySplines:"0 0.5 0.5 1;0 0.5 0.5 1;0 0.5 0.5 1;0 0.5 0.5 1",calcMode:"spline",dur:"2s",repeatCount:"indefinite",begin:"0s"}),e.createElement("animate",{attributeName:"cx",values:"16;16;16;50;84",keyTimes:"0;0.25;0.5;0.75;1",keySplines:"0 0.5 0.5 1;0 0.5 0.5 1;0 0.5 0.5 1;0 0.5 0.5 1",calcMode:"spline",dur:"2s",repeatCount:"indefinite",begin:"0s"}))))};Wr.propTypes={width:l.object,height:l.object,iconColor:l.object};var qr={"./collection-filter.m.css":{navigator:"collection-filter-m_navigator__3MDUp",wrapper:"collection-filter-m_wrapper__3Nx_h","collection-filter":"collection-filter-m_collection-filter__3At2n",divider:"collection-filter-m_divider__3Nm-k",dark:"collection-filter-m_dark__2LMGY",light:"collection-filter-m_light__1wyGa","subCollection-wrapper":"collection-filter-m_subCollection-wrapper__14azF","subCollection-stories":"collection-filter-m_subCollection-stories__2RDkI",cards:"collection-filter-m_cards__1Co_7","last-column":"collection-filter-m_last-column__UP63_",card:"collection-filter-m_card__2IOTX","card-wrapper":"collection-filter-m_card-wrapper__qzzWB","child-collections":"collection-filter-m_child-collections__2-FiJ","child-collection":"collection-filter-m_child-collection__1YB-F","child-collection-wrapper":"collection-filter-m_child-collection-wrapper__2ezSh","open-subchild":"collection-filter-m_open-subchild__koie_",fadein:"collection-filter-m_fadein__Dxs8G",fadeIn:"collection-filter-m_fadeIn__1AtGp"}};function Gr(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,o)}return r}function Ur(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Gr(Object(r),!0).forEach((function(t){x(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Gr(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var Zr,Yr=function(t){var r=t.collection,l=t.config,c=void 0===l?{}:l,u=c.collectionNameBorderColor,h=void 0===u?"":u,f=c.borderColor,p=void 0===f?"":f,g=c.theme,_=void 0===g?"":g,b=c.slotConfig,y=void 0===b?[]:b,w=c.border,k=void 0===w?"":w,C=c.collectionNameTemplate,z=void 0===C?"":C,N=c.footerSlotConfig,j=void 0===N?{}:N,S=c.footerButton,I=void 0===S?"":S,M=s(y,[0],{}),A=M.type,R=void 0===A?"story":A,P=M.component,H=j.footerSlot,B=T(o([]),2),F=B[0],D=B[1],W=T(o({}),2),q=W[0],G=W[1],U=T(o(0),2),Z=U[0],Y=U[1],J=T(o(!0),2),V=J[0],$=J[1],X=s(r,["items"],[]).filter((function(e){return"collection"===e.type}));if(X.length<1)return null;var K=X.map((function(e){return e.id})),Q=function(e,t){G((function(r){return Ur(Ur({},r),{},x({},e,t))}))};function ee(){return te.apply(this,arguments)}function te(){return te=E(L.mark((function e(){var t,r,o,n,i=arguments;return L.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=i.length>0&&void 0!==i[0]?i[0]:K[0],$(!0),e.prev=2,r={},t in q){e.next=11;break}return e.next=7,a.get("/api/v1/collections/".concat(t));case 7:o=e.sent,r=o.data,e.next=12;break;case 11:r=q[t];case 12:Q(t,r),n=v(r),$(!1),D(n),e.next=21;break;case 18:e.prev=18,e.t0=e.catch(2),console.error("API call failed",e.t0);case 21:case"end":return e.stop()}}),e,null,[[2,18]])}))),te.apply(this,arguments)}n((function(e){ee(e)}),[]);var re=d(),oe=m((function(e){return s(e,["qt","config"],{})})),ne=$t(X[Z],oe),ie=F.slice(0,9),ae=Zt(_),le=H?H():null;return e.createElement("div",{className:"full-width-with-padding arrow-component","data-test-id":"collection-filter",style:{backgroundColor:_,color:ae}},e.createElement("div",{className:"collection-filter-m_wrapper__3Nx_h"},e.createElement(Qt,{collection:r,collectionNameTemplate:z,collectionNameBorderColor:h}),e.createElement("div",{className:"collection-filter-m_collection-filter__3At2n"},e.createElement("div",{className:"collection-filter-m_child-collections__2-FiJ"},X.map((function(t,r){return e.createElement("div",{key:r,className:O("child-collection-wrapper ".concat(r===Z?"open-subchild":""),qr)},e.createElement("div",{onClick:function(e){return function(e,t,r){e.stopPropagation(),ee(r),Y(Z===t?0:t)}(e,r,t.id)},className:O("child-collection ".concat(ae),qr)},t.name),e.createElement("span",{className:O("navigator ".concat(ae),qr)}))}))),e.createElement("span",{className:O("divider ".concat(ae),qr)}),e.createElement("div",{className:"collection-filter-m_subCollection-wrapper__14azF"},V?e.createElement(Wr,null):e.createElement("div",{className:"collection-filter-m_subCollection-stories__2RDkI"},e.createElement("div",{className:"collection-filter-m_cards__1Co_7"},ie.slice(0,1).map((function(t,r){return e.createElement("div",{className:"collection-filter-m_card__2IOTX",key:r},e.createElement(Pr,{story:t,border:k,theme:_,config:c},e.createElement(Ir,{story:t,aspectRatio:[[16,9]]}),e.createElement(Fr,{story:t,border:k,borderColor:p,config:c})))})),ie.slice(1,4).map((function(t,r){return e.createElement(i,{key:r},function(t,r){return e.createElement("div",{className:"collection-filter-m_card__2IOTX",key:r},e.createElement(Pr,{story:t,isHorizontalMobile:!0,theme:_,border:k,borderColor:p,config:c},e.createElement(Ir,{story:t,isHorizontalMobile:!0}),e.createElement(Fr,{story:t,border:k,borderColor:p,config:c})))}(t,r))}))),e.createElement("div",{className:"collection-filter-m_last-column__UP63_"},ie.slice(4,6).map((function(t,r){return e.createElement(i,{key:r},function(t,r){return e.createElement("div",{className:"collection-filter-m_card__2IOTX",key:r},e.createElement(Pr,{story:t,isHorizontal:!0,theme:_,border:k,borderColor:p,config:c},e.createElement(Ir,{story:t,isHorizontal:!0,aspectRatio:[[1,1]]}),e.createElement(Fr,{story:t,isHorizontal:!0,border:k,borderColor:p,config:c})))}(t,r))})),function(e,t,r,o){switch(e){case"story":return r();case"collection":return o();default:return t?t():null}}(R,P,(function(){return function(t){return e.createElement("div",null,t.slice(6,9).map((function(t,r){return e.createElement("div",{className:"collection-filter-m_card__2IOTX",key:r},e.createElement(Pr,{story:t,isHorizontal:!0,theme:_,border:k,borderColor:p,config:c},e.createElement(Ir,{story:t,isHorizontal:!0,aspectRatio:[[1,1]]}),e.createElement(Fr,{story:t,border:k,borderColor:p,config:c})))})))}(ie)})))))),e.createElement(or,{collection:X[Z],template:I,config:c,navigate:function(){return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";global.app.navigateToPage(e,t)}(re,ne)},qtConfig:oe}),le))},Jr=(Zr=Yr,function(t){return e.createElement(S.Provider,{value:t.config},e.createElement(Zr,t))});Yr.propTypes={collection:l.object.isRequired,config:l.shape({borderColor:l.string,theme:l.string,border:l.string,slotConfig:l.array,collectionNameTemplate:l.string,footerSlotConfig:l.object,footerButton:l.string,collectionNameBorderColor:l.string})},Yr.defaultProps={theme:"#ffffff",slotConfig:"story",border:""};export{Jr as default};
@@ -1 +0,0 @@
1
- import t,{useContext as e,createContext as r}from"react";import{connect as n}from"react-redux";import o,{PropTypes as i}from"prop-types";import{Link as a}from"@quintype/components";import c from"lodash.get";import"react-timeago";import"date-fns-tz";var l="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function u(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function s(t){var e={exports:{}};return t(e,e.exports),e.exports}var f=s((function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r={attributeNames:{styleName:"className"},generateScopedName:"[path]___[name]__[local]___[hash:base64:5]",handleMissingStyleName:"throw"};e.default=r})),h=u(s((function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r,n=(r=f)&&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,l=void 0===c?n.default.handleMissingStyleName:c,u=a.autoResolveMultipleImports,s=void 0===u?n.default.autoResolveMultipleImports:u;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],l=r||n.default.handleMissingStyleName;return c?e[a]?e[a][c]?e[a][c]:o("CSS module does not exist: "+c,l):o("CSS module import does not exist: "+a,l):o("Invalid style name: "+t,l)}(t,e,l);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,l)}var r=e[i[0]];return r[t]?r[t]:o("Could not resolve the styleName '"+t+"'.",l)})).filter((function(t){return t})).join(" "):""}}))),p=r();s((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 l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function u(t,e,r,n){var o=e&&e.prototype instanceof m?e:m,i=Object.create(o.prototype),a=new S(n||[]);return i._invoke=function(t,e,r){var n=f;return function(o,i){if(n===p)throw new Error("Generator is already running");if(n===d){if("throw"===o)throw i;return P()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var c=O(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=d,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n=p;var l=s(t,e,r);if("normal"===l.type){if(n=r.done?d:h,l.arg===v)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(n=d,r.method="throw",r.arg=l.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=u;var f="suspendedStart",h="suspendedYield",p="executing",d="completed",v={};function m(){}function y(){}function g(){}var _={};l(_,i,(function(){return this}));var b=Object.getPrototypeOf,w=b&&b(b(F([])));w&&w!==r&&n.call(w,i)&&(_=w);var x=g.prototype=m.prototype=Object.create(_);function j(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function L(t,e){function r(o,i,a,c){var l=s(t[o],t,i);if("throw"!==l.type){var u=l.arg,f=u.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){u.value=t,a(u)}),(function(t){return r("throw",t,a,c)}))}c(l.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 O(t,r){var n=t.iterator[r.method];if(n===e){if(r.delegate=null,"throw"===r.method){if(t.iterator.return&&(r.method="return",r.arg=e,O(t,r),"throw"===r.method))return v;r.method="throw",r.arg=new TypeError("The iterator does not provide a 'throw' method")}return v}var o=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 E(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 N(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function S(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(E,this),this.reset(!0)}function F(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:P}}function P(){return{value:e,done:!0}}return y.prototype=g,l(x,"constructor",g),l(g,"constructor",y),y.displayName=l(g,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===y||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,g):(t.__proto__=g,l(t,c,"GeneratorFunction")),t.prototype=Object.create(x),t},t.awrap=function(t){return{__await:t}},j(L.prototype),l(L.prototype,a,(function(){return this})),t.AsyncIterator=L,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new L(u(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},j(x),l(x,c,"Generator"),l(x,i,(function(){return this})),l(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=F,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(N),!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 l=n.call(a,"catchLoc"),u=n.call(a,"finallyLoc");if(l&&u){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(!u)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),N(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;N(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:F(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 d=Array.isArray,v="object"==typeof l&&l&&l.Object===Object&&l,m="object"==typeof self&&self&&self.Object===Object&&self,y=v||m||Function("return this")(),g=y.Symbol,_=Object.prototype,b=_.hasOwnProperty,w=_.toString,x=g?g.toStringTag:void 0;var j=function(t){var e=b.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},L=Object.prototype.toString;var O=function(t){return L.call(t)},E=g?g.toStringTag:void 0;var N=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":E&&E in Object(t)?j(t):O(t)};var S=function(t){return null!=t&&"object"==typeof t};var F=function(t){return"symbol"==typeof t||S(t)&&"[object Symbol]"==N(t)},P=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,T=/^\w*$/;var k=function(t,e){if(d(t))return!1;var r=typeof t;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=t&&!F(t))||(T.test(t)||!P.test(t)||null!=e&&t in Object(e))};var z=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)};var I,M=function(t){if(!z(t))return!1;var e=N(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e},B=y["__core-js_shared__"],C=(I=/[^.]+$/.exec(B&&B.keys&&B.keys.IE_PROTO||""))?"Symbol(src)_1."+I:"";var A=function(t){return!!C&&C in t},$=Function.prototype.toString;var G=function(t){if(null!=t){try{return $.call(t)}catch(t){}try{return t+""}catch(t){}}return""},R=/^\[object .+?Constructor\]$/,Y=Function.prototype,D=Object.prototype,q=Y.toString,V=D.hasOwnProperty,H=RegExp("^"+q.call(V).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var J=function(t){return!(!z(t)||A(t))&&(M(t)?H:R).test(G(t))};var K=function(t,e){return null==t?void 0:t[e]};var Q=function(t,e){var r=K(t,e);return J(r)?r:void 0},U=Q(Object,"create");var W=function(){this.__data__=U?U(null):{},this.size=0};var X=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},Z=Object.prototype.hasOwnProperty;var tt=function(t){var e=this.__data__;if(U){var r=e[t];return"__lodash_hash_undefined__"===r?void 0:r}return Z.call(e,t)?e[t]:void 0},et=Object.prototype.hasOwnProperty;var rt=function(t){var e=this.__data__;return U?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]=U&&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=W,ot.prototype.delete=X,ot.prototype.get=tt,ot.prototype.has=rt,ot.prototype.set=nt;var it=ot;var at=function(){this.__data__=[],this.size=0};var ct=function(t,e){return t===e||t!=t&&e!=e};var lt=function(t,e){for(var r=t.length;r--;)if(ct(t[r][0],e))return r;return-1},ut=Array.prototype.splice;var st=function(t){var e=this.__data__,r=lt(e,t);return!(r<0)&&(r==e.length-1?e.pop():ut.call(e,r,1),--this.size,!0)};var ft=function(t){var e=this.__data__,r=lt(e,t);return r<0?void 0:e[r][1]};var ht=function(t){return lt(this.__data__,t)>-1};var pt=function(t,e){var r=this.__data__,n=lt(r,t);return n<0?(++this.size,r.push([t,e])):r[n][1]=e,this};function dt(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}dt.prototype.clear=at,dt.prototype.delete=st,dt.prototype.get=ft,dt.prototype.has=ht,dt.prototype.set=pt;var vt=dt,mt=Q(y,"Map");var yt=function(){this.size=0,this.__data__={hash:new it,map:new(mt||vt),string:new it}};var gt=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t};var _t=function(t,e){var r=t.__data__;return gt(e)?r["string"==typeof e?"string":"hash"]:r.map};var bt=function(t){var e=_t(this,t).delete(t);return this.size-=e?1:0,e};var wt=function(t){return _t(this,t).get(t)};var xt=function(t){return _t(this,t).has(t)};var jt=function(t,e){var r=_t(this,t),n=r.size;return r.set(t,e),this.size+=r.size==n?0:1,this};function Lt(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])}}Lt.prototype.clear=yt,Lt.prototype.delete=bt,Lt.prototype.get=wt,Lt.prototype.has=xt,Lt.prototype.set=jt;var Ot=Lt;function Et(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(Et.Cache||Ot),r}Et.Cache=Ot;var Nt=Et;var St=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ft=/\\(\\)?/g,Pt=function(t){var e=Nt(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(St,(function(t,r,n,o){e.push(n?o.replace(Ft,"$1"):r||t)})),e}));var Tt=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=g?g.prototype:void 0,zt=kt?kt.toString:void 0;var It=function t(e){if("string"==typeof e)return e;if(d(e))return Tt(e,t)+"";if(F(e))return zt?zt.call(e):"";var r=e+"";return"0"==r&&1/e==-Infinity?"-0":r};var Mt=function(t){return null==t?"":It(t)};var Bt=function(t,e){return d(t)?t:k(t,e)?[t]:Pt(Mt(t))};var Ct=function(t){if("string"==typeof t||F(t))return t;var e=t+"";return"0"==e&&1/t==-Infinity?"-0":e};var At=function(t,e){for(var r=0,n=(e=Bt(e,t)).length;null!=t&&r<n;)t=t[Ct(e[r++])];return r&&r==n?t:void 0};var $t=function(t,e,r){var n=null==t?void 0:At(t,e);return void 0===n?r:n},Gt=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},Rt=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},Yt={mobile:767,tablet:1024};o.shape({"sketches-host":o.string,"cdn-name":o.string,"cdn-image":o.string}),o.shape({headline:o.string,"last-published-at":o.number,subheadline:o.string});var Dt={"./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(r){var n,o=r.collectionNameBorderColor,i=void 0===o?"":o,l=r.collection,u=r.config,s=r.collectionNameTemplate,f=r.headerLevel,d=r.customCollectionName,v=void 0===d?"":d,m=r.navigate,y=void 0===m||m,g=e(p)||{},_=c(g,["showRowTitle"],!0),b=["borderLeft","borderBottom","crossLine","borderBottomFull"].includes(s)?" collection-".concat(s):"",w=y&&l&&function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=e.magazineSlug,n=void 0===r?"":r,o=e.isArchivePage;if(void 0!==o&&o)return"/magazine/archive/".concat(n);if(n)return"/magazine/".concat(n,"/").concat(t.slug);if("section"===t.template){var i=$t(t,["metadata","section","0","id"],""),a=e.sections,c=a&&a.find((function(t){return t.id===i}));return c?c["section-url"]:"/"}return"/collection/".concat(t.slug)}(l,u)||"",x=v||l.name||"",j=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"rgb(255,255,255)",e=/^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/.test(t)?t:Rt(t);return Gt(e)<155?"light":"dark"}(g.theme),L="h"+f,O=Rt(i),E=b.includes("collection-borderBottomFull")?"4px solid ".concat(O):"",N=!!(n=$t(Yt,"mobile"))&&$t(global,"document.documentElement.clientWidth")<=n;return t.createElement(t.Fragment,null,_&&x&&t.createElement("div",{style:{borderBottom:E},"data-test-id":"collection-name",className:("arr--collection-name arrow-component ".concat(b)?"arr--collection-name arrow-component ".concat(b)+" ":"")+h("collection ".concat(j," ").concat(b),Dt)},b.includes("collection-borderLeft")&&t.createElement("span",{className:"arr-collection-name-border-left collection-name-m_border-left__3_pYw",style:{color:O,fontSize:function(){if(N)switch(f){case"1":return"32px";case"2":return"24px";case"3":default:return"20px";case"4":return"18px";case"5":case"6":return"16px"}switch(f){case"1":return"40px";case"2":return"32px";case"3":default:return"24px";case"4":return"20px";case"5":return"18px";case"6":return"16px"}}()}}),w&&!w.includes(void 0)?t.createElement(a,{href:w,"aria-label":"collection-name"},t.createElement(L,null,x)):t.createElement(L,null,x),b.includes("collection-borderBottom")&&!b.includes("collection-borderBottomFull")?t.createElement("div",{className:"collection-name-m_border-bottom__1MnlV",style:{borderBottom:"4px solid ".concat(O)}}):""))};qt.propTypes={collectionNameBorderColor:i.string,collection:i.object,config:i.object,collectionNameTemplate:i.oneOf(["","borderLeft","borderBottom","crossLine","borderBottomFull"]),headerLevel:i.string,customCollectionName:i.string,navigate:i.bool},qt.defaultProps={collectionNameTemplate:"",headerLevel:"3"};var Vt=n((function(t){return{config:c(t,["qt","config"],{})}}))(qt);export{Vt as CollectionName,qt as CollectionNameBase};
@@ -1 +0,0 @@
1
- import e,{createContext as t,useContext as r,Fragment as o}from"react";import n,{PropTypes as a}from"prop-types";import i from"lodash.get";import{Link as l,ResponsiveImage as c,ResponsiveHeroImage as s,LinkBase as m,collectionToStories as u}from"@quintype/components";import d from"react-timeago";import{utcToZonedTime as h,format as f}from"date-fns-tz";import{connect as p,useSelector as g,useDispatch as v}from"react-redux";var _="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function y(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function b(e){var t={exports:{}};return e(t,t.exports),t.exports}var w=b((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})),E=y(b((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,o=(r=w)&&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,m=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(!m)throw new Error("Cannot use anonymous style name '"+e+"' with more than one stylesheet import without setting 'autoResolveMultipleImports' to true.");return function(e,t,r){var 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(" "):""}}))),x=t(),k=function(){return r(x)};function L(e){return L="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},L(e)}b((function(e){var t=function(e){var t,r=Object.prototype,o=r.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},a=n.iterator||"@@iterator",i=n.asyncIterator||"@@asyncIterator",l=n.toStringTag||"@@toStringTag";function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,r){return e[t]=r}}function s(e,t,r,o){var n=t&&t.prototype instanceof g?t:g,a=Object.create(n.prototype),i=new z(o||[]);return a._invoke=function(e,t,r){var o=u;return function(n,a){if(o===h)throw new Error("Generator is already running");if(o===f){if("throw"===n)throw a;return I()}for(r.method=n,r.arg=a;;){var i=r.delegate;if(i){var l=L(i,r);if(l){if(l===p)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===u)throw o=f,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=h;var c=m(e,t,r);if("normal"===c.type){if(o=r.done?f:d,c.arg===p)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(o=f,r.method="throw",r.arg=c.arg)}}}(e,r,i),a}function m(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=s;var u="suspendedStart",d="suspendedYield",h="executing",f="completed",p={};function g(){}function v(){}function _(){}var y={};c(y,a,(function(){return this}));var b=Object.getPrototypeOf,w=b&&b(b(C([])));w&&w!==r&&o.call(w,a)&&(y=w);var E=_.prototype=g.prototype=Object.create(y);function x(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function k(e,t){function r(n,a,i,l){var c=m(e[n],e,a);if("throw"!==c.type){var s=c.arg,u=s.value;return u&&"object"==typeof u&&o.call(u,"__await")?t.resolve(u.__await).then((function(e){r("next",e,i,l)}),(function(e){r("throw",e,i,l)})):t.resolve(u).then((function(e){s.value=e,i(s)}),(function(e){return r("throw",e,i,l)}))}l(c.arg)}var n;this._invoke=function(e,o){function a(){return new t((function(t,n){r(e,o,t,n)}))}return n=n?n.then(a,a):a()}}function L(e,r){var o=e.iterator[r.method];if(o===t){if(r.delegate=null,"throw"===r.method){if(e.iterator.return&&(r.method="return",r.arg=t,L(e,r),"throw"===r.method))return p;r.method="throw",r.arg=new TypeError("The iterator does not provide a 'throw' method")}return p}var n=m(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 T(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function z(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:I}}function I(){return{value:t,done:!0}}return v.prototype=_,c(E,"constructor",_),c(_,"constructor",v),v.displayName=c(_,l,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===v||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,_):(e.__proto__=_,c(e,l,"GeneratorFunction")),e.prototype=Object.create(E),e},e.awrap=function(e){return{__await:e}},x(k.prototype),c(k.prototype,i,(function(){return this})),e.AsyncIterator=k,e.async=function(t,r,o,n,a){void 0===a&&(a=Promise);var i=new k(s(t,r,o,n),a);return e.isGeneratorFunction(r)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},x(E),c(E,l,"Generator"),c(E,a,(function(){return this})),c(E,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var o=t.pop();if(o in e)return r.value=o,r.done=!1,r}return r.done=!0,r}},e.values=C,z.prototype={constructor:z,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(T),!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),T(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;T(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 N=Array.isArray,T="object"==typeof _&&_&&_.Object===Object&&_,z="object"==typeof self&&self&&self.Object===Object&&self,C=T||z||Function("return this")(),I=C.Symbol,S=Object.prototype,j=S.hasOwnProperty,A=S.toString,O=I?I.toStringTag:void 0;var R=function(e){var t=j.call(e,O),r=e[O];try{e[O]=void 0;var o=!0}catch(e){}var n=A.call(e);return o&&(t?e[O]=r:delete e[O]),n},M=Object.prototype.toString;var B=function(e){return M.call(e)},P=I?I.toStringTag:void 0;var H=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":P&&P in Object(e)?R(e):B(e)};var F=function(e){return null!=e&&"object"==typeof e};var D=function(e){return"symbol"==typeof e||F(e)&&"[object Symbol]"==H(e)},W=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,q=/^\w*$/;var G=function(e,t){if(N(e))return!1;var r=typeof e;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=e&&!D(e))||(q.test(e)||!W.test(e)||null!=t&&e in Object(t))};var U=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)};var Q,Z=function(e){if(!U(e))return!1;var t=H(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},V=C["__core-js_shared__"],Y=(Q=/[^.]+$/.exec(V&&V.keys&&V.keys.IE_PROTO||""))?"Symbol(src)_1."+Q:"";var J=function(e){return!!Y&&Y in e},K=Function.prototype.toString;var $=function(e){if(null!=e){try{return K.call(e)}catch(e){}try{return e+""}catch(e){}}return""},X=/^\[object .+?Constructor\]$/,ee=Function.prototype,te=Object.prototype,re=ee.toString,oe=te.hasOwnProperty,ne=RegExp("^"+re.call(oe).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var ae=function(e){return!(!U(e)||J(e))&&(Z(e)?ne:X).test($(e))};var ie=function(e,t){return null==e?void 0:e[t]};var le=function(e,t){var r=ie(e,t);return ae(r)?r:void 0},ce=le(Object,"create");var se=function(){this.__data__=ce?ce(null):{},this.size=0};var me=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},ue=Object.prototype.hasOwnProperty;var de=function(e){var t=this.__data__;if(ce){var r=t[e];return"__lodash_hash_undefined__"===r?void 0:r}return ue.call(t,e)?t[e]:void 0},he=Object.prototype.hasOwnProperty;var fe=function(e){var t=this.__data__;return ce?void 0!==t[e]:he.call(t,e)};var pe=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=ce&&void 0===t?"__lodash_hash_undefined__":t,this};function ge(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])}}ge.prototype.clear=se,ge.prototype.delete=me,ge.prototype.get=de,ge.prototype.has=fe,ge.prototype.set=pe;var ve=ge;var _e=function(){this.__data__=[],this.size=0};var ye=function(e,t){return e===t||e!=e&&t!=t};var be=function(e,t){for(var r=e.length;r--;)if(ye(e[r][0],t))return r;return-1},we=Array.prototype.splice;var Ee=function(e){var t=this.__data__,r=be(t,e);return!(r<0)&&(r==t.length-1?t.pop():we.call(t,r,1),--this.size,!0)};var xe=function(e){var t=this.__data__,r=be(t,e);return r<0?void 0:t[r][1]};var ke=function(e){return be(this.__data__,e)>-1};var Le=function(e,t){var r=this.__data__,o=be(r,e);return o<0?(++this.size,r.push([e,t])):r[o][1]=t,this};function Ne(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var o=e[t];this.set(o[0],o[1])}}Ne.prototype.clear=_e,Ne.prototype.delete=Ee,Ne.prototype.get=xe,Ne.prototype.has=ke,Ne.prototype.set=Le;var Te=Ne,ze=le(C,"Map");var Ce=function(){this.size=0,this.__data__={hash:new ve,map:new(ze||Te),string:new ve}};var Ie=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e};var Se=function(e,t){var r=e.__data__;return Ie(t)?r["string"==typeof t?"string":"hash"]:r.map};var je=function(e){var t=Se(this,e).delete(e);return this.size-=t?1:0,t};var Ae=function(e){return Se(this,e).get(e)};var Oe=function(e){return Se(this,e).has(e)};var Re=function(e,t){var r=Se(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=Ce,Me.prototype.delete=je,Me.prototype.get=Ae,Me.prototype.has=Oe,Me.prototype.set=Re;var Be=Me;function Pe(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var r=function(){var o=arguments,n=t?t.apply(this,o):o[0],a=r.cache;if(a.has(n))return a.get(n);var i=e.apply(this,o);return r.cache=a.set(n,i)||a,i};return r.cache=new(Pe.Cache||Be),r}Pe.Cache=Be;var He=Pe;var Fe=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,De=/\\(\\)?/g,We=function(e){var t=He(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(Fe,(function(e,r,o,n){t.push(o?n.replace(De,"$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},Ge=I?I.prototype:void 0,Ue=Ge?Ge.toString:void 0;var Qe=function e(t){if("string"==typeof t)return t;if(N(t))return qe(t,e)+"";if(D(t))return Ue?Ue.call(t):"";var r=t+"";return"0"==r&&1/t==-Infinity?"-0":r};var Ze=function(e){return null==e?"":Qe(e)};var Ve=function(e,t){return N(e)?e:G(e,t)?[e]:We(Ze(e))};var Ye=function(e){if("string"==typeof e||D(e))return e;var t=e+"";return"0"==t&&1/e==-Infinity?"-0":t};var Je=function(e,t){for(var r=0,o=(t=Ve(t,e)).length;null!=e&&r<o;)e=e[Ye(t[r++])];return r&&r==o?e:void 0};var Ke=function(e,t,r){var o=null==e?void 0:Je(e,t);return void 0===o?r:o};var $e=function(e,t,r,o){var n=-1,a=null==e?0:e.length;for(o&&a&&(r=e[++n]);++n<a;)r=t(r,e[n],n,e);return r};var Xe=function(e){return function(t){return null==e?void 0:e[t]}}({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"}),et=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,tt=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]","g");var rt=function(e){return(e=Ze(e))&&e.replace(et,Xe).replace(tt,"")},ot=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;var nt=function(e){return e.match(ot)||[]},at=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;var it=function(e){return at.test(e)},lt="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",ct="["+lt+"]",st="\\d+",mt="[\\u2700-\\u27bf]",ut="[a-z\\xdf-\\xf6\\xf8-\\xff]",dt="[^\\ud800-\\udfff"+lt+st+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",ht="(?:\\ud83c[\\udde6-\\uddff]){2}",ft="[\\ud800-\\udbff][\\udc00-\\udfff]",pt="[A-Z\\xc0-\\xd6\\xd8-\\xde]",gt="(?:"+ut+"|"+dt+")",vt="(?:"+pt+"|"+dt+")",_t="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?",yt="[\\ufe0e\\ufe0f]?"+_t+("(?:\\u200d(?:"+["[^\\ud800-\\udfff]",ht,ft].join("|")+")[\\ufe0e\\ufe0f]?"+_t+")*"),bt="(?:"+[mt,ht,ft].join("|")+")"+yt,wt=RegExp([pt+"?"+ut+"+(?:['’](?:d|ll|m|re|s|t|ve))?(?="+[ct,pt,"$"].join("|")+")",vt+"+(?:['’](?:D|LL|M|RE|S|T|VE))?(?="+[ct,pt+gt,"$"].join("|")+")",pt+"?"+gt+"+(?:['’](?:d|ll|m|re|s|t|ve))?",pt+"+(?:['’](?:D|LL|M|RE|S|T|VE))?","\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",st,bt].join("|"),"g");var Et=function(e){return e.match(wt)||[]};var xt=function(e,t,r){return e=Ze(e),void 0===(t=r?void 0:t)?it(e)?Et(e):nt(e):e.match(t)||[]},kt=RegExp("['’]","g");var Lt=function(e){return function(t){return $e(xt(rt(t).replace(kt,"")),e,"")}},Nt=Lt((function(e,t,r){return e+(r?" ":"")+t.toUpperCase()})),Tt=Nt,zt=Lt((function(e,t,r){return e+(r?" ":"")+t.toLowerCase()})),Ct=zt;var It=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,m=void 0!==s&&s,u=n.disableMeridiem,d=void 0!==u&&u,h=n.timeFormat,f=void 0===h?"12hours":h,p=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],g=new Date(o),v=g.getDate().toString().padStart(2,0),_=p[g.getMonth()],y=_;m&&(y=Tt(_));var b,w=g.getFullYear(),E=n.localizedMeridiem,x=n.localizedMonths,k=n.direction,L=void 0===k?"ltr":k,N=jt(o,f),T=N;if(x&&(y=Ke(x,[Ct(_)])||_),E){var z=N.includes("am"),C=E.am,I=void 0===C?"am":C,S=E.pm,j=void 0===S?"pm":S;T=(z?N.replace("am",I):N.replace("pm",j))||N}return"rtl"===L?(b=i?"".concat(T):"","".concat(v," ").concat(y,", ").concat(w," ").concat(b," ")):d?"".concat(y," ").concat(v,", ").concat(w):c?"".concat(T,", ").concat(v," ").concat(y," ").concat(w):(b=i?", ".concat(T):"","".concat(v," ").concat(y,", ").concat(w).concat(b))};function St(e,t,r,o,n){var a,i=Ke(n,["localizedPublishTime",r])||r;return"hour"===t&&e>23||-1!==["day","week","month","year"].indexOf(t)?It(e,t,r,o,n):e>1?(a=Ke(n,["localizedPublishTime","".concat(t,"s")])||"".concat(t,"s"),"".concat(e," ").concat(a," ").concat(i)):(a=Ke(n,["localizedPublishTime",t])||t,"".concat(e," ").concat(a," ").concat(i," "))}function jt(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"12hours",r=new Date(e),o=r.getHours(),n=r.getMinutes(),a=o>=12?"pm":"am",i=(o=(o%=12)||12)+":"+(n=n<10?"0"+n:n)+" "+a;return"24hours"===t?r.toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"}):i}var 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},Ot=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"rgba(255, 255, 255, 0)",t=e.match(/^rgba?[\s+]?\([\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?/i);return t&&4===t.length?"#"+("0"+parseInt(t[1],10).toString(16)).slice(-2)+("0"+parseInt(t[2],10).toString(16)).slice(-2)+("0"+parseInt(t[3],10).toString(16)).slice(-2):e},Rt={mobile:767,tablet:1024},Mt=function(e){var t=Ke(Rt,e);return!!t&&Ke(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:Ot(e),o=At(r)<155?"light":"dark";return o},Pt=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=Ke(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 Ht(){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?Ke(n,["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 Ft=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return"news-elsewhere"===Ke(e,["story-template"])?Ke(e,["metadata","reference-url"],""):e.url||t},Dt=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?Pt(e,t):"/"},Wt=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"}))))))};Wt.propTypes={height:n.string,width:n.string,color:n.string,positionTop:n.string};var qt=function(t){var r=t.height,o=t.width,n=t.color,a=void 0===n?"#D5D5D5":n,i=t.positionTop;return e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:o,height:r,viewBox:"0 0 40 40",style:{position:"relative",top:i}},e.createElement("g",{fill:"none",fillRule:"evenodd",stroke:"none",strokeWidth:"1"},e.createElement("g",null,e.createElement("g",{transform:"translate(8 8)"},e.createElement("path",{d:"M0 0H24V24H0z"}),e.createElement("path",{fill:a,fillRule:"nonzero",d:"M12.71 4.364A6.54 6.54 0 000 6.545a6.54 6.54 0 0012.71 2.182h4.745v4.364h4.363V8.727H24V4.364H12.71zM6.544 8.727a2.181 2.181 0 110-4.362 2.181 2.181 0 010 4.362z",transform:"translate(0 5)"})))))};qt.propTypes={height:n.string,width:n.string,color:n.string,positionTop:n.string};var Gt=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"}))))))};Gt.propTypes={height:n.string,width:n.string,color:n.string,positionTop:n.string};var Ut=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"}))))};Ut.propTypes={height:n.string,width:n.string,color:n.string,positionTop:n.string};var Qt=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(Wt,{width:r,height:o,color:n,positionTop:i});case"lock":return e.createElement(Gt,{width:r,height:o,color:n,positionTop:i});case"key":return e.createElement(qt,{width:r,height:o,color:n,positionTop:i});default:return e.createElement(Ut,{width:r,height:o,color:n,positionTop:i})}};function Zt(){return e.createElement("svg",{className:"live-icon",xmlns:"http://www.w3.org/2000/svg",width:"25",height:"24",viewBox:"0 0 25 24"},e.createElement("path",{fill:"#ff5858",d:"M12 18a6 6 0 110-12 6 6 0 010 12zm0 2.5a8.5 8.5 0 110-17 8.5 8.5 0 010 17zm0-1a7.5 7.5 0 100-15 7.5 7.5 0 000 15z"}))}Qt.propTypes={width:n.string,height:n.string,color:n.string,iconType:n.string,positionTop:n.string};var Vt={"./headline.m.css":{wrapper:"headline-m_wrapper__3nUmh",headline:"headline-m_headline__3_NhV",dark:"headline-m_dark__en3hW",light:"headline-m_light__3lKJB"}},Yt=function(t){var r=t.story,o=t.headerLevel,n=t.premiumStoryIconConfig,a=void 0===n?{}:n,c=t.isLink,s=k()||{},m=a.iconColor,u=void 0===m?"#F7B500":m,d=a.iconStyle,h=void 0===d?"star":d,f=a.enablePremiumStoryIcon,p=void 0!==f&&f,g=a.showLiveIcon,v=void 0!==g&&g,_=i(r,["alternative","home","default","headline"]),y=p&&"subscription"===i(r,["access"]),b=_||r.headline,w="h"+o,x=Bt(s.theme),L=y?"wrapper":"",N="24px",T=v&&"live-blog"===r["story-template"]&&!i(r,["metadata","is-closed"],!1);return e.createElement("div",{"data-test-id":"headline",className:"arrow-component arr--headline "+E(L,Vt)},y&&e.createElement(Qt,{width:N,height:N,color:u,iconType:h,positionTop:function(){switch(parseInt(o)){case 1:return"-2px";case 2:return"2px";case 3:return"4px";case 4:return"5px";default:return"6px"}}()}),c?e.createElement(l,{href:Ft(r,"/".concat(r.slug)),externalLink:Ht(r),"aria-label":"headline"},e.createElement(w,{className:E("headline ".concat(x),Vt)},T&&e.createElement(Zt,null),b)):e.createElement(w,{className:E("headline ".concat(x),Vt)},T&&e.createElement(Zt,null),b))};Yt.propTypes={story:n.object.isRequired,headerLevel:n.string,premiumStoryIconConfig:n.shape({iconColor:n.string,iconType:n.string,enablePremiumStoryIcon:n.bool}),isLink:n.bool},Yt.defaultProps={headerLevel:"6",isLink:!0};var Jt={"./subheadline.m.css":{subheadline:"subheadline-m_subheadline__3fd7z",dark:"subheadline-m_dark__28u00",light:"subheadline-m_light__2YUOe"}},Kt=function(t){var r=t.story,o=t.truncateChars,n=void 0===o?200:o,a=t.lineClamp,l=t.clazzName,c=void 0===l?"":l,s=t.forceShowAtom,m=t.showFullContent,u=k()||{};if(!(s||i(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(c)?"p-alt arr--sub-headline arrow-component ".concat(c)+" ":"")+E("subheadline ".concat(d),Jt)},m||"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))};Kt.propTypes={story:n.object.isRequired,lineClamp:n.number,truncateChars:n.number,clazzName:n.string,forceShowAtom:n.bool,showFullContent:n.bool},Kt.defaultProps={forceShowAtom:!1,showFullContent:!1};var $t={"./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"}},Xt=function(t){var r=t.story,o=t.isBottom,n=t.config,a=void 0===n?{}:n,l=k()||{},c=i(a,["showTime"],i(l,["showTime"],!0)),s=r["last-published-at"]||r["first-published-at"],m=o?"bottom-fix":"",u=Bt(l.theme);return e.createElement(e.Fragment,null,c&&e.createElement("div",{"data-test-id":"publish-time",className:"time arr--publish-time "+E("time ".concat(u," ").concat(m),$t)},e.createElement("div",{className:"timestamp-m_time-wrapper__3O2lM"},function(t,r){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=arguments.length>3?arguments[3]:void 0,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null;if(a&&"story"===n){var i=a&&h(t,a),l=i&&f(i,"yyyy-MM-dd'T'HH:mm:ssXXX",{timeZone:a}),c=It("","","",t,o);return e.createElement("time",{dateTime:l},c)}return e.createElement(d,{date:t,formatter:function(e,t,n,a){return r(e,t,n,a,o)}})}(s,St,a))))};Xt.propTypes={story:n.object,isBottom:n.bool,config:n.object};var er={"./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"}},tr=function(t){var r=t.story,o=t.hideAuthorImage,n=t.isBottom,a=t.prefix,s=void 0===a?"":a,m=t.config,u=void 0===m?{}:m,d=k()||{},h=i(d,["showAuthor"],!0),f=i(r,["authors","0"],""),p=f["avatar-url"],g=f["avatar-s3-key"],v=f.name,_=f.slug,y=n?"bottom-fix":"",b=Bt(d.theme),w=i(u,["mountAt"],""),x=function(t){return s?e.createElement("div",{className:"arr-author-prefix "+E("prefix ".concat(b),er)},s):!o&&function(t){return p||g?e.createElement("div",{"data-test-id":"author-image",className:E("author-image ".concat(t,"-image"),er)},e.createElement("figure",null,g?e.createElement(c,{slug:g,"aspect-ratio":[1,1],defaultWidth:400,imgParams:{auto:["format","compress"]},alt:v}):e.createElement("img",{src:p}))):null}(t)};return e.createElement(e.Fragment,null,h&&e.createElement(l,{href:"".concat(w,"/author/")+_,"aria-label":"author-name",className:"author-name arr-author-name arrow-component "+E("author ".concat(y),er)},x("ltr"),e.createElement("div",{"data-test-id":"author-name",className:"author-name "+E("author-name ".concat(b),er)},v||r["author-name"]),!s&&x("rtl")))};var rr=p((function(e){return{config:i(e,["qt","config"],{})}}))(tr);tr.propTypes={story:n.object.isRequired,hideAuthorImage:n.bool,isBottom:n.bool,prefix:n.string,config:n.object},tr.defaultProps={hideAuthorImage:!1,isBottom:!1,prefix:""};var or={"./dot.m.css":{dark:"dot-m_dark__1Njxl",light:"dot-m_light__27IA3"}},nr=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:E(l,or)},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)"})))};nr.propTypes={color:n.string,width:n.string,height:n.string};var ar={"./divider.m.css":{dark:"divider-m_dark__26FRi",light:"divider-m_light__w-7sy"}},ir=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:E(l,ar)},e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:o,height:a},e.createElement("path",{fill:"inherit",d:"M0 0h1v10H0z"})))};ir.propTypes={color:n.string,width:n.string,height:n.string};var lr={"./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"}},cr=function(t){var r=t.story,o=t.opts,n=void 0===o?{}:o,a=t.isLightTheme,l=void 0!==a&&a,c=k()||{},s=i(c,["showReadTime"])||i(n,["showReadTime"],!0),m=i(r,["read-time"],0),u=l?"light":Bt(c.theme);if(!s||!m)return null;var d=i(n,["localizedTimeToRead"])||"min read";return e.createElement(e.Fragment,null,e.createElement("div",{"data-test-id":"read-time",className:"arrow-component arr--read-time "+E("read-time-wrapper ".concat(u),lr)},e.createElement("span",{className:"read-time-indicator read-time-m_dot-indicator__3Sqh2"},e.createElement(nr,{color:u})),e.createElement("span",null,m," ",d)))};cr.propTypes={story:n.shape({"read-time":n.number}),opts:n.shape({showReadTime:n.bool}),isLightTheme:n.bool};var sr={"./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"}},mr=function(t){var r=t.story,o=t.separator,n=t.isBottom,a=t.hideAuthorImage,l=t.prefix,c=t.config,s=void 0===c?{}:c,m=t.isLightTheme,u=k()||{},d=i(s,["showAuthor"],i(u,["showAuthor"],!0)),h=i(s,["showTime"],i(u,["showTime"],!0)),f=i(u,["showReadTime"],!0),p=n?"bottom-fix":"",g="dot"===o?"dot":"dash",v=m?"light":Bt(u.theme),_=function(){return h?e.createElement(e.Fragment,null,d&&e.createElement("span",{className:"arr-separator "+E("".concat(g),sr)},"divider"===o?e.createElement(ir,{color:v}):e.createElement(nr,{color:v})),e.createElement(Xt,{story:r,config:s}),f&&e.createElement(cr,{story:r,opts:s,isLightTheme:m})):null};return e.createElement("div",{className:"arr--author-time "+E("author-time-wrapper ".concat(p),sr)},d?e.createElement(e.Fragment,null,e.createElement(rr,{story:r,isBottom:!0,hideAuthorImage:a,prefix:l}),_()):_())};function ur(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 dr(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 ur(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)?ur(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.")}()}mr.propTypes={story:n.object,separator:n.oneOf(["dot","divider"]),hideAuthorImage:n.bool,isBottom:n.bool,prefix:n.string,config:n.object,isLightTheme:n.bool},mr.defaultProps={separator:"dot",isBottom:!1,hideAuthorImage:!0,prefix:"",isLightTheme:!1};var hr=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"}))))};hr.propTypes={width:n.object,height:n.object,iconColor:n.object};var fr=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(hr,null)))},pr=function(t){var r=t.slug;return r?e.createElement(l,{href:r,"aria-label":"image-fallback"},fr()):fr()};pr.propTypes={slug:n.string};var gr=function(){return e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"36",height:"28"},e.createElement("g",{fill:"none",fillRule:"evenodd"},e.createElement("rect",{width:"36",height:"28",fill:"#3D6FCF",rx:"4"}),e.createElement("path",{stroke:"#FFF",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M22 14.667v4c0 .736-.597 1.333-1.333 1.333h-7.334A1.333 1.333 0 0112 18.667v-7.334c0-.736.597-1.333 1.333-1.333h4M20 8h4v4m-7.333 3.333L24 8"})))},vr=function(t){var r=t.hyperLink,o=void 0===r?"":r;return o?e.createElement(l,{href:o,"aria-label":"hyperlink-button",className:"arr--hyperlink-button hyperlink-m_hyperlink-button__1CqWx",target:"_blank",rel:"noopener noreferrer"},e.createElement(gr,null)):null};vr.propTypes={hyperLink:n.string};var _r={"./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"}},yr=function(t){var r=t.story,o=t.FullBleed,n=t.aspectRatio,a=t.defaultWidth,c=t.widths,m=t.isHorizontal,u=t.isHorizontalMobile,d=t.isHorizontalWithImageLast,h=t.defaultFallback,f=t.isStoryPageImage,p=t.config,v=(k()||{}).fallbackImageUrl,_=void 0===v?"":v,y=p.StoryTemplateIcon,b=void 0===y?function(){return null}:y,w=g((function(e){return i(e,["qt","config","showPlaceholder"])}))?"placeholder":"",x=o?"":"with-padding",L="hero-image";m?L="right-padding":d&&(L="left-padding");var N=u?"right-padding-mob":"",T=function(e){var t=dr(e,2),r=t[0],o=t[1];return r>0&&o>0?o/r*100:0},z=dr(n,2),C=z[0],I=z[1],S=void 0===I?C:I,j=Mt("mobile"),A=j?C:S,O=T(j?C:S),R=i(r,["hero-image-s3-key"])||i(r,["alternative","home","default","hero-image","hero-image-s3-key"]),M=i(r,["hero-image-hyperlink"],""),B=function(){return R?e.createElement(e.Fragment,null,e.createElement("figure",{style:{paddingTop:O+"%"},className:"arr--responsive-hero-image "+E("image ".concat(w),_r)},e.createElement(b,{storyTemplate:r["story-template"]}),e.createElement(s,{story:r,aspectRatio:A,defaultWidth:a,widths:c,imgParams:{auto:["format","compress"],fit:"max"}})),f&&M&&e.createElement(vr,{hyperLink:M})):_&&!f?e.createElement("figure",{style:{paddingTop:O+"%"},className:"arr--responsive-hero-image "+E("image ".concat(w),_r)},e.createElement("img",{className:"qt-image","data-src":"".concat(_),alt:"image-fallback"})):e.createElement(e.Fragment,null,h?e.createElement("div",{"data-test-id":"arr--fallback-hero-image",style:{paddingTop:O+"%"},className:"arr--fallback-hero-image "+E("image ".concat(w),_r)},e.createElement(b,{storyTemplate:r["story-template"]}),e.createElement(pr,null)):null)};return r&&(f?e.createElement("div",{"data-test-id":"arr--hero-image",className:"arr--hero-image "+E("".concat(L," ").concat(x," ").concat(N),_r)},B()):e.createElement(l,{"data-test-id":"arr--hero-image",href:Ft(r,"/".concat(r.slug)),externalLink:Ht(r),"aria-label":"fallback-hero-image",className:"arr--hero-image "+E("".concat(L," ").concat(x," ").concat(N),_r)},B()))};yr.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,isStoryPageImage:n.bool,config:n.object},yr.defaultProps={FullBleed:!0,aspectRatio:[[1,1],[16,9]],defaultWidth:480,widths:[250,480,640],isHorizontal:!1,isHorizontalMobile:!1,defaultFallback:!0,isStoryPageImage:!1,isHorizontalWithImageLast:!1,config:{}};var br={"./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"}},wr=function(t){var r=t.story,o=t.template,n=void 0===o?"":o,a=t.borderColor,c=void 0===a?"":a,s=t.isLightTheme,m=k()||{},u=i(m,["showSection"],!0),d=i(m,["sectionTagTemplate"]),h=i(r,["sections",0],""),f=["borderBottomSml","borderLeft","solid"],p=h?h["section-url"]:"/",g="solid"===n||"solid"===d?c:m.theme,v=s?"light":Bt(g),_=Ot(c),y=f.includes(n)?"section section-".concat(n):"section";return d&&(y=f.includes(d)?"section section-".concat(d):"section"),u?e.createElement(l,{href:p,className:"arrow-component arr--section-name","aria-label":"section-name"},e.createElement("div",{"data-test-id":"sectionTag",style:{backgroundColor:y.includes("section-solid")?_:""},className:"section-tag arrow-component "+E("".concat(v," ").concat(y),br)},y.includes("section-borderLeft")&&e.createElement("span",{className:"section-m_border-left__2oUyp",style:{color:_}}),h["display-name"]||h.name,e.createElement("div",{className:"section-m_border-bottom__3cRoD",style:{backgroundColor:"".concat("solid"===n?"":_)}}))):null};wr.propTypes={story:n.object.isRequired,template:n.oneOf(["","borderBottomSml","borderLeft","solid"]),borderColor:n.string,solidBorderColor:n.string,isLightTheme:n.bool},wr.defaultProps={template:"",isLightTheme:!1};var Er={"./storycard.m.css":{"author-timestamp-wrapper":"storycard-m_author-timestamp-wrapper__20yjp","default-card":"storycard-m_default-card__1-POn","horizontal-card":"storycard-m_horizontal-card___7afz","backgroung-img":"storycard-m_backgroung-img__1FMJT","content-overlap":"storycard-m_content-overlap__1yNHR","border-full":"storycard-m_border-full__1nhy7",light:"storycard-m_light__3EhXN",dark:"storycard-m_dark__2wCTq","border-bottom":"storycard-m_border-bottom__2_E-I","border-boxShadow":"storycard-m_border-boxShadow__2-k3Z","center-align":"storycard-m_center-align__1Sn8-","content-bottom":"storycard-m_content-bottom__1QHeC","content-full":"storycard-m_content-full__2zJmU","content-boxShadow":"storycard-m_content-boxShadow__2IAWZ","hero-image":"storycard-m_hero-image__1H3MB","right-padding":"storycard-m_right-padding__12-lQ","horizontal-mob":"storycard-m_horizontal-mob__17JG2",content:"storycard-m_content__1Q9vq","border-default":"storycard-m_border-default__PEZ1x",card:"storycard-m_card__KJwRa","horizontal-image-last":"storycard-m_horizontal-image-last__3o6LY"}},xr=function(t){var r,o=t.story,n=t.children,a=t.isHorizontal,i=t.aspectRatio,l=t.border,c=t.useImageAsBackground,s=t.bgImgContentOverlap,m=t.theme,u=t.borderColor,d=t.isHorizontalMobile,h=t.centerAlign,f=t.headerLevel,p=t.hideAuthorImage,g=t.prefix,v=t.config,_=t.isHorizontalWithImageLast;if(!o||(null==(r=o)||"object"===L(r)&&0===Object.entries(r).length&&r.constructor===Object||"string"==typeof r&&0===r.trim().length))return e.createElement("div",null);var y=["default","full","bottom","boxShadow"].includes(l)?"border-".concat(l):"",b="default-card";a?b="horizontal-card":_&&(b="horizontal-image-last");var w=c?"backgroung-img":"",x=s?"content-overlap":"",k=Bt(m),N=d?"horizontal-mob":"",T=e.createElement(kr,{story:o,aspectRatio:i,border:l,isHorizontalMobile:d,isHorizontal:a,centerAlign:h,headerLevel:f,borderColor:u,hideAuthorImage:p,prefix:g,config:v,isHorizontalWithImageLast:_});return e.createElement("div",{"data-test-id":"story-card",style:{backgroundColor:m,color:k},className:"arr--story-card "+E("card ".concat(b," ").concat(y," ").concat(k," ").concat(w," ").concat(x," ").concat(N),Er)},n||T)},kr=function(t){var r=t.story;t.border;var o=t.isHorizontal,n=t.aspectRatio,a=t.headerLevel,i=t.isHorizontalMobile,l=void 0!==i&&i,c=t.centerAlign,s=void 0!==c&&c,m=t.borderColor,u=t.hideAuthorImage,d=t.prefix,h=t.isHorizontalWithImageLast,f=t.config,p=s?"center-align":"",g=Ot(m),v=f.localizationConfig,_=void 0===v?{}:v;return e.createElement(e.Fragment,null,o?e.createElement(yr,{config:f,story:r,isHorizontal:!0,isHorizontalMobile:l,aspectRatio:n}):h?e.createElement(yr,{config:f,story:r,isHorizontalWithImageLast:!0,isHorizontalMobile:l,aspectRatio:n}):e.createElement(yr,{story:r,config:f,isHorizontalMobile:l,aspectRatio:n}),e.createElement("div",{className:"arr--story-content "+E("content ".concat(p),Er)},e.createElement(wr,{story:r,borderColor:g}),e.createElement(Yt,{story:r,headerLevel:a,premiumStoryIconConfig:f}),e.createElement(mr,{config:_,story:r,isBottom:!0,prefix:d,hideAuthorImage:u}),e.createElement(Kt,{story:r})))};kr.propTypes={story:n.object.isRequired,border:n.oneOfType([n.string]),isBottom:n.bool,isHorizontal:n.bool,aspectRatio:n.oneOfType([n.array]),isHorizontalMobile:n.bool,centerAlign:n.bool,headerLevel:n.string,borderColor:n.string,hideAuthorImage:n.bool,prefix:n.string,config:n.object,isHorizontalWithImageLast:n.bool},xr.propTypes={story:n.object.isRequired,children:n.node,isHorizontal:n.bool,border:n.oneOfType([n.string]),useImageAsBackground:n.bool,bgImgContentOverlap:n.bool,aspectRatio:n.oneOfType([n.array]),theme:n.string,isHorizontalMobile:n.bool,centerAlign:n.bool,headerLevel:n.string,borderColor:n.string,hideAuthorImage:n.bool,prefix:n.string,config:n.object,isHorizontalWithImageLast:n.bool},xr.defaultProps={isHorizontal:!1,isHorizontalMobile:!1,border:"default",theme:"",centerAlign:!1,borderColor:"",isHorizontalWithImageLast:!1};var Lr={"./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"}},Nr=function(t){var r=t.collectionNameBorderColor,o=void 0===r?"":r,n=t.collection,a=t.config,c=t.collectionNameTemplate,s=t.headerLevel,m=t.customCollectionName,u=void 0===m?"":m,d=t.navigate,h=void 0===d||d,f=k()||{},p=i(f,["showRowTitle"],!0),g=["borderLeft","borderBottom","crossLine","borderBottomFull"].includes(c)?" collection-".concat(c):"",v=h&&n&&Pt(n,a)||"",_=u||n.name||"",y=Bt(f.theme),b="h"+s,w=Ot(o),x=g.includes("collection-borderBottomFull")?"4px solid ".concat(w):"",L=Mt("mobile");return e.createElement(e.Fragment,null,p&&_&&e.createElement("div",{style:{borderBottom:x},"data-test-id":"collection-name",className:("arr--collection-name arrow-component ".concat(g)?"arr--collection-name arrow-component ".concat(g)+" ":"")+E("collection ".concat(y," ").concat(g),Lr)},g.includes("collection-borderLeft")&&e.createElement("span",{className:"arr-collection-name-border-left collection-name-m_border-left__3_pYw",style:{color:w,fontSize:function(){if(L)switch(s){case"1":return"32px";case"2":return"24px";case"3":default:return"20px";case"4":return"18px";case"5":case"6":return"16px"}switch(s){case"1":return"40px";case"2":return"32px";case"3":default:return"24px";case"4":return"20px";case"5":return"18px";case"6":return"16px"}}()}}),v&&!v.includes(void 0)?e.createElement(l,{href:v,"aria-label":"collection-name"},e.createElement(b,null,_)):e.createElement(b,null,_),g.includes("collection-borderBottom")&&!g.includes("collection-borderBottomFull")?e.createElement("div",{className:"collection-name-m_border-bottom__1MnlV",style:{borderBottom:"4px solid ".concat(w)}}):""))};Nr.propTypes={collectionNameBorderColor:a.string,collection:a.object,config:a.object,collectionNameTemplate:a.oneOf(["","borderLeft","borderBottom","crossLine","borderBottomFull"]),headerLevel:a.string,customCollectionName:a.string,navigate:a.bool},Nr.defaultProps={collectionNameTemplate:"",headerLevel:"3"};var Tr=p((function(e){return{config:i(e,["qt","config"],{})}}))(Nr);function zr(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Cr={"./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 Ir(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 Sr(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ir(Object(r),!0).forEach((function(t){zr(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ir(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var jr=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,h=o.buttonText,f=void 0===h?"Read More":h,p=o.theme,g=void 0===p?"":p,v=o.customUrlPath,_=void 0===v?"":v;if(!d)return null;var y=Bt(g),b=_?"/".concat(_):Dt(n,Sr(Sr({},s),o));return"SubsequentLoadCount"===i?e.createElement("div",{onClick:l,"data-test-id":"load-more",className:"arr--button "+E("button ".concat(y," default"),Cr)},f):e.createElement(m,{href:b,navigateTo:c,"data-test-id":"load-more","aria-label":"load-more"},e.createElement("div",{className:"arr--button "+E("button ".concat(y," default"),Cr)},f))};jr.propTypes={collection:n.object,template:n.string,config:n.object,onClick:n.func,navigate:n.func,qtConfig:n.object};var Ar={"./11-stories.m.css":{"eleven-stories":"_11-stories-m_eleven-stories__13Nwq",wrapper:"_11-stories-m_wrapper__1vPIm","wrapper-with-divider":"_11-stories-m_wrapper-with-divider__2VLKs",divider:"_11-stories-m_divider__Q069K",dark:"_11-stories-m_dark__2cPpn",light:"_11-stories-m_light__17K2B","column-one":"_11-stories-m_column-one__1h-Sf","column-two":"_11-stories-m_column-two__3fctd","story-card":"_11-stories-m_story-card__opQxo","first-story-card":"_11-stories-m_first-story-card__2Y4Dk","child-collection-wrapper":"_11-stories-m_child-collection-wrapper__qlj01","column-three":"_11-stories-m_column-three__1BGNt"}},Or=function(t){var r=t.collection,n=t.config,a=void 0===n?{}:n,l=u(r);if(l.length<1)return null;var c=a.collectionNameBorderColor,s=void 0===c?"":c,m=a.borderColor,d=void 0===m?"":m,h=a.theme,f=void 0===h?"":h,p=a.slotConfig,_=void 0===p?[]:p,y=a.withseparator,b=a.collectionNameTemplate,w=void 0===b?"":b,x=a.footerSlotConfig,k=void 0===x?{}:x,L=a.footerButton,N=void 0===L?"":L,T=a.localizationConfig,z=void 0===T?{}:T,C=i(_,[0],{}),I=C.type,S=void 0===I?"story":I,j=C.component,A=k.footerSlot,O=v(),R=g((function(e){return i(e,["qt","config"],{})})),M=Dt(r,R),B=Bt(f),P=Ot(d),H=function(e,t,r,o){switch(e){case"story":return r();case"collection":return o();default:return t?t():null}}(S,j,(function(){return e.createElement("div",{className:"_11-stories-m_column-three__1BGNt"},l.slice(6,7).map((function(t,r){return e.createElement("div",{className:"_11-stories-m_first-story-card__2Y4Dk",key:"story-".concat(r)},e.createElement(xr,{story:t,theme:f,border:y?"bottom":""},e.createElement(wr,{story:t,borderColor:P}),e.createElement(Yt,{story:t,premiumStoryIconConfig:a}),e.createElement(mr,{config:z,story:t,hideAuthorImage:!1}),e.createElement(Kt,{story:t,clazzName:"arr-hidden-mob"})))})),l.slice(7,10).map((function(t,r){return e.createElement("div",{className:"_11-stories-m_story-card__opQxo",key:"story-".concat(r)},e.createElement(xr,{story:t,theme:f,border:y?"bottom":""},e.createElement(wr,{story:t,borderColor:P}),e.createElement(Yt,{story:t,premiumStoryIconConfig:a}),e.createElement(mr,{config:z,story:t,hideAuthorImage:!1})))})),l.slice(10,11).map((function(t,r){return e.createElement("div",{className:"_11-stories-m_story-card__opQxo",key:"story-".concat(r)},e.createElement(xr,{story:t,theme:f},e.createElement(wr,{story:t,borderColor:P}),e.createElement(Yt,{story:t,premiumStoryIconConfig:a}),e.createElement(mr,{config:z,story:t,hideAuthorImage:!1})))})))}),(function(){var t=i(r,["items"],[]).find((function(e){return"collection"===e.type}));return e.createElement("div",{className:"_11-stories-m_child-collection-wrapper__qlj01"},e.createElement(Tr,{collection:t,collectionNameTemplate:w,headerLevel:"5"}),l.slice(0,1).map((function(t,r){return e.createElement("div",{className:"_11-stories-m_first-story-card__2Y4Dk",key:"story-".concat(r)},e.createElement(xr,{story:t,theme:f,headerLevel:"4",border:y?"bottom":""},e.createElement(wr,{story:t,borderColor:P}),e.createElement(Yt,{story:t,premiumStoryIconConfig:a}),e.createElement(mr,{config:z,story:t,hideAuthorImage:!1}),e.createElement(Kt,{story:t})))})),l.slice(1,4).map((function(t,r){return e.createElement("div",{className:"_11-stories-m_story-card__opQxo",key:"story-".concat(r)},e.createElement(xr,{story:t,theme:f,border:y?"bottom":""},e.createElement(wr,{story:t,borderColor:P}),e.createElement(Yt,{story:t,premiumStoryIconConfig:a}),e.createElement(mr,{config:z,story:t,hideAuthorImage:!1})))})),l.slice(4,5).map((function(t,r){return e.createElement("div",{className:"_11-stories-m_story-card__opQxo",key:"story-".concat(r)},e.createElement(xr,{story:t,theme:f},e.createElement(wr,{story:t,borderColor:P}),e.createElement(Yt,{story:t,premiumStoryIconConfig:a}),e.createElement(mr,{config:z,story:t,hideAuthorImage:!1})))})))})),F=A?A():null;return e.createElement("div",{className:"full-width-with-padding arrow-component","data-test-id":"eleven-stories",style:{backgroundColor:f,color:B}},e.createElement("div",{className:"_11-stories-m_eleven-stories__13Nwq"},e.createElement(Tr,{collection:r,collectionNameTemplate:w,collectionNameBorderColor:s}),y?e.createElement(e.Fragment,null,e.createElement("div",{className:"_11-stories-m_wrapper-with-divider__2VLKs"},e.createElement("div",{className:"_11-stories-m_column-one__1h-Sf"},l.slice(2,3).map((function(t,r){return e.createElement("div",{className:"_11-stories-m_story-card__opQxo",key:"story-".concat(r)},e.createElement(xr,{story:t,theme:f,border:"bottom",isHorizontalMobile:!0,borderColor:P,config:a,hideAuthorImage:!1,headerLevel:"5"}))})),l.slice(3,5).map((function(t,r){return e.createElement(o,{key:"story-col-".concat(r,"-").concat(i(t,["id"],"0"))},e.createElement("div",{className:"_11-stories-m_story-card__opQxo",key:"story-".concat(r)},e.createElement(xr,{story:t,theme:f,border:y?"bottom":""},e.createElement(wr,{story:t,borderColor:P}),e.createElement(Yt,{story:t,premiumStoryIconConfig:a}),e.createElement(mr,{config:z,story:t,hideAuthorImage:!1}))))})),l.slice(5,6).map((function(t,r){return e.createElement(o,{key:"story-col2-".concat(r,"-").concat(i(t,["id"],"0"))},e.createElement("div",{className:"_11-stories-m_story-card__opQxo",key:"story-".concat(r)},e.createElement(xr,{story:t,theme:f},e.createElement(wr,{story:t,borderColor:P}),e.createElement(Yt,{story:t,premiumStoryIconConfig:a}),e.createElement(mr,{config:z,story:t,hideAuthorImage:!1}))))}))),e.createElement("div",{className:E("divider ".concat(B),Ar)}),e.createElement("div",{className:"_11-stories-m_column-two__3fctd"},l.slice(0,1).map((function(t,r){return e.createElement("div",{className:"_11-stories-m_story-card__opQxo",key:"story-".concat(r)},e.createElement(xr,{story:t,theme:f,borderColor:P,centerAlign:!0,border:"bottom",headerLevel:"3",aspectRatio:[[16,9],[16,9]],hideAuthorImage:!1,config:a}))})),l.slice(1,2).map((function(t,r){return e.createElement("div",{className:"_11-stories-m_story-card__opQxo",key:"story-".concat(r)},e.createElement(xr,{story:t,isHorizontal:!0,theme:f,borderColor:P,hideAuthorImage:!1,headerLevel:"5",config:a}))}))),e.createElement("div",{className:E("divider ".concat(B),Ar)}),H)):e.createElement(e.Fragment,null,e.createElement("div",{className:"_11-stories-m_wrapper__1vPIm"},e.createElement("div",{className:"_11-stories-m_column-one__1h-Sf"},l.slice(2,3).map((function(t,r){return e.createElement("div",{className:"_11-stories-m_story-card__opQxo",key:"story-".concat(r)},e.createElement(xr,{story:t,theme:f,borderColor:P,isHorizontalMobile:!0,headerLevel:"5",hideAuthorImage:!1,config:a}))})),l.slice(3,6).map((function(t,r){return e.createElement(o,{key:"story-col1-".concat(i(t,["id"],"0"))},e.createElement("div",{className:"_11-stories-m_story-card__opQxo",key:"story-".concat(r)},e.createElement(xr,{story:t,theme:f,config:a},e.createElement(wr,{story:t,borderColor:P}),e.createElement(Yt,{story:t,premiumStoryIconConfig:a}),e.createElement(mr,{config:z,story:t,hideAuthorImage:!1}))))}))),e.createElement("div",{className:"_11-stories-m_column-two__3fctd"},l.slice(0,1).map((function(t,r){return e.createElement("div",{className:"_11-stories-m_story-card__opQxo",key:"story-".concat(r)},e.createElement(xr,{story:t,borderColor:P,theme:f,headerLevel:"3",centerAlign:!0,aspectRatio:[[16,9],[16,9]],hideAuthorImage:!1,config:a}))})),l.slice(1,2).map((function(t,r){return e.createElement("div",{className:"_11-stories-m_story-card__opQxo",key:"story-".concat(r)},e.createElement(xr,{story:t,isHorizontal:!0,theme:f,borderColor:P,hideAuthorImage:!1,headerLevel:"5",config:a}))}))),H)),e.createElement(jr,{collection:r,template:N,config:a,navigate:function(){return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";global.app.navigateToPage(e,t)}(O,M)},qtConfig:R}),F))};Or.propTypes={collection:n.object.isRequired,config:n.shape({borderColor:n.string,footerButton:n.string,theme:n.string,border:n.string,slotConfig:n.array,withseparator:n.bool,collectionNameTemplate:n.string,collectionNameBorderColor:n.string})};var Rr,Mr=(Rr=Or,function(t){return e.createElement(x.Provider,{value:t.config},e.createElement(Rr,t))});export{Mr as default};