@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.
- package/AlsoRead/index.js +1 -0
- package/AlternateCollectionFilter/index.js +1 -0
- package/AsideCollection/index.js +1 -0
- package/Attachment/index.js +1 -0
- package/Author/index.js +1 -0
- package/AuthorIntroductionCard/index.js +1 -0
- package/AuthorWithTime/index.js +1 -0
- package/AuthorsList/index.js +1 -0
- package/BigFact/index.js +1 -0
- package/BlockQuote/index.js +1 -0
- package/Blurb/index.js +1 -0
- package/CollectionFilter/index.js +1 -0
- package/CollectionName/index.js +1 -0
- package/ElevenStories/index.js +1 -0
- package/FourColFiveStories/index.js +1 -0
- package/FourColGrid/index.js +1 -0
- package/FourColSixteenStories/index.js +1 -0
- package/FourColTwelveStories/index.js +1 -0
- package/FourStorySlider/index.js +1 -0
- package/FourTabbedBigStorySlider/index.js +1 -0
- package/FullScreenSlider/index.js +1 -0
- package/HalfScreenSlider/index.js +1 -0
- package/Headline/index.js +1 -0
- package/HeroImage/index.js +1 -0
- package/Image/index.js +1 -0
- package/ImageGallery/index.js +1 -0
- package/ImageSlideshow/index.js +1 -0
- package/KeyEvents/index.js +1 -0
- package/ListComponent/index.js +1 -0
- package/ListicleStoryTemplate/index.js +1 -0
- package/Listicles/index.js +1 -0
- package/LiveBlogStoryTemplate/index.js +1 -0
- package/LoadmoreButton/index.js +1 -0
- package/MagazineEditions/index.js +1 -0
- package/MagazineHeaderCard/index.js +1 -0
- package/MagazineWidget/index.js +1 -0
- package/OneColStoryList/index.js +1 -0
- package/OpinionCollection/index.js +1 -0
- package/PageIntroductionCard/index.js +1 -0
- package/PhotoStoryTemplate/index.js +1 -0
- package/QuestionAnswer/index.js +1 -0
- package/Quote/index.js +1 -0
- package/Reference/index.js +1 -0
- package/ScrollSnap/index.js +1 -0
- package/SectionTag/index.js +1 -0
- package/SixColSixStories/index.js +1 -0
- package/SocialShareTemplate/index.js +1 -0
- package/StoryCard/index.js +1 -0
- package/StoryCollection/index.js +1 -0
- package/StoryElement/index.js +1 -0
- package/StoryElementCard/index.js +1 -0
- package/StorycardContent/index.js +1 -0
- package/Subheadline/index.js +1 -0
- package/Summary/index.js +1 -0
- package/TagIntroductionCard/index.js +1 -0
- package/Text/index.js +1 -0
- package/TextStoryTemplate/index.js +1 -0
- package/ThreeColFlexStories/index.js +1 -0
- package/ThreeColFourteenStories/index.js +1 -0
- package/ThreeColGrid/index.js +1 -0
- package/ThreeColSevenStory/index.js +1 -0
- package/ThreeColSixStories/index.js +1 -0
- package/ThreeColTwelveStories/index.js +1 -0
- package/TimeStamp/index.js +1 -0
- package/TwoColFourStories/index.js +1 -0
- package/TwoColFourStoryHighlight/index.js +1 -0
- package/TwoColSixStories/index.js +1 -0
- package/TwoColTenStoriesSidebar/index.js +1 -0
- package/TwoColThreeStories/index.js +1 -0
- package/Video/index.js +1 -0
- package/VideoStoryTemplate/index.js +1 -0
- package/cjs/index.js +1 -9
- package/esm/index.js +1 -9
- package/package.json +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import e,{useState as t,useEffect as r}from"react";import n from"prop-types";import"react-timeago";import{Link as a,ResponsiveImage as o,SocialShare as i}from"@quintype/components";var l="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function c(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function u(e){var t={exports:{}};return e(t,t.exports),t.exports}var s=u((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={attributeNames:{styleName:"className"},generateScopedName:"[path]___[name]__[local]___[hash:base64:5]",handleMissingStyleName:"throw"};t.default=r})),p=c(u((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,n=(r=s)&&r.__esModule?r:{default:r};var a=function(e,t){if("throw"===t)throw new Error(e);return"warn"===t&&console.warn(e),null};t.default=function(e,t,r){var o=Object.keys(t),i=r||{},l=i.handleMissingStyleName,c=void 0===l?n.default.handleMissingStyleName:l,u=i.autoResolveMultipleImports,s=void 0===u?n.default.autoResolveMultipleImports:u;return e?e.split(" ").filter((function(e){return e})).map((function(e){if(function(e){return-1!==e.indexOf(".")}(e))return function(e,t,r){var o=e.split("."),i=o[0],l=o[1],c=r||n.default.handleMissingStyleName;return l?t[i]?t[i][l]?t[i][l]:a("CSS module does not exist: "+l,c):a("CSS module import does not exist: "+i,c):a("Invalid style name: "+e,c)}(e,t,c);if(0===o.length)throw new Error("Cannot use styleName attribute for style name '"+e+"' without importing at least one stylesheet.");if(o.length>1){if(!s)throw new Error("Cannot use anonymous style name '"+e+"' with more than one stylesheet import without setting 'autoResolveMultipleImports' to true.");return function(e,t,r){var o=r||n.default.handleMissingStyleName,i=Object.keys(t).map((function(r){return t[r][e]&&r})).filter((function(e){return e}));if(i.length>1)throw new Error('Cannot resolve styleName "'+e+'" because it is present in multiple imports:\n\n\t'+i.join("\n\t")+'\n\nYou can resolve this by using a named import, e.g:\n\n\timport foo from "'+i[0]+'";\n\t<div styleName="foo.'+e+'" />\n\n');return 0===i.length?a("Could not resolve the styleName '"+e+"'.",o):t[i[0]][e]}(e,t,c)}var r=t[o[0]];return r[e]?r[e]:a("Could not resolve the styleName '"+e+"'.",c)})).filter((function(e){return e})).join(" "):""}})));u((function(e){var t=function(e){var t,r=Object.prototype,n=r.hasOwnProperty,a="function"==typeof Symbol?Symbol:{},o=a.iterator||"@@iterator",i=a.asyncIterator||"@@asyncIterator",l=a.toStringTag||"@@toStringTag";function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,r){return e[t]=r}}function u(e,t,r,n){var a=t&&t.prototype instanceof v?t:v,o=Object.create(a.prototype),i=new O(n||[]);return o._invoke=function(e,t,r){var n=p;return function(a,o){if(n===h)throw new Error("Generator is already running");if(n===m){if("throw"===a)throw o;return z()}for(r.method=a,r.arg=o;;){var i=r.delegate;if(i){var l=j(i,r);if(l){if(l===d)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(n===p)throw n=m,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n=h;var c=s(e,t,r);if("normal"===c.type){if(n=r.done?m:f,c.arg===d)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n=m,r.method="throw",r.arg=c.arg)}}}(e,r,i),o}function s(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=u;var p="suspendedStart",f="suspendedYield",h="executing",m="completed",d={};function v(){}function _(){}function g(){}var y={};c(y,o,(function(){return this}));var w=Object.getPrototypeOf,b=w&&w(w(T([])));b&&b!==r&&n.call(b,o)&&(y=b);var E=g.prototype=v.prototype=Object.create(y);function x(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function k(e,t){function r(a,o,i,l){var c=s(e[a],e,o);if("throw"!==c.type){var u=c.arg,p=u.value;return p&&"object"==typeof p&&n.call(p,"__await")?t.resolve(p.__await).then((function(e){r("next",e,i,l)}),(function(e){r("throw",e,i,l)})):t.resolve(p).then((function(e){u.value=e,i(u)}),(function(e){return r("throw",e,i,l)}))}l(c.arg)}var a;this._invoke=function(e,n){function o(){return new t((function(t,a){r(e,n,t,a)}))}return a=a?a.then(o,o):o()}}function j(e,r){var n=e.iterator[r.method];if(n===t){if(r.delegate=null,"throw"===r.method){if(e.iterator.return&&(r.method="return",r.arg=t,j(e,r),"throw"===r.method))return d;r.method="throw",r.arg=new TypeError("The iterator does not provide a 'throw' method")}return d}var a=s(n,e.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,d;var o=a.arg;return o?o.done?(r[e.resultName]=o.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,d):o:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,d)}function N(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function A(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function O(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(N,this),this.reset(!0)}function T(e){if(e){var r=e[o];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var a=-1,i=function r(){for(;++a<e.length;)if(n.call(e,a))return r.value=e[a],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}return{next:z}}function z(){return{value:t,done:!0}}return _.prototype=g,c(E,"constructor",g),c(g,"constructor",_),_.displayName=c(g,l,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===_||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,g):(e.__proto__=g,c(e,l,"GeneratorFunction")),e.prototype=Object.create(E),e},e.awrap=function(e){return{__await:e}},x(k.prototype),c(k.prototype,i,(function(){return this})),e.AsyncIterator=k,e.async=function(t,r,n,a,o){void 0===o&&(o=Promise);var i=new k(u(t,r,n,a),o);return e.isGeneratorFunction(r)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},x(E),c(E,l,"Generator"),c(E,o,(function(){return this})),c(E,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=T,O.prototype={constructor:O,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(A),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function a(n,a){return l.type="throw",l.arg=e,r.next=n,a&&(r.method="next",r.arg=t),!!a}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],l=i.completion;if("root"===i.tryLoc)return a("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return a(i.catchLoc,!0);if(this.prev<i.finallyLoc)return a(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return a(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return a(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var o=a;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,d):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),A(r),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var a=n.arg;A(r)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:T(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),d}},e}(e.exports);try{regeneratorRuntime=t}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=t:Function("r","regeneratorRuntime = r")(t)}}));var f=Array.isArray,h="object"==typeof l&&l&&l.Object===Object&&l,m="object"==typeof self&&self&&self.Object===Object&&self,d=h||m||Function("return this")(),v=d.Symbol,_=Object.prototype,g=_.hasOwnProperty,y=_.toString,w=v?v.toStringTag:void 0;var b=function(e){var t=g.call(e,w),r=e[w];try{e[w]=void 0;var n=!0}catch(e){}var a=y.call(e);return n&&(t?e[w]=r:delete e[w]),a},E=Object.prototype.toString;var x=function(e){return E.call(e)},k=v?v.toStringTag:void 0;var j=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":k&&k in Object(e)?b(e):x(e)};var N=function(e){return null!=e&&"object"==typeof e};var A=function(e){return"symbol"==typeof e||N(e)&&"[object Symbol]"==j(e)},O=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,T=/^\w*$/;var z=function(e,t){if(f(e))return!1;var r=typeof e;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=e&&!A(e))||(T.test(e)||!O.test(e)||null!=t&&e in Object(t))};var C=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)};var U,L=function(e){if(!C(e))return!1;var t=j(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},S=d["__core-js_shared__"],M=(U=/[^.]+$/.exec(S&&S.keys&&S.keys.IE_PROTO||""))?"Symbol(src)_1."+U:"";var I=function(e){return!!M&&M in e},R=Function.prototype.toString;var B=function(e){if(null!=e){try{return R.call(e)}catch(e){}try{return e+""}catch(e){}}return""},P=/^\[object .+?Constructor\]$/,F=Function.prototype,D=Object.prototype,G=F.toString,V=D.hasOwnProperty,Z=RegExp("^"+G.call(V).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var $=function(e){return!(!C(e)||I(e))&&(L(e)?Z:P).test(B(e))};var H=function(e,t){return null==e?void 0:e[t]};var q=function(e,t){var r=H(e,t);return $(r)?r:void 0},Q=q(Object,"create");var W=function(){this.__data__=Q?Q(null):{},this.size=0};var Y=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},J=Object.prototype.hasOwnProperty;var X=function(e){var t=this.__data__;if(Q){var r=t[e];return"__lodash_hash_undefined__"===r?void 0:r}return J.call(t,e)?t[e]:void 0},K=Object.prototype.hasOwnProperty;var ee=function(e){var t=this.__data__;return Q?void 0!==t[e]:K.call(t,e)};var te=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Q&&void 0===t?"__lodash_hash_undefined__":t,this};function re(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}re.prototype.clear=W,re.prototype.delete=Y,re.prototype.get=X,re.prototype.has=ee,re.prototype.set=te;var ne=re;var ae=function(){this.__data__=[],this.size=0};var oe=function(e,t){return e===t||e!=e&&t!=t};var ie=function(e,t){for(var r=e.length;r--;)if(oe(e[r][0],t))return r;return-1},le=Array.prototype.splice;var ce=function(e){var t=this.__data__,r=ie(t,e);return!(r<0)&&(r==t.length-1?t.pop():le.call(t,r,1),--this.size,!0)};var ue=function(e){var t=this.__data__,r=ie(t,e);return r<0?void 0:t[r][1]};var se=function(e){return ie(this.__data__,e)>-1};var pe=function(e,t){var r=this.__data__,n=ie(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this};function fe(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}fe.prototype.clear=ae,fe.prototype.delete=ce,fe.prototype.get=ue,fe.prototype.has=se,fe.prototype.set=pe;var he=fe,me=q(d,"Map");var de=function(){this.size=0,this.__data__={hash:new ne,map:new(me||he),string:new ne}};var ve=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e};var _e=function(e,t){var r=e.__data__;return ve(t)?r["string"==typeof t?"string":"hash"]:r.map};var ge=function(e){var t=_e(this,e).delete(e);return this.size-=t?1:0,t};var ye=function(e){return _e(this,e).get(e)};var we=function(e){return _e(this,e).has(e)};var be=function(e,t){var r=_e(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this};function Ee(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Ee.prototype.clear=de,Ee.prototype.delete=ge,Ee.prototype.get=ye,Ee.prototype.has=we,Ee.prototype.set=be;var xe=Ee;function ke(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var r=function(){var n=arguments,a=t?t.apply(this,n):n[0],o=r.cache;if(o.has(a))return o.get(a);var i=e.apply(this,n);return r.cache=o.set(a,i)||o,i};return r.cache=new(ke.Cache||xe),r}ke.Cache=xe;var je=ke;var Ne=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ae=/\\(\\)?/g,Oe=function(e){var t=je(e,(function(e){return 500===r.size&&r.clear(),e})),r=t.cache;return t}((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(Ne,(function(e,r,n,a){t.push(n?a.replace(Ae,"$1"):r||e)})),t}));var Te=function(e,t){for(var r=-1,n=null==e?0:e.length,a=Array(n);++r<n;)a[r]=t(e[r],r,e);return a},ze=v?v.prototype:void 0,Ce=ze?ze.toString:void 0;var Ue=function e(t){if("string"==typeof t)return t;if(f(t))return Te(t,e)+"";if(A(t))return Ce?Ce.call(t):"";var r=t+"";return"0"==r&&1/t==-Infinity?"-0":r};var Le=function(e){return null==e?"":Ue(e)};var Se=function(e,t){return f(e)?e:z(e,t)?[e]:Oe(Le(e))};var Me=function(e){if("string"==typeof e||A(e))return e;var t=e+"";return"0"==t&&1/e==-Infinity?"-0":t};var Ie=function(e,t){for(var r=0,n=(t=Se(t,e)).length;null!=e&&r<n;)e=e[Me(t[r++])];return r&&r==n?e:void 0};var Re=function(e,t,r){var n=null==e?void 0:Ie(e,t);return void 0===n?r:n};var Be=function(e,t,r,n){var a=-1,o=null==e?0:e.length;for(n&&o&&(r=e[++a]);++a<o;)r=t(r,e[a],a,e);return r};var Pe=function(e){return function(t){return null==e?void 0:e[t]}}({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"}),Fe=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,De=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]","g");var Ge=function(e){return(e=Le(e))&&e.replace(Fe,Pe).replace(De,"")},Ve=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;var Ze=function(e){return e.match(Ve)||[]},$e=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;var He=function(e){return $e.test(e)},qe="\\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",Qe="["+qe+"]",We="\\d+",Ye="[\\u2700-\\u27bf]",Je="[a-z\\xdf-\\xf6\\xf8-\\xff]",Xe="[^\\ud800-\\udfff"+qe+We+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",Ke="(?:\\ud83c[\\udde6-\\uddff]){2}",et="[\\ud800-\\udbff][\\udc00-\\udfff]",tt="[A-Z\\xc0-\\xd6\\xd8-\\xde]",rt="(?:"+Je+"|"+Xe+")",nt="(?:"+tt+"|"+Xe+")",at="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?",ot="[\\ufe0e\\ufe0f]?"+at+("(?:\\u200d(?:"+["[^\\ud800-\\udfff]",Ke,et].join("|")+")[\\ufe0e\\ufe0f]?"+at+")*"),it="(?:"+[Ye,Ke,et].join("|")+")"+ot,lt=RegExp([tt+"?"+Je+"+(?:['’](?:d|ll|m|re|s|t|ve))?(?="+[Qe,tt,"$"].join("|")+")",nt+"+(?:['’](?:D|LL|M|RE|S|T|VE))?(?="+[Qe,tt+rt,"$"].join("|")+")",tt+"?"+rt+"+(?:['’](?:d|ll|m|re|s|t|ve))?",tt+"+(?:['’](?: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_])",We,it].join("|"),"g");var ct=function(e){return e.match(lt)||[]};var ut=function(e,t,r){return e=Le(e),void 0===(t=r?void 0:t)?He(e)?ct(e):Ze(e):e.match(t)||[]},st=RegExp("['’]","g");var pt=function(e){return function(t){return Be(ut(Ge(t).replace(st,"")),e,"")}},ft=!("undefined"==typeof window||!window.document||!window.document.createElement)&&window.location.href,ht=function(e){var t=function(e){return{r:parseInt(e.slice(1,3),16),g:parseInt(e.slice(3,5),16),b:parseInt(e.slice(5,7),16)}}(e);return.299*t.r+.587*t.g+.114*t.b},mt=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"rgba(255, 255, 255, 0)",t=e.match(/^rgba?[\s+]?\([\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?/i);return t&&4===t.length?"#"+("0"+parseInt(t[1],10).toString(16)).slice(-2)+("0"+parseInt(t[2],10).toString(16)).slice(-2)+("0"+parseInt(t[3],10).toString(16)).slice(-2):e},dt={mobile:767,tablet:1024},vt=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"rgb(255,255,255)",t=/^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/.test(e),r=t?e:mt(e),n=ht(r)<155?"light":"dark";return n};n.shape({"sketches-host":n.string,"cdn-name":n.string,"cdn-image":n.string}),n.shape({headline:n.string,"last-published-at":n.number,subheadline:n.string});var _t=function(t){var r=t.width,n=void 0===r?120:r,a=t.height,o=void 0===a?120:a;return e.createElement("svg",{width:n,height:o,viewBox:"0 0 120 120",xmlns:"http://www.w3.org/2000/svg"},e.createElement("path",{d:"M93.28 108.98c-1.055-17.675-15.47-31.678-33.098-31.678-17.708 0-32.173 14.129-33.11 31.916 9.415 6.311 20.741 9.993 32.927 9.993 12.338 0 23.795-3.774 33.28-10.23l.001-.001zM58.584 73.283c9.928 0 17.977-8.275 17.977-18.483 0-10.209-8.049-18.484-17.977-18.484-9.929 0-17.977 8.275-17.977 18.484 0 10.208 8.048 18.483 17.977 18.483zM60 120C26.863 120 0 93.137 0 60S26.863 0 60 0s60 26.863 60 60-26.863 60-60 60z",fill:"#DADADA",fillRule:"nonzero"}))};_t.propTypes={width:n.object,height:n.object};var gt={"./author-image.m.css":{viewports:'"../../../../assets/stylesheets/viewports.m.css"',mobile:"768px",tablet:"992px","image-container":"author-image-m_image-container__19WNd","author-image":"author-image-m_author-image__D8GMB",square:"author-image-m_square__bjK7M","small-circle":"author-image-m_small-circle__DbQMN","smaller-circle":"author-image-m_smaller-circle__2yMOZ"}},yt=function(t,r){var n=t["avatar-url"],a=t["avatar-s3-key"],i=t.name;return e.createElement("div",{"data-test-id":"author-image",className:"arr--author-image "+p("author-image ".concat(r),gt)},e.createElement("figure",{className:"author-image-m_image-container__19WNd"},a?e.createElement(o,{slug:a,alt:i,defaultWidth:250,widths:[250,480],aspectRatio:[[1,1],[1,1]],sizes:"98vw",imgParams:{auto:["format","compress"]}}):n?e.createElement("img",{src:n}):e.createElement(_t,null)))},wt=function(t){var r=t.author,n=void 0===r?{}:r,o=t.template,i=void 0===o?"":o,l=t.config,c=void 0===l?{}:l,u=n.slug,s=c.mountAt||"",p="";return"smallerCircle"===i?p="smaller-circle":"smallCircle"===i?p="small-circle":"square"===i&&(p="square"),u?e.createElement(a,{href:"".concat(s,"/author/")+u},yt(n,p)):yt(n,p)};function bt(){return(bt=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function Et(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function xt(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,a,o=[],i=!0,l=!1;try{for(r=r.call(e);!(i=(n=r.next()).done)&&(o.push(n.value),!t||o.length!==t);i=!0);}catch(e){l=!0,a=e}finally{try{i||null==r.return||r.return()}finally{if(l)throw a}}return o}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Et(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Et(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}wt.propTypes={author:n.shape({"avatar-url":n.string,"avatar-s3-key":n.string,name:n.string,slug:n.string}),template:n.string};var kt=function(t){var r=t.color,n=void 0===r?"#1CB7EB":r;return e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},e.createElement("path",{fill:n,d:"M19.137 8.594c.023.094.035.246.035.457 0 1.687-.41 3.316-1.23 4.887-.844 1.664-2.028 2.988-3.551 3.972-1.664 1.102-3.575 1.652-5.73 1.652-2.063 0-3.95-.55-5.661-1.652.258.024.55.035.879.035 1.71 0 3.246-.527 4.605-1.582-.82 0-1.54-.24-2.162-.72a3.673 3.673 0 01-1.283-1.811c.234.023.457.035.668.035.328 0 .656-.035.984-.105a3.724 3.724 0 01-2.109-1.301 3.542 3.542 0 01-.844-2.32v-.07a3.493 3.493 0 001.653.492 4.097 4.097 0 01-1.196-1.336 3.557 3.557 0 01-.457-1.776c0-.644.176-1.26.528-1.845a10.188 10.188 0 003.357 2.742 10.222 10.222 0 004.236 1.125 5.122 5.122 0 01-.07-.844c0-.656.164-1.272.492-1.846a3.615 3.615 0 011.336-1.353 3.568 3.568 0 011.828-.492c.54 0 1.037.105 1.494.316.457.21.862.492 1.213.844a7.479 7.479 0 002.356-.88c-.281.868-.82 1.548-1.617 2.04A7.926 7.926 0 0021 6.66a8.132 8.132 0 01-1.863 1.934z"}))};kt.propTypes={color:n.string};var jt=function(t){var r=t.color,n=void 0===r?"#3B5998":r;return e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},e.createElement("path",{fill:n,d:"M9.906 20v-7.156H7.5V10h2.406V7.75c0-1.187.334-2.11 1-2.766.667-.656 1.552-.984 2.656-.984.896 0 1.625.042 2.188.125v2.531h-1.5c-.563 0-.948.125-1.156.375-.167.209-.25.542-.25 1V10H15.5l-.375 2.844h-2.281V20H9.906z"}))};jt.propTypes={color:n.string};var Nt=function(t){var r=t.color,n=void 0===r?"#0077B5":r;return e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},e.createElement("path",{fill:n,d:"M6.71 19H3.26V7.904h3.45V19zM5.005 6.383a1.926 1.926 0 01-1.41-.594A1.923 1.923 0 013 4.38c0-.544.198-1.014.594-1.41a1.926 1.926 0 011.41-.594c.544 0 1.014.198 1.41.594.396.396.594.866.594 1.41 0 .544-.198 1.014-.594 1.41a1.926 1.926 0 01-1.41.594zM19.625 19h-3.451v-5.418c0-.89-.074-1.534-.223-1.93-.272-.668-.804-1.002-1.596-1.002-.791 0-1.348.297-1.67.891-.247.445-.37 1.1-.37 1.967V19H8.9V7.904h3.303v1.522h.037c.248-.495.643-.903 1.188-1.225.593-.396 1.286-.594 2.078-.594 1.608 0 2.734.508 3.377 1.522.495.816.742 2.078.742 3.785V19z"}))};Nt.propTypes={color:n.string};var At=function(t){var r=t.color,n=void 0===r?"#4AC959":r;return e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},e.createElement("path",{fill:n,fillRule:"evenodd",d:"M18.404 5.505a9.457 9.457 0 012.02 2.96 8.587 8.587 0 01.715 3.449 8.665 8.665 0 01-1.245 4.53 9.282 9.282 0 01-3.347 3.307 8.894 8.894 0 01-4.552 1.225 8.835 8.835 0 01-4.327-1.102l-4.817 1.265 1.307-4.694a8.775 8.775 0 01-1.225-4.531 8.77 8.77 0 011.225-4.531 9.17 9.17 0 013.306-3.307 8.781 8.781 0 014.531-1.224c1.198 0 2.347.23 3.45.693a9.515 9.515 0 012.959 1.96zm-6.409 13.96c1.36 0 2.626-.34 3.797-1.02a7.75 7.75 0 002.796-2.756 7.202 7.202 0 001.04-3.775c0-.98-.203-1.933-.612-2.858a8.088 8.088 0 00-1.694-2.47 7.565 7.565 0 00-2.449-1.653 7.405 7.405 0 00-2.878-.571c-1.36 0-2.62.34-3.776 1.02a7.646 7.646 0 00-2.755 2.756 7.316 7.316 0 00-1.02 3.776c0 1.442.394 2.775 1.183 4l.164.286-.776 2.775 2.857-.734.286.163a7.275 7.275 0 003.837 1.061zm4.123-5.674l.123.082c.19.082.299.15.326.204.027.054.034.19.02.408a2.11 2.11 0 01-.163.674c-.095.231-.313.462-.653.694-.34.231-.633.36-.878.388-.38.054-.748.054-1.102 0-.408-.082-.952-.273-1.632-.572-1.388-.599-2.654-1.714-3.797-3.347l-.081-.082c-.6-.843-.898-1.62-.898-2.327 0-.707.244-1.32.734-1.837l.041-.04c.19-.19.395-.286.612-.286h.49c.11 0 .198.02.266.061.068.041.129.143.183.306l.694 1.674c.082.163.095.3.041.408a2.832 2.832 0 01-.53.735.917.917 0 00-.205.265c-.027.068 0 .143.082.225.38.707.83 1.265 1.347 1.673.381.3.952.64 1.714 1.02.218.11.381.096.49-.04.354-.408.599-.707.735-.898.054-.109.123-.163.204-.163.082 0 .177.013.286.04.218.082.735.327 1.551.735z"}))};At.propTypes={color:n.string};var Ot=function(t){var r=t.fbUrl,n=t.twitterUrl,a=t.linkedinUrl,o=t.whatsappUrl,i=t.iconColor,l=t.iconType,c=function(t,r){switch(r){case"plain-color-svg":return{facebook:e.createElement(jt,{key:r}),twitter:e.createElement(kt,{key:r}),linkedin:e.createElement(Nt,{key:r}),whatsapp:e.createElement(At,{key:r})};default:return{facebook:e.createElement(jt,{color:t,key:r}),twitter:e.createElement(kt,{color:t,key:r}),linkedin:e.createElement(Nt,{color:t,key:r}),whatsapp:e.createElement(At,{color:t,key:r})}}}(i,void 0===l?"plain-svg":l);return[{name:"facebook",url:r,icon:c.facebook,text:"Facebook",bgColor:"#4e71a8",alt:"fb icon"},{name:"twitter",url:n,icon:c.twitter,text:"Twitter",bgColor:"#1db7eb",alt:"twitter icon"},{name:"linkedin",url:a,icon:c.linkedin,text:"LinkedIn",bgColor:"#0077B5",alt:"linkedin icon"},{name:"whatsapp",url:o,icon:c.whatsapp,text:"Whatsapp",bgColor:"#25d366",alt:"whatsapp share"}]},Tt=function(t){var r=t.color,n=void 0===r?"#333":r;return e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},e.createElement("g",{fill:"none",stroke:n,strokeLinecap:"square",strokeWidth:"2"},e.createElement("path",{d:"M16.95 6.914l-9.9 9.9M16.95 17.107l-9.9-9.9"})))};Tt.propTypes={color:n.string};var zt={"./social-share-popup.m.css":{"share-popup-wrapper":"social-share-popup-m_share-popup-wrapper__GEJqD",light:"social-share-popup-m_light__gQmxf",dark:"social-share-popup-m_dark__26Igp","share-popup":"social-share-popup-m_share-popup__QRt3l social-share-popup-m_share-popup-wrapper__GEJqD","social-wrapper":"social-share-popup-m_social-wrapper__1lPzr","social-icon-wrapper":"social-share-popup-m_social-icon-wrapper__36jyV",wrapper:"social-share-popup-m_wrapper__3Ytce","top-bar":"social-share-popup-m_top-bar__174Um","share-text":"social-share-popup-m_share-text__19E-F",close:"social-share-popup-m_close__3k-Hj","social-icon":"social-share-popup-m_social-icon__2a4nT","social-text":"social-share-popup-m_social-text__1QPXb"}},Ct=function(t){var r=t.fbUrl,n=void 0===r?"":r,a=t.twitterUrl,o=void 0===a?"":a,i=t.linkedinUrl,l=void 0===i?"":i,c=t.whatsappUrl,u=void 0===c?"":c,s=t.theme,f=t.closePopup,h=void 0===f?"":f,m=t.iconType,d=void 0===m?"plain-color-svg":m,v=vt(s),_="dark"===v?"#000000":"#ffffff",g=Ot({fbUrl:n,twitterUrl:o,linkedinUrl:l,whatsappUrl:u,iconColor:_,iconType:d});return e.createElement("div",{className:p("share-popup-wrapper ".concat(v),zt)},e.createElement("div",{className:"social-share-popup-m_share-popup__QRt3l social-share-popup-m_share-popup-wrapper__GEJqD"},e.createElement("div",{className:"social-share-popup-m_top-bar__174Um"},e.createElement("span",{className:"social-share-popup-m_share-text__19E-F"},"Share via"),e.createElement("span",{className:"social-share-popup-m_close__3k-Hj",onClick:h},e.createElement(Tt,{color:_}))),e.createElement("ul",{className:"social-share-popup-m_wrapper__3Ytce"},g.map((function(t,r){var n=t.url,a=t.icon,o=t.text,i=t.bgColor;return t.alt,function(t,r,n,a){return t?e.createElement("li",{className:"social-share-popup-m_social-icon-wrapper__36jyV","data-testid":n,key:"popup-item-".concat(a)},e.createElement("a",{href:t,target:"_blank",rel:"noopener noreferrer",className:"social-share-popup-m_social-wrapper__1lPzr","aria-label":"social-icon"},r,e.createElement("span",{className:"social-share-popup-m_social-text__1QPXb"},n))):null}(n,a,o,i)})))))};Ct.propTypes={fbUrl:n.string,twitterUrl:n.string,linkedinUrl:n.string,whatsappUrl:n.string,grey:n.string,primaryColor:n.string,closePopup:n.bool,theme:n.string,iconType:n.string};var Ut=function(t){var r=t.color,n=void 0===r?"#0D0D0D":r;return e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},e.createElement("path",{fill:n,fillRule:"evenodd",d:"M15.843 3.189c-1.478 0-2.689 1.239-2.689 2.75 0 .293.046.58.13.846L8.844 9.31a2.638 2.638 0 00-1.687-.621c-1.477 0-2.688 1.238-2.688 2.75 0 1.51 1.21 2.75 2.688 2.75.638 0 1.224-.231 1.687-.615l4.446 2.525a2.778 2.778 0 00-.136.84c0 1.51 1.211 2.75 2.689 2.75 1.477 0 2.688-1.24 2.688-2.75 0-1.512-1.21-2.75-2.688-2.75-.742 0-1.419.317-1.907.82l-4.323-2.46a2.763 2.763 0 000-2.221l4.317-2.459c.488.506 1.168.82 1.913.82 1.477 0 2.688-1.239 2.688-2.75s-1.21-2.75-2.688-2.75z"}))};Ut.propTypes={color:n.string};var Lt=function(e,t,r){var n=-1,a=e.length;t<0&&(t=-t>a?0:a+t),(r=r>a?a:r)<0&&(r+=a),a=t>r?0:r-t>>>0,t>>>=0;for(var o=Array(a);++n<a;)o[n]=e[n+t];return o};var St=function(e,t,r){var n=e.length;return r=void 0===r?n:r,!t&&r>=n?e:Lt(e,t,r)},Mt=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");var It=function(e){return Mt.test(e)};var Rt=function(e){return e.split("")},Bt="[\\ud800-\\udfff]",Pt="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",Ft="\\ud83c[\\udffb-\\udfff]",Dt="[^\\ud800-\\udfff]",Gt="(?:\\ud83c[\\udde6-\\uddff]){2}",Vt="[\\ud800-\\udbff][\\udc00-\\udfff]",Zt="(?:"+Pt+"|"+Ft+")"+"?",$t="[\\ufe0e\\ufe0f]?"+Zt+("(?:\\u200d(?:"+[Dt,Gt,Vt].join("|")+")[\\ufe0e\\ufe0f]?"+Zt+")*"),Ht="(?:"+[Dt+Pt+"?",Pt,Gt,Vt,Bt].join("|")+")",qt=RegExp(Ft+"(?="+Ft+")|"+Ht+$t,"g");var Qt=function(e){return e.match(qt)||[]};var Wt=function(e){return It(e)?Qt(e):Rt(e)};var Yt=function(e){return function(t){t=Le(t);var r=It(t)?Wt(t):void 0,n=r?r[0]:t.charAt(0),a=r?St(r,1).join(""):t.slice(1);return n[e]()+a}}("toUpperCase");var Jt=function(e){return Yt(Le(e).toLowerCase())},Xt=pt((function(e,t,r){return t=t.toLowerCase(),e+(r?Jt(t):t)})),Kt={"./social-share-template.m.css":{"desktop-view":"social-share-template-m_desktop-view__3TmkO","tablet-view":"social-share-template-m_tablet-view__kATzi",wrapper:"social-share-template-m_wrapper__1wXin",horizontal:"social-share-template-m_horizontal__1c9Kt",vertical:"social-share-template-m_vertical__VU5JY",light:"social-share-template-m_light__3-V_k",dark:"social-share-template-m_dark__1lmTM",icon:"social-share-template-m_icon__1Mnu5",open:"social-share-template-m_open__3xObA","popup-wrapper":"social-share-template-m_popup-wrapper__1Zv3e","popup-open":"social-share-template-m_popup-open__21UNo",overlay:"social-share-template-m_overlay__1nBp-","tablet-view-popup":"social-share-template-m_tablet-view-popup__1hXU9"}},er=function(t){var r=t.name,n=t.url,a=t.icon,o=t.dataTestId;return n?e.createElement("li",{"data-testid":o,className:"social-share-template-m_icon__1Mnu5"},e.createElement("a",{href:n,target:"_blank",rel:"noopener noreferrer","data-share-icon":r,"aria-label":"share-icon"},a)):null};er.propTypes={name:n.string,url:n.string,icon:n.node,dataTestId:n.string};var tr=function(n){var a=n.fbUrl,o=void 0===a?"":a,i=n.twitterUrl,l=void 0===i?"":i,c=n.linkedinUrl,u=void 0===c?"":c,s=n.whatsappUrl,f=void 0===s?"":s,h=n.vertical,m=void 0!==h&&h,d=n.theme,v=n.iconType,_=void 0===v?"plain-color-svg":v,g=n.open,y=void 0!==g&&g;if(!(o||l||u||f))return null;var w=vt(d),b="dark"===w?"#000000":"#ffffff",E=Ot({fbUrl:o,twitterUrl:l,linkedinUrl:u,whatsappUrl:f,iconColor:b,iconType:_}),x=xt(t(y),2),k=x[0],j=x[1],N=m?"vertical":"horizontal";r((function(){return j(y)}),[y]);var A=function(){return e.createElement("li",{className:"social-share-template-m_icon__1Mnu5",key:"horizontal-0"},e.createElement("div",{onClick:O},function(t,r){return t?e.createElement(Tt,{color:r}):e.createElement(Ut,{color:r})}(k,b)))},O=function(){j(!k)},T=!k&&m?"tablet-view-popup":"";return e.createElement("div",{"data-test-id":N,className:"arr--share "+p("".concat(w," ").concat(N," ").concat(T),Kt)},e.createElement("div",{className:"social-share-template-m_desktop-view__3TmkO"},e.createElement("ul",{"data-test-id":Xt(_),className:"desktop-share-wrapper "+p("wrapper ".concat(k?"open":""),Kt)},A(),E.map((function(t,r){return e.createElement(er,bt({},t,{key:t.name,dataTestId:"card-share-".concat(r)}))})))),e.createElement("div",{className:"social-share-template-m_tablet-view__kATzi"},!k&&e.createElement("ul",{className:p("wrapper ".concat(k?"open":""),Kt)},A()),k&&e.createElement(e.Fragment,null,e.createElement("div",{className:"social-share-template-m_overlay__1nBp-",onClick:O},e.createElement("div",{className:"arr--popup "+p("popup-wrapper ".concat(k?"popup-open":""),Kt)},e.createElement(Ct,{fbUrl:o,twitterUrl:l,linkedinUrl:u,whatsappUrl:f,iconType:_,theme:d,closePopup:function(){j(!1)}}))))))};tr.propTypes={fbUrl:n.string,twitterUrl:n.string,linkedinUrl:n.string,whatsappUrl:n.string,vertical:n.bool,theme:n.string,iconType:n.string,open:n.boolean};var rr=function(t){var r=t.color,n=void 0===r?"#F61C0D":r;return e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},e.createElement("path",{fill:n,fillRule:"evenodd",d:"M22.077 6.844c.18.703.308 1.77.385 3.203L22.5 12l-.038 1.953c-.077 1.458-.206 2.54-.385 3.242a2.733 2.733 0 01-.692 1.172 2.654 2.654 0 01-1.193.703c-.666.183-2.23.313-4.692.39l-3.5.04-3.5-.04c-2.462-.077-4.026-.207-4.692-.39a2.657 2.657 0 01-1.193-.703 2.733 2.733 0 01-.692-1.172c-.18-.703-.308-1.784-.385-3.242L1.5 12c0-.573.013-1.224.038-1.953.077-1.432.206-2.5.385-3.203A2.718 2.718 0 013.808 4.93c.666-.183 2.23-.313 4.692-.39L12 4.5l3.5.04c2.462.077 4.026.207 4.692.39a2.718 2.718 0 011.885 1.914zm-12.23 8.36l5.5-3.204-5.5-3.164v6.367z"}))};rr.propTypes={color:n.string};var nr=function(){return e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",width:"24",height:"24",viewBox:"0 0 24 24"},e.createElement("defs",null,e.createElement("linearGradient",{id:"prefix__b",x1:"0%",x2:"110.694%",y1:"0%",y2:"109.202%"},e.createElement("stop",{offset:"0%",stopColor:"#724AC6"}),e.createElement("stop",{offset:"53.59%",stopColor:"#E5375E"}),e.createElement("stop",{offset:"100%",stopColor:"#FC9949"})),e.createElement("path",{id:"prefix__a",d:"M9 4.636c.784 0 1.512.196 2.182.588.67.392 1.202.924 1.594 1.594.392.67.588 1.398.588 2.182s-.196 1.512-.588 2.182a4.382 4.382 0 01-1.594 1.594c-.67.392-1.398.588-2.182.588s-1.512-.196-2.182-.588a4.382 4.382 0 01-1.594-1.594c-.392-.67-.588-1.398-.588-2.182s.196-1.512.588-2.182a4.382 4.382 0 011.594-1.594A4.247 4.247 0 019 4.636zm0 7.21c.784 0 1.455-.278 2.011-.835.557-.556.835-1.227.835-2.011s-.278-1.455-.835-2.011c-.556-.557-1.227-.835-2.011-.835s-1.455.278-2.011.835c-.557.556-.835 1.227-.835 2.011s.278 1.455.835 2.011A2.739 2.739 0 009 11.846zm5.578-7.4a1.181 1.181 0 01-.322.721.923.923 0 01-.702.304.981.981 0 01-.721-.304.98.98 0 01-.304-.72c0-.279.101-.52.304-.722a.984.984 0 01.72-.303c.279 0 .52.101.722.303a.987.987 0 01.303.721zm2.884 1.025c.025.708.038 1.885.038 3.529s-.019 2.827-.057 3.548c-.038.721-.145 1.347-.322 1.878a4.425 4.425 0 01-1.044 1.651 4.429 4.429 0 01-1.65 1.044c-.532.177-1.158.284-1.879.322-.721.038-1.904.057-3.548.057-1.644 0-2.827-.019-3.548-.057-.721-.038-1.347-.158-1.878-.36a4.05 4.05 0 01-1.651-1.006 4.429 4.429 0 01-1.044-1.65c-.177-.532-.284-1.158-.322-1.879C.519 11.827.5 10.644.5 9c0-1.644.019-2.827.057-3.548.038-.721.145-1.347.322-1.878a4.425 4.425 0 011.044-1.651A4.429 4.429 0 013.573.879C4.106.702 4.732.595 5.453.557 6.173.519 7.356.5 9 .5c1.644 0 2.827.019 3.548.057.721.038 1.347.145 1.878.322a4.425 4.425 0 011.651 1.044 4.429 4.429 0 011.044 1.65c.177.532.29 1.164.341 1.898zm-1.821 8.538c.151-.43.253-1.113.303-2.05.025-.556.038-1.34.038-2.352V8.393a54.22 54.22 0 00-.038-2.353c-.05-.961-.152-1.644-.303-2.049a2.743 2.743 0 00-1.632-1.632c-.405-.151-1.088-.253-2.05-.303a55.796 55.796 0 00-2.352-.038H8.393c-1.012 0-1.796.013-2.353.038-.936.05-1.619.152-2.049.303a2.743 2.743 0 00-1.632 1.632c-.151.405-.253 1.088-.303 2.05-.025.556-.038 1.34-.038 2.352v1.214c0 1.012.013 1.796.038 2.353.05.936.152 1.619.303 2.049.33.784.873 1.328 1.632 1.632.43.151 1.113.253 2.05.303.556.025 1.34.038 2.352.038h1.214a54.22 54.22 0 002.353-.038c.961-.05 1.644-.152 2.049-.303.784-.33 1.328-.873 1.632-1.632z"})),e.createElement("use",{fill:"url(#prefix__b)",fillRule:"nonzero",transform:"translate(3 3)",xlinkHref:"#prefix__a"}))},ar=function(){return e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},e.createElement("path",{fill:"#E60023",d:"M21.5 12a9.209 9.209 0 01-1.283 4.75 9.6 9.6 0 01-3.467 3.467A9.209 9.209 0 0112 21.5c-.97 0-1.903-.14-2.796-.421.613-1.022.996-1.852 1.149-2.49l.613-2.26c.153.306.434.561.842.766.41.204.856.306 1.341.306.92 0 1.756-.262 2.51-.785.753-.524 1.34-1.232 1.761-2.126.422-.894.632-1.87.632-2.93s-.255-2.012-.766-2.854a5.318 5.318 0 00-2.107-1.973c-.893-.473-1.89-.709-2.987-.709-1.303 0-2.452.268-3.448.805a5.465 5.465 0 00-2.088 2.087 5.704 5.704 0 00-.747 2.854c0 .74.185 1.475.556 2.203.37.728.836 1.22 1.398 1.475.179.076.28.038.306-.115l.268-1.073a.266.266 0 00-.076-.268 3.048 3.048 0 01-.498-.977 3.908 3.908 0 01-.192-1.207c0-.715.173-1.385.518-2.01a3.99 3.99 0 011.474-1.514c.664-.408 1.43-.613 2.299-.613 1.174 0 2.132.364 2.873 1.092.74.728 1.11 1.654 1.11 2.777 0 1.277-.287 2.324-.861 3.141-.575.818-1.284 1.226-2.126 1.226-.486 0-.869-.172-1.15-.517-.28-.345-.37-.747-.268-1.207.051-.28.166-.689.345-1.225.281-.945.421-1.603.421-1.973 0-.37-.102-.677-.306-.92-.204-.242-.498-.363-.881-.363-.485 0-.894.217-1.226.65-.332.435-.498.984-.498 1.648 0 .562.09 1.034.268 1.417L8.591 18.13c-.154.638-.166 1.545-.039 2.72-1.813-.69-3.275-1.839-4.386-3.448C3.056 15.792 2.5 13.991 2.5 12c0-1.711.428-3.294 1.283-4.75A9.6 9.6 0 017.25 3.783 9.209 9.209 0 0112 2.5c1.711 0 3.294.428 4.75 1.283a9.6 9.6 0 013.467 3.467A9.209 9.209 0 0121.5 12z"}))},or={"./author-intro.m.css":{viewports:'"../../../../assets/stylesheets/viewports.m.css"',mobile:"768px",tablet:"992px",connect:"author-intro-m_connect__15zIX","social-share":"author-intro-m_social-share__f5EpE","share-icon":"author-intro-m_share-icon__3gke5",default:"author-intro-m_default__1rQ_v","author-image":"author-intro-m_author-image__2jRxy","author-name":"author-intro-m_author-name__1L60a","author-description":"author-intro-m_author-description__2CTEw",wrapper:"author-intro-m_wrapper__2Bi-s","introduction-card":"author-intro-m_introduction-card__1kdGt","social-wrapper":"author-intro-m_social-wrapper__1F9jD",linkWrapper:"author-intro-m_linkWrapper__Au0nU","social-connect-wrapper":"author-intro-m_social-connect-wrapper__2B0QA",dark:"author-intro-m_dark__ALdDb",light:"author-intro-m_light__2SfeE","small-circle":"author-intro-m_small-circle__jyG1s",border:"author-intro-m_border__3Tii9","fade-out":"author-intro-m_fade-out__1EBqd"}},ir=function(t){var r,n=t.data,a=void 0===n?{}:n,o=t.config,l=void 0===o?{}:o,c=t.template,u=void 0===c?"":c,s=l.theme,f=void 0===s?"":s,h=l.enableBio,m=void 0===h||h,d=l.enableSocialLinks,v=void 0===d||d,_=l.borderSupport,g=void 0===_||_,y=vt(f),w=a.name,b=a.bio,E=a.social,x="smallCircle"===u,k=x?"small-circle":"default",j=!!(r=Re(dt,"mobile"))&&Re(global,"document.documentElement.clientWidth")<=r,N=x?"":"full-width-with-padding",A=x&&g?"border":"";return e.createElement("div",{"data-test-id":"author-intro",style:{backgroundColor:f,color:y},className:("".concat(N," arrow-component arr--author-intro-card")?"".concat(N," arrow-component arr--author-intro-card")+" ":"")+p("".concat(k," ").concat(A," ").concat(y),or)},e.createElement("div",{className:p("wrapper ".concat(y),or)},e.createElement("div",{className:"author-intro-m_introduction-card__1kdGt"},x&&j?null:e.createElement("h2",{className:p("author-name ".concat(y),or)},w),m&&b&&e.createElement("div",{"data-test-id":"author-bio",className:p("author-description ".concat(y),or)},b,x&&e.createElement("div",{className:"author-intro-m_fade-out__1EBqd",style:{backgroundImage:"linear-gradient(to right, transparent, ".concat(f,")")}})),e.createElement("div",{className:"author-intro-m_social-wrapper__1F9jD"},e.createElement("div",{className:"author-intro-m_social-connect-wrapper__2B0QA"},v&&E&&e.createElement(e.Fragment,null,"smallCircle"!==u&&e.createElement("div",{className:p("connect ".concat(y),or)},"Connect :"),Object.entries(E).map((function(t,r){return t.length>0&&t[1]&&t[1].url?e.createElement("a",{"data-test-id":"social-link",href:t[1].url,key:"".concat(t,"-").concat(r),rel:"noopener noreferrer",target:"_blank",className:"author-intro-m_social-share__f5EpE"},function(t){switch(t){case"twitter":return e.createElement(kt,null);case"facebook":return e.createElement(jt,null);case"youtube":return e.createElement(rr,null);case"linkedin":return e.createElement(Nt,null);case"whatsapp":return e.createElement(At,{color:"#4AC959"});case"instagram":return e.createElement(nr,null);case"pinterest":return e.createElement(ar,null)}}(t[0])):null})))),!x&&e.createElement(i,{template:tr,fullUrl:ft,title:w,theme:f,iconType:"plain-svg"}))),e.createElement("div",{className:"author-intro-m_author-image__2jRxy"},e.createElement(wt,{author:a,template:u}),x&&j&&e.createElement("h2",{className:p("author-name ".concat(y),or)},w))))};ir.propTypes={data:n.shape({name:n.string,bio:n.string,social:n.object}),config:n.shape({theme:n.string,enableBio:n.bool,enableSocialLinks:n.bool,borderSupport:n.bool}),template:n.string};export{ir as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import t,{useContext as e,createContext as r}from"react";import n from"prop-types";import o from"react-timeago";import{Link as a,ResponsiveImage as i}from"@quintype/components";import{connect as u}from"react-redux";var c="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function s(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function l(t){var e={exports:{}};return t(e,e.exports),e.exports}var f=l((function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r={attributeNames:{styleName:"className"},generateScopedName:"[path]___[name]__[local]___[hash:base64:5]",handleMissingStyleName:"throw"};e.default=r})),h=s(l((function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r,n=(r=f)&&r.__esModule?r:{default:r};var o=function(t,e){if("throw"===e)throw new Error(t);return"warn"===e&&console.warn(t),null};e.default=function(t,e,r){var a=Object.keys(e),i=r||{},u=i.handleMissingStyleName,c=void 0===u?n.default.handleMissingStyleName:u,s=i.autoResolveMultipleImports,l=void 0===s?n.default.autoResolveMultipleImports:s;return t?t.split(" ").filter((function(t){return t})).map((function(t){if(function(t){return-1!==t.indexOf(".")}(t))return function(t,e,r){var a=t.split("."),i=a[0],u=a[1],c=r||n.default.handleMissingStyleName;return u?e[i]?e[i][u]?e[i][u]:o("CSS module does not exist: "+u,c):o("CSS module import does not exist: "+i,c):o("Invalid style name: "+t,c)}(t,e,c);if(0===a.length)throw new Error("Cannot use styleName attribute for style name '"+t+"' without importing at least one stylesheet.");if(a.length>1){if(!l)throw new Error("Cannot use anonymous style name '"+t+"' with more than one stylesheet import without setting 'autoResolveMultipleImports' to true.");return function(t,e,r){var a=r||n.default.handleMissingStyleName,i=Object.keys(e).map((function(r){return e[r][t]&&r})).filter((function(t){return t}));if(i.length>1)throw new Error('Cannot resolve styleName "'+t+'" because it is present in multiple imports:\n\n\t'+i.join("\n\t")+'\n\nYou can resolve this by using a named import, e.g:\n\n\timport foo from "'+i[0]+'";\n\t<div styleName="foo.'+t+'" />\n\n');return 0===i.length?o("Could not resolve the styleName '"+t+"'.",a):e[i[0]][t]}(t,e,c)}var r=e[a[0]];return r[t]?r[t]:o("Could not resolve the styleName '"+t+"'.",c)})).filter((function(t){return t})).join(" "):""}}))),m=Array.isArray,d="object"==typeof c&&c&&c.Object===Object&&c,p="object"==typeof self&&self&&self.Object===Object&&self,v=d||p||Function("return this")(),g=v.Symbol,y=Object.prototype,_=y.hasOwnProperty,b=y.toString,w=g?g.toStringTag:void 0;var x=function(t){var e=_.call(t,w),r=t[w];try{t[w]=void 0;var n=!0}catch(t){}var o=b.call(t);return n&&(e?t[w]=r:delete t[w]),o},E=Object.prototype.toString;var j=function(t){return E.call(t)},O=g?g.toStringTag:void 0;var T=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":O&&O in Object(t)?x(t):j(t)};var L=function(t){return null!=t&&"object"==typeof t};var A=function(t){return"symbol"==typeof t||L(t)&&"[object Symbol]"==T(t)},N=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,S=/^\w*$/;var I=function(t,e){if(m(t))return!1;var r=typeof t;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=t&&!A(t))||(S.test(t)||!N.test(t)||null!=e&&t in Object(e))};var z=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)};var k,R=function(t){if(!z(t))return!1;var e=T(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e},M=v["__core-js_shared__"],F=(k=/[^.]+$/.exec(M&&M.keys&&M.keys.IE_PROTO||""))?"Symbol(src)_1."+k:"";var P=function(t){return!!F&&F in t},C=Function.prototype.toString;var G=function(t){if(null!=t){try{return C.call(t)}catch(t){}try{return t+""}catch(t){}}return""},D=/^\[object .+?Constructor\]$/,U=Function.prototype,Z=Object.prototype,$=U.toString,B=Z.hasOwnProperty,Y=RegExp("^"+$.call(B).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var q=function(t){return!(!z(t)||P(t))&&(R(t)?Y:D).test(G(t))};var H=function(t,e){return null==t?void 0:t[e]};var J=function(t,e){var r=H(t,e);return q(r)?r:void 0},W=J(Object,"create");var K=function(){this.__data__=W?W(null):{},this.size=0};var V=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},X=Object.prototype.hasOwnProperty;var Q=function(t){var e=this.__data__;if(W){var r=e[t];return"__lodash_hash_undefined__"===r?void 0:r}return X.call(e,t)?e[t]:void 0},tt=Object.prototype.hasOwnProperty;var et=function(t){var e=this.__data__;return W?void 0!==e[t]:tt.call(e,t)};var rt=function(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=W&&void 0===e?"__lodash_hash_undefined__":e,this};function nt(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])}}nt.prototype.clear=K,nt.prototype.delete=V,nt.prototype.get=Q,nt.prototype.has=et,nt.prototype.set=rt;var ot=nt;var at=function(){this.__data__=[],this.size=0};var it=function(t,e){return t===e||t!=t&&e!=e};var ut=function(t,e){for(var r=t.length;r--;)if(it(t[r][0],e))return r;return-1},ct=Array.prototype.splice;var st=function(t){var e=this.__data__,r=ut(e,t);return!(r<0)&&(r==e.length-1?e.pop():ct.call(e,r,1),--this.size,!0)};var lt=function(t){var e=this.__data__,r=ut(e,t);return r<0?void 0:e[r][1]};var ft=function(t){return ut(this.__data__,t)>-1};var ht=function(t,e){var r=this.__data__,n=ut(r,t);return n<0?(++this.size,r.push([t,e])):r[n][1]=e,this};function mt(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}mt.prototype.clear=at,mt.prototype.delete=st,mt.prototype.get=lt,mt.prototype.has=ft,mt.prototype.set=ht;var dt=mt,pt=J(v,"Map");var vt=function(){this.size=0,this.__data__={hash:new ot,map:new(pt||dt),string:new ot}};var gt=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t};var yt=function(t,e){var r=t.__data__;return gt(e)?r["string"==typeof e?"string":"hash"]:r.map};var _t=function(t){var e=yt(this,t).delete(t);return this.size-=e?1:0,e};var bt=function(t){return yt(this,t).get(t)};var wt=function(t){return yt(this,t).has(t)};var xt=function(t,e){var r=yt(this,t),n=r.size;return r.set(t,e),this.size+=r.size==n?0:1,this};function 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=vt,Et.prototype.delete=_t,Et.prototype.get=bt,Et.prototype.has=wt,Et.prototype.set=xt;var jt=Et;function Ot(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var r=function(){var n=arguments,o=e?e.apply(this,n):n[0],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(Ot.Cache||jt),r}Ot.Cache=jt;var Tt=Ot;var Lt=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,At=/\\(\\)?/g,Nt=function(t){var e=Tt(t,(function(t){return 500===r.size&&r.clear(),t})),r=e.cache;return e}((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(Lt,(function(t,r,n,o){e.push(n?o.replace(At,"$1"):r||t)})),e}));var St=function(t,e){for(var r=-1,n=null==t?0:t.length,o=Array(n);++r<n;)o[r]=e(t[r],r,t);return o},It=g?g.prototype:void 0,zt=It?It.toString:void 0;var kt=function t(e){if("string"==typeof e)return e;if(m(e))return St(e,t)+"";if(A(e))return zt?zt.call(e):"";var r=e+"";return"0"==r&&1/e==-Infinity?"-0":r};var Rt=function(t){return null==t?"":kt(t)};var Mt=function(t,e){return m(t)?t:I(t,e)?[t]:Nt(Rt(t))};var Ft=function(t){if("string"==typeof t||A(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=Mt(e,t)).length;null!=t&&r<n;)t=t[Ft(e[r++])];return r&&r==n?t:void 0};var Ct=function(t,e,r){var n=null==t?void 0:Pt(t,e);return void 0===n?r:n},Gt=r(),Dt=function(){return e(Gt)};l((function(t){var e=function(t){var e,r=Object.prototype,n=r.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",i=o.asyncIterator||"@@asyncIterator",u=o.toStringTag||"@@toStringTag";function c(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(t){c=function(t,e,r){return t[e]=r}}function s(t,e,r,n){var o=e&&e.prototype instanceof v?e:v,a=Object.create(o.prototype),i=new A(n||[]);return a._invoke=function(t,e,r){var n=f;return function(o,a){if(n===m)throw new Error("Generator is already running");if(n===d){if("throw"===o)throw a;return S()}for(r.method=o,r.arg=a;;){var i=r.delegate;if(i){var u=O(i,r);if(u){if(u===p)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(n===f)throw n=d,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n=m;var c=l(t,e,r);if("normal"===c.type){if(n=r.done?d:h,c.arg===p)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n=d,r.method="throw",r.arg=c.arg)}}}(t,r,i),a}function l(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=s;var f="suspendedStart",h="suspendedYield",m="executing",d="completed",p={};function v(){}function g(){}function y(){}var _={};c(_,a,(function(){return this}));var b=Object.getPrototypeOf,w=b&&b(b(N([])));w&&w!==r&&n.call(w,a)&&(_=w);var x=y.prototype=v.prototype=Object.create(_);function E(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function j(t,e){function r(o,a,i,u){var c=l(t[o],t,a);if("throw"!==c.type){var s=c.arg,f=s.value;return f&&"object"==typeof f&&n.call(f,"__await")?e.resolve(f.__await).then((function(t){r("next",t,i,u)}),(function(t){r("throw",t,i,u)})):e.resolve(f).then((function(t){s.value=t,i(s)}),(function(t){return r("throw",t,i,u)}))}u(c.arg)}var o;this._invoke=function(t,n){function a(){return new e((function(e,o){r(t,n,e,o)}))}return o=o?o.then(a,a):a()}}function O(t,r){var n=t.iterator[r.method];if(n===e){if(r.delegate=null,"throw"===r.method){if(t.iterator.return&&(r.method="return",r.arg=e,O(t,r),"throw"===r.method))return p;r.method="throw",r.arg=new TypeError("The iterator does not provide a 'throw' method")}return p}var o=l(n,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,p;var a=o.arg;return a?a.done?(r[t.resultName]=a.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,p):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,p)}function T(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function A(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(T,this),this.reset(!0)}function N(t){if(t){var r=t[a];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function r(){for(;++o<t.length;)if(n.call(t,o))return r.value=t[o],r.done=!1,r;return r.value=e,r.done=!0,r};return i.next=i}}return{next:S}}function S(){return{value:e,done:!0}}return g.prototype=y,c(x,"constructor",y),c(y,"constructor",g),g.displayName=c(y,u,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,y):(t.__proto__=y,c(t,u,"GeneratorFunction")),t.prototype=Object.create(x),t},t.awrap=function(t){return{__await:t}},E(j.prototype),c(j.prototype,i,(function(){return this})),t.AsyncIterator=j,t.async=function(e,r,n,o,a){void 0===a&&(a=Promise);var i=new j(s(e,r,n,o),a);return t.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},E(x),c(x,u,"Generator"),c(x,a,(function(){return this})),c(x,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=[];for(var r in t)e.push(r);return e.reverse(),function r(){for(;e.length;){var n=e.pop();if(n in t)return r.value=n,r.done=!1,r}return r.done=!0,r}},t.values=N,A.prototype={constructor:A,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(L),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function o(n,o){return u.type="throw",u.arg=t,r.next=n,o&&(r.method="next",r.arg=e),!!o}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],u=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),s=n.call(i,"finallyLoc");if(c&&s){if(this.prev<i.catchLoc)return o(i.catchLoc,!0);if(this.prev<i.finallyLoc)return o(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return o(i.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return o(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,p):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),p},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),L(r),p}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;L(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:N(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),p}},t}(t.exports);try{regeneratorRuntime=e}catch(t){"object"==typeof globalThis?globalThis.regeneratorRuntime=e:Function("r","regeneratorRuntime = r")(e)}}));var Ut=function(t,e,r,n){var o=-1,a=null==t?0:t.length;for(n&&a&&(r=t[++o]);++o<a;)r=e(r,t[o],o,t);return r};var Zt=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"}),$t=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Bt=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]","g");var Yt=function(t){return(t=Rt(t))&&t.replace($t,Zt).replace(Bt,"")},qt=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;var Ht=function(t){return t.match(qt)||[]},Jt=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;var Wt=function(t){return Jt.test(t)},Kt="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Vt="["+Kt+"]",Xt="\\d+",Qt="[\\u2700-\\u27bf]",te="[a-z\\xdf-\\xf6\\xf8-\\xff]",ee="[^\\ud800-\\udfff"+Kt+Xt+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",re="(?:\\ud83c[\\udde6-\\uddff]){2}",ne="[\\ud800-\\udbff][\\udc00-\\udfff]",oe="[A-Z\\xc0-\\xd6\\xd8-\\xde]",ae="(?:"+te+"|"+ee+")",ie="(?:"+oe+"|"+ee+")",ue="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?",ce="[\\ufe0e\\ufe0f]?"+ue+("(?:\\u200d(?:"+["[^\\ud800-\\udfff]",re,ne].join("|")+")[\\ufe0e\\ufe0f]?"+ue+")*"),se="(?:"+[Qt,re,ne].join("|")+")"+ce,le=RegExp([oe+"?"+te+"+(?:['’](?:d|ll|m|re|s|t|ve))?(?="+[Vt,oe,"$"].join("|")+")",ie+"+(?:['’](?:D|LL|M|RE|S|T|VE))?(?="+[Vt,oe+ae,"$"].join("|")+")",oe+"?"+ae+"+(?:['’](?:d|ll|m|re|s|t|ve))?",oe+"+(?:['’](?:D|LL|M|RE|S|T|VE))?","\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Xt,se].join("|"),"g");var fe=function(t){return t.match(le)||[]};var he=function(t,e,r){return t=Rt(t),void 0===(e=r?void 0:e)?Wt(t)?fe(t):Ht(t):t.match(e)||[]},me=RegExp("['’]","g");var de=function(t){return function(e){return Ut(he(Yt(e).replace(me,"")),t,"")}},pe=de((function(t,e,r){return t+(r?" ":"")+e.toUpperCase()})),ve=de((function(t,e,r){return t+(r?" ":"")+e.toLowerCase()}));function ge(t,e,r,n,o){var a,i=Ct(o,["localizedPublishTime",r])||r;return"hour"===e&&t>23||-1!==["day","week","month","year"].indexOf(e)?function(t,e,r,n){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},a=o.showTime,i=void 0!==a&&a,u=o.isTimeFirst,c=void 0!==u&&u,s=o.isUpperCase,l=void 0!==s&&s,f=o.disableMeridiem,h=void 0!==f&&f,m=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],d=new Date(n),p=d.getDate().toString().padStart(2,0),v=m[d.getMonth()],g=v;l&&(g=pe(v));var y,_=d.getFullYear(),b=o.localizedMeridiem,w=o.localizedMonths,x=o.direction,E=void 0===x?"ltr":x,j=ye(n),O=j;if(w&&(g=Ct(w,[ve(v)])||v),b){var T=j.includes("am"),L=b.am,A=void 0===L?"am":L,N=b.pm,S=void 0===N?"pm":N;O=(T?j.replace("am",A):j.replace("pm",S))||j}return"rtl"===E?(y=i?"".concat(O):"","".concat(p," ").concat(g,", ").concat(_," ").concat(y," ")):h?"".concat(g," ").concat(p,", ").concat(_):c?"".concat(O,", ").concat(p," ").concat(g," ").concat(_):(y=i?", ".concat(O):"","".concat(p," ").concat(g,", ").concat(_).concat(y))}(t,e,r,n,o):t>1?(a=Ct(o,["localizedPublishTime","".concat(e,"s")])||"".concat(e,"s"),"".concat(t," ").concat(a," ").concat(i)):(a=Ct(o,["localizedPublishTime",e])||e,"".concat(t," ").concat(a," ").concat(i," "))}function ye(t){var e=new Date(t),r=e.getHours(),n=e.getMinutes(),o=r>=12?"pm":"am";return(r=(r%=12)||12)+":"+(n=n<10?"0"+n:n)+" "+o}var _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),n=_e(r)<155?"light":"dark";return n};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 xe={"./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"}},Ee=function(e){var r=e.story,n=e.isBottom,a=e.config,i=void 0===a?{}:a,u=Dt()||{},c=Ct(u,["showTime"],!0),s=r["last-published-at"]||r["first-published-at"],l=n?"bottom-fix":"",f=we(u.theme);return t.createElement(t.Fragment,null,c&&t.createElement("div",{"data-test-id":"publish-time",className:"time arr--publish-time "+h("time ".concat(f," ").concat(l),xe)},t.createElement("div",{className:"timestamp-m_time-wrapper__3O2lM"},function(e,r){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return t.createElement(o,{date:e,formatter:function(t,e,o,a){return r(t,e,o,a,n)}})}(s,ge,i))))};Ee.propTypes={story:n.object,isBottom:n.bool,config:n.object};var je={"./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"}},Oe=function(e){var r=e.story,n=e.hideAuthorImage,o=e.isBottom,u=e.prefix,c=void 0===u?"":u,s=e.config,l=void 0===s?{}:s,f=Dt()||{},m=Ct(f,["showAuthor"],!0),d=Ct(r,["authors","0"],""),p=d["avatar-url"],v=d["avatar-s3-key"],g=d.name,y=d.slug,_=o?"bottom-fix":"",b=we(f.theme),w=Ct(l,["mountAt"],""),x=function(e){return c?t.createElement("div",{className:"arr-author-prefix "+h("prefix ".concat(b),je)},c):!n&&function(e){return p||v?t.createElement("div",{"data-test-id":"author-image",className:h("author-image ".concat(e,"-image"),je)},t.createElement("figure",null,v?t.createElement(i,{slug:v,"aspect-ratio":[1,1],defaultWidth:400,imgParams:{auto:["format","compress"]},alt:g}):t.createElement("img",{src:p}))):null}(e)};return t.createElement(t.Fragment,null,m&&t.createElement(a,{href:"".concat(w,"/author/")+y,"aria-label":"author-name",className:"author-name arr-author-name arrow-component "+h("author ".concat(_),je)},x("ltr"),t.createElement("div",{"data-test-id":"author-name",className:"author-name "+h("author-name ".concat(b),je)},g||r["author-name"]),!c&&x("rtl")))};var Te=u((function(t){return{config:Ct(t,["qt","config"],{})}}))(Oe);Oe.propTypes={story:n.object.isRequired,hideAuthorImage:n.bool,isBottom:n.bool,prefix:n.string,config:n.object},Oe.defaultProps={hideAuthorImage:!1,isBottom:!1,prefix:""};var Le={"./dot.m.css":{dark:"dot-m_dark__1Njxl",light:"dot-m_light__27IA3"}},Ae=function(e){var r=e.width,n=void 0===r?"3px":r,o=e.height,a=void 0===o?"3px":o,i=e.color,u=void 0===i?"light":i;return t.createElement("div",{className:h(u,Le)},t.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:n,height:a,viewBox:"0 0 3 3"},t.createElement("circle",{cx:"87",cy:"9",r:"1",fill:"inherit",fillRule:"nonzero",transform:"translate(-86 -8)"})))};Ae.propTypes={color:n.string,width:n.string,height:n.string};var Ne={"./divider.m.css":{dark:"divider-m_dark__26FRi",light:"divider-m_light__w-7sy"}},Se=function(e){var r=e.width,n=void 0===r?"1":r,o=e.height,a=void 0===o?"10":o,i=e.color,u=void 0===i?"light":i;return t.createElement("div",{className:h(u,Ne)},t.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:n,height:a},t.createElement("path",{fill:"inherit",d:"M0 0h1v10H0z"})))};Se.propTypes={color:n.string,width:n.string,height:n.string};var Ie={"./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"}},ze=function(e){var r=e.story,n=e.opts,o=void 0===n?{}:n,a=e.isLightTheme,i=void 0!==a&&a,u=Dt()||{},c=Ct(u,["showReadTime"])||Ct(o,["showReadTime"],!0),s=Ct(r,["read-time"],0),l=i?"light":we(u.theme);if(!c||!s)return null;var f=Ct(o,["localizedTimeToRead"])||"min read";return t.createElement(t.Fragment,null,t.createElement("div",{"data-test-id":"read-time",className:"arrow-component arr--read-time "+h("read-time-wrapper ".concat(l),Ie)},t.createElement("span",{className:"read-time-indicator read-time-m_dot-indicator__3Sqh2"},t.createElement(Ae,{color:l})),t.createElement("span",null,s," ",f)))};ze.propTypes={story:n.shape({"read-time":n.number}),opts:n.shape({showReadTime:n.bool}),isLightTheme:n.bool};var ke={"./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"}},Re=function(e){var r=e.story,n=e.separator,o=e.isBottom,a=e.hideAuthorImage,i=e.prefix,u=e.config,c=void 0===u?{}:u,s=e.isLightTheme,l=Dt()||{},f=Ct(c,["showAuthor"],Ct(l,["showAuthor"],!0)),m=Ct(l,["showTime"],!0),d=Ct(l,["showReadTime"],!0),p=o?"bottom-fix":"",v="dot"===n?"dot":"dash",g=s?"light":we(l.theme),y=function(){return m?t.createElement(t.Fragment,null,f&&t.createElement("span",{className:"arr-separator "+h("".concat(v),ke)},"divider"===n?t.createElement(Se,{color:g}):t.createElement(Ae,{color:g})),t.createElement(Ee,{story:r,config:c}),d&&t.createElement(ze,{story:r,opts:c,isLightTheme:s})):null};return t.createElement("div",{className:"arr--author-time "+h("author-time-wrapper ".concat(p),ke)},f?t.createElement(t.Fragment,null,t.createElement(Te,{story:r,isBottom:!0,hideAuthorImage:a,prefix:i}),y()):y())};Re.propTypes={story:n.object,separator:n.oneOf(["dot","divider"]),hideAuthorImage:n.bool,isBottom:n.bool,prefix:n.string,config:n.object,isLightTheme:n.bool},Re.defaultProps={separator:"dot",isBottom:!1,hideAuthorImage:!0,prefix:"",isLightTheme:!1};export{Re as AuthorWithTime};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import e,{useState as t,useEffect as r,createContext as n}from"react";import{LinkBase as a,Link as o,ResponsiveImage as i,SocialShare as l}from"@quintype/components";import c from"prop-types";import"react-timeago";import{useSelector as u}from"react-redux";var s="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function p(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function f(e){var t={exports:{}};return e(t,t.exports),t.exports}f((function(e){var t=function(e){var t,r=Object.prototype,n=r.hasOwnProperty,a="function"==typeof Symbol?Symbol:{},o=a.iterator||"@@iterator",i=a.asyncIterator||"@@asyncIterator",l=a.toStringTag||"@@toStringTag";function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,r){return e[t]=r}}function u(e,t,r,n){var a=t&&t.prototype instanceof v?t:v,o=Object.create(a.prototype),i=new C(n||[]);return o._invoke=function(e,t,r){var n=p;return function(a,o){if(n===h)throw new Error("Generator is already running");if(n===m){if("throw"===a)throw o;return A()}for(r.method=a,r.arg=o;;){var i=r.delegate;if(i){var l=j(i,r);if(l){if(l===d)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(n===p)throw n=m,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n=h;var c=s(e,t,r);if("normal"===c.type){if(n=r.done?m:f,c.arg===d)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n=m,r.method="throw",r.arg=c.arg)}}}(e,r,i),o}function s(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=u;var p="suspendedStart",f="suspendedYield",h="executing",m="completed",d={};function v(){}function g(){}function _(){}var y={};c(y,o,(function(){return this}));var w=Object.getPrototypeOf,b=w&&w(w(z([])));b&&b!==r&&n.call(b,o)&&(y=b);var E=_.prototype=v.prototype=Object.create(y);function x(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function k(e,t){function r(a,o,i,l){var c=s(e[a],e,o);if("throw"!==c.type){var u=c.arg,p=u.value;return p&&"object"==typeof p&&n.call(p,"__await")?t.resolve(p.__await).then((function(e){r("next",e,i,l)}),(function(e){r("throw",e,i,l)})):t.resolve(p).then((function(e){u.value=e,i(u)}),(function(e){return r("throw",e,i,l)}))}l(c.arg)}var a;this._invoke=function(e,n){function o(){return new t((function(t,a){r(e,n,t,a)}))}return a=a?a.then(o,o):o()}}function j(e,r){var n=e.iterator[r.method];if(n===t){if(r.delegate=null,"throw"===r.method){if(e.iterator.return&&(r.method="return",r.arg=t,j(e,r),"throw"===r.method))return d;r.method="throw",r.arg=new TypeError("The iterator does not provide a 'throw' method")}return d}var a=s(n,e.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,d;var o=a.arg;return o?o.done?(r[e.resultName]=o.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,d):o:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,d)}function O(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function N(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function C(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(O,this),this.reset(!0)}function z(e){if(e){var r=e[o];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var a=-1,i=function r(){for(;++a<e.length;)if(n.call(e,a))return r.value=e[a],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}return{next:A}}function A(){return{value:t,done:!0}}return g.prototype=_,c(E,"constructor",_),c(_,"constructor",g),g.displayName=c(_,l,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===g||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,_):(e.__proto__=_,c(e,l,"GeneratorFunction")),e.prototype=Object.create(E),e},e.awrap=function(e){return{__await:e}},x(k.prototype),c(k.prototype,i,(function(){return this})),e.AsyncIterator=k,e.async=function(t,r,n,a,o){void 0===o&&(o=Promise);var i=new k(u(t,r,n,a),o);return e.isGeneratorFunction(r)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},x(E),c(E,l,"Generator"),c(E,o,(function(){return this})),c(E,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=z,C.prototype={constructor:C,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(N),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function a(n,a){return l.type="throw",l.arg=e,r.next=n,a&&(r.method="next",r.arg=t),!!a}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],l=i.completion;if("root"===i.tryLoc)return a("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return a(i.catchLoc,!0);if(this.prev<i.finallyLoc)return a(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return a(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return a(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var o=a;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,d):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),N(r),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var a=n.arg;N(r)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:z(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),d}},e}(e.exports);try{regeneratorRuntime=t}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=t:Function("r","regeneratorRuntime = r")(t)}}));var h=Array.isArray,m="object"==typeof s&&s&&s.Object===Object&&s,d="object"==typeof self&&self&&self.Object===Object&&self,v=m||d||Function("return this")(),g=v.Symbol,_=Object.prototype,y=_.hasOwnProperty,w=_.toString,b=g?g.toStringTag:void 0;var E=function(e){var t=y.call(e,b),r=e[b];try{e[b]=void 0;var n=!0}catch(e){}var a=w.call(e);return n&&(t?e[b]=r:delete e[b]),a},x=Object.prototype.toString;var k=function(e){return x.call(e)},j=g?g.toStringTag:void 0;var O=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":j&&j in Object(e)?E(e):k(e)};var N=function(e){return null!=e&&"object"==typeof e};var C=function(e){return"symbol"==typeof e||N(e)&&"[object Symbol]"==O(e)},z=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,A=/^\w*$/;var T=function(e,t){if(h(e))return!1;var r=typeof e;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=e&&!C(e))||(A.test(e)||!z.test(e)||null!=t&&e in Object(t))};var L=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)};var S,U=function(e){if(!L(e))return!1;var t=O(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},M=v["__core-js_shared__"],P=(S=/[^.]+$/.exec(M&&M.keys&&M.keys.IE_PROTO||""))?"Symbol(src)_1."+S:"";var I=function(e){return!!P&&P in e},R=Function.prototype.toString;var D=function(e){if(null!=e){try{return R.call(e)}catch(e){}try{return e+""}catch(e){}}return""},B=/^\[object .+?Constructor\]$/,F=Function.prototype,G=Object.prototype,q=F.toString,V=G.hasOwnProperty,Z=RegExp("^"+q.call(V).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var H=function(e){return!(!L(e)||I(e))&&(U(e)?Z:B).test(D(e))};var $=function(e,t){return null==e?void 0:e[t]};var Q=function(e,t){var r=$(e,t);return H(r)?r:void 0},W=Q(Object,"create");var Y=function(){this.__data__=W?W(null):{},this.size=0};var J=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},X=Object.prototype.hasOwnProperty;var K=function(e){var t=this.__data__;if(W){var r=t[e];return"__lodash_hash_undefined__"===r?void 0:r}return X.call(t,e)?t[e]:void 0},ee=Object.prototype.hasOwnProperty;var te=function(e){var t=this.__data__;return W?void 0!==t[e]:ee.call(t,e)};var re=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=W&&void 0===t?"__lodash_hash_undefined__":t,this};function ne(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}ne.prototype.clear=Y,ne.prototype.delete=J,ne.prototype.get=K,ne.prototype.has=te,ne.prototype.set=re;var ae=ne;var oe=function(){this.__data__=[],this.size=0};var ie=function(e,t){return e===t||e!=e&&t!=t};var le=function(e,t){for(var r=e.length;r--;)if(ie(e[r][0],t))return r;return-1},ce=Array.prototype.splice;var ue=function(e){var t=this.__data__,r=le(t,e);return!(r<0)&&(r==t.length-1?t.pop():ce.call(t,r,1),--this.size,!0)};var se=function(e){var t=this.__data__,r=le(t,e);return r<0?void 0:t[r][1]};var pe=function(e){return le(this.__data__,e)>-1};var fe=function(e,t){var r=this.__data__,n=le(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this};function he(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}he.prototype.clear=oe,he.prototype.delete=ue,he.prototype.get=se,he.prototype.has=pe,he.prototype.set=fe;var me=he,de=Q(v,"Map");var ve=function(){this.size=0,this.__data__={hash:new ae,map:new(de||me),string:new ae}};var ge=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e};var _e=function(e,t){var r=e.__data__;return ge(t)?r["string"==typeof t?"string":"hash"]:r.map};var ye=function(e){var t=_e(this,e).delete(e);return this.size-=t?1:0,t};var we=function(e){return _e(this,e).get(e)};var be=function(e){return _e(this,e).has(e)};var Ee=function(e,t){var r=_e(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this};function xe(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}xe.prototype.clear=ve,xe.prototype.delete=ye,xe.prototype.get=we,xe.prototype.has=be,xe.prototype.set=Ee;var ke=xe;function je(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var r=function(){var n=arguments,a=t?t.apply(this,n):n[0],o=r.cache;if(o.has(a))return o.get(a);var i=e.apply(this,n);return r.cache=o.set(a,i)||o,i};return r.cache=new(je.Cache||ke),r}je.Cache=ke;var Oe=je;var Ne=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ce=/\\(\\)?/g,ze=function(e){var t=Oe(e,(function(e){return 500===r.size&&r.clear(),e})),r=t.cache;return t}((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(Ne,(function(e,r,n,a){t.push(n?a.replace(Ce,"$1"):r||e)})),t}));var Ae=function(e,t){for(var r=-1,n=null==e?0:e.length,a=Array(n);++r<n;)a[r]=t(e[r],r,e);return a},Te=g?g.prototype:void 0,Le=Te?Te.toString:void 0;var Se=function e(t){if("string"==typeof t)return t;if(h(t))return Ae(t,e)+"";if(C(t))return Le?Le.call(t):"";var r=t+"";return"0"==r&&1/t==-Infinity?"-0":r};var Ue=function(e){return null==e?"":Se(e)};var Me=function(e,t){return h(e)?e:T(e,t)?[e]:ze(Ue(e))};var Pe=function(e){if("string"==typeof e||C(e))return e;var t=e+"";return"0"==t&&1/e==-Infinity?"-0":t};var Ie=function(e,t){for(var r=0,n=(t=Me(t,e)).length;null!=e&&r<n;)e=e[Pe(t[r++])];return r&&r==n?e:void 0};var Re=function(e,t,r){var n=null==e?void 0:Ie(e,t);return void 0===n?r:n};var De=function(e,t,r,n){var a=-1,o=null==e?0:e.length;for(n&&o&&(r=e[++a]);++a<o;)r=t(r,e[a],a,e);return r};var Be=function(e){return function(t){return null==e?void 0:e[t]}}({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"}),Fe=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Ge=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]","g");var qe=function(e){return(e=Ue(e))&&e.replace(Fe,Be).replace(Ge,"")},Ve=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;var Ze=function(e){return e.match(Ve)||[]},He=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;var $e=function(e){return He.test(e)},Qe="\\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",We="["+Qe+"]",Ye="\\d+",Je="[\\u2700-\\u27bf]",Xe="[a-z\\xdf-\\xf6\\xf8-\\xff]",Ke="[^\\ud800-\\udfff"+Qe+Ye+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",et="(?:\\ud83c[\\udde6-\\uddff]){2}",tt="[\\ud800-\\udbff][\\udc00-\\udfff]",rt="[A-Z\\xc0-\\xd6\\xd8-\\xde]",nt="(?:"+Xe+"|"+Ke+")",at="(?:"+rt+"|"+Ke+")",ot="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?",it="[\\ufe0e\\ufe0f]?"+ot+("(?:\\u200d(?:"+["[^\\ud800-\\udfff]",et,tt].join("|")+")[\\ufe0e\\ufe0f]?"+ot+")*"),lt="(?:"+[Je,et,tt].join("|")+")"+it,ct=RegExp([rt+"?"+Xe+"+(?:['’](?:d|ll|m|re|s|t|ve))?(?="+[We,rt,"$"].join("|")+")",at+"+(?:['’](?:D|LL|M|RE|S|T|VE))?(?="+[We,rt+nt,"$"].join("|")+")",rt+"?"+nt+"+(?:['’](?:d|ll|m|re|s|t|ve))?",rt+"+(?:['’](?: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_])",Ye,lt].join("|"),"g");var ut=function(e){return e.match(ct)||[]};var st=function(e,t,r){return e=Ue(e),void 0===(t=r?void 0:t)?$e(e)?ut(e):Ze(e):e.match(t)||[]},pt=RegExp("['’]","g");var ft=function(e){return function(t){return De(st(qe(t).replace(pt,"")),e,"")}},ht=!("undefined"==typeof window||!window.document||!window.document.createElement)&&window.location.href,mt=function(e){var t=function(e){return{r:parseInt(e.slice(1,3),16),g:parseInt(e.slice(3,5),16),b:parseInt(e.slice(5,7),16)}}(e);return.299*t.r+.587*t.g+.114*t.b},dt=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"rgba(255, 255, 255, 0)",t=e.match(/^rgba?[\s+]?\([\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?/i);return t&&4===t.length?"#"+("0"+parseInt(t[1],10).toString(16)).slice(-2)+("0"+parseInt(t[2],10).toString(16)).slice(-2)+("0"+parseInt(t[3],10).toString(16)).slice(-2):e},vt={mobile:767,tablet:1024},gt=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"rgb(255,255,255)",t=/^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/.test(e),r=t?e:dt(e),n=mt(r)<155?"light":"dark";return n},_t=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.magazineSlug,n=void 0===r?"":r,a=t.isArchivePage,o=void 0!==a&&a;if(o)return"/magazine/archive/".concat(n);if(n)return"/magazine/".concat(n,"/").concat(e.slug);var i="section"===e.template;if(i){var l=Re(e,["metadata","section","0","id"],""),c=t.sections,u=c&&c.find((function(e){return e.id===l}));return u?u["section-url"]:"/"}return"/collection/".concat(e.slug)};c.shape({"sketches-host":c.string,"cdn-name":c.string,"cdn-image":c.string}),c.shape({headline:c.string,"last-published-at":c.number,subheadline:c.string});function yt(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var wt=f((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={attributeNames:{styleName:"className"},generateScopedName:"[path]___[name]__[local]___[hash:base64:5]",handleMissingStyleName:"throw"};t.default=r})),bt=p(f((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,n=(r=wt)&&r.__esModule?r:{default:r};var a=function(e,t){if("throw"===t)throw new Error(e);return"warn"===t&&console.warn(e),null};t.default=function(e,t,r){var o=Object.keys(t),i=r||{},l=i.handleMissingStyleName,c=void 0===l?n.default.handleMissingStyleName:l,u=i.autoResolveMultipleImports,s=void 0===u?n.default.autoResolveMultipleImports:u;return e?e.split(" ").filter((function(e){return e})).map((function(e){if(function(e){return-1!==e.indexOf(".")}(e))return function(e,t,r){var o=e.split("."),i=o[0],l=o[1],c=r||n.default.handleMissingStyleName;return l?t[i]?t[i][l]?t[i][l]:a("CSS module does not exist: "+l,c):a("CSS module import does not exist: "+i,c):a("Invalid style name: "+e,c)}(e,t,c);if(0===o.length)throw new Error("Cannot use styleName attribute for style name '"+e+"' without importing at least one stylesheet.");if(o.length>1){if(!s)throw new Error("Cannot use anonymous style name '"+e+"' with more than one stylesheet import without setting 'autoResolveMultipleImports' to true.");return function(e,t,r){var o=r||n.default.handleMissingStyleName,i=Object.keys(t).map((function(r){return t[r][e]&&r})).filter((function(e){return e}));if(i.length>1)throw new Error('Cannot resolve styleName "'+e+'" because it is present in multiple imports:\n\n\t'+i.join("\n\t")+'\n\nYou can resolve this by using a named import, e.g:\n\n\timport foo from "'+i[0]+'";\n\t<div styleName="foo.'+e+'" />\n\n');return 0===i.length?a("Could not resolve the styleName '"+e+"'.",o):t[i[0]][e]}(e,t,c)}var r=t[o[0]];return r[e]?r[e]:a("Could not resolve the styleName '"+e+"'.",c)})).filter((function(e){return e})).join(" "):""}}))),Et={"./load-more.m.css":{button:"load-more-m_button__1mmf1",default:"load-more-m_default__2_k4V",dark:"load-more-m_dark__3dfzb",light:"load-more-m_light__ePZQI"}};function xt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function kt(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?xt(Object(r),!0).forEach((function(t){yt(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):xt(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var jt=function(t){var r=t.config,n=void 0===r?{}:r,o=t.collection,i=t.template,l=void 0===i?"SubsequentLoadCount":i,c=t.onClick,u=t.navigate,s=t.qtConfig,p=n.showButton,f=void 0===p||p,h=n.buttonText,m=void 0===h?"Read More":h,d=n.theme,v=void 0===d?"":d,g=n.customUrlPath,_=void 0===g?"":g;if(!f)return null;var y=gt(v),w=_?"/".concat(_):function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2?arguments[2]:void 0;if(r)return r;var n=t.magazineSlug,a=void 0===n?"":n,o=t.isArchivePage;return void 0!==o&&o?"/magazine/archive/".concat(a):a?"/magazine/".concat(a,"/").concat(e.slug):e?_t(e,t):"/"}(o,kt(kt({},s),n));return"SubsequentLoadCount"===l?e.createElement("div",{onClick:c,"data-test-id":"load-more",className:"arr--button "+bt("button ".concat(y," default"),Et)},m):e.createElement(a,{href:w,navigateTo:u,"data-test-id":"load-more","aria-label":"load-more"},e.createElement("div",{className:"arr--button "+bt("button ".concat(y," default"),Et)},m))};jt.propTypes={collection:c.object,template:c.string,config:c.object,onClick:c.func,navigate:c.func,qtConfig:c.object};var Ot=function(t){var r=t.width,n=void 0===r?120:r,a=t.height,o=void 0===a?120:a;return e.createElement("svg",{width:n,height:o,viewBox:"0 0 120 120",xmlns:"http://www.w3.org/2000/svg"},e.createElement("path",{d:"M93.28 108.98c-1.055-17.675-15.47-31.678-33.098-31.678-17.708 0-32.173 14.129-33.11 31.916 9.415 6.311 20.741 9.993 32.927 9.993 12.338 0 23.795-3.774 33.28-10.23l.001-.001zM58.584 73.283c9.928 0 17.977-8.275 17.977-18.483 0-10.209-8.049-18.484-17.977-18.484-9.929 0-17.977 8.275-17.977 18.484 0 10.208 8.048 18.483 17.977 18.483zM60 120C26.863 120 0 93.137 0 60S26.863 0 60 0s60 26.863 60 60-26.863 60-60 60z",fill:"#DADADA",fillRule:"nonzero"}))};Ot.propTypes={width:c.object,height:c.object};var Nt={"./author-image.m.css":{viewports:'"../../../../assets/stylesheets/viewports.m.css"',mobile:"768px",tablet:"992px","image-container":"author-image-m_image-container__19WNd","author-image":"author-image-m_author-image__D8GMB",square:"author-image-m_square__bjK7M","small-circle":"author-image-m_small-circle__DbQMN","smaller-circle":"author-image-m_smaller-circle__2yMOZ"}},Ct=function(t,r){var n=t["avatar-url"],a=t["avatar-s3-key"],o=t.name;return e.createElement("div",{"data-test-id":"author-image",className:"arr--author-image "+bt("author-image ".concat(r),Nt)},e.createElement("figure",{className:"author-image-m_image-container__19WNd"},a?e.createElement(i,{slug:a,alt:o,defaultWidth:250,widths:[250,480],aspectRatio:[[1,1],[1,1]],sizes:"98vw",imgParams:{auto:["format","compress"]}}):n?e.createElement("img",{src:n}):e.createElement(Ot,null)))},zt=function(t){var r=t.author,n=void 0===r?{}:r,a=t.template,i=void 0===a?"":a,l=t.config,c=void 0===l?{}:l,u=n.slug,s=c.mountAt||"",p="";return"smallerCircle"===i?p="smaller-circle":"smallCircle"===i?p="small-circle":"square"===i&&(p="square"),u?e.createElement(o,{href:"".concat(s,"/author/")+u},Ct(n,p)):Ct(n,p)};function At(){return(At=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function Tt(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Lt(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,a,o=[],i=!0,l=!1;try{for(r=r.call(e);!(i=(n=r.next()).done)&&(o.push(n.value),!t||o.length!==t);i=!0);}catch(e){l=!0,a=e}finally{try{i||null==r.return||r.return()}finally{if(l)throw a}}return o}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Tt(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Tt(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}zt.propTypes={author:c.shape({"avatar-url":c.string,"avatar-s3-key":c.string,name:c.string,slug:c.string}),template:c.string};var St=function(t){var r=t.color,n=void 0===r?"#1CB7EB":r;return e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},e.createElement("path",{fill:n,d:"M19.137 8.594c.023.094.035.246.035.457 0 1.687-.41 3.316-1.23 4.887-.844 1.664-2.028 2.988-3.551 3.972-1.664 1.102-3.575 1.652-5.73 1.652-2.063 0-3.95-.55-5.661-1.652.258.024.55.035.879.035 1.71 0 3.246-.527 4.605-1.582-.82 0-1.54-.24-2.162-.72a3.673 3.673 0 01-1.283-1.811c.234.023.457.035.668.035.328 0 .656-.035.984-.105a3.724 3.724 0 01-2.109-1.301 3.542 3.542 0 01-.844-2.32v-.07a3.493 3.493 0 001.653.492 4.097 4.097 0 01-1.196-1.336 3.557 3.557 0 01-.457-1.776c0-.644.176-1.26.528-1.845a10.188 10.188 0 003.357 2.742 10.222 10.222 0 004.236 1.125 5.122 5.122 0 01-.07-.844c0-.656.164-1.272.492-1.846a3.615 3.615 0 011.336-1.353 3.568 3.568 0 011.828-.492c.54 0 1.037.105 1.494.316.457.21.862.492 1.213.844a7.479 7.479 0 002.356-.88c-.281.868-.82 1.548-1.617 2.04A7.926 7.926 0 0021 6.66a8.132 8.132 0 01-1.863 1.934z"}))};St.propTypes={color:c.string};var Ut=function(t){var r=t.color,n=void 0===r?"#3B5998":r;return e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},e.createElement("path",{fill:n,d:"M9.906 20v-7.156H7.5V10h2.406V7.75c0-1.187.334-2.11 1-2.766.667-.656 1.552-.984 2.656-.984.896 0 1.625.042 2.188.125v2.531h-1.5c-.563 0-.948.125-1.156.375-.167.209-.25.542-.25 1V10H15.5l-.375 2.844h-2.281V20H9.906z"}))};Ut.propTypes={color:c.string};var Mt=function(t){var r=t.color,n=void 0===r?"#0077B5":r;return e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},e.createElement("path",{fill:n,d:"M6.71 19H3.26V7.904h3.45V19zM5.005 6.383a1.926 1.926 0 01-1.41-.594A1.923 1.923 0 013 4.38c0-.544.198-1.014.594-1.41a1.926 1.926 0 011.41-.594c.544 0 1.014.198 1.41.594.396.396.594.866.594 1.41 0 .544-.198 1.014-.594 1.41a1.926 1.926 0 01-1.41.594zM19.625 19h-3.451v-5.418c0-.89-.074-1.534-.223-1.93-.272-.668-.804-1.002-1.596-1.002-.791 0-1.348.297-1.67.891-.247.445-.37 1.1-.37 1.967V19H8.9V7.904h3.303v1.522h.037c.248-.495.643-.903 1.188-1.225.593-.396 1.286-.594 2.078-.594 1.608 0 2.734.508 3.377 1.522.495.816.742 2.078.742 3.785V19z"}))};Mt.propTypes={color:c.string};var Pt=function(t){var r=t.color,n=void 0===r?"#4AC959":r;return e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},e.createElement("path",{fill:n,fillRule:"evenodd",d:"M18.404 5.505a9.457 9.457 0 012.02 2.96 8.587 8.587 0 01.715 3.449 8.665 8.665 0 01-1.245 4.53 9.282 9.282 0 01-3.347 3.307 8.894 8.894 0 01-4.552 1.225 8.835 8.835 0 01-4.327-1.102l-4.817 1.265 1.307-4.694a8.775 8.775 0 01-1.225-4.531 8.77 8.77 0 011.225-4.531 9.17 9.17 0 013.306-3.307 8.781 8.781 0 014.531-1.224c1.198 0 2.347.23 3.45.693a9.515 9.515 0 012.959 1.96zm-6.409 13.96c1.36 0 2.626-.34 3.797-1.02a7.75 7.75 0 002.796-2.756 7.202 7.202 0 001.04-3.775c0-.98-.203-1.933-.612-2.858a8.088 8.088 0 00-1.694-2.47 7.565 7.565 0 00-2.449-1.653 7.405 7.405 0 00-2.878-.571c-1.36 0-2.62.34-3.776 1.02a7.646 7.646 0 00-2.755 2.756 7.316 7.316 0 00-1.02 3.776c0 1.442.394 2.775 1.183 4l.164.286-.776 2.775 2.857-.734.286.163a7.275 7.275 0 003.837 1.061zm4.123-5.674l.123.082c.19.082.299.15.326.204.027.054.034.19.02.408a2.11 2.11 0 01-.163.674c-.095.231-.313.462-.653.694-.34.231-.633.36-.878.388-.38.054-.748.054-1.102 0-.408-.082-.952-.273-1.632-.572-1.388-.599-2.654-1.714-3.797-3.347l-.081-.082c-.6-.843-.898-1.62-.898-2.327 0-.707.244-1.32.734-1.837l.041-.04c.19-.19.395-.286.612-.286h.49c.11 0 .198.02.266.061.068.041.129.143.183.306l.694 1.674c.082.163.095.3.041.408a2.832 2.832 0 01-.53.735.917.917 0 00-.205.265c-.027.068 0 .143.082.225.38.707.83 1.265 1.347 1.673.381.3.952.64 1.714 1.02.218.11.381.096.49-.04.354-.408.599-.707.735-.898.054-.109.123-.163.204-.163.082 0 .177.013.286.04.218.082.735.327 1.551.735z"}))};Pt.propTypes={color:c.string};var It=function(t){var r=t.fbUrl,n=t.twitterUrl,a=t.linkedinUrl,o=t.whatsappUrl,i=t.iconColor,l=t.iconType,c=function(t,r){switch(r){case"plain-color-svg":return{facebook:e.createElement(Ut,{key:r}),twitter:e.createElement(St,{key:r}),linkedin:e.createElement(Mt,{key:r}),whatsapp:e.createElement(Pt,{key:r})};default:return{facebook:e.createElement(Ut,{color:t,key:r}),twitter:e.createElement(St,{color:t,key:r}),linkedin:e.createElement(Mt,{color:t,key:r}),whatsapp:e.createElement(Pt,{color:t,key:r})}}}(i,void 0===l?"plain-svg":l);return[{name:"facebook",url:r,icon:c.facebook,text:"Facebook",bgColor:"#4e71a8",alt:"fb icon"},{name:"twitter",url:n,icon:c.twitter,text:"Twitter",bgColor:"#1db7eb",alt:"twitter icon"},{name:"linkedin",url:a,icon:c.linkedin,text:"LinkedIn",bgColor:"#0077B5",alt:"linkedin icon"},{name:"whatsapp",url:o,icon:c.whatsapp,text:"Whatsapp",bgColor:"#25d366",alt:"whatsapp share"}]},Rt=function(t){var r=t.color,n=void 0===r?"#333":r;return e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},e.createElement("g",{fill:"none",stroke:n,strokeLinecap:"square",strokeWidth:"2"},e.createElement("path",{d:"M16.95 6.914l-9.9 9.9M16.95 17.107l-9.9-9.9"})))};Rt.propTypes={color:c.string};var Dt={"./social-share-popup.m.css":{"share-popup-wrapper":"social-share-popup-m_share-popup-wrapper__GEJqD",light:"social-share-popup-m_light__gQmxf",dark:"social-share-popup-m_dark__26Igp","share-popup":"social-share-popup-m_share-popup__QRt3l social-share-popup-m_share-popup-wrapper__GEJqD","social-wrapper":"social-share-popup-m_social-wrapper__1lPzr","social-icon-wrapper":"social-share-popup-m_social-icon-wrapper__36jyV",wrapper:"social-share-popup-m_wrapper__3Ytce","top-bar":"social-share-popup-m_top-bar__174Um","share-text":"social-share-popup-m_share-text__19E-F",close:"social-share-popup-m_close__3k-Hj","social-icon":"social-share-popup-m_social-icon__2a4nT","social-text":"social-share-popup-m_social-text__1QPXb"}},Bt=function(t){var r=t.fbUrl,n=void 0===r?"":r,a=t.twitterUrl,o=void 0===a?"":a,i=t.linkedinUrl,l=void 0===i?"":i,c=t.whatsappUrl,u=void 0===c?"":c,s=t.theme,p=t.closePopup,f=void 0===p?"":p,h=t.iconType,m=void 0===h?"plain-color-svg":h,d=gt(s),v="dark"===d?"#000000":"#ffffff",g=It({fbUrl:n,twitterUrl:o,linkedinUrl:l,whatsappUrl:u,iconColor:v,iconType:m});return e.createElement("div",{className:bt("share-popup-wrapper ".concat(d),Dt)},e.createElement("div",{className:"social-share-popup-m_share-popup__QRt3l social-share-popup-m_share-popup-wrapper__GEJqD"},e.createElement("div",{className:"social-share-popup-m_top-bar__174Um"},e.createElement("span",{className:"social-share-popup-m_share-text__19E-F"},"Share via"),e.createElement("span",{className:"social-share-popup-m_close__3k-Hj",onClick:f},e.createElement(Rt,{color:v}))),e.createElement("ul",{className:"social-share-popup-m_wrapper__3Ytce"},g.map((function(t,r){var n=t.url,a=t.icon,o=t.text,i=t.bgColor;return t.alt,function(t,r,n,a){return t?e.createElement("li",{className:"social-share-popup-m_social-icon-wrapper__36jyV","data-testid":n,key:"popup-item-".concat(a)},e.createElement("a",{href:t,target:"_blank",rel:"noopener noreferrer",className:"social-share-popup-m_social-wrapper__1lPzr","aria-label":"social-icon"},r,e.createElement("span",{className:"social-share-popup-m_social-text__1QPXb"},n))):null}(n,a,o,i)})))))};Bt.propTypes={fbUrl:c.string,twitterUrl:c.string,linkedinUrl:c.string,whatsappUrl:c.string,grey:c.string,primaryColor:c.string,closePopup:c.bool,theme:c.string,iconType:c.string};var Ft=function(t){var r=t.color,n=void 0===r?"#0D0D0D":r;return e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},e.createElement("path",{fill:n,fillRule:"evenodd",d:"M15.843 3.189c-1.478 0-2.689 1.239-2.689 2.75 0 .293.046.58.13.846L8.844 9.31a2.638 2.638 0 00-1.687-.621c-1.477 0-2.688 1.238-2.688 2.75 0 1.51 1.21 2.75 2.688 2.75.638 0 1.224-.231 1.687-.615l4.446 2.525a2.778 2.778 0 00-.136.84c0 1.51 1.211 2.75 2.689 2.75 1.477 0 2.688-1.24 2.688-2.75 0-1.512-1.21-2.75-2.688-2.75-.742 0-1.419.317-1.907.82l-4.323-2.46a2.763 2.763 0 000-2.221l4.317-2.459c.488.506 1.168.82 1.913.82 1.477 0 2.688-1.239 2.688-2.75s-1.21-2.75-2.688-2.75z"}))};Ft.propTypes={color:c.string};var Gt=function(e,t,r){var n=-1,a=e.length;t<0&&(t=-t>a?0:a+t),(r=r>a?a:r)<0&&(r+=a),a=t>r?0:r-t>>>0,t>>>=0;for(var o=Array(a);++n<a;)o[n]=e[n+t];return o};var qt=function(e,t,r){var n=e.length;return r=void 0===r?n:r,!t&&r>=n?e:Gt(e,t,r)},Vt=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");var Zt=function(e){return Vt.test(e)};var Ht=function(e){return e.split("")},$t="[\\ud800-\\udfff]",Qt="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",Wt="\\ud83c[\\udffb-\\udfff]",Yt="[^\\ud800-\\udfff]",Jt="(?:\\ud83c[\\udde6-\\uddff]){2}",Xt="[\\ud800-\\udbff][\\udc00-\\udfff]",Kt="(?:"+Qt+"|"+Wt+")"+"?",er="[\\ufe0e\\ufe0f]?"+Kt+("(?:\\u200d(?:"+[Yt,Jt,Xt].join("|")+")[\\ufe0e\\ufe0f]?"+Kt+")*"),tr="(?:"+[Yt+Qt+"?",Qt,Jt,Xt,$t].join("|")+")",rr=RegExp(Wt+"(?="+Wt+")|"+tr+er,"g");var nr=function(e){return e.match(rr)||[]};var ar=function(e){return Zt(e)?nr(e):Ht(e)};var or=function(e){return function(t){t=Ue(t);var r=Zt(t)?ar(t):void 0,n=r?r[0]:t.charAt(0),a=r?qt(r,1).join(""):t.slice(1);return n[e]()+a}}("toUpperCase");var ir=function(e){return or(Ue(e).toLowerCase())},lr=ft((function(e,t,r){return t=t.toLowerCase(),e+(r?ir(t):t)})),cr={"./social-share-template.m.css":{"desktop-view":"social-share-template-m_desktop-view__3TmkO","tablet-view":"social-share-template-m_tablet-view__kATzi",wrapper:"social-share-template-m_wrapper__1wXin",horizontal:"social-share-template-m_horizontal__1c9Kt",vertical:"social-share-template-m_vertical__VU5JY",light:"social-share-template-m_light__3-V_k",dark:"social-share-template-m_dark__1lmTM",icon:"social-share-template-m_icon__1Mnu5",open:"social-share-template-m_open__3xObA","popup-wrapper":"social-share-template-m_popup-wrapper__1Zv3e","popup-open":"social-share-template-m_popup-open__21UNo",overlay:"social-share-template-m_overlay__1nBp-","tablet-view-popup":"social-share-template-m_tablet-view-popup__1hXU9"}},ur=function(t){var r=t.name,n=t.url,a=t.icon,o=t.dataTestId;return n?e.createElement("li",{"data-testid":o,className:"social-share-template-m_icon__1Mnu5"},e.createElement("a",{href:n,target:"_blank",rel:"noopener noreferrer","data-share-icon":r,"aria-label":"share-icon"},a)):null};ur.propTypes={name:c.string,url:c.string,icon:c.node,dataTestId:c.string};var sr=function(n){var a=n.fbUrl,o=void 0===a?"":a,i=n.twitterUrl,l=void 0===i?"":i,c=n.linkedinUrl,u=void 0===c?"":c,s=n.whatsappUrl,p=void 0===s?"":s,f=n.vertical,h=void 0!==f&&f,m=n.theme,d=n.iconType,v=void 0===d?"plain-color-svg":d,g=n.open,_=void 0!==g&&g;if(!(o||l||u||p))return null;var y=gt(m),w="dark"===y?"#000000":"#ffffff",b=It({fbUrl:o,twitterUrl:l,linkedinUrl:u,whatsappUrl:p,iconColor:w,iconType:v}),E=Lt(t(_),2),x=E[0],k=E[1],j=h?"vertical":"horizontal";r((function(){return k(_)}),[_]);var O=function(){return e.createElement("li",{className:"social-share-template-m_icon__1Mnu5",key:"horizontal-0"},e.createElement("div",{onClick:N},function(t,r){return t?e.createElement(Rt,{color:r}):e.createElement(Ft,{color:r})}(x,w)))},N=function(){k(!x)},C=!x&&h?"tablet-view-popup":"";return e.createElement("div",{"data-test-id":j,className:"arr--share "+bt("".concat(y," ").concat(j," ").concat(C),cr)},e.createElement("div",{className:"social-share-template-m_desktop-view__3TmkO"},e.createElement("ul",{"data-test-id":lr(v),className:"desktop-share-wrapper "+bt("wrapper ".concat(x?"open":""),cr)},O(),b.map((function(t,r){return e.createElement(ur,At({},t,{key:t.name,dataTestId:"card-share-".concat(r)}))})))),e.createElement("div",{className:"social-share-template-m_tablet-view__kATzi"},!x&&e.createElement("ul",{className:bt("wrapper ".concat(x?"open":""),cr)},O()),x&&e.createElement(e.Fragment,null,e.createElement("div",{className:"social-share-template-m_overlay__1nBp-",onClick:N},e.createElement("div",{className:"arr--popup "+bt("popup-wrapper ".concat(x?"popup-open":""),cr)},e.createElement(Bt,{fbUrl:o,twitterUrl:l,linkedinUrl:u,whatsappUrl:p,iconType:v,theme:m,closePopup:function(){k(!1)}}))))))};sr.propTypes={fbUrl:c.string,twitterUrl:c.string,linkedinUrl:c.string,whatsappUrl:c.string,vertical:c.bool,theme:c.string,iconType:c.string,open:c.boolean};var pr=function(t){var r=t.color,n=void 0===r?"#F61C0D":r;return e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},e.createElement("path",{fill:n,fillRule:"evenodd",d:"M22.077 6.844c.18.703.308 1.77.385 3.203L22.5 12l-.038 1.953c-.077 1.458-.206 2.54-.385 3.242a2.733 2.733 0 01-.692 1.172 2.654 2.654 0 01-1.193.703c-.666.183-2.23.313-4.692.39l-3.5.04-3.5-.04c-2.462-.077-4.026-.207-4.692-.39a2.657 2.657 0 01-1.193-.703 2.733 2.733 0 01-.692-1.172c-.18-.703-.308-1.784-.385-3.242L1.5 12c0-.573.013-1.224.038-1.953.077-1.432.206-2.5.385-3.203A2.718 2.718 0 013.808 4.93c.666-.183 2.23-.313 4.692-.39L12 4.5l3.5.04c2.462.077 4.026.207 4.692.39a2.718 2.718 0 011.885 1.914zm-12.23 8.36l5.5-3.204-5.5-3.164v6.367z"}))};pr.propTypes={color:c.string};var fr=function(){return e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",width:"24",height:"24",viewBox:"0 0 24 24"},e.createElement("defs",null,e.createElement("linearGradient",{id:"prefix__b",x1:"0%",x2:"110.694%",y1:"0%",y2:"109.202%"},e.createElement("stop",{offset:"0%",stopColor:"#724AC6"}),e.createElement("stop",{offset:"53.59%",stopColor:"#E5375E"}),e.createElement("stop",{offset:"100%",stopColor:"#FC9949"})),e.createElement("path",{id:"prefix__a",d:"M9 4.636c.784 0 1.512.196 2.182.588.67.392 1.202.924 1.594 1.594.392.67.588 1.398.588 2.182s-.196 1.512-.588 2.182a4.382 4.382 0 01-1.594 1.594c-.67.392-1.398.588-2.182.588s-1.512-.196-2.182-.588a4.382 4.382 0 01-1.594-1.594c-.392-.67-.588-1.398-.588-2.182s.196-1.512.588-2.182a4.382 4.382 0 011.594-1.594A4.247 4.247 0 019 4.636zm0 7.21c.784 0 1.455-.278 2.011-.835.557-.556.835-1.227.835-2.011s-.278-1.455-.835-2.011c-.556-.557-1.227-.835-2.011-.835s-1.455.278-2.011.835c-.557.556-.835 1.227-.835 2.011s.278 1.455.835 2.011A2.739 2.739 0 009 11.846zm5.578-7.4a1.181 1.181 0 01-.322.721.923.923 0 01-.702.304.981.981 0 01-.721-.304.98.98 0 01-.304-.72c0-.279.101-.52.304-.722a.984.984 0 01.72-.303c.279 0 .52.101.722.303a.987.987 0 01.303.721zm2.884 1.025c.025.708.038 1.885.038 3.529s-.019 2.827-.057 3.548c-.038.721-.145 1.347-.322 1.878a4.425 4.425 0 01-1.044 1.651 4.429 4.429 0 01-1.65 1.044c-.532.177-1.158.284-1.879.322-.721.038-1.904.057-3.548.057-1.644 0-2.827-.019-3.548-.057-.721-.038-1.347-.158-1.878-.36a4.05 4.05 0 01-1.651-1.006 4.429 4.429 0 01-1.044-1.65c-.177-.532-.284-1.158-.322-1.879C.519 11.827.5 10.644.5 9c0-1.644.019-2.827.057-3.548.038-.721.145-1.347.322-1.878a4.425 4.425 0 011.044-1.651A4.429 4.429 0 013.573.879C4.106.702 4.732.595 5.453.557 6.173.519 7.356.5 9 .5c1.644 0 2.827.019 3.548.057.721.038 1.347.145 1.878.322a4.425 4.425 0 011.651 1.044 4.429 4.429 0 011.044 1.65c.177.532.29 1.164.341 1.898zm-1.821 8.538c.151-.43.253-1.113.303-2.05.025-.556.038-1.34.038-2.352V8.393a54.22 54.22 0 00-.038-2.353c-.05-.961-.152-1.644-.303-2.049a2.743 2.743 0 00-1.632-1.632c-.405-.151-1.088-.253-2.05-.303a55.796 55.796 0 00-2.352-.038H8.393c-1.012 0-1.796.013-2.353.038-.936.05-1.619.152-2.049.303a2.743 2.743 0 00-1.632 1.632c-.151.405-.253 1.088-.303 2.05-.025.556-.038 1.34-.038 2.352v1.214c0 1.012.013 1.796.038 2.353.05.936.152 1.619.303 2.049.33.784.873 1.328 1.632 1.632.43.151 1.113.253 2.05.303.556.025 1.34.038 2.352.038h1.214a54.22 54.22 0 002.353-.038c.961-.05 1.644-.152 2.049-.303.784-.33 1.328-.873 1.632-1.632z"})),e.createElement("use",{fill:"url(#prefix__b)",fillRule:"nonzero",transform:"translate(3 3)",xlinkHref:"#prefix__a"}))},hr=function(){return e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},e.createElement("path",{fill:"#E60023",d:"M21.5 12a9.209 9.209 0 01-1.283 4.75 9.6 9.6 0 01-3.467 3.467A9.209 9.209 0 0112 21.5c-.97 0-1.903-.14-2.796-.421.613-1.022.996-1.852 1.149-2.49l.613-2.26c.153.306.434.561.842.766.41.204.856.306 1.341.306.92 0 1.756-.262 2.51-.785.753-.524 1.34-1.232 1.761-2.126.422-.894.632-1.87.632-2.93s-.255-2.012-.766-2.854a5.318 5.318 0 00-2.107-1.973c-.893-.473-1.89-.709-2.987-.709-1.303 0-2.452.268-3.448.805a5.465 5.465 0 00-2.088 2.087 5.704 5.704 0 00-.747 2.854c0 .74.185 1.475.556 2.203.37.728.836 1.22 1.398 1.475.179.076.28.038.306-.115l.268-1.073a.266.266 0 00-.076-.268 3.048 3.048 0 01-.498-.977 3.908 3.908 0 01-.192-1.207c0-.715.173-1.385.518-2.01a3.99 3.99 0 011.474-1.514c.664-.408 1.43-.613 2.299-.613 1.174 0 2.132.364 2.873 1.092.74.728 1.11 1.654 1.11 2.777 0 1.277-.287 2.324-.861 3.141-.575.818-1.284 1.226-2.126 1.226-.486 0-.869-.172-1.15-.517-.28-.345-.37-.747-.268-1.207.051-.28.166-.689.345-1.225.281-.945.421-1.603.421-1.973 0-.37-.102-.677-.306-.92-.204-.242-.498-.363-.881-.363-.485 0-.894.217-1.226.65-.332.435-.498.984-.498 1.648 0 .562.09 1.034.268 1.417L8.591 18.13c-.154.638-.166 1.545-.039 2.72-1.813-.69-3.275-1.839-4.386-3.448C3.056 15.792 2.5 13.991 2.5 12c0-1.711.428-3.294 1.283-4.75A9.6 9.6 0 017.25 3.783 9.209 9.209 0 0112 2.5c1.711 0 3.294.428 4.75 1.283a9.6 9.6 0 013.467 3.467A9.209 9.209 0 0121.5 12z"}))},mr={"./author-intro.m.css":{viewports:'"../../../../assets/stylesheets/viewports.m.css"',mobile:"768px",tablet:"992px",connect:"author-intro-m_connect__15zIX","social-share":"author-intro-m_social-share__f5EpE","share-icon":"author-intro-m_share-icon__3gke5",default:"author-intro-m_default__1rQ_v","author-image":"author-intro-m_author-image__2jRxy","author-name":"author-intro-m_author-name__1L60a","author-description":"author-intro-m_author-description__2CTEw",wrapper:"author-intro-m_wrapper__2Bi-s","introduction-card":"author-intro-m_introduction-card__1kdGt","social-wrapper":"author-intro-m_social-wrapper__1F9jD",linkWrapper:"author-intro-m_linkWrapper__Au0nU","social-connect-wrapper":"author-intro-m_social-connect-wrapper__2B0QA",dark:"author-intro-m_dark__ALdDb",light:"author-intro-m_light__2SfeE","small-circle":"author-intro-m_small-circle__jyG1s",border:"author-intro-m_border__3Tii9","fade-out":"author-intro-m_fade-out__1EBqd"}},dr=function(t){var r,n=t.data,a=void 0===n?{}:n,o=t.config,i=void 0===o?{}:o,c=t.template,u=void 0===c?"":c,s=i.theme,p=void 0===s?"":s,f=i.enableBio,h=void 0===f||f,m=i.enableSocialLinks,d=void 0===m||m,v=i.borderSupport,g=void 0===v||v,_=gt(p),y=a.name,w=a.bio,b=a.social,E="smallCircle"===u,x=E?"small-circle":"default",k=!!(r=Re(vt,"mobile"))&&Re(global,"document.documentElement.clientWidth")<=r,j=E?"":"full-width-with-padding",O=E&&g?"border":"";return e.createElement("div",{"data-test-id":"author-intro",style:{backgroundColor:p,color:_},className:("".concat(j," arrow-component arr--author-intro-card")?"".concat(j," arrow-component arr--author-intro-card")+" ":"")+bt("".concat(x," ").concat(O," ").concat(_),mr)},e.createElement("div",{className:bt("wrapper ".concat(_),mr)},e.createElement("div",{className:"author-intro-m_introduction-card__1kdGt"},E&&k?null:e.createElement("h2",{className:bt("author-name ".concat(_),mr)},y),h&&w&&e.createElement("div",{"data-test-id":"author-bio",className:bt("author-description ".concat(_),mr)},w,E&&e.createElement("div",{className:"author-intro-m_fade-out__1EBqd",style:{backgroundImage:"linear-gradient(to right, transparent, ".concat(p,")")}})),e.createElement("div",{className:"author-intro-m_social-wrapper__1F9jD"},e.createElement("div",{className:"author-intro-m_social-connect-wrapper__2B0QA"},d&&b&&e.createElement(e.Fragment,null,"smallCircle"!==u&&e.createElement("div",{className:bt("connect ".concat(_),mr)},"Connect :"),Object.entries(b).map((function(t,r){return t.length>0&&t[1]&&t[1].url?e.createElement("a",{"data-test-id":"social-link",href:t[1].url,key:"".concat(t,"-").concat(r),rel:"noopener noreferrer",target:"_blank",className:"author-intro-m_social-share__f5EpE"},function(t){switch(t){case"twitter":return e.createElement(St,null);case"facebook":return e.createElement(Ut,null);case"youtube":return e.createElement(pr,null);case"linkedin":return e.createElement(Mt,null);case"whatsapp":return e.createElement(Pt,{color:"#4AC959"});case"instagram":return e.createElement(fr,null);case"pinterest":return e.createElement(hr,null)}}(t[0])):null})))),!E&&e.createElement(l,{template:sr,fullUrl:ht,title:y,theme:p,iconType:"plain-svg"}))),e.createElement("div",{className:"author-intro-m_author-image__2jRxy"},e.createElement(zt,{author:a,template:u}),E&&k&&e.createElement("h2",{className:bt("author-name ".concat(_),mr)},y))))};dr.propTypes={data:c.shape({name:c.string,bio:c.string,social:c.object}),config:c.shape({theme:c.string,enableBio:c.bool,enableSocialLinks:c.bool,borderSupport:c.bool}),template:c.string};var vr=n(),gr=function(t){var r=t.data,n=void 0===r?[]:r,a=t.config,i=void 0===a?{}:a,l=t.getMoreData,c=t.hideLoadmore,s=void 0!==c&&c,p=t.limit;if(n.length<1)return null;var f=i.theme,h=gt(f),m=i.mountAt||"",d=u((function(e){return Re(e,["qt","config"],{})}));return e.createElement("div",{"data-test-id":"authors-list",className:"full-width-with-padding arrow-component arr--authors-list",style:{background:f,color:h}},e.createElement("div",{className:"authors-list-m_wrapper__6y3He"},n.slice(0,p).map((function(t,r){return e.createElement(o,{href:"".concat(m,"/author/")+t.slug,key:"author-list-".concat(r),className:"authors-list-m_linkWrapper__1ZhOs","aria-label":"author"},e.createElement(dr,{data:t,config:i,template:"smallCircle"}))}))),!s&&e.createElement(jt,{onClick:l,template:"SubsequentLoadCount",config:i,qtConfig:d}))};gr.propTypes={data:c.array,config:c.shape({enableBio:c.bool,theme:c.string}),getMoreData:c.object.isRequired,limit:c.number,hideLoadmore:c.bool};var _r,yr=(_r=gr,function(t){return e.createElement(vr.Provider,{value:t.config},e.createElement(_r,t))});export{yr as default};
|
package/BigFact/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 c(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function u(t){var e={exports:{}};return t(e,e.exports),e.exports}var s=u((function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r={attributeNames:{styleName:"className"},generateScopedName:"[path]___[name]__[local]___[hash:base64:5]",handleMissingStyleName:"throw"};e.default=r})),l=c(u((function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r,n=(r=s)&&r.__esModule?r:{default:r};var o=function(t,e){if("throw"===e)throw new Error(t);return"warn"===e&&console.warn(t),null};e.default=function(t,e,r){var i=Object.keys(e),a=r||{},c=a.handleMissingStyleName,u=void 0===c?n.default.handleMissingStyleName:c,s=a.autoResolveMultipleImports,l=void 0===s?n.default.autoResolveMultipleImports:s;return t?t.split(" ").filter((function(t){return t})).map((function(t){if(function(t){return-1!==t.indexOf(".")}(t))return function(t,e,r){var i=t.split("."),a=i[0],c=i[1],u=r||n.default.handleMissingStyleName;return c?e[a]?e[a][c]?e[a][c]:o("CSS module does not exist: "+c,u):o("CSS module import does not exist: "+a,u):o("Invalid style name: "+t,u)}(t,e,u);if(0===i.length)throw new Error("Cannot use styleName attribute for style name '"+t+"' without importing at least one stylesheet.");if(i.length>1){if(!l)throw new Error("Cannot use anonymous style name '"+t+"' with more than one stylesheet import without setting 'autoResolveMultipleImports' to true.");return function(t,e,r){var i=r||n.default.handleMissingStyleName,a=Object.keys(e).map((function(r){return e[r][t]&&r})).filter((function(t){return t}));if(a.length>1)throw new Error('Cannot resolve styleName "'+t+'" because it is present in multiple imports:\n\n\t'+a.join("\n\t")+'\n\nYou can resolve this by using a named import, e.g:\n\n\timport foo from "'+a[0]+'";\n\t<div styleName="foo.'+t+'" />\n\n');return 0===a.length?o("Could not resolve the styleName '"+t+"'.",i):e[a[0]][t]}(t,e,u)}var r=e[i[0]];return r[t]?r[t]:o("Could not resolve the styleName '"+t+"'.",u)})).filter((function(t){return t})).join(" "):""}}))),f=["element","render"],h=function(e){return function(r){var n=r.element,a=r.render,c=i(r,f);return n?a&&"function"==typeof a?a(r):t.createElement(e,o({},c,{element:n})):null}};h.propTypes={StoryElement:n.element};var p=r();u((function(t){var e=function(t){var e,r=Object.prototype,n=r.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,r){return t[e]=r}}function s(t,e,r,n){var o=e&&e.prototype instanceof d?e:d,i=Object.create(o.prototype),a=new N(n||[]);return i._invoke=function(t,e,r){var n=f;return function(o,i){if(n===p)throw new Error("Generator is already running");if(n===v){if("throw"===o)throw i;return k()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var c=E(a,r);if(c){if(c===y)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(n===f)throw n=v,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n=p;var u=l(t,e,r);if("normal"===u.type){if(n=r.done?v:h,u.arg===y)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(n=v,r.method="throw",r.arg=u.arg)}}}(t,r,a),i}function l(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=s;var f="suspendedStart",h="suspendedYield",p="executing",v="completed",y={};function d(){}function g(){}function m(){}var _={};u(_,i,(function(){return this}));var b=Object.getPrototypeOf,w=b&&b(b(P([])));w&&w!==r&&n.call(w,i)&&(_=w);var j=m.prototype=d.prototype=Object.create(_);function O(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function x(t,e){function r(o,i,a,c){var u=l(t[o],t,i);if("throw"!==u.type){var s=u.arg,f=s.value;return f&&"object"==typeof f&&n.call(f,"__await")?e.resolve(f.__await).then((function(t){r("next",t,a,c)}),(function(t){r("throw",t,a,c)})):e.resolve(f).then((function(t){s.value=t,a(s)}),(function(t){return r("throw",t,a,c)}))}c(u.arg)}var o;this._invoke=function(t,n){function i(){return new e((function(e,o){r(t,n,e,o)}))}return o=o?o.then(i,i):i()}}function E(t,r){var n=t.iterator[r.method];if(n===e){if(r.delegate=null,"throw"===r.method){if(t.iterator.return&&(r.method="return",r.arg=e,E(t,r),"throw"===r.method))return y;r.method="throw",r.arg=new TypeError("The iterator does not provide a 'throw' method")}return y}var o=l(n,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,y;var i=o.arg;return i?i.done?(r[t.resultName]=i.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,y):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function S(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function N(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(S,this),this.reset(!0)}function P(t){if(t){var r=t[i];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,a=function r(){for(;++o<t.length;)if(n.call(t,o))return r.value=t[o],r.done=!1,r;return r.value=e,r.done=!0,r};return a.next=a}}return{next:k}}function k(){return{value:e,done:!0}}return g.prototype=m,u(j,"constructor",m),u(m,"constructor",g),g.displayName=u(m,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,m):(t.__proto__=m,u(t,c,"GeneratorFunction")),t.prototype=Object.create(j),t},t.awrap=function(t){return{__await:t}},O(x.prototype),u(x.prototype,a,(function(){return this})),t.AsyncIterator=x,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new x(s(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},O(j),u(j,c,"Generator"),u(j,i,(function(){return this})),u(j,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=[];for(var r in t)e.push(r);return e.reverse(),function r(){for(;e.length;){var n=e.pop();if(n in t)return r.value=n,r.done=!1,r}return r.done=!0,r}},t.values=P,N.prototype={constructor:N,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(L),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function o(n,o){return c.type="throw",c.arg=t,r.next=n,o&&(r.method="next",r.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var u=n.call(a,"catchLoc"),s=n.call(a,"finallyLoc");if(u&&s){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),L(r),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;L(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:P(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),y}},t}(t.exports);try{regeneratorRuntime=e}catch(t){"object"==typeof globalThis?globalThis.regeneratorRuntime=e:Function("r","regeneratorRuntime = r")(e)}}));var v="object"==typeof a&&a&&a.Object===Object&&a,y="object"==typeof self&&self&&self.Object===Object&&self,d=v||y||Function("return this")(),g=d.Symbol,m=Object.prototype,_=m.hasOwnProperty,b=m.toString,w=g?g.toStringTag:void 0;var j=function(t){var e=_.call(t,w),r=t[w];try{t[w]=void 0;var n=!0}catch(t){}var o=b.call(t);return n&&(e?t[w]=r:delete t[w]),o},O=Object.prototype.toString;var x=function(t){return O.call(t)},E=g?g.toStringTag:void 0;var S=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":E&&E in Object(t)?j(t):x(t)};var L=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)};var N,P=function(t){if(!L(t))return!1;var e=S(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e},k=d["__core-js_shared__"],I=(N=/[^.]+$/.exec(k&&k.keys&&k.keys.IE_PROTO||""))?"Symbol(src)_1."+N:"";var T=function(t){return!!I&&I in t},F=Function.prototype.toString;var M=function(t){if(null!=t){try{return F.call(t)}catch(t){}try{return t+""}catch(t){}}return""},z=/^\[object .+?Constructor\]$/,C=Function.prototype,G=Object.prototype,$=C.toString,A=G.hasOwnProperty,R=RegExp("^"+$.call(A).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var U=function(t){return!(!L(t)||T(t))&&(P(t)?R:z).test(M(t))};var Y=function(t,e){return null==t?void 0:t[e]};var K=function(t,e){var r=Y(t,e);return U(r)?r:void 0},X=K(Object,"create");var q=function(){this.__data__=X?X(null):{},this.size=0};var B=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},D=Object.prototype.hasOwnProperty;var H=function(t){var e=this.__data__;if(X){var r=e[t];return"__lodash_hash_undefined__"===r?void 0:r}return D.call(e,t)?e[t]:void 0},J=Object.prototype.hasOwnProperty;var Q=function(t){var e=this.__data__;return X?void 0!==e[t]:J.call(e,t)};var V=function(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=X&&void 0===e?"__lodash_hash_undefined__":e,this};function W(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}W.prototype.clear=q,W.prototype.delete=B,W.prototype.get=H,W.prototype.has=Q,W.prototype.set=V;var Z=W;var tt=function(){this.__data__=[],this.size=0};var et=function(t,e){return t===e||t!=t&&e!=e};var rt=function(t,e){for(var r=t.length;r--;)if(et(t[r][0],e))return r;return-1},nt=Array.prototype.splice;var ot=function(t){var e=this.__data__,r=rt(e,t);return!(r<0)&&(r==e.length-1?e.pop():nt.call(e,r,1),--this.size,!0)};var it=function(t){var e=this.__data__,r=rt(e,t);return r<0?void 0:e[r][1]};var at=function(t){return rt(this.__data__,t)>-1};var ct=function(t,e){var r=this.__data__,n=rt(r,t);return n<0?(++this.size,r.push([t,e])):r[n][1]=e,this};function ut(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}ut.prototype.clear=tt,ut.prototype.delete=ot,ut.prototype.get=it,ut.prototype.has=at,ut.prototype.set=ct;var st=ut,lt=K(d,"Map");var ft=function(){this.size=0,this.__data__={hash:new Z,map:new(lt||st),string:new Z}};var ht=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t};var pt=function(t,e){var r=t.__data__;return ht(e)?r["string"==typeof e?"string":"hash"]:r.map};var vt=function(t){var e=pt(this,t).delete(t);return this.size-=e?1:0,e};var yt=function(t){return pt(this,t).get(t)};var dt=function(t){return pt(this,t).has(t)};var gt=function(t,e){var r=pt(this,t),n=r.size;return r.set(t,e),this.size+=r.size==n?0:1,this};function mt(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}mt.prototype.clear=ft,mt.prototype.delete=vt,mt.prototype.get=yt,mt.prototype.has=dt,mt.prototype.set=gt;var _t=mt;function bt(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var r=function(){var n=arguments,o=e?e.apply(this,n):n[0],i=r.cache;if(i.has(o))return i.get(o);var a=t.apply(this,n);return r.cache=i.set(o,a)||i,a};return r.cache=new(bt.Cache||_t),r}bt.Cache=_t;var wt=bt;var jt=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ot=/\\(\\)?/g;(function(t){var e=wt(t,(function(t){return 500===r.size&&r.clear(),t})),r=e.cache})((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(jt,(function(t,r,n,o){e.push(n?o.replace(Ot,"$1"):r||t)})),e}));var xt=g?g.prototype:void 0;xt&&xt.toString;var Et=function(t){var e=function(t){return{r:parseInt(t.slice(1,3),16),g:parseInt(t.slice(3,5),16),b:parseInt(t.slice(5,7),16)}}(t);return.299*e.r+.587*e.g+.114*e.b},St=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"rgba(255, 255, 255, 0)",e=t.match(/^rgba?[\s+]?\([\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?/i);return e&&4===e.length?"#"+("0"+parseInt(e[1],10).toString(16)).slice(-2)+("0"+parseInt(e[2],10).toString(16)).slice(-2)+("0"+parseInt(e[3],10).toString(16)).slice(-2):t};n.shape({"sketches-host":n.string,"cdn-name":n.string,"cdn-image":n.string}),n.shape({headline:n.string,"last-published-at":n.number,subheadline:n.string});var Lt=["element","story","config"],Nt={"./big-fact.m.css":{viewports:'"../../../../../assets/stylesheets/viewports.m.css"',mobile:"768px","bigfact-element":"big-fact-m_bigfact-element__3uAwv",light:"big-fact-m_light__ha49M",content:"big-fact-m_content__1u2Ul",attribution:"big-fact-m_attribution__3XK_P",dark:"big-fact-m_dark__7a_KC"}},Pt=function(r){var n=r.element;r.story,r.config;var a=i(r,Lt),c=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"rgb(255,255,255)",e=/^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/.test(t)?t:St(t);return Et(e)<155?"light":"dark"}((e(p)||{}).theme),u=n.metadata,s=u.content,f=u.attribution;return t.createElement("div",o({"data-test-id":"bigfact"},a,{className:"arrow-component arr--bigfact-element "+l("bigfact-element ".concat(c),Nt)+" "+(a&&a.className||"")}),t.createElement("div",{className:"big-fact-m_content__1u2Ul"},s),t.createElement("div",{"data-test-id":"attribution",className:l("attribution ".concat(c),Nt)},f))};Pt.propTypes={element:n.shape({metadata:n.shape({content:n.string,attribution:n.string})}),story:n.object,config:n.object};var kt=h(Pt);export{kt as BigFact};
|
|
@@ -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 c(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function u(t){var e={exports:{}};return t(e,e.exports),e.exports}var l=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})),s=c(u((function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r,n=(r=l)&&r.__esModule?r:{default:r};var o=function(t,e){if("throw"===e)throw new Error(t);return"warn"===e&&console.warn(t),null};e.default=function(t,e,r){var i=Object.keys(e),a=r||{},c=a.handleMissingStyleName,u=void 0===c?n.default.handleMissingStyleName:c,l=a.autoResolveMultipleImports,s=void 0===l?n.default.autoResolveMultipleImports:l;return t?t.split(" ").filter((function(t){return t})).map((function(t){if(function(t){return-1!==t.indexOf(".")}(t))return function(t,e,r){var i=t.split("."),a=i[0],c=i[1],u=r||n.default.handleMissingStyleName;return c?e[a]?e[a][c]?e[a][c]:o("CSS module does not exist: "+c,u):o("CSS module import does not exist: "+a,u):o("Invalid style name: "+t,u)}(t,e,u);if(0===i.length)throw new Error("Cannot use styleName attribute for style name '"+t+"' without importing at least one stylesheet.");if(i.length>1){if(!s)throw new Error("Cannot use anonymous style name '"+t+"' with more than one stylesheet import without setting 'autoResolveMultipleImports' to true.");return function(t,e,r){var i=r||n.default.handleMissingStyleName,a=Object.keys(e).map((function(r){return e[r][t]&&r})).filter((function(t){return t}));if(a.length>1)throw new Error('Cannot resolve styleName "'+t+'" because it is present in multiple imports:\n\n\t'+a.join("\n\t")+'\n\nYou can resolve this by using a named import, e.g:\n\n\timport foo from "'+a[0]+'";\n\t<div styleName="foo.'+t+'" />\n\n');return 0===a.length?o("Could not resolve the styleName '"+t+"'.",i):e[a[0]][t]}(t,e,u)}var r=e[i[0]];return r[t]?r[t]:o("Could not resolve the styleName '"+t+"'.",u)})).filter((function(t){return t})).join(" "):""}}))),h=Array.isArray,f="object"==typeof a&&a&&a.Object===Object&&a,p="object"==typeof self&&self&&self.Object===Object&&self,d=f||p||Function("return this")(),v=d.Symbol,y=Object.prototype,m=y.hasOwnProperty,g=y.toString,_=v?v.toStringTag:void 0;var b=function(t){var e=m.call(t,_),r=t[_];try{t[_]=void 0;var n=!0}catch(t){}var o=g.call(t);return n&&(e?t[_]=r:delete t[_]),o},w=Object.prototype.toString;var k=function(t){return w.call(t)},E=v?v.toStringTag:void 0;var j=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":E&&E in Object(t)?b(t):k(t)};var x=function(t){return null!=t&&"object"==typeof t};var O=function(t){return"symbol"==typeof t||x(t)&&"[object Symbol]"==j(t)},q=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,N=/^\w*$/;var S=function(t,e){if(h(t))return!1;var r=typeof t;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=t&&!O(t))||(N.test(t)||!q.test(t)||null!=e&&t in Object(e))};var L=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)};var I,P=function(t){if(!L(t))return!1;var e=j(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e},T=d["__core-js_shared__"],C=(I=/[^.]+$/.exec(T&&T.keys&&T.keys.IE_PROTO||""))?"Symbol(src)_1."+I:"";var M=function(t){return!!C&&C in t},z=Function.prototype.toString;var F=function(t){if(null!=t){try{return z.call(t)}catch(t){}try{return t+""}catch(t){}}return""},G=/^\[object .+?Constructor\]$/,A=Function.prototype,B=Object.prototype,R=A.toString,$=B.hasOwnProperty,V=RegExp("^"+R.call($).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var H=function(t){return!(!L(t)||M(t))&&(P(t)?V:G).test(F(t))};var Q=function(t,e){return null==t?void 0:t[e]};var Z=function(t,e){var r=Q(t,e);return H(r)?r:void 0},Y=Z(Object,"create");var K=function(){this.__data__=Y?Y(null):{},this.size=0};var U=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},W=Object.prototype.hasOwnProperty;var X=function(t){var e=this.__data__;if(Y){var r=e[t];return"__lodash_hash_undefined__"===r?void 0:r}return W.call(e,t)?e[t]:void 0},D=Object.prototype.hasOwnProperty;var J=function(t){var e=this.__data__;return Y?void 0!==e[t]:D.call(e,t)};var tt=function(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=Y&&void 0===e?"__lodash_hash_undefined__":e,this};function 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=K,et.prototype.delete=U,et.prototype.get=X,et.prototype.has=J,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 ct=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 ut=function(t){var e=this.__data__,r=it(e,t);return r<0?void 0:e[r][1]};var lt=function(t){return it(this.__data__,t)>-1};var st=function(t,e){var r=this.__data__,n=it(r,t);return n<0?(++this.size,r.push([t,e])):r[n][1]=e,this};function ht(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}ht.prototype.clear=nt,ht.prototype.delete=ct,ht.prototype.get=ut,ht.prototype.has=lt,ht.prototype.set=st;var ft=ht,pt=Z(d,"Map");var dt=function(){this.size=0,this.__data__={hash:new rt,map:new(pt||ft),string:new rt}};var vt=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t};var yt=function(t,e){var r=t.__data__;return vt(e)?r["string"==typeof e?"string":"hash"]:r.map};var mt=function(t){var e=yt(this,t).delete(t);return this.size-=e?1:0,e};var gt=function(t){return yt(this,t).get(t)};var _t=function(t){return yt(this,t).has(t)};var bt=function(t,e){var r=yt(this,t),n=r.size;return r.set(t,e),this.size+=r.size==n?0:1,this};function wt(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}wt.prototype.clear=dt,wt.prototype.delete=mt,wt.prototype.get=gt,wt.prototype.has=_t,wt.prototype.set=bt;var kt=wt;function Et(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var r=function(){var n=arguments,o=e?e.apply(this,n):n[0],i=r.cache;if(i.has(o))return i.get(o);var a=t.apply(this,n);return r.cache=i.set(o,a)||i,a};return r.cache=new(Et.Cache||kt),r}Et.Cache=kt;var jt=Et;var xt=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ot=/\\(\\)?/g,qt=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(xt,(function(t,r,n,o){e.push(n?o.replace(Ot,"$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},St=v?v.prototype:void 0,Lt=St?St.toString:void 0;var It=function t(e){if("string"==typeof e)return e;if(h(e))return Nt(e,t)+"";if(O(e))return Lt?Lt.call(e):"";var r=e+"";return"0"==r&&1/e==-Infinity?"-0":r};var Pt=function(t){return null==t?"":It(t)};var Tt=function(t,e){return h(t)?t:S(t,e)?[t]:qt(Pt(t))};var Ct=function(t){if("string"==typeof t||O(t))return t;var e=t+"";return"0"==e&&1/t==-Infinity?"-0":e};var Mt=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:Mt(t,e);return void 0===n?r:n};u((function(t){var e=function(t){var e,r=Object.prototype,n=r.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,r){return t[e]=r}}function l(t,e,r,n){var o=e&&e.prototype instanceof y?e:y,i=Object.create(o.prototype),a=new N(n||[]);return i._invoke=function(t,e,r){var n=h;return function(o,i){if(n===p)throw new Error("Generator is already running");if(n===d){if("throw"===o)throw i;return L()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var c=x(a,r);if(c){if(c===v)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(n===h)throw n=d,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n=p;var u=s(t,e,r);if("normal"===u.type){if(n=r.done?d:f,u.arg===v)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(n=d,r.method="throw",r.arg=u.arg)}}}(t,r,a),i}function s(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=l;var h="suspendedStart",f="suspendedYield",p="executing",d="completed",v={};function y(){}function m(){}function g(){}var _={};u(_,i,(function(){return this}));var b=Object.getPrototypeOf,w=b&&b(b(S([])));w&&w!==r&&n.call(w,i)&&(_=w);var k=g.prototype=y.prototype=Object.create(_);function E(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function j(t,e){function r(o,i,a,c){var u=s(t[o],t,i);if("throw"!==u.type){var l=u.arg,h=l.value;return h&&"object"==typeof h&&n.call(h,"__await")?e.resolve(h.__await).then((function(t){r("next",t,a,c)}),(function(t){r("throw",t,a,c)})):e.resolve(h).then((function(t){l.value=t,a(l)}),(function(t){return r("throw",t,a,c)}))}c(u.arg)}var o;this._invoke=function(t,n){function i(){return new e((function(e,o){r(t,n,e,o)}))}return o=o?o.then(i,i):i()}}function x(t,r){var n=t.iterator[r.method];if(n===e){if(r.delegate=null,"throw"===r.method){if(t.iterator.return&&(r.method="return",r.arg=e,x(t,r),"throw"===r.method))return v;r.method="throw",r.arg=new TypeError("The iterator does not provide a 'throw' method")}return v}var o=s(n,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,v;var i=o.arg;return i?i.done?(r[t.resultName]=i.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,v):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,v)}function O(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function q(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function N(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(O,this),this.reset(!0)}function S(t){if(t){var r=t[i];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,a=function r(){for(;++o<t.length;)if(n.call(t,o))return r.value=t[o],r.done=!1,r;return r.value=e,r.done=!0,r};return a.next=a}}return{next:L}}function L(){return{value:e,done:!0}}return m.prototype=g,u(k,"constructor",g),u(g,"constructor",m),m.displayName=u(g,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===m||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,g):(t.__proto__=g,u(t,c,"GeneratorFunction")),t.prototype=Object.create(k),t},t.awrap=function(t){return{__await:t}},E(j.prototype),u(j.prototype,a,(function(){return this})),t.AsyncIterator=j,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new j(l(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},E(k),u(k,c,"Generator"),u(k,i,(function(){return this})),u(k,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=[];for(var r in t)e.push(r);return e.reverse(),function r(){for(;e.length;){var n=e.pop();if(n in t)return r.value=n,r.done=!1,r}return r.done=!0,r}},t.values=S,N.prototype={constructor:N,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(q),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function o(n,o){return c.type="throw",c.arg=t,r.next=n,o&&(r.method="next",r.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var u=n.call(a,"catchLoc"),l=n.call(a,"finallyLoc");if(u&&l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,v):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),v},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),q(r),v}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;q(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:S(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),v}},t}(t.exports);try{regeneratorRuntime=e}catch(t){"object"==typeof globalThis?globalThis.regeneratorRuntime=e:Function("r","regeneratorRuntime = r")(e)}}));var Ft=function(t){var e=function(t){return{r:parseInt(t.slice(1,3),16),g:parseInt(t.slice(3,5),16),b:parseInt(t.slice(5,7),16)}}(t);return.299*e.r+.587*e.g+.114*e.b},Gt=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},At={mobile:767,tablet:1024},Bt=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:Gt(t),n=Ft(r)<155?"light":"dark";return n},Rt=n.shape({"sketches-host":n.string,"cdn-name":n.string,"cdn-image":n.string}),$t=n.shape({headline:n.string,"last-published-at":n.number,subheadline:n.string}),Vt=["element","render"],Ht=function(e){return function(r){var n=r.element,a=r.render,c=i(r,Vt);return n?a&&"function"==typeof a?a(r):t.createElement(e,o({},c,{element:n})):null}};Ht.propTypes={StoryElement:n.element};var Qt=function(e){var r=e.width,n=e.height,o=e.color,i=e.opacity,a="light"===o&&"#ffffff",c="dark"===o&&"#0d0d0d";return t.createElement("div",{className:"icon-m_curve-wrapper__3-sLV",style:{fill:"".concat(a||c||o)}},t.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:r,height:n,viewBox:"0 0 64 64"},t.createElement("path",{fill:"inherit",opacity:i,d:"M61 44.702c0 3.465-1.13 6.214-3.39 8.248-2.261 2.033-5.125 3.05-8.59 3.05-4.07 0-7.423-1.356-10.06-4.067-2.638-2.712-3.956-6.704-3.956-11.976 0-4.971.716-9.227 2.147-12.767 1.432-3.54 3.165-6.553 5.2-9.039 2.034-2.485 4.144-4.481 6.33-5.988 2.184-1.506 4.106-2.56 5.763-3.163l5.652 7.909c-3.316 1.657-5.99 3.879-8.025 6.666-2.035 2.786-3.052 6.289-3.052 10.507.603-.15 1.432-.226 2.487-.226 3.014 0 5.35 1.054 7.007 3.163C60.171 39.13 61 41.69 61 44.702zm-33.004 0c0 3.465-1.13 6.214-3.39 8.248-2.261 2.033-5.125 3.05-8.59 3.05-4.07 0-7.423-1.356-10.06-4.067C3.319 49.22 2 45.229 2 39.957c0-4.971.716-9.227 2.148-12.767 1.431-3.54 3.164-6.553 5.199-9.039 2.034-2.485 4.144-4.481 6.33-5.988C17.86 10.657 19.782 9.603 21.44 9l5.651 7.909c-3.316 1.657-5.99 3.879-8.025 6.666-2.034 2.786-3.052 6.289-3.052 10.507.603-.15 1.432-.226 2.487-.226 3.014 0 5.35 1.054 7.008 3.163 1.657 2.11 2.486 4.67 2.486 7.683z"})))};Qt.propTypes={width:n.string,height:n.string,color:n.string,opacity:n.string};var Zt=function(e){var r=e.width,n=e.height,o=e.color,i=e.opacity,a="light"===o&&"#ffffff",c="dark"===o&&"#0d0d0d";return t.createElement("div",{className:"icon-m_edge-wrapper__xUOdp",style:{fill:"".concat(a||c||o)}},t.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:r,height:n,viewBox:"0 0 64 64"},t.createElement("path",{fill:"inherit",opacity:i,d:"M16.858 29.836v4.727H28V60H4V29.836c0-9.6 2.606-16.727 7.746-21.187C15.3 5.564 19.8 4 25.122 4v13.627c-2.888 0-8.264 0-8.264 12.209zm40.264-12.21V4c-5.32 0-9.82 1.564-13.376 4.65C38.606 13.108 36 20.236 36 29.835V60h24V34.563H48.857v-4.727c0-12.21 5.377-12.21 8.265-12.21z"})))};Zt.propTypes={width:n.string,height:n.string,color:n.string,opacity:n.string};var Yt=r(),Kt=["element","template","css","story","config","render"],Ut={"./block-quote.m.css":{viewports:'"../../../../../assets/stylesheets/viewports.m.css"',mobile:"768px","blockquote-withBackground":"block-quote-m_blockquote-withBackground__1yW-u",icon:"block-quote-m_icon__m-EIZ","icon-border":"block-quote-m_icon-border__2xQQY",blockquote:"block-quote-m_blockquote__HPVh0","blockquote-default":"block-quote-m_blockquote-default__fZ8a1","blockquote-withBorder":"block-quote-m_blockquote-withBorder__1GVQL",border:"block-quote-m_border__1ZTPR",content:"block-quote-m_content__xpMqX",wrapper:"block-quote-m_wrapper__2KEhw",attribution:"block-quote-m_attribution__2m4s2","quote-wrapper":"block-quote-m_quote-wrapper__83bEy",dark:"block-quote-m_dark__HaZuG",light:"block-quote-m_light__1QrNc"}},Wt=function(e,r,n,o){var i,a=!!(i=zt(At,"mobile"))&&zt(global,"document.documentElement.clientWidth")<=i?"48px":"64px";return"withBackground"===r?"edgeIcon"===e?t.createElement(Zt,{width:a,height:a,color:o,opacity:".4"}):t.createElement(Qt,{width:a,height:a,color:o,opacity:".4"}):"withBackground"!==r?"edgeIcon"===e?t.createElement(Zt,{width:a,height:a,color:n}):t.createElement(Qt,{width:a,height:a,color:n}):void 0},Xt=function(r){var n=r.element,a=r.template,c=r.css,u=void 0===c?{}:c;r.story,r.config,r.render;var l=i(r,Kt),h=zt(n,["metadata"]),f=h.content,p=h.attribution;if(!f)return null;var d=u.blockQuoteColor,v=u.backgroundShade,y=u.iconType,m=a?"blockquote-".concat(a):"blockquote",g="withBackground"===a,_=g?Bt(v):"",b=g&&v?{backgroundColor:v}:{},w=e(Yt)||{},k=Bt(g?b.backgroundColor:w.theme);return t.createElement("div",o({"data-test-id":"blockquote",style:b},l,{className:"arrow-component arr--block-quote "+s("".concat(m," ").concat(_),Ut)+" "+(l&&l.className||"")}),t.createElement("div",{className:"block-quote-m_quote-wrapper__83bEy"},"withBorder"===a?t.createElement("div",{className:"block-quote-m_icon-border__2xQQY"},t.createElement("div",{className:"block-quote-m_icon__m-EIZ"},Wt(y,a,d,_)),t.createElement("div",{className:"block-quote-m_border__1ZTPR",style:d&&{backgroundColor:d}})):t.createElement("div",{className:"block-quote-m_icon__m-EIZ"},Wt(y,a,d,_)),t.createElement("div",{className:"block-quote-m_wrapper__2KEhw",style:d&&{borderColor:d}},t.createElement("div",{dangerouslySetInnerHTML:{__html:f},className:s("content ".concat(k),Ut)}),t.createElement("div",{dangerouslySetInnerHTML:{__html:p},className:s("attribution ".concat(k),Ut)}))))};Xt.propTypes={element:n.shape({metadata:n.shape({content:n.string,attribution:n.string})}),template:n.string,story:$t,config:Rt,render:n.func,css:n.object};var Dt=Ht(Xt);export{Dt as BlockQuote,Xt as BlockQuoteBase};
|
package/Blurb/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import t,{useContext as e,createContext as r,useState as n,useEffect as o}from"react";import i from"prop-types";import"react-timeago";function a(){return(a=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t}).apply(this,arguments)}function u(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function c(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i=[],a=!0,u=!1;try{for(r=r.call(t);!(a=(n=r.next()).done)&&(i.push(n.value),!e||i.length!==e);a=!0);}catch(t){u=!0,o=t}finally{try{a||null==r.return||r.return()}finally{if(u)throw o}}return i}}(t,e)||function(t,e){if(t){if("string"==typeof t)return u(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?u(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r,n,o={},i=Object.keys(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||(o[r]=t[r]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}var s="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function f(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function h(t){var e={exports:{}};return t(e,e.exports),e.exports}var p=h((function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r={attributeNames:{styleName:"className"},generateScopedName:"[path]___[name]__[local]___[hash:base64:5]",handleMissingStyleName:"throw"};e.default=r})),v=f(h((function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r,n=(r=p)&&r.__esModule?r:{default:r};var o=function(t,e){if("throw"===e)throw new Error(t);return"warn"===e&&console.warn(t),null};e.default=function(t,e,r){var i=Object.keys(e),a=r||{},u=a.handleMissingStyleName,c=void 0===u?n.default.handleMissingStyleName:u,l=a.autoResolveMultipleImports,s=void 0===l?n.default.autoResolveMultipleImports:l;return t?t.split(" ").filter((function(t){return t})).map((function(t){if(function(t){return-1!==t.indexOf(".")}(t))return function(t,e,r){var i=t.split("."),a=i[0],u=i[1],c=r||n.default.handleMissingStyleName;return u?e[a]?e[a][u]?e[a][u]:o("CSS module does not exist: "+u,c):o("CSS module import does not exist: "+a,c):o("Invalid style name: "+t,c)}(t,e,c);if(0===i.length)throw new Error("Cannot use styleName attribute for style name '"+t+"' without importing at least one stylesheet.");if(i.length>1){if(!s)throw new Error("Cannot use anonymous style name '"+t+"' with more than one stylesheet import without setting 'autoResolveMultipleImports' to true.");return function(t,e,r){var i=r||n.default.handleMissingStyleName,a=Object.keys(e).map((function(r){return e[r][t]&&r})).filter((function(t){return t}));if(a.length>1)throw new Error('Cannot resolve styleName "'+t+'" because it is present in multiple imports:\n\n\t'+a.join("\n\t")+'\n\nYou can resolve this by using a named import, e.g:\n\n\timport foo from "'+a[0]+'";\n\t<div styleName="foo.'+t+'" />\n\n');return 0===a.length?o("Could not resolve the styleName '"+t+"'.",i):e[a[0]][t]}(t,e,c)}var r=e[i[0]];return r[t]?r[t]:o("Could not resolve the styleName '"+t+"'.",c)})).filter((function(t){return t})).join(" "):""}}))),d=["element","render"],y=function(e){return function(r){var n=r.element,o=r.render,i=l(r,d);return n?o&&"function"==typeof o?o(r):t.createElement(e,a({},i,{element:n})):null}};y.propTypes={StoryElement:i.element},h((function(t){var e=function(t){var e,r=Object.prototype,n=r.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",u=o.toStringTag||"@@toStringTag";function c(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(t){c=function(t,e,r){return t[e]=r}}function l(t,e,r,n){var o=e&&e.prototype instanceof y?e:y,i=Object.create(o.prototype),a=new N(n||[]);return i._invoke=function(t,e,r){var n=f;return function(o,i){if(n===p)throw new Error("Generator is already running");if(n===v){if("throw"===o)throw i;return I()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var u=E(a,r);if(u){if(u===d)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(n===f)throw n=v,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n=p;var c=s(t,e,r);if("normal"===c.type){if(n=r.done?v:h,c.arg===d)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n=v,r.method="throw",r.arg=c.arg)}}}(t,r,a),i}function s(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=l;var f="suspendedStart",h="suspendedYield",p="executing",v="completed",d={};function y(){}function g(){}function m(){}var b={};c(b,i,(function(){return this}));var _=Object.getPrototypeOf,w=_&&_(_(k([])));w&&w!==r&&n.call(w,i)&&(b=w);var j=m.prototype=y.prototype=Object.create(b);function O(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function x(t,e){function r(o,i,a,u){var c=s(t[o],t,i);if("throw"!==c.type){var l=c.arg,f=l.value;return f&&"object"==typeof f&&n.call(f,"__await")?e.resolve(f.__await).then((function(t){r("next",t,a,u)}),(function(t){r("throw",t,a,u)})):e.resolve(f).then((function(t){l.value=t,a(l)}),(function(t){return r("throw",t,a,u)}))}u(c.arg)}var o;this._invoke=function(t,n){function i(){return new e((function(e,o){r(t,n,e,o)}))}return o=o?o.then(i,i):i()}}function E(t,r){var n=t.iterator[r.method];if(n===e){if(r.delegate=null,"throw"===r.method){if(t.iterator.return&&(r.method="return",r.arg=e,E(t,r),"throw"===r.method))return d;r.method="throw",r.arg=new TypeError("The iterator does not provide a 'throw' method")}return d}var o=s(n,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,d;var i=o.arg;return i?i.done?(r[t.resultName]=i.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,d):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,d)}function S(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function N(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(S,this),this.reset(!0)}function k(t){if(t){var r=t[i];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,a=function r(){for(;++o<t.length;)if(n.call(t,o))return r.value=t[o],r.done=!1,r;return r.value=e,r.done=!0,r};return a.next=a}}return{next:I}}function I(){return{value:e,done:!0}}return g.prototype=m,c(j,"constructor",m),c(m,"constructor",g),g.displayName=c(m,u,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,m):(t.__proto__=m,c(t,u,"GeneratorFunction")),t.prototype=Object.create(j),t},t.awrap=function(t){return{__await:t}},O(x.prototype),c(x.prototype,a,(function(){return this})),t.AsyncIterator=x,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new x(l(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},O(j),c(j,u,"Generator"),c(j,i,(function(){return this})),c(j,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=[];for(var r in t)e.push(r);return e.reverse(),function r(){for(;e.length;){var n=e.pop();if(n in t)return r.value=n,r.done=!1,r}return r.done=!0,r}},t.values=k,N.prototype={constructor:N,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(L),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function o(n,o){return u.type="throw",u.arg=t,r.next=n,o&&(r.method="next",r.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],u=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=n.call(a,"catchLoc"),l=n.call(a,"finallyLoc");if(c&&l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,d):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),d},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),L(r),d}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;L(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:k(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),d}},t}(t.exports);try{regeneratorRuntime=e}catch(t){"object"==typeof globalThis?globalThis.regeneratorRuntime=e:Function("r","regeneratorRuntime = r")(e)}}));var g="object"==typeof s&&s&&s.Object===Object&&s,m="object"==typeof self&&self&&self.Object===Object&&self,b=g||m||Function("return this")(),_=b.Symbol,w=Object.prototype,j=w.hasOwnProperty,O=w.toString,x=_?_.toStringTag:void 0;var E=function(t){var e=j.call(t,x),r=t[x];try{t[x]=void 0;var n=!0}catch(t){}var o=O.call(t);return n&&(e?t[x]=r:delete t[x]),o},S=Object.prototype.toString;var L=function(t){return S.call(t)},N=_?_.toStringTag:void 0;var k=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":N&&N in Object(t)?E(t):L(t)};var I=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)};var P,T=function(t){if(!I(t))return!1;var e=k(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e},M=b["__core-js_shared__"],C=(P=/[^.]+$/.exec(M&&M.keys&&M.keys.IE_PROTO||""))?"Symbol(src)_1."+P:"";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""},R=/^\[object .+?Constructor\]$/,$=Function.prototype,G=Object.prototype,B=$.toString,H=G.hasOwnProperty,Y=RegExp("^"+B.call(H).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var U=function(t){return!(!I(t)||F(t))&&(T(t)?Y:R).test(A(t))};var W=function(t,e){return null==t?void 0:t[e]};var J=function(t,e){var r=W(t,e);return U(r)?r:void 0},X=J(Object,"create");var q=function(){this.__data__=X?X(null):{},this.size=0};var D=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},K=Object.prototype.hasOwnProperty;var Q=function(t){var e=this.__data__;if(X){var r=e[t];return"__lodash_hash_undefined__"===r?void 0:r}return K.call(e,t)?e[t]:void 0},V=Object.prototype.hasOwnProperty;var Z=function(t){var e=this.__data__;return X?void 0!==e[t]:V.call(e,t)};var tt=function(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=X&&void 0===e?"__lodash_hash_undefined__":e,this};function et(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}et.prototype.clear=q,et.prototype.delete=D,et.prototype.get=Q,et.prototype.has=Z,et.prototype.set=tt;var rt=et;var nt=function(){this.__data__=[],this.size=0};var ot=function(t,e){return t===e||t!=t&&e!=e};var it=function(t,e){for(var r=t.length;r--;)if(ot(t[r][0],e))return r;return-1},at=Array.prototype.splice;var ut=function(t){var e=this.__data__,r=it(e,t);return!(r<0)&&(r==e.length-1?e.pop():at.call(e,r,1),--this.size,!0)};var ct=function(t){var e=this.__data__,r=it(e,t);return r<0?void 0:e[r][1]};var lt=function(t){return it(this.__data__,t)>-1};var st=function(t,e){var r=this.__data__,n=it(r,t);return n<0?(++this.size,r.push([t,e])):r[n][1]=e,this};function ft(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}ft.prototype.clear=nt,ft.prototype.delete=ut,ft.prototype.get=ct,ft.prototype.has=lt,ft.prototype.set=st;var ht=ft,pt=J(b,"Map");var vt=function(){this.size=0,this.__data__={hash:new rt,map:new(pt||ht),string:new rt}};var dt=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t};var yt=function(t,e){var r=t.__data__;return dt(e)?r["string"==typeof e?"string":"hash"]:r.map};var gt=function(t){var e=yt(this,t).delete(t);return this.size-=e?1:0,e};var mt=function(t){return yt(this,t).get(t)};var bt=function(t){return yt(this,t).has(t)};var _t=function(t,e){var r=yt(this,t),n=r.size;return r.set(t,e),this.size+=r.size==n?0:1,this};function wt(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}wt.prototype.clear=vt,wt.prototype.delete=gt,wt.prototype.get=mt,wt.prototype.has=bt,wt.prototype.set=_t;var jt=wt;function Ot(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var r=function(){var n=arguments,o=e?e.apply(this,n):n[0],i=r.cache;if(i.has(o))return i.get(o);var a=t.apply(this,n);return r.cache=i.set(o,a)||i,a};return r.cache=new(Ot.Cache||jt),r}Ot.Cache=jt;var xt=Ot;var Et=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,St=/\\(\\)?/g;(function(t){var e=xt(t,(function(t){return 500===r.size&&r.clear(),t})),r=e.cache})((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(Et,(function(t,r,n,o){e.push(n?o.replace(St,"$1"):r||t)})),e}));var Lt=_?_.prototype:void 0;Lt&&Lt.toString;var Nt=function(t){var e=function(t){return{r:parseInt(t.slice(1,3),16),g:parseInt(t.slice(3,5),16),b:parseInt(t.slice(5,7),16)}}(t);return.299*e.r+.587*e.g+.114*e.b},kt=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"rgba(255, 255, 255, 0)",e=t.match(/^rgba?[\s+]?\([\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?/i);return e&&4===e.length?"#"+("0"+parseInt(e[1],10).toString(16)).slice(-2)+("0"+parseInt(e[2],10).toString(16)).slice(-2)+("0"+parseInt(e[3],10).toString(16)).slice(-2):t},It=i.shape({"sketches-host":i.string,"cdn-name":i.string,"cdn-image":i.string}),Pt=i.shape({headline:i.string,"last-published-at":i.number,subheadline:i.string}),Tt=r(),Mt=["element","template","opts","css","story","config","render"],Ct={"./blurb.m.css":{viewports:'"../../../../../assets/stylesheets/viewports.m.css"',mobile:"768px",blurb:"blurb-m_blurb__3pXi5","blurb-default":"blurb-m_blurb-default__JR86y","blurb-withBorder":"blurb-m_blurb-withBorder__SjW--",dark:"blurb-m_dark__1eErz",light:"blurb-m_light__OBWiH"}},Ft=function(r){var i=r.element,u=r.template,s=void 0===u?"":u,f=r.opts,h=void 0===f?{}:f,p=r.css,d=void 0===p?{}:p;r.story,r.config,r.render;var y=l(r,Mt),g=i.text,m=d.borderColor,b="withBorder"===s?{border:"solid 2px ".concat(m)}:{borderLeft:"solid 2px ".concat(m)},_=c(n(b),2),w=_[0],j=_[1];if(!g)return null;o((function(){var t=document.getElementsByTagName("HTML");t&&t.length&&"rtl"===t[0].dir.toLowerCase()&&"withBorder"!==s&&j({borderRight:"solid 2px ".concat(m)})}),[]);var O=h.isExternalLink,x=(void 0===O||O)&&function(t){var e=t,r=t.match(/(<a).*?(>)/g);return r&&r.forEach((function(t){/target=/g.test(t)||(e=e.replace(t,"<a aria-label='content' target='_blank'".concat(t.substring(2))))})),e}(g)||g,E=s?"blurb-".concat(s):"blurb",S=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"rgb(255,255,255)",e=/^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/.test(t)?t:kt(t);return Nt(e)<155?"light":"dark"}((e(Tt)||{}).theme);return t.createElement("div",a({"data-test-id":"blurb",style:m&&w,dangerouslySetInnerHTML:{__html:x}},y,{className:"arrow-component arr-custom-style arr--blurb-element "+v("".concat(E," ").concat(S),Ct)+" "+(y&&y.className||"")}))};Ft.propTypes={element:i.shape({text:i.string}),template:i.string,opts:i.shape({isExternalLink:i.bool}),story:Pt,config:It,render:i.func,css:i.object};var zt=y(Ft);export{zt as Blurb};
|