diff --git a/dist/udb3-angular.js b/dist/udb3-angular.js
index f179bdb00..d2f7b4f81 100644
--- a/dist/udb3-angular.js
+++ b/dist/udb3-angular.js
@@ -7057,6 +7057,10 @@ function UdbApi(
exportData.email = email;
}
+ console.log('post data', exportData);
+
+ console.log('url', appConfig.baseUrl + 'events/export/' + format);
+
return $http.post(appConfig.baseUrl + 'events/export/' + format, exportData, defaultApiConfig);
};
@@ -18143,7 +18147,7 @@ function eventExporter(jobLogger, appConfig, udbApi, EventExportJob, $cookies) {
* @return {object}
*/
ex.export = function (format, email, properties, perDay, customizations) {
- var workflowQuery = ' AND workflowStatus:("APPROVED" OR "READY_FOR_VALIDATION")',
+ var workflowQuery = ' AND workflowStatus:("APPROVED" OR "READY_FOR_VALIDATION") AND (sort[availableTo]=asc)',
queryString = '(' + ex.activeExport.query.queryString + ')' + workflowQuery,
selection = ex.activeExport.selection || [],
eventCount = ex.activeExport.eventCount,
@@ -18151,6 +18155,14 @@ function eventExporter(jobLogger, appConfig, udbApi, EventExportJob, $cookies) {
details = null,
user = $cookies.getObject('user');
+ console.log('export arguments', queryString,
+ email,
+ format,
+ properties,
+ perDay,
+ selection,
+ customizations);
+
var jobPromise = udbApi.exportEvents(
queryString,
email,
diff --git a/dist/udb3-angular.min.js b/dist/udb3-angular.min.js
index 1c8ee6f1c..a6973b6a1 100644
--- a/dist/udb3-angular.min.js
+++ b/dist/udb3-angular.min.js
@@ -19,14 +19,14 @@ name:"Tjalleberd",zip:""},{label:"Tjerkgaast",name:"Tjerkgaast",zip:""},{label:"
formatNotValidError:"Het geüpload bestand is geen geldige afbeelding.",extensionsAllowed:"Enkel bestanden met de extenties .jpeg, .gif of .png zijn toegelaten.",sizeError:"Het geüpload bestand is te groot."}},offerStatus:{scheduled:"Gaat door",cancelled:"Geannuleerd",postponed:"Uitgesteld",open:"Open",temporarilyClosed:"Tijdelijk gesloten",permanentlyClosed:"Permanent gesloten"},bookingAvailability:{unavailable:"Volzet of uitverkocht"},calendar:{one_more_days:"Eén of meerdere dagen",or:"of",default_days:"Vaste dagen per week",start_label:"Start",end_label:"Einde",whole_day_label:"Hele dag",start_hour_label:"Beginuur",end_hour_label:"Einduur",add_days:"Dag(en) toevoegen",period:{title:"Start- en einddatum",from:"Van",till:"Tot",alert:"Geef zowel een begin- als einddatum in. De einddatum kan niet voor de begindatum vallen."},openingHours:{permanent_title:"24/24, 7/7",permanent_subtitle:"Elke dag, ieder uur",add_hours:"Uren toevoegen",opening_hours:"Openingsuren",change:"Wijzigen",days:"Dagen",from:"Van",till:"Tot",more_hours:"Meer openingstijden toevoegen",cancel:"Annuleren",save:"Opslaan"}},facilityLabel:{motor:"Voorzieningen voor personen met een motorische beperking",visual:"Voorzieningen voor personen met een visuele beperking",hearing:"Voorzieningen voor personen met een auditieve beperking",other:"Andere voorzieningen",place:"Voorzieningen op deze locatie",mental:"Voorzieningen voor personen met een verstandelijke beperking",neurodivers:"Voorzieningen voor neurodiverse personen"},audience:{entrance:"Toegang",everyone:"Voor iedereen",members:"Enkel voor leden",members_help:"Je item wordt enkel gepubliceerd op kanalen voor verenigingen en hun leden.",education:"Specifiek voor scholen",education_help:"Je item wordt enkel gepubliceerd op cultuureducatieve kanalen zoals cultuurkuur.be. Na het publiceren kan je nog specifieke informatie voor scholen toevoegen."},workflowStatus:{label:"Publicatiestatus",id:"ID",DRAFT:"Niet gepubliceerd",READY_FOR_VALIDATION:"Gepubliceerd",APPROVED:"Online vanaf",REJECTED:"Publicatie afgewezen",DELETED:"Niet gepubliceerd",rules:"Bekijk de regels",rejected_full:"Dit item werd afgewezen voor publicatie."},queryFieldGroup:{what:"Wat",where:"Waar",when:"Wanneer","input-information":"Invoerdersinformatie",translations:"Vertalingen",other:"Andere"},queryFieldLabel:{cdbid:"identificatiecode (CDBID)",offertype:"type (aanbod)",keywords:"label",title:"titel",category_eventtype_name:"type (activiteit)",locationtype:"type (locatie)",category_theme_name:"thema",text:"tekst",city:"gemeente (naam)",zipcode:"postcode",location_id:"locatie (id)",country:"land",location_name:"locatie (naam)",location_labels:"locatie (labels)",category_flandersregion_name:"regio / gemeente",nisRegions:"regio / gemeente",date:"datum",permanent:"permanent",lastupdated:"laatst aangepast",creationdate:"gecreëerd",createdby:"gecreëerd door",availablefrom:"datum beschikbaar",detail_lang:"vertaling",organiser_keywords:"label organisatie",organiser_id:"organisatie (id)",agefrom:"leeftijd",attendance_mode:"aanwezigheidsvorm",price:"prijs",status:"status",booking_availability:"tickets & plaatsen",organiser_label:"organisatie (naam)",category_facility_name:"voorzieningen",category_targetaudience_name:"doelgroep",startdate:"startdatum",enddate:"einddatum",lastupdatedby:"laatst aangepast door",category_publicscope_name:"publieksbereik"},"EVENT-EXPORT":{"QUERY-IS-MISSING":"Een export is pas mogelijk nadat je een zoekopdracht hebt uitgevoerd","TOO-MANY-ITEMS":"Een manuele export met meer dan {{limit}} items is niet mogelijk. Contacteer vragen@uitdatabank.be voor een oplossing op maat."},AANBOD_INVOEREN:"Aanbod invoeren",AANBOD_BEWERKEN:"Aanbod bewerken",AANBOD_MODEREREN:"Aanbod modereren",AANBOD_VERWIJDEREN:"Aanbod verwijderen",AANBOD_HISTORIEK:"Historiek raadplegen",ORGANISATIES_BEHEREN:"Organisaties beheren",GEBRUIKERS_BEHEREN:"Gebruikers beheren",LABELS_BEHEREN:"Labels beheren",VOORZIENINGEN_BEWERKEN:"Voorzieningen bewerken",ORGANISATIES_BEWERKEN:"Organisaties bewerken",PRODUCTIES_AANMAKEN:"Producties aanmaken",FILMS_AANMAKEN:"Films aanmaken","event type missing":'Koos je een type in stap 1?',"timestamp missing":'Koos je een datum in stap 2?',"start or end date missing":'Koos je een begin- en einddatum in stap 2?',"when missing":'Maakte je een keuze in stap 2?',"place missing for event":'Koos je een plaats in stap 3?',"location missing for place":'Koos je een locatie in stap 3?',"title is missing":'Gaf je je aanbod een titel in stap 4?',"age range is missing":'Gaf je je aanbod een leeftijdsgroep in stap 4?',UNIQUE_ORGANIZER_NOTICE:"Om organisaties in de UiTdatabank uniek bij te houden, vragen we elke organisatie een unieke & geldige hyperlink.",OPENING_HOURS_ERROR:{openAndClose:"Vul alle openings- en sluitingstijden in.",dayOfWeek:"Kies minstens één dag in elke rij die je toevoegde.",openIsBeforeClose:"Gelieve een sluitingstijd in te geven die later is dan de openingstijd."},TIME_SPAN_REQUIREMENTS:{timedWhenNotAllDay:"Een eind- en beginuur zijn verplicht wanneer een evenement niet de hele dag duurt.",startBeforeEndDay:"De einddatum kan niet voor de begindatum vallen.",startBeforeEnd:"Het einduur kan niet voor het beginuur vallen.",tooFarInFuture:"De gekozen einddatum en startdatum mogen niet verder dan 10 jaar in de toekomst liggen."},uitpas:{uitpasInfo:{uitpas:"UiTPAS",uitpas_alert:"Dit is een UiTPAS organisator. Selecteer een prijs om specifieke UiTPAS-informatie toe te voegen.",uitpas_info:"Dit is een UiTPAS activiteit.",cantChangePrice:"Voor dit evenement zijn al UiTPAS-tickets verkocht met de bestaande prijsinformatie. Je kan de prijsinformatie niet meer wijzigen.",cantChangeOrganiser:"Voor dit evenement zijn al UiTPAS-tickets verkocht. Je kan de organisatie niet meer wijzigen.",unavailable:"Voor dit evenement zijn al UiTPAS-tickets verkocht. Je kan de organisatie niet meer wijzigen."},cardSystems:{card_systems:"Kaartsystemen",choose:"--Selecteer een verdeelsleutel--",retry:"Opnieuw registreren",already_has_ticketsales:"Voor dit evenement zijn al UiTPAS-tickets verkocht. Je kan de organisatie niet meer wijzigen.",not_found:"Deze activiteit is nog niet gekend bij UiTPAS."}},images:{agreement:"Je staat op het punt (een) afbeelding(en) toe te voegen en openbaar te verspreiden. Je dient daartoe alle geldende auteurs- en portretrechten te respecteren, alsook alle andere toepasselijke wetgeving. Je kan daarvoor aansprakelijk worden gehouden, zoals vastgelegd in de",conditions:"algemene voorwaarden",conditions_url:"https://www.publiq.be/nl/gebruikersovereenkomst-uitdatabank",copyright_info:"Meer informatie over copyright",description:"Beschrijving",description_help:"Maximum 250 karakters",copyright:"Copyright",copyright_help:"Vermeld de naam van de rechtenhoudende fotograaf. Vul alleen de naam van je eigen vereniging of organisatie in als je zelf de rechten bezit (minimum 2 karakters).",cancel:"Annuleren",agree:"Akkoord",upload:{select_image:"Selecteer je foto",choose_file:"Kies bestand",max_filesize:"De maximale grootte van je afbeelding is {{maxFileSize}} en heeft als type .jpeg, .gif of .png",upload:"Opladen"},edit:{title:"Afbeelding info bewerken",description_help:"Een goede beschrijving van je afbeelding wordt gelezen door zoekmachines en gebruikers met een visuele beperking. (max. 250 karakters)",save_error:"Er ging iets mis bij het opslaan van de afbeelding.",update:"Bijwerken"},remove:{title:"Afbeeldingen verwijderen",sure:"Ben je zeker dat je deze afbeelding wil verwijderen?",save_error:"Er ging iets mis bij het verwijderen van de afbeelding."}},organizer:{modal:{title:"Nieuwe organisatie toevoegen",avoid_doubles:"Vermijd dubbel werk",unique_notice:"Om organisaties in de UiTdatabank uniek bij te houden, vragen we elke organisatie een unieke & geldige hyperlink.",website:"Website",alert_warning:"Dit adres is al gebruikt door de organisatie '{{organizerName}}'. Geef een unieke website of",alert_button:"gebruik {{organizerName}} als organisatie",name_help:"De officiële publieke naam van de organisatie.",name_required:"Gelieve een naam in te vullen",name_maxlength:"De naam van de organisatie kan maar 250 karakters bevatten.",add_confirm:'Ben je zeker dat je "{{newOrganizerName}}" wil toevoegen als organisatie? Dubbele invoer van organisaties is niet toegelaten.',doubles:"We vonden deze gelijkaardige items:",select:"Selecteren",your_input:"Jij voerde in:",still_enter:"Toch invoeren",save_error:"Er ging iets fout tijdens het opslaan van je organisatie.",address_error:"Gelieve een geldig adres in te vullen.",contact_error:"Gelieve alle contactinfo correct in te vullen.",close:"Sluiten",save:"Bewaren",label_name:"Naam"},address:{label_street:"Straat en nummer",help_street:"Gelieve straat en nummer in te geven.",help_zip:"Gelieve een postcode in te geven.",validate_zip:"Dit lijkt een ongeldige postcode. Een postcode bestaat uit 4 cijfers en 2 letters, zonder een spatie ertussen.",label_city:"Gemeente",label_residence:"Woonplaats",help_city:"Er was een probleem tijdens het ophalen van de steden.",error_city:"Gelieve een gemeente in te geven.",change:"Wijzigen",zip:"Postcode","delete":"Leegmaken",delete_success:"Adres succesvol verwijderd",delete_error:"Er liep iets fout tijdens het verwijderen van jouw adres"},contact:{title:"Contact",enter_url:"Geef een URL in",enter_email:"Geef een e-mailadres in",enter_phone:'Geef een telefoonnummer in, bv. 011 32 43 54',required:"Gelieve dit veld niet leeg te laten.",valid_url:"Gelieve een geldige url in te vullen.",valid_email:"Gelieve een geldig e-mailadres in te vullen.",valid_phone:"Gelieve een geldig telefoonnummer in te vullen.",cancel:"Annuleren",add:"Toevoegen",add_phone:"Telefoonnummer toevoegen",add_email:"E-mailadres toevoegen",add_url:"Andere website toevoegen"},manage:{edit:"Bewerken","delete":"Verwijderen",overview:"Terug naar overzicht",dashboard:"Terug naar dashboard",name:"Naam",description:"Beschrijving",educational_description:"Beschrijving Cultuurkuur",address:"Adres",website:"Website",phone:"Telefoonnummer",email:"E-mailadres",labels:"Labels",removed:"Deze organisatie is verwijderd."}},duplicate:{title:"Kopiëren en aanpassen",description:"Je staat op het punt een evenement te kopiëren. Kies een tijdstip voor dit evenement.",error:"Er ging iets mis tijdens het aanmaken van een kopie!"},dashboard:{welcome:"Welkom,",no_items:"Je hebt nog geen items toegevoegd.",add_activity:"Een activiteit of locatie toevoegen?",my_activities:"Mijn activiteiten en locaties",my_organizers:"Mijn organisaties",add:"Toevoegen",add_organizer:"Organisatie toevoegen",directive:{no_publish:"Niet gepubliceerd!",online:"Online op",edit:"Bewerken",example:"Voorbeeld","delete":"Verwijderen",expired_event:"Afgelopen evenement"},"delete":{sure:'Ben je zeker dat je "{{name}}" wil verwijderen?',error_location:'De locatie "{{name}}" kan niet verwijderd worden omdat er activiteiten gepland zijn.',error:"Er ging iets fout bij het verwijderen van de activiteit.",cancel:"Annuleren","delete":"Verwijderen"}},entry:{exported_documents:"Geëxporteerde documenten",notifications:"Meldingen",in_progress:"Bezig"},offerTypes:{Concert:"Concert",Theatervoorstelling:"Theatervoorstelling","Lezing of congres":"Lezing of congres",Dansvoorstelling:"Dansvoorstelling",Festival:"Festival",Film:"Film","Sportwedstrijd bekijken":"Sportwedstrijd bekijken","Cursus met open sessies":"Cursus met open sessies",Lessenreeks:"Lessenreeks","Sport en beweging":"Sport en beweging","Kamp of vakantie":"Kamp of vakantie","Begeleide uitstap of rondleiding":"Begeleide rondleiding",Route:"Route","Spel of quiz":"Spel of quiz","Party of fuif":"Party of fuif",Festiviteit:"Festiviteit","Congres of studiedag":"Congres of studiedag","Eet- of drankfestijn":"Eet- of drankfestijn","Thema of pretpark":"Thema of pretpark",Theater:"Theater","Jeugdhuis of jeugdcentrum":"Jeugdhuis of jeugdcentrum","Cultuur- of ontmoetingscentrum":"Cultuur- of ontmoetingscentrum",Discotheek:"Discotheek","Bibliotheek of documentatiecentrum":"Bibliotheek of documentatiecentrum",Bioscoop:"Bioscoop",Horeca:"Horeca","Openbare ruimte":"Openbare ruimte",Tentoonstelling:"Tentoonstelling","Markt, braderie of kermis":"Markt, braderie of kermis","Natuur, park of tuin":"Natuur, park of tuin",Beurs:"Beurs",Monument:"Monument",Opendeurdag:"Opendeurdag","Recreatiedomein of centrum":"Recreatiedomein of centrum","Park of tuin":"Park of tuin","Archeologische Site":"Archeologische Site","School of onderwijscentrum":"School of onderwijscentrum",Sportcentrum:"Sportcentrum",Winkel:"Winkel",Speeltuin:"Speeltuin","Museum of galerij":"Museum of galerij","Zaal of expohal":"Zaal of expohal"},offerThemes:{"Antiek en brocante":"Antiek en brocante",Architectuur:"Architectuur","Audiovisuele kunst":"Audiovisuele kunst",Beeldhouwkunst:"Beeldhouwkunst",Fotografie:"Fotografie",Grafiek:"Grafiek",Installatiekunst:"Installatiekunst",Schilderkunst:"Schilderkunst","Decoratieve kunst":"Decoratieve kunst",Design:"Design",Mode:"Mode","Meerdere kunstvormen":"Meerdere kunstvormen","Ballet en klassieke dans":"Ballet en klassieke dans","Volksdans en werelddans":"Volksdans en werelddans","Stijl en salondansen":"Stijl en salondansen","Moderne dans":"Moderne dans",Erfgoed:"Erfgoed","Actie- en avonturenfilm":"Actie- en avonturenfilm","Animatie en kinderfilms":"Animatie en kinderfilms","Documentaires en reportages":"Documentaires en reportages","Griezelfilm of horror":"Griezelfilm of horror","Historische film":"Historische film",Komedie:"Komedie",Kortfilm:"Kortfilm",Filmmusical:"Filmmusical",Drama:"Drama","Science fiction":"Science fiction",Cinefiel:"Cinefiel",Thriller:"Thriller","Meerdere filmgenres":"Meerdere filmgenres",Geschiedenis:"Geschiedenis","Gezondheid en wellness":"Gezondheid en wellness","Landbouw en platteland":"Landbouw en platteland","Milieu en natuur":"Milieu en natuur",Literatuur:"Literatuur","Poëzie":"Poëzie",Fictie:"Fictie","Non fictie":"Non fictie",Strips:"Strips","Klassieke muziek":"Klassieke muziek","Jazz en blues":"Jazz en blues","Pop en rock":"Pop en rock","Hiphop, r&b en rap":"Hiphop, r&b en rap","Dance muziek":"Dance muziek","Folk en wereldmuziek":"Folk en wereldmuziek",Amusementsmuziek:"Amusementsmuziek","Politiek en maatschappij":"Politiek en maatschappij",Creativiteit:"Creativiteit","Computer en techniek":"Computer en techniek",Opvoeding:"Opvoeding","Persoon en relaties":"Persoon en relaties","Interculturele vorming":"Interculturele vorming","Kunst en kunsteducatie":"Kunst en kunsteducatie","Gezondheid en zorg":"Gezondheid en zorg",Samenleving:"Samenleving","Bal en racketsport":"Bal en racketsport","Atletiek, wandelen en fietsen":"Atletiek, wandelen en fietsen","Zwemmen en watersport":"Zwemmen en watersport","Fitness, gymnastiek, dans en vechtsport":"Fitness, gymnastiek, dans en vechtsport","Outdoor en Adventure sport":"Outdoor en Adventure sport","Lucht en motorsport":"Lucht en motorsport",Volkssporten:"Volkssporten","Omnisport en andere":"Omnisport en andere","Tekst- en muziektheater":"Tekst- en muziektheater","Humor en comedy":"Humor en comedy",Musical:"Musical","Figuren en poppentheater":"Figuren en poppentheater","Opera en operette":"Opera en operette","Mime en bewegingstheater":"Mime en bewegingstheater",Wetenschap:"Wetenschap","Zingeving, filosofie en religie":"Zingeving, filosofie en religie","Thema onbepaald":"Thema onbepaald",Circus:"Circus",Voeding:"Voeding",Economie:"Economie",Avontuur:"Avontuur",Natuur:"Natuur",Sport:"Sport",Technologie:"Technologie",Koken:"Koken",Themakamp:"Themakamp","Taal en communicatie":"Taal"},offerThemesGroups:{Dans:"Dans","Kunst en erfgoed":"Kunst en erfgoed",Muziek:"Muziek",Sport:"Sport",Varia:"Varia"},weekdays:{monday:{label:"Ma",name:"Maandag"},tuesday:{label:"Di",name:"Dinsdag"},wednesday:{label:"Wo",name:"Woensdag"},thursday:{label:"Do",name:"Donderdag"},friday:{label:"Vr",name:"Vrijdag"},saturday:{label:"Za",name:"Zaterdag"},sunday:{label:"Zo",name:"Zondag"}},search:{search:"Zoeken",advanced:"Geavanceerd",label:"Labelen",deselect:"Deselecteren",savedSearches:{savedSearches:"Bewaarde zoekopdrachten",items:{"Door mij ingevoerd":"Door mij ingevoerd"},mySearches:"Mijn zoekopdrachten",title:"Titel",viewResults:"Resultaten bekijken",yourSearch:"Jouw zoekopdracht",save:"Bewaren"},manage:"Beheren",oneResult:"1 resultaat",multipleResults:"{{count}} resultaten",description:"Beschrijving",labels:"Labels",picture:"Afbeelding",what:"Wat",where:"Waar",when:"Wanneer",inputInformation:"Invoer-informatie",noEventsFound:"Geen evenementen gevonden, probeer een andere zoekopdracht.",exportButton:"Activiteiten exporteren",modal:"Je selectie bevat geen activiteiten, probeer een andere zoekopdracht te exporteren.",advancedQueryBuilder:{title:"Geavanceerde zoekopdracht bouwer",header:{info:"Hier kan je complexe zoekopdrachten bouwen. Hulp nodig? Lees ",link:"onze handleiding"},group:"Groep ",include:"Insluiten",exclude:"Uitsluiten",addGroup:"Groep toevoegen",cancel:"Annuleren",search:"Zoeken",syntaxError:'Je query bevat een fout. Op deze pagina vind je meer informatie over hoe je een zoekopdracht kan samenstellen.',invalidField:'{{field}} is geen geldig zoekveld. Op deze pagina vind je meer informatie over hoe je een zoekopdracht kan samenstellen.'}}})}(),function(){"use strict";angular.module("udb.core").constant("udbFrenchTranslations",{BE:"Belgique",NL:"Pays-Bas",ZZ:"Lieu en concertation avec l'école",EN_ADJECTIVE:"Anglais",FR_ADJECTIVE:"Français",DE_ADJECTIVE:"Duitse",NL_ADJECTIVE:"Nederlandse",datepicker:{CURRENT:"Aujourd'hui",CLEAR:"Supprimer",CLOSE:"Fermer"},"=":"égale","><":"entre","+":"égale","!":"n'égale pas","-":"n'égale pas",">":"est plus grand ou égal","<":"est plus petit ou égal",">_DATE":"plus tard que","<_DATE":"plus tôt que","=_DATE":"égale","><_DATE":"entre",choix:{everyone:"tout le monde",members:"membres",education:"éducation",Available:"A lieu",Unavailable:"Annulé",TemporarilyUnavailable:"Reporté",available:"Disponible",unavailable:"Complet",online:"en ligne",offline:"hors ligne",mixed:"mixte (en ligne / hors ligne)",asc:"ascendant",desc:"descendant",today:"aujourd'hui",tomorrow:"demain",thisweekend:"ce week-end",nextweekend:"le week-end prochain",next7days:"les 7 jours suivants",next14days:"les 14 jours suivants",next30days:"les 30 jours suivants",next3months:"les 3 mois suivants",next6months:"les 6 mois suivants",next12months:"les 12 mois suivants",permanent:"permanent",event:"événement",place:"lieu",actor:"acteur",production:"production",nl:"néerlandais",fr:"français",en:"anglais",de:"allemand",AF:"Afghanistan",AX:"Îles Åland",AL:"Albanie",DZ:"Algérie",AS:"Samoa américaines",VI:"Îles Vierges des États-Unis",UM:"Îles mineures éloignées des États-Unis",AD:"Andorre",AO:"Angola",AI:"Anguilla",AQ:"Antarctique",AG:"Antigua-et-Barbuda",AR:"Argentine",AM:"Arménie",AW:"Aruba",AU:"Australie",AZ:"Azerbaïdjan",BS:"Bahamas",BH:"Bahreïn",BD:"Bangladesh",BB:"Barbade",BE:"Belgique",BZ:"Belize",BJ:"Bénin",BM:"Bermudes",BT:"Bhoutan",BO:"Bolivie",BA:"Bosnie-Herzégovine",BW:"Botswana",BV:"Île Bouvet",BR:"Brésil",IO:"Territoire britannique de l'océan Indien",VG:"Îles Vierges britanniques",BN:"Brunei",BG:"Bulgarie",BF:"Burkina Faso",BI:"Burundi",KH:"Cambodge",CA:"Canada",KY:"Îles Caïmans",CF:"République centrafricaine",CL:"Chili",CN:"Chine",CX:"Île Christmas",CC:"Îles Cocos",CO:"Colombie",KM:"Comores",CG:"République du Congo",CD:"République démocratique du Congo",CK:"Îles Cook",CR:"Costa Rica",CU:"Cuba",CY:"Chypre",DK:"Danemark",DJ:"Djibouti",DM:"Dominique",DO:"République dominicaine",DE:"Allemagne",EC:"Équateur",EG:"Égypte",SV:"Salvador",GQ:"Guinée équatoriale",ER:"Érythrée",EE:"Estonie",ET:"Éthiopie",FO:"Îles Féroé",FK:"Malouines",FJ:"Fidji",PH:"Philippines",FI:"Finlande",FR:"France",GF:"Guyane",PF:"Polynésie française",TF:"Terres australes et antarctiques françaises",GA:"Gabon",GM:"Gambie",GE:"Géorgie",GH:"Ghana",GI:"Gibraltar",GD:"Grenade",GR:"Grèce",GL:"Groenland",GP:"Guadeloupe",GU:"Guam",GT:"Guatemala",GG:"Guernesey",GN:"Guinée",GW:"Guinée-Bissau",GY:"Guyana",HT:"Haïti",HM:"Îles Heard-et-MacDonald",IM:"Île de Man",HN:"Honduras",HU:"Hongrie",HK:"Hong Kong",IS:"Islande",IE:"Irlande ",IN:"Inde",ID:"Indonésie",IQ:"Irak",IR:"Iran",IL:"Israël",IT:"Italie",CI:"Côte d'Ivoire",JM:"Jamaïque",JP:"Japon",YE:"Yémen",JE:"Jersey",JO:"Jordanie",CV:"Cap-Vert",CM:"Cameroun",KZ:"Kazakhstan",KE:"Kenya",KG:"Kirghizistan",KI:"Kiribati",KW:"Koweït",HR:"Croatie",LA:"Laos",LS:"Lesotho",LV:"Lettonie",LB:"Liban",LR:"Liberia",LY:"Libye",LI:"Liechtenstein",LT:"Lituanie",LU:"Luxembourg",MO:"Macao",MK:"République de Macédoine",MG:"Madagascar",MW:"Malawi",MV:"Maldives",MY:"Malaisie",ML:"Mali",MT:"Malte",MA:"Maroc",MH:"Îles Marshall",MQ:"Martinique",MR:"Mauritanie",MU:"Maurice",YT:"Mayotte",MX:"Mexique",FM:"Micronésie",MD:"Moldavie",MC:"Monaco",MN:"Mongolie",ME:"Monténégro",MS:"Montserrat",MZ:"Mozambique",MM:"Birmanie",NA:"Namibie",NR:"Nauru",NL:"Pays-Bas",AN:"Antilles néerlandaises",NP:"Népal",NI:"Nicaragua",NC:"Nouvelle-Calédonie",NZ:"Nouvelle-Zélande",NE:"Niger",NG:"Nigeria",NU:"Niue",KP:"Corée du Nord",MP:"Îles Mariannes du Nord",NO:"Norvège",NF:"Île Norfolk",UG:"Ouganda",UA:"Ukraine",UZ:"Ouzbékistan",OM:"Oman",ZZ:"Inconnu",TL:"Timor oriental",AT:"Autriche",PK:"Pakistan",PW:"Palaos",PS:"Palestine",PA:"Panama",PG:"Papouasie-Nouvelle-Guinée",PY:"Paraguay",PE:"Pérou",PN:"Îles Pitcairn",PL:"Pologne",PT:"Portugal",PR:"Porto Rico",QA:"Qatar",RO:"Roumanie",RU:"Russie",RW:"Rwanda",RE:"La Réunion",BL:"Saint-Barthélemy",KN:"Saint-Christophe-et-Niévès",LC:"Sainte-Lucie",PM:"Saint-Pierre-et-Miquelon",VC:"Saint-Vincent-et-les Grenadines",SB:"Salomon",WS:"Samoa",SM:"Saint-Marin",ST:"Sao Tomé-et-Principe",SA:"Arabie saoudite",SN:"Sénégal",RS:"Serbie",CS:"Serbie-et-Monténégro, ",SC:"Seychelles",SL:"Sierra Leone",SG:"Singapour",SH:"Sainte-Hélène, Ascension et Tristan da Cunha",MF:"Saint-Martin",SI:"Slovénie",SK:"Slovaquie",SD:"Soudan",SO:"Somalie",ES:"Espagne",LK:"Sri Lanka",SR:"Suriname",SJ:"Svalbard et ile Jan Mayen",SZ:"Swaziland",SY:"Syrie",TJ:"Tadjikistan",TW:"Taïwan / (République de Chine (Taïwan))",TZ:"Tanzanie",TH:"Thaïlande",TG:"Togo",TK:"Tokelau",TO:"Tonga",TT:"Trinité-et-Tobago",TD:"Tchad",CZ:"Tchéquie",TN:"Tunisie",TR:"Turquie",TM:"Turkménistan",TC:"Îles Turques-et-Caïques",TV:"Tuvalu",UY:"Uruguay",VU:"Vanuatu",VA:"Saint-Siège(État de la Cité du Vatican)",VE:"Venezuela",GB:"Royaume-Uni",AE:"Émirats arabes unis",US:"États-Unis",VN:"Viêt Nam",WF:"Wallis-et-Futuna",EH:"République arabe sahraouie démocratique",BY:"Biélorussie",ZM:"Zambie",ZW:"Zimbabwe",ZA:"Afrique du Sud",GS:"Géorgie du Sud-et-les Îles Sandwich du Sud",KR:"Corée du Sud",SE:"Suède",CH:"Suisse"},property:{name:"Titre",description:"Description",labels:"Labels",calendarSummary:"Aperçu du calendre",image:"Image",videos:"Vidéos",location:"Lieu",address:"Adresse",organizer:"Organisateur",priceInfo:"Information du prix",kansentarief:"Allocataires sociaux",bookingInfo:"Info réservation",contactPoint:"Info contact",status:"État",bookingAvailability:"Billets & places",attendance:"forme de présence",creator:"Auteur","terms.theme":"Thème","terms.eventtype":"Type",created:"Date début",modified:"Date dernière modification",publisher:"Auteur",available:"Disponible",endDate:"Date fin",startDate:"Date départ",calendarType:"Type temps",sameAs:"IDs externes",typicalAgeRange:" ge",language:"Langue",audience:"Accès"},preview:{tabs:{data:"Données",history:"Historique",publication:"Publication"},not_found:"Page introuvable",not_found_help:"Cette page n'a pas pu être trouvée.",loading:"Chargement...",edit:"Modifier",duplicate:"Copier et modifier",change_availability:"Modifier la disponibilité","delete":"Supprimer",title:"Titre",type:"Type",entrance:"Entrée",description:"Description",no_description:"Aucune description",where:"Où",when:"Quand",online:"Online",online_location:"Participation en ligne",online_location_missing:"Pas d'url pour la participation en ligne",labels:"Labels",labels_error:"Le label '{{labelName}}' n'a pas pu être ajouté.",labels_success:"Le label '{{addedLabel}}' a été ajouté avec succès.",organizer:"Organisation",no_organizer:"Pas d'information de l'organisation",price:"Prix",free:"Gratuit",booking_availability:"Billets & places",booking_unavailable:"Complet",booking_available:"Disponible",no_price:"Pas d'information du prix",currency:"euro",age_label:"Adapté à",all_ages:"Tous les âges",no_age:"Pas d'information de l'âge",videos_label:"Vidéos",no_videos:"Aucune vidéo",publiq_url:"Voir sur {{publicationBrand}}",translate:"Traduire",info_lesson_series:"Votre série de cours apparaît dans les agendas UiT jusqu'au premier moment de la cours."},translate:{ready:"Prêt à traduire",translate:"traduire",original:"l'original",edit:"Modifier",translation:"Traduction",description:"Description",title:"Titre",tariff:"Prix",address:"Adresse",street:"Rue et numéro"},labels:{what:"Ajoutez des mots clés courts et spécifiques.",invalid:"Ce label ne semble pas valable. Un label ",chars:"Ne comporte que des lettres ou des chiffres",excluded:"Ne comporte que '-' ou '_' mais ne peut commencer avec ces caractêres",length:"Comporte de 2 à 50 caractères"},calendarSummary:{openinghours:"plusieurs moments",from:"De",till:"à",permanent:"Permanent"},moderate:{infoAlert:'
Bienvenue sur la page de validation. Sur cette page, vous pouvez approuver ou rejeter les événements en tant que validateur décentralisé :
Rejeter. Les événements rejetés ne sont plus publiés sur UiTinVlaanderen ou d\'autres agendas et ne peuvent plus être modifiés par l\'importateur.
Approuver. Les événements approuvés resteront publiés sur UiTinVlaanderen et d\'autres calendriers UiT. Ils ne seront pas soumis à une nouvelle validation.
Vous trouverez des directives pour la validation dans les règles de contenu de la base de données UiTdatabank.',validate:"Valider",approve:"Approuver",approved:"Approuvé",reject:"Rejeter",rejected:"Rejeté",continue_validation:"Continuer la validation"},cultuurkuur:{info:'Cet événement contient de l\'information extra pour les écoles et les enseignants.',subject:"Sujet",target_group:"Public cible",levels:"Adapté à",grades:"degrés d'éducation",edit_link:"Modifier sur cultuurkuur.be",incomplete_help:"Introduisez cet événement sur cultuurkuur.be avec de l'information extra pour les écoles et les enseignants.","continue":"Continuer"},booking:{label:"Réservation",no_booking:"Pas d'information de réservation"},contact:{label:"Contact",or:"ou",no_contact:"Pas d'information du contact"},imageDetail:{label:"Images",alt_image:"Image {{index}}",main_image:"Image principale",no_images:"Pas d'images"},prices:{title:"Ajouter des prix",base:"Tarif de base",target_group:"Public cible",free:"Gratuit",currency:"euro",add_price:"Ajouter prix",add_tarriff:"Ajouter tarif",error:"Il y a eu une erreur dans l'enregistrement du prix.",invalid:"Cette information du prix semble invalide et ne peut pas être enregistrée.",invalid_tip1:"Notez les décimales avec une virgule.",invalid_tip2:"Ne laissez aucune ligne vide, remplissez toujours un public cible et un montant.",invalid_tip3:"Donnez au maximum deux chiffres après la virgule.",close:"Fermer",save:"Sauver"},location:{title:"Ajouter un nouveau lieu",name:"Nom de lieu",name_validation:"Le nom du lieu est un domaine obligatoire.",street:"Rue et numéro",street_validation:"Rue est un domaine obligatoire.",city:"Commune",category:"Catégorie",category_help:"Choisissez la catégorie qui décrit le mieux ce lieu.",category_validation:"Catégorie est un domaine obligatoire.",error:"Il s'est produit une erreur lors de l'enregistrement du lieu.",invalid_street:"Cela semble une adresse invalide. Si vous utilisez des espaces dans l'adresse, vous ne pouvez pas avoir plus de 15 caractères après le dernier espace.",cancel:"Annuler",add:"Ajouter",zip:"Code postal",nlPostalCode_validation:"Code postal est un domaine obligatoire.",invalid_PostalCode:"Il semble que le code postale n'est pas valable. Un code postal comporte 4 chiffres et 2 lettres sans espace."},eventForm:{langWarning:"Attention, vous éditez dans une autre langue: {{language}}. Si ce n'est pas votre intention, contactez-nous à vragen@uitdatabank.be.",step1:{title:"Qu'est-ce que vous voulez ajouter ?",label_event:"Un événement",show_everything:"Montrez tout",or:"ou",location_label:"Un lieu",change:"Modifier",refine:"Affiner",info_lesson_series:"Votre série de cours apparaît dans les agendas UiT jusqu'au premier moment de la cours."},step2:{date_help_event:"L'événement ou l'activité a lieu quand ?",date_help_place:"Cet endroit ou ce lieu est ouvert(e) quand ?"},step3:{title_event:"Où l'événement ou l'activité a-t-il/elle lieu ?",title_place:"Où se trouve cet endroit ou ce lieu ?",choose_city:"Choisissez une commune",choose_city_helper:"p. ex Mons ou 7000",choose_residence:"Choisir le lieu de résidence",choose_residence_helper:"par ex. Groningue ou Amsterdam",placeholder_city:"Commune ou code postal",problem_city:"Il y a eu un problème durant la collection des villes",change:"Modifier",choose_location:"Choisissez un lieu",placeholder_location:"Nom ou adresse",location_not_found:"Lieu non trouvé ?",add_location:"Ajouter un lieu",location_error:"Il y a eu un problème dans la collection des lieux",street:"Rue et numéro",placeholder_street:"Rue de l'église 1",straat_validate:"Rue et numéro sont des domaines obligatoires.",street_validate_long:"Cela semble une adresse invalide. Si vous utilisez des espaces dans l'adresse, vous ne pouvez pas avoir plus de 15 caractères après le dernier espace.",ok:"OK",zip:"Code postal",bookable_event_info_alert:"Les événements dont le lieu est déterminée en consultation ne sont pas publiés sur UiTinVlaanderen ou d'autres chaînes publiques. Votre événement apparaîtra sur cultuurkuur.be",bookable_event_next_button:"Continuer",bookable_event_success_message:"Le lieu est déterminé en consultation avec l'école."},step4:{age:{age_label:"Adapté à","All ages":"De tous âges",Toddlers:"Tout-petits",Preschoolers:"Jeunes enfants",Kids:"Enfants d’âge scolaire",Teenagers:"Adolescents",Youngsters:"Jeunes",Adults:"Adultes",Seniors:"Seniors",Custom:"Autres",from:"De",till:"à",age:"ans",error_max_lower_than_min:"L'âge maximum ne peut être inférieur à l'âge minimum."},basic_data:"Données de base",name_event:"Nom de l'événement",name_place:"Nom du lieu",help_event:'Choisissez un bon titre, p.ex. "Rouler à vélo le long des chapelles", "La Saga de la Licorne".',help_place:'Utilisez la dénomination officielle, p.ex. "Argos, centre pour l\'art et les médias", "Site de l\'abbaye Herkenrode", "Centre culturel De Werf".',help_description:"Vous pouvez ajouter une description détaillée dans l'étape 5.",info_missing:"Vous n'avez pas rempli tous les champs d'informations obligatoires:",save_error:"Une erreur s'est produite lors de l'enregistrement de votre activité. Merci de réessayer un peu plus tard.","continue":"Continuer",doubles_title:"Évitez les doubles emplois",doubles_help:"Nous avons trouvé des éléments similaires. Controlez les éléments importés auparavant.",sure:'Vous êtes sûr que vous voulez ajouter "{{name}}" ?',return_dashboard:"Non, retourner au tableau de bord",
yes_continue:"Oui, procéder l'importation",suggestions:{from:"De",till:"à",permanent:"Permanent"}},step5:{expose_event:"Augmentez la visibilité de votre évènement",expose_place:"Augmentez la visibilité de votre lieu",title:"Titre",description:"Description",add_text:"Ajouter texte",required_200:"Pour attirer un nouveau public, les 200 premier caractères sont les plus importants.",required_still:"Encore",required_signs:"caractères.",required_200_help:"Intégrez le message le plus important dans les 200 premiers caractères. Vous pouvez ensuite ajouter des informations générales.",empty:"Vider",tips:{Concert:"Donnez une description enthousiaste du concert.
Quel(s) artiste(s) se produisent ?
De quel genre s'agit-il ?
Quel album ou œuvre sera présenté ?
",Dansvoorstelling:"Donnez une description enthousiaste du spectacle de danse.
Qui est le chorégraphe ?
Qui sont les danseurs ?
Dans quel style dansent-ils ?
Quel est le thème ou le sujet de la représentation ?
",Festival:"Donnez une description enthousiaste du festival.
Qui ou quoi est au programme ?
Quelle est l'animation (périphérique) ?
",Film:"Donnez une description enthousiaste du cinéma.
Faites une brève description de l'histoire.
Qui est le réalisateur ?
Qui sont les protagonistes ?
Le film a-t-il remporté des prix ?
","Lezing of congres":"Donnez une description enthousiaste de la conférence où congrès
Quels thèmes sont couverts ?
Quels orateurs prennent la parole ?
",Theatervoorstelling:"Donnez une description enthousiaste du théâtre.
Esquissez brièvement l'histoire ou le thème.
Quelle compagnie de théâtre jouera la pièce ?
Quels sont les acteurs qui jouent ?
","Sportwedstrijd bekijken":"Donnez une description enthousiaste de la compétition sportive.
Quelles équipes ou quels participants jouent ?
Dans quelle compétition se déroule la compétition ?
","Markt of braderie":"Donnez une description enthousiaste du marché, foire ou fête foraine
Dans quelles rues a-t-il lieu ?
Quels seront les stands ou les stands de vente ?
Y a-t-il une animation (de bord) ?
",Opendeurdag:"Donnez une description enthousiaste de la journée portes ouvertes. Que pouvez-vous voir ou vivre ?",Beurs:"Donnez une description enthousiaste de la foire. Que pouvez-vous voir, vivre ou acheter ?",Tentoonstelling:"Donnez une description enthousiaste de l'exposition.
Quels sont les artistes qui exposent ?
Quelles collections peuvent être vues ?
Existe-t-il un guide (audio) ou une brochure ?
","Begeleide uitstap of rondleiding":"Donnez une description enthousiaste de la visite guidée.
Qu'y a-t-il à voir ou à vivre le long du parcours ?
Y a-t-il un nombre maximum de participants ?
La visite guidée est-elle organisée en continu ou à des moments précis ?
Y a-t-il des points d'attention particuliers (par exemple, des bottes indiquées) ?
",Lessenreeks:"Donnez une description enthousiaste de la série de cours.
Qu'y apprenez-vous exactement ?
Des connaissances préalables sont-elles nécessaires pour participer ?
Quel est le niveau des cours ?
Recevez-vous un diplôme ou un certificat à la fin ?
","Cursus met open sessies":"Donnez une description enthousiaste du cours avec sessions ouvertes ou workshop.
Qu'y apprenez-vous exactement ?
Des connaissances préalables sont-elles nécessaires pour participer ?
Quel est le niveau des cours ?
Recevez-vous un diplôme ou un certificat à la fin ?
","Kamp of vakantie":"Donnez une description enthousiaste du camp de vacances
Quelles activités pouvez-vous y faire ?
Y a-t-il un thème ?
Est-il avec ou sans nuitées ?
Quelle est l'heure de débutet de fin des camps de jour et les soins sont-ils fournis avant et après ?
",Festiviteit:"Donnez une description enthousiaste de la festivité
Quelles sont les attractions ?
Y a-t-il des activités (périphériques): quiz, concerts, food trucks, marché,... ?
",Route:"Donnez une description enthousiaste de l'itinéraire.
Faites-vous le trajet à pied, en vélo, en bateau,.. ?
Quels sont les arrêts possibles ?
Quelle est la distance ou la durée de l'itinéraire ?
L'itinéraire est-il accompagné, avec un guide, une brochure ou des panneaux indicateurs ?
","Party of fuif":"Donnez une description enthousiaste de la soirée. Quels deejays ou groupes se produisent ?","Eet of drankfestijn":"Donnez une description enthousiaste du festin de nourriture ou de boisson.
Qu'y a-t-il au menu ?
Les recettes seront-elles versées à une organisation caritative ?
Y a-t-il une animation (périphérique) ?
","Spel of quiz":"Donnez une description enthousiaste du quiz ou du jeu.
Sur quels sujets porte le quiz ?
Le jeu a-t-il un thème ?
Y a-t-il quelque chose à gagner ?
Y a-t-il un nombre maximum de participants ?
","Sport en beweging":"Donnez une description enthousiaste de l'activité sportive.
Quel(s) sport(s) pouvez-vous pratiquer ?
Quel matériel est (non) fourni ?
",Monument:"Donnez ici une description saillante du monument. Indiquez également si l'ouverture du monument est limitée (p.ex. seulement des salons)."},description_error:"Il y a eu une erreur dans l'enregistrement de la description.",organizer:"Organisation",add_organizer:"Ajouter l'organisation",choose_organizer:"Choisissez une organisation",organizer_not_found:"L'organisation n'a pas été trouvée ?",add_new_organizer:"Ajouter un nouvel organisateur",organizer_error:"Il y a eu une erreur dans l'enregistrement de l'organisateur.",contact:"Contact & réservation",add_contact:"Ajouter plus de coordonnées",website:"Site web",phone:"Numéro de téléphone","e-mail":"Adresse mail",use_booking:"Utiliser pour la réservation",booking_exposure:"Comment ce lien peut-il apparaître ?",buy_tickets:"Achetez des tickets",reserve_places:"Réservez des places",check_availability:"Controlez la disponibilité",subscribe:"Inscrivez-vous",add_more_contact:"Ajouter plus de coordonnées",contact_error:"Il y a eu une erreur dans l'enregistrement de l'information du contact.",facilities:"Accessibilité",add_facility:"Ajouter des dispositions",facility_inapplicable:"Pas d'application",change:"Modifier",image_help:"Ajoutez une image de sorte que les visiteurs reconnaissent mieux votre activité.",images:"Images",copyright:"Copyright","delete":"Supprimer",main_image:"Créer image principale",add_image:"Ajouter une image",priceInfo:{price_label:"Tarif",add_prices:"Ajouter prix",free:"Gratuit",prices:"Prix",change:"Modifier",currency:"euro"},reservationPeriod:{add_reservation_period:"Ajouter une période de réservation",reservation_period:"Période de réservation",from:"De",till:"à"}},publish:{publish_now:"Publier immédiatement",publish_later:"Publier plus tard",edit_done:"Modification terminée",online_from:"Publié le"},timeTracker:{automatic_saved:"Sauvegardé automatiquement à",hour:"heures"},embargo:{title:"Choisissez une date de publication",help:'A partir de quand l\'activité peut-elle apparaître en ligne ? Attention, vous ne pouvez définir cette date qu\'une seule fois.',error_past:"Une date de publication ne peut pas être antérieure.",error_empty:"Choisissez une date de publication.",cancel:"Annuler",ready:"Prêt à modifier"},imageUpload:{modalTitle:"Ajouter une image",defaultError:"Le fichier sélectionné ne répond pas à nos critères.",noFileSelectedError:"Il n'y a pas de fichier sélectionné",somethingWentWrongError:"Une erreur s'est produite lors de l'enregistrement de l'image.",maxSize:"Le fichier que vous souhaitez télécharger est trop gros. La taille maximale est ",formatNotValidError:"Le fichier téléchargé n'est pas une image valable.",extensionsAllowed:"Seuls les fichiers avec les extensions .jpeg, .gif ou .png sont autorisés.",sizeError:"Le fichier téléchargé est trop grand."}},offerStatus:{scheduled:"A lieu",cancelled:"Annulé",postponed:"Reporté",open:"Ouvert",temporarilyClosed:"Fermé temporairement",permanentlyClosed:"Fermé définitivement"},bookingAvailability:{unavailable:"Complet"},calendar:{one_more_days:"Jours récurrents ou variables",or:"ou",default_days:"Période continue",start_label:"Début",end_label:"Fin",whole_day_label:"Toute la journée",start_hour_label:"Heure de début",end_hour_label:"Heure de fin",add_days:"Ajouter des jours",period:{title:"Date de début et de fin",from:"De",till:"à",alert:"Introduisez la date de début ainsi que la date de fin. La date de fin ne peut pas tomber avant la date de début."},openingHours:{permanent_title:"24/24, 7/7",permanent_subtitle:"Chaque jour, chaque heure",add_hours:"Ajouter des heures",opening_hours:"Heures d'ouverture",change:"Modifier",days:"Jours",from:"De",till:"à",more_hours:"Ajouter plus d'heures d'ouverture",cancel:"Annuler",save:"Sauver"}},facilityLabel:{motor:"Dispositions pour des personnes de motricité réduite",visual:"Dispositions pour des malvoyants",hearing:"Dispositions pour des personnes d'une limitation auditive",other:"Autres dispositions",place:"Dispositions de cette location",mental:"Dispositions pour des personnes handicapées mentales",neurodivers:"Dispositions pour des personnes neurodiverses"},audience:{entrance:"Accès",everyone:"Pour tout le monde",members:"Seulement pour des membres",members_help:"Votre article est seulement publié sur des chaînes pour des associations et leurs membres.",education:"Spécifiquement pour des écoles",education_help:"Votre article est seulement publié sur des chaînes d'éducation culturelle. Après la publication vous pouvez encore ajouter de l'information spécifique pour des écoles."},workflowStatus:{label:"État de publication",id:"ID",DRAFT:"Pas publié",READY_FOR_VALIDATION:"Prêt à être publié",APPROVED:"Publié le",REJECTED:"Publication rejetée",DELETED:"Pas publié",rules:"Regardez les règles",rejected_full:"Cet item a été rejeté."},queryFieldGroup:{what:"Quoi",where:"Où",when:"Quand","input-information":"Information input",translations:"Traductions",other:"Autres"},queryFieldLabel:{cdbid:"code d'identification (CDBID)",offertype:"type (offre)",keywords:"label",title:"titre",category_eventtype_name:"type (activité)",locationtype:"type (location)",category_theme_name:"thème",text:"texte",city:"commune (nom)",zipcode:"code postal",location_id:"location (id)",country:"pays",location_name:"location (nom)",location_labels:"location (labels)",category_flandersregion_name:"région / commune",nisRegions:"région / commune",date:"date",permanent:"permanent",lastupdated:"modifié dernièrement",creationdate:"créé",createdby:"créé par",availablefrom:"disponible le",detail_lang:"traduction",organiser_keywords:"label organisation",organiser_id:"organisation (id)",agefrom:"âge",attendance_mode:"forme de présence",price:"prix",status:"status",booking_availability:"billets & places",organiser_label:"organisation (nom)",category_facility_name:"dispositions",category_targetaudience_name:"public cible",startdate:"date de début",enddate:"date de fin",lastupdatedby:"modifié dernièrement par",category_publicscope_name:"portée de public"},"EVENT-EXPORT":{"QUERY-IS-MISSING":"Une exportation est seulement possible après avoir exécuté une recherche","TOO-MANY-ITEMS":"Une exportation manuelle contenant plus de {{limit}} items n'est pas possible. Contactez vragen@uitdatabank.be pour une solution sur mesure."},AANBOD_INVOEREN:"Importer l'offre",AANBOD_BEWERKEN:"Modifier l'offre",AANBOD_MODEREREN:"Modérer l'offre",AANBOD_VERWIJDEREN:"Supprimer l'offre",AANBOD_HISTORIEK:"Consulter l'historique",ORGANISATIES_BEHEREN:"Gérer les organisations",GEBRUIKERS_BEHEREN:"Gérer les utilisateurs",LABELS_BEHEREN:"Gérer les labels",VOORZIENINGEN_BEWERKEN:"Modifier les dispositions",ORGANISATIES_BEWERKEN:"Modifier les organisations",PRODUCTIES_AANMAKEN:"Gérer les productions",FILMS_AANMAKEN:"Gérer les films","event type missing":'Choisissez un type à l\'étape 1 ?',"timestamp missing":'Avez-vous choisi une date en étape 2 ?',"start or end date missing":'Avez-vous choisi une date de début et de fin en étape 2 ?',"when missing":'Avez-vous fait un choix en étape 2 ?',"place missing for event":'Avez-vous choisi un lieu en étape 3 ?',"location missing for place":'Avez-vous choisi un lieu en étape 3 ?',"title is missing":'Avez-vous choisi une titre en étape 4 ?',"age range is missing":'Avez-vous choisi une tranche d\'âge en étape 4 ?',UNIQUE_ORGANIZER_NOTICE:"Pour préserver à chaque organisation une identité unique dans UiTdatabank, nous demandons à chaque organisation de fournir un hyperlien unique et valide.",OPENING_HOURS_ERROR:{openAndClose:"Introduisez toutes les heures d'ouverture et de fermeture.",dayOfWeek:"Choisissez au moins un jour dans chaque ligne ajoutée.",openIsBeforeClose:"L'heure de fermeture doit être postérieure à l'heure d’ouverture."},TIME_SPAN_REQUIREMENTS:{timedWhenNotAllDay:"L'heure de début et de fin est obligatoire quand un événement ne dure pas toute la journée.",startBeforeEndDay:"La date de fin ne peut pas tomber avant la date de début.",startBeforeEnd:"L'heure de fin ne peut pas tomber avant l'heure de début.",tooFarInFuture:"La date de fin et la date de début choisies ne peuvent pas dépasser 10 ans."},uitpas:{uitpasInfo:{uitpas:"UiTPAS",uitpas_alert:"Ceci est un organisateur UiTPAS. Sélectionnez le prix afin d'ajouter de l'information spécifique concernant UiTPAS.",uitpas_info:"Ceci est une activité UiTPAS.",cantChangePrice:"Pour cet événement des tickets ont été vendus dont l'information du prix existe déjà. Vous ne pouvez plus modifier l'information du prix.",cantChangeOrganiser:"Pour cet événement des tickets UiTPAS ont déjà été vendus. Vous ne pouvez plus modifier l'organisation.",unavailable:"Pour cet événement des tickets UiTPAS ont déjà été vendus. Vous ne pouvez plus modifier l'organisation."},cardSystems:{card_systems:", p.ex. 011 32 43 54',required:"Veuillez compléter ce domaine.",valid_url:"Cette url n'est pas valable.",valid_email:"Cette adresse e-mail n'est pas valable.",valid_phone:"Ce numéro de téléphone n'est pas valable.",cancel:"Annuler",add:"Ajouter",add_phone:"Ajouter un numéro de téléphone",add_email:"Ajouter une adresse mail",add_url:"Ajouter un autre site web"},manage:{edit:"Modifier","delete":"Supprimer",overview:"Retourner à l'aperçu",dashboard:"Retourner au tableau de bord",name:"Nom",description:"Description",educational_description:"Description de Cultuurkuur",address:"Adresse",website:"Site Internet",phone:"Numéro de téléphone",email:"Adresse e-mail",labels:"Labels",removed:"Cette organisation a été supprimée."}},duplicate:{title:"Copier et modifier",description:"Vous êtes sur le point de copier un événement. Choisissez une date pour cet événement.",error:"Il y a eu une erreur dans la création d'une copie !"},dashboard:{welcome:"Bienvenue,",no_items:"Vous n'avez pas encore ajouté d'éléments.",add_activity:"Ajouter une activité ou une location ?",my_activities:"Mes activitées et lieux",my_organizers:"Mes organisations",add:"Ajouter",add_organizer:"Ajouter une organisation",directive:{no_publish:"Pas publié !",online:"En ligne le",edit:"Modifier",example:"Exemple","delete":"Supprimer",expired_event:"Événement terminé"},"delete":{sure:'Vous êtes sûr de vouloir supprimer "{{name}}" ?',error_location:'Le lieu "{{name}}" ne peut pas être supprimée car des activités y ont encore lieu.',error:"Il y a eu une erreur dans la suppression de l'activité.",cancel:"Annuler","delete":"Supprimer"}},entry:{exported_documents:"Documents exportés",notifications:"Notifications",in_progress:"Occupé"},offerTypes:{Concert:"Concert",Theatervoorstelling:"Théâtre","Lezing of congres":"Conférence ou congrès",Dansvoorstelling:"Spectacle de danse",Festival:"Festival","Toeristisch evenement":"Événement touristique",Film:"Cinéma","Sportwedstrijd bekijken":"Assister à une compétition sportive","Cursus met open sessies":"Cours avec sessions ouvertes",Lessenreeks:"Série de cours","Sport en beweging":"Activité sportive","Kamp of vakantie":"Camp de vacances","Begeleide uitstap of rondleiding":"Tour ou excursion guidée",Route:"Itinéraire","Spel of quiz":"Jeu ou quiz","Party of fuif":"Soirée",Festiviteit:"Festivité","Congres of studiedag":"Congrès ou journée d'étude","Eet- of drankfestijn":"Festin de nourriture ou de boisson","Thema of pretpark":"Parc à thème ou parc d'attractions",Theater:"Théâtre","Jeugdhuis of jeugdcentrum":"Maison de jeunes ou centre de jeunesse","Cultuur- of ontmoetingscentrum":"Centre culturel ou centre de réunion",Discotheek:"Discothèque","Bibliotheek of documentatiecentrum":"Bibliothèque ou centre de documentation",Bioscoop:"Cinéma",Horeca:"Horeca","Openbare ruimte":"Espace public",Tentoonstelling:"Exposition","Markt, braderie of kermis":"Marché, foire ou fête foraine","Natuurgebied of park":"Zone naturelle ou parc","Natuur, park of tuin":"Zone naturelle ou parc",Beurs:"Foire",Monument:"Monument",Opendeurdag:"Journée portes ouvertes","Recreatiedomein of centrum":"Centre de loisirs ou centre de récréation","Park of tuin":"Jardin ou parc","Archeologische Site":"Site archéologique","School of onderwijscentrum":"École ou centre éducatif",Sportcentrum:"Centre sportif",Winkel:"Magasin",Speeltuin:"Aire de jeu","Museum of galerij":"Musée ou galerie","Zaal of expohal":"Hall ou salle d'expo"},offerThemes:{"Antiek en brocante":"Antiquités ou brocantes",Architectuur:"Architecture","Audiovisuele kunst":"Arts graphiques",Beeldhouwkunst:"Sculpture",Fotografie:"Photographie",Grafiek:"Art grafique",Installatiekunst:"Installation",Schilderkunst:"Peinture","Decoratieve kunst":"Arts décoratifs",Design:"Design",Mode:"Mode","Meerdere kunstvormen":"Arts pluridisciplinaires","Ballet en klassieke dans":"Ballet et danse classique","Volksdans en werelddans":"Danse folklorique et mondiale","Stijl en salondansen":"Danse de salon et stylée","Moderne dans":"Danse moderne",Erfgoed:"Patrimoine",Avontuur:"Aventure",Natuur:"Nature",Sport:"Sport",Technologie:"La technologie",Koken:"La cuisine","Actie- en avonturenfilm":"Film d'action et d'aventure","Animatie en kinderfilms":"Films animés et films pour enfants","Documentaires en reportages":"Documentaires et reportages","Griezelfilm of horror":"Films d'épouvantes ou orreurs","Historische film":"Films historiques",Komedie:"Comédie",Kortfilm:"Court métrage",Filmmusical:"Comédie musicale",Drama:"Films dramatiques","Science fiction":"Science fiction",Cinefiel:"Cinéphile",Thriller:"Films à suspense","Meerdere filmgenres":"Films de tous genres",Geschiedenis:"Histoire et archéologie","Gezondheid en wellness":"Santé et bien-être","Landbouw en platteland":"Agriculture et campagne","Milieu en natuur":"Environnement et nature",Literatuur:"Littérature",Poezie:"Poésie",Fictie:"Fiction","Non fictie":"Non fiction",Strips:"Bandes dessinées","Klassieke muziek":"Musique classique","Jazz en blues":"Jazz et blues","Pop en rock":"Pop et rock","Hiphop, r&b en rap":"Hiphop, r&b et rap","Dance muziek":"Musique de danse","Folk en wereldmuziek":"Musique folklorique et mondiale",Amusementsmuziek:"Cabaret","Politiek en maatschappij":"Politique et société",Creativiteit:"Créativité","Computer en techniek":"Ordinateurs et technologie",Opvoeding:"Éducation","Persoon en relaties":"Hommes et relations","Interculturele vorming":"Formation interculturelle","Kunst en kunsteducatie":"Arts et formation artistique","Gezondheid en zorg":"Santé et soins",Samenleving:"Vivre en société","Bal en racketsport":"Sports de balles et raquettes","Atletiek, wandelen en fietsen":"Athlétisme, marche et cyclisme","Zwemmen en watersport":"Natation et sports nautiques","Fitness, gymnastiek, dans en vechtsport":"Fitness, gymnastique, danse et arts martiaux","Outdoor en Adventure sport":"Sports de plein air et d'aventure","Lucht en motorsport":"Sports aero et moteurs",Volkssporten:"Sports folkloriques","Omnisport en andere":"Omnisports et autres","Tekst en muziektheater":"Théâtre dramatique et musical","Humor en comedy":"L'humour et la comédie",Musical:"Comédie musicale","Figuren en poppentheater":"Théâtre de marionnettes","Opera en operette":"Opéra et opérette","Mime en bewegingstheater":"Mime et theéâtre de mouvements",Wetenschap:"Sciences","Zingeving, filosofie en religie":"Sens de la vie, philosophie et religion","Thema onbepaald":"Thème non défini",Circus:"Cirque",Voeding:"Nutrition",Economie:"Économie",Themakamp:"Camp thématique","Taal en communicatie":"Langue"},offerThemesGroups:{Dans:"Danse","Kunst en erfgoed":"Art et Patrimoine",Muziek:"Musique",Sport:"Sport",Varia:"Divers"},weekdays:{monday:{label:"lun.",name:"Lundi"},tuesday:{label:"mar.",name:"Mardi"},wednesday:{label:"mer.",name:"Mercredi"},thursday:{label:"jeu.",name:"Jeudi"},friday:{label:"ven.",name:"Vendredi"},saturday:{label:"sam.",name:"Samedi"},sunday:{label:"dim.",name:"Dimanche"}},search:{search:"Chercher",advanced:"Avancé",label:"Mettre un label",deselect:"Annuler la sélection",savedSearches:{savedSearches:"Recherches conservées",items:{"Door mij ingevoerd":"Encodé par moi"},mySearches:"Mes recherches",title:"Titre",viewResults:"Consulter résultats",yourSearch:"Votre recherche",save:"Conserver"},manage:"Gérer",oneResult:"1 résultat",multipleResults:"{{count}} résultats",description:"Description",labels:"Labels",picture:"Image",what:"Quoi",where:"Où",when:"Quand",inputInformation:"Information encodage",noEventsFound:"Aucun événements trouvés, essayez une autre recherche.",exportButton:"Activités d'exportation",modal:"Votre sélection ne contient aucune activité, veuillez essayer d’exporter une autre recherche.",advancedQueryBuilder:{title:"Moteur de recherche avancée",header:{info:"Ici vous pouvez effectuer des recherches avancées. Besoin d'aide ? Lisez ",link:"le mode d'emploi"},group:"Groupe ",include:"Inclure",exclude:"Exclure",addGroup:"Ajouter groupe",cancel:"Annuler",search:"Rechercher",syntaxError:'Votre requête contient une erreur. Sur cette page, vous trouverez plus d\'informations sur la manière de rédiger une requête.',invalidField:"{{field}} n'est pas un paramètre valide. Sur cette page, vous trouverez plus d'informations sur la manière de rédiger une requête."}}})}(),function(){"use strict";angular.module("udb.core").constant("udbGermanTranslations",{BE:"Belgien",NL:"Niederlande",ZZ:"Ort in Absprache mit der Schule",EN_ADJECTIVE:"englische",FR_ADJECTIVE:"französische",DE_ADJECTIVE:"deutsche",NL_ADJECTIVE:"niederländische",datepicker:{CURRENT:"Heute",CLEAR:"Löschen",CLOSE:"Schließen"},"=":"ist gleich","><":"zwischen","+":"ist gleich","!":"ist ungleich","-":"ist ungleich",">":"ist größer oder gleich","<":"ist kleiner oder gleich",">_DATE":"später als","<_DATE":"früher als","=_DATE":"ist gleich","><_DATE":"zwischen",choice:{everyone:"alle",members:"Mitglieder",education:"Bildung",Available:"Findet statt",Unavailable:"Abgesagt",TemporarilyUnavailable:"Verlegt",available:"Verfügbar",unavailable:"Voll oder ausverkauft",online:"online",offline:"physisch",mixed:"gemischt (physisch / offline)",asc:"aufsteigend",desc:"absteigend",today:"heute",tomorrow:"morgen",thisweekend:"dieses Wochenende",nextweekend:"nächstes Wochenende",next7days:"die nächsten 7 Tage",next14days:"die nächsten 14 Tage",next30days:"die nächsten 30 Tage",next3months:"die nächsten 3 Monate",next6months:"die nächsten 6 Monate",next12months:"die nächsten 12 Monate",permanent:"permanent",event:"Veranstaltung",place:"Ort",actor:"Schauspieler",production:"Produktion",nl:"Niederländisch",fr:"Französisch",en:"Englisch",de:"Deutsch",AF:"Afghanistan",AX:"Ålandinseln",AL:"Albanien",DZ:"Algerien",AS:"Amerikanisch-Samoa",VI:"Amerikanische Jungferninseln",UM:"Kleinere abgelegene Inseln der Vereinigten Staaten",AD:"Andorra",AO:"Angola",AI:"Anguilla",AQ:"Antarktis",AG:"Antigua und Barbuda",AR:"Argentinien",AM:"Armenien",AW:"Aruba",AU:"Australien",AZ:"Aserbaidschan",BS:"Bahama’s",BH:"Bahrein",BD:"Bangladesch",BB:"Barbados",BE:"Belgien",BZ:"Belize",BJ:"Benin",BM:"Bermuda",BT:"Bhutan",BO:"Bolivien",BA:"Bosnien und Herzegowina",BW:"Botswana",BV:"Bouvetinsel",BR:"Brasilien",IO:"Britisches Territorium im Indischen Ozean",VG:"Britische Jungferninseln",BN:"Brunei",BG:"Bulgarien",BF:"Burkina Faso",BI:"Burundi",KH:"Kambodscha",CA:"Kanada",KY:"Kaimaninseln",CF:"Zentralafrikanische Republik",CL:"Chile",CN:"China",CX:"Weihnachtsinsel",CC:"Kokosinseln",CO:"Kolumbien",KM:"Komoren",CG:"Kongo",CD:"Kongo-Kinshasa",CK:"Cookinseln",CR:"Costa Rica",CU:"Kuba",CY:"Zypern",DK:"Dänemark",DJ:"Dschibuti",DM:"Dominica",DO:"Dominikanische Republik",DE:"Deutschland",EC:"Ecuador",EG:"Ägypten",SV:"El Salvador",GQ:"Äquatorialguinea",ER:"Eritrea",EE:"Estland",ET:"Äthiopien",FO:"Färöer Inseln",FK:"Falklandinseln",FJ:"Fidschi",PH:"Philippinen",FI:"Finnland",FR:"Frankreich",GF:"Französisch-Guayana",PF:"Französisch-Polynesien",TF:"Französische Süd- und Antarktisgebiete",GA:"Gabun",GM:"Gambia",GE:"Georgien",GH:"Ghana",GI:"Gibraltar",GD:"Grenada",GR:"Griechenland",GL:"Grönland",GP:"Guadeloupe",GU:"Guam",GT:"Guatemala",GG:"Guernsey",GN:"Guinea",GW:"Guinea-Bissau",GY:"Guyana",HT:"Haiti",HM:"Heard- und McDonald-Inseln",IM:"Insel Man",HN:"Honduras",HU:"Ungarn",HK:"Hongkong",IS:"Island",IE:"Irland",IN:"Indien",ID:"Indonesien",IQ:"Irak",IR:"Iran",IL:"Israel",IT:"Italien",CI:"Elfenbeinküste",JM:"Jamaika",JP:"Japan",YE:"Jemen",JE:"Jersey",JO:"Jordanien",CV:"Kapverden",CM:"Kamerun",KZ:"Kasachstan",KE:"Kenia",KG:"Kirgisistan",KI:"Kiribati",KW:"Kuwait",HR:"Kroatien",LA:"Laos",LS:"Lesotho",LV:"Lettland",LB:"Libanon",LR:"Liberia",LY:"Libyen",LI:"Liechtenstein",LT:"Litauen",LU:"Luxemburg",MO:"Macau",MK:"Mazedonien",MG:"Madagaskar",MW:"Malawi",MV:"Malediven",MY:"Malaysia",ML:"Mali",MT:"Malta",MA:"Marokko",MH:"Marshallinseln",MQ:"Martinique",MR:"Mauretanien",MU:"Mauritius",YT:"Mayotte",MX:"Mexiko",FM:"Mikronesien",MD:"Moldawien",MC:"Monaco",MN:"Mongolei",ME:"Montenegro",MS:"Montserrat",MZ:"Mosambik",MM:"Myanmar",NA:"Namibien",NR:"Nauru",NL:"Niederlande",AN:"Niederländische Antillen",NP:"Nepal",NI:"Nicaragua",NC:"Neukaledonien",NZ:"Neuseeland",NE:"Niger",NG:"Nigeria",NU:"Niue",KP:"Nordkorea",MP:"Nördliche Marianen",NO:"Norwegen",NF:"Norfolkinsel",UG:"Uganda",UA:"Ukraine",UZ:"Usbekistan",OM:"Oman",ZZ:"Unbekanntes oder ungenaues Territorium",TL:"Osttimor",AT:"Österreich",PK:"Pakistan",PW:"Palau",
PS:"Palestinien",PA:"Panama",PG:"Papua Neuguinea",PY:"Paraguay",PE:"Peru",PN:"Pitcairn",PL:"Polen",PT:"Portugal",PR:"Puerto Rico",QA:"Katar",RO:"Rumänien",RU:"Russland",RW:"Ruanda",RE:"Réunion",BL:"Saint Barthélemy",KN:"St. Kitts und Nevis",LC:"St. Lucia",PM:"St. Pierre und Miquelon",VC:"St. Vincent und Grenadinen",SB:"Salomoninseln",WS:"Samoa",SM:"San Marino",ST:"Sao Tome und Principe",SA:"Saudi-Arabien",SN:"Senegal",RS:"Serbien",CS:"Serbien-Montenegro",SC:"Seychellen",SL:"Sierra Leone",SG:"Singapur",SH:"St. Helena",MF:"Sint Maarten",SI:"Slowenien",SK:"Slowakei",SD:"Sudan",SO:"Somalia",ES:"Spanien",LK:"Sri Lanka",SR:"Suriname",SJ:"Spitzbergen und Jan Mayen",SZ:"Swaziland",SY:"Syrien",TJ:"Tadschikistan",TW:"Taiwan",TZ:"Tansania",TH:"Thailand",TG:"Togo",TK:"Tokelau",TO:"Tonga",TT:"Trinidad und Tobago",TD:"Tschad",CZ:"Tschechien",TN:"Tunesien",TR:"Türkei",TM:"Turkmenistan",TC:"Türkische und Caicos-Inseln",TV:"Tuvalu",UY:"Uruguay",VU:"Vanuatu",VA:"Vatikan",VE:"Venezuela",GB:"Großbritannien",AE:"Vereinigte Arabische Emirate",US:"USA",VN:"Vietnam",WF:"Wallis und Futuna",EH:"Westsahara",BY:"Weißrussland",ZM:"Sambia",ZW:"Simbabwe",ZA:"Südafrika",GS:"Südgeorgien und die Südlichen Sandwichinseln",KR:"Südkorea",SE:"Schweden",CH:"Schweiz"},property:{name:"Titel",description:"Beschreibung",labels:"Labels",calendarSummary:"Kalenderzusammenfassung",image:"Abbildung",location:"Ort",address:"Adresse",organizer:"Organisator",priceInfo:"Preisinformation",kansentarief:"Ermäßigter Tarif",bookingInfo:"Buchungsinfo",contactPoint:"Kontaktinfo",status:"Status",bookingAvailability:"Tickets & Plätze",attendance:"Anwesenheits-Modus",creator:"Autor","terms.theme":"Thema","terms.eventtype":"Typ",created:"Datum erstellt",modified:"Datum letzte Anpassung",publisher:"Autor",available:"Embargodatum",endDate:"Enddatum",startDate:"Startdatum",calendarType:"Zeitart",sameAs:"Externe IDs",typicalAgeRange:"Alter",language:"Sprache",audience:"Zutritt"},preview:{tabs:{data:"Angaben",history:"Verlauf",publication:"Veröffentlichung"},not_found:"Seite nicht gefunden",not_found_help:"Diese Seite konnte nicht gefunden werden.",loading:"Laden...",edit:"Bearbeiten",duplicate:"Kopieren und anpassen",change_availability:"Verfügbarkeit ändern","delete":"Löschen",title:"Titel",type:"Typ",entrance:"Zutritt",description:"Beschreibung",no_description:"Keine Beschreibung",where:"Wo",bookable_event_location_info:"Ort in Absprache mit der Schule.",online:"Online",online_location:"Online-Teilnahme",online_location_missing:"Keine Url für Online-Teilnahme",when:"Wann",labels:"Labels",labels_error:"Das Hinzufügen von Label '{{labelName}}' war nicht möglich.",labels_success:"Das Label '{{addedLabel}}' wurde erfolgreich hinzugefügt.",organizer:"Organisation",no_organizer:"Keine Organisationsinformation",price:"Preis",free:"Kostenlos",currency:"Euro",no_price:"Keine Preisinformation",booking_availability:"Tickets & Plätze",booking_unavailable:"Voll oder ausverkauft",booking_available:"Verfügbar",age_label:"Geeignet für",all_ages:"Alle Altersgruppen",no_age:"Keine Altersinformation",videos_label:"Videos",no_videos:"Keine Videos",publiq_url:"Auf {{publicationBrand}}ansehen",translate:"Übersetzen",info_lesson_series:"Ihre Unterrichtsreihe erscheint bis zum ersten Unterrichtszeitpunkt in UiT-Agenden."},translate:{ready:"Fertig mit übersetzen",translate:"übersetzen",original:"Original",edit:"Bearbeiten",translation:"Übersetzung",description:"Beschreibung",title:"Titel",tariff:"Preistarif",address:"Adresse",street:"Straße und Hausnummer"},labels:{what:"Mit einem Label fügen Sie kurze, konkrete Suchbegriffe hinzu.",invalid:"Dies scheint ein ungültiges Label zu sein. Ein Label",chars:"besteht ausschließlich aus Buchstaben oder Zahlen",excluded:"enthält lediglich '-' und '_', aber darf nicht mit diesen Zeichen anfangen",length:"umfasst 2 bis 50 Zeichen"},calendarSummary:{openinghours:"mehrere Zeiten",from:"Von",till:"bis",permanent:"Permanent"},moderate:{infoAlert:'
Willkommen auf der Validierungsseite. Auf dieser Seite können Sie als dezentraler Validator Veranstaltungen genehmigen oder ablehnen:
Ablehnen. Abgelehnte Veranstaltungen werden nicht mehr auf UiTinVlaanderen oder anderen UiT-Agenden veröffentlicht und können vom Importeur nicht mehr bearbeitet werden.
Genehmigen. Genehmigte Veranstaltungen bleiben auf UiTinVlaanderen und anderen UiTagenda-Plattformen veröffentlicht. Sie werden nicht erneut zur Validierung vorgelegt.
Eine Anleitung zur Validierung finden Sie in den Inhaltsregeln der UiTdatabank.',validate:"Validieren",approve:"Genehmigen",approved:"Genehmigt",reject:"Ablehnen",rejected:"Abgelehnt",continue_validation:"Mit Validierung fortfahren"},cultuurkuur:{info:'Diese Veranstaltung enthält extra Informationen für Schulen und Lehrkräfte.',subject:"Betreff",target_group:"Zielgruppe",levels:"Geeignet für",grades:"Bildungsgrade",edit_link:"Auf cultuurkuur.be ändern",incomplete_help:"Fügen Sie ergänzende Informationen für Schulen und Lehrkräfte auf cultuurkuur.be hinzu.","continue":"Weiter"},booking:{label:"Buchung",no_booking:"Keine Buchungsinformation"},contact:{label:"Kontakt",or:"oder",no_contact:"Keine Kontaktinformation"},imageDetail:{label:"Abbildungen",alt_image:"Abbildung {{index}}",main_image:"Hauptabbildung",no_images:"Keine Abbildungen"},prices:{title:"Preise hinzufügen",base:"Basistarif",target_group:"Zielgruppe",free:"Kostenlos",currency:"Euro",add_price:"Preis eingeben",add_tarriff:"Tarif hinzufügen",error:"Beim Speichern des Preises ist ein Fehler aufgetreten.",invalid:"Diese Preisinformation scheint ungültig zu sein und kann daher nicht gespeichert werden.",invalid_tip1:"Notieren Sie Dezimalstellen mit einem Komma.",invalid_tip2:"Lassen Sie keine Reihe frei, geben Sie immer eine Zielgruppe und einen Betrag ein.",invalid_tip3:"Geben Sie maximal zwei Ziffern nach dem Komma ein.",close:"Schließen",save:"Speichern"},location:{title:"Neuen Ort hinzufügen",name:"Bezeichnung Ort",name_validation:"Die Bezeichnung des Ortes ist ein Pflichtfeld.",street:"Straße und Hausnummer",street_validation:"Straße ist ein Pflichtfeld.",city:"Stadt",category:"Kategorie",category_help:"Wählen Sie eine Kategorie, die diesen Ort am besten umschreibt.",category_validation:"Kategorie ist ein Pflichtfeld.",error:"Beim Speichern Ihres Ortes ist ein Fehler aufgetreten.",invalid_street:"Dies scheint eine ungültige Adresse zu sein. Wenn Sie Leerzeichen in der Adresse verwenden, dürfen nach dem letzten Leerzeichen nicht mehr als 15 Zeichen stehen.",cancel:"Abbrechen",add:"Hinzufügen",zip:"Postleitzahl",nlPostalCode_validation:"Postleitzahl ist ein Pflichtfeld.",invalid_PostalCode:"Dies scheint eine ungültige Postleitzahl zu sein. Eine Postleitzahl besteht aus 5 Ziffern."},eventForm:{langWarning:"Achtung, Sie (be)arbeiten in einer anderen Sprache: {{language}}. Falls dies nicht beabsichtigt ist, wenden Sie sich bitte an vragen@uitdatabank.be.",step1:{title:"Was möchten Sie hinzufügen?",label_event:"Eine Veranstaltung",show_everything:"Alles anzeigen",or:"oder",location_label:"Einen Ort",change:"Ändern",refine:"Verfeinern",info_lesson_series:"Ihre Unterrichtsreihe erscheint bis zum ersten Unterrichtszeitpunkt in UiT-Agenden."},step2:{date_help_event:"Wann findet diese Veranstaltung oder diese Aktivität statt?",date_help_place:"Wann ist diese Stelle oder dieser Ort geöffnet?"},step3:{title_event:"Wo findet diese Veranstaltung oder diese Aktivität statt?",title_place:"Wo befindet sich diese Stelle oder dieser Ort?",choose_city:"Wählen Sie eine Stadt",choose_city_helper:"zB. Gent oder 9000",choose_residence:"Wählen Sie eine Wohnanschrift",choose_residence_helper:"zB. Groningen oder Amsterdam",placeholder_city:"Stadt oder Postleitzahl",problem_city:"Beim Abrufen der Städte ist ein Problem aufgetreten",change:"Ändern",choose_location:"Wählen Sie einen Ort",placeholder_location:"Name oder Adresse",location_not_found:"Ort nicht gefunden?",add_location:"Einen Ort hinzufügen",location_error:"Beim Abrufen der Orte ist ein Fehler aufgetreten",street:"Straße und Hausnummer",placeholder_street:"Kerkstraat 1",street_validate:"Straße und Hausnummer ist ein Pflichtfeld.",street_validate_long:"Dies scheint eine ungültige Adresse zu sein. Wenn Sie Leerzeichen in der Adresse verwenden, dürfen nach dem letzten Leerzeichen nicht mehr als 15 Zeichen stehen.",ok:"OK",zip:"Postleitzahl",zip_validate:"Postleitzahl ist ein Pflichtfeld.",invalid_zip:"Dies scheint eine ungültige Postleitzahl zu sein. Eine Postleitzahl besteht aus 5 Ziffern.",bookable_event_info_alert:"Veranstaltungen, bei denen der Ort in Absprache festgelegt wird, werden nicht auf UiTinVlaanderen oder anderen Öffentlichkeitskanälen veröffentlicht. Ihre Veranstaltung wird jedoch auf cultuurkuur.be angezeigt",bookable_event_next_button:"Weiter",bookable_event_success_message:"Der Ort wird in Absprache mit der Schule festgelegt."},step4:{age:{age_label:"Geeignet für","All ages":"Alle Altersgruppen",Toddlers:"Kleinkinder",Preschoolers:"Kindergartenkinder",Kids:"Kinder",Teenagers:"Teenager",Youngsters:"Junge",Adults:"Erwachsene",Seniors:"Senioren",Custom:"Andere",from:"Von",till:"Bis",age:"Jahre",error_max_lower_than_min:"Das Höchstalter kann nicht unter dem Mindestalter liegen."},basic_data:"Basisangaben",name_event:"Name der Veranstaltung",name_place:"Bezeichnung des Ortes",help_event:'Verwenden Sie einen aussagekräftigen Titel, zB. "Radtour entlang von Kapellen", "Die Sage vom Einhorn".',help_place:'Verwenden Sie die offizielle Bezeichnung, zB. "Gravensteen", "Abdijsite Herkenrode", "Cultuurcentrum De Werf".',help_description:"Eine ausführliche Beschreibung können Sie in Schritt 5 hinzufügen.",info_missing:"Nicht alle Pflichtfelder wurden ausgefüllt:",save_error:"Beim Speichern der Aktivität ist ein Fehler aufgetreten. Probieren Sie es später noch einmal.","continue":"Weiter",doubles_title:"Vermeiden Sie doppelte Arbeit",doubles_help:"Wir haben vergleichbare Items gefunden. Überprüfen Sie diese bereits eher eingegebenen Items.",sure:'Sind Sie sicher, dass Sie "{{name}}" hinzufügen möchten?',return_dashboard:"Nein, zurück zum Dashboard",yes_continue:"Ja, mit der Eingabe fortfahren",suggestions:{from:"Von",till:"bis",permanent:"Permanent"}},step5:{expose_event:"Heben Sie Ihre Veranstaltung besonders hervor",expose_place:"Heben Sie diesen Ort besonders hervor",title:"Titel",description:"Beschreibung",add_text:"Text hinzufügen",required_200:"Die ersten 200 Zeichen sind am wichtigsten, wenn Sie sich an ein neues Publikum richten.",required_still:"Noch",required_signs:"Zeichen.",required_200_help:"Bringen Sie die wichtigste Botschaft in den ersten 200 Zeichen unter. Sie können noch zusätzliche Hintergrundinformationen hinzufügen.",empty:"Leeren",tips:{Concert:"Schreiben Sie eine enthusiastische Umschreibung des Konzerts.
Welche(r) Künstler(innen) treten auf?
Um welches Genre handelt es sich?
Welches Albumoder Werk wird vorgestellt?
",Dansvoorstelling:"Schreiben Sie eine enthusiastische Umschreibung der Tanzvorführung.
Wer ist der Choreograph?
Wer sind die Tänzer?
Welchen Stil tanzen sie?
Um welches Thema oder Problem dreht sich die Vorstellung?
",Festival:"Schreiben Sie eine enthusiastische Umschreibung des Festivals.
Wer oder was steht auf dem Programm?
Welche (Neben)Aktivitäten gibt es?
",Film:"Schreiben Sie eine enthusiastische Umschreibung des Films.
Umreißen Sie kurz die Geschichte.
Wer ist der Regisseur?
Wer spielt die Hauptrolle?
Hat der Film Preise gewonnen?
","Lezing of congres":"Schreiben Sie eine enthusiastische Umschreibung der Lesung oder des Kongresses.
Welche Themas werden behandelt?
Welche Sprecher nehmen das Wort?
",Theatervoorstelling:"Schreiben Sie eine enthusiastische Umschreibung der Vorstellung.
Umreißen Sie kurz die Geschichte oder das Thema.
Welches Theaterensemble führt das Stück auf?
Welche Darsteller spielen mit?
","Sportwedstrijd bekijken":"Schreiben Sie eine enthusiastische Umschreibung des Sportwettkampfes.
Welche Mannschaften oder Teilnehmer treten an?
In welcher Liga findet der Wettkampf statt?
","Markt of braderie":"Schreiben Sie eine enthusiastische Umschreibung des Markts oder Straßenfests.
In welchen Straßen findet dieser statt?
Welche Stände werden anwesend sein?
Gibt es (Neben)Aktivitäten?
",Opendeurdag:"Schreiben Sie eine enthusiastische Umschreibung vom Tag der offenen Tür. Was kann man sehen oder erleben?",Beurs:"Schreiben Sie eine enthusiastische Umschreibung der Messe. Was kann man ansehen, erleben oder kaufen?",Tentoonstelling:"Schreiben Sie eine enthusiastische Umschreibung der Ausstellung.
Welche Künstler stellen aus?
Welche Kollektionen können betrachtet werden?
Steht ein (Audio)Guide oder eine Broschüre zur Verfügung?
","Begeleide uitstap of rondleiding":"Schreiben Sie eine enthusiastische Umschreibung des Rundgangs.
Was kann man entlang der Strecke sehen oder erleben?
Gibt es eine maximale Anzahl Teilnehmer?
Wird der Rundgang durchgehen oder zu bestimmten Zeiten organisiert?
Gibt es Dinge zu beachten (zB. Stiefel notwendig)?
",Lessenreeks:"Schreiben Sie eine enthusiastische Umschreibung der Vorlesungsreihe.
Was genau lernt man?
Benötigt man Vorkenntnisse um teilzunehmen?
Welches Niveau haben die Vorlesungen?
Erhält man am Ende ein Diplom oder Zertifikat?
","Cursus met open sessies":"Schreiben Sie eine enthusiastische Umschreibung des Workshops oder Kurses mit öffentlichen Sitzungen.
Was genau lernt man?
Benötigt man Vorkenntnisse um teilzunehmen?
Welches Niveau haben die Vorlesungen?
Erhält man am Ende ein Diplom oder Zertifikat?
","Kamp of vakantie":"Schreiben Sie eine enthusiastische Umschreibung des Camps oder Ferienlagers.
Welche Aktivitäten gibt es?
Gibt es ein Thema?
Gibt es beim Camp Übernachtungsmöglichkeiten?
Wann beginnt und endet das Tagescamp und gibt es davor und danach Betreuungsmöglichkeiten?
",Festiviteit:"Schreiben Sie eine enthusiastische Umschreibung des Jahrmarkts.
Welche Attraktionen gibt es?
Gibt es (Neben)Aktivitäten (Quiz, Konzerte, Foodtrucks, Markt...)?
",Route:"Schreiben Sie eine enthusiastische Umschreibung des Ausflugs.
Findet dieser zu Fuß, mit dem Rad, mit dem Boot …statt?
Welche möglichen Zwischenstopps gibt es?
Wie lang ist die Strecke oder Dauer dieses Ausflugs?
Findet der Ausflug in Begleitung, mit einem Guide, einer Broschüre oder mit Wegweisern statt?
","Party of fuif":"Schreiben Sie eine enthusiastische Umschreibung der Party. Welche DJs oder Bands treten auf?","Eet of drankfestijn":"Schreiben Sie eine enthusiastische Umschreibung des Spendenmahls.
Was steht auf der Speisekarte?
Geht der Erlös an einen guten Zweck?
Gibt es (Neben)Aktivitäten?
","Spel of quiz":"Schreiben Sie eine enthusiastische Umschreibung des Quiz oder Spiels.
Um welche Themen dreht sich das Quiz?
Hat das Spiel ein Thema?
Gibt es etwas zu gewinnen?
Gibt es eine maximale Anzahl Teilnehmer?
","Sport en beweging":"Schreiben Sie eine enthusiastische Umschreibung der Sportaktivität.
Welche Sportart(en) können ausgeübt werden?
Welche Geräte werden (nicht) gestellt?
",Monument:"Schreiben Sie eine enthusiastische Umschreibung des Monuments. Geben Sie auch an, ob das Monument nur eingeschränkt zugänglich ist (zB. nur Salons)."},description_error:"Beim Speichern der Beschreibung ist ein Fehler aufgetreten.",organizer:"Organisation",add_organizer:"Organisation hinzufügen",choose_organizer:"Wählen Sie eine Organisation",organizer_not_found:"Organisation nicht gefunden?",add_new_organizer:"Neuen Organisator hinzufügen",organizer_error:"Beim Speichern des Organisators ist ein Fehler aufgetreten.",contact:"Kontakt & Reservierung",add_contact:"Kontaktinformation hinzufügen",website:"Website",phone:"Telefonnummer","e-mail":"E-Mail-Adresse",use_booking:"Für Reservierung verwenden",booking_exposure:"Wie soll dieser Link angezeigt werden?",buy_tickets:"Tickets kaufen",reserve_places:"Plätze reservieren",check_availability:"Verfügbarkeit kontrollieren",subscribe:"Melden Sie sich an",add_more_contact:"Weitere Kontaktangaben hinzufügen",contact_error:"Beim Speichern der Kontaktinformation ist ein Fehler aufgetreten.",facilities:"Ausstattungen",add_facility:"Ausstattung hinzufügen",facility_inapplicable:"Nicht zutreffend",change:"Ändern",image_help:"Fügen Sie eine Abbildung hinzu, damit die Besucher Ihre Aktivität besser erkennen können.",images:"Abbildungen",copyright:"Copyright","delete":"Löschen",main_image:"Hauptabbildung erstellen",add_image:"Abbildung hinzufügen",priceInfo:{price_label:"Preis",add_prices:"Preise hinzufügen",free:"Kostenlos",prices:"Preise",change:"Ändern",currency:"Euro"},reservationPeriod:{add_reservation_period:"Reservierungszeitraum hinzufügen",reservation_period:"Reservierungszeitraum",from:"Von",till:"Bis"}},publish:{publish_now:"Direkt veröffentlichen",publish_later:"Später veröffentlichen",edit_done:"Fertig mit bearbeiten",online_from:"Online ab"},timeTracker:{automatic_saved:"Automatisch gespeichert um",hour:"Stunde"},embargo:{title:"Wählen Sie ein Veröffentlichungsdatum",help:'Ab wann soll dies online angezeigt werden? Achtung, dieses Datum kann nur einmalig eingestellt werden.',error_past:"Das Veröffentlichungsdatum kann nicht in der Vergangenheit liegen.",error_empty:"Wählen Sie ein Veröffentlichungsdatum.",cancel:"Abbrechen",ready:"Fertig mit bearbeiten"},imageUpload:{modalTitle:"Abbildung hinzufügen",defaultError:"Die ausgewählte Datei entspricht nicht den Voraussetzungen.",noFileSelectedError:"Keine Datei ausgewählt",somethingWentWrongError:"Beim Speichern der Abbildung ist ein Fehler aufgetreten.",maxSize:"Die Datei, die Sie hochladen möchten, ist zu groß. Die maximale Größe beträgt ",formatNotValidError:"Die hochgeladene Datei ist keine gültige Abbildung.",extensionsAllowed:"Nur Dateien mit den Dateierweiterungen .jpeg, .gif oder.png sind zugelassen.",sizeError:"Die hochgeladene Datei ist zu groß."}},offerStatus:{scheduled:"Findet statt",cancelled:"Abgesagt",postponed:"Verlegt",open:"Offen",temporarilyClosed:"Zeitweise geschlossen",permanentlyClosed:"Permanent geschlossen"},bookingAvailability:{unavailable:"Voll oder ausverkauft"},calendar:{one_more_days:"Ein oder mehrere Tage",or:"oder",default_days:"Feste Tage pro Woche",start_label:"Start",end_label:"Ende",whole_day_label:"Ganztags",start_hour_label:"Beginn",end_hour_label:"Ende",add_days:"Tag(e) hinzufügen",period:{title:"Start- und Enddatum",from:"Von",till:"Bis",alert:"Geben Sie sowohl Start- als auch Enddatum ein. Das Enddatum kann nicht vor dem Startdatum liegen."},openingHours:{permanent_title:"24/24, 7/7",permanent_subtitle:"Jeden Tag, jede Stunde",add_hours:"Zeiten hinzufügen",opening_hours:"Öffnungszeiten",change:"Ändern",days:"Tage",from:"Von",till:"Bis",more_hours:"Weitere Öffnungszeiten hinzufügen",cancel:"Abbrechen",save:"Speichern"}},facilityLabel:{motor:"Vorrichtungen für Personen mit körperlichen Einschränkungen",visual:"Vorrichtungen für Personen mit Sichteinschränkungen",hearing:"Vorrichtungen für Personen mit Höreinschränkungen",other:"Andere Vorrichtungen",place:"Vorrichtungen an diesem Ort",mental:"Vorrichtungen für Personen mit geistigen Einschränkungen",neurodivers:"Vorrichtungen für neurodiverse Personen"},audience:{entrance:"Zutritt",everyone:"Für alle",members:"Nur für Mitglieder",members_help:"Ihr Item wird nur auf Kanälen für Vereinigungen und deren Mitglieder veröffentlicht.",education:"Nur für Schulen",education_help:"Ihr Item wird nur auf Kultur- und Bildungskanälen wie cultuurkuur.be veröffentlicht. Nach der Veröffentlichung können Sie noch spezielle Informationen für Schulen hinzufügen."},workflowStatus:{label:"Publikationsstatus",id:"ID",DRAFT:"Nicht veröffentlicht",READY_FOR_VALIDATION:"Veröffentlicht",APPROVED:"Online ab",REJECTED:"Veröffentlichung abgelehnt",DELETED:"Nicht veröffentlicht",rules:"Sehen Sie sich die Regeln an",rejected_full:"Die Veröffentlichung dieses Items wurde abgelehnt."},queryFieldGroup:{what:"Was",where:"Wo",when:"Wann","input-information":"Eingabeinformation",translations:"Übersetzungen",other:"Andere"},queryFieldLabel:{cdbid:"Identifikationscode (CDBID)",offertype:"Art (Angebot)",keywords:"label",title:"Titel",category_eventtype_name:"Art (Aktivität)",locationtype:"Art (Ort)",category_theme_name:"Thema",text:"Text",city:"Stadt (Name)",zipcode:"Postleitzahl",location_id:"Ort (id)",country:"Land",location_name:"Ort (Name)",location_labels:"Ort (Labels)",category_flandersregion_name:"Region / Stadt",nisRegions:"Region / Stadt",date:"Datum",permanent:"permanent",lastupdated:"Letzte Änderung",creationdate:"erstellt am",createdby:"erstellt durch",availablefrom:"Datum verfügbar",detail_lang:"Übersetzung",organiser_keywords:"Label Organisation",organiser_id:"Organisation (ID)",agefrom:"Alter",attendance_mode:"Anwesenheits-Modus",price:"Preis",status:"Status",booking_availability:"Tickets & Plätze",organiser_label:"Organisation (Name)",add_facility:"Ausstattung",category_targetaudience_name:"Zielgruppe",startdate:"Startdatum",enddate:"Enddatum",lastupdatedby:"Letzte Änderung durch",category_publicscope_name:"Öffentlichkeitsreichweite"},"EVENT-EXPORT":{"QUERY-IS-MISSING":"Exportieren ist erst möglich, nachdem Sie eine Suchanfrage ausgeführt haben","TOO-MANY-ITEMS":"Manuelles Exportieren mit mehr als {{limit}} Items ist nicht möglich. Kontaktieren Sie vragen@uitdatabank.be für eine individuelle Lösung."},ANGEBOT_EINGEBEN:"Angebot eingeben",ANGEBOT_BEARBEITEN:"Angebot bearbeiten",ANGEBOT_MODERIEREN:"Angebot moderieren",ANGEBOT_ENTFERNEN:"Angebot entfernen",ORGANISATIONEN_VERWALTEN:"Organisationen verwalten",BENUTZER_VERWALTEN:"Benutzer verwalten",LABELS_VERWALTEN:"Labels verwalten",AUSSTATTUNGEN_BEARBEITEN:"Ausstattungen bearbeiten",ORGANISATIONEN_BEARBEITEN:"Organisationen bearbeiten",PRODUKTIONEN_ERSTELLEN:"Produktionen erstellen",FILME_ERSTELLEN:"Filme erstellen","event type missing":'Haben Sie eine Art in Schritt 1 gewählt?',"timestamp missing":'Haben Sie ein Datum in Schritt 2 gewählt?',"start or end date missing":'Haben Sie ein Start- und Enddatum in Schritt 2 gewählt?',"when missing":'Haben Sie eine Auswahl in Schritt 2 getroffen?',"place missing for event":'Haben Sie eine Stelle in Schritt 3 gewählt?',"location missing for place":'Haben Sie einen Ort in Schritt 3 gewählt?',"title is missing":'Haben Sie ein Angebot und einen Titel in Schritt 4 eingegeben?',"age range is missing":'Haben Sie ein Angebot und eine Altersgruppe in Schritt 4 eingegeben?',UNIQUE_ORGANIZER_NOTICE:"Um Organisationen in der UiTdatabank separat zu hinterlegen, bitten wir jede Organisation um einen individuellen & gültigen Hyperlink.",OPENING_HOURS_ERROR:{openAndClose:"Tragen Sie alle Öffnungs- und Schließungszeiten ein.",dayOfWeek:"Wählen Sie mindestens einen Tag in jeder Reihe, die Sie hinzugefügt haben.",openIsBeforeClose:"Bitte geben Sie eine Schließungszeit ein, die später als die Öffnungszeit ist."},TIME_SPAN_REQUIREMENTS:{timedWhenNotAllDay:"Eine Eingabe von Beginn und Ende ist notwendig, wenn eine Veranstaltung nicht den ganzen Tag dauert.",startBeforeEndDay:"Das Enddatum kann nicht vor dem Startdatum liegen.",startBeforeEnd:"Das Ende kann nicht vor dem Beginn liegen.",tooFarInFuture:"Das gewählte Enddatum und Startdatum können nicht mehr als 10 Jahre in der Zukunft liegen."},uitpas:{uitpasInfo:{uitpas:"UiTPAS",uitpas_alert:"Dies ist ein UiTPAS-Organisator. Wählen Sie einen Preis, um eine bestimmte UiTPAS-Information hinzuzufügen.",uitpas_info:"Dies ist eine UiTPAS-Aktivität.",cantChangePrice:"Für diese Veranstaltung wurden bereits UiTPAS-Tickets mit der bestehenden Preisinformation verkauft. Sie können die Preisinformation nicht mehr anpassen.",cantChangeOrganiser:"Für diese Veranstaltung wurden bereits UiTPAS-Tickets verkauft. Sie können die Organisation nicht mehr anpassen.",unavailable:"Für diese Veranstaltung sind bereits UiTPAS-Tickets verkauft worden. Sie können die Organisation nicht mehr ändern."},cardSystems:{card_systems:"Kartensysteme",choose:"--Wählen Sie einen Verteilerschlüssel--",retry:"Erneut registrieren",already_has_ticketsales:"Für diese Veranstaltung sind bereits UiTPAS-Tickets verkauft worden. Sie können die Organisation nicht mehr ändern.",not_found:"Diese Veranstaltung ist dem UiTPAS noch nicht bekannt."}},images:{agreement:"Sie sind dabei, (eine) Abbildung(en) hinzuzufügen und öffentlich zu machen. Dazu müssen Sie alle geltenden Urheber- und Bildnisrechte, sowie alle anderen anwendbaren Gesetze einhalten. Sie können dafür haftbar gemacht werden, entsprechend den",conditions:"allgemeinen Geschäftsbedingungen",conditions_url:"https://www.publiq.be/nl/gebruikersovereenkomst-uitdatabank",copyright_info:"Weitere Informationen zum Copyright",description:"Beschreibung",description_help:"Maximum 250 Zeichen",copyright:"Copyright",copyright_help:"Geben Sie den Namen des rechteinhabenden Fotografen an. Geben Sie ausschließlich den Namen Ihrer eigenen Vereinigung oder Organisation an, wenn Sie selbst die Rechte besitzen (mindestens 2 Zeichen).",cancel:"Abbrechen",agree:"Zustimmen",upload:{select_image:"Foto auswählen",choose_file:"Datei wählen",max_filesize:"Die maximale Größe Ihrer Abbildung beträgt {{maxFileSize}} und hat als Erweiterung .jpeg, .gif oder .png",upload:"Hochladen"},edit:{title:"Abbildungsinfo bearbeiten",description_help:"Eine gute Beschreibung Ihrer Abbildung wird von Suchmaschinen und Nutzern mit einer Sichteinschränkung gelesen. (max. 250 Zeichen)",save_error:"Beim Speichern der Abbildung ist ein Fehler aufgetreten.",update:"Aktualisieren"},remove:{title:"Abbildungen entfernen",sure:"Sind Sie sicher, dass Sie diese Abbildung entfernen möchten?",save_error:"Beim Entfernen der Abbildung ist ein Fehler aufgetreten."}},organizer:{modal:{title:"Neue Organisation hinzufügen",avoid_doubles:"Vermeiden Sie doppelte Arbeit",unique_notice:"Um Organisationen in der UiTdatabank separat zu hinterlegen, bitten wir jede Organisation um einen individuellen & gültigen Hyperlink.",website:"Website",alert_warning:"Diese Adresse ist bereits in Benutzung durch die Organisation '{{organizerName}}'. Geben Sie eine individuelle Website an oder",alert_button:"verwenden Sie {{organizerName}} als Organisation",name_help:"Der offizielle, öffentliche Name der Organisation.",name_required:"Bitte tragen Sie einen Namen ein",name_maxlength:"Der Name der Organisation kann nur 250 Zeichen umfassen.",add_confirm:'Sind Sie sicher, dass Sie "{{newOrganizerName}}" als Organisation hinzufügen möchten? Eine doppelte Eingabe von Organisationen ist nicht gestattet.',doubles:"Wir haben diese vergleichbaren Items gefunden:",select:"Auswählen",your_input:"Ihre Eingabe:",still_enter:"Dennoch eingeben",save_error:"Beim Speichern Ihrer Organisation ist ein Fehler aufgetreten.",address_error:"Bitte tragen Sie eine gültige Adresse ein.",contact_error:"Bitte alle Kontaktinformationen korrekt eintragen.",close:"Schließen",save:"Speichern",label_name:"Name"},address:{label_street:"Straße und Hausnummer",help_street:"Bitte geben Sie eine Straße und Hausnummer ein.",help_zip:"Bitte geben Sie eine Postleitzahl ein.",validate_zip:"Dies scheint eine ungültige Postleitzahl zu sein. Eine Postleitzahl besteht aus 5 Ziffern.",label_city:"Stadt",label_residence:"Wohnanschrift",help_city:"Beim Abrufen der Städte ist ein Problem aufgetreten.",error_city:"Bitte geben Sie eine Stadt ein.",change:"Ändern",zip:"Postleitzahl","delete":"Leeren",delete_success:"Adresse erfolgreich gelöscht",delete_error:"Beim Löschen Ihrer Adresse ist ein Fehler aufgetreten"},contact:{title:"Kontakt",enter_url:"Geben Sie ein URL ein",enter_email:"Geben Sie eine E-Mail-Adresse ein",enter_phone:'Geben Sie eine Telefonnummer ein, zB. 011 32 43 54',required:"Bitte dieses Feld nicht leer lassen.",valid_url:"Bitte eine gültige URL eingeben.",valid_email:"Bitte eine gültige E-Mail-Adresse eingeben.",valid_phone:"Bitte eine gültige Telefonnummer eingeben.",cancel:"Abbrechen",add:"Hinzufügen",add_phone:"Telefonnummer hinzufügen",add_email:"E-Mail-Adresse hinzufügen",add_url:"Andere Website hinzufügen"},manage:{edit:"Bearbeiten","delete":"Löschen",overview:"Zurück zur Übersicht",dashboard:"Zurück zum Dashboard",name:"Name",description:"Beschreibung",educational_description:"Beschreibung für Cultuurkuur",address:"Adresse",website:"Website",phone:"Telefonnummer",email:"E-Mail-Adresse",labels:"Labels",removed:"Diese Organisation wurde entfernt."}},duplicate:{title:"Kopieren und anpassen",description:"Sie sind dabei, eine Veranstaltung zu kopieren. Wählen Sie einen Zeitpunkt für diese Veranstaltung.",error:"Beim Erstellen der Kopie ist ein Fehler aufgetreten!"},dashboard:{welcome:"Willkommen,",no_items:"Sie haben noch keine Items hinzugefügt.",add_activity:"Eine Aktivität oder einen Ort hinzufügen?",my_activities:"Meine Aktivitäten und Orte",my_organizers:"Meine Organisationen",add:"Hinzufügen",add_organizer:"Organisation hinzufügen",directive:{no_publish:"Nicht veröffentlicht!",online:"Online auf",edit:"Bearbeiten",example:"Beispiel","delete":"Löschen",expired_event:"Abgelaufene Veranstaltung"},"delete":{sure:'Sind Sie sicher, dass Sie "{{name}}" löschen möchten?',error_location:'Der Ort "{{name}}" kann nicht gelöscht werden, da dort Aktivitäten geplant sind.',error:"Beim Löschen der Aktivität ist ein Fehler aufgetreten.",cancel:"Abbrechen","delete":"Löschen"}},entry:{exported_documents:"Exportierte Dokumente",notifications:"Benachrichtigungen",in_progress:"In Behandlung"},offerTypes:{Concert:"Konzert",Theatervoorstelling:"Theatervorstellung","Lezing of congres":"Lesung oder Kongress",
-Dansvoorstelling:"Tanzvorführung",Festival:"Festival",Film:"Film","Sportwedstrijd bekijken":"Sportwettkampf ansehen","Cursus met open sessies":"Kurs mit öffentlichen Sitzungen",Lessenreeks:"Vorlesungsreihe","Sport en beweging":"Sport und Bewegung","Kamp of vakantie":"Camp oder Ferienlager","Begeleide uitstap of rondleiding":"Begleiteter Rundgang",Route:"Ausflug","Spel of quiz":"Spiel oder Quiz","Party of fuif":"Party",Festiviteit:"Feiern","Congres of studiedag":"Kongress oder Studientag","Eet- of drankfestijn":"Spendenmahl","Themen- oder Vergnügungspark":"Themen- oder Vergnügungspark",Theater:"Theater","Jeugdhuis of jeugdcentrum":"Jugendzentrum","Cultuur- of ontmoetingscentrum":"Kultur- oder Begegnungszentrum",Discotheek:"Diskothek","Bibliotheek of documentatiecentrum":"Bibliothek oder Dokumentationszentrum",Bioscoop:"Kino",Horeca:"Gastgewerbe","Openbare ruimte":"Öffentliche Einrichtungen",Tentoonstelling:"Ausstellung","Markt, braderie of kermis":"Markt, Straßenfest oder Jahrmarkt","Natuur, park of tuin":"Natur, Park oder Garten",Beurs:"Messe",Monument:"Monument",Opendeurdag:"Tag der offenen Tür","Recreatiedomein of centrum":"Freizeitbereich oder -zentrum","Park of tuin":"Park oder Garten","Archeologische Site":"Archäologische Stätte","School of onderwijscentrum":"Schule oder Bildungszentrum",Sportcentrum:"Sportzentrum",Winkel:"Laden",Speeltuin:"Spielplats","Museum of galerij":"Museum oder Galerie","Zaal of expohal":"Saal oder Expo-Halle"},offerThemes:{"Antiek en brocante":"Antik und Trödel",Architectuur:"Architektur","Audiovisuele kunst":"Audiovisuelle Kunst",Beeldhouwkunst:"Bildhauerei",Fotografie:"Fotografie",Grafiek:"Grafik",Installatiekunst:"Installationskunst",Schilderkunst:"Malerei","Decoratieve kunst":"Dekorative Kunst",Design:"Design",Mode:"Mode","Meerdere kunstvormen":"Mehrere Kunstformen","Ballet en klassieke dans":"Ballett und klassische Tänze","Volksdans en werelddans":"Volkstanz und Welttänze","Stijl en salondansen":"Stil- und Salontanz","Moderne dans":"Moderner Tanz",Erfgoed:"Kulturerbe","Actie- en avonturenfilm":"Action- und Abenteuerfilm","Animatie en kinderfilms":"Animations- und Kinderfilme","Documentaires en reportages":"Dokumentationen und Reportagen","Griezelfilm of horror":"Gruselfilm oder Horror","Historische film":"Historischer Film",Komedie:"Komödie",Kortfilm:"Kurzfilm",Filmmusical:"Filmmusical",Drama:"Drama","Science fiction":"Science-Fiction",Cinefiel:"Filmliebhaber",Thriller:"Thriller","Meerdere filmgenres":"Mehrere Filmgenres",Geschiedenis:"Geschichte","Gezondheid en wellness":"Gesundheit und Wellness","Landbouw en platteland":"Landbau und Landleben","Milieu en natuur":"Umwelt und Natur",Literatuur:"Literatur","Poëzie":"Poesie",Fictie:"Fiction","Non fictie":"Sachbücher",Strips:"Comics","Klassieke muziek":"Klassische Musik","Jazz en blues":"Jazz und Blues","Pop en rock":"Pop und Rock","Hiphop, r&b en rap":"Hip-Hop, R&B und Rap","Dance muziek":"Dance-Music","Folk en wereldmuziek":"Volks- und Weltmusik",Amusementsmuziek:"Pomusik","Politiek en maatschappij":"Politik und Gesellschaft",Creativiteit:"Kreativität","Computer en techniek":"Computer und Technik",Opvoeding:"Erziehung","Persoon en relaties":"Persönliche Entwicklung und Beziehungen","Interculturele vorming":"Interkulturelle Entwicklung","Kunst en kunsteducatie":"Kunst und Kunsterziehung","Gezondheid en zorg":"Gesundheit und Pflege",Samenleving:"Gesellschaft","Bal en racketsport":"Ballsport und Rückschlagspiele","Atletiek, wandelen en fietsen":"Athletik, wandern und Radfahren","Zwemmen en watersport":"Schwimmen und Wassersport","Fitness, gymnastiek, dans en vechtsport":"Fitness, Gymnastik, Tanz und Kampfsport","Outdoor en Adventure sport":"Outdoor- und Abenteuersport","Lucht en motorsport":"Flug- und Motorsport",Volkssporten:"Volkssportarten","Omnisport en andere":"Omnisport und andere","Tekst- en muziektheater":"Text- und Musiktheater","Humor en comedy":"Humor und Comedy",Musical:"Musical","Figuren en poppentheater":"Figur- und Puppentheater","Opera en operette":"Opera und Operette","Mime en bewegingstheater":"Pantomimen- und Bewegungstheater",Wetenschap:"Wissenschaft","Zingeving, filosofie en religie":"Sinngebung, Philosophie und Religion","Thema onbepaald":"Thema unbestimmt",Circus:"Zirkus",Voeding:"Ernährung",Economie:"Wirtschaft",Avontuur:"Abenteuer",Natuur:"Natur",Sport:"Sport",Technologie:"Technologie",Koken:"Kochen",Themakamp:"Themencamp","Taal en communicatie":"Sprache"},offerThemesGroups:{Dans:"Tanz","Kunst en erfgoed":"Kunst und Kulturerbe",Muziek:"Musik",Sport:"Sport",Varia:"Diverses"},weekdays:{monday:{label:"Mo",name:"Montag"},tuesday:{label:"Di",name:"Dienstag"},wednesday:{label:"Mi",name:"Mittwoch"},thursday:{label:"Do",name:"Donnerstag"},friday:{label:"Fr",name:"Freitag"},saturday:{label:"Sa",name:"Samstag"},sunday:{label:"So",name:"Sonntag"}},search:{search:"Suchen",advanced:"Erweitert",label:"Labeln",deselect:"Auswahl aufheben",savedSearches:{savedSearches:"Gespeicherte Suchanfragen",items:{"Von mir eingegeben":"Von mir eingegeben"},mySearches:"Meine Suchanfragen",title:"Titel",viewResults:"Ergebnisse ansehen",yourSearch:"Ihre Suchanfrage",save:"Speichern"},manage:"Verwalten",oneResult:"1 Ergebnis",multipleResults:"{{count}} Ergebnisse",description:"Beschreibung",labels:"Labels",picture:"Abbildung",what:"Was",where:"Wo",when:"Wann",inputInformation:"Eingabeinformation",noEventsFound:"Keine Veranstaltungen gefunden, probieren Sie eine andere Suchanfrage.",exportButton:"Aktivitäten exportieren",modal:"Ihre Auswahl enthält keine Aktivitäten, probieren Sie, eine andere Suchanfrage zu exportieren.",advancedQueryBuilder:{title:"Ersteller erweiterte Suchanfragen",header:{info:"Hier können Sie komplexe Suchanfragen erstellen. Benötigen Sie Hilfe? Lesen Sie",link:"unsere Anleitung"},group:"Gruppe ",include:"Einschließen",exclude:"Ausschließen",addGroup:"Gruppe hinzufügen",cancel:"Abbrechen",search:"Suchen",syntaxError:'Ihre Abfrage enthält einen Fehler. Auf dieser Seite finden Sie weitere Informationen über das Verfassen einer Abfrage',invalidField:'{{field}} ist kein gültiges Suchfeld. Auf dieser Seite finden Sie weitere Informationen über das Verfassen einer Abfrage'}}})}(),function(){"use strict";function a(a,b,c,d,e,f,g,h,i,j,k){function l(a){var b=_.cloneDeep(a);return b.withCredentials=!1,delete b.headers.Authorization,b}function m(a,b){var c={};switch(a){case"event":c=new g;break;case"place":c=new h;break;case"organizers":c=new i;break;default:console.warn("Unsupported "+a+" in UdbApi.formateOfferClass")}return c.parseJson(b),c}function n(b){return a.resolve(b.data)}function o(b){if(b){var d={type:new URL(_.get(b,"data.type",c.baseUrl+"problem")),title:_.get(b,"data.title","Something went wrong."),detail:_.get(b,"data.detail","We failed to perform the requested action!"),status:b.status};return a.reject(d)}}var p=c.baseApiUrl,q={headers:{"Content-Type":"application/json",Authorization:"Bearer "+e.getToken(),"X-Api-Key":_.get(c,"apiKey")},params:{}},r=f("offerCache");this.mainLanguage=k.use()||"nl",this.removeItemFromCache=function(a){var b=r.get(a);b&&r.remove(a)},this.createSavedSearch=function(a,d){var e={name:a,query:d};return b.post(c.baseUrl+"saved-searches/v3",e,q).then(n)},this.getSavedSearches=function(){return b.get(c.baseUrl+"saved-searches/v3",q).then(n)},this.deleteSavedSearch=function(a){return b["delete"](c.baseUrl+"saved-searches/v3/"+a,q).then(n)},this.findOffers=function(a,d,e){var f=d||0,g={start:f,disableDefaultFilters:!0,workflowStatus:"READY_FOR_VALIDATION,APPROVED",embed:!0},h=_.cloneDeep(q);return h.params=g,a.length&&(g.q=a),e&&(g.workflowStatus="DRAFT,"+g.workflowStatus),b.get(c.baseUrl+"offers/",l(h)).then(n,o)},this.findEvents=function(a,c){var d=c||0,e={start:d},f=_.cloneDeep(q);return f.params=e,a.length&&(e.query=a),b.get(p+"search",f).then(n,o)},this.findToModerate=function(a,d,e){var f=c.baseUrl+"events/?q="+a,g=moment.utc().format(),h={start:d,limit:e,workflowStatus:"READY_FOR_VALIDATION",audienceType:"everyone",availableFrom:g,availableTo:"*"},i=_.cloneDeep(q);return i.params=h,b.get(f,i).then(n,o)},this.getOffer=function(c){function d(a){var b=a["@id"].split("/").reverse()[1],d=m(b,a);d.parseJson(a),r.put(c,d),e.resolve(d)}var e=a.defer(),f=r.get(c);return f?e.resolve(f):b.get(c.toString()+"?embedUitpasPrices=false",q).success(d).error(e.reject),e.promise},this.reformatJsonLDData=function(a){return a.member=a.member.map(function(a){var b=a["@context"]?a["@context"].split("/").pop():"";return b=b.charAt(0).toUpperCase()+b.slice(1),a["@type"]=a["@type"]?a["@type"]:b,a}),a},this.formatJsonLDEntity=function(a){var b=a["@type"].toLowerCase(),c=m(b,a);return c},this.getOrganizerByLDId=function(a){var b=a.split("/").pop();return this.getOrganizerById(b)},this.getOrganizerById=function(d){var e=a.defer(),f=r.get(d);if(f)e.resolve(f);else{var g=b.get(c.baseUrl+"organizers/"+d,q);g.success(function(a){var b=new i;b.parseJson(a),r.put(d,b),e.resolve(b)})}return e.promise},this.findOrganisations=function(a,d,e,f){var g={limit:d?d:10,start:a?a:0,embed:!0};e&&(g.website=e),f&&(g.name=f);var h=_.set(l(q),"params",g);return b.get(c.baseUrl+"organizers/",h).then(n)},this.addLabelToOrganizer=function(a,d){return b.put(c.baseUrl+"organizers/"+a+"/labels/"+d,{},q).then(n,o)},this.deleteLabelFromOrganizer=function(a,d){return b["delete"](c.baseUrl+"organizers/"+a+"/labels/"+d,q).then(n,o)},this.updateOrganizerWebsite=function(a,d){var e={url:d};return b.put(c.baseUrl+"organizers/"+a+"/url",e,q).then(n,o)},this.updateOrganizerName=function(a,d,e){var f={name:d};return b.put(c.baseUrl+"organizers/"+a+"/name/"+e,f,q).then(n,o)},this.updateOrganizerAddress=function(a,d,e){return b.put(c.baseUrl+"organizers/"+a+"/address/"+e,d,q).then(n,o)},this.removeOrganizerAddress=function(a){return b["delete"](c.baseUrl+"organizers/"+a+"/address",q).then(n,o)},this.updateOrganizerContact=function(a,d){return b.put(c.baseUrl+"organizers/"+a+"/contactPoint",d,q).then(n,o)},this.getOrganizerPermissions=function(a){var d=q;return b.get(c.baseUrl+"organizers/"+a+"/permissions",d).then(n,o)},this.getHistory=function(a,d){var e="place"===d?"places/":"event/";return b.get(c.baseUrl+e+a+"/history",q).then(n)},this.getMe=function(){function f(a){var b={id:a.id,nick:a.nick,uuid:a.uuid,username:a.username,email:a.email};d.putObject("user",b),g.resolve(b)}var g=a.defer(),h=e.getUser();return h?g.resolve(h):e.getToken()?(q.headers.Authorization="Bearer "+e.getToken(),b.get(c.baseUrl+"user",q).success(f).error(g.reject)):g.reject(),g.promise},this.getMyPermissions=function(){function d(a){r.put(g,a),f.resolve(a)}var f=a.defer(),g=e.getToken();if(g){var h=r.get(g);h?f.resolve(h):b.get(c.baseUrl+"user/permissions/",q).success(d).error(function(a,b){-1!==b&&(window.parent.postMessage({source:"UDB",type:"HTTP_ERROR_CODE",code:b||403},"*"),f.reject())})}else window.parent.postMessage({source:"UDB",type:"HTTP_ERROR_CODE",code:401},"*"),f.reject();return f.promise},this.hasPermission=function(a){return b.get(a+"/permission",q).then(function(a){return!!a.data.hasPermission})},this.labelOffers=function(a,d){return b.post(c.baseUrl+"offers/labels",{label:d,offers:a},q)},this.labelQuery=function(a,d){return b.post(c.baseUrl+"query/labels",{label:d,query:a},q)},this.exportEvents=function(a,d,e,f,g,h,i){var j={query:a,selection:_.map(h,function(a){return a.toString()}),order:{},include:f,perDay:g,customizations:i||{}};return d&&(j.email=d),b.post(c.baseUrl+"events/export/"+e,j,q)},this.translateProperty=function(a,c,d,e){var f={};return f[c]=e,"name"===c&&(c="title"),b.post(a+"/"+d+"/"+c,f,q)},this.translateAddress=function(a,d,e){return b.put(c.baseUrl+"places/"+a+"/address/"+d,{addressCountry:e.addressCountry,addressLocality:e.addressLocality,postalCode:e.postalCode,streetAddress:e.streetAddress},q)};var s={typicalAgeRange:"typical-age-range"};this.updateProperty=function(a,c,d){var e={};e[c]=d;var f=s[c]?s[c]:c;return b.post(a+"/"+f,e,q)},this.updateTypicalAgeRange=function(a,c){var d={typicalAgeRange:c};return b.put(a+"/typicalAgeRange",d,q)},this.updatePriceInfo=function(a,c){return b.put(a+"/priceInfo",c,q)},this.updateOfferFacilities=function(a,c){return b.put(a+"/facilities/",{facilities:c},q)},this.labelOffer=function(a,c){return b.post(a+"/labels",{label:c},q)},this.unlabelOffer=function(a,c){return b["delete"](a+"/labels/"+encodeURIComponent(c),q)["catch"](o)},this.deleteOffer=function(a){return b["delete"](a["@id"],q)},this.deleteOrganization=function(a){return b["delete"](a["@id"],q)["catch"](o)},this.createOffer=function(a,d){return b.post(c.baseUrl+a,d,q).then(function(a){return new URL(a.data.url)})},this.findEventsAtPlace=function(d){function e(b){var d=_.map(b.events,function(a){return{"@id":c.baseUrl+"event/"+a["@id"]}});return a.resolve(d)}return b.get(d+"/events",q).then(function(a){return n(a).then(e)})},this.createOrganizer=function(a){return b.post(c.baseUrl+"organizers/",a,q)},this.updateMajorInfo=function(a,c){return b.post(a+"/major-info",c,q)},this.deleteTypicalAgeRange=function(a){return b["delete"](a+"/typical-age-range",q)},this.deleteOfferOrganizer=function(a,c){return b["delete"](a+"/organizer/"+c,q)},this.addImage=function(a,c){var d={mediaObjectId:c};return b.post(a+"/images",d,q)},this.updateImage=function(a,c,d,e){var f={description:d,copyrightHolder:e};return b.post(a+"/images/"+c,f,q)},this.removeImage=function(a,c){return b["delete"](a+"/images/"+c,q)},this.selectMainImage=function(a,c){var d={mediaObjectId:c};return b.post(a+"/images/main",d,q)},this.setAudienceType=function(a,c){return b.put(a.toString()+"/audience",{audienceType:c},q).then(n,o)},this.getDashboardItems=function(a){var d={disableDefaultFilters:!0,workflowStatus:"DRAFT,READY_FOR_VALIDATION,APPROVED,REJECTED","sort[modified]":"desc",limit:50,start:50*(a-1),embed:!0},e=_.get(c,"created_by_query_mode","uuid");return this.getMe().then(function(a){var f=a.uuid,g=a.email;"uuid"===e?d.creator=f:"email"===e?d.creator=g:"mixed"===e&&(d.q="creator:("+f+" OR "+g+")");var h=_.cloneDeep(q);return h.params=d,b.get(c.baseUrl+"offers/",h).then(n)})},this.getDashboardOrganizers=function(a){var d=_.cloneDeep(q);return this.getMe().then(function(e){var f=e.uuid;return d.params={creator:f,"sort[modified]":"desc",limit:50,start:50*(a-1),embed:!0},b.get(c.baseUrl+"organizers/",d).then(n)})},this.uploadMedia=function(a,b,d,e){var f={url:c.baseUrl+"images/",fields:{description:b,copyrightHolder:d,language:e},file:a},g=_.assign(q,f);return j.upload(g)},this.getMedia=function(a){return b.get(c.baseUrl+"media/"+a,q).then(n)},this.createLabel=function(a,d,e,f){var g={name:a,visibility:d?"visible":"invisible",privacy:e?"private":"public"};return f&&(g.parentId=f),b.post(c.baseUrl+"labels/",g,q).then(n,o)},this.updateLabel=function(a,d){return b.patch(c.baseUrl+"labels/"+a,{command:d},q).then(n,o)},this.deleteLabel=function(a){return b["delete"](c.baseUrl+"labels/"+a,q).then(n,o)},this.getLabelById=function(a){return b.get(c.baseUrl+"labels/"+a,q).then(n)},this.findLabels=function(a,d,e,f){var g=_.cloneDeep(q);return g.params={query:a,suggestion:f===!1?void 0:!0,limit:d?d:30,start:e?e:0},b.get(c.baseUrl+"labels/",g).then(n)},this.getRoleById=function(a){return b.get(c.baseUrl+"roles/"+a,q).then(n,o)},this.findRoles=function(a,d,e){var f=_.cloneDeep(q);return f.params={query:a,limit:d?d:30,start:e?e:0},b.get(c.baseUrl+"roles/",f).then(n)},this.createRole=function(a){var d={name:a};return b.post(c.baseUrl+"roles/",d,q).then(n,o)},this.updateRoleName=function(a,d){var e=_.cloneDeep(q);e.headers["Content-Type"]="application/ld+json;domain-model=RenameRole";var f={name:d};return b.patch(c.baseUrl+"roles/"+a,f,e).then(n,o)},this.createRoleConstraint=function(a,d){var e=_.cloneDeep(q);e.headers["Content-Type"]="application/ld+json;domain-model=addConstraint";var f={query:d};return b.post(c.baseUrl+"roles/"+a+"/constraints/",f,e).then(n,o)},this.updateRoleConstraint=function(a,d){var e=_.cloneDeep(q);e.headers["Content-Type"]="application/ld+json;domain-model=updateConstraint";var f={query:d};return b.put(c.baseUrl+"roles/"+a+"/constraints/",f,e).then(n,o)},this.removeRoleConstraint=function(a){var d=_.cloneDeep(q);return d.headers["Content-Type"]="application/ld+json;domain-model=removeConstraint",b["delete"](c.baseUrl+"roles/"+a+"/constraints/",d).then(n,o)},this.getPermissions=function(){var a=q;return b.get(c.baseUrl+"permissions/",a).then(n,o)},this.getRolePermissions=function(a){var d=q;return b.get(c.baseUrl+"roles/"+a+"/permissions/",d).then(n,o)},this.getRoleUsers=function(a){var d=q;return b.get(c.baseUrl+"roles/"+a+"/users/",d).then(n,o)},this.addPermissionToRole=function(a,d){var e=q;return b.put(c.baseUrl+"roles/"+d+"/permissions/"+a,{},e).then(n,o)},this.removePermissionFromRole=function(a,d){var e=q;return b["delete"](c.baseUrl+"roles/"+d+"/permissions/"+a,e).then(n,o)},this.addUserToRole=function(a,d){var e=q;return b.put(c.baseUrl+"roles/"+d+"/users/"+a,{},e).then(n,o)},this.findUsersByEmail=function(a,d,e){var f=_.cloneDeep(q);return f.params={email:a?a:"",limit:d?d:30,start:e?e:0},b.get(c.baseUrl+"users/",f).then(n,o)},this.findUserWithEmail=function(a){var d=_.cloneDeep(q);return b.get(c.baseUrl+"users/emails/"+a,d).then(n,o)},this.removeRole=function(a){return b["delete"](c.baseUrl+"roles/"+a,q).then(n,o)},this.getRoleLabels=function(a){return b.get(c.baseUrl+"roles/"+a+"/labels/",q).then(n,o)},this.addLabelToRole=function(a,d){return b.put(c.baseUrl+"roles/"+a+"/labels/"+d,{},q).then(n,o)},this.removeLabelFromRole=function(a,d){return b["delete"](c.baseUrl+"roles/"+a+"/labels/"+d,q).then(n,o)},this.removeUserFromRole=function(a,d){return b["delete"](c.baseUrl+"roles/"+a+"/users/"+d,q).then(n,o)},this.getUser=function(a){return b.get(c.baseUrl+"users/"+a,q).then(n,o)},this.getUserRoles=function(a){return b.get(c.baseUrl+"users/"+a+"/roles/",q).then(n,o)},this.getMyRoles=function(){return b.get(c.baseUrl+"user/roles/",q).then(n,o)},this.patchOffer=function(a,c,d){var e=_.cloneDeep(q);e.headers["Content-Type"]="application/ld+json;domain-model="+c;var f={reason:d};return b.patch(a,d?f:{},e).then(n,o)},this.publishOffer=function(a,c){var d=_.cloneDeep(q);d.headers["Content-Type"]="application/ld+json;domain-model=Publish";var e=c instanceof Date?{publicationDate:c}:{};return b.patch(a.toString(),e,d).then(n,o)},this.getCalendarSummary=function(a,d,e){var f=_.cloneDeep(q),g=c.baseUrl+"events/"+a,h=e+"_BE";return f.headers.Accept="text/html",b.get(g+"/calsum?format="+d+"&langCode="+h,f).then(n)},this.duplicateEvent=function(a,c){return b.post(a+"/copies/",c,q).then(n,o)}}angular.module("udb.core").service("udbApi",a),a.$inject=["$q","$http","appConfig","$cookies","uitidAuth","$cacheFactory","UdbEvent","UdbPlace","UdbOrganizer","Upload","$translate"]}(),function(){"use strict";function a(a,b,c){function d(a,b){var c,d=_.find(a.terms,function(a){return a.domain===b});return d&&(c=d.label),d}function e(a){var b=h.UNKNOWN;if(a.bookingInfo&&a.bookingInfo.length>0){var c=parseFloat(a.bookingInfo[0].price);b=c>0?h.PAYED:h.FREE}return b}function f(b){var c={en:!1,fr:!1,de:!1},d=["name","description"];_.forEach(c,function(e,f){var g,h=0;_.forEach(d,function(a){b[a]&&b[a][f]&&++h}),g=h?h===d.length?a.ALL:a.SOME:a.NONE,c[f]=g}),b.translationState=c}function g(a){var b=[];if(a.mediaObject)for(var c=0;c0&&(this.price=parseFloat(a.bookingInfo[0].price)),this.pricing=e(a),this.priceInfo=a.priceInfo||[],this.publisher=a.publisher||"",this.created=new Date(a.created),this.modified=new Date(a.modified),this.creator=a.creator||"",this.type=d(a,"eventtype")||"",this.theme=d(a,"theme")||"",this.onlineUrl=a.onlineUrl,this.attendanceMode=a.attendanceMode,this.status=a.status,this.bookingAvailability=a.bookingAvailability,this.calendarType=a.calendarType||"",this.startDate=a.startDate,this.endDate=a.endDate,this.subEvent=a.subEvent||[],this.openingHours=a.openingHours||[],this.mediaObject=a.mediaObject||[],this.typicalAgeRange=a.typicalAgeRange||"",this.bookingInfo=a.bookingInfo||{},this.bookingInfo.urlLabel&&(this.bookingInfo.urlLabel=_.get(a.bookingInfo.urlLabel,a.mainLanguage,a.bookingInfo.urlLabel)),this.contactPoint=a.contactPoint||{url:[],phone:[],email:[]},this.url="event/"+this.id,this.sameAs=a.sameAs,this.additionalData=a.additionalData||{},a.typicalAgeRange&&(this.typicalAgeRange=a.typicalAgeRange),a.available&&(this.available=a.available),a.workflowStatus&&(this.workflowStatus=a.workflowStatus),this.availableFrom=a.availableFrom,this.uitpasData={},this.audience={audienceType:_.get(a,"audience.audienceType","everyone")},this.educationFields=[],this.educationLevels=[],this.educationTargetAudience=[],a.terms&&(this.educationFields=_.filter(a.terms,"domain","educationfield"),this.educationLevels=_.filter(a.terms,"domain","educationlevel"),this.educationTargetAudience=_.filter(a.terms,function(a){var b="2.1.14.0.0",c="2.1.13.0.0";return"targetaudience"===a.domain&&(a.id===b||a.id===c)})),this.facilities=_.filter(_.get(a,"terms",[]),{domain:"facility"}),this.mainLanguage=a.mainLanguage||"nl",this.languages=a.languages||[]},setName:function(a,b){this.name[b]=a},getName:function(a){return this.name[a]},setEventType:function(a,b){this.type={id:a,label:b,domain:"eventtype"}},getEventType:function(){return this.type},getEventTypeLabel:function(){return this.type.label?this.type.label:""},setTheme:function(a,b){this.theme={id:a,label:b,domain:"thema"}},getTheme:function(){return this.theme},getThemeLabel:function(){return this.theme.label?this.theme.label:""},resetOpeningHours:function(){this.openingHours=[]},getOpeningHours:function(){return this.openingHours},setLocation:function(a){this.location=a},getLocation:function(){return this.location},label:function(a){var b=[],c=this.labels;_.isArray(a)&&(b=a),_.isString(a)&&(b=[a]),b=_.filter(b,function(a){var b=_.find(c,function(b){return b.toUpperCase()===a.toUpperCase()});return!b}),this.labels=_.union(this.labels,b)},unlabel:function(a){_.remove(this.labels,function(b){return b===a})},updateTranslationState:function(a){a=a||this,f(a)},isExpired:function(){return"permanent"!==this.calendarType&&new Date(this.endDate)a?!0:!1}return!1}},i}angular.module("udb.core").factory("UdbEvent",a),a.$inject=["EventTranslationState","UdbPlace","UdbOrganizer"]}(),function(){"use strict";function a(a){var b={restrict:"A",link:function(b,c,d){if(b.organizer.title)b.fetching=!1;else{b.fetching=!0;var e=a.getOrganizerByLDId(b.organizer.id);e.then(function(a){b.organizer=a,b.fetching=!1})}}};return b}angular.module("udb.core").directive("udbOrganizer",a),a.$inject=["udbApi"]}(),function(){"use strict";function a(a,b){function c(a){return d(a.labels)||d(a.hiddenLabels)}function d(b){return e(b)&&!_.isEmpty(_.intersection(e(b),_.values(e(a))))}function e(a){var b=[];return _.each(a,function(a,c){b[c]=a.toLowerCase()}),b}function f(a,b){return _.chain(a).get(b,[]).first().value()}function g(a){var c={en:!1,fr:!1,de:!1},d=["name"];_.forEach(c,function(e,f){var g,h=0;_.forEach(d,function(b){a[b]&&a[b][f]&&++h}),g=h?h===d.length?b.ALL:b.SOME:b.NONE,c[f]=g}),a.translationState=c}var h=function(a){this.id="",this.name="",a&&this.parseJson(a)};return h.prototype={parseJson:function(a){this["@id"]=a["@id"],this.id=a["@id"].split("/").pop(),this.name=_.get(a.name,a.mainLanguage,null)||_.get(a.name,"nl",null)||_.get(a,"name",""),this.description=_.get(a.description,a.mainLanguage,null)||_.get(a.description,"nl",null)||_.get(a,"description",""),this.educationalDescription=_.get(a.educationalDescription,a.mainLanguage,null)||_.get(a.educationalDescription,"nl",null)||_.get(a,"educationalDescription",""),this.address=_.get(a.address,a.mainLanguage,null)||_.get(a.address,"nl",null)||a.address||[],this.email=f(a,"contactPoint.email"),this.phone=f(a,"contactPoint.phone"),this.website=a.url,this.contactPoint=a.contactPoint,this.mediaObject=a.images||[],this.image=a.mainImage,this.labels=_.union(a.labels,a.hiddenLabels),this.hiddenLabels=a.hiddenLabels||[],this.isUitpas=c(a),this.created=new Date(a.created),this.deleted=Boolean("DELETED"===a.workflowStatus),this.detailUrl="/organizer/"+this.id},updateTranslationState:function(a){a=a||this,g(a)},regex:{url:new RegExp(/^(?:(?:(?:https?|ftp):)?\/\/)(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z0-9\u00a1-\uffff][a-z0-9\u00a1-\uffff_-]{0,62})?[a-z0-9\u00a1-\uffff]\.)+(?:[a-z\u00a1-\uffff]{2,}\.?))(?::\d{2,5})?(?:[/?#]\S*)?$/i)}},h}angular.module("udb.core").factory("UdbOrganizer",a),a.$inject=["UitpasLabels","EventTranslationState"]}(),function(){"use strict";function a(a,b,c,d){this.suggestOrganizers=function(c){function e(a){var b=_.map(a.member,function(a){return new d(a)});f.resolve(b)}var f=a.defer();return b.findOrganisations(0,10,null,c).then(e),f.promise},this.findOrganizersWebsite=function(a){return b.findOrganisations(0,10,a,null)},this.findOrganizersCardsystem=function(a){return c.findOrganisationsCardSystems(a)}}angular.module("udb.core").service("udbOrganizers",a),a.$inject=["$q","udbApi","udbUitpasApi","UdbOrganizer"]}(),function(){"use strict";function a(a,b,c){function d(a,b){var c=_.find(a.terms,function(a){return a.domain===b});return c?c:void 0}function e(a,b){var c=[];if(a.terms)for(var d=0;da?!0:!1}return!1}},h}angular.module("udb.core").factory("UdbPlace",a),a.$inject=["EventTranslationState","placeCategories","UdbOrganizer"]}(),function(){"use strict";function a(a,b,c){this.getUdb3ContentForCurrentUser=function(){return b.get(c.baseApiUrl+"udb3_content_current_user")}}angular.module("udb.core").service("udb3Content",a),a.$inject=["$q","$http","appConfig"]}(),function(){"use strict";function a(a,b,c,d,e){function f(){d.remove("token"),d.remove("user")}function g(){var a=b.protocol()+"://"+b.host(),c=b.port();return 80===c?a:a+":"+c}this.logout=function(){var b=g(),d=c.authUrl+"logout";f(),d+="?destination="+encodeURIComponent(b),a.location.href=d},this.login=function(d){var e=b.absUrl(),g=c.authUrl+"connect";f(),g+="?destination="+encodeURIComponent(e)+"&lang="+d,a.location.href=g},this.register=function(d){var e=b.absUrl(),g=c.authUrl+"register";f(),g+="?destination="+encodeURIComponent(e)+"&lang="+d,
-a.location.href=g},this.setToken=function(a){d.put("token",a),d.remove("user")},this.getToken=function(){var a=this,c=d.get("token"),e=b.search(),f=e.jwt;return f&&f!==c&&(c=f,a.setToken(f),window===window.parent&&b.search("jwt",null)),c},this.getUser=function(){return d.getObject("user")}}angular.module("udb.core").service("uitidAuth",a),a.$inject=["$window","$location","appConfig","$cookies","jwtHelper"]}(),function(){"use strict";function a(a,b,c){function d(a){return"?utm_source=uitdatabank.be&utm_medium=referral&utm_campaign=udb3&utm_content="+a+"&uid="+f.user.id}function e(a){var b=f.event.labels.concat(f.event.hiddenLabels),d=b.filter(function(b){return c[a].indexOf(b)>-1}).map(function(a){return a.replace("cultuurkuur_","")});return d}var f=this;if(f.cultuurkuurMaintenance=_.get(a,"cultuurkuur.maintenance"),f.cultuurkuurMaintenance)f.cultuurkuurMessage=_.get(a,"cultuurkuur.cultuurkuurMessage");else{var g=_.get(a,"cultuurkuur.cultuurkuurUrl");f.user=b.getUser(),f.previewLink=g+"agenda/e/x/"+f.event.id+d("preview1.0"),f.editLink=g+"event/"+f.event.id+"/edit"+d("edit1.0"),f.continueLink=g+"event/"+f.event.id+"/edit"+d("continue1.0"),f.educationFieldsViaLabels=e("educationFields"),f.educationLevelsViaLabels=e("educationLevels"),f.targetAudienceViaLabels=e("targetAudience"),f.cultuurKuurInfo={levels:f.educationLevelsViaLabels.length>0?f.educationLevelsViaLabels:_.pluck(f.event.educationLevels,"label"),fields:f.educationFieldsViaLabels.length>0?f.educationFieldsViaLabels:_.pluck(f.event.educationFields,"label"),targetAudience:f.targetAudienceViaLabels.length>0?f.targetAudienceViaLabels:_.pluck(f.event.educationTargetAudience,"label")},f.isIncomplete=0===f.cultuurKuurInfo.levels.length&&0===f.cultuurKuurInfo.fields.length,f.forSchools="education"===f.event.audience.audienceType}}angular.module("udb.cultuurkuur").component("udbEventCultuurkuurComponent",{bindings:{event:"<",permission:"<"},templateUrl:"templates/event-cultuurkuur.html",controller:a}),a.$inject=["appConfig","uitidAuth","cultuurkuurLabels"]}(),function(){"use strict";function a(){var a={restrict:"AE",controller:"OfferController",controllerAs:"offerCtrl",templateUrl:"templates/dashboard-item.directive.html"};return a}angular.module("udb.dashboard").directive("udbDashboardEventItem",a)}(),function(){"use strict";function a(){var a={restrict:"AE",controller:"OrganizerController",controllerAs:"organizerCtrl",templateUrl:"templates/dashboard-organizer-item.directive.html"};return a}angular.module("udb.dashboard").directive("udbDashboardOrganizerItem",a)}(),function(){"use strict";function a(){var a={restrict:"AE",controller:"OfferController",controllerAs:"offerCtrl",templateUrl:"templates/dashboard-item.directive.html"};return a}angular.module("udb.dashboard").directive("udbDashboardPlaceItem",a)}(),function(){"use strict";function a(a,b,c,d){function e(){function e(){a.saving=!1,a.error=!0}a.error=!1,a.saving=!0,c.deleteOffer(d).then(b.close)["catch"](e)}function f(){b.dismiss()}a.item=d,a.saving=!1,a.error=!1,a.cancelRemoval=f,a.deleteEvent=e}angular.module("udb.dashboard").controller("EventDeleteConfirmModalCtrl",a),a.$inject=["$scope","$uibModalInstance","eventCrud","item"]}(),function(){"use strict";function a(a,b,c,d,e,f,g,h,i){function j(){b.$watch(function(){return o.labels},function(a){b.event.labels=angular.copy(a)})}function k(a,b,c){var d=p.activeLanguage,f=c||a;b&&b!==o[a][d]&&e.translateProperty(o,f,d,b).then(o.updateTranslationState(o))}function l(){p.labelResponse="",p.labelsError=""}function m(a){b.event.labels=angular.copy(o.labels),p.labelResponse="unlabelError",p.labelsError=a.title}function n(a){l(),f.unlabel(o,a.name)["catch"](m)}var o,p=this,q=i.use()||"nl";p.translation=!1,p.activeLanguage=q,p.languageSelector=[{lang:"fr"},{lang:"en"},{lang:"de"}],p.labelRemoved=n,p.init=function(){return b.event.name?(b.event=c(b.event,q,!0),b.event.id=b.event["@id"].split("/").pop(),b.offerType="organizer",p.fetching=!1,void 0):(p.fetching=!0,a.getOffer(b.event["@id"]).then(function(a){return o=a,o.updateTranslationState(),b.event=c(o,q,!0),b.offerType="organizer",p.fetching=!1,j(),o}))},h.when(p.init())["finally"](function(){p.editable=!0}),p.hasActiveTranslation=function(){var a=o;return a&&a.translationState[p.activeLanguage]!==d.NONE},p.getLanguageTranslationIcon=function(a){var b=d.NONE.icon;return o&&a&&(b=o.translationState[a].icon),b},p.translate=function(){p.applyPropertyChanges("name")},p.toggleLanguage=function(a){a===p.activeLanguage?p.stopTranslating():(p.activeLanguage=a,p.translation=c(o,p.activeLanguage))},p.hasPropertyChanged=function(a){var b=p.activeLanguage,c=p.translation;return p.translation&&o[a][b]!==c[a]},p.undoPropertyChanges=function(a){var b=p.activeLanguage,c=p.translation;c&&(c[a]=o[a][b])},p.applyPropertyChanges=function(a){var b=p.translation[a];k(a,b,a)},p.stopTranslating=function(){p.translation=void 0,p.activeLanguage=q},p.labelAdded=function(a){var c=_.find(o.labels,function(b){return a.name.toUpperCase()===b.toUpperCase()});c?(b.$apply(function(){b.event.labels=angular.copy(o.labels)}),g.alert('Het label "'+a.name+'" is reeds toegevoegd als "'+c+'".')):f.label(o,a.name).then(function(a){a.success?(p.labelResponse="success",p.addedLabel=a.name):(p.labelResponse="error",p.labelsError=a),b.event.labels=angular.copy(o.labels)})}}angular.module("udb.dashboard").controller("OrganizerController",a),a.$inject=["udbApi","$scope","jsonLDLangFilter","EventTranslationState","offerTranslator","offerLabeller","$window","$q","$translate"]}(),function(){"use strict";function a(a,b,c,d,e,f){function g(){function e(){a.saving=!1,a.error=!0}a.saving=!0,a.error=!1,c.deleteOffer(d).then(b.close)["catch"](e)}function h(){b.dismiss()}a.place=d,a.saving=!1,a.events=e?e:[],a.hasEvents=a.events.length>0,a.baseUrl=f.udb3BaseUrl,a.cancelRemoval=h,a.deletePlace=g}angular.module("udb.dashboard").controller("PlaceDeleteConfirmModalCtrl",a),a.$inject=["$scope","$uibModalInstance","eventCrud","place","events","appConfig"]}(),function(){!function(){"use strict";function a(a,b,c,d,e,f,g,h,i,j){function k(a){u.username=a.username}function l(a){return a.member&&(a.member=a.member.map(function(a){var b=a["@context"]?a["@context"].split("/").pop():"";return b=b.charAt(0).toUpperCase()+b.slice(1),a["@type"]=a["@type"]?a["@type"]:b,a})),a}function m(b){b=l(b),e.addPagedCollection(b),u.pagedItemViewer.setResults(b),a.scrollTop(0)}function n(){c.getDashboardItems(u.pagedItemViewer.currentPage).then(m)}function o(b){b=l(b),e.addPagedCollection(b),u.pagedItemViewerOrganizers.setResults(b),a.scrollTop(0)}function p(){c.getDashboardOrganizers(u.pagedItemViewer.currentPage).then(o)}function q(a){var c=b.open({templateUrl:"templates/event-delete-confirm-modal.html",controller:"EventDeleteConfirmModalCtrl",resolve:{item:function(){return a}}});c.result.then(function(){a.showDeleted=!0})}function r(a){function c(a,c){var d=b.open({templateUrl:"templates/place-delete-confirm-modal.html",controller:"PlaceDeleteConfirmModalCtrl",resolve:{place:function(){return a},events:function(){return c}}});d.result.then(function(){a.showDeleted=!0})}function e(b){c(a,b)}d.findEventsAtPlace(a.apiUrl).then(e)}function s(a){var b=-1===a["@id"].indexOf("place")?"event":"place";a.name=a.name.replace(/'/g,""),"event"===b?q(a):r(a)}function t(){var a=b.open({templateUrl:"templates/event-form-organizer-modal.html",controller:"EventFormOrganizerModalController",resolve:{organizerName:function(){return""}}});a.result.then(function(a){i.go("management.organizers.detail",{id:a.id})})}var u=this,v=j.use();if(u.pagedItemViewer=new f(50,1),u.pagedItemViewerOrganizers=new f(50,1),u.openDeleteConfirmModal=s,u.updateItemViewer=n,u.openCreateOrganizerModal=t,u.updateOrganizerViewer=p,u.toggleInfoMessage=g.toggleInfoMessage,u.username="",u.hideOnlineDate=!1,g.infoMessage&&g.infoMessage[v]&&(u.infoMessage=g.infoMessage[v]),"undefined"!=typeof g.addOffer?("undefined"!=typeof g.addOffer.toggle?(u.toggleAddOffer=g.addOffer.toggle,g.addOffer.toggle&&("undefined"!=typeof g.addOffer.expirationDate||""!==g.addOffer.expirationDate)&&(h().isAfter(h(g.addOffer.expirationDate))?u.toggleAddOffer=!1:u.toggleAddOffer=!0)):u.toggleAddOffer=!0,"undefined"!=typeof g.addOffer.expirationMessage||""!==g.addOffer.expirationMessage?u.addOfferExpirationMessage=g.addOffer.expirationMessage:u.addOfferExpirationMessage=""):u.toggleAddOffer=!0,"undefined"!=typeof g.offerEditor.defaultPublicationDate){var w=g.offerEditor.defaultPublicationDate;""!==w&&(u.hideOnlineDate=!0)}if("undefined"!=typeof g.publicationRulesLink){var x=g.publicationRulesLink;""!==x&&(u.publicationRulesLink=x)}if("undefined"!=typeof g.enableMyOrganizers){var y=g.enableMyOrganizers;""!==y&&(u.enableMyOrganizers=y)}c.getMe().then(k),n(),p()}angular.module("udb.dashboard").controller("DashboardController",a),a.$inject=["$document","$uibModal","udbApi","eventCrud","offerLocator","SearchResultViewer","appConfig","moment","$state","$translate"]}()}(),function(){"use strict";function a(){return{templateUrl:"templates/dashboard.html",controller:"DashboardController",controllerAs:"dash",restrict:"EA"}}angular.module("udb.dashboard").directive("udbDashboard",a)}(),function(){"use strict";function a(a,b,c,d,e){function f(a){c.$emit("duplicateTimingChanged",a)}var g=this,h=a.clone();d("BaseCalendarController",{calendar:g,$scope:e}),g.init(h,_.cloneDeep(b)),g.timeSpans.forEach(function(a){a.status={type:"Available"}}),g.timeSpans.forEach(function(a){a.bookingAvailability={type:"Available"}}),g.formData.timingChanged$.subscribe(f)}angular.module("udb.duplication").controller("DuplicationCalendarController",a),a.$inject=["EventFormData","OpeningHoursCollection","$rootScope","$controller","$scope"]}(),function(){"use strict";function a(){return{restrict:"AE",controller:"DuplicationCalendarController",controllerAs:"calendar",templateUrl:"templates/form-event-calendar.component.html"}}angular.module("udb.duplication").directive("udbEventDuplicationCalendar",a)}(),function(){"use strict";function a(a){return a[1]}function b(b,c,d,e){function f(a){d.go("split.eventEdit",{id:a})}function g(){i.asyncError=!0,i.duplicating=!1}function h(){i.asyncError=!1,i.duplicating=!0}var i=this,j=b.$eventToObservable("duplicateTimingChanged").map(a),k=e.createObservableFunction(i,"createDuplicate"),l=j.startWith(!1);l.subscribe(function(a){i.readyForDuplication=!!a}),k.withLatestFrom(l,function(a,b){b&&(h(),c.duplicate(b).then(f,g))}).subscribe()}angular.module("udb.duplication").component("udbEventDuplicationFooter",{templateUrl:"templates/event-duplication-footer.component.html",controller:b,controllerAs:"duplication"}),b.$inject=["$rootScope","eventDuplicator","$state","rx"]}(),function(){"use strict";function a(a){var b=this;b.eventId=a.id,b.readyToDuplicate=function(){return!1}}angular.module("udb.duplication").component("udbEventDuplicationStep",{templateUrl:"templates/event-duplication-step.component.html",controller:a,controllerAs:"duplication"}),a.$inject=["EventFormData"]}(),function(){"use strict";function a(a,b){function c(a){return b.add(a.eventId,a.url),a.eventId}var d=["calendar"];this.duplicate=function(b){var e=_.pick(b,d);return b.openingHours&&(e.calendar.openingHours=b.openingHours),a.duplicateEvent(b.apiUrl,e.calendar).then(c)}}angular.module("udb.duplication").service("eventDuplicator",a),a.$inject=["udbApi","offerLocator"]}(),function(){"use strict";angular.module("udb.entry").constant("JobLogoStates",{WARNING:"warning",COMPLETE:"complete",BUSY:"busy",IDLE:"idle"})}(),function(){"use strict";function a(a,b,c){var d=this;d.updateCurrentState=function(){var c=[{state:a.WARNING,check:!_.isEmpty(b.getFailedJobs())},{state:a.COMPLETE,check:!_.isEmpty(b.getFinishedExportJobs())},{state:a.BUSY,check:b.hasActiveJobs()},{state:a.IDLE,check:!0}],e=_.find(c,function(a){return a.check}).state;d.state=e},d.getState=function(){return d.state},d.updateCurrentState(),c.$on("jobListsUpdated",d.updateCurrentState)}angular.module("udb.entry").controller("JobLogoController",a),a.$inject=["JobLogoStates","jobLogger","$rootScope"]}(),function(){"use strict";function a(){function a(a,b,c){}var b={templateUrl:"templates/job-logo.directive.html",restrict:"EA",link:a,controllerAs:"jl",controller:"JobLogoController"};return b}angular.module("udb.entry").directive("udbJobLogo",a)}(),function(){"use strict";function a(a,b,c,d,e){function f(a){var b=_.pick(a,function(a,b){var c="$"===b.charAt(b.length-1);return(_.isDate(a)||!_.isEmpty(a))&&!c});return b.location&&b.location.id&&(b.location=b.location.id),b.calendar.status=b.status,b.openingHours&&(b.calendar.openingHours=b.openingHours),b}function g(b,c,d){return a.updateProperty(b.apiUrl,c,b[c]).then(i(b))}function h(a,b){j.updateMajorInfo(b)}function i(b){function c(c){a.removeItemFromCache(b.apiUrl.toString())}return c}var j=this;j.createOffer=function(b){var d=b.isEvent?"event":"place",g=function(d){return b.apiUrl=d,b.id=d.toString().split("/").pop(),e.add(b.id,b.apiUrl),c.$emit("eventFormSaved",b),a.getOffer(d).then(function(a){c.$emit("offerCreated",a)}),b},h=f(b);return a.createOffer(d,h).then(g)},j.findEventsAtPlace=function(b){return a.findEventsAtPlace(b)},j.deleteOffer=function(b){function c(){b.showDeleted=!0}return a.deleteOffer(b).then(c)},j.updateMajorInfo=function(b){var c=f(b);a.updateMajorInfo(b.apiUrl,c).then(i(b))},j.createOrganizer=function(b){return a.createOrganizer(b)},j.updateDescription=function(b){return a.translateProperty(b.apiUrl,"description",b.mainLanguage,b.description[b.mainLanguage]).then(i(b))},j.translateAddress=function(a){return g(a,"typicalAgeRange","updateTypicalAgeRange")},j.updateTypicalAgeRange=function(b){var c=b.isEvent?"events":"places",d=b.apiUrl.origin+"/"+c+"/"+b.id;return a.updateTypicalAgeRange(d,b.typicalAgeRange).then(i(b))},j.deleteTypicalAgeRange=function(b){return a.deleteTypicalAgeRange(b.apiUrl).then(i(b))},j.updateOrganizer=function(b){return a.updateProperty(b.apiUrl,"organizer",b.organizer.id).then(i(b))},j.deleteOfferOrganizer=function(b){return a.deleteOfferOrganizer(b.apiUrl,b.organizer.id).then(i(b))},j.updateEventUitpasData=function(a){return b.updateEventUitpasData(a.usedDistributionKeys,a.id).then(i(a))},j.getEventUitpasData=function(a){return b.getEventUitpasData(a)},j.updatePriceInfo=function(b){return a.updatePriceInfo(b.apiUrl,b.priceInfo).then(i(b))},j.updateContactPoint=function(a){return g(a,"contactPoint","updateContactInfo")},j.updateBookingInfo=function(b){var c=["url","urlLabel","email","phone","availabilityStarts","availabilityEnds"],d=_.pick(b.bookingInfo,function(a,b){return _.includes(c,b)&&(_.isDate(a)||!_.isEmpty(a))});return _.has(d,"url")||(d=_.omit(d,"urlLabel")),0===_.intersection(_.keysIn(d),["url","phone","email"]).length&&(d={}),a.updateProperty(b.apiUrl,"bookingInfo",d).then(i(b))},j.updateFacilities=function(b,c){return a.updateOfferFacilities(b.apiUrl,_.map(c,"id")).then(i(b))},j.addImage=function(b,c){var d=c.id||c["@id"].split("/").pop();return a.addImage(b.apiUrl,d).then(i(b))},j.updateImage=function(b,c,d,e){var f=c["@id"].split("/").pop();return a.updateImage(b.apiUrl,f,d,e).then(i(b))},j.removeImage=function(b,c){var d=c["@id"].split("/").pop();return a.removeImage(b.apiUrl,d).then(i(b))},j.selectMainImage=function(b,c){var d=c["@id"].split("/").pop();return a.selectMainImage(b.apiUrl,d).then(i(b))},j.setAudienceType=function(b,c){return a.setAudienceType(b.apiUrl,c).then(i(b))},j.publishOffer=function(b,c){return a.publishOffer(b.apiUrl,c).then(i(b))},c.$on("eventTypeChanged",h),c.$on("eventThemeChanged",h),c.$on("eventTimingChanged",h),c.$on("eventTitleChanged",h)}angular.module("udb.entry").service("eventCrud",a),a.$inject=["udbApi","udbUitpasApi","$rootScope","$q","offerLocator"]}(),function(){"use strict";function a(a,c){var d=function(d,e,f){a.call(this,d),this.type="label_batch",this.events=e,this.addEventsAsTask(e),this.label=f,this.messages={},this.messages[c.CREATED]=b(this,c.CREATED,c),this.messages[c.STARTED]=b(this,c.STARTED,c),this.messages[c.FINISHED]=b(this,c.FINISHED,c),this.messages[c.FAILED]=b(this,c.FAILED,c)};return d.prototype=Object.create(a.prototype),d.prototype.constructor=d,d.prototype.addEventsAsTask=function(a){var b=this;_.forEach(a,function(a){b.addTask({id:a})})},d.prototype.getDescription=function(){return b(this,this.state,c)},d}function b(a,b,c){var d;return d=b===c.FAILED?"Labelen van items mislukt":"Label "+a.events.length+' items met "'+a.label+'"'}angular.module("udb.entry").factory("OfferLabelBatchJob",a),a.$inject=["BaseJob","JobStates"]}(),function(){"use strict";function a(a){function b(){f.alert=!1;var b=f.labelSelection.filter(function(a){return a.selected}).map(function(a){return a.name}),c=e(f.labelNames);if(!f.alert){var d=_.union(b,c);a.close(d)}}function c(){a.dismiss("cancel")}function d(a){return a>=f.minimumInputLength&&a<=f.maxInputLength}function e(a){var b=a.split(";");b=_.each(b,function(a,c){b[c]=a.trim()}),b=_.without(b,"");var c;for(c=0;c',restrict:"E",link:function(a,b,c){a.jobTemplateUrl="templates/"+a.job.getTemplateName()+".template.html",a.taskCount=0,a.completedTaskCount=0}};return a}angular.module("udb.entry").directive("udbJob",a)}(),function(){"use strict";function a(a,b){var c=io.connect(b.socketUrl),d=a({ioSocket:c});return d}angular.module("udb.entry").factory("udbSocket",a),a.$inject=["socketFactory","appConfig"]}(),function(){"use strict";function a(a,b){return{restrict:"C",link:function(c,d,e){c.working=!1,a.setInterval(function(){c.working=b.hasActiveJobs(),d.toggleClass("working",c.working)},2e3)}}}angular.module("udb.entry").directive("udbWorkIndicator",a),a.$inject=["$window","jobLogger"]}(),function(){"use strict";function a(a){this.translateProperty=function(b,c,d,e){return"title"===c&&(c="name"),a.translateProperty(b.apiUrl,c,d,e).then(function(){b[c][d]=e})},this.translateAddress=function(b,c,d){return a.translateAddress(b.id,c,d).then(function(){b.address[c]=d})}}angular.module("udb.entry").service("offerTranslator",a),a.$inject=["udbApi"]}(),function(){"use strict";function a(){return{templateUrl:"templates/event-detail.html",restrict:"EA",controller:EventDetail}}angular.module("udb.event-detail").directive("udbEventDetail",a)}(),function(){"use strict";function a(a){a.isEmpty=_.isEmpty,a.hasAtLeastOneContactPoint=function(){return a.bookingInfo.phone||a.bookingInfo.url||a.bookingInfo.email}}angular.module("udb.event-detail").directive("udbBookingInfoDetail",function(){return{templateUrl:"templates/booking-info-detail.directive.html",controller:a,restrict:"A",scope:{bookingInfo:"0});c.length&&p(b).then(function(b){angular.forEach(b.member,function(b){b["@id"]===a.eventId&&(a.moderationPermission=!0)})})})}function v(){a.eventIdIsInvalid=!0}function w(a){var b=f.open({templateUrl:"templates/event-delete-confirm-modal.html",controller:"EventDeleteConfirmModalCtrl",resolve:{item:function(){return a}}});b.result.then(E.goToDashboard)}function x(b){var c=_.find(H.labels,function(a){return b.name.toUpperCase()===a.toUpperCase()});c?h.alert('Het label "'+b.name+'" is reeds toegevoegd als "'+c+'".'):i.label(H,b.name).then(function(b){b.success?(a.labelResponse="success",a.addedLabel=b.name):(a.labelResponse="error",a.labelsError=b),a.event.labels=angular.copy(H.labels)})}function y(){a.labelResponse="",a.labelsError=""}function z(b){a.event.labels=angular.copy(H.labels),a.labelResponse="unlabelError",a.labelsError=b.title}function A(a){y(),i.unlabel(H,a.name)["catch"](z)}function B(){var b=_.filter(a.event.contactPoint,function(a){return a.length>0});a.hasContactPointResults=b.length>0}function C(){var b=a.event.bookingInfo;a.hasBookingInfoResults=!(""===b.phone&&""===b.email&&""===b.url)}var D="data",E=this,F="udb-filminvoer";a.cultuurkuurEnabled=_.get(k,"cultuurkuur.enabled"),a.isOmdApp=!!_.get(k,"omdSpecific",!1),g.when(b,function(b){a.eventId=b;var d=c.getOffer(b),e=c.hasPermission(b);d.then(u,v),g.all([e,d]).then(o)}),a.eventIdIsInvalid=!1,a.labelAdded=x,a.labelRemoved=A,a.eventHistory=void 0,a.calendarSummary=void 0,a.deleteEvent=function(){w(a.event)},a.isEmpty=_.isEmpty;var G=j.use()||"nl";a.language=G;var H;a.eventLocation=function(b){var c=d(b.location,G,!0),e=[c.name];return b.location.type&&e.push(a.translateType(b.location.type.label)),b.location.address.streetAddress&&e.push(b.location.address.streetAddress),b.location.address.addressLocality&&e.push(b.location.address.addressLocality),e.join(", ")},a.eventIds=function(a){return _.union([a.id],a.sameAs)},a.isUrl=function(a){return/^(https?)/.test(a)},a.isTabActive=function(a){return a===D},a.makeTabActive=function(b){if(D=b,"history"===b&&!a.eventHistory){var d=a.eventId.toString().split("/").pop();c.getHistory(d).then(r)}},a.openEditPage=function(){var b=a.eventId.toString(),c=b.split("/").pop();e.go("split.eventEdit",{id:c})},a.openEditPageMovies=function(){var b=a.eventId.toString(),c=b.split("/").pop();e.go("split.eventEditMovie",{id:c})},a.duplicateMovie=function(){var b=a.eventId.toString(),d=_.pick(a.event,["calendarType","subEvent"]);d.subEvent.length>0&&d.subEvent.forEach(function(a){a.status={type:"Available"},a.bookingAvailability={type:"Available"}}),c.duplicateEvent(b,d).then(function(a){var b=a.eventId,d=a.url;c.labelOffer(d,F).then(function(){e.go("split.eventEditMovie",{id:b})})["catch"](function(a){throw a})})["catch"](function(a){console.log("error",a)})},a.openTranslatePage=function(){var b=a.eventId.toString(),c=b.split("/").pop();e.go("split.eventTranslate",{id:c})},E.goToDashboard=function(){e.go("split.footer.dashboard")},a.translateAudience=function(a){return j.instant("audience."+a)},a.translateType=function(a){var b=j.instant("offerTypes."+a);return _.includes(b,"offerTypes.")?a:b},a.finishedLoading=function(){return a.event&&a.permissions}}angular.module("udb.event-detail").controller("EventDetailController",a),a.$inject=["$scope","eventId","udbApi","jsonLDLangFilter","$state","$uibModal","$q","$window","offerLabeller","$translate","appConfig","ModerationService","RolePermission","authorizationService"]}(),function(){"use strict";angular.module("udb.event-form").constant("calendarLabels",[{label:"Eén of meerdere dagen",id:"single",eventOnly:!0},{label:"Van ... tot ... ",id:"periodic",eventOnly:!0},{label:"Permanent",id:"permanent",eventOnly:!1}])}(),function(){"use strict";function a(){return{restrict:"A",require:"ngModel",link:function(a,b,c,d){function e(a){var b=parseInt(a);if(isNaN(b))return d.$setViewValue(void 0),void d.$render();var c=Math.abs(b);return c.toString()!==a&&(d.$setViewValue(c.toString()),d.$render()),c}d.$formatters.push(e),d.$parsers.splice(0,0,e)}}}angular.module("udb.event-form").directive("udbAgeInput",a)}(),function(){"use strict";function a(a,b,c,d){function e(){i();var b=n.minAge,d=n.maxAge,e=n.formData.getTypicalAgeRange();if(!e||e.min!==b||e.max!==d){if(_.isNumber(b)&&_.isNumber(d)&&b>d)return n.hasError=!0,void h(c.instant("eventForm.step4.age.error_max_lower_than_min"));n.formData.setTypicalAgeRange(b,d),a.$emit("changeTypicalAgeRange",n.formData.typicalAgeRange)}}function f(){a.$apply(e)}function g(){n.delayedSaveAgeRange.cancel(),e()}function h(a){n.error=a}function i(){n.error="",n.hasError=!1}function j(a,b){return function(c){var d=c.min===a&&c.max===b,e=!(isNaN(a)&&isNaN(b))&&c===o.CUSTOM;return d?d:e}}function k(a){n.formData=a;var b=a.getTypicalAgeRange();b&&l(b.min,b.max)}function l(a,b){var c=_.findKey(o,j(a,b));n.minAge=a,n.maxAge=b,n.rangeInputEnabled=c&&"ALL"!==c,n.activeAgeRange=c}function m(a){var b=o[a];b&&("CUSTOM"!==a&&(n.minAge=b.min,n.maxAge=b.max),n.rangeInputEnabled="ALL"!==a,n.activeAgeRange=a,e())}var n=this,o=Object.freeze({ALL:{label:"All ages"},TODDLERS:{label:"Toddlers",min:0,max:2},PRESCHOOLERS:{label:"Preschoolers",min:3,max:5},KIDS:{label:"Kids",min:6,max:11},TEENAGERS:{label:"Teenagers",min:12,max:15},YOUNGSTERS:{label:"Youngsters",min:16,max:26},ADULTS:{label:"Adults",min:18},SENIORS:{label:"Seniors",
-min:65},CUSTOM:{label:"Custom"}});n.ageRanges=angular.copy(o),n.activeAgeRange=void 0,n.minAge=void 0,n.maxAge=void 0,n.setAgeRangeByType=m,n.delayedSaveAgeRange=_.debounce(f,1e3),n.instantSaveAgeRange=g,n.error="",n.formData=void 0,k(b),a.translateAgeRange=function(a){return c.instant("eventForm.step4.age."+a)},a.getAgeRangeLabel=function(a){return"undefined"==typeof a.min&&"undefined"==typeof a.max?"":"number"==typeof a.min&&"number"==typeof a.max?a.min.toString()+"-"+a.max.toString():a.min.toString()+"+"}}angular.module("udb.event-form").controller("FormAgeController",a),a.$inject=["$scope","EventFormData","$translate","$rootScope"]}(),function(){"use strict";function a(){return{templateUrl:"templates/form-age.html",restrict:"EA",controller:"FormAgeController",controllerAs:"fagec"}}angular.module("udb.event-form").directive("udbFormAge",a)}(),function(){"use strict";function a(a,b,c){function d(c){b.setAudienceType(a,c)}function e(){return a.getLocation().isDummyPlaceForEducationEvents}var f=this,g=_.get(c,"offerEditor.disableAudience");f.enabled=!g&&a.isEvent,f.audienceType=e()?"education":a.audienceType,f.setAudienceType=d,f.isBookableEvent=e}angular.module("udb.event-form").controller("FormAudienceController",a),a.$inject=["EventFormData","eventCrud","appConfig"]}(),function(){"use strict";function a(){return{templateUrl:"templates/form-audience.html",restrict:"EA",controller:"FormAudienceController",controllerAs:"fac"}}angular.module("udb.event-form").directive("udbFormAudience",a)}(),function(){"use strict";function a(a){function b(b,c){function d(b){a.scrollTo(b.target,100,e,f)}var e=1e3,f=function(a){return.5>a?2*a*a:-1+(4-2*a)*a};c.on("click focusin",d)}return{restrict:"A",link:b}}angular.module("udb.event-form").directive("udbAutoScroll",a),a.$inject=["$document"]}(),function(){"use strict";function a(a,b,c){function d(b,c){a.formData=b,a.isEvent=b.isEvent,a.isPlace=b.isPlace,a.offerStatus=b.status,a.subEvent=b.subEvent,a.timeSpans=_.isEmpty(b.calendar.timeSpans)?[]:b.calendar.timeSpans,a.setType(b.calendar.calendarType?b.calendar.calendarType:"single"),a.openingHoursCollection=c}function e(a){return"permanent"===a||"periodic"===a}function f(b){a.formData.setCalendarType(b),a.type=b,a.weeklyRecurring=e(b),"single"===b&&_.isEmpty(a.timeSpans)&&g()}function g(){a.timeSpans=[{allDay:!0,start:moment().startOf("day").toDate(),end:moment().endOf("day").toDate(),endTouched:!1,status:{type:"Available"}}]}function h(){if(_.isEmpty(a.timeSpans))g(),a.instantTimeSpanChanged();else{var b=_.cloneDeep(_.last(a.timeSpans));b.status={type:"Available"},b.bookingAvailability={type:"Available"},a.timeSpans.push(b)}}function i(b){a.timeSpans.length>1&&(a.timeSpans=_.without(a.timeSpans,b),a.instantTimeSpanChanged())}function j(a){b.$apply(m(a))}function k(){a.delayedTimeSpanChanged.cancel(),m()}function l(a){a.allDay?(a.start=moment(a.start).set({hour:0,minute:0,millisecond:0}).toDate(),a.end=moment(a.end).endOf("day").toDate()):(a.start=moment(a.start).set({hour:moment().startOf("hour").format("H"),minute:0}).toDate(),a.end=moment(a.end).set({hour:moment().startOf("hour").add(4,"h").format("H"),minute:0,second:0}).toDate()),k()}function m(b){var c=_.map(a.timeSpans,p);_.isEmpty(_.flatten(c))?(a.timeSpans.length>1?"multiple"!==a.type&&f("multiple"):"single"!==a.type&&f("single"),n(),_.each(a.timeSpans,function(a){"end"!==b||a.endTouched||(a.endTouched=!0),a.allDay&&(a.start=moment(a.start).startOf("day").toDate(),a.end=moment(a.end).endOf("day").toDate()),"start"!==b||a.endTouched||a.start>a.end&&(a.end=moment(a.start).endOf("day").toDate())}),a.formData.saveTimeSpans(a.timeSpans)):o(c)}function n(){a.timeSpanRequirements=[]}function o(b){a.timeSpanRequirements=b}function p(b){var c={timedWhenNotAllDay:function(a){return!(a.allDay||a.start&&a.end)},startBeforeEndDay:function(a){return a.endTouched&&a.start&&a.end&&moment(a.start).isAfter(a.end,"day")},startBeforeEnd:function(a){return!a.allDay&&a.start&&a.end&&moment(a.start).isSame(a.end,"day")&&moment(a.start).isAfter(a.end)},tooFarInFuture:function(c){var d=moment().add(a.maxYearTimeSpan,"y");return moment(b.end).isAfter(d)}},d=_.pick(c,function(a){return a(b)});return _.keys(d)}a.type="",a.setType=f,a.createTimeSpan=h,a.timeSpans=[],a.timeSpanRequirements=[],a.removeTimeSpan=i,a.weeklyRecurring=!1,a.delayedTimeSpanChanged=_.debounce(j,1e3),a.instantTimeSpanChanged=k,a.toggleAllDay=l,a.init=d,a.maxYearTimeSpan=_.get(c,"offerEditor.calendar.maxYearTimeSpan",10)}angular.module("udb.event-form").controller("BaseCalendarController",a),a.$inject=["calendar","$scope","appConfig"]}(),function(){"use strict";function a(a){function b(b){if(""!==a.calendarHighlight.date){var c=moment(b.date),d=moment(a.calendarHighlight.date);if(c.isSame(d,b.mode))return a.calendarHighlight.extraClass}}var c=this,d={minDate:new Date,showWeeks:!1,customClass:b};c.$onInit=function(){c.isOpen=!1,c.options=d,c.ngModel.$render=function(){c.date=new Date(c.ngModel.$viewValue)}},c.open=function(){c.isOpen=!0},c.changed=function(){if(c.date){var a=moment(c.ngModel.$viewValue),b=moment(c.date).hour(a.hour()).minute(a.minute());c.ngModel.$setViewValue(b.toDate())}}}angular.module("udb.event-form").component("udbFormCalendarDatepicker",{templateUrl:"templates/form-calendar-datepicker.component.html",controller:a,require:{ngModel:"^ngModel"},bindings:{disabled:"=ngDisabled"},controllerAs:"datepicker"}),a.$inject=["appConfig"]}(),function(){"use strict";function a(){var a=this;a.calendarType=a.formData.calendar.calendarType}angular.module("udb.event-form").component("udbFormCalendarPeriod",{templateUrl:"templates/form-calendar-period.component.html",controller:a,bindings:{formData:"=",disabled:"=ngDisabled"}})}(),function(){"use strict";function a(){var a=this;a.$onInit=function(){a.ngModel.$render=function(){a.time=new Date(a.ngModel.$viewValue)}},a.changed=function(){a.time&&a.ngModel.$setViewValue(a.time)}}angular.module("udb.event-form").component("udbFormCalendarTimepicker",{templateUrl:"templates/form-calendar-timepicker.component.html",controller:a,require:{ngModel:"^ngModel"},bindings:{disabled:"=ngDisabled"},controllerAs:"timepicker"})}(),function(){"use strict";function a(a,b,c,d){var e=this;d("BaseCalendarController",{calendar:e,$scope:c}),e.init(a,b)}angular.module("udb.event-form").controller("FormCalendarController",a),a.$inject=["EventFormData","OpeningHoursCollection","$scope","$controller"]}(),function(){"use strict";angular.module("udb.event-form").component("udbFormEventCalendar",{templateUrl:"templates/form-event-calendar.component.html",controller:"FormCalendarController",controllerAs:"calendar"})}(),function(){"use strict";angular.module("udb.event-form").component("udbFormPlaceCalendar",{templateUrl:"templates/form-place-calendar.component.html",controller:"FormCalendarController",controllerAs:"calendar"})}(),function(){"use strict";function a(a,b,c,d,e){function f(){b.dismiss("cancel")}function g(){function f(){a.saving=!1,a.error=!0}function g(){var a=angular.copy(e);a.description=h,a.copyrightHolder=i,c.updateMediaObject(a),b.close(a)}var h=a.description,i=a.copyrightHolder;d.updateImage(c,e,h,i).then(g,f)}function h(){return a.description&&a.copyrightHolder&&a.description.length<=250&&a.copyrightHolder.length>=2}a.saving=!1,a.error=!1,a.description=e.description||"",a.copyrightHolder=e.copyrightHolder||"",a.cancel=f,a.updateImageInfo=g,a.allFieldsValid=h}angular.module("udb.event-form").controller("EventFormImageEditController",a),a.$inject=["$scope","$uibModalInstance","EventFormData","eventCrud","mediaObject"]}(),function(){"use strict";function a(a,b,c,d,e){function f(){b.dismiss("cancel")}function g(){a.error=!0,a.saving=!1}function h(){a.saving=!0,a.error=!1}function i(){function f(){c.removeMediaObject(e),a.saving=!1,b.close()}h(),d.removeImage(c,e).then(f,g)}a.saving=!1,a.error=!1,a.cancel=f,a.removeImage=i}angular.module("udb.event-form").controller("EventFormImageRemoveController",a),a.$inject=["$scope","$uibModalInstance","EventFormData","eventCrud","image"]}(),function(){"use strict";function a(a,b,c,d,e,f,g,h,i,j){function k(){a.modalTitle=i.instant("eventForm.imageUpload.modalTitle"),a.showAgreements=!1,h.confirm()}function l(){b.dismiss("cancel")}function m(){a.error=!1}function n(b,c){if(a.selectedFile=b?b:null,c.length){var d=q[c[0].$error];a.error=d?d:q["default"]}else m()}function o(){function e(b){var c=b.data.title,d=i.instant("eventForm.imageUpload.somethingWentWrongError");switch(c){case"The uploaded file is not an image.":d=i.instant("eventForm.imageUpload.formatNotValidError")+i.instant("eventForm.imageUpload.extensionsAllowed");break;case"The file size of the uploaded image is too big.":d=i.instant("eventForm.imageUpload.sizeError")}a.saving=!1,a.error=d}function h(f){function g(){a.saving=!1,c.addImage(f),l.resolve(f),b.close(f)}d.addImage(c,f).then(g,e)}if(!a.selectedFile)return void(a.error=i.instant("eventForm.imageUpload.noFileSelectedError"));a.saving=!0;var j=a.description,k=a.copyright,l=g.defer(),m=c.mainLanguage?c.mainLanguage:"nl";return f.createImage(a.selectedFile,j,k,m).then(h,e),l.promise}function p(){return a.description&&a.copyright&&a.selectedFile&&a.description.length<=250&&a.copyright.length>=2}a.userAgreementUrl=j("translate")("images.conditions_url"),a.copyrightUrl="/"+i.use()+_.get(e,"media.copyrightUrl","/copyright"),a.saving=!1,a.error=!1,a.showAgreements=!h.confirmed(),a.modalTitle=i.instant("eventForm.imageUpload.modalTitle"),a.description="",a.copyright="",a.maxFileSize=_.get(e,"media.fileSizeLimit","1MB"),a.acceptAgreements=k,a.cancel=l,a.addImage=o,a.clearError=m,a.selectFile=n,a.allFieldsValid=p;var q={"default":i.instant("eventForm.imageUpload.defaultError"),maxSize:i.instant("eventForm.imageUpload.maxSize")+a.maxFileSize+"."}}angular.module("udb.event-form").controller("EventFormImageUploadController",a),a.$inject=["$scope","$uibModalInstance","EventFormData","eventCrud","appConfig","MediaManager","$q","copyrightNegotiator","$translate","$filter"]}(),function(){"use strict";function a(a,b){function c(a){i=_.cloneDeep(a.getOpeningHours()),0===i.length&&a.createNewOpeningHours(),j.openingHoursCollection=a}function d(){f();var b=j.openingHoursCollection.validate();_.isEmpty(b)?a.close(j.openingHoursCollection.serialize()):e(b)}function e(a){j.errors=a}function f(){j.errors={}}function g(){j.openingHoursCollection.createNewOpeningHours()}function h(a){j.openingHoursCollection.removeOpeningHours(a),f()}var i,j=this;c(b),j.saveOpeningHours=d,j.createNewOpeningHours=g,j.removeOpeningHours=h,j.errors={}}angular.module("udb.event-form").controller("OpeningHoursEditorModalController",a),a.$inject=["$uibModalInstance","openingHoursCollection"]}(),function(){"use strict";function a(a,b){function c(a){return b.instant("weekdays."+a+".label")}function d(a){return b.instant("weekdays."+a+".name")}function e(a){return _.all(_.map(a,function(a){return a.opensAsDate instanceof Date&&a.closesAsDate instanceof Date}))}function f(b){return _.all(_.map(b,function(b){return a(b.opensAsDate).isBefore(b.closesAsDate)}))}function g(a){return _.all(_.map(a,function(a){return!_.isUndefined(_.find(a.dayOfWeek,"open"))}))}function h(b){return angular.forEach(b,function(b,c){b.opens=a(b.opensAsDate).format("HH:mm"),b.closes=a(b.closesAsDate).format("HH:mm"),b.label=_.pluck(_.filter(b.dayOfWeek,"open"),"name").join(", ")}),b}function i(a){return a.clone().year(1970).dayOfYear(1)}function j(a){return _.pick(a,function(a){return a.open})}var k={openAndClose:e,dayOfWeek:g,openIsBeforeClose:f},l={monday:{label:c("monday"),name:d("monday"),open:!1},tuesday:{label:c("tuesday"),name:d("tuesday"),open:!1},wednesday:{label:c("wednesday"),name:d("wednesday"),open:!1},thursday:{label:c("thursday"),name:d("thursday"),open:!1},friday:{label:c("friday"),name:d("friday"),open:!1},saturday:{label:c("saturday"),name:d("saturday"),open:!1},sunday:{label:c("sunday"),name:d("sunday"),open:!1}},m={openingHours:[],getOpeningHours:function(){return this.openingHours},setOpeningHours:function(a){this.openingHours=h(a)},removeOpeningHours:function(a){var b=this.openingHours;this.setOpeningHours(_.without(b,a))},createNewOpeningHours:function(){var a=this.openingHours||[],b={dayOfWeek:_.cloneDeep(l),opens:"00:00",opensAsDate:new Date(1970,0,1),closes:"00:00",closesAsDate:new Date(1970,0,1)};a.push(b),this.setOpeningHours(a)},deserialize:function(b){return this.setOpeningHours(_.map(b,function(b){return{dayOfWeek:_.mapValues(l,function(a,c){var d=_.cloneDeep(a);return d.open=_.includes(b.dayOfWeek,c),d}),opens:b.opens||"00:00",opensAsDate:b.opens?i(a(b.opens,"HH:mm")).toDate():new Date(1970,0,1),closes:b.closes||"00:00",closesAsDate:b.closes?i(a(b.closes,"HH:mm")).toDate():new Date(1970,0,1)}})),this},serialize:function(){return _.map(this.openingHours,function(b){return{dayOfWeek:_.keys(j(b.dayOfWeek)),opens:a(b.opensAsDate).format("HH:mm"),closes:a(b.closesAsDate).format("HH:mm")}})},validate:function(){var a=this.openingHours;return _(k).pick(function(b){return!b(a)}).keys().value()}};return m}angular.module("udb.event-form").factory("OpeningHoursCollection",a),a.$inject=["moment","$translate"]}(),function(){"use strict";function a(a){function b(){var b=a.open({templateUrl:"templates/opening-hours-editor.modal.html",controller:"OpeningHoursEditorModalController",controllerAs:"ohemc",size:"lg",resolve:{openingHoursCollection:function(){return angular.copy(d.openingHoursCollection)}}});b.result.then(c)}function c(a){d.formData.openingHours=a,d.formData.saveOpeningHours(a),d.openingHoursCollection.deserialize(a)}var d=this;d.edit=b}angular.module("udb.event-form").component("udbEventFormOpeningHours",{bindings:{openingHoursCollection:"=openingHours",formData:"=",disabled:"=ngDisabled"},templateUrl:"templates/event-form-openinghours.html",controller:a,controllerAs:"cm"}),a.$inject=["$uibModal"]}(),function(){"use strict";function a(a,b,c,d,e,f,g,h,i){function j(){b.dismiss("cancel")}function k(){return a.showWebsiteValidation=!0,a.organizerForm.website.$valid?void c.findOrganizersWebsite(a.newOrganizer.website).then(function(b){b.totalItems>0?(a.organizersWebsiteFound=!0,a.firstOrganizerFound=new d(b.member[0]),a.showWebsiteValidation=!1,a.disableSubmit=!0):(a.showWebsiteValidation=!1,a.organizersWebsiteFound=!1,a.firstOrganizerFound="",a.newOrganizer.name&&(a.disableSubmit=!1))},function(){a.websiteError=!0,a.showWebsiteValidation=!1}):void(a.showWebsiteValidation=!1)}function l(){a.newOrganizer.name&&!a.websiteError?a.disableSubmit=!1:a.disableSubmit=!0}function m(b){a.addressError=b}function n(b){a.contactError=b}function o(){if(a.showValidation=!0,a.organizerForm.$valid){a.$broadcast("organizerAddressSubmit"),a.$broadcast("organizerContactSubmit");var b=f.resolve([]);return a.error=!1,a.saving=!0,a.addressError||a.contactError?(a.error=!0,void(a.saving=!1)):void b.then(function(b){b.length>0?(a.organizersFound=!0,a.organizers=b,a.saving=!1):q()},function(){a.error=!0,a.saving=!1})}}function p(a){b.close(a)}function q(){a.saving=!0,a.saveError=!1;var b=_.clone(a.newOrganizer);b.address.streetAddress||b.address.addressLocality||b.address.postalCode||delete b.address,e.createOrganizer(b).then(function(b){var c=_.get(i,"offerEditor.defaultOrganizerLabel");"undefined"!=typeof c&&""!==c&&h.addLabelToOrganizer(b.data.organizerId,c),a.newOrganizer.id=b.data.organizerId,p(a.newOrganizer),a.saving=!1},function(){a.saveError=!0,a.saving=!1})}a.organizer=g,a.organizersWebsiteFound=!1,a.organizersFound=!1,a.saving=!1,a.error=!1,a.addressError=!1,a.contactError=!1,a.showWebsiteValidation=!1,a.showValidation=!1,a.organizers=[],a.selectedCity="",a.disableSubmit=!0,a.contactUrlRegex=(new d).regex.url,a.newOrganizer={mainLanguage:"nl",website:"http://",name:a.organizer,address:{streetAddress:"",addressLocality:"",postalCode:"",addressCountry:""},contact:[]},a.cancel=j,a.validateWebsite=k,a.updateName=l,a.validateAddress=m,a.validateContact=n,a.validateNewOrganizer=o,a.selectOrganizer=p,a.saveOrganizer=q}angular.module("udb.event-form").controller("EventFormOrganizerModalController",a),a.$inject=["$scope","$uibModalInstance","udbOrganizers","UdbOrganizer","eventCrud","$q","organizerName","OrganizerManager","appConfig"]}(),function(){!function(){"use strict";function a(a,b,c,d,e,f,g,h){function i(){return{name:a.title,eventType:{id:""},address:{addressCountry:a.location.address.addressCountry,addressLocality:a.location.address.addressLocality,postalCode:a.location.address.postalCode,streetAddress:"",locationNumber:""}}}function j(){a.newPlace=i(),b.dismiss()}function k(){return a.showValidation=!0,a.placeForm.$valid?p(a.newPlace.address.streetAddress)?"NL"!==a.newPlace.address.addressCountry||q(a.newPlace.address.postalCode)?void l():(a.error=!0,void(a.invalidNlPostalCode=!0)):(a.error=!0,void(a.invalidStreet=!0)):void 0}function l(){function b(){a.saving=!1,a.error=!0}function e(b){i.id=b.id,m(i),a.saving=!0,a.error=!1}a.saving=!0,a.error=!1;for(var f="",g=0;ga.availabilityEnds?void(a.errorMessage="De gekozen einddatum moet na de startdatum vallen."):(a.errorMessage="",void e())}function e(){moment(a.availabilityStarts).isValid()&&moment(a.availabilityEnds).isValid()?(b.bookingInfo.availabilityStarts=moment(a.availabilityStarts).hours(0).minutes(0).seconds(0).format(),b.bookingInfo.availabilityEnds=moment(a.availabilityEnds).hours(23).minutes(59).seconds(59).format()):(b.bookingInfo.availabilityStarts="",b.bookingInfo.availabilityEnds=""),a.onBookingPeriodSaved()}function f(){a.availabilityStarts="",a.availabilityEnds="",a.haveBookingPeriod=!1,e()}function g(){a.haveBookingPeriod||(a.haveBookingPeriod=!0)}function h(){(b.bookingInfo.availabilityStarts||b.bookingInfo.availabilityEnds)&&(a.haveBookingPeriod=!0),b.bookingInfo.availabilityStarts?a.availabilityStarts=new Date(b.bookingInfo.availabilityStarts):a.availabilityStarts=new Date,b.bookingInfo.availabilityEnds?a.availabilityEnds=new Date(b.bookingInfo.availabilityEnds):a.availabilityEnds=new Date}a.haveBookingPeriod=!1,a.availabilityStarts="",a.availabilityEnds="",a.errorMessage="",a.popup1={opened:!1},a.popup2={opened:!1},a.validateBookingPeriod=d,a.saveBookingPeriod=e,a.deleteBookingPeriod=f,a.changeHaveBookingPeriod=g,a.initBookingPeriodForm=h,a.dateOptions={formatYear:"yyyy",minDate:new Date,startingDay:1},h(),a.open1=function(){a.popup1.opened=!0},a.open2=function(){a.popup2.opened=!0}}angular.module("udb.event-form").controller("ReservationPeriodController",a),a.$inject=["$scope","EventFormData","$rootScope"]}(),function(){"use strict";function a(){return{restrict:"AE",scope:{onBookingPeriodSaved:"&"},controller:"ReservationPeriodController",templateUrl:"templates/reservation-period.html"}}angular.module("udb.event-form").directive("udbReservationPeriod",a)}(),function(){"use strict";function a(a){function b(b){function c(){b.timeLastSaved=new Date}b.timeLastSaved=void 0;var d=a.$on("eventFormSaved",c);b.$on("$destroy",d)}var c='
';return{template:c,restrict:"EA",link:b}}angular.module("udb.event-form").directive("udbEventFormSaveTimeTracker",a),a.$inject=["$rootScope"]}(),function(){"use strict";function a(){var a={restrict:"AE",controller:"OfferController",controllerAs:"eventCtrl",templateUrl:"templates/event-preview.directive.html"};return a}angular.module("udb.event-form").directive("udbEventPreview",a)}(),function(){"use strict";function a(){var a={restrict:"AE",controller:"OfferController",controllerAs:"eventCtrl",templateUrl:"templates/event-suggestion.directive.html"};return a}angular.module("udb.event-form").directive("udbEventSuggestion",a)}(),function(){"use strict";function a(){var a={restrict:"AE",controller:"OfferController",controllerAs:"placeCtrl",templateUrl:"templates/place-preview.directive.html"};return a}angular.module("udb.event-form").directive("udbPlacePreview",a)}(),function(){"use strict";function a(){var a={restrict:"AE",controller:"OfferController",controllerAs:"placeCtrl",templateUrl:"templates/place-suggestion.directive.html"};return a}angular.module("udb.event-form").directive("udbPlaceSuggestion",a)}(),function(){!function(){"use strict";function a(a,b,c,d,e){function f(a){return function(b){return-1!==b["@id"].indexOf(a)}}function g(){var b=a.currentSuggestionIndex-1,c=d.events[b.toString()];c?(a.currentSuggestion=c,a.currentSuggestionIndex=b):i()}function h(){var b=a.currentSuggestionIndex+1,c=d.events[b.toString()];c?(a.currentSuggestion=c,a.currentSuggestionIndex=b):i()}function i(){b.close()}a.previousSuggestion=g,a.nextSuggestion=h,a.currentSuggestionId=c,a.currentSuggestionIndex=_.findIndex(d.events,f(c)),a.closePreview=i,a.suggestionCount=d.totalItems,a.currentSuggestion=_.find(d.events,f(c)),a.suggestions=d.events,a.suggestionType=e}angular.module("udb.event-form").controller("SuggestionPreviewModalController",a),a.$inject=["$scope","$uibModalInstance","selectedSuggestionId","resultViewer","suggestionType"]}()}(),function(){"use strict";function a(){function a(a,d,e,f){function g(){""!==f.$modelValue.value&&(f.$setValidity("contactinfo",!0),a.infoErrorMessage="",h())}function h(){if(""===f.$modelValue.value||void 0===f.$modelValue.value)a.infoErrorMessage="Gelieve dit veld niet leeg te laten.",f.$setValidity("contactinfo",!1);else if("email"!==f.$modelValue.type||c.test(f.$modelValue.value)){if("url"===f.$modelValue.type){var d=f.$viewValue;b.test(d.value)||(a.infoErrorMessage="Gelieve een geldige url in te vullen.",f.$setValidity("contactinfo",!1))}}else a.infoErrorMessage="Gelieve een geldig e-mailadres in te vullen.",f.$setValidity("contactinfo",!1)}function i(){f.$modelValue.value="",f.$modelValue.booking=!1,a.infoErrorMessage="",f.$setValidity("contactinfo",!0)}a.loadInfo=g,a.validateInfo=h,a.clearInfo=i,a.infoErrorMessage="",a.$on("organizerContactRefresh",function(){h()})}var b=/^(ftp|http|https):\/\/(\w+:{0,1}\w*@)?(\S+)(:[0-9]+)?(\/|\/([\w#!:.?+=&%@!\-\/]))?$/,c=/^[a-z0-9!#$%&'*+\/=?^_`{|}~.-]+@[a-z0-9]([a-z0-9-]*[a-z0-9])?(\.[a-z0-9]([a-z0-9-]*[a-z0-9])?)*$/i;return{restrict:"A",require:"ngModel",link:a}}angular.module("udb.event-form").directive("udbContactInfoValidation",a)}(),function(){"use strict";function a(a){var b=this,c="copyright-agreement-confirmed";b.confirm=function(){var b=moment().add(1,"year").toDate(),d={confirmed:!0};a.putObject(c,d,{expires:b})},b.confirmed=function(){var b=a.getObject(c);return b?b.confirmed:!1}}angular.module("udb.event-form").service("copyrightNegotiator",a),a.$inject=["$cookies"]}(),function(){"use strict";function a(a,b,c,d,e,f){var g={init:function(){this.apiUrl="",this.isEvent=!0,this.isPlace=!1,this.showStep1=!0,this.showStep2=!1,this.showStep3=!1,this.showStep4=!1,this.showStep5=!1,this.majorInfoChanged=!1,this.id="",this.mainLanguage=f.use()||"nl",this.name="",this.description={},this.location={id:null,name:"",address:{addressCountry:"BE",addressLocality:"",postalCode:"",streetAddress:""}},this.address={addressCountry:"BE",addressLocality:"",postalCode:"",streetAddress:""},this.place={},this.type={},this.theme={},this.calendar={},this.calendar.calendarType="",this.calendar.timeSpans=[],this.calendar.openingHours=[],this.typicalAgeRange="",this.organizer={},this.contactPoint={url:[],phone:[],email:[]},this.facilities=[],this.bookingInfo={},this.mediaObjects=[],this.image=[],this.additionalData={},this.priceInfo=[],this.workflowStatus="DRAFT",this.availableFrom="",this.labels=[],this.audienceType="everyone",this.timingChanged$=a.createObservableFunction(this,"timingChangedCallback")},clone:function(){var b=_.cloneDeep(this);return b.timingChanged$=a.createObservableFunction(b,"timingChangedCallback"),b},showStep:function(a){this["showStep"+a]=!0},hideStep:function(a){this["showStep"+a]=!1},setName:function(a,b){this.name[b]=a},getName:function(a){return this.name[a]},getMainLanguage:function(){return this.mainLanguage},setMainLanguage:function(a){this.mainLanguage=a},setDescription:function(a,b){this.description[b]=a},getDescription:function(a){return this.description[a]},setEventType:function(a){this.type=a,this.removeTheme()},removeType:function(){this.type={}},getEventType:function(){return this.type},getEventTypeLabel:function(){return this.type.label?this.type.label:""},setTheme:function(a){this.theme=a},removeTheme:function(){this.theme={}},getTheme:function(){return this.theme},getThemeLabel:function(){return this.theme.label?this.theme.label:""},getPeriodicStartDate:function(){return this.calendar.startDate},setPeriodicStartDate:function(a){this.calendar.startDate=a},getPeriodicEndDate:function(){return this.calendar.endDate},setPeriodicEndDate:function(a){var b=c(a).endOf("day").toDate();this.calendar.endDate=b},resetLocation:function(){this.location={id:null,name:"",address:{addressCountry:"BE",addressLocality:"",postalCode:"",streetAddress:""}}},setLocation:function(a){this.location=a},getLocation:function(){return this.location},addTimeSpan:function(a,b,d,e){var f="00:00"===c(a).format("HH:mm")&&"23:59"===c(b).format("HH:mm");this.calendar.timeSpans.push({start:c(a).toISOString(),end:c(b).toISOString(),allDay:f,status:d?d:{type:"Available"},bookingAvailability:e?e:{type:"Available"}})},resetCalendar:function(){this.calendar.timeSpans=[],this.calendar.calendarType="",this.calendar.activeCalendarLabel="",this.calendar.activeCalendarType=""},getFirstStartDate:function(){var a=null;return("single"===this.calendar.calendarType||"multiple"===this.calendar.calendarType)&&(a=_.first(this.calendar.timeSpans).start),"periodic"===g.calendar.calendarType&&(a=this.calendar.startDate),a},getLastEndDate:function(){var a=null;return("single"===this.calendar.calendarType||"multiple"===this.calendar.calendarType)&&(a=_.last(this.calendar.timeSpans).end),"periodic"===g.calendar.calendarType&&(a=this.calendar.endDate),a},getType:function(){return this.isEvent?"event":"place"},resetOrganizer:function(){this.organizer={}},resetContactPoint:function(){this.contactPoint={url:[],phone:[],email:[]}},setBookingInfo:function(a){this.bookingInfo=a},addImage:function(a){this.mediaObjects=_.union(this.mediaObjects,[a])},editMediaObject:function(a,b,c,d,e){this.image[a]={url:b,thumbnailUrl:c,description:d,copyrightHolder:e},this.image[a]["@type"]="ImageObject"},updateMediaObject:function(a){this.mediaObjects=_.map(this.mediaObjects,function(b){var c;return c=b["@id"]===a["@id"]?a:b})},removeMediaObject:function(a){this.mediaObjects=_.reject(this.mediaObjects,{"@id":a["@id"]})},selectMainImage:function(a){var b=_.without(this.mediaObjects,a);b.unshift(a),this.mediaObjects=b},setTypicalAgeRange:function(a,b){this.typicalAgeRange=(isNaN(a)?"":a)+"-"+(isNaN(b)?"":b)},getTypicalAgeRange:function(){if(!_.isEmpty(this.typicalAgeRange)){var a={min:void 0,max:void 0},b=this.typicalAgeRange.split("-");return b[0]&&(a.min=parseInt(b[0])),b[1]&&(a.max=parseInt(b[1])),
-a}},hasValidPeriodicRange:function(){var a=this.getPeriodicStartDate(),b=this.getPeriodicEndDate();return"periodic"===this.calendar.calendarType&&!!a&&!!b&&b>a},initCalendar:function(){var a=this,c=_.findWhere(b,{id:a.calendar.calendarType});c&&(this.calendar.activeCalendarLabel=c.label,this.calendar.activeCalendarType=a.calendar.calendarType)},timingChanged:function(){this.showStep2&&this.showStep(3),this.timingChangedCallback(this)},timingChangedCallback:function(){},initOpeningHours:function(a){d.deserialize(a)},setCalendarType:function(a){var b=this;if("permanent"===a&&(b.calendar.startDate=void 0,b.calendar.endDate=void 0,b.timingChanged()),b.calendar.calendarType!==a){if(b.resetCalendar(),b.calendar.calendarType=a,"single"===b.calendar.calendarType){if(b.openingHours=[],e.calendarHighlight.date){var d=e.calendarHighlight.startTime?c(e.calendarHighlight.date+" "+e.calendarHighlight.startTime,"YYYY-MM-DD HH:mm").toDate():"",f=e.calendarHighlight.endTime?c(e.calendarHighlight.date+" "+e.calendarHighlight.endTime,"YYYY-MM-DD HH:mm").toDate():"";b.addTimeSpan(d,f)}else b.addTimeSpan(c().startOf("day"),c().endOf("day"));b.saveTimeSpans(b.calendar.timeSpans)}if("periodic"===b.calendar.calendarType){if(b.calendar.startDate=c().startOf("day").toDate(),e.addOffer&&e.addOffer.defaultEndPeriod){var g=e.addOffer.defaultEndPeriod;b.calendar.endDate=c(b.calendar.startDate).add(g,"d").startOf("day").toDate()}else b.calendar.endDate=c().add(1,"y").startOf("day").toDate();b.timingChanged()}b.initCalendar(),b.id&&(b.majorInfoChanged=!0)}},isValidDate:function(a){return a instanceof Date},toggleStartHour:function(a){if(a.showStartHour){var b=c(a.date),d=c(a.date).endOf("day");a.startHour=b.format("HH:mm"),a.startHourAsDate=b.toDate(),a.endHour=d.format("HH:mm"),a.endHourAsDate=d.toDate(),a.showEndHour=!1}else a.start.setHours(0),a.start.setMinutes(0),a.end.setHours(0),a.end.setMinutes(0),this.timingChanged()},toggleEndHour:function(a){var b=a.date;if(a.showEndHour){var d=c(a.startHourAsDate).add(3,"hours").minutes(0);b.setHours(d.hours()),b.setMinutes(d.minutes()),a.endHour=c(b).format("HH:mm"),a.endHourAsDate=b}else b.setHours(23),b.setMinutes(59),a.endHour="23:59",a.endHourAsDate=b,this.timingChanged()},hoursChanged:function(a){var b,d;(a.showStartHour||a.showEndHour)&&(a.showStartHour&&(void 0!==a.startHourAsDate?b=c(a.startHourAsDate):(b=c(a.startHourAsDate),b.hours(0),b.minutes(0)),a.startHour=b.format("HH:mm")),a.showEndHour&&(d=void 0!==a.endHourAsDate?c(a.endHourAsDate):b,a.endHour=d.format("HH:mm")),this.timingChanged())},saveOpeningHours:function(a){this.calendar.openingHours=a,this.timingChanged()},saveTimeSpans:function(a){this.calendar.timeSpans=a,this.calendar.startDate=this.getFirstStartDate(),this.calendar.endDate=this.getLastEndDate(),this.timingChanged()},periodicTimingChanged:function(){var a=this;a.id;var b=this.getPeriodicEndDate();this.setPeriodicEndDate(b),a.hasValidPeriodicRange()?(a.periodicRangeError=!1,a.timingChanged()):a.periodicRangeError=!0}};return g.init(),g}angular.module("udb.event-form").factory("EventFormData",a),a.$inject=["rx","calendarLabels","moment","OpeningHoursCollection","appConfig","$translate"]}(),function(){"use strict";function a(a,b,c,d,e,f,g,h,i){function j(){c.initOpeningHours([]);var b=_.get(h,"calendarHighlight");c.isEvent&&b&&b.date&&k(b),a.language=c.mainLanguage,a.loaded=!0}function k(a){c.calendar.calendarType="single",c.addTimeSpan(a.startTime?e(a.date+" "+a.startTime,"YYYY-MM-DD HH:mm"):"",a.endTime?e(a.date+" "+a.endTime,"YYYY-MM-DD HH:mm"):""),c.initCalendar()}function l(a){a?d.getOffer(a).then(m):j()}function m(b){var d=b.url.split("/").shift();if(c.status=b.status,"event"===d){if(c.isEvent=!0,c.isPlace=!1,c.subEvent=b.subEvent,n(b),b.location&&b.location.id){var e=f(b.location,b.mainLanguage,!0);c.location={id:e.id.split("/").pop(),name:e.name,address:e.address,isDummyPlaceForEducationEvents:e.isDummyPlaceForEducationEvents}}c.audienceType=b.audience.audienceType}if("place"===d&&(c.isEvent=!1,c.isPlace=!0,n(b),b.address)){var g=f(b,b.mainLanguage,!0);c.address=g.address}i.use()!==a.language&&(a.showLangWarning=!0)}function n(b){var d=["id","type","theme","openingHours","description","typicalAgeRange","organizer","bookingInfo","contactPoint","priceInfo","facilities","image","additionalData","apiUrl","workflowStatus","availableFrom","labels","mainLanguage"];b.isDummyPlaceForEducationEvents&&(c.isDummyPlaceForEducationEvents=b.isDummyPlaceForEducationEvents);for(var f=0;fb?!1:o.hasNoDefault&&n(o.eventFormData.workflowStatus)}function i(){o.saving=!0,o.error="",c.publishOffer(b,o.eventFormData.availableFrom).then(function(){k(),l()})["catch"](function(){o.error="Dit event kon niet gepubliceerd worden, gelieve later opnieuw te proberen."})}function j(){g.open({templateUrl:"templates/event-form-publish-modal.html",controller:"EventFormPublishModalController",controllerAs:"efpmc",resolve:{eventFormData:function(){return o.eventFormData},publishEvent:function(){return o.publish}}})}function k(){return b.workflowStatus=d.READY_FOR_VALIDATION,e.resolve()}function l(){f.path("/"+b.getType()+"/"+b.id+"/published")}function m(){f.path("/"+b.getType()+"/"+b.id+"/saved")}function n(a){return a===d.DRAFT}var o=this;o.publish=i,o.canPublishLater=h,o.publishLater=j,o.preview=m,o.isDraft=n,o.saving=!1,o.eventFormData=b;var p=_.get(a,"offerEditor.defaultPublicationDate");o.hasNoDefault=isNaN(Date.parse(p)),!o.hasNoDefault&&n&&(o.eventFormData.availableFrom=p)}angular.module("udb.event-form").controller("EventFormPublishController",a),a.$inject=["appConfig","EventFormData","eventCrud","OfferWorkflowStatus","$q","$location","$uibModal"]}(),function(){"use strict";function a(a,b,c,d,e,f){function g(d,e){c.id!==d.id&&(a.activeEventType=d.id,e?(c.isEvent=!0,c.isPlace=!1):("permanent"!==c.calendar.calendarType&&c.resetCalendar(),c.isEvent=!1,c.isPlace=!0,c.calendar.calendarType="permanent"),c.setEventType(d),c.id&&b.$emit("eventTypeChanged",c),k.updateEventTypeAndThemePicker(c),c.showStep(2),c.showStep(3))}function h(a){c.getTheme().id!==a.id&&(c.setTheme(a),c.showStep(2),k.updateEventTypeAndThemePicker(c),k.eventThemeChanged(c))}function i(){a.showAllEventTypes=!a.showAllEventTypes}function j(){a.showAllPlaces=!a.showAllPlaces}var k=this;a.eventFormData=c,a.eventTypeLabels=d,a.placeLabels=e,a.canRefine=!1,a.canRefineByGroups=!1,a.showAllEventTypes=!1,a.showAllPlaces=!1,a.eventThemeLabels=[],a.eventGroupLabels=[],a.activeEventType="",a.activeEventTypeLabel="",a.activeTheme="",a.activeThemeLabel="",a.splitTypes=!0,k.updateEventTypeAndThemePicker=function(b){var c,g=b.getEventType().id,h=b.getTheme().id,i=_.union(d,e),j=_.findWhere(i,{id:g});if(j){if(a.activeEventType=j.id,a.activeEventTypeLabel=f.instant("offerTypes."+j.label),a.eventThemeLabels=j.themes,a.eventGroupLabels=j.groups,a.isLessonSeries="0.3.1.0.0"===a.activeEventType,j.themes&&(c=_.findWhere(j.themes,{id:h})),j.groups){var k=_.find(j.groups,function(a){return _.where(a.themes,{id:h}).length>0});k&&(c=_.findWhere(k.themes,{id:h}))}}else a.activeEventType="",a.activeEventTypeLabel="";c?(a.activeTheme=c.id,a.activeThemeLabel=f.instant("offerThemes."+c.label)):(a.activeTheme="",a.activeThemeLabel=""),a.canRefine=j&&!_.isEmpty(j.themes)&&!c,a.canRefineByGroups=j&&!_.isEmpty(j.groups)&&!c},k.resetEventType=function(){c.removeType(),k.updateEventTypeAndThemePicker(c)},k.resetTheme=function(){c.removeTheme(),k.updateEventTypeAndThemePicker(c),k.eventThemeChanged(c)},k.eventThemeChanged=function(a){a.id&&b.$emit("eventThemeChanged",a)},a.setEventType=g,a.resetEventType=k.resetEventType,a.toggleEventTypes=i,a.togglePlaces=j,a.setTheme=h,a.resetTheme=k.resetTheme,k.init=function(b){b.id&&(k.updateEventTypeAndThemePicker(b),a.splitTypes=!1),_.where(a.eventTypeLabels,{primary:!0}).length===a.eventTypeLabels.length&&(a.showAllEventTypes=!0),_.where(a.placeLabels,{primary:!0}).length===a.placeLabels.length&&(a.showAllPlaces=!0)},a.translateOfferTypes=function(a){return f.instant("offerTypes."+a)},a.translateOfferThemes=function(a){return f.instant("offerThemes."+a)},a.translateOfferThemesGroups=function(a){return f.instant("offerThemesGroups."+a)},k.init(c)}angular.module("udb.event-form").controller("EventFormStep1Controller",a),a.$inject=["$scope","$rootScope","EventFormData","eventCategories","placeCategories","$translate"]}(),function(){"use strict";function a(a,b,c){var d=this;a.eventFormData=c,d.eventTimingChanged=function(){c.id&&b.$emit("eventTimingChanged",c)},c.timingChanged$.subscribe(d.eventTimingChanged)}angular.module("udb.event-form").controller("EventFormStep2Controller",a),a.$inject=["$scope","$rootScope","EventFormData"]}(),function(){"use strict";function a(a,b,c,d,e,f,g,h,i,j,k,l,m){function n(){var a={id:null,name:"",address:{addressCountry:"",addressLocality:"",postalCode:"",streetAddress:""}};return _.cloneDeep(a)}function o(b){return a.availableCountries.filter(function(a){return!b||"ZZ"!==a.code})}function p(){b.resetLocation(),a.selectedCity="",a.placeStreetAddress="",a.cityAutocompleteTextField="",a.asyncPlaceSuggestion="",a.locationsSearched=!1,a.locationAutocompleteTextField="",a.bookableEventShowStep4=!1,C(),E.stepUncompleted()}function q(){"NL"===a.selectedCountry.code?a.cities=g:a.cities=f,p()}function r(){var c=b.getLocation();c.id="",c.name="";var d={};d.zip=c.address.postalCode,d.name=c.address.addressLocality,b.setLocation(c),a.selectedLocation=!1,a.locationAutocompleteTextField="",a.asyncPlaceSuggestion="",a.locationsSearched=!1,a.selectedCityObj=d,E.stepUncompleted()}function s(a){return function(b){return new h(a,b.name+""+b.address.streetAddress)}}function t(){function c(c){b.place=c,a.selectedCity=c.address.postalCode+" "+c.address.addressLocality;var d={id:c.id,name:c.name,address:{addressCountry:a.selectedCountry.code,addressLocality:c.address.addressLocality,postalCode:c.address.postalCode,streetAddress:c.address.streetAddress}};b.setLocation(d),a.selectedLocation=angular.copy(d),E.stepCompleted()}var d=e.open({templateUrl:"templates/event-form-place-modal.html",controller:"EventFormPlaceModalController",resolve:{location:function(){return a.eventFormData.location},categories:function(){return a.categories},title:function(){return a.locationAutocompleteTextField}}});d.result.then(c)}function u(a){return a.split(" ").pop()||""}function v(a){if(a){var b=15;return u(a).length<=b}}function w(a){var b=new RegExp(/^[0-9]{4}[a-z]{2}$/i);return b.test(a)}function x(c){if(a.showValidation=!0,a.step3Form.street.$setValidity("invalid",!0),a.step3Form.$valid){if(!v(c))return a.showStreetValidation=!0,void a.step3Form.street.$setValidity("invalid",!1);var d=b.address,e={streetAddress:c};b.address=_.merge(n().address,d,e),a.placeStreetAddress=c,E.stepCompleted()}}function y(c,d){if(a.showValidation=!0,a.step3Form.street.$setValidity("invalid",!0),"NL"===a.selectedCountry.code&&a.step3Form.postalCode.$setValidity("invalid",!0),a.step3Form.$valid&&(v(c)||(a.showStreetValidation=!0,a.step3Form.street.$setValidity("invalid",!1)),"NL"===a.selectedCountry.code&&(w(d)||(a.showZipValidation=!0,a.step3Form.postalCode.$setValidity("invalid",!1))),!a.showStreetValidation&&!a.showZipValidation)){var e=b.address,f={streetAddress:c,postalCode:d};b.address=_.merge(n().address,e,f),a.placeStreetAddress=c,E.stepCompleted()}}function z(){a.showValidation=!1,a.showStreetValidation=!1}function A(){a.showValidation=!1,a.showZipValidation=!1}function B(){a.newPlaceStreetAddress=a.placeStreetAddress?a.placeStreetAddress:"",a.placeStreetAddress="",a.showValidation=!1,a.showStreetValidation=!1,a.showZipValidation=!1,E.stepUncompleted()}function C(){a.isBookableEvent="ZZ"===a.selectedCountry.code?!0:!1}function D(){b.id&&(b.majorInfoChanged=!0)}var E=this,F=k.use()||"nl";a.eventFormData=b,a.categories=d,a.cityAutocompleteTextField="",a.bookableEventLocationId=m.offerEditor.bookableEvent.dummyLocationId,a.locationAutocompleteTextField="",a.availableCountries=m.offerEditor.countries,a.defaultCountry=_.find(a.availableCountries,function(a){return a["default"]}),a.selectedCountry=a.defaultCountry,a.searchingCities=!1,a.cityAutoCompleteError=!1,a.loadingPlaces=!1,a.locationAutoCompleteError=!1,a.locationsSearched=!1,a.selectedCity="",a.selectedLocation=void 0,a.placeStreetAddress="",a.newPlaceStreetAddress="",a.openPlaceModal=t,a.showValidation=!1,a.showStreetValidation=!1,a.showZipValidation=!1,a.locationsForCity=[],a.cities="BE"===a.selectedCountry.code?f:g,a.changeCountrySelection=q,a.changeCitySelection=p,a.changeLocationSelection=r,a.setPlaceStreetAddress=x,a.setNLPlaceStreetAddress=y,a.changePlaceStreetAddress=B,a.resetStreetValidation=z,a.resetZipValidation=A,a.setMajorInfoChanged=D,a.filterAvailableCountries=o,a.filterCities=function(a){return function(b){var c=a.match(/.+/g),d=c.filter(function(a){return-1!==b.label.toLowerCase().indexOf(a.toLowerCase())});return d.length>=c.length}},a.orderByLevenshteinDistance=function(a){return function(b){return new h(a,b.label)}},E.selectCity=function(c,d){var e=c.zip,f=c.name,g={postalCode:e,addressLocality:f,addressCountry:a.selectedCountry.code};if(b.isPlace){var h=a.eventFormData.address;a.eventFormData.address=_.merge(n().address,h,g)}else{var i={address:g},j=a.eventFormData.getLocation(),k=_.merge(n(),j,i);b.setLocation(k)}a.cityAutocompleteTextField="",a.asyncPlaceSuggestion="",a.selectedCity=d,a.selectedCityObj=c,a.selectedLocation=void 0,D()},a.selectCity=E.selectCity,E.selectLocation=function(d,e){function f(c){a.selectedLocation=c,a.locationAutocompleteTextField="";var f=b.getLocation();f.id=d,f.name=e,f.address=c.address,f.isDummyPlaceForEducationEvents=c.isDummyPlaceForEducationEvents,b.setLocation(f),E.stepCompleted(),D(),j.$emit("locationSelected",f)}var g=null;return a.isBookableEvent?c.getPlaceById(d).then(function(b){g=b,e=g.name,f(g),a.bookableEventShowStep4=!0}):(g=_.find(a.locationsForCity,function(a){return a.id===d}),void f(g))},a.selectLocation=E.selectLocation,E.getPlaces=function(b){function d(c){_.each(c,function(a,b){c[b]=l(c[b],F,!0)});var d=c.filter(function(a){return!a.isDummyPlaceForEducationEvents}),e=null;return e=d.sort(s(b)),a.locationsForCity=e,e}function e(){return a.locationAutoCompleteError=!0,[]}return b.length<3?void(a.locationsSearched=!1):(a.locationsSearched=!0,"BE"===a.selectedCountry.code?c.getPlacesByZipcode(a.selectedCityObj.zip,"BE",b).then(d,e):"NL"===a.selectedCountry.code?c.getPlacesByCity(a.selectedCityObj.name,"NL").then(d,e):void 0)},a.getPlaces=E.getPlaces,E.cityHasLocations=function(){return a.locationsForCity instanceof Array&&a.locationsForCity.length>0},E.stepCompleted=function(){b.showStep(4),b.id&&i.updateMajorInfo(b)},E.stepUncompleted=function(){b.id||b.hideStep(4)},E.init=function(b){var c;b.isEvent&&b.location.name&&(c=_.get(b,"location.address"),b.location.name&&(a.selectedLocation=angular.copy(b.location)),b.location.isDummyPlaceForEducationEvents&&(a.isBookableEvent=b.location.isDummyPlaceForEducationEvents,a.bookableEventShowStep4=!0)),b.isPlace&&b.address.postalCode&&(c=b.address,a.placeStreetAddress=c.streetAddress),c&&(a.selectedCity=c.addressLocality,a.selectedCountry=_.find(a.availableCountries,function(a){return a.code===c.addressCountry})),a.isBookableEvent&&(a.selectedCountry=_.find(a.availableCountries,function(a){return"ZZ"===a.code}))},E.init(b)}angular.module("udb.event-form").controller("EventFormStep3Controller",a),a.$inject=["$scope","EventFormData","cityAutocomplete","placeCategories","$uibModal","citiesBE","citiesNL","Levenshtein","eventCrud","$rootScope","$translate","jsonLDLangFilter","appConfig"]}(),function(){"use strict";function a(a,b,c,d,e,f,g,h){function i(){return a.infoMissing=!1,a.missingInfo=[],b.type.id||a.missingInfo.push("event type missing"),"single"===b.calendarType&&""===b.timestamps[0].date?a.missingInfo.push("timestamp missing"):"periodic"!==b.calendarType||""!==b.startDate&&""!==b.endDate?""===b.calendarType&&a.missingInfo.push("when missing"):a.missingInfo.push("start or end date missing"),b.isEvent&&!b.location.id?a.missingInfo.push("place missing for event"):b.isPlace&&!b.address.streetAddress&&a.missingInfo.push("address missing for place"),""===b.name&&a.missingInfo.push("title is missing"),b.typicalAgeRange||a.missingInfo.push("age range is missing"),a.missingInfo.length>0?void(a.infoMissing=!0):void 0}function j(){return a.isValidateButtonDisabled?void 0:(a.isValidateButtonDisabled=!0,i(),a.missingInfo.length>0?(a.infoMissing=!0,void(a.isValidateButtonDisabled=!1)):void(u?o():k(b)))}function k(b){a.saving=!0,a.error=!1,a.resultViewer.loading=!0,a.duplicatesSearched=!0,m(b).then(l,q)}function l(b){b.totalItems>0?(a.saving=!1,a.resultViewer.setResults(b)):o()}function m(a){var b=n(a),d=[];angular.forEach(b,function(a,b){d.push(b+':"'+a+'"')});var e=d.join(" AND ");return c.findOffers(e)}function n(a){var b=a.getLocation();return a.isEvent?{"name.\\*":a.name.nl,"location.name.\\*":b.name}:{"name.\\*":a.name.nl,postalCode:a.address.postalCode,labels:"UDB3 place"}}function o(){p();var c;c=f.createOffer(b),c.then(function(c){b=c,f.updateTypicalAgeRange(b),b.majorInfoChanged=!1,a.saving=!1,a.resultViewer=new e,a.titleInputOptions={updateOn:"change blur"},b.showStep(5)},q)}function p(){a.error=!1,a.saving=!0}function q(){a.error=!0,a.saving=!1}function r(){b.id&&""!==b.name&&g.$emit("eventTitleChanged",b)}function s(c){h.open({templateUrl:"templates/suggestion-preview-modal.html",controller:"SuggestionPreviewModalController",resolve:{selectedSuggestionId:function(){return c.id},resultViewer:function(){return a.resultViewer},suggestionType:function(){return b.getType()}}})}var t=this,u=_.get(d,"offerEditor.ignoreDuplicates",!1);a.eventFormData=b,a.titleInputOptions={updateOn:"change blur"},a.infoMissing=!1,a.duplicatesSearched=!1,a.saving=!1,a.error=!1,a.isValidateButtonDisabled=!1,a.validateEvent=j,a.saveEvent=o,a.resultViewer=new e,a.eventTitleChanged=r,a.previewSuggestedItem=s,b.showStep4===!0&&i(),window.onbeforeunload=function(a){return b.majorInfoChanged?"Bent u zeker dat je de pagina wil verlaten? Gegevens die u hebt ingevoerd worden niet opgeslagen.":void 0},a.$on("changeTypicalAgeRange",function(c,d){a.eventFormData.typicalAgeRange=d,b.showStep5===!0&&(f.updateTypicalAgeRange(b),i())}),t.eventFormSaved=function(){g.$emit("eventFormSaved",b)}}angular.module("udb.event-form").controller("EventFormStep4Controller",a),a.$inject=["$scope","EventFormData","udbApi","appConfig","SearchResultViewer","eventCrud","$rootScope","$uibModal"]}(),function(){"use strict";function a(a,b,c,d,e,f,g,h){function i(){a.descriptionCssClass="state-filling"}function j(){a.descriptionInfoVisible=!0,a.originalDescription=a.description}function k(d){d&&(a.description="");var e=a.description&&""!==a.description||d,f=a.description!==a.originalDescription||d;if(e&&f){a.descriptionInfoVisible=!1,a.savingDescription=!0,a.descriptionError=!1,b.setDescription(a.description.replace(new RegExp(String.fromCharCode(31),"g"),""),a.mainLanguage);var g=c.updateDescription(b,a.description);g.then(function(){a.savingDescription=!1,K.eventFormSaved(),a.description?a.descriptionCssClass="state-complete":a.descriptionCssClass="state-incomplete"},function(){a.savingDescription=!1,a.descriptionError=!0})}}function l(){return a.description?a.description.length:void 0}function m(b){function c(b){var c=b;return g.offerEditor.excludeOrganizerLabel&&""!==g.offerEditor.excludeOrganizerLabel&&(c=_.filter(c,function(a){return a.labels&&a.labels.length>0?a.labels.indexOf(g.offerEditor.excludeOrganizerLabel)<0:!0})),g.offerEditor.includeOrganizerLabel&&""!==g.offerEditor.includeOrganizerLabel&&(c=_.filter(c,function(a){return a.labels&&a.labels.length>0?a.labels.indexOf(g.offerEditor.includeOrganizerLabel)>=0:!1})),a.emptyOrganizerAutocomplete=c.length<=0,a.loadingOrganizers=!1,c}return a.loadingOrganizers=!0,d.suggestOrganizers(b).then(c)}function n(a){K.saveOrganizer(a)}function o(){b.priceInfo.length>0?h.getTicketSales(a.eventFormData.id,a.eventFormData.organizer).then(function(b){b?a.hasTicketSales=b:p()},function(){a.hasUitpasError=!0}):p()}function p(){function d(){K.eventFormSaved(),b.resetOrganizer(),f.$emit("eventOrganizerDeleted",{}),a.organizerCssClass="state-incomplete",a.savingOrganizer=!1}a.organizerError=!1,c.deleteOfferOrganizer(b).then(d,K.showAsyncOrganizerError)}function q(){function c(){a.organizer="",a.emptyOrganizerAutocomplete=!1,b.organizer.id?a.organizerCssClass="state-complete":a.organizerCssClass="state-incomplete"}var d=e.open({backdrop:"static",templateUrl:"templates/event-form-organizer-modal.html",controller:"EventFormOrganizerModalController",resolve:{organizerName:function(){return a.organizer}}});d.result.then(K.saveOrganizer,c)}function r(){_.isEmpty(a.contactInfo)&&(a.contactInfoCssClass="state-filling"),a.contactInfo.push({type:L.PHONE,value:"",booking:!1})}function s(b){a.contactInfo.splice(b,1),_.isEmpty(a.contactInfo)&&(a.contactInfoCssClass="state-incomplete"),t()}function t(){if(a.savingContactInfo=!0,a.contactInfoError=!1,a.contactInfoForm.$valid){b.resetContactPoint(),_.forEach(a.contactInfo,function(a){a.booking?w(a):!_.isEmpty(a.value)&&_.includes(L,a.type)&&b.contactPoint[a.type].push(a.value)});var d=c.updateContactPoint(b);d.then(function(){K.eventFormSaved(),_.isEmpty(a.contactInfo)||(a.contactInfoCssClass="state-complete"),a.savingContactInfo=!1},function(){a.contactInfoError=!0,a.savingContactInfo=!1})}}function u(b){var c=_.find(a.contactInfo,{type:b.type,booking:!0});return b.booking||!c}function v(){var b=_.find(a.contactInfo,{booking:!0});return!!b}function w(b){var c=b.type,d=b.booking?b.value:"";a.bookingModel[c]!==d&&(a.bookingModel[c]=d,C())}function x(b){_.includes(L,b)&&(a.bookingModel[b]="",C())}function y(){a.websitePreviewEnabled=!1,b.bookingInfo.urlLabel=a.bookingModel.urlLabel,""!==a.bookingModel.urlLabelCustom&&(b.bookingInfo.urlLabel=a.bookingModel.urlLabelCustom),C()}function z(){a.websitePreviewEnabled=!0}function A(b,c){a.contactInfo[c].booking=!1,w(b),a.contactInfo.splice(c,1),_.isEmpty(a.contactInfo)&&(a.contactInfoCssClass="state-incomplete")}function B(b){var c={},d=b[a.mainLanguage].value;return _.each(a.translatableLanguages,function(b){c[b]=_.findWhere(a.bookingOptions[b],{value:d}).label}),c}function C(){var d={};_.each(a.translatableLanguages,function(a){d[a]=J("reserve_places",a)}),b.bookingInfo=angular.extend({},{url:"",urlLabel:d,email:"",phone:"",availabilityStarts:b.bookingInfo.availabilityStarts?moment(b.bookingInfo.availabilityStarts).format():"",availabilityEnds:b.bookingInfo.availabilityEnds?moment(b.bookingInfo.availabilityEnds).format():""},a.bookingModel),"string"!=typeof b.bookingInfo.urlLabel?b.bookingInfo.urlLabel=B(b.bookingInfo.urlLabel):b.bookingInfo.urlLabel=B(b.bookingInfo.urlLabel),a.savingBookingInfo=!0,a.bookingInfoError=!1;var e=c.updateBookingInfo(b);e.then(function(){K.eventFormSaved(),a.bookingInfoCssClass="state-complete",a.savingBookingInfo=!1,a.bookingInfoError=!1,D()},function(){a.savingBookingInfo=!1,a.bookingInfoError=!0})}function D(){var b=a.bookingModel.url,c=a.bookingModel.phone,d=a.bookingModel.email;a.contactInfo.some(function(a){return a.value===b}),a.contactInfo.some(function(a){return a.value===c}),a.contactInfo.some(function(a){return a.value===d}),t()}function E(){e.open({templateUrl:"templates/event-form-image-upload.html",controller:"EventFormImageUploadController"})}function F(a){e.open({templateUrl:"templates/event-form-image-edit.html",controller:"EventFormImageEditController",resolve:{mediaObject:function(){return a}}})}function G(a){e.open({templateUrl:"templates/event-form-image-remove.html",controller:"EventFormImageRemoveController",resolve:{image:function(){return a}}})}function H(a){function d(){b.selectMainImage(a)}c.selectMainImage(b,a).then(d)}function I(){a.contactInfo=_.flatten(_.map(b.contactPoint,function(a,b){return _.contains(L,b)?_.map(a,function(a){return{type:b,value:a,booking:!1}}):[]})),b.bookingInfo.url&&a.contactInfo.push({type:"url",value:b.bookingInfo.url,booking:!0}),b.bookingInfo.phone&&a.contactInfo.push({type:"phone",value:b.bookingInfo.phone,booking:!0}),b.bookingInfo.email&&a.contactInfo.push({type:"email",value:b.bookingInfo.email,booking:!0}),a.contactInfo.length>0&&(a.contactInfoCssClass="state-complete"),b.priceInfo&&(a.price=b.priceInfo,a.priceCssClass="state-complete")}function J(a,b){var c=[];switch(b){case"nl":c=[{value:"buy_tickets",label:"Koop tickets"},{value:"reserve_places",label:"Reserveer plaatsen"},{value:"check_availability",label:"Controleer beschikbaarheid"},{value:"subscribe",label:"Schrijf je in"}];break;case"fr":c=[{value:"buy_tickets",label:"Achetez des tickets"},{value:"reserve_places",label:"Réservez des places"},{value:"check_availability",label:"Controlez la disponibilité"},{value:"subscribe",label:"Inscrivez-vous"}];break;case"en":c=[{value:"buy_tickets",label:"Buy tickets"},{value:"reserve_places",label:"Reserve places"},{value:"check_availability",label:"Check availability"},{value:"subscribe",label:"Subscribe"}];break;case"de":c=[{value:"buy_tickets",label:"Tickets kaufen"},{value:"reserve_places",label:"Platzieren Sie eine Reservierung"},{value:"check_availability",label:"Verfügbarkeit prüfen"},{value:"subscribe",label:"Melde dich an"}]}return _.findWhere(c,{value:a}).label}var K=this,L=Object.freeze({EMAIL:"email",PHONE:"phone",URL:"url"});a.eventFormData=b,a.mainLanguage=b.getMainLanguage(),a.description=b.getDescription(a.mainLanguage),a.descriptionCssClass=a.description?"state-complete":"state-incomplete",a.savingDescription=!1,a.descriptionError=!1,a.originalDescription="",a.organizerCssClass=b.organizer.name?"state-complete":"state-incomplete",a.organizer="",a.emptyOrganizerAutocomplete=!1,a.loadingOrganizers=!1,a.organizerError=!1,a.savingOrganizer=!1,a.disablePriceInfo=_.get(g.offerEditor,"disablePriceInfo"),a.translatableLanguages=g.translatableLanguages,a.editBookingPhone=!b.bookingInfo.phone,a.editBookingEmail=!b.bookingInfo.email,a.editBookingUrl=!b.bookingInfo.url,a.bookingModel={urlRequired:!1,emailRequired:!1,phoneRequired:!1,url:b.bookingInfo.urlLabel?b.bookingInfo.url:"",urlLabel:{},urlLabelCustom:"",phone:b.bookingInfo.phone?b.bookingInfo.phone:"",email:b.bookingInfo.email?b.bookingInfo.email:""},a.newBookingModel={},a.bookingOptions=[],_.each(a.translatableLanguages,function(b){a.bookingOptions[b]=[{value:"buy_tickets",label:J("buy_tickets",b)},{value:"reserve_places",label:J("reserve_places",b)},{value:"check_availability",label:J("check_availability",b)},{value:"subscribe",label:J("subscribe",b)}]}),b.bookingInfo.urlLabel?(a.bookingModel.urlLabel=[],a.usedBookingOption=_.findWhere(a.bookingOptions[a.mainLanguage],{label:b.bookingInfo.urlLabel}),void 0===a.usedBookingOption&&(a.usedBookingOption=_.findWhere(a.bookingOptions[a.mainLanguage],{value:"reserve_places"})),"string"==typeof b.bookingInfo.urlLabel?_.each(a.translatableLanguages,function(b){a.bookingModel.urlLabel[b]=_.findWhere(a.bookingOptions[b],{value:a.usedBookingOption.value})}):_.each(a.translatableLanguages,function(b){a.bookingModel.urlLabel[b]=_.findWhere(a.bookingOptions[b],{value:a.usedBookingOption.value})})):_.each(a.translatableLanguages,function(b){a.bookingModel.urlLabel[b]=a.bookingOptions[b][1]}),a.usedBookingOption&&!_.find(a.bookingOptions[a.mainLanguage],a.usedBookingOption)&&a.bookingOptions[a.mainLanguage].unshift(a.usedBookingOption),a.viaWebsite=!b.bookingInfo.url,a.viaEmail=!b.bookingInfo.email,a.viaPhone=!b.bookingInfo.phone,a.websitePreviewEnabled=!1,a.bookingPeriodPreviewEnabled=!1,a.bookingPeriodShowValidation=!1,a.bookingInfoCssClass="state-incomplete",a.toggleBookingType=w,a.saveBookingInfo=C,a.removeDuplicateContactBooking=D,a.saveWebsitePreview=y,a.enableWebsitePreview=z,a.showBookingOption=u,a.deleteBookingInfo=A,a.removeBookingInfo=x,a.hasBookingInfo=v,a.translateBookingInfoUrlLabels=J,a.contactInfoCssClass="state-incomplete",a.savingContactInfo=!1,a.contactInfoError=!1,a.contactInfo=[],a.alterDescription=i,a.focusDescription=j,a.saveDescription=k,a.countCharacters=l,a.getOrganizers=m,a.selectOrganizer=n,a.deleteOrganizerHandler=o,a.openOrganizerModal=q,a.deleteContactInfo=s,a.saveContactInfo=t,a.addContactInfo=r,a.hasTicketSales=!1,a.hasUitpasError=!1,a.openUploadImageModal=E,a.removeImage=G,a.editImage=F,a.selectMainImage=H,I(),K.eventFormSaved=function(){f.$emit("eventFormSaved",b)},K.showAsyncOrganizerError=function(){a.organizerError=!0,a.savingOrganizer=!1},K.saveOrganizer=function(d){function e(){a.emptyOrganizerAutocomplete=!1,a.organizerError=!1,a.savingOrganizer=!0,a.organizer=""}function g(){K.eventFormSaved(),f.$emit("eventOrganizerSelected",d),a.organizerCssClass="state-complete",a.savingOrganizer=!1}b.organizer=d,e(),c.updateOrganizer(b).then(g,K.showAsyncOrganizerError)}}angular.module("udb.event-form").controller("EventFormStep5Controller",a),
-a.$inject=["$scope","EventFormData","eventCrud","udbOrganizers","$uibModal","$rootScope","appConfig","udbUitpasApi"]}(),function(){"use strict";function a(a,c,d){var e=function(e,f,g,h){a.call(this,e),this.type="export",this.exportUrl="",this.eventCount=f,this.format=g,this.extension=_.find(d,{type:g}).extension,this.details=h,this.messages={},this.messages[c.CREATED]=b(this,c.CREATED,c),this.messages[c.STARTED]=b(this,c.STARTED,c),this.messages[c.FINISHED]=b(this,c.FINISHED,c),this.messages[c.FAILED]=b(this,c.FAILED,c)};return e.prototype=Object.create(a.prototype),e.prototype.constructor=e,e.prototype.getTemplateName=function(){var a;switch(this.state){case c.FINISHED:a="export-job";break;case c.FAILED:a="failed-job";break;default:a="base-job"}return a},e.prototype.getDescription=function(){return b(this,this.state,c)},e.prototype.info=function(a){a.location&&(this.exportUrl=a.location)},e.prototype.getTaskCount=function(){return this.eventCount},e}function b(a,b,c){var d="";return d=b===c.FAILED?"Exporteren van items mislukt":"Document ."+a.extension+" met "+a.eventCount+" items"}angular.module("udb.entry").factory("EventExportJob",a),a.$inject=["BaseJob","JobStates","ExportFormats"]}(),function(){"use strict";function a(a,b,c,d,e){function f(a){h=0>a?0:a>g.steps.length?g.steps.length:a}var g=this;g.exportLogoUrl=e.exportLogoUrl,g.dayByDay=!1,g.eventProperties=[{name:"name",include:!0,sortable:!1,excludable:!1},{name:"description",include:!1,sortable:!1,excludable:!0},{name:"labels",include:!1,sortable:!1,excludable:!0},{name:"calendarSummary",include:!0,sortable:!1,excludable:!1},{name:"image",include:!1,sortable:!1,excludable:!0},{name:"videos",inclue:!1,sortable:!1,excludable:!0},{name:"location",include:!0,sortable:!1,excludable:!1},{name:"address",include:!0,sortable:!1,excludable:!0},{name:"organizer",include:!1,sortable:!1,excludable:!0},{name:"priceInfo",include:!1,sortable:!1,excludable:!0},{name:"kansentarief",include:!1,sortable:!1,excludable:!0,format:c.OOXML},{name:"contactPoint",include:!1,sortable:!1,excludable:!0},{name:"bookingInfo",include:!1,sortable:!1,excludable:!0},{name:"status",include:!1,sortable:!1,excludable:!0},{name:"bookingAvailability",include:!1,sortable:!1,excludable:!0},{name:"attendance",include:!1,sortable:!1,excludable:!0},{name:"creator",include:!1,sortable:!1,excludable:!0},{name:"terms.theme",include:!0,sortable:!1,excludable:!0},{name:"terms.eventtype",include:!0,sortable:!1,excludable:!0},{name:"created",include:!1,sortable:!1,excludable:!0},{name:"modified",include:!1,sortable:!1,excludable:!0},{name:"available",include:!1,sortable:!1,excludable:!0},{name:"endDate",include:!1,sortable:!1,excludable:!0},{name:"startDate",include:!1,sortable:!1,excludable:!0},{name:"calendarType",include:!1,sortable:!1,excludable:!0},{name:"sameAs",include:!1,sortable:!1,excludable:!0},{name:"typicalAgeRange",include:!1,sortable:!1,excludable:!0},{name:"language",include:!1,sortable:!1,excludable:!0},{name:"audience",include:!1,sortable:!1,excludable:!0,format:c.OOXML}],g.exportFormats=_.map(c),g.brands=e.exportBrands,g.restrictedBrands=e.restrictedExportBrands,g.templateUrl=e.exportTemplateUrl,g.templates=e.exportTemplateTypes,d.getMyRoles().then(function(a){angular.forEach(a,function(b,c){g.brands=g.brands.concat(_.where(g.restrictedBrands,{role:a[c].uuid}))})}),g.customizations={brand:"",logo:g.exportLogoUrl+g.brands[0].logo,title:"",subtitle:"",footer:"",publisher:"",template:""},g.exportSteps={format:{name:"format",incomplete:function(){var a=g.format,b=!!_.find(g.exportFormats,{type:a,customizable:!0});return b?g.steps=[g.exportSteps.format,g.exportSteps.customize,g.exportSteps.confirm]:g.steps=[g.exportSteps.format,g.exportSteps.filter,g.exportSteps.confirm],!a}},customize:{name:"customize",incomplete:function(){return!g.customizations.brand||!g.customizations.title||!g.customizations.template}},filter:{name:"filter",incomplete:function(){return!_.find(g.eventProperties,function(a){return a.include===!0})}},confirm:{name:"confirm"}},g.steps=[g.exportSteps.format,g.exportSteps.confirm];var h=0;g.nextStep=function(){g.isStepCompleted()?f(h+1):g.hasErrors=!0},g.previousStep=function(){f(h-1)},g.isStepCompleted=function(){if(-1===h)return!0;var a=g.steps[h].incomplete;return"undefined"==typeof a||"function"==typeof a&&!a()},g.isOnFirstStep=function(){return 0===h},g.getActiveStepName=function(){return-1===h?"finished":g.steps[h].name},g.onLastStep=function(){return h>=g.steps.length-1},g["export"]=function(){var a,c,d=_.find(g.exportFormats,{type:g.format}),e=d&&d.customizable===!0;e?(c=g.customizations,c.logo=g.exportLogoUrl+c.brand.logo,c.brand=c.brand.name,c.template=c.template.name,a=[]):(c={},a=_.pluck(_.filter(g.eventProperties,"include"),"name")),b["export"](g.format,g.email,a,g.dayByDay,c),h=-1},g.format=g.exportFormats[0].type,g.email="",g.close=function(){a.dismiss("cancel")},g.eventCount=b.activeExport.eventCount}angular.module("udb.export").controller("EventExportController",a),a.$inject=["$uibModalInstance","eventExporter","ExportFormats","udbApi","appConfig"]}(),function(){"use strict";function a(a,b,c,d,e){var f=this;f.activeExport={query:{},eventCount:0,selection:[]},f["export"]=function(b,g,h,i,j){var k=' AND workflowStatus:("APPROVED" OR "READY_FOR_VALIDATION")',l="("+f.activeExport.query.queryString+")"+k,m=f.activeExport.selection||[],n=f.activeExport.eventCount,o=j.brand||"",p=null,q=e.getObject("user"),r=c.exportEvents(l,g,b,h,i,m,j);return p={format:b,user:q.id,brand:o,queryString:l},r.success(function(c){var e=new d(c.commandId,n,b,p);a.addJob(e),e.start()}),r}}angular.module("udb.export").service("eventExporter",a),a.$inject=["jobLogger","appConfig","udbApi","EventExportJob","$cookies"]}(),function(){"use strict";angular.module("udb.export").constant("ExportFormats",{OOXML:{type:"ooxml",extension:"xlsx",label:"Office Open XML (Excel)",description:"Het standaard formaat van Excel vanaf Microsoft Office 2007."},PDF:{type:"pdf",label:"Als PDF",extension:"pdf",description:"Druk snel en eenvoudig items uit de UiTdatabank af. Kies een Vlieg, UiT-, of UiTPAS-sjabloon.",customizable:!0},JSON:{type:"json",label:"Als json",extension:"json",description:"Exporteren naar event-ld om de informatie voor ontwikkelaars beschikbaar te maken."}})}(),function(){"use strict";function a(){return{templateUrl:"templates/export-modal-buttons.directive.html",restrict:"E"}}angular.module("udb.export").directive("udbExportModalButtons",a)}(),function(){"use strict";function a(){function a(a){var c="undefined"!=typeof a?a:b.queryString;b.queryString=c,b.onChange({query:c})}var b=this;b.queryString="",b.find=a}angular.module("udb.management").component("udbQuerySearchBar",{templateUrl:"templates/query-search-bar.html",controller:a,controllerAs:"qsb",bindings:{onChange:"&",searchLabel:"@",helpLink:"@",helpLabel:"@"}})}(),function(){"use strict";function a(){return{restrict:"A",require:"^form",link:function(a,b,c,d){var e=b[0].querySelector("[name]"),f=angular.element(e),g=f.attr("name");f.bind("blur",function(){var a=d[g].$invalid;b.toggleClass("has-error",a).toggleClass("has-success",!a)})}}}angular.module("udb.management").directive("udbFormGroup",a)}(),function(){"use strict";function a(a,b,c){function d(){function b(){c.go("split.manageLabels.list")}f.creating=!0,a.create(f.label.name,f.label.isVisible,f.label.isPrivate).then(b,e)["finally"](function(){f.creating=!1})}function e(a){b.open({templateUrl:"templates/unexpected-error-modal.html",controller:"UnexpectedErrorModalController",size:"sm",resolve:{errorMessage:function(){return a.title+" "+a.detail}}})}var f=this;f.creating=!1,f.create=d,f.label={name:"",isPrivate:!1,isVisible:!0}}angular.module("udb.management.labels").controller("LabelCreatorController",a),a.$inject=["LabelManager","$uibModal","$state"]}(),function(){"use strict";function a(a,b,c,d){function e(){function b(a){j(a.uuid)}p.renaming=!0,a.copy(p.label).then(b,g)["finally"](function(){p.renaming=!1,p.saving=!1})}function f(){p.saving=!0;var a=[],b=p.originalLabel.name!==p.label.name;b?e():(p.originalLabel.isVisible!==p.label.isVisible&&a.push(n()),p.originalLabel.isPrivate!==p.label.isPrivate&&a.push(o()),d.all(a)["finally"](function(){p.saving=!1})["catch"](g))}function g(a){j(p.label.uuid);b.open({templateUrl:"templates/unexpected-error-modal.html",controller:"UnexpectedErrorModalController",size:"sm",resolve:{errorMessage:function(){return a.title+" "+a.detail}}})}function h(){var a=c.id;j(a)}function i(a){p.label=a,k(a),l(a),p.originalLabel=_.cloneDeep(p.label)}function j(b){p.loadingError=!1,p.label=!1,a.get(b).then(i,m)}function k(a){return"visible"===a.visibility?a.isVisible=!0:a.isVisible=!1,a}function l(a){return"public"===a.privacy?a.isPrivate=!1:a.isPrivate=!0,a}function m(){p.loadingError="Label niet gevonden!"}function n(){var b=p.label.isVisible;return b?a.makeVisible(p.label):a.makeInvisible(p.label)}function o(){var b=p.label.isPrivate;return b?a.makePrivate(p.label):a.makePublic(p.label)}var p=this;p.updateVisibility=n,p.updatePrivacy=o,p.saving=!1,p.renaming=!1,p.save=f,h()}angular.module("udb.management.labels").controller("LabelEditorController",a),a.$inject=["LabelManager","$uibModal","$stateParams","$q"]}(),function(){"use strict";function a(a){var b=this;b.find=function(b,c,d){return a.findLabels(b,c,d,!1)},b.get=function(b){return a.getLabelById(b)},b.create=function(b,c,d){return a.createLabel(b,c,d)},b.copy=function(b){return a.createLabel(b.name,b.isVisible,b.isPrivate,b.uuid)},b["delete"]=function(b){return a.deleteLabel(b.uuid)},b.makeInvisible=function(b){return a.updateLabel(b.uuid,"MakeInvisible")},b.makeVisible=function(b){return a.updateLabel(b.uuid,"MakeVisible")},b.makePrivate=function(b){return a.updateLabel(b.uuid,"MakePrivate")},b.makePublic=function(b){return a.updateLabel(b.uuid,"MakePublic")}}angular.module("udb.management.labels").service("LabelManager",a),a.$inject=["udbApi"]}(),function(){"use strict";function a(a,b,c,d){function e(a){return""===i.query?!0:a.length>=k}function f(a){i.problem=a}function g(){i.problem=!1}function h(a){var b=a.error;b?(f(b),i.searchResult={}):(g(),i.searchResult=a),i.loading=!1}var i=this,j=10,k=3,l=b.createObservableFunction(i,"queryChanged"),m=l.filter(e),n=b.createObservableFunction(i,"pageChanged"),o=new a(d,m,n,j),p=o.getSearchResult$();i.loading=!1,i.query="",i.page=0,i.minQueryLength=k,l.safeApply(c,function(a){i.query=a}).subscribe(),p.safeApply(c,h).subscribe(),m.merge(n).safeApply(c,function(){i.loading=!0}).subscribe()}angular.module("udb.management.labels").controller("LabelsListController",a),a.$inject=["SearchResultGenerator","rx","$scope","LabelManager"]}(),function(){"use strict";function a(a){return{restrict:"A",require:"ngModel",link:function(a,b,c,d){function e(a){return void 0===a||-1===a.indexOf(";")}d.$validators.semicolonLabel=e}}}angular.module("udb.management.labels").directive("udbSemicolonLabelCheck",a),a.$inject=["$q"]}(),function(){"use strict";function a(a,b){return{restrict:"A",require:"ngModel",link:function(c,d,e,f){function g(c){if(f.$isEmpty(c))return b.when();var d=b.defer();return a.get(c).then(d.reject,d.resolve),d.promise}f.$asyncValidators.uniqueLabel=g}}}angular.module("udb.management.labels").directive("udbUniqueLabel",a),a.$inject=["LabelManager","$q"]}(),function(){"use strict";function a(a){return[{name:"Valideren",permission:a.AANBOD_MODEREREN,notificationCount:0,index:1,sref:"management.moderation.list",icon:"fa fa-flag"},{name:"Gebruikers",permission:a.GEBRUIKERS_BEHEREN,notificationCount:0,index:2,sref:"management.users.list",icon:"fa fa-user"},{name:"Rollen",permission:a.GEBRUIKERS_BEHEREN,notificationCount:0,index:3,sref:"split.manageRoles.list",icon:"fa fa-users"},{name:"Labels",permission:a.LABELS_BEHEREN,notificationCount:0,index:4,sref:"split.manageLabels.list",icon:"fa fa-tag"},{name:"Organisaties",permission:a.ORGANISATIES_BEHEREN,notificationCount:0,index:5,sref:"management.organizers.search",icon:"fab fa-slideshare"}]}angular.module("udb.management").factory("managementListItemDefaults",a),a.$inject=["RolePermission"]}(),function(){"use strict";function a(a,b,c,d,e,f){function g(a){var b="";return _.forEach(a,function(a){void 0!==a.constraints&&a.constraints.v3&&(b+=(b?" OR ":"")+a.constraints.v3)}),b=b?"("+b+")":"",c.find(b,10,0).then(function(a){return a.totalItems})}function h(b){var c=_.find(e,{permission:a.AANBOD_MODEREREN}),d=angular.copy(c);return d.notificationCount=b,d}function i(b){var c=d.defer(),e=_.filter(b,function(b){return _.includes(b.permissions,a.AANBOD_MODEREREN)});return e.length>0?g(e).then(h).then(function(a){c.resolve([a])}):c.resolve([]),c.promise}function j(b){var c=_.without(b,a.AANBOD_MODEREREN),f=_.filter(e,function(a){return _.includes(c,a.permission)});return d.resolve(f)}var k=b.getPermissions().then(j),l=c.getMyRoles().then(i);return d.all([k,l]).then(_.flatten)}angular.module("udb.management").factory("managementListItems",a),a.$inject=["RolePermission","authorizationService","ModerationService","$q","managementListItemDefaults","appConfig"]}(),function(){"use strict";function a(a,b,c,d){function e(a){p(a||{title:"Dit aanbod kon niet geladen worden."})}function f(){return"true"===r["continue"]}function g(){return r.offer.workflowStatus===c.READY_FOR_VALIDATION}function h(){return r.offer.workflowStatus===c.APPROVED}function i(){return r.offer.workflowStatus===c.REJECTED}function j(){r.error=!1,a.approve(r.offer).then(function(){q(c.APPROVED)})["catch"](p)}function k(){var a=d.open({templateUrl:"templates/reject-offer-confirm-modal.html",controller:"RejectOfferConfirmModalCtrl"});a.result.then(l)}function l(a){"DUPLICATE"===a?n():"INAPPROPRIATE"===a?o():m(a)}function m(b){r.error=!1,a.reject(r.offer,b).then(function(){q(c.REJECTED)})["catch"](p)}function n(){r.error=!1,a.flagAsDuplicate(r.offer).then(function(){q(c.REJECTED)})["catch"](p)}function o(){r.error=!1,a.flagAsInappropriate(r.offer).then(function(){q(c.REJECTED)})["catch"](p)}function p(a){r.error=a.title+(a.detail?" "+a.detail:"")}function q(a){r.offer.workflowStatus=a,window.parent.postMessage({source:"UDB",type:"OFFER_MODERATED",status:a},"*")}var r=this,s="nl";r.loading=!0,r.offer={},r.error=!1,r.isReadyForValidation=g,r.isApproved=h,r.isRejected=i,r.approve=j,r.askForRejectionReasons=k,r.continueValidation=f,a.getModerationOffer(r.offerId).then(function(a){a.updateTranslationState(),r.offer=b(a,s)})["catch"](e)["finally"](function(){r.loading=!1})}angular.module("udb.management.moderation").component("udbModerationOffer",{templateUrl:"templates/moderation-offer.html",controller:a,controllerAs:"moc",bindings:{"continue":"@",offerId:"@",offerType:"@"}}),a.$inject=["ModerationService","jsonLDLangFilter","OfferWorkflowStatus","$uibModal"]}(),function(){"use strict";function a(a,b,c,d){function e(a){f(a||{title:"Dit aanbod kon niet geladen worden."})}function f(a){g.error=a.title+(a.detail?" "+a.detail:"")}var g=this,h="nl";g.loading=!0,g.offer={},g.error=!1,g.uitId=_.get(d,"uitidUrl"),c.isGodUser().then(function(a){g.isGodUser=a}),a.getModerationOffer(g.offerId).then(function(a){a.updateTranslationState(),g.offer=b(a,h),_.isEmpty(g.offer.description)&&(g.offer.description="")})["catch"](e)["finally"](function(){g.loading=!1})}angular.module("udb.management.moderation").component("udbModerationSummary",{templateUrl:"templates/moderation-summary.html",controller:a,controllerAs:"moc",bindings:{offerId:"@",offerType:"@"}}),a.$inject=["ModerationService","jsonLDLangFilter","authorizationService","appConfig"]}(),function(){"use strict";function a(a,b,c){function d(){var d;return a.error=!1,a.response.type&&("OTHER"!==a.response.type||a.response.reason&&a.response.reason.length)?(d="OTHER"===a.response.type?a.response.reason:a.response.type,void b.close(c.resolve(d))):void(a.error="Gelieve een reden op te geven.")}function e(){b.dismiss()}a.cancel=e,a.reject=d,a.response={}}angular.module("udb.management.moderation").controller("RejectOfferConfirmModalCtrl",a),a.$inject=["$scope","$uibModalInstance","$q"]}(),function(){"use strict";function a(a,b,c,d,e,f,g,h,i){function j(b){return o=e.createObservableFunction(s,"queryChanged"),p=e.createObservableFunction(s,"pageChanged"),q=new d(a,o,p,t,b.constraints.v3),r=q.getSearchResult$(),r.safeApply(f,m).subscribe(),o.safeApply(f,function(){s.loading=!0}).subscribe(),p.subscribe(function(){h.scrollTop(0)}),g.resolve()}function k(a){var b=_.filter(a,function(a){var b=_.filter(a.permissions,function(a){return a===c.AANBOD_MODEREREN});return b.length>0});return b.length?(s.roles=b,s.selectedRole=s.roles[0],g.resolve(s.selectedRole)):g.reject({title:"Er is huidig geen moderator rol gekoppeld aan jouw gebruiker."})}function l(a){s.queryChanged(a.constraints.v3)}function m(a){var b=a.error;b?(n(b),s.searchResult={}):s.searchResult=a,s.loading=!1}function n(a){s.errorMessage=a.title+(a.detail?" "+a.detail:"");b.open({templateUrl:"templates/unexpected-error-modal.html",controller:"UnexpectedErrorModalController",size:"sm",resolve:{errorMessage:function(){return s.errorMessage}}})}var o,p,q,r,s=this,t=10;s.roles=[],s.loading=!0,s.errorMessage=!1,s.selectedRole={},s.searchResult={},s.findModerationContent=l,a.getMyRoles().then(k).then(j)["catch"](n)["finally"](function(){s.loading=!1})}angular.module("udb.management.moderation").controller("ModerationListController",a),a.$inject=["ModerationService","$uibModal","RolePermission","SearchResultGenerator","rx","$scope","$q","$document","appConfig"]}(),function(){"use strict";function a(a,b,c,d,e){var f=this;f.getMyRoles=function(){return a.getMyRoles()},f.find=function(b,c,d){return a.findToModerate(b,d,c)},f.getModerationOffer=function(b){return a.getOffer(new URL(b))},f.approve=function(b){return a.patchOffer(b["@id"],"Approve")},f.reject=function(b,c){return a.patchOffer(b["@id"],"Reject",c)},f.flagAsDuplicate=function(b){return a.patchOffer(b["@id"],"FlagAsDuplicate")},f.flagAsInappropriate=function(b){return a.patchOffer(b["@id"],"FlagAsInappropriate")}}angular.module("udb.management.moderation").service("ModerationService",a),a.$inject=["udbApi","OfferWorkflowStatus","jobLogger","BaseJob","$q"]}(),function(){"use strict";angular.module("udb.management.moderation").constant("OfferWorkflowStatus",{DRAFT:"DRAFT",READY_FOR_VALIDATION:"READY_FOR_VALIDATION",APPROVED:"APPROVED",REJECTED:"REJECTED",DELETED:"DELETED"})}(),function(){"use strict";function a(a,b,c,d){function e(){function e(){g.saving=!1,g.error=!0}g.error=!1,g.saving=!0,b["delete"](c).then(function(){a.close(),d.$emit("organizationDeleted",c)})["catch"](e)}function f(){a.dismiss()}var g=this;g.organization=c,g.saving=!1,g.error=!1,g.cancelRemoval=f,g.deleteOrganization=e}angular.module("udb.management.organizers").controller("OrganizationDeleteModalController",a),a.$inject=["$uibModalInstance","OrganizerManager","organization","$rootScope"]}(),function(){"use strict";function a(){return{restrict:"A",templateUrl:"templates/organization-search-item.html",bindToController:{organizationSearchItem:"=a}}function f(a){i.problem=a}function g(){i.problem=!1}function h(a){var b=a.error;b?(f(b),i.searchResult={}):(g(),i.searchResult=a),i.loading=!1}var i=this,j=10,k=3,l=b.createObservableFunction(i,"queryChanged"),m=l.filter(e(k)),n=b.createObservableFunction(i,"pageChanged"),o=new a(d,m,n,j),p=o.getSearchResult$();i.loading=!1,i.query="",i.page=0,i.minQueryLength=k,l.safeApply(c,function(a){i.query=a}).subscribe(),p.safeApply(c,h).subscribe(),m.merge(n).safeApply(c,function(){i.loading=!0}).subscribe()}angular.module("udb.management.organizers").controller("OrganizationSearchController",a),a.$inject=["SearchResultGenerator","rx","$scope","OrganizerManager"]}(),function(){"use strict";function a(a,b,c,d){function e(){function e(){a.saving=!1,a.error=!0}a.error=!1,a.saving=!0,c.deleteRole(d).then(b.close)["catch"](e)}function f(){b.dismiss()}a.item=d,a.saving=!1,a.error=!1,a.cancelRemoval=f,a.deleteRole=e}angular.module("udb.management.roles").controller("RoleDeleteConfirmModalCtrl",a),a.$inject=["$scope","$uibModalInstance","RoleManager","item"]}(),function(){"use strict";angular.module("udb.management.roles").constant("RolePermission",{AANBOD_BEWERKEN:"AANBOD_BEWERKEN",AANBOD_MODEREREN:"AANBOD_MODEREREN",AANBOD_VERWIJDEREN:"AANBOD_VERWIJDEREN",AANBOD_HISTORIEK:"AANBOD_HISTORIEK",ORGANISATIES_BEWERKEN:"ORGANISATIES_BEWERKEN",ORGANISATIES_BEHEREN:"ORGANISATIES_BEHEREN",GEBRUIKERS_BEHEREN:"GEBRUIKERS_BEHEREN",LABELS_BEHEREN:"LABELS_BEHEREN",VOORZIENINGEN_BEWERKEN:"VOORZIENINGEN_BEWERKEN",PRODUCTIES_AANMAKEN:"PRODUCTIES_AANMAKEN",FILMS_AANMAKEN:"FILMS_AANMAKEN"})}(),function(){"use strict";function a(a,b,c,d,e,f,g){function h(){j().then(function(a){return z.availablePermissions=a,A?i(A):e.resolve()})["catch"](y)["finally"](function(){z.loadedRole=!0,z.loadedRolePermissions=!0,z.loadedRoleUsers=!0,z.loadedRoleLabels=!0})}function i(b){return a.get(b).then(function(a){z.role=a,z.role.users=[],z.role.labels=[],z.role.permissions=_.filter(z.availablePermissions,function(b){return _.contains(a.permissions,b.key)})},function(a){return a.detail=a.title,a.title="De rol kon niet gevonden worden.",e.reject(a)}).then(function(){return k(b)}).then(function(){return l(b)})}function j(){function a(a){return _.map(a,function(a,b){return{key:b,name:a}})}var b=_.values(g);return f(b).then(a)}function k(b){return a.getRoleUsers(b).then(function(a){z.role.users=a},function(a){return a.detail=a.title,a.title="De leden van deze rol konden niet geladen worden.",e.reject(a)})}function l(b){return a.getRoleLabels(b).then(function(a){z.role.labels=a},function(a){return a.detail=a.title,a.title="De labels van deze rol konden niet geladen worden.",e.reject(a)})}function m(a){A=a.roleId,z.role.uuid=A}function n(){!z.role.uuid&&z.role.name&&a.create(z.role.name).then(m,y)["finally"](function(){z.saving=!1})}function o(){return _.has(z.role.constraints,"v3")&&null!==z.role.constraints.v3}function p(){z.saving=!0,a.createRoleConstraint(A,z.role.constraints.v3).then(function(){z.editConstraint=!1},y)["finally"](function(){z.saving=!1})}function q(){z.saving=!0,a.updateRoleConstraint(A,z.role.constraints.v3).then(function(){z.editConstraint=!1},y)["finally"](function(){z.saving=!1})}function r(){z.saving=!0,a.removeRoleConstraint(A).then(function(){z.editConstraint=!1,_.has(z.role.constraints,"v3")&&delete z.role.constraints.v3},y)["finally"](function(){z.saving=!1})}function s(){z.saving=!0,a.updateRoleName(A,z.role.name).then(function(){z.editName=!1},y)["finally"](function(){z.saving=!1})}function t(b){z.loadedRolePermissions=!1;var c=e.reject();_.find(z.role.permissions,{key:b.key})?(z.role.permissions=_.reject(z.role.permissions,{key:b.key}),c=a.removePermissionFromRole(b.key,A)):(z.role.permissions.push(b),c=a.addPermissionToRole(b.key,A)),c["catch"](y)["finally"](function(){z.loadedRolePermissions=!0})}function u(b){z.saving=!0,a.addLabelToRole(A,b.uuid).then(function(){z.role.labels.push(b)},y)["finally"](function(){z.saving=!1})}function v(b){z.saving=!0,a.removeLabelFromRole(A,b.uuid).then(function(){var a=z.role.labels.indexOf(b);z.role.labels.splice(a,1)},y)["finally"](function(){z.saving=!1})}function w(b){var c=_.pick(z.role,["uuid","name","constraint"]);z.saving=!0,a.removeUserFromRole(c,b).then(function(){var a=z.role.users.indexOf(b);z.role.users.splice(a,1)},y)["finally"](function(){z.saving=!1})}function x(){z.addingUser=!0;var c=!1;b.findUserWithEmail(z.email).then(function(a){var b=!1;return c=a,angular.forEach(z.role.users,function(c){c.uuid===a.uuid&&(b=!0)}),b?e.reject({title:"De gebruiker hangt al aan deze rol."}):a}).then(function(b){var c=_.pick(z.role,["uuid","name","constraint"]);return a.addUserToRole(b,c)}).then(function(){z.role.users.push(c),z.form.email.$setViewValue(""),z.form.email.$setPristine(!0),z.form.email.$render()})["catch"](y)["finally"](function(){z.addingUser=!1})}function y(a){z.errorMessage=a.title+(a.detail?" "+a.detail:"");c.open({templateUrl:"templates/unexpected-error-modal.html",controller:"UnexpectedErrorModalController",size:"sm",resolve:{errorMessage:function(){return z.errorMessage}}})}var z=this,A=d.id;z.saving=!1,z.loadedRole=!1,z.loadedRolePermissions=!1,z.loadedRoleUsers=!1,z.loadedRoleLabels=!1,z.addingUser=!1,z.role={permissions:[],users:[],labels:[]},z.availablePermissions=[],z.errorMessage=!1,z.editName=!1,z.editConstraint=!1,z.addUser=x,z.addLabel=u,z.createRole=n,z.removeLabel=v,z.removeUser=w,z.updatePermission=t,z.updateName=s,z.createConstraint=p,z.updateConstraint=q,z.removeConstraint=r,z.constraintExists=o,h()}angular.module("udb.management.roles").controller("RoleFormController",a),a.$inject=["RoleManager","UserManager","$uibModal","$stateParams","$q","$translate","RolePermission"]}(),function(){"use strict";function a(a){var b=this;b.find=function(b,c,d){return a.findRoles(b,c,d)},b.get=function(b){return a.getRoleById(b)},b.getRolePermissions=function(b){return a.getRolePermissions(b)},b.getRoleUsers=function(b){return a.getRoleUsers(b)},b.create=function(b){return a.createRole(b)},b.addPermissionToRole=function(b,c){return a.addPermissionToRole(b,c)},b.removePermissionFromRole=function(b,c){return a.removePermissionFromRole(b,c)},b.addUserToRole=function(b,c){return a.addUserToRole(b.uuid,c.uuid)},b.updateRoleName=function(b,c){return a.updateRoleName(b,c)},b.createRoleConstraint=function(b,c){return a.createRoleConstraint(b,c)},b.updateRoleConstraint=function(b,c){return a.updateRoleConstraint(b,c)},b.removeRoleConstraint=function(b){return a.removeRoleConstraint(b)},b.addLabelToRole=function(b,c){return a.addLabelToRole(b,c)},b.getRoleLabels=function(b){return a.getRoleLabels(b)},b.removeLabelFromRole=function(b,c){return a.removeLabelFromRole(b,c)},b.removeUserFromRole=function(b,c){return a.removeUserFromRole(b.uuid,c.uuid)},b.deleteRole=function(b){return a.removeRole(b.uuid)}}angular.module("udb.management.roles").service("RoleManager",a),a.$inject=["udbApi"]}(),function(){"use strict";function a(a,b,c,d,e,f,g){function h(a){return""===m.query?!0:a.length>=o}function i(a){m.problem=a}function j(){m.problem=!1}function k(a){var b=a.error;b?(i(b),m.searchResult={}):(j(),m.searchResult=a),m.loading=!1}function l(a){var b=e.open({templateUrl:"templates/role-delete-confirm-modal.html",controller:"RoleDeleteConfirmModalCtrl",resolve:{item:function(){return a}}});b.result.then(function(){f.reload()})}var m=this,n=10,o=3,p=b.createObservableFunction(m,"queryChanged"),q=p.filter(h),r=b.createObservableFunction(m,"pageChanged"),s=new a(d,q,r,n),t=s.getSearchResult$();m.openDeleteConfirmModal=l,m.loading=!1,m.query="",m.page=0,m.minQueryLength=o,p.safeApply(c,function(a){m.query=a}).subscribe(),t.safeApply(c,k).subscribe(),q.merge(r).safeApply(c,function(){m.loading=!0}).subscribe(),r.subscribe(function(){g.scrollTop(0)})}angular.module("udb.management.roles").controller("RolesListController",a),a.$inject=["SearchResultGenerator","rx","$scope","RoleManager","$uibModal","$state","$document"]}(),function(){"use strict";function a(a){function b(b){a.find(b,6,0).then(function(a){d(a.member)})["finally"](function(){e.refreshing=!1})}function c(a){e.refreshing=!0,d([]),b(a)}function d(a){e.availableLabels=a}var e=this;e.availableLabels=[],e.suggestLabels=c,e.minimumInputLength=2,e.findDelay=300,e.label=null}angular.module("udb.management.roles").component("udbSearchLabel",{templateUrl:"templates/search-label.html",controller:a,controllerAs:"select",bindings:{labelAdded:"&",labelRemoved:"&"}}),a.$inject=["LabelManager"]}(),function(){"use strict";function a(a,b){return{restrict:"A",require:"ngModel",link:function(c,d,e,f){function g(c){if(f.$isEmpty(c))return b.when();var d=b.defer();return a.get(c).then(d.reject,d.resolve),d.promise}f.$asyncValidators.uniqueRole=g}}}angular.module("udb.management.roles").directive("udbUniqueRole",a),a.$inject=["RoleManager","$q"]}(),function(){"use strict";function a(a){function b(a,b){return{query:a,offset:b}}function c(a){return function(b){return(b-1)*a}}var d=function(d,e,f,g,h){h=h||"",this.searchService=d,this.itemsPerPage=g,this.query$=e.debounce(300).startWith(h),this.offset$=f.map(c(g)).startWith(0),this.searchParameters$=a.Observable.combineLatest(this.query$,this.offset$,b)};return d.prototype.constructor=d,d.prototype.find=function(b){var c=this;return a.Observable.fromPromise(c.searchService.find(b.query,c.itemsPerPage,b.offset))["catch"](function(b){return a.Observable.just({error:b})})},d.prototype.getSearchResult$=function(){var a=this;return a.searchParameters$.flatMap(a.find.bind(a))},d}angular.module("udb.management").factory("SearchResultGenerator",a),a.$inject=["rx"]}(),function(){"use strict";function a(a){var b=this;b.find=function(b,c,d){return a.resolve({"@context":"http://www.w3.org/ns/hydra/context.jsonld","@type":"PagedCollection",itemsPerPage:10,totalItems:0,member:[],firstPage:"http://du.de/items?page=1",lastPage:"http://du.de/items?page=1",nextPage:"http://du.de/items?page=1"})}}angular.module("udb.management").service("SearchService",a),a.$inject=["$q"]}(),function(){"use strict";function a(a,b,c,d){function e(b){a.findUserWithEmail(b).then(function(b){f(b),a.getRoles(b.uuid).then(g)})}function f(a){j.user=a}function g(a){j.roles=a}function h(a){return d.when(a.task.promise)}function i(a){return a.perform()["catch"](a.undo)}var j=this,k=c.email;e(k),j.deleteRole=function(a){var c={role:a,style:"list-group-item-danger",perform:_.once(function(){return b.removeUserFromRole(a,j.user).then(h)}),undo:function(){console.log("¯\\_(ツ)_/¯")}};j.queueAction(c)},j.queueAction=function(a){var b=j.actions?j.actions:[];j.getRoleAction(a.role)||(b.push(a),j.actions=b)},j.getRoleStyle=function(a){var b=j.getRoleAction(a);return b?b.style:null},j.getRoleAction=function(a){return _.find(j.actions,{role:{uuid:a.uuid}})},j.lookupRoles=function(a){return b.find(a,20).then(function(a){return _.reject(a.member,function(a){return _.find(j.roles,{uuid:a.uuid})})})},j.addRole=function(a){if(!_.find(j.roles,{uuid:a.uuid})){j.roles.push(a),j.roleLookupName="";var c={role:a,style:"list-group-item-success",perform:_.once(function(){return b.addUserToRole(j.user,a).then(h)}),undo:function(){j.roles=_.reject(j.roles,{uuid:a.uuid})}};j.queueAction(c)}},j.save=function(){j.saving=!0;var a=_.map(j.actions,i);d.all(a).then(function(){e(k),j.saving=!1,j.actions=[]})},j.undoAction=function(a){var b=j.getRoleAction(a);b.undo(),j.actions=_.reject(j.actions,{role:{uuid:a.uuid}})}}angular.module("udb.management.users").controller("UserEditorController",a),a.$inject=["UserManager","RoleManager","$stateParams","$q"]}(),function(){"use strict";function a(a){var b=this;b.findUserWithEmail=function(b){return a.findUserWithEmail(b)},b.getRoles=function(b){return a.getUserRoles(b)}}angular.module("udb.management.users").service("UserManager",a),a.$inject=["udbApi"]}(),function(){"use strict";function a(a,b){function c(a){e.status="problem",e.problem=a}function d(){e.status="idle",e.problem=!1}var e=this;e.status="idle",e.query="",e.problem="",e.handleChange=function(){"problem"===e.status&&d()},e.handleSubmit=function(){e.status="loading",a.findUserWithEmail(e.query).then(function(a){e.status="idle",b.path("/manage/users/"+a.email)},function(a){404===a.status?e.status="notFound":c(a.title)})}}angular.module("udb.management.users").controller("UsersListController",a),
-a.$inject=["UserManager","$location"]}(),function(){"use strict";function a(a,b,c,d){var e=this;e.createImage=function(a,b,f,g){function h(a){return a.split("/").pop()}function i(a){return l.indexOf(a)>=0}function j(a){e.getImage(a.data.imageId).then(k.resolve,k.reject)}var k=c.defer(),l=["png","jpeg","jpg","gif"];return i(h(a.type))?d.uploadMedia(a,b,f,g).then(j,k.reject):k.reject({data:{title:"The uploaded file is not an image."}}),k.promise},e.getImage=function(a){function b(b){var d=b;return d.id=a,c.resolve(d)}return d.getMedia(a).then(b)}}angular.module("udb.media").service("MediaManager",a),a.$inject=["jobLogger","appConfig","$q","udbApi"]}(),function(){"use strict";function a(a,b,c,d){function e(){f()&&c.go(g.destination.state,{id:a.id})}function f(){return!!_.get(a,"location.id")}var g=this;g.completeMigration=e;var h={description:d.instant("eventForm.step4.continue"),state:"split.eventEdit"};g.destination=b.destination||h,g.migrationReady=f}angular.module("udb.migration").component("udbEventMigrationFooter",{templateUrl:"templates/event-migration-footer.component.html",controller:a,controllerAs:"migration"}),a.$inject=["EventFormData","$stateParams","$state","$translate"]}(),function(){"use strict";function a(){function a(a){return!!_.get(a,"location.id")}var b=this,c={location:a};b.checkRequirements=function(a){var b=_(c).pick(function(b){return!b(a)}).keys();return b.value()}}angular.module("udb.migration").service("eventMigration",a)}(),function(){"use strict";function a(a){function b(b){a.translateAddress(c.offer,b,c.translatedAddresses[b])}var c=this;c.translatedAddresses={},c.originalAddress=_.get(c.offer.address,c.offer.mainLanguage,"")||_.get(c.offer.address,"nl","")||_.get(c.offer,"address",""),c.translatedAddresses=_.get(c.offer,"address"),_.forEach(c.activeLanguages,function(a,b){void 0===c.translatedAddresses[b]&&(c.translatedAddresses[b]={postalCode:c.originalAddress.postalCode,addressLocality:c.originalAddress.addressLocality,addressCountry:c.originalAddress.addressCountry})}),c.saveTranslatedAddress=b}angular.module("udb.offer-translate").component("offerTranslateAddress",{templateUrl:"templates/translate-address.html",controller:a,controllerAs:"tac",bindings:{offer:"<",activeLanguages:"<"}}),a.$inject=["offerTranslator"]}(),function(){"use strict";function a(a){function b(b){a.translateProperty(c.offer,"description",b,c.translatedDescriptions[b]).then(function(){})}var c=this;c.translatedDescriptions={},c.originalDescription=_.get(c.offer.description,c.offer.mainLanguage,"")||_.get(c.offer.description,"nl","")||_.get(c.offer,"description",""),c.originalDescription=_.isEmpty(c.originalDescription)?"":c.originalDescription,c.translatedDescriptions=_.get(c.offer,"description"),c.saveTranslatedDescription=b}angular.module("udb.offer-translate").component("offerTranslateDescription",{templateUrl:"templates/translate-description.html",controller:a,controllerAs:"ttd",bindings:{offer:"<",activeLanguages:"<"}}),a.$inject=["offerTranslator"]}(),function(){"use strict";function a(a,b,c,d){function e(b){d.mainLanguage=b;a.open({templateUrl:"templates/event-form-image-upload.html",controller:"EventFormImageUploadController",resolve:{EventFormData:function(){return d}}})}function f(a,b){var d=null,e=new XMLHttpRequest;e.open("GET",a.contentUrl),e.responseType="blob",e.onload=function(){d=e.response,c.createImage(d,a.description,a.copyrightHolder,b).then(i,j)},e.send()}function g(b){a.open({templateUrl:"templates/event-form-image-edit.html",controller:"EventFormImageEditController",resolve:{EventFormData:function(){return d},mediaObject:function(){return b}}})}function h(b){a.open({templateUrl:"templates/event-form-image-remove.html",controller:"EventFormImageRemoveController",resolve:{EventFormData:function(){return d},image:function(){return b}}})}function i(a){function c(){d.addImage(a)}b.addImage(d,a).then(c,j)}function j(a){var b=a.data.title,c="Er ging iets mis bij het opslaan van de afbeelding.";switch(b){case"The uploaded file is not an image.":c="Het geüpload bestand is geen geldige afbeelding. Enkel bestanden met de extenties .jpeg, .gif of .png zijn toegelaten.";break;case"The file size of the uploaded image is too big.":c="Het geüpload bestand is te groot."}k.saving=!1,k.error=c}var k=this;d.init(),k.eventFormData=d,k.offer.mediaObject&&(d.mediaObjects=k.offer.mediaObject||[]),d.name=k.offer.name,d.apiUrl=k.offer.apiUrl,d.mainLanguage=k.offer.mainLanguage,k.openUploadImageModal=e,k.removeImage=h,k.editImage=g,k.copyImage=f}angular.module("udb.offer-translate").component("offerTranslateImages",{templateUrl:"templates/translate-images.html",controller:a,controllerAs:"tic",bindings:{offer:"<",activeLanguages:"<"}}),a.$inject=["$uibModal","eventCrud","MediaManager","EventFormData"]}(),function(){"use strict";function a(a){function b(){for(var b in e.offer.priceInfo)if(b>0){var c={};c[e.offer.mainLanguage]=e.originalTariffs[b-1],e.offer.priceInfo[b].name=_.merge(c,e.translatedTariffs[b-1])}a.updatePriceInfo(e.offer)}function c(){var a=[];for(var b in e.offer.priceInfo)b>0&&a.push(e.offer.priceInfo[b].name[e.offer.mainLanguage]?e.offer.priceInfo[b].name[e.offer.mainLanguage]:e.offer.priceInfo[b].name);return a}function d(){var a=[];for(var b in e.offer.priceInfo)b>0&&a.push(e.offer.priceInfo[b].name);return a}var e=this;e.translatedTariffs=[],e.originalTariffs=c(),e.translatedTariffs=d(),e.saveTranslatedTariffs=b}angular.module("udb.offer-translate").component("offerTranslateTariffs",{templateUrl:"templates/translate-tariffs.html",controller:a,controllerAs:"ttsc",bindings:{offer:"<",activeLanguages:"<"}}),a.$inject=["eventCrud"]}(),function(){"use strict";function a(a){function b(b){a.translateProperty(c.offer,"name",b,c.translatedNames[b]).then(function(){})}var c=this;c.translatedNames={},c.originalName=_.get(c.offer.name,c.offer.mainLanguage,null)||_.get(c.offer.name,"nl",null)||_.get(c.offer,"name",""),c.translatedNames=_.get(c.offer,"name"),c.saveTranslatedName=b}angular.module("udb.offer-translate").component("offerTranslateTitle",{templateUrl:"templates/translate-title.html",controller:a,controllerAs:"ttc",bindings:{offer:"<",activeLanguages:"<"}}),a.$inject=["offerTranslator"]}(),function(){"use strict";function a(a,b,c,d,e,f,g){function h(b){a.language=f.use()||"nl",a.cachedOffer=b,a.apiUrl=b.apiUrl,a.mainLanguage=b.mainLanguage?b.mainLanguage:"nl",a.translatedOffer=d(b,a.language,!0),a.originalName=a.translatedOffer.name,a.offerType=b.url.split("/").shift(),"event"===a.offerType?(a.isEvent=!0,a.isPlace=!1):(a.isEvent=!1,a.isPlace=!0),_.forEach(a.cachedOffer.name,function(b,c){a.activeLanguages[c]&&(a.activeLanguages[c].active=!0)}),a.activeLanguages[a.mainLanguage].main=!0,a.loaded=!0}function i(){console.log("offer not found")}function j(a){a?c.getOffer(a).then(h):i()}function k(){var b=a.cachedOffer.id.toString(),c=b.split("/").pop();g.go("split.eventEdit",{id:c})}function l(){g.go("split.footer.dashboard")}a.apiUrl="",a.loaded=!1,a.mainLanguage="",a.languages=["nl","fr","en","de"],a.activeLanguages={nl:{active:!1,main:!1},fr:{active:!1,main:!1},en:{active:!1,main:!1},de:{active:!1,main:!1}},a.openEditPage=k,a.goToDashboard=l,e.when(b).then(j,i)}angular.module("udb.offer-translate").controller("OfferTranslateController",a),a.$inject=["$scope","offerId","udbApi","jsonLDLangFilter","$q","$translate","$state"]}(),function(){"use strict";function a(){return{templateUrl:"templates/offer-translate.html",restrict:"EA"}}angular.module("udb.offer-translate").directive("udbOfferTranslate",a)}(),function(){"use strict";function a(a,b,c,d,e,f,g){function h(){s.availableCountries=e.offerEditor.countries,s.defaultCountry=_.find(s.availableCountries,function(a){return a["default"]}),s.selectedCountry=s.defaultCountry,""!==s.address.addressCountry?s.selectedCountry={code:s.address.addressCountry,"default":!0}:s.selectedCountry=s.defaultCountry,s.address.addressCountry=s.selectedCountry.code,s.cities="BE"===s.selectedCountry.code?c:d,s.selectedCity="",s.requiredAddress=!1,s.address.addressLocality&&(s.hasAddress=!0,s.selectedCity=s.address.postalCode+" "+s.address.addressLocality,s.requiredAddress=!0)}function i(){s.streetHasErrors=!1,s.cityHasErrors=!1,s.zipValidateError=!1,s.zipHasErrors=!1,s.addressHasErrors=!1,s.addressRemovedError=!1,s.addressRemovedSuccess=!1}function j(){i(),s.requiredAddress?((""===s.address.streetAddress||void 0===s.address.streetAddress)&&(s.streetHasErrors=!0),""===s.selectedCity&&(s.cityHasErrors=!0),"NL"===s.selectedCountry.code&&(""===s.address.postalCode||void 0===s.address.postalCode)&&(s.zipHasErrors=!0,s.zipValidateError=!k(s.address.postalCode))):(""!==s.selectedCity&&((""===s.address.streetAddress||void 0===s.address.streetAddress)&&(s.streetHasErrors=!0),"NL"===s.selectedCountry.code&&(""===s.address.postalCode||void 0===s.address.postalCode)&&(s.zipHasErrors=!0,s.zipValidateError=!k(s.address.postalCode))),""!==s.address.streetAddress&&(""===s.selectedCity&&(s.cityHasErrors=!0),(""===s.address.postalCode||void 0===s.address.postalCode)&&(s.zipHasErrors=!0,s.zipValidateError=!k(s.address.postalCode))),"NL"===s.selectedCountry.code&&""!==s.address.postalCode&&((""===s.address.streetAddress||void 0===s.address.streetAddress)&&(s.streetHasErrors=!0),""===s.selectedCity&&(s.cityHasErrors=!0),s.zipValidateError=!k(s.address.postalCode))),r()}function k(a){var b=new RegExp(/^[0-9]{4}[a-z]{2}$/i);return b.test(a)}function l(a){return function(b){var c=(a.length,a.match(/\w+/g)),d=c.filter(function(a){return-1!==b.label.toLowerCase().indexOf(a.toLowerCase())});return d.length>=c.length}}function m(a){return function(c){return new b(a,c.label)}}function n(a,b){"BE"===s.selectedCountry.code&&(s.address.postalCode=a.zip),s.address.addressLocality=a.name,s.cityAutocompleteTextField="",s.selectedCity=b,j()}function o(){s.address.postalCode="",s.address.addressLocality="",s.selectedCity="",s.cityAutocompleteTextField="",j()}function p(){"NL"===s.selectedCountry.code?s.cities=d:s.cities=c,s.address.addressCountry=s.selectedCountry.code,o()}function q(){s.address.streetAddress="",o(),g.removeOrganizerAddress(t).then(function(a){s.hasAddress=!1,s.addressRemovedSuccess=!0})["catch"](function(a){s.addressRemovedError=!0})}function r(){s.addressHasErrors=s.streetHasErrors||s.cityHasErrors||s.zipHasErrors||s.zipValidateError,s.onUpdate({error:s.addressHasErrors})}var s=this,t=f.id;s.streetHasErrors=!1,s.cityHasErrors=!1,s.addressHasErrors=!1,s.zipHasErrors=!1,s.zipValidateError=!1,s.validateAddress=j,s.filterCities=l,s.orderByLevenshteinDistance=m,s.selectCity=n,s.changeCitySelection=o,s.changeCountrySelection=p,s.clearAddressInfo=q,s.$onInit=h,a.$on("organizerAddressSubmit",function(){s.organizerAddressForm.$setSubmitted(),i(),j()})}angular.module("udb.organizers").component("udbOrganizerAddress",{templateUrl:"templates/organizer-address.html",controller:a,controllerAs:"oac",bindings:{address:"=",onUpdate:"&"}}),a.$inject=["$scope","Levenshtein","citiesBE","citiesNL","appConfig","$stateParams","OrganizerManager"]}(),function(){"use strict";function a(a,b){function c(){_.find(j.contact,{value:""})||_.find(j.contact,{value:void 0})||j.organizerContactWrapper.$invalid&&j.organizerContactWrapper.$dirty?j.contactHasErrors=!0:j.contactHasErrors=!1,i()}function d(){j.newContact={type:"",value:""}}function e(a){j.newContact={type:a,value:""},j.isPristine=!0,j.addingContactEntry=!0}function f(){d(),j.addingContactEntry=!1,j.isPristine=!0}function g(){c(),j.contactHasErrors||(j.contact.push(j.newContact),d(),j.addingContactEntry=!1,j.isPristine=!0,i())}function h(a){j.contact.splice(a,1),c()}function i(){j.onUpdate({error:j.contactHasErrors})}var j=this;j.newContact={},j.addingContactEntry=!1,j.isPristine=!0,j.validateContact=c,j.addOrganizerContactEntry=e,j.cancelOrganizerContactEntry=f,j.addOrganizerContactInfo=g,j.deleteOrganizerContactInfo=h,j.sendUpdate=i,j.contactUrlRegex=(new b).regex.url,a.$on("organizerContactSubmit",function(){j.organizerContactWrapper.$setSubmitted()}),a.$watch(function(){return j.newContact},function(a){a&&a.value&&""!==a.value&&(j.isPristine=!1)},!0)}angular.module("udb.organizers").component("udbOrganizerContact",{templateUrl:"templates/organizer-contact.html",controller:a,controllerAs:"occ",bindings:{contact:"=",onUpdate:"&"}}),a.$inject=["$scope","UdbOrganizer"]}(),function(){"use strict";function a(a,b,c,d,e,f){function g(b){a.get(b).then(h),f.getOrganizerPermissions(b).then(function(a){u.permissions=a.permissions})}function h(a){u.organizer=a}function i(b){u.labelSaving=!0,l(),a.addLabelToOrganizer(v,b.name)["catch"](r)["finally"](function(){u.labelSaving=!1,k()})}function j(b){u.labelSaving=!0,l(),k(),a.deleteLabelFromOrganizer(v,b.name)["catch"](q)["finally"](function(){u.labelSaving=!1})}function k(){a.removeOrganizerFromCache(v)}function l(){u.labelResponse="",u.labelsError=""}function m(){return-1!==w.indexOf("manage")}function n(){d.path("/manage/organizations")}function o(){p(u.organizer)}function p(a){var c=b.open({templateUrl:"templates/organization-delete.modal.html",controller:"OrganizationDeleteModalController",controllerAs:"odc",resolve:{organization:function(){return a}}});c.result.then(n)}function q(a){g(v),u.labelResponse="unlabelError",u.labelsError=a.title}function r(a){u.errorMessage=a.title+(a.detail?" "+a.detail:"");b.open({templateUrl:"templates/unexpected-error-modal.html",controller:"UnexpectedErrorModalController",size:"sm",resolve:{errorMessage:function(){return u.errorMessage}}})}function s(){return u.organizer&&!u.loadingError}function t(){return-1!==u.permissions.indexOf("Organisaties bewerken")}var u=this,v=c.id,w=e.current.name;u.labelSaving=!1,u.addLabel=i,u.deleteLabel=j,u.labelResponse="",u.labelsError="",u.deleteOrganization=o,u.isManageState=m,u.finishedLoading=s,u.canEdit=t,u.permissions=[],g(v)}angular.module("udb.organizers").controller("OrganizerDetailController",a),a.$inject=["OrganizerManager","$uibModal","$stateParams","$location","$state","udbApi"]}(),function(){"use strict";function a(a,b,c,d,e,f,g,h,i){function j(){x.organizer={mainLanguage:A,website:"http://",name:"",address:{streetAddress:"",addressLocality:"",postalCode:"",addressCountry:""},contact:[]},x.showAddressComponent=!0}function k(b){a.removeOrganizerFromCache(b),a.get(b).then(l,function(){x.loadingError=!0})["finally"](function(){x.showAddressComponent=!0})}function l(a){_.isEmpty(a.address)&&(a.address={streetAddress:"",addressLocality:"",postalCode:"",addressCountry:""}),x.organizer=a,B=_.cloneDeep(a),x.originalName=B.name,null!==x.organizer.contactPoint&&(_.forEach(x.organizer.contactPoint,function(a,b){_.forEach(a,function(a){x.contact.push({type:b,value:a})})}),C=_.cloneDeep(x.contact))}function m(){return x.showWebsiteValidation=!0,x.organizerForm.website.$valid?void b.findOrganizersWebsite(x.organizer.website).then(function(a){x.urlError=!1,a.totalItems>0?a.member[0].name===x.originalName?(x.showWebsiteValidation=!1,x.organizersWebsiteFound=!1):(x.organizersWebsiteFound=!0,x.showWebsiteValidation=!1):(x.showWebsiteValidation=!1,x.organizersWebsiteFound=!1)},function(){x.websiteError=!0,x.showWebsiteValidation=!1})["finally"](function(){r()}):(x.showWebsiteValidation=!1,void(x.urlError=!0))}function n(){x.organizerForm.name.$valid?x.nameError=!1:x.nameError=!0,r()}function o(a){x.addressError=a,r()}function p(a){x.contactError=a,r()}function q(){return x.showValidation=!0,!x.organizerForm.$valid||x.organizersWebsiteFound||x.websiteError||x.urlError||x.nameError||x.addressError||x.contactError?(x.hasErrors=!0,x.disableSubmit=!0,f.$broadcast("organizerAddressSubmit"),void f.$broadcast("organizerContactSubmit")):void(x.isNew?t():s())}function r(){D=!_.isEqual(x.organizer.website,B.website),E=!_.isEqual(x.organizer.name,B.name),F=!_.isEqual(x.organizer.address,B.address)&&!_.isEmpty(x.organizer.address.streetAddress),G=!_.isEqual(x.contact,C),D||E||F||G?x.disableSubmit=!1:x.disableSubmit=!0,!x.organizerForm.$valid||x.organizersWebsiteFound||x.websiteError||x.urlError||x.nameError||x.addressError||x.contactError||(x.hasErrors=!1)}function s(){var b=[];D&&b.push(a.updateOrganizerWebsite(y,x.organizer.website)),E&&b.push(a.updateOrganizerName(y,x.organizer.name,A)),F&&b.push(a.updateOrganizerAddress(y,x.organizer.address,A)),G&&b.push(a.updateOrganizerContact(y,x.contact)),b.push(a.removeOrganizerFromCache(y)),e.all(b).then(function(){v()})["catch"](function(){x.hasErrors=!0,x.saveError=!0})}function t(){var b=_.clone(x.organizer);b.address.streetAddress||b.address.addressLocality||b.address.postalCode||delete b.address,h.createOrganizer(b).then(function(b){var c=_.get(i,"offerEditor.defaultOrganizerLabel");"undefined"!=typeof c&&""!==c&&a.addLabelToOrganizer(b.data.organizerId,c),x.organizer.id=b.data.organizerId,v()},function(){x.hasErrors=!0,x.saveError=!0})}function u(){w()?c.go("management.organizers.search",{},{reload:!0}):c.go("split.footer.dashboard",{},{reload:!0})}function v(){a.removeOrganizerFromCache(x.organizer.id),c.go("split.organizerDetail",{id:x.organizer.id},{reload:!0})}function w(){return-1!==z.indexOf("manage")}var x=this,y=d.id,z=c.current.name,A=g.use()||"nl";x.language=A,x.showAddressComponent=!1,x.isNew=!0,x.loadingError=!1,x.contact=[],x.showWebsiteValidation=!1,x.urlError=!1,x.websiteError=!1,x.nameError=!1,x.addressError=!1,x.contactError=!1,x.hasErrors=!1,x.disableSubmit=!0,x.saveError=!1,x.validateWebsite=m,x.validateName=n,x.validateAddress=o,x.validateContact=p,x.checkChanges=r,x.validateOrganizer=q,x.cancel=u,x.isManageState=w;var B={},C=[],D=!1,E=!1,F=!1,G=!1;y?(x.isNew=!1,k(y)):j()}a.$inject=["OrganizerManager","udbOrganizers","$state","$stateParams","$q","$scope","$translate","eventCrud","appConfig"],angular.module("udb.organizers").controller("OrganizerFormController",a)}(),function(){"use strict";function a(a){var b=this;b["delete"]=function(b){return a.deleteOrganization(b)},b.find=function(b,c,d){return a.findOrganisations(d,c,null,b)},b.get=function(b){return a.getOrganizerById(b)},b.addLabelToOrganizer=function(b,c){return a.addLabelToOrganizer(b,c)},b.deleteLabelFromOrganizer=function(b,c){return a.deleteLabelFromOrganizer(b,c)},b.removeOrganizerFromCache=function(b){return a.removeItemFromCache(b)},b.updateOrganizerWebsite=function(b,c){return a.updateOrganizerWebsite(b,c)},b.updateOrganizerName=function(b,c,d){return a.updateOrganizerName(b,c,d)},b.updateOrganizerAddress=function(b,c,d){return a.updateOrganizerAddress(b,c,d)},b.removeOrganizerAddress=function(b){return a.removeOrganizerAddress(b)},b.updateOrganizerContact=function(b,c,d){return a.updateOrganizerContact(b,c,d)}}angular.module("udb.organizers").service("OrganizerManager",a),a.$inject=["udbApi"]}(),function(){"use strict";function a(){return{templateUrl:"templates/place-detail.html",restrict:"EA",controller:PlaceDetail}}angular.module("udb.place-detail").directive("udbPlaceDetail",a)}(),function(){"use strict";function a(a,b,c,d,e,f,g,h,i,j,k,l,m,n){function o(b){var c=b[0],d=b[1];n.getPermissions().then(function(b){a.isGodUser=_.filter(b,function(a){return a===m.GEBRUIKERS_BEHEREN}).length>0,a.isGodUser?a.permissions={editing:!0,duplication:!0}:c?a.permissions={editing:!d.isExpired(),duplication:!0}:a.permissions={editing:!1,duplication:!1},p()})}function p(){a.isGodUser?a.tabs=[{id:"data"},{id:"history"},{id:"publication"}]:a.tabs=[{id:"data"},{id:"publication"}]}function q(b){B=b,a.place=e(b,A,!0),a.placeIdIsInvalid=!1,"object"==typeof a.place.description&&(a.place.description=a.place.description[A],void 0===a.place.description&&(a.place.description="")),a.finishedLoading=!0,b.typicalAgeRange.indexOf("-")===b.typicalAgeRange.length-1?a.ageRange=b.typicalAgeRange.slice(0,-1)+"+":a.ageRange=b.typicalAgeRange}function r(b){a.placeIdIsInvalid=!0}function s(a){function b(a,b){var c=g.open({templateUrl:"templates/place-delete-confirm-modal.html",controller:"PlaceDeleteConfirmModalCtrl",resolve:{place:function(){return a},events:function(){return b}}});c.result.then(z.goToDashboard)}f.findEventsAtPlace(a.apiUrl).then(function(c){b(a,c)})}function t(b){a.placeHistory=b}function u(b){var c=_.find(B.labels,function(a){return b.name.toUpperCase()===a.toUpperCase()});c?i.alert('Het label "'+b.name+'" is reeds toegevoegd als "'+c+'".'):j.label(B,b.name).then(function(b){b.success?(a.labelResponse="success",a.addedLabel=b.name):(a.labelResponse="error",a.labelsError=b),a.place.labels=angular.copy(B.labels)})}function v(){a.labelResponse="",a.labelsError=""}function w(b){a.place.labels=angular.copy(B.labels),a.labelResponse="unlabelError",a.labelsError=b.title}function x(a){v(),j.unlabel(B,a.name)["catch"](w)}var y="data",z=this,A=l.use()||"nl";a.isOmdApp=!!_.get(k,"omdSpecific",!1),h.when(b,function(b){a.placeId=b;var d=c.getOffer(b),e=c.hasPermission(b);d.then(q,r),h.all([e,d]).then(o)}),a.placeIdIsInvalid=!1,a.labelAdded=u,a.labelRemoved=x,a.labelResponse="",a.labelsError="",a.finishedLoading=!1,a.placeHistory=void 0,a.deletePlace=function(){s(a.place)},a.language=A;var B;a.placeLocation=function(a){return a.address.addressLocality?a.address.addressLocality:""},a.isTabActive=function(a){return a===y},a.makeTabActive=function(b){if(y=b,"history"===b&&!a.placeHistory){var d=a.placeId.split("/").pop();c.getHistory(d,"place").then(t)}},a.openEditPage=function(){var b=a.placeId.toString(),c=b.split("/").pop();d.go("split.placeEdit",{id:c})},a.openTranslatePage=function(){var b=a.placeId.toString(),c=b.split("/").pop();d.go("split.placeTranslate",{id:c})},z.goToDashboard=function(){d.go("split.footer.dashboard")},a.translateType=function(a){var b=l.instant("offerTypes."+a);return _.includes(b,"offerTypes.")?a:b}}angular.module("udb.place-detail").controller("PlaceDetailController",a),a.$inject=["$scope","placeId","udbApi","$state","jsonLDLangFilter","eventCrud","$uibModal","$q","$window","offerLabeller","appConfig","$translate","RolePermission","authorizationService"]}(),function(){"use strict";function a(a,b){function c(a,b){g[a]=b}function d(a){_.each(a.member,function(a){var b=a["@id"],d=b.split("/").pop();c(d,b)})}function e(b){var c=g[b];return c?a.resolve(c):f(b)}function f(d){function e(a){if(1===a.totalItems){var b=a.member[0]["@id"];c(d,b),f.resolve(b)}else f.reject("Unable to determine the exact offer for this uuid.")}var f=a.defer(),g='id:"'+d+'"',h=0,i=!0;return b.findOffers(g,h,i).then(e)["catch"](f.reject),f.promise}var g={};this.get=e,this.add=c,this.addPagedCollection=d}angular.module("udb.router").service("offerLocator",a),a.$inject=["$q","udbApi"]}(),function(){"use strict";function a(a,b){var c=function(){b.close()},d=function(){b.dismiss("cancel")};a.cancel=d,a.confirm=c}angular.module("udb.saved-searches").controller("DeleteSearchModalController",a),a.$inject=["$scope","$uibModalInstance"]}(),function(){"use strict";function a(a,b){var c=function(){var c=a.queryName;a.wasSubmitted=!0,c&&b.close(c)},d=function(){b.dismiss("cancel")};a.cancel=d,a.ok=c,a.queryName="",a.wasSubmitted=!1}angular.module("udb.saved-searches").controller("SaveSearchModalController",a),a.$inject=["$scope","$uibModalInstance"]}(),function(){"use strict";function a(a,b){function c(c,e,f,g){c.saveSearch=function(){var e=b.open({templateUrl:"templates/save-search-modal.html",controller:"SaveSearchModalController"});e.result.then(function(b){a.createSavedSearch(b,c.queryString)["catch"](d)})}}function d(){b.open({templateUrl:"templates/unexpected-error-modal.html",controller:"UnexpectedErrorModalController",size:"lg",resolve:{errorMessage:function(){return"Het opslaan van de zoekopdracht is mislukt. Controleer de verbinding en probeer opnieuw."}}})}var e={link:c,templateUrl:"templates/save-search.directive.html",restrict:"AE",scope:{queryString:"=udbQueryString"}};return e}angular.module("udb.saved-searches").directive("udbSaveSearch",a),a.$inject=["savedSearchesService","$uibModal"]}(),function(){"use strict";function a(a,b,c,d,e,f,g){function h(){e.$emit("savedSearchesChanged",i)}var i=[],j=this;j.createSavedSearch=function(b,c){return f.createSavedSearch(b,c).then(function(){return i.push({name:b,query:c}),h(),a.resolve()})},j.getSavedSearches=function(){return f.getSavedSearches().then(function(b){var c=b.map(function(a){var b="search.savedSearches.items."+a.name.toString(),c=g.instant(b);return c!==b&&(a.name=c),a});return i=c,a.resolve(c)})},j.deleteSavedSearch=function(b){return f.deleteSavedSearch(b).then(function(){return _.remove(i,{id:b}),h(),a.resolve()})}}angular.module("udb.saved-searches").service("savedSearchesService",a),a.$inject=["$q","$http","$cookies","appConfig","$rootScope","udbApi","$translate"]}(),function(){"use strict";function a(a,b,c,d){a.savedSearches=[],a.editorOptions={mode:"solr",lineWrapping:!0,readOnly:!0},a.codemirrorLoaded=function(a){a.on("focus",function(){a.execCommand("selectAll")}),a.on("blur",function(){a.setCursor(0,0,!0)})};var e=b.getSavedSearches();e.then(function(b){a.savedSearches=b}),d.$on("savedSearchesChanged",function(b,c){a.savedSearches=c}),this.encodeURI=function(a){return encodeURIComponent(a)},a.encodeURI=this.encodeURI,this.deleteSavedSearch=function(a){var d=c.open({templateUrl:"templates/delete-search-modal.html",controller:"DeleteSearchModalController"});d.result.then(function(){var d=b.deleteSavedSearch(a);d["catch"](function(){c.open({templateUrl:"templates/unexpected-error-modal.html",controller:"UnexpectedErrorModalController",size:"lg",resolve:{errorMessage:function(){return"Het verwijderen van de zoekopdracht is mislukt. Controleer de verbinding en probeer opnieuw."}}})})})},a.deleteSavedSearch=this.deleteSavedSearch}angular.module("udb.saved-searches").controller("SavedSearchesListController",a),a.$inject=["$scope","savedSearchesService","$uibModal","$rootScope"]}(),function(){"use strict";function a(){var a={restrict:"AE",controller:"OfferController",controllerAs:"eventCtrl",templateUrl:"templates/event-link.directive.html"};return a}angular.module("udb.event-form").directive("udbEventLink",a)}(),function(){"use strict";function a(a,b){function c(a){m.labels=f(_.get(a,"labels.currentValue",m.labels))}function d(a){m.currentLabel="",m.labelAdded({label:a}),m.labels.push(a)}function e(a){m.currentLabel="",m.labelRemoved({label:a}),m.labels=_.without(m.labels,a)}function f(a){return _.map(m.labels,function(a){return _.isString(a)?{name:a}:a})}function g(a){return a>=m.minimumInputLength&&a<=m.maxInputLength}function h(a){return m.regex.test(a)}function i(a){if(h(a)){var b=_.find(m.labels,function(b){return b.name.toUpperCase()===a.toUpperCase()});if(!b&&m.areLengthCriteriaMet(a.length)&&m.areContentCriteriaMet(a))return{name:a}}}function j(b){return a.getSuggestions(b,6).then(function(a){return a.push({name:b}),l(a)})}function k(a){return h(a)?(l([]),j(a)):void l([])}function l(a){return m.availableLabels=_.chain(a).filter(function(a){return h(a.name)}).reject(function(a){return _.find(m.labels,{name:a.name})}).uniq(function(a){return a.name.toUpperCase()}).value(),m.availableLabels}var m=this;m.availableLabels=[],m.suggestLabels=k,m.createLabel=i,m.areLengthCriteriaMet=g,m.areContentCriteriaMet=h,m.labels=f(m.labels),m.hiddenLabels=["new-entry-form","ook voor jongeren","ook voor kinderen"],m.minimumInputLength=2,m.maxInputLength=50,m.currentLabel="",m.onSelect=d,m.onRemove=e,m.$onChanges=c,m.regex=/^([a-zA-Z0-9ŠŽšœžŸÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖØÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõöøùúûüýþÿ]{1}[a-zA-Z0-9ŠŽšœžŸÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖØÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõöøùúûüýþÿ_-\s]+)$/}angular.module("udb.search").component("udbLabelSelect",{templateUrl:"templates/label-select.html",controller:a,controllerAs:"select",bindings:{labels:"<",labelAdded:"&",labelRemoved:"&"}}),a.$inject=["offerLabeller","$q"]}(),function(){"use strict";function a(a,b){var c=this;c.changeFacilities=function(){b.open({templateUrl:"templates/search-facilities-modal.html",controller:"SearchFacilitiesModalController",resolve:{offer:function(){return c.offer},facilities:function(){return"place"===c.offerType?_.pick(a,"place"):_.omit(a,"place")}}})}}angular.module("udb.search").component("udbOfferAccessibilityInfo",{templateUrl:"templates/offer-accessibility-info.component.html",controller:a,bindings:{offerType:"<",offer:"="}}),a.$inject=["facilities","$uibModal"]}(),function(){"use strict";function a(a,b){return{templateUrl:"templates/query-editor-daterangepicker.directive.html",restrict:"E",link:function(c,d,e){var f={startOpened:!1,endOpened:!1,dateFormat:"dd/MM/yyyy"};a(["datepicker.CURRENT","datepicker.CLEAR","datepicker.CLOSE"]).then(function(a){b.currentText=a["datepicker.CURRENT"],b.clearText=a["datepicker.CLEAR"],b.closeText=a["datepicker.CLOSE"]}),f.openStart=function(a){a.preventDefault(),a.stopPropagation(),f.startOpened=!0,f.endOpened=!1},f.openEnd=function(a){a.preventDefault(),a.stopPropagation(),f.startOpened=!1,f.endOpened=!0},c.drp=f}}}function b(){return{restrict:"EAC",require:"ngModel",link:function(a,b,c,d){d.$formatters.shift()}}}angular.module("udb.search").directive("udbQueryEditorDaterangepicker",a),a.$inject=["$translate","uibDatepickerPopupConfig"],angular.module("udb.search").directive("datepickerPopup",b)}(),function(){"use strict";function a(a){function b(){var b;return b=d()?a.$parent.field:a.rootGroup}function c(){var b;return b=d()&&0===a.$index?"AND":a.$index?"OR":"FIRST"}function d(){var b=a.$parent;return"group"===b.field.type}function e(){var b=a.rootGroup;return b.nodes.length>1}a.addField=function(c){a.qe.addField(b(),c)},a.removeField=function(c){a.qe.removeField(b(),c,a.rootGroup)},a.addSubGroup=function(c){var e=a.rootGroup,f=_.uniqueId(),g=b();g.treeGroupId=f,d()&&(c=_.findIndex(e.nodes,function(a){return a.treeGroupId===f})),a.qe.addSubGroup(e,c)},a.isSubGroup=d,a.getOperatorClass=c,a.canRemoveField=e}angular.module("udb.search").controller("QueryEditorFieldController",a),a.$inject=["$scope"]}(),function(){"use strict";function a(){return{templateUrl:"templates/query-editor-field.directive.html",restrict:"E",controller:"QueryEditorFieldController"}}angular.module("udb.search").directive("udbQueryEditorField",a)}(),function(){"use strict";function a(a,b,c,d,e,f,g,h,i,j){var k=this;k.fieldOptions=_.filter(a,"editable");var l=_.chain(k.fieldOptions).map(function(a){return a.group}).uniq().value();_.forEach(k.fieldOptions,function(a){var b="queryFieldLabel."+a.name,c="queryFieldGroup."+a.group;g([b,c]).then(function(d){a.label=d[b],a.groupIndex=_.indexOf(l,a.group),a.groupLabel=d[c]})}),k.getDefaultQueryTree=function(){return{type:"root",nodes:[{type:"group",operator:"OR",nodes:[{name:"title",field:"name.\\*",term:"",fieldType:"tokenized-string",transformer:"+"}]}]}},k.groupedQueryTree=f.getQueryTree()||k.getDefaultQueryTree(),k.transformers={},k.termOptions=_.groupBy(c,function(a){return"category_"+a.domain+"_name"}),k.termOptions.locationtype=j,k.termOptions.nisRegions=d,k.termOptions.category_eventtype_name=i,_.forEach(a,function(a){"choice"===a.type&&(k.termOptions[a.name]=a.options),k.transformers[a.name]=e[a.type]}),k.updateQueryString=function(){f.setQueryTree(k.groupedQueryTree),h.$emit("searchSubmitted"),k.stopEditing()},k.stopEditing=function(){h.$emit("stopEditingQuery")},k.addField=function(a,b){var c=b+1,d={field:"name.\\*",name:"title",term:"",fieldType:"tokenized-string",transformer:"+"};a.nodes.splice(c,0,d),a.nodes.length&&(a.type="group")},k.removeField=function(a,b,c){c.nodes.length>1&&a.nodes.splice(b,1),k.cleanUpGroups()},k.cleanUpGroups=function(){k.removeEmptyGroups(),k.unwrapSubGroups()},k.unwrapSubGroups=function(){var a=k.groupedQueryTree;_.forEach(a.nodes,function(a){var b=a.nodes[0];if(b.nodes){var c=b.nodes;a.nodes.splice(0,1),_.forEach(c,function(b,c){a.nodes.splice(c,0,b)})}})},k.removeEmptyGroups=function(){var a=k.groupedQueryTree;_.forEach(a.nodes,function(a){_.remove(a.nodes,function(a){return a.nodes&&0===a.nodes.length})})},k.toggleExcludeGroup=function(a){a.excluded=!a.excluded},k.canRemoveGroup=function(){return!k.hasSingleGroup()},k.removeGroup=function(a){
-if(k.canRemoveGroup()){var b=k.groupedQueryTree,c=b.nodes[a];k.canRemoveGroup()&&c&&b.nodes.splice(a,1)}},k.resetGroups=function(){k.groupedQueryTree=k.getDefaultQueryTree()},k.addGroup=function(){var a=k.groupedQueryTree,b={type:"group",operator:"OR",nodes:[{field:"name.\\*",name:"title",term:"",fieldType:"tokenized-string",transformer:"+"}]};a.nodes.push(b)},k.addSubGroup=function(a,b){var c={type:"group",operator:"AND",nodes:[{field:"name.\\*",name:"title",term:"",fieldType:"tokenized-string",transformer:"+"}]};a.nodes.splice(b+1,0,c)},k.fieldTypeSelected=function(b){var c=b.name,d=_.find(a,function(a){return a.name===c});d&&(b.field=d.field),b.fieldType!==d.type&&("date-range"===d.type?(b.lowerBound=moment().startOf("day").toDate(),b.upperBound=moment().endOf("day").toDate(),b.inclusive=!0):(b.term="",b.lowerBound=void 0,b.upperBound=void 0,b.inclusive=void 0),"check"===d.type&&(b.term=d.name),"number"===d.type&&(b.inclusive=!0),b.transformer&&_.contains(e[d.type],b.transformer)||(b.transformer=_.first(e[d.type])),b.fieldType=d.type)},k.hasSingleGroup=function(){return 1===k.groupedQueryTree.nodes.length}}angular.module("udb.search").controller("QueryEditorController",a),a.$inject=["queryFields","LuceneQueryBuilder","taxonomyTerms","sapi3CitiesBE","fieldTypeTransformers","searchHelper","$translate","$rootScope","eventTypes","placeTypes"]}(),function(){"use strict";function a(){return{templateUrl:"templates/query-editor.directive.html",restrict:"EA",controllerAs:"qe",controller:"QueryEditorController"}}angular.module("udb.search").directive("udbQueryEditor",a)}(),function(){"use strict";function a(a,b,c,d,e){return{templateUrl:"templates/search-bar.directive.html",restrict:"E",link:function(f,g,h){function i(a){return a.map(function(a){if(0===a.indexOf("Expected "))return d.instant("search.advancedQueryBuilder.syntaxError");var b=" is not a valid search field";if(-1!==a.indexOf(b)){var c=a.split(b)[0];return d.instant("search.advancedQueryBuilder.invalidField",{field:c})}return a})}function j(a){l.savedSearches=_.take(a,5)}var k,l={queryString:"",hasErrors:!1,errors:[],isEditing:!1,savedSearches:[]};l.editQuery=function(){b.$emit("startEditingQuery"),l.isEditing=!0,k=c.open({templateUrl:"templates/query-editor-modal.html",controller:"QueryEditorController",controllerAs:"qe",size:"lg"})},l.find=function(c){var d="undefined"!=typeof c?c:l.queryString;l.queryString=d,a.setQueryString(d),b.$emit("searchSubmitted")},l.queryChanged=function(){a.clearQueryTree()},f.sb=l,l.updateQuery=function(a,b){l.queryString=b.queryString,b.errors&&b.errors.length?(f.sb.hasErrors=!0,f.sb.errors=i(b.errors)):(f.sb.hasErrors=!1,f.sb.errors=[])},e.getSavedSearches().then(j);var m=b.$on("savedSearchesChanged",function(a,b){j(b)}),n=b.$on("stopEditingQuery",function(){f.sb.isEditing=!1,k&&k.dismiss()}),o=b.$on("searchQueryChanged",l.updateQuery);f.$on("$destroy",m),f.$on("$destroy",n),f.$on("$destroy",o)}}}angular.module("udb.search").directive("udbSearchBar",a),a.$inject=["searchHelper","$rootScope","$uibModal","$translate","savedSearchesService"]}(),function(){"use strict";angular.module("udb.search").value("eventTypes",[{label:"Begeleide uitstap of rondleiding",id:"0.7.0.0.0"},{label:"Beurs",id:"0.6.0.0.0"},{label:"Concert",id:"0.50.4.0.0"},{label:"Lessenreeks",id:"0.3.1.0.0"},{label:"Cursus met open sessies",id:"0.3.1.0.1"},{label:"Dansvoorstelling",id:"0.54.0.0.0"},{label:"Eet- of drankfestijn",id:"1.50.0.0.0"},{label:"Festival",id:"0.5.0.0.0"},{label:"Film",id:"0.50.6.0.0"},{label:"Kamp of vakantie",id:"0.57.0.0.0"},{label:"Festiviteit",id:"0.28.0.0.0"},{label:"Lezing of congres",id:"0.3.2.0.0"},{label:"Markt, braderie of kermis",id:"0.37.0.0.0"},{label:"Opendeurdag",id:"0.12.0.0.0"},{label:"Party of fuif",id:"0.49.0.0.0"},{label:"Route",id:"0.17.0.0.0"},{label:"Spel of quiz",id:"0.50.21.0.0"},{label:"Sport en beweging",id:"0.59.0.0.0"},{label:"Sportwedstrijd bekijken",id:"0.19.0.0.0"},{label:"Tentoonstelling",id:"0.0.0.0.0"},{label:"Theatervoorstelling",id:"0.55.0.0.0"}])}(),function(){"use strict";function a(){return function(a,b){var c={EUR:{symbol:"",thousand:".",decimal:",",format:"%s%v",precision:2}},d=c[b];return d||(d=c.EUR),accounting.formatMoney(a,d)}}angular.module("udb.search").filter("currency",a)}(),function(){"use strict";function a(){return function(a,b){var c=_.filter(a,function(a){return"undefined"!=typeof a?"schema:ImageObject"===a["@type"]&&(a.inLanguage===b||angular.isUndefined(a.inLanguage)):void 0});return c}}angular.module("udb.search").filter("imagesByLanguage",a)}(),function(){"use strict";function a(){return function(a,b,d){var e=_.cloneDeep(a);return e=c(e,b,d)}}function b(a){return 2===a.length}function c(a,d,e){return a=_.each(a,function(f,g){if(_.isObject(f)){var h=Object.keys(f);if(h.length>0&&h.every(b)){if(f[d])a[g]=f[d];else if(e){var i=h[0],j=f[i];a[g]=j}}else f=c(f,d,e)}})}angular.module("udb.search").filter("jsonLDLang",a)}(),function(){"use strict";angular.module("udb.search").value("placeTypes",[{label:"Archeologische site",id:"3CuHvenJ+EGkcvhXLg9Ykg"},{label:"Bibliotheek of documentatiecentrum",id:"kI7uAyn2uUu9VV6Z3uWZTA"},{label:"Bioscoop",id:"BtVNd33sR0WntjALVbyp3w"},{label:"Cultuur- of ontmoetingscentrum",id:"Yf4aZBfsUEu2NsQqsprngw"},{label:"Discotheek",id:"YVBc8KVdrU6XfTNvhMYUpg"},{label:"Horeca",id:"ekdc4ATGoUitCa0e6me6xA"},{label:"Jeugdhuis of jeugdcentrum",id:"JCjA0i5COUmdjMwcyjNAFA"},{label:"Monument",id:"0.14.0.0.0"},{label:"Museum of galerij",id:"GnPFp9uvOUyqhOckIFMKmg"},{label:"Natuur, park of tuin",id:"0.15.0.0.0"},{label:"Openbare ruimte",id:"0.8.0.0.0"},{label:"Recreatiedomein of centrum",id:"0.53.0.0.0"},{label:"School of onderwijscentrum",id:"rJRFUqmd6EiqTD4c7HS90w"},{label:"Sportcentrum",id:"eBwaUAAhw0ur0Z02i5ttnw"},{label:"Thema of pretpark",id:"0.41.0.0.0"},{label:"Winkel",id:"VRC6HX0Wa063sq98G5ciqw"},{label:"Speeltuin",id:"wwjRVmExI0w6xfQwT1KWpx"},{label:"Zaal of expohal",id:"OyaPaf64AEmEAYXHeLMAtA"}])}(),function(){"use strict";angular.module("udb.search").value("fieldTypeTransformers",{string:["=","!"],"tokenized-string":["+","-"],choice:["=","!"],term:["=","!"],termNis:["=","!"],number:["=","><","<",">"],check:["="],"date-range":["=","><","<",">"]})}(),function(){"use strict";function a(a,b,c,d,e){function f(a){"date-range"===a.fieldType&&g(a);var b=h(a);return b.field+k(b)}function g(a){"="===a.transformer&&moment(a.lowerBound).isValid()&&(a.lowerBound=moment(a.lowerBound).startOf("day").toDate(),a.upperBound=moment(a.lowerBound).endOf("day").toDate()),"><"===a.transformer&&(moment(a.lowerBound).isValid()?a.lowerBound=moment(a.lowerBound).startOf("day").toDate():a.lowerBound="*",moment(a.upperBound).isValid()?a.upperBound=moment(a.upperBound).endOf("day").toDate():a.upperBound="*"),"<"===a.transformer&&(moment(a.upperBound).isValid()?a.upperBound=moment(a.upperBound).endOf("day").toDate():a.upperBound=moment().endOf("day").toDate()),">"===a.transformer&&(moment(a.lowerBound).isValid()?a.lowerBound=moment(a.lowerBound).startOf("day").toDate():a.lowerBound=moment().startOf("day").toDate())}function h(a){var b=_.clone(a),c=b.field===j,d="";switch(b.transformer){case"!":d="!";break;case"-":d="-";break;case"<":b.lowerBound="*";break;case">":b.upperBound="*";break;case"=":"date-range"!==b.fieldType&&(b.upperBound=void 0,b.lowerBound=void 0)}return b.field=d+(c?"":b.field+":"),b}function i(a,b){var c=_.find(d,function(b){return b.name===a.field}),e={field:b||a.field,fieldType:c||"string",transformer:a.transformer||"="};return a.lowerBound||a.upperBound?(e.lowerBound=a.lowerBound||void 0,e.upperBound=a.upperBound||void 0,e.inclusive=a.inclusive||!0):e.term=a.term||void 0,e}var j="";this.translate=function(a){c.translateQueryTree(a.queryTree)},this.validate=function(a){b.validate(a.queryTree,a.errors)},this.isValid=function(a){return this.translate(a),this.validate(a),0===a.errors.length},this.parseQueryString=function(b){try{b.queryTree=a.parse(b.queryString)}catch(c){b.errors.push(c.message)}return b.queryTree},this.createQuery=function(a){var b={originalQueryString:a,queryString:a,queryTree:{},errors:[]};return this.parseQueryString(b),b};var k=function(a){var b=a.term,c=a.lowerBound||a.upperBound;if(c){var d=a.lowerBound||"*",e=a.upperBound||"*",f=a.inclusive;d instanceof Date&&(d=moment(d).format()),e instanceof Date&&(e=moment(e).format()),b=d+" TO "+e,b=f?"["+b+"]":"{"+b+"}"}else(a.quoted||-1!==b.indexOf(" "))&&(b='"'+b+'"'),a.similarity&&(b+="~"+a.similarity),a.proximity&&(b+="~"+a.proximity),a.prefix&&(b=a.prefix+b),a.boost&&(b+="^"+a.boost);return b},l=function(a,b,c){if(a.left){var d,e=a.operator===j?" ":" "+a.operator+" ";if(a.right)d=l(a.left,b+1,c),d+=e,d+=l(a.right,b+1,c),b>0&&(d="("+d+")"),a.field&&a.field!==j&&(d=a.field+":"+d);else{var f=a.field&&a.left.field===j&&a.left.prefix;d=f?a.field+":("+k(a.left)+")":l(a.left,b+1,c)}return d}var g="",h=k(a);if(a.field!==j&&null!==a.field){var i="";_.contains(["!","+","-"],a.transformer)&&(i=a.transformer),g+=i+a.field+":"}return g+=h,c+=g};this.unparse=function(a){return a.queryString=this.unparseQueryTree(a.queryTree),a.queryString},this.unparseQueryTree=function(a){var b="";return a.left&&(b=l(a,0,"")),b},this.unparseGroupedTree=function(a){var b=a,c="";return _.forEach(b.nodes,function(a,d){var e="";if("group"===a.type){var g=a;_.forEach(g.nodes,function(b,c){if("group"===b.type){var d=b,h=" ";if(1===d.nodes.length){var i=d.nodes[0];h+=d.operator+" "+f(i)}else h+=d.operator+" (",_.forEach(d.nodes,function(a,b){b&&(h+=" OR "),h+=f(a)}),h+=")";e+=h}else{c&&(e+=" "+a.operator+" "),e+=f(b);var j=c+1;c&&j1&&g.nodes.length>1&&(e="("+e+")")}else console.log("Expecting a group but found: "+a.type);if(d||a.excluded){var h=a.excluded?"NOT":"OR";c+=" "+h+" "}c+=e}),c},this.groupQueryTree=function(a){var b={type:"root",nodes:[],operator:a.operator||"OR"};if(a.left)this.groupNode(a,b),this.cleanUpGroupedFieldTree(b);else{var c={type:"field",operator:"OR",nodes:[{field:"name.\\*",name:"title",term:"",fieldType:"tokenized-string",transformer:"+"}]};b.nodes.push(c)}return b},this.cleanUpGroupedFieldTree=function(a){_.forEach(a.nodes,function(a){delete a.implicitField,a.nodes&&1===a.nodes.length&&(a.type="field"),a.operator===j&&(a.operator="OR"),_.forEach(a.nodes,function(a){var b=_.find(d,function(b){return b.name===a.field});if(b){if(a.fieldType=b.type,"term"===b.type){var c=_.find(e,function(b){return b.label.toUpperCase()===a.term.toUpperCase()});if(c){var f="category_"+c.domain+"_name";a.field=f,a.term=c.label}else a.invalid=!0}if("choice"===b.type){var g=_.find(b.options,function(b){return b===a.term.toUpperCase()});g?a.term=g:a.invalid=!0}if("check"===b.type){var h=b.name,i="(!"+b.name+")";a.term!==h&&a.term!==i&&(a.invalid=!0)}if("tokenized-string"===b.type&&(a.transformer&&"="!==a.transformer||(a.transformer="+"),"!"===a.transformer&&(a.transformer="-")),"string"===b.type&&(a.transformer&&"+"!==a.transformer||(a.transformer="="),"-"===a.transformer&&(a.transformer="!")),"number"===b.type&&(a.term?a.transformer="=":a.upperBound&&"*"===a.lowerBound?a.transformer="<":a.lowerBound&&"*"===a.upperBound?a.transformer=">":(a.transformer="=",a.term=a.lowerBound||a.upperBound,a.lowerBound=void 0,a.upperBound=void 0)),"date-range"===b.type){var j=moment(a.lowerBound),k=moment(a.upperBound);j.isValid()&&k.isValid()?j.isSame(k,"day")?a.transformer="=":a.transformer="><":(!j.isValid()&&k.isValid()&&(a.transformer="<"),!k.isValid()&&j.isValid()&&(a.transformer=">"))}}})})},this.groupNode=function(a,b,c){if(a.operator===j&&(a.operator="OR"),!c||a.operator&&a.operator!==c.operator){var d={type:"group",operator:a.operator||"OR",nodes:[]};b.nodes.push(d),c=d}if(a.field&&a.field!==j&&(c.implicitField=a.field),a.term||a.lowerBound&&a.upperBound){var e=a.field;if(e===j){if(!c.implicitField)throw"Field name is implicit and not defined elsewhere.";e=c.implicitField}c.nodes.push(i(a,e))}a.left&&(this.groupNode(a.left,b,c),a.right&&this.groupNode(a.right,b,c))}}angular.module("udb.search").service("LuceneQueryBuilder",a),a.$inject=["LuceneQueryParser","QueryTreeValidator","QueryTreeTranslator","queryFields","taxonomyTerms"]}(),function(){"use strict";angular.module("udb.search").constant("queryFieldTranslations",{sapi2:{TYPE:"type",CDBID:"cdbid",LOCATION_ID:"location_id",ORGANISER_ID:"organiser_id",TITLE:"title",KEYWORDS:"keywords",CITY:"city",ORGANISER_KEYWORDS:"organiser_keywords",ZIPCODE:"zipcode",COUNTRY:"country",CATEGORY_NAME:"category_name",AGEFROM:"agefrom",DETAIL_LANG:"detail_lang",PRICE:"price",STARTDATE:"startdate",ENDDATE:"enddate",ORGANISER_LABEL:"organiser_label",LOCATION_NAME:"location_name",LOCATION_LABELS:"location_labels",EXTERNALID:"externalid",LASTUPDATED:"lastupdated",CREATIONDATE:"creationdate",CREATEDBY:"createdby",PERMANENT:"permanent",CATEGORY_EVENTTYPE_NAME:"category_eventtype_name",LOCATIONTYPE:"locationtype",OFFERTYPE:"offertype",CATEGORY_THEME_NAME:"category_theme_name",CATEGORY_FACILITY_NAME:"category_facility_name",CATEGORY_TARGETAUDIENCE_NAME:"category_targetaudience_name",CATEGORY_FLANDERSREGION_NAME:"category_flandersregion_name",AVAILABLEFROM:"availablefrom"},en:{TEXT:"text",KEYWORDS:"label",PHYSICAL_GIS:"geo",CATEGORY_NAME:"category",DETAIL_LANG:"translation",ORGANISER_LABEL:"organiser",LOCATION_LABEL:"location",CREATIONDATE:"created",CATEGORY_EVENTTYPE_NAME:"eventtype",LOCATIONTYPE:"locationtype",OFFERTYPE:"offertype",CATEGORY_THEME_NAME:"theme",CATEGORY_FACILITY_NAME:"facility",CATEGORY_TARGETAUDIENCE_NAME:"targetaudience",CATEGORY_FLANDERSREGION_NAME:"region",AVAILABLEFROM:"available",LOCATION_ID:"locationid",ORGANISER_ID:"organizationid",DATE:"date"},fr:{LOCATION_LABEL:"location",TITLE:"titre"},nl:{TYPE:"type",TEXT:"tekst",LOCATION_ID:"locatieid",ORGANISER_ID:"organisatieid",TITLE:"titel",KEYWORDS:"label",CITY:"stad",ORGANISER_KEYWORDS:"organisatielabel",ZIPCODE:"postcode",COUNTRY:"land",CATEGORY_NAME:"categorie",AGEFROM:"leeftijd",DETAIL_LANG:"vertaling",PRICE:"prijs",DATE:"datum",STARTDATE:"startdatum",ENDDATE:"einddatum",ORGANISER_LABEL:"organisatienaam",LOCATION_LABEL:"locatienaam",EXTERNALID:"externalid",LASTUPDATED:"laatst_aangepast",CREATIONDATE:"gecreëerd",CREATEDBY:"gecreëerd_door",PERMANENT:"permanent",CATEGORY_EVENTTYPE_NAME:"type",LOCATIONTYPE:"locatietype",OFFERTYPE:"aanbodtype",CATEGORY_THEME_NAME:"thema",CATEGORY_FACILITY_NAME:"voorzieningen",CATEGORY_TARGETAUDIENCE_NAME:"doelgroep",CATEGORY_FLANDERSREGION_NAME:"gemeente",AVAILABLEFROM:"datum_beschikbaar"}})}(),function(){"use strict";angular.module("udb.search").value("queryFields",[{name:"cdbid",field:"id",type:"string",group:"what",editable:!0},{name:"offertype",field:"_type",type:"choice",group:"what",editable:!0,options:["event","place"]},{name:"keywords",field:"labels",type:"string",group:"what",editable:!0},{name:"title",field:"name.\\*",type:"tokenized-string",group:"what",editable:!0},{name:"category_eventtype_name",field:"terms.id",type:"term",group:"what",editable:!0},{name:"locationtype",field:"terms.id",type:"term",group:"what",editable:!0},{name:"category_theme_name",field:"terms.id",type:"term",group:"what",editable:!0},{name:"text",field:"",type:"tokenized-string",group:"what",editable:!0},{name:"city",field:"address.\\*.addressLocality",type:"string",group:"where",editable:!0},{name:"zipcode",field:"address.\\*.postalCode",type:"string",group:"where",editable:!0},{name:"location_id",field:"location.id",type:"string",group:"where",editable:!0},{name:"country",field:"address.\\*.addressCountry",type:"choice",group:"where",editable:!1,options:["AD","AE","AF","AG","AI","AL","AM","AO","AQ","AR","AS","AT","AU","AW","AX","AZ","BA","BB","BD","BE","BF","BG","BH","BI","BJ","BL","BM","BN","BO","BQ","BR","BS","BT","BV","BW","BY","BZ","CA","CC","CD","CF","CG","CH","CI","CK","CL","CM","CN","CO","CR","CU","CV","CW","CX","CY","CZ","DE","DJ","DK","DM","DO","DZ","EC","EE","EG","EH","ER","ES","ET","FI","FJ","FK","FM","FO","FR","GA","GB","GD","GE","GF","GG","GH","GI","GL","GM","GN","GP","GQ","GR","GS","GT","GU","GW","GY","HK","HM","HN","HR","HT","HU","ID","IE","IL","IM","IN","IO","IQ","IR","IS","IT","JE","JM","JO","JP","KE","KG","KH","KI","KM","KN","KP","KR","KW","KY","KZ","LA","LB","LC","LI","LK","LR","LS","LT","LU","LV","LY","MA","MC","MD","ME","MF","MG","MH","MK","ML","MM","MN","MO","MP","MQ","MR","MS","MT","MU","MV","MW","MX","MY","MZ","NA","NC","NE","NF","NG","NI","NL","NO","NP","NR","NU","NZ","OM","PA","PE","PF","PG","PH","PK","PL","PM","PN","PR","PS","PT","PW","PY","QA","RE","RO","RS","RU","RW","SA","SB","SC","SD","SE","SG","SH","SI","SJ","SK","SL","SM","SN","SO","SR","SS","ST","SV","SX","SY","SZ","TC","TD","TF","TG","TH","TJ","TK","TL","TM","TN","TO","TR","TT","TV","TW","TZ","UA","UG","UM","US","UY","UZ","VA","VC","VE","VG","VI","VN","VU","WF","WS","YE","YT","ZA","ZM"]},{name:"location_name",field:"location.name.\\*",type:"tokenized-string",group:"where",editable:!0},{name:"location_labels",field:"location.labels",type:"string",group:"where",editable:!0},{name:"nisRegions",field:"regions",type:"termNis",group:"where",editable:!0},{name:"date",field:"dateRange",type:"date-range",group:"when",editable:!0},{name:"permanent",field:"calendarType",type:"check",group:"when",editable:!0},{name:"lastupdated",field:"modified",type:"date-range",group:"input-information",editable:!0},{name:"creationdate",field:"created",type:"date-range",group:"input-information",editable:!0},{name:"createdby",field:"creator",type:"string",group:"input-information",editable:!0},{name:"availablefrom",field:"availableRange",type:"date-range",group:"input-information",editable:!0},{name:"detail_lang",field:"languages",type:"choice",group:"translations",editable:!0,options:["nl","fr","en","de"]},{name:"organiser_keywords",field:"organizer.labels",type:"string",group:"other",editable:!0},{name:"organiser_id",field:"organizer.id",type:"string",group:"other",editable:!0},{name:"agefrom",field:"typicalAgeRange",type:"number",group:"other",editable:!0},{name:"attendance_mode",field:"attendanceMode",type:"choice",group:"other",editable:!0,options:["online","offline","mixed"]},{name:"price",field:"price",type:"number",group:"other",editable:!0},{name:"status",field:"status",type:"choice",group:"other",editable:!0,options:["Available","Unavailable","TemporarilyUnavailable"]},{name:"booking_availability",field:"bookingAvailability",type:"choice",group:"other",editable:!0,options:["available","unavailable"]},{name:"organiser_label",field:"organizer.name.\\*",type:"tokenized-string",group:"other",editable:!0},{name:"category_facility_name",field:"terms.id",type:"term",group:"other",editable:!0},{name:"category_targetaudience_name",field:"audienceType",type:"choice",group:"other",editable:!0,options:["everyone","members","education"]},{field:"calendarType",type:"string"},{field:"workflowStatus",type:"choice",options:["DRAFT","READY_FOR_VALIDATION","APPROVED","REJECTED","DELETED"]},{field:"name.nl",type:"tokenized-string"},{field:"name.fr",type:"tokenized-string"},{field:"name.de",type:"tokenized-string"},{field:"name.en",type:"tokenized-string"},{field:"description.nl",type:"tokenized-string"},{field:"description.fr",type:"tokenized-string"},{field:"description.de",type:"tokenized-string"},{field:"description.en",type:"tokenized-string"},{field:"terms.label",type:"string"},{field:"mediaObjectsCount",type:"number"},{field:"videosCount",type:"number"},{field:"address.\\*.streetAddress",type:"string"},{field:"location.id",type:"string"},{field:"location.name.nl",type:"tokenized-string"},{field:"location.name.fr",type:"tokenized-string"},{field:"location.name.de",type:"tokenized-string"},{field:"location.name.en",type:"tokenized-string"},{field:"location.terms.id",type:"string"},{field:"organizer.id",type:"string"},{field:"organizer.name.nl",type:"tokenized-string"},{field:"organizer.name.fr",type:"tokenized-string"},{field:"organizer.name.de",type:"tokenized-string"},{field:"organizer.name.en",type:"tokenized-string"},{field:"allAges",type:"string"},{field:"contributors",type:"string"},{name:"startdate",field:"dateRange",type:"date-range"},{name:"enddate",field:"dateRange",type:"date-range"}])}(),function(){"use strict";function a(a,b){var c=function(c,d){var e=_.findKey(a[d],function(a){return a===c}),f=void 0===e?void 0:_.find(b,{name:e.toLowerCase()});return void 0===f?c:f.field},d=function(a,b){var e=a.left||!1,f=a.right||!1,g=[];e&&g.push(e),f&&g.push(f);for(var h=0,i=g.length;i>h;h++){var j=g[h];"object"==typeof j&&d(j,b+1)}a.field&&(a.field=c(a.field,"sapi2"),a.field=c(a.field,"en"),a.field=c(a.field,"nl"))};this.translateQueryTree=function(a){return d(a,0)}}angular.module("udb.search").service("QueryTreeTranslator",a),a.$inject=["queryFieldTranslations","queryFields"]}(),function(){"use strict";function a(a){var b=_.union(_.map(a,"field"),["_exists_"]),c="",d=_(b).filter(function(a){return a.indexOf(".")>0}).map(function(a){var b=a.split(".");return b.pop(),b.join(".")}).value(),e=function(a,f,g){var h=a.left||!1,i=a.right||!1,j=[];h&&j.push(h),i&&j.push(i);for(var k=0,l=j.length;l>k;k++){var m=j[k];"object"==typeof m&&e(m,f+1,g)}var n=a.field;if("undefined"!=typeof n){var o=_.trim(n,".\\*"),p=n!==o;if(null!==o&&o!==c){var q=p?d:b;_.contains(q,o)||g.push(n+" is not a valid search field")}}};this.validate=function(a,b){e(a,0,b)}}angular.module("udb.search").service("QueryTreeValidator",a),a.$inject=["queryFields"]}(),function(){"use strict";angular.module("udb.search").value("sapi2FieldTypeTransformers",{string:["=","!"],"tokenized-string":["+","-"],choice:["=","!"],term:["=","!"],number:["=","<",">"],check:["="],"date-range":["=","><","<",">"]})}(),function(){"use strict";function a(a,b,c,d,e){function f(a){"date-range"===a.fieldType&&g(a);var b=h(a);return b.field+":"+k(b)}function g(a){"="===a.transformer&&moment(a.lowerBound).isValid()&&(a.lowerBound=moment(a.lowerBound).startOf("day").toDate(),a.upperBound=moment(a.lowerBound).endOf("day").toDate()),"><"===a.transformer&&(moment(a.lowerBound).isValid()?a.lowerBound=moment(a.lowerBound).startOf("day").toDate():a.lowerBound="*",moment(a.upperBound).isValid()?a.upperBound=moment(a.upperBound).endOf("day").toDate():a.upperBound="*"),"<"===a.transformer&&(moment(a.upperBound).isValid()?a.upperBound=moment(a.upperBound).endOf("day").toDate():a.upperBound=moment().endOf("day").toDate()),">"===a.transformer&&(moment(a.lowerBound).isValid()?a.lowerBound=moment(a.lowerBound).startOf("day").toDate():a.lowerBound=moment().startOf("day").toDate())}function h(a){var b=_.clone(a);switch(b.transformer){case"!":b.field="!"+b.field;break;case"-":b.field="-"+b.field;break;case"<":b.lowerBound="*";break;case">":b.upperBound="*";break;case"=":"date-range"!==b.fieldType&&(b.upperBound=void 0,b.lowerBound=void 0)}return b}function i(a,b){var c=_.find(d,function(b){return b.name===a.field}),e={field:b||a.field,fieldType:c||"string",transformer:a.transformer||"="};return a.lowerBound||a.upperBound?(e.lowerBound=a.lowerBound||void 0,e.upperBound=a.upperBound||void 0,e.inclusive=a.inclusive||!0):e.term=a.term||void 0,e}var j="";this.translate=function(a){c.translateQueryTree(a.queryTree)},this.validate=function(a){b.validate(a.queryTree,a.errors)},this.isValid=function(a){return this.translate(a),this.validate(a),0===a.errors.length},this.parseQueryString=function(b){try{b.queryTree=a.parse(b.queryString)}catch(c){b.errors.push(c.message)}return b.queryTree},this.createQuery=function(a){var b={originalQueryString:a,queryString:a,queryTree:{},errors:[]};return this.parseQueryString(b),b};var k=function(a){var b=a.term,c=a.lowerBound||a.upperBound;if(c){var d=a.lowerBound||"*",e=a.upperBound||"*",f=a.inclusive;d instanceof Date&&(d=d.toISOString()),e instanceof Date&&(e=e.toISOString()),b=d+" TO "+e,b=f?"["+b+"]":"{"+b+"}"}else(a.quoted||-1!==b.indexOf(" "))&&(b='"'+b+'"'),a.similarity&&(b+="~"+a.similarity),a.proximity&&(b+="~"+a.proximity),a.prefix&&(b=a.prefix+b),a.boost&&(b+="^"+a.boost);return b},l=function(a,b,c){if(a.left){var d,e=a.operator===j?" ":" "+a.operator+" ";return a.right?(d=l(a.left,b+1,c),d+=e,d+=l(a.right,b+1,c),b>0&&(d="("+d+")"),a.field&&a.field!==j&&(d=a.field+":"+d)):d=l(a.left,b+1,c),d}var f="",g=k(a);if(a.field!==j&&null!==a.field){var h="";_.contains(["!","+","-"],a.transformer)&&(h=a.transformer),f+=h+a.field+":"}return f+=g,c+=f};this.unparse=function(a){return a.queryString=this.unparseQueryTree(a.queryTree),a.queryString},this.unparseQueryTree=function(a){var b="";return a.left&&(b=l(a,0,"")),b},this.unparseGroupedTree=function(a){var b=a,c="";return _.forEach(b.nodes,function(a,d){var e="";if("group"===a.type){var g=a;_.forEach(g.nodes,function(b,c){if("group"===b.type){var d=b,h=" ";if(1===d.nodes.length){var i=d.nodes[0];h+=d.operator+" "+f(i)}else h+=d.operator+" (",_.forEach(d.nodes,function(a,b){b&&(h+=" OR "),h+=f(a)}),h+=")";e+=h}else{c&&(e+=" "+a.operator+" "),e+=f(b);var j=c+1;c&&j1&&g.nodes.length>1&&(e="("+e+")")}else console.log("Expecting a group but found: "+a.type);if(d||a.excluded){var h=a.excluded?"NOT":"OR";c+=" "+h+" "}c+=e}),c},this.groupQueryTree=function(a){var b={type:"root",nodes:[],operator:a.operator||"OR"};if(a.left)this.groupNode(a,b),this.cleanUpGroupedFieldTree(b);else{var c={type:"field",operator:"OR",nodes:[{field:"title",term:"",fieldType:"tokenized-string",transformer:"+"}]};b.nodes.push(c)}return b},this.cleanUpGroupedFieldTree=function(a){_.forEach(a.nodes,function(a){delete a.implicitField,a.nodes&&1===a.nodes.length&&(a.type="field"),a.operator===j&&(a.operator="OR"),_.forEach(a.nodes,function(a){var b=_.find(d,function(b){return b.name===a.field});if(b){if(a.fieldType=b.type,"term"===b.type){var c=_.find(e,function(b){return b.label.toUpperCase()===a.term.toUpperCase()});if(c){var f="category_"+c.domain+"_name";a.field=f,a.term=c.label}else a.invalid=!0}if("choice"===b.type){var g=_.find(b.options,function(b){return b===a.term.toUpperCase()});g?a.term=g:a.invalid=!0}if("check"===b.type&&(_.contains(["TRUE","FALSE"],a.term.toUpperCase())?a.term=a.term.toUpperCase():a.invalid=!0),"tokenized-string"===b.type&&(a.transformer&&"="!==a.transformer||(a.transformer="+"),"!"===a.transformer&&(a.transformer="-")),"string"===b.type&&(a.transformer&&"+"!==a.transformer||(a.transformer="="),"-"===a.transformer&&(a.transformer="!")),"number"===b.type&&(a.term?a.transformer="=":a.upperBound&&"*"===a.lowerBound?a.transformer="<":a.lowerBound&&"*"===a.upperBound?a.transformer=">":(a.transformer="=",a.term=a.lowerBound||a.upperBound,a.lowerBound=void 0,a.upperBound=void 0)),"date-range"===b.type){var h=moment(a.lowerBound),i=moment(a.upperBound);h.isValid()&&i.isValid()?h.isSame(i,"day")?a.transformer="=":a.transformer="><":(!h.isValid()&&i.isValid()&&(a.transformer="<"),!i.isValid()&&h.isValid()&&(a.transformer=">"))}}})})},this.groupNode=function(a,b,c){if(a.operator===j&&(a.operator="OR"),!c||a.operator&&a.operator!==c.operator){var d={type:"group",operator:a.operator||"OR",nodes:[]};b.nodes.push(d),c=d}if(a.field&&a.field!==j&&(c.implicitField=a.field),a.term||a.lowerBound&&a.upperBound){var e=a.field;if(e===j){if(!c.implicitField)throw"Field name is implicit and not defined elsewhere.";e=c.implicitField}c.nodes.push(i(a,e))}a.left&&(this.groupNode(a.left,b,c),a.right&&this.groupNode(a.right,b,c))}}angular.module("udb.search").service("sapi2QueryBuilder",a),a.$inject=["LuceneQueryParser","sapi2QueryTreeValidator","sapi2QueryTreeTranslator","sapi2QueryFields","taxonomyTerms"]}(),function(){"use strict";angular.module("udb.search").value("sapi2QueryFields",[{name:"cdbid",type:"string",group:"what",editable:!0},{name:"keywords",type:"string",group:"what",editable:!0},{name:"title",type:"tokenized-string",group:"what",editable:!0},{name:"category_eventtype_name",type:"term",group:"what",editable:!0},{name:"category_theme_name",type:"term",group:"what",editable:!0},{name:"city",type:"string",group:"where",editable:!0},{name:"zipcode",type:"string",group:"where",editable:!0},{name:"country",type:"choice",group:"where",editable:!1,options:["AD","AE","AF","AG","AI","AL","AM","AO","AQ","AR","AS","AT","AU","AW","AX","AZ","BA","BB","BD","BE","BF","BG","BH","BI","BJ","BL","BM","BN","BO","BQ","BR","BS","BT","BV","BW","BY","BZ","CA","CC","CD","CF","CG","CH","CI","CK","CL","CM","CN","CO","CR","CU","CV","CW","CX","CY","CZ","DE","DJ","DK","DM","DO","DZ","EC","EE","EG","EH","ER","ES","ET","FI","FJ","FK","FM","FO","FR","GA","GB","GD","GE","GF","GG","GH","GI","GL","GM","GN","GP","GQ","GR","GS","GT","GU","GW","GY","HK","HM","HN","HR","HT","HU","ID","IE","IL","IM","IN","IO","IQ","IR","IS","IT","JE","JM","JO","JP","KE","KG","KH","KI","KM","KN","KP","KR","KW","KY","KZ","LA","LB","LC","LI","LK","LR","LS","LT","LU","LV","LY","MA","MC","MD","ME","MF","MG","MH","MK","ML","MM","MN","MO","MP","MQ","MR","MS","MT","MU","MV","MW","MX","MY","MZ","NA","NC","NE","NF","NG","NI","NL","NO","NP","NR","NU","NZ","OM","PA","PE","PF","PG","PH","PK","PL","PM","PN","PR","PS","PT","PW","PY","QA","RE","RO","RS","RU","RW","SA","SB","SC","SD","SE","SG","SH","SI","SJ","SK","SL","SM","SN","SO","SR","SS","ST","SV","SX","SY","SZ","TC","TD","TF","TG","TH","TJ","TK","TL","TM","TN","TO","TR","TT","TV","TW","TZ","UA","UG","UM","US","UY","UZ","VA","VC","VE","VG","VI","VN","VU","WF","WS","YE","YT","ZA","ZM"]},{name:"location_name",type:"tokenized-string",group:"where",editable:!0},{name:"location_labels",type:"string",group:"where",editable:!0},{name:"category_flandersregion_name",type:"term",group:"where",editable:!0},{name:"startdate",type:"date-range",group:"when",editable:!0},{name:"enddate",type:"date-range",group:"when",editable:!0},{name:"permanent",type:"check",group:"when",editable:!0},{name:"lastupdated",type:"date-range",group:"input-information",editable:!0},{name:"lastupdatedby",type:"string",group:"input-information",editable:!0},{name:"creationdate",type:"date-range",group:"input-information",editable:!0},{name:"createdby",type:"string",group:"input-information",editable:!0},{name:"availablefrom",type:"date-range",group:"input-information",editable:!0},{name:"detail_lang",type:"choice",group:"translations",editable:!0,options:["nl","fr","en","de"]},{name:"organiser_keywords",type:"string",group:"other",editable:!0},{name:"agefrom",type:"number",group:"other",editable:!0},{name:"price",type:"number",group:"other",editable:!0},{name:"organiser_label",type:"tokenized-string",group:"other",editable:!0},{name:"category_facility_name",type:"term",group:"other",editable:!0},{name:"category_targetaudience_name",type:"term",group:"other",editable:!0},{name:"category_publicscope_name",type:"term",group:"other",editable:!0},{name:"like_count",type:"number"},{name:"recommend_count",type:"number"},{name:"attend_count",type:"number"},{name:"comment_count",type:"number"},{name:"category_name",type:"term"},{name:"externalid",type:"string"},{name:"private",type:"check"},{name:"physical_gis",type:"string"}])}(),function(){"use strict";function a(a){var b=a,c=function(a,c){var d=a,e=_.findKey(b[c],function(b){return b===a});return e&&(d=e.toLowerCase()),d},d=function(a,b){var e=a.left||!1,f=a.right||!1,g=[];e&&g.push(e),f&&g.push(f);for(var h=0,i=g.length;i>h;h++){var j=g[h];"object"==typeof j&&d(j,b+1)}a.field&&(a.field=c(a.field,"en"),a.field=c(a.field,"nl"))};this.translateQueryTree=function(a){return d(a,0)}}angular.module("udb.search").service("sapi2QueryTreeTranslator",a),a.$inject=["queryFieldTranslations"]}(),function(){"use strict";function a(a){var b=_.union(_.map(a,"name"),["_exists_"]),c="",d=_(b).filter(function(a){return a.indexOf(".")>0}).map(function(a){return a.split(".")[0]}).value(),e=function(a,f,g){var h=a.left||!1,i=a.right||!1,j=[];h&&j.push(h),i&&j.push(i);for(var k=0,l=j.length;l>k;k++){var m=j[k];"object"==typeof m&&e(m,f+1,g)}var n=a.field;if("undefined"!=typeof n){var o=_.trim(n,".\\*"),p=n!==o;if(null!==n&&n!==c){
-var q=p?d:b;_.contains(q,o)||g.push(n+" is not a valid search field")}}};this.validate=function(a,b){e(a,0,b)}}angular.module("udb.search").service("sapi2QueryTreeValidator",a),a.$inject=["sapi2QueryFields"]}(),function(){"use strict";function a(a,b){var c=null,d=null;this.clearQueryTree=function(){d=null},this.setQueryString=function(b,e){var f=!1;c&&c.queryString===b||(f=a.createQuery(b),a.isValid(f),this.setQuery(f),d=null),c&&!f&&e&&this.setQuery(c)},this.setQueryTree=function(b){var c=a.unparseGroupedTree(b),e=a.createQuery(c);a.isValid(e),this.setQuery(e),d=b},this.setQuery=function(a){c=a,b.$emit("searchQueryChanged",a)},this.getQuery=function(){return c},this.getQueryTree=function(){return angular.copy(d)}}angular.module("udb.search").service("searchHelper",a),a.$inject=["LuceneQueryBuilder","$rootScope"]}(),function(){"use strict";function a(a){var b={ALL:{name:"all",icon:"fas fa-check-square"},NONE:{name:"none",icon:"far fa-square"},SOME:{name:"some",icon:"fas fa-minus-square"}},c=function(c,d){this.pageSize=c||30,this.events=[],this.totalItems=0,this.currentPage=d||1,this.loading=!0,this.lastQuery=null,this.eventProperties={description:{name:a.instant("search.description"),visible:!1},labels:{name:a.instant("search.labels"),visible:!1},image:{name:a.instant("search.picture"),visible:!1}},this.eventSpecifics=[{id:"input",name:a.instant("search.inputInformation")}],this.activeSpecific=this.eventSpecifics[0],this.selectedOffers=[],this.selectionState=b.NONE,this.querySelected=!1};return c.prototype={enableSpecifics:function(a){this.eventSpecifics=_.uniq(_.union(this.eventSpecifics,a),"id")},toggleSelection:function(){var a=this.selectionState;a===b.SOME||a===b.ALL?(this.deselectPageItems(),this.querySelected&&(this.deselectAll(),this.querySelected=!1)):this.selectPageItems()},selectQuery:function(){this.querySelected=!0,this.selectPageItems()},updateSelectionState:function(){var a=this.selectedOffers,c=_.filter(this.events,function(b){return _.contains(a,b)});c.length===this.pageSize?this.selectionState=b.ALL:c.length>0?this.selectionState=b.SOME:this.selectionState=b.NONE},toggleSelect:function(a){if(!this.querySelected){var b=_.find(this.selectedOffers,function(b){return b["@id"]===a["@id"]});if(b)this.selectedOffers=_.filter(this.selectedOffers,function(b){return b["@id"]!==a["@id"]});else{var c=_.find(this.events,function(b){return b["@id"]===a["@id"]});this.selectedOffers.push(c)}this.updateSelectionState()}},deselectAll:function(){this.selectedOffers=[],this.selectionState=b.NONE},deselectPageItems:function(){var a=this.selectedOffers;_.forEach(this.events,function(b){_.remove(a,function(a){return a["@id"]===b["@id"]})}),this.selectionState=b.NONE},selectPageItems:function(){var a=this.events,c=this.selectedOffers;_.each(a,function(a){c.push(a)}),this.selectedOffers=_.uniq(c),this.selectionState=b.ALL},isOfferSelected:function(a){return!!_.find(this.selectedOffers,function(b){return b["@id"]===a["@id"]})},setResults:function(a){var b=this;b.pageSize=a.itemsPerPage||30,b.events=a.member||[],b.totalItems=a.totalItems||0,b.loading=!1,this.querySelected&&this.selectPageItems(),this.updateSelectionState()},queryChanged:function(a){this.loading=!0,this.selectedOffers=[],this.querySelected=!1,this.lastQuery&&this.lastQuery!==a&&(this.currentPage=1),this.lastQuery=a},activateSpecific:function(a){this.activeSpecific=a},isShowingProperties:function(){var a=_.find(this.eventProperties,function(a){return a.visible});return!!a}},c}angular.module("udb.search").factory("SearchResultViewer",a),a.$inject=["$translate"]}(),function(){"use strict";angular.module("udb.search").constant("EventTranslationState",{ALL:{name:"all",icon:"fa-circle"},NONE:{name:"none",icon:"fa-circle-o"},SOME:{name:"some",icon:"fa-dot-circle-o"}})}(),function(){"use strict";function a(){var a={restrict:"AE",controller:"OfferController",controllerAs:"eventCtrl",templateUrl:"templates/event.directive.html"};return a}angular.module("udb.search").directive("udbEvent",a)}(),function(){"use strict";function a(a,b,c,d,e,f,g,h,i,j,k,l){function m(a){var b=k.instant("offerTypes."+a);return _.includes(b,"offerTypes.")?a:b}function n(a){var d=a.facilities.sort(function(a,b){return a.label.localeCompare(b.label)});return a.facilities=d,v=a,v.updateTranslationState(),b.event=c(v,x,!0),b.offerType=b.event.url.split("/").shift(),b.translatedOfferType=m(b.event.type.label),w.offerExpired="event"===b.offerType?a.isExpired():!1,w.hasFutureAvailableFrom=a.hasFutureAvailableFrom(),w.fetching=!1,p(),v}function o(a){return a&&"event"===b.event.url.split("/").shift()?h.resolve(a):h.reject()}function p(){b.$watch(function(){return v.labels},function(a){b.event.labels=angular.copy(a)})}function q(a,b,c){var d=w.activeLanguage,f=c||a;b&&b!==v[a][d]&&e.translateProperty(v,f,d,b).then(v.updateTranslationState(v))}function r(){w.labelResponse="",w.labelsError=""}function s(a){b.event.labels=angular.copy(v.labels),w.labelResponse="unlabelError",w.labelsError=a.title}function t(a){r(),f.unlabel(v,a.name)["catch"](s)}function u(a){return b.event.location&&(b.event.location=c(b.event.location,x)),h.resolve(a)}var v,w=this,x=k.use()||"nl";w.translation=!1,w.activeLanguage=x,w.languageSelector=[{lang:"fr"},{lang:"en"},{lang:"de"}],w.uitId=_.get(i,"uitidUrl"),w.labelRemoved=t,l.isGodUser().then(function(a){w.isGodUser=a}),w.init=function(){if(!b.event.title){if(w.fetching=!0,b.event.name){var c=a.formatJsonLDEntity(b.event);return void n(c)}return a.getOffer(b.event["@id"]).then(function(a){n(a)})}w.fetching=!1},h.when(w.init()).then(u).then(o)["finally"](function(){w.editable=!0}),w.hasActiveTranslation=function(){var a=v;return a&&a.translationState[w.activeLanguage]!==d.NONE},w.getLanguageTranslationIcon=function(a){var b=d.NONE.icon;return v&&a&&(b=v.translationState[a].icon),b},w.translate=function(){w.applyPropertyChanges("name"),w.applyPropertyChanges("description")},w.toggleLanguage=function(a){a===w.activeLanguage?w.stopTranslating():(w.activeLanguage=a,w.translation=c(v,w.activeLanguage))},w.hasPropertyChanged=function(a){var b=w.activeLanguage,c=w.translation;return w.translation&&v[a][b]!==c[a]},w.undoPropertyChanges=function(a){var b=w.activeLanguage,c=w.translation;c&&(c[a]=v[a][b])},w.applyPropertyChanges=function(a){var b=w.translation[a];q(a,b,a)},w.stopTranslating=function(){w.translation=void 0,w.activeLanguage=x},w.labelAdded=function(a){var c=_.find(v.labels,function(b){return a.name.toUpperCase()===b.toUpperCase()});c?(b.$apply(function(){b.event.labels=angular.copy(v.labels)}),g.alert('Het label "'+a.name+'" is reeds toegevoegd als "'+c+'".')):(w.addedLabel=a.name,f.label(v,a.name).then(function(){w.labelResponse="success",b.event.labels=angular.copy(v.labels)})["catch"](function(){w.labelResponse="error"}))},w.showConcludedButton=function(){var a=_.get(i,"concludedButton.toggle",!1);if(!a)return!1;var c=_.get(i,"calendarHighlight.date"),d=moment(c).endOf("day");return"event"===b.offerType&&d=h;if(i)l("EVENT-EXPORT.TOO-MANY-ITEMS",{limit:h}).then(function(a){c.alert(a)});else if(f&&f.queryString.length&&m.isValid(f)){e.open({templateUrl:"templates/event-export-modal.html",controller:"EventExportController",controllerAs:"exporter",size:"lg"})}else l("EVENT-EXPORT.QUERY-IS-MISSING").then(function(a){c.alert(a)})}function t(a,b){w(b)}a.resultViewer=new f(30,q()),a.realQuery=!1,a.activeQuery=!1,a.queryEditorShown=!1,a.currentPage=q();var u=[{id:"accessibility",name:"Toegankelijkheidsinformatie",permission:n.editFacilities}];o.getPermissions().then(function(b){var c=_.filter(u,function(a){return!_.has(a,"permission")||_.contains(b,a.permission)});a.resultViewer.enableSpecifics(c)});var v=function(c){var e=(a.resultViewer.currentPage-1)*a.resultViewer.pageSize,f="string"==typeof c?c:c.queryString,g=a.resultViewer.currentPage>1?String(a.resultViewer.currentPage):null;d.search({query:p().queryString||null,page:g}),a.resultViewer.loading=!0,b.findOffers(f,e).then(function(c){c.member&&(c=b.reformatJsonLDData(c)),h.addPagedCollection(c),a.resultViewer.setResults(c)})},w=function(b){if(a.activeQuery=b,m.isValid(b)){var c=m.unparse(b);a.resultViewer.queryChanged(c),v(c),c!==b.originalQueryString?a.realQuery=c:a.realQuery=!1}},x=function(){var d=a.resultViewer.selectedOffers;if(!d.length)return void c.alert("First select the events you want to label.");var f=e.open({templateUrl:"templates/offer-label-modal.html",controller:"OfferLabelModalCtrl",controllerAs:"lmc"});f.result.then(function(a){_.each(d,function(c){var d;d=b.getOffer(new URL(c["@id"])),d.then(function(b){b.label(a)})}),_.each(a,function(a){g.labelOffersById(d,a)})})},y=function(){var b=a.resultViewer.querySelected;b?r():x()};a.exportEvents=s,a.label=y,a.startEditing=function(){a.queryEditorShown=!0},a.stopEditing=function(){a.queryEditorShown=!1};var z=1===a.currentPage;a.pageChanged=function(){var b=a.currentPage;z?(a.resultViewer.currentPage=b,v(a.activeQuery),c.scroll(0,0)):(a.currentPage=a.resultViewer.currentPage,z=!0)};var A=_.once(function(){var b=j.$on("searchQueryChanged",t),c=j.$on("startEditingQuery",a.startEditing),d=j.$on("stopEditingQuery",a.stopEditing);a.$on("$destroy",c),a.$on("$destroy",b),a.$on("$destroy",d)});A()}angular.module("udb.search").controller("SearchController",a),a.$inject=["$scope","udbApi","$window","$location","$uibModal","SearchResultViewer","offerLabeller","offerLocator","searchHelper","$rootScope","eventExporter","$translate","LuceneQueryBuilder","authorization","authorizationService"]}(),function(){"use strict";function a(){return{templateUrl:"templates/search.html",restrict:"EA",controller:"SearchController"}}angular.module("udb.search").directive("udbSearch",a)}(),function(){"use strict";function a(a,b,c){function d(){a.all([b.getEventCardSystems(n.id),b.findOrganisationsCardSystems(m.id)]).then(h,e)}function e(a){400===a.status&&(l.uitpasUnavailableType="already_has_ticketsales"),404===a.status&&(l.uitpasUnavailableType="not_found")}function f(){l.uitpasUnavailableType=void 0}function g(){l.availableCardSystems=void 0,f(),j(),d()}function h(a){var b=a[0],c=a[1];l.availableCardSystems=_.map(c,function(a){return _.assign(a,{assignedDistributionKey:i(b,a),active:!!_.find(b,{id:a.id})})})}function i(a,b){var c=_.find(a,{id:b.id});return _.first(!c||_.isEmpty(c.distributionKeys)?b.distributionKeys:c.distributionKeys)}function j(){l.persistingCardSystems=!1}function k(a){return a.assignedDistributionKey?l.distributionKeyAssigned(a):b.addEventCardSystem(n.id,a.id)}var l=this,m=l.organisation,n=l.offerData;l.$onInit=d,l.refresh=g,l.distributionKeyAssigned=function(d){if(!d.assignedDistributionKey)throw"card system distribution key is missing";return l.persistingCardSystems=!0,b.addEventCardSystemDistributionKey(n.id,d.id,d.assignedDistributionKey.id).then(function(){return c.$emit("uitpasDataSaved"),j(),a.resolve()})},l.activeCardSystemsChanged=function(a){function d(b){a.active=!a.active,e(b)}function f(){c.$emit("uitpasDataSaved")}l.persistingCardSystems=!0;var g=a.active?k(a):b.removeEventCardSystem(n.id,a.id);g.then(f,d)["finally"](j)}}angular.module("udb.uitpas").component("cardSystemSelector",{templateUrl:"templates/card-systems.html",controller:a,controllerAs:"cardSystemSelector",bindings:{organisation:"<",offerData:"<"}}),a.$inject=["$q","udbUitpasApi","$rootScope"]}(),function(){"use strict";function a(a,b,c){function d(b){b?(a.showUitpasInfo=_.get(g,"organizer.isUitpas",!1)&&c.isEvent,g.showCardSystems=g.price&&!!g.price.length):(g.showCardSystems=!1,a.showUitpasInfo=!1)}function e(){g.eventFormData=c,d(g.organizer),g.listeners=[b.$on("eventFormSaved",g.showCardSystemsIfPriceIsSelected),b.$on("eventOrganizerSelected",g.updateOrganizer),b.$on("eventOrganizerDeleted",g.updateOrganizer),b.$on("uitpasDataSaved",g.markUitpasDataAsCompleted)]}function f(){_.invoke(g.listeners,"call")}var g=this;a.showUitpasInfo=!1,a.uitpasCssClass="state-incomplete",g.listeners=[],g.showCardSystems=!1,g.$onInit=e,g.$onDestroy=f,g.showCardSystemsIfPriceIsSelected=function(a,b){g.showCardSystems=b.priceInfo&&!!b.priceInfo.length},g.markUitpasDataAsCompleted=function(){a.uitpasCssClass="state-complete"},g.updateOrganizer=function(a,b){g.organizer=b,d(b)}}angular.module("udb.uitpas").component("uitpasInfo",{templateUrl:"templates/uitpasInfo.html",controller:a,controllerAs:"upic",bindings:{organizer:"<",price:"<"}}),a.$inject=["$scope","$rootScope","EventFormData"]}(),function(){"use strict";angular.module("udb.uitpas").constant("DefaultUitpasLabels",{PASPARTOE:"Paspartoe",UITPAS:"UiTPAS",UITPAS_GENT:"UiTPAS Gent",UITPAS_OOSTENDE:"UiTPAS Oostende",UITPAS_REGIO_AALST:"UiTPAS Regio Aalst",UITPAS_DENDER:"UiTPAS Dender",UITPAS_ZUIDWEST:"UiTPAS Zuidwest",UITPAS_MECHELEN:"UiTPAS Mechelen",UITPAS_KEMPEN:"UiTPAS Kempen",UITPAS_MAASMECHELEN:"UiTPAS Maasmechelen",UITPAS_LEUVEN:"UiTPAS Leuven",UITPAS_LIER:"UiTPAS Lier","UITPAS_HEIST-OP-DEN-BERG":"UiTPAS Heist-op-den-Berg",UITPAS_MEETJESLAND:"UiTPAS Meetjesland",UITPAS_WESTHOEK:"UiTPAS Westhoek"})}(),function(){"use strict";function a(a){var b=this;b.organisation=a.organisation,b.query=a.query}angular.module("udb.uitpas").controller("OrganisationSuggestionController",a),a.$inject=["$scope"]}(),function(){"use strict";function a(){return{templateUrl:"templates/organisation-suggestion.directive.html",controller:"OrganisationSuggestionController",controllerAs:"os",scope:{organisation:"<",query:"<"},restrict:"A"}}angular.module("udb.uitpas").directive("uitpasOrganisationSuggestion",a)}(),function(){"use strict";function a(a,b,c,d,e,f){function g(a){return"object"==typeof a.distributionKeys&&(a.distributionKeys=_.values(a.distributionKeys)),a}function h(b){var c="object"==typeof b.data?_.values(b.data):b.data;return a.resolve(_.map(c,g))}function i(b){return a.resolve(b.data)}function j(b,c,d){function g(g){return f().add(c,"seconds").isAfter(d)?a.reject(g):e(function(){return j(b,c,d)},c)}return b()["catch"](g)}var k=_.get(c,"uitpasUrl"),l=_.get(c,"uitpasMaxDelay",8),m={headers:{"Content-Type":"application/json",Authorization:"Bearer "+d.getToken(),"X-Api-Key":_.get(c,"apiKey")},params:{}};this.getEventCardSystems=function(a){function c(){return b.get(k+"events/"+a+"/cardSystems/",m)}var d=f().add(l,"s");return j(c,2,d).then(h)},this.getTicketSales=function(c,d){function e(){return b.get(k+"events/"+c,m)}function g(a){return a.data.hasTicketSales}var h=a.defer(),i=f().add(l,"s");return d.isUitpas?h.resolve(j(e,2,i).then(g)):h.resolve(!1),h.promise},this.findOrganisationsCardSystems=function(a){return b.get(k+"organizers/"+a+"/cardSystems/",m).then(h)},this.addEventCardSystem=function(a,c){return b.put(k+"events/"+a+"/cardSystems/"+c,null,m).then(i)},this.removeEventCardSystem=function(a,c){return b["delete"](k+"events/"+a+"/cardSystems/"+c,m).then(i)},this.addEventCardSystemDistributionKey=function(a,c,d){return b.put(k+"events/"+a+"/cardSystems/"+c+"/distributionKey/"+d,null,m).then(i)}}angular.module("udb.uitpas").service("udbUitpasApi",a),a.$inject=["$q","$http","appConfig","uitidAuth","$timeout","moment"]}(),function(){"use strict";function a(){var a;this.useLabels=function(b){a=b},this.$get=["DefaultUitpasLabels",function(b){return a?a:b}]}angular.module("udb.uitpas").provider("UitpasLabels",a)}(),function(){angular.module("udb.core").run(["$templateCache",function(a){"use strict";a.put("templates/calendar-summary.directive.html",'\n\n \n \n\n \n \n \n \n \n \n \n \n\n \n \n \n \n\n \n \n \n \n\n \n\n'),a.put("templates/image-detail.directive.html",'