(self.webpackChunkPlesk=self.webpackChunkPlesk||[]).push([["views/default/help/tutorials"],{898:(e,t,a)=>{"use strict";a.r(t);var n=a(152),l=a.n(n),r=a(153),o=a(555),i=a(260),c=a.n(i),s=a(154),d=a(143),h=a(608),p=a(582);const u=({iframe:e,webm:t,width:a,height:n})=>{return e?(l=e,(0,r.createElement)("iframe",{src:l})):t?((e,t,a)=>{const n=document.createElement("video");let l;try{var o,i,c;null!==(o=n.canPlayType)&&void 0!==o&&o.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,r.createElement)("video",{src:e,width:t,height:a,controls:!0,autoPlay:!0,muted:!0,preload:"none",style:{width:"100%",height:"100%"}}):(0,r.createElement)("div",{className:"no-flash-info"})})(t,a,n):null;var l},m=d.Locale.getTranslate("controllers.help.tutorials"),v=({tutorials:e})=>{const t=(0,o.useHistory)(),{pathname:a,search:n,hash:i}=(0,o.useLocation)(),c=e.find((e=>i===`#${e.anchor}`)),d=c?{isOpen:!0,title:c.title,children:u(c)}:{isOpen:!1};return(0,r.createElement)(r.Fragment,null,(0,r.createElement)("p",null,(0,r.createElement)(m,{content:"buttonsAreaDescription"})),(0,r.createElement)(s.ItemList,{minColumnWidth:280,gap:"md"},e.map((e=>(0,r.createElement)(s.Item,{key:e.anchor,title:e.title,description:e.description,component:p.default,to:`#${e.anchor}`})))),(0,r.createElement)(s.Dialog,l()({onClose:()=>t.push(`${a}${n}`),cancelButton:!1},d)))};v.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)(v)},897:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>n.default});var n=a(898)}}]);
//# sourceMappingURL=tutorials.js.map?a23edd308ecb30fe5ff7