Your IP : 216.73.217.77


Current Path : /home/users/unlimited/www/whatsapp-crm/public/build/assets/
Upload File :
Current File : /home/users/unlimited/www/whatsapp-crm/public/build/assets/Dashboard-bdc71e87.js

import{_ as D}from"./App-26099fac.js";import{r as L,h as g,f as n,p as T,o as i,a as t,t as e,e as h,k as p,u as d,l as r,n as b,c as o,b as c,F as W,d as Y,O as F}from"./app-43851608.js";import{t as V}from"./index-17cd980e.js";import{_ as P}from"./EmbeddedSignupBtn-9f4f400f.js";import"./Sidebar-13bbdf6e.js";import"./Menu-7a7609fd.js";import"./Modal-22a49fae.js";import"./ProfileModal-628e5b7c.js";import"./FormInput-4a309017.js";import"./LangToggle-8d05b0dc.js";import"./index-99011d5f.js";import"./MobileSidebar-64958b6d.js";/* empty css              */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=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),s1={class:"text-sm space-x-1 md:block hidden"},a1=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),i1={class:"bg-slate-100 md:bg-white col-span-1 rounded-lg p-3"},o1={class:"flex justify-between items-center"},l1={class:"text-xl text-gray-600"},n1=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),d1={class:"text-sm space-x-1 md:block hidden"},r1=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),c1={class:"bg-slate-100 md:bg-white rounded-lg p-3"},h1={class:"flex justify-between items-center"},p1={class:"text-xl text-gray-600"},u1=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),m1={class:"text-sm space-x-1 md:block hidden"},g1=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),v1={class:"bg-slate-100 col-span-2 md:col-span-1 md:bg-white rounded-lg p-3"},w1={class:"flex justify-between items-center"},f1={class:"text-xl text-gray-600"},b1=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),x1={class:"text-sm space-x-1 md:block hidden"},_1=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),y1={class:"md:grid md:grid-cols-2 gap-x-4 mt-4"},k1={class:"md:block hidden"},C1={id:"chart"},M1={class:"space-y-5"},Z1={key:0},$1={key:1},j1={key:2},A1={key:3},B1={key:4,class:"text-sm"},I1={key:5,class:"text-sm"},V1={key:6,class:"text-sm"},O1={key:7,class:"text-sm"},N1=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),S1={key:9,type:"button",class:"bg-white text-gray-600 p-2 rounded-lg text-sm mt-5 flex px-3 w-fit"},z1=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),H1={class:"flex"},D1={key:0,xmlns:"http://www.w3.org/2000/svg",width:"36",height:"36",viewBox:"0 0 24 24"},L1=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),T1=[L1],W1={key:1,xmlns:"http://www.w3.org/2000/svg",width:"36",height:"36",viewBox:"0 0 512 512"},Y1=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),F1=[Y1],P1={key:0,class:"flex justify-between bg-slate-100 md:bg-white rounded-lg py-4 px-4"},E1={class:"text-sm text-slate-600"},J1=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),q1=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),G1={key:1,class:"bg-slate-100 md:bg-white rounded-lg py-4 px-4"},K1={class:"flex justify-between"},Q1={class:"text-sm"},R1=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),U1={class:"flex justify-between space-x-3"},X1=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),tt={class:"self-end"},et={class:"bg-white rounded-lg py-4 md:px-4"},st={class:"text-sm"},at={key:0,class:"p-5 border-2 border-dashed mt-4"},it={class:"text-sm text-center"},ot={class:"flex justify-center items-center"},lt={key:1,class:"space-y-1"},nt={class:"capitalize"},dt={class:"self-end"},rt={class:"bg-[#ffe5b4] p-1 rounded-md text-xs px-2 capitalize"},ct=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),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},setup(l){const a=l,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:a.period},tooltip:{x:{format:"dd/MM/yy HH:mm"}}},N=[{name:V("Inbound chats"),data:a.inbound},{name:V("Outbound chats"),data:a.outbound}],v=L(!0),S=()=>{var s,u,m;try{v.value=(s=a.organization)!=null&&s.metadata?((m=(u=JSON.parse(a.organization.metadata))==null?void 0:u.notification)==null?void 0:m.team)??!0:!0}catch{v.value=!0}return v.value},z=()=>{F.delete("/dismiss-notification/team",{})};return(s,u)=>{const m=T("apexchart");return i(),g(D,null,{default:n(()=>{var w,x,_,y,k,C,M,Z,$,j,A,B,I;return[t("div",E,[t("div",J,[t("div",null,[t("h2",q,e(s.$t("Dashboard")),1),t("p",G,[t("span",K,e(s.$t("Welcome back"))+", "+e(a.auth.user.first_name)+" 👋",1)])])]),t("div",Q,[h(d(r),{href:"/contacts/add",class:"bg-primary py-2 px-3 rounded-lg text-white"},{default:n(()=>[p(e(s.$t("Add contact")),1)]),_:1}),h(d(r),{href:"/campaigns/create",class:"bg-primary py-2 px-3 rounded-lg text-white"},{default:n(()=>[p(e(s.$t("Create campaign")),1)]),_:1}),h(d(r),{href:"/templates/create",class:"bg-primary py-2 px-3 rounded-lg text-white"},{default:n(()=>[p(e(s.$t("Create template")),1)]),_:1})]),t("div",R,[t("div",U,[t("div",X,[t("div",null,[t("h2",null,e(s.$t("Contacts")),1),t("h2",t1,e(a.contactCount),1)]),e1]),t("div",s1,[h(d(r),{href:"/contacts",class:"flex items-center space-x-1 underline"},{default:n(()=>[t("span",null,e(s.$t("View contacts")),1),a1]),_:1})])]),t("div",i1,[t("div",o1,[t("div",null,[t("h2",null,e(s.$t("Campaigns")),1),t("h2",l1,e(a.campaignCount),1)]),n1]),t("div",d1,[h(d(r),{href:"/campaigns",class:"flex items-center space-x-1 underline"},{default:n(()=>[t("span",null,e(s.$t("View campaigns")),1),r1]),_:1})])]),t("div",c1,[t("div",h1,[t("div",null,[t("h2",null,e(s.$t("Templates")),1),t("h2",p1,e(a.templateCount),1)]),u1]),t("div",m1,[h(d(r),{href:"/templates",class:"flex items-center space-x-1 underline"},{default:n(()=>[t("span",null,e(s.$t("View templates")),1),g1]),_:1})])]),t("div",v1,[t("div",w1,[t("div",null,[t("h2",null,e(s.$t("All chats")),1),t("h2",f1,e(a.chatCount),1)]),b1]),t("div",x1,[h(d(r),{href:"/contacts",class:"flex items-center space-x-1 underline"},{default:n(()=>[t("span",null,e(s.$t("View chats")),1),_1]),_:1})])])]),t("div",y1,[t("div",k1,[t("div",C1,[h(m,{type:"area",height:"350",options:O,series:N})])]),t("div",M1,[t("div",{class:b(["flex justify-between rounded-lg py-4 px-4",l.subscriptionIsActive?"bg-slate-100 md:bg-white":"bg-red-500 text-white"])},[t("div",null,[((w=a.subscription)==null?void 0:w.status)==="trial"&&!l.subscriptionIsActive?(i(),o("h2",Z1,e(s.$t("Your trial period is over")),1)):c("",!0),((x=a.subscription)==null?void 0:x.status)==="active"&&!l.subscriptionIsActive?(i(),o("h2",$1,e(s.$t("We were unable to autorenew your subscription")),1)):c("",!0),((_=a.subscription)==null?void 0:_.status)==="active"&&l.subscriptionIsActive?(i(),o("h2",j1,e(s.$t("Active subscription")),1)):c("",!0),((y=a.subscription)==null?void 0:y.status)==="trial"&&l.subscriptionIsActive?(i(),o("h2",A1,e(s.$t("Trial period")),1)):c("",!0),((k=a.subscription)==null?void 0:k.status)==="trial"&&!l.subscriptionIsActive?(i(),o("p",B1,e(s.$t("Please subscribe to a plan to continue using the app")),1)):c("",!0),((C=a.subscription)==null?void 0:C.status)==="active"&&!l.subscriptionIsActive?(i(),o("p",I1,e(s.$t("To continue using the app, please make a payment of"))+" "+e((M=a.subscriptionDetails)==null?void 0:M.accountBalance)+".",1)):c("",!0),((Z=a.subscription)==null?void 0:Z.status)==="trial"&&l.subscriptionIsActive?(i(),o("p",V1,e(s.$t("Your trial period expires on"))+" "+e(($=a.subscription)==null?void 0:$.valid_until),1)):c("",!0),((j=a.subscription)==null?void 0:j.status)==="active"&&l.subscriptionIsActive?(i(),o("p",O1,e(s.$t("Your subscription expires on"))+" "+e((A=a.subscription)==null?void 0:A.valid_until),1)):c("",!0),a.auth.user.teams[0].role==="owner"&&((B=a.subscription)==null?void 0:B.status)==="trial"?(i(),g(d(r),{key:8,href:"/subscription",class:b(["p-2 rounded-lg text-sm mt-5 flex px-3 w-fit",l.subscriptionIsActive?"bg-primary text-white":"bg-white text-gray-600"])},{default:n(()=>[p(e(s.$t("Subscribe"))+" ",1),N1]),_:1},8,["class"])):c("",!0),a.auth.user.teams[0].role==="owner"&&((I=a.subscription)==null?void 0:I.status)==="active"&&!l.subscriptionIsActive?(i(),o("button",S1,[p(e(s.$t("Add payment"))+" ",1),z1])):c("",!0)]),t("div",H1,[t("span",{class:b(["h-16 w-16 p-3 flex justify-center items-center rounded-full self-start",l.subscriptionIsActive?"bg-primary text-white":"bg-white text-red-500"])},[l.subscriptionIsActive?(i(),o("svg",D1,T1)):(i(),o("svg",W1,F1))],2)])],2),a.auth.user.teams[0].role==="owner"&&a.setupWhatsapp===!0?(i(),o("div",P1,[t("div",null,[t("h2",null,e(s.$t("Setup whatsapp")),1),t("p",E1,e(s.$t("Setup your whatsapp API to start using your instance")),1),l.embeddedSignupActive==1?(i(),g(P,{key:0,appId:a.appId,configId:a.configId},null,8,["appId","configId"])):(i(),g(d(r),{key:1,href:"/settings/whatsapp",class:"bg-primary text-white p-2 rounded-lg text-sm mt-5 flex px-3 w-fit"},{default:n(()=>[p(e(s.$t("Setup whatsapp"))+" ",1),J1]),_:1}))]),q1])):c("",!0),a.auth.user.teams[0].role==="owner"&&S()===!0?(i(),o("div",G1,[t("div",K1,[t("div",null,[t("h2",null,e(s.$t("Setup team")),1),t("p",Q1,e(s.$t("Add other people to your team")),1)]),R1]),t("div",U1,[h(d(r),{href:"team",class:"bg-[#ffe5b4] p-2 rounded-lg text-sm flex px-3 capitalize"},{default:n(()=>[p(e(s.$t("Add users"))+" ",1),X1]),_:1}),t("div",tt,[t("span",{onClick:u[0]||(u[0]=f=>z()),class:"text-sm underline cursor-pointer"},e(s.$t("Dismiss notification")),1)])])])):c("",!0),t("div",et,[t("div",null,[t("h2",null,e(s.$t("Campaigns")),1),t("p",st,e(s.$t("Below are your outgoing or scheduled campaigns")),1),a.campaigns.length===0?(i(),o("div",at,[t("p",it,e(s.$t("You do not have any outgoing or scheduled campaigns")),1),t("div",ot,[h(d(r),{href:"/campaigns/create",class:"bg-primary text-white p-2 rounded-lg text-sm mt-5 flex px-3 w-fit"},{default:n(()=>[p(e(s.$t("Create campaign")),1)]),_:1})])])):(i(),o("div",lt,[(i(!0),o(W,null,Y(a.campaigns,(f,H)=>(i(),o("div",{key:H,class:"mt-4 border-l-4 bg-gray-50 flex justify-between p-2 text-sm"},[t("div",nt,e(f.name),1),t("div",dt,[t("span",rt,e(f.status),1)])]))),128)),h(d(r),{href:"/campaigns",class:"flex items-center space-x-1 underline pt-3 text-sm"},{default:n(()=>[ct,t("span",null,e(s.$t("View more campaigns")),1)]),_:1})]))])])])])])]}),_:1})}}};export{Ct as default};