1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1377],{4175:function(e,t,s){var l=s(5893);s(7294);var i=s(1664),n=s.n(i),a=s(8039);s(9400),s(3155),t.Z=e=>{let{pageTitle:t,homePageUrl:s,homePageText:i,activePageText:o,bgImg:c}=e;return(0,a.b)(),(0,l.jsx)(l.Fragment,{children:(0,l.jsx)("div",{className:"page-title-area",style:{backgroundImage:"url(".concat(c,")")},children:(0,l.jsx)("div",{className:"container",children:(0,l.jsxs)("div",{className:"page-title-content",children:[(0,l.jsx)("h2",{children:t}),(0,l.jsxs)("ul",{children:[(0,l.jsx)("li",{children:(0,l.jsx)(n(),{href:s,children:i})}),(0,l.jsx)("li",{className:"active",children:o})]})]})})})})}},6131:function(e,t,s){var l=s(5893),i=s(7294),n=s(1129),a=s.n(n),o=s(8039),c=s(9400),r=s(4221),d=s(1713);t.Z=()=>{let[e,t]=(0,i.useState)([]),[s,n]=(0,i.useState)("your-token-here"),[u,h]=(0,i.useState)(!1),[m,x]=(0,i.useState)(!1),[j,v]=(0,i.useState)({}),[g,b]=(0,i.useState)({}),[p,N]=(0,i.useState)({}),[f,k]=(0,i.useState)();(0,o.b)();let[y,w]=(0,i.useState)({toggler:!1,source:""}),[S,Z]=(0,i.useState)(0),_=()=>{h(!1),v({})},C=()=>h(!0),A=e=>{console.log(e),v(e),C()},F=e=>{let{name:t,value:s}=e.target;v(e=>({...e,[t]:s}))},V=async e=>{e.preventDefault();let t={id:j.id||0,description:"Not Available",video_link:j.video_link,title:j.title,content_type:"video"};await c.Z.post("/api/content/videos",{...t},{headers:{Authorization:"Bearer ".concat(s)}}),window.location.reload()};(0,i.useEffect)(()=>{(async()=>{try{let e=await c.Z.get("/api/content/videos");t(e.data.result)}catch(e){console.error("Error fetching videos:",e)}})(),n(localStorage.getItem("mstv_web_token"))},[]);let E=m?e:e.slice(0,4);return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(a(),{toggler:y.toggler,sources:[y.source]}),(0,l.jsx)("section",{className:"portfolio-area",children:(0,l.jsxs)("div",{className:"container",children:[(0,l.jsx)("div",{className:"row justify-content-center",children:E.map((e,t)=>(0,l.jsx)("div",{className:"col-lg-3 col-md-6",children:(0,l.jsxs)("div",{children:[s?(0,l.jsx)("button",{onClick:()=>A(e),children:"Edit"}):"",(0,l.jsx)(r.Z,{data:e})]})},t))}),(0,l.jsxs)("div",{className:"col-12 text-center",children:[(0,l.jsx)("button",{onClick:()=>{x(!m)},className:"default-btn",children:m?"View Less":"View More"}),(0,l.jsx)("br",{}),(0,l.jsx)("br",{}),s?(0,l.jsx)("div",{className:"col-12 text-center",children:(0,l.jsx)("button",{onClick:C,className:"default-btn",children:"Add Videos"})}):null]}),(0,l.jsxs)(d.Z,{show:u,onHide:_,children:[(0,l.jsx)(d.Z.Header,{closeButton:!0,children:(0,l.jsx)(d.Z.Title,{children:"Add More Video"})}),(0,l.jsx)(d.Z.Body,{children:(0,l.jsxs)("form",{children:[(0,l.jsxs)("div",{className:"mb-3",children:[(0,l.jsx)("label",{htmlFor:"videoTitle",className:"form-label",children:"Add Video Title"}),(0,l.jsx)("input",{type:"text",className:"form-control",id:"videoTitle",name:"title",value:j.title,onChange:e=>F(e),"aria-describedby":"existingHelp"})]}),(0,l.jsxs)("div",{className:"mb-3",children:[(0,l.jsx)("label",{htmlFor:"videoLink",className:"form-label",children:"Add Video Link"}),(0,l.jsx)("input",{type:"text",value:j.video_link,name:"video_link",onChange:e=>F(e),className:"form-control",id:"videoLink"})]})]})}),(0,l.jsxs)(d.Z.Footer,{children:[(0,l.jsx)("button",{className:"btn btn-primary",onClick:V,children:"Submit"}),(0,l.jsx)("button",{className:"btn btn-secondary",onClick:_,children:"Close"})]})]})]})})]})}},4221:function(e,t,s){var l=s(5893),i=s(7294),n=s(5092),a=s(1129),o=s.n(a);t.Z=e=>{let{data:t}=e,[s,a]=(0,i.useState)({toggler:!1,source:""}),c=e=>{a({toggler:!s.toggler,source:e})};return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(o(),{toggler:s.toggler,sources:[s.source]}),(0,l.jsxs)("div",{className:"single-portfolio",children:[(0,l.jsx)("div",{className:"portfolio-image",style:{backgroundImage:"url(".concat((0,n.Z)(t.video_link),")"),backgroundSize:"130%",backgroundPosition:"center 50%",width:"100%",height:"200px",position:"relative",borderRadius:"8px",overflow:"hidden"},children:(0,l.jsx)("div",{className:"price-wrap",children:(0,l.jsx)("div",{onClick:()=>c(t.video_link),className:"play-video",children:(0,l.jsx)("i",{className:"flaticon-play"})})})}),(0,l.jsx)("div",{className:"portfolio-content",children:(0,l.jsx)("span",{children:t.title})})]})]})}},5092:function(e,t){t.Z=e=>{console.log("Input URL: ".concat(e));let t=e.match(/(?:https?:\/\/)?(?:www\.)?(?:youtube\.com\/(?:[^\/\n\s]+\/\S+\/|(?:v|e(?:mbed)?)\/|.*[?&]v=)|youtu\.be\/)([a-zA-Z0-9_-]{11})/);if(t){let e=t[1];return"https://img.youtube.com/vi/".concat(e,"/hqdefault.jpg")}return null}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.