"use strict";(self.webpackChunkPlesk=self.webpackChunkPlesk||[]).push([["views/default/help/tutorials"],{1031:(e,t,s)=>{s.r(t),s.d(t,{default:()=>m});var o=s(696),i=s(218),a=s.n(i),r=s(217),n=s(96),c=s(765),l=s(502),d=s(216);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)},1030:(e,t,s)=>{s.r(t),s.d(t,{default:()=>o.default});var o=s(1031)}}]);
//# sourceMappingURL=tutorials.js.map?90084040a81c88f78f05