1(function(){try{var e=typeof window<`u`?window:typeof global<`u`?global:typeof globalThis<`u`?globalThis:typeof self<`u`?self:{};e.SENTRY_RELEASE={id:`release-202609241050`};var t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]=`a5a03012-9a7b-4d65-9706-f2686a411534`,e._sentryDebugIdIdentifier=`sentry-dbid-a5a03012-9a7b-4d65-9706-f2686a411534`)}catch{}})();import{A as e,C as t,Et as n,F as r,I as i,It as a,K as o,M as s,Mt as c,Nt as l,O as u,Ot as d,P as f,R as p,S as m,Y as h,b as g,c as _,d as v,et as y,gt as b,ht as x,it as S,j as C,k as w,kt as T,ot as E,pt as D,s as O,st as k,w as A}from"./vendor-vue-core-B0avW4A6.js";import{$ as j,Gt as M,Ht as N,I as P,Jt as F,Mt as ee,Nt as I,v as L}from"./utils-01hI5-7X.js";import{I as R,P as z,ot as B,r as V,t as H}from"./user-1VcPMvca.js";import{t as U}from"./toast-nz9AHFzD.js";import{t as W}from"./conversation-shwc8LpF.js";import{M as te,b as G}from"./vendor-ui-CFT4XuI7.js";import{t as K}from"./plans-CYsPc6Y7.js";import{t as q}from"./_plugin-vue_export-helper-CwAtdVh-.js";import{t as J}from"./useResize-CGTxESxd.js";import{t as ne}from"./useSupportWidget-DRBupzns.js";import"./bot-BiWyXzR7.js";import{t as Y}from"./Tooltip-45hSZU0i.js";import"./logo-CE6xtivX.js";import{t as X}from"./Loader-ChJ3YuZD.js";import"./neutral-check-with-bg-vN987RSe.js";import"./whatsapp-colored-BkMRxTuj.js";import"./colored-messenger-N7CLdokG.js";import"./colored-instagram-TiqGrWTp.js";import"./black-crown-CpumgcEp.js";import{t as Z}from"./Modal-DoJ-W2T1.js";import{t as re}from"./AddNewCard-CiG6dSoP.js";import"./ai-bot-C1Y5bLxP.js";import"./plain-crown-Bfuxtexx.js";import"./empty-search-alt-B9EWxRm0.js";import{t as ie}from"./ShopifyEmptyState-Bc2jS5vF.js";import{t as ae}from"./useAICreditAutoRenewInModal-DiIPhxjy.js";function Q(e){let t=document.querySelectorAll(`.label-text`);if(!e){let e=document.querySelectorAll(`h3.title`);for(let t of e)if(t.textContent?.trim())return t;return null}let n=[e.toLowerCase().trim()];e.toLowerCase().includes(`add widget`)&&n.push(`new widget`);for(let e of t){if(!e.textContent||e.offsetParent===null)continue;let t=e.textContent.toLowerCase().trim();if(n.some(e=>t.includes(e)||t===e))return e}return null}function $(e){let t=document.querySelector(`.builder-wrap`);if(!t){console.warn(`Scrollable container not found`);return}let n=t.getBoundingClientRect(),r=e.getBoundingClientRect(),i=r.top-n.top+t.scrollTop-n.height/2+r.height/2;t.scrollTo({top:Math.max(0,i),behavior:`smooth`})}var oe=[`onKeydown`],se={class:`flex items-center`},ce={class:`w-8 h-8 rounded-lg bg-white border border-grey300 flex justify-center items-center relative z-1 overflow-hidden`},le={class:`w-8 h-8 rounded-lg bg-white border border-grey300 flex justify-center items-center relative z-4 -ml-3 overflow-hidden`},ue=p({__name:`IntegrateChatway`,props:{variant:{default:`chat-list`}},setup(e){let n=_(),r=()=>n.push({name:`settings-integration-view`});return(e,n)=>{let a=E(`CwIcon`);return y(),s(`div`,{role:`button`,tabindex:`0`,class:l([`flex items-center cursor-pointer transition-colors justify-center gap-3 px-4 py-2 mx-4 my-4 rounded-xl`,e.variant===`empty-state`?`bg-grey100 shadow-sm hover:bg-grey200`:`bg-white border border-grey200 hover:bg-grey100`]),onClick:r,onKeydown:[m(r,[`enter`]),m(t(r,[`prevent`]),[`space`])]},[n[8]||=w(`span`,{class:`text-sm font-bold text-gray-900`},`Integrate with`,-1),w(`div`,se,[i(Y,{triggers:[`hover`],placement:`top`},{content:x(()=>n[0]||=[w(`div`,{class:`px-3 py-1.5 bg-white rounded-lg shadow-md text-sm text-grey900 whitespace-nowrap`},`Email Integration`,-1)]),default:x(()=>[w(`div`,ce,[i(a,{name:`email-fill`,class:`w-5 h-5 object-contain text-grey600`,"aria-label":`Email`})])]),_:1}),i(Y,{triggers:[`hover`],placement:`top`},{content:x(()=>n[1]||=[w(`div`,{class:`px-3 py-1.5 bg-white rounded-lg shadow-md text-sm text-grey900 whitespace-nowrap`},`Facebook Messenger Integration`,-1)]),default:x(()=>[n[2]||=w(`div`,{class:`w-8 h-8 rounded-lg bg-white border border-grey300 flex justify-center items-center relative z-2 -ml-3 overflow-hidden`},[w(`img`,{src:`data:image/svg+xml,%3csvg%20width='48'%20height='48'%20viewBox='0%200%2048%2048'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3crect%20width='48'%20height='48'%20rx='9.6'%20fill='white'/%3e%3crect%20x='0.6'%20y='0.6'%20width='46.8'%20height='46.8'%20rx='9'%20stroke='%23CFCFD3'%20stroke-opacity='0.5'%20stroke-width='1.2'/%3e%3cg%20clip-path='url(%23clip0_22002_196458)'%3e%3cpath%20d='M24.0029%207.19897C14.5403%207.19897%207.20293%2014.1332%207.20293%2023.495C7.20293%2028.3922%209.21053%2032.6258%2012.4781%2035.549C12.7511%2035.7926%2012.9191%2036.137%2012.9275%2036.5066L13.0199%2039.497C13.0267%2039.717%2013.0873%2039.932%2013.1966%2040.1231C13.3059%2040.3142%2013.4604%2040.4755%2013.6467%2040.5929C13.8329%2040.7103%2014.0451%2040.7801%2014.2646%2040.7963C14.4842%2040.8124%2014.7043%2040.7744%2014.9057%2040.6856L18.2405%2039.2156C18.5219%2039.0896%2018.8411%2039.0686%2019.1393
1%2039.1484C20.6723%2039.5684%2022.3019%2039.7952%2024.0029%2039.7952C33.4655%2039.7952%2040.8029%2032.861%2040.8029%2023.4992C40.8029%2014.1374%2033.4655%207.19897%2024.0029%207.19897Z'%20fill='%230365FE'/%3e%3cpath%20d='M13.9114%2028.2616L18.8464%2020.4328C19.032%2020.138%2019.2768%2019.885%2019.5652%2019.6896C19.8535%2019.4942%2020.1793%2019.3607%2020.5219%2019.2975C20.8644%2019.2344%2021.2164%2019.243%2021.5555%2019.3227C21.8946%2019.4024%2022.2135%2019.5516%2022.492%2019.7608L26.419%2022.705C26.5943%2022.8362%2026.8076%2022.9068%2027.0266%2022.906C27.2456%2022.9053%2027.4584%2022.8332%2027.6328%2022.7008L32.9332%2018.6772C33.6388%2018.1396%2034.5628%2018.988%2034.0924%2019.7398L29.1532%2027.5644C28.9675%2027.8591%2028.7228%2028.1122%2028.4344%2028.3076C28.146%2028.503%2027.8203%2028.6364%2027.4777%2028.6996C27.1351%2028.7627%2026.7832%2028.7542%2026.4441%2028.6744C26.105%2028.5947%2025.7861%2028.4456%2025.5076%2028.2364L21.5806%2025.2922C21.4053%2025.1609%2021.192%2025.0903%2020.973%2025.0911C20.754%2025.0918%2020.5412%2025.1639%2020.3668%2025.2964L15.0664%2029.32C14.3608%2029.8576%2013.4368%2029.0134%2013.9114%2028.2616Z'%20fill='white'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_22002_196458'%3e%3crect%20width='33.6'%20height='33.6'%20fill='white'%20transform='translate(7.20312%207.19922)'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e`,alt:`Messenger`,class:`w-5 h-5 object-contain`})],-1)]),_:1}),i(Y,{triggers:[`hover`],placement:`top`},{content:x(()=>n[3]||=[w(`div`,{class:`px-3 py-1.5 bg-white rounded-lg shadow-md text-sm text-grey900 whitespace-nowrap`},`Instagram Integration`,-1)]),default:x(()=>[n[4]||=w(`div`,{class:`w-8 h-8 rounded-lg bg-white border border-grey300 flex justify-center items-center relative z-3 -ml-3 overflow-hidden`},[w(`img`,{src:`/assets/colored-instagram-_pG_BzqC.svg`,alt:`Instagram`,class:`w-5 h-5 object-contain`})],-1)]),_:1}),i(Y,{triggers:[`hover`],placement:`top`},{content:x(()=>n[5]||=[w(`div`,{class:`px-3 py-1.5 bg-white rounded-lg shadow-md text-sm text-grey900 whitespace-nowrap`},`Mailchimp Integration`,-1)]),default:x(()=>[w(`div`,le,[i(a,{name:`mailchimp-simple`,class:`w-5 h-5 object-contain text-[black]`,"aria-label":`Mailchimp`})])]),_:1}),i(Y,{triggers:[`hover`],placement:`top`},{content:x(()=>n[6]||=[w(`div`,{class:`px-3 py-1.5 bg-white rounded-lg shadow-md text-sm text-grey900 whitespace-nowrap`},`WhatsApp Business Integration`,-1)]),default:x(()=>[n[7]||=w(`div`,{class:`w-8 h-8 rounded-lg bg-white border border-grey300 flex justify-center items-center relative z-4 -ml-3 overflow-hidden`},[w(`img`,{src:`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='18'%20height='18'%20viewBox='0%200%2018%2018'%20fill='none'%3e%3cg%20filter='url(%23filter0_f_41557_220360)'%3e%3cpath%20d='M5.14336%2014.1525L5.38353%2014.2945C6.39225%2014.892%207.54885%2015.2081%208.72832%2015.2086H8.7308C12.3529%2015.2086%2015.3008%2012.2671%2015.3023%208.65166C15.3029%206.89966%2014.62%205.25213%2013.3793%204.01281C12.7708%203.40161%2012.0468%202.91696%2011.2493%202.5869C10.4518%202.25684%209.59669%202.08793%208.73338%202.08996C5.10843%202.08996%202.16049%205.03119%202.1592%208.64641C2.15741%209.8809%202.50571%2011.0907%203.16384%2012.1359L3.32019%2012.3839L2.6562%2014.8033L5.14336%2014.1525ZM0.757812%2016.6777L1.87959%2012.5898C1.18776%2011.3935%200.823793%2010.0363%200.824223%208.64587C0.82605%204.29607%204.37265%200.757324%208.7309%200.757324C10.8458%200.758397%2012.8309%201.57986%2014.3239%203.07101C15.8168%204.56217%2016.6382%206.54422%2016.6375%208.6522C16.6355%2013.0017%2013.0884%2016.5411%208.7308%2016.5411H8.72736C7.4042%2016.5405%206.10405%2016.2092%204.94918%2015.5807L0.757812%2016.6777Z'%20fill='%23B3B3B3'/%3e%3c/g%3e%3cpath%20d='M0.671875%2016.5981L1.79365%2012.5102C1.10063%2011.311%200.736611%209.95066%200.738285%208.56628C0.740112%204.21648%204.28672%200.677734%208.64497%200.677734C10.7599%200.678807%2012.745%201.50027%2014.2379%202.99142C15.7309%204.48258%2016.5523%206.46463%2016.5515%208.57261C16.5496%2012.9221%2013.0025%2016.4615%208.64486%2016.4615H8.64142C7.31827%2016.4609%206.01811%2016.1296%204.86324%2015.5011L0.
1671875%2016.5981Z'%20fill='white'/%3e%3cpath%20d='M8.6445%202.0093C5.01955%202.0093%202.07161%204.95053%202.07032%208.56574C2.06853%209.80024%202.41684%2011.01%203.07496%2012.0553L3.23132%2012.3033L2.56732%2014.7228L5.05459%2014.0719L5.29476%2014.2139C6.30349%2014.8114%207.46008%2015.1273%208.63955%2015.128H8.64203C12.2642%2015.128%2015.2121%2012.1864%2015.2135%208.571C15.2163%207.70928%2015.0477%206.85557%2014.7176%206.0593C14.3875%205.26304%2013.9025%204.54004%2013.2905%203.93215C12.682%203.32094%2011.958%202.83627%2011.1605%202.50621C10.363%202.17615%209.50783%202.00726%208.6445%202.0093Z'%20fill='url(%23paint0_linear_41557_220360)'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M6.67434%205.26761C6.52626%204.93931%206.37044%204.93266%206.22977%204.92698L5.85109%204.92236C5.71934%204.92236%205.50528%204.9717%205.32432%205.16905C5.14335%205.3664%204.63281%205.84336%204.63281%206.81347C4.63281%207.78358%205.34076%208.72098%205.43941%208.85269C5.53805%208.9844%206.80608%2011.0386%208.81418%2011.829C10.4829%2012.4858%2010.8225%2012.3552%2011.1849%2012.3224C11.5472%2012.2895%2012.3537%2011.8454%2012.5182%2011.385C12.6827%2010.9245%2012.6828%2010.53%2012.6335%2010.4476C12.5842%2010.3651%2012.4525%2010.3161%2012.2547%2010.2174C12.057%2010.1187%2011.0859%209.64176%2010.9048%209.57591C10.7237%209.51005%2010.5921%209.47734%2010.4603%209.67469C10.3284%209.87204%209.95025%2010.316%209.83494%2010.4476C9.71964%2010.5792%209.60455%2010.5957%209.40682%2010.4971C9.2091%2010.3985%208.57294%2010.1903%207.81814%209.51853C7.23087%208.99588%206.83445%208.35042%206.71904%208.15318C6.60363%207.95594%206.70679%207.84912%206.80587%207.75087C6.89452%207.66249%207.00338%207.5206%207.10235%207.40551C7.20132%207.29043%207.23388%207.20816%207.29964%207.07678C7.36541%206.94539%207.33263%206.82999%207.2832%206.73142C7.23377%206.63285%206.84992%205.65759%206.67434%205.26761Z'%20fill='white'/%3e%3cdefs%3e%3cfilter%20id='filter0_f_41557_220360'%20x='0.000383377'%20y='-0.000104904'%20width='17.3977'%20height='17.4353'%20filterUnits='userSpaceOnUse'%20color-interpolation-filters='sRGB'%3e%3cfeFlood%20flood-opacity='0'%20result='BackgroundImageFix'/%3e%3cfeBlend%20mode='normal'%20in='SourceGraphic'%20in2='BackgroundImageFix'%20result='shape'/%3e%3cfeGaussianBlur%20stdDeviation='0.378715'%20result='effect1_foregroundBlur_41557_220360'/%3e%3c/filter%3e%3clinearGradient%20id='paint0_linear_41557_220360'%20x1='8.50813'%20y1='2.79654'%20x2='8.5745'%20y2='14.0073'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%2357D163'/%3e%3cstop%20offset='1'%20stop-color='%2323B33A'/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e`,alt:`WhatsApp`,class:`w-5 h-5 object-contain`})],-1)]),_:1}),i(a,{name:`chevron-right`,class:`ml-4 text-grey900`})])],42,oe)}}}),de=`data:image/svg+xml,%3csvg%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M15%2010.8333V15.8333C15%2016.2754%2014.8244%2016.6993%2014.5118%2017.0118C14.1993%2017.3244%2013.7754%2017.5%2013.3333%2017.5H4.16667C3.72464%2017.5%203.30072%2017.3244%202.98816%2017.0118C2.67559%2016.6993%202.5%2016.2754%202.5%2015.8333V6.66667C2.5%206.22464%202.67559%205.80072%202.98816%205.48816C3.30072%205.17559%203.72464%205%204.16667%205H9.16667'%20stroke='%23282D3E'%20stroke-width='1.25'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M12.5%202.5H17.5V7.5'%20stroke='%23282D3E'%20stroke-width='1.25'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M8.33325%2011.6667L17.4999%202.5'%20stroke='%23374151'%20stroke-width='1.25'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e`,fe={class:`logo mt-0 sm:mt-8`},pe=[`src`],me={key:0},he={key:0,class:`flex justify-center mt-7 text-left`},ge={key:1,class:`installation-code--wrap max-w-172.75`},_e={class:`text-center`},ve=[`href`],ye={key:1,class:`w-full mx-auto`},be={key:0},xe={key:0,class:`flex justify-center mt-7 text-left`},Se={key:1,class:`w-full`},Ce={class:`installation-code--wrap max-w-153.75 md:min-w-153.75 mx-auto px-0 sm:px-6`},we={class:`flex flex-col justify-center`},Te={key:0,class:`w-[21.44rem] text-grey900! text-sm! text-center!`},Ee={class:`mt-4 flex items-center border border-grey200 rounded-lg px-4 py-[0.8225rem] w-full bg-white focus-within:border-primary transition-colors h-11.5`},De={key:0,class:`flex flex-col items-center justify-center py-6 text-center`},Oe={class:`text-sm text-grey900 m-0 font-medium`},ke=[`onClick`],Ae=[`src`,`alt`],je={class:`flex items-center gap-1 text-sm text-grey700`},Me={key:0},Ne={key:1},Pe={key:3,class:`w-full flex justify-center`},Fe={class:`text-xs! md:text-sm! text-grey700!`},Ie={src:de,alt:``},Le={key:1,class:`w-full`},Re={class:`rounded-lg bg-grey100 p-3`},ze={key:0},Be={key:1},Ve={key:2,class:`w-full flex justify-center`}
1,He={class:`rounded-lg bg-grey200 sm:bg-grey100 p-3 w-full`},Ue={class:`text-xs! md:text-sm! text-grey900! md:text-grey700! font-semibold! md:font-normal!`},We=[`href`],Ge=[`href`],Ke={class:`flex items-center justify-center text-sm text-grey600 leading-lh400 mt-6`},qe=q(p({__name:`EmptyInstallationCode`,setup(e){let o=H(),f=V(),p=O(),{width:m,height:h}=te(),{openSupportWidget:_}=ne(),v=d({...I}),T=d(6),M=d(``),N=n(F),R=u(()=>M.value.trim()?N.filter(e=>e.name.trim().toLowerCase().includes(M.value.trim().toLowerCase())):N),z=u(()=>{let e=o.user;return P(e?.attributes.team_id)}),B=u(()=>o.marketPlaceName),W=u(()=>o.marketPlaceUrl||ae.value),G=u(()=>o.isTrialContainerVisible||o.hasFailedPayment),K=u(()=>f.uiFlags.isInstallationLoading&&p.name!==`visitors`),q=u(()=>o.uiFlags.isFetchingEmbeddedStatus),J=u(()=>o.shouldDisplayShopifyInstructionOnChatway||o.allShopifyWithEmbeddedStatus.some(e=>!e.attributes.is_embedded_app_enabled&&e.url)),Y=u(()=>o.isMarketPlace||re.value),X=u(()=>m.value<604),Z=u(()=>f.allInstallationPlatform.find(e=>ee.includes(e.attributes.channel)&&e.attributes.url)??null),re=u(()=>Z.value!==null),ae=u(()=>{let e=Z.value?.attributes?.url;return e?/^https?:\/\//i.test(e)?e:`https://${e}`:null}),Q=e=>{v.value=e},$=()=>{try{navigator.clipboard.writeText(z.value),U().set({message:`Code copied successfully`,type:`success`})}catch(e){console.error(e)}},oe=()=>{window.open(`/simulation`,`_blank`)},se=()=>{o.showShopifyCompleteSetupModal=!0,o.ignoreConversationCheck=!0};return D(M,e=>{e.trim().length>0&&v.value.name&&(v.value={...I})}),(e,n)=>{let u=E(`CwIcon`),d=E(`VDropdown`),f=k(`svg-inline`);return y(),s(`div`,{class:l([`installation-settings flex items-center flex-col p-1 pb-50 pt-8 md:pt-1 sm:pb-1 px-4 sm:px-10`,[{"overflow-y-auto pb-25":c(h)<698&&Y.value&&J.value}]])},[w(`div`,fe,[w(`img`,{src:`${c(L)}images/logo-text.svg`,alt:`logo`},null,8,pe)]),Y.value?(y(),s(`div`,me,[w(`div`,null,[J.value&&!c(j)()&&!c(o).isLoadedOnDudaDashboard?(y(),s(`div`,he,[i(ie)])):C(``,!0),W.value&&!J.value?(y(),s(`div`,ge,[w(`p`,_e,` Your visitors can now contact you through Chatway's live chat. Go to your `+a(B.value===`shopify`||B.value===`bigcommerce`||B.value===`ecwid`?`store`:B.value===`bigcartel`?`shop`:`website`)+` to start a test conversation. `,1),w(`a`,{href:W.value,class:`copy-button visit-button`,target:`_blank`},[i(u,{name:`external-link`}),r(` Go to `+a(B.value===`shopify`||B.value===`bigcommerce`||B.value===`ecwid`||B.value===`nuvemshop`||B.value===`tiendanube`?`Store`:B.value===`bigcartel`?`Shop`:`Website`),1)],8,ve)])):C(``,!0)])])):C(``,!0),!Y.value&&!c(o).user?.attributes.has_conversations?(y(),s(`div`,ye,[!K.value&&!q.value?(y(),s(`div`,be,[J.value?(y(),s(`div`,xe,[i(ie)])):(y(),s(`div`,Se,[w(`div`,Ce,[w(`div`,{class:l([{"h-[calc(100vh-230px)]":X.value&&v.value.name===`Any Website`,"h-[calc(100vh-295px)]":X.value&&v.value.name===`Any Website`&&G.value,"h-full!":X.value&&v.value.name===`Any Website`&&c(h)<668,"overflow-y-auto":X.value&&v.value.name===`Any Website`}])},[w(`h5`,{class:l([{"text-sm! text-grey900! font-normal!":X.value}])},`Install Chatway on Your Website`,2),w(`div`,we,[w(`p`,{class:l([[{"text-sm! font-normal! mb-1!":X.value}],`text-grey900! text-base! text-center! leading-lh400`])},`Choose your platform to get started`,2),X.value?(y(),s(`p`,Te,`We recommend using a larger screen during installation process.`)):C(``,!0)]),w(`div`,Ee,[i(u,{name:`search`,class:`text-grey400 w-5 h-5 mr-2`,"aria-hidden":`true`}),b(w(`input`,{"aria-label":`Search platform`,"onUpdate:modelValue":n[0]||=e=>M.value=e,type:`text`,placeholder:`Search platform..`,maxlength:`50`,class:`flex-1 outline-hidden text-sm bg-transparent border-none p-0 text-grey900 placeholder:text-grey600`},null,512),[[g,M.value]])]),R.value.length===0?(y(),s(`div`,De,[n[3]||=w(`img`,{src:`/assets/empty-search-alt-CsstSKi3.svg`,alt:`no results`,class:`w-12 h-12 mb-3`},null,-1),w(`p`,Oe,`No results found for "`+a(M.value)+`"`,1),n[4]||=w(`p`,{class:`text-sm text-grey600 mt-1 mb-0 text-center`},`Please check spelling or try different keywords.`,-1)])):(y(),s(`div`,{key:1,class:l([`grid gap-x-3 gap-y-2 my-4 max-h-30 overflow-y-auto`,[X.value?`grid-cols-2 pr-1`:`grid-cols-3`]])},[(y(!0),s(A,null,S(R.value.slice(0,T.value),e=>(y(),s(`div`,{key:e.name,class:`w-full`},[w(`button`,{type:`button`,class:l([`${v.value.name===e.name?`border-primary bg-main100`:`border-grey200`}`,`border h-9 w-full rounded-lg py-2 px-3 flex flex-row items-center gap-2 cursor-pointer hover:border-primary focus-visible:border-primary hover:bg-main100 focus-visible:bg-main100 focus-visible:outline-0`]),onClick:t=>Q(e)},[w(`span`,{class:l([`rounded bg-grey100 w-5 h-5 flex items-center justify-center shrink-0`,[v.value.name===e.name?`bg-primary/20`:``]])},[w(`img`,{src:v.value.name===e.name?e.selectedLogo:e.logo,alt:e.name,class:`w-4 h-4 object-contain`,loading:`lazy`},null,8,Ae)],2),w(`span`,{class:l([`text-sm leading-5! text-center whitespace-nowrap`,`${v.value.name===e.name?`text-primary!`:`text-grey700!`}`])},a(e.name),3)],10,ke)]))),128))],2)),R.value.length>6?(y(),s(`button`,{key:2,onClick:n[1]||=e=>T.value===6?T.value=R.value.length:T.value=6,class:`py-2 w-full rounded-lg border border-grey200 flex items-center justify-center mt-3 my-4`},[w(`span`,je,[T.value===6?(y(),s(`span`,Me,[i(u,{name:`plus`,class:`text-grey700`,"aria-label":`more`})])):(y(),s(`span`,Ne,[i(u,{name:`minus-base`,"stroke-width":`1`,class:`text-grey700 h-4 w-4`,"aria-label":`less`})])),r(` Show `+a(T.value===6?`more platforms`:`less`),1)])])):C(``,!0),v.value.name===`Any Website`?(y(),s(`div`,Pe,[w(`div`,null,[w(`div`,{class:l([`rounded-lg bg-grey100 border border-grey200 w-full mb-4`,[{"bg-[rgba(230,230,240,0.5)]!":X.value}]])},[n[5]||=w(`p`,{class:`text-xs! text-grey900! md:text-grey700! md:text-base! font-semibold! border-b border-b-grey200 px-4 py-2`},`Paste the script in every page above the </head>`,-1),w(`code`,Fe,a(`${z.value}`),1)],2)])])):C(``,!0)],2),v.value.name===`Any Website`?(y(),s(`div`,{key:0,class:l([`w-full flex justify-center gap-4`,{"fixed bottom-20.5 left-0 px-5 bg-white pb-4 pt-2 z-10":X.value}])},[i(d,{triggers:[`hover`],placement:`top`,class:`w-full`},{popper:x(()=>n[7]||=[w(`div`,{class:`p-3 w-72`},[w(`span`,null,`Try the Chatway live chat widget before installing it. Send yourself a test message to see it in action just like a visitor would.`)],-1)]),default:x(()=>[w(`button`,{class:`try-simulation flex flex-row justify-center items-center gap-1 w-full h-8 rounded-sm font-normal text-xs sm:text-sm text-grey900 bg-grey100 mt-2.5 px-3 py-5`,onClick:t(oe,[`prevent`])},[n[6]||=r(` Try Simulation `),b(w(`img`,Ie,null,512),[[f]])])]),_:1}),w(`button`,{class:`copy-button`,onClick:$},[i(u,{name:`copy`,class:`text-white`}),n[8]||=w(`span`,{class:`text-white text-xs sm:text-sm`},`Copy Script`,-1)])],2)):C(``,!0),v.value.name===`Shopify`?(y(),s(`div`,Le,[w(`div`,Re,[n[10]||=w(`p`,{class:`text-xs! md:text-sm! text-grey900! md:text-grey700! font-semibold! md:font-normal!`},[r(` Install on Shopify `),w(`a`,{target:`_blank`,href:`https://chatway.app/help/getting-started/how-to-install-chatway-on-shopify/`}
1,[w(`span`,{class:`text-sm text-primary cursor-pointer`},`(Learn More)`)])],-1),J.value?(y(),s(`div`,ze,[w(`button`,{class:`copy-button w-full`,onClick:se},`Complete Shopify Setup`)])):(y(),s(`div`,Be,n[9]||=[w(`a`,{href:`https://apps.shopify.com/chatway?utm_source=chatway_new_store`,target:`_blank`,rel:`noopener noreferrer`},[w(`button`,{class:`copy-button w-full`},`Connect Shopify`)],-1)]))])])):C(``,!0),v.value.name.length&&v.value.name!==`Shopify`&&v.value.name!==`Any Website`?(y(),s(`div`,Ve,[w(`div`,He,[w(`p`,Ue,[r(` Install on `+a(v.value.name)+` `,1),w(`a`,{class:`focus-visible:outline-0 focus-visible:border-b focus-visible:border-primary`,target:`_blank`,href:v.value.learnMore,rel:`noopener noreferrer`},n[11]||=[w(`span`,{class:`text-xs md:text-sm text-primary cursor-pointer`},`(Learn More)`,-1)],8,We)]),v.value.marketPlaceUrl?(y(),s(`a`,{key:0,class:`copy-button w-full focus-visible:outline-1 focus-visible:outline-offset-2 focus-visible:outline-primary`,href:v.value.marketPlaceUrl,target:`_blank`,rel:`noopener noreferrer`},` Connect `+a(v.value.name),9,Ge)):C(``,!0)])])):C(``,!0),w(`div`,Ke,[n[12]||=r(` Need help? `),w(`button`,{type:`button`,onClick:n[2]||=(...e)=>c(_)&&c(_)(...e),class:`text-primary h-auto p-0 text-sm ml-1`},`Contact Support`)])])]))])):C(``,!0)])):C(``,!0)],2)}}}),[[`__scopeId`,`data-v-18ad44ed`]]);function Je(e,t){let n=null,r=0,i=!1,a=null,o=s=>{n||=s,r+=s-n,r>=t&&(e(),r=0),n=s,i&&(a=requestAnimationFrame(o))},s=()=>{i||(i=!0,n=null,a=requestAnimationFrame(o))},c=()=>{i&&(i=!1,cancelAnimationFrame(a))},l=()=>{c(),r=0,n=null,s()},u=()=>{document.hidden?c():s()};return document.addEventListener(`visibilitychange`,u),s(),{start:s,pause:c,reset:l,destroy:()=>{c(),document.removeEventListener(`visibilitychange`,u)}}}function Ye(){let e=_();return{handleFeatureGuideNavigation:async t=>{e.push(t.guide.url);let n=t.guide.url===`design`;await new Promise(e=>setTimeout(e,n?3e3:1e3));let r=Q(t.highlightText||t.title);r&&(document.querySelectorAll(`.search-highlight`).forEach(e=>{e.classList.remove(`search-highlight`,`search-highlight-animation`)}),r.classList.add(`search-highlight`,`search-highlight-animation`),n?o(()=>{$(r)}):r.scrollIntoView({behavior:`smooth`,block:`center`}),setTimeout(()=>{r.classList.remove(`search-highlight`),r.classList.remove(`search-highlight-animation`)},5e3))}}}var Xe=`/assets/powerups-setup-incomplete-BnM9PKel.webp`,Ze=`/assets/powerups-setup-complete-B6LXnXEo.webp`,Qe={class:`max-w-[434px] text-center flex flex-col items-center`},$e={key:0,src:Xe,alt:`Explore Powerups`,width:`120`,height:`120`,loading:`lazy`},et={key:1,src:Ze,alt:`Explore Powerups`,width:`120`,height:`120`,loading:`lazy`},tt={class:`text-lg font-semibold text-grey900 mt-7 mb-0 p-0`},nt={class:`text-grey700 text-sm mt-2 p-0`},rt=p({__name:`ExplorePowerups`,setup(t){let n=R(),i=u(()=>n.isPowerupsCompleteOrSkipped),o=u(()=>i.value?{title:`Everything is up and running â¨`,desc:`Your chat is fully set up. Jump in and start helping your customers.`}:{title:`Get more out of every conversation`,desc:`Complete the remaining steps to save time, capture leads, automate, and handle more conversations effortlessly.`});return h(()=>{i.value&&n.persistHideEmptyStatePowerups()}),(t,n)=>{let c=E(`router-link`);return y(),s(`div`,Qe,[i.value?(y(),s(`img`,et)):(y(),s(`img`,$e)),w(`h2`,tt,a(o.value.title),1),w(`p`,nt,a(o.value.desc),1),i.value?C(``,!0):(y(),e(c,{key:2,to:`/power-ups`,class:`bg-primary hover:bg-primaryDark transition-colors duration-300 text-white text-sm font-normal px-5 h-auto py-2 rounded-lg mt-3 inline-block`},{default:x(()=>n[0]||=[r(`Explore Power-ups â¡`)]),_:1}))])}}}),it={class:`max-w-82.5 -mt-10`},at=[`src`],ot={class:`m-0 py-5 grid gap-y-2`},st={class:`inline-flex items-center gap-2 p-0 m-0`},ct={class:`min-w-5 w-5 h-5 rounded-full bg-grey100 flex items-center justify-center`},lt={class:`inline-flex items-center gap-2 p-0 m-0`},ut={class:`min-w-5 w-5 h-5 rounded-full bg-grey100 flex items-center justify-center`},dt={class:`inline-flex items-start gap-2 p-0 m-0`},ft={class:`min-w-5 w-5 h-5 rounded-full bg-grey100 flex items-center justify-center`},pt={class:`inline-flex items-center gap-2 p-0 m-0`},mt={class:`min-w-5 w-5 h-5 rounded-full bg-grey100 flex items-center justify-center`},ht={class:`text-center`},gt=p({__name:`CreateAIAgent`,setup(e){return(e,t)=>{let n=E(`CwIcon`),a=E(`router-link`);return y(),s(`div`,it,[w(`img`,{src:`${c(L)}images/ai-agent.png`,alt:`Create AIAgent`,width:`339`,height:`262`,loading:`lazy`},null,8,at),t[6]||=w(`div`,{class:`text-center -mt-4`}
1,[w(`span`,{class:`inline-block font-semibold py-1 px-4 rounded-full bg-linear-to-b from-[#F69D01]/15 to-[#F65901]/15`},[w(`span`,{class:`bg-clip-text text-xs text-transparent bg-linear-to-b from-[#F69D01] to-[#F65901]`},`Recommended for Faster Support`)])],-1),t[7]||=w(`h2`,{class:`text-2xl font-semibold text-grey900 mb-0 p-0 text-center mt-2`},`Let AI Handle Your Customer Support 24/7`,-1),w(`ul`,ot,[w(`li`,st,[w(`span`,ct,[i(n,{name:`check`,"stroke-width":`1.995`,class:`text-grey600 w-3 h-3`})]),t[0]||=w(`span`,{class:`text-sm text-grey700`},`Resolve up to 86% support tickets`,-1)]),w(`li`,lt,[w(`span`,ut,[i(n,{name:`check`,"stroke-width":`1.995`,class:`text-grey600 w-3 h-3`})]),t[1]||=w(`span`,{class:`text-sm text-grey700`},`Trained on your website, docs, and FAQs`,-1)]),w(`li`,dt,[w(`span`,ft,[i(n,{name:`check`,"stroke-width":`1.995`,class:`text-grey600 w-3 h-3`})]),t[2]||=w(`span`,{class:`text-sm text-grey700`},`Works across website, WhatsApp, Facebook Messenger, Email & Instagram`,-1)]),w(`li`,pt,[w(`span`,mt,[i(n,{name:`check`,"stroke-width":`1.995`,class:`text-grey600 w-3 h-3`})]),t[3]||=w(`span`,{class:`text-sm text-grey700`},`Automatically supports 50+ languages`,-1)])]),w(`div`,ht,[i(a,{to:{name:`ai-settings`,query:{add_ai_skip_start:`true`}},class:`bg-primary hover:bg-primaryDark transition-colors duration-300 text-white h-auto rounded-lg text-base font-medium px-6 py-3 inline-flex items-center justify-center gap-2`},{default:x(()=>[i(n,{name:`sparkles`,class:`h-6 w-6 shrink-0 text-white`,"aria-label":`sparkles`}),t[4]||=r(` Create My AI Agent `)]),_:1}),t[5]||=w(`p`,{class:`text-xs text-grey700 mt-2`},`10 free credits. Used only when AI resolves chats.`,-1)])])}}}),_t={class:`w-[345px] text-center flex justify-center flex-col items-center -mt-8`},vt={class:`relative`},yt={class:`flex flex-col items-center justify-center gap-6 bg-white rounded-lg p-8 overflow-y-auto`},bt={class:`w-full`},xt={id:`ai-empty-auto-renew-label`,class:`mb-1 block text-sm text-grey600`},St=[`aria-expanded`],Ct={class:`text-positive300`},wt={key:0,class:`absolute bottom-full left-0 z-10 mb-1 max-h-60 w-full overflow-auto rounded-lg border border-grey200 bg-white py-2 shadow-[4px_0px_16px_0px_rgba(43,43,62,0.16)]`,role:`listbox`,"aria-labelledby":`ai-empty-auto-renew-label`},Tt=[`aria-selected`,`onClick`],Et={class:`text-positive300`},Dt={class:`pointer-events-none absolute inset-y-0 right-2 flex items-center px-2 text-grey900`},Ot={class:`w-full text-center`},kt=[`disabled`],At=p({__name:`AIAutoRenew`,setup(t){let n=K(),o=d(!1),u=d(!1),f=d(null),p=()=>{o.value=!1},{isUpdatingAutoRenew:h,showAutoRenewDropdown:g,selectedAutoRenewOption:_,cards:v,selectAutoRenewOption:b,completeAutoRenew:T}=ae({onSuccess:()=>{p(),u.value=!1}}),D=()=>{v.value.length?T():u.value=!0};return G(f,()=>{g.value=!1}),(t,d)=>{let v=E(`CwIcon`);return y(),s(`div`,_t,[d[8]||=w(`img`,{src:`/assets/ai-bot-BjswC54R.svg`,alt:`AI Auto Renew`,width:`240`,height:`225`},null,-1),d[9]||=w(`h2`,{class:`text-lg font-semibold text-grey900 mb-0 p-0 -mt-8`},`Your AI Agent is up and running ð`,-1),d[10]||=w(`p`,{class:`text-sm text-grey700 mb-0 mt-2 p-0`},` Don't let your AI take a break. Activate auto-renewal for uninterrupted support. `,-1),w(`button`,{type:`button`,class:`bg-primary text-white h-auto rounded-lg text-base font-medium px-6 py-3 mt-4`,onClick:d[0]||=e=>o.value=!0},` Enable Auto Renew `),o.value?(y(),e(Z,{key:0,closeModal:!1,onCloseModal:p,classes:`md:w-[550px]! bg-transparent! rounded-lg overflow-hidden`,showFooter:!1,showHeaderClose:!1,backdropClickClose:!1},{default:x(()=>[w(`div`,vt,[w(`div`,yt,[d[6]||=w(`div`,{class:`flex h-35 w-35 shrink-0 items-center justify-center rounded-full bg-[linear-gradient(310deg,rgba(56,120,255,0.10)_14.53%,rgba(56,120,255,0.02)_86.22%)]`},[w(`img`,{src:`data:image/svg+xml,%3csvg%20width='72'%20height='73'%20viewBox='0%200%2072%2073'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M38.291%2012.8545L36.7741%2014.0333C35.0584%2015.3666%2034.4679%2017.6951%2035.341%2019.6849V19.6849'%20stroke='%23003396'%20stroke-width='1.30909'/%3e%3crect%20x='13.0918'%20y='19.2363'%20width='45.8182'%20height='45.8182'%20rx='14.4'%20fill='%230446DE'/%3e%3crect%20x='17.6719'%20y='25.7822'%20width='36.6545'%20height='34.6909'%20rx='9.81818'%20fill='%23002B80'/%3e%3crect%20x='20.291'%20y='25.7822'%20width='31.4182'%20height='31.4182'%20rx='8.78584'%20fill='white'/%3e%3cpath%20d='M41.0126%2047.3818C41.4978%2047.3818%2041.8979%2047.7774%2041.8258%2048.2572C41.6397%2049.4956%2041.0621%2050.651%2040.1658%2051.5473C39.061%2052.6521%2037.5626%2053.2727%2036.0003%2053.2727C34.4379%2053.2727%2032.9395%2052.6521%2031.8348%2051.5473C30.9385%2050.651%2030.3608%2049.4956%2030.1748%2048.2572C30.1027%2047.7774%2030.5027%2047.3818%2030.988%2047.3818L36.0003%2047.3818H41.0126Z'%20fill='%230446DE'/%3e%3cellipse%20cx='26.8369'%20cy='40.8362'%20rx='2.61818'%20ry='3.27273'%20fill='%230446DE'/%3e%3cellipse%20cx='45.1631'%20cy='40.8362'%20rx='2.61818'%20ry='3.27273'%20fill='%230446DE'/%3e%3ccircle%20cx='42.2188'%20cy='10.7276'%20r='5.23636'%20fill='%230446DE'/%3e%3cpath%20d='M9.81836%2037.2366C9.81836%2035.4291%2011.2836%2033.9639%2013.0911%2033.9639V33.9639V49.673V49.673C11.2836%2049.673%209.81836%2048.2077%209.81836%2046.4002V37.2366Z'%20fill='%23002B80'/%3e%3cpath%20d='M62.1816%2037.2366C62.1816%2035.4291%2060.7164%2033.9639%2058.9089%2033.9639V33.9639V49.673V49.673C60.7164%2049.673%2062.1816%2048.2077%2062.1816%2046.4002V37.2366Z'%20fill='%23002B80'/%3e%3c/svg%3e`,alt:``})],-1),d[7]||=w(`div`,{class:`text-center`},[w(`h5`,{class:`m-0 text-base font-semibold text-grey900 md:text-2xl`},`Enable Auto-renew`),w(`p`,{class:`mb-0 mt-2 max-w-121.5 text-base text-grey700`},`Keep your AI running without interruptions.`),w(`p`,{class:`mb-0 mt-1 text-base text-grey700`},`You can cancel Auto Renew anytime.`)],-1),w(`div`,bt,[w(`label`,xt,` When credits go below `+a(c(n).autoTopupThreshold)+`, automatically purchase `,1),w(`div`,{ref_key:`autoRenewDropdown`,ref:f,class:`relative mb-1`,onKeydown:d[2]||=m(e=>g.value=!1,[`escape`])},[w(`button`,{id:`ai-empty-auto-renew-credits`,type:`button`,"aria-expanded":c(g),"aria-haspopup":`listbox`,"aria-labelledby":`ai-empty-auto-renew-label ai-empty-auto-renew-credits`,class:`w-full rounded-lg border border-grey200 bg-white py-2.25 pl-4 pr-10 h-auto text-left text-sm text-grey900 focus:border-grey600 focus:outline-hidden`,onClick:d[1]||=e=>g.value=!c(g)},[w(`span`,null,a(c(_).credits)+` credits =`,1),w(`span`,Ct,`$`+a(c(_).price),1)],8,St),c(g)?(y(),s(`div`,wt,[(y(!0),s(A,null,S(c(M),e=>(y(),s(`button`,{key:e.value,type:`button`,role:`option`,"aria-selected":e.value===c(_).value,class:`flex w-full items-center bg-transparent px-4 py-2 text-sm text-grey900 hover:bg-grey100`,onClick:t=>c(b)(e.value)},[w(`span`,null,a(e.credits)+` credits =`,1),w(`span`,Et,`$`+a(e.price),1)],8,Tt))),128))])):C(``,!0),w(`div`,Dt,[i(v,{name:`chevron-down`,class:l([`h-4 w-4 text-grey600 transition-transform`,{"rotate-180":c(g)}])},null,8,[`class`])])],544),d[4]||=w(`span`,{class:`text-sm text-grey700`},`1 credit = 1 resolved conversation`,-1)]),w(`div`,Ot,[w(`button`,{type:`button`,disabled:c(h),class:`flex h-auto w-full items-center justify-center gap-2 rounded-lg bg-grey900 px-4 py-3 text-base text-white disabled:cursor-not-allowed disabled:opacity-50`,onClick:D},[c(h)?(y(),e(X,{key:0,class:`before:border-white! m-0!`,size:`20px`})):(y(),s(A,{key:1},[i(v,{name:`check`,class:`h-5 w-5 text-white`}),d[5]||=r(` Enable Auto Renew `)],64))],8,kt),w(`button`,{type:`button`,class:`mt-3 h-auto p-0 underline text-grey700`,onClick:p},`Maybe Later`)])]),w(`button`,{class:`absolute top-1.5 right-1.5 z-10`,type:`button`,onClick:p},[i(v,{name:`close`,class:`h-5 w-5`,"aria-label":`Close`})])])]),_:1})):C(``,!0),u.value?(y(),e(re,{key:1,showModal:u.value,isAutoRenew:``,onCloseModal:d[3]||=e=>u.value=!1,onCardAdded:c(T)},null,8,[`showModal`,`onCardAdded`])):C(``,!0)])}}}),jt={key:0,class:`flex items-center justify-center min-h-[200px] w-full`},Mt={key:0,class:`flex flex-col items-center justify-center px-1`},Nt={key:3,class:`flex h-28 w-28 shrink-0 items-center justify-center rounded-full sm:h-30 sm:w-30 bg-gradient-to-br from-primary/5 to-primary/10`},Pt={key:1,class:`flex items-center`},Ft=[`src`,`alt`],It=[`src`,`alt`],Lt={class:`text-gray-900 text-base font-semibold`},Rt={class:`text-sm font-normal text-grey600 py-0 my-0 mt-2`},zt=[`href`],Bt={class:`border-l border-grey200 z-20 hidden md:block`},Vt={class:`-ml-px flex flex-col`},Ht=[`onClick`],Ut={key:0,class:`inline-block bg-gradient-to-b from-[#F69D01] to-[#F65901] font-semibold text-[10px] px-2 py-0.5 text-white rounded-full uppercase`},Wt=p({__name:`BestFeaturesGuide`,setup(t){let{handleFeatureGuideNavigation:n}=Ye(),i=R(),o=d(0),{isOwnerOrAdmin:f}=B(),p=u(()=>i.uiFlags.isLoadingPowerups),m=u(()=>!i.hide_empty_state_powerups),g=u(()=>[`pending`,`skipped`].includes(i.features_enabled.ai)),_=u(()=>
1[`pending`,`skipped`].includes(i.features_enabled.ai_auto_renewal)),v=u(()=>i.has_ai_conversations),b=[{title:`Mobile Apps`,highlightText:`Download the mobile app`,desc:`Stay connected anytime, anywhere with our Android and iOS apps`,guide:{url:`mobile-apps`,type:`internal`},imageUrl:`${L}images/feature-guide/mobile-apps.png`,extraImage:{url:`${L}images/feature-guide/platforms.svg`,className:`feature-guide-platforms`}},{title:`Live Translation`,desc:`Connect across languages! Translate messages live so agents and visitors can chat in their preferred languages`,guide:{url:`https://chatway.app/help/getting-started/how-to-enable-live-translation-in-chatway`,type:`external`},imageUrl:`${L}images/feature-guide/live-translation.png`}],x=u(()=>b[o.value]),E=T(null);D(()=>f,e=>{E.value?.destroy(),E.value=null,!e&&(E.value=Je(()=>{o.value<b.length-1?o.value++:o.value=0},5e3))},{immediate:!0});let O=()=>E.value?.pause(),k=()=>E.value?.start(),j=()=>E.value?.reset(),M=e=>{o.value=e,j()};return h(()=>{E.value?.destroy()}),(t,i)=>c(f)?(y(),s(`div`,jt,[p.value?(y(),s(`div`,Mt,i[1]||=[w(`div`,{class:`flex h-28 w-28 shrink-0 items-center justify-center rounded-full sm:h-30 sm:w-30 bg-gradient-to-br from-primary/5 to-primary/10`},[w(`img`,{src:`data:image/svg+xml,%3csvg%20width='29'%20height='28'%20viewBox='0%200%2029%2028'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_992_348)'%3e%3cpath%20d='M12.2682%2025.773L13.9951%2022.7541L15.2466%2024.7142C15.2466%2024.7142%2014.4516%2024.5726%2013.7274%2024.9189C13.0033%2025.2653%2012.2682%2025.773%2012.2682%2025.773Z'%20fill='%230038A5'/%3e%3cpath%20d='M11.0308%2024.3334C10.8946%2024.0229%2010.6134%2023.8002%2010.28%2023.7386L6.17359%2022.9805C5.20369%2022.8015%204.49976%2021.9557%204.49976%2020.9694V8.71842C4.49976%207.21018%205.23888%205.79769%206.47803%204.93787L9.12878%203.09857C10.176%202.37192%2011.4669%202.08605%2012.723%202.30262L22.1948%203.93568C24.1566%204.27394%2025.59%205.97561%2025.59%207.96644V17.2472C25.59%2018.3457%2025.1481%2019.3981%2024.3638%2020.1674L20.9904%2023.4759C19.7112%2
1024.7305%2017.8905%2025.2642%2016.1365%2024.8988L14.1766%2024.4905C13.8272%2024.4177%2013.4652%2024.5323%2013.2214%2024.7929L12.3973%2025.6737C12.1464%2025.9418%2011.7032%2025.866%2011.5557%2025.5298L11.0308%2024.3334Z'%20fill='%230446DE'/%3e%3cpath%20d='M8.99622%206.41695C6.93696%205.99849%205.01111%207.57236%205.01111%209.6737V20.1391C5.01111%2021.125%205.71445%2021.9705%206.68383%2022.15L10.752%2022.9034C11.0921%2022.9664%2011.3772%2023.197%2011.51%2023.5163L11.875%2024.3943C11.9856%2024.6604%2012.3391%2024.714%2012.5236%2024.4927L13.2277%2023.6482C13.4394%2023.3943%2013.7607%2023.2584%2014.0903%2023.2834L17.325%2023.5284C18.9571%2023.6521%2020.3495%2022.3612%2020.3495%2020.7244V10.3953C20.3495%209.42284%2019.6647%208.58484%2018.7116%208.39118L8.99622%206.41695Z'%20fill='%230038A5'/%3e%3cpath%20d='M8.77542%206.40684C7.51324%206.16207%206.34094%207.12886%206.34094%208.41455V19.1756C6.34094%2020.192%207.08738%2021.0541%208.09331%2021.1996L10.8839%2021.6032C11.2237%2021.6524%2011.5161%2021.8687%2011.6625%2022.1792L12.0546%2023.0109C12.1631%2023.2775%2012.5157%2023.3341%2012.702%2023.1147L13.2927%2022.4293C13.5207%2022.1647%2013.868%2022.0348%2014.2137%2022.0848L18.0115%2022.6341C19.2446%2022.8125%2020.3493%2021.856%2020.3493%2020.61V10.338C20.3493%209.35861%2019.655%208.51672%2018.6936%208.33026L8.77542%206.40684Z'%20fill='white'/%3e%3cpath%20d='M16.004%2017.2139L10.1006%2016.179C9.6711%2016.1037%209.32163%2016.4473%209.48778%2016.8505C10.0275%2018.1601%2011.535%2020.2188%2014.2056%2019.5324C14.7556%2019.391%2015.9995%2018.676%2016.35%2017.7237C16.4376%2017.4858%2016.2537%2017.2577%2016.004%2017.2139Z'%20fill='%230446DE'/%3e%3cellipse%20cx='10.3027'%20cy='12.3356'%20rx='1.04668'%20ry='1.7943'%20transform='rotate(-4.90348%2010.3027%2012.3356)'%20fill='%230446DE'/%3e%3cellipse%20cx='15.8346'%20cy='13.3573'%20rx='1.04668'%20ry='1.7943'%20transform='rotate(-4.90348%2015.8346%2013.3573)'%20fill='%230446DE'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_992_348'%3e%3crect%20width='28'%20height='28'%20fill='white'%20transform='translate(0.979126)'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e`,alt:`Chatway`,class:`relative h-12 w-12 sm:h-14 sm:w-14`,loading:`lazy`})],-1)])):(y(),s(A,{key:1},[m.value?(y(),e(rt,{key:0})):g.value?(y(),e(gt,{key:1})):!g.value&&_.value&&v.value?(y(),e(At,{key:2})):(y(),s(`div`,Nt,i[2]||=[w(`img`,{src:`data:image/svg+xml,%3csvg%20width='29'%20height='28'%20viewBox='0%200%2029%2028'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_992_348)'%3e%3cpath%20d='M12.2682%2025.773L13.9951%2022.7541L15.2466%2024.7142C15.2466%2024.7142%2014.4516%2024.5726%2013.7274%2024.9189C13.0033%2025.2653%2012.2682%2025.773%2012.2682%2025.773Z'%20fill='%230038A5'/%3e%3cpath%20d='M11.0308%2024.3334C10.8946%2024.0229%2010.6134%2023.8002%2010.28%2023.7386L6.17359%2022.9805C5.20369%2022.8015%204.49976%2021.9557%204.49976%2020.9694V8.71842C4.49976%207.21018%205.23888%205.79769%206.47803%204.93787L9.12878%203.09857C10.176%202.37192%2011.4669%202.08605%2012.723%202.30262L22.1948%203.93568C24.1566%204.27394%2025.59%205.97561%2025.59%207.96644V17.2472C25.59%2018.3457%2025.1481%2019.3981%2024.3638%2020.1674L20.9904%2023.4759C19.7112%2
1024.7305%2017.8905%2025.2642%2016.1365%2024.8988L14.1766%2024.4905C13.8272%2024.4177%2013.4652%2024.5323%2013.2214%2024.7929L12.3973%2025.6737C12.1464%2025.9418%2011.7032%2025.866%2011.5557%2025.5298L11.0308%2024.3334Z'%20fill='%230446DE'/%3e%3cpath%20d='M8.99622%206.41695C6.93696%205.99849%205.01111%207.57236%205.01111%209.6737V20.1391C5.01111%2021.125%205.71445%2021.9705%206.68383%2022.15L10.752%2022.9034C11.0921%2022.9664%2011.3772%2023.197%2011.51%2023.5163L11.875%2024.3943C11.9856%2024.6604%2012.3391%2024.714%2012.5236%2024.4927L13.2277%2023.6482C13.4394%2023.3943%2013.7607%2023.2584%2014.0903%2023.2834L17.325%2023.5284C18.9571%2023.6521%2020.3495%2022.3612%2020.3495%2020.7244V10.3953C20.3495%209.42284%2019.6647%208.58484%2018.7116%208.39118L8.99622%206.41695Z'%20fill='%230038A5'/%3e%3cpath%20d='M8.77542%206.40684C7.51324%206.16207%206.34094%207.12886%206.34094%208.41455V19.1756C6.34094%2020.192%207.08738%2021.0541%208.09331%2021.1996L10.8839%2021.6032C11.2237%2021.6524%2011.5161%2021.8687%2011.6625%2022.1792L12.0546%2023.0109C12.1631%2023.2775%2012.5157%2023.3341%2012.702%2023.1147L13.2927%2022.4293C13.5207%2022.1647%2013.868%2022.0348%2014.2137%2022.0848L18.0115%2022.6341C19.2446%2022.8125%2020.3493%2021.856%2020.3493%2020.61V10.338C20.3493%209.35861%2019.655%208.51672%2018.6936%208.33026L8.77542%206.40684Z'%20fill='white'/%3e%3cpath%20d='M16.004%2017.2139L10.1006%2016.179C9.6711%2016.1037%209.32163%2016.4473%209.48778%2016.8505C10.0275%2018.1601%2011.535%2020.2188%2014.2056%2019.5324C14.7556%2019.391%2015.9995%2018.676%2016.35%2017.7237C16.4376%2017.4858%2016.2537%2017.2577%2016.004%2017.2139Z'%20fill='%230446DE'/%3e%3cellipse%20cx='10.3027'%20cy='12.3356'%20rx='1.04668'%20ry='1.7943'%20transform='rotate(-4.90348%2010.3027%2012.3356)'%20fill='%230446DE'/%3e%3cellipse%20cx='15.8346'%20cy='13.3573'%20rx='1.04668'%20ry='1.7943'%20transform='rotate(-4.90348%2015.8346%2013.3573)'%20fill='%230446DE'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_992_348'%3e%3crect%20width='28'%20height='28'%20fill='white'%20transform='translate(0.979126)'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e`,alt:`Chatway`,class:`relative h-12 w-12 sm:h-14 sm:w-14`,loading:`lazy`},null,-1)]))],64))])):(y(),s(`div`,Pt,[w(`div`,{onMouseover:O,onMouseleave:k},[x.value?(y(),s(`div`,{key:o.value,class:`flex flex-col items-end -mt-10 mr-0 max-w-[360px] px-4 relative md:-mr-4 md:px-0`},[w(`img`,{src:x.value.imageUrl,class:`relative pointer-events-none`,loading:`eager`,alt:x.value.title},null,8,Ft),x.value.extraImage?(y(),s(`img`,{key:0,src:x.value.extraImage.url,class:l([x.value.extraImage.className,`absolute`]),loading:`eager`,alt:x.value.title},null,10,It)):C(``,!0),w(`div`,{class:l([`text-center max-w-[296px] mx-auto relative z-20 -translate-y-[100px]`,x.value.contentClass])},[w(`h2`,Lt,a(x.value.titleDesc?x.value.titleDesc:x.value.title),1),w(`p`,Rt,a(x.value.desc),1),x.value.guide.type===`external`?(y(),s(`a`,{key:0,href:x.value.guide.url,target:`_blank`,class:`bg-primary text-white w-48 text-center py-2 rounded-lg text-sm inline-block hover:bg-primaryDark mt-7 transition-colors duration-200`},` Show me `,8,zt)):(y(),s(`div`,{key:1,onClick:i[0]||=e=>c(n)(x.value),class:l([`bg-primary text-white w-48 text-center py-2 rounded-lg text-sm inline-block mt-7`,{"opacity-30 filter grayscale cursor-not-allowed":x.value.guide.disable,"cursor-pointer transition-colors duration-200 hover:bg-primaryDark":!x.value.guide.disable}])},` Show me `,2))],2)])):C(``,!0)],32),w(`div`,Bt,[w(`ul`,Vt,[(y(),s(A,null,S(b,(e,t)=>w(`li`,{key:t,onClick:e=>M(t),class:l([`text-xs py-2 my-0 inline-block pl-4 transition-colors duration-200 border-l cursor-pointer user-select-none`,{"text-grey900 border-gray-900":o.value===t,"text-grey700 border-transparent hover:text-grey900":o.value!==t}])},[r(a(e.title)+` `,1),e.titleLabel?(y(),s(`span`,Ut,a(e.titleLabel),1)):C(``,!0)],10,Ht)),64))])])]))}}),Gt=p({__name:`LiveVisitorToggle`,props:{isEmptyState:{type:Boolean}},setup(t){let n=H(),r=z(),i=u(()=>n.user?.attributes.is_enable_live_visitor==1),a=u(()=>n.uiFlags.isFetchingProfile),o=u(()=>r.uiFlags.isUpdatingLiveVisitorStatus);return(t,n)=>{let s=E(`ToggleSwitch`);return y(),e(s,{class:l({"bg-grey400!":!i.value}),disabled:a.value||o.value,value:i.value,onInput:c(r).toggleLiveVisitorMonitorStatus,switchLabel:`live visitor`,
1size:t.isEmptyState&&`2xl`},null,8,[`class`,`disabled`,`value`,`onInput`,`size`])}}}),Kt={key:0,class:`m-6 flex items-center border border-grey200 rounded-lg`},qt={class:`w-full sm:w-md`},Jt={key:0,class:`bg-[#F69D011F] flex justify-center items-center gap-2 p-2 rounded-t-lg`},Yt={class:`text-grey900 text-xs leading-lh400 m-0`},Xt=[`disabled`],Zt={class:`p-6`},Qt=[`src`],$t={class:`flex flex-col items-center`},en={key:0,class:`max-w-92`},tn={class:`max-w-[24rem]`},nn={class:`flex items-center gap-1`},rn={class:`p-3 w-72`},an={class:`text-sm text-grey900`},on={class:`w-[20rem] m-0 text-grey900 text-base text-center leading-lh400 pt-2`},sn={key:0,class:`flex justify-center items-center gap-2 mt-3`},cn={key:0,class:`p-4 flex justify-center`},ln={key:2,class:`flex flex-col items-center px-1 sm:p-0`},un=[`src`],dn=[`innerHTML`],fn=q(p({__name:`EmptyState`,props:{text:{},src:{},showInstallationCode:{type:Boolean},showBestFeaturesGuide:{type:Boolean},hasConversationsOlderThanMonth:{type:Boolean},isLiveVisitor:{type:Boolean},title:{},isCompact:{type:Boolean}},setup(t){let n=t,o=_(),{width:d,height:p}=te(),m=H(),h=z(),{allConversations:g,uiFlags:b}=v(W()),{isOwnerOrAdmin:S,userRole:T}=B(),{isSmallScreen:D}=J(),O=u(()=>T===N.CHAT_AGENT_MEMBER||b.value.isConversationsLoading?!1:!g.value.length&&n.showInstallationCode&&!n.hasConversationsOlderThanMonth),k=u(()=>{let e=g.value.length,t=b.value.isConversationsLoading&&e===0;return n.showBestFeaturesGuide&&S&&!M.value&&!t&&(e===0||e>=5)}),j=u(()=>n.showBestFeaturesGuide?g.value.length:!1),M=u(()=>d.value<604),P=u(()=>m.isMarketPlace),F=u(()=>m.marketPlaceName===`shopify`),ee=u(()=>m.allShopifyWithEmbeddedStatus.some(e=>!e.attributes.is_embedded_app_enabled&&F)),I=u(()=>m.user?.attributes.is_enable_live_visitor==1),R=u(()=>m.hasTrial),V=u(()=>m.isProUser),U=u(()=>h.uiFlags.isUpdatingLiveVisitorStatus),G=u(()=>m.trialDaysLeft),K=()=>{o.push({name:`settings-plans-view`})};return(t,o)=>{let u=E(`CwIcon`);return y(),s(`div`,{class:l([`empty-view`,[{"sm:bg-grey100! rounded-none!":M.value&&O.value||c(d)<768&&O.value&&F.value,"block!":M.value&&O.value&&!P.value||c(d)<768&&O.value&&ee.value,"justify-start! sm:justify-center! justify-items-center":t.isLiveVisitor||O.value&&c(p)<750}]])},[!O.value&&t.isLiveVisitor?(y(),s(`div`,Kt,[w(`div`,qt,[I.value?C(``,!0):(y(),s(`div`,Jt,[i(u,{name:`info`,"stroke-width":`1.33`,class:`text-[#FF9900]`,"aria-label":`info`}),w(`p`,Yt,[o[1]||=r(` We recommend `),w(`button`,{onClick:o[0]||=(...e)=>c(h).toggleLiveVisitorMonitorStatus&&c(h).toggleLiveVisitorMonitorStatus(...e),disabled:U.value,class:`h-auto underline text-primary text-xs p-0 disabled:bg-transparent! disabled:cursor-not-allowed`,"aria-label":`enable live visitor`},` enabling `,8,Xt),o[2]||=r(` this feature for better experience `)])])),w(`div`,Zt,[w(`img`,{src:`${c(L)}images/live-visitor-empty-state.png`,class:`mb-4 mx-auto max-w-50`,alt:`chatway logo`},null,8,Qt),w(`div`,$t,[I.value?(y(),s(`div`,en,o[3]||=[w(`div`,{class:`flex items-center gap-1 justify-center`},[w(`p`,{class:`m-0 text-grey900 font-semibold text-2xl text-center leading-lh400`},`No Live Visitors at the Moment`)],-1),w(`p`,{class:`m-0 text-grey900 text-base text-center leading-lh400 pt-2`},`Your website visitors will be displayed here in real time.`,-1)])):(y(),s(A,{key:1},[w(`div`,tn,[w(`div`,nn,[o[7]||=w(`p`,{class:`m-0 text-grey900 font-semibold text-2xl text-center leading-lh400`},`See Real-Time Visitor Activity`,-1),R.value&&!I.value&&!V.value?(y(),e(Y,{key:0,triggers:[`click`]},{content:x(()=>[w(`div`,rn,[o[5]||=w(`span`,{class:`text-xs text-grey900`},` Enable this feature to watch live visitor activity and reach out to them directly. This feature is available during your trial, with the option to upgrade now to continue using it after the trial ends. `,-1),w(`div`,{class:`flex items-center justify-center upgrade-now-btn-bg gap-2 cursor-pointer h-8 mt-4 rounded`,onClick:K},[o[4]||=w(`img`,{src:`data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M21.9937%207.35114L21.9966%207.35351C22.1261%207.46028%2022.2232%207.60113%2022.2769%207.76017L22.8454%207.56831L22.2769%207.76018C22.3305%207.91921%2022.3387%208.09009%2022.3003%208.25351L19.9098%2018.4061L19.9098%2018.4061L19.9082%2018.4131C19.8823%2018.5294%2019.8326%2018.639%2019.7621%2018.7351C19.6917%2018.8312%2019.6022%2018.9117%2019.4991%2018.9715L19.4981%2018.9721C19.2823%2019.0978%2019.0256%2019.1331%2018.784%2019.0705C14.3401%2017.8426%209.64642%2017.843%205.20271%2019.0716L5.2027%2019.0716L5.19568%2019.0736C5.12197%2019.0949%205.04564%2019.1059%204.9689%2019.1062C4.80335%2019.1058%204.64095%2019.0608%204.4989%2018.9757L4.49601%2018.974C4.39222%2018.9127%204.30197%2018.8309%204.23072%2018.7336C4.15947%2018.6364%204.1087%2018.5257%204.0815%2018.4083L4.08112%2018.4067L1.69988%208.25353L1.69951%208.252C1.66075%208.08863%201.66845%207.91767%201.72176%207.75845C1.77508%207.59923%201.87187%207.45809%202.00119%207.351C2.13052%207.24391%202.28722%207.17514%202.45359%207.15245C2.61996%207.12977%202.78936%207.15407%202.94264%207.22262L2.94382%207.22315L7.68757%209.33252L8.18954%209.55574L8.45603%209.07533L11.2106%204.10953C11.29%2
103.97079%2011.4045%203.85539%2011.5426%203.77497C11.6815%203.69411%2011.8394%203.65151%2012.0001%203.65151C12.1608%203.65151%2012.3187%203.69411%2012.4576%203.77497C12.5957%203.85539%2012.7102%203.97079%2012.7896%204.10953L15.5442%209.07533L15.8107%209.55574L16.3126%209.33252L21.0564%207.22315L21.0583%207.2223C21.2106%207.15394%2021.3791%207.12976%2021.5445%207.15254C21.7099%207.17532%2021.8655%207.24414%2021.9937%207.35114Z'%20fill='%23282D3E'%20stroke='%23282D3E'%20stroke-width='1.2'/%3e%3cmask%20id='mask0_13229_5759'%20style='mask-type:alpha'%20maskUnits='userSpaceOnUse'%20x='1'%20y='3'%20width='22'%20height='17'%3e%3cpath%20d='M21.9986%207.29963L22.0015%207.302C22.131%207.40876%2022.2281%207.54962%2022.2817%207.70866C22.3354%207.8677%2022.3435%208.03858%2022.3052%208.20199L19.9147%2018.3546L19.9147%2018.3546L19.9131%2018.3616C19.8872%2018.4779%2019.8374%2018.5875%2019.767%2018.6836C19.6966%2018.7797%2019.607%2018.8602%2019.504%2018.92L19.503%2018.9206C19.2872%2019.0462%2019.0306%2019.0816%2018.7889%2019.019C14.345%2017.7911%209.65132%2017.7915%205.2076%2019.0201L5.20758%2019.02L5.20056%2019.0221C5.12686%2019.0434%205.05053%2019.0544%204.97379%2019.0546C4.80823%2019.0543%204.64583%2019.0092%204.50378%2018.9242L4.50088%2018.9225C4.3971%2018.8611%204.30685%2018.7794%204.2356%2018.6821C4.16435%2018.5849%204.11359%2018.4742%204.08638%2018.3567L4.08601%2018.3551L1.70476%208.20202L1.7044%208.20049C1.66563%208.03711%201.67334%207.86615%201.72665%207.70693L1.15769%207.51643L1.72665%207.70693C1.77996%207.54771%201.87675%207.40658%202.00607%207.29949C2.1354%207.1924%202.29211%207.12363%202.45848%207.10094C2.62485%207.07825%202.79424%207.10256%202.94752%207.17111L2.9487%207.17164L7.69245%209.28101L8.19443%209.50422L8.46091%209.02382L11.2155%204.05801C11.2949%203.91927%2011.4093%203.80387%2011.5475%203.72346C11.6864%203.6426%2011.8443%203.6%2012.005%203.6C12.1657%203.6%2012.3236%203.6426%2012.4625%203.72346C12.6006%203.80387%2012.7151%203.91927%2012.7944%204.05801L15.5491%209.02382L15.8155%209.50422L16.3175%209.28101L21.0613%207.17164L21.0632%207.17079C21.2155%207.10242%2021.384%207.07825%2021.5494%207.10103C21.7148%207.12381%2021.8704%207.19262%2021.9986%207.29963Z'%20fill='%23282D3E'%20stroke='white'%20stroke-width='1.2'/%3e%3c/mask%3e%3cg%20mask='url(%23mask0_13229_5759)'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M16.7963%20-0.784953L15.3378%20-0.984375L9.47949%2027.2518L10.9379%2027.4512L16.7963%20-0.784953ZM21.0726%205.0048L17.2351%204.48008L13.6815%2021.608L17.5189%2022.1328L21.0726%205.0048Z'%20fill='white'%20fill-opacity='0.5'/%3e%3c/g%3e%3c/svg%3e`,class:`pl-4`,alt:`crown icon`},null,-1),w(`span`,an,a(G.value>2?`Upgrade now & pay later`:`Upgrade Now`),1)])])]),default:x(()=>[o[6]||=w(`div`,{class:``},[w(`img`,{src:`data:image/svg+xml,%3csvg%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M18.3281%206.12599L18.3305%206.12796C18.4384%206.21694%2018.5193%206.33432%2018.564%206.46685C18.6088%206.59938%2018.6156%206.74178%2018.5836%206.87796L16.5915%2015.3385L16.5915%2015.3385L16.5902%2015.3443C16.5686%2015.4412%2016.5271%2015.5326%2016.4685%2015.6127L16.8718%2015.9082L16.4685%2015.6127C16.4098%2015.6927%2016.3351%2015.7598%2016.2492%2015.8096L16.2484%2015.8101C16.0686%2015.9148%2015.8547%2015.9443%2015.6533%2015.8921C11.9501%2014.8689%208.03869%2014.8692%204.33559%2015.893L4.33558%2015.893L4.32974%2015.8947C4.26827%2015.9125%204.20462%2015.9216%204.14064%2015.9218C4.00271%2015.9215%203.86743%2015.884%203.74908%2015.8131L3.74667%2015.8117C3.66018%2015.7606%203.58497%2015.6924%203.5256%2015.6114C3.46622%2015.5304%203.42392%2015.4381%203.40125%2015.3403L3.40094%2015.3389L1.41656%206.87798L1.41626%206.87671C1.38395%206.74056%201.39038%206.5981%201.4348%206.46541C1.47923%206.33273%201.55989%206.21512%201.66766%206.12588C1.77543%206.03664%201.90602%205.97932%202.04466%205.96042C2.1833%205.94151%202.32447%205.96177%202.4522%206.01889L2.45318%206.01933L6.4063%207.77714L6.82462%207.96315L7.04669%207.56282L9.34219%203.42468C9.40829%203.30905%209.50371%203.21287%209.61884%203.14585L9.3673%202.71373L9.61884%203.14585C9.7346%203.07847%209.86614%203.04297%2010.0001%203.04297C10.134%203.04297%2010.2656%203.07847%2010.3813%203.14585C10.4965%203.21287%2010.5919%203.30905%2010.658%203.42468L12.9535%207.56282L13.1755%207.96315L13.5939%207.77714L17.547%206.01933L17.5486%206.01862C17.6755%205.96165%2017.8159%205.94151%2017.9537%205.96049C18.0916%205.97948%2018.2213%206.03682%2018.3281%206.12599Z'%20fill='%23FFB800'%20stroke='%23FFB800'/%3e%3cmask%20id='mask0_9616_42288'%20style='mask-type:alpha'%20maskUnits='userSpaceOnUse'%20x='0'%20y='2'%20width='20'%20height='15'%3e%3cpath%20d='M18.332%206.08302L18.3344%206.085C18.4423%206.17397%2018.5232%206.29135%2018.568%206.42388C18.6127%206.55642%2018.6195%206.69882%2018.5875%206.835L16.5954%2015.2955L16.5954%2015.2955L16.5941%2015.3013C16.5725%2015.3982%2016.531%2015.4896%2016.4724%2015.5697C16.4137%2015.6498%2016.339%2015.7168%2016.2532%2015.7667L16.2523%2
1015.7671C16.0725%2015.8719%2015.8586%2015.9013%2015.6572%2015.8491C11.954%2014.8259%208.04259%2014.8263%204.3395%2015.8501L4.33949%2015.85L4.33364%2015.8517C4.27218%2015.8695%204.20853%2015.8787%204.14454%2015.8789C4.00662%2015.8786%203.87133%2015.841%203.75299%2015.7702L3.75057%2015.7687C3.66409%2015.7176%203.58888%2015.6495%203.5295%2015.5684C3.47013%2015.4874%203.42783%2015.3952%203.40516%2015.2973L3.40484%2015.2959L1.42047%206.83501L1.42017%206.83374C1.38786%206.69759%201.39428%206.55513%201.43871%206.42244C1.48314%206.28976%201.56379%206.17215%201.67157%206.08291C1.77934%205.99367%201.90993%205.93635%202.04857%205.91745C2.18721%205.89854%202.32837%205.9188%202.4561%205.97593L2.45709%205.97636L6.41021%207.73417L6.82853%207.92018L7.0506%207.51985L9.34609%203.38171C9.41219%203.26608%209.50762%203.1699%209.62275%203.10288C9.7385%203.0355%209.87005%203%2010.004%203C10.1379%203%2010.2695%203.0355%2010.3852%203.10288C10.5004%203.1699%2010.5958%203.26608%2010.6619%203.38171L12.9574%207.51985L13.1795%207.92018L13.5978%207.73417L17.5509%205.97637L17.5525%205.97566C17.6794%205.91868%2017.8198%205.89854%2017.9576%205.91752C18.0955%205.93651%2018.2252%205.99385%2018.332%206.08302Z'%20fill='%23FFB800'%20stroke='%23FFB800'/%3e%3c/mask%3e%3cg%20mask='url(%23mask0_9616_42288)'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M13.9968%20-0.654127L12.7814%20-0.820312L7.89941%2022.7099L9.11479%2022.876L13.9968%20-0.654127ZM17.5603%204.17066L14.3624%203.7334L11.4011%2018.0067L14.599%2018.444L17.5603%204.17066Z'%20fill='white'%20fill-opacity='0.5'/%3e%3c/g%3e%3c/svg%3e`,alt:``,class:`cursor-pointer`})],-1)]),_:1})):C(``,!0)])]),w(`p`,on,a(R.value&&!I.value?`Monitor whoâs on your site in real time. Enjoy full access during your free trial!`:`Enable to monitor live visitor on your site.`),1),c(S)?(y(),s(`div`,sn,[i(Gt,{isEmptyState:!0}),o[8]||=w(`label`,{class:`text-grey900 text-base leading-lh400`},`OFF`,-1)])):C(``,!0),o[9]||=w(`div`,{class:`bg-grey200 w-full h-px my-5 mx-auto`},null,-1)],64))]),w(`div`,{class:l([`flex flex-col gap-4`,{"mt-6":I.value}])},o[10]||=[f(`<p class="text-grey900 text-sm leading-lh400 m-0" data-v-9d3523a8>You will be able to:</p><div class="flex items-start gap-2" data-v-9d3523a8><img src="data:image/svg+xml,%3csvg%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3crect%20width='20'%20height='20'%20rx='10'%20fill='%23F6F6F8'/%3e%3cpath%20d='M15.3337%206L8.00033%2013.3333L4.66699%2010'%20stroke='%23282D3E'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e" alt="check" data-v-9d3523a8><p class="text-grey900 text-sm leading-lh400 m-0" data-v-9d3523a8>Initiate chat with your live visitors.</p></div><div class="flex items-start gap-2" data-v-9d3523a8><img src="data:image/svg+xml,%3csvg%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3crect%20width='20'%20height='20'%20rx='10'%20fill='%23F6F6F8'/%3e%3cpath%20d='M15.3337%206L8.00033%2013.3333L4.66699%2010'%20stroke='%23282D3E'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e" alt="check" data-v-9d3523a8><p class="text-grey900 text-sm leading-lh400 m-0" data-v-9d3523a8>Set a push notification when a new visitor arrives to your website.</p></div><div class="flex items-start gap-2" data-v-9d3523a8><img src="data:image/svg+xml,%3csvg%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3crect%20width='20'%20height='20'%20rx='10'%20fill='%23F6F6F8'/%3e%3cpath%20d='M15.3337%206L8.00033%2013.3333L4.66699%2010'%20stroke='%23282D3E'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e" alt="check" data-v-9d3523a8><p class="text-grey900 text-sm leading-lh400 m-0" data-v-9d3523a8>See what page theyâre on.</p></div><div class="flex items-start gap-2" data-v-9d3523a8><img src="data:image/svg+xml,%3csvg%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3crect%20width='20'%20height='20'%20rx='10'%20fill='%23F6F6F8'/%3e%3cpath%20d='M15.3337%206L8.00033%2013.3333L4.66699%2010'%20stroke='%23282D3E'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e" alt="check" data-v-9d3523a8><p class="text-grey900 text-sm leading-lh400 m-0" data-v-9d3523a8>Filter visitors by country or whether theyâre first-time or returning.</p></div>`,5)],2)])])])):C(``,!0),O.value?(y(),e(qe,{key:1})):C(``,!0),!O.value&&!t.isLiveVisitor?(y(),s(A,{key:2},[t.hasConversationsOlderThanMonth?(y(),s(`div`,cn,[w(`div`,{class:`flex items-center justify-center gap-[0.62rem]`},[o[13]||=w(`div`,{class:`bg-[#0446DE1A] w-8 h-8 flex items-center p-1.5 rounded-full`}
1,[w(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`20`,height:`20`,viewBox:`0 0 20 20`,fill:`none`},[w(`path`,{d:`M15.8333 9.1665H4.16667C3.24619 9.1665 2.5 9.9127 2.5 10.8332V16.6665C2.5 17.587 3.24619 18.3332 4.16667 18.3332H15.8333C16.7538 18.3332 17.5 17.587 17.5 16.6665V10.8332C17.5 9.9127 16.7538 9.1665 15.8333 9.1665Z`,stroke:`#0446DE`,"stroke-width":`1.25`,"stroke-linecap":`round`,"stroke-linejoin":`round`}),w(`path`,{d:`M5.83301 9.1665V5.83317C5.83301 4.7281 6.27199 3.66829 7.0534 2.88689C7.8348 2.10549 8.89461 1.6665 9.99968 1.6665C11.1047 1.6665 12.1646 2.10549 12.946 2.88689C13.7274 3.66829 14.1663 4.7281 14.1663 5.83317V9.1665`,stroke:`#0446DE`,"stroke-width":`1.25`,"stroke-linecap":`round`,"stroke-linejoin":`round`})])],-1),w(`div`,{class:`text-xs font-normal leading-[1.05rem]`},[o[12]||=r(` Free plan includes last 30 days' chat history. `),w(`span`,{class:`inline-flex items-center cursor-pointer`,onClick:K},o[11]||=[w(`span`,{class:`text-primary text-xs leading-[1.05rem] font-semibold underline`},`Upgrade for unlimited history`,-1),w(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`12`,height:`12`,viewBox:`0 0 12 12`,fill:`none`},[w(`path`,{d:`M4.5 9L7.5 6L4.5 3`,stroke:`#0446DE`,"stroke-width":`1.25`,"stroke-linecap":`round`,"stroke-linejoin":`round`})],-1)])])])])):j.value&&!M.value?(y(),e(Wt,{key:1})):(y(),s(`div`,ln,[n.src?(y(),s(`img`,{key:0,src:n.src,alt:`search`,class:l([`sm:max-w-99.75`,{"sm:w-34":t.isCompact}])},null,10,un)):C(``,!0),n.title?(y(),s(`span`,{key:1,class:l([`mt-3 text-grey900 max-w-100 leading-5 text-sm sm:text-[18px] tracking-[0.02em] text-center font-semibold`,{"text-base!":t.isCompact}])},a(n.title),3)):C(``,!0),n.text?(y(),s(`span`,{key:2,innerHTML:n.text,class:l([`mt-2 text-grey600 max-w-100 leading-5 text-sm tracking-[0.02em] text-center`,{"sm:w-65.25!":t.isCompact}])},null,10,dn)):C(``,!0)]))],64)):C(``,!0),k.value&&!c(D)?(y(),e(ue,{key:3,variant:`empty-state`,class:`absolute bottom-0 left-0 right-0`})):C(``,!0)],2)}}}),[[`__scopeId`,`data-v-9d3523a8`]]);export{Q as a,ue as i,Gt as n,$ as o,Ye as r,fn as t}; 2//# sourceMappingURL=EmptyState-TwF7GRe0.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.