"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[89048],{89048:(t,e,a)=>{a.r(e),a.d(e,{PlatformSalesWhatsAppWidget:()=>l});var o=a(95155),n=a(12115),s=a(12505),i=a(41385);let r=["Need education management software for your institution? Talk to our team.","Launch your school, college, or training institute online. Book a free demo.","Questions about plans or setup? Our sales team is ready to help.","Take your institution digital with DP-LMS. Contact sales to get started."];function l(){let{quote:t,visible:e}=function(t){let[e,a]=(0,n.useState)(0),[o,s]=(0,n.useState)(!0);return(0,n.useEffect)(()=>{if(t.length<=1)return;let e=0,o=!0,n=0,i=()=>{e=window.setTimeout(()=>{o?(o=!1,s(!1)):(a(n=(n+1)%t.length),o=!0,s(!0)),i()},7e3)};return i(),()=>window.clearTimeout(e)},[t.length]),{quote:t[e]??t[0],visible:o}}(r),{openDrawer:a}=(0,i.V)();return(0,o.jsxs)("div",{className:"fixed bottom-5 right-4 z-[58] flex items-end justify-end gap-2 sm:bottom-6 sm:right-6 sm:gap-3",children:[(0,o.jsxs)("button",{type:"button",onClick:a,"aria-label":"Contact DP LMS sales","aria-hidden":!e,className:`relative rounded-2xl bg-white text-left text-sm leading-snug text-slate-800 shadow-[0_8px_30px_rgba(15,23,42,0.12)] transition-all duration-500 ease-in-out hover:shadow-[0_12px_36px_rgba(15,23,42,0.16)] ${e?"max-w-[min(calc(100vw-5.5rem),18rem)] translate-x-0 opacity-100 px-4 py-3.5 pointer-events-auto":"max-w-0 translate-x-2 overflow-hidden opacity-0 px-0 py-0 pointer-events-none shadow-none"}`,children:[(0,o.jsx)("p",{className:"whitespace-normal",children:t}),(0,o.jsx)("span",{className:`absolute -bottom-2 right-6 h-4 w-4 rotate-45 bg-white shadow-[2px_2px_4px_rgba(15,23,42,0.06)] transition-opacity duration-300 ${e?"opacity-100":"opacity-0"}`,"aria-hidden":!0})]}),(0,o.jsx)("button",{type:"button",onClick:a,"aria-label":"Chat with DP LMS sales",className:"flex h-14 w-14 shrink-0 items-center justify-center rounded-full border-2 border-white bg-[#25D366] text-white shadow-lg transition-transform hover:scale-105 focus:outline-none focus:ring-2 focus:ring-[#25D366] focus:ring-offset-2",children:(0,o.jsx)(s.hYw,{className:"h-7 w-7","aria-hidden":!0})})]})}}}]);