1 2!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="30d35139-7b13-54d2-87df-bca3533ce45e")}catch(e){}}(); 3import{a as Ge}from"./chunk-FOBXJDKV.js";import{b as Vt,c as Ot,d as Lt,e as zt}from"./chunk-ZWOWUVNB.js";import{b as Rt}from"./chunk-HIHFQIGE.js";import"./chunk-ATVJNOCL.js";import{a as ze}from"./chunk-IUVJ2V4L.js";import{a as ve}from"./chunk-INRATVRR.js";import"./chunk-X44TMCWP.js";import"./chunk-EEUGU5BE.js";import{a as jt}from"./chunk-S4GODLZY.js";import"./chunk-TBICCHSJ.js";import{a as Dt}from"./chunk-ZV4HIMXA.js";import"./chunk-R62SIVBY.js";import"./chunk-25BL5HKZ.js";import{b as he,c as Ce}from"./chunk-4FC5T6ZK.js";import"./chunk-THBDF75G.js";import{C as oe,b as Le,h as Tt}from"./chunk-RJ2UG3RJ.js";import"./chunk-AB3LHRRD.js";import"./chunk-CI2HCF2F.js";import{a as Mt,h as ue}from"./chunk-GXYF7J3H.js";import{D as Oe,c as Ne,e as E,h as Pe,i as De,l as te,n as je,q as Re,t as Ve}from"./chunk-JHTWTYPN.js";import{a as Pt}from"./chunk-B3Z3NAS4.js";import"./chunk-TGFFJGSM.js";import{c as St,d as Et,e as It}from"./chunk-FPZ453VA.js";import"./chunk-EL6WFV23.js";import{b as Bt,c as Nt}from"./chunk-JSRFQSGR.js";import"./chunk-3EP7OHNH.js";import"./chunk-LWW7BOTF.js";import{e as Ft,f as wt,g as kt}from"./chunk-ERBHIP22.js";import"./chunk-LHPA4E6N.js";import{a as Ke}from"./chunk-3Y7FMX6W.js";import{b as Be,ka as At,ma as ie,ra as ne}from"./chunk-BBW6WW7Z.js";import{a as ht,b as Ct}from"./chunk-WLEWPZ6N.js";import{p as vt,s as yt,t as bt}from"./chunk-OFQRR3BE.js";import{r as ee}from"./chunk-NWCZTZ2F.js";import{G as Te,g as xt,i as _t,k as X,l as Z}from"./chunk-3BAKG5RY.js";import{Aa as b,Bc as g,M as Fe,Nb as J,Pc as d,Qc as k,Rb as q,Rc as S,Sb as _,Sc as qe,T as U,Uc as Y,Vc as K,Wc as Q,bd as w,cd as xe,da as we,dd as _e,ec as Se,ed as pt,f as be,gc as Ee,hc as Ie,jc as Me,kc as Ae,lc as s,ld as Ye,mc as i,md as gt,nc as n,ob as ct,oc as f,pa as ke,qd as ft,tb as r,ua as C,vc as F,za as y,zc as v}from"./chunk-5U7LGHIW.js";import"./chunk-ALSDDZFP.js";import{j as l,l as ye}from"./chunk-EKFLB6J2.js";var $e=class{constructor(){l(this,"id");l(this,"sourceId");l(this,"userId");l(this,"user",new Qe);l(this,"name");l(this,"start");l(this,"end");l(this,"status");l(this,"jobs",[]);l(this,"source",new Xe)}};var Qe=class{constructor(){l(this,"id");l(this,"fullName");l(this,"userName");l(this,"type");l(this,"myFollowState")}},Xe=class{constructor(){l(this,"address");l(this,"id");l(this,"name")}};var Gt=(()=>{let a=class a extends Be{constructor(){let u=C(Te),m=C(ee);super(m,u,"impr");l(this,"fileBlob");l(this,"b64Blob")}create(u){let m=new FormData;return m.append("UploadedFile",u,u.name),m.append("Type","1"),this.http.post("".concat(this.apiUrl,"/Create"),m)}getMyRequests(){return this.http.get("".concat(this.apiUrl,"/GetMyRequests/"),{})}getAllRequests(u){let m=this.TermFilterParams(u);return this.http.get("".concat(this.apiUrl,"/GetAll/").concat(m))}getRequestsById(u){return this.http.get("".concat(this.apiUrl,"/GetById/").concat(u))}};l(a,"\u0275fac",function(m){return new(m||a)}),l(a,"\u0275prov",ke({token:a,factory:a.\u0275fac,providedIn:"root"}));let t=a;return t})();var $t=(()=>{let a=class a extends Be{constructor(){let x=C(Te),u=C(ee);super(u,x,"pip")}getMyById(x){return this.http.get("".concat(this.apiUrl,"/GetMYById/").concat(x))}};l(a,"\u0275fac",function(u){return new(u||a)}),l(a,"\u0275prov",ke({token:a,factory:a.\u0275fac,providedIn:"root"}));let t=a;return t})();var Ue=class{constructor(){l(this,"statistics");l(this,"logs");l(this,"id");l(this,"hangfireJobId");l(this,"userId");l(this,"user");l(this,"type");l(this,"state");l(this,"tryCount");l(this,"createdAt")}};var ae=(function(t){return t[t.none=0]="none",t[t.procecing=1]="procecing",t[t.succeed=2]="succeed",t[t.cancled=3]="cancled",t[t.faild=4]="faild",t[t.waiting=5]="waiting",t})(ae||{});var re=class{constructor(){l(this,"filter",new Pt);l(this,"authors")}};var Xt=()=>[1,1,1,1,1,1],Zt=()=>({height:"185px",width:"100px"});function ei(t,a){if(t&1&&(i(0,"div",16)(1,"span",17),d(2,"\u0627\u06AF\u0631 \u06A9\u062A\u0627\u0628"),n(),i(3,"span",17),d(4),n(),i(5,"span",17),d(6," \u0631\u0627 \u0627\u06CC\u0646\u062C\u0627 \u0645\u06CC \u0628\u06CC\u0646\u06CC\u062F \u0627\u0646\u062A\u062E\u0627\u0628\u0634 \u06A9\u0646\u06CC\u062F"),n()()),t&2){let e=g();r(4),S(" ",e.data==null?null:e.data.bookName," ")}}function ti(t,a){t&1&&(i(0,"div",20)(1,"div",21),f(2,"ngx-skeleton-loader",22),n()()),t&2&&(r(2),s("theme",w(1,Zt)))}function ii(t,a){t&1&&(i(0,"section",18),_(1,ti,3,2,"div",19),n()),t&2&&(r(),s("ngForOf",w(1,Xt)))}function ni(t,a){t&1&&(i(0,"span",23),d(1,"\u0647\u06CC\u0686 \u0646\u062A\u06CC\u062C\u0647 \u0627\u06CC \u06CC\u0627\u0641\u062A \u0646\u0634\u062F."),n())}function ui(t,a){if(t&1){let e=F();i(0,"swiper-slide",24)(1,"app-create-book-suggestion",25),v("isCompleted",function(u){y(e);let m=g(2);return b(m.close(u))}),n()()}if(t&2){let e=a.$implicit,x=g(2);r(),s("book",e)("resultId",x.data==null?null:x.data.parsedResultId)("jobId",x.data==null?null:x.data.jobId)}}function oi(t,a){if(t&1&&(i(0,"swiper-container",12),Me(1,ui,2,3,"swiper-slide",24,Ie),n()),t&2){let e=g();r(),Ae(e.bookSuggesstionResult)}}var Jt=(()=>{let a=class a extends oe{constructor(){super();l(this,"data",C(Et));l(this,"searchService",C(ze));l(this,"dialogref",C(St));l(this,"fB",C(Oe));l(this,"searchTerms",new be);l(this,"bookSuggesstionResult",[]);l(this,"suggesstionFilter",new re);l(this,"bookName","");l(this,"loading",!0);l(this,"authorName",[]);l(this,"searchForm");this.searchForm=this.fB.group({bookText:new te({value:this.data.bookName,disabled:!1},E.compose([E.required])),authorText:new te({value:this.data.authorName,disabled:!1},E.compose([E.required]))})}ngOnInit(){return ye(this,null,function*(){yield Le(),this.loading=!0,this.suggesstionFilter.filter.pgNumber=0,this.suggesstionFilter.filter.pgSize=10,this.subscriptions.push(this.searchTerms.pipe(Fe(500),we(()=>{var u,m;return this.loading=!0,this.suggesstionFilter.filter.searchTerm==""&&((m=(u=this.suggesstionFilter)==null?void 0:u.authors)==null?void 0:m.length)==0&&(this.loading=!1,this.bookSuggesstionResult=[]),this.searchService.suggestForCreateBook(this.suggesstionFilter)})).subscribe(u=>{var m,c,o,p;this.loading=!1,u.hasError||this.suggesstionFilter.filter.searchTerm&&this.suggesstionFilter.filter.searchTerm!=""&&((o=(c=(m=this.suggesstionFilter)==null?void 0:m.filter)==null?void 0:c.searchTerm)==null?void 0:o.length)>1&&(this.bookSuggesstionResult=(p=u.result)==null?void 0:p.items)}))})}suggesstion(u){this.loading=!0,u==""?(this.suggesstionFilter.filter.searchTerm=u,u="G",this.searchTerms.next(u)):(this.suggesstionFilter.filter.searchTerm=u,this.searchTerms.next(u))}suggesstionAuthor(u){this.loading=!0,this.authorName=[],u==""?(this.suggesstionFilter.authors=[],u="P",this.searchTerms.next(u)):(this.authorName.push(u),this.suggesstionFilter.authors=this.authorName,this.searchTerms.next(u))}close(u){u?this.dialogref.close(!0):this.dialogref.close(!1)}createBook(){this.dialogref.close("createBook")}};l(a,"\u0275fac",function(m){return new(m||a)}),l(a,"\u0275cmp",J({type:a,selectors:[["app-migrate-founded-suggestion-dialog"]],features:[q],decls:22,vars:7,consts:[[1,"content"],[3,"formGroup"],[1,"flex","items-center","py-2"],[1,"text-sm","text-gray-800","star"],[1,"w-9/12"],["width","343px","type","text","formControlName","bookText","placeholder","\u0645\u062B\u0627\u0644:\u0628\u0627\u063A \u0648\u062D\u0634 \u0627\u0633\u0627\u0637\u06CC\u0631",1,"w-full","bg-gray-100","text-gray-500","rounded-lg",3,"ngModelChange","ngModel"],[1,"flex","items-center"],[1,"w-9/12","mr-3"],["width","100%","type","text","formControlName","authorText","placeholder","\u0645\u062B\u0627\u0644:\u0627\u062D\u0633\u0627\u0646 \u0631\u0636\u0627\u06CC\u06CC",1,"w-full","bg-gray-100","text-gray-500","rounded-lg",3,"ngModelChange","ngModel"],["class","mt-2",4,"ngIf"],["class","flex activity-container py-2 justify-between",4,"ngIf"],["class","text-base font-medium flex justify-center text-gray-500 py-3",4,"ngIf"],["slides-per-view","auto","
3navigation","true","observer","true","observe-parents","true","lazy","true"],[1,"w-full","flex","justify-center","mt-3","px-3"],[3,"click"],["mat-flat-button","","color","primary",1,"btn-sm"],[1,"mt-2"],[1,"text-base","font-medium","text-gray-500"],[1,"flex","activity-container","py-2","justify-between"],["class","skeleton mb-3 activity-loader-container px-2",4,"ngFor","ngForOf"],[1,"skeleton","mb-3","activity-loader-container","px-2"],[1,"w-full"],["count","1",3,"theme"],[1,"text-base","font-medium","flex","justify-center","text-gray-500","py-3"],[1,"flex","flex-wrap","justify-center","min-w-24","max-w-24","md:min-w-[113px]","md:max-w-[113px]","sm:ml-2"],[3,"isCompleted","book","resultId","jobId"]],template:function(m,c){m&1&&(i(0,"section")(1,"div",0)(2,"form",1)(3,"div",2)(4,"label",3),d(5,"\u0639\u0646\u0648\u0627\u0646 \u06A9\u062A\u0627\u0628"),n(),i(6,"div",4)(7,"input",5),Q("ngModelChange",function(p){return K(c.data.bookName,p)||(c.data.bookName=p),p}),v("ngModelChange",function(p){return c.suggesstion(p)}),n()()(),i(8,"div",6)(9,"label",3),d(10,"\u0646\u0648\u06CC\u0633\u0646\u062F\u0647"),n(),i(11,"div",7)(12,"input",8),v("ngModelChange",function(p){return c.suggesstionAuthor(p)}),Q("ngModelChange",function(p){return K(c.data.authorName,p)||(c.data.authorName=p),p}),n()()()(),_(13,ei,7,1,"div",9),i(14,"div"),_(15,ii,2,2,"section",10)(16,ni,2,0,"span",11),Se(17,oi,3,0,"swiper-container",12),n()(),i(18,"div",13)(19,"div",14),v("click",function(){return c.createBook()}),i(20,"button",15),d(21,"\u0647\u06CC\u0686 \u06A9\u062F\u0627\u0645 \u0627\u0632 \u0627\u06CC\u0646\u0647\u0627 \u0646\u06CC\u0633\u062A.\u0627\u0632 \u06AF\u0648\u062F\u0631\u06CC\u062F\u0632 \u0627\u0636\u0627\u0641\u0647 \u06A9\u0646."),n()()()()),m&2&&(r(2),s("formGroup",c.searchForm),r(5),Y("ngModel",c.data.bookName),r(5),Y("ngModel",c.data.authorName),r(),s("ngIf",(c.bookSuggesstionResult==null?null:c.bookSuggesstionResult.length)>0),r(2),s("ngIf",c.loading),r(),s("ngIf",(c.bookSuggesstionResult==null?null:c.bookSuggesstionResult.length)==0&&!c.loading),r(),Ee(c.loading?-1:17))},dependencies:[ue,je,Ne,Pe,De,X,Z,Re,Ve,ne,ie,Ge],styles:[".content[_ngcontent-%COMP%]{height:408px!important}"]}));let t=a;return t})();var ai=()=>[1,1,1,1,1,1],ri=()=>({height:"168px",width:"100px"});function li(t,a){if(t&1&&(i(0,"div",15)(1,"span",16),d(2,"\u0627\u06AF\u0631 \u06A9\u062A\u0627\u0628"),n(),i(3,"span",16),d(4),n(),i(5,"span",16),d(6," \u0631\u0627 \u0627\u06CC\u0646\u062C\u0627 \u0645\u06CC \u0628\u06CC\u0646\u06CC\u062F \u0627\u0646\u062A\u062E\u0627\u0628\u0634 \u06A9\u0646\u06CC\u062F"),n()()),t&2){let e=g();r(4),S(" ",e.data==null?null:e.data.bookName," ")}}function si(t,a){t&1&&(i(0,"div",19)(1,"div",20),f(2,"ngx-skeleton-loader",21),n()()),t&2&&(r(2),s("theme",w(1,ri)))}function di(t,a){t&1&&(i(0,"section",17),_(1,si,3,2,"div",18),n()),t&2&&(r(),s("ngForOf",w(1,ai)))}function mi(t,a){t&1&&(i(0,"span",22),d(1,"\u0647\u06CC\u0686 \u0646\u062A\u06CC\u062C\u0647 \u0627\u06CC \u06CC\u0627\u0641\u062A \u0646\u0634\u062F."),n())}function ci(t,a){if(t&1){let e=F();i(0,"swiper-slide",23)(1,"app-create-book-suggestion",24),v("isCompleted",function(u){y(e);let m=g(2);return b(m.close(u))}),n()()}if(t&2){let e=a.$implicit,x=g(2);r(),s("book",e)("resultId",x.data==null?null:x.data.parsedResultId)("jobId",x.data==null?null:x.data.jobId)}}function pi(t,a){if(t&1&&(i(0,"swiper-container",11),Me(1,ci,2,3,"swiper-slide",23,Ie),n()),t&2){let e=g();r(),Ae(e.bookSuggesstionResult)}}var qt=(()=>{let a=class a extends oe{constructor(){super();l(this,"data",C(Ft));l(this,"searchService",C(ze));l(this,"bottomShettRef",C(wt));l(this,"fB",C(Oe));l(this,"searchTerms",new be);l(this,"bookSuggesstionResult",[]);l(this,"suggesstionFilter",new re);l(this,"bookName","");l(this,"loading",!0);l(this,"authorName",[]);l(this,"searchForm");this.searchForm=this.fB.group({bookText:new te({value:this.data.bookName,disabled:!1},E.compose([E.required])),authorText:new te({value:this.data.authorName,disabled:!1},E.compose([E.required]))})}ngOnInit(){return ye(this,null,function*(){yield Le(),this.loading=!0,this.suggesstionFilter.filter.pgNumber=0,this.suggesstionFilter.filter.pgSize=10;this.subscriptions.push(this.searchTerms.pipe(Fe(500),we(()=>{var u;return this.loading=!0,this.suggesstionFilter.filter.searchTerm==""&&((u=this.suggesstionFilter.authors)==null?void 0:u.length)==0&&(this.loading=!1,this.bookSuggesstionResult=[]),this.searchService.suggestForCreateBook(this.suggesstionFilter)})).subscribe(u=>{var m,c;this.loading=!1,u.hasError||this.suggesstionFilter.filter.searchTerm&&this.suggesstionFilter.filter.searchTerm!=""&&((m=this.suggesstionFilter.filter.searchTerm)==null?void 0:m.length)>1&&(this.bookSuggesstionResult=(c=u.result)==null?void 0:c.items)}))})}suggesstion(u){this.loading=!0,u==""?(this.suggesstionFilter.filter.searchTerm=u,u="G",this.searchTerms.next(u)):(this.suggesstionFilter.filter.searchTerm=u,this.searchTerms.next(u))}suggesstionAuthor(u){this.loading=!0,this.authorName=[],u==""?(this.suggesstionFilter.authors=[],u="P",this.searchTerms.next(u)):(this.authorName.push(u),this.suggesstionFilter.authors=this.authorName,this.searchTerms.next(u))}close(u){u?this.bottomShettRef.dismiss(!0):this.bottomShettRef.dismiss(!1)}createBook(){this.bottomShettRef.dismiss("createBook")}};l(a,"\u0275fac",function(m){return new(m||a)}),l(a,"\u0275cmp",J({type:a,selectors:[["app-migrate-founded-suggestion-bottom-sheet"]],features:[q],decls:21,vars:7,consts:[[3,"formGroup"],[1,"flex","items-center","py-2"],[1,"text-sm","text-gray-800","star"],[1,"w-9/12"],["width","343px","type","text","formControlName","bookText","placeholder","\u0645\u062B\u0627\u0644:\u0628\u0627\u063A \u0648\u062D\u0634 \u0627\u0633\u0627\u0637\u06CC\u0631",1,"rounded-md",3,"ngModelChange","ngModel"],[1,"flex","items-center"],[1,"w-9/12","mr-3"],["width","100%","type","text","formControlName","authorText","placeholder","\u0645\u062B\u0627\u0644:\u0627\u062D\u0633\u0627\u0646 \u0631\u0636\u0627\u06CC\u06CC",1,"rounded-md",3,"ngModelChange","ngModel"],["class","mt-2",4,"ngIf"],["class","flex activity-container py-2 justify-between",4,"ngIf"],["class","text-base font-medium flex justify-center text-gray-500 py-3",4,"ngIf"],["slides-per-view","auto","
3navigation","true","observer","true","observe-parents","true","lazy","true"],[1,"flex","justify-center","my-2"],[3,"click"],["mat-flat-button","","color","primary",1,"btn-sm"],[1,"mt-2"],[1,"text-base","font-medium","text-gray-500"],[1,"flex","activity-container","py-2","justify-between"],["class","skeleton mb-3 activity-loader-container px-2",4,"ngFor","ngForOf"],[1,"skeleton","mb-3","activity-loader-container","px-2"],[1,"w-full"],["count","1",3,"theme"],[1,"text-base","font-medium","flex","justify-center","text-gray-500","py-3"],[1,"flex","flex-wrap","justify-center","min-w-24","max-w-24","md:min-w-[113px]","md:max-w-[113px]","sm:ml-2"],[3,"isCompleted","book","resultId","jobId"]],template:function(m,c){m&1&&(i(0,"section")(1,"form",0)(2,"div",1)(3,"label",2),d(4,"\u0639\u0646\u0648\u0627\u0646 \u06A9\u062A\u0627\u0628"),n(),i(5,"div",3)(6,"input",4),Q("ngModelChange",function(p){return K(c.data.bookName,p)||(c.data.bookName=p),p}),v("ngModelChange",function(p){return c.suggesstion(p)}),n()()(),i(7,"div",5)(8,"label",2),d(9,"\u0646\u0648\u06CC\u0633\u0646\u062F\u0647"),n(),i(10,"div",6)(11,"input",7),v("ngModelChange",function(p){return c.suggesstionAuthor(p)}),Q("ngModelChange",function(p){return K(c.data.authorName,p)||(c.data.authorName=p),p}),n()()()(),_(12,li,7,1,"div",8),i(13,"div"),_(14,di,2,2,"section",9)(15,mi,2,0,"span",10),Se(16,pi,3,0,"swiper-container",11),n(),i(17,"div",12)(18,"div",13),v("click",function(){return c.createBook()}),i(19,"button",14),d(20,"\u0647\u06CC\u0686 \u06A9\u062F\u0627\u0645 \u0627\u0632 \u0627\u06CC\u0646\u0647\u0627 \u0646\u06CC\u0633\u062A.\u0627\u0632 \u06AF\u0648\u062F\u0631\u06CC\u062F\u0632 \u0627\u0636\u0627\u0641\u0647 \u06A9\u0646."),n()()()()),m&2&&(r(),s("formGroup",c.searchForm),r(5),Y("ngModel",c.data.bookName),r(5),Y("ngModel",c.data.authorName),r(),s("ngIf",(c.bookSuggesstionResult==null?null:c.bookSuggesstionResult.length)>0),r(2),s("ngIf",c.loading),r(),s("ngIf",(c.bookSuggesstionResult==null?null:c.bookSuggesstionResult.length)==0&&!c.loading),r(),Ee(c.loading?-1:16))},dependencies:[ue,je,Ne,Pe,De,X,Z,Re,Ve,ne,ie,Ge],styles:[".mat-bottom-sheet-container{padding:8px 16px;border-radius:24px 24px 0 0!important}"]}));let t=a;return t})();var gi=t=>({"m-auto rounded-xl":t}),fi=()=>[1,1,1,1],xi=()=>({height:"60px",width:"504px"}),_i=t=>({"bg-green-500":t}),hi=t=>[t],Ci=t=>({"transform-to-check-data absolute top-[40%] right-[10%] w-40 transform translate-y-1/2 -translate-x-1/2":t}),vi=()=>[1],yi=()=>({height:"140px",width:"578px"}),bi=()=>({height:"288px",width:"578px"}),Fi=()=>({height:"48px",width:"290px"}),Je=(t,a)=>[t,a],wi=(t,a,e)=>[t,a,e,".jpg",null,null,"sm"],ki=()=>[1,1,1,1,1,1,1,1],Si=()=>({height:"65px",width:"48px"}),Yt=()=>({height:"20px",width:"504px"});function Ei(t,a){if(t&1){let e=F();i(0,"div",30)(1,"div",31),f(2,"img",32),n(),i(3,"div",33)(4,"p",34),d(5," goodreads_export.csv "),n(),i(6,"p",35),d(7),Ye(8,"jalali"),n()(),i(9,"div",31)(10,"button",36),v("click",function(){let u=y(e).$implicit,m=g(4);return b(m.proccessFile(u==null?null:u.id,!1))}),d(11," \u062C\u0632\u0626\u06CC\u0627\u062A "),n()()()}if(t&2){let e=a.$implicit,x=g(4);r(7),S(" ",gt(8,4,e.createdAt)," "),r(3),s("id",e.id)("appButtonLoader",x.loadingButton)("disabled",x.loadingButton)}}function Ii(t,a){if(t&1&&(i(0,"div",26)(1,"span",27),d(2,"\u062A\u0627\u0631\u06CC\u062E\u0686\u06C0 \u0641\u0639\u0627\u0644\u06CC\u062A"),n(),i(3,"div",28),_(4,Ei,12,6,"div",29),n()()),t&2){let e=g(3);r(4),s("ngForOf",e.historyMigrate)}}function Mi(t,a){if(t&1&&(i(0,"div",14)(1,"div",15)(2,"p",16),d(3," \u
30622\u0645\u0648\u0632\u0634 \u0627\u0646\u062A\u0642\u0627\u0644 \u0633\u0627\u0628\u0642\u0647 \u0627\u0632 "),n()(),i(4,"div",17),f(5,"img",18),n(),i(6,"div",19)(7,"div",20),f(8,"img",21),n(),i(9,"div",20),f(10,"img",22),n(),i(11,"div",20),f(12,"img",23),n(),i(13,"span",24),d(14,"\u062F\u0631 \u0627\u06CC\u0646 \u0642\u0633\u0645\u062A \u0645\u06CC\u200C\u062A\u0648\u0627\u0646\u06CC\u062F \u06A9\u062A\u0627\u0628\u200C\u0647\u0627\u060C \u0642\u0641\u0633\u0647\u200C\u0647\u0627\u060C \u0627\u0645\u062A\u06CC\u0627\u0632\u0647\u0627 \u0648 \u06CC\u0627\u062F\u062F\u0627\u0634\u062A\u200C\u0647\u0627\u06CC\u062A\u0627\u0646 \u0631\u0627 \u0627\u0632 \u06AF\u0648\u062F\u0631\u06CC\u062F\u0632 \u0628\u0647 \u0628\u0647\u062E\u0648\u0627\u0646 \u0645\u0646\u062A\u0642\u0644 \u06A9\u0646\u06CC\u062F. \u0628\u0631\u0627\u06CC \u062F\u06CC\u062F\u0646 \u0622\u0645\u0648\u0632\u0634 \u0645\u0631\u0627\u062D\u0644 \u0627\u0646\u062A\u0642\u0627\u0644 \u0648\u0631\u0642 \u0628\u0632\u0646\u06CC\u062F. "),n(),_(15,Ii,5,1,"div",25),n()()),t&2){let e=g(2);r(15),s("ngIf",(e.historyMigrate==null?null:e.historyMigrate.length)>0)}}function Ai(t,a){if(t&1&&(i(0,"div",37)(1,"p",38),d(2),n()()),t&2){let e=g(2);r(2),S(" ",e.activePoint," ")}}function Ti(t,a){t&1&&(i(0,"div",14)(1,"div",15)(2,"p",16),d(3," \u
30648\u0631\u0648\u062F \u0628\u0647 \u062D\u0633\u0627\u0628 \u06A9\u0627\u0631\u0628\u0631\u06CC Goodreads "),n()(),i(4,"div",39)(5,"p",40),d(6," \u0628\u0627 \u0627\u0633\u062A\u0641\u0627\u062F\u0647 \u0627\u0632 \u0644\u06CC\u0646\u06A9 \u0632\u06CC\u0631 \u0648\u0627\u0631\u062F \u062D\u0633\u0627\u0628 \u06A9\u0627\u0631\u0628\u0631\u06CC \u062E\u0648\u062F \u0634\u0648\u06CC\u062F. "),n(),i(7,"a",41),d(8," www.goodreads.com "),n()(),i(9,"div",39)(10,"p",42),d(11," \u0628\u0631\u0627\u06CC \u0627\u06CC\u0646 \u06A9\u0627\u0631 \u0644\u0627\u0632\u0645 \u0627\u0633\u062A \u0627\u0632 \u0637\u0631\u06CC\u0642 \u062F\u0633\u06A9\u062A\u0627\u067E \u0627\u0642\u062F\u0627\u0645 \u06A9\u0646\u06CC\u062F. "),f(12,"br"),d(13," \u0627\u06AF\u0631 \u0627\u0632 \u0645\u0648\u0628\u0627\u06CC\u0644 \u0627\u0633\u062A\u0641\u0627\u062F\u0647 \u0645\u06CC\u06A9\u0646\u06CC\u062F \u062D\u062A\u0645\u0627 \u0627\u0632 Desktop Mode \u0627\u0633\u062A\u0641\u0627\u062F\u0647 \u06A9\u0646\u06CC\u062F. "),n()(),i(14,"div",2),f(15,"img",43),n()())}function Bi(t,a){t&1&&(i(0,"div",14)(1,"div",15)(2,"p",16),d(3,"\u06A9\u062A\u0627\u0628\u062E\u0627\u0646\u06C0 \u0634\u0645\u0627"),n()(),i(4,"div",44)(5,"p",45),d(6," \u06AF\u0632\u06CC\u0646\u0647\u200C\u06CC "),i(7,"span",46),d(8," My Books "),n(),d(9," \u062F\u0631 \u0628\u0627\u0644\u0627\u06CC \u0635\u0641\u062D\u0647 \u0631\u0627 \u0627\u0646\u062A\u062E\u0627\u0628 \u06A9\u0646\u06CC\u062F. "),n()(),i(10,"div",47),f(11,"img",48),n(),i(12,"div",49)(13,"p",45),d(14," \u0633\u067E\u0633 \u0631\u0648\u06CC \u06AF\u0632\u06CC\u0646\u0647\u200C\u06CC "),i(15,"span",46),d(16," Import and Export "),n(),d(17," \u06A9\u0644\u06CC\u06A9 \u06A9\u0646\u06CC\u062F. "),n(),i(18,"a",50),d(19," \u0644\u06CC\u0646\u06A9 \u0645\u0633\u062A\u0642\u06CC\u0645 "),n()(),i(20,"div",51),f(21,"img",52),n()())}function Ni(t,a){t&1&&(i(0,"div",14)(1,"div",15)(2,"p",16),d(3,"\u062F\u0631\u06CC\u0627\u0641\u062A \u0641\u0627\u06CC\u0644\u200C\u0647\u0627"),n()(),i(4,"div",17)(5,"p",53),d(6," \u062F\u06A9\u0645\u0647\u200C\u06CC "),i(7,"span",54),d(8," Export Library "),n(),d(9," \u0631\u0627 \u0627\u0646\u062A\u062E\u0627\u0628 \u06A9\u0646\u06CC\u062F \u062A\u0627 \u0627\u0637\u0644\u0627\u0639\u0627\u062A \u06A9\u062A\u0627\u0628\u062E\u0627\u0646\u06C0 \u0634\u0645\u0627 \u0628\u0631\u0627\u06CC \u062F\u0631\u06CC\u0627\u0641\u062A \u0622\u0645\u0627\u062F\u0647 \u0634\u0648\u062F. "),n()(),i(10,"div",55),f(11,"img",56),n(),i(12,"div",17)(13,"p",57),d(14," \u0633\u067E\u0633 \u0644\u06CC\u0646\u06A9 \u0622\u0645\u0627\u062F\u0647 \u0634\u062F\u0647 \u0631\u0627 \u0627\u0646\u062A\u062E\u0627\u0628 \u06A9\u0646\u06CC\u062F \u062A\u0627 \u0641\u0627\u06CC\u0644 \u062F\u0631\u06CC\u0627\u0641\u062A \u0634\u0648\u062F. "),n()(),i(15,"div",55),f(16,"img",58),n()())}function Pi(t,a){t&1&&(i(0,"p",66),d(1," \u0641\u0631\u0645\u062A \u0641\u0627\u06CC\u0644 \u0627\u0646\u062A\u062E\u0627\u0628\u06CC \u0634\u0645\u0627 \u0628\u0627\u06CC\u062F .csv \u0628\u0627\u0634\u062F. "),n())}function Di(t,a){t&1&&(i(0,"div",67),f(1,"img",68),n())}function ji(t,a){if(t&1){let e=F();
3i(0,"div",14)(1,"div",15)(2,"p",16),d(3," \u0628\u0627\u0631\u06AF\u0630\u0627\u0631\u06CC \u062F\u0631 \u0628\u0647\u062E\u0648\u0627\u0646 "),n()(),i(4,"div",17)(5,"p",57),d(6," \u0628\u0627 \u0627\u0633\u062A\u0641\u0627\u062F\u0647 \u0627\u0632 \u062F\u06A9\u0645\u06C0 \u0632\u06CC\u0631\u060C \u067E\u0631\u0648\u0646\u062F\u06C0 \u062F\u0631\u06CC\u0627\u0641\u062A \u0634\u062F\u0647 \u0631\u0627 \u0627\u0646\u062A\u062E\u0627\u0628 \u06A9\u0646\u06CC\u062F \u062A\u0627 \u0628\u0644\u0627\u0641\u0627\u0635\u0644\u0647 \u0627\u0637\u0644\u0627\u0639\u0627\u062A \u062D\u0633\u0627\u0628 \u06A9\u0627\u0631\u0628\u0631\u06CC goodreads \u0634\u0645\u0627 \u0628\u0647 \u0628\u0647\u062E\u0648\u0627\u0646 \u0645\u0646\u062A\u0642\u0644 \u0634\u0648\u062F. "),n()(),i(7,"div",17)(8,"div",59),f(9,"img",60),i(10,"div",61)(11,"button",62),v("click",function(){y(e);let u=g(2);return b(u.uploadcsvFile())}),d(12," \u0628\u0627\u0631\u06AF\u0630\u0627\u0631\u06CC \u067E\u0631\u0648\u0646\u062F\u0647 "),n(),f(13,"input",63),n(),_(14,Pi,2,0,"p",64)(15,Di,2,0,"div",65),n()()()}if(t&2){let e=g(2);r(14),s("ngIf",e.invalidFileType),r(),s("ngIf",!e.invalidFileType&&e.loadingFile)}}function Ri(t,a){t&1&&(i(0,"div",71),f(1,"ngx-skeleton-loader",72),n()),t&2&&(r(),s("theme",w(1,xi)))}function Vi(t,a){t&1&&(i(0,"div",69),_(1,Ri,2,2,"div",70),n()),t&2&&(r(),s("ngForOf",w(1,fi)))}function Oi(t,a){if(t&1&&f(0,"span",81),t&2){let e=a.index,x=g(3);s("ngClass",xe(1,_i,x.activePoint==e))}}function Li(t,a){if(t&1){let e=F();i(0,"div",82)(1,"button",83),v("click",function(){y(e);let u=g(3);return b(u.previusStep())}),f(2,"span",84),d(3," \u0628\u0627\u0632\u06AF\u0634\u062A "),n()()}}function zi(t,a){if(t&1){let e=F();i(0,"div",37)(1,"button",86),v("click",function(){y(e);let u=g(4);return b(u.activePoint=4)}),d(2," \u0631\u062F \u06A9\u0631\u062F\u0646 \u0622\u0645\u0648\u0632\u0634 "),f(3,"span",87),n()()}}function Gi(t,a){if(t&1&&(i(0,"div",85),_(1,zi,4,0,"div",11),n()),t&2){let e=g(3);r(),s("ngIf",e.activePoint<4)}}function $i(t,a){if(t&1){let e=F();i(0,"button",86),v("click",function(){y(e);let u=g(4);return b(u.nextStep())}),d(1," \u0628\u0639\u062F\u06CC "),f(2,"span",90),n()}}function Wi(t,a){if(t&1&&(i(0,"div",88),_(1,$i,3,0,"button",89),n()),t&2){let e=g(3);r(),s("ngIf",e.activePoint<4)}}function Ui(t,a){if(t&1&&(i(0,"div",91)(1,"a",92),f(2,"span",84),d(3," \u0628\u0627\u0632\u06AF\u0634\u062A \u0628\u0647 \u0635\u0641\u062D\u06C0 \u0627\u0635\u0644\u06CC "),n(),i(4,"p",93),d(5," \u062F\u0631 \u0635\u0648\u0631\u062A \u0628\u0627\u0632\u06AF\u0634\u062A\u060C \u0641\u0631\u0622\u06CC\u0646\u062F \u0627\u0646\u062A\u0642\u0627\u0644 \u0628\u0647 \u0635\u0648\u0631\u062A \u067E\u0633 \u0632\u0645\u06CC\u0646\u0647 \u0627\u0646\u062C\u0627\u0645 \u062E\u0648\u0627\u0647\u062F \u0634\u062F. "),n()()),t&2){let e=g(3);r(),s("routerLink",xe(1,hi,e.routes.feed))}}function Hi(t,a){if(t&1&&(i(0,"div",73)(1,"div",74),_(2,Oi,1,3,"span",75),n(),i(3,"div",76),_(4,Li,4,0,"div",77)(5,Gi,2,1,"div",78)(6,Wi,2,1,"div",79)(7,Ui,6,3,"div",80),n()()),t&2){let e=g(2);r(2),s("ngForOf",e.pointes),r(2),s("ngIf",e.activePoint<5),r(),s("ngIf",e.activePoint<5),r(),s("ngIf",e.activePoint<6),r(),s("ngIf",e.activePoint>5&&!e.jobState.finished)}}function Ji(t,a){if(t&1&&(i(0,"div",8)(1,"div",9),_(2,Mi,16,1,"div",10)(3,Ai,3,1,"div",11)(4,Ti,16,0,"div",10)(5,Bi,22,0,"div",10)(6,Ni,17,0,"div",10)(7,ji,16,2,"div",10)(8,Vi,2,2,"div",12),n(),_(9,Hi,8,5,"div",13),n()),t&2){let e=g();r(2),s("ngIf",e.activePoint==0),r(),s("ngIf",e.activePoint&&e.activePoint<5),r(),s("ngIf",e.activePoint==1),r(),s("ngIf",e.activePoint==2),r(),s("ngIf",e.activePoint==3),r(),s("ngIf",e.activePoint==4),r(),s("ngIf",e.loadingHistory),r(),s("ngIf",e.activePoint<5)}}function qi(t,a){t&1&&f(0,"div",110)}function Yi(t,a){t&1&&f(0,"div",111)}function Ki(t,a){t&1&&f(0,"div",112)}function Qi(t,a){t&1&&f(0,"div",113)}function Xi(t,a){t&1&&f(0,"div",114)}function Zi(t,a){t&1&&f(0,"div",115)}function en(t,a){t&1&&f(0,"img",116)}function tn(t,a){t&1&&(i(0,"p",16),d(1," \u0644\u0637\u0641\u0627\u064B \u06A9\u0645\u06CC \u0635\u0628\u0631 \u06A9\u0646\u06CC\u062F "),n())}function nn(t,a){t&1&&(i(0,"p",16),d(1," \u062F\u0631 \u062D\u0627\u0644 \u067E\u0631\u062F\u0627\u0632\u0634 \u067E\u0631\u0648\u0646\u062F\u0647 "),n())}function un(t,a){t&1&&(i(0,"p",16),d(1," \u062F\u0631 \u062D\u0627\u0644 \u0628\u0631\u0631\u0633\u06CC \u062A\u06A9\u0631\u0627\u0631\u06CC \u0628\u0648\u062F\u0646 \u0627\u0637\u0644\u0627\u0639\u0627\u062A "),n())}function on(t,a){t&1&&(i(0,"p",16),d(1," \u062F\u0631 \u062D\u0627\u0644 \u0627\u0646\u062A\u0642\u0627\u0644 \u0627\u0637\u0644\u0627\u0639\u0627\u062A "),n())}function an(t,a){t&1&&(i(0,"div",117),f(1,"div",118)(2,"div",118)(3,"div",118)(4,"div",118),n())}function rn(t,a){t&1&&(i(0,"div",71)(1,"p",119),d(2," (\u0627\u06CC\u0646 \u0641\u0631\u0622\u06CC\u0646\u062F \u0645\u0645\u06A9\u0646 \u0627\u0633\u062A \u062F\u0642\u0627\u06CC\u0642\u06CC \u0637\u0648\u0644 \u0628\u06A9\u0634\u062F.) "),n()())}function ln(t,a){if(t&1&&(i(0,"div",122)(1,"div",123)(2,"span",42),d(3),n()(),i(4,"div",124)(5,"span",125),d(6),n()()()),t&2){let e=a.$implicit;r(3),k(e.itemCount),r(3),k(e.itemName)}}function sn(t,a){if(t&1&&(i(0,"div",120),_(1,ln,7,2,"div",121),n()),t&2){let e=g(2);
3r(),s("ngForOf",e.foundedDate)}}function dn(t,a){if(t&1&&(i(0,"div",122)(1,"div",123)(2,"span",42),d(3),n()(),i(4,"div",124)(5,"span",125),d(6),n()()()),t&2){let e=a.$implicit;r(3),qe(" ",e.itemCount," / ",e.itemFoundCount," "),r(3),k(e.itemName)}}function mn(t,a){if(t&1&&(i(0,"div",120),_(1,dn,7,3,"div",121),n()),t&2){let e=g(2);r(),s("ngForOf",e.importedItems)}}function cn(t,a){if(t&1&&(i(0,"div",94)(1,"div",95),_(2,qi,1,0,"div",96)(3,Yi,1,0,"div",97)(4,Ki,1,0,"div",98)(5,Qi,1,0,"div",99)(6,Xi,1,0,"div",100)(7,Zi,1,0,"div",101),f(8,"img",102),_(9,en,1,0,"img",103),n(),i(10,"div",104)(11,"div",71),_(12,tn,2,0,"p",105)(13,nn,2,0,"p",105)(14,un,2,0,"p",105)(15,on,2,0,"p",105),n(),i(16,"div",106),_(17,an,5,0,"div",107),n(),_(18,rn,3,0,"div",108),n(),_(19,sn,2,1,"div",109)(20,mn,2,1,"div",109),n()),t&2){let e=g();r(2),s("ngIf",e.foundedDataBool),r(),s("ngIf",e.foundedDataBool),r(),s("ngIf",e.foundedDataBool),r(),s("ngIf",e.foundedDataBool),r(),s("ngIf",e.foundedDataBool),r(),s("ngIf",e.foundedDataBool),r(),s("ngClass",xe(16,Ci,e.foundedDataBool)),r(),s("ngIf",e.foundedDataBool),r(3),s("ngIf",!e.checkDuplicatedData&&(e.jobDetail==null||e.jobDetail.statistics==null?null:e.jobDetail.statistics.state)!=="Check Book Existence"),r(),s("ngIf",(e.jobDetail==null||e.jobDetail.statistics==null?null:e.jobDetail.statistics.state)==="Check Book Existence"),r(),s("ngIf",!e.foundedDataBool&&e.checkDuplicatedData),r(),s("ngIf",e.foundedDataBool),r(2),s("ngIf",(e.jobDetail==null||e.jobDetail.statistics==null?null:e.jobDetail.statistics.state)==="Check Book Existence"),r(),s("ngIf",e.foundedDataBool||!e.checkDuplicatedData),r(),s("ngIf",((e.jobDetail==null||e.jobDetail.statistics==null?null:e.jobDetail.statistics.state)==="Check Book Existence"||(e.jobDetail==null||e.jobDetail.statistics==null?null:e.jobDetail.statistics.state)==="Check Library Existence"||(e.jobDetail==null||e.jobDetail.statistics==null?null:e.jobDetail.statistics.state)==="Check Rate and Review Existence"||(e.jobDetail==null||e.jobDetail.statistics==null?null:e.jobDetail.statistics.state)==="Check Shelve Existence")&&!e.foundedDataBool),r(),s("ngIf",(e.jobDetail==null||e.jobDetail.statistics==null?null:e.jobDetail.statistics.state)==="Impodt Data"&&e.foundedDataBool)}}function pn(t,a){t&1&&(i(0,"div",150),f(1,"span",151),n())}function gn(t,a){t&1&&(i(0,"div",150),f(1,"span",152),n())}function fn(t,a){t&1&&(i(0,"div",150),f(1,"span",153),n())}function xn(t,a){if(t&1&&(i(0,"div",146),_(1,pn,2,0,"div",147)(2,gn,2,0,"div",147)(3,fn,2,0,"div",147),i(4,"div",148)(5,"span",149),d(6),n()(),i(7,"div",148)(8,"span",149),d(9),n()()()),t&2){let e=a.$implicit;r(),s("ngIf",e.id==0),r(),s("ngIf",e.id==1),r(),s("ngIf",e.id==2),r(3),k(e==null?null:e.itemName),r(3),k(e==null?null:e.itemCount)}}function _n(t,a){if(t&1){let e=F();i(0,"div",126)(1,"div",127),f(2,"img",128),n(),i(3,"div",129)(4,"p",130),d(5," \u0627\u0646\u062A\u0642\u0627\u0644 \u0628\u0647 \u0628\u0647\u062E\u0648\u0627\u0646 \u0628\u0627 \u0645\u0648\u0641\u0642\u06CC\u062A \u0627\u0646\u062C\u0627\u0645 \u0634\u062F. "),n()(),i(6,"div",131)(7,"p",132),d(8," \u0645\u0634\u062E\u0635\u0627\u062A \u067E\u0631\u0648\u0646\u062F\u0647 "),n(),_(9,xn,10,5,"div",133),n(),i(10,"div",134)(11,"p",132),d(12," \u0648\u0636\u0639\u06CC\u062A \u0627\u0637\u0644\u0627\u0639\u0627\u062A \u0634\u0645\u0627 "),n(),i(13,"div",135),f(14,"span",136),n(),i(15,"div",137)(16,"span",54),d(17),n(),i(18,"span",138),d(19,"\u06A9\u062A\u0627\u0628"),n(),i(20,"span",139),d(21,"\u062F\u0631 \u0628\u0647\u062E\u0648\u0627\u0646 \u0645\u0648\u062C\u0648\u062F \u0627\u0633\u062A."),n()(),i(22,"div",137)(23,"span",140),d(24),n(),i(25,"span",141),d(26,"\u06CC\u0627\u062F\u062F\u0627\u0634\u062A"),n(),i(27,"span",142),d(28," \u0648 "),n(),i(29,"span",140),d(30),n(),i(31,"span",141),d(32,"\u0627\u0645\u062A\u06CC\u0627\u0632"),n(),i(33,"span",125),d(34,"\u0645\u0646\u062A\u0642\u0644 \u0645\u06CC \u0634\u0648\u062F."),n()(),i(35,"div",135),f(36,"span",143),n(),i(37,"div",137)(38,"span",54),d(39),n(),i(40,"span",138),d(41,"\u06A9\u062A\u0627\u0628"),n(),i(42,"span",139),d(43,"\u062F\u0631 \u0628\u0647\u062E\u0648\u0627\u0646 \u0645\u0648\u062C\u0648\u062F \u0646\u06CC\u0633\u062A."),n()(),i(44,"div",15)(45,"span",140),d(4
36),n(),i(47,"span",141),d(48,"\u06CC\u0627\u062F\u062F\u0627\u0634\u062A"),n(),i(49,"span",142),d(50," \u0648 "),n(),i(51,"span",140),d(52),n(),i(53,"span",141),d(54,"\u0627\u0645\u062A\u06CC\u0627\u0632"),n(),i(55,"span",125),d(56,"\u062F\u0631 \u0627\u0646\u062A\u0638\u0627\u0631 \u06A9\u062A\u0627\u0628 \u0628\u0627\u0642\u06CC \u0645\u06CC \u0645\u0627\u0646\u062F."),n()()(),i(57,"button",144),v("click",function(){y(e);let u=g();return u.openDetailBook(),b(u.foundedBook(u.jobDetail==null?null:u.jobDetail.id))}),d(58," \u062C\u0632\u0626\u06CC\u0627\u062A "),n(),i(59,"p",145),d(60," \u0634\u0645\u0627 \u0645\u06CC\u200C\u062A\u0648\u0627\u0646\u06CC\u062F \u0628\u0627 \u0627\u0633\u062A\u0641\u0627\u062F\u0647 \u0627\u0632 \u062C\u0632\u0626\u06CC\u0627\u062A\u060C\u06A9\u062A\u0627\u0628\u200C\u0647\u0627\u06CC \u0646\u0627\u0645\u0648\u062C\u0648\u062F \u0631\u0627 \u0628\u0647 \u0628\u0647\u062E\u0648\u0627\u0646 \u0627\u0636\u0627\u0641\u0647 \u06A9\u0646\u06CC\u062F. "),n()()}if(t&2){let e=g();r(9),s("ngForOf",e.foundedItems),r(8),k(e.jobDetail==null||e.jobDetail.statistics==null||e.jobDetail.statistics.excelValidData==null?null:e.jobDetail.statistics.excelValidData.customerBookCount),r(7),k(e.jobDetail==null||e.jobDetail.statistics==null||e.jobDetail.statistics.excelValidData==null?null:e.jobDetail.statistics.excelValidData.reviewCount),r(6),k(e.jobDetail==null||e.jobDetail.statistics==null||e.jobDetail.statistics.excelValidData==null?null:e.jobDetail.statistics.excelValidData.rateCount),r(9),k((e.jobDetail==null||e.jobDetail.statistics==null?null:e.jobDetail.statistics.excelTotalRowCount)-(e.jobDetail==null||e.jobDetail.statistics==null||e.jobDetail.statistics.excelValidData==null?null:e.jobDetail.statistics.excelValidData.customerBookCount)),r(7),k((e.jobDetail==null||e.jobDetail.statistics==null?null:e.jobDetail.statistics.excelReviewCount)-(e.jobDetail==null||e.jobDetail.statistics==null||e.jobDetail.statistics.excelValidData==null?null:e.jobDetail.statistics.excelValidData.reviewCount)),r(6),k((e.jobDetail==null||e.jobDetail.statistics==null?null:e.jobDetail.statistics.excelRateCount)-(e.jobDetail==null||e.jobDetail.statistics==null||e.jobDetail.statistics.excelValidData==null?null:e.jobDetail.statistics.excelValidData.rateCount))}}function hn(t,a){t&1&&(i(0,"div",71)(1,"div",155),f(2,"ngx-skeleton-loader",156),n(),i(3,"div",157),f(4,"ngx-skeleton-loader",156),n(),i(5,"div",155),f(6,"ngx-skeleton-loader",156),n()()),t&2&&(r(2),s("theme",w(3,yi)),r(2),s("theme",w(4,bi)),r(2),s("theme",w(5,Fi)))}function Cn(t,a){t&1&&(i(0,"section",154),_(1,hn,7,6,"div",70),n()),t&2&&(r(),s("ngForOf",w(1,vi)))}function vn(t,a){if(t&1){let e=F();i(0,"button",169),v("click",function(){y(e);let u=g(2);return b(u.foundedBook(u.jobDetail==null?null:u.jobDetail.id))}),i(1,"span"),d(2," \u06A9\u062A\u0627\u0628\u200C\u0647\u0627\u06CC \u0645\u0646\u062A\u0642\u0644 \u0634\u062F\u0647 "),n()()}}function yn(t,a){if(t&1&&(f(0,"img",176),Ye(1,"image")),t&2){let e=g().$implicit,x=g(2);s("src",ft(1,3,pt(11,wi,e==null||e.book==null?null:e.book.id,x.imageType.book,e==null||e.book==null?null:e.book.hasPhoto)),ct)("alt",e.book.name)("alt",e==null||e.book==null?null:e.book.name)}}function bn(t,a){if(t&1&&(i(0,"a",177),d(1),n()),t&2){let e=g().$implicit,x=g(2);s("routerLink",_e(3,Je,x.routes.profile,e.book.authors[0].id)),r(),qe("",e==null||e.book==null?null:e.book.authors[0].fullName," + ",(e==null||e.book==null||e.book.authors==null?null:e.book.authors.length)-1)}}function Fn(t,a){if(t&1&&(i(0,"a",177),d(1),n()),t&2){let e=g().$implicit,x=g(2);s("routerLink",_e(2,Je,x.routes.profile,e.book.authors[0].id)),r(),k(e==null||e.book==null?null:e.book.authors[0].fullName)}}function wn(t,a){if(t&1&&(i(0,"div",170)(1,"a",171),_(2,yn,2,15,"img",172),n(),i(3,"div",173)(4,"a",174),d(5),n(),_(6,bn,2,6,"a",175)(7,Fn,2,5,"a",175),n()()),t&2){let e=a.$implicit,x=g(2);r(),s("routerLink",_e(7,Je,x.routes.book,e.book.id)),r(),s("ngIf",(e==null?null:e.book)!=null),r(2),s("matTooltip",e==null||e.book==null?null:e.book.name)("routerLink",_e(10,Je,x.routes.book,e.book.id
3)),r(),S(" ",e==null||e.book==null?null:e.book.name),r(),s("ngIf",(e==null||e.book==null||e.book.authors==null?null:e.book.authors.length)>1),r(),s("ngIf",(e==null||e.book==null||e.book.authors==null?null:e.book.authors.length)==1)}}function kn(t,a){if(t&1){let e=F();i(0,"button",179),v("click",function(){y(e);let u=g(3);return b(u.loadMoreFoundedBook(u.jobDetail==null?null:u.jobDetail.id))}),d(1," \u0645\u0634\u0627\u0647\u062F\u0647 \u0628\u06CC\u0634\u062A\u0631 "),n()}if(t&2){let e=g(3);s("disabled",e.isDisableMoreFounded)}}function Sn(t,a){if(t&1&&(i(0,"div",148),_(1,kn,2,1,"button",178),n()),t&2){let e=g(2);r(),s("ngIf",!e.loadingAllBooks)}}function En(t,a){if(t&1){let e=F();i(0,"button",169),v("click",function(){y(e);let u=g(2);return b(u.notFoundedBook(u.jobDetail.id))}),i(1,"span"),d(2," \u06A9\u062A\u0627\u0628\u200C\u0647\u0627\u06CC \u0645\u0646\u062A\u0642\u0644 \u0646\u0634\u062F\u0647 "),n()()}}function In(t,a){if(t&1){let e=F();i(0,"button",188),v("click",function(){y(e);let u=g().$implicit,m=g(2);return b(m.openDialogResult(u==null?null:u.id,u==null||u.rowDetail==null?null:u.rowDetail.title,u==null||u.rowDetail==null?null:u.rowDetail.author))}),i(1,"span"),d(2," \u0627\u0641\u0632\u0648\u062F\u0646 \u06A9\u062A\u0627\u0628 "),n()()}if(t&2){let e=g().$implicit;s("disabled",e==null?null:e.isLoading)("appButtonLoader",e==null?null:e.isLoading)}}function Mn(t,a){t&1&&(i(0,"button",189)(1,"span"),d(2," \u062F\u0631 \u062D\u0627\u0644 \u067E\u0631\u062F\u0627\u0632\u0634 "),n()())}function An(t,a){if(t&1&&(i(0,"div",180),f(1,"img",181),i(2,"div",182)(3,"div",183)(4,"p",184),d(5),n(),i(6,"p",185),d(7),n()(),_(8,In,3,2,"button",186)(9,Mn,3,0,"button",187),n()()),t&2){let e=a.$implicit;r(),s("alt",e==null||e.book==null?null:e.book.name),r(3),s("matTooltip",e==null||e.rowDetail==null?null:e.rowDetail.title),r(),S(" ",e==null||e.rowDetail==null?null:e.rowDetail.title," "),r(),s("matTooltip",e.rowDetail.author),r(),S(" ",e.rowDetail.author," "),r(),s("ngIf",e==null?null:e.isEnable),r(),s("ngIf",!(e!=null&&e.isEnable))}}function Tn(t,a){t&1&&(i(0,"div",192)(1,"div",137),f(2,"ngx-skeleton-loader",72),n(),i(3,"div",193),f(4,"ngx-skeleton-loader",72)(5,"ngx-skeleton-loader",72),n()()),t&2&&(r(2),s("theme",w(3,Si)),r(2),s("theme",w(4,Yt)),r(),s("theme",w(5,Yt)))}function Bn(t,a){t&1&&(i(0,"div",190),_(1,Tn,6,6,"div",191),n()),t&2&&(r(),s("ngForOf",w(1,ki)))}function Nn(t,a){if(t&1){let e=F();i(0,"button",195),v("click",function(){y(e);let u=g(3);return b(u.loadMoreNotFoundedBook(u.jobDetail==null?null:u.jobDetail.id))}),d(1," \u0645\u0634\u0627\u0647\u062F\u0647 \u0628\u06CC\u0634\u062A\u0631 "),n()}if(t&2){let e=g(3);s("disabled",e.isDisableMoreNotFounded)}}function Pn(t,a){if(t&1&&(i(0,"div",148),_(1,Nn,2,1,"button",194),n()),t&2){let e=g(2);r(),s("ngIf",!e.loadingAllBooks)}}function Dn(t,a){if(t&1){let e=F();i(0,"div",158)(1,"header",71)(2,"div",159)(3,"button",160),v("click",function(){y(e);let u=g();return b(u.back())}),f(4,"span",84),n(),i(5,"span",161),d(6,"\u0627\u0646\u062A\u0642\u0627\u0644 \u0628\u0647 \u0628\u0647\u062E\u0648\u0627\u0646"),n()()(),i(7,"mat-tab-group",162)(8,"mat-tab"),_(9,vn,3,0,"ng-template",163),i(10,"div",71),_(11,wn,8,13,"div",164)(12,Sn,2,1,"div",165),n()(),i(13,"mat-tab"),_(14,En,3,0,"ng-template",163),i(15,"div",71)(16,"span",166),d(17," \u0627\u06CC\u0646 \u06A9\u062A\u0627\u0628\u200C\u0647\u0627 \u062F\u0631 \u0628\u0647\u062E\u0648\u0627\u0646 \u0645\u0648\u062C\u0648\u062F \u0646\u06CC\u0633\u062A\u0646\u062F.\u0645\u06CC\u200C\u062A\u0648\u0627\u0646\u06CC\u062F \u0627\u06CC\u0646 \u06A9\u062A\u0627\u0628\u200C\u0647\u0627\u0631\u0627 \u062F\u0631 \u0628\u0647\u062E\u0648\u0627\u0646 \u0627\u0636\u0627\u0641\u0647 \u06A9\u0646\u06CC\u062F. "),n(),_(18,An,10,7,"div",167)(19,Bn,2,2,"div",168)(20,Pn,2,1,"div",165),n()()()()}if(t&2){let e=g();r(11),s("ngForOf",e.migrateFounded),r(),s("ngIf",!e.isDisableMoreFounded),r(6),s("ngForOf",e.migrateNotFounded),r(),s("ngIf",e.loadingAllBooks),r(),s("ngIf",!e.isDisableMoreNotFounded)}}var He="migrateState",Kt=(()=>{let a=class a extends oe{constructor(){super();l(this,"router",C(yt));l(this,"backupService",C(Gt));l(this,"localRepository",C(ee));
3l(this,"_libraryItemBackupService",C(Rt));l(this,"_pipelineService",C($t));l(this,"activatedRoute",C(vt));l(this,"dialog",C(It));l(this,"bottomSheet",C(kt));l(this,"_location",C(xt));l(this,"pointes",[{id:0},{id:1},{id:2},{id:3},{id:4}]);l(this,"activePoint",0);l(this,"routes",Ct);l(this,"invalidFileType",!1);l(this,"resultBook",!1);l(this,"disableStep",!0);l(this,"loadingButton",!1);l(this,"callServicesLibrary");l(this,"foundedDate",[{id:0,itemCount:0,itemName:"\u06A9\u062A\u0627\u0628 \u062E\u0648\u0627\u0646\u062F\u0647 \u0634\u062F\u0647."},{id:1,itemCount:0,itemName:"\u06CC\u0627\u062F\u062F\u0627\u0634\u062A \u0646\u0648\u0634\u062A\u0647 \u0634\u062F\u0647."},{id:2,itemCount:0,itemName:"\u0627\u0645\u062A\u06CC\u0627\u0632 \u062B\u0628\u062A \u0634\u062F\u0647."},{id:3,itemCount:0,itemName:"\u0642\u0641\u0633\u06C0 \u0627\u06CC\u062C\u0627\u062F \u0634\u062F\u0647."}]);l(this,"importedItems",[{id:0,itemCount:0,itemFoundCount:0,itemName:"\u06A9\u062A\u0627\u0628\u200C\u200C\u0647\u0627"},{id:1,itemCount:0,itemFoundCount:0,itemName:"\u06A9\u062A\u0627\u0628\u200C\u200C\u0647\u0627\u06CC \u062F\u0627\u062E\u0644 \u0642\u0641\u0633\u0647"},{id:2,itemCount:0,itemFoundCount:0,itemName:"\u06CC\u0627\u062F\u062F\u0627\u0634\u062A"},{id:3,itemCount:0,itemFoundCount:0,itemName:"\u0627\u0645\u062A\u06CC\u0627\u0632"},{id:4,itemCount:0,itemFoundCount:0,itemName:"\u0642\u0641\u0633\u0647\u200C"}]);l(this,"foundedItems",[{id:0,itemCount:0,itemName:"\u06A9\u062A\u0627\u0628\u200C\u0647\u0627"},{id:1,itemCount:0,itemName:"\u06CC\u0627\u062F\u062F\u0627\u0634\u062A\u200C\u0647\u0627"},{id:2,itemCount:0,itemName:"\u0627\u0645\u062A\u06CC\u0627\u0632 \u0647\u0627"}]);l(this,"jobState",{boocCount:0,finished:!1,index:0,shelvesCount:0,rateAndReviewCount:0,idJob:""});l(this,"loadingFile",!1);l(this,"loadingAllBooks",!1);l(this,"loadingHistory",!1);l(this,"jobDetail",new Ue);l(this,"migrateResult",[]);l(this,"checkDuplicatedData",!1);l(this,"foundedDataBool",!1);l(this,"changeTab",!0);l(this,"isProcessing",!1);l(this,"migrateFounded",[]);l(this,"migrateNotFounded",[]);l(this,"pipeline",new $e);l(this,"historyMigrate",[]);l(this,"searchFilter",new he);l(this,"searchFilterAll",new he);l(this,"searchFilterFounded",new he);l(this,"searchFilterNotFounded",new he);l(this,"isDisableMoreFounded",!1);l(this,"isDisableMoreNotFounded",!1);l(this,"durationInSeconds",5);l(this,"proccessLoading",!1);l(this,"imageType",Nt)}ngOnInit(){this.loadingHistory=!0,this.searchFilterFounded.pgNumber=0,this.searchFilterNotFounded.pgNumber=0,this.activatedRoute.queryParams.subscribe(u=>{u!=null&&u.jobId&&(this.jobDetail.id=u==null?void 0:u.jobId,this.activePoint=6,this.disableStep=!this.disableStep,this.resultBook=!this.resultBook,this.foundedBook(u==null?void 0:u.jobId),this.notFoundedBook(u==null?void 0:u.jobId),this.jobState.finished=!0)}),this.backupService.getMyRequests().pipe(U(()=>{this.loadingHistory=!1})).subscribe(u=>{var m;u.hasError||(this.historyMigrate=(m=u.result)==null?void 0:m.items.filter(c=>c.state!==ae.faild))})}openDetailBook(){this.disableStep=!this.disableStep,this.resultBook=!this.resultBook}previusStep(){this.localRepository.IsInBrowser&&(this.activePoint<1||this.activePoint==0)&&this._location.back(),this.localRepository.IsInBrowser&&this.activePoint>0&&this.activePoint--}nextStep(){this.localRepository.IsInBrowser&&this.activePoint<4&&this.activePoint++}uploadcsvFile(){if(this.localRepository.IsInBrowser){let u=this.localRepository.getDocument.getElementById("uploadInput");setTimeout(()=>{u.click()},100),u.addEventListener("change",()=>{let m=u.value;if((m==null?void 0:m.length)>0)if(this.loadingFile=!0,!m.endsWith(u.accept))this.invalidFileType=!0;else{this.invalidFileType=!1;let c=u.files[0],o=new FileReader;o.readAsDataURL(c),o.onload=()=>{this.backupService.create(c).subscribe(p=>{p.hasError||(this.activePoint=5,this.loadingFile=!1,this.jobState.index=this.activePoint,this.jobState.idJob=p.result,this.localRepository.setLocalItem(He,JSON.stringify(this.jobState)),this.proccessFile(p.result,!0))})}}})}}proccessFile(u,m){if(m)this.activePoint=5;else{this.activePoint=6,this.disableStep=!0,this.proccessLoading=!1,this.snackbarService.openSnackbar(Ke.success,"\u0627\u0646\u062A\u0642\u0627\u0644 \u0628\u0627 \u0645\u0648\u0641\u0642\u06CC\u062A \u0627\u0646\u062C\u0627\u0645 \u0634\u062F.");return}if(this.snackbarService.openSnackbar(Ke.warning,"\u0628\u0631\u0627\u06CC \u0628\u0627\u0631\u06AF\u0630\u0627\u0631\u06CC \u062A\u0635\u0648\u06CC\u0631\u060C\u0641\u06CC\u0644\u062A\u0631\u0634\u06A9\u0646 \u062E\u0648\u062F \u0631\u0627 \u0631\u0648\u0634\u0646 \u06A9\u0646\u06CC\u062F."),this.jobState.index=this.activePoint,this.localRepository.setLocalItem(He,JSON.stringify(this.jobState)),this.localRepository.IsInBrowser){let c=setInterval(()=>{this.backupService.getRequestsById(u).pipe(U(()=>m?this.proccessLoading=!0:this.proccessLoading=!1)).subscribe(o=>{var p,I,H,Ze,et,tt,it,nt,ut,ot;o.hasError||(this.jobDetail=o.result,(((p=this.jobDetail.statistics)==null?void 0:p.state)=="Check
3Library Existence"||((I=this.jobDetail.statistics)==null?void 0:I.state)=="Check Shelve Existence"||((H=this.jobDetail.statistics)==null?void 0:H.state)=="Check Rate and Review Existence")&&(this.checkDuplicatedData=!0),((et=(Ze=this.jobDetail)==null?void 0:Ze.statistics)==null?void 0:et.state)=="Impodt Data"&&(this.foundedDataBool=!0,this.importedItems[0].itemFoundCount=(tt=this.jobDetail.statistics.foundedData)==null?void 0:tt.customerBookCount,this.importedItems[1].itemFoundCount=(it=this.jobDetail.statistics.foundedData)==null?void 0:it.bookShelveCount,this.importedItems[2].itemFoundCount=(nt=this.jobDetail.statistics.foundedData)==null?void 0:nt.reviewCount,this.importedItems[3].itemFoundCount=(ut=this.jobDetail.statistics.foundedData)==null?void 0:ut.rateCount,this.importedItems[4].itemFoundCount=(ot=this.jobDetail.statistics.foundedData)==null?void 0:ot.shelveCount),this.foundedDate.forEach(h=>{var M,A,T,B,N,P,D,j,R,V,O,L,z,G,$,W,le,se,de,me,ce,pe,ge,fe;h.id==0&&(h.itemCount=(T=(A=(M=o==null?void 0:o.result)==null?void 0:M.statistics)==null?void 0:A.excelValidData)!=null&&T.customerBookCount?(P=(N=(B=o==null?void 0:o.result)==null?void 0:B.statistics)==null?void 0:N.excelValidData)==null?void 0:P.customerBookCount:0),h.id==1&&(h.itemCount=(R=(j=(D=o==null?void 0:o.result)==null?void 0:D.statistics)==null?void 0:j.excelValidData)!=null&&R.reviewCount?(L=(O=(V=o==null?void 0:o.result)==null?void 0:V.statistics)==null?void 0:O.excelValidData)==null?void 0:L.reviewCount:0),h.id==2&&(h.itemCount=($=(G=(z=o==null?void 0:o.result)==null?void 0:z.statistics)==null?void 0:G.excelValidData)!=null&&$.rateCount?(se=(le=(W=o==null?void 0:o.result)==null?void 0:W.statistics)==null?void 0:le.excelValidData)==null?void 0:se.rateCount:0),h.id==3&&(h.itemCount=(ce=(me=(de=o==null?void 0:o.result)==null?void 0:de.statistics)==null?void 0:me.excelValidData)!=null&&ce.shelveCount?(fe=(ge=(pe=o==null?void 0:o.result)==null?void 0:pe.statistics)==null?void 0:ge.excelValidData)==null?void 0:fe.shelveCount:0)}),this.foundedDataBool&&this.importedItems.forEach(h=>{var M,A,T,B,N,P,D,j,R,V,O,L,z,G,$,W,le,se,de,me,ce,pe,ge,fe,at,rt,lt,st,dt,mt;h.id==0&&(h.itemCount=(T=(A=(M=o==null?void 0:o.result)==null?void 0:M.statistics)==null?void 0:A.importCustomerBook)!=null&&T.validCount?(P=(N=(B=o==null?void 0:o.result)==null?void 0:B.statistics)==null?void 0:N.importCustomerBook)==null?void 0:P.validCount:0),h.id==1&&(h.itemCount=(R=(j=(D=o==null?void 0:o.result)==null?void 0:D.statistics)==null?void 0:j.importBookShelve)!=null&&R.validCount?(L=(O=(V=o==null?void 0:o.result)==null?void 0:V.statistics)==null?void 0:O.importBookShelve)==null?void 0:L.validCount:0),h.id==2&&(h.itemCount=($=(G=(z=o==null?void 0:o.result)==null?void 0:z.statistics)==null?void 0:G.importReview)!=null&&$.validCount?(se=(le=(W=o==null?void 0:o.result)==null?void 0:W.statistics)==null?void 0:le.importReview)==null?void 0:se.validCount:0),h.id==3&&(h.itemCount=(ce=(me=(de=o==null?void 0:o.result)==null?void 0:de.statistics)==null?void 0:me.importRate)!=null&&ce.validCount?(fe=(ge=(pe=o==null?void 0:o.result)==null?void 0:pe.statistics)==null?void 0:ge.importRate)==null?void 0:fe.validCount:0),h.id==4&&(h.itemCount=(lt=(rt=(at=o==null?void 0:o.result)==null?void 0:at.statistics)==null?void 0:rt.importShelve)!=null&<.validCount?(mt=(dt=(st=o==null?void 0:o.result)==null?void 0:st.statistics)==null?void 0:dt.importShelve)==null?void 0:mt.validCount:0)}),(o.result.state==ae.succeed||o.result.state==ae.faild||o.result.state==ae.cancled)&&(this.activePoint=6,this.jobState.finished=!0,this.jobState.index=this.activePoint,this.jobState.boocCount=this.foundedDate[0].itemCount,this.jobState.rateAndReviewCount=this.foundedDate[1].itemCount,this.jobState.shelvesCount=this.foundedDate[3].itemCount,this.localRepository.setLocalItem(He,JSON.stringify(this.jobState)),clearInterval(c)),this.foundedItems.forEach(h=>{var M,A,T,B,N,P,D,j,R,V,O,L,z,G,$,W;h.id==0&&(h.itemCount=(A=(M=o==null?void 0:o.result)==null?void 0:M.statistics)!=null&&A.excelTotalRowCount?(B=(T=o==null?void 0:o.result)==null?void 0:T.statistics)==null?void 0:B.excelTotalRowCount:0),h.id==1&&(h.itemCount=(P=(N=o==null?void 0:o.result)==null?void 0:N.statistics)!=null&&P.excelReviewCount?(j=(D=o==null?void 0:o.result)==null?void 0:D.statistics)==null?void 0:j.excelReviewCount:0),h.id==2&&(h.itemCount=(V=(R=o==null?void 0:o.result)==null?void 0:R.statistics)!=null&&V.excelRateCount?(L=(O=o==null?void 0:o.result)==null?void 0:O.statistics)==null?void 0:L.excelRateCount:0),h.id==3&&(h.itemCount=(G=(z=o==null?void 0:o.result)==null?void 0:z.statistics)!=null&&G.excelShelveCount?(W=($=o==null?void 0:o.result)==null?void 0:$.statistics)==null?void 0:W.excelShelveCount:0)}))})},5e3)}}
3changeFile(u){return new Promise((m,c)=>{let o=new FileReader;o.readAsDataURL(u),o.onload=()=>m(o.result),o.onerror=p=>c(p)})}removeStorage(){this.localRepository.removeLocalItem(He)}back(){this.localRepository.IsInBrowser&&(this.activePoint--,this.activePoint==5&&this.activePoint--,this.activePoint<6&&(this.resultBook=!1,this.activePoint=0))}foundedBook(u){this.loadingAllBooks=!0,this.searchFilterFounded.pgSize=10,this.searchFilterFounded.filter=new Ce("imported",ve.Equals,"true"),this._libraryItemBackupService.getMyByRequestId(u,this.searchFilterFounded).pipe(U(()=>{this.loadingAllBooks=!1})).subscribe(m=>{var c,o;m.hasError||(this.searchFilterFounded.pgNumber++,((c=m.result)==null?void 0:c.hasNextPage)==!1&&(this.isDisableMoreFounded=!0),(o=m.result)==null||o.items.forEach(p=>{this.migrateFounded.push(p),this.loadingAllBooks=!1}))})}notFoundedBook(u){this.loadingAllBooks=!0,this.searchFilterNotFounded.pgSize=10,this.searchFilterNotFounded.filter=new Ce("imported",ve.Equals,"false"),this._libraryItemBackupService.getMyByRequestId(u,this.searchFilterNotFounded).pipe(U(()=>{this.loadingAllBooks=!1})).subscribe(m=>{var c,o;m.hasError||(this.searchFilterNotFounded.pgNumber++,((c=m.result)==null?void 0:c.hasNextPage)==!1&&(this.isDisableMoreNotFounded=!0),(o=m.result)==null||o.items.forEach(p=>{p.isLoading=!1,p.isEnable==!1&&(this.isProcessing=!0),this.migrateNotFounded.push(p),this.loadingAllBooks=!1}))})}openCreateBook(u){this.migrateNotFounded.find(o=>{o.id==u&&(o.isLoading=!0)});let m;this._libraryItemBackupService.getMyDataFromParser(u).subscribe(o=>{o.hasError||(m=o.result)});let c=setInterval(()=>{this._pipelineService.getMyById(m).subscribe(o=>{o.hasError||(o.result.status=="Passed"&&(this.pipeline=o.result,clearInterval(c),this.router.navigate([this.routes.setting_profile_create_migrate],{queryParams:{createBookId:m,jobDetailId:this.jobDetail.id}}),this.migrateNotFounded.find(p=>{p.id==u&&(p.isLoading=!1)})),o.result.status=="Failed"&&(this.migrateNotFounded.find(p=>{p.id==u&&(p.isLoading=!1)}),clearInterval(c)))})},2e3)}loadMoreFoundedBook(u){this.loadingAllBooks=!0,this.searchFilterFounded.pgSize=10,this.searchFilterFounded.filter=new Ce("imported",ve.Equals,"true"),this._libraryItemBackupService.getMyByRequestId(u,this.searchFilterFounded).pipe(U(()=>{this.loadingAllBooks=!1})).subscribe(m=>{var c,o;m.hasError||(this.searchFilterFounded.pgNumber++,((c=m.result)==null?void 0:c.hasNextPage)==!1&&(this.isDisableMoreFounded=!0),(o=m.result)==null||o.items.forEach(p=>{this.migrateFounded.push(p),this.loadingAllBooks=!1}))})}loadMoreNotFoundedBook(u){this.loadingAllBooks=!0,this.searchFilterNotFounded.pgSize=10,this.searchFilterNotFounded.filter=new Ce("imported",ve.Equals,"false"),this._libraryItemBackupService.getMyByRequestId(u,this.searchFilterNotFounded).pipe(U(()=>{this.loadingAllBooks=!1})).subscribe(m=>{var c,o;m.hasError||(this.searchFilterNotFounded.pgNumber++,((c=m.result)==null?void 0:c.hasNextPage)==!1&&(this.isDisableMoreNotFounded=!0),(o=m.result)==null||o.items.forEach(p=>{p.isEnable==!1&&(this.isProcessing=!0),this.migrateNotFounded.push(p),this.loadingAllBooks=!1}))})}openDialogResult(u,m,c){this.localRepository.IsInMobile?this.bottomSheet.open(qt,{disableClose:!1,data:{parsedResultId:u,jobId:this.jobDetail.id,bookName:m,authorName:c}}).afterDismissed().subscribe(p=>{p==!0&&this.migrateNotFounded.find(I=>{if(I.id==u){let H=this.migrateNotFounded.indexOf(I);this.migrateNotFounded.splice(H,1)}}),p=="createBook"&&this.openCreateBook(u)}):this.dialog.open(Jt,{width:"800px",height:"500px",data:{parsedResultId:u,jobId:this.jobDetail.id,bookName:m,authorName:c}}).afterClosed().subscribe(p=>{p==!0&&this.migrateNotFounded.find(I=>{if(I.id==u){let H=this.migrateNotFounded.indexOf(I);this.migrateNotFounded.splice(H,1)}}),p=="createBook"&&this.openCreateBook(u)})}};l(a,"\u0275fac",function(m){return new(m||a)}),l(a,"\u0275cmp",J({type:a,selectors:[["app-migrate"]],features:[q],decls:8,vars:8,consts:[[1,"w-full","px-2","min-h-[70vh]","sm:p-0","flex","flex-wrap","justify-center","content-start","relative","h-full",3,"ngClass"],[1,"w-full","flex","flex-wrap"],[1,"w-full","mt-2","flex","flex-wrap","justify-center"],["class","flex flex-wrap w-full h-[84vh]",4,"ngIf"],["class","w-full flex flex-wrap justify-start steper content-start final-step",4,"ngIf"],["class","w-full flex flex-wrap justify-center steper content-start final-step",4,"ngIf"],["class","w-full flex py-2 mt-5 justify-center",4,"ngIf"],["class","flex w-full flex-wrap pb-[10px]",4,"ngIf"],[1,"flex","flex-wrap","w-full","h-[84vh]"],[1,"flex","px-2","flex-wrap","justify-center","items-start","step-first-main-detail"],["class","w-full flex flex-wrap justify-center steper content-start",4,"ngIf"],["class","w-full flex items-center justify-center",4,"ngIf"],["class","skeleton",4,"ngIf"],["class","flex flex-wrap w-full py-2 items-end",4,"ngIf"],[1,"w-full","flex","flex-wrap","justify-center","steper","content-start"],[1,"w-full","flex","justify-center"],[1,"text-2xl","text-gray-900","text-center"],[1,"w-full","mt-4","flex","justify-center"],["loading","lazy","width","90%","src","https://storage.behkhaan.ir/assets/images/migrate/goodreads_logo_text.svg","alt","\u06AF\u0648\u062F\u0631\u06CC\u062F\u0632",1,"rounded-xs","object-contain","bg-transparent"],[1,"w-full","mt-5","flex","flex-wrap","items-center","justify-between"],[1,"w-4/12","flex","justify-center"],["width","100%","height","100%","loading","lazy","src","https://storage.behkhaan.ir/assets/images/migrate/goodreads-logo.svg","alt","\u0644\u0648\u06AF\u0648\u06CC \u06AF\u0648\u062F\u0631\u06CC\u062F\u0632",1,"rounded-xs","object-contain","bg-transparent"],["loading","lazy","src","https://storage.behkhaan.ir/assets/images/migrate/Arrow.svg","alt","\u0641\u0644\u0634",1,"rounded-xs","object-contain","bg-transparent"],["
3width","100%","height","100%","loading","lazy","src","https://storage.behkhaan.ir/assets/images/migrate/behkhaan.png","alt","\u0644\u0648\u06AF\u0648\u06CC \u0628\u0647\u062E\u0648\u0627\u0646",1,"rounded-xs","object-contain","bg-transparent"],[1,"w-full","text-xs","md:text-sm","font-medium","text-center","text-gray-500","mt-2"],["class","flex flex-wrap w-full justify-center",4,"ngIf"],[1,"flex","flex-wrap","w-full","justify-center"],[1,"pr-4","w-full","text-right","text-gray-300"],[1,"w-full","sm:w-10/12","flex","flex-wrap","justify-center","my-2"],["class","flex justify-between items-center btn-green-mute w-full md:w-4/5 h-[60px] px-2 mt-2 hover:-translate-y-[6px] hover:shadow-sm",4,"ngFor","ngForOf"],[1,"flex","justify-between","items-center","btn-green-mute","w-full","md:w-4/5","h-[60px]","px-2","mt-2","hover:-translate-y-[6px]","hover:shadow-sm"],[1,"flex","flex-wrap"],["width","25","height","45","src","https://storage.behkhaan.ir/assets/images/migrate/upload-icon.svg","alt","\u0622\u067E\u0644\u0648\u062F \u0641\u0627\u06CC\u0644 \u06AF\u0648\u062F\u0631\u06CC\u062F\u0632 \u062F\u0631 \u0628\u0647\u062E\u0648\u0627\u0646",1,"rounded-xs","object-contain","bg-transparent"],[1,"flex","flex-wrap","mr-2"],[1,"text-sm","md:text-base","font-medium","text-gray-900","w-full"],[1,"text-sm","md:text-base","line-clamp-1","text-gray-300","mr-2"],["type","button",1,"!px-0","!text-xs","w-16","md:w-20","btn-green-flat","mr-2",3,"click","id","appButtonLoader","disabled"],[1,"w-full","flex","items-center","justify-center"],[1,"w-8","h-8","rounded-full","text-green-500","bg-green-50","flex","items-center","justify-center"],[1,"w-full","mt-4","flex","flex-wrap"],[1,"w-full","text-base","text-gray-900"],["href","https://www.goodreads.com/","target","_blank",1,"cursor-pointer","text-blue-500","my-2"],[1,"text-xs","md:text-sm","text-gray-900"],["src","https://storage.behkhaan.ir/assets/images/migrate/step1.png","alt","\u0648\u0631\u0648\u062F \u0628\u0647 \u06AF\u0648\u062F\u0631\u06CC\u062F\u0632",1,"rounded-xs","object-contain","bg-transparent"],[1,"w-full","mt-4","flex"],[1,"text-base","text-gray-900"],[1,"text-base","font-medium"],[1,"w-10/12","mt-4","flex","justify-center"],["loading","lazy","src","https://storage.behkhaan.ir/assets/images/migrate/step2.1.png","alt","Guide 1",1,"rounded-xs","object-contain","bg-transparent"],[1,"w-full","mt-4"],["href","https://www.goodreads.com/review/import","target","_blank",1,"link","text-xs","md:text-sm","cursor-pointer","text-blue-500"],[1,"w-5/12","mt-4","flex","justify-center"],["loading","lazy","src","https://storage.behkhaan.ir/assets/images/migrate/step2.2.png","alt","Guide 2",1,"rounded-xs","object-contain","bg-transparent"],[1,"text-sm","md:text-base","text-gray-700","text-center"],[1,"text-sm","md:text-base","font-medium","text-gray-900"],[1,"w-full","md:w-10/12","mt-4","flex","justify-center"],["loading","lazy","src","https://storage.behkhaan.ir/assets/images/migrate/step3.1.png","alt","Guide 3",1,"rounded-xs","object-contain","bg-transparent"],[1,"text-base","text-gray-700","text-center"],["loading","lazy","src","https://storage.behkhaan.ir/assets/images/migrate/step3.2.png","alt","Guide 4",1,"rounded-xs","object-contain","bg-transparent"],[1,"flex","flex-wrap","items-center","justify-center","w-[300px]","h-[180px]","rounded-lg","border","border-gray-100","dark:border-gray-700","relative"],["src","https://storage.behkhaan.ir/assets/images/migrate/upload-icon.svg","alt","\u0622\u067E\u0644\u0648\u062F \u0641\u0627\u06CC\u0644 \u06AF\u0648\u062F\u0631\u06CC\u062F\u0632 \u062F\u0631 \u0628\u0647\u062E\u0648\u0627\u0646",1,"rounded-xs","object-contain","bg-transparent"],[1,"w-full","mt-1","flex","justify-center","items-start"],[1,"btn-green-flat","w-24","h-10","px-2","!text-xs",3,"click"],["type","file","accept",".csv","hidden","true","id","uploadInput"],["class","text-xs md:text-sm text-red-700 dark:text-red-600 mt-2",4,"ngIf"],["class","w-full h-full z-20 absolute top-1/2 left-1/2 opacity-[0.6] transform -translate-x-1/2 -translate-y-1/2 rounded-md bg-gray-700",4,"ngIf"],[1,"text-xs","md:text-sm","text-red-700","dark:text-red-600","mt-2"],[1,"w-full","h-full","z-20","absolute","top-1/2","left-1/2","opacity-[0.6]","transform","-translate-x-1/2","-translate-y-1/2","rounded-md","bg-gray-700"],["src","https://storage.behkhaan.ir/assets/images/migrate/spinning-circles.svg","alt","\u062F\u0631 \u062D\u0627\u0644 \u0627\u0646\u062A\u0642\u0627\u0644",1,"overlay-image","rounded-xs","object-contain","bg-transparent","w-[50px]","h-[50px]","z-20","absolute","top-1/2","left-1/2","transform","-translate-x-1/2","-translate-y-1/2"],[1,"skeleton"],["class","w-full",4,"ngFor","ngForOf"],[1,"w-full"],[3,"theme"],[1,"flex","flex-wrap","w-full","py-2","items-end"],[1,"w-full","mt-2","flex","flex-wrap","items-center","justify-center"],["class","w-2 h-2 rounded-lg bg-gray-300 text-gray-500 ml-2",3,"ngClass",4,"ngFor","ngForOf"],[1,"w-full","flex","flex-wrap","items-center","justify-between","mt-4"],["class","w-3/12 flex justify-start text-gray-900",4,"ngIf"],["class","w-1/2 flex flex-wrap items-center justify-center text-gray-900",4,"ngIf"],["class","w-3/12 flex justify-end text-gray-900",4,"ngIf"],["class","w-full flex flex-wrap justify-center items-center",4,"ngIf"],[1,"w-2","h-2","rounded-lg","bg-gray-300","text-gray-500","ml-2",3,"ngClass"],[1,"w-3/12","flex","justify-start","text-gray-900"],[1,"btn-md","flex","justify-center","items-center",3,"click"],[1,"icon","chevron-right-regular","text-lg"],[1,"w-1/2","flex","flex-wrap","items-center","justify-center","text-gray-900"],[1,"btn-md","flex","items-center",3,"click"],[1,"icon","chevron-double-left-regular","text-xs","md:text-sm","ml-1"],[1,"w-3/12","flex","justify-end","text-gray-900"],["class","btn-md flex items-center",3,"click",4,"ngIf"],[1,"icon","chevron-left-regular","text-base","text-gray-900","mr-1"],[1,"w-full","flex","flex-wrap","justify-center","items-center"],[1,"curs
3or-pointer","text-blue-500","flex","items-center",3,"routerLink"],[1,"text-xs","font-medium","text-gray-300","mt-2"],[1,"w-full","flex","flex-wrap","justify-start","steper","content-start","final-step"],[1,"w-full","flex","justify-center","relative","min-h-[100px]"],["class","big-smoke bg-gray-100",4,"ngIf"],["class","small-smoke bg-gray-100",4,"ngIf"],["class","bg-gray-100 big-smoke-2",4,"ngIf"],["class","bg-gray-100 small-smoke-2",4,"ngIf"],["class","bg-gray-100 big-smoke-3",4,"ngIf"],["class","bg-gray-100 small-smoke-3",4,"ngIf"],["loading","lazy","width","80px","src","https://storage.behkhaan.ir/assets/images/migrate/upload-icon.svg","alt","\u0628\u0627\u0631\u06AF\u0630\u0627\u0631\u06CC",1,"rounded-xs","object-contain","bg-transparent",3,"ngClass"],["loading","lazy","class","absolute top-40 left-0 opacity-100 w-20 transform translate-y-1/2 -translate-x-1/2 fade-image","width","80px","src","https://storage.behkhaan.ir/assets/images/migrate/behkhaan.png","alt","\u0628\u0647\u062E\u0648\u0627\u0646",4,"ngIf"],[1,"w-full","mt-4","flex","flex-wrap","justify-center"],["class","text-2xl text-gray-900 text-center",4,"ngIf"],[1,"w-full","flex","mt-2"],["class","lds-ellipsis mx-auto",4,"ngIf"],["class","w-full",4,"ngIf"],["class","w-8/12 md:w-5/12 mx-auto flex flex-wrap justify-center mt-4",4,"ngIf"],[1,"big-smoke","bg-gray-100"],[1,"small-smoke","bg-gray-100"],[1,"bg-gray-100","big-smoke-2"],[1,"bg-gray-100","small-smoke-2"],[1,"bg-gray-100","big-smoke-3"],[1,"bg-gray-100","small-smoke-3"],["loading","lazy","width","80px","src","https://storage.behkhaan.ir/assets/images/migrate/behkhaan.png","alt","\u0628\u0647\u062E\u0648\u0627\u0646",1,"absolute","top-40","left-0","opacity-100","w-20","transform","translate-y-1/2","-translate-x-1/2","fade-image"],[1,"lds-ellipsis","mx-auto"],[1,"bg-green-500"],[1,"text-xs","md:text-sm","text-gray-900","text-center"],[1,"w-8/12","md:w-5/12","mx-auto","flex","flex-wrap","justify-center","mt-4"],["class","w-full flex flex-wrap items-center justify-center",4,"ngFor","ngForOf"],[1,"w-full","flex","flex-wrap","items-center","justify-center"],[1,"w-4/12","md:w-4/12","flex","justify-center"],[1,"w-8/12","md:w-8/12"],[1,"text-xs","md:text-sm","text-gray-500"],[1,"w-full","flex","flex-wrap","justify-center","steper","content-start","final-step"],[1,"w-full","flex","justify-center","items-center","relative"],["loading","lazy","width","40px","src","https://storage.behkhaan.ir/assets/images/migrate/final-ballonsvg.svg","alt","\u0628\u0627\u0644\u0648\u0646",1,"z-10","rounded-xs","object-contain","bg-transparent"],[1,"w-full","flex","justify-center","mb-2"],[1,"text-gray-500","text-lg","md:text-xl","font-medium","text-center"],[1,"w-10/12","mt-4","flex","flex-wrap","justify-center","h-[140px]","rounded-lg","border","border-gray-100","dark:border-gray-700"],[1,"w-full","text-center","text-gray-900","text-base","font-medium","mt-2"],["class","w-4/12 items-center justify-center",4,"ngFor","ngForOf"],[1,"w-10/12","mt-4","flex","flex-wrap","justify-center","border","border-gray-100","dark:border-gray-700","p-2","md:p-4"],[1,"flex","w-full","justify-center"],[1,"icon","cloud-checkmark-filled","text-xl","text-green-300"],[1,"flex"],[1,"text-sm","md:text-base","font-medium","text-gray-900","px-1"],[1,"text-sm","md:text-base","text-gray-500"],[1,"text-xs","md:text-sm","font-medium","text-gray-900"],[1,"text-xs","md:text-sm","font-medium","text-gray-900","px-1"],[1,"text-xs","md:text-sm","text-gray-500","px-1"],[1,"icon","cloud-dismiss-filled","text-xl","text-green-300"],["type","button",1,"w-1/2","btn-green-flat","h-10","mt-4",3,"click"],[1,"text-center","text-xs","text-gray-400","mt-4"],[1,"w-4/12","items-center","justify-center"],["class","flex justify-center text-gray-200 mt-1",4,"ngIf"],[1,"flex","justify-center"],[1,"text-xs","md:text-sm","text-green-400"],[1,"flex","justify-center","text-gray-200","mt-1"],[1,"icon","book-filled","text-base"],[1,"icon","notepad-filled","text-base"],[1,"icon","star-filled","text-base"],[1,"w-full","flex","py-2","mt-5","justify-center"],[1,"w-full","text-center"],["count","1",3,"theme"],[1,"w-full","text-center","mt-2"],[1,"flex","w-full","flex-wrap","pb-[10px]"],[1,"flex","items-center"],["mat-icon-button","",1,"flex","justify-center","items-center",3,"click"],[1,"text-lg","md:text-xl","font-medium","text-gray-500","pr-2","mt-1"],["mat-align-tabs","end","disableRipple","",1,"w-full","rounded-xl"],["mat-tab-label",""],["class","flex py-2 hover:rounded-lg hover:-translate-y-[6px] hover:shadow-sm",4,"ngFor","ngForOf"],["class","flex justify-center",4,"ngIf"],[1,"flex","pr-1","justify-center","text-xs","font-medium","text-gray-500","py-2"],["class","flex mt-2 hover:rounded-lg hover:-translate-y-[6px] hover:shadow-sm",4,"ngFor","ngForOf"],["class","skeleton mt-2",4,"ngIf"],["mat-button","",3,"click"],[1,"flex","py-2","hover:rounded-lg","hover:-translate-y-[6px]","hover:shadow-sm"],[3,"routerLink"],["class","book-image rounded-xs object-contain bg-transparent","width","48px","height","67px","onerror","this.src='https://storage.behkhaan.ir/assets/images/default/default_book.svg'",3,"src","alt",4,"ngIf"],[1,"flex","flex-wrap","pr-4"],["matTooltipPosition","above",1,"line-clamp-1","text-sm","md:text-base","font-medium","text-gray-900","w-full","mr-2",3,"matTooltip","routerLink"],["class","text-base line-clamp-1 text-gray-300 mr-2",3,"routerLink",4,"ngIf"],["width","48px","height","67px","onerror","this.src='https://storage.behkhaan.ir/assets/images/default/default_book.svg'",1,"book-image","rounded-xs","object-contain","bg-transparent",3,"src","alt"],[1,"text-base","line-clamp-1","text-gray-300","mr-2",3,"routerLink"],["class","btn-green hover:bg-green-10 dark:hover:bg-green-1000",3,"disabled","click",4,"ngIf"],[1,"btn-green","hover:bg-green-10","dark:hover:bg-green-1000",3,"click","disabled"],[1,"flex","mt-2","hover:rounded-lg","hover:-translate-y-[6px]","hover:shadow-sm"],["loading","lazy","width","48","height","67px","src","https://storage.behkhaan.ir/assets/images/no-photo-result.png",1,"book-image","rounded-xs","object-contain","bg-transparent",3,"alt"],[1,"flex","flex-wrap","col","justify-center","items-center"],[1,"flex","flex-wrap","col"],["matTooltipPosition","above",1,"line-clamp-1","text-sm","md:text-base","font-medium","text-gray-900","w-full","mr-2",3,"matTooltip"],["matTooltipPosition","above",1,"text-base","line-clamp-1","text-gray-300","mr-2",3,"matTooltip"],["mat-flat-button","","color","primary","type","button","class","btn-sm mr-2",3,"disabled","appButtonLoader","click",4,"ngIf"],["mat-flat-button","","color","primary","type","button","class","btn-sm mr-2","disabled","",4,"ngIf"],["mat-flat-button","","color","primary","type","button",1,"btn-sm","mr-2",3,"click","disabled","appButtonLoader"],["mat-flat-button","","color","primary","type","button","disabled","",1,"btn-sm","mr-2"],[1,"skeleton","mt-2"],["class","flex w-full",4,"ngFor","ngForOf"],[1,"flex","w-full"],[1,"block","mr-2"],["mat-flat-button","","color","primary","class","btn-sm",3,"disabled","click",4,"ngIf"],["mat-flat-button","","color","primary",1,"btn-sm",3,"click","disabled"]],template:function(m,c){m&1&&(i(0,"section",0)(1,"article",1)(2,"div",2),_(3,Ji,10,8,"div",3)(4,cn,21,18,"div",4)(5,_n,61,7,"div",5)(6,Cn,2,2,"section",6)(7,Dn,21,5,"div",7),n()()()),m&2&&(s("ngClass",xe(6,gi,c.activePoint==6)),r(3),s("ngIf",c.activePoint<5),r(),s("ngIf",c.activePoint==5),r(),s("ngIf",c.activePoint==6&&c.disableStep&&!c.proccessLoading),r(),s("ngIf",c.proccessLoading),r(),s("ngIf",c.resultBook))},dependencies:[ue,_t,X,Z,ne,Mt,ie,At,bt,zt,Vt,Ot,Lt,jt,Tt,Bt,Dt],styles:["[_nghost-%COMP%] {width:100%!important}@keyframes _ngcontent-%COMP%_fade-in-out{0%{opacity:0}
3to{opacity:1}}@keyframes _ngcontent-%COMP%_upload-icon-res{0%{right:20px}to{right:190px}}.big-smoke[_ngcontent-%COMP%], .big-smoke-3[_ngcontent-%COMP%], .small-smoke-3[_ngcontent-%COMP%], .big-smoke-2[_ngcontent-%COMP%], .small-smoke-2[_ngcontent-%COMP%], .small-smoke[_ngcontent-%COMP%]{width:21px;height:2px;border-radius:4px;right:30px;top:30%;position:absolute;transform:translate(20px,-50%);animation:_ngcontent-%COMP%_smoook .9s infinite;animation-delay:2.5s;opacity:0}.small-smoke[_ngcontent-%COMP%]{width:8px;top:35%;animation-delay:2.7s}.big-smoke-2[_ngcontent-%COMP%], .small-smoke-2[_ngcontent-%COMP%]{top:40%;animation-delay:2.9s}.small-smoke-2[_ngcontent-%COMP%]{top:45%;width:8px;animation-delay:3.1s}.big-smoke-3[_ngcontent-%COMP%], .small-smoke-3[_ngcontent-%COMP%]{top:50%;animation-delay:3.3s}.small-smoke-3[_ngcontent-%COMP%]{top:55%;width:8px;animation-delay:3.5s}@keyframes _ngcontent-%COMP%_smoook{0%{opacity:.3}50%{opacity:1}to{opacity:0;right:390px}}.transform-to-check-data[_ngcontent-%COMP%]{transform:translate(50%,-50%) rotate(-40deg);animation:_ngcontent-%COMP%_transform-check 2s ease}@keyframes _ngcontent-%COMP%_transform-check{0%{top:40%;right:50%;width:80px;transform:translate(50%,-50%) rotate(0)}50%{top:40%;transform:translate(50%,-50%) rotate(-40deg)}to{top:40%;right:10%;width:40px;transform-origin:center;transform:translate(50%,-50%) rotate(-40deg)}}.fade-image[_ngcontent-%COMP%]{animation:_ngcontent-%COMP%_transform-check-v2 2s ease}@keyframes _ngcontent-%COMP%_transform-check-v2{0%{opacity:0;top:40%;left:50%;width:80px;transform:translate(50%,-50%)}to{opacity:1;top:40%;left:0%;transform:translate(50%,-50%)}}.step-first-main-detail[_ngcontent-%COMP%]{scrollbar-width:thin}"]}));let t=a;return t})();var _u=[{path:"",component:Kt},{path:ht.Profile.Settings.CreateBookMigrate,loadChildren:()=>import("./chunk-234GTP3A.js").then(t=>t.CreateBookRouting)}];export{_u as migrateRoutes}; 4 5//# debugId=30d35139-7b13-54d2-87df-bca3533ce45e
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.