PageSourceSearch

https://dashboard.api.video/_next/static/chunks/4836-7483b7a0aa058ca5.js

js api.video collected 2026-10-02 02:25:37 UTC 60,785 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4836],{6664:function(e,t,n){n.d(t,{xM:function(){return c},CF:function(){return d},Ej:function(){return g},WD:function(){return o}});var r,l,a,s,i,o,c,d,u=n(82729),m=n(19521),p=n(41661);function _templateObject(){let e=(0,u._)(["\n                font-size: ",";\n            "]);return _templateObject=function(){return e},e}function _templateObject1(){let e=(0,u._)(["\n            color: ",";\n        "]);return _templateObject1=function(){return e},e}function _templateObject2(){let e=(0,u._)(["\n    cursor: pointer;\n    ",";\n    ","\n    &:hover {\n        color: ",";\n    }\n"]);return _templateObject2=function(){return e},e}(r=i||(i={})).black="black",r.gray="gray",r.blue="blue",r.orange="orange";let x=m.default.a.withConfig({componentId:"sc-afd22af5-0"})(_templateObject2(),e=>{let{size:t,theme:n}=e;return Object.keys(n.text).map(e=>t===e&&(0,m.css)(_templateObject(),n.text[e]))},e=>{let{color:t,theme:n}=e,r={black:n.colors.black,blue:n.colors.blue[400],orange:n.colors.orange[500],gray:"".concat(n.colors.blue[600])};return(0,m.css)(_templateObject1(),r[t])},e=>e.hover?e.theme.colors.blue[500]:null);x.defaultProps={color:"blue"};var f=n(41965);function style_templateObject(){let e=(0,u._)(["\n    display: grid;\n    margin-left: -32px;\n    grid-template-columns: 32px 384px 1fr 1fr 1fr 1fr 1fr;\n    grid-template-rows: auto;\n    gap: 0;\n    place-items: center start;\n    &:hover {\n        background: ",";\n    }\n"]);return style_templateObject=function(){return e},e}function style_templateObject1(){let e=(0,u._)(["\n    width: 16px;\n    height: 16px;\n    border-radius: ",";\n    background: ",";\n    border: 1px solid #bbc9dd;\n"]);return style_templateObject1=function(){return e},e}function style_templateObject2(){let e=(0,u._)(["\n    width: 16px;\n    height: 16px;\n    border-radius: ",";\n    background: #2275ff;\n    color: ",";\n    display: flex;\n    justify-content: center;
1\n    align-items: center;\n"]);return style_templateObject2=function(){return e},e}function _templateObject3(){let e=(0,u._)(["\n    border-bottom: 1px solid ",";\n    cursor: ",";\n    padding: "," 0;\n    height: 100%;\n    width: 100%;\n    display: flex;\n    align-items: center;\n    padding-right: ",";\n"]);return _templateObject3=function(){return e},e}function _templateObject4(){let e=(0,u._)(["\n    display: flex;\n    justify-content: ",";\n    cursor: ",";\n    flex-direction: ",";\n    align-items: ",";\n    width: ",";\n    gap: ",";\n    height: ",";\n"]);return _templateObject4=function(){return e},e}function _templateObject5(){let e=(0,u._)(["\n    width: 72px;\n    height: 56px;\n    border-radius: ",";\n    background-color: ",";\n    background-repeat: no-repeat;\n    background-image: url('","');\n    background-size: contain;\n    background-position: center;\n    flex-shrink: 0;\n"]);return _templateObject5=function(){return e},e}function _templateObject6(){let e=(0,u._)(["\n    display: flex;\n    align-items: center;\n    svg {\n        width: 1em;\n        stroke-width: 2px;\n        margin-right: 4px;\n    }\n"]);return _templateObject6=function(){return e},e}function _templateObject7(){let e=(0,u._)(["\n    display: flex;\n    flex-direction: column;\n    gap: ",";\n    overflow: hidden;\n    overflow-wrap: anywhere;\n"]);return _templateObject7=function(){return e},e}function _templateObject8(){let e=(0,u._)(["\n    margin-bottom: unset;\n"]);return _templateObject8=function(){return e},e}function _templateObject9(){let e=(0,u._)(["\n    font-weight: bold;\n    font-size: ",";\n    font-weight: 700;\n    display: -webkit-box;\n    -webkit-line-clamp: 2;\n    -webkit-box-orient: vertical;\n"]);return _templateObject9=function(){return e},e}function _templateObject10(){let e=(0,u._)(["\n    display: ",";\n    grid-template-columns: ",";\n    gap: ",";\n    margin-top: ",";\n    padding: ",";\n    margin: 0 auto;\n    @media (min-width: 1600px) {\n        padding: 0;\n        max-width: 1280px;\n    }\n"]);return _templateObject10=function(){return e},e}function _templateObject11(){let e=(0,u._)(["\n    color: ",";\n    font-size: 14px;\n    font-weight: 500;\n    display: flex;\n    align-items: center;\n    gap: ",";\n"]);return _templateObject11=function(){return e},e}function _templateObject12(){let e=(0,u._)(["\n    color: ",";\n    cursor: pointer;\n"]);return _templateObject12=function(){return e},e}function _templateObject13(){let e=(0,u._)(["\n    position: absolute;\n    bottom: 16px;\n    left: 16px;\n"]);return _templateObject13=function(){return e},e}function _templateObject14(){let e=(0,u._)(["\n    width: fit-content;\n"]);return _templateObject14=function(){return e},e}function _templateObject15(){let e=(0,u._)(["\n    color: ",";\n    font-size: 14px;\n    font-weight: 500;\n    display: flex;\n    align-items: center;\n    gap: ",";\n"]);return _templateObject15=function(){return e},e}function _templateObject16(){let e=(0,u._)(["\n    width: 260px;\n"]);return _templateObject16=function(){return e},e}(l=o||(o={})).CENTER="center",l.SPACEBETWEEN="space-between",l.START="flex-start",l.END="flex-end",(a=c||(c={})).CENTER="center",a.SPACEBETWEEN="space-between",a.START="flex-start",a.END="flex-end",a.BASELINE="baseline",(s=d||(d={})).DEFAULT="default",s.POINTER="pointer",m.default.div.withConfig({componentId:"sc-bcb85a71-0"})(style_templateObject(),e=>{let{theme:t}=e;return t.colors.blue[50]}),m.default.div.withConfig({componentId:"sc-bcb85a71-1"})(style_templateObject1(),e=>{let{theme:t}=e;return t.radius.base},e=>{let{theme:t}=e;return t.colors.white}),m.default.div.withConfig({componentId:"sc-bcb85a71-2"})(style_templateObject2(),e=>{let{theme:t}=e;return t.radius.base},e=>{let{theme:t}=e;return t.colors.white}),m.default.div.withConfig({componentId:"sc-bcb85a71-3"})(_templateObject3(),e=>{let{theme:t}=e;return t.colors.grey[100]},e=>{var t;return null!==(t=e.cursor)&&void 0!==t?t:"default"},e=>{let{theme:t}=e;return t.spacing.regular},e=>{let{theme:t}=e;return t.spacing.regular});let g=m.default.div.withConfig({componentId:"sc-bcb85a71-4"}
1)(_templateObject4(),e=>{var t;return null!==(t=e.justify)&&void 0!==t?t:"flex-start"},e=>{var t;return null!==(t=e.cursor)&&void 0!==t?t:"default"},e=>e.column?"column":"row",e=>{var t;return null!==(t=e.align)&&void 0!==t?t:"flex-start"},e=>e.fullWidth?"100%":null,e=>e.gap||0===e.gap?"".concat(e.gap,"px"):e.theme.spacing.sm,e=>e.fullHeight?"100%":null);m.default.div.withConfig({componentId:"sc-bcb85a71-5"})(_templateObject5(),e=>{let{theme:t}=e;return t.radius.base},e=>{let{theme:t}=e;return t.colors.black},e=>e.url),(0,m.default)(x).withConfig({componentId:"sc-bcb85a71-6"})(_templateObject6()),m.default.div.withConfig({componentId:"sc-bcb85a71-7"})(_templateObject7(),e=>{let{theme:t}=e;return t.spacing.xs3}),(0,m.default)(p.Gy).withConfig({componentId:"sc-bcb85a71-8"})(_templateObject8()),m.default.h1.withConfig({componentId:"sc-bcb85a71-9"})(_templateObject9(),e=>{let{theme:t}=e;return t.text.sm}),m.default.div.withConfig({componentId:"sc-bcb85a71-10"})(_templateObject10(),e=>e.isGrid&&"grid",e=>e.isGrid&&"repeat(auto-fit, minmax(280px, ".concat(e.itemsDisplay.length>2?"1fr":"350px","))"),e=>e.isGrid&&e.theme.spacing.medium,e=>e.isGrid&&e.theme.spacing.lg,e=>e.isGrid&&e.isVideos&&"0 40px"),m.default.a.withConfig({componentId:"sc-bcb85a71-11"})(_templateObject11(),e=>e.theme.colors.indigo[500],e=>e.theme.spacing.xs2),m.default.a.withConfig({componentId:"sc-bcb85a71-12"})(_templateObject12(),e=>e.theme.colors.blue[400]),m.default.div.withConfig({componentId:"sc-bcb85a71-13"})(_templateObject13()),m.default.div.withConfig({componentId:"sc-bcb85a71-14"})(_templateObject14()),(0,m.default)(f.Z).withConfig({componentId:"sc-bcb85a71-15"})(_templateObject15(),e=>e.theme.colors.indigo[500],e=>e.theme.spacing.xs2),m.default.div.withConfig({componentId:"sc-bcb85a71-16"})(_templateObject16())},32599:function(e,t,n){n.d(t,{w6:function(){return EditButton},ko:function(){return PlayerSelection},ZP:function(){return DetailsVideo}});var r,l=n(85893),a=n(36851),s=n(39632),i=n(99506),o=n(72519),c=n(25644),d=n(94744),u=n(15027),m=n(88225),p=n(39235),x=n(34031),f=n(42189),g=n(67294);function _extends(){return(_extends=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(null,arguments)}var Player=function(e){return g.createElement("svg",_extends({viewBox:"0 0 12 12",xmlns:"http://www.w3.org/2000/svg"},e),r||(r=g.createElement("g",{fill:"#596B93",fillRule:"nonzero"},g.createElement("path",{d:"M7.5 9a.5.5 0 0 1 .09.992L7.5 10h-7a.5.5 0 0 1-.09-.992L.5 9h7ZM3 .5v7a.5.5 0 0 0 .737.44l6.5-3.5a.5.5 0 0 0 0-.88l-6.5-3.5A.5.5 0 0 0 3 .5Zm1 .837L8.944 4 4 6.662V1.337Z"}),g.createElement("path",{d:"M7.5 7a.5.5 0 0 1 .492.41L8 7.5v4a.5.5 0 0 1-.992.09L7 11.5v-4a.5.5 0 0 1 .5-.5ZM11.5 9a.5.5 0 0 1 .09.992L11.5 10h-2a.5.5 0 0 1-.09-.992L9.5 9h2Z"}))))},b=n(74502),h=n(63336),j=n(19839),y=n(9669),v=n.n(y),w=n(90512),_=n(11163),N=n(37868),O=n(15123),k=n(78268),E=n(13777),C=n(55654),Z=n(27434);function DetailsVideo(e){var t,n,r,m,b,y,k;let{videoDetails:E,onVideoUpdate:C,privateSession:Z}=e,[S,T]=(0,g.useState)(void 0),[I,R]=(0,g.useState)(void 0),A=(0,g.useRef)(null),[B,M]=(0,g.useState)(!1),[z,P]=(0,g.useState)(!1),[D,L]=(0,g.useState)(!1),[G,W]=(0,g.useState)(!1),[U,F]=(0,g.useState)(!1),[V,q]=(0,g.useState)(!1),[J,Y]=(0,g.useState)(!1),[H,K]=(0,g.useState)(""),[X,$]=(0,g.useState)(""),[Q,ee]=(0,g.useState)(""),[et,en]=(0,g.useState)({isTimestamp:!0,timestamp:"",file:void 0,inProgress:!1}),[er,el]=(0,g.useState)(null),[ea,es]=(0,g.useState)(!1),[ei,eo]=(0,g.useState)(!1),{query:{itemId:ec}}=(0,_.useRouter)(),{state:{env:ed,contents:eu},dispatch:em}=(0,s.bm)(),ep=(0,_.useRouter)();async function saveChanges(){try{M(!0),(er||""!=et.timestamp)&&await saveThumbnail(),await x.Z.patch("workspaces/current/contents/".concat(ec),{environment:ed,contentType:"videos",data:S})}catch(e){console.error(e)}finally{M(!1),C(S),Y(!1),defaultState()}}async function saveThumbnail(){let e;try{if(en({...et,inProgress:!0}
1),et.isTimestamp){e=await x.Z.put("workspaces/current/contents/".concat(ec,"/thumbnail"),{environment:ed,timecode:et.timestamp});return}let{Authorization:t}=await x.Z.post("auth/access-token"),n={headers:{"Content-Type":"multipart/form-data",Authorization:"Bearer ".concat(t.accessToken),Accept:"application/json"}},r=new FormData;r.append("file",et.file);let l=await v().post("".concat((0,f.Z)().WS_URIS[ed],"/videos/").concat(ec,"/thumbnail"),r,n);e=l.data}catch(e){console.error(e)}finally{en({...et,inProgress:!1}),em({type:i.H.SET_ACTIVE_CONTENT,payload:{activeContent:e}})}}function defaultState(){P(!1),L(!1),W(!1),F(!1),q(!1),Y(!1)}async function deleteContent(){try{eo(!0),await (0,h.Z)({videoId:S.videoId}),ep.pathname.includes("[itemId]")&&ep.replace("/videos")}catch(e){console.error(e)}finally{eo(!1)}}(0,g.useEffect)(()=>{E&&T(E)},[E]),(0,g.useEffect)(()=>{JSON.stringify(S)!=JSON.stringify(E)?Y(!0):Y(!1)},[S,E]),(0,g.useEffect)(()=>{""!=et.timestamp?Y(!0):Y(!1)},[et.timestamp]),(0,g.useEffect)(()=>{void 0!=et.file?Y(!0):Y(!1)},[et.file]),(0,g.useEffect)(()=>{er&&Y(!0),en({...et,file:er})},[er]),(0,g.useEffect)(()=>{if(A.current&&!I&&G){var e;let t=new a.g("#playerSdk",{id:ec,iframeUrl:"https://embed.api.video/${type}/${id}",...Z?{privateSession:Z,token:null==E?void 0:null===(e=E.assets)||void 0===e?void 0:e.thumbnail.split("/")[6]}:{}});t.addEventListener("timeupdate",e=>en(t=>({...t,timestamp:(0,j.On)(e.currentTime)})))}!A.current&&I&&R(void 0)},[A,I,G]);let{getRootProps:ex,getInputProps:ef,isDragActive:eg}=(0,N.uI)({maxFiles:1,onDrop:e=>{Object.assign(e[0],{preview:URL.createObjectURL(e[0])}),el(e[0])}});return(0,l.jsxs)("div",{children:[(0,l.jsxs)("div",{className:"bg-white rounded border-1/2px border-primary-gray-200 p-6 md:p-8 lg:p-10",children:[(0,l.jsx)("h3",{className:"text-primary-gray-900 text-lg font-semibold",children:"Video Information"}),(0,l.jsx)("div",{className:"h-px bg-primary-gray-200 my-6"}),(0,l.jsxs)("div",{className:"flex md:flex-row flex-col md:items-center",children:[(0,l.jsx)("p",{className:"basis-1/2 text-primary-blue text-sm font-semibold",children:"Title"}),(0,l.jsxs)("div",{className:" basis-1/2 flex gap-4 w-full pt-2 md:pt-0",children:[(0,l.jsx)("input",{type:"text",readOnly:!z,className:(0,w.Z)("bg-primary-gray-lighter text-primary-blue text-xs py-3 px-4 rounded w-full",!z&&"focus:outline-none cursor-default"),value:null==S?void 0:S.title,onChange:e=>{T(t=>({...t,title:e.target.value}))}}),(0,l.jsx)(EditButton,{type:"icon",onClick:()=>P(!z),editing:z})]})]}),(0,l.jsx)("div",{className:"h-px bg-primary-gray-200 my-6"}),(0,l.jsxs)("div",{className:"flex flex-col md:flex-row md:items-center",children:[(0,l.jsx)("p",{className:"basis-1/2 text-primary-blue text-sm font-semibold",children:"Description"}),(0,l.jsxs)("div",{className:" basis-1/2 flex gap-4 w-full md:pt-0 pt-2",children:[(0,l.jsx)("input",{type:"text",readOnly:!D,placeholder:"Add a description",className:(0,w.Z)("bg-primary-gray-lighter text-primary-blue text-xs w-full py-3 px-4 rounded",!D&&"focus:outline-none cursor-default"),value:null==S?void 0:S.description,onChange:e=>{T(t=>({...t,description:e.target.value}))}}),(0,l.jsx)(EditButton,{type:"icon",onClick:()=>L(!D),editing:D})]})]}),(0,l.jsx)("div",{className:"h-px bg-primary-gray-200 my-6"}),(0,l.jsxs)("div",{className:"flex flex-col lg:flex-row lg:items-center w-full",children:[(0,l.jsx)("p",{className:"basis-1/2 text-primary-blue text-sm font-semibold",children:"Thumbnail"}),(0,l.jsxs)("div",{className:"md:basis-1/2",children:[(0,l.jsxs)("div",{className:"relative",children:[(0,l.jsxs)("div",{className:"flex flex-col lg:flex-row lg:items-end lg:gap-4",children:[G?(0,l.jsx)(l.Fragment,{children:et.isTimestamp?(0,l.jsx)("div",{className:(0,w.Z)("w-full p-4 bg-primary-gray-lighter",!et.isTimestamp&&"hidden"),children:(0,l.jsx)("div",{id:"playerSdk",className:"w-full bg-primary-gray-lighter aspect-video",ref:A})}):(0,l.jsx)(l.Fragment,{children:er?(0,l.jsx)("img",{src:URL.createObjectURL(er),alt:"thumbnail",className:"w-1/2 p-4 bg-primary-gray-lighter"}):(0,l.jsxs)("div",{...ex({className:"w-full dropzone flex flex-col items-center p-4 bg-primary-gray-lighter [&_iframe]:hidden"}),children:[(0,l.jsx)("div",{className:"text-primary-blue border-1/2px border-primary-gray-200 rounded-full p-4 text-center",children:(0,l.jsx)(O.Z,{size:16})}),eg?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("input",{...ef()}),(0,l.jsx)("p",{className:"text-primary-blue text-xs pt-4 pb-1",children:"Drag & drop custom thumbnail here"}),(0,l.jsx)("p",{className:"text-primary-blue text-xxs",children:".jpg, .png, .webp, Max. file size: 8MB"}),(0,l.jsx)("p",{className:"text-primary-blue text-xxs",children:"or browse to choose a file"})]}):(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("p",{className:"text-primary-blue text-xxs",children:"Browse to choose a file"}),(0,l.jsx)("p",{className:"text-primary-blue text-xxs",children:".jpg, .png, .webp, Max. file size: 8MB"})]})]})})}):(0,l.jsx)("img",{src:(null==E?void 0:null===(t=E.assets)||void 0===t?void 0:t.thumbnail)+(Z?"?avh=".concat(Z):""),alt:"thumbnail",className:"w-full p-4 bg-primary-gray-lighter"}),G&&(0,l.jsxs)("div",{className:"flex gap-4 md:pt-0 pt-4",children:[(0,l.jsx)(o.Z,{theme:et.isTimestamp?"dark":"light",className:"w-max !rounded",onClick:()=>en({...et,isTimestamp:!0}),children:"Timestamp"}),er?(0,l.jsx)(o.Z,{theme:et.isTimestamp?"light":"dark",className:"w-max !rounded",onClick:()=>el(null),children:"Change Image"}):(0,l.jsx)(o.Z,{theme:et.isTimestamp?"light":"dark",className:"w-max  !rounded",onClick:()=>{en({...et,isTimestamp:!1}),null==I||I.pause()},children:"Upload Image"})]})]}),(0,l.jsx)("div",{className:"absolute bg-white top-2 right-2 roun
1ded",children:(0,l.jsx)(EditButton,{type:"text",onClick:()=>W(!G),editing:G})})]}),(0,l.jsxs)("div",{className:"flex gap-4 mt-4 items-center",children:[(0,l.jsx)("p",{className:"text-primary-blue text-xs font-semibold",children:"Link:"}),(0,l.jsx)("p",{className:"bg-primary-gray-lighter text-primary-blue text-xs py-4 px-5 truncate",children:null==E?void 0:null===(n=E.assets)||void 0===n?void 0:n.thumbnail}),(0,l.jsx)("div",{className:"flex items-center",children:(0,l.jsx)(c.Z,{value:null==E?void 0:null===(r=E.assets)||void 0===r?void 0:r.thumbnail,className:"!p-2"})})]}),G&&et.isTimestamp&&(0,l.jsxs)("div",{className:"flex gap-4 mt-4 items-center",children:[(0,l.jsx)("p",{className:"text-primary-blue text-xs font-semibold",children:"Timestamp:"}),(0,l.jsx)("input",{type:"text",placeholder:"HH:MM:SS",className:"placeholder:text-primary-blue placeholder:text-xs text-primary-blue text-xs bg-primary-gray-lighter text-center py-4 px-1",pattern:"^([0-1][0-9]|2[0-3]):([0-5][0-9]):([0-5][0-9])$",value:et.timestamp,onChange:function(e){e.preventDefault(),en(t=>({...t,timestamp:e.target.value}))}})]})]})]}),(0,l.jsx)("div",{className:"h-px bg-primary-gray-200 my-6"}),(0,l.jsxs)("div",{className:"flex flex-col md:flex-row md:items-center w-full",children:[(0,l.jsx)("p",{className:"basis-1/2 text-primary-blue text-sm font-semibold",children:"Metadata"}),(0,l.jsxs)("div",{className:"basis-1/2",children:[(0,l.jsx)("p",{className:"text-xs text-primary-blue",children:"With metadata you can categorise and filter videos. Metadata is a list of dictionaries, where each dictionary represents a key value pair for categorising a video."}),(0,l.jsxs)("div",{className:"flex gap-4 items-center",children:[(0,l.jsxs)("div",{className:"flex flex-wrap gap-4 bg-primary-gray-lighter py-2 px-4 mt-4 w-full overflow-auto",children:[(null==S?void 0:null===(m=S.metadata)||void 0===m?void 0:m.length)===0&&(0,l.jsx)("p",{className:"text-xs text-primary-blue",children:"No metadata"}),null==S?void 0:null===(b=S.metadata)||void 0===b?void 0:b.map((e,t)=>(0,l.jsx)(MetaTagElement,{metadata:e,editable:U,onClick:()=>{T(e=>{let n=e.metadata.slice();return n.splice(t,1),{...e,metadata:n}})}},t))]}),(0,l.jsx)(EditButton,{type:"text",className:"mt-4",onClick:()=>F(!U),editing:U})]}),U&&(0,l.jsxs)("div",{className:"flex flex-col md:flex-row md:items-center bg-primary-gray-lighter mt-4 py-4 px-2 gap-4",children:[(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("p",{className:"text-primary-blue/80 text-xs",children:"Where"}),(0,l.jsx)("input",{type:"text",placeholder:"Key",onChange:e=>K(e.target.value),value:H,className:"bg-white text-primary-blue text-xs py-3 px-4 rounded w-full placeholder:text-xxs placeholder:text-primary-blue placeholder:font-semibold"})]}),(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("p",{className:"text-primary-blue/80 text-xs",children:"is"}),(0,l.jsx)("input",{type:"text",placeholder:"Value",onChange:e=>$(e.target.value),value:X,className:"bg-white text-primary-blue text-xxs font-semibold py-3 px-4 rounded w-full placeholder:text-xxs placeholder:text-primary-blue placeholder:font-semibold"})]}),(0,l.jsx)("button",{className:"bg-primary-dark-blue text-white px-4 py-2 rounded",onClick:function(){T(e=>({...e,metadata:[...e.metadata,{key:H,value:X}]})),K(""),$("")},children:"Add"})]})]})]}),(0,l.jsx)("div",{className:"h-px bg-primary-gray-200 my-6"}),(0,l.jsxs)("div",{className:"flex flex-col md:flex-row md:items-center w-full",children:[(0,l.jsx)("p",{className:"basis-1/2 text-primary-blue text-sm font-semibold",children:"Tags"}),(0,l.jsxs)("div",{className:"basis-1/2",children:[(0,l.jsx)("p",{className:"text-xs text-primary-blue",children:"An array of tags in order to categorize a video."}),(0,l.jsxs)("div",{className:"flex gap-4 items-center",children:[(0,l.jsxs)("div",{className:"flex flex-wrap gap-4 bg-primary-gray-lighter py-2 px-4 mt-4 w-full overflow-auto",children:[(null==S?void 0:null===(y=S.tags)||void 0===y?void 0:y.length)===0&&(0,l.jsx)("p",{className:"text-xs text-primary-blue",children:"No tags"}),null==S?void 0:null===(k=S.tags)||void 0===k?void 0:k.map((e,t)=>(0,l.jsx)(MetaTagElement,{tag:e,onClick:()=>{T(e=>{let n=e.tags.slice();return n.splice(t,1),{...e,tags:n}})},editable:V},t))]}),(0,l.jsx)(EditButton,{type:"text",className:"mt-4",onClick:()=>q(!V)})]}),V&&(0,l.jsxs)("div",{className:"flex items-center bg-primary-gray-lighter mt-4 py-4 px-2 gap-4",children:[(0,l.jsx)("p",{className:"text-primary-blue/80 text-xs",children:"Tag"}
1),(0,l.jsx)("input",{type:"text",placeholder:"Value",onChange:e=>ee(e.target.value),value:Q,className:"bg-white text-primary-blue text-xxs font-semibold py-3 px-4 rounded w-full placeholder:text-xxs placeholder:text-primary-blue placeholder:font-semibold"}),(0,l.jsx)("button",{className:"bg-primary-dark-blue text-white px-4 py-2 rounded",onClick:()=>void(T(e=>({...e,tags:[...e.tags,Q]})),ee("")),children:"Add"})]})]})]}),(0,l.jsx)("div",{className:"h-px bg-primary-gray-200 my-6"}),(0,l.jsxs)("div",{className:"flex flex-col md:flex-row md:items-center w-full",children:[(0,l.jsx)("p",{className:"basis-1/2 text-primary-blue text-sm font-semibold",children:"Player"}),(0,l.jsx)("div",{className:"basis-1/2",children:(0,l.jsx)(PlayerSelection,{currentPlayerId:null==S?void 0:S.playerId,list:null==eu?void 0:eu.players.items,onClick:e=>{T(t=>({...t,playerId:e}))}})})]})]}),(0,l.jsxs)("div",{className:"bg-white rounded border-1/2px border-primary-gray-200 p-6 md:p-8 lg:p-10 mt-4 md:mt-6 lg:mt-8",children:[(0,l.jsx)("h3",{className:"text-primary-gray-900 text-lg font-semibold",children:"Settings"}),(0,l.jsx)("div",{className:"h-px bg-primary-gray-200 my-6"}),(0,l.jsxs)("div",{className:"flex flex-col md:flex-row md:items-center",children:[(0,l.jsx)("p",{className:"basis1/4 md:basis-1/3 text-primary-blue text-sm font-semibold",children:"Viewing Options"}),(0,l.jsxs)("div",{className:"lg:pl-4 basis-3/4 md:basis-2/3 flex flex-col w-full",children:[(0,l.jsxs)("div",{className:"flex flex-col md:flex-row md:items-center w-full justify-between",children:[(0,l.jsx)("p",{className:"text-primary-blue text-xs font-semibold",children:"Public"}),(0,l.jsxs)("div",{className:"flex pl-0 md:pl-4 md:items-center justify-between lg:justify-normal",children:[(0,l.jsx)("p",{className:"text-primary-blue text-xs basis-3/4 lg:basis-auto mr-2",children:"Videos are public by default. Private videos require a GET request to generate a viewing token."}),(0,l.jsx)("div",{className:"w-fit",children:(0,l.jsx)(p.Z,{switchWidth:"32px",checked:null==S?void 0:S._public,onCheckedChange:()=>T(e=>({...e,_public:!e._public}))})})]})]}),(0,l.jsx)("div",{className:"h-px bg-primary-gray-200 my-6"}),(0,l.jsxs)("div",{className:"flex flex-col md:flex-row md:items-center w-full justify-between",children:[(0,l.jsx)("p",{className:"text-primary-blue text-xs font-semibold",children:"Panoramic"}),(0,l.jsxs)("div",{className:"flex pl-0 md:pl-4 md:items-center justify-between lg:justify-normal",children:[(0,l.jsx)("p",{className:"text-primary-blue text-xs basis-3/4 lg:basis-auto mr-2",children:"Indicates if your video is a 360/immersive video."}),(0,l.jsx)("div",{className:"w-fit",children:(0,l.jsx)(p.Z,{switchWidth:"32px",checked:null==S?void 0:S.panoramic,onCheckedChange:()=>T(e=>({...e,panoramic:!e.panoramic}))})})]})]}),(0,l.jsx)("div",{className:"h-px bg-primary-gray-200 my-6"}),(0,l.jsxs)("div",{className:"flex flex-col md:flex-row md:items-center w-full justify-between",children:[(0,l.jsx)("p",{className:"text-primary-blue text-xs font-semibold",children:"MP4 Support"}),(0,l.jsxs)("div",{className:"flex pl-0 md:pl-4 md:items-center justify-between lg:justify-normal",children:[(0,l.jsx)("p",{className:"text-primary-blue text-xs basis-3/4 lg:basis-auto mr-2",children:"Enables mp4 version in addition to streamed version. Useful for offline viewing and dowloads."}),(0,l.jsx)("div",{className:"w-fit",children:(0,l.jsx)(p.Z,{switchWidth:"32px",checked:null==S?void 0:S.mp4Support,onCheckedChange:()=>T(e=>({...e,mp4Support:!e.mp4Support}))})})]})]})]})]}),(0,l.jsx)("div",{className:"h-px bg-primary-gray-200 my-6"}),(0,l.jsxs)("div",{className:"flex flex-col md:flex-row md:items-center",children:[(0,l.jsx)("p",{className:" text-primary-blue text-sm font-semibold basis-1/3",children:"Delete Video"}),(0,l.jsxs)("div",{className:"flex lg:pl-4 flex-col md:flex-row md:items-center w-full justify-between basis-2/3",children:[(0,l.jsx)("p",{className:"text-primary-blue text-xs font-semibold md:text-center",children:"Permanently Delete"}),(0,l.jsxs)("div",{className:"flex md:gap-4 gap-1 items-center",children:[(0,l.jsx)("p",{className:"text-primary-blue text-xs",children:"Once you delete an asset, it can not be recovered."}),(0,l.jsx)("button",{className:"bg-white  text-primary-red px-4 py-2 rounded border-1/2px border-primary-red",onClick:()=>es(!0),children:"Delete"})]})]})]})]}),J&&(0,l.jsxs)("div",{className:"absolute w-screen flex justify-between bottom-0 left-0 bg-white p-6 shadow-t-lg z-50",children:[(0,l.jsx)("button",{className:"text-xs font-medium bg-white border-1/2px border-primary-gray-200 text-primary-blue px-4 py-2 rounded-sm",onClick:function(){T(E),el(null),defaultState()},children:"Cancel all changes"}),(0,l.jsx)("button",{className:"text-xs font-semibold bg-primary-dark-blue text-white rounded-sm px-4 py-2",onClick:saveChanges,children:B?(0,l.jsx)(d.Z,{strokeWidth:3,size:"xxs"}):"Save updates to Video Assets"})]}),(0,l.jsxs)(u.Z,{open:ea,setOpen:()=>es(!ea),contentClassName:"max-w-[520px] py-6 px-8",children:[(0,l.jsxs)("div",{className:"py-5 px-4 mt-10 bg-primary-red-error/5 text-primary-red-600 flex flex-col gap-2 text-xs mb-8",children:[(0,l.jsxs)("p",{className:"text-sm font-semibold",children:["Are you sure you want to delete ",null==S?void 0:S.title]}),(0,l.jsx)("p",{children:"Once you delete an asset, it can not be recovered."})]}),(0,l.jsxs)("div",{className:"flex justify-end gap-4 items-center",children:[(0,l.jsx)(o.Z,{onClick:()=>es(!1),children:"Cancel"}),(0,l.jsxs)(o.Z,{theme:"danger",onClick:deleteContent,disabled:ei,className:"flex gap-3",children:[ei&&(0,l.jsx)(d.Z,{strokeWidth:3,size:"xxs"}),"Yes, Delete"]})]})]})]})}function MetaTagElement(e){let{metadata:t,tag:n,editable:r,onClick:a}=e;return(0,l.jsxs)("div",{className:"bg-white border-1/2px border-primary-gray-200 rounded-full py-2 px-4 flex items-center justify-center gap-1",children:[t&&(0,l.jsxs)("p",{className:"text-primary-blue text-xxs text-center w-full h-fit truncate",children:[t.key,":",(0,l.jsx)("span",{className:"font-semibold w-full",children:t.value})]}),n&&(0,l.jsx)("p",{className:"text-primary-blue text-xxs font-medium text-center",children:n}),r&&(0,l.jsx)(k.Z,{className:"cursor-pointer ",onClick:a,size:12})]})}function EditButton(e){let{type:t,className:n,onClick:r,editing:a}=e;return(0,l.jsxs)("button",{className:(0,w.Z)("px-2 py-1 rounded","icon"===t&&"bg-primary-gray-lighter","text"===t&&"text-sm font-semibold text-primary-blue border-1/2px border-primary-gray-200",n),onClick:r,children:["icon"===t&&(
1a?(0,l.jsx)(E.Z,{className:"w-4"}):(0,l.jsx)(C.Z,{className:"w-4"})),"text"===t&&(a?"Cancel":"Edit")]})}function PlayerSelection(e){let{currentPlayerId:t,list:n,onClick:r}=e,a=n.find(e=>e.playerId===t),[s,i]=(0,g.useState)(a),o=(0,_.useRouter)();return n&&0!==n.length?(0,l.jsx)(m.Z,{trigger:(0,l.jsx)("button",{className:(0,w.Z)("rounded border-1/2px border-primary-blue/15 flex items-center w-64 text-primary-dark-blue",a?"":"outline-none   text-xxs font-semibold !bg-white"),children:a?(0,l.jsxs)("div",{className:"w-full p-4 flex gap-2 items-center",children:[a.assets.logo?(0,l.jsx)("img",{src:a.assets.logo,alt:a.name}):(0,l.jsx)("div",{className:"[&_svg]:w-6 [&_svg]:h-8",children:(0,l.jsx)(Player,{})}),(0,l.jsxs)("div",{className:"w-full flex flex-col justify-center truncate",children:[(0,l.jsx)("p",{className:"text-center truncate",children:a.name?a.name:a.playerId}),(0,l.jsx)("div",{className:"w-full h-2 rounded-full border-1/2px border-primary-blue/15",style:{backgroundColor:a.link}})]}),(0,l.jsx)(Z.Z,{className:""})]}):(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("p",{className:"w-full border-r-1/2px border-r-primary-blue/15 text-start px-4 py-2.5",children:"Select a player"}),(0,l.jsx)(Z.Z,{size:18,className:"mx-2"})]})}),className:"bg-white w-64 border-1/2px border-primary-blue/15 rounded text-primary-dark-blue",children:(0,l.jsxs)("div",{className:"flex flex-col w-full cursor-pointer",children:[n.map(e=>{var n;return(0,l.jsxs)("div",{className:(0,w.Z)("flex w-full gap-2 items-center p-4 hover:bg-primary-gray-lighter",(null==s?void 0:s.playerId)===e.playerId?"bg-primary-gray-lighter":"bg-white",e.playerId===t),onClick:()=>i(e),children:[e.assets.logo?(0,l.jsx)("img",{src:e.assets.logo,alt:e.name}):(0,l.jsx)("div",{className:"[&_svg]:w-6 [&_svg]:h-6",children:(0,l.jsx)(Player,{})}),(0,l.jsxs)("div",{className:"w-full flex flex-col justify-center truncate",children:[(0,l.jsx)("p",{className:"text-center truncate",children:e.name?e.name:e.playerId}),(0,l.jsx)("div",{className:"w-full h-2 rounded-full border-1/2px border-primary-blue/15",style:{backgroundColor:e.link}})]})]},e.playerId)}),(0,l.jsxs)("div",{className:"flex justify-between p-3 border-t border-primary-blue/15",children:[(0,l.jsx)(b.xp,{onClick:()=>{i(null),r(null)},className:"text-primary-red/80 font-medium text-xs",children:"Remove"}),(0,l.jsx)(b.xp,{onClick:()=>r(s.playerId),className:"text-primary-blue font-semibold text-xs",children:"Apply"})]})]})}):(0,l.jsx)(PlayerTrigger,{children:(0,l.jsxs)("div",{className:"flex flex-col gap-2 p-2",children:[(0,l.jsx)("div",{className:"text-xs text-primary-blue",children:"You first need to create a player"}),(0,l.jsx)("div",{onClick:function(){o.push("/project-settings/players")},className:"flex justify-center",children:(0,l.jsx)("div",{className:"border-1/2px w-fit p-1 text-xs rounded bg-primary-blue text-white",children:"Create a player"})})]})})}function PlayerTrigger(e){let{children:t}=e;return(0,l.jsx)("button",{className:"lg:min-w-[230px] lg:min-h-[62px] w-fit h-fit bg-blue border border-primary-gray rounded drop-shadow-2xl cursor-pointer",children:t})}},83110:function(e,t,n){n.d(t,{H:function(){return AssetsRow},Z:function(){return information}});var r=n(85893),l=n(25644),a=n(55846),s=n(6664),i=n(85439),o=n(67294),c=n(46271),d=n(59046),u=n(41965),m=n(26622),p=n(47032),x=n(41661),f=n(82729),g=n(19521);function _templateObject4(){let e=(0,f._)(["\n   50% {\n      opacity: 0;\n    }\n"]);return _templateObject4=function(){return e},e}let flickerAnimation=()=>(0,g.keyframes)(_templateObject4());function style_templateObject(){let e=(0,f._)(["\n    border-radius: ",";\n    box-shadow:\n        0px 0px 1px rgba(66, 71, 76, 0.32),\n        0px 4px 8px rgba(66, 71, 76, 0.06),\n        0px 8px 48px #eeeeee;\n    width: 100%;\n    padding: ",";\n    display: flex;\n    flex-direction: column;\n    justify-content: space-between;\n    gap: 1rem;\n"]);return style_templateObject=function(){return e},e}function style_templateObject1(){let e=(0,f._)(["\n            ","\n        "]);return style_templateObject1=function(){return e},e}
1function style_templateObject2(){let e=(0,f._)(["\n                ","\n            "]);return style_templateObject2=function(){return e},e}function style_templateObject3(){let e=(0,f._)(["\n        background-color: ",";\n    "]);return style_templateObject3=function(){return e},e}function style_templateObject4(){let e=(0,f._)(["\n    height: 12px;\n    width: 12px;\n    border-radius: 50%;\n    ","\n"]);return style_templateObject4=function(){return e},e}function _templateObject5(){let e=(0,f._)(["\n    width: 100%;\n    display: grid;\n    grid-template-columns: minmax(100px, 1fr) minmax(75%, 0);\n    align-items: center;\n"]);return _templateObject5=function(){return e},e}function _templateObject6(){let e=(0,f._)(["\n    font-family: ",", monospace;\n    border: 4px solid ",";\n    background-color: ",";\n    border-radius: ",";\n    font-size: ",";\n    font-weight: ",";\n    gap: ",";\n    text-align: center;\n    display: flex;\n    justify-content: center;\n"]);return _templateObject6=function(){return e},e}function _templateObject7(){let e=(0,f._)(["\n    font-family: ",", monospace;\n"]);return _templateObject7=function(){return e},e}function _templateObject8(){let e=(0,f._)(["\n            ","\n        "]);return _templateObject8=function(){return e},e}function _templateObject9(){let e=(0,f._)(["\n        background-color: ",";\n        color: ",";\n    "]);return _templateObject9=function(){return e},e}function _templateObject10(){let e=(0,f._)(["\n    padding: "," ",";\n    ",";\n    width: 100%;\n    border-radius: ",";\n"]);return _templateObject10=function(){return e},e}let b=g.default.div.withConfig({componentId:"sc-d3870790-0"})(style_templateObject(),e=>{let{theme:t}=e;return t.radius.base},e=>{let{theme:t}=e;return t.spacing.regular}),h=g.default.div.withConfig({componentId:"sc-d3870790-1"})(style_templateObject4(),e=>{let{status:t,encodingStatus:n,theme:r}=e;if(t){let e={missing:{"background-color":r.colors.blue[300]},uploading:{"background-color":r.colors.yellow[300],"animation-name":flickerAnimation,"animation-duration":"1s","animation-iteration-count":"infinite"},uploaded:{"background-color":r.colors.green[500]},ingested:{"background-color":r.colors.green[500]}};return(0,g.css)(style_templateObject1(),e[t])}if(n){let e={waiting:{"background-color":r.colors.blue[300]},encoding:{"background-color":r.colors.yellow[300],"animation-name":flickerAnimation,"animation-duration":"1s","animation-iteration-count":"infinite"},encoded:{"background-color":r.colors.green[500]}};if(e[n])return(0,g.css)(style_templateObject2(),e[n])}return(0,g.css)(style_templateObject3(),e=>{let{theme:t}=e;return t.colors.blue[300]})}),j=g.default.div.withConfig({componentId:"sc-d3870790-2"})(_templateObject5()),y=g.default.div.withConfig({componentId:"sc-d3870790-3"})(_templateObject6(),e=>{let{theme:t}=e;return t.family.JetBrains},e=>{let{theme:t}=e;return t.colors.blue[50]},e=>{let{theme:t}=e;return t.colors.blue[50]},e=>{let{theme:t}=e;return t.radius.large},e=>{let{theme:t}=e;return t.text.xs},e=>{let{theme:t}=e;return t.weight.medium},e=>{let{theme:t}=e;return t.spacing.xs2}),v=(0,g.default)(x.Gy).withConfig({componentId:"sc-d3870790-4"})(_templateObject7(),e=>{let{theme:t}=e;return t.family.JetBrains}),w=g.default.div.withConfig({componentId:"sc-d3870790-5"})(_templateObject10(),e=>{let{theme:t}=e;return t.spacing.xs1},e=>{let{theme:t}=e;return t.spacing.xs},e=>{let{status:t,theme:n}=e;if(t){let e={received:{"background-color":n.colors.yellow[300],color:n.colors.yellow[700]},uploaded:{"background-color":n.colors.green[300],color:n.colors.green[800]}};return(0,g.css)(_templateObject8(),e[t])}return(0,g.css)(_templateObject9(),e=>{let{theme:t}=e;return t.colors.grey[200]},e=>{let{theme:t}=e;return t.colors.grey[300]})},e=>{let{theme:t}=e;return t.radius.lg});var statusCard=e=>{var t;let{status:n,size:l,playable:a,receivedParts:f,encodingStatus:g,encodingQualities:_,embedLink:N}=e,[O,k]=(0,o.useState)([]),[E,C]=(0,o.useState)([]),[Z,S]=(0,o.useState)([]);(0,o.useEffect)(()=>{(null==f?void 0:f.total)&&handleParts()},[f]);let handleParts=()=>{let e=[];for(let t=1;t<=f.total;t++)e.push(t);let t=[];if(e.length<=10)for(let n=0;n<e.length;n++)t.push((0,r.jsx)(w,{status:handlePartStatus(e[n]),children:e[n]},"part-".concat(n+1)));else{let n=(0,i.F3)(e,2),l=n[0].slice(0,3),a=n[1].slice(-3),s=l.concat(["..."],a);for(let e=0;e<s.length;e++)t.push((0,r.jsx)(w,{status:handlePartStatus(s[e]),children:s[e]},"part-".concat(e+1)))}S(t)},handlePartStatus=e=>"uploaded"===n?n:f.parts.includes(e)?"received":void 0;return(0,o.useEffect)(()=>
1{if(null==_?void 0:_.length){let e=_.filter(e=>"hls"===e.type);k(e);let t=_.filter(e=>"mp4"===e.type);C(t)}},[_]),(0,r.jsxs)(b,{children:[(0,r.jsx)(s.Ej,{justify:s.WD.SPACEBETWEEN,align:s.xM.CENTER,children:(0,r.jsxs)(s.Ej,{align:s.xM.CENTER,children:[(0,r.jsx)(h,{status:n}),(0,r.jsx)(x.Gy,{noMargin:!0,color:x.nO.DARKGREY,weight:x.w6.BOLD,children:(()=>{let e={missing:"Video not ingested",uploading:"Video uploading",uploaded:"Video ingested",ingested:"Video ingested"};return e[n]?e[n]:"Video not ingested"})()})]})}),(0,r.jsxs)(s.Ej,{column:!0,gap:16,children:[(0,r.jsxs)(j,{children:[(0,r.jsx)(x.Gy,{noMargin:!0,size:x.aU.xs,color:x.nO.DARKGREY,weight:x.w6.SEMI,children:"Ingest status"}),(0,r.jsx)(p.Z,{type:n,padding:"5px"})]}),(0,r.jsxs)(j,{children:[(0,r.jsx)(x.Gy,{noMargin:!0,size:x.aU.xs,color:x.nO.DARKGREY,weight:x.w6.SEMI,children:"File Size"}),l?(0,r.jsxs)(v,{noMargin:!0,size:x.aU.xs,children:[l," bytes"]}):(0,r.jsx)(p.Z,{type:"null",padding:"5px"})]}),(0,r.jsxs)(j,{className:"overflow-x-auto",children:[(0,r.jsx)(x.Gy,{noMargin:!0,size:x.aU.xs,color:x.nO.DARKGREY,weight:x.w6.SEMI,children:"Received Parts"}),(null==f?void 0:null===(t=f.parts)||void 0===t?void 0:t.length)?(0,r.jsx)(y,{children:Z}):(0,r.jsx)(y,{children:(0,r.jsx)(w,{children:"No parts received"})})]}),"missing"===n?(0,r.jsx)(s.Ej,{justify:s.WD.SPACEBETWEEN,align:s.xM.CENTER,fullWidth:!0,children:(0,r.jsx)(u.Z,{variant:"link",icon:(0,r.jsx)(c.Z,{size:"17px",strokeWidth:"0.2rem"}),children:(0,r.jsx)("a",{target:"_blank",href:"".concat("https://docs.api.video","/reference/api/Videos#upload-a-video"),rel:"noreferrer",children:"Learn how to add video upload to your app"})})}):(0,r.jsxs)(s.Ej,{column:!0,fullWidth:!0,children:[(0,r.jsxs)(s.Ej,{align:s.xM.CENTER,children:[(0,r.jsx)(h,{encodingStatus:g}),(0,r.jsx)(x.Gy,{noMargin:!0,color:x.nO.DARKGREY,weight:x.w6.BOLD,children:{waiting:"Video not encoded",encoding:"Video encoding",encoded:"Video encoded"}[g]})]}),"encoding"===g&&(0,r.jsxs)(j,{children:[(0,r.jsx)(x.Gy,{noMargin:!0,size:x.aU.xs,color:x.nO.DARKGREY,weight:x.w6.SEMI,children:"Playable status"}),(0,r.jsxs)(s.Ej,{children:[(0,r.jsx)(p.Z,{type:a?"true":"false",padding:"5px"}),a&&N&&(0,r.jsx)(u.Z,{size:m.qE.XS,variant:"link",icon:(0,r.jsx)(d.Z,{size:"17px",strokeWidth:"0.2rem"}),children:(0,r.jsx)("a",{target:"_blank",href:N,rel:"noreferrer",children:"view video"})})]})]}),(null==_?void 0:_.length)?(0,r.jsxs)(j,{className:"overflow-x-hidden",children:[(0,r.jsx)(x.Gy,{noMargin:!0,size:x.aU.xs,color:x.nO.DARKGREY,weight:x.w6.SEMI,children:"Encoding qualities"}),(0,r.jsxs)(s.Ej,{column:!0,fullWidth:!0,className:"overflow-x-auto",children:[(null==O?void 0:O.length)?(0,r.jsxs)(s.Ej,{align:s.xM.CENTER,className:"overflow-x-auto",children:[(0,r.jsx)(v,{noMargin:!0,size:x.aU.xs,weight:x.w6.SEMI,children:"HLS:"}),O.map((e,t)=>(0,r.jsx)("div",{children:(0,r.jsx)(p.Z,{type:e.status,title:e.quality,padding:"5px"})},"hls-".concat(t)))]}):null,(null==E?void 0:E.length)?(0,r.jsxs)(s.Ej,{align:s.xM.CENTER,className:"overflow-x-auto",children:[(0,r.jsx)(v,{noMargin:!0,size:x.aU.xs,weight:x.w6.SEMI,children:"MP4:"}),E.map((e,t)=>(0,r.jsx)("div",{children:(0,r.jsx)(p.Z,{type:e.status,title:e.quality,padding:"5px"})},"mp4-".concat(t)))]}):null]})]}):null]})]})]})},_=n(19839),N=n(88749),O=n(76609),k=n(90512),E=n(11163),C=n(90791),Z=n(78268),S=n(46445),T=n(70616);function AssetsRow(e){let{className:t,title:n,value:a,copyCallback:s}=e;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("p",{className:(0,k.Z)("text-xs text-primary-blue font-semibold border-b-1/2px border-primary-grey flex items-center",t),children:n}),(0,r.jsx)("div",{className:(0,k.Z)("text-xs text-primary-blue text-left flex col-span-3 gap-2 border-b-1/2px border-primary-grey items-center",t),children:(0,r.jsx)("p",{className:"overflow-x-auto w-full pl-2 h-min",children:a})}),(0,r.jsx)("div",{className:(0,k.Z)("flex justify-end border-b-1/2px border-primary-grey items-center",t),children:(0,r.jsx)(l.Z,{value:a,copyCallback:s})})]})}var information=e=>{var t,n,s,i,c;let{videoDetails:d,videoStatus:u,privateSession:m}=e,p=(0,E.useRouter)(),x=p.query.itemId,[f,g]=(0,o.useState)(!1),b=(0,O.Z)(x,u),h=(0,N.Z)();return(0,r.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,r.jsxs)("div",{className:"bg-white border border-primary-gray-lighter rounded-md w-full grid grid-cols-1 xl:grid-cols-2",children:[(0,r.jsxs)("div",{className:"w-full text-xs text-primary-blue font-semibold px-3 pb-3 md:py-6 md:px-5 lg:py-12 lg:px-10 ",children:[(0,r.jsxs)("div",{className:"border-b-1/2px py-5 flex items-center justify-between",children:[(0,r.jsx)("div",{children:"Video ID:"}),(0,r.jsxs)("div",{className:"flex gap-2 items-center font-normal",children:[d.videoId,(0,r.jsx)("button",{onClick:function(){navigator.clipboard.writeText(d.assets.player),g(!0),setTimeout(()=>{g(!1)},1e3)},className:"bg-primary-gray-300/40 p-1 rounded-sm",children:f?(0,r.jsx)(S.Z,{size:"14px",className:"text-primary-green"}):(0,r.jsx)(T.Z,{size:"14px"})})]})]}),(0,r.jsxs)("div",{className:"border-b-1/2px py-5 grid grid-cols-6 items-center w-full",children:[(0,r.jsx)("div",{className:"pr-2",children:"Link:"}),(0,r.jsxs)("div",{className:"flex items-center font-normal justify-end col-span-5",children:[(0,r.jsx)("p",{className:"overflow-auto w-fit mr-2",children:d.assets.player}),(0,r.jsx)(l.Z,{value:d.assets.player})]})]}),(0,r.jsxs)("div",{className:"border-b-1/2px py-5 flex items-center justify-between",children:[(0,r.jsx)("div",{children:"Created at:"}),(0,r.jsx)("div",{className:"flex gap-2 items-center font-normal",children:(0,_.HE)(d.createdAt)})]}),(0,r.jsxs)("div",{className:"border-b-1/2px py-5 flex items-center justify-between",children:[(0,r.jsx)("div",{children:"Updated at:"}),(0,r.jsx)("div",{className:"flex gap-2 items-center font-normal",children:(0,_.HE)(d.updatedAt)})]}),(0,r.jsxs)("div",{className:"border-b-1/2px py-5 flex items-center justify-between",children:[(0,r.jsx)("div",{children:"Encoding status:"}),(0,r.jsx)("div",{className:"flex gap-2 items-center font-normal",children:function(){var e,t,n,l,a;let s=b.encodingStatus||"waiting",i=(null==b?void 0:null===(t=b.encoding)||void 0===t?void 0:null===(e=t.qualities)||void 0===e?void 0:e.length)||0,o=(null==b?void 0:null===(a=b.encoding)||void 0===a?void 0:null===(l=a.qualities)||void 0===l?void 0:null===(n=l.filter(e=>"encoded"===e.status))||void 0===n?void 0:n.length)||0;return(0,r.jsxs)("div",{className:"flex items-center justify-center gap-2",children:[function(){switch(s){case"waiting":default:return(0,r.jsx)(C.Z,{color:"#BBC9DD",strokeWidth:".10rem"});case"encoding":return(0,r.jsx)(C.Z,{color:"#F59E0B",strokeWidth:".20rem"});case"failed":return(0,r.jsx)(Z.Z,{color:"#EF4444",strokeWidth:".20rem"});case"encoded":return(0,r.jsx)(S.Z,{color:"#10B981",strokeWidth:".20rem",className:"bg-primary-green-500/10 rounded-sm p-1"})}}()," ",function(){switch(s){case"waiting":default:return(0,r.jsx)("div",{className:"text-xs font-semibold",children:s});case"failed":return(0,r.jsx)("div",{className:"text-xs font-semibold text-primary-red-500",children:s});case"encoded":case"encoding":return(0,r.jsxs)("div",{className:"text-xs font-semibold ".concat("encoded"===s?"text-primary-green":"text-[#F59E0B]"," flex flex-col md:flex-row text-center gap-1"),children:[s[0].toUpperCase()+s.slice(1),(0,r.jsxs)("div",{className:"font-normal ".concat("encoded"===s?"text-primary-green-500/50":"text-[#f8c977]"),children:["(",o,"/",i," ",i>1?"qualities":"quality"," ","passed)"]})]})}return s}()]})}()})]})]}),(0,r.jsx)("div",{className:"basis-1/2 w-full bg-white-to-grey-linear-gradient py-6 px-5 lg:py-12 lg:px-10 h-full ",children:(0,r.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,r.jsxs)("div",{className:"flex gap-2",children:[(0,r.jsx)(a.Z,{method:a.l.GET,endpoint:"/videos/".concat(d.videoId),linkUrl:"".concat("https://docs.api.video","/reference/api/Videos#retrieve-a-video-object"),projectId:h}),(0,r.jsx)(l.Z,{value:"/videos/".concat(d.videoId),style:"Bordered"})]}),(null==b?void 0:b.done)?(0,r.jsx)("iframe",{src:"".concat(d.assets.player).concat(m?"&avh="+m:"","#sdkOrigin:").concat(btoa('btoa("https://dashboard.api.video/")')),allow:"fullscreen",className:"aspect-video w-full"}):(0,r.jsx)(statusCard,{status:(null==b?void 0:null===(t=b.ingest)||void 0===t?void 0:t.status)||"missing",encodingStatus:null==b?void 0:b.encodingStatus,size:null==b?void 0:null===(n=b.ingest)||void 0===n?void 0:n.filesize,playable:null==b?void 0:null===(s=b.encoding)||void 0===s?void 0:s.playable,re
1ceivedParts:null==b?void 0:null===(i=b.ingest)||void 0===i?void 0:i.receivedParts,encodingQualities:null==b?void 0:null===(c=b.encoding)||void 0===c?void 0:c.qualities})]})})]}),(0,r.jsxs)("div",{className:"bg-white border border-primary-gray-lighter rounded-md w-full flex flex-col p-4 md:p-6 lg:p-10",children:[(0,r.jsx)("h3",{className:"text-lg font-semibold mb-6",children:"Assets"}),(0,r.jsx)("div",{className:"border-b-1/2px border-t-1/2px py-8",children:(0,r.jsxs)("div",{className:"flex flex-col md:flex-row md:justify-between",children:[(0,r.jsx)("div",{className:"text-sm font-semibold text-primary-blue pt-4",children:"Links"}),(0,r.jsxs)("div",{className:"grid grid-cols-5 basis-2/3",children:[(0,r.jsx)(AssetsRow,{className:"py-4",title:"Video",value:d.assets.player}),(0,r.jsx)(AssetsRow,{className:"py-4",title:"Embed Code",value:d.assets.iframe}),(0,r.jsx)(AssetsRow,{className:"py-4",title:"HLS",value:d.assets.hls}),(0,r.jsx)(AssetsRow,{className:"py-4",title:"MP4",value:d.assets.mp4}),(0,r.jsx)(AssetsRow,{className:"pt-4 !border-0",title:"Thumbnail",value:d.assets.thumbnail})]})]})}),(0,r.jsxs)("div",{className:"flex flex-col md:flex-row md:justify-between md:items-center mt-6",children:[(0,r.jsx)("div",{className:"text-sm font-semibold text-primary-blue",children:"Source"}),(0,r.jsx)("div",{className:"grid grid-cols-5 basis-2/3 mt-2 sm:mt-0",children:(0,r.jsx)(AssetsRow,{className:"!border-0",title:"URL",value:d.source.uri})})]})]})]})}},10024:function(e,t,n){n.r(t);var r=n(85893),l=n(67294),a=n(23939),s=n(68973),i=n(84501),o=n(73973),c=n(78268),d=n(29183),u=n(41661),m=n(64800);t.default=e=>{let{open:t,message:n,description:p,children:x,type:f,callback:g,persist:b}=e,[h,j]=(0,l.useState)(!1);return(0,l.useEffect)(()=>{t&&(j(!0),b||setTimeout(()=>{j(!1),g&&g()},5e3))},[t]),h&&(m.Fh,m.Sy,d.$$.regular,d.mE.lg,r.Fragment,f&&(()=>{switch(f){case"success":return m.zM,a.Z;case"error":return m.zM,s.Z;case"warning":return m.zM,i.Z;case"information":return m.zM,o.Z;default:return 0}})(),m.BZ,m.Cd,u.aU.xs,u.w6.BOLD,(p||x)&&(m.X,u.aU.xs,u.w6.REGULAR),m.YY,c.Z),(0,r.jsx)(r.Fragment,{})}},64800:function(e,t,n){n.d(t,{BZ:function(){return p},Cd:function(){return u},Fh:function(){return c},Sy:function(){return f},X:function(){return m},YY:function(){return x},zM:function(){return d}});var r=n(82729),l=n(19521),a=n(41661),s=n(29183);function _templateObject(){let e=(0,r._)(["\n  from {\n    transform: translateX(50%);\n    opacity: 0;\n  }\n\n  to {\n    transform: translateX(0);\n    opacity: 1;\n  }\n"]);return _templateObject=function(){return e},e}function _templateObject1(){let e=(0,r._)(["\n  from {\n    transform: scale(1);\n    opacity: 1;\n  }\n\n  to {\n    transform: scale(.5);\n    opacity: 0;\n  }\n"]);return _templateObject1=function(){return e},e}function _templateObject2(){let e=(0,r._)(["\n    position: fixed;\n    z-index: 99;\n    top: 0;\n    right: 0;\n    display: flex;\n    flex-direction: column;\n    align-items: flex-end;\n    background-image: linear-gradient(18deg, rgba(255, 255, 255, 0) 50%, #f7f7f7 100%);\n"]);return _templateObject2=function(){return e},e}function _templateObject3(){let e=(0,r._)(["\n    z-index: 999;\n    min-width: 380px;\n    transform-origin: center right;\n    transform: translateX(50%);\n    opacity: 0;\n    visibility: ",";\n    animation: "," 0.2s ease-in-out;\n    animation-fill-mode: forwards;\n    transition: visibility 0.1s ease-in-out;\n    padding: ",";\n    padding-bottom: 0;\n    &:first-child {\n        padding-top: ",";\n    }\n    &:last-child {\n        padding-bottom: ",";\n    }\n    ","\n"]);return _templateObject3=function(){return e},e}function _templateObject4(){let e=(0,r._)(["\n    padding: ",";\n    border-radius: 50%;\n    background: ",";\n    color: ",";\n    margin-right: 1em;\n    align-self: flex-start;\n    svg {\n        width: 1em;\n        height: 1em;\n        stroke-width: 2;\n    }\n"]);return _templateObject4=function(){return e},e}function _templateObject5(){let e=(0,r._)(["\n    margin-bottom: 0.5em;\n"]);return _templateObject5=function(){return e},e}
1function _templateObject6(){let e=(0,r._)(["\n    margin-bottom: 0;\n    a {\n        color: ",";\n        cursor: pointer;\n        text-decoration: underline;\n        text-decoration-style: dotted;\n    }\n"]);return _templateObject6=function(){return e},e}function _templateObject7(){let e=(0,r._)(["\n    flex: 1;\n"]);return _templateObject7=function(){return e},e}function _templateObject8(){let e=(0,r._)(["\n    color: ",";\n    background: none;\n    border: none;\n    margin-left: 1em;\n    &:hover {\n        color: ",";\n    }\n"]);return _templateObject8=function(){return e},e}function _templateObject9(){let e=(0,r._)(["\n                ","\n            "]);return _templateObject9=function(){return e},e}function _templateObject10(){let e=(0,r._)(["\n    position: relative;\n    display: flex;\n    align-items: center;\n    flex-direction: row;\n    justify-content: space-between;\n    overflow: hidden;\n    box-shadow: ",";\n    "," {\n        ","\n    }\n"]);return _templateObject10=function(){return e},e}let i=(0,l.keyframes)(_templateObject()),o=(0,l.keyframes)(_templateObject1());l.default.div.withConfig({componentId:"sc-22449dd5-0"})(_templateObject2());let c=l.default.div.withConfig({componentId:"sc-22449dd5-1"})(_templateObject3(),e=>e.open?"visible":"hidden",e=>e.open?i:o,e=>{let{theme:t,open:n}=e;return n?"".concat(t.spacing.xs," ").concat(t.spacing.medium):0},e=>{let{theme:t,open:n}=e;return n?t.spacing.medium:0},e=>{let{theme:t,open:n}=e;return n?t.spacing.medium:0},(()=>{let e="";for(let t=0;t<10;t++)e+="\n            &:nth-child(".concat(t+1,") {\n                animation-delay: ").concat("".concat(.1*t,"s"),";\n            }\n        ");return e})()),d=l.default.div.withConfig({componentId:"sc-22449dd5-2"})(_templateObject4(),e=>{let{theme:t}=e;return t.spacing.xs},e=>{let{theme:t}=e;return t.colors.red[100]},e=>{let{theme:t}=e;return t.colors.red[500]}),u=(0,l.default)(a.Gy).withConfig({componentId:"sc-22449dd5-3"})(_templateObject5()),m=(0,l.default)(a.Gy).withConfig({componentId:"sc-22449dd5-4"})(_templateObject6(),e=>{let{theme:t}=e;return t.colors.orange[500]}),p=l.default.div.withConfig({componentId:"sc-22449dd5-5"})(_templateObject7()),x=l.default.button.withConfig({componentId:"sc-22449dd5-6"})(_templateObject8(),e=>{let{theme:t}=e;return t.colors.blue[300]},e=>{let{theme:t}=e;return t.colors.blue[500]}),f=(0,l.default)(s.Zb).withConfig({componentId:"sc-22449dd5-7"})(_templateObject10(),e=>{let{theme:t}=e;return t.shadow.medium},d,e=>{let{type:t,theme:n}=e,r={error:{background:n.colors.red[100],color:n.colors.red[500]},success:{background:n.colors.green[100],color:n.colors.green[500]},warning:{background:n.colors.yellow[100],color:n.colors.yellow[500]},information:{background:n.colors.blue[50],color:n.colors.blue[600]}};return(0,l.css)(_templateObject9(),t?r[t]:"")})},25644:function(e,t,n){var r=n(85893),l=n(90512),a=n(67294),s=n(46445),i=n(70616);t.Z=function(e){let{value:t,style:n,className:o,copyCallback:c}=e,[d,u]=(0,a.useState)(!1);return(0,r.jsx)("button",{onClick:function(){navigator.clipboard.writeText(t),u(!0),c&&c(),setTimeout(()=>{u(!1)},1e3)},className:(0,l.Z)("Bordered"===n?"border-1/2px py-1 px-2 rounded-sm":"bg-primary-gray-300/40 p-1 rounded-sm",o),children:d?(0,r.jsx)(s.Z,{size:"14px",className:"text-primary-green"}):(0,r.jsx)(i.Z,{size:"14px"})})}},55846:function(e,t,n){n.d(t,{l:function(){return l}});var r,l,a=n(85893),s=n(67294),i=n(46066),o=n(10024),c=n(85439);(r=l||(l={})).POST="POST",r.GET="GET",r.DELETE="DELETE",r.PATCH="PATCH",t.Z=e=>{let{method:t,endpoint:n,linkUrl:r,linkName:l="docs",projectId:d}=e,[u,m]=(0,s.useState)(!1),copy=e=>{(0,c.Md)(e),m(!0),setTimeout(()=>{m(!1)},3e3)};return(0,a.jsxs)(i.X$,{children:[(0,a.jsxs)(i.l2,{onClick:()=>copy(n),children:[(0,a.jsx)(i.lF,{method:t,children:t})," ",n]}),r&&(0,a.jsx)(i.bZ,{href:r,target:"_blank",rel:"noopener noreferrer",children:l}),(0,a.jsx)(o.default,{open:u,type:"success",message:"Endpoint copied to clipboard"})]})}},46066:function(e,t,n){n.d(t,{X$:function(){return s},bZ:function(){return c},l2:function(){return i},lF:function(){return o}});var r=n(82729),l=n(19521),a=n(55846);
1function _templateObject(){let e=(0,r._)(["\n    background-color: white;\n    border-radius: ",";\n    border: 1px solid ",";\n    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.05);\n    display: flex;\n    align-items: center;\n    padding: ",";\n    font-family: ",", monospace;\n    font-size: 12px;\n    color: ",";\n    width: 100%;\n    justify-content: space-between;\n    cursor: default;\n    gap: ",";\n    overflow: auto;\n"]);return _templateObject=function(){return e},e}function _templateObject1(){let e=(0,r._)(["\n        ",";\n    "]);return _templateObject1=function(){return e},e}function _templateObject2(){let e=(0,r._)(["\n    display: flex;\n    gap: ",";\n    align-items: center;\n    cursor: pointer;\n    min-width: max-content;\n"]);return _templateObject2=function(){return e},e}function _templateObject3(){let e=(0,r._)(["\n    height: 20px;\n    width: fit-content;\n    font-weight: 700;\n    text-transform: uppercase;\n    border-radius: ",";\n    text-align: center;\n    display: flex;\n    align-items: center;\n    justify-content: center;\n    padding: ",";\n    ","\n    color: white;\n"]);return _templateObject3=function(){return e},e}function _templateObject4(){let e=(0,r._)(["\n    font-size: 14px;\n    font-family: Arial;\n    color: ",";\n    font-weight: 500;\n"]);return _templateObject4=function(){return e},e}let s=l.default.div.withConfig({componentId:"sc-c88beec4-0"})(_templateObject(),e=>e.theme.radius.base,e=>e.theme.colors.grey[200],e=>e.theme.spacing.xs,e=>e.theme.family.JetBrains,e=>e.theme.colors.grey[300],e=>e.theme.spacing.regular),i=l.default.div.withConfig({componentId:"sc-c88beec4-1"})(_templateObject2(),e=>e.theme.spacing.xs),o=l.default.div.withConfig({componentId:"sc-c88beec4-2"})(_templateObject3(),e=>e.theme.radius.base,e=>e.theme.spacing.xs,e=>{let{method:t,theme:n}=e,r={[a.l.POST]:{"background-color":n.colors.blue[400]},[a.l.GET]:{"background-color":n.colors.green[500]},[a.l.DELETE]:{"background-color":n.colors.red[500]},[a.l.PATCH]:{"background-color":n.colors.yellow[500]}};return(0,l.css)(_templateObject1(),r[t])}),c=l.default.a.withConfig({componentId:"sc-c88beec4-3"})(_templateObject4(),e=>e.theme.colors.blue[600])},47032:function(e,t,n){n.d(t,{Z:function(){return statusTag}});var r=n(85893);n(67294);var l=n(82729),a=n(19521);function _templateObject(){let e=(0,l._)(["\n        ",";\n    "]);return _templateObject=function(){return e},e}function _templateObject1(){let e=(0,l._)(["\n    height: 22px;\n    width: fit-content;\n    font-size: ",";\n    font-weight: 700;\n    text-transform: uppercase;\n    background-color: rgba(255, 215, 0, 0.2);\n    border-radius: ",";\n    color: #f7b500;\n    text-align: center;\n    display: flex;\n    align-items: center;\n    justify-content: center;\n    padding: ",";\n    ","\n"]);return _templateObject1=function(){return e},e}let s=a.default.div.withConfig({componentId:"sc-26d8d5b2-0"})(_templateObject1(),e=>e.theme.text.xs,e=>e.theme.radius.base,e=>{var t;return null!==(t=e.padding)&&void 0!==t?t:"2px 14px"},e=>{let{type:t,theme:n}=e,r={pending:{"background-color":n.colors.yellow[100],color:n.colors.yellow[500]},beta:{"background-color":n.colors.yellow[100],color:n.colors.yellow[500]},uploading:{"background-color":n.colors.yellow[100],color:n.colors.yellow[500],"font-family":"".concat(n.family.JetBrains,", monospace"),"text-transform":"lowercase"},encoding:{"background-color":n.colors.yellow[100],color:n.colors.yellow[500],"font-family":"".concat(n.family.JetBrains,", monospace"),"text-transform":"lowercase"},failed:{"background-color":n.colors.red[100],color:n.colors.red[400],"font-family":"".concat(n.family.JetBrains,", monospace"),"text-transform":"lowercase"},declined:{"background-color":n.colors.red[100],color:n.colors.red[400]},expired:{"background-color":n.colors.grey[100],color:n.colors.grey[300]},false:{"background-color":n.colors.grey[100],color:n.colors.grey[300],"font-family":"".concat(n.family.JetBrains,", monospace"),"text-transform":"lowercase"},true:{"background-color":n.colors.green[100],color:n.colors.green[700],"font-family":"".concat(n.family.JetBrains,", monospace"),"text-transform":"lowercase"}
1,uploaded:{"background-color":n.colors.green[100],color:n.colors.green[700],"font-family":"".concat(n.family.JetBrains,", monospace"),"text-transform":"lowercase"},encoded:{"background-color":n.colors.green[100],color:n.colors.green[700],"font-family":"".concat(n.family.JetBrains,", monospace"),"text-transform":"lowercase"},missing:{"background-color":n.colors.grey[100],color:n.colors.grey[300],"font-family":"".concat(n.family.JetBrains,", monospace"),"text-transform":"lowercase"},waiting:{"background-color":n.colors.grey[100],color:n.colors.grey[300],"font-family":"".concat(n.family.JetBrains,", monospace"),"text-transform":"lowercase"},null:{"background-color":n.colors.grey[100],color:n.colors.grey[300],"font-family":"".concat(n.family.JetBrains,", monospace"),"text-transform":"lowercase"},new:{"background-color":n.colors.green[100],color:n.colors.green[500]},live:{"background-color":n.colors.red[500],color:n.colors.white}};return(0,a.css)(_templateObject(),r[t])});var statusTag=e=>{let{type:t,padding:n,title:l}=e;return(0,r.jsx)(s,{type:t,padding:n,children:l||t})}},96562:function(e,t,n){n.d(t,{Z:function(){return tabs}});var r=n(85893),l=n(41664),a=n.n(l);function BetaTag(){return(0,r.jsx)("span",{className:"ml-2 rounded px-2 py-1 text-xxs font-medium text-primary-brown bg-primary-light-yellow",children:"BETA"})}var s=n(82729),i=n(19521);function _templateObject(){let e=(0,s._)(["\n    width: 100%;\n    display: flex;\n    gap: ",";\n    border-bottom: ",";\n"]);return _templateObject=function(){return e},e}function _templateObject1(){let e=(0,s._)(["\n    padding: 0px 10px 4px 10px;\n    &:first-child {\n        padding-left: 0;\n    }\n    color: ",";\n    font-size: ",";\n    font-weight: ",";\n    border-bottom: ",";\n    margin-bottom: -2px;\n    transition: all 0.1s ease-out;\n    cursor: pointer;\n\n    &:hover {\n        color: ",";\n    }\n"]);return _templateObject1=function(){return e},e}let o=i.default.div.withConfig({componentId:"sc-5bcb02dc-0"})(_templateObject(),e=>{let{theme:t}=e;return t.spacing.lg},e=>{let{theme:t}=e;return" 1px solid ".concat(t.colors.grey[100])}),c=i.default.button.withConfig({componentId:"sc-5bcb02dc-1"})(_templateObject1(),e=>e.active?"orange"===e.color?"".concat(e.theme.colors.orange[400]):"".concat(e.theme.colors.blue[400]):"inherit",e=>{let{theme:t}=e;return t.text.sm},e=>{let{theme:t}=e;return t.weight.regular},e=>e.active&&"2px solid ".concat("orange"===e.color?e.theme.colors.orange[400]:e.theme.colors.blue[400]),e=>{let{theme:t}=e;return t.colors.grey[300]});var tabs=e=>{let{tabs:t,baseUrl:n,currentTab:l,color:s=null,shallow:i=!1}=e;return(0,r.jsx)(o,{children:t.map((e,t)=>(0,r.jsx)(a(),{href:"".concat(n,"/").concat(e.slug),className:"min-w-max",shallow:i,children:(0,r.jsxs)(c,{as:"a",active:"".concat(n,"/").concat(e.slug)===l,color:s,className:"flex gap-1",children:[e.name,e.beta&&(0,r.jsx)(BetaTag,{}),e.icon&&("".concat(n,"/").concat(e.slug)===l?e.icon.active:e.icon.inactive)]})},"tab-".concat(t)))})}},63336:function(e,t,n){n.d(t,{Z:function(){return __WEBPACK_DEFAULT_EXPORT__}});var r=n(34031);async function __WEBPACK_DEFAULT_EXPORT__(e){let{videoId:t}=e;await r.Z.delete("workspaces/current/contents/".concat(t),{contentType:"videos"})}},76609:function(e,t,n){var r=n(34031),l=n(67294);t.Z=(e,t)=>{let[n,a]=(0,l.useState)(t),[s,i]=(0,l.useState)(!0),o=(0,l.useRef)(null),c=null==t?void 0:t.done;return((0,l.useEffect)(()=>{if(c)return;let fetchData=async()=>{try{var t;let n=await r.Z.get("workspaces/current/contents/".concat(e,"/status")),l={...n,done:n.encoding.playable&&n.encoding.qualities.every(e=>["encoded","failed"].includes(e.status)),encodingStatus:!(t=n.encoding.qualities)||t.every(e=>"waiting"===e.status)?"waiting":t.some(e=>"failed"===e.status)?"failed":t.some(e=>"encoding"===e.status)?"encoding":"encoded"};l.done&&i(!1),a(l)}catch(e){console.error("Erreur lors de la r\xe9cup\xe9ration des donn\xe9es:",e)}};return s&&(fetchData(),o.current=setInterval(fetchData,3e3)),()=>{o.current&&clearInterval(o.current)}},[s,c]),c)?t:n}}}]);

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.