text: (window.webpackJsonp=window.webpackJsonp||[]).push([[11],{163:function(t,e,i){"use strict";i.r(e),i.d(e,"pageQuery",function(){return m});var a=i(0),n=i.n(a),r=i(1),s=i.n(r),l=i(425),o=i(177),c=function(t){var e=t.data,i=t.location,a=Object(o.b)("integrations"),r=e.allGhostPost.edges;return n.a.createElement(n.a.Fragment,null,n.a.createElement(o.a,{data:e,location:i,type:"website",title:"Ghost Integrations – Connect your favourite Tools & Apps to your site",description:"Keep your stack aligned and integrate your most used tools & apps with your Ghost site: automation, analytics, marketing, support and much more! 👉",image:a}),n.a.createElement(l.b,{posts:r,location:i}))};c.propTypes={data:s.a.shape({site:s.a.shape({siteMetadata:s.a.shape({siteUrl:s.a.string.isRequired,title:s.a.string.isRequired,description:s.a.string.isRequired}).isRequired}).isRequired,allGhostPost:s.a.object.isRequired}).isRequired,location:s.a.shape({pathname:s.a.string.isRequired}).isRequired},e.default=c;var m="997620647"},177:function(t,e,i){"use strict";var a=i(0),n=i.n(a),r=i(1),s=i.n(r),l=i(176),o=i.n(l),c=(i(174),i(171)),m=i.n(c),g=i(173),u=i.n(g),p=i(184),h=(i(188),function(t,e){var i=[];return e?i.push(t.website?t.website:null,t.twitter?"https://twitter.com/"+u.a.trimStart(t.twitter,"@")+"/":null,t.facebook?"https://www.facebook.com/"+t.facebook+"/":null):i.push("https://ghost.org/","https://twitter.com/ghost/","https://www.facebook.com/ghost/"),i=u.a.compact(i),{name:e?t.name:"Ghost",sameAsArray:i.length?'["'+u.a.join(i,'", "')+'"]':null,image:e?t.profile_image:null}});h.defaultProps={fetchAuthorData:!1},h.PropTypes={primaryAuthor:s.a.shape({name:s.a.string.isRequired,profile_image:s.a.string,website:s.a.string,twitter:s.a.string,facebook:s.a.string}).isRequired,fetchAuthorData:s.a.bool.isRequired};var d=h,b=function(t){var e=t.image;return n.a.createElement(m.a,null,n.a.createElement("meta",{name:"twitter:card",content:"summary_large_image"}),n.a.createElement("meta",{name:"twitter:image",content:e}),n.a.createElement("meta",{property:"og:image",content:e}),n.a.createElement("meta",{property:"og:image:width",content:"1000"}),n.a.createElement("meta",{property:"og:image:height",content:"523"}))};b.propTypes={image:s.a.string.isRequired};var y=b,v=function(t){var e=t.data,i=t.canonical,a=t.fetchAuthorData,r=t.title,s=t.overwriteDefaultImage,l=t.image,o=e.ghostPost,c=e.site.siteMetadata,g=d(o.primary_author,a),h=u.a.map(Object(p.a)(o,{visibility:"public",fn:function(t){return t}}),"name"),b=h[0]||{name:"General",slug:"general"},v=s&&o.feature_image?o.feature_image:l;return n.a.createElement(n.a.Fragment,null,n.a.createElement(m.a,null,n.a.createElement("title",null,o.meta_title||r||o.title),n.a.createElement("meta",{name:"description",content:o.meta_description||o.excerpt}),n.a.createElement("link",{rel:"canonical",href:i}),n.a.createElement("meta",{property:"og:site_name",content:c.title}),n.a.createElement("meta",{property:"og:type",content:"article"}),n.a.createElement("meta",{property:"og:title",content:o.og_title||r||o.meta_title||o.title}),n.a.createElement("meta",{property:"og:description",content:o.og_description||o.excerpt||o.meta_description}),n.a.createElement("meta",{property:"og:url",content:i}),n.a.createElement("meta",{property:"article:published_time",content:o.published_at}),n.a.createElement("meta",{property:"article:modified_time",content:o.updated_at}),h.map(function(t,e){return n.a.createElement("meta",{property:"article:tag",content:t,key:e})}),n.a.createElement("meta",{property:"article:author",content:"https://www.facebook.com/ghost/"}),n.a.createElement("meta",{name:"twitter:title",content:o.twitter_title||r||o.meta_title||o.title}),n.a.createElement("meta",{name:"twitter:description",content:o.twitter_description||o.excerpt||o.meta_description}),n.a.createElement("meta",{name:"twitter:url",content:i}),n.a.createElement("meta",{name:"twitter:label1",content:"Written by"}),n.a.createElement("meta",{name:"twitter:data1",content:g.name}),n.a.createElement("meta",{name:"twitter:label2",content:"Filed under"}),n.a.createElement("meta",{name:"twitter:data2",content:b}),n.a.createElement("meta",{name:"twitter:site",content:"@tryghost"}),n.a.createElement("meta",{name:"twitter:creator",content:"@tryghost"}),n.a.createElement("script",{type:"application/ld+json"},'\n                    {\n                        "@context": "https://schema.org/",\n                        "@type": "Article",\n                        "author": {\n                            "@type": "Person",\n                            "name": "'+g.name+'",\n                            '+(g.image?g.sameAsArray?'"image": "'+g.image+'",':'"image": "'+g.image+'"':"")+"\n                            "+(g.sameAsArray?'"sameAs": '+g.sameAsArray:"")+"\n                        },\n                        "+(h.length?'"keywords": "'+u.a.join(h,", ")+'",':"")+'\n                        "headline": "'+(o.meta_title||r||o.title)+'",\n                        "url": "'+i+'",\n                        "datePublished": "'+o.published_at+'",\n                        "dateModified": "'+o.updated_at+'",\n                        "image": {\n                            "@type": "ImageObject",\n                            "url": "'+v+'",\n                            "width": 1000,\n                            "height": 563\n                        },\n                        "description": "'+(o.meta_description||o.excerpt)+'",\n                        "mainEntityOfPage": {\n                            "@type": "WebPage",\n                            "@id": "'+c.siteUrl+'"\n                        }\n                    }\n                ')),n.a.createElement(y,{image:v}))};v.defaultProps={fetchAuthorData:!1},v.propTypes={data:s.a.shape({ghostPost:s.a.shape({title:s.a.string.isRequired,published_at:s.a.string.isRequired,updated_at:s.a.string.isRequired,excerpt:s.a.string.isRequired,meta_title:s.a.string,meta_description:s.a.string,primary_author:s.a.object.isRequired,feature_image:s.a.string,tags:s.a.arrayOf(s.a.shape({name:s.a.string,slug:s.a.string,visibility:s.a.string})),primaryTag:s.a.shape({name:s.a.string}),og_title:s.a.string,og_description:s.a.string,twitter_title:s.a.string,twitter_description:s.a.string}).isRequired,site:s.a.shape({siteMetadata:s.a.shape({siteUrl:s.a.string.isRequired,title:s.a.string.isRequired,description:s.a.string.isRequired}).isRequired}).isRequired}).isRequired,canonical:s.a.string.isRequired,image:s.a.string.isRequired,fetchAuthorData:s.a.bool,title:s.a.string,overwriteDefaultImage:s.a.bool};var f=v,E=function(t){var e=t.data,i=t.canonical,a=e.markdownRemark,r=a.frontmatter,s=e.site.siteMetadata,l=r.date?new Date(r.date).toISOString():new Date("2018-10-15").toISOString(),o=r.keywords&&r.keywords.length?r.keywords[0]:null,c=x();return n.a.createElement(n.a.Fragment,null,n.a.createElement(m.a,null,n.a.createElement("title",null,r.meta_title||r.title),n.a.createElement("meta",{name:"description",content:r.meta_description||a.excerpt}),n.a.createElement("link",{rel:"canonical",href:i}),n.a.createElement("meta",{property:"og:site_name",content:s.title}),n.a.createElement("meta",{property:"og:type",content:"article"}),n.a.createElement("meta",{property:"og:title",content:r.meta_title||r.title}),n.a.createElement("meta",{property:"og:description",content:r.meta_description||a.excerpt}),n.a.createElement("meta",{property:"og:url",content:i}),n.a.createElement("meta",{property:"article:published_time",content:l}),r.keywords&&r.keywords.length?r.keywords.map(function(t,e){return n.a.createElement("meta",{property:"article:tag",content:t,key:e})}):null,n.a.createElement("meta",{property:"article:author",content:"https://www.facebook.com/ghost/"}),n.a.createElement("meta",{name:"twitter:title",content:r.meta_title||r.title}),n.a.createElement("meta",{name:"twitter:description",content:r.meta_description||a.excerpt}),n.a.createElement("meta",{name:"twitter:url",content:i}),n.a.createElement("meta",{name:"twitter.label1",content:"Reading time"}),n.a.createElement("meta",{name:"twitter:data1",content:a.timeToRead+" min read"}),o?n.a.createElement("meta",{name:"twitter:label2",content:"Filed under"}):null,o?n.a.createElement("meta",{name:"twitter:data2",content:o}):null,n.a.createElement("meta",{name:"twitter:site",content:"@tryghost"}),n.a.createElement("meta",{name:"twitter:creator",content:"@tryghost"}),n.a.createElement("script",{type:"application/ld+json"},'\n                    {\n                        "@context": "https://schema.org/",\n                        "@type": "Article",\n                        "author": {\n                            "@type": "Person",\n                            "name": "Ghost",\n                            "sameAs": [\n                                "https://ghost.org/",\n                                "https://www.facebook.com/ghost/",\n                                "https://twitter.com/tryghost/"\n                            ]\n                        },\n                        '+(r.keywords&&r.keywords.length?'"keywords": "'+u.a.join(r.keywords,", ")+'",':"")+'\n                        "headline": "'+(r.meta_title||r.title)+'",\n                        "url": "'+i+'",\n                        "datePublished": "'+l+'",\n                        "image": {\n                            "@type": "ImageObject",\n                            "url": "'+c+'",\n                            "width": 1000,\n                            "height": 563\n                        },\n                        "description": "'+(r.meta_description||a.excerpt)+'",\n                        "mainEntityOfPage": {\n                            "@type": "WebPage",\n                            "@id": "'+s.siteUrl+'"\n                        }\n                    }\n                ')),n.a.createElement(y,{image:c}))};E.propTypes={data:s.a.shape({markdownRemark:s.a.shape({frontmatter:s.a.shape({title:s.a.string.isRequired,keywords:s.a.arrayOf(s.a.string),meta_title:s.a.string,meta_description:s.a.string,date:s.a.string}).isRequired,excerpt:s.a.string.isRequired,timeToRead:s.a.number}).isRequired,site:s.a.shape({siteMetadata:s.a.shape({siteUrl:s.a.string.isRequired,title:s.a.string.isRequired,description:s.a.string.isRequired}).isRequired}).isRequired}).isRequired,canonical:s.a.string.isRequired};var w=E,R=function(t){var e=t.data,i=t.canonical,a=t.title,r=t.description,s=t.image,l=t.type;return n.a.createElement(n.a.Fragment,null,n.a.createElement(m.a,null,n.a.createElement("title",null,a),n.a.createElement("meta",{name:"description",content:r}),n.a.createElement("link",{rel:"canonical",href:i}),n.a.createElement("meta",{property:"og:site_name",content:e.site.siteMetadata.title}),n.a.createElement("meta",{property:"og:type",content:"website"}),n.a.createElement("meta",{property:"og:title",content:a}),n.a.createElement("meta",{property:"og:description",content:r}),n.a.createElement("meta",{property:"og:url",content:i}),n.a.createElement("meta",{name:"twitter:title",content:a}),n.a.createElement("meta",{name:"twitter:description",content:r}),n.a.createElement("meta",{name:"twitter:url",content:i}),n.a.createElement("meta",{name:"twitter:site",content:"@tryghost"}),n.a.createElement("script",{type:"application/ld+json"},'\n                    {\n                        "@context": "https://schema.org/",\n                        "@type": '+(l&&"series"===l?'"Series"':'"WebSite"')+',\n                        "url": "'+i+'",\n                        "image": {\n                            "@type": "ImageObject",\n                            "url": "'+s+'",\n                            "width": 1000,\n                            "height": 563\n                        },\n                        "mainEntityOfPage": {\n                            "@type": "WebPage",\n                            "@id": "'+e.site.siteMetadata.siteUrl+'"\n                        },\n                        "description": "'+r+'"\n                    }\n                ')),n.a.createElement(y,{image:s}))};R.propTypes={data:s.a.shape({site:s.a.shape({siteMetadata:s.a.shape({siteUrl:s.a.string.isRequired,title:s.a.string.isRequired}).isRequired}).isRequired}).isRequired,canonical:s.a.string.isRequired,title:s.a.string.isRequired,description:s.a.string.isRequired,image:s.a.string.isRequired,type:s.a.oneOf(["website","series"]).isRequired};var q=R,k=function(t){var e=t.data,i=t.type,a=t.title,r=t.description,s=t.image,l=t.fetchAuthorData,c=t.overwriteDefaultImage,m=t.location,g=e||{},u=g.ghostPost,p=g.markdownRemark,h=e.site.siteMetadata,d=o.a.resolve(h.siteUrl,m.pathname,"/");if("article"===i){if(u)return n.a.createElement(f,{data:e,canonical:d,fetchAuthorData:l,title:a,image:s,overwriteDefaultImage:c});if(p)return n.a.createElement(w,{data:e,canonical:d})}else if("website"===i||"series"===i)return n.a.createElement(q,{data:e,canonical:d,title:a,description:r,image:s,type:i});return null};k.propTypes={data:s.a.shape({site:s.a.shape({siteMetadata:s.a.shape({siteUrl:s.a.string.isRequired,title:s.a.string.isRequired,description:s.a.string.isRequired}).isRequired}).isRequired,ghostPost:s.a.object,markdownRemark:s.a.object}).isRequired,location:s.a.shape({pathname:s.a.string.isRequired}).isRequired,type:s.a.oneOf(["website","series","article"]).isRequired,title:s.a.string,description:s.a.string,image:s.a.string,fetchAuthorData:s.a.bool,overwriteDefaultImage:s.a.bool};var S=k,_="http://ghost.local:8000",C={faq:o.a.resolve(_,"/images/meta/Ghost-FAQ.jpg"),integrations:o.a.resolve(_,"/images/meta/Ghost-Integrations.jpg"),tutorials:o.a.resolve(_,"/images/meta/Ghost-Tutorials.jpg"),default:o.a.resolve(_,"/images/meta/Ghost-Docs.jpg")},A=function(t){return C[t=t||"default"]};A.proptypes={section:s.a.string.isRequired};var x=A;i.d(e,"a",function(){return S}),i.d(e,"b",function(){return x})},330:function(t,e,i){"use strict";i.d(e,"a",function(){return o});i(182);var a=i(1),n=i.n(a),r=i(173),s=i.n(r),l=i(184),o=function(t,e){var i=[];return e=/^(?:\/?)([a-zA-Z\d-]*)(?:\/?)/i.exec(e)[1],s.a.forEach(t,function(t){var e=t.node,a=Object(l.a)(e,{visibility:"public",fn:function(t){return t}});i.push(a)}),i=s.a.flattenDeep(i),s.a.map(i,function(t){t.link=e?"/"+e+"/"+t.slug+"/":"/"+t.slug+"/"}),s.a.sortedUniqBy(s.a.sortBy(s.a.flattenDeep(i),"name"),"name")};o.proptypes={posts:n.a.arrayOf(n.a.shape({node:n.a.shape({tags:n.a.arrayOf(n.a.shape({name:n.a.string.isRequired,slug:n.a.string.isRequired})).isRequired}).isRequired})).isRequired,linkPrefix:n.a.string}},424:function(t){t.exports={data:{allGhostPost:{edges:[{node:{tags:[{name:"Automation",slug:"automation",visibility:"public"},{name:"Utility",slug:"utility",visibility:"public"},{name:"#integration",slug:"hash-integration",visibility:"internal"}]}},{node:{tags:[{name:"Analytics",slug:"analytics",visibility:"public"},{name:"#integration",slug:"hash-integration",visibility:"internal"}]}},{node:{tags:[{name:"Community",slug:"community",visibility:"public"},{name:"#integration",slug:"hash-integration",visibility:"internal"}]}},{node:{tags:[{name:"Community",slug:"community",visibility:"public"},{name:"#integration",slug:"hash-integration",visibility:"internal"}]}},{node:{tags:[{name:"Content",slug:"content",visibility:"public"},{name:"#integration",slug:"hash-integration",visibility:"internal"}]}},{node:{tags:[{name:"Automation",slug:"automation",visibility:"public"},{name:"Utility",slug:"utility",visibility:"public"},{name:"#integration",slug:"hash-integration",visibility:"internal"}]}},{node:{tags:[{name:"#integration",slug:"hash-integration",visibility:"internal"},{name:"Content",slug:"content",visibility:"public"}]}},{node:{tags:[{name:"Social",slug:"social",visibility:"public"},{name:"Content",slug:"content",visibility:"public"},{name:"SEO",slug:"seo",visibility:"public"},{name:"#integration",slug:"hash-integration",visibility:"internal"}]}},{node:{tags:[{name:"Email",slug:"email",visibility:"public"},{name:"#integration",slug:"hash-integration",visibility:"internal"}]}},{node:{tags:[{name:"Marketing",slug:"marketing",visibility:"public"},{name:"Content",slug:"content",visibility:"public"},{name:"SEO",slug:"seo",visibility:"public"},{name:"#integration",slug:"hash-integration",visibility:"internal"}]}},{node:{tags:[{name:"Ecommerce",slug:"ecommerce",visibility:"public"},{name:"#integration",slug:"hash-integration",visibility:"internal"}]}},{node:{tags:[{name:"Surveys & Forms",slug:"surveys-forms",visibility:"public"},{name:"Card",slug:"card",visibility:"public"},{name:"#integration",slug:"hash-integration",visibility:"internal"}]}},{node:{tags:[{name:"Community",slug:"community",visibility:"public"},{name:"#integration",slug:"hash-integration",visibility:"internal"}]}},{node:{tags:[{name:"Card",slug:"card",visibility:"public"},{name:"Ecommerce",slug:"ecommerce",visibility:"public"},{name:"#integration",slug:"hash-integration",visibility:"internal"}]}},{node:{tags:[{name:"Community",slug:"community",visibility:"public"},{name:"#integration",slug:"hash-integration",visibility:"internal"}]}},{node:{tags:[{name:"Community",slug:"community",visibility:"public"},{name:"#integration",slug:"hash-integration",visibility:"internal"}]}},{node:{tags:[{name:"Analytics",slug:"analytics",visibility:"public"},{name:"#integration",slug:"hash-integration",visibility:"internal"}]}},{node:{tags:[{name:"Automation",slug:"automation",visibility:"public"},{name:"Social",slug:"social",visibility:"public"},{name:"#integration",slug:"hash-integration",visibility:"internal"}]}},{node:{tags:[{name:"Utility",slug:"utility",visibility:"public"},{name:"Storage",slug:"storage",visibility:"public"},{name:"#integration",slug:"hash-integration",visibility:"internal"}]}},{node:{tags:[{name:"Email",slug:"email",visibility:"public"},{name:"#integration",slug:"hash-integration",visibility:"internal"}]}},{node:{tags:[{name:"Content",slug:"content",visibility:"public"},{name:"#integration",slug:"hash-integration",visibility:"internal"}]}},{node:{tags:[{name:"Community",slug:"community",visibility:"public"},{name:"#integration",slug:"hash-integration",visibility:"internal"}]}},{node:{tags:[{name:"Content",slug:"content",visibility:"public"},{name:"#integration",slug:"hash-integration",visibility:"internal"}]}},{node:{tags:[{name:"Social",slug:"social",visibility:"public"},{name:"Content",slug:"content",visibility:"public"},{name:"#integration",slug:"hash-integration",visibility:"internal"}]}},{node:{tags:[{name:"Content",slug:"content",visibility:"public"},{name:"#integration",slug:"hash-integration",visibility:"internal"}]}},{node:{tags:[{name:"Content",slug:"content",visibility:"public"},{name:"#integration",slug:"hash-integration",visibility:"internal"}]}},{node:{tags:[{name:"Card",slug:"card",visibility:"public"},{name:"#integration",slug:"hash-integration",visibility:"internal"}]}},{node:{tags:[{name:"Storage",slug:"storage",visibility:"public"},{name:"#integration",slug:"hash-integration",visibility:"internal"}]}},{node:{tags:[{name:"Storage",slug:"storage",visibility:"public"},{name:"#integration",slug:"hash-integration",visibility:"internal"}]}},{node:{tags:[{name:"Community",slug:"community",visibility:"public"},{name:"#integration",slug:"hash-integration",visibility:"internal"}]}},{node:{tags:[{name:"Content",slug:"content",visibility:"public"},{name:"Social",slug:"social",visibility:"public"},{name:"Card",slug:"card",visibility:"public"},{name:"#integration",slug:"hash-integration",visibility:"internal"}]}},{node:{tags:[{name:"Storage",slug:"storage",visibility:"public"},{name:"#integration",slug:"hash-integration",visibility:"internal"}]}},{node:{tags:[{name:"#integration",slug:"hash-integration",visibility:"internal"},{name:"Storage",slug:"storage",visibility:"public"}]}},{node:{tags:[{name:"Card",slug:"card",visibility:"public"},{name:"#integration",slug:"hash-integration",visibility:"internal"}]}},{node:{tags:[{name:"Social",slug:"social",visibility:"public"},{name:"Content",slug:"content",visibility:"public"},{name:"#integration",slug:"hash-integration",visibility:"internal"}]}},{node:{tags:[{name:"Content",slug:"content",visibility:"public"},{name:"Card",slug:"card",visibility:"public"},{name:"#integration",slug:"hash-integration",visibility:"internal"}]}},{node:{tags:[{name:"#integration",slug:"hash-integration",visibility:"internal"},{name:"Card",slug:"card",visibility:"public"}]}},{node:{tags:[{name:"Content",slug:"content",visibility:"public"},{name:"#integration",slug:"hash-integration",visibility:"internal"}]}},{node:{tags:[{name:"Content",slug:"content",visibility:"public"},{name:"#integration",slug:"hash-integration",visibility:"internal"}]}},{node:{tags:[{name:"Marketing",slug:"marketing",visibility:"public"},{name:"#integration",slug:"hash-integration",visibility:"internal"}]}},{node:{tags:[{name:"Surveys & Forms",slug:"surveys-forms",visibility:"public"},{name:"Card",slug:"card",visibility:"public"},{name:"#integration",slug:"hash-integration",visibility:"internal"}]}},{node:{tags:[{name:"Content",slug:"content",visibility:"public"},{name:"Card",slug:"card",visibility:"public"},{name:"#integration",slug:"hash-integration",visibility:"internal"}]}},{node:{tags:[{name:"Analytics",slug:"analytics",visibility:"public"},{name:"#integration",slug:"hash-integration",visibility:"internal"}]}},{node:{tags:[{name:"Email",slug:"email",visibility:"public"},{name:"#integration",slug:"hash-integration",visibility:"internal"}]}},{node:{tags:[{name:"Email",slug:"email",visibility:"public"},{name:"Marketing",slug:"marketing",visibility:"public"},{name:"#integration",slug:"hash-integration",visibility:"internal"}]}},{node:{tags:[{name:"Surveys & Forms",slug:"surveys-forms",visibility:"public"},{name:"Card",slug:"card",visibility:"public"},{name:"#integration",slug:"hash-integration",visibility:"internal"}]}},{node:{tags:[{name:"Utility",slug:"utility",visibility:"public"},{name:"#integration",slug:"hash-integration",visibility:"internal"}]}},{node:{tags:[{name:"Analytics",slug:"analytics",visibility:"public"},{name:"#integration",slug:"hash-integration",visibility:"internal"}]}},{node:{tags:[{name:"Content",slug:"content",visibility:"public"},{name:"#integration",slug:"hash-integration",visibility:"internal"}]}},{node:{tags:[{name:"Marketing",slug:"marketing",visibility:"public"},{name:"Utility",slug:"utility",visibility:"public"},{name:"Automation",slug:"automation",visibility:"public"},{name:"#integration",slug:"hash-integration",visibility:"internal"}]}},{node:{tags:[{name:"Surveys & Forms",slug:"surveys-forms",visibility:"public"},{name:"Card",slug:"card",visibility:"public"},{name:"#integration",slug:"hash-integration",visibility:"internal"}]}},{node:{tags:[{name:"Content",slug:"content",visibility:"public"},{name:"#integration",slug:"hash-integration",visibility:"internal"}]}},{node:{tags:[{name:"Social",slug:"social",visibility:"public"},{name:"Content",slug:"content",visibility:"public"},{name:"Community",slug:"community",visibility:"public"},{name:"SEO",slug:"seo",visibility:"public"},{name:"#integration",slug:"hash-integration",visibility:"internal"}]}},{node:{tags:[{name:"Storage",slug:"storage",visibility:"public"},{name:"#integration",slug:"hash-integration",visibility:"internal"}]}},{node:{tags:[{name:"Email",slug:"email",visibility:"public"},{name:"Marketing",slug:"marketing",visibility:"public"},{name:"#integration",slug:"hash-integration",visibility:"internal"}]}},{node:{tags:[{name:"Email",slug:"email",visibility:"public"},{name:"Marketing",slug:"marketing",visibility:"public"},{name:"#integration",slug:"hash-integration",visibility:"internal"}]}},{node:{tags:[{name:"Ecommerce",slug:"ecommerce",visibility:"public"},{name:"#integration",slug:"hash-integration",visibility:"internal"}]}},{node:{tags:[{name:"Analytics",slug:"analytics",visibility:"public"},{name:"#integration",slug:"hash-integration",visibility:"internal"}]}},{node:{tags:[{name:"Content",slug:"content",visibility:"public"},{name:"#integration",slug:"hash-integration",visibility:"internal"}]}},{node:{tags:[{name:"Community",slug:"community",visibility:"public"},{name:"#integration",slug:"hash-integration",visibility:"internal"}]}},{node:{tags:[{name:"Ecommerce",slug:"ecommerce",visibility:"public"},{name:"#integration",slug:"hash-integration",visibility:"internal"}]}},{node:{tags:[{name:"Marketing",slug:"marketing",visibility:"public"},{name:"#integration",slug:"hash-integration",visibility:"internal"}]}},{node:{tags:[{name:"Marketing",slug:"marketing",visibility:"public"},{name:"#integration",slug:"hash-integration",visibility:"internal"}]}},{node:{tags:[{name:"Email",slug:"email",visibility:"public"},{name:"#integration",slug:"hash-integration",visibility:"internal"}]}},{node:{tags:[{name:"Content",slug:"content",visibility:"public"},{name:"#integration",slug:"hash-integration",visibility:"internal"}]}},{node:{tags:[{name:"Analytics",slug:"analytics",visibility:"public"},{name:"#integration",slug:"hash-integration",visibility:"internal"}]}},{node:{tags:[{name:"Ecommerce",slug:"ecommerce",visibility:"public"},{name:"#integration",slug:"hash-integration",visibility:"internal"}]}},{node:{tags:[{name:"Surveys & Forms",slug:"surveys-forms",visibility:"public"},{name:"#integration",slug:"hash-integration",visibility:"internal"}]}},{node:{tags:[{name:"Utility",slug:"utility",visibility:"public"},{name:"Automation",slug:"automation",visibility:"public"},{name:"Content",slug:"content",visibility:"public"},{name:"Marketing",slug:"marketing",visibility:"public"},{name:"Email",slug:"email",visibility:"public"},{name:"Analytics",slug:"analytics",visibility:"public"},{name:"Storage",slug:"storage",visibility:"public"},{name:"Community",slug:"community",visibility:"public"},{name:"Surveys & Forms",slug:"surveys-forms",visibility:"public"},{name:"SEO",slug:"seo",visibility:"public"},{name:"#integration",slug:"hash-integration",visibility:"internal"},{name:"Social",slug:"social",visibility:"public"},{name:"Ecommerce",slug:"ecommerce",visibility:"public"}]}}]}}}},425:function(t,e,i){"use strict";i(37),i(76),i(322);var a=i(0),n=i.n(a),r=i(1),s=i.n(r),l=i(175),o=function(t){var e=t.post,i=t.hit,a=t.section,r=!1,s=new RegExp("^http://ghost.local:8000");i&&i.url.match(s)&&(i.url=i.url.replace(s,""),r=!0);var o=e?"/"+a+"/"+e.slug+"/":i.url,c=e?e.title:i.title,m="https://res.cloudinary.com/tryghost/image/fetch/w_120,h_100,c_fit/"+(e?e.feature_image:i.image);return n.a.createElement(n.a.Fragment,null,r?n.a.createElement(l.a,{to:o,className:"flex flex-column justify-center items-center w-100 h30 pa3 tc tdn darkgrey bg-white shadow-2",elevation:"2",radius:"4"},n.a.createElement("div",{className:"flex justify-center items-center h10 w13 mt1"},n.a.createElement("img",{className:"w-100 h-100",style:{objectFit:"contain"},src:m,alt:c})),n.a.createElement("div",{className:"f8 mt3"},c)):n.a.createElement(l.a,{href:o,className:"flex flex-column justify-center items-center w-100 h30 pa3 tc tdn darkgrey bg-white shadow-2",elevation:"2",radius:"4"},n.a.createElement("div",{className:"flex justify-center items-center h10 w13 mt1"},n.a.createElement("img",{className:"w-100 h-100",style:{objectFit:"contain"},src:m,alt:c})),n.a.createElement("div",{className:"f8 mt3"},c)))};o.propTypes={post:s.a.shape({title:s.a.string,feature_image:s.a.string,slug:s.a.string}),hit:s.a.shape({url:s.a.string,title:s.a.string,image:s.a.string}),section:s.a.string.isRequired};var c=o,m=i(36),g=i.n(m),u=i(7),p=i.n(u),h=i(173),d=i.n(h),b=i(181),y=i(172),v=i(326),f=i(329),E=i(372),w=Object(v.a)({displayName:"AlgoliaHits",getProvidedProps:function(t,e,i){var a=Object(f.d)(i,this.context);if(!a)return{hits:[]};var n=Object(E.a)(a.hits,a.hitsPerPage,a.page);return{hits:Object(E.b)(n,a.queryID)}},getSearchParameters:function(t){return t}}),R=function(t){var e=t.hits;return n.a.createElement("div",{className:"gh-integrations w-100"},e.map(function(t){return n.a.createElement(c,{key:t.objectID,hit:t,section:"integrations"})}))};R.propTypes={hits:s.a.arrayOf(s.a.shape({objectID:s.a.string.isRequired}).isRequired).isRequired};var q=w(R),k=i(318);function S(t,e,i){return Object(f.b)(t,e,i,"query","",function(t){return t||""})}function _(t,e,i,a){var n=Object(k.a)({},"query",i);return Object(f.f)(e,n,a,!0)}var C=Object(v.a)({displayName:"AlgoliaSearchBox",propTypes:{defaultRefinement:s.a.string},getProvidedProps:function(t,e,i){return{currentRefinement:S(t,e,this.context),isSearchStalled:i.isSearchStalled}},refine:function(t,e,i){return _(0,e,i,this.context)},cleanUp:function(t,e){return function(t,e,i){return Object(f.a)(e,i,"query")}(0,e,this.context)},getSearchParameters:function(t,e,i){return t.setQuery(S(e,i,this.context))},getMetadata:function(t,e){var i=this,a=S(t,e,this.context);return{id:"query",index:Object(f.c)(this.context),items:null===a?[]:[{label:"".concat("query",": ").concat(a),value:function(t){return _(0,t,"",i.context)},currentRefinement:a}]}}}),A=function(t){function e(e){var i;return(i=t.call(this,e)||this).state={currentInput:i.props.currentRefinement,showResetButton:!1},i.handleChange=i.handleChange.bind(g()(i)),i.setInput=i.setInput.bind(g()(i)),i.resetSearch=i.resetSearch.bind(g()(i)),i.toggleResetButton=i.toggleResetButton.bind(g()(i)),i}p()(e,t);var i=e.prototype;return i.setInput=function(t){this.setState(function(){return{currentInput:t}})},i.toggleResetButton=function(t){this.setState(function(){return{showResetButton:t}})},i.resetSearch=function(){this.props.searchActive(!1),this.toggleResetButton(!1),this.props.refine(),this.setState(function(){return{currentInput:""}})},i.handleChange=function(t){return this.setInput(t.target.value),t.target.value?(this.props.searchActive(!0),this.toggleResetButton(!0),this.props.refine(t.target.value)):this.resetSearch()},i.render=function(){return n.a.createElement("div",{className:"relative mt8 mw-s center"},n.a.createElement("label",{htmlFor:"integrationsearch",className:"clip"},"Search"),n.a.createElement(l.b,{name:"search",className:"fill-lightgrey w5 h-auto absolute top-4 left-4"}),n.a.createElement("input",{id:"integrationsearch",name:"integrationsearch",className:"input-reset form-text pa4 pl10 pr8 w-100 f6 br-pill ba b--transparent bg-white shadow-2 whitney middarkgrey dark-placeholder",type:"text",placeholder:"Search integrations...",autoComplete:"off",value:this.state.currentInput,onChange:this.handleChange}),this.state.showResetButton?n.a.createElement("button",{className:"absolute top-0 right-0 bottom-0 pa0 pr2 b--transparent flex justify-center items-center bg-transparent",onClick:this.resetSearch},n.a.createElement(l.b,{name:"close",className:"w4 h4 pa2 fill-midgrey bg-white br-100 pointer dim"})):null)},e}(n.a.Component);A.propTypes={searchActive:s.a.func.isRequired,currentRefinement:s.a.string,refine:s.a.func};var x=C(A),j=i(731),O=function(t){var e=t.children;return n.a.createElement(j.a,{indexName:"integration"},e)};O.propTypes={children:s.a.node.isRequired};var N=O,P=(i(26),i(174),i(182),i(424)),I=i(56),D=i(330),M=function(t){var e=t.location,i=t.searchActive,a=t.data,r=i?"/integrations/":e.pathname,s=Object(D.a)(a.allGhostPost.edges,"integrations");return s.unshift({name:"All Integrations",slug:"all-integrations",link:"/integrations/"}),n.a.createElement(n.a.Fragment,null,n.a.createElement("h3",{className:"ma0 mb2","data-cy":"filter"},"Filter by"),s.map(function(t,e){var i=r===t.link?"blue fw6":"midgrey";return n.a.createElement(I.Link,{to:t.link,className:i+" link pa2 pl0",key:e,"data-cy":t.slug+"-filter"},t.name)}))};M.propTypes={location:s.a.object.isRequired,searchActive:s.a.bool.isRequired,data:s.a.shape({allGhostPost:s.a.shape({edges:s.a.arrayOf(s.a.shape({post:s.a.shape({tag:s.a.arrayOf(s.a.shape({name:s.a.string,slug:s.a.string}))})}).isRequired).isRequired}).isRequired}).isRequired};var F=function(t){return n.a.createElement(I.StaticQuery,{query:"420472741",render:function(e){return n.a.createElement(M,Object.assign({data:e},t))},data:P})},T=function(t){function e(e){var i;return(i=t.call(this,e)||this).state={posts:i.props.posts,activeSorting:"date",searchActive:!1},i.searchSwitch=i.searchSwitch.bind(g()(i)),i}p()(e,t);var i=e.prototype;return i.searchSwitch=function(t){this.setState(function(e){return{searchActive:t||!e.searchActive}})},i.sortBy=function(t){var e,i;switch(t){case"date":e="node.published_at",i="node.title",this.setState(function(){return{activeSorting:"date"}});break;case"title":e="node.title",i="node.published_at",this.setState(function(){return{activeSorting:"title"}})}var a=d.a.sortBy(this.state.posts,[e,i]);this.setState(function(){return{posts:a}})},i.render=function(){var t=this.state.posts;return n.a.createElement(n.a.Fragment,null,n.a.createElement(b.a,{headerDividerStyle:"shadow",header:n.a.createElement("div",{className:"bg-integrations-header-image"},n.a.createElement("div",{className:"bg-integrations-header-cover"},n.a.createElement("header",{className:"top-0 left-0 right-0 z-9999"},n.a.createElement(l.d,{theme:"light"})),n.a.createElement("div",{className:"pa-vw4 tc white"},n.a.createElement("h1",{className:y.a.sectionHeading+" gh-integration-header-shadow"},"Ghost Integrations"),n.a.createElement("p",{className:y.a.sectionSubHeading},"All your favourite apps and tools, integrated with Ghost"),n.a.createElement(x,{searchActive:this.searchSwitch}))))},n.a.createElement(N,null,n.a.createElement("div",{className:y.a.page.xl+"pt10"},n.a.createElement("div",{className:"flex items-start br4"},n.a.createElement("div",{className:"gh-integration-sidebar flex-shrink-0 w50 mr5 dn db-ns"},n.a.createElement("div",{className:"flex flex-column mb6","data-cy":"sort"},n.a.createElement("h3",{className:"ma0 mb2"},"Sort by"),n.a.createElement("a",{href:"#",className:"link pa2 pl0 "+("date"===this.state.activeSorting?"blue fw6":"midgrey"),onClick:this.sortBy.bind(this,"date")},"Most popular"),n.a.createElement("a",{href:"#",className:"link pa2 pl0 "+("title"===this.state.activeSorting?"blue fw6":"midgrey"),onClick:this.sortBy.bind(this,"title")},"A – Z")),n.a.createElement("div",{className:"flex flex-column mb6"},n.a.createElement(F,{location:this.props.location,searchActive:this.state.searchActive}))),this.state.searchActive?n.a.createElement(q,null):n.a.createElement(n.a.Fragment,null,n.a.createElement("div",{className:"gh-integrations w-100"},t.map(function(t){var e=t.node;return n.a.createElement(c,{key:e.id,post:e,section:"integrations"})}))))))))},e}(n.a.Component);T.propTypes={posts:s.a.array.isRequired,location:s.a.shape({pathname:s.a.string.isRequired}).isRequired};var U=T;i.d(e,"a",function(){return c}),i.d(e,"b",function(){return U})}}]);
  //# sourceMappingURL=component---src-pages-integrations-js-bec6ad768f821c93ae70.js.map