-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcomponent---src-templates-single-index-js-60b73a7158c64e96d439.js
2 lines (2 loc) · 14 KB
/
component---src-templates-single-index-js-60b73a7158c64e96d439.js
1
2
(window.webpackJsonp=window.webpackJsonp||[]).push([[36],{"21VO":function(e,t,a){},"2t4M":function(e,t,a){},"5OW0":function(e,t,a){"use strict";var n=a("q1tI"),r=a.n(n),o=a("9pBV"),l=a.n(o),i=function(e){var t=e.formId,a=e.portalId,n=e.setSubmitted,o=e.tagName,i=e.tagParent;if(!t)return null;return r.a.createElement(l.a,{portalId:a,formId:t,onSubmit:function(){"function"==typeof n&&n(!0),void 0!==window.dataLayer&&i&&window.dataLayer.push({event:"formAction",cfEventTag:o,cfEventTagParent:i})}})};i.defaultProps={tagName:"",tagParent:""},t.a=i},"6MLY":function(e,t,a){},"97ya":function(e,t,a){},"9pBV":function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(e[n]=a[n])}return e},r=function(){function e(e,t){for(var a=0;a<t.length;a++){var n=t[a];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,a,n){return a&&e(t.prototype,a),n&&e(t,n),t}}(),o=l(a("q1tI"));l(a("i8i4"));function l(e){return e&&e.__esModule?e:{default:e}}var i=0,c=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var a=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}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a.state={loaded:!1},a.id=i++,a.createForm=a.createForm.bind(a),a.findFormElement=a.findFormElement.bind(a),a}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),r(t,[{key:"createForm",value:function(){var e=this;if(window.hbspt){if(null===this.el)return;var t=n({},this.props);delete t.loading,delete t.onSubmit,delete t.onReady;var a=n({},t,{target:"#"+this.el.getAttribute("id"),onFormSubmit:function(t){var a=t.serializeArray();e.props.onSubmit(a)}});return window.hbspt.forms.create(a),!0}setTimeout(this.createForm,1)}},{key:"loadScript",value:function(){var e=this,t=document.createElement("script");t.defer=!0,t.onload=function(){e.createForm(),e.findFormElement()},t.src="//js.hsforms.net/forms/v2.js",document.head.appendChild(t)}},{key:"findFormElement",value:function(){if(null!==this.el){var e=this.el.querySelector("iframe");e?(this.setState({loaded:!0}),this.props.onReady&&this.props.onReady(e)):setTimeout(this.findFormElement,1)}}},{key:"componentDidMount",value:function(){window.hbspt||this.props.noScript?(this.createForm(),this.findFormElement()):this.loadScript()}},{key:"componentWillUnmount",value:function(){}},{key:"render",value:function(){var e=this;return o.default.createElement("div",null,o.default.createElement("div",{ref:function(t){return e.el=t},id:"reactHubspotForm"+this.id,style:{display:this.state.loaded?"block":"none"}}),!this.state.loaded&&this.props.loading)}}]),t}(o.default.Component);t.default=c,e.exports=t.default},"BZj/":function(e,t,a){},"Hp5/":function(e,t,a){},RexG:function(e,t,a){"use strict";var n=a("E+oP"),r=a.n(n),o=a("q1tI"),l=a.n(o),i=a("TSYQ"),c=a.n(i),s=a("PiD+"),m=(a("BZj/"),function(e){var t=e.authors,a=t.length;return l.a.createElement("span",{className:"article-card__multiple-author"},l.a.createElement("span",{className:"article-card__by"}," By "),t.map((function(e,t){var n=e.name;return a-2>=t+1&&(n+=","),l.a.createElement(o.Fragment,{key:"multiple-authors-"+t},0<t&&a-1===t?l.a.createElement("span",{className:"article-card__and"}," and "):null,l.a.createElement("span",{className:"article-card__posted-by"}," "," "+n+" "," "))})))});m.defaultProps={authors:[]};var u=m,d=a("f23f"),p=(a("sUnA"),function(e){var t=e.post,a=e.animate,n=void 0===a||a,i=e.className,m=e.isSinglePage,p=e.isWide,f=void 0===p||p,h=t.author,g=t.large,b=t.medium,w=t.thumbnail,E=t.categories,_=t.date,v=t.title,y=t.multipleAuthors,N=t.owHidePublishDate,I=c()("article-card",i,{"animated slideInUp":n}),O=f?g:b,P=O?O.node:null;return l.a.createElement("article",{className:I},l.a.createElement("figure",{className:"article-card__header"},l.a.createElement(s.a,Object.assign({},P,{placeholder:w?w.node:{}}))),l.a.createElement("div",{className:"article-card__footer"},l.a.createElement("div",{className:"article-card__footer-top"},r()(E)||r()(E.edges)?null:E.edges.map((function(e,t){return l.a.createElement(o.Fragment,{key:"term-"+t},l.a.createElement("span",{className:"article-card__term"},e.node.name),Object(d.c)(E.edges,t))})),m?l.a.createElement("h1",{className:"article-card__title",dangerouslySetInnerHTML:{__html:Object(d.n)(v)}}):l.a.createElement("h2",{className:"article-card__title",dangerouslySetInnerHTML:{__html:Object(d.n)(v)}})),l.a.createElement("div",{className:"article-card__meta"},l.a.createElement("time",{className:"article-card__posted-on"},!N&&Object(d.e)(_)),y&&y.authors&&l.a.createElement(u,{authors:y.authors}),y&&y.authors||!h.node.name?null:l.a.createElement("span",{className:"article-card__author"},l.a.createElement("span",{className:"article-card__by"}," By "),l.a.createElement("span",{className:"article-card__posted-by"},h.node.name)))))});p.defaultProps={post:{},animate:!0,className:"",isSinglePage:!1};t.a=p},nxYM:function(e,t,a){"use strict";var n=a("q1tI"),r=a.n(n),o=a("TSYQ"),l=a.n(o),i=a("5OW0"),c=a("f23f"),s=(a("Hp5/"),function(e){var t=e.form,a=e.tagName,o=e.tagParent,s=Object(n.useState)(!1),m=s[0],u=s[1],d=t.title,p=t.portalId,f=t.formId;if(!f)return null;var h=l()("ow-subscribe row",{"ow-subscribe--form-submitted":m});return r.a.createElement("div",{className:h},r.a.createElement("div",{className:"small-12 medium-8 large-8 column"},r.a.createElement("h2",{className:"ow-subscribe__title",dangerouslySetInnerHTML:{__html:Object(c.n)(d)}})),r.a.createElement("div",{className:"small-12 medium-4 large-4 column"},r.a.createElement("div",{className:"ow-subscribe__form"},r.a.createElement(i.a,{portalId:p,formId:f,setSubmitted:u,tagName:a,tagParent:o}))))});s.defaultProps={form:{title:"",portalId:"",formId:""},tagName:"",tagParent:""},t.a=s},pq2P:function(e,t,a){"use strict";var n=a("E+oP"),r=a.n(n),o=a("q1tI"),l=a.n(o),i=a("Wbzz"),c=a("RexG"),s=a("f23f"),m=(a("6MLY"),function(e){var t=e.posts,a=e.title,n=e.eventTracking;if(r()(t))return null;return l.a.createElement("section",{className:"related-posts"},l.a.createElement("h3",{className:"related-posts__section-title"},a||"You might be interested in these:"),l.a.createElement("div",{className:"related-posts__articles row"},t.map((function(e,t){return l.a.createElement("div",{key:e.postId+"-"+t,className:"small-12 medium-6 columns column-block"},l.a.createElement(i.Link,{className:"related-posts-articles__card-link",to:Object(s.m)(e.uri),onClick:function(){return function(e){!0===n&&0===e?Object(s.o)("1st Blog","Blog1"):!0===n&&1===e&&Object(s.o)("2nd Blog","Blog2")}(t)}},l.a.createElement(c.a,{post:e,animate:!1,isWide:!1})))}))))});m.defaultProps={posts:[]},t.a=m},sUnA:function(e,t,a){},"u1/e":function(e,t,a){"use strict";a.r(t);var n=a("E+oP"),r=a.n(n),o=a("q1tI"),l=a.n(o),i=a("f23f"),c=a("I/Ru"),s=a("RexG"),m=a("nxYM"),u=a("pq2P"),d=a("lGLn"),p=a("KHXl"),f=a("rXDf"),h=(a("97ya"),function(e){var t=e.title,a=e.sectionTitle,n=e.link;r()(a)&&(a="Share this article"),r()(n)&&(n="undefined"!=typeof window?window.location.href:"");var o="https://www.linkedin.com/shareArticle?url="+encodeURIComponent(n)+"&title="+encodeURIComponent(t),i="https://twitter.com/intent/tweet?url="+encodeURIComponent(n)+"&text="+encodeURIComponent(t),c="https://www.facebook.com/sharer.php?u="+encodeURIComponent(n)+"&title="+encodeURIComponent(t);return l.a.createElement("div",{className:"social-share"},l.a.createElement("h6",{className:"social-share__title"},a),l.a.createElement("ul",null,l.a.createElement("li",null,l.a.createElement("a",{className:"social-share__linkedin",target:"_blank",rel:"noopener noreferrer",href:o},l.a.createElement(f.a,null))),l.a.createElement("li",null,l.a.createElement("a",{className:"social-share__twitter",target:"_blank",rel:"noopener noreferrer",href:i},l.a.createElement(p.a,null))),l.a.createElement("li",null,l.a.createElement("a",{className:"social-share__facebook",target:"_blank",rel:"noopener noreferrer",href:c},l.a.createElement(d.a,null)))))});h.defaultProps={title:"",sectionTitle:""};var g=h,b=a("42pF"),w=function(e){var t=e.uri,a=e.articleTags,n=e.postId,r=Object(o.useState)(!1),c=r[0],s=r[1],m=a.join(", "),u=Object(i.i)()?window.location.origin+Object(i.k)(t):"";return Object(o.useEffect)((function(){!function(){if(!0===window.spotIMScriptAdded||!0===c)return!1;s(!0);var e=document.createElement("script");e.async=!0,e.onload=function(){s(!1)},e.src="https://launcher.spot.im/spot/"+b.b,e.dataset.spotimModule="spotim-launcher",document.head.appendChild(e),window.spotIMScriptAdded=!0}()}),[]),l.a.createElement("div",{"data-spotim-module":"conversation","data-post-url":u,"data-article-tags":m,"data-post-id":n})};w.defaultProps={uri:"",articleTags:[],postId:0};var E=w,_=a("9pBV"),v=a.n(_),y=a("TSYQ"),N=a.n(y),I=(a("21VO"),function(e){var t=e.form,a=Object(o.useState)(!1),n=a[0],r=a[1],c=t.formHeadline,s=t.formPortalid,m=t.formId,u=t.thankYouMessage,d=t.downloadLink,p=t.downloadLabel;if(!m)return null;var f=N()("ow-single-subscribe",{"ow-single-subscribe--form-submitted":n});return l.a.createElement("div",{className:f},l.a.createElement("div",{className:"row align-center"},l.a.createElement("div",{className:"small-12 medium-9 large-10 column"},n?null:l.a.createElement("h2",{className:"ow-single-subscribe__title",dangerouslySetInnerHTML:{__html:Object(i.n)(c)}}))),l.a.createElement("div",{className:"row align-center"},l.a.createElement("div",{className:"small-12 medium-9 large-10 column"},l.a.createElement("div",{className:"ow-single-subscribe__form"},l.a.createElement(l.a.Fragment,null,l.a.createElement(v.a,{portalId:s,formId:m,onSubmit:function(){r(!0)}}),n?l.a.createElement("div",{className:"thankyou-message"},l.a.createElement("div",{dangerouslySetInnerHTML:{__html:Object(i.n)(u)}}),l.a.createElement("a",{className:"single-cpt__download-media",href:d,rel:"noopener noreferrer",target:"_blank",download:!0},p)):null)))))});I.defaultProps={form:{title:"",portalId:"",formId:""}};var O=I,P=(a("2t4M"),a("vrFN"));t.default=function(e){var t=e.pageContext,a=e.uri,n=t.id,o=t.databaseId,d=t.title,p=t.content,f=t.relatedPosts,h=t.form,b=t.singlePostHubSpotForm,w="post-"+o+" post type-post status-publish format-standard hentry category-react tag-accessibility tag-gatsby entry",_=t.seo,v=t.siteUrl,y=t.postUri,N=r()(t.large)||r()(t.large.sourceUrl)?"":t.large.sourceUrl;return l.a.createElement(c.a,{title:d,uri:a,className:"single single-post"},l.a.createElement(P.a,{title:d,seoData:_,uri:y,header:{siteTitle:"OpenWeb"},openGraphImage:N}),l.a.createElement("article",{"data-id":n,id:"post-"+o,className:w},l.a.createElement(s.a,{post:t,isSinglePage:!0,className:"article-card--article-header",animate:!1,isWide:!0}),l.a.createElement("div",{className:"entry-content post-container",dangerouslySetInnerHTML:{__html:Object(i.n)(p)}}),l.a.createElement("div",{className:"post-container"},l.a.createElement(O,{form:b})),l.a.createElement("div",{className:"post-container"},l.a.createElement(g,{title:d,link:""+v+y}))),l.a.createElement(u.a,{posts:f}),l.a.createElement(E,{postId:o,uri:a}),l.a.createElement(m.a,{form:h,tagName:"Blog_PostSubmit",tagParent:"BLOG"}))}},vrFN:function(e,t,a){"use strict";var n=a("Y3Pm"),r=a.n(n),o=a("E+oP"),l=a.n(o),i=a("q1tI"),c=a.n(i),s=a("qhky"),m=a("Wbzz"),u=a("42pF");function d(e){var t=e.description,a=e.lang,n=e.meta,o=e.title,i=(e.header.siteTitle,e.seoData),d=e.uri,p=(e.openGraphImage,Object(m.useStaticQuery)("2615726974")),f=p.site,h=p.OWGraphQL.seo;l()(i)&&(i={title:"",metaDesc:"",opengraphDescription:"",twitterDescription:"",opengraphTitle:"",twitterTitle:"",opengraphImage:{sourceUrl:""},twitterImage:{sourceUrl:""}}),!l()(i)&&l()(i.title)&&(i.title=""),!l()(i)&&l()(i.metaDesc)&&(i.metaDesc=""),!l()(i)&&l()(i.opengraphDescription)&&(i.opengraphDescription=""),!l()(i)&&l()(i.twitterDescription)&&(i.twitterDescription=""),!l()(i)&&l()(i.opengraphTitle)&&(i.opengraphTitle=""),!l()(i)&&l()(i.twitterTitle)&&(i.twitterTitle=""),l()(i)||!l()(i.opengraphImage)&&!l()(i.opengraphImage.sourceUrl)||(i.opengraphImage={sourceUrl:""}),l()(i)||!l()(i.twitterImage)&&!l()(i.twitterImage.sourceUrl)||(i.twitterImage={sourceUrl:""}),l()(i)||!l()(i.schema)&&!l()(i.schema.raw)||(i.schema={raw:""}),l()(i.schema.raw)||l()(u.a)||l()("https://www.openweb.com")||(i.schema.raw=r()(i.schema.raw,new RegExp(u.a,"g"),"https://www.openweb.com"));var g=i.title||o,b=i.metaDesc||t||f.siteMetadata.description,w=i.opengraphDescription||b,E=i.twitterDescription||b,_=i.opengraphTitle||g,v=i.twitterTitle||g,y=h.webmaster.googleVerify||"",N=""+f.siteMetadata.siteUrl+d,I=f.siteMetadata.fbAppId,O=""+f.siteMetadata.siteUrl+d,P=i.metaRobotsNofollow,S="follow"===P?"index":"noindex",j=i.schema.raw,k=i.opengraphImage.sourceUrl;return c.a.createElement(s.a,{htmlAttributes:{lang:a},title:g,titleTemplate:"%s",link:O?[{rel:"canonical",href:O}]:[],meta:[{name:"title",content:g},{name:"description",content:b},{property:"og:locale",content:"en_US"},{property:"og:url",content:N},{property:"og:image",content:k},{property:"og:site_name",content:"OpenWeb"},{property:"og:title",content:_},{property:"og:description",content:w},{property:"og:type",content:"website"},{name:"twitter:card",content:"summary_large_image"},{name:"twitter:creator",content:f.siteMetadata.author},{name:"twitter:title",content:v},{name:"twitter:description",content:E},{name:"twitter:image",content:k},{name:"robots",content:S+", "+P},{name:"google-site-verification",content:y},{property:"fb:app_id",content:I}].concat(n)},j&&c.a.createElement("script",{type:"application/ld+json"},j))}d.defaultProps={description:"",lang:"en",meta:[]},t.a=d}}]);
//# sourceMappingURL=component---src-templates-single-index-js-60b73a7158c64e96d439.js.map