PageSourceSearch

https://www.cobasam.com/private/js/DocumentsGroup.efe7c93801fc2805.js

js cobasam.com collected 2026-10-02 06:05:29 UTC 6,809 bytes, 2 lines download raw bytes

1"use strict";(self["webpackChunkcobas_private_area"]=self["webpackChunkcobas_private_area"]||[]).push([[7732],{27457:function(t,e,i){i.r(e),i.d(e,{default:function(){return p}});var a=function(){var t=this,e=t._self._c;return t.filteredData&&t.filteredData.items.length>0?e("div",{staticClass:"bastanteo-group mb-3"},[e("div",{directives:[{name:"b-toggle",rawName:"v-b-toggle",value:`bastanteo_item__${t.uuid}`,expression:"`bastanteo_item__${uuid}`"}],staticClass:"bastanteo-group__header"},[e("div",{staticClass:"bastanteo-group__title"},[!0===t.loading?e("div",[e("i",{staticClass:"fal fa-spinner fa-spin",staticStyle:{"font-size":"16px",color:"green"}})]):e("div",[e("YuriText",{attrs:{bold:!0,fontSize:16,text:t.filteredData.name,color:"#4a4a4a"}})],1)]),e("div",{staticClass:"bastanteo-group__header-icons"},[t.iiff?t._e():[t.docsPending?e("div",{staticClass:"d-flex align-items-center"},[e("YuriIcon",{staticClass:"color-error mr-1",attrs:{fontSize:14,icon:"fa-exclamation-triangle"}}),e("YuriText",{staticClass:"mr-2",attrs:{fontSize:12,text:t.docsPending>1?`${t.docsPending} pendientes`:`${t.docsPending} pendiente`,color:"#9a9a9a"}})],1):t._e(),0==t.docsPending&&t.filteredData.items&&t.filteredData.items.length>0?e("div",{staticClass:"d-flex align-items-center"},[e("YuriText",{key:t.styleKey,staticClass:"mr-2",attrs:{fontSize:12,text:"Completado",color:"green"}})],1):t._e()],e("YuriIcon",{staticClass:"cursor-pointer",attrs:{icon:t.opened?"fa-minus":"fa-plus",color:"#212529",fontSize:16}})],2)]),e("b-collapse",{attrs:{id:`bastanteo_item__${t.uuid}`},model:{value:t.opened,callback:function(e){t.opened=e},expression:"opened"}},[t._l(t.filteredData.items,function(i,a){return[i.uuid_operation?e("DocumentItem",{key:`bastanteo_item__${a}`,class:{"bastanteo-group__active-item":t.itemActive===i},attrs:{index:a,item:i,signatureType:t.account&&null!=t.account.documentations_signature?t.account.documentations_signature:"",type:"operation",uuid:i.uuid_operation,iiff:t.iiff},nativeOn:{click:function(e){return t.$root.$emit("emit_active_item",i)}}}):e("DocumentItem",{key:`bastanteo_item__${a}`,class:{"bastanteo-group__active-item":t.itemActive===i},attrs:{index:a,item:i,objectData:t.intervener||t.account,signatureType:t.account&&null!=t.account.documentations_signature?t.account.documentations_signature:"",accountStatus:t.account&&t.account.status?t.account.status:"",type:t.type,uuid:t.uuid,iiff:t.iiff},nativeOn:{click:function(e){return t.$root.$emit("emit_active_item",i)}}})]}),e("div",{staticClass:"mb-5"},[t.isMobile()&&t.addOtherDocument?e("UploadDocument",{attrs:{section:t.type,uuid:t.uuid,category:{key_name:"DOCUMENTATION"},subcategory:{key_name:"OTHERS"},single:!0,isMobile:!0}}):t._e()],1)],2)],1):t._e()},r=[],s=i(2543),n=i.n(s),o=i(32992),c=i.n(o);const u=()=>Promise.all([i.e(3016),i.e(3745)]).then(i.bind(i,89956));var d={name:"DocumentsGroup",components:{DocumentItem:u},data(){return{opened:!1,documentListArray:{name:"",items:[]},filteredData:{name:"",items:[]},docsPending:0,loading:!1,styleKey:0,addOtherDocument:!1}},props:{type:{type:String,required:!0},uuid:{type:String,required:!1},intervener:{type:Object,required:!0},account:{type:Object,required:!1},operation:{type:Object,required:!1},itemActive:{type:Object,required:!1},bankAccountsDocs:{type:Array,required:!1},iiff:{type:Boolean,required:!1}},created(){this.fetchData()},mounted(){this.$root.$on("refresh_account",this.fetchData),this.$root.$on("refresh_intervener",this.fetchData),this.$root.$on("filter_document_search_by",this.fetchData),this.$root.$on("uploadOk",this.fetchData)},beforeUnmount(){this.$root.$off("refresh_account"),this.$root.$off("refresh_intervener"),this.$root.$off("filter_document_search_by"),this.$root.$off("uploadOk")},computed:{entity(){let t;switch(this.type){case"account":t=this.account;break;case"interveners":t=this.intervener;break;case"bank_accounts":t={};break;case"operation":t=this.operation;break;default:t={};break}return t},documents(){try{return this.documentListArray.items}catch(t){return console.warn(t),[]}}},methods:{loadIntervener(){const t=localStorage.getItem("PACOUS");let e;try{const i=c().decompressFromUTF16(t);e=i?JSON.parse(i).private_area.intervener:JSON.parse(decodeURIComponent(escape(window.atob(t)))).private_area.intervener}catch(i){console.error("❌ Error al descomprimir PACOUS:",i),e={}}return e},loadAccounts(){const t=localStorage.getItem("PACOUS");let e;try{const i=c().decompressFromUTF16(t);e=i?JSON.parse(i).private_area.accounts:JSON.parse(decodeURIComponent(escape(window.atob(t)))).private_area.accounts}catch(i){console.error("❌ Error al descomprimir PACOUS:",i),e={}}return e},async fetchData(t){try{switch(this.loading=!0,this.type){case"account":{let t=this.loadAccounts(),e=!1;for(let i in t)if(this.account.uuid==t[i].uuid){e=!0;break}e&&(this.documentListArray=this.fetchDocumentsData(this.uuid));break}case"interveners":{let t=this.loadIntervener();(this.intervener.uuid==t.uuid||this.intervener.personal_data&&"J"===this.intervener.personal_data.intervener_t
1ype)&&(this.documentListArray=this.fetchDocumentsData(this.uuid));break}default:console.error("Invalid documents group type");break}this.countTotalItemsPending(),this.loading=!1,this.filterData(t),this.$emit("emitDocument",this.documentListArray)}catch(e){this.$bvToast.toast(`${e.message}`,{title:`Error ${e.name}`,autoHideDelay:1e4,variant:"danger"})}finally{this.loading=!1}},fetchDocumentsData(t){const e=this.$store.getters.getDocuments;return e[t]?e[t]:{name:"",items:[]}},filterData(t){let e=n().cloneDeep(this.documentListArray);t&&(t.type||t.search||t.showPendings)?t.showPendings?this.filteredData.items=e.items.filter(t=>!0===t.is_signable&&!t.is_signed&&!t.is_validated||"DOCUMENTO_ACREDITATIVO_TITULARIDAD_CC"===t.key_subcategory&&!t.document_uri):t.type&&t.search?this.filteredData.items=e.items.filter(e=>{if(e.key_subcategory===t.type&&e.title.toUpperCase().includes(t.search.toUpperCase()))return e}):t.type&&!t.search?this.filteredData.items=e.items.filter(e=>{if(e.key_subcategory===t.type)return e}):!t.type&&t.search&&(this.filteredData.items=e.items.filter(e=>{if(e.title&&e.title.toUpperCase().includes(t.search.toUpperCase()))return e})):this.filteredData=e},countTotalItemsPending(){const t=this.documentListArray.items.filter(t=>!0===t.is_signable&&!t.is_signed&&!t.is_validated);this.docsPending=t.length,this.$root.$emit("emit_items_not_validated",t.length)},handleAddDocument(){this.isMobile()?this.addOtherDocument=!this.addOtherDocument:this.$root.$emit("emit_show_upload",{key_category:"DOCUMENTATION",key_subcategory:"OTHERS"},this.type,this.uuid,!0,null)},isMobile(){return window.innerWidth<=991}}},l=d,m=i(81656),h=(0,m.A)(l,a,r,!1,null,null,null),p=h.exports}}]);
2//# sourceMappingURL=DocumentsGroup.efe7c93801fc2805.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.