@quintype/arrow 3.13.1-subsequentload.0 → 3.13.1-subsequentloadcount.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/AlternateCollectionFilter/styles.arrow.css +1 -0
- package/AstrologyCollection/styles.arrow.css +1 -0
- package/AuthorsList/styles.arrow.css +1 -0
- package/FourColFiveStories/styles.arrow.css +1 -0
- package/FourColPortraitStories/styles.arrow.css +1 -0
- package/FourColSixteenStories/styles.arrow.css +1 -0
- package/FourTabbedBigStorySlider/styles.arrow.css +1 -0
- package/ListComponent/styles.arrow.css +1 -0
- package/ListicleStoryTemplate/styles.arrow.css +1 -0
- package/Listicles/styles.arrow.css +1 -0
- package/LiveBlogStoryTemplate/styles.arrow.css +1 -0
- package/MagazineEditions/styles.arrow.css +1 -0
- package/MagazineHeaderCard/styles.arrow.css +1 -0
- package/MagazineWidget/styles.arrow.css +1 -0
- package/OpinionCollection/styles.arrow.css +1 -0
- package/PhotoStoryTemplate/styles.arrow.css +1 -0
- package/README.md +194 -0
- package/SixColSixStories/styles.arrow.css +1 -0
- package/TextStoryTemplate/styles.arrow.css +1 -0
- package/ThreeColFlexStories/styles.arrow.css +1 -0
- package/ThreeColTwelveStories/styles.arrow.css +1 -0
- package/TwoColFourStoryHighlight/styles.arrow.css +1 -0
- package/TwoColSixStories/styles.arrow.css +1 -0
- package/TwoColTenStoriesSidebar/styles.arrow.css +1 -0
- package/app.scss +276 -0
- package/cjs/index.js +9 -0
- package/esm/index.js +9 -0
- package/package.json +1 -1
- package/AlsoRead/index.js +0 -1
- package/AsideCollection/index.js +0 -1
- package/Attachment/index.js +0 -1
- package/Author/index.js +0 -1
- package/AuthorIntroductionCard/index.js +0 -1
- package/AuthorWithTime/index.js +0 -1
- package/BigFact/index.js +0 -1
- package/BlockQuote/index.js +0 -1
- package/Blurb/index.js +0 -1
- package/CollectionFilter/index.js +0 -1
- package/CollectionName/index.js +0 -1
- package/ElevenStories/index.js +0 -1
- package/FourColGrid/index.js +0 -1
- package/FourColTwelveStories/index.js +0 -1
- package/FourStorySlider/index.js +0 -1
- package/FourStorySliderPortrait/index.js +0 -1
- package/FullScreenSlider/index.js +0 -1
- package/HalfScreenSlider/index.js +0 -1
- package/Headline/index.js +0 -1
- package/HeroImage/index.js +0 -1
- package/Image/index.js +0 -1
- package/ImageGallery/index.js +0 -1
- package/ImageSlideshow/index.js +0 -1
- package/KeyEvents/index.js +0 -1
- package/LoadmoreButton/index.js +0 -1
- package/OneColStoryList/index.js +0 -1
- package/PageIntroductionCard/index.js +0 -1
- package/QuestionAnswer/index.js +0 -1
- package/Quote/index.js +0 -1
- package/Reference/index.js +0 -1
- package/ScrollSnap/index.js +0 -1
- package/SectionTag/index.js +0 -1
- package/SocialShareTemplate/index.js +0 -1
- package/StoryCard/index.js +0 -1
- package/StoryCollection/index.js +0 -1
- package/StoryElement/index.js +0 -1
- package/StoryElementCard/index.js +0 -1
- package/StorycardContent/index.js +0 -1
- package/Subheadline/index.js +0 -1
- package/Summary/index.js +0 -1
- package/TagIntroductionCard/index.js +0 -1
- package/Text/index.js +0 -1
- package/ThreeColFourteenStories/index.js +0 -1
- package/ThreeColGrid/index.js +0 -1
- package/ThreeColSevenStory/index.js +0 -1
- package/ThreeColSixStories/index.js +0 -1
- package/TimeStamp/index.js +0 -1
- package/TwoColFourStories/index.js +0 -1
- package/TwoColSevenStories/index.js +0 -1
- package/TwoColThreeStories/index.js +0 -1
- package/Video/index.js +0 -1
- package/VideoStoryTemplate/index.js +0 -1
package/OneColStoryList/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{Link as e,ResponsiveImage as t,ResponsiveHeroImage as r,LinkBase as o,collectionToStories as n}from"@quintype/components";import a from"lodash.get";import i,{PropTypes as l}from"prop-types";import c,{useState as s,useEffect as u,useRef as m,createContext as d,useContext as h}from"react";import{connect as f,useSelector as p,useDispatch as g}from"react-redux";import v from"react-dom";import _ from"react-timeago";import{utcToZonedTime as y,format as b}from"date-fns-tz";function w(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,o=new Array(t);r<t;r++)o[r]=e[r];return o}function E(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var o,n,a=[],i=!0,l=!1;try{for(r=r.call(e);!(i=(o=r.next()).done)&&(a.push(o.value),!t||a.length!==t);i=!0);}catch(e){l=!0,n=e}finally{try{i||null==r.return||r.return()}finally{if(l)throw n}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return w(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)?w(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var x="undefined"!=typeof window,L=function(){return Promise.resolve(x&&!(void 0!==window.IntersectionObserver)&&import("intersection-observer"))},T={root:null,rootMargin:"200px 0px 0px 0px"},z=function(e,t){e.filter((function(e){return e.isIntersecting})).forEach((function(e){e.target._onIntersect(t)}))},k=function(e){var t=e.ref,r=E(s(!1),2),o=r[0],n=r[1];return u((function(){var e=t.current;if(e)return L().then((function(e){if(x)return new window.IntersectionObserver(z,T)})).then((function(t){return t.observe(e)})),e._onIntersect=function(t){n(!0),t.unobserve(e)},function(){return e._isSubscribed=!1}}),[t]),o},C={__html:""},N="undefined"==typeof window,j=function(e){var t=e.children,r=m(null),o=k({ref:r});return u((function(){var e=r.current;if(o){var n=e.hasChildNodes()?"hydrate":"render";v[n](t,e)}}),[t,o]),N?c.createElement("div",{ref:r},t):c.createElement("div",{ref:r,suppressHydrationWarning:!0,dangerouslySetInnerHTML:C})};function S(e){return S="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},S(e)}j.propTypes={children:i.element};var O="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function I(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function M(e){var t={exports:{}};return e(t,t.exports),t.exports}M((function(e){var t=function(e){var t,r=Object.prototype,o=r.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},a=n.iterator||"@@iterator",i=n.asyncIterator||"@@asyncIterator",l=n.toStringTag||"@@toStringTag";function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,r){return e[t]=r}}function s(e,t,r,o){var n=t&&t.prototype instanceof g?t:g,a=Object.create(n.prototype),i=new C(o||[]);return a._invoke=function(e,t,r){var o=m;return function(n,a){if(o===h)throw new Error("Generator is already running");if(o===f){if("throw"===n)throw a;return j()}for(r.method=n,r.arg=a;;){var i=r.delegate;if(i){var l=T(i,r);if(l){if(l===p)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===m)throw o=f,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=h;var c=u(e,t,r);if("normal"===c.type){if(o=r.done?f:d,c.arg===p)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(o=f,r.method="throw",r.arg=c.arg)}}}(e,r,i),a}function u(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=s;var m="suspendedStart",d="suspendedYield",h="executing",f="completed",p={};function g(){}function v(){}function _(){}var y={};c(y,a,(function(){return this}));var b=Object.getPrototypeOf,w=b&&b(b(N([])));w&&w!==r&&o.call(w,a)&&(y=w);var E=_.prototype=g.prototype=Object.create(y);function x(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function L(e,t){function r(n,a,i,l){var c=u(e[n],e,a);if("throw"!==c.type){var s=c.arg,m=s.value;return m&&"object"==typeof m&&o.call(m,"__await")?t.resolve(m.__await).then((function(e){r("next",e,i,l)}),(function(e){r("throw",e,i,l)})):t.resolve(m).then((function(e){s.value=e,i(s)}),(function(e){return r("throw",e,i,l)}))}l(c.arg)}var n;this._invoke=function(e,o){function a(){return new t((function(t,n){r(e,o,t,n)}))}return n=n?n.then(a,a):a()}}function T(e,r){var o=e.iterator[r.method];if(o===t){if(r.delegate=null,"throw"===r.method){if(e.iterator.return&&(r.method="return",r.arg=t,T(e,r),"throw"===r.method))return p;r.method="throw",r.arg=new TypeError("The iterator does not provide a 'throw' method")}return p}var n=u(o,e.iterator,r.arg);if("throw"===n.type)return r.method="throw",r.arg=n.arg,r.delegate=null,p;var a=n.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,p):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,p)}function z(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function k(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function C(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(z,this),this.reset(!0)}function N(e){if(e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,i=function r(){for(;++n<e.length;)if(o.call(e,n))return r.value=e[n],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}return{next:j}}function j(){return{value:t,done:!0}}return v.prototype=_,c(E,"constructor",_),c(_,"constructor",v),v.displayName=c(_,l,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===v||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,_):(e.__proto__=_,c(e,l,"GeneratorFunction")),e.prototype=Object.create(E),e},e.awrap=function(e){return{__await:e}},x(L.prototype),c(L.prototype,i,(function(){return this})),e.AsyncIterator=L,e.async=function(t,r,o,n,a){void 0===a&&(a=Promise);var i=new L(s(t,r,o,n),a);return e.isGeneratorFunction(r)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},x(E),c(E,l,"Generator"),c(E,a,(function(){return this})),c(E,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var o=t.pop();if(o in e)return r.value=o,r.done=!1,r}return r.done=!0,r}},e.values=N,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(k),!e)for(var r in this)"t"===r.charAt(0)&&o.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function n(o,n){return l.type="throw",l.arg=e,r.next=o,n&&(r.method="next",r.arg=t),!!n}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],l=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=o.call(i,"catchLoc"),s=o.call(i,"finallyLoc");if(c&&s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&o.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var a=n;break}}a&&("break"===e||"continue"===e)&&a.tryLoc<=t&&t<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=e,i.arg=t,a?(this.method="next",this.next=a.finallyLoc,p):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),p},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),k(r),p}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var o=r.completion;if("throw"===o.type){var n=o.arg;k(r)}return n}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,o){return this.delegate={iterator:N(e),resultName:r,nextLoc:o},"next"===this.method&&(this.arg=t),p}},e}(e.exports);try{regeneratorRuntime=t}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=t:Function("r","regeneratorRuntime = r")(t)}}));var A=Array.isArray,R="object"==typeof O&&O&&O.Object===Object&&O,H="object"==typeof self&&self&&self.Object===Object&&self,B=R||H||Function("return this")(),P=B.Symbol,F=Object.prototype,D=F.hasOwnProperty,W=F.toString,q=P?P.toStringTag:void 0;var U=function(e){var t=D.call(e,q),r=e[q];try{e[q]=void 0;var o=!0}catch(e){}var n=W.call(e);return o&&(t?e[q]=r:delete e[q]),n},G=Object.prototype.toString;var Z=function(e){return G.call(e)},V=P?P.toStringTag:void 0;var J=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":V&&V in Object(e)?U(e):Z(e)};var Y=function(e){return null!=e&&"object"==typeof e};var $=function(e){return"symbol"==typeof e||Y(e)&&"[object Symbol]"==J(e)},K=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Q=/^\w*$/;var X=function(e,t){if(A(e))return!1;var r=typeof e;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=e&&!$(e))||(Q.test(e)||!K.test(e)||null!=t&&e in Object(t))};var ee=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)};var te,re=function(e){if(!ee(e))return!1;var t=J(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},oe=B["__core-js_shared__"],ne=(te=/[^.]+$/.exec(oe&&oe.keys&&oe.keys.IE_PROTO||""))?"Symbol(src)_1."+te:"";var ae=function(e){return!!ne&&ne in e},ie=Function.prototype.toString;var le=function(e){if(null!=e){try{return ie.call(e)}catch(e){}try{return e+""}catch(e){}}return""},ce=/^\[object .+?Constructor\]$/,se=Function.prototype,ue=Object.prototype,me=se.toString,de=ue.hasOwnProperty,he=RegExp("^"+me.call(de).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var fe=function(e){return!(!ee(e)||ae(e))&&(re(e)?he:ce).test(le(e))};var pe=function(e,t){return null==e?void 0:e[t]};var ge=function(e,t){var r=pe(e,t);return fe(r)?r:void 0},ve=ge(Object,"create");var _e=function(){this.__data__=ve?ve(null):{},this.size=0};var ye=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},be=Object.prototype.hasOwnProperty;var we=function(e){var t=this.__data__;if(ve){var r=t[e];return"__lodash_hash_undefined__"===r?void 0:r}return be.call(t,e)?t[e]:void 0},Ee=Object.prototype.hasOwnProperty;var xe=function(e){var t=this.__data__;return ve?void 0!==t[e]:Ee.call(t,e)};var Le=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=ve&&void 0===t?"__lodash_hash_undefined__":t,this};function Te(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var o=e[t];this.set(o[0],o[1])}}Te.prototype.clear=_e,Te.prototype.delete=ye,Te.prototype.get=we,Te.prototype.has=xe,Te.prototype.set=Le;var ze=Te;var ke=function(){this.__data__=[],this.size=0};var Ce=function(e,t){return e===t||e!=e&&t!=t};var Ne=function(e,t){for(var r=e.length;r--;)if(Ce(e[r][0],t))return r;return-1},je=Array.prototype.splice;var Se=function(e){var t=this.__data__,r=Ne(t,e);return!(r<0)&&(r==t.length-1?t.pop():je.call(t,r,1),--this.size,!0)};var Oe=function(e){var t=this.__data__,r=Ne(t,e);return r<0?void 0:t[r][1]};var Ie=function(e){return Ne(this.__data__,e)>-1};var Me=function(e,t){var r=this.__data__,o=Ne(r,e);return o<0?(++this.size,r.push([e,t])):r[o][1]=t,this};function Ae(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var o=e[t];this.set(o[0],o[1])}}Ae.prototype.clear=ke,Ae.prototype.delete=Se,Ae.prototype.get=Oe,Ae.prototype.has=Ie,Ae.prototype.set=Me;var Re=Ae,He=ge(B,"Map");var Be=function(){this.size=0,this.__data__={hash:new ze,map:new(He||Re),string:new ze}};var Pe=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e};var Fe=function(e,t){var r=e.__data__;return Pe(t)?r["string"==typeof t?"string":"hash"]:r.map};var De=function(e){var t=Fe(this,e).delete(e);return this.size-=t?1:0,t};var We=function(e){return Fe(this,e).get(e)};var qe=function(e){return Fe(this,e).has(e)};var Ue=function(e,t){var r=Fe(this,e),o=r.size;return r.set(e,t),this.size+=r.size==o?0:1,this};function Ge(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var o=e[t];this.set(o[0],o[1])}}Ge.prototype.clear=Be,Ge.prototype.delete=De,Ge.prototype.get=We,Ge.prototype.has=qe,Ge.prototype.set=Ue;var Ze=Ge;function Ve(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var r=function(){var o=arguments,n=t?t.apply(this,o):o[0],a=r.cache;if(a.has(n))return a.get(n);var i=e.apply(this,o);return r.cache=a.set(n,i)||a,i};return r.cache=new(Ve.Cache||Ze),r}Ve.Cache=Ze;var Je=Ve;var Ye=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,$e=/\\(\\)?/g,Ke=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(Ye,(function(e,r,o,n){t.push(o?n.replace($e,"$1"):r||e)})),t}));var Qe=function(e,t){for(var r=-1,o=null==e?0:e.length,n=Array(o);++r<o;)n[r]=t(e[r],r,e);return n},Xe=P?P.prototype:void 0,et=Xe?Xe.toString:void 0;var tt=function e(t){if("string"==typeof t)return t;if(A(t))return Qe(t,e)+"";if($(t))return et?et.call(t):"";var r=t+"";return"0"==r&&1/t==-Infinity?"-0":r};var rt=function(e){return null==e?"":tt(e)};var ot=function(e,t){return A(e)?e:X(e,t)?[e]:Ke(rt(e))};var nt=function(e){if("string"==typeof e||$(e))return e;var t=e+"";return"0"==t&&1/e==-Infinity?"-0":t};var at=function(e,t){for(var r=0,o=(t=ot(t,e)).length;null!=e&&r<o;)e=e[nt(t[r++])];return r&&r==o?e:void 0};var it=function(e,t,r){var o=null==e?void 0:at(e,t);return void 0===o?r:o};var lt=function(e,t,r,o){var n=-1,a=null==e?0:e.length;for(o&&a&&(r=e[++n]);++n<a;)r=t(r,e[n],n,e);return r};var ct=function(e){return function(t){return null==e?void 0:e[t]}}({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"}),st=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,ut=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]","g");var mt=function(e){return(e=rt(e))&&e.replace(st,ct).replace(ut,"")},dt=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;var ht=function(e){return e.match(dt)||[]},ft=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;var pt=function(e){return ft.test(e)},gt="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",vt="["+gt+"]",_t="\\d+",yt="[\\u2700-\\u27bf]",bt="[a-z\\xdf-\\xf6\\xf8-\\xff]",wt="[^\\ud800-\\udfff"+gt+_t+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",Et="(?:\\ud83c[\\udde6-\\uddff]){2}",xt="[\\ud800-\\udbff][\\udc00-\\udfff]",Lt="[A-Z\\xc0-\\xd6\\xd8-\\xde]",Tt="(?:"+bt+"|"+wt+")",zt="(?:"+Lt+"|"+wt+")",kt="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?",Ct="[\\ufe0e\\ufe0f]?"+kt+("(?:\\u200d(?:"+["[^\\ud800-\\udfff]",Et,xt].join("|")+")[\\ufe0e\\ufe0f]?"+kt+")*"),Nt="(?:"+[yt,Et,xt].join("|")+")"+Ct,jt=RegExp([Lt+"?"+bt+"+(?:['’](?:d|ll|m|re|s|t|ve))?(?="+[vt,Lt,"$"].join("|")+")",zt+"+(?:['’](?:D|LL|M|RE|S|T|VE))?(?="+[vt,Lt+Tt,"$"].join("|")+")",Lt+"?"+Tt+"+(?:['’](?:d|ll|m|re|s|t|ve))?",Lt+"+(?:['’](?:D|LL|M|RE|S|T|VE))?","\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",_t,Nt].join("|"),"g");var St=function(e){return e.match(jt)||[]};var Ot=function(e,t,r){return e=rt(e),void 0===(t=r?void 0:t)?pt(e)?St(e):ht(e):e.match(t)||[]},It=RegExp("['’]","g");var Mt=function(e){return function(t){return lt(Ot(mt(t).replace(It,"")),e,"")}},At=Mt((function(e,t,r){return e+(r?" ":"")+t.toUpperCase()})),Rt=At,Ht=Mt((function(e,t,r){return e+(r?" ":"")+t.toLowerCase()})),Bt=Ht;var Pt=function(e,t,r,o){var n=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},a=n.showTime,i=void 0!==a&&a,l=n.isTimeFirst,c=void 0!==l&&l,s=n.isUpperCase,u=void 0!==s&&s,m=n.disableMeridiem,d=void 0!==m&&m,h=n.timeFormat,f=void 0===h?"12hours":h,p=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],g=new Date(o),v=g.getDate().toString().padStart(2,0),_=p[g.getMonth()],y=_;u&&(y=Rt(_));var b,w=g.getFullYear(),E=n.localizedMeridiem,x=n.localizedMonths,L=n.direction,T=void 0===L?"ltr":L,z=Dt(o,f),k=z;if(x&&(y=it(x,[Bt(_)])||_),E){var C=z.includes("am"),N=E.am,j=void 0===N?"am":N,S=E.pm,O=void 0===S?"pm":S;k=(C?z.replace("am",j):z.replace("pm",O))||z}return"rtl"===T?(b=i?"".concat(k):"","".concat(v," ").concat(y,", ").concat(w," ").concat(b," ")):d?"".concat(y," ").concat(v,", ").concat(w):c?"".concat(k,", ").concat(v," ").concat(y," ").concat(w):(b=i?", ".concat(k):"","".concat(v," ").concat(y,", ").concat(w).concat(b))};function Ft(e,t,r,o,n){var a,i=it(n,["localizedPublishTime",r])||r;return"hour"===t&&e>23||-1!==["day","week","month","year"].indexOf(t)?Pt(e,t,r,o,n):e>1?(a=it(n,["localizedPublishTime","".concat(t,"s")])||"".concat(t,"s"),"".concat(e," ").concat(a," ").concat(i)):(a=it(n,["localizedPublishTime",t])||t,"".concat(e," ").concat(a," ").concat(i," "))}function Dt(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"12hours",r=new Date(e),o=r.getHours(),n=r.getMinutes(),a=o>=12?"pm":"am",i=(o=(o%=12)||12)+":"+(n=n<10?"0"+n:n)+" "+a;return"24hours"===t?r.toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"}):i}var Wt=function(e){var t=function(e){return{r:parseInt(e.slice(1,3),16),g:parseInt(e.slice(3,5),16),b:parseInt(e.slice(5,7),16)}}(e);return.299*t.r+.587*t.g+.114*t.b},qt=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"rgba(255, 255, 255, 0)",t=e.match(/^rgba?[\s+]?\([\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?/i);return t&&4===t.length?"#"+("0"+parseInt(t[1],10).toString(16)).slice(-2)+("0"+parseInt(t[2],10).toString(16)).slice(-2)+("0"+parseInt(t[3],10).toString(16)).slice(-2):e},Ut={mobile:767,tablet:1024},Gt=function(e){var t=it(Ut,e);return!!t&&it(global,"document.documentElement.clientWidth")<=t},Zt=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"rgb(255,255,255)",t=/^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/.test(e),r=t?e:qt(e),o=Wt(r)<155?"light":"dark";return o},Vt=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.magazineSlug,o=void 0===r?"":r,n=t.isArchivePage,a=void 0!==n&&n;if(a)return"/magazine/archive/".concat(o);if(o)return"/magazine/".concat(o,"/").concat(e.slug);var i="section"===e.template;if(i){var l=it(e,["metadata","section","0","id"],""),c=t.sections,s=c&&c.find((function(e){return e.id===l}));return s?s["section-url"]:"/"}return"/collection/".concat(e.slug)};function Jt(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e["story-template"],r=void 0===t?"":t,o=e.metadata,n=void 0===o?{}:o;return"news-elsewhere"===r?it(n,["reference-url"],""):""}i.shape({"sketches-host":i.string,"cdn-name":i.string,"cdn-image":i.string}),i.shape({headline:i.string,"last-published-at":i.number,subheadline:i.string});var Yt=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return"news-elsewhere"===it(e,["story-template"])?it(e,["metadata","reference-url"],""):e.url||t},$t=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2?arguments[2]:void 0;if(r)return r;var o=t.magazineSlug,n=void 0===o?"":o,a=t.isArchivePage,i=void 0!==a&&a;return i?"/magazine/archive/".concat(n):n?"/magazine/".concat(n,"/").concat(e.slug):e?Vt(e,t):"/"},Kt=M((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})),Qt=I(M((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,o=(r=Kt)&&r.__esModule?r:{default:r};var n=function(e,t){if("throw"===t)throw new Error(e);return"warn"===t&&console.warn(e),null};t.default=function(e,t,r){var a=Object.keys(t),i=r||{},l=i.handleMissingStyleName,c=void 0===l?o.default.handleMissingStyleName:l,s=i.autoResolveMultipleImports,u=void 0===s?o.default.autoResolveMultipleImports:s;return e?e.split(" ").filter((function(e){return e})).map((function(e){if(function(e){return-1!==e.indexOf(".")}(e))return function(e,t,r){var a=e.split("."),i=a[0],l=a[1],c=r||o.default.handleMissingStyleName;return l?t[i]?t[i][l]?t[i][l]:n("CSS module does not exist: "+l,c):n("CSS module import does not exist: "+i,c):n("Invalid style name: "+e,c)}(e,t,c);if(0===a.length)throw new Error("Cannot use styleName attribute for style name '"+e+"' without importing at least one stylesheet.");if(a.length>1){if(!u)throw new Error("Cannot use anonymous style name '"+e+"' with more than one stylesheet import without setting 'autoResolveMultipleImports' to true.");return function(e,t,r){var a=r||o.default.handleMissingStyleName,i=Object.keys(t).map((function(r){return t[r][e]&&r})).filter((function(e){return e}));if(i.length>1)throw new Error('Cannot resolve styleName "'+e+'" because it is present in multiple imports:\n\n\t'+i.join("\n\t")+'\n\nYou can resolve this by using a named import, e.g:\n\n\timport foo from "'+i[0]+'";\n\t<div styleName="foo.'+e+'" />\n\n');return 0===i.length?n("Could not resolve the styleName '"+e+"'.",a):t[i[0]][e]}(e,t,c)}var r=t[a[0]];return r[e]?r[e]:n("Could not resolve the styleName '"+e+"'.",c)})).filter((function(e){return e})).join(" "):""}}))),Xt=d(),er=function(){return h(Xt)},tr={"./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"}},rr=function(e){var t=e.story,r=e.isBottom,o=e.config,n=void 0===o?{}:o,i=er()||{},l=a(n,["showTime"],a(i,["showTime"],!0)),s=t["last-published-at"]||t["first-published-at"],u=r?"bottom-fix":"",m=Zt(i.theme);return c.createElement(c.Fragment,null,l&&c.createElement("div",{"data-test-id":"publish-time",className:"time arr--publish-time "+Qt("time ".concat(m," ").concat(u),tr)},c.createElement("div",{className:"timestamp-m_time-wrapper__3O2lM"},function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=arguments.length>3?arguments[3]:void 0,n=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null;if(n&&"story"===o){var a=n&&y(e,n),i=a&&b(a,"yyyy-MM-dd'T'HH:mm:ssXXX",{timeZone:n}),l=Pt("","","",e,r);return c.createElement("time",{dateTime:i},l)}return c.createElement(_,{date:e,formatter:function(e,o,n,a){return t(e,o,n,a,r)}})}(s,Ft,n))))};rr.propTypes={story:i.object,isBottom:i.bool,config:i.object};var or={"./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"}},nr=function(r){var o=r.story,n=r.hideAuthorImage,i=r.isBottom,l=r.prefix,s=void 0===l?"":l,u=r.config,m=void 0===u?{}:u,d=er()||{},h=a(d,["showAuthor"],!0),f=a(o,["authors","0"],""),p=f["avatar-url"],g=f["avatar-s3-key"],v=f.name,_=f.slug,y=i?"bottom-fix":"",b=Zt(d.theme),w=a(m,["mountAt"],""),E=function(e){return s?c.createElement("div",{className:"arr-author-prefix "+Qt("prefix ".concat(b),or)},s):!n&&function(e){return p||g?c.createElement("div",{"data-test-id":"author-image",className:Qt("author-image ".concat(e,"-image"),or)},c.createElement("figure",null,g?c.createElement(t,{slug:g,"aspect-ratio":[1,1],defaultWidth:400,imgParams:{auto:["format","compress"]},alt:v}):c.createElement("img",{src:p}))):null}(e)};return c.createElement(c.Fragment,null,h&&c.createElement(e,{href:"".concat(w,"/author/")+_,"aria-label":"author-name",className:"author-name arr-author-name arrow-component "+Qt("author ".concat(y),or)},E("ltr"),c.createElement("div",{"data-test-id":"author-name",className:"author-name "+Qt("author-name ".concat(b),or)},v||o["author-name"]),!s&&E("rtl")))};var ar=f((function(e){return{config:a(e,["qt","config"],{})}}))(nr);nr.propTypes={story:i.object.isRequired,hideAuthorImage:i.bool,isBottom:i.bool,prefix:i.string,config:i.object},nr.defaultProps={hideAuthorImage:!1,isBottom:!1,prefix:""};var ir={"./dot.m.css":{dark:"dot-m_dark__1Njxl",light:"dot-m_light__27IA3"}},lr=function(e){var t=e.width,r=void 0===t?"3px":t,o=e.height,n=void 0===o?"3px":o,a=e.color,i=void 0===a?"light":a;return c.createElement("div",{className:Qt(i,ir)},c.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:r,height:n,viewBox:"0 0 3 3"},c.createElement("circle",{cx:"87",cy:"9",r:"1",fill:"inherit",fillRule:"nonzero",transform:"translate(-86 -8)"})))};lr.propTypes={color:i.string,width:i.string,height:i.string};var cr={"./divider.m.css":{dark:"divider-m_dark__26FRi",light:"divider-m_light__w-7sy"}},sr=function(e){var t=e.width,r=void 0===t?"1":t,o=e.height,n=void 0===o?"10":o,a=e.color,i=void 0===a?"light":a;return c.createElement("div",{className:Qt(i,cr)},c.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:r,height:n},c.createElement("path",{fill:"inherit",d:"M0 0h1v10H0z"})))};sr.propTypes={color:i.string,width:i.string,height:i.string};var ur={"./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"}},mr=function(e){var t=e.story,r=e.opts,o=void 0===r?{}:r,n=e.isLightTheme,i=void 0!==n&&n,l=er()||{},s=a(l,["showReadTime"])||a(o,["showReadTime"],!0),u=a(t,["read-time"],0),m=i?"light":Zt(l.theme);if(!s||!u)return null;var d=a(o,["localizedTimeToRead"])||"min read";return c.createElement(c.Fragment,null,c.createElement("div",{"data-test-id":"read-time",className:"arrow-component arr--read-time "+Qt("read-time-wrapper ".concat(m),ur)},c.createElement("span",{className:"read-time-indicator read-time-m_dot-indicator__3Sqh2"},c.createElement(lr,{color:m})),c.createElement("span",null,u," ",d)))};mr.propTypes={story:i.shape({"read-time":i.number}),opts:i.shape({showReadTime:i.bool}),isLightTheme:i.bool};var dr={"./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"}},hr=function(e){var t=e.story,r=e.separator,o=e.isBottom,n=e.hideAuthorImage,i=e.prefix,l=e.config,s=void 0===l?{}:l,u=e.isLightTheme,m=er()||{},d=a(s,["showAuthor"],a(m,["showAuthor"],!0)),h=a(s,["showTime"],a(m,["showTime"],!0)),f=a(m,["showReadTime"],!0),p=o?"bottom-fix":"",g="dot"===r?"dot":"dash",v=u?"light":Zt(m.theme),_=function(){return h?c.createElement(c.Fragment,null,d&&c.createElement("span",{className:"arr-separator "+Qt("".concat(g),dr)},"divider"===r?c.createElement(sr,{color:v}):c.createElement(lr,{color:v})),c.createElement(rr,{story:t,config:s}),f&&c.createElement(mr,{story:t,opts:s,isLightTheme:u})):null};return c.createElement("div",{className:"arr--author-time "+Qt("author-time-wrapper ".concat(p),dr)},d?c.createElement(c.Fragment,null,c.createElement(ar,{story:t,isBottom:!0,hideAuthorImage:n,prefix:i}),_()):_())};hr.propTypes={story:i.object,separator:i.oneOf(["dot","divider"]),hideAuthorImage:i.bool,isBottom:i.bool,prefix:i.string,config:i.object,isLightTheme:i.bool},hr.defaultProps={separator:"dot",isBottom:!1,hideAuthorImage:!0,prefix:"",isLightTheme:!1};var fr={"./collection-name.m.css":{collection:"collection-name-m_collection__JD6sx","collection-borderLeft":"collection-name-m_collection-borderLeft__3Dznk","border-left":"collection-name-m_border-left__3_pYw","collection-borderBottomFull":"collection-name-m_collection-borderBottomFull__Dkq3K","collection-borderBottom":"collection-name-m_collection-borderBottom__2rdQM","collection-crossLine":"collection-name-m_collection-crossLine__1sIpN","border-bottom":"collection-name-m_border-bottom__1MnlV",dark:"collection-name-m_dark__nMe5H",light:"collection-name-m_light__1vFDN"}},pr=function(t){var r=t.collectionNameBorderColor,o=void 0===r?"":r,n=t.collection,i=t.config,l=t.collectionNameTemplate,s=t.headerLevel,u=t.customCollectionName,m=void 0===u?"":u,d=t.navigate,h=void 0===d||d,f=er()||{},p=a(f,["showRowTitle"],!0),g=["borderLeft","borderBottom","crossLine","borderBottomFull"].includes(l)?" collection-".concat(l):"",v=h&&n&&Vt(n,i)||"",_=m||n.name||"",y=Zt(f.theme),b="h"+s,w=qt(o),E=g.includes("collection-borderBottomFull")?"4px solid ".concat(w):"",x=Gt("mobile");return c.createElement(c.Fragment,null,p&&_&&c.createElement("div",{style:{borderBottom:E},"data-test-id":"collection-name",className:("arr--collection-name arrow-component ".concat(g)?"arr--collection-name arrow-component ".concat(g)+" ":"")+Qt("collection ".concat(y," ").concat(g),fr)},g.includes("collection-borderLeft")&&c.createElement("span",{className:"arr-collection-name-border-left collection-name-m_border-left__3_pYw",style:{color:w,fontSize:function(){if(x)switch(s){case"1":return"32px";case"2":return"24px";case"3":default:return"20px";case"4":return"18px";case"5":case"6":return"16px"}switch(s){case"1":return"40px";case"2":return"32px";case"3":default:return"24px";case"4":return"20px";case"5":return"18px";case"6":return"16px"}}()}}),v&&!v.includes(void 0)?c.createElement(e,{href:v,"aria-label":"collection-name"},c.createElement(b,null,_)):c.createElement(b,null,_),g.includes("collection-borderBottom")&&!g.includes("collection-borderBottomFull")?c.createElement("div",{className:"collection-name-m_border-bottom__1MnlV",style:{borderBottom:"4px solid ".concat(w)}}):""))};pr.propTypes={collectionNameBorderColor:l.string,collection:l.object,config:l.object,collectionNameTemplate:l.oneOf(["","borderLeft","borderBottom","crossLine","borderBottomFull"]),headerLevel:l.string,customCollectionName:l.string,navigate:l.bool},pr.defaultProps={collectionNameTemplate:"",headerLevel:"3"};var gr=f((function(e){return{config:a(e,["qt","config"],{})}}))(pr),vr=function(e){var t=e.height,r=e.width,o=e.color,n=void 0===o?"#D8D8D8":o,a=e.positionTop;return c.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:r,height:t,viewBox:"0 0 40 40",style:{position:"relative",top:a}},c.createElement("g",{fill:"none",fillRule:"evenodd",stroke:"none",strokeWidth:"1"},c.createElement("g",null,c.createElement("g",{transform:"translate(8 8)"},c.createElement("path",{d:"M0 0H24V24H0z"}),c.createElement("g",{fill:n,fillRule:"nonzero",transform:"translate(0 2)"},c.createElement("path",{d:"M21.043 19.553c0-.743-.601-1.344-1.344-1.344h-15.4a1.343 1.343 0 100 2.688h15.4c.743 0 1.344-.603 1.344-1.344zM1.598 8.673c.022 0 .042 0 .064-.003l2.131 7.713h16.411l2.132-7.713c.022 0 .041.003.063.003a1.599 1.599 0 10-1.52-1.108L17.025 9.82 12.882 2.95a1.599 1.599 0 10-1.765 0L6.976 9.82 3.121 7.565a1.599 1.599 0 10-1.523 1.107z"}))))))};vr.propTypes={height:i.string,width:i.string,color:i.string,positionTop:i.string};var _r=function(e){var t=e.height,r=e.width,o=e.color,n=void 0===o?"#D5D5D5":o,a=e.positionTop;return c.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:r,height:t,viewBox:"0 0 40 40",style:{position:"relative",top:a}},c.createElement("g",{fill:"none",fillRule:"evenodd",stroke:"none",strokeWidth:"1"},c.createElement("g",null,c.createElement("g",{transform:"translate(8 8)"},c.createElement("path",{d:"M0 0H24V24H0z"}),c.createElement("path",{fill:n,fillRule:"nonzero",d:"M12.71 4.364A6.54 6.54 0 000 6.545a6.54 6.54 0 0012.71 2.182h4.745v4.364h4.363V8.727H24V4.364H12.71zM6.544 8.727a2.181 2.181 0 110-4.362 2.181 2.181 0 010 4.362z",transform:"translate(0 5)"})))))};_r.propTypes={height:i.string,width:i.string,color:i.string,positionTop:i.string};var yr=function(e){var t=e.height,r=e.width,o=e.color,n=void 0===o?"#D5D5D5":o,a=e.positionTop;return c.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:r,height:t,viewBox:"0 0 40 40",style:{position:"relative",top:a}},c.createElement("g",{fill:"none",fillRule:"evenodd",stroke:"none",strokeWidth:"1"},c.createElement("g",null,c.createElement("g",{transform:"translate(8 8)"},c.createElement("path",{d:"M0 0H24V24H0z"}),c.createElement("g",{fill:n,fillRule:"nonzero",transform:"translate(3)"},c.createElement("path",{d:"M15.692 9h-.747V6c0-3.31-2.681-6-5.978-6C5.67 0 2.989 2.69 2.989 6v3h-.747A2.249 2.249 0 000 11.25v10.5A2.249 2.249 0 002.242 24h13.45a2.249 2.249 0 002.242-2.25v-10.5A2.249 2.249 0 0015.692 9zM4.982 6c0-2.206 1.787-4 3.985-4s3.985 1.794 3.985 4v3h-7.97V6z"}))))))};yr.propTypes={height:i.string,width:i.string,color:i.string,positionTop:i.string};var br=function(e){var t=e.width,r=e.height,o=e.color,n=void 0===o?"#D5D5D5":o,a=e.positionTop,i=void 0===a?"":a;return c.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:r,viewBox:"0 0 40 40",style:{position:"relative",top:i}},c.createElement("g",{fill:"none",fillRule:"evenodd",stroke:"none",strokeWidth:"1"},c.createElement("g",null,c.createElement("path",{fill:n,d:"M20 26L12.946577 29.7082039 14.2936609 21.854102 8.5873218 16.2917961 16.4732885 15.145898 20 8 23.5267115 15.145898 31.4126782 16.2917961 25.7063391 21.854102 27.053423 29.7082039z"}))))};br.propTypes={height:i.string,width:i.string,color:i.string,positionTop:i.string};var wr=function(e){var t=e.width,r=e.height,o=e.color,n=e.iconType,a=e.positionTop;switch(n){case"crown":return c.createElement(vr,{width:t,height:r,color:o,positionTop:a});case"lock":return c.createElement(yr,{width:t,height:r,color:o,positionTop:a});case"key":return c.createElement(_r,{width:t,height:r,color:o,positionTop:a});default:return c.createElement(br,{width:t,height:r,color:o,positionTop:a})}};function Er(){return c.createElement("svg",{className:"live-icon",xmlns:"http://www.w3.org/2000/svg",width:"25",height:"24",viewBox:"0 0 25 24"},c.createElement("path",{fill:"#ff5858",d:"M12 18a6 6 0 110-12 6 6 0 010 12zm0 2.5a8.5 8.5 0 110-17 8.5 8.5 0 010 17zm0-1a7.5 7.5 0 100-15 7.5 7.5 0 000 15z"}))}wr.propTypes={width:i.string,height:i.string,color:i.string,iconType:i.string,positionTop:i.string};var xr={"./headline.m.css":{wrapper:"headline-m_wrapper__3nUmh",headline:"headline-m_headline__3_NhV",dark:"headline-m_dark__en3hW",light:"headline-m_light__3lKJB"}},Lr=function(t){var r=t.story,o=t.headerLevel,n=t.premiumStoryIconConfig,i=void 0===n?{}:n,l=t.isLink,s=er()||{},u=i.iconColor,m=void 0===u?"#F7B500":u,d=i.iconStyle,h=void 0===d?"star":d,f=i.enablePremiumStoryIcon,p=void 0!==f&&f,g=i.showLiveIcon,v=void 0!==g&&g,_=a(r,["alternative","home","default","headline"]),y=p&&"subscription"===a(r,["access"]),b=_||r.headline,w="h"+o,E=Zt(s.theme),x=y?"wrapper":"",L="24px",T=v&&"live-blog"===r["story-template"]&&!a(r,["metadata","is-closed"],!1);return c.createElement("div",{"data-test-id":"headline",className:"arrow-component arr--headline "+Qt(x,xr)},y&&c.createElement(wr,{width:L,height:L,color:m,iconType:h,positionTop:function(){switch(parseInt(o)){case 1:return"-2px";case 2:return"2px";case 3:return"4px";case 4:return"5px";default:return"6px"}}()}),l?c.createElement(e,{href:Yt(r,"/".concat(r.slug)),externalLink:Jt(r),"aria-label":"headline"},c.createElement(w,{className:Qt("headline ".concat(E),xr)},T&&c.createElement(Er,null),b)):c.createElement(w,{className:Qt("headline ".concat(E),xr)},T&&c.createElement(Er,null),b))};Lr.propTypes={story:i.object.isRequired,headerLevel:i.string,premiumStoryIconConfig:i.shape({iconColor:i.string,iconType:i.string,enablePremiumStoryIcon:i.bool}),isLink:i.bool},Lr.defaultProps={headerLevel:"6",isLink:!0};var Tr=function(e){var t=e.width,r=void 0===t?40:t,o=e.height,n=void 0===o?30:o,a=e.iconColor,i=void 0===a?"#99B0CB":a;return c.createElement("svg",{width:r,height:n,viewBox:"0 0 102 76",version:"1.1"},c.createElement("g",{id:"demo-home-copy",stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",transform:"translate(-377.000000, -314.000000)"},c.createElement("g",{id:"Group-13",transform:"translate(377.000000, 314.000000)"},c.createElement("path",{d:"M43.2,49.7 L62.2,19.2 L87.2,59.4 L17,59.4 L32.8,39.4 L43.2,49.7 Z M29.9,28.6 C25.8683213,28.6 22.6,25.3316787 22.6,21.3 C22.6,17.2683213 25.8683213,14 29.9,14 C33.9316787,14 37.2,17.2683213 37.2,21.3 C37.2,25.3316787 33.9316787,28.6 29.9,28.6 Z",id:"Combined-Shape",fill:i,fillRule:"nonzero"}),c.createElement("rect",{id:"Rectangle-19",stroke:i,strokeWidth:"3",x:"1.5",y:"1.5",width:"99",height:"73",rx:"3"}))))};Tr.propTypes={width:i.object,height:i.object,iconColor:i.object};var zr=function(){return c.createElement("div",{className:"arr--fallback-image fallback-m_image__1GYCJ fallback-m_image-position__3KddP"},c.createElement("figure",{className:"arr--fallback-svg fallback-m_fallback-svg__tK9fL"},c.createElement(Tr,null)))},kr=function(t){var r=t.slug;return r?c.createElement(e,{href:r,"aria-label":"image-fallback"},zr()):zr()};kr.propTypes={slug:i.string};var Cr=function(){return c.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"36",height:"28"},c.createElement("g",{fill:"none",fillRule:"evenodd"},c.createElement("rect",{width:"36",height:"28",fill:"#3D6FCF",rx:"4"}),c.createElement("path",{stroke:"#FFF",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M22 14.667v4c0 .736-.597 1.333-1.333 1.333h-7.334A1.333 1.333 0 0112 18.667v-7.334c0-.736.597-1.333 1.333-1.333h4M20 8h4v4m-7.333 3.333L24 8"})))},Nr=function(t){var r=t.hyperLink,o=void 0===r?"":r;return o?c.createElement(e,{href:o,"aria-label":"hyperlink-button",className:"arr--hyperlink-button hyperlink-m_hyperlink-button__1CqWx",target:"_blank",rel:"noopener noreferrer"},c.createElement(Cr,null)):null};Nr.propTypes={hyperLink:i.string};var jr={"./hero-image.m.css":{"hero-image":"hero-image-m_hero-image__3lraV","right-padding":"hero-image-m_right-padding__1LkCe","left-padding":"hero-image-m_left-padding__pYRAj","right-padding-mob":"hero-image-m_right-padding-mob__3-uOU",placeholder:"hero-image-m_placeholder__1omCm","hero-image-mob":"hero-image-m_hero-image-mob__13JJp","with-padding":"hero-image-m_with-padding__324G_",image:"hero-image-m_image__1mz0U"}},Sr=function(t){var o=t.story,n=t.FullBleed,i=t.aspectRatio,l=t.defaultWidth,s=t.widths,u=t.isHorizontal,m=t.isHorizontalMobile,d=t.isHorizontalWithImageLast,h=t.defaultFallback,f=t.isStoryPageImage,g=t.config,v=(er()||{}).fallbackImageUrl,_=void 0===v?"":v,y=g.StoryTemplateIcon,b=void 0===y?function(){return null}:y,w=p((function(e){return a(e,["qt","config","showPlaceholder"])}))?"placeholder":"",x=n?"":"with-padding",L="hero-image";u?L="right-padding":d&&(L="left-padding");var T=m?"right-padding-mob":"",z=function(e){var t=E(e,2),r=t[0],o=t[1];return r>0&&o>0?o/r*100:0},k=E(i,2),C=k[0],N=k[1],j=void 0===N?C:N,S=Gt("mobile"),O=S?C:j,I=z(S?C:j),M=a(o,["hero-image-s3-key"])||a(o,["alternative","home","default","hero-image","hero-image-s3-key"]),A=a(o,["hero-image-hyperlink"],""),R=function(){return M?c.createElement(c.Fragment,null,c.createElement("figure",{style:{paddingTop:I+"%"},className:"arr--responsive-hero-image "+Qt("image ".concat(w),jr)},c.createElement(b,{storyTemplate:o["story-template"]}),c.createElement(r,{story:o,aspectRatio:O,defaultWidth:l,widths:s,imgParams:{auto:["format","compress"],fit:"max"}})),f&&A&&c.createElement(Nr,{hyperLink:A})):_&&!f?c.createElement("figure",{style:{paddingTop:I+"%"},className:"arr--responsive-hero-image "+Qt("image ".concat(w),jr)},c.createElement("img",{className:"qt-image","data-src":"".concat(_),alt:"image-fallback"})):c.createElement(c.Fragment,null,h?c.createElement("div",{"data-test-id":"arr--fallback-hero-image",style:{paddingTop:I+"%"},className:"arr--fallback-hero-image "+Qt("image ".concat(w),jr)},c.createElement(b,{storyTemplate:o["story-template"]}),c.createElement(kr,null)):null)};return o&&(f?c.createElement("div",{"data-test-id":"arr--hero-image",className:"arr--hero-image "+Qt("".concat(L," ").concat(x," ").concat(T),jr)},R()):c.createElement(e,{"data-test-id":"arr--hero-image",href:Yt(o,"/".concat(o.slug)),externalLink:Jt(o),"aria-label":"fallback-hero-image",className:"arr--hero-image "+Qt("".concat(L," ").concat(x," ").concat(T),jr)},R()))};function Or(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}Sr.propTypes={story:i.object.isRequired,FullBleed:i.bool,defaultWidth:i.number,widths:i.array,aspectRatio:i.array,isHorizontal:i.bool,isHorizontalMobile:i.bool,defaultFallback:i.bool,isHorizontalWithImageLast:i.bool,isStoryPageImage:i.bool,config:i.object},Sr.defaultProps={FullBleed:!0,aspectRatio:[[1,1],[16,9]],defaultWidth:480,widths:[250,480,640],isHorizontal:!1,isHorizontalMobile:!1,defaultFallback:!0,isStoryPageImage:!1,isHorizontalWithImageLast:!1,config:{}};var Ir={"./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 Mr(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,o)}return r}function Ar(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Mr(Object(r),!0).forEach((function(t){Or(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Mr(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var Rr=function(e){var t=e.config,r=void 0===t?{}:t,n=e.collection,a=e.template,i=void 0===a?"SubsequentLoadCount":a,l=e.onClick,s=e.navigate,u=e.qtConfig,m=r.showButton,d=void 0===m||m,h=r.buttonText,f=void 0===h?"Read More":h,p=r.theme,g=void 0===p?"":p,v=r.customUrlPath,_=void 0===v?"":v;if(!d)return null;var y=Zt(g),b=_?"/".concat(_):$t(n,Ar(Ar({},u),r));return"SubsequentLoadCount"===i?c.createElement("div",{onClick:l,"data-test-id":"load-more",className:"arr--button "+Qt("button ".concat(y," default"),Ir)},f):c.createElement(o,{href:b,navigateTo:s,"data-test-id":"load-more","aria-label":"load-more"},c.createElement("div",{className:"arr--button "+Qt("button ".concat(y," default"),Ir)},f))};Rr.propTypes={collection:i.object,template:i.string,config:i.object,onClick:i.func,navigate:i.func,qtConfig:i.object};var Hr={"./section.m.css":{section:"section-m_section__2N4S3","section-borderBottomSml":"section-m_section-borderBottomSml__2GNbo","border-bottom":"section-m_border-bottom__3cRoD","section-borderLeft":"section-m_section-borderLeft__3hKVj","border-left":"section-m_border-left__2oUyp","section-solid":"section-m_section-solid__1vB1Q",dark:"section-m_dark__1r3C4",light:"section-m_light__306hW"}},Br=function(t){var r=t.story,o=t.template,n=void 0===o?"":o,i=t.borderColor,l=void 0===i?"":i,s=t.isLightTheme,u=er()||{},m=a(u,["showSection"],!0),d=a(u,["sectionTagTemplate"]),h=a(r,["sections",0],""),f=["borderBottomSml","borderLeft","solid"],p=h?h["section-url"]:"/",g="solid"===n||"solid"===d?l:u.theme,v=s?"light":Zt(g),_=qt(l),y=f.includes(n)?"section section-".concat(n):"section";return d&&(y=f.includes(d)?"section section-".concat(d):"section"),m?c.createElement(e,{href:p,className:"arrow-component arr--section-name","aria-label":"section-name"},c.createElement("div",{"data-test-id":"sectionTag",style:{backgroundColor:y.includes("section-solid")?_:""},className:"section-tag arrow-component "+Qt("".concat(v," ").concat(y),Hr)},y.includes("section-borderLeft")&&c.createElement("span",{className:"section-m_border-left__2oUyp",style:{color:_}}),h["display-name"]||h.name,c.createElement("div",{className:"section-m_border-bottom__3cRoD",style:{backgroundColor:"".concat("solid"===n?"":_)}}))):null};Br.propTypes={story:i.object.isRequired,template:i.oneOf(["","borderBottomSml","borderLeft","solid"]),borderColor:i.string,solidBorderColor:i.string,isLightTheme:i.bool},Br.defaultProps={template:"",isLightTheme:!1};var Pr={"./subheadline.m.css":{subheadline:"subheadline-m_subheadline__3fd7z",dark:"subheadline-m_dark__28u00",light:"subheadline-m_light__2YUOe"}},Fr=function(e){var t=e.story,r=e.truncateChars,o=void 0===r?200:r,n=e.lineClamp,i=e.clazzName,l=void 0===i?"":i,s=e.forceShowAtom,u=e.showFullContent,m=er()||{};if(!(s||a(m,["showSubheadline"],!0)))return null;var d=Zt(m.theme);return c.createElement("div",{style:{WebkitLineClamp:n},"data-test-id":"subheadline",className:("p-alt arr--sub-headline arrow-component ".concat(l)?"p-alt arr--sub-headline arrow-component ".concat(l)+" ":"")+Qt("subheadline ".concat(d),Pr)},u||"number"==typeof n?t.subheadline:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:60,r=arguments.length>2&&void 0!==arguments[2]&&!arguments[2]?"":" ...";return"string"==typeof e&&e.length>t?e.substring(0,t)+r:e}(t.subheadline,o,!0))};Fr.propTypes={story:i.object.isRequired,lineClamp:i.number,truncateChars:i.number,clazzName:i.string,forceShowAtom:i.bool,showFullContent:i.bool},Fr.defaultProps={forceShowAtom:!1,showFullContent:!1};var Dr={"./storycard.m.css":{"author-timestamp-wrapper":"storycard-m_author-timestamp-wrapper__20yjp","default-card":"storycard-m_default-card__1-POn","horizontal-card":"storycard-m_horizontal-card___7afz","backgroung-img":"storycard-m_backgroung-img__1FMJT","content-overlap":"storycard-m_content-overlap__1yNHR","border-full":"storycard-m_border-full__1nhy7",light:"storycard-m_light__3EhXN",dark:"storycard-m_dark__2wCTq","border-bottom":"storycard-m_border-bottom__2_E-I","border-boxShadow":"storycard-m_border-boxShadow__2-k3Z","center-align":"storycard-m_center-align__1Sn8-","content-bottom":"storycard-m_content-bottom__1QHeC","content-full":"storycard-m_content-full__2zJmU","content-boxShadow":"storycard-m_content-boxShadow__2IAWZ","hero-image":"storycard-m_hero-image__1H3MB","right-padding":"storycard-m_right-padding__12-lQ","horizontal-mob":"storycard-m_horizontal-mob__17JG2",content:"storycard-m_content__1Q9vq","border-default":"storycard-m_border-default__PEZ1x",card:"storycard-m_card__KJwRa","horizontal-image-last":"storycard-m_horizontal-image-last__3o6LY"}},Wr=function(e){var t,r=e.story,o=e.children,n=e.isHorizontal,a=e.aspectRatio,i=e.border,l=e.useImageAsBackground,s=e.bgImgContentOverlap,u=e.theme,m=e.borderColor,d=e.isHorizontalMobile,h=e.centerAlign,f=e.headerLevel,p=e.hideAuthorImage,g=e.prefix,v=e.config,_=e.isHorizontalWithImageLast;if(!r||(null==(t=r)||"object"===S(t)&&0===Object.entries(t).length&&t.constructor===Object||"string"==typeof t&&0===t.trim().length))return c.createElement("div",null);var y=["default","full","bottom","boxShadow"].includes(i)?"border-".concat(i):"",b="default-card";n?b="horizontal-card":_&&(b="horizontal-image-last");var w=l?"backgroung-img":"",E=s?"content-overlap":"",x=Zt(u),L=d?"horizontal-mob":"",T=c.createElement(qr,{story:r,aspectRatio:a,border:i,isHorizontalMobile:d,isHorizontal:n,centerAlign:h,headerLevel:f,borderColor:m,hideAuthorImage:p,prefix:g,config:v,isHorizontalWithImageLast:_});return c.createElement("div",{"data-test-id":"story-card",style:{backgroundColor:u,color:x},className:"arr--story-card "+Qt("card ".concat(b," ").concat(y," ").concat(x," ").concat(w," ").concat(E," ").concat(L),Dr)},o||T)},qr=function(e){var t=e.story;e.border;var r=e.isHorizontal,o=e.aspectRatio,n=e.headerLevel,a=e.isHorizontalMobile,i=void 0!==a&&a,l=e.centerAlign,s=void 0!==l&&l,u=e.borderColor,m=e.hideAuthorImage,d=e.prefix,h=e.isHorizontalWithImageLast,f=e.config,p=s?"center-align":"",g=qt(u),v=f.localizationConfig,_=void 0===v?{}:v;return c.createElement(c.Fragment,null,r?c.createElement(Sr,{config:f,story:t,isHorizontal:!0,isHorizontalMobile:i,aspectRatio:o}):h?c.createElement(Sr,{config:f,story:t,isHorizontalWithImageLast:!0,isHorizontalMobile:i,aspectRatio:o}):c.createElement(Sr,{story:t,config:f,isHorizontalMobile:i,aspectRatio:o}),c.createElement("div",{className:"arr--story-content "+Qt("content ".concat(p),Dr)},c.createElement(Br,{story:t,borderColor:g}),c.createElement(Lr,{story:t,headerLevel:n,premiumStoryIconConfig:f}),c.createElement(hr,{config:_,story:t,isBottom:!0,prefix:d,hideAuthorImage:m}),c.createElement(Fr,{story:t})))};qr.propTypes={story:i.object.isRequired,border:i.oneOfType([i.string]),isBottom:i.bool,isHorizontal:i.bool,aspectRatio:i.oneOfType([i.array]),isHorizontalMobile:i.bool,centerAlign:i.bool,headerLevel:i.string,borderColor:i.string,hideAuthorImage:i.bool,prefix:i.string,config:i.object,isHorizontalWithImageLast:i.bool},Wr.propTypes={story:i.object.isRequired,children:i.node,isHorizontal:i.bool,border:i.oneOfType([i.string]),useImageAsBackground:i.bool,bgImgContentOverlap:i.bool,aspectRatio:i.oneOfType([i.array]),theme:i.string,isHorizontalMobile:i.bool,centerAlign:i.bool,headerLevel:i.string,borderColor:i.string,hideAuthorImage:i.bool,prefix:i.string,config:i.object,isHorizontalWithImageLast:i.bool},Wr.defaultProps={isHorizontal:!1,isHorizontalMobile:!1,border:"default",theme:"",centerAlign:!1,borderColor:"",isHorizontalWithImageLast:!1};var Ur={"./storycardContent.m.css":{wrapper:"storycardContent-m_wrapper__TEmfA","horizontal-content-wrapper":"storycardContent-m_horizontal-content-wrapper__NgpuC","border-full":"storycardContent-m_border-full__2km37"}},Gr=function(e){var t=e.story,r=e.children,o=e.theme,n=e.border,a=e.isHorizontalMobile,i=e.headerLevel,l=e.borderColor,s=e.config,u=Zt(o),m=qt(l),d=["full"].includes(n)?"border-".concat(n):"",h=a?"horizontal-content-wrapper":"";return c.createElement("div",{"data-test-id":"story-card-content",style:{backgroundColor:o,color:u},className:"arr--content-wrapper "+Qt("wrapper ".concat(d," ").concat(h),Ur)},r||c.createElement(Zr,{story:t,headerLevel:i,isHorizontalMobile:a,borderColor:m,config:s}))},Zr=function(e){var t=e.story,r=e.headerLevel,o=e.borderColor,n=e.config,a=void 0===n?{}:n,i=qt(o),l=a.localizationConfig,s=void 0===l?{}:l;return c.createElement("div",null,c.createElement(Br,{story:t,borderColor:i}),c.createElement(Lr,{story:t,headerLevel:r,premiumStoryIconConfig:a}),c.createElement(hr,{config:s,story:t}))};Zr.propTypes={story:i.object.isRequired,border:i.string,theme:i.string,isHorizontalMobile:i.bool,headerLevel:i.string,borderColor:i.string,config:i.object},Gr.propTypes={story:i.object.isRequired,children:i.node,theme:i.string,border:i.string,isHorizontalMobile:i.bool,headerLevel:i.string,borderColor:i.string,config:i.object};var Vr=function(e){var t=e.collection,r=e.componentName,o=e.offset,n=e.limit;return console.log("###limit",n),c.createElement("div",{id:"ELM-".concat(t.id),"data-collection-slug":t.slug,"data-component-name":r,"data-collection-offset":o,"data-collection-limit":n})};Vr.propTypes={collection:i.shape({id:i.string,slug:i.string}),componentName:i.string,offset:i.number,limit:i.number};var Jr=function(e){var t=e.collection,r=e.config,o=void 0===r?{}:r,i=e.getMoreStories,l=e.isLoadMoreVisible,s=e.isLoading,u=e.isolatedLoadMore,m=n(t);if(!m.length)return null;var d=o.collectionNameBorderColor,h=void 0===d?"":d,f=o.borderColor,v=void 0===f?"":f,_=o.theme,y=void 0===_?"":_,b=o.border,w=void 0===b?"":b,E=o.slotConfig,x=void 0===E?[]:E,L=o.collectionNameTemplate,T=void 0===L?"":L,z=o.footerSlotConfig,k=void 0===z?{}:z,C=o.footerButton,N=void 0===C?"":C,S=o.localizationConfig,O=void 0===S?{}:S,I=k.footerSlot,M=a(x,[0],{}),A=M.type,R=M.component,H=g(),B=p((function(e){return a(e,["qt","config"],{})})),P=I?I():null,F=function(e){switch(w){case"bottom":return c.createElement("div",{className:"one-col-story-list-m_one-col-border-bottom__13nPb"},c.createElement(Wr,{story:e,theme:y,headerLevel:"4",isHorizontal:!0,border:w,aspectRatio:[[1,1],[4,3]],borderColor:v,prefix:"By",config:o}));case"full":return c.createElement("div",{className:"one-col-story-list-m_one-col-border-full__3PSl0"},c.createElement(Wr,{story:e,border:w,theme:y,isHorizontal:!0,borderColor:v},c.createElement(Sr,{story:e,isHorizontal:!0,aspectRatio:[[1,1],[4,3]]}),c.createElement("div",{className:"one-col-story-list-m_story-card-content-wrapper__1baqS"},c.createElement(Gr,{story:e,borderColor:v,config:o},c.createElement(Br,{story:e}),c.createElement(Lr,{story:e,headerLevel:"4",premiumStoryIconConfig:o}),c.createElement(Fr,{story:e}),c.createElement(hr,{config:O,story:e,prefix:"By"})))));default:return c.createElement("div",{className:"one-col-story-list-m_one-col-border-default__2BDg7"},c.createElement(Wr,{story:e,theme:y,headerLevel:"4",isHorizontal:!0,border:w,aspectRatio:[[1,1],[4,3]],borderColor:v,prefix:"By",config:o}))}},D=Zt(y);return c.createElement("div",{className:"full-width-with-padding arrow-component","data-test-id":"one-col-story-list",style:{backgroundColor:y,color:D}},c.createElement("div",{className:"one-col-story-list-m_one-col-story-list-wrapper__ICvTq"},c.createElement(gr,{collection:t,collectionNameTemplate:T,collectionNameBorderColor:h}),c.createElement("div",{className:"one-col-story-list-m_wrapper__38qTp",style:{backgroundColor:y,color:D}},c.createElement("div",{className:"one-col-story-list-m_one-col-first-story__1aC6i"},m.slice(0,1).map((function(e,t){return c.createElement("div",{key:"default-".concat(t)},F(e))}))),c.createElement("div",{className:"one-col-story-list-m_one-col-story-list__3d6Bp"},m.slice(1).map((function(e,t){return c.createElement("div",{key:"default-".concat(t)},F(e))}))),c.createElement("div",{className:"one-col-story-list-m_one-col-ads__UN_hF"},function(e,t,r,o){switch(e){case"story":return r();case"collection":return o();default:return t?t():null}}(A,R,(function(){return null}),(function(){return null})))),c.createElement("div",{className:"one-col-story-list-m_footer-ad-wrapper__NGgvp"},function(e){if(!l)return null;if(u)return c.createElement(Vr,{collection:t,componentName:"OneColStoryList",offset:m.length,limit:4});var r=$t(t,B);return c.createElement(j,null,c.createElement(Rr,{config:o,collection:t,template:N,onClick:function(){return function(e){var t=e.isLoading,r=e.storyItems,o=e.getMoreStories;t||o(r.length,8)}(e)},navigate:function(){return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";global.app.navigateToPage(e,t)}(H,r)},qtConfig:B}))}({isLoading:s,storyItems:m,getMoreStories:i}),c.createElement("div",{className:"one-col-story-list-m_ad-wrapper__3_cNc"},P))))};Jr.propTypes={collection:i.object.isRequired,config:i.shape({borderColor:i.string,theme:i.string,border:i.string,footerButton:i.string,collectionNameTemplate:i.string,collectionNameBorderColor:i.string}),getMoreStories:i.func,isLoadMoreVisible:i.bool,isLoading:i.bool,isolatedLoadMore:i.bool},Jr.defaultProps={getMoreStories:function(){},isLoadMoreVisible:!0,isLoading:!1};var Yr,$r=(Yr=Jr,function(e){return c.createElement(Xt.Provider,{value:e.config},c.createElement(Yr,e))});export{$r as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import t from"react";import e from"prop-types";import{useDispatch as r,useSelector as n}from"react-redux";import o from"lodash.get";import"react-timeago";import"date-fns-tz";import{LinkBase as a}from"@quintype/components";function i(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var u="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 l(t){var e={exports:{}};return t(e,e.exports),e.exports}var s=l((function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r={attributeNames:{styleName:"className"},generateScopedName:"[path]___[name]__[local]___[hash:base64:5]",handleMissingStyleName:"throw"};e.default=r})),f=c(l((function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r,n=(r=s)&&r.__esModule?r:{default:r};var o=function(t,e){if("throw"===e)throw new Error(t);return"warn"===e&&console.warn(t),null};e.default=function(t,e,r){var a=Object.keys(e),i=r||{},u=i.handleMissingStyleName,c=void 0===u?n.default.handleMissingStyleName:u,l=i.autoResolveMultipleImports,s=void 0===l?n.default.autoResolveMultipleImports:l;return t?t.split(" ").filter((function(t){return t})).map((function(t){if(function(t){return-1!==t.indexOf(".")}(t))return function(t,e,r){var a=t.split("."),i=a[0],u=a[1],c=r||n.default.handleMissingStyleName;return u?e[i]?e[i][u]?e[i][u]:o("CSS module does not exist: "+u,c):o("CSS module import does not exist: "+i,c):o("Invalid style name: "+t,c)}(t,e,c);if(0===a.length)throw new Error("Cannot use styleName attribute for style name '"+t+"' without importing at least one stylesheet.");if(a.length>1){if(!s)throw new Error("Cannot use anonymous style name '"+t+"' with more than one stylesheet import without setting 'autoResolveMultipleImports' to true.");return function(t,e,r){var a=r||n.default.handleMissingStyleName,i=Object.keys(e).map((function(r){return e[r][t]&&r})).filter((function(t){return t}));if(i.length>1)throw new Error('Cannot resolve styleName "'+t+'" because it is present in multiple imports:\n\n\t'+i.join("\n\t")+'\n\nYou can resolve this by using a named import, e.g:\n\n\timport foo from "'+i[0]+'";\n\t<div styleName="foo.'+t+'" />\n\n');return 0===i.length?o("Could not resolve the styleName '"+t+"'.",a):e[i[0]][t]}(t,e,c)}var r=e[a[0]];return r[t]?r[t]:o("Could not resolve the styleName '"+t+"'.",c)})).filter((function(t){return t})).join(" "):""}})));var p=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 h=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"}),d="object"==typeof u&&u&&u.Object===Object&&u,v="object"==typeof self&&self&&self.Object===Object&&self,g=d||v||Function("return this")(),y=g.Symbol;var m=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},b=Array.isArray,_=Object.prototype,w=_.hasOwnProperty,x=_.toString,O=y?y.toStringTag:void 0;var j=function(t){var e=w.call(t,O),r=t[O];try{t[O]=void 0;var n=!0}catch(t){}var o=x.call(t);return n&&(e?t[O]=r:delete t[O]),o},E=Object.prototype.toString;var S=function(t){return E.call(t)},P=y?y.toStringTag:void 0;var L=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":P&&P in Object(t)?j(t):S(t)};var N=function(t){return null!=t&&"object"==typeof t};var z=function(t){return"symbol"==typeof t||N(t)&&"[object Symbol]"==L(t)},A=y?y.prototype:void 0,T=A?A.toString:void 0;var k=function t(e){if("string"==typeof e)return e;if(b(e))return m(e,t)+"";if(z(e))return T?T.call(e):"";var r=e+"";return"0"==r&&1/e==-Infinity?"-0":r};var I=function(t){return null==t?"":k(t)},C=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,D=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]","g");var R=function(t){return(t=I(t))&&t.replace(C,h).replace(D,"")},M=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;var F=function(t){return t.match(M)||[]},U=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;var G=function(t){return U.test(t)},Z="\\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",$="["+Z+"]",q="\\d+",B="[\\u2700-\\u27bf]",Y="[a-z\\xdf-\\xf6\\xf8-\\xff]",H="[^\\ud800-\\udfff"+Z+q+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",Q="(?:\\ud83c[\\udde6-\\uddff]){2}",V="[\\ud800-\\udbff][\\udc00-\\udfff]",J="[A-Z\\xc0-\\xd6\\xd8-\\xde]",W="(?:"+Y+"|"+H+")",K="(?:"+J+"|"+H+")",X="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?",tt="[\\ufe0e\\ufe0f]?"+X+("(?:\\u200d(?:"+["[^\\ud800-\\udfff]",Q,V].join("|")+")[\\ufe0e\\ufe0f]?"+X+")*"),et="(?:"+[B,Q,V].join("|")+")"+tt,rt=RegExp([J+"?"+Y+"+(?:['’](?:d|ll|m|re|s|t|ve))?(?="+[$,J,"$"].join("|")+")",K+"+(?:['’](?:D|LL|M|RE|S|T|VE))?(?="+[$,J+W,"$"].join("|")+")",J+"?"+W+"+(?:['’](?:d|ll|m|re|s|t|ve))?",J+"+(?:['’](?: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_])",q,et].join("|"),"g");var nt=function(t){return t.match(rt)||[]};var ot=function(t,e,r){return t=I(t),void 0===(e=r?void 0:e)?G(t)?nt(t):F(t):t.match(e)||[]},at=RegExp("['’]","g");var it=function(t){return function(e){return p(ot(R(e).replace(at,"")),t,"")}}((function(t,e,r){return t+(r?" ":"")+e.toUpperCase()}));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 l(t,e,r,n){var o=e&&e.prototype instanceof g?e:g,a=Object.create(o.prototype),i=new L(n||[]);return a._invoke=function(t,e,r){var n=f;return function(o,a){if(n===h)throw new Error("Generator is already running");if(n===d){if("throw"===o)throw a;return z()}for(r.method=o,r.arg=a;;){var i=r.delegate;if(i){var u=E(i,r);if(u){if(u===v)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=h;var c=s(t,e,r);if("normal"===c.type){if(n=r.done?d:p,c.arg===v)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 s(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=l;var f="suspendedStart",p="suspendedYield",h="executing",d="completed",v={};function g(){}function y(){}function m(){}var b={};c(b,a,(function(){return this}));var _=Object.getPrototypeOf,w=_&&_(_(N([])));w&&w!==r&&n.call(w,a)&&(b=w);var x=m.prototype=g.prototype=Object.create(b);function O(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=s(t[o],t,a);if("throw"!==c.type){var l=c.arg,f=l.value;return f&&"object"==typeof f&&n.call(f,"__await")?e.resolve(f.__await).then((function(t){r("next",t,i,u)}),(function(t){r("throw",t,i,u)})):e.resolve(f).then((function(t){l.value=t,i(l)}),(function(t){return r("throw",t,i,u)}))}u(c.arg)}var o;this._invoke=function(t,n){function a(){return new e((function(e,o){r(t,n,e,o)}))}return o=o?o.then(a,a):a()}}function E(t,r){var n=t.iterator[r.method];if(n===e){if(r.delegate=null,"throw"===r.method){if(t.iterator.return&&(r.method="return",r.arg=e,E(t,r),"throw"===r.method))return v;r.method="throw",r.arg=new TypeError("The iterator does not provide a 'throw' method")}return v}var o=s(n,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,v;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,v):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,v)}function S(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function P(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function L(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(S,this),this.reset(!0)}function N(t){if(t){var r=t[a];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function r(){for(;++o<t.length;)if(n.call(t,o))return r.value=t[o],r.done=!1,r;return r.value=e,r.done=!0,r};return i.next=i}}return{next:z}}function z(){return{value:e,done:!0}}return y.prototype=m,c(x,"constructor",m),c(m,"constructor",y),y.displayName=c(m,u,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===y||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,m):(t.__proto__=m,c(t,u,"GeneratorFunction")),t.prototype=Object.create(x),t},t.awrap=function(t){return{__await:t}},O(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(l(e,r,n,o),a);return t.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},O(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,L.prototype={constructor:L,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(P),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function o(n,o){return u.type="throw",u.arg=t,r.next=n,o&&(r.method="next",r.arg=e),!!o}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],u=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),l=n.call(i,"finallyLoc");if(c&&l){if(this.prev<i.catchLoc)return o(i.catchLoc,!0);if(this.prev<i.finallyLoc)return o(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return o(i.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return o(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,v):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),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),P(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;P(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),v}},t}(t.exports);try{regeneratorRuntime=e}catch(t){"object"==typeof globalThis?globalThis.regeneratorRuntime=e:Function("r","regeneratorRuntime = r")(e)}}));var ut=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ct=/^\w*$/;var lt=function(t,e){if(b(t))return!1;var r=typeof t;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=t&&!z(t))||(ct.test(t)||!ut.test(t)||null!=e&&t in Object(e))};var st=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)};var ft,pt=function(t){if(!st(t))return!1;var e=L(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e},ht=g["__core-js_shared__"],dt=(ft=/[^.]+$/.exec(ht&&ht.keys&&ht.keys.IE_PROTO||""))?"Symbol(src)_1."+ft:"";var vt=function(t){return!!dt&&dt in t},gt=Function.prototype.toString;var yt=function(t){if(null!=t){try{return gt.call(t)}catch(t){}try{return t+""}catch(t){}}return""},mt=/^\[object .+?Constructor\]$/,bt=Function.prototype,_t=Object.prototype,wt=bt.toString,xt=_t.hasOwnProperty,Ot=RegExp("^"+wt.call(xt).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var jt=function(t){return!(!st(t)||vt(t))&&(pt(t)?Ot:mt).test(yt(t))};var Et=function(t,e){return null==t?void 0:t[e]};var St=function(t,e){var r=Et(t,e);return jt(r)?r:void 0},Pt=St(Object,"create");var Lt=function(){this.__data__=Pt?Pt(null):{},this.size=0};var Nt=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},zt=Object.prototype.hasOwnProperty;var At=function(t){var e=this.__data__;if(Pt){var r=e[t];return"__lodash_hash_undefined__"===r?void 0:r}return zt.call(e,t)?e[t]:void 0},Tt=Object.prototype.hasOwnProperty;var kt=function(t){var e=this.__data__;return Pt?void 0!==e[t]:Tt.call(e,t)};var It=function(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=Pt&&void 0===e?"__lodash_hash_undefined__":e,this};function Ct(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])}}Ct.prototype.clear=Lt,Ct.prototype.delete=Nt,Ct.prototype.get=At,Ct.prototype.has=kt,Ct.prototype.set=It;var Dt=Ct;var Rt=function(){this.__data__=[],this.size=0};var Mt=function(t,e){return t===e||t!=t&&e!=e};var Ft=function(t,e){for(var r=t.length;r--;)if(Mt(t[r][0],e))return r;return-1},Ut=Array.prototype.splice;var Gt=function(t){var e=this.__data__,r=Ft(e,t);return!(r<0)&&(r==e.length-1?e.pop():Ut.call(e,r,1),--this.size,!0)};var Zt=function(t){var e=this.__data__,r=Ft(e,t);return r<0?void 0:e[r][1]};var $t=function(t){return Ft(this.__data__,t)>-1};var qt=function(t,e){var r=this.__data__,n=Ft(r,t);return n<0?(++this.size,r.push([t,e])):r[n][1]=e,this};function Bt(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}Bt.prototype.clear=Rt,Bt.prototype.delete=Gt,Bt.prototype.get=Zt,Bt.prototype.has=$t,Bt.prototype.set=qt;var Yt=Bt,Ht=St(g,"Map");var Qt=function(){this.size=0,this.__data__={hash:new Dt,map:new(Ht||Yt),string:new Dt}};var Vt=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t};var Jt=function(t,e){var r=t.__data__;return Vt(e)?r["string"==typeof e?"string":"hash"]:r.map};var Wt=function(t){var e=Jt(this,t).delete(t);return this.size-=e?1:0,e};var Kt=function(t){return Jt(this,t).get(t)};var Xt=function(t){return Jt(this,t).has(t)};var te=function(t,e){var r=Jt(this,t),n=r.size;return r.set(t,e),this.size+=r.size==n?0:1,this};function ee(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])}}ee.prototype.clear=Qt,ee.prototype.delete=Wt,ee.prototype.get=Kt,ee.prototype.has=Xt,ee.prototype.set=te;var re=ee;function ne(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(ne.Cache||re),r}ne.Cache=re;var oe=ne;var ae=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ie=/\\(\\)?/g,ue=function(t){var e=oe(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(ae,(function(t,r,n,o){e.push(n?o.replace(ie,"$1"):r||t)})),e}));var ce=function(t,e){return b(t)?t:lt(t,e)?[t]:ue(I(t))};var le=function(t){if("string"==typeof t||z(t))return t;var e=t+"";return"0"==e&&1/t==-Infinity?"-0":e};var se=function(t,e){for(var r=0,n=(e=ce(e,t)).length;null!=t&&r<n;)t=t[le(e[r++])];return r&&r==n?t:void 0};var fe=function(t,e,r){var n=null==t?void 0:se(t,e);return void 0===n?r:n},pe=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},he=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},de=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:he(t),n=pe(r)<155?"light":"dark";return n},ve=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=e.magazineSlug,n=void 0===r?"":r,o=e.isArchivePage,a=void 0!==o&&o;if(a)return"/magazine/archive/".concat(n);if(n)return"/magazine/".concat(n,"/").concat(t.slug);var i="section"===t.template;if(i){var u=fe(t,["metadata","section","0","id"],""),c=e.sections,l=c&&c.find((function(t){return t.id===u}));return l?l["section-url"]:"/"}return"/collection/".concat(t.slug)};e.shape({"sketches-host":e.string,"cdn-name":e.string,"cdn-image":e.string}),e.shape({headline:e.string,"last-published-at":e.number,subheadline:e.string});var ge=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2?arguments[2]:void 0;if(r)return r;var n=e.magazineSlug,o=void 0===n?"":n,a=e.isArchivePage,i=void 0!==a&&a;return i?"/magazine/archive/".concat(o):o?"/magazine/".concat(o,"/").concat(t.slug):t?ve(t,e):"/"},ye={"./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 me(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function be(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?me(Object(r),!0).forEach((function(e){i(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):me(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var _e=function(e){var r=e.config,n=void 0===r?{}:r,o=e.collection,i=e.template,u=void 0===i?"SubsequentLoadCount":i,c=e.onClick,l=e.navigate,s=e.qtConfig,p=n.showButton,h=void 0===p||p,d=n.buttonText,v=void 0===d?"Read More":d,g=n.theme,y=void 0===g?"":g,m=n.customUrlPath,b=void 0===m?"":m;if(!h)return null;var _=de(y),w=b?"/".concat(b):ge(o,be(be({},s),n));return"SubsequentLoadCount"===u?t.createElement("div",{onClick:c,"data-test-id":"load-more",className:"arr--button "+f("button ".concat(_," default"),ye)},v):t.createElement(a,{href:w,navigateTo:l,"data-test-id":"load-more","aria-label":"load-more"},t.createElement("div",{className:"arr--button "+f("button ".concat(_," default"),ye)},v))};_e.propTypes={collection:e.object,template:e.string,config:e.object,onClick:e.func,navigate:e.func,qtConfig:e.object};var we={"./page-intro-card.m.css":{viewports:'"../../../../assets/stylesheets/viewports.m.css"',mobile:"768px",tablet:"992px","author-page-wrapper":"page-intro-card-m_author-page-wrapper__2HiAv",pageTitle:"page-intro-card-m_pageTitle__2qQNj",borderBottom:"page-intro-card-m_borderBottom__2E6t3",pageDescription:"page-intro-card-m_pageDescription__Wzub7",dark:"page-intro-card-m_dark__1ebnF",light:"page-intro-card-m_light__s5xeQ"}};function xe(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Oe(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?xe(Object(r),!0).forEach((function(e){i(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):xe(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var je=function(e){var a=e.config,i=void 0===a?{}:a,u=i.pageTitle,c=void 0===u?"":u,l=i.pageDescription,s=void 0===l?"":l,p=i.theme,h=void 0===p?"#131922":p,d=i.showButton,v=void 0!==d&&d,g=i.enableBorder,y=void 0!==g&&g,m=i.customUrlPath,b=de(h),_=y?"borderBottom":"",w=r(),x=n((function(t){return o(t,["qt","config"],{})})),O=ge({},Oe(Oe({},x),{},{config:i}),m);return t.createElement("div",{className:"arrow-component full-width-with-padding page-intro-card-m_author-page-wrapper__2HiAv",style:{background:h}},t.createElement("h2",{"data-test-id":"page-title",className:f("pageTitle ".concat(b," ").concat(_),we)},it(c)),t.createElement("div",{"data-test-id":"page-description",className:f("pageDescription ".concat(b),we)},s),v&&t.createElement(_e,{template:"customUrlPath",config:i,navigate:function(){return function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";global.app.navigateToPage(t,e)}(w,O)},qtConfig:x}))};je.propTypes={config:e.shape({theme:e.string,pageTitle:e.string,pageDescription:e.string})};export{je as PageIntroductionCard};
|
package/QuestionAnswer/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import t,{useContext as e,createContext as r}from"react";import n from"prop-types";import o from"lodash.get";import"react-timeago";import"date-fns-tz";function a(){return a=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},a.apply(this,arguments)}function i(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r,n,o={},a=Object.keys(t);for(n=0;n<a.length;n++)r=a[n],e.indexOf(r)>=0||(o[r]=t[r]);return o}(t,e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(n=0;n<a.length;n++)r=a[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}var s="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function u(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function c(t){var e={exports:{}};return t(e,e.exports),e.exports}var l=c((function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r={attributeNames:{styleName:"className"},generateScopedName:"[path]___[name]__[local]___[hash:base64:5]",handleMissingStyleName:"throw"};e.default=r})),f=u(c((function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r,n=(r=l)&&r.__esModule?r:{default:r};var o=function(t,e){if("throw"===e)throw new Error(t);return"warn"===e&&console.warn(t),null};e.default=function(t,e,r){var a=Object.keys(e),i=r||{},s=i.handleMissingStyleName,u=void 0===s?n.default.handleMissingStyleName:s,c=i.autoResolveMultipleImports,l=void 0===c?n.default.autoResolveMultipleImports:c;return t?t.split(" ").filter((function(t){return t})).map((function(t){if(function(t){return-1!==t.indexOf(".")}(t))return function(t,e,r){var a=t.split("."),i=a[0],s=a[1],u=r||n.default.handleMissingStyleName;return s?e[i]?e[i][s]?e[i][s]:o("CSS module does not exist: "+s,u):o("CSS module import does not exist: "+i,u):o("Invalid style name: "+t,u)}(t,e,u);if(0===a.length)throw new Error("Cannot use styleName attribute for style name '"+t+"' without importing at least one stylesheet.");if(a.length>1){if(!l)throw new Error("Cannot use anonymous style name '"+t+"' with more than one stylesheet import without setting 'autoResolveMultipleImports' to true.");return function(t,e,r){var a=r||n.default.handleMissingStyleName,i=Object.keys(e).map((function(r){return e[r][t]&&r})).filter((function(t){return t}));if(i.length>1)throw new Error('Cannot resolve styleName "'+t+'" because it is present in multiple imports:\n\n\t'+i.join("\n\t")+'\n\nYou can resolve this by using a named import, e.g:\n\n\timport foo from "'+i[0]+'";\n\t<div styleName="foo.'+t+'" />\n\n');return 0===i.length?o("Could not resolve the styleName '"+t+"'.",a):e[i[0]][t]}(t,e,u)}var r=e[a[0]];return r[t]?r[t]:o("Could not resolve the styleName '"+t+"'.",u)})).filter((function(t){return t})).join(" "):""}})));c((function(t){var e=function(t){var e,r=Object.prototype,n=r.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",i=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function u(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,r){return t[e]=r}}function c(t,e,r,n){var o=e&&e.prototype instanceof m?e:m,a=Object.create(o.prototype),i=new S(n||[]);return a._invoke=function(t,e,r){var n=f;return function(o,a){if(n===p)throw new Error("Generator is already running");if(n===v){if("throw"===o)throw a;return I()}for(r.method=o,r.arg=a;;){var i=r.delegate;if(i){var s=x(i,r);if(s){if(s===d)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(n===f)throw n=v,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n=p;var u=l(t,e,r);if("normal"===u.type){if(n=r.done?v:h,u.arg===d)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(n=v,r.method="throw",r.arg=u.arg)}}}(t,r,i),a}function l(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=c;var f="suspendedStart",h="suspendedYield",p="executing",v="completed",d={};function m(){}function y(){}function g(){}var _={};u(_,a,(function(){return this}));var w=Object.getPrototypeOf,b=w&&w(w(L([])));b&&b!==r&&n.call(b,a)&&(_=b);var E=g.prototype=m.prototype=Object.create(_);function j(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function O(t,e){function r(o,a,i,s){var u=l(t[o],t,a);if("throw"!==u.type){var c=u.arg,f=c.value;return f&&"object"==typeof f&&n.call(f,"__await")?e.resolve(f.__await).then((function(t){r("next",t,i,s)}),(function(t){r("throw",t,i,s)})):e.resolve(f).then((function(t){c.value=t,i(c)}),(function(t){return r("throw",t,i,s)}))}s(u.arg)}var o;this._invoke=function(t,n){function a(){return new e((function(e,o){r(t,n,e,o)}))}return o=o?o.then(a,a):a()}}function 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 d;r.method="throw",r.arg=new TypeError("The iterator does not provide a 'throw' method")}return d}var o=l(n,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,d;var 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,d):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,d)}function q(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function N(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function S(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(q,this),this.reset(!0)}function L(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:I}}function I(){return{value:e,done:!0}}return y.prototype=g,u(E,"constructor",g),u(g,"constructor",y),y.displayName=u(g,s,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===y||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,g):(t.__proto__=g,u(t,s,"GeneratorFunction")),t.prototype=Object.create(E),t},t.awrap=function(t){return{__await:t}},j(O.prototype),u(O.prototype,i,(function(){return this})),t.AsyncIterator=O,t.async=function(e,r,n,o,a){void 0===a&&(a=Promise);var i=new O(c(e,r,n,o),a);return t.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},j(E),u(E,s,"Generator"),u(E,a,(function(){return this})),u(E,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=[];for(var r in t)e.push(r);return e.reverse(),function r(){for(;e.length;){var n=e.pop();if(n in t)return r.value=n,r.done=!1,r}return r.done=!0,r}},t.values=L,S.prototype={constructor:S,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(N),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function o(n,o){return s.type="throw",s.arg=t,r.next=n,o&&(r.method="next",r.arg=e),!!o}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],s=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var u=n.call(i,"catchLoc"),c=n.call(i,"finallyLoc");if(u&&c){if(this.prev<i.catchLoc)return o(i.catchLoc,!0);if(this.prev<i.finallyLoc)return o(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return o(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return o(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,d):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),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),N(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;N(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:L(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),d}},t}(t.exports);try{regeneratorRuntime=e}catch(t){"object"==typeof globalThis?globalThis.regeneratorRuntime=e:Function("r","regeneratorRuntime = r")(e)}}));var h="object"==typeof s&&s&&s.Object===Object&&s,p="object"==typeof self&&self&&self.Object===Object&&self,v=h||p||Function("return this")(),d=v.Symbol,m=Object.prototype,y=m.hasOwnProperty,g=m.toString,_=d?d.toStringTag:void 0;var w=function(t){var e=y.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},b=Object.prototype.toString;var E=function(t){return b.call(t)},j=d?d.toStringTag:void 0;var O=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":j&&j in Object(t)?w(t):E(t)};var x=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)};var q,N=function(t){if(!x(t))return!1;var e=O(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e},S=v["__core-js_shared__"],L=(q=/[^.]+$/.exec(S&&S.keys&&S.keys.IE_PROTO||""))?"Symbol(src)_1."+q:"";var I=function(t){return!!L&&L in t},A=Function.prototype.toString;var k=function(t){if(null!=t){try{return A.call(t)}catch(t){}try{return t+""}catch(t){}}return""},T=/^\[object .+?Constructor\]$/,P=Function.prototype,F=Object.prototype,M=P.toString,z=F.hasOwnProperty,C=RegExp("^"+M.call(z).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var R=function(t){return!(!x(t)||I(t))&&(N(t)?C:T).test(k(t))};var G=function(t,e){return null==t?void 0:t[e]};var $=function(t,e){var r=G(t,e);return R(r)?r:void 0},K=$(Object,"create");var B=function(){this.__data__=K?K(null):{},this.size=0};var Y=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},H=Object.prototype.hasOwnProperty;var Z=function(t){var e=this.__data__;if(K){var r=e[t];return"__lodash_hash_undefined__"===r?void 0:r}return H.call(e,t)?e[t]:void 0},J=Object.prototype.hasOwnProperty;var Q=function(t){var e=this.__data__;return K?void 0!==e[t]:J.call(e,t)};var U=function(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=K&&void 0===e?"__lodash_hash_undefined__":e,this};function D(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])}}D.prototype.clear=B,D.prototype.delete=Y,D.prototype.get=Z,D.prototype.has=Q,D.prototype.set=U;var V=D;var W=function(){this.__data__=[],this.size=0};var X=function(t,e){return t===e||t!=t&&e!=e};var tt=function(t,e){for(var r=t.length;r--;)if(X(t[r][0],e))return r;return-1},et=Array.prototype.splice;var rt=function(t){var e=this.__data__,r=tt(e,t);return!(r<0)&&(r==e.length-1?e.pop():et.call(e,r,1),--this.size,!0)};var nt=function(t){var e=this.__data__,r=tt(e,t);return r<0?void 0:e[r][1]};var ot=function(t){return tt(this.__data__,t)>-1};var at=function(t,e){var r=this.__data__,n=tt(r,t);return n<0?(++this.size,r.push([t,e])):r[n][1]=e,this};function it(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}it.prototype.clear=W,it.prototype.delete=rt,it.prototype.get=nt,it.prototype.has=ot,it.prototype.set=at;var st=it,ut=$(v,"Map");var ct=function(){this.size=0,this.__data__={hash:new V,map:new(ut||st),string:new V}};var lt=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t};var ft=function(t,e){var r=t.__data__;return lt(e)?r["string"==typeof e?"string":"hash"]:r.map};var ht=function(t){var e=ft(this,t).delete(t);return this.size-=e?1:0,e};var pt=function(t){return ft(this,t).get(t)};var vt=function(t){return ft(this,t).has(t)};var dt=function(t,e){var r=ft(this,t),n=r.size;return r.set(t,e),this.size+=r.size==n?0:1,this};function mt(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}mt.prototype.clear=ct,mt.prototype.delete=ht,mt.prototype.get=pt,mt.prototype.has=vt,mt.prototype.set=dt;var yt=mt;function gt(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var r=function(){var n=arguments,o=e?e.apply(this,n):n[0],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(gt.Cache||yt),r}gt.Cache=yt;var _t=gt;var wt=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,bt=/\\(\\)?/g;(function(t){var e=_t(t,(function(t){return 500===r.size&&r.clear(),t})),r=e.cache})((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(wt,(function(t,r,n,o){e.push(n?o.replace(bt,"$1"):r||t)})),e}));var Et=d?d.prototype:void 0;Et&&Et.toString;var jt=function(t){var e=function(t){return{r:parseInt(t.slice(1,3),16),g:parseInt(t.slice(3,5),16),b:parseInt(t.slice(5,7),16)}}(t);return.299*e.r+.587*e.g+.114*e.b},Ot=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"rgba(255, 255, 255, 0)",e=t.match(/^rgba?[\s+]?\([\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?/i);return e&&4===e.length?"#"+("0"+parseInt(e[1],10).toString(16)).slice(-2)+("0"+parseInt(e[2],10).toString(16)).slice(-2)+("0"+parseInt(e[3],10).toString(16)).slice(-2):t},xt=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:Ot(t),n=jt(r)<155?"light":"dark";return n},qt=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},Nt=n.shape({"sketches-host":n.string,"cdn-name":n.string,"cdn-image":n.string}),St=n.shape({headline:n.string,"last-published-at":n.number,subheadline:n.string}),Lt=["element","render"],It=function(e){return function(r){var n=r.element,o=r.render,s=i(r,Lt);return n?o&&"function"==typeof o?o(r):t.createElement(e,a({},s,{element:n})):null}};It.propTypes={StoryElement:n.element};var At=r(),kt=["element","template","css","story","config","opts","render"],Tt={"./question-answer.m.css":{viewports:'"../../../../../assets/stylesheets/viewports.m.css"',mobile:"768px","qa-withAuthorImage":"question-answer-m_qa-withAuthorImage__1JB3N","a-element":"question-answer-m_a-element__BTxfl","qa-default":"question-answer-m_qa-default__2fGK3","q-element":"question-answer-m_q-element__1ZA5d",dark:"question-answer-m_dark__O4Mnm",hidden:"question-answer-m_hidden__K0n4n",curveIcon:"question-answer-m_curveIcon__64641",edgeIcon:"question-answer-m_edgeIcon__3js6c",labelAttribution:"question-answer-m_labelAttribution__Rq-v3",light:"question-answer-m_light__3Iqv4",content:"question-answer-m_content__16Ng7"}},Pt=function(r){var n=r.element,s=r.template,u=r.css,c=void 0===u?{}:u;r.story,r.config;var l=r.opts,h=void 0===l?{}:l;r.render;var p=i(r,kt),v=e(At)||{},d=xt(v.theme);if(!n)return null;var m=h.type,y=h.defaultIconType,g=h.isExternalLink,_=void 0===g||g,w=c.iconColor,b=function(t,e){switch(t){case"q-and-a":var r=o(e,["metadata"]);return{question:r.question,answer:r.answer,questionAttribution:o(e,["metadata","interviewer","avatar-url"]),answerAttribution:o(e,["metadata","interviewee","avatar-url"])};case"question":return{question:o(e,["text"]),questionAttribution:o(e,["metadata","interviewer","avatar-url"])};case"answer":return{answer:o(e,["text"]),answerAttribution:o(e,["metadata","interviewee","avatar-url"])}}}(m,n),E=b.question,j=b.answer,O=b.questionAttribution,x=b.answerAttribution,q=xt(w),N=E&&(_&&qt(E)||E),S=j&&(_&&qt(j)||j),L="withAuthorImage"===s,I=L?"qa-withAuthorImage":"qa-default",A="curve"===y?"curveIcon":"edgeIcon",k=L?O&&t.createElement(t.Fragment,null,t.createElement("div",{className:"question-answer-m_labelAttribution__Rq-v3"},t.createElement("img",{src:O,loading:"lazy"})),t.createElement("span",{className:"question-answer-m_hidden__K0n4n"})):t.createElement("div",{"data-test-id":A,style:{backgroundColor:w},className:f("".concat(A," ").concat(q),Tt)},"Q"),T=L?x&&t.createElement(t.Fragment,null,t.createElement("div",{className:"question-answer-m_labelAttribution__Rq-v3"},t.createElement("img",{src:x,loading:"lazy"})),t.createElement("span",{className:"question-answer-m_hidden__K0n4n"})):t.createElement("div",{"data-test-id":A,style:{backgroundColor:w},className:f("".concat(A," ").concat(q),Tt)},"A");return t.createElement("div",a({"data-test-id":"question-answer"},p,{className:"arrow-component arr-custom-style arr--qa-element "+f(I,Tt)+" "+(p&&p.className||"")}),"answer"!==m&&t.createElement("div",{className:"question-answer-m_q-element__1ZA5d","data-test-id":"question"},k,t.createElement("div",{dangerouslySetInnerHTML:{__html:N},className:f("content ".concat(d),Tt)})),"question"!==m&&t.createElement("div",{className:"question-answer-m_a-element__BTxfl","data-test-id":"answer"},T,t.createElement("div",{dangerouslySetInnerHTML:{__html:S},className:f("content ".concat(d),Tt)})))};Pt.propTypes={element:n.shape({metadata:n.shape({interviewer:n.shape({"avatar-url":n.string}),interviewee:n.shape({"avatar-url":n.string}),question:n.string,answer:n.string}),text:n.string}),opts:n.shape({type:n.string,defaultIconType:n.string,isExternalLink:n.bool}),template:n.string,css:n.object,config:Nt,story:St,render:n.func};var Ft=It(Pt);export{Ft as QuestionAnswer};
|
package/Quote/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import t,{useContext as e,createContext as r}from"react";import n from"prop-types";import"react-timeago";import"date-fns-tz";function o(){return o=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},o.apply(this,arguments)}function i(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r,n,o={},i=Object.keys(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||(o[r]=t[r]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}var a="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function u(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function c(t){var e={exports:{}};return t(e,e.exports),e.exports}var s=c((function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r={attributeNames:{styleName:"className"},generateScopedName:"[path]___[name]__[local]___[hash:base64:5]",handleMissingStyleName:"throw"};e.default=r})),l=u(c((function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r,n=(r=s)&&r.__esModule?r:{default:r};var o=function(t,e){if("throw"===e)throw new Error(t);return"warn"===e&&console.warn(t),null};e.default=function(t,e,r){var i=Object.keys(e),a=r||{},u=a.handleMissingStyleName,c=void 0===u?n.default.handleMissingStyleName:u,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],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(!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,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(" "):""}}))),f=["element","render"],h=function(e){return function(r){var n=r.element,a=r.render,u=i(r,f);return n?a&&"function"==typeof a?a(r):t.createElement(e,o({},u,{element:n})):null}};h.propTypes={StoryElement:n.element},c((function(t){var e=function(t){var e,r=Object.prototype,n=r.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",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 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 T()}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=l(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 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",d={};function y(){}function m(){}function g(){}var _={};c(_,i,(function(){return this}));var b=Object.getPrototypeOf,w=b&&b(b(q([])));w&&w!==r&&n.call(w,i)&&(_=w);var O=g.prototype=y.prototype=Object.create(_);function j(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=l(t[o],t,i);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,a,u)}),(function(t){r("throw",t,a,u)})):e.resolve(f).then((function(t){s.value=t,a(s)}),(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=l(n,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,d;var i=o.arg;return i?i.done?(r[t.resultName]=i.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,d):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,d)}function 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 q(t){if(t){var r=t[i];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,a=function r(){for(;++o<t.length;)if(n.call(t,o))return r.value=t[o],r.done=!1,r;return r.value=e,r.done=!0,r};return a.next=a}}return{next:T}}function T(){return{value:e,done:!0}}return m.prototype=g,c(O,"constructor",g),c(g,"constructor",m),m.displayName=c(g,u,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===m||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,g):(t.__proto__=g,c(t,u,"GeneratorFunction")),t.prototype=Object.create(O),t},t.awrap=function(t){return{__await:t}},j(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(s(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},j(O),c(O,u,"Generator"),c(O,i,(function(){return this})),c(O,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=[];for(var r in t)e.push(r);return e.reverse(),function r(){for(;e.length;){var n=e.pop();if(n in t)return r.value=n,r.done=!1,r}return r.done=!0,r}},t.values=q,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"),s=n.call(a,"finallyLoc");if(c&&s){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(!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,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:q(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 p="object"==typeof a&&a&&a.Object===Object&&a,v="object"==typeof self&&self&&self.Object===Object&&self,d=p||v||Function("return this")(),y=d.Symbol,m=Object.prototype,g=m.hasOwnProperty,_=m.toString,b=y?y.toStringTag:void 0;var w=function(t){var e=g.call(t,b),r=t[b];try{t[b]=void 0;var n=!0}catch(t){}var o=_.call(t);return n&&(e?t[b]=r:delete t[b]),o},O=Object.prototype.toString;var j=function(t){return O.call(t)},x=y?y.toStringTag:void 0;var E=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":x&&x in Object(t)?w(t):j(t)};var S=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)};var L,N=function(t){if(!S(t))return!1;var e=E(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e},q=d["__core-js_shared__"],T=(L=/[^.]+$/.exec(q&&q.keys&&q.keys.IE_PROTO||""))?"Symbol(src)_1."+L:"";var P=function(t){return!!T&&T in t},k=Function.prototype.toString;var I=function(t){if(null!=t){try{return k.call(t)}catch(t){}try{return t+""}catch(t){}}return""},M=/^\[object .+?Constructor\]$/,F=Function.prototype,z=Object.prototype,C=F.toString,G=z.hasOwnProperty,$=RegExp("^"+C.call(G).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var A=function(t){return!(!S(t)||P(t))&&(N(t)?$:M).test(I(t))};var R=function(t,e){return null==t?void 0:t[e]};var Y=function(t,e){var r=R(t,e);return A(r)?r:void 0},D=Y(Object,"create");var H=function(){this.__data__=D?D(null):{},this.size=0};var K=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},Q=Object.prototype.hasOwnProperty;var U=function(t){var e=this.__data__;if(D){var r=e[t];return"__lodash_hash_undefined__"===r?void 0:r}return Q.call(e,t)?e[t]:void 0},X=Object.prototype.hasOwnProperty;var Z=function(t){var e=this.__data__;return D?void 0!==e[t]:X.call(e,t)};var B=function(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=D&&void 0===e?"__lodash_hash_undefined__":e,this};function J(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])}}J.prototype.clear=H,J.prototype.delete=K,J.prototype.get=U,J.prototype.has=Z,J.prototype.set=B;var V=J;var W=function(){this.__data__=[],this.size=0};var tt=function(t,e){return t===e||t!=t&&e!=e};var et=function(t,e){for(var r=t.length;r--;)if(tt(t[r][0],e))return r;return-1},rt=Array.prototype.splice;var nt=function(t){var e=this.__data__,r=et(e,t);return!(r<0)&&(r==e.length-1?e.pop():rt.call(e,r,1),--this.size,!0)};var ot=function(t){var e=this.__data__,r=et(e,t);return r<0?void 0:e[r][1]};var it=function(t){return et(this.__data__,t)>-1};var at=function(t,e){var r=this.__data__,n=et(r,t);return n<0?(++this.size,r.push([t,e])):r[n][1]=e,this};function 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=W,ut.prototype.delete=nt,ut.prototype.get=ot,ut.prototype.has=it,ut.prototype.set=at;var ct=ut,st=Y(d,"Map");var lt=function(){this.size=0,this.__data__={hash:new V,map:new(st||ct),string:new V}};var ft=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t};var ht=function(t,e){var r=t.__data__;return ft(e)?r["string"==typeof e?"string":"hash"]:r.map};var pt=function(t){var e=ht(this,t).delete(t);return this.size-=e?1:0,e};var vt=function(t){return ht(this,t).get(t)};var dt=function(t){return ht(this,t).has(t)};var yt=function(t,e){var r=ht(this,t),n=r.size;return r.set(t,e),this.size+=r.size==n?0:1,this};function mt(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}mt.prototype.clear=lt,mt.prototype.delete=pt,mt.prototype.get=vt,mt.prototype.has=dt,mt.prototype.set=yt;var gt=mt;function _t(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var r=function(){var n=arguments,o=e?e.apply(this,n):n[0],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(_t.Cache||gt),r}_t.Cache=gt;var bt=_t;var wt=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ot=/\\(\\)?/g;(function(t){var e=bt(t,(function(t){return 500===r.size&&r.clear(),t})),r=e.cache})((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(wt,(function(t,r,n,o){e.push(n?o.replace(Ot,"$1"):r||t)})),e}));var jt=y?y.prototype:void 0;jt&&jt.toString;var xt=function(t){var e=function(t){return{r:parseInt(t.slice(1,3),16),g:parseInt(t.slice(3,5),16),b:parseInt(t.slice(5,7),16)}}(t);return.299*e.r+.587*e.g+.114*e.b},Et=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"rgba(255, 255, 255, 0)",e=t.match(/^rgba?[\s+]?\([\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?/i);return e&&4===e.length?"#"+("0"+parseInt(e[1],10).toString(16)).slice(-2)+("0"+parseInt(e[2],10).toString(16)).slice(-2)+("0"+parseInt(e[3],10).toString(16)).slice(-2):t},St=n.shape({"sketches-host":n.string,"cdn-name":n.string,"cdn-image":n.string}),Lt=n.shape({headline:n.string,"last-published-at":n.number,subheadline:n.string}),Nt=r(),qt=["element","template","css","story","config","render"],Tt={"./quote.m.css":{viewports:'"../../../../../assets/stylesheets/viewports.m.css"',mobile:"768px",quote:"quote-m_quote__13tTt",text:"quote-m_text__2hXSE","quote-borderNone":"quote-m_quote-borderNone__2EuoK","quote-borderTopSmall":"quote-m_quote-borderTopSmall__2DN-3","quote-borderLeft":"quote-m_quote-borderLeft__3QaAY",dark:"quote-m_dark__1migZ",light:"quote-m_light__30NnM",attribution:"quote-m_attribution__20Y6O",line:"quote-m_line__3gtoE"}},Pt=function(r){var n=r.element,a=r.template,u=void 0===a?"":a,c=r.css,s=void 0===c?{}:c;r.story,r.config,r.render;var f=i(r,qt),h=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:Et(t);return xt(e)<155?"light":"dark"}((e(Nt)||{}).theme),p=n.metadata,v=p.content,d=p.attribution;if(!v)return null;var y=s.borderColor,m="borderLeft"===u&&"4px solid ".concat(y),g=u?"quote-".concat(u):"quote";return t.createElement("div",o({"data-test-id":"quote"},f,{className:"arrow-component arr--quote-element "+l(g,Tt)+" "+(f&&f.className||"")}),"borderTopSmall"===u&&t.createElement("div",{className:"quote-m_line__3gtoE",style:y&&{backgroundColor:y}}),t.createElement("p",{style:y&&{borderLeft:m},dangerouslySetInnerHTML:{__html:v},className:l("text ".concat(h),Tt)}),t.createElement("p",{"data-test-id":"quote-attribution",className:l("attribution ".concat(h),Tt)},d))};Pt.propTypes={element:n.shape({metadata:n.shape({content:n.string,attribution:n.string})}),template:n.string,story:Lt,config:St,render:n.func,css:n.object};var kt=h(Pt);export{kt as Quote};
|
package/Reference/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import t,{useContext as e,createContext as r}from"react";import n from"prop-types";import"react-timeago";import"date-fns-tz";import{Link as o}from"@quintype/components";function i(){return i=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},i.apply(this,arguments)}function a(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r,n,o={},i=Object.keys(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||(o[r]=t[r]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}var c="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function s(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function u(t){var e={exports:{}};return t(e,e.exports),e.exports}var 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})),f=s(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,s=void 0===c?n.default.handleMissingStyleName:c,u=a.autoResolveMultipleImports,l=void 0===u?n.default.autoResolveMultipleImports:u;return t?t.split(" ").filter((function(t){return t})).map((function(t){if(function(t){return-1!==t.indexOf(".")}(t))return function(t,e,r){var i=t.split("."),a=i[0],c=i[1],s=r||n.default.handleMissingStyleName;return c?e[a]?e[a][c]?e[a][c]:o("CSS module does not exist: "+c,s):o("CSS module import does not exist: "+a,s):o("Invalid style name: "+t,s)}(t,e,s);if(0===i.length)throw new Error("Cannot use styleName attribute for style name '"+t+"' without importing at least one stylesheet.");if(i.length>1){if(!l)throw new Error("Cannot use anonymous style name '"+t+"' with more than one stylesheet import without setting 'autoResolveMultipleImports' to true.");return function(t,e,r){var i=r||n.default.handleMissingStyleName,a=Object.keys(e).map((function(r){return e[r][t]&&r})).filter((function(t){return t}));if(a.length>1)throw new Error('Cannot resolve styleName "'+t+'" because it is present in multiple imports:\n\n\t'+a.join("\n\t")+'\n\nYou can resolve this by using a named import, e.g:\n\n\timport foo from "'+a[0]+'";\n\t<div styleName="foo.'+t+'" />\n\n');return 0===a.length?o("Could not resolve the styleName '"+t+"'.",i):e[a[0]][t]}(t,e,s)}var r=e[i[0]];return r[t]?r[t]:o("Could not resolve the styleName '"+t+"'.",s)})).filter((function(t){return t})).join(" "):""}}))),h=["element","render"],p=function(e){return function(r){var n=r.element,o=r.render,c=a(r,h);return n?o&&"function"==typeof o?o(r):t.createElement(e,i({},c,{element:n})):null}};p.propTypes={StoryElement:n.element};var v=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 s(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(t){s=function(t,e,r){return t[e]=r}}function u(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 P()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var c=E(a,r);if(c){if(c===d)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 s=l(t,e,r);if("normal"===s.type){if(n=r.done?v:h,s.arg===d)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(n=v,r.method="throw",r.arg=s.arg)}}}(t,r,a),i}function l(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=u;var f="suspendedStart",h="suspendedYield",p="executing",v="completed",d={};function y(){}function m(){}function g(){}var _={};s(_,i,(function(){return this}));var w=Object.getPrototypeOf,b=w&&w(w(I([])));b&&b!==r&&n.call(b,i)&&(_=b);var O=g.prototype=y.prototype=Object.create(_);function j(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function x(t,e){function r(o,i,a,c){var s=l(t[o],t,i);if("throw"!==s.type){var u=s.arg,f=u.value;return f&&"object"==typeof f&&n.call(f,"__await")?e.resolve(f.__await).then((function(t){r("next",t,a,c)}),(function(t){r("throw",t,a,c)})):e.resolve(f).then((function(t){u.value=t,a(u)}),(function(t){return r("throw",t,a,c)}))}c(s.arg)}var o;this._invoke=function(t,n){function i(){return new e((function(e,o){r(t,n,e,o)}))}return o=o?o.then(i,i):i()}}function E(t,r){var n=t.iterator[r.method];if(n===e){if(r.delegate=null,"throw"===r.method){if(t.iterator.return&&(r.method="return",r.arg=e,E(t,r),"throw"===r.method))return d;r.method="throw",r.arg=new TypeError("The iterator does not provide a 'throw' method")}return d}var o=l(n,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,d;var i=o.arg;return i?i.done?(r[t.resultName]=i.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,d):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,d)}function 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 I(t){if(t){var r=t[i];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,a=function r(){for(;++o<t.length;)if(n.call(t,o))return r.value=t[o],r.done=!1,r;return r.value=e,r.done=!0,r};return a.next=a}}return{next:P}}function P(){return{value:e,done:!0}}return m.prototype=g,s(O,"constructor",g),s(g,"constructor",m),m.displayName=s(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,s(t,c,"GeneratorFunction")),t.prototype=Object.create(O),t},t.awrap=function(t){return{__await:t}},j(x.prototype),s(x.prototype,a,(function(){return this})),t.AsyncIterator=x,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new x(u(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},j(O),s(O,c,"Generator"),s(O,i,(function(){return this})),s(O,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=[];for(var r in t)e.push(r);return e.reverse(),function r(){for(;e.length;){var n=e.pop();if(n in t)return r.value=n,r.done=!1,r}return r.done=!0,r}},t.values=I,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 s=n.call(a,"catchLoc"),u=n.call(a,"finallyLoc");if(s&&u){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,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:I(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 d="object"==typeof c&&c&&c.Object===Object&&c,y="object"==typeof self&&self&&self.Object===Object&&self,m=d||y||Function("return this")(),g=m.Symbol,_=Object.prototype,w=_.hasOwnProperty,b=_.toString,O=g?g.toStringTag:void 0;var j=function(t){var e=w.call(t,O),r=t[O];try{t[O]=void 0;var n=!0}catch(t){}var o=b.call(t);return n&&(e?t[O]=r:delete t[O]),o},x=Object.prototype.toString;var E=function(t){return x.call(t)},S=g?g.toStringTag:void 0;var L=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":S&&S in Object(t)?j(t):E(t)};var N=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)};var I,P=function(t){if(!N(t))return!1;var e=L(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e},k=m["__core-js_shared__"],T=(I=/[^.]+$/.exec(k&&k.keys&&k.keys.IE_PROTO||""))?"Symbol(src)_1."+I:"";var F=function(t){return!!T&&T in t},z=Function.prototype.toString;var M=function(t){if(null!=t){try{return z.call(t)}catch(t){}try{return t+""}catch(t){}}return""},C=/^\[object .+?Constructor\]$/,G=Function.prototype,$=Object.prototype,R=G.toString,A=$.hasOwnProperty,Y=RegExp("^"+R.call(A).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var H=function(t){return!(!N(t)||F(t))&&(P(t)?Y:C).test(M(t))};var U=function(t,e){return null==t?void 0:t[e]};var q=function(t,e){var r=U(t,e);return H(r)?r:void 0},B=q(Object,"create");var Z=function(){this.__data__=B?B(null):{},this.size=0};var D=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},J=Object.prototype.hasOwnProperty;var K=function(t){var e=this.__data__;if(B){var r=e[t];return"__lodash_hash_undefined__"===r?void 0:r}return J.call(e,t)?e[t]:void 0},Q=Object.prototype.hasOwnProperty;var V=function(t){var e=this.__data__;return B?void 0!==e[t]:Q.call(e,t)};var W=function(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=B&&void 0===e?"__lodash_hash_undefined__":e,this};function X(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}X.prototype.clear=Z,X.prototype.delete=D,X.prototype.get=K,X.prototype.has=V,X.prototype.set=W;var tt=X;var et=function(){this.__data__=[],this.size=0};var rt=function(t,e){return t===e||t!=t&&e!=e};var nt=function(t,e){for(var r=t.length;r--;)if(rt(t[r][0],e))return r;return-1},ot=Array.prototype.splice;var it=function(t){var e=this.__data__,r=nt(e,t);return!(r<0)&&(r==e.length-1?e.pop():ot.call(e,r,1),--this.size,!0)};var at=function(t){var e=this.__data__,r=nt(e,t);return r<0?void 0:e[r][1]};var ct=function(t){return nt(this.__data__,t)>-1};var st=function(t,e){var r=this.__data__,n=nt(r,t);return n<0?(++this.size,r.push([t,e])):r[n][1]=e,this};function 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=et,ut.prototype.delete=it,ut.prototype.get=at,ut.prototype.has=ct,ut.prototype.set=st;var lt=ut,ft=q(m,"Map");var ht=function(){this.size=0,this.__data__={hash:new tt,map:new(ft||lt),string:new tt}};var pt=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t};var vt=function(t,e){var r=t.__data__;return pt(e)?r["string"==typeof e?"string":"hash"]:r.map};var dt=function(t){var e=vt(this,t).delete(t);return this.size-=e?1:0,e};var yt=function(t){return vt(this,t).get(t)};var mt=function(t){return vt(this,t).has(t)};var gt=function(t,e){var r=vt(this,t),n=r.size;return r.set(t,e),this.size+=r.size==n?0:1,this};function _t(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}_t.prototype.clear=ht,_t.prototype.delete=dt,_t.prototype.get=yt,_t.prototype.has=mt,_t.prototype.set=gt;var wt=_t;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||wt),r}bt.Cache=wt;var Ot=bt;var jt=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,xt=/\\(\\)?/g;(function(t){var e=Ot(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(xt,"$1"):r||t)})),e}));var Et=g?g.prototype:void 0;Et&&Et.toString;var St=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},Lt=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},Nt=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 It=["element","config","opts"],Pt={"./reference.m.css":{viewports:'"../../../../../assets/stylesheets/viewports.m.css"',mobile:"768px",tablet:"992px",wrapper:"reference-m_wrapper__1C4Ot",name:"reference-m_name__24IwG",description:"reference-m_description__2x3Io",dark:"reference-m_dark__3Zlnx",light:"reference-m_light__1B8Ud"}},kt=function(r){var n=r.element;r.config;var c=r.opts,s=void 0===c?{}:c,u=a(r,It);if(!n)return null;var l=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:Lt(t);return St(e)<155?"light":"dark"}((e(v)||{}).theme),h=n["story-elements"]&&n["story-elements"].map((function(t){return t.metadata})),p=s.showHeadline,d=void 0===p||p,y=s.headlineText;return t.createElement("div",i({className:"arrow-component arr--reference-element"},u),h&&h.map((function(e,r){var n=e.name,i=void 0===n?"":n,a=e.description,c=void 0===a?"":a,s=e.url;return t.createElement("div",{key:r,className:f("wrapper ".concat(l),Pt)},t.createElement(o,{href:s,"aria-label":"reference-headline"},d&&t.createElement("div",{className:"reference-m_name__24IwG","data-test-id":"ref-headline"},y||i),t.createElement("div",{className:"reference-m_description__2x3Io"},c)))})))};kt.propTypes={element:n.shape({"story-elements":n.arrayOf(n.shape({metadata:n.shape({name:n.string,description:n.string,url:n.string})}))}),opts:n.shape({hideHeadline:n.bool}),config:Nt};var Tt=p(kt);export{Tt as Reference};
|
package/ScrollSnap/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import t,{useContext as r,createContext as e,useState as n,useRef as o,useEffect as i}from"react";import{useSelector as a}from"react-redux";import c,{number as l,string as u,func as s,array as f,bool as h}from"prop-types";import"react-timeago";import"date-fns-tz";function d(t,r){(null==r||r>t.length)&&(r=t.length);for(var e=0,n=new Array(r);e<r;e++)n[e]=t[e];return n}function p(t,r){return function(t){if(Array.isArray(t))return t}(t)||function(t,r){var e=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=e){var n,o,i=[],a=!0,c=!1;try{for(e=e.call(t);!(a=(n=e.next()).done)&&(i.push(n.value),!r||i.length!==r);a=!0);}catch(t){c=!0,o=t}finally{try{a||null==e.return||e.return()}finally{if(c)throw o}}return i}}(t,r)||function(t,r){if(t){if("string"==typeof t)return d(t,r);var e=Object.prototype.toString.call(t).slice(8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?Array.from(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?d(t,r):void 0}}(t,r)||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 v(t,r,e){return r in t?Object.defineProperty(t,r,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[r]=e,t}var y=Array.isArray,g="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function m(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function _(t){var r={exports:{}};return t(r,r.exports),r.exports}var w="object"==typeof g&&g&&g.Object===Object&&g,b="object"==typeof self&&self&&self.Object===Object&&self,E=w||b||Function("return this")(),x=E.Symbol,j=Object.prototype,O=j.hasOwnProperty,I=j.toString,k=x?x.toStringTag:void 0;var S=function(t){var r=O.call(t,k),e=t[k];try{t[k]=void 0;var n=!0}catch(t){}var o=I.call(t);return n&&(r?t[k]=e:delete t[k]),o},N=Object.prototype.toString;var L=function(t){return N.call(t)},T=x?x.toStringTag:void 0;var M=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":T&&T in Object(t)?S(t):L(t)};var C=function(t){return null!=t&&"object"==typeof t};var P=function(t){return"symbol"==typeof t||C(t)&&"[object Symbol]"==M(t)},z=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,A=/^\w*$/;var F=function(t,r){if(y(t))return!1;var e=typeof t;return!("number"!=e&&"symbol"!=e&&"boolean"!=e&&null!=t&&!P(t))||(A.test(t)||!z.test(t)||null!=r&&t in Object(r))};var R=function(t){var r=typeof t;return null!=t&&("object"==r||"function"==r)};var G,$=function(t){if(!R(t))return!1;var r=M(t);return"[object Function]"==r||"[object GeneratorFunction]"==r||"[object AsyncFunction]"==r||"[object Proxy]"==r},V=E["__core-js_shared__"],D=(G=/[^.]+$/.exec(V&&V.keys&&V.keys.IE_PROTO||""))?"Symbol(src)_1."+G:"";var H=function(t){return!!D&&D in t},U=Function.prototype.toString;var W=function(t){if(null!=t){try{return U.call(t)}catch(t){}try{return t+""}catch(t){}}return""},q=/^\[object .+?Constructor\]$/,B=Function.prototype,X=Object.prototype,Y=B.toString,J=X.hasOwnProperty,K=RegExp("^"+Y.call(J).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var Z=function(t){return!(!R(t)||H(t))&&($(t)?K:q).test(W(t))};var Q=function(t,r){return null==t?void 0:t[r]};var tt=function(t,r){var e=Q(t,r);return Z(e)?e:void 0},rt=tt(Object,"create");var et=function(){this.__data__=rt?rt(null):{},this.size=0};var nt=function(t){var r=this.has(t)&&delete this.__data__[t];return this.size-=r?1:0,r},ot=Object.prototype.hasOwnProperty;var it=function(t){var r=this.__data__;if(rt){var e=r[t];return"__lodash_hash_undefined__"===e?void 0:e}return ot.call(r,t)?r[t]:void 0},at=Object.prototype.hasOwnProperty;var ct=function(t){var r=this.__data__;return rt?void 0!==r[t]:at.call(r,t)};var lt=function(t,r){var e=this.__data__;return this.size+=this.has(t)?0:1,e[t]=rt&&void 0===r?"__lodash_hash_undefined__":r,this};function ut(t){var r=-1,e=null==t?0:t.length;for(this.clear();++r<e;){var n=t[r];this.set(n[0],n[1])}}ut.prototype.clear=et,ut.prototype.delete=nt,ut.prototype.get=it,ut.prototype.has=ct,ut.prototype.set=lt;var st=ut;var ft=function(){this.__data__=[],this.size=0};var ht=function(t,r){return t===r||t!=t&&r!=r};var dt=function(t,r){for(var e=t.length;e--;)if(ht(t[e][0],r))return e;return-1},pt=Array.prototype.splice;var vt=function(t){var r=this.__data__,e=dt(r,t);return!(e<0)&&(e==r.length-1?r.pop():pt.call(r,e,1),--this.size,!0)};var yt=function(t){var r=this.__data__,e=dt(r,t);return e<0?void 0:r[e][1]};var gt=function(t){return dt(this.__data__,t)>-1};var mt=function(t,r){var e=this.__data__,n=dt(e,t);return n<0?(++this.size,e.push([t,r])):e[n][1]=r,this};function _t(t){var r=-1,e=null==t?0:t.length;for(this.clear();++r<e;){var n=t[r];this.set(n[0],n[1])}}_t.prototype.clear=ft,_t.prototype.delete=vt,_t.prototype.get=yt,_t.prototype.has=gt,_t.prototype.set=mt;var wt=_t,bt=tt(E,"Map");var Et=function(){this.size=0,this.__data__={hash:new st,map:new(bt||wt),string:new st}};var xt=function(t){var r=typeof t;return"string"==r||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==t:null===t};var jt=function(t,r){var e=t.__data__;return xt(r)?e["string"==typeof r?"string":"hash"]:e.map};var Ot=function(t){var r=jt(this,t).delete(t);return this.size-=r?1:0,r};var It=function(t){return jt(this,t).get(t)};var kt=function(t){return jt(this,t).has(t)};var St=function(t,r){var e=jt(this,t),n=e.size;return e.set(t,r),this.size+=e.size==n?0:1,this};function Nt(t){var r=-1,e=null==t?0:t.length;for(this.clear();++r<e;){var n=t[r];this.set(n[0],n[1])}}Nt.prototype.clear=Et,Nt.prototype.delete=Ot,Nt.prototype.get=It,Nt.prototype.has=kt,Nt.prototype.set=St;var Lt=Nt;function Tt(t,r){if("function"!=typeof t||null!=r&&"function"!=typeof r)throw new TypeError("Expected a function");var e=function(){var n=arguments,o=r?r.apply(this,n):n[0],i=e.cache;if(i.has(o))return i.get(o);var a=t.apply(this,n);return e.cache=i.set(o,a)||i,a};return e.cache=new(Tt.Cache||Lt),e}Tt.Cache=Lt;var Mt=Tt;var Ct=function(t){var r=Mt(t,(function(t){return 500===e.size&&e.clear(),t})),e=r.cache;return r},Pt=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,zt=/\\(\\)?/g,At=Ct((function(t){var r=[];return 46===t.charCodeAt(0)&&r.push(""),t.replace(Pt,(function(t,e,n,o){r.push(n?o.replace(zt,"$1"):e||t)})),r})),Ft=At;var Rt=function(t,r){for(var e=-1,n=null==t?0:t.length,o=Array(n);++e<n;)o[e]=r(t[e],e,t);return o},Gt=x?x.prototype:void 0,$t=Gt?Gt.toString:void 0;var Vt=function t(r){if("string"==typeof r)return r;if(y(r))return Rt(r,t)+"";if(P(r))return $t?$t.call(r):"";var e=r+"";return"0"==e&&1/r==-Infinity?"-0":e};var Dt=function(t){return null==t?"":Vt(t)};var Ht=function(t,r){return y(t)?t:F(t,r)?[t]:Ft(Dt(t))};var Ut=function(t){if("string"==typeof t||P(t))return t;var r=t+"";return"0"==r&&1/t==-Infinity?"-0":r};var Wt=function(t,r){for(var e=0,n=(r=Ht(r,t)).length;null!=t&&e<n;)t=t[Ut(r[e++])];return e&&e==n?t:void 0};var qt=function(t,r,e){var n=null==t?void 0:Wt(t,r);return void 0===n?e:n},Bt=_((function(t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var e={attributeNames:{styleName:"className"},generateScopedName:"[path]___[name]__[local]___[hash:base64:5]",handleMissingStyleName:"throw"};r.default=e})),Xt=m(_((function(t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var e,n=(e=Bt)&&e.__esModule?e:{default:e};var o=function(t,r){if("throw"===r)throw new Error(t);return"warn"===r&&console.warn(t),null};r.default=function(t,r,e){var i=Object.keys(r),a=e||{},c=a.handleMissingStyleName,l=void 0===c?n.default.handleMissingStyleName:c,u=a.autoResolveMultipleImports,s=void 0===u?n.default.autoResolveMultipleImports:u;return t?t.split(" ").filter((function(t){return t})).map((function(t){if(function(t){return-1!==t.indexOf(".")}(t))return function(t,r,e){var i=t.split("."),a=i[0],c=i[1],l=e||n.default.handleMissingStyleName;return c?r[a]?r[a][c]?r[a][c]:o("CSS module does not exist: "+c,l):o("CSS module import does not exist: "+a,l):o("Invalid style name: "+t,l)}(t,r,l);if(0===i.length)throw new Error("Cannot use styleName attribute for style name '"+t+"' without importing at least one stylesheet.");if(i.length>1){if(!s)throw new Error("Cannot use anonymous style name '"+t+"' with more than one stylesheet import without setting 'autoResolveMultipleImports' to true.");return function(t,r,e){var i=e||n.default.handleMissingStyleName,a=Object.keys(r).map((function(e){return r[e][t]&&e})).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):r[a[0]][t]}(t,r,l)}var e=r[i[0]];return e[t]?e[t]:o("Could not resolve the styleName '"+t+"'.",l)})).filter((function(t){return t})).join(" "):""}})));_((function(t){var r=function(t){var r,e=Object.prototype,n=e.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function l(t,r,e){return Object.defineProperty(t,r,{value:e,enumerable:!0,configurable:!0,writable:!0}),t[r]}try{l({},"")}catch(t){l=function(t,r,e){return t[r]=e}}function u(t,r,e,n){var o=r&&r.prototype instanceof y?r:y,i=Object.create(o.prototype),a=new S(n||[]);return i._invoke=function(t,r,e){var n=f;return function(o,i){if(n===d)throw new Error("Generator is already running");if(n===p){if("throw"===o)throw i;return L()}for(e.method=o,e.arg=i;;){var a=e.delegate;if(a){var c=O(a,e);if(c){if(c===v)continue;return c}}if("next"===e.method)e.sent=e._sent=e.arg;else if("throw"===e.method){if(n===f)throw n=p,e.arg;e.dispatchException(e.arg)}else"return"===e.method&&e.abrupt("return",e.arg);n=d;var l=s(t,r,e);if("normal"===l.type){if(n=e.done?p:h,l.arg===v)continue;return{value:l.arg,done:e.done}}"throw"===l.type&&(n=p,e.method="throw",e.arg=l.arg)}}}(t,e,a),i}function s(t,r,e){try{return{type:"normal",arg:t.call(r,e)}}catch(t){return{type:"throw",arg:t}}}t.wrap=u;var f="suspendedStart",h="suspendedYield",d="executing",p="completed",v={};function y(){}function g(){}function m(){}var _={};l(_,i,(function(){return this}));var w=Object.getPrototypeOf,b=w&&w(w(N([])));b&&b!==e&&n.call(b,i)&&(_=b);var E=m.prototype=y.prototype=Object.create(_);function x(t){["next","throw","return"].forEach((function(r){l(t,r,(function(t){return this._invoke(r,t)}))}))}function j(t,r){function e(o,i,a,c){var l=s(t[o],t,i);if("throw"!==l.type){var u=l.arg,f=u.value;return f&&"object"==typeof f&&n.call(f,"__await")?r.resolve(f.__await).then((function(t){e("next",t,a,c)}),(function(t){e("throw",t,a,c)})):r.resolve(f).then((function(t){u.value=t,a(u)}),(function(t){return e("throw",t,a,c)}))}c(l.arg)}var o;this._invoke=function(t,n){function i(){return new r((function(r,o){e(t,n,r,o)}))}return o=o?o.then(i,i):i()}}function O(t,e){var n=t.iterator[e.method];if(n===r){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=r,O(t,e),"throw"===e.method))return v;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return v}var o=s(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,v;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=r),e.delegate=null,v):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,v)}function I(t){var r={tryLoc:t[0]};1 in t&&(r.catchLoc=t[1]),2 in t&&(r.finallyLoc=t[2],r.afterLoc=t[3]),this.tryEntries.push(r)}function k(t){var r=t.completion||{};r.type="normal",delete r.arg,t.completion=r}function S(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(I,this),this.reset(!0)}function N(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,a=function e(){for(;++o<t.length;)if(n.call(t,o))return e.value=t[o],e.done=!1,e;return e.value=r,e.done=!0,e};return a.next=a}}return{next:L}}function L(){return{value:r,done:!0}}return g.prototype=m,l(E,"constructor",m),l(m,"constructor",g),g.displayName=l(m,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var r="function"==typeof t&&t.constructor;return!!r&&(r===g||"GeneratorFunction"===(r.displayName||r.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,m):(t.__proto__=m,l(t,c,"GeneratorFunction")),t.prototype=Object.create(E),t},t.awrap=function(t){return{__await:t}},x(j.prototype),l(j.prototype,a,(function(){return this})),t.AsyncIterator=j,t.async=function(r,e,n,o,i){void 0===i&&(i=Promise);var a=new j(u(r,e,n,o),i);return t.isGeneratorFunction(e)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},x(E),l(E,c,"Generator"),l(E,i,(function(){return this})),l(E,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var r=[];for(var e in t)r.push(e);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=N,S.prototype={constructor:S,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=r,this.done=!1,this.delegate=null,this.method="next",this.arg=r,this.tryEntries.forEach(k),!t)for(var e in this)"t"===e.charAt(0)&&n.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=r)},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 e=this;function o(n,o){return c.type="throw",c.arg=t,e.next=n,o&&(e.method="next",e.arg=r),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var l=n.call(a,"catchLoc"),u=n.call(a,"finallyLoc");if(l&&u){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,r){for(var e=this.tryEntries.length-1;e>=0;--e){var o=this.tryEntries[e];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=r&&r<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=r,i?(this.method="next",this.next=i.finallyLoc,v):this.complete(a)},complete:function(t,r){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&&r&&(this.next=r),v},finish:function(t){for(var r=this.tryEntries.length-1;r>=0;--r){var e=this.tryEntries[r];if(e.finallyLoc===t)return this.complete(e.completion,e.afterLoc),k(e),v}},catch:function(t){for(var r=this.tryEntries.length-1;r>=0;--r){var e=this.tryEntries[r];if(e.tryLoc===t){var n=e.completion;if("throw"===n.type){var o=n.arg;k(e)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:N(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=r),v}},t}(t.exports);try{regeneratorRuntime=r}catch(t){"object"==typeof globalThis?globalThis.regeneratorRuntime=r:Function("r","regeneratorRuntime = r")(r)}}));var Yt=function(t){var r=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*r.r+.587*r.g+.114*r.b},Jt=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"rgba(255, 255, 255, 0)",r=t.match(/^rgba?[\s+]?\([\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?/i);return r&&4===r.length?"#"+("0"+parseInt(r[1],10).toString(16)).slice(-2)+("0"+parseInt(r[2],10).toString(16)).slice(-2)+("0"+parseInt(r[3],10).toString(16)).slice(-2):t},Kt=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"rgb(255,255,255)",r=/^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/.test(t),e=r?t:Jt(t),n=Yt(e)<155?"light":"dark";return n};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});var Zt=function(r){var e=r.color,n=void 0===e?"#333":e;return t.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 10 16"},t.createElement("g",{fill:"none",fillRule:"nonzero"},t.createElement("path",{d:"M17 20H-7V-4h24z",opacity:".384"}),t.createElement("path",{stroke:n,d:"M9 16L1 8l8-8"})))};Zt.propTypes={color:c.string};var Qt=function(r){var e=r.color,n=void 0===e?"#333":e;return t.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 10 16"},t.createElement("g",{fill:"none",fillRule:"nonzero"},t.createElement("path",{d:"M-7-4h24v24H-7z",opacity:".384"}),t.createElement("path",{stroke:n,d:"M1 0l8 8-8 8"})))};Qt.propTypes={color:c.string};var tr=e(),rr=function(){return r(tr)},er={"./slider-arrow.m.css":{arrow:"slider-arrow-m_arrow__1eBUU","left-arrow-dark":"slider-arrow-m_left-arrow-dark__3mTJS","right-arrow-dark":"slider-arrow-m_right-arrow-dark__3hWZe","left-arrow-light":"slider-arrow-m_left-arrow-light__2ipUK","right-arrow-light":"slider-arrow-m_right-arrow-light__3omMU","left-arrow-ltr":"slider-arrow-m_left-arrow-ltr__1ngNF","right-arrow-ltr":"slider-arrow-m_right-arrow-ltr__2svWX","left-arrow-rtl":"slider-arrow-m_left-arrow-rtl__2ynyn","right-arrow-rtl":"slider-arrow-m_right-arrow-rtl__1GjPz"}},nr=function(r){var e=r.selectedIndex,n=r.previousClick,o=r.nextClick,i=r.noOfItems,a=r.perView,c=r.languageDirection;if(i<1)return null;var l=rr()||{},u=Kt(l.theme),s="rtl"===c?"left-arrow-rtl":"left-arrow-ltr",f="rtl"===c?"right-arrow-rtl":"right-arrow-ltr";return t.createElement(t.Fragment,null,0!==e?t.createElement("button",{onClick:n,className:("left-arrow ".concat(s)?"left-arrow ".concat(s)+" ":"")+Xt("arrow left-arrow-".concat(u," ").concat(s),er)},t.createElement(Zt,{color:"dark"===u?"#fff":"#333"})):null,e<i-1&&!(e>=i-a)?t.createElement("button",{onClick:o,className:("right-arrow ".concat(f)?"right-arrow ".concat(f)+" ":"")+Xt("arrow right-arrow-".concat(u," ").concat(f),er)},t.createElement(Qt,{color:"dark"===u?"#fff":"#333"})):null)};nr.propTypes={noOfItems:l,perView:l,slideIndicator:u,previousClick:s,nextClick:s,selectedIndex:l,languageDirection:u};var or={"./slider-indicator.m.css":{indicators:"slider-indicator-m_indicators__3MNXc",indicator:"slider-indicator-m_indicator__gTv3x","indicator-button":"slider-indicator-m_indicator-button__1e82r","indicator-dots":"slider-indicator-m_indicator-dots__2TR3H","indicator-dots-dark":"slider-indicator-m_indicator-dots-dark__sGrev","indicator-dots-light":"slider-indicator-m_indicator-dots-light__2nPn-","indicator-dashes":"slider-indicator-m_indicator-dashes__DyNCE","indicator-dashes-dark":"slider-indicator-m_indicator-dashes-dark__VrqJI","indicator-dashes-light":"slider-indicator-m_indicator-dashes-light__34ESx"}},ir=function(r){var e=r.indicatorItems,n=r.indicatorClick,o=r.selectedIndex,i=r.indicatorType;if(e.length<1)return null;var a=rr()||{},c=Kt(a.theme);return t.createElement("ul",{className:"slider-indicators slider-indicator-m_indicators__3MNXc"},e.map((function(r,e){return t.createElement("li",{key:"slider-".concat(e),className:"indicator slider-indicator-m_indicator__gTv3x",onClick:function(t){return n(t,e)}},t.createElement("button",{"aria-pressed":o===e?"true":"false",className:("indicator-button indicator-".concat(i)?"indicator-button indicator-".concat(i)+" ":"")+Xt("indicator-button indicator-".concat(i," indicator-").concat(i,"-").concat(c),or)}))})))};ir.propTypes={indicatorItems:f,perView:l,indicatorType:u,indicatorClick:s,selectedIndex:l};var ar=function(t,r,e,n){var o,i,a,c,l=Math.floor(e.current.scrollWidth*(t/n)),u="rtl"===r?-1*l:l;o=e.current,i=u,a=!0,o.scrollTo((v(c={},a?"left":"top",i),v(c,"behavior","smooth"),c))},cr=function(t,r){var e;return function(){clearTimeout(e),e=setTimeout((function(){e=null,t()}),r)}},lr=function(r){var e=r.children,c=r.isArrow,l=r.interval,u=r.isInfinite,s=r.pauseOnHover,f=r.perView,h=r.slideIndicator,d=p(n(0),2),v=d[0],y=d[1],g=p(n(!1),2),m=g[0],_=g[1],w=a((function(t){return qt(t,["qt","config","language","direction"],"ltr")})),b=e?e.length:0,E=o(null),x=e.length-(f-1),j=e.slice(0,x);i((function(){return E.current&&(E.current.addEventListener("scroll",cr((function(){var t=Math.round(E.current.scrollLeft/E.current.scrollWidth*b);y(Math.abs(t))}),150)),0!==v&&ar(v)),function(){E.current.removeEventListener("scroll",cr)}}),[]),i((function(){if(u&&!m){var t=setInterval((function(){O()}),l);return function(){clearInterval(t)}}}),[u,m]);var O=function(){y((function(t){var r=t===b-f?0:t+1;return ar(r,w,E,b),r}))},I=function(){s&&_(!m)};return t.createElement("div",{className:"scroll-snap-container"},t.createElement("div",{className:"scroll-snap-wrapper scroll-snap-m_wrapper__1Rz9v",onMouseEnter:I,onMouseLeave:I},t.createElement("div",{ref:E,className:"scroll-snap-carousel scroll-snap-m_carousel__2m3cg"},e),c&&t.createElement(nr,{noOfItems:b,perView:f,previousClick:function(t){t.preventDefault(),t.stopPropagation();var r=v-1;y(r),ar(r,w,E,b)},nextClick:function(t){if(t.preventDefault(),t.stopPropagation(),v<b){var r=v+1;y(r),ar(r,w,E,b)}},selectedIndex:v,languageDirection:w})),e.length>f&&"none"!==h&&t.createElement(ir,{indicatorItems:j,indicatorClick:function(t,r){t.preventDefault(),t.stopPropagation(),y(r),ar(r,w,E,b)},selectedIndex:v,indicatorType:h}))};lr.defaultProps={isArrow:!0,isInfinite:!1,interval:4e3,pauseOnHover:!0,perView:1,slideIndicator:"dots"},lr.propTypes={children:f.isRequired,isArrow:h,isInfinite:h,interval:l,pauseOnHover:h,perView:l,slideIndicator:u};export{lr as ScrollSnap};
|
package/SectionTag/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import t,{useContext as e,createContext as r}from"react";import n from"lodash.get";import{Link as o}from"@quintype/components";import i from"prop-types";import"react-timeago";import"date-fns-tz";var a="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 c(t){var e={exports:{}};return t(e,e.exports),e.exports}var u=c((function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r={attributeNames:{styleName:"className"},generateScopedName:"[path]___[name]__[local]___[hash:base64:5]",handleMissingStyleName:"throw"};e.default=r})),l=s(c((function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r,n=(r=u)&&r.__esModule?r:{default:r};var o=function(t,e){if("throw"===e)throw new Error(t);return"warn"===e&&console.warn(t),null};e.default=function(t,e,r){var i=Object.keys(e),a=r||{},s=a.handleMissingStyleName,c=void 0===s?n.default.handleMissingStyleName:s,u=a.autoResolveMultipleImports,l=void 0===u?n.default.autoResolveMultipleImports:u;return t?t.split(" ").filter((function(t){return t})).map((function(t){if(function(t){return-1!==t.indexOf(".")}(t))return function(t,e,r){var i=t.split("."),a=i[0],s=i[1],c=r||n.default.handleMissingStyleName;return s?e[a]?e[a][s]?e[a][s]:o("CSS module does not exist: "+s,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(!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,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(" "):""}}))),h=r();c((function(t){var e=function(t){var e,r=Object.prototype,n=r.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function 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 u(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 k()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var s=L(a,r);if(s){if(s===v)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(n===h)throw n=d,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n=p;var c=l(t,e,r);if("normal"===c.type){if(n=r.done?d:f,c.arg===v)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n=d,r.method="throw",r.arg=c.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=u;var h="suspendedStart",f="suspendedYield",p="executing",d="completed",v={};function y(){}function m(){}function g(){}var _={};c(_,i,(function(){return this}));var b=Object.getPrototypeOf,w=b&&b(b(T([])));w&&w!==r&&n.call(w,i)&&(_=w);var j=g.prototype=y.prototype=Object.create(_);function O(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function x(t,e){function r(o,i,a,s){var c=l(t[o],t,i);if("throw"!==c.type){var u=c.arg,h=u.value;return h&&"object"==typeof h&&n.call(h,"__await")?e.resolve(h.__await).then((function(t){r("next",t,a,s)}),(function(t){r("throw",t,a,s)})):e.resolve(h).then((function(t){u.value=t,a(u)}),(function(t){return r("throw",t,a,s)}))}s(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 L(t,r){var n=t.iterator[r.method];if(n===e){if(r.delegate=null,"throw"===r.method){if(t.iterator.return&&(r.method="return",r.arg=e,L(t,r),"throw"===r.method))return v;r.method="throw",r.arg=new TypeError("The iterator does not provide a 'throw' method")}return v}var o=l(n,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,v;var i=o.arg;return i?i.done?(r[t.resultName]=i.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,v):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,v)}function E(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function S(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function N(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(E,this),this.reset(!0)}function T(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 m.prototype=g,c(j,"constructor",g),c(g,"constructor",m),m.displayName=c(g,s,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===m||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,g):(t.__proto__=g,c(t,s,"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(u(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,s,"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=T,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(S),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function o(n,o){return s.type="throw",s.arg=t,r.next=n,o&&(r.method="next",r.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=n.call(a,"catchLoc"),u=n.call(a,"finallyLoc");if(c&&u){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,v):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),v},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),S(r),v}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;S(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:T(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),v}},t}(t.exports);try{regeneratorRuntime=e}catch(t){"object"==typeof globalThis?globalThis.regeneratorRuntime=e:Function("r","regeneratorRuntime = r")(e)}}));var f="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 j=function(t){return w.call(t)},O=v?v.toStringTag:void 0;var x=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":O&&O in Object(t)?b(t):j(t)};var L=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)};var E,S=function(t){if(!L(t))return!1;var e=x(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e},N=d["__core-js_shared__"],T=(E=/[^.]+$/.exec(N&&N.keys&&N.keys.IE_PROTO||""))?"Symbol(src)_1."+E:"";var k=function(t){return!!T&&T in t},C=Function.prototype.toString;var P=function(t){if(null!=t){try{return C.call(t)}catch(t){}try{return t+""}catch(t){}}return""},F=/^\[object .+?Constructor\]$/,I=Function.prototype,z=Object.prototype,M=I.toString,R=z.hasOwnProperty,G=RegExp("^"+M.call(R).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var $=function(t){return!(!L(t)||k(t))&&(S(t)?G:F).test(P(t))};var A=function(t,e){return null==t?void 0:t[e]};var B=function(t,e){var r=A(t,e);return $(r)?r:void 0},U=B(Object,"create");var Y=function(){this.__data__=U?U(null):{},this.size=0};var q=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},D=Object.prototype.hasOwnProperty;var K=function(t){var e=this.__data__;if(U){var r=e[t];return"__lodash_hash_undefined__"===r?void 0:r}return D.call(e,t)?e[t]:void 0},Q=Object.prototype.hasOwnProperty;var V=function(t){var e=this.__data__;return U?void 0!==e[t]:Q.call(e,t)};var W=function(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=U&&void 0===e?"__lodash_hash_undefined__":e,this};function H(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])}}H.prototype.clear=Y,H.prototype.delete=q,H.prototype.get=K,H.prototype.has=V,H.prototype.set=W;var J=H;var X=function(){this.__data__=[],this.size=0};var Z=function(t,e){return t===e||t!=t&&e!=e};var tt=function(t,e){for(var r=t.length;r--;)if(Z(t[r][0],e))return r;return-1},et=Array.prototype.splice;var rt=function(t){var e=this.__data__,r=tt(e,t);return!(r<0)&&(r==e.length-1?e.pop():et.call(e,r,1),--this.size,!0)};var nt=function(t){var e=this.__data__,r=tt(e,t);return r<0?void 0:e[r][1]};var ot=function(t){return tt(this.__data__,t)>-1};var it=function(t,e){var r=this.__data__,n=tt(r,t);return n<0?(++this.size,r.push([t,e])):r[n][1]=e,this};function at(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}at.prototype.clear=X,at.prototype.delete=rt,at.prototype.get=nt,at.prototype.has=ot,at.prototype.set=it;var st=at,ct=B(d,"Map");var ut=function(){this.size=0,this.__data__={hash:new J,map:new(ct||st),string:new J}};var lt=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t};var ht=function(t,e){var r=t.__data__;return lt(e)?r["string"==typeof e?"string":"hash"]:r.map};var ft=function(t){var e=ht(this,t).delete(t);return this.size-=e?1:0,e};var pt=function(t){return ht(this,t).get(t)};var dt=function(t){return ht(this,t).has(t)};var vt=function(t,e){var r=ht(this,t),n=r.size;return r.set(t,e),this.size+=r.size==n?0:1,this};function yt(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}yt.prototype.clear=ut,yt.prototype.delete=ft,yt.prototype.get=pt,yt.prototype.has=dt,yt.prototype.set=vt;var mt=yt;function gt(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var r=function(){var n=arguments,o=e?e.apply(this,n):n[0],i=r.cache;if(i.has(o))return i.get(o);var a=t.apply(this,n);return r.cache=i.set(o,a)||i,a};return r.cache=new(gt.Cache||mt),r}gt.Cache=mt;var _t=gt;var bt=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,wt=/\\(\\)?/g;(function(t){var e=_t(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(bt,(function(t,r,n,o){e.push(n?o.replace(wt,"$1"):r||t)})),e}));var jt=v?v.prototype:void 0;jt&&jt.toString;var Ot=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},xt=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};i.shape({"sketches-host":i.string,"cdn-name":i.string,"cdn-image":i.string}),i.shape({headline:i.string,"last-published-at":i.number,subheadline:i.string});var Lt={"./section.m.css":{section:"section-m_section__2N4S3","section-borderBottomSml":"section-m_section-borderBottomSml__2GNbo","border-bottom":"section-m_border-bottom__3cRoD","section-borderLeft":"section-m_section-borderLeft__3hKVj","border-left":"section-m_border-left__2oUyp","section-solid":"section-m_section-solid__1vB1Q",dark:"section-m_dark__1r3C4",light:"section-m_light__306hW"}},Et=function(r){var i=r.story,a=r.template,s=void 0===a?"":a,c=r.borderColor,u=void 0===c?"":c,f=r.isLightTheme,p=e(h)||{},d=n(p,["showSection"],!0),v=n(p,["sectionTagTemplate"]),y=n(i,["sections",0],""),m=["borderBottomSml","borderLeft","solid"],g=y?y["section-url"]:"/",_="solid"===s||"solid"===v?u:p.theme,b=f?"light":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:xt(t);return Ot(e)<155?"light":"dark"}(_),w=xt(u),j=m.includes(s)?"section section-".concat(s):"section";return v&&(j=m.includes(v)?"section section-".concat(v):"section"),d?t.createElement(o,{href:g,className:"arrow-component arr--section-name","aria-label":"section-name"},t.createElement("div",{"data-test-id":"sectionTag",style:{backgroundColor:j.includes("section-solid")?w:""},className:"section-tag arrow-component "+l("".concat(b," ").concat(j),Lt)},j.includes("section-borderLeft")&&t.createElement("span",{className:"section-m_border-left__2oUyp",style:{color:w}}),y["display-name"]||y.name,t.createElement("div",{className:"section-m_border-bottom__3cRoD",style:{backgroundColor:"".concat("solid"===s?"":w)}}))):null};Et.propTypes={story:i.object.isRequired,template:i.oneOf(["","borderBottomSml","borderLeft","solid"]),borderColor:i.string,solidBorderColor:i.string,isLightTheme:i.bool},Et.defaultProps={template:"",isLightTheme:!1};export{Et as SectionTag};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import t,{useState as e,useEffect as r}from"react";import n from"prop-types";import"react-timeago";import"date-fns-tz";import o from"lodash.camelcase";function a(){return a=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},a.apply(this,arguments)}function i(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 l(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,a=[],i=!0,l=!1;try{for(r=r.call(t);!(i=(n=r.next()).done)&&(a.push(n.value),!e||a.length!==e);i=!0);}catch(t){l=!0,o=t}finally{try{i||null==r.return||r.return()}finally{if(l)throw o}}return a}}(t,e)||function(t,e){if(t){if("string"==typeof t)return i(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)?i(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var 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 p(t){var e={exports:{}};return t(e,e.exports),e.exports}var u=p((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(p((function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r,n=(r=u)&&r.__esModule?r:{default:r};var o=function(t,e){if("throw"===e)throw new Error(t);return"warn"===e&&console.warn(t),null};e.default=function(t,e,r){var a=Object.keys(e),i=r||{},l=i.handleMissingStyleName,c=void 0===l?n.default.handleMissingStyleName:l,s=i.autoResolveMultipleImports,p=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],l=a[1],c=r||n.default.handleMissingStyleName;return l?e[i]?e[i][l]?e[i][l]:o("CSS module does not exist: "+l,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(!p)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(" "):""}}))),f=function(e){var r=e.color,n=void 0===r?"#1CB7EB":r;return t.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},t.createElement("path",{fill:n,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"}))};f.propTypes={color:n.string};var v=function(e){var r=e.color,n=void 0===r?"#3B5998":r;return t.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},t.createElement("path",{fill:n,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"}))};v.propTypes={color:n.string};var m=function(e){var r=e.color,n=void 0===r?"#0077B5":r;return t.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},t.createElement("path",{fill:n,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"}))};m.propTypes={color:n.string};var d=function(e){var r=e.color,n=void 0===r?"#4AC959":r;return t.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},t.createElement("path",{fill:n,fillRule:"evenodd",d:"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"}))};d.propTypes={color:n.string};var _=function(e){var r=e.fbUrl,n=e.twitterUrl,o=e.linkedinUrl,a=e.whatsappUrl,i=e.iconColor,l=e.iconType,c=function(e,r){return"plain-color-svg"===r?{facebook:t.createElement(v,{key:r}),twitter:t.createElement(f,{key:r}),linkedin:t.createElement(m,{key:r}),whatsapp:t.createElement(d,{key:r})}:{facebook:t.createElement(v,{color:e,key:r}),twitter:t.createElement(f,{color:e,key:r}),linkedin:t.createElement(m,{color:e,key:r}),whatsapp:t.createElement(d,{color:e,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:o,icon:c.linkedin,text:"LinkedIn",bgColor:"#0077B5",alt:"linkedin icon"},{name:"whatsapp",url:a,icon:c.whatsapp,text:"Whatsapp",bgColor:"#25d366",alt:"whatsapp share"}]},y=function(e){var r=e.color,n=void 0===r?"#333":r;return t.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},t.createElement("g",{fill:"none",stroke:n,strokeLinecap:"square",strokeWidth:"2"},t.createElement("path",{d:"M16.95 6.914l-9.9 9.9M16.95 17.107l-9.9-9.9"})))};y.propTypes={color:n.string},p((function(t){var e=function(t){var e,r=Object.prototype,n=r.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",i=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function 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 d?e:d,a=Object.create(o.prototype),i=new T(n||[]);return a._invoke=function(t,e,r){var n=u;return function(o,a){if(n===f)throw new Error("Generator is already running");if(n===v){if("throw"===o)throw a;return S()}for(r.method=o,r.arg=a;;){var i=r.delegate;if(i){var l=j(i,r);if(l){if(l===m)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(n===u)throw n=v,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n=f;var c=p(t,e,r);if("normal"===c.type){if(n=r.done?v:h,c.arg===m)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n=v,r.method="throw",r.arg=c.arg)}}}(t,r,i),a}function p(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=s;var u="suspendedStart",h="suspendedYield",f="executing",v="completed",m={};function d(){}function _(){}function y(){}var g={};c(g,a,(function(){return this}));var w=Object.getPrototypeOf,b=w&&w(w(U([])));b&&b!==r&&n.call(b,a)&&(g=b);var E=y.prototype=d.prototype=Object.create(g);function k(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function x(t,e){function r(o,a,i,l){var c=p(t[o],t,a);if("throw"!==c.type){var s=c.arg,u=s.value;return u&&"object"==typeof u&&n.call(u,"__await")?e.resolve(u.__await).then((function(t){r("next",t,i,l)}),(function(t){r("throw",t,i,l)})):e.resolve(u).then((function(t){s.value=t,i(s)}),(function(t){return r("throw",t,i,l)}))}l(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 j(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,j(t,r),"throw"===r.method))return m;r.method="throw",r.arg=new TypeError("The iterator does not provide a 'throw' method")}return m}var o=p(n,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,m;var a=o.arg;return a?a.done?(r[t.resultName]=a.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,m):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,m)}function 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 N(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function T(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(O,this),this.reset(!0)}function U(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 _.prototype=y,c(E,"constructor",y),c(y,"constructor",_),_.displayName=c(y,l,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===_||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,y):(t.__proto__=y,c(t,l,"GeneratorFunction")),t.prototype=Object.create(E),t},t.awrap=function(t){return{__await:t}},k(x.prototype),c(x.prototype,i,(function(){return this})),t.AsyncIterator=x,t.async=function(e,r,n,o,a){void 0===a&&(a=Promise);var i=new x(s(e,r,n,o),a);return t.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},k(E),c(E,l,"Generator"),c(E,a,(function(){return this})),c(E,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=[];for(var r in t)e.push(r);return e.reverse(),function r(){for(;e.length;){var n=e.pop();if(n in t)return r.value=n,r.done=!1,r}return r.done=!0,r}},t.values=U,T.prototype={constructor:T,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(N),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function o(n,o){return l.type="throw",l.arg=t,r.next=n,o&&(r.method="next",r.arg=e),!!o}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],l=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var 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,m):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),m},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),N(r),m}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;N(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:U(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),m}},t}(t.exports);try{regeneratorRuntime=e}catch(t){"object"==typeof globalThis?globalThis.regeneratorRuntime=e:Function("r","regeneratorRuntime = r")(e)}}));var g="object"==typeof c&&c&&c.Object===Object&&c,w="object"==typeof self&&self&&self.Object===Object&&self,b=g||w||Function("return this")(),E=b.Symbol,k=Object.prototype,x=k.hasOwnProperty,j=k.toString,O=E?E.toStringTag:void 0;var N=function(t){var e=x.call(t,O),r=t[O];try{t[O]=void 0;var n=!0}catch(t){}var o=j.call(t);return n&&(e?t[O]=r:delete t[O]),o},T=Object.prototype.toString;var U=function(t){return T.call(t)},S=E?E.toStringTag:void 0;var L=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":S&&S in Object(t)?N(t):U(t)};var z=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)};var M,C=function(t){if(!z(t))return!1;var e=L(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e},P=b["__core-js_shared__"],I=(M=/[^.]+$/.exec(P&&P.keys&&P.keys.IE_PROTO||""))?"Symbol(src)_1."+M:"";var A=function(t){return!!I&&I in t},F=Function.prototype.toString;var B=function(t){if(null!=t){try{return F.call(t)}catch(t){}try{return t+""}catch(t){}}return""},V=/^\[object .+?Constructor\]$/,G=Function.prototype,R=Object.prototype,$=G.toString,H=R.hasOwnProperty,D=RegExp("^"+$.call(H).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var Y=function(t){return!(!z(t)||A(t))&&(C(t)?D:V).test(B(t))};var Q=function(t,e){return null==t?void 0:t[e]};var q=function(t,e){var r=Q(t,e);return Y(r)?r:void 0},J=q(Object,"create");var X=function(){this.__data__=J?J(null):{},this.size=0};var W=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},K=Object.prototype.hasOwnProperty;var Z=function(t){var e=this.__data__;if(J){var r=e[t];return"__lodash_hash_undefined__"===r?void 0:r}return K.call(e,t)?e[t]:void 0},tt=Object.prototype.hasOwnProperty;var et=function(t){var e=this.__data__;return J?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]=J&&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=X,nt.prototype.delete=W,nt.prototype.get=Z,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 lt=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=lt(e,t);return!(r<0)&&(r==e.length-1?e.pop():ct.call(e,r,1),--this.size,!0)};var pt=function(t){var e=this.__data__,r=lt(e,t);return r<0?void 0:e[r][1]};var ut=function(t){return lt(this.__data__,t)>-1};var ht=function(t,e){var r=this.__data__,n=lt(r,t);return n<0?(++this.size,r.push([t,e])):r[n][1]=e,this};function 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=at,ft.prototype.delete=st,ft.prototype.get=pt,ft.prototype.has=ut,ft.prototype.set=ht;var vt=ft,mt=q(b,"Map");var dt=function(){this.size=0,this.__data__={hash:new ot,map:new(mt||vt),string:new ot}};var _t=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 _t(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 wt=function(t){return yt(this,t).get(t)};var bt=function(t){return yt(this,t).has(t)};var Et=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 kt(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}kt.prototype.clear=dt,kt.prototype.delete=gt,kt.prototype.get=wt,kt.prototype.has=bt,kt.prototype.set=Et;var xt=kt;function jt(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var r=function(){var n=arguments,o=e?e.apply(this,n):n[0],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(jt.Cache||xt),r}jt.Cache=xt;var Ot=jt;var Nt=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Tt=/\\(\\)?/g;(function(t){var e=Ot(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(Nt,(function(t,r,n,o){e.push(n?o.replace(Tt,"$1"):r||t)})),e}));var Ut=E?E.prototype:void 0;Ut&&Ut.toString;var St=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},Lt=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},zt=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:Lt(t),n=St(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 Mt={"./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(e){var r=e.fbUrl,n=void 0===r?"":r,o=e.twitterUrl,a=void 0===o?"":o,i=e.linkedinUrl,l=void 0===i?"":i,c=e.whatsappUrl,s=void 0===c?"":c,p=e.theme,u=e.closePopup,f=void 0===u?"":u,v=e.iconType,m=void 0===v?"plain-color-svg":v,d=zt(p),g="dark"===d?"#000000":"#ffffff",w=_({fbUrl:n,twitterUrl:a,linkedinUrl:l,whatsappUrl:s,iconColor:g,iconType:m});return t.createElement("div",{className:h("share-popup-wrapper ".concat(d),Mt)},t.createElement("div",{className:"social-share-popup-m_share-popup__QRt3l social-share-popup-m_share-popup-wrapper__GEJqD"},t.createElement("div",{className:"social-share-popup-m_top-bar__174Um"},t.createElement("span",{className:"social-share-popup-m_share-text__19E-F"},"Share via"),t.createElement("span",{className:"social-share-popup-m_close__3k-Hj",onClick:f},t.createElement(y,{color:g}))),t.createElement("ul",{className:"social-share-popup-m_wrapper__3Ytce"},w.map((function(e,r){var n=e.url,o=e.icon,a=e.text,i=e.bgColor;return e.alt,function(e,r,n,o){return e?t.createElement("li",{className:"social-share-popup-m_social-icon-wrapper__36jyV","data-testid":n,key:"popup-item-".concat(o)},t.createElement("a",{href:e,target:"_blank",rel:"noopener noreferrer",className:"social-share-popup-m_social-wrapper__1lPzr","aria-label":"social-icon"},r,t.createElement("span",{className:"social-share-popup-m_social-text__1QPXb"},n))):null}(n,o,a,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 Pt=function(e){var r=e.color,n=void 0===r?"#0D0D0D":r;return t.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},t.createElement("path",{fill:n,fillRule:"evenodd",d:"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"}))};Pt.propTypes={color:n.string};var It={"./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"}},At=function(e){var r=e.name,n=e.url,o=e.icon,a=e.dataTestId;return n?t.createElement("li",{"data-testid":a,className:"social-share-template-m_icon__1Mnu5"},t.createElement("a",{href:n,target:"_blank",rel:"noopener noreferrer","data-share-icon":r,"aria-label":"share-icon"},o)):null};At.propTypes={name:n.string,url:n.string,icon:n.node,dataTestId:n.string};var Ft=function(n){var i=n.fbUrl,c=void 0===i?"":i,s=n.twitterUrl,p=void 0===s?"":s,u=n.linkedinUrl,f=void 0===u?"":u,v=n.whatsappUrl,m=void 0===v?"":v,d=n.vertical,g=void 0!==d&&d,w=n.theme,b=n.iconType,E=void 0===b?"plain-color-svg":b,k=n.open,x=void 0!==k&&k;if(!(c||p||f||m))return null;var j=zt(w),O="dark"===j?"#000000":"#ffffff",N=_({fbUrl:c,twitterUrl:p,linkedinUrl:f,whatsappUrl:m,iconColor:O,iconType:E}),T=l(e(x),2),U=T[0],S=T[1],L=g?"vertical":"horizontal";r((function(){return S(x)}),[x]);var z=function(){return t.createElement("li",{className:"social-share-template-m_icon__1Mnu5",key:"horizontal-0"},t.createElement("div",{onClick:M},function(e,r){return e?t.createElement(y,{color:r}):t.createElement(Pt,{color:r})}(U,O)))},M=function(){S(!U)},C=!U&&g?"tablet-view-popup":"";return t.createElement("div",{"data-test-id":L,className:"arr--share "+h("".concat(j," ").concat(L," ").concat(C),It)},t.createElement("div",{className:"social-share-template-m_desktop-view__3TmkO"},t.createElement("ul",{"data-test-id":o(E),className:"desktop-share-wrapper "+h("wrapper ".concat(U?"open":""),It)},z(),N.map((function(e,r){return t.createElement(At,a({},e,{key:e.name,dataTestId:"card-share-".concat(r)}))})))),t.createElement("div",{className:"social-share-template-m_tablet-view__kATzi"},!U&&t.createElement("ul",{className:h("wrapper ".concat(U?"open":""),It)},z()),U&&t.createElement(t.Fragment,null,t.createElement("div",{className:"social-share-template-m_overlay__1nBp-",onClick:M},t.createElement("div",{className:"arr--popup "+h("popup-wrapper ".concat(U?"popup-open":""),It)},t.createElement(Ct,{fbUrl:c,twitterUrl:p,linkedinUrl:f,whatsappUrl:m,iconType:E,theme:w,closePopup:function(){S(!1)}}))))))};Ft.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};export{Ft as SocialShareTemplate};
|