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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (74) hide show
  1. package/AlsoRead/index.js +1 -0
  2. package/AlternateCollectionFilter/index.js +1 -0
  3. package/AsideCollection/index.js +1 -0
  4. package/Attachment/index.js +1 -0
  5. package/Author/index.js +1 -0
  6. package/AuthorIntroductionCard/index.js +1 -0
  7. package/AuthorWithTime/index.js +1 -0
  8. package/AuthorsList/index.js +1 -0
  9. package/BigFact/index.js +1 -0
  10. package/BlockQuote/index.js +1 -0
  11. package/Blurb/index.js +1 -0
  12. package/CollectionFilter/index.js +1 -0
  13. package/CollectionName/index.js +1 -0
  14. package/ElevenStories/index.js +1 -0
  15. package/FourColFiveStories/index.js +1 -0
  16. package/FourColGrid/index.js +1 -0
  17. package/FourColSixteenStories/index.js +1 -0
  18. package/FourColTwelveStories/index.js +1 -0
  19. package/FourStorySlider/index.js +1 -0
  20. package/FourTabbedBigStorySlider/index.js +1 -0
  21. package/FullScreenSlider/index.js +1 -0
  22. package/HalfScreenSlider/index.js +1 -0
  23. package/Headline/index.js +1 -0
  24. package/HeroImage/index.js +1 -0
  25. package/Image/index.js +1 -0
  26. package/ImageGallery/index.js +1 -0
  27. package/ImageSlideshow/index.js +1 -0
  28. package/KeyEvents/index.js +1 -0
  29. package/ListComponent/index.js +1 -0
  30. package/ListicleStoryTemplate/index.js +1 -0
  31. package/Listicles/index.js +1 -0
  32. package/LiveBlogStoryTemplate/index.js +1 -0
  33. package/LoadmoreButton/index.js +1 -0
  34. package/MagazineEditions/index.js +1 -0
  35. package/MagazineHeaderCard/index.js +1 -0
  36. package/MagazineWidget/index.js +1 -0
  37. package/OneColStoryList/index.js +1 -0
  38. package/OpinionCollection/index.js +1 -0
  39. package/PageIntroductionCard/index.js +1 -0
  40. package/PhotoStoryTemplate/index.js +1 -0
  41. package/QuestionAnswer/index.js +1 -0
  42. package/Quote/index.js +1 -0
  43. package/Reference/index.js +1 -0
  44. package/ScrollSnap/index.js +1 -0
  45. package/SectionTag/index.js +1 -0
  46. package/SixColSixStories/index.js +1 -0
  47. package/SocialShareTemplate/index.js +1 -0
  48. package/StoryCard/index.js +1 -0
  49. package/StoryCollection/index.js +1 -0
  50. package/StoryElement/index.js +1 -0
  51. package/StoryElementCard/index.js +1 -0
  52. package/StorycardContent/index.js +1 -0
  53. package/Subheadline/index.js +1 -0
  54. package/Summary/index.js +1 -0
  55. package/TagIntroductionCard/index.js +1 -0
  56. package/Text/index.js +1 -0
  57. package/TextStoryTemplate/index.js +1 -0
  58. package/ThreeColFlexStories/index.js +1 -0
  59. package/ThreeColFourteenStories/index.js +1 -0
  60. package/ThreeColGrid/index.js +1 -0
  61. package/ThreeColSevenStory/index.js +1 -0
  62. package/ThreeColSixStories/index.js +1 -0
  63. package/ThreeColTwelveStories/index.js +1 -0
  64. package/TimeStamp/index.js +1 -0
  65. package/TwoColFourStories/index.js +1 -0
  66. package/TwoColFourStoryHighlight/index.js +1 -0
  67. package/TwoColSixStories/index.js +1 -0
  68. package/TwoColTenStoriesSidebar/index.js +1 -0
  69. package/TwoColThreeStories/index.js +1 -0
  70. package/Video/index.js +1 -0
  71. package/VideoStoryTemplate/index.js +1 -0
  72. package/cjs/index.js +1 -9
  73. package/esm/index.js +1 -9
  74. package/package.json +1 -1
