1import{_ as L}from"./C3VJGmcB.js";import{_ as P}from"./Cet2nA1b.js";import{_ as A}from"./Bz9VAsca.js";import{_ as E}from"./CrZOLxHW.js";import{d as H,q as M,T as R,aA as j,u as q,s as W,f as $,r as a,o as z,W as f,g as F,h as C,a as d,w as i,V as G,i as s,c as w,k as J,l as I,m as K,n as t,j as b,_ as O}from"./CZz2bYl_.js";import"./CAV74yx-.js";import"./8mTOZ3Ex.js";import"./Cb0Ew47A.js";import"./CwfaHd9Q.js";import"./BE03VkTC.js";import"./x_rD_Ya3.js";import"./CmPuKgiq.js";import"./Cqz6yrSU.js";const Q={class:"image-header-header"},X={key:0,src:E,alt:"background"},Y={key:1,class:"image-header-content w-100"},Z=H({__name:"index",setup(ee){const e=M(),p=R(),l=j(),y=q(),{industries:_,countries:g}=W(l),{getTenantInfo:S}=e,{pageLoaded:c,showErrorSnackbar:u}=$(),x=a(!1),D=a(!1),k=a(!1),N=a(!1),v=a(!1),T=a([]);z(async()=>{var n;try{if(y.headerConfig.isSettings=!1,e.loggedInUser.isTenantInfoCompleted&&!e.isNoCreditCardCountry&&!((n=p.billing.payments)!=null&&n.length)){f("/billing/setPayment");return}l.getCountriesList(),l.getIndustriesList(),await h()}catch(o){u(o)}}),F(y.resetHeader);const h=async()=>{var n;try{await S();const o=g.value.filter(r=>r.id===e.companyData.countryId),m=_.value.filter(r=>r.id===e.companyData.industryId);e.companyData.industry=m[0]?m[0].name:"",e.companyData.country=o[0]?o[0].name:"",e.companyData.webSite=e.companyData.webSite?e.companyData.webSite:"",c.value=!0}catch(o){c.value=!0,u((n=o.data)==null?void 0:n.message)}},U=()=>{e.fetchUser()},V=async()=>{try{e.state.user.isTenantInfoCompleted?h():(e.state.user.isTenantInfoCompleted=!0,await e.getTenantInfo(),e.isNoCreditCardCountry?(await p.createCustomer(),f("/billing/confirmSubscription?withoutCard=true")):f("/billing/setPayment"))}catch(n){u(n)}};return(n,o)=>{const m=L,r=P,B=A;return d(),C(G,{fluid:"","fill-height":"",class:"image-header"},{default:i(()=>[s(b,{class:"image-header-bg"},{default:i(()=>[s(I,null,{default:i(()=>[K("div",Q,[s(m)])]),_:1}),t(c)?(d(),w("img",X)):J("",!0)]),_:1}),t(c)?(d(),w("div",Y,[s(B,{user:t(e).loggedInUser,"user-id":Number(t(e).loggedInUser.userId),"roles-list":t(T),"notify-new-campaign":t(D),"notify-new-index":t(x),"notify-new-model":t(k),"notify-addon-change":t(N),"notify-plan-change":t(v),"company-data":t(e).companyData,industries:t(_),countries:t(g),"onProfile:updated":U,"onCompany:updated":V},null,8,["user","user-id","roles-list","notify-new-campaign","notify-new-index","notify-new-model","notify-addon-change","notify-plan-change","company-data","industries","countries"])])):(d(),C(b,{key:0,"fill-height":""},{default:i(()=>[s(I,{cols:"12",class:"text-center"},{default:i(()=>[s(r)]),_:1})]),_:1}))]),_:1})}}}),pe=O(Z,[["__scopeId","data-v-8d509b54"]]);export{pe 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.