1import{A}from"./AppLayout-DshIP2pm.js";import{s as L,r as m,Q as T,l as V,p as k,c as H,o as l,w as B,d as r,a as e,e as $,n as b,F as v,g,t as o,A as u}from"./app-DDSQZi8b.js";import"./ApplicationMark-yyuu9Yf4.js";/* empty css */import"./_plugin-vue_export-helper-DlAUqK2U.js";import"./SaleBanner-B6JFvOJG.js";import"./Banner-C8OtZYy7.js";import"./Footer-CX0OMs6l.js";/* empty css *//* empty css */const S={key:0,class:"flex items-center justify-center my-6"},j={key:1,class:"py-12"},z={class:"max-w-7xl mx-auto sm:px-6 lg:px-8"},Z={class:"overflow-hidden border border-gray-200 sm:rounded-lg p-12 text-2xl"},E={class:"flex space-x-4 border-b mb-4"},N={key:0},I={class:"relative overflow-x-auto"},F={class:"w-full text-sm text-left rtl:text-right text-gray-500"},W={scope:"row",class:"px-6 py-4 font-medium text-gray-900 whitespace-nowrap"},D={class:"flex items-start space-x-2"},Q=["href"],Y={class:"px-6 py-4 hidden lg:table-cell"},q={class:"px-6 py-4 hidden lg:table-cell"},G={class:"px-6 py-4 hidden lg:table-cell"},J={class:"px-6 py-4"},K=["disabled","onClick"],O={key:1},P={key:1},R={class:"relative overflow-x-auto"},U={class:"w-full text-sm text-left rtl:text-right text-gray-500"},X={scope:"row",class:"px-6 py-4 font-medium text-gray-900 whitespace-nowrap"},ee={class:"flex items-start space-x-2"},se=["href"],te={class:"px-6 py-4 hidden lg:table-cell"},oe={class:"px-6 py-4 hidden lg:table-cell"},le={class:"px-6 py-4 hidden lg:table-cell"},re={class:"px-6 py-4"},ae=["disabled","onClick"],ne={key:1},ie={key:2},de={class:"relative overflow-x-auto"},ce={class:"w-full text-sm text-left rtl:text-right text-gray-500"},pe={scope:"row",class:"px-6 py-4 font-medium text-gray-900 whitespace-nowrap"},ue={class:"flex items-start space-x-2"},he=["href"],xe={class:"text-gray-500"},me={class:"px-6 py-4 hidden lg:table-cell"},ke={class:"px-6 py-4 hidden lg:table-cell"},be={class:"px-6 py-4 hidden lg:table-cell"},ve={class:"px-6 py-4"},ge=["disabled","onClick"],ye={key:1},$e={__name:"Bookmarks",setup(_e){const c=L(),h=m(!0),i=m(!1),C=T(),a=m("courses");V(()=>{h.value=!0,c.dispatch("bookmark/fetchAllBookmarks").finally(()=>{h.value=!1})});const y=k(()=>c.getters["bookmark/courseBookmarks"]),_=k(()=>c.getters["bookmark/videoBookmarks"]),f=k(()=>c.getters["bookmark/lessonBookmarks"]),w=d=>{i.value||(i.value=!0,c.dispatch("bookmark/removeBookmark",{id:d}).then(()=>{u.success("Bookmark deleted successfully!"),i.value=!1}).catch(s=>{var t,n;u.error(((n=(t=s.response)==null?void 0:t.data)==null?void 0:n.message)||"Error removing bookmark."),console.error("Error removing bookmark:",s)}))},M=d=>{i.value||(i.value=!0,c.dispatch("bookmark/removeVideoBookmark",{id:d}).then(()=>{u.success("Bookmark deleted successfully!"),i.value=!1}).catch(s=>{var t,n;u.error(((n=(t=s.response)==null?void 0:t.data)==null?void 0:n.message)||"Error removing bookmark."),console.error("Error removing bookmark:",s)}))},x=(d,s,t=null,n=null)=>{if(!C.props.isSubscribed&&d==="subscription")return`/s/free/course/lessons/${s}`;let p=d==="subscription"?`/s/sub/course/lessons/${s}`:`/s/life/course/lessons/${s}`;return t&&(p+=`/${t}`),n&&(p+=`/${n}`),p};return(d,s)=>(l(),H(A,{title:"Bookmarks"},{header:B(()=>s[3]||(s[3]=[e("h2",{class:"font-semibold text-xl leading-tight"}," My Watch List ",-1)])),default:B(()=>[h.value?(l(),r("div",S,s[4]||(s[4]=[e("div",{class:"h-8 w-8 border-4 border-green-schoolism-500 border-t-transparent rounded-full animate-spin"},null,-1)]))):(l(),r("div",j,[e("div",z,[e("div",Z,[s[17]||(s[17]=e("h2",{class:"text-lg font-bold mb-4 flex items-center"},"MY WATCH LIST",-1)),e("div",null,[e("div",E,[e("button",{class:b(["text-sm font-semibold px-4 py-2",{"border-b-2 border-green-schoolism text-green-sch
1oolism":a.value==="courses","text-gray-500 hover:text-green-schoolism":a.value!=="courses"}]),onClick:s[0]||(s[0]=t=>a.value="courses")}," Courses ",2),e("button",{class:b(["text-sm font-semibold px-4 py-2",{"border-b-2 border-green-schoolism text-green-schoolism":a.value==="lessons","text-gray-500 hover:text-green-schoolism":a.value!=="lessons"}]),onClick:s[1]||(s[1]=t=>a.value="lessons")}," Lessons ",2),e("button",{class:b(["text-sm font-semibold px-4 py-2",{"border-b-2 border-green-schoolism text-green-schoolism":a.value==="bookmarks","text-gray-500 hover:text-green-schoolism":a.value!=="bookmarks"}]),onClick:s[2]||(s[2]=t=>a.value="bookmarks")}," Bookmarks ",2)]),a.value==="courses"?(l(),r("div",N,[e("div",I,[e("table",F,[s[8]||(s[8]=e("thead",{class:"text-xs text-gray-700 uppercase bg-gray-50"},[e("tr",null,[e("th",{scope:"col",class:"px-6 py-3"}," Title "),e("th",{scope:"col",class:"px-6 py-3 hidden lg:table-cell"}," Type "),e("th",{scope:"col",class:"px-6 py-3 hidden lg:table-cell"}," Instructor "),e("th",{scope:"col",class:"px-6 py-3 hidden lg:table-cell"}," Time "),e("th",{scope:"col",class:"px-6 py-3"})])],-1)),e("tbody",null,[y.value.length>0?(l(!0),r(v,{key:0},g(y.value,(t,n)=>(l(),r("tr",{key:t.id,class:"bg-white border-b border-gray-200"},[e("th",W,[e("div",D,[s[5]||(s[5]=e("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"w-6 h-6 text-green-sch
1oolism flex-shrink-0"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"}),e("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M15.91 11.672a.375.375 0 0 1 0 .656l-5.603 3.113a.375.375 0 0 1-.557-.328V8.887c0-.286.307-.466.557-.327l5.603 3.112Z"})],-1)),e("a",{href:x(t.course_type,t.id),class:"text-sm font-medium truncate text-primary"},o(t.course_title),9,Q)])]),e("td",Y,o(t.course_type==="subscription"?"My Subscription":"Lifetime Access"),1),e("td",q,o(t.instructor_names),1),e("td",G,o(t.formatted_duration),1),e("td",J,[e("button",{class:"text-red-500 hover:text-red-600 disabled:cursor-not-allowed",disabled:i.value,onClick:p=>w(t.bookmark_id)},s[6]||(s[6]=[e("svg",{xmlns:"http://www.w3.org/2000/svg",class:"h-5 w-5",viewBox:"0 0 20 20",fill:"currentColor"},[e("path",{"fill-rule":"evenodd",d:"M9 2a1 1 0 00-.894.553L7.382 4H4a1 1 0 000 2h12a1 1 0 100-2h-3.382l-.724-1.447A1 1 0 0011 2H9zM5 6a1 1 0 011 1v7a3 3 0 003 3h2a3 3 0 003-3V7a1 1 0 112 0v7a5 5 0 01-5 5H9a5 5 0 01-5-5V7a1 1 0 011-1z","clip-rule":"evenodd"})],-1)]),8,K)])]))),128)):(l(),r("tr",O,s[7]||(s[7]=[e("td",{colspan:"5",class:"p-4"},"None Available",-1)])))])])])])):a.value==="lessons"?(l(),r("div",P,[e("div",R,[e("table",U,[s[12]||(s[12]=e("thead",{class:"text-xs text-gray-700 uppercase bg-gray-50"},[e("tr",null,[e("th",{scope:"col",class:"px-6 py-3"}," Title "),e("th",{scope:"col",class:"px-6 py-3 hidden lg:table-cell"}," Type "),e("th",{scope:"col",class:"px-6 py-3 hidden lg:table-cell"}," Instructor "),e("th",{scope:"col",class:"px-6 py-3 hidden lg:table-cell"}," Time "),e("th",{scope:"col",class:"px-6 py-3"})])],-1)),e("tbody",null,[f.value.length>0?(l(!0),r(v,{key:0},g(f.value,(t,n)=>(l(),r("tr",{key:t.id,class:"bg-white border-b border-gray-200"},[e("th",X,[e("div",ee,[s[9]||(s[9]=e("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"w-6 h-6 text-green-sch
1oolism flex-shrink-0"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"}),e("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M15.91 11.672a.375.375 0 0 1 0 .656l-5.603 3.113a.375.375 0 0 1-.557-.328V8.887c0-.286.307-.466.557-.327l5.603 3.112Z"})],-1)),e("a",{class:"text-primary",href:x(t.course_type,t.course_id,t.video_id)},[e("div",null,o(t.course_title),1),e("div",null,"Lesson "+o(t.number)+" - "+o(t.video_title),1)],8,se)])]),e("td",te,o(t.course_type==="subscription"?"My Subscription":"Lifetime Access"),1),e("td",oe,o(t.instructor_names),1),e("td",le,o(t.formatted_duration),1),e("td",re,[e("button",{class:"text-red-500 hover:text-red-600 disabled:cursor-not-allowed",disabled:i.value,onClick:p=>w(t.bookmark_id)},s[10]||(s[10]=[e("svg",{xmlns:"http://www.w3.org/2000/svg",class:"h-5 w-5",viewBox:"0 0 20 20",fill:"currentColor"},[e("path",{"fill-rule":"evenodd",d:"M9 2a1 1 0 00-.894.553L7.382 4H4a1 1 0 000 2h12a1 1 0 100-2h-3.382l-.724-1.447A1 1 0 0011 2H9zM5 6a1 1 0 011 1v7a3 3 0 003 3h2a3 3 0 003-3V7a1 1 0 112 0v7a5 5 0 01-5 5H9a5 5 0 01-5-5V7a1 1 0 011-1z","clip-rule":"evenodd"})],-1)]),8,ae)])]))),128)):(l(),r("tr",ne,s[11]||(s[11]=[e("td",{colspan:"5",class:"p-4"},"None Available",-1)])))])])])])):a.value==="bookmarks"?(l(),r("div",ie,[e("div",de,[e("table",ce,[s[16]||(s[16]=e("thead",{class:"text-xs text-gray-700 uppercase bg-gray-50"},[e("tr",null,[e("th",{scope:"col",class:"px-6 py-3"}," Title "),e("th",{scope:"col",class:"px-6 py-3 hidden lg:table-cell"}," Type "),e("th",{scope:"col",class:"px-6 py-3 hidden lg:table-cell"}," Instructor "),e("th",{scope:"col",class:"px-6 py-3 hidden lg:table-cell"}," Time "),e("th",{scope:"col",class:"px-6 py-3"})])],-1)),e("tbody",null,[_.value.length>0?(l(!0),r(v,{key:0},g(_.value,(t,n)=>(l(),r("tr",{key:t.id,class:"bg-white border-b border-gray-200"},[e("th",pe,[e("div",ue,[s[13]||(s[13]=e("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"w-6 h-6 text-green-sch
1oolism flex-shrink-0"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"}),e("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M15.91 11.672a.375.375 0 0 1 0 .656l-5.603 3.113a.375.375 0 0 1-.557-.328V8.887c0-.286.307-.466.557-.327l5.603 3.112Z"})],-1)),e("a",{class:"text-primary",href:x(t.course_type,t.course_id,t.video_id,t.bookmark_id)},[e("div",null,o(t.course_title),1),e("div",null," Lesson "+o(t.number)+" - "+o(t.title),1),e("div",xe,o(t.bookmark_title),1)],8,he)])]),e("td",me,o(t.course_type==="subscription"?"My Subscription":"Lifetime Access"),1),e("td",ke,o(t.instructor_names),1),e("td",be,o(d.$filters.secondsToHHMMSS(t.time)),1),e("td",ve,[e("button",{class:"text-red-500 hover:text-red-600 disabled:cursor-not-allowed",disabled:i.value,onClick:p=>M(t.bookmark_id)},s[14]||(s[14]=[e("svg",{xmlns:"http://www.w3.org/2000/svg",class:"h-5 w-5",viewBox:"0 0 20 20",fill:"currentColor"},[e("path",{"fill-rule":"evenodd",d:"M9 2a1 1 0 00-.894.553L7.382 4H4a1 1 0 000 2h12a1 1 0 100-2h-3.382l-.724-1.447A1 1 0 0011 2H9zM5 6a1 1 0 011 1v7a3 3 0 003 3h2a3 3 0 003-3V7a1 1 0 112 0v7a5 5 0 01-5 5H9a5 5 0 01-5-5V7a1 1 0 011-1z","clip-rule":"evenodd"})],-1)]),8,ge)])]))),128)):(l(),r("tr",ye,s[15]||(s[15]=[e("td",{colspan:"5",class:"p-4"},"None Available",-1)])))])])])])):$("",!0)])])])]))]),_:1}))}};export{$e as default};
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.