"use strict";(self["webpackChunkcarabi_x2"]=self["webpackChunkcarabi_x2"]||[]).push([[4747],{8547:function(e,d,t){t.r(d),t.d(d,{default:function(){return u}});var l=function(){var e=this,d=e._self._c;return e.loaded?d("query-modal",{attrs:{docKind:e.docKindName,docKindId:e.docKindId,xml:e.value},on:{apply:function(d){return e.applyXml(d)},closed:function(d){return e.$emit("close")}}}):e._e()},n=[],a=t(3216),i={name:"XmlFilterModal",components:{QueryModal:()=>Promise.all([t.e(7661),t.e(4572)]).then(t.bind(t,9878))},data(){return{loaded:!1,docKindName:"",docKindId:0}},props:{field:Object,value:{type:String,default:null}},computed:{},watch:{},async mounted(){let e=this.field.DOCPROP_PRESENTATION_OPTIONS,d=await a.vd.selectRow("CRM_GET_VALUE_CS",{DOCUMENT_ID:this.field.DOCUMENT_ID,FIELD_NAME:e});if(!d||!d.VALUE)throw this.$emit("close"),"Can'f find KIND value";d=parseInt(d.VALUE);let t=await a.vd.selectRow("GET_DOCKIND_NAME_BY_DOCKIND_ID_CS",{dockind_id:d});t=t.DOCKIND_NAME,console.log("kindName",d,t),this.docKindName=t,this.docKindId=d,this.loaded=!0},methods:{applyXml(e){this.$emit("change",{value:e,display:e})}}},o=i,c=t(1656),s=(0,c.A)(o,l,n,!1,null,null,null),u=s.exports}}]);
//# sourceMappingURL=XmlFilterModal.143da166.js.map