(function(t){function e(e){for(var n,a,s=e[0],l=e[1],u=e[2],d=0,f=[];d>")])],1),o("b-form-group",{attrs:{label:t.$root.translation("ID_USERNAME")}},[o("b-form-input",{attrs:{state:t.validateState("userName"),autocomplete:"off"},model:{value:t.form.userName,callback:function(e){t.$set(t.form,"userName",e)},expression:"form.userName"}}),o("b-form-invalid-feedback",[t._v(t._s(t.$root.translation("ID_IS_REQUIRED")))])],1),o("b-form-group",{attrs:{label:t.$root.translation("ID_PASSWORD")}},[o("b-form-input",{attrs:{state:t.validateState("password"),type:"password",autocomplete:"off"},model:{value:t.form.password,callback:function(e){t.$set(t.form,"password",e)},expression:"form.password"}}),o("b-form-invalid-feedback",[t._v(t._s(t.$root.translation("ID_IS_REQUIRED")))])],1),o("b-form-group",{attrs:{label:t.$root.translation("ID_USER_IDENTIFIER")}},[o("b-input-group",{scopedSlots:t._u([{key:"append",fn:function(){return[o("b-input-group-text",{staticClass:"p-0"},[o("b-button",{staticClass:"border-0",attrs:{size:"md",variant:"outline-light"},on:{click:function(e){t.disabledField.userIdentifier=!t.disabledField.userIdentifier}}},[o("b-icon",{attrs:{icon:"pencil-fill","aria-hidden":"true",variant:"primary"}})],1)],1)]},proxy:!0}])},[o("b-form-input",{attrs:{autocomplete:"off",disabled:t.disabledField.userIdentifier},model:{value:t.form.userIdentifier,callback:function(e){t.$set(t.form,"userIdentifier",e)},expression:"form.userIdentifier"}})],1)],1),o("b-form-group",{attrs:{label:t.$root.translation("ID_GROUP_IDENTIFIER")}},[o("b-input-group",{scopedSlots:t._u([{key:"append",fn:function(){return[o("b-input-group-text",{staticClass:"p-0"},[o("b-button",{staticClass:"border-0",attrs:{size:"md",variant:"outline-light"},on:{click:function(e){t.disabledField.groupIdentifier=!t.disabledField.groupIdentifier}}},[o("b-icon",{attrs:{icon:"pencil-fill","aria-hidden":"true",variant:"primary"}})],1)],1)]},proxy:!0}])},[o("b-form-input",{attrs:{autocomplete:"off",disabled:t.disabledField.groupIdentifier},model:{value:t.form.groupIdentifier,callback:function(e){t.$set(t.form,"groupIdentifier",e)},expression:"form.groupIdentifier"}})],1)],1),o("b-form-group",{attrs:{label:t.$root.translation("ID_FILTER_TO_SEARCH_USERS")}},[o("b-form-input",{attrs:{autocomplete:"off"},model:{value:t.form.filterToSearchUsers,callback:function(e){t.$set(t.form,"filterToSearchUsers",e)},expression:"form.filterToSearchUsers"}})],1),o("b-form-group",{attrs:{label:t.$root.translation("ID_USER_CLASS_IDENTIFIER")}},[o("b-input-group",{scopedSlots:t._u([{key:"append",fn:function(){return[o("b-input-group-text",{staticClass:"p-0"},[o("b-button",{staticClass:"border-0",attrs:{size:"md",variant:"outline-light"},on:{click:function(e){t.disabledField.userClassIdentifier=!t.disabledField.userClassIdentifier}}},[o("b-icon",{attrs:{icon:"pencil-fill","aria-hidden":"true",variant:"primary"}})],1)],1)]},proxy:!0}])},[o("b-form-input",{attrs:{disabled:t.disabledField.userClassIdentifier,autocomplete:"off"},model:{value:t.form.userClassIdentifier,callback:function(e){t.$set(t.form,"userClassIdentifier",e)},expression:"form.userClassIdentifier"}})],1)],1),o("b-form-group",{attrs:{label:t.$root.translation("ID_GROUP_CLASS_IDENTIFIER")}},[o("b-input-group",{scopedSlots:t._u([{key:"append",fn:function(){return[o("b-input-group-text",{staticClass:"p-0"},[o("b-button",{staticClass:"border-0",attrs:{size:"md",variant:"outline-light"},on:{click:function(e){t.disabledField.groupClassIdentifier=!t.disabledField.groupClassIdentifier}}},[o("b-icon",{attrs:{icon:"pencil-fill","aria-hidden":"true",variant:"primary"}})],1)],1)]},proxy:!0}])},[o("b-form-input",{attrs:{disabled:t.disabledField.groupClassIdentifier,autocomplete:"off"},model:{value:t.form.groupClassIdentifier,callback:function(e){t.$set(t.form,"groupClassIdentifier",e)},expression:"form.groupClassIdentifier"}})],1)],1),o("b-form-group",{attrs:{label:t.$root.translation("ID_DEPARTMENT_CLASS_IDENTIFIER")}},[o("b-input-group",{scopedSlots:t._u([{key:"append",fn:function(){return[o("b-input-group-text",{staticClass:"p-0"},[o("b-button",{staticClass:"border-0",attrs:{size:"md",variant:"outline-light"},on:{click:function(e){t.disabledField.departmentClassIdentifier=!t.disabledField.departmentClassIdentifier}}},[o("b-icon",{attrs:{icon:"pencil-fill","aria-hidden":"true",variant:"primary"}})],1)],1)]},proxy:!0}])},[o("b-form-input",{attrs:{disabled:t.disabledField.departmentClassIdentifier,autocomplete:"off"},model:{value:t.form.departmentClassIdentifier,callback:function(e){t.$set(t.form,"departmentClassIdentifier",e)},expression:"form.departmentClassIdentifier"}})],1)],1)],1)],1),o("b-row",{staticClass:"text-right"},[o("b-col",[o("b-form-group",[o("b-button",{attrs:{variant:"danger"},on:{click:function(e){return t.$emit("cancel")}}},[t._v(t._s(t.$root.translation("ID_CANCEL")))]),t._v(" "),o("b-button",{attrs:{type:"submit",variant:"success"}},[t._v(t._s(t.buttonLabel))])],1)],1)],1)],1)],1),o("b-modal",{attrs:{id:"messageForFailedTest","ok-variant":"success","ok-only":""}},[t._v(" "+t._s(t.testMessage)+" ")]),o("b-modal",{ref:"fas-b-modal-upload-file",attrs:{title:t.$root.translation("ID_IMPORT_SETTINGS"),"hide-footer":"",size:"lg"}},[o("formUploadSource",{ref:"formUploadSource",attrs:{skipNameValidation:""},on:{cancel:function(e){t.$refs["fas-b-modal-upload-file"].hide(),t.$refs.formUploadSource.reset()},optionSaveButton:t.optionSaveButton}})],1)],1)},x=[],H={mixins:[R["validationMixin"]],components:{formUploadSource:O},validations:function(){var t={form:{name:{required:I["required"]},serverAddress:{required:I["required"]},port:{required:I["required"]}}};return"1"===this.form.anonymous&&(t.form.userName={},t.form.password={}),"0"===this.form.anonymous&&(t.form.userName={required:I["required"]},t.form.password={required:I["required"]}),t},data:function(){return{buttonLabel:this.$root.translation("ID_TEST"),testStatus:!1,testMessage:"",showMathAttributes:!1,form:{uid:"",availableAuthenticationSource:"ldapAdvanced",name:"",type:"ad",serverAddress:"",port:"389",enableAutomaticRegister:"0",anonymous:"0",enableTLS:"0",baseDN:"",userName:"",password:"",userIdentifier:"samaccountname",filterToSearchUsers:"",gridText:"[]",signInPolicyForLDAP:"1",inactiveUsers:"",role:"PROCESSMAKER_OPERATOR",groupIdentifier:"member",userClassIdentifier:"",groupClassIdentifier:"(objectclass=posixgroup)(objectclass=group)(objectclass=groupofuniquenames)",departmentClassIdentifier:"(objectclass=organizationalunit)"},availableAuthenticationSources:[{value:"ldapAdvanced",text:"LDAP Advanced"},{value:"ldap",text:"LDAP"}],types:[{value:"ad",text:"Active Directory"},{value:"ldap",text:"Open LDAP"},{value:"ds",text:"389 DS"}],roles:[],disabledField:{port:!0,userIdentifier:!0,groupIdentifier:!0,userClassIdentifier:!0,groupClassIdentifier:!0,departmentClassIdentifier:!0}}},methods:{validateState:function(t){var e=this.$v.form[t],o=e.$dirty,n=e.$error;return o?!n:null},reset:function(){this.form={uid:"",availableAuthenticationSource:"ldapAdvanced",name:"",type:"ad",serverAddress:"",port:"389",enableAutomaticRegister:"0",anonymous:"0",enableTLS:"0",baseDN:"",userName:"",password:"",userIdentifier:"samaccountname",filterToSearchUsers:"",gridText:"[]",signInPolicyForLDAP:"1",inactiveUsers:"",role:"PROCESSMAKER_OPERATOR",groupIdentifier:"member",userClassIdentifier:"",groupClassIdentifier:"(objectclass=posixgroup)(objectclass=group)(objectclass=groupofuniquenames)",departmentClassIdentifier:"(objectclass=organizationalunit)"}},onSave:function(){this.$v.form.$touch(),this.$v.form.$anyError||(this.testStatus?this.$emit("save",this.form):this.test(this.form))},load:function(t){this.form=t},test:function(t){var e=this,o=new FormData;o.append("AUTH_SOURCE_NAME",t.name),A.a.post(this.$root.baseUrl()+"authSources/ldapAdvancedProxy.php?functionAccion=ldapVerifyName",o).then((function(o){if(!1===o.data.row||""!==e.form.uid&&"string"===typeof e.form.uid){var n=e.formToFormData(t);A.a.post(e.$root.baseUrl()+"authSources/ldapAdvancedProxy.php?functionAccion=ldapTestConnection",n).then((function(t){if("OK"===t.data.status)return e.testStatus=!0,e.buttonLabel=e.$root.translation("ID_SAVE"),"message"in t.data&&e.$bvModal.msgBoxOk(t.data.message,{title:" ",hideHeaderClose:!1,okTitle:e.$root.translation("ID_OK"),okVariant:"success",okOnly:!0}),void e.$bvModal.msgBoxOk(e.$root.translation("ID_SUCCESSFUL_TEST_CONNECTION"),{title:" ",hideHeaderClose:!1,okTitle:e.$root.translation("ID_OK"),okVariant:"success",okOnly:!0});e.testMessage=t.data.message,e.testStatus=!1,e.buttonLabel=e.$root.translation("ID_TEST"),e.$bvModal.show("messageForFailedTest")})).catch((function(t){})).finally((function(){}))}else e.$bvModal.msgBoxOk(e.$root.translation("ID_NAME_EXISTS"),{title:" ",hideHeaderClose:!1,okTitle:e.$root.translation("ID_OK"),okVariant:"success",okOnly:!0}).then((function(t){})).catch((function(t){}))})).catch((function(t){})).finally((function(){}))},matchAttributesToSync:function(){this.$emit("matchAttributesToSync")},setGridText:function(t){this.form.gridText=t},getGridText:function(){return this.form.gridText},optionSaveButton:function(t){this.$refs["fas-b-modal-upload-file"].hide(),t.AUTH_SOURCE_UID=this.form.uid;var e=this.rowToForm(t);this.load(e)},rowToForm:function(t){var e=[];if("AUTH_SOURCE_GRID_ATTRIBUTE"in t)for(var o in t.AUTH_SOURCE_GRID_ATTRIBUTE){var n=t.AUTH_SOURCE_GRID_ATTRIBUTE[o]||{};e.push({attributeRole:n.attributeRole||"",attributeUser:n.attributeUser||"",attributeLdap:n.attributeLdap||""})}var r={uid:t.AUTH_SOURCE_UID,availableAuthenticationSource:t.AUTH_SOURCE_PROVIDER,name:t.AUTH_SOURCE_NAME,type:t.LDAP_TYPE,serverAddress:t.AUTH_SOURCE_SERVER_NAME,port:t.AUTH_SOURCE_PORT,enableAutomaticRegister:t.AUTH_SOURCE_AUTO_REGISTER,anonymous:t.AUTH_ANONYMOUS,enableTLS:t.AUTH_SOURCE_ENABLED_TLS,baseDN:t.AUTH_SOURCE_BASE_DN,userName:t.AUTH_SOURCE_SEARCH_USER,password:t.AUTH_SOURCE_PASSWORD,userIdentifier:t.AUTH_SOURCE_IDENTIFIER_FOR_USER,filterToSearchUsers:t.AUTH_SOURCE_USERS_FILTER,gridText:JSON.stringify(e),signInPolicyForLDAP:t.AUTH_SOURCE_SIGNIN_POLICY_FOR_LDAP,inactiveUsers:t.AUTH_SOURCE_RETIRED_OU,role:t.USR_ROLE||"",groupIdentifier:t.AUTH_SOURCE_IDENTIFIER_FOR_USER_GROUP||"",userClassIdentifier:t.AUTH_SOURCE_IDENTIFIER_FOR_USER_CLASS||"",groupClassIdentifier:t.GROUP_CLASS_IDENTIFIER||"",departmentClassIdentifier:t.DEPARTMENT_CLASS_IDENTIFIER||""};return r},formToFormData:function(t){var e=new FormData;return e.append("AUTH_SOURCE_UID",t.uid),e.append("AUTH_SOURCE_NAME",t.name),e.append("AUTH_SOURCE_PROVIDER",t.availableAuthenticationSource),e.append("LDAP_TYPE",t.type),e.append("AUTH_SOURCE_AUTO_REGISTER",t.enableAutomaticRegister),e.append("AUTH_SOURCE_SERVER_NAME",t.serverAddress),e.append("AUTH_SOURCE_PORT",t.port),e.append("AUTH_SOURCE_ENABLED_TLS",t.enableTLS),e.append("AUTH_SOURCE_BASE_DN",t.baseDN),e.append("AUTH_ANONYMOUS",t.anonymous),e.append("AUTH_SOURCE_SEARCH_USER",t.userName),e.append("AUTH_SOURCE_PASSWORD",t.password),e.append("AUTH_SOURCE_IDENTIFIER_FOR_USER",t.userIdentifier),e.append("AUTH_SOURCE_USERS_FILTER",t.filterToSearchUsers),e.append("AUTH_SOURCE_RETIRED_OU",t.inactiveUsers),e.append("AUTH_SOURCE_ATTRIBUTE_IDS","USR_FIRSTNAME|USR_LASTNAME|USR_EMAIL|USR_DUE_DATE|USR_STATUS|USR_STATUS_ID|USR_ADDRESS|USR_PHONE|USR_FAX|USR_CELLULAR|USR_ZIP_CODE|USR_POSITION|USR_BIRTHDAY|USR_COST_BY_HOUR|USR_UNIT_COST|USR_PMDRIVE_FOLDER_UID|USR_BOOKMARK_START_CASES|USR_TIME_ZONE|USR_DEFAULT_LANG|USR_LAST_LOGIN|"),e.append("AUTH_SOURCE_SHOWGRID",""),e.append("AUTH_SOURCE_GRID_TEXT",t.gridText),e.append("AUTH_SOURCE_SHOWGRID-checkbox","on"),e.append("AUTH_SOURCE_SIGNIN_POLICY_FOR_LDAP",t.signInPolicyForLDAP),e.append("USR_ROLE",t.role),e.append("AUTH_SOURCE_IDENTIFIER_FOR_USER_GROUP",t.groupIdentifier),e.append("AUTH_SOURCE_IDENTIFIER_FOR_USER_CLASS",t.userClassIdentifier),e.append("GROUP_CLASS_IDENTIFIER",t.groupClassIdentifier),e.append("DEPARTMENT_CLASS_IDENTIFIER",t.departmentClassIdentifier),e.append("CUSTOM_CHECK_AUTH_SOURCE_IDENTIFIER_FOR_USER",0),e.append("CUSTOM_CHECK_AUTH_SOURCE_IDENTIFIER_FOR_USER_GROUP",0),e.append("CUSTOM_CHECK_DEPARTMENT_CLASS_IDENTIFIER",0),e.append("CUSTOM_CHECK_GROUP_CLASS_IDENTIFIER",0),e.append("CUSTOM_AUTH_SOURCE_IDENTIFIER_FOR_USER",""),e.append("CUSTOM_AUTH_SOURCE_IDENTIFIER_FOR_USER_GROUP",""),e.append("CUSTOM_DEPARTMENT_CLASS_IDENTIFIER",""),e.append("CUSTOM_GROUP_CLASS_IDENTIFIER",""),e},changeTypeForm:function(t){"ad"===t&&(this.form.userIdentifier="samaccountname",this.form.groupIdentifier="member",this.form.signInPolicyForLDAP="1"),"ldap"===t&&(this.form.userIdentifier="uid",this.form.groupIdentifier="memberuid",this.form.signInPolicyForLDAP="0"),"ds"===t&&(this.form.userIdentifier="uid",this.form.groupIdentifier="uniquemember",this.form.signInPolicyForLDAP="0")},getRolesList:function(){var t=this,e=new FormData;return e.append("action","rolesList"),A.a.post(this.$root.baseUrl()+"users/usersAjax",e).then((function(e){var o=[];for(var n in e.data)o.push({value:e.data[n].ROL_UID,text:e.data[n].ROL_CODE});t.roles=o})).catch((function(t){})).finally((function(){}))}},watch:{form:{handler:function(){this.testStatus=!1,this.buttonLabel=this.$root.translation("ID_TEST"),this.showMathAttributes=!(""===this.form.uid)},deep:!0}},mounted:function(){this.$nextTick((function(){this.getRolesList()}))}},F=H,P=Object(b["a"])(F,y,x,!1,null,"c4fd4fc8",null),M=P.exports,k={data:function(){return{title:"#"}},components:{titleSection:h,formAuthenticationSources:M},methods:{setTitle:function(t){this.title=t},reset:function(){this.$refs.formAuthenticationSources.reset()},load:function(t){this.$refs.formAuthenticationSources.load(t)},cancel:function(){this.reset(),this.$emit("cancel")},rowToForm:function(t){return this.$refs.formAuthenticationSources.rowToForm(t)},formToFormData:function(t){return this.$refs.formAuthenticationSources.formToFormData(t)},setGridText:function(t){this.$refs.formAuthenticationSources.setGridText(t)},getGridText:function(){return this.$refs.formAuthenticationSources.getGridText()}}},B=k,G=Object(b["a"])(B,N,L,!1,null,"7473988f",null),V=G.exports,j=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",[o("titleSection",{attrs:{title:t.$root.translation("ID_MATCH_ATTRIBUTES")}}),o("b-form-group",{staticClass:"text-right"},[o("b-link",{attrs:{href:"#"},on:{click:t.connectionSettings}},[t._v(" << "+t._s(t.$root.translation("ID_CONNECTION_SETTINGS")))])],1),o("b-form-group",{staticClass:"float-right"},[o("b-button",{attrs:{variant:"success"},on:{click:t.addAttribute}},[t._v(t._s(t.$root.translation("ID_ADD_ATTRIBUTE")))])],1),o("v-client-table",{attrs:{columns:t.columns,options:t.options,data:t.rows},scopedSlots:t._u([{key:"icons",fn:function(e){return o("div",{},[o("b-button-group",[o("b-button",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover",modifiers:{hover:!0}}],attrs:{title:t.$root.translation("ID_EDIT_ATTRIBUTE"),variant:"light"},on:{click:function(o){return t.editAttribute(e.row,e.index)}}},[o("b-icon",{attrs:{icon:"pencil-fill","aria-hidden":"true",variant:"info"}})],1),o("b-button",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover",modifiers:{hover:!0}}],attrs:{title:t.$root.translation("ID_DELETE_ATTRIBUTE"),variant:"light"},on:{click:function(o){return t.deleteAttribute(e.index,e.row)}}},[o("b-icon",{attrs:{icon:"trash","aria-hidden":"true",variant:"danger"}})],1)],1)],1)}}])}),o("b-modal",{attrs:{id:"messageForDeleteAttribute","ok-title":t.$root.translation("ID_YES"),"ok-variant":"success","cancel-title":t.$root.translation("ID_NO"),"cancel-variant":"danger"},on:{ok:t.deleteAttributeProcess}},[t._v(" "+t._s(t.$root.translation("ID_ARE_YOU_SURE_TO_DELETE_ATTRIBUTE_PLEASE_CONFIRM",[t.selectedRowName]))+" ")])],1)},q=[],Y=(o("a434"),{components:{titleSection:h},data:function(){return{selectedRowIndex:0,selectedRowName:"",columns:["attributeRole","attributeUser","attributeLdap","icons"],options:{headings:{attributeRole:this.$root.translation("ID_ROLE"),attributeUser:this.$root.translation("ID_USER_FIELD"),attributeLdap:this.$root.translation("ID_LDAP_FIELD"),icons:""},sortable:["attributeLdap","attributeRole","attributeUser"],filterable:["attributeLdap","attributeRole","attributeUser"],texts:{filter:"",filterPlaceholder:this.$root.translation("ID_EMPTY_SEARCH"),count:this.$root.translation("ID_SHOWING_FROM_RECORDS_COUNT"),noResults:this.$root.translation("ID_NO_MATCHING_RECORDS"),loading:this.$root.translation("ID_LOADING_GRID")},perPage:5,perPageValues:[],sortIcon:{is:"glyphicon-sort",base:"glyphicon",up:"glyphicon-chevron-up",down:"glyphicon-chevron-down"}},rows:[]}},methods:{setRows:function(t){this.rows=t},addAttribute:function(){this.$emit("addAttribute")},editAttribute:function(t,e){this.$emit("editAttribute",t,e)},deleteAttribute:function(t,e){this.selectedRowName=e.attributeLdap,this.selectedRowIndex=t,this.$bvModal.show("messageForDeleteAttribute")},deleteAttributeProcess:function(){this.rows.splice(this.selectedRowIndex-1,1)},saveRow:function(t){var e=Object.assign({},t);if(null===e.index)delete e.index,this.rows.push(e);else{var o=e.index;delete e.index,Object.assign(this.rows[o-1],e)}},connectionSettings:function(){this.$emit("connectionSettings",this.rows)}}}),z=Y,W=Object(b["a"])(z,j,q,!1,null,"179fc62b",null),K=W.exports,J=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",[o("titleSection",{attrs:{title:t.$root.translation("ID_NEW_MATCHED_ATTRIBUTE")}}),o("b-form",{on:{submit:function(e){return e.stopPropagation(),e.preventDefault(),t.onSave(e)}}},[o("b-container",{attrs:{fluid:""}},[o("b-row",[o("b-col",[o("b-form-group",{attrs:{label:t.$root.translation("ID_ROLE")}},[o("b-form-select",{attrs:{options:t.roles},on:{change:t.changeRoles},model:{value:t.form.attributeRole,callback:function(e){t.$set(t.form,"attributeRole",e)},expression:"form.attributeRole"}})],1),o("b-form-group",{attrs:{label:t.$root.translation("ID_PROCESSMAKER_USER_FIELD"),description:""}},[o("b-form-select",{attrs:{options:t.userAttributes},model:{value:t.form.attributeUser,callback:function(e){t.$set(t.form,"attributeUser",e)},expression:"form.attributeUser"}})],1),o("b-form-group",{attrs:{label:t.$root.translation("ID_LDAP_ATTRIBUTE")}},[o("b-form-input",{attrs:{state:!0,autocomplete:"off"},model:{value:t.form.attributeLdap,callback:function(e){t.$set(t.form,"attributeLdap",e)},expression:"form.attributeLdap"}}),o("b-form-invalid-feedback",[t._v(t._s(t.$root.translation("ID_IS_REQUIRED")))])],1)],1)],1),o("b-row",{staticClass:"text-right"},[o("b-col",[o("b-form-group",[o("b-button",{attrs:{variant:"danger"},on:{click:function(e){return t.$emit("cancel")}}},[t._v(t._s(t.$root.translation("ID_CANCEL")))]),t._v(" "),o("b-button",{attrs:{type:"submit",variant:"success"}},[t._v(t._s(t.$root.translation("ID_SAVE")))])],1)],1)],1)],1)],1)],1)},Q=[],Z={mixins:[R["validationMixin"]],components:{titleSection:h},validations:{form:{attributeLdap:{required:I["required"]}}},data:function(){return{form:{index:null,attributeLdap:"",attributeRole:"",attributeUser:""},roles:[{value:"",text:"All"}],userAttributes:[]}},mounted:function(){var t=this,e=this.getRolesList();e.then((function(e){t.changeRoles()}))},methods:{validateState:function(t){var e=this.$v.form[t],o=e.$dirty,n=e.$error;return o?!n:null},onSave:function(){this.$v.form.$touch(),this.$v.form.$anyError||this.$emit("save",this.form)},load:function(t,e){this.form.index=e,this.form.attributeLdap=t.attributeLdap,this.form.attributeRole=t.attributeRole,this.form.attributeUser=t.attributeUser},reset:function(){this.form={index:null,attributeLdap:"",attributeRole:"",attributeUser:""}},changeRoles:function(){var t=this,e=new FormData;return e.append("option","listByRol"),e.append("rolCode",this.form.attributeRole),A.a.post(this.$root.baseUrl()+"userExtendedAttributes/index",e).then((function(e){var o=[{value:"",text:t.$root.translation("ID_SELECTED_FIELD")}];for(var n in e.data.data)o.push({value:e.data.data[n].value,text:e.data.data[n].text});t.userAttributes=o})).catch((function(t){})).finally((function(){}))},getRolesList:function(){var t=this,e=new FormData;return e.append("request","allRoles"),A.a.post(this.$root.baseUrl()+"roles/roles_Ajax",e).then((function(e){var o=[{value:"",text:t.$root.translation("ID_ALL")}];for(var n in e.data)o.push({value:e.data[n].ROL_CODE,text:e.data[n].ROL_NAME});t.roles=o})).catch((function(t){})).finally((function(){}))}}},X=Z,tt=Object(b["a"])(X,J,Q,!1,null,"6d14953e",null),et=tt.exports,ot={name:"app",components:{authenticationSources:$,newConnection:V,matchAttributes:K,newMatchedAttribute:et},data:function(){return{views:{authenticationSources:!0,newConnection:!1,matchAttributes:!1,newMatchedAttribute:!1},selectedRow:null}},methods:{showView:function(t){for(var e in this.views)this.views[e]=!1;this.views[t]=!0},newConnection:function(){this.$refs.newConnection.reset(),this.$refs.newConnection.setTitle(this.$root.translation("ID_NEW_AUTHENTICATION_SOURCES")),this.showView("newConnection")},editSettings:function(t){this.selectedRow=t;var e=this.$refs.newConnection.rowToForm(t);this.$refs.newConnection.setTitle(this.$root.translation("ID_EDIT_AUTHENTICATION_SOURCES")),this.$refs.newConnection.reset(),this.$refs.newConnection.load(e),this.showView("newConnection")},optionSaveButton:function(t){t.AUTH_SOURCE_UID="";var e=this.$refs.newConnection.rowToForm(t);this.$refs.newConnection.setTitle(this.$root.translation("ID_NEW_AUTHENTICATION_SOURCES")),this.$refs.newConnection.reset(),this.$refs.newConnection.load(e),this.showView("newConnection")},optionUpdateButton:function(t,e){t.AUTH_SOURCE_UID=e.AUTH_SOURCE_UID,this.selectedRow=t;var o=this.$refs.newConnection.rowToForm(t);this.$refs.newConnection.setTitle(this.$root.translation("ID_EDIT_AUTHENTICATION_SOURCES")),this.$refs.newConnection.reset(),this.$refs.newConnection.load(o),this.showView("newConnection")},optionNewButton:function(t){t.AUTH_SOURCE_UID="";var e=this.$refs.newConnection.rowToForm(t);this.$refs.newConnection.setTitle(this.$root.translation("ID_NEW_AUTHENTICATION_SOURCES")),this.$refs.newConnection.reset(),this.$refs.newConnection.load(e),this.showView("newConnection")},saveNewConnection:function(t){var e=this,o=this.$refs.newConnection.formToFormData(t);A.a.post(this.$root.baseUrl()+"authSources/ldapAdvancedProxy.php?functionAccion=ldapSave",o).then((function(t){e.$refs.authenticationSources.refresh()})).catch((function(t){})).finally((function(){})),this.showView("authenticationSources")},matchAttributesToSync:function(){var t=this.$refs.newConnection.getGridText(),e=JSON.parse(t);this.showView("matchAttributes"),this.$refs.matchAttributes.setRows(e)},addAttribute:function(){this.$refs.newMatchedAttribute.reset(),this.showView("newMatchedAttribute")},editAttribute:function(t,e){this.$refs.newMatchedAttribute.load(t,e),this.showView("newMatchedAttribute")},saveNewMatchedAttribute:function(t){this.$refs.matchAttributes.saveRow(t),this.showView("matchAttributes")},cancelNewMatchedAttribute:function(){this.showView("matchAttributes")},connectionSettings:function(t){var e=JSON.stringify(t);this.$refs.newConnection.setGridText(e),this.showView("newConnection")}}},nt=ot,rt=(o("034f"),Object(b["a"])(nt,s,l,!1,null,null,null)),it=rt.exports;n["default"].config.productionTip=!1,n["default"].use(r["a"]),n["default"].use(i["a"]),n["default"].use(a["ClientTable"],{},!1,"bootstrap4",{}),n["default"].use(a["ServerTable"],{},!1,"bootstrap4",{}),new n["default"]({render:function(t){return t(it)},methods:{translation:function(t,e){if("TRANSLATIONS"in window&&t in window.TRANSLATIONS&&(t=window.TRANSLATIONS[t],void 0!=e&&"length"in e))for(var o=0;o