@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 o from"prop-types";import{Link as n,ResponsiveImage as i}from"@quintype/components";import a from"lodash.get";import c from"react-timeago";import{utcToZonedTime as l,format as s}from"date-fns-tz";import{connect as u}from"react-redux";var h="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function d(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function m(t){var e={exports:{}};return t(e,e.exports),e.exports}var f=m((function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r={attributeNames:{styleName:"className"},generateScopedName:"[path]___[name]__[local]___[hash:base64:5]",handleMissingStyleName:"throw"};e.default=r})),p=d(m((function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r,o=(r=f)&&r.__esModule?r:{default:r};var n=function(t,e){if("throw"===e)throw new Error(t);return"warn"===e&&console.warn(t),null};e.default=function(t,e,r){var i=Object.keys(e),a=r||{},c=a.handleMissingStyleName,l=void 0===c?o.default.handleMissingStyleName:c,s=a.autoResolveMultipleImports,u=void 0===s?o.default.autoResolveMultipleImports:s;return t?t.split(" ").filter((function(t){return t})).map((function(t){if(function(t){return-1!==t.indexOf(".")}(t))return function(t,e,r){var i=t.split("."),a=i[0],c=i[1],l=r||o.default.handleMissingStyleName;return c?e[a]?e[a][c]?e[a][c]:n("CSS module does not exist: "+c,l):n("CSS module import does not exist: "+a,l):n("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(!u)throw new Error("Cannot use anonymous style name '"+t+"' with more than one stylesheet import without setting 'autoResolveMultipleImports' to true.");return function(t,e,r){var i=r||o.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?n("Could not resolve the styleName '"+t+"'.",i):e[a[0]][t]}(t,e,l)}var r=e[i[0]];return r[t]?r[t]:n("Could not resolve the styleName '"+t+"'.",l)})).filter((function(t){return t})).join(" "):""}}))),v=r(),g=function(){return e(v)};m((function(t){var e=function(t){var e,r=Object.prototype,o=r.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",a=n.asyncIterator||"@@asyncIterator",c=n.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 s(t,e,r,o){var n=e&&e.prototype instanceof v?e:v,i=Object.create(n.prototype),a=new N(o||[]);return i._invoke=function(t,e,r){var o=h;return function(n,i){if(o===m)throw new Error("Generator is already running");if(o===f){if("throw"===n)throw i;return S()}for(r.method=n,r.arg=i;;){var a=r.delegate;if(a){var c=L(a,r);if(c){if(c===p)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===h)throw o=f,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=m;var l=u(t,e,r);if("normal"===l.type){if(o=r.done?f:d,l.arg===p)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(o=f,r.method="throw",r.arg=l.arg)}}}(t,r,a),i}function u(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=s;var h="suspendedStart",d="suspendedYield",m="executing",f="completed",p={};function v(){}function g(){}function y(){}var _={};l(_,i,(function(){return this}));var w=Object.getPrototypeOf,b=w&&w(w(O([])));b&&b!==r&&o.call(b,i)&&(_=b);var x=y.prototype=v.prototype=Object.create(_);function E(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function T(t,e){function r(n,i,a,c){var l=u(t[n],t,i);if("throw"!==l.type){var s=l.arg,h=s.value;return h&&"object"==typeof h&&o.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){s.value=t,a(s)}),(function(t){return r("throw",t,a,c)}))}c(l.arg)}var n;this._invoke=function(t,o){function i(){return new e((function(e,n){r(t,o,e,n)}))}return n=n?n.then(i,i):i()}}function L(t,r){var o=t.iterator[r.method];if(o===e){if(r.delegate=null,"throw"===r.method){if(t.iterator.return&&(r.method="return",r.arg=e,L(t,r),"throw"===r.method))return p;r.method="throw",r.arg=new TypeError("The iterator does not provide a 'throw' method")}return p}var n=u(o,t.iterator,r.arg);if("throw"===n.type)return r.method="throw",r.arg=n.arg,r.delegate=null,p;var i=n.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,p):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,p)}function j(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 z(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function N(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(j,this),this.reset(!0)}function O(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 n=-1,a=function r(){for(;++n<t.length;)if(o.call(t,n))return r.value=t[n],r.done=!1,r;return r.value=e,r.done=!0,r};return a.next=a}}return{next:S}}function S(){return{value:e,done:!0}}return g.prototype=y,l(x,"constructor",y),l(y,"constructor",g),g.displayName=l(y,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,y):(t.__proto__=y,l(t,c,"GeneratorFunction")),t.prototype=Object.create(x),t},t.awrap=function(t){return{__await:t}},E(T.prototype),l(T.prototype,a,(function(){return this})),t.AsyncIterator=T,t.async=function(e,r,o,n,i){void 0===i&&(i=Promise);var a=new T(s(e,r,o,n),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},E(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 o=e.pop();if(o in t)return r.value=o,r.done=!1,r}return r.done=!0,r}},t.values=O,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(z),!t)for(var r in this)"t"===r.charAt(0)&&o.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function n(o,n){return c.type="throw",c.arg=t,r.next=o,n&&(r.method="next",r.arg=e),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var l=o.call(a,"catchLoc"),s=o.call(a,"finallyLoc");if(l&&s){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(l){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(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&o.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var i=n;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,p):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),p},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),z(r),p}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var o=r.completion;if("throw"===o.type){var n=o.arg;z(r)}return n}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,o){return this.delegate={iterator:O(t),resultName:r,nextLoc:o},"next"===this.method&&(this.arg=e),p}},t}(t.exports);try{regeneratorRuntime=e}catch(t){"object"==typeof globalThis?globalThis.regeneratorRuntime=e:Function("r","regeneratorRuntime = r")(e)}}));var y=Array.isArray,_="object"==typeof h&&h&&h.Object===Object&&h,w="object"==typeof self&&self&&self.Object===Object&&self,b=_||w||Function("return this")(),x=b.Symbol,E=Object.prototype,T=E.hasOwnProperty,L=E.toString,j=x?x.toStringTag:void 0;var z=function(t){var e=T.call(t,j),r=t[j];try{t[j]=void 0;var o=!0}catch(t){}var n=L.call(t);return o&&(e?t[j]=r:delete t[j]),n},N=Object.prototype.toString;var O=function(t){return N.call(t)},S=x?x.toStringTag:void 0;var k=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":S&&S in Object(t)?z(t):O(t)};var A=function(t){return null!=t&&"object"==typeof t};var C=function(t){return"symbol"==typeof t||A(t)&&"[object Symbol]"==k(t)},I=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,M=/^\w*$/;var R=function(t,e){if(y(t))return!1;var r=typeof t;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=t&&!C(t))||(M.test(t)||!I.test(t)||null!=e&&t in Object(e))};var D=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)};var P,F=function(t){if(!D(t))return!1;var e=k(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e},B=b["__core-js_shared__"],H=(P=/[^.]+$/.exec(B&&B.keys&&B.keys.IE_PROTO||""))?"Symbol(src)_1."+P:"";var G=function(t){return!!H&&H in t},U=Function.prototype.toString;var Z=function(t){if(null!=t){try{return U.call(t)}catch(t){}try{return t+""}catch(t){}}return""},$=/^\[object .+?Constructor\]$/,V=Function.prototype,W=Object.prototype,q=V.toString,Y=W.hasOwnProperty,J=RegExp("^"+q.call(Y).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var K=function(t){return!(!D(t)||G(t))&&(F(t)?J:$).test(Z(t))};var X=function(t,e){return null==t?void 0:t[e]};var Q=function(t,e){var r=X(t,e);return K(r)?r:void 0},tt=Q(Object,"create");var et=function(){this.__data__=tt?tt(null):{},this.size=0};var rt=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},ot=Object.prototype.hasOwnProperty;var nt=function(t){var e=this.__data__;if(tt){var r=e[t];return"__lodash_hash_undefined__"===r?void 0:r}return ot.call(e,t)?e[t]:void 0},it=Object.prototype.hasOwnProperty;var at=function(t){var e=this.__data__;return tt?void 0!==e[t]:it.call(e,t)};var ct=function(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=tt&&void 0===e?"__lodash_hash_undefined__":e,this};function lt(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var o=t[e];this.set(o[0],o[1])}}lt.prototype.clear=et,lt.prototype.delete=rt,lt.prototype.get=nt,lt.prototype.has=at,lt.prototype.set=ct;var st=lt;var ut=function(){this.__data__=[],this.size=0};var ht=function(t,e){return t===e||t!=t&&e!=e};var dt=function(t,e){for(var r=t.length;r--;)if(ht(t[r][0],e))return r;return-1},mt=Array.prototype.splice;var ft=function(t){var e=this.__data__,r=dt(e,t);return!(r<0)&&(r==e.length-1?e.pop():mt.call(e,r,1),--this.size,!0)};var pt=function(t){var e=this.__data__,r=dt(e,t);return r<0?void 0:e[r][1]};var vt=function(t){return dt(this.__data__,t)>-1};var gt=function(t,e){var r=this.__data__,o=dt(r,t);return o<0?(++this.size,r.push([t,e])):r[o][1]=e,this};function yt(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var o=t[e];this.set(o[0],o[1])}}yt.prototype.clear=ut,yt.prototype.delete=ft,yt.prototype.get=pt,yt.prototype.has=vt,yt.prototype.set=gt;var _t=yt,wt=Q(b,"Map");var bt=function(){this.size=0,this.__data__={hash:new st,map:new(wt||_t),string:new st}};var xt=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t};var Et=function(t,e){var r=t.__data__;return xt(e)?r["string"==typeof e?"string":"hash"]:r.map};var Tt=function(t){var e=Et(this,t).delete(t);return this.size-=e?1:0,e};var Lt=function(t){return Et(this,t).get(t)};var jt=function(t){return Et(this,t).has(t)};var zt=function(t,e){var r=Et(this,t),o=r.size;return r.set(t,e),this.size+=r.size==o?0:1,this};function Nt(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var o=t[e];this.set(o[0],o[1])}}Nt.prototype.clear=bt,Nt.prototype.delete=Tt,Nt.prototype.get=Lt,Nt.prototype.has=jt,Nt.prototype.set=zt;var Ot=Nt;function St(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var r=function(){var o=arguments,n=e?e.apply(this,o):o[0],i=r.cache;if(i.has(n))return i.get(n);var a=t.apply(this,o);return r.cache=i.set(n,a)||i,a};return r.cache=new(St.Cache||Ot),r}St.Cache=Ot;var kt=St;var At=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ct=/\\(\\)?/g,It=function(t){var e=kt(t,(function(t){return 500===r.size&&r.clear(),t})),r=e.cache;return e}((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(At,(function(t,r,o,n){e.push(o?n.replace(Ct,"$1"):r||t)})),e}));var Mt=function(t,e){for(var r=-1,o=null==t?0:t.length,n=Array(o);++r<o;)n[r]=e(t[r],r,t);return n},Rt=x?x.prototype:void 0,Dt=Rt?Rt.toString:void 0;var Pt=function t(e){if("string"==typeof e)return e;if(y(e))return Mt(e,t)+"";if(C(e))return Dt?Dt.call(e):"";var r=e+"";return"0"==r&&1/e==-Infinity?"-0":r};var Ft=function(t){return null==t?"":Pt(t)};var Bt=function(t,e){return y(t)?t:R(t,e)?[t]:It(Ft(t))};var Ht=function(t){if("string"==typeof t||C(t))return t;var e=t+"";return"0"==e&&1/t==-Infinity?"-0":e};var Gt=function(t,e){for(var r=0,o=(e=Bt(e,t)).length;null!=t&&r<o;)t=t[Ht(e[r++])];return r&&r==o?t:void 0};var Ut=function(t,e,r){var o=null==t?void 0:Gt(t,e);return void 0===o?r:o};var Zt=function(t,e,r,o){var n=-1,i=null==t?0:t.length;for(o&&i&&(r=t[++n]);++n<i;)r=e(r,t[n],n,t);return r};var $t=function(t){return function(e){return null==t?void 0:t[e]}}({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"}),Vt=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Wt=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]","g");var qt=function(t){return(t=Ft(t))&&t.replace(Vt,$t).replace(Wt,"")},Yt=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;var Jt=function(t){return t.match(Yt)||[]},Kt=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;var Xt=function(t){return Kt.test(t)},Qt="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",te="["+Qt+"]",ee="\\d+",re="[\\u2700-\\u27bf]",oe="[a-z\\xdf-\\xf6\\xf8-\\xff]",ne="[^\\ud800-\\udfff"+Qt+ee+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",ie="(?:\\ud83c[\\udde6-\\uddff]){2}",ae="[\\ud800-\\udbff][\\udc00-\\udfff]",ce="[A-Z\\xc0-\\xd6\\xd8-\\xde]",le="(?:"+oe+"|"+ne+")",se="(?:"+ce+"|"+ne+")",ue="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?",he="[\\ufe0e\\ufe0f]?"+ue+("(?:\\u200d(?:"+["[^\\ud800-\\udfff]",ie,ae].join("|")+")[\\ufe0e\\ufe0f]?"+ue+")*"),de="(?:"+[re,ie,ae].join("|")+")"+he,me=RegExp([ce+"?"+oe+"+(?:['’](?:d|ll|m|re|s|t|ve))?(?="+[te,ce,"$"].join("|")+")",se+"+(?:['’](?:D|LL|M|RE|S|T|VE))?(?="+[te,ce+le,"$"].join("|")+")",ce+"?"+le+"+(?:['’](?:d|ll|m|re|s|t|ve))?",ce+"+(?:['’](?:D|LL|M|RE|S|T|VE))?","\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",ee,de].join("|"),"g");var fe=function(t){return t.match(me)||[]};var pe=function(t,e,r){return t=Ft(t),void 0===(e=r?void 0:e)?Xt(t)?fe(t):Jt(t):t.match(e)||[]},ve=RegExp("['’]","g");var ge=function(t){return function(e){return Zt(pe(qt(e).replace(ve,"")),t,"")}},ye=ge((function(t,e,r){return t+(r?" ":"")+e.toUpperCase()})),_e=ge((function(t,e,r){return t+(r?" ":"")+e.toLowerCase()})),we=function(t,e,r,o){var n=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},i=n.showTime,a=void 0!==i&&i,c=n.isTimeFirst,l=void 0!==c&&c,s=n.isUpperCase,u=void 0!==s&&s,h=n.disableMeridiem,d=void 0!==h&&h,m=n.timeFormat,f=void 0===m?"12hours":m,p=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],v=new Date(o),g=v.getDate().toString().padStart(2,0),y=p[v.getMonth()],_=y;u&&(_=ye(y));var w,b=v.getFullYear(),x=n.localizedMeridiem,E=n.localizedMonths,T=n.direction,L=void 0===T?"ltr":T,j=xe(o,f),z=j;if(E&&(_=Ut(E,[_e(y)])||y),x){var N=j.includes("am"),O=x.am,S=void 0===O?"am":O,k=x.pm,A=void 0===k?"pm":k;z=(N?j.replace("am",S):j.replace("pm",A))||j}return"rtl"===L?(w=a?"".concat(z):"","".concat(g," ").concat(_,", ").concat(b," ").concat(w," ")):d?"".concat(_," ").concat(g,", ").concat(b):l?"".concat(z,", ").concat(g," ").concat(_," ").concat(b):(w=a?", ".concat(z):"","".concat(g," ").concat(_,", ").concat(b).concat(w))};function be(t,e,r,o,n){var i,a=Ut(n,["localizedPublishTime",r])||r;return"hour"===e&&t>23||-1!==["day","week","month","year"].indexOf(e)?we(t,e,r,o,n):t>1?(i=Ut(n,["localizedPublishTime","".concat(e,"s")])||"".concat(e,"s"),"".concat(t," ").concat(i," ").concat(a)):(i=Ut(n,["localizedPublishTime",e])||e,"".concat(t," ").concat(i," ").concat(a," "))}function xe(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"12hours",r=new Date(t),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"===e?r.toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"}):a}var Ee=function(t){var e=function(t){return{r:parseInt(t.slice(1,3),16),g:parseInt(t.slice(3,5),16),b:parseInt(t.slice(5,7),16)}}(t);return.299*e.r+.587*e.g+.114*e.b},Te=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},Le=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:Te(t),o=Ee(r)<155?"light":"dark";return o};function je(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t["story-template"],r=void 0===e?"":e,o=t.metadata,n=void 0===o?{}:o;return"news-elsewhere"===r?Ut(n,["reference-url"],""):""}o.shape({"sketches-host":o.string,"cdn-name":o.string,"cdn-image":o.string}),o.shape({headline:o.string,"last-published-at":o.number,subheadline:o.string});var ze=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return"news-elsewhere"===Ut(t,["story-template"])?Ut(t,["metadata","reference-url"],""):t.url||e},Ne=function(e){var r=e.height,o=e.width,n=e.color,i=void 0===n?"#D8D8D8":n,a=e.positionTop;return t.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:o,height:r,viewBox:"0 0 40 40",style:{position:"relative",top:a}},t.createElement("g",{fill:"none",fillRule:"evenodd",stroke:"none",strokeWidth:"1"},t.createElement("g",null,t.createElement("g",{transform:"translate(8 8)"},t.createElement("path",{d:"M0 0H24V24H0z"}),t.createElement("g",{fill:i,fillRule:"nonzero",transform:"translate(0 2)"},t.createElement("path",{d:"M21.043 19.553c0-.743-.601-1.344-1.344-1.344h-15.4a1.343 1.343 0 100 2.688h15.4c.743 0 1.344-.603 1.344-1.344zM1.598 8.673c.022 0 .042 0 .064-.003l2.131 7.713h16.411l2.132-7.713c.022 0 .041.003.063.003a1.599 1.599 0 10-1.52-1.108L17.025 9.82 12.882 2.95a1.599 1.599 0 10-1.765 0L6.976 9.82 3.121 7.565a1.599 1.599 0 10-1.523 1.107z"}))))))};Ne.propTypes={height:o.string,width:o.string,color:o.string,positionTop:o.string};var Oe=function(e){var r=e.height,o=e.width,n=e.color,i=void 0===n?"#D5D5D5":n,a=e.positionTop;return t.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:o,height:r,viewBox:"0 0 40 40",style:{position:"relative",top:a}},t.createElement("g",{fill:"none",fillRule:"evenodd",stroke:"none",strokeWidth:"1"},t.createElement("g",null,t.createElement("g",{transform:"translate(8 8)"},t.createElement("path",{d:"M0 0H24V24H0z"}),t.createElement("path",{fill:i,fillRule:"nonzero",d:"M12.71 4.364A6.54 6.54 0 000 6.545a6.54 6.54 0 0012.71 2.182h4.745v4.364h4.363V8.727H24V4.364H12.71zM6.544 8.727a2.181 2.181 0 110-4.362 2.181 2.181 0 010 4.362z",transform:"translate(0 5)"})))))};Oe.propTypes={height:o.string,width:o.string,color:o.string,positionTop:o.string};var Se=function(e){var r=e.height,o=e.width,n=e.color,i=void 0===n?"#D5D5D5":n,a=e.positionTop;return t.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:o,height:r,viewBox:"0 0 40 40",style:{position:"relative",top:a}},t.createElement("g",{fill:"none",fillRule:"evenodd",stroke:"none",strokeWidth:"1"},t.createElement("g",null,t.createElement("g",{transform:"translate(8 8)"},t.createElement("path",{d:"M0 0H24V24H0z"}),t.createElement("g",{fill:i,fillRule:"nonzero",transform:"translate(3)"},t.createElement("path",{d:"M15.692 9h-.747V6c0-3.31-2.681-6-5.978-6C5.67 0 2.989 2.69 2.989 6v3h-.747A2.249 2.249 0 000 11.25v10.5A2.249 2.249 0 002.242 24h13.45a2.249 2.249 0 002.242-2.25v-10.5A2.249 2.249 0 0015.692 9zM4.982 6c0-2.206 1.787-4 3.985-4s3.985 1.794 3.985 4v3h-7.97V6z"}))))))};Se.propTypes={height:o.string,width:o.string,color:o.string,positionTop:o.string};var ke=function(e){var r=e.width,o=e.height,n=e.color,i=void 0===n?"#D5D5D5":n,a=e.positionTop,c=void 0===a?"":a;return t.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:r,height:o,viewBox:"0 0 40 40",style:{position:"relative",top:c}},t.createElement("g",{fill:"none",fillRule:"evenodd",stroke:"none",strokeWidth:"1"},t.createElement("g",null,t.createElement("path",{fill:i,d:"M20 26L12.946577 29.7082039 14.2936609 21.854102 8.5873218 16.2917961 16.4732885 15.145898 20 8 23.5267115 15.145898 31.4126782 16.2917961 25.7063391 21.854102 27.053423 29.7082039z"}))))};ke.propTypes={height:o.string,width:o.string,color:o.string,positionTop:o.string};var Ae=function(e){var r=e.width,o=e.height,n=e.color,i=e.iconType,a=e.positionTop;switch(i){case"crown":return t.createElement(Ne,{width:r,height:o,color:n,positionTop:a});case"lock":return t.createElement(Se,{width:r,height:o,color:n,positionTop:a});case"key":return t.createElement(Oe,{width:r,height:o,color:n,positionTop:a});default:return t.createElement(ke,{width:r,height:o,color:n,positionTop:a})}};function Ce(){return t.createElement("svg",{className:"live-icon",xmlns:"http://www.w3.org/2000/svg",width:"25",height:"24",viewBox:"0 0 25 24"},t.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"}))}Ae.propTypes={width:o.string,height:o.string,color:o.string,iconType:o.string,positionTop:o.string};var Ie={"./headline.m.css":{wrapper:"headline-m_wrapper__3nUmh",headline:"headline-m_headline__3_NhV",dark:"headline-m_dark__en3hW",light:"headline-m_light__3lKJB"}},Me=function(e){var r=e.story,o=e.headerLevel,i=e.premiumStoryIconConfig,c=void 0===i?{}:i,l=e.isLink,s=g()||{},u=c.iconColor,h=void 0===u?"#F7B500":u,d=c.iconStyle,m=void 0===d?"star":d,f=c.enablePremiumStoryIcon,v=void 0!==f&&f,y=c.showLiveIcon,_=void 0!==y&&y,w=a(r,["alternative","home","default","headline"]),b=v&&"subscription"===a(r,["access"]),x=w||r.headline,E="h"+o,T=Le(s.theme),L=b?"wrapper":"",j="24px",z=_&&"live-blog"===r["story-template"]&&!a(r,["metadata","is-closed"],!1);return t.createElement("div",{"data-test-id":"headline",className:"arrow-component arr--headline "+p(L,Ie)},b&&t.createElement(Ae,{width:j,height:j,color:h,iconType:m,positionTop:function(){switch(parseInt(o)){case 1:return"-2px";case 2:return"2px";case 3:return"4px";case 4:return"5px";default:return"6px"}}()}),l?t.createElement(n,{href:ze(r,"/".concat(r.slug)),externalLink:je(r),"aria-label":"headline"},t.createElement(E,{className:p("headline ".concat(T),Ie)},z&&t.createElement(Ce,null),x)):t.createElement(E,{className:p("headline ".concat(T),Ie)},z&&t.createElement(Ce,null),x))};Me.propTypes={story:o.object.isRequired,headerLevel:o.string,premiumStoryIconConfig:o.shape({iconColor:o.string,iconType:o.string,enablePremiumStoryIcon:o.bool}),isLink:o.bool},Me.defaultProps={headerLevel:"6",isLink:!0};var Re={"./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"}},De=function(e){var r=e.story,o=e.template,i=void 0===o?"":o,c=e.borderColor,l=void 0===c?"":c,s=e.isLightTheme,u=g()||{},h=a(u,["showSection"],!0),d=a(u,["sectionTagTemplate"]),m=a(r,["sections",0],""),f=["borderBottomSml","borderLeft","solid"],v=m?m["section-url"]:"/",y="solid"===i||"solid"===d?l:u.theme,_=s?"light":Le(y),w=Te(l),b=f.includes(i)?"section section-".concat(i):"section";return d&&(b=f.includes(d)?"section section-".concat(d):"section"),h?t.createElement(n,{href:v,className:"arrow-component arr--section-name","aria-label":"section-name"},t.createElement("div",{"data-test-id":"sectionTag",style:{backgroundColor:b.includes("section-solid")?w:""},className:"section-tag arrow-component "+p("".concat(_," ").concat(b),Re)},b.includes("section-borderLeft")&&t.createElement("span",{className:"section-m_border-left__2oUyp",style:{color:w}}),m["display-name"]||m.name,t.createElement("div",{className:"section-m_border-bottom__3cRoD",style:{backgroundColor:"".concat("solid"===i?"":w)}}))):null};De.propTypes={story:o.object.isRequired,template:o.oneOf(["","borderBottomSml","borderLeft","solid"]),borderColor:o.string,solidBorderColor:o.string,isLightTheme:o.bool},De.defaultProps={template:"",isLightTheme:!1};var Pe={"./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"}},Fe=function(e){var r=e.story,o=e.isBottom,n=e.config,i=void 0===n?{}:n,u=g()||{},h=a(i,["showTime"],a(u,["showTime"],!0)),d=r["last-published-at"]||r["first-published-at"],m=o?"bottom-fix":"",f=Le(u.theme);return t.createElement(t.Fragment,null,h&&t.createElement("div",{"data-test-id":"publish-time",className:"time arr--publish-time "+p("time ".concat(f," ").concat(m),Pe)},t.createElement("div",{className:"timestamp-m_time-wrapper__3O2lM"},function(e,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&&l(e,i),u=a&&s(a,"yyyy-MM-dd'T'HH:mm:ssXXX",{timeZone:i}),h=we("","","",e,o);return t.createElement("time",{dateTime:u},h)}return t.createElement(c,{date:e,formatter:function(t,e,n,i){return r(t,e,n,i,o)}})}(d,be,i))))};Fe.propTypes={story:o.object,isBottom:o.bool,config:o.object};var Be={"./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"}},He=function(e){var r=e.story,o=e.hideAuthorImage,c=e.isBottom,l=e.prefix,s=void 0===l?"":l,u=e.config,h=void 0===u?{}:u,d=g()||{},m=a(d,["showAuthor"],!0),f=a(r,["authors","0"],""),v=f["avatar-url"],y=f["avatar-s3-key"],_=f.name,w=f.slug,b=c?"bottom-fix":"",x=Le(d.theme),E=a(h,["mountAt"],""),T=function(e){return s?t.createElement("div",{className:"arr-author-prefix "+p("prefix ".concat(x),Be)},s):!o&&function(e){return v||y?t.createElement("div",{"data-test-id":"author-image",className:p("author-image ".concat(e,"-image"),Be)},t.createElement("figure",null,y?t.createElement(i,{slug:y,"aspect-ratio":[1,1],defaultWidth:400,imgParams:{auto:["format","compress"]},alt:_}):t.createElement("img",{src:v}))):null}(e)};return t.createElement(t.Fragment,null,m&&t.createElement(n,{href:"".concat(E,"/author/")+w,"aria-label":"author-name",className:"author-name arr-author-name arrow-component "+p("author ".concat(b),Be)},T("ltr"),t.createElement("div",{"data-test-id":"author-name",className:"author-name "+p("author-name ".concat(x),Be)},_||r["author-name"]),!s&&T("rtl")))};var Ge=u((function(t){return{config:a(t,["qt","config"],{})}}))(He);He.propTypes={story:o.object.isRequired,hideAuthorImage:o.bool,isBottom:o.bool,prefix:o.string,config:o.object},He.defaultProps={hideAuthorImage:!1,isBottom:!1,prefix:""};var Ue={"./dot.m.css":{dark:"dot-m_dark__1Njxl",light:"dot-m_light__27IA3"}},Ze=function(e){var r=e.width,o=void 0===r?"3px":r,n=e.height,i=void 0===n?"3px":n,a=e.color,c=void 0===a?"light":a;return t.createElement("div",{className:p(c,Ue)},t.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:o,height:i,viewBox:"0 0 3 3"},t.createElement("circle",{cx:"87",cy:"9",r:"1",fill:"inherit",fillRule:"nonzero",transform:"translate(-86 -8)"})))};Ze.propTypes={color:o.string,width:o.string,height:o.string};var $e={"./divider.m.css":{dark:"divider-m_dark__26FRi",light:"divider-m_light__w-7sy"}},Ve=function(e){var r=e.width,o=void 0===r?"1":r,n=e.height,i=void 0===n?"10":n,a=e.color,c=void 0===a?"light":a;return t.createElement("div",{className:p(c,$e)},t.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:o,height:i},t.createElement("path",{fill:"inherit",d:"M0 0h1v10H0z"})))};Ve.propTypes={color:o.string,width:o.string,height:o.string};var We={"./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"}},qe=function(e){var r=e.story,o=e.opts,n=void 0===o?{}:o,i=e.isLightTheme,c=void 0!==i&&i,l=g()||{},s=a(l,["showReadTime"])||a(n,["showReadTime"],!0),u=a(r,["read-time"],0),h=c?"light":Le(l.theme);if(!s||!u)return null;var d=a(n,["localizedTimeToRead"])||"min read";return t.createElement(t.Fragment,null,t.createElement("div",{"data-test-id":"read-time",className:"arrow-component arr--read-time "+p("read-time-wrapper ".concat(h),We)},t.createElement("span",{className:"read-time-indicator read-time-m_dot-indicator__3Sqh2"},t.createElement(Ze,{color:h})),t.createElement("span",null,u," ",d)))};qe.propTypes={story:o.shape({"read-time":o.number}),opts:o.shape({showReadTime:o.bool}),isLightTheme:o.bool};var Ye={"./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"}},Je=function(e){var r=e.story,o=e.separator,n=e.isBottom,i=e.hideAuthorImage,c=e.prefix,l=e.config,s=void 0===l?{}:l,u=e.isLightTheme,h=g()||{},d=a(s,["showAuthor"],a(h,["showAuthor"],!0)),m=a(s,["showTime"],a(h,["showTime"],!0)),f=a(h,["showReadTime"],!0),v=n?"bottom-fix":"",y="dot"===o?"dot":"dash",_=u?"light":Le(h.theme),w=function(){return m?t.createElement(t.Fragment,null,d&&t.createElement("span",{className:"arr-separator "+p("".concat(y),Ye)},"divider"===o?t.createElement(Ve,{color:_}):t.createElement(Ze,{color:_})),t.createElement(Fe,{story:r,config:s}),f&&t.createElement(qe,{story:r,opts:s,isLightTheme:u})):null};return t.createElement("div",{className:"arr--author-time "+p("author-time-wrapper ".concat(v),Ye)},d?t.createElement(t.Fragment,null,t.createElement(Ge,{story:r,isBottom:!0,hideAuthorImage:i,prefix:c}),w()):w())};Je.propTypes={story:o.object,separator:o.oneOf(["dot","divider"]),hideAuthorImage:o.bool,isBottom:o.bool,prefix:o.string,config:o.object,isLightTheme:o.bool},Je.defaultProps={separator:"dot",isBottom:!1,hideAuthorImage:!0,prefix:"",isLightTheme:!1};var Ke={"./storycardContent.m.css":{wrapper:"storycardContent-m_wrapper__TEmfA","horizontal-content-wrapper":"storycardContent-m_horizontal-content-wrapper__NgpuC","border-full":"storycardContent-m_border-full__2km37"}},Xe=function(e){var r=e.story,o=e.children,n=e.theme,i=e.border,a=e.isHorizontalMobile,c=e.headerLevel,l=e.borderColor,s=e.config,u=Le(n),h=Te(l),d=["full"].includes(i)?"border-".concat(i):"",m=a?"horizontal-content-wrapper":"";return t.createElement("div",{"data-test-id":"story-card-content",style:{backgroundColor:n,color:u},className:"arr--content-wrapper "+p("wrapper ".concat(d," ").concat(m),Ke)},o||t.createElement(Qe,{story:r,headerLevel:c,isHorizontalMobile:a,borderColor:h,config:s}))},Qe=function(e){var r=e.story,o=e.headerLevel,n=e.borderColor,i=e.config,a=void 0===i?{}:i,c=Te(n),l=a.localizationConfig,s=void 0===l?{}:l;return t.createElement("div",null,t.createElement(De,{story:r,borderColor:c}),t.createElement(Me,{story:r,headerLevel:o,premiumStoryIconConfig:a}),t.createElement(Je,{config:s,story:r}))};Qe.propTypes={story:o.object.isRequired,border:o.string,theme:o.string,isHorizontalMobile:o.bool,headerLevel:o.string,borderColor:o.string,config:o.object},Xe.propTypes={story:o.object.isRequired,children:o.node,theme:o.string,border:o.string,isHorizontalMobile:o.bool,headerLevel:o.string,borderColor:o.string,config:o.object};export{Xe as StorycardContent};
@@ -1 +0,0 @@
1
- import t,{useContext as e,createContext as r}from"react";import n from"prop-types";import o from"lodash.get";import"react-timeago";import"date-fns-tz";var i="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function a(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function u(t){var e={exports:{}};return t(e,e.exports),e.exports}var s=u((function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r={attributeNames:{styleName:"className"},generateScopedName:"[path]___[name]__[local]___[hash:base64:5]",handleMissingStyleName:"throw"};e.default=r})),c=a(u((function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r,n=(r=s)&&r.__esModule?r:{default:r};var o=function(t,e){if("throw"===e)throw new Error(t);return"warn"===e&&console.warn(t),null};e.default=function(t,e,r){var i=Object.keys(e),a=r||{},u=a.handleMissingStyleName,s=void 0===u?n.default.handleMissingStyleName:u,c=a.autoResolveMultipleImports,l=void 0===c?n.default.autoResolveMultipleImports:c;return t?t.split(" ").filter((function(t){return t})).map((function(t){if(function(t){return-1!==t.indexOf(".")}(t))return function(t,e,r){var i=t.split("."),a=i[0],u=i[1],s=r||n.default.handleMissingStyleName;return u?e[a]?e[a][u]?e[a][u]:o("CSS module does not exist: "+u,s):o("CSS module import does not exist: "+a,s):o("Invalid style name: "+t,s)}(t,e,s);if(0===i.length)throw new Error("Cannot use styleName attribute for style name '"+t+"' without importing at least one stylesheet.");if(i.length>1){if(!l)throw new Error("Cannot use anonymous style name '"+t+"' with more than one stylesheet import without setting 'autoResolveMultipleImports' to true.");return function(t,e,r){var i=r||n.default.handleMissingStyleName,a=Object.keys(e).map((function(r){return e[r][t]&&r})).filter((function(t){return t}));if(a.length>1)throw new Error('Cannot resolve styleName "'+t+'" because it is present in multiple imports:\n\n\t'+a.join("\n\t")+'\n\nYou can resolve this by using a named import, e.g:\n\n\timport foo from "'+a[0]+'";\n\t<div styleName="foo.'+t+'" />\n\n');return 0===a.length?o("Could not resolve the styleName '"+t+"'.",i):e[a[0]][t]}(t,e,s)}var r=e[i[0]];return r[t]?r[t]:o("Could not resolve the styleName '"+t+"'.",s)})).filter((function(t){return t})).join(" "):""}}))),l=r();u((function(t){var e=function(t){var e,r=Object.prototype,n=r.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",u=o.toStringTag||"@@toStringTag";function s(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(t){s=function(t,e,r){return t[e]=r}}function c(t,e,r,n){var o=e&&e.prototype instanceof 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===v){if("throw"===o)throw i;return z()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var u=S(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===h)throw n=v,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n=p;var s=l(t,e,r);if("normal"===s.type){if(n=r.done?v:f,s.arg===d)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(n=v,r.method="throw",r.arg=s.arg)}}}(t,r,a),i}function l(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=c;var h="suspendedStart",f="suspendedYield",p="executing",v="completed",d={};function y(){}function g(){}function m(){}var _={};s(_,i,(function(){return this}));var b=Object.getPrototypeOf,w=b&&b(b(C([])));w&&w!==r&&n.call(w,i)&&(_=w);var j=m.prototype=y.prototype=Object.create(_);function O(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function x(t,e){function r(o,i,a,u){var s=l(t[o],t,i);if("throw"!==s.type){var c=s.arg,h=c.value;return h&&"object"==typeof h&&n.call(h,"__await")?e.resolve(h.__await).then((function(t){r("next",t,a,u)}),(function(t){r("throw",t,a,u)})):e.resolve(h).then((function(t){c.value=t,a(c)}),(function(t){return r("throw",t,a,u)}))}u(s.arg)}var o;this._invoke=function(t,n){function i(){return new e((function(e,o){r(t,n,e,o)}))}return o=o?o.then(i,i):i()}}function S(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,S(t,r),"throw"===r.method))return d;r.method="throw",r.arg=new TypeError("The iterator does not provide a 'throw' method")}return d}var o=l(n,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,d;var 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 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 L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function N(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(E,this),this.reset(!0)}function C(t){if(t){var r=t[i];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,a=function r(){for(;++o<t.length;)if(n.call(t,o))return r.value=t[o],r.done=!1,r;return r.value=e,r.done=!0,r};return a.next=a}}return{next:z}}function z(){return{value:e,done:!0}}return g.prototype=m,s(j,"constructor",m),s(m,"constructor",g),g.displayName=s(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,s(t,u,"GeneratorFunction")),t.prototype=Object.create(j),t},t.awrap=function(t){return{__await:t}},O(x.prototype),s(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(c(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},O(j),s(j,u,"Generator"),s(j,i,(function(){return this})),s(j,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=[];for(var r in t)e.push(r);return e.reverse(),function r(){for(;e.length;){var n=e.pop();if(n in t)return r.value=n,r.done=!1,r}return r.done=!0,r}},t.values=C,N.prototype={constructor:N,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(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 s=n.call(a,"catchLoc"),c=n.call(a,"finallyLoc");if(s&&c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,d):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),d},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),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:C(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 h="object"==typeof i&&i&&i.Object===Object&&i,f="object"==typeof self&&self&&self.Object===Object&&self,p=h||f||Function("return this")(),v=p.Symbol,d=Object.prototype,y=d.hasOwnProperty,g=d.toString,m=v?v.toStringTag:void 0;var _=function(t){var e=y.call(t,m),r=t[m];try{t[m]=void 0;var n=!0}catch(t){}var o=g.call(t);return n&&(e?t[m]=r:delete t[m]),o},b=Object.prototype.toString;var w=function(t){return b.call(t)},j=v?v.toStringTag:void 0;var O=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":j&&j in Object(t)?_(t):w(t)};var x=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)};var S,E=function(t){if(!x(t))return!1;var e=O(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e},L=p["__core-js_shared__"],N=(S=/[^.]+$/.exec(L&&L.keys&&L.keys.IE_PROTO||""))?"Symbol(src)_1."+S:"";var C=function(t){return!!N&&N in t},z=Function.prototype.toString;var k=function(t){if(null!=t){try{return z.call(t)}catch(t){}try{return t+""}catch(t){}}return""},F=/^\[object .+?Constructor\]$/,P=Function.prototype,I=Object.prototype,T=P.toString,M=I.hasOwnProperty,A=RegExp("^"+T.call(M).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var G=function(t){return!(!x(t)||C(t))&&(E(t)?A:F).test(k(t))};var R=function(t,e){return null==t?void 0:t[e]};var $=function(t,e){var r=R(t,e);return G(r)?r:void 0},Y=$(Object,"create");var U=function(){this.__data__=Y?Y(null):{},this.size=0};var q=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},W=Object.prototype.hasOwnProperty;var B=function(t){var e=this.__data__;if(Y){var r=e[t];return"__lodash_hash_undefined__"===r?void 0:r}return W.call(e,t)?e[t]:void 0},D=Object.prototype.hasOwnProperty;var H=function(t){var e=this.__data__;return Y?void 0!==e[t]:D.call(e,t)};var J=function(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=Y&&void 0===e?"__lodash_hash_undefined__":e,this};function K(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])}}K.prototype.clear=U,K.prototype.delete=q,K.prototype.get=B,K.prototype.has=H,K.prototype.set=J;var Q=K;var V=function(){this.__data__=[],this.size=0};var X=function(t,e){return t===e||t!=t&&e!=e};var Z=function(t,e){for(var r=t.length;r--;)if(X(t[r][0],e))return r;return-1},tt=Array.prototype.splice;var et=function(t){var e=this.__data__,r=Z(e,t);return!(r<0)&&(r==e.length-1?e.pop():tt.call(e,r,1),--this.size,!0)};var rt=function(t){var e=this.__data__,r=Z(e,t);return r<0?void 0:e[r][1]};var nt=function(t){return Z(this.__data__,t)>-1};var ot=function(t,e){var r=this.__data__,n=Z(r,t);return n<0?(++this.size,r.push([t,e])):r[n][1]=e,this};function it(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])}}it.prototype.clear=V,it.prototype.delete=et,it.prototype.get=rt,it.prototype.has=nt,it.prototype.set=ot;var at=it,ut=$(p,"Map");var st=function(){this.size=0,this.__data__={hash:new Q,map:new(ut||at),string:new Q}};var ct=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t};var lt=function(t,e){var r=t.__data__;return ct(e)?r["string"==typeof e?"string":"hash"]:r.map};var ht=function(t){var e=lt(this,t).delete(t);return this.size-=e?1:0,e};var ft=function(t){return lt(this,t).get(t)};var pt=function(t){return lt(this,t).has(t)};var vt=function(t,e){var r=lt(this,t),n=r.size;return r.set(t,e),this.size+=r.size==n?0:1,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=st,dt.prototype.delete=ht,dt.prototype.get=ft,dt.prototype.has=pt,dt.prototype.set=vt;var yt=dt;function gt(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(gt.Cache||yt),r}gt.Cache=yt;var mt=gt;var _t=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,bt=/\\(\\)?/g;(function(t){var e=mt(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(_t,(function(t,r,n,o){e.push(n?o.replace(bt,"$1"):r||t)})),e}));var wt=v?v.prototype:void 0;wt&&wt.toString;var jt=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},Ot=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"rgba(255, 255, 255, 0)",e=t.match(/^rgba?[\s+]?\([\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?/i);return e&&4===e.length?"#"+("0"+parseInt(e[1],10).toString(16)).slice(-2)+("0"+parseInt(e[2],10).toString(16)).slice(-2)+("0"+parseInt(e[3],10).toString(16)).slice(-2):t};n.shape({"sketches-host":n.string,"cdn-name":n.string,"cdn-image":n.string}),n.shape({headline:n.string,"last-published-at":n.number,subheadline:n.string});var xt={"./subheadline.m.css":{subheadline:"subheadline-m_subheadline__3fd7z",dark:"subheadline-m_dark__28u00",light:"subheadline-m_light__2YUOe"}},St=function(r){var n=r.story,i=r.truncateChars,a=void 0===i?200:i,u=r.lineClamp,s=r.clazzName,h=void 0===s?"":s,f=r.forceShowAtom,p=r.showFullContent,v=e(l)||{};if(!(f||o(v,["showSubheadline"],!0)))return null;var d=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"rgb(255,255,255)",e=/^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/.test(t)?t:Ot(t);return jt(e)<155?"light":"dark"}(v.theme);return t.createElement("div",{style:{WebkitLineClamp:u},"data-test-id":"subheadline",className:("p-alt arr--sub-headline arrow-component ".concat(h)?"p-alt arr--sub-headline arrow-component ".concat(h)+" ":"")+c("subheadline ".concat(d),xt)},p||"number"==typeof u?n.subheadline:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:60,r=arguments.length>2&&void 0!==arguments[2]&&!arguments[2]?"":" ...";return"string"==typeof t&&t.length>e?t.substring(0,e)+r:t}(n.subheadline,a,!0))};St.propTypes={story:n.object.isRequired,lineClamp:n.number,truncateChars:n.number,clazzName:n.string,forceShowAtom:n.bool,showFullContent:n.bool},St.defaultProps={forceShowAtom:!1,showFullContent:!1};export{St as Subheadline};
package/Summary/index.js DELETED
@@ -1 +0,0 @@
1
- import t,{useContext as e,createContext as r}from"react";import n from"prop-types";import"react-timeago";import"date-fns-tz";function o(){return o=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},o.apply(this,arguments)}function a(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r,n,o={},a=Object.keys(t);for(n=0;n<a.length;n++)r=a[n],e.indexOf(r)>=0||(o[r]=t[r]);return o}(t,e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(n=0;n<a.length;n++)r=a[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}var i="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function s(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function u(t){var e={exports:{}};return t(e,e.exports),e.exports}var c=u((function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r={attributeNames:{styleName:"className"},generateScopedName:"[path]___[name]__[local]___[hash:base64:5]",handleMissingStyleName:"throw"};e.default=r})),l=s(u((function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r,n=(r=c)&&r.__esModule?r:{default:r};var o=function(t,e){if("throw"===e)throw new Error(t);return"warn"===e&&console.warn(t),null};e.default=function(t,e,r){var a=Object.keys(e),i=r||{},s=i.handleMissingStyleName,u=void 0===s?n.default.handleMissingStyleName:s,c=i.autoResolveMultipleImports,l=void 0===c?n.default.autoResolveMultipleImports:c;return t?t.split(" ").filter((function(t){return t})).map((function(t){if(function(t){return-1!==t.indexOf(".")}(t))return function(t,e,r){var a=t.split("."),i=a[0],s=a[1],u=r||n.default.handleMissingStyleName;return s?e[i]?e[i][s]?e[i][s]:o("CSS module does not exist: "+s,u):o("CSS module import does not exist: "+i,u):o("Invalid style name: "+t,u)}(t,e,u);if(0===a.length)throw new Error("Cannot use styleName attribute for style name '"+t+"' without importing at least one stylesheet.");if(a.length>1){if(!l)throw new Error("Cannot use anonymous style name '"+t+"' with more than one stylesheet import without setting 'autoResolveMultipleImports' to true.");return function(t,e,r){var a=r||n.default.handleMissingStyleName,i=Object.keys(e).map((function(r){return e[r][t]&&r})).filter((function(t){return t}));if(i.length>1)throw new Error('Cannot resolve styleName "'+t+'" because it is present in multiple imports:\n\n\t'+i.join("\n\t")+'\n\nYou can resolve this by using a named import, e.g:\n\n\timport foo from "'+i[0]+'";\n\t<div styleName="foo.'+t+'" />\n\n');return 0===i.length?o("Could not resolve the styleName '"+t+"'.",a):e[i[0]][t]}(t,e,u)}var r=e[a[0]];return r[t]?r[t]:o("Could not resolve the styleName '"+t+"'.",u)})).filter((function(t){return t})).join(" "):""}}))),h=["element","render"],f=function(e){return function(r){var n=r.element,i=r.render,s=a(r,h);return n?i&&"function"==typeof i?i(r):t.createElement(e,o({},s,{element:n})):null}};f.propTypes={StoryElement:n.element},u((function(t){var e=function(t){var e,r=Object.prototype,n=r.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",i=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function u(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,r){return t[e]=r}}function c(t,e,r,n){var o=e&&e.prototype instanceof v?e:v,a=Object.create(o.prototype),i=new N(n||[]);return a._invoke=function(t,e,r){var n=h;return function(o,a){if(n===p)throw new Error("Generator is already running");if(n===d){if("throw"===o)throw a;return P()}for(r.method=o,r.arg=a;;){var i=r.delegate;if(i){var s=E(i,r);if(s){if(s===y)continue;return s}}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=l(t,e,r);if("normal"===u.type){if(n=r.done?d:f,u.arg===y)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(n=d,r.method="throw",r.arg=u.arg)}}}(t,r,i),a}function l(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=c;var h="suspendedStart",f="suspendedYield",p="executing",d="completed",y={};function v(){}function m(){}function g(){}var _={};u(_,a,(function(){return this}));var b=Object.getPrototypeOf,w=b&&b(b(k([])));w&&w!==r&&n.call(w,a)&&(_=w);var O=g.prototype=v.prototype=Object.create(_);function j(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function x(t,e){function r(o,a,i,s){var u=l(t[o],t,a);if("throw"!==u.type){var c=u.arg,h=c.value;return h&&"object"==typeof h&&n.call(h,"__await")?e.resolve(h.__await).then((function(t){r("next",t,i,s)}),(function(t){r("throw",t,i,s)})):e.resolve(h).then((function(t){c.value=t,i(c)}),(function(t){return r("throw",t,i,s)}))}s(u.arg)}var o;this._invoke=function(t,n){function a(){return new e((function(e,o){r(t,n,e,o)}))}return o=o?o.then(a,a):a()}}function E(t,r){var n=t.iterator[r.method];if(n===e){if(r.delegate=null,"throw"===r.method){if(t.iterator.return&&(r.method="return",r.arg=e,E(t,r),"throw"===r.method))return y;r.method="throw",r.arg=new TypeError("The iterator does not provide a 'throw' method")}return y}var o=l(n,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,y;var a=o.arg;return a?a.done?(r[t.resultName]=a.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,y):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function S(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function N(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(S,this),this.reset(!0)}function k(t){if(t){var r=t[a];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function r(){for(;++o<t.length;)if(n.call(t,o))return r.value=t[o],r.done=!1,r;return r.value=e,r.done=!0,r};return i.next=i}}return{next:P}}function P(){return{value:e,done:!0}}return m.prototype=g,u(O,"constructor",g),u(g,"constructor",m),m.displayName=u(g,s,"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,s,"GeneratorFunction")),t.prototype=Object.create(O),t},t.awrap=function(t){return{__await:t}},j(x.prototype),u(x.prototype,i,(function(){return this})),t.AsyncIterator=x,t.async=function(e,r,n,o,a){void 0===a&&(a=Promise);var i=new x(c(e,r,n,o),a);return t.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},j(O),u(O,s,"Generator"),u(O,a,(function(){return this})),u(O,"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 s.type="throw",s.arg=t,r.next=n,o&&(r.method="next",r.arg=e),!!o}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],s=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var u=n.call(i,"catchLoc"),c=n.call(i,"finallyLoc");if(u&&c){if(this.prev<i.catchLoc)return o(i.catchLoc,!0);if(this.prev<i.finallyLoc)return o(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return o(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return o(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,y):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),L(r),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;L(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:k(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),y}},t}(t.exports);try{regeneratorRuntime=e}catch(t){"object"==typeof globalThis?globalThis.regeneratorRuntime=e:Function("r","regeneratorRuntime = r")(e)}}));var p="object"==typeof i&&i&&i.Object===Object&&i,d="object"==typeof self&&self&&self.Object===Object&&self,y=p||d||Function("return this")(),v=y.Symbol,m=Object.prototype,g=m.hasOwnProperty,_=m.toString,b=v?v.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},O=Object.prototype.toString;var j=function(t){return O.call(t)},x=v?v.toStringTag:void 0;var E=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":x&&x in Object(t)?w(t):j(t)};var S=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)};var L,N=function(t){if(!S(t))return!1;var e=E(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e},k=y["__core-js_shared__"],P=(L=/[^.]+$/.exec(k&&k.keys&&k.keys.IE_PROTO||""))?"Symbol(src)_1."+L:"";var C=function(t){return!!P&&P in t},I=Function.prototype.toString;var T=function(t){if(null!=t){try{return I.call(t)}catch(t){}try{return t+""}catch(t){}}return""},M=/^\[object .+?Constructor\]$/,z=Function.prototype,F=Object.prototype,G=z.toString,R=F.hasOwnProperty,$=RegExp("^"+G.call(R).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var A=function(t){return!(!S(t)||C(t))&&(N(t)?$:M).test(T(t))};var H=function(t,e){return null==t?void 0:t[e]};var Y=function(t,e){var r=H(t,e);return A(r)?r:void 0},B=Y(Object,"create");var U=function(){this.__data__=B?B(null):{},this.size=0};var J=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},K=Object.prototype.hasOwnProperty;var V=function(t){var e=this.__data__;if(B){var r=e[t];return"__lodash_hash_undefined__"===r?void 0:r}return K.call(e,t)?e[t]:void 0},Z=Object.prototype.hasOwnProperty;var q=function(t){var e=this.__data__;return B?void 0!==e[t]:Z.call(e,t)};var D=function(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=B&&void 0===e?"__lodash_hash_undefined__":e,this};function Q(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])}}Q.prototype.clear=U,Q.prototype.delete=J,Q.prototype.get=V,Q.prototype.has=q,Q.prototype.set=D;var W=Q;var X=function(){this.__data__=[],this.size=0};var tt=function(t,e){return t===e||t!=t&&e!=e};var et=function(t,e){for(var r=t.length;r--;)if(tt(t[r][0],e))return r;return-1},rt=Array.prototype.splice;var nt=function(t){var e=this.__data__,r=et(e,t);return!(r<0)&&(r==e.length-1?e.pop():rt.call(e,r,1),--this.size,!0)};var ot=function(t){var e=this.__data__,r=et(e,t);return r<0?void 0:e[r][1]};var at=function(t){return et(this.__data__,t)>-1};var it=function(t,e){var r=this.__data__,n=et(r,t);return n<0?(++this.size,r.push([t,e])):r[n][1]=e,this};function st(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}st.prototype.clear=X,st.prototype.delete=nt,st.prototype.get=ot,st.prototype.has=at,st.prototype.set=it;var ut=st,ct=Y(y,"Map");var lt=function(){this.size=0,this.__data__={hash:new W,map:new(ct||ut),string:new W}};var ht=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t};var ft=function(t,e){var r=t.__data__;return ht(e)?r["string"==typeof e?"string":"hash"]:r.map};var pt=function(t){var e=ft(this,t).delete(t);return this.size-=e?1:0,e};var dt=function(t){return ft(this,t).get(t)};var yt=function(t){return ft(this,t).has(t)};var vt=function(t,e){var r=ft(this,t),n=r.size;return r.set(t,e),this.size+=r.size==n?0:1,this};function mt(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}mt.prototype.clear=lt,mt.prototype.delete=pt,mt.prototype.get=dt,mt.prototype.has=yt,mt.prototype.set=vt;var gt=mt;function _t(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var r=function(){var n=arguments,o=e?e.apply(this,n):n[0],a=r.cache;if(a.has(o))return a.get(o);var i=t.apply(this,n);return r.cache=a.set(o,i)||a,i};return r.cache=new(_t.Cache||gt),r}_t.Cache=gt;var bt=_t;var wt=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ot=/\\(\\)?/g;(function(t){var e=bt(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(wt,(function(t,r,n,o){e.push(n?o.replace(Ot,"$1"):r||t)})),e}));var jt=v?v.prototype:void 0;jt&&jt.toString;var xt=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},Et=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},St=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:Et(t),n=xt(r)<155?"light":"dark";return n},Lt=n.shape({"sketches-host":n.string,"cdn-name":n.string,"cdn-image":n.string}),Nt=n.shape({headline:n.string,"last-published-at":n.number,subheadline:n.string}),kt=r(),Pt=["element","template","opts","css","story","config","render"],Ct={"./summary.m.css":{viewports:'"../../../../../assets/stylesheets/viewports.m.css"',mobile:"768px",headline:"summary-m_headline__30sie",summary:"summary-m_summary__3-CnO",content:"summary-m_content__37n8C","summary-header":"summary-m_summary-header__UKVHi","summary-border":"summary-m_summary-border__M9hrr",dark:"summary-m_dark__1ZuzR",light:"summary-m_light__2SYiC","heading-wrapper":"summary-m_heading-wrapper__23S51","content-border":"summary-m_content-border__3ilmJ"}},It=function(r){var n=r.element,i=r.template,s=void 0===i?"":i,u=r.opts,c=void 0===u?{}:u,h=r.css,f=void 0===h?{}:h;r.story,r.config,r.render;var p=a(r,Pt),d=e(kt)||{},y=St(d.theme),v=n.text;if(!v)return null;var m=f.headerBgColor,g=c.isExternalLink,_=void 0===g||g,b=c.headline,w=void 0===b?"Summary":b,O=c.hideHeadline,j=void 0!==O&&O,x=_&&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}(v)||v,E=["header","border"].includes(s)?"summary-".concat(s):"summary",S=j?"content-border":"",L="header"===s||"border"===s,N=L?"".concat(m):"",k=L?St(m):"",P="header"===s?"":y;return t.createElement("div",o({"data-test-id":"summary"},p,{className:"arrow-component arr--summary-element arr-custom-style "+l(E,Ct)+" "+(p&&p.className||"")}),!j&&t.createElement("div",{"data-test-id":"summary-headline",className:l("heading-wrapper ".concat(y),Ct)},t.createElement("div",{style:{backgroundColor:N},className:l("headline ".concat(k," ").concat(y),Ct)},w)),t.createElement("div",{dangerouslySetInnerHTML:{__html:x},className:l("content ".concat(S," ").concat(P," ").concat(y),Ct)}))};It.propTypes={element:n.shape({text:n.string}),template:n.string,opts:n.shape({isExternalLink:n.bool,headline:n.string,hideHeadline:n.bool}),story:Nt,config:Lt,render:n.func,css:n.shape({headerBgColor:n.string})};var Tt=f(It);export{Tt as Summary};
@@ -1 +0,0 @@
1
- import t from"react";import e from"prop-types";import"react-timeago";import"date-fns-tz";var r="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function n(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function o(t){var e={exports:{}};return t(e,e.exports),e.exports}var i=o((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})),a=n(o((function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r,n=(r=i)&&r.__esModule?r:{default:r};var o=function(t,e){if("throw"===e)throw new Error(t);return"warn"===e&&console.warn(t),null};e.default=function(t,e,r){var i=Object.keys(e),a=r||{},c=a.handleMissingStyleName,u=void 0===c?n.default.handleMissingStyleName:c,s=a.autoResolveMultipleImports,l=void 0===s?n.default.autoResolveMultipleImports:s;return t?t.split(" ").filter((function(t){return t})).map((function(t){if(function(t){return-1!==t.indexOf(".")}(t))return function(t,e,r){var i=t.split("."),a=i[0],c=i[1],u=r||n.default.handleMissingStyleName;return c?e[a]?e[a][c]?e[a][c]:o("CSS module does not exist: "+c,u):o("CSS module import does not exist: "+a,u):o("Invalid style name: "+t,u)}(t,e,u);if(0===i.length)throw new Error("Cannot use styleName attribute for style name '"+t+"' without importing at least one stylesheet.");if(i.length>1){if(!l)throw new Error("Cannot use anonymous style name '"+t+"' with more than one stylesheet import without setting 'autoResolveMultipleImports' to true.");return function(t,e,r){var i=r||n.default.handleMissingStyleName,a=Object.keys(e).map((function(r){return e[r][t]&&r})).filter((function(t){return t}));if(a.length>1)throw new Error('Cannot resolve styleName "'+t+'" because it is present in multiple imports:\n\n\t'+a.join("\n\t")+'\n\nYou can resolve this by using a named import, e.g:\n\n\timport foo from "'+a[0]+'";\n\t<div styleName="foo.'+t+'" />\n\n');return 0===a.length?o("Could not resolve the styleName '"+t+"'.",i):e[a[0]][t]}(t,e,u)}var r=e[i[0]];return r[t]?r[t]:o("Could not resolve the styleName '"+t+"'.",u)})).filter((function(t){return t})).join(" "):""}})));o((function(t){var e=function(t){var e,r=Object.prototype,n=r.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,r){return t[e]=r}}function s(t,e,r,n){var o=e&&e.prototype instanceof y?e:y,i=Object.create(o.prototype),a=new L(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 k()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var c=E(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=l(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 l(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=s;var h="suspendedStart",f="suspendedYield",p="executing",d="completed",v={};function y(){}function g(){}function m(){}var _={};u(_,i,(function(){return this}));var w=Object.getPrototypeOf,b=w&&w(w(P([])));b&&b!==r&&n.call(b,i)&&(_=b);var j=m.prototype=y.prototype=Object.create(_);function x(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function O(t,e){function r(o,i,a,c){var u=l(t[o],t,i);if("throw"!==u.type){var s=u.arg,h=s.value;return h&&"object"==typeof h&&n.call(h,"__await")?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){s.value=t,a(s)}),(function(t){return r("throw",t,a,c)}))}c(u.arg)}var o;this._invoke=function(t,n){function i(){return new e((function(e,o){r(t,n,e,o)}))}return o=o?o.then(i,i):i()}}function E(t,r){var n=t.iterator[r.method];if(n===e){if(r.delegate=null,"throw"===r.method){if(t.iterator.return&&(r.method="return",r.arg=e,E(t,r),"throw"===r.method))return v;r.method="throw",r.arg=new TypeError("The iterator does not provide a 'throw' method")}return v}var o=l(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 N(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function S(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function L(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(N,this),this.reset(!0)}function P(t){if(t){var r=t[i];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,a=function r(){for(;++o<t.length;)if(n.call(t,o))return r.value=t[o],r.done=!1,r;return r.value=e,r.done=!0,r};return a.next=a}}return{next:k}}function k(){return{value:e,done:!0}}return g.prototype=m,u(j,"constructor",m),u(m,"constructor",g),g.displayName=u(m,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,m):(t.__proto__=m,u(t,c,"GeneratorFunction")),t.prototype=Object.create(j),t},t.awrap=function(t){return{__await:t}},x(O.prototype),u(O.prototype,a,(function(){return this})),t.AsyncIterator=O,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new O(s(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},x(j),u(j,c,"Generator"),u(j,i,(function(){return this})),u(j,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=[];for(var r in t)e.push(r);return e.reverse(),function r(){for(;e.length;){var n=e.pop();if(n in t)return r.value=n,r.done=!1,r}return r.done=!0,r}},t.values=P,L.prototype={constructor:L,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(S),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function o(n,o){return c.type="throw",c.arg=t,r.next=n,o&&(r.method="next",r.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var u=n.call(a,"catchLoc"),s=n.call(a,"finallyLoc");if(u&&s){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,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),S(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;S(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:P(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),v}},t}(t.exports);try{regeneratorRuntime=e}catch(t){"object"==typeof globalThis?globalThis.regeneratorRuntime=e:Function("r","regeneratorRuntime = r")(e)}}));var c="object"==typeof r&&r&&r.Object===Object&&r,u="object"==typeof self&&self&&self.Object===Object&&self,s=c||u||Function("return this")(),l=s.Symbol,h=Object.prototype,f=h.hasOwnProperty,p=h.toString,d=l?l.toStringTag:void 0;var v=function(t){var e=f.call(t,d),r=t[d];try{t[d]=void 0;var n=!0}catch(t){}var o=p.call(t);return n&&(e?t[d]=r:delete t[d]),o},y=Object.prototype.toString;var g=function(t){return y.call(t)},m=l?l.toStringTag:void 0;var _=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":m&&m in Object(t)?v(t):g(t)};var w=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)};var b,j=function(t){if(!w(t))return!1;var e=_(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e},x=s["__core-js_shared__"],O=(b=/[^.]+$/.exec(x&&x.keys&&x.keys.IE_PROTO||""))?"Symbol(src)_1."+b:"";var E=function(t){return!!O&&O in t},N=Function.prototype.toString;var S=function(t){if(null!=t){try{return N.call(t)}catch(t){}try{return t+""}catch(t){}}return""},L=/^\[object .+?Constructor\]$/,P=Function.prototype,k=Object.prototype,I=P.toString,z=k.hasOwnProperty,F=RegExp("^"+I.call(z).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var T=function(t){return!(!w(t)||E(t))&&(j(t)?F:L).test(S(t))};var M=function(t,e){return null==t?void 0:t[e]};var C=function(t,e){var r=M(t,e);return T(r)?r:void 0},G=C(Object,"create");var $=function(){this.__data__=G?G(null):{},this.size=0};var R=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},A=Object.prototype.hasOwnProperty;var Y=function(t){var e=this.__data__;if(G){var r=e[t];return"__lodash_hash_undefined__"===r?void 0:r}return A.call(e,t)?e[t]:void 0},D=Object.prototype.hasOwnProperty;var B=function(t){var e=this.__data__;return G?void 0!==e[t]:D.call(e,t)};var H=function(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=G&&void 0===e?"__lodash_hash_undefined__":e,this};function K(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])}}K.prototype.clear=$,K.prototype.delete=R,K.prototype.get=Y,K.prototype.has=B,K.prototype.set=H;var U=K;var X=function(){this.__data__=[],this.size=0};var Z=function(t,e){return t===e||t!=t&&e!=e};var q=function(t,e){for(var r=t.length;r--;)if(Z(t[r][0],e))return r;return-1},J=Array.prototype.splice;var Q=function(t){var e=this.__data__,r=q(e,t);return!(r<0)&&(r==e.length-1?e.pop():J.call(e,r,1),--this.size,!0)};var V=function(t){var e=this.__data__,r=q(e,t);return r<0?void 0:e[r][1]};var W=function(t){return q(this.__data__,t)>-1};var tt=function(t,e){var r=this.__data__,n=q(r,t);return n<0?(++this.size,r.push([t,e])):r[n][1]=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=X,et.prototype.delete=Q,et.prototype.get=V,et.prototype.has=W,et.prototype.set=tt;var rt=et,nt=C(s,"Map");var ot=function(){this.size=0,this.__data__={hash:new U,map:new(nt||rt),string:new U}};var it=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t};var at=function(t,e){var r=t.__data__;return it(e)?r["string"==typeof e?"string":"hash"]:r.map};var ct=function(t){var e=at(this,t).delete(t);return this.size-=e?1:0,e};var ut=function(t){return at(this,t).get(t)};var st=function(t){return at(this,t).has(t)};var lt=function(t,e){var r=at(this,t),n=r.size;return r.set(t,e),this.size+=r.size==n?0:1,this};function ht(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}ht.prototype.clear=ot,ht.prototype.delete=ct,ht.prototype.get=ut,ht.prototype.has=st,ht.prototype.set=lt;var ft=ht;function pt(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var r=function(){var n=arguments,o=e?e.apply(this,n):n[0],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(pt.Cache||ft),r}pt.Cache=ft;var dt=pt;var vt=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,yt=/\\(\\)?/g;(function(t){var e=dt(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(vt,(function(t,r,n,o){e.push(n?o.replace(yt,"$1"):r||t)})),e}));var gt=l?l.prototype:void 0;gt&&gt.toString;var mt=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},_t=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};e.shape({"sketches-host":e.string,"cdn-name":e.string,"cdn-image":e.string}),e.shape({headline:e.string,"last-published-at":e.number,subheadline:e.string});var wt={"./tag-intro-card.module.css":{viewports:'"../../../../assets/stylesheets/viewports.m.css"',mobile:"768px",description:"tag-intro-card-module_description__2PKNY",wrapper:"tag-intro-card-module_wrapper__2bz6X",dark:"tag-intro-card-module_dark__1IlHe",light:"tag-intro-card-module_light__3BSZP"}},bt=function(e){var r=e.data,n=e.config,o=(void 0===n?{}:n).theme,i=void 0===o?"":o,c=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"rgb(255,255,255)",e=/^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/.test(t)?t:_t(t);return mt(e)<155?"light":"dark"}(i),u=r.tagDescription,s=r.tagName;return t.createElement("div",{style:{backgroundColor:i,color:c},className:"full-width-with-padding arrow-component "+a("wrapper ".concat(c),wt)},t.createElement("h1",{className:a(c,wt)},s),t.createElement("div",{className:a("description ".concat(c),wt)},u))};bt.propTypes={data:e.shape({tagName:e.string,tagDescription:e.string}),config:e.shape({theme:e.string})};export{bt as default};
package/Text/index.js DELETED
@@ -1 +0,0 @@
1
- import t,{useContext as e,createContext as r}from"react";import n from"prop-types";import o from"lodash.get";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 s="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 c(t){var e={exports:{}};return t(e,e.exports),e.exports}var l=c((function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r={attributeNames:{styleName:"className"},generateScopedName:"[path]___[name]__[local]___[hash:base64:5]",handleMissingStyleName:"throw"};e.default=r})),f=u(c((function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r,n=(r=l)&&r.__esModule?r:{default:r};var o=function(t,e){if("throw"===e)throw new Error(t);return"warn"===e&&console.warn(t),null};e.default=function(t,e,r){var i=Object.keys(e),a=r||{},s=a.handleMissingStyleName,u=void 0===s?n.default.handleMissingStyleName:s,c=a.autoResolveMultipleImports,l=void 0===c?n.default.autoResolveMultipleImports:c;return t?t.split(" ").filter((function(t){return t})).map((function(t){if(function(t){return-1!==t.indexOf(".")}(t))return function(t,e,r){var i=t.split("."),a=i[0],s=i[1],u=r||n.default.handleMissingStyleName;return s?e[a]?e[a][s]?e[a][s]:o("CSS module does not exist: "+s,u):o("CSS module import does not exist: "+a,u):o("Invalid style name: "+t,u)}(t,e,u);if(0===i.length)throw new Error("Cannot use styleName attribute for style name '"+t+"' without importing at least one stylesheet.");if(i.length>1){if(!l)throw new Error("Cannot use anonymous style name '"+t+"' with more than one stylesheet import without setting 'autoResolveMultipleImports' to true.");return function(t,e,r){var i=r||n.default.handleMissingStyleName,a=Object.keys(e).map((function(r){return e[r][t]&&r})).filter((function(t){return t}));if(a.length>1)throw new Error('Cannot resolve styleName "'+t+'" because it is present in multiple imports:\n\n\t'+a.join("\n\t")+'\n\nYou can resolve this by using a named import, e.g:\n\n\timport foo from "'+a[0]+'";\n\t<div styleName="foo.'+t+'" />\n\n');return 0===a.length?o("Could not resolve the styleName '"+t+"'.",i):e[a[0]][t]}(t,e,u)}var r=e[i[0]];return r[t]?r[t]:o("Could not resolve the styleName '"+t+"'.",u)})).filter((function(t){return t})).join(" "):""}}))),h=["element","render"],p=function(e){return function(r){var n=r.element,o=r.render,s=a(r,h);return n?o&&"function"==typeof o?o(r):t.createElement(e,i({},s,{element:n})):null}};p.propTypes={StoryElement:n.element},c((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",s=o.toStringTag||"@@toStringTag";function u(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,r){return t[e]=r}}function c(t,e,r,n){var o=e&&e.prototype instanceof d?e:d,i=Object.create(o.prototype),a=new N(n||[]);return i._invoke=function(t,e,r){var n=f;return function(o,i){if(n===p)throw new Error("Generator is already running");if(n===v){if("throw"===o)throw i;return P()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var s=E(a,r);if(s){if(s===y)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(n===f)throw n=v,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n=p;var u=l(t,e,r);if("normal"===u.type){if(n=r.done?v:h,u.arg===y)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(n=v,r.method="throw",r.arg=u.arg)}}}(t,r,a),i}function l(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=c;var f="suspendedStart",h="suspendedYield",p="executing",v="completed",y={};function d(){}function g(){}function m(){}var _={};u(_,i,(function(){return this}));var b=Object.getPrototypeOf,w=b&&b(b(k([])));w&&w!==r&&n.call(w,i)&&(_=w);var x=m.prototype=d.prototype=Object.create(_);function O(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function j(t,e){function r(o,i,a,s){var u=l(t[o],t,i);if("throw"!==u.type){var c=u.arg,f=c.value;return f&&"object"==typeof f&&n.call(f,"__await")?e.resolve(f.__await).then((function(t){r("next",t,a,s)}),(function(t){r("throw",t,a,s)})):e.resolve(f).then((function(t){c.value=t,a(c)}),(function(t){return r("throw",t,a,s)}))}s(u.arg)}var o;this._invoke=function(t,n){function i(){return new e((function(e,o){r(t,n,e,o)}))}return o=o?o.then(i,i):i()}}function E(t,r){var n=t.iterator[r.method];if(n===e){if(r.delegate=null,"throw"===r.method){if(t.iterator.return&&(r.method="return",r.arg=e,E(t,r),"throw"===r.method))return y;r.method="throw",r.arg=new TypeError("The iterator does not provide a 'throw' method")}return y}var o=l(n,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,y;var i=o.arg;return i?i.done?(r[t.resultName]=i.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,y):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function S(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function N(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(S,this),this.reset(!0)}function 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:P}}function P(){return{value:e,done:!0}}return g.prototype=m,u(x,"constructor",m),u(m,"constructor",g),g.displayName=u(m,s,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,m):(t.__proto__=m,u(t,s,"GeneratorFunction")),t.prototype=Object.create(x),t},t.awrap=function(t){return{__await:t}},O(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(c(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},O(x),u(x,s,"Generator"),u(x,i,(function(){return this})),u(x,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=[];for(var r in t)e.push(r);return e.reverse(),function r(){for(;e.length;){var n=e.pop();if(n in t)return r.value=n,r.done=!1,r}return r.done=!0,r}},t.values=k,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 s.type="throw",s.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],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var u=n.call(a,"catchLoc"),c=n.call(a,"finallyLoc");if(u&&c){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(!c)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),L(r),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;L(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:k(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),y}},t}(t.exports);try{regeneratorRuntime=e}catch(t){"object"==typeof globalThis?globalThis.regeneratorRuntime=e:Function("r","regeneratorRuntime = r")(e)}}));var v="object"==typeof s&&s&&s.Object===Object&&s,y="object"==typeof self&&self&&self.Object===Object&&self,d=v||y||Function("return this")(),g=d.Symbol,m=Object.prototype,_=m.hasOwnProperty,b=m.toString,w=g?g.toStringTag:void 0;var x=function(t){var e=_.call(t,w),r=t[w];try{t[w]=void 0;var n=!0}catch(t){}var o=b.call(t);return n&&(e?t[w]=r:delete t[w]),o},O=Object.prototype.toString;var j=function(t){return O.call(t)},E=g?g.toStringTag:void 0;var S=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":E&&E in Object(t)?x(t):j(t)};var L=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)};var N,k=function(t){if(!L(t))return!1;var e=S(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e},P=d["__core-js_shared__"],M=(N=/[^.]+$/.exec(P&&P.keys&&P.keys.IE_PROTO||""))?"Symbol(src)_1."+N:"";var T=function(t){return!!M&&M in t},C=Function.prototype.toString;var I=function(t){if(null!=t){try{return C.call(t)}catch(t){}try{return t+""}catch(t){}}return""},F=/^\[object .+?Constructor\]$/,z=Function.prototype,G=Object.prototype,R=z.toString,$=G.hasOwnProperty,A=RegExp("^"+R.call($).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var Y=function(t){return!(!L(t)||T(t))&&(k(t)?A:F).test(I(t))};var U=function(t,e){return null==t?void 0:t[e]};var H=function(t,e){var r=U(t,e);return Y(r)?r:void 0},Q=H(Object,"create");var q=function(){this.__data__=Q?Q(null):{},this.size=0};var B=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},D=Object.prototype.hasOwnProperty;var J=function(t){var e=this.__data__;if(Q){var r=e[t];return"__lodash_hash_undefined__"===r?void 0:r}return D.call(e,t)?e[t]:void 0},K=Object.prototype.hasOwnProperty;var V=function(t){var e=this.__data__;return Q?void 0!==e[t]:K.call(e,t)};var W=function(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=Q&&void 0===e?"__lodash_hash_undefined__":e,this};function X(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}X.prototype.clear=q,X.prototype.delete=B,X.prototype.get=J,X.prototype.has=V,X.prototype.set=W;var Z=X;var tt=function(){this.__data__=[],this.size=0};var et=function(t,e){return t===e||t!=t&&e!=e};var rt=function(t,e){for(var r=t.length;r--;)if(et(t[r][0],e))return r;return-1},nt=Array.prototype.splice;var ot=function(t){var e=this.__data__,r=rt(e,t);return!(r<0)&&(r==e.length-1?e.pop():nt.call(e,r,1),--this.size,!0)};var it=function(t){var e=this.__data__,r=rt(e,t);return r<0?void 0:e[r][1]};var at=function(t){return rt(this.__data__,t)>-1};var st=function(t,e){var r=this.__data__,n=rt(r,t);return n<0?(++this.size,r.push([t,e])):r[n][1]=e,this};function ut(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}ut.prototype.clear=tt,ut.prototype.delete=ot,ut.prototype.get=it,ut.prototype.has=at,ut.prototype.set=st;var ct=ut,lt=H(d,"Map");var ft=function(){this.size=0,this.__data__={hash:new Z,map:new(lt||ct),string:new Z}};var ht=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t};var pt=function(t,e){var r=t.__data__;return ht(e)?r["string"==typeof e?"string":"hash"]:r.map};var vt=function(t){var e=pt(this,t).delete(t);return this.size-=e?1:0,e};var yt=function(t){return pt(this,t).get(t)};var dt=function(t){return pt(this,t).has(t)};var gt=function(t,e){var r=pt(this,t),n=r.size;return r.set(t,e),this.size+=r.size==n?0:1,this};function mt(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}mt.prototype.clear=ft,mt.prototype.delete=vt,mt.prototype.get=yt,mt.prototype.has=dt,mt.prototype.set=gt;var _t=mt;function bt(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var r=function(){var n=arguments,o=e?e.apply(this,n):n[0],i=r.cache;if(i.has(o))return i.get(o);var a=t.apply(this,n);return r.cache=i.set(o,a)||i,a};return r.cache=new(bt.Cache||_t),r}bt.Cache=_t;var wt=bt;var xt=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ot=/\\(\\)?/g;(function(t){var e=wt(t,(function(t){return 500===r.size&&r.clear(),t})),r=e.cache})((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(xt,(function(t,r,n,o){e.push(n?o.replace(Ot,"$1"):r||t)})),e}));var jt=g?g.prototype:void 0;jt&&jt.toString;var Et=function(t){var e=function(t){return{r:parseInt(t.slice(1,3),16),g:parseInt(t.slice(3,5),16),b:parseInt(t.slice(5,7),16)}}(t);return.299*e.r+.587*e.g+.114*e.b},St=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"rgba(255, 255, 255, 0)",e=t.match(/^rgba?[\s+]?\([\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?/i);return e&&4===e.length?"#"+("0"+parseInt(e[1],10).toString(16)).slice(-2)+("0"+parseInt(e[2],10).toString(16)).slice(-2)+("0"+parseInt(e[3],10).toString(16)).slice(-2):t},Lt=n.shape({"sketches-host":n.string,"cdn-name":n.string,"cdn-image":n.string}),Nt=n.shape({headline:n.string,"last-published-at":n.number,subheadline:n.string}),kt=r(),Pt=["element","opts","css","story","config"],Mt={"./text.m.css":{viewports:'"../../../../../assets/stylesheets/viewports.m.css"',mobile:"768px",promotionalMessage:"text-m_promotionalMessage__CUsPM",textElement:"text-m_textElement__e3QEt",dark:"text-m_dark__1TC18",light:"text-m_light__2cRe8"}},Tt=function(r){var n=r.element,s=void 0===n?{}:n,u=r.opts,c=void 0===u?{}:u,l=r.css,h=void 0===l?{}:l;r.story,r.config;var p=a(r,Pt),v=s.text;if(!v)return null;var y=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"rgb(255,255,255)",e=/^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/.test(t)?t:St(t);return Et(e)<155?"light":"dark"}((e(kt)||{}).theme),d=h.textColor,g=c.isExternalLink,m=(void 0===g||g)&&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}(v)||v,_=o(s,["metadata","promotional-message"],!1),b=_?"promotionalMessage":"textElement";return t.createElement("div",i({style:_?{}:{color:d},"data-test-id":_?"promotional-message":"text",dangerouslySetInnerHTML:{__html:m},id:"text-element"},p,{className:"arrow-component arr--text-element "+f("".concat(b," ").concat(y),Mt)+" "+(p&&p.className||"")}))};Tt.propTypes={element:n.shape({text:n.string}),opts:n.shape({isExternalLink:n.bool}),css:n.shape({hyperlinkColor:n.string,textColor:n.string}),story:Nt,config:Lt};var Ct=p(Tt);export{Ct as Text};
@@ -1 +0,0 @@
1
- import e,{createContext as t,useContext as r}from"react";import o,{PropTypes as n}from"prop-types";import a from"lodash.get";import{Link as i,ResponsiveHeroImage as l,ResponsiveImage as c,collectionToStories as s}from"@quintype/components";import{connect as u,useSelector as m}from"react-redux";import d from"react-timeago";import{utcToZonedTime as h,format as f}from"date-fns-tz";function p(e){if(Array.isArray(e))return e}function g(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 v(e,t){if(e){if("string"==typeof e)return g(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)?g(e,t):void 0}}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 y(e){return p(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||v(e)||_()}var b="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function w(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function E(e){var t={exports:{}};return e(t,t.exports),t.exports}var x=E((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={attributeNames:{styleName:"className"},generateScopedName:"[path]___[name]__[local]___[hash:base64:5]",handleMissingStyleName:"throw"};t.default=r})),T=w(E((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,o=(r=x)&&r.__esModule?r:{default:r};var n=function(e,t){if("throw"===t)throw new Error(e);return"warn"===t&&console.warn(e),null};t.default=function(e,t,r){var a=Object.keys(t),i=r||{},l=i.handleMissingStyleName,c=void 0===l?o.default.handleMissingStyleName:l,s=i.autoResolveMultipleImports,u=void 0===s?o.default.autoResolveMultipleImports:s;return e?e.split(" ").filter((function(e){return e})).map((function(e){if(function(e){return-1!==e.indexOf(".")}(e))return function(e,t,r){var a=e.split("."),i=a[0],l=a[1],c=r||o.default.handleMissingStyleName;return l?t[i]?t[i][l]?t[i][l]:n("CSS module does not exist: "+l,c):n("CSS module import does not exist: "+i,c):n("Invalid style name: "+e,c)}(e,t,c);if(0===a.length)throw new Error("Cannot use styleName attribute for style name '"+e+"' without importing at least one stylesheet.");if(a.length>1){if(!u)throw new Error("Cannot use anonymous style name '"+e+"' with more than one stylesheet import without setting 'autoResolveMultipleImports' to true.");return function(e,t,r){var a=r||o.default.handleMissingStyleName,i=Object.keys(t).map((function(r){return t[r][e]&&r})).filter((function(e){return e}));if(i.length>1)throw new Error('Cannot resolve styleName "'+e+'" because it is present in multiple imports:\n\n\t'+i.join("\n\t")+'\n\nYou can resolve this by using a named import, e.g:\n\n\timport foo from "'+i[0]+'";\n\t<div styleName="foo.'+e+'" />\n\n');return 0===i.length?n("Could not resolve the styleName '"+e+"'.",a):t[i[0]][e]}(e,t,c)}var r=t[a[0]];return r[e]?r[e]:n("Could not resolve the styleName '"+e+"'.",c)})).filter((function(e){return e})).join(" "):""}}))),L=t(),z=function(){return r(L)};function k(e){return k="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},k(e)}E((function(e){var t=function(e){var t,r=Object.prototype,o=r.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},a=n.iterator||"@@iterator",i=n.asyncIterator||"@@asyncIterator",l=n.toStringTag||"@@toStringTag";function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,r){return e[t]=r}}function s(e,t,r,o){var n=t&&t.prototype instanceof g?t:g,a=Object.create(n.prototype),i=new N(o||[]);return a._invoke=function(e,t,r){var o=m;return function(n,a){if(o===h)throw new Error("Generator is already running");if(o===f){if("throw"===n)throw a;return C()}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===m)throw o=f,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=h;var c=u(e,t,r);if("normal"===c.type){if(o=r.done?f:d,c.arg===p)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(o=f,r.method="throw",r.arg=c.arg)}}}(e,r,i),a}function u(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=s;var m="suspendedStart",d="suspendedYield",h="executing",f="completed",p={};function g(){}function v(){}function _(){}var y={};c(y,a,(function(){return this}));var b=Object.getPrototypeOf,w=b&&b(b(S([])));w&&w!==r&&o.call(w,a)&&(y=w);var E=_.prototype=g.prototype=Object.create(y);function x(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function T(e,t){function r(n,a,i,l){var c=u(e[n],e,a);if("throw"!==c.type){var s=c.arg,m=s.value;return m&&"object"==typeof m&&o.call(m,"__await")?t.resolve(m.__await).then((function(e){r("next",e,i,l)}),(function(e){r("throw",e,i,l)})):t.resolve(m).then((function(e){s.value=e,i(s)}),(function(e){return r("throw",e,i,l)}))}l(c.arg)}var n;this._invoke=function(e,o){function a(){return new t((function(t,n){r(e,o,t,n)}))}return n=n?n.then(a,a):a()}}function L(e,r){var o=e.iterator[r.method];if(o===t){if(r.delegate=null,"throw"===r.method){if(e.iterator.return&&(r.method="return",r.arg=t,L(e,r),"throw"===r.method))return p;r.method="throw",r.arg=new TypeError("The iterator does not provide a 'throw' method")}return p}var n=u(o,e.iterator,r.arg);if("throw"===n.type)return r.method="throw",r.arg=n.arg,r.delegate=null,p;var a=n.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,p):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,p)}function z(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function k(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function N(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(z,this),this.reset(!0)}function S(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:C}}function C(){return{value:t,done:!0}}return v.prototype=_,c(E,"constructor",_),c(_,"constructor",v),v.displayName=c(_,l,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===v||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,_):(e.__proto__=_,c(e,l,"GeneratorFunction")),e.prototype=Object.create(E),e},e.awrap=function(e){return{__await:e}},x(T.prototype),c(T.prototype,i,(function(){return this})),e.AsyncIterator=T,e.async=function(t,r,o,n,a){void 0===a&&(a=Promise);var i=new T(s(t,r,o,n),a);return e.isGeneratorFunction(r)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},x(E),c(E,l,"Generator"),c(E,a,(function(){return this})),c(E,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var o=t.pop();if(o in e)return r.value=o,r.done=!1,r}return r.done=!0,r}},e.values=S,N.prototype={constructor:N,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(k),!e)for(var r in this)"t"===r.charAt(0)&&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),k(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;k(r)}return n}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,o){return this.delegate={iterator:S(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,S="object"==typeof b&&b&&b.Object===Object&&b,C="object"==typeof self&&self&&self.Object===Object&&self,j=S||C||Function("return this")(),A=j.Symbol,I=Object.prototype,O=I.hasOwnProperty,R=I.toString,M=A?A.toStringTag:void 0;var H=function(e){var t=O.call(e,M),r=e[M];try{e[M]=void 0;var o=!0}catch(e){}var n=R.call(e);return o&&(t?e[M]=r:delete e[M]),n},B=Object.prototype.toString;var F=function(e){return B.call(e)},P=A?A.toStringTag:void 0;var D=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":P&&P in Object(e)?H(e):F(e)};var W=function(e){return null!=e&&"object"==typeof e};var G=function(e){return"symbol"==typeof e||W(e)&&"[object Symbol]"==D(e)},U=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,q=/^\w*$/;var Z=function(e,t){if(N(e))return!1;var r=typeof e;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=e&&!G(e))||(q.test(e)||!U.test(e)||null!=t&&e in Object(t))};var J=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)};var V,Y=function(e){if(!J(e))return!1;var t=D(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},$=j["__core-js_shared__"],K=(V=/[^.]+$/.exec($&&$.keys&&$.keys.IE_PROTO||""))?"Symbol(src)_1."+V:"";var Q=function(e){return!!K&&K in e},X=Function.prototype.toString;var ee=function(e){if(null!=e){try{return X.call(e)}catch(e){}try{return e+""}catch(e){}}return""},te=/^\[object .+?Constructor\]$/,re=Function.prototype,oe=Object.prototype,ne=re.toString,ae=oe.hasOwnProperty,ie=RegExp("^"+ne.call(ae).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var le=function(e){return!(!J(e)||Q(e))&&(Y(e)?ie:te).test(ee(e))};var ce=function(e,t){return null==e?void 0:e[t]};var se=function(e,t){var r=ce(e,t);return le(r)?r:void 0},ue=se(Object,"create");var me=function(){this.__data__=ue?ue(null):{},this.size=0};var de=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},he=Object.prototype.hasOwnProperty;var fe=function(e){var t=this.__data__;if(ue){var r=t[e];return"__lodash_hash_undefined__"===r?void 0:r}return he.call(t,e)?t[e]:void 0},pe=Object.prototype.hasOwnProperty;var ge=function(e){var t=this.__data__;return ue?void 0!==t[e]:pe.call(t,e)};var ve=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=ue&&void 0===t?"__lodash_hash_undefined__":t,this};function _e(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var o=e[t];this.set(o[0],o[1])}}_e.prototype.clear=me,_e.prototype.delete=de,_e.prototype.get=fe,_e.prototype.has=ge,_e.prototype.set=ve;var ye=_e;var be=function(){this.__data__=[],this.size=0};var we=function(e,t){return e===t||e!=e&&t!=t};var Ee=function(e,t){for(var r=e.length;r--;)if(we(e[r][0],t))return r;return-1},xe=Array.prototype.splice;var Te=function(e){var t=this.__data__,r=Ee(t,e);return!(r<0)&&(r==t.length-1?t.pop():xe.call(t,r,1),--this.size,!0)};var Le=function(e){var t=this.__data__,r=Ee(t,e);return r<0?void 0:t[r][1]};var ze=function(e){return Ee(this.__data__,e)>-1};var ke=function(e,t){var r=this.__data__,o=Ee(r,e);return o<0?(++this.size,r.push([e,t])):r[o][1]=t,this};function Ne(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var o=e[t];this.set(o[0],o[1])}}Ne.prototype.clear=be,Ne.prototype.delete=Te,Ne.prototype.get=Le,Ne.prototype.has=ze,Ne.prototype.set=ke;var Se=Ne,Ce=se(j,"Map");var je=function(){this.size=0,this.__data__={hash:new ye,map:new(Ce||Se),string:new ye}};var Ae=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e};var Ie=function(e,t){var r=e.__data__;return Ae(t)?r["string"==typeof t?"string":"hash"]:r.map};var Oe=function(e){var t=Ie(this,e).delete(e);return this.size-=t?1:0,t};var Re=function(e){return Ie(this,e).get(e)};var Me=function(e){return Ie(this,e).has(e)};var He=function(e,t){var r=Ie(this,e),o=r.size;return r.set(e,t),this.size+=r.size==o?0:1,this};function Be(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var o=e[t];this.set(o[0],o[1])}}Be.prototype.clear=je,Be.prototype.delete=Oe,Be.prototype.get=Re,Be.prototype.has=Me,Be.prototype.set=He;var Fe=Be;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||Fe),r}Pe.Cache=Fe;var De=Pe;var We=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ge=/\\(\\)?/g,Ue=function(e){var t=De(e,(function(e){return 500===r.size&&r.clear(),e})),r=t.cache;return t}((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(We,(function(e,r,o,n){t.push(o?n.replace(Ge,"$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},Ze=A?A.prototype:void 0,Je=Ze?Ze.toString:void 0;var Ve=function e(t){if("string"==typeof t)return t;if(N(t))return qe(t,e)+"";if(G(t))return Je?Je.call(t):"";var r=t+"";return"0"==r&&1/t==-Infinity?"-0":r};var Ye=function(e){return null==e?"":Ve(e)};var $e=function(e,t){return N(e)?e:Z(e,t)?[e]:Ue(Ye(e))};var Ke=function(e){if("string"==typeof e||G(e))return e;var t=e+"";return"0"==t&&1/e==-Infinity?"-0":t};var Qe=function(e,t){for(var r=0,o=(t=$e(t,e)).length;null!=e&&r<o;)e=e[Ke(t[r++])];return r&&r==o?e:void 0};var Xe=function(e,t,r){var o=null==e?void 0:Qe(e,t);return void 0===o?r:o};var et=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 tt=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"}),rt=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,ot=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]","g");var nt=function(e){return(e=Ye(e))&&e.replace(rt,tt).replace(ot,"")},at=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;var it=function(e){return e.match(at)||[]},lt=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;var ct=function(e){return lt.test(e)},st="\\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",ut="["+st+"]",mt="\\d+",dt="[\\u2700-\\u27bf]",ht="[a-z\\xdf-\\xf6\\xf8-\\xff]",ft="[^\\ud800-\\udfff"+st+mt+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",pt="(?:\\ud83c[\\udde6-\\uddff]){2}",gt="[\\ud800-\\udbff][\\udc00-\\udfff]",vt="[A-Z\\xc0-\\xd6\\xd8-\\xde]",_t="(?:"+ht+"|"+ft+")",yt="(?:"+vt+"|"+ft+")",bt="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?",wt="[\\ufe0e\\ufe0f]?"+bt+("(?:\\u200d(?:"+["[^\\ud800-\\udfff]",pt,gt].join("|")+")[\\ufe0e\\ufe0f]?"+bt+")*"),Et="(?:"+[dt,pt,gt].join("|")+")"+wt,xt=RegExp([vt+"?"+ht+"+(?:['’](?:d|ll|m|re|s|t|ve))?(?="+[ut,vt,"$"].join("|")+")",yt+"+(?:['’](?:D|LL|M|RE|S|T|VE))?(?="+[ut,vt+_t,"$"].join("|")+")",vt+"?"+_t+"+(?:['’](?:d|ll|m|re|s|t|ve))?",vt+"+(?:['’](?:D|LL|M|RE|S|T|VE))?","\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",mt,Et].join("|"),"g");var Tt=function(e){return e.match(xt)||[]};var Lt=function(e,t,r){return e=Ye(e),void 0===(t=r?void 0:t)?ct(e)?Tt(e):it(e):e.match(t)||[]},zt=RegExp("['’]","g");var kt=function(e){return function(t){return et(Lt(nt(t).replace(zt,"")),e,"")}},Nt=kt((function(e,t,r){return e+(r?" ":"")+t.toUpperCase()})),St=Nt,Ct=kt((function(e,t,r){return e+(r?" ":"")+t.toLowerCase()})),jt=Ct;var At=function(e,t,r,o){var n=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},a=n.showTime,i=void 0!==a&&a,l=n.isTimeFirst,c=void 0!==l&&l,s=n.isUpperCase,u=void 0!==s&&s,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()],y=_;u&&(y=St(_));var b,w=g.getFullYear(),E=n.localizedMeridiem,x=n.localizedMonths,T=n.direction,L=void 0===T?"ltr":T,z=Ot(o,f),k=z;if(x&&(y=Xe(x,[jt(_)])||_),E){var N=z.includes("am"),S=E.am,C=void 0===S?"am":S,j=E.pm,A=void 0===j?"pm":j;k=(N?z.replace("am",C):z.replace("pm",A))||z}return"rtl"===L?(b=i?"".concat(k):"","".concat(v," ").concat(y,", ").concat(w," ").concat(b," ")):d?"".concat(y," ").concat(v,", ").concat(w):c?"".concat(k,", ").concat(v," ").concat(y," ").concat(w):(b=i?", ".concat(k):"","".concat(v," ").concat(y,", ").concat(w).concat(b))};function It(e,t,r,o,n){var a,i=Xe(n,["localizedPublishTime",r])||r;return"hour"===t&&e>23||-1!==["day","week","month","year"].indexOf(t)?At(e,t,r,o,n):e>1?(a=Xe(n,["localizedPublishTime","".concat(t,"s")])||"".concat(t,"s"),"".concat(e," ").concat(a," ").concat(i)):(a=Xe(n,["localizedPublishTime",t])||t,"".concat(e," ").concat(a," ").concat(i," "))}function Ot(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"12hours",r=new Date(e),o=r.getHours(),n=r.getMinutes(),a=o>=12?"pm":"am",i=(o=(o%=12)||12)+":"+(n=n<10?"0"+n:n)+" "+a;return"24hours"===t?r.toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"}):i}var Rt=function(e){var t=function(e){return{r:parseInt(e.slice(1,3),16),g:parseInt(e.slice(3,5),16),b:parseInt(e.slice(5,7),16)}}(e);return.299*t.r+.587*t.g+.114*t.b},Mt=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},Ht={mobile:767,tablet:1024},Bt=function(e){var t=Xe(Ht,e);return!!t&&Xe(global,"document.documentElement.clientWidth")<=t},Ft=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:Mt(e),o=Rt(r)<155?"light":"dark";return o};function Pt(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e["story-template"],r=void 0===t?"":t,o=e.metadata,n=void 0===o?{}:o;return"news-elsewhere"===r?Xe(n,["reference-url"],""):""}o.shape({"sketches-host":o.string,"cdn-name":o.string,"cdn-image":o.string}),o.shape({headline:o.string,"last-published-at":o.number,subheadline:o.string});var Dt=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return"news-elsewhere"===Xe(e,["story-template"])?Xe(e,["metadata","reference-url"],""):e.url||t},Wt={"./collection-name.m.css":{collection:"collection-name-m_collection__JD6sx","collection-borderLeft":"collection-name-m_collection-borderLeft__3Dznk","border-left":"collection-name-m_border-left__3_pYw","collection-borderBottomFull":"collection-name-m_collection-borderBottomFull__Dkq3K","collection-borderBottom":"collection-name-m_collection-borderBottom__2rdQM","collection-crossLine":"collection-name-m_collection-crossLine__1sIpN","border-bottom":"collection-name-m_border-bottom__1MnlV",dark:"collection-name-m_dark__nMe5H",light:"collection-name-m_light__1vFDN"}},Gt=function(t){var r=t.collectionNameBorderColor,o=void 0===r?"":r,n=t.collection,l=t.config,c=t.collectionNameTemplate,s=t.headerLevel,u=t.customCollectionName,m=void 0===u?"":u,d=t.navigate,h=void 0===d||d,f=z()||{},p=a(f,["showRowTitle"],!0),g=["borderLeft","borderBottom","crossLine","borderBottomFull"].includes(c)?" collection-".concat(c):"",v=h&&n&&function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.magazineSlug,o=void 0===r?"":r,n=t.isArchivePage;if(void 0!==n&&n)return"/magazine/archive/".concat(o);if(o)return"/magazine/".concat(o,"/").concat(e.slug);if("section"===e.template){var a=Xe(e,["metadata","section","0","id"],""),i=t.sections,l=i&&i.find((function(e){return e.id===a}));return l?l["section-url"]:"/"}return"/collection/".concat(e.slug)}(n,l)||"",_=m||n.name||"",y=Ft(f.theme),b="h"+s,w=Mt(o),E=g.includes("collection-borderBottomFull")?"4px solid ".concat(w):"",x=Bt("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)+" ":"")+T("collection ".concat(y," ").concat(g),Wt)},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(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(i,{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)}}):""))};Gt.propTypes={collectionNameBorderColor:n.string,collection:n.object,config:n.object,collectionNameTemplate:n.oneOf(["","borderLeft","borderBottom","crossLine","borderBottomFull"]),headerLevel:n.string,customCollectionName:n.string,navigate:n.bool},Gt.defaultProps={collectionNameTemplate:"",headerLevel:"3"};var Ut=u((function(e){return{config:a(e,["qt","config"],{})}}))(Gt);function qt(e,t){return p(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)||v(e,t)||_()}var Zt=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"}))))};Zt.propTypes={width:o.object,height:o.object,iconColor:o.object};var Jt=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(Zt,null)))},Vt=function(t){var r=t.slug;return r?e.createElement(i,{href:r,"aria-label":"image-fallback"},Jt()):Jt()};Vt.propTypes={slug:o.string};var Yt=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"})))},$t=function(t){var r=t.hyperLink,o=void 0===r?"":r;return o?e.createElement(i,{href:o,"aria-label":"hyperlink-button",className:"arr--hyperlink-button hyperlink-m_hyperlink-button__1CqWx",target:"_blank",rel:"noopener noreferrer"},e.createElement(Yt,null)):null};$t.propTypes={hyperLink:o.string};var Kt={"./hero-image.m.css":{"hero-image":"hero-image-m_hero-image__3lraV","right-padding":"hero-image-m_right-padding__1LkCe","left-padding":"hero-image-m_left-padding__pYRAj","right-padding-mob":"hero-image-m_right-padding-mob__3-uOU",placeholder:"hero-image-m_placeholder__1omCm","hero-image-mob":"hero-image-m_hero-image-mob__13JJp","with-padding":"hero-image-m_with-padding__324G_",image:"hero-image-m_image__1mz0U"}},Qt=function(t){var r=t.story,o=t.FullBleed,n=t.aspectRatio,c=t.defaultWidth,s=t.widths,u=t.isHorizontal,d=t.isHorizontalMobile,h=t.isHorizontalWithImageLast,f=t.defaultFallback,p=t.isStoryPageImage,g=t.config,v=(z()||{}).fallbackImageUrl,_=void 0===v?"":v,y=g.StoryTemplateIcon,b=void 0===y?function(){return null}:y,w=m((function(e){return a(e,["qt","config","showPlaceholder"])}))?"placeholder":"",E=o?"":"with-padding",x="hero-image";u?x="right-padding":h&&(x="left-padding");var L=d?"right-padding-mob":"",k=function(e){var t=qt(e,2),r=t[0],o=t[1];return r>0&&o>0?o/r*100:0},N=qt(n,2),S=N[0],C=N[1],j=void 0===C?S:C,A=Bt("mobile"),I=A?S:j,O=k(A?S:j),R=a(r,["hero-image-s3-key"])||a(r,["alternative","home","default","hero-image","hero-image-s3-key"]),M=a(r,["hero-image-hyperlink"],""),H=function(){return R?e.createElement(e.Fragment,null,e.createElement("figure",{style:{paddingTop:O+"%"},className:"arr--responsive-hero-image "+T("image ".concat(w),Kt)},e.createElement(b,{storyTemplate:r["story-template"]}),e.createElement(l,{story:r,aspectRatio:I,defaultWidth:c,widths:s,imgParams:{auto:["format","compress"],fit:"max"}})),p&&M&&e.createElement($t,{hyperLink:M})):_&&!p?e.createElement("figure",{style:{paddingTop:O+"%"},className:"arr--responsive-hero-image "+T("image ".concat(w),Kt)},e.createElement("img",{className:"qt-image","data-src":"".concat(_),alt:"image-fallback"})):e.createElement(e.Fragment,null,f?e.createElement("div",{"data-test-id":"arr--fallback-hero-image",style:{paddingTop:O+"%"},className:"arr--fallback-hero-image "+T("image ".concat(w),Kt)},e.createElement(b,{storyTemplate:r["story-template"]}),e.createElement(Vt,null)):null)};return r&&(p?e.createElement("div",{"data-test-id":"arr--hero-image",className:"arr--hero-image "+T("".concat(x," ").concat(E," ").concat(L),Kt)},H()):e.createElement(i,{"data-test-id":"arr--hero-image",href:Dt(r,"/".concat(r.slug)),externalLink:Pt(r),"aria-label":"fallback-hero-image",className:"arr--hero-image "+T("".concat(x," ").concat(E," ").concat(L),Kt)},H()))};Qt.propTypes={story:o.object.isRequired,FullBleed:o.bool,defaultWidth:o.number,widths:o.array,aspectRatio:o.array,isHorizontal:o.bool,isHorizontalMobile:o.bool,defaultFallback:o.bool,isHorizontalWithImageLast:o.bool,isStoryPageImage:o.bool,config:o.object},Qt.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 Xt=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"}))))))};Xt.propTypes={height:o.string,width:o.string,color:o.string,positionTop:o.string};var er=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)"})))))};er.propTypes={height:o.string,width:o.string,color:o.string,positionTop:o.string};var tr=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"}))))))};tr.propTypes={height:o.string,width:o.string,color:o.string,positionTop:o.string};var rr=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"}))))};rr.propTypes={height:o.string,width:o.string,color:o.string,positionTop:o.string};var or=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(Xt,{width:r,height:o,color:n,positionTop:i});case"lock":return e.createElement(tr,{width:r,height:o,color:n,positionTop:i});case"key":return e.createElement(er,{width:r,height:o,color:n,positionTop:i});default:return e.createElement(rr,{width:r,height:o,color:n,positionTop:i})}};function nr(){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"}))}or.propTypes={width:o.string,height:o.string,color:o.string,iconType:o.string,positionTop:o.string};var ar={"./headline.m.css":{wrapper:"headline-m_wrapper__3nUmh",headline:"headline-m_headline__3_NhV",dark:"headline-m_dark__en3hW",light:"headline-m_light__3lKJB"}},ir=function(t){var r=t.story,o=t.headerLevel,n=t.premiumStoryIconConfig,l=void 0===n?{}:n,c=t.isLink,s=z()||{},u=l.iconColor,m=void 0===u?"#F7B500":u,d=l.iconStyle,h=void 0===d?"star":d,f=l.enablePremiumStoryIcon,p=void 0!==f&&f,g=l.showLiveIcon,v=void 0!==g&&g,_=a(r,["alternative","home","default","headline"]),y=p&&"subscription"===a(r,["access"]),b=_||r.headline,w="h"+o,E=Ft(s.theme),x=y?"wrapper":"",L="24px",k=v&&"live-blog"===r["story-template"]&&!a(r,["metadata","is-closed"],!1);return e.createElement("div",{"data-test-id":"headline",className:"arrow-component arr--headline "+T(x,ar)},y&&e.createElement(or,{width:L,height:L,color:m,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(i,{href:Dt(r,"/".concat(r.slug)),externalLink:Pt(r),"aria-label":"headline"},e.createElement(w,{className:T("headline ".concat(E),ar)},k&&e.createElement(nr,null),b)):e.createElement(w,{className:T("headline ".concat(E),ar)},k&&e.createElement(nr,null),b))};ir.propTypes={story:o.object.isRequired,headerLevel:o.string,premiumStoryIconConfig:o.shape({iconColor:o.string,iconType:o.string,enablePremiumStoryIcon:o.bool}),isLink:o.bool},ir.defaultProps={headerLevel:"6",isLink:!0};var lr={"./subheadline.m.css":{subheadline:"subheadline-m_subheadline__3fd7z",dark:"subheadline-m_dark__28u00",light:"subheadline-m_light__2YUOe"}},cr=function(t){var r=t.story,o=t.truncateChars,n=void 0===o?200:o,i=t.lineClamp,l=t.clazzName,c=void 0===l?"":l,s=t.forceShowAtom,u=t.showFullContent,m=z()||{};if(!(s||a(m,["showSubheadline"],!0)))return null;var d=Ft(m.theme);return e.createElement("div",{style:{WebkitLineClamp:i},"data-test-id":"subheadline",className:("p-alt arr--sub-headline arrow-component ".concat(c)?"p-alt arr--sub-headline arrow-component ".concat(c)+" ":"")+T("subheadline ".concat(d),lr)},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))};cr.propTypes={story:o.object.isRequired,lineClamp:o.number,truncateChars:o.number,clazzName:o.string,forceShowAtom:o.bool,showFullContent:o.bool},cr.defaultProps={forceShowAtom:!1,showFullContent:!1};var sr={"./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"}},ur=function(t){var r=t.story,o=t.isBottom,n=t.config,i=void 0===n?{}:n,l=z()||{},c=a(i,["showTime"],a(l,["showTime"],!0)),s=r["last-published-at"]||r["first-published-at"],u=o?"bottom-fix":"",m=Ft(l.theme);return e.createElement(e.Fragment,null,c&&e.createElement("div",{"data-test-id":"publish-time",className:"time arr--publish-time "+T("time ".concat(m," ").concat(u),sr)},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=At("","","",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,It,i))))};ur.propTypes={story:o.object,isBottom:o.bool,config:o.object};var mr={"./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"}},dr=function(t){var r=t.story,o=t.hideAuthorImage,n=t.isBottom,l=t.prefix,s=void 0===l?"":l,u=t.config,m=void 0===u?{}:u,d=z()||{},h=a(d,["showAuthor"],!0),f=a(r,["authors","0"],""),p=f["avatar-url"],g=f["avatar-s3-key"],v=f.name,_=f.slug,y=n?"bottom-fix":"",b=Ft(d.theme),w=a(m,["mountAt"],""),E=function(t){return s?e.createElement("div",{className:"arr-author-prefix "+T("prefix ".concat(b),mr)},s):!o&&function(t){return p||g?e.createElement("div",{"data-test-id":"author-image",className:T("author-image ".concat(t,"-image"),mr)},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(i,{href:"".concat(w,"/author/")+_,"aria-label":"author-name",className:"author-name arr-author-name arrow-component "+T("author ".concat(y),mr)},E("ltr"),e.createElement("div",{"data-test-id":"author-name",className:"author-name "+T("author-name ".concat(b),mr)},v||r["author-name"]),!s&&E("rtl")))};var hr=u((function(e){return{config:a(e,["qt","config"],{})}}))(dr);dr.propTypes={story:o.object.isRequired,hideAuthorImage:o.bool,isBottom:o.bool,prefix:o.string,config:o.object},dr.defaultProps={hideAuthorImage:!1,isBottom:!1,prefix:""};var fr={"./dot.m.css":{dark:"dot-m_dark__1Njxl",light:"dot-m_light__27IA3"}},pr=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:T(l,fr)},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)"})))};pr.propTypes={color:o.string,width:o.string,height:o.string};var gr={"./divider.m.css":{dark:"divider-m_dark__26FRi",light:"divider-m_light__w-7sy"}},vr=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:T(l,gr)},e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:o,height:a},e.createElement("path",{fill:"inherit",d:"M0 0h1v10H0z"})))};vr.propTypes={color:o.string,width:o.string,height:o.string};var _r={"./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"}},yr=function(t){var r=t.story,o=t.opts,n=void 0===o?{}:o,i=t.isLightTheme,l=void 0!==i&&i,c=z()||{},s=a(c,["showReadTime"])||a(n,["showReadTime"],!0),u=a(r,["read-time"],0),m=l?"light":Ft(c.theme);if(!s||!u)return null;var d=a(n,["localizedTimeToRead"])||"min read";return e.createElement(e.Fragment,null,e.createElement("div",{"data-test-id":"read-time",className:"arrow-component arr--read-time "+T("read-time-wrapper ".concat(m),_r)},e.createElement("span",{className:"read-time-indicator read-time-m_dot-indicator__3Sqh2"},e.createElement(pr,{color:m})),e.createElement("span",null,u," ",d)))};yr.propTypes={story:o.shape({"read-time":o.number}),opts:o.shape({showReadTime:o.bool}),isLightTheme:o.bool};var br={"./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"}},wr=function(t){var r=t.story,o=t.separator,n=t.isBottom,i=t.hideAuthorImage,l=t.prefix,c=t.config,s=void 0===c?{}:c,u=t.isLightTheme,m=z()||{},d=a(s,["showAuthor"],a(m,["showAuthor"],!0)),h=a(s,["showTime"],a(m,["showTime"],!0)),f=a(m,["showReadTime"],!0),p=n?"bottom-fix":"",g="dot"===o?"dot":"dash",v=u?"light":Ft(m.theme),_=function(){return h?e.createElement(e.Fragment,null,d&&e.createElement("span",{className:"arr-separator "+T("".concat(g),br)},"divider"===o?e.createElement(vr,{color:v}):e.createElement(pr,{color:v})),e.createElement(ur,{story:r,config:s}),f&&e.createElement(yr,{story:r,opts:s,isLightTheme:u})):null};return e.createElement("div",{className:"arr--author-time "+T("author-time-wrapper ".concat(p),br)},d?e.createElement(e.Fragment,null,e.createElement(hr,{story:r,isBottom:!0,hideAuthorImage:i,prefix:l}),_()):_())};wr.propTypes={story:o.object,separator:o.oneOf(["dot","divider"]),hideAuthorImage:o.bool,isBottom:o.bool,prefix:o.string,config:o.object,isLightTheme:o.bool},wr.defaultProps={separator:"dot",isBottom:!1,hideAuthorImage:!0,prefix:"",isLightTheme:!1};var Er={"./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"}},xr=function(t){var r=t.story,o=t.template,n=void 0===o?"":o,l=t.borderColor,c=void 0===l?"":l,s=t.isLightTheme,u=z()||{},m=a(u,["showSection"],!0),d=a(u,["sectionTagTemplate"]),h=a(r,["sections",0],""),f=["borderBottomSml","borderLeft","solid"],p=h?h["section-url"]:"/",g="solid"===n||"solid"===d?c:u.theme,v=s?"light":Ft(g),_=Mt(c),y=f.includes(n)?"section section-".concat(n):"section";return d&&(y=f.includes(d)?"section section-".concat(d):"section"),m?e.createElement(i,{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 "+T("".concat(v," ").concat(y),Er)},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};xr.propTypes={story:o.object.isRequired,template:o.oneOf(["","borderBottomSml","borderLeft","solid"]),borderColor:o.string,solidBorderColor:o.string,isLightTheme:o.bool},xr.defaultProps={template:"",isLightTheme:!1};var Tr={"./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"}},Lr=function(t){var r,o=t.story,n=t.children,a=t.isHorizontal,i=t.aspectRatio,l=t.border,c=t.useImageAsBackground,s=t.bgImgContentOverlap,u=t.theme,m=t.borderColor,d=t.isHorizontalMobile,h=t.centerAlign,f=t.headerLevel,p=t.hideAuthorImage,g=t.prefix,v=t.config,_=t.isHorizontalWithImageLast;if(!o||(null==(r=o)||"object"===k(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":"",E=s?"content-overlap":"",x=Ft(u),L=d?"horizontal-mob":"",z=e.createElement(zr,{story:o,aspectRatio:i,border:l,isHorizontalMobile:d,isHorizontal:a,centerAlign:h,headerLevel:f,borderColor:m,hideAuthorImage:p,prefix:g,config:v,isHorizontalWithImageLast:_});return e.createElement("div",{"data-test-id":"story-card",style:{backgroundColor:u,color:x},className:"arr--story-card "+T("card ".concat(b," ").concat(y," ").concat(x," ").concat(w," ").concat(E," ").concat(L),Tr)},n||z)},zr=function(t){var r=t.story;t.border;var o=t.isHorizontal,n=t.aspectRatio,a=t.headerLevel,i=t.isHorizontalMobile,l=void 0!==i&&i,c=t.centerAlign,s=void 0!==c&&c,u=t.borderColor,m=t.hideAuthorImage,d=t.prefix,h=t.isHorizontalWithImageLast,f=t.config,p=s?"center-align":"",g=Mt(u),v=f.localizationConfig,_=void 0===v?{}:v;return e.createElement(e.Fragment,null,o?e.createElement(Qt,{config:f,story:r,isHorizontal:!0,isHorizontalMobile:l,aspectRatio:n}):h?e.createElement(Qt,{config:f,story:r,isHorizontalWithImageLast:!0,isHorizontalMobile:l,aspectRatio:n}):e.createElement(Qt,{story:r,config:f,isHorizontalMobile:l,aspectRatio:n}),e.createElement("div",{className:"arr--story-content "+T("content ".concat(p),Tr)},e.createElement(xr,{story:r,borderColor:g}),e.createElement(ir,{story:r,headerLevel:a,premiumStoryIconConfig:f}),e.createElement(wr,{config:_,story:r,isBottom:!0,prefix:d,hideAuthorImage:m}),e.createElement(cr,{story:r})))};zr.propTypes={story:o.object.isRequired,border:o.oneOfType([o.string]),isBottom:o.bool,isHorizontal:o.bool,aspectRatio:o.oneOfType([o.array]),isHorizontalMobile:o.bool,centerAlign:o.bool,headerLevel:o.string,borderColor:o.string,hideAuthorImage:o.bool,prefix:o.string,config:o.object,isHorizontalWithImageLast:o.bool},Lr.propTypes={story:o.object.isRequired,children:o.node,isHorizontal:o.bool,border:o.oneOfType([o.string]),useImageAsBackground:o.bool,bgImgContentOverlap:o.bool,aspectRatio:o.oneOfType([o.array]),theme:o.string,isHorizontalMobile:o.bool,centerAlign:o.bool,headerLevel:o.string,borderColor:o.string,hideAuthorImage:o.bool,prefix:o.string,config:o.object,isHorizontalWithImageLast:o.bool},Lr.defaultProps={isHorizontal:!1,isHorizontalMobile:!1,border:"default",theme:"",centerAlign:!1,borderColor:"",isHorizontalWithImageLast:!1};var kr=function(t){var r=t.collection,o=void 0===r?{}:r,n=t.config,i=void 0===n?{}:n,l=s(o),c=i.collectionNameBorderColor,u=void 0===c?"":c,m=i.borderColor,d=void 0===m?"":m,h=i.border,f=void 0===h?"":h,p=i.theme,g=void 0===p?"":p,v=i.collectionNameTemplate,_=void 0===v?"":v,b=i.slotConfig,w=a(void 0===b?[]:b,[0],{}),E=w.type,x=w.component;if(l.length<1)return null;var T=Ft(g),L=y(l||[]),z=L[0],k=L[1],N=L.slice(2);return e.createElement("div",{className:"full-width-with-padding arrow-component","data-test-id":"three-col-fourteen-stories",style:{backgroundColor:g,color:T}},e.createElement("div",{className:"three-col-fourteen-story-m_wrapper__1aJe1"},e.createElement(Ut,{collection:o,collectionNameTemplate:_,collectionNameBorderColor:u}),e.createElement("div",{className:"three-col-fourteen-story-m_storycards-row__2ANrZ"},e.createElement("div",{className:"first-card three-col-fourteen-story-m_card-with-separator__3MQHS three-col-fourteen-story-m_first-card__1nakj"},e.createElement(Lr,{story:z,headerLevel:"2",theme:g,aspectRatio:[[16,9],[16,9]],config:i},e.createElement(Qt,{story:z,aspectRatio:[[16,9],[16,9]]}),e.createElement("div",{className:"card-content"},e.createElement(xr,{story:z,borderColor:d}),e.createElement(ir,{story:z,headerLevel:"2",premiumStoryIconConfig:i})),e.createElement(cr,{story:z,forceShowAtom:!0})),k&&e.createElement(Lr,{border:f,story:k,isHorizontal:!0,aspectRatio:[[1,1],[4,3]],borderColor:d,config:i})),e.createElement("div",{className:"second-card three-col-fourteen-story-m_card-with-separator__3MQHS three-col-fourteen-story-m_second-card__3u49K"},N.length>0&&N.slice(0,6).map((function(t){return e.createElement(Lr,{key:t,story:t,isHorizontal:!0,theme:g,aspectRatio:[[1,1],[4,3]],border:f,borderColor:d,config:i})}))),e.createElement("div",{className:"third-card three-col-fourteen-story-m_card-with-separator__3MQHS three-col-fourteen-story-m_third-card__wA-vu"},N.length>0&&N.slice(6,10).map((function(t){return e.createElement(Lr,{key:l,story:t,isHorizontal:!0,theme:g,aspectRatio:[[1,1],[4,3]],border:f,borderColor:d,config:i})})),e.createElement("div",{className:"three-col-fourteen-story-m_ad-slot__1XHTV"},function(e,t,r,o){switch(e){case"story":return r();case"collection":return o();default:return t?t():null}}(E,x,(function(){return function(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).slice(10,13).map((function(t){return e.createElement(Lr,{key:t,story:t,isHorizontal:!0,aspectRatio:[[1,1],[4,3]],border:f})}))}(N)})))))))};kr.propTypes={collection:o.object.isRequired,config:o.shape({theme:o.string,border:o.string,slotConfig:o.array,collectionNameTemplate:o.string,collectionNameBorderColor:o.string,borderColor:o.string})};var Nr,Sr=(Nr=kr,function(t){return e.createElement(L.Provider,{value:t.config},e.createElement(Nr,t))});export{Sr as default};