@quintype/arrow 3.19.7 → 3.19.8-imp-pd.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (80) hide show
  1. package/AlsoRead/index.js +1 -0
  2. package/Attachment/index.js +1 -0
  3. package/Author/index.js +1 -0
  4. package/AuthorWithTime/index.js +1 -0
  5. package/BigFact/index.js +1 -0
  6. package/BlockQuote/index.js +1 -0
  7. package/Blurb/index.js +1 -0
  8. package/CollectionName/index.js +1 -0
  9. package/Headline/index.js +1 -0
  10. package/HeroImage/index.js +1 -0
  11. package/Image/index.js +1 -0
  12. package/ImageGallery/index.js +1 -0
  13. package/ImageSlideshow/index.js +1 -0
  14. package/LoadmoreButton/index.js +1 -0
  15. package/QuestionAnswer/index.js +1 -0
  16. package/Quote/index.js +1 -0
  17. package/Reference/index.js +1 -0
  18. package/ScrollSnap/index.js +1 -0
  19. package/SectionTag/index.js +1 -0
  20. package/StoryElement/index.js +1 -0
  21. package/Subheadline/index.js +1 -0
  22. package/Summary/index.js +1 -0
  23. package/Text/index.js +1 -0
  24. package/TimeStamp/index.js +1 -0
  25. package/Video/index.js +1 -0
  26. package/package.json +1 -1
  27. package/AlternateCollectionFilter/styles.arrow.css +0 -1
  28. package/AsideCollection/styles.arrow.css +0 -1
  29. package/AstrologyCollection/styles.arrow.css +0 -1
  30. package/AuthorIntroductionCard/styles.arrow.css +0 -1
  31. package/AuthorsList/styles.arrow.css +0 -1
  32. package/CollectionFilter/styles.arrow.css +0 -1
  33. package/ElevenStories/styles.arrow.css +0 -1
  34. package/FourColFiveStories/styles.arrow.css +0 -1
  35. package/FourColGrid/styles.arrow.css +0 -1
  36. package/FourColPortraitStories/styles.arrow.css +0 -1
  37. package/FourColSixteenStories/styles.arrow.css +0 -1
  38. package/FourColTwelveStories/styles.arrow.css +0 -1
  39. package/FourStorySlider/styles.arrow.css +0 -1
  40. package/FourStorySliderPortrait/styles.arrow.css +0 -1
  41. package/FourTabbedBigStorySlider/styles.arrow.css +0 -1
  42. package/FullScreenSlider/styles.arrow.css +0 -1
  43. package/HalfScreenSlider/styles.arrow.css +0 -1
  44. package/KeyEvents/styles.arrow.css +0 -1
  45. package/ListComponent/styles.arrow.css +0 -1
  46. package/ListicleStoryTemplate/styles.arrow.css +0 -1
  47. package/Listicles/styles.arrow.css +0 -1
  48. package/LiveBlogStoryTemplate/styles.arrow.css +0 -1
  49. package/MagazineEditions/styles.arrow.css +0 -1
  50. package/MagazineHeaderCard/styles.arrow.css +0 -1
  51. package/MagazineWidget/styles.arrow.css +0 -1
  52. package/OneColStoryList/styles.arrow.css +0 -1
  53. package/OpinionCollection/styles.arrow.css +0 -1
  54. package/PageIntroductionCard/styles.arrow.css +0 -1
  55. package/PhotoStoryTemplate/styles.arrow.css +0 -1
  56. package/README.md +0 -202
  57. package/SixColSixStories/styles.arrow.css +0 -1
  58. package/SocialShareTemplate/styles.arrow.css +0 -1
  59. package/StoryCard/styles.arrow.css +0 -1
  60. package/StoryCollection/styles.arrow.css +0 -1
  61. package/StoryElementCard/styles.arrow.css +0 -1
  62. package/StorycardContent/styles.arrow.css +0 -1
  63. package/TagIntroductionCard/styles.arrow.css +0 -1
  64. package/TextStoryTemplate/styles.arrow.css +0 -1
  65. package/ThreeColFlexStories/styles.arrow.css +0 -1
  66. package/ThreeColFourteenStories/styles.arrow.css +0 -1
  67. package/ThreeColGrid/styles.arrow.css +0 -1
  68. package/ThreeColSevenStory/styles.arrow.css +0 -1
  69. package/ThreeColSixStories/styles.arrow.css +0 -1
  70. package/ThreeColTwelveStories/styles.arrow.css +0 -1
  71. package/TwoColFourStories/styles.arrow.css +0 -1
  72. package/TwoColFourStoryHighlight/styles.arrow.css +0 -1
  73. package/TwoColSevenStories/styles.arrow.css +0 -1
  74. package/TwoColSixStories/styles.arrow.css +0 -1
  75. package/TwoColTenStoriesSidebar/styles.arrow.css +0 -1
  76. package/TwoColThreeStories/styles.arrow.css +0 -1
  77. package/VideoStoryTemplate/styles.arrow.css +0 -1
  78. package/app.scss +0 -274
  79. package/cjs/index.js +0 -1
  80. package/esm/index.js +0 -1
