{"version":3,"sources":["webpack:///./node_modules/core-js/internals/string-repeat.js","webpack:///./node_modules/core-js/modules/es.string.repeat.js","webpack:///./src/views/Event/EventForm/EventForm.styles.scss","webpack:///./src/views/Event/EventForm/EventForm.vue?aea9","webpack:///./src/views/Event/EventForm/EventForm.controller.js","webpack:///./src/views/Event/EventForm/EventForm.controller.js?e905","webpack:///./src/views/Event/EventForm/EventForm.vue"],"names":["toInteger","requireObjectCoercible","module","exports","repeat","count","str","String","this","result","n","Infinity","RangeError","$","target","proto","render","_vm","_h","$createElement","_c","_self","staticClass","attrs","_v","infoEmail","_s","url","ref","on","$event","preventDefault","save","scopedSlots","_u","key","fn","errors","directives","name","rawName","value","event","expression","domProps","setEventUrl","composing","$set","eventTypes","UpdateTypeId","option","model","callback","$$v","selectedEventType","customErrors","eventType","editorToolbar","modifiers","formattedDisciplineList","selectedDisciplines","tags","filteredItems","tagsChanged","currentTag","age","show","cropSuccess","hasPicture","error","imageObj","toggleShow","Date","toISOString","updateUntilDate","slot","clearRegistrationPossibleUntil","Array","isArray","requiredLicenseNumber","_i","$$a","$$el","$$c","checked","$$i","concat","slice","encodeURI","eventUrl","class","selectedCountry","countryArray","updateCountryId","provinceArray","updateProvinceId","selectedProvince","$route","params","eventurl","loadCoordinateMap","existingMarker","newLatLong","_e","map","_l","question","label","isPrivate","cancel","_m","club","phone","email","staticRenderFns","isServer","require","required","extend","VueEditor","VueSlider","VueTagsInput","default","message","validate","strongRegex","RegExp","test","includes","price","discount","parseInt","eventPrice","ImageUpload","metaInfo","title","components","Sidebar","LatLongMap","props","data","clubId","eventId","editMode","from","until","valueOf","fromAge","toAge","registrationPossibleUntil","disciplineIds","discipline","p","c","process","questions","computed","mapGetters","tagsList","existingEvent","disciplineList","filter","i","text","toLowerCase","indexOf","get","set","ageSliderValue","forEach","d","_","clone","level","push","methods","mapActions","initialiseTags","initialiseEvent","initialiseEventTypes","createNewEventAction","updateEventAction","initialiseClub","initialiseDisciplineList","imgDataUrl","fetch","then","res","blob","file","File","type","image","createImage","reader","FileReader","onload","e","readAsDataURL","$refs","form","success","isNullOrWhiteSpace","address_Country","address_Province","eventTypeId","id","scrollIntoView","window","scrollBy","lat","updateEvent","createNewEvent","setTimeout","errorKeys","Object","keys","length","refs","$el","$router","catch","$toasted","response","isAdmin","$isAdmin","currentUserIsAdmin","undefined","t","replace","long","console","log","created","duplicate","clubUrl","cloneDeep","profilePicture","latLong","index","eventTags","x","cluburl","component"],"mappings":"gHACA,IAAIA,EAAY,EAAQ,QACpBC,EAAyB,EAAQ,QAIrCC,EAAOC,QAAU,GAAGC,QAAU,SAAgBC,GAC5C,IAAIC,EAAMC,OAAON,EAAuBO,OACpCC,EAAS,GACTC,EAAIV,EAAUK,GAClB,GAAIK,EAAI,GAAKA,GAAKC,IAAU,MAAMC,WAAW,+BAC7C,KAAMF,EAAI,GAAIA,KAAO,KAAOJ,GAAOA,GAAc,EAAJI,IAAOD,GAAUH,GAC9D,OAAOG,I,uBCZT,IAAII,EAAI,EAAQ,QACZT,EAAS,EAAQ,QAIrBS,EAAE,CAAEC,OAAQ,SAAUC,OAAO,GAAQ,CACnCX,OAAQA,K,yDCNV,yBAA6d,EAAG,G,yCCAhe,I,EAAIY,EAAS,WAAa,IAAIC,EAAIT,KAASU,EAAGD,EAAIE,eAAmBC,EAAGH,EAAII,MAAMD,IAAIF,EAAG,OAAOE,EAAG,MAAM,CAACE,YAAY,yEAAyE,CAACF,EAAG,MAAM,CAACE,YAAY,kCAAkCF,EAAG,UAAU,CAACE,YAAY,aAAa,CAACF,EAAG,MAAM,CAACE,YAAY,oBAAoB,CAACF,EAAG,MAAM,CAACE,YAAY,wBAAwB,CAACF,EAAG,MAAM,CAACG,MAAM,CAAC,IAAM,EAAQ,QAAuD,IAAM,YAAYH,EAAG,MAAM,CAACE,YAAY,sBAAsB,CAACF,EAAG,IAAI,CAACE,YAAY,wCAAwC,CAACL,EAAIO,GAAG,4BAA4BJ,EAAG,IAAI,CAACE,YAAY,mBAAmB,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AEvI,KAAM,YAKhC,EAAKG,MAAQiI,IAAEC,MAAM,EAAKb,eAC1B,EAAKzF,SAAWqG,IAAEiE,UAAU,EAAK7E,cAAc8E,gBAC/C,EAAKnM,MAAMmG,OAAS,EAAKA,OACzB,EAAK7C,iBAAiBzD,KAAO,EAAKG,MAAMkK,iBACxC,EAAKjH,gBAAgBpD,KAAO,EAAKG,MAAMiK,gBAEvC,EAAKhH,gBAAgBpD,KAAO,EAAKG,MAAMiK,gBACvC,EAAK3G,iBAAiBzD,KAAO,EAAKG,MAAMkK,iBACxC,EAAKtJ,kBAAoB,EAAKZ,MAAMc,UACpC,EAAK6C,eAAiB,CACpByG,GAAI,EACJgC,QAAS,CAAC,EAAKpM,MAAMwK,IAAK,EAAKxK,MAAM4L,OAGvC,EAAK5L,MAAMiH,UAAUc,SAAQ,SAAC/D,EAAUqI,GACtC,EAAKpF,UAAUoF,GAAOrI,SAAWA,EAASA,YAI5C,EAAK7C,KAAO,EAAKnB,MAAMsM,UAAUxI,KAAI,SAAC4H,GAAD,MAAQ,CAAEjE,KAAMiE,EAAE7L,SACvD,EAAKG,MAAMmB,KAAO,EAAKA,KAGvB,EAAK0H,2BAA2BG,MAAK,WACnC,EAAK9H,oBAAsB,EAAKoG,eAAeC,QAAO,SAACgF,GAAD,OAAO,EAAKvM,MAAM4G,cAActB,SAASiH,EAAEnC,UAGnG,EAAK1G,mBAAoB,OAG3B,EAAKuI,QAAU,EAAK1I,OAAOC,OAAOgJ,QAClC,EAAKxM,MAAMiM,QAAU,EAAKA,SAxDd,+CClUmS,I,wBCQjTQ,EAAY,eACd,EACAnO,EACAkG,GACA,EACA,KACA,KACA,MAIa,aAAAiI,E","file":"js/chunk-389976fd.2afa5d2b.js","sourcesContent":["'use strict';\nvar toInteger = require('../internals/to-integer');\nvar requireObjectCoercible = require('../internals/require-object-coercible');\n\n// `String.prototype.repeat` method implementation\n// https://tc39.github.io/ecma262/#sec-string.prototype.repeat\nmodule.exports = ''.repeat || function repeat(count) {\n var str = String(requireObjectCoercible(this));\n var result = '';\n var n = toInteger(count);\n if (n < 0 || n == Infinity) throw RangeError('Wrong number of repetitions');\n for (;n > 0; (n >>>= 1) && (str += str)) if (n & 1) result += str;\n return result;\n};\n","var $ = require('../internals/export');\nvar repeat = require('../internals/string-repeat');\n\n// `String.prototype.repeat` method\n// https://tc39.github.io/ecma262/#sec-string.prototype.repeat\n$({ target: 'String', proto: true }, {\n repeat: repeat\n});\n","import mod from \"-!../../../../node_modules/@vue/cli-service/node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-2!../../../../node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-1-3!./EventForm.styles.scss?vue&type=style&index=0&lang=scss&\"; export default mod; export * from \"-!../../../../node_modules/@vue/cli-service/node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-2!../../../../node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-1-3!./EventForm.styles.scss?vue&type=style&index=0&lang=scss&\"","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"l-view l-container--full-height l-container--large p-event-form__view\"},[_c('div',{staticClass:\"l-banner--green u-tablet-hide\"}),_c('Sidebar',{staticClass:\"o-sidebar\"},[_c('div',{staticClass:\"o-sidebar__inner\"},[_c('div',{staticClass:\"o-sidebar__top-image\"},[_c('img',{attrs:{\"src\":require(\"@/assets/images/generic/afbeelding-evenement-4x.jpg\"),\"alt\":\"Open\"}})]),_c('div',{staticClass:\"o-sidebar__content\"},[_c('p',{staticClass:\"o-sidebar__title o-sidebar__title-xl\"},[_vm._v(\"vragen? Contacteer ons\")]),_c('p',{staticClass:\"o-sidebar__info\"},[_vm._v(\" Bel ons \"),_c('br'),_c('a',{attrs:{\"href\":\"tel:+3292431119\"}},[_vm._v(\"+32 (0)9 243 11 19\")])]),_c('br'),_c('p',{staticClass:\"o-sidebar__info\"},[_vm._v(\" Mail ons \"),_c('br'),_c('a',{attrs:{\"href\":'mailto:' + _vm.infoEmail}},[_vm._v(_vm._s(_vm.infoEmail))])]),_c('br'),_c('p',{staticClass:\"o-sidebar__info\"},[_c('a',{attrs:{\"href\":_vm.url,\"target\":\"_blank\"}},[_vm._v(\"Handleiding\")])])])])]),_c('div',{staticClass:\"o-page o-page--white\"},[_c('div',{staticClass:\"p-event-form\"},[(_vm.editMode)?_c('h1',[_vm._v(\"Activiteit bewerken\")]):_c('h1',[_vm._v(\"Activiteit aanmaken\")]),_c('h6',[_vm._v(\"Gegevens\")]),_c('ValidationObserver',{ref:\"form\",attrs:{\"slim\":\"\"}},[_c('form',{staticClass:\"p-register__form\",attrs:{\"id\":\"registerForm\"},on:{\"submit\":function($event){$event.preventDefault();return _vm.save($event)}}},[_c('ValidationProvider',{staticClass:\"a-input__label\",attrs:{\"rules\":\"required\",\"tag\":\"label\"},scopedSlots:_vm._u([{key:\"default\",fn:function(ref){\nvar errors = ref.errors;\nreturn [_vm._v(\" Titel activiteit \"),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.event.name),expression:\"event.name\"}],staticClass:\"a-input\",attrs:{\"type\":\"text\",\"name\":\"Titel activiteit\"},domProps:{\"value\":(_vm.event.name)},on:{\"blur\":_vm.setEventUrl,\"input\":function($event){if($event.target.composing){ return; }_vm.$set(_vm.event, \"name\", $event.target.value)}}}),_c('span',{staticClass:\"a-input__validation-message\"},[_vm._v(_vm._s(errors[0]))])]}}])}),_c('div',{ref:\"eventType\",staticClass:\"a-input__label\"},[_vm._v(\" Activiteit type \"),_c('multiselect',{attrs:{\"track-by\":\"name\",\"label\":\"name\",\"placeholder\":\"Selecteer een type\",\"options\":_vm.eventTypes,\"show-labels\":false,\"allow-empty\":false,\"internal-search\":true,\"clear-on-select\":false},on:{\"select\":_vm.UpdateTypeId},scopedSlots:_vm._u([{key:\"singleLabel\",fn:function(ref){\nvar option = ref.option;\nreturn [_vm._v(_vm._s(option.name))]}}]),model:{value:(_vm.selectedEventType),callback:function ($$v) {_vm.selectedEventType=$$v},expression:\"selectedEventType\"}}),_c('span',{staticClass:\"a-input__validation-message\"},[_vm._v(_vm._s(_vm.customErrors.eventType))])],1),_c('ValidationProvider',{staticClass:\"a-input__validation-wrapper\",attrs:{\"rules\":\"required\"},scopedSlots:_vm._u([{key:\"default\",fn:function(ref){\nvar errors = ref.errors;\nreturn [_c('label',{staticClass:\"a-input__label\"},[_vm._v(\"Omschrijving\")]),_c('vue-editor',{attrs:{\"editor-toolbar\":_vm.editorToolbar},model:{value:(_vm.event.description),callback:function ($$v) {_vm.$set(_vm.event, \"description\", $$v)},expression:\"event.description\"}}),_c('span',{staticClass:\"a-input__validation-message\"},[_vm._v(_vm._s(errors[0]))])]}}])}),_c('ValidationProvider',{staticClass:\"a-input__validation-wrapper\",attrs:{\"rules\":\"required\"},scopedSlots:_vm._u([{key:\"default\",fn:function(ref){\nvar errors = ref.errors;\nreturn [_c('label',{staticClass:\"a-input__label\"},[_vm._v(\" Instructies \"),_c('p',{staticClass:\"p-event-form__instruction\"},[_vm._v(\" Voeg hieronder instructies toe aan de mailbevestiging, bv. waar de deelnemers moeten afspreken of wat ze moeten meebrengen. \")]),_c('textarea',{directives:[{name:\"model\",rawName:\"v-model.lazy\",value:(_vm.event.instructions),expression:\"event.instructions\",modifiers:{\"lazy\":true}}],staticClass:\"a-input a-textarea\",attrs:{\"type\":\"text\",\"name\":\"Instructies\"},domProps:{\"value\":(_vm.event.instructions)},on:{\"change\":function($event){return _vm.$set(_vm.event, \"instructions\", $event.target.value)}}}),_vm._v(\" \"),_c('span',{staticClass:\"a-input__validation-message\"},[_vm._v(_vm._s(errors[0]))])])]}}])}),_c('div',{ref:\"discipline\",staticClass:\"a-input__label\"},[_vm._v(\" Discipline \"),_c('p',{staticClass:\"p-event-form__instruction\"},[_vm._v(\" Selecteer de \\\"belangrijkste\\\" discipline als eerste. Deze zal bijvoorbeeld getoond worden op de homepagina. \")]),_c('ValidationProvider',{staticClass:\"a-input__validation-wrapper\",attrs:{\"rules\":\"required\"},scopedSlots:_vm._u([{key:\"default\",fn:function(ref){\nvar errors = ref.errors;\nreturn [_c('multiselect',{attrs:{\"track-by\":\"name\",\"label\":\"name\",\"placeholder\":\"Selecteer één of meerdere disciplines\",\"options\":_vm.formattedDisciplineList,\"show-labels\":false,\"allow-empty\":false,\"internal-search\":true,\"clear-on-select\":false,\"multiple\":true,\"close-on-select\":false},scopedSlots:_vm._u([{key:\"singleLabel\",fn:function(ref){\nvar option = ref.option;\nreturn [_vm._v(_vm._s(option.name))]}}],null,true),model:{value:(_vm.selectedDisciplines),callback:function ($$v) {_vm.selectedDisciplines=$$v},expression:\"selectedDisciplines\"}}),_c('span',{staticClass:\"a-input__validation-message\"},[_vm._v(_vm._s(errors[0]))])]}}])})],1),_c('label',{staticClass:\"a-input__label\"},[_vm._v(\" Tags \"),_c('vue-tags-input',{attrs:{\"tags\":_vm.tags,\"autocomplete-items\":_vm.filteredItems,\"autocomplete-min-length\":0},on:{\"tags-changed\":_vm.tagsChanged},model:{value:(_vm.currentTag),callback:function ($$v) {_vm.currentTag=$$v},expression:\"currentTag\"}}),_c('span',{staticClass:\"a-input__validation-message\"})],1),_c('label',{staticClass:\"a-input__label a-input__label--padding-bottom\"},[_vm._v(\" Voor welke leeftijd is deze activiteit \"),_c('vue-slider',{attrs:{\"dotSize\":15,\"min\":0,\"max\":100,\"tooltip\":'none',\"marks\":_vm.age},model:{value:(_vm.age),callback:function ($$v) {_vm.age=$$v},expression:\"age\"}})],1),_c('label',{staticClass:\"a-input__label\"},[_vm._v(\"Foto Activiteit\")]),_c('ImageUpload',{attrs:{\"field\":\"img\",\"width\":980,\"height\":400,\"lang-type\":\"nl\",\"img-format\":\"png\",\"noSquare\":true,\"noCircle\":true,\"value\":_vm.show},on:{\"crop-success\":_vm.cropSuccess,\"update:value\":function($event){_vm.show=$event}},model:{value:(_vm.show),callback:function ($$v) {_vm.show=$$v},expression:\"show\"}}),_c('div',[(_vm.event.hasPicture && !_vm.error)?_c('img',{staticClass:\"a-input__image\",attrs:{\"src\":_vm.imageObj || require('@/assets/images/generic/upload-image.png'),\"alt\":\"afbeelding activiteit\"},on:{\"click\":function($event){return _vm.toggleShow()},\"error\":function($event){_vm.error=true}}}):_c('img',{staticClass:\"a-input__image\",attrs:{\"src\":require('@/assets/images/generic/upload-image.png'),\"alt\":\"afbeelding activiteit\"},on:{\"click\":function($event){return _vm.toggleShow()}}})]),_c('h6',[_vm._v(\"Wanneer vindt de nieuwe sessie plaats?\")]),_c('div',{staticClass:\"p-event-form__double-wrapper\"},[_c('ValidationProvider',{staticClass:\"a-input__label\",attrs:{\"rules\":\"required|dates:@endDate\"},scopedSlots:_vm._u([{key:\"default\",fn:function(ref){\nvar errors = ref.errors;\nreturn [_vm._v(\" Startdatum & uur \"),_c('datetime',{staticClass:\"theme-green\",attrs:{\"id\":\"from\",\"type\":\"datetime\",\"min-datetime\":new Date().toISOString()},on:{\"close\":_vm.updateUntilDate},model:{value:(_vm.event.from),callback:function ($$v) {_vm.$set(_vm.event, \"from\", $$v)},expression:\"event.from\"}}),_c('span',{staticClass:\"a-input__validation-message\"},[_vm._v(_vm._s(errors[0]))])]}}])}),_c('ValidationProvider',{staticClass:\"a-input__label p-event-form__form-label--right\",attrs:{\"rules\":\"required\",\"name\":\"endDate\"}},[_vm._v(\" Einddatum & uur \"),_c('datetime',{staticClass:\"theme-green\",attrs:{\"id\":\"until\",\"min-datetime\":new Date().toISOString(),\"input-id\":\"endDate\",\"type\":\"datetime\"},model:{value:(_vm.event.until),callback:function ($$v) {_vm.$set(_vm.event, \"until\", $$v)},expression:\"event.until\"}})],1)],1),_c('div',[_c('div',{staticClass:\"a-input__label p-event-form__form-label\"},[_vm._v(\" Registratie deadline \"),_c('p',{staticClass:\"p-event-form__instruction\"},[_vm._v(\" Indien dit veld leeg gelaten wordt zal de \"),_c('u',[_vm._v(\"startdatum & uur\")]),_vm._v(\" van de activiteit gebruikt worden als uiterlijke datum om te kunnen registreren op deze activiteit. \")]),_c('datetime',{staticClass:\"theme-green\",attrs:{\"id\":\"registrationPossibleUntil\",\"min-datetime\":new Date().toISOString(),\"input-id\":\"endDate\",\"type\":\"datetime\"},model:{value:(_vm.event.registrationPossibleUntil),callback:function ($$v) {_vm.$set(_vm.event, \"registrationPossibleUntil\", $$v)},expression:\"event.registrationPossibleUntil\"}},[_c('template',{slot:\"button-cancel\"},[_c('span',{on:{\"click\":function($event){return _vm.clearRegistrationPossibleUntil()}}},[_vm._v(\"Clear\")])])],2)],1)]),_c('div',{staticClass:\"p-event-form__double-wrapper\"},[_c('ValidationProvider',{staticClass:\"a-input__label\",attrs:{\"rules\":\"required\"},scopedSlots:_vm._u([{key:\"default\",fn:function(ref){\nvar errors = ref.errors;\nreturn [_vm._v(\" Maximum aantal deelnemers \"),_c('input',{directives:[{name:\"model\",rawName:\"v-model.lazy\",value:(_vm.event.maxAmountOfParticipants),expression:\"event.maxAmountOfParticipants\",modifiers:{\"lazy\":true}}],staticClass:\"a-input\",attrs:{\"type\":\"number\",\"min\":\"0\",\"name\":\"Maximum aantal deelnemers\"},domProps:{\"value\":(_vm.event.maxAmountOfParticipants)},on:{\"change\":function($event){return _vm.$set(_vm.event, \"maxAmountOfParticipants\", $event.target.value)}}}),_c('span',{staticClass:\"a-input__validation-message\"},[_vm._v(_vm._s(errors[0]))])]}}])}),_c('label',{staticClass:\"a-input__checkbox-container p-event-form__form-label--right\"},[_vm._v(\" Licentienummer verplichten \"),_c('input',{directives:[{name:\"model\",rawName:\"v-model.lazy\",value:(_vm.event.requiredLicenseNumber),expression:\"event.requiredLicenseNumber\",modifiers:{\"lazy\":true}}],attrs:{\"type\":\"checkbox\"},domProps:{\"checked\":Array.isArray(_vm.event.requiredLicenseNumber)?_vm._i(_vm.event.requiredLicenseNumber,null)>-1:(_vm.event.requiredLicenseNumber)},on:{\"change\":[function($event){var $$a=_vm.event.requiredLicenseNumber,$$el=$event.target,$$c=$$el.checked?(true):(false);if(Array.isArray($$a)){var $$v=null,$$i=_vm._i($$a,$$v);if($$el.checked){$$i<0&&(_vm.$set(_vm.event, \"requiredLicenseNumber\", $$a.concat([$$v])))}else{$$i>-1&&(_vm.$set(_vm.event, \"requiredLicenseNumber\", $$a.slice(0,$$i).concat($$a.slice($$i+1))))}}else{_vm.$set(_vm.event, \"requiredLicenseNumber\", $$c)}},function($event){!_vm.event.requiredLicenseNumber}]}}),_c('span',{staticClass:\"a-input__checkbox-checkmark\"})])],1),_c('ValidationObserver',{attrs:{\"slim\":\"\"}},[_c('ValidationProvider',{staticClass:\"a-input__validation-wrapper\",attrs:{\"rules\":\"required|price\",\"name\":\"price\"},scopedSlots:_vm._u([{key:\"default\",fn:function(ref){\nvar errors = ref.errors;\nreturn [_c('label',{staticClass:\"a-input__label\"},[_vm._v(\" Prijs \"),_c('input',{directives:[{name:\"model\",rawName:\"v-model.lazy\",value:(_vm.event.price),expression:\"event.price\",modifiers:{\"lazy\":true}}],staticClass:\"a-input\",attrs:{\"type\":\"number\",\"min\":\"0\",\"name\":\"Prijs\",\"step\":\"any\"},domProps:{\"value\":(_vm.event.price)},on:{\"change\":function($event){return _vm.$set(_vm.event, \"price\", $event.target.value)}}}),_c('span',{staticClass:\"a-input__validation-message\"},[_vm._v(_vm._s(errors[0]))])])]}}])}),_c('ValidationProvider',{staticClass:\"a-input__validation-wrapper\",attrs:{\"rules\":\"discount:@price\"},scopedSlots:_vm._u([{key:\"default\",fn:function(ref){\nvar errors = ref.errors;\nreturn [_c('label',{staticClass:\"a-input__label\"},[_vm._v(\" Korting (dit bedrag gaat van de prijs af) \"),_c('input',{directives:[{name:\"model\",rawName:\"v-model.lazy\",value:(_vm.event.discount),expression:\"event.discount\",modifiers:{\"lazy\":true}}],staticClass:\"a-input\",attrs:{\"type\":\"number\",\"min\":\"0\",\"name\":\"Korting\",\"step\":\"any\"},domProps:{\"value\":(_vm.event.discount)},on:{\"change\":function($event){return _vm.$set(_vm.event, \"discount\", $event.target.value)}}}),_c('span',{staticClass:\"a-input__validation-message\"},[_vm._v(_vm._s(errors[0]))])])]}}])})],1),_c('ValidationProvider',{staticClass:\"a-input__validation-wrapper\",attrs:{\"rules\":\"required|url\"},scopedSlots:_vm._u([{key:\"default\",fn:function(ref){\nvar errors = ref.errors;\nreturn [_c('label',{ref:\"eventUrl\",staticClass:\"a-input__label\"},[_vm._v(\" URL activiteit \"),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.event.eventUrl),expression:\"event.eventUrl\"}],staticClass:\"a-input\",attrs:{\"type\":\"text\",\"name\":\"eventurl\"},domProps:{\"value\":(_vm.event.eventUrl)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.$set(_vm.event, \"eventUrl\", $event.target.value)}}}),_c('span',{staticClass:\"a-input__validation-message\"},[_vm._v(_vm._s(errors[0]))])]),_c('p',{staticClass:\"u-margin-top-sm\"},[_vm._v(\" Unieke URL van deze activiteit: \"),_c('strong',[_vm._v(\"ikwatersport.be/evenementen/\"+_vm._s(encodeURI(_vm.event.eventUrl)))])])]}}])}),_c('h6',[_vm._v(\"waar vindt de sessie plaats?\")]),_c('div',{staticClass:\"p-event-form__double-wrapper\"},[_c('ValidationProvider',{staticClass:\"a-input__label\",attrs:{\"rules\":\"required\"},scopedSlots:_vm._u([{key:\"default\",fn:function(ref){\nvar errors = ref.errors;\nreturn [_vm._v(\" Straat \"),_c('input',{directives:[{name:\"model\",rawName:\"v-model.lazy\",value:(_vm.event.address_Street),expression:\"event.address_Street\",modifiers:{\"lazy\":true}}],staticClass:\"a-input\",attrs:{\"type\":\"text\",\"name\":\"Straat\"},domProps:{\"value\":(_vm.event.address_Street)},on:{\"change\":function($event){return _vm.$set(_vm.event, \"address_Street\", $event.target.value)}}}),_c('span',{staticClass:\"a-input__validation-message\"},[_vm._v(_vm._s(errors[0]))])]}}])}),_c('ValidationProvider',{staticClass:\"a-input__label p-event-form__form-label--right\",attrs:{\"rules\":\"required\"},scopedSlots:_vm._u([{key:\"default\",fn:function(ref){\nvar errors = ref.errors;\nreturn [_vm._v(\" Huisnummer \"),_c('input',{directives:[{name:\"model\",rawName:\"v-model.lazy\",value:(_vm.event.address_Nr),expression:\"event.address_Nr\",modifiers:{\"lazy\":true}}],staticClass:\"a-input\",attrs:{\"type\":\"text\",\"name\":\"Huisnummer\"},domProps:{\"value\":(_vm.event.address_Nr)},on:{\"change\":function($event){return _vm.$set(_vm.event, \"address_Nr\", $event.target.value)}}}),_c('span',{staticClass:\"a-input__validation-message\"},[_vm._v(_vm._s(errors[0]))])]}}])})],1),_c('div',{staticClass:\"p-event-form__double-wrapper\"},[_c('ValidationProvider',{staticClass:\"a-input__label\",attrs:{\"rules\":\"required\"},scopedSlots:_vm._u([{key:\"default\",fn:function(ref){\nvar errors = ref.errors;\nreturn [_vm._v(\" Gemeente \"),_c('input',{directives:[{name:\"model\",rawName:\"v-model.lazy\",value:(_vm.event.address_City),expression:\"event.address_City\",modifiers:{\"lazy\":true}}],staticClass:\"a-input\",attrs:{\"type\":\"text\",\"name\":\"Gemeente\"},domProps:{\"value\":(_vm.event.address_City)},on:{\"change\":function($event){return _vm.$set(_vm.event, \"address_City\", $event.target.value)}}}),_c('span',{staticClass:\"a-input__validation-message\"},[_vm._v(_vm._s(errors[0]))])]}}])}),_c('ValidationProvider',{staticClass:\"a-input__label p-event-form__form-label--right\",attrs:{\"rules\":\"required\"},scopedSlots:_vm._u([{key:\"default\",fn:function(ref){\nvar errors = ref.errors;\nreturn [_vm._v(\" Postcode \"),_c('input',{directives:[{name:\"model\",rawName:\"v-model.lazy\",value:(_vm.event.address_Postcode),expression:\"event.address_Postcode\",modifiers:{\"lazy\":true}}],staticClass:\"a-input\",attrs:{\"type\":\"text\",\"name\":\"Postcode\"},domProps:{\"value\":(_vm.event.address_Postcode)},on:{\"change\":function($event){return _vm.$set(_vm.event, \"address_Postcode\", $event.target.value)}}}),_c('span',{staticClass:\"a-input__validation-message\"},[_vm._v(_vm._s(errors[0]))])]}}])})],1),_c('div',{staticClass:\"p-event-form__double-wrapper\",class:[_vm.selectedCountry.name !== 'België' ? 'p-event-form--half-width' : '']},[_c('div',{staticClass:\"a-input__label\"},[_vm._v(\" Land \"),_c('multiselect',{attrs:{\"track-by\":\"name\",\"label\":\"name\",\"placeholder\":\"Selecteer een land\",\"options\":_vm.countryArray,\"show-labels\":false,\"allow-empty\":false,\"internal-search\":true,\"clear-on-select\":false},on:{\"select\":_vm.updateCountryId},scopedSlots:_vm._u([{key:\"singleLabel\",fn:function(ref){\nvar option = ref.option;\nreturn [_vm._v(_vm._s(option.name))]}}]),model:{value:(_vm.selectedCountry),callback:function ($$v) {_vm.selectedCountry=$$v},expression:\"selectedCountry\"}})],1),_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.selectedCountry != null && _vm.selectedCountry.name == 'België'),expression:\"selectedCountry != null && selectedCountry.name == 'België'\"}],staticClass:\"a-input__label p-event-form__form-label--right\"},[_vm._v(\" Provincie \"),_c('multiselect',{attrs:{\"track-by\":\"name\",\"label\":\"name\",\"placeholder\":\"Selecteer een provincie\",\"options\":_vm.provinceArray,\"show-labels\":false,\"allow-empty\":false,\"internal-search\":true,\"clear-on-select\":false,\"close-on-select\":true},on:{\"select\":_vm.updateProvinceId},scopedSlots:_vm._u([{key:\"singleLabel\",fn:function(ref){\nvar option = ref.option;\nreturn [_vm._v(_vm._s(option.name))]}}]),model:{value:(_vm.selectedProvince),callback:function ($$v) {_vm.selectedProvince=$$v},expression:\"selectedProvince\"}})],1)]),_c('ValidationProvider',{staticClass:\"a-input__validation-wrapper\",attrs:{\"rules\":\"required\"},scopedSlots:_vm._u([{key:\"default\",fn:function(ref){\nvar errors = ref.errors;\nreturn [_c('label',{staticClass:\"a-input__label\"},[_vm._v(\" Locatie (club) \"),_c('input',{directives:[{name:\"model\",rawName:\"v-model.lazy\",value:(_vm.event.locationName),expression:\"event.locationName\",modifiers:{\"lazy\":true}}],staticClass:\"a-input\",attrs:{\"type\":\"text\",\"name\":\"Locatie\"},domProps:{\"value\":(_vm.event.locationName)},on:{\"change\":function($event){return _vm.$set(_vm.event, \"locationName\", $event.target.value)}}}),_c('span',{staticClass:\"a-input__validation-message\"},[_vm._v(_vm._s(errors[0]))])])]}}])}),_c('label',{ref:\"map\",staticClass:\"a-input__label\",attrs:{\"for\":\"\"}},[_vm._v(\" Coördinaten: zet het pijltje op de exacte locatie van de activiteit \"),((_vm.$route.params.eventurl && _vm.loadCoordinateMap) || !_vm.$route.params.eventurl)?_c('LatLongMap',{attrs:{\"existingMarker\":_vm.existingMarker},on:{\"markerPlaced\":_vm.newLatLong}}):_vm._e(),_c('span',{staticClass:\"a-input__validation-message\"},[_vm._v(_vm._s(_vm.customErrors.map))])],1),_c('h6',[_vm._v(\"Inschrijvingen\")]),_c('ValidationProvider',{staticClass:\"a-input__validation-wrapper\",attrs:{\"rules\":\"required|email\"},scopedSlots:_vm._u([{key:\"default\",fn:function(ref){\nvar errors = ref.errors;\nreturn [_c('label',{staticClass:\"a-input__label\"},[_vm._v(\" Contact e-mail \"),_c('input',{directives:[{name:\"model\",rawName:\"v-model.lazy\",value:(_vm.event.contactEmail),expression:\"event.contactEmail\",modifiers:{\"lazy\":true}}],staticClass:\"a-input\",attrs:{\"type\":\"text\",\"name\":\"Locatie\"},domProps:{\"value\":(_vm.event.contactEmail)},on:{\"change\":function($event){return _vm.$set(_vm.event, \"contactEmail\", $event.target.value)}}}),_c('span',{staticClass:\"a-input__validation-message\"},[_vm._v(_vm._s(errors[0]))])])]}}])}),_c('label',{staticClass:\"a-input__label\"},[_vm._v(\" Inschrijvings instructies \"),_c('p',{staticClass:\"p-event-form__instruction\"},[_vm._v(\" Verloopt de online betaling via je eigen club website, of moet er ter plaatse betaald worden? Vul enkel dan hier de instructies (+ eventuele URL naar je website) in. Deze info wordt aan de bevestigingsmail toegevoegd. Niets invullen = betaling via je Mollie account gekoppeld aan IKwatersport \")]),_c('textarea',{directives:[{name:\"model\",rawName:\"v-model.lazy\",value:(_vm.event.externalSubscribingInstructions),expression:\"event.externalSubscribingInstructions\",modifiers:{\"lazy\":true}}],staticClass:\"a-input\",attrs:{\"type\":\"text\",\"name\":\"InschrijvingsInstructies \",\"rows\":\"5\"},domProps:{\"value\":(_vm.event.externalSubscribingInstructions)},on:{\"change\":function($event){return _vm.$set(_vm.event, \"externalSubscribingInstructions\", $event.target.value)}}})]),_c('h6',[_vm._v(\"Inschrijvingsvragen\")]),_vm._l((_vm.questions),function(question){return _c('ValidationProvider',{key:question.label,staticClass:\"a-input__validation-wrapper\",scopedSlots:_vm._u([{key:\"default\",fn:function(ref){\nvar errors = ref.errors;\nreturn [_c('label',{staticClass:\"a-input__label\"},[_vm._v(\" \"+_vm._s(question.label)+\" \"),_c('input',{directives:[{name:\"model\",rawName:\"v-model.lazy\",value:(question.question),expression:\"question.question\",modifiers:{\"lazy\":true}}],staticClass:\"a-input\",attrs:{\"type\":\"text\",\"name\":question.label},domProps:{\"value\":(question.question)},on:{\"change\":function($event){return _vm.$set(question, \"question\", $event.target.value)}}}),_c('span',{staticClass:\"a-input__validation-message\"},[_vm._v(_vm._s(errors[0]))])])]}}],null,true)})}),_c('div',{staticClass:\"p-event-form__full-width\"},[_c('label',{staticClass:\"a-input__checkbox-container\"},[_vm._v(\" Evenement is privé \"),_c('p',{staticClass:\"p-event-form__instruction\"},[_vm._v(\" Dit zal ervoor zorgen dat de evenement niet wordt getoond op de overzichtspagina. \")]),_c('input',{directives:[{name:\"model\",rawName:\"v-model.lazy\",value:(_vm.event.isPrivate),expression:\"event.isPrivate\",modifiers:{\"lazy\":true}}],attrs:{\"type\":\"checkbox\"},domProps:{\"checked\":Array.isArray(_vm.event.isPrivate)?_vm._i(_vm.event.isPrivate,null)>-1:(_vm.event.isPrivate)},on:{\"change\":[function($event){var $$a=_vm.event.isPrivate,$$el=$event.target,$$c=$$el.checked?(true):(false);if(Array.isArray($$a)){var $$v=null,$$i=_vm._i($$a,$$v);if($$el.checked){$$i<0&&(_vm.$set(_vm.event, \"isPrivate\", $$a.concat([$$v])))}else{$$i>-1&&(_vm.$set(_vm.event, \"isPrivate\", $$a.slice(0,$$i).concat($$a.slice($$i+1))))}}else{_vm.$set(_vm.event, \"isPrivate\", $$c)}},function($event){!_vm.event.isPrivate}]}}),_c('span',{staticClass:\"a-input__checkbox-checkmark\"})]),_c('p',{staticClass:\"p-event-form__instruction\"},[_vm._v(\" Alle deelnemers die inschrijven voor een activiteit via Ikwatersport zijn automatisch verzekerd en moeten niet meer aangemeld worden op het WWSV link-platform. De afrekening gebeurt op het einde van het jaar. \")])]),_c('div',{staticClass:\"p-event-form__buttons\"},[_c('a',{staticClass:\"a-button a-button--secondary a-button--green-border u-margin-right-xs\",attrs:{\"href\":\"#\",\"title\":\"Deelnemer toevoegen\"},on:{\"click\":function($event){return _vm.cancel()}}},[_vm._v(\"Annuleer\")]),_c('button',{staticClass:\"a-button a-button--primary u-margin-right-xs\"},[_vm._v(\"Opslaan\")])])],2)])],1)]),_c('div',{staticClass:\"o-page u-tablet-show o-sidebar__inner\"},[_vm._m(0),_c('div',{staticClass:\"o-sidebar__content\"},[_c('p',{staticClass:\"o-sidebar__title o-sidebar__title-xl\"},[_vm._v(\"vragen? Contacteer ons\")]),_c('p',{staticClass:\"o-sidebar__info\"},[_vm._v(\" Bel ons \"),_c('br'),_vm._v(\" \"+_vm._s(_vm.club.phone)+\" \")]),_c('br'),_c('p',{staticClass:\"o-sidebar__info\"},[_vm._v(\" Mail ons \"),_c('br'),_vm._v(\" \"+_vm._s(_vm.club.email)+\" \")]),_c('br'),_c('p',{staticClass:\"o-sidebar__info\"},[_c('a',{attrs:{\"href\":_vm.url,\"target\":\"_blank\"}},[_vm._v(\"Handleiding\")])])])])],1)}\nvar staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"o-sidebar__top-image\"},[_c('img',{attrs:{\"src\":require(\"@/assets/images/generic/afbeelding-evenement-4x.jpg\"),\"alt\":\"Open\"}})])}]\n\nexport { render, staticRenderFns }","import { mapActions, mapGetters } from 'vuex';\r\n\r\nimport _ from 'lodash';\r\nimport { isNullOrWhiteSpace, countryArray, provinceArray } from '@/utils';\r\nimport { Sidebar, LatLongMap } from '@/components';\r\n\r\nimport isServer from '@/utils/isServer';\r\n\r\nif (!isServer) {\r\n const { required, email } = require('vee-validate/dist/rules');\r\n const { extend } = require('vee-validate');\r\n var { VueEditor } = require('vue2-editor/dist/vue2-editor.core');\r\n var VueSlider = require('vue-slider-component');\r\n require('vue-slider-component/theme/default.css');\r\n var VueTagsInput = require('@johmun/vue-tags-input').default;\r\n\r\n extend('required', {\r\n ...required,\r\n message: 'Dit veld is vereist.',\r\n });\r\n\r\n extend('email', {\r\n ...email,\r\n message: 'Een geldig e-mailadres is vereist.',\r\n });\r\n\r\n extend('coordinate', {\r\n message: 'Geef een geldig coördinaat in (Bv: xx.xxxxxx)',\r\n validate: (value) => {\r\n const strongRegex = new RegExp(/^(\\+|-)?(?:90(?:(?:\\.0{1,6})?)|(?:[0-9]|[1-8][0-9])(?:(?:\\.[0-9]{1,6})?))$/);\r\n return strongRegex.test(value);\r\n },\r\n });\r\n\r\n extend('dates', {\r\n message: 'De einddatum van de activiteit kan niet kleiner zijn dan de begindatum.',\r\n params: ['target'],\r\n validate(value, { target }) {\r\n return value < target;\r\n },\r\n });\r\n\r\n extend('price', {\r\n message: 'Een prijs kan enkel tussen 0 en 1500 euro liggen.',\r\n validate: (value) => value >= 0 && value <= 1500,\r\n });\r\n\r\n extend('url', {\r\n // eslint-disable-next-line no-unused-vars\r\n message: 'Url kan geen \"/\", \"?\" of \".\" bevatten.',\r\n validate: (value) => !value.includes('?') && !value.includes('/') && !value.includes('.'),\r\n });\r\n\r\n extend('discount', {\r\n params: ['price'],\r\n message: 'De korting kan niet lager dan nul zijn en niet hoger zijn dan de prijs van de activiteit.',\r\n validate: (value, { price }) => {\r\n const discount = parseInt(value, 10);\r\n const eventPrice = parseInt(price, 10);\r\n\r\n return discount >= 0 && discount <= eventPrice;\r\n },\r\n });\r\n var ImageUpload = require('vue-image-crop-upload').default;\r\n}\r\n\r\nexport default {\r\n metaInfo: {\r\n title: 'Event formpage',\r\n },\r\n name: 'EventForm',\r\n components: {\r\n [Sidebar.name]: Sidebar,\r\n VueTagsInput,\r\n VueEditor,\r\n VueSlider,\r\n LatLongMap,\r\n ImageUpload,\r\n },\r\n props: {},\r\n data: () => ({\r\n clubId: null,\r\n eventId: null,\r\n eventUrl: null,\r\n editMode: false,\r\n event: {\r\n name: '',\r\n from: new Date().toISOString(),\r\n until: new Date((new Date()).valueOf() + 1000 * 3600 * 24).toISOString(),\r\n fromAge: 0,\r\n toAge: 100,\r\n price: 0,\r\n requiredLicenseNumber: false,\r\n isPrivate: false,\r\n registrationPossibleUntil: null,\r\n disciplineIds: [],\r\n },\r\n tags: [],\r\n currentTag: '',\r\n selectedDisciplines: [],\r\n selectedProvince: { name: 'West - Vlaanderen' },\r\n selectedCountry: { name: 'België' },\r\n selectedEventType: '',\r\n customErrors: {\r\n discipline: '',\r\n map: '',\r\n eventType: '',\r\n },\r\n show: false,\r\n imageObj: '',\r\n error: false,\r\n provinceArray: provinceArray.map((p) => ({ name: p })),\r\n countryArray: countryArray.map((c) => ({ name: c })),\r\n editorToolbar: [['bold', 'link']],\r\n existingMarker: {},\r\n loadCoordinateMap: false,\r\n url: process.env.VUE_APP_URL_MANUAL,\r\n questions: [{ label: 'Vraag 1', question: '' }, { label: 'Vraag 2', question: '' }, { label: 'Vraag 3', question: '' }],\r\n }),\r\n computed: {\r\n ...mapGetters('tag', {\r\n tagsList: 'getTagList',\r\n }),\r\n ...mapGetters('event', {\r\n existingEvent: 'getEvent',\r\n eventTypes: 'getEventTypes',\r\n }),\r\n ...mapGetters('club', {\r\n club: 'getClub',\r\n }),\r\n ...mapGetters('discipline', {\r\n disciplineList: 'getDisciplineList',\r\n }),\r\n filteredItems() {\r\n return this.tagsList.filter(\r\n (i) => i.text.toLowerCase().indexOf(this.currentTag.toLowerCase()) !== -1,\r\n );\r\n },\r\n age: {\r\n get() {\r\n return [this.event.fromAge, this.event.toAge];\r\n },\r\n set(ageSliderValue) {\r\n [this.event.fromAge, this.event.toAge] = ageSliderValue;\r\n },\r\n },\r\n formattedDisciplineList() {\r\n const formattedDisciplineList = [];\r\n\r\n this.disciplineList.forEach((discipline) => {\r\n const d = _.clone(discipline);\r\n d.name = `${'- '.repeat(discipline.level)}${discipline.name}`;\r\n formattedDisciplineList.push(d);\r\n });\r\n return formattedDisciplineList;\r\n },\r\n infoEmail() {\r\n return process.env.VUE_APP_INFO_EMAIL_ADDRESS;\r\n },\r\n },\r\n methods: {\r\n ...mapActions('tag', {\r\n initialiseTags: 'FETCH_DATA_TAG_LIST',\r\n }),\r\n ...mapActions('event', {\r\n initialiseEvent: 'FETCH_DATA_EDIT_EVENT',\r\n initialiseEventTypes: 'FETCH_DATA_EVENT_TYPES',\r\n createNewEventAction: 'CREATE_NEW_EVENT',\r\n updateEventAction: 'UPDATE_EVENT',\r\n }),\r\n ...mapActions('club', {\r\n initialiseClub: 'FETCH_DATA_CLUB',\r\n }),\r\n ...mapActions('discipline', {\r\n initialiseDisciplineList: 'FETCH_DATA_DISCIPLINE_LIST',\r\n }),\r\n cropSuccess(imgDataUrl) {\r\n fetch(imgDataUrl)\r\n .then((res) => res.blob())\r\n .then((blob) => {\r\n const file = new File([blob], 'File name', { type: 'image/png' });\r\n this.event.image = file;\r\n this.event.hasPicture = true;\r\n })\r\n .then(() => {\r\n this.createImage(this.event.image);\r\n this.toggleShow();\r\n });\r\n },\r\n createImage(file) {\r\n const reader = new FileReader();\r\n reader.onload = (e) => {\r\n this.imageObj = e.target.result;\r\n };\r\n reader.readAsDataURL(file);\r\n },\r\n toggleShow() {\r\n this.show = !this.show;\r\n },\r\n save() {\r\n this.$refs.form.validate().then((success) => {\r\n if (!success) {\r\n setTimeout(() => {\r\n const errorKeys = Object.keys(this.$refs.form.errors);\r\n const errors = errorKeys.filter((e) => this.$refs.form.errors[e].length > 0);\r\n\r\n this.$refs.form.refs[errors[0]].$el.scrollIntoView();\r\n window.scrollBy(0, -75);\r\n }, 100);\r\n } else {\r\n this.event.questions = this.questions;\r\n if (isNullOrWhiteSpace(this.club.address_Country) || isNullOrWhiteSpace(this.club.address_Province) || isNullOrWhiteSpace(this.event.eventTypeId)) {\r\n this.event.address_Province = this.selectedProvince ? this.selectedProvince.name : '';\r\n this.event.address_Country = this.selectedCountry.name;\r\n this.event.eventTypeId = this.selectedEventType.id;\r\n }\r\n\r\n if (typeof (this.selectedEventType) === 'string' && isNullOrWhiteSpace(this.selectedEventType)) {\r\n this.customErrors.eventType = 'Dit veld is vereist.';\r\n\r\n this.$refs.eventType.scrollIntoView();\r\n window.scrollBy(0, -75);\r\n } else if (this.event.lat == null) {\r\n this.customErrors.map = 'Gelieve een locatie aan te duiden op de map.';\r\n\r\n this.$refs.map.scrollIntoView();\r\n window.scrollBy(0, -75);\r\n }\r\n\r\n if (this.event.lat != null) {\r\n this.customErrors.map = '';\r\n }\r\n\r\n this.event.disciplineIds = this.selectedDisciplines.map((discipline) => discipline.id);\r\n\r\n if (typeof (this.selectedEventType) !== 'string') {\r\n this.customErrors.eventType = '';\r\n }\r\n\r\n if (!isNullOrWhiteSpace(this.customErrors.discipline)\r\n || !isNullOrWhiteSpace(this.customErrors.map)\r\n || !isNullOrWhiteSpace(this.customErrors.eventType)) {\r\n return;\r\n }\r\n\r\n if (this.editMode) {\r\n this.updateEvent();\r\n } else {\r\n this.createNewEvent();\r\n }\r\n }\r\n });\r\n },\r\n createNewEvent() {\r\n this.createNewEventAction(this.event)\r\n .then(() => {\r\n this.$router.push({ name: 'event-detail', params: { eventurl: this.event.eventUrl } });\r\n })\r\n .catch((error) => {\r\n this.$toasted.show(...error.response.data);\r\n });\r\n },\r\n updateEvent() {\r\n this.updateEventAction(this.event)\r\n .then(() => {\r\n this.$router.push({ name: 'event-detail', params: { eventurl: this.event.eventUrl } });\r\n })\r\n .catch((error) => {\r\n this.$toasted.show(...error.response.data);\r\n });\r\n },\r\n isAdmin() {\r\n return !!(this.$isAdmin || this.club.currentUserIsAdmin);\r\n },\r\n cancel() {\r\n if (this.event.id === undefined) {\r\n this.$router.push({ name: 'events' });\r\n } else {\r\n this.$router.push({ name: 'event-detail', params: { eventurl: this.event.eventUrl } });\r\n }\r\n },\r\n tagsChanged(tags) {\r\n this.tags = tags.map((t) => ({ text: t.text }));\r\n this.event.tags = this.tags;\r\n },\r\n updateProvinceId(selectedProvince) {\r\n if (selectedProvince) {\r\n this.event.address_Province = selectedProvince.name;\r\n }\r\n },\r\n setEventUrl() {\r\n if (!this.event.eventUrl) {\r\n this.$set(this.event, 'eventUrl', this.event.name.replace(/ /g, '_'));\r\n }\r\n },\r\n updateCountryId(selectedCountry) {\r\n if (selectedCountry) {\r\n this.event.address_Country = selectedCountry.name;\r\n if (selectedCountry.name !== 'België') {\r\n this.event.address_Province = null;\r\n this.selectedProvince = null;\r\n }\r\n }\r\n },\r\n UpdateTypeId(selectedEventType) {\r\n if (selectedEventType) {\r\n this.customErrors.eventType = '';\r\n this.event.eventTypeId = selectedEventType.id;\r\n }\r\n },\r\n newLatLong(newLatLong) {\r\n this.customErrors.map = '';\r\n [this.event.lat, this.event.long] = newLatLong;\r\n },\r\n updateUntilDate() {\r\n this.event.until = this.event.from;\r\n },\r\n clearRegistrationPossibleUntil() {\r\n console.log('clearRegistrationPossibleUntil');\r\n this.event.registrationPossibleUntil = null;\r\n },\r\n },\r\n async created() {\r\n await this.initialiseTags();\r\n await this.initialiseEventTypes();\r\n await this.initialiseDisciplineList();\r\n\r\n // Only when editing an existing Event\r\n if (this.$route.params.eventurl) {\r\n this.editMode = true;\r\n if (this.$route.params.duplicate) {\r\n this.editMode = false;\r\n }\r\n this.eventUrl = this.$route.params.eventurl;\r\n this.initialiseEvent(this.eventUrl).then(() => {\r\n if (this.existingEvent.club.id) {\r\n this.clubId = this.existingEvent.club.id;\r\n this.clubUrl = this.existingEvent.club.clubUrl;\r\n this.initialiseClub(this.clubUrl).then(() => {\r\n this.event.clubId = this.clubId; // Set clubId for event object\r\n this.event.clubUrl = this.clubUrl;\r\n if (!this.isAdmin()) {\r\n this.$router.push({ name: '404' });\r\n }\r\n });\r\n }\r\n // This is a dirty way to clone data from a store mutation without it being tracked\r\n this.event = _.clone(this.existingEvent);\r\n this.imageObj = _.cloneDeep(this.existingEvent.profilePicture);\r\n this.event.clubId = this.clubId; // Set clubId for event object\r\n this.selectedProvince.name = this.event.address_Province;\r\n this.selectedCountry.name = this.event.address_Country;\r\n\r\n this.selectedCountry.name = this.event.address_Country;\r\n this.selectedProvince.name = this.event.address_Province;\r\n this.selectedEventType = this.event.eventType;\r\n this.existingMarker = {\r\n id: 1,\r\n latLong: [this.event.lat, this.event.long],\r\n };\r\n\r\n this.event.questions.forEach((question, index) => {\r\n this.questions[index].question = question.question;\r\n });\r\n\r\n // Set existing tags:\r\n this.tags = this.event.eventTags.map((t) => ({ text: t.name }));\r\n this.event.tags = this.tags; // Update/Create model requires this format.\r\n\r\n // set default multiselect value:\r\n this.initialiseDisciplineList().then(() => {\r\n this.selectedDisciplines = this.disciplineList.filter((x) => this.event.disciplineIds.includes(x.id));\r\n });\r\n\r\n this.loadCoordinateMap = true;\r\n });\r\n } else {\r\n this.clubUrl = this.$route.params.cluburl;\r\n this.event.clubUrl = this.clubUrl;\r\n }\r\n },\r\n};\r\n","import mod from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/eslint-loader/index.js??ref--13-0!./EventForm.controller.js?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/eslint-loader/index.js??ref--13-0!./EventForm.controller.js?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./EventForm.vue?vue&type=template&id=9cde299c&\"\nimport script from \"./EventForm.controller.js?vue&type=script&lang=js&\"\nexport * from \"./EventForm.controller.js?vue&type=script&lang=js&\"\nimport style0 from \"./EventForm.styles.scss?vue&type=style&index=0&lang=scss&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports"],"sourceRoot":""}