-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathcomponent---src-templates-blog-post-js-bcb5ff7f00ff7ef654ce.js
2 lines (2 loc) · 10.6 KB
/
component---src-templates-blog-post-js-bcb5ff7f00ff7ef654ce.js
1
2
(window.webpackJsonp=window.webpackJsonp||[]).push([[11],{RPjP:function(e,t,n){"use strict";e.exports=n("SLms")},SLms:function(e,t,n){"use strict";n("sC2a"),n("JHok"),n("wZFJ"),n("rzGZ"),n("Dq+y"),n("8npG"),n("Ggvi"),n("U6Bt"),n("sc67"),n("LagC"),n("pS08"),n("E5k/"),n("R48M"),Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=s(n("q1tI")),o=s(n("17x9"));function s(e){return e&&e.__esModule?e:{default:e}}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(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}var c=["shortname","identifier","title","url","category_id","onNewComment","language"],d=!1;function m(e,t){var n=t.onNewComment,r=t.language,a=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(t,["onNewComment","language"]);for(var i in a)e.page[i]=a[i];e.language=r,n&&(e.callbacks={onNewComment:[n]})}var f=function(e){function t(){return u(this,t),l(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(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)}(t,e),a(t,[{key:"componentDidMount",value:function(){this.loadDisqus()}},{key:"componentDidUpdate",value:function(){this.loadDisqus()}},{key:"shouldComponentUpdate",value:function(e,t){return e.identifier!==this.props.identifier}},{key:"render",value:function(){var e=this,t=Object.keys(this.props).reduce((function(t,n){return c.some((function(e){return e===n}))?t:r({},t,function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},n,e.props[n]))}),{});return i.default.createElement("div",t,i.default.createElement("div",{id:"disqus_thread"}))}},{key:"addDisqusScript",value:function(){if(!d){var e=this.disqus=document.createElement("script"),t=document.getElementsByTagName("head")[0]||document.getElementsByTagName("body")[0];e.async=!0,e.type="text/javascript",e.src="//"+this.props.shortname+".disqus.com/embed.js",t.appendChild(e),d=!0}}},{key:"loadDisqus",value:function(){var e=this,t={};c.forEach((function(n){"shortname"!==n&&e.props[n]&&(t[n]=e.props[n])})),"undefined"!=typeof DISQUS?DISQUS.reset({reload:!0,config:function(){m(this,t),this.page.url=this.page.url.replace(/#/,"")+"#!newthread"}}):(window.disqus_config=function(){m(this,t)},this.addDisqusScript())}}]),t}(i.default.Component);f.displayName="DisqusThread",f.propTypes={id:o.default.string,shortname:o.default.string.isRequired,identifier:o.default.string,title:o.default.string,url:o.default.string,category_id:o.default.string,onNewComment:o.default.func,language:o.default.string},f.defaultProps={url:"undefined"==typeof window?null:window.location.href},t.default=f},k0kL:function(e,t,n){"use strict";n.d(t,"d",(function(){return v})),n.d(t,"e",(function(){return b})),n.d(t,"c",(function(){return y})),n.d(t,"b",(function(){return w})),n.d(t,"a",(function(){return k}));var r=n("vOnD"),a=n("ibEc");function i(){var e=h(["\n padding: 0;\n "]);return i=function(){return e},e}function o(){var e=h(["\n font-size: 1.125rem;\n "]);return o=function(){return e},e}function s(){var e=h(["\n font-size: 1.375rem;\n "]);return s=function(){return e},e}function u(){var e=h(["\n font-size: 1.875rem;\n "]);return u=function(){return e},e}function l(){var e=h(["\n padding: 0 1rem;\n "]);return l=function(){return e},e}function c(){var e=h(["\n padding: 0 1rem;\n word-break: break-word;\n "]);return c=function(){return e},e}function d(){var e=h(["\n padding: 2rem 0;\n max-width: 100%;\n "]);return d=function(){return e},e}function m(){var e=h(["\n padding: 0 1rem;\n "]);return m=function(){return e},e}function f(){var e=h(["\n font-size: 1.6rem;\n line-height: 1.3;\n padding: 0 1rem;\n "]);return f=function(){return e},e}function p(){var e=h(["\n font-size: 2.8rem;\n line-height: 1.1;\n padding: 0 1rem;\n "]);return p=function(){return e},e}function g(){var e=h(["\n padding: 3rem 0 0;\n max-width: 100%;\n "]);return g=function(){return e},e}function h(e,t){return t||(t=e.slice(0)),e.raw=t,e}var v=r.c.header.withConfig({displayName:"base__PostHeader",componentId:"sc-17fg8w0-0"})(["color:var(--postColor);margin:auto;max-width:70rem;padding:5rem 5rem 0;",""],a.a.lessThan("large")(g())),b=r.c.h1.withConfig({displayName:"base__PostTitle",componentId:"sc-17fg8w0-1"})(["font-size:4rem;font-weight:700;padding:0 1.4rem;margin:1rem auto;",""],a.a.lessThan("large")(p())),y=r.c.h2.withConfig({displayName:"base__PostDescription",componentId:"sc-17fg8w0-2"})(["font-size:2rem;font-weight:200;padding:0 1.4rem;",""],a.a.lessThan("large")(f())),w=r.c.p.withConfig({displayName:"base__PostDate",componentId:"sc-17fg8w0-3"})(["font-size:1.1rem;font-weight:100;padding:0 1.4rem;",""],a.a.lessThan("large")(m())),k=r.c.section.withConfig({displayName:"base__MainContent",componentId:"sc-17fg8w0-4"})(["margin:auto;max-width:70rem;padding:2rem 5rem;"," p,h1,h2,h3,h4,ul,ol,.tags,iframe,.button-post{color:var(--postColor);font-size:1.25rem;font-weight:300;line-height:1.7;letter-spacing:0.069rem;padding:0 1.4rem;","}p{margin:0 auto 1.6rem;}h1,h2,h3,h4,h5{margin:2.4rem auto 1rem;}ul,ol{list-style:disc;padding-left:2.5rem;margin:0 auto 1.6rem;}li{padding:0.625rem 0;& > ul{margin-bottom:0;}}p,li{code{word-wrap:break-word;}}img{display:block;max-width:100%;margin:1.875rem auto;}iframe{padding:0 1.6rem 1.6rem;width:100%;","}blockquote{color:var(--postColor);border-left:0.3rem solid var(--highlight);padding:0 1.875rem;margin:3.125rem auto;}hr{border:1px solid var(--borders);margin:3rem auto;}#twitter-widget-0,.instagram-media,.twitter-tweet{margin:20px auto !important;}h1,h2,h3,h4,h5{font-weight:800;letter-spacing:0.069rem;line-height:1.4;}h1{font-size:2.8rem;","}h2{font-size:2.1rem;","}h3{font-size:1.6rem;","}h4{font-size:1.4rem;}h5{font-size:1.2rem;}strong{font-weight:700;}.gatsby-resp-image-background-image{z-index:2;opacity:1 !important;}.gatsby-resp-image-image{box-shadow:none !important;transition:opacity 0.2s;&.lazyload{opacity:0;}&.lazyloaded{opacity:1;z-index:3;}}.gatsby-highlight{padding:0 1.6rem 1.6rem;","}.instagram-media{margin:1rem auto !important;}a{border-bottom:1px dashed var(--highlight);color:var(--highlight);text-decoration:none;transition:opacity 0.5s;svg{color:var(--postColor);}&:hover{opacity:0.8;}}"],a.a.lessThan("large")(d()),a.a.lessThan("large")(c()),a.a.lessThan("large")(l()),a.a.lessThan("large")(u()),a.a.lessThan("large")(s()),a.a.lessThan("large")(o()),a.a.lessThan("large")(i()))},yZlL:function(e,t,n){"use strict";n.r(t),n.d(t,"query",(function(){return T}));var r=n("q1tI"),a=n.n(r),i=n("Zttt"),o=n("9CUm"),s=n("0b+E"),u=n("vOnD"),l=n("ibEc"),c=n("kOA+"),d=n.n(c),m=n("zktJ");function f(){var e=function(e,t){t||(t=e.slice(0));return e.raw=t,e}(["\n padding: 2rem 1rem;\n line-height: 1.3;\n font-size: .9rem;\n "]);return f=function(){return e},e}var p=u.c.section.withConfig({displayName:"styled__RecommendedWrapper",componentId:"c0obzs-0"})(["border-bottom:1px solid var(--borders);border-top:1px solid var(--borders);background:var(--mediumBackground);display:flex;"]),g=Object(u.c)(d.a).withConfig({displayName:"styled__RecommendedLink",componentId:"c0obzs-1"})(["align-items:center;background:var(--mediumBackground);color:var(--highlight);display:flex;padding:3rem;text-decoration:none;transition:",";width:50%;"," &:hover{background:var(--borders);}&.previous{border-right:1px solid var(--borders);}&.next{justify-content:flex-end;}&.next:only-child{margin-left:auto;border-left:1px solid var(--borders);}&.previous:before{content:'\\2190';margin-right:0.5rem;}&.next:after{content:'\\2192';margin-left:0.5rem;}"],m.a.BACKGROUND,l.a.lessThan("large")(f())),h=n("qzLn"),v=function(){s.a.event({category:"menu link",action:"click",label:"Clicou num recommended link"})},b=function(e){var t=e.next,n=e.previous;return a.a.createElement(p,null,n&&a.a.createElement(g,{to:n.fields.slug,cover:!0,direction:"left",bg:Object(h.a)(),className:"previous",onClick:function(){return v()}},n.frontmatter.title),t&&a.a.createElement(g,{to:t.fields.slug,cover:!0,direction:"right",bg:Object(h.a)(),className:"next",onClick:function(){return v()}},t.frontmatter.title))},y=n("RPjP"),w=n.n(y);function k(){var e=x(["\n font-size: 1.375rem;\n "]);return k=function(){return e},e}function _(){var e=x(["\n padding: 3rem 1.4rem 0;\n max-width: 100%;\n "]);return _=function(){return e},e}function x(e,t){return t||(t=e.slice(0)),e.raw=t,e}var C=u.c.section.withConfig({displayName:"styled__CommentsWrapper",componentId:"sc-1q8vbcb-0"})(["margin:auto;max-width:70rem;padding:3rem 6.4rem 3rem;"," iframe[src*='ads-iframe']{display:none;}#disqus_thread{a{color:var(--highlight) !important;}}"],l.a.lessThan("large")(_())),E=u.c.h2.withConfig({displayName:"styled__CommentsTitle",componentId:"sc-1q8vbcb-1"})(["color:var(--postColor);font-size:2.1rem;font-weight:700;padding-bottom:2rem;",""],l.a.lessThan("large")(k())),z=function(e){var t=e.url,n=e.title,r="https://lhuria94.github.io"+t;return a.a.createElement(C,null,a.a.createElement(E,null,"Comments"),a.a.createElement(w.a,{shortname:"love_huria",identifier:r,title:n,url:r}))},O=n("k0kL"),T=(t.default=function(e){var t=e.data.markdownRemark,n=e.pageContext.next,r=e.pageContext.previous;return a.a.createElement(i.a,null,a.a.createElement(o.a,{title:t.frontmatter.title,description:t.frontmatter.description,image:"https://lhuria94.github.io"+t.frontmatter.image}),a.a.createElement(O.d,null,a.a.createElement(O.b,null,t.frontmatter.date," • ",t.timeToRead," min read"),a.a.createElement(O.e,null,t.frontmatter.title),a.a.createElement(O.c,null,t.frontmatter.description)),a.a.createElement(O.a,null,a.a.createElement("div",{dangerouslySetInnerHTML:{__html:t.html}})),a.a.createElement(b,{next:n,previous:r}),a.a.createElement(z,{url:t.fields.slug,title:t.frontmatter.title}))},"1525320103")}}]);
//# sourceMappingURL=component---src-templates-blog-post-js-bcb5ff7f00ff7ef654ce.js.map