1import{u as f,a as p,r as m,j as e,bv as r,B as n,$ as g,aM as s,d as a,e as d}from"./main-C-fwQcoT.js";import{Z as h}from"./Zoom-c_seYQAN.js";import{L as k}from"./Link-CjBgfGI7.js";const v=()=>{const x=f(),t=p(),[l,y]=m.useState(null),c=new URLSearchParams(window.location.search),o=c.get("access_token"),i=c.get("refresh_token");m.useEffect(()=>{(()=>{window.location.href="hitwit://open?access_token="+o+"&refresh_token="+i})()},[x]);const u=()=>{o&&(console.log("url","hitwit://open?access_token="+o+"&refresh_token="+i),window.location.href="hitwit://open?access_token="+o+"&refresh_token="+i)};return o?l?e.jsx(r,{in:!0,timeout:800,children:e.jsxs(n,{sx:{height:"100vh",width:"100%",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",backgroundColor:t.palette.background.background,px:4,transition:"background-color 0.3s ease"},children:[e.jsx(h,{in:!0,timeout:1e3,children:e.jsx(n,{sx:{display:"flex",alignItems:"center",justifyContent:"center",mb:3},children:e.jsx(n,{sx:{width:60,height:60,borderRadius:"50%",backgroundColor:t.palette.background.background,display:"flex",alignItems:"center",justifyContent:"center",animation:"shake 0.5s ease-in-out"},children:e.jsx(a,{sx:{fontSize:"2rem",color:"#f44336"},children:"â ï¸"})})})}),e.jsx(s,{direction:"up",in:!0,timeout:1200,children:e.jsx(a,{sx:{color:t.palette.error.main,fontSize:"1.25rem",fontWeight:500,textAlign:"center",mb:4,animation:"fadeInUp 1s ease-out"},variant:"h6",children:l})}),e.jsx(s,{direction:"up",in:!0,timeout:1400,children:e.jsx(d,{variant:"contained",onClick:()=>window.location.reload(),sx:{backgroundColor:t.palette.primary.main,"&:hover":{backgroundColor:t.palette.primary.dark,transform:"translateY(-2px)",boxShadow:"0 4px 12px rgba(0,0,0,0.15)"},px:4,py:1.5,fontSize:"1rem",fontWeight:600,borderRadius:2,transition:"all 0.3s ease",animation:"fadeInUp 1.2s ease-out"},children:"Try Again"})}),e.jsx("style",{children:` 2 @keyframes shake { 3 0%, 100% { transform: translateX(0); } 4 25% { transform: translateX(-5px); } 5 75% { transform: translateX(5px); } 6 } 7 @keyframes fadeInUp { 8 from { 9 opacity: 0; 10 transform: translateY(20px); 11 } 12 to { 13 opacity: 1; 14 transform: translateY(0); 15 } 16 } 17 `})]})}):o?e.jsx(r,{in:!0,timeout:800,children:e.jsxs(n,{sx:{height:"100vh",width:"100%",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",backgroundColor:t.palette.background.background,px:4,transition:"background-color 0.3s ease"},children:[e.jsx(r,{in:!0,timeout:600,children:e.jsxs(a,{sx:{color:t.palette.text.primary,fontSize:"1rem",textAlign:"center",mb:1,maxWidth:500},children:["Click ",e.jsx("b",{children:"Open hitwit meeting"})," on the dialog shown by your browser"]})}),e.jsx(r,{in:!0,timeout:800,children:e.jsx(a,{sx:{color:t.palette.text.primary,fontSize:"1rem",textAlign:"center",mb:3,maxWidth:600},children:"If you don't see a dialog, click Launch HitWit app below"})}),e.jsx(r,{in:!0,timeout:1200,children:e.jsx(d,{variant:"contained",onClick:u,sx:{fontWeight:600,borderRadius:2,mb:4,minWidth:280,transition:"all 0.2s ease","&:active":{transform:"translateY(0)"}},children:"Launch HitWit app"})}),e.jsx(r,{in:!0,timeout:1400,children:e.jsxs(a,{sx:{color:t.palette.text.primary,fontSize:"1rem",textAlign:"center",mb:1},children:["Don't have the HitWit app installed?"," ",e.jsx(k,{href:"#",sx:{color:t.palette.primary.main,textDecoration:"none",fontWeight:600,transition:"opacity 0.2s ease","&:hover":{textDecoration:"underline"}},children:"Download Now"})]})}),e.jsx(r,{in:!0,timeout:1600,children:e.jsx(n,{sx:{position:"absolute",bottom:20,textAlign:"center"},children:e.jsx(a,{sx:{color:t.palette.text.light4,fontSize:"0.75rem",mb:1},children:"©2025 HitWit Corp. All rights reserved."})})})]})}):e.jsx(n,{sx:{height:"100vh",width:"100%",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",backgroundColor:t.palette.background.background},children:e.jsx("style",{children:` 18 @keyframes pulse { 19 0% { transform: scale(1); } 20 50% { transform: scale(1.05); } 21 100% { transform: scale(1); } 22 } 23 @keyframes bounce { 24 0%, 80%, 100% { transform: scale(0); } 25 40% { transform: scale(1); } 26 } 27 @keyframes fadeInUp { 28 from { 29 opacity: 0; 30 transform: translateY(20px); 31 } 32 to { 33 opacity: 1; 34 transform: translateY(0); 35 } 36 } 37 @keyframes shake { 38 0%, 100% { transform: translateX(0); } 39 25% { transform: translateX(-5px); } 40 75% { transform: translateX(5px); } 41 } 42 `})}):e.jsx(r,{in:!0,timeout:800,children:e.jsxs(n,{sx:{height:"100vh",width:"100%",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",backgroundColor:t.palette.background.background,transition:"background-color 0.3s ease"},children:[e.jsx(h,{in:!0,timeout:1e3,children:e.jsx(n,{sx:{height:200,display:"flex",alignItems:"center",justifyContent:"center",flexDirection:"column"},children:e.jsx(g,{size:80,thickness:1,sx:{color:t.palette.primary.main,animation:"pulse 2s ease-in-out infinite"}})})}),e.jsx(s,{direction:"up",in:!0,timeout:1200,children:e.jsx(a,{sx:{my:1,color:t.palette.text.primary,fontSize:"1.25rem",fontWeight:500,textAlign:"center",animation:"fadeInUp 1s ease-out"},variant:"h6",children:"Authentication in progress... Please wait..."})}),e.jsx("style",{children:` 43 @keyframes pulse { 44 0% { transform: scale(1); } 45 50% { transform: scale(1.05); } 46 100% { transform: scale(1); } 47 } 48 @keyframes bounce { 49 0%, 80%, 100% { transform: scale(0); } 50 40% { transform: scale(1); } 51 } 52 @keyframes fadeInUp { 53 from { 54 opacity: 0; 55 transform: translateY(20px); 56 } 57 to { 58 opacity: 1; 59 transform: translateY(0); 60 } 61 } 62 `})]})})};export{v as default};
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.