1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="ee42d1b5-eb58-434d-b165-83c762ef66e6",e._sentryDebugIdIdentifier="sentry-dbid-ee42d1b5-eb58-434d-b165-83c762ef66e6")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7745],{86441:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/dashboard/my-videos",function(){return n(10295)}])},23552:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});let i=(0,n(1462).Z)("download",[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]])},39074:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});let i=(0,n(1462).Z)("expand",[["path",{d:"m15 15 6 6",key:"1s409w"}],["path",{d:"m15 9 6-6",key:"ko1vev"}],["path",{d:"M21 16v5h-5",key:"1ck2sf"}],["path",{d:"M21 8V3h-5",key:"1qoq8a"}],["path",{d:"M3 16v5h5",key:"1t08am"}],["path",{d:"m3 21 6-6",key:"wwnumi"}],["path",{d:"M3 8V3h5",key:"1ln10m"}],["path",{d:"M9 9 3 3",key:"v551iv"}]])},26848:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});let i=(0,n(1462).Z)("info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]])},96615:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});let i=(0,n(1462).Z)("volume-2",[["path",{d:"M11 4.702a.705.705 0 0 0-1.203-.498L6.413 7.587A1.4 1.4 0 0 1 5.416 8H3a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h2.416a1.4 1.4 0 0 1 .997.413l3.383 3.384A.705.705 0 0 0 11 19.298z",key:"uqj9uw"}],["path",{d:"M16 9a5 5 0 0 1 0 6",key:"1q6k2b"}],["path",{d:"M19.364 18.364a9 9 0 0 0 0-12.728",key:"ijwkga"}]])},11317:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});let i=(0,n(1462).Z)("volume-x",[["path",{d:"M11 4.702a.705.705 0 0 0-1.203-.498L6.413 7.587A1.4 1.4 0 0 1 5.416 8H3a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h2.416a1.4 1.4 0 0 1 .997.413l3.383 3.384A.705.705 0 0 0 11 19.298z",key:"uqj9uw"}],["line",{x1:"22",x2:"16",y1:"9",y2:"15",key:"1ewh16"}],["line",{x1:"16",x2:"22",y1:"9",y2:"15",key:"5ykzw1"}]])},10295:function(e,t,n){"use strict";n.r(t),n.d(t,{__N_SSP:function(){return m},default:function(){return k}});var i=n(62364),a=n(67294),r=n(92729),l=n(84672),d=n(81292),o=n(85918),u=n(5810),s=n(63134),c=n(90909),v=n(61312),h=n(90841),y=n(83454);let f=e=>Array.isArray(e)?Array.from(new Set(e.flatMap(e=>{var t,n;return null!==(n=null==e?void 0:null===(t=e.products)||void 0===t?void 0:t.flatMap(e=>{var t,n;return null!==(n=null==e?void 0:null===(t=e.videos)||void 0===t?void 0:t.map(e=>Number(null==e?void 0:e.video_id)).filter(e=>Number.isFinite(e)))&&void 0!==n?n:[]}))&&void 0!==n?n:[]}))):[],p=(0,c.Z)(e=>{var t,n,c,p;let{content:m,shared:k}=e,{isUserValid:w}=(0,o.a)(),{userPurchaseData:g,fetchUserPurchaseData:Z}=(0,u.iQ)(),b={canonicalUrl:"".concat(null!==(t=y.env.NS_URL_HOSTNAME)&&void 0!==t?t:"https://www.navisavitravel.com").concat(null!==(n=null==m?void 0:m.slug)&&void 0!==n?n:"my-videos"),metaDescription:null!==(c=null==m?void 0:m.metaDescription)&&void 0!==c?c:"My Videos",title:null!==(p=null==m?void 0:m.pageTitle)&&void 0!==p?p:"My Videos"},_=null==m?void 0:m.openGraphMetadata,M=null==m?void 0:m.menu,[N,E]=(0,a.useState)(!0),[x,S]=(0,a.useState)([]),[A,D]=(0,a.useState)(""),I=(0,a.useRef)(!1);(0,a.useEffect)(()=>{g||I.current||(I.current=!0,Z(null))},[g,Z]);let L=(0,a.useMemo)(()=>f(g),[g]);(0,a.useEffect)(()=>{let e=!1;return(async()=>{if(!L.length){S([]),E(!1);return}E(!0);try{let t=await Promise.all(L.map(e=>r.Z.get("/api/media/videos/get-single-video?videoId=".concat(e))));if(!e){let e=t.map(e=>e.data.video).filter(e=>!!e),n=Array.from(new Map(e.map(e=>[e.id,e])).values());S(n)}}catch(e){console.error("Error fetching licensed videos:",e)}finally{e||E(!1)}})(),()=>{e=!0}},[L]);let V=(0,a.useMemo)(()=>{let e=A.toLowerCase();return x.filter(t=>{var n;return null===(n=t.title)||void 0===n?void 0:n.toLowerCase().includes(e)})},[x,A]);return w?(0,i.tZ)(d.Z,{isDashboard:!0,metadata:b,ogmd:_,menu:M,shared:k,hideFooterTop:!0,children:(0,i.BX)(h.VY,{children:[(0,i.BX)(h.mr,{children:[(0,i.tZ)(h.sB,{children:"Every video youâve licensed, in one place. Search your library to find a video you bought and jump straight back to it."}),x.length>0&&(0,i.BX)(h.hv,{children:[(0,i.tZ)(l.Z,{size:18}),(0,i.tZ)(h.o_,{type:"text",value:A,onChange:e=>D(e.target.value),placeholder:"Search your videos"})]})]}),N?(0,i.tZ)(v.Z,{message:"Loading..."}):0===x.length?(0,i.tZ)(h.ZN,{children:"No videos licensed as yet."}):0===V.length?(0,i.tZ)(h.xW,{children:"Your search did not return any results."}):(0,i.tZ)(h.FB,{children:V.map((e,t)=>{var n;return(0,i.tZ)(s.Z,{playlist:e,type:"playlist",modal:!0,showDownload:!0},null!==(n=null==e?void 0:e.id)&&void 0!==n?n:t)})})]})}):null});var m=!0,k=p}},function(e){e.O(0,[4577,9332,9184,7636,4097,1292,8894,3359,3134,9013,2888,9774,179],function(){return e(e.s=86441)}),_N_E=e.O()}]);
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.