(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9543],{60911:function(e,t,r){"use strict";r.d(t,{Z:function(){return O}});var n,o,i=r(92777),a=r(82262),c=r(10748),u=r(45959),d=r(63553),l=r(37247),m=r(59499),f=r(67294),p=r(47166),h=r.n(p),_=r(22676),v=r.n(_);function b(){return b=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(e[s]=r[s])}return e},b.apply(this,arguments)}var w=function(e){return f.createElement("svg",b({xmlns:"http://www.w3.org/2000/svg",width:192,height:192,viewBox:"0 0 256 256",role:"img"},e),n||(n=f.createElement("path",{d:"M48 128V40a8 8 0 0 1 8-8h96l56 56v40",fill:"none",stroke:"#000",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:16})),o||(o=f.createElement("path",{fill:"none",stroke:"#000",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:16,d:"M152 32v56h56M48 200h16a16 16 0 0 0 0-32H48v48M216 168h-28v48M212 196h-24M128 216a24 24 0 0 0 0-48h-14v48Z"})))},y=r(85893);function g(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,s=(0,l.Z)(e);if(t){var n=(0,l.Z)(this).constructor;r=Reflect.construct(s,arguments,n)}else r=s.apply(this,arguments);return(0,d.Z)(this,r)}}var j=h().bind(v()),x=function(e){(0,u.Z)(r,e);var t=g(r);function r(){var e;(0,i.Z)(this,r);for(var s=arguments.length,n=new Array(s),o=0;o<s;o++)n[o]=arguments[o];return e=t.call.apply(t,[this].concat(n)),(0,m.Z)((0,c.Z)(e),"state",{success:!1}),(0,m.Z)((0,c.Z)(e),"handleSuccess",(function(){var t=e.props.onSuccess;e.setState({loading:!1,success:!0}),t&&t()})),e}return(0,a.Z)(r,[{key:"componentDidMount",value:function(){var e=this,t=this.props,r=t.formId,n=t.sfdcCampaignId,o=document.createElement("script");o.src="https://js.hsforms.net/forms/v2.js",document.body.appendChild(o),o.addEventListener("load",(function(){window.hbspt&&window.hbspt.forms.create({portalId:"20523749",formId:r,sfdcCampaignId:n,target:"#hubspotForm",onFormSubmit:function(t){setTimeout((function(){e.handleSuccess()}),1200)}})})),window.jQuery=window.jQuery||function(e){return"string"==typeof e?document.querySelector(s):e}}},{key:"render",value:function(){var e=this.state.success,t=this.props,r=t.title,s=t.successMessage,n=t.downloadAsset,o=void 0===n?null:n;return(0,y.jsxs)("div",{className:j("root"),children:[(0,y.jsxs)("div",{className:j("form-wrapper",{hidden:e}),children:[r&&(0,y.jsx)("h3",{children:r}),(0,y.jsx)("div",{id:"hubspotForm"})]}),e&&(0,y.jsxs)("div",{className:j("success-message",{has_download:o}),children:[s||"Thank you.",o&&(0,y.jsxs)("a",{className:j("download-button"),href:o.fields.file.url,target:"_blank",download:!0,children:[(0,y.jsx)(w,{height:24,width:24}),o.fields.title]})]})]})}}]),r}(f.PureComponent),O=x},33636:function(e,t,r){"use strict";r.r(t),r.d(t,{__N_SSG:function(){return y},default:function(){return g}});r(67294);var s=r(11163),n=r(8423),o=r(59499),i=r(47166),a=r.n(i),c=(r(41664),r(9980)),u=r.n(c),d=r(92477),l=r(60911),m=r(53374),f=r.n(m),p=r(85893);function h(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);t&&(s=s.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,s)}return r}function _(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?h(Object(r),!0).forEach((function(t){(0,o.Z)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):h(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var v=a().bind(f()),b=function(e){var t=e.title,r=e.summary,s=void 0===r?null:r,n=e.form,o=void 0===n?null:n,i=e.pageName,a=e.downloadAsset,c=void 0===a?null:a,m=t&&t.length>50?"".concat(t.slice(0,50).trim(),"..."):t;return(0,p.jsx)("div",{className:v("root"),children:(0,p.jsxs)("div",{className:v("inner"),children:[(0,p.jsx)(d.Z,{parentFolderName:"Asset",parentFolderLink:null,folderName:m}),(0,p.jsxs)("div",{className:v("main",{has_form:o}),children:[(0,p.jsxs)("div",{className:v("info"),children:[(0,p.jsx)("h1",{className:v("title"),children:t}),s&&(0,p.jsx)("div",{className:v("summary"),dangerouslySetInnerHTML:{__html:u()({breaks:!0}).render(s)}})]}),o&&(0,p.jsx)("div",{className:v("form-wrapper"),children:o.fields.formId&&(0,p.jsx)(l.Z,_(_({},o.fields),{},{onSuccess:function(){},pageName:i,downloadAsset:c}))})]})]})})},w=r(24684),y=!0,g=function(e){var t=e.site,r=e.title,o=e.mainImage,i=e.summary,a=e.body,c=e.form,u=e.downloadAsset;if((0,s.useRouter)().isFallback)return(0,p.jsx)("div",{children:"Loading..."});"Anyscale - Asset - ".concat(r);return(0,p.jsxs)(n.Z,{site:t,title:r,description:i,shareImage:o,children:[(0,p.jsx)(b,{title:r,summary:i,form:c,downloadAsset:u}),a&&(0,p.jsx)("div",{className:cx("event-body"),children:(0,p.jsx)(w.Z,{body:a})})]})}},17310:function(e,t,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/asset/[id]",function(){return r(33636)}])},53374:function(e){e.exports={root:"AssetHero_root__hggny",main:"AssetHero_main__OQpIx",info:"AssetHero_info__14we6",has_form:"AssetHero_has_form__D91IV",title:"AssetHero_title__RqQAF",summary:"AssetHero_summary__SZJXl","form-wrapper":"AssetHero_form-wrapper__WXhfv"}},22676:function(e){e.exports={root:"HubspotFormEmbed_root__rb_HI","form-wrapper":"HubspotFormEmbed_form-wrapper__GszB9",hidden:"HubspotFormEmbed_hidden__zTRtM","success-message":"HubspotFormEmbed_success-message__g_8SL",fadeIn:"HubspotFormEmbed_fadeIn__Z_otd",messages:"HubspotFormEmbed_messages__d567I",message:"HubspotFormEmbed_message__90T6s",active:"HubspotFormEmbed_active__dsV4D","download-button":"HubspotFormEmbed_download-button__lRof8"}}},function(e){e.O(0,[9809,1812,9065,9614,8423,7846,9774,2888,179],(function(){return t=17310,e(e.s=t);var t}));var t=e.O();_N_E=t}]);