diff --git a/output/bundle.min.js b/output/bundle.min.js index c3d75b1..220eff5 100644 --- a/output/bundle.min.js +++ b/output/bundle.min.js @@ -1 +1 @@ -!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react")):"function"==typeof define&&define.amd?define("eureka",["react"],t):"object"==typeof exports?exports.eureka=t(require("react")):e.eureka=t(e.React)}("undefined"!=typeof self?self:this,function(e){return function(e){function t(n){if(r[n])return r[n].exports;var a=r[n]={i:n,l:!1,exports:{}};return e[n].call(a.exports,a,a.exports,t),a.l=!0,a.exports}var r={};return t.m=e,t.c=r,t.d=function(e,r,n){t.o(e,r)||Object.defineProperty(e,r,{configurable:!1,enumerable:!0,get:n})},t.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(r,"a",r),r},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=5)}([function(t,r){t.exports=e},function(e,t,r){e.exports=r(7)()},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(6),a=function(e){return e&&e.__esModule?e:{default:e}}(n);t.default=a.default},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,n){function a(e){return e.replace(O,"-$1").toLowerCase()}function o(e){return S(e).replace(A,"-ms-")}function i(e){return"function"==typeof e&&"string"==typeof e.styledComponentId}function c(){}function s(e){return"string"==typeof e}function u(e){return e.displayName||e.name||"Component"}function l(e){return e.replace(Me,"-").replace(Re,"")}function f(e){for(var t,r=0|e.length,n=0|r,a=0;r>=4;)t=255&e.charCodeAt(a)|(255&e.charCodeAt(++a))<<8|(255&e.charCodeAt(++a))<<16|(255&e.charCodeAt(++a))<<24,t=1540483477*(65535&t)+((1540483477*(t>>>16)&65535)<<16),t^=t>>>24,t=1540483477*(65535&t)+((1540483477*(t>>>16)&65535)<<16),n=1540483477*(65535&n)+((1540483477*(n>>>16)&65535)<<16)^t,r-=4,++a;switch(r){case 3:n^=(255&e.charCodeAt(a+2))<<16;case 2:n^=(255&e.charCodeAt(a+1))<<8;case 1:n^=255&e.charCodeAt(a),n=1540483477*(65535&n)+((1540483477*(n>>>16)&65535)<<16)}return n^=n>>>13,n=1540483477*(65535&n)+((1540483477*(n>>>16)&65535)<<16),(n^=n>>>15)>>>0}r.d(t,"css",function(){return z}),r.d(t,"keyframes",function(){return Qe}),r.d(t,"injectGlobal",function(){return et}),r.d(t,"isStyledComponent",function(){return i}),r.d(t,"consolidateStreamedStyles",function(){return c}),r.d(t,"ThemeProvider",function(){return ze}),r.d(t,"withTheme",function(){return Ye}),r.d(t,"ServerStyleSheet",function(){return je}),r.d(t,"StyleSheetManager",function(){return Se}),r.d(t,"__DO_NOT_USE_OR_YOU_WILL_BE_HAUNTED_BY_SPOOKY_GHOSTS",function(){return Ke});var d=r(13),p=r.n(d),h=r(15),m=r.n(h),g=r(16),b=r.n(g),v=r(0),y=r.n(v),k=r(1),x=r.n(k),w=r(17),C=r.n(w),O=/([A-Z])/g,T=a,S=T,A=/^ms-/,E=o,j=function e(t,r){var n=Object.keys(t).filter(function(e){var r=t[e];return void 0!==r&&null!==r&&!1!==r&&""!==r}).map(function(r){return p()(t[r])?e(t[r],r):E(r)+": "+t[r]+";"}).join(" ");return r?r+" {\n "+n+"\n}":n},P=function e(t,r){return t.reduce(function(t,n){return void 0===n||null===n||!1===n||""===n?t:Array.isArray(n)?[].concat(t,e(n,r)):n.hasOwnProperty("styledComponentId")?[].concat(t,["."+n.styledComponentId]):"function"==typeof n?r?t.concat.apply(t,e([n(r)],r)):t.concat(n):t.concat(p()(n)?j(n):n.toString())},[])},I=new m.a({global:!1,cascade:!1,keyframe:!1,prefix:!1,compress:!1,semicolon:!0}),_=new m.a({global:!1,cascade:!0,keyframe:!1,prefix:!0,compress:!1,semicolon:!1}),F=[],M=function(e){if(-2===e){var t=F;return F=[],t}},R=b()(function(e){F.push(e)});_.use([R,M]),I.use([R,M]);var N=function(e,t,r){var n=e.join("").replace(/^\s*\/\/.*$/gm,""),a=t&&r?r+" "+t+" { "+n+" }":n;return _(r||!t?"":t,a)},D=function(e){return I("",e)},G=function(e){return String.fromCharCode(e+(e>25?39:97))},L=function(e){var t="",r=void 0;for(r=e;r>52;r=Math.floor(r/52))t=G(r%52)+t;return G(r%52)+t},B=function(e,t){return t.reduce(function(t,r,n){return t.concat(r,e[n+1])},[e[0]])},z=function(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n=0||Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=e[n]);return r},ee=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t},te=function(e,t,r){if(r){(e[t]||(e[t]=Object.create(null)))[r]=!0}},re=function(e,t){e[t]=Object.create(null)},ne=function(e){return function(t,r){return void 0!==e[t]&&e[t][r]}},ae=function(e){var t="";for(var r in e)t+=Object.keys(e[r]).join(" ")+" ";return t.trim()},oe=function(e){var t=Object.create(null);for(var r in e)t[r]=Z({},e[r]);return t},ie=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets.length,r=0;r=n;a-=1)e.deleteRule(a)},ue=function(){throw new Error("")},le=function(e){return"\n/* sc-component-id: "+e+" */\n"},fe=function(e,t){for(var r=0,n=0;n<=t;n+=1)r+=e[n];return r},de=function(e,t,r){var n=document.createElement("style");n.setAttribute(W,"");var a=V();if(a&&n.setAttribute("nonce",a),n.appendChild(document.createTextNode("")),e&&!t)e.appendChild(n);else{if(!t||!e||!t.parentNode)throw new Error("");t.parentNode.insertBefore(n,r?t:t.nextSibling)}return n},pe=function(e,t){return function(r){var n=V();return""}},he=function(e,t){return function(){var r,n=(r={},r[W]=ae(t),r),a=V();return a&&(n.nonce=a),y.a.createElement("style",Z({},n,{dangerouslySetInnerHTML:{__html:e()}}))}},me=function(e){return function(){return Object.keys(e)}},ge=function(e,t){var r=Object.create(null),n=Object.create(null),a=[],o=void 0!==t,i=!1,c=function(e){var t=n[e];if(void 0!==t)return t;var o=n[e]=a.length;return a.push(0),re(r,e),o},s=function(n,s,u){for(var l=c(n),f=ie(e),d=fe(a,l),p=0,h=[],m=s.length,g=0;g0&&(i=!0,t().insertRules(n+"-import",h)),a[l]+=p,te(r,n,u)},u=function(c){var s=n[c];if(void 0!==s){var u=a[s],l=ie(e),f=fe(a,s);se(l,f,u),a[s]=0,re(r,c),o&&i&&t().removeRules(c+"-import")}},l=function(){var t=ie(e),r=t.cssRules,a="",o=0;for(var i in n){a+=le(i);for(var c=n[i]+o;o0&&void 0!==arguments[0]?arguments[0]:H?document.head:null,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];K(this,e),this.getImportRuleTag=function(){var e=t.importRuleTag;if(void 0!==e)return e;var r=t.tags[0];return t.importRuleTag=ye(t.target,r?r.styleTag:null,t.forceServer,!0)},this.id=Ce+=1,this.sealed=!1,this.forceServer=n,this.target=n?null:r,this.tagMap={},this.deferred={},this.rehydratedNames={},this.ignoreRehydratedNames={},this.tags=[],this.capacity=1,this.clones=[]}return e.prototype.rehydrate=function(){if(!H||this.forceServer)return this;var e=[],t=[],r=[],n=!1,a=document.querySelectorAll("style["+W+"]"),o=a.length;if(0===o)return this;for(var i=0;i0&&void 0!==arguments[0]&&arguments[0];Oe=new e(void 0,t).rehydrate()},e.prototype.clone=function(){var t=new e(this.target,this.forceServer);return this.clones.push(t),t.tags=this.tags.map(function(e){for(var r=e.getIds(),n=e.clone(),a=0;a<+~=|^:(),"'`-]+/g,Re=/(^-|-$)/g,Ne=function(e){function t(e){i=e;for(var t in a){var r=a[t];void 0!==r&&r(i)}}function r(e){var t=o;return a[t]=e,o+=1,e(i),t}function n(e){a[e]=void 0}var a={},o=0,i=e;return{publish:t,subscribe:r,unsubscribe:n}},De="__styled-components__",Ge=De+"next__",Le=x.a.shape({getTheme:x.a.func,subscribe:x.a.func,unsubscribe:x.a.func}),Be=function(e){return"function"==typeof e},ze=function(e){function t(){K(this,t);var r=ee(this,e.call(this));return r.unsubscribeToOuterId=-1,r.getTheme=r.getTheme.bind(r),r}return J(t,e),t.prototype.componentWillMount=function(){var e=this,t=this.context[Ge];void 0!==t&&(this.unsubscribeToOuterId=t.subscribe(function(t){e.outerTheme=t,void 0!==e.broadcast&&e.publish(e.props.theme)})),this.broadcast=Ne(this.getTheme())},t.prototype.getChildContext=function(){var e,t=this;return Z({},this.context,(e={},e[Ge]={getTheme:this.getTheme,subscribe:this.broadcast.subscribe,unsubscribe:this.broadcast.unsubscribe},e[De]=function(e){var r=t.broadcast.subscribe(e);return function(){return t.broadcast.unsubscribe(r)}},e))},t.prototype.componentWillReceiveProps=function(e){this.props.theme!==e.theme&&this.publish(e.theme)},t.prototype.componentWillUnmount=function(){-1!==this.unsubscribeToOuterId&&this.context[Ge].unsubscribe(this.unsubscribeToOuterId)},t.prototype.getTheme=function(e){var t=e||this.props.theme;if(Be(t)){return t(this.outerTheme)}if(!p()(t))throw new Error("");return Z({},this.outerTheme,t)},t.prototype.publish=function(e){this.broadcast.publish(this.getTheme(e))},t.prototype.render=function(){return this.props.children?y.a.Children.only(this.props.children):null},t}(v.Component);ze.childContextTypes=(Ae={},Ae[De]=x.a.func,Ae[Ge]=Le,Ae),ze.contextTypes=(Ee={},Ee[Ge]=Le,Ee);var We={},$e=H,He=function e(t,r){for(var n=0;n2&&void 0!==arguments[2]?arguments[2]:{};if("string"!=typeof n&&"function"!=typeof n)throw new Error("");var o=function(){return r(n,a,e.apply(void 0,arguments))};return o.withConfig=function(e){return t(r,n,Z({},a,e))},o.attrs=function(e){return t(r,n,Z({},a,{attrs:Z({},a.attrs||{},e)}))},o}}(z),Je=function(e,t){var r={},n=function(t,n){var a="string"!=typeof t?"sc":l(t),o=void 0;if(t)o=a+"-"+e.generateName(a);else{var i=(r[a]||0)+1;r[a]=i,o=a+"-"+e.generateName(a+i)}return void 0!==n?n+"-"+o:o},a=function(e){function t(){var r,n,a;K(this,t);for(var o=arguments.length,i=Array(o),c=0;c1)for(var r=1;r0&&(Ie=Ie.replace(g,"")),Ie.trim().length>0)){switch(w){case te:case Q:case H:case J:case Z:break;default:Ie+=a.charAt(F)}w=H}if(1===R)switch(w){case q:case U:case H:case ue:case se:case V:case Y:case ie:R=0;case Q:case J:case Z:case te:break;default:for(R=0,G=F,k=w,F--,w=H;G0&&(++F,w=k);case q:G=L}}switch(w){case q:for(Ie=Ie.trim(),k=Ie.charCodeAt(0),S=1,G=++F;F0&&(Ie=Ie.replace(g,"")),x=Ie.charCodeAt(1)){case Oe:case ve:case ye:case ne:d=t;break;default:d=Re}if(_e=r(t,d,_e,x,f+1),G=_e.length,Me>0&&0===G&&(G=Ie.length),De>0&&(d=n(Re,Ie,D),p=l(He,_e,d,t,Ae,Se,G,x,f,s),Ie=d.join(""),void 0!==p&&0===(G=(_e=p.trim()).length)&&(x=0,_e="")),G>0)switch(x){case ye:Ie=Ie.replace(N,c);case Oe:case ve:case ne:_e=Ie+"{"+_e+"}";break;case be:Ie=Ie.replace(A,"$1 $2"+(qe>0?Ve:"")),_e=Ie+"{"+_e+"}",_e=1===Pe||2===Pe&&i("@"+_e,3)?"@"+z+_e+"@"+_e:"@"+_e;break;default:_e=Ie+_e,s===Te&&(Ne+=_e,_e="")}else _e="";break;default:_e=r(t,n(t,Ie,D),_e,s,f+1)}Ge+=_e,P=0,R=0,_=0,M=0,D=0,I=0,Ie="",_e="",w=a.charCodeAt(++F);break;case U:case H:if(Ie=(M>0?Ie.replace(g,""):Ie).trim(),(G=Ie.length)>1)switch(0===_&&((k=Ie.charCodeAt(0))===ne||k>96&&k<123)&&(G=(Ie=Ie.replace(" ",":")).length),De>0&&void 0!==(p=l(We,Ie,t,e,Ae,Se,Ne.length,s,f,s))&&0===(G=(Ie=p.trim()).length)&&(Ie="\0\0"),k=Ie.charCodeAt(0),x=Ie.charCodeAt(1),k+x){case he:break;case we:case Ce:Le+=Ie+a.charAt(F);break;default:if(Ie.charCodeAt(G-1)===ce)break;Ne+=o(Ie,k,x,Ie.charCodeAt(2))}P=0,R=0,_=0,M=0,D=0,Ie="",w=a.charCodeAt(++F)}}switch(w){case J:case Z:if(b+y+v+h+Fe===0)switch(T){case Y:case se:case ue:case ee:case pe:case fe:case oe:case de:case le:case ne:case ce:case ie:case H:case q:case U:break;default:_>0&&(R=1)}b===le?b=0:je+P===0&&(M=1,Ie+="\0"),De*Ue>0&&l(ze,Ie,t,e,Ae,Se,Ne.length,s,f,s),Se=1,Ae++;break;case H:case U:if(b+y+v+h===0){Se++;break}default:switch(Se++,ae=a.charAt(F),w){case Q:case te:if(y+h+b===0)switch(C){case ie:case ce:case Q:case te:ae="";break;default:w!==te&&(ae=" ")}break;case he:ae="\\0";break;case me:ae="\\f";break;case ge:ae="\\v";break;case re:y+b+h===0&&je>0&&(D=1,M=1,ae="\f"+ae);break;case 108:if(y+b+h+Ee===0&&_>0)switch(F-_){case 2:C===ke&&a.charCodeAt(F-3)===ce&&(Ee=C);case 8:O===xe&&(Ee=O)}break;case ce:y+b+h===0&&(_=F);break;case ie:b+v+y+h===0&&(M=1,ae+="\r");break;case ue:case se:0===b&&(y=y===w?0:0===y?w:y);break;case K:y+b+v===0&&h++;break;case X:y+b+v===0&&h--;break;case Y:y+b+h===0&&v--;break;case V:if(y+b+h===0){if(0===P)switch(2*C+3*O){case 533:break;default:S=0,P=1}v++}break;case ee:b+v+y+h+_+I===0&&(I=1);break;case oe:case le:if(y+h+v>0)break;switch(b){case 0:switch(2*w+3*a.charCodeAt(F+1)){case 235:b=le;break;case 220:G=F,b=oe}break;case oe:w===le&&C===oe&&(33===a.charCodeAt(G+2)&&(Ne+=a.substring(G,F+1)),ae="",b=0)}}if(0===b){if(je+y+h+I===0&&s!==be&&w!==H)switch(w){case ie:case pe:case fe:case de:case Y:case V:if(0===P){switch(C){case Q:case te:case Z:case J:ae+="\0";break;default:ae="\0"+ae+(w===ie?"":"\0")}M=1}else switch(w){case V:P=++S;break;case Y:0==(P=--S)&&(M=1,ae+="\0")}break;case Q:case te:switch(C){case he:case q:case U:case H:case ie:case me:case Q:case te:case Z:case J:break;default:0===P&&(M=1,ae+="\0")}}Ie+=ae,w!==te&&w!==Q&&(T=w)}}O=C,C=w,F++}if(G=Ne.length,Me>0&&0===G&&0===Ge.length&&0===t[0].length==!1&&(s!==ve||1===t.length&&(je>0?Ye:Ke)===t[0])&&(G=t.join(",").length+2),G>0){if(d=0===je&&s!==be?u(t):t,De>0&&void 0!==(p=l($e,Ne,d,e,Ae,Se,G,s,f,s))&&0===(Ne=p).length)return Le+Ne+Ge;if(Ne=d.join(",")+"{"+Ne+"}",Pe*Ee!=0){switch(2!==Pe||i(Ne,2)||(Ee=0),Ee){case xe:Ne=Ne.replace(j,":"+W+"$1")+Ne;break;case ke:Ne=Ne.replace(E,"::"+z+"input-$1")+Ne.replace(E,"::"+W+"$1")+Ne.replace(E,":"+$+"input-$1")+Ne}Ee=0}}return Le+Ne+Ge}function n(e,t,r){var n=t.trim().split(C),o=n,i=n.length,c=e.length;switch(c){case 0:case 1:for(var s=0,u=0===c?"":e[0]+" ";s0&&je>0)return a.replace(T,"$1").replace(O,"$1"+Ke);break;default:return e.trim()+a.replace(O,"$1"+e.trim())}default:if(r*je>0&&a.indexOf("\f")>0)return a.replace(O,(e.charCodeAt(0)===ce?"":"$1")+e.trim())}return e+a}function o(e,t,r,n){var a,c=0,u=e+";",l=2*t+3*r+4*n;if(944===l)return s(u);if(0===Pe||2===Pe&&!i(u,1))return u;switch(l){case 1015:return 97===u.charCodeAt(10)?z+u+u:u;case 951:return 116===u.charCodeAt(3)?z+u+u:u;case 963:return 110===u.charCodeAt(5)?z+u+u:u;case 1009:if(100!==u.charCodeAt(4))break;case 969:case 942:return z+u+u;case 978:return z+u+W+u+u;case 1019:case 983:return z+u+W+u+$+u+u;case 883:return u.charCodeAt(8)===ne?z+u+u:u;case 932:if(u.charCodeAt(4)===ne)switch(u.charCodeAt(5)){case 103:return z+"box-"+u.replace("-grow","")+z+u+$+u.replace("grow","positive")+u;case 115:return z+u+$+u.replace("shrink","negative")+u;case 98:return z+u+$+u.replace("basis","preferred-size")+u}return z+u+$+u+u;case 964:return z+u+$+"flex-"+u+u;case 1023:if(99!==u.charCodeAt(8))break;return a=u.substring(u.indexOf(":",15)).replace("flex-","").replace("space-between","justify"),z+"box-pack"+a+z+u+$+"flex-pack"+a+u;case 1005:return v.test(u)?u.replace(b,":"+z)+u.replace(b,":"+W)+u:u;case 1e3:switch(a=u.substring(13).trim(),c=a.indexOf("-")+1,a.charCodeAt(0)+a.charCodeAt(c)){case 226:a=u.replace(R,"tb");break;case 232:a=u.replace(R,"tb-rl");break;case 220:a=u.replace(R,"lr");break;default:return u}return z+u+$+a+u;case 1017:if(-1===u.indexOf("sticky",9))return u;case 975:switch(c=(u=e).length-10,a=(33===u.charCodeAt(c)?u.substring(0,c):u).substring(e.indexOf(":",7)+1).trim(),l=a.charCodeAt(0)+(0|a.charCodeAt(7))){case 203:if(a.charCodeAt(8)<111)break;case 115:u=u.replace(a,z+a)+";"+u;break;case 207:case 102:u=u.replace(a,z+(l>102?"inline-":"")+"box")+";"+u.replace(a,z+a)+";"+u.replace(a,$+a+"box")+";"+u}return u+";";case 938:if(u.charCodeAt(5)===ne)switch(u.charCodeAt(6)){case 105:return a=u.replace("-items",""),z+u+z+"box-"+a+$+"flex-"+a+u;case 115:return z+u+$+"flex-item-"+u.replace(G,"")+u;default:return z+u+$+"flex-line-pack"+u.replace("align-content","").replace(G,"")+u}break;case 973:case 989:if(u.charCodeAt(3)!==ne||122===u.charCodeAt(4))break;case 931:case 953:if(!0===B.test(e))return 115===(a=e.substring(e.indexOf(":")+1)).charCodeAt(0)?o(e.replace("stretch","fill-available"),t,r,n).replace(":fill-available",":stretch"):u.replace(a,z+a)+u.replace(a,W+a.replace("fill-",""))+u;break;case 962:if(u=z+u+(102===u.charCodeAt(5)?$+u:"")+u,r+n===211&&105===u.charCodeAt(13)&&u.indexOf("transform",10)>0)return u.substring(0,u.indexOf(";",27)+1).replace(y,"$1"+z+"$2")+u}return u}function i(e,t){var r=e.indexOf(1===t?":":"{"),n=e.substring(0,3!==t?r:10),a=e.substring(r+1,e.length-1);return Ge(2!==t?n:n.replace(L,"$1"),a,t)}function c(e,t){var r=o(t,t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2));return r!==t+";"?r.replace(D," or ($1)").substring(4):"("+t+")"}function s(e){var t=e.length,r=e.indexOf(":",9)+1,n=e.substring(0,r).trim(),a=e.substring(r,t-1).trim();switch(e.charCodeAt(9)*qe){case 0:break;case ne:if(110!==e.charCodeAt(10))break;default:for(var o=a.split((a="",k)),c=0,r=0,t=o.length;cee&&l<90||l>96&&l<123||l===ae||l===ne&&s.charCodeAt(1)!==ne))switch(isNaN(parseFloat(s))+(-1!==s.indexOf("("))){case 1:switch(s){case"infinite":case"alternate":case"backwards":case"running":case"normal":case"forwards":case"both":case"none":case"linear":case"ease":case"ease-in":case"ease-out":case"ease-in-out":case"paused":case"reverse":case"alternate-reverse":case"inherit":case"initial":case"unset":case"step-start":case"step-end":break;default:s+=Ve}}u[r++]=s}a+=(0===c?"":",")+u.join(" ")}}return a=n+a+";",1===Pe||2===Pe&&i(a,1)?z+a+a:a}function u(e){for(var t,r,n=0,a=e.length,o=Array(a);n1)){if(l=c.charCodeAt(c.length-1),f=r.charCodeAt(0),t="",0!==s)switch(l){case oe:case pe:case fe:case de:case te:case V:break;default:t=" "}switch(f){case re:r=t+Ye;case pe:case fe:case de:case te:case Y:case V:break;case K:r=t+r+Ye;break;case ce:switch(2*r.charCodeAt(1)+3*r.charCodeAt(2)){case 530:if(Ie>0){r=t+r.substring(8,u-1);break}default:(s<1||i[s-1].length<1)&&(r=t+Ye+r)}break;case ie:t="";default:r=u>1&&r.indexOf(":")>0?t+r.replace(M,"$1"+Ye+"$2"):t+r+Ye}c+=r}o[n]=c.replace(g,"").trim()}return o}function l(e,t,r,n,a,o,i,c,s,u){for(var l,f=0,d=t;f0&&(Ve=a.replace(S,o===K?"":"-")),o=1,1===je?Ke=a:Ye=a;var i,c=[Ke];De>0&&void 0!==(i=l(Be,n,c,c,Ae,Se,0,0,0,0))&&"string"==typeof i&&(n=i);var s=r(Re,c,n,0,0);return De>0&&void 0!==(i=l(Le,s,c,c,Ae,Se,s.length,0,0,0))&&"string"!=typeof(s=i)&&(o=0),Ve="",Ke="",Ye="",Ee=0,Ae=1,Se=1,_e*o==0?s:f(s)}var m=/^\0+/g,g=/[\0\r\f]/g,b=/: */g,v=/zoo|gra/,y=/([,: ])(transform)/g,k=/,+\s*(?![^(]*[)])/g,x=/ +\s*(?![^(]*[)])/g,w=/ *[\0] */g,C=/,\r+?/g,O=/([\t\r\n ])*\f?&/g,T=/:global\(((?:[^\(\)\[\]]*|\[.*\]|\([^\(\)]*\))*)\)/g,S=/\W+/g,A=/@(k\w+)\s*(\S*)\s*/,E=/::(place)/g,j=/:(read-only)/g,P=/\s+(?=[{\];=:>])/g,I=/([[}=:>])\s+/g,_=/(\{[^{]+?);(?=\})/g,F=/\s{2,}/g,M=/([^\(])(:+) */g,R=/[svh]\w+-[tblr]{2}/,N=/\(\s*(.*)\s*\)/g,D=/([\s\S]*?);/g,G=/-self|flex-/g,L=/[^]*?(:[rp][el]a[\w-]+)[^]*/,B=/stretch|:\s*\w+\-(?:conte|avail)/,z="-webkit-",W="-moz-",$="-ms-",H=59,U=125,q=123,V=40,Y=41,K=91,X=93,Z=10,J=13,Q=9,ee=64,te=32,re=38,ne=45,ae=95,oe=42,ie=44,ce=58,se=39,ue=34,le=47,fe=62,de=43,pe=126,he=0,me=12,ge=11,be=107,ve=109,ye=115,ke=112,xe=111,we=169,Ce=163,Oe=100,Te=112,Se=1,Ae=1,Ee=0,je=1,Pe=1,Ie=1,_e=0,Fe=0,Me=0,Re=[],Ne=[],De=0,Ge=null,Le=-2,Be=-1,ze=0,We=1,$e=2,He=3,Ue=0,qe=1,Ve="",Ye="",Ke="";return h.use=d,h.set=p,void 0!==t&&p(t),h})},function(e,t,r){!function(t){e.exports=t()}(function(){"use strict";return function(e){function t(t){if(t)try{e(t+"}")}catch(e){}}return function(r,n,a,o,i,c,s,u,l,f){switch(r){case 1:if(0===l&&64===n.charCodeAt(0))return e(n+";"),"";break;case 2:if(0===u)return n+"/*|*/";break;case 3:switch(u){case 102:case 112:return e(a[0]+n),"";default:return n+(0===f?"/*|*/":"")}case-2:n.split("/*|*/}").forEach(t)}}}})},function(e,t,r){!function(t,r){e.exports=r()}(0,function(){"use strict";var e={childContextTypes:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},t={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},r=Object.defineProperty,n=Object.getOwnPropertyNames,a=Object.getOwnPropertySymbols,o=Object.getOwnPropertyDescriptor,i=Object.getPrototypeOf,c=i&&i(Object);return function s(u,l,f){if("string"!=typeof l){if(c){var d=i(l);d&&d!==c&&s(u,d,f)}var p=n(l);a&&(p=p.concat(a(l)));for(var h=0;h a {\n text-decoration: underline;\n color: #000000;\n &:hover {\n cursor: pointer;\n }\n }\n"],["\n margin: 20px 0;\n font-size: 20px;\n color: #646464;\n\n > a {\n text-decoration: underline;\n color: #000000;\n &:hover {\n cursor: pointer;\n }\n }\n"]),p=c(["\n margin: 10px 0;\n"],["\n margin: 10px 0;\n"]),h=c(["\n display: inline-block;\n padding: 0.25em 0.4em;\n font-size: 75%;\n color: #FFFFFF;\n border-radius: 0.25rem;\n text-align: center;\n font-weight: bold;\n margin-right: 3px;\n background-color: ",";\n"],["\n display: inline-block;\n padding: 0.25em 0.4em;\n font-size: 75%;\n color: #FFFFFF;\n border-radius: 0.25rem;\n text-align: center;\n font-weight: bold;\n margin-right: 3px;\n background-color: ",";\n"]),m=c(["\n margin: 10px 10px 5px 0;\n color: #BFBFBF; \n"],["\n margin: 10px 10px 5px 0;\n color: #BFBFBF; \n"]),g=c(["\n border-top-left-radius: 5px;\n border-top-right-radius: 5px;\n width: 100%;\n"],["\n border-top-left-radius: 5px;\n border-top-right-radius: 5px;\n width: 100%;\n"]),b=c(["\n padding: 15px 25px;\n"],["\n padding: 15px 25px;\n"]),v=r(0),y=n(v),k=r(1),x=n(k),w=r(3),C=n(w),O=r(4),T=n(O),S=r(2),A=n(S),E={title:x.default.string.isRequired,borderNone:x.default.bool,body:x.default.string,click:x.default.func,categories:x.default.arrayOf(x.default.string),timeStamp:x.default.string,img:x.default.string,alt:x.default.string},j={borderNone:!0,categories:[],alt:""},P=C.default.div(u,function(e){return e.theme.colors.themeWhiteBase},function(e){return e.borderNone?"none":"1px solid "+e.theme.colors.borderColor},function(e){switch(e.themeColor){case"blueGradient":return"8px solid "+e.theme.colors.blueGradientStart;case"greenGradient":return"8px solid "+e.theme.colors.greenGradientStart;case"pinkGradient":return"8px solid "+e.theme.colors.pinkGradientStart}},function(e){return e.onClick&&(0,w.css)(l)}),I=C.default.div(f),_=C.default.div(d),F=C.default.div(p),M=C.default.span(h,function(e){switch(e.themeColor){case"blueGradient":return""+e.theme.colors.blueGradientEnd;case"greenGradient":return""+e.theme.colors.greenGradientEnd;case"pinkGradient":return""+e.theme.colors.pinkGradientStart}}),R=C.default.span(m),N=C.default.img(g),D=C.default.div(b),G=function(e){function t(){return a(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return i(t,e),s(t,[{key:"render",value:function(){var e=this.props,t=e.title,r=e.children,n=e.click,a=e.theme,o=e.borderNone,i=e.categories,c=e.timeStamp,s=e.showButton,u=e.buttonText,l=e.img,f=e.alt;return y.default.createElement(w.ThemeProvider,{theme:T.default},y.default.createElement(P,{themeColor:a,onClick:n,borderNone:o},l&&y.default.createElement(N,{src:l,alt:f}),y.default.createElement(D,null,y.default.createElement(I,null,t),c&&y.default.createElement(R,null,c),i.map(function(e,t){return y.default.createElement(M,{themeColor:a,key:t},e)}),y.default.createElement(_,null,r),s&&y.default.createElement(F,null,y.default.createElement(A.default,{text:u,theme:a,click:n})))))}}]),t}(y.default.Component);G.propTypes=E,G.defaultProps=j,t.default=G}])}); \ No newline at end of file +!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react")):"function"==typeof define&&define.amd?define("eureka",["react"],t):"object"==typeof exports?exports.eureka=t(require("react")):e.eureka=t(e.React)}("undefined"!=typeof self?self:this,function(e){return function(e){function t(n){if(r[n])return r[n].exports;var o=r[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,t),o.l=!0,o.exports}var r={};return t.m=e,t.c=r,t.d=function(e,r,n){t.o(e,r)||Object.defineProperty(e,r,{configurable:!1,enumerable:!0,get:n})},t.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(r,"a",r),r},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=5)}([function(t,r){t.exports=e},function(e,t,r){e.exports=r(7)()},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(6),o=function(e){return e&&e.__esModule?e:{default:e}}(n);t.default=o.default},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,n){function o(e){return"function"==typeof e&&"string"==typeof e.styledComponentId}function a(){}function i(e){return e.replace(Me,"-").replace(Re,"")}function s(e){return e.displayName||e.name||"Component"}function c(e){return"string"==typeof e}function u(e){return c(e)?"styled."+e:"Styled("+s(e)+")"}function l(e,t){for(var r=e;r;)if((r=Object.getPrototypeOf(r))&&r===t)return!0;return!1}function f(e){for(var t,r=0|e.length,n=0|r,o=0;r>=4;)t=255&e.charCodeAt(o)|(255&e.charCodeAt(++o))<<8|(255&e.charCodeAt(++o))<<16|(255&e.charCodeAt(++o))<<24,t=1540483477*(65535&t)+((1540483477*(t>>>16)&65535)<<16),t^=t>>>24,t=1540483477*(65535&t)+((1540483477*(t>>>16)&65535)<<16),n=1540483477*(65535&n)+((1540483477*(n>>>16)&65535)<<16)^t,r-=4,++o;switch(r){case 3:n^=(255&e.charCodeAt(o+2))<<16;case 2:n^=(255&e.charCodeAt(o+1))<<8;case 1:n^=255&e.charCodeAt(o),n=1540483477*(65535&n)+((1540483477*(n>>>16)&65535)<<16)}return n^=n>>>13,n=1540483477*(65535&n)+((1540483477*(n>>>16)&65535)<<16),(n^=n>>>15)>>>0}r.d(t,"css",function(){return K}),r.d(t,"keyframes",function(){return ct}),r.d(t,"injectGlobal",function(){return ut}),r.d(t,"isStyledComponent",function(){return o}),r.d(t,"consolidateStreamedStyles",function(){return a}),r.d(t,"ThemeProvider",function(){return Ue}),r.d(t,"withTheme",function(){return nt}),r.d(t,"ServerStyleSheet",function(){return Ie}),r.d(t,"StyleSheetManager",function(){return je}),r.d(t,"__DO_NOT_USE_OR_YOU_WILL_BE_HAUNTED_BY_SPOOKY_GHOSTS",function(){return ot});var d=r(11),p=r.n(d),h=r(0),m=r.n(h),b=r(13),g=r.n(b),y=r(14),v=r.n(y),k=r(1),x=r.n(k),w=r(15),C=r.n(w),S=r(16),O=(r.n(S),"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e}),T=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},A=function(){function e(e,t){for(var r=0;r=0||Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=e[n]);return r},I=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t},_=function(e){return"object"===(void 0===e?"undefined":O(e))&&e.constructor===Object},M=function(e){function t(r){T(this,t);for(var n=arguments.length,o=Array(n>1?n-1:0),a=1;a25?39:97))},H=function(e){var t="",r=void 0;for(r=e;r>52;r=Math.floor(r/52))t=U(r%52)+t;return U(r%52)+t},q=function(e,t){for(var r=[e[0]],n=0,o=t.length;n1?t-1:0),n=1;nn;o-=1)e.deleteRule(o)},fe=function(e){return"\n/* sc-component-id: "+e+" */\n"},de=function(e,t){for(var r=0,n=0;n<=t;n+=1)r+=e[n];return r},pe=function(e,t,r){var n=document.createElement("style");n.setAttribute(X,"");var o=te();if(o&&n.setAttribute("nonce",o),n.appendChild(document.createTextNode("")),e&&!t)e.appendChild(n);else{if(!t||!e||!t.parentNode)throw new M(6);t.parentNode.insertBefore(n,r?t:t.nextSibling)}return n},he=function(e,t){return function(r){var n=te();return""}},me=function(e,t){return function(){var r,n=(r={},r[X]=ie(t),r),o=te();return o&&(n.nonce=o),m.a.createElement("style",j({},n,{dangerouslySetInnerHTML:{__html:e()}}))}},be=function(e){return function(){return Object.keys(e)}},ge=function(e,t){var r=Object.create(null),n=Object.create(null),o=[],a=void 0!==t,i=!1,s=function(e){var t=n[e];return void 0!==t?t:(n[e]=o.length,o.push(0),oe(r,e),n[e])},c=function(n,c,u){for(var l=s(n),f=ce(e),d=de(o,l),p=0,h=[],m=c.length,b=0;b0&&(i=!0,t().insertRules(n+"-import",h)),o[l]+=p,ne(r,n,u)},u=function(s){var c=n[s];if(void 0!==c){var u=o[c],l=ce(e),f=de(o,c);le(l,f,u),o[c]=0,oe(r,s),a&&i&&t().removeRules(s+"-import")}},l=function(){var t=ce(e),r=t.cssRules,a="";for(var i in n){a+=fe(i);for(var s=n[i],c=de(o,s),u=o[s],l=c-u;l0&&void 0!==arguments[0]?arguments[0]:J?document.head:null,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];T(this,e),this.getImportRuleTag=function(){var e=t.importRuleTag;if(void 0!==e)return e;var r=t.tags[0];return t.importRuleTag=ke(t.target,r?r.styleTag:null,t.forceServer,!0)},Oe+=1,this.id=Oe,this.forceServer=n,this.target=n?null:r,this.tagMap={},this.deferred={},this.rehydratedNames={},this.ignoreRehydratedNames={},this.tags=[],this.capacity=1,this.clones=[]}return e.prototype.rehydrate=function(){if(!J||this.forceServer)return this;var e=[],t=[],r=!1,n=document.querySelectorAll("style["+X+"]"),o=n.length;if(0===o)return this;for(var a=0;a0&&void 0!==arguments[0]&&arguments[0];Te=new e(void 0,t).rehydrate()},e.prototype.clone=function(){var t=new e(this.target,this.forceServer);return this.clones.push(t),t.tags=this.tags.map(function(e){for(var r=e.getIds(),n=e.clone(),o=0;o<+~=|^:(),"'`-]+/g,Re=/(^-|-$)/g,Fe=/^((?:s(?:uppressContentEditableWarn|croll|pac)|(?:shape|image|text)Render|(?:letter|word)Spac|vHang|hang)ing|(?:on(?:AnimationIteration|C(?:o(?:mposition(?:Update|Start|End)|ntextMenu|py)|anPlayThrough|anPlay|hange|lick|ut)|(?:Animation|Touch|Load|Drag)Start|(?:(?:Duration|Volume|Rate)Chang|(?:MouseLea|(?:Touch|Mouse)Mo|DragLea)v|Paus)e|Loaded(?:Metad|D)ata|(?:(?:T(?:ransition|ouch)|Animation)E|Suspe)nd|DoubleClick|(?:TouchCanc|Whe)el|Lo(?:stPointer|ad)|TimeUpdate|(?:Mouse(?:Ent|Ov)e|Drag(?:Ent|Ov)e|Erro)r|GotPointer|MouseDown|(?:E(?:n(?:crypt|d)|mpti)|S(?:tall|eek))ed|KeyPress|(?:MouseOu|DragExi|S(?:elec|ubmi)|Rese|Inpu)t|P(?:rogress|laying)|DragEnd|Key(?:Down|Up)|(?:MouseU|Dro)p|(?:Wait|Seek)ing|Scroll|Focus|Paste|Abort|Drag|Play|Blur)Captur|alignmentBaselin|(?:limitingConeAng|xlink(?:(?:Arcr|R)o|Tit)|s(?:urfaceSca|ty|ca)|unselectab|baseProfi|fontSty|(?:focus|dragg)ab|multip|profi|tit)l|d(?:ominantBaselin|efaultValu)|onPointerLeav|a(?:uto(?:Capitaliz|Revers|Sav)|dditiv)|(?:(?:formNoValid|xlinkActu|noValid|accumul|rot)a|autoComple|decelera)t|(?:(?:attribute|item)T|datat)yp|onPointerMov|(?:attribute|glyph)Nam|playsInlin|(?:writing|input|edge)Mod|(?:formE|e)ncTyp|(?:amplitu|mo)d|(?:xlinkTy|itemSco|keyTy|slo)p|(?:xmlSpa|non)c|fillRul|(?:dateTi|na)m|r(?:esourc|ol)|xmlBas|wmod)e|(?:glyphOrientationHorizont|loc)al|(?:externalResourcesRequir|select|revers|mut)ed|c(?:o(?:lorInterpolationFilter|ord)s|o(?:lor(?:Interpolation)?|nt(?:rols|ent))|(?:ontentS(?:cript|tyle)Typ|o(?:ntentEditab|lorProfi)l|l(?:assNam|ipRul)|a(?:lcMod|ptur)|it)e|olorRendering|l(?:ipPathUnits|assID)|(?:ontrolsLis|apHeigh)t|h(?:eckedLink|a(?:llenge|rSet)|ildren|ecked)|ell(?:Spac|Padd)ing|o(?:ntextMenu|ls)|(?:rossOrigi|olSpa)n|l(?:ip(?:Path)?|ass)|ursor|[xy])|glyphOrientationVertical|d(?:angerouslySetInnerHTML|efaultChecked|ownload|isabled|isplay|[xy])|(?:s(?:trikethroughThickn|eaml)es|(?:und|ov)erlineThicknes|r(?:equiredExtension|adiu)|(?:requiredFeatur|tableValu|stitchTil|numOctav|filterR)e|key(?:(?:Splin|Tim)e|Param)|auto[Ff]ocu|header|bia)s|(?:(?:st(?:rikethroughPosi|dDevia)|(?:und|ov)erlinePosi|(?:textDecor|elev)a|orienta)tio|(?:strokeLinejo|orig)i|on(?:PointerDow|FocusI)|formActio|zoomAndPa|directio|(?:vers|act)io|rowSpa|begi|ico)n|o(?:n(?:AnimationIteration|C(?:o(?:mposition(?:Update|Start|End)|ntextMenu|py)|anPlayThrough|anPlay|hange|lick|ut)|(?:(?:Duration|Volume|Rate)Chang|(?:MouseLea|(?:Touch|Mouse)Mo|DragLea)v|Paus)e|Loaded(?:Metad|D)ata|(?:Animation|Touch|Load|Drag)Start|(?:(?:T(?:ransition|ouch)|Animation)E|Suspe)nd|DoubleClick|(?:TouchCanc|Whe)el|(?:Mouse(?:Ent|Ov)e|Drag(?:Ent|Ov)e|Erro)r|TimeUpdate|(?:E(?:n(?:crypt|d)|mpti)|S(?:tall|eek))ed|MouseDown|P(?:rogress|laying)|(?:MouseOu|DragExi|S(?:elec|ubmi)|Rese|Inpu)t|KeyPress|DragEnd|Key(?:Down|Up)|(?:Wait|Seek)ing|(?:MouseU|Dro)p|Scroll|Paste|Focus|Abort|Drag|Play|Load|Blur)|rient)|p(?:reserveAspectRatio|ointsAt[X-Z]|anose1)|(?:(?:allowPaymentReque|(?:fontSize|length)Adju|manife)s|strokeMiterlimi|(?:(?:specularE|e)xpon|renderingInt|asc)en|(?:specularConsta|repeatCou|fontVaria)n|d(?:iffuseConsta|esce)n|baselineShif|vectorEffec|onPointerOu|(?:(?:mar(?:ker|gin)|x)H|accentH|fontW)eigh|markerStar|a(?:utoCorrec|bou)|onFocusOu|intercep|restar|forma|inlis|heigh|lis)t|(?:patternContent|ma(?:sk(?:Content)?|rker)|primitive|gradient|pattern|filter)Units|(?:(?:allowTranspar|baseFrequ)enc|re(?:ferrerPolic|adOnl)|(?:(?:st(?:roke|op)O|floodO|fillO|o)pac|integr|secur)it|visibilit|fontFamil|accessKe|propert|summar)y|(?:gradientT|patternT|t)ransform|(?:(?:st(?:rokeDasho|artO)|o)ffs|acceptChars|formTarg|viewTarg|srcS)et|(?:[xy]ChannelSelect|lightingCol|textAnch|floodCol|stopCol|operat|htmlF)or|(?:(?:enableBackgrou|markerE)n|s(?:p(?:readMetho|ee)|ee)|formMetho|(?:markerM|onInval)i|preloa|metho|kin)d|k(?:ernel(?:UnitLength|Matrix)|[1-4])|strokeDasharray|(?:onPointerCanc|lab)el|(?:allowFullScre|hidd)en|a(?:l(?:lowUserMedia|phabetic|t)|rabicForm|sync)|systemLanguage|(?:(?:o(?:nPointer(?:Ent|Ov)|rd)|allowReord|placehold|frameBord|paintOrd|post)e|repeatDu|d(?:efe|u))r|(?:pointerEve|keyPoi)nts|preserveAlpha|(?:strokeLineca|onPointerU|itemPro|useMa|wra|loo)p|v(?:Mathematical|ert(?:Origin[XY]|AdvY)|alues|ocab)|unicodeRange|h(?:oriz(?:Origin|Adv)X|ttpEquiv)|(?:vI|i)deographic|mathematical|u(?:nicodeBidi|[12])|(?:fontStretc|hig)h|vAlphabetic|(?:(?:mar(?:ker|gin)W|strokeW)id|azimu)th|(?:xmlnsXl|valueL)ink|mediaGroup|spellCheck|(?:text|m(?:in|ax))Length|(?:unitsPerE|optimu|fro)m|r(?:adioGroup|e(?:sults|f[XY]|l)|ows|[xy])|pathLength|(?:xlinkHr|glyphR)ef|innerHTML|xlinkShow|f(?:o(?:ntSize|rm?)|il(?:ter|l))|(?:tabInde|(?:sand|b)bo|viewBo)x|autoPlay|r(?:e(?:quired|sult|f))?|(?:(?:href|xml|src)La|kerni)ng|o(?:verflow|pen)|i(?:temRef|n2|s)|p(?:attern|oints)|unicode|d(?:efault|ata|ir)?|divisor|t(?:arget[XY]|o)|(?:stri|la)ng|(?:width|size)s|prefix|typeof|srcDoc|s(?:coped|te(?:m[hv]|p)|pan)|s(?:t(?:roke|art)|hape|cope|rc)|a(?:ccept|llow|s)|itemID|t(?:arget|ype)|m(?:edia|a(?:sk|x)|in)|value|width|x(?:mlns)?|size|href|k(?:ey)?|end|low|by|x[12]|y[12]|g[12]|i[dn]|f[xy]|[yz])$/,Ne=RegExp.prototype.test.bind(new RegExp("^(x|data|aria)-[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$")),De=function(e){return Fe.test(e)||Ne(e.toLowerCase())},$e=function(e){function t(e){i=e;for(var t in o){var r=o[t];void 0!==r&&r(i)}}function r(e){var t=a;return o[t]=e,a+=1,e(i),t}function n(e){o[e]=void 0}var o={},a=0,i=e;return{publish:t,subscribe:r,unsubscribe:n}},Ge="__styled-components__",Le=Ge+"next__",ze=x.a.shape({getTheme:x.a.func,subscribe:x.a.func,unsubscribe:x.a.func}),Be=(Ee={},Ee[Ge]=x.a.func,Ee[Le]=ze,Ee),We=function(e){return"function"==typeof e},Ue=function(e){function t(){T(this,t);var r=I(this,e.call(this));return r.unsubscribeToOuterId=-1,r.getTheme=r.getTheme.bind(r),r}return E(t,e),t.prototype.componentWillMount=function(){var e=this,t=this.context[Le];void 0!==t&&(this.unsubscribeToOuterId=t.subscribe(function(t){e.outerTheme=t,void 0!==e.broadcast&&e.publish(e.props.theme)})),this.broadcast=$e(this.getTheme())},t.prototype.getChildContext=function(){var e,t=this;return j({},this.context,(e={},e[Le]={getTheme:this.getTheme,subscribe:this.broadcast.subscribe,unsubscribe:this.broadcast.unsubscribe},e[Ge]=function(e){var r=t.broadcast.subscribe(e);return function(){return t.broadcast.unsubscribe(r)}},e))},t.prototype.componentWillReceiveProps=function(e){this.props.theme!==e.theme&&this.publish(e.theme)},t.prototype.componentWillUnmount=function(){-1!==this.unsubscribeToOuterId&&this.context[Le].unsubscribe(this.unsubscribeToOuterId)},t.prototype.getTheme=function(e){var t=e||this.props.theme;if(We(t)){return t(this.outerTheme)}if(null===t||Array.isArray(t)||"object"!==(void 0===t?"undefined":O(t)))throw new M(8);return j({},this.outerTheme,t)},t.prototype.publish=function(e){this.broadcast.publish(this.getTheme(e))},t.prototype.render=function(){return this.props.children?m.a.Children.only(this.props.children):null},t}(h.Component);Ue.childContextTypes=Be,Ue.contextTypes=(Pe={},Pe[Le]=ze,Pe);var He,qe={},Ve=j({},Be,(He={},He[Z]=x.a.oneOfType([x.a.instanceOf(Ae),x.a.instanceOf(Ie)]),He)),Ye={},Ke=function(e,t,r){var n="string"!=typeof t?"sc":i(t),o=(Ye[n]||0)+1;Ye[n]=o;var a=n+"-"+e.generateName(n+o);return void 0!==r?r+"-"+a:a},Xe=function(){},Ze=function(e){function t(){var r,n,o;T(this,t);for(var a=arguments.length,i=Array(a),s=0;s2&&void 0!==arguments[2]?arguments[2]:Y;if(!Object(S.isValidElementType)(n))throw new M(1,String(n));var a=function(){return r(n,o,e.apply(void 0,arguments))};return a.withConfig=function(e){return t(r,n,j({},o,e))},a.attrs=function(e){return t(r,n,j({},o,{attrs:j({},o.attrs||Y,e)}))},a}}(K),st=function(e,t){return function r(n,o,a){var l=o.isClass,f=void 0===l?!c(n):l,d=o.displayName,p=void 0===d?u(n):d,h=o.componentId,m=void 0===h?Ke(e,o.displayName,o.parentComponentId):h,b=o.ParentComponent,g=void 0===b?Ze:b,y=o.rules,v=o.attrs,k=o.displayName&&o.componentId?i(o.displayName)+"-"+o.componentId:o.componentId||m,x=new e(void 0===y?a:y.concat(a),v,k),w=function(e){function u(){return T(this,u),I(this,e.apply(this,arguments))}return E(u,e),u.withComponent=function(e){var t=o.componentId,n=P(o,["componentId"]),l=t&&t+"-"+(c(e)?e:i(s(e))),f=j({},n,{componentId:l,ParentComponent:u});return r(e,f,a)},A(u,null,[{key:"extend",get:function(){var e=o.rules,i=o.componentId,s=P(o,["rules","componentId"]),c=void 0===e?a:e.concat(a),l=j({},s,{rules:c,parentComponentId:i,ParentComponent:u});return Xe(),t(r,n,l)}}]),u}(g);return w.attrs=v,w.componentStyle=x,w.contextTypes=Ve,w.displayName=p,w.styledComponentId=k,w.target=n,f&&C()(w,n,{attrs:!0,componentStyle:!0,displayName:!0,extend:!0,styledComponentId:!0,target:!0,warnTooManyClasses:!0,withComponent:!0}),w}}(at,it),ct=function(e,t,r){return function(){var n=Ae.master,o=r.apply(void 0,arguments),a=e(f(rt(JSON.stringify(o)))),i="sc-keyframes-"+a;return n.hasNameForId(i,a)||n.inject(i,t(o,a,"@keyframes"),a),a}}(H,B,K),ut=function(e,t){return function(){var r=Ae.master,n=t.apply(void 0,arguments),o=f(JSON.stringify(n)),a="sc-global-"+o;r.hasId(a)||r.inject(a,e(n))}}(B,K),lt=function(e,t){var r=function(r){return t(e,r)};return tt.forEach(function(e){r[e]=r(e)}),r}(st,it);t.default=lt}.call(t,r(9),r(10)(e))},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={colors:{themeDefault:"#647EEC",themeDark:"#3758E6",themeWhiteBase:"#FFFFFF",blueGradientStart:"#667EEA",blueGradientEnd:"#764BA2",greenGradientStart:"#90F7EC",greenGradientEnd:"#3BB2B8",pinkGradientStart:"#F85D80",pinkGradientEnd:"#717FF4",borderColor:"#E3E3E3"},button:{paddingBaseVertical:"7px",paddingBaseHorizontal:"24px",borderRadius:"25px"}}},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.Card=t.Button=void 0;var o=r(2),a=n(o),i=r(18),s=n(i);t.Button=a.default,t.Card=s.default},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=function(){function e(e,t){for(var r=0;r1)for(var r=1;r0&&(ie=ie.replace(g,"")),ie.trim().length>0)){switch(C){case ne:case te:case q:case ee:case Q:break;default:ie+=o.charAt(R)}C=q}if(1===N)switch(C){case Y:case V:case q:case fe:case le:case K:case X:case ce:N=0;case te:case ee:case Q:case ne:break;default:for(N=0,G=R,x=C,R--,C=q;G0&&(++R,C=x);case Y:G=L}}switch(C){case Y:for(ie=ie.trim(),x=ie.charCodeAt(0),A=1,G=++R;R0&&(ie=ie.replace(g,"")),w=ie.charCodeAt(1)){case Te:case ke:case xe:case ae:p=t;break;default:p=De}if(Me=r(t,p,Me,w,d+1),G=Me.length,Ne>0&&0===G&&(G=ie.length),Ge>0&&(p=n(De,ie,$),h=l(qe,Me,p,t,Ee,je,G,w,d,c),ie=p.join(""),void 0!==h&&0===(G=(Me=h.trim()).length)&&(w=0,Me="")),G>0)switch(w){case xe:ie=ie.replace(D,s);case Te:case ke:case ae:Me=ie+"{"+Me+"}";break;case ve:ie=ie.replace(j,"$1 $2"+(Ye>0?Ke:"")),Me=ie+"{"+Me+"}",Me=1===_e||2===_e&&i("@"+Me,3)?"@"+W+Me+"@"+Me:"@"+Me;break;default:Me=ie+Me,c===Ae&&(Re+=Me,Me="")}else Me="";break;default:Me=r(t,n(t,ie,$),Me,c,d+1)}$e+=Me,I=0,N=0,M=0,F=0,$=0,_=0,ie="",Me="",C=o.charCodeAt(++R);break;case V:case q:if(ie=(F>0?ie.replace(g,""):ie).trim(),(G=ie.length)>1)switch(0===M&&((x=ie.charCodeAt(0))===ae||x>96&&x<123)&&(G=(ie=ie.replace(" ",":")).length),Ge>0&&void 0!==(h=l(Ue,ie,t,e,Ee,je,Re.length,c,d,c))&&0===(G=(ie=h.trim()).length)&&(ie="\0\0"),x=ie.charCodeAt(0),w=ie.charCodeAt(1),x){case be:break;case re:if(w===Se||w===Oe){Le+=ie+o.charAt(R);break}default:if(ie.charCodeAt(G-1)===ue)break;Re+=a(ie,x,w,ie.charCodeAt(2))}I=0,N=0,M=0,F=0,$=0,ie="",C=o.charCodeAt(++R)}}switch(C){case ee:case Q:if(y+k+v+m+Fe===0)switch(T){case X:case le:case fe:case re:case me:case pe:case se:case he:case de:case ae:case ue:case ce:case q:case Y:case V:break;default:M>0&&(N=1)}y===de?y=0:Ie+I===0&&c!==ve&&ie.length>0&&(F=1,ie+="\0"),Ge*Ve>0&&l(We,ie,t,e,Ee,je,Re.length,c,d,c),je=1,Ee++;break;case q:case V:if(y+k+v+m===0){je++;break}default:switch(je++,B=o.charAt(R),C){case te:case ne:if(k+m+y===0)switch(S){case ce:case ue:case te:case ne:B="";break;default:C!==ne&&(B=" ")}break;case be:B="\\0";break;case ge:B="\\f";break;case ye:B="\\v";break;case oe:k+y+m===0&&Ie>0&&($=1,F=1,B="\f"+B);break;case 108:if(k+y+m+Pe===0&&M>0)switch(R-M){case 2:S===we&&o.charCodeAt(R-3)===ue&&(Pe=S);case 8:O===Ce&&(Pe=O)}break;case ue:k+y+m===0&&(M=R);break;case ce:y+v+k+m===0&&(F=1,B+="\r");break;case fe:case le:0===y&&(k=k===C?0:0===k?C:k);break;case Z:k+y+v===0&&m++;break;case J:k+y+v===0&&m--;break;case X:k+y+m===0&&v--;break;case K:if(k+y+m===0){if(0===I)switch(2*S+3*O){case 533:break;default:A=0,I=1}v++}break;case re:y+v+k+m+M+_===0&&(_=1);break;case se:case de:if(k+m+v>0)break;switch(y){case 0:switch(2*C+3*o.charCodeAt(R+1)){case 235:y=de;break;case 220:G=R,y=se}break;case se:C===de&&S===se&&G+2!==R&&(33===o.charCodeAt(G+2)&&(Re+=o.substring(G,R+1)),B="",y=0)}}if(0===y){if(Ie+k+m+_===0&&c!==ve&&C!==q)switch(C){case ce:case me:case pe:case he:case X:case K:if(0===I){switch(S){case te:case ne:case Q:case ee:B+="\0";break;default:B="\0"+B+(C===ce?"":"\0")}F=1}else switch(C){case K:M+7===R&&108===S&&(M=0),I=++A;break;case X:0==(I=--A)&&(F=1,B+="\0")}break;case te:case ne:switch(S){case be:case Y:case V:case q:case ce:case ge:case te:case ne:case Q:case ee:break;default:0===I&&(F=1,B+="\0")}}ie+=B,C!==ne&&C!==te&&(T=C)}}O=S,S=C,R++}if(G=Re.length,Ne>0&&0===G&&0===$e.length&&0===t[0].length==!1&&(c!==ke||1===t.length&&(Ie>0?Xe:Ze)===t[0])&&(G=t.join(",").length+2),G>0){if(p=0===Ie&&c!==ve?u(t):t,Ge>0&&void 0!==(h=l(He,Re,p,e,Ee,je,G,c,d,c))&&0===(Re=h).length)return Le+Re+$e;if(Re=p.join(",")+"{"+Re+"}",_e*Pe!=0){switch(2!==_e||i(Re,2)||(Pe=0),Pe){case Ce:Re=Re.replace(P,":"+U+"$1")+Re;break;case we:Re=Re.replace(E,"::"+W+"input-$1")+Re.replace(E,"::"+U+"$1")+Re.replace(E,":"+H+"input-$1")+Re}Pe=0}}return Le+Re+$e}function n(e,t,r){var n=t.trim().split(S),a=n,i=n.length,s=e.length;switch(s){case 0:case 1:for(var c=0,u=0===s?"":e[0]+" ";c0&&Ie>0)return o.replace(T,"$1").replace(O,"$1"+Ze);break;default:return e.trim()+o.replace(O,"$1"+e.trim())}default:if(r*Ie>0&&o.indexOf("\f")>0)return o.replace(O,(e.charCodeAt(0)===ue?"":"$1")+e.trim())}return e+o}function a(e,t,r,n){var o,s=0,u=e+";",l=2*t+3*r+4*n;if(944===l)return c(u);if(0===_e||2===_e&&!i(u,1))return u;switch(l){case 1015:return 97===u.charCodeAt(10)?W+u+u:u;case 951:return 116===u.charCodeAt(3)?W+u+u:u;case 963:return 110===u.charCodeAt(5)?W+u+u:u;case 1009:if(100!==u.charCodeAt(4))break;case 969:case 942:return W+u+u;case 978:return W+u+U+u+u;case 1019:case 983:return W+u+U+u+H+u+u;case 883:return u.charCodeAt(8)===ae?W+u+u:u.indexOf("image-set(",11)>0?u.replace(B,"$1"+W+"$2")+u:u;case 932:if(u.charCodeAt(4)===ae)switch(u.charCodeAt(5)){case 103:return W+"box-"+u.replace("-grow","")+W+u+H+u.replace("grow","positive")+u;case 115:return W+u+H+u.replace("shrink","negative")+u;case 98:return W+u+H+u.replace("basis","preferred-size")+u}return W+u+H+u+u;case 964:return W+u+H+"flex-"+u+u;case 1023:if(99!==u.charCodeAt(8))break;return o=u.substring(u.indexOf(":",15)).replace("flex-","").replace("space-between","justify"),W+"box-pack"+o+W+u+H+"flex-pack"+o+u;case 1005:return v.test(u)?u.replace(y,":"+W)+u.replace(y,":"+U)+u:u;case 1e3:switch(o=u.substring(13).trim(),s=o.indexOf("-")+1,o.charCodeAt(0)+o.charCodeAt(s)){case 226:o=u.replace(N,"tb");break;case 232:o=u.replace(N,"tb-rl");break;case 220:o=u.replace(N,"lr");break;default:return u}return W+u+H+o+u;case 1017:if(-1===u.indexOf("sticky",9))return u;case 975:switch(s=(u=e).length-10,o=(33===u.charCodeAt(s)?u.substring(0,s):u).substring(e.indexOf(":",7)+1).trim(),l=o.charCodeAt(0)+(0|o.charCodeAt(7))){case 203:if(o.charCodeAt(8)<111)break;case 115:u=u.replace(o,W+o)+";"+u;break;case 207:case 102:u=u.replace(o,W+(l>102?"inline-":"")+"box")+";"+u.replace(o,W+o)+";"+u.replace(o,H+o+"box")+";"+u}return u+";";case 938:if(u.charCodeAt(5)===ae)switch(u.charCodeAt(6)){case 105:return o=u.replace("-items",""),W+u+W+"box-"+o+H+"flex-"+o+u;case 115:return W+u+H+"flex-item-"+u.replace(G,"")+u;default:return W+u+H+"flex-line-pack"+u.replace("align-content","").replace(G,"")+u}break;case 973:case 989:if(u.charCodeAt(3)!==ae||122===u.charCodeAt(4))break;case 931:case 953:if(!0===z.test(e))return 115===(o=e.substring(e.indexOf(":")+1)).charCodeAt(0)?a(e.replace("stretch","fill-available"),t,r,n).replace(":fill-available",":stretch"):u.replace(o,W+o)+u.replace(o,U+o.replace("fill-",""))+u;break;case 962:if(u=W+u+(102===u.charCodeAt(5)?H+u:"")+u,r+n===211&&105===u.charCodeAt(13)&&u.indexOf("transform",10)>0)return u.substring(0,u.indexOf(";",27)+1).replace(k,"$1"+W+"$2")+u}return u}function i(e,t){var r=e.indexOf(1===t?":":"{"),n=e.substring(0,3!==t?r:10),o=e.substring(r+1,e.length-1);return Le(2!==t?n:n.replace(L,"$1"),o,t)}function s(e,t){var r=a(t,t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2));return r!==t+";"?r.replace($," or ($1)").substring(4):"("+t+")"}function c(e){var t=e.length,r=e.indexOf(":",9)+1,n=e.substring(0,r).trim(),o=e.substring(r,t-1).trim();switch(e.charCodeAt(9)*Ye){case 0:break;case ae:if(110!==e.charCodeAt(10))break;default:for(var a=o.split((o="",x)),s=0,r=0,t=a.length;sre&&l<90||l>96&&l<123||l===ie||l===ae&&c.charCodeAt(1)!==ae))switch(isNaN(parseFloat(c))+(-1!==c.indexOf("("))){case 1:switch(c){case"infinite":case"alternate":case"backwards":case"running":case"normal":case"forwards":case"both":case"none":case"linear":case"ease":case"ease-in":case"ease-out":case"ease-in-out":case"paused":case"reverse":case"alternate-reverse":case"inherit":case"initial":case"unset":case"step-start":case"step-end":break;default:c+=Ke}}u[r++]=c}o+=(0===s?"":",")+u.join(" ")}}return o=n+o+";",1===_e||2===_e&&i(o,1)?W+o+o:o}function u(e){for(var t,r,n=0,o=e.length,a=Array(o);n1)){if(l=s.charCodeAt(s.length-1),f=r.charCodeAt(0),t="",0!==c)switch(l){case se:case me:case pe:case he:case ne:case K:break;default:t=" "}switch(f){case oe:r=t+Xe;case me:case pe:case he:case ne:case X:case K:break;case Z:r=t+r+Xe;break;case ue:switch(2*r.charCodeAt(1)+3*r.charCodeAt(2)){case 530:if(Me>0){r=t+r.substring(8,u-1);break}default:(c<1||i[c-1].length<1)&&(r=t+Xe+r)}break;case ce:t="";default:r=u>1&&r.indexOf(":")>0?t+r.replace(F,"$1"+Xe+"$2"):t+r+Xe}s+=r}a[n]=s.replace(g,"").trim()}return a}function l(e,t,r,n,o,a,i,s,c,u){for(var l,f=0,d=t;f0&&(Ke=o.replace(A,a===Z?"":"-")),a=1,1===Ie?Ze=o:Xe=o;var i,s=[Ze];Ge>0&&void 0!==(i=l(Be,n,s,s,Ee,je,0,0,0,0))&&"string"==typeof i&&(n=i);var c=r(De,s,n,0,0);return Ge>0&&void 0!==(i=l(ze,c,s,s,Ee,je,c.length,0,0,0))&&"string"!=typeof(c=i)&&(a=0),Ke="",Ze="",Xe="",Pe=0,Ee=1,je=1,Re*a==0?c:d(c)}var b=/^\0+/g,g=/[\0\r\f]/g,y=/: */g,v=/zoo|gra/,k=/([,: ])(transform)/g,x=/,+\s*(?![^(]*[)])/g,w=/ +\s*(?![^(]*[)])/g,C=/ *[\0] */g,S=/,\r+?/g,O=/([\t\r\n ])*\f?&/g,T=/:global\(((?:[^\(\)\[\]]*|\[.*\]|\([^\(\)]*\))*)\)/g,A=/\W+/g,j=/@(k\w+)\s*(\S*)\s*/,E=/::(place)/g,P=/:(read-only)/g,I=/\s+(?=[{\];=:>])/g,_=/([[}=:>])\s+/g,M=/(\{[^{]+?);(?=\})/g,R=/\s{2,}/g,F=/([^\(])(:+) */g,N=/[svh]\w+-[tblr]{2}/,D=/\(\s*(.*)\s*\)/g,$=/([\s\S]*?);/g,G=/-self|flex-/g,L=/[^]*?(:[rp][el]a[\w-]+)[^]*/,z=/stretch|:\s*\w+\-(?:conte|avail)/,B=/([^-])(image-set\()/,W="-webkit-",U="-moz-",H="-ms-",q=59,V=125,Y=123,K=40,X=41,Z=91,J=93,Q=10,ee=13,te=9,re=64,ne=32,oe=38,ae=45,ie=95,se=42,ce=44,ue=58,le=39,fe=34,de=47,pe=62,he=43,me=126,be=0,ge=12,ye=11,ve=107,ke=109,xe=115,we=112,Ce=111,Se=105,Oe=99,Te=100,Ae=112,je=1,Ee=1,Pe=0,Ie=1,_e=1,Me=1,Re=0,Fe=0,Ne=0,De=[],$e=[],Ge=0,Le=null,ze=-2,Be=-1,We=0,Ue=1,He=2,qe=3,Ve=0,Ye=1,Ke="",Xe="",Ze="";return m.use=p,m.set=h,void 0!==t&&h(t),m})},function(e,t,r){!function(t){e.exports=t()}(function(){"use strict";return function(e){function t(t){if(t)try{e(t+"}")}catch(e){}}return function(r,n,o,a,i,s,c,u,l,f){switch(r){case 1:if(0===l&&64===n.charCodeAt(0))return e(n+";"),"";break;case 2:if(0===u)return n+"/*|*/";break;case 3:switch(u){case 102:case 112:return e(o[0]+n),"";default:return n+(0===f?"/*|*/":"")}case-2:n.split("/*|*/}").forEach(t)}}}})},function(e,t,r){"use strict";function n(e,t,r){if("string"!=typeof t){if(f){var d=l(t);d&&d!==f&&n(e,d,r)}var p=s(t);c&&(p=p.concat(c(t)));for(var h=0;h a {\n text-decoration: underline;\n color: #000000;\n &:hover {\n cursor: pointer;\n }\n }\n"],["\n margin: 10px 0;\n font-size: 16px;\n color: #646464;\n\n > a {\n text-decoration: underline;\n color: #000000;\n &:hover {\n cursor: pointer;\n }\n }\n"]),p=s(["\n margin: 10px 0;\n"],["\n margin: 10px 0;\n"]),h=s(["\n display: inline-block;\n padding: 0.25em 0.4em;\n font-size: 75%;\n color: #ffffff;\n border-radius: 0.25rem;\n text-align: center;\n font-weight: bold;\n margin-right: 3px;\n background-color: ",";\n"],["\n display: inline-block;\n padding: 0.25em 0.4em;\n font-size: 75%;\n color: #ffffff;\n border-radius: 0.25rem;\n text-align: center;\n font-weight: bold;\n margin-right: 3px;\n background-color: ",";\n"]),m=s(["\n margin: 10px 10px 5px 0;\n color: #bfbfbf;\n font-size: 14px;\n"],["\n margin: 10px 10px 5px 0;\n color: #bfbfbf;\n font-size: 14px;\n"]),b=s(["\n border-top-left-radius: 5px;\n border-top-right-radius: 5px;\n width: 100%;\n"],["\n border-top-left-radius: 5px;\n border-top-right-radius: 5px;\n width: 100%;\n"]),g=s(["\n padding: 10px 15px;\n"],["\n padding: 10px 15px;\n"]),y=r(0),v=n(y),k=r(1),x=n(k),w=r(3),C=n(w),S=r(4),O=n(S),T=r(2),A=n(T),j={title:x.default.string.isRequired,borderNone:x.default.bool,body:x.default.string,click:x.default.func,categories:x.default.arrayOf(x.default.string),timeStamp:x.default.string,img:x.default.string,alt:x.default.string},E={borderNone:!0,categories:[],alt:""},P=C.default.div(u,function(e){return e.theme.colors.themeWhiteBase},function(e){return e.borderNone?"none":"1px solid "+e.theme.colors.borderColor},function(e){switch(e.themeColor){case"blueGradient":return"8px solid "+e.theme.colors.blueGradientStart;case"greenGradient":return"8px solid "+e.theme.colors.greenGradientStart;case"pinkGradient":return"8px solid "+e.theme.colors.pinkGradientStart}},function(e){return e.onClick&&(0,w.css)(l)}),I=C.default.div(f),_=C.default.div(d),M=C.default.div(p),R=C.default.span(h,function(e){switch(e.themeColor){case"blueGradient":return""+e.theme.colors.blueGradientEnd;case"greenGradient":return""+e.theme.colors.greenGradientEnd;case"pinkGradient":return""+e.theme.colors.pinkGradientStart}}),F=C.default.span(m),N=C.default.img(b),D=C.default.div(g),$=function(e){function t(){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return i(t,e),c(t,[{key:"render",value:function(){var e=this.props,t=e.title,r=e.children,n=e.click,o=e.theme,a=e.borderNone,i=e.categories,s=e.timeStamp,c=e.showButton,u=e.buttonText,l=e.img,f=e.alt;return v.default.createElement(w.ThemeProvider,{theme:O.default},v.default.createElement(P,{themeColor:o,onClick:n,borderNone:a},l&&v.default.createElement(N,{src:l,alt:f}),v.default.createElement(D,null,t&&v.default.createElement(I,null,t),s&&v.default.createElement(F,null,s),i.map(function(e,t){return v.default.createElement(R,{themeColor:o,key:t},e)}),v.default.createElement(_,null,r),c&&v.default.createElement(M,null,v.default.createElement(A.default,{text:u,theme:o,click:n})))))}}]),t}(v.default.Component);$.propTypes=j,$.defaultProps=E,t.default=$}])}); \ No newline at end of file diff --git a/src/components/Button/Button.js b/src/components/Button/Button.js index 98729df..624363d 100644 --- a/src/components/Button/Button.js +++ b/src/components/Button/Button.js @@ -1,8 +1,8 @@ -import React from 'react'; -import PropTypes from 'prop-types'; -import styled, { ThemeProvider } from 'styled-components'; +import React from "react"; +import PropTypes from "prop-types"; +import styled, { ThemeProvider } from "styled-components"; -import commonTheme from '../../theme/eurekaui-theme'; +import commonTheme from "../../theme/eurekaui-theme"; const propTypes = { /** @@ -16,7 +16,7 @@ const propTypes = { /** * Click event handler */ - click: PropTypes.func.isRequired + click: PropTypes.func.isRequired, }; const SButton = styled.button` @@ -29,41 +29,41 @@ const SButton = styled.button` background-image: none; border: none; white-space: nowrap; - margin: 0 2px; - padding: ${props => `${props.theme.button.paddingBaseVertical} ${props.theme.button.paddingBaseHorizontal}` }; - background-image: ${props => { - switch(props.themeColor) { - case 'blueGradient': + padding: ${(props) => + `${props.theme.button.paddingBaseVertical} ${props.theme.button.paddingBaseHorizontal}`}; + background-image: ${(props) => { + switch (props.themeColor) { + case "blueGradient": return `linear-gradient(135deg, ${props.theme.colors.blueGradientStart}, ${props.theme.colors.blueGradientEnd})`; break; - case 'greenGradient': + case "greenGradient": return `linear-gradient(135deg, ${props.theme.colors.greenGradientStart}, ${props.theme.colors.greenGradientEnd})`; break; - case 'pinkGradient': + case "pinkGradient": return `linear-gradient(135deg, ${props.theme.colors.pinkGradientStart}, ${props.theme.colors.pinkGradientEnd})`; break; default: return `linear-gradient(135deg, ${props.theme.colors.themeDefault}, ${props.theme.colors.themeDefault})`; } }}; - color: ${props => props.theme.colors.themeWhiteBase}; - border-radius: ${props => props.theme.button.borderRadius}; - font-size: 18px; + color: ${(props) => props.theme.colors.themeWhiteBase}; + border-radius: ${(props) => props.theme.button.borderRadius}; + font-size: 16px; font-family: inherit; &:focus, &:active, &:hover { outline: none; - background-image: ${props => { - switch(props.themeColor) { - case 'blueGradient': + background-image: ${(props) => { + switch (props.themeColor) { + case "blueGradient": return `linear-gradient(135deg, ${props.theme.colors.blueGradientEnd}, ${props.theme.colors.blueGradientStart})`; break; - case 'greenGradient': + case "greenGradient": return `linear-gradient(135deg, ${props.theme.colors.greenGradientEnd}, ${props.theme.colors.greenGradientStart})`; break; - case 'pinkGradient': + case "pinkGradient": return `linear-gradient(135deg, ${props.theme.colors.pinkGradientEnd}, ${props.theme.colors.pinkGradientStart})`; break; default: @@ -84,12 +84,17 @@ class Button extends React.Component { return ( - this.buttonClick(event)} themeColor={theme}>{text} + this.buttonClick(event)} + themeColor={theme} + > + {text} + - ) + ); } } Button.propTypes = propTypes; -export default Button; \ No newline at end of file +export default Button; diff --git a/src/components/Card/Card.js b/src/components/Card/Card.js index 581e1b7..dd9835b 100644 --- a/src/components/Card/Card.js +++ b/src/components/Card/Card.js @@ -1,9 +1,9 @@ -import React from 'react'; -import PropTypes from 'prop-types'; -import styled, { ThemeProvider, css } from 'styled-components'; +import React from "react"; +import PropTypes from "prop-types"; +import styled, { ThemeProvider, css } from "styled-components"; -import commonTheme from '../../theme/eurekaui-theme'; -import Button from '../Button'; +import commonTheme from "../../theme/eurekaui-theme"; +import Button from "../Button"; const propTypes = { /** @@ -37,48 +37,52 @@ const propTypes = { /** * alt prop for image */ - alt: PropTypes.string, + alt: PropTypes.string, }; const defaultProps = { borderNone: true, categories: [], - alt: '', + alt: "", }; const SCard = styled.div` - background-color: ${props => props.theme.colors.themeWhiteBase}; + background-color: ${(props) => props.theme.colors.themeWhiteBase}; border-radius: 5px; - transition: all .5s; + transition: all 0.5s; margin: 12px 0; - border: ${props => props.borderNone ? 'none' : `1px solid ${props.theme.colors.borderColor}`}; - border-top: ${props => { - switch(props.themeColor) { - case 'blueGradient': + border: ${(props) => + props.borderNone ? "none" : `1px solid ${props.theme.colors.borderColor}`}; + border-top: ${(props) => { + switch (props.themeColor) { + case "blueGradient": return `8px solid ${props.theme.colors.blueGradientStart}`; - case 'greenGradient': + case "greenGradient": return `8px solid ${props.theme.colors.greenGradientStart}`; - case 'pinkGradient': + case "pinkGradient": return `8px solid ${props.theme.colors.pinkGradientStart}`; } }}; - ${props => props.onClick && css` - &:hover { - cursor: pointer; - box-shadow: 0 4px 6px 0px hsla(0, 0%, 0%, 0.2); - }`} + ${(props) => + props.onClick && + css` + &:hover { + cursor: pointer; + box-shadow: 0 4px 6px 0px hsla(0, 0%, 0%, 0.2); + } + `} `; const SCardTitle = styled.div` - font-size: 20px; + font-size: 18px; font-weight: bold; - margin: 20px 0; + margin: 10px 0; `; const SCardBody = styled.div` - margin: 20px 0; - font-size: 20px; + margin: 10px 0; + font-size: 16px; color: #646464; > a { @@ -98,18 +102,18 @@ const SCardCategory = styled.span` display: inline-block; padding: 0.25em 0.4em; font-size: 75%; - color: #FFFFFF; + color: #ffffff; border-radius: 0.25rem; text-align: center; font-weight: bold; margin-right: 3px; - background-color: ${props => { - switch(props.themeColor) { - case 'blueGradient': + background-color: ${(props) => { + switch (props.themeColor) { + case "blueGradient": return `${props.theme.colors.blueGradientEnd}`; - case 'greenGradient': + case "greenGradient": return `${props.theme.colors.greenGradientEnd}`; - case 'pinkGradient': + case "pinkGradient": return `${props.theme.colors.pinkGradientStart}`; } }}; @@ -117,7 +121,8 @@ const SCardCategory = styled.span` const SCardTimestamp = styled.span` margin: 10px 10px 5px 0; - color: #BFBFBF; + color: #bfbfbf; + font-size: 14px; `; const SCardImg = styled.img` @@ -127,40 +132,51 @@ const SCardImg = styled.img` `; const SCardPadder = styled.div` - padding: 15px 25px; + padding: 10px 15px; `; class Card extends React.Component { render() { - const { title, children, click, theme, borderNone, categories, timeStamp, - showButton, buttonText, img, alt } = this.props; + const { + title, + children, + click, + theme, + borderNone, + categories, + timeStamp, + showButton, + buttonText, + img, + alt, + } = this.props; return ( - { - img && - } + {img && } - {title} - { - timeStamp && { timeStamp } - } - { - categories.map((category, idx) => {category}) - } + {title && {title}} + {timeStamp && {timeStamp}} + {categories.map((category, idx) => ( + + {category} + + ))} {children} - { - showButton && (