-
Notifications
You must be signed in to change notification settings - Fork 0
/
component---src-templates-resources-index-js-5b901224d78e55ccfbc6.js
2 lines (2 loc) · 7.8 KB
/
component---src-templates-resources-index-js-5b901224d78e55ccfbc6.js
1
2
(window.webpackJsonp=window.webpackJsonp||[]).push([[35],{"/XTn":function(e,t,a){},"5dRm":function(e,t,a){"use strict";a.r(t);var r=a("q1tI"),n=a.n(r),i=a("I/Ru"),l=a("f23f"),c=(a("LQko"),function(e){var t=e.page,a=t.title,r=t.excerpt;return n.a.createElement("section",{className:"resources-sections resources-banner"},n.a.createElement("div",{className:"row"},n.a.createElement("div",{className:"small-12 columns"},n.a.createElement("h1",{className:"resources-banner__title",dangerouslySetInnerHTML:{__html:Object(l.n)(a)}})),n.a.createElement("div",{className:"small-12 columns"},n.a.createElement("div",{className:"resources-banner__excerpt",dangerouslySetInnerHTML:{__html:Object(l.n)(r)}}))))});c.defaultProps={page:{title:"",excerpt:""}};var s=c,o=a("E+oP"),m=a.n(o),u=a("sYrg"),d=a("PiD+"),p=(a("/XTn"),function(e){var t=e.data,a=e.type,r=t.title,i=t.featuredImage,c=t.description,s="Read more";return t.downloadLink&&t.downloadLink.title&&(s=t.downloadLink.title),n.a.createElement("article",{className:"resource-article "+a},n.a.createElement("div",{className:"resource-article__header"},"overview_guide"===a||m()(i)?null:n.a.createElement("figure",{className:"resource-article__figure"},n.a.createElement(d.a,Object.assign({},i.node,{lazy:!1}))),n.a.createElement("h2",{className:"resource-article__title"},r),"overview_guide"===a&&c?n.a.createElement("div",{className:"resource-article__content",dangerouslySetInnerHTML:{__html:Object(l.n)(c)}}):null),n.a.createElement("div",{className:"resource-article__footer"},n.a.createElement("div",{className:"resource-article__read-more"},n.a.createElement("span",{className:"resource-article__read-more-text"},s)," ",Object(u.a)("#000"))))});p.defaultProps={data:{title:"",uri:"",featuredImage:{node:{}}}};var g=p,w=a("Wbzz"),h=(a("khqj"),function(e){var t=e.meta,a=e.id,r=t.headline,i=t.articles;return n.a.createElement("section",{className:"resources-sections resource-list",id:a},n.a.createElement("div",{className:"row"},n.a.createElement("div",{className:"small-12 columns"},n.a.createElement("h2",{className:"resource-list__headline",dangerouslySetInnerHTML:{__html:Object(l.n)(r)}})),n.a.createElement("div",{className:"small-12 columns"},n.a.createElement("div",{className:"row"},i.map((function(e,t){return m()(e.title)||m()(e.uri)?null:n.a.createElement("div",{key:e.title+"-"+t,className:"medium-6 small-12 columns"},n.a.createElement(w.Link,{to:e.uri,className:"resource-list__card-link"},n.a.createElement(g,{data:e,type:"resource_list"})))}))))))});h.defaultProps={meta:{headline:"",articles:[{title:"",uri:"",featuredImage:{altText:"",sizes:null,sourceUrl:"",srcSet:null,mediaDetails:{width:null,height:null}}}]},sectionId:""};var v=h,_=(a("wBNA"),function(e){var t=e.meta,a=t.headline,r=t.tagline,i=t.list,c=function(e){if(void 0!==window.dataLayer){var t=e.target.closest("a.resource-list__card-link");if(t){var a=t.getAttribute("data-category"),r=t.getAttribute("data-action"),n=t.getAttribute("data-label"),i=t.getAttribute("data-value"),l=t.getAttribute("data-field-object");window.dataLayer.push({event:"resourceList",resourceCategory:a,resourceAction:r,resourceLabel:n,resourceValue:i,resourceFieldObject:l})}}};return n.a.createElement("section",{className:"resources-sections overview-guides",id:"overview-guides"},n.a.createElement("div",{className:"row"},n.a.createElement("div",{className:"small-12 columns"},n.a.createElement("h2",{className:"overview-guides__headline",dangerouslySetInnerHTML:{__html:Object(l.n)(a)}}),n.a.createElement("h3",{className:"overview-guides__tagline",dangerouslySetInnerHTML:{__html:Object(l.n)(r)}})),n.a.createElement("div",{className:"small-12 columns"},n.a.createElement("div",{className:"row"},i.map((function(e,t){return m()(e.title)||m()(e.downloadLink.url)?null:n.a.createElement("div",{key:e.title+"-"+t,className:"medium-6 small-12 columns"},n.a.createElement("a",{className:"resource-list__card-link",target:"_blank",rel:"noopener noreferrer",href:e.downloadLink.url,onClick:c,"data-category":e.gaCategory,"data-action":e.gaAction,"data-label":e.gaLabel,"data-value":e.gaValue,"data-field-object":e.gaFieldsObject},n.a.createElement(g,{data:e,type:"overview_guide"})))}))))))});_.defaultProps={meta:{headline:"",tagline:"",list:[{ctaLabel:"",ctaLink:"",title:""}]}};var E=_,f=a("vrFN");t.default=function(e){var t=e.pageContext,a=t.page,r=t.page,c=r.uri,o=r.seo,m=r.resourcesPageMeta,u=m.caseStudies,d=m.webinars,p=m.overviewGuide,g=Object(l.g)(o);return n.a.createElement(i.a,{title:"Resources",uri:c,className:"resources-page"},n.a.createElement(f.a,{title:a.title,seoData:o,uri:c,header:{siteTitle:"OpenWeb"},openGraphImage:g}),n.a.createElement(s,{page:a}),n.a.createElement(v,{meta:u,id:"case-studies"}),n.a.createElement(v,{meta:d,id:"webinars"}),n.a.createElement(E,{meta:p}))}},LQko:function(e,t,a){},khqj:function(e,t,a){},sYrg:function(e,t,a){"use strict";var r=a("q1tI"),n=a.n(r);t.a=function(e){return n.a.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"65",height:"13",viewBox:"0 0 65 13"},n.a.createElement("g",{fill:"none",fillRule:"evenodd",stroke:e,strokeLinecap:"square"},n.a.createElement("path",{d:"M7 13L0.5 6.5",transform:"matrix(-1 0 0 1 65 0)"}),n.a.createElement("path",{d:"M7 7L0.5 0.5",transform:"matrix(-1 0 0 1 65 0) matrix(1 0 0 -1 0 7)"}),n.a.createElement("path",{d:"M64.673 6.5L1.327 6.5",transform:"matrix(-1 0 0 1 65 0)"})))}},vrFN:function(e,t,a){"use strict";var r=a("Y3Pm"),n=a.n(r),i=a("E+oP"),l=a.n(i),c=a("q1tI"),s=a.n(c),o=a("qhky"),m=a("Wbzz"),u=a("42pF");function d(e){var t=e.description,a=e.lang,r=e.meta,i=e.title,c=(e.header.siteTitle,e.seoData),d=e.uri,p=(e.openGraphImage,Object(m.useStaticQuery)("2615726974")),g=p.site,w=p.OWGraphQL.seo;l()(c)&&(c={title:"",metaDesc:"",opengraphDescription:"",twitterDescription:"",opengraphTitle:"",twitterTitle:"",opengraphImage:{sourceUrl:""},twitterImage:{sourceUrl:""}}),!l()(c)&&l()(c.title)&&(c.title=""),!l()(c)&&l()(c.metaDesc)&&(c.metaDesc=""),!l()(c)&&l()(c.opengraphDescription)&&(c.opengraphDescription=""),!l()(c)&&l()(c.twitterDescription)&&(c.twitterDescription=""),!l()(c)&&l()(c.opengraphTitle)&&(c.opengraphTitle=""),!l()(c)&&l()(c.twitterTitle)&&(c.twitterTitle=""),l()(c)||!l()(c.opengraphImage)&&!l()(c.opengraphImage.sourceUrl)||(c.opengraphImage={sourceUrl:""}),l()(c)||!l()(c.twitterImage)&&!l()(c.twitterImage.sourceUrl)||(c.twitterImage={sourceUrl:""}),l()(c)||!l()(c.schema)&&!l()(c.schema.raw)||(c.schema={raw:""}),l()(c.schema.raw)||l()(u.a)||l()("https://www.openweb.com")||(c.schema.raw=n()(c.schema.raw,new RegExp(u.a,"g"),"https://www.openweb.com"));var h=c.title||i,v=c.metaDesc||t||g.siteMetadata.description,_=c.opengraphDescription||v,E=c.twitterDescription||v,f=c.opengraphTitle||h,b=c.twitterTitle||h,N=w.webmaster.googleVerify||"",y=""+g.siteMetadata.siteUrl+d,I=g.siteMetadata.fbAppId,L=""+g.siteMetadata.siteUrl+d,k=c.metaRobotsNofollow,T="follow"===k?"index":"noindex",j=c.schema.raw,D=c.opengraphImage.sourceUrl;return s.a.createElement(o.a,{htmlAttributes:{lang:a},title:h,titleTemplate:"%s",link:L?[{rel:"canonical",href:L}]:[],meta:[{name:"title",content:h},{name:"description",content:v},{property:"og:locale",content:"en_US"},{property:"og:url",content:y},{property:"og:image",content:D},{property:"og:site_name",content:"OpenWeb"},{property:"og:title",content:f},{property:"og:description",content:_},{property:"og:type",content:"website"},{name:"twitter:card",content:"summary_large_image"},{name:"twitter:creator",content:g.siteMetadata.author},{name:"twitter:title",content:b},{name:"twitter:description",content:E},{name:"twitter:image",content:D},{name:"robots",content:T+", "+k},{name:"google-site-verification",content:N},{property:"fb:app_id",content:I}].concat(r)},j&&s.a.createElement("script",{type:"application/ld+json"},j))}d.defaultProps={description:"",lang:"en",meta:[]},t.a=d},wBNA:function(e,t,a){}}]);
//# sourceMappingURL=component---src-templates-resources-index-js-5b901224d78e55ccfbc6.js.map