1"use strict";(self.webpackChunkun_women_grb_front=self.webpackChunkun_women_grb_front||[]).push([[613],{4613:(S,A,r)=>{r.r(A),r.d(A,{LibraryItemListModule:()=>F});var v=r(9808),p=r(3733),_=r(8593),m=r(6157),s=r(5e3);let b=(()=>{class f{}return f.\u0275fac=function(w){return new(w||f)},f.\u0275mod=s.oAB({type:f}),f.\u0275inj=s.cJS({}),f})();var t=r(3075),h=r(7423),g=r(9224),x=r(8966),Z=r(7322),y=r(5245),O=r(7531),k=r(7850),L=r(4107),J=r(4999),N=r(4594);let F=(()=>{class f{}return f.\u0275fac=function(w){return new(w||f)},f.\u0275mod=s.oAB({type:f}),f.\u0275inj=s.cJS({imports:[[v.ez,_._,m.Bz.forChild([{path:"",component:p.an}]),t.UX,k.TU,J.p0,y.Ps,h.ot,g.QW,Z.lN,O.c,L.LD,N.g0,x.Is,b],b]}),f})()},3733:(S,A,r)=>{r.d(A,{an:()=>Vt});var v=r(7850),p=r(4999),_=r(1777),m=r(3075),s=r(520),b=r(8966),t=r(5e3),h=r(7567),g=r(6149),x=r(4280),Z=r(7322),y=r(7531),O=r(4107),k=r(508),L=r(9808),J=r(7423),N=r(5245);function F(i,n){if(1&i&&(t.TgZ(0,"mat-option",11),t._uU(1),t.qZA()),2&i){const e=n.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e.label," ")}}function f(i,n){if(1&i&&(t.TgZ(0,"mat-option",11),t._uU(1),t.qZA()),2&i){const e=n.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e.label," ")}}function q(i,n){if(1&i&&(t.TgZ(0,"mat-option",11),t._uU(1),t.qZA()),2&i){const e=n.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e.label," ")}}function w(i,n){if(1&i&&(t.TgZ(0,"mat-option",11),t._uU(1),t.qZA()),2&i){const e=n.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e.label," ")}}function j(i,n){if(1&i&&(t.TgZ(0,"mat-option",11),t._uU(1),t.qZA()),2&i){const e=n.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e.label," ")}}const B=function(i){return{"bg-success":i}};function H(i,n){if(1&i&&(t.TgZ(0,"div",37)(1,"div",38),t._uU(2),t.qZA()()),2&i){const e=t.oxw();
1t.xp6(1),t.Udp("width",e.progress,"%"),t.Q6J("ngClass",t.VKq(5,B,100===e.progress))("aria-valuenow",e.progress),t.xp6(1),t.hij(" ",e.progress,"")}}function $(i,n){1&i&&t._UZ(0,"span",39)}function z(i,n){1&i&&t._UZ(0,"span",39)}function K(i,n){1&i&&t._UZ(0,"i",40)}function W(i,n){1&i&&t._UZ(0,"i",41)}let V=(()=>{class i{constructor(e,o,a,l,c,T){this.dialogRef=e,this.data=o,this.libraryService=a,this.fb=l,this.localLookupService=c,this.fileStorageService=T,this.form=new m.cw({}),this.loading=!1,this.progress=0}onNoClick(){this.dialogRef.close()}ngOnInit(){this.initForm()}initForm(){var e,o,a,l,c,T,I,P;this.form=this.fb.group({itemId:[null===(e=this.data)||void 0===e?void 0:e.itemId,[]],title:[null===(o=this.data)||void 0===o?void 0:o.title,[]],authorsOrInstitution:[null===(a=this.data)||void 0===a?void 0:a.authorsOrInstitution,[]],resourceType:[this.data?this.resourceTypes.find(C=>{var d,u;return C.id===(null===(u=null===(d=this.data)||void 0===d?void 0:d.resourceType)||void 0===u?void 0:u.id)}):null,[]],year:[null===(l=this.data)||void 0===l?void 0:l.year,[]],topic:[this.data?this.topics.find(C=>{var d,u;return C.id===(null===(u=null===(d=this.data)||void 0===d?void 0:d.topic)||void 0===u?void 0:u.id)}):null,[]],language:[this.data?this.languages.find(C=>{var d,u;return C.id===(null===(u=null===(d=this.data)||void 0===d?void 0:d.language)||void 0===u?void 0:u.id)}):null,[]],collection:[this.data?this.collections.find(C=>{var d,u;return C.id===(null===(u=null===(d=this.data)||void 0===d?void 0:d.collection)||void 0===u?void 0:u.id)}):null,[]],documentFormat:[this.data?this.documentFormats.find(C=>{var d,u;return C.id===(null===(u=null===(d=this.data)||void 0===d?void 0:d.documentFormat)||void 0===u?void 0:u.id)}):null,[]],keywords:[(null===(c=this.data)||void 0===c?void 0:c.keywords)?this.data.keywords.join(", "):null,[]],shortSummary:[null===(T=this.data)||void 0===T?void 0:T.shortSummary,[]],fileDownloadUri:[null===(I=this.data)||void 0===I?void 0:I.fileDownloadUri,[]],links:[(null===(P=this.data)||void 0===P?void 0:P.links)?this.data.links.join(", "):null,[]]}),this.form.updateValueAndValidity(),console.log(this.form.value)}submit(){var e;if(console.log("girdi"),this.data){let o=this.form.value;console.log("Create Library Item Request",o),o.keywords?(console.log(this.form.value.keywords),o.keywords=this.form.value.keywords.split(",").map(a=>a.trim())):o.keywords=[],o.links=o.links?this.form.value.links.split(",").map(a=>a.trim()):[],this.libraryService.update(o,null===(e=this.data)||void 0===e?void 0:e.id).subscribe(a=>{this.libraryItemResult=a,this.dialogRef.close()})}else{let o=this.form.value;console.log(o),o.keywords=o.keywords?this.form.value.keywords.split(",").map(a=>a.trim()):[],o.links=o.links?this.form.value.links.split(",").map(a=>a.trim()):[],console.log("Create Library Item Request",o),this.libraryService.create1(o).subscribe(a=>{this.libraryItemResult=a,this.dialogRef.close()})}}clearForm(){var e;this.form.reset(),this.form.controls.itemId.setValue(null===(e=this.data)||void 0===e?void 0:e.itemId)}fileUploaded(e){console.log(e);let a,o=e.target.files;a=o[0].name,o.length>0&&this.fileStorageService.upload(o[0],"e-library",a).subscribe(c=>{switch(c.type){case s.dt.Sent:case s.dt.ResponseHeader:break;case s.dt.UploadProgress:this.progress=Math.round(c.loaded/c.total*100);break;case s.dt.Response:const T=JSON.parse(c.body);this.form.get("fileDownloadUri").patchValue(T.fileDownloadUri),setTimeout(()=>{this.progress=0},1500)}})}get title(){return this.data?"Edit Library Item":"Create Library Item"}get buttonText(){return this.data?"Update Item":"Add Item"}get resourceTypes(){return this.localLookupService.resourceTypes}get topics(){return this.localLookupService.topics}get languages(){return this.localLookupService.languages}get collections(){return this.localLookupService.collections}get documentFormats(){return this.localLookupService.documentFormats}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(b.so),t.Y36(b.WI),t.Y36(h.nA),t.Y36(m.qu),t.Y36(g.Q),t.Y36(x.W))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-library-item-dialog"]],decls:107,vars:19,consts:[[2,"padding","2rem !important"],[1,"d-flex","justify-content-center"],[1,"form-container"],["autocomplete","on",3,"formGroup","ngSubmit"],[1,"row","formRow"],[1,"col-6"],[1,"col-12"],[1,"form-field"],["matInput","","type","text","formControlName","itemId"],["matInput","","type","text","formControlName","authorsOrInstitution"],["formControlName","resourceType"],[3,"value"],[3,"value",4,"ngFor","ngForOf"],["formControlName","language"],["formControlName","documentFormat"],["matInput","","type","text","formControlName","title"],["matInput","","type","number","formControlName","year"],["formControlName","topic"],["formControlName","collection"],["matInput","","type","text","formControlName","keywords"],["matInput","","type","text","formControlName","shortSummary"],["matInput","","type","text","formControlName","links"],["matInput","","type","text","formControlName","fileDownloadUri"],["class","progress",4,"ngIf"],[3,"click"],["mat-raised-button","","color","primary","type","button"],["type","file",2,"display","none",3,"change"],["uploadFile",""],[1,"w-100","d-flex","justify-content-center","align-items-center"],[1,"edit-buttons","d-flex","justify-content-center","align-items-center"],[1,"d-flex","justify-content-center","align-items-center",3,"click"],["type","button","mat-dialog-close","",1,"d-flex","justify-content-center","align-items-center"],["class","spinner-border spinner-border-sm mr-1",4,"ngIf"],[1,"d-flex","justify-content-center","align-items-center"],["mat-button","","type","submit","cdkFocusInitial","",3,"mat-dialog-close"],["class","fas fa-save text-white",4,"ngIf"],["class","fa-solid fa-pen-to-square text-white",4,"ngIf"],[1,"progress"],["role","progressbar","aria-valuemin","0","aria-valuemax","100",1,"progress-bar",3,"ngClass","aria-valuenow"],[1,"spinner-border","spinner-border-sm","mr-1"],[1,"fas","fa-save","text-white"],[1,"fa-solid","fa-pen-to-square","text-white"]],template:function(e,o){if(1&e){const a=t.EpF();t.TgZ(0,"div",0)(1,"div",1)(2,"h4"),t._uU(3),t.qZA()(),t.TgZ(4,"div",2)(5,"form",3),t.NdJ("ngSubmit",function(){return o.submit()}),t.TgZ(6,"div",4)(7,"div",5)(8,"div",6)(9,"mat-form-field",7)(10,"mat-label"),t._uU(11," Item ID: "),t.qZA(),t._UZ(12,"input",8),t.qZA()(),t.TgZ(13,"div",6)(14,"mat-form-field",7)(15,"mat-label"),t._uU(16," Authors (Institution): "),t.qZA(),t._UZ(17,"input",9),t.qZA()(),t.TgZ(18,"div",6)(19,"mat-form-field",7)(20,"mat-label"),t._uU(21,"Resource Type: "),t.qZA(),t.TgZ(22,"mat-select",10)(23,"mat-option",11),t._uU(24," Choose "),t.qZA(),t.YNc(25,F,2,2,"mat-option",12),t.qZA()()(),t.TgZ(26,"div",6)(27,"mat-form-field",7)(28,"mat-label"),t._uU(29,"Language: "),t.qZA(),t.TgZ(30,"mat-select",13)(31,"mat-option",11),t._uU(32," Choose "),t.qZA(),t.YNc(33,f,2,2,"mat-option",12),t.qZA()()(),t.TgZ(34,"div",6)(35,"mat-form-field",7)(36,"mat-label"),t._uU(37,"Document Format: "),t.qZA(),t.TgZ(38,"mat-select",14)(39,"mat-option",11),t._uU(40," Cho
1ose "),t.qZA(),t.YNc(41,q,2,2,"mat-option",12),t.qZA()()()(),t.TgZ(42,"div",5)(43,"mat-form-field",7)(44,"mat-label"),t._uU(45," Title: "),t.qZA(),t._UZ(46,"input",15),t.qZA(),t.TgZ(47,"mat-form-field",7)(48,"mat-label"),t._uU(49," Year: "),t.qZA(),t._UZ(50,"input",16),t.qZA(),t.TgZ(51,"mat-form-field",7)(52,"mat-label"),t._uU(53,"Topic: "),t.qZA(),t.TgZ(54,"mat-select",17)(55,"mat-option",11),t._uU(56," Choose "),t.qZA(),t.YNc(57,w,2,2,"mat-option",12),t.qZA()(),t.TgZ(58,"mat-form-field",7)(59,"mat-label"),t._uU(60,"Collection: "),t.qZA(),t.TgZ(61,"mat-select",18)(62,"mat-option",11),t._uU(63," Choose "),t.qZA(),t.YNc(64,j,2,2,"mat-option",12),t.qZA()(),t.TgZ(65,"mat-form-field",7)(66,"mat-label"),t._uU(67," Keywords (comma-separated): "),t.qZA(),t._UZ(68,"input",19),t.qZA()(),t.TgZ(69,"div",6)(70,"mat-form-field",7)(71,"mat-label"),t._uU(72," Short Summary "),t.qZA(),t._UZ(73,"textarea",20),t.qZA()(),t.TgZ(74,"div",6)(75,"mat-form-field",7)(76,"mat-label"),t._uU(77," Links (comma-separated): "),t.qZA(),t._UZ(78,"textarea",21),t.qZA()(),t.TgZ(79,"div",6)(80,"mat-form-field",7)(81,"mat-label"),t._uU(82," fileDownloadUri: "),t.qZA(),t._UZ(83,"input",22),t.qZA()(),t.YNc(84,H,3,7,"div",23),t.TgZ(85,"div",24),t.NdJ("click",function(){return t.CHM(a),t.MAs(89).click()}),t.TgZ(86,"button",25),t._uU(87,"Choose File"),t.qZA(),t.TgZ(88,"input",26,27),t.NdJ("change",function(c){return o.fileUploaded(c)}),t.qZA()()(),t.TgZ(90,"div",28)(91,"div",29)(92,"a",30),t.NdJ("click",function(){return o.clearForm()}),t._uU(93," Clear Form "),t.TgZ(94,"mat-icon"),t._uU(95,"clear_all"),t.qZA()(),t.TgZ(96,"a",31),t.YNc(97,$,1,0,"span",32),t._uU(98," Cancel "),t.TgZ(99,"mat-icon"),t._uU(100,"cancel"),t.qZA()(),t.TgZ(101,"a",33)(102,"button",34),t.YNc(103,z,1,0,"span",32),t._uU(104),t.YNc(105,K,1,0,"i",35),t.YNc(106,W,1,0,"i",36),t.qZA()()()()()()()}2&e&&(t.xp6(3),t.Oqu(o.title),t.xp6(2),t.Q6J("formGroup",o.form),t.xp6(18),t.Q6J("value",null),t.xp6(2),t.Q6J("ngForOf",o.resourceTypes),t.xp6(6),t.Q6J("value",null),t.xp6(2),t.Q6J("ngForOf",o.languages),t.xp6(6),t.Q6J("value",null),t.xp6(2),t.Q6J("ngForOf",o.documentFormats),t.xp6(14),t.Q6J("value",null),t.xp6(2),t.Q6J("ngForOf",o.topics),t.xp6(5),t.Q6J("value",null),t.xp6(2),t.Q6J("ngForOf",o.collections),t.xp6(20),t.Q6J("ngIf",o.progress>0),t.xp6(13),t.Q6J("ngIf",o.loading),t.xp6(5),t.Q6J("mat-dialog-close",o.libraryItemResult),t.xp6(1),t.Q6J("ngIf",o.loading),t.xp6(1),t.hij(" ",o.buttonText," "),t.xp6(1),t.Q6J("ngIf",!o.data),t.xp6(1),t.Q6J("ngIf",o.data))},directives:[m._Y,m.JL,m.sg,Z.KE,Z.hX,y.Nt,m.Fj,m.JJ,m.u,O.gD,k.ey,L.sg,m.wV,L.O5,L.mk,J.lW,N.Hw,b.ZT],styles:[".form-field[_ngcontent-%COMP%]{width:90%}.formRow[_ngcontent-%COMP%]{display:flex;justify-content:center}.formRow[_ngcontent-%COMP%] .col-12[_ngcontent-%COMP%], .formRow[_ngcontent-%COMP%] .col-6[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center}.colRight[_ngcontent-%COMP%] mat-card[_ngcontent-%COMP%]{border-top-right-radius:25px;border-bottom-right-radius:25px;box-shadow:var(--main-shadow)}.colRight[_ngcontent-%COMP%]{padding:0}.header[_ngcontent-%COMP%]{padding:50px;display:grid;place-items:center}.formButtons[_ngcontent-%COMP%]{width:250px;font-size:large}.edit-buttons[_ngcontent-%COMP%]{width:60%;background-color:#fff;box-shadow:#00000040 0 14px 28px,#00000038 0 10px 10px;height:75px;opacity:.9;border-radius:25px;transition:all .5s ease;padding:25px}.edit-buttons[_ngcontent-%COMP%]:hover{opacity:1}.edit-buttons[_ngcontent-%COMP%] i[_ngcontent-%COMP%], .edit-buttons[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{cursor:pointer;opacity:.8;color:var(--bg-blue-dark)!important}.edit-buttons[_ngcontent-%COMP%] i[_ngcontent-%COMP%]:hover, .edit-buttons[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{opacity:1}.edit-buttons[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{padding:10px}"]}),i})();var G=r(8259),X=r(4937),D=r(9224),tt=r(4594),Q=r(7579),et=r(1135),it=r(9841),ot=r(9718),nt=r(4004),at=r(2722);let rt=(()=>{class i{constructor(e,o){this.table=e,this.renderer=o,this.onDestroy$=new Q.x,this.theadChanged$=new et.X(!0),this.tbodyChanged$=new Q.x,this.theadObserver=new MutationObserver(()=>this.theadChanged$.next(!0)),this.tbodyObserver=new MutationObserver(()=>this.tbodyChanged$.next(!0))}ngOnInit(){this.thead=this.table.nativeElement.querySelector("thead"),this.tbody=this.table.nativeElement.querySelector("tbody"),this.theadObserver.observe(this.thead,{characterData:!0,subtree:!0}),this.tbodyObserver.observe(this.tbody,{childList:!0})}ngAfterViewInit(){(0,it.a)([this.theadChanged$,this.tbodyChanged$]).pipe((0,ot.h)({headRow:this.thead.rows.item(0),bodyRows:this.tbody.rows}),(0,nt.U)(({headRow:e,bodyRows:o})=>({columnNames:[...e.children].map(a=>a.textContent),rows:[...o].map(a=>[...a.children])})),(0,at.R)(this.onDestroy$)).subscribe(({columnNames:e,rows:o})=>
1o.forEach(a=>a.forEach(l=>this.renderer.setAttribute(l,"data-column-name",e[l.cellIndex]))))}ngOnDestroy(){this.theadObserver.disconnect(),this.tbodyObserver.disconnect(),this.onDestroy$.next(!0)}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(t.SBq),t.Y36(t.Qsj))},i.\u0275dir=t.lG2({type:i,selectors:[["","matTableResponsive",""]]}),i})();var lt=r(4662);function st(i,n){if(1&i&&(t.TgZ(0,"mat-option",23),t._uU(1),t.qZA()),2&i){const e=n.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e.label," ")}}function ct(i,n){if(1&i&&(t.TgZ(0,"mat-option",23),t._uU(1),t.qZA()),2&i){const e=n.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e.label," ")}}function mt(i,n){if(1&i&&(t.TgZ(0,"mat-option",23),t._uU(1),t.qZA()),2&i){const e=n.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e.label," ")}}function dt(i,n){if(1&i&&(t.TgZ(0,"mat-option",23),t._uU(1),t.qZA()),2&i){const e=n.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e.label," ")}}function ut(i,n){if(1&i&&(t.TgZ(0,"mat-option",23),t._uU(1),t.qZA()),2&i){const e=n.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e.label," ")}}function pt(i,n){1&i&&(t.TgZ(0,"span",47),t._uU(1," Detayl\u0131 Arama "),t.qZA())}function _t(i,n){1&i&&(t.TgZ(0,"span",47),t._uU(1," Detayl\u0131 Aramay\u0131 Gizle "),t.qZA())}function gt(i,n){1&i&&t._UZ(0,"span",48)}function ft(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"div",5)(1,"div",6),t._UZ(2,"div",7),t.TgZ(3,"div",8)(4,"mat-card",9)(5,"div",10)(6,"h4",11),t._uU(7,"E-K\xfct\xfcphane"),t.qZA()(),t.TgZ(8,"div",12)(9,"form",13),t.NdJ("ngSubmit",function(){return t.CHM(e),t.oxw(2).submit()}),t.TgZ(10,"div",14)(11,"div",15)(12,"mat-form-field",16)(13,"mat-label"),t._uU(14," Ba\u015fl\u0131k: "),t.qZA(),t._UZ(15,"input",17),t.qZA(),t.TgZ(16,"mat-form-field",16)(17,"mat-label"),t._uU(18," Anahtar Kelimeler (virg\xfclle ayr\u0131lm\u0131\u015f): "),t.qZA(),t._UZ(19,"input",18),t.qZA(),t.TgZ(20,"div",19)(21,"mat-form-field",20)(22,"mat-label"),t._uU(23," Yazarlar (Kurum): "),t.qZA(),t._UZ(24,"input",21),t.qZA()(),t.TgZ(25,"div",19)(26,"mat-form-field",20)(27,"mat-label"),t._uU(28,"Kaynak T\xfcr\xfc: "),t.qZA(),t.TgZ(29,"mat-select",22)(30,"mat-option",23),t._uU(31," Se\xe7in "),t.qZA(),t.YNc(32,st,2,2,"mat-option",24),t.qZA()()(),t.TgZ(33,"div",19)(34,"mat-form-field",20)(35,"mat-label"),t._uU(36,"Dil: "),t.qZA(),t.TgZ(37,"mat-select",25)(38,"mat-option",23),t._uU(39," Se\xe7in "),t.qZA(),t.YNc(40,ct,2,2,"mat-option",24),t.qZA()()()(),t.TgZ(41,"div",26)(42,"div",19)(43,"mat-form-field",20)(44,"mat-label"),t._uU(45,"Dosya Format\u0131: "),t.qZA(),t.TgZ(46,"mat-select",27)(47,"mat-option",23),t._uU(48," Se\xe7in "),t.qZA(),t.YNc(49,mt,2,2,"mat-option",24),t.qZA()()(),t.TgZ(50,"div",19)(51,"mat-form-field",20)(52,"mat-label"),t._uU(53," Kaynak Numaras\u0131: "),t.qZA(),t._UZ(54,"input",28),t.qZA()(),t.TgZ(55,"div",29)(56,"div",30)(57,"mat-form-field",31)(58,"mat-label"),t._uU(59," Y\u0131l (en d\xfc\u015f\xfck): "),t.qZA(),t._UZ(60,"input",32),t.qZA()(),t.TgZ(61,"div",30)(62,"mat-form-field",31)(63,"mat-label"),t._uU(64," Y\u0131l (en y\xfcksek): "),t.qZA(),t._UZ(65,"input",33),t.qZA()()(),t.TgZ(66,"mat-form-field",20)(67,"mat-label"),t._uU(68,"Konu: "),t.qZA(),t.TgZ(69,"mat-select",34)(70,"mat-option",23),t._uU(71," Se\xe7in "),t.qZA(),t.YNc(72,dt,2,2,"mat-option",24),t.qZA()(),t.TgZ(73,"mat-form-field",20)(74,"mat-label"),t._uU(75,"Koleksiyon: "),t.qZA(),t.TgZ(76,"mat-select",35)(77,"mat-option",23),t._uU(78," Se\xe7in "),t.qZA(),t.YNc(79,ut,2,2,"mat-option",24),t.qZA()()()(),t.TgZ(80,"mat-card-actions")(81,"div",36)(82,"div",37)(83,"div",38)(84,"button",39),t.NdJ("click",function(){return t.CHM(e),t.oxw(2).clearForm()}),t.TgZ(85,"mat-icon"),t._uU(86,"clear_all"),t.qZA(),t._uU(87," Formu Temizle "),t.qZA()()(),t.TgZ(88,"div",37)(89,"div",40)(90,"button",41),t.NdJ("click",function(){return t.CHM(e),t.oxw(2).advancedSearch()})("click",function(){return t.CHM(e),t.oxw(2).eLibButtonActions()}),t.YNc(91,pt,2,0,"span",42),t.YNc(92,_t,2,0,"ng-template",null,43,t.W1O),t.qZA()()(),t.TgZ(94,"div",19)(95,"div",44)(96,"button",45),t.NdJ("click",function(){return t.CHM(e),t.oxw(2).scrollIntoWiew()}),t.YNc(97,gt,1,0,"span",46),t.TgZ(98,"mat-icon"),t._uU(99,"search"),t.qZA(),t._uU(100),t.qZA()()()()()()()()()()()}if(2&i){const e=t.MAs(93),o=t.oxw(2);t.xp6(9),t.Q6J("formGroup",o.form),t.xp6(21),t.Q6J("value",null),t.xp6(2),t.Q6J("ngForOf",o.resourceTypes),t.xp6(6),t.Q6J("value",null),t.xp6(2),t.Q6J("ngForOf",o.languages),t.xp6(7),t.Q6J("value",null),t.xp6(2),t.Q6J("ngForOf",o.documentFormats),t.xp6(21),t.Q6J("value",null),t.xp6(2),t.Q6J("ngForOf",o.topics),t.xp6(5),t.Q6J("value",null),t.xp6(2),t.Q6J("ngForOf",o.collections),t.xp6(12),t.Q6J("ngIf",o.detail)("ngIfElse",e),t.xp6(5),t.Q6J("disabled",o.loading||!o.form.valid),t.xp6(1),t.Q6J("ngIf",o.loading),t.xp6(3),t.hij(" ",o.searchButtonLabel," ")}}
1function ht(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"mat-toolbar",61)(1,"div",62)(2,"div",63)(3,"button",64),t.NdJ("click",function(){return t.CHM(e),t.oxw(3).createItem()}),t.TgZ(4,"mat-icon"),t._uU(5,"add"),t.qZA(),t._uU(6," \xd6\u011fe Ekle "),t.qZA(),t.TgZ(7,"button",65),t.NdJ("click",function(){return t.CHM(e),t.oxw(3).editItem()}),t.TgZ(8,"mat-icon"),t._uU(9,"edit"),t.qZA(),t._uU(10," \xd6\u011fe D\xfczenle "),t.qZA()(),t.TgZ(11,"div",63)(12,"span"),t._uU(13),t.qZA()(),t.TgZ(14,"div",63)(15,"button",66),t.NdJ("click",function(){return t.CHM(e),t.oxw(3).deleteItem()}),t.TgZ(16,"mat-icon"),t._uU(17,"delete"),t.qZA(),t._uU(18," \xd6\u011feyi Sil "),t.qZA()()()()}if(2&i){const e=t.oxw(3);t.xp6(7),t.Q6J("disabled",!e.expandedElement),t.xp6(6),t.hij("",e.totalSize," \xd6\u011fe Bulundu"),t.xp6(2),t.Q6J("disabled",!e.expandedElement)}}function vt(i,n){if(1&i&&(t.TgZ(0,"th",69),t._uU(1),t.qZA()),2&i){const e=t.oxw().index,o=t.oxw(3);t.xp6(1),t.Oqu(o.columnNames_tr[e])}}function bt(i,n){if(1&i&&(t.TgZ(0,"td",70),t._UZ(1,"div",71),t.ALo(2,"highlight"),t.qZA()),2&i){const e=n.$implicit,o=t.oxw().$implicit,a=t.oxw(3);t.xp6(1),t.s9C("innerHTML",t.xi3(2,1,a.convertFieldValue(e,o),a.getHighlightText(o)),t.oJD)}}function xt(i,n){1&i&&(t.ynx(0,67),t.YNc(1,vt,2,1,"th",68),t.YNc(2,bt,3,4,"td",55),t.BQk()),2&i&&t.Q6J("matColumnDef",n.$implicit)}function Zt(i,n){if(1&i&&(t.TgZ(0,"a",81),t._uU(1),t.qZA()),2&i){const e=n.$implicit;t.Q6J("href",e,t.LSH),t.xp6(1),t.hij(" ",e,"")}}const U=function(i){return[i]};
1function yt(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"td",70)(1,"div",72)(2,"div",73)(3,"div",74)(4,"div",19)(5,"div",75)(6,"div",76)(7,"span"),t._uU(8," Kaynak Numaras\u0131:"),t.qZA(),t._UZ(9,"div",71),t.ALo(10,"highlight"),t.qZA(),t.TgZ(11,"div",76)(12,"span"),t._uU(13,"Ba\u015fl\u0131k:"),t.qZA(),t._UZ(14,"div",71),t.ALo(15,"highlight"),t.qZA(),t.TgZ(16,"div",76)(17,"span"),t._uU(18,"Kaynak Tipi:"),t.qZA(),t._uU(19),t.qZA(),t.TgZ(20,"div",76)(21,"span"),t._uU(22,"Year:"),t.qZA(),t._uU(23),t.qZA(),t.TgZ(24,"div",76)(25,"span"),t._uU(26,"Yazarlar(Kurum:"),t.qZA(),t._UZ(27,"div",71),t.ALo(28,"highlight"),t.qZA(),t.TgZ(29,"div",76)(30,"span"),t._uU(31,"Konu:"),t.qZA(),t._uU(32),t.qZA(),t.TgZ(33,"div",76)(34,"span"),t._uU(35,"Dil:"),t.qZA(),t._uU(36),t.qZA(),t.TgZ(37,"div",76)(38,"span"),t._uU(39,"Koleksiyon:"),t.qZA(),t._uU(40),t.qZA(),t.TgZ(41,"div",76)(42,"span"),t._uU(43,"Dosya Format\u0131:"),t.qZA(),t._uU(44),t.qZA(),t.TgZ(45,"div",76)(46,"span"),t._uU(47,"Anahtar Kelime:"),t.qZA(),t._UZ(48,"div",71),t.ALo(49,"highlight"),t.qZA(),t.TgZ(50,"div",77)(51,"span"),t._uU(52,"K\u0131sa \xd6zet:"),t.qZA(),t._UZ(53,"div",71),t.ALo(54,"highlight"),t.qZA(),t.TgZ(55,"div",19)(56,"span"),t._uU(57,"Kaynak Linki:"),t.qZA(),t.YNc(58,Zt,2,2,"a",78),t.qZA()()()(),t.TgZ(59,"div",79)(60,"button",80),t.NdJ("click",function(){const l=t.CHM(e).$implicit;return t.oxw(3).downloadFile(l.id)}),t.TgZ(61,"mat-icon"),t._uU(62,"download"),t.qZA()()()()()()}if(2&i){const e=n.$implicit,o=t.oxw(3);t.uIk("colspan",o.columnNames.length),t.xp6(1),t.Q6J("@detailExpand",e==o.expandedElement?"expanded":"collapsed"),t.xp6(8),t.s9C("innerHTML",t.xi3(10,15,e.itemId,t.VKq(30,U,o.query.itemId)),t.oJD),t.xp6(5),t.s9C("innerHTML",t.xi3(15,18,e.title,t.VKq(32,U,o.query.title)),t.oJD),t.xp6(5),t.hij(" ",null==e.resourceType?null:e.resourceType.label," "),t.xp6(4),t.hij(" ",e.year," "),t.xp6(4),t.s9C("innerHTML",t.xi3(28,21,e.authorsOrInstitution,t.VKq(34,U,o.query.authorsOrInstitution)),t.oJD),t.xp6(5),t.hij(" ",null==e.topic?null:e.topic.label," "),t.xp6(4),t.hij(" ",null==e.language?null:e.language.label," "),t.xp6(4),t.hij(" ",null==e.collection?null:e.collection.label," "),t.xp6(4),t.hij(" ",null==e.documentFormat?null:e.documentFormat.label," "),t.xp6(4),t.s9C("innerHTML",t.xi3(49,24,null==e.keywords?null:e.keywords.join(", "),o.query.keywords),t.oJD),t.xp6(5),t.s9C("innerHTML",t.xi3(54,27,e.shortSummary,o.query.keywords),t.oJD),t.xp6(5),t.Q6J("ngForOf",e.links),t.xp6(2),t.Q6J("disabled",o.downloadDisabled)}}function Tt(i,n){1&i&&t._UZ(0,"tr",82)}function Ct(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"tr",83),t.NdJ("click",function(){const l=t.CHM(e).$implicit,c=t.oxw(3);return c.expandedElement=c.expandedElement===l?null:l}),t.qZA()}if(2&i){const e=n.$implicit,o=t.oxw(3);t.ekj("example-expanded-row",o.expandedElement===e)}}function At(i,n){1&i&&t._UZ(0,"tr",84)}const E=function(i){return{table:i}},Y=function(){return["expandedDetail"]},R=function(){return[5,10,20]};function Lt(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"div",49),t.YNc(1,ht,19,3,"mat-toolbar",50),t.TgZ(2,"div",51)(3,"table",52),t.YNc(4,xt,3,1,"ng-container",53),t.ynx(5,54),t.YNc(6,yt,63,36,"td",55),t.BQk(),t.YNc(7,Tt,1,0,"tr",56),t.YNc(8,Ct,1,2,"tr",57),t.YNc(9,At,1,0,"tr",58),t.qZA(),t.TgZ(10,"mat-paginator",59,60),t.NdJ("page",function(a){return t.CHM(e),t.oxw(2).handlePage(a)}),t.qZA()()()}if(2&i){const e=t.oxw(2);t.Q6J("ngClass",t.VKq(12,E,e.mode===e.modes.VIEWER)),t.xp6(1),t.Q6J("ngIf",e.mode===e.modes.ADMIN),t.xp6(2),t.Q6J("dataSource",e.dataSource),t.xp6(1),t.Q6J("ngForOf",e.fieldNames),t.xp6(3),t.Q6J("matHeaderRowDef",e.fieldNames),t.xp6(1),t.Q6J("matRowDefColumns",e.fieldNames),t.xp6(1),t.Q6J("matRowDefColumns",t.DdM(14,Y)),t.xp6(1),t.Q6J("pageSize",e.pageSize)("pageSizeOptions",t.DdM(15,R))("showFirstLastButtons",!0)("length",e.totalSize)("pageIndex",e.currentPage)}}function It(i,n){1&i&&t._UZ(0,"app-footer")}
1function Ut(i,n){if(1&i&&(t.TgZ(0,"div",1),t.YNc(1,ft,101,16,"div",2),t.YNc(2,Lt,12,16,"div",3),t.YNc(3,It,1,0,"app-footer",4),t.qZA()),2&i){const e=t.oxw();t.xp6(1),t.Q6J("ngIf",e.mode===e.modes.VIEWER),t.xp6(1),t.Q6J("ngIf",e.libraryItems),t.xp6(1),t.Q6J("ngIf",e.mode!==e.modes.ADMIN)}}function qt(i,n){if(1&i&&(t.TgZ(0,"mat-option",23),t._uU(1),t.qZA()),2&i){const e=n.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e.label," ")}}function wt(i,n){if(1&i&&(t.TgZ(0,"mat-option",23),t._uU(1),t.qZA()),2&i){const e=n.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e.label," ")}}function Mt(i,n){if(1&i&&(t.TgZ(0,"mat-option",23),t._uU(1),t.qZA()),2&i){const e=n.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e.label," ")}}function Ot(i,n){if(1&i&&(t.TgZ(0,"mat-option",23),t._uU(1),t.qZA()),2&i){const e=n.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e.label," ")}}function kt(i,n){if(1&i&&(t.TgZ(0,"mat-option",23),t._uU(1),t.qZA()),2&i){const e=n.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e.label," ")}}function Jt(i,n){1&i&&(t.TgZ(0,"span",47),t._uU(1," Advanced Search "),t.qZA())}function Nt(i,n){1&i&&(t.TgZ(0,"span",47),t._uU(1," Hide Advanced Search "),t.qZA())}function St(i,n){1&i&&t._UZ(0,"span",48)}function Ft(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"div",5)(1,"div",6),t._UZ(2,"div",7),t.TgZ(3,"div",8)(4,"mat-card",9)(5,"mat-card-header",86)(6,"h4",87),t._uU(7,"E-Library"),t.qZA()(),t.TgZ(8,"div",12)(9,"form",13),t.NdJ("ngSubmit",function(){return t.CHM(e),t.oxw(2).submit()}),t.TgZ(10,"div",14)(11,"div",15)(12,"mat-form-field",16)(13,"mat-label"),t._uU(14," Title: "),t.qZA(),t._UZ(15,"input",17),t.qZA(),t.TgZ(16,"mat-form-field",16)(17,"mat-label"),t._uU(18," Keywords (comma-separated): "),t.qZA(),t._UZ(19,"input",18),t.qZA(),t.TgZ(20,"div",19)(21,"mat-form-field",20)(22,"mat-label"),t._uU(23," Authors (Institution): "),t.qZA(),t._UZ(24,"input",21),t.qZA()(),t.TgZ(25,"div",19)(26,"mat-form-field",20)(27,"mat-label"),t._uU(28,"Resource Type: "),t.qZA(),t.TgZ(29,"mat-select",22)(30,"mat-option",23),t._uU(31," Choose "),t.qZA(),t.YNc(32,qt,2,2,"mat-option",24),t.qZA()()(),t.TgZ(33,"div",19)(34,"mat-form-field",20)(35,"mat-label"),t._uU(36,"Language: "),t.qZA(),t.TgZ(37,"mat-select",25)(38,"mat-option",23),t._uU(39," Choose "),t.qZA(),t.YNc(40,wt,2,2,"mat-option",24),t.qZA()()()(),t.TgZ(41,"div",26)(42,"div",19)(43,"mat-form-field",20)(44,"mat-label"),t._uU(45,"Document Format: "),t.qZA(),t.TgZ(46,"mat-select",27)(47,"mat-option",23),t._uU(48," Choose "),t.qZA(),t.YNc(49,Mt,2,2,"mat-option",24),t.qZA()()(),t.TgZ(50,"div",19)(51,"mat-form-field",20)(52,"mat-label"),t._uU(53," Item ID: "),t.qZA(),t._UZ(54,"input",28),t.qZA()(),t.TgZ(55,"div",29)(56,"div",30)(57,"mat-form-field",31)(58,"mat-label"),t._uU(59," Year (min): "),t.qZA(),t._UZ(60,"input",32),t.qZA()(),t.TgZ(61,"div",30)(62,"mat-form-field",31)(63,"mat-label"),t._uU(64," Year (max): "),t.qZA(),t._UZ(65,"input",33),t.qZA()()(),t.TgZ(66,"mat-form-field",20)(67,"mat-label"),t._uU(68,"Topic: "),t.qZA(),t.TgZ(69,"mat-select",34)(70,"mat-option",23),t._uU(71," Choose "),t.qZA(),t.YNc(72,Ot,2,2,"mat-option",24),t.qZA()(),t.TgZ(73,"mat-form-field",20)(74,"mat-label"),t._uU(75,"Collection: "),t.qZA(),t.TgZ(76,"mat-select",35)(77,"mat-option",23),t._uU(78," Choose "),t.qZA(),t.YNc(79,kt,2,2,"mat-option",24),t.qZA()()()(),t.TgZ(80,"mat-card-actions")(81,"div",36)(82,"div",37)(83,"div",38)(84,"button",39),t.NdJ("click",function(){return t.CHM(e),t.oxw(2).clearForm()}),t.TgZ(85,"mat-icon"),t._uU(86,"clear_all"),t.qZA(),t._uU(87," Clear Form "),t.qZA()()(),t.TgZ(88,"div",37)(89,"div",40)(90,"button",41),t.NdJ("click",function(){return t.CHM(e),t.oxw(2).advancedSearch()})("click",function(){return t.CHM(e),t.oxw(2).eLibButtonActions()}),t.YNc(91,Jt,2,0,"span",42),t.YNc(92,Nt,2,0,"ng-template",null,43,t.W1O),t.qZA()()(),t.TgZ(94,"div",19)(95,"div",44)(96,"button",45),t.NdJ("click",function(){return t.CHM(e),t.oxw(2).scrollIntoWiew()}),t.YNc(97,St,1,0,"span",46),t.TgZ(98,"mat-icon"),t._uU(99,"search"),t.qZA(),t._uU(100),t.qZA()()()()()()()()()()()}if(2&i){const e=t.MAs(93),o=t.oxw(2);t.xp6(9),t.Q6J("formGroup",o.form),t.xp6(21),t.Q6J("value",null),t.xp6(2),t.Q6J("ngForOf",o.resourceTypes),t.xp6(6),t.Q6J("value",null),t.xp6(2),t.Q6J("ngForOf",o.languages),t.xp6(7),t.Q6J("value",null),t.xp6(2),t.Q6J("ngForOf",o.documentFormats),t.xp6(21),t.Q6J("value",null),t.xp6(2),t.Q6J("ngForOf",o.topics),t.xp6(5),t.Q6J("value",null),t.xp6(2),t.Q6J("ngForOf",o.collections),t.xp6(12),t.Q6J("ngIf",o.detail)("ngIfElse",e),t.xp6(5),t.Q6J("disabled",o.loading||!o.form.valid),t.xp6(1),t.Q6J("ngIf",o.loading),t.xp6(3),t.hij(" ",o.searchButtonLabel," ")}}
1function Dt(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"mat-toolbar",61)(1,"div",62)(2,"div",63)(3,"button",64),t.NdJ("click",function(){return t.CHM(e),t.oxw(3).createItem()}),t.TgZ(4,"mat-icon"),t._uU(5,"add"),t.qZA(),t._uU(6," Add Item "),t.qZA(),t.TgZ(7,"button",65),t.NdJ("click",function(){return t.CHM(e),t.oxw(3).editItem()}),t.TgZ(8,"mat-icon"),t._uU(9,"edit"),t.qZA(),t._uU(10," Edit Item "),t.qZA()(),t.TgZ(11,"div",63)(12,"span"),t._uU(13),t.qZA()(),t.TgZ(14,"div",63)(15,"button",66),t.NdJ("click",function(){return t.CHM(e),t.oxw(3).deleteItem()}),t.TgZ(16,"mat-icon"),t._uU(17,"delete"),t.qZA(),t._uU(18," Remove Item "),t.qZA()()()()}if(2&i){const e=t.oxw(3);t.xp6(7),t.Q6J("disabled",!e.expandedElement),t.xp6(6),t.hij("",e.totalSize," items found"),t.xp6(2),t.Q6J("disabled",!e.expandedElement)}}function Pt(i,n){if(1&i&&(t.TgZ(0,"th",69),t._uU(1),t.qZA()),2&i){const e=t.oxw().index,o=t.oxw(3);t.xp6(1),t.Oqu(o.columnNames[e])}}function Qt(i,n){if(1&i&&(t.TgZ(0,"td",70),t._UZ(1,"div",71),t.ALo(2,"highlight"),t.qZA()),2&i){const e=n.$implicit,o=t.oxw().$implicit,a=t.oxw(3);t.xp6(1),t.s9C("innerHTML",t.xi3(2,1,a.convertFieldValue(e,o),a.getHighlightText(o)),t.oJD)}}function Et(i,n){1&i&&(t.ynx(0,67),t.YNc(1,Pt,2,1,"th",68),t.YNc(2,Qt,3,4,"td",55),t.BQk()),2&i&&t.Q6J("matColumnDef",n.$implicit)}function Yt(i,n){if(1&i&&(t.TgZ(0,"a",81),t._uU(1),t.qZA()),2&i){const e=n.$implicit;t.Q6J("href",e,t.LSH),t.xp6(1),t.hij(" ",e,"")}}function Rt(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"td",70)(1,"div",72)(2,"div",73)(3,"div",74)(4,"div",19)(5,"div",75)(6,"div",76)(7,"span"),t._uU(8,"Item Id:"),t.qZA(),t._UZ(9,"div",71),t.ALo(10,"highlight"),t.qZA(),t.TgZ(11,"div",76)(12,"span"),t._uU(13,"Title:"),t.qZA(),t._UZ(14,"div",71),t.ALo(15,"highlight"),t.qZA(),t.TgZ(16,"div",76)(17,"span"),t._uU(18,"Resource Type:"),t.qZA(),t._uU(19),t.qZA(),t.TgZ(20,"div",76)(21,"span"),t._uU(22,"Year:"),t.qZA(),t._uU(23),t.qZA(),t.TgZ(24,"div",76)(25,"span"),t._uU(26,"Authors(Institution):"),t.qZA(),t._UZ(27,"div",71),t.ALo(28,"highlight"),t.qZA(),t.TgZ(29,"div",76)(30,"span"),t._uU(31,"Topic:"),t.qZA(),t._uU(32),t.qZA(),t.TgZ(33,"div",76)(34,"span"),t._uU(35,"Language:"),t.qZA(),t._uU(36),t.qZA(),t.TgZ(37,"div",76)(38,"span"),t._uU(39,"Collection:"),t.qZA(),t._uU(40),t.qZA(),t.TgZ(41,"div",76)(42,"span"),t._uU(43,"Document Format:"),t.qZA(),t._uU(44),t.qZA(),t.TgZ(45,"div",76)(46,"span"),t._uU(47,"Keywords:"),t.qZA(),t._UZ(48,"div",71),t.ALo(49,"highlight"),t.qZA(),t.TgZ(50,"div",77)(51,"span"),t._uU(52,"Short Summary:"),t.qZA(),t._UZ(53,"div",71),t.ALo(54,"highlight"),t.qZA(),t.TgZ(55,"div",19)(56,"span"),t._uU(57,"Resource's Link:"),t.qZA(),t.YNc(58,Yt,2,2,"a",78),t.qZA()()()(),t.TgZ(59,"div",79)(60,"button",80),t.NdJ("click",function(){const l=t.CHM(e).$implicit;return t.oxw(3).downloadFile(l.id)}),t.TgZ(61,"mat-icon"),t._uU(62,"download"),t.qZA()()()()()()}if(2&i){const e=n.$implicit,o=t.oxw(3);t.uIk("colspan",o.columnNames.length),t.xp6(1),t.Q6J("@detailExpand",e==o.expandedElement?"expanded":"collapsed"),t.xp6(8),t.s9C("innerHTML",t.xi3(10,15,e.itemId,t.VKq(30,U,o.query.itemId)),t.oJD),t.xp6(5),t.s9C("innerHTML",t.xi3(15,18,e.title,t.VKq(32,U,o.query.title)),t.oJD),t.xp6(5),t.hij(" ",null==e.resourceType?null:e.resourceType.label," "),t.xp6(4),t.hij(" ",e.year," "),t.xp6(4),t.s9C("innerHTML",t.xi3(28,21,e.authorsOrInstitution,t.VKq(34,U,o.query.authorsOrInstitution)),t.oJD),t.xp6(5),t.hij(" ",null==e.topic?null:e.topic.label," "),t.xp6(4),t.hij(" ",null==e.language?null:e.language.label," "),t.xp6(4),t.hij(" ",null==e.collection?null:e.collection.label," "),t.xp6(4),t.hij(" ",null==e.documentFormat?null:e.documentFormat.label," "),t.xp6(4),t.s9C("innerHTML",t.xi3(49,24,null==e.keywords?null:e.keywords.join(", "),o.query.keywords),t.oJD),t.xp6(5),t.s9C("innerHTML",t.xi3(54,27,e.shortSummary,o.query.keywords),t.oJD),t.xp6(5),t.Q6J("ngForOf",e.links),t.xp6(2),t.Q6J("disabled",o.downloadDisabled)}}function jt(i,n){1&i&&t._UZ(0,"tr",82)}function Bt(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"tr",83),t.NdJ("click",function(){const l=t.CHM(e).$implicit,c=t.oxw(3);return c.expandedElement=c.expandedElement===l?null:l}),t.qZA()}if(2&i){const e=n.$implicit,o=t.oxw(3);t.ekj("example-expanded-row",o.expandedElement===e)}}function Ht(i,n){1&i&&t._UZ(0,"tr",84)}
1function $t(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"div",49),t.YNc(1,Dt,19,3,"mat-toolbar",50),t.TgZ(2,"div",51)(3,"table",52),t.YNc(4,Et,3,1,"ng-container",53),t.ynx(5,54),t.YNc(6,Rt,63,36,"td",55),t.BQk(),t.YNc(7,jt,1,0,"tr",56),t.YNc(8,Bt,1,2,"tr",57),t.YNc(9,Ht,1,0,"tr",58),t.qZA(),t.TgZ(10,"mat-paginator",59,60),t.NdJ("page",function(a){return t.CHM(e),t.oxw(2).handlePage(a)}),t.qZA()()()}if(2&i){const e=t.oxw(2);t.Q6J("ngClass",t.VKq(12,E,e.mode===e.modes.VIEWER)),t.xp6(1),t.Q6J("ngIf",e.mode===e.modes.ADMIN),t.xp6(2),t.Q6J("dataSource",e.dataSource),t.xp6(1),t.Q6J("ngForOf",e.fieldNames),t.xp6(3),t.Q6J("matHeaderRowDef",e.fieldNames),t.xp6(1),t.Q6J("matRowDefColumns",e.fieldNames),t.xp6(1),t.Q6J("matRowDefColumns",t.DdM(14,Y)),t.xp6(1),t.Q6J("pageSize",e.pageSize)("pageSizeOptions",t.DdM(15,R))("showFirstLastButtons",!0)("length",e.totalSize)("pageIndex",e.currentPage)}}function zt(i,n){1&i&&t._UZ(0,"app-footer")}function Kt(i,n){if(1&i&&(t.TgZ(0,"div",1),t.YNc(1,Ft,101,16,"div",85),t.YNc(2,$t,12,16,"div",3),t.YNc(3,zt,1,0,"app-footer",4),t.qZA()),2&i){const e=t.oxw();
1t.xp6(1),t.Q6J("ngIf",e.mode===e.modes.VIEWER),t.xp6(1),t.Q6J("ngIf",e.libraryItems),t.xp6(1),t.Q6J("ngIf",e.mode!==e.modes.ADMIN)}}let Wt=(()=>{class i{transform(e,o){return o&&Array.from(o).forEach(a=>{var l=new RegExp(a,"gi");e="string"==typeof e&&""!==a?e.replace(l,""):e}),e}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275pipe=t.Yjl({name:"highlight",type:i,pure:!0}),i})();var M=(()=>{return(i=M||(M={})).ADMIN="ADMIN",i.VIEWER="VIEWER",M;var i})();let Vt=(()=>{class i{constructor(e,o,a,l,c,T,I){this.libraryService=e,this.fb=o,this.lookupService=a,this.dialog=l,this.localLookupService=c,this.conf=T,this.fileStorageService=I,this.page={},this.query={},this.pageSize=10,this.currentPage=0,this.totalSize=0,this.fieldNames=["title","resourceType","year","authorsOrInstitution","topic","collection"],this.columnNames=["Title","Resource Type","Year","Authors (Institution)","Topic","Collection"],this.lookupFields=["resourceType","topic","collection","documentFormat"],this.columnNames_tr=["Ba\u015fl\u0131k","Kaynak T\xfcr\xfc","Y\u0131l","Yazarlar(Kurum)","Konu","Koleksiyon"],this.form=new m.cw({}),this.loading=!1,this.detail=!0}ngOnInit(){this.mode||(this.mode=M.VIEWER),this.initLookups(),this.initForm(),this.initTable()}initLookups(){this.lookupService.get(g.W.RESOURCE_TYPE).subscribe(e=>{this.localLookupService.resourceTypes=e}),this.lookupService.get(g.W.TOPIC).subscribe(e=>{this.localLookupService.topics=e}),this.lookupService.get(g.W.LANGUAGE).subscribe(e=>{this.localLookupService.languages=e}),this.lookupService.get(g.W.COLLECTION).subscribe(e=>{this.localLookupService.collections=e}),this.lookupService.get(g.W.DOCUMENT_FORMAT).subscribe(e=>{this.localLookupService.documentFormats=e})}initForm(){this.form=this.fb.group({itemId:[this.query.itemId,[]],title:[this.query.title,[]],authorsOrInstitution:[this.query.authorsOrInstitution,[]],resourceType:[this.query.resourceType,[]],yearMin:[this.query.yearMin,[]],yearMax:[this.query.yearMax,[]],topic:[this.query.topic,[]],language:[this.query.language,[]],collection:[this.query.collection,[]],documentFormat:[this.query.documentFormat,[]],keywords:[this.query.keywords,[]]})}getLibraryItems(){this.libraryService.search({page:this.page,query:this.query}).subscribe(o=>{this.totalSize=o.totalSize||0,this.libraryItems=o.items,this.dataSource=new p.by(this.libraryItems),this.loading=!1})}downloadFile(e){this.libraryService.get1(e).subscribe(o=>{window.open(o.fileDownloadUri)})}handlePage(e){this.currentPage=e.pageIndex,this.pageSize=e.pageSize,this.initTable()}initTable(){this.page={number:this.currentPage+1,limit:this.pageSize},this.getLibraryItems(),this.expandedElement=null}submit(){this.loading=!0,this.query=this.form.value,this.query.keywords=this.query.keywords&&this.query.keywords.length>0?this.form.value.keywords.split(",").map(e=>e.trim()):[],this.currentPage=0,this.pageSize=10,this.initTable()}clearForm(){this.query={},this.initForm()}convertFieldValue(e,o){var a;return this.lookupFields.includes(o)?null===(a=e[o])||void 0===a?void 0:a.label:e[o]}editItem(){this.openDialog(this.expandedElement),this.isEdit=!0}createItem(){this.openDialog(),this.isEdit=!1}deleteItem(){var e,o;confirm("Library item "+(null===(e=this.expandedElement)||void 0===e?void 0:e.itemId)+" will be deleted permanently. Do you want to proceed?")&&this.libraryService._delete(null===(o=this.expandedElement)||void 0===o?void 0:o.id).subscribe(l=>{this.initTable()})}openDialog(e){this.dialog.open(V,{width:"75%",data:e}).afterClosed().subscribe(a=>{this.initTable()})}scrollIntoWiew(){G(".table").show(),document.getElementById("table").scrollIntoView({behavior:"smooth",block:"start",inline:"nearest"})}eLibButtonActions(){var e=document.querySelectorAll(".detailedSearch"),a=(document.getElementById("detailedSearchButton"),document.getElementById("column12"));document.querySelector(".criteria"),e.forEach(c=>c.classList.toggle("none")),null==a||a.classList.toggle("hundredPercent")}advancedSearch(){this.detail=!this.detail}get resourceTypes(){return this.localLookupService.resourceTypes}get topics(){return this.localLookupService.topics}get languages(){return this.localLookupService.languages}get collections(){return this.localLookupService.collections}get documentFormats(){return this.localLookupService.documentFormats}get searchButtonLabel(){const e=Object.keys(this.form.value).some(o=>this.form.value[o]&&""!==this.form.value[o]&&this.form.value[o]!==[]);return"EN"===this.conf.language?e?"Search":"Browse All":e?"Arama":"T\xfcm\xfcn\xfc G\xf6r\xfcnt\xfcle"}getHighlightText(e){var o;const a=e;return"string"==typeof(null===(o=this.form.controls[e])||void 0===o?void 0:o.value)&&this.query&&this.query[a]&&"string"==typeof this.query[a]?Array.isArray(this.query[a])?this.query[a]:[this.query[a]]:[]}get downloadDisabled(){var e,o;return"UN Women"!==(null===(o=null===(e=this.expandedElement)||void 0===e?void 0:e.collection)||void 0===o?void 0:o.label)}get modes(){return M}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(h.nA),t.Y36(m.qu),t.Y36(h.Kr),t.Y36(b.uw),t.Y36(g.Q),t.Y36(X.e),t.Y36(x.W))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-library-items-list"]],viewQuery:function(e,o){if(1&e&&t.Gf(v.NW,5),2&e){let a;t.iGM(a=t.CRH())&&(o.paginator=a.first)}},inputs:{mode:"mode"},decls:2,vars:2,consts:[["style","background-color: #f0f0f0","id","pageWrapper",4,"ngIf"],["id","pageWrapper",2,"background-color","#f0f0f0"],["class","container py-5 px-5 ",4,"ngIf"],["class","container-fluid paddingBottom","id","table",3,"ngClass",4,"ngIf"],[4,"ngIf"],[1,"container","py-5","px-5"],[1,"row","paddingBottom"],[1,"col-lg-4","col-12","col-img"],[1,"col-lg-8","col-12","colRight"],[2,"padding","2rem !important"],[1,"d-flex","justify-content-center","align-items-center"],[2,"color","var(--card-blue-header)","font-size","32px"],[1,"form-container"],["autocomplete","on",3,"formGroup","ngSubmit"],[1,"row","formRow"],["id","column12",1,"col-lg-6","col-12","hundredPercent"],[1,"form-field"],["matInput","","type","text","formControlName","title"],["matInput","","type","text","formControlName","keywords"],[1,"col-12"],[1,"form-field","detailedSearch"],["matInput","","type","text","formControlName","authorsOrInstitution"],["formControlName","resourceType"],[3,"value"],[3,"value",4,"ngFor","ngForOf"],["formControlName","language"],[1,"col-lg-6","col-12"],["formControlName","documentFormat"],["matInput","","type","text","formControlName","itemId"],[1,"row","d-flex","justify-content-between","align-items-center",2,"width","90%"],[1,"col-5","p-0"],[1,"detailedSearch"],["matInput","","type","number","formControlName","yearMin"],["matInput","","type","number","formControlName","yearMax"],["formControlName","topic"],["formControlName","collection"],[1,"row","d-flex","bd-highlight","px-4","justify-content-between","align-items-center","pt-5"],[1,"col-12","col-lg-5"],[1,"me-auto","p-2","bd-highlight","clearButton"],["mat-stroked-button","","color","primary","type","button",1,"formButtons",3,"click"],["id","detailedSearchButton",1,"p-2","bd-highlight","detailedSearchButton"],["mat-raised-button","","color","primary",1,"formButtons",3,"click"],["class","criteria",4,"ngIf","ngIfElse"],["gizle",""],[1,"p-2","bd-highlight","searchButton"],["mat-raised-button","","color","primary","type","submit","id","tableScrollButton",1,"formButtons",3,"disabled","click"],["class","spinner-border spinner-border-sm mr-1",4,"ngIf"],[1,"criteria"],[1,"spinner-border","spinner-border-sm","mr-1"],["
1id","table",1,"container-fluid","paddingBottom",3,"ngClass"],["style","padding: 70px 0px;",4,"ngIf"],["id","eLibTable"],["mat-table","","matTableResponsive","","multiTemplateDataRows","",1,"mat-elevation-z8","w-100",3,"dataSource"],[3,"matColumnDef",4,"ngFor","ngForOf"],["matColumnDef","expandedDetail"],["mat-cell","",4,"matCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","","class","example-element-row",3,"example-expanded-row","click",4,"matRowDef","matRowDefColumns"],["mat-row","","class","example-detail-row",4,"matRowDef","matRowDefColumns"],[2,"margin-bottom","75px",3,"pageSize","pageSizeOptions","showFirstLastButtons","length","pageIndex","page"],["paginator",""],[2,"padding","70px 0px"],[1,"row","w-100","d-flex","align-items-center"],[1,"col-md-4","col-12","d-flex","justify-content-center"],["color","primary","mat-raised-button","",1,"mx-2",3,"click"],["color","primary","mat-raised-button","",1,"mx-2",3,"disabled","click"],["color","warn","mat-raised-button","",3,"disabled","click"],[3,"matColumnDef"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-header-cell",""],["mat-cell",""],[3,"innerHTML"],[1,"example-element-detail"],["id","tableInlineBorder",1,"d-flex"],[1,"row","pb-3","pt-3"],[1,"row"],[1,"col-md-4","col-6","py-3"],[1,"col-8"],["class","link-primary","target","_blank","style","word-wrap: break-word",3,"href",4,"ngFor","ngForOf"],[1,"d-flex","flex-column","h-100","pb-3","pt-3"],["mat-icon-button","","color","primary",3,"disabled","click"],["target","_blank",1,"link-primary",2,"word-wrap","break-word",3,"href"],["mat-header-row",""],["mat-row","",1,"example-element-row",3,"click"],["mat-row","",1,"example-detail-row"],["class","container py-5 px-5",4,"ngIf"],[1,"d-flex","justify-content-center"],[2,"color","var(--card-blue-header)"]],template:function(e,o){1&e&&(t.YNc(0,Ut,4,3,"div",0),t.YNc(1,Kt,4,3,"div",0)),2&e&&(t.Q6J("ngIf","TR"===o.conf.language),t.xp6(1),t.Q6J("ngIf","EN"===o.conf.language))},directives:[L.O5,D.a8,m._Y,m.JL,m.sg,Z.KE,Z.hX,y.Nt,m.Fj,m.JJ,m.u,O.gD,k.ey,L.sg,m.wV,D.hq,J.lW,N.Hw,L.mk,tt.Ye,p.BZ,rt,p.w1,p.fO,p.ge,p.Dz,p.ev,p.as,p.XQ,p.nj,p.Gk,v.NW,lt.c,D.dk],pipes:[Wt],styles:["table[_ngcontent-%COMP%]{width:100%}tr.example-detail-row[_ngcontent-%COMP%]{height:0}tr.example-element-row[_ngcontent-%COMP%]:not(.example-expanded-row):hover{background:whitesmoke;cursor:pointer}@media only screen and (max-width:992px){tr.example-element-row[_ngcontent-%COMP%]:not(.example-expanded-row):hover{background:unset}}tr.example-element-row[_ngcontent-%COMP%]:not(.example-expanded-row):active{background:#efefef}.example-element-row[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{border-bottom-width:0}.example-element-detail[_ngcontent-%COMP%]{overflow:hidden;display:flex}.form-field[_ngcontent-%COMP%]{width:90%}.formRow[_ngcontent-%COMP%]{display:flex;justify-content:center}.formRow[_ngcontent-%COMP%] .col-12[_ngcontent-%COMP%], .formRow[_ngcontent-%COMP%] .col-6[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center}.colRight[_ngcontent-%COMP%] mat-card[_ngcontent-%COMP%]{border-top-right-radius:25px;border-bottom-right-radius:25px;box-shadow:var(--main-shadow)}.colRight[_ngcontent-%COMP%]{padding:0}@media only screen and (max-width:992px){.colRight[_ngcontent-%COMP%] mat-card[_ngcontent-%COMP%]{border-top-right-radius:0;border-bottom-left-radius:25px;box-shadow:var(--main-shadow)}}.header[_ngcontent-%COMP%]{padding:50px;display:grid;place-items:center}.formButtons[_ngcontent-%COMP%]{width:250px;font-size:large}.row[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{color:#00f;font-size:medium}td.mat-cell[_ngcontent-%COMP%]:last-of-type:hover{background-color:#f1f1f1}.row[_ngcontent-%COMP%] .col-4[_ngcontent-%COMP%]{padding:25px 10px}.example-expanded-row[_ngcontent-%COMP%]{background-color:#dedede}#tableInlineBorder[_ngcontent-%COMP%]{padding:0 24px!important;background-color:#f0f0f0;width:100%!important}td.mat-cell[_ngcontent-%COMP%]:last-of-type{padding:0!important}th.mat-header-cell[_ngcontent-%COMP%]{color:#00f!important;font-size:20px}mat-toolbar[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{opacity:.85}mat-toolbar[_ngcontent-%COMP%]{background-color:var(--main-background)}.table[_ngcontent-%COMP%]{display:none}.mat-header-cell[_ngcontent-%COMP%]:nth-child(2) > *[_ngcontent-%COMP%]{width:50%}.mat-card[_ngcontent-%COMP%]{position:relative}.col-img[_ngcontent-%COMP%]{background-size:cover;background-position:27% 50%;background-repeat:no-repeat}@media only screen and (max-width:992px){.col-img[_ngcontent-%COMP%]{background-position:10% 25%;height:275px}}.searchButton[_ngcontent-%COMP%]{width:100%}.searchButton[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{width:100%;padding:2px}mat-card-actions[_ngcontent-%COMP%] .searchButton[_ngcontent-%COMP%] button[_ngcontent-%COMP%], .detailedSearchButton[_ngcontent-%COMP%] button[_ngcontent-%COMP%], .clearButton[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{width:100%}.detailedSearch[_ngcontent-%COMP%]{display:none;animation:opacity .7s ease-out}.detailedSearch.none[_ngcontent-%COMP%]{display:block;animation:opacity .7s ease-out}.hundredPercent[_ngcontent-%COMP%]{width:100%}@media only screen and(max-width:992px){#column12[_ngcontent-%COMP%]{width:100%!important}}.col-12[_ngcontent-%COMP%]{display:block;animation:opacity .3s ease-out}.criteria[_ngcontent-%COMP%]{color:#fff!important}@keyframes opacity{0%{opacity:0}
150%{opacity:0}75%{transform:scale(1.1)}to{opacity:1;transform:scale(1)}}"],data:{animation:[(0,_.X$)("detailExpand",[(0,_.SB)("collapsed",(0,_.oB)({height:"0px",minHeight:"0"})),(0,_.SB)("expanded",(0,_.oB)({height:"*"})),(0,_.eR)("expanded <=> collapsed",(0,_.jt)("225ms cubic-bezier(0.4, 0.0, 0.2, 1)"))])]}}),i})()},4280:(S,A,r)=>{r.d(A,{W:()=>m});var v=r(520),p=r(2340),_=r(5e3);let m=(()=>{class s{constructor(t){this.httpClient=t,this.basePath=p.N.file_uri_base}upload(t,h,g){let x=new FormData;x.append("file",t,t.name);let Z=new v.WM;Z.append("Content-Type","multipart/form-data"),Z.append("Accept","application/json");let y=`${this.basePath}/api/file/upload`;return g?y=`${y}/${h}/${g}`:h&&(y=`${y}/${h}`),this.httpClient.post(y,x,{reportProgress:!0,observe:"events",headers:Z,responseType:"text"})}download(t,h){let g=new v.WM;g.append("Accept","application/json");let x=`${this.basePath}/api/file/download/${t}`;return h&&(x=`${x}/${h}`),this.httpClient.get(x,{headers:g,responseType:"blob",observe:"response"})}}return s.\u0275fac=function(t){return new(t||s)(_.LFG(v.eN))},s.\u0275prov=_.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})()},6149:(S,A,r)=>{r.d(A,{W:()=>_,Q:()=>m});var v=r(5e3),p=r(520),_=(()=>{return(s=_||(_={})).RESOURCE_TYPE="RESOURCE_TYPE",s.TOPIC="TOPIC",s.LANGUAGE="LANGUAGE",s.COLLECTION="COLLECTION",s.DOCUMENT_FORMAT="DOCUMENT_FORMAT",_;var s})();let m=(()=>{class s{constructor(t){this.http=t,this.resourceTypes=[],this.topics=[],this.languages=[],this.collections=[],this.documentFormats=[],this.getCountries().subscribe(h=>{})}getCountries(){return this.http.get("./assets/files/countries.json")}}return s.\u0275fac=function(t){return new(t||s)(v.LFG(p.eN))},s.\u0275prov=v.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})()}}]);
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.