@@ -0,0 +1 @@
1
+ import 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"react-timeago";import{connect as c}from"react-redux";var l="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function s(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function u(t){var e={exports:{}};return t(e,e.exports),e.exports}var h=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})),d=s(u((function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r,o=(r=h)&&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(" "):""}}))),f=r(),m=function(){return e(f)},p=Array.isArray,v="object"==typeof l&&l&&l.Object===Object&&l,g="object"==typeof self&&self&&self.Object===Object&&self,y=v||g||Function("return this")(),_=y.Symbol,b=Object.prototype,w=b.hasOwnProperty,x=b.toString,E=_?_.toStringTag:void 0;var T=function(t){var e=w.call(t,E),r=t[E];try{t[E]=void 0;var o=!0}catch(t){}var n=x.call(t);return o&&(e?t[E]=r:delete t[E]),n},L=Object.prototype.toString;var j=function(t){return L.call(t)},N=_?_.toStringTag:void 0;var O=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":N&&N in Object(t)?T(t):j(t)};var S=function(t){return null!=t&&"object"==typeof t};var z=function(t){return"symbol"==typeof t||S(t)&&"[object Symbol]"==O(t)},k=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,A=/^\w*$/;var C=function(t,e){if(p(t))return!1;var r=typeof t;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=t&&!z(t))||(A.test(t)||!k.test(t)||null!=e&&t in Object(e))};var I=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)};var R,M=function(t){if(!I(t))return!1;var e=O(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e},D=y["__core-js_shared__"],P=(R=/[^.]+$/.exec(D&&D.keys&&D.keys.IE_PROTO||""))?"Symbol(src)_1."+R:"";var F=function(t){return!!P&&P in t},B=Function.prototype.toString;var G=function(t){if(null!=t){try{return B.call(t)}catch(t){}try{return t+""}catch(t){}}return""},H=/^\[object .+?Constructor\]$/,U=Function.prototype,Z=Object.prototype,$=U.toString,V=Z.hasOwnProperty,W=RegExp("^"+$.call(V).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var q=function(t){return!(!I(t)||F(t))&&(M(t)?W:H).test(G(t))};var Y=function(t,e){return null==t?void 0:t[e]};var J=function(t,e){var r=Y(t,e);return q(r)?r:void 0},K=J(Object,"create");var Q=function(){this.__data__=K?K(null):{},this.size=0};var X=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},tt=Object.prototype.hasOwnProperty;var et=function(t){var e=this.__data__;if(K){var r=e[t];return"__lodash_hash_undefined__"===r?void 0:r}return tt.call(e,t)?e[t]:void 0},rt=Object.prototype.hasOwnProperty;var ot=function(t){var e=this.__data__;return K?void 0!==e[t]:rt.call(e,t)};var nt=function(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=K&&void 0===e?"__lodash_hash_undefined__":e,this};function it(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])}}it.prototype.clear=Q,it.prototype.delete=X,it.prototype.get=et,it.prototype.has=ot,it.prototype.set=nt;var at=it;var ct=function(){this.__data__=[],this.size=0};var lt=function(t,e){return t===e||t!=t&&e!=e};var st=function(t,e){for(var r=t.length;r--;)if(lt(t[r][0],e))return r;return-1},ut=Array.prototype.splice;var ht=function(t){var e=this.__data__,r=st(e,t);return!(r<0)&&(r==e.length-1?e.pop():ut.call(e,r,1),--this.size,!0)};var dt=function(t){var e=this.__data__,r=st(e,t);return r<0?void 0:e[r][1]};var ft=function(t){return st(this.__data__,t)>-1};var mt=function(t,e){var r=this.__data__,o=st(r,t);return o<0?(++this.size,r.push([t,e])):r[o][1]=e,this};function pt(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])}}pt.prototype.clear=ct,pt.prototype.delete=ht,pt.prototype.get=dt,pt.prototype.has=ft,pt.prototype.set=mt;var vt=pt,gt=J(y,"Map");var yt=function(){this.size=0,this.__data__={hash:new at,map:new(gt||vt),string:new at}};var _t=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t};var bt=function(t,e){var r=t.__data__;return _t(e)?r["string"==typeof e?"string":"hash"]:r.map};var wt=function(t){var e=bt(this,t).delete(t);return this.size-=e?1:0,e};var xt=function(t){return bt(this,t).get(t)};var Et=function(t){return bt(this,t).has(t)};var Tt=function(t,e){var r=bt(this,t),o=r.size;return r.set(t,e),this.size+=r.size==o?0:1,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=yt,Lt.prototype.delete=wt,Lt.prototype.get=xt,Lt.prototype.has=Et,Lt.prototype.set=Tt;var jt=Lt;function Nt(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(Nt.Cache||jt),r}Nt.Cache=jt;var Ot=Nt;var St=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,zt=/\\(\\)?/g,kt=function(t){var e=Ot(t,(function(t){return 500===r.size&&r.clear(),t})),r=e.cache;return e}((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(St,(function(t,r,o,n){e.push(o?n.replace(zt,"$1"):r||t)})),e}));var At=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},Ct=_?_.prototype:void 0,It=Ct?Ct.toString:void 0;var Rt=function t(e){if("string"==typeof e)return e;if(p(e))return At(e,t)+"";if(z(e))return It?It.call(e):"";var r=e+"";return"0"==r&&1/e==-Infinity?"-0":r};var Mt=function(t){return null==t?"":Rt(t)};var Dt=function(t,e){return p(t)?t:C(t,e)?[t]:kt(Mt(t))};var Pt=function(t){if("string"==typeof t||z(t))return t;var e=t+"";return"0"==e&&1/t==-Infinity?"-0":e};var Ft=function(t,e){for(var r=0,o=(e=Dt(e,t)).length;null!=t&&r<o;)t=t[Pt(e[r++])];return r&&r==o?t:void 0};var Bt=function(t,e,r){var o=null==t?void 0:Ft(t,e);return void 0===o?r:o};u((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 O(o||[]);return i._invoke=function(t,e,r){var o=h;return function(n,i){if(o===f)throw new Error("Generator is already running");if(o===m){if("throw"===n)throw i;return z()}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=m,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=f;var l=u(t,e,r);if("normal"===l.type){if(o=r.done?m:d,l.arg===p)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(o=m,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",f="executing",m="completed",p={};function v(){}function g(){}function y(){}var _={};l(_,i,(function(){return this}));var b=Object.getPrototypeOf,w=b&&b(b(S([])));w&&w!==r&&o.call(w,i)&&(_=w);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 N(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function O(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(j,this),this.reset(!0)}function S(t){if(t){var r=t[i];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var 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:z}}function z(){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=S,O.prototype={constructor:O,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(N),!t)for(var r in this)"t"===r.charAt(0)&&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),N(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;N(r)}return n}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,o){return this.delegate={iterator:S(t),resultName:r,nextLoc:o},"next"===this.method&&(this.arg=e),p}},t}(t.exports);try{regeneratorRuntime=e}catch(t){"object"==typeof globalThis?globalThis.regeneratorRuntime=e:Function("r","regeneratorRuntime = r")(e)}}));var Gt=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 Ht=function(t){return function(e){return null==t?void 0:t[e]}}({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"}),Ut=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Zt=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]","g");var $t=function(t){return(t=Mt(t))&&t.replace(Ut,Ht).replace(Zt,"")},Vt=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;var Wt=function(t){return t.match(Vt)||[]},qt=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;var Yt=function(t){return qt.test(t)},Jt="\\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",Kt="["+Jt+"]",Qt="\\d+",Xt="[\\u2700-\\u27bf]",te="[a-z\\xdf-\\xf6\\xf8-\\xff]",ee="[^\\ud800-\\udfff"+Jt+Qt+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",re="(?:\\ud83c[\\udde6-\\uddff]){2}",oe="[\\ud800-\\udbff][\\udc00-\\udfff]",ne="[A-Z\\xc0-\\xd6\\xd8-\\xde]",ie="(?:"+te+"|"+ee+")",ae="(?:"+ne+"|"+ee+")",ce="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?",le="[\\ufe0e\\ufe0f]?"+ce+("(?:\\u200d(?:"+["[^\\ud800-\\udfff]",re,oe].join("|")+")[\\ufe0e\\ufe0f]?"+ce+")*"),se="(?:"+[Xt,re,oe].join("|")+")"+le,ue=RegExp([ne+"?"+te+"+(?:['’](?:d|ll|m|re|s|t|ve))?(?="+[Kt,ne,"$"].join("|")+")",ae+"+(?:['’](?:D|LL|M|RE|S|T|VE))?(?="+[Kt,ne+ie,"$"].join("|")+")",ne+"?"+ie+"+(?:['’](?:d|ll|m|re|s|t|ve))?",ne+"+(?:['’](?: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_])",Qt,se].join("|"),"g");var he=function(t){return t.match(ue)||[]};var de=function(t,e,r){return t=Mt(t),void 0===(e=r?void 0:e)?Yt(t)?he(t):Wt(t):t.match(e)||[]},fe=RegExp("['’]","g");var me=function(t){return function(e){return Gt(de($t(e).replace(fe,"")),t,"")}},pe=me((function(t,e,r){return t+(r?" ":"")+e.toUpperCase()})),ve=me((function(t,e,r){return t+(r?" ":"")+e.toLowerCase()}));function ge(t,e,r,o,n){var i,a=Bt(n,["localizedPublishTime",r])||r;return"hour"===e&&t>23||-1!==["day","week","month","year"].indexOf(e)?function(t,e,r,o){var n=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},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,f=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],m=new Date(o),p=m.getDate().toString().padStart(2,0),v=f[m.getMonth()],g=v;u&&(g=pe(v));var y,_=m.getFullYear(),b=n.localizedMeridiem,w=n.localizedMonths,x=n.direction,E=void 0===x?"ltr":x,T=ye(o),L=T;if(w&&(g=Bt(w,[ve(v)])||v),b){var j=T.includes("am"),N=b.am,O=void 0===N?"am":N,S=b.pm,z=void 0===S?"pm":S;L=(j?T.replace("am",O):T.replace("pm",z))||T}return"rtl"===E?(y=a?"".concat(L):"","".concat(p," ").concat(g,", ").concat(_," ").concat(y," ")):d?"".concat(g," ").concat(p,", ").concat(_):l?"".concat(L,", ").concat(p," ").concat(g," ").concat(_):(y=a?", ".concat(L):"","".concat(p," ").concat(g,", ").concat(_).concat(y))}(t,e,r,o,n):t>1?(i=Bt(n,["localizedPublishTime","".concat(e,"s")])||"".concat(e,"s"),"".concat(t," ").concat(i," ").concat(a)):(i=Bt(n,["localizedPublishTime",e])||e,"".concat(t," ").concat(i," ").concat(a," "))}function ye(t){var e=new Date(t),r=e.getHours(),o=e.getMinutes(),n=r>=12?"pm":"am";return(r=(r%=12)||12)+":"+(o=o<10?"0"+o:o)+" "+n}var _e=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},be=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"rgba(255, 255, 255, 0)",e=t.match(/^rgba?[\s+]?\([\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?/i);return e&&4===e.length?"#"+("0"+parseInt(e[1],10).toString(16)).slice(-2)+("0"+parseInt(e[2],10).toString(16)).slice(-2)+("0"+parseInt(e[3],10).toString(16)).slice(-2):t},we=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"rgb(255,255,255)",e=/^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/.test(t),r=e?t:be(t),o=_e(r)<155?"light":"dark";return o};function xe(){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?Bt(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 Ee=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return"news-elsewhere"===Bt(t,["story-template"])?Bt(t,["metadata","reference-url"],""):t.url||e},Te=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"}))))))};Te.propTypes={height:o.string,width:o.string,color:o.string,positionTop:o.string};var Le=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)"})))))};Le.propTypes={height:o.string,width:o.string,color:o.string,positionTop:o.string};var je=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"}))))))};je.propTypes={height:o.string,width:o.string,color:o.string,positionTop:o.string};var Ne=function(e){var r=e.width,o=e.height,n=e.color,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"}))))};Ne.propTypes={height:o.string,width:o.string,color:o.string,positionTop:o.string};var Oe=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(Te,{width:r,height:o,color:n,positionTop:a});case"lock":return t.createElement(je,{width:r,height:o,color:n,positionTop:a});case"key":return t.createElement(Le,{width:r,height:o,color:n,positionTop:a});default:return t.createElement(Ne,{width:r,height:o,color:n,positionTop:a})}};Oe.propTypes={width:o.string,height:o.string,color:o.string,iconType:o.string,positionTop:o.string};var Se={"./headline.m.css":{wrapper:"headline-m_wrapper__3nUmh",headline:"headline-m_headline__3_NhV",dark:"headline-m_dark__en3hW",light:"headline-m_light__3lKJB"}},ze=function(e){var r=e.story,o=e.headerLevel,i=e.premiumStoryIconConfig,a=void 0===i?{}:i,c=e.isLink,l=m()||{},s=a.iconColor,u=void 0===s?"#F7B500":s,h=a.iconStyle,f=void 0===h?"star":h,p=a.enablePremiumStoryIcon,v=void 0!==p&&p,g=Bt(r,["alternative","home","default","headline"]),y=v&&"subscription"===Bt(r,["access"]),_=g||r.headline,b="h"+o,w=we(l.theme),x=y?"wrapper":"",E="24px";return t.createElement("div",{"data-test-id":"headline",className:"arrow-component arr--headline "+d(x,Se)},y&&t.createElement(Oe,{width:E,height:E,color:u,iconType:f,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?t.createElement(n,{href:Ee(r,"/".concat(r.slug)),externalLink:xe(r),"aria-label":"headline"},t.createElement(b,{className:d("headline ".concat(w),Se)},_)):t.createElement(b,{className:d("headline ".concat(w),Se)},_))};ze.propTypes={story:o.object.isRequired,headerLevel:o.string,premiumStoryIconConfig:o.shape({iconColor:o.string,iconType:o.string,enablePremiumStoryIcon:o.bool}),isLink:o.bool},ze.defaultProps={headerLevel:"6",isLink:!0};var ke={"./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"}},Ae=function(e){var r=e.story,o=e.template,i=void 0===o?"":o,a=e.borderColor,c=void 0===a?"":a,l=e.isLightTheme,s=m()||{},u=Bt(s,["showSection"],!0),h=Bt(s,["sectionTagTemplate"]),f=Bt(r,["sections",0],""),p=["borderBottomSml","borderLeft","solid"],v=f?f["section-url"]:"/",g="solid"===i||"solid"===h?c:s.theme,y=l?"light":we(g),_=be(c),b=p.includes(i)?"section section-".concat(i):"section";return h&&(b=p.includes(h)?"section section-".concat(h):"section"),u?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")?_:""},className:"section-tag arrow-component "+d("".concat(y," ").concat(b),ke)},b.includes("section-borderLeft")&&t.createElement("span",{className:"section-m_border-left__2oUyp",style:{color:_}}),f["display-name"]||f.name,t.createElement("div",{className:"section-m_border-bottom__3cRoD",style:{backgroundColor:"".concat("solid"===i?"":_)}}))):null};Ae.propTypes={story:o.object.isRequired,template:o.oneOf(["","borderBottomSml","borderLeft","solid"]),borderColor:o.string,solidBorderColor:o.string,isLightTheme:o.bool},Ae.defaultProps={template:"",isLightTheme:!1};var Ce={"./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"}},Ie=function(e){var r=e.story,o=e.isBottom,n=e.config,i=void 0===n?{}:n,c=m()||{},l=Bt(c,["showTime"],!0),s=r["last-published-at"]||r["first-published-at"],u=o?"bottom-fix":"",h=we(c.theme);return t.createElement(t.Fragment,null,l&&t.createElement("div",{"data-test-id":"publish-time",className:"time arr--publish-time "+d("time ".concat(h," ").concat(u),Ce)},t.createElement("div",{className:"timestamp-m_time-wrapper__3O2lM"},function(e,r){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return t.createElement(a,{date:e,formatter:function(t,e,n,i){return r(t,e,n,i,o)}})}(s,ge,i))))};Ie.propTypes={story:o.object,isBottom:o.bool,config:o.object};var Re={"./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"}},Me=function(e){var r=e.story,o=e.hideAuthorImage,a=e.isBottom,c=e.prefix,l=void 0===c?"":c,s=e.config,u=void 0===s?{}:s,h=m()||{},f=Bt(h,["showAuthor"],!0),p=Bt(r,["authors","0"],""),v=p["avatar-url"],g=p["avatar-s3-key"],y=p.name,_=p.slug,b=a?"bottom-fix":"",w=we(h.theme),x=Bt(u,["mountAt"],""),E=function(e){return l?t.createElement("div",{className:"arr-author-prefix "+d("prefix ".concat(w),Re)},l):!o&&function(e){return v||g?t.createElement("div",{"data-test-id":"author-image",className:d("author-image ".concat(e,"-image"),Re)},t.createElement("figure",null,g?t.createElement(i,{slug:g,"aspect-ratio":[1,1],defaultWidth:400,imgParams:{auto:["format","compress"]},alt:y}):t.createElement("img",{src:v}))):null}(e)};return t.createElement(t.Fragment,null,f&&t.createElement(n,{href:"".concat(x,"/author/")+_,"aria-label":"author-name",className:"author-name arr-author-name arrow-component "+d("author ".concat(b),Re)},E("ltr"),t.createElement("div",{"data-test-id":"author-name",className:"author-name "+d("author-name ".concat(w),Re)},y||r["author-name"]),!l&&E("rtl")))};var De=c((function(t){return{config:Bt(t,["qt","config"],{})}}))(Me);Me.propTypes={story:o.object.isRequired,hideAuthorImage:o.bool,isBottom:o.bool,prefix:o.string,config:o.object},Me.defaultProps={hideAuthorImage:!1,isBottom:!1,prefix:""};var Pe={"./dot.m.css":{dark:"dot-m_dark__1Njxl",light:"dot-m_light__27IA3"}},Fe=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:d(c,Pe)},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)"})))};Fe.propTypes={color:o.string,width:o.string,height:o.string};var Be={"./divider.m.css":{dark:"divider-m_dark__26FRi",light:"divider-m_light__w-7sy"}},Ge=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:d(c,Be)},t.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:o,height:i},t.createElement("path",{fill:"inherit",d:"M0 0h1v10H0z"})))};Ge.propTypes={color:o.string,width:o.string,height:o.string};var He={"./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"}},Ue=function(e){var r=e.story,o=e.opts,n=void 0===o?{}:o,i=e.isLightTheme,a=void 0!==i&&i,c=m()||{},l=Bt(c,["showReadTime"])||Bt(n,["showReadTime"],!0),s=Bt(r,["read-time"],0),u=a?"light":we(c.theme);if(!l||!s)return null;var h=Bt(n,["localizedTimeToRead"])||"min read";return t.createElement(t.Fragment,null,t.createElement("div",{"data-test-id":"read-time",className:"arrow-component arr--read-time "+d("read-time-wrapper ".concat(u),He)},t.createElement("span",{className:"read-time-indicator read-time-m_dot-indicator__3Sqh2"},t.createElement(Fe,{color:u})),t.createElement("span",null,s," ",h)))};Ue.propTypes={story:o.shape({"read-time":o.number}),opts:o.shape({showReadTime:o.bool}),isLightTheme:o.bool};var Ze={"./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"}},$e=function(e){var r=e.story,o=e.separator,n=e.isBottom,i=e.hideAuthorImage,a=e.prefix,c=e.config,l=void 0===c?{}:c,s=e.isLightTheme,u=m()||{},h=Bt(l,["showAuthor"],Bt(u,["showAuthor"],!0)),f=Bt(u,["showTime"],!0),p=Bt(u,["showReadTime"],!0),v=n?"bottom-fix":"",g="dot"===o?"dot":"dash",y=s?"light":we(u.theme),_=function(){return f?t.createElement(t.Fragment,null,h&&t.createElement("span",{className:"arr-separator "+d("".concat(g),Ze)},"divider"===o?t.createElement(Ge,{color:y}):t.createElement(Fe,{color:y})),t.createElement(Ie,{story:r,config:l}),p&&t.createElement(Ue,{story:r,opts:l,isLightTheme:s})):null};return t.createElement("div",{className:"arr--author-time "+d("author-time-wrapper ".concat(v),Ze)},h?t.createElement(t.Fragment,null,t.createElement(De,{story:r,isBottom:!0,hideAuthorImage:i,prefix:a}),_()):_())};$e.propTypes={story:o.object,separator:o.oneOf(["dot","divider"]),hideAuthorImage:o.bool,isBottom:o.bool,prefix:o.string,config:o.object,isLightTheme:o.bool},$e.defaultProps={separator:"dot",isBottom:!1,hideAuthorImage:!0,prefix:"",isLightTheme:!1};var Ve={"./storycardContent.m.css":{wrapper:"storycardContent-m_wrapper__TEmfA","horizontal-content-wrapper":"storycardContent-m_horizontal-content-wrapper__NgpuC","border-full":"storycardContent-m_border-full__2km37"}},We=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=we(n),h=be(l),f=["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 "+d("wrapper ".concat(f," ").concat(m),Ve)},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=be(n),l=a.localizationConfig,s=void 0===l?{}:l;return t.createElement("div",null,t.createElement(Ae,{story:r,borderColor:c}),t.createElement(ze,{story:r,headerLevel:o,premiumStoryIconConfig:a}),t.createElement($e,{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},We.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{We as StorycardContent};
@@ -0,0 +1 @@
1
+ import t,{useContext as e,createContext as r}from"react";import n from"prop-types";import"react-timeago";var o="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function i(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function a(t){var e={exports:{}};return t(e,e.exports),e.exports}var u=a((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=i(a((function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r,n=(r=u)&&r.__esModule?r:{default:r};var o=function(t,e){if("throw"===e)throw new Error(t);return"warn"===e&&console.warn(t),null};e.default=function(t,e,r){var i=Object.keys(e),a=r||{},u=a.handleMissingStyleName,c=void 0===u?n.default.handleMissingStyleName:u,l=a.autoResolveMultipleImports,s=void 0===l?n.default.autoResolveMultipleImports:l;return t?t.split(" ").filter((function(t){return t})).map((function(t){if(function(t){return-1!==t.indexOf(".")}(t))return function(t,e,r){var i=t.split("."),a=i[0],u=i[1],c=r||n.default.handleMissingStyleName;return u?e[a]?e[a][u]?e[a][u]:o("CSS module does not exist: "+u,c):o("CSS module import does not exist: "+a,c):o("Invalid style name: "+t,c)}(t,e,c);if(0===i.length)throw new Error("Cannot use styleName attribute for style name '"+t+"' without importing at least one stylesheet.");if(i.length>1){if(!s)throw new Error("Cannot use anonymous style name '"+t+"' with more than one stylesheet import without setting 'autoResolveMultipleImports' to true.");return function(t,e,r){var i=r||n.default.handleMissingStyleName,a=Object.keys(e).map((function(r){return e[r][t]&&r})).filter((function(t){return t}));if(a.length>1)throw new Error('Cannot resolve styleName "'+t+'" because it is present in multiple imports:\n\n\t'+a.join("\n\t")+'\n\nYou can resolve this by using a named import, e.g:\n\n\timport foo from "'+a[0]+'";\n\t<div styleName="foo.'+t+'" />\n\n');return 0===a.length?o("Could not resolve the styleName '"+t+"'.",i):e[a[0]][t]}(t,e,c)}var r=e[i[0]];return r[t]?r[t]:o("Could not resolve the styleName '"+t+"'.",c)})).filter((function(t){return t})).join(" "):""}}))),l=Array.isArray,s="object"==typeof o&&o&&o.Object===Object&&o,h="object"==typeof self&&self&&self.Object===Object&&self,f=s||h||Function("return this")(),p=f.Symbol,v=Object.prototype,d=v.hasOwnProperty,y=v.toString,g=p?p.toStringTag:void 0;var m=function(t){var e=d.call(t,g),r=t[g];try{t[g]=void 0;var n=!0}catch(t){}var o=y.call(t);return n&&(e?t[g]=r:delete t[g]),o},_=Object.prototype.toString;var b=function(t){return _.call(t)},w=p?p.toStringTag:void 0;var j=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":w&&w in Object(t)?m(t):b(t)};var O=function(t){return null!=t&&"object"==typeof t};var x=function(t){return"symbol"==typeof t||O(t)&&"[object Symbol]"==j(t)},S=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,E=/^\w*$/;var L=function(t,e){if(l(t))return!1;var r=typeof t;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=t&&!x(t))||(E.test(t)||!S.test(t)||null!=e&&t in Object(e))};var N=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)};var C,k=function(t){if(!N(t))return!1;var e=j(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e},z=f["__core-js_shared__"],F=(C=/[^.]+$/.exec(z&&z.keys&&z.keys.IE_PROTO||""))?"Symbol(src)_1."+C:"";var P=function(t){return!!F&&F 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""},A=/^\[object .+?Constructor\]$/,M=Function.prototype,$=Object.prototype,G=M.toString,R=$.hasOwnProperty,Y=RegExp("^"+G.call(R).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var U=function(t){return!(!N(t)||P(t))&&(k(t)?Y:A).test(T(t))};var q=function(t,e){return null==t?void 0:t[e]};var W=function(t,e){var r=q(t,e);return U(r)?r:void 0},B=W(Object,"create");var D=function(){this.__data__=B?B(null):{},this.size=0};var H=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},J=Object.prototype.hasOwnProperty;var K=function(t){var e=this.__data__;if(B){var r=e[t];return"__lodash_hash_undefined__"===r?void 0:r}return J.call(e,t)?e[t]:void 0},Q=Object.prototype.hasOwnProperty;var V=function(t){var e=this.__data__;return B?void 0!==e[t]:Q.call(e,t)};var X=function(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=B&&void 0===e?"__lodash_hash_undefined__":e,this};function Z(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}Z.prototype.clear=D,Z.prototype.delete=H,Z.prototype.get=K,Z.prototype.has=V,Z.prototype.set=X;var tt=Z;var et=function(){this.__data__=[],this.size=0};var rt=function(t,e){return t===e||t!=t&&e!=e};var nt=function(t,e){for(var r=t.length;r--;)if(rt(t[r][0],e))return r;return-1},ot=Array.prototype.splice;var it=function(t){var e=this.__data__,r=nt(e,t);return!(r<0)&&(r==e.length-1?e.pop():ot.call(e,r,1),--this.size,!0)};var at=function(t){var e=this.__data__,r=nt(e,t);return r<0?void 0:e[r][1]};var ut=function(t){return nt(this.__data__,t)>-1};var ct=function(t,e){var r=this.__data__,n=nt(r,t);return n<0?(++this.size,r.push([t,e])):r[n][1]=e,this};function lt(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}lt.prototype.clear=et,lt.prototype.delete=it,lt.prototype.get=at,lt.prototype.has=ut,lt.prototype.set=ct;var st=lt,ht=W(f,"Map");var ft=function(){this.size=0,this.__data__={hash:new tt,map:new(ht||st),string:new tt}};var pt=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t};var vt=function(t,e){var r=t.__data__;return pt(e)?r["string"==typeof e?"string":"hash"]:r.map};var dt=function(t){var e=vt(this,t).delete(t);return this.size-=e?1:0,e};var yt=function(t){return vt(this,t).get(t)};var gt=function(t){return vt(this,t).has(t)};var mt=function(t,e){var r=vt(this,t),n=r.size;return r.set(t,e),this.size+=r.size==n?0:1,this};function _t(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])}}_t.prototype.clear=ft,_t.prototype.delete=dt,_t.prototype.get=yt,_t.prototype.has=gt,_t.prototype.set=mt;var bt=_t;function wt(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(wt.Cache||bt),r}wt.Cache=bt;var jt=wt;var Ot=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,xt=/\\(\\)?/g,St=function(t){var e=jt(t,(function(t){return 500===r.size&&r.clear(),t})),r=e.cache;return e}((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(Ot,(function(t,r,n,o){e.push(n?o.replace(xt,"$1"):r||t)})),e}));var Et=function(t,e){for(var r=-1,n=null==t?0:t.length,o=Array(n);++r<n;)o[r]=e(t[r],r,t);return o},Lt=p?p.prototype:void 0,Nt=Lt?Lt.toString:void 0;var Ct=function t(e){if("string"==typeof e)return e;if(l(e))return Et(e,t)+"";if(x(e))return Nt?Nt.call(e):"";var r=e+"";return"0"==r&&1/e==-Infinity?"-0":r};var kt=function(t){return null==t?"":Ct(t)};var zt=function(t,e){return l(t)?t:L(t,e)?[t]:St(kt(t))};var Ft=function(t){if("string"==typeof t||x(t))return t;var e=t+"";return"0"==e&&1/t==-Infinity?"-0":e};var Pt=function(t,e){for(var r=0,n=(e=zt(e,t)).length;null!=t&&r<n;)t=t[Ft(e[r++])];return r&&r==n?t:void 0};var It=function(t,e,r){var n=null==t?void 0:Pt(t,e);return void 0===n?r:n},Tt=r();a((function(t){var e=function(t){var e,r=Object.prototype,n=r.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",u=o.toStringTag||"@@toStringTag";function c(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(t){c=function(t,e,r){return t[e]=r}}function l(t,e,r,n){var o=e&&e.prototype instanceof y?e:y,i=Object.create(o.prototype),a=new N(n||[]);return i._invoke=function(t,e,r){var n=h;return function(o,i){if(n===p)throw new Error("Generator is already running");if(n===v){if("throw"===o)throw i;return k()}for(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 c=s(t,e,r);if("normal"===c.type){if(n=r.done?v:f,c.arg===d)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n=v,r.method="throw",r.arg=c.arg)}}}(t,r,a),i}function s(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=l;var h="suspendedStart",f="suspendedYield",p="executing",v="completed",d={};function y(){}function g(){}function m(){}var _={};c(_,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){c(t,e,(function(t){return this._invoke(e,t)}))}))}function x(t,e){function r(o,i,a,u){var c=s(t[o],t,i);if("throw"!==c.type){var l=c.arg,h=l.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){l.value=t,a(l)}),(function(t){return r("throw",t,a,u)}))}u(c.arg)}var o;this._invoke=function(t,n){function i(){return new e((function(e,o){r(t,n,e,o)}))}return o=o?o.then(i,i):i()}}function 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=s(n,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,d;var i=o.arg;return i?i.done?(r[t.resultName]=i.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,d):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,d)}function 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:k}}function k(){return{value:e,done:!0}}return g.prototype=m,c(j,"constructor",m),c(m,"constructor",g),g.displayName=c(m,u,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,m):(t.__proto__=m,c(t,u,"GeneratorFunction")),t.prototype=Object.create(j),t},t.awrap=function(t){return{__await:t}},O(x.prototype),c(x.prototype,a,(function(){return this})),t.AsyncIterator=x,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new x(l(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},O(j),c(j,u,"Generator"),c(j,i,(function(){return this})),c(j,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=[];for(var r in t)e.push(r);return e.reverse(),function r(){for(;e.length;){var n=e.pop();if(n in t)return r.value=n,r.done=!1,r}return r.done=!0,r}},t.values=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 c=n.call(a,"catchLoc"),l=n.call(a,"finallyLoc");if(c&&l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,d):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),d},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),L(r),d}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;L(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator: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 At=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},Mt=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 $t={"./subheadline.m.css":{subheadline:"subheadline-m_subheadline__3fd7z",dark:"subheadline-m_dark__28u00",light:"subheadline-m_light__2YUOe"}},Gt=function(r){var n=r.story,o=r.truncateChars,i=void 0===o?200:o,a=r.lineClamp,u=r.clazzName,l=void 0===u?"":u,s=r.forceShowAtom,h=r.showFullContent,f=e(Tt)||{};if(!(s||It(f,["showSubheadline"],!0)))return null;var p=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:Mt(t);return At(e)<155?"light":"dark"}(f.theme);return t.createElement("div",{style:{WebkitLineClamp:a},"data-test-id":"subheadline",className:("p-alt arr--sub-headline arrow-component ".concat(l)?"p-alt arr--sub-headline arrow-component ".concat(l)+" ":"")+c("subheadline ".concat(p),$t)},h||"number"==typeof a?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,i,!0))};Gt.propTypes={story:n.object.isRequired,lineClamp:n.number,truncateChars:n.number,clazzName:n.string,forceShowAtom:n.bool,showFullContent:n.bool},Gt.defaultProps={forceShowAtom:!1,showFullContent:!1};export{Gt as Subheadline};
@@ -0,0 +1 @@
1
+ import t,{useContext as e,createContext as r}from"react";import n from"prop-types";import"react-timeago";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}).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\]$/,F=Function.prototype,z=Object.prototype,G=F.toString,R=z.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};
@@ -0,0 +1 @@
1
+ import t from"react";import e from"prop-types";import"react-timeago";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,F=k.hasOwnProperty,T=RegExp("^"+I.call(F).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var z=function(t){return!(!w(t)||E(t))&&(j(t)?T: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 z(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",headline:"tag-intro-card-module_headline__D69tv",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("headline ".concat(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 ADDED
@@ -0,0 +1 @@
1
+ import t,{useContext as e,createContext as r}from"react";import n from"prop-types";import"react-timeago";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}).apply(this,arguments)}function i(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r,n,o={},i=Object.keys(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||(o[r]=t[r]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}var a="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function u(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function s(t){var e={exports:{}};return t(e,e.exports),e.exports}var c=s((function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r={attributeNames:{styleName:"className"},generateScopedName:"[path]___[name]__[local]___[hash:base64:5]",handleMissingStyleName:"throw"};e.default=r})),l=u(s((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 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(" "):""}}))),f=Array.isArray,h="object"==typeof a&&a&&a.Object===Object&&a,p="object"==typeof self&&self&&self.Object===Object&&self,v=h||p||Function("return this")(),y=v.Symbol,d=Object.prototype,g=d.hasOwnProperty,m=d.toString,_=y?y.toStringTag:void 0;var b=function(t){var e=g.call(t,_),r=t[_];try{t[_]=void 0;var n=!0}catch(t){}var o=m.call(t);return n&&(e?t[_]=r:delete t[_]),o},w=Object.prototype.toString;var x=function(t){return w.call(t)},j=y?y.toStringTag:void 0;var O=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":j&&j in Object(t)?b(t):x(t)};var E=function(t){return null!=t&&"object"==typeof t};var S=function(t){return"symbol"==typeof t||E(t)&&"[object Symbol]"==O(t)},L=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,N=/^\w*$/;var k=function(t,e){if(f(t))return!1;var r=typeof t;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=t&&!S(t))||(N.test(t)||!L.test(t)||null!=e&&t in Object(e))};var P=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)};var I,M=function(t){if(!P(t))return!1;var e=O(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e},T=v["__core-js_shared__"],C=(I=/[^.]+$/.exec(T&&T.keys&&T.keys.IE_PROTO||""))?"Symbol(src)_1."+I:"";var F=function(t){return!!C&&C in t},z=Function.prototype.toString;var A=function(t){if(null!=t){try{return z.call(t)}catch(t){}try{return t+""}catch(t){}}return""},$=/^\[object .+?Constructor\]$/,G=Function.prototype,R=Object.prototype,Y=G.toString,U=R.hasOwnProperty,H=RegExp("^"+Y.call(U).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var Q=function(t){return!(!P(t)||F(t))&&(M(t)?H:$).test(A(t))};var q=function(t,e){return null==t?void 0:t[e]};var B=function(t,e){var r=q(t,e);return Q(r)?r:void 0},D=B(Object,"create");var J=function(){this.__data__=D?D(null):{},this.size=0};var K=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},V=Object.prototype.hasOwnProperty;var W=function(t){var e=this.__data__;if(D){var r=e[t];return"__lodash_hash_undefined__"===r?void 0:r}return V.call(e,t)?e[t]:void 0},X=Object.prototype.hasOwnProperty;var Z=function(t){var e=this.__data__;return D?void 0!==e[t]:X.call(e,t)};var tt=function(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=D&&void 0===e?"__lodash_hash_undefined__":e,this};function et(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}et.prototype.clear=J,et.prototype.delete=K,et.prototype.get=W,et.prototype.has=Z,et.prototype.set=tt;var rt=et;var nt=function(){this.__data__=[],this.size=0};var ot=function(t,e){return t===e||t!=t&&e!=e};var it=function(t,e){for(var r=t.length;r--;)if(ot(t[r][0],e))return r;return-1},at=Array.prototype.splice;var ut=function(t){var e=this.__data__,r=it(e,t);return!(r<0)&&(r==e.length-1?e.pop():at.call(e,r,1),--this.size,!0)};var st=function(t){var e=this.__data__,r=it(e,t);return r<0?void 0:e[r][1]};var ct=function(t){return it(this.__data__,t)>-1};var lt=function(t,e){var r=this.__data__,n=it(r,t);return n<0?(++this.size,r.push([t,e])):r[n][1]=e,this};function ft(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}ft.prototype.clear=nt,ft.prototype.delete=ut,ft.prototype.get=st,ft.prototype.has=ct,ft.prototype.set=lt;var ht=ft,pt=B(v,"Map");var vt=function(){this.size=0,this.__data__={hash:new rt,map:new(pt||ht),string:new rt}};var yt=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t};var dt=function(t,e){var r=t.__data__;return yt(e)?r["string"==typeof e?"string":"hash"]:r.map};var gt=function(t){var e=dt(this,t).delete(t);return this.size-=e?1:0,e};var mt=function(t){return dt(this,t).get(t)};var _t=function(t){return dt(this,t).has(t)};var bt=function(t,e){var r=dt(this,t),n=r.size;return r.set(t,e),this.size+=r.size==n?0:1,this};function wt(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}wt.prototype.clear=vt,wt.prototype.delete=gt,wt.prototype.get=mt,wt.prototype.has=_t,wt.prototype.set=bt;var xt=wt;function jt(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var r=function(){var n=arguments,o=e?e.apply(this,n):n[0],i=r.cache;if(i.has(o))return i.get(o);var a=t.apply(this,n);return r.cache=i.set(o,a)||i,a};return r.cache=new(jt.Cache||xt),r}jt.Cache=xt;var Ot=jt;var Et=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,St=/\\(\\)?/g,Lt=function(t){var e=Ot(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(Et,(function(t,r,n,o){e.push(n?o.replace(St,"$1"):r||t)})),e}));var Nt=function(t,e){for(var r=-1,n=null==t?0:t.length,o=Array(n);++r<n;)o[r]=e(t[r],r,t);return o},kt=y?y.prototype:void 0,Pt=kt?kt.toString:void 0;var It=function t(e){if("string"==typeof e)return e;if(f(e))return Nt(e,t)+"";if(S(e))return Pt?Pt.call(e):"";var r=e+"";return"0"==r&&1/e==-Infinity?"-0":r};var Mt=function(t){return null==t?"":It(t)};var Tt=function(t,e){return f(t)?t:k(t,e)?[t]:Lt(Mt(t))};var Ct=function(t){if("string"==typeof t||S(t))return t;var e=t+"";return"0"==e&&1/t==-Infinity?"-0":e};var Ft=function(t,e){for(var r=0,n=(e=Tt(e,t)).length;null!=t&&r<n;)t=t[Ct(e[r++])];return r&&r==n?t:void 0};var zt=function(t,e,r){var n=null==t?void 0:Ft(t,e);return void 0===n?r:n},At=["element","render"],$t=function(e){return function(r){var n=r.element,a=r.render,u=i(r,At);return n?a&&"function"==typeof a?a(r):t.createElement(e,o({},u,{element:n})):null}};$t.propTypes={StoryElement:n.element},s((function(t){var e=function(t){var e,r=Object.prototype,n=r.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",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 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 u=E(a,r);if(u){if(u===y)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(n===f)throw n=v,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n=p;var s=l(t,e,r);if("normal"===s.type){if(n=r.done?v:h,s.arg===y)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 f="suspendedStart",h="suspendedYield",p="executing",v="completed",y={};function d(){}function g(){}function m(){}var _={};s(_,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 j(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function O(t,e){function r(o,i,a,u){var s=l(t[o],t,i);if("throw"!==s.type){var c=s.arg,f=c.value;return f&&"object"==typeof f&&n.call(f,"__await")?e.resolve(f.__await).then((function(t){r("next",t,a,u)}),(function(t){r("throw",t,a,u)})):e.resolve(f).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 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,s(x,"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(x),t},t.awrap=function(t){return{__await:t}},j(O.prototype),s(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(c(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},j(x),s(x,u,"Generator"),s(x,i,(function(){return this})),s(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 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,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 Gt=function(t){var e=function(t){return{r:parseInt(t.slice(1,3),16),g:parseInt(t.slice(3,5),16),b:parseInt(t.slice(5,7),16)}}(t);return.299*e.r+.587*e.g+.114*e.b},Rt=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"rgba(255, 255, 255, 0)",e=t.match(/^rgba?[\s+]?\([\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?/i);return e&&4===e.length?"#"+("0"+parseInt(e[1],10).toString(16)).slice(-2)+("0"+parseInt(e[2],10).toString(16)).slice(-2)+("0"+parseInt(e[3],10).toString(16)).slice(-2):t},Yt=n.shape({"sketches-host":n.string,"cdn-name":n.string,"cdn-image":n.string}),Ut=n.shape({headline:n.string,"last-published-at":n.number,subheadline:n.string}),Ht=r(),Qt=["element","opts","css","story","config"],qt={"./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"}},Bt=function(r){var n=r.element,a=void 0===n?{}:n,u=r.opts,s=void 0===u?{}:u,c=r.css,f=void 0===c?{}:c;r.story,r.config;var h=i(r,Qt),p=a.text;if(!p)return null;var v=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"rgb(255,255,255)",e=/^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/.test(t)?t:Rt(t);return Gt(e)<155?"light":"dark"}((e(Ht)||{}).theme),y=f.textColor,d=s.isExternalLink,g=(void 0===d||d)&&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}(p)||p,m=zt(a,["metadata","promotional-message"],!1),_=m?"promotionalMessage":"textElement";return t.createElement("div",o({style:m?{}:{color:y},"data-test-id":m?"promotional-message":"text",dangerouslySetInnerHTML:{__html:g},id:"text-element"},h,{className:"arrow-component arr--text-element "+l("".concat(_," ").concat(v),qt)+" "+(h&&h.className||"")}))};Bt.propTypes={element:n.shape({text:n.string}),opts:n.shape({isExternalLink:n.bool}),css:n.shape({hyperlinkColor:n.string,textColor:n.string}),story:Ut,config:Yt};var Dt=$t(Bt);export{Dt as Text};