PageSourceSearch

https://cdn.businessdraft.com/build/assets/EnterpriseCompanyEdit-DCamwRDp.js

js businessdraft.com collected 2026-09-24 13:20:32 UTC 5,474 bytes, 2 lines download raw bytes

1import{R as c,a as $,r as B,a0 as C,o as u,c as b,d as i,F as T,e as f,w as m,L as y,K as v,u as s,J as V,cL as D,cM as F,ca as M,T as R,g as w}from"./SetupSentry-DE6y2Ajh.js";import{_ as A}from"./BaseCardTabs-Cp_D15_z.js";import{B as k}from"./BaseCardHeader-BxZuixqM.js";import{_ as N}from"./BaseCard-Cb5443uK.js";import{E}from"./EnterpriseCompanyApi-fbNa4QdZ.js";import{F as P}from"./FormInput-DBM7Ath9.js";import{F as L}from"./FormButton-CCi9BtWO.js";import{_ as O}from"./TeamMemberIndex-DXLa4T9v.js";import{u as j}from"./EnterprisePageTitle-CVouGzcW.js";import"./_commonjsHelpers-DKZAErUA.js";import"./_sentry-release-injection-file-DmW9TZFH.js";import"./preload-helper-nkV39p5t.js";import"./GoogleAnalytics-kF7mJAxL.js";import"./ArrowUpRightIcon-BtB9lakr.js";import"./XMarkIcon-Dpv1f6WB.js";import"./FormLabel-DamWP-by.js";import"./InputFormatter-CdXY6dpf.js";import"./formatters-Dp2ha40b.js";import"./EyeIcon-m1RBer64.js";import"./AnimationLoading-BzEG18Vj.js";import"./BillingGate-BgUVOH1M.js";import"./FeatureGate-Dpv4NqiB.js";import"./UseFeatureFlag-Dc2GQjI8.js";import"./UpgradePrompt-BRy-rDbX.js";import"./UseDollarTrialEligibility-BPgXpART.js";import"./LockClosedIcon-BriCd1Vc.js";import"./LoginAttemptsModal-B_Xjwk9h.js";import"./BaseModal-Dl3aiElI.js";import"./BaseModalHeader-DbfpBpuy.js";import"./LoginAttemptIndex-DNWFMwq7.js";import"./BaseTable-U15zMYY4.js";import"./BasePagination-Dc2h-_L1.js";import"./AnimationLoadingDotsHorizontal-pO9gtm3V.js";import"./InfiniteScrollTrigger-Bz11cn7i.js";import"./ModalConfirm-DkIzzs9R.js";import"./FormTextarea-f__CbCXH.js";import"./BaseModalButtons-Bb8UAMFC.js";import"./ShieldExclamationIcon-BH-r3vlV.js";import"./InformationCircleIcon-D1u-glt0.js";import"./FormDropdownIcon-DoP4ZXaD.js";import"./popper-CL1LYt9h.js";import"./TeamMemberApi-BCmFt3Vs.js";import"./Features-CneqwmYJ.js";import"./UtilityDeleteIcon-BOS9X9AT.js";import"./HoverTooltip-D-oR1nbg.js";import"./TrashIcon-C6Wua9h2.js";import"./Cronofy-C3nevXJ9.js";import"./ShieldCheckIcon-wG6XLQWy.js";import"./ExclamationTriangleIcon-446pIRG1.js";import"./ArrowUturnLeftIcon-DrBoCapk.js";import"./PencilSquareIcon-CgU63rNO.js";(function(){try{var o=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},a=new o.Error().stack;a&&(o._sentryDebugIds=o._sentryDebugIds||{},o._sentryDebugIds[a]="94164abb-e3b6-4983-a39f-ad27c0b405ed",o._sentryDebugIdIdentifier="sentry-dbid-94164abb-e3b6-4983-a39f-ad27c0b405ed")}catch{}})();{var n=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};n._sentryModuleMetadata=n._sentryModuleMetadata||{},n._sentryModuleMetadata[new n.Error().stack]=Object.assign({},n._sentryModuleMetadata[new n.Error().stack],{"_sentryBundlerPluginAppKey:business-draft-crm":!0})}const K={class:"mx-auto w-full max-w-screen-2xl px-4 py-2 space-y-4 md:px-6"},Oe={__name:"EnterpriseCompanyEdit",props:{id:String},setup(o){const{nouns:a}=j(r=>`Manage ${r.companyNameSingular}`||"Location"),d=o,g=c(()=>a.value.companyNameSingular+" Info"),S=c(()=>a.value.groupSingular),_=c(()=>"All "+a.value.companyNameSingular+" Members"),x=c(()=>[{value:g.value},{value:_.value},...e.group_id?[{value:S.value,link:`/enterprise-groups/${e.group_id}`}]:[],...e.billing.id?[{value:"Payment Group",link:`/enterprise-billing-groups/${e.billing.id}`}]:[]]),l=$(),e=B({id:null,created_at:"",company_id:null,nickname:"",name:"",email:"",city:"",state:"",avatar:null,group_id:0,group_name:"",open_opportunity_count:0,team_member_count:0,billing:{id:null,group_name:"",plan_name:"",entity:{id:null,pm_type:"",pm_last_four:"",cycle_interval:"",trial_ends_at:"",next_monthly_cycle_at:"",next_yearly_cycle_at:""}},loading:!1}),I=async()=>{e.loading=!0;const r=new E;try{const t=await r.show(d.id);Object.assign(e,t.data),e.nickname||(e.nickname=e.name)}finally{e.loading=!1}},h=async()=>{if(e.loading)return;e.loading=!0;const r=new E;try{e.loading=!0,await r.update(d.id,{nickname:e.nickname}),toast.success(`${a.value.companyNameSingular} updated successfully.`)}catch(t){console.error(t)}finally{e.loading=!1}};return C(()=>I()),(r,t)=>(u(),b("div",K,[i(A,{"current-tab":l.value,"onUpdate:currentTab":t[0]||(t[0]=p=>l.value=p),"tabs-with-links":x.value},null,8,["current-tab","tabs-with-links"]),l.value?l.value===g.value?(u(),f(N,{key:1,"no-padding":""},{default:m(()=>[i(k,null,{default:m(()=>[y(v(s(a).companyNameSingular)+" Info",1)]),_:1}),V("form",{class:"p-4 lg:p-6 space-y-4 max-w-lg mx-auto",onSubmit:R(h,["prevent"])},[i(P,{modelValue:e.nickname,"onUpdate:modelValue":t[1]||(t[1]=p=>e.nickname=p),label:`${s(a).companyNameSingular} Name`,placeholder:`${s(a).companyNameSingular} Name`},null,8,["modelValue","label","placeholder"]),i(M,{roles:[s(D),s(F)]},{default:m(()=>[i(L,{color:"gradient",size:"lg",type:"submit",class:"mx-auto block",loading:e.loading},{default:m(()=>t[2]||(t[2]=[y(" Save ")])),_:1},8,["loading"])]),_:1},8,["roles"])],32)]),_:1})):l.value===_.value?(u(),f(N,{key:2,"no-padding":""},{default:m(()=>[i(k,null,{default:m(()=>[y("All "+v(s(a).companyNameSingular)+" Members",1)]),_:1}),e.company_id?(u(),f(O,{key:0,"can-remove-members":!1,"can-invite-members":!1,"show-invites":!1,"for-company-id":e.company_id,"hide-activity-log":"","hide-edit-button":"","get-router-to":p=>`/enterprise-access-manager/${p.userId}`},null,8,["for-company-id","get-router-to"])):w("",!0)]),_:1})):w("",!0):(u(),b(T,{key:0},[],64))]))}};export{Oe as default};
2//# sourceMappingURL=EnterpriseCompanyEdit-DCamwRDp.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.