| Current Path : /home/users/unlimited/www/whatsapp-crm/public/build/assets/ |
| Current File : /home/users/unlimited/www/whatsapp-crm/public/build/assets/Dashboard-47c32d50.js |
import{_ as D}from"./App-45dbd9fa.js";import{r as L,i as m,g as r,p as P,o as l,a as t,t as e,f as u,k as h,u as d,l as c,n as b,c as o,b as p,F as T,e as W,O as Y}from"./app-f1493ab2.js";import{t as V}from"./index-764662c4.js";import{_ as F}from"./EmbeddedSignupBtn-ac7efe60.js";import"./Sidebar-f2ddcf5a.js";import"./Menu-73c1148a.js";import"./Modal-a0814fa2.js";import"./transition-f32a8133.js";import"./hidden-f79cef22.js";import"./use-outside-click-92c6377f.js";import"./micro-task-89dcd6af.js";import"./ProfileModal-09ae28bb.js";import"./FormInput-b3450213.js";import"./tabs-80627b62.js";import"./LangToggle-d2b58a25.js";import"./index-114bea05.js";import"./MobileSidebar-e6661e49.js";/* empty css */import"./pusher-a82d1614.js";const E={class:"bg-white md:bg-inherit p-4 md:p-8 rounded-[5px] text-[#000] h-full overflow-y-auto capitalize"},J={class:"flex justify-between mt-3 md:mt-0"},q={class:"md:block hidden text-xl mb-1"},G={class:"mb-6 flex items-center leading-6"},K={class:"mt-1 font-semibold md:font-normal text-xl"},Q={class:"flex space-x-2 mb-8 text-xs md:text-sm"},R={class:"grid grid-cols-2 md:grid-cols-4 gap-x-4 gap-y-4 md:space-y-0"},U={class:"bg-slate-100 md:bg-white col-span-2 md:col-span-1 rounded-lg p-3"},X={class:"flex justify-between items-center"},t1={class:"text-xl text-gray-600"},e1={class:"text-sm space-x-1 md:block hidden"},s1={class:"bg-slate-100 md:bg-white col-span-1 rounded-lg p-3"},a1={class:"flex justify-between items-center"},i1={class:"text-xl text-gray-600"},l1={class:"text-sm space-x-1 md:block hidden"},o1={class:"bg-slate-100 md:bg-white rounded-lg p-3"},n1={class:"flex justify-between items-center"},r1={class:"text-xl text-gray-600"},d1={class:"text-sm space-x-1 md:block hidden"},c1={class:"bg-slate-100 col-span-2 md:col-span-1 md:bg-white rounded-lg p-3"},p1={class:"flex justify-between items-center"},u1={class:"text-xl text-gray-600"},h1={class:"text-sm space-x-1 md:block hidden"},m1={class:"md:grid md:grid-cols-2 gap-x-4 mt-4"},g1={class:"md:block hidden"},v1={id:"chart"},w1={class:"space-y-5"},f1={key:0},b1={key:1},x1={key:2},y1={key:3},k1={key:4,class:"text-sm"},C1={key:5,class:"text-sm"},M1={key:6,class:"text-sm"},Z1={key:7,class:"text-sm"},_1={class:"flex"},$1={key:0,xmlns:"http://www.w3.org/2000/svg",width:"36",height:"36",viewBox:"0 0 24 24"},A1={key:1,xmlns:"http://www.w3.org/2000/svg",width:"36",height:"36",viewBox:"0 0 512 512"},j1={key:0,class:"flex justify-between bg-slate-100 md:bg-white rounded-lg py-4 px-4"},I1={class:"text-sm text-slate-600"},B1={key:1,class:"bg-slate-100 md:bg-white rounded-lg py-4 px-4"},V1={class:"flex justify-between"},O1={class:"text-sm"},N1={class:"flex justify-between space-x-3"},S1={class:"self-end"},z1={class:"bg-white rounded-lg py-4 md:px-4"},H1={class:"text-sm"},D1={key:0,class:"p-5 border-2 border-dashed mt-4"},L1={class:"text-sm text-center"},P1={class:"flex justify-center items-center"},T1={key:1,class:"space-y-1"},W1={class:"capitalize"},Y1={class:"self-end"},F1={class:"bg-[#ffe5b4] p-1 rounded-md text-xs px-2 capitalize"},ct={__name:"Dashboard",props:{user:Object,auth:Object,subscription:Object,subscriptionIsActive:Boolean,subscriptionDetails:Object,chatCount:Number,contactCount:Number,campaignCount:Number,templateCount:Number,setupWhatsapp:Boolean,organization:Object,campaigns:Object,period:Object,inbound:Object,outbound:Object,embeddedSignupActive:Number,appId:String,configId:String,graphAPIVersion:String},setup(n){const i=n,O={chart:{height:350,type:"area",toolbar:{show:!1},zoom:{enabled:!1}},colors:["#418207"],fill:{type:"gradient",gradient:{shadeIntensity:1,opacityFrom:.7,opacityTo:.9,stops:[0,90,100]}},dataLabels:{enabled:!1},stroke:{width:1,curve:"smooth"},xaxis:{type:"datetime",categories:i.period},tooltip:{x:{format:"dd/MM/yy HH:mm"}}},N=[{name:V("Inbound chats"),data:i.inbound},{name:V("Outbound chats"),data:i.outbound}],v=L(!0),S=()=>{var a,s,g;try{v.value=(a=i.organization)!=null&&a.metadata?((g=(s=JSON.parse(i.organization.metadata))==null?void 0:s.notification)==null?void 0:g.team)??!0:!0}catch{v.value=!0}return v.value},z=()=>{Y.delete("/dismiss-notification/team",{})};return(a,s)=>{const g=P("apexchart");return l(),m(D,null,{default:r(()=>{var w,x,y,k,C,M,Z,_,$,A,j,I,B;return[t("div",E,[t("div",J,[t("div",null,[t("h2",q,e(a.$t("Dashboard")),1),t("p",G,[t("span",K,e(a.$t("Welcome back"))+", "+e(i.auth.user.first_name)+" 👋",1)])])]),t("div",Q,[u(d(c),{href:"/contacts/add",class:"bg-primary py-2 px-3 rounded-lg text-white"},{default:r(()=>[h(e(a.$t("Add contact")),1)]),_:1}),u(d(c),{href:"/campaigns/create",class:"bg-primary py-2 px-3 rounded-lg text-white"},{default:r(()=>[h(e(a.$t("Create campaign")),1)]),_:1}),u(d(c),{href:"/templates/create",class:"bg-primary py-2 px-3 rounded-lg text-white"},{default:r(()=>[h(e(a.$t("Create template")),1)]),_:1})]),t("div",R,[t("div",U,[t("div",X,[t("div",null,[t("h2",null,e(a.$t("Contacts")),1),t("h2",t1,e(i.contactCount),1)]),s[1]||(s[1]=t("div",{class:"flex"},[t("span",{class:"bg-secondary/10 p-3 rounded-full self-start"},[t("svg",{class:"text-secondary",xmlns:"http://www.w3.org/2000/svg",width:"36",height:"36",viewBox:"0 0 24 24"},[t("g",{fill:"none",stroke:"currentColor","stroke-width":"1.5"},[t("path",{d:"M2 12c0-4.714 0-7.071 1.464-8.536C4.93 2 7.286 2 12 2c4.714 0 7.071 0 8.535 1.464C22 4.93 22 7.286 22 12c0 4.714 0 7.071-1.465 8.535C19.072 22 16.714 22 12 22s-7.071 0-8.536-1.465C2 19.072 2 16.714 2 12Z"}),t("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m7 14l2.293-2.293a1 1 0 0 1 1.414 0l1.586 1.586a1 1 0 0 0 1.414 0L17 10m0 0v2.5m0-2.5h-2.5"})])])])],-1))]),t("div",e1,[u(d(c),{href:"/contacts",class:"flex items-center space-x-1 underline"},{default:r(()=>[t("span",null,e(a.$t("View contacts")),1),s[2]||(s[2]=t("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},[t("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"m8 16l8-8m0 0h-6m6 0v6"})],-1))]),_:1})])]),t("div",s1,[t("div",a1,[t("div",null,[t("h2",null,e(a.$t("Campaigns")),1),t("h2",i1,e(i.campaignCount),1)]),s[3]||(s[3]=t("div",{class:"flex"},[t("span",{class:"bg-secondary/10 p-3 rounded-full self-start"},[t("svg",{class:"text-secondary",xmlns:"http://www.w3.org/2000/svg",width:"36",height:"36",viewBox:"0 0 24 24"},[t("g",{fill:"none",stroke:"currentColor","stroke-width":"1.5"},[t("path",{d:"M2 12c0-4.714 0-7.071 1.464-8.536C4.93 2 7.286 2 12 2c4.714 0 7.071 0 8.535 1.464C22 4.93 22 7.286 22 12c0 4.714 0 7.071-1.465 8.535C19.072 22 16.714 22 12 22s-7.071 0-8.536-1.465C2 19.072 2 16.714 2 12Z"}),t("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m7 14l2.293-2.293a1 1 0 0 1 1.414 0l1.586 1.586a1 1 0 0 0 1.414 0L17 10m0 0v2.5m0-2.5h-2.5"})])])])],-1))]),t("div",l1,[u(d(c),{href:"/campaigns",class:"flex items-center space-x-1 underline"},{default:r(()=>[t("span",null,e(a.$t("View campaigns")),1),s[4]||(s[4]=t("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},[t("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"m8 16l8-8m0 0h-6m6 0v6"})],-1))]),_:1})])]),t("div",o1,[t("div",n1,[t("div",null,[t("h2",null,e(a.$t("Templates")),1),t("h2",r1,e(i.templateCount),1)]),s[5]||(s[5]=t("div",{class:"flex"},[t("span",{class:"bg-secondary/10 p-3 rounded-full self-start"},[t("svg",{class:"text-secondary",xmlns:"http://www.w3.org/2000/svg",width:"36",height:"36",viewBox:"0 0 24 24"},[t("g",{fill:"none",stroke:"currentColor","stroke-width":"1.5"},[t("path",{d:"M2 12c0-4.714 0-7.071 1.464-8.536C4.93 2 7.286 2 12 2c4.714 0 7.071 0 8.535 1.464C22 4.93 22 7.286 22 12c0 4.714 0 7.071-1.465 8.535C19.072 22 16.714 22 12 22s-7.071 0-8.536-1.465C2 19.072 2 16.714 2 12Z"}),t("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m7 14l2.293-2.293a1 1 0 0 1 1.414 0l1.586 1.586a1 1 0 0 0 1.414 0L17 10m0 0v2.5m0-2.5h-2.5"})])])])],-1))]),t("div",d1,[u(d(c),{href:"/templates",class:"flex items-center space-x-1 underline"},{default:r(()=>[t("span",null,e(a.$t("View templates")),1),s[6]||(s[6]=t("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},[t("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"m8 16l8-8m0 0h-6m6 0v6"})],-1))]),_:1})])]),t("div",c1,[t("div",p1,[t("div",null,[t("h2",null,e(a.$t("All chats")),1),t("h2",u1,e(i.chatCount),1)]),s[7]||(s[7]=t("div",{class:"flex"},[t("span",{class:"bg-secondary/10 p-3 rounded-full self-start"},[t("svg",{class:"text-secondary",xmlns:"http://www.w3.org/2000/svg",width:"36",height:"36",viewBox:"0 0 24 24"},[t("g",{fill:"none",stroke:"currentColor","stroke-width":"1.5"},[t("path",{d:"M2 12c0-4.714 0-7.071 1.464-8.536C4.93 2 7.286 2 12 2c4.714 0 7.071 0 8.535 1.464C22 4.93 22 7.286 22 12c0 4.714 0 7.071-1.465 8.535C19.072 22 16.714 22 12 22s-7.071 0-8.536-1.465C2 19.072 2 16.714 2 12Z"}),t("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m7 14l2.293-2.293a1 1 0 0 1 1.414 0l1.586 1.586a1 1 0 0 0 1.414 0L17 10m0 0v2.5m0-2.5h-2.5"})])])])],-1))]),t("div",h1,[u(d(c),{href:"/contacts",class:"flex items-center space-x-1 underline"},{default:r(()=>[t("span",null,e(a.$t("View chats")),1),s[8]||(s[8]=t("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},[t("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"m8 16l8-8m0 0h-6m6 0v6"})],-1))]),_:1})])])]),t("div",m1,[t("div",g1,[t("div",v1,[u(g,{type:"area",height:"350",options:O,series:N})])]),t("div",w1,[t("div",{class:b(["flex justify-between rounded-lg py-4 px-4",n.subscriptionIsActive?"bg-slate-100 md:bg-white":"bg-red-500 text-white"])},[t("div",null,[((w=i.subscription)==null?void 0:w.status)==="trial"&&!n.subscriptionIsActive?(l(),o("h2",f1,e(a.$t("Your trial period is over")),1)):p("",!0),((x=i.subscription)==null?void 0:x.status)==="active"&&!n.subscriptionIsActive?(l(),o("h2",b1,e(a.$t("We were unable to autorenew your subscription")),1)):p("",!0),((y=i.subscription)==null?void 0:y.status)==="active"&&n.subscriptionIsActive?(l(),o("h2",x1,e(a.$t("Active subscription")),1)):p("",!0),((k=i.subscription)==null?void 0:k.status)==="trial"&&n.subscriptionIsActive?(l(),o("h2",y1,e(a.$t("Trial period")),1)):p("",!0),((C=i.subscription)==null?void 0:C.status)==="trial"&&!n.subscriptionIsActive?(l(),o("p",k1,e(a.$t("Please subscribe to a plan to continue using the app")),1)):p("",!0),((M=i.subscription)==null?void 0:M.status)==="active"&&!n.subscriptionIsActive?(l(),o("p",C1,e(a.$t("To continue using the app, please make a payment of"))+" "+e((Z=i.subscriptionDetails)==null?void 0:Z.accountBalance)+".",1)):p("",!0),((_=i.subscription)==null?void 0:_.status)==="trial"&&n.subscriptionIsActive?(l(),o("p",M1,e(a.$t("Your trial period expires on"))+" "+e(($=i.subscription)==null?void 0:$.valid_until),1)):p("",!0),((A=i.subscription)==null?void 0:A.status)==="active"&&n.subscriptionIsActive?(l(),o("p",Z1,e(a.$t("Your subscription expires on"))+" "+e((j=i.subscription)==null?void 0:j.valid_until),1)):p("",!0),i.auth.user.teams[0].role==="owner"&&((I=i.subscription)==null?void 0:I.status)==="trial"?(l(),m(d(c),{key:8,href:"/subscription",class:b(["p-2 rounded-lg text-sm mt-5 flex px-3 w-fit",n.subscriptionIsActive?"bg-primary text-white":"bg-white text-gray-600"])},{default:r(()=>[h(e(a.$t("Subscribe"))+" ",1),s[9]||(s[9]=t("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20"},[t("g",{fill:"currentColor","fill-rule":"evenodd","clip-rule":"evenodd"},[t("g",{opacity:".2"},[t("path",{d:"M12.206 5.848a1.5 1.5 0 0 1 2.113.192l3.333 4a1.5 1.5 0 1 1-2.304 1.92l-3.334-4a1.5 1.5 0 0 1 .192-2.112Z"}),t("path",{d:"M12.206 16.152a1.5 1.5 0 0 1-.192-2.112l3.334-4a1.5 1.5 0 0 1 2.304 1.92l-3.333 4a1.5 1.5 0 0 1-2.113.192Z"}),t("path",{d:"M16 11a1.5 1.5 0 0 1-1.5 1.5h-8a1.5 1.5 0 0 1 0-3h8A1.5 1.5 0 0 1 16 11Z"})]),t("path",{d:"M11.347 5.616a.5.5 0 0 1 .704.064l3.333 4a.5.5 0 0 1-.768.64l-3.333-4a.5.5 0 0 1 .064-.704Z"}),t("path",{d:"M11.347 14.384a.5.5 0 0 1-.064-.704l3.333-4a.5.5 0 0 1 .768.64l-3.333 4a.5.5 0 0 1-.704.064Z"}),t("path",{d:"M15.5 10a.5.5 0 0 1-.5.5H5a.5.5 0 0 1 0-1h20a.5.5 0 0 1 .5.5Z"})])],-1))]),_:1},8,["class"])):p("",!0),i.auth.user.teams[0].role==="owner"&&((B=i.subscription)==null?void 0:B.status)==="active"&&!n.subscriptionIsActive?(l(),m(d(c),{key:9,href:"/billing",type:"button",class:"bg-white text-gray-600 p-2 rounded-lg text-sm mt-5 flex px-3 w-fit"},{default:r(()=>[h(e(a.$t("Add payment"))+" ",1),s[10]||(s[10]=t("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20"},[t("g",{fill:"currentColor","fill-rule":"evenodd","clip-rule":"evenodd"},[t("g",{opacity:".2"},[t("path",{d:"M12.206 5.848a1.5 1.5 0 0 1 2.113.192l3.333 4a1.5 1.5 0 1 1-2.304 1.92l-3.334-4a1.5 1.5 0 0 1 .192-2.112Z"}),t("path",{d:"M12.206 16.152a1.5 1.5 0 0 1-.192-2.112l3.334-4a1.5 1.5 0 0 1 2.304 1.92l-3.333 4a1.5 1.5 0 0 1-2.113.192Z"}),t("path",{d:"M16 11a1.5 1.5 0 0 1-1.5 1.5h-8a1.5 1.5 0 0 1 0-3h8A1.5 1.5 0 0 1 16 11Z"})]),t("path",{d:"M11.347 5.616a.5.5 0 0 1 .704.064l3.333 4a.5.5 0 0 1-.768.64l-3.333-4a.5.5 0 0 1 .064-.704Z"}),t("path",{d:"M11.347 14.384a.5.5 0 0 1-.064-.704l3.333-4a.5.5 0 0 1 .768.64l-3.333 4a.5.5 0 0 1-.704.064Z"}),t("path",{d:"M15.5 10a.5.5 0 0 1-.5.5H5a.5.5 0 0 1 0-1h20a.5.5 0 0 1 .5.5Z"})])],-1))]),_:1})):p("",!0)]),t("div",_1,[t("span",{class:b(["h-16 w-16 p-3 flex justify-center items-center rounded-full self-start",n.subscriptionIsActive?"bg-primary text-white":"bg-white text-red-500"])},[n.subscriptionIsActive?(l(),o("svg",$1,s[11]||(s[11]=[t("g",{fill:"none"},[t("path",{stroke:"currentColor","stroke-linecap":"round","stroke-width":"1.5",d:"M14 22h-4c-3.771 0-5.657 0-6.828-1.172C2 19.657 2 17.771 2 14v-2c0-3.771 0-5.657 1.172-6.828C4.343 4 6.229 4 10 4h4c3.771 0 5.657 0 6.828 1.172C22 6.343 22 8.229 22 12v2c0 3.771 0 5.657-1.172 6.828c-.653.654-1.528.943-2.828 1.07M7 4V2.5M17 4V2.5M21.5 9H20.75M2 9h3.875"}),t("path",{fill:"currentColor",d:"M18 17a1 1 0 1 1-2 0a1 1 0 0 1 2 0m0-4a1 1 0 1 1-2 0a1 1 0 0 1 2 0m-5 4a1 1 0 1 1-2 0a1 1 0 0 1 2 0m0-4a1 1 0 1 1-2 0a1 1 0 0 1 2 0m-5 4a1 1 0 1 1-2 0a1 1 0 0 1 2 0m0-4a1 1 0 1 1-2 0a1 1 0 0 1 2 0"})],-1)]))):(l(),o("svg",A1,s[12]||(s[12]=[t("path",{fill:"currentColor",d:"M256 32c14.2 0 27.3 7.5 34.5 19.8l216 368c7.3 12.4 7.3 27.7.2 40.1S486.3 480 472 480H40c-14.3 0-27.6-7.7-34.7-20.1s-7-27.8.2-40.1l216-368C228.7 39.5 241.8 32 256 32m0 128c-13.3 0-24 10.7-24 24v112c0 13.3 10.7 24 24 24s24-10.7 24-24V184c0-13.3-10.7-24-24-24m32 224a32 32 0 1 0-64 0a32 32 0 1 0 64 0"},null,-1)])))],2)])],2),i.auth.user.teams[0].role==="owner"&&i.setupWhatsapp===!0?(l(),o("div",j1,[t("div",null,[t("h2",null,e(a.$t("Setup whatsapp")),1),t("p",I1,e(a.$t("Setup your whatsapp API to start using your instance")),1),n.embeddedSignupActive==1?(l(),m(F,{key:0,appId:i.appId,configId:i.configId,graphAPIVersion:i.graphAPIVersion},null,8,["appId","configId","graphAPIVersion"])):(l(),m(d(c),{key:1,href:"/settings/whatsapp",class:"bg-primary text-white p-2 rounded-lg text-sm mt-5 flex px-3 w-fit"},{default:r(()=>[h(e(a.$t("Setup whatsapp"))+" ",1),s[13]||(s[13]=t("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20"},[t("g",{fill:"currentColor","fill-rule":"evenodd","clip-rule":"evenodd"},[t("g",{opacity:".2"},[t("path",{d:"M12.206 5.848a1.5 1.5 0 0 1 2.113.192l3.333 4a1.5 1.5 0 1 1-2.304 1.92l-3.334-4a1.5 1.5 0 0 1 .192-2.112Z"}),t("path",{d:"M12.206 16.152a1.5 1.5 0 0 1-.192-2.112l3.334-4a1.5 1.5 0 0 1 2.304 1.92l-3.333 4a1.5 1.5 0 0 1-2.113.192Z"}),t("path",{d:"M16 11a1.5 1.5 0 0 1-1.5 1.5h-8a1.5 1.5 0 0 1 0-3h8A1.5 1.5 0 0 1 16 11Z"})]),t("path",{d:"M11.347 5.616a.5.5 0 0 1 .704.064l3.333 4a.5.5 0 0 1-.768.64l-3.333-4a.5.5 0 0 1 .064-.704Z"}),t("path",{d:"M11.347 14.384a.5.5 0 0 1-.064-.704l3.333-4a.5.5 0 0 1 .768.64l-3.333 4a.5.5 0 0 1-.704.064Z"}),t("path",{d:"M15.5 10a.5.5 0 0 1-.5.5H5a.5.5 0 0 1 0-1h20a.5.5 0 0 1 .5.5Z"})])],-1))]),_:1}))]),s[14]||(s[14]=t("div",{class:"flex"},[t("span",{class:"bg-primary h-16 w-16 p-3 flex justify-center items-center rounded-full self-start"},[t("svg",{class:"text-white",xmlns:"http://www.w3.org/2000/svg",width:"40",height:"40",viewBox:"0 0 24 24"},[t("path",{fill:"currentColor",d:"M8.886 7.17c.183.005.386.015.579.443c.128.285.343.81.519 1.238c.137.333.249.607.277.663c.064.128.104.275.02.448l-.028.058a1.43 1.43 0 0 1-.23.37a9.386 9.386 0 0 0-.143.17c-.085.104-.17.206-.242.278c-.129.128-.262.266-.114.522c.149.256.668 1.098 1.435 1.777a6.634 6.634 0 0 0 1.903 1.2c.07.03.127.055.17.076c.257.128.41.108.558-.064c.149-.173.643-.749.817-1.005c.168-.256.34-.216.578-.128c.238.089 1.504.71 1.761.837l.143.07c.179.085.3.144.352.23c.064.109.064.62-.148 1.222c-.218.6-1.267 1.176-1.742 1.22l-.135.016c-.436.052-.988.12-2.956-.655c-2.426-.954-4.027-3.32-4.35-3.799a2.768 2.768 0 0 0-.053-.076l-.006-.008c-.147-.197-1.048-1.402-1.048-2.646c0-1.19.587-1.81.854-2.092l.047-.05a.95.95 0 0 1 .687-.32c.173 0 .347 0 .495.005Z"}),t("path",{fill:"currentColor","fill-rule":"evenodd",d:"M2.184 21.331a.4.4 0 0 0 .487.494l4.607-1.204a10 10 0 0 0 4.76 1.207h.004c5.486 0 9.958-4.447 9.958-9.912a9.828 9.828 0 0 0-2.914-7.011A9.917 9.917 0 0 0 12.042 2c-5.486 0-9.958 4.446-9.958 9.911c0 1.739.458 3.447 1.33 4.954l-1.23 4.466Zm2.677-4.068a1.5 1.5 0 0 0-.148-1.15a8.377 8.377 0 0 1-1.129-4.202c0-4.63 3.793-8.411 8.458-8.411c2.27 0 4.388.877 5.986 2.468a8.328 8.328 0 0 1 2.472 5.948c0 4.63-3.793 8.412-8.458 8.412h-.005a8.5 8.5 0 0 1-4.044-1.026a1.5 1.5 0 0 0-1.094-.132l-2.762.721l.724-2.628Z","clip-rule":"evenodd"})])])],-1))])):p("",!0),i.auth.user.teams[0].role==="owner"&&S()===!0?(l(),o("div",B1,[t("div",V1,[t("div",null,[t("h2",null,e(a.$t("Setup team")),1),t("p",O1,e(a.$t("Add other people to your team")),1)]),s[15]||(s[15]=t("div",{class:"flex"},[t("span",{class:"bg-[#ffe5b4] h-16 w-16 p-3 flex justify-center items-center rounded-full self-start"},[t("svg",{class:"text-slate-600",xmlns:"http://www.w3.org/2000/svg",width:"40",height:"40",viewBox:"0 0 20 20"},[t("g",{fill:"currentColor"},[t("g",{opacity:".2"},[t("path",{d:"M9.75 7.75a3 3 0 1 1-6 0a3 3 0 0 1 6 0Z"}),t("path",{"fill-rule":"evenodd",d:"M6.75 8.75a1 1 0 1 0 0-2a1 1 0 0 0 0 2Zm0 2a3 3 0 1 0 0-6a3 3 0 0 0 0 6Z","clip-rule":"evenodd"}),t("path",{"fill-rule":"evenodd",d:"M6.8 11.5A1.5 1.5 0 0 0 5.3 13v1.5a1 1 0 0 1-2 0V13a3.5 3.5 0 0 1 7 0v.5a1 1 0 1 1-2 0V13a1.5 1.5 0 0 0-1.5-1.5Z","clip-rule":"evenodd"}),t("path",{d:"M12.75 7.75a3 3 0 1 0 6 0a3 3 0 0 0-6 0Z"}),t("path",{"fill-rule":"evenodd",d:"M15.75 8.75a1 1 0 1 1 0-2a1 1 0 0 1 0 2Zm0 2a3 3 0 1 1 0-6a3 3 0 0 1 0 6Z","clip-rule":"evenodd"}),t("path",{"fill-rule":"evenodd",d:"M15.7 11.5a1.5 1.5 0 0 1 1.5 1.5v1.5a1 1 0 1 0 2 0V13a3.5 3.5 0 0 0-7 0v.5a1 1 0 1 0 2 0V13a1.5 1.5 0 0 1 1.5-1.5Z","clip-rule":"evenodd"}),t("path",{"fill-rule":"evenodd",d:"M11.3 14.25a1.5 1.5 0 0 0-1.5 1.5v1.5a1 1 0 0 1-2 0v-1.5a3.5 3.5 0 0 1 7 0v1.5a1 1 0 1 1-2 0v-1.5a1.5 1.5 0 0 0-1.5-1.5Z","clip-rule":"evenodd"}),t("path",{d:"M14.25 10.5a3 3 0 1 1-6 0a3 3 0 0 1 6 0Z"}),t("path",{"fill-rule":"evenodd",d:"M11.25 11.5a1 1 0 1 0 0-2a1 1 0 0 0 0 2Zm0 2a3 3 0 1 0 0-6a3 3 0 0 0 0 6Z","clip-rule":"evenodd"}),t("path",{d:"M4.25 11.5h5v4h-5v-4Zm9 0h5v4h-5v-4Z"}),t("path",{d:"M9.25 13.5h4l.5 4.75h-5l.5-4.75Z"})]),t("path",{"fill-rule":"evenodd",d:"M5 9a2 2 0 1 0 0-4a2 2 0 0 0 0 4Zm0 1a3 3 0 1 0 0-6a3 3 0 0 0 0 6Z","clip-rule":"evenodd"}),t("path",{"fill-rule":"evenodd",d:"M3.854 8.896a.5.5 0 0 1 0 .708l-.338.337A3.47 3.47 0 0 0 2.5 12.394v1.856a.5.5 0 1 1-1 0v-1.856a4.47 4.47 0 0 1 1.309-3.16l.337-.338a.5.5 0 0 1 .708 0Zm11.792-.3a.5.5 0 0 0 0 .708l.338.337A3.469 3.469 0 0 1 17 12.094v2.156a.5.5 0 0 0 1 0v-2.156a4.47 4.47 0 0 0-1.309-3.16l-.337-.338a.5.5 0 0 0-.708 0Z","clip-rule":"evenodd"}),t("path",{"fill-rule":"evenodd",d:"M14 9a2 2 0 1 1 0-4a2 2 0 0 1 0 4Zm0 1a3 3 0 1 1 0-6a3 3 0 0 1 0 6Zm-4.5 3.25a2.5 2.5 0 0 0-2.5 2.5v1.3a.5.5 0 0 1-1 0v-1.3a3.5 3.5 0 0 1 7 0v1.3a.5.5 0 1 1-1 0v-1.3a2.5 2.5 0 0 0-2.5-2.5Z","clip-rule":"evenodd"}),t("path",{"fill-rule":"evenodd",d:"M9.5 11.75a2 2 0 1 0 0-4a2 2 0 0 0 0 4Zm0 1a3 3 0 1 0 0-6a3 3 0 0 0 0 6Z","clip-rule":"evenodd"})])])])],-1))]),t("div",N1,[u(d(c),{href:"team",class:"bg-[#ffe5b4] p-2 rounded-lg text-sm flex px-3 capitalize"},{default:r(()=>[h(e(a.$t("Add users"))+" ",1),s[16]||(s[16]=t("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20"},[t("g",{fill:"currentColor","fill-rule":"evenodd","clip-rule":"evenodd"},[t("g",{opacity:".2"},[t("path",{d:"M12.206 5.848a1.5 1.5 0 0 1 2.113.192l3.333 4a1.5 1.5 0 1 1-2.304 1.92l-3.334-4a1.5 1.5 0 0 1 .192-2.112Z"}),t("path",{d:"M12.206 16.152a1.5 1.5 0 0 1-.192-2.112l3.334-4a1.5 1.5 0 0 1 2.304 1.92l-3.333 4a1.5 1.5 0 0 1-2.113.192Z"}),t("path",{d:"M16 11a1.5 1.5 0 0 1-1.5 1.5h-8a1.5 1.5 0 0 1 0-3h8A1.5 1.5 0 0 1 16 11Z"})]),t("path",{d:"M11.347 5.616a.5.5 0 0 1 .704.064l3.333 4a.5.5 0 0 1-.768.64l-3.333-4a.5.5 0 0 1 .064-.704Z"}),t("path",{d:"M11.347 14.384a.5.5 0 0 1-.064-.704l3.333-4a.5.5 0 0 1 .768.64l-3.333 4a.5.5 0 0 1-.704.064Z"}),t("path",{d:"M15.5 10a.5.5 0 0 1-.5.5H5a.5.5 0 0 1 0-1h20a.5.5 0 0 1 .5.5Z"})])],-1))]),_:1}),t("div",S1,[t("span",{onClick:s[0]||(s[0]=f=>z()),class:"text-sm underline cursor-pointer"},e(a.$t("Dismiss notification")),1)])])])):p("",!0),t("div",z1,[t("div",null,[t("h2",null,e(a.$t("Campaigns")),1),t("p",H1,e(a.$t("Below are your outgoing or scheduled campaigns")),1),i.campaigns.length===0?(l(),o("div",D1,[t("p",L1,e(a.$t("You do not have any outgoing or scheduled campaigns")),1),t("div",P1,[u(d(c),{href:"/campaigns/create",class:"bg-primary text-white p-2 rounded-lg text-sm mt-5 flex px-3 w-fit"},{default:r(()=>[h(e(a.$t("Create campaign")),1)]),_:1})])])):(l(),o("div",T1,[(l(!0),o(T,null,W(i.campaigns,(f,H)=>(l(),o("div",{key:H,class:"mt-4 border-l-4 bg-gray-50 flex justify-between p-2 text-sm"},[t("div",W1,e(f.name),1),t("div",Y1,[t("span",F1,e(f.status),1)])]))),128)),u(d(c),{href:"/campaigns",class:"flex items-center space-x-1 underline pt-3 text-sm"},{default:r(()=>[s[17]||(s[17]=t("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24"},[t("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M10 5H8.2c-1.12 0-1.68 0-2.108.218a1.999 1.999 0 0 0-.874.874C5 6.52 5 7.08 5 8.2v7.6c0 1.12 0 1.68.218 2.108a2 2 0 0 0 .874.874c.427.218.987.218 2.105.218h7.606c1.118 0 1.677 0 2.104-.218c.377-.192.683-.498.875-.874c.218-.428.218-.987.218-2.105V14m1-5V4m0 0h-5m5 0l-7 7"})],-1)),t("span",null,e(a.$t("View more campaigns")),1)]),_:1})]))])])])])])]}),_:1})}}};export{ct as default};