403Webshell
Server IP : 52.25.153.185  /  Your IP : 216.73.216.95
Web Server : Apache
System : Linux ip-172-26-6-158 5.10.0-45-cloud-amd64 #1 SMP Debian 5.10.259-1 (2026-07-02) x86_64
User : daemon ( 1)
PHP Version : 8.1.10
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /bitnami/wordpress/wp-content/plugins/fluent-crm/assets/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /bitnami/wordpress/wp-content/plugins/fluent-crm/assets/CompanyInfoSide.js
import{i$ as e,Q as a,aw as t,af as i}from"./vendor-element-plus.js?ver=3.2.0";import{g as o,c as s}from"./data_config.js?ver=3.2.0";import{C as n,a as c}from"./CompanyEditForm.js?ver=3.2.0";import{dg as l,dh as m,aR as r,Y as d,a2 as p,a5 as y,a3 as u,a4 as _,ad as h,ae as f,aa as w,Z as v,ac as k,a6 as g,P as b,aA as C,az as $,a7 as D}from"./vendor.js?ver=3.2.0";import{_ as S,I as q}from"./fc-bits-ui.js?ver=3.2.0";import{B as E}from"./BaseCard.js?ver=3.2.0";const x={name:"CompanyInfoSide",components:{BaseCard:E,Icons:q,CustomFieldsForm:c,CompanyEditForm:n,Edit:e},emits:["companyUpdated","companyCreated","cancel","drawerStateChanged"],props:{company:{type:Object,default:()=>null},photo_holder:{type:String,default:"fcrm_photo_holder_mini"},is_drawer:{type:Boolean,default:!1},hide_drawer_footer:{type:Boolean,default:!1},intended_contact_id:{type:Number,default:null}},data:()=>({direction:"rtl",model:{},isDirty:!1,appReady:!1,updating:!1,isHeaderEditing:!1,showSummaryEditDrawer:!1}),watch:{model:{handler(e,a){this.appReady&&(this.isDirty=!0)},deep:!0},isDirty(){this.emitDrawerState()},updating(){this.emitDrawerState()}},computed:{domainName(){return s(this.company.website)},ownerDisplayName(){return this.company.owner&&(this.company.owner.full_name||this.company.owner.email)||"--"},quickStats(){return[{label:this.$t("Owner"),value:"--"!==this.ownerDisplayName?this.ownerDisplayName:"",icon:"owner"},{label:this.$t("Industry"),value:this.company.industry,icon:"industry"},{label:this.$t("Type"),value:this.company.type,icon:"type"},{label:this.$t("Employees"),value:this.company.employees_number&&"0"!=this.company.employees_number?this.company.employees_number:"",icon:"employees"}].filter(e=>e.value)},profileAddressLines(){const e=[[this.company.city,this.company.state].filter(Boolean).join(", "),this.company.postal_code].filter(Boolean).join(" ");return[this.company.address_line_1,this.company.address_line_2,e,this.company.country?this.getCountryName(this.company.country):""].filter(Boolean)},socialLinks(){return[{label:this.$t("LinkedIn"),url:this.company.linkedin_url,icon:"linkedin"},{label:this.$t("X"),url:this.company.twitter_url,icon:"x"},{label:this.$t("Facebook"),url:this.company.facebook_url,icon:"facebook"}].filter(e=>e.url)}},mounted(){window.fcAdmin&&window.fcAdmin.is_rtl&&(this.direction="ltr")},methods:{updateAvatar(e){this.company.id?this.updateProperty("logo",e):this.model.logo=e},updateProperty(e,a,t){this.$put("companies/companies-property",{property:e,companies:[this.company.id],value:a}).then(i=>{this.$notify.success(i.message),this.company[e]=a,"logo"===e&&(this.model.logo=a),t&&t(i)}).catch(e=>{this.handleError(e)}).finally(()=>{this.updating=!1})},applyCompanySaveResponse(e){this.each(this.model,(e,a)=>{this.company[a]=e}),e.update_data&&this.each(e.update_data,(e,a)=>{this.company[a]=e}),e.company&&(this.each(e.company,(e,a)=>{this.company[a]=e}),this.model.logo=this.company.logo),e.updated_logo&&(this.company.logo=e.updated_logo,this.model.logo=e.updated_logo),this.syncCustomValues(e.company)},syncCustomValues(e){const a=l(this.model.custom_values)&&!m(this.model.custom_values)?this.model.custom_values:{};l(this.company.meta)&&!m(this.company.meta)||(this.company.meta={}),this.company.meta.custom_values=a,e&&(l(e.meta)&&!m(e.meta)||(e.meta={}),e.meta.custom_values=a)},updateInfo(){this.updating=!0;const e=!this.company.id;e&&(this.company.id=0,this.intended_contact_id&&(this.model.intended_contact_id=this.intended_contact_id)),this.$put(`companies/${this.company.id}`,this.model).then(a=>{this.$notify.success(a.message),this.applyCompanySaveResponse(a),e?this.$emit("companyCreated",a.company):this.$emit("companyUpdated",a.company)}).catch(e=>{this.handleError(e)}).finally(()=>{this.updating=!1})},openSummaryEditDrawer(){this.showSummaryEditDrawer=!0},closeSummaryEditDrawer(){this.showSummaryEditDrawer=!1},saveSummaryFromDrawer(){this.updating=!0;const e=!this.company.id;e&&(this.company.id=0,this.intended_contact_id&&(this.model.intended_contact_id=this.intended_contact_id)),this.model.logo=this.company.logo,this.$put(`companies/${this.company.id}`,this.model).then(a=>{this.$notify.success(a.message),this.applyCompanySaveResponse(a),e?this.$emit("companyCreated",a.company):this.$emit("companyUpdated",a.company),this.isDirty=!1,this.showSummaryEditDrawer=!1}).catch(e=>{this.handleError(e)}).finally(()=>{this.updating=!1})},getFormattedAddress:o,getCountryName(e){var a;if(!e)return"";const t=null==(a=this.appVars.countries)?void 0:a.find(a=>a.code===e);return t?t.title:e},reFetchLogo(){this.updating=!0,this.updateProperty("refetch_logo",this.company.website,e=>{e.updated_logo&&(this.company.logo=e.updated_logo,this.model.logo=e.updated_logo)})},handleCancel(){this.is_drawer&&this.$emit("cancel")},emitDrawerState(){this.is_drawer&&this.$emit("drawerStateChanged",{isDirty:this.isDirty,updating:this.updating})}},created(){var e,a;const t=this.company;this.model={owner_id:t.owner_id,name:t.name,logo:t.logo,email:t.email,phone:t.phone,website:t.website,industry:t.industry,type:t.type,address_line_1:t.address_line_1,address_line_2:t.address_line_2,city:t.city,state:t.state,employees_number:t.employees_number&&"0"!=t.employees_number?t.employees_number:"",postal_code:t.postal_code,country:t.country,description:t.description,linkedin_url:t.linkedin_url,twitter_url:t.twitter_url,facebook_url:t.facebook_url,custom_values:l(null==(e=t.meta)?void 0:e.custom_values)&&!m(null==(a=t.meta)?void 0:a.custom_values)?t.meta.custom_values:{}},this.$nextTick(()=>{this.appReady=!0,this.emitDrawerState()})}},A={key:0,class:"fcrm_company_drawer_main"},F={class:"fcrm_company_create_body"},L={key:0,class:"fcrm_company_drawer_footer"},N={class:"fcrm_company_drawer_footer_actions"},B={key:1,class:"fcrm_view_mode"},I={class:"fcrm_view_sections"},j={class:"icon"},z={class:"fcrm_view_section"},V={class:"fcrm_view_section_body"},R={class:"fcrm_company_quick_view"},U={class:"fcrm_company_quick_hero"},P={key:0,width:"28",height:"28",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",role:"presentation","aria-hidden":"true"},H={class:"fcrm_company_quick_identity"},O={class:"fcrm_company_quick_contacts"},T=["href"],Z=["href"],G={key:0,class:"fcrm_company_quick_stats"},M={class:"icon"},Q={class:"fcrm_company_quick_stat_text"},W={key:1,class:"fcrm_company_quick_stat"},X={class:"icon"},Y={class:"fcrm_company_quick_stat_text"},J=["href"],K={class:"fcrm_company_quick_panel fcrm_pb_0"},ee={class:"fcrm_company_quick_panel_head"},ae={key:0,class:"fcrm_company_quick_description"},te={key:1,class:"fcrm_company_quick_empty"},ie={class:"fcrm_company_quick_panel fcrm_pb_0"},oe={class:"fcrm_company_quick_panel_head"},se={key:0,class:"fcrm_company_quick_address"},ne={key:1,class:"fcrm_company_quick_empty"},ce={class:"fcrm_company_quick_panel fcrm_pb_0"},le={class:"fcrm_company_quick_panel_head"},me={key:0,class:"fcrm_company_quick_socials"},re=["href"],de={key:0,class:"icon"},pe={key:1,class:"fcrm_company_quick_empty"},ye={class:"fcrm_company_quick_custom"},ue={class:"fcrm_company_quick_panel_head"},_e={class:"icon"},he={class:"fcrm_view_cf_wrap"},fe={key:0,class:"fcrm_drawer_content"},we={class:"fcrm_drawer_body fcrm_company_summary_body"},ve={class:"fcrm_company_summary_footer_actions"},ke={key:0,class:"fcrm_view_save_wrap"};const ge=S(x,[["render",function(e,o,s,n,c,l){const m=r("CustomFieldsForm"),S=r("company-edit-form"),q=a,E=r("Icons"),x=r("BaseCard"),ge=i,be=r("router-link"),Ce=t;return d(),p("div",{class:D([{fcrm_company_in_drawer:s.is_drawer,fcrm_company_unsaved:c.isDirty||!s.company.id},"fcrm_company_info_wrapper"])},[!s.is_drawer||s.company.id&&!c.isHeaderEditing?(d(),p("div",B,[y("div",I,[u(x,{"no-body-padding":!0},{title:_(()=>[y("h4",null,f(e.$t("Company Summary")),1)]),header_action:_(()=>[u(q,{size:"small",onClick:o[1]||(o[1]=e=>l.openSummaryEditDrawer())},{default:_(()=>[y("span",j,[u(E,{"icon-name":"EditPen"})]),h(" "+f(e.$t("Edit")),1)],void 0,!0),_:1})]),body:_(()=>[y("div",z,[y("div",V,[y("div",R,[y("section",U,[y("div",{class:"fcrm_company_quick_logo",style:g({backgroundImage:s.company.logo?"url("+s.company.logo+")":""})},[s.company.logo?k("",!0):(d(),p("svg",P,[...o[8]||(o[8]=[y("path",{d:"M12 2L2 7V22H22V7L12 2Z",fill:"white",opacity:"0.3"},null,-1),y("rect",{x:"5",y:"10",width:"2.5",height:"2.5",fill:"white"},null,-1),y("rect",{x:"9",y:"10",width:"2.5",height:"2.5",fill:"white"},null,-1),y("rect",{x:"13",y:"10",width:"2.5",height:"2.5",fill:"white"},null,-1),y("rect",{x:"17",y:"10",width:"2.5",height:"2.5",fill:"white"},null,-1),y("rect",{x:"5",y:"14",width:"2.5",height:"2.5",fill:"white"},null,-1),y("rect",{x:"9",y:"14",width:"2.5",height:"2.5",fill:"white"},null,-1),y("rect",{x:"13",y:"14",width:"2.5",height:"2.5",fill:"white"},null,-1),y("rect",{x:"17",y:"14",width:"2.5",height:"2.5",fill:"white"},null,-1),y("rect",{x:"5",y:"18",width:"2.5",height:"2.5",fill:"white"},null,-1),y("rect",{x:"9",y:"18",width:"2.5",height:"2.5",fill:"white"},null,-1),y("rect",{x:"13",y:"18",width:"2.5",height:"2.5",fill:"white"},null,-1),y("rect",{x:"17",y:"18",width:"2.5",height:"2.5",fill:"white"},null,-1)])]))],4),y("div",H,[y("h3",null,f(s.company.name),1),y("div",O,[s.company.email?(d(),p("a",{key:0,href:"mailto:"+s.company.email},f(s.company.email),9,T)):k("",!0),s.company.phone?(d(),p("a",{key:1,href:"tel:"+s.company.phone},f(s.company.phone),9,Z)):k("",!0)])])]),s.company.website||l.quickStats.length?(d(),p("section",G,[l.quickStats?(d(!0),p(b,{key:0},C(l.quickStats,e=>(d(),p("div",{key:e.label,class:"fcrm_company_quick_stat"},[y("span",M,["owner"===e.icon?(d(),v(E,{key:0,"icon-name":"user"})):"industry"===e.icon?(d(),v(E,{key:1,"icon-name":"building"})):"type"===e.icon?(d(),v(E,{key:2,"icon-name":"briefcase"})):(d(),v(E,{key:3,"icon-name":"users"}))]),y("div",Q,[y("span",null,f(e.label)+":",1),y("strong",null,f(e.value),1)])]))),128)):k("",!0),s.company.website?(d(),p("div",W,[y("span",X,[u(E,{"icon-name":"glob"})]),y("div",Y,[y("span",null,f(e.$t("Website:")),1),y("strong",null,[s.company.website?(d(),p("a",{key:0,href:s.company.website,target:"_blank",rel:"noopener"},f(l.domainName||s.company.website),9,J)):k("",!0)])])])):k("",!0)])):k("",!0),y("section",K,[y("div",ee,[y("h4",null,f(e.$t("About")),1)]),s.company.description?(d(),p("p",ae,f(s.company.description),1)):(d(),p("p",te,f(e.$t("No description added")),1))]),y("section",ie,[y("div",oe,[y("h4",null,f(e.$t("Address")),1)]),l.profileAddressLines.length?(d(),p("div",se,[(d(!0),p(b,null,C(l.profileAddressLines,(e,a)=>(d(),p("p",{key:a},f(e),1))),128))])):(d(),p("p",ne,f(e.$t("No address added")),1))]),y("section",ce,[y("div",le,[y("h4",null,f(e.$t("Social Links")),1)]),l.socialLinks.length?(d(),p("div",me,[(d(!0),p(b,null,C(l.socialLinks,e=>(d(),p("a",{key:e.label,href:e.url,target:"_blank",rel:"noopener",class:"el-button"},[y("span",null,[e.icon?(d(),p("span",de,["linkedin"===e.icon?(d(),v(E,{key:0,"icon-name":"linkedin"})):"x"===e.icon?(d(),v(E,{key:1,"icon-name":"x"})):(d(),v(E,{key:2,"icon-name":"facebook"}))])):k("",!0),h(" "+f(e.label),1)])],8,re))),128))])):(d(),p("p",pe,f(e.$t("No social links added")),1))])])])])]),_:1}),y("section",ye,[y("div",ue,[y("h4",null,f(e.$t("Custom Data")),1),u(q,{link:"",size:"small",onClick:o[2]||(o[2]=a=>e.$refs.companyCustomFields.openConfig())},{default:_(()=>[y("span",_e,[u(E,{"icon-name":"EditPen"})]),h(" "+f(e.$t("Configure")),1)],void 0),_:1})]),y("div",he,[u(m,{ref:"companyCustomFields",show_header:!1,custom_values:c.model.custom_values},null,8,["custom_values"]),c.isDirty?w((d(),v(q,{key:0,disabled:c.updating,type:"primary",onClick:o[3]||(o[3]=e=>l.updateInfo())},{default:_(()=>[h(f(s.company.id?e.$t("Update info"):e.$t("Create Company")),1)],void 0),_:1},8,["disabled"])),[[Ce,c.updating]]):k("",!0)])])]),u(ge,{direction:c.direction,class:"fcrm_company_summary_edit_drawer","with-header":!0,size:e.globalDrawerSize,"append-to-body":!0,title:e.$t("Edit Company"),onClose:o[6]||(o[6]=e=>l.closeSummaryEditDrawer()),modelValue:c.showSummaryEditDrawer,"onUpdate:modelValue":o[7]||(o[7]=e=>c.showSummaryEditDrawer=e)},$({default:_(()=>[c.showSummaryEditDrawer?(d(),p("div",fe,[y("div",we,[u(S,{model:c.model,company:s.company,onAvatarChanged:l.updateAvatar,class:"fcrm_pt_20"},{"custom-fields":_(()=>[u(m,{custom_values:c.model.custom_values},null,8,["custom_values"])]),_:1},8,["model","company","onAvatarChanged"])])])):k("",!0)],void 0),_:2},[c.showSummaryEditDrawer?{name:"footer",fn:_(()=>[y("div",ve,[u(q,{onClick:o[4]||(o[4]=e=>l.closeSummaryEditDrawer())},{default:_(()=>[h(f(e.$t("Cancel")),1)],void 0,!0),_:1}),u(q,{onClick:o[5]||(o[5]=e=>l.saveSummaryFromDrawer()),type:"primary",loading:c.updating},{default:_(()=>[h(f(e.$t("Update info")),1)],void 0,!0),_:1},8,["loading"])])]),key:"0"}:void 0]),1032,["direction","size","title","modelValue"]),c.isDirty?(d(),p("div",ke,[s.is_drawer&&s.company.id?(d(),v(be,{key:0,to:{name:"view_company",params:{company_id:s.company.id}},class:"fcrm_view_link"},{default:_(()=>[h(f(e.$t("Go to company record")),1)],void 0),_:1},8,["to"])):k("",!0)])):k("",!0)])):(d(),p("div",A,[y("div",F,[u(S,{mode:"create",model:c.model,company:s.company,onAvatarChanged:l.updateAvatar,class:"fcrm_pt_20"},{"custom-fields":_(()=>[u(m,{custom_values:c.model.custom_values},null,8,["custom_values"])]),_:1},8,["model","company","onAvatarChanged"])]),s.hide_drawer_footer?k("",!0):(d(),p("div",L,[y("div",N,[u(q,{size:"small",onClick:l.handleCancel},{default:_(()=>[h(f(e.$t("Cancel")),1)],void 0),_:1},8,["onClick"]),w((d(),v(q,{disabled:c.updating||!c.isDirty,type:"primary",size:"small",onClick:o[0]||(o[0]=e=>l.updateInfo())},{default:_(()=>[h(f(s.company.id?e.$t("Update info"):e.$t("Create Company")),1)],void 0),_:1},8,["disabled"])),[[Ce,c.updating]])])]))]))],2)}]]);export{ge as C};

Youez - 2016 - github.com/yon3zu
LinuXploit