text: "use strict";(self.webpackChunklearn_anything=self.webpackChunklearn_anything||[]).push([[223],{83012:function(e,t,r){r.r(t),r.d(t,{default:function(){return N}});var a=r(67294),l=r(25444),i=r(95432),n=r(70265),o=r(51754),d=r.n(o),c=r(9031),s=r.n(c),m=(r(63680),r(48093)),p=r(93751),g=r(16306),u=r(23310),h=r(22667),x=r(62),E=r(169),y=r(43995),f=r(53197),b=r(4270),v=r(34965),k=h.Z.SubMenu,Z=x.Z.Content,w=function(e){var t=e.toc,i=e.md,n=e.movie,o=e.tags,d=e.siteMetadata,c=n.title,s=n.author,m=r(73964);m.locale("zh-cn");var p=m(n.published_at).format("YYYY-MM-DD HH:mm:ss"),w=(new DOMParser).parseFromString(t,"text/xml"),C=1,R=[];R.push(a.createElement(h.Z.Item,{key:(C++).toString(),style:{height:40}},a.createElement(l.Link,{to:"/"},"首页")));for(var M=r(97490),S=w.getElementsByTagName("li"),H=0;H<S.length;H++){var L=S[H].childNodes[0].textContent;R.push(a.createElement(h.Z.Item,{key:(C++).toString(),style:{height:40}},a.createElement("a",{href:"#"+M(L)},L)))}return a.createElement(x.Z,null,a.createElement("div",{style:{margin:"10px 10px 0 10px",backgroundColor:"white",border:"solid 1px #ddd",borderRadius:10}},a.createElement(l.Link,{to:"/"},a.createElement(E.Z,{className:"site-page-header",onBack:function(){return window.open("/")},title:"返回首页",style:{float:"left",color:"#999"}})),a.createElement("div",{style:{paddingRight:20,float:"right"}},a.createElement(h.Z,{style:{height:48},theme:"light",mode:"horizontal",defaultSelectedKeys:"1"},a.createElement(k,{key:"submenu",icon:a.createElement(f.Z,null),title:"目录"},R)))),a.createElement("div",{style:{minHeight:"calc(100vh - 152px)"}},a.createElement("div",{className:"articleHeader",style:{backgroundColor:"white",margin:"10px 10px 0 10px",paddingTop:30,paddingLeft:24,paddingRight:24,borderTop:"solid 1px #ddd",borderRight:"solid 1px #ddd",borderLeft:"solid 1px #ddd",borderRadius:"10px 10px 0 0"}},a.createElement("h1",{style:{textAlign:"center",lineHeight:"30px",fontSize:22,letterSpacing:1,marginBottom:0,color:"#dc5922"}},c),a.createElement("div",{style:{color:"#777",paddingTop:30}}," ",s," ",a.createElement(g.Z,{type:"vertical"})," ",p," ",o),a.createElement("div",null,a.createElement(g.Z,{style:{marginTop:10,marginBottom:0,height:"2px"}}))),a.createElement(Z,{className:"site-layout"},a.createElement("div",{className:"site-layout-background",style:{padding:15,margin:"0 10px 0 10px",textAlign:"left",borderRight:"solid 1px #ddd",borderBottom:"solid 1px #ddd",borderLeft:"solid 1px #ddd",borderRadius:"0 0 10px 10px",backgroundColor:"white"}},a.createElement("article",{className:"markdown-body"},(0,u.ZP)(i)),a.createElement(a.Fragment,null))),a.createElement("div",{style:{margin:"10px 10px 0 10px"}},a.createElement(v.Z,null))),a.createElement(b.Z,{data:d}),a.createElement(y.Z,{visibilityHeight:50}))},C=r(60477),R=r(58078),M=C.Z.Search,S=x.Z.Content,H=x.Z.Sider,L=function(e){var t=e.toc,i=e.md,n=e.movie,o=e.tags,d=e.siteMetadata,c=n.title,s=n.author,m=r(73964);m.locale("zh-cn");var p=m(n.published_at).format("YYYY-MM-DD HH:mm:ss");return a.createElement(x.Z,{style:{maxWidth:960,margin:"auto"}},a.createElement(H,{style:{overflow:"auto",height:"calc(100vh - 20px)",position:"fixed",backgroundColor:"white",border:"solid 1px #ddd",borderRadius:10,margin:"10px 0 10px 10px"}},a.createElement("div",{style:{borderBottom:"solid 1px #ddd",borderRadius:"10px 10px 0 0",height:50,margin:"0 5px 0 5px",backgroundColor:"white",position:"fixed"}},a.createElement(l.Link,{to:"/"},a.createElement("img",{src:R.Z,alt:"logo",style:{height:26,width:180,margin:"12px 0 0 3px"}}))),a.createElement("div",{style:{marginTop:70}},(0,u.ZP)(t))),a.createElement(x.Z,{style:{marginLeft:210}},a.createElement("div",{style:{height:50,margin:"10px 10px 0 10px",backgroundColor:"white",border:"solid 1px #ddd",borderRadius:10}},a.createElement(l.Link,{to:"/"},a.createElement(E.Z,{className:"site-page-header",onBack:function(){return window.open("/")},title:"返回首页",style:{float:"left",color:"#999"}})),a.createElement(M,{placeholder:"输入查询内容...",allowClear:!0,enterButton:!0,size:"large",style:{width:200,marginRight:10,marginTop:9,float:"right"},onSearch:function(e){""!==e.trim()&&window.open("/search?input="+e)}})),a.createElement("div",{style:{minHeight:"calc(100vh - 148px)"}},a.createElement("div",{className:"articleHeader",style:{backgroundColor:"white",margin:"10px 10px 0px 10px",borderTop:"solid 1px #ddd",borderRight:"solid 1px #ddd",borderLeft:"solid 1px #ddd",borderRadius:"10px 10px 0 0",paddingTop:30,paddingLeft:24,paddingRight:24}},a.createElement("h1",{style:{textAlign:"center",marginBottom:0,lineHeight:"35px",fontSize:28,color:"#dc5922",letterSpacing:1.5}},c),a.createElement("div",{style:{color:"#777",paddingTop:30}}," ",s," ",a.createElement(g.Z,{type:"vertical"})," ",p," ",o),a.createElement("div",null,a.createElement(g.Z,{style:{marginTop:10,marginBottom:0,height:"2px"}}))),a.createElement(S,{style:{margin:"0px 10px 0 10px",overflow:"initial"}},a.createElement("div",{className:"site-layout-background",style:{padding:24,borderRight:"solid 1px #ddd",borderBottom:"solid 1px #ddd",borderLeft:"solid 1px #ddd",borderRadius:"0 0 10px 10px",textAlign:"left",backgroundColor:"white"}},a.createElement("article",{className:"markdown-body"},(0,u.ZP)(i)),a.createElement(a.Fragment,null))),a.createElement("div",{style:{margin:"10px 10px 0 10px"}},a.createElement(v.Z,null))),a.createElement(b.Z,{data:d})),a.createElement(y.Z,{visibilityHeight:50}))},B=function(e){var t=e.children;return(0,m.useMediaQuery)({maxWidth:767})?t:null},T=function(e){var t=e.children;return(0,m.useMediaQuery)({minWidth:768})?t:null},N=function(e){var t=e.data,o=t.strapiMovies,c=o.title,m=o.description,u=o.content,h=[],x=1;o.movie_tags.forEach((function(e){h.push(a.createElement(g.Z,{key:(x++).toString(),type:"vertical"})),h.push(a.createElement(l.Link,{key:(x++).toString(),to:"/tag/"+e.slug},e.name))}));var E=r(93970),y=r(97490),f=function(e){return y(e)},b="",v=r(97804)({html:!0,xhtmlOut:!0,typographer:!0,highlight:function(e,t){if(t&&E.getLanguage(t))try{return'<pre class="hljs"><code>'+E.highlight(e,{language:t,ignoreIllegals:!0}).value+"</code></pre>"}catch(r){}return'<pre class="hljs"><code>'+v.utils.escapeHtml(e)+"</code></pre>"}}).use(d()).use(s(),{multiline:!1,rowspan:!1,headerless:!1}).use(i.Z,{permalink:!1,permalinkBefore:!1,slugify:f}).use(n.Z,{containerClass:"toc",containerId:"toc",listType:"ul",listClass:"listClass",linkClass:"linkClass",slugify:f,callback:function(e,t){b=e}}),k=v.render(u);return a.createElement("div",{style:{backgroundColor:"#f0f2f5"}},a.createElement(p.Z,{title:c,description:m}),a.createElement(B,null,a.createElement(w,{toc:b,md:k,movie:o,tags:h,siteMetadata:t.site.siteMetadata})),a.createElement(T,null,a.createElement(L,{toc:b,md:k,movie:o,tags:h,siteMetadata:t.site.siteMetadata})))}}}]);
  //# sourceMappingURL=component---src-templates-movie-movie-detail-gen-js-d10b1615cb5e1f549a02.js.map