text: "use strict";(self.webpackChunk=self.webpackChunk||[]).push([[6285],{7214:(t,a,e)=>{e.d(a,{Z:()=>i});var n=e(3645),s=e.n(n)()((function(t){return t[1]}));s.push([t.id,"svg[data-v-3e43005c]{display:inline-block;height:80px;position:absolute;right:0;top:0;width:80px}",""]);const i=s},3645:t=>{t.exports=function(t){var a=[];return a.toString=function(){return this.map((function(a){var e=t(a);return a[2]?"@media ".concat(a[2]," {").concat(e,"}"):e})).join("")},a.i=function(t,e,n){"string"==typeof t&&(t=[[null,t,""]]);var s={};if(n)for(var i=0;i<this.length;i++){var r=this[i][0];null!=r&&(s[r]=!0)}for(var l=0;l<t.length;l++){var o=[].concat(t[l]);n&&s[o[0]]||(e&&(o[2]?o[2]="".concat(e," and ").concat(o[2]):o[2]=e),a.push(o))}},a}},3379:(t,a,e)=>{var n,s=function(){return void 0===n&&(n=Boolean(window&&document&&document.all&&!window.atob)),n},i=function(){var t={};return function(a){if(void 0===t[a]){var e=document.querySelector(a);if(window.HTMLIFrameElement&&e instanceof window.HTMLIFrameElement)try{e=e.contentDocument.head}catch(t){e=null}t[a]=e}return t[a]}}(),r=[];function l(t){for(var a=-1,e=0;e<r.length;e++)if(r[e].identifier===t){a=e;break}return a}function o(t,a){for(var e={},n=[],s=0;s<t.length;s++){var i=t[s],o=a.base?i[0]+a.base:i[0],c=e[o]||0,d="".concat(o," ").concat(c);e[o]=c+1;var _=l(d),u={css:i[1],media:i[2],sourceMap:i[3]};-1!==_?(r[_].references++,r[_].updater(u)):r.push({identifier:d,updater:h(u,a),references:1}),n.push(d)}return n}function c(t){var a=document.createElement("style"),n=t.attributes||{};if(void 0===n.nonce){var s=e.nc;s&&(n.nonce=s)}if(Object.keys(n).forEach((function(t){a.setAttribute(t,n[t])})),"function"==typeof t.insert)t.insert(a);else{var r=i(t.insert||"head");if(!r)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");r.appendChild(a)}return a}var d,_=(d=[],function(t,a){return d[t]=a,d.filter(Boolean).join("\n")});function u(t,a,e,n){var s=e?"":n.media?"@media ".concat(n.media," {").concat(n.css,"}"):n.css;if(t.styleSheet)t.styleSheet.cssText=_(a,s);else{var i=document.createTextNode(s),r=t.childNodes;r[a]&&t.removeChild(r[a]),r.length?t.insertBefore(i,r[a]):t.appendChild(i)}}function m(t,a,e){var n=e.css,s=e.media,i=e.sourceMap;if(s?t.setAttribute("media",s):t.removeAttribute("media"),i&&"undefined"!=typeof btoa&&(n+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(i))))," */")),t.styleSheet)t.styleSheet.cssText=n;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(n))}}var v=null,g=0;function h(t,a){var e,n,s;if(a.singleton){var i=g++;e=v||(v=c(a)),n=u.bind(null,e,i,!1),s=u.bind(null,e,i,!0)}else e=c(a),n=m.bind(null,e,a),s=function(){!function(t){if(null===t.parentNode)return!1;t.parentNode.removeChild(t)}(e)};return n(t),function(a){if(a){if(a.css===t.css&&a.media===t.media&&a.sourceMap===t.sourceMap)return;n(t=a)}else s()}}t.exports=function(t,a){(a=a||{}).singleton||"boolean"==typeof a.singleton||(a.singleton=s());var e=o(t=t||[],a);return function(t){if(t=t||[],"[object Array]"===Object.prototype.toString.call(t)){for(var n=0;n<e.length;n++){var s=l(e[n]);r[s].references--}for(var i=o(t,a),c=0;c<e.length;c++){var d=l(e[c]);0===r[d].references&&(r[d].updater(),r.splice(d,1))}e=i}}}},75:(t,a,e)=>{e.d(a,{Z:()=>l});var n=e(3379),s=e.n(n),i=e(7214),r={insert:"head",singleton:!1};s()(i.Z,r);i.Z.locals;const l=(0,e(1900).Z)({},(function(){var t=this.$createElement,a=this._self._c||t;return a("div",{staticClass:"loader-svg"},[a("svg",{attrs:{version:"1.1",id:"L9",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",x:"0px",y:"0px",viewBox:"0 0 100 100","enable-background":"new 0 0 0 0","xml:space":"preserve"}},[a("path",{attrs:{fill:"rgb(130, 138, 159)",d:"M73,50c0-12.7-10.3-23-23-23S27,37.3,27,50 M30.9,50c0-10.5,8.5-19.1,19.1-19.1S69.1,39.5,69.1,50"}},[a("animateTransform",{attrs:{attributeName:"transform",attributeType:"XML",type:"rotate",dur:"1s",from:"0 50 50",to:"360 50 50",repeatCount:"indefinite"}})],1)])])}),[],!1,null,"3e43005c",null).exports},6285:(t,a,e)=>{e.r(a),e.d(a,{default:()=>i});var n=e(629);const s={data:function(){return{query:"",multi_select:[],showGroupButton:!1}},components:{Loader:e(75).Z},computed:(0,n.rn)({data:function(t){return t.manga.data},data_search:function(t){return t.manga.data_search},button_loading:function(t){return t.manga.button_loading},spinner_loading:function(t){return t.manga.spinner_loading}}),created:function(){this.$store.commit("CLEAN_SEARCH_MANGA"),this.$store.dispatch("GET_ALL_MANGA")},watch:{multi_select:function(t){this.multi_select.length>0?this.showGroupButton=!0:(this.showGroupButton=!1,document.getElementById("select-all").checked=!1)}},methods:{DELETE:function(t,a){var e=this;swal({title:"Are you sure to delete ?",icon:"warning",text:"All videos and subtitles will removed!",buttons:!0,dangerMode:!0}).then((function(n){n&&e.$store.dispatch("DELETE_MANGA",{id:t,key:a})}))},PAGINATION:function(t){this.$store.dispatch("GET_MANGA_PAGINATION",t)},SEARCH:function(){this.query.length>0?this.$store.dispatch("GET_MANGA_SEARCH",this.query):this.data_search.manga=null},USERS_ONLY:function(t){for(var a=this,e=0;e<this.multi_select.length;e++)document.getElementById(this.multi_select[e].id).checked=!1;axios.post("/api/admin/update/manga/users-only",{list:this.multi_select,users_only:t}).then((function(e){if(200===e.status){for(var n=0;n<e.data.list.length;n++)a.data.manga.data[e.data.list[n].key].mangas_users_only=t;a.multi_select=[]}}),(function(t){a.multi_select=[]}))},ADD_TO_MULITSELECT:function(t,a){if(this.multi_select.length>0){for(var e=0;e<this.multi_select.length;e++)if(this.multi_select[e].id==t)return void this.multi_select.splice(e,1);this.multi_select.push({id:t,key:a})}else this.multi_select.push({id:t,key:a})},ADD_ALL_TO_MULITSELECT:function(){if(this.multi_select.length>0){for(var t=0;t<this.multi_select.length;t++)document.getElementById(this.multi_select[t].id).checked=!1;this.multi_select=[]}else for(var a=0;a<this.data.manga.data.length;a++)this.multi_select.push({id:this.data.manga.data[a].mangas_id,key:a}),document.getElementById(this.data.manga.data[a].mangas_id).checked=!0}}};const i=(0,e(1900).Z)(s,(function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"series-manage"},[e("div",{staticClass:"k1_manage_table"},[e("h5",{staticClass:"title p-2"},[t._v("Series")]),t._v(" "),e("div",{staticClass:"m-2",attrs:{id:"manage-panel"}},[t.showGroupButton?e("div",{staticClass:"float-left mt-3"},[e("div",{staticClass:"button-group mt-2"},[e("button",{staticClass:"btn btn-sm btn-warning",on:{click:function(a){return t.USERS_ONLY(1)}}},[t._v("\n            Users only\n          ")]),t._v(" "),e("button",{staticClass:"btn btn-sm btn-warning",on:{click:function(a){return t.USERS_ONLY(0)}}},[t._v("\n            For all\n          ")])])]):t._e(),t._v(" "),e("ul",{staticClass:"nav nav-tabs"},[e("li",{staticClass:"col col-md-4 offset-md-8"},[e("div",{attrs:{id:"search"}},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.query,expression:"query"}],staticClass:"form-control mr-sm-2",attrs:{type:"text",placeholder:"Search"},domProps:{value:t.query},on:{keyup:t.SEARCH,input:function(a){a.target.composing||(t.query=a.target.value)}}})])])])]),t._v(" "),t.spinner_loading?e("div",{staticClass:"spinner-load"},[e("Loader")],1):t._e(),t._v(" "),t.spinner_loading?t._e():e("div",[null===t.data.series?e("div",{staticClass:"text-center"},[e("h4",[t._v("No result were found")])]):e("div",[Object.keys(t.data_search).length>0&&null!==t.data_search.manga?e("div",{staticClass:"table-responsive mt-2"},[e("div",{staticClass:"table table-hover"},[t._m(0),t._v(" "),e("tbody",t._l(t.data_search.manga,(function(a,n){return e("tr",{key:n},["local"==a.mangas_cloud?e("td",[e("img",{attrs:{src:"/storage/posters/300_"+a.mangas_poster,alt:a.mangas_name,width:"40"}})]):t._e(),t._v(" "),"aws"==a.mangas_cloud?e("td",[e("img",{attrs:{src:t.sm_poster+a.mangas_poster,alt:a.mangas_name,width:"40"}})]):t._e(),t._v(" "),e("td",[t._v(t._s(a.mangas_name))]),t._v(" "),e("td",[t._v(t._s(a.mangas_year))]),t._v(" "),"local"==a.mangas_cloud?e("td",[t._v("Local Server")]):t._e(),t._v(" "),"aws"==a.mangas_cloud?e("td",[t._v("AWS S3")]):t._e(),t._v(" "),a.mangas_users_only?e("td",[t._v("Users")]):e("td",[t._v("All")]),t._v(" "),e("td",[t._v(t._s(a.created_at))]),t._v(" "),e("td",[t._v(t._s(a.updated_at))]),t._v(" "),e("td",[e("div",{staticClass:"btn-group",attrs:{role:"group"}},[e("router-link",{staticClass:"btn btn-sm btn-warning btn-sm mr-2",attrs:{to:{name:"manga-edit",params:{id:a.mangas_id}},role:"button"}},[t._v("Edit\n                    ")]),t._v(" "),e("router-link",{staticClass:"btn btn-sm btn-warning btn-sm mr-2",attrs:{to:{name:"chapters-manage",params:{id:a.mangas_id}},role:"button"}},[t._v("Show\n                    ")]),t._v(" "),t.button_loading?t._e():e("button",{staticClass:"btn btn-sm btn-danger btn-sm mr-2",attrs:{id:a.mangas_id},on:{click:function(e){return t.DELETE(a.mangas_id,n)}}},[t._v("\n                      Delete\n                    ")]),t._v(" "),t.button_loading===a.mangas_id?e("button",{staticClass:"btn btn-sm btn-danger btn-sm mr-2",attrs:{disabled:""}},[e("i",{attrs:{id:"btn-progress"}}),t._v(" Loading\n                    ")]):t._e()],1)])])})),0)])]):t._e(),t._v(" "),null===t.data_search.manga||0===Object.keys(t.data_search).length?e("div",{staticClass:"table-responsive mt-2"},[e("div",{staticClass:"table table-hover"},[e("thead",[e("th",{staticStyle:{"text-align":"center"}},[e("input",{attrs:{type:"checkbox",id:"select-all"},on:{click:function(a){return t.ADD_ALL_TO_MULITSELECT()}}})]),t._v(" "),e("th",[t._v("Cover")]),t._v(" "),e("th",[t._v("Name")]),t._v(" "),e("th",[t._v("Year")]),t._v(" "),e("th",[t._v("Cloud")]),t._v(" "),e("th",[t._v("Watch")]),t._v(" "),e("th",[t._v("Created date")]),t._v(" "),e("th",[t._v("Updated date")]),t._v(" "),e("th",[t._v("Control")])]),t._v(" "),e("tbody",t._l(t.data.manga.data,(function(a,n){return e("tr",{key:n},[e("td",{staticStyle:{"text-align":"center"}},[e("input",{attrs:{type:"checkbox",id:a.mangas_id},on:{click:function(e){return t.ADD_TO_MULITSELECT(a.mangas_id,n)}}})]),t._v(" "),"local"==a.mangas_cloud?e("td",[e("img",{attrs:{src:"/storage/posters/300_"+a.mangas_poster,alt:a.mangas_name,width:"40"}})]):t._e(),t._v(" "),"aws"==a.mangas_cloud?e("td",[e("img",{attrs:{src:t.sm_poster+a.mangas_poster,alt:a.mangas_name,width:"40"}})]):t._e(),t._v(" "),e("td",[t._v(t._s(a.mangas_name))]),t._v(" "),e("td",[t._v(t._s(a.mangas_year))]),t._v(" "),"local"==a.mangas_cloud?e("td",[t._v("Local Server")]):t._e(),t._v(" "),"aws"==a.mangas_cloud?e("td",[t._v("AWS S3")]):t._e(),t._v(" "),a.mangas_users_only?e("td",[t._v("Users")]):e("td",[t._v("All")]),t._v(" "),e("td",[t._v(t._s(a.created_at))]),t._v(" "),e("td",[t._v(t._s(a.updated_at))]),t._v(" "),e("td",[e("div",{staticClass:"btn-group",attrs:{role:"group"}},[e("router-link",{staticClass:"btn btn-sm btn-warning btn-sm mr-2",attrs:{to:{name:"manga-edit",params:{id:a.mangas_id}},role:"button"}},[t._v("Edit\n                    ")]),t._v(" "),e("router-link",{staticClass:"btn btn-sm btn-warning btn-sm mr-2",attrs:{to:{name:"chapters-manage",params:{id:a.mangas_id}},role:"button"}},[t._v("Show\n                    ")]),t._v(" "),t.button_loading?t._e():e("button",{staticClass:"btn btn-sm btn-danger btn-sm mr-2",attrs:{id:a.mangas_id},on:{click:function(e){return t.DELETE(a.mangas_id,n)}}},[t._v("\n                      Delete\n                    ")]),t._v(" "),t.button_loading===a.mangas_id?e("button",{staticClass:"btn btn-sm btn-danger btn-sm mr-2",attrs:{disabled:""}},[e("i",{attrs:{id:"btn-progress"}}),t._v(" Loading\n                    ")]):t._e()],1)])])})),0)])]):t._e(),t._v(" "),null===t.data_search.series||0===Object.keys(t.data_search).length?e("nav",{staticClass:"m-4 p-1",attrs:{"aria-label":"pagination"}},[e("ul",{staticClass:"pagination"},[e("li",{staticClass:"page-item",attrs:{id:"end"}},[e("a",{staticClass:"page-link",on:{click:function(a){return t.PAGINATION("/api/admin/get/manga")}}},[t._v("Begin")])]),t._v(" "),e("li",{staticClass:"page-item",class:{disabled:null===t.data.manga.prev_page_url},attrs:{id:"prev"}},[e("a",{staticClass:"page-link",on:{click:function(a){return t.PAGINATION(t.data.manga.prev_page_url)}}},[t._v("Previous")])]),t._v(" "),e("li",{staticClass:"page-item"},[e("a",{staticClass:"page-link"},[t._v(t._s(t.data.manga.current_page)+"/"+t._s(t.data.manga.last_page))])]),t._v(" "),e("li",{staticClass:"page-item",class:{disabled:null===t.data.manga.next_page_url},attrs:{id:"next"}},[e("a",{staticClass:"page-link",on:{click:function(a){return t.PAGINATION(t.data.manga.next_page_url)}}},[t._v("Next")])]),t._v(" "),e("li",{staticClass:"page-item",attrs:{id:"end"}},[e("a",{staticClass:"page-link",on:{click:function(a){return t.PAGINATION("/api/admin/get/manga?page="+t.data.manga.last_page)}}},[t._v("End")])])])]):t._e()])])])])}),[function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("thead",[e("th",[t._v("Cover")]),t._v(" "),e("th",[t._v("Name")]),t._v(" "),e("th",[t._v("Year")]),t._v(" "),e("th",[t._v("Cloud")]),t._v(" "),e("th",[t._v("Watch")]),t._v(" "),e("th",[t._v("Created date")]),t._v(" "),e("th",[t._v("Updated date")]),t._v(" "),e("th",[t._v("Control")])])}],!1,null,null,null).exports}}]);