"use strict";(self.webpackChunkPlesk=self.webpackChunkPlesk||[]).push([["views/default/help/tutorials"],{1059:(e,t,s)=>{s.r(t),s.d(t,{default:()=>m});var o=s(712),i=s(233),a=s.n(i),r=s(232),n=s(85),c=s(790),l=s(518),d=s(231);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.useNavigate)(),{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(`${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)},1058:(e,t,s)=>{s.r(t),s.d(t,{default:()=>o.default});var o=s(1059)}}]);
//# sourceMappingURL=tutorials.js.map?1224ea1e7f30789303a9