(window.webpackJsonp=window.webpackJsonp||[]).push([[103],{1115:function(t,n,e){"use strict";e.r(n);e(12),e(208),e(59),e(209),e(210),e(211),e(212),e(213),e(214),e(215),e(216),e(217),e(218),e(219),e(220),e(221),e(222),e(223),e(224),e(58),e(44),e(32);var o={name:"TextClassificationBulkAnnotation",props:{datasetId:{type:Array,required:!0},records:{type:Array,required:!0},recordsIds:{type:Set,required:!0},labels:{type:Array,required:!0}},data:function(){return{labelsByRecordId:[]}},computed:{formattedLabelsForBulkAnnotationForm:function(){return this.initLabelForForm()}},methods:{initLabelForForm:function(){var t=this.labelsForFormFactory();return t=this.updateLabelByCurrentAnnotation(t)},labelsForFormFactory:function(){return this.labels.map((function(label){return{record_ids:new Set,id:label,label:label,selected:!1,unmodified:!1,removed:!1}}))},updateLabelByCurrentAnnotation:function(t){var n=this;return this.records.map((function(e){var o;null===(o=e.currentAnnotation)||void 0===o||o.labels.map((function(o){t.forEach((function(t){t.label===o.class&&(t.record_ids.add(e.id),t.selected=n.updateSelectedAttribute(t.record_ids.size))}))}))})),t},updateSelectedAttribute:function(t){return t===this.records.length},updateAnnotations:function(t){this.$emit("on-update-annotations",t)}}},r=e(41),component=Object(r.a)(o,(function(){var t=this,n=t._self._c;return n("div",[n("BulkAnnotationComponent",{staticClass:"bulk-annotation-component",attrs:{inputs:t.formattedLabelsForBulkAnnotationForm,recordsIds:t.recordsIds},on:{"on-update-annotations":t.updateAnnotations}})],1)}),[],!1,null,"993b2afc",null);n.default=component.exports;installComponents(component,{BulkAnnotationComponent:e(1116).default})}}]);