1"use strict";(self["webpackChunknetengine_app"]=self["webpackChunknetengine_app"]||[]).push([[19708,18143],{19708:function(t,e,n){n.r(e),n.d(e,{default:function(){return h}});var i=function(){var t=this,e=t._self._c;return e("Container",{attrs:{"group-name":"ne-lv-columns","get-child-payload":t.getPayload},on:{drop:t.onDrop}},t._l(t.currentRow.columns,(function(n,i){return e("Draggable",{key:i,staticClass:"ne-lv-single-object"},[e("section",{staticClass:"cursor-pointer",class:{active:t.activeObject&&t.activeObject.id===n.id}},[n.elements.length?e("div",{staticClass:"ne-lv-toggle",on:{click:function(e){return t.toggleStatus(n.id)}}},[e("i",{class:t.listViewStatus[n.id]?t.angleUpIcon:t.angleDownIcon})]):t._e(),e("div",{staticClass:"ne-lv-text",on:{click:function(e){return t.clickObject(n.id)}}},[e("span",[t._v("Column:")]),e("label",{staticClass:"custom-ellipsis"},[t._v(t._s(t.options2[n.id].ElementTitle))])]),e("div",{staticClass:"ne-lv-buttons ml-2"},[t.options2[n.id].show?e("b-button",{attrs:{variant:"primary",size:"sm",title:"Show / Hide"},on:{click:function(e){return t.clickToggleView(n.id)}}},[e("i",{class:t.eyeIcon})]):e("b-button",{attrs:{variant:"danger",size:"sm",title:"Show / Hide"},on:{click:function(e){return t.clickToggleView(n.id)}}},[e("i",{class:t.eyeSlashIcon})]),t.options2[n.id].fromLanding?t._e():e("b-button",{staticClass:"ml-1",attrs:{variant:"outline-success",size:"sm",title:"Copy"},on:{click:function(e){return t.clickCopy(n.id)}}},[e("i",{class:t.cloneIcon})]),t.options2[n.id].fromLanding?t._e():e("b-button",{staticClass:"ml-1",attrs:{variant:"outline-danger",size:"sm",title:"Delete"},on:{click:function(e){return t.clickDelete(n.id)}}},[e("i",{class:t.deleteIcon})])],1)]),t.listViewStatus[n.id]||!n.elements.length?e("div",{staticClass:"ne-lv-nested"},[e("div",{staticClass:"position-relative"},[e("ListElementView",{attrs:{sections2:t.sections2,options2:t.options2,"current-section":t.currentSection,"current-row":t.currentRow,"current-column":n},on:{callEvent:t.callEvent}}),n.elements.length?t._e():e("div",{staticClass:"ne-lv-comment"},[e("p",[t._v("No Element added here")])])],1)]):t._e()])})),1)},s=[],o=n(38064),c=n(7796),l=n(18143),r=n(77989),a={components:{Container:c.Container,Draggable:c.Draggable,ListElementView:l["default"]},props:{sections2:{type:Array,default:null,required:!0},options2:{type:[Object],default:null,required:!0},currentSection:{type:[Object],default:null,required:!0},currentRow:{type:[Object],default:null,required:!0}},data(){return{angleDownIcon:r.ZU,angleUpIcon:r.f8,cloneIcon:r.C0,deleteIcon:r.bd,eyeIcon:r.GS,eyeSlashIcon:r.aN}},computed:{activeObject(){return this.$store.getters["utility/activeObject"]},listViewStatus(){return this.$store.getters["utility/listViewStatus"]}},methods:{callEvent(t){this.$emit("callEvent",t)},findSectionIndex(t){return(0,o.cx)(this.sections2,"id",t)},findRowIndex(t,e){let n=-1;const i=this.findSectionIndex(t);return i>=0&&(n=(0,o.cx)(this.sections2[i].rows,"id",e)),[i,n]},getPayload(t){const e=this.findRowIndex(this.currentSection.id,this.currentRow.id);if(e[0]>=0&&e[1]>=0){const n=e[0],i=e[1],s=this.sections2[n].rows[i].columns[t];return{...s,source:"ne-lv-columns"}}return null},onDrop(t){if(!t)return;const{removedIndex:e,addedIndex:n,payload:i}=t,s=this.currentSection.id,o=this.currentRow.id;if(!i||!i.id)return;const c=JSON.parse(JSON.stringify(i));if("ne-lv-columns"===c.source){const t=this.findRowIndex(s,o);if(t[0]<0||t[1]<0)return;const i=t[0],l=t[1];null!==e&&e>=0&&this.sections2[i].rows[l].columns.splice(e,1),null!==n&&n>=0&&this.sections2[i].rows[l].columns.splice(n,0,c)}},toggleStatus(t){this.callEvent({methodName:"setListViewStatus",eventData:{...this.listViewStatus,[t]:!this.listViewStatus[t]},target:"ListView"})},clickObject(t){this.callEvent({methodName:"setActiveObject",eventData:{id:t,rowId:this.currentRow.id,sectionId:this.currentSection.id,type:"column"},target:"Design"}),this.callEvent({methodName:"setDefaultEditorModal",target:"Design"});const e=document.getElementById(t);e&&e.scrollIntoView()},clickToggleView(t){const e=JSON.parse(JSON.stringify(this.options2));e[t].show=!e[t].show,this.callEvent({methodName:"setOptions2",eventData:e,target:"Design"})},clickCopy(t){this.callEvent({methodName:"copyColumn",eventData:{sectionId:this.currentSection.id,rowId:this.currentRow.id,columnId:t}})},clickDelete(t){this.callEvent({methodName:"deleteColumn",eventData:{sectionId:this.currentSection.id,rowId:this.currentRow.id,columnId:t}})}}},u=a,d=n(43736),m=(0,d.Z)(u,i,s,!1,null,null,null),h=m.exports},18143:function(t,e,n){n.r(e),n.d(e,{default:function(){return m}});var i=function(){var t=this,e=t._self._c;return e("Container",{attrs:{"group-name":"ne-lv-elements","get-child-payload":t.getPayload},on:{drop:t.onDrop}},t._l(t.currentColumn.elements,(function(n,i){return e("Draggable",{key:i,staticClass:"ne-lv-single-object no-children"},[e("section",{staticClass:"cursor-pointer",class:{active:t.activeObject&&t.activeObject.id===n.id}},[e("div",{staticClass:"ne-lv-text",on:{click:function(e){return t.clickObject(n)}}},[e("span",[t._v("Element:")]),e("label",{staticClass:"custom-ellipsis"},[t._v(t._s(t.options2[n.id].ElementTitle))])]),e("div",{staticClass:"ne-lv-buttons ml-2"},[t.options2[n.id].show?e("b-button",{attrs:{variant:"primary",size:"sm",title:"Show / Hide"}
1,on:{click:function(e){return t.clickToggleView(n.id)}}},[e("i",{class:t.eyeIcon})]):e("b-button",{attrs:{variant:"danger",size:"sm",title:"Show / Hide"},on:{click:function(e){return t.clickToggleView(n.id)}}},[e("i",{class:t.eyeSlashIcon})]),t.options2[n.id].fromLanding?t._e():e("b-button",{staticClass:"ml-1",attrs:{variant:"outline-success",size:"sm",title:"Copy"},on:{click:function(e){return t.clickCopy(n.id)}}},[e("i",{class:t.cloneIcon})]),t.options2[n.id].fromLanding?t._e():e("b-button",{staticClass:"ml-1",attrs:{variant:"outline-danger",size:"sm",title:"Delete"},on:{click:function(e){return t.clickDelete(n.id)}}},[e("i",{class:t.deleteIcon})])],1)])])})),1)},s=[],o=(n(57658),n(38064)),c=n(77989),l=n(7796),r={components:{Container:l.Container,Draggable:l.Draggable},props:{sections2:{type:Array,default:null,required:!0},options2:{type:[Object],default:null,required:!0},currentSection:{type:[Object],default:null,required:!0},currentRow:{type:[Object],default:null,required:!0},currentColumn:{type:[Object],default:null,required:!0}},data(){return{cloneIcon:c.C0,deleteIcon:c.bd,eyeIcon:c.GS,eyeSlashIcon:c.aN}},computed:{activeObject(){return this.$store.getters["utility/activeObject"]}},methods:{callEvent(t){this.$emit("callEvent",t)},findSectionIndex(t){return(0,o.cx)(this.sections2,"id",t)},findRowIndex(t,e){let n=-1;const i=this.findSectionIndex(t);return i>=0&&(n=(0,o.cx)(this.sections2[i].rows,"id",e)),[i,n]},findColumnIndex(t,e,n){let i=-1;const s=this.findRowIndex(t,e);if(s[0]>=0&&s[1]>=0){const t=s[0],e=s[1];i=(0,o.cx)(this.sections2[t].rows[e].columns,"id",n)}return s.push(i),s},getPayload(t){const e=this.findColumnIndex(this.currentSection.id,this.currentRow.id,this.currentColumn.id);if(e[0]>=0&&e[1]>=0&&e[2]>=0){const n=e[0],i=e[1],s=e[2],o=this.sections2[n].rows[i].columns[s].elements[t];return{...o,source:"ne-lv-elements"}}return null},onDrop(t){if(!t)return;const{removedIndex:e,addedIndex:n,payload:i}=t,s=this.currentSection.id,o=this.currentRow.id,c=this.currentColumn.id;if(!i||!i.id)return;const l=JSON.parse(JSON.stringify(i));if("ne-lv-elements"===l.source){const t=this.findColumnIndex(s,o,c);if(t[0]<0||t[1]<0||t[2]<0)return;const i=t[0],r=t[1],a=t[2];null!==e&&e>=0&&this.sections2[i].rows[r].columns[a].elements.splice(e,1),null!==n&&n>=0&&this.sections2[i].rows[r].columns[a].elements.splice(n,0,l)}},clickObject(t){this.callEvent({methodName:"setActiveObject",eventData:{id:t.id,key:t.key,sectionId:this.currentSection.id,rowId:this.currentRow.id,columnId:this.currentColumn.id,type:"element"},target:"Design"}),this.callEvent({methodName:"setDefaultEditorModal",target:"Design"});const e=document.getElementById(t.id);e&&e.scrollIntoView()},clickToggleView(t){const e=JSON.parse(JSON.stringify(this.options2));e[t].show=!e[t].show,this.callEvent({methodName:"setOptions2",eventData:e,target:"Design"})},clickCopy(t){this.callEvent({methodName:"copyElement",eventData:{sectionId:this.currentSection.id,rowId:this.currentRow.id,columnId:this.currentColumn.id,elementId:t}})},clickDelete(t){this.callEvent({methodName:"deleteElement",eventData:{sectionId:this.currentSection.id,rowId:this.currentRow.id,columnId:this.currentColumn.id,elementId:t}})}}},a=r,u=n(43736),d=(0,u.Z)(a,i,s,!1,null,null,null),m=d.exports}}]); 2//# sourceMappingURL=19708.53c261d7.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.