1import{b as h}from"./legacyLayout-CDQAB-aO.js";import{S as u,B as f,T as C,a as S}from"./SideBar-Cf-Ke81H.js";import{h as g}from"./httpErrorHandler-YOlql0B8.js";import{_,m as y,c as P}from"./main-BUyohMDS.js";import{a as w}from"./DataApi-DClmBEK6.js";import{b as I}from"./constants-66xj96FZ.js";import{a as s,o,f as T,b as i,l,p as r,A as b,g as c,T as p,F as x}from"./vendor-codemirror-CsRMRzWL.js";import"./setTypes-DUqVxZoj.js";import"./constants-D2FoeFiU.js";import"./Input-Dj6MNaST.js";import"./StatusIcon-BAiQmoBK.js";import"./FormInput-q5wiEZfQ.js";import"./ButtonSet-BkTrWF85.js";import"./AppModal-DE3rdhiz.js";import"./Modal-DyDWTMFJ.js";import"./InFormDataFormMixin-BnfCgM4P.js";import"./ColumnTypes-PKdo8gOt.js";import"./AppCheckbox-B03jspE9.js";import"./Icon-BQhTxe-8.js";import"./InFormApi-M2aSu_fK.js";import"./Loader-Cw1b7eRM.js";import"./vuedraggable.umd-Dor0Yhpu.js";import"./vendor-highcharts-DJOjmI7G.js";import"./vue.runtime.esm-bundler-CAxe111z.js";import"./builderModes-YLGUvzxp.js";import"./useConfirmModal-BowzB0Xj.js";import"./ButtonGroup-CMJd_3WK.js";import"./index-BpbL7xcj.js";import"./LoadingOverlay-BFo7-gow.js";import"./Data-BY4iXQq7.js";import"./debounce-QMkBo23c.js";import"./InFormDataForm-BdJteb5n.js";import"./DataFilter-DdABVGFa.js";import"./TagPill-DGKyZssW.js";import"./helpers-DpazTata.js";import"./AdvancedDatePicker-tqW7YFv6.js";import"./DatePicker-NVWSGTr-.js";import"./Textarea-im-H-bOZ.js";import"./ownershipTypes-CVRSaWSE.js";const v={mixins:[g,h],components:{Tabs:S,Tab:C,Builder:f,SideBar:u},created(){this.init(),this.setMainClasses("builder-page"),document.documentElement.style.fontSize="14px",this.setShowRightSubMenu(!0),this.setShowContentHeader(!0),this.$nextTick(()=>{this.isInitialized=!0})},beforeUnmount(){this.setPageBodyClasses(""),this.setMainClasses(""),document.documentElement.style.fontSize="",this.setShowRightSubMenu(!1),this.setShowContentHeader(!1)},data(){return{isLoaded:!1,data:null,dataSet:null,draft:null,colors:[],icons:[],connectionTypes:[],currentConnection:null,tags:[],connections:[],dataId:this.$route.params.id,dataSetId:this.$route.params.dataSetId,startMode:this.$route.query.mode?+this.$route.query.mode:1,updateUrl:null,cancelRedirectUrl:null,ownershipPostfixes:[],schemaTypeOptions:[],defaultColorPalettes:[],orgColorPaletteId:null,orgCustomColorPalette:null,isInitialized:!1}},methods:{...P(["setPageBodyClasses","setShowRightSubMenu","setShowContentHeader","setMainClasses"]),init(){this.$loader.show(),w(this.$route.params.dataSetId,this.$route.params.id).then(({data:t})=>{this.isLoaded=!0,this.data=t.data,this.draft=t.draft,this.colors=t.colors,this.icons=t.icons,this.connectionTypes=t.connectionTypes,this.currentConnection=t.currentConnection,this.tags=t.tags,this.connections=t.connections,this.schemaTypeOptions=t.schemaTypeOptions,this.ownershipPostfixes=t.ownershipPostfixes,this.defaultColorPalettes=t.defaultColorPalettes,this.orgCustomColorPalette=t.orgCustomColorPalette,this.orgColorPaletteId=t.orgColorPaletteId,this.updateUrl=t.updateUrl,this.dataSet=t.dataSet}).catch(t=>{this.handleHttpError(t)}).finally(()=>{this.$loader.hide()})},save(){this.$router.push(this.redirectUrl,()=>{this.$notifications.success(this.lang("saved_successfully",this.langComponents.COMPONENT_DATA))})},cancel(){let t=this.$router.options.history.state.back;t||(t={name:"data-sets.show",params:{id:this.dataSetId}}),this.$router.push(t)}},computed:{...y(["hasBuilderPermission","canViewDataSet"]),redirectUrl(){let t=this.$router.options.history.state.back;return t&&!["/data-sets/"+this.dataSetId+"/data/wizard"].includes(t)?t:this.canViewDataSet(this.dataSetId)?{name:"data-sets.show",params:{id:this.dataSetId}}:this.dataSet.visibility_status===I?{name:"library.review",params:{id:this.dataSetId}}:{name:"library.preview",params:{id:this.dataSetId}}}}},B={class:"data-controls-section",ref:"controlContainer"},M={class:"w-100"};function E(t,U,k,O,e,n){const d=s("builder"),a=s("portal-target"),m=s("side-bar");return e.isInitialized?(o(),T(x,{key:0},[e.isLoaded?(o(),i(d,{key:0,"prop-state":e.data,draft:e.draft,colors:e.colors,icons:e.icons,"connection-types":e.connectionTypes,"initial-connection":e.currentConnection,"initial-mode":e.startMode,tags:e.tags,connections:e.connections,"data-set-id":+e.dataSetId,"update-url":e.updateUrl,"is-report":!1,"ownership-postfixes":e.ownershipPostfixes,"schema-type-options":e.schemaTypeOptions,"default-color-palettes":e.defaultColorPalettes,"org-color-palette-id":e.orgColorPaletteId,"org-custom-color-palette":e.orgCustomColorPalette,onSave:n.save,onCancel:n.cancel},null,8,["prop-state","draft","colors","icons","connection-types","initial-connection","initial-mode","tags","connections","data-set-id","update-url","ownership-postfixes","schema-type-options","default-color-palettes","org-color-palette-id","org-custom-color-palette","onSave","onCancel"])):l("",!0),(o(),i(p,{to:"#rightMenu"},[r(m,null,{default:b(()=>
1[c("div",B,[r(a,{name:"controls"})],512)]),_:1})])),(o(),i(p,{to:"#contentHeader"},[c("div",M,[r(a,{name:"content-header"})])]))],64)):l("",!0)}const _t=_(v,[["render",E]]);export{_t as default};
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.