{"version":3,"sources":["webpack:///./src/views/Group/GroupForm/GroupForm.styles.scss","webpack:///./src/views/Group/GroupForm/GroupForm.vue?d843","webpack:///./src/views/Group/GroupForm/GroupForm.controller.js","webpack:///./src/views/Group/GroupForm/GroupForm.controller.js?1265","webpack:///./src/views/Group/GroupForm/GroupForm.vue"],"names":["render","_vm","this","_h","$createElement","_c","_self","isAllowed","staticClass","attrs","_v","infoEmail","_s","ref","on","$event","preventDefault","save","scopedSlots","_u","key","fn","errors","directives","name","rawName","value","group","expression","domProps","setGroupUrl","target","composing","$set","modifiers","$route","params","groupurl","loadCoordinateMap","existingMarker","newLatLong","_e","mapErrorMessage","class","selectedCountry","countryArray","updateCountryId","option","model","callback","$$v","selectedProvince","provinceArray","updateProvinceId","show","cropSuccess","hasPicture","error","imageObj","toggleShow","showCover","cropSuccessCover","hasCoverPicture","errorCover","coverImageObj","toggleShowCover","_l","discipline","refInFor","Array","isArray","checked","_i","$$a","$$el","$$c","$$i","concat","slice","inputChanged","id","disciplineErrorMessage","tags","filteredItems","tagsChanged","currentTag","editorToolbar","encodeURI","groupUrl","cancel","staticRenderFns","isServer","require","required","email","extend","VueTagsInput","default","message","validate","includes","strongRegex","RegExp","test","VueEditor","ImageUpload","metaInfo","title","components","Sidebar","LatLongMap","props","data","editMode","abbreviation","contactPerson","address_Street","address_Nr","address_Postcode","address_City","address_Country","address_Province","contactEmail","contactPhone","logo","groupDisciplines","lat","long","aboutUs","image","coverImage","map","p","c","url","process","computed","mapGetters","tagsList","filter","i","text","toLowerCase","indexOf","disciplineList","groupId","editGroup","formattedDisciplineList","forEach","level","d","_","clone","push","methods","mapActions","initialiseTags","createAction","editAction","initialiseGroup","initialiseDisciplineList","t","event","disciplineId","srcElement","addDisciplineId","removeDisciplineId","imgDataUrl","fetch","then","res","blob","file","File","type","createImage","createImageCover","reader","FileReader","onload","e","result","readAsDataURL","$refs","form","success","isNullOrWhiteSpace","length","disciplineError","updateGroup","createNewGroup","setTimeout","errorKeys","Object","keys","refs","$el","scrollIntoView","window","scrollBy","$router","errorCheckGroupDisciplines","index","splice","isSuperAdmin","$isSuperAdmin","isAdmin","$isAdmin","currentUserIsAdmin","fillGroupDisciplineList","groupDiscipline","find","catch","$toasted","response","created","paramGroupUrl","cloneDeep","profilePicture","coverPicture","latLong","groupTags","injectStyles","context","style0","__inject__","component"],"mappings":"kHAAA,iHAA6d,eAAG,G,kECAhe,I,EAAIA,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAQF,EAAIM,YAAaF,EAAG,MAAM,CAACG,YAAY,sDAAsD,CAACH,EAAG,MAAM,CAACG,YAAY,kCAAkCH,EAAG,UAAU,CAACG,YAAY,aAAa,CAACH,EAAG,MAAM,CAACG,YAAY,oBAAoB,CAACH,EAAG,MAAM,CAACG,YAAY,wBAAwB,CAACH,EAAG,MAAM,CAACI,MAAM,CAAC,IAAM,EAAQ,QAAuD,IAAM,YAAYJ,EAAG,MAAM,CAACG,YAAY,sBAAsB,CAACH,EAAG,IAAI,CAACG,YAAY,wCAAwC,CAACP,EAAIS,GAAG,4BAA4BL,EAAG,IAAI,CAACG,YAAY,mBAAmB,CAACP,EAAIS,GAAG,aAAaL,EAAG,MAAMA,EAAG,IAAI,CAACI,MAAM,CAAC,KAAO,oBAAoB,CAACR,EAAIS,GAAG,0BAA0BL,EAAG,MAAMA,EAAG,IAAI,CAACG,YAAY,mBAAmB,CAACP,EAAIS,GAAG,cAAcL,EAAG,MAAMA,EAAG,IAAI,CAACI,MAAM,CAAC,KAAO,UAAYR,EAAIU,YAAY,CAACV,EAAIS,GAAGT,EAAIW,GAAGX,EAAIU,gBAAgBN,EAAG,YAAYA,EAAG,MAAM,CAACG,YAAY,wBAAwB,CAACH,EAAG,MAAM,CAACG,YAAY,UAAU,CAAEP,EAAY,SAAEI,EAAG,KAAK,CAACJ,EAAIS,GAAG,wBAAwBL,EAAG,KAAK,CAACJ,EA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AM6F,gBAAkB5E,EAAgBpB,OAGjDM,YAtKO,WAuKA5B,KAAKyB,MAAM6D,UACdtF,KAAK+B,KAAK/B,KAAKyB,MAAO,WAAYzB,KAAKyB,MAAMH,SAInD+L,QAnQa,WAmQH,WAER,GADArN,KAAK0J,iBACD1J,KAAKiC,OAAOC,OAAOC,SAAU,CAC/B,IAAMmL,EAAgBtN,KAAKiC,OAAOC,OAAOC,SACzCnC,KAAK+G,UAAW,EAEhB/G,KAAK8J,2BAA2BS,MAAK,WACnC,EAAKV,gBAAgByD,GAAe/C,MAAK,WACvC,EAAK/G,SAAW6F,IAAEkE,UAAU,EAAKvE,UAAUwE,gBAC3C,EAAK1J,cAAgBuF,IAAEkE,UAAU,EAAKvE,UAAUyE,cAChD,EAAKhM,MAAQ4H,IAAEkE,UAAU,EAAKvE,WAE9B,EAAK/F,iBAAiB3B,KAAO,EAAKG,MAAM8F,iBACxC,EAAK7E,gBAAgBpB,KAAO,EAAKG,MAAM6F,gBAClC,EAAKsF,WACR,EAAKN,QAAQ/C,KAAK,CAAEjI,KAAM,QAG5B,EAAKyL,0BAEL,EAAK1K,eAAiB,CACpByC,GAAI,EACJ4I,QAAS,CAAC,EAAKjM,MAAMmG,IAAK,EAAKnG,MAAMoG,OAEvC,EAAKzF,mBAAoB,EAEzB,EAAK4C,KAAO,EAAKvD,MAAMkM,UAAU1F,KAAI,SAAC8B,GAAD,MAAQ,CAAEpB,KAAMoB,EAAEzI,SACvD,EAAKG,MAAMuD,KAAO,EAAKA,gBAGtBhF,KAAK8J,6BC5UqS,I,YCGrT,SAAS8D,EAAcC,GAErB,IAAIC,EAAS,EAAQ,QACnBA,EAAOC,YAAYD,EAAOC,WAAWF,GAMzC,IAAIG,EAAY,eACd,EACAlO,EACA0F,GACA,EACAoI,EACA,KACA,YAIa,aAAAI,E","file":"js/chunk-f5b2a8e0.2522e6f4.js","sourcesContent":["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!./GroupForm.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!./GroupForm.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 (_vm.isAllowed())?_c('div',{staticClass:\"l-view l-container--full-height l-container--large\"},[_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('div',{staticClass:\"o-page o-page--white\"},[_c('div',{staticClass:\"p-form\"},[(_vm.editMode)?_c('h1',[_vm._v(\"Bewerken van Groep\")]):_c('h1',[_vm._v(\"Groep aanmaken\")]),_c('ValidationObserver',{ref:\"form\",attrs:{\"slim\":\"\"}},[_c('form',{staticClass:\"p__form\",attrs:{\"id\":\"groupForm\"},on:{\"submit\":function($event){$event.preventDefault();return _vm.save($event)}}},[_c('h6',[_vm._v(\"GROEPSGEGEVENS\")]),_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(\" Groepsnaam \"),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.group.name),expression:\"group.name\"}],staticClass:\"a-input\",attrs:{\"type\":\"text\",\"name\":\"Groepnaam\"},domProps:{\"value\":(_vm.group.name)},on:{\"blur\":_vm.setGroupUrl,\"input\":function($event){if($event.target.composing){ return; }_vm.$set(_vm.group, \"name\", $event.target.value)}}}),_c('span',{staticClass:\"a-input__validation-message\"},[_vm._v(_vm._s(errors[0]))])])]}}],null,false,3289780652)}),_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(\" Afkorting \"),_c('input',{directives:[{name:\"model\",rawName:\"v-model.lazy\",value:(_vm.group.abbreviation),expression:\"group.abbreviation\",modifiers:{\"lazy\":true}}],staticClass:\"a-input\",attrs:{\"type\":\"text\",\"name\":\"abbreviation\"},domProps:{\"value\":(_vm.group.abbreviation)},on:{\"change\":function($event){return _vm.$set(_vm.group, \"abbreviation\", $event.target.value)}}}),_c('span',{staticClass:\"a-input__validation-message\"},[_vm._v(_vm._s(errors[0]))])])]}}],null,false,2448842624)}),_c('label',{staticClass:\"a-input__label\"},[_vm._v(\" Coördinaten \"),((_vm.$route.params.groupurl && _vm.loadCoordinateMap) || !_vm.$route.params.groupurl)?_c('LatLongMap',{attrs:{\"existingMarker\":_vm.existingMarker},on:{\"markerPlaced\":_vm.newLatLong}}):_vm._e(),_c('span',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.mapErrorMessage),expression:\"mapErrorMessage\"}],staticClass:\"a-input__validation-message\"},[_vm._v(_vm._s(_vm.mapErrorMessage))])],1),_c('ValidationProvider',{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(\" Contactpersoon (optioneel) \"),_c('input',{directives:[{name:\"model\",rawName:\"v-model.lazy\",value:(_vm.group.contactPerson),expression:\"group.contactPerson\",modifiers:{\"lazy\":true}}],staticClass:\"a-input\",attrs:{\"type\":\"text\",\"name\":\"Contactperson\"},domProps:{\"value\":(_vm.group.contactPerson)},on:{\"change\":function($event){return _vm.$set(_vm.group, \"contactPerson\", $event.target.value)}}}),_c('span',{staticClass:\"a-input__validation-message\"},[_vm._v(_vm._s(errors[0]))])])]}}],null,false,3698370192)}),_c('h6',[_vm._v(\"CONTACTGEGEVENS\")]),_c('div',{staticClass:\"p-form__double-wrapper\"},[_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(\" Straat \"),_c('input',{directives:[{name:\"model\",rawName:\"v-model.lazy\",value:(_vm.group.address_Street),expression:\"group.address_Street\",modifiers:{\"lazy\":true}}],staticClass:\"a-input\",attrs:{\"type\":\"text\",\"name\":\"Straat\"},domProps:{\"value\":(_vm.group.address_Street)},on:{\"change\":function($event){return _vm.$set(_vm.group, \"address_Street\", $event.target.value)}}}),_c('span',{staticClass:\"a-input__validation-message\"},[_vm._v(_vm._s(errors[0]))])]}}],null,false,1892867418)}),_c('ValidationProvider',{staticClass:\"a-input__label p-form__form-label--right\",attrs:{\"rules\":\"required\",\"tag\":\"label\"},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.group.address_Nr),expression:\"group.address_Nr\",modifiers:{\"lazy\":true}}],staticClass:\"a-input\",attrs:{\"type\":\"text\",\"name\":\"Nr\"},domProps:{\"value\":(_vm.group.address_Nr)},on:{\"change\":function($event){return _vm.$set(_vm.group, \"address_Nr\", $event.target.value)}}}),_c('span',{staticClass:\"a-input__validation-message\"},[_vm._v(_vm._s(errors[0]))])]}}],null,false,2558252429)})],1),_c('div',{staticClass:\"p-form__double-wrapper\"},[_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(\" Plaats \"),_c('input',{directives:[{name:\"model\",rawName:\"v-model.lazy\",value:(_vm.group.address_City),expression:\"group.address_City\",modifiers:{\"lazy\":true}}],staticClass:\"a-input\",attrs:{\"type\":\"text\",\"name\":\"City\"},domProps:{\"value\":(_vm.group.address_City)},on:{\"change\":function($event){return _vm.$set(_vm.group, \"address_City\", $event.target.value)}}}),_c('span',{staticClass:\"a-input__validation-message\"},[_vm._v(_vm._s(errors[0]))])]}}],null,false,4149990470)}),_c('ValidationProvider',{staticClass:\"a-input__label p-form__form-label--right\",attrs:{\"rules\":\"required\",\"tag\":\"label\"},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.group.address_Postcode),expression:\"group.address_Postcode\",modifiers:{\"lazy\":true}}],staticClass:\"a-input\",attrs:{\"type\":\"text\",\"name\":\"PostCode\"},domProps:{\"value\":(_vm.group.address_Postcode)},on:{\"change\":function($event){return _vm.$set(_vm.group, \"address_Postcode\", $event.target.value)}}}),_c('span',{staticClass:\"a-input__validation-message\"},[_vm._v(_vm._s(errors[0]))])]}}],null,false,2856212602)})],1),_c('div',{staticClass:\"p-form__double-wrapper\",class:[_vm.selectedCountry.name !== 'België' ? 'p-form--half-width' : '']},[_c('div',{staticClass:\"a-input__label\"},[_vm._v(\" Land \"),_c('multiselect',{attrs:{\"track-by\":\"name\",\"label\":\"name\",\"placeholder\":_vm.selectedCountry.name,\"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))]}}],null,false,2705703343),model:{value:(_vm.selectedCountry),callback:function ($$v) {_vm.selectedCountry=$$v},expression:\"selectedCountry\"}})],1),_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.selectedCountry.name == 'België'),expression:\"selectedCountry.name == 'België'\"}],staticClass:\"a-input__label p-form__form-label--right\"},[_vm._v(\" Provincie \"),_c('multiselect',{attrs:{\"track-by\":\"name\",\"label\":\"name\",\"placeholder\":_vm.selectedProvince.name,\"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))]}}],null,false,2705703343),model:{value:(_vm.selectedProvince),callback:function ($$v) {_vm.selectedProvince=$$v},expression:\"selectedProvince\"}})],1)]),_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(\" E-mail \"),_c('input',{directives:[{name:\"model\",rawName:\"v-model.lazy\",value:(_vm.group.contactEmail),expression:\"group.contactEmail\",modifiers:{\"lazy\":true}}],staticClass:\"a-input\",attrs:{\"type\":\"email\",\"name\":\"email\"},domProps:{\"value\":(_vm.group.contactEmail)},on:{\"change\":function($event){return _vm.$set(_vm.group, \"contactEmail\", $event.target.value)}}}),_c('span',{staticClass:\"a-input__validation-message\"},[_vm._v(_vm._s(errors[0]))])])]}}],null,false,1494783181)}),_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(\" Telefoonnummer \"),_c('input',{directives:[{name:\"model\",rawName:\"v-model.lazy\",value:(_vm.group.contactPhone),expression:\"group.contactPhone\",modifiers:{\"lazy\":true}}],staticClass:\"a-input\",attrs:{\"type\":\"text\",\"name\":\"Telefoonnummer\"},domProps:{\"value\":(_vm.group.contactPhone)},on:{\"change\":function($event){return _vm.$set(_vm.group, \"contactPhone\", $event.target.value)}}}),_c('span',{staticClass:\"a-input__validation-message\"},[_vm._v(_vm._s(errors[0]))])])]}}],null,false,3782277201)}),_c('h6',[_vm._v(\"PROFIELGEGEVENS\")]),_c('label',{staticClass:\"a-input__label\"},[_vm._v(\" Profielfoto \")]),_c('ImageUpload',{attrs:{\"field\":\"img\",\"width\":300,\"height\":300,\"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.group.hasPicture && !_vm.error)?_c('img',{staticClass:\"a-input__image\",attrs:{\"src\":_vm.imageObj || require('@/assets/images/generic/upload-image.png'),\"alt\":\"afbeelding groep\"},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 groep\"},on:{\"click\":function($event){return _vm.toggleShow()}}})]),_c('label',{staticClass:\"a-input__label\"},[_vm._v(\" Bannerfoto \")]),_c('ImageUpload',{attrs:{\"field\":\"img\",\"width\":980,\"height\":400,\"lang-type\":\"nl\",\"img-format\":\"png\",\"noSquare\":true,\"noCircle\":true,\"value\":_vm.showCover},on:{\"crop-success\":_vm.cropSuccessCover,\"update:value\":function($event){_vm.showCover=$event}},model:{value:(_vm.showCover),callback:function ($$v) {_vm.showCover=$$v},expression:\"showCover\"}}),_c('div',[(_vm.group.hasCoverPicture && !_vm.errorCover)?_c('img',{staticClass:\"a-input__image\",attrs:{\"src\":_vm.coverImageObj || require('@/assets/images/generic/upload-image.png'),\"alt\":\"afbeelding groep\"},on:{\"click\":function($event){return _vm.toggleShowCover()},\"error\":function($event){_vm.errorCover=true}}}):_c('img',{staticClass:\"a-input__image\",attrs:{\"src\":require('@/assets/images/generic/upload-image.png'),\"alt\":\"afbeelding groep\"},on:{\"click\":function($event){return _vm.toggleShowCover()}}})]),_c('label',{staticClass:\"a-input__label\"},[_vm._v(\" Sportcategorie \")]),_c('div',{staticClass:\"a-input__checkbox-list\"},[_vm._l((_vm.formattedDisciplineList),function(discipline){return _c('label',{key:discipline.name,ref:\"disciplineList\",refInFor:true,staticClass:\"a-input__checkbox-container\"},[_vm._v(\" \"+_vm._s(discipline.name)+\" \"),_c('input',{directives:[{name:\"model\",rawName:\"v-model.lazy\",value:(discipline.checked),expression:\"discipline.checked\",modifiers:{\"lazy\":true}}],attrs:{\"type\":\"checkbox\"},domProps:{\"checked\":Array.isArray(discipline.checked)?_vm._i(discipline.checked,null)>-1:(discipline.checked)},on:{\"change\":[function($event){var $$a=discipline.checked,$$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(discipline, \"checked\", $$a.concat([$$v])))}else{$$i>-1&&(_vm.$set(discipline, \"checked\", $$a.slice(0,$$i).concat($$a.slice($$i+1))))}}else{_vm.$set(discipline, \"checked\", $$c)}},function($event){return _vm.inputChanged($event, discipline.id)}]}}),_c('span',{staticClass:\"a-input__checkbox-checkmark\"})])}),_c('span',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.disciplineErrorMessage),expression:\"disciplineErrorMessage\"}],staticClass:\"a-input__validation-message\"},[_vm._v(_vm._s(_vm.disciplineErrorMessage))])],2),_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('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(\"Profiel bio\")]),_c('vue-editor',{attrs:{\"editor-toolbar\":_vm.editorToolbar},model:{value:(_vm.group.aboutUs),callback:function ($$v) {_vm.$set(_vm.group, \"aboutUs\", $$v)},expression:\"group.aboutUs\"}}),_c('span',{staticClass:\"a-input__validation-message\"},[_vm._v(_vm._s(errors[0]))])]}}],null,false,3681252181)}),_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',{staticClass:\"a-input__label\"},[_vm._v(\" Groep URL \"),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.group.groupUrl),expression:\"group.groupUrl\"}],staticClass:\"a-input\",attrs:{\"type\":\"text\",\"name\":\"groupurl\"},domProps:{\"value\":(_vm.group.groupUrl)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.$set(_vm.group, \"groupUrl\", $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 groep: \"),_c('strong',[_vm._v(\"ikwatersport.be/groepen/\"+_vm._s(encodeURI(_vm.group.groupUrl)))])])]}}],null,false,103026794)}),_c('div',{staticClass:\"p-form__buttons\"},[_c('a',{staticClass:\"a-button a-button--secondary a-button--green-border u-margin-right-xs\",attrs:{\"href\":\"#\",\"title\":\"Annuleer\"},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\")])])],1)])],1)])],1):_vm._e()}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","/* eslint-disable prefer-destructuring */\r\n\r\nimport { mapActions, mapGetters } from 'vuex';\r\nimport _ from 'lodash';\r\nimport { Sidebar, LatLongMap } from '@/components';\r\nimport { countryArray, provinceArray, isNullOrWhiteSpace } from '@/utils';\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 VueTagsInput = require('@johmun/vue-tags-input').default;\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('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('coordinate', {\r\n // eslint-disable-next-line no-unused-vars\r\n message: 'Geef een geldig coördinaat in (Bv: xx.xxxxxx)',\r\n validate: (value) => {\r\n // eslint-disable-next-line no-useless-escape\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 // eslint-disable-next-line no-var\r\n var { VueEditor } = require('vue2-editor/dist/vue2-editor.core');\r\n var ImageUpload = require('vue-image-crop-upload').default;\r\n}\r\n\r\nexport default {\r\n metaInfo: {\r\n title: 'Group formpage',\r\n },\r\n name: 'GroupForm',\r\n components: {\r\n [Sidebar.name]: Sidebar,\r\n VueEditor,\r\n LatLongMap,\r\n ImageUpload,\r\n VueTagsInput,\r\n },\r\n props: {},\r\n data: () => ({\r\n editMode: false,\r\n currentTag: '',\r\n tags: [],\r\n group: {\r\n name: '',\r\n abbreviation: '',\r\n contactPerson: '',\r\n address_Street: '',\r\n address_Nr: '',\r\n address_Postcode: '',\r\n address_City: '',\r\n address_Country: '',\r\n address_Province: '',\r\n contactEmail: '',\r\n contactPhone: '',\r\n groupUrl: '',\r\n logo: '',\r\n groupDisciplines: [],\r\n lat: null,\r\n long: null,\r\n aboutUs: '',\r\n image: '',\r\n coverImage: '',\r\n tags: [],\r\n },\r\n show: false,\r\n showCover: false,\r\n imageObj: '',\r\n coverImageObj: '',\r\n error: false,\r\n errorCover: false,\r\n loadCoordinateMap: false,\r\n existingMarker: null,\r\n disciplineErrorMessage: '',\r\n mapErrorMessage: '',\r\n editorToolbar: [['bold', 'link']],\r\n provinceArray: provinceArray.map((p) => ({ name: p })),\r\n countryArray: countryArray.map((c) => ({ name: c })),\r\n selectedProvince: { name: 'West - Vlaanderen' },\r\n selectedCountry: { name: 'België' },\r\n url: process.env.VUE_APP_URL_MANUAL,\r\n }),\r\n computed: {\r\n ...mapGetters('tag', {\r\n tagsList: 'getTagList',\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 ...mapGetters('discipline', {\r\n disciplineList: 'getDisciplineList',\r\n }),\r\n ...mapGetters('group', {\r\n groupId: 'getGroupId',\r\n editGroup: 'getGroup',\r\n }),\r\n formattedDisciplineList() {\r\n const formattedDisciplineList = [];\r\n\r\n this.disciplineList.forEach((discipline) => {\r\n if (discipline.level === 0) {\r\n const d = _.clone(discipline);\r\n formattedDisciplineList.push(d);\r\n }\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('group', {\r\n createAction: 'CREATE_GROUP',\r\n editAction: 'EDIT_GROUP',\r\n initialiseGroup: 'FETCH_DATA_EDIT_GROUP',\r\n }),\r\n ...mapActions('discipline', {\r\n initialiseDisciplineList: 'FETCH_DATA_DISCIPLINE_LIST',\r\n }),\r\n tagsChanged(tags) {\r\n this.tags = tags.map((t) => ({ text: t.text }));\r\n this.group.tags = this.tags;\r\n },\r\n inputChanged(event, disciplineId) {\r\n if (event.srcElement.checked) {\r\n this.addDisciplineId(disciplineId);\r\n } else {\r\n this.removeDisciplineId(disciplineId);\r\n }\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.group.image = file;\r\n this.group.hasPicture = true;\r\n })\r\n .then(() => {\r\n this.createImage(this.group.image);\r\n this.toggleShow();\r\n });\r\n },\r\n cropSuccessCover(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.group.coverImage = file;\r\n this.group.hasCoverPicture = true;\r\n })\r\n .then(() => {\r\n this.createImageCover(this.group.coverImage);\r\n this.toggleShowCover();\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 createImageCover(file) {\r\n const reader = new FileReader();\r\n reader.onload = (e) => {\r\n this.coverImageObj = 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 toggleShowCover() {\r\n this.showCover = !this.showCover;\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 if (isNullOrWhiteSpace(this.group.address_Country) || isNullOrWhiteSpace(this.group.address_Province)) {\r\n this.group.address_Province = this.selectedProvince.name;\r\n this.group.address_Country = this.selectedCountry.name;\r\n }\r\n if (this.group.groupDisciplines.length <= 0) {\r\n this.disciplineError = 'Minstens 1 categorie vereist.';\r\n } else if (this.group.lat == null) {\r\n this.mapErrorMessage = 'Gelieve een locatie aan te duiden op de map.';\r\n } else if (this.editMode) {\r\n this.updateGroup();\r\n } else {\r\n this.createNewGroup();\r\n }\r\n }\r\n });\r\n },\r\n cancel() {\r\n this.$router.push({ name: 'group-detail', params: { groupurl: this.group.groupUrl } });\r\n },\r\n\r\n addDisciplineId(id) {\r\n this.group.groupDisciplines.push(id);\r\n this.errorCheckGroupDisciplines();\r\n },\r\n removeDisciplineId(id) {\r\n const index = this.group.groupDisciplines.indexOf(id);\r\n this.group.groupDisciplines.splice(index, 1);\r\n this.errorCheckGroupDisciplines();\r\n },\r\n isSuperAdmin() {\r\n return !!(this.$isSuperAdmin);\r\n },\r\n isAdmin() {\r\n return !!(this.$isAdmin || this.group.currentUserIsAdmin);\r\n },\r\n fillGroupDisciplineList() {\r\n this.group.groupDisciplines.forEach((groupDiscipline) => {\r\n this.formattedDisciplineList.find((discipline) => discipline.id === groupDiscipline).checked = true;\r\n });\r\n },\r\n isAllowed() {\r\n if (this.editMode) {\r\n return this.isSuperAdmin() || this.isAdmin();\r\n }\r\n return true;\r\n },\r\n createNewGroup() {\r\n this.createAction(this.group)\r\n .then(() => {\r\n this.$router.push({ name: 'group-detail', params: { groupurl: this.group.groupUrl } });\r\n })\r\n .catch((error) => {\r\n this.$toasted.show(...error.response.data);\r\n });\r\n },\r\n updateGroup() {\r\n this.editAction(this.group)\r\n .then(() => {\r\n this.$router.push({ name: 'group-detail', params: { groupurl: this.group.groupUrl } });\r\n })\r\n .catch((error) => {\r\n this.$toasted.show(...error.response.data);\r\n });\r\n },\r\n errorCheckGroupDisciplines() {\r\n if (this.group.groupDisciplines.length <= 0) {\r\n this.disciplineErrorMessage = 'Minstens 1 categorie vereist.';\r\n } else {\r\n this.disciplineErrorMessage = '';\r\n }\r\n },\r\n newLatLong(newLatLong) {\r\n [this.group.lat, this.group.long] = newLatLong;\r\n },\r\n\r\n updateProvinceId(selectedProvince) {\r\n if (selectedProvince) {\r\n this.group.address_Province = selectedProvince.name;\r\n }\r\n },\r\n\r\n updateCountryId(selectedCountry) {\r\n if (selectedCountry) {\r\n this.group.address_Country = selectedCountry.name;\r\n }\r\n },\r\n setGroupUrl() {\r\n if (!this.group.groupUrl) {\r\n this.$set(this.group, 'groupUrl', this.group.name);\r\n }\r\n },\r\n },\r\n created() {\r\n this.initialiseTags();\r\n if (this.$route.params.groupurl) {\r\n const paramGroupUrl = this.$route.params.groupurl;\r\n this.editMode = true;\r\n\r\n this.initialiseDisciplineList().then(() => {\r\n this.initialiseGroup(paramGroupUrl).then(() => {\r\n this.imageObj = _.cloneDeep(this.editGroup.profilePicture);\r\n this.coverImageObj = _.cloneDeep(this.editGroup.coverPicture);\r\n this.group = _.cloneDeep(this.editGroup);\r\n\r\n this.selectedProvince.name = this.group.address_Province;\r\n this.selectedCountry.name = this.group.address_Country;\r\n if (!this.isAdmin()) {\r\n this.$router.push({ name: '404' });\r\n }\r\n\r\n this.fillGroupDisciplineList();\r\n\r\n this.existingMarker = {\r\n id: 1,\r\n latLong: [this.group.lat, this.group.long],\r\n };\r\n this.loadCoordinateMap = true;\r\n // Set existing tags:\r\n this.tags = this.group.groupTags.map((t) => ({ text: t.name }));\r\n this.group.tags = this.tags; // Update/Create model requires this format.\r\n });\r\n });\r\n } else this.initialiseDisciplineList();\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!./GroupForm.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!./GroupForm.controller.js?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./GroupForm.vue?vue&type=template&id=17badfa2&\"\nimport script from \"./GroupForm.controller.js?vue&type=script&lang=js&\"\nexport * from \"./GroupForm.controller.js?vue&type=script&lang=js&\"\nfunction injectStyles (context) {\n \n var style0 = require(\"./GroupForm.styles.scss?vue&type=style&index=0&lang=scss&\")\nif (style0.__inject__) style0.__inject__(context)\n\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 injectStyles,\n null,\n \"61cd233c\"\n \n)\n\nexport default component.exports"],"sourceRoot":""}