diff --git a/dist/udb3-angular.js b/dist/udb3-angular.js index 7d127167d..1583dfba9 100644 --- a/dist/udb3-angular.js +++ b/dist/udb3-angular.js @@ -2813,6 +2813,9 @@ angular.module('udb.core') 'everyone': 'iedereen', 'members': 'leden', 'education': 'onderwijs', + 'Available': 'Gaat door', + 'Unavailable': 'Geannuleerd', + 'TemporarilyUnavailable': 'Uitgesteld', 'asc': 'oplopend', 'desc': 'aflopend', 'today': 'vandaag', @@ -3528,6 +3531,7 @@ angular.module('udb.core') 'organiser_id': 'organisatie (id)', 'agefrom': 'leeftijd', 'price': 'prijs', + 'status': 'status', 'organiser_label': 'organisatie (naam)', 'category_facility_name': 'voorzieningen', 'category_targetaudience_name': 'doelgroep', @@ -3965,6 +3969,9 @@ angular.module('udb.core') 'everyone': 'tout le monde', 'members': 'membres', 'education': 'éducation', + 'Available': 'A lieu', + 'Unavailable': 'Annulé', + 'TemporarilyUnavailable': 'Reporté', 'asc': 'ascendant', 'desc': 'descendant', 'today': 'aujourd\'hui', @@ -4676,6 +4683,7 @@ angular.module('udb.core') 'organiser_id': 'organisation (id)', 'agefrom': 'âge', 'price': 'prix', + 'status': 'status', 'organiser_label': 'organisation (nom)', 'category_facility_name': 'dispositions', 'category_targetaudience_name': 'public cible', @@ -23649,6 +23657,7 @@ angular {name: 'organiser_id', field: 'organizer.id', type: 'string', group: 'other', editable: true}, {name: 'agefrom', field:'typicalAgeRange', type: 'number', group: 'other', editable: true}, {name: 'price', field: 'price', type: 'number' , group: 'other', editable: true}, + {name: 'status', field: 'status', type: 'choice', group: 'other', editable: true, options: ['Available', 'Unavailable', 'TemporarilyUnavailable']}, {name: 'organiser_label', field: 'organizer.name.\\*', type: 'tokenized-string', group: 'other', editable: true}, {name: 'category_facility_name', field:'terms.label', type: 'term', group: 'other', editable: true}, {name: 'category_targetaudience_name', field: 'audienceType', type: 'choice', group: 'other', editable: true, options: ['everyone', 'members', 'education']}, diff --git a/dist/udb3-angular.min.js b/dist/udb3-angular.min.js index 37a494b90..536dfb6c4 100644 --- a/dist/udb3-angular.min.js +++ b/dist/udb3-angular.min.js @@ -42,17 +42,17 @@ key:"nis-91013D"},{name:"Feschaux (Beauraing)",key:"nis-91013F"},{name:"Wiesme ( zip:""},{label:"Briltil",name:"Briltil",zip:""},{label:"Britsum",name:"Britsum",zip:""},{label:"Britswert",name:"Britswert",zip:""},{label:"Broek",name:"Broek",zip:""},{label:"Broek in Waterland",name:"Broek in Waterland",zip:""},{label:"Broek op Langedijk",name:"Broek op Langedijk",zip:""},{label:"Broekhuizen (Horst aan de Maas)",name:"Broekhuizen (Horst aan de Maas)",zip:""},{label:"Broekhuizen (Meppel)",name:"Broekhuizen (Meppel)",zip:""},{label:"Broekhuizenvorst",name:"Broekhuizenvorst",zip:""},{label:"Broekland",name:"Broekland",zip:""},{label:"Broeksterwâld",name:"Broeksterwâld",zip:""},{label:"Bronkhorst",name:"Bronkhorst",zip:""},{label:"Bronneger",name:"Bronneger",zip:""},{label:"Bronnegerveen",name:"Bronnegerveen",zip:""},{label:"Brouwershaven",name:"Brouwershaven",zip:""},{label:"Bruchem",name:"Bruchem",zip:""},{label:"Brucht",name:"Brucht",zip:""},{label:"Bruchterveld",name:"Bruchterveld",zip:""},{label:"Bruinehaar",name:"Bruinehaar",zip:""},{label:"Bruinisse",name:"Bruinisse",zip:""},{label:"Brummen",name:"Brummen",zip:""},{label:"Brunssum",name:"Brunssum",zip:""},{label:"Bruntinge",name:"Bruntinge",zip:""},{label:"Buchten",name:"Buchten",zip:""},{label:"Budel",name:"Budel",zip:""},{label:"Budel-Dorplein",name:"Budel-Dorplein",zip:""},{label:"Budel-Schoot",name:"Budel-Schoot",zip:""},{label:"Buggenum",name:"Buggenum",zip:""},{label:"Buinen",name:"Buinen",zip:""},{label:"Buinerveen",name:"Buinerveen",zip:""},{label:"Buitenkaag",name:"Buitenkaag",zip:""},{label:"Buitenpost",name:"Buitenpost",zip:""},{label:"De Bult",name:"De Bult",zip:""},{label:"Bunde",name:"Bunde",zip:""},{label:"Bunne",name:"Bunne",zip:""},{label:"Bunnik",name:"Bunnik",zip:""},{label:"Bunschoten-Spakenburg",name:"Bunschoten-Spakenburg",zip:""},{label:"Burdaard",name:"Burdaard",zip:""},{label:"Buren (Ameland)",name:"Buren (Ameland)",zip:""},{label:"Buren (Buren)",name:"Buren (Buren)",zip:""},{label:"Den Burg",name:"Den Burg",zip:""},{label:"Burgerbrug",name:"Burgerbrug",zip:""},{label:"Burgerveen",name:"Burgerveen",zip:""},{label:"Burgh-Haamstede",name:"Burgh-Haamstede",zip:""},{label:"Burgum",name:"Burgum",zip:""},{label:"Burgwerd",name:"Burgwerd",zip:""},{label:"Burum",name:"Burum",zip:""},{label:"Bussum",name:"Bussum",zip:""},{label:"Buurmalsen (Buren)",name:"Buurmalsen (Buren)",zip:""},{label:"Buurmalsen (Geldermalsen)",name:"Buurmalsen (Geldermalsen)",zip:""},{label:"Cadier en Keer",name:"Cadier en Keer",zip:""},{label:"Cadzand",name:"Cadzand",zip:""},{label:"Callantsoog",name:"Callantsoog",zip:""},{label:"Capelle aan den IJssel",name:"Capelle aan den IJssel",zip:""},{label:"Castelre",name:"Castelre",zip:""},{label:"Castenray",name:"Castenray",zip:""},{label:"Casteren",name:"Casteren",zip:""},{label:"Castricum",name:"Castricum",zip:""},{label:"Chaam",name:"Chaam",zip:""},{label:"Clinge",name:"Clinge",zip:""},{label:"De Cocksdorp",name:"De Cocksdorp",zip:""},{label:"Coevorden",name:"Coevorden",zip:""},{label:"Colijnsplaat",name:"Colijnsplaat",zip:""},{label:"Collendoorn",name:"Collendoorn",zip:""},{label:"Colmschate",name:"Colmschate",zip:""},{label:"Cornwerd",name:"Cornwerd",zip:""},{label:"Cothen",name:"Cothen",zip:""},{label:"Creil",name:"Creil",zip:""},{label:"Cromvoirt",name:"Cromvoirt",zip:""},{label:"Cruquius",name:"Cruquius",zip:""},{label:"Cuijk",name:"Cuijk",zip:""},{label:"Culemborg",name:"Culemborg",zip:""},{label:"Daarle",name:"Daarle",zip:""},{label:"Daarlerveen",name:"Daarlerveen",zip:""},{label:"Dalem",name:"Dalem",zip:""},{label:"Dalen",name:"Dalen",zip:""},{label:"Dalerpeel",name:"Dalerpeel",zip:""},{label:"Dalerveen",name:"Dalerveen",zip:""},{label:"Dalfsen",name:"Dalfsen",zip:""},{label:"Dalmsholte",name:"Dalmsholte",zip:""},{label:"Damwâld",name:"Damwâld",zip:""},{label:"Darp",name:"Darp",zip:""},{label:"Dearsum",name:"Dearsum",zip:""},{label:"Dedemsvaart",name:"Dedemsvaart",zip:""},{label:"Dedgum",name:"Dedgum",zip:""},{label:"Deelen",name:"Deelen",zip:""},{label:"Deest",name:"Deest",zip:""},{label:"Deil",name:"Deil",zip:""},{label:"Deinum",name:"Deinum",zip:""},{label:"Delden",name:"Delden",zip:""},{label:"Delfgauw",name:"Delfgauw",zip:""},{label:"Delfstrahuizen",name:"Delfstrahuizen",zip:""},{label:"Delft",name:"Delft",zip:""},{label:"Delfzijl",name:"Delfzijl",zip:""},{label:"Delwijnen",name:"Delwijnen",zip:""},{label:"Demen",name:"Demen",zip:""},{label:"Denekamp",name:"Denekamp",zip:""},{label:"Deurne",name:"Deurne",zip:""},{label:"Deurningen (Oldenzaal)",name:"Deurningen (Oldenzaal)",zip:""},{label:"Deurningen (Dinkelland)",name:"Deurningen (Dinkelland)",zip:""},{label:"Deursen-Dennenburg",name:"Deursen-Dennenburg",zip:""},{label:"Deurze",name:"Deurze",zip:""},{label:"Deventer",name:"Deventer",zip:""},{label:"Didam",name:"Didam",zip:""},{label:"Dieden",name:"Dieden",zip:""},{label:"Diemen",name:"Diemen",zip:""},{label:"Diepenheim",name:"Diepenheim",zip:""},{label:"Diepenveen",name:"Diepenveen",zip:""},{label:"Dieren",name:"Dieren",zip:""},{label:"Diessen",name:"Diessen",zip:""},{label:"Diever",name:"Diever",zip:""},{label:"Dieverbrug",name:"Dieverbrug",zip:""},{label:"Diffelen",name:"Diffelen",zip:""},{label:"Dijken",name:"Dijken",zip:""},{label:"Dinteloord",name:"Dinteloord",zip:""},{label:"Dinxperlo",name:"Dinxperlo",zip:""},{label:"Diphoorn",name:"Diphoorn",zip:""},{label:"Dirkshorn",name:"Dirkshorn",zip:""},{label:"Dirksland",name:"Dirksland",zip:""},{label:"Dodewaard",name:"Dodewaard",zip:""},{label:"Doenrade",name:"Doenrade",zip:""},{label:"Doesburg",name:"Doesburg",zip:""},{label:"Doetinchem",name:"Doetinchem",zip:""},{label:"Doeveren",name:"Doeveren",zip:""},{label:"Doezum",name:"Doezum",zip:""},{label:"Dokkum",name:"Dokkum",zip:""},{label:"Den Dolder",name:"Den Dolder",zip:""},{label:"Doldersum",name:"Doldersum",zip:""},{label:"Domburg",name:"Domburg",zip:""},{label:"Donderen",name:"Donderen",zip:""},{label:"Dongen",name:"Dongen",zip:""},{label:"Dongjum",name:"Dongjum",zip:""},{label:"Doniaga",name:"Doniaga",zip:""},{label:"Donkerbroek",name:"Donkerbroek",zip:""},{label:"Doorn",name:"Doorn",zip:""},{label:"Doornenburg",name:"Doornenburg",zip:""},{label:"Doornspijk",name:"Doornspijk",zip:""},{label:"Doorwerth",name:"Doorwerth",zip:""},{label:"Dordrecht",name:"Dordrecht",zip:""},{label:"Dorst",name:"Dorst",zip:""},{label:"Drachten",name:"Drachten",zip:""},{label:"Drachten-Azeven",name:"Drachten-Azeven",zip:""},{label:"Drachtstercompagnie",name:"Drachtstercompagnie",zip:""},{label:"Dreischor",name:"Dreischor",zip:""},{label:"Drempt",name:"Drempt",zip:""},{label:"Dreumel",name:"Dreumel",zip:""},{label:"Driebergen-Rijsenburg",name:"Driebergen-Rijsenburg",zip:""},{label:"Drieborg",name:"Drieborg",zip:""},{label:"Driebruggen",name:"Driebruggen",zip:""},{label:"Driehuis",name:"Driehuis",zip:""},{label:"Driehuizen",name:"Driehuizen",zip:""},{label:"Driel",name:"Driel",zip:""},{label:"Driewegen",name:"Driewegen",zip:""},{label:"Driezum",name:"Driezum",zip:""},{label:"Drijber",name:"Drijber",zip:""},{label:"Drimmelen",name:"Drimmelen",zip:""},{label:"Drogeham",name:"Drogeham",zip:""},{label:"Drogteropslagen",name:"Drogteropslagen",zip:""},{label:"Drongelen",name:"Drongelen",zip:""},{label:"Dronryp",name:"Dronryp",zip:""},{label:"Dronten",name:"Dronten",zip:""},{label:"Drouwen",name:"Drouwen",zip:""},{label:"Drouwenermond",name:"Drouwenermond",zip:""},{label:"Drouwenerveen",name:"Drouwenerveen",zip:""},{label:"Drunen",name:"Drunen",zip:""},{label:"Druten",name:"Druten",zip:""},{label:"Duiven",name:"Duiven",zip:""},{label:"Duivendrecht",name:"Duivendrecht",zip:""},{label:"Duizel",name:"Duizel",zip:""},{label:"Den Dungen",name:"Den Dungen",zip:""},{label:"Dussen",name:"Dussen",zip:""},{label:"Dwingeloo",name:"Dwingeloo",zip:""},{label:"Eagum",name:"Eagum",zip:""},{label:"Earnewâld",name:"Earnewâld",zip:""},{label:"Easterein",name:"Easterein",zip:""},{label:"Easterlittens",name:"Easterlittens",zip:""},{label:"Eastermar",name:"Eastermar",zip:""},{label:"Easterwierrum",name:"Easterwierrum",zip:""},{label:"Echt",name:"Echt",zip:""},{label:"Echteld",name:"Echteld",zip:""},{label:"Echten (De Wolden)",name:"Echten (De Wolden)",zip:""},{label:"Echten (De Fryske Marren)",name:"Echten (De Fryske Marren)",zip:""},{label:"Echtenerbrug",name:"Echtenerbrug",zip:""},{label:"Eck en Wiel",name:"Eck en Wiel",zip:""},{label:"Eckelrade",name:"Eckelrade",zip:""},{label:"Edam",name:"Edam",zip:""},{label:"Ede",name:"Ede",zip:""},{label:"Ederveen",name:"Ederveen",zip:""},{label:"Ee",name:"Ee",zip:""},{label:"Eede",name:"Eede",zip:""},{label:"Eefde",name:"Eefde",zip:""},{label:"Eelde",name:"Eelde",zip:""},{label:"Eelderwolde",name:"Eelderwolde",zip:""},{label:"Eemdijk",name:"Eemdijk",zip:""},{label:"Eemnes",name:"Eemnes",zip:""},{label:"Eemshaven",name:"Eemshaven",zip:""},{label:"Een",name:"Een",zip:""},{label:"Eenrum",name:"Eenrum",zip:""},{label:"Eenum",name:"Eenum",zip:""},{label:"Een-West",name:"Een-West",zip:""},{label:"Eerbeek",name:"Eerbeek",zip:""},{label:"Eersel",name:"Eersel",zip:""},{label:"Ees",name:"Ees",zip:""},{label:"Eesergroen",name:"Eesergroen",zip:""},{label:"Eeserveen",name:"Eeserveen",zip:""},{label:"Eesterga",name:"Eesterga",zip:""},{label:"Eesveen",name:"Eesveen",zip:""},{label:"Eethen",name:"Eethen",zip:""},{label:"Eext",name:"Eext",zip:""},{label:"Eexterveen",name:"Eexterveen",zip:""},{label:"Eexterveenschekanaal",name:"Eexterveenschekanaal",zip:""},{label:"Eexterzandvoort",name:"Eexterzandvoort",zip:""},{label:"Egchel",name:"Egchel",zip:""},{label:"Egmond aan den Hoef",name:"Egmond aan den Hoef",zip:""},{label:"Egmond aan Zee",name:"Egmond aan Zee",zip:""},{label:"Egmond-Binnen",name:"Egmond-Binnen",zip:""},{label:"Eibergen",name:"Eibergen",zip:""},{label:"Eijsden",name:"Eijsden",zip:""},{label:"Eindhoven",name:"Eindhoven",zip:""},{label:"Einighausen",name:"Einighausen",zip:""},{label:"Ekehaar",name:"Ekehaar",zip:""},{label:"Elahuizen",name:"Elahuizen",zip:""},{label:"Elburg",name:"Elburg",zip:""},{label:"Eldersloo",name:"Eldersloo",zip:""},{label:"Eleveld",name:"Eleveld",zip:""},{label:"Elim",name:"Elim",zip:""},{label:"Elkenrade",name:"Elkenrade",zip:""},{label:"Ell",name:"Ell",zip:""},{label:"Ellecom",name:"Ellecom",zip:""},{label:"Ellemeet",name:"Ellemeet",zip:""},{label:"Ellertshaar",name:"Ellertshaar",zip:""},{label:"Ellewoutsdijk",name:"Ellewoutsdijk",zip:""},{label:"Elp",name:"Elp",zip:""},{label:"Elsendorp",name:"Elsendorp",zip:""},{label:"Elshout",name:"Elshout",zip:""},{label:"Elsloo (Stein)",name:"Elsloo (Stein)",zip:""},{label:"Elsloo (Ooststellingwerf)",name:"Elsloo (Ooststellingwerf)",zip:""},{label:"Elspeet",name:"Elspeet",zip:""},{label:"Elst",name:"Elst",zip:""},{label:"Elst Ut",name:"Elst Ut",zip:""},{label:"Emmeloord",name:"Emmeloord",zip:""},{label:"Emmen",name:"Emmen",zip:""},{label:"Emmer-Compascuum",name:"Emmer-Compascuum",zip:""},{label:"Empe",name:"Empe",zip:""},{label:"Emst",name:"Emst",zip:""},{label:"Engwierum",name:"Engwierum",zip:""},{label:"Enkhuizen",name:"Enkhuizen",zip:""},{label:"Ens",name:"Ens",zip:""},{label:"Enschede",name:"Enschede",zip:""},{label:"Enspijk",name:"Enspijk",zip:""},{label:"Enter",name:"Enter",zip:""},{label:"Enumatil",name:"Enumatil",zip:""},{label:"Epe",name:"Epe",zip:""},{label:"Epen",name:"Epen",zip:""},{label:"Eppenhuizen",name:"Eppenhuizen",zip:""},{label:"Epse",name:"Epse",zip:""},{label:"Erica",name:"Erica",zip:""},{label:"Erichem",name:"Erichem",zip:""},{label:"Erlecom",name:"Erlecom",zip:""},{label:"Erm",name:"Erm",zip:""},{label:"Ermelo",name:"Ermelo",zip:""},{label:"Erp",name:"Erp",zip:""},{label:"Esbeek",name:"Esbeek",zip:""},{label:"Esch",name:"Esch",zip:""},{label:"Escharen",name:"Escharen",zip:""},{label:"Espel",name:"Espel",zip:""},{label:"Est",name:"Est",zip:""},{label:"Etten",name:"Etten",zip:""},{label:"Etten-Leur",name:"Etten-Leur",zip:""},{label:"Europoort Rotterdam",name:"Europoort Rotterdam",zip:""},{label:"Eursinge (Midden-Drenthe)",name:"Eursinge (Midden-Drenthe)",zip:""},{label:"Eursinge (De Wolden)",name:"Eursinge (De Wolden)",zip:""},{label:"Everdingen",name:"Everdingen",zip:""},{label:"Evertsoord",name:"Evertsoord",zip:""},{label:"Ewijk",name:"Ewijk",zip:""},{label:"1e Exloërmond",name:"1e Exloërmond",zip:""},{label:"2e Exloërmond",name:"2e Exloërmond",zip:""},{label:"Exloërveen",name:"Exloërveen",zip:""},{label:"Exloo",name:"Exloo",zip:""},{label:"Exmorra",name:"Exmorra",zip:""},{label:"Eygelshoven",name:"Eygelshoven",zip:""},{label:"Eys",name:"Eys",zip:""},{label:"Ezinge",name:"Ezinge",zip:""},{label:"De Falom",name:"De Falom",zip:""},{label:"Farmsum",name:"Farmsum",zip:""},{label:"Feanwâlden",name:"Feanwâlden",zip:""},{label:"Feerwerd",name:"Feerwerd",zip:""},{label:"Feinsum",name:"Feinsum",zip:""},{label:"Ferwert",name:"Ferwert",zip:""},{label:"Ferwoude",name:"Ferwoude",zip:""},{label:"Fijnaart",name:"Fijnaart",zip:""},{label:"Finsterwolde",name:"Finsterwolde",zip:""},{label:"Firdgum",name:"Firdgum",zip:""},{label:"Fleringen",name:"Fleringen",zip:""},{label:"Fluitenberg",name:"Fluitenberg",zip:""},{label:"Fochteloo",name:"Fochteloo",zip:""},{label:"Follega",name:"Follega",zip:""},{label:"Folsgare",name:"Folsgare",zip:""},{label:"Formerum",name:"Formerum",zip:""},{label:"Foudgum",name:"Foudgum",zip:""},{label:"Foxhol",name:"Foxhol",zip:""},{label:"Foxwolde",name:"Foxwolde",zip:""},{label:"Franeker",name:"Franeker",zip:""},{label:"Frederiksoord",name:"Frederiksoord",zip:""},{label:"Friens",name:"Friens",zip:""},{label:"Frieschepalen",name:"Frieschepalen",zip:""},{label:"Froombosch",name:"Froombosch",zip:""},{label:"Gaanderen",name:"Gaanderen",zip:""},{label:"Gaast",name:"Gaast",zip:""},{label:"Gaastmeer",name:"Gaastmeer",zip:""},{label:"Galder",name:"Galder",zip:""},{label:"Gameren",name:"Gameren",zip:""},{label:"Gapinge",name:"Gapinge",zip:""},{label:"Garderen",name:"Garderen",zip:""},{label:"Garmerwolde",name:"Garmerwolde",zip:""},{label:"Garminge",name:"Garminge",zip:""},{label:"Garnwerd",name:"Garnwerd",zip:""},{label:"Garrelsweer",name:"Garrelsweer",zip:""},{label:"Garsthuizen",name:"Garsthuizen",zip:""},{label:"Garyp",name:"Garyp",zip:""},{label:"Gassel",name:"Gassel",zip:""},{label:"Gasselte",name:"Gasselte",zip:""},{label:"Gasselternijveen",name:"Gasselternijveen",zip:""},{label:"Gasselternijveenschemond",name:"Gasselternijveenschemond",zip:""},{label:"Gastel",name:"Gastel",zip:""},{label:"Gasteren",name:"Gasteren",zip:""},{label:"Gauw",name:"Gauw",zip:""},{label:"Geelbroek",name:"Geelbroek",zip:""},{label:"Geerdijk",name:"Geerdijk",zip:""},{label:"Geersdijk",name:"Geersdijk",zip:""},{label:"Geertruidenberg",name:"Geertruidenberg",zip:""},{label:"Geervliet",name:"Geervliet",zip:""},{label:"Gees",name:"Gees",zip:""},{label:"Geesbrug",name:"Geesbrug",zip:""},{label:"Geesteren (Tubbergen)",name:"Geesteren (Tubbergen)",zip:""},{label:"Geesteren (Berkelland)",name:"Geesteren (Berkelland)",zip:""},{label:"Geeuwenbrug",name:"Geeuwenbrug",zip:""},{label:"Geffen",name:"Geffen",zip:""},{label:"Geijsteren",name:"Geijsteren",zip:""},{label:"Geldermalsen",name:"Geldermalsen",zip:""},{label:"Gelderswoude",name:"Gelderswoude",zip:""},{label:"Geldrop",name:"Geldrop",zip:""},{label:"Geleen",name:"Geleen",zip:""},{label:"Gellicum",name:"Gellicum",zip:""},{label:"Gelselaar",name:"Gelselaar",zip:""},{label:"Gemert",name:"Gemert",zip:""},{label:"Gemonde",name:"Gemonde",zip:""},{label:"Genderen",name:"Genderen",zip:""},{label:"Gendringen",name:"Gendringen",zip:""},{label:"Gendt",name:"Gendt",zip:""},{label:"Genemuiden",name:"Genemuiden",zip:""},{label:"Gennep",name:"Gennep",zip:""},{label:"Gerkesklooster",name:"Gerkesklooster",zip:""},{label:"Gersloot",name:"Gersloot",zip:""},{label:"Geulle",name:"Geulle",zip:""},{label:"Giesbeek",name:"Giesbeek",zip:""},{label:"Giessen",name:"Giessen",zip:""},{label:"Giessenburg",name:"Giessenburg",zip:""},{label:"Gieten",name:"Gieten",zip:""},{label:"Gieterveen",name:"Gieterveen",zip:""},{label:"Giethmen",name:"Giethmen",zip:""},{label:"Giethoorn",name:"Giethoorn",zip:""},{label:"Gilze",name:"Gilze",zip:""},{label:"Ginnum",name:"Ginnum",zip:""},{label:"Glane",name:"Glane",zip:""},{label:"Glimmen",name:"Glimmen",zip:""},{label:"De Glind",name:"De Glind",zip:""},{label:"Godlinze",name:"Godlinze",zip:""},{label:"Goedereede",name:"Goedereede",zip:""},{label:"Goënga",name:"Goënga",zip:""},{label:"Goëngahuizen",name:"Goëngahuizen",zip:""},{label:"Goes",name:"Goes",zip:""},{label:"Goingarijp",name:"Goingarijp",zip:""},{label:"Goirle",name:"Goirle",zip:""},{label:"Goor",name:"Goor",zip:""},{label:"De Goorn",name:"De Goorn",zip:""},{label:"Gorinchem",name:"Gorinchem",zip:""},{label:"Gorredijk",name:"Gorredijk",zip:""},{label:"Gorssel",name:"Gorssel",zip:""},{label:"Gouda",name:"Gouda",zip:""},{label:"Gouderak",name:"Gouderak",zip:""},{label:"Goudriaan",name:"Goudriaan",zip:""},{label:"Goudswaard",name:"Goudswaard",zip:""},{label:"Goutum",name:"Goutum",zip:""},{label:"'t Goy",name:"'t Goy",zip:""},{label:"Graauw",name:"Graauw",zip:""},{label:"Grafhorst",name:"Grafhorst",zip:""},{label:"Graft",name:"Graft",zip:""},{label:"Gramsbergen",name:"Gramsbergen",zip:""},{label:"Grashoek",name:"Grashoek",zip:""},{label:"Grathem",name:"Grathem",zip:""},{label:"Grave",name:"Grave",zip:""},{label:"'s-Graveland",name:"'s-Graveland",zip:""},{label:"'s-Gravendeel",name:"'s-Gravendeel",zip:""},{label:"Den Haag",name:"Den Haag",zip:""},{label:"'s Gravenmoer",name:"'s Gravenmoer",zip:""},{label:"'s-Gravenpolder",name:"'s-Gravenpolder",zip:""},{label:"'s-Gravenzande",name:"'s-Gravenzande",zip:""},{label:"Greonterp",name:"Greonterp",zip:""},{label:"Grevenbicht",name:"Grevenbicht",zip:""},{label:"Griendtsveen",name:"Griendtsveen",zip:""},{label:"Grijpskerk",name:"Grijpskerk",zip:""},{label:"Grijpskerke",name:"Grijpskerke",zip:""},{label:"Groede",name:"Groede",zip:""},{label:"Groenekan",name:"Groenekan",zip:""},{label:"Groeningen",name:"Groeningen",zip:""},{label:"Groenlo",name:"Groenlo",zip:""},{label:"Groesbeek",name:"Groesbeek",zip:""},{label:"Groessen",name:"Groessen",zip:""},{label:"Groet",name:"Groet",zip:""},{label:"De Groeve",name:"De Groeve",zip:""},{label:"Grolloo",name:"Grolloo",zip:""},{label:"Groningen",name:"Groningen",zip:""},{label:"Gronsveld",name:"Gronsveld",zip:""},{label:"Groot-Ammers",name:"Groot-Ammers",zip:""},{label:"Grootebroek",name:"Grootebroek",zip:""},{label:"Grootegast",name:"Grootegast",zip:""},{label:"Grootschermer",name:"Grootschermer",zip:""},{label:"Grou",name:"Grou",zip:""},{label:"Grubbenvorst",name:"Grubbenvorst",zip:""},{label:"Gulpen",name:"Gulpen",zip:""},{label:"Guttecoven",name:"Guttecoven",zip:""},{label:"Gytsjerk",name:"Gytsjerk",zip:""},{label:"Haaften",name:"Haaften",zip:""},{label:"Haaksbergen",name:"Haaksbergen",zip:""},{label:"Haalderen",name:"Haalderen",zip:""},{label:"'t Haantje",name:"'t Haantje",zip:""},{label:"Haaren",name:"Haaren",zip:""},{label:"Haarle (Tubbergen)",name:"Haarle (Tubbergen)",zip:""},{label:"Haarle (Hellendoorn)",name:"Haarle (Hellendoorn)",zip:""},{label:"Haarlem",name:"Haarlem",zip:""},{label:"Haarlemmerliede",name:"Haarlemmerliede",zip:""},{label:"Haarlo",name:"Haarlo",zip:""},{label:"Haarsteeg",name:"Haarsteeg",zip:""},{label:"Haarzuilens",name:"Haarzuilens",zip:""},{label:"Haastrecht",name:"Haastrecht",zip:""},{label:"Haelen",name:"Haelen",zip:""},{label:"Hagestein",name:"Hagestein",zip:""},{label:"Haghorst",name:"Haghorst",zip:""},{label:"Haler",name:"Haler",zip:""},{label:"Halfweg",name:"Halfweg",zip:""},{label:"Hall",name:"Hall",zip:""},{label:"Halle",name:"Halle",zip:""},{label:"Hallum",name:"Hallum",zip:""},{label:"Halsteren",name:"Halsteren",zip:""},{label:"Den Ham (Zuidhorn)",name:"Den Ham (Zuidhorn)",zip:""},{label:"Den Ham (Twenterand)",name:"Den Ham (Twenterand)",zip:""},{label:"Handel",name:"Handel",zip:""},{label:"Hank",name:"Hank",zip:""},{label:"Hansweert",name:"Hansweert",zip:""},{label:"Hantum",name:"Hantum",zip:""},{label:"Hantumeruitburen",name:"Hantumeruitburen",zip:""},{label:"Hantumhuizen",name:"Hantumhuizen",zip:""},{label:"Hapert",name:"Hapert",zip:""},{label:"Haps",name:"Haps",zip:""},{label:"Harbrinkhoek",name:"Harbrinkhoek",zip:""},{label:"'t Harde",name:"'t Harde",zip:""},{label:"Hardenberg",name:"Hardenberg",zip:""},{label:"Harderwijk",name:"Harderwijk",zip:""},{label:"Hardinxveld-Giessendam",name:"Hardinxveld-Giessendam",zip:""},{label:"Haren (Oss)",name:"Haren (Oss)",zip:""},{label:"Haren (Haren)",name:"Haren (Haren)",zip:""},{label:"Harfsen",name:"Harfsen",zip:""},{label:"Harich",name:"Harich",zip:""},{label:"Haringhuizen",name:"Haringhuizen",zip:""},{label:"Harkema",name:"Harkema",zip:""},{label:"Harkstede (Midden-Groningen)",name:"Harkstede (Midden-Groningen)",zip:""},{label:"Harkstede (Groningen)",name:"Harkstede (Groningen)",zip:""},{label:"Harlingen",name:"Harlingen",zip:""},{label:"Harmelen",name:"Harmelen",zip:""},{label:"Harreveld",name:"Harreveld",zip:""},{label:"Harskamp",name:"Harskamp",zip:""},{label:"Hartwerd",name:"Hartwerd",zip:""},{label:"Haskerdijken",name:"Haskerdijken",zip:""},{label:"Haskerhorne",name:"Haskerhorne",zip:""},{label:"Hasselt",name:"Hasselt",zip:""},{label:"Hattem",name:"Hattem",zip:""},{label:"Hattemerbroek",name:"Hattemerbroek",zip:""},{label:"Haule",name:"Haule",zip:""},{label:"Haulerwijk",name:"Haulerwijk",zip:""},{label:"Hauwert",name:"Hauwert",zip:""},{label:"Havelte",name:"Havelte",zip:""},{label:"Havelterberg",name:"Havelterberg",zip:""},{label:"Hazerswoude-Dorp",name:"Hazerswoude-Dorp",zip:""},{label:"Hazerswoude-Rijndijk",name:"Hazerswoude-Rijndijk",zip:""},{label:"Hedel",name:"Hedel",zip:""},{label:"Hedikhuizen",name:"Hedikhuizen",zip:""},{label:"Hee",name:"Hee",zip:""},{label:"Heeg",name:"Heeg",zip:""},{label:"Heel",name:"Heel",zip:""},{label:"Heelsum",name:"Heelsum",zip:""},{label:"Heelweg",name:"Heelweg",zip:""},{label:"Heemserveen",name:"Heemserveen",zip:""},{label:"Heemskerk",name:"Heemskerk",zip:""},{label:"Heemstede",name:"Heemstede",zip:""},{label:"De Heen",name:"De Heen",zip:""},{label:"Heenvliet",name:"Heenvliet",zip:""},{label:"'s-Heer Abtskerke",name:"'s-Heer Abtskerke",zip:""},{label:"'s-Heer Arendskerke",name:"'s-Heer Arendskerke",zip:""},{label:"'s-Heer Hendrikskinderen",name:"'s-Heer Hendrikskinderen",zip:""},{label:"Heerde",name:"Heerde",zip:""},{label:"'s-Heerenberg",name:"'s-Heerenberg",zip:""},{label:"'s-Heerenbroek",name:"'s-Heerenbroek",zip:""},{label:"'s-Heerenhoek",name:"'s-Heerenhoek",zip:""},{label:"Heerenveen",name:"Heerenveen",zip:""},{label:"Heerewaarden",name:"Heerewaarden",zip:""},{label:"Heerhugowaard",name:"Heerhugowaard",zip:""},{label:"Heerjansdam",name:"Heerjansdam",zip:""},{label:"Heerle",name:"Heerle",zip:""},{label:"Heerlen",name:"Heerlen",zip:""},{label:"Heesbeen",name:"Heesbeen",zip:""},{label:"Heesch",name:"Heesch",zip:""},{label:"Heesselt",name:"Heesselt",zip:""},{label:"Heeswijk-Dinther",name:"Heeswijk-Dinther",zip:""},{label:"Heeten",name:"Heeten",zip:""},{label:"Heeze",name:"Heeze",zip:""},{label:"Hegebeintum",name:"Hegebeintum",zip:""},{label:"Hegelsom",name:"Hegelsom",zip:""},{label:"Hei- en Boeicop",name:"Hei- en Boeicop",zip:""},{label:"Heibloem",name:"Heibloem",zip:""},{label:"Heide",name:"Heide",zip:""},{label:"It Heidenskip",name:"It Heidenskip",zip:""},{label:"Ter Heijde",name:"Ter Heijde",zip:""},{label:"Heijen",name:"Heijen",zip:""},{label:"Heijenrath",name:"Heijenrath",zip:""},{label:"Heijningen",name:"Heijningen",zip:""},{label:"Heikant",name:"Heikant",zip:""},{label:"Heilig Landstichting",name:"Heilig Landstichting",zip:""},{label:"Heiligerlee",name:"Heiligerlee",zip:""},{label:"Heiloo",name:"Heiloo",zip:""},{label:"Heinenoord",name:"Heinenoord",zip:""},{label:"Heinkenszand",name:"Heinkenszand",zip:""},{label:"Heino",name:"Heino",zip:""},{label:"Hekelingen",name:"Hekelingen",zip:""},{label:"Hekendorp",name:"Hekendorp",zip:""},{label:"Helden",name:"Helden",zip:""},{label:"Den Helder",name:"Den Helder",zip:""},{label:"Helenaveen",name:"Helenaveen",zip:""},{label:"Hellendoorn",name:"Hellendoorn",zip:""},{label:"Hellevoetsluis",name:"Hellevoetsluis",zip:""},{label:"Hellouw",name:"Hellouw",zip:""},{label:"Hellum",name:"Hellum",zip:""},{label:"Helmond",name:"Helmond",zip:""},{label:"Helvoirt",name:"Helvoirt",zip:""},{label:"Hem",name:"Hem",zip:""},{label:"Hemelum",name:"Hemelum",zip:""},{label:"Hemmen",name:"Hemmen",zip:""},{label:"Hempens",name:"Hempens",zip:""},{label:"Hemrik",name:"Hemrik",zip:""},{label:"Hendrik-Ido-Ambacht",name:"Hendrik-Ido-Ambacht",zip:""},{label:"Hengelo (Hengelo)",name:"Hengelo (Hengelo)",zip:""},{label:"Hengelo (Bronckhorst)",name:"Hengelo (Bronckhorst)",zip:""},{label:"Hengevelde",name:"Hengevelde",zip:""},{label:"Hengstdijk",name:"Hengstdijk",zip:""},{label:"Hensbroek",name:"Hensbroek",zip:""},{label:"Herbaijum",name:"Herbaijum",zip:""},{label:"Herkenbosch",name:"Herkenbosch",zip:""},{label:"Herkingen",name:"Herkingen",zip:""},{label:"Hernen",name:"Hernen",zip:""},{label:"Herpen",name:"Herpen",zip:""},{label:"Herpt",name:"Herpt",zip:""},{label:"Herten",name:"Herten",zip:""},{label:"Hertme",name:"Hertme",zip:""},{label:"'s-Hertogenbosch",name:"'s-Hertogenbosch",zip:""},{label:"Herveld",name:"Herveld",zip:""},{label:"Herwen",name:"Herwen",zip:""},{label:"Herwijnen",name:"Herwijnen",zip:""},{label:"Heteren",name:"Heteren",zip:""},{label:"Heukelom",name:"Heukelom",zip:""},{label:"Heukelum",name:"Heukelum",zip:""},{label:"Heumen",name:"Heumen",zip:""},{label:"De Heurne",name:"De Heurne",zip:""},{label:"Heusden (Asten)",name:"Heusden (Asten)",zip:""},{label:"Heusden (Heusden)",name:"Heusden (Heusden)",zip:""},{label:"Heveadorp",name:"Heveadorp",zip:""},{label:"Heythuysen",name:"Heythuysen",zip:""},{label:"Hezingen",name:"Hezingen",zip:""},{label:"Hiaure",name:"Hiaure",zip:""},{label:"Hichtum",name:"Hichtum",zip:""},{label:"Hidaard",name:"Hidaard",zip:""},{label:"Hierden",name:"Hierden",zip:""},{label:"Hieslum",name:"Hieslum",zip:""},{label:"Hijken",name:"Hijken",zip:""},{label:"Hijum",name:"Hijum",zip:""},{label:"Hilaard",name:"Hilaard",zip:""},{label:"Hillegom",name:"Hillegom",zip:""},{label:"Hilvarenbeek",name:"Hilvarenbeek",zip:""},{label:"Hilversum",name:"Hilversum",zip:""},{label:"Hindeloopen",name:"Hindeloopen",zip:""},{label:"Hinnaard",name:"Hinnaard",zip:""},{label:"Hippolytushoef",name:"Hippolytushoef",zip:""},{label:"Hitzum",name:"Hitzum",zip:""},{label:"Hobrede",name:"Hobrede",zip:""},{label:"Hoedekenskerke",name:"Hoedekenskerke",zip:""},{label:"de Hoef",name:"de Hoef",zip:""},{label:"Hoef en Haag",name:"Hoef en Haag",zip:""},{label:"Hoek",name:"Hoek",zip:""},{label:"Hoek van Holland",name:"Hoek van Holland",zip:""},{label:"Hoenderloo (Apeldoorn)",name:"Hoenderloo (Apeldoorn)",zip:""},{label:"Hoenderloo (Ede)",name:"Hoenderloo (Ede)",zip:""},{label:"Hoensbroek",name:"Hoensbroek",zip:""},{label:"Hoenzadriel",name:"Hoenzadriel",zip:""},{label:"De Hoeve",name:"De Hoeve",zip:""},{label:"Hoevelaken",name:"Hoevelaken",zip:""},{label:"Hoeven",name:"Hoeven",zip:""},{label:"Hoge Hexel",name:"Hoge Hexel",zip:""},{label:"Hollandsche Rading",name:"Hollandsche Rading",zip:""},{label:"Hollandscheveld",name:"Hollandscheveld",zip:""},{label:"Hollum",name:"Hollum",zip:""},{label:"Holsloot",name:"Holsloot",zip:""},{label:"Holten",name:"Holten",zip:""},{label:"Holthees",name:"Holthees",zip:""},{label:"Holtheme",name:"Holtheme",zip:""},{label:"Holthone",name:"Holthone",zip:""},{label:"Holtum",name:"Holtum",zip:""},{label:"Holwerd",name:"Holwerd",zip:""},{label:"Holwierde",name:"Holwierde",zip:""},{label:"Hommerts",name:"Hommerts",zip:""},{label:"Homoet",name:"Homoet",zip:""},{label:"Honselersdijk",name:"Honselersdijk",zip:""},{label:"Hoofddorp",name:"Hoofddorp",zip:""},{label:"Hoofdplaat",name:"Hoofdplaat",zip:""},{label:"Hoog Soeren",name:"Hoog Soeren",zip:""},{label:"Hoogblokland",name:"Hoogblokland",zip:""},{label:"Hooge Mierde",name:"Hooge Mierde",zip:""},{label:"Hooge Zwaluwe",name:"Hooge Zwaluwe",zip:""},{label:"Hoogeloon",name:"Hoogeloon",zip:""},{label:"Hoogenweg",name:"Hoogenweg",zip:""},{label:"Hoogerheide",name:"Hoogerheide",zip:""},{label:"Hoogersmilde (Midden-Drenthe)",name:"Hoogersmilde (Midden-Drenthe)",zip:""},{label:"Hoogersmilde (Westerveld)",name:"Hoogersmilde (Westerveld)",zip:""},{label:"Hoogeveen",name:"Hoogeveen",zip:""},{label:"Hoogezand",name:"Hoogezand",zip:""},{label:"Hooghalen",name:"Hooghalen",zip:""},{label:"Hoogkarspel",name:"Hoogkarspel",zip:""},{label:"Hoog-Keppel",name:"Hoog-Keppel",zip:""},{label:"Hoogland",name:"Hoogland",zip:""},{label:"Hooglanderveen",name:"Hooglanderveen",zip:""},{label:"Hoogmade",name:"Hoogmade",zip:""},{label:"Hoogvliet Rotterdam",name:"Hoogvliet Rotterdam",zip:""},{label:"Hoogwoud",name:"Hoogwoud",zip:""},{label:"Hoorn (Hoorn)",name:"Hoorn (Hoorn)",zip:""},{label:"Hoorn (Terschelling)",name:"Hoorn (Terschelling)",zip:""},{label:"Den Hoorn (Texel)",name:"Den Hoorn (Texel)",zip:""},{label:"Den Hoorn (Midden-Delfland)",name:"Den Hoorn (Midden-Delfland)",zip:""},{label:"Hoornaar",name:"Hoornaar",zip:""},{label:"Hoornsterzwaag",name:"Hoornsterzwaag",zip:""},{label:"Horn",name:"Horn",zip:""},{label:"Den Horn",name:"Den Horn",zip:""},{label:"Hornhuizen",name:"Hornhuizen",zip:""},{label:"Horssen",name:"Horssen",zip:""},{label:"Horst",name:"Horst",zip:""},{label:"Den Hout",name:"Den Hout",zip:""},{label:"Houten",name:"Houten",zip:""},{label:"Houtigehage",name:"Houtigehage",zip:""},{label:"Houwerzijl",name:"Houwerzijl",zip:""},{label:"Huijbergen",name:"Huijbergen",zip:""},{label:"Huis ter Heide (Noordenveld)",name:"Huis ter Heide (Noordenveld)",zip:""},{label:"Huis ter Heide (Zeist)",name:"Huis ter Heide (Zeist)",zip:""},{label:"Huisduinen",name:"Huisduinen",zip:""},{label:"Huisseling",name:"Huisseling",zip:""},{label:"Huissen",name:"Huissen",zip:""},{label:"Huizen",name:"Huizen",zip:""},{label:"Huizinge",name:"Huizinge",zip:""},{label:"Hulsberg",name:"Hulsberg",zip:""},{label:"Hulsel",name:"Hulsel",zip:""},{label:"Hulshorst",name:"Hulshorst",zip:""},{label:"Hulst",name:"Hulst",zip:""},{label:"Hulten",name:"Hulten",zip:""},{label:"Hummelo",name:"Hummelo",zip:""},{label:"Húns",name:"Húns",zip:""},{label:"Hunsel",name:"Hunsel",zip:""},{label:"Hurdegaryp",name:"Hurdegaryp",zip:""},{label:"Hurwenen",name:"Hurwenen",zip:""},{label:"Idaerd",name:"Idaerd",zip:""},{label:"Idsegahuizum",name:"Idsegahuizum",zip:""},{label:"Idskenhuizen",name:"Idskenhuizen",zip:""},{label:"Ter Idzard",name:"Ter Idzard",zip:""},{label:"Idzega",name:"Idzega",zip:""},{label:"Iens",name:"Iens",zip:""},{label:"IJhorst",name:"IJhorst",zip:""},{label:"IJlst",name:"IJlst",zip:""},{label:"IJmuiden",name:"IJmuiden",zip:""},{label:"IJsselham",name:"IJsselham",zip:""},{label:"IJsselmuiden",name:"IJsselmuiden",zip:""},{label:"IJsselstein",name:"IJsselstein",zip:""},{label:"IJzendijke",name:"IJzendijke",zip:""},{label:"IJzendoorn",name:"IJzendoorn",zip:""},{label:"Den Ilp",name:"Den Ilp",zip:""},{label:"Ilpendam",name:"Ilpendam",zip:""},{label:"Indijk",name:"Indijk",zip:""},{label:"Ingber",name:"Ingber",zip:""},{label:"Ingelum",name:"Ingelum",zip:""},{label:"Ingen",name:"Ingen",zip:""},{label:"Itens",name:"Itens",zip:""},{label:"Ittervoort",name:"Ittervoort",zip:""},{label:"Jaarsveld",name:"Jaarsveld",zip:""},{label:"Jabeek",name:"Jabeek",zip:""},{label:"Jannum",name:"Jannum",zip:""},{label:"Jellum",name:"Jellum",zip:""},{label:"Jelsum",name:"Jelsum",zip:""},{label:"Jirnsum",name:"Jirnsum",zip:""},{label:"Jislum",name:"Jislum",zip:""},{label:"Jisp",name:"Jisp",zip:""},{label:"Jistrum",name:"Jistrum",zip:""},{label:"Jonkerslân",name:"Jonkerslân",zip:""},{label:"Jonkersvaart",name:"Jonkersvaart",zip:""},{label:"Joppe",name:"Joppe",zip:""},{label:"Jorwert",name:"Jorwert",zip:""},{label:"Joure",name:"Joure",zip:""},{label:"Jouswier",name:"Jouswier",zip:""},{label:"Jubbega",name:"Jubbega",zip:""},{label:"Julianadorp",name:"Julianadorp",zip:""},{label:"Jutrijp",name:"Jutrijp",zip:""},{label:"Kaag",name:"Kaag",zip:""},{label:"Kaard",name:"Kaard",zip:""},{label:"Kaatsheuvel",name:"Kaatsheuvel",zip:""},{label:"Kalenberg",name:"Kalenberg",zip:""},{label:"Kallenkote",name:"Kallenkote",zip:""},{label:"Kamerik",name:"Kamerik",zip:""},{label:"Kampen",name:"Kampen",zip:""},{label:"Kamperland",name:"Kamperland", zip:""},{label:"Kamperveen",name:"Kamperveen",zip:""},{label:"Kantens",name:"Kantens",zip:""},{label:"Kapel Avezaath (Tiel)",name:"Kapel Avezaath (Tiel)",zip:""},{label:"Kapel-Avezaath (Buren)",name:"Kapel-Avezaath (Buren)",zip:""},{label:"Kapelle",name:"Kapelle",zip:""},{label:"Kapellebrug",name:"Kapellebrug",zip:""},{label:"Katlijk",name:"Katlijk",zip:""},{label:"Kats",name:"Kats",zip:""},{label:"Kattendijke",name:"Kattendijke",zip:""},{label:"Katwijk (Katwijk)",name:"Katwijk (Katwijk)",zip:""},{label:"Katwijk (Cuijk)",name:"Katwijk (Cuijk)",zip:""},{label:"Katwoude",name:"Katwoude",zip:""},{label:"Kedichem",name:"Kedichem",zip:""},{label:"Keent",name:"Keent",zip:""},{label:"Keijenborg",name:"Keijenborg",zip:""},{label:"Kekerdom",name:"Kekerdom",zip:""},{label:"Kelpen-Oler",name:"Kelpen-Oler",zip:""},{label:"Kerk Avezaath (Tiel)",name:"Kerk Avezaath (Tiel)",zip:""},{label:"Kerk-Avezaath (Buren)",name:"Kerk-Avezaath (Buren)",zip:""},{label:"Kerkdriel",name:"Kerkdriel",zip:""},{label:"Kerkenveld",name:"Kerkenveld",zip:""},{label:"Kerkrade",name:"Kerkrade",zip:""},{label:"Kerkwerve",name:"Kerkwerve",zip:""},{label:"Kerkwijk",name:"Kerkwijk",zip:""},{label:"Kessel",name:"Kessel",zip:""},{label:"Kesteren",name:"Kesteren",zip:""},{label:"De Kiel",name:"De Kiel",zip:""},{label:"Kiel-Windeweer",name:"Kiel-Windeweer",zip:""},{label:"Kilder",name:"Kilder",zip:""},{label:"Kimswerd",name:"Kimswerd",zip:""},{label:"Kinderdijk",name:"Kinderdijk",zip:""},{label:"Kinnum",name:"Kinnum",zip:""},{label:"Klaaswaal",name:"Klaaswaal",zip:""},{label:"Klarenbeek (Apeldoorn)",name:"Klarenbeek (Apeldoorn)",zip:""},{label:"Klarenbeek (Voorst)",name:"Klarenbeek (Voorst)",zip:""},{label:"Klazienaveen",name:"Klazienaveen",zip:""},{label:"Klazienaveen-Noord",name:"Klazienaveen-Noord",zip:""},{label:"Klein Zundert",name:"Klein Zundert",zip:""},{label:"Klijndijk",name:"Klijndijk",zip:""},{label:"Klimmen",name:"Klimmen",zip:""},{label:"Kloetinge (Goes)",name:"Kloetinge (Goes)",zip:""},{label:"Kloetinge (Kapelle)",name:"Kloetinge (Kapelle)",zip:""},{label:"De Klomp",name:"De Klomp",zip:""},{label:"Klooster Lidlum",name:"Klooster Lidlum",zip:""},{label:"Kloosterburen",name:"Kloosterburen",zip:""},{label:"Kloosterhaar (Twenterand)",name:"Kloosterhaar (Twenterand)",zip:""},{label:"Kloosterhaar (Hardenberg)",name:"Kloosterhaar (Hardenberg)",zip:""},{label:"Kloosterzande",name:"Kloosterzande",zip:""},{label:"Klundert",name:"Klundert",zip:""},{label:"Knegsel",name:"Knegsel",zip:""},{label:"De Knipe",name:"De Knipe",zip:""},{label:"Koarnjum",name:"Koarnjum",zip:""},{label:"Kockengen",name:"Kockengen",zip:""},{label:"Koedijk (Langedijk)",name:"Koedijk (Langedijk)",zip:""},{label:"Koedijk (Alkmaar)",name:"Koedijk (Alkmaar)",zip:""},{label:"Koekange",name:"Koekange",zip:""},{label:"Koewacht",name:"Koewacht",zip:""},{label:"Kolderwolde",name:"Kolderwolde",zip:""},{label:"Kolham",name:"Kolham",zip:""},{label:"Kolhorn",name:"Kolhorn",zip:""},{label:"Kollum",name:"Kollum",zip:""},{label:"Kollumerpomp",name:"Kollumerpomp",zip:""},{label:"Kollumerzwaag",name:"Kollumerzwaag",zip:""},{label:"Kommerzijl",name:"Kommerzijl",zip:""},{label:"Koningsbosch",name:"Koningsbosch",zip:""},{label:"Koningslust",name:"Koningslust",zip:""},{label:"De Koog",name:"De Koog",zip:""},{label:"Koog aan de Zaan",name:"Koog aan de Zaan",zip:""},{label:"Kootstertille",name:"Kootstertille",zip:""},{label:"Kootwijk",name:"Kootwijk",zip:""},{label:"Kootwijkerbroek",name:"Kootwijkerbroek",zip:""},{label:"Kornhorn",name:"Kornhorn",zip:""},{label:"Kornwerderzand",name:"Kornwerderzand",zip:""},{label:"Kortehemmen",name:"Kortehemmen",zip:""},{label:"Kortenhoef",name:"Kortenhoef",zip:""},{label:"Kortgene",name:"Kortgene",zip:""},{label:"Koudekerk aan den Rijn",name:"Koudekerk aan den Rijn",zip:""},{label:"Koudekerke",name:"Koudekerke",zip:""},{label:"Koudum",name:"Koudum",zip:""},{label:"Koufurderrige",name:"Koufurderrige",zip:""},{label:"Krabbendijke",name:"Krabbendijke",zip:""},{label:"Kraggenburg",name:"Kraggenburg",zip:""},{label:"Kreileroord",name:"Kreileroord",zip:""},{label:"Krewerd",name:"Krewerd",zip:""},{label:"De Krim",name:"De Krim",zip:""},{label:"Krimpen aan de Lek",name:"Krimpen aan de Lek",zip:""},{label:"Krimpen aan den IJssel",name:"Krimpen aan den IJssel",zip:""},{label:"Kring van Dorth",name:"Kring van Dorth",zip:""},{label:"Krommenie",name:"Krommenie",zip:""},{label:"Kronenberg",name:"Kronenberg",zip:""},{label:"Kropswolde",name:"Kropswolde",zip:""},{label:"Kruiningen",name:"Kruiningen",zip:""},{label:"Kruisland",name:"Kruisland",zip:""},{label:"Kûbaard",name:"Kûbaard",zip:""},{label:"Kudelstaart",name:"Kudelstaart",zip:""},{label:"Kuinre",name:"Kuinre",zip:""},{label:"Kuitaart",name:"Kuitaart",zip:""},{label:"Kwadendamme",name:"Kwadendamme",zip:""},{label:"Kwadijk",name:"Kwadijk",zip:""},{label:"De Kwakel",name:"De Kwakel",zip:""},{label:"Kwintsheul",name:"Kwintsheul",zip:""},{label:"Laag Zuthem",name:"Laag Zuthem",zip:""},{label:"Laag-Keppel",name:"Laag-Keppel",zip:""},{label:"Laag-Soeren",name:"Laag-Soeren",zip:""},{label:"Lage Mierde",name:"Lage Mierde",zip:""},{label:"Lage Vuursche",name:"Lage Vuursche",zip:""},{label:"Lage Zwaluwe",name:"Lage Zwaluwe",zip:""},{label:"Lageland (Midden-Groningen)",name:"Lageland (Midden-Groningen)",zip:""},{label:"Lageland (Groningen)",name:"Lageland (Groningen)",zip:""},{label:"Lambertschaag",name:"Lambertschaag",zip:""},{label:"Lamswaarde",name:"Lamswaarde",zip:""},{label:"Landerum",name:"Landerum",zip:""},{label:"Landgraaf",name:"Landgraaf",zip:""},{label:"Landhorst",name:"Landhorst",zip:""},{label:"Landsmeer",name:"Landsmeer",zip:""},{label:"Langbroek",name:"Langbroek",zip:""},{label:"Langedijke",name:"Langedijke",zip:""},{label:"Langelille",name:"Langelille",zip:""},{label:"Langelo",name:"Langelo",zip:""},{label:"Langenboom",name:"Langenboom",zip:""},{label:"Langerak",name:"Langerak",zip:""},{label:"Langeveen",name:"Langeveen",zip:""},{label:"Langeweg",name:"Langeweg",zip:""},{label:"Langezwaag",name:"Langezwaag",zip:""},{label:"Langweer",name:"Langweer",zip:""},{label:"Laren (Lochem)",name:"Laren (Lochem)",zip:""},{label:"Laren (Laren)",name:"Laren (Laren)",zip:""},{label:"Lathum",name:"Lathum",zip:""},{label:"Lattrop-Breklenkamp",name:"Lattrop-Breklenkamp",zip:""},{label:"Lauwersoog",name:"Lauwersoog",zip:""},{label:"Lauwerzijl",name:"Lauwerzijl",zip:""},{label:"Ledeacker",name:"Ledeacker",zip:""},{label:"Leek",name:"Leek",zip:""},{label:"Leende",name:"Leende",zip:""},{label:"Leens",name:"Leens",zip:""},{label:"Leerbroek",name:"Leerbroek",zip:""},{label:"Leerdam",name:"Leerdam",zip:""},{label:"Leermens",name:"Leermens",zip:""},{label:"Leersum",name:"Leersum",zip:""},{label:"Leeuwarden",name:"Leeuwarden",zip:""},{label:"Legemeer",name:"Legemeer",zip:""},{label:"Leiden",name:"Leiden",zip:""},{label:"Leiderdorp",name:"Leiderdorp",zip:""},{label:"Leidschendam",name:"Leidschendam",zip:""},{label:"Leimuiden",name:"Leimuiden",zip:""},{label:"Leimuiderbrug",name:"Leimuiderbrug",zip:""},{label:"Lekkerkerk",name:"Lekkerkerk",zip:""},{label:"Lekkum",name:"Lekkum",zip:""},{label:"Lellens",name:"Lellens",zip:""},{label:"Lelystad",name:"Lelystad",zip:""},{label:"Lemele",name:"Lemele",zip:""},{label:"Lemelerveld",name:"Lemelerveld",zip:""},{label:"Lemiers",name:"Lemiers",zip:""},{label:"Lemmer",name:"Lemmer",zip:""},{label:"Lengel",name:"Lengel",zip:""},{label:"Lent",name:"Lent",zip:""},{label:"Leons",name:"Leons",zip:""},{label:"Lepelstraat",name:"Lepelstraat",zip:""},{label:"Lettelbert",name:"Lettelbert",zip:""},{label:"Lettele",name:"Lettele",zip:""},{label:"Leunen",name:"Leunen",zip:""},{label:"Leur",name:"Leur",zip:""},{label:"Leusden",name:"Leusden",zip:""},{label:"Leuth",name:"Leuth",zip:""},{label:"Leutingewolde",name:"Leutingewolde",zip:""},{label:"Leuvenheim",name:"Leuvenheim",zip:""},{label:"Leveroy",name:"Leveroy",zip:""},{label:"Lewedorp",name:"Lewedorp",zip:""},{label:"Lexmond",name:"Lexmond",zip:""},{label:"Lichtaard",name:"Lichtaard",zip:""},{label:"Lichtenvoorde",name:"Lichtenvoorde",zip:""},{label:"Liempde",name:"Liempde",zip:""},{label:"Lienden",name:"Lienden",zip:""},{label:"De Lier",name:"De Lier",zip:""},{label:"Lierderholthuis",name:"Lierderholthuis",zip:""},{label:"Lieren",name:"Lieren",zip:""},{label:"Lierop",name:"Lierop",zip:""},{label:"Lies",name:"Lies",zip:""},{label:"Lieshout",name:"Lieshout",zip:""},{label:"Liessel",name:"Liessel",zip:""},{label:"Lievelde",name:"Lievelde",zip:""},{label:"Lieveren",name:"Lieveren",zip:""},{label:"Lijnden",name:"Lijnden",zip:""},{label:"Limbricht",name:"Limbricht",zip:""},{label:"Limmen",name:"Limmen",zip:""},{label:"Linde",name:"Linde",zip:""},{label:"Linden",name:"Linden",zip:""},{label:"Linne",name:"Linne",zip:""},{label:"Linschoten",name:"Linschoten",zip:""},{label:"Lioessens",name:"Lioessens",zip:""},{label:"Lippenhuizen",name:"Lippenhuizen",zip:""},{label:"Lisse",name:"Lisse",zip:""},{label:"Lisserbroek",name:"Lisserbroek",zip:""},{label:"Lith",name:"Lith",zip:""},{label:"Lithoijen",name:"Lithoijen",zip:""},{label:"Lobith",name:"Lobith",zip:""},{label:"Lochem",name:"Lochem",zip:""},{label:"Loenen",name:"Loenen",zip:""},{label:"Loenen aan de Vecht",name:"Loenen aan de Vecht",zip:""},{label:"Loenersloot",name:"Loenersloot",zip:""},{label:"Loënga",name:"Loënga",zip:""},{label:"Loerbeek",name:"Loerbeek",zip:""},{label:"Lollum",name:"Lollum",zip:""},{label:"Lomm",name:"Lomm",zip:""},{label:"Longerhouw",name:"Longerhouw",zip:""},{label:"Loo Gld (Lingewaard)",name:"Loo Gld (Lingewaard)",zip:""},{label:"Loo Gld (Duiven)",name:"Loo Gld (Duiven)",zip:""},{label:"'t Loo Oldebroek",name:"'t Loo Oldebroek",zip:""},{label:"Loon",name:"Loon",zip:""},{label:"Loon op Zand",name:"Loon op Zand",zip:""},{label:"Loosbroek",name:"Loosbroek",zip:""},{label:"Loosdrecht",name:"Loosdrecht",zip:""},{label:"Loozen",name:"Loozen",zip:""},{label:"Lopik",name:"Lopik",zip:""},{label:"Lopikerkapel",name:"Lopikerkapel",zip:""},{label:"Loppersum",name:"Loppersum",zip:""},{label:"Losdorp",name:"Losdorp",zip:""},{label:"Losser",name:"Losser",zip:""},{label:"Lottum",name:"Lottum",zip:""},{label:"Lucaswolde",name:"Lucaswolde",zip:""},{label:"Luddeweer",name:"Luddeweer",zip:""},{label:"Luinjeberd",name:"Luinjeberd",zip:""},{label:"Lunteren",name:"Lunteren",zip:""},{label:"Lutjebroek",name:"Lutjebroek",zip:""},{label:"Lutjegast",name:"Lutjegast",zip:""},{label:"Lutjewinkel",name:"Lutjewinkel",zip:""},{label:"de Lutte",name:"de Lutte",zip:""},{label:"Luttelgeest",name:"Luttelgeest",zip:""},{label:"Lutten",name:"Lutten",zip:""},{label:"Luttenberg",name:"Luttenberg",zip:""},{label:"Luxwoude",name:"Luxwoude",zip:""},{label:"Luyksgestel",name:"Luyksgestel",zip:""},{label:"Lytsewierrum",name:"Lytsewierrum",zip:""},{label:"Maarheeze",name:"Maarheeze",zip:""},{label:"Maarn",name:"Maarn",zip:""},{label:"Maarsbergen",name:"Maarsbergen",zip:""},{label:"Maarssen",name:"Maarssen",zip:""},{label:"Maartensdijk",name:"Maartensdijk",zip:""},{label:"Maasbommel",name:"Maasbommel",zip:""},{label:"Maasbracht",name:"Maasbracht",zip:""},{label:"Maasbree",name:"Maasbree",zip:""},{label:"Maasdam",name:"Maasdam",zip:""},{label:"Maasdijk",name:"Maasdijk",zip:""},{label:"Maashees",name:"Maashees",zip:""},{label:"Maasland",name:"Maasland",zip:""},{label:"Maassluis",name:"Maassluis",zip:""},{label:"Maastricht",name:"Maastricht",zip:""},{label:"Maastricht-Airport",name:"Maastricht-Airport",zip:""},{label:"Maasvlakte Rotterdam",name:"Maasvlakte Rotterdam",zip:""},{label:"Macharen",name:"Macharen",zip:""},{label:"Made",name:"Made",zip:""},{label:"Makkinga",name:"Makkinga",zip:""},{label:"Makkum",name:"Makkum",zip:""},{label:"Malden",name:"Malden",zip:""},{label:"Mander",name:"Mander",zip:""},{label:"Manderveen",name:"Manderveen",zip:""},{label:"Mantgum",name:"Mantgum",zip:""},{label:"Mantinge",name:"Mantinge",zip:""},{label:"Maren-Kessel",name:"Maren-Kessel",zip:""},{label:"Margraten",name:"Margraten",zip:""},{label:"Maria Hoop",name:"Maria Hoop",zip:""},{label:"Mariahout",name:"Mariahout",zip:""},{label:"Mariaparochie",name:"Mariaparochie",zip:""},{label:"Mariënberg",name:"Mariënberg",zip:""},{label:"Mariënheem",name:"Mariënheem",zip:""},{label:"Mariënvelde",name:"Mariënvelde",zip:""},{label:"Marijenkampen",name:"Marijenkampen",zip:""},{label:"Markelo",name:"Markelo",zip:""},{label:"Marken",name:"Marken",zip:""},{label:"Markenbinnen",name:"Markenbinnen",zip:""},{label:"Marknesse",name:"Marknesse",zip:""},{label:"Marle",name:"Marle",zip:""},{label:"Marrum",name:"Marrum",zip:""},{label:"Marsum",name:"Marsum",zip:""},{label:"Marum",name:"Marum",zip:""},{label:"Marwijksoord",name:"Marwijksoord",zip:""},{label:"Mastenbroek (Zwartewaterland)",name:"Mastenbroek (Zwartewaterland)",zip:""},{label:"Mastenbroek (Kampen)",name:"Mastenbroek (Kampen)",zip:""},{label:"Matsloot",name:"Matsloot",zip:""},{label:"Maurik",name:"Maurik",zip:""},{label:"Mechelen",name:"Mechelen",zip:""},{label:"Medemblik",name:"Medemblik",zip:""},{label:"Meeden",name:"Meeden",zip:""},{label:"Meedhuizen",name:"Meedhuizen",zip:""},{label:"Meerkerk",name:"Meerkerk",zip:""},{label:"Meerlo",name:"Meerlo",zip:""},{label:"De Meern",name:"De Meern",zip:""},{label:"Meerssen",name:"Meerssen",zip:""},{label:"Meerstad",name:"Meerstad",zip:""},{label:"Meeuwen",name:"Meeuwen",zip:""},{label:"Megchelen",name:"Megchelen",zip:""},{label:"Megen",name:"Megen",zip:""},{label:"Meijel",name:"Meijel",zip:""},{label:"Melderslo",name:"Melderslo",zip:""},{label:"Melick",name:"Melick",zip:""},{label:"Meliskerke",name:"Meliskerke",zip:""},{label:"Melissant",name:"Melissant",zip:""},{label:"Menaam",name:"Menaam",zip:""},{label:"Mensingeweer",name:"Mensingeweer",zip:""},{label:"Meppel",name:"Meppel",zip:""},{label:"Meppen",name:"Meppen",zip:""},{label:"Merkelbeek",name:"Merkelbeek",zip:""},{label:"Merselo",name:"Merselo",zip:""},{label:"Meteren",name:"Meteren",zip:""},{label:"Meterik",name:"Meterik",zip:""},{label:"Metslawier",name:"Metslawier",zip:""},{label:"Mheer",name:"Mheer",zip:""},{label:"Middelaar",name:"Middelaar",zip:""},{label:"Middelburg",name:"Middelburg",zip:""},{label:"Middelharnis",name:"Middelharnis",zip:""},{label:"Middelie",name:"Middelie",zip:""},{label:"Middelstum",name:"Middelstum",zip:""},{label:"Middenbeemster",name:"Middenbeemster",zip:""},{label:"Middenmeer",name:"Middenmeer",zip:""},{label:"Midlaren",name:"Midlaren",zip:""},{label:"Midlum",name:"Midlum",zip:""},{label:"Midsland",name:"Midsland",zip:""},{label:"Midwolda",name:"Midwolda",zip:""},{label:"Midwolde",name:"Midwolde",zip:""},{label:"Midwoud",name:"Midwoud",zip:""},{label:"Miedum",name:"Miedum",zip:""},{label:"Mierlo",name:"Mierlo",zip:""},{label:"Mijdrecht",name:"Mijdrecht",zip:""},{label:"Mijnsheerenland",name:"Mijnsheerenland",zip:""},{label:"Mildam",name:"Mildam",zip:""},{label:"Milheeze",name:"Milheeze",zip:""},{label:"Mill",name:"Mill",zip:""},{label:"Millingen aan de Rijn",name:"Millingen aan de Rijn",zip:""},{label:"Milsbeek",name:"Milsbeek",zip:""},{label:"Minnertsga",name:"Minnertsga",zip:""},{label:"Mirns",name:"Mirns",zip:""},{label:"Moddergat",name:"Moddergat",zip:""},{label:"De Moer",name:"De Moer",zip:""},{label:"Moerdijk",name:"Moerdijk",zip:""},{label:"Moergestel",name:"Moergestel",zip:""},{label:"Moerkapelle",name:"Moerkapelle",zip:""},{label:"Moerstraten",name:"Moerstraten",zip:""},{label:"Molenaarsgraaf",name:"Molenaarsgraaf",zip:""},{label:"Molenhoek",name:"Molenhoek",zip:""},{label:"Molenschot",name:"Molenschot",zip:""},{label:"Molkwerum",name:"Molkwerum",zip:""},{label:"Monnickendam",name:"Monnickendam",zip:""},{label:"Monster",name:"Monster",zip:""},{label:"Montfoort",name:"Montfoort",zip:""},{label:"Montfort",name:"Montfort",zip:""},{label:"Mook",name:"Mook",zip:""},{label:"Mookhoek",name:"Mookhoek",zip:""},{label:"Moordrecht",name:"Moordrecht",zip:""},{label:"Moorveld",name:"Moorveld",zip:""},{label:"Morra",name:"Morra",zip:""},{label:"De Mortel",name:"De Mortel",zip:""},{label:"Muiden",name:"Muiden",zip:""},{label:"Muiderberg",name:"Muiderberg",zip:""},{label:"Mûnein",name:"Mûnein",zip:""},{label:"Munnekeburen",name:"Munnekeburen",zip:""},{label:"Munnekezijl",name:"Munnekezijl",zip:""},{label:"Munstergeleen",name:"Munstergeleen",zip:""},{label:"Muntendam",name:"Muntendam",zip:""},{label:"Mussel",name:"Mussel",zip:""},{label:"Musselkanaal",name:"Musselkanaal",zip:""},{label:"Naaldwijk",name:"Naaldwijk",zip:""},{label:"Naarden",name:"Naarden",zip:""},{label:"Nagele",name:"Nagele",zip:""},{label:"Nederasselt",name:"Nederasselt",zip:""},{label:"Nederhemert",name:"Nederhemert",zip:""},{label:"Nederhorst den Berg",name:"Nederhorst den Berg",zip:""},{label:"Nederland",name:"Nederland",zip:""},{label:"Nederweert",name:"Nederweert",zip:""},{label:"Nederweert-Eind",name:"Nederweert-Eind",zip:""},{label:"Neede",name:"Neede",zip:""},{label:"Neer",name:"Neer",zip:""},{label:"Neerijnen",name:"Neerijnen",zip:""},{label:"Neeritter",name:"Neeritter",zip:""},{label:"Neerkant",name:"Neerkant",zip:""},{label:"Neerlangel",name:"Neerlangel",zip:""},{label:"Neerloon",name:"Neerloon",zip:""},{label:"Nes (Heerenveen)",name:"Nes (Heerenveen)",zip:""},{label:"Nes (Ameland)",name:"Nes (Ameland)",zip:""},{label:"Nes (Dongeradeel)",name:"Nes (Dongeradeel)",zip:""},{label:"Netersel",name:"Netersel",zip:""},{label:"Netterden",name:"Netterden",zip:""},{label:"Niawier",name:"Niawier",zip:""},{label:"Nibbixwoud",name:"Nibbixwoud",zip:""},{label:"Niebert",name:"Niebert",zip:""},{label:"Niehove",name:"Niehove",zip:""},{label:"Niekerk (Grootegast)",name:"Niekerk (Grootegast)",zip:""},{label:"Niekerk (De Marne)",name:"Niekerk (De Marne)",zip:""},{label:"Nietap",name:"Nietap",zip:""},{label:"Nieuw Annerveen",name:"Nieuw Annerveen",zip:""},{label:"Nieuw Beerta",name:"Nieuw Beerta",zip:""},{label:"Nieuw- en Sint Joosland",name:"Nieuw- en Sint Joosland",zip:""},{label:"Nieuw Heeten",name:"Nieuw Heeten",zip:""},{label:"Nieuw Namen",name:"Nieuw Namen",zip:""},{label:"Nieuw Scheemda",name:"Nieuw Scheemda",zip:""},{label:"Nieuwaal",name:"Nieuwaal",zip:""},{label:"Nieuw-Amsterdam",name:"Nieuw-Amsterdam",zip:""},{label:"Nieuw-Balinge",name:"Nieuw-Balinge",zip:""},{label:"Nieuw-Beijerland",name:"Nieuw-Beijerland",zip:""},{label:"Nieuw-Buinen",name:"Nieuw-Buinen",zip:""},{label:"Nieuw-Dordrecht",name:"Nieuw-Dordrecht",zip:""},{label:"Nieuwdorp",name:"Nieuwdorp",zip:""},{label:"Nieuwe Niedorp",name:"Nieuwe Niedorp",zip:""},{label:"Nieuwe Pekela",name:"Nieuwe Pekela",zip:""},{label:"Nieuwe Wetering",name:"Nieuwe Wetering",zip:""},{label:"Nieuwebrug",name:"Nieuwebrug",zip:""},{label:"Nieuwediep",name:"Nieuwediep",zip:""},{label:"Nieuwegein",name:"Nieuwegein",zip:""},{label:"Nieuwehorne",name:"Nieuwehorne",zip:""},{label:"Nieuwendijk",name:"Nieuwendijk",zip:""},{label:"Nieuwer Ter Aa",name:"Nieuwer Ter Aa",zip:""},{label:"Nieuwerbrug aan den Rijn",name:"Nieuwerbrug aan den Rijn",zip:""},{label:"Nieuwerkerk",name:"Nieuwerkerk",zip:""},{label:"Nieuwerkerk aan den IJssel",name:"Nieuwerkerk aan den IJssel",zip:""},{label:"Nieuweroord (Hoogeveen)",name:"Nieuweroord (Hoogeveen)",zip:""},{label:"Nieuweroord (Midden-Drenthe)",name:"Nieuweroord (Midden-Drenthe)",zip:""},{label:"Nieuwersluis",name:"Nieuwersluis",zip:""},{label:"Nieuweschoot",name:"Nieuweschoot",zip:""},{label:"Nieuwe-Tonge",name:"Nieuwe-Tonge",zip:""},{label:"Nieuwkoop",name:"Nieuwkoop",zip:""},{label:"Nieuwkuijk",name:"Nieuwkuijk",zip:""},{label:"Nieuwland",name:"Nieuwland",zip:""},{label:"Nieuwlande",name:"Nieuwlande",zip:""},{label:"Nieuwlande Coevorden",name:"Nieuwlande Coevorden",zip:""},{label:"Nieuw-Lekkerland",name:"Nieuw-Lekkerland",zip:""},{label:"Nieuwleusen",name:"Nieuwleusen",zip:""},{label:"Nieuwolda",name:"Nieuwolda",zip:""},{label:"Nieuwpoort",name:"Nieuwpoort",zip:""},{label:"Nieuw-Roden",name:"Nieuw-Roden",zip:""},{label:"Nieuw-Schoonebeek",name:"Nieuw-Schoonebeek",zip:""},{label:"Nieuwstadt",name:"Nieuwstadt",zip:""},{label:"Nieuwveen",name:"Nieuwveen",zip:""},{label:"Nieuw-Vennep",name:"Nieuw-Vennep",zip:""},{label:"Nieuwvliet",name:"Nieuwvliet",zip:""},{label:"Nieuw-Vossemeer",name:"Nieuw-Vossemeer",zip:""},{label:"Nieuw-Weerdinge",name:"Nieuw-Weerdinge",zip:""},{label:"Niezijl",name:"Niezijl",zip:""},{label:"Niftrik",name:"Niftrik",zip:""},{label:"Nigtevecht",name:"Nigtevecht",zip:""},{label:"Nij Altoenae",name:"Nij Altoenae",zip:""},{label:"Nij Beets",name:"Nij Beets",zip:""},{label:"Nijbroek",name:"Nijbroek",zip:""},{label:"Nijeberkoop",name:"Nijeberkoop",zip:""},{label:"Nijega",name:"Nijega",zip:""},{label:"Nijehaske",name:"Nijehaske",zip:""},{label:"Nijeholtpade",name:"Nijeholtpade",zip:""},{label:"Nijeholtwolde",name:"Nijeholtwolde",zip:""},{label:"Nijelamer",name:"Nijelamer",zip:""},{label:"Nijemirdum",name:"Nijemirdum",zip:""},{label:"Nijensleek",name:"Nijensleek",zip:""},{label:"Nijetrijne",name:"Nijetrijne",zip:""},{label:"Nijeveen",name:"Nijeveen",zip:""},{label:"Nijhuizum",name:"Nijhuizum",zip:""},{label:"Nijkerk",name:"Nijkerk",zip:""},{label:"Nijkerkerveen",name:"Nijkerkerveen",zip:""},{label:"Nijland",name:"Nijland",zip:""},{label:"Nijlande",name:"Nijlande",zip:""},{label:"Nijmegen",name:"Nijmegen",zip:""},{label:"Nijverdal",name:"Nijverdal",zip:""},{label:"Nispen",name:"Nispen",zip:""},{label:"Nisse",name:"Nisse",zip:""},{label:"Nistelrode",name:"Nistelrode",zip:""},{label:"Noardburgum",name:"Noardburgum",zip:""},{label:"Nooitgedacht",name:"Nooitgedacht",zip:""},{label:"Noorbeek",name:"Noorbeek",zip:""},{label:"Noordbeemster",name:"Noordbeemster",zip:""},{label:"Noordbroek",name:"Noordbroek",zip:""},{label:"Noordeinde (Alkmaar)",name:"Noordeinde (Alkmaar)",zip:""},{label:"Noordeinde (Oldebroek)",name:"Noordeinde (Oldebroek)",zip:""},{label:"Noordeloos",name:"Noordeloos",zip:""},{label:"Noorden",name:"Noorden",zip:""},{label:"Noordgouwe",name:"Noordgouwe",zip:""},{label:"Noordhoek",name:"Noordhoek",zip:""},{label:"Noordhorn",name:"Noordhorn",zip:""},{label:"Noordlaren",name:"Noordlaren",zip:""},{label:"Noord-Scharwoude",name:"Noord-Scharwoude",zip:""},{label:"Noordscheschut",name:"Noordscheschut",zip:""},{label:"Noord-Sleen",name:"Noord-Sleen",zip:""},{label:"Noordwelle",name:"Noordwelle",zip:""},{label:"Noordwijk (Marum)",name:"Noordwijk (Marum)",zip:""},{label:"Noordwijk (Noordwijk)",name:"Noordwijk (Noordwijk)",zip:""},{label:"Noordwijkerhout",name:"Noordwijkerhout",zip:""},{label:"Noordwolde (Bedum)",name:"Noordwolde (Bedum)",zip:""},{label:"Noordwolde (Weststellingwerf)",name:"Noordwolde (Weststellingwerf)",zip:""},{label:"Nootdorp",name:"Nootdorp",zip:""},{label:"Norg",name:"Norg",zip:""},{label:"Notter",name:"Notter",zip:""},{label:"Nuenen",name:"Nuenen",zip:""},{label:"Nuis",name:"Nuis",zip:""},{label:"Nuland",name:"Nuland",zip:""},{label:"Numansdorp",name:"Numansdorp",zip:""},{label:"Nunhem",name:"Nunhem",zip:""},{label:"Nunspeet",name:"Nunspeet",zip:""},{label:"Nuth",name:"Nuth",zip:""},{label:"Nutter",name:"Nutter",zip:""},{label:"Obbicht",name:"Obbicht",zip:""},{label:"Obdam",name:"Obdam",zip:""},{label:"Ochten",name:"Ochten",zip:""},{label:"Odijk",name:"Odijk",zip:""},{label:"Odiliapeel",name:"Odiliapeel",zip:""},{label:"Odoorn",name:"Odoorn",zip:""},{label:"Odoornerveen",name:"Odoornerveen",zip:""},{label:"Oeffelt",name:"Oeffelt",zip:""},{label:"Oegstgeest",name:"Oegstgeest",zip:""},{label:"Oene",name:"Oene",zip:""},{label:"Oentsjerk",name:"Oentsjerk",zip:""},{label:"Den Oever",name:"Den Oever",zip:""},{label:"Offingawier",name:"Offingawier",zip:""},{label:"Ohé en Laak",name:"Ohé en Laak",zip:""},{label:"Oijen",name:"Oijen",zip:""},{label:"Oirlo",name:"Oirlo",zip:""},{label:"Oirsbeek",name:"Oirsbeek",zip:""},{label:"Oirschot",name:"Oirschot",zip:""},{label:"Oisterwijk",name:"Oisterwijk",zip:""},{label:"Okkenbroek",name:"Okkenbroek",zip:""},{label:"Olburgen",name:"Olburgen",zip:""},{label:"Oldeberkoop",name:"Oldeberkoop",zip:""},{label:"Oldebroek",name:"Oldebroek",zip:""},{label:"Oldeholtpade",name:"Oldeholtpade",zip:""},{label:"Oldeholtwolde",name:"Oldeholtwolde",zip:""},{label:"Oldehove",name:"Oldehove",zip:""},{label:"Oldekerk",name:"Oldekerk",zip:""},{label:"Oldelamer",name:"Oldelamer",zip:""},{label:"Oldemarkt",name:"Oldemarkt",zip:""},{label:"Oldenzaal",name:"Oldenzaal",zip:""},{label:"Oldenzijl",name:"Oldenzijl",zip:""},{label:"Oldeouwer",name:"Oldeouwer",zip:""},{label:"Oldetrijne",name:"Oldetrijne",zip:""},{label:"Olst",name:"Olst",zip:""},{label:"Olterterp",name:"Olterterp",zip:""},{label:"Ommel",name:"Ommel",zip:""},{label:"Ommen",name:"Ommen",zip:""},{label:"Ommeren",name:"Ommeren",zip:""},{label:"Onderdendam",name:"Onderdendam",zip:""},{label:"Onna",name:"Onna",zip:""},{label:"Onnen",name:"Onnen",zip:""},{label:"Onstwedde",name:"Onstwedde",zip:""},{label:"Ooij",name:"Ooij",zip:""},{label:"Ooltgensplaat",name:"Ooltgensplaat",zip:""},{label:"Oost West en Middelbeers",name:"Oost West en Middelbeers",zip:""},{label:"Oostburg",name:"Oostburg",zip:""},{label:"Oostdijk",name:"Oostdijk",zip:""},{label:"Oosteind",name:"Oosteind",zip:""},{label:"Oosterbeek",name:"Oosterbeek",zip:""},{label:"Oosterbierum",name:"Oosterbierum",zip:""},{label:"Oosterblokker",name:"Oosterblokker",zip:""},{label:"Oosterend (Terschelling)",name:"Oosterend (Terschelling)",zip:""},{label:"Oosterend (Texel)",name:"Oosterend (Texel)",zip:""},{label:"Oosterhesselen",name:"Oosterhesselen",zip:""},{label:"Oosterhout (Overbetuwe)",name:"Oosterhout (Overbetuwe)",zip:""},{label:"Oosterhout (Oosterhout)",name:"Oosterhout (Oosterhout)",zip:""},{label:"Oosterland",name:"Oosterland",zip:""},{label:"Oosterleek",name:"Oosterleek",zip:""},{label:"Oosternieland",name:"Oosternieland",zip:""},{label:"Oosternijkerk",name:"Oosternijkerk",zip:""},{label:"Oosterstreek",name:"Oosterstreek",zip:""},{label:"Oosterwijk",name:"Oosterwijk",zip:""},{label:"Oosterwijtwerd",name:"Oosterwijtwerd",zip:""},{label:"Oosterwolde (Ooststellingwerf)",name:"Oosterwolde (Ooststellingwerf)",zip:""},{label:"Oosterwolde (Oldebroek)",name:"Oosterwolde (Oldebroek)",zip:""},{label:"Oosterzee",name:"Oosterzee",zip:""},{label:"Oost-Graftdijk",name:"Oost-Graftdijk",zip:""},{label:"Oosthem",name:"Oosthem",zip:""},{label:"Oosthuizen",name:"Oosthuizen",zip:""},{label:"Oostkapelle",name:"Oostkapelle",zip:""},{label:"Oostknollendam",name:"Oostknollendam",zip:""},{label:"Oostrum (Venray)",name:"Oostrum (Venray)",zip:""},{label:"Oostrum (Dongeradeel)",name:"Oostrum (Dongeradeel)",zip:""},{label:"Oost-Souburg",name:"Oost-Souburg",zip:""},{label:"Oostvoorne",name:"Oostvoorne",zip:""},{label:"Oostwold (Oldambt)",name:"Oostwold (Oldambt)",zip:""},{label:"Oostwold (Leek)",name:"Oostwold (Leek)",zip:""},{label:"Oostwoud",name:"Oostwoud",zip:""},{label:"Oostzaan",name:"Oostzaan",zip:""},{label:"Ootmarsum",name:"Ootmarsum",zip:""},{label:"Opeinde",name:"Opeinde",zip:""},{label:"Opende",name:"Opende",zip:""},{label:"Ophemert",name:"Ophemert",zip:""},{label:"Opheusden",name:"Opheusden",zip:""},{label:"Opijnen",name:"Opijnen",zip:""},{label:"Oploo",name:"Oploo",zip:""},{label:"Opmeer",name:"Opmeer",zip:""},{label:"Oppenhuizen",name:"Oppenhuizen",zip:""},{label:"Opperdoes",name:"Opperdoes",zip:""},{label:"Oranje",name:"Oranje",zip:""},{label:"Oranjewoud",name:"Oranjewoud",zip:""},{label:"Orvelte",name:"Orvelte",zip:""},{label:"Ospel",name:"Ospel",zip:""},{label:"Oss",name:"Oss",zip:""},{label:"Ossendrecht",name:"Ossendrecht",zip:""},{label:"Ossenisse",name:"Ossenisse",zip:""},{label:"Ossenwaard",name:"Ossenwaard",zip:""},{label:"Ossenzijl",name:"Ossenzijl",zip:""},{label:"Oterleek",name:"Oterleek",zip:""},{label:"Otterlo",name:"Otterlo",zip:""},{label:"Ottersum",name:"Ottersum",zip:""},{label:"Ottoland",name:"Ottoland",zip:""},{label:"Oud Ade",name:"Oud Ade",zip:""},{label:"Oud Annerveen",name:"Oud Annerveen",zip:""},{label:"Oud Gastel",name:"Oud Gastel",zip:""},{label:"Oud Ootmarsum",name:"Oud Ootmarsum",zip:""},{label:"Oud Zuilen",name:"Oud Zuilen",zip:""},{label:"Oud-Alblas",name:"Oud-Alblas",zip:""},{label:"Oud-Beijerland",name:"Oud-Beijerland",zip:""},{label:"Ouddorp",name:"Ouddorp",zip:""},{label:"Oude Meer",name:"Oude Meer",zip:""},{label:"Oude Niedorp",name:"Oude Niedorp",zip:""},{label:"Oude Pekela",name:"Oude Pekela",zip:""},{label:"Oude Wetering",name:"Oude Wetering",zip:""},{label:"Oude Willem",name:"Oude Willem",zip:""},{label:"Oudebildtzijl",name:"Oudebildtzijl",zip:""},{label:"Oudega (Smallingerland)",name:"Oudega (Smallingerland)",zip:""},{label:"Oudega (De Fryske Marren)",name:"Oudega (De Fryske Marren)",zip:""},{label:"Oudega (Súdwest-Fryslân)",name:"Oudega (Súdwest-Fryslân)",zip:""},{label:"Oudehaske",name:"Oudehaske",zip:""},{label:"Oudehorne",name:"Oudehorne",zip:""},{label:"Oudelande",name:"Oudelande",zip:""},{label:"Oudemirdum",name:"Oudemirdum",zip:""},{label:"Oudemolen (Moerdijk)",name:"Oudemolen (Moerdijk)",zip:""},{label:"Oudemolen (Tynaarlo)",name:"Oudemolen (Tynaarlo)",zip:""},{label:"Oudenbosch",name:"Oudenbosch",zip:""},{label:"Oudendijk",name:"Oudendijk",zip:""},{label:"Oudenhoorn",name:"Oudenhoorn",zip:""},{label:"Ouderkerk aan de Amstel",name:"Ouderkerk aan de Amstel",zip:""},{label:"Ouderkerk aan den IJssel",name:"Ouderkerk aan den IJssel",zip:""},{label:"Oudeschans",name:"Oudeschans",zip:""},{label:"Oudeschild",name:"Oudeschild",zip:""},{label:"Oudeschip",name:"Oudeschip",zip:""},{label:"Oudeschoot",name:"Oudeschoot",zip:""},{label:"Oudesluis",name:"Oudesluis",zip:""},{label:"Oude-Tonge",name:"Oude-Tonge",zip:""},{label:"Oudewater",name:"Oudewater",zip:""},{label:"Oudezijl",name:"Oudezijl",zip:""},{label:"Oudheusden",name:"Oudheusden",zip:""},{label:"Oudkarspel (Schagen)",name:"Oudkarspel (Schagen)",zip:""},{label:"Oudkarspel (Langedijk)",name:"Oudkarspel (Langedijk)",zip:""},{label:"Oudorp",name:"Oudorp",zip:""},{label:"Oud-Vossemeer",name:"Oud-Vossemeer",zip:""},{label:"Oudwoude",name:"Oudwoude",zip:""},{label:"Ouwerkerk",name:"Ouwerkerk",zip:""},{label:"Ouwsterhaule",name:"Ouwsterhaule",zip:""},{label:"Ouwster-Nijega",name:"Ouwster-Nijega",zip:""},{label:"Overasselt",name:"Overasselt",zip:""},{label:"Overberg",name:"Overberg",zip:""},{label:"Overdinkel",name:"Overdinkel",zip:""},{label:"Overlangel",name:"Overlangel",zip:""},{label:"Overloon",name:"Overloon",zip:""},{label:"Overschild",name:"Overschild",zip:""},{label:"Overslag",name:"Overslag",zip:""},{label:"Overveen",name:"Overveen",zip:""},{label:"Ovezande",name:"Ovezande",zip:""},{label:"Paasloo",name:"Paasloo",zip:""},{label:"Paesens",name:"Paesens",zip:""},{label:"Pannerden",name:"Pannerden",zip:""},{label:"Panningen",name:"Panningen",zip:""},{label:"Papekop",name:"Papekop",zip:""},{label:"Papendrecht",name:"Papendrecht",zip:""},{label:"Papenhoven",name:"Papenhoven",zip:""},{label:"Papenvoort",name:"Papenvoort",zip:""},{label:"Parrega",name:"Parrega",zip:""},{label:"Paterswolde",name:"Paterswolde",zip:""},{label:"Peest",name:"Peest",zip:""},{label:"Peins",name:"Peins",zip:""},{label:"Peize",name:"Peize",zip:""},{label:"Peperga",name:"Peperga",zip:""},{label:"Pernis Rotterdam",name:"Pernis Rotterdam",zip:""},{label:"Persingen",name:"Persingen",zip:""},{label:"Pesse (Westerveld)",name:"Pesse (Westerveld)",zip:""},{label:"Pesse (Hoogeveen)",name:"Pesse (Hoogeveen)",zip:""},{label:"Petten",name:"Petten",zip:""},{label:"Philippine",name:"Philippine",zip:""},{label:"Piaam",name:"Piaam",zip:""},{label:"Piershil",name:"Piershil",zip:""},{label:"Pieterburen",name:"Pieterburen",zip:""},{label:"Pietersbierum",name:"Pietersbierum",zip:""},{label:"Pieterzijl",name:"Pieterzijl",zip:""},{label:"Pijnacker",name:"Pijnacker",zip:""},{label:"Pingjum",name:"Pingjum",zip:""},{label:"Plasmolen",name:"Plasmolen",zip:""},{label:"Poederoijen",name:"Poederoijen",zip:""},{label:"Poeldijk",name:"Poeldijk",zip:""},{label:"De Pol",name:"De Pol",zip:""},{label:"Polsbroek",name:"Polsbroek",zip:""},{label:"Poortugaal",name:"Poortugaal",zip:""},{label:"Poortvliet",name:"Poortvliet",zip:""},{label:"Poppenwier",name:"Poppenwier",zip:""},{label:"Ten Post",name:"Ten Post",zip:""},{label:"Posterholt",name:"Posterholt",zip:""},{label:"Prinsenbeek",name:"Prinsenbeek",zip:""},{label:"Puiflijk",name:"Puiflijk",zip:""},{label:"De Punt",name:"De Punt",zip:""},{ label:"Punthorst",name:"Punthorst",zip:""},{label:"Purmer (Edam-Volendam)",name:"Purmer (Edam-Volendam)",zip:""},{label:"Purmer (Waterland)",name:"Purmer (Waterland)",zip:""},{label:"Purmerend",name:"Purmerend",zip:""},{label:"Purmerland",name:"Purmerland",zip:""},{label:"Puth",name:"Puth",zip:""},{label:"Putte",name:"Putte",zip:""},{label:"Putten",name:"Putten",zip:""},{label:"Puttershoek",name:"Puttershoek",zip:""},{label:"Raalte",name:"Raalte",zip:""},{label:"Raamsdonk",name:"Raamsdonk",zip:""},{label:"Raamsdonksveer",name:"Raamsdonksveer",zip:""},{label:"Raard",name:"Raard",zip:""},{label:"Radewijk",name:"Radewijk",zip:""},{label:"Radio Kootwijk",name:"Radio Kootwijk",zip:""},{label:"Raerd",name:"Raerd",zip:""},{label:"Randwijk",name:"Randwijk",zip:""},{label:"Ransdaal",name:"Ransdaal",zip:""},{label:"Rasquert",name:"Rasquert",zip:""},{label:"Ravenstein",name:"Ravenstein",zip:""},{label:"Ravenswaaij",name:"Ravenswaaij",zip:""},{label:"Ravenswoud",name:"Ravenswoud",zip:""},{label:"Readtsjerk",name:"Readtsjerk",zip:""},{label:"Reahûs",name:"Reahûs",zip:""},{label:"Reduzum",name:"Reduzum",zip:""},{label:"Reek",name:"Reek",zip:""},{label:"Reeuwijk",name:"Reeuwijk",zip:""},{label:"Reijmerstok",name:"Reijmerstok",zip:""},{label:"Reitsum",name:"Reitsum",zip:""},{label:"Rekken",name:"Rekken",zip:""},{label:"Renesse",name:"Renesse",zip:""},{label:"Renkum",name:"Renkum",zip:""},{label:"Renswoude",name:"Renswoude",zip:""},{label:"Ressen",name:"Ressen",zip:""},{label:"Retranchement",name:"Retranchement",zip:""},{label:"Reusel",name:"Reusel",zip:""},{label:"Reutum",name:"Reutum",zip:""},{label:"Reuver",name:"Reuver",zip:""},{label:"Rha",name:"Rha",zip:""},{label:"Rheden",name:"Rheden",zip:""},{label:"Rhee",name:"Rhee",zip:""},{label:"Rheeze",name:"Rheeze",zip:""},{label:"Rheezerveen",name:"Rheezerveen",zip:""},{label:"Rhenen",name:"Rhenen",zip:""},{label:"Rhenoy",name:"Rhenoy",zip:""},{label:"Rhoon",name:"Rhoon",zip:""},{label:"Ridderkerk",name:"Ridderkerk",zip:""},{label:"Ried",name:"Ried",zip:""},{label:"Riel",name:"Riel",zip:""},{label:"Rien",name:"Rien",zip:""},{label:"Riethoven",name:"Riethoven",zip:""},{label:"Rietmolen",name:"Rietmolen",zip:""},{label:"Rijen",name:"Rijen",zip:""},{label:"Rijkevoort",name:"Rijkevoort",zip:""},{label:"Rijkevoort-De Walsert",name:"Rijkevoort-De Walsert",zip:""},{label:"Rijnsaterwoude",name:"Rijnsaterwoude",zip:""},{label:"Rijnsburg",name:"Rijnsburg",zip:""},{label:"De Rijp",name:"De Rijp",zip:""},{label:"Rijpwetering",name:"Rijpwetering",zip:""},{label:"Rijs",name:"Rijs",zip:""},{label:"Rijsbergen",name:"Rijsbergen",zip:""},{label:"Rijsenhout",name:"Rijsenhout",zip:""},{label:"Rijssen",name:"Rijssen",zip:""},{label:"Rijswijk (Rijswijk)",name:"Rijswijk (Rijswijk)",zip:""},{label:"Rijswijk (Buren)",name:"Rijswijk (Buren)",zip:""},{label:"Rijswijk (Woudrichem)",name:"Rijswijk (Woudrichem)",zip:""},{label:"Rilland",name:"Rilland",zip:""},{label:"Rinsumageast",name:"Rinsumageast",zip:""},{label:"De Rips",name:"De Rips",zip:""},{label:"Ritthem",name:"Ritthem",zip:""},{label:"Rockanje",name:"Rockanje",zip:""},{label:"Roden",name:"Roden",zip:""},{label:"Roderesch",name:"Roderesch",zip:""},{label:"Roderwolde",name:"Roderwolde",zip:""},{label:"Roelofarendsveen",name:"Roelofarendsveen",zip:""},{label:"Roermond",name:"Roermond",zip:""},{label:"Rogat",name:"Rogat",zip:""},{label:"Roggel",name:"Roggel",zip:""},{label:"Rohel",name:"Rohel",zip:""},{label:"Rolde",name:"Rolde",zip:""},{label:"Roodeschool",name:"Roodeschool",zip:""},{label:"Roosendaal",name:"Roosendaal",zip:""},{label:"Roosteren",name:"Roosteren",zip:""},{label:"Rosmalen",name:"Rosmalen",zip:""},{label:"Rossum (Dinkelland)",name:"Rossum (Dinkelland)",zip:""},{label:"Rossum (Maasdriel)",name:"Rossum (Maasdriel)",zip:""},{label:"Roswinkel",name:"Roswinkel",zip:""},{label:"Rotstergaast",name:"Rotstergaast",zip:""},{label:"Rotsterhaule",name:"Rotsterhaule",zip:""},{label:"Rotterdam",name:"Rotterdam",zip:""},{label:"Rotterdam-Albrandswaard",name:"Rotterdam-Albrandswaard",zip:""},{label:"Rottevalle",name:"Rottevalle",zip:""},{label:"Rottum (Eemsmond)",name:"Rottum (Eemsmond)",zip:""},{label:"Rottum (De Fryske Marren)",name:"Rottum (De Fryske Marren)",zip:""},{label:"Rouveen",name:"Rouveen",zip:""},{label:"Rozenburg (Rotterdam)",name:"Rozenburg (Rotterdam)",zip:""},{label:"Rozenburg (Haarlemmermeer)",name:"Rozenburg (Haarlemmermeer)",zip:""},{label:"Rozendaal",name:"Rozendaal",zip:""},{label:"Rucphen",name:"Rucphen",zip:""},{label:"Ruigahuizen",name:"Ruigahuizen",zip:""},{label:"Ruinen (Westerveld)",name:"Ruinen (Westerveld)",zip:""},{label:"Ruinen (De Wolden)",name:"Ruinen (De Wolden)",zip:""},{label:"Ruinerwold",name:"Ruinerwold",zip:""},{label:"Rumpt",name:"Rumpt",zip:""},{label:"Rutten",name:"Rutten",zip:""},{label:"Ruurlo",name:"Ruurlo",zip:""},{label:"Ryptsjerk",name:"Ryptsjerk",zip:""},{label:"Saaksum",name:"Saaksum",zip:""},{label:"Saasveld",name:"Saasveld",zip:""},{label:"Saaxumhuizen",name:"Saaxumhuizen",zip:""},{label:"Sambeek",name:"Sambeek",zip:""},{label:"Sandfirden",name:"Sandfirden",zip:""},{label:"Santpoort-Noord",name:"Santpoort-Noord",zip:""},{label:"Santpoort-Zuid",name:"Santpoort-Zuid",zip:""},{label:"Sappemeer",name:"Sappemeer",zip:""},{label:"Sas van Gent",name:"Sas van Gent",zip:""},{label:"Sassenheim",name:"Sassenheim",zip:""},{label:"Sauwerd",name:"Sauwerd",zip:""},{label:"Schagen",name:"Schagen",zip:""},{label:"Schagerbrug",name:"Schagerbrug",zip:""},{label:"Schaijk",name:"Schaijk",zip:""},{label:"Schalkhaar",name:"Schalkhaar",zip:""},{label:"Schalkwijk",name:"Schalkwijk",zip:""},{label:"Schalsum",name:"Schalsum",zip:""},{label:"Schardam",name:"Schardam",zip:""},{label:"Scharendijke",name:"Scharendijke",zip:""},{label:"Scharmer",name:"Scharmer",zip:""},{label:"Scharnegoutum",name:"Scharnegoutum",zip:""},{label:"Scharsterbrug",name:"Scharsterbrug",zip:""},{label:"Scharwoude",name:"Scharwoude",zip:""},{label:"Scheemda",name:"Scheemda",zip:""},{label:"Scheerwolde",name:"Scheerwolde",zip:""},{label:"Schellinkhout",name:"Schellinkhout",zip:""},{label:"Schelluinen",name:"Schelluinen",zip:""},{label:"Schermerhorn",name:"Schermerhorn",zip:""},{label:"Scherpenisse",name:"Scherpenisse",zip:""},{label:"Scherpenzeel (Weststellingwerf)",name:"Scherpenzeel (Weststellingwerf)",zip:""},{label:"Scherpenzeel (Scherpenzeel)",name:"Scherpenzeel (Scherpenzeel)",zip:""},{label:"Schettens",name:"Schettens",zip:""},{label:"Scheulder",name:"Scheulder",zip:""},{label:"Schiedam",name:"Schiedam",zip:""},{label:"Schiermonnikoog",name:"Schiermonnikoog",zip:""},{label:"Schijf",name:"Schijf",zip:""},{label:"Schijndel",name:"Schijndel",zip:""},{label:"Schildwolde",name:"Schildwolde",zip:""},{label:"Schimmert",name:"Schimmert",zip:""},{label:"Schin op Geul",name:"Schin op Geul",zip:""},{label:"Schinnen",name:"Schinnen",zip:""},{label:"Schinveld",name:"Schinveld",zip:""},{label:"Schipborg",name:"Schipborg",zip:""},{label:"Schiphol",name:"Schiphol",zip:""},{label:"Schiphol-Rijk",name:"Schiphol-Rijk",zip:""},{label:"De Schiphorst",name:"De Schiphorst",zip:""},{label:"Schipluiden",name:"Schipluiden",zip:""},{label:"Schokland",name:"Schokland",zip:""},{label:"Schoondijke",name:"Schoondijke",zip:""},{label:"Schoonebeek",name:"Schoonebeek",zip:""},{label:"Schoonhoven",name:"Schoonhoven",zip:""},{label:"Schoonloo",name:"Schoonloo",zip:""},{label:"Schoonoord",name:"Schoonoord",zip:""},{label:"Schoonrewoerd",name:"Schoonrewoerd",zip:""},{label:"Schoorl",name:"Schoorl",zip:""},{label:"Schore",name:"Schore",zip:""},{label:"Schouwerzijl",name:"Schouwerzijl",zip:""},{label:"Schraard",name:"Schraard",zip:""},{label:"Schuinesloot",name:"Schuinesloot",zip:""},{label:"Sebaldeburen",name:"Sebaldeburen",zip:""},{label:"Sellingen",name:"Sellingen",zip:""},{label:"Serooskerke (Schouwen-Duiveland)",name:"Serooskerke (Schouwen-Duiveland)",zip:""},{label:"Serooskerke (Veere)",name:"Serooskerke (Veere)",zip:""},{label:"Sevenum",name:"Sevenum",zip:""},{label:"Sexbierum",name:"Sexbierum",zip:""},{label:"Sibculo (Twenterand)",name:"Sibculo (Twenterand)",zip:""},{label:"Sibculo (Hardenberg)",name:"Sibculo (Hardenberg)",zip:""},{label:"Sibrandabuorren",name:"Sibrandabuorren",zip:""},{label:"Sibrandahûs",name:"Sibrandahûs",zip:""},{label:"Siddeburen",name:"Siddeburen",zip:""},{label:"Siebengewald",name:"Siebengewald",zip:""},{label:"Siegerswoude",name:"Siegerswoude",zip:""},{label:"Sijbekarspel",name:"Sijbekarspel",zip:""},{label:"Silvolde",name:"Silvolde",zip:""},{label:"Simonshaven",name:"Simonshaven",zip:""},{label:"Simpelveld",name:"Simpelveld",zip:""},{label:"Sinderen",name:"Sinderen",zip:""},{label:"Sint Agatha",name:"Sint Agatha",zip:""},{label:"Sint Annen",name:"Sint Annen",zip:""},{label:"Sint Anthonis",name:"Sint Anthonis",zip:""},{label:"Sint Geertruid",name:"Sint Geertruid",zip:""},{label:"Sint Hubert",name:"Sint Hubert",zip:""},{label:"Sint Jansklooster",name:"Sint Jansklooster",zip:""},{label:"Sint Jansteen",name:"Sint Jansteen",zip:""},{label:"Sint Joost",name:"Sint Joost",zip:""},{label:"Sint Kruis",name:"Sint Kruis",zip:""},{label:"Sint Maarten",name:"Sint Maarten",zip:""},{label:"Sint Maartensbrug",name:"Sint Maartensbrug",zip:""},{label:"Sint Maartensvlotbrug",name:"Sint Maartensvlotbrug",zip:""},{label:"Sint Nicolaasga",name:"Sint Nicolaasga",zip:""},{label:"Sint Odiliënberg",name:"Sint Odiliënberg",zip:""},{label:"Sint Pancras",name:"Sint Pancras",zip:""},{label:"Sint Philipsland",name:"Sint Philipsland",zip:""},{label:"Sint Willebrord",name:"Sint Willebrord",zip:""},{label:"Sint-Annaland",name:"Sint-Annaland",zip:""},{label:"Sint-Annaparochie",name:"Sint-Annaparochie",zip:""},{label:"Sint-Jacobiparochie",name:"Sint-Jacobiparochie",zip:""},{label:"Sintjohannesga",name:"Sintjohannesga",zip:""},{label:"Sint-Maartensdijk",name:"Sint-Maartensdijk",zip:""},{label:"Sint-Michielsgestel",name:"Sint-Michielsgestel",zip:""},{label:"Sint-Oedenrode",name:"Sint-Oedenrode",zip:""},{label:"Sirjansland",name:"Sirjansland",zip:""},{label:"Sittard",name:"Sittard",zip:""},{label:"Skingen",name:"Skingen",zip:""},{label:"Slagharen",name:"Slagharen",zip:""},{label:"Slappeterp",name:"Slappeterp",zip:""},{label:"Sleen",name:"Sleen",zip:""},{label:"Sleeuwijk",name:"Sleeuwijk",zip:""},{label:"Slenaken",name:"Slenaken",zip:""},{label:"Sliedrecht",name:"Sliedrecht",zip:""},{label:"Slijkenburg",name:"Slijkenburg",zip:""},{label:"Slijk-Ewijk",name:"Slijk-Ewijk",zip:""},{label:"Slochteren",name:"Slochteren",zip:""},{label:"Slootdorp",name:"Slootdorp",zip:""},{label:"Sloten",name:"Sloten",zip:""},{label:"Sluis",name:"Sluis",zip:""},{label:"Sluiskil",name:"Sluiskil",zip:""},{label:"Smakt",name:"Smakt",zip:""},{label:"Smalle Ee",name:"Smalle Ee",zip:""},{label:"Smallebrugge",name:"Smallebrugge",zip:""},{label:"Smilde",name:"Smilde",zip:""},{label:"Snakkerburen",name:"Snakkerburen",zip:""},{label:"Sneek",name:"Sneek",zip:""},{label:"Snelrewaard",name:"Snelrewaard",zip:""},{label:"Snikzwaag",name:"Snikzwaag",zip:""},{label:"Soerendonk",name:"Soerendonk",zip:""},{label:"Soest",name:"Soest",zip:""},{label:"Soesterberg",name:"Soesterberg",zip:""},{label:"Someren",name:"Someren",zip:""},{label:"Sommelsdijk",name:"Sommelsdijk",zip:""},{label:"Son en Breugel",name:"Son en Breugel",zip:""},{label:"Sondel",name:"Sondel",zip:""},{label:"Sonnega",name:"Sonnega",zip:""},{label:"Spaarndam (Haarlemmerliede en Spaarnwoude)",name:"Spaarndam (Haarlemmerliede en Spaarnwoude)",zip:""},{label:"Spaarndam (Haarlem)",name:"Spaarndam (Haarlem)",zip:""},{label:"Spanbroek",name:"Spanbroek",zip:""},{label:"Spanga",name:"Spanga",zip:""},{label:"Spankeren",name:"Spankeren",zip:""},{label:"Spannum",name:"Spannum",zip:""},{label:"Spaubeek",name:"Spaubeek",zip:""},{label:"Spier (Midden-Drenthe)",name:"Spier (Midden-Drenthe)",zip:""},{label:"Spier (Westerveld)",name:"Spier (Westerveld)",zip:""},{label:"Spierdijk",name:"Spierdijk",zip:""},{label:"Spijk (Zevenaar)",name:"Spijk (Zevenaar)",zip:""},{label:"Spijk (Delfzijl)",name:"Spijk (Delfzijl)",zip:""},{label:"Spijk (Lingewaal)",name:"Spijk (Lingewaal)",zip:""},{label:"Spijkenisse",name:"Spijkenisse",zip:""},{label:"Spijkerboor (Aa en Hunze)",name:"Spijkerboor (Aa en Hunze)",zip:""},{label:"Spijkerboor (Wormerland)",name:"Spijkerboor (Wormerland)",zip:""},{label:"Sprang-Capelle",name:"Sprang-Capelle",zip:""},{label:"Sprundel",name:"Sprundel",zip:""},{label:"Spui",name:"Spui",zip:""},{label:"Stad aan 't Haringvliet",name:"Stad aan 't Haringvliet",zip:""},{label:"Stadskanaal",name:"Stadskanaal",zip:""},{label:"Stampersgat",name:"Stampersgat",zip:""},{label:"Standdaarbuiten",name:"Standdaarbuiten",zip:""},{label:"Staphorst",name:"Staphorst",zip:""},{label:"Starnmeer",name:"Starnmeer",zip:""},{label:"Startenhuizen (Loppersum)",name:"Startenhuizen (Loppersum)",zip:""},{label:"Startenhuizen (Eemsmond)",name:"Startenhuizen (Eemsmond)",zip:""},{label:"Stavenisse",name:"Stavenisse",zip:""},{label:"Stavoren",name:"Stavoren",zip:""},{label:"Stedum",name:"Stedum",zip:""},{label:"De Steeg",name:"De Steeg",zip:""},{label:"Steenbergen (Steenbergen)",name:"Steenbergen (Steenbergen)",zip:""},{label:"Steenbergen (Noordenveld)",name:"Steenbergen (Noordenveld)",zip:""},{label:"Steendam",name:"Steendam",zip:""},{label:"Steenderen",name:"Steenderen",zip:""},{label:"Steenenkamer",name:"Steenenkamer",zip:""},{label:"Steensel",name:"Steensel",zip:""},{label:"Steenwijk",name:"Steenwijk",zip:""},{label:"Steenwijkerwold",name:"Steenwijkerwold",zip:""},{label:"Stegeren",name:"Stegeren",zip:""},{label:"Steggerda",name:"Steggerda",zip:""},{label:"Stein",name:"Stein",zip:""},{label:"Stellendam",name:"Stellendam",zip:""},{label:"Sterksel",name:"Sterksel",zip:""},{label:"Stevensbeek",name:"Stevensbeek",zip:""},{label:"Stevensweert",name:"Stevensweert",zip:""},{label:"Steyl",name:"Steyl",zip:""},{label:"Stieltjeskanaal",name:"Stieltjeskanaal",zip:""},{label:"Stiens",name:"Stiens",zip:""},{label:"Stitswerd",name:"Stitswerd",zip:""},{label:"Stokkum",name:"Stokkum",zip:""},{label:"Stolwijk",name:"Stolwijk",zip:""},{label:"Stompetoren",name:"Stompetoren",zip:""},{label:"Stoutenburg",name:"Stoutenburg",zip:""},{label:"Stoutenburg Noord",name:"Stoutenburg Noord",zip:""},{label:"Stramproy",name:"Stramproy",zip:""},{label:"Streefkerk",name:"Streefkerk",zip:""},{label:"Striep",name:"Striep",zip:""},{label:"Strijbeek",name:"Strijbeek",zip:""},{label:"Strijen",name:"Strijen",zip:""},{label:"Strijensas",name:"Strijensas",zip:""},{label:"Stroe",name:"Stroe",zip:""},{label:"Stroobos",name:"Stroobos",zip:""},{label:"Stuifzand (Midden-Drenthe)",name:"Stuifzand (Midden-Drenthe)",zip:""},{label:"Stuifzand (Hoogeveen)",name:"Stuifzand (Hoogeveen)",zip:""},{label:"Sumar",name:"Sumar",zip:""},{label:"Surhuisterveen",name:"Surhuisterveen",zip:""},{label:"Surhuizum",name:"Surhuizum",zip:""},{label:"Susteren",name:"Susteren",zip:""},{label:"Suwâld",name:"Suwâld",zip:""},{label:"Swalmen",name:"Swalmen",zip:""},{label:"Sweikhuizen",name:"Sweikhuizen",zip:""},{label:"Swichum",name:"Swichum",zip:""},{label:"Swifterbant",name:"Swifterbant",zip:""},{label:"Swolgen",name:"Swolgen",zip:""},{label:"Taarlo",name:"Taarlo",zip:""},{label:"Teeffelen",name:"Teeffelen",zip:""},{label:"Teerns",name:"Teerns",zip:""},{label:"Tegelen",name:"Tegelen",zip:""},{label:"Terband",name:"Terband",zip:""},{label:"Terborg",name:"Terborg",zip:""},{label:"Terheijden",name:"Terheijden",zip:""},{label:"Terherne",name:"Terherne",zip:""},{label:"Terhole",name:"Terhole",zip:""},{label:"Terkaple",name:"Terkaple",zip:""},{label:"Termunten",name:"Termunten",zip:""},{label:"Termunterzijl",name:"Termunterzijl",zip:""},{label:"Ternaard",name:"Ternaard",zip:""},{label:"Terneuzen",name:"Terneuzen",zip:""},{label:"Teroele",name:"Teroele",zip:""},{label:"Terschuur",name:"Terschuur",zip:""},{label:"Tersoal",name:"Tersoal",zip:""},{label:"Terwispel",name:"Terwispel",zip:""},{label:"Terwolde",name:"Terwolde",zip:""},{label:"Teteringen",name:"Teteringen",zip:""},{label:"Teuge",name:"Teuge",zip:""},{label:"Thesinge",name:"Thesinge",zip:""},{label:"Tholen",name:"Tholen",zip:""},{label:"Thorn",name:"Thorn",zip:""},{label:"Tiel",name:"Tiel",zip:""},{label:"Tiendeveen (Hoogeveen)",name:"Tiendeveen (Hoogeveen)",zip:""},{label:"Tiendeveen (Midden-Drenthe)",name:"Tiendeveen (Midden-Drenthe)",zip:""},{label:"Tienhoven (Stichtse Vecht)",name:"Tienhoven (Stichtse Vecht)",zip:""},{label:"Tienhoven (Zederik)",name:"Tienhoven (Zederik)",zip:""},{label:"Tienray",name:"Tienray",zip:""},{label:"Tijnje",name:"Tijnje",zip:""},{label:"De Tike",name:"De Tike",zip:""},{label:"Tilburg",name:"Tilburg",zip:""},{label:"Tilligte",name:"Tilligte",zip:""},{label:"Tinallinge",name:"Tinallinge",zip:""},{label:"Tinte",name:"Tinte",zip:""},{label:"Tirns",name:"Tirns",zip:""},{label:"Tjalhuizum",name:"Tjalhuizum",zip:""},{label:"Tjalleberd",name:"Tjalleberd",zip:""},{label:"Tjerkgaast",name:"Tjerkgaast",zip:""},{label:"Tjerkwerd",name:"Tjerkwerd",zip:""},{label:"Tjuchem",name:"Tjuchem",zip:""},{label:"Tolbert",name:"Tolbert",zip:""},{label:"Toldijk",name:"Toldijk",zip:""},{label:"Tolkamer",name:"Tolkamer",zip:""},{label:"Tollebeek",name:"Tollebeek",zip:""},{label:"Tonden",name:"Tonden",zip:""},{label:"Toornwerd",name:"Toornwerd",zip:""},{label:"Tricht",name:"Tricht",zip:""},{label:"Triemen",name:"Triemen",zip:""},{label:"Tripscompagnie",name:"Tripscompagnie",zip:""},{label:"Tubbergen",name:"Tubbergen",zip:""},{label:"Tuil",name:"Tuil",zip:""},{label:"Tuitjenhorn",name:"Tuitjenhorn",zip:""},{label:"Tuk",name:"Tuk",zip:""},{label:"Tull en 't Waal",name:"Tull en 't Waal",zip:""},{label:"Twello",name:"Twello",zip:""},{label:"Twijzel",name:"Twijzel",zip:""},{label:"Twijzelerheide",name:"Twijzelerheide",zip:""},{label:"Twisk",name:"Twisk",zip:""},{label:"Tynaarlo",name:"Tynaarlo",zip:""},{label:"Tytsjerk",name:"Tytsjerk",zip:""},{label:"Tzum",name:"Tzum",zip:""},{label:"Tzummarum",name:"Tzummarum",zip:""},{label:"Ubbena",name:"Ubbena",zip:""},{label:"Ubbergen",name:"Ubbergen",zip:""},{label:"Uddel",name:"Uddel",zip:""},{label:"Uden",name:"Uden",zip:""},{label:"Udenhout",name:"Udenhout",zip:""},{label:"Uffelte",name:"Uffelte",zip:""},{label:"Ugchelen",name:"Ugchelen",zip:""},{label:"Uitdam",name:"Uitdam",zip:""},{label:"Uitgeest",name:"Uitgeest",zip:""},{label:"Uithoorn",name:"Uithoorn",zip:""},{label:"Uithuizen",name:"Uithuizen",zip:""},{label:"Uithuizermeeden",name:"Uithuizermeeden",zip:""},{label:"Uitwellingerga",name:"Uitwellingerga",zip:""},{label:"Uitwijk",name:"Uitwijk",zip:""},{label:"Ulestraten",name:"Ulestraten",zip:""},{label:"Ulft",name:"Ulft",zip:""},{label:"Ulicoten",name:"Ulicoten",zip:""},{label:"Ulrum",name:"Ulrum",zip:""},{label:"Ulvenhout (Breda)",name:"Ulvenhout (Breda)",zip:""},{label:"Ulvenhout (Alphen-Chaam)",name:"Ulvenhout (Alphen-Chaam)",zip:""},{label:"Ureterp",name:"Ureterp",zip:""},{label:"Urk",name:"Urk",zip:""},{label:"Urmond",name:"Urmond",zip:""},{label:"Ursem (Koggenland)",name:"Ursem (Koggenland)",zip:""},{label:"Ursem (Alkmaar)",name:"Ursem (Alkmaar)",zip:""},{label:"Usquert",name:"Usquert",zip:""},{label:"Utrecht",name:"Utrecht",zip:""},{label:"Vaals",name:"Vaals",zip:""},{label:"Vaassen",name:"Vaassen",zip:""},{label:"Valburg",name:"Valburg",zip:""},{label:"Valkenburg (Valkenburg aan de Geul)",name:"Valkenburg (Valkenburg aan de Geul)",zip:""},{label:"Valkenburg (Katwijk)",name:"Valkenburg (Katwijk)",zip:""},{label:"Valkenswaard",name:"Valkenswaard",zip:""},{label:"Valthe",name:"Valthe",zip:""},{label:"Valthermond",name:"Valthermond",zip:""},{label:"2e Valthermond",name:"2e Valthermond",zip:""},{label:"Varik",name:"Varik",zip:""},{label:"Varsselder",name:"Varsselder",zip:""},{label:"Varsseveld",name:"Varsseveld",zip:""},{label:"Vasse",name:"Vasse",zip:""},{label:"Veelerveen",name:"Veelerveen",zip:""},{label:"Veen",name:"Veen",zip:""},{label:"Veendam",name:"Veendam",zip:""},{label:"Veenendaal",name:"Veenendaal",zip:""},{label:"De Veenhoop",name:"De Veenhoop",zip:""},{label:"Veenhuizen",name:"Veenhuizen",zip:""},{label:"Veeningen",name:"Veeningen",zip:""},{label:"Veenklooster",name:"Veenklooster",zip:""},{label:"Veenoord",name:"Veenoord",zip:""},{label:"Veere",name:"Veere",zip:""},{label:"Veessen",name:"Veessen",zip:""},{label:"Vegelinsoord",name:"Vegelinsoord",zip:""},{label:"Veghel",name:"Veghel",zip:""},{label:"'t Veld",name:"'t Veld",zip:""},{label:"Velddriel",name:"Velddriel",zip:""},{label:"Den Velde",name:"Den Velde",zip:""},{label:"Velden",name:"Velden",zip:""},{label:"Veldhoven",name:"Veldhoven",zip:""},{label:"Velp (Rheden)",name:"Velp (Rheden)",zip:""},{label:"Velp (Grave)",name:"Velp (Grave)",zip:""},{label:"Velsen-Noord",name:"Velsen-Noord",zip:""},{label:"Velsen-Zuid",name:"Velsen-Zuid",zip:""},{label:"Velserbroek",name:"Velserbroek",zip:""},{label:"Venebrugge",name:"Venebrugge",zip:""},{label:"Venhorst",name:"Venhorst",zip:""},{label:"Venhuizen",name:"Venhuizen",zip:""},{label:"Venlo",name:"Venlo",zip:""},{label:"Venray",name:"Venray",zip:""},{label:"Ven-Zelderheide",name:"Ven-Zelderheide",zip:""},{label:"Vessem",name:"Vessem",zip:""},{label:"Vethuizen",name:"Vethuizen",zip:""},{label:"Veulen",name:"Veulen",zip:""},{label:"Vianen (Vianen)",name:"Vianen (Vianen)",zip:""},{label:"Vianen (Cuijk)",name:"Vianen (Cuijk)",zip:""},{label:"Vierakker",name:"Vierakker",zip:""},{label:"Vierhouten",name:"Vierhouten",zip:""},{label:"Vierhuizen",name:"Vierhuizen",zip:""},{label:"Vierlingsbeek",name:"Vierlingsbeek",zip:""},{label:"Vierpolders",name:"Vierpolders",zip:""},{label:"Vijfhuizen",name:"Vijfhuizen",zip:""},{label:"Vijlen",name:"Vijlen",zip:""},{label:"Vilsteren",name:"Vilsteren",zip:""},{label:"Vinkega",name:"Vinkega",zip:""},{label:"Vinkel ('s-Hertogenbosch)",name:"Vinkel ('s-Hertogenbosch)",zip:""},{label:"Vinkel (Bernheze)",name:"Vinkel (Bernheze)",zip:""},{label:"Vinkenbuurt",name:"Vinkenbuurt",zip:""},{label:"Vinkeveen",name:"Vinkeveen",zip:""},{label:"Visvliet",name:"Visvliet",zip:""},{label:"Vlaardingen",name:"Vlaardingen",zip:""},{label:"Vlagtwedde",name:"Vlagtwedde",zip:""},{label:"Vledder",name:"Vledder",zip:""},{label:"Vledderveen (Stadskanaal)",name:"Vledderveen (Stadskanaal)",zip:""},{label:"Vledderveen (Westerveld)",name:"Vledderveen (Westerveld)",zip:""},{label:"Vleuten",name:"Vleuten",zip:""},{label:"Vlieland",name:"Vlieland",zip:""},{label:"Vlierden",name:"Vlierden",zip:""},{label:"Vlijmen",name:"Vlijmen",zip:""},{label:"Vlissingen",name:"Vlissingen",zip:""},{label:"Vlist",name:"Vlist",zip:""},{label:"Vlodrop",name:"Vlodrop",zip:""},{label:"Voerendaal",name:"Voerendaal",zip:""},{label:"Vogelenzang",name:"Vogelenzang",zip:""},{label:"Vogelwaarde",name:"Vogelwaarde",zip:""},{label:"Volendam",name:"Volendam",zip:""},{label:"Volkel",name:"Volkel",zip:""},{label:"Vollenhove",name:"Vollenhove",zip:""},{label:"Vondelingenplaat Rotterdam",name:"Vondelingenplaat Rotterdam",zip:""},{label:"Voorburg",name:"Voorburg",zip:""},{label:"Voorhout",name:"Voorhout",zip:""},{label:"Voorschoten",name:"Voorschoten",zip:""},{label:"Voorst (Oude IJsselstreek)",name:"Voorst (Oude IJsselstreek)",zip:""},{label:"Voorst (Voorst)",name:"Voorst (Voorst)",zip:""},{label:"Voorthuizen",name:"Voorthuizen",zip:""},{label:"Vorchten",name:"Vorchten",zip:""},{label:"Vorden",name:"Vorden",zip:""},{label:"Vorstenbosch",name:"Vorstenbosch",zip:""},{label:"Vortum-Mullem",name:"Vortum-Mullem",zip:""},{label:"Vragender",name:"Vragender",zip:""},{label:"Vredenheim",name:"Vredenheim",zip:""},{label:"Vredepeel",name:"Vredepeel",zip:""},{label:"Vreeland",name:"Vreeland",zip:""},{label:"Vries",name:"Vries",zip:""},{label:"Vriescheloo",name:"Vriescheloo",zip:""},{label:"Vriezenveen",name:"Vriezenveen",zip:""},{label:"Vroomshoop",name:"Vroomshoop",zip:""},{label:"Vrouwenakker",name:"Vrouwenakker",zip:""},{label:"Vrouwenparochie",name:"Vrouwenparochie",zip:""},{label:"Vrouwenpolder",name:"Vrouwenpolder",zip:""},{label:"Vught",name:"Vught",zip:""},{label:"Vuren",name:"Vuren",zip:""},{label:"Waaksens",name:"Waaksens",zip:""},{label:"Waal",name:"Waal",zip:""},{label:"De Waal",name:"De Waal",zip:""},{label:"Waalre",name:"Waalre",zip:""},{label:"Waalwijk",name:"Waalwijk",zip:""},{label:"'t Waar",name:"'t Waar",zip:""},{label:"Waarde",name:"Waarde",zip:""},{label:"Waardenburg",name:"Waardenburg",zip:""},{label:"Waarder",name:"Waarder",zip:""},{label:"Waardhuizen",name:"Waardhuizen",zip:""},{label:"Waarland",name:"Waarland",zip:""},{label:"Waaxens",name:"Waaxens",zip:""},{label:"Wachtum",name:"Wachtum",zip:""},{label:"Waddinxveen",name:"Waddinxveen",zip:""},{label:"Wadenoijen",name:"Wadenoijen",zip:""},{label:"Wagenberg",name:"Wagenberg",zip:""},{label:"Wagenborgen",name:"Wagenborgen",zip:""},{label:"Wageningen",name:"Wageningen",zip:""},{label:"Walem",name:"Walem",zip:""},{label:"Walsoorden",name:"Walsoorden",zip:""},{label:"Wâlterswâld",name:"Wâlterswâld",zip:""},{label:"Wamel",name:"Wamel",zip:""},{label:"Wanneperveen",name:"Wanneperveen",zip:""},{label:"Wanroij",name:"Wanroij",zip:""},{label:"Wanssum",name:"Wanssum",zip:""},{label:"Wânswert",name:"Wânswert",zip:""},{label:"Wapenveld",name:"Wapenveld",zip:""},{label:"Wapse",name:"Wapse",zip:""},{label:"Wapserveen",name:"Wapserveen",zip:""},{label:"Warder",name:"Warder",zip:""},{label:"Warffum",name:"Warffum",zip:""},{label:"Warfhuizen",name:"Warfhuizen",zip:""},{label:"Warfstermolen",name:"Warfstermolen",zip:""},{label:"Warmenhuizen",name:"Warmenhuizen",zip:""},{label:"Warmond",name:"Warmond",zip:""},{label:"Warns",name:"Warns",zip:""},{label:"Warnsveld",name:"Warnsveld",zip:""},{label:"Warstiens",name:"Warstiens",zip:""},{label:"Warten",name:"Warten",zip:""},{label:"Waskemeer",name:"Waskemeer",zip:""},{label:"Waspik",name:"Waspik",zip:""},{label:"Wassenaar",name:"Wassenaar",zip:""},{label:"Wateren",name:"Wateren",zip:""},{label:"Watergang",name:"Watergang",zip:""},{label:"Waterhuizen",name:"Waterhuizen",zip:""},{label:"Wateringen",name:"Wateringen",zip:""},{label:"Waterlandkerkje",name:"Waterlandkerkje",zip:""},{label:"Waverveen",name:"Waverveen",zip:""},{label:"Wedde",name:"Wedde",zip:""},{label:"De Weere",name:"De Weere",zip:""},{label:"Weerselo",name:"Weerselo",zip:""},{label:"Weert",name:"Weert",zip:""},{label:"Weesp",name:"Weesp",zip:""},{label:"Wehe-den Hoorn",name:"Wehe-den Hoorn",zip:""},{label:"Wehl",name:"Wehl",zip:""},{label:"Weidum",name:"Weidum",zip:""},{label:"Weiteveen",name:"Weiteveen",zip:""},{label:"Wekerom",name:"Wekerom",zip:""},{label:"Well (Maasdriel)",name:"Well (Maasdriel)",zip:""},{label:"Well (Bergen - Limburg)",name:"Well (Bergen - Limburg)",zip:""},{label:"Wellerlooi",name:"Wellerlooi",zip:""},{label:"Welsum",name:"Welsum",zip:""},{label:"Wemeldinge",name:"Wemeldinge",zip:""},{label:"Wenum Wiesel",name:"Wenum Wiesel",zip:""},{label:"Wergea",name:"Wergea",zip:""},{label:"Werkendam",name:"Werkendam",zip:""},{label:"Werkhoven",name:"Werkhoven",zip:""},{label:"Wernhout",name:"Wernhout",zip:""},{label:"Wervershoof",name:"Wervershoof",zip:""},{label:"Wesepe",name:"Wesepe",zip:""},{label:"Wessem",name:"Wessem",zip:""},{label:"Westbeemster",name:"Westbeemster",zip:""},{label:"Westbroek",name:"Westbroek",zip:""},{label:"Westdorp",name:"Westdorp",zip:""},{label:"Westdorpe",name:"Westdorpe",zip:""},{label:"Westendorp",name:"Westendorp",zip:""},{label:"Westerbeek",name:"Westerbeek",zip:""},{label:"Westerbork",name:"Westerbork",zip:""},{label:"Westerbroek",name:"Westerbroek",zip:""},{label:"De Westereen",name:"De Westereen",zip:""},{label:"Westeremden",name:"Westeremden",zip:""},{label:"Westergeest",name:"Westergeest",zip:""},{label:"Westerhaar-Vriezenveensewijk",name:"Westerhaar-Vriezenveensewijk",zip:""},{label:"Westerhoven",name:"Westerhoven",zip:""},{label:"Westerland",name:"Westerland",zip:""},{label:"Westerlee",name:"Westerlee",zip:""},{label:"Westernieland",name:"Westernieland",zip:""},{label:"Westervelde",name:"Westervelde",zip:""},{label:"Westervoort",name:"Westervoort",zip:""},{label:"Westerwijtwerd",name:"Westerwijtwerd",zip:""},{label:"West-Graftdijk",name:"West-Graftdijk",zip:""},{label:"Westhem",name:"Westhem",zip:""},{label:"Westhoek",name:"Westhoek",zip:""},{label:"Westkapelle",name:"Westkapelle",zip:""},{label:"Westknollendam",name:"Westknollendam",zip:""},{label:"Westmaas",name:"Westmaas",zip:""},{label:"West-Terschelling",name:"West-Terschelling",zip:""},{label:"Westwoud",name:"Westwoud",zip:""},{label:"Westzaan",name:"Westzaan",zip:""},{label:"Wetering",name:"Wetering",zip:""},{label:"Weteringbrug",name:"Weteringbrug",zip:""},{label:"Wetsens",name:"Wetsens",zip:""},{label:"Wetsinge",name:"Wetsinge",zip:""},{label:"Weurt",name:"Weurt",zip:""},{label:"Wezep",name:"Wezep",zip:""},{label:"Wezup",name:"Wezup",zip:""},{label:"Wezuperbrug",name:"Wezuperbrug",zip:""},{label:"Wichmond",name:"Wichmond",zip:""},{label:"Wier",name:"Wier",zip:""},{label:"Wierden",name:"Wierden",zip:""},{label:"Wieringerwaard",name:"Wieringerwaard",zip:""},{label:"Wieringerwerf",name:"Wieringerwerf",zip:""},{label:"Wierum",name:"Wierum",zip:""},{label:"Wijchen",name:"Wijchen",zip:""},{label:"Wijckel",name:"Wijckel",zip:""},{label:"Wijdenes",name:"Wijdenes",zip:""},{label:"Wijdewormer",name:"Wijdewormer",zip:""},{label:"Wijhe",name:"Wijhe",zip:""},{label:"de Wijk",name:"de Wijk",zip:""},{label:"Wijk aan Zee",name:"Wijk aan Zee",zip:""},{label:"Wijk bij Duurstede",name:"Wijk bij Duurstede",zip:""},{label:"Wijk en Aalburg",name:"Wijk en Aalburg",zip:""},{label:"Wijlre",name:"Wijlre",zip:""},{label:"Wijnaldum",name:"Wijnaldum",zip:""},{label:"Wijnandsrade",name:"Wijnandsrade",zip:""},{label:"Wijnbergen",name:"Wijnbergen",zip:""},{label:"Wijngaarden",name:"Wijngaarden",zip:""},{label:"Wijnjewoude",name:"Wijnjewoude",zip:""},{label:"Wijster",name:"Wijster",zip:""},{label:"Wilbertoord",name:"Wilbertoord",zip:""},{label:"Wildervank",name:"Wildervank",zip:""},{label:"De Wilgen",name:"De Wilgen",zip:""},{label:"Wilhelminadorp",name:"Wilhelminadorp",zip:""},{label:"Wilhelminaoord",name:"Wilhelminaoord",zip:""},{label:"Willemsoord",name:"Willemsoord",zip:""},{label:"Willemstad",name:"Willemstad",zip:""},{label:"Wilnis",name:"Wilnis",zip:""},{label:"Wilp",name:"Wilp",zip:""},{label:"De Wilp",name:"De Wilp",zip:""},{label:"Wilsum",name:"Wilsum",zip:""},{label:"Winde",name:"Winde",zip:""},{label:"Windraak",name:"Windraak",zip:""},{label:"Winkel",name:"Winkel",zip:""},{label:"Winneweer",name:"Winneweer",zip:""},{label:"Winschoten",name:"Winschoten",zip:""},{label:"Winssen",name:"Winssen",zip:""},{label:"Winsum (Waadhoeke)",name:"Winsum (Waadhoeke)",zip:""},{label:"Winsum (Winsum)",name:"Winsum (Winsum)",zip:""},{label:"Wintelre",name:"Wintelre",zip:""},{label:"Winterswijk",name:"Winterswijk",zip:""},{label:"Winterswijk Brinkheurne",name:"Winterswijk Brinkheurne",zip:""},{label:"Winterswijk Corle",name:"Winterswijk Corle",zip:""},{label:"Winterswijk Henxel",name:"Winterswijk Henxel",zip:""},{label:"Winterswijk Huppel",name:"Winterswijk Huppel",zip:""},{label:"Winterswijk Kotten",name:"Winterswijk Kotten",zip:""},{label:"Winterswijk Meddo",name:"Winterswijk Meddo",zip:""},{label:"Winterswijk Miste",name:"Winterswijk Miste",zip:""},{label:"Winterswijk Ratum",name:"Winterswijk Ratum",zip:""},{label:"Winterswijk Woold",name:"Winterswijk Woold",zip:""},{label:"Wirdum (Loppersum)",name:"Wirdum (Loppersum)",zip:""},{label:"Wirdum (Leeuwarden)",name:"Wirdum (Leeuwarden)",zip:""},{label:"Wissenkerke",name:"Wissenkerke",zip:""},{label:"Witharen",name:"Witharen",zip:""},{label:"Witmarsum",name:"Witmarsum",zip:""},{label:"Witte Paarden",name:"Witte Paarden",zip:""},{label:"Wittelte",name:"Wittelte",zip:""},{label:"Wittem",name:"Wittem",zip:""},{label:"Witteveen",name:"Witteveen",zip:""},{label:"Wiuwert",name:"Wiuwert",zip:""},{label:"Wjelsryp",name:"Wjelsryp",zip:""},{label:"Woensdrecht",name:"Woensdrecht",zip:""},{label:"Woerden",name:"Woerden",zip:""},{label:"Woerdense Verlaat",name:"Woerdense Verlaat",zip:""},{label:"Wognum",name:"Wognum",zip:""},{label:"Woldendorp",name:"Woldendorp",zip:""},{label:"Wolfheze",name:"Wolfheze",zip:""},{label:"Wolphaartsdijk",name:"Wolphaartsdijk",zip:""},{label:"Wolsum",name:"Wolsum",zip:""},{label:"Woltersum",name:"Woltersum", -zip:""},{label:"Wolvega",name:"Wolvega",zip:""},{label:"Wommels",name:"Wommels",zip:""},{label:"Wons",name:"Wons",zip:""},{label:"Workum",name:"Workum",zip:""},{label:"Wormer",name:"Wormer",zip:""},{label:"Wormerveer",name:"Wormerveer",zip:""},{label:"Woubrugge",name:"Woubrugge",zip:""},{label:"Woudbloem",name:"Woudbloem",zip:""},{label:"de Woude",name:"de Woude",zip:""},{label:"Woudenberg",name:"Woudenberg",zip:""},{label:"Woudrichem",name:"Woudrichem",zip:""},{label:"Woudsend",name:"Woudsend",zip:""},{label:"Wouw",name:"Wouw",zip:""},{label:"Wouwse Plantage",name:"Wouwse Plantage",zip:""},{label:"Wyns",name:"Wyns",zip:""},{label:"Wytgaard",name:"Wytgaard",zip:""},{label:"Yde",name:"Yde",zip:""},{label:"Yerseke",name:"Yerseke",zip:""},{label:"Ypecolsga",name:"Ypecolsga",zip:""},{label:"Ysbrechtum",name:"Ysbrechtum",zip:""},{label:"Ysselsteyn",name:"Ysselsteyn",zip:""},{label:"Zaamslag",name:"Zaamslag",zip:""},{label:"Zaandam",name:"Zaandam",zip:""},{label:"Zaandijk",name:"Zaandijk",zip:""},{label:"Zalk",name:"Zalk",zip:""},{label:"Zaltbommel",name:"Zaltbommel",zip:""},{label:"'t Zand",name:"'t Zand",zip:""},{label:"Zandberg",name:"Zandberg",zip:""},{label:"Zandeweer",name:"Zandeweer",zip:""},{label:"Zandhuizen",name:"Zandhuizen",zip:""},{label:"Zandpol",name:"Zandpol",zip:""},{label:"'t Zandt",name:"'t Zandt",zip:""},{label:"Zandvoort",name:"Zandvoort",zip:""},{label:"Zeddam",name:"Zeddam",zip:""},{label:"Zeegse",name:"Zeegse",zip:""},{label:"Zeeland",name:"Zeeland",zip:""},{label:"Zeerijp",name:"Zeerijp",zip:""},{label:"Zeewolde",name:"Zeewolde",zip:""},{label:"Zegge",name:"Zegge",zip:""},{label:"Zegveld",name:"Zegveld",zip:""},{label:"Zeijen",name:"Zeijen",zip:""},{label:"Zeijerveen",name:"Zeijerveen",zip:""},{label:"Zeijerveld",name:"Zeijerveld",zip:""},{label:"Zeist",name:"Zeist",zip:""},{label:"Zelhem",name:"Zelhem",zip:""},{label:"Zenderen",name:"Zenderen",zip:""},{label:"Zennewijnen (Tiel)",name:"Zennewijnen (Tiel)",zip:""},{label:"Zennewijnen (Neerijnen)",name:"Zennewijnen (Neerijnen)",zip:""},{label:"Zetten",name:"Zetten",zip:""},{label:"Zevenaar",name:"Zevenaar",zip:""},{label:"Zevenbergen",name:"Zevenbergen",zip:""},{label:"Zevenbergschen Hoek (Moerdijk)",name:"Zevenbergschen Hoek (Moerdijk)",zip:""},{label:"Zevenbergschen Hoek (Drimmelen)",name:"Zevenbergschen Hoek (Drimmelen)",zip:""},{label:"Zevenhoven",name:"Zevenhoven",zip:""},{label:"Zevenhuizen (Zuidplas)",name:"Zevenhuizen (Zuidplas)",zip:""},{label:"Zevenhuizen (Leek)",name:"Zevenhuizen (Leek)",zip:""},{label:"Zierikzee",name:"Zierikzee",zip:""},{label:"Zieuwent",name:"Zieuwent",zip:""},{label:"Zijderveld",name:"Zijderveld",zip:""},{label:"Zijdewind",name:"Zijdewind",zip:""},{label:"Zijldijk",name:"Zijldijk",zip:""},{label:"De Zilk",name:"De Zilk",zip:""},{label:"Zoelen",name:"Zoelen",zip:""},{label:"Zoelmond",name:"Zoelmond",zip:""},{label:"Zoetermeer",name:"Zoetermeer",zip:""},{label:"Zoeterwoude",name:"Zoeterwoude",zip:""},{label:"Zonnemaire",name:"Zonnemaire",zip:""},{label:"Zorgvlied",name:"Zorgvlied",zip:""},{label:"Zoutelande",name:"Zoutelande",zip:""},{label:"Zoutkamp",name:"Zoutkamp",zip:""},{label:"Zuid-Beijerland",name:"Zuid-Beijerland",zip:""},{label:"Zuidbroek",name:"Zuidbroek",zip:""},{label:"Zuiddorpe",name:"Zuiddorpe",zip:""},{label:"Zuidermeer",name:"Zuidermeer",zip:""},{label:"Zuiderwoude",name:"Zuiderwoude",zip:""},{label:"Zuidhorn",name:"Zuidhorn",zip:""},{label:"Zuidlaarderveen",name:"Zuidlaarderveen",zip:""},{label:"Zuidland",name:"Zuidland",zip:""},{label:"Zuidlaren",name:"Zuidlaren",zip:""},{label:"Zuidoostbeemster",name:"Zuidoostbeemster",zip:""},{label:"Zuid-Scharwoude",name:"Zuid-Scharwoude",zip:""},{label:"Zuidschermer",name:"Zuidschermer",zip:""},{label:"Zuidveen",name:"Zuidveen",zip:""},{label:"Zuidveld",name:"Zuidveld",zip:""},{label:"Zuidvelde",name:"Zuidvelde",zip:""},{label:"Zuidwolde (Bedum)",name:"Zuidwolde (Bedum)",zip:""},{label:"Zuidwolde (De Wolden)",name:"Zuidwolde (De Wolden)",zip:""},{label:"Zuidzande",name:"Zuidzande",zip:""},{label:"Zuilichem",name:"Zuilichem",zip:""},{label:"Zuna",name:"Zuna",zip:""},{label:"Zundert",name:"Zundert",zip:""},{label:"Zurich",name:"Zurich",zip:""},{label:"Zutphen",name:"Zutphen",zip:""},{label:"Zuurdijk",name:"Zuurdijk",zip:""},{label:"Zwaag",name:"Zwaag",zip:""},{label:"Zwaagdijk-Oost",name:"Zwaagdijk-Oost",zip:""},{label:"Zwaagdijk-West",name:"Zwaagdijk-West",zip:""},{label:"Zwaanshoek",name:"Zwaanshoek",zip:""},{label:"Zwagerbosch",name:"Zwagerbosch",zip:""},{label:"Zwammerdam",name:"Zwammerdam",zip:""},{label:"Zwanenburg",name:"Zwanenburg",zip:""},{label:"Zwartebroek",name:"Zwartebroek",zip:""},{label:"Zwartemeer",name:"Zwartemeer",zip:""},{label:"Zwartewaal",name:"Zwartewaal",zip:""},{label:"Zwartsluis",name:"Zwartsluis",zip:""},{label:"Zweeloo",name:"Zweeloo",zip:""},{label:"Zweins",name:"Zweins",zip:""},{label:"Zwiggelte",name:"Zwiggelte",zip:""},{label:"Zwijndrecht",name:"Zwijndrecht",zip:""},{label:"Zwinderen",name:"Zwinderen",zip:""},{label:"Zwolle",name:"Zwolle",zip:""}]),angular.module("udb.search",["ngCookies","ngSanitize","ui.bootstrap","peg","udb.core","udb.config","udb.router","udb.entry","btford.socket-io","pascalprecht.translate","xeditable"]),angular.module("udb.event-form",["ngSanitize","ngMessages","ui.bootstrap","udb.config","udb.entry","udb.search","udb.uitpas","ngFileUpload","duScroll","focus-if","angular.filter"]),angular.module("udb.offer-translate",["ngSanitize","ngMessages","ui.bootstrap","udb.config","udb.entry","udb.search","udb.uitpas","ngFileUpload","duScroll","focus-if","angular.filter"]),angular.module("udb.dashboard",["ngSanitize","ui.bootstrap","udb.config"]),angular.module("udb.entry",["ngCookies","ngSanitize","ui.bootstrap","udb.config","udb.search","btford.socket-io","pascalprecht.translate","angularMoment"]),angular.module("udb.event-detail",["ngSanitize","ui.bootstrap","udb.config","udb.entry"]),angular.module("udb.place-detail",["ngSanitize","ui.bootstrap","udb.config","udb.entry"]),angular.module("udb.saved-searches",["udb.core","ui.bootstrap","ui.codemirror"]),angular.module("udb.export",["ngSanitize","ui.bootstrap","udb.config","udb.search"]),angular.module("udb.media",["ngSanitize","ui.bootstrap","udb.core","udb.config"]),angular.module("udb.management.roles",["rx"]),angular.module("udb.management.labels",["rx"]),angular.module("udb.management.users",["rx"]),angular.module("udb.management.moderation",["rx"]),angular.module("udb.management.organizers",["rx","udb.event-form","udb.organizers","ngTagsInput"]),angular.module("udb.management",["udb.core","udb.management.labels","udb.management.roles","udb.management.users","udb.management.moderation","udb.management.organizers"]),angular.module("peg",[]).factory("LuceneQueryParser",function(){return function(){function a(a,b){function c(){this.constructor=a}c.prototype=b.prototype,a.prototype=new c}function b(a,b,c,d,e,f){this.message=a,this.expected=b,this.found=c,this.offset=d,this.line=e,this.column=f,this.name="SyntaxError"}function c(a){function c(b){function c(b,c,d){var e,f;for(e=c;d>e;e++)f=a.charAt(e),"\n"===f?(b.seenCR||b.line++,b.column=1,b.seenCR=!1):"\r"===f||"\u2028"===f||"\u2029"===f?(b.line++,b.column=1,b.seenCR=!0):(b.column++,b.seenCR=!1)}return nb!==b&&(nb>b&&(nb=0,ob={line:1,column:1,seenCR:!1}),c(ob,nb,b),nb=b),ob}function d(a){pb>lb||(lb>pb&&(pb=lb,qb=[]),qb.push(a))}function e(d,e,f){function g(a){var b=1;for(a.sort(function(a,b){return a.descriptionb.description?1:0});b1?g.slice(0,-1).join(", ")+" or "+g[a.length-1]:g[0],e=b?'"'+c(b)+'"':"end of input","Expected "+d+" but "+e+" found."}var i=c(f),j=flb?(c=a.charAt(lb),lb++):(c=G,0===rb&&d(kb)),rb--,c===G?b=jb:(lb=b,b=J),b}var E,F=arguments.length>1?arguments[1]:{},G={},H={start:f},I=f,J=G,K=function(a){return a[0]},L=function(){return{}},M=function(a){return{operator:a}},N=function(a,b){return b},O=function(a,b,c){var d={left:a},c=0==c.length?null:null==c[0].right?c[0].left:c[0];return null!=c&&(d.operator=""==b?"":b[0],d.right=c),d},P=function(a){return a},Q="(",R={type:"literal",value:"(",description:'"("'},S=")",T={type:"literal",value:")",description:'")"'},U=null,V=function(a,b){return b.field=a||"",b},W=function(a,b,c){return c.field=b,a&&(c.transformer=a),c},X=function(a,b,c){var d={field:b||""};a&&(d.transformer=a),!b&&a&&(d.prefix=a);for(var e in c)d[e]=c[e];return d},Y=/^[:<>]/,Z={type:"class",value:"[:<>]",description:"[:<>]"},$=function(a){return a},_=/^[^: \t\r\n\f{}()+\-!"\^~[\]]/,aa={type:"class",value:'[^: \\t\\r\\n\\f{}()+\\-!"\\^~[\\]]',description:'[^: \\t\\r\\n\\f{}()+\\-!"\\^~[\\]]'},ba=function(a,b){return a+b.join("")},ca=/^[^: \t\r\n\f{}()+"\^~[\]]/,da={type:"class",value:'[^: \\t\\r\\n\\f{}()+"\\^~[\\]]',description:'[^: \\t\\r\\n\\f{}()+"\\^~[\\]]'},ea=function(a,b,c,d){var e={term:b,quoted:!0};return c&&(e.proximity=c),d&&(e.boost=d),a&&(e.prefix=a),e},fa=function(a,b,c,d){var e={term:b};return c&&(e.similarity=c),d&&(e.boost=d),a&&(e.prefix=a),e},ga=/^[^,: \t\r\n\f{}()+\-"\^~[\]]/,ha={type:"class",value:'[^,: \\t\\r\\n\\f{}()+\\-"\\^~[\\]]',description:'[^,: \\t\\r\\n\\f{}()+\\-"\\^~[\\]]'},ia=function(a,b){return a+b.join("")},ja=/^[^, <>\t\r\n\f{}()"\^~[\]]/,ka={type:"class",value:'[^, <>\\t\\r\\n\\f{}()"\\^~[\\]]',description:'[^, <>\\t\\r\\n\\f{}()"\\^~[\\]]'},la='"',ma={type:"literal",value:'"',description:'"\\""'},na=/^[^"]/,oa={type:"class",value:'[^"]',description:'[^"]'},pa=function(a){return a.join("")},qa="~",ra={type:"literal",value:"~",description:'"~"'},sa=function(a){return a},ta="^",ua={type:"literal",value:"^",description:'"^"'},va=function(a){return a},wa=function(a){return a||.5},xa="0.",ya={type:"literal",value:"0.",description:'"0."'},za=/^[0-9]/,Aa={type:"class",value:"[0-9]",description:"[0-9]"},Ba=function(a){return parseFloat("0."+a.join(""))},Ca=function(a){return parseInt(a.join(""))},Da="[",Ea={type:"literal",value:"[",description:'"["'},Fa="TO",Ga={type:"literal",value:"TO",description:'"TO"'},Ha="]",Ia={type:"literal",value:"]",description:'"]"'},Ja=function(a,b){return{lowerBound:a,upperBound:b,inclusive:!0}},Ka="{",La={type:"literal",value:"{",description:'"{"'},Ma="}",Na={type:"literal",value:"}",description:'"}"'},Oa=function(a,b){return{lowerBound:a,upperBound:b,inclusive:!1}},Pa=function(a){return a},Qa="OR",Ra={type:"literal",value:"OR",description:'"OR"'},Sa="AND",Ta={type:"literal",value:"AND",description:'"AND"'},Ua="NOT",Va={type:"literal",value:"NOT",description:'"NOT"'},Wa="||",Xa={type:"literal",value:"||",description:'"||"'},Ya=function(){return"OR"},Za="&&",$a={type:"literal",value:"&&",description:'"&&"'},_a=function(){return"AND"},ab="+",bb={type:"literal",value:"+",description:'"+"'},cb="-",db={type:"literal",value:"-",description:'"-"'},eb="!",fb={type:"literal",value:"!",description:'"!"'},gb={type:"other",description:"whitespace"},hb=/^[ \t\r\n\f]/,ib={type:"class",value:"[ \\t\\r\\n\\f]",description:"[ \\t\\r\\n\\f]"},jb=void 0,kb={type:"any",description:"any character"},lb=0,mb=0,nb=0,ob={line:1,column:1,seenCR:!1},pb=0,qb=[],rb=0;if("startRule"in F){if(!(F.startRule in H))throw new Error("Can't start parsing from rule \""+F.startRule+'".');I=H[F.startRule]}if(E=I(),E!==G&&lb===a.length)return E;throw E!==G&&lb0){var d=[];return a.each(function(){d.push(angular.element(this).html().substring(0,2))}),d.join(", ")+" "}return c.startLabel}}),a.$watch(c.ngModel,function(){b.multiselect("refresh")})}}}angular.module("udb.core").directive("udbMultiselect",a)}()}(),function(){!function(){"use strict";function a(){function a(a,b,c,d){d&&"time"===c.type&&d.$formatters.unshift(function(a){return a.replace(/:\d{2}[.,]\d{3}$/,"")})}return{restrict:"A",require:"ngModel",link:a}}angular.module("udb.core").directive("udbTime",a)}()}(),function(){"use strict";function a(a,b){function c(a){var b=_.reject(a.sameAs,function(a){return a.contains("uitinvlaanderen")});return b}function d(a){return/^(https?)/.test(a)}function e(a){return i()?b.publicationUrl.place?b.publicationUrl.place+a:!1:b.publicationUrl.event?b.publicationUrl.event+a:!1}function f(){return i()||"everyone"===j.event.audience.audienceType}function g(a){return b.cultuurkuur.cultuurkuurUrl?b.cultuurkuur.cultuurkuurUrl+"agenda/e/x/"+a:!1}function h(){return!i()&&"education"===j.event.audience.audienceType}function i(){return _.includes(j.event.url,"place")?!0:!1}var j=this;j.event=a.event,j.sameAsRelations=c,j.isUrl=d,j.getPublicUrl=e,j.showPublicUrl=f,j.getCultuurkuurKUrl=g,j.showCultuurkuurUrl=h,j.publicationRulesLink=b.publicationRulesLink,j.publicationBrand=b.publicationUrl.brand}angular.module("udb.core").directive("udbWorkflowStatus",function(){return{templateUrl:"templates/udb.workflow-status.directive.html",controller:a,controllerAs:"cm",restrict:"A",scope:{event:"<":"tussen","+":"is gelijk aan","!":"is niet gelijk aan","-":"is niet gelijk aan",">":"is groter of gelijk aan","<":"is kleiner of gelijk aan",">_DATE":"later dan","<_DATE":"vroeger dan","=_DATE":"is gelijk aan","><_DATE":"tussen",choice:{everyone:"iedereen",members:"leden",education:"onderwijs",asc:"oplopend",desc:"aflopend",today:"vandaag",tomorrow:"morgen",thisweekend:"dit weekend",nextweekend:"volgend weekend",next7days:"volgende 7 dagen",next14days:"volgende 14 dagen",next30days:"volgende 30 dagen",next3months:"volgende 3 maanden",next6months:"volgende 6 maanden",next12months:"volgende 12 maanden",permanent:"permanent",event:"event",place:"locatie",actor:"actor",production:"productie",nl:"Nederlands",fr:"Frans",en:"Engels",de:"Duits",AF:"Afghanistan",AX:"Alandeilanden",AL:"Albanië",DZ:"Algerije",AS:"Amerikaans Samoa",VI:"Amerikaanse Maagdeneilanden",UM:"Amerikaanse kleinere afgelegen eilanden",AD:"Andorra",AO:"Angola",AI:"Anguilla",AQ:"Antarctica",AG:"Antigua en Barbuda",AR:"Argentinië",AM:"Armenië",AW:"Aruba",AU:"Australië",AZ:"Azerbeidzjan",BS:"Bahama’s",BH:"Bahrein",BD:"Bangladesh",BB:"Barbados",BE:"België",BZ:"Belize",BJ:"Benin",BM:"Bermuda",BT:"Bhutan",BO:"Bolivia",BA:"Bosnië en Herzegovina",BW:"Botswana",BV:"Bouveteiland",BR:"Brazilië",IO:"Britse Gebieden in de Indische Oceaan",VG:"Britse Maagdeneilanden",BN:"Brunei",BG:"Bulgarije",BF:"Burkina Faso",BI:"Burundi",KH:"Cambodja",CA:"Canada",KY:"Caymaneilanden",CF:"Centraal-Afrikaanse Republiek",CL:"Chili",CN:"China",CX:"Christmaseiland",CC:"Cocoseilanden",CO:"Colombia",KM:"Comoren",CG:"Congo",CD:"Congo-Kinshasa",CK:"Cookeilanden",CR:"Costa Rica",CU:"Cuba",CY:"Cyprus",DK:"Denemarken",DJ:"Djibouti",DM:"Dominica",DO:"Dominicaanse Republiek",DE:"Duitsland",EC:"Ecuador",EG:"Egypte",SV:"El Salvador",GQ:"Equatoriaal-Guinea",ER:"Eritrea",EE:"Estland",ET:"Ethiopië",FO:"Faeröer",FK:"Falklandeilanden",FJ:"Fiji",PH:"Filipijnen",FI:"Finland",FR:"Frankrijk",GF:"Frans-Guyana",PF:"Frans-Polynesië",TF:"Franse Gebieden in de zuidelijke Indische Oceaan",GA:"Gabon",GM:"Gambia",GE:"Georgië",GH:"Ghana",GI:"Gibraltar",GD:"Grenada",GR:"Griekenland",GL:"Groenland",GP:"Guadeloupe",GU:"Guam",GT:"Guatemala",GG:"Guernsey",GN:"Guinee",GW:"Guinee-Bissau",GY:"Guyana",HT:"Haïti",HM:"Heard- en McDonaldeilanden",IM:"Het Eiland Man",HN:"Honduras",HU:"Hongarije",HK:"Hongkong SAR van China",IS:"IJsland",IE:"Ierland",IN:"India",ID:"Indonesië",IQ:"Irak",IR:"Iran",IL:"Israël",IT:"Italië",CI:"Ivoorkust",JM:"Jamaica",JP:"Japan",YE:"Jemen",JE:"Jersey",JO:"Jordanië",CV:"Kaapverdië",CM:"Kameroen",KZ:"Kazachstan",KE:"Kenia",KG:"Kirgizië",KI:"Kiribati",KW:"Koeweit",HR:"Kroatië",LA:"Laos",LS:"Lesotho",LV:"Letland",LB:"Libanon",LR:"Liberia",LY:"Libië",LI:"Liechtenstein",LT:"Litouwen",LU:"Luxemburg",MO:"Macao SAR van China",MK:"Macedonië",MG:"Madagaskar",MW:"Malawi",MV:"Malediven",MY:"Maleisië",ML:"Mali",MT:"Malta",MA:"Marokko",MH:"Marshalleilanden",MQ:"Martinique",MR:"Mauritanië",MU:"Mauritius",YT:"Mayotte",MX:"Mexico",FM:"Micronesië",MD:"Moldavië",MC:"Monaco",MN:"Mongolië",ME:"Montenegro",MS:"Montserrat",MZ:"Mozambique",MM:"Myanmar",NA:"Namibië",NR:"Nauru",NL:"Nederland",AN:"Nederlandse Antillen",NP:"Nepal",NI:"Nicaragua",NC:"Nieuw-Caledonië",NZ:"Nieuw-Zeeland",NE:"Niger",NG:"Nigeria",NU:"Niue",KP:"Noord-Korea",MP:"Noordelijke Marianeneilanden",NO:"Noorwegen",NF:"Norfolkeiland",UG:"Oeganda",UA:"Oekraïne",UZ:"Oezbekistan",OM:"Oman",ZZ:"Onbekend of onjuist gebied",TL:"Oost-Timor",AT:"Oostenrijk",PK:"Pakistan",PW:"Palau",PS:"Palestijns Gebied",PA:"Panama",PG:"Papoea-Nieuw-Guinea",PY:"Paraguay",PE:"Peru",PN:"Pitcairn",PL:"Polen",PT:"Portugal",PR:"Puerto Rico",QA:"Qatar",RO:"Roemenië",RU:"Rusland",RW:"Rwanda",RE:"Réunion",BL:"Saint Barthélemy",KN:"Saint Kitts en Nevis",LC:"Saint Lucia",PM:"Saint Pierre en Miquelon",VC:"Saint Vincent en de Grenadines",SB:"Salomoneilanden",WS:"Samoa",SM:"San Marino",ST:"Sao Tomé en Principe",SA:"Saoedi-Arabië",SN:"Senegal",RS:"Servië",CS:"Servië en Montenegro",SC:"Seychellen",SL:"Sierra Leone",SG:"Singapore",SH:"Sint-Helena",MF:"Sint-Maarten",SI:"Slovenië",SK:"Slowakije",SD:"Soedan",SO:"Somalië",ES:"Spanje",LK:"Sri Lanka",SR:"Suriname",SJ:"Svalbard en Jan Mayen",SZ:"Swaziland",SY:"Syrië",TJ:"Tadzjikistan",TW:"Taiwan",TZ:"Tanzania",TH:"Thailand",TG:"Togo",TK:"Tokelau",TO:"Tonga",TT:"Trinidad en Tobago",TD:"Tsjaad",CZ:"Tsjechië",TN:"Tunesië",TR:"Turkije",TM:"Turkmenistan",TC:"Turks- en Caicoseilanden",TV:"Tuvalu",UY:"Uruguay",VU:"Vanuatu",VA:"Vaticaanstad",VE:"Venezuela",GB:"Verenigd Koninkrijk",AE:"Verenigde Arabische Emiraten",US:"Verenigde Staten",VN:"Vietnam",WF:"Wallis en Futuna",EH:"Westelijke Sahara",BY:"Wit-Rusland",ZM:"Zambia",ZW:"Zimbabwe",ZA:"Zuid-Afrika",GS:"Zuid-Georgië en Zuidelijke Sandwicheilanden",KR:"Zuid-Korea",SE:"Zweden",CH:"Zwitserland"},property:{name:"Titel",description:"Beschrijving",labels:"Labels",calendarSummary:"Kalendersamenvatting",image:"Afbeelding",location:"Locatie",address:"Adres",organizer:"Organisator",priceInfo:"Prijsinformatie",kansentarief:"Kansentarief",bookingInfo:"Reservatie-info",contactPoint:"Contactinfo",creator:"Auteur","terms.theme":"Thema","terms.eventtype":"Type",created:"Datum aangemaakt",modified:"Datum laatste aanpassing",publisher:"Auteur",available:"Embargodatum",endDate:"Einddatum",startDate:"Begindatum",calendarType:"Tijd type",sameAs:"Externe IDs",typicalAgeRange:"Leeftijd",language:"Taal",audience:"Toegang"},preview:{tabs:{data:"Gegevens",history:"Historiek",publication:"Publicatie"},not_found:"Pagina niet gevonden",not_found_help:"Deze pagina kon niet gevonden worden.",loading:"Aan het laden...",edit:"Bewerken",duplicate:"Kopiëren en aanpassen",change_status:"Status wijzigen","delete":"Verwijderen",title:"Titel",type:"Type",entrance:"Toegang",description:"Beschrijving",no_description:"Geen beschrijving",where:"Waar",bookable_event_location_info:"Locatie in overleg met de school.", -when:"Wanneer",labels:"Labels",labels_error:"Het toevoegen van het label '{{labelName}}' is niet gelukt.",labels_success:"Het label '{{addedLabel}}' werd succesvol toegevoegd.",organizer:"Organisatie",no_organizer:"Geen organisatie-informatie",price:"Prijs",free:"Gratis",currency:"euro",no_price:"Geen prijsinformatie",age_label:"Geschikt voor",all_ages:"Alle leeftijden",no_age:"Geen leeftijdsinformatie",publiq_url:"Bekijk op {{publicationBrand}}",translate:"Vertalen"},translate:{ready:"Klaar met vertalen",translate:"vertalen",original:"origineel",edit:"Bewerk",translation:"Vertaling",description:"Beschrijving",title:"Titel",tariff:"Prijstarief",address:"Adres",street:"Straat en nummer"},labels:{what:"Met een label voeg je korte, specifieke trefwoorden toe.",invalid:"Dit lijkt een ongeldig label. Een label",chars:"bestaat enkel uit letters of cijfers",excluded:"bevat enkel '-' en '_', maar mag niet met deze tekens beginnen",length:"telt 2 tot 50 karakters"},calendarSummary:{openinghours:"meerdere tijdstippen",from:"Van",till:"tot",permanent:"Permanent"},moderate:{validate:"Valideren",approve:"Goedkeuren",approved:"Goedgekeurd",reject:"Afkeuren",rejected:"Afgekeurd",continue_validation:"Verder valideren"},cultuurkuur:{info:'Dit evenement bevat extra informatie voor scholen en leerkrachten.',subject:"Onderwerp",target_group:"Doelgroep",levels:"Geschikt voor",grades:"onderwijsgraden",edit_link:"Wijzig op cultuurkuur.be",incomplete_help:"Vervolledig dit evenement op cultuurkuur.be met extra informatie voor scholen en leerkrachten.","continue":"Doorgaan"},booking:{label:"Reservatie",no_booking:"Geen reservatie-informatie"},contact:{label:"Contact",or:"of",no_contact:"Geen contactinformatie"},imageDetail:{label:"Afbeeldingen",alt_image:"Afbeelding {{index}}",main_image:"Hoofdafbeelding",no_images:"Geen afbeeldingen"},prices:{title:"Prijzen toevoegen",base:"Basistarief",target_group:"Doelgroep",free:"Gratis",currency:"euro",add_price:"Prijs invoeren",add_tarriff:"Tarief toevoegen",error:"Er ging iets fout bij het opslaan van de prijs.",invalid:"Deze prijsinformatie lijkt ongeldig en kan je daarom niet bewaren.",invalid_tip1:"Noteer decimalen met een komma.",invalid_tip2:"Laat geen enkel rij leeg, vul steeds een doelgroep en een bedrag in.",invalid_tip3:"Geef maximum twee cijfers na de komma.",close:"Sluiten",save:"Bewaren"},location:{title:"Nieuwe locatie toevoegen",name:"Naam locatie",name_validation:"De naam van de locatie is een verplicht veld.",street:"Straat en nummer",street_validation:"Straat is een verplicht veld.",city:"Gemeente",category:"Categorie",category_help:"Kies een categorie die deze locatie het best omschrijft.",category_validation:"Categorie is een verplicht veld.",error:"Er ging iets fout tijdens het opslaan van je locatie.",invalid_street:"Dit lijkt een ongeldig adres. Wanneer je spaties gebruikt in het adres, mogen er na de laatste spatie niet meer dan 15 karakters staan.",cancel:"Annuleren",add:"Toevoegen",zip:"Postcode",nlPostalCode_validation:"Postcode is een verplicht veld.",invalid_PostalCode:"Dit lijkt een ongeldige postcode. Een postcode bestaat uit 4 cijfers en 2 letters, zonder een spatie ertussen."},eventForm:{langWarning:"Opgelet, je (be)werkt in een andere taal: {{language}}. Is dit niet de bedoeling, neem dan contact op met vragen@uitdatabank.be.",step1:{title:"Wat wil je toevoegen?",label_event:"Een evenement",show_everything:"Toon alles",or:"of",location_label:"Een locatie",change:"Wijzigen",refine:"Verfijn"},step2:{date_help_event:"Wanneer vindt dit evenement of deze activiteit plaats?",date_help_place:"Wanneer is deze plaats of locatie open?"},step3:{title_event:"Waar vindt dit evenement of deze activiteit plaats?",title_place:"Waar is deze plaats of locatie?",choose_city:"Kies een gemeente",choose_city_helper:"bv. Gent of 9000",choose_residence:"Kies een woonplaats",choose_residence_helper:"bv. Groningen of Amsterdam",placeholder_city:"Gemeente of postcode",problem_city:"Er was een probleem tijdens het ophalen van de steden",change:"Wijzigen",choose_location:"Kies een locatie",placeholder_location:"Naam of adres",location_not_found:"Locatie niet gevonden?",add_location:"Een locatie toevoegen",location_error:"Er was een probleem tijdens het ophalen van de locaties",street:"Straat en nummer",placeholder_street:"Kerkstraat 1",street_validate:"Straat en nummer is een verplicht veld.",street_validate_long:"Dit lijkt een ongeldig adres. Wanneer je spaties gebruikt in het adres, mogen er na de laatste spatie niet meer dan 15 karakters staan.",ok:"OK",zip:"Postcode",zip_validate:"Postcode is een verplicht veld.",invalid_zip:"Dit lijkt een ongeldige postcode. Een postcode bestaat uit 4 cijfers en 2 letters, zonder een spatie ertussen.",bookable_event_info_alert:"Evenementen waarvan de locatie in overleg wordt bepaald, worden niet gepubliceerd op UiTinVlaanderen of andere publiekskanalen. Je evenement verschijnt wel op cultuurkuur.be",bookable_event_next_button:"Ga verder",bookable_event_success_message:"De locatie wordt bepaald in overleg met de school."},step4:{age:{age_label:"Geschikt voor","All ages":"Alle leeftijden",Toddlers:"Peuters",Preschoolers:"Kleuters",Kids:"Kinderen",Teenagers:"Tieners",Youngsters:"Jongeren",Adults:"Volwassenen",Seniors:"Senioren",Custom:"Andere",from:"Van",till:"Tot",age:"jaar",error_max_lower_than_min:"De maximumleeftijd kan niet lager zijn dan de minimumleeftijd."},basic_data:"Basisgegevens",name_event:"Naam van het evenement",name_place:"Naam van de locatie",help_event:'Gebruik een sprekende titel, bv. "Fietsen langs kapelletjes", "De Sage van de Eenhoorn".',help_place:'Gebruik de officiële benaming, bv. "Gravensteen", "Abdijsite Herkenrode", "Cultuurcentrum De Werf".',help_description:"Een uitgebreide beschrijving kan je in stap 5 toevoegen.",info_missing:"Je vulde niet alle verplichte informatie in:",save_error:"Er ging iets fout tijdens het opslaan van je activiteit. Gelieve later opnieuw te proberen.","continue":"Doorgaan",doubles_title:"Vermijd dubbel werk",doubles_help:"We vonden gelijkaardige items. Controleer deze eerder ingevoerde items.",sure:'Ben je zeker dat je "{{name}}" wil toevoegen?',return_dashboard:"Nee, keer terug naar dashboard",yes_continue:"Ja, doorgaan met invoeren",suggestions:{from:"Van",till:"tot",permanent:"Permanent"}},step5:{expose_event:"Laat je evenement extra opvallen",expose_place:"Laat deze locatie extra opvallen",title:"Titel",description:"Beschrijving",add_text:"Tekst toevoegen",required_200:"De eerste 200 tekens zijn het belangrijkst om een nieuw publiek aan te spreken.",required_still:"Nog",required_signs:"tekens.",required_200_help:"Plaats de belangrijkste boodschap in de eerste 200 tekens. Je kan nog verder aanvullen met achtergrondinformatie.",empty:"Leegmaken",tips:{Concert:"Geef een enthousiaste omschrijving van het concert.
  • Welk(e) artiest(en) treden op? 
  • Welk genre is het?
  • Welk album of werk wordt voorgesteld?
",Dansvoorstelling:"Geef een enthousiaste omschrijving van de dansvoorstelling.
  • Wie is de choreograaf?
  • Wie zijn de dansers?
  • In welke stijl dansen ze?
  • Over welk thema of onderwerp gaat de voorstelling?
",Festival:"Geef een enthousiaste omschrijving van het festival. 
  • Wie of wat staat er op het programma? 
  • Welke (rand)animatie is er?
",Film:"Geef een enthousiaste omschrijving van de film. 
  • Schets kort het verhaal
  • Wie is de regisseur? 
  • Wie zijn de  hoofdrolspelers? 
  • Heeft de film prijzen gewonnen?
","Lezing of congres":"Geef een enthousiaste omschrijving van de lezing of het congres. 
  • Welke thema’s komen aan bod? 
  • Welke sprekers nemen het woord?
",Theatervoorstelling:"Geef een enthousiaste omschrijving van de voorstelling. 
  • Schets kort het verhaal of het thema
  • Welk theatergezelschap brengt het stuk? 
  • Welke acteurs spelen mee?
","Sportwedstrijd bekijken":"Geef een enthousiaste omschrijving van de sportwedstrijd. 
  • Welke ploegen of deelnemers spelen er mee? 
  • In welke competitie kadert de wedstrijd?
","Markt of braderie":"Geef een enthousiaste omschrijving van de markt of braderie.
  • In welke straten vindt ze plaats? 
  • Welke kramen of standjes zullen er zijn? 
  • Is er (rand)animatie?
",Opendeurdag:"Geef een enthousiaste omschrijving van de opendeurdag. Wat kan je bekijken of beleven?",Beurs:"Geef een enthousiaste omschrijving van de beurs. Wat kan je kan bekijken, beleven of kopen?",Tentoonstelling:"Geef een enthousiaste omschrijving van de tentoonstelling. 
  • Welke kunstenaars stellen tentoon?
  • Welke collecties kan je bekijken? 
  • Is er een (audio)gids of brochure beschikbaar?
","Begeleide uitstap of rondleiding":"Geef een enthousiaste omschrijving van de rondleiding. 
  • Wat valt er langs de route te bekijken of beleven
  • Is er een maximaal aantal deelnemers
  • Wordt de rondleiding doorlopend of op bepaalde tijdstippen georganiseerd? 
  • Zijn er speciale aandachtspunten (bv. laarzen aangewezen)?
",Lessenreeks:"Geef een enthousiaste omschrijving van de lessenreeks. 
  • Wat leer je er precies? 
  • Is er voorkennis nodig om deel te nemen? 
  • Wat is het niveau van de lessen? 
  • Krijg je op het einde een diploma of certificaat?
","Cursus met open sessies":"Geef een enthousiaste omschrijving van de workshop of cursus met open sessies. 
  • Wat leer je er precies? 
  • Is er voorkennis nodig om deel te nemen? 
  • Wat is het niveau van de lessen? 
  • Krijg je op het einde een diploma of certificaat?
","Kamp of vakantie":"Geef een enthousiaste omschrijving van het kamp of de vakantie. 
  • Welke activiteiten kan je er doen? 
  • Is er een thema
  • Is het kamp met of zonder overnachtingen
  • Wat is het start en einduur voor dagkampen en is er vooraf en nadien opvang voorzien?
",Festiviteit:"Geef een enthousiaste omschrijving van de kermis. 
  • Welke attracties zijn er? 
  • Zijn er (rand)activiteiten (quiz, concerten, foodtrucks, marktje ...)?
",Route:"Geef een enthousiaste omschrijving van de route. 
  • Leg je de route af te voet, per fiets, per boot …? 
  • Welke mogelijke tussenstops zijn er? 
  • Wat is de afstand of duur van de route?
  • Is de route begeleid, met een gids, brochure of wegwijzers?
","Party of fuif":"Geef een enthousiaste omschrijving van de party of fuif. Welke dj’s of bands treden er op?","Eet of drankfestijn":"Geef een enthousiaste omschrijving van het eet -of drankfestijn. 
  • Wat staat er op het menu? 
  • Gaat de opbrengst naar een goed doel
  • Is er (rand)animatie?
","Spel of quiz":"Geef een enthousiaste omschrijving van de quiz of het spel. 
  • Over welke onderwerpen gaat de quiz?
  • Heeft het spel een thema?
  • Valt er iets te winnen?
  • Is er een maximaal aantal deelnemers?
","Sport en beweging":"Geef een enthousiaste omschrijving van de sportactiviteit. 
  • Welke sport(en) kan je beoefenen? 
  • Welk materiaal wordt (niet) voorzien?
",Monument:"Geef hier een wervende omschrijving van het monument. Geef ook aan indien het monument slechts beperkt opengesteld is (vb. enkel salons)."},description_error:"Er ging iets fout bij het opslaan van de beschrijving.",organizer:"Organisatie",add_organizer:"Organisatie toevoegen",choose_organizer:"Kies een organisatie",organizer_not_found:"Organisatie niet gevonden?",add_new_organizer:"Nieuwe organisator toevoegen",organizer_error:"Er ging iets fout bij het opslaan van de organisator.",contact:"Contact & reservatie",add_contact:"Contactinformatie toevoegen",website:"Website",phone:"Telefoonnummer","e-mail":"E-mailadres",use_booking:"Gebruik voor reservatie",booking_exposure:"Hoe mag deze link verschijnen?",buy_tickets:"Koop tickets",reserve_places:"Reserveer plaatsen",check_availability:"Controleer beschikbaarheid",subscribe:"Schrijf je in",add_more_contact:"Meer contactgegevens toevoegen",contact_error:"Er ging iets fout bij het opslaan van de contact info.",facilities:"Toegankelijkheid",add_facility:"Voorzieningen toevoegen",facility_inapplicable:"Niet van toepassing",change:"Wijzigen",image_help:"Voeg een afbeelding toe zodat je bezoekers je activiteit beter herkennen.",images:"Afbeeldingen",copyright:"Copyright","delete":"Verwijderen",main_image:"Maak hoofdafbeelding",add_image:"Afbeelding toevoegen",priceInfo:{price_label:"Prijs",add_prices:"Prijzen toevoegen",free:"Gratis",prices:"Prijzen",change:"Wijzigen",currency:"euro"},reservationPeriod:{add_reservation_period:"Reservatieperiode toevoegen",reservation_period:"Reservatie periode",from:"Van",till:"Tot"}},publish:{publish_now:"Meteen publiceren",publish_later:"Later publiceren",edit_done:"Klaar met bewerken",online_from:"Online vanaf"},timeTracker:{automatic_saved:"Automatisch bewaard om",hour:"uur"},embargo:{title:"Kies een publicatiedatum",help:'Vanaf wanneer mag dit online verschijnen? Opgelet, deze datum kan je maar één keer instellen.',error_past:"Een publicatiedatum kan niet in het verleden liggen.",error_empty:"Kies een publicatiedatum.",cancel:"Annuleren",ready:"Klaar met bewerken"},imageUpload:{modalTitle:"Afbeelding toevoegen",defaultError:"Het geselecteerde bestand voldoet niet aan onze voorwaarden.",noFileSelectedError:"Er is geen bestand geselecteerd",somethingWentWrongError:"Er ging iets mis bij het opslaan van de afbeelding.",maxSize:"Het bestand dat je probeert te uploaden is te groot. De maximum grootte is ",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"},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"},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",price:"prijs",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",ORGANISATIES_BEHEREN:"Organisaties beheren",GEBRUIKERS_BEHEREN:"Gebruikers beheren",LABELS_BEHEREN:"Labels beheren",VOORZIENINGEN_BEWERKEN:"Voorzieningen bewerken",ORGANISATIES_BEWERKEN:"Organisaties bewerken",PRODUCTIES_AANMAKEN:"Producties 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:"UiTPAS kan momenteel niet bereikt worden, probeer het later opnieuw of contacteer de helpdesk (vragen@uitdatabank.be)."},cardSystems:{card_systems:"Kaartsystemen",choose:"--Selecteer een verdeelsleutel--",retry:"Opnieuw registreren",unavailable:"kan UiTPAS momenteel niet bereiken, probeer het later opnieuw of contacteer de helpdesk (vragen@uitdatabank.be)"}},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 3 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",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","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",savedSearches:{savedSearches:"Bewaarde zoekopdrachten",items:{"Door mij ingevoerd":"Door mij ingevoerd"},mySearches:"Mijn zoekopdrachten",title:"Titel",viewResults:"Resultaten bekijken"},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"}}})}(),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",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",location:"Lieu",address:"Adresse",organizer:"Organisateur",priceInfo:"Information du prix",kansentarief:"Allocataires sociaux",bookingInfo:"Info réservation",contactPoint:"Info contact",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_status:"Modifier l'état","delete":"Supprimer",title:"Titre",type:"Type",entrance:"Entrée",description:"Description",no_description:"Aucune description",where:"Où",when:"Quand",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",currency:"euro",no_price:"Pas d'information du prix",age_label:"Adapté à",all_ages:"Tous les âges",no_age:"Pas d'information de l'âge",publiq_url:"Voir sur {{publicationBrand}}",translate:"Traduire"},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:{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"},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:"Ou 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 pouvez-vous consulter?
  • 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ébut et 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"},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"},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",price:"prix",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",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","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:"UiTPAS n'est pas disponible pour l'instant, essayez plus tard ou contactez le helpdesk (vragen@uitdatabank.be)."},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",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é",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","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é",savedSearches:{savedSearches:"Recherches conservées",items:{"Door mij ingevoerd":"Encodé par moi"},mySearches:"Mes recherches",title:"Titre",viewResults:"Consulter résultats"},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:"Zoeken"}}})}(),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(),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.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){var f=_.cloneDeep(q);return f.params={query:a,limit:d?d:30,start:e?e:0},b.get(c.baseUrl+"labels/",f).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/v3",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/v3",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/v3",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.status=a.status,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.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.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)},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.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 evenementen 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,a.isGodUser?a.permissions={editing:!0,duplication:!0}:c?a.permissions={editing:!d.isExpired(),duplication:!0}:a.permissions={editing:!1,duplication:!1},q()})}function p(b){var c="";_.forEach(b,function(a){_.contains(a.permissions,"AANBOD_MODEREREN")&&a.constraints&&a.constraints.v3&&(c+=(c?" OR ":"")+"("+a.constraints.v3+")")}),c=c?"("+c+")":"";var d="cdbid";return c="("+c+" AND "+d+":"+a.event.id+")",l.find(c,10,0).then(function(a){return a})}function q(){a.isGodUser?a.tabs=[{id:"data"},{id:"history"},{id:"publication"}]:a.tabs=[{id:"data"},{id:"publication"}]}function r(b){a.eventHistory=b}function s(b){a.calendarSummary=b}function t(){a.calendarSummary=!1}function u(b){G=b,"permanent"===G.calendarType?s("Altijd open"):c.getCalendarSummary(b.id,"lg",a.language).then(s,t),a.event=d(b,F,!0),a.allAges=!/\d/.test(b.typicalAgeRange),a.noAgeInfo=""===b.typicalAgeRange,b.typicalAgeRange.indexOf("-")===b.typicalAgeRange.length-1?a.ageRange=b.typicalAgeRange.slice(0,-1)+"+":a.ageRange=b.typicalAgeRange,a.eventIdIsInvalid=!1,B(),C(),l.getMyRoles().then(function(b){var c=_.filter(b,function(a){var b=_.filter(a.permissions,function(a){return a===m.AANBOD_MODEREREN});return b.length>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(G.labels,function(a){return b.name.toUpperCase()===a.toUpperCase()});c?h.alert('Het label "'+b.name+'" is reeds toegevoegd als "'+c+'".'):i.label(G,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(G.labels)})}function y(){a.labelResponse="",a.labelsError=""}function z(b){a.event.labels=angular.copy(G.labels),a.labelResponse="unlabelError",a.labelsError=b.title}function A(a){y(),i.unlabel(G,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;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 F=j.use()||"nl";a.language=F;var G;a.eventLocation=function(b){var c=d(b.location,F,!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.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(){_.isEmpty(a.timeSpans)?(g(),a.instantTimeSpanChanged()):a.timeSpans.push(_.cloneDeep(_.last(a.timeSpans)))}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>=3}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>=3}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;g0?e.getTicketSales(m.eventId,m.organizer).then(function(a){a?m.hasTicketSales=a:i()},function(){m.hasUitpasError=!0}):i()}function i(){var b=a.open({templateUrl:"templates/price-form-modal.html",controller:"PriceFormModalController",controllerAs:"pfmc",size:"lg",resolve:{price:function(){return m.price}}});b.result.then(k,l)}function j(){m.price=b.priceInfo,m.price.length?m.priceCssClass="state-complete":m.priceCssClass=""}function k(){m.savingPrice=!0,m.price=b.priceInfo,m.editPrice=!1;var a=c.updatePriceInfo(b);a.then(function(){d.$emit("eventFormSaved",b),_.isEmpty(m.price)||(m.priceCssClass="state-complete"),m.savingPrice=!1,m.formPriceSubmitted=!1},function(){m.priceError=!0,m.savingPrice=!1,m.formPriceSubmitted=!1})}function l(){m.price=b.priceInfo}var m=this;m.mainLanguage=b.mainLanguage,m.setPriceFree=g,m.changePrice=h,m.openModal=i,m.$onInit=j}angular.module("udb.event-form").component("priceInfo",{templateUrl:"templates/priceInfo.html",controller:a,bindings:{price:"<",eventId:"<",organizer:"<"}}),a.$inject=["$uibModal","EventFormData","eventCrud","$rootScope","udbUitpasApi","$translate"]}(),function(){"use strict";function a(a,b,c){function d(){h.opened=!h.opened}function e(){a.dismiss()}function f(){h.drp.startOpened=!h.drp.startOpened}function g(){h.publicationDate?i<=h.publicationDate?(b.availableFrom=new Date(h.publicationDate.getFullYear(),h.publicationDate.getMonth(),h.publicationDate.getDate(),0,0,0),c(),a.close()):h.error="past":h.error="empty"}var h=this;h.error="",h.hasPublicationDate=!1,h.publicationDate=b.availableFrom,h.opened=!1,h.dismiss=e,h.savePublicationDate=g,h.onFocus=f,h.toggleDatePicker=d;var i=moment().add(1,"days").startOf("day").toDate();h.drp={dateFormat:"dd/MM/yyyy",startOpened:!1,options:{minDate:i,showWeeks:!1}}}angular.module("udb.event-form").controller("EventFormPublishModalController",a),a.$inject=["$uibModalInstance","eventFormData","publishEvent"]}(),function(){"use strict";function a(a,b,c){function d(){return a.availabilityStarts>a.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).format(),b.bookingInfo.availabilityEnds=moment(a.availabilityEnds).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){this.calendar.endDate=a},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){var e="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:e,status:d})},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)},initOpeningHours:function(a){d.deserialize(a)},setCalendarType:function(a){var b=this;if(b.calendar.calendarType!==a){if(b.resetCalendar(),b.calendar.calendarType=a,"single"===b.calendar.calendarType&&(e.calendarHighlight.date?b.addTimeSpan(new Date(e.calendarHighlight.date),e.calendarHighlight.startTime||"",e.calendarHighlight.startTime?c(e.calendarHighlight.date+" "+e.calendarHighlight.startTime,"YYYY-MM-DD HH:mm").toDate():"",e.calendarHighlight.endTime||"",e.endTime?c(e.calendarHighlight.date+" "+e.calendarHighlight.endTime,"YYYY-MM-DD HH:mm").toDate():""):b.addTimeSpan(c().startOf("day"),c().endOf("day")),b.saveTimeSpans(b.calendar.timeSpans)),"permanent"===b.calendar.calendarType&&(b.calendar.startDate=void 0,b.calendar.endDate=void 0,b.timingChanged()),"periodic"===b.calendar.calendarType){if(b.calendar.startDate=c().startOf("day").toDate(), -e.addOffer.defaultEndPeriod){var d=e.addOffer.defaultEndPeriod;b.calendar.endDate=c(b.calendar.startDate).add(d,"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,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"):"",{type:"Available"}),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,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 i(),a.missingInfo.length>0?void(a.infoMissing=!0):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.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 evenementen mislukt":"Document ."+a.extension+" met "+a.eventCount+" evenementen"}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:"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:"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=f.activeExport.query.queryString+' AND workflowStatus:("APPROVED" OR "READY_FOR_VALIDATION")',l=f.activeExport.selection||[],m=f.activeExport.eventCount,n=j.brand||"",o=null,p=e.getObject("user"),q=c.exportEvents(k,g,b,h,i,l,j);return o={format:b,user:p.id,brand:n,queryString:k},q.success(function(c){var e=new d(c.commandId,m,b,o);a.addJob(e),e.start()}),q}}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)},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"===q["continue"]}function g(){return q.offer.workflowStatus===c.READY_FOR_VALIDATION}function h(){return q.offer.workflowStatus===c.APPROVED}function i(){return q.offer.workflowStatus===c.REJECTED}function j(){q.error=!1,a.approve(q.offer).then(function(){q.offer.workflowStatus=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){q.error=!1,a.reject(q.offer,b).then(function(){q.offer.workflowStatus=c.REJECTED})["catch"](p)}function n(){q.error=!1,a.flagAsDuplicate(q.offer).then(function(){q.offer.workflowStatus=c.REJECTED})["catch"](p)}function o(){q.error=!1,a.flagAsInappropriate(q.offer).then(function(){q.offer.workflowStatus=c.REJECTED})["catch"](p)}function p(a){q.error=a.title+(a.detail?" "+a.detail:"")}var q=this,r="nl";q.loading=!0,q.offer={},q.error=!1,q.isReadyForValidation=g,q.isApproved=h,q.isRejected=i,q.approve=j,q.askForRejectionReasons=k,q.continueValidation=f,a.getModerationOffer(q.offerId).then(function(a){a.updateTranslationState(),q.offer=b(a,r)})["catch"](e)["finally"](function(){q.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",ORGANISATIES_BEWERKEN:"ORGANISATIES_BEWERKEN",ORGANISATIES_BEHEREN:"ORGANISATIES_BEHEREN",GEBRUIKERS_BEHEREN:"GEBRUIKERS_BEHEREN",LABELS_BEHEREN:"LABELS_BEHEREN",VOORZIENINGEN_BEWERKEN:"VOORZIENINGEN_BEWERKEN",PRODUCTIES_AANMAKEN:"PRODUCTIES_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].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){function f(b){a.get(b).then(g)}function g(a){s.organizer=a}function h(b){s.labelSaving=!0,k(),a.addLabelToOrganizer(t,b.name)["catch"](q)["finally"](function(){s.labelSaving=!1,j()})}function i(b){s.labelSaving=!0,k(),j(),a.deleteLabelFromOrganizer(t,b.name)["catch"](p)["finally"](function(){s.labelSaving=!1})}function j(){a.removeOrganizerFromCache(t)}function k(){s.labelResponse="",s.labelsError=""}function l(){return-1!==u.indexOf("manage")}function m(){d.path("/manage/organizations")}function n(){o(s.organizer)}function o(a){var c=b.open({templateUrl:"templates/organization-delete.modal.html",controller:"OrganizationDeleteModalController",controllerAs:"odc",resolve:{organization:function(){return a}}});c.result.then(m)}function p(a){f(t),s.labelResponse="unlabelError",s.labelsError=a.title}function q(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}}})}function r(){return s.organizer&&!s.loadingError}var s=this,t=c.id,u=e.current.name;s.labelSaving=!1,s.addLabel=h,s.deleteLabel=i,s.labelResponse="",s.labelsError="",s.deleteOrganization=n,s.isManageState=l,s.finishedLoading=r,f(t)}angular.module("udb.organizers").controller("OrganizerDetailController",a),a.$inject=["OrganizerManager","$uibModal","$stateParams","$location","$state"]}(),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.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){return{templateUrl:"templates/search-bar.directive.html",restrict:"E",link:function(e,f,g){function h(a){var b="";return _.forEach(a,function(a){b+=a+"\n"}),b}function i(a){k.savedSearches=_.take(a,5)}var j,k={queryString:"",hasErrors:!1,errors:"",isEditing:!1,savedSearches:[]};k.editQuery=function(){b.$emit("startEditingQuery"),k.isEditing=!0,j=c.open({templateUrl:"templates/query-editor-modal.html",controller:"QueryEditorController",controllerAs:"qe",size:"lg" -})},k.find=function(c){var d="undefined"!=typeof c?c:k.queryString;k.queryString=d,a.setQueryString(d),b.$emit("searchSubmitted")},k.queryChanged=function(){a.clearQueryTree()},e.sb=k,k.updateQuery=function(a,b){k.queryString=b.queryString,b.errors&&b.errors.length?(e.sb.hasErrors=!0,e.sb.errors=h(b.errors)):(e.sb.hasErrors=!1,e.sb.errors="")},d.getSavedSearches().then(i);var l=b.$on("savedSearchesChanged",function(a,b){i(b)}),m=b.$on("stopEditingQuery",function(){e.sb.isEditing=!1,j&&j.dismiss()}),n=b.$on("searchQueryChanged",k.updateQuery);e.$on("$destroy",l),e.$on("$destroy",m),e.$on("$destroy",n)}}}angular.module("udb.search").directive("udbSearchBar",a),a.$inject=["searchHelper","$rootScope","$uibModal","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:"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.label",type:"term",group:"what",editable:!0},{name:"locationtype",field:"terms.label",type:"term",group:"what",editable:!0},{name:"category_theme_name",field:"terms.label",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:"price",field:"price",type:"number",group:"other",editable:!0},{name:"organiser_label",field:"organizer.name.\\*",type:"tokenized-string",group:"other",editable:!0},{name:"category_facility_name",field:"terms.label",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.id",type:"string"},{field:"mediaObjectsCount",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"},{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;null!==o&&o!==c&&(p?_.contains(d,o)||g.push(o+" is not a valid parent search field that can be used with a wildcard"):_.contains(b,o)||g.push(o+" 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;null!==o&&o!==c&&(p?_.contains(d,o)||g.push(o+" is not a valid parent search field that can be used with a wildcard"):_.contains(b,o)||g.push(o+" 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(){l.uitpasUnavailable=!0}function f(){l.uitpasUnavailable=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(){a.active=!a.active,e()}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",'\n \n \n \n \n
    \n
  • \n
    \n \n {{::translateImageDetail(\'alt_image\', {index: $index}) }}\n \n
    \n
    \n \n

    {{image.description}}

    \n

    © {{image.copyrightHolder}}

    \n
    \n
    \n
  • \n
\n \n \n\n'),a.put("templates/udb.workflow-status.directive.html",'\n \n \n \n \n {{::cm.status | translate }}\n {{cm.event.availableFrom | date: \'dd/MM/yyyy\'}}\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/unexpected-error-modal.html",'\n\n\n'),a.put("templates/event-cultuurkuur.html",'
\n
\n

\n
\n
\n

\n
\n
\n
\n \n
\n
\n \n
\n
\n
\n

Vervolledig dit evenement op cultuurkuur.be met extra informatie voor scholen en leerkrachten.

\n Doorgaan\n
\n
\n
\n
\n
\n

\n
\n
\n
\n'),a.put("templates/dashboard-item.directive.html",'\n \n \n \n \n Online op \n Publicatie afgewezen \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
\n \n
\n \n
\n \n
\n
\n\n'),a.put("templates/dashboard-organizer-item.directive.html",'\n \n \n \n
\n \n \n ,\n \n \n\n\n\n \n
\n \n
\n
\n\n'),a.put("templates/event-delete-confirm-modal.html",'\n\n'),a.put("templates/place-delete-confirm-modal.html",'\n\n'),a.put("templates/dashboard.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
\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 \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\n
\n
\n\n
\n'), +zip:""},{label:"Wolvega",name:"Wolvega",zip:""},{label:"Wommels",name:"Wommels",zip:""},{label:"Wons",name:"Wons",zip:""},{label:"Workum",name:"Workum",zip:""},{label:"Wormer",name:"Wormer",zip:""},{label:"Wormerveer",name:"Wormerveer",zip:""},{label:"Woubrugge",name:"Woubrugge",zip:""},{label:"Woudbloem",name:"Woudbloem",zip:""},{label:"de Woude",name:"de Woude",zip:""},{label:"Woudenberg",name:"Woudenberg",zip:""},{label:"Woudrichem",name:"Woudrichem",zip:""},{label:"Woudsend",name:"Woudsend",zip:""},{label:"Wouw",name:"Wouw",zip:""},{label:"Wouwse Plantage",name:"Wouwse Plantage",zip:""},{label:"Wyns",name:"Wyns",zip:""},{label:"Wytgaard",name:"Wytgaard",zip:""},{label:"Yde",name:"Yde",zip:""},{label:"Yerseke",name:"Yerseke",zip:""},{label:"Ypecolsga",name:"Ypecolsga",zip:""},{label:"Ysbrechtum",name:"Ysbrechtum",zip:""},{label:"Ysselsteyn",name:"Ysselsteyn",zip:""},{label:"Zaamslag",name:"Zaamslag",zip:""},{label:"Zaandam",name:"Zaandam",zip:""},{label:"Zaandijk",name:"Zaandijk",zip:""},{label:"Zalk",name:"Zalk",zip:""},{label:"Zaltbommel",name:"Zaltbommel",zip:""},{label:"'t Zand",name:"'t Zand",zip:""},{label:"Zandberg",name:"Zandberg",zip:""},{label:"Zandeweer",name:"Zandeweer",zip:""},{label:"Zandhuizen",name:"Zandhuizen",zip:""},{label:"Zandpol",name:"Zandpol",zip:""},{label:"'t Zandt",name:"'t Zandt",zip:""},{label:"Zandvoort",name:"Zandvoort",zip:""},{label:"Zeddam",name:"Zeddam",zip:""},{label:"Zeegse",name:"Zeegse",zip:""},{label:"Zeeland",name:"Zeeland",zip:""},{label:"Zeerijp",name:"Zeerijp",zip:""},{label:"Zeewolde",name:"Zeewolde",zip:""},{label:"Zegge",name:"Zegge",zip:""},{label:"Zegveld",name:"Zegveld",zip:""},{label:"Zeijen",name:"Zeijen",zip:""},{label:"Zeijerveen",name:"Zeijerveen",zip:""},{label:"Zeijerveld",name:"Zeijerveld",zip:""},{label:"Zeist",name:"Zeist",zip:""},{label:"Zelhem",name:"Zelhem",zip:""},{label:"Zenderen",name:"Zenderen",zip:""},{label:"Zennewijnen (Tiel)",name:"Zennewijnen (Tiel)",zip:""},{label:"Zennewijnen (Neerijnen)",name:"Zennewijnen (Neerijnen)",zip:""},{label:"Zetten",name:"Zetten",zip:""},{label:"Zevenaar",name:"Zevenaar",zip:""},{label:"Zevenbergen",name:"Zevenbergen",zip:""},{label:"Zevenbergschen Hoek (Moerdijk)",name:"Zevenbergschen Hoek (Moerdijk)",zip:""},{label:"Zevenbergschen Hoek (Drimmelen)",name:"Zevenbergschen Hoek (Drimmelen)",zip:""},{label:"Zevenhoven",name:"Zevenhoven",zip:""},{label:"Zevenhuizen (Zuidplas)",name:"Zevenhuizen (Zuidplas)",zip:""},{label:"Zevenhuizen (Leek)",name:"Zevenhuizen (Leek)",zip:""},{label:"Zierikzee",name:"Zierikzee",zip:""},{label:"Zieuwent",name:"Zieuwent",zip:""},{label:"Zijderveld",name:"Zijderveld",zip:""},{label:"Zijdewind",name:"Zijdewind",zip:""},{label:"Zijldijk",name:"Zijldijk",zip:""},{label:"De Zilk",name:"De Zilk",zip:""},{label:"Zoelen",name:"Zoelen",zip:""},{label:"Zoelmond",name:"Zoelmond",zip:""},{label:"Zoetermeer",name:"Zoetermeer",zip:""},{label:"Zoeterwoude",name:"Zoeterwoude",zip:""},{label:"Zonnemaire",name:"Zonnemaire",zip:""},{label:"Zorgvlied",name:"Zorgvlied",zip:""},{label:"Zoutelande",name:"Zoutelande",zip:""},{label:"Zoutkamp",name:"Zoutkamp",zip:""},{label:"Zuid-Beijerland",name:"Zuid-Beijerland",zip:""},{label:"Zuidbroek",name:"Zuidbroek",zip:""},{label:"Zuiddorpe",name:"Zuiddorpe",zip:""},{label:"Zuidermeer",name:"Zuidermeer",zip:""},{label:"Zuiderwoude",name:"Zuiderwoude",zip:""},{label:"Zuidhorn",name:"Zuidhorn",zip:""},{label:"Zuidlaarderveen",name:"Zuidlaarderveen",zip:""},{label:"Zuidland",name:"Zuidland",zip:""},{label:"Zuidlaren",name:"Zuidlaren",zip:""},{label:"Zuidoostbeemster",name:"Zuidoostbeemster",zip:""},{label:"Zuid-Scharwoude",name:"Zuid-Scharwoude",zip:""},{label:"Zuidschermer",name:"Zuidschermer",zip:""},{label:"Zuidveen",name:"Zuidveen",zip:""},{label:"Zuidveld",name:"Zuidveld",zip:""},{label:"Zuidvelde",name:"Zuidvelde",zip:""},{label:"Zuidwolde (Bedum)",name:"Zuidwolde (Bedum)",zip:""},{label:"Zuidwolde (De Wolden)",name:"Zuidwolde (De Wolden)",zip:""},{label:"Zuidzande",name:"Zuidzande",zip:""},{label:"Zuilichem",name:"Zuilichem",zip:""},{label:"Zuna",name:"Zuna",zip:""},{label:"Zundert",name:"Zundert",zip:""},{label:"Zurich",name:"Zurich",zip:""},{label:"Zutphen",name:"Zutphen",zip:""},{label:"Zuurdijk",name:"Zuurdijk",zip:""},{label:"Zwaag",name:"Zwaag",zip:""},{label:"Zwaagdijk-Oost",name:"Zwaagdijk-Oost",zip:""},{label:"Zwaagdijk-West",name:"Zwaagdijk-West",zip:""},{label:"Zwaanshoek",name:"Zwaanshoek",zip:""},{label:"Zwagerbosch",name:"Zwagerbosch",zip:""},{label:"Zwammerdam",name:"Zwammerdam",zip:""},{label:"Zwanenburg",name:"Zwanenburg",zip:""},{label:"Zwartebroek",name:"Zwartebroek",zip:""},{label:"Zwartemeer",name:"Zwartemeer",zip:""},{label:"Zwartewaal",name:"Zwartewaal",zip:""},{label:"Zwartsluis",name:"Zwartsluis",zip:""},{label:"Zweeloo",name:"Zweeloo",zip:""},{label:"Zweins",name:"Zweins",zip:""},{label:"Zwiggelte",name:"Zwiggelte",zip:""},{label:"Zwijndrecht",name:"Zwijndrecht",zip:""},{label:"Zwinderen",name:"Zwinderen",zip:""},{label:"Zwolle",name:"Zwolle",zip:""}]),angular.module("udb.search",["ngCookies","ngSanitize","ui.bootstrap","peg","udb.core","udb.config","udb.router","udb.entry","btford.socket-io","pascalprecht.translate","xeditable"]),angular.module("udb.event-form",["ngSanitize","ngMessages","ui.bootstrap","udb.config","udb.entry","udb.search","udb.uitpas","ngFileUpload","duScroll","focus-if","angular.filter"]),angular.module("udb.offer-translate",["ngSanitize","ngMessages","ui.bootstrap","udb.config","udb.entry","udb.search","udb.uitpas","ngFileUpload","duScroll","focus-if","angular.filter"]),angular.module("udb.dashboard",["ngSanitize","ui.bootstrap","udb.config"]),angular.module("udb.entry",["ngCookies","ngSanitize","ui.bootstrap","udb.config","udb.search","btford.socket-io","pascalprecht.translate","angularMoment"]),angular.module("udb.event-detail",["ngSanitize","ui.bootstrap","udb.config","udb.entry"]),angular.module("udb.place-detail",["ngSanitize","ui.bootstrap","udb.config","udb.entry"]),angular.module("udb.saved-searches",["udb.core","ui.bootstrap","ui.codemirror"]),angular.module("udb.export",["ngSanitize","ui.bootstrap","udb.config","udb.search"]),angular.module("udb.media",["ngSanitize","ui.bootstrap","udb.core","udb.config"]),angular.module("udb.management.roles",["rx"]),angular.module("udb.management.labels",["rx"]),angular.module("udb.management.users",["rx"]),angular.module("udb.management.moderation",["rx"]),angular.module("udb.management.organizers",["rx","udb.event-form","udb.organizers","ngTagsInput"]),angular.module("udb.management",["udb.core","udb.management.labels","udb.management.roles","udb.management.users","udb.management.moderation","udb.management.organizers"]),angular.module("peg",[]).factory("LuceneQueryParser",function(){return function(){function a(a,b){function c(){this.constructor=a}c.prototype=b.prototype,a.prototype=new c}function b(a,b,c,d,e,f){this.message=a,this.expected=b,this.found=c,this.offset=d,this.line=e,this.column=f,this.name="SyntaxError"}function c(a){function c(b){function c(b,c,d){var e,f;for(e=c;d>e;e++)f=a.charAt(e),"\n"===f?(b.seenCR||b.line++,b.column=1,b.seenCR=!1):"\r"===f||"\u2028"===f||"\u2029"===f?(b.line++,b.column=1,b.seenCR=!0):(b.column++,b.seenCR=!1)}return nb!==b&&(nb>b&&(nb=0,ob={line:1,column:1,seenCR:!1}),c(ob,nb,b),nb=b),ob}function d(a){pb>lb||(lb>pb&&(pb=lb,qb=[]),qb.push(a))}function e(d,e,f){function g(a){var b=1;for(a.sort(function(a,b){return a.descriptionb.description?1:0});b1?g.slice(0,-1).join(", ")+" or "+g[a.length-1]:g[0],e=b?'"'+c(b)+'"':"end of input","Expected "+d+" but "+e+" found."}var i=c(f),j=flb?(c=a.charAt(lb),lb++):(c=G,0===rb&&d(kb)),rb--,c===G?b=jb:(lb=b,b=J),b}var E,F=arguments.length>1?arguments[1]:{},G={},H={start:f},I=f,J=G,K=function(a){return a[0]},L=function(){return{}},M=function(a){return{operator:a}},N=function(a,b){return b},O=function(a,b,c){var d={left:a},c=0==c.length?null:null==c[0].right?c[0].left:c[0];return null!=c&&(d.operator=""==b?"":b[0],d.right=c),d},P=function(a){return a},Q="(",R={type:"literal",value:"(",description:'"("'},S=")",T={type:"literal",value:")",description:'")"'},U=null,V=function(a,b){return b.field=a||"",b},W=function(a,b,c){return c.field=b,a&&(c.transformer=a),c},X=function(a,b,c){var d={field:b||""};a&&(d.transformer=a),!b&&a&&(d.prefix=a);for(var e in c)d[e]=c[e];return d},Y=/^[:<>]/,Z={type:"class",value:"[:<>]",description:"[:<>]"},$=function(a){return a},_=/^[^: \t\r\n\f{}()+\-!"\^~[\]]/,aa={type:"class",value:'[^: \\t\\r\\n\\f{}()+\\-!"\\^~[\\]]',description:'[^: \\t\\r\\n\\f{}()+\\-!"\\^~[\\]]'},ba=function(a,b){return a+b.join("")},ca=/^[^: \t\r\n\f{}()+"\^~[\]]/,da={type:"class",value:'[^: \\t\\r\\n\\f{}()+"\\^~[\\]]',description:'[^: \\t\\r\\n\\f{}()+"\\^~[\\]]'},ea=function(a,b,c,d){var e={term:b,quoted:!0};return c&&(e.proximity=c),d&&(e.boost=d),a&&(e.prefix=a),e},fa=function(a,b,c,d){var e={term:b};return c&&(e.similarity=c),d&&(e.boost=d),a&&(e.prefix=a),e},ga=/^[^,: \t\r\n\f{}()+\-"\^~[\]]/,ha={type:"class",value:'[^,: \\t\\r\\n\\f{}()+\\-"\\^~[\\]]',description:'[^,: \\t\\r\\n\\f{}()+\\-"\\^~[\\]]'},ia=function(a,b){return a+b.join("")},ja=/^[^, <>\t\r\n\f{}()"\^~[\]]/,ka={type:"class",value:'[^, <>\\t\\r\\n\\f{}()"\\^~[\\]]',description:'[^, <>\\t\\r\\n\\f{}()"\\^~[\\]]'},la='"',ma={type:"literal",value:'"',description:'"\\""'},na=/^[^"]/,oa={type:"class",value:'[^"]',description:'[^"]'},pa=function(a){return a.join("")},qa="~",ra={type:"literal",value:"~",description:'"~"'},sa=function(a){return a},ta="^",ua={type:"literal",value:"^",description:'"^"'},va=function(a){return a},wa=function(a){return a||.5},xa="0.",ya={type:"literal",value:"0.",description:'"0."'},za=/^[0-9]/,Aa={type:"class",value:"[0-9]",description:"[0-9]"},Ba=function(a){return parseFloat("0."+a.join(""))},Ca=function(a){return parseInt(a.join(""))},Da="[",Ea={type:"literal",value:"[",description:'"["'},Fa="TO",Ga={type:"literal",value:"TO",description:'"TO"'},Ha="]",Ia={type:"literal",value:"]",description:'"]"'},Ja=function(a,b){return{lowerBound:a,upperBound:b,inclusive:!0}},Ka="{",La={type:"literal",value:"{",description:'"{"'},Ma="}",Na={type:"literal",value:"}",description:'"}"'},Oa=function(a,b){return{lowerBound:a,upperBound:b,inclusive:!1}},Pa=function(a){return a},Qa="OR",Ra={type:"literal",value:"OR",description:'"OR"'},Sa="AND",Ta={type:"literal",value:"AND",description:'"AND"'},Ua="NOT",Va={type:"literal",value:"NOT",description:'"NOT"'},Wa="||",Xa={type:"literal",value:"||",description:'"||"'},Ya=function(){return"OR"},Za="&&",$a={type:"literal",value:"&&",description:'"&&"'},_a=function(){return"AND"},ab="+",bb={type:"literal",value:"+",description:'"+"'},cb="-",db={type:"literal",value:"-",description:'"-"'},eb="!",fb={type:"literal",value:"!",description:'"!"'},gb={type:"other",description:"whitespace"},hb=/^[ \t\r\n\f]/,ib={type:"class",value:"[ \\t\\r\\n\\f]",description:"[ \\t\\r\\n\\f]"},jb=void 0,kb={type:"any",description:"any character"},lb=0,mb=0,nb=0,ob={line:1,column:1,seenCR:!1},pb=0,qb=[],rb=0;if("startRule"in F){if(!(F.startRule in H))throw new Error("Can't start parsing from rule \""+F.startRule+'".');I=H[F.startRule]}if(E=I(),E!==G&&lb===a.length)return E;throw E!==G&&lb0){var d=[];return a.each(function(){d.push(angular.element(this).html().substring(0,2))}),d.join(", ")+" "}return c.startLabel}}),a.$watch(c.ngModel,function(){b.multiselect("refresh")})}}}angular.module("udb.core").directive("udbMultiselect",a)}()}(),function(){!function(){"use strict";function a(){function a(a,b,c,d){d&&"time"===c.type&&d.$formatters.unshift(function(a){return a.replace(/:\d{2}[.,]\d{3}$/,"")})}return{restrict:"A",require:"ngModel",link:a}}angular.module("udb.core").directive("udbTime",a)}()}(),function(){"use strict";function a(a,b){function c(a){var b=_.reject(a.sameAs,function(a){return a.contains("uitinvlaanderen")});return b}function d(a){return/^(https?)/.test(a)}function e(a){return i()?b.publicationUrl.place?b.publicationUrl.place+a:!1:b.publicationUrl.event?b.publicationUrl.event+a:!1}function f(){return i()||"everyone"===j.event.audience.audienceType}function g(a){return b.cultuurkuur.cultuurkuurUrl?b.cultuurkuur.cultuurkuurUrl+"agenda/e/x/"+a:!1}function h(){return!i()&&"education"===j.event.audience.audienceType}function i(){return _.includes(j.event.url,"place")?!0:!1}var j=this;j.event=a.event,j.sameAsRelations=c,j.isUrl=d,j.getPublicUrl=e,j.showPublicUrl=f,j.getCultuurkuurKUrl=g,j.showCultuurkuurUrl=h,j.publicationRulesLink=b.publicationRulesLink,j.publicationBrand=b.publicationUrl.brand}angular.module("udb.core").directive("udbWorkflowStatus",function(){return{templateUrl:"templates/udb.workflow-status.directive.html",controller:a,controllerAs:"cm",restrict:"A",scope:{event:"<":"tussen","+":"is gelijk aan","!":"is niet gelijk aan","-":"is niet gelijk aan",">":"is groter of gelijk aan","<":"is kleiner of gelijk aan",">_DATE":"later dan","<_DATE":"vroeger dan","=_DATE":"is gelijk aan","><_DATE":"tussen",choice:{everyone:"iedereen",members:"leden",education:"onderwijs",Available:"Gaat door",Unavailable:"Geannuleerd",TemporarilyUnavailable:"Uitgesteld",asc:"oplopend",desc:"aflopend",today:"vandaag",tomorrow:"morgen",thisweekend:"dit weekend",nextweekend:"volgend weekend",next7days:"volgende 7 dagen",next14days:"volgende 14 dagen",next30days:"volgende 30 dagen",next3months:"volgende 3 maanden",next6months:"volgende 6 maanden",next12months:"volgende 12 maanden",permanent:"permanent",event:"event",place:"locatie",actor:"actor",production:"productie",nl:"Nederlands",fr:"Frans",en:"Engels",de:"Duits",AF:"Afghanistan",AX:"Alandeilanden",AL:"Albanië",DZ:"Algerije",AS:"Amerikaans Samoa",VI:"Amerikaanse Maagdeneilanden",UM:"Amerikaanse kleinere afgelegen eilanden",AD:"Andorra",AO:"Angola",AI:"Anguilla",AQ:"Antarctica",AG:"Antigua en Barbuda",AR:"Argentinië",AM:"Armenië",AW:"Aruba",AU:"Australië",AZ:"Azerbeidzjan",BS:"Bahama’s",BH:"Bahrein",BD:"Bangladesh",BB:"Barbados",BE:"België",BZ:"Belize",BJ:"Benin",BM:"Bermuda",BT:"Bhutan",BO:"Bolivia",BA:"Bosnië en Herzegovina",BW:"Botswana",BV:"Bouveteiland",BR:"Brazilië",IO:"Britse Gebieden in de Indische Oceaan",VG:"Britse Maagdeneilanden",BN:"Brunei",BG:"Bulgarije",BF:"Burkina Faso",BI:"Burundi",KH:"Cambodja",CA:"Canada",KY:"Caymaneilanden",CF:"Centraal-Afrikaanse Republiek",CL:"Chili",CN:"China",CX:"Christmaseiland",CC:"Cocoseilanden",CO:"Colombia",KM:"Comoren",CG:"Congo",CD:"Congo-Kinshasa",CK:"Cookeilanden",CR:"Costa Rica",CU:"Cuba",CY:"Cyprus",DK:"Denemarken",DJ:"Djibouti",DM:"Dominica",DO:"Dominicaanse Republiek",DE:"Duitsland",EC:"Ecuador",EG:"Egypte",SV:"El Salvador",GQ:"Equatoriaal-Guinea",ER:"Eritrea",EE:"Estland",ET:"Ethiopië",FO:"Faeröer",FK:"Falklandeilanden",FJ:"Fiji",PH:"Filipijnen",FI:"Finland",FR:"Frankrijk",GF:"Frans-Guyana",PF:"Frans-Polynesië",TF:"Franse Gebieden in de zuidelijke Indische Oceaan",GA:"Gabon",GM:"Gambia",GE:"Georgië",GH:"Ghana",GI:"Gibraltar",GD:"Grenada",GR:"Griekenland",GL:"Groenland",GP:"Guadeloupe",GU:"Guam",GT:"Guatemala",GG:"Guernsey",GN:"Guinee",GW:"Guinee-Bissau",GY:"Guyana",HT:"Haïti",HM:"Heard- en McDonaldeilanden",IM:"Het Eiland Man",HN:"Honduras",HU:"Hongarije",HK:"Hongkong SAR van China",IS:"IJsland",IE:"Ierland",IN:"India",ID:"Indonesië",IQ:"Irak",IR:"Iran",IL:"Israël",IT:"Italië",CI:"Ivoorkust",JM:"Jamaica",JP:"Japan",YE:"Jemen",JE:"Jersey",JO:"Jordanië",CV:"Kaapverdië",CM:"Kameroen",KZ:"Kazachstan",KE:"Kenia",KG:"Kirgizië",KI:"Kiribati",KW:"Koeweit",HR:"Kroatië",LA:"Laos",LS:"Lesotho",LV:"Letland",LB:"Libanon",LR:"Liberia",LY:"Libië",LI:"Liechtenstein",LT:"Litouwen",LU:"Luxemburg",MO:"Macao SAR van China",MK:"Macedonië",MG:"Madagaskar",MW:"Malawi",MV:"Malediven",MY:"Maleisië",ML:"Mali",MT:"Malta",MA:"Marokko",MH:"Marshalleilanden",MQ:"Martinique",MR:"Mauritanië",MU:"Mauritius",YT:"Mayotte",MX:"Mexico",FM:"Micronesië",MD:"Moldavië",MC:"Monaco",MN:"Mongolië",ME:"Montenegro",MS:"Montserrat",MZ:"Mozambique",MM:"Myanmar",NA:"Namibië",NR:"Nauru",NL:"Nederland",AN:"Nederlandse Antillen",NP:"Nepal",NI:"Nicaragua",NC:"Nieuw-Caledonië",NZ:"Nieuw-Zeeland",NE:"Niger",NG:"Nigeria",NU:"Niue",KP:"Noord-Korea",MP:"Noordelijke Marianeneilanden",NO:"Noorwegen",NF:"Norfolkeiland",UG:"Oeganda",UA:"Oekraïne",UZ:"Oezbekistan",OM:"Oman",ZZ:"Onbekend of onjuist gebied",TL:"Oost-Timor",AT:"Oostenrijk",PK:"Pakistan",PW:"Palau",PS:"Palestijns Gebied",PA:"Panama",PG:"Papoea-Nieuw-Guinea",PY:"Paraguay",PE:"Peru",PN:"Pitcairn",PL:"Polen",PT:"Portugal",PR:"Puerto Rico",QA:"Qatar",RO:"Roemenië",RU:"Rusland",RW:"Rwanda",RE:"Réunion",BL:"Saint Barthélemy",KN:"Saint Kitts en Nevis",LC:"Saint Lucia",PM:"Saint Pierre en Miquelon",VC:"Saint Vincent en de Grenadines",SB:"Salomoneilanden",WS:"Samoa",SM:"San Marino",ST:"Sao Tomé en Principe",SA:"Saoedi-Arabië",SN:"Senegal",RS:"Servië",CS:"Servië en Montenegro",SC:"Seychellen",SL:"Sierra Leone",SG:"Singapore",SH:"Sint-Helena",MF:"Sint-Maarten",SI:"Slovenië",SK:"Slowakije",SD:"Soedan",SO:"Somalië",ES:"Spanje",LK:"Sri Lanka",SR:"Suriname",SJ:"Svalbard en Jan Mayen",SZ:"Swaziland",SY:"Syrië",TJ:"Tadzjikistan",TW:"Taiwan",TZ:"Tanzania",TH:"Thailand",TG:"Togo",TK:"Tokelau",TO:"Tonga",TT:"Trinidad en Tobago",TD:"Tsjaad",CZ:"Tsjechië",TN:"Tunesië",TR:"Turkije",TM:"Turkmenistan",TC:"Turks- en Caicoseilanden",TV:"Tuvalu",UY:"Uruguay",VU:"Vanuatu",VA:"Vaticaanstad",VE:"Venezuela",GB:"Verenigd Koninkrijk",AE:"Verenigde Arabische Emiraten",US:"Verenigde Staten",VN:"Vietnam",WF:"Wallis en Futuna",EH:"Westelijke Sahara",BY:"Wit-Rusland",ZM:"Zambia",ZW:"Zimbabwe",ZA:"Zuid-Afrika",GS:"Zuid-Georgië en Zuidelijke Sandwicheilanden",KR:"Zuid-Korea",SE:"Zweden",CH:"Zwitserland"},property:{name:"Titel",description:"Beschrijving",labels:"Labels",calendarSummary:"Kalendersamenvatting",image:"Afbeelding",location:"Locatie",address:"Adres",organizer:"Organisator",priceInfo:"Prijsinformatie",kansentarief:"Kansentarief",bookingInfo:"Reservatie-info",contactPoint:"Contactinfo",creator:"Auteur","terms.theme":"Thema","terms.eventtype":"Type",created:"Datum aangemaakt",modified:"Datum laatste aanpassing",publisher:"Auteur",available:"Embargodatum",endDate:"Einddatum",startDate:"Begindatum",calendarType:"Tijd type",sameAs:"Externe IDs",typicalAgeRange:"Leeftijd",language:"Taal",audience:"Toegang"},preview:{tabs:{data:"Gegevens",history:"Historiek",publication:"Publicatie"},not_found:"Pagina niet gevonden",not_found_help:"Deze pagina kon niet gevonden worden.",loading:"Aan het laden...",edit:"Bewerken",duplicate:"Kopiëren en aanpassen",change_status:"Status wijzigen","delete":"Verwijderen",title:"Titel",type:"Type",entrance:"Toegang", +description:"Beschrijving",no_description:"Geen beschrijving",where:"Waar",bookable_event_location_info:"Locatie in overleg met de school.",when:"Wanneer",labels:"Labels",labels_error:"Het toevoegen van het label '{{labelName}}' is niet gelukt.",labels_success:"Het label '{{addedLabel}}' werd succesvol toegevoegd.",organizer:"Organisatie",no_organizer:"Geen organisatie-informatie",price:"Prijs",free:"Gratis",currency:"euro",no_price:"Geen prijsinformatie",age_label:"Geschikt voor",all_ages:"Alle leeftijden",no_age:"Geen leeftijdsinformatie",publiq_url:"Bekijk op {{publicationBrand}}",translate:"Vertalen"},translate:{ready:"Klaar met vertalen",translate:"vertalen",original:"origineel",edit:"Bewerk",translation:"Vertaling",description:"Beschrijving",title:"Titel",tariff:"Prijstarief",address:"Adres",street:"Straat en nummer"},labels:{what:"Met een label voeg je korte, specifieke trefwoorden toe.",invalid:"Dit lijkt een ongeldig label. Een label",chars:"bestaat enkel uit letters of cijfers",excluded:"bevat enkel '-' en '_', maar mag niet met deze tekens beginnen",length:"telt 2 tot 50 karakters"},calendarSummary:{openinghours:"meerdere tijdstippen",from:"Van",till:"tot",permanent:"Permanent"},moderate:{validate:"Valideren",approve:"Goedkeuren",approved:"Goedgekeurd",reject:"Afkeuren",rejected:"Afgekeurd",continue_validation:"Verder valideren"},cultuurkuur:{info:'Dit evenement bevat extra informatie voor scholen en leerkrachten.',subject:"Onderwerp",target_group:"Doelgroep",levels:"Geschikt voor",grades:"onderwijsgraden",edit_link:"Wijzig op cultuurkuur.be",incomplete_help:"Vervolledig dit evenement op cultuurkuur.be met extra informatie voor scholen en leerkrachten.","continue":"Doorgaan"},booking:{label:"Reservatie",no_booking:"Geen reservatie-informatie"},contact:{label:"Contact",or:"of",no_contact:"Geen contactinformatie"},imageDetail:{label:"Afbeeldingen",alt_image:"Afbeelding {{index}}",main_image:"Hoofdafbeelding",no_images:"Geen afbeeldingen"},prices:{title:"Prijzen toevoegen",base:"Basistarief",target_group:"Doelgroep",free:"Gratis",currency:"euro",add_price:"Prijs invoeren",add_tarriff:"Tarief toevoegen",error:"Er ging iets fout bij het opslaan van de prijs.",invalid:"Deze prijsinformatie lijkt ongeldig en kan je daarom niet bewaren.",invalid_tip1:"Noteer decimalen met een komma.",invalid_tip2:"Laat geen enkel rij leeg, vul steeds een doelgroep en een bedrag in.",invalid_tip3:"Geef maximum twee cijfers na de komma.",close:"Sluiten",save:"Bewaren"},location:{title:"Nieuwe locatie toevoegen",name:"Naam locatie",name_validation:"De naam van de locatie is een verplicht veld.",street:"Straat en nummer",street_validation:"Straat is een verplicht veld.",city:"Gemeente",category:"Categorie",category_help:"Kies een categorie die deze locatie het best omschrijft.",category_validation:"Categorie is een verplicht veld.",error:"Er ging iets fout tijdens het opslaan van je locatie.",invalid_street:"Dit lijkt een ongeldig adres. Wanneer je spaties gebruikt in het adres, mogen er na de laatste spatie niet meer dan 15 karakters staan.",cancel:"Annuleren",add:"Toevoegen",zip:"Postcode",nlPostalCode_validation:"Postcode is een verplicht veld.",invalid_PostalCode:"Dit lijkt een ongeldige postcode. Een postcode bestaat uit 4 cijfers en 2 letters, zonder een spatie ertussen."},eventForm:{langWarning:"Opgelet, je (be)werkt in een andere taal: {{language}}. Is dit niet de bedoeling, neem dan contact op met vragen@uitdatabank.be.",step1:{title:"Wat wil je toevoegen?",label_event:"Een evenement",show_everything:"Toon alles",or:"of",location_label:"Een locatie",change:"Wijzigen",refine:"Verfijn"},step2:{date_help_event:"Wanneer vindt dit evenement of deze activiteit plaats?",date_help_place:"Wanneer is deze plaats of locatie open?"},step3:{title_event:"Waar vindt dit evenement of deze activiteit plaats?",title_place:"Waar is deze plaats of locatie?",choose_city:"Kies een gemeente",choose_city_helper:"bv. Gent of 9000",choose_residence:"Kies een woonplaats",choose_residence_helper:"bv. Groningen of Amsterdam",placeholder_city:"Gemeente of postcode",problem_city:"Er was een probleem tijdens het ophalen van de steden",change:"Wijzigen",choose_location:"Kies een locatie",placeholder_location:"Naam of adres",location_not_found:"Locatie niet gevonden?",add_location:"Een locatie toevoegen",location_error:"Er was een probleem tijdens het ophalen van de locaties",street:"Straat en nummer",placeholder_street:"Kerkstraat 1",street_validate:"Straat en nummer is een verplicht veld.",street_validate_long:"Dit lijkt een ongeldig adres. Wanneer je spaties gebruikt in het adres, mogen er na de laatste spatie niet meer dan 15 karakters staan.",ok:"OK",zip:"Postcode",zip_validate:"Postcode is een verplicht veld.",invalid_zip:"Dit lijkt een ongeldige postcode. Een postcode bestaat uit 4 cijfers en 2 letters, zonder een spatie ertussen.",bookable_event_info_alert:"Evenementen waarvan de locatie in overleg wordt bepaald, worden niet gepubliceerd op UiTinVlaanderen of andere publiekskanalen. Je evenement verschijnt wel op cultuurkuur.be",bookable_event_next_button:"Ga verder",bookable_event_success_message:"De locatie wordt bepaald in overleg met de school."},step4:{age:{age_label:"Geschikt voor","All ages":"Alle leeftijden",Toddlers:"Peuters",Preschoolers:"Kleuters",Kids:"Kinderen",Teenagers:"Tieners",Youngsters:"Jongeren",Adults:"Volwassenen",Seniors:"Senioren",Custom:"Andere",from:"Van",till:"Tot",age:"jaar",error_max_lower_than_min:"De maximumleeftijd kan niet lager zijn dan de minimumleeftijd."},basic_data:"Basisgegevens",name_event:"Naam van het evenement",name_place:"Naam van de locatie",help_event:'Gebruik een sprekende titel, bv. "Fietsen langs kapelletjes", "De Sage van de Eenhoorn".',help_place:'Gebruik de officiële benaming, bv. "Gravensteen", "Abdijsite Herkenrode", "Cultuurcentrum De Werf".',help_description:"Een uitgebreide beschrijving kan je in stap 5 toevoegen.",info_missing:"Je vulde niet alle verplichte informatie in:",save_error:"Er ging iets fout tijdens het opslaan van je activiteit. Gelieve later opnieuw te proberen.","continue":"Doorgaan",doubles_title:"Vermijd dubbel werk",doubles_help:"We vonden gelijkaardige items. Controleer deze eerder ingevoerde items.",sure:'Ben je zeker dat je "{{name}}" wil toevoegen?',return_dashboard:"Nee, keer terug naar dashboard",yes_continue:"Ja, doorgaan met invoeren",suggestions:{from:"Van",till:"tot",permanent:"Permanent"}},step5:{expose_event:"Laat je evenement extra opvallen",expose_place:"Laat deze locatie extra opvallen",title:"Titel",description:"Beschrijving",add_text:"Tekst toevoegen",required_200:"De eerste 200 tekens zijn het belangrijkst om een nieuw publiek aan te spreken.",required_still:"Nog",required_signs:"tekens.",required_200_help:"Plaats de belangrijkste boodschap in de eerste 200 tekens. Je kan nog verder aanvullen met achtergrondinformatie.",empty:"Leegmaken",tips:{Concert:"Geef een enthousiaste omschrijving van het concert.
  • Welk(e) artiest(en) treden op? 
  • Welk genre is het?
  • Welk album of werk wordt voorgesteld?
",Dansvoorstelling:"Geef een enthousiaste omschrijving van de dansvoorstelling.
  • Wie is de choreograaf?
  • Wie zijn de dansers?
  • In welke stijl dansen ze?
  • Over welk thema of onderwerp gaat de voorstelling?
",Festival:"Geef een enthousiaste omschrijving van het festival. 
  • Wie of wat staat er op het programma? 
  • Welke (rand)animatie is er?
",Film:"Geef een enthousiaste omschrijving van de film. 
  • Schets kort het verhaal
  • Wie is de regisseur? 
  • Wie zijn de  hoofdrolspelers? 
  • Heeft de film prijzen gewonnen?
","Lezing of congres":"Geef een enthousiaste omschrijving van de lezing of het congres. 
  • Welke thema’s komen aan bod? 
  • Welke sprekers nemen het woord?
",Theatervoorstelling:"Geef een enthousiaste omschrijving van de voorstelling. 
  • Schets kort het verhaal of het thema
  • Welk theatergezelschap brengt het stuk? 
  • Welke acteurs spelen mee?
","Sportwedstrijd bekijken":"Geef een enthousiaste omschrijving van de sportwedstrijd. 
  • Welke ploegen of deelnemers spelen er mee? 
  • In welke competitie kadert de wedstrijd?
","Markt of braderie":"Geef een enthousiaste omschrijving van de markt of braderie.
  • In welke straten vindt ze plaats? 
  • Welke kramen of standjes zullen er zijn? 
  • Is er (rand)animatie?
",Opendeurdag:"Geef een enthousiaste omschrijving van de opendeurdag. Wat kan je bekijken of beleven?",Beurs:"Geef een enthousiaste omschrijving van de beurs. Wat kan je kan bekijken, beleven of kopen?",Tentoonstelling:"Geef een enthousiaste omschrijving van de tentoonstelling. 
  • Welke kunstenaars stellen tentoon?
  • Welke collecties kan je bekijken? 
  • Is er een (audio)gids of brochure beschikbaar?
","Begeleide uitstap of rondleiding":"Geef een enthousiaste omschrijving van de rondleiding. 
  • Wat valt er langs de route te bekijken of beleven
  • Is er een maximaal aantal deelnemers
  • Wordt de rondleiding doorlopend of op bepaalde tijdstippen georganiseerd? 
  • Zijn er speciale aandachtspunten (bv. laarzen aangewezen)?
",Lessenreeks:"Geef een enthousiaste omschrijving van de lessenreeks. 
  • Wat leer je er precies? 
  • Is er voorkennis nodig om deel te nemen? 
  • Wat is het niveau van de lessen? 
  • Krijg je op het einde een diploma of certificaat?
","Cursus met open sessies":"Geef een enthousiaste omschrijving van de workshop of cursus met open sessies. 
  • Wat leer je er precies? 
  • Is er voorkennis nodig om deel te nemen? 
  • Wat is het niveau van de lessen? 
  • Krijg je op het einde een diploma of certificaat?
","Kamp of vakantie":"Geef een enthousiaste omschrijving van het kamp of de vakantie. 
  • Welke activiteiten kan je er doen? 
  • Is er een thema
  • Is het kamp met of zonder overnachtingen
  • Wat is het start en einduur voor dagkampen en is er vooraf en nadien opvang voorzien?
",Festiviteit:"Geef een enthousiaste omschrijving van de kermis. 
  • Welke attracties zijn er? 
  • Zijn er (rand)activiteiten (quiz, concerten, foodtrucks, marktje ...)?
",Route:"Geef een enthousiaste omschrijving van de route. 
  • Leg je de route af te voet, per fiets, per boot …? 
  • Welke mogelijke tussenstops zijn er? 
  • Wat is de afstand of duur van de route?
  • Is de route begeleid, met een gids, brochure of wegwijzers?
","Party of fuif":"Geef een enthousiaste omschrijving van de party of fuif. Welke dj’s of bands treden er op?","Eet of drankfestijn":"Geef een enthousiaste omschrijving van het eet -of drankfestijn. 
  • Wat staat er op het menu? 
  • Gaat de opbrengst naar een goed doel
  • Is er (rand)animatie?
","Spel of quiz":"Geef een enthousiaste omschrijving van de quiz of het spel. 
  • Over welke onderwerpen gaat de quiz?
  • Heeft het spel een thema?
  • Valt er iets te winnen?
  • Is er een maximaal aantal deelnemers?
","Sport en beweging":"Geef een enthousiaste omschrijving van de sportactiviteit. 
  • Welke sport(en) kan je beoefenen? 
  • Welk materiaal wordt (niet) voorzien?
",Monument:"Geef hier een wervende omschrijving van het monument. Geef ook aan indien het monument slechts beperkt opengesteld is (vb. enkel salons)."},description_error:"Er ging iets fout bij het opslaan van de beschrijving.",organizer:"Organisatie",add_organizer:"Organisatie toevoegen",choose_organizer:"Kies een organisatie",organizer_not_found:"Organisatie niet gevonden?",add_new_organizer:"Nieuwe organisator toevoegen",organizer_error:"Er ging iets fout bij het opslaan van de organisator.",contact:"Contact & reservatie",add_contact:"Contactinformatie toevoegen",website:"Website",phone:"Telefoonnummer","e-mail":"E-mailadres",use_booking:"Gebruik voor reservatie",booking_exposure:"Hoe mag deze link verschijnen?",buy_tickets:"Koop tickets",reserve_places:"Reserveer plaatsen",check_availability:"Controleer beschikbaarheid",subscribe:"Schrijf je in",add_more_contact:"Meer contactgegevens toevoegen",contact_error:"Er ging iets fout bij het opslaan van de contact info.",facilities:"Toegankelijkheid",add_facility:"Voorzieningen toevoegen",facility_inapplicable:"Niet van toepassing",change:"Wijzigen",image_help:"Voeg een afbeelding toe zodat je bezoekers je activiteit beter herkennen.",images:"Afbeeldingen",copyright:"Copyright","delete":"Verwijderen",main_image:"Maak hoofdafbeelding",add_image:"Afbeelding toevoegen",priceInfo:{price_label:"Prijs",add_prices:"Prijzen toevoegen",free:"Gratis",prices:"Prijzen",change:"Wijzigen",currency:"euro"},reservationPeriod:{add_reservation_period:"Reservatieperiode toevoegen",reservation_period:"Reservatie periode",from:"Van",till:"Tot"}},publish:{publish_now:"Meteen publiceren",publish_later:"Later publiceren",edit_done:"Klaar met bewerken",online_from:"Online vanaf"},timeTracker:{automatic_saved:"Automatisch bewaard om",hour:"uur"},embargo:{title:"Kies een publicatiedatum",help:'Vanaf wanneer mag dit online verschijnen? Opgelet, deze datum kan je maar één keer instellen.',error_past:"Een publicatiedatum kan niet in het verleden liggen.",error_empty:"Kies een publicatiedatum.",cancel:"Annuleren",ready:"Klaar met bewerken"},imageUpload:{modalTitle:"Afbeelding toevoegen",defaultError:"Het geselecteerde bestand voldoet niet aan onze voorwaarden.",noFileSelectedError:"Er is geen bestand geselecteerd",somethingWentWrongError:"Er ging iets mis bij het opslaan van de afbeelding.",maxSize:"Het bestand dat je probeert te uploaden is te groot. De maximum grootte is ",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"},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"},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",price:"prijs",status:"status",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",ORGANISATIES_BEHEREN:"Organisaties beheren",GEBRUIKERS_BEHEREN:"Gebruikers beheren",LABELS_BEHEREN:"Labels beheren",VOORZIENINGEN_BEWERKEN:"Voorzieningen bewerken",ORGANISATIES_BEWERKEN:"Organisaties bewerken",PRODUCTIES_AANMAKEN:"Producties 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:"UiTPAS kan momenteel niet bereikt worden, probeer het later opnieuw of contacteer de helpdesk (vragen@uitdatabank.be)."},cardSystems:{card_systems:"Kaartsystemen",choose:"--Selecteer een verdeelsleutel--",retry:"Opnieuw registreren",unavailable:"kan UiTPAS momenteel niet bereiken, probeer het later opnieuw of contacteer de helpdesk (vragen@uitdatabank.be)"}},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 3 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",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","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",savedSearches:{savedSearches:"Bewaarde zoekopdrachten",items:{"Door mij ingevoerd":"Door mij ingevoerd"},mySearches:"Mijn zoekopdrachten",title:"Titel",viewResults:"Resultaten bekijken"},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"}}})}(),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é",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",location:"Lieu",address:"Adresse",organizer:"Organisateur",priceInfo:"Information du prix",kansentarief:"Allocataires sociaux",bookingInfo:"Info réservation",contactPoint:"Info contact",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_status:"Modifier l'état","delete":"Supprimer",title:"Titre",type:"Type",entrance:"Entrée",description:"Description",no_description:"Aucune description",where:"Où",when:"Quand",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",currency:"euro",no_price:"Pas d'information du prix",age_label:"Adapté à",all_ages:"Tous les âges",no_age:"Pas d'information de l'âge",publiq_url:"Voir sur {{publicationBrand}}",translate:"Traduire"},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:{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"},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:"Ou 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 pouvez-vous consulter?
  • 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ébut et 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"},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"},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",price:"prix",status:"status",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",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","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:"UiTPAS n'est pas disponible pour l'instant, essayez plus tard ou contactez le helpdesk (vragen@uitdatabank.be)."},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",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é",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","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é",savedSearches:{savedSearches:"Recherches conservées",items:{"Door mij ingevoerd":"Encodé par moi"},mySearches:"Mes recherches",title:"Titre",viewResults:"Consulter résultats"},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:"Zoeken"}}})}(),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(),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.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){var f=_.cloneDeep(q);return f.params={query:a,limit:d?d:30,start:e?e:0},b.get(c.baseUrl+"labels/",f).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/v3",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/v3",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/v3",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.status=a.status,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.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.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)},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.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 evenementen 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,a.isGodUser?a.permissions={editing:!0,duplication:!0}:c?a.permissions={editing:!d.isExpired(),duplication:!0}:a.permissions={editing:!1,duplication:!1},q()})}function p(b){var c="";_.forEach(b,function(a){_.contains(a.permissions,"AANBOD_MODEREREN")&&a.constraints&&a.constraints.v3&&(c+=(c?" OR ":"")+"("+a.constraints.v3+")")}),c=c?"("+c+")":"";var d="cdbid";return c="("+c+" AND "+d+":"+a.event.id+")",l.find(c,10,0).then(function(a){return a})}function q(){a.isGodUser?a.tabs=[{id:"data"},{id:"history"},{id:"publication"}]:a.tabs=[{id:"data"},{id:"publication"}]}function r(b){a.eventHistory=b}function s(b){a.calendarSummary=b}function t(){a.calendarSummary=!1}function u(b){G=b,"permanent"===G.calendarType?s("Altijd open"):c.getCalendarSummary(b.id,"lg",a.language).then(s,t),a.event=d(b,F,!0),a.allAges=!/\d/.test(b.typicalAgeRange),a.noAgeInfo=""===b.typicalAgeRange,b.typicalAgeRange.indexOf("-")===b.typicalAgeRange.length-1?a.ageRange=b.typicalAgeRange.slice(0,-1)+"+":a.ageRange=b.typicalAgeRange,a.eventIdIsInvalid=!1,B(),C(),l.getMyRoles().then(function(b){var c=_.filter(b,function(a){var b=_.filter(a.permissions,function(a){return a===m.AANBOD_MODEREREN});return b.length>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(G.labels,function(a){return b.name.toUpperCase()===a.toUpperCase()});c?h.alert('Het label "'+b.name+'" is reeds toegevoegd als "'+c+'".'):i.label(G,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(G.labels)})}function y(){a.labelResponse="",a.labelsError=""}function z(b){a.event.labels=angular.copy(G.labels),a.labelResponse="unlabelError",a.labelsError=b.title}function A(a){y(),i.unlabel(G,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;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 F=j.use()||"nl";a.language=F;var G;a.eventLocation=function(b){var c=d(b.location,F,!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.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(){_.isEmpty(a.timeSpans)?(g(),a.instantTimeSpanChanged()):a.timeSpans.push(_.cloneDeep(_.last(a.timeSpans)))}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>=3}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>=3}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;g0?e.getTicketSales(m.eventId,m.organizer).then(function(a){a?m.hasTicketSales=a:i()},function(){m.hasUitpasError=!0}):i()}function i(){var b=a.open({templateUrl:"templates/price-form-modal.html",controller:"PriceFormModalController",controllerAs:"pfmc",size:"lg",resolve:{price:function(){return m.price}}});b.result.then(k,l)}function j(){m.price=b.priceInfo,m.price.length?m.priceCssClass="state-complete":m.priceCssClass=""}function k(){m.savingPrice=!0,m.price=b.priceInfo,m.editPrice=!1;var a=c.updatePriceInfo(b);a.then(function(){d.$emit("eventFormSaved",b),_.isEmpty(m.price)||(m.priceCssClass="state-complete"),m.savingPrice=!1,m.formPriceSubmitted=!1},function(){m.priceError=!0,m.savingPrice=!1,m.formPriceSubmitted=!1})}function l(){m.price=b.priceInfo}var m=this;m.mainLanguage=b.mainLanguage,m.setPriceFree=g,m.changePrice=h,m.openModal=i,m.$onInit=j}angular.module("udb.event-form").component("priceInfo",{templateUrl:"templates/priceInfo.html",controller:a,bindings:{price:"<",eventId:"<",organizer:"<"}}),a.$inject=["$uibModal","EventFormData","eventCrud","$rootScope","udbUitpasApi","$translate"]}(),function(){"use strict";function a(a,b,c){function d(){h.opened=!h.opened}function e(){a.dismiss()}function f(){h.drp.startOpened=!h.drp.startOpened}function g(){h.publicationDate?i<=h.publicationDate?(b.availableFrom=new Date(h.publicationDate.getFullYear(),h.publicationDate.getMonth(),h.publicationDate.getDate(),0,0,0),c(),a.close()):h.error="past":h.error="empty"}var h=this;h.error="",h.hasPublicationDate=!1,h.publicationDate=b.availableFrom,h.opened=!1,h.dismiss=e,h.savePublicationDate=g,h.onFocus=f,h.toggleDatePicker=d;var i=moment().add(1,"days").startOf("day").toDate();h.drp={dateFormat:"dd/MM/yyyy",startOpened:!1,options:{minDate:i,showWeeks:!1}}}angular.module("udb.event-form").controller("EventFormPublishModalController",a),a.$inject=["$uibModalInstance","eventFormData","publishEvent"]}(),function(){"use strict";function a(a,b,c){function d(){return a.availabilityStarts>a.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).format(),b.bookingInfo.availabilityEnds=moment(a.availabilityEnds).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){this.calendar.endDate=a},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){var e="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:e,status:d})},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)},initOpeningHours:function(a){d.deserialize(a)},setCalendarType:function(a){var b=this;if(b.calendar.calendarType!==a){if(b.resetCalendar(),b.calendar.calendarType=a,"single"===b.calendar.calendarType&&(e.calendarHighlight.date?b.addTimeSpan(new Date(e.calendarHighlight.date),e.calendarHighlight.startTime||"",e.calendarHighlight.startTime?c(e.calendarHighlight.date+" "+e.calendarHighlight.startTime,"YYYY-MM-DD HH:mm").toDate():"",e.calendarHighlight.endTime||"",e.endTime?c(e.calendarHighlight.date+" "+e.calendarHighlight.endTime,"YYYY-MM-DD HH:mm").toDate():""):b.addTimeSpan(c().startOf("day"),c().endOf("day")), +b.saveTimeSpans(b.calendar.timeSpans)),"permanent"===b.calendar.calendarType&&(b.calendar.startDate=void 0,b.calendar.endDate=void 0,b.timingChanged()),"periodic"===b.calendar.calendarType){if(b.calendar.startDate=c().startOf("day").toDate(),e.addOffer.defaultEndPeriod){var d=e.addOffer.defaultEndPeriod;b.calendar.endDate=c(b.calendar.startDate).add(d,"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,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"):"",{type:"Available"}),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,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 i(),a.missingInfo.length>0?void(a.infoMissing=!0):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.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 evenementen mislukt":"Document ."+a.extension+" met "+a.eventCount+" evenementen"}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:"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:"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=f.activeExport.query.queryString+' AND workflowStatus:("APPROVED" OR "READY_FOR_VALIDATION")',l=f.activeExport.selection||[],m=f.activeExport.eventCount,n=j.brand||"",o=null,p=e.getObject("user"),q=c.exportEvents(k,g,b,h,i,l,j);return o={format:b,user:p.id,brand:n,queryString:k},q.success(function(c){var e=new d(c.commandId,m,b,o);a.addJob(e),e.start()}),q}}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)},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"===q["continue"]}function g(){return q.offer.workflowStatus===c.READY_FOR_VALIDATION}function h(){return q.offer.workflowStatus===c.APPROVED}function i(){return q.offer.workflowStatus===c.REJECTED}function j(){q.error=!1,a.approve(q.offer).then(function(){q.offer.workflowStatus=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){q.error=!1,a.reject(q.offer,b).then(function(){q.offer.workflowStatus=c.REJECTED})["catch"](p)}function n(){q.error=!1,a.flagAsDuplicate(q.offer).then(function(){q.offer.workflowStatus=c.REJECTED})["catch"](p)}function o(){q.error=!1,a.flagAsInappropriate(q.offer).then(function(){q.offer.workflowStatus=c.REJECTED})["catch"](p)}function p(a){q.error=a.title+(a.detail?" "+a.detail:"")}var q=this,r="nl";q.loading=!0,q.offer={},q.error=!1,q.isReadyForValidation=g,q.isApproved=h,q.isRejected=i,q.approve=j,q.askForRejectionReasons=k,q.continueValidation=f,a.getModerationOffer(q.offerId).then(function(a){a.updateTranslationState(),q.offer=b(a,r)})["catch"](e)["finally"](function(){q.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",ORGANISATIES_BEWERKEN:"ORGANISATIES_BEWERKEN",ORGANISATIES_BEHEREN:"ORGANISATIES_BEHEREN",GEBRUIKERS_BEHEREN:"GEBRUIKERS_BEHEREN",LABELS_BEHEREN:"LABELS_BEHEREN",VOORZIENINGEN_BEWERKEN:"VOORZIENINGEN_BEWERKEN",PRODUCTIES_AANMAKEN:"PRODUCTIES_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].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){function f(b){a.get(b).then(g)}function g(a){s.organizer=a}function h(b){s.labelSaving=!0,k(),a.addLabelToOrganizer(t,b.name)["catch"](q)["finally"](function(){s.labelSaving=!1,j()})}function i(b){s.labelSaving=!0,k(),j(),a.deleteLabelFromOrganizer(t,b.name)["catch"](p)["finally"](function(){s.labelSaving=!1})}function j(){a.removeOrganizerFromCache(t)}function k(){s.labelResponse="",s.labelsError=""}function l(){return-1!==u.indexOf("manage")}function m(){d.path("/manage/organizations")}function n(){o(s.organizer)}function o(a){var c=b.open({templateUrl:"templates/organization-delete.modal.html",controller:"OrganizationDeleteModalController",controllerAs:"odc",resolve:{organization:function(){return a}}});c.result.then(m)}function p(a){f(t),s.labelResponse="unlabelError",s.labelsError=a.title}function q(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}}})}function r(){return s.organizer&&!s.loadingError}var s=this,t=c.id,u=e.current.name;s.labelSaving=!1,s.addLabel=h,s.deleteLabel=i,s.labelResponse="",s.labelsError="",s.deleteOrganization=n,s.isManageState=l,s.finishedLoading=r,f(t)}angular.module("udb.organizers").controller("OrganizerDetailController",a),a.$inject=["OrganizerManager","$uibModal","$stateParams","$location","$state"]}(),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.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){return{templateUrl:"templates/search-bar.directive.html",restrict:"E",link:function(e,f,g){function h(a){var b="";return _.forEach(a,function(a){b+=a+"\n"}),b}function i(a){k.savedSearches=_.take(a,5)}var j,k={ +queryString:"",hasErrors:!1,errors:"",isEditing:!1,savedSearches:[]};k.editQuery=function(){b.$emit("startEditingQuery"),k.isEditing=!0,j=c.open({templateUrl:"templates/query-editor-modal.html",controller:"QueryEditorController",controllerAs:"qe",size:"lg"})},k.find=function(c){var d="undefined"!=typeof c?c:k.queryString;k.queryString=d,a.setQueryString(d),b.$emit("searchSubmitted")},k.queryChanged=function(){a.clearQueryTree()},e.sb=k,k.updateQuery=function(a,b){k.queryString=b.queryString,b.errors&&b.errors.length?(e.sb.hasErrors=!0,e.sb.errors=h(b.errors)):(e.sb.hasErrors=!1,e.sb.errors="")},d.getSavedSearches().then(i);var l=b.$on("savedSearchesChanged",function(a,b){i(b)}),m=b.$on("stopEditingQuery",function(){e.sb.isEditing=!1,j&&j.dismiss()}),n=b.$on("searchQueryChanged",k.updateQuery);e.$on("$destroy",l),e.$on("$destroy",m),e.$on("$destroy",n)}}}angular.module("udb.search").directive("udbSearchBar",a),a.$inject=["searchHelper","$rootScope","$uibModal","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:"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.label",type:"term",group:"what",editable:!0},{name:"locationtype",field:"terms.label",type:"term",group:"what",editable:!0},{name:"category_theme_name",field:"terms.label",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:"price",field:"price",type:"number",group:"other",editable:!0},{name:"status",field:"status",type:"choice",group:"other",editable:!0,options:["Available","Unavailable","TemporarilyUnavailable"]},{name:"organiser_label",field:"organizer.name.\\*",type:"tokenized-string",group:"other",editable:!0},{name:"category_facility_name",field:"terms.label",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.id",type:"string"},{field:"mediaObjectsCount",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"},{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;null!==o&&o!==c&&(p?_.contains(d,o)||g.push(o+" is not a valid parent search field that can be used with a wildcard"):_.contains(b,o)||g.push(o+" 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;null!==o&&o!==c&&(p?_.contains(d,o)||g.push(o+" is not a valid parent search field that can be used with a wildcard"):_.contains(b,o)||g.push(o+" 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(){l.uitpasUnavailable=!0}function f(){l.uitpasUnavailable=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(){a.active=!a.active,e()}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",'\n \n \n \n \n
    \n
  • \n
    \n \n {{::translateImageDetail(\'alt_image\', {index: $index}) }}\n \n
    \n
    \n \n

    {{image.description}}

    \n

    © {{image.copyrightHolder}}

    \n
    \n
    \n
  • \n
\n \n \n\n'),a.put("templates/udb.workflow-status.directive.html",'\n \n \n \n \n {{::cm.status | translate }}\n {{cm.event.availableFrom | date: \'dd/MM/yyyy\'}}\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/unexpected-error-modal.html",'\n\n\n'),a.put("templates/event-cultuurkuur.html",'
\n
\n

\n
\n
\n

\n
\n
\n
\n \n
\n
\n \n
\n
\n
\n

Vervolledig dit evenement op cultuurkuur.be met extra informatie voor scholen en leerkrachten.

\n Doorgaan\n
\n
\n
\n
\n
\n

\n
\n
\n
\n'),a.put("templates/dashboard-item.directive.html",'\n \n \n \n \n Online op \n Publicatie afgewezen \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
\n \n
\n \n
\n \n
\n
\n\n'),a.put("templates/dashboard-organizer-item.directive.html",'\n \n \n \n
\n \n \n ,\n \n \n\n\n\n \n
\n \n
\n
\n\n'),a.put("templates/event-delete-confirm-modal.html",'\n\n'),a.put("templates/place-delete-confirm-modal.html",'\n\n'),a.put("templates/dashboard.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
\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 \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\n
\n
\n\n
\n'), a.put("templates/event-duplication-footer.component.html",'
\n \n \n \n
'),a.put("templates/event-duplication-step.component.html",'

\n\n\n\n\n'),a.put("templates/event-duplication.html",'
\n \n \n
\n'),a.put("templates/job-logo.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 \n
\n'),a.put("templates/offer-label-modal.html",'\n\n\n'),a.put("templates/base-job.template.html",'

\n \n \n \n \n

\n'),a.put("templates/failed-job.template.html",'

\n \n \n \n \n \n \n \n

\n'),a.put("templates/job-log.component.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
    \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/booking-info-detail.directive.html",'\n \n \n \n \n
    \n
  • \n \n \n \n
  • \n\n
  • \n
  • {{::bookingInfo.email}}
  • \n
  • Van {{::bookingInfo.availabilityStarts | date}} tot {{::bookingInfo.availabilityEnds | date}}
  • \n
\n \n \n\n'),a.put("templates/contact-point-detail.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 \n\n'),a.put("templates/event-detail.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
\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 \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 \n \n \n \n \n \n \n \n \n \n \n\n \n \n \n
{{::event.name}}
{{::translateType(event.type.label)}}
Toegang\n

\n \n \n
\n \n \n

\n \n \n

\n

\n \n

\n

\n \n

\n

\n \n

\n
\n
\n
{{eventLocation(event)}}\n {{eventLocation(event)}}\n
\n \n \n Probleem bij het ophalen van de kalenderinformatie\n \n
\n {{::event.organizer.name}}\n {{::event.organizer.name}}\n
\n \n \n \n \n \n
{{priceInfo.name}}\n \n \n {{priceInfo.price | currency}} \n \n
\n
\n {{ageRange}}\n \n \n
\n
\n\n
\n
\n

\n \n

\n
\n
\n
\n
\n \n
\n \n
\n API: \n
\n
\n API key: \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/form-age.html",'
\n \n \n
\n \n \n {{ translateAgeRange(ageRange.label) }}\n {{ getAgeRangeLabel(ageRange) }}\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/form-audience.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
'),a.put("templates/form-calendar-datepicker.component.html",'

\n \n \n \n \n

'),a.put("templates/form-calendar-period.component.html",'
\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/form-calendar-timepicker.component.html",'\n\n'),a.put("templates/form-event-calendar.component.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
\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
\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
\n
\n
\n
\n'), a.put("templates/form-place-calendar.component.html",'
\n
\n
\n
\n \n
\n \n \n
\n
\n \n \n
\n
\n
\n
\n
\n
\n'),a.put("templates/city-suggestion.html",'\n'),a.put("templates/event-form-image-edit.html",'\n'),a.put("templates/event-form-image-remove.html",'\n'),a.put("templates/event-form-image-upload.html",'\n'),a.put("templates/opening-hours-editor.modal.html",'\n\n\n'),a.put("templates/event-form-openinghours.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
\n
\n
\n'),a.put("templates/event-form-organizer-modal.html",'\n\n\n\n'),a.put("templates/organizer-typeahead-template.html","{{match.model.name}}"),a.put("templates/event-form-place-modal.html",'\n\n\n'),a.put("templates/place-suggestion-popup.html",''),a.put("templates/place-suggestion.html",'
\n \n \n \n
\n'),a.put("templates/price-form-modal.html",'\n\n\n\n'),a.put("templates/priceInfo.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 \n \n
{{priceInfo.name[$ctrl.mainLanguage]}}\n \n Gratis\n \n \n {{priceInfo.price | currency:\'€\' }} \n \n
\n
\n
\n
\n\n
\n
\n
\n'), a.put("templates/event-form-publish-modal.html",'\n\n\n'),a.put("templates/reservation-period.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
\n
\n
\n
\n \n \n \n \n \n
\n
\n
\n
\n
\n
'),a.put("templates/event-preview.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 \n \n \n \n \n \n
\n \n \n
\n \n \n \n \n
\n \n \n
\n
\n gratis\n \n \n \n \n \n niet ingevoerd\n
\n
\n
\n
\n\n
\n \n Ingevoerd door \n op \n \n \n
\n'),a.put("templates/event-suggestion.directive.html",''),a.put("templates/place-preview.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 \n \n \n
\n \n \n
\n \n \n \n \n
\n
\n
\n\n
\n \n Ingevoerd door \n op \n \n
\n'),a.put("templates/place-suggestion.directive.html",''),a.put("templates/suggestion-preview-modal.html",'\n\n\n'),a.put("templates/event-form-publish.html",'
\n
\n\n \n
\n \n \n \n \n \n \n \n
\n
\n \n Loading...\n
\n
\n'),a.put("templates/event-form-step1.html",'
\n \n
\n
\n
\n
\n

\n 1\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
    \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
  • \n \n
  • \n
\n
\n
\n
\n
\n\n

\n \n \n

\n\n
\n\n
\n'),a.put("templates/event-form-step2.html",'
\n \n
\n
\n
\n
\n

\n 2\n \n \n

\n
\n
\n
\n\n \n \n
\n
\n'),a.put("templates/event-form-step3.html",'
\n\n
\n
\n
\n
\n
\n

\n 3\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 \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 \n \n
\n \n
\n\n
\n
\n
\n\n
\n
\n
\n
\n
\n \n \n \n \n \n \n
\n
\n \n bv. 1104CA\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/event-form-step4.html",'
\n\n \n
\n
\n
\n
\n

\n 4\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 \n\n
\n \n
    \n
  • \n {{error}}\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
\n
\n \n
\n
\n\n
\n
\n \n
\n
\n
\n
\n\n

\n \n

\n \n\n
\n\n
\n'), diff --git a/src/core/translations/dutch-translations.constant.js b/src/core/translations/dutch-translations.constant.js index 206fbcd1a..2a603e589 100644 --- a/src/core/translations/dutch-translations.constant.js +++ b/src/core/translations/dutch-translations.constant.js @@ -38,6 +38,9 @@ angular.module('udb.core') 'everyone': 'iedereen', 'members': 'leden', 'education': 'onderwijs', + 'Available': 'Gaat door', + 'Unavailable': 'Geannuleerd', + 'TemporarilyUnavailable': 'Uitgesteld', 'asc': 'oplopend', 'desc': 'aflopend', 'today': 'vandaag', @@ -753,6 +756,7 @@ angular.module('udb.core') 'organiser_id': 'organisatie (id)', 'agefrom': 'leeftijd', 'price': 'prijs', + 'status': 'status', 'organiser_label': 'organisatie (naam)', 'category_facility_name': 'voorzieningen', 'category_targetaudience_name': 'doelgroep', diff --git a/src/core/translations/french-translations.constant.js b/src/core/translations/french-translations.constant.js index c33be821d..705f62114 100644 --- a/src/core/translations/french-translations.constant.js +++ b/src/core/translations/french-translations.constant.js @@ -38,6 +38,9 @@ angular.module('udb.core') 'everyone': 'tout le monde', 'members': 'membres', 'education': 'éducation', + 'Available': 'A lieu', + 'Unavailable': 'Annulé', + 'TemporarilyUnavailable': 'Reporté', 'asc': 'ascendant', 'desc': 'descendant', 'today': 'aujourd\'hui', @@ -749,6 +752,7 @@ angular.module('udb.core') 'organiser_id': 'organisation (id)', 'agefrom': 'âge', 'price': 'prix', + 'status': 'status', 'organiser_label': 'organisation (nom)', 'category_facility_name': 'dispositions', 'category_targetaudience_name': 'public cible', diff --git a/src/search/services/query-fields.value.js b/src/search/services/query-fields.value.js index eeb8cb868..5fa81463f 100644 --- a/src/search/services/query-fields.value.js +++ b/src/search/services/query-fields.value.js @@ -49,6 +49,7 @@ angular {name: 'organiser_id', field: 'organizer.id', type: 'string', group: 'other', editable: true}, {name: 'agefrom', field:'typicalAgeRange', type: 'number', group: 'other', editable: true}, {name: 'price', field: 'price', type: 'number' , group: 'other', editable: true}, + {name: 'status', field: 'status', type: 'choice', group: 'other', editable: true, options: ['Available', 'Unavailable', 'TemporarilyUnavailable']}, {name: 'organiser_label', field: 'organizer.name.\\*', type: 'tokenized-string', group: 'other', editable: true}, {name: 'category_facility_name', field:'terms.label', type: 'term', group: 'other', editable: true}, {name: 'category_targetaudience_name', field: 'audienceType', type: 'choice', group: 'other', editable: true, options: ['everyone', 'members', 'education']},