(function(){try{var g=typeof window!=="undefined"?window:typeof global!=="undefined"?global:typeof self!=="undefined"?self:{};g["__faroBundleId_Speechify Chrome Extension"]="13.4.1"}catch(l){}})();
import{rc as x}from"./chunk-XMRXO6YU.js";import"./chunk-ODCFEFOB.js";import{a as f,e as h,g as p,i as s,l as r,m as c,s as g,x as C}from"./chunk-24ZZP5UQ.js";import{g as M}from"./chunk-GQY3J744.js";import"./chunk-NWEJW7RD.js";import"./chunk-ASZMUWWE.js";import"./chunk-4XRFE7WB.js";import"./chunk-6I7EUWRH.js";import{d as w,g as m,i as e,n as y}from"./chunk-CLPINNGF.js";y();m();var u=w(M());var a="speechify-meeting-notes-ready-toast",S=p`
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
`,b=p`
  from {
    transform: translateY(0);
    opacity: 1;
  }
  to {
    transform: translateY(-100%);
    opacity: 0;
  }
`,T=s.div`
  position: fixed;
  top: 12px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  z-index: 2147483647;
  animation: ${({isClosing:t})=>t?b:S} 0.3s ease-out forwards;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell,
    sans-serif;
  pointer-events: none;
`,D=s.div`
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  pointer-events: auto;
  background: ${({isSiteDarkMode:t})=>t?r["bg-prim-w-100"]:c["bg-prim-w-100"]};
  border-radius: 16px;
  box-shadow: 0 8px 24px 0 rgba(0, 0, 0, 0.16);
  white-space: nowrap;
`,I=()=>e("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"12",viewBox:"0 0 18 12",fill:"none"},e("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17.7071 0.292893C18.0976 0.683417 18.0976 1.31658 17.7071 1.70711L7.70711 11.7071C7.31658 12.0976 6.68342 12.0976 6.29289 11.7071L0.292893 5.70711C-0.0976311 5.31658 -0.0976311 4.68342 0.292893 4.29289C0.683417 3.90237 1.31658 3.90237 1.70711 4.29289L7 9.58579L16.2929 0.292893C16.6834 -0.0976311 17.3166 -0.0976311 17.7071 0.292893Z",fill:"currentColor"})),R=s.div`
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  color: ${({isSiteDarkMode:t})=>t?r["icn-txt-prim"]:c["icn-txt-prim"]};
  flex-shrink: 0;
`,B=({url:t,onClose:n})=>{let l=()=>{window.open(t,"_blank"),n()};return e(T,{isSiteDarkMode:!0},e(D,{isSiteDarkMode:!0},e(R,{isSiteDarkMode:!0},e(I,null)),e(g,{font:"body-5",style:{color:r["icn-txt-prim"]}},"Meeting notes are ready"),e(x,{onClick:l,style:{padding:"4px 12px",marginLeft:"8px",flexShrink:0}},"Open in Speechify"),e(C,{onClick:n,style:{flexShrink:0}})))},U=t=>{let n=document.getElementById(a);n&&n.remove();let o=document.createElement("div");o.id=a,o.style.position="fixed",o.style.top="0",o.style.left="0",o.style.width="100%",o.style.zIndex="2147483647",o.style.pointerEvents="none",document.body.appendChild(o);let l=o.attachShadow({mode:"open"}),i=document.createElement("div");i.id=`${a}-root`,i.style.pointerEvents="auto",l.appendChild(i);let k=f({key:`${a}-emotion-cache`,container:i}),d=()=>{o.remove()},v=setTimeout(d,1e4);return(0,u.render)(e(h,{value:k},e(B,{url:t,onClose:()=>{clearTimeout(v),d()}})),i),d};export{U as showMeetingNotesReadyToast};
//# sourceMappingURL=MeetingNotesReadyToast-66NFYBEC.js.map
