aiware-js 1.0.0-master.1865 → 1.0.0-master.1866
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.umd.js +1 -1
- package/index.umd.min.js +1 -1
- package/js-core.umd.js +1 -1
- package/js-core.umd.min.js +1 -1
- package/locales/es.json +1 -1
- package/locales/fr.json +1 -1
- package/package.json +1 -1
package/index.umd.js
CHANGED
|
@@ -3252,7 +3252,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
3252
3252
|
`}
|
|
3253
3253
|
</body>
|
|
3254
3254
|
</html>
|
|
3255
|
-
`,Yhf=()=>{let e=ZA(),[t]=tj(),{config:n,tosFile:r,privacyPolicyUrl:i,registerUri:a}=KN(),o=(0,Ghf.useRef)(null),[s,c]=(0,Ghf.useState)({content:``,fileType:`unknown`}),[l,u]=(0,Ghf.useState)(!1),d=async()=>{let n=decodeURIComponent(t.get(`email`)),i=decodeURIComponent(t.get(`token`)),o=decodeURIComponent(t.get(`referer`)),s=decodeURIComponent(t.get(`userId`)),c=decodeURIComponent(t.get(`redirect`));if(o===`login`&&r?.fileId)try{if((await duf(i,s,r.fileId,new Date().toUTCString())).errors){alert(`Something went wrong while saving your terms of service acceptance`);return}if(c)window.location.href=c;else{let e=vN()?vN()+`/api/admin/switch-app`:_N().switchAppUrl;window.location.href=e+`/default`}return}catch(e){console.error(`Error updating user setting:`,e)}e({pathname:`${a}/join`,search:`?email=${encodeURIComponent(n)}&token=${encodeURIComponent(i)}`})};return(0,Ghf.useEffect)(()=>{s.fileType===`unknown`&&(async()=>{if(r?.url){u(!0);try{c(await qhf(r.url,s.fileType))}catch(e){console.error(`Error loading content:`,e)}finally{u(!1)}}})()},[r,s]),(0,Ghf.useEffect)(()=>{o.current&&(o.current.srcdoc=Jhf(s.content,s.fileType))},[s]),(0,Ghf.useEffect)(()=>{let n=t.has(`email`),i=t.has(`token`);!n&&!i?e(a):n&&i&&!r&&d()},[t,r]),(0,uP.jsxs)(H,{gap:3,sx:{width:`750px`,position:`relative`,left:`50%`,transform:`translateX(-50%)`},children:[l?(0,uP.jsx)(B,{sx:{display:`flex`,justifyContent:`center`},children:(0,uP.jsx)(Fm,{})}):r&&(0,uP.jsx)(B,{children:(0,uP.jsx)(`iframe`,{ref:o,title:r.name,style:Khf.iframeStyles,...Khf.iframe})}),i&&(0,uP.jsx)(z,{variant:`body2`,textAlign:`center`,component:`a`,target:`_blank`,href:i.url,sx:Khf.privacyPolicy,"data-testid":`os-auth-register-privacy-policy`,children:`Privacy Policy`}),(0,uP.jsx)(B,{sx:Khf.buttonContainer,children:(0,uP.jsx)(CN,{text:`Accept & Continue`,type:`button`,onClick:d,buttonColor:n?.uiSettings?.registrationButtonStyle?.backgroundColor,buttonTextColor:n?.uiSettings?.registrationButtonStyle?.textColor,testId:`os-auth-register-accept-continue-button`})})]})}})),Zhf=c((e=>{var t=zu();Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=t(cx()),r=L();e.default=(0,n.default)((0,r.jsx)(`path`,{d:`M18 15v3H6v-3H4v3c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2v-3h-2zm-1-4-1.41-1.41L13 12.17V4h-2v8.17L8.41 9.59 7 11l5 5 5-5z`}),`FileDownloadOutlined`)})),Qhf=c((e=>{var t=zu();Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=t(cx()),r=L();e.default=(0,n.default)([(0,r.jsx)(`path`,{d:`M19 8h-1V3H6v5H5c-1.66 0-3 1.34-3 3v6h4v4h12v-4h4v-6c0-1.66-1.34-3-3-3zM8 5h8v3H8V5zm8 12v2H8v-4h8v2zm2-2v-2H6v2H4v-4c0-.55.45-1 1-1h14c.55 0 1 .45 1 1v4h-2z`},`0`),(0,r.jsx)(`circle`,{cx:`18`,cy:`11.5`,r:`1`},`1`)],`PrintOutlined`)})),$hf,egf,tgf,dP,ngf,rgf,igf,agf=s((()=>{W(),$hf=d(g()),egf=d(Zhf()),tgf=d(Qhf()),qN(),dP=L(),ngf=async e=>{let t=e.toLowerCase();if(t.endsWith(`.pdf`)||t.includes(`.pdf?`))return`pdf`;if(t.endsWith(`.txt`)||t.endsWith(`.text`)||t.endsWith(`.html`))return`text`;try{let t=(await fetch(e,{method:`HEAD`})).headers.get(`content-type`)||``;if(t.includes(`pdf`))return`pdf`;if(t.includes(`text`)||t.includes(`html`))return`text`}catch(e){return console.error(`Error detecting file type:`,e),`pdf`}return`pdf`},rgf=async e=>{try{let t=await fetch(e);if(!t.ok)throw Error(`HTTP error! status: ${t.status}`);return await t.text()}catch(e){throw console.error(`Error fetching text content:`,e),e}},igf=()=>{let{tosFile:e}=KN(),[t,n]=(0,$hf.useState)({content:``,fileType:`unknown`}),[r,i]=(0,$hf.useState)(!1),[a,o]=(0,$hf.useState)(null);return(0,$hf.useEffect)(()=>{(async()=>{if(!(!e?.url||a===e.url)){i(!0);try{await ngf(e.url)===`pdf`?n({content:e.url,fileType:`pdf`}):n({content:await rgf(e.url),fileType:`text`}),o(e.url)}catch(t){console.error(`Error loading terms content:`,t),n({content:e.url,fileType:`pdf`}),o(e.url)}finally{i(!1)}}})()},[e?.url,a]),e?(0,dP.jsxs)(B,{sx:{width:`100%`,mb:3},children:[(0,dP.jsxs)(H,{direction:`row`,justifyContent:`space-between`,alignItems:`center`,sx:{mb:1},children:[(0,dP.jsx)(z,{sx:{color:`#212121`,fontSize:`12px`,fontFamily:`Nunito`},children:`Terms & Conditions`}),(0,dP.jsxs)(H,{direction:`row`,spacing:1,children:[(0,dP.jsx)(Bf,{size:`small`,onClick:()=>{e?.url&&window.open(e.url,`_blank`)},disabled:r,"aria-label":`Download Terms & Conditions`,sx:{color:`#555F7C`},"data-testid":`os-auth-register-terms-and-conditions-download-button`,children:(0,dP.jsx)(egf.default,{})}),(0,dP.jsx)(Bf,{size:`small`,onClick:()=>{if(t.fileType===`pdf`&&t.content){let e=window.open(t.content,`_blank`);e&&(e.onload=()=>{e.print()})}else if(t.content){let e=window.open(``,`_blank`);if(e){let{document:n}=e;n.title=`Terms & Conditions`;let r=n.createElement(`style`);r.textContent=`body { font-family: Arial, sans-serif; padding: 20px; line-height: 1.6; } pre { white-space: pre-wrap; }`,n.head&&n.head.appendChild(r);let i=n.createElement(`h1`);i.textContent=`Terms & Conditions`;let a=n.createElement(`pre`);a.textContent=t.content,n.body&&(n.body.appendChild(i),n.body.appendChild(a)),e.focus(),e.print()}}},disabled:r||!t.content,"aria-label":`Print Terms & Conditions`,sx:{color:`#555F7C`},"data-testid":`os-auth-register-terms-and-conditions-print-button`,children:(0,dP.jsx)(tgf.default,{})})]})]}),(0,dP.jsx)(B,{sx:{width:`100%`,height:`200px`,border:`1px solid #E0E0E0`,borderRadius:`6px`,overflowY:t.fileType===`pdf`?`hidden`:`auto`,overflowX:`hidden`,padding:t.fileType===`pdf`?0:2,backgroundColor:`#FAFAFA`},children:r?(0,dP.jsx)(B,{sx:{display:`flex`,justifyContent:`center`,alignItems:`center`,height:`100%`},children:(0,dP.jsx)(Fm,{size:24})}):t.fileType===`pdf`?(0,dP.jsx)(B,{component:`iframe`,src:t.content,sx:{width:`100%`,height:`100%`,border:`none`,borderRadius:`6px`},title:`Terms & Conditions PDF`}):t.content?(0,dP.jsx)(z,{variant:`body2`,component:`pre`,sx:{whiteSpace:`pre-wrap`,wordWrap:`break-word`,fontFamily:`inherit`,margin:0,lineHeight:1.6},children:t.content}):(0,dP.jsx)(z,{variant:`body2`,color:`#212121`,children:`Unable to load terms content.`})})]}):null}})),ogf,sgf,cgf,lgf=s((()=>{ogf=d(g(),1),sgf=`GoogleReCaptcha Context has not yet been implemented, if you are using useGoogleReCaptcha hook, make sure the hook is called inside component wrapped by GoogleRecaptchaProvider`,cgf=(0,ogf.createContext)({instance:void 0,siteKey:``,language:``,isLoading:!0,executeV3:()=>{throw Error(sgf)},executeV2Invisible:()=>{throw Error(sgf)},reset:()=>{throw Error(sgf)},getResponse:()=>{throw Error(sgf)},render:()=>{throw Error(sgf)}})})),ugf,dgf,fgf=s((()=>{lgf(),ugf=d(g(),1),dgf=()=>(0,ugf.useContext)(cgf)})),pgf,mgf=s((()=>{pgf=()=>!!document.querySelector(`script[src*="/recaptcha/"]:not([src*="gstatic"])`)})),hgf,ggf=s((()=>{hgf=()=>`.grecaptcha-badge{display: none !important;}`})),_gf,vgf=s((()=>{_gf=({host:e=`google.com`,isEnterprise:t=!1,render:n,hl:r,badge:i})=>{let a=new URLSearchParams({...r&&{hl:r},...i&&{badge:i},render:n});return`https://www.${e}/recaptcha/${t?`enterprise.js`:`api.js`}?${a}`}})),ygf,bgf=s((()=>{ggf(),ygf=()=>{let e=document.createElement(`style`);e.innerHTML=hgf(),document.body.appendChild(e)}})),xgf,Sgf=s((()=>{vgf(),xgf=({onload:e,appendTo:t=`head`,isEnterprise:n=!1,host:r,render:i,badge:a,hl:o,...s})=>{let c=_gf({host:r,isEnterprise:n,render:i,hl:o,badge:a}),l=document.createElement(`script`);Object.entries(s).forEach(([e,t])=>{l.setAttribute(e,t?.toString()??``)}),l.src=c,l.onload=e,document[t].appendChild(l)}})),Cgf,wgf=s((()=>{Cgf=()=>{let e=document.querySelector(`.grecaptcha-badge`);e&&e.parentNode&&document.body.removeChild(e.parentNode)}})),Tgf,Egf=s((()=>{Tgf=e=>{let t=document.getElementById(e);if(t)for(;t.lastChild;)t.lastChild.remove()}})),Dgf,Ogf,kgf=s((()=>{Dgf=`https://www.gstatic.com/recaptcha/releases`,Ogf=()=>{window.___grecaptcha_cfg=void 0;let e=document.querySelector(`script[src*="/recaptcha/"]:not([src*="gstatic"])`);e&&e.remove();let t=document.querySelector(`script[src^="${Dgf}"]`);t&&t.remove()}})),Agf=s((()=>{mgf(),bgf(),Sgf(),wgf(),Egf(),kgf()})),jgf,Mgf,Ngf,Pgf,Fgf=s((()=>{fgf(),Agf(),jgf=d(g(),1),Mgf=L(),Ngf=`google-recaptcha-badge-container`,Pgf=({id:e=Ngf,theme:t,language:n,badge:r=`bottomright`,onChange:i,onError:a,onExpired:o})=>{let s=(0,jgf.useRef)(null),c=dgf(),l=t??c.theme,u=n??c.language;return(0,jgf.useEffect)(()=>{if(!c.render)return;let t=document.createElement(`div`),n={sitekey:c.siteKey,badge:r,size:`invisible`,callback:i,"expired-callback":o,"error-callback":a,theme:l,...u&&{hl:u}};return c.render(t,n),s.current&&s.current.appendChild(t),()=>{Tgf(e)}},[c.render,c.siteKey,r,i,a,o,l,u]),!c.render||!c.siteKey?null:(0,Mgf.jsx)(`div`,{ref:s,id:e})}})),Igf,Lgf,Rgf=s((()=>{Igf=d(g(),1),Lgf=(e=!1)=>{let[t,n]=(0,Igf.useState)(e);return[t,e=>n(t=>e??!t)]}})),zgf=s((()=>{Rgf()})),Bgf,Vgf,Hgf,Ugf,Wgf,Ggf=s((()=>{lgf(),Agf(),Bgf=d(g(),1),Vgf=L(),zgf(),Hgf=`onGoogleReCaptchaLoad`,Ugf=`google-recaptcha-container`,Wgf=({type:e,siteKey:t,language:n,scriptProps:r,isEnterprise:i=!1,host:a,theme:o=`light`,children:s,explicit:c,onLoad:l,onError:u})=>{let[d,f]=Lgf(!0),p=(0,Bgf.useRef)(void 0);(0,Bgf.useEffect)(()=>{let s=r?.id??`google-recaptcha-${e}-script`,d=pgf();try{let m=()=>{f(!0);let n=i?window.grecaptcha?.enterprise:window.grecaptcha;if(!n){u?.(),f(!1);return}if(c||n.ready(async()=>{p.current=n,await l?.(n),f(!1)}),c){let r={size:e===`v3`||e===`v2-invisible`?`invisible`:`normal`,...(e===`v3`||e===`v2-invisible`)&&{badge:`bottomright`},sitekey:t,theme:o,...typeof c==`object`&&{...c,"expired-callback":c.expiredCallback,"error-callback":c.errorCallback}};d||typeof c==`object`&&(e===`v3`||e===`v2-invisible`)&&c?.badge===`hidden`&&ygf(),n.ready(async()=>{typeof c==`object`&&c.container&&n.render(c.container,r,!!c.inherit),p.current=n,l&&await l(n),f(!1)})}};return window[Hgf]=m,d?m():xgf({isEnterprise:i,host:a,...(e===`v3`||e===`v2-invisible`)&&typeof c==`object`&&c?.badge&&{badge:c?.badge===`hidden`?`bottomright`:c?.badge},...n&&{hl:n},render:c||e===`v2-checkbox`?`explicit`:t,...r,onload:m,id:s}),()=>{pgf()&&Ogf(),typeof c==`object`&&(e===`v3`||e===`v2-invisible`)&&!c?.container&&c?.badge?Tgf(Ugf):Cgf()}}catch{f(!1)}},[i,n,a,t,e]);let m=e=>{if(!p.current?.execute)throw Error(`Google ReCaptcha has not been loaded`);return p.current.execute(t,{action:e})},h=e=>{if(!p.current?.execute)throw Error(`Google ReCaptcha has not been loaded`);return p.current.execute(e)},g=(0,Bgf.useMemo)(()=>({instance:p.current,siteKey:t,isLoading:d,theme:o,executeV2Invisible:h,executeV3:m,reset:p.current?.reset,getResponse:p.current?.getResponse,render:p.current?.render,...n&&{language:n}}),[t,d,n]);return(0,Vgf.jsx)(cgf.Provider,{value:g,children:s})}})),Kgf=s((()=>{fgf(),Fgf(),Ggf()}));function qgf(){let{config:e,tosFile:t}=KN(),n=!!t?.url,r=Lpf(),{executeV2Invisible:i,reset:a}=dgf(),o=(0,Jgf.useRef)(null),s=(0,Jgf.useCallback)(e=>{o.current?.(e),o.current=null},[]),{onSubmit:c,errorMessage:l,setErrorMessage:u}=$gf({getRecaptchaToken:(0,Jgf.useCallback)(()=>new Promise((e,t)=>{if(!i){t(Error(`reCAPTCHA is not ready`));return}o.current=n=>{if(!n){t(Error(`reCAPTCHA returned an empty token`));return}e(n)},i()}),[i]),onRegistrationFailure:(0,Jgf.useCallback)(()=>a?.(),[a])}),d=[{fieldKey:`firstName`,title:`First Name`,type:`text`,required:!0},{fieldKey:`lastName`,title:`Last Name`,type:`text`,required:!0},{fieldKey:`company`,title:`Company`,type:`text`,required:!0},{fieldKey:`email`,title:`Email`,type:`text`,required:!0},{fieldKey:`password`,title:`Password`,type:`password`,required:!0},{fieldKey:`confirmPassword`,title:`Confirm Password`,type:`password`,required:!0}],f=Ate($u().breakpoints.down(`md`)),p=Ate(`(max-height: 800px)`);return(0,fP.jsxs)(B,{sx:{width:xdf,...(f||p)&&{height:`588px`,overflowY:`auto`,overflowX:`hidden`,paddingTop:1}},children:[(0,fP.jsx)(vMd,{htmlFormId:Ygf,schema:e?.uiSettings?.customRegistrationFields,additionalFields:d,passwordPolicy:e?.uiSettings?.passwordPolicy,renderFormActions:({isSubmitting:t,isValid:i,htmlFormId:a})=>(0,fP.jsxs)(H,{gap:2,children:[(0,fP.jsx)(igf,{}),(0,fP.jsx)(Olf,{hasTos:n,loading:r.isPending,isSubmitting:t,disabled:!i,buttonColor:e?.uiSettings?.registrationButtonStyle?.backgroundColor,buttonTextColor:e?.uiSettings?.registrationButtonStyle?.textColor,htmlForm:a})]}),onSubmit:c,sx:{width:`100%`}}),(0,fP.jsx)(Pgf,{badge:`inline`,onChange:s,style:{display:`none`}}),l&&(0,fP.jsx)(Xpf,{open:!!l,message:l,onClose:()=>u(null)})]})}var Jgf,fP,Ygf,Xgf,Zgf,Qgf,$gf,e_f=s((()=>{Jgf=d(g()),rj(),pO(),Kgf(),qN(),wN(),W(),LN(),bN(),agf(),Zpf(),fP=L(),Ygf=`registration-join-form`,Xgf=()=>{let e=slf();return e?(0,fP.jsx)(Wgf,{type:`v2-invisible`,siteKey:e,children:(0,fP.jsx)(qgf,{})}):(WE(Error(`Registration recaptcha site key is not configured`)),(0,fP.jsx)(B,{sx:{width:xdf},children:(0,fP.jsx)(Kf,{severity:`error`,children:`Registration is unavailable due to a configuration issue. Please contact support.`})}))},Zgf=new Map([[`registration_not_approved`,XN.RegistrationNotApproved],[`account_exists`,XN.AccountExists],[`registration_configuration_invalid`,XN.RegistrationConfigurationInvalid]]),Qgf=({status:e,code:t,message:n})=>{if(t){let e=Zgf.get(t);if(e)return ZN[e];if(typeof n==`string`&&n)return{description:n}}switch(e){case 401:return ZN[XN.CaptchaError];case 400:return ZN[XN.RegistrationError];case 409:return ZN[XN.InviteExists];default:return ZN[XN.EnvError]}},$gf=({getRecaptchaToken:e,onRegistrationFailure:t})=>{let n=ZA(),[r]=tj(),{config:i,registerUri:a}=KN(),o=Lpf(),[s,c]=(0,Jgf.useState)(null);return{onSubmit:(0,Jgf.useCallback)(async s=>{try{let l=i.id,u=i.slug,d=i?.adminApprovalRequired??!1,f=r.get(`email`),p=s?.email||(f?decodeURIComponent(f):``),m=i?.allowedDomains??[];if(m.length>0&&p){let e=p.split(`@`)[1]?.toLowerCase();if(!m.some(t=>t.toLowerCase()===e)){c({title:`Email Domain Not Allowed`,description:`Please use an email address from one of the allowed domains: ${m.join(`, `)}`});return}}let h=s?.firstName??``,g=s?.lastName??``,_=s?.password??``,v=new Set([`firstName`,`lastName`,`email`,`password`,`confirmPassword`]),y=i?.uiSettings?.customRegistrationFields?.properties??{},b=Object.keys(s).reduce((e,t)=>{if(!v.has(t)){let n=s[t];y[t]?.type===`number`&&isFinite(Number(n))?e[t]=Number(n):e[t]=n}return e},{}),x=await e(),S=await o.mutateAsync({slug:u,orgRegistrationId:l,email:p,customFields:b,firstName:h,lastName:g,password:_,captchaResponse:x});if(S?.status===201){let e=d?`submitted`:`approved`;n({pathname:`${a}/success`,search:`?status=${e}`})}else c(Qgf(S)),t?.()}catch(e){WE(e),c(ZN[XN.EnvError]),t?.()}},[i,e,n,t,a,r,o]),errorMessage:s,setErrorMessage:c}}})),t_f,n_f,r_f=s((()=>{rj(),nw(),qN(),LN(),cdf(),SN(),t_f=L(),Ihf(),Whf(),Xhf(),agf(),e_f(),n_f=()=>{let{config:e,isLoading:t}=KN(),n=LC({defaultValues:{email:``,acceptedTos:!1}}),r=()=>{let t=e?.name?.trim();return t?`Welcome to ${t} Registration`:`Welcome to Registration`};return t?(0,t_f.jsx)(sdf,{}):(0,t_f.jsx)(JC,{...n,children:(0,t_f.jsxs)(IN,{loginConfigs:{name:e?.name??``,logo:e?.uiSettings?.logo,buttonColor:e?.uiSettings?.registrationButtonStyle?.backgroundColor,buttonTextColor:e?.uiSettings?.registrationButtonStyle?.textColor,hideVeritoneBranding:e?.uiSettings?.veritoneBranding},children:[(0,t_f.jsx)(xN,{text:r(),type:`register`,subText:`Please enter the information you would like associated with your account and accept our Terms & Conditions. This is the first step on your way to exploring all of the amazing content we have to offer!`,sx:{textAlign:`left`,fontWeight:`700`,fontSize:`16px`},subTextSx:{textAlign:`left`,fontSize:`12px`}}),(0,t_f.jsx)(NQd,{})]})})}})),pP,i_f,a_f,o_f=s((()=>{rj(),$pf(),nmf(),amf(),smf(),umf(),pmf(),Nmf(),Lmf(),Umf(),Ymf(),ehf(),chf(),ghf(),Thf(),Nhf(),r_f(),pP=L(),i_f=()=>{let{slug:e}=bQd(),t=XA(),n=t.pathname.split(`/`),r=n.findIndex(e=>e===`register`),i=n.slice(r+(e?2:1)).join(`/`),a=`../signup`;e&&(a+=`/${e}`),i&&(a+=`/${i}`);let o=t.search;return(0,pP.jsx)(MQd,{to:a+o,replace:!0})},a_f=({aiwareInit:e,allowVanityDomain:t=!1,onLoginSuccess:n})=>(0,pP.jsxs)(FQd,{children:[(0,pP.jsx)(QA,{path:`/login`,element:(0,pP.jsx)(Qpf,{allowVanityDomain:t,onLoginSuccess:n})}),(0,pP.jsx)(QA,{path:`/login/:slug`,element:(0,pP.jsx)(Qpf,{allowVanityDomain:t,onLoginSuccess:n})}),(0,pP.jsx)(QA,{path:`/forgot`,element:(0,pP.jsx)(tmf,{})}),(0,pP.jsx)(QA,{path:`/forgot/:slug`,element:(0,pP.jsx)(tmf,{})}),(0,pP.jsx)(QA,{path:`/sign-up`,element:(0,pP.jsx)(MQd,{to:`../signup`,replace:!0})}),(0,pP.jsx)(QA,{path:`/register`,element:(0,pP.jsx)(MQd,{to:`../signup`,replace:!0})}),(0,pP.jsx)(QA,{path:`/register/:slug/*`,element:(0,pP.jsx)(i_f,{})}),(0,pP.jsx)(QA,{path:`/signup`,element:(0,pP.jsx)(Mmf,{})}),(0,pP.jsx)(QA,{path:`/signup/verify`,element:(0,pP.jsx)(fhf,{})}),(0,pP.jsx)(QA,{path:`/signup/review`,element:(0,pP.jsx)(xhf,{})}),(0,pP.jsx)(QA,{path:`/signup/trial/verify`,element:(0,pP.jsx)(khf,{})}),(0,pP.jsxs)(QA,{path:`/signup/:slug/*`,element:(0,pP.jsx)(n_f,{}),children:[(0,pP.jsx)(QA,{path:`join`,element:(0,pP.jsx)(Xgf,{})}),(0,pP.jsx)(QA,{path:`success`,element:(0,pP.jsx)(ahf,{})}),(0,pP.jsx)(QA,{index:!0,element:(0,pP.jsx)(Fhf,{})}),(0,pP.jsx)(QA,{path:`confirm`,element:(0,pP.jsx)(Vhf,{})}),(0,pP.jsx)(QA,{path:`terms-of-service`,element:(0,pP.jsx)(Yhf,{})})]}),(0,pP.jsx)(QA,{path:`/plans`,element:(0,pP.jsx)(Hmf,{})}),(0,pP.jsx)(QA,{path:`/payment-result`,element:(0,pP.jsx)(Jmf,{})}),(0,pP.jsx)(QA,{path:`/restricted-provider`,element:(0,pP.jsx)(imf,{})}),(0,pP.jsx)(QA,{path:`/link-oid`,element:(0,pP.jsx)(omf,{})}),(0,pP.jsx)(QA,{path:`/reset-password/success`,element:(0,pP.jsx)(fmf,{})}),(0,pP.jsx)(QA,{path:`/reset-password`,element:(0,pP.jsx)(lmf,{})}),(0,pP.jsx)(QA,{path:`/activate`,element:(0,pP.jsx)(Imf,{})}),(0,pP.jsx)(QA,{path:`/logout`,element:(0,pP.jsx)($mf,{aiwareInit:e})})]})})),s_f=l({AuthRoutes:()=>a_f,ResetPassword:()=>Ruf,getConfig:()=>_N,getRestApiUrlFromConfig:()=>vN}),c_f=s((()=>{zuf(),o_f(),bN()}));function*l_f(){let e=yield I(Dv);yield Vi(T_f,function*(t){let n=yield M9e(t.payload.ids,e);n!==void 0&&(yield P(Y_f(n)))})}function*u_f(){yield Vi(g_f,function*(e){yield P(W_f(!0));let t=yield I(Dv),n;switch(e.payload.ownerType){case Nb.ORGANIZATION:n=yield A9e({name:e.payload.name,owned:!1,offset:0,limit:300,authToken:t});break;case Nb.MINE:n=yield A9e({name:e.payload.name,owned:!0,offset:0,limit:300,authToken:t});break;case Nb.SHARED:n=yield A9e({name:e.payload.name,owned:!1,offset:0,limit:300,authToken:t});break;case Nb.NOTEBOOKS:n=yield A9e({name:e.payload.name,owned:!0,offset:0,limit:300,authToken:t,isNotebook:!0});break;default:break}n!==void 0&&n&&(n.data.engines.records.length===0&&!e.payload.name&&(yield P(fvf(!0))),e.payload.ownerType===Nb.NOTEBOOKS?yield P(rvf(n.data.engines.records)):yield P(nvf(n.data.engines.records))),yield P(ovf(!1)),yield P(W_f(!1))})}function*d_f(){yield Vi(P_f,function*(e){let t=yield I(Dv),n=yield A9e({name:e.payload.name,owned:!0,offset:0,limit:300,authToken:t,isNotebook:!0});n!==void 0&&n&&(yield P(rvf(n.data.engines.records))),yield P(ovf(!1))})}function*f_f(){yield Vi(L_f,function*(){let e=yield F(k9e,yield I(Dv),{isPublic:!0,limit:200});e&&e.data&&e.data.flowTemplates&&e.data.flowTemplates.records&&e.data.flowTemplates.records.length>0&&(yield P(q_f(e.data.flowTemplates.records)),yield P(J_f(e.data.flowTemplates.records)))})}function*p_f(){yield Vi(v_f,function*(){let e,t=yield I(Dv);try{e=yield F(N9e,t)}catch{yield P({type:y_f,payload:!1})}(0,h_f.get)(e,`data.flowRevisions`,``)&&(yield P({type:y_f,payload:!0}))})}function*m_f(){yield Ur([l_f(),d_f(),u_f(),f_f(),p_f()])}var h_f,g_f,__f,v_f,y_f,b_f,x_f,S_f,C_f,w_f,T_f,E_f,D_f,O_f,k_f,A_f,j_f,M_f,N_f,P_f,F_f,I_f,L_f,R_f,z_f,B_f,V_f,H_f,U_f,W_f,G_f,mP,K_f,q_f,J_f,Y_f,X_f,Z_f,Q_f,$_f,evf,tvf,nvf,rvf,ivf,avf,ovf,svf,cvf,lvf,uvf,dvf,fvf,pvf,mvf,hP=s((()=>{ov(),qi(),Fb(),X(),h_f=d(mb()),g_f=`flow-center/FETCH_FLOWS`,__f=`flow-center/ADD_NEW_FLOW`,v_f=`flow-center/IS_REVISIONS_EXIST_ON_SERVER`,y_f=`flow-center/SET_IS_REVISIONS_EXIST_ON_SERVER`,b_f=`flow-center/SET_FETCHING_FLOWS`,x_f=`flow-center/SET_OPEN_TEMPLATE`,S_f=`flow-center/SET_TEMPLATE_SELECTED`,C_f=`flow-center/SET_TEMPLATES`,w_f=`flow-center/SET_FILTERED_TEMPLATES_ACTION`,T_f=`flow-center/FETCH_TAGS`,E_f=`flow-center/SET_TAGS`,D_f=`flow-center/SET_TAGS_TO_STORE`,O_f=`flow-center/SET_CATEGORIES`,k_f=`flow-center/SET_TEMPLATES_AUTHORS`,A_f=`flow-center/SET_SELECTED_FILTERS`,j_f=`flow-center/SET_TAG`,M_f=`flow-center/SET_FLOWS`,N_f=`flow-center/SET_NOTEBOOKS`,P_f=`flow-center/FETCH_NOTEBOOKS`,F_f=`flow-center/TOGGLE_IS_SEARCHING`,I_f=`flow-center/TOGGLE_IS_SEARCHING_LOADING`,L_f=`flow-center/SEARCH_TEMPLATES`,R_f=`flow-center/SET_SEARCHED`,z_f=`flow-center/SET_SEARCHED_TEMPLATES`,B_f=`flow-center/SET_CONFIG`,V_f=`flow-center/TOGGLE_STATE_CREATE_NEW_FLOW`,H_f=`flow-center/SET_SHOULD_CREATE_INITIAL_FLOWS`,U_f=`flow-center/GET_NODE_RED_VERSION_EDGE`,W_f=rv(b_f),G_f=rv(v_f),mP=rv(x_f),K_f=rv(S_f),q_f=rv(C_f),J_f=rv(w_f),rv(T_f),Y_f=rv(E_f),X_f=rv(D_f),Z_f=rv(O_f),Q_f=rv(k_f),$_f=rv(A_f),rv(j_f),evf=rv(g_f),tvf=rv(P_f),nvf=rv(M_f),rvf=rv(N_f),ivf=rv(__f),avf=rv(F_f),ovf=rv(I_f),svf=rv(L_f),cvf=rv(R_f),lvf=rv(z_f),uvf=rv(B_f),dvf=rv(V_f),fvf=rv(H_f),rv(U_f),pvf=aGe({flows:[],notebooks:[],shouldCreateInitialFlows:!1,fetchingFlows:!1,templateToOpen:{},isTemplateSelected:!1,tags:[],categories:[],templatesAuthors:[],templates:[],filteredTemplates:[],selectedFilters:{},isSearching:!1,isSearchingLoading:!1,searched:``,searchedTemplates:null,config:{isFullScreen:!1,automateFullScreen:!1,zIndex:0,graphQLEndpoint:``,defaultCluster:``},isLoadingCreateNewFlow:!1,isRevisionsExistOnServer:!1},{[g_f]:e=>({...e}),[__f]:(e,{payload:t})=>({...e,flows:[t,...e.flows]}),[b_f]:(e,{payload:t})=>({...e,fetchingFlows:t}),[x_f]:(e,{payload:t})=>({...e,templateToOpen:t}),[S_f]:(e,{payload:t})=>({...e,isTemplateSelected:t}),[E_f]:(e,{payload:t})=>({...e,tags:t}),[D_f]:(e,{payload:t})=>({...e,tags:t}),[O_f]:(e,{payload:t})=>({...e,categories:t}),[k_f]:(e,{payload:t})=>({...e,templatesAuthors:t}),[A_f]:(e,{payload:t})=>({...e,selectedFilters:t}),[C_f]:(e,{payload:t})=>({...e,templates:t}),[w_f]:(e,{payload:t})=>({...e,filteredTemplates:t}),[j_f]:(e,{payload:t})=>({...e,tag:t}),[M_f]:(e,{payload:t})=>({...e,flows:t}),[N_f]:(e,{payload:t})=>({...e,notebooks:t}),[F_f]:(e,{payload:t})=>({...e,isSearching:t}),[I_f]:(e,{payload:t})=>({...e,isSearchingLoading:t}),[R_f]:(e,{payload:t})=>({...e,searched:t}),[z_f]:(e,{payload:t})=>({...e,searchedTemplates:t}),[B_f]:(e,{payload:t})=>({...e,config:t}),[V_f]:(e,{payload:t})=>({...e,isLoadingCreateNewFlow:t}),[y_f]:(e,{payload:t})=>({...e,isRevisionsExistOnServer:t}),[H_f]:(e,{payload:t})=>({...e,shouldCreateInitialFlows:t})}),mvf=`flows`}));function*hvf(){yield Ur([m_f()])}var gvf=s((()=>{qi(),hP()})),_vf,vvf,yvf,bvf,xvf,Svf,Cvf=s((()=>{ov(),_vf=`newFlowClusterID`,vvf={newFlowClusterID:``},yvf=iv({name:_vf,initialState:vvf,reducers:{newFlowClusterIDAction(e,t){e.newFlowClusterID=t.payload}}}),bvf=e=>e?.newFlowClusterID||null,{newFlowClusterIDAction:xvf}=yvf.actions,Svf=yvf.reducer})),wvf,Tvf=s((()=>{Cvf(),wvf=Svf})),Evf,Dvf,Ovf,kvf,Avf,jvf=s((()=>{ov(),Evf=`engineDistributionType`,Dvf={engineDistributionType:`instance_locked`},Ovf=iv({name:Evf,initialState:Dvf,reducers:{engineDistributionTypeAction(e,t){e.engineDistributionType=t.payload}}}),{engineDistributionTypeAction:kvf}=Ovf.actions,Avf=Ovf.reducer})),Mvf,Nvf=s((()=>{jvf(),Mvf=Avf}));function Pvf(){return{id:`flow-center`,reducerMap:{[mvf]:pvf,[Fvf]:wvf,[Ivf]:Mvf,[Lvf]:rot},sagas:[hvf],initialActions:[]}}var Fvf,Ivf,Lvf,Rvf,zvf=s((()=>{hP(),gvf(),Tvf(),Nvf(),j_(),X(),Fvf=`newFlowClusterID`,Ivf=`engineDistributionType`,Lvf=`flowCenterDialog`,A_.addModules([Pvf()]),Rvf=A_})),Bvf=c((e=>{var t=zu();Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=t(cx()),r=L();e.default=(0,n.default)((0,r.jsx)(`path`,{d:`M14 6V4h-4v2h4zM4 8v11h16V8H4zm16-2c1.11 0 2 .89 2 2v11c0 1.11-.89 2-2 2H4c-1.11 0-2-.89-2-2l.01-11c0-1.11.88-2 1.99-2h4V4c0-1.11.89-2 2-2h4c1.11 0 2 .89 2 2v2h4z`}),`WorkOutlineOutlined`)})),Vvf=c((e=>{var t=zu();Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=t(cx()),r=L();e.default=(0,n.default)((0,r.jsx)(`path`,{d:`M16.67 13.13C18.04 14.06 19 15.32 19 17v3h4v-3c0-2.18-3.57-3.47-6.33-3.87zM15 12c2.21 0 4-1.79 4-4s-1.79-4-4-4c-.47 0-.91.1-1.33.24C14.5 5.27 15 6.58 15 8s-.5 2.73-1.33 3.76c.42.14.86.24 1.33.24zm-6 0c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0-6c1.1 0 2 .9 2 2s-.9 2-2 2-2-.9-2-2 .9-2 2-2zm0 7c-2.67 0-8 1.34-8 4v3h16v-3c0-2.66-5.33-4-8-4zm6 5H3v-.99C3.2 16.29 6.3 15 9 15s5.8 1.29 6 2v1z`}),`PeopleAltOutlined`)})),Hvf=c((e=>{var t=zu();Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=t(cx()),r=L();e.default=(0,n.default)((0,r.jsx)(`path`,{d:`M12 5.9c1.16 0 2.1.94 2.1 2.1s-.94 2.1-2.1 2.1S9.9 9.16 9.9 8s.94-2.1 2.1-2.1m0 9c2.97 0 6.1 1.46 6.1 2.1v1.1H5.9V17c0-.64 3.13-2.1 6.1-2.1M12 4C9.79 4 8 5.79 8 8s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4zm0 9c-2.67 0-8 1.34-8 4v3h16v-3c0-2.66-5.33-4-8-4z`}),`PersonOutlineOutlined`)})),Uvf=c((e=>{var t=zu();Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=t(cx()),r=L();e.default=(0,n.default)((0,r.jsx)(`path`,{d:`M13 3c-4.97 0-9 4.03-9 9H1l3.89 3.89.07.14L9 12H6c0-3.87 3.13-7 7-7s7 3.13 7 7-3.13 7-7 7c-1.93 0-3.68-.79-4.94-2.06l-1.42 1.42C8.27 19.99 10.51 21 13 21c4.97 0 9-4.03 9-9s-4.03-9-9-9zm-1 5v5l4.25 2.52.77-1.28-3.52-2.09V8z`}),`HistoryOutlined`)}));function Wvf({categories:e,filterers:t,type:n,screen:r,onSetType:i,showNavigation:a,fullScreen:o,automateFullScreen:s}){let{classes:c}=$vf(),l=K(),[u,d]=(0,Gvf.useState)([]),f=G(e=>e.flows.selectedFilters),p=G(e=>e.flows.isSearching);function m(e){switch(e){case`mine`:return r.toLowerCase()===e&&!p?(0,gP.jsx)(`img`,{width:`24px`,height:`24px`,src:Vct,alt:`myFlows`}):(0,gP.jsx)(`img`,{width:`24px`,height:`24px`,src:zct,alt:`myFlowsBlue`});case`templates`:return r.toLowerCase()===e&&!p?(0,gP.jsx)(`img`,{width:`24px`,height:`24px`,src:qct,alt:`templates`}):(0,gP.jsx)(`img`,{width:`24px`,height:`24px`,src:Gct,alt:`templatesBlue`});case`containers`:return(0,gP.jsx)(`img`,{width:`24px`,height:`24px`,src:ylt,alt:`containerDashboard`});case`notebooks`:return r.toLowerCase()===e&&!p?(0,gP.jsx)(`img`,{width:`24px`,height:`24px`,src:Vct,alt:`myFlows`}):(0,gP.jsx)(`img`,{width:`24px`,height:`24px`,src:zct,alt:`myFlowsBlue`});case`WorkOutlineOutlinedIcon`:return(0,gP.jsx)(qvf.default,{});case`PeopleAltOutlinedIcon`:return(0,gP.jsx)(Jvf.default,{});case`PersonOutlineOutlinedIcon`:return(0,gP.jsx)(Yvf.default,{});case`HistoryOutlinedIcon`:return(0,gP.jsx)(Xvf.default,{});default:return(0,gP.jsx)(Xvf.default,{})}}let h=e=>{let t=u.indexOf(e);d(t===-1?t=>(t.push(e),[...t]):e=>(e.splice(t,1),[...e]))},g=(e,t)=>{let n={...f},r=f[e];n[e]=[],r&&(n[e]=[...r]),n[e].includes(t)?n[e].splice(n[e].indexOf(t),1):n[e].push(t),n[e].length===0&&delete n[e],l($_f(n))};(0,Gvf.useEffect)(()=>{g(Pb.PUBLIC,`1`)},[]);let _=e=>{l(avf(!1)),l(ovf(!1)),l(cvf(``)),l(lvf(null)),l(evf(e===`notebooks`?{name:``,ownerType:Nb.NOTEBOOKS}:{name:``,ownerType:Nb.MINE})),i(e)},v=()=>t.map(({text:e,group:t,options:n},r)=>(0,gP.jsx)(`div`,{children:(0,gP.jsxs)(oh,{component:`fieldset`,className:c.formControl,"data-test":`flow-center-${t}-container`,id:`flow-center-${t}-container`,children:[(0,gP.jsxs)(`div`,{className:c.filterTitleContainer,children:[(0,gP.jsx)(ph,{className:c.category,component:`legend`,children:e}),(0,gP.jsx)(`div`,{className:c.expandIconClass,onClick:()=>h(r),children:u.includes(r)?(0,gP.jsx)(Zvf.default,{fontSize:`small`,style:{fill:`#555F7C`,width:`18px!important`,height:`18px!important`}}):(0,gP.jsx)(Qvf.default,{fontSize:`small`,style:{fill:`#555F7C`,width:`18px!important`,height:`18px!important`}})})]}),(0,gP.jsx)(`div`,{children:(0,gP.jsx)(Qbe,{className:c.group,children:n.map(({text:e,value:n})=>{if(!u.includes(r))return(0,gP.jsx)(lh,{control:(0,gP.jsx)(Mm,{checked:f[t]&&f[t].includes(n),name:n,color:`primary`,onClick:()=>g(t,n)}),label:(0,gP.jsx)(z,{"data-test":`flow-center-flows-table-optionText`,className:c.listItemTextFilters,children:e}),"data-test":`flow-center-filter-item`,id:`flow-center-filter-item`},`${t}-${n}`)})})})]},t+r)},t+r));return(0,gP.jsx)(B,{className:c.boxBackground,children:(0,gP.jsxs)(B,{className:c.marginLeft,children:[(0,gP.jsx)(Eh,{className:s?c.fullScreenMode:``,children:e.map(({key:e,text:t,icon:n})=>(0,gP.jsxs)(Mh,{id:`flow-center-navigation-listItem-conatiner`,"data-test":`flow-center-navigation-tabs-${e}`,button:!0,disableRipple:!0,selected:r.toLowerCase()===e&&!p,onClick:()=>_(e),className:c.paddingLeft,classes:{selected:c.selectedPaddingLeft},children:[(0,gP.jsx)(Fh,{className:c.icon,children:m(e)}),(0,gP.jsx)(Lh,{"data-test":`flow-center-navigation-listItemText`,className:`flow-center-navigation-listItemText`,primary:t,classes:{primary:c.listItemText}})]},e))}),a&&(()=>{let e=s?`calc(100vh - 64px - 16px - 86px - 8px - 54px`:`calc(100vh - 64px - 16px - 86px - 8px - ${o?`0px`:`54px`})`;return(0,gP.jsxs)(gP.Fragment,{children:[(0,gP.jsx)(eh,{}),(0,gP.jsx)(`div`,{className:c.scroll,style:{height:e},children:v()})]})})()]})})}var Gvf,Kvf,qvf,Jvf,Yvf,Xvf,Zvf,Qvf,gP,$vf,eyf=s((()=>{Gvf=d(g()),Kvf=Z(),th(),xxe(),sh(),exe(),uh(),Nm(),Ih(),Rh(),Nh(),Dh(),wm(),Jf(),qvf=d(Bvf()),Jvf=d(Vvf()),Yvf=d(Hvf()),Xvf=d(Uvf()),q(),hP(),Kb(),Fb(),Zvf=d(Jfd()),Qvf=d(US()),gP=L(),$vf=(0,Kvf.makeStyles)()(()=>({icon:{fontSize:`16px!important`,minWidth:`0px!important`,paddingLeft:`8px!important`,paddingRight:`8px!important`,"& svg":{fill:`#555F7C!important`}},text:{fontSize:`14px!important`},listItemText:{fontFamily:`Nunito`,fontStyle:`normal!important`,fontWeight:`normal!important`,fontSize:`14px!important`,lineHeight:`19px!important`,letterSpacing:`-1.30385e-09px!important`},listItemTextFilters:{fontFamily:`Nunito`,fontStyle:`normal!important`,fontWeight:`normal!important`,fontSize:`12px!important`,lineHeight:`16px!important`,letterSpacing:`-1.30385e-09px!important`,wordBreak:`break-word`},category:{fontFamily:`Nunito`,fontStyle:`normal!important`,color:`#2A323C!important`,fontSize:`14px!important`,marginright:`6px!important`,fontWeight:`500!important`,paddingLeft:`8px!important`},formControl:{marginBottom:`10px!important`,marginTop:`10px!important`},marginLeft:{paddingLeft:`8px!important`,paddingRight:`8px!important`},boxBackground:{height:`100%!important`},paddingLeft:{paddingLeft:`0px!important`,minWidth:`0px!important`,borderRadius:`4px!important`},fullScreenMode:{marginTop:`64.5px!important`},selectedPaddingLeft:{background:`#F2F5F9 !important`,color:`#1871E8 !important`},group:{paddingLeft:`8px!important`},filterTitleContainer:{display:`flex`,alignItems:`center!important`},expandIconClass:{display:`flex`,paddingLeft:`5px!important`,"&:hover":{cursor:`pointer!important`}},scroll:{overflowY:`auto`,overflowX:`hidden`}}))})),tyf,nyf,_P,ryf,iyf,ayf,oyf=s((()=>{tyf=d(g()),Am(),Fb(),jge(),Jf(),Dm(),mh(),Sge(),wm(),nyf=Z(),Y(),q(),hP(),Kb(),X(),pO(),W(),_P=L(),ryf=3,iyf=(0,nyf.makeStyles)()(e=>({container:{marginLeft:`12px!important`},cardRoot:{display:`flex`,flexDirection:`column`,justifyContent:`center!important`,border:`0.5px solid #D5DFE9!important`,boxShadow:`none!important`,borderRadius:`4px!important`,marginRight:`10px!important`},cardContainer:{marginTop:`20px!important`,marginLeft:`20px!important`,marginBottom:`15px!important`,marginRight:`20px!important`,maxHeight:`150px`,minHeight:`150px`,display:`flex`,flexDirection:`column`},title:{fontFamily:`Nunito`,fontStyle:`normal!important`,fontWeight:600,fontSize:`16px!important`,lineHeight:`22px!important`,letterSpacing:`-1.30385e-09px!important`,wordBreak:`break-word!important`,cursor:`pointer`,color:`#2A323C!important`},subtitle:{fontFamily:`Nunito`,fontStyle:`normal!important`,fontWeight:500,fontSize:`12px!important`,lineHeight:`16px!important`,letterSpacing:`-1.30385e-09px!important`,color:`#5C6269!important`,wordWrap:`break-word!important`},veritoneCertifiedContainer:{display:`flex`,marginTop:`10px!important`},veritoneCertified:{fontFamily:`Nunito`,fontStyle:`normal!important`,fontWeight:500,fontSize:`10px!important`,lineHeight:`18px!important`,letterSpacing:`-1.30385e-09px!important`,wordWrap:`break-word!important`,color:`#2A323C!important`,marginLeft:`4px!important`},pos:{marginBottom:12},centerButton:{justifyContent:`center!important`},cardContent:{padding:`0px!important`,height:`120px!important`,textOverflow:`ellipsis!important`},titleContent:{height:`82px!important`,overflow:`auto`},bottomButton:{marginTop:`10px`,padding:`0px!important`,display:`flex`,height:`30px!important`},box:{display:`flex`,marginTop:e.spacing(3.2),marginBottom:e.spacing(3.2)},viewAllButton:{color:`#6098D1!important`,textTransform:`none!important`,fontFamily:`Nunito`,fontStyle:`normal!important`,fontWeight:`normal!important`,fontSize:`12px!important`,lineHeight:`16px!important`,marginRight:`24px!important`,letterSpacing:`-1.30385e-09px!important`},createFlowButton:{textTransform:`none!important`,fontFamily:`Nunito`,fontStyle:`normal!important`,fontWeight:600,fontSize:`12px!important`,lineHeight:`16px!important`,marginLeft:`0px!important`,padding:`6px 12px 6px 12px!important`,background:e.palette.background.paper,color:`#1871E8!important`,letterSpacing:`0.02857em`},viewDetailsButton:{textTransform:`none!important`,fontFamily:`Nunito`,fontStyle:`normal!important`,fontWeight:600,fontSize:`12px!important`,lineHeight:`16px!important`,background:e.palette.background.paper,color:`#6098D1!important`,letterSpacing:`0.02857em`},createBlankFlowButton:{display:`flex`,justifyContent:`center!important`,"& svg":{fill:`#555F7C!important`}},createBlankFlowLayout:{display:`flex`,flexDirection:`column`},lowercaseButton:{textTransform:`none!important`,fontFamily:`Nunito`,fontStyle:`normal!important`,fontWeight:600,fontSize:`14px!important`,lineHeight:`19px!important`,letterSpacing:`-1.30385e-09px!important`},text:{fontFamily:`Nunito`,fontStyle:`normal!important`,fontWeight:400,fontSize:`16px!important`,lineHeight:`22px!important`,letterSpacing:`-1.30385e-09px!important`,color:`#2A323C!important`}})),ayf=({goToTemplateList:e,handleOpenFlowNameDialog:t,setScreen:n,handleOpenTemplateDetails:r})=>{let i=K(),{classes:a}=iyf(),[o,s]=(0,tyf.useState)([]),[c,l]=(0,tyf.useState)(0),u=G(Dv),[d,f]=(0,tyf.useState)(!0),p=(e,t)=>{e.data[t].records&&s(e.data[t].records),l(Math.min(ryf,e.data[t].records.length))};(0,tyf.useEffect)(()=>{if(o.length){setTimeout(()=>{f(!1)},3e3);return}k9e(u,{isPublic:!0}).then(e=>{setTimeout(()=>{f(!1)},3e3),p(e,`flowTemplates`)}).catch(e=>{WE(`error fetching flow templates: ${JSON.stringify(e)}`)})},[p]);let m=e=>{n(Nb.TEMPLATES),i(mP({id:e.id,title:e.title})),r(!0)},h=e=>{t(e)};return(0,_P.jsxs)(`div`,{className:a.container,children:[(0,_P.jsxs)(B,{mt:2,mb:2,className:a.box,children:[(0,_P.jsx)(z,{"data-test":`flow-center-flows-table-populatTemplates`,className:a.text,style:{flexGrow:1},children:(0,_P.jsx)(J,{id:`os-flow-center.1v6wsw`,defaultMessage:[{type:0,value:`Popular Templates`}]})}),(0,_P.jsx)(V,{"data-test":`flow-center-template-gallery-viewAllTemplates`,size:`small`,className:a.viewAllButton,onClick:e,children:(0,_P.jsx)(J,{id:`os-flow-center.viewall`,defaultMessage:[{type:0,value:`View All`}]})})]}),(0,_P.jsx)(U,{"data-test":`flow-center-templates-on-flows-page`,container:!0,id:`flow-center-templates`,children:o.slice(0,c).map((e,t)=>(0,_P.jsx)(U,{"data-test":`flow-center-templatesGallery`,item:!0,xs:4,children:(0,_P.jsx)(km,{className:a.cardRoot,id:`flow-center-template-card`,children:(0,_P.jsxs)(`div`,{className:a.cardContainer,children:[(0,_P.jsxs)(jm,{className:a.cardContent,children:[(0,_P.jsxs)(`div`,{className:a.titleContent,children:[d?(0,_P.jsx)(rg,{variant:`rectangular`,animation:`wave`,width:80,height:15}):(0,_P.jsx)(z,{"data-test":`flow-center-flows-templateGallery-title`,className:a.title,gutterBottom:!0,onClick:()=>m(e),children:e?.title}),d?(0,_P.jsx)(rg,{variant:`rectangular`,animation:`wave`,width:80,height:15,sx:{mt:`5px`}}):(0,_P.jsx)(z,{"data-test":`flow-center-flows-templateGallery-subtitle`,className:a.subtitle,"aria-multiline":!0,variant:`body2`,component:`p`,children:e.subtitle})]}),(0,_P.jsx)(`div`,{className:a.veritoneCertifiedContainer,children:d?(0,_P.jsx)(rg,{variant:`rectangular`,animation:`wave`,width:120,height:15}):(0,_P.jsxs)(_P.Fragment,{children:[(0,_P.jsx)(`img`,{src:Yct,alt:`veritoneCertifiedIcon`}),(0,_P.jsx)(z,{"data-test":`flow-center-flows-templateGallery-veritoneCertified`,className:a.veritoneCertified,component:`p`,children:(0,_P.jsx)(J,{id:`os-flow-center.veritonecertified`,defaultMessage:[{type:0,value:`Veritone Certified`}]})})]})})]}),(0,_P.jsxs)(bge,{className:a.bottomButton,children:[d?(0,_P.jsx)(rg,{variant:`rectangular`,animation:`wave`,width:120,height:20}):(0,_P.jsx)(V,{"data-test":`flow-center-template-gallery-createFlowFromTemplate-${t}`,onClick:()=>h?h(e.id):``,id:`flow-center-create-flow-btn-${t}`,size:`small`,variant:`outlined`,color:`primary`,className:a.createFlowButton,children:(0,_P.jsx)(J,{id:`os-flow-center.createflow`,defaultMessage:[{type:0,value:`Create Flow`}]})}),d?(0,_P.jsx)(rg,{variant:`rectangular`,animation:`wave`,width:120,height:15}):(0,_P.jsx)(V,{"data-test":`flow-center-template-gallery-viewDetailsForTemplate-${t}`,onClick:()=>m(e),size:`small`,color:`primary`,className:a.viewDetailsButton,children:(0,_P.jsx)(J,{id:`os-flow-center.viewdetails`,defaultMessage:[{type:0,value:`View Details`}]})})]})]})})},e.title+t))})]})}}));function syf(e,t){if(e===void 0)return cyf;switch(t.type){case`SET_LOCALE`:return{...e,locale:t.payload};case`SET_AUTHTOKEN`:return{...e,authToken:t.payload};case`SET_CONFIG`:return{...e,config:t.payload};case`FETCH_ENGINE_DISPATCHED`:return{...e,engineFetching:!0,engineFetchingFailed:!1,engineFetchingFailedReason:null,engine:null};case`FETCH_ENGINE_FAILED`:return{...e,engineFetching:!1,engineFetchingFailed:!0,engineFetchingFailedReason:t.payload,engine:null};case`FETCH_ENGINE_SUCCEEDED`:return{...e,engineFetching:!1,engineFetchingFailed:!1,engineFetchingFailedReason:null,engine:t.payload,engineDistrubutionType:t.payload.distributionType};case`FETCH_REVISIONS`:return{...e,engineRevisionsFetching:!0,engineRevisionsFetchingFailed:!1,engineRevisionsFetchingFailedReason:null,engineRevisions:null};case`FETCH_REVISIONS_FAILED`:return{...e,engineRevisionsFetching:!1,engineRevisionsFetchingFailed:!0,engineRevisionsFetchingFailedReason:t.payload,engineRevisions:null};case`FETCH_REVISIONS_SUCCEEDED`:return{...e,engineRevisionsFetching:!1,engineRevisionsFetchingFailed:!1,engineRevisionsFetchingFailedReason:null,engineRevisions:t.payload};case`FETCH_EXECUTIONS`:return{...e,fetchingExecutions:!0,executions:null,fetchExecutionsFail:null};case`FETCH_EXECUTIONS_FAIL`:return{...e,fetchingExecutions:!1,executions:null,fetchExecutionsFail:t.payload};case`FETCH_EXECUTIONS_SUCCEES`:return{...e,fetchingExecutions:!1,executions:t.payload,fetchExecutionsFail:null};case`FETCH_SCHEDULED_JOBS_DISPATCHED`:return{...e,scheduledJobsFetching:!0,scheduledJobsFailed:!1,scheduledJobsFailedReason:null,scheduledJobs:null};case`FETCH_SCHEDULED_JOBS_FAILED`:return{...e,scheduledJobsFetching:!1,scheduledJobsFailed:!0,scheduledJobsFailedReason:t.payload,scheduledJobs:null};case`FETCH_SCHEDULED_JOBS_SUCCEEDED`:return{...e,scheduledJobsFetching:!1,scheduledJobsFailed:!1,scheduledJobsFailedReason:null,scheduledJobs:t.payload};case`FETCH_JOBS_DISPATCHED`:return{...e,jobsFetching:!0,jobsFetchingFailed:!1,jobsFetchingFailedReason:null,jobsFetched:null};case`FETCH_JOBS_FAILED`:return{...e,jobsFetching:!1,jobsFetchingFailed:!0,jobsFetchingFailedReason:t.payload,jobsFetched:null};case`FETCH_JOBS_SUCCEEDED`:return{...e,jobsFetching:!1,jobsFetchingFailed:!1,jobsFetchingFailedReason:null,jobsFetched:t.payload};case`UPDATE_FLOW_REVISION_DESCRIPTION`:return{...e,flowRevisionDescriptionUpdating:!0,flowRevisionDescriptionUpdateFailed:!1,flowRevisionDescriptionUpdateFailedReason:null,flowRevisionDescriptionUpdate:null};case`UPDATE_FLOW_REVISION_DESCRIPTION_FAILED`:return{...e,flowRevisionDescriptionUpdating:!1,flowRevisionDescriptionUpdateFailed:!0,flowRevisionDescriptionUpdateFailedReason:t.payload,flowRevisionDescriptionUpdate:null};case`UPDATE_FLOW_REVISION_DESCRIPTION_SUCCEEDED`:return{...e,flowRevisionDescriptionUpdating:!1,flowRevisionDescriptionUpdateFailed:!1,flowRevisionDescriptionUpdateFailedReason:null,flowRevisionDescriptionUpdate:t.payload};case`CLEAN_UPDATE_FLOW_REVISION_DESCRIPTION`:return{...e,flowRevisionDescriptionUpdating:!1,flowRevisionDescriptionUpdateFailed:!1,flowRevisionDescriptionUpdateFailedReason:null,flowRevisionDescriptionUpdate:null};case`RESTORE_THIS_REVISION`:return{...e,restoreThisRevisionInProgress:!0,restoreThisRevisionFailed:!1,restoreThisRevisionFailedReason:null,restoreThisRevisionResult:null};case`RESTORE_THIS_REVISION_FAILED`:return{...e,restoreThisRevisionInProgress:!1,restoreThisRevisionFailed:!0,restoreThisRevisionFailedReason:t.payload,restoreThisRevisionResult:null};case`RESTORE_THIS_REVISION_SUCCEEDED`:return{...e,restoreThisRevisionInProgress:!1,restoreThisRevisionFailed:!1,restoreThisRevisionFailedReason:null,restoreThisRevisionResult:t.payload};case`CLEAN_RESTORE_THIS_REVISION_SUCCEEDED`:return{...e,restoreThisRevisionInProgress:!1,restoreThisRevisionFailed:!1,restoreThisRevisionFailedReason:null,restoreThisRevisionResult:null};case`COPY_FLOW`:return{...e,copyFlowInProgress:!0,copyFlowFailed:!1,copyFlowFailedReason:null,copyFlowResult:null};case`COPY_FLOW_FAILED`:return{...e,copyFlowInProgress:!1,copyFlowFailed:!0,copyFlowFailedReason:t.payload,copyFlowResult:null};case`COPY_FLOW_SUCCEEDED`:return{...e,copyFlowInProgress:!1,copyFlowFailed:!1,copyFlowFailedReason:null,copyFlowResult:t.payload};case`CLEAN_COPY_FLOW`:return{...e,copyFlowInProgress:!1,copyFlowFailed:!1,copyFlowFailedReason:null,copyFlowResult:null};case`FLOW_RESUME_ACTION`:return{...e,flowResumeInProgress:!0,flowResumeFailed:!1,flowResumeFailedReason:null,flowResumeResult:null};case`FLOW_RESUME_ACTION_FAILED`:return{...e,flowResumeInProgress:!1,flowResumeFailed:!0,flowResumeFailedReason:t.payload,flowResumeResult:null};case`FLOW_RESUME_ACTION_SUCCEEDED`:return{...e,flowResumeInProgress:!1,flowResumeFailed:!1,flowResumeFailedReason:null,flowResumeResult:t.payload};case`CLEAN_FLOW_RESUME_ACTION`:return{...e,flowResumeInProgress:!1,flowResumeFailed:!1,flowResumeFailedReason:null,flowResumeResult:null};case`FLOW_PAUSE_ACTION`:return{...e,flowPauseInProgress:!0,flowPauseFailed:!1,flowPauseFailedReason:null,flowPauseResult:null};case`FLOW_PAUSE_ACTION_FAILED`:return{...e,flowPauseInProgress:!1,flowPauseFailed:!0,flowPauseFailedReason:t.payload,flowPauseResult:null};case`FLOW_PAUSE_ACTION_SUCCEEDED`:return{...e,flowPauseInProgress:!1,flowPauseFailed:!1,flowPauseFailedReason:null,flowPauseResult:t.payload};case`CLEAN_FLOW_PAUSE_ACTION`:return{...e,flowPauseInProgress:!1,flowPauseFailed:!1,flowPauseFailedReason:null,flowPauseResult:null};case`SET_ENGINE_DISTRIBUTION_TYPE_ACTION`:return{...e,engineDistrubutionType:t.payload};default:return e}}var cyf,lyf=s((()=>{cyf={locale:`he`,engine:null,engineDistrubutionType:null}})),uyf,dyf=s((()=>{lyf(),uyf=syf}));function fyf(e,t){if(e===void 0)return pyf;switch(t.type){case`SET_LOCALE`:return{...e,locale:t.payload};case`SET_AUTHTOKEN`:return{...e,authToken:t.payload};default:return e}}var pyf,myf=s((()=>{pyf={locale:`he`}})),hyf,gyf=s((()=>{myf(),hyf=fyf}));function _yf(e,t){if(e===void 0)return vyf;switch(t.type){case`SET_CONFIG`:return{...e,config:t.payload};case`SET_CONFIG_PARAMS`:return{...e,params:t.payload};case`FETCH_ME_LOADING`:return{...e,me:null,meFetchingFailed:null,meFetchingLoading:!0};case`FETCH_ME_FAILED`:return{...e,me:null,meFetchingFailed:t.payload,meFetchingLoading:!1};case`FETCH_ME_SUCCEEDED`:return{...e,me:t.payload,meFetchingFailed:null,meFetchingLoading:!1};case`SET_IS_REVISIONS_EXIST_ON_SERVER`:return{...e,isRevisionsExistOnServer:t.payload};case`FETCH_ORG_USERS`:return{...e,orgUsersFetching:!0,orgUsersFetchingFailed:!1,orgUsersFetchingFailedReason:null,users:null};case`FETCH_ORG_USERS_FAILED`:return{...e,orgUsersFetching:!1,orgUsersFetchingFailed:!0,orgUsersFetchingFailedReason:t.payload,users:null};case`FETCH_ORG_USERS_SUCCEEDED`:return{...e,orgUsersFetching:!1,orgUsersFetchingFailed:!1,orgUsersFetchingFailedReason:null,users:t.payload};default:return e}}var vyf,yyf=s((()=>{vyf={isRevisionsExistOnServer:!1}})),byf,xyf=s((()=>{yyf(),byf=_yf})),Syf,Cyf,wyf=s((()=>{X(),Syf=async(e,t,n)=>Jv({query:Cyf,graphEndpoint:t,token:n,variables:{flowId:e}}),Cyf=`
|
|
3255
|
+
`,Yhf=()=>{let e=ZA(),[t]=tj(),{config:n,tosFile:r,privacyPolicyUrl:i,registerUri:a}=KN(),o=(0,Ghf.useRef)(null),[s,c]=(0,Ghf.useState)({content:``,fileType:`unknown`}),[l,u]=(0,Ghf.useState)(!1),d=async()=>{let n=decodeURIComponent(t.get(`email`)),i=decodeURIComponent(t.get(`token`)),o=decodeURIComponent(t.get(`referer`)),s=decodeURIComponent(t.get(`userId`)),c=decodeURIComponent(t.get(`redirect`));if(o===`login`&&r?.fileId)try{if((await duf(i,s,r.fileId,new Date().toUTCString())).errors){alert(`Something went wrong while saving your terms of service acceptance`);return}if(c)window.location.href=c;else{let e=vN()?vN()+`/api/admin/switch-app`:_N().switchAppUrl;window.location.href=e+`/default`}return}catch(e){console.error(`Error updating user setting:`,e)}e({pathname:`${a}/join`,search:`?email=${encodeURIComponent(n)}&token=${encodeURIComponent(i)}`})};return(0,Ghf.useEffect)(()=>{s.fileType===`unknown`&&(async()=>{if(r?.url){u(!0);try{c(await qhf(r.url,s.fileType))}catch(e){console.error(`Error loading content:`,e)}finally{u(!1)}}})()},[r,s]),(0,Ghf.useEffect)(()=>{o.current&&(o.current.srcdoc=Jhf(s.content,s.fileType))},[s]),(0,Ghf.useEffect)(()=>{let n=t.has(`email`),i=t.has(`token`);!n&&!i?e(a):n&&i&&!r&&d()},[t,r]),(0,uP.jsxs)(H,{gap:3,sx:{width:`750px`,position:`relative`,left:`50%`,transform:`translateX(-50%)`},children:[l?(0,uP.jsx)(B,{sx:{display:`flex`,justifyContent:`center`},children:(0,uP.jsx)(Fm,{})}):r&&(0,uP.jsx)(B,{children:(0,uP.jsx)(`iframe`,{ref:o,title:r.name,style:Khf.iframeStyles,...Khf.iframe})}),i&&(0,uP.jsx)(z,{variant:`body2`,textAlign:`center`,component:`a`,target:`_blank`,href:i.url,sx:Khf.privacyPolicy,"data-testid":`os-auth-register-privacy-policy`,children:`Privacy Policy`}),(0,uP.jsx)(B,{sx:Khf.buttonContainer,children:(0,uP.jsx)(CN,{text:`Accept & Continue`,type:`button`,onClick:d,buttonColor:n?.uiSettings?.registrationButtonStyle?.backgroundColor,buttonTextColor:n?.uiSettings?.registrationButtonStyle?.textColor,testId:`os-auth-register-accept-continue-button`})})]})}})),Zhf=c((e=>{var t=zu();Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=t(cx()),r=L();e.default=(0,n.default)((0,r.jsx)(`path`,{d:`M18 15v3H6v-3H4v3c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2v-3h-2zm-1-4-1.41-1.41L13 12.17V4h-2v8.17L8.41 9.59 7 11l5 5 5-5z`}),`FileDownloadOutlined`)})),Qhf=c((e=>{var t=zu();Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=t(cx()),r=L();e.default=(0,n.default)([(0,r.jsx)(`path`,{d:`M19 8h-1V3H6v5H5c-1.66 0-3 1.34-3 3v6h4v4h12v-4h4v-6c0-1.66-1.34-3-3-3zM8 5h8v3H8V5zm8 12v2H8v-4h8v2zm2-2v-2H6v2H4v-4c0-.55.45-1 1-1h14c.55 0 1 .45 1 1v4h-2z`},`0`),(0,r.jsx)(`circle`,{cx:`18`,cy:`11.5`,r:`1`},`1`)],`PrintOutlined`)})),$hf,egf,tgf,dP,ngf,rgf,igf,agf=s((()=>{W(),$hf=d(g()),egf=d(Zhf()),tgf=d(Qhf()),qN(),dP=L(),ngf=async e=>{let t=e.toLowerCase();if(t.endsWith(`.pdf`)||t.includes(`.pdf?`))return`pdf`;if(t.endsWith(`.txt`)||t.endsWith(`.text`)||t.endsWith(`.html`))return`text`;try{let t=(await fetch(e,{method:`HEAD`})).headers.get(`content-type`)||``;if(t.includes(`pdf`))return`pdf`;if(t.includes(`text`)||t.includes(`html`))return`text`}catch(e){return console.error(`Error detecting file type:`,e),`pdf`}return`pdf`},rgf=async e=>{try{let t=await fetch(e);if(!t.ok)throw Error(`HTTP error! status: ${t.status}`);return await t.text()}catch(e){throw console.error(`Error fetching text content:`,e),e}},igf=()=>{let{tosFile:e}=KN(),[t,n]=(0,$hf.useState)({content:``,fileType:`unknown`}),[r,i]=(0,$hf.useState)(!1),[a,o]=(0,$hf.useState)(null);return(0,$hf.useEffect)(()=>{(async()=>{if(!(!e?.url||a===e.url)){i(!0);try{await ngf(e.url)===`pdf`?n({content:e.url,fileType:`pdf`}):n({content:await rgf(e.url),fileType:`text`}),o(e.url)}catch(t){console.error(`Error loading terms content:`,t),n({content:e.url,fileType:`pdf`}),o(e.url)}finally{i(!1)}}})()},[e?.url,a]),e?(0,dP.jsxs)(B,{sx:{width:`100%`,mb:3},children:[(0,dP.jsxs)(H,{direction:`row`,justifyContent:`space-between`,alignItems:`center`,sx:{mb:1},children:[(0,dP.jsx)(z,{sx:{color:`#212121`,fontSize:`12px`,fontFamily:`Nunito`},children:`Terms & Conditions`}),(0,dP.jsxs)(H,{direction:`row`,spacing:1,children:[(0,dP.jsx)(Bf,{size:`small`,onClick:()=>{e?.url&&window.open(e.url,`_blank`)},disabled:r,"aria-label":`Download Terms & Conditions`,sx:{color:`#555F7C`},"data-testid":`os-auth-register-terms-and-conditions-download-button`,children:(0,dP.jsx)(egf.default,{})}),(0,dP.jsx)(Bf,{size:`small`,onClick:()=>{if(t.fileType===`pdf`&&t.content){let e=window.open(t.content,`_blank`);e&&(e.onload=()=>{e.print()})}else if(t.content){let e=window.open(``,`_blank`);if(e){let{document:n}=e;n.title=`Terms & Conditions`;let r=n.createElement(`style`);r.textContent=`body { font-family: Arial, sans-serif; padding: 20px; line-height: 1.6; } pre { white-space: pre-wrap; }`,n.head&&n.head.appendChild(r);let i=n.createElement(`h1`);i.textContent=`Terms & Conditions`;let a=n.createElement(`pre`);a.textContent=t.content,n.body&&(n.body.appendChild(i),n.body.appendChild(a)),e.focus(),e.print()}}},disabled:r||!t.content,"aria-label":`Print Terms & Conditions`,sx:{color:`#555F7C`},"data-testid":`os-auth-register-terms-and-conditions-print-button`,children:(0,dP.jsx)(tgf.default,{})})]})]}),(0,dP.jsx)(B,{sx:{width:`100%`,height:`200px`,border:`1px solid #E0E0E0`,borderRadius:`6px`,overflowY:t.fileType===`pdf`?`hidden`:`auto`,overflowX:`hidden`,padding:t.fileType===`pdf`?0:2,backgroundColor:`#FAFAFA`},children:r?(0,dP.jsx)(B,{sx:{display:`flex`,justifyContent:`center`,alignItems:`center`,height:`100%`},children:(0,dP.jsx)(Fm,{size:24})}):t.fileType===`pdf`?(0,dP.jsx)(B,{component:`iframe`,src:t.content,sx:{width:`100%`,height:`100%`,border:`none`,borderRadius:`6px`},title:`Terms & Conditions PDF`}):t.content?(0,dP.jsx)(z,{variant:`body2`,component:`pre`,sx:{whiteSpace:`pre-wrap`,wordWrap:`break-word`,fontFamily:`inherit`,margin:0,lineHeight:1.6},children:t.content}):(0,dP.jsx)(z,{variant:`body2`,color:`#212121`,children:`Unable to load terms content.`})})]}):null}})),ogf,sgf,cgf,lgf=s((()=>{ogf=d(g(),1),sgf=`GoogleReCaptcha Context has not yet been implemented, if you are using useGoogleReCaptcha hook, make sure the hook is called inside component wrapped by GoogleRecaptchaProvider`,cgf=(0,ogf.createContext)({instance:void 0,siteKey:``,language:``,isLoading:!0,executeV3:()=>{throw Error(sgf)},executeV2Invisible:()=>{throw Error(sgf)},reset:()=>{throw Error(sgf)},getResponse:()=>{throw Error(sgf)},render:()=>{throw Error(sgf)}})})),ugf,dgf,fgf=s((()=>{lgf(),ugf=d(g(),1),dgf=()=>(0,ugf.useContext)(cgf)})),pgf,mgf=s((()=>{pgf=()=>!!document.querySelector(`script[src*="/recaptcha/"]:not([src*="gstatic"])`)})),hgf,ggf=s((()=>{hgf=()=>`.grecaptcha-badge{display: none !important;}`})),_gf,vgf=s((()=>{_gf=({host:e=`google.com`,isEnterprise:t=!1,render:n,hl:r,badge:i})=>{let a=new URLSearchParams({...r&&{hl:r},...i&&{badge:i},render:n});return`https://www.${e}/recaptcha/${t?`enterprise.js`:`api.js`}?${a}`}})),ygf,bgf=s((()=>{ggf(),ygf=()=>{let e=document.createElement(`style`);e.innerHTML=hgf(),document.body.appendChild(e)}})),xgf,Sgf=s((()=>{vgf(),xgf=({onload:e,appendTo:t=`head`,isEnterprise:n=!1,host:r,render:i,badge:a,hl:o,...s})=>{let c=_gf({host:r,isEnterprise:n,render:i,hl:o,badge:a}),l=document.createElement(`script`);Object.entries(s).forEach(([e,t])=>{l.setAttribute(e,t?.toString()??``)}),l.src=c,l.onload=e,document[t].appendChild(l)}})),Cgf,wgf=s((()=>{Cgf=()=>{let e=document.querySelector(`.grecaptcha-badge`);e&&e.parentNode&&document.body.removeChild(e.parentNode)}})),Tgf,Egf=s((()=>{Tgf=e=>{let t=document.getElementById(e);if(t)for(;t.lastChild;)t.lastChild.remove()}})),Dgf,Ogf,kgf=s((()=>{Dgf=`https://www.gstatic.com/recaptcha/releases`,Ogf=()=>{window.___grecaptcha_cfg=void 0;let e=document.querySelector(`script[src*="/recaptcha/"]:not([src*="gstatic"])`);e&&e.remove();let t=document.querySelector(`script[src^="${Dgf}"]`);t&&t.remove()}})),Agf=s((()=>{mgf(),bgf(),Sgf(),wgf(),Egf(),kgf()})),jgf,Mgf,Ngf,Pgf,Fgf=s((()=>{fgf(),Agf(),jgf=d(g(),1),Mgf=L(),Ngf=`google-recaptcha-badge-container`,Pgf=({id:e=Ngf,theme:t,language:n,badge:r=`bottomright`,onChange:i,onError:a,onExpired:o})=>{let s=(0,jgf.useRef)(null),c=dgf(),l=t??c.theme,u=n??c.language;return(0,jgf.useEffect)(()=>{if(!c.render)return;let t=document.createElement(`div`),n={sitekey:c.siteKey,badge:r,size:`invisible`,callback:i,"expired-callback":o,"error-callback":a,theme:l,...u&&{hl:u}};return c.render(t,n),s.current&&s.current.appendChild(t),()=>{Tgf(e)}},[c.render,c.siteKey,r,i,a,o,l,u]),!c.render||!c.siteKey?null:(0,Mgf.jsx)(`div`,{ref:s,id:e})}})),Igf,Lgf,Rgf=s((()=>{Igf=d(g(),1),Lgf=(e=!1)=>{let[t,n]=(0,Igf.useState)(e);return[t,e=>n(t=>e??!t)]}})),zgf=s((()=>{Rgf()})),Bgf,Vgf,Hgf,Ugf,Wgf,Ggf=s((()=>{lgf(),Agf(),Bgf=d(g(),1),Vgf=L(),zgf(),Hgf=`onGoogleReCaptchaLoad`,Ugf=`google-recaptcha-container`,Wgf=({type:e,siteKey:t,language:n,scriptProps:r,isEnterprise:i=!1,host:a,theme:o=`light`,children:s,explicit:c,onLoad:l,onError:u})=>{let[d,f]=Lgf(!0),p=(0,Bgf.useRef)(void 0);(0,Bgf.useEffect)(()=>{let s=r?.id??`google-recaptcha-${e}-script`,d=pgf();try{let m=()=>{f(!0);let n=i?window.grecaptcha?.enterprise:window.grecaptcha;if(!n){u?.(),f(!1);return}if(c||n.ready(async()=>{p.current=n,await l?.(n),f(!1)}),c){let r={size:e===`v3`||e===`v2-invisible`?`invisible`:`normal`,...(e===`v3`||e===`v2-invisible`)&&{badge:`bottomright`},sitekey:t,theme:o,...typeof c==`object`&&{...c,"expired-callback":c.expiredCallback,"error-callback":c.errorCallback}};d||typeof c==`object`&&(e===`v3`||e===`v2-invisible`)&&c?.badge===`hidden`&&ygf(),n.ready(async()=>{typeof c==`object`&&c.container&&n.render(c.container,r,!!c.inherit),p.current=n,l&&await l(n),f(!1)})}};return window[Hgf]=m,d?m():xgf({isEnterprise:i,host:a,...(e===`v3`||e===`v2-invisible`)&&typeof c==`object`&&c?.badge&&{badge:c?.badge===`hidden`?`bottomright`:c?.badge},...n&&{hl:n},render:c||e===`v2-checkbox`?`explicit`:t,...r,onload:m,id:s}),()=>{pgf()&&Ogf(),typeof c==`object`&&(e===`v3`||e===`v2-invisible`)&&!c?.container&&c?.badge?Tgf(Ugf):Cgf()}}catch{f(!1)}},[i,n,a,t,e]);let m=e=>{if(!p.current?.execute)throw Error(`Google ReCaptcha has not been loaded`);return p.current.execute(t,{action:e})},h=e=>{if(!p.current?.execute)throw Error(`Google ReCaptcha has not been loaded`);return p.current.execute(e)},g=(0,Bgf.useMemo)(()=>({instance:p.current,siteKey:t,isLoading:d,theme:o,executeV2Invisible:h,executeV3:m,reset:p.current?.reset,getResponse:p.current?.getResponse,render:p.current?.render,...n&&{language:n}}),[t,d,n]);return(0,Vgf.jsx)(cgf.Provider,{value:g,children:s})}})),Kgf=s((()=>{fgf(),Fgf(),Ggf()}));function qgf(){let{config:e,tosFile:t}=KN(),n=!!t?.url,r=Lpf(),{executeV2Invisible:i,reset:a}=dgf(),o=(0,Jgf.useRef)(null),s=(0,Jgf.useCallback)(e=>{o.current?.(e),o.current=null},[]),{onSubmit:c,errorMessage:l,setErrorMessage:u}=$gf({getRecaptchaToken:(0,Jgf.useCallback)(()=>new Promise((e,t)=>{if(!i){t(Error(`reCAPTCHA is not ready`));return}o.current=n=>{if(!n){t(Error(`reCAPTCHA returned an empty token`));return}e(n)},i()}),[i]),onRegistrationFailure:(0,Jgf.useCallback)(()=>a?.(),[a])}),d=[{fieldKey:`firstName`,title:`First Name`,type:`text`,required:!0},{fieldKey:`lastName`,title:`Last Name`,type:`text`,required:!0},{fieldKey:`company`,title:`Company`,type:`text`,required:!0},{fieldKey:`email`,title:`Email`,type:`text`,required:!0},{fieldKey:`password`,title:`Password`,type:`password`,required:!0},{fieldKey:`confirmPassword`,title:`Confirm Password`,type:`password`,required:!0}],f=Ate($u().breakpoints.down(`md`)),p=Ate(`(max-height: 800px)`);return(0,fP.jsxs)(B,{sx:{width:xdf,...(f||p)&&{height:`588px`,overflowY:`auto`,overflowX:`hidden`,paddingTop:1}},children:[(0,fP.jsx)(vMd,{htmlFormId:Ygf,schema:e?.uiSettings?.customRegistrationFields,additionalFields:d,passwordPolicy:e?.uiSettings?.passwordPolicy,renderFormActions:({isSubmitting:t,isValid:i,htmlFormId:a})=>(0,fP.jsxs)(H,{gap:2,children:[(0,fP.jsx)(igf,{}),(0,fP.jsx)(Olf,{hasTos:n,loading:r.isPending,isSubmitting:t,disabled:!i,buttonColor:e?.uiSettings?.registrationButtonStyle?.backgroundColor,buttonTextColor:e?.uiSettings?.registrationButtonStyle?.textColor,htmlForm:a})]}),onSubmit:c,sx:{width:`100%`}}),(0,fP.jsx)(Pgf,{badge:`inline`,onChange:s,style:{display:`none`}}),l&&(0,fP.jsx)(Xpf,{open:!!l,message:l,onClose:()=>u(null)})]})}var Jgf,fP,Ygf,Xgf,Zgf,Qgf,$gf,e_f=s((()=>{Jgf=d(g()),rj(),pO(),Kgf(),qN(),wN(),W(),LN(),bN(),agf(),Zpf(),fP=L(),Ygf=`registration-join-form`,Xgf=()=>{let e=slf();return e?(0,fP.jsx)(Wgf,{type:`v2-invisible`,siteKey:e,children:(0,fP.jsx)(qgf,{})}):(WE(Error(`Registration recaptcha site key is not configured`)),(0,fP.jsx)(B,{sx:{width:xdf},children:(0,fP.jsx)(Kf,{severity:`error`,children:`Registration is unavailable due to a configuration issue. Please contact support.`})}))},Zgf=new Map([[`registration_not_approved`,XN.RegistrationNotApproved],[`account_exists`,XN.AccountExists],[`registration_configuration_invalid`,XN.RegistrationConfigurationInvalid]]),Qgf=({status:e,code:t,message:n})=>{if(t){let e=Zgf.get(t);if(e)return ZN[e];if(typeof n==`string`&&n)return{description:n}}switch(e){case 401:return ZN[XN.CaptchaError];case 400:return ZN[XN.RegistrationError];case 409:return ZN[XN.InviteExists];default:return ZN[XN.EnvError]}},$gf=({getRecaptchaToken:e,onRegistrationFailure:t})=>{let n=ZA(),[r]=tj(),{config:i,registerUri:a}=KN(),o=Lpf(),[s,c]=(0,Jgf.useState)(null);return{onSubmit:(0,Jgf.useCallback)(async s=>{try{let l=i.id,u=i.slug,d=i?.adminApprovalRequired??!1,f=r.get(`email`),p=s?.email||(f?decodeURIComponent(f):``),m=i?.allowedDomains??[];if(m.length>0&&p){let e=p.split(`@`)[1]?.toLowerCase();if(!m.some(t=>t.toLowerCase()===e)){c({title:`Email Domain Not Allowed`,description:`Please use an email address from one of the allowed domains: ${m.join(`, `)}`});return}}let h=s?.firstName??``,g=s?.lastName??``,_=s?.password??``,v=new Set([`firstName`,`lastName`,`email`,`password`,`confirmPassword`]),y=i?.uiSettings?.customRegistrationFields?.properties??{},b=Object.keys(s).reduce((e,t)=>{if(!v.has(t)){let n=s[t];y[t]?.type===`number`&&isFinite(Number(n))?e[t]=Number(n):e[t]=n}return e},{}),x=await e(),S=await o.mutateAsync({slug:u,orgRegistrationId:l,email:p,customFields:b,firstName:h,lastName:g,password:_,captchaResponse:x});if(S?.status===201){let e=[`approved`,`submitted`].includes(S.inviteStatus??``)?S.inviteStatus:d?`submitted`:`approved`;n({pathname:`${a}/success`,search:`?status=${e}`})}else c(Qgf(S)),t?.()}catch(e){WE(e),c(ZN[XN.EnvError]),t?.()}},[i,e,n,t,a,r,o]),errorMessage:s,setErrorMessage:c}}})),t_f,n_f,r_f=s((()=>{rj(),nw(),qN(),LN(),cdf(),SN(),t_f=L(),Ihf(),Whf(),Xhf(),agf(),e_f(),n_f=()=>{let{config:e,isLoading:t}=KN(),n=LC({defaultValues:{email:``,acceptedTos:!1}}),r=()=>{let t=e?.name?.trim();return t?`Welcome to ${t} Registration`:`Welcome to Registration`};return t?(0,t_f.jsx)(sdf,{}):(0,t_f.jsx)(JC,{...n,children:(0,t_f.jsxs)(IN,{loginConfigs:{name:e?.name??``,logo:e?.uiSettings?.logo,buttonColor:e?.uiSettings?.registrationButtonStyle?.backgroundColor,buttonTextColor:e?.uiSettings?.registrationButtonStyle?.textColor,hideVeritoneBranding:e?.uiSettings?.veritoneBranding},children:[(0,t_f.jsx)(xN,{text:r(),type:`register`,subText:`Please enter the information you would like associated with your account and accept our Terms & Conditions. This is the first step on your way to exploring all of the amazing content we have to offer!`,sx:{textAlign:`left`,fontWeight:`700`,fontSize:`16px`},subTextSx:{textAlign:`left`,fontSize:`12px`}}),(0,t_f.jsx)(NQd,{})]})})}})),pP,i_f,a_f,o_f=s((()=>{rj(),$pf(),nmf(),amf(),smf(),umf(),pmf(),Nmf(),Lmf(),Umf(),Ymf(),ehf(),chf(),ghf(),Thf(),Nhf(),r_f(),pP=L(),i_f=()=>{let{slug:e}=bQd(),t=XA(),n=t.pathname.split(`/`),r=n.findIndex(e=>e===`register`),i=n.slice(r+(e?2:1)).join(`/`),a=`../signup`;e&&(a+=`/${e}`),i&&(a+=`/${i}`);let o=t.search;return(0,pP.jsx)(MQd,{to:a+o,replace:!0})},a_f=({aiwareInit:e,allowVanityDomain:t=!1,onLoginSuccess:n})=>(0,pP.jsxs)(FQd,{children:[(0,pP.jsx)(QA,{path:`/login`,element:(0,pP.jsx)(Qpf,{allowVanityDomain:t,onLoginSuccess:n})}),(0,pP.jsx)(QA,{path:`/login/:slug`,element:(0,pP.jsx)(Qpf,{allowVanityDomain:t,onLoginSuccess:n})}),(0,pP.jsx)(QA,{path:`/forgot`,element:(0,pP.jsx)(tmf,{})}),(0,pP.jsx)(QA,{path:`/forgot/:slug`,element:(0,pP.jsx)(tmf,{})}),(0,pP.jsx)(QA,{path:`/sign-up`,element:(0,pP.jsx)(MQd,{to:`../signup`,replace:!0})}),(0,pP.jsx)(QA,{path:`/register`,element:(0,pP.jsx)(MQd,{to:`../signup`,replace:!0})}),(0,pP.jsx)(QA,{path:`/register/:slug/*`,element:(0,pP.jsx)(i_f,{})}),(0,pP.jsx)(QA,{path:`/signup`,element:(0,pP.jsx)(Mmf,{})}),(0,pP.jsx)(QA,{path:`/signup/verify`,element:(0,pP.jsx)(fhf,{})}),(0,pP.jsx)(QA,{path:`/signup/review`,element:(0,pP.jsx)(xhf,{})}),(0,pP.jsx)(QA,{path:`/signup/trial/verify`,element:(0,pP.jsx)(khf,{})}),(0,pP.jsxs)(QA,{path:`/signup/:slug/*`,element:(0,pP.jsx)(n_f,{}),children:[(0,pP.jsx)(QA,{path:`join`,element:(0,pP.jsx)(Xgf,{})}),(0,pP.jsx)(QA,{path:`success`,element:(0,pP.jsx)(ahf,{})}),(0,pP.jsx)(QA,{index:!0,element:(0,pP.jsx)(Fhf,{})}),(0,pP.jsx)(QA,{path:`confirm`,element:(0,pP.jsx)(Vhf,{})}),(0,pP.jsx)(QA,{path:`terms-of-service`,element:(0,pP.jsx)(Yhf,{})})]}),(0,pP.jsx)(QA,{path:`/plans`,element:(0,pP.jsx)(Hmf,{})}),(0,pP.jsx)(QA,{path:`/payment-result`,element:(0,pP.jsx)(Jmf,{})}),(0,pP.jsx)(QA,{path:`/restricted-provider`,element:(0,pP.jsx)(imf,{})}),(0,pP.jsx)(QA,{path:`/link-oid`,element:(0,pP.jsx)(omf,{})}),(0,pP.jsx)(QA,{path:`/reset-password/success`,element:(0,pP.jsx)(fmf,{})}),(0,pP.jsx)(QA,{path:`/reset-password`,element:(0,pP.jsx)(lmf,{})}),(0,pP.jsx)(QA,{path:`/activate`,element:(0,pP.jsx)(Imf,{})}),(0,pP.jsx)(QA,{path:`/logout`,element:(0,pP.jsx)($mf,{aiwareInit:e})})]})})),s_f=l({AuthRoutes:()=>a_f,ResetPassword:()=>Ruf,getConfig:()=>_N,getRestApiUrlFromConfig:()=>vN}),c_f=s((()=>{zuf(),o_f(),bN()}));function*l_f(){let e=yield I(Dv);yield Vi(T_f,function*(t){let n=yield M9e(t.payload.ids,e);n!==void 0&&(yield P(Y_f(n)))})}function*u_f(){yield Vi(g_f,function*(e){yield P(W_f(!0));let t=yield I(Dv),n;switch(e.payload.ownerType){case Nb.ORGANIZATION:n=yield A9e({name:e.payload.name,owned:!1,offset:0,limit:300,authToken:t});break;case Nb.MINE:n=yield A9e({name:e.payload.name,owned:!0,offset:0,limit:300,authToken:t});break;case Nb.SHARED:n=yield A9e({name:e.payload.name,owned:!1,offset:0,limit:300,authToken:t});break;case Nb.NOTEBOOKS:n=yield A9e({name:e.payload.name,owned:!0,offset:0,limit:300,authToken:t,isNotebook:!0});break;default:break}n!==void 0&&n&&(n.data.engines.records.length===0&&!e.payload.name&&(yield P(fvf(!0))),e.payload.ownerType===Nb.NOTEBOOKS?yield P(rvf(n.data.engines.records)):yield P(nvf(n.data.engines.records))),yield P(ovf(!1)),yield P(W_f(!1))})}function*d_f(){yield Vi(P_f,function*(e){let t=yield I(Dv),n=yield A9e({name:e.payload.name,owned:!0,offset:0,limit:300,authToken:t,isNotebook:!0});n!==void 0&&n&&(yield P(rvf(n.data.engines.records))),yield P(ovf(!1))})}function*f_f(){yield Vi(L_f,function*(){let e=yield F(k9e,yield I(Dv),{isPublic:!0,limit:200});e&&e.data&&e.data.flowTemplates&&e.data.flowTemplates.records&&e.data.flowTemplates.records.length>0&&(yield P(q_f(e.data.flowTemplates.records)),yield P(J_f(e.data.flowTemplates.records)))})}function*p_f(){yield Vi(v_f,function*(){let e,t=yield I(Dv);try{e=yield F(N9e,t)}catch{yield P({type:y_f,payload:!1})}(0,h_f.get)(e,`data.flowRevisions`,``)&&(yield P({type:y_f,payload:!0}))})}function*m_f(){yield Ur([l_f(),d_f(),u_f(),f_f(),p_f()])}var h_f,g_f,__f,v_f,y_f,b_f,x_f,S_f,C_f,w_f,T_f,E_f,D_f,O_f,k_f,A_f,j_f,M_f,N_f,P_f,F_f,I_f,L_f,R_f,z_f,B_f,V_f,H_f,U_f,W_f,G_f,mP,K_f,q_f,J_f,Y_f,X_f,Z_f,Q_f,$_f,evf,tvf,nvf,rvf,ivf,avf,ovf,svf,cvf,lvf,uvf,dvf,fvf,pvf,mvf,hP=s((()=>{ov(),qi(),Fb(),X(),h_f=d(mb()),g_f=`flow-center/FETCH_FLOWS`,__f=`flow-center/ADD_NEW_FLOW`,v_f=`flow-center/IS_REVISIONS_EXIST_ON_SERVER`,y_f=`flow-center/SET_IS_REVISIONS_EXIST_ON_SERVER`,b_f=`flow-center/SET_FETCHING_FLOWS`,x_f=`flow-center/SET_OPEN_TEMPLATE`,S_f=`flow-center/SET_TEMPLATE_SELECTED`,C_f=`flow-center/SET_TEMPLATES`,w_f=`flow-center/SET_FILTERED_TEMPLATES_ACTION`,T_f=`flow-center/FETCH_TAGS`,E_f=`flow-center/SET_TAGS`,D_f=`flow-center/SET_TAGS_TO_STORE`,O_f=`flow-center/SET_CATEGORIES`,k_f=`flow-center/SET_TEMPLATES_AUTHORS`,A_f=`flow-center/SET_SELECTED_FILTERS`,j_f=`flow-center/SET_TAG`,M_f=`flow-center/SET_FLOWS`,N_f=`flow-center/SET_NOTEBOOKS`,P_f=`flow-center/FETCH_NOTEBOOKS`,F_f=`flow-center/TOGGLE_IS_SEARCHING`,I_f=`flow-center/TOGGLE_IS_SEARCHING_LOADING`,L_f=`flow-center/SEARCH_TEMPLATES`,R_f=`flow-center/SET_SEARCHED`,z_f=`flow-center/SET_SEARCHED_TEMPLATES`,B_f=`flow-center/SET_CONFIG`,V_f=`flow-center/TOGGLE_STATE_CREATE_NEW_FLOW`,H_f=`flow-center/SET_SHOULD_CREATE_INITIAL_FLOWS`,U_f=`flow-center/GET_NODE_RED_VERSION_EDGE`,W_f=rv(b_f),G_f=rv(v_f),mP=rv(x_f),K_f=rv(S_f),q_f=rv(C_f),J_f=rv(w_f),rv(T_f),Y_f=rv(E_f),X_f=rv(D_f),Z_f=rv(O_f),Q_f=rv(k_f),$_f=rv(A_f),rv(j_f),evf=rv(g_f),tvf=rv(P_f),nvf=rv(M_f),rvf=rv(N_f),ivf=rv(__f),avf=rv(F_f),ovf=rv(I_f),svf=rv(L_f),cvf=rv(R_f),lvf=rv(z_f),uvf=rv(B_f),dvf=rv(V_f),fvf=rv(H_f),rv(U_f),pvf=aGe({flows:[],notebooks:[],shouldCreateInitialFlows:!1,fetchingFlows:!1,templateToOpen:{},isTemplateSelected:!1,tags:[],categories:[],templatesAuthors:[],templates:[],filteredTemplates:[],selectedFilters:{},isSearching:!1,isSearchingLoading:!1,searched:``,searchedTemplates:null,config:{isFullScreen:!1,automateFullScreen:!1,zIndex:0,graphQLEndpoint:``,defaultCluster:``},isLoadingCreateNewFlow:!1,isRevisionsExistOnServer:!1},{[g_f]:e=>({...e}),[__f]:(e,{payload:t})=>({...e,flows:[t,...e.flows]}),[b_f]:(e,{payload:t})=>({...e,fetchingFlows:t}),[x_f]:(e,{payload:t})=>({...e,templateToOpen:t}),[S_f]:(e,{payload:t})=>({...e,isTemplateSelected:t}),[E_f]:(e,{payload:t})=>({...e,tags:t}),[D_f]:(e,{payload:t})=>({...e,tags:t}),[O_f]:(e,{payload:t})=>({...e,categories:t}),[k_f]:(e,{payload:t})=>({...e,templatesAuthors:t}),[A_f]:(e,{payload:t})=>({...e,selectedFilters:t}),[C_f]:(e,{payload:t})=>({...e,templates:t}),[w_f]:(e,{payload:t})=>({...e,filteredTemplates:t}),[j_f]:(e,{payload:t})=>({...e,tag:t}),[M_f]:(e,{payload:t})=>({...e,flows:t}),[N_f]:(e,{payload:t})=>({...e,notebooks:t}),[F_f]:(e,{payload:t})=>({...e,isSearching:t}),[I_f]:(e,{payload:t})=>({...e,isSearchingLoading:t}),[R_f]:(e,{payload:t})=>({...e,searched:t}),[z_f]:(e,{payload:t})=>({...e,searchedTemplates:t}),[B_f]:(e,{payload:t})=>({...e,config:t}),[V_f]:(e,{payload:t})=>({...e,isLoadingCreateNewFlow:t}),[y_f]:(e,{payload:t})=>({...e,isRevisionsExistOnServer:t}),[H_f]:(e,{payload:t})=>({...e,shouldCreateInitialFlows:t})}),mvf=`flows`}));function*hvf(){yield Ur([m_f()])}var gvf=s((()=>{qi(),hP()})),_vf,vvf,yvf,bvf,xvf,Svf,Cvf=s((()=>{ov(),_vf=`newFlowClusterID`,vvf={newFlowClusterID:``},yvf=iv({name:_vf,initialState:vvf,reducers:{newFlowClusterIDAction(e,t){e.newFlowClusterID=t.payload}}}),bvf=e=>e?.newFlowClusterID||null,{newFlowClusterIDAction:xvf}=yvf.actions,Svf=yvf.reducer})),wvf,Tvf=s((()=>{Cvf(),wvf=Svf})),Evf,Dvf,Ovf,kvf,Avf,jvf=s((()=>{ov(),Evf=`engineDistributionType`,Dvf={engineDistributionType:`instance_locked`},Ovf=iv({name:Evf,initialState:Dvf,reducers:{engineDistributionTypeAction(e,t){e.engineDistributionType=t.payload}}}),{engineDistributionTypeAction:kvf}=Ovf.actions,Avf=Ovf.reducer})),Mvf,Nvf=s((()=>{jvf(),Mvf=Avf}));function Pvf(){return{id:`flow-center`,reducerMap:{[mvf]:pvf,[Fvf]:wvf,[Ivf]:Mvf,[Lvf]:rot},sagas:[hvf],initialActions:[]}}var Fvf,Ivf,Lvf,Rvf,zvf=s((()=>{hP(),gvf(),Tvf(),Nvf(),j_(),X(),Fvf=`newFlowClusterID`,Ivf=`engineDistributionType`,Lvf=`flowCenterDialog`,A_.addModules([Pvf()]),Rvf=A_})),Bvf=c((e=>{var t=zu();Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=t(cx()),r=L();e.default=(0,n.default)((0,r.jsx)(`path`,{d:`M14 6V4h-4v2h4zM4 8v11h16V8H4zm16-2c1.11 0 2 .89 2 2v11c0 1.11-.89 2-2 2H4c-1.11 0-2-.89-2-2l.01-11c0-1.11.88-2 1.99-2h4V4c0-1.11.89-2 2-2h4c1.11 0 2 .89 2 2v2h4z`}),`WorkOutlineOutlined`)})),Vvf=c((e=>{var t=zu();Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=t(cx()),r=L();e.default=(0,n.default)((0,r.jsx)(`path`,{d:`M16.67 13.13C18.04 14.06 19 15.32 19 17v3h4v-3c0-2.18-3.57-3.47-6.33-3.87zM15 12c2.21 0 4-1.79 4-4s-1.79-4-4-4c-.47 0-.91.1-1.33.24C14.5 5.27 15 6.58 15 8s-.5 2.73-1.33 3.76c.42.14.86.24 1.33.24zm-6 0c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0-6c1.1 0 2 .9 2 2s-.9 2-2 2-2-.9-2-2 .9-2 2-2zm0 7c-2.67 0-8 1.34-8 4v3h16v-3c0-2.66-5.33-4-8-4zm6 5H3v-.99C3.2 16.29 6.3 15 9 15s5.8 1.29 6 2v1z`}),`PeopleAltOutlined`)})),Hvf=c((e=>{var t=zu();Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=t(cx()),r=L();e.default=(0,n.default)((0,r.jsx)(`path`,{d:`M12 5.9c1.16 0 2.1.94 2.1 2.1s-.94 2.1-2.1 2.1S9.9 9.16 9.9 8s.94-2.1 2.1-2.1m0 9c2.97 0 6.1 1.46 6.1 2.1v1.1H5.9V17c0-.64 3.13-2.1 6.1-2.1M12 4C9.79 4 8 5.79 8 8s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4zm0 9c-2.67 0-8 1.34-8 4v3h16v-3c0-2.66-5.33-4-8-4z`}),`PersonOutlineOutlined`)})),Uvf=c((e=>{var t=zu();Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=t(cx()),r=L();e.default=(0,n.default)((0,r.jsx)(`path`,{d:`M13 3c-4.97 0-9 4.03-9 9H1l3.89 3.89.07.14L9 12H6c0-3.87 3.13-7 7-7s7 3.13 7 7-3.13 7-7 7c-1.93 0-3.68-.79-4.94-2.06l-1.42 1.42C8.27 19.99 10.51 21 13 21c4.97 0 9-4.03 9-9s-4.03-9-9-9zm-1 5v5l4.25 2.52.77-1.28-3.52-2.09V8z`}),`HistoryOutlined`)}));function Wvf({categories:e,filterers:t,type:n,screen:r,onSetType:i,showNavigation:a,fullScreen:o,automateFullScreen:s}){let{classes:c}=$vf(),l=K(),[u,d]=(0,Gvf.useState)([]),f=G(e=>e.flows.selectedFilters),p=G(e=>e.flows.isSearching);function m(e){switch(e){case`mine`:return r.toLowerCase()===e&&!p?(0,gP.jsx)(`img`,{width:`24px`,height:`24px`,src:Vct,alt:`myFlows`}):(0,gP.jsx)(`img`,{width:`24px`,height:`24px`,src:zct,alt:`myFlowsBlue`});case`templates`:return r.toLowerCase()===e&&!p?(0,gP.jsx)(`img`,{width:`24px`,height:`24px`,src:qct,alt:`templates`}):(0,gP.jsx)(`img`,{width:`24px`,height:`24px`,src:Gct,alt:`templatesBlue`});case`containers`:return(0,gP.jsx)(`img`,{width:`24px`,height:`24px`,src:ylt,alt:`containerDashboard`});case`notebooks`:return r.toLowerCase()===e&&!p?(0,gP.jsx)(`img`,{width:`24px`,height:`24px`,src:Vct,alt:`myFlows`}):(0,gP.jsx)(`img`,{width:`24px`,height:`24px`,src:zct,alt:`myFlowsBlue`});case`WorkOutlineOutlinedIcon`:return(0,gP.jsx)(qvf.default,{});case`PeopleAltOutlinedIcon`:return(0,gP.jsx)(Jvf.default,{});case`PersonOutlineOutlinedIcon`:return(0,gP.jsx)(Yvf.default,{});case`HistoryOutlinedIcon`:return(0,gP.jsx)(Xvf.default,{});default:return(0,gP.jsx)(Xvf.default,{})}}let h=e=>{let t=u.indexOf(e);d(t===-1?t=>(t.push(e),[...t]):e=>(e.splice(t,1),[...e]))},g=(e,t)=>{let n={...f},r=f[e];n[e]=[],r&&(n[e]=[...r]),n[e].includes(t)?n[e].splice(n[e].indexOf(t),1):n[e].push(t),n[e].length===0&&delete n[e],l($_f(n))};(0,Gvf.useEffect)(()=>{g(Pb.PUBLIC,`1`)},[]);let _=e=>{l(avf(!1)),l(ovf(!1)),l(cvf(``)),l(lvf(null)),l(evf(e===`notebooks`?{name:``,ownerType:Nb.NOTEBOOKS}:{name:``,ownerType:Nb.MINE})),i(e)},v=()=>t.map(({text:e,group:t,options:n},r)=>(0,gP.jsx)(`div`,{children:(0,gP.jsxs)(oh,{component:`fieldset`,className:c.formControl,"data-test":`flow-center-${t}-container`,id:`flow-center-${t}-container`,children:[(0,gP.jsxs)(`div`,{className:c.filterTitleContainer,children:[(0,gP.jsx)(ph,{className:c.category,component:`legend`,children:e}),(0,gP.jsx)(`div`,{className:c.expandIconClass,onClick:()=>h(r),children:u.includes(r)?(0,gP.jsx)(Zvf.default,{fontSize:`small`,style:{fill:`#555F7C`,width:`18px!important`,height:`18px!important`}}):(0,gP.jsx)(Qvf.default,{fontSize:`small`,style:{fill:`#555F7C`,width:`18px!important`,height:`18px!important`}})})]}),(0,gP.jsx)(`div`,{children:(0,gP.jsx)(Qbe,{className:c.group,children:n.map(({text:e,value:n})=>{if(!u.includes(r))return(0,gP.jsx)(lh,{control:(0,gP.jsx)(Mm,{checked:f[t]&&f[t].includes(n),name:n,color:`primary`,onClick:()=>g(t,n)}),label:(0,gP.jsx)(z,{"data-test":`flow-center-flows-table-optionText`,className:c.listItemTextFilters,children:e}),"data-test":`flow-center-filter-item`,id:`flow-center-filter-item`},`${t}-${n}`)})})})]},t+r)},t+r));return(0,gP.jsx)(B,{className:c.boxBackground,children:(0,gP.jsxs)(B,{className:c.marginLeft,children:[(0,gP.jsx)(Eh,{className:s?c.fullScreenMode:``,children:e.map(({key:e,text:t,icon:n})=>(0,gP.jsxs)(Mh,{id:`flow-center-navigation-listItem-conatiner`,"data-test":`flow-center-navigation-tabs-${e}`,button:!0,disableRipple:!0,selected:r.toLowerCase()===e&&!p,onClick:()=>_(e),className:c.paddingLeft,classes:{selected:c.selectedPaddingLeft},children:[(0,gP.jsx)(Fh,{className:c.icon,children:m(e)}),(0,gP.jsx)(Lh,{"data-test":`flow-center-navigation-listItemText`,className:`flow-center-navigation-listItemText`,primary:t,classes:{primary:c.listItemText}})]},e))}),a&&(()=>{let e=s?`calc(100vh - 64px - 16px - 86px - 8px - 54px`:`calc(100vh - 64px - 16px - 86px - 8px - ${o?`0px`:`54px`})`;return(0,gP.jsxs)(gP.Fragment,{children:[(0,gP.jsx)(eh,{}),(0,gP.jsx)(`div`,{className:c.scroll,style:{height:e},children:v()})]})})()]})})}var Gvf,Kvf,qvf,Jvf,Yvf,Xvf,Zvf,Qvf,gP,$vf,eyf=s((()=>{Gvf=d(g()),Kvf=Z(),th(),xxe(),sh(),exe(),uh(),Nm(),Ih(),Rh(),Nh(),Dh(),wm(),Jf(),qvf=d(Bvf()),Jvf=d(Vvf()),Yvf=d(Hvf()),Xvf=d(Uvf()),q(),hP(),Kb(),Fb(),Zvf=d(Jfd()),Qvf=d(US()),gP=L(),$vf=(0,Kvf.makeStyles)()(()=>({icon:{fontSize:`16px!important`,minWidth:`0px!important`,paddingLeft:`8px!important`,paddingRight:`8px!important`,"& svg":{fill:`#555F7C!important`}},text:{fontSize:`14px!important`},listItemText:{fontFamily:`Nunito`,fontStyle:`normal!important`,fontWeight:`normal!important`,fontSize:`14px!important`,lineHeight:`19px!important`,letterSpacing:`-1.30385e-09px!important`},listItemTextFilters:{fontFamily:`Nunito`,fontStyle:`normal!important`,fontWeight:`normal!important`,fontSize:`12px!important`,lineHeight:`16px!important`,letterSpacing:`-1.30385e-09px!important`,wordBreak:`break-word`},category:{fontFamily:`Nunito`,fontStyle:`normal!important`,color:`#2A323C!important`,fontSize:`14px!important`,marginright:`6px!important`,fontWeight:`500!important`,paddingLeft:`8px!important`},formControl:{marginBottom:`10px!important`,marginTop:`10px!important`},marginLeft:{paddingLeft:`8px!important`,paddingRight:`8px!important`},boxBackground:{height:`100%!important`},paddingLeft:{paddingLeft:`0px!important`,minWidth:`0px!important`,borderRadius:`4px!important`},fullScreenMode:{marginTop:`64.5px!important`},selectedPaddingLeft:{background:`#F2F5F9 !important`,color:`#1871E8 !important`},group:{paddingLeft:`8px!important`},filterTitleContainer:{display:`flex`,alignItems:`center!important`},expandIconClass:{display:`flex`,paddingLeft:`5px!important`,"&:hover":{cursor:`pointer!important`}},scroll:{overflowY:`auto`,overflowX:`hidden`}}))})),tyf,nyf,_P,ryf,iyf,ayf,oyf=s((()=>{tyf=d(g()),Am(),Fb(),jge(),Jf(),Dm(),mh(),Sge(),wm(),nyf=Z(),Y(),q(),hP(),Kb(),X(),pO(),W(),_P=L(),ryf=3,iyf=(0,nyf.makeStyles)()(e=>({container:{marginLeft:`12px!important`},cardRoot:{display:`flex`,flexDirection:`column`,justifyContent:`center!important`,border:`0.5px solid #D5DFE9!important`,boxShadow:`none!important`,borderRadius:`4px!important`,marginRight:`10px!important`},cardContainer:{marginTop:`20px!important`,marginLeft:`20px!important`,marginBottom:`15px!important`,marginRight:`20px!important`,maxHeight:`150px`,minHeight:`150px`,display:`flex`,flexDirection:`column`},title:{fontFamily:`Nunito`,fontStyle:`normal!important`,fontWeight:600,fontSize:`16px!important`,lineHeight:`22px!important`,letterSpacing:`-1.30385e-09px!important`,wordBreak:`break-word!important`,cursor:`pointer`,color:`#2A323C!important`},subtitle:{fontFamily:`Nunito`,fontStyle:`normal!important`,fontWeight:500,fontSize:`12px!important`,lineHeight:`16px!important`,letterSpacing:`-1.30385e-09px!important`,color:`#5C6269!important`,wordWrap:`break-word!important`},veritoneCertifiedContainer:{display:`flex`,marginTop:`10px!important`},veritoneCertified:{fontFamily:`Nunito`,fontStyle:`normal!important`,fontWeight:500,fontSize:`10px!important`,lineHeight:`18px!important`,letterSpacing:`-1.30385e-09px!important`,wordWrap:`break-word!important`,color:`#2A323C!important`,marginLeft:`4px!important`},pos:{marginBottom:12},centerButton:{justifyContent:`center!important`},cardContent:{padding:`0px!important`,height:`120px!important`,textOverflow:`ellipsis!important`},titleContent:{height:`82px!important`,overflow:`auto`},bottomButton:{marginTop:`10px`,padding:`0px!important`,display:`flex`,height:`30px!important`},box:{display:`flex`,marginTop:e.spacing(3.2),marginBottom:e.spacing(3.2)},viewAllButton:{color:`#6098D1!important`,textTransform:`none!important`,fontFamily:`Nunito`,fontStyle:`normal!important`,fontWeight:`normal!important`,fontSize:`12px!important`,lineHeight:`16px!important`,marginRight:`24px!important`,letterSpacing:`-1.30385e-09px!important`},createFlowButton:{textTransform:`none!important`,fontFamily:`Nunito`,fontStyle:`normal!important`,fontWeight:600,fontSize:`12px!important`,lineHeight:`16px!important`,marginLeft:`0px!important`,padding:`6px 12px 6px 12px!important`,background:e.palette.background.paper,color:`#1871E8!important`,letterSpacing:`0.02857em`},viewDetailsButton:{textTransform:`none!important`,fontFamily:`Nunito`,fontStyle:`normal!important`,fontWeight:600,fontSize:`12px!important`,lineHeight:`16px!important`,background:e.palette.background.paper,color:`#6098D1!important`,letterSpacing:`0.02857em`},createBlankFlowButton:{display:`flex`,justifyContent:`center!important`,"& svg":{fill:`#555F7C!important`}},createBlankFlowLayout:{display:`flex`,flexDirection:`column`},lowercaseButton:{textTransform:`none!important`,fontFamily:`Nunito`,fontStyle:`normal!important`,fontWeight:600,fontSize:`14px!important`,lineHeight:`19px!important`,letterSpacing:`-1.30385e-09px!important`},text:{fontFamily:`Nunito`,fontStyle:`normal!important`,fontWeight:400,fontSize:`16px!important`,lineHeight:`22px!important`,letterSpacing:`-1.30385e-09px!important`,color:`#2A323C!important`}})),ayf=({goToTemplateList:e,handleOpenFlowNameDialog:t,setScreen:n,handleOpenTemplateDetails:r})=>{let i=K(),{classes:a}=iyf(),[o,s]=(0,tyf.useState)([]),[c,l]=(0,tyf.useState)(0),u=G(Dv),[d,f]=(0,tyf.useState)(!0),p=(e,t)=>{e.data[t].records&&s(e.data[t].records),l(Math.min(ryf,e.data[t].records.length))};(0,tyf.useEffect)(()=>{if(o.length){setTimeout(()=>{f(!1)},3e3);return}k9e(u,{isPublic:!0}).then(e=>{setTimeout(()=>{f(!1)},3e3),p(e,`flowTemplates`)}).catch(e=>{WE(`error fetching flow templates: ${JSON.stringify(e)}`)})},[p]);let m=e=>{n(Nb.TEMPLATES),i(mP({id:e.id,title:e.title})),r(!0)},h=e=>{t(e)};return(0,_P.jsxs)(`div`,{className:a.container,children:[(0,_P.jsxs)(B,{mt:2,mb:2,className:a.box,children:[(0,_P.jsx)(z,{"data-test":`flow-center-flows-table-populatTemplates`,className:a.text,style:{flexGrow:1},children:(0,_P.jsx)(J,{id:`os-flow-center.1v6wsw`,defaultMessage:[{type:0,value:`Popular Templates`}]})}),(0,_P.jsx)(V,{"data-test":`flow-center-template-gallery-viewAllTemplates`,size:`small`,className:a.viewAllButton,onClick:e,children:(0,_P.jsx)(J,{id:`os-flow-center.viewall`,defaultMessage:[{type:0,value:`View All`}]})})]}),(0,_P.jsx)(U,{"data-test":`flow-center-templates-on-flows-page`,container:!0,id:`flow-center-templates`,children:o.slice(0,c).map((e,t)=>(0,_P.jsx)(U,{"data-test":`flow-center-templatesGallery`,item:!0,xs:4,children:(0,_P.jsx)(km,{className:a.cardRoot,id:`flow-center-template-card`,children:(0,_P.jsxs)(`div`,{className:a.cardContainer,children:[(0,_P.jsxs)(jm,{className:a.cardContent,children:[(0,_P.jsxs)(`div`,{className:a.titleContent,children:[d?(0,_P.jsx)(rg,{variant:`rectangular`,animation:`wave`,width:80,height:15}):(0,_P.jsx)(z,{"data-test":`flow-center-flows-templateGallery-title`,className:a.title,gutterBottom:!0,onClick:()=>m(e),children:e?.title}),d?(0,_P.jsx)(rg,{variant:`rectangular`,animation:`wave`,width:80,height:15,sx:{mt:`5px`}}):(0,_P.jsx)(z,{"data-test":`flow-center-flows-templateGallery-subtitle`,className:a.subtitle,"aria-multiline":!0,variant:`body2`,component:`p`,children:e.subtitle})]}),(0,_P.jsx)(`div`,{className:a.veritoneCertifiedContainer,children:d?(0,_P.jsx)(rg,{variant:`rectangular`,animation:`wave`,width:120,height:15}):(0,_P.jsxs)(_P.Fragment,{children:[(0,_P.jsx)(`img`,{src:Yct,alt:`veritoneCertifiedIcon`}),(0,_P.jsx)(z,{"data-test":`flow-center-flows-templateGallery-veritoneCertified`,className:a.veritoneCertified,component:`p`,children:(0,_P.jsx)(J,{id:`os-flow-center.veritonecertified`,defaultMessage:[{type:0,value:`Veritone Certified`}]})})]})})]}),(0,_P.jsxs)(bge,{className:a.bottomButton,children:[d?(0,_P.jsx)(rg,{variant:`rectangular`,animation:`wave`,width:120,height:20}):(0,_P.jsx)(V,{"data-test":`flow-center-template-gallery-createFlowFromTemplate-${t}`,onClick:()=>h?h(e.id):``,id:`flow-center-create-flow-btn-${t}`,size:`small`,variant:`outlined`,color:`primary`,className:a.createFlowButton,children:(0,_P.jsx)(J,{id:`os-flow-center.createflow`,defaultMessage:[{type:0,value:`Create Flow`}]})}),d?(0,_P.jsx)(rg,{variant:`rectangular`,animation:`wave`,width:120,height:15}):(0,_P.jsx)(V,{"data-test":`flow-center-template-gallery-viewDetailsForTemplate-${t}`,onClick:()=>m(e),size:`small`,color:`primary`,className:a.viewDetailsButton,children:(0,_P.jsx)(J,{id:`os-flow-center.viewdetails`,defaultMessage:[{type:0,value:`View Details`}]})})]})]})})},e.title+t))})]})}}));function syf(e,t){if(e===void 0)return cyf;switch(t.type){case`SET_LOCALE`:return{...e,locale:t.payload};case`SET_AUTHTOKEN`:return{...e,authToken:t.payload};case`SET_CONFIG`:return{...e,config:t.payload};case`FETCH_ENGINE_DISPATCHED`:return{...e,engineFetching:!0,engineFetchingFailed:!1,engineFetchingFailedReason:null,engine:null};case`FETCH_ENGINE_FAILED`:return{...e,engineFetching:!1,engineFetchingFailed:!0,engineFetchingFailedReason:t.payload,engine:null};case`FETCH_ENGINE_SUCCEEDED`:return{...e,engineFetching:!1,engineFetchingFailed:!1,engineFetchingFailedReason:null,engine:t.payload,engineDistrubutionType:t.payload.distributionType};case`FETCH_REVISIONS`:return{...e,engineRevisionsFetching:!0,engineRevisionsFetchingFailed:!1,engineRevisionsFetchingFailedReason:null,engineRevisions:null};case`FETCH_REVISIONS_FAILED`:return{...e,engineRevisionsFetching:!1,engineRevisionsFetchingFailed:!0,engineRevisionsFetchingFailedReason:t.payload,engineRevisions:null};case`FETCH_REVISIONS_SUCCEEDED`:return{...e,engineRevisionsFetching:!1,engineRevisionsFetchingFailed:!1,engineRevisionsFetchingFailedReason:null,engineRevisions:t.payload};case`FETCH_EXECUTIONS`:return{...e,fetchingExecutions:!0,executions:null,fetchExecutionsFail:null};case`FETCH_EXECUTIONS_FAIL`:return{...e,fetchingExecutions:!1,executions:null,fetchExecutionsFail:t.payload};case`FETCH_EXECUTIONS_SUCCEES`:return{...e,fetchingExecutions:!1,executions:t.payload,fetchExecutionsFail:null};case`FETCH_SCHEDULED_JOBS_DISPATCHED`:return{...e,scheduledJobsFetching:!0,scheduledJobsFailed:!1,scheduledJobsFailedReason:null,scheduledJobs:null};case`FETCH_SCHEDULED_JOBS_FAILED`:return{...e,scheduledJobsFetching:!1,scheduledJobsFailed:!0,scheduledJobsFailedReason:t.payload,scheduledJobs:null};case`FETCH_SCHEDULED_JOBS_SUCCEEDED`:return{...e,scheduledJobsFetching:!1,scheduledJobsFailed:!1,scheduledJobsFailedReason:null,scheduledJobs:t.payload};case`FETCH_JOBS_DISPATCHED`:return{...e,jobsFetching:!0,jobsFetchingFailed:!1,jobsFetchingFailedReason:null,jobsFetched:null};case`FETCH_JOBS_FAILED`:return{...e,jobsFetching:!1,jobsFetchingFailed:!0,jobsFetchingFailedReason:t.payload,jobsFetched:null};case`FETCH_JOBS_SUCCEEDED`:return{...e,jobsFetching:!1,jobsFetchingFailed:!1,jobsFetchingFailedReason:null,jobsFetched:t.payload};case`UPDATE_FLOW_REVISION_DESCRIPTION`:return{...e,flowRevisionDescriptionUpdating:!0,flowRevisionDescriptionUpdateFailed:!1,flowRevisionDescriptionUpdateFailedReason:null,flowRevisionDescriptionUpdate:null};case`UPDATE_FLOW_REVISION_DESCRIPTION_FAILED`:return{...e,flowRevisionDescriptionUpdating:!1,flowRevisionDescriptionUpdateFailed:!0,flowRevisionDescriptionUpdateFailedReason:t.payload,flowRevisionDescriptionUpdate:null};case`UPDATE_FLOW_REVISION_DESCRIPTION_SUCCEEDED`:return{...e,flowRevisionDescriptionUpdating:!1,flowRevisionDescriptionUpdateFailed:!1,flowRevisionDescriptionUpdateFailedReason:null,flowRevisionDescriptionUpdate:t.payload};case`CLEAN_UPDATE_FLOW_REVISION_DESCRIPTION`:return{...e,flowRevisionDescriptionUpdating:!1,flowRevisionDescriptionUpdateFailed:!1,flowRevisionDescriptionUpdateFailedReason:null,flowRevisionDescriptionUpdate:null};case`RESTORE_THIS_REVISION`:return{...e,restoreThisRevisionInProgress:!0,restoreThisRevisionFailed:!1,restoreThisRevisionFailedReason:null,restoreThisRevisionResult:null};case`RESTORE_THIS_REVISION_FAILED`:return{...e,restoreThisRevisionInProgress:!1,restoreThisRevisionFailed:!0,restoreThisRevisionFailedReason:t.payload,restoreThisRevisionResult:null};case`RESTORE_THIS_REVISION_SUCCEEDED`:return{...e,restoreThisRevisionInProgress:!1,restoreThisRevisionFailed:!1,restoreThisRevisionFailedReason:null,restoreThisRevisionResult:t.payload};case`CLEAN_RESTORE_THIS_REVISION_SUCCEEDED`:return{...e,restoreThisRevisionInProgress:!1,restoreThisRevisionFailed:!1,restoreThisRevisionFailedReason:null,restoreThisRevisionResult:null};case`COPY_FLOW`:return{...e,copyFlowInProgress:!0,copyFlowFailed:!1,copyFlowFailedReason:null,copyFlowResult:null};case`COPY_FLOW_FAILED`:return{...e,copyFlowInProgress:!1,copyFlowFailed:!0,copyFlowFailedReason:t.payload,copyFlowResult:null};case`COPY_FLOW_SUCCEEDED`:return{...e,copyFlowInProgress:!1,copyFlowFailed:!1,copyFlowFailedReason:null,copyFlowResult:t.payload};case`CLEAN_COPY_FLOW`:return{...e,copyFlowInProgress:!1,copyFlowFailed:!1,copyFlowFailedReason:null,copyFlowResult:null};case`FLOW_RESUME_ACTION`:return{...e,flowResumeInProgress:!0,flowResumeFailed:!1,flowResumeFailedReason:null,flowResumeResult:null};case`FLOW_RESUME_ACTION_FAILED`:return{...e,flowResumeInProgress:!1,flowResumeFailed:!0,flowResumeFailedReason:t.payload,flowResumeResult:null};case`FLOW_RESUME_ACTION_SUCCEEDED`:return{...e,flowResumeInProgress:!1,flowResumeFailed:!1,flowResumeFailedReason:null,flowResumeResult:t.payload};case`CLEAN_FLOW_RESUME_ACTION`:return{...e,flowResumeInProgress:!1,flowResumeFailed:!1,flowResumeFailedReason:null,flowResumeResult:null};case`FLOW_PAUSE_ACTION`:return{...e,flowPauseInProgress:!0,flowPauseFailed:!1,flowPauseFailedReason:null,flowPauseResult:null};case`FLOW_PAUSE_ACTION_FAILED`:return{...e,flowPauseInProgress:!1,flowPauseFailed:!0,flowPauseFailedReason:t.payload,flowPauseResult:null};case`FLOW_PAUSE_ACTION_SUCCEEDED`:return{...e,flowPauseInProgress:!1,flowPauseFailed:!1,flowPauseFailedReason:null,flowPauseResult:t.payload};case`CLEAN_FLOW_PAUSE_ACTION`:return{...e,flowPauseInProgress:!1,flowPauseFailed:!1,flowPauseFailedReason:null,flowPauseResult:null};case`SET_ENGINE_DISTRIBUTION_TYPE_ACTION`:return{...e,engineDistrubutionType:t.payload};default:return e}}var cyf,lyf=s((()=>{cyf={locale:`he`,engine:null,engineDistrubutionType:null}})),uyf,dyf=s((()=>{lyf(),uyf=syf}));function fyf(e,t){if(e===void 0)return pyf;switch(t.type){case`SET_LOCALE`:return{...e,locale:t.payload};case`SET_AUTHTOKEN`:return{...e,authToken:t.payload};default:return e}}var pyf,myf=s((()=>{pyf={locale:`he`}})),hyf,gyf=s((()=>{myf(),hyf=fyf}));function _yf(e,t){if(e===void 0)return vyf;switch(t.type){case`SET_CONFIG`:return{...e,config:t.payload};case`SET_CONFIG_PARAMS`:return{...e,params:t.payload};case`FETCH_ME_LOADING`:return{...e,me:null,meFetchingFailed:null,meFetchingLoading:!0};case`FETCH_ME_FAILED`:return{...e,me:null,meFetchingFailed:t.payload,meFetchingLoading:!1};case`FETCH_ME_SUCCEEDED`:return{...e,me:t.payload,meFetchingFailed:null,meFetchingLoading:!1};case`SET_IS_REVISIONS_EXIST_ON_SERVER`:return{...e,isRevisionsExistOnServer:t.payload};case`FETCH_ORG_USERS`:return{...e,orgUsersFetching:!0,orgUsersFetchingFailed:!1,orgUsersFetchingFailedReason:null,users:null};case`FETCH_ORG_USERS_FAILED`:return{...e,orgUsersFetching:!1,orgUsersFetchingFailed:!0,orgUsersFetchingFailedReason:t.payload,users:null};case`FETCH_ORG_USERS_SUCCEEDED`:return{...e,orgUsersFetching:!1,orgUsersFetchingFailed:!1,orgUsersFetchingFailedReason:null,users:t.payload};default:return e}}var vyf,yyf=s((()=>{vyf={isRevisionsExistOnServer:!1}})),byf,xyf=s((()=>{yyf(),byf=_yf})),Syf,Cyf,wyf=s((()=>{X(),Syf=async(e,t,n)=>Jv({query:Cyf,graphEndpoint:t,token:n,variables:{flowId:e}}),Cyf=`
|
|
3256
3256
|
query getFlowRevisions($flowId: ID!) {
|
|
3257
3257
|
flowRevisions(flowId: $flowId, hasBuilds: true) {
|
|
3258
3258
|
records {
|
package/index.umd.min.js
CHANGED
|
@@ -3252,7 +3252,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
3252
3252
|
`}
|
|
3253
3253
|
</body>
|
|
3254
3254
|
</html>
|
|
3255
|
-
`,Yhf=()=>{let e=ZA(),[t]=tj(),{config:n,tosFile:r,privacyPolicyUrl:i,registerUri:a}=KN(),o=(0,Ghf.useRef)(null),[s,c]=(0,Ghf.useState)({content:``,fileType:`unknown`}),[l,u]=(0,Ghf.useState)(!1),d=async()=>{let n=decodeURIComponent(t.get(`email`)),i=decodeURIComponent(t.get(`token`)),o=decodeURIComponent(t.get(`referer`)),s=decodeURIComponent(t.get(`userId`)),c=decodeURIComponent(t.get(`redirect`));if(o===`login`&&r?.fileId)try{if((await duf(i,s,r.fileId,new Date().toUTCString())).errors){alert(`Something went wrong while saving your terms of service acceptance`);return}if(c)window.location.href=c;else{let e=vN()?vN()+`/api/admin/switch-app`:_N().switchAppUrl;window.location.href=e+`/default`}return}catch(e){console.error(`Error updating user setting:`,e)}e({pathname:`${a}/join`,search:`?email=${encodeURIComponent(n)}&token=${encodeURIComponent(i)}`})};return(0,Ghf.useEffect)(()=>{s.fileType===`unknown`&&(async()=>{if(r?.url){u(!0);try{c(await qhf(r.url,s.fileType))}catch(e){console.error(`Error loading content:`,e)}finally{u(!1)}}})()},[r,s]),(0,Ghf.useEffect)(()=>{o.current&&(o.current.srcdoc=Jhf(s.content,s.fileType))},[s]),(0,Ghf.useEffect)(()=>{let n=t.has(`email`),i=t.has(`token`);!n&&!i?e(a):n&&i&&!r&&d()},[t,r]),(0,uP.jsxs)(H,{gap:3,sx:{width:`750px`,position:`relative`,left:`50%`,transform:`translateX(-50%)`},children:[l?(0,uP.jsx)(B,{sx:{display:`flex`,justifyContent:`center`},children:(0,uP.jsx)(Fm,{})}):r&&(0,uP.jsx)(B,{children:(0,uP.jsx)(`iframe`,{ref:o,title:r.name,style:Khf.iframeStyles,...Khf.iframe})}),i&&(0,uP.jsx)(z,{variant:`body2`,textAlign:`center`,component:`a`,target:`_blank`,href:i.url,sx:Khf.privacyPolicy,"data-testid":`os-auth-register-privacy-policy`,children:`Privacy Policy`}),(0,uP.jsx)(B,{sx:Khf.buttonContainer,children:(0,uP.jsx)(CN,{text:`Accept & Continue`,type:`button`,onClick:d,buttonColor:n?.uiSettings?.registrationButtonStyle?.backgroundColor,buttonTextColor:n?.uiSettings?.registrationButtonStyle?.textColor,testId:`os-auth-register-accept-continue-button`})})]})}})),Zhf=c((e=>{var t=zu();Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=t(cx()),r=L();e.default=(0,n.default)((0,r.jsx)(`path`,{d:`M18 15v3H6v-3H4v3c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2v-3h-2zm-1-4-1.41-1.41L13 12.17V4h-2v8.17L8.41 9.59 7 11l5 5 5-5z`}),`FileDownloadOutlined`)})),Qhf=c((e=>{var t=zu();Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=t(cx()),r=L();e.default=(0,n.default)([(0,r.jsx)(`path`,{d:`M19 8h-1V3H6v5H5c-1.66 0-3 1.34-3 3v6h4v4h12v-4h4v-6c0-1.66-1.34-3-3-3zM8 5h8v3H8V5zm8 12v2H8v-4h8v2zm2-2v-2H6v2H4v-4c0-.55.45-1 1-1h14c.55 0 1 .45 1 1v4h-2z`},`0`),(0,r.jsx)(`circle`,{cx:`18`,cy:`11.5`,r:`1`},`1`)],`PrintOutlined`)})),$hf,egf,tgf,dP,ngf,rgf,igf,agf=s((()=>{W(),$hf=d(g()),egf=d(Zhf()),tgf=d(Qhf()),qN(),dP=L(),ngf=async e=>{let t=e.toLowerCase();if(t.endsWith(`.pdf`)||t.includes(`.pdf?`))return`pdf`;if(t.endsWith(`.txt`)||t.endsWith(`.text`)||t.endsWith(`.html`))return`text`;try{let t=(await fetch(e,{method:`HEAD`})).headers.get(`content-type`)||``;if(t.includes(`pdf`))return`pdf`;if(t.includes(`text`)||t.includes(`html`))return`text`}catch(e){return console.error(`Error detecting file type:`,e),`pdf`}return`pdf`},rgf=async e=>{try{let t=await fetch(e);if(!t.ok)throw Error(`HTTP error! status: ${t.status}`);return await t.text()}catch(e){throw console.error(`Error fetching text content:`,e),e}},igf=()=>{let{tosFile:e}=KN(),[t,n]=(0,$hf.useState)({content:``,fileType:`unknown`}),[r,i]=(0,$hf.useState)(!1),[a,o]=(0,$hf.useState)(null);return(0,$hf.useEffect)(()=>{(async()=>{if(!(!e?.url||a===e.url)){i(!0);try{await ngf(e.url)===`pdf`?n({content:e.url,fileType:`pdf`}):n({content:await rgf(e.url),fileType:`text`}),o(e.url)}catch(t){console.error(`Error loading terms content:`,t),n({content:e.url,fileType:`pdf`}),o(e.url)}finally{i(!1)}}})()},[e?.url,a]),e?(0,dP.jsxs)(B,{sx:{width:`100%`,mb:3},children:[(0,dP.jsxs)(H,{direction:`row`,justifyContent:`space-between`,alignItems:`center`,sx:{mb:1},children:[(0,dP.jsx)(z,{sx:{color:`#212121`,fontSize:`12px`,fontFamily:`Nunito`},children:`Terms & Conditions`}),(0,dP.jsxs)(H,{direction:`row`,spacing:1,children:[(0,dP.jsx)(Bf,{size:`small`,onClick:()=>{e?.url&&window.open(e.url,`_blank`)},disabled:r,"aria-label":`Download Terms & Conditions`,sx:{color:`#555F7C`},"data-testid":`os-auth-register-terms-and-conditions-download-button`,children:(0,dP.jsx)(egf.default,{})}),(0,dP.jsx)(Bf,{size:`small`,onClick:()=>{if(t.fileType===`pdf`&&t.content){let e=window.open(t.content,`_blank`);e&&(e.onload=()=>{e.print()})}else if(t.content){let e=window.open(``,`_blank`);if(e){let{document:n}=e;n.title=`Terms & Conditions`;let r=n.createElement(`style`);r.textContent=`body { font-family: Arial, sans-serif; padding: 20px; line-height: 1.6; } pre { white-space: pre-wrap; }`,n.head&&n.head.appendChild(r);let i=n.createElement(`h1`);i.textContent=`Terms & Conditions`;let a=n.createElement(`pre`);a.textContent=t.content,n.body&&(n.body.appendChild(i),n.body.appendChild(a)),e.focus(),e.print()}}},disabled:r||!t.content,"aria-label":`Print Terms & Conditions`,sx:{color:`#555F7C`},"data-testid":`os-auth-register-terms-and-conditions-print-button`,children:(0,dP.jsx)(tgf.default,{})})]})]}),(0,dP.jsx)(B,{sx:{width:`100%`,height:`200px`,border:`1px solid #E0E0E0`,borderRadius:`6px`,overflowY:t.fileType===`pdf`?`hidden`:`auto`,overflowX:`hidden`,padding:t.fileType===`pdf`?0:2,backgroundColor:`#FAFAFA`},children:r?(0,dP.jsx)(B,{sx:{display:`flex`,justifyContent:`center`,alignItems:`center`,height:`100%`},children:(0,dP.jsx)(Fm,{size:24})}):t.fileType===`pdf`?(0,dP.jsx)(B,{component:`iframe`,src:t.content,sx:{width:`100%`,height:`100%`,border:`none`,borderRadius:`6px`},title:`Terms & Conditions PDF`}):t.content?(0,dP.jsx)(z,{variant:`body2`,component:`pre`,sx:{whiteSpace:`pre-wrap`,wordWrap:`break-word`,fontFamily:`inherit`,margin:0,lineHeight:1.6},children:t.content}):(0,dP.jsx)(z,{variant:`body2`,color:`#212121`,children:`Unable to load terms content.`})})]}):null}})),ogf,sgf,cgf,lgf=s((()=>{ogf=d(g(),1),sgf=`GoogleReCaptcha Context has not yet been implemented, if you are using useGoogleReCaptcha hook, make sure the hook is called inside component wrapped by GoogleRecaptchaProvider`,cgf=(0,ogf.createContext)({instance:void 0,siteKey:``,language:``,isLoading:!0,executeV3:()=>{throw Error(sgf)},executeV2Invisible:()=>{throw Error(sgf)},reset:()=>{throw Error(sgf)},getResponse:()=>{throw Error(sgf)},render:()=>{throw Error(sgf)}})})),ugf,dgf,fgf=s((()=>{lgf(),ugf=d(g(),1),dgf=()=>(0,ugf.useContext)(cgf)})),pgf,mgf=s((()=>{pgf=()=>!!document.querySelector(`script[src*="/recaptcha/"]:not([src*="gstatic"])`)})),hgf,ggf=s((()=>{hgf=()=>`.grecaptcha-badge{display: none !important;}`})),_gf,vgf=s((()=>{_gf=({host:e=`google.com`,isEnterprise:t=!1,render:n,hl:r,badge:i})=>{let a=new URLSearchParams({...r&&{hl:r},...i&&{badge:i},render:n});return`https://www.${e}/recaptcha/${t?`enterprise.js`:`api.js`}?${a}`}})),ygf,bgf=s((()=>{ggf(),ygf=()=>{let e=document.createElement(`style`);e.innerHTML=hgf(),document.body.appendChild(e)}})),xgf,Sgf=s((()=>{vgf(),xgf=({onload:e,appendTo:t=`head`,isEnterprise:n=!1,host:r,render:i,badge:a,hl:o,...s})=>{let c=_gf({host:r,isEnterprise:n,render:i,hl:o,badge:a}),l=document.createElement(`script`);Object.entries(s).forEach(([e,t])=>{l.setAttribute(e,t?.toString()??``)}),l.src=c,l.onload=e,document[t].appendChild(l)}})),Cgf,wgf=s((()=>{Cgf=()=>{let e=document.querySelector(`.grecaptcha-badge`);e&&e.parentNode&&document.body.removeChild(e.parentNode)}})),Tgf,Egf=s((()=>{Tgf=e=>{let t=document.getElementById(e);if(t)for(;t.lastChild;)t.lastChild.remove()}})),Dgf,Ogf,kgf=s((()=>{Dgf=`https://www.gstatic.com/recaptcha/releases`,Ogf=()=>{window.___grecaptcha_cfg=void 0;let e=document.querySelector(`script[src*="/recaptcha/"]:not([src*="gstatic"])`);e&&e.remove();let t=document.querySelector(`script[src^="${Dgf}"]`);t&&t.remove()}})),Agf=s((()=>{mgf(),bgf(),Sgf(),wgf(),Egf(),kgf()})),jgf,Mgf,Ngf,Pgf,Fgf=s((()=>{fgf(),Agf(),jgf=d(g(),1),Mgf=L(),Ngf=`google-recaptcha-badge-container`,Pgf=({id:e=Ngf,theme:t,language:n,badge:r=`bottomright`,onChange:i,onError:a,onExpired:o})=>{let s=(0,jgf.useRef)(null),c=dgf(),l=t??c.theme,u=n??c.language;return(0,jgf.useEffect)(()=>{if(!c.render)return;let t=document.createElement(`div`),n={sitekey:c.siteKey,badge:r,size:`invisible`,callback:i,"expired-callback":o,"error-callback":a,theme:l,...u&&{hl:u}};return c.render(t,n),s.current&&s.current.appendChild(t),()=>{Tgf(e)}},[c.render,c.siteKey,r,i,a,o,l,u]),!c.render||!c.siteKey?null:(0,Mgf.jsx)(`div`,{ref:s,id:e})}})),Igf,Lgf,Rgf=s((()=>{Igf=d(g(),1),Lgf=(e=!1)=>{let[t,n]=(0,Igf.useState)(e);return[t,e=>n(t=>e??!t)]}})),zgf=s((()=>{Rgf()})),Bgf,Vgf,Hgf,Ugf,Wgf,Ggf=s((()=>{lgf(),Agf(),Bgf=d(g(),1),Vgf=L(),zgf(),Hgf=`onGoogleReCaptchaLoad`,Ugf=`google-recaptcha-container`,Wgf=({type:e,siteKey:t,language:n,scriptProps:r,isEnterprise:i=!1,host:a,theme:o=`light`,children:s,explicit:c,onLoad:l,onError:u})=>{let[d,f]=Lgf(!0),p=(0,Bgf.useRef)(void 0);(0,Bgf.useEffect)(()=>{let s=r?.id??`google-recaptcha-${e}-script`,d=pgf();try{let m=()=>{f(!0);let n=i?window.grecaptcha?.enterprise:window.grecaptcha;if(!n){u?.(),f(!1);return}if(c||n.ready(async()=>{p.current=n,await l?.(n),f(!1)}),c){let r={size:e===`v3`||e===`v2-invisible`?`invisible`:`normal`,...(e===`v3`||e===`v2-invisible`)&&{badge:`bottomright`},sitekey:t,theme:o,...typeof c==`object`&&{...c,"expired-callback":c.expiredCallback,"error-callback":c.errorCallback}};d||typeof c==`object`&&(e===`v3`||e===`v2-invisible`)&&c?.badge===`hidden`&&ygf(),n.ready(async()=>{typeof c==`object`&&c.container&&n.render(c.container,r,!!c.inherit),p.current=n,l&&await l(n),f(!1)})}};return window[Hgf]=m,d?m():xgf({isEnterprise:i,host:a,...(e===`v3`||e===`v2-invisible`)&&typeof c==`object`&&c?.badge&&{badge:c?.badge===`hidden`?`bottomright`:c?.badge},...n&&{hl:n},render:c||e===`v2-checkbox`?`explicit`:t,...r,onload:m,id:s}),()=>{pgf()&&Ogf(),typeof c==`object`&&(e===`v3`||e===`v2-invisible`)&&!c?.container&&c?.badge?Tgf(Ugf):Cgf()}}catch{f(!1)}},[i,n,a,t,e]);let m=e=>{if(!p.current?.execute)throw Error(`Google ReCaptcha has not been loaded`);return p.current.execute(t,{action:e})},h=e=>{if(!p.current?.execute)throw Error(`Google ReCaptcha has not been loaded`);return p.current.execute(e)},g=(0,Bgf.useMemo)(()=>({instance:p.current,siteKey:t,isLoading:d,theme:o,executeV2Invisible:h,executeV3:m,reset:p.current?.reset,getResponse:p.current?.getResponse,render:p.current?.render,...n&&{language:n}}),[t,d,n]);return(0,Vgf.jsx)(cgf.Provider,{value:g,children:s})}})),Kgf=s((()=>{fgf(),Fgf(),Ggf()}));function qgf(){let{config:e,tosFile:t}=KN(),n=!!t?.url,r=Lpf(),{executeV2Invisible:i,reset:a}=dgf(),o=(0,Jgf.useRef)(null),s=(0,Jgf.useCallback)(e=>{o.current?.(e),o.current=null},[]),{onSubmit:c,errorMessage:l,setErrorMessage:u}=$gf({getRecaptchaToken:(0,Jgf.useCallback)(()=>new Promise((e,t)=>{if(!i){t(Error(`reCAPTCHA is not ready`));return}o.current=n=>{if(!n){t(Error(`reCAPTCHA returned an empty token`));return}e(n)},i()}),[i]),onRegistrationFailure:(0,Jgf.useCallback)(()=>a?.(),[a])}),d=[{fieldKey:`firstName`,title:`First Name`,type:`text`,required:!0},{fieldKey:`lastName`,title:`Last Name`,type:`text`,required:!0},{fieldKey:`company`,title:`Company`,type:`text`,required:!0},{fieldKey:`email`,title:`Email`,type:`text`,required:!0},{fieldKey:`password`,title:`Password`,type:`password`,required:!0},{fieldKey:`confirmPassword`,title:`Confirm Password`,type:`password`,required:!0}],f=Ate($u().breakpoints.down(`md`)),p=Ate(`(max-height: 800px)`);return(0,fP.jsxs)(B,{sx:{width:xdf,...(f||p)&&{height:`588px`,overflowY:`auto`,overflowX:`hidden`,paddingTop:1}},children:[(0,fP.jsx)(vMd,{htmlFormId:Ygf,schema:e?.uiSettings?.customRegistrationFields,additionalFields:d,passwordPolicy:e?.uiSettings?.passwordPolicy,renderFormActions:({isSubmitting:t,isValid:i,htmlFormId:a})=>(0,fP.jsxs)(H,{gap:2,children:[(0,fP.jsx)(igf,{}),(0,fP.jsx)(Olf,{hasTos:n,loading:r.isPending,isSubmitting:t,disabled:!i,buttonColor:e?.uiSettings?.registrationButtonStyle?.backgroundColor,buttonTextColor:e?.uiSettings?.registrationButtonStyle?.textColor,htmlForm:a})]}),onSubmit:c,sx:{width:`100%`}}),(0,fP.jsx)(Pgf,{badge:`inline`,onChange:s,style:{display:`none`}}),l&&(0,fP.jsx)(Xpf,{open:!!l,message:l,onClose:()=>u(null)})]})}var Jgf,fP,Ygf,Xgf,Zgf,Qgf,$gf,e_f=s((()=>{Jgf=d(g()),rj(),pO(),Kgf(),qN(),wN(),W(),LN(),bN(),agf(),Zpf(),fP=L(),Ygf=`registration-join-form`,Xgf=()=>{let e=slf();return e?(0,fP.jsx)(Wgf,{type:`v2-invisible`,siteKey:e,children:(0,fP.jsx)(qgf,{})}):(WE(Error(`Registration recaptcha site key is not configured`)),(0,fP.jsx)(B,{sx:{width:xdf},children:(0,fP.jsx)(Kf,{severity:`error`,children:`Registration is unavailable due to a configuration issue. Please contact support.`})}))},Zgf=new Map([[`registration_not_approved`,XN.RegistrationNotApproved],[`account_exists`,XN.AccountExists],[`registration_configuration_invalid`,XN.RegistrationConfigurationInvalid]]),Qgf=({status:e,code:t,message:n})=>{if(t){let e=Zgf.get(t);if(e)return ZN[e];if(typeof n==`string`&&n)return{description:n}}switch(e){case 401:return ZN[XN.CaptchaError];case 400:return ZN[XN.RegistrationError];case 409:return ZN[XN.InviteExists];default:return ZN[XN.EnvError]}},$gf=({getRecaptchaToken:e,onRegistrationFailure:t})=>{let n=ZA(),[r]=tj(),{config:i,registerUri:a}=KN(),o=Lpf(),[s,c]=(0,Jgf.useState)(null);return{onSubmit:(0,Jgf.useCallback)(async s=>{try{let l=i.id,u=i.slug,d=i?.adminApprovalRequired??!1,f=r.get(`email`),p=s?.email||(f?decodeURIComponent(f):``),m=i?.allowedDomains??[];if(m.length>0&&p){let e=p.split(`@`)[1]?.toLowerCase();if(!m.some(t=>t.toLowerCase()===e)){c({title:`Email Domain Not Allowed`,description:`Please use an email address from one of the allowed domains: ${m.join(`, `)}`});return}}let h=s?.firstName??``,g=s?.lastName??``,_=s?.password??``,v=new Set([`firstName`,`lastName`,`email`,`password`,`confirmPassword`]),y=i?.uiSettings?.customRegistrationFields?.properties??{},b=Object.keys(s).reduce((e,t)=>{if(!v.has(t)){let n=s[t];y[t]?.type===`number`&&isFinite(Number(n))?e[t]=Number(n):e[t]=n}return e},{}),x=await e(),S=await o.mutateAsync({slug:u,orgRegistrationId:l,email:p,customFields:b,firstName:h,lastName:g,password:_,captchaResponse:x});if(S?.status===201){let e=d?`submitted`:`approved`;n({pathname:`${a}/success`,search:`?status=${e}`})}else c(Qgf(S)),t?.()}catch(e){WE(e),c(ZN[XN.EnvError]),t?.()}},[i,e,n,t,a,r,o]),errorMessage:s,setErrorMessage:c}}})),t_f,n_f,r_f=s((()=>{rj(),nw(),qN(),LN(),cdf(),SN(),t_f=L(),Ihf(),Whf(),Xhf(),agf(),e_f(),n_f=()=>{let{config:e,isLoading:t}=KN(),n=LC({defaultValues:{email:``,acceptedTos:!1}}),r=()=>{let t=e?.name?.trim();return t?`Welcome to ${t} Registration`:`Welcome to Registration`};return t?(0,t_f.jsx)(sdf,{}):(0,t_f.jsx)(JC,{...n,children:(0,t_f.jsxs)(IN,{loginConfigs:{name:e?.name??``,logo:e?.uiSettings?.logo,buttonColor:e?.uiSettings?.registrationButtonStyle?.backgroundColor,buttonTextColor:e?.uiSettings?.registrationButtonStyle?.textColor,hideVeritoneBranding:e?.uiSettings?.veritoneBranding},children:[(0,t_f.jsx)(xN,{text:r(),type:`register`,subText:`Please enter the information you would like associated with your account and accept our Terms & Conditions. This is the first step on your way to exploring all of the amazing content we have to offer!`,sx:{textAlign:`left`,fontWeight:`700`,fontSize:`16px`},subTextSx:{textAlign:`left`,fontSize:`12px`}}),(0,t_f.jsx)(NQd,{})]})})}})),pP,i_f,a_f,o_f=s((()=>{rj(),$pf(),nmf(),amf(),smf(),umf(),pmf(),Nmf(),Lmf(),Umf(),Ymf(),ehf(),chf(),ghf(),Thf(),Nhf(),r_f(),pP=L(),i_f=()=>{let{slug:e}=bQd(),t=XA(),n=t.pathname.split(`/`),r=n.findIndex(e=>e===`register`),i=n.slice(r+(e?2:1)).join(`/`),a=`../signup`;e&&(a+=`/${e}`),i&&(a+=`/${i}`);let o=t.search;return(0,pP.jsx)(MQd,{to:a+o,replace:!0})},a_f=({aiwareInit:e,allowVanityDomain:t=!1,onLoginSuccess:n})=>(0,pP.jsxs)(FQd,{children:[(0,pP.jsx)(QA,{path:`/login`,element:(0,pP.jsx)(Qpf,{allowVanityDomain:t,onLoginSuccess:n})}),(0,pP.jsx)(QA,{path:`/login/:slug`,element:(0,pP.jsx)(Qpf,{allowVanityDomain:t,onLoginSuccess:n})}),(0,pP.jsx)(QA,{path:`/forgot`,element:(0,pP.jsx)(tmf,{})}),(0,pP.jsx)(QA,{path:`/forgot/:slug`,element:(0,pP.jsx)(tmf,{})}),(0,pP.jsx)(QA,{path:`/sign-up`,element:(0,pP.jsx)(MQd,{to:`../signup`,replace:!0})}),(0,pP.jsx)(QA,{path:`/register`,element:(0,pP.jsx)(MQd,{to:`../signup`,replace:!0})}),(0,pP.jsx)(QA,{path:`/register/:slug/*`,element:(0,pP.jsx)(i_f,{})}),(0,pP.jsx)(QA,{path:`/signup`,element:(0,pP.jsx)(Mmf,{})}),(0,pP.jsx)(QA,{path:`/signup/verify`,element:(0,pP.jsx)(fhf,{})}),(0,pP.jsx)(QA,{path:`/signup/review`,element:(0,pP.jsx)(xhf,{})}),(0,pP.jsx)(QA,{path:`/signup/trial/verify`,element:(0,pP.jsx)(khf,{})}),(0,pP.jsxs)(QA,{path:`/signup/:slug/*`,element:(0,pP.jsx)(n_f,{}),children:[(0,pP.jsx)(QA,{path:`join`,element:(0,pP.jsx)(Xgf,{})}),(0,pP.jsx)(QA,{path:`success`,element:(0,pP.jsx)(ahf,{})}),(0,pP.jsx)(QA,{index:!0,element:(0,pP.jsx)(Fhf,{})}),(0,pP.jsx)(QA,{path:`confirm`,element:(0,pP.jsx)(Vhf,{})}),(0,pP.jsx)(QA,{path:`terms-of-service`,element:(0,pP.jsx)(Yhf,{})})]}),(0,pP.jsx)(QA,{path:`/plans`,element:(0,pP.jsx)(Hmf,{})}),(0,pP.jsx)(QA,{path:`/payment-result`,element:(0,pP.jsx)(Jmf,{})}),(0,pP.jsx)(QA,{path:`/restricted-provider`,element:(0,pP.jsx)(imf,{})}),(0,pP.jsx)(QA,{path:`/link-oid`,element:(0,pP.jsx)(omf,{})}),(0,pP.jsx)(QA,{path:`/reset-password/success`,element:(0,pP.jsx)(fmf,{})}),(0,pP.jsx)(QA,{path:`/reset-password`,element:(0,pP.jsx)(lmf,{})}),(0,pP.jsx)(QA,{path:`/activate`,element:(0,pP.jsx)(Imf,{})}),(0,pP.jsx)(QA,{path:`/logout`,element:(0,pP.jsx)($mf,{aiwareInit:e})})]})})),s_f=l({AuthRoutes:()=>a_f,ResetPassword:()=>Ruf,getConfig:()=>_N,getRestApiUrlFromConfig:()=>vN}),c_f=s((()=>{zuf(),o_f(),bN()}));function*l_f(){let e=yield I(Dv);yield Vi(T_f,function*(t){let n=yield M9e(t.payload.ids,e);n!==void 0&&(yield P(Y_f(n)))})}function*u_f(){yield Vi(g_f,function*(e){yield P(W_f(!0));let t=yield I(Dv),n;switch(e.payload.ownerType){case Nb.ORGANIZATION:n=yield A9e({name:e.payload.name,owned:!1,offset:0,limit:300,authToken:t});break;case Nb.MINE:n=yield A9e({name:e.payload.name,owned:!0,offset:0,limit:300,authToken:t});break;case Nb.SHARED:n=yield A9e({name:e.payload.name,owned:!1,offset:0,limit:300,authToken:t});break;case Nb.NOTEBOOKS:n=yield A9e({name:e.payload.name,owned:!0,offset:0,limit:300,authToken:t,isNotebook:!0});break;default:break}n!==void 0&&n&&(n.data.engines.records.length===0&&!e.payload.name&&(yield P(fvf(!0))),e.payload.ownerType===Nb.NOTEBOOKS?yield P(rvf(n.data.engines.records)):yield P(nvf(n.data.engines.records))),yield P(ovf(!1)),yield P(W_f(!1))})}function*d_f(){yield Vi(P_f,function*(e){let t=yield I(Dv),n=yield A9e({name:e.payload.name,owned:!0,offset:0,limit:300,authToken:t,isNotebook:!0});n!==void 0&&n&&(yield P(rvf(n.data.engines.records))),yield P(ovf(!1))})}function*f_f(){yield Vi(L_f,function*(){let e=yield F(k9e,yield I(Dv),{isPublic:!0,limit:200});e&&e.data&&e.data.flowTemplates&&e.data.flowTemplates.records&&e.data.flowTemplates.records.length>0&&(yield P(q_f(e.data.flowTemplates.records)),yield P(J_f(e.data.flowTemplates.records)))})}function*p_f(){yield Vi(v_f,function*(){let e,t=yield I(Dv);try{e=yield F(N9e,t)}catch{yield P({type:y_f,payload:!1})}(0,h_f.get)(e,`data.flowRevisions`,``)&&(yield P({type:y_f,payload:!0}))})}function*m_f(){yield Ur([l_f(),d_f(),u_f(),f_f(),p_f()])}var h_f,g_f,__f,v_f,y_f,b_f,x_f,S_f,C_f,w_f,T_f,E_f,D_f,O_f,k_f,A_f,j_f,M_f,N_f,P_f,F_f,I_f,L_f,R_f,z_f,B_f,V_f,H_f,U_f,W_f,G_f,mP,K_f,q_f,J_f,Y_f,X_f,Z_f,Q_f,$_f,evf,tvf,nvf,rvf,ivf,avf,ovf,svf,cvf,lvf,uvf,dvf,fvf,pvf,mvf,hP=s((()=>{ov(),qi(),Fb(),X(),h_f=d(mb()),g_f=`flow-center/FETCH_FLOWS`,__f=`flow-center/ADD_NEW_FLOW`,v_f=`flow-center/IS_REVISIONS_EXIST_ON_SERVER`,y_f=`flow-center/SET_IS_REVISIONS_EXIST_ON_SERVER`,b_f=`flow-center/SET_FETCHING_FLOWS`,x_f=`flow-center/SET_OPEN_TEMPLATE`,S_f=`flow-center/SET_TEMPLATE_SELECTED`,C_f=`flow-center/SET_TEMPLATES`,w_f=`flow-center/SET_FILTERED_TEMPLATES_ACTION`,T_f=`flow-center/FETCH_TAGS`,E_f=`flow-center/SET_TAGS`,D_f=`flow-center/SET_TAGS_TO_STORE`,O_f=`flow-center/SET_CATEGORIES`,k_f=`flow-center/SET_TEMPLATES_AUTHORS`,A_f=`flow-center/SET_SELECTED_FILTERS`,j_f=`flow-center/SET_TAG`,M_f=`flow-center/SET_FLOWS`,N_f=`flow-center/SET_NOTEBOOKS`,P_f=`flow-center/FETCH_NOTEBOOKS`,F_f=`flow-center/TOGGLE_IS_SEARCHING`,I_f=`flow-center/TOGGLE_IS_SEARCHING_LOADING`,L_f=`flow-center/SEARCH_TEMPLATES`,R_f=`flow-center/SET_SEARCHED`,z_f=`flow-center/SET_SEARCHED_TEMPLATES`,B_f=`flow-center/SET_CONFIG`,V_f=`flow-center/TOGGLE_STATE_CREATE_NEW_FLOW`,H_f=`flow-center/SET_SHOULD_CREATE_INITIAL_FLOWS`,U_f=`flow-center/GET_NODE_RED_VERSION_EDGE`,W_f=rv(b_f),G_f=rv(v_f),mP=rv(x_f),K_f=rv(S_f),q_f=rv(C_f),J_f=rv(w_f),rv(T_f),Y_f=rv(E_f),X_f=rv(D_f),Z_f=rv(O_f),Q_f=rv(k_f),$_f=rv(A_f),rv(j_f),evf=rv(g_f),tvf=rv(P_f),nvf=rv(M_f),rvf=rv(N_f),ivf=rv(__f),avf=rv(F_f),ovf=rv(I_f),svf=rv(L_f),cvf=rv(R_f),lvf=rv(z_f),uvf=rv(B_f),dvf=rv(V_f),fvf=rv(H_f),rv(U_f),pvf=aGe({flows:[],notebooks:[],shouldCreateInitialFlows:!1,fetchingFlows:!1,templateToOpen:{},isTemplateSelected:!1,tags:[],categories:[],templatesAuthors:[],templates:[],filteredTemplates:[],selectedFilters:{},isSearching:!1,isSearchingLoading:!1,searched:``,searchedTemplates:null,config:{isFullScreen:!1,automateFullScreen:!1,zIndex:0,graphQLEndpoint:``,defaultCluster:``},isLoadingCreateNewFlow:!1,isRevisionsExistOnServer:!1},{[g_f]:e=>({...e}),[__f]:(e,{payload:t})=>({...e,flows:[t,...e.flows]}),[b_f]:(e,{payload:t})=>({...e,fetchingFlows:t}),[x_f]:(e,{payload:t})=>({...e,templateToOpen:t}),[S_f]:(e,{payload:t})=>({...e,isTemplateSelected:t}),[E_f]:(e,{payload:t})=>({...e,tags:t}),[D_f]:(e,{payload:t})=>({...e,tags:t}),[O_f]:(e,{payload:t})=>({...e,categories:t}),[k_f]:(e,{payload:t})=>({...e,templatesAuthors:t}),[A_f]:(e,{payload:t})=>({...e,selectedFilters:t}),[C_f]:(e,{payload:t})=>({...e,templates:t}),[w_f]:(e,{payload:t})=>({...e,filteredTemplates:t}),[j_f]:(e,{payload:t})=>({...e,tag:t}),[M_f]:(e,{payload:t})=>({...e,flows:t}),[N_f]:(e,{payload:t})=>({...e,notebooks:t}),[F_f]:(e,{payload:t})=>({...e,isSearching:t}),[I_f]:(e,{payload:t})=>({...e,isSearchingLoading:t}),[R_f]:(e,{payload:t})=>({...e,searched:t}),[z_f]:(e,{payload:t})=>({...e,searchedTemplates:t}),[B_f]:(e,{payload:t})=>({...e,config:t}),[V_f]:(e,{payload:t})=>({...e,isLoadingCreateNewFlow:t}),[y_f]:(e,{payload:t})=>({...e,isRevisionsExistOnServer:t}),[H_f]:(e,{payload:t})=>({...e,shouldCreateInitialFlows:t})}),mvf=`flows`}));function*hvf(){yield Ur([m_f()])}var gvf=s((()=>{qi(),hP()})),_vf,vvf,yvf,bvf,xvf,Svf,Cvf=s((()=>{ov(),_vf=`newFlowClusterID`,vvf={newFlowClusterID:``},yvf=iv({name:_vf,initialState:vvf,reducers:{newFlowClusterIDAction(e,t){e.newFlowClusterID=t.payload}}}),bvf=e=>e?.newFlowClusterID||null,{newFlowClusterIDAction:xvf}=yvf.actions,Svf=yvf.reducer})),wvf,Tvf=s((()=>{Cvf(),wvf=Svf})),Evf,Dvf,Ovf,kvf,Avf,jvf=s((()=>{ov(),Evf=`engineDistributionType`,Dvf={engineDistributionType:`instance_locked`},Ovf=iv({name:Evf,initialState:Dvf,reducers:{engineDistributionTypeAction(e,t){e.engineDistributionType=t.payload}}}),{engineDistributionTypeAction:kvf}=Ovf.actions,Avf=Ovf.reducer})),Mvf,Nvf=s((()=>{jvf(),Mvf=Avf}));function Pvf(){return{id:`flow-center`,reducerMap:{[mvf]:pvf,[Fvf]:wvf,[Ivf]:Mvf,[Lvf]:rot},sagas:[hvf],initialActions:[]}}var Fvf,Ivf,Lvf,Rvf,zvf=s((()=>{hP(),gvf(),Tvf(),Nvf(),j_(),X(),Fvf=`newFlowClusterID`,Ivf=`engineDistributionType`,Lvf=`flowCenterDialog`,A_.addModules([Pvf()]),Rvf=A_})),Bvf=c((e=>{var t=zu();Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=t(cx()),r=L();e.default=(0,n.default)((0,r.jsx)(`path`,{d:`M14 6V4h-4v2h4zM4 8v11h16V8H4zm16-2c1.11 0 2 .89 2 2v11c0 1.11-.89 2-2 2H4c-1.11 0-2-.89-2-2l.01-11c0-1.11.88-2 1.99-2h4V4c0-1.11.89-2 2-2h4c1.11 0 2 .89 2 2v2h4z`}),`WorkOutlineOutlined`)})),Vvf=c((e=>{var t=zu();Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=t(cx()),r=L();e.default=(0,n.default)((0,r.jsx)(`path`,{d:`M16.67 13.13C18.04 14.06 19 15.32 19 17v3h4v-3c0-2.18-3.57-3.47-6.33-3.87zM15 12c2.21 0 4-1.79 4-4s-1.79-4-4-4c-.47 0-.91.1-1.33.24C14.5 5.27 15 6.58 15 8s-.5 2.73-1.33 3.76c.42.14.86.24 1.33.24zm-6 0c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0-6c1.1 0 2 .9 2 2s-.9 2-2 2-2-.9-2-2 .9-2 2-2zm0 7c-2.67 0-8 1.34-8 4v3h16v-3c0-2.66-5.33-4-8-4zm6 5H3v-.99C3.2 16.29 6.3 15 9 15s5.8 1.29 6 2v1z`}),`PeopleAltOutlined`)})),Hvf=c((e=>{var t=zu();Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=t(cx()),r=L();e.default=(0,n.default)((0,r.jsx)(`path`,{d:`M12 5.9c1.16 0 2.1.94 2.1 2.1s-.94 2.1-2.1 2.1S9.9 9.16 9.9 8s.94-2.1 2.1-2.1m0 9c2.97 0 6.1 1.46 6.1 2.1v1.1H5.9V17c0-.64 3.13-2.1 6.1-2.1M12 4C9.79 4 8 5.79 8 8s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4zm0 9c-2.67 0-8 1.34-8 4v3h16v-3c0-2.66-5.33-4-8-4z`}),`PersonOutlineOutlined`)})),Uvf=c((e=>{var t=zu();Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=t(cx()),r=L();e.default=(0,n.default)((0,r.jsx)(`path`,{d:`M13 3c-4.97 0-9 4.03-9 9H1l3.89 3.89.07.14L9 12H6c0-3.87 3.13-7 7-7s7 3.13 7 7-3.13 7-7 7c-1.93 0-3.68-.79-4.94-2.06l-1.42 1.42C8.27 19.99 10.51 21 13 21c4.97 0 9-4.03 9-9s-4.03-9-9-9zm-1 5v5l4.25 2.52.77-1.28-3.52-2.09V8z`}),`HistoryOutlined`)}));function Wvf({categories:e,filterers:t,type:n,screen:r,onSetType:i,showNavigation:a,fullScreen:o,automateFullScreen:s}){let{classes:c}=$vf(),l=K(),[u,d]=(0,Gvf.useState)([]),f=G(e=>e.flows.selectedFilters),p=G(e=>e.flows.isSearching);function m(e){switch(e){case`mine`:return r.toLowerCase()===e&&!p?(0,gP.jsx)(`img`,{width:`24px`,height:`24px`,src:Vct,alt:`myFlows`}):(0,gP.jsx)(`img`,{width:`24px`,height:`24px`,src:zct,alt:`myFlowsBlue`});case`templates`:return r.toLowerCase()===e&&!p?(0,gP.jsx)(`img`,{width:`24px`,height:`24px`,src:qct,alt:`templates`}):(0,gP.jsx)(`img`,{width:`24px`,height:`24px`,src:Gct,alt:`templatesBlue`});case`containers`:return(0,gP.jsx)(`img`,{width:`24px`,height:`24px`,src:ylt,alt:`containerDashboard`});case`notebooks`:return r.toLowerCase()===e&&!p?(0,gP.jsx)(`img`,{width:`24px`,height:`24px`,src:Vct,alt:`myFlows`}):(0,gP.jsx)(`img`,{width:`24px`,height:`24px`,src:zct,alt:`myFlowsBlue`});case`WorkOutlineOutlinedIcon`:return(0,gP.jsx)(qvf.default,{});case`PeopleAltOutlinedIcon`:return(0,gP.jsx)(Jvf.default,{});case`PersonOutlineOutlinedIcon`:return(0,gP.jsx)(Yvf.default,{});case`HistoryOutlinedIcon`:return(0,gP.jsx)(Xvf.default,{});default:return(0,gP.jsx)(Xvf.default,{})}}let h=e=>{let t=u.indexOf(e);d(t===-1?t=>(t.push(e),[...t]):e=>(e.splice(t,1),[...e]))},g=(e,t)=>{let n={...f},r=f[e];n[e]=[],r&&(n[e]=[...r]),n[e].includes(t)?n[e].splice(n[e].indexOf(t),1):n[e].push(t),n[e].length===0&&delete n[e],l($_f(n))};(0,Gvf.useEffect)(()=>{g(Pb.PUBLIC,`1`)},[]);let _=e=>{l(avf(!1)),l(ovf(!1)),l(cvf(``)),l(lvf(null)),l(evf(e===`notebooks`?{name:``,ownerType:Nb.NOTEBOOKS}:{name:``,ownerType:Nb.MINE})),i(e)},v=()=>t.map(({text:e,group:t,options:n},r)=>(0,gP.jsx)(`div`,{children:(0,gP.jsxs)(oh,{component:`fieldset`,className:c.formControl,"data-test":`flow-center-${t}-container`,id:`flow-center-${t}-container`,children:[(0,gP.jsxs)(`div`,{className:c.filterTitleContainer,children:[(0,gP.jsx)(ph,{className:c.category,component:`legend`,children:e}),(0,gP.jsx)(`div`,{className:c.expandIconClass,onClick:()=>h(r),children:u.includes(r)?(0,gP.jsx)(Zvf.default,{fontSize:`small`,style:{fill:`#555F7C`,width:`18px!important`,height:`18px!important`}}):(0,gP.jsx)(Qvf.default,{fontSize:`small`,style:{fill:`#555F7C`,width:`18px!important`,height:`18px!important`}})})]}),(0,gP.jsx)(`div`,{children:(0,gP.jsx)(Qbe,{className:c.group,children:n.map(({text:e,value:n})=>{if(!u.includes(r))return(0,gP.jsx)(lh,{control:(0,gP.jsx)(Mm,{checked:f[t]&&f[t].includes(n),name:n,color:`primary`,onClick:()=>g(t,n)}),label:(0,gP.jsx)(z,{"data-test":`flow-center-flows-table-optionText`,className:c.listItemTextFilters,children:e}),"data-test":`flow-center-filter-item`,id:`flow-center-filter-item`},`${t}-${n}`)})})})]},t+r)},t+r));return(0,gP.jsx)(B,{className:c.boxBackground,children:(0,gP.jsxs)(B,{className:c.marginLeft,children:[(0,gP.jsx)(Eh,{className:s?c.fullScreenMode:``,children:e.map(({key:e,text:t,icon:n})=>(0,gP.jsxs)(Mh,{id:`flow-center-navigation-listItem-conatiner`,"data-test":`flow-center-navigation-tabs-${e}`,button:!0,disableRipple:!0,selected:r.toLowerCase()===e&&!p,onClick:()=>_(e),className:c.paddingLeft,classes:{selected:c.selectedPaddingLeft},children:[(0,gP.jsx)(Fh,{className:c.icon,children:m(e)}),(0,gP.jsx)(Lh,{"data-test":`flow-center-navigation-listItemText`,className:`flow-center-navigation-listItemText`,primary:t,classes:{primary:c.listItemText}})]},e))}),a&&(()=>{let e=s?`calc(100vh - 64px - 16px - 86px - 8px - 54px`:`calc(100vh - 64px - 16px - 86px - 8px - ${o?`0px`:`54px`})`;return(0,gP.jsxs)(gP.Fragment,{children:[(0,gP.jsx)(eh,{}),(0,gP.jsx)(`div`,{className:c.scroll,style:{height:e},children:v()})]})})()]})})}var Gvf,Kvf,qvf,Jvf,Yvf,Xvf,Zvf,Qvf,gP,$vf,eyf=s((()=>{Gvf=d(g()),Kvf=Z(),th(),xxe(),sh(),exe(),uh(),Nm(),Ih(),Rh(),Nh(),Dh(),wm(),Jf(),qvf=d(Bvf()),Jvf=d(Vvf()),Yvf=d(Hvf()),Xvf=d(Uvf()),q(),hP(),Kb(),Fb(),Zvf=d(Jfd()),Qvf=d(US()),gP=L(),$vf=(0,Kvf.makeStyles)()(()=>({icon:{fontSize:`16px!important`,minWidth:`0px!important`,paddingLeft:`8px!important`,paddingRight:`8px!important`,"& svg":{fill:`#555F7C!important`}},text:{fontSize:`14px!important`},listItemText:{fontFamily:`Nunito`,fontStyle:`normal!important`,fontWeight:`normal!important`,fontSize:`14px!important`,lineHeight:`19px!important`,letterSpacing:`-1.30385e-09px!important`},listItemTextFilters:{fontFamily:`Nunito`,fontStyle:`normal!important`,fontWeight:`normal!important`,fontSize:`12px!important`,lineHeight:`16px!important`,letterSpacing:`-1.30385e-09px!important`,wordBreak:`break-word`},category:{fontFamily:`Nunito`,fontStyle:`normal!important`,color:`#2A323C!important`,fontSize:`14px!important`,marginright:`6px!important`,fontWeight:`500!important`,paddingLeft:`8px!important`},formControl:{marginBottom:`10px!important`,marginTop:`10px!important`},marginLeft:{paddingLeft:`8px!important`,paddingRight:`8px!important`},boxBackground:{height:`100%!important`},paddingLeft:{paddingLeft:`0px!important`,minWidth:`0px!important`,borderRadius:`4px!important`},fullScreenMode:{marginTop:`64.5px!important`},selectedPaddingLeft:{background:`#F2F5F9 !important`,color:`#1871E8 !important`},group:{paddingLeft:`8px!important`},filterTitleContainer:{display:`flex`,alignItems:`center!important`},expandIconClass:{display:`flex`,paddingLeft:`5px!important`,"&:hover":{cursor:`pointer!important`}},scroll:{overflowY:`auto`,overflowX:`hidden`}}))})),tyf,nyf,_P,ryf,iyf,ayf,oyf=s((()=>{tyf=d(g()),Am(),Fb(),jge(),Jf(),Dm(),mh(),Sge(),wm(),nyf=Z(),Y(),q(),hP(),Kb(),X(),pO(),W(),_P=L(),ryf=3,iyf=(0,nyf.makeStyles)()(e=>({container:{marginLeft:`12px!important`},cardRoot:{display:`flex`,flexDirection:`column`,justifyContent:`center!important`,border:`0.5px solid #D5DFE9!important`,boxShadow:`none!important`,borderRadius:`4px!important`,marginRight:`10px!important`},cardContainer:{marginTop:`20px!important`,marginLeft:`20px!important`,marginBottom:`15px!important`,marginRight:`20px!important`,maxHeight:`150px`,minHeight:`150px`,display:`flex`,flexDirection:`column`},title:{fontFamily:`Nunito`,fontStyle:`normal!important`,fontWeight:600,fontSize:`16px!important`,lineHeight:`22px!important`,letterSpacing:`-1.30385e-09px!important`,wordBreak:`break-word!important`,cursor:`pointer`,color:`#2A323C!important`},subtitle:{fontFamily:`Nunito`,fontStyle:`normal!important`,fontWeight:500,fontSize:`12px!important`,lineHeight:`16px!important`,letterSpacing:`-1.30385e-09px!important`,color:`#5C6269!important`,wordWrap:`break-word!important`},veritoneCertifiedContainer:{display:`flex`,marginTop:`10px!important`},veritoneCertified:{fontFamily:`Nunito`,fontStyle:`normal!important`,fontWeight:500,fontSize:`10px!important`,lineHeight:`18px!important`,letterSpacing:`-1.30385e-09px!important`,wordWrap:`break-word!important`,color:`#2A323C!important`,marginLeft:`4px!important`},pos:{marginBottom:12},centerButton:{justifyContent:`center!important`},cardContent:{padding:`0px!important`,height:`120px!important`,textOverflow:`ellipsis!important`},titleContent:{height:`82px!important`,overflow:`auto`},bottomButton:{marginTop:`10px`,padding:`0px!important`,display:`flex`,height:`30px!important`},box:{display:`flex`,marginTop:e.spacing(3.2),marginBottom:e.spacing(3.2)},viewAllButton:{color:`#6098D1!important`,textTransform:`none!important`,fontFamily:`Nunito`,fontStyle:`normal!important`,fontWeight:`normal!important`,fontSize:`12px!important`,lineHeight:`16px!important`,marginRight:`24px!important`,letterSpacing:`-1.30385e-09px!important`},createFlowButton:{textTransform:`none!important`,fontFamily:`Nunito`,fontStyle:`normal!important`,fontWeight:600,fontSize:`12px!important`,lineHeight:`16px!important`,marginLeft:`0px!important`,padding:`6px 12px 6px 12px!important`,background:e.palette.background.paper,color:`#1871E8!important`,letterSpacing:`0.02857em`},viewDetailsButton:{textTransform:`none!important`,fontFamily:`Nunito`,fontStyle:`normal!important`,fontWeight:600,fontSize:`12px!important`,lineHeight:`16px!important`,background:e.palette.background.paper,color:`#6098D1!important`,letterSpacing:`0.02857em`},createBlankFlowButton:{display:`flex`,justifyContent:`center!important`,"& svg":{fill:`#555F7C!important`}},createBlankFlowLayout:{display:`flex`,flexDirection:`column`},lowercaseButton:{textTransform:`none!important`,fontFamily:`Nunito`,fontStyle:`normal!important`,fontWeight:600,fontSize:`14px!important`,lineHeight:`19px!important`,letterSpacing:`-1.30385e-09px!important`},text:{fontFamily:`Nunito`,fontStyle:`normal!important`,fontWeight:400,fontSize:`16px!important`,lineHeight:`22px!important`,letterSpacing:`-1.30385e-09px!important`,color:`#2A323C!important`}})),ayf=({goToTemplateList:e,handleOpenFlowNameDialog:t,setScreen:n,handleOpenTemplateDetails:r})=>{let i=K(),{classes:a}=iyf(),[o,s]=(0,tyf.useState)([]),[c,l]=(0,tyf.useState)(0),u=G(Dv),[d,f]=(0,tyf.useState)(!0),p=(e,t)=>{e.data[t].records&&s(e.data[t].records),l(Math.min(ryf,e.data[t].records.length))};(0,tyf.useEffect)(()=>{if(o.length){setTimeout(()=>{f(!1)},3e3);return}k9e(u,{isPublic:!0}).then(e=>{setTimeout(()=>{f(!1)},3e3),p(e,`flowTemplates`)}).catch(e=>{WE(`error fetching flow templates: ${JSON.stringify(e)}`)})},[p]);let m=e=>{n(Nb.TEMPLATES),i(mP({id:e.id,title:e.title})),r(!0)},h=e=>{t(e)};return(0,_P.jsxs)(`div`,{className:a.container,children:[(0,_P.jsxs)(B,{mt:2,mb:2,className:a.box,children:[(0,_P.jsx)(z,{"data-test":`flow-center-flows-table-populatTemplates`,className:a.text,style:{flexGrow:1},children:(0,_P.jsx)(J,{id:`os-flow-center.1v6wsw`,defaultMessage:[{type:0,value:`Popular Templates`}]})}),(0,_P.jsx)(V,{"data-test":`flow-center-template-gallery-viewAllTemplates`,size:`small`,className:a.viewAllButton,onClick:e,children:(0,_P.jsx)(J,{id:`os-flow-center.viewall`,defaultMessage:[{type:0,value:`View All`}]})})]}),(0,_P.jsx)(U,{"data-test":`flow-center-templates-on-flows-page`,container:!0,id:`flow-center-templates`,children:o.slice(0,c).map((e,t)=>(0,_P.jsx)(U,{"data-test":`flow-center-templatesGallery`,item:!0,xs:4,children:(0,_P.jsx)(km,{className:a.cardRoot,id:`flow-center-template-card`,children:(0,_P.jsxs)(`div`,{className:a.cardContainer,children:[(0,_P.jsxs)(jm,{className:a.cardContent,children:[(0,_P.jsxs)(`div`,{className:a.titleContent,children:[d?(0,_P.jsx)(rg,{variant:`rectangular`,animation:`wave`,width:80,height:15}):(0,_P.jsx)(z,{"data-test":`flow-center-flows-templateGallery-title`,className:a.title,gutterBottom:!0,onClick:()=>m(e),children:e?.title}),d?(0,_P.jsx)(rg,{variant:`rectangular`,animation:`wave`,width:80,height:15,sx:{mt:`5px`}}):(0,_P.jsx)(z,{"data-test":`flow-center-flows-templateGallery-subtitle`,className:a.subtitle,"aria-multiline":!0,variant:`body2`,component:`p`,children:e.subtitle})]}),(0,_P.jsx)(`div`,{className:a.veritoneCertifiedContainer,children:d?(0,_P.jsx)(rg,{variant:`rectangular`,animation:`wave`,width:120,height:15}):(0,_P.jsxs)(_P.Fragment,{children:[(0,_P.jsx)(`img`,{src:Yct,alt:`veritoneCertifiedIcon`}),(0,_P.jsx)(z,{"data-test":`flow-center-flows-templateGallery-veritoneCertified`,className:a.veritoneCertified,component:`p`,children:(0,_P.jsx)(J,{id:`os-flow-center.veritonecertified`,defaultMessage:[{type:0,value:`Veritone Certified`}]})})]})})]}),(0,_P.jsxs)(bge,{className:a.bottomButton,children:[d?(0,_P.jsx)(rg,{variant:`rectangular`,animation:`wave`,width:120,height:20}):(0,_P.jsx)(V,{"data-test":`flow-center-template-gallery-createFlowFromTemplate-${t}`,onClick:()=>h?h(e.id):``,id:`flow-center-create-flow-btn-${t}`,size:`small`,variant:`outlined`,color:`primary`,className:a.createFlowButton,children:(0,_P.jsx)(J,{id:`os-flow-center.createflow`,defaultMessage:[{type:0,value:`Create Flow`}]})}),d?(0,_P.jsx)(rg,{variant:`rectangular`,animation:`wave`,width:120,height:15}):(0,_P.jsx)(V,{"data-test":`flow-center-template-gallery-viewDetailsForTemplate-${t}`,onClick:()=>m(e),size:`small`,color:`primary`,className:a.viewDetailsButton,children:(0,_P.jsx)(J,{id:`os-flow-center.viewdetails`,defaultMessage:[{type:0,value:`View Details`}]})})]})]})})},e.title+t))})]})}}));function syf(e,t){if(e===void 0)return cyf;switch(t.type){case`SET_LOCALE`:return{...e,locale:t.payload};case`SET_AUTHTOKEN`:return{...e,authToken:t.payload};case`SET_CONFIG`:return{...e,config:t.payload};case`FETCH_ENGINE_DISPATCHED`:return{...e,engineFetching:!0,engineFetchingFailed:!1,engineFetchingFailedReason:null,engine:null};case`FETCH_ENGINE_FAILED`:return{...e,engineFetching:!1,engineFetchingFailed:!0,engineFetchingFailedReason:t.payload,engine:null};case`FETCH_ENGINE_SUCCEEDED`:return{...e,engineFetching:!1,engineFetchingFailed:!1,engineFetchingFailedReason:null,engine:t.payload,engineDistrubutionType:t.payload.distributionType};case`FETCH_REVISIONS`:return{...e,engineRevisionsFetching:!0,engineRevisionsFetchingFailed:!1,engineRevisionsFetchingFailedReason:null,engineRevisions:null};case`FETCH_REVISIONS_FAILED`:return{...e,engineRevisionsFetching:!1,engineRevisionsFetchingFailed:!0,engineRevisionsFetchingFailedReason:t.payload,engineRevisions:null};case`FETCH_REVISIONS_SUCCEEDED`:return{...e,engineRevisionsFetching:!1,engineRevisionsFetchingFailed:!1,engineRevisionsFetchingFailedReason:null,engineRevisions:t.payload};case`FETCH_EXECUTIONS`:return{...e,fetchingExecutions:!0,executions:null,fetchExecutionsFail:null};case`FETCH_EXECUTIONS_FAIL`:return{...e,fetchingExecutions:!1,executions:null,fetchExecutionsFail:t.payload};case`FETCH_EXECUTIONS_SUCCEES`:return{...e,fetchingExecutions:!1,executions:t.payload,fetchExecutionsFail:null};case`FETCH_SCHEDULED_JOBS_DISPATCHED`:return{...e,scheduledJobsFetching:!0,scheduledJobsFailed:!1,scheduledJobsFailedReason:null,scheduledJobs:null};case`FETCH_SCHEDULED_JOBS_FAILED`:return{...e,scheduledJobsFetching:!1,scheduledJobsFailed:!0,scheduledJobsFailedReason:t.payload,scheduledJobs:null};case`FETCH_SCHEDULED_JOBS_SUCCEEDED`:return{...e,scheduledJobsFetching:!1,scheduledJobsFailed:!1,scheduledJobsFailedReason:null,scheduledJobs:t.payload};case`FETCH_JOBS_DISPATCHED`:return{...e,jobsFetching:!0,jobsFetchingFailed:!1,jobsFetchingFailedReason:null,jobsFetched:null};case`FETCH_JOBS_FAILED`:return{...e,jobsFetching:!1,jobsFetchingFailed:!0,jobsFetchingFailedReason:t.payload,jobsFetched:null};case`FETCH_JOBS_SUCCEEDED`:return{...e,jobsFetching:!1,jobsFetchingFailed:!1,jobsFetchingFailedReason:null,jobsFetched:t.payload};case`UPDATE_FLOW_REVISION_DESCRIPTION`:return{...e,flowRevisionDescriptionUpdating:!0,flowRevisionDescriptionUpdateFailed:!1,flowRevisionDescriptionUpdateFailedReason:null,flowRevisionDescriptionUpdate:null};case`UPDATE_FLOW_REVISION_DESCRIPTION_FAILED`:return{...e,flowRevisionDescriptionUpdating:!1,flowRevisionDescriptionUpdateFailed:!0,flowRevisionDescriptionUpdateFailedReason:t.payload,flowRevisionDescriptionUpdate:null};case`UPDATE_FLOW_REVISION_DESCRIPTION_SUCCEEDED`:return{...e,flowRevisionDescriptionUpdating:!1,flowRevisionDescriptionUpdateFailed:!1,flowRevisionDescriptionUpdateFailedReason:null,flowRevisionDescriptionUpdate:t.payload};case`CLEAN_UPDATE_FLOW_REVISION_DESCRIPTION`:return{...e,flowRevisionDescriptionUpdating:!1,flowRevisionDescriptionUpdateFailed:!1,flowRevisionDescriptionUpdateFailedReason:null,flowRevisionDescriptionUpdate:null};case`RESTORE_THIS_REVISION`:return{...e,restoreThisRevisionInProgress:!0,restoreThisRevisionFailed:!1,restoreThisRevisionFailedReason:null,restoreThisRevisionResult:null};case`RESTORE_THIS_REVISION_FAILED`:return{...e,restoreThisRevisionInProgress:!1,restoreThisRevisionFailed:!0,restoreThisRevisionFailedReason:t.payload,restoreThisRevisionResult:null};case`RESTORE_THIS_REVISION_SUCCEEDED`:return{...e,restoreThisRevisionInProgress:!1,restoreThisRevisionFailed:!1,restoreThisRevisionFailedReason:null,restoreThisRevisionResult:t.payload};case`CLEAN_RESTORE_THIS_REVISION_SUCCEEDED`:return{...e,restoreThisRevisionInProgress:!1,restoreThisRevisionFailed:!1,restoreThisRevisionFailedReason:null,restoreThisRevisionResult:null};case`COPY_FLOW`:return{...e,copyFlowInProgress:!0,copyFlowFailed:!1,copyFlowFailedReason:null,copyFlowResult:null};case`COPY_FLOW_FAILED`:return{...e,copyFlowInProgress:!1,copyFlowFailed:!0,copyFlowFailedReason:t.payload,copyFlowResult:null};case`COPY_FLOW_SUCCEEDED`:return{...e,copyFlowInProgress:!1,copyFlowFailed:!1,copyFlowFailedReason:null,copyFlowResult:t.payload};case`CLEAN_COPY_FLOW`:return{...e,copyFlowInProgress:!1,copyFlowFailed:!1,copyFlowFailedReason:null,copyFlowResult:null};case`FLOW_RESUME_ACTION`:return{...e,flowResumeInProgress:!0,flowResumeFailed:!1,flowResumeFailedReason:null,flowResumeResult:null};case`FLOW_RESUME_ACTION_FAILED`:return{...e,flowResumeInProgress:!1,flowResumeFailed:!0,flowResumeFailedReason:t.payload,flowResumeResult:null};case`FLOW_RESUME_ACTION_SUCCEEDED`:return{...e,flowResumeInProgress:!1,flowResumeFailed:!1,flowResumeFailedReason:null,flowResumeResult:t.payload};case`CLEAN_FLOW_RESUME_ACTION`:return{...e,flowResumeInProgress:!1,flowResumeFailed:!1,flowResumeFailedReason:null,flowResumeResult:null};case`FLOW_PAUSE_ACTION`:return{...e,flowPauseInProgress:!0,flowPauseFailed:!1,flowPauseFailedReason:null,flowPauseResult:null};case`FLOW_PAUSE_ACTION_FAILED`:return{...e,flowPauseInProgress:!1,flowPauseFailed:!0,flowPauseFailedReason:t.payload,flowPauseResult:null};case`FLOW_PAUSE_ACTION_SUCCEEDED`:return{...e,flowPauseInProgress:!1,flowPauseFailed:!1,flowPauseFailedReason:null,flowPauseResult:t.payload};case`CLEAN_FLOW_PAUSE_ACTION`:return{...e,flowPauseInProgress:!1,flowPauseFailed:!1,flowPauseFailedReason:null,flowPauseResult:null};case`SET_ENGINE_DISTRIBUTION_TYPE_ACTION`:return{...e,engineDistrubutionType:t.payload};default:return e}}var cyf,lyf=s((()=>{cyf={locale:`he`,engine:null,engineDistrubutionType:null}})),uyf,dyf=s((()=>{lyf(),uyf=syf}));function fyf(e,t){if(e===void 0)return pyf;switch(t.type){case`SET_LOCALE`:return{...e,locale:t.payload};case`SET_AUTHTOKEN`:return{...e,authToken:t.payload};default:return e}}var pyf,myf=s((()=>{pyf={locale:`he`}})),hyf,gyf=s((()=>{myf(),hyf=fyf}));function _yf(e,t){if(e===void 0)return vyf;switch(t.type){case`SET_CONFIG`:return{...e,config:t.payload};case`SET_CONFIG_PARAMS`:return{...e,params:t.payload};case`FETCH_ME_LOADING`:return{...e,me:null,meFetchingFailed:null,meFetchingLoading:!0};case`FETCH_ME_FAILED`:return{...e,me:null,meFetchingFailed:t.payload,meFetchingLoading:!1};case`FETCH_ME_SUCCEEDED`:return{...e,me:t.payload,meFetchingFailed:null,meFetchingLoading:!1};case`SET_IS_REVISIONS_EXIST_ON_SERVER`:return{...e,isRevisionsExistOnServer:t.payload};case`FETCH_ORG_USERS`:return{...e,orgUsersFetching:!0,orgUsersFetchingFailed:!1,orgUsersFetchingFailedReason:null,users:null};case`FETCH_ORG_USERS_FAILED`:return{...e,orgUsersFetching:!1,orgUsersFetchingFailed:!0,orgUsersFetchingFailedReason:t.payload,users:null};case`FETCH_ORG_USERS_SUCCEEDED`:return{...e,orgUsersFetching:!1,orgUsersFetchingFailed:!1,orgUsersFetchingFailedReason:null,users:t.payload};default:return e}}var vyf,yyf=s((()=>{vyf={isRevisionsExistOnServer:!1}})),byf,xyf=s((()=>{yyf(),byf=_yf})),Syf,Cyf,wyf=s((()=>{X(),Syf=async(e,t,n)=>Jv({query:Cyf,graphEndpoint:t,token:n,variables:{flowId:e}}),Cyf=`
|
|
3255
|
+
`,Yhf=()=>{let e=ZA(),[t]=tj(),{config:n,tosFile:r,privacyPolicyUrl:i,registerUri:a}=KN(),o=(0,Ghf.useRef)(null),[s,c]=(0,Ghf.useState)({content:``,fileType:`unknown`}),[l,u]=(0,Ghf.useState)(!1),d=async()=>{let n=decodeURIComponent(t.get(`email`)),i=decodeURIComponent(t.get(`token`)),o=decodeURIComponent(t.get(`referer`)),s=decodeURIComponent(t.get(`userId`)),c=decodeURIComponent(t.get(`redirect`));if(o===`login`&&r?.fileId)try{if((await duf(i,s,r.fileId,new Date().toUTCString())).errors){alert(`Something went wrong while saving your terms of service acceptance`);return}if(c)window.location.href=c;else{let e=vN()?vN()+`/api/admin/switch-app`:_N().switchAppUrl;window.location.href=e+`/default`}return}catch(e){console.error(`Error updating user setting:`,e)}e({pathname:`${a}/join`,search:`?email=${encodeURIComponent(n)}&token=${encodeURIComponent(i)}`})};return(0,Ghf.useEffect)(()=>{s.fileType===`unknown`&&(async()=>{if(r?.url){u(!0);try{c(await qhf(r.url,s.fileType))}catch(e){console.error(`Error loading content:`,e)}finally{u(!1)}}})()},[r,s]),(0,Ghf.useEffect)(()=>{o.current&&(o.current.srcdoc=Jhf(s.content,s.fileType))},[s]),(0,Ghf.useEffect)(()=>{let n=t.has(`email`),i=t.has(`token`);!n&&!i?e(a):n&&i&&!r&&d()},[t,r]),(0,uP.jsxs)(H,{gap:3,sx:{width:`750px`,position:`relative`,left:`50%`,transform:`translateX(-50%)`},children:[l?(0,uP.jsx)(B,{sx:{display:`flex`,justifyContent:`center`},children:(0,uP.jsx)(Fm,{})}):r&&(0,uP.jsx)(B,{children:(0,uP.jsx)(`iframe`,{ref:o,title:r.name,style:Khf.iframeStyles,...Khf.iframe})}),i&&(0,uP.jsx)(z,{variant:`body2`,textAlign:`center`,component:`a`,target:`_blank`,href:i.url,sx:Khf.privacyPolicy,"data-testid":`os-auth-register-privacy-policy`,children:`Privacy Policy`}),(0,uP.jsx)(B,{sx:Khf.buttonContainer,children:(0,uP.jsx)(CN,{text:`Accept & Continue`,type:`button`,onClick:d,buttonColor:n?.uiSettings?.registrationButtonStyle?.backgroundColor,buttonTextColor:n?.uiSettings?.registrationButtonStyle?.textColor,testId:`os-auth-register-accept-continue-button`})})]})}})),Zhf=c((e=>{var t=zu();Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=t(cx()),r=L();e.default=(0,n.default)((0,r.jsx)(`path`,{d:`M18 15v3H6v-3H4v3c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2v-3h-2zm-1-4-1.41-1.41L13 12.17V4h-2v8.17L8.41 9.59 7 11l5 5 5-5z`}),`FileDownloadOutlined`)})),Qhf=c((e=>{var t=zu();Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=t(cx()),r=L();e.default=(0,n.default)([(0,r.jsx)(`path`,{d:`M19 8h-1V3H6v5H5c-1.66 0-3 1.34-3 3v6h4v4h12v-4h4v-6c0-1.66-1.34-3-3-3zM8 5h8v3H8V5zm8 12v2H8v-4h8v2zm2-2v-2H6v2H4v-4c0-.55.45-1 1-1h14c.55 0 1 .45 1 1v4h-2z`},`0`),(0,r.jsx)(`circle`,{cx:`18`,cy:`11.5`,r:`1`},`1`)],`PrintOutlined`)})),$hf,egf,tgf,dP,ngf,rgf,igf,agf=s((()=>{W(),$hf=d(g()),egf=d(Zhf()),tgf=d(Qhf()),qN(),dP=L(),ngf=async e=>{let t=e.toLowerCase();if(t.endsWith(`.pdf`)||t.includes(`.pdf?`))return`pdf`;if(t.endsWith(`.txt`)||t.endsWith(`.text`)||t.endsWith(`.html`))return`text`;try{let t=(await fetch(e,{method:`HEAD`})).headers.get(`content-type`)||``;if(t.includes(`pdf`))return`pdf`;if(t.includes(`text`)||t.includes(`html`))return`text`}catch(e){return console.error(`Error detecting file type:`,e),`pdf`}return`pdf`},rgf=async e=>{try{let t=await fetch(e);if(!t.ok)throw Error(`HTTP error! status: ${t.status}`);return await t.text()}catch(e){throw console.error(`Error fetching text content:`,e),e}},igf=()=>{let{tosFile:e}=KN(),[t,n]=(0,$hf.useState)({content:``,fileType:`unknown`}),[r,i]=(0,$hf.useState)(!1),[a,o]=(0,$hf.useState)(null);return(0,$hf.useEffect)(()=>{(async()=>{if(!(!e?.url||a===e.url)){i(!0);try{await ngf(e.url)===`pdf`?n({content:e.url,fileType:`pdf`}):n({content:await rgf(e.url),fileType:`text`}),o(e.url)}catch(t){console.error(`Error loading terms content:`,t),n({content:e.url,fileType:`pdf`}),o(e.url)}finally{i(!1)}}})()},[e?.url,a]),e?(0,dP.jsxs)(B,{sx:{width:`100%`,mb:3},children:[(0,dP.jsxs)(H,{direction:`row`,justifyContent:`space-between`,alignItems:`center`,sx:{mb:1},children:[(0,dP.jsx)(z,{sx:{color:`#212121`,fontSize:`12px`,fontFamily:`Nunito`},children:`Terms & Conditions`}),(0,dP.jsxs)(H,{direction:`row`,spacing:1,children:[(0,dP.jsx)(Bf,{size:`small`,onClick:()=>{e?.url&&window.open(e.url,`_blank`)},disabled:r,"aria-label":`Download Terms & Conditions`,sx:{color:`#555F7C`},"data-testid":`os-auth-register-terms-and-conditions-download-button`,children:(0,dP.jsx)(egf.default,{})}),(0,dP.jsx)(Bf,{size:`small`,onClick:()=>{if(t.fileType===`pdf`&&t.content){let e=window.open(t.content,`_blank`);e&&(e.onload=()=>{e.print()})}else if(t.content){let e=window.open(``,`_blank`);if(e){let{document:n}=e;n.title=`Terms & Conditions`;let r=n.createElement(`style`);r.textContent=`body { font-family: Arial, sans-serif; padding: 20px; line-height: 1.6; } pre { white-space: pre-wrap; }`,n.head&&n.head.appendChild(r);let i=n.createElement(`h1`);i.textContent=`Terms & Conditions`;let a=n.createElement(`pre`);a.textContent=t.content,n.body&&(n.body.appendChild(i),n.body.appendChild(a)),e.focus(),e.print()}}},disabled:r||!t.content,"aria-label":`Print Terms & Conditions`,sx:{color:`#555F7C`},"data-testid":`os-auth-register-terms-and-conditions-print-button`,children:(0,dP.jsx)(tgf.default,{})})]})]}),(0,dP.jsx)(B,{sx:{width:`100%`,height:`200px`,border:`1px solid #E0E0E0`,borderRadius:`6px`,overflowY:t.fileType===`pdf`?`hidden`:`auto`,overflowX:`hidden`,padding:t.fileType===`pdf`?0:2,backgroundColor:`#FAFAFA`},children:r?(0,dP.jsx)(B,{sx:{display:`flex`,justifyContent:`center`,alignItems:`center`,height:`100%`},children:(0,dP.jsx)(Fm,{size:24})}):t.fileType===`pdf`?(0,dP.jsx)(B,{component:`iframe`,src:t.content,sx:{width:`100%`,height:`100%`,border:`none`,borderRadius:`6px`},title:`Terms & Conditions PDF`}):t.content?(0,dP.jsx)(z,{variant:`body2`,component:`pre`,sx:{whiteSpace:`pre-wrap`,wordWrap:`break-word`,fontFamily:`inherit`,margin:0,lineHeight:1.6},children:t.content}):(0,dP.jsx)(z,{variant:`body2`,color:`#212121`,children:`Unable to load terms content.`})})]}):null}})),ogf,sgf,cgf,lgf=s((()=>{ogf=d(g(),1),sgf=`GoogleReCaptcha Context has not yet been implemented, if you are using useGoogleReCaptcha hook, make sure the hook is called inside component wrapped by GoogleRecaptchaProvider`,cgf=(0,ogf.createContext)({instance:void 0,siteKey:``,language:``,isLoading:!0,executeV3:()=>{throw Error(sgf)},executeV2Invisible:()=>{throw Error(sgf)},reset:()=>{throw Error(sgf)},getResponse:()=>{throw Error(sgf)},render:()=>{throw Error(sgf)}})})),ugf,dgf,fgf=s((()=>{lgf(),ugf=d(g(),1),dgf=()=>(0,ugf.useContext)(cgf)})),pgf,mgf=s((()=>{pgf=()=>!!document.querySelector(`script[src*="/recaptcha/"]:not([src*="gstatic"])`)})),hgf,ggf=s((()=>{hgf=()=>`.grecaptcha-badge{display: none !important;}`})),_gf,vgf=s((()=>{_gf=({host:e=`google.com`,isEnterprise:t=!1,render:n,hl:r,badge:i})=>{let a=new URLSearchParams({...r&&{hl:r},...i&&{badge:i},render:n});return`https://www.${e}/recaptcha/${t?`enterprise.js`:`api.js`}?${a}`}})),ygf,bgf=s((()=>{ggf(),ygf=()=>{let e=document.createElement(`style`);e.innerHTML=hgf(),document.body.appendChild(e)}})),xgf,Sgf=s((()=>{vgf(),xgf=({onload:e,appendTo:t=`head`,isEnterprise:n=!1,host:r,render:i,badge:a,hl:o,...s})=>{let c=_gf({host:r,isEnterprise:n,render:i,hl:o,badge:a}),l=document.createElement(`script`);Object.entries(s).forEach(([e,t])=>{l.setAttribute(e,t?.toString()??``)}),l.src=c,l.onload=e,document[t].appendChild(l)}})),Cgf,wgf=s((()=>{Cgf=()=>{let e=document.querySelector(`.grecaptcha-badge`);e&&e.parentNode&&document.body.removeChild(e.parentNode)}})),Tgf,Egf=s((()=>{Tgf=e=>{let t=document.getElementById(e);if(t)for(;t.lastChild;)t.lastChild.remove()}})),Dgf,Ogf,kgf=s((()=>{Dgf=`https://www.gstatic.com/recaptcha/releases`,Ogf=()=>{window.___grecaptcha_cfg=void 0;let e=document.querySelector(`script[src*="/recaptcha/"]:not([src*="gstatic"])`);e&&e.remove();let t=document.querySelector(`script[src^="${Dgf}"]`);t&&t.remove()}})),Agf=s((()=>{mgf(),bgf(),Sgf(),wgf(),Egf(),kgf()})),jgf,Mgf,Ngf,Pgf,Fgf=s((()=>{fgf(),Agf(),jgf=d(g(),1),Mgf=L(),Ngf=`google-recaptcha-badge-container`,Pgf=({id:e=Ngf,theme:t,language:n,badge:r=`bottomright`,onChange:i,onError:a,onExpired:o})=>{let s=(0,jgf.useRef)(null),c=dgf(),l=t??c.theme,u=n??c.language;return(0,jgf.useEffect)(()=>{if(!c.render)return;let t=document.createElement(`div`),n={sitekey:c.siteKey,badge:r,size:`invisible`,callback:i,"expired-callback":o,"error-callback":a,theme:l,...u&&{hl:u}};return c.render(t,n),s.current&&s.current.appendChild(t),()=>{Tgf(e)}},[c.render,c.siteKey,r,i,a,o,l,u]),!c.render||!c.siteKey?null:(0,Mgf.jsx)(`div`,{ref:s,id:e})}})),Igf,Lgf,Rgf=s((()=>{Igf=d(g(),1),Lgf=(e=!1)=>{let[t,n]=(0,Igf.useState)(e);return[t,e=>n(t=>e??!t)]}})),zgf=s((()=>{Rgf()})),Bgf,Vgf,Hgf,Ugf,Wgf,Ggf=s((()=>{lgf(),Agf(),Bgf=d(g(),1),Vgf=L(),zgf(),Hgf=`onGoogleReCaptchaLoad`,Ugf=`google-recaptcha-container`,Wgf=({type:e,siteKey:t,language:n,scriptProps:r,isEnterprise:i=!1,host:a,theme:o=`light`,children:s,explicit:c,onLoad:l,onError:u})=>{let[d,f]=Lgf(!0),p=(0,Bgf.useRef)(void 0);(0,Bgf.useEffect)(()=>{let s=r?.id??`google-recaptcha-${e}-script`,d=pgf();try{let m=()=>{f(!0);let n=i?window.grecaptcha?.enterprise:window.grecaptcha;if(!n){u?.(),f(!1);return}if(c||n.ready(async()=>{p.current=n,await l?.(n),f(!1)}),c){let r={size:e===`v3`||e===`v2-invisible`?`invisible`:`normal`,...(e===`v3`||e===`v2-invisible`)&&{badge:`bottomright`},sitekey:t,theme:o,...typeof c==`object`&&{...c,"expired-callback":c.expiredCallback,"error-callback":c.errorCallback}};d||typeof c==`object`&&(e===`v3`||e===`v2-invisible`)&&c?.badge===`hidden`&&ygf(),n.ready(async()=>{typeof c==`object`&&c.container&&n.render(c.container,r,!!c.inherit),p.current=n,l&&await l(n),f(!1)})}};return window[Hgf]=m,d?m():xgf({isEnterprise:i,host:a,...(e===`v3`||e===`v2-invisible`)&&typeof c==`object`&&c?.badge&&{badge:c?.badge===`hidden`?`bottomright`:c?.badge},...n&&{hl:n},render:c||e===`v2-checkbox`?`explicit`:t,...r,onload:m,id:s}),()=>{pgf()&&Ogf(),typeof c==`object`&&(e===`v3`||e===`v2-invisible`)&&!c?.container&&c?.badge?Tgf(Ugf):Cgf()}}catch{f(!1)}},[i,n,a,t,e]);let m=e=>{if(!p.current?.execute)throw Error(`Google ReCaptcha has not been loaded`);return p.current.execute(t,{action:e})},h=e=>{if(!p.current?.execute)throw Error(`Google ReCaptcha has not been loaded`);return p.current.execute(e)},g=(0,Bgf.useMemo)(()=>({instance:p.current,siteKey:t,isLoading:d,theme:o,executeV2Invisible:h,executeV3:m,reset:p.current?.reset,getResponse:p.current?.getResponse,render:p.current?.render,...n&&{language:n}}),[t,d,n]);return(0,Vgf.jsx)(cgf.Provider,{value:g,children:s})}})),Kgf=s((()=>{fgf(),Fgf(),Ggf()}));function qgf(){let{config:e,tosFile:t}=KN(),n=!!t?.url,r=Lpf(),{executeV2Invisible:i,reset:a}=dgf(),o=(0,Jgf.useRef)(null),s=(0,Jgf.useCallback)(e=>{o.current?.(e),o.current=null},[]),{onSubmit:c,errorMessage:l,setErrorMessage:u}=$gf({getRecaptchaToken:(0,Jgf.useCallback)(()=>new Promise((e,t)=>{if(!i){t(Error(`reCAPTCHA is not ready`));return}o.current=n=>{if(!n){t(Error(`reCAPTCHA returned an empty token`));return}e(n)},i()}),[i]),onRegistrationFailure:(0,Jgf.useCallback)(()=>a?.(),[a])}),d=[{fieldKey:`firstName`,title:`First Name`,type:`text`,required:!0},{fieldKey:`lastName`,title:`Last Name`,type:`text`,required:!0},{fieldKey:`company`,title:`Company`,type:`text`,required:!0},{fieldKey:`email`,title:`Email`,type:`text`,required:!0},{fieldKey:`password`,title:`Password`,type:`password`,required:!0},{fieldKey:`confirmPassword`,title:`Confirm Password`,type:`password`,required:!0}],f=Ate($u().breakpoints.down(`md`)),p=Ate(`(max-height: 800px)`);return(0,fP.jsxs)(B,{sx:{width:xdf,...(f||p)&&{height:`588px`,overflowY:`auto`,overflowX:`hidden`,paddingTop:1}},children:[(0,fP.jsx)(vMd,{htmlFormId:Ygf,schema:e?.uiSettings?.customRegistrationFields,additionalFields:d,passwordPolicy:e?.uiSettings?.passwordPolicy,renderFormActions:({isSubmitting:t,isValid:i,htmlFormId:a})=>(0,fP.jsxs)(H,{gap:2,children:[(0,fP.jsx)(igf,{}),(0,fP.jsx)(Olf,{hasTos:n,loading:r.isPending,isSubmitting:t,disabled:!i,buttonColor:e?.uiSettings?.registrationButtonStyle?.backgroundColor,buttonTextColor:e?.uiSettings?.registrationButtonStyle?.textColor,htmlForm:a})]}),onSubmit:c,sx:{width:`100%`}}),(0,fP.jsx)(Pgf,{badge:`inline`,onChange:s,style:{display:`none`}}),l&&(0,fP.jsx)(Xpf,{open:!!l,message:l,onClose:()=>u(null)})]})}var Jgf,fP,Ygf,Xgf,Zgf,Qgf,$gf,e_f=s((()=>{Jgf=d(g()),rj(),pO(),Kgf(),qN(),wN(),W(),LN(),bN(),agf(),Zpf(),fP=L(),Ygf=`registration-join-form`,Xgf=()=>{let e=slf();return e?(0,fP.jsx)(Wgf,{type:`v2-invisible`,siteKey:e,children:(0,fP.jsx)(qgf,{})}):(WE(Error(`Registration recaptcha site key is not configured`)),(0,fP.jsx)(B,{sx:{width:xdf},children:(0,fP.jsx)(Kf,{severity:`error`,children:`Registration is unavailable due to a configuration issue. Please contact support.`})}))},Zgf=new Map([[`registration_not_approved`,XN.RegistrationNotApproved],[`account_exists`,XN.AccountExists],[`registration_configuration_invalid`,XN.RegistrationConfigurationInvalid]]),Qgf=({status:e,code:t,message:n})=>{if(t){let e=Zgf.get(t);if(e)return ZN[e];if(typeof n==`string`&&n)return{description:n}}switch(e){case 401:return ZN[XN.CaptchaError];case 400:return ZN[XN.RegistrationError];case 409:return ZN[XN.InviteExists];default:return ZN[XN.EnvError]}},$gf=({getRecaptchaToken:e,onRegistrationFailure:t})=>{let n=ZA(),[r]=tj(),{config:i,registerUri:a}=KN(),o=Lpf(),[s,c]=(0,Jgf.useState)(null);return{onSubmit:(0,Jgf.useCallback)(async s=>{try{let l=i.id,u=i.slug,d=i?.adminApprovalRequired??!1,f=r.get(`email`),p=s?.email||(f?decodeURIComponent(f):``),m=i?.allowedDomains??[];if(m.length>0&&p){let e=p.split(`@`)[1]?.toLowerCase();if(!m.some(t=>t.toLowerCase()===e)){c({title:`Email Domain Not Allowed`,description:`Please use an email address from one of the allowed domains: ${m.join(`, `)}`});return}}let h=s?.firstName??``,g=s?.lastName??``,_=s?.password??``,v=new Set([`firstName`,`lastName`,`email`,`password`,`confirmPassword`]),y=i?.uiSettings?.customRegistrationFields?.properties??{},b=Object.keys(s).reduce((e,t)=>{if(!v.has(t)){let n=s[t];y[t]?.type===`number`&&isFinite(Number(n))?e[t]=Number(n):e[t]=n}return e},{}),x=await e(),S=await o.mutateAsync({slug:u,orgRegistrationId:l,email:p,customFields:b,firstName:h,lastName:g,password:_,captchaResponse:x});if(S?.status===201){let e=[`approved`,`submitted`].includes(S.inviteStatus??``)?S.inviteStatus:d?`submitted`:`approved`;n({pathname:`${a}/success`,search:`?status=${e}`})}else c(Qgf(S)),t?.()}catch(e){WE(e),c(ZN[XN.EnvError]),t?.()}},[i,e,n,t,a,r,o]),errorMessage:s,setErrorMessage:c}}})),t_f,n_f,r_f=s((()=>{rj(),nw(),qN(),LN(),cdf(),SN(),t_f=L(),Ihf(),Whf(),Xhf(),agf(),e_f(),n_f=()=>{let{config:e,isLoading:t}=KN(),n=LC({defaultValues:{email:``,acceptedTos:!1}}),r=()=>{let t=e?.name?.trim();return t?`Welcome to ${t} Registration`:`Welcome to Registration`};return t?(0,t_f.jsx)(sdf,{}):(0,t_f.jsx)(JC,{...n,children:(0,t_f.jsxs)(IN,{loginConfigs:{name:e?.name??``,logo:e?.uiSettings?.logo,buttonColor:e?.uiSettings?.registrationButtonStyle?.backgroundColor,buttonTextColor:e?.uiSettings?.registrationButtonStyle?.textColor,hideVeritoneBranding:e?.uiSettings?.veritoneBranding},children:[(0,t_f.jsx)(xN,{text:r(),type:`register`,subText:`Please enter the information you would like associated with your account and accept our Terms & Conditions. This is the first step on your way to exploring all of the amazing content we have to offer!`,sx:{textAlign:`left`,fontWeight:`700`,fontSize:`16px`},subTextSx:{textAlign:`left`,fontSize:`12px`}}),(0,t_f.jsx)(NQd,{})]})})}})),pP,i_f,a_f,o_f=s((()=>{rj(),$pf(),nmf(),amf(),smf(),umf(),pmf(),Nmf(),Lmf(),Umf(),Ymf(),ehf(),chf(),ghf(),Thf(),Nhf(),r_f(),pP=L(),i_f=()=>{let{slug:e}=bQd(),t=XA(),n=t.pathname.split(`/`),r=n.findIndex(e=>e===`register`),i=n.slice(r+(e?2:1)).join(`/`),a=`../signup`;e&&(a+=`/${e}`),i&&(a+=`/${i}`);let o=t.search;return(0,pP.jsx)(MQd,{to:a+o,replace:!0})},a_f=({aiwareInit:e,allowVanityDomain:t=!1,onLoginSuccess:n})=>(0,pP.jsxs)(FQd,{children:[(0,pP.jsx)(QA,{path:`/login`,element:(0,pP.jsx)(Qpf,{allowVanityDomain:t,onLoginSuccess:n})}),(0,pP.jsx)(QA,{path:`/login/:slug`,element:(0,pP.jsx)(Qpf,{allowVanityDomain:t,onLoginSuccess:n})}),(0,pP.jsx)(QA,{path:`/forgot`,element:(0,pP.jsx)(tmf,{})}),(0,pP.jsx)(QA,{path:`/forgot/:slug`,element:(0,pP.jsx)(tmf,{})}),(0,pP.jsx)(QA,{path:`/sign-up`,element:(0,pP.jsx)(MQd,{to:`../signup`,replace:!0})}),(0,pP.jsx)(QA,{path:`/register`,element:(0,pP.jsx)(MQd,{to:`../signup`,replace:!0})}),(0,pP.jsx)(QA,{path:`/register/:slug/*`,element:(0,pP.jsx)(i_f,{})}),(0,pP.jsx)(QA,{path:`/signup`,element:(0,pP.jsx)(Mmf,{})}),(0,pP.jsx)(QA,{path:`/signup/verify`,element:(0,pP.jsx)(fhf,{})}),(0,pP.jsx)(QA,{path:`/signup/review`,element:(0,pP.jsx)(xhf,{})}),(0,pP.jsx)(QA,{path:`/signup/trial/verify`,element:(0,pP.jsx)(khf,{})}),(0,pP.jsxs)(QA,{path:`/signup/:slug/*`,element:(0,pP.jsx)(n_f,{}),children:[(0,pP.jsx)(QA,{path:`join`,element:(0,pP.jsx)(Xgf,{})}),(0,pP.jsx)(QA,{path:`success`,element:(0,pP.jsx)(ahf,{})}),(0,pP.jsx)(QA,{index:!0,element:(0,pP.jsx)(Fhf,{})}),(0,pP.jsx)(QA,{path:`confirm`,element:(0,pP.jsx)(Vhf,{})}),(0,pP.jsx)(QA,{path:`terms-of-service`,element:(0,pP.jsx)(Yhf,{})})]}),(0,pP.jsx)(QA,{path:`/plans`,element:(0,pP.jsx)(Hmf,{})}),(0,pP.jsx)(QA,{path:`/payment-result`,element:(0,pP.jsx)(Jmf,{})}),(0,pP.jsx)(QA,{path:`/restricted-provider`,element:(0,pP.jsx)(imf,{})}),(0,pP.jsx)(QA,{path:`/link-oid`,element:(0,pP.jsx)(omf,{})}),(0,pP.jsx)(QA,{path:`/reset-password/success`,element:(0,pP.jsx)(fmf,{})}),(0,pP.jsx)(QA,{path:`/reset-password`,element:(0,pP.jsx)(lmf,{})}),(0,pP.jsx)(QA,{path:`/activate`,element:(0,pP.jsx)(Imf,{})}),(0,pP.jsx)(QA,{path:`/logout`,element:(0,pP.jsx)($mf,{aiwareInit:e})})]})})),s_f=l({AuthRoutes:()=>a_f,ResetPassword:()=>Ruf,getConfig:()=>_N,getRestApiUrlFromConfig:()=>vN}),c_f=s((()=>{zuf(),o_f(),bN()}));function*l_f(){let e=yield I(Dv);yield Vi(T_f,function*(t){let n=yield M9e(t.payload.ids,e);n!==void 0&&(yield P(Y_f(n)))})}function*u_f(){yield Vi(g_f,function*(e){yield P(W_f(!0));let t=yield I(Dv),n;switch(e.payload.ownerType){case Nb.ORGANIZATION:n=yield A9e({name:e.payload.name,owned:!1,offset:0,limit:300,authToken:t});break;case Nb.MINE:n=yield A9e({name:e.payload.name,owned:!0,offset:0,limit:300,authToken:t});break;case Nb.SHARED:n=yield A9e({name:e.payload.name,owned:!1,offset:0,limit:300,authToken:t});break;case Nb.NOTEBOOKS:n=yield A9e({name:e.payload.name,owned:!0,offset:0,limit:300,authToken:t,isNotebook:!0});break;default:break}n!==void 0&&n&&(n.data.engines.records.length===0&&!e.payload.name&&(yield P(fvf(!0))),e.payload.ownerType===Nb.NOTEBOOKS?yield P(rvf(n.data.engines.records)):yield P(nvf(n.data.engines.records))),yield P(ovf(!1)),yield P(W_f(!1))})}function*d_f(){yield Vi(P_f,function*(e){let t=yield I(Dv),n=yield A9e({name:e.payload.name,owned:!0,offset:0,limit:300,authToken:t,isNotebook:!0});n!==void 0&&n&&(yield P(rvf(n.data.engines.records))),yield P(ovf(!1))})}function*f_f(){yield Vi(L_f,function*(){let e=yield F(k9e,yield I(Dv),{isPublic:!0,limit:200});e&&e.data&&e.data.flowTemplates&&e.data.flowTemplates.records&&e.data.flowTemplates.records.length>0&&(yield P(q_f(e.data.flowTemplates.records)),yield P(J_f(e.data.flowTemplates.records)))})}function*p_f(){yield Vi(v_f,function*(){let e,t=yield I(Dv);try{e=yield F(N9e,t)}catch{yield P({type:y_f,payload:!1})}(0,h_f.get)(e,`data.flowRevisions`,``)&&(yield P({type:y_f,payload:!0}))})}function*m_f(){yield Ur([l_f(),d_f(),u_f(),f_f(),p_f()])}var h_f,g_f,__f,v_f,y_f,b_f,x_f,S_f,C_f,w_f,T_f,E_f,D_f,O_f,k_f,A_f,j_f,M_f,N_f,P_f,F_f,I_f,L_f,R_f,z_f,B_f,V_f,H_f,U_f,W_f,G_f,mP,K_f,q_f,J_f,Y_f,X_f,Z_f,Q_f,$_f,evf,tvf,nvf,rvf,ivf,avf,ovf,svf,cvf,lvf,uvf,dvf,fvf,pvf,mvf,hP=s((()=>{ov(),qi(),Fb(),X(),h_f=d(mb()),g_f=`flow-center/FETCH_FLOWS`,__f=`flow-center/ADD_NEW_FLOW`,v_f=`flow-center/IS_REVISIONS_EXIST_ON_SERVER`,y_f=`flow-center/SET_IS_REVISIONS_EXIST_ON_SERVER`,b_f=`flow-center/SET_FETCHING_FLOWS`,x_f=`flow-center/SET_OPEN_TEMPLATE`,S_f=`flow-center/SET_TEMPLATE_SELECTED`,C_f=`flow-center/SET_TEMPLATES`,w_f=`flow-center/SET_FILTERED_TEMPLATES_ACTION`,T_f=`flow-center/FETCH_TAGS`,E_f=`flow-center/SET_TAGS`,D_f=`flow-center/SET_TAGS_TO_STORE`,O_f=`flow-center/SET_CATEGORIES`,k_f=`flow-center/SET_TEMPLATES_AUTHORS`,A_f=`flow-center/SET_SELECTED_FILTERS`,j_f=`flow-center/SET_TAG`,M_f=`flow-center/SET_FLOWS`,N_f=`flow-center/SET_NOTEBOOKS`,P_f=`flow-center/FETCH_NOTEBOOKS`,F_f=`flow-center/TOGGLE_IS_SEARCHING`,I_f=`flow-center/TOGGLE_IS_SEARCHING_LOADING`,L_f=`flow-center/SEARCH_TEMPLATES`,R_f=`flow-center/SET_SEARCHED`,z_f=`flow-center/SET_SEARCHED_TEMPLATES`,B_f=`flow-center/SET_CONFIG`,V_f=`flow-center/TOGGLE_STATE_CREATE_NEW_FLOW`,H_f=`flow-center/SET_SHOULD_CREATE_INITIAL_FLOWS`,U_f=`flow-center/GET_NODE_RED_VERSION_EDGE`,W_f=rv(b_f),G_f=rv(v_f),mP=rv(x_f),K_f=rv(S_f),q_f=rv(C_f),J_f=rv(w_f),rv(T_f),Y_f=rv(E_f),X_f=rv(D_f),Z_f=rv(O_f),Q_f=rv(k_f),$_f=rv(A_f),rv(j_f),evf=rv(g_f),tvf=rv(P_f),nvf=rv(M_f),rvf=rv(N_f),ivf=rv(__f),avf=rv(F_f),ovf=rv(I_f),svf=rv(L_f),cvf=rv(R_f),lvf=rv(z_f),uvf=rv(B_f),dvf=rv(V_f),fvf=rv(H_f),rv(U_f),pvf=aGe({flows:[],notebooks:[],shouldCreateInitialFlows:!1,fetchingFlows:!1,templateToOpen:{},isTemplateSelected:!1,tags:[],categories:[],templatesAuthors:[],templates:[],filteredTemplates:[],selectedFilters:{},isSearching:!1,isSearchingLoading:!1,searched:``,searchedTemplates:null,config:{isFullScreen:!1,automateFullScreen:!1,zIndex:0,graphQLEndpoint:``,defaultCluster:``},isLoadingCreateNewFlow:!1,isRevisionsExistOnServer:!1},{[g_f]:e=>({...e}),[__f]:(e,{payload:t})=>({...e,flows:[t,...e.flows]}),[b_f]:(e,{payload:t})=>({...e,fetchingFlows:t}),[x_f]:(e,{payload:t})=>({...e,templateToOpen:t}),[S_f]:(e,{payload:t})=>({...e,isTemplateSelected:t}),[E_f]:(e,{payload:t})=>({...e,tags:t}),[D_f]:(e,{payload:t})=>({...e,tags:t}),[O_f]:(e,{payload:t})=>({...e,categories:t}),[k_f]:(e,{payload:t})=>({...e,templatesAuthors:t}),[A_f]:(e,{payload:t})=>({...e,selectedFilters:t}),[C_f]:(e,{payload:t})=>({...e,templates:t}),[w_f]:(e,{payload:t})=>({...e,filteredTemplates:t}),[j_f]:(e,{payload:t})=>({...e,tag:t}),[M_f]:(e,{payload:t})=>({...e,flows:t}),[N_f]:(e,{payload:t})=>({...e,notebooks:t}),[F_f]:(e,{payload:t})=>({...e,isSearching:t}),[I_f]:(e,{payload:t})=>({...e,isSearchingLoading:t}),[R_f]:(e,{payload:t})=>({...e,searched:t}),[z_f]:(e,{payload:t})=>({...e,searchedTemplates:t}),[B_f]:(e,{payload:t})=>({...e,config:t}),[V_f]:(e,{payload:t})=>({...e,isLoadingCreateNewFlow:t}),[y_f]:(e,{payload:t})=>({...e,isRevisionsExistOnServer:t}),[H_f]:(e,{payload:t})=>({...e,shouldCreateInitialFlows:t})}),mvf=`flows`}));function*hvf(){yield Ur([m_f()])}var gvf=s((()=>{qi(),hP()})),_vf,vvf,yvf,bvf,xvf,Svf,Cvf=s((()=>{ov(),_vf=`newFlowClusterID`,vvf={newFlowClusterID:``},yvf=iv({name:_vf,initialState:vvf,reducers:{newFlowClusterIDAction(e,t){e.newFlowClusterID=t.payload}}}),bvf=e=>e?.newFlowClusterID||null,{newFlowClusterIDAction:xvf}=yvf.actions,Svf=yvf.reducer})),wvf,Tvf=s((()=>{Cvf(),wvf=Svf})),Evf,Dvf,Ovf,kvf,Avf,jvf=s((()=>{ov(),Evf=`engineDistributionType`,Dvf={engineDistributionType:`instance_locked`},Ovf=iv({name:Evf,initialState:Dvf,reducers:{engineDistributionTypeAction(e,t){e.engineDistributionType=t.payload}}}),{engineDistributionTypeAction:kvf}=Ovf.actions,Avf=Ovf.reducer})),Mvf,Nvf=s((()=>{jvf(),Mvf=Avf}));function Pvf(){return{id:`flow-center`,reducerMap:{[mvf]:pvf,[Fvf]:wvf,[Ivf]:Mvf,[Lvf]:rot},sagas:[hvf],initialActions:[]}}var Fvf,Ivf,Lvf,Rvf,zvf=s((()=>{hP(),gvf(),Tvf(),Nvf(),j_(),X(),Fvf=`newFlowClusterID`,Ivf=`engineDistributionType`,Lvf=`flowCenterDialog`,A_.addModules([Pvf()]),Rvf=A_})),Bvf=c((e=>{var t=zu();Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=t(cx()),r=L();e.default=(0,n.default)((0,r.jsx)(`path`,{d:`M14 6V4h-4v2h4zM4 8v11h16V8H4zm16-2c1.11 0 2 .89 2 2v11c0 1.11-.89 2-2 2H4c-1.11 0-2-.89-2-2l.01-11c0-1.11.88-2 1.99-2h4V4c0-1.11.89-2 2-2h4c1.11 0 2 .89 2 2v2h4z`}),`WorkOutlineOutlined`)})),Vvf=c((e=>{var t=zu();Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=t(cx()),r=L();e.default=(0,n.default)((0,r.jsx)(`path`,{d:`M16.67 13.13C18.04 14.06 19 15.32 19 17v3h4v-3c0-2.18-3.57-3.47-6.33-3.87zM15 12c2.21 0 4-1.79 4-4s-1.79-4-4-4c-.47 0-.91.1-1.33.24C14.5 5.27 15 6.58 15 8s-.5 2.73-1.33 3.76c.42.14.86.24 1.33.24zm-6 0c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0-6c1.1 0 2 .9 2 2s-.9 2-2 2-2-.9-2-2 .9-2 2-2zm0 7c-2.67 0-8 1.34-8 4v3h16v-3c0-2.66-5.33-4-8-4zm6 5H3v-.99C3.2 16.29 6.3 15 9 15s5.8 1.29 6 2v1z`}),`PeopleAltOutlined`)})),Hvf=c((e=>{var t=zu();Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=t(cx()),r=L();e.default=(0,n.default)((0,r.jsx)(`path`,{d:`M12 5.9c1.16 0 2.1.94 2.1 2.1s-.94 2.1-2.1 2.1S9.9 9.16 9.9 8s.94-2.1 2.1-2.1m0 9c2.97 0 6.1 1.46 6.1 2.1v1.1H5.9V17c0-.64 3.13-2.1 6.1-2.1M12 4C9.79 4 8 5.79 8 8s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4zm0 9c-2.67 0-8 1.34-8 4v3h16v-3c0-2.66-5.33-4-8-4z`}),`PersonOutlineOutlined`)})),Uvf=c((e=>{var t=zu();Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=t(cx()),r=L();e.default=(0,n.default)((0,r.jsx)(`path`,{d:`M13 3c-4.97 0-9 4.03-9 9H1l3.89 3.89.07.14L9 12H6c0-3.87 3.13-7 7-7s7 3.13 7 7-3.13 7-7 7c-1.93 0-3.68-.79-4.94-2.06l-1.42 1.42C8.27 19.99 10.51 21 13 21c4.97 0 9-4.03 9-9s-4.03-9-9-9zm-1 5v5l4.25 2.52.77-1.28-3.52-2.09V8z`}),`HistoryOutlined`)}));function Wvf({categories:e,filterers:t,type:n,screen:r,onSetType:i,showNavigation:a,fullScreen:o,automateFullScreen:s}){let{classes:c}=$vf(),l=K(),[u,d]=(0,Gvf.useState)([]),f=G(e=>e.flows.selectedFilters),p=G(e=>e.flows.isSearching);function m(e){switch(e){case`mine`:return r.toLowerCase()===e&&!p?(0,gP.jsx)(`img`,{width:`24px`,height:`24px`,src:Vct,alt:`myFlows`}):(0,gP.jsx)(`img`,{width:`24px`,height:`24px`,src:zct,alt:`myFlowsBlue`});case`templates`:return r.toLowerCase()===e&&!p?(0,gP.jsx)(`img`,{width:`24px`,height:`24px`,src:qct,alt:`templates`}):(0,gP.jsx)(`img`,{width:`24px`,height:`24px`,src:Gct,alt:`templatesBlue`});case`containers`:return(0,gP.jsx)(`img`,{width:`24px`,height:`24px`,src:ylt,alt:`containerDashboard`});case`notebooks`:return r.toLowerCase()===e&&!p?(0,gP.jsx)(`img`,{width:`24px`,height:`24px`,src:Vct,alt:`myFlows`}):(0,gP.jsx)(`img`,{width:`24px`,height:`24px`,src:zct,alt:`myFlowsBlue`});case`WorkOutlineOutlinedIcon`:return(0,gP.jsx)(qvf.default,{});case`PeopleAltOutlinedIcon`:return(0,gP.jsx)(Jvf.default,{});case`PersonOutlineOutlinedIcon`:return(0,gP.jsx)(Yvf.default,{});case`HistoryOutlinedIcon`:return(0,gP.jsx)(Xvf.default,{});default:return(0,gP.jsx)(Xvf.default,{})}}let h=e=>{let t=u.indexOf(e);d(t===-1?t=>(t.push(e),[...t]):e=>(e.splice(t,1),[...e]))},g=(e,t)=>{let n={...f},r=f[e];n[e]=[],r&&(n[e]=[...r]),n[e].includes(t)?n[e].splice(n[e].indexOf(t),1):n[e].push(t),n[e].length===0&&delete n[e],l($_f(n))};(0,Gvf.useEffect)(()=>{g(Pb.PUBLIC,`1`)},[]);let _=e=>{l(avf(!1)),l(ovf(!1)),l(cvf(``)),l(lvf(null)),l(evf(e===`notebooks`?{name:``,ownerType:Nb.NOTEBOOKS}:{name:``,ownerType:Nb.MINE})),i(e)},v=()=>t.map(({text:e,group:t,options:n},r)=>(0,gP.jsx)(`div`,{children:(0,gP.jsxs)(oh,{component:`fieldset`,className:c.formControl,"data-test":`flow-center-${t}-container`,id:`flow-center-${t}-container`,children:[(0,gP.jsxs)(`div`,{className:c.filterTitleContainer,children:[(0,gP.jsx)(ph,{className:c.category,component:`legend`,children:e}),(0,gP.jsx)(`div`,{className:c.expandIconClass,onClick:()=>h(r),children:u.includes(r)?(0,gP.jsx)(Zvf.default,{fontSize:`small`,style:{fill:`#555F7C`,width:`18px!important`,height:`18px!important`}}):(0,gP.jsx)(Qvf.default,{fontSize:`small`,style:{fill:`#555F7C`,width:`18px!important`,height:`18px!important`}})})]}),(0,gP.jsx)(`div`,{children:(0,gP.jsx)(Qbe,{className:c.group,children:n.map(({text:e,value:n})=>{if(!u.includes(r))return(0,gP.jsx)(lh,{control:(0,gP.jsx)(Mm,{checked:f[t]&&f[t].includes(n),name:n,color:`primary`,onClick:()=>g(t,n)}),label:(0,gP.jsx)(z,{"data-test":`flow-center-flows-table-optionText`,className:c.listItemTextFilters,children:e}),"data-test":`flow-center-filter-item`,id:`flow-center-filter-item`},`${t}-${n}`)})})})]},t+r)},t+r));return(0,gP.jsx)(B,{className:c.boxBackground,children:(0,gP.jsxs)(B,{className:c.marginLeft,children:[(0,gP.jsx)(Eh,{className:s?c.fullScreenMode:``,children:e.map(({key:e,text:t,icon:n})=>(0,gP.jsxs)(Mh,{id:`flow-center-navigation-listItem-conatiner`,"data-test":`flow-center-navigation-tabs-${e}`,button:!0,disableRipple:!0,selected:r.toLowerCase()===e&&!p,onClick:()=>_(e),className:c.paddingLeft,classes:{selected:c.selectedPaddingLeft},children:[(0,gP.jsx)(Fh,{className:c.icon,children:m(e)}),(0,gP.jsx)(Lh,{"data-test":`flow-center-navigation-listItemText`,className:`flow-center-navigation-listItemText`,primary:t,classes:{primary:c.listItemText}})]},e))}),a&&(()=>{let e=s?`calc(100vh - 64px - 16px - 86px - 8px - 54px`:`calc(100vh - 64px - 16px - 86px - 8px - ${o?`0px`:`54px`})`;return(0,gP.jsxs)(gP.Fragment,{children:[(0,gP.jsx)(eh,{}),(0,gP.jsx)(`div`,{className:c.scroll,style:{height:e},children:v()})]})})()]})})}var Gvf,Kvf,qvf,Jvf,Yvf,Xvf,Zvf,Qvf,gP,$vf,eyf=s((()=>{Gvf=d(g()),Kvf=Z(),th(),xxe(),sh(),exe(),uh(),Nm(),Ih(),Rh(),Nh(),Dh(),wm(),Jf(),qvf=d(Bvf()),Jvf=d(Vvf()),Yvf=d(Hvf()),Xvf=d(Uvf()),q(),hP(),Kb(),Fb(),Zvf=d(Jfd()),Qvf=d(US()),gP=L(),$vf=(0,Kvf.makeStyles)()(()=>({icon:{fontSize:`16px!important`,minWidth:`0px!important`,paddingLeft:`8px!important`,paddingRight:`8px!important`,"& svg":{fill:`#555F7C!important`}},text:{fontSize:`14px!important`},listItemText:{fontFamily:`Nunito`,fontStyle:`normal!important`,fontWeight:`normal!important`,fontSize:`14px!important`,lineHeight:`19px!important`,letterSpacing:`-1.30385e-09px!important`},listItemTextFilters:{fontFamily:`Nunito`,fontStyle:`normal!important`,fontWeight:`normal!important`,fontSize:`12px!important`,lineHeight:`16px!important`,letterSpacing:`-1.30385e-09px!important`,wordBreak:`break-word`},category:{fontFamily:`Nunito`,fontStyle:`normal!important`,color:`#2A323C!important`,fontSize:`14px!important`,marginright:`6px!important`,fontWeight:`500!important`,paddingLeft:`8px!important`},formControl:{marginBottom:`10px!important`,marginTop:`10px!important`},marginLeft:{paddingLeft:`8px!important`,paddingRight:`8px!important`},boxBackground:{height:`100%!important`},paddingLeft:{paddingLeft:`0px!important`,minWidth:`0px!important`,borderRadius:`4px!important`},fullScreenMode:{marginTop:`64.5px!important`},selectedPaddingLeft:{background:`#F2F5F9 !important`,color:`#1871E8 !important`},group:{paddingLeft:`8px!important`},filterTitleContainer:{display:`flex`,alignItems:`center!important`},expandIconClass:{display:`flex`,paddingLeft:`5px!important`,"&:hover":{cursor:`pointer!important`}},scroll:{overflowY:`auto`,overflowX:`hidden`}}))})),tyf,nyf,_P,ryf,iyf,ayf,oyf=s((()=>{tyf=d(g()),Am(),Fb(),jge(),Jf(),Dm(),mh(),Sge(),wm(),nyf=Z(),Y(),q(),hP(),Kb(),X(),pO(),W(),_P=L(),ryf=3,iyf=(0,nyf.makeStyles)()(e=>({container:{marginLeft:`12px!important`},cardRoot:{display:`flex`,flexDirection:`column`,justifyContent:`center!important`,border:`0.5px solid #D5DFE9!important`,boxShadow:`none!important`,borderRadius:`4px!important`,marginRight:`10px!important`},cardContainer:{marginTop:`20px!important`,marginLeft:`20px!important`,marginBottom:`15px!important`,marginRight:`20px!important`,maxHeight:`150px`,minHeight:`150px`,display:`flex`,flexDirection:`column`},title:{fontFamily:`Nunito`,fontStyle:`normal!important`,fontWeight:600,fontSize:`16px!important`,lineHeight:`22px!important`,letterSpacing:`-1.30385e-09px!important`,wordBreak:`break-word!important`,cursor:`pointer`,color:`#2A323C!important`},subtitle:{fontFamily:`Nunito`,fontStyle:`normal!important`,fontWeight:500,fontSize:`12px!important`,lineHeight:`16px!important`,letterSpacing:`-1.30385e-09px!important`,color:`#5C6269!important`,wordWrap:`break-word!important`},veritoneCertifiedContainer:{display:`flex`,marginTop:`10px!important`},veritoneCertified:{fontFamily:`Nunito`,fontStyle:`normal!important`,fontWeight:500,fontSize:`10px!important`,lineHeight:`18px!important`,letterSpacing:`-1.30385e-09px!important`,wordWrap:`break-word!important`,color:`#2A323C!important`,marginLeft:`4px!important`},pos:{marginBottom:12},centerButton:{justifyContent:`center!important`},cardContent:{padding:`0px!important`,height:`120px!important`,textOverflow:`ellipsis!important`},titleContent:{height:`82px!important`,overflow:`auto`},bottomButton:{marginTop:`10px`,padding:`0px!important`,display:`flex`,height:`30px!important`},box:{display:`flex`,marginTop:e.spacing(3.2),marginBottom:e.spacing(3.2)},viewAllButton:{color:`#6098D1!important`,textTransform:`none!important`,fontFamily:`Nunito`,fontStyle:`normal!important`,fontWeight:`normal!important`,fontSize:`12px!important`,lineHeight:`16px!important`,marginRight:`24px!important`,letterSpacing:`-1.30385e-09px!important`},createFlowButton:{textTransform:`none!important`,fontFamily:`Nunito`,fontStyle:`normal!important`,fontWeight:600,fontSize:`12px!important`,lineHeight:`16px!important`,marginLeft:`0px!important`,padding:`6px 12px 6px 12px!important`,background:e.palette.background.paper,color:`#1871E8!important`,letterSpacing:`0.02857em`},viewDetailsButton:{textTransform:`none!important`,fontFamily:`Nunito`,fontStyle:`normal!important`,fontWeight:600,fontSize:`12px!important`,lineHeight:`16px!important`,background:e.palette.background.paper,color:`#6098D1!important`,letterSpacing:`0.02857em`},createBlankFlowButton:{display:`flex`,justifyContent:`center!important`,"& svg":{fill:`#555F7C!important`}},createBlankFlowLayout:{display:`flex`,flexDirection:`column`},lowercaseButton:{textTransform:`none!important`,fontFamily:`Nunito`,fontStyle:`normal!important`,fontWeight:600,fontSize:`14px!important`,lineHeight:`19px!important`,letterSpacing:`-1.30385e-09px!important`},text:{fontFamily:`Nunito`,fontStyle:`normal!important`,fontWeight:400,fontSize:`16px!important`,lineHeight:`22px!important`,letterSpacing:`-1.30385e-09px!important`,color:`#2A323C!important`}})),ayf=({goToTemplateList:e,handleOpenFlowNameDialog:t,setScreen:n,handleOpenTemplateDetails:r})=>{let i=K(),{classes:a}=iyf(),[o,s]=(0,tyf.useState)([]),[c,l]=(0,tyf.useState)(0),u=G(Dv),[d,f]=(0,tyf.useState)(!0),p=(e,t)=>{e.data[t].records&&s(e.data[t].records),l(Math.min(ryf,e.data[t].records.length))};(0,tyf.useEffect)(()=>{if(o.length){setTimeout(()=>{f(!1)},3e3);return}k9e(u,{isPublic:!0}).then(e=>{setTimeout(()=>{f(!1)},3e3),p(e,`flowTemplates`)}).catch(e=>{WE(`error fetching flow templates: ${JSON.stringify(e)}`)})},[p]);let m=e=>{n(Nb.TEMPLATES),i(mP({id:e.id,title:e.title})),r(!0)},h=e=>{t(e)};return(0,_P.jsxs)(`div`,{className:a.container,children:[(0,_P.jsxs)(B,{mt:2,mb:2,className:a.box,children:[(0,_P.jsx)(z,{"data-test":`flow-center-flows-table-populatTemplates`,className:a.text,style:{flexGrow:1},children:(0,_P.jsx)(J,{id:`os-flow-center.1v6wsw`,defaultMessage:[{type:0,value:`Popular Templates`}]})}),(0,_P.jsx)(V,{"data-test":`flow-center-template-gallery-viewAllTemplates`,size:`small`,className:a.viewAllButton,onClick:e,children:(0,_P.jsx)(J,{id:`os-flow-center.viewall`,defaultMessage:[{type:0,value:`View All`}]})})]}),(0,_P.jsx)(U,{"data-test":`flow-center-templates-on-flows-page`,container:!0,id:`flow-center-templates`,children:o.slice(0,c).map((e,t)=>(0,_P.jsx)(U,{"data-test":`flow-center-templatesGallery`,item:!0,xs:4,children:(0,_P.jsx)(km,{className:a.cardRoot,id:`flow-center-template-card`,children:(0,_P.jsxs)(`div`,{className:a.cardContainer,children:[(0,_P.jsxs)(jm,{className:a.cardContent,children:[(0,_P.jsxs)(`div`,{className:a.titleContent,children:[d?(0,_P.jsx)(rg,{variant:`rectangular`,animation:`wave`,width:80,height:15}):(0,_P.jsx)(z,{"data-test":`flow-center-flows-templateGallery-title`,className:a.title,gutterBottom:!0,onClick:()=>m(e),children:e?.title}),d?(0,_P.jsx)(rg,{variant:`rectangular`,animation:`wave`,width:80,height:15,sx:{mt:`5px`}}):(0,_P.jsx)(z,{"data-test":`flow-center-flows-templateGallery-subtitle`,className:a.subtitle,"aria-multiline":!0,variant:`body2`,component:`p`,children:e.subtitle})]}),(0,_P.jsx)(`div`,{className:a.veritoneCertifiedContainer,children:d?(0,_P.jsx)(rg,{variant:`rectangular`,animation:`wave`,width:120,height:15}):(0,_P.jsxs)(_P.Fragment,{children:[(0,_P.jsx)(`img`,{src:Yct,alt:`veritoneCertifiedIcon`}),(0,_P.jsx)(z,{"data-test":`flow-center-flows-templateGallery-veritoneCertified`,className:a.veritoneCertified,component:`p`,children:(0,_P.jsx)(J,{id:`os-flow-center.veritonecertified`,defaultMessage:[{type:0,value:`Veritone Certified`}]})})]})})]}),(0,_P.jsxs)(bge,{className:a.bottomButton,children:[d?(0,_P.jsx)(rg,{variant:`rectangular`,animation:`wave`,width:120,height:20}):(0,_P.jsx)(V,{"data-test":`flow-center-template-gallery-createFlowFromTemplate-${t}`,onClick:()=>h?h(e.id):``,id:`flow-center-create-flow-btn-${t}`,size:`small`,variant:`outlined`,color:`primary`,className:a.createFlowButton,children:(0,_P.jsx)(J,{id:`os-flow-center.createflow`,defaultMessage:[{type:0,value:`Create Flow`}]})}),d?(0,_P.jsx)(rg,{variant:`rectangular`,animation:`wave`,width:120,height:15}):(0,_P.jsx)(V,{"data-test":`flow-center-template-gallery-viewDetailsForTemplate-${t}`,onClick:()=>m(e),size:`small`,color:`primary`,className:a.viewDetailsButton,children:(0,_P.jsx)(J,{id:`os-flow-center.viewdetails`,defaultMessage:[{type:0,value:`View Details`}]})})]})]})})},e.title+t))})]})}}));function syf(e,t){if(e===void 0)return cyf;switch(t.type){case`SET_LOCALE`:return{...e,locale:t.payload};case`SET_AUTHTOKEN`:return{...e,authToken:t.payload};case`SET_CONFIG`:return{...e,config:t.payload};case`FETCH_ENGINE_DISPATCHED`:return{...e,engineFetching:!0,engineFetchingFailed:!1,engineFetchingFailedReason:null,engine:null};case`FETCH_ENGINE_FAILED`:return{...e,engineFetching:!1,engineFetchingFailed:!0,engineFetchingFailedReason:t.payload,engine:null};case`FETCH_ENGINE_SUCCEEDED`:return{...e,engineFetching:!1,engineFetchingFailed:!1,engineFetchingFailedReason:null,engine:t.payload,engineDistrubutionType:t.payload.distributionType};case`FETCH_REVISIONS`:return{...e,engineRevisionsFetching:!0,engineRevisionsFetchingFailed:!1,engineRevisionsFetchingFailedReason:null,engineRevisions:null};case`FETCH_REVISIONS_FAILED`:return{...e,engineRevisionsFetching:!1,engineRevisionsFetchingFailed:!0,engineRevisionsFetchingFailedReason:t.payload,engineRevisions:null};case`FETCH_REVISIONS_SUCCEEDED`:return{...e,engineRevisionsFetching:!1,engineRevisionsFetchingFailed:!1,engineRevisionsFetchingFailedReason:null,engineRevisions:t.payload};case`FETCH_EXECUTIONS`:return{...e,fetchingExecutions:!0,executions:null,fetchExecutionsFail:null};case`FETCH_EXECUTIONS_FAIL`:return{...e,fetchingExecutions:!1,executions:null,fetchExecutionsFail:t.payload};case`FETCH_EXECUTIONS_SUCCEES`:return{...e,fetchingExecutions:!1,executions:t.payload,fetchExecutionsFail:null};case`FETCH_SCHEDULED_JOBS_DISPATCHED`:return{...e,scheduledJobsFetching:!0,scheduledJobsFailed:!1,scheduledJobsFailedReason:null,scheduledJobs:null};case`FETCH_SCHEDULED_JOBS_FAILED`:return{...e,scheduledJobsFetching:!1,scheduledJobsFailed:!0,scheduledJobsFailedReason:t.payload,scheduledJobs:null};case`FETCH_SCHEDULED_JOBS_SUCCEEDED`:return{...e,scheduledJobsFetching:!1,scheduledJobsFailed:!1,scheduledJobsFailedReason:null,scheduledJobs:t.payload};case`FETCH_JOBS_DISPATCHED`:return{...e,jobsFetching:!0,jobsFetchingFailed:!1,jobsFetchingFailedReason:null,jobsFetched:null};case`FETCH_JOBS_FAILED`:return{...e,jobsFetching:!1,jobsFetchingFailed:!0,jobsFetchingFailedReason:t.payload,jobsFetched:null};case`FETCH_JOBS_SUCCEEDED`:return{...e,jobsFetching:!1,jobsFetchingFailed:!1,jobsFetchingFailedReason:null,jobsFetched:t.payload};case`UPDATE_FLOW_REVISION_DESCRIPTION`:return{...e,flowRevisionDescriptionUpdating:!0,flowRevisionDescriptionUpdateFailed:!1,flowRevisionDescriptionUpdateFailedReason:null,flowRevisionDescriptionUpdate:null};case`UPDATE_FLOW_REVISION_DESCRIPTION_FAILED`:return{...e,flowRevisionDescriptionUpdating:!1,flowRevisionDescriptionUpdateFailed:!0,flowRevisionDescriptionUpdateFailedReason:t.payload,flowRevisionDescriptionUpdate:null};case`UPDATE_FLOW_REVISION_DESCRIPTION_SUCCEEDED`:return{...e,flowRevisionDescriptionUpdating:!1,flowRevisionDescriptionUpdateFailed:!1,flowRevisionDescriptionUpdateFailedReason:null,flowRevisionDescriptionUpdate:t.payload};case`CLEAN_UPDATE_FLOW_REVISION_DESCRIPTION`:return{...e,flowRevisionDescriptionUpdating:!1,flowRevisionDescriptionUpdateFailed:!1,flowRevisionDescriptionUpdateFailedReason:null,flowRevisionDescriptionUpdate:null};case`RESTORE_THIS_REVISION`:return{...e,restoreThisRevisionInProgress:!0,restoreThisRevisionFailed:!1,restoreThisRevisionFailedReason:null,restoreThisRevisionResult:null};case`RESTORE_THIS_REVISION_FAILED`:return{...e,restoreThisRevisionInProgress:!1,restoreThisRevisionFailed:!0,restoreThisRevisionFailedReason:t.payload,restoreThisRevisionResult:null};case`RESTORE_THIS_REVISION_SUCCEEDED`:return{...e,restoreThisRevisionInProgress:!1,restoreThisRevisionFailed:!1,restoreThisRevisionFailedReason:null,restoreThisRevisionResult:t.payload};case`CLEAN_RESTORE_THIS_REVISION_SUCCEEDED`:return{...e,restoreThisRevisionInProgress:!1,restoreThisRevisionFailed:!1,restoreThisRevisionFailedReason:null,restoreThisRevisionResult:null};case`COPY_FLOW`:return{...e,copyFlowInProgress:!0,copyFlowFailed:!1,copyFlowFailedReason:null,copyFlowResult:null};case`COPY_FLOW_FAILED`:return{...e,copyFlowInProgress:!1,copyFlowFailed:!0,copyFlowFailedReason:t.payload,copyFlowResult:null};case`COPY_FLOW_SUCCEEDED`:return{...e,copyFlowInProgress:!1,copyFlowFailed:!1,copyFlowFailedReason:null,copyFlowResult:t.payload};case`CLEAN_COPY_FLOW`:return{...e,copyFlowInProgress:!1,copyFlowFailed:!1,copyFlowFailedReason:null,copyFlowResult:null};case`FLOW_RESUME_ACTION`:return{...e,flowResumeInProgress:!0,flowResumeFailed:!1,flowResumeFailedReason:null,flowResumeResult:null};case`FLOW_RESUME_ACTION_FAILED`:return{...e,flowResumeInProgress:!1,flowResumeFailed:!0,flowResumeFailedReason:t.payload,flowResumeResult:null};case`FLOW_RESUME_ACTION_SUCCEEDED`:return{...e,flowResumeInProgress:!1,flowResumeFailed:!1,flowResumeFailedReason:null,flowResumeResult:t.payload};case`CLEAN_FLOW_RESUME_ACTION`:return{...e,flowResumeInProgress:!1,flowResumeFailed:!1,flowResumeFailedReason:null,flowResumeResult:null};case`FLOW_PAUSE_ACTION`:return{...e,flowPauseInProgress:!0,flowPauseFailed:!1,flowPauseFailedReason:null,flowPauseResult:null};case`FLOW_PAUSE_ACTION_FAILED`:return{...e,flowPauseInProgress:!1,flowPauseFailed:!0,flowPauseFailedReason:t.payload,flowPauseResult:null};case`FLOW_PAUSE_ACTION_SUCCEEDED`:return{...e,flowPauseInProgress:!1,flowPauseFailed:!1,flowPauseFailedReason:null,flowPauseResult:t.payload};case`CLEAN_FLOW_PAUSE_ACTION`:return{...e,flowPauseInProgress:!1,flowPauseFailed:!1,flowPauseFailedReason:null,flowPauseResult:null};case`SET_ENGINE_DISTRIBUTION_TYPE_ACTION`:return{...e,engineDistrubutionType:t.payload};default:return e}}var cyf,lyf=s((()=>{cyf={locale:`he`,engine:null,engineDistrubutionType:null}})),uyf,dyf=s((()=>{lyf(),uyf=syf}));function fyf(e,t){if(e===void 0)return pyf;switch(t.type){case`SET_LOCALE`:return{...e,locale:t.payload};case`SET_AUTHTOKEN`:return{...e,authToken:t.payload};default:return e}}var pyf,myf=s((()=>{pyf={locale:`he`}})),hyf,gyf=s((()=>{myf(),hyf=fyf}));function _yf(e,t){if(e===void 0)return vyf;switch(t.type){case`SET_CONFIG`:return{...e,config:t.payload};case`SET_CONFIG_PARAMS`:return{...e,params:t.payload};case`FETCH_ME_LOADING`:return{...e,me:null,meFetchingFailed:null,meFetchingLoading:!0};case`FETCH_ME_FAILED`:return{...e,me:null,meFetchingFailed:t.payload,meFetchingLoading:!1};case`FETCH_ME_SUCCEEDED`:return{...e,me:t.payload,meFetchingFailed:null,meFetchingLoading:!1};case`SET_IS_REVISIONS_EXIST_ON_SERVER`:return{...e,isRevisionsExistOnServer:t.payload};case`FETCH_ORG_USERS`:return{...e,orgUsersFetching:!0,orgUsersFetchingFailed:!1,orgUsersFetchingFailedReason:null,users:null};case`FETCH_ORG_USERS_FAILED`:return{...e,orgUsersFetching:!1,orgUsersFetchingFailed:!0,orgUsersFetchingFailedReason:t.payload,users:null};case`FETCH_ORG_USERS_SUCCEEDED`:return{...e,orgUsersFetching:!1,orgUsersFetchingFailed:!1,orgUsersFetchingFailedReason:null,users:t.payload};default:return e}}var vyf,yyf=s((()=>{vyf={isRevisionsExistOnServer:!1}})),byf,xyf=s((()=>{yyf(),byf=_yf})),Syf,Cyf,wyf=s((()=>{X(),Syf=async(e,t,n)=>Jv({query:Cyf,graphEndpoint:t,token:n,variables:{flowId:e}}),Cyf=`
|
|
3256
3256
|
query getFlowRevisions($flowId: ID!) {
|
|
3257
3257
|
flowRevisions(flowId: $flowId, hasBuilds: true) {
|
|
3258
3258
|
records {
|