"use strict";(self.webpackChunkPlesk=self.webpackChunkPlesk||[]).push([["views/default/help/tutorials"],{1040:(e,t,s)=>{s.r(t),s.d(t,{default:()=>m});var o=s(702),i=s(224),a=s.n(i),r=s(223),n=s(97),c=s(774),l=s(508),d=s(222);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};const m=(0,c.withPageLayout)(u)},1039:(e,t,s)=>{s.r(t),s.d(t,{default:()=>o.default});var o=s(1040)}}]);
//# sourceMappingURL=tutorials.js.map?d51de826cd4ebd086400