import{aD as t,aA as e,aB as a}from"../../../../vendor-element-plus.js?ver=3.1.0";import{c as n,a as o,o as i,b as s,n as r,w as c,d}from"../../../../vendor.js?ver=3.1.0";import{_ as l}from"../../../../fc-bits-ui.js?ver=3.1.0";const m={key:0,class:"fluentcrm_databox"},h=["innerHTML"];const _=l({name:"CompanyExternalView",props:["company","company_id"],data:()=>({profile_section:"",heading:"",content_html:"",loading:!0,crud:null,showForm:!1,crudConfig:{},saving:!1}),watch:{"$route.query":{handler(t){this.profile_section=t.handler,this.fetchData()},deep:!0,immediate:!0}},methods:{fetchData(){this.loading=!0,this.$get(`companies/${this.company_id}/custom_tab_view`,{section_provider:this.profile_section}).then(t=>{this.heading=t.heading,this.content_html=t.content_html,t.crud&&(this.crud=t.crud)}).catch(t=>{this.handleError(t)}).finally(()=>{this.loading=!1})}},mounted(){this.fetchData()}},[["render",function(l,_,p,f,u,v){const g=a,y=e,w=t;return u.loading?(i(),o(g,{key:1,style:{"margin-top":"20px"},class:"fcrm_skeleton_loader",animated:!0},{template:c(()=>[d(w,{gutter:30},{default:c(()=>[d(y,{span:12},{default:c(()=>[d(g,{rows:10})],void 0,!0),_:1}),d(y,{span:12},{default:c(()=>[d(g,{rows:3})],void 0,!0),_:1})],void 0,!0),_:1})]),_:1})):(i(),n("div",m,[s("div",{class:r(["fcrm_external_company_profile_data","fcrm_section_"+u.profile_section]),innerHTML:u.content_html},null,10,h)]))}]]);export{_ as default};
