PageSourceSearch

https://ireadify.com/_next/static/chunks/pages/admin/video-13a53136b0230fdf.js

js ireadify.com collected 2026-09-28 12:27:31 UTC 7,554 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8761],{86239:function(e,t,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/admin/video",function(){return r(41157)}])},13155:function(e){"use strict";e.exports={userRole:{admin:"owner",school:"school",teacher:"teacher"},isDeleted:{yes:1,no:0},bookType:{AUDIO:"AUDIO",EPUB:"EPUB",READALOUD:"READALOUD"},assignmentProgress:{notStarted:"NOT_STARTED",started:"STARTED",inProgress:"IN_PROGRESS",completed:"COMPLETED",pastDue:"PAST_DUE"},assignmentCompletedMinutes:15,subscriptionType:{paypal:"PAYPAL",authorizeNet:"AUTHORIZENET"},region:{region1:"Asia",region2:"Africa",region3:"North America",region4:"Caribbean",region5:"Europe",region6:"Other"},genre:{genre1:"Fiction",genre2:"Non-Fiction"},topic:{account:"How to Log-in to your iReadify account?",payments:"Subscription & payment",general:"General questions"},ireader:{url:"https://read.ireadify.com/ltigateway.htm",consumerKey:"bd2e37cdc25c42a0cc8397951afc8cf1",secretKey:"770a8908cbd043bdcb4a4e6aff6c75de",lisPersonContactEmailPrimary:"[email protected]"}}},41157:function(e,t,r){"use strict";r.r(t);var n=r(47568),i=r(26042),s=r(70655),a=r(85893),o=r(10552),l=r(44541),c=r(67294),d=r(43133),u=r(28723),h=r(41664),p=r.n(h),f=r(30381),x=r.n(f),m=r(80958),w=r(51531),b=r(13155),g=r(11163);t.default=function(){var e=(0,g.useRouter)().query.keyword,t=(0,c.useState)(),r=t[0],h=t[1],f=(0,c.useState)(!0),v=f[0],y=f[1],j=(0,c.useState)(""),N=j[0],A=j[1],E=(0,c.useState)(!1),_=E[0],D=E[1];(0,c.useEffect)((function(){e&&A(e),O(e)}),[e]);var O=function(){var e=(0,n.Z)((function(e){var t,r;return(0,s.__generator)(this,(function(n){switch(n.label){case 0:return y(!0),t={filter:{isDeleted:{eq:b.isDeleted.no}}},e&&(t={filter:{isDeleted:{eq:b.isDeleted.no},title:{matchPhrasePrefix:e}}},D(!0)),[4,o.b.graphql((0,l.wT)(u.oo,(0,i.Z)({sort:{direction:"desc",field:"createdAt"}},t)))];case 1:return r=n.sent(),h(r.data.searchVideos.items),y(!1),[2]}}))}));return function(t){return e.apply(this,arguments)}}(),S=function(){var e=(0,n.Z)((function(){var e,t;return(0,s.__generator)(this,(function(r){return O(N.trim()),e="?keyword="+N,t=window.location.protocol+"//"+window.location.host+window.location.pathname+e,window.history.pushState({path:t},"",t),[2]}))}));return function(){return e.apply(this,arguments)}}(),R=function(){var e=(0,n.Z)((function(e,t){var n,i;return(0,s.__generator)(this,(function(s){switch(s.label){case 0:return 1!=confirm("Are you sure to delete "+t+" video ? ")?[3,2]:(n={id:e,isDeleted:b.isDeleted.yes},[4,o.b.graphql((0,l.wT)(w.HH,{input:n}))]);case 1:s.sent(),i=r.filter((function(t){return t.id!==e})),h(i),s.label=2;case 2:return[2]}}
1))}));return function(t,r){return e.apply(this,arguments)}}();return(0,a.jsx)(d.Z,{children:(0,a.jsx)("div",{className:"flex flex-1 flex-col md:flex-row lg:flex-row mx-2",children:(0,a.jsxs)("div",{className:"mb-2 border-solid border-gray-300 rounded border shadow-sm w-full",children:[(0,a.jsx)("div",{className:"p-4",children:(0,a.jsxs)("div",{className:"bg-white shadow p-4 flex",children:[(0,a.jsx)("span",{className:"w-auto flex justify-end items-center text-gray-500 p-2",children:(0,a.jsx)("i",{className:"fa fa-search"})}),(0,a.jsx)("input",{className:"w-full rounded p-2 font-sans search-box mr-1",name:"keyword",value:N,onChange:function(e){A(e.target.value)},type:"text",placeholder:"Search by Title"}),""===N?(0,a.jsx)("button",{disabled:!0,className:"bg-indigo-400 whitespace-nowrap inline-flex font-medium text-white rounded p-2 pl-4 pr-4",children:"Search"}):(0,a.jsxs)("div",{className:"flex flex-1",children:[(0,a.jsx)("button",{onClick:S,className:"whitespace-nowrap inline-flex bg-gradient-to-r from-purple-bright to-purple-bright font-medium text-white hover:from-purple-light hover:to-blue-bright rounded p-2 pl-4 pr-4 mr-1",children:"Search"}),_?(0,a.jsx)("button",{onClick:function(){A(""),D(!1),O(null);var e=window.location.protocol+"//"+window.location.host+window.location.pathname;window.history.pushState({path:e},"",e)},className:"bg-red-500 text-white py-2 px-4 hover:bg-red-400 focus:outline-none flex items-center justify-center",children:"Cancel"}):null]})]})}),(0,a.jsx)("div",{className:"bg-purple-bright text-white text-bold px-2 py-3 border-solid border-gray-200 border-b",children:"List Video"}),(0,a.jsx)("div",{className:"p-3",children:v?(0,a.jsx)(m.Z,{}):(0,a.jsxs)("table",{className:"w-full rounded",children:[(0,a.jsx)("thead",{children:(0,a.jsxs)("tr",{children:[(0,a.jsx)("th",{className:"border px-4 py-2",children:"Title"}),(0,a.jsx)("th",{className:"border px-4 py-2",children:"Status"}),(0,a.jsx)("th",{className:"border px-4 py-2",children:"Created At"}),(0,a.jsx)("th",{className:"border px-4 py-2",children:"Actions"})]})}),(0,a.jsx)("tbody",{children:r.map((function(e){return(0,a.jsxs)("tr",{className:"text-center",children:[(0,a.jsx)("td",{className:"border px-4 py-2",children:e.title}),(0,a.jsx)("td",{className:"border px-4 py-2",children:e.status?(0,a.jsx)("svg",{className:"text-green-500 block m-auto w-8",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",children:(0,a.jsx)("path",{fillRule:"evenodd",d:"M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z",clipRule:"evenodd"})}):(0,a.jsx)("svg",{className:"text-red-500 block m-auto w-8",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",children:(0,a.jsx)("path",{fillRule:"evenodd",d:"M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z",clipRule:"evenodd"})})}),(0,a.jsx)("td",{className:"border px-4 py-2",children:x()(e.createdAt).format("MMMM Do YYYY, h:mm:ss a")}),(0,a.jsx)("td",{className:"border px-4 py-2 ",children:(0,a.jsxs)("div",{className:"flex flex-1 justify-center",children:[(0,a.jsx)("span",{className:"text-red-500 block w-4 cursor-pointer mx-2 ",children:(0,a.jsx)(p(),{href:"/admin/video/edit/".concat(e.id),legacyBehavior:!0,children:(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",children:[(0,a.jsx)("path",{d:"M17.414 2.586a2 2 0 00-2.828 0L7 10.172V13h2.828l7.586-7.586a2 2 0 000-2.828z"}),(0,a.jsx)("path",{fillRule:"evenodd",d:"M2 6a2 2 0 012-2h4a1 1 0 010 2H4v10h10v-4a1 1 0 112 0v4a2 2 0 01-2 2H4a2 2 0 01-2-2V6z",clipRule:"evenodd"})]})})}),(0,a.jsx)("span",{className:"text-red-500 block w-4 cursor-pointer mx-2",onClick:function(){return R(e.id,e.title)},children:(0,a.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",children:(0,a.jsx)("path",{fillRule:"evenodd",d:"M9 2a1 1 0 00-.894.553L7.382 4H4a1 1 0 000 2v10a2 2 0 002 2h8a2 2 0 002-2V6a1 1 0 100-2h-3.382l-.724-1.447A1 1 0 0011 2H9zM7 8a1 1 0 012 0v6a1 1 0 11-2 0V8zm5-1a1 1 0 00-1 1v6a1 1 0 102 0V8a1 1 0 00-1-1z",clipRule:"evenodd"})})})]})})]},e.id)}))})]})})]})})})}},99534:function(e,t,r){"use strict";function n(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},s=Object.keys(e);for(n=0;n<s.length;n++)r=s[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(n=0;n<s.length;n++)r=s[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}r.d(t,{Z:function(){return n}})}},function(e){e.O(0,[1664,3654,3133,1531,9774,2888,179],(function(){return t=86239,e(e.s=t);var t}));var t=e.O();_N_E=t}]);

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.