(window.webpackJsonp=window.webpackJsonp||[]).push([[5],{437:function(t,e,n){},441:function(t,e,n){"use strict";n(437)},442:function(t,e,n){"use strict";n(167);var o={props:{visible:{type:Boolean,default:!1},url:String,timeline:{type:Array,default:function(){return[]}}},watch:{visible:function(t){document.body.style.overflow=t?"hidden":"auto"}},methods:{handleClose:function(){this.$emit("update:visible",!1)},handleControl:function(time){var t=time.split(":"),e=3600*parseInt(t[0])+60*parseInt(t[1])+parseInt(t[2]);this.$refs.video.currentTime=e}}},c=(n(441),n(2)),component=Object(c.a)(o,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.visible?n("div",{staticClass:"video",on:{click:function(e){return e.target!==e.currentTarget?null:t.handleClose.apply(null,arguments)}}},[n("div",{staticClass:"video-wrapper",class:{"has-timeline":t.timeline.length>0&&t.$store.state.clientWidth>768}},[n("video",{ref:"video",attrs:{src:t.url,preload:"auto",autoplay:"",controls:""}}),t._v(" "),t.timeline.length>0&&t.$store.state.clientWidth>768?n("div",{staticClass:"timeline"},[n("p",{staticClass:"timeline-title"},[t._v("精彩看点")]),t._v(" "),n("div",{staticClass:"timeline-body"},t._l(t.timeline,(function(e,o){return n("p",{key:o,staticClass:"item",on:{click:function(n){return t.handleControl(e.time)}}},[n("span",{staticClass:"time"},[t._v(t._s(e.time))]),t._v(" "),n("span",{staticClass:"text"},[t._v(t._s(e.text))])])})),0)]):t._e(),t._v(" "),t.$store.state.clientWidth>768?n("div",{staticClass:"close-btn",on:{click:t.handleClose}},[n("svg",{staticClass:"icon",attrs:{"aria-hidden":"true"}},[n("use",{attrs:{"xlink:href":"#iconguanbi"}})])]):t._e()])]):t._e()}),[],!1,null,"3e34e658",null);e.a=component.exports},622:function(t,e,n){"use strict";var o=n(442),c=n(3),l=(n(24),n(17),n(62)),r=n.n(l),d=n(9),f=n.n(d),v=n(862),m=n.n(v),h={company:[{required:!0,message:"请填写公司"}],name:[{required:!0,message:"请填写姓名"},{min:0,max:10,message:"姓名最大长度为10"}],email:[{required:!0,message:"请填写邮箱"},{pattern:/^[a-zA-Z0-9_-]+@[a-zA-Z0-9_-]+(\.[a-zA-Z0-9_-]+)+$/,message:"请填写正确格式的邮箱"}],tel:[{required:!0,message:"请填写电话"},{pattern:/^[+]*[(]{0,1}[0-9]{1,4}[)]{0,1}[-\s\./0-9]*$/g,message:"请填写正确格式的电话"}],message:[{required:!0,message:"咨询内容不能为空"}]},_={props:{visible:{type:Boolean,default:!1},pdfs:Array},watch:{visible:function(t){document.body.style.overflow=t?"hidden":"auto"}},data:function(){return{formModal:{company:"",email:"",name:"",tel:"",message:""},submitText:"进入下载",focusIndex:-1,comfirmLock:!1,submitSuccess:!1,checked:!1}},mounted:function(){window.localStorage.getItem("aiforceCanDownload")&&(this.submitSuccess=!0)},methods:{handleDownload:function(t){m.a.saveAs(t.url,t.name,{type:"application/pdf; charset=utf-8"})},toggleOpen:function(){this.$emit("update:visible",!1)},sendContactHandler:function(){var t=this;t.validate((function(){t.submitText="提交中...",t.comfirmLock||(t.comfirmLock=!0,t.sendContact().then((function(e){0===e.data.code&&(t.formModal={email:"",name:"",tel:"",company:"",message:""},t.submitSuccess=!0,window.localStorage.setItem("aiforceCanDownload",!0),t.submitText="进入下载"),t.comfirmLock=!1})))}))},validate:function(t){var e=this;new r.a(h).validate(e.formModal,(function(n,o){if(n){var c=e.$refs;n.forEach((function(t){var n=t.field,o=t.message,l="Array"===e.Type(c[n])?c[n][0]:c[n];l.classList.add("error-field"),l.dataset.error=o}))}else t&&t()}))},sendContact:function(){var t=this;return Object(c.a)(regeneratorRuntime.mark((function e(){var n,o;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=Object.assign({},t.formModal),e.prev=1,e.next=4,f.a.post("/public_api/contact/create",n);case 4:return o=e.sent,e.abrupt("return",o);case 8:e.prev=8,e.t0=e.catch(1),console.log(e.t0);case 11:case"end":return e.stop()}}),e,null,[[1,8]])})))()},focusHandler:function(t,e){var n=this.$refs,o="Array"===this.Type(n[e])?n[e][0]:n[e];this.focusIndex=t,o.dataset.error=""}}},w=(n(863),n(2)),component=Object(w.a)(_,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.visible?n("div",{staticClass:"download-form",on:{click:function(e){return e.target!==e.currentTarget?null:t.toggleOpen.apply(null,arguments)}}},[n("div",{staticClass:"form-box"},[n("span",{staticClass:"close-btn",on:{click:function(e){return e.stopPropagation(),t.toggleOpen.apply(null,arguments)}}},[n("svg",{staticClass:"icon",attrs:{"aria-hidden":"true"}},[n("use",{attrs:{"xlink:href":"#iconguanbi"}})])]),t._v(" "),t.submitSuccess?n("div",{staticClass:"download form"},t._l(t.pdfs,(function(e,o){return n("div",{key:o,staticClass:"download-card"},[n("div",{},[n("p",{staticClass:"download-card-title"},[t._v(t._s(e.title))]),t._v(" "),n("p",{staticClass:"download-card-desc"},[t._v(t._s(e.desc))])]),t._v(" "),t.$store.state.clientWidth>768?n("div",{staticClass:"download-card-button",on:{click:function(n){return t.handleDownload(e)}}},[n("svg",{staticClass:"icon",attrs:{"aria-hidden":"true"}},[n("use",{attrs:{"xlink:href":"#iconxiazai"}})])]):n("a",{staticClass:"download-card-button",attrs:{href:e.url,target:"_blank"}},[n("svg",{staticClass:"icon",attrs:{"aria-hidden":"true"}},[n("use",{attrs:{"xlink:href":"#iconxiazai"}})])])])})),0):n("div",{staticClass:"form"},[n("h4",{staticClass:"form-title"},[t._v("留下联系方式")]),t._v(" "),t._l(["company","email","name","tel","message"],(function(e,o){return n("div",{key:o,ref:e,refInFor:!0,class:["input-wrap",t.focusIndex===o?"i-focus":""],attrs:{"data-error":""}},[n("el-input",{attrs:{type:"message"===e?"textarea":"text",rows:""===t.formModal.message?1:2,placeholder:t.$t("v2.contact."+e)},on:{focus:function(n){return t.focusHandler(o,e)},blur:function(e){t.focusIndex=-1}},model:{value:t.formModal[e],callback:function(n){t.$set(t.formModal,e,n)},expression:"formModal[prefix]"}})],1)})),t._v(" "),n("div",{staticClass:"footer-checkbox"},[n("el-checkbox",{model:{value:t.checked,callback:function(e){t.checked=e},expression:"checked"}}),t._v(" "),n("span",{staticClass:"first-span"},[t._v("我已阅读并同意")]),t._v(" "),n("a",{staticClass:"link",attrs:{href:"/privacy",target:"_blank"}},[t._v("《隐私政策》")]),t._v(" "),n("span",[t._v("和")]),t._v(" "),n("a",{staticClass:"link",attrs:{href:"/legal-statement",target:"_blank"}},[t._v("《法律声明》")])],1),t._v(" "),n("button",{staticClass:"submit",attrs:{disabled:t.comfirmLock||!t.checked},on:{click:t.sendContactHandler}},[t._v("\n "+t._s(t.submitText)+"\n ")])],2)])]):t._e()}),[],!1,null,"6bdadba4",null),C=component.exports,y={components:{VideoDialog:o.a,ContactDownload:C},props:{cloud:Object},data:function(){return{videoVisible:!1,contactVisible:!1}},methods:{handleClick:function(){"video"===this.cloud.type?this.videoVisible=!0:this.contactVisible=!0}}},k=(n(864),Object(w.a)(y,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("section",{staticClass:"cloud-classroom-section",style:{background:t.cloud.bgColor}},[n("div",{staticClass:"cloud-classroom"},[n("div",{staticClass:"cloud-classroom-left"},[n("div",{staticClass:"cloud-classroom-left-tag"},[n("span",{style:{color:t.cloud.tagColor}},[t._v(t._s(t.cloud.tag))])]),t._v(" "),n("p",{staticClass:"cloud-classroom-left-title"},[t._v(t._s(t.cloud.title))]),t._v(" "),n("p",{staticClass:"cloud-classroom-left-desc"},[t._v(t._s(t.cloud.desc))])]),t._v(" "),n("div",{staticClass:"cloud-classroom-right"},[n("div",{staticClass:"cloud-classroom-right-button",style:{background:t.cloud.buttonBgColor},on:{click:t.handleClick}},["video"===t.cloud.type?n("svg",{staticClass:"icon",attrs:{"aria-hidden":"true"}},[n("use",{attrs:{"xlink:href":"#iconbofang"}})]):t._e(),t._v(" "),"document"===t.cloud.type?n("svg",{staticClass:"icon",attrs:{"aria-hidden":"true"}},[n("use",{attrs:{"xlink:href":"#iconxiazai1"}})]):t._e(),t._v(" "),n("span",[t._v(t._s("video"===t.cloud.type?"立即播放":"立即下载"))])])])]),t._v(" "),"video"===t.cloud.type?n("video-dialog",{attrs:{visible:t.videoVisible,url:t.cloud.video.url,timeline:t.cloud.video.timeline},on:{"update:visible":function(e){t.videoVisible=e}}}):t._e(),t._v(" "),n("contact-download",{attrs:{visible:t.contactVisible,pdfs:t.cloud.pdfs},on:{"update:visible":function(e){t.contactVisible=e}}})],1)}),[],!1,null,"347b8a80",null));e.a=k.exports},715:function(t,e,n){},716:function(t,e,n){},862:function(t,e,n){(function(n){var o,c,l;c=[],o=function(){"use strict";function b(a,b){return void 0===b?b={autoBom:!1}:"object"!=typeof b&&(console.warn("Deprecated: Expected third argument to be a object"),b={autoBom:!b}),b.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(a.type)?new Blob(["\ufeff",a],{type:a.type}):a}function e(a,b,t){var e=new XMLHttpRequest;e.open("GET",a),e.responseType="blob",e.onload=function(){g(e.response,b,t)},e.onerror=function(){console.error("could not download file")},e.send()}function o(a){var b=new XMLHttpRequest;b.open("HEAD",a,!1);try{b.send()}catch(a){}return 200<=b.status&&299>=b.status}function c(a){try{a.dispatchEvent(new MouseEvent("click"))}catch(t){var b=document.createEvent("MouseEvents");b.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),a.dispatchEvent(b)}}var l="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof n&&n.global===n?n:void 0,a=l.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),g=l.saveAs||("object"!=typeof window||window!==l?function(){}:"download"in HTMLAnchorElement.prototype&&!a?function(b,g,t){var i=l.URL||l.webkitURL,n=document.createElement("a");g=g||b.name||"download",n.download=g,n.rel="noopener","string"==typeof b?(n.href=b,n.origin===location.origin?c(n):o(n.href)?e(b,g,t):c(n,n.target="_blank")):(n.href=i.createObjectURL(b),setTimeout((function(){i.revokeObjectURL(n.href)}),4e4),setTimeout((function(){c(n)}),0))}:"msSaveOrOpenBlob"in navigator?function(t,g,n){if(g=g||t.name||"download","string"!=typeof t)navigator.msSaveOrOpenBlob(b(t,n),g);else if(o(t))e(t,g,n);else{var i=document.createElement("a");i.href=t,i.target="_blank",setTimeout((function(){c(i)}))}}:function(b,t,n,g){if((g=g||open("","_blank"))&&(g.document.title=g.document.body.innerText="downloading..."),"string"==typeof b)return e(b,t,n);var o="application/octet-stream"===b.type,i=/constructor/i.test(l.HTMLElement)||l.safari,c=/CriOS\/[\d]+/.test(navigator.userAgent);if((c||o&&i||a)&&"undefined"!=typeof FileReader){var r=new FileReader;r.onloadend=function(){var a=r.result;a=c?a:a.replace(/^data:[^;]*;/,"data:attachment/file;"),g?g.location.href=a:location=a,g=null},r.readAsDataURL(b)}else{var d=l.URL||l.webkitURL,f=d.createObjectURL(b);g?g.location=f:location.href=f,g=null,setTimeout((function(){d.revokeObjectURL(f)}),4e4)}});l.saveAs=g.saveAs=g,t.exports=g},void 0===(l="function"==typeof o?o.apply(e,c):o)||(t.exports=l)}).call(this,n(48))},863:function(t,e,n){"use strict";n(715)},864:function(t,e,n){"use strict";n(716)}}]);