"use strict";(self.webpackChunkPlesk=self.webpackChunkPlesk||[]).push([["views/default/help/tutorials"],{1014:(e,t,s)=>{s.r(t);var o=s(678),i=s(210),a=s.n(i),r=s(209),n=s(88),c=s(748),l=s(489),d=s(208);const h=({iframe:e,webm:t,width:s,height:o})=>{return e?(i=e,(0,d.jsx)("iframe",{src:i})):t?((e,t,s)=>{const o=document.createElement("video");let i;try{o.canPlayType?.('video/ogg; codecs="theora, vorbis"').replace(/no/,"")&&(i="video/ogg; codecs='theora, vorbis'"),o.canPlayType?.('video/mp4; codecs="avc1.42E01E, mp4a.40.2"').replace(/no/,"")&&(i='video/mp4; codecs="avc1.42E01E, mp4a.40.2"'),o.canPlayType?.('video/webm; codecs="vp8, vorbis"').replace(/no/,"")&&(i='video/webm; codecs="vp8, vorbis"')}catch{}return i?(0,d.jsx)("video",{src:e,width:t,height:s,controls:!0,autoPlay:!0,muted:!0,preload:"none",style:{width:"100%",height:"100%"}}):(0,d.jsx)("div",{className:"no-flash-info"})})(t,s,o):null;var i},p=n.Locale.getTranslate("controllers.help.tutorials"),u=({tutorials:e})=>{const t=(0,o.useHistory)(),{pathname:s,search:i,hash:a}=(0,o.useLocation)(),n=e.find((e=>a===`#${e.anchor}`)),c=n?{isOpen:!0,title:n.title,children:h(n)}:{isOpen:!1};return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)("p",{children:(0,d.jsx)(p,{content:"buttonsAreaDescription"})}),(0,d.jsx)(r.ItemList,{minColumnWidth:280,gap:"md",children:e.map((e=>(0,d.jsx)(r.Item,{title:e.title,description:e.description,component:l.default,to:`#${e.anchor}`},e.anchor)))}),(0,d.jsx)(r.Dialog,{onClose:()=>t.push(`${s}${i}`),cancelButton:!1,...c})]})};u.propTypes={tutorials:a().arrayOf(a().shape({anchor:a().string,title:a().string,description:a().string,height:a().string,width:a().string,webm:a().string})).isRequired},t.default=(0,c.withPageLayout)(u)},1013:(e,t,s)=>{s.r(t),s.d(t,{default:()=>o.default});var o=s(1014)}}]);
//# sourceMappingURL=tutorials.js.map?50b8f97fd252581f9ab0