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

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.
@@ -1 +1 @@
1
- import t from"react";import e from"prop-types";import{useDispatch as r,useSelector as n}from"react-redux";import"react-timeago";import{LinkBase as o}from"@quintype/components";function a(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var i="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})),s=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||{},u=i.handleMissingStyleName,c=void 0===u?n.default.handleMissingStyleName:u,l=i.autoResolveMultipleImports,s=void 0===l?n.default.autoResolveMultipleImports:l;return t?t.split(" ").filter((function(t){return t})).map((function(t){if(function(t){return-1!==t.indexOf(".")}(t))return function(t,e,r){var a=t.split("."),i=a[0],u=a[1],c=r||n.default.handleMissingStyleName;return u?e[i]?e[i][u]?e[i][u]:o("CSS module does not exist: "+u,c):o("CSS module import does not exist: "+i,c):o("Invalid style name: "+t,c)}(t,e,c);if(0===a.length)throw new Error("Cannot use styleName attribute for style name '"+t+"' without importing at least one stylesheet.");if(a.length>1){if(!s)throw new Error("Cannot use anonymous style name '"+t+"' with more than one stylesheet import without setting 'autoResolveMultipleImports' to true.");return function(t,e,r){var a=r||n.default.handleMissingStyleName,i=Object.keys(e).map((function(r){return e[r][t]&&r})).filter((function(t){return t}));if(i.length>1)throw new Error('Cannot resolve styleName "'+t+'" because it is present in multiple imports:\n\n\t'+i.join("\n\t")+'\n\nYou can resolve this by using a named import, e.g:\n\n\timport foo from "'+i[0]+'";\n\t<div styleName="foo.'+t+'" />\n\n');return 0===i.length?o("Could not resolve the styleName '"+t+"'.",a):e[i[0]][t]}(t,e,c)}var r=e[a[0]];return r[t]?r[t]:o("Could not resolve the styleName '"+t+"'.",c)})).filter((function(t){return t})).join(" "):""}})));var f=function(t,e,r,n){var o=-1,a=null==t?0:t.length;for(n&&a&&(r=t[++o]);++o<a;)r=e(r,t[o],o,t);return r};var p=function(t){return function(e){return null==t?void 0:t[e]}}({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"}),h="object"==typeof i&&i&&i.Object===Object&&i,d="object"==typeof self&&self&&self.Object===Object&&self,v=h||d||Function("return this")(),g=v.Symbol;var y=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},m=Array.isArray,b=Object.prototype,_=b.hasOwnProperty,w=b.toString,x=g?g.toStringTag:void 0;var O=function(t){var e=_.call(t,x),r=t[x];try{t[x]=void 0;var n=!0}catch(t){}var o=w.call(t);return n&&(e?t[x]=r:delete t[x]),o},j=Object.prototype.toString;var E=function(t){return j.call(t)},S=g?g.toStringTag:void 0;var P=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":S&&S in Object(t)?O(t):E(t)};var L=function(t){return null!=t&&"object"==typeof t};var N=function(t){return"symbol"==typeof t||L(t)&&"[object Symbol]"==P(t)},A=g?g.prototype:void 0,z=A?A.toString:void 0;var T=function t(e){if("string"==typeof e)return e;if(m(e))return y(e,t)+"";if(N(e))return z?z.call(e):"";var r=e+"";return"0"==r&&1/e==-Infinity?"-0":r};var k=function(t){return null==t?"":T(t)},I=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,C=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]","g");var D=function(t){return(t=k(t))&&t.replace(I,p).replace(C,"")},R=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;var M=function(t){return t.match(R)||[]},F=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;var U=function(t){return F.test(t)},G="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Z="["+G+"]",$="\\d+",q="[\\u2700-\\u27bf]",B="[a-z\\xdf-\\xf6\\xf8-\\xff]",Y="[^\\ud800-\\udfff"+G+$+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",H="(?:\\ud83c[\\udde6-\\uddff]){2}",Q="[\\ud800-\\udbff][\\udc00-\\udfff]",V="[A-Z\\xc0-\\xd6\\xd8-\\xde]",J="(?:"+B+"|"+Y+")",W="(?:"+V+"|"+Y+")",K="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?",X="[\\ufe0e\\ufe0f]?"+K+("(?:\\u200d(?:"+["[^\\ud800-\\udfff]",H,Q].join("|")+")[\\ufe0e\\ufe0f]?"+K+")*"),tt="(?:"+[q,H,Q].join("|")+")"+X,et=RegExp([V+"?"+B+"+(?:['’](?:d|ll|m|re|s|t|ve))?(?="+[Z,V,"$"].join("|")+")",W+"+(?:['’](?:D|LL|M|RE|S|T|VE))?(?="+[Z,V+J,"$"].join("|")+")",V+"?"+J+"+(?:['’](?:d|ll|m|re|s|t|ve))?",V+"+(?:['’](?:D|LL|M|RE|S|T|VE))?","\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",$,tt].join("|"),"g");var rt=function(t){return t.match(et)||[]};var nt=function(t,e,r){return t=k(t),void 0===(e=r?void 0:e)?U(t)?rt(t):M(t):t.match(e)||[]},ot=RegExp("['’]","g");var at=function(t){return function(e){return f(nt(D(e).replace(ot,"")),t,"")}}((function(t,e,r){return t+(r?" ":"")+e.toUpperCase()})),it=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ut=/^\w*$/;var ct=function(t,e){if(m(t))return!1;var r=typeof t;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=t&&!N(t))||(ut.test(t)||!it.test(t)||null!=e&&t in Object(e))};var lt=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)};var st,ft=function(t){if(!lt(t))return!1;var e=P(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e},pt=v["__core-js_shared__"],ht=(st=/[^.]+$/.exec(pt&&pt.keys&&pt.keys.IE_PROTO||""))?"Symbol(src)_1."+st:"";var dt=function(t){return!!ht&&ht in t},vt=Function.prototype.toString;var gt=function(t){if(null!=t){try{return vt.call(t)}catch(t){}try{return t+""}catch(t){}}return""},yt=/^\[object .+?Constructor\]$/,mt=Function.prototype,bt=Object.prototype,_t=mt.toString,wt=bt.hasOwnProperty,xt=RegExp("^"+_t.call(wt).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var Ot=function(t){return!(!lt(t)||dt(t))&&(ft(t)?xt:yt).test(gt(t))};var jt=function(t,e){return null==t?void 0:t[e]};var Et=function(t,e){var r=jt(t,e);return Ot(r)?r:void 0},St=Et(Object,"create");var Pt=function(){this.__data__=St?St(null):{},this.size=0};var Lt=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},Nt=Object.prototype.hasOwnProperty;var At=function(t){var e=this.__data__;if(St){var r=e[t];return"__lodash_hash_undefined__"===r?void 0:r}return Nt.call(e,t)?e[t]:void 0},zt=Object.prototype.hasOwnProperty;var Tt=function(t){var e=this.__data__;return St?void 0!==e[t]:zt.call(e,t)};var kt=function(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=St&&void 0===e?"__lodash_hash_undefined__":e,this};function It(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}It.prototype.clear=Pt,It.prototype.delete=Lt,It.prototype.get=At,It.prototype.has=Tt,It.prototype.set=kt;var Ct=It;var Dt=function(){this.__data__=[],this.size=0};var Rt=function(t,e){return t===e||t!=t&&e!=e};var Mt=function(t,e){for(var r=t.length;r--;)if(Rt(t[r][0],e))return r;return-1},Ft=Array.prototype.splice;var Ut=function(t){var e=this.__data__,r=Mt(e,t);return!(r<0)&&(r==e.length-1?e.pop():Ft.call(e,r,1),--this.size,!0)};var Gt=function(t){var e=this.__data__,r=Mt(e,t);return r<0?void 0:e[r][1]};var Zt=function(t){return Mt(this.__data__,t)>-1};var $t=function(t,e){var r=this.__data__,n=Mt(r,t);return n<0?(++this.size,r.push([t,e])):r[n][1]=e,this};function qt(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])}}qt.prototype.clear=Dt,qt.prototype.delete=Ut,qt.prototype.get=Gt,qt.prototype.has=Zt,qt.prototype.set=$t;var Bt=qt,Yt=Et(v,"Map");var Ht=function(){this.size=0,this.__data__={hash:new Ct,map:new(Yt||Bt),string:new Ct}};var Qt=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 Qt(e)?r["string"==typeof e?"string":"hash"]:r.map};var Jt=function(t){var e=Vt(this,t).delete(t);return this.size-=e?1:0,e};var Wt=function(t){return Vt(this,t).get(t)};var Kt=function(t){return Vt(this,t).has(t)};var Xt=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 te(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])}}te.prototype.clear=Ht,te.prototype.delete=Jt,te.prototype.get=Wt,te.prototype.has=Kt,te.prototype.set=Xt;var ee=te;function re(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(re.Cache||ee),r}re.Cache=ee;var ne=re;var oe=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ae=/\\(\\)?/g,ie=function(t){var e=ne(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(oe,(function(t,r,n,o){e.push(n?o.replace(ae,"$1"):r||t)})),e}));var ue=function(t,e){return m(t)?t:ct(t,e)?[t]:ie(k(t))};var ce=function(t){if("string"==typeof t||N(t))return t;var e=t+"";return"0"==e&&1/t==-Infinity?"-0":e};var le=function(t,e){for(var r=0,n=(e=ue(e,t)).length;null!=t&&r<n;)t=t[ce(e[r++])];return r&&r==n?t:void 0};var se=function(t,e,r){var n=null==t?void 0:le(t,e);return void 0===n?r:n};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",u=o.toStringTag||"@@toStringTag";function c(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(t){c=function(t,e,r){return t[e]=r}}function l(t,e,r,n){var o=e&&e.prototype instanceof g?e:g,a=Object.create(o.prototype),i=new L(n||[]);return a._invoke=function(t,e,r){var n=f;return function(o,a){if(n===h)throw new Error("Generator is already running");if(n===d){if("throw"===o)throw a;return A()}for(r.method=o,r.arg=a;;){var i=r.delegate;if(i){var u=E(i,r);if(u){if(u===v)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(n===f)throw n=d,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n=h;var c=s(t,e,r);if("normal"===c.type){if(n=r.done?d:p,c.arg===v)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n=d,r.method="throw",r.arg=c.arg)}}}(t,r,i),a}function s(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=l;var f="suspendedStart",p="suspendedYield",h="executing",d="completed",v={};function g(){}function y(){}function m(){}var b={};c(b,a,(function(){return this}));var _=Object.getPrototypeOf,w=_&&_(_(N([])));w&&w!==r&&n.call(w,a)&&(b=w);var x=m.prototype=g.prototype=Object.create(b);function O(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function j(t,e){function r(o,a,i,u){var c=s(t[o],t,a);if("throw"!==c.type){var l=c.arg,f=l.value;return f&&"object"==typeof f&&n.call(f,"__await")?e.resolve(f.__await).then((function(t){r("next",t,i,u)}),(function(t){r("throw",t,i,u)})):e.resolve(f).then((function(t){l.value=t,i(l)}),(function(t){return r("throw",t,i,u)}))}u(c.arg)}var o;this._invoke=function(t,n){function a(){return new e((function(e,o){r(t,n,e,o)}))}return o=o?o.then(a,a):a()}}function E(t,r){var n=t.iterator[r.method];if(n===e){if(r.delegate=null,"throw"===r.method){if(t.iterator.return&&(r.method="return",r.arg=e,E(t,r),"throw"===r.method))return v;r.method="throw",r.arg=new TypeError("The iterator does not provide a 'throw' method")}return v}var o=s(n,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,v;var a=o.arg;return a?a.done?(r[t.resultName]=a.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,v):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,v)}function S(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function P(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function L(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(S,this),this.reset(!0)}function N(t){if(t){var r=t[a];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function r(){for(;++o<t.length;)if(n.call(t,o))return r.value=t[o],r.done=!1,r;return r.value=e,r.done=!0,r};return i.next=i}}return{next:A}}function A(){return{value:e,done:!0}}return y.prototype=m,c(x,"constructor",m),c(m,"constructor",y),y.displayName=c(m,u,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===y||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,m):(t.__proto__=m,c(t,u,"GeneratorFunction")),t.prototype=Object.create(x),t},t.awrap=function(t){return{__await:t}},O(j.prototype),c(j.prototype,i,(function(){return this})),t.AsyncIterator=j,t.async=function(e,r,n,o,a){void 0===a&&(a=Promise);var i=new j(l(e,r,n,o),a);return t.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},O(x),c(x,u,"Generator"),c(x,a,(function(){return this})),c(x,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=[];for(var r in t)e.push(r);return e.reverse(),function r(){for(;e.length;){var n=e.pop();if(n in t)return r.value=n,r.done=!1,r}return r.done=!0,r}},t.values=N,L.prototype={constructor:L,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(P),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function o(n,o){return u.type="throw",u.arg=t,r.next=n,o&&(r.method="next",r.arg=e),!!o}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],u=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),l=n.call(i,"finallyLoc");if(c&&l){if(this.prev<i.catchLoc)return o(i.catchLoc,!0);if(this.prev<i.finallyLoc)return o(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return o(i.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return o(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,v):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),v},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),P(r),v}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;P(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:N(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),v}},t}(t.exports);try{regeneratorRuntime=e}catch(t){"object"==typeof globalThis?globalThis.regeneratorRuntime=e:Function("r","regeneratorRuntime = r")(e)}}));var fe=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},pe=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},he=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:pe(t),n=fe(r)<155?"light":"dark";return n},de=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=e.magazineSlug,n=void 0===r?"":r,o=e.isArchivePage,a=void 0!==o&&o;if(a)return"/magazine/archive/".concat(n);if(n)return"/magazine/".concat(n,"/").concat(t.slug);var i="section"===t.template;if(i){var u=se(t,["metadata","section","0","id"],""),c=e.sections,l=c&&c.find((function(t){return t.id===u}));return l?l["section-url"]:"/"}return"/collection/".concat(t.slug)};e.shape({"sketches-host":e.string,"cdn-name":e.string,"cdn-image":e.string}),e.shape({headline:e.string,"last-published-at":e.number,subheadline:e.string});var ve=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2?arguments[2]:void 0;if(r)return r;var n=e.magazineSlug,o=void 0===n?"":n,a=e.isArchivePage,i=void 0!==a&&a;return i?"/magazine/archive/".concat(o):o?"/magazine/".concat(o,"/").concat(t.slug):t?de(t,e):"/"},ge={"./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 ye(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 me(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?ye(Object(r),!0).forEach((function(e){a(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):ye(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var be=function(e){var r=e.config,n=void 0===r?{}:r,a=e.collection,i=e.template,u=void 0===i?"SubsequentLoadCount":i,c=e.onClick,l=e.navigate,f=e.qtConfig,p=n.showButton,h=void 0===p||p,d=n.buttonText,v=void 0===d?"Read More":d,g=n.theme,y=void 0===g?"":g,m=n.customUrlPath,b=void 0===m?"":m;if(!h)return null;var _=he(y),w=b?"/".concat(b):ve(a,me(me({},f),n));return"SubsequentLoadCount"===u?t.createElement("div",{onClick:c,"data-test-id":"load-more",className:"arr--button "+s("button ".concat(_," default"),ge)},v):t.createElement(o,{href:w,navigateTo:l,"data-test-id":"load-more","aria-label":"load-more"},t.createElement("div",{className:"arr--button "+s("button ".concat(_," default"),ge)},v))};be.propTypes={collection:e.object,template:e.string,config:e.object,onClick:e.func,navigate:e.func,qtConfig:e.object};var _e={"./page-intro-card.m.css":{viewports:'"../../../../assets/stylesheets/viewports.m.css"',mobile:"768px",tablet:"992px","author-page-wrapper":"page-intro-card-m_author-page-wrapper__2HiAv",pageTitle:"page-intro-card-m_pageTitle__2qQNj",borderBottom:"page-intro-card-m_borderBottom__2E6t3",pageDescription:"page-intro-card-m_pageDescription__Wzub7",dark:"page-intro-card-m_dark__1ebnF",light:"page-intro-card-m_light__s5xeQ"}};function we(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 xe(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?we(Object(r),!0).forEach((function(e){a(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):we(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var Oe=function(e){var o=e.config,a=void 0===o?{}:o,i=a.pageTitle,u=void 0===i?"":i,c=a.pageDescription,l=void 0===c?"":c,f=a.theme,p=void 0===f?"#131922":f,h=a.showButton,d=void 0!==h&&h,v=a.enableBorder,g=void 0!==v&&v,y=a.customUrlPath,m=he(p),b=g?"borderBottom":"",_=r(),w=n((function(t){return se(t,["qt","config"],{})})),x=ve({},xe(xe({},w),{},{config:a}),y);return t.createElement("div",{className:"arrow-component full-width-with-padding page-intro-card-m_author-page-wrapper__2HiAv",style:{background:p}},t.createElement("h2",{"data-test-id":"page-title",className:s("pageTitle ".concat(m," ").concat(b),_e)},at(u)),t.createElement("div",{"data-test-id":"page-description",className:s("pageDescription ".concat(m),_e)},l),d&&t.createElement(be,{template:"customUrlPath",config:a,navigate:function(){return function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";global.app.navigateToPage(t,e)}(_,x)},qtConfig:w}))};Oe.propTypes={config:e.shape({theme:e.string,pageTitle:e.string,pageDescription:e.string})};export{Oe as PageIntroductionCard};
1
+ import t from"react";import e from"prop-types";import{useDispatch as r,useSelector as n}from"react-redux";import"react-timeago";import{LinkBase as o}from"@quintype/components";function a(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var i="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})),s=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||{},u=i.handleMissingStyleName,c=void 0===u?n.default.handleMissingStyleName:u,l=i.autoResolveMultipleImports,s=void 0===l?n.default.autoResolveMultipleImports:l;return t?t.split(" ").filter((function(t){return t})).map((function(t){if(function(t){return-1!==t.indexOf(".")}(t))return function(t,e,r){var a=t.split("."),i=a[0],u=a[1],c=r||n.default.handleMissingStyleName;return u?e[i]?e[i][u]?e[i][u]:o("CSS module does not exist: "+u,c):o("CSS module import does not exist: "+i,c):o("Invalid style name: "+t,c)}(t,e,c);if(0===a.length)throw new Error("Cannot use styleName attribute for style name '"+t+"' without importing at least one stylesheet.");if(a.length>1){if(!s)throw new Error("Cannot use anonymous style name '"+t+"' with more than one stylesheet import without setting 'autoResolveMultipleImports' to true.");return function(t,e,r){var a=r||n.default.handleMissingStyleName,i=Object.keys(e).map((function(r){return e[r][t]&&r})).filter((function(t){return t}));if(i.length>1)throw new Error('Cannot resolve styleName "'+t+'" because it is present in multiple imports:\n\n\t'+i.join("\n\t")+'\n\nYou can resolve this by using a named import, e.g:\n\n\timport foo from "'+i[0]+'";\n\t<div styleName="foo.'+t+'" />\n\n');return 0===i.length?o("Could not resolve the styleName '"+t+"'.",a):e[i[0]][t]}(t,e,c)}var r=e[a[0]];return r[t]?r[t]:o("Could not resolve the styleName '"+t+"'.",c)})).filter((function(t){return t})).join(" "):""}})));var f=function(t,e,r,n){var o=-1,a=null==t?0:t.length;for(n&&a&&(r=t[++o]);++o<a;)r=e(r,t[o],o,t);return r};var p=function(t){return function(e){return null==t?void 0:t[e]}}({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"}),h="object"==typeof i&&i&&i.Object===Object&&i,d="object"==typeof self&&self&&self.Object===Object&&self,v=h||d||Function("return this")(),g=v.Symbol;var y=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},m=Array.isArray,b=Object.prototype,_=b.hasOwnProperty,w=b.toString,x=g?g.toStringTag:void 0;var O=function(t){var e=_.call(t,x),r=t[x];try{t[x]=void 0;var n=!0}catch(t){}var o=w.call(t);return n&&(e?t[x]=r:delete t[x]),o},j=Object.prototype.toString;var E=function(t){return j.call(t)},S=g?g.toStringTag:void 0;var P=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":S&&S in Object(t)?O(t):E(t)};var L=function(t){return null!=t&&"object"==typeof t};var N=function(t){return"symbol"==typeof t||L(t)&&"[object Symbol]"==P(t)},A=g?g.prototype:void 0,z=A?A.toString:void 0;var T=function t(e){if("string"==typeof e)return e;if(m(e))return y(e,t)+"";if(N(e))return z?z.call(e):"";var r=e+"";return"0"==r&&1/e==-Infinity?"-0":r};var k=function(t){return null==t?"":T(t)},I=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,C=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]","g");var D=function(t){return(t=k(t))&&t.replace(I,p).replace(C,"")},R=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;var M=function(t){return t.match(R)||[]},F=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;var U=function(t){return F.test(t)},G="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Z="["+G+"]",$="\\d+",q="[\\u2700-\\u27bf]",B="[a-z\\xdf-\\xf6\\xf8-\\xff]",Y="[^\\ud800-\\udfff"+G+$+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",H="(?:\\ud83c[\\udde6-\\uddff]){2}",Q="[\\ud800-\\udbff][\\udc00-\\udfff]",V="[A-Z\\xc0-\\xd6\\xd8-\\xde]",J="(?:"+B+"|"+Y+")",W="(?:"+V+"|"+Y+")",K="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?",X="[\\ufe0e\\ufe0f]?"+K+("(?:\\u200d(?:"+["[^\\ud800-\\udfff]",H,Q].join("|")+")[\\ufe0e\\ufe0f]?"+K+")*"),tt="(?:"+[q,H,Q].join("|")+")"+X,et=RegExp([V+"?"+B+"+(?:['’](?:d|ll|m|re|s|t|ve))?(?="+[Z,V,"$"].join("|")+")",W+"+(?:['’](?:D|LL|M|RE|S|T|VE))?(?="+[Z,V+J,"$"].join("|")+")",V+"?"+J+"+(?:['’](?:d|ll|m|re|s|t|ve))?",V+"+(?:['’](?:D|LL|M|RE|S|T|VE))?","\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",$,tt].join("|"),"g");var rt=function(t){return t.match(et)||[]};var nt=function(t,e,r){return t=k(t),void 0===(e=r?void 0:e)?U(t)?rt(t):M(t):t.match(e)||[]},ot=RegExp("['’]","g");var at=function(t){return function(e){return f(nt(D(e).replace(ot,"")),t,"")}}((function(t,e,r){return t+(r?" ":"")+e.toUpperCase()})),it=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ut=/^\w*$/;var ct=function(t,e){if(m(t))return!1;var r=typeof t;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=t&&!N(t))||(ut.test(t)||!it.test(t)||null!=e&&t in Object(e))};var lt=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)};var st,ft=function(t){if(!lt(t))return!1;var e=P(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e},pt=v["__core-js_shared__"],ht=(st=/[^.]+$/.exec(pt&&pt.keys&&pt.keys.IE_PROTO||""))?"Symbol(src)_1."+st:"";var dt=function(t){return!!ht&&ht in t},vt=Function.prototype.toString;var gt=function(t){if(null!=t){try{return vt.call(t)}catch(t){}try{return t+""}catch(t){}}return""},yt=/^\[object .+?Constructor\]$/,mt=Function.prototype,bt=Object.prototype,_t=mt.toString,wt=bt.hasOwnProperty,xt=RegExp("^"+_t.call(wt).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var Ot=function(t){return!(!lt(t)||dt(t))&&(ft(t)?xt:yt).test(gt(t))};var jt=function(t,e){return null==t?void 0:t[e]};var Et=function(t,e){var r=jt(t,e);return Ot(r)?r:void 0},St=Et(Object,"create");var Pt=function(){this.__data__=St?St(null):{},this.size=0};var Lt=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},Nt=Object.prototype.hasOwnProperty;var At=function(t){var e=this.__data__;if(St){var r=e[t];return"__lodash_hash_undefined__"===r?void 0:r}return Nt.call(e,t)?e[t]:void 0},zt=Object.prototype.hasOwnProperty;var Tt=function(t){var e=this.__data__;return St?void 0!==e[t]:zt.call(e,t)};var kt=function(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=St&&void 0===e?"__lodash_hash_undefined__":e,this};function It(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}It.prototype.clear=Pt,It.prototype.delete=Lt,It.prototype.get=At,It.prototype.has=Tt,It.prototype.set=kt;var Ct=It;var Dt=function(){this.__data__=[],this.size=0};var Rt=function(t,e){return t===e||t!=t&&e!=e};var Mt=function(t,e){for(var r=t.length;r--;)if(Rt(t[r][0],e))return r;return-1},Ft=Array.prototype.splice;var Ut=function(t){var e=this.__data__,r=Mt(e,t);return!(r<0)&&(r==e.length-1?e.pop():Ft.call(e,r,1),--this.size,!0)};var Gt=function(t){var e=this.__data__,r=Mt(e,t);return r<0?void 0:e[r][1]};var Zt=function(t){return Mt(this.__data__,t)>-1};var $t=function(t,e){var r=this.__data__,n=Mt(r,t);return n<0?(++this.size,r.push([t,e])):r[n][1]=e,this};function qt(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])}}qt.prototype.clear=Dt,qt.prototype.delete=Ut,qt.prototype.get=Gt,qt.prototype.has=Zt,qt.prototype.set=$t;var Bt=qt,Yt=Et(v,"Map");var Ht=function(){this.size=0,this.__data__={hash:new Ct,map:new(Yt||Bt),string:new Ct}};var Qt=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 Qt(e)?r["string"==typeof e?"string":"hash"]:r.map};var Jt=function(t){var e=Vt(this,t).delete(t);return this.size-=e?1:0,e};var Wt=function(t){return Vt(this,t).get(t)};var Kt=function(t){return Vt(this,t).has(t)};var Xt=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 te(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])}}te.prototype.clear=Ht,te.prototype.delete=Jt,te.prototype.get=Wt,te.prototype.has=Kt,te.prototype.set=Xt;var ee=te;function re(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(re.Cache||ee),r}re.Cache=ee;var ne=re;var oe=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ae=/\\(\\)?/g,ie=function(t){var e=ne(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(oe,(function(t,r,n,o){e.push(n?o.replace(ae,"$1"):r||t)})),e}));var ue=function(t,e){return m(t)?t:ct(t,e)?[t]:ie(k(t))};var ce=function(t){if("string"==typeof t||N(t))return t;var e=t+"";return"0"==e&&1/t==-Infinity?"-0":e};var le=function(t,e){for(var r=0,n=(e=ue(e,t)).length;null!=t&&r<n;)t=t[ce(e[r++])];return r&&r==n?t:void 0};var se=function(t,e,r){var n=null==t?void 0:le(t,e);return void 0===n?r:n};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",u=o.toStringTag||"@@toStringTag";function c(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(t){c=function(t,e,r){return t[e]=r}}function l(t,e,r,n){var o=e&&e.prototype instanceof g?e:g,a=Object.create(o.prototype),i=new L(n||[]);return a._invoke=function(t,e,r){var n=f;return function(o,a){if(n===h)throw new Error("Generator is already running");if(n===d){if("throw"===o)throw a;return A()}for(r.method=o,r.arg=a;;){var i=r.delegate;if(i){var u=E(i,r);if(u){if(u===v)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(n===f)throw n=d,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n=h;var c=s(t,e,r);if("normal"===c.type){if(n=r.done?d:p,c.arg===v)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n=d,r.method="throw",r.arg=c.arg)}}}(t,r,i),a}function s(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=l;var f="suspendedStart",p="suspendedYield",h="executing",d="completed",v={};function g(){}function y(){}function m(){}var b={};c(b,a,(function(){return this}));var _=Object.getPrototypeOf,w=_&&_(_(N([])));w&&w!==r&&n.call(w,a)&&(b=w);var x=m.prototype=g.prototype=Object.create(b);function O(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function j(t,e){function r(o,a,i,u){var c=s(t[o],t,a);if("throw"!==c.type){var l=c.arg,f=l.value;return f&&"object"==typeof f&&n.call(f,"__await")?e.resolve(f.__await).then((function(t){r("next",t,i,u)}),(function(t){r("throw",t,i,u)})):e.resolve(f).then((function(t){l.value=t,i(l)}),(function(t){return r("throw",t,i,u)}))}u(c.arg)}var o;this._invoke=function(t,n){function a(){return new e((function(e,o){r(t,n,e,o)}))}return o=o?o.then(a,a):a()}}function E(t,r){var n=t.iterator[r.method];if(n===e){if(r.delegate=null,"throw"===r.method){if(t.iterator.return&&(r.method="return",r.arg=e,E(t,r),"throw"===r.method))return v;r.method="throw",r.arg=new TypeError("The iterator does not provide a 'throw' method")}return v}var o=s(n,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,v;var a=o.arg;return a?a.done?(r[t.resultName]=a.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,v):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,v)}function S(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function P(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function L(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(S,this),this.reset(!0)}function N(t){if(t){var r=t[a];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function r(){for(;++o<t.length;)if(n.call(t,o))return r.value=t[o],r.done=!1,r;return r.value=e,r.done=!0,r};return i.next=i}}return{next:A}}function A(){return{value:e,done:!0}}return y.prototype=m,c(x,"constructor",m),c(m,"constructor",y),y.displayName=c(m,u,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===y||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,m):(t.__proto__=m,c(t,u,"GeneratorFunction")),t.prototype=Object.create(x),t},t.awrap=function(t){return{__await:t}},O(j.prototype),c(j.prototype,i,(function(){return this})),t.AsyncIterator=j,t.async=function(e,r,n,o,a){void 0===a&&(a=Promise);var i=new j(l(e,r,n,o),a);return t.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},O(x),c(x,u,"Generator"),c(x,a,(function(){return this})),c(x,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=[];for(var r in t)e.push(r);return e.reverse(),function r(){for(;e.length;){var n=e.pop();if(n in t)return r.value=n,r.done=!1,r}return r.done=!0,r}},t.values=N,L.prototype={constructor:L,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(P),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function o(n,o){return u.type="throw",u.arg=t,r.next=n,o&&(r.method="next",r.arg=e),!!o}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],u=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),l=n.call(i,"finallyLoc");if(c&&l){if(this.prev<i.catchLoc)return o(i.catchLoc,!0);if(this.prev<i.finallyLoc)return o(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return o(i.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return o(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,v):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),v},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),P(r),v}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;P(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:N(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),v}},t}(t.exports);try{regeneratorRuntime=e}catch(t){"object"==typeof globalThis?globalThis.regeneratorRuntime=e:Function("r","regeneratorRuntime = r")(e)}}));var fe=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},pe=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},he=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:pe(t),n=fe(r)<155?"light":"dark";return n},de=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=e.magazineSlug,n=void 0===r?"":r,o=e.isArchivePage,a=void 0!==o&&o;if(a)return"/magazine/archive/".concat(n);if(n)return"/magazine/".concat(n,"/").concat(t.slug);var i="section"===t.template;if(i){var u=se(t,["metadata","section","0","id"],""),c=e.sections,l=c&&c.find((function(t){return t.id===u}));return l?l["section-url"]:"/"}return"/collection/".concat(t.slug)};e.shape({"sketches-host":e.string,"cdn-name":e.string,"cdn-image":e.string}),e.shape({headline:e.string,"last-published-at":e.number,subheadline:e.string});var ve=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2?arguments[2]:void 0;if(r)return r;var n=e.magazineSlug,o=void 0===n?"":n,a=e.isArchivePage,i=void 0!==a&&a;return i?"/magazine/archive/".concat(o):o?"/magazine/".concat(o,"/").concat(t.slug):t?de(t,e):"/"},ge={"./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 ye(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 me(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?ye(Object(r),!0).forEach((function(e){a(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):ye(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var be=function(e){var r=e.config,n=void 0===r?{}:r,a=e.collection,i=e.template,u=void 0===i?"SubsequentLoadCount":i,c=e.onClick,l=e.navigate,f=e.qtConfig,p=n.showButton,h=void 0===p||p,d=n.buttonText,v=void 0===d?"Read More":d,g=n.theme,y=void 0===g?"":g,m=n.customUrlPath,b=void 0===m?"":m;if(!h)return null;var _=he(y),w=b?"/".concat(b):ve(a,me(me({},f),n));return"SubsequentLoadCount"===u?t.createElement("div",{onClick:c,"data-test-id":"load-more",className:"arr--button "+s("button ".concat(_," default"),ge)},v):t.createElement(o,{href:w,navigateTo:l,"data-test-id":"load-more","aria-label":"load-more"},t.createElement("div",{className:"arr--button "+s("button ".concat(_," default"),ge)},v))};be.propTypes={collection:e.object,template:e.string,config:e.object,onClick:e.func,navigate:e.func,qtConfig:e.object};var _e={"./page-intro-card.m.css":{viewports:'"../../../../assets/stylesheets/viewports.m.css"',mobile:"768px",tablet:"992px","author-page-wrapper":"page-intro-card-m_author-page-wrapper__2HiAv",pageTitle:"page-intro-card-m_pageTitle__2qQNj",borderBottom:"page-intro-card-m_borderBottom__2E6t3",pageDescription:"page-intro-card-m_pageDescription__Wzub7",dark:"page-intro-card-m_dark__1ebnF",light:"page-intro-card-m_light__s5xeQ"}};function we(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 xe(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?we(Object(r),!0).forEach((function(e){a(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):we(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var Oe=function(e){var o=e.config,a=void 0===o?{}:o,i=a.pageTitle,u=void 0===i?"":i,c=a.pageDescription,l=void 0===c?"":c,f=a.theme,p=void 0===f?"#131922":f,h=a.showButton,d=void 0!==h&&h,v=a.enableBorder,g=void 0!==v&&v,y=a.customUrlPath,m=he(p),b=g?"borderBottom":"",_=r(),w=n((function(t){return se(t,["qt","config"],{})})),x=ve({},xe(xe({},w),{},{config:a}),y);return t.createElement("div",{className:"arrow-component full-width-with-padding page-intro-card-m_author-page-wrapper__2HiAv",style:{background:p}},t.createElement("h2",{"data-test-id":"page-title",className:s("pageTitle ".concat(m," ").concat(b),_e)},at(u)),t.createElement("div",{"data-test-id":"page-description",className:s("pageDescription ".concat(m),_e)},l),d&&t.createElement(be,{template:"customUrlPath",config:a,navigate:function(){return function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";global.app.navigateToPage(t,e)}(_,x)},qtConfig:w}))};Oe.propTypes={config:e.shape({theme:e.string,pageTitle:e.string,pageDescription:e.string})};export{Oe as default};
package/package.json CHANGED
@@ -1 +1 @@
1
- {"name":"@quintype/arrow","version":"3.2.1-arrow-chunking.0","engines":{"node":">=12.0.0","npm":"^6.0.0"},"description":"Quintype's UI Component Library for Publisher Apps","main":"cjs/index.js","module":"esm/index.js","repository":{"type":"git","url":"git+https://github.com/quintype/quintype-node-arrow.git"},"author":"dev-core@quintype.com","license":"ISC","bugs":{"url":"https://github.com/quintype/quintype-node-arrow/issues"},"peerDependencies":{"react":">= 16.8.0","react-dom":">= 16.8.0","react-redux":">= 7.0.0","lodash":"^4.17.15"},"dependencies":{"@quintype/components":"^3.0.0","axios":"^0.19.2","intersection-observer":"^0.11.0","react-image-lightbox":"^5.1.1","react-timeago":"^4.4.0"},"homepage":"https://github.com/quintype/quintype-node-arrow#readme"}
1
+ {"name":"@quintype/arrow","version":"3.2.1-arrow-chunking.1","engines":{"node":">=12.0.0","npm":"^6.0.0"},"description":"Quintype's UI Component Library for Publisher Apps","main":"cjs/index.js","module":"esm/index.js","repository":{"type":"git","url":"git+https://github.com/quintype/quintype-node-arrow.git"},"author":"dev-core@quintype.com","license":"ISC","bugs":{"url":"https://github.com/quintype/quintype-node-arrow/issues"},"peerDependencies":{"react":">= 16.8.0","react-dom":">= 16.8.0","react-redux":">= 7.0.0","lodash":"^4.17.15"},"dependencies":{"@quintype/components":"^3.0.0","axios":"^0.19.2","intersection-observer":"^0.11.0","react-image-lightbox":"^5.1.1","react-timeago":"^4.4.0"},"homepage":"https://github.com/quintype/quintype-node-arrow#readme"}