1import{a as r,j as e}from"./react.D23SOY48.js";import{u as _,f as D}from"./react-deps.BYJtbOYg.js";import{c as s,a as n}from"./emotion.DVT5q8IN.js";import{s as L,a as k,u as F,m as $,am as M,an as P,r as j}from"./useQuery.8IHTIQJ9.js";import{n as W,r as m,I as V,aw as d,aW as H,s as T,M as h,N as z,y as v,i as G,aM as U,U as q}from"./AnchorLinkCbArticle.D7lSWlmV.js";import{s as c}from"./main.DYJSYA6X.js";import{d as y,W as K,e as b,w as Q,z as X}from"./domainReducers.DFwZ465J.js";import{F as S,D as J,c as Y,o as Z,p as ee,b as u,d as te,l as w,f as p}from"./DashboardPreviewSettingsFrame.B_Cz424S.js";import{u as ie}from"./EntryRedirectPage.BdeoppcV.js";import{g as se}from"./useGetVideoExpState.CRcw66SC.js";import{u as ae}from"./useCreateVideoExp.9R-a3Zl6.js";import{S as oe}from"./StockImageRotation.D6TDDajn.js";import{showDangerToast as re}from"./toasters.DTJ-JB_V.js";import{ba as ne}from"./LogoutPage.q4jX-R9B.js";import"./messagesReducers.vu3QILHi.js";import"./usePreviewFrameBreakpoint.BxmNftw0.js";import"./DashboardFullModalFrame.CXBpcQKW.js";import"./buttons.Bv4saRqe.js";import"./index.DWpueHCC.js";import"./text.BiVczX0T.js";import"./analyticsUtil.DveZKJXV.js";import"./splitPathsBySizeLoader.De2WWJPJ.js";import"./resizeSensor.102ckI7_.js";import"./useVideoExpRecordUtility.BGDFjtNf.js";import"./useUploadFile.BolI-Eab.js";import"./assetsApi.7foBVIgc.js";import"./insightReducers.Dj-08rvU.js";import"./useIsAccountPlanSupported.a_-MVCUa.js";import"./useNewMessageCallback.m_HWlnvU.js";import"./LiveDemoPage.C49VfKVL.js";import"./KbTree.CZwDzxYp.js";import"./tree.D6mN0izg.js";import"./collapse.LhQYF8eu.js";import"./tooltip.ix_KdXro.js";import"./popoverPlacementUtils.ClvuiSYt.js";import"./popoverNextMigrationUtils.Bjr6nFI6.js";import"./overlay2.KBrsItLg.js";import"./overlayToaster.Ot9ut2fL.js";import"./messageFlowApi.BQv3ZrKY.js";s` 2 margin: 0 auto; 3 position: absolute; 4 top: 0; 5 left: 0; 6 right: 0; 7 bottom: 0; 8 display: flex; 9 justify-content: center; 10 align-items: center; 11 12 @media (max-width: ${y}) { 13 display: block; 14 position: static; 15 } 16`;const de=s` 17 border-color: ${S}; 18`,ce=s` 19 border-bottom: solid 1px ${S}; 20`;s` 21 padding-right: 20px; 22 flex: 1; 23 font-size: ${b(14)}; 24 line-height: 20px; 25`;const pe=s` 26 background: ${X}; 27 height: 100%; 28 padding: 25px; 29`,le=s` 30 word-wrap: break-word; 31`,me=s` 32 .dashboard &.p { 33 color: ${K}; 34 font-size: ${b(22)}; 35 line-height: 32px; 36 font-variation-settings: ${Q(400)}; 37 } 38`,he=s` 39 text-align: center; 40 41 @media (max-width: ${y}) { 42 padding-top: 30px; 43 } 44`;function tt(){const a=W();L(`Welcome to ${a.label.productName}`),k("");const{mobile:ue,intent:x}=F(),[xe,N]=r.useState(!1),[E,f]=r.useState(!1),{user:i,domains:C,videoExpList:A}=_(o=>({user:o.user,domains:o.domains,videoExpList:o.videoExpList}));r.useEffect(()=>{i.id&&c.dispatch($(i))},[i]);const t=C[0];r.useEffect(()=>{t!=null&&t.id&&c.dispatch(M(t))},[t==null?void 0:t.id]),r.useEffect(()=>{t!=null&&t.id&&(i!=null&&i.id)&&c.dispatch(se(i.id,t.accountId,t.id))},[t,i]),r.useEffect(()=>(window.asyncChipBotApi=window.asyncChipBotApi||[],window.asyncChipBotApi.push(["hide"]),()=>window.asyncChipBotApi.push(["resetShowHide"])),[]);const{onCreateVideoExp:I}=ae(),l=({videoExp:o,kb:B,messages:R})=>()=>{t&&(f(!0),c.dispatch(P(i.id,t.accountId,t.id,{"chipbot.featureFlags.videoExp":!!o,"chipbot.featureFlags.kb":!!B,"chipbot.featureFlags.messages":!!R})).then(()=>{if(o){const g=D(A);if(g){j(G(U,{userId:i.id,accountId:t.accountId,domainId:t.id,videoExpId:g.id}));return}return I()}j(q)}).catch(()=>{f(!1),re("Could not connect to servers, please try again.")}))};ie(()=>{if(x==="kb"){l({kb:!0})();return}if(x==="videoExp"){l({videoExp:!0})();return}N(!0)},3e3);const O=()=>{window.asyncChipBotApi=window.asyncChipBotApi||[],window.asyncChipBotApi.push(["showVideoExperience","videxp_h99ltd2j2pNt"])};return e.jsx("div",{className:"dashboard",children:e.jsx(J,{childContainerClassName:de,previewChildren:e.jsx(oe,{width:300,items:["video-files","video-upload","join"],alt:"change video",color:"green"}),children:e.jsxs("div",{className:Y,children:[e.jsx("style",{dangerouslySetInnerHTML:{__html:` 45 .chipbot-button-iframe[data-is-open="false"] { 46 display: none !important; 47 } 48 `}}),e.jsx("div",{className:ce,children:e.jsx("div",{className:Z,children:e.jsxs("div",{className:ee,children:[e.jsx(m,{className:n(u,te),children:"1"}),e.jsx("div",{className:n(w,p)}),e.jsx(m,{className:n(u,p),children:"2"}),e.jsx("div",{className:n(w,p)}),e.jsx(m,{className:n(u,p),children:"3"})]})})}),e.jsx("div",{className:n(pe),children:e.jsxs("div",{className:he,children:[e.jsx(V,{src:a.assets.landscapeLogoSrc,alt:a.label.productName,maxWidth:230}),e.jsx(d,{delay:.2,children:e.jsx(H,{light:!0,children:"Welcome"})}),e.jsx(d,{delay:.5,children:e.jsx(T,{className:le,light:!0,children:i.profile.name})}),e.jsx(d,{delay:1.8,children:e.jsxs(h,{className:me,light:!0,children:["Let's get started on your first",` ${a.label.productName} `,"face-to-face video.",e.jsx("br",{}),e.jsx(z,{children:"It's going to be amazing!"})]})}),e.jsxs(d,{delay:1.8,children:[a.isMainApp&&e.jsx(h,{light:!0,children:"Need a quick ChipBot video overview?"}),a.isMainApp&&e.jsx(h,{children:e.jsx(v,{onClick:O,intent:"success",rightIcon:e.jsx("i",{className:ne}),large:!0,outlined:!0,children:"Watch Overview"})}),e.jsx(v,{intent:"success",large:!0,disabled:E,onClick:l({videoExp:!0}),children:"Start Now"})]})]})})]})})})}export{tt 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.