package/Image/index.js ADDED
@@ -0,0 +1 @@
1
+ import t,{useState as e,Suspense as r,lazy as n,useContext as o,createContext as i}from"react";import a from"prop-types";import{Link as c,ResponsiveImage as l}from"@quintype/components";import"react-timeago";import"date-fns-tz";import{useSelector as u}from"react-redux";import s from"lodash.get";function p(){return p=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},p.apply(this,arguments)}function f(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 h=["element","render"],m=function(e){return function(r){var n=r.element,o=r.render,i=f(r,h);return n?o&&"function"==typeof o?o(r):t.createElement(e,p({},i,{element:n})):null}};m.propTypes={StoryElement:a.element};var y="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function d(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function v(t){var e={exports:{}};return t(e,e.exports),e.exports}v((function(t){var e=function(t){var e,r=Object.prototype,n=r.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function u(t,e,r,n){var o=e&&e.prototype instanceof d?e:d,i=Object.create(o.prototype),a=new N(n||[]);return i._invoke=function(t,e,r){var n=p;return function(o,i){if(n===h)throw new Error("Generator is already running");if(n===m){if("throw"===o)throw i;return L()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var c=k(a,r);if(c){if(c===y)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(n===p)throw n=m,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n=h;var l=s(t,e,r);if("normal"===l.type){if(n=r.done?m:f,l.arg===y)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(n=m,r.method="throw",r.arg=l.arg)}}}(t,r,a),i}function s(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=u;var p="suspendedStart",f="suspendedYield",h="executing",m="completed",y={};function d(){}function v(){}function g(){}var b={};l(b,i,(function(){return this}));var _=Object.getPrototypeOf,w=_&&_(_(C([])));w&&w!==r&&n.call(w,i)&&(b=w);var E=g.prototype=d.prototype=Object.create(b);function O(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function j(t,e){function r(o,i,a,c){var l=s(t[o],t,i);if("throw"!==l.type){var u=l.arg,p=u.value;return p&&"object"==typeof p&&n.call(p,"__await")?e.resolve(p.__await).then((function(t){r("next",t,a,c)}),(function(t){r("throw",t,a,c)})):e.resolve(p).then((function(t){u.value=t,a(u)}),(function(t){return r("throw",t,a,c)}))}c(l.arg)}var o;this._invoke=function(t,n){function i(){return new e((function(e,o){r(t,n,e,o)}))}return o=o?o.then(i,i):i()}}function k(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,k(t,r),"throw"===r.method))return y;r.method="throw",r.arg=new TypeError("The iterator does not provide a 'throw' method")}return y}var o=s(n,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,y;var i=o.arg;return i?i.done?(r[t.resultName]=i.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,y):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function x(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(x,this),this.reset(!0)}function C(t){if(t){var r=t[i];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,a=function r(){for(;++o<t.length;)if(n.call(t,o))return r.value=t[o],r.done=!1,r;return r.value=e,r.done=!0,r};return a.next=a}}return{next:L}}function L(){return{value:e,done:!0}}return v.prototype=g,l(E,"constructor",g),l(g,"constructor",v),v.displayName=l(g,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===v||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,g):(t.__proto__=g,l(t,c,"GeneratorFunction")),t.prototype=Object.create(E),t},t.awrap=function(t){return{__await:t}},O(j.prototype),l(j.prototype,a,(function(){return this})),t.AsyncIterator=j,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new j(u(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},O(E),l(E,c,"Generator"),l(E,i,(function(){return this})),l(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=C,N.prototype={constructor:N,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(S),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function o(n,o){return c.type="throw",c.arg=t,r.next=n,o&&(r.method="next",r.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var l=n.call(a,"catchLoc"),u=n.call(a,"finallyLoc");if(l&&u){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),S(r),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;S(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:C(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),y}},t}(t.exports);try{regeneratorRuntime=e}catch(t){"object"==typeof globalThis?globalThis.regeneratorRuntime=e:Function("r","regeneratorRuntime = r")(e)}}));var g="object"==typeof y&&y&&y.Object===Object&&y,b="object"==typeof self&&self&&self.Object===Object&&self,_=g||b||Function("return this")(),w=_.Symbol,E=Object.prototype,O=E.hasOwnProperty,j=E.toString,k=w?w.toStringTag:void 0;var x=function(t){var e=O.call(t,k),r=t[k];try{t[k]=void 0;var n=!0}catch(t){}var o=j.call(t);return n&&(e?t[k]=r:delete t[k]),o},S=Object.prototype.toString;var N=function(t){return S.call(t)},C=w?w.toStringTag:void 0;var L=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":C&&C in Object(t)?x(t):N(t)};var M=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)};var T,P=function(t){if(!M(t))return!1;var e=L(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e},I=_["__core-js_shared__"],F=(T=/[^.]+$/.exec(I&&I.keys&&I.keys.IE_PROTO||""))?"Symbol(src)_1."+T:"";var A=function(t){return!!F&&F in t},R=Function.prototype.toString;var z=function(t){if(null!=t){try{return R.call(t)}catch(t){}try{return t+""}catch(t){}}return""},$=/^\[object .+?Constructor\]$/,G=Function.prototype,W=Object.prototype,q=G.toString,D=W.hasOwnProperty,B=RegExp("^"+q.call(D).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var H=function(t){return!(!M(t)||A(t))&&(P(t)?B:$).test(z(t))};var Y=function(t,e){return null==t?void 0:t[e]};var U=function(t,e){var r=Y(t,e);return H(r)?r:void 0},X=U(Object,"create");var K=function(){this.__data__=X?X(null):{},this.size=0};var V=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},J=Object.prototype.hasOwnProperty;var Q=function(t){var e=this.__data__;if(X){var r=e[t];return"__lodash_hash_undefined__"===r?void 0:r}return J.call(e,t)?e[t]:void 0},Z=Object.prototype.hasOwnProperty;var tt=function(t){var e=this.__data__;return X?void 0!==e[t]:Z.call(e,t)};var et=function(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=X&&void 0===e?"__lodash_hash_undefined__":e,this};function rt(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}rt.prototype.clear=K,rt.prototype.delete=V,rt.prototype.get=Q,rt.prototype.has=tt,rt.prototype.set=et;var nt=rt;var ot=function(){this.__data__=[],this.size=0};var it=function(t,e){return t===e||t!=t&&e!=e};var at=function(t,e){for(var r=t.length;r--;)if(it(t[r][0],e))return r;return-1},ct=Array.prototype.splice;var lt=function(t){var e=this.__data__,r=at(e,t);return!(r<0)&&(r==e.length-1?e.pop():ct.call(e,r,1),--this.size,!0)};var ut=function(t){var e=this.__data__,r=at(e,t);return r<0?void 0:e[r][1]};var st=function(t){return at(this.__data__,t)>-1};var pt=function(t,e){var r=this.__data__,n=at(r,t);return n<0?(++this.size,r.push([t,e])):r[n][1]=e,this};function ft(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}ft.prototype.clear=ot,ft.prototype.delete=lt,ft.prototype.get=ut,ft.prototype.has=st,ft.prototype.set=pt;var ht=ft,mt=U(_,"Map");var yt=function(){this.size=0,this.__data__={hash:new nt,map:new(mt||ht),string:new nt}};var dt=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 dt(e)?r["string"==typeof e?"string":"hash"]:r.map};var gt=function(t){var e=vt(this,t).delete(t);return this.size-=e?1:0,e};var bt=function(t){return vt(this,t).get(t)};var _t=function(t){return vt(this,t).has(t)};var wt=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 Et(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}Et.prototype.clear=yt,Et.prototype.delete=gt,Et.prototype.get=bt,Et.prototype.has=_t,Et.prototype.set=wt;var Ot=Et;function jt(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var r=function(){var n=arguments,o=e?e.apply(this,n):n[0],i=r.cache;if(i.has(o))return i.get(o);var a=t.apply(this,n);return r.cache=i.set(o,a)||i,a};return r.cache=new(jt.Cache||Ot),r}jt.Cache=Ot;var kt=jt;var xt=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,St=/\\(\\)?/g;(function(t){var e=kt(t,(function(t){return 500===r.size&&r.clear(),t})),r=e.cache})((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(xt,(function(t,r,n,o){e.push(n?o.replace(St,"$1"):r||t)})),e}));var Nt=w?w.prototype:void 0;Nt&&Nt.toString;var Ct=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},Mt=a.shape({"sketches-host":a.string,"cdn-name":a.string,"cdn-image":a.string}),Tt=a.shape({headline:a.string,"last-published-at":a.number,subheadline:a.string});function Pt(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function It(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 Ft(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i=[],a=!0,c=!1;try{for(r=r.call(t);!(a=(n=r.next()).done)&&(i.push(n.value),!e||i.length!==e);a=!0);}catch(t){c=!0,o=t}finally{try{a||null==r.return||r.return()}finally{if(c)throw o}}return i}}(t,e)||function(t,e){if(t){if("string"==typeof t)return It(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)?It(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 At=function(e){return e.width,e.height,e.iconColor,t.createElement("div",{className:"loading-m_loading-indicator__2Dlst"},t.createElement("svg",{width:"40",height:"40",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 100",preserveAspectRatio:"xMidYMid"},t.createElement("circle",{cx:"84",cy:"50",r:"0",fill:"currentColor"},t.createElement("animate",{attributeName:"r",values:"10;0;0;0;0",keyTimes:"0;0.25;0.5;0.75;1",keySplines:"0 0.5 0.5 1;0 0.5 0.5 1;0 0.5 0.5 1;0 0.5 0.5 1",calcMode:"spline",dur:"2s",repeatCount:"indefinite",begin:"0s"}),t.createElement("animate",{attributeName:"cx",values:"84;84;84;84;84",keyTimes:"0;0.25;0.5;0.75;1",keySplines:"0 0.5 0.5 1;0 0.5 0.5 1;0 0.5 0.5 1;0 0.5 0.5 1",calcMode:"spline",dur:"2s",repeatCount:"indefinite",begin:"0s"})),t.createElement("circle",{cx:"84",cy:"50",r:".709",fill:"currentColor"},t.createElement("animate",{attributeName:"r",values:"0;10;10;10;0",keyTimes:"0;0.25;0.5;0.75;1",keySplines:"0 0.5 0.5 1;0 0.5 0.5 1;0 0.5 0.5 1;0 0.5 0.5 1",calcMode:"spline",dur:"2s",repeatCount:"indefinite",begin:"-1s"}),t.createElement("animate",{attributeName:"cx",values:"16;16;50;84;84",keyTimes:"0;0.25;0.5;0.75;1",keySplines:"0 0.5 0.5 1;0 0.5 0.5 1;0 0.5 0.5 1;0 0.5 0.5 1",calcMode:"spline",dur:"2s",repeatCount:"indefinite",begin:"-1s"})),t.createElement("circle",{cx:"81.59",cy:"50",r:"10",fill:"currentColor"},t.createElement("animate",{attributeName:"r",values:"0;10;10;10;0",keyTimes:"0;0.25;0.5;0.75;1",keySplines:"0 0.5 0.5 1;0 0.5 0.5 1;0 0.5 0.5 1;0 0.5 0.5 1",calcMode:"spline",dur:"2s",repeatCount:"indefinite",begin:"-0.5s"}),t.createElement("animate",{attributeName:"cx",values:"16;16;50;84;84",keyTimes:"0;0.25;0.5;0.75;1",keySplines:"0 0.5 0.5 1;0 0.5 0.5 1;0 0.5 0.5 1;0 0.5 0.5 1",calcMode:"spline",dur:"2s",repeatCount:"indefinite",begin:"-0.5s"})),t.createElement("circle",{cx:"47.59",cy:"50",r:"10",fill:"currentColor"},t.createElement("animate",{attributeName:"r",values:"0;10;10;10;0",keyTimes:"0;0.25;0.5;0.75;1",keySplines:"0 0.5 0.5 1;0 0.5 0.5 1;0 0.5 0.5 1;0 0.5 0.5 1",calcMode:"spline",dur:"2s",repeatCount:"indefinite",begin:"0s"}),t.createElement("animate",{attributeName:"cx",values:"16;16;50;84;84",keyTimes:"0;0.25;0.5;0.75;1",keySplines:"0 0.5 0.5 1;0 0.5 0.5 1;0 0.5 0.5 1;0 0.5 0.5 1",calcMode:"spline",dur:"2s",repeatCount:"indefinite",begin:"0s"})),t.createElement("circle",{cx:"16",cy:"50",r:"9.291",fill:"currentColor"},t.createElement("animate",{attributeName:"r",values:"0;0;10;10;10",keyTimes:"0;0.25;0.5;0.75;1",keySplines:"0 0.5 0.5 1;0 0.5 0.5 1;0 0.5 0.5 1;0 0.5 0.5 1",calcMode:"spline",dur:"2s",repeatCount:"indefinite",begin:"0s"}),t.createElement("animate",{attributeName:"cx",values:"16;16;16;50;84",keyTimes:"0;0.25;0.5;0.75;1",keySplines:"0 0.5 0.5 1;0 0.5 0.5 1;0 0.5 0.5 1;0 0.5 0.5 1",calcMode:"spline",dur:"2s",repeatCount:"indefinite",begin:"0s"}))))};At.propTypes={width:a.object,height:a.object,iconColor:a.object};var Rt=function(){return t.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"36",height:"28"},t.createElement("g",{fill:"none",fillRule:"evenodd"},t.createElement("rect",{width:"36",height:"28",fill:"#3D6FCF",rx:"4"}),t.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"})))},zt=function(e){var r=e.hyperLink,n=void 0===r?"":r;return n?t.createElement(c,{href:n,"aria-label":"hyperlink-button",className:"arr--hyperlink-button hyperlink-m_hyperlink-button__1CqWx",target:"_blank",rel:"noopener noreferrer"},t.createElement(Rt,null)):null};function $t(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}zt.propTypes={hyperLink:a.string};var Gt=n((function(){return import("react-image-lightbox")})),Wt=function(n){var o=n.imageSlug,i=void 0===o?"":o,a=n.template,c=n.element,l=void 0===c?{}:c,f=n.props,h=u((function(t){return s(t,["qt","config","cdn-image"])})),m=Ft(e(0),2),y=m[0],d=m[1],v=Ft(e(!1),2),g=v[0],b=v[1],_=s(global,["innerWidth"],0),w=s(l,["story-elements"],[]).map((function(t){return t.hyperlink})),E=[];i||(E=s(l,["story-elements"],[]).map((function(t){return"//".concat(h,"/").concat(t["image-s3-key"],"?w=").concat(_)})));var O=i?"onClick":"onClickHandler",j=E.length,k=function(){return l.hyperlink||w[y]?t.createElement(zt,{hyperLink:l.hyperlink||w[y]}):null},x=i?{mainSrc:"//".concat(h,"/").concat(i,"?w=").concat(_),toolbarButtons:[k()]}:{mainSrc:E[y],nextSrc:E[(y+1)%j],prevSrc:E[(y+j-1)%j],onMoveNextRequest:function(){return function(t){d((y+1)%t)}(j)},onMovePrevRequest:function(){return function(t){d((y+t-1)%t)}(j)},toolbarButtons:[k()]},S=function(){return t.createElement("div",null,t.createElement(At,null))};return t.createElement("div",null,t.createElement(a,function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?$t(Object(r),!0).forEach((function(e){Pt(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):$t(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}(Pt({},O,(function(t){b(!0),d(t)})),f)),g?t.createElement(r,{fallback:t.createElement(S,null)},t.createElement(Gt,p({wrapperClassName:"arr--image-lightbox",onCloseRequest:function(){d(0),b(!1)}},x))):null)};Wt.propTypes={imageSlug:a.string,template:a.func,element:a.shape({"story-elements":a.array}),props:a.object};var qt=i(),Dt=function(){return o(qt)},Bt=v((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})),Ht=d(v((function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r,n=(r=Bt)&&r.__esModule?r:{default:r};var o=function(t,e){if("throw"===e)throw new Error(t);return"warn"===e&&console.warn(t),null};e.default=function(t,e,r){var i=Object.keys(e),a=r||{},c=a.handleMissingStyleName,l=void 0===c?n.default.handleMissingStyleName:c,u=a.autoResolveMultipleImports,s=void 0===u?n.default.autoResolveMultipleImports:u;return t?t.split(" ").filter((function(t){return t})).map((function(t){if(function(t){return-1!==t.indexOf(".")}(t))return function(t,e,r){var i=t.split("."),a=i[0],c=i[1],l=r||n.default.handleMissingStyleName;return c?e[a]?e[a][c]?e[a][c]:o("CSS module does not exist: "+c,l):o("CSS module import does not exist: "+a,l):o("Invalid style name: "+t,l)}(t,e,l);if(0===i.length)throw new Error("Cannot use styleName attribute for style name '"+t+"' without importing at least one stylesheet.");if(i.length>1){if(!s)throw new Error("Cannot use anonymous style name '"+t+"' with more than one stylesheet import without setting 'autoResolveMultipleImports' to true.");return function(t,e,r){var i=r||n.default.handleMissingStyleName,a=Object.keys(e).map((function(r){return e[r][t]&&r})).filter((function(t){return t}));if(a.length>1)throw new Error('Cannot resolve styleName "'+t+'" because it is present in multiple imports:\n\n\t'+a.join("\n\t")+'\n\nYou can resolve this by using a named import, e.g:\n\n\timport foo from "'+a[0]+'";\n\t<div styleName="foo.'+t+'" />\n\n');return 0===a.length?o("Could not resolve the styleName '"+t+"'.",i):e[a[0]][t]}(t,e,l)}var r=e[i[0]];return r[t]?r[t]:o("Could not resolve the styleName '"+t+"'.",l)})).filter((function(t){return t})).join(" "):""}}))),Yt={"./caption-attribution.m.css":{viewports:'"../../../../assets/stylesheets/viewports.m.css"',mobile:"768px",caption:"caption-attribution-m_caption__BM5NN",wrapper:"caption-attribution-m_wrapper__oHBX7",dark:"caption-attribution-m_dark__uER8u",attribution:"caption-attribution-m_attribution__279W9",light:"caption-attribution-m_light__19OWp"}},Ut=function(e){var r=e.story,n=e.element;if(e.config,!r&&!n)return null;var o=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 Ct(e)<155?"light":"dark"}((Dt()||{}).theme),i=r||{},a=i["hero-image-caption"],c=void 0===a?"":a,l=i["hero-image-attribution"],u=void 0===l?"":l,s=n||{},p=s.title,f=void 0===p?"":p,h=s["image-attribution"],m=c||f,y=u||(void 0===h?"":h),d=m?"wrapper":"";return t.createElement("div",{"data-test-id":"caption",className:"arr--caption-attribution "+Ht("caption ".concat(o),Yt)},t.createElement("span",{dangerouslySetInnerHTML:{__html:m}}),y&&t.createElement("span",{"data-test-id":"attribution",dangerouslySetInnerHTML:{__html:y},className:Ht("attribution ".concat(o," ").concat(d),Yt)}))};Ut.propTypes={config:a.shape({theme:a.string}),story:Tt,element:a.shape({"image-attribution":a.string,title:a.string})};var Xt=["element","opts","story","config","caption"],Kt=function(e){var r=e.element,n=e.opts,o=void 0===n?{}:n,i=e.story,c=void 0===i?{}:i;e.config;var u=e.caption,s=void 0===u||u,h=f(e,Xt);if(!r)return null;var m=Dt()||{},y=function(e){var n=e.onClick;return t.createElement("div",{className:"image-m_image-template__3s9OA"},t.createElement("figure",{className:"image-m_element__KVuzX",onClick:function(){return n()}},t.createElement(l,{slug:r["image-s3-key"],metadata:r["image-metadata"],alt:r.title,aspectRatio:null,defaultWidth:640,widths:o.imageWidths||[360,640,1200],imgParams:{auto:["format","compress"]}})),r.hyperlink&&t.createElement(zt,{hyperLink:r.hyperlink}))};return y.propTypes={onClick:a.func},t.createElement("div",p({className:"arrow-component arr--image-element"},h,{"data-test-id":"image-element"}),t.createElement(Wt,{template:y,element:r,imageSlug:r["image-s3-key"],story:c}),s&&t.createElement(Ut,{element:r,config:m}))};Kt.propTypes={element:a.shape({"image-s3-key":a.string,"image-metadata":a.object,"image-attribution":a.string,title:a.string,hyperlink:a.string}),caption:a.bool,opts:a.shape({imageWidths:a.array}),story:Tt,config:Mt};var Vt=m(Kt);export{Vt as Image};
@@ -0,0 +1 @@
1
+ import e,{useState as t,Suspense as r,lazy as n}from"react";import o from"prop-types";import{Link as i,ResponsiveImage as a}from"@quintype/components";import{useSelector as l}from"react-redux";import c from"lodash.get";import"react-timeago";import"date-fns-tz";function u(){return u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},u.apply(this,arguments)}function s(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var f="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function p(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function h(e){var t={exports:{}};return e(t,t.exports),t.exports}var m=h((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})),y=p(h((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,n=(r=m)&&r.__esModule?r:{default:r};var o=function(e,t){if("throw"===t)throw new Error(e);return"warn"===t&&console.warn(e),null};t.default=function(e,t,r){var i=Object.keys(t),a=r||{},l=a.handleMissingStyleName,c=void 0===l?n.default.handleMissingStyleName:l,u=a.autoResolveMultipleImports,s=void 0===u?n.default.autoResolveMultipleImports:u;return e?e.split(" ").filter((function(e){return e})).map((function(e){if(function(e){return-1!==e.indexOf(".")}(e))return function(e,t,r){var i=e.split("."),a=i[0],l=i[1],c=r||n.default.handleMissingStyleName;return l?t[a]?t[a][l]?t[a][l]:o("CSS module does not exist: "+l,c):o("CSS module import does not exist: "+a,c):o("Invalid style name: "+e,c)}(e,t,c);if(0===i.length)throw new Error("Cannot use styleName attribute for style name '"+e+"' without importing at least one stylesheet.");if(i.length>1){if(!s)throw new Error("Cannot use anonymous style name '"+e+"' with more than one stylesheet import without setting 'autoResolveMultipleImports' to true.");return function(e,t,r){var i=r||n.default.handleMissingStyleName,a=Object.keys(t).map((function(r){return t[r][e]&&r})).filter((function(e){return e}));if(a.length>1)throw new Error('Cannot resolve styleName "'+e+'" because it is present in multiple imports:\n\n\t'+a.join("\n\t")+'\n\nYou can resolve this by using a named import, e.g:\n\n\timport foo from "'+a[0]+'";\n\t<div styleName="foo.'+e+'" />\n\n');return 0===a.length?o("Could not resolve the styleName '"+e+"'.",i):t[a[0]][e]}(e,t,c)}var r=t[i[0]];return r[e]?r[e]:o("Could not resolve the styleName '"+e+"'.",c)})).filter((function(e){return e})).join(" "):""}}))),v=["element","render"],d=function(t){return function(r){var n=r.element,o=r.render,i=s(r,v);return n?o&&"function"==typeof o?o(r):e.createElement(t,u({},i,{element:n})):null}};function g(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function b(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function _(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i=[],a=!0,l=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==r.return||r.return()}finally{if(l)throw o}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return b(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)?b(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.")}()}d.propTypes={StoryElement:o.element};var w=function(t){return t.width,t.height,t.iconColor,e.createElement("div",{className:"loading-m_loading-indicator__2Dlst"},e.createElement("svg",{width:"40",height:"40",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 100",preserveAspectRatio:"xMidYMid"},e.createElement("circle",{cx:"84",cy:"50",r:"0",fill:"currentColor"},e.createElement("animate",{attributeName:"r",values:"10;0;0;0;0",keyTimes:"0;0.25;0.5;0.75;1",keySplines:"0 0.5 0.5 1;0 0.5 0.5 1;0 0.5 0.5 1;0 0.5 0.5 1",calcMode:"spline",dur:"2s",repeatCount:"indefinite",begin:"0s"}),e.createElement("animate",{attributeName:"cx",values:"84;84;84;84;84",keyTimes:"0;0.25;0.5;0.75;1",keySplines:"0 0.5 0.5 1;0 0.5 0.5 1;0 0.5 0.5 1;0 0.5 0.5 1",calcMode:"spline",dur:"2s",repeatCount:"indefinite",begin:"0s"})),e.createElement("circle",{cx:"84",cy:"50",r:".709",fill:"currentColor"},e.createElement("animate",{attributeName:"r",values:"0;10;10;10;0",keyTimes:"0;0.25;0.5;0.75;1",keySplines:"0 0.5 0.5 1;0 0.5 0.5 1;0 0.5 0.5 1;0 0.5 0.5 1",calcMode:"spline",dur:"2s",repeatCount:"indefinite",begin:"-1s"}),e.createElement("animate",{attributeName:"cx",values:"16;16;50;84;84",keyTimes:"0;0.25;0.5;0.75;1",keySplines:"0 0.5 0.5 1;0 0.5 0.5 1;0 0.5 0.5 1;0 0.5 0.5 1",calcMode:"spline",dur:"2s",repeatCount:"indefinite",begin:"-1s"})),e.createElement("circle",{cx:"81.59",cy:"50",r:"10",fill:"currentColor"},e.createElement("animate",{attributeName:"r",values:"0;10;10;10;0",keyTimes:"0;0.25;0.5;0.75;1",keySplines:"0 0.5 0.5 1;0 0.5 0.5 1;0 0.5 0.5 1;0 0.5 0.5 1",calcMode:"spline",dur:"2s",repeatCount:"indefinite",begin:"-0.5s"}),e.createElement("animate",{attributeName:"cx",values:"16;16;50;84;84",keyTimes:"0;0.25;0.5;0.75;1",keySplines:"0 0.5 0.5 1;0 0.5 0.5 1;0 0.5 0.5 1;0 0.5 0.5 1",calcMode:"spline",dur:"2s",repeatCount:"indefinite",begin:"-0.5s"})),e.createElement("circle",{cx:"47.59",cy:"50",r:"10",fill:"currentColor"},e.createElement("animate",{attributeName:"r",values:"0;10;10;10;0",keyTimes:"0;0.25;0.5;0.75;1",keySplines:"0 0.5 0.5 1;0 0.5 0.5 1;0 0.5 0.5 1;0 0.5 0.5 1",calcMode:"spline",dur:"2s",repeatCount:"indefinite",begin:"0s"}),e.createElement("animate",{attributeName:"cx",values:"16;16;50;84;84",keyTimes:"0;0.25;0.5;0.75;1",keySplines:"0 0.5 0.5 1;0 0.5 0.5 1;0 0.5 0.5 1;0 0.5 0.5 1",calcMode:"spline",dur:"2s",repeatCount:"indefinite",begin:"0s"})),e.createElement("circle",{cx:"16",cy:"50",r:"9.291",fill:"currentColor"},e.createElement("animate",{attributeName:"r",values:"0;0;10;10;10",keyTimes:"0;0.25;0.5;0.75;1",keySplines:"0 0.5 0.5 1;0 0.5 0.5 1;0 0.5 0.5 1;0 0.5 0.5 1",calcMode:"spline",dur:"2s",repeatCount:"indefinite",begin:"0s"}),e.createElement("animate",{attributeName:"cx",values:"16;16;16;50;84",keyTimes:"0;0.25;0.5;0.75;1",keySplines:"0 0.5 0.5 1;0 0.5 0.5 1;0 0.5 0.5 1;0 0.5 0.5 1",calcMode:"spline",dur:"2s",repeatCount:"indefinite",begin:"0s"}))))};w.propTypes={width:o.object,height:o.object,iconColor:o.object};var E=function(){return e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"36",height:"28"},e.createElement("g",{fill:"none",fillRule:"evenodd"},e.createElement("rect",{width:"36",height:"28",fill:"#3D6FCF",rx:"4"}),e.createElement("path",{stroke:"#FFF",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M22 14.667v4c0 .736-.597 1.333-1.333 1.333h-7.334A1.333 1.333 0 0112 18.667v-7.334c0-.736.597-1.333 1.333-1.333h4M20 8h4v4m-7.333 3.333L24 8"})))},j=function(t){var r=t.hyperLink,n=void 0===r?"":r;return n?e.createElement(i,{href:n,"aria-label":"hyperlink-button",className:"arr--hyperlink-button hyperlink-m_hyperlink-button__1CqWx",target:"_blank",rel:"noopener noreferrer"},e.createElement(E,null)):null};function O(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}j.propTypes={hyperLink:o.string};var k=n((function(){return import("react-image-lightbox")})),x=function(n){var o=n.imageSlug,i=void 0===o?"":o,a=n.template,s=n.element,f=void 0===s?{}:s,p=n.props,h=l((function(e){return c(e,["qt","config","cdn-image"])})),m=_(t(0),2),y=m[0],v=m[1],d=_(t(!1),2),b=d[0],E=d[1],x=c(global,["innerWidth"],0),S=c(f,["story-elements"],[]).map((function(e){return e.hyperlink})),N=[];i||(N=c(f,["story-elements"],[]).map((function(e){return"//".concat(h,"/").concat(e["image-s3-key"],"?w=").concat(x)})));var C=i?"onClick":"onClickHandler",L=N.length,M=function(){return f.hyperlink||S[y]?e.createElement(j,{hyperLink:f.hyperlink||S[y]}):null},P=i?{mainSrc:"//".concat(h,"/").concat(i,"?w=").concat(x),toolbarButtons:[M()]}:{mainSrc:N[y],nextSrc:N[(y+1)%L],prevSrc:N[(y+L-1)%L],onMoveNextRequest:function(){return function(e){v((y+1)%e)}(L)},onMovePrevRequest:function(){return function(e){v((y+e-1)%e)}(L)},toolbarButtons:[M()]},T=function(){return e.createElement("div",null,e.createElement(w,null))};return e.createElement("div",null,e.createElement(a,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?O(Object(r),!0).forEach((function(t){g(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):O(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}(g({},C,(function(e){E(!0),v(e)})),p)),b?e.createElement(r,{fallback:e.createElement(T,null)},e.createElement(k,u({wrapperClassName:"arr--image-lightbox",onCloseRequest:function(){v(0),E(!1)}},P))):null)};x.propTypes={imageSlug:o.string,template:o.func,element:o.shape({"story-elements":o.array}),props:o.object},h((function(e){var t=function(e){var t,r=Object.prototype,n=r.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,r){return e[t]=r}}function u(e,t,r,n){var o=t&&t.prototype instanceof v?t:v,i=Object.create(o.prototype),a=new N(n||[]);return i._invoke=function(e,t,r){var n=f;return function(o,i){if(n===h)throw new Error("Generator is already running");if(n===m){if("throw"===o)throw i;return L()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var l=k(a,r);if(l){if(l===y)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(n===f)throw n=m,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n=h;var c=s(e,t,r);if("normal"===c.type){if(n=r.done?m:p,c.arg===y)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n=m,r.method="throw",r.arg=c.arg)}}}(e,r,a),i}function s(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=u;var f="suspendedStart",p="suspendedYield",h="executing",m="completed",y={};function v(){}function d(){}function g(){}var b={};c(b,i,(function(){return this}));var _=Object.getPrototypeOf,w=_&&_(_(C([])));w&&w!==r&&n.call(w,i)&&(b=w);var E=g.prototype=v.prototype=Object.create(b);function j(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function O(e,t){function r(o,i,a,l){var c=s(e[o],e,i);if("throw"!==c.type){var u=c.arg,f=u.value;return f&&"object"==typeof f&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){r("next",e,a,l)}),(function(e){r("throw",e,a,l)})):t.resolve(f).then((function(e){u.value=e,a(u)}),(function(e){return r("throw",e,a,l)}))}l(c.arg)}var o;this._invoke=function(e,n){function i(){return new t((function(t,o){r(e,n,t,o)}))}return o=o?o.then(i,i):i()}}function k(e,r){var n=e.iterator[r.method];if(n===t){if(r.delegate=null,"throw"===r.method){if(e.iterator.return&&(r.method="return",r.arg=t,k(e,r),"throw"===r.method))return y;r.method="throw",r.arg=new TypeError("The iterator does not provide a 'throw' method")}return y}var o=s(n,e.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,y;var i=o.arg;return i?i.done?(r[e.resultName]=i.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function x(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 S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function N(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(x,this),this.reset(!0)}function C(e){if(e){var r=e[i];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}return{next:L}}function L(){return{value:t,done:!0}}return d.prototype=g,c(E,"constructor",g),c(g,"constructor",d),d.displayName=c(g,l,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===d||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,g):(e.__proto__=g,c(e,l,"GeneratorFunction")),e.prototype=Object.create(E),e},e.awrap=function(e){return{__await:e}},j(O.prototype),c(O.prototype,a,(function(){return this})),e.AsyncIterator=O,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new O(u(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},j(E),c(E,l,"Generator"),c(E,i,(function(){return this})),c(E,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=C,N.prototype={constructor:N,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(S),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return l.type="throw",l.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],l=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(e,t){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"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),y},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),S(r),y}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;S(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:C(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y}},e}(e.exports);try{regeneratorRuntime=t}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=t:Function("r","regeneratorRuntime = r")(t)}}));var S=Array.isArray,N="object"==typeof f&&f&&f.Object===Object&&f,C="object"==typeof self&&self&&self.Object===Object&&self,L=N||C||Function("return this")(),M=L.Symbol,P=Object.prototype,T=P.hasOwnProperty,F=P.toString,A=M?M.toStringTag:void 0;var I=function(e){var t=T.call(e,A),r=e[A];try{e[A]=void 0;var n=!0}catch(e){}var o=F.call(e);return n&&(t?e[A]=r:delete e[A]),o},R=Object.prototype.toString;var z=function(e){return R.call(e)},$=M?M.toStringTag:void 0;var G=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":$&&$ in Object(e)?I(e):z(e)};var q=function(e){return null!=e&&"object"==typeof e};var D=function(e){return"symbol"==typeof e||q(e)&&"[object Symbol]"==G(e)},W=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Y=/^\w*$/;var B=function(e,t){if(S(e))return!1;var r=typeof e;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=e&&!D(e))||(Y.test(e)||!W.test(e)||null!=t&&e in Object(t))};var H=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)};var Q,U=function(e){if(!H(e))return!1;var t=G(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},J=L["__core-js_shared__"],K=(Q=/[^.]+$/.exec(J&&J.keys&&J.keys.IE_PROTO||""))?"Symbol(src)_1."+Q:"";var V=function(e){return!!K&&K in e},X=Function.prototype.toString;var Z=function(e){if(null!=e){try{return X.call(e)}catch(e){}try{return e+""}catch(e){}}return""},ee=/^\[object .+?Constructor\]$/,te=Function.prototype,re=Object.prototype,ne=te.toString,oe=re.hasOwnProperty,ie=RegExp("^"+ne.call(oe).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var ae=function(e){return!(!H(e)||V(e))&&(U(e)?ie:ee).test(Z(e))};var le=function(e,t){return null==e?void 0:e[t]};var ce=function(e,t){var r=le(e,t);return ae(r)?r:void 0},ue=ce(Object,"create");var se=function(){this.__data__=ue?ue(null):{},this.size=0};var fe=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},pe=Object.prototype.hasOwnProperty;var he=function(e){var t=this.__data__;if(ue){var r=t[e];return"__lodash_hash_undefined__"===r?void 0:r}return pe.call(t,e)?t[e]:void 0},me=Object.prototype.hasOwnProperty;var ye=function(e){var t=this.__data__;return ue?void 0!==t[e]:me.call(t,e)};var ve=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=ue&&void 0===t?"__lodash_hash_undefined__":t,this};function de(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}de.prototype.clear=se,de.prototype.delete=fe,de.prototype.get=he,de.prototype.has=ye,de.prototype.set=ve;var ge=de;var be=function(){this.__data__=[],this.size=0};var _e=function(e,t){return e===t||e!=e&&t!=t};var we=function(e,t){for(var r=e.length;r--;)if(_e(e[r][0],t))return r;return-1},Ee=Array.prototype.splice;var je=function(e){var t=this.__data__,r=we(t,e);return!(r<0)&&(r==t.length-1?t.pop():Ee.call(t,r,1),--this.size,!0)};var Oe=function(e){var t=this.__data__,r=we(t,e);return r<0?void 0:t[r][1]};var ke=function(e){return we(this.__data__,e)>-1};var xe=function(e,t){var r=this.__data__,n=we(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this};function Se(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Se.prototype.clear=be,Se.prototype.delete=je,Se.prototype.get=Oe,Se.prototype.has=ke,Se.prototype.set=xe;var Ne=Se,Ce=ce(L,"Map");var Le=function(){this.size=0,this.__data__={hash:new ge,map:new(Ce||Ne),string:new ge}};var Me=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e};var Pe=function(e,t){var r=e.__data__;return Me(t)?r["string"==typeof t?"string":"hash"]:r.map};var Te=function(e){var t=Pe(this,e).delete(e);return this.size-=t?1:0,t};var Fe=function(e){return Pe(this,e).get(e)};var Ae=function(e){return Pe(this,e).has(e)};var Ie=function(e,t){var r=Pe(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this};function Re(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Re.prototype.clear=Le,Re.prototype.delete=Te,Re.prototype.get=Fe,Re.prototype.has=Ae,Re.prototype.set=Ie;var ze=Re;function $e(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var r=function(){var n=arguments,o=t?t.apply(this,n):n[0],i=r.cache;if(i.has(o))return i.get(o);var a=e.apply(this,n);return r.cache=i.set(o,a)||i,a};return r.cache=new($e.Cache||ze),r}$e.Cache=ze;var Ge=$e;var qe=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,De=/\\(\\)?/g,We=function(e){var t=Ge(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(qe,(function(e,r,n,o){t.push(n?o.replace(De,"$1"):r||e)})),t}));var Ye=function(e,t){for(var r=-1,n=null==e?0:e.length,o=Array(n);++r<n;)o[r]=t(e[r],r,e);return o},Be=M?M.prototype:void 0,He=Be?Be.toString:void 0;var Qe=function e(t){if("string"==typeof t)return t;if(S(t))return Ye(t,e)+"";if(D(t))return He?He.call(t):"";var r=t+"";return"0"==r&&1/t==-Infinity?"-0":r};var Ue=function(e){return null==e?"":Qe(e)};var Je=function(e,t){return S(e)?e:B(e,t)?[e]:We(Ue(e))};var Ke=function(e){if("string"==typeof e||D(e))return e;var t=e+"";return"0"==t&&1/e==-Infinity?"-0":t};var Ve=function(e,t){for(var r=0,n=(t=Je(t,e)).length;null!=e&&r<n;)e=e[Ke(t[r++])];return r&&r==n?e:void 0};var Xe=function(e,t,r){var n=null==e?void 0:Ve(e,t);return void 0===n?r:n},Ze={mobile:767,tablet:1024},et=o.shape({"sketches-host":o.string,"cdn-name":o.string,"cdn-image":o.string}),tt=o.shape({headline:o.string,"last-published-at":o.number,subheadline:o.string}),rt=["element","template","opts","story","config"],nt={"./image-gallery.m.css":{viewports:'"../../../../../assets/stylesheets/viewports.m.css"',mobile:"768px","image-gallery":"image-gallery-m_image-gallery__1Q7if",image:"image-gallery-m_image__3qwSJ","template-2":"image-gallery-m_template-2__2pjmE","left-images":"image-gallery-m_left-images__34gjv","hyperlink-gallery-image":"image-gallery-m_hyperlink-gallery-image__2qgDp"}},ot=function(t){var r=t.element,n=t.template,i=void 0===n?"":n;t.opts,t.story,t.config;var l=s(t,rt);if(!r)return null;var c,f=!!(c=Xe(Ze,"mobile"))&&Xe(global,"document.documentElement.clientWidth")<=c,p=r["story-elements"],h="template-2"===i&&p.length,m=h>6?p.slice(0,6):p,v=h>4?p.slice(0,4):p,d=f?v:m,g="template-2"===i?"template-2":"",b=function(t){var r=t.onClickHandler,n=d.map((function(t,n){return e.createElement("div",{key:n,className:y((o=t.hyperlink,o?"hyperlink-gallery-image":""),nt)},e.createElement("figure",{key:n,"data-text-id":"image-".concat(n),onClick:function(){return r&&r(n)},className:y("image ".concat(g),nt)},e.createElement(a,{slug:t["image-s3-key"],metadata:t["image-metadata"],alt:t.title,aspectRatio:[1,1],defaultWidth:640,imgParams:{auto:["format","compress"]}})),t.hyperlink&&e.createElement(j,{hyperLink:t.hyperlink}));var o}));return e.createElement("div",u({className:" arrow-component arr--image-element image-gallery-m_image-gallery__1Q7if "+(l&&l.className||"")},l,{"data-test-id":"image-gallery"}),n)};return b.propTypes={onClickHandler:o.func},e.createElement(x,{template:b,element:r})};ot.propTypes={element:o.shape({"story-elements":o.array}),opts:o.shape({imageWidths:o.array}),story:tt,config:et,template:o.string};var it=d(ot);export{it as ImageGallery};
@@ -0,0 +1 @@
1
+ import{Link as e,LazyLoadImages as t,ResponsiveImage as r}from"@quintype/components";import n from"lodash.get";import o,{number as i,string as a,func as l,array as c,bool as s}from"prop-types";import u,{useState as f,Suspense as p,lazy as d,useContext as h,createContext as m,useRef as v,useEffect as y}from"react";import"react-timeago";import"date-fns-tz";import{useSelector as g}from"react-redux";var _="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function w(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function b(e){var t={exports:{}};return e(t,t.exports),t.exports}b((function(e){var t=function(e){var t,r=Object.prototype,n=r.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",l=o.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,n){var o=t&&t.prototype instanceof v?t:v,i=Object.create(o.prototype),a=new N(n||[]);return i._invoke=function(e,t,r){var n=f;return function(o,i){if(n===d)throw new Error("Generator is already running");if(n===h){if("throw"===o)throw i;return T()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var l=O(a,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===f)throw n=h,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n=d;var c=u(e,t,r);if("normal"===c.type){if(n=r.done?h:p,c.arg===m)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n=h,r.method="throw",r.arg=c.arg)}}}(e,r,a),i}function u(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=s;var f="suspendedStart",p="suspendedYield",d="executing",h="completed",m={};function v(){}function y(){}function g(){}var _={};c(_,i,(function(){return this}));var w=Object.getPrototypeOf,b=w&&w(w(C([])));b&&b!==r&&n.call(b,i)&&(_=b);var E=g.prototype=v.prototype=Object.create(_);function k(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function x(e,t){function r(o,i,a,l){var c=u(e[o],e,i);if("throw"!==c.type){var s=c.arg,f=s.value;return f&&"object"==typeof f&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){r("next",e,a,l)}),(function(e){r("throw",e,a,l)})):t.resolve(f).then((function(e){s.value=e,a(s)}),(function(e){return r("throw",e,a,l)}))}l(c.arg)}var o;this._invoke=function(e,n){function i(){return new t((function(t,o){r(e,n,t,o)}))}return o=o?o.then(i,i):i()}}function O(e,r){var n=e.iterator[r.method];if(n===t){if(r.delegate=null,"throw"===r.method){if(e.iterator.return&&(r.method="return",r.arg=t,O(e,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=u(n,e.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,m;var i=o.arg;return i?i.done?(r[e.resultName]=i.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,m):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,m)}function j(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 S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function N(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(j,this),this.reset(!0)}function C(e){if(e){var r=e[i];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}return{next:T}}function T(){return{value:t,done:!0}}return y.prototype=g,c(E,"constructor",g),c(g,"constructor",y),y.displayName=c(g,l,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===y||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,g):(e.__proto__=g,c(e,l,"GeneratorFunction")),e.prototype=Object.create(E),e},e.awrap=function(e){return{__await:e}},k(x.prototype),c(x.prototype,a,(function(){return this})),e.AsyncIterator=x,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new x(s(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},k(E),c(E,l,"Generator"),c(E,i,(function(){return this})),c(E,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=C,N.prototype={constructor:N,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(S),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return l.type="throw",l.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],l=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(e,t){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"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,m):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),m},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),S(r),m}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;S(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:C(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),m}},e}(e.exports);try{regeneratorRuntime=t}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=t:Function("r","regeneratorRuntime = r")(t)}}));var E=Array.isArray,k="object"==typeof _&&_&&_.Object===Object&&_,x="object"==typeof self&&self&&self.Object===Object&&self,O=k||x||Function("return this")(),j=O.Symbol,S=Object.prototype,N=S.hasOwnProperty,C=S.toString,T=j?j.toStringTag:void 0;var I=function(e){var t=N.call(e,T),r=e[T];try{e[T]=void 0;var n=!0}catch(e){}var o=C.call(e);return n&&(t?e[T]=r:delete e[T]),o},M=Object.prototype.toString;var L=function(e){return M.call(e)},P=j?j.toStringTag:void 0;var F=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":P&&P in Object(e)?I(e):L(e)};var A=function(e){return null!=e&&"object"==typeof e};var R=function(e){return"symbol"==typeof e||A(e)&&"[object Symbol]"==F(e)},z=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,D=/^\w*$/;var G=function(e,t){if(E(e))return!1;var r=typeof e;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=e&&!R(e))||(D.test(e)||!z.test(e)||null!=t&&e in Object(t))};var $=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)};var H,V=function(e){if(!$(e))return!1;var t=F(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},q=O["__core-js_shared__"],W=(H=/[^.]+$/.exec(q&&q.keys&&q.keys.IE_PROTO||""))?"Symbol(src)_1."+H:"";var U=function(e){return!!W&&W in e},B=Function.prototype.toString;var X=function(e){if(null!=e){try{return B.call(e)}catch(e){}try{return e+""}catch(e){}}return""},Y=/^\[object .+?Constructor\]$/,J=Function.prototype,K=Object.prototype,Z=J.toString,Q=K.hasOwnProperty,ee=RegExp("^"+Z.call(Q).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var te=function(e){return!(!$(e)||U(e))&&(V(e)?ee:Y).test(X(e))};var re=function(e,t){return null==e?void 0:e[t]};var ne=function(e,t){var r=re(e,t);return te(r)?r:void 0},oe=ne(Object,"create");var ie=function(){this.__data__=oe?oe(null):{},this.size=0};var ae=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},le=Object.prototype.hasOwnProperty;var ce=function(e){var t=this.__data__;if(oe){var r=t[e];return"__lodash_hash_undefined__"===r?void 0:r}return le.call(t,e)?t[e]:void 0},se=Object.prototype.hasOwnProperty;var ue=function(e){var t=this.__data__;return oe?void 0!==t[e]:se.call(t,e)};var fe=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=oe&&void 0===t?"__lodash_hash_undefined__":t,this};function pe(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}pe.prototype.clear=ie,pe.prototype.delete=ae,pe.prototype.get=ce,pe.prototype.has=ue,pe.prototype.set=fe;var de=pe;var he=function(){this.__data__=[],this.size=0};var me=function(e,t){return e===t||e!=e&&t!=t};var ve=function(e,t){for(var r=e.length;r--;)if(me(e[r][0],t))return r;return-1},ye=Array.prototype.splice;var ge=function(e){var t=this.__data__,r=ve(t,e);return!(r<0)&&(r==t.length-1?t.pop():ye.call(t,r,1),--this.size,!0)};var _e=function(e){var t=this.__data__,r=ve(t,e);return r<0?void 0:t[r][1]};var we=function(e){return ve(this.__data__,e)>-1};var be=function(e,t){var r=this.__data__,n=ve(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this};function Ee(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Ee.prototype.clear=he,Ee.prototype.delete=ge,Ee.prototype.get=_e,Ee.prototype.has=we,Ee.prototype.set=be;var ke=Ee,xe=ne(O,"Map");var Oe=function(){this.size=0,this.__data__={hash:new de,map:new(xe||ke),string:new de}};var je=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e};var Se=function(e,t){var r=e.__data__;return je(t)?r["string"==typeof t?"string":"hash"]:r.map};var Ne=function(e){var t=Se(this,e).delete(e);return this.size-=t?1:0,t};var Ce=function(e){return Se(this,e).get(e)};var Te=function(e){return Se(this,e).has(e)};var Ie=function(e,t){var r=Se(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this};function Me(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Me.prototype.clear=Oe,Me.prototype.delete=Ne,Me.prototype.get=Ce,Me.prototype.has=Te,Me.prototype.set=Ie;var Le=Me;function Pe(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var r=function(){var n=arguments,o=t?t.apply(this,n):n[0],i=r.cache;if(i.has(o))return i.get(o);var a=e.apply(this,n);return r.cache=i.set(o,a)||i,a};return r.cache=new(Pe.Cache||Le),r}Pe.Cache=Le;var Fe=Pe;var Ae=function(e){var t=Fe(e,(function(e){return 500===r.size&&r.clear(),e})),r=t.cache;return t},Re=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ze=/\\(\\)?/g,De=Ae((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(Re,(function(e,r,n,o){t.push(n?o.replace(ze,"$1"):r||e)})),t})),Ge=De;var $e=function(e,t){for(var r=-1,n=null==e?0:e.length,o=Array(n);++r<n;)o[r]=t(e[r],r,e);return o},He=j?j.prototype:void 0,Ve=He?He.toString:void 0;var qe=function e(t){if("string"==typeof t)return t;if(E(t))return $e(t,e)+"";if(R(t))return Ve?Ve.call(t):"";var r=t+"";return"0"==r&&1/t==-Infinity?"-0":r};var We=function(e){return null==e?"":qe(e)};var Ue=function(e,t){return E(e)?e:G(e,t)?[e]:Ge(We(e))};var Be=function(e){if("string"==typeof e||R(e))return e;var t=e+"";return"0"==t&&1/e==-Infinity?"-0":t};var Xe=function(e,t){for(var r=0,n=(t=Ue(t,e)).length;null!=e&&r<n;)e=e[Be(t[r++])];return r&&r==n?e:void 0};var Ye=function(e,t,r){var n=null==e?void 0:Xe(e,t);return void 0===n?r:n},Je=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},Ke=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},Ze=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:Ke(e),n=Je(r)<155?"light":"dark";return n};o.shape({"sketches-host":o.string,"cdn-name":o.string,"cdn-image":o.string});var Qe=o.shape({headline:o.string,"last-published-at":o.number,subheadline:o.string});function et(){return et=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},et.apply(this,arguments)}function tt(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function rt(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function nt(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i=[],a=!0,l=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==r.return||r.return()}finally{if(l)throw o}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return rt(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)?rt(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 ot=function(e){return e.width,e.height,e.iconColor,u.createElement("div",{className:"loading-m_loading-indicator__2Dlst"},u.createElement("svg",{width:"40",height:"40",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 100",preserveAspectRatio:"xMidYMid"},u.createElement("circle",{cx:"84",cy:"50",r:"0",fill:"currentColor"},u.createElement("animate",{attributeName:"r",values:"10;0;0;0;0",keyTimes:"0;0.25;0.5;0.75;1",keySplines:"0 0.5 0.5 1;0 0.5 0.5 1;0 0.5 0.5 1;0 0.5 0.5 1",calcMode:"spline",dur:"2s",repeatCount:"indefinite",begin:"0s"}),u.createElement("animate",{attributeName:"cx",values:"84;84;84;84;84",keyTimes:"0;0.25;0.5;0.75;1",keySplines:"0 0.5 0.5 1;0 0.5 0.5 1;0 0.5 0.5 1;0 0.5 0.5 1",calcMode:"spline",dur:"2s",repeatCount:"indefinite",begin:"0s"})),u.createElement("circle",{cx:"84",cy:"50",r:".709",fill:"currentColor"},u.createElement("animate",{attributeName:"r",values:"0;10;10;10;0",keyTimes:"0;0.25;0.5;0.75;1",keySplines:"0 0.5 0.5 1;0 0.5 0.5 1;0 0.5 0.5 1;0 0.5 0.5 1",calcMode:"spline",dur:"2s",repeatCount:"indefinite",begin:"-1s"}),u.createElement("animate",{attributeName:"cx",values:"16;16;50;84;84",keyTimes:"0;0.25;0.5;0.75;1",keySplines:"0 0.5 0.5 1;0 0.5 0.5 1;0 0.5 0.5 1;0 0.5 0.5 1",calcMode:"spline",dur:"2s",repeatCount:"indefinite",begin:"-1s"})),u.createElement("circle",{cx:"81.59",cy:"50",r:"10",fill:"currentColor"},u.createElement("animate",{attributeName:"r",values:"0;10;10;10;0",keyTimes:"0;0.25;0.5;0.75;1",keySplines:"0 0.5 0.5 1;0 0.5 0.5 1;0 0.5 0.5 1;0 0.5 0.5 1",calcMode:"spline",dur:"2s",repeatCount:"indefinite",begin:"-0.5s"}),u.createElement("animate",{attributeName:"cx",values:"16;16;50;84;84",keyTimes:"0;0.25;0.5;0.75;1",keySplines:"0 0.5 0.5 1;0 0.5 0.5 1;0 0.5 0.5 1;0 0.5 0.5 1",calcMode:"spline",dur:"2s",repeatCount:"indefinite",begin:"-0.5s"})),u.createElement("circle",{cx:"47.59",cy:"50",r:"10",fill:"currentColor"},u.createElement("animate",{attributeName:"r",values:"0;10;10;10;0",keyTimes:"0;0.25;0.5;0.75;1",keySplines:"0 0.5 0.5 1;0 0.5 0.5 1;0 0.5 0.5 1;0 0.5 0.5 1",calcMode:"spline",dur:"2s",repeatCount:"indefinite",begin:"0s"}),u.createElement("animate",{attributeName:"cx",values:"16;16;50;84;84",keyTimes:"0;0.25;0.5;0.75;1",keySplines:"0 0.5 0.5 1;0 0.5 0.5 1;0 0.5 0.5 1;0 0.5 0.5 1",calcMode:"spline",dur:"2s",repeatCount:"indefinite",begin:"0s"})),u.createElement("circle",{cx:"16",cy:"50",r:"9.291",fill:"currentColor"},u.createElement("animate",{attributeName:"r",values:"0;0;10;10;10",keyTimes:"0;0.25;0.5;0.75;1",keySplines:"0 0.5 0.5 1;0 0.5 0.5 1;0 0.5 0.5 1;0 0.5 0.5 1",calcMode:"spline",dur:"2s",repeatCount:"indefinite",begin:"0s"}),u.createElement("animate",{attributeName:"cx",values:"16;16;16;50;84",keyTimes:"0;0.25;0.5;0.75;1",keySplines:"0 0.5 0.5 1;0 0.5 0.5 1;0 0.5 0.5 1;0 0.5 0.5 1",calcMode:"spline",dur:"2s",repeatCount:"indefinite",begin:"0s"}))))};ot.propTypes={width:o.object,height:o.object,iconColor:o.object};var it=function(){return u.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"36",height:"28"},u.createElement("g",{fill:"none",fillRule:"evenodd"},u.createElement("rect",{width:"36",height:"28",fill:"#3D6FCF",rx:"4"}),u.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"})))},at=function(t){var r=t.hyperLink,n=void 0===r?"":r;return n?u.createElement(e,{href:n,"aria-label":"hyperlink-button",className:"arr--hyperlink-button hyperlink-m_hyperlink-button__1CqWx",target:"_blank",rel:"noopener noreferrer"},u.createElement(it,null)):null};function lt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}at.propTypes={hyperLink:o.string};var ct=d((function(){return import("react-image-lightbox")})),st=function(e){var t=e.imageSlug,r=void 0===t?"":t,o=e.template,i=e.element,a=void 0===i?{}:i,l=e.props,c=g((function(e){return n(e,["qt","config","cdn-image"])})),s=nt(f(0),2),d=s[0],h=s[1],m=nt(f(!1),2),v=m[0],y=m[1],_=n(global,["innerWidth"],0),w=n(a,["story-elements"],[]).map((function(e){return e.hyperlink})),b=[];r||(b=n(a,["story-elements"],[]).map((function(e){return"//".concat(c,"/").concat(e["image-s3-key"],"?w=").concat(_)})));var E=r?"onClick":"onClickHandler",k=b.length,x=function(){return a.hyperlink||w[d]?u.createElement(at,{hyperLink:a.hyperlink||w[d]}):null},O=r?{mainSrc:"//".concat(c,"/").concat(r,"?w=").concat(_),toolbarButtons:[x()]}:{mainSrc:b[d],nextSrc:b[(d+1)%k],prevSrc:b[(d+k-1)%k],onMoveNextRequest:function(){return function(e){h((d+1)%e)}(k)},onMovePrevRequest:function(){return function(e){h((d+e-1)%e)}(k)},toolbarButtons:[x()]},j=function(){return u.createElement("div",null,u.createElement(ot,null))};return u.createElement("div",null,u.createElement(o,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?lt(Object(r),!0).forEach((function(t){tt(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):lt(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}(tt({},E,(function(e){y(!0),h(e)})),l)),v?u.createElement(p,{fallback:u.createElement(j,null)},u.createElement(ct,et({wrapperClassName:"arr--image-lightbox",onCloseRequest:function(){h(0),y(!1)}},O))):null)};function ut(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}st.propTypes={imageSlug:o.string,template:o.func,element:o.shape({"story-elements":o.array}),props:o.object};var ft=["element","render"],pt=function(e){return function(t){var r=t.element,n=t.render,o=ut(t,ft);return r?n&&"function"==typeof n?n(t):u.createElement(e,et({},o,{element:r})):null}};pt.propTypes={StoryElement:o.element};var dt=b((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={attributeNames:{styleName:"className"},generateScopedName:"[path]___[name]__[local]___[hash:base64:5]",handleMissingStyleName:"throw"};t.default=r})),ht=w(b((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,n=(r=dt)&&r.__esModule?r:{default:r};var o=function(e,t){if("throw"===t)throw new Error(e);return"warn"===t&&console.warn(e),null};t.default=function(e,t,r){var i=Object.keys(t),a=r||{},l=a.handleMissingStyleName,c=void 0===l?n.default.handleMissingStyleName:l,s=a.autoResolveMultipleImports,u=void 0===s?n.default.autoResolveMultipleImports:s;return e?e.split(" ").filter((function(e){return e})).map((function(e){if(function(e){return-1!==e.indexOf(".")}(e))return function(e,t,r){var i=e.split("."),a=i[0],l=i[1],c=r||n.default.handleMissingStyleName;return l?t[a]?t[a][l]?t[a][l]:o("CSS module does not exist: "+l,c):o("CSS module import does not exist: "+a,c):o("Invalid style name: "+e,c)}(e,t,c);if(0===i.length)throw new Error("Cannot use styleName attribute for style name '"+e+"' without importing at least one stylesheet.");if(i.length>1){if(!u)throw new Error("Cannot use anonymous style name '"+e+"' with more than one stylesheet import without setting 'autoResolveMultipleImports' to true.");return function(e,t,r){var i=r||n.default.handleMissingStyleName,a=Object.keys(t).map((function(r){return t[r][e]&&r})).filter((function(e){return e}));if(a.length>1)throw new Error('Cannot resolve styleName "'+e+'" because it is present in multiple imports:\n\n\t'+a.join("\n\t")+'\n\nYou can resolve this by using a named import, e.g:\n\n\timport foo from "'+a[0]+'";\n\t<div styleName="foo.'+e+'" />\n\n');return 0===a.length?o("Could not resolve the styleName '"+e+"'.",i):t[a[0]][e]}(e,t,c)}var r=t[i[0]];return r[e]?r[e]:o("Could not resolve the styleName '"+e+"'.",c)})).filter((function(e){return e})).join(" "):""}}))),mt=function(e){var t=e.color,r=void 0===t?"#333":t;return u.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 10 16"},u.createElement("g",{fill:"none",fillRule:"nonzero"},u.createElement("path",{d:"M17 20H-7V-4h24z",opacity:".384"}),u.createElement("path",{stroke:r,d:"M9 16L1 8l8-8"})))};mt.propTypes={color:o.string};var vt=function(e){var t=e.color,r=void 0===t?"#333":t;return u.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 10 16"},u.createElement("g",{fill:"none",fillRule:"nonzero"},u.createElement("path",{d:"M-7-4h24v24H-7z",opacity:".384"}),u.createElement("path",{stroke:r,d:"M1 0l8 8-8 8"})))};vt.propTypes={color:o.string};var yt=m(),gt=function(){return h(yt)},_t={"./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"}},wt=function(e){var t=e.selectedIndex,r=e.previousClick,n=e.nextClick,o=e.noOfItems,i=e.perView,a=e.languageDirection;if(o<1)return null;var l=gt()||{},c=Ze(l.theme),s="rtl"===a?"left-arrow-rtl":"left-arrow-ltr",f="rtl"===a?"right-arrow-rtl":"right-arrow-ltr";return u.createElement(u.Fragment,null,0!==t?u.createElement("button",{onClick:r,className:("left-arrow ".concat(s)?"left-arrow ".concat(s)+" ":"")+ht("arrow left-arrow-".concat(c," ").concat(s),_t)},u.createElement(mt,{color:"dark"===c?"#fff":"#333"})):null,t<o-1&&!(t>=o-i)?u.createElement("button",{onClick:n,className:("right-arrow ".concat(f)?"right-arrow ".concat(f)+" ":"")+ht("arrow right-arrow-".concat(c," ").concat(f),_t)},u.createElement(vt,{color:"dark"===c?"#fff":"#333"})):null)};wt.propTypes={noOfItems:i,perView:i,slideIndicator:a,previousClick:l,nextClick:l,selectedIndex:i,languageDirection:a};var bt={"./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"}},Et=function(e){var t=e.indicatorItems,r=e.indicatorClick,n=e.selectedIndex,o=e.indicatorType;if(t.length<1)return null;var i=gt()||{},a=Ze(i.theme);return u.createElement("ul",{className:"slider-indicators slider-indicator-m_indicators__3MNXc"},t.map((function(e,t){return u.createElement("li",{key:"slider-".concat(t),className:"indicator slider-indicator-m_indicator__gTv3x",onClick:function(e){return r(e,t)}},u.createElement("button",{"aria-pressed":n===t?"true":"false",className:("indicator-button indicator-".concat(o)?"indicator-button indicator-".concat(o)+" ":"")+ht("indicator-button indicator-".concat(o," indicator-").concat(o,"-").concat(a),bt)}))})))};Et.propTypes={indicatorItems:c,perView:i,indicatorType:a,indicatorClick:l,selectedIndex:i};var kt=function(e,t,r,n){var o,i,a,l,c=Math.floor(r.current.scrollWidth*(e/n)),s="rtl"===t?-1*c:c;o=r.current,i=s,a=!0,o.scrollTo((tt(l={},a?"left":"top",i),tt(l,"behavior","smooth"),l))},xt=function(e,t){var r;return function(){clearTimeout(r),r=setTimeout((function(){r=null,e()}),t)}},Ot=function(e){var t=e.children,r=e.isArrow,n=e.interval,o=e.isInfinite,i=e.pauseOnHover,a=e.perView,l=e.slideIndicator,c=nt(f(0),2),s=c[0],p=c[1],d=nt(f(!1),2),h=d[0],m=d[1],_=g((function(e){return Ye(e,["qt","config","language","direction"],"ltr")})),w=t?t.length:0,b=v(null),E=t.length-(a-1),k=t.slice(0,E);y((function(){return b.current&&(b.current.addEventListener("scroll",xt((function(){var e=Math.round(b.current.scrollLeft/b.current.scrollWidth*w);p(Math.abs(e))}),150)),0!==s&&kt(s)),function(){b.current.removeEventListener("scroll",xt)}}),[]),y((function(){if(o&&!h){var e=setInterval((function(){x()}),n);return function(){clearInterval(e)}}}),[o,h]);var x=function(){p((function(e){var t=e===w-a?0:e+1;return kt(t,_,b,w),t}))},O=function(){i&&m(!h)};return u.createElement("div",{className:"scroll-snap-container"},u.createElement("div",{className:"scroll-snap-wrapper scroll-snap-m_wrapper__1Rz9v",onMouseEnter:O,onMouseLeave:O},u.createElement("div",{ref:b,className:"scroll-snap-carousel scroll-snap-m_carousel__2m3cg"},t),r&&u.createElement(wt,{noOfItems:w,perView:a,previousClick:function(e){e.preventDefault(),e.stopPropagation();var t=s-1;p(t),kt(t,_,b,w)},nextClick:function(e){if(e.preventDefault(),e.stopPropagation(),s<w){var t=s+1;p(t),kt(t,_,b,w)}},selectedIndex:s,languageDirection:_})),t.length>a&&"none"!==l&&u.createElement(Et,{indicatorItems:k,indicatorClick:function(e,t){e.preventDefault(),e.stopPropagation(),p(t),kt(t,_,b,w)},selectedIndex:s,indicatorType:l}))};Ot.defaultProps={isArrow:!0,isInfinite:!1,interval:4e3,pauseOnHover:!0,perView:1,slideIndicator:"dots"},Ot.propTypes={children:c.isRequired,isArrow:s,isInfinite:s,interval:i,pauseOnHover:s,perView:i,slideIndicator:a};var jt=function(e){if(!e.element)return null;var i=function(o){var i=o.onClickHandler,a=n(e,["element","story-elements"],[]);return u.createElement("div",{className:"arr--image-slideshow-element image-slideshow-m_slideshow__3jRFX","data-test-id":"image-slideshow"},u.createElement(Ot,{slideIndicator:"none"},a.map((function(e,n){return function(e,n,o){var i=e.id,a=e["image-s3-key"],l=e.metadata,c=e.title,s=e.hyperlink,f=void 0===s?"":s;return u.createElement("div",{className:"image-slideshow-m_slide__3URCC",key:i},u.createElement("figure",{key:i,className:"image-slideshow-m_image-container__2VTEK",onClick:function(){return o(n)}},u.createElement(t,{margin:"0px"},u.createElement(r,{slug:a,metadata:l,"aspect-ratio":[16,9],defaultWidth:480,widths:[250,480,640],imgParams:{auto:["format","compress"]},className:"image-slideshow-m_image__1p1fO",alt:c}))),f&&u.createElement(at,{hyperLink:f}),u.createElement("p",{className:"image-slideshow-m_caption__mWpmc",dangerouslySetInnerHTML:{__html:c}}))}(e,n,i)}))))};return i.propTypes={onClickHandler:o.func},u.createElement(st,{template:i,element:e.element})};jt.propTypes={element:o.shape({"story-elements":o.array}),story:Qe};var St=pt(jt);export{St as ImageSlideshow};
@@ -0,0 +1 @@
1
+ import t from"react";import{LinkBase as e}from"@quintype/components";import r from"prop-types";import"react-timeago";import"date-fns-tz";function n(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var o="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function i(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function a(t){var e={exports:{}};return t(e,e.exports),e.exports}var u=a((function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r={attributeNames:{styleName:"className"},generateScopedName:"[path]___[name]__[local]___[hash:base64:5]",handleMissingStyleName:"throw"};e.default=r})),c=i(a((function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r,n=(r=u)&&r.__esModule?r:{default:r};var o=function(t,e){if("throw"===e)throw new Error(t);return"warn"===e&&console.warn(t),null};e.default=function(t,e,r){var i=Object.keys(e),a=r||{},u=a.handleMissingStyleName,c=void 0===u?n.default.handleMissingStyleName:u,l=a.autoResolveMultipleImports,s=void 0===l?n.default.autoResolveMultipleImports:l;return t?t.split(" ").filter((function(t){return t})).map((function(t){if(function(t){return-1!==t.indexOf(".")}(t))return function(t,e,r){var i=t.split("."),a=i[0],u=i[1],c=r||n.default.handleMissingStyleName;return u?e[a]?e[a][u]?e[a][u]:o("CSS module does not exist: "+u,c):o("CSS module import does not exist: "+a,c):o("Invalid style name: "+t,c)}(t,e,c);if(0===i.length)throw new Error("Cannot use styleName attribute for style name '"+t+"' without importing at least one stylesheet.");if(i.length>1){if(!s)throw new Error("Cannot use anonymous style name '"+t+"' with more than one stylesheet import without setting 'autoResolveMultipleImports' to true.");return function(t,e,r){var i=r||n.default.handleMissingStyleName,a=Object.keys(e).map((function(r){return e[r][t]&&r})).filter((function(t){return t}));if(a.length>1)throw new Error('Cannot resolve styleName "'+t+'" because it is present in multiple imports:\n\n\t'+a.join("\n\t")+'\n\nYou can resolve this by using a named import, e.g:\n\n\timport foo from "'+a[0]+'";\n\t<div styleName="foo.'+t+'" />\n\n');return 0===a.length?o("Could not resolve the styleName '"+t+"'.",i):e[a[0]][t]}(t,e,c)}var r=e[i[0]];return r[t]?r[t]:o("Could not resolve the styleName '"+t+"'.",c)})).filter((function(t){return t})).join(" "):""}})));a((function(t){var e=function(t){var e,r=Object.prototype,n=r.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",u=o.toStringTag||"@@toStringTag";function c(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(t){c=function(t,e,r){return t[e]=r}}function l(t,e,r,n){var o=e&&e.prototype instanceof y?e:y,i=Object.create(o.prototype),a=new P(n||[]);return i._invoke=function(t,e,r){var n=f;return function(o,i){if(n===p)throw new Error("Generator is already running");if(n===v){if("throw"===o)throw i;return k()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var u=E(a,r);if(u){if(u===d)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(n===f)throw n=v,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n=p;var c=s(t,e,r);if("normal"===c.type){if(n=r.done?v:h,c.arg===d)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n=v,r.method="throw",r.arg=c.arg)}}}(t,r,a),i}function s(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=l;var f="suspendedStart",h="suspendedYield",p="executing",v="completed",d={};function y(){}function g(){}function m(){}var _={};c(_,i,(function(){return this}));var b=Object.getPrototypeOf,w=b&&b(b(N([])));w&&w!==r&&n.call(w,i)&&(_=w);var j=m.prototype=y.prototype=Object.create(_);function O(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function x(t,e){function r(o,i,a,u){var c=s(t[o],t,i);if("throw"!==c.type){var l=c.arg,f=l.value;return f&&"object"==typeof f&&n.call(f,"__await")?e.resolve(f.__await).then((function(t){r("next",t,a,u)}),(function(t){r("throw",t,a,u)})):e.resolve(f).then((function(t){l.value=t,a(l)}),(function(t){return r("throw",t,a,u)}))}u(c.arg)}var o;this._invoke=function(t,n){function i(){return new e((function(e,o){r(t,n,e,o)}))}return o=o?o.then(i,i):i()}}function E(t,r){var n=t.iterator[r.method];if(n===e){if(r.delegate=null,"throw"===r.method){if(t.iterator.return&&(r.method="return",r.arg=e,E(t,r),"throw"===r.method))return d;r.method="throw",r.arg=new TypeError("The iterator does not provide a 'throw' method")}return d}var o=s(n,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,d;var i=o.arg;return i?i.done?(r[t.resultName]=i.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,d):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,d)}function S(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function P(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(S,this),this.reset(!0)}function N(t){if(t){var r=t[i];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,a=function r(){for(;++o<t.length;)if(n.call(t,o))return r.value=t[o],r.done=!1,r;return r.value=e,r.done=!0,r};return a.next=a}}return{next:k}}function k(){return{value:e,done:!0}}return g.prototype=m,c(j,"constructor",m),c(m,"constructor",g),g.displayName=c(m,u,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,m):(t.__proto__=m,c(t,u,"GeneratorFunction")),t.prototype=Object.create(j),t},t.awrap=function(t){return{__await:t}},O(x.prototype),c(x.prototype,a,(function(){return this})),t.AsyncIterator=x,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new x(l(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},O(j),c(j,u,"Generator"),c(j,i,(function(){return this})),c(j,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=[];for(var r in t)e.push(r);return e.reverse(),function r(){for(;e.length;){var n=e.pop();if(n in t)return r.value=n,r.done=!1,r}return r.done=!0,r}},t.values=N,P.prototype={constructor:P,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(L),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function o(n,o){return u.type="throw",u.arg=t,r.next=n,o&&(r.method="next",r.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],u=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=n.call(a,"catchLoc"),l=n.call(a,"finallyLoc");if(c&&l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,d):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),d},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),L(r),d}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;L(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:N(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 l=Array.isArray,s="object"==typeof o&&o&&o.Object===Object&&o,f="object"==typeof self&&self&&self.Object===Object&&self,h=s||f||Function("return this")(),p=h.Symbol,v=Object.prototype,d=v.hasOwnProperty,y=v.toString,g=p?p.toStringTag:void 0;var m=function(t){var e=d.call(t,g),r=t[g];try{t[g]=void 0;var n=!0}catch(t){}var o=y.call(t);return n&&(e?t[g]=r:delete t[g]),o},_=Object.prototype.toString;var b=function(t){return _.call(t)},w=p?p.toStringTag:void 0;var j=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":w&&w in Object(t)?m(t):b(t)};var O=function(t){return null!=t&&"object"==typeof t};var x=function(t){return"symbol"==typeof t||O(t)&&"[object Symbol]"==j(t)},E=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,S=/^\w*$/;var L=function(t,e){if(l(t))return!1;var r=typeof t;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=t&&!x(t))||(S.test(t)||!E.test(t)||null!=e&&t in Object(e))};var P=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)};var N,k=function(t){if(!P(t))return!1;var e=j(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e},z=h["__core-js_shared__"],C=(N=/[^.]+$/.exec(z&&z.keys&&z.keys.IE_PROTO||""))?"Symbol(src)_1."+N:"";var I=function(t){return!!C&&C in t},T=Function.prototype.toString;var F=function(t){if(null!=t){try{return T.call(t)}catch(t){}try{return t+""}catch(t){}}return""},M=/^\[object .+?Constructor\]$/,A=Function.prototype,$=Object.prototype,G=A.toString,R=$.hasOwnProperty,q=RegExp("^"+G.call(R).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var D=function(t){return!(!P(t)||I(t))&&(k(t)?q:M).test(F(t))};var Y=function(t,e){return null==t?void 0:t[e]};var U=function(t,e){var r=Y(t,e);return D(r)?r:void 0},B=U(Object,"create");var Q=function(){this.__data__=B?B(null):{},this.size=0};var V=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},Z=Object.prototype.hasOwnProperty;var H=function(t){var e=this.__data__;if(B){var r=e[t];return"__lodash_hash_undefined__"===r?void 0:r}return Z.call(e,t)?e[t]:void 0},J=Object.prototype.hasOwnProperty;var K=function(t){var e=this.__data__;return B?void 0!==e[t]:J.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=Q,X.prototype.delete=V,X.prototype.get=H,X.prototype.has=K,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 ut=function(t){return nt(this.__data__,t)>-1};var ct=function(t,e){var r=this.__data__,n=nt(r,t);return n<0?(++this.size,r.push([t,e])):r[n][1]=e,this};function lt(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}lt.prototype.clear=et,lt.prototype.delete=it,lt.prototype.get=at,lt.prototype.has=ut,lt.prototype.set=ct;var st=lt,ft=U(h,"Map");var ht=function(){this.size=0,this.__data__={hash:new tt,map:new(ft||st),string:new tt}};var pt=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t};var vt=function(t,e){var r=t.__data__;return pt(e)?r["string"==typeof e?"string":"hash"]:r.map};var dt=function(t){var e=vt(this,t).delete(t);return this.size-=e?1:0,e};var yt=function(t){return vt(this,t).get(t)};var gt=function(t){return vt(this,t).has(t)};var mt=function(t,e){var r=vt(this,t),n=r.size;return r.set(t,e),this.size+=r.size==n?0:1,this};function _t(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}_t.prototype.clear=ht,_t.prototype.delete=dt,_t.prototype.get=yt,_t.prototype.has=gt,_t.prototype.set=mt;var bt=_t;function wt(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var r=function(){var n=arguments,o=e?e.apply(this,n):n[0],i=r.cache;if(i.has(o))return i.get(o);var a=t.apply(this,n);return r.cache=i.set(o,a)||i,a};return r.cache=new(wt.Cache||bt),r}wt.Cache=bt;var jt=wt;var Ot=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,xt=/\\(\\)?/g,Et=function(t){var e=jt(t,(function(t){return 500===r.size&&r.clear(),t})),r=e.cache;return e}((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(Ot,(function(t,r,n,o){e.push(n?o.replace(xt,"$1"):r||t)})),e}));var St=function(t,e){for(var r=-1,n=null==t?0:t.length,o=Array(n);++r<n;)o[r]=e(t[r],r,t);return o},Lt=p?p.prototype:void 0,Pt=Lt?Lt.toString:void 0;var Nt=function t(e){if("string"==typeof e)return e;if(l(e))return St(e,t)+"";if(x(e))return Pt?Pt.call(e):"";var r=e+"";return"0"==r&&1/e==-Infinity?"-0":r};var kt=function(t){return null==t?"":Nt(t)};var zt=function(t,e){return l(t)?t:L(t,e)?[t]:Et(kt(t))};var Ct=function(t){if("string"==typeof t||x(t))return t;var e=t+"";return"0"==e&&1/t==-Infinity?"-0":e};var It=function(t,e){for(var r=0,n=(e=zt(e,t)).length;null!=t&&r<n;)t=t[Ct(e[r++])];return r&&r==n?t:void 0};var Tt=function(t,e,r){var n=null==t?void 0:It(t,e);return void 0===n?r:n},Ft=function(t){var e=function(t){return{r:parseInt(t.slice(1,3),16),g:parseInt(t.slice(3,5),16),b:parseInt(t.slice(5,7),16)}}(t);return.299*e.r+.587*e.g+.114*e.b},Mt=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"rgba(255, 255, 255, 0)",e=t.match(/^rgba?[\s+]?\([\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?/i);return e&&4===e.length?"#"+("0"+parseInt(e[1],10).toString(16)).slice(-2)+("0"+parseInt(e[2],10).toString(16)).slice(-2)+("0"+parseInt(e[3],10).toString(16)).slice(-2):t},At=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=e.magazineSlug,n=void 0===r?"":r,o=e.isArchivePage,i=void 0!==o&&o;if(i)return"/magazine/archive/".concat(n);if(n)return"/magazine/".concat(n,"/").concat(t.slug);var a="section"===t.template;if(a){var u=Tt(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)};r.shape({"sketches-host":r.string,"cdn-name":r.string,"cdn-image":r.string}),r.shape({headline:r.string,"last-published-at":r.number,subheadline:r.string});var $t={"./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 Gt(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 Rt(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Gt(Object(r),!0).forEach((function(e){n(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Gt(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var qt=function(r){var n=r.config,o=void 0===n?{}:n,i=r.collection,a=r.template,u=void 0===a?"SubsequentLoadCount":a,l=r.onClick,s=r.navigate,f=r.qtConfig,h=o.showButton,p=void 0===h||h,v=o.buttonText,d=void 0===v?"Read More":v,y=o.theme,g=void 0===y?"":y,m=o.customUrlPath,_=void 0===m?"":m;if(!p)return null;var b=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"rgb(255,255,255)",e=/^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/.test(t)?t:Mt(t);return Ft(e)<155?"light":"dark"}(g),w=_?"/".concat(_):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,i=e.isArchivePage;return void 0!==i&&i?"/magazine/archive/".concat(o):o?"/magazine/".concat(o,"/").concat(t.slug):t?At(t,e):"/"}(i,Rt(Rt({},f),o));return"SubsequentLoadCount"===u?t.createElement("div",{onClick:l,"data-test-id":"load-more",className:"arr--button "+c("button ".concat(b," default"),$t)},d):t.createElement(e,{href:w,navigateTo:s,"data-test-id":"load-more","aria-label":"load-more"},t.createElement("div",{className:"arr--button "+c("button ".concat(b," default"),$t)},d))};qt.propTypes={collection:r.object,template:r.string,config:r.object,onClick:r.func,navigate:r.func,qtConfig:r.object};export{qt as LoadmoreButton};
@@ -0,0 +1 @@
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 ADDED
@@ -0,0 +1 @@
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};
@@ -0,0 +1 @@
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};
@@ -0,0 +1 @@
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};
@@ -0,0 +1 @@
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};
@@ -0,0 +1 @@
1
+ import t from"react";import{StoryElement as r}from"@quintype/components";import e from"prop-types";import"react-timeago";import"date-fns-tz";function n(){return n=Object.assign||function(t){for(var r=1;r<arguments.length;r++){var e=arguments[r];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])}return t},n.apply(this,arguments)}function o(t,r){if(null==t)return{};var e,n,o=function(t,r){if(null==t)return{};var e,n,o={},i=Object.keys(t);for(n=0;n<i.length;n++)e=i[n],r.indexOf(e)>=0||(o[e]=t[e]);return o}(t,r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)e=i[n],r.indexOf(e)>=0||Object.prototype.propertyIsEnumerable.call(t,e)&&(o[e]=t[e])}return o}var i=["element","render"],a=function(r){return function(e){var a=e.element,c=e.render,u=o(e,i);return a?c&&"function"==typeof c?c(e):t.createElement(r,n({},u,{element:a})):null}};a.propTypes={StoryElement:e.element};var c,u,s="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};c=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 u(t,r,e){return Object.defineProperty(t,r,{value:e,enumerable:!0,configurable:!0,writable:!0}),t[r]}try{u({},"")}catch(t){u=function(t,r,e){return t[r]=e}}function s(t,r,e,n){var o=r&&r.prototype instanceof d?r:d,i=Object.create(o.prototype),a=new P(n||[]);return i._invoke=function(t,r,e){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 z()}for(e.method=o,e.arg=i;;){var a=e.delegate;if(a){var c=E(a,e);if(c){if(c===y)continue;return c}}if("next"===e.method)e.sent=e._sent=e.arg;else if("throw"===e.method){if(n===f)throw n=v,e.arg;e.dispatchException(e.arg)}else"return"===e.method&&e.abrupt("return",e.arg);n=p;var u=l(t,r,e);if("normal"===u.type){if(n=e.done?v:h,u.arg===y)continue;return{value:u.arg,done:e.done}}"throw"===u.type&&(n=v,e.method="throw",e.arg=u.arg)}}}(t,e,a),i}function l(t,r,e){try{return{type:"normal",arg:t.call(r,e)}}catch(t){return{type:"throw",arg:t}}}t.wrap=s;var f="suspendedStart",h="suspendedYield",p="executing",v="completed",y={};function d(){}function g(){}function m(){}var _={};u(_,i,(function(){return this}));var b=Object.getPrototypeOf,w=b&&b(b(T([])));w&&w!==e&&n.call(w,i)&&(_=w);var j=m.prototype=d.prototype=Object.create(_);function O(t){["next","throw","return"].forEach((function(r){u(t,r,(function(t){return this._invoke(r,t)}))}))}function x(t,r){function e(o,i,a,c){var u=l(t[o],t,i);if("throw"!==u.type){var s=u.arg,f=s.value;return f&&"object"==typeof f&&n.call(f,"__await")?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){s.value=t,a(s)}),(function(t){return e("throw",t,a,c)}))}c(u.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 E(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,E(t,e),"throw"===e.method))return y;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return y}var o=l(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,y;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,y):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,y)}function L(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 S(t){var r=t.completion||{};r.type="normal",delete r.arg,t.completion=r}function P(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(L,this),this.reset(!0)}function T(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:z}}function z(){return{value:r,done:!0}}return g.prototype=m,u(j,"constructor",m),u(m,"constructor",g),g.displayName=u(m,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var 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,u(t,c,"GeneratorFunction")),t.prototype=Object.create(j),t},t.awrap=function(t){return{__await:t}},O(x.prototype),u(x.prototype,a,(function(){return this})),t.AsyncIterator=x,t.async=function(r,e,n,o,i){void 0===i&&(i=Promise);var a=new x(s(r,e,n,o),i);return t.isGeneratorFunction(e)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},O(j),u(j,c,"Generator"),u(j,i,(function(){return this})),u(j,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var 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=T,P.prototype={constructor:P,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(S),!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 u=n.call(a,"catchLoc"),s=n.call(a,"finallyLoc");if(u&&s){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,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,y):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),y},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),S(e),y}},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;S(e)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:T(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=r),y}},t}(t.exports);try{regeneratorRuntime=r}catch(t){"object"==typeof globalThis?globalThis.regeneratorRuntime=r:Function("r","regeneratorRuntime = r")(r)}},c(u={exports:{}},u.exports);var l="object"==typeof s&&s&&s.Object===Object&&s,f="object"==typeof self&&self&&self.Object===Object&&self,h=l||f||Function("return this")(),p=h.Symbol,v=Object.prototype,y=v.hasOwnProperty,d=v.toString,g=p?p.toStringTag:void 0;var m=function(t){var r=y.call(t,g),e=t[g];try{t[g]=void 0;var n=!0}catch(t){}var o=d.call(t);return n&&(r?t[g]=e:delete t[g]),o},_=Object.prototype.toString;var b=function(t){return _.call(t)},w=p?p.toStringTag:void 0;var j=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":w&&w in Object(t)?m(t):b(t)};var O=function(t){var r=typeof t;return null!=t&&("object"==r||"function"==r)};var x,E=function(t){if(!O(t))return!1;var r=j(t);return"[object Function]"==r||"[object GeneratorFunction]"==r||"[object AsyncFunction]"==r||"[object Proxy]"==r},L=h["__core-js_shared__"],S=(x=/[^.]+$/.exec(L&&L.keys&&L.keys.IE_PROTO||""))?"Symbol(src)_1."+x:"";var P=function(t){return!!S&&S in t},T=Function.prototype.toString;var z=function(t){if(null!=t){try{return T.call(t)}catch(t){}try{return t+""}catch(t){}}return""},k=/^\[object .+?Constructor\]$/,F=Function.prototype,G=Object.prototype,N=F.toString,$=G.hasOwnProperty,A=RegExp("^"+N.call($).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var I=function(t){return!(!O(t)||P(t))&&(E(t)?A:k).test(z(t))};var R=function(t,r){return null==t?void 0:t[r]};var C=function(t,r){var e=R(t,r);return I(e)?e:void 0},Y=C(Object,"create");var q=function(){this.__data__=Y?Y(null):{},this.size=0};var M=function(t){var r=this.has(t)&&delete this.__data__[t];return this.size-=r?1:0,r},U=Object.prototype.hasOwnProperty;var B=function(t){var r=this.__data__;if(Y){var e=r[t];return"__lodash_hash_undefined__"===e?void 0:e}return U.call(r,t)?r[t]:void 0},D=Object.prototype.hasOwnProperty;var H=function(t){var r=this.__data__;return Y?void 0!==r[t]:D.call(r,t)};var J=function(t,r){var e=this.__data__;return this.size+=this.has(t)?0:1,e[t]=Y&&void 0===r?"__lodash_hash_undefined__":r,this};function K(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])}}K.prototype.clear=q,K.prototype.delete=M,K.prototype.get=B,K.prototype.has=H,K.prototype.set=J;var Q=K;var V=function(){this.__data__=[],this.size=0};var W=function(t,r){return t===r||t!=t&&r!=r};var X=function(t,r){for(var e=t.length;e--;)if(W(t[e][0],r))return e;return-1},Z=Array.prototype.splice;var tt=function(t){var r=this.__data__,e=X(r,t);return!(e<0)&&(e==r.length-1?r.pop():Z.call(r,e,1),--this.size,!0)};var rt=function(t){var r=this.__data__,e=X(r,t);return e<0?void 0:r[e][1]};var et=function(t){return X(this.__data__,t)>-1};var nt=function(t,r){var e=this.__data__,n=X(e,t);return n<0?(++this.size,e.push([t,r])):e[n][1]=r,this};function ot(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])}}ot.prototype.clear=V,ot.prototype.delete=tt,ot.prototype.get=rt,ot.prototype.has=et,ot.prototype.set=nt;var it=ot,at=C(h,"Map");var ct=function(){this.size=0,this.__data__={hash:new Q,map:new(at||it),string:new Q}};var ut=function(t){var r=typeof t;return"string"==r||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==t:null===t};var st=function(t,r){var e=t.__data__;return ut(r)?e["string"==typeof r?"string":"hash"]:e.map};var lt=function(t){var r=st(this,t).delete(t);return this.size-=r?1:0,r};var ft=function(t){return st(this,t).get(t)};var ht=function(t){return st(this,t).has(t)};var pt=function(t,r){var e=st(this,t),n=e.size;return e.set(t,r),this.size+=e.size==n?0:1,this};function vt(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])}}vt.prototype.clear=ct,vt.prototype.delete=lt,vt.prototype.get=ft,vt.prototype.has=ht,vt.prototype.set=pt;var yt=vt;function dt(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(dt.Cache||yt),e}dt.Cache=yt;var gt=dt;var mt=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,_t=/\\(\\)?/g;(function(t){var r=gt(t,(function(t){return 500===e.size&&e.clear(),t})),e=r.cache})((function(t){var r=[];return 46===t.charCodeAt(0)&&r.push(""),t.replace(mt,(function(t,e,n,o){r.push(n?o.replace(_t,"$1"):e||t)})),r}));var bt=p?p.prototype:void 0;bt&&bt.toString;var wt=e.shape({"sketches-host":e.string,"cdn-name":e.string,"cdn-image":e.string}),jt=e.shape({headline:e.string,"last-published-at":e.number,subheadline:e.string}),Ot=["element","story","config"],xt=function(e){var i=e.element;e.story,e.config;var a=o(e,Ot);return t.createElement("div",n({},a,{"data-test-id":"story-elements"}),t.createElement(r,{element:i}))},Et=a(xt);xt.propTypes={element:e.object,story:jt,config:wt};export{Et as StoryElement};