(self.webpackChunkPlesk=self.webpackChunkPlesk||[]).push([["views/default/help/tutorials"],{851:(e,t,a)=>{"use strict";a.r(t);var n=a(153),l=a.n(n),o=a(154),r=a(556),i=a(261),c=a.n(i),s=a(155),d=a(144),h=a(602),p=a(648),u=a(582);const m=({iframe:e,webm:t,width:a,height:n})=>{return e?(l=e,(0,o.createElement)("iframe",{src:l})):t?((e,t,a)=>{const n=document.createElement("video");let l;try{var r,i,c;null!==(r=n.canPlayType)&&void 0!==r&&r.call(n,'video/ogg; codecs="theora, vorbis"').replace(/no/,"")&&(l="video/ogg; codecs='theora, vorbis'"),null!==(i=n.canPlayType)&&void 0!==i&&i.call(n,'video/mp4; codecs="avc1.42E01E, mp4a.40.2"').replace(/no/,"")&&(l='video/mp4; codecs="avc1.42E01E, mp4a.40.2"'),null!==(c=n.canPlayType)&&void 0!==c&&c.call(n,'video/webm; codecs="vp8, vorbis"').replace(/no/,"")&&(l='video/webm; codecs="vp8, vorbis"')}catch(e){}return l?(0,o.createElement)("video",{src:e,width:t,height:a,controls:!0,autoPlay:!0,muted:!0,preload:"none",style:{width:"100%",height:"100%"}}):(0,o.createElement)("div",{className:"no-flash-info"})})(t,a,n):null;var l},v=d.Locale.getTranslate("controllers.help.tutorials"),g=({tutorials:e})=>{const t=(0,r.useHistory)(),{pathname:a,search:n,hash:i}=(0,r.useLocation)(),c=e.find((e=>i===`#${e.anchor}`)),d=c?{isOpen:!0,title:c.title,children:m(c)}:{isOpen:!1};return(0,o.createElement)(o.Fragment,null,(0,o.createElement)("p",null,(0,o.createElement)(v,{content:"buttonsAreaDescription"})),(0,o.createElement)(s.ItemList,{minColumnWidth:280,gap:"md"},e.map((e=>(0,o.createElement)(s.Item,{key:e.anchor,title:e.title,description:e.description,component:u.default,to:`#${e.anchor}`})))),(0,o.createElement)(s.Dialog,l()({onClose:()=>t.push(`${a}${n}`),cancelButton:!1},d)))};g.propTypes={tutorials:c().arrayOf(c().shape({anchor:c().string,title:c().string,description:c().string,height:c().string,width:c().string,webm:c().string})).isRequired},t.default=(0,h.withPageLayout)((0,p.withPageContent)(g))},850:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>n.default});var n=a(851)}}]);
//# sourceMappingURL=tutorials.js.map?1b23ca1d6d0519a25cb6