!functiona(s,l,o){functionc(t,e){if(!l[t]){if(!s[t]){varr="function"==typeofrequire&&require;if(!e&&r)returnr(t,!0);if(u)returnu(t,!0);varn=newError("Cannot find module '"+t+"'");thrown.code="MODULE_NOT_FOUND",n}vari=l[t]={exports:{}};s[t][0].call(i.exports,function(e){returnc(s[t][1][e]||e)},i,i.exports,a,s,l,o)}returnl[t].exports}for(varu="function"==typeofrequire&&require,e=0;e<o.length;e++)c(o[e]);returnc}({1:[function(e,t,r){"use strict";t.exports={bindings:{parentCtrl:"<"},controllerAs:"ctrl",controller:[function(){vare=this;console.log(e),e.view=e.parentCtrl.accountLinksService.vid.replace(":","-")}],template:'<div ng-if="ctrl.parentCtrl.tabName==\'personalsettings\'"><img width="20px" ng-src="/discovery/custom/{{ ctrl.view }}/img/information.png" /> {{ \'switchEduID\' | customTranslate | trustHtml }} <a href="https://eduid.ch">https://eduid.ch</a></div>'}},{}],2:[function(e,t,r){"use strict";angular.module("accountModule",["angularLoad"]).component("prmAccountLinksAfter",e("./accountlinks.component.js"))},{"./accountlinks.component.js":1}],3:[function(e,t,r){"use strict";angular.module("customTranslateFilter",[]).filter("customTranslate",["$translate",function(r){returnfunction(e){vart={costWarningScan:{fr:'<b><span class="bigfont" style="font-size:20px">Service payant:</span></b><b> les collaborateurs et les étudiants de l’EPFL peuvent bénéficier de ce service gratuitement, en utilisant le formulaire:</b>',en:'<b><span class="bigfont" style="font-size:20px">Fee-based service:</span></b><b> EPFL employees and students can benefit from this service free of charge by using the form:</b>',de:'<b><span class="bigfont" style="font-size:20px">Kostenpflichtiger Service:</span></b><b> Mitarbeitern und Studenten der EPFL steht dieser Dienst über das Fernleihe-Formular gratis zur Verfügung.</b>',it:'<b><span class="bigfont" style="font-size:20px">Servizio a pagamento:</span></b><b> I dipendenti e gli studenti dell\'EPFL possono usufruire gratuitamente di questo servizio utilizzando il modulo:</b>'},costWarningScanEPFL:{fr:"<b>Service gratuit pour les collaborateurs et les étudiants EPFL.</b>",en:"<b>Free of charge for EPFL staff and students.</b>",de:"<b>Service für Mitarbeiter und Studenten der EPFL kostenlos</b>",it:"<b>Servizio gratuito per i dipendenti e gli studenti dell’EPFL.<b>"},costWarningNetworkLoan:{fr:"<b>Service gratuit en cas de retrait à la Bibliothèque de l’EPFL.</b>",en:"<b>Free of charge if withdrawal at the EPFL Library.</b>",de:"<b>Service bei Abholung in der EPFL-Bibliothek kostenlos.</b>",it:"<b>Servizio gratuito in caso di ritiro alla Biblioteca dell’EPFL</b>"},costWarningPEB:{fr:"<b>Service gratuit pour les collaborateurs et les étudiants de l’EPFL.</b> Avant de passer une commande d’un document physique via le prêt entre bibliothèques, merci de vous assurer que ce document n'est pas disponible dans d’autres bibliothèques du réseau SLSP dans swisscovery.",en:"<b>Free of charge for EPFL staff and students.</b> Before placing an order for a physical document via the interlibrary loan, please make sure that this document is not available in other SLSP network libraries on swisscovery.",de:"<b>Kostenloser Service für Mitarbeiter und Studenten der EPFL.</b> Bevor Sie ein Medium über die Fernleihe bestellen, vergewissern Sie sich bitte zunächst in swisscovery, dass es nicht in einer anderen Bibliothek des SLSP-Netzwerks verfügbar ist.",it:"<b>Servizio gratuito per i dipendenti e gli studenti dell’EPFL.</b> Prima di ordinare un documento cartaceo tramite il prestito interbibliotecario, assicuratevi che questo documento non sia disponibile in altre biblioteche della rete SLSP in swisscovery."},mainTitle:{fr:"Catalogue BEAST",en:"BEAST discovery tool",de:"BEAST Wissensportal",it:"Catalogo BEAST"},subTitle:{fr:"Le point d'accès à toutes les ressources de la Bibliothèque de l'EPFL",en:"The access portal to all the resources of the EPFL Library",de:"Der Zugangspunkt zu allen Ressourcen der EPFL Bibliothek",it:"Il punto d’accesso a tutte le risorse della Biblioteca dell’EPFL"},switchEduID:{fr:"Modifier vos informations personnelles sur",en:"Change your personal data on",de:"Ändern Sie Ihre persönlichen Daten auf",it:"Modifica i tuoi dati personali sul"},illButton:{fr:"Prêt entre bibliothèques (PEB)",en:"Inter Library Loan (ILL)",de:"Fernleihe",it:"Prestito interbibliotecario"}};return["en","fr","it","de"].includes(r.use())?t[e][r.use()]:t[e].fr}}])},{}],4:[function(e,t,r){"use strict";angular.module("trustHtmlFilter",[]).filter("trustHtml",["$sce",function(t){returnfunction(e){returnt.trustAsHtml(e)}}])},{}],5:[function(e,t,r){"use strict";t.exports={active:!0,txt:{fr:'<div class="info-symbol" style="text-align:left">\n <div><p>Le réseau NEBIS a pris fin le 7 décembre 2020 pour être remplacé par un nouveau réseau plus vaste : <a class="md-primoExplore-theme" href="https://slsp.ch/fr">swisscovery</a></p></div>\n </div>',en:'<div class="info-symbol" style="text-align:left">\n <div><p>The NEBIS network ended on December 7, 2020. It has been replaced by <a class="md-primoExplore-theme" href="https://slsp.ch/it">swisscovery</a>: a new and wider network.</p></div>\n </div>',de:'<div class="info-symbol" style="text-align:left">\n <div><p>Das NEBIS-Netzwerk wurde am 07.12.2020 abgeschaltet und durch ein neues, grösseres Netzwerk ersetzt: <a class="md-primoExplore-theme" href="https://slsp.ch/de">swisscovery</a></p></div>\n </div>',it:'<div class="info-symbol" style="text-align:left">\n <div><p>La rete NEBIS è stata sciolta il 7 dicembre 2020 per essere sostituita da una rete piú ampia di biblioteche: <a class="md-primoExplore-theme" href="https://slsp.ch/it">swisscovery</a></p></div>\n </div>'},begin:"2020-01-04T00:00:00Z",end:"2021-03-31T12:00:00Z"}},{}],6:[function(e,t,r){"use strict";angular.module("homepageModule",["angularLoad"]).component("prmSearchBarAfter",e("./searchbar.component.js"))},{"./searchbar.component.js":7}],7:[function(n,e,t){"use strict";e.exports={bindings:{parentCtrl:"<"},template:'<div class="epfl-alert-message" ng-if="ctrl.active" ng-bind-html="ctrl.get_txt() "></div>',controllerAs:"ctrl",controller:["$translate",function(t){varr=this;if(r.alert=n("./alert.js"),!(r.active=!1)===r.alert.active){vare=Date.now();newDate(r.alert.begin)<e&&e<newDate(r.alert.end)&&(r.active=!0)}r.get_txt=function(){vare=["en","fr","it","de"].includes(t.use())?t.use():"en";returnr.active?r.alert.txt[e]:""},r.parentCtrl.showTabsAndScopes=!0}]}},{"./alert.js":5}],8:[function(e,t,r){"use strict";e("./slsp/epfl_custom_slsp.js"),e("./homepage/index.js"),e("./filters/custom_translate.filter.js"),e("./filters/trust_html.filter.js"),e("./account/index.js"),angular.module("viewCustom",["angularLoad","centralCustom","homepageModule","customTranslateFilter","trustHtmlFilter","accountModule"])},{"./account/index.js":2,"./filters/custom_translate.filter.js":3,"./filters/trust_html.filter.js":4,"./homepage/index.js":6,"./slsp/epfl_custom_slsp.js":9}],9:[function(e,t,r){"use strict";varn;(n=angular.module("centralCustom",["angularLoad"])).controller("CourierInfoController",["$filter","$element",function(a,e,t,r,n){vars=this;this.form=e[0].parentElement,this.$doCheck=function(){vare=!1;if(void0!==this.form.children[1].children[1]&&void0!==this.form.children[1].children[1].children[0]?e=this.form.children[1].children[1].children[0]:void0!==this.form.children[1].children[0]&&void0!==this.form.children[1].children[0].children[0]&&(e=this.form.children[1].children[0].children[0]),e&&2==e.children.length||s.hasOwnProperty("currentTypeFeeAlert")&&s.currentTypeFeeAlert!=s.typeFeeAlert()){s.currentTypeFeeAlert=s.typeFeeAlert();vart='<div class="courier-info bar alert-bar"><p>'+s.getFeeAlert()+"</p>";if("costWarningScan"==s.typeFeeAlert()){varr=a("customTranslate")("illButton");if(s.get_peb_button())varn="javascript:(function() {\n for (var elem of document.getElementsByTagName('span')) {\n if (elem.getAttribute('translate') === 'AlmaResourceSharing' &&\n elem.parentNode.className.indexOf('greenbutton') === -1)\n {\n elem.click();\n break;\n }\n };})()";elsen="javascript:(function() {window.location.href = window.location.origin + '/discovery/blankIll?vid="+s.parentCtrl.vid+"'})()";t+='<p><span class="button-confirm md-button md-primoExplore-theme md-ink-ripple" onclick="'+n+'" ">'+r+"</span></p>"}t+='<p><a href="'+this.parentCtrl.$translate.instant("customize.fullview.feesUrl")+'" target="_blank">'+this.parentCtrl.$translate.instant("customize.fullview.feesLinkText")+"</a></p></div>";vari=angular.element(t)[0];2==e.children.length?e.insertBefore(i,e.children[1]):e.children[1].replaceWith(i)}},Object.defineProperty(s.parentCtrl,"form",{configurable:!0,get:function(){vare=this.getFilteredForm(["label","multiLabel"],!1);if(!s.hasOwnProperty("pickupLocationsListOrdered"))for(vart=0;t<e.length;t++)if("pickupInstitution"==e[t].key){e[t].options.sort(function(e,t){varr=["41SLSP_EPF","41SLSP_EPFL"];return(e=r.indexOf(e.value))==(t=r.indexOf(t.value))?0:e<t?1:-1}),s.pickupLocationsListOrdered=!0}returne}}),s.isEPFL=function(){return!!(s.parentCtrl.requestService&&0<s.parentCtrl.requestService._service["link-to-service"].indexOf("institution=41SLSP_EPF"))},s.linkBase="https://slsp.ch/fees",s.typeFeeAlert=function(){return["almaRequest.header","almaRequestOther.header","almaItemRequest.header"].includes(s.parentCtrl.requestHeader)?"costWarningNetworkLoan":["almaDigitization.header","almaDigitizationOther.header","almaItemDigitization.header"].includes(s.parentCtrl.requestHeader)?s.isEPFL()?"costWarningScanEPFL":"costWarningScan":"almaResourceSharing.header"===s.parentCtrl.requestHeader?"costWarningPEB":"costWarningGeneral"},s.getFeeAlert=function(){returna("customTranslate")(s.typeFeeAlert())},s.get_peb_button=function(){for(vare=document.getElementsByTagName("span"),t=0,r=e.length;t<r;t++)if("AlmaResourceSharing"===e[t].getAttribute("translate")&&-1===e[t].parentNode.className.indexOf("greenbutton"))returne[t]},s.click_peb=function(){vare=s.get_peb_button();e?e.click():window.location.href=window.location.origin+"/discovery/blankIll?vid="+s.parentCtrl.vid}}]),n.component("prmRequestAfter",{bindings:{parentCtrl:"<"},controller:"CourierInfoController"}),n.controller("LibInfoController",[function(){vare=this;e.biblinkText="Library",e.biblinkBase="https://slsp.ch/libraries",e.getLibraryUrl=function(){returne.parentCtrl.loc&&"E02"===e.parentCtrl.loc.location.libraryCode?"https://go.epfl.ch/library":e.biblinkBase},e.view=e.parentCtrl.configurationUtil.vid.replace(":","-"),e.getLibrary=function(){returne.parentCtrl.currLoc?e.parentCtrl.currLoc.location.librarycodeTranslation:""}}]),n.component("prmLocationItemsAfter",{bindings:{parentCtrl:"<"},controller:"LibInfoController",controllerAs:"ctrl",template:'<div layout="row" class="LibInfo" layout-align="start center"><span class="md-subhead"><a ng-href="{{ ctrl.getLibraryUrl() }}" target="_blank"><img width="20px" ng-src="/discovery/custom/{{ ctrl.view }}/img/information.png" />{{ ctrl.getLibrary() }}</a></span></div>'}),n.service("userService",["jwtHelper",function(r){this.isGuest=function(){vare=sessionStorage.getItem("primoExploreJwt");if(!e)return!0;vart=r.decodeToken(e);return!("GUEST"!==t.userGroup?t.userName:"")}}]),n.controller("IllBoxController",["$scope","userService",function(e,t){returne.usrNme=t.isGuest(),1!=e.usrNme?angular.element(document.querySelector("primo-explore")).removeClass("logged-out"):angular.element(document.querySelector("primo-explore")).addClass("logged-out")}]),n.component("prmUserAreaExpandableAfter",{bindings:{parentCtrl:"<"},controller:"IllBoxController",template:""}),n.component("prmTopbarAfter",{bindings:{parentCtrl:"<"},template:"<div class=\"main-title\"><h1><a href=\"{{ starturl }}\">{{ 'mainTitle' | customTranslate }}</a></h1><h2>{{ 'subTitle' | customTranslate }}</h2></div>"}),n.controller("AlertMsgController",["$scope",function(e){varr=this;r.getAlert=function(){vare=r.parentCtrl.almaHowToGetitService.reqAlert._htmlMsg,t=angular.element(document.querySelector("primo-explore"));return0<e.length?t.addClass("alert"):t.removeClass("alert")}}]),n.component("almaHowovpAfter",{bindings:{parentCtrl:"<"},controller:"AlertMsgController",template:'<div style="display:none">{{$ctrl.getAlert()}}</div>'})},{}]},{},[8]);