aiware-js 1.0.0-master.708 → 1.0.0-master.709
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.esm.css +92 -92
- package/index.esm.css.gz +0 -0
- package/index.esm.min.css +92 -92
- package/index.esm.min.css.gz +0 -0
- package/js-core.esm.js +1 -1
- package/js-core.esm.js.gz +0 -0
- package/js-core.esm38.js +1 -1
- package/js-core.esm38.js.gz +0 -0
- package/js-core.umd.js +2 -2
- package/js-core.umd.js.gz +0 -0
- package/locales/es.json +1 -1
- package/locales/fr.json +1 -1
- package/package.json +1 -1
package/js-core.umd.js
CHANGED
|
@@ -1483,7 +1483,7 @@ createScheduledJob(input:{
|
|
|
1483
1483
|
}
|
|
1484
1484
|
`)}),n},[]).join("\r\n")}
|
|
1485
1485
|
}
|
|
1486
|
-
`,l={entityId:t,entityType:e};try{a=yield AX({query:s,operationName:n,variables:l,graphEndpoint:u,token:d})}catch(e){i=!0}if(a.errors){if(0===(o=a.errors.filter(({message:e})=>e.includes(' does not exist in "AuthPermissionType" enum.')).map(({message:e})=>{var t='Value "',n=e.substring(t.length).indexOf('"');return e.substring(t.length,t.length+n)})).length)throw i=!0,a={},new Error((null==(g=(a.errors||[])[0])?void 0:g.message)||"Error")}else i=!0}const c=a.data||{};return Object.keys(c).map(e=>{var t=e.split("__");return 3===t.length?{fetchedTargetEntityType:t[0],fetchedTargetGroupType:t[1],fetchedTargetAction:t[2],hasPermission:c[e][0].hasPermission}:{fetchedTargetEntityType:t[0],fetchedTargetAction:t[1],hasPermission:c[e][0].hasPermission}}).reduce((e,t)=>{var n=t.fetchedTargetGroupType||t.fetchedTargetEntityType;return t.hasPermission&&(e[n]||(e[n]={}),e[n][t.fetchedTargetAction]=t.hasPermission),e},{})})}function lFe(t){return aFe(this,void 0,void 0,function*(){var e="getMyRights";return(yield A(Object.assign({query:"\n query getMyRights {\n myRights {\n operations\n }\n }\n ",operationName:e},t))).myRights.operations})}const cFe=(t,n,r)=>e=>{return t&&n&&(e=e[iFe].permissionsByObject[t])&&e[n]?e[n][r||t]:void 0},uFe=e=>e[iFe].rights;var dFe=Object.freeze({__proto__:null,selectPermissionsByEntity:cFe,selectMyRights:uFe});function*pFe(t){var{entityId:t,entityType:n}=t.payload,i=yield T(J$),e=yield T(M$),o=yield T(c$),a=yield T(y$),r=yield T(cFe(n,t));if(!r||"success"!==r.status&&"pending"!==r.status){yield k(oFe.fetchObjectPermissionsStarted({entityId:t,entityType:n}));try{let r={};if(a)r=yield E(sFe,e,o,{entityType:n,entityId:t});else{let e=yield T(uFe);if("success"!==e.status&&"pending"!==e.status){yield k(oFe.fetchMyRightsStarted);try{var s=yield E(lFe,i);yield k(oFe.fetchMyRightsSucceeded(s)),e=yield T(uFe)}catch(e){throw yield k(oFe.fetchMyRightsFailed),e}}else"pending"===e.status&&(yield X1([oFe.fetchMyRightsFailed,oFe.fetchMyRightsSucceeded]),e=yield T(uFe));const l=e["myRights"];tFe(n).forEach(n=>{var{action:e,resource:t}=n.targetActions.reduce((e,t)=>(e.action[t.targetAction]=((e,t,n)=>{const r=(null==(e=JLe[e])?void 0:e[t])||[];return 0<n.filter(e=>r&&r.includes(e)).length})(t.resource||n.targetObjectType,t.targetAction,l),e.resource=t.resource,e),{action:{}});r[t||n.targetObjectType]=e})}yield k(oFe.fetchObjectPermissionsSucceeded({entityId:t,entityType:n,permissions:r}))}catch(e){oFe.fetchObjectPermissionsFailed({entityId:t,entityType:n})}}}function*gFe(){yield $1([function*(){yield lP(oFe.fetchObjectPermissionsStart.type,pFe)}()])}const fFe=e=>{const t=De.exports.useRef(),n=de(),r=null==(o=ue(d$).organization)?void 0:o.organizationId,i=ue(cFe(qLe.Organization,String(r),e));De.exports.useEffect(()=>{!r||i&&"failure"!==i.status&&"idle"!==i.status&&t.current===r||(t.current=r,n(oFe.fetchObjectPermissionsStart({entityType:qLe.Organization,entityId:String(r)})))},[n,r,i]);var o=De.exports.useCallback(e=>{return!nFe(i)&&rFe(i,e)},[i]);return{permissions:i,hasPermission:o}},hFe=new class{constructor(){this.lastCall=null}checkIfCanCall(e=1){return e<1&&(e=1),(!this.lastCall||(new Date).getTime()-this.lastCall>=6e4*e)&&(this.lastCall=(new Date).getTime(),!0)}};Hh.addModules([{id:dLe,reducerMap:{[dLe]:pLe},sagas:[CLe],initialActions:[]},(fae=aLe,mae=sLe,{id:pQ,reducerMap:{panels:(e,{type:t,payload:n})=>{switch(t){case gQ({}).type:{var r=[...e],i=(n.panelConfig.show=!0,n.panelConfig);const a=null==i?void 0:i.parentPanelId;var i=null==i?void 0:i.dimmedStatus;return"dimAllParents"===i?[...r.map(e=>{return Object.assign(Object.assign({},e),{panelConfig:Object.assign(Object.assign({},e.panelConfig),{dimmed:((null==(e=e.panelConfig)?void 0:e.dimmed)||0)+1})})}),n]:a&&i?(r[i=e.findIndex(e=>e.panelId===a)]=Object.assign(Object.assign({},r[i]),{panelConfig:Object.assign(Object.assign({},null==(o=r[i])?void 0:o.panelConfig),{dimmed:((null==(i=null==(o=r[i])?void 0:o.panelConfig)?void 0:i.dimmed)||0)+1})}),[...r,n]):[...e,n]}case hQ("").type:{i=null==(o=e.find(e=>e.panelId===n))?void 0:o.panelConfig;const s=null==i?void 0:i.parentPanelId;var r=null==i?void 0:i.dimmedStatus,o=e.filter(e=>e.panelId!==n);return"dimAllParents"===r?o.map(e=>{return Object.assign(Object.assign({},e),{panelConfig:Object.assign(Object.assign({},e.panelConfig),{dimmed:((null==(e=e.panelConfig)?void 0:e.dimmed)||0)-1})})}):(s&&r&&-1!==(i=e.findIndex(e=>e.panelId===s))&&(o[i]=Object.assign(Object.assign({},o[i]),{panelConfig:Object.assign(Object.assign({},o[i].panelConfig),{dimmed:((null==(r=o[i].panelConfig)?void 0:r.dimmed)||0)-1})})),o)}case mQ("").type:i=e.find(e=>e.panelId===n),r=e.filter(e=>e.panelId!==n),i=Object.assign(Object.assign({},i),{panelConfig:Object.assign(Object.assign({},null==i?void 0:i.panelConfig),{show:!1})});return[...r,i];case xQ("").type:return e.map(e=>Object.assign(Object.assign({},e),{panelConfig:Object.assign(Object.assign({},null==e?void 0:e.panelConfig),{show:!1})}));case vQ({}).type:o=e.find(e=>e.panelId===n.id),r=e.filter(e=>e.panelId!==n.id),o=Object.assign(Object.assign({},o),{microFrontend:Object.assign(Object.assign({},null==o?void 0:o.microFrontend),{config:n.props})});return[...r,o]}return e||[]}},sagas:[function(p,g){const f={};return function*(){yield lP(gQ({}).type,function*(e){const{panelId:t,microFrontend:{name:n},panelConfig:r}=null==e?void 0:e.payload;let i=void 0;g&&(i=p[r.type]||(yield E(g,r.type)),yield tf(g,n));var o,a,s,l=i||p[r.type],c=(r.siblingPanelId?(c=yield T(e=>e.panels.find(e=>e.panelId===r.siblingPanelId)))&&OQ(c.panelConfig.ancestorCenterPanelId)&&({panelConfig:{marginTop:o=0,marginStart:u=0,zIndex:s=1e3},panelId:a}=c,a=(null==(a=null===document||void 0===document?void 0:document.getElementById(a))?void 0:a.clientWidth)||650,r.marginTop=0!==r.marginTop&&jQ(o)||r.marginTop,r.marginStart=0===r.marginTop?r.marginStart:jQ(u)+a,r.zIndex=r.zIndex||s,r.ancestorCenterPanelId=c.panelConfig.ancestorCenterPanelId):r.parentPanelId&&(o=yield T(e=>e.panels.find(e=>e.panelId===r.parentPanelId)))&&(OQ(o.panelId)||OQ(o.panelConfig.ancestorCenterPanelId))&&({panelConfig:{marginTop:u=0,marginStart:a=0,zIndex:s=1e3}}=o,r.marginTop=0!==r.marginTop&&jQ(u)||r.marginTop,r.marginStart=0===r.marginTop?r.marginStart:jQ(a),r.zIndex=r.zIndex||s,r.ancestorCenterPanelId=o.panelConfig.ancestorCenterPanelId||o.panelId),wQ(t)),u=tB(c);u.classList.add("aiware-el");let d;f[c]?d=f[c]:(d=We.createRoot(u),f[c]=d),d.render(nt.exports.jsx(ZO,{children:nt.exports.jsx(FO,{children:nt.exports.jsx(rg,Object.assign({store:Hh},{children:nt.exports.jsx(Tb,Object.assign({onClickAway:AQ},{children:nt.exports.jsx(IQ,{children:nt.exports.jsx(l,Object.assign({type:"SIMPLE_PANEL",panelId:t,"data-test":"panel-"+t},{children:nt.exports.jsx(pe,Object.assign({sx:{display:"flex",justifyContent:"center",my:20}},{children:nt.exports.jsx(L4,{size:50})}))}))})}))}))})})),yield k(fQ(e.payload))}),yield lP(fQ({}).type,function*(e){var{panelId:e,microFrontend:{name:t},panelConfig:n}=(null==e?void 0:e.payload)||{};let r=null;var t=(r=g?yield E(g,t):r)||p[t]||(()=>nt.exports.jsx("div",{children:"Component Not Found."})),n=p[n.type],i=wQ(e);tB(i).classList.add("aiware-el"),f[i].render(nt.exports.jsx(ZO,{children:nt.exports.jsx(FO,{children:nt.exports.jsx(rg,Object.assign({store:Hh},{children:nt.exports.jsx(Tb,Object.assign({onClickAway:AQ},{children:nt.exports.jsx(IQ,{children:nt.exports.jsx(n,Object.assign({type:"SIMPLE_PANEL",panelId:e,"data-test":"panel-"+e},{children:nt.exports.jsx(t,{})}))})}))}))})}))}),yield lP(hQ("").type,function*(t){var e=yield T(e=>e.panels.find(e=>{return(null==(e=null==e?void 0:e.panelConfig)?void 0:e.parentPanelId)===t.payload}));e&&0<Object.keys(e).length&&(yield k(hQ(e.panelId))),setTimeout(()=>{var e=wQ(t.payload);f[e]&&f[e].unmount(),delete f[e]})}),yield lP(yQ.type,function(e){var e=null==(e=null==e?void 0:e.payload)?void 0:e.url,t=document.createElement("a");t.target="_blank",t.href=e,t.click()})}}(fae,mae)],initialActions:[]}),{id:"data",reducerMap:{data:(e,{type:t,payload:n})=>{return t===_te({}).type?[...e.filter(e=>e.id!==n.id),n]:e||[]}},sagas:[],initialActions:[]},nee(),Mte(),{id:iFe,reducerMap:{permissions:uae},sagas:[gFe],initialActions:[]}]);let mFe=!1;const vFe=()=>{var e=ue(u$);return(null==(e=null==e?void 0:e.user)?void 0:e.token)&&!mFe&&(mFe=!0,setTimeout(()=>{Hh.addModules([xTe()])},0)),null};function yFe(){var e=ue(u$);return(null==(e=null==e?void 0:e.user)?void 0:e.token)&&mFe?nt.exports.jsx(GLe,{}):null}xae={updateToken(e){e?Hh.dispatch(VX({token:e})):console.error("[AiWARE JS]: Please provide a valid token!")},logout(e){"function"==typeof e?(e(),setTimeout(()=>{Hh.dispatch(Wte())},1e3)):Hh.dispatch(Wte())},reportAppActivity(e){hFe.checkIfCanCall(e)&&Hh.dispatch(Jte())}};bae=tB("aiWARE"),bae.classList.add("aiware-el"),Cae=We.createRoot(bae),"_auth"===window.name?Mee(window.location.hash,window.opener):Cae.render(nt.exports.jsx(ZO,{children:nt.exports.jsxs(FO,{children:[nt.exports.jsx(function(){return nt.exports.jsxs(nt.exports.Fragment,{children:[nt.exports.jsx(SLe,{}),nt.exports.jsx(rg,Object.assign({store:Hh},{children:nt.exports.jsx(vFe,{})}))]})},{}),nt.exports.jsx(function(){return nt.exports.jsx(rg,Object.assign({store:Hh},{children:nt.exports.jsx(sg,Object.assign({modules:[Zee()]},{children:nt.exports.jsx(ILe,{})}))}))},{}),nt.exports.jsx(function(){return nt.exports.jsx(nt.exports.Fragment,{children:nt.exports.jsx(rg,Object.assign({store:Hh},{children:nt.exports.jsx(qte,{children:nt.exports.jsx(yFe,{})})}))})},{}),nt.exports.jsx(()=>(ob(),null),{})]})})),yae=(e,t)=>{var n=XU(),{name:e,elementId:r,config:i}=e;return e&&r&&i||console.error("[aiwarejs-error]: `mountWidget` function should include all the following params: name, elementId, config"),Hh.dispatch(gLe({elementId:r,widgetName:e,widgetConfig:i,widgetId:n,onComplete:t})),n},Aae=e=>(Hh.dispatch(mLe(e)),!0),jae=(e,t)=>{const n=e.panelId||XU();var{microFrontend:e,panelConfig:r}=e;Hh.dispatch(gQ({microFrontend:e,panelId:n,panelConfig:r}));const i=[...(null==(e=null==r?void 0:r.header)?void 0:e.actions)||[],...(null==(e=null==r?void 0:r.footer)?void 0:e.actions)||[]].filter(e=>e.submit).map(e=>e.action);r={id:n,sagas:[function*(){yield lP(i.map(e=>e.type),function*(){var e=(yield T(e=>e.data.find(e=>e.id===n)))["data"];t&&t(e)})}]};return Hh.addModule(r),n},Oae=e=>(Hh.dispatch(hQ(e)),!0),kae=e=>(Hh.dispatch(mQ(e)),!0);function xFe(e,t){(n=e).applicationId||console.info("@aiware/js: applicationId is required. Go to developer app to find your application id."),n.baseUrl||console.info("@aiware/js: baseUrl is required. It defaults to the US Commercial environment which is https://api.us-1.veritone.com/v3/graphql");var n=e["authToken"],n=(t=>{if(null==t||!t.trim())return t;try{return window.btoa(window.atob(t))==t?window.atob(t):t}catch(e){return t}})(n||"");Hh.dispatch(r$(Object.assign(Object.assign({},e),{authToken:n,onComplete:t})))}Iae={on:function(e,t){bFe(e),vX.on.call(vX,e,t)},off:function(e){bFe(e),vX.off.call(vX,e)}};function bFe(e){if(!e||"string"!=typeof e)throw new mX("Please provide a valid event name!");if(!kQ[e])throw new mX("Unknown event: "+e)}function CFe(n,e,r,t){void 0===r&&(r=global),void 0===t&&(t={});var i=De.exports.useRef(),o=t.capture,a=t.passive,s=t.once;De.exports.useEffect(function(){i.current=e},[e]),De.exports.useEffect(function(){var e,t;if(r&&r.addEventListener)return r.addEventListener(n,e=function(e){return i.current(e)},t={capture:o,passive:a,once:s}),function(){r.removeEventListener(n,e,t)}},[n,r,o,a,s])}window&&(window.aiWare_initTesting=()=>{window.aiWare_store=Hh,window.aiWare_theme={darkTheme:DO,lightTheme:RO}},window.aiware={init:xFe,auth:xae,helpCenter:{openKnowledgeBasePanel:(Tae=new yX({actions:{setCustomKnowledgeBaseUrlAction:kLe,setCustomDocsUrlAction:ELe,updateSelectedTabAction:OLe}})).openKnowledgeBasePanel.bind(Tae),openDocsPanel:Tae.openDocsPanel.bind(Tae)},dataCenter:{openImporterPanel:(Pae=new fX).openImporterPanel.bind(Pae)},on:Iae.on,off:Iae.off,hidePanel:kae,unmountPanel:Oae,store:Hh,registry:aLe,registerComponent:vz,AvailableWidgets:d.AvailableWidgets,mountPanelAction:gQ,unmountPanelAction:hQ,hidePanelAction:mQ,updatePanelMicroFrontendPropsAction:vQ,setData:_te,mountWidget:yae,mountPanel:jae,mountPanelForResponse:e=>CQ(e,Hh),unmountWidget:Aae,version:"sdk_release_version",commit:"33ed0e624",releaseDate:"2023-07-11T01:05:01.419Z"}),window.global=window;var AFe={};function IFe(l,e){var c,n;return(e=void 0===e?"undefined"!=typeof global&&global.localStorage?global.localStorage:"undefined"!=typeof globalThis&&globalThis.localStorage?globalThis.localStorage:"undefined"!=typeof window&&window.localStorage?window.localStorage:"undefined"!=typeof localStorage?localStorage:null:e)?(n=e,c={get:function(e,t){e=n.getItem(e);return null==e?"function"==typeof t?t():t:JSON.parse(e)},set:function(e,t){n.setItem(e,JSON.stringify(t))}},function(e){return t=e,i=l,n=c.get,r=c.set,o=De.exports.useRef(null),e=De.exports.useState(function(){return n(i,t)}),a=e[0],s=e[1],CFe("storage",function(e){e.key===i&&(e=JSON.parse(e.newValue),a!==e)&&s(e)}),De.exports.useEffect(function(){return o.current=(r=s,e=t,AFe[n=i]||(AFe[n]={callbacks:[],value:e}),AFe[n].callbacks.push(r),{deregister:function(){var e=AFe[n].callbacks,t=e.indexOf(r);-1<t&&e.splice(t,1)},emit:function(t){AFe[n].value!==t&&(AFe[n].value=t,AFe[n].callbacks.forEach(function(e){r!==e&&e(t)}))}}),function(){o.current.deregister()};var n,r,e},[t,i]),e=De.exports.useCallback(function(e){var t="function"==typeof e?e(a):e;r(i,t),s(t),o.current.emit(e)},[a,r,i]),[a,e];var t,i,n,r,o,a,s}):De.exports.useState}function wFe(){}var jFe={classList:{add:wFe,remove:wFe}},SFe=function(e,t,n){void 0===n&&(n=global);var e=e?IFe(e,t):De.exports.useState,r=n.matchMedia?n.matchMedia("(prefers-color-scheme: dark)"):{},i="(prefers-color-scheme: dark)"===r.media,o=n.document&&n.document.body||jFe;return{usePersistedDarkModeState:e,getDefaultOnChange:function(t,n,r){return void 0===t&&(t=o),void 0===n&&(n="dark-mode"),void 0===r&&(r="light-mode"),function(e){t.classList.add(e?n:r),t.classList.remove(e?r:n)}},mediaQueryEventTarget:{addEventListener:function(e,t){return r.addListener&&r.addListener(t)},removeEventListener:function(e,t){return r.removeListener&&r.removeListener(t)}},getInitialValue:function(e){return i?r.matches:e}}};const OFe="theme-switcher",kFe="search-bar",EFe=fe()(e=>({appBarContainer:{display:"flex",padding:"8px",justifyContent:"space-between",alignItems:"center"},margin:{marginTop:54}})),TFe={};["en","es","fr"].forEach(e=>{TFe[e]={}});function NFe(e){return e&&e.Math==Math&&e}function MFe(e){try{return!!e()}catch(e){return!0}}function PFe(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}function DFe(e){return IVe(AVe(e),8,-1)}function RFe(e){if(null==e)throw OVe("Can't call method on "+e);return e}function LFe(e){return kVe(EVe(e))}function FFe(e){return"function"==typeof e}function VFe(e){return"object"==typeof e?null!==e:TVe(e)}function HFe(e,t){return arguments.length<2?(n=NVe[e],MVe(n)?n:void 0):NVe[e]&&NVe[e][t];var n}function UFe(e){try{return VVe(e)}catch(e){return"Object"}}function BFe(e){if(HVe(e))return e;throw BVe(UVe(e)+" is not a function")}function zFe(e,t){return null==(e=e[t])?void 0:zVe(e)}function qFe(t,n){try{JVe(GVe,t,{value:n,configurable:!0,writable:!0})}catch(e){GVe[t]=n}return n}function _Fe(e){return QVe(YVe(e))}function WFe(e){return"Symbol("+(void 0===e?"":e)+")_"+nHe(++eHe+tHe,36)}function ZFe(e){var t;return rHe(aHe,e)&&(iHe||"string"==typeof aHe[e])||(t="Symbol."+e,iHe&&rHe(sHe,e)?aHe[e]=sHe[e]:aHe[e]=(oHe&&lHe?lHe:cHe)(t)),aHe[e]}function GFe(e){return e=vHe(e,"string"),yHe(e)?e:e+""}function JFe(e){return bHe?xHe.createElement(e):{}}function KFe(e){if(THe(e))return e;throw MHe(NHe(e)+" is not an object")}function YFe(e){return ZHe[e]||(ZHe[e]=WHe(e))}function QFe(e,t,n,r){var i=(r=r||{}).enumerable,o=void 0!==r.name?r.name:t;if(lUe(n)&&uUe(n,o,r),r.global)i?e[t]=n:dUe(t,n);else{try{r.unsafe?e[t]&&(i=!0):delete e[t]}catch(e){}i?e[t]=n:cUe.f(e,t,{value:n,enumerable:!1,configurable:!r.nonConfigurable,writable:!r.nonWritable})}return e}function XFe(e){return(e=+e)!=e||0==e?0:fUe(e)}function $Fe(e,t){return(e=hUe(e))<0?mUe(e+t,0):vUe(e,t)}function eVe(e){return 0<e?xUe(yUe(e),9007199254740991):0}function tVe(e){return bUe(e.length)}function nVe(s){return function(e,t,n){var r,i=CUe(e),o=IUe(i),a=AUe(n,o);if(s&&t!=t){for(;a<o;)if((r=i[a++])!=r)return!0}else for(;a<o;a++)if((s||a in i)&&i[a]===t)return s||a||0;return!s&&-1}}function rVe(e,t){var n,r=jUe(e),i=0,o=[];for(n in r)!wUe(OUe,n)&&wUe(r,n)&&kUe(o,n);for(;t.length>i;)!wUe(r,n=t[i++])||~SUe(o,n)||kUe(o,n);return o}function iVe(e,t,n){for(var r=LUe(t),i=VUe.f,o=FUe.f,a=0;a<r.length;a++){var s=r[a];RUe(e,s)||n&&RUe(n,s)||i(e,s,o(t,s))}}function oVe(e,t){return(e=qUe[zUe(e)])==WUe||e!=_Ue&&(UUe(t)?HUe(t):!!t)}function aVe(e,t){var n,r,i,o=e.target,a=e.global,s=e.stat,l=a?ZUe:s?ZUe[o]||YUe(o,{}):(ZUe[o]||{}).prototype;if(l)for(n in t){if(r=t[n],i=e.dontCallGetSet?(i=GUe(l,n))&&i.value:l[n],!XUe(a?n:o+(s?".":"#")+n,e.forced)&&void 0!==i){if(typeof r==typeof i)continue;QUe(r,i)}(e.sham||i&&i.sham)&&JUe(r,"sham",!0),KUe(l,n,r,e)}}var sVe,lVe,cVe,uVe,dVe,pVe,gVe,fVe,hVe=Object.freeze({__proto__:null,APP_BAR:"app-bar",SEARCH_BAR:kFe,SampleAppBar:e=>{var t=EFe()["classes"];const[n,r]=De.exports.useState("en"),[,i]=De.exports.useState({});De.exports.useEffect(()=>{e.locale&&r(e.locale)},[e.locale]),De.exports.useEffect(()=>{i(TFe[n])},[n]);void 0===y&&(y=!1),a=(o=void 0===o?{}:o).element,s=o.classNameDark,l=o.classNameLight,c=o.onChange,void 0===(u=o.storageKey)&&(u="darkMode"),d=o.storageProvider,p=o.global,g=(o=De.exports.useMemo(function(){return SFe(u,d,p)},[u,d,p])).getDefaultOnChange,f=o.mediaQueryEventTarget,h=(o=(0,o.usePersistedDarkModeState)((0,o.getInitialValue)(y)))[0],m=o[1],v=De.exports.useMemo(function(){return c||g(a,s,l)},[c,a,s,l,g]),De.exports.useEffect(function(){v(h)},[v,h]),CFe("change",function(e){return m(e.matches)},f);var o,a,s,l,c,u,d,p,g,f,h,m,v,y={value:h,enable:De.exports.useCallback(function(){return m(!0)},[m]),disable:De.exports.useCallback(function(){return m(!1)},[m]),toggle:De.exports.useCallback(function(){return m(function(e){return!e})},[m])};return nt.exports.jsxs(nt.exports.Fragment,{children:[nt.exports.jsx(rg,Object.assign({store:e.store||Hh},{children:nt.exports.jsx(uI,Object.assign({"data-test":"app-bar"},{children:nt.exports.jsxs("div",Object.assign({className:t.appBarContainer},{children:[nt.exports.jsx(ae,Object.assign({variant:"subtitle2"},{children:"App Name"})),nt.exports.jsx(ae,Object.assign({"data-test":kFe},{children:nt.exports.jsx(qte,Object.assign({locale:n},{children:nt.exports.jsx(oe,{id:"os-sample-app-bar.hXq2hF",defaultMessage:"Search Bar",description:"Primary Search Bar Place Holder Text"})}))})),nt.exports.jsxs("div",{children:["☀",nt.exports.jsx(Zj,{"data-test":OFe,onChange:y.toggle,checked:y.value}),"☾"]})]}))}))})),nt.exports.jsx("div",{className:t.margin})]})},THEME_SWITCHER:OFe}),Lae={},a=B.exports,Fae=(Object.defineProperty(Lae,"__esModule",{value:!0}),Lae.default=void 0,a(__)),zae=nt.exports,Uae=(0,Fae.default)((0,zae.jsx)("path",{d:"M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5zM12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5zm0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3z"}),"Visibility"),mVe=Lae.default=Uae,qae={},_ae=B.exports,s=(Object.defineProperty(qae,"__esModule",{value:!0}),qae.default=void 0,_ae(__)),Kae=nt.exports,Yae=(0,s.default)((0,Kae.jsx)("path",{d:"M12 7c2.76 0 5 2.24 5 5 0 .65-.13 1.26-.36 1.83l2.92 2.92c1.51-1.26 2.7-2.89 3.43-4.75-1.73-4.39-6-7.5-11-7.5-1.4 0-2.74.25-3.98.7l2.16 2.16C10.74 7.13 11.35 7 12 7zM2 4.27l2.28 2.28.46.46C3.08 8.3 1.78 10.02 1 12c1.73 4.39 6 7.5 11 7.5 1.55 0 3.03-.3 4.38-.84l.42.42L19.73 22 21 20.73 3.27 3 2 4.27zM7.53 9.8l1.55 1.55c-.05.21-.08.43-.08.65 0 1.66 1.34 3 3 3 .22 0 .44-.03.65-.08l1.55 1.55c-.67.33-1.41.53-2.2.53-2.76 0-5-2.24-5-5 0-.79.2-1.53.53-2.2zm4.31-.78 3.15 3.15.02-.16c0-1.66-1.34-3-3-3l-.17.01z"}),"VisibilityOff"),vVe=qae.default=Yae,rse="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},nse=NFe("object"==typeof globalThis&&globalThis)||NFe("object"==typeof window&&window)||NFe("object"==typeof self&&self)||NFe("object"==typeof rse&&rse)||function(){return this}()||Function("return this")(),ose={},ase=!MFe(function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}),ise=!MFe(function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}),yVe=Function.prototype.call,Mae=ise?yVe.bind(yVe):function(){return yVe.apply(yVe,arguments)},sse={},cse={}.propertyIsEnumerable,xVe=Object.getOwnPropertyDescriptor,gse=xVe&&!cse.call({1:2},1),Loe=(sse.f=gse?function(e){e=xVe(this,e);return!!e&&e.enumerable}:cse,ise),hae=Function.prototype,G_=hae.bind,bVe=hae.call,CVe=Loe&&G_.bind(bVe,bVe),hse=Loe?function(e){return e&&CVe(e)}:function(e){return e&&function(){return bVe.apply(e,arguments)}},mse=hse,AVe=mse({}.toString),IVe=mse("".slice),vse=MFe,wVe=DFe,jVe=Object,SVe=hse("".split),fse=vse(function(){return!jVe("z").propertyIsEnumerable(0)})?function(e){return"String"==wVe(e)?SVe(e,""):jVe(e)}:jVe,OVe=TypeError,kVe=fse,EVe=RFe,TVe=FFe,NVe=nse,MVe=FFe,xse=hse({}.isPrototypeOf),Cse=HFe("navigator","userAgent")||"",Ase=Cse,jse=nse.process,l=nse.Deno,Ose=jse&&jse.versions||l&&l.version,Ese=Ose&&Ose.v8,Tse=UJe=!(UJe=Ese?0<(HJe=Ese.split("."))[0]&&HJe[0]<4?1:+(HJe[0]+HJe[1]):UJe)&&Ase&&(!(HJe=Ase.match(/Edge\/(\d+)/))||74<=HJe[1])&&(HJe=Ase.match(/Chrome\/(\d+)/))?+HJe[1]:UJe,PVe=Tse,Nse=MFe,Mse=!!Object.getOwnPropertySymbols&&!Nse(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&PVe&&PVe<41}),Pse=Mse&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,DVe=HFe,RVe=FFe,LVe=xse,FVe=Object,Dse=Pse?function(e){return"symbol"==typeof e}:function(e){var t=DVe("Symbol");return RVe(t)&&LVe(t.prototype,FVe(e))},VVe=String,HVe=FFe,UVe=UFe,BVe=TypeError,zVe=BFe,qVe=Mae,_Ve=FFe,WVe=VFe,ZVe=TypeError,bse={exports:{}},GVe=nse,JVe=Object.defineProperty,Lse=qFe,Fse="__core-js_shared__",zse=nse[Fse]||Lse(Fse,{}),KVe=zse,YVe=((bse.exports=function(e,t){return KVe[e]||(KVe[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.24.1",mode:"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.24.1/LICENSE",source:"https://github.com/zloirock/core-js"}),RFe),QVe=Object,XVe=_Fe,$Ve=hse({}.hasOwnProperty),Hse=Object.hasOwn||function(e,t){return $Ve(XVe(e),t)},Use=hse,eHe=0,tHe=Math.random(),nHe=Use(1..toString),Wse=nse,rHe=Hse,Zse=WFe,iHe=Mse,oHe=Pse,aHe=(0,bse.exports)("wks"),sHe=Wse.Symbol,lHe=sHe&&sHe.for,cHe=oHe?sHe:sHe&&sHe.withoutSetter||Zse,uHe=Mae,dHe=VFe,pHe=Dse,gHe=zFe,fHe=function(e,t){var n,r;if("string"===t&&_Ve(n=e.toString)&&!WVe(r=qVe(n,e)))return r;if(_Ve(n=e.valueOf)&&!WVe(r=qVe(n,e)))return r;if("string"!==t&&_Ve(n=e.toString)&&!WVe(r=qVe(n,e)))return r;throw ZVe("Can't convert object to primitive value")},hHe=TypeError,mHe=ZFe("toPrimitive"),vHe=function(e,t){if(!dHe(e)||pHe(e))return e;var n=gHe(e,mHe);if(n){if(n=uHe(n,e,t=void 0===t?"default":t),!dHe(n)||pHe(n))return n;throw hHe("Can't convert object to primitive value")}return fHe(e,t=void 0===t?"number":t)},yHe=Dse,Gse=VFe,xHe=nse.document,bHe=Gse(xHe)&&Gse(xHe.createElement),CHe=JFe,Jse=!ase&&!MFe(function(){return 7!=Object.defineProperty(CHe("div"),"a",{get:function(){return 7}}).a}),AHe=Mae,IHe=sse,wHe=PFe,jHe=LFe,SHe=GFe,OHe=Hse,kHe=Jse,EHe=Object.getOwnPropertyDescriptor,Yse=(ose.f=ase?EHe:function(e,t){if(e=jHe(e),t=SHe(t),kHe)try{return EHe(e,t)}catch(e){}if(OHe(e,t))return wHe(!AHe(IHe.f,e,t),e[t])},{}),Qse=ase&&MFe(function(){return 42!=Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype}),THe=VFe,NHe=String,MHe=TypeError,PHe=Jse,DHe=KFe,RHe=GFe,LHe=TypeError,FHe=Object.defineProperty,VHe=Object.getOwnPropertyDescriptor,HHe="enumerable",UHe="configurable",BHe="writable",$se=(Yse.f=ase?Qse?function(e,t,n){var r;return DHe(e),t=RHe(t),DHe(n),"function"==typeof e&&"prototype"===t&&"value"in n&&BHe in n&&!n[BHe]&&(r=VHe(e,t))&&r[BHe]&&(e[t]=n.value,n={configurable:(UHe in n?n:r)[UHe],enumerable:(HHe in n?n:r)[HHe],writable:!1}),FHe(e,t,n)}:FHe:function(e,t,n){if(DHe(e),t=RHe(t),DHe(n),PHe)try{return FHe(e,t,n)}catch(e){}if("get"in n||"set"in n)throw LHe("Accessors not supported");return"value"in n&&(e[t]=n.value),e},ase),zHe=Yse,qHe=PFe,ele=$se?function(e,t,n){return zHe.f(e,t,qHe(1,n))}:function(e,t,n){return e[t]=n,e},Rse={exports:{}},tle=ase,rle=Hse,ile=Function.prototype,sle=tle&&Object.getOwnPropertyDescriptor,nle=rle(ile,"name"),cle={EXISTS:nle,PROPER:nle&&"something"===function(){}.name,CONFIGURABLE:nle&&(!tle||sle(ile,"name").configurable)},ule=FFe,ple=zse,_He=hse(Function.toString),gle=(ule(ple.inspectSource)||(ple.inspectSource=function(e){return _He(e)}),ple.inspectSource),hle=FFe,fle=gle,mle=nse.WeakMap,vle=hle(mle)&&/native code/.test(fle(mle)),WHe=WFe,ZHe=(0,bse.exports)("keys"),yle={},xle=hse,GHe=VFe,JHe=ele,KHe=Hse,ble=zse,Cle=YFe,Ile=yle,YHe="Object already initialized",QHe=nse.TypeError,Sle=nse.WeakMap,wle=(gVe=vle||ble.state?(sVe=ble.state||(ble.state=new Sle),lVe=xle(sVe.get),cVe=xle(sVe.has),uVe=xle(sVe.set),dVe=function(e,t){if(cVe(sVe,e))throw new QHe(YHe);return t.facade=e,uVe(sVe,e,t),t},pVe=function(e){return lVe(sVe,e)||{}},function(e){return cVe(sVe,e)}):(Ile[fVe=Cle("state")]=!0,dVe=function(e,t){if(KHe(e,fVe))throw new QHe(YHe);return t.facade=e,JHe(e,fVe,t),t},pVe=function(e){return KHe(e,fVe)?e[fVe]:{}},function(e){return KHe(e,fVe)}),{set:dVe,get:pVe,has:gVe,enforce:function(e){return gVe(e)?pVe(e):dVe(e,{})},getterFor:function(t){return function(e){if(GHe(e)&&(e=pVe(e)).type===t)return e;throw QHe("Incompatible receiver, "+t+" required")}}}),Ole=MFe,XHe=FFe,$He=Hse,eUe=ase,tUe=cle.CONFIGURABLE,nUe=gle,rUe=wle.enforce,iUe=wle.get,oUe=Object.defineProperty,aUe=eUe&&!Ole(function(){return 8!==oUe(function(){},"length",{value:8}).length}),sUe=String(String).split("String"),Nle=Rse.exports=function(e,t,n){"Symbol("===String(t).slice(0,7)&&(t="["+String(t).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),n&&n.getter&&(t="get "+t),n&&n.setter&&(t="set "+t),(!$He(e,"name")||tUe&&e.name!==t)&&(eUe?oUe(e,"name",{value:t,configurable:!0}):e.name=t),aUe&&n&&$He(n,"arity")&&e.length!==n.arity&&oUe(e,"length",{value:n.arity});try{n&&$He(n,"constructor")&&n.constructor?eUe&&oUe(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}n=rUe(e);return $He(n,"source")||(n.source=sUe.join("string"==typeof t?t:"")),e},lUe=(Function.prototype.toString=Nle(function(){return XHe(this)&&iUe(this).source||nUe(this)},"toString"),FFe),cUe=Yse,uUe=Rse.exports,dUe=qFe,Tle={},pUe=Math.ceil,gUe=Math.floor,fUe=Math.trunc||function(e){e=+e;return(0<e?gUe:pUe)(e)},hUe=XFe,mUe=Math.max,vUe=Math.min,yUe=XFe,xUe=Math.min,bUe=eVe,CUe=LFe,AUe=$Fe,IUe=tVe,Mle={includes:nVe(!0),indexOf:nVe(!1)},Vle=hse,wUe=Hse,jUe=LFe,SUe=Mle.indexOf,OUe=yle,kUe=Vle([].push),Ple=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],EUe=rVe,TUe=Ple.concat("length","prototype"),Ble=(Tle.f=Object.getOwnPropertyNames||function(e){return EUe(e,TUe)},{}),zle=(Ble.f=Object.getOwnPropertySymbols,HFe),NUe=Tle,MUe=Ble,PUe=KFe,DUe=hse([].concat),Wle=zle("Reflect","ownKeys")||function(e){var t=NUe.f(PUe(e)),n=MUe.f;return n?DUe(t,n(e)):t},RUe=Hse,LUe=Wle,FUe=ose,VUe=Yse,HUe=MFe,UUe=FFe,BUe=/#|\.prototype\./,zUe=oVe.normalize=function(e){return String(e).replace(BUe,".").toLowerCase()},qUe=oVe.data={},_Ue=oVe.NATIVE="N",WUe=oVe.POLYFILL="P",_le=oVe,ZUe=nse,GUe=ose.f,JUe=ele,KUe=QFe,YUe=qFe,QUe=iVe,XUe=_le,$Ue=rVe,eBe=Ple,Jle=Object.keys||function(e){return $Ue(e,eBe)},tBe=ase,Yle=hse,nBe=Mae,dce=MFe,rBe=Jle,iBe=Ble,oBe=sse,aBe=_Fe,sBe=fse,lBe=Object.assign,cBe=Object.defineProperty,uBe=Yle([].concat),Ale=!lBe||dce(function(){var e,t,n,r;return tBe&&1!==lBe({b:1},lBe(cBe({},"a",{enumerable:!0,get:function(){cBe(this,"b",{value:3,enumerable:!1})}}),{b:2})).b||(t={},r="abcdefghijklmnopqrst",(e={})[n=Symbol()]=7,r.split("").forEach(function(e){t[e]=e}),7!=lBe({},e)[n])||rBe(lBe({},t)).join("")!=r})?function(e,t){for(var n=aBe(e),r=arguments.length,i=1,o=iBe.f,a=oBe.f;i<r;)for(var s,l=sBe(arguments[i++]),c=o?uBe(rBe(l),o(l)):rBe(l),u=c.length,d=0;d<u;)s=c[d++],tBe&&!nBe(a,l,s)||(n[s]=l[s]);return n}:lBe,Xle=(aVe({target:"Object",stat:!0,arity:2,forced:Object.assign!==Ale},{assign:Ale}),{}),dBe=Yse,pBe=KFe,gBe=LFe,fBe=Jle;Xle.f=ase&&!Qse?Object.defineProperties:function(e,t){pBe(e);for(var n,r=gBe(t),i=fBe(t),o=i.length,a=0;a<o;)dBe.f(e,n=i[a++],r[n]);return e};function hBe(){}function mBe(e){e.write(OBe("")),e.close();var t=e.parentWindow.Object;return e=null,t}function vBe(e){TBe[EBe][e]=!0}var yBe,$le=HFe("document","documentElement"),xBe=KFe,bBe=Xle,CBe=Ple,gce=yle,ABe=$le,IBe=JFe,wBe="prototype",jBe="script",SBe=YFe("IE_PROTO"),OBe=function(e){return"<"+jBe+">"+e+"</"+jBe+">"},kBe=function(){try{yBe=new ActiveXObject("htmlfile")}catch(e){}kBe="undefined"==typeof document||document.domain&&yBe?mBe(yBe):(e=IBe("iframe"),t="java"+jBe+":",e.style.display="none",ABe.appendChild(e),e.src=String(t),(t=e.contentWindow.document).open(),t.write(OBe("document.F=Object")),t.close(),t.F);for(var e,t,n=CBe.length;n--;)delete kBe[wBe][CBe[n]];return kBe()},tce=(gce[SBe]=!0,Object.create||function(e,t){var n;return null!==e?(hBe[wBe]=xBe(e),n=new hBe,hBe[wBe]=null,n[SBe]=e):n=kBe(),void 0===t?n:bBe.f(n,t)}),rce=ZFe,pce=tce,ece=Yse.f,EBe=rce("unscopables"),TBe=Array.prototype,hce=(null==TBe[EBe]&&ece(TBe,EBe,{configurable:!0,value:pce(null)}),aVe),NBe=Mle.includes,mce=vBe,MBe=(hce({target:"Array",proto:!0,forced:MFe(function(){return!Array(1).includes()})},{includes:function(e){return NBe(this,e,1<arguments.length?arguments[1]:void 0)}}),mce("includes"),VFe),PBe=DFe,DBe=ZFe("match"),RBe=function(e){var t;return MBe(e)&&(void 0!==(t=e[DBe])?!!t:"RegExp"==PBe(e))},LBe=TypeError,fce={};fce[ZFe("toStringTag")]="z";function FBe(e){if("Symbol"===JBe(e))throw TypeError("Cannot convert a Symbol value to a string");return KBe(e)}function VBe(){var e=tze(this),t="";return e.hasIndices&&(t+="d"),e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.unicodeSets&&(t+="v"),e.sticky&&(t+="y"),t}function HBe(n,e,t,r){var a,i=Sze(n),s=!jze(function(){var e={};return e[i]=function(){return 7},7!=""[n](e)}),o=s&&!jze(function(){var e=!1,t=/a/;return"split"===n&&((t={constructor:{}}).constructor[kze]=function(){return t},t.flags="",t[i]=/./[i]),t.exec=function(){return e=!0,null},t[i](""),!e});s&&o&&!t||(a=Aze(/./[i]),o=e(i,""[n],function(e,t,n,r,i){var e=Aze(e),o=t.exec;return o===wze||o===Eze.exec?s&&!i?{done:!0,value:a(t,n,r)}:{done:!0,value:e(n,t,r)}:{done:!1}}),Ize(String.prototype,n,o[0]),Ize(Eze,i,o[1])),r&&Oze(Eze[i],"sham",!0)}function UBe(i){return function(e,t){var n,e=Nze(Mze(e)),t=Tze(t),r=e.length;return t<0||r<=t?i?"":void 0:(n=Dze(e,t))<55296||56319<n||t+1===r||(r=Dze(e,t+1))<56320||57343<r?i?Pze(e,t):n:i?Rze(e,t,t+2):r-56320+(n-55296<<10)+65536}}function BBe(e,t,n){return t+(n?Lze(e,t).length:1)}function zBe(e,t){var n=e.exec;if(Zze(n))return null!==(n=_ze(n,e,t))&&Wze(n),n;if("RegExp"===Gze(e))return _ze(Jze,e,t);throw Kze("RegExp#exec called on incompatible receiver")}var yce="[object z]"===String(fce),qBe=FFe,_Be=DFe,WBe=ZFe("toStringTag"),ZBe=Object,GBe="Arguments"==_Be(function(){return arguments}()),vce=yce?_Be:function(e){var t;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(t=function(e,t){try{return e[t]}catch(e){}}(e=ZBe(e),WBe))?t:GBe?_Be(e):"Object"==(t=_Be(e))&&qBe(e.callee)?"Arguments":t},JBe=vce,KBe=String,YBe=ZFe("match"),bce=aVe,QBe=function(e){if(RBe(e))throw LBe("The method doesn't accept regular expressions");return e},XBe=RFe,$Be=FBe,xce=function(t){var n=/./;try{"/./"[t](n)}catch(e){try{return n[YBe]=!1,"/./"[t](n)}catch(e){}}return!1},eze=hse("".indexOf),tze=(bce({target:"String",proto:!0,forced:!xce("includes")},{includes:function(e){return!!~eze($Be(XBe(this)),$Be(QBe(e)),1<arguments.length?arguments[1]:void 0)}}),KFe),Ice=MFe,nze=nse.RegExp,Sce=Ice(function(){var e=nze("a","y");return e.lastIndex=2,null!=e.exec("abcd")}),Ace=Sce||Ice(function(){return!nze("a","y").sticky}),Cce={BROKEN_CARET:Sce||Ice(function(){var e=nze("^r","gy");return e.lastIndex=2,null!=e.exec("str")}),MISSED_STICKY:Ace,UNSUPPORTED_Y:Sce},Yce=MFe,rze=nse.RegExp,wce=Yce(function(){var e=rze(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)}),Pce=MFe,ize=nse.RegExp,kce=Pce(function(){var e=ize("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")}),oze=Mae,Tce=hse,aze=FBe,sze=VBe,Mce=Cce,Fce=bse.exports,lze=tce,cze=wle.get,Ece=wce,Nce=kce,uze=Fce("native-string-replace",String.prototype.replace),dze=RegExp.prototype.exec,pze=dze,gze=Tce("".charAt),fze=Tce("".indexOf),hze=Tce("".replace),mze=Tce("".slice),vze=(Wce=/b*/g,oze(dze,Rce=/a/,"a"),oze(dze,Wce,"a"),0!==Rce.lastIndex||0!==Wce.lastIndex),yze=Mce.BROKEN_CARET,xze=void 0!==/()??/.exec("")[1],Vce=pze=vze||xze||yze||Ece||Nce?function(e){var t,n,r,i,o,a,s=this,l=cze(s),e=aze(e),c=l.raw;if(c)return c.lastIndex=s.lastIndex,d=oze(pze,c,e),s.lastIndex=c.lastIndex,d;var u=l.groups,c=yze&&s.sticky,d=oze(sze,s),l=s.source,p=0,g=e;if(c&&(d=hze(d,"y",""),-1===fze(d,"g")&&(d+="g"),g=mze(e,s.lastIndex),0<s.lastIndex&&(!s.multiline||s.multiline&&"\n"!==gze(e,s.lastIndex-1))&&(l="(?: "+l+")",g=" "+g,p++),t=new RegExp("^(?:"+l+")",d)),xze&&(t=new RegExp("^"+l+"$(?!\\s)",d)),vze&&(n=s.lastIndex),r=oze(dze,c?t:s,g),c?r?(r.input=mze(r.input,p),r[0]=mze(r[0],p),r.index=s.lastIndex,s.lastIndex+=r[0].length):s.lastIndex=0:vze&&r&&(s.lastIndex=s.global?r.index+r[0].length:n),xze&&r&&1<r.length&&oze(uze,r[0],t,function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(r[i]=void 0)}),r&&u)for(r.groups=o=lze(null),i=0;i<u.length;i++)o[(a=u[i])[0]]=r[a[1]];return r}:pze,Hce=(aVe({target:"RegExp",proto:!0,forced:/./.exec!==Vce},{exec:Vce}),ise),_ce=Function.prototype,bze=_ce.apply,Cze=_ce.call,Zce="object"==typeof Reflect&&Reflect.apply||(Hce?Cze.bind(bze):function(){return Cze.apply(bze,arguments)}),Aze=hse,Ize=QFe,wze=Vce,jze=MFe,Sze=ZFe,Oze=ele,kze=Sze("species"),Eze=RegExp.prototype,Qce=hse,Tze=XFe,Nze=FBe,Mze=RFe,Pze=Qce("".charAt),Dze=Qce("".charCodeAt),Rze=Qce("".slice),Lze={codeAt:UBe(!1),charAt:UBe(!0)}.charAt,Dce=hse,Fze=_Fe,Vze=Math.floor,Hze=Dce("".charAt),Uze=Dce("".replace),Bze=Dce("".slice),zze=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,qze=/\$([$&'`]|\d{1,2})/g,_ze=Mae,Wze=KFe,Zze=FFe,Gze=DFe,Jze=Vce,Kze=TypeError,Yze=Zce,Qze=Mae,Bce=hse,Lce=HBe,zce=MFe,Xze=KFe,$ze=FFe,eqe=XFe,tqe=eVe,nqe=FBe,rqe=RFe,iqe=BBe,oqe=zFe,aqe=function(o,a,s,l,c,e){var u=s+o.length,d=l.length,t=qze;return void 0!==c&&(c=Fze(c),t=zze),Uze(e,t,function(e,t){var n;switch(Hze(t,0)){case"$":return"$";case"&":return o;case"`":return Bze(a,0,s);case"'":return Bze(a,u);case"<":n=c[Bze(t,1,-1)];break;default:var r,i=+t;if(0==i)return e;if(d<i)return 0!==(r=Vze(i/10))&&r<=d?void 0===l[r-1]?Hze(t,1):l[r-1]+Hze(t,1):e;n=l[i-1]}return void 0===n?"":n})},sqe=zBe,lqe=ZFe("replace"),cqe=Math.max,uqe=Math.min,dqe=Bce([].concat),pqe=Bce([].push),gqe=Bce("".indexOf),fqe=Bce("".slice),qce="$0"==="a".replace(/./,"$0"),hqe=!!/./[lqe]&&""===/./[lqe]("a","$0"),mqe=(Lce("replace",function(e,x,b){var C=hqe?"$":"$0";return[function(e,t){var n=rqe(this),r=null==e?void 0:oqe(e,lqe);return r?Qze(r,e,n,t):Qze(x,nqe(n),e,t)},function(e,t){var n=Xze(this),r=nqe(e);if("string"==typeof t&&-1===gqe(t,C)&&-1===gqe(t,"$<")){e=b(x,n,r,t);if(e.done)return e.value}for(var i,o=$ze(t),a=(o||(t=nqe(t)),n.global),s=(a&&(i=n.unicode,n.lastIndex=0),[]);null!==(p=sqe(n,r))&&(pqe(s,p),a);)""===nqe(p[0])&&(n.lastIndex=iqe(r,tqe(n.lastIndex),i));for(var l,c="",u=0,d=0;d<s.length;d++){for(var p,g=nqe((p=s[d])[0]),f=cqe(uqe(eqe(p.index),r.length),0),h=[],m=1;m<p.length;m++)pqe(h,void 0===(l=p[m])?l:String(l));var v=p.groups,y=o?(y=dqe([g],h,f,r),void 0!==v&&pqe(y,v),nqe(Yze(t,void 0,y))):aqe(g,r,f,h,v,t);u<=f&&(c+=fqe(r,u,f)+y,u=f+g.length)}return c+fqe(r,u)}]},!!zce(function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")})||!qce||hqe),Mae),vqe=Hse,yqe=xse,xqe=VBe,bqe=RegExp.prototype,Gce=cle.PROPER,Jce=QFe,Cqe=KFe,Aqe=FBe,Uce=MFe,Iqe=function(e){var t=e.flags;return void 0!==t||"flags"in bqe||vqe(e,"flags")||!yqe(bqe,e)?t:mqe(xqe,e)},yq="toString",wqe=RegExp.prototype[yq],QH=Uce(function(){return"/a/b"!=wqe.call({source:"a",flags:"b"})}),o=Gce&&wqe.name!=yq;(QH||o)&&Jce(RegExp.prototype,yq,function(){var e=Cqe(this);return"/"+Aqe(e.source)+"/"+Aqe(Iqe(e))},{unsafe:!0});const jqe={resetPasswordTitle:nt.exports.jsx(oe,{id:"os-auth.reset-password.title",defaultMessage:"New password required",description:"Title of the reset password widget"}),resetPasswordSubHeader:nt.exports.jsx(oe,{id:"os-auth.reset-password.subHeader",defaultMessage:"A strong password contains a mix of numbers, letters and symbols. It is hard to guess, does not resemble a real word and is only used for this account.",description:"Description of the reset password widget"}),passwordRequirements:nt.exports.jsx(oe,{id:"os-auth.reset-password.passwordRequirements",defaultMessage:"Password requirements",description:"Heading of password requirements"}),resetPasswordSubmitButton:nt.exports.jsx(oe,{id:"os-auth.reset-password.submitButton",defaultMessage:"Change Password",description:"Text of submit button for reset password"}),lengthCheck:nt.exports.jsx(oe,{id:"os-auth.reset-password.lengthCheck",defaultMessage:"8 Character minimum",description:"The error message for the lengthCheck."}),pastPasswordCheck:nt.exports.jsx(oe,{id:"os-auth.reset-password.pastPasswordCheck",defaultMessage:"Not identical to last 10 passwords",description:"The error message for the pastPasswordCheck."}),userNameCheck:nt.exports.jsx(oe,{id:"os-auth.reset-password.userNameCheck",defaultMessage:"Not the same as account email",description:"The error message for the userNameCheck."}),dictionaryCheck:nt.exports.jsx(oe,{id:"os-auth.reset-password.dictionaryCheck",defaultMessage:"No dictionary passwords",description:"The error message for the dictionaryCheck."}),passwordsNotMatching:nt.exports.jsx(oe,{id:"os-auth.reset-password.passwordsNotMatching",defaultMessage:"Passwords not matching",description:"The error message for the passwords not matching."}),invalidTokenOrUsername:nt.exports.jsx(oe,{id:"os-auth.reset-password.invalidTokenOrUsername",defaultMessage:"Error! Missing token or username.",description:"The error message for the missing token or username."}),passwordComplexityCheckSymbols:nt.exports.jsx(oe,{id:"os-auth.reset-password.passwordComplexityCheckSymbols",defaultMessage:"Requires 1 lowercase, 1 uppercase, 1 number, and 1 symbol.",description:"The error message for the check symbols error."}),passwordComplexityCheckDays:nt.exports.jsx(oe,{id:"os-auth.reset-password.passwordComplexityCheckDays",defaultMessage:"Cannot be changed twice within 10 days.",description:"The error message for the days error."})},Sqe=(e=!1)=>{var t=window.location.host;if(t.includes("local"))return e?"https://api.stage.us-1.veritone.com/v3/graphql":"https://api.stage.us-1.veritone.com";var t=t.split("."),n=t.findIndex(e=>"dev"===e||"stage"===e);let r="";return r=-1!==n?"veritone"!==t[n+1]?t[n]+"."+t[n+1]:t[n]+".us-1":(n=t.findIndex(e=>"veritone"===e),"aiware2"!==t[n-1]?t[n-1]:"us-1"),e?`https://api.${r}.veritone.com/v3/graphql`:`https://api.${r}.veritone.com`};const Oqe=({text:e,subText:t,type:n})=>nt.exports.jsxs(pe,Object.assign({sx:{marginBottom:"30px",textAlign:"center"}},{children:[nt.exports.jsx(ae,Object.assign({sx:{fontFamily:"Nunito",fontSize:"22px",lineHeight:"18px",letterSpacing:"-1.30385e-09px",color:"#2A323C"},"data-testid":"os-auth-header-text-"+n},{children:e})),t&&nt.exports.jsx(ae,Object.assign({sx:{fontFamily:"Nunito",fontSize:"16px",lineHeight:"22px",textAlign:"center",letterSpacing:"-1.30385e-09px",color:"#5C6269",marginTop:"10px",width:"368px"},"data-testid":"os-auth-subheader-text-"+n},{children:t}))]})),kqe=fe()(e=>({title:{textTransform:"initial",fontSize:22,marginBottom:e.spacing(4)},subHeader:{color:"#9CA8B4"},h6:{color:"#27292B"},requirements:{listStyle:"disc",padding:0,marginLeft:e.spacing(5),"& li":{marginBottom:e.spacing(1),color:"#27292B",fontSize:14,fontWeight:400,"&.requirementError":{color:"#D50000"}}},submitButton:{height:55,background:"#214167",fontSize:18,width:"100%",maxWidth:380,textTransform:"uppercase"},text:{fontFamily:"Nunito",fontWeight:400,fontSize:"22px",lineHeight:"18px",letterSpacing:"-1.30385e-09px",color:"#2A323C"},subText:{fontFamily:"'Nunito Sans'",fontWeight:400,fontSize:"16px",lineHeight:"22px",textAlign:"center",letterSpacing:"-1.30385e-09px",color:"#5C6269"}}));var Eqe,Oq={},r=!MFe(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),Tqe=Hse,Nqe=FFe,Mqe=_Fe,wg=r,Pqe=YFe("IE_PROTO"),Dqe=Object,Rqe=Dqe.prototype,Ag=wg?Dqe.getPrototypeOf:function(e){var t,e=Mqe(e);return Tqe(e,Pqe)?e[Pqe]:(t=e.constructor,Nqe(t)&&e instanceof t?t.prototype:e instanceof Dqe?Rqe:null)},mq=MFe,Kce=FFe,ny=Ag,Ez=QFe,Lqe=ZFe("iterator"),m=!1;[].keys&&("next"in($v=[].keys())?(KMe=ny(ny($v)))!==Object.prototype&&(Eqe=KMe):m=!0);function Fqe(e,t,n){(e=e&&!n?e.prototype:e)&&!zqe(e,qqe)&&Bqe(e,qqe,{configurable:!0,value:t})}function Vqe(){return this}function Hqe(e,t,n,r){return t+=" Iterator",e.prototype=Wqe(_qe,{next:Zqe(+!r,n)}),Gqe(e,t,!1),Jqe[t]=Vqe,e}function Uqe(){return this}Kce((Eqe=null==Eqe||mq(function(){var e={};return Eqe[Lqe].call(e)!==e})?{}:Eqe)[Lqe])||Ez(Eqe,Lqe,function(){return this});var i={IteratorPrototype:Eqe,BUGGY_SAFARI_ITERATORS:m},Bqe=Yse.f,zqe=Hse,qqe=ZFe("toStringTag"),_qe=i.IteratorPrototype,Wqe=tce,Zqe=PFe,Gqe=Fqe,Jqe=Oq,Kqe=FFe,Yqe=String,Qqe=TypeError,Xqe=hse,$qe=KFe,e_e=function(e){if("object"==typeof e||Kqe(e))return e;throw Qqe("Can't set "+Yqe(e)+" as a prototype")},t=Object.setPrototypeOf||("__proto__"in{}?function(){var n,r=!1,e={};try{(n=Xqe(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(e,[]),r=e instanceof Array}catch(e){}return function(e,t){return $qe(e),e_e(t),r?n(e,t):e.__proto__=t,e}}():void 0),t_e=aVe,n_e=Mae,r_e=FFe,i_e=Hqe,o_e=Ag,a_e=t,s_e=Fqe,l_e=ele,c_e=QFe,oz=ZFe,u_e=Oq,d_e=cle.PROPER,p_e=cle.CONFIGURABLE,g_e=i.IteratorPrototype,f_e=i.BUGGY_SAFARI_ITERATORS,h_e=oz("iterator"),m_e="values",v_e=LFe,bq=vBe,ty=Oq,ry=wle,yz=Yse.f,ey=function(e,t,n,r,i,o,a){i_e(n,t,r);function s(e){if(e===i&&g)return g;if(!f_e&&e in d)return d[e];switch(e){case"keys":case m_e:case"entries":return function(){return new n(this,e)}}return function(){return new n(this)}}var l,c,r=t+" Iterator",u=!1,d=e.prototype,p=d[h_e]||d["@@iterator"]||i&&d[i],g=!f_e&&p||s(i),f="Array"==t&&d.entries||p;if(f&&(f=o_e(f.call(new e)))!==Object.prototype&&f.next&&(o_e(f)!==g_e&&(a_e?a_e(f,g_e):r_e(f[h_e])||c_e(f,h_e,Uqe)),s_e(f,r,!0)),d_e&&i==m_e&&p&&p.name!==m_e&&(p_e?l_e(d,"name",m_e):(u=!0,g=function(){return n_e(p,this)})),i)if(l={values:s(m_e),keys:o?g:s("keys"),entries:s("entries")},a)for(c in l)!f_e&&!u&&c in d||c_e(d,c,l[c]);else t_e({target:t,proto:!0,forced:f_e||u},l);return d[h_e]!==g&&c_e(d,h_e,g,{name:i}),u_e[t]=g,l},iy=ase,y_e="Array Iterator",x_e=ry.set,b_e=ry.getterFor(y_e),J_=ey(Array,"Array",function(e,t){x_e(this,{type:y_e,target:v_e(e),index:0,kind:t})},function(){var e=b_e(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?{value:e.target=void 0,done:!0}:"keys"==n?{value:r,done:!1}:"values"==n?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}},"values"),wz=ty.Arguments=ty.Array;if(bq("keys"),bq("values"),bq("entries"),iy&&"values"!==wz.name)try{yz(wz,"name",{value:"values"})}catch(e){}function C_e(t,e){if(t){if(t[O_e]!==E_e)try{S_e(t,O_e,E_e)}catch(e){t[O_e]=E_e}if(t[k_e]||S_e(t,k_e,e),w_e[e])for(var n in j_e)if(t[n]!==j_e[n])try{S_e(t,n,j_e[n])}catch(e){t[n]=j_e[n]}}}var A_e,XH=JFe("span").classList,toe=XH&&XH.constructor&&XH.constructor.prototype,WH=toe===Object.prototype?void 0:toe,I_e=nse,w_e={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},aoe=WH,j_e=J_,S_e=ele,ioe=ZFe,O_e=ioe("iterator"),k_e=ioe("toStringTag"),E_e=j_e.values;for(A_e in w_e)C_e(I_e[A_e]&&I_e[A_e].prototype,A_e);C_e(aoe,"DOMTokenList");var T_e,N_e,M_e,P_e,D_e,R_e,L_e,F_e,poe=aVe,Doe=hse,V_e=Hse,boe=FFe,H_e=xse,U_e=FBe,foe=Yse.f,hoe=iVe,B_e=nse.Symbol,z_e=B_e&&B_e.prototype;function q_e(e,a,s,l){return new(s=s||Promise)(function(n,t){function r(e){try{o(l.next(e))}catch(e){t(e)}}function i(e){try{o(l.throw(e))}catch(e){t(e)}}function o(e){var t;e.done?n(e.value):((t=e.value)instanceof s?t:new s(function(e){e(t)})).then(r,i)}o((l=l.apply(e,a||[])).next())})}!ase||!boe(B_e)||"description"in z_e&&void 0===B_e().description||(T_e={},hoe(doe=function(){var e=arguments.length<1||void 0===arguments[0]?void 0:U_e(arguments[0]),t=H_e(z_e,this)?new B_e(e):void 0===e?B_e():B_e(e);return""===e&&(T_e[t]=!0),t},B_e),(doe.prototype=z_e).constructor=doe,N_e="Symbol(test)"==String(B_e("test")),M_e=Doe(z_e.toString),P_e=Doe(z_e.valueOf),D_e=/^Symbol\((.*)\)[^)]+$/,R_e=Doe("".replace),L_e=Doe("".slice),foe(z_e,"description",{configurable:!0,get:function(){var e=P_e(this),t=M_e(e);return V_e(T_e,e)?"":""===(e=N_e?L_e(t,7,-1):R_e(t,D_e,"$1"))?void 0:e}}),poe({global:!0,constructor:!0,forced:!0},{Symbol:doe}));const __e=({onClick:e,text:t,type:n,loading:r})=>nt.exports.jsx(G6e,Object.assign({color:"primary",variant:"contained",onClick:e,loading:r,sx:{textTransform:"none",fontSize:"18px",lineHeight:"24px",fontFamily:"Nunito",fontWeight:600,width:"368px",height:"56px",backgroundColor:"#2C78D4"},"data-testid":`os-auth--${n}-btn`},{children:t}));function W_e({onBtnClick:e,requiresRestriction:t,disableForm:n=!1,columnView:r=!1,isNewPage:i=!1}){var o=kqe()["classes"],a=ue(C$);const s=ue(v$);var l=ue(b$);const[c,u]=De.exports.useState(""),[d,p]=De.exports.useState(""),[g,f]=De.exports.useState({[F_e.lengthCheck]:null,[F_e.userNameCheck]:null,[F_e.dictionaryCheck]:null,[F_e.pastPasswordCheck]:null,[F_e.passwordComplexityCheck]:null,[F_e.passwordChangeFrequencyCheck]:null}),[h,m]=De.exports.useState(null);a="loading"===a&&l===IX.ResetPassword;const v=ge.exports.isEqual(c,d);l=Object.values(g).includes(!1);var y=()=>{ge.exports.isEmpty(c)||ge.exports.isEmpty(d)||!v||e(c)},x=(De.exports.useEffect(()=>{try{if(s){var e=JSON.parse(s);const t=e["description"],r=function(e,t){var n={};for(i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var r=0,i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]]);return n}(e,["description"]);Object.keys(r).forEach(e=>{var t,n;t=e,n=r[e],f(e=>Object.assign(Object.assign({},e),{[t]:n}))}),m(t)}else m(null)}catch(e){m(s)}finally{p("")}},[s]),[{label:jqe.lengthCheck,error:g[F_e.lengthCheck]},{label:jqe.pastPasswordCheck,error:g[F_e.pastPasswordCheck]},{label:jqe.userNameCheck,error:g[F_e.userNameCheck]},{label:jqe.dictionaryCheck,error:g[F_e.dictionaryCheck]},...g[F_e.passwordComplexityCheck]?[{label:jqe.passwordComplexityCheckSymbols,error:!0},{label:jqe.passwordComplexityCheckDays,error:!0}]:[]]),b={fontFamily:"Nunito",lineHeight:"22px"};return nt.exports.jsx("form",Object.assign({onSubmit:e=>{e.preventDefault()}},{children:nt.exports.jsxs(V,Object.assign({container:!0,spacing:i?3:6,mt:i?0:3},{children:[nt.exports.jsxs(V,Object.assign({item:!0,sm:r?12:7,xs:12},{children:[nt.exports.jsx(M6,Object.assign({fullWidth:!0,sx:{mb:6}},{children:nt.exports.jsx(PO,{"data-testid":"rp-password-field",required:!0,type:"password",id:"password",label:"Password",variant:"outlined",autoFocus:!0,value:c,onChange:e=>u(e.target.value),error:l,autoComplete:"off",disabled:n,InputLabelProps:{style:b}})})),nt.exports.jsx(M6,Object.assign({sx:{fontFamily:"Nunito"},fullWidth:!0},{children:nt.exports.jsx(PO,{"data-testid":"rp-password-confirm-field",required:!0,type:"password",id:"confirm-password",label:"Confirm Password",variant:"outlined",value:d,onChange:e=>p(e.target.value),autoComplete:"off",error:!v&&!!d,helperText:!v&&d&&jqe.passwordsNotMatching,disabled:n,InputLabelProps:{style:b}})})),h&&nt.exports.jsx(eI,Object.assign({sx:{mt:4},variant:"outlined",severity:"error"},{children:h}))]})),t&&nt.exports.jsxs(V,Object.assign({item:!0,sm:r?12:5,xs:12},{children:[nt.exports.jsx(ae,Object.assign({variant:"h6",className:o.h6},{children:jqe.passwordRequirements})),nt.exports.jsx("ul",Object.assign({className:o.requirements,"data-testid":"rp-requirements-list"},{children:x.map((e,t)=>nt.exports.jsx("li",Object.assign({className:Jhe({requirementError:!0===e.error})},{children:e.label}),"pwd-requirement-"+t))}))]})),nt.exports.jsx(V,Object.assign({item:!0,xs:12,justifyContent:"center",display:"flex"},{children:i?nt.exports.jsx(__e,{onClick:y,loading:a,text:jqe.resetPasswordSubmitButton,type:"reset-pw"}):nt.exports.jsx(G6e,Object.assign({"data-testid":"rp-password-submit-button",variant:"contained",disableElevation:!0,size:"large",className:o.submitButton,onClick:y,loading:a,disabled:n},{children:jqe.resetPasswordSubmitButton}))}))]}))}))}(ooe=F_e=F_e||{}).lengthCheck="lengthCheck",ooe.userNameCheck="userNameCheck",ooe.dictionaryCheck="dictionaryCheck",ooe.pastPasswordCheck="pastPasswordCheck",ooe.passwordComplexityCheck="passwordComplexityCheck",ooe.passwordChangeFrequencyCheck="passwordChangeFrequencyCheck";const Z_e=740,G_e=400;function J_e({resetToken:t,username:n,requiresPasswordRestriction:e=!1,onSuccess:r,organizationInviteId:i,containerWidth:o=Z_e,isNewPage:a=!1}){kqe();const s=de(),l=ue(C$),c=ue(b$);De.exports.useEffect(()=>{"success"===l&&c===IX.ResetPassword&&null!=r&&r()},[l,c]);var u=ge.exports.isEmpty(t)||ge.exports.isEmpty(n),d=o<=G_e||!e;return nt.exports.jsxs(pe,Object.assign({p:a?0:4,id:"reset-password-widget",width:o},{children:[a?nt.exports.jsx(Oqe,{text:jqe.resetPasswordTitle,subText:jqe.resetPasswordSubHeader,type:"reset-pw"}):nt.exports.jsxs(nt.exports.Fragment,{children:[nt.exports.jsx(ae,Object.assign({variant:"h1",sx:{textTransform:"initial",fontSize:22,marginBottom:"20px"}},{children:jqe.resetPasswordTitle})),nt.exports.jsx(ae,Object.assign({variant:"body2"},{children:jqe.resetPasswordSubHeader}))]}),u&&nt.exports.jsx(eI,Object.assign({sx:{mt:4},variant:"outlined",severity:"error"},{children:jqe.invalidTokenOrUsername})),nt.exports.jsx(W_e,{onBtnClick:e=>{a?s(qX({resetToken:t,username:n,password:e,organizationInviteId:i,apiUrl:Sqe()})):s(qX({resetToken:t,username:n,password:e,organizationInviteId:i}))},requiresRestriction:e,disableForm:u,columnView:d,isNewPage:a})]}))}function K_e(e,t){if(hWe(t,e))return e;throw mWe("Incorrect invocation")}function Y_e(e,t){return vWe(e),void 0===t?e:yWe?xWe(e,t):function(){return e.apply(t,arguments)}}function Q_e(e){if(null!=e)return CWe(e,IWe)||CWe(e,"@@iterator")||AWe[bWe(e)]}function X_e(e,t){if(t=arguments.length<2?kWe(e):t,jWe(t))return SWe(wWe(t,e));throw EWe(OWe(e)+" is not iterable")}function $_e(e,t){if(e<t)throw TWe("Not enough arguments");return e}function eWe(e,t){var n=e.length,r=UWe(n/2);if(n<8){for(var i,o,a=e,s=t,l=a.length,c=1;c<l;){for(i=a[o=c];o&&0<s(a[o-1],i);)a[o]=a[--o];o!==c++&&(a[o]=i)}return a}for(var u=e,d=eWe(HWe(e,0,r),t),p=eWe(HWe(e,r),t),g=t,f=d.length,h=p.length,m=0,v=0;m<f||v<h;)u[m+v]=m<f&&v<h?g(d[m],p[v])<=0?d[m++]:p[v++]:m<f?d[m++]:p[v++];return u}function tWe(e){var t;return qWe?(t=lZe(BWe,e))&&t.value:BWe[e]}function nWe(t){try{return hZe(t)}catch(e){return t}}function rWe(e){var t,n=bZe(e,jZe," "),r=4;try{return hZe(n)}catch(e){for(;r;)n=bZe(n,(t=r--,SZe[t-1]||(SZe[t-1]=gZe("((?:%[\\da-f]{2}){"+t+"})","gi"))),nWe);return n}}function iWe(e){return kZe[e]}function oWe(e){return bZe(mZe(e),OZe,iWe)}function aWe(e){this.entries=[],this.url=null,void 0!==e&&(KWe(e)?this.parseObject(e):this.parseQuery("string"==typeof e?"?"===vZe(e,0)?wZe(e,1):e:YWe(e)))}function sWe(){_We(this,TZe),oZe(this,new aWe(0<arguments.length?arguments[0]:void 0))}var lWe,cWe,uWe,dWe,pWe,voe=MFe,gWe=ZFe("iterator"),goe=!voe(function(){var e=new URL("b?a=1&b=2&c=3","http://a"),n=e.searchParams,r="";return e.pathname="c%20d",n.forEach(function(e,t){n.delete("b"),r+=t+e}),!n.sort||"http://a/c%20d?a=1&c=3"!==e.href||"3"!==n.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!n[gWe]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("http://тест").host||"#%D0%B1"!==new URL("http://a#б").hash||"a1c3"!==r||"x"!==new URL("http://x",void 0).host}),fWe=QFe,hWe=xse,mWe=TypeError,vWe=BFe,yWe=ise,xWe=hse(hse.bind),bWe=vce,CWe=zFe,AWe=Oq,IWe=ZFe("iterator"),wWe=Mae,jWe=BFe,SWe=KFe,OWe=UFe,kWe=Q_e,EWe=TypeError,TWe=TypeError,NWe=GFe,MWe=Yse,PWe=PFe,DWe=$Fe,RWe=tVe,LWe=function(e,t,n){t=NWe(t);t in e?MWe.f(e,t,PWe(0,n)):e[t]=n},FWe=Array,VWe=Math.max,HWe=function(e,t,n){for(var r=RWe(e),i=DWe(t,r),o=DWe(void 0===n?r:n,r),a=FWe(VWe(o-i,0)),s=0;i<o;i++,s++)LWe(a,s,e[i]);return a.length=s,a},UWe=Math.floor,Foe=aVe,BWe=nse,zWe=Mae,Tq=hse,qWe=ase,jce=goe,Eoe=QFe,woe=function(e,t,n){for(var r in t)fWe(e,r,t[r],n);return e},Toe=Fqe,lce=Hqe,Uoe=wle,_We=K_e,Moe=FFe,WWe=Hse,ZWe=Y_e,GWe=vce,JWe=KFe,KWe=VFe,YWe=FBe,QWe=tce,XWe=PFe,$We=X_e,eZe=Q_e,tZe=$_e,nZe=eWe,Ooe=ZFe("iterator"),rZe="URLSearchParams",iZe=rZe+"Iterator",oZe=Uoe.set,aZe=Uoe.getterFor(rZe),sZe=Uoe.getterFor(iZe),lZe=Object.getOwnPropertyDescriptor,cZe=tWe("fetch"),uZe=tWe("Request"),dZe=tWe("Headers"),pZe=uZe&&uZe.prototype,Aoe=dZe&&dZe.prototype,gZe=BWe.RegExp,fZe=BWe.TypeError,hZe=BWe.decodeURIComponent,mZe=BWe.encodeURIComponent,vZe=Tq("".charAt),yZe=Tq([].join),xZe=Tq([].push),bZe=Tq("".replace),CZe=Tq([].shift),AZe=Tq([].splice),IZe=Tq("".split),wZe=Tq("".slice),jZe=/\+/g,SZe=Array(4),OZe=/[!'()~]|%20/g,kZe={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},EZe=lce(function(e,t){oZe(this,{type:iZe,iterator:$We(aZe(e).entries),kind:t})},"Iterator",function(){var e=sZe(this),t=e.kind,e=e.iterator.next(),n=e.value;return e.done||(e.value="keys"===t?n.key:"values"===t?n.value:[n.key,n.value]),e},!0),TZe=(aWe.prototype={type:rZe,bindURL:function(e){this.url=e,this.update()},parseObject:function(e){var t,n,r,i,o,a,s=eZe(e);if(s)for(n=(t=$We(e,s)).next;!(r=zWe(n,t)).done;){if(i=(r=$We(JWe(r.value))).next,(o=zWe(i,r)).done||(a=zWe(i,r)).done||!zWe(i,r).done)throw fZe("Expected sequence with length 2");xZe(this.entries,{key:YWe(o.value),value:YWe(a.value)})}else for(var l in e)WWe(e,l)&&xZe(this.entries,{key:l,value:YWe(e[l])})},parseQuery:function(e){if(e)for(var t,n=IZe(e,"&"),r=0;r<n.length;)(t=n[r++]).length&&(t=IZe(t,"="),xZe(this.entries,{key:rWe(CZe(t)),value:rWe(yZe(t,"="))}))},serialize:function(){for(var e,t=this.entries,n=[],r=0;r<t.length;)e=t[r++],xZe(n,oWe(e.key)+"="+oWe(e.value));return yZe(n,"&")},update:function(){this.entries.length=0,this.parseQuery(this.url.query)},updateURL:function(){this.url&&this.url.update()}},sWe.prototype),ace=(woe(TZe,{append:function(e,t){tZe(arguments.length,2);var n=aZe(this);xZe(n.entries,{key:YWe(e),value:YWe(t)}),n.updateURL()},delete:function(e){tZe(arguments.length,1);for(var t=aZe(this),n=t.entries,r=YWe(e),i=0;i<n.length;)n[i].key===r?AZe(n,i,1):i++;t.updateURL()},get:function(e){tZe(arguments.length,1);for(var t=aZe(this).entries,n=YWe(e),r=0;r<t.length;r++)if(t[r].key===n)return t[r].value;return null},getAll:function(e){tZe(arguments.length,1);for(var t=aZe(this).entries,n=YWe(e),r=[],i=0;i<t.length;i++)t[i].key===n&&xZe(r,t[i].value);return r},has:function(e){tZe(arguments.length,1);for(var t=aZe(this).entries,n=YWe(e),r=0;r<t.length;)if(t[r++].key===n)return!0;return!1},set:function(e,t){tZe(arguments.length,1);for(var n,r=aZe(this),i=r.entries,o=!1,a=YWe(e),s=YWe(t),l=0;l<i.length;l++)(n=i[l]).key===a&&(o?AZe(i,l--,1):(o=!0,n.value=s));o||xZe(i,{key:a,value:s}),r.updateURL()},sort:function(){var e=aZe(this);nZe(e.entries,function(e,t){return e.key>t.key?1:-1}),e.updateURL()},forEach:function(e){for(var t,n=aZe(this).entries,r=ZWe(e,1<arguments.length?arguments[1]:void 0),i=0;i<n.length;)r((t=n[i++]).value,t.key,this)},keys:function(){return new EZe(this,"keys")},values:function(){return new EZe(this,"values")},entries:function(){return new EZe(this,"entries")}},{enumerable:!0}),Eoe(TZe,Ooe,TZe.entries,{name:"entries"}),Eoe(TZe,"toString",function(){return aZe(this).serialize()},{enumerable:!0}),Toe(sWe,rZe),Foe({global:!0,constructor:!0,forced:!jce},{URLSearchParams:sWe}),!jce&&Moe(dZe)&&(lWe=Tq(Aoe.has),cWe=Tq(Aoe.set),uWe=function(e){if(KWe(e)){var t,n=e.body;if(GWe(n)===rZe)return t=e.headers?new dZe(e.headers):new dZe,lWe(t,"content-type")||cWe(t,"content-type","application/x-www-form-urlencoded;charset=UTF-8"),QWe(e,{body:XWe(0,YWe(n)),headers:XWe(0,t)})}return e},Moe(cZe)&&Foe({global:!0,enumerable:!0,dontCallGetSet:!0,forced:!0},{fetch:function(e){return cZe(e,1<arguments.length?uWe(arguments[1]):{})}}),Moe(uZe))&&((pZe.constructor=sce=function(e){return _We(this,pZe),new uZe(e,1<arguments.length?uWe(arguments[1]):{})}).prototype=pZe,Foe({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:sce})),Object.is||function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}),NZe=Mae,MZe=KFe,PZe=RFe,DZe=ace,RZe=FBe,LZe=zFe,FZe=zBe,VZe=(HBe("search",function(r,i,o){return[function(e){var t=PZe(this),n=null==e?void 0:LZe(e,r);return n?NZe(n,e,t):new RegExp(e)[r](RZe(t))},function(e){var t=MZe(this),e=RZe(e),n=o(i,t,e);return n.done?n.value:(n=t.lastIndex,DZe(n,0)||(t.lastIndex=0),e=FZe(t,e),DZe(t.lastIndex,n)||(t.lastIndex=n),null===e?-1:e.index)}]}),Mae),HZe=KFe,UZe=eVe,BZe=FBe,zZe=RFe,qZe=zFe,_Ze=BBe,WZe=zBe;HBe("match",function(r,s,l){return[function(e){var t=zZe(this),n=null==e?void 0:qZe(e,r);return n?VZe(n,e,t):new RegExp(e)[r](BZe(t))},function(e){var t=HZe(this),n=BZe(e),e=l(s,t,n);if(e.done)return e.value;if(!t.global)return WZe(t,n);for(var r=t.unicode,i=[],o=t.lastIndex=0;null!==(a=WZe(t,n));){var a=BZe(a[0]);""===(i[o]=a)&&(t.lastIndex=_Ze(n,UZe(t.lastIndex),r)),o++}return 0===o?null:i}]});const ZZe={emailLabel:nt.exports.jsx(oe,{id:"os-auth-email-input-label",defaultMessage:"Email",description:"Label Email"}),continueLabel:nt.exports.jsx(oe,{id:"os-auth-email-continue-button",defaultMessage:"Continue",description:"Continue Button"}),emailErrorState:nt.exports.jsx(oe,{id:"os-auth-email-input-field-error-state-label",defaultMessage:"This is an invalid email",description:"Email error state label"}),emptyEmailErrorMsg:nt.exports.jsx(oe,{id:"os-auth-empty-email-input-field-error-state-label",defaultMessage:"Email is required",description:"Empty email error state label"})},GZe=fe()(()=>({emailWrapper:{display:"flex",flexDirection:"column",alignItems:"center",fontFamily:"Nunito","& button":{textTransform:"none",marginTop:"20px",fontSize:"18px",lineHeight:"24px",fontFamily:"Nunito",fontWeight:"600"},"& input":{fontFamily:"Nunito",lineHeight:"22px",color:"#2A323C"},"& .Sdk-MuiOutlinedInput-root":{"&:hover fieldset":{border:"1px solid #DADFE8"},"&.Mui-focused fieldset":{border:"1px solid #DADFE8"},"&.Mui-error.Mui-focused fieldset":{borderColor:"#d32f2f"}},"& .Sdk-MuiFormControl-root .MuiInputLabel-root.Mui-focused":{color:"#9CA8B4",fontFamily:"Nunito"},"& .Sdk-MuiInputLabel-outlined":{color:"#9CA8B4",fontFamily:"Nunito"},"& .Sdk-MuiFormLabel-root .MuiInputLabel-root":{color:"#9CA8B4"},"& .Sdk-Mui-focused .MuiInputLabel-outlined":{color:"#9CA8B4"},"& .Sdk-Mui-error":{color:"#d32f2f !important"}},emailField:{width:"368px",height:"52px"},continueBtn:{width:"368px",height:"56px"}})),JZe=({onNextStep:e,email:t,setEmail:n,isLoading:r,buttonText:i})=>{var o=GZe()["classes"];const[a,s]=De.exports.useState(!1);var{emailLabel:l,emailErrorState:c,emptyEmailErrorMsg:u}=ZZe,c=a?t?c:u:l;const d=()=>{p(t)&&e?(s(!1),e()):s(!0)};const p=e=>e.match(/^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/);return nt.exports.jsxs(pe,Object.assign({className:o.emailWrapper},{children:[nt.exports.jsx(PO,{id:"username","data-testid":"os-auth-email-input-field",label:c,InputProps:{type:"email"},variant:"outlined",value:t,autoComplete:"username",autoFocus:!0,className:o.emailField,error:a,onChange:e=>{e=e.target.value;a&&s(!1),n(e)},onKeyDown:e=>{"Enter"===e.key&&d()}}),i&&nt.exports.jsx(G6e,Object.assign({color:"primary",variant:"contained",onClick:d,className:o.continueBtn,"data-testid":"os-auth-email-continue-btn",loading:r},{children:i}))]}))},KZe=fe()(()=>({passwordWrapper:{fontFamily:"Nunito","& input":{fontFamily:"Nunito",lineHeight:"22px",color:"#2A323C"},"& .Sdk-MuiOutlinedInput-root":{"&:hover fieldset":{border:"1px solid #DADFE8"},"&.Mui-focused fieldset":{border:"1px solid #DADFE8"}},"& .Sdk-MuiFormControl-root .MuiInputLabel-root.Mui-focused":{color:"#9CA8B4",fontFamily:"Nunito"},"& .Sdk-MuiInputLabel-outlined":{color:"#9CA8B4",fontFamily:"Nunito"},"& .Sdk-MuiFormLabel-root .MuiInputLabel-rootd":{color:"#9CA8B4"}}})),YZe=({password:e,onPasswordChange:t,errorMessage:n,onPressEnter:r,autoFocus:i=!0})=>{var o=KZe()["classes"];const[a,s]=De.exports.useState(!1),[l,c]=De.exports.useState("Password");De.exports.useEffect(()=>{n?c(n):c("Password")},[n]);return nt.exports.jsx(pe,Object.assign({className:o.passwordWrapper},{children:nt.exports.jsxs(M6,Object.assign({sx:{width:"100%"},variant:"outlined"},{children:[nt.exports.jsx(D9,Object.assign({htmlFor:"outlined-adornment-password",style:{color:n?"#d32f2f":"#9CA8B4"}},{children:l})),nt.exports.jsx(x8,{id:"outlined-adornment-password","data-testid":"os-auth-password-input-field",type:a?"text":"password",onChange:e=>{e=e.target.value;t(e)},value:e,autoFocus:i,autoComplete:"password",endAdornment:nt.exports.jsx(T9,Object.assign({position:"end"},{children:nt.exports.jsx(le,Object.assign({"aria-label":"toggle password visibility",onClick:()=>s(e=>!e),onMouseDown:e=>{e.preventDefault()},edge:"end"},{children:a?nt.exports.jsx(vVe,{}):nt.exports.jsx(mVe,{})}))})),error:!!n,label:l,onKeyDown:e=>{"Enter"===e.key&&r()}})]}))}))},QZe=fe()(e=>({selectWrapper:{position:"absolute",right:"40px",top:"26px"},selectMenu:{marginTop:e.spacing(1),width:"164px",borderRadius:"10px !important",ul:{padding:"5px"},li:{padding:"10px 8px",borderRadius:"4px"}}})),XZe=[{label:"aiWARE - US",value:"https://aiware2.us-1.veritone.com/ui/auth/login"},{label:"aiWARE - CA",value:"https://aiware2.ca-1.veritone.com/ui/auth/login"},{label:"aiWARE - UK",value:"https://aiware2.uk-1.veritone.com/ui/auth/login"},{label:"aiWARE - US Gov 1",value:"https://aiware2.us-gov-1.veritone.com/ui/auth/login"},{label:"aiWARE - US Gov 2",value:"https://aiware2.us-gov-2.veritone.com/ui/auth/login"},{label:"aiWARE - Deloitte",value:"https://aiware2.us-2.veritone.com/ui/auth/login"}],$Ze=({handleDestination:t})=>{var e=QZe()["classes"];const[n,r]=De.exports.useState(XZe[0].value);return nt.exports.jsx(pe,Object.assign({className:e.selectWrapper},{children:nt.exports.jsx(f7,Object.assign({name:"destination-dropdown",value:n,onChange:e=>{e=e.target.value;r(e),t(e)},renderValue:e=>{return nt.exports.jsxs(pe,Object.assign({sx:{display:"flex",alignItems:"center",gap:.2}},{children:[nt.exports.jsx(Rae,{sx:{width:"18px",height:"18px",color:"#555F7C"}}),nt.exports.jsx("span",{children:(t=e,null==(e=XZe.find(e=>e.value===t))?void 0:e.label)})]}));var t},sx:{color:"#2A323C",fontFamily:"Nunito",fontSize:"12px",lineHeight:"16px",fontWeight:"400",width:"164px",height:"36px","& .Sdk-MuiSelect-select":{paddingLeft:"8px"},"&.MuiOutlinedInput-root":{"& fieldset":{border:"1px solid #DADFE8",borderRadius:"30px"},"&:hover fieldset":{border:"1px solid #DADFE8",borderRadius:"30px"},"&.Mui-focused fieldset":{border:"1px solid #DADFE8",borderRadius:"30px"}}},MenuProps:{classes:{paper:e.selectMenu}}},{children:XZe.map(e=>nt.exports.jsx(i8,Object.assign({value:e.value,sx:{color:"#2A323C",fontFamily:"Nunito",fontSize:"12px",lineHeight:"16px",fontWeight:"400",letterSpacing:"-1.30385e-09px"}},{children:e.label}),e.label))}))}))};function eGe(){return(eGe=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n,r=arguments[t];for(n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function tGe(e){return De.exports.createElement("svg",eGe({width:270,height:48,fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),dWe=dWe||De.exports.createElement("g",{clipPath:"url(#aiware_logo_svg__a)"},De.exports.createElement("path",{d:"M0 30.967c0-.99.173-1.906.52-2.751a7.888 7.888 0 0 1 1.453-2.28 6.677 6.677 0 0 1 2.18-1.521 6.167 6.167 0 0 1 2.63-.58h17.583v-7.457H6.897V9.247H27.591l1.126 2.238 1.267 2.356 1.2 2.537V47.8h-6.818V40.67l-.857 1.883-1.267 2.798-1.126 2.45H6.784c-.923 0-1.8-.18-2.63-.543a7.49 7.49 0 0 1-2.181-1.52 7.888 7.888 0 0 1-1.454-2.28A7.463 7.463 0 0 1 0 40.669v-9.702Zm6.784 9.702h17.582v-9.702H6.784v9.702ZM49.735 11.603V47.8h-6.818V11.603h6.818ZM42.57 0h7.51v7.421h-7.51V0Z",fill:"#307FE2"}),De.exports.createElement("path",{d:"M0 30.967c0-.99.173-1.906.52-2.751a7.888 7.888 0 0 1 1.453-2.28 6.677 6.677 0 0 1 2.18-1.521 6.167 6.167 0 0 1 2.63-.58h17.583v-7.457H6.897V9.247H27.591l1.126 2.238 1.267 2.356 1.2 2.537V47.8h-6.818V40.67l-.857 1.883-1.267 2.798-1.126 2.45H6.784c-.923 0-1.8-.18-2.63-.543a7.49 7.49 0 0 1-2.181-1.52 7.888 7.888 0 0 1-1.454-2.28A7.463 7.463 0 0 1 0 40.669v-9.702Zm6.784 9.702h17.582v-9.702H6.784v9.702ZM49.735 11.603V47.8h-6.818V11.603h6.818ZM42.57 0h7.51v7.421h-7.51V0Z",fill:"#307FE2"}),De.exports.createElement("path",{d:"M74.734 47.837 61.658 0h6.538l10.142 38.063L88.448 0h6.539l10.11 38.063L115.239 0h6.538l-13.076 47.837h-7.176l-9.791-35.861-9.823 35.86h-7.177ZM147.26 0l17.637 47.837h-6.538l-2.025-5.505-2.025-5.504-2.52-6.838-2.54 6.838h-15.575l-4.051 11.009h-6.538L140.722 0h6.538Zm-11.099 29.99h15.628l-7.782-21.083-7.846 21.083ZM208.879 17.08c0 6.672-2.722 10.474-8.165 11.409l8.611 19.348h-7.24l-8.483-19.115h-14.321v19.115h-6.538V0h25.037c7.399 0 11.099 3.88 11.099 11.642v5.438Zm-29.598 4.803h18.148c1.743 0 2.998-.4 3.763-1.2.766-.801 1.149-2.113 1.149-3.937v-4.77c0-1.824-.383-3.136-1.149-3.937-.765-.8-2.02-1.2-3.763-1.2h-18.148v15.044ZM219.818 0h33.329v6.839h-26.791v13.677h22.868v6.838h-22.868v13.644h26.791v6.839h-33.329V0ZM257.019 41.225h4.73v.884h-1.942v5.302h-.845v-5.302h-1.943v-.884Zm8.797 6.186-2.206-4.534v4.534h-.846v-6.186h.924l2.252 4.659 2.256-4.659h.919v6.186h-.841v-4.534l-2.207 4.534h-.251Z",fill:"#333F48"})),pWe=pWe||De.exports.createElement("defs",null,De.exports.createElement("clipPath",{id:"aiware_logo_svg__a"},De.exports.createElement("path",{fill:"#fff",d:"M0 0h270v48H0z"}))))}var nGe,rGe,iGe;function oGe(){return(oGe=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n,r=arguments[t];for(n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function aGe(e){return De.exports.createElement("svg",oGe({width:180,height:34,fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),nGe=nGe||De.exports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.626 0 0 13.076 12.175 34h13.319L5.626 0ZM21.703 0l5.164 8.86L32.044 0h-10.34Z",fill:"#728FBE"}),rGe=rGe||De.exports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M32.044 0 12.176 34h13.318L37.67 13.076 32.044 0Z",fill:"#325491"}),iGe=iGe||De.exports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M161.768 10.063v6.02h9.982v1.979h-9.982v6.046h11.175v1.952h-13.21V8.111h13.21v1.952h-11.175Zm-5.114-1.952V26.06h-2.36L143.2 10.904V26.06h-2.034V8.111h2.36l11.094 15.102V8.111h2.034Zm-27.569 16.187c2.133 0 3.86-.696 5.181-2.088 1.265-1.338 1.898-3.046 1.898-5.124 0-2.08-.633-3.787-1.898-5.125-1.321-1.392-3.048-2.088-5.181-2.088-2.134 0-3.861.696-5.181 2.088-1.266 1.338-1.899 3.046-1.899 5.125s.633 3.786 1.899 5.124c1.32 1.392 3.047 2.088 5.181 2.088Zm0-16.404c2.676 0 4.873.895 6.591 2.684 1.682 1.736 2.523 3.905 2.523 6.508 0 2.602-.841 4.772-2.523 6.507-1.718 1.79-3.915 2.684-6.591 2.684-2.677 0-4.874-.895-6.592-2.684-1.681-1.735-2.522-3.905-2.522-6.507 0-2.603.841-4.772 2.522-6.508 1.718-1.79 3.915-2.684 6.592-2.684Zm-9.676 2.17h-6.266V26.06h-2.034V10.063h-6.266V8.111h14.566v1.952ZM99.663 26.06h2.035V8.11h-2.035v17.95ZM84.701 16.97V9.955h4.963c2.743 0 4.134 1.18 4.134 3.507 0 2.326-1.39 3.506-4.135 3.506h-4.962Zm6.956 1.647.193-.05c1.255-.334 2.256-.95 2.974-1.833.717-.882 1.08-1.983 1.08-3.271 0-1.638-.568-2.954-1.688-3.91-1.127-.959-2.65-1.445-4.525-1.445H82.71v17.95H84.7v-7.24h4.726l5.13 7.24h2.364l-5.264-7.44ZM68.577 10.063v6.02h9.982v1.979h-9.982v6.046h11.175v1.952h-13.21V8.111h13.21v1.952H68.577ZM63.942 8.111l-7.687 17.95h-2.333L46.236 8.11h2.224l6.629 15.645L61.717 8.11h2.225ZM176.505 24.727h.236c.276 0 .499-.092.499-.315 0-.197-.144-.328-.459-.328-.132 0-.224.013-.276.026v.617Zm-.013 1.207h-.499v-2.152c.197-.026.472-.066.827-.066.407 0 .591.066.735.171a.54.54 0 0 1 .224.46c0 .262-.197.432-.447.511v.026c.21.066.315.237.381.526.066.328.118.446.157.524h-.525c-.065-.078-.105-.262-.171-.524-.039-.224-.17-.329-.446-.329h-.236v.854Zm-1.327-1.115c0 .958.723 1.72 1.681 1.72.933.012 1.641-.762 1.641-1.707 0-.958-.708-1.732-1.667-1.732-.932 0-1.655.774-1.655 1.719Zm3.874 0c0 1.207-.972 2.165-2.206 2.165s-2.219-.958-2.219-2.165.985-2.152 2.232-2.152c1.221 0 2.193.944 2.193 2.152Z",fill:"#142E44"}))}const sGe=()=>nt.exports.jsxs(pe,Object.assign({sx:{textAlign:"center"}},{children:[nt.exports.jsx(aGe,{}),nt.exports.jsxs(ae,Object.assign({sx:{marginBottom:"18px",marginTop:"50px",fontFamily:"Nunito",fontSize:"10px",lineHeight:"16px",color:"#5C6269"}},{children:["© ",(new Date).getFullYear()," AiWARE, All Rights Reserved."," ",nt.exports.jsxs("a",Object.assign({href:"https://www.veritone.com/terms",style:{color:"#0C53B0",textDecoration:"none"}},{children:["Terms of Service"," "]}))]}))]})),lGe=({children:e})=>nt.exports.jsx(F4,{children:nt.exports.jsxs(pe,Object.assign({sx:{display:"flex",alignItems:"center",flexDirection:"column",justifyContent:"space-between",height:"100vh"}},{children:[nt.exports.jsxs(pe,{children:[nt.exports.jsx(pe,Object.assign({sx:{marginTop:"178px",marginBottom:"50px",textAlign:"center"}},{children:nt.exports.jsx(tGe,{})})),e]}),nt.exports.jsx(sGe,{})]}))}),cGe=fe()(()=>({btnWrapper:{display:"flex",alignItems:"center",width:"100%",justifyContent:"center",flexDirection:"column"},openIdLogo:{width:"24px",height:"24px",marginRight:"8px"},openIdBtn:{"&.MuiButton-root":{width:"368px",marginTop:"20px",height:"56px",border:"1px solid #DADFE8",borderRadius:"4px",fontFamily:"Nunito",fontStyle:"normal",fontWeight:"600",fontSize:"18px",lineHeight:"24px",letterSpacing:"-1.30385e-09px",textTransform:"none","&:hover, &:focus":{border:"1px solid #DADFE8",color:"#2A323C"}}}})),uGe=({openIdItems:e})=>{const n=cGe()["classes"];return nt.exports.jsx(pe,Object.assign({className:n.btnWrapper},{children:nt.exports.jsx(nt.exports.Fragment,{children:e&&e.map((t,e)=>{return nt.exports.jsxs(se,Object.assign({variant:"outlined","data-testid":"os-auth-openId-button-"+e,className:n.openIdBtn,onClick:()=>{var e;e=t.loginUrl,window.location.href=e},sx:{backgroundColor:t.loginButtonStyle&&t.loginButtonStyle.btnColor?t.loginButtonStyle.btnColor:"#FFFFFF","&:hover, &:focus":{backgroundColor:t.loginButtonStyle&&t.loginButtonStyle.btnColor?t.loginButtonStyle.btnColor:"#FFFFFF"}}},{children:[t.loginButtonStyle&&t.loginButtonStyle.btnLogo&&nt.exports.jsx("img",{className:n.openIdLogo,alt:"icon",src:t.loginButtonStyle.btnLogo,"data-testid":"os-auth-openId-image-"+e}),nt.exports.jsx("span",Object.assign({"data-testid":"os-auth-openId-name-"+e,style:{marginTop:"3px",color:t.loginButtonStyle&&t.loginButtonStyle.btnTextColor?t.loginButtonStyle.btnTextColor:"#2A323C"}},{children:(null==t?void 0:t.name)&&"Login with "+(20<(e=t.name).length?e.substring(0,20)+"...":e)}))]}),t.connectId)})})}))};function dGe(){}function pGe(e){if(!yGe(e))return!1;try{return AGe(dGe,CGe,e),!0}catch(e){return!1}}function gGe(e){if(!yGe(e))return!1;switch(xGe(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return jGe||!!wGe(IGe,bGe(e))}catch(e){return!0}}var oce="process"==DFe(nse.process),fGe=HFe,hGe=Yse,mGe=ase,vGe=ZFe("species"),Bae=hse,uce=MFe,yGe=FFe,xGe=vce,bGe=gle,CGe=[],AGe=HFe("Reflect","construct"),IGe=/^\s*(?:class|function)\b/,wGe=Bae(IGe.exec),jGe=!IGe.exec(dGe);gGe.sham=!0;var SGe,OGe,kGe=!AGe||uce(function(){var e;return pGe(pGe.call)||!pGe(Object)||!pGe(function(){e=!0})||e})?gGe:pGe,EGe=UFe,TGe=TypeError,NGe=KFe,MGe=function(e){if(kGe(e))return e;throw TGe(EGe(e)+" is not a constructor")},PGe=ZFe("species"),ice=hse([].slice),joe=/(?:ipad|iphone|ipod).*applewebkit/i.test(Cse),DGe=nse,RGe=Zce,Voe=Y_e,LGe=FFe,FGe=Hse,xoe=MFe,VGe=$le,HGe=ice,UGe=JFe,BGe=$_e,_oe=joe,qoe=oce,Zoe=DGe.setImmediate,Koe=DGe.clearImmediate,zGe=DGe.process,qGe=DGe.Dispatch,_Ge=DGe.Function,Yoe=DGe.MessageChannel,WGe=DGe.String,ZGe=0,GGe={},JGe="onreadystatechange";try{SGe=DGe.location}catch(e){}function KGe(e){return function(){pJe(e)}}function YGe(e){pJe(e.data)}function QGe(e){DGe.postMessage(WGe(e),SGe.protocol+"//"+SGe.host)}function XGe(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}}function $Ge(){this.head=null,this.tail=null}function eJe(e){var n,r;this.promise=new e(function(e,t){if(void 0!==n||void 0!==r)throw TypeError("Bad Promise constructor");n=e,r=t}),this.resolve=jJe(n),this.reject=jJe(r)}function tJe(e,t){var n,r,i,o,a=t.value,s=t.state==tKe,l=s?e.ok:e.fail,c=e.resolve,u=e.reject,d=e.domain;try{l?(s||(t.rejection===iKe&&(o=t,kJe(DJe,OJe,function(){var e=o.facade;SJe?KJe.emit("rejectionHandled",e):sKe(eKe,e,o.value)})),t.rejection=rKe),!0===l?n=a:(d&&d.enter(),n=l(a),d&&(d.exit(),i=!0)),n===e.promise?u(GJe("Promise-chain cycle")):(r=oKe(n))?kJe(r,n,c,u):c(n)):u(a)}catch(e){d&&!i&&d.exit(),u(e)}}var nJe,rJe,iJe,oJe,aJe,sJe,lJe,cJe,uJe,dJe,pJe=function(e){var t;FGe(GGe,e)&&(t=GGe[e],delete GGe[e],t())},oae=(Zoe&&Koe||(Zoe=function(e){BGe(arguments.length,1);var t=LGe(e)?e:_Ge(e),n=HGe(arguments,1);return GGe[++ZGe]=function(){RGe(t,void 0,n)},OGe(ZGe),ZGe},Koe=function(e){delete GGe[e]},qoe?OGe=function(e){zGe.nextTick(KGe(e))}:qGe&&qGe.now?OGe=function(e){qGe.now(KGe(e))}:Yoe&&!_oe?(Woe=(rae=new Yoe).port2,rae.port1.onmessage=YGe,OGe=Voe(Woe.postMessage,Woe)):DGe.addEventListener&&LGe(DGe.postMessage)&&!DGe.importScripts&&SGe&&"file:"!==SGe.protocol&&!xoe(QGe)?(OGe=QGe,DGe.addEventListener("message",YGe,!1)):OGe=JGe in UGe("script")?function(e){VGe.appendChild(UGe("script"))[JGe]=function(){VGe.removeChild(this),pJe(e)}}:function(e){setTimeout(KGe(e),0)}),{set:Zoe,clear:Koe}),gae=nse,fae=/ipad|iphone|ipod/i.test(Cse)&&void 0!==gae.Pebble,mae=/web0s(?!.*chrome)/i.test(Cse),uae=nse,Cae=Y_e,xae=ose.f,gJe=oae.set,Tae=joe,Pae=fae,a=mae,fJe=oce,Fae=uae.MutationObserver||uae.WebKitMutationObserver,zae=uae.document,hJe=uae.process,Lae=uae.Promise,Uae=xae(uae,"queueMicrotask"),_ae=Uae&&Uae.value,Kae=(_ae||(nJe=function(){var e,t;for(fJe&&(e=hJe.domain)&&e.exit();rJe;){t=rJe.fn,rJe=rJe.next;try{t()}catch(e){throw rJe?oJe():iJe=void 0,e}}iJe=void 0,e&&e.enter()},oJe=Tae||fJe||a||!Fae||!zae?!Pae&&Lae&&Lae.resolve?((s=Lae.resolve(void 0)).constructor=Lae,lJe=Cae(s.then,s),function(){lJe(nJe)}):fJe?function(){hJe.nextTick(nJe)}:(gJe=Cae(gJe,uae),function(){gJe(nJe)}):(aJe=!0,sJe=zae.createTextNode(""),new Fae(nJe).observe(sJe,{characterData:!0}),function(){sJe.data=aJe=!aJe})),_ae||function(e){e={fn:e,next:void 0};iJe&&(iJe.next=e),rJe||(rJe=e,oJe()),iJe=e}),mJe=nse,qae=($Ge.prototype={add:function(e){e={item:e,next:null};this.head?this.tail.next=e:this.head=e,this.tail=e},get:function(){var e=this.head;if(e)return this.head=e.next,this.tail===e&&(this.tail=null),e.item}},$Ge),Yae=nse.Promise,rse="object"==typeof Deno&&Deno&&"object"==typeof Deno.version,gse=!rse&&!oce&&"object"==typeof window&&"object"==typeof document,cse=nse,vJe=Yae,hae=FFe,G_=_le,yJe=gle,Loe=ZFe,xJe=gse,bJe=rse,CJe=Tse,AJe=(vJe&&vJe.prototype,Loe("species")),IJe=!1,wJe=hae(cse.PromiseRejectionEvent),mse={CONSTRUCTOR:G_("Promise",function(){var e=yJe(vJe),t=e!==String(vJe);if(!t&&66===CJe)return!0;if(!CJe||CJe<51||!/native code/.test(e)){var e=new vJe(function(e){e(1)}),n=function(e){e(function(){},function(){})};if((e.constructor={})[AJe]=n,!(IJe=e.then(function(){})instanceof n))return!0}return!t&&(xJe||bJe)&&!wJe}),REJECTION_EVENT:wJe,SUBCLASSING:IJe},vse={},jJe=BFe,jse=(vse.f=function(e){return new eJe(e)},aVe),SJe=oce,OJe=nse,kJe=Mae,l=QFe,Ose=t,Ese=Fqe,Ase=function(e){var e=fGe(e),t=hGe.f;mGe&&e&&!e[vGe]&&t(e,vGe,{configurable:!0,get:function(){return this}})},EJe=BFe,TJe=FFe,NJe=VFe,MJe=K_e,PJe=function(e,t){var e=NGe(e).constructor;return void 0===e||null==(e=NGe(e)[PGe])?t:MGe(e)},DJe=oae.set,RJe=Kae,LJe=function(e,t){var n=mJe.console;n&&n.error&&(1==arguments.length?n.error(e):n.error(e,t))},FJe=XGe,VJe=qae,HJe=wle,UJe=Yae,Nse=vse,BJe="Promise",Lse=mse.CONSTRUCTOR,zJe=mse.REJECTION_EVENT,Fse=mse.SUBCLASSING,qJe=HJe.getterFor(BJe),_Je=HJe.set,Use=UJe&&UJe.prototype,WJe=UJe,ZJe=Use,GJe=OJe.TypeError,JJe=OJe.document,KJe=OJe.process,YJe=Nse.f,QJe=YJe,XJe=!!(JJe&&JJe.createEvent&&OJe.dispatchEvent),$Je="unhandledrejection",eKe="rejectionhandled",tKe=1,nKe=2,rKe=1,iKe=2,oKe=function(e){var t;return!(!NJe(e)||!TJe(t=e.then))&&t},aKe=function(n,i){n.notified||(n.notified=!0,RJe(function(){for(var e,r,t=n.reactions;e=t.get();)tJe(e,n);n.notified=!1,i&&!n.rejection&&(r=n,kJe(DJe,OJe,function(){var e=r.facade,t=r.value,n=lKe(r);if(n&&(n=FJe(function(){SJe?KJe.emit("unhandledRejection",t,e):sKe($Je,e,t)}),r.rejection=SJe||lKe(r)?iKe:rKe,n.error))throw n.value}))}))},sKe=function(e,t,n){var r;XJe?((r=JJe.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),OJe.dispatchEvent(r)):r={promise:t,reason:n},!zJe&&(t=OJe["on"+e])?t(r):e===$Je&&LJe("Unhandled promise rejection",n)},lKe=function(e){return e.rejection!==rKe&&!e.parent},cKe=function(t,n,r){return function(e){t(n,e,r)}},uKe=function(e,t,n){e.done||(e.done=!0,(e=n?n:e).value=t,e.state=nKe,aKe(e,!0))},dKe=function(n,e,t){if(!n.done){n.done=!0,t&&(n=t);try{if(n.facade===e)throw GJe("Promise can't be resolved itself");var r=oKe(e);r?RJe(function(){var t={done:!1};try{kJe(r,e,cKe(dKe,t,n),cKe(uKe,t,n))}catch(e){uKe(t,e,n)}}):(n.value=e,n.state=tKe,aKe(n,!1))}catch(e){uKe({done:!1},e,n)}}};if(Lse&&(ZJe=(WJe=function(e){MJe(this,ZJe),EJe(e),kJe(cJe,this);var t=qJe(this);try{e(cKe(dKe,t),cKe(uKe,t))}catch(e){uKe(t,e)}}).prototype,(cJe=function(e){_Je(this,{type:BJe,done:!1,notified:!1,parent:!1,reactions:new VJe,rejection:!1,state:0,value:void 0})}).prototype=l(ZJe,"then",function(e,t){var n=qJe(this),r=YJe(PJe(this,WJe));return n.parent=!0,r.ok=!TJe(e)||e,r.fail=TJe(t)&&t,r.domain=SJe?KJe.domain:void 0,0==n.state?n.reactions.add(r):RJe(function(){tJe(r,n)}),r.promise}),uJe=function(){var e=new cJe,t=qJe(e);this.promise=e,this.resolve=cKe(dKe,t),this.reject=cKe(uKe,t)},Nse.f=YJe=function(e){return e===WJe||void 0===e?new uJe:QJe(e)},TJe(UJe))&&Use!==Object.prototype){dJe=Use.then,Fse||l(Use,"then",function(e,t){var n=this;return new WJe(function(e,t){kJe(dJe,n,e,t)}).then(e,t)},{unsafe:!0});try{delete Use.constructor}catch(e){}Ose&&Ose(Use,ZJe)}jse({global:!0,constructor:!0,wrap:!0,forced:Lse},{Promise:WJe}),Ese(WJe,BJe,!1),Ase(BJe);function pKe(e,t){this.stopped=e,this.result=t}function gKe(e,t,n){function r(e){return o&&EKe(o,"normal",e),new pKe(!0,e)}function i(e){return p?(AKe(e),h?m(e[0],e[1],r):m(e[0],e[1])):h?m(e,r):m(e)}var o,a,s,l,c,u,d=n&&n.that,p=!(!n||!n.AS_ENTRIES),g=!(!n||!n.IS_RECORD),f=!(!n||!n.IS_ITERATOR),h=!(!n||!n.INTERRUPTED),m=bKe(t,d);if(g)o=e.iterator;else if(f)o=e;else{if(!(n=kKe(e)))throw TKe(IKe(e)+" is not iterable");if(wKe(n)){for(a=0,s=jKe(e);a<s;a++)if((l=i(e[a]))&&SKe(NKe,l))return l;return new pKe(!1)}o=OKe(e,n)}for(c=(g?e:o).next;!(u=CKe(c,o)).done;){try{l=i(u.value)}catch(e){EKe(o,"throw",e)}if("object"==typeof l&&l&&SKe(NKe,l))return l}return new pKe(!1)}var fKe=Oq,hKe=ZFe("iterator"),mKe=Array.prototype,vKe=Mae,yKe=KFe,xKe=zFe,bKe=Y_e,CKe=Mae,AKe=KFe,IKe=UFe,wKe=function(e){return void 0!==e&&(fKe.Array===e||mKe[hKe]===e)},jKe=tVe,SKe=xse,OKe=X_e,kKe=Q_e,EKe=function(e,t,n){var r,i;yKe(e);try{if(!(r=xKe(e,"return"))){if("throw"===t)throw n;return n}r=vKe(r,e)}catch(e){i=!0,r=e}if("throw"===t)throw n;if(i)throw r;return yKe(r),n},TKe=TypeError,NKe=pKe.prototype,MKe=ZFe("iterator"),PKe=!1;try{var DKe=0,RKe={next:function(){return{done:!!DKe++}},return:function(){PKe=!0}};RKe[MKe]=function(){return this},Array.from(RKe,function(){throw 2})}catch(e){}var LKe=Yae,Mse=function(e,t){if(!t&&!PKe)return!1;var n=!1;try{var r={};r[MKe]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch(e){}return n},Pse=mse.CONSTRUCTOR||!Mse(function(e){LKe.all(e).then(void 0,function(){})}),FKe=Mae,VKe=BFe,HKe=vse,UKe=XGe,BKe=gKe,Wse=(aVe({target:"Promise",stat:!0,forced:Pse},{all:function(e){var s=this,t=HKe.f(s),l=t.resolve,c=t.reject,n=UKe(function(){var r=VKe(s.resolve),i=[],o=0,a=1;BKe(e,function(e){var t=o++,n=!1;a++,FKe(r,s,e).then(function(e){n||(n=!0,i[t]=e,--a)||l(i)},c)}),--a||l(i)});return n.error&&c(n.value),t.promise}}),aVe),Zse=Yae,Dse=HFe,Gse=FFe,Jse=QFe,$se=Zse&&Zse.prototype;Wse({target:"Promise",proto:!0,forced:mse.CONSTRUCTOR,real:!0},{catch:function(e){return this.then(void 0,e)}}),Gse(Zse)&&(rle=Dse("Promise").prototype.catch,$se.catch!==rle)&&Jse($se,"catch",rle,{unsafe:!0});var zKe=Mae,qKe=BFe,_Ke=vse,WKe=XGe,ZKe=gKe;aVe({target:"Promise",stat:!0,forced:Pse},{race:function(e){var n=this,r=_Ke.f(n),i=r.reject,t=WKe(function(){var t=qKe(n.resolve);ZKe(e,function(e){zKe(t,n,e).then(r.resolve,i)})});return t.error&&i(t.value),r.promise}});var GKe=Mae,JKe=vse,KKe=(aVe({target:"Promise",stat:!0,forced:mse.CONSTRUCTOR},{reject:function(e){var t=JKe.f(this);return GKe(t.reject,void 0,e),t.promise}}),KFe),YKe=VFe,QKe=vse,nle=aVe,tle=HFe,sle=mse.CONSTRUCTOR,XKe=function(e,t){return KKe(e),YKe(t)&&t.constructor===e?t:((0,(e=QKe.f(e)).resolve)(t),e.promise)};tle("Promise"),nle({target:"Promise",stat:!0,forced:sle},{resolve:function(e){return XKe(this,e)}});const $Ke=()=>q_e(void 0,void 0,void 0,function*(){let t=[];try{var e=yield fetch(Sqe()+"/api/admin/openid");t=200===e.status?(yield e.json()).results:(window.DEBUG&&console.error("was not able to retrieve global open id providers",e),[])}catch(e){window.DEBUG&&console.error("was not able to retrieve global open id providers",e),t=[]}return t}),eYe=n=>q_e(void 0,void 0,void 0,function*(){let t=[];try{var e=yield fetch(Sqe()+"/api/admin/openid/org/"+n);t=200===e.status?(yield e.json()).results:(window.DEBUG&&console.error("was not able to retrieve global open id providers",e),[])}catch(e){window.DEBUG&&console.error("was not able to retrieve global open id providers",e),t=[]}return t}),tYe=(e,t,n)=>fetch(Sqe()+"/api/admin/openid/linkUserToOid",{method:"POST",credentials:"include",headers:{"Content-Type":"application/json; charset=utf-8"},body:JSON.stringify({userName:e,password:t,sessionKey:n})}),nYe=(n,r)=>q_e(void 0,void 0,void 0,function*(){var e=Sqe(!0),t={query:`
|
|
1486
|
+
`,l={entityId:t,entityType:e};try{a=yield AX({query:s,operationName:n,variables:l,graphEndpoint:u,token:d})}catch(e){i=!0}if(a.errors){if(0===(o=a.errors.filter(({message:e})=>e.includes(' does not exist in "AuthPermissionType" enum.')).map(({message:e})=>{var t='Value "',n=e.substring(t.length).indexOf('"');return e.substring(t.length,t.length+n)})).length)throw i=!0,a={},new Error((null==(g=(a.errors||[])[0])?void 0:g.message)||"Error")}else i=!0}const c=a.data||{};return Object.keys(c).map(e=>{var t=e.split("__");return 3===t.length?{fetchedTargetEntityType:t[0],fetchedTargetGroupType:t[1],fetchedTargetAction:t[2],hasPermission:c[e][0].hasPermission}:{fetchedTargetEntityType:t[0],fetchedTargetAction:t[1],hasPermission:c[e][0].hasPermission}}).reduce((e,t)=>{var n=t.fetchedTargetGroupType||t.fetchedTargetEntityType;return t.hasPermission&&(e[n]||(e[n]={}),e[n][t.fetchedTargetAction]=t.hasPermission),e},{})})}function lFe(t){return aFe(this,void 0,void 0,function*(){var e="getMyRights";return(yield A(Object.assign({query:"\n query getMyRights {\n myRights {\n operations\n }\n }\n ",operationName:e},t))).myRights.operations})}const cFe=(t,n,r)=>e=>{return t&&n&&(e=e[iFe].permissionsByObject[t])&&e[n]?e[n][r||t]:void 0},uFe=e=>e[iFe].rights;var dFe=Object.freeze({__proto__:null,selectPermissionsByEntity:cFe,selectMyRights:uFe});function*pFe(t){var{entityId:t,entityType:n}=t.payload,i=yield T(J$),e=yield T(M$),o=yield T(c$),a=yield T(y$),r=yield T(cFe(n,t));if(!r||"success"!==r.status&&"pending"!==r.status){yield k(oFe.fetchObjectPermissionsStarted({entityId:t,entityType:n}));try{let r={};if(a)r=yield E(sFe,e,o,{entityType:n,entityId:t});else{let e=yield T(uFe);if("success"!==e.status&&"pending"!==e.status){yield k(oFe.fetchMyRightsStarted);try{var s=yield E(lFe,i);yield k(oFe.fetchMyRightsSucceeded(s)),e=yield T(uFe)}catch(e){throw yield k(oFe.fetchMyRightsFailed),e}}else"pending"===e.status&&(yield X1([oFe.fetchMyRightsFailed,oFe.fetchMyRightsSucceeded]),e=yield T(uFe));const l=e["myRights"];tFe(n).forEach(n=>{var{action:e,resource:t}=n.targetActions.reduce((e,t)=>(e.action[t.targetAction]=((e,t,n)=>{const r=(null==(e=JLe[e])?void 0:e[t])||[];return 0<n.filter(e=>r&&r.includes(e)).length})(t.resource||n.targetObjectType,t.targetAction,l),e.resource=t.resource,e),{action:{}});r[t||n.targetObjectType]=e})}yield k(oFe.fetchObjectPermissionsSucceeded({entityId:t,entityType:n,permissions:r}))}catch(e){oFe.fetchObjectPermissionsFailed({entityId:t,entityType:n})}}}function*gFe(){yield $1([function*(){yield lP(oFe.fetchObjectPermissionsStart.type,pFe)}()])}const fFe=e=>{const t=De.exports.useRef(),n=de(),r=null==(o=ue(d$).organization)?void 0:o.organizationId,i=ue(cFe(qLe.Organization,String(r),e));De.exports.useEffect(()=>{!r||i&&"failure"!==i.status&&"idle"!==i.status&&t.current===r||(t.current=r,n(oFe.fetchObjectPermissionsStart({entityType:qLe.Organization,entityId:String(r)})))},[n,r,i]);var o=De.exports.useCallback(e=>{return!nFe(i)&&rFe(i,e)},[i]);return{permissions:i,hasPermission:o}},hFe=new class{constructor(){this.lastCall=null}checkIfCanCall(e=1){return e<1&&(e=1),(!this.lastCall||(new Date).getTime()-this.lastCall>=6e4*e)&&(this.lastCall=(new Date).getTime(),!0)}};Hh.addModules([{id:dLe,reducerMap:{[dLe]:pLe},sagas:[CLe],initialActions:[]},(fae=aLe,mae=sLe,{id:pQ,reducerMap:{panels:(e,{type:t,payload:n})=>{switch(t){case gQ({}).type:{var r=[...e],i=(n.panelConfig.show=!0,n.panelConfig);const a=null==i?void 0:i.parentPanelId;var i=null==i?void 0:i.dimmedStatus;return"dimAllParents"===i?[...r.map(e=>{return Object.assign(Object.assign({},e),{panelConfig:Object.assign(Object.assign({},e.panelConfig),{dimmed:((null==(e=e.panelConfig)?void 0:e.dimmed)||0)+1})})}),n]:a&&i?(r[i=e.findIndex(e=>e.panelId===a)]=Object.assign(Object.assign({},r[i]),{panelConfig:Object.assign(Object.assign({},null==(o=r[i])?void 0:o.panelConfig),{dimmed:((null==(i=null==(o=r[i])?void 0:o.panelConfig)?void 0:i.dimmed)||0)+1})}),[...r,n]):[...e,n]}case hQ("").type:{i=null==(o=e.find(e=>e.panelId===n))?void 0:o.panelConfig;const s=null==i?void 0:i.parentPanelId;var r=null==i?void 0:i.dimmedStatus,o=e.filter(e=>e.panelId!==n);return"dimAllParents"===r?o.map(e=>{return Object.assign(Object.assign({},e),{panelConfig:Object.assign(Object.assign({},e.panelConfig),{dimmed:((null==(e=e.panelConfig)?void 0:e.dimmed)||0)-1})})}):(s&&r&&-1!==(i=e.findIndex(e=>e.panelId===s))&&(o[i]=Object.assign(Object.assign({},o[i]),{panelConfig:Object.assign(Object.assign({},o[i].panelConfig),{dimmed:((null==(r=o[i].panelConfig)?void 0:r.dimmed)||0)-1})})),o)}case mQ("").type:i=e.find(e=>e.panelId===n),r=e.filter(e=>e.panelId!==n),i=Object.assign(Object.assign({},i),{panelConfig:Object.assign(Object.assign({},null==i?void 0:i.panelConfig),{show:!1})});return[...r,i];case xQ("").type:return e.map(e=>Object.assign(Object.assign({},e),{panelConfig:Object.assign(Object.assign({},null==e?void 0:e.panelConfig),{show:!1})}));case vQ({}).type:o=e.find(e=>e.panelId===n.id),r=e.filter(e=>e.panelId!==n.id),o=Object.assign(Object.assign({},o),{microFrontend:Object.assign(Object.assign({},null==o?void 0:o.microFrontend),{config:n.props})});return[...r,o]}return e||[]}},sagas:[function(p,g){const f={};return function*(){yield lP(gQ({}).type,function*(e){const{panelId:t,microFrontend:{name:n},panelConfig:r}=null==e?void 0:e.payload;let i=void 0;g&&(i=p[r.type]||(yield E(g,r.type)),yield tf(g,n));var o,a,s,l=i||p[r.type],c=(r.siblingPanelId?(c=yield T(e=>e.panels.find(e=>e.panelId===r.siblingPanelId)))&&OQ(c.panelConfig.ancestorCenterPanelId)&&({panelConfig:{marginTop:o=0,marginStart:u=0,zIndex:s=1e3},panelId:a}=c,a=(null==(a=null===document||void 0===document?void 0:document.getElementById(a))?void 0:a.clientWidth)||650,r.marginTop=0!==r.marginTop&&jQ(o)||r.marginTop,r.marginStart=0===r.marginTop?r.marginStart:jQ(u)+a,r.zIndex=r.zIndex||s,r.ancestorCenterPanelId=c.panelConfig.ancestorCenterPanelId):r.parentPanelId&&(o=yield T(e=>e.panels.find(e=>e.panelId===r.parentPanelId)))&&(OQ(o.panelId)||OQ(o.panelConfig.ancestorCenterPanelId))&&({panelConfig:{marginTop:u=0,marginStart:a=0,zIndex:s=1e3}}=o,r.marginTop=0!==r.marginTop&&jQ(u)||r.marginTop,r.marginStart=0===r.marginTop?r.marginStart:jQ(a),r.zIndex=r.zIndex||s,r.ancestorCenterPanelId=o.panelConfig.ancestorCenterPanelId||o.panelId),wQ(t)),u=tB(c);u.classList.add("aiware-el");let d;f[c]?d=f[c]:(d=We.createRoot(u),f[c]=d),d.render(nt.exports.jsx(ZO,{children:nt.exports.jsx(FO,{children:nt.exports.jsx(rg,Object.assign({store:Hh},{children:nt.exports.jsx(Tb,Object.assign({onClickAway:AQ},{children:nt.exports.jsx(IQ,{children:nt.exports.jsx(l,Object.assign({type:"SIMPLE_PANEL",panelId:t,"data-test":"panel-"+t},{children:nt.exports.jsx(pe,Object.assign({sx:{display:"flex",justifyContent:"center",my:20}},{children:nt.exports.jsx(L4,{size:50})}))}))})}))}))})})),yield k(fQ(e.payload))}),yield lP(fQ({}).type,function*(e){var{panelId:e,microFrontend:{name:t},panelConfig:n}=(null==e?void 0:e.payload)||{};let r=null;var t=(r=g?yield E(g,t):r)||p[t]||(()=>nt.exports.jsx("div",{children:"Component Not Found."})),n=p[n.type],i=wQ(e);tB(i).classList.add("aiware-el"),f[i].render(nt.exports.jsx(ZO,{children:nt.exports.jsx(FO,{children:nt.exports.jsx(rg,Object.assign({store:Hh},{children:nt.exports.jsx(Tb,Object.assign({onClickAway:AQ},{children:nt.exports.jsx(IQ,{children:nt.exports.jsx(n,Object.assign({type:"SIMPLE_PANEL",panelId:e,"data-test":"panel-"+e},{children:nt.exports.jsx(t,{})}))})}))}))})}))}),yield lP(hQ("").type,function*(t){var e=yield T(e=>e.panels.find(e=>{return(null==(e=null==e?void 0:e.panelConfig)?void 0:e.parentPanelId)===t.payload}));e&&0<Object.keys(e).length&&(yield k(hQ(e.panelId))),setTimeout(()=>{var e=wQ(t.payload);f[e]&&f[e].unmount(),delete f[e]})}),yield lP(yQ.type,function(e){var e=null==(e=null==e?void 0:e.payload)?void 0:e.url,t=document.createElement("a");t.target="_blank",t.href=e,t.click()})}}(fae,mae)],initialActions:[]}),{id:"data",reducerMap:{data:(e,{type:t,payload:n})=>{return t===_te({}).type?[...e.filter(e=>e.id!==n.id),n]:e||[]}},sagas:[],initialActions:[]},nee(),Mte(),{id:iFe,reducerMap:{permissions:uae},sagas:[gFe],initialActions:[]}]);let mFe=!1;const vFe=()=>{var e=ue(u$);return(null==(e=null==e?void 0:e.user)?void 0:e.token)&&!mFe&&(mFe=!0,setTimeout(()=>{Hh.addModules([xTe()])},0)),null};function yFe(){var e=ue(u$);return(null==(e=null==e?void 0:e.user)?void 0:e.token)&&mFe?nt.exports.jsx(GLe,{}):null}xae={updateToken(e){e?Hh.dispatch(VX({token:e})):console.error("[AiWARE JS]: Please provide a valid token!")},logout(e){"function"==typeof e?(e(),setTimeout(()=>{Hh.dispatch(Wte())},1e3)):Hh.dispatch(Wte())},reportAppActivity(e){hFe.checkIfCanCall(e)&&Hh.dispatch(Jte())}};bae=tB("aiWARE"),bae.classList.add("aiware-el"),Cae=We.createRoot(bae),"_auth"===window.name?Mee(window.location.hash,window.opener):Cae.render(nt.exports.jsx(ZO,{children:nt.exports.jsxs(FO,{children:[nt.exports.jsx(function(){return nt.exports.jsxs(nt.exports.Fragment,{children:[nt.exports.jsx(SLe,{}),nt.exports.jsx(rg,Object.assign({store:Hh},{children:nt.exports.jsx(vFe,{})}))]})},{}),nt.exports.jsx(function(){return nt.exports.jsx(rg,Object.assign({store:Hh},{children:nt.exports.jsx(sg,Object.assign({modules:[Zee()]},{children:nt.exports.jsx(ILe,{})}))}))},{}),nt.exports.jsx(function(){return nt.exports.jsx(nt.exports.Fragment,{children:nt.exports.jsx(rg,Object.assign({store:Hh},{children:nt.exports.jsx(qte,{children:nt.exports.jsx(yFe,{})})}))})},{}),nt.exports.jsx(()=>(ob(),null),{})]})})),yae=(e,t)=>{var n=XU(),{name:e,elementId:r,config:i}=e;return e&&r&&i||console.error("[aiwarejs-error]: `mountWidget` function should include all the following params: name, elementId, config"),Hh.dispatch(gLe({elementId:r,widgetName:e,widgetConfig:i,widgetId:n,onComplete:t})),n},Aae=e=>(Hh.dispatch(mLe(e)),!0),jae=(e,t)=>{const n=e.panelId||XU();var{microFrontend:e,panelConfig:r}=e;Hh.dispatch(gQ({microFrontend:e,panelId:n,panelConfig:r}));const i=[...(null==(e=null==r?void 0:r.header)?void 0:e.actions)||[],...(null==(e=null==r?void 0:r.footer)?void 0:e.actions)||[]].filter(e=>e.submit).map(e=>e.action);r={id:n,sagas:[function*(){yield lP(i.map(e=>e.type),function*(){var e=(yield T(e=>e.data.find(e=>e.id===n)))["data"];t&&t(e)})}]};return Hh.addModule(r),n},Oae=e=>(Hh.dispatch(hQ(e)),!0),kae=e=>(Hh.dispatch(mQ(e)),!0);function xFe(e,t){(n=e).applicationId||console.info("@aiware/js: applicationId is required. Go to developer app to find your application id."),n.baseUrl||console.info("@aiware/js: baseUrl is required. It defaults to the US Commercial environment which is https://api.us-1.veritone.com/v3/graphql");var n=e["authToken"],n=(t=>{if(null==t||!t.trim())return t;try{return window.btoa(window.atob(t))==t?window.atob(t):t}catch(e){return t}})(n||"");Hh.dispatch(r$(Object.assign(Object.assign({},e),{authToken:n,onComplete:t})))}Iae={on:function(e,t){bFe(e),vX.on.call(vX,e,t)},off:function(e){bFe(e),vX.off.call(vX,e)}};function bFe(e){if(!e||"string"!=typeof e)throw new mX("Please provide a valid event name!");if(!kQ[e])throw new mX("Unknown event: "+e)}function CFe(n,e,r,t){void 0===r&&(r=global),void 0===t&&(t={});var i=De.exports.useRef(),o=t.capture,a=t.passive,s=t.once;De.exports.useEffect(function(){i.current=e},[e]),De.exports.useEffect(function(){var e,t;if(r&&r.addEventListener)return r.addEventListener(n,e=function(e){return i.current(e)},t={capture:o,passive:a,once:s}),function(){r.removeEventListener(n,e,t)}},[n,r,o,a,s])}window&&(window.aiWare_initTesting=()=>{window.aiWare_store=Hh,window.aiWare_theme={darkTheme:DO,lightTheme:RO}},window.aiware={init:xFe,auth:xae,helpCenter:{openKnowledgeBasePanel:(Tae=new yX({actions:{setCustomKnowledgeBaseUrlAction:kLe,setCustomDocsUrlAction:ELe,updateSelectedTabAction:OLe}})).openKnowledgeBasePanel.bind(Tae),openDocsPanel:Tae.openDocsPanel.bind(Tae)},dataCenter:{openImporterPanel:(Pae=new fX).openImporterPanel.bind(Pae)},on:Iae.on,off:Iae.off,hidePanel:kae,unmountPanel:Oae,store:Hh,registry:aLe,registerComponent:vz,AvailableWidgets:d.AvailableWidgets,mountPanelAction:gQ,unmountPanelAction:hQ,hidePanelAction:mQ,updatePanelMicroFrontendPropsAction:vQ,setData:_te,mountWidget:yae,mountPanel:jae,mountPanelForResponse:e=>CQ(e,Hh),unmountWidget:Aae,version:"sdk_release_version",commit:"bf4bc4f00",releaseDate:"2023-07-11T16:29:18.127Z"}),window.global=window;var AFe={};function IFe(l,e){var c,n;return(e=void 0===e?"undefined"!=typeof global&&global.localStorage?global.localStorage:"undefined"!=typeof globalThis&&globalThis.localStorage?globalThis.localStorage:"undefined"!=typeof window&&window.localStorage?window.localStorage:"undefined"!=typeof localStorage?localStorage:null:e)?(n=e,c={get:function(e,t){e=n.getItem(e);return null==e?"function"==typeof t?t():t:JSON.parse(e)},set:function(e,t){n.setItem(e,JSON.stringify(t))}},function(e){return t=e,i=l,n=c.get,r=c.set,o=De.exports.useRef(null),e=De.exports.useState(function(){return n(i,t)}),a=e[0],s=e[1],CFe("storage",function(e){e.key===i&&(e=JSON.parse(e.newValue),a!==e)&&s(e)}),De.exports.useEffect(function(){return o.current=(r=s,e=t,AFe[n=i]||(AFe[n]={callbacks:[],value:e}),AFe[n].callbacks.push(r),{deregister:function(){var e=AFe[n].callbacks,t=e.indexOf(r);-1<t&&e.splice(t,1)},emit:function(t){AFe[n].value!==t&&(AFe[n].value=t,AFe[n].callbacks.forEach(function(e){r!==e&&e(t)}))}}),function(){o.current.deregister()};var n,r,e},[t,i]),e=De.exports.useCallback(function(e){var t="function"==typeof e?e(a):e;r(i,t),s(t),o.current.emit(e)},[a,r,i]),[a,e];var t,i,n,r,o,a,s}):De.exports.useState}function wFe(){}var jFe={classList:{add:wFe,remove:wFe}},SFe=function(e,t,n){void 0===n&&(n=global);var e=e?IFe(e,t):De.exports.useState,r=n.matchMedia?n.matchMedia("(prefers-color-scheme: dark)"):{},i="(prefers-color-scheme: dark)"===r.media,o=n.document&&n.document.body||jFe;return{usePersistedDarkModeState:e,getDefaultOnChange:function(t,n,r){return void 0===t&&(t=o),void 0===n&&(n="dark-mode"),void 0===r&&(r="light-mode"),function(e){t.classList.add(e?n:r),t.classList.remove(e?r:n)}},mediaQueryEventTarget:{addEventListener:function(e,t){return r.addListener&&r.addListener(t)},removeEventListener:function(e,t){return r.removeListener&&r.removeListener(t)}},getInitialValue:function(e){return i?r.matches:e}}};const OFe="theme-switcher",kFe="search-bar",EFe=fe()(e=>({appBarContainer:{display:"flex",padding:"8px",justifyContent:"space-between",alignItems:"center"},margin:{marginTop:54}})),TFe={};["en","es","fr"].forEach(e=>{TFe[e]={}});function NFe(e){return e&&e.Math==Math&&e}function MFe(e){try{return!!e()}catch(e){return!0}}function PFe(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}function DFe(e){return IVe(AVe(e),8,-1)}function RFe(e){if(null==e)throw OVe("Can't call method on "+e);return e}function LFe(e){return kVe(EVe(e))}function FFe(e){return"function"==typeof e}function VFe(e){return"object"==typeof e?null!==e:TVe(e)}function HFe(e,t){return arguments.length<2?(n=NVe[e],MVe(n)?n:void 0):NVe[e]&&NVe[e][t];var n}function UFe(e){try{return VVe(e)}catch(e){return"Object"}}function BFe(e){if(HVe(e))return e;throw BVe(UVe(e)+" is not a function")}function zFe(e,t){return null==(e=e[t])?void 0:zVe(e)}function qFe(t,n){try{JVe(GVe,t,{value:n,configurable:!0,writable:!0})}catch(e){GVe[t]=n}return n}function _Fe(e){return QVe(YVe(e))}function WFe(e){return"Symbol("+(void 0===e?"":e)+")_"+nHe(++eHe+tHe,36)}function ZFe(e){var t;return rHe(aHe,e)&&(iHe||"string"==typeof aHe[e])||(t="Symbol."+e,iHe&&rHe(sHe,e)?aHe[e]=sHe[e]:aHe[e]=(oHe&&lHe?lHe:cHe)(t)),aHe[e]}function GFe(e){return e=vHe(e,"string"),yHe(e)?e:e+""}function JFe(e){return bHe?xHe.createElement(e):{}}function KFe(e){if(THe(e))return e;throw MHe(NHe(e)+" is not an object")}function YFe(e){return ZHe[e]||(ZHe[e]=WHe(e))}function QFe(e,t,n,r){var i=(r=r||{}).enumerable,o=void 0!==r.name?r.name:t;if(lUe(n)&&uUe(n,o,r),r.global)i?e[t]=n:dUe(t,n);else{try{r.unsafe?e[t]&&(i=!0):delete e[t]}catch(e){}i?e[t]=n:cUe.f(e,t,{value:n,enumerable:!1,configurable:!r.nonConfigurable,writable:!r.nonWritable})}return e}function XFe(e){return(e=+e)!=e||0==e?0:fUe(e)}function $Fe(e,t){return(e=hUe(e))<0?mUe(e+t,0):vUe(e,t)}function eVe(e){return 0<e?xUe(yUe(e),9007199254740991):0}function tVe(e){return bUe(e.length)}function nVe(s){return function(e,t,n){var r,i=CUe(e),o=IUe(i),a=AUe(n,o);if(s&&t!=t){for(;a<o;)if((r=i[a++])!=r)return!0}else for(;a<o;a++)if((s||a in i)&&i[a]===t)return s||a||0;return!s&&-1}}function rVe(e,t){var n,r=jUe(e),i=0,o=[];for(n in r)!wUe(OUe,n)&&wUe(r,n)&&kUe(o,n);for(;t.length>i;)!wUe(r,n=t[i++])||~SUe(o,n)||kUe(o,n);return o}function iVe(e,t,n){for(var r=LUe(t),i=VUe.f,o=FUe.f,a=0;a<r.length;a++){var s=r[a];RUe(e,s)||n&&RUe(n,s)||i(e,s,o(t,s))}}function oVe(e,t){return(e=qUe[zUe(e)])==WUe||e!=_Ue&&(UUe(t)?HUe(t):!!t)}function aVe(e,t){var n,r,i,o=e.target,a=e.global,s=e.stat,l=a?ZUe:s?ZUe[o]||YUe(o,{}):(ZUe[o]||{}).prototype;if(l)for(n in t){if(r=t[n],i=e.dontCallGetSet?(i=GUe(l,n))&&i.value:l[n],!XUe(a?n:o+(s?".":"#")+n,e.forced)&&void 0!==i){if(typeof r==typeof i)continue;QUe(r,i)}(e.sham||i&&i.sham)&&JUe(r,"sham",!0),KUe(l,n,r,e)}}var sVe,lVe,cVe,uVe,dVe,pVe,gVe,fVe,hVe=Object.freeze({__proto__:null,APP_BAR:"app-bar",SEARCH_BAR:kFe,SampleAppBar:e=>{var t=EFe()["classes"];const[n,r]=De.exports.useState("en"),[,i]=De.exports.useState({});De.exports.useEffect(()=>{e.locale&&r(e.locale)},[e.locale]),De.exports.useEffect(()=>{i(TFe[n])},[n]);void 0===y&&(y=!1),a=(o=void 0===o?{}:o).element,s=o.classNameDark,l=o.classNameLight,c=o.onChange,void 0===(u=o.storageKey)&&(u="darkMode"),d=o.storageProvider,p=o.global,g=(o=De.exports.useMemo(function(){return SFe(u,d,p)},[u,d,p])).getDefaultOnChange,f=o.mediaQueryEventTarget,h=(o=(0,o.usePersistedDarkModeState)((0,o.getInitialValue)(y)))[0],m=o[1],v=De.exports.useMemo(function(){return c||g(a,s,l)},[c,a,s,l,g]),De.exports.useEffect(function(){v(h)},[v,h]),CFe("change",function(e){return m(e.matches)},f);var o,a,s,l,c,u,d,p,g,f,h,m,v,y={value:h,enable:De.exports.useCallback(function(){return m(!0)},[m]),disable:De.exports.useCallback(function(){return m(!1)},[m]),toggle:De.exports.useCallback(function(){return m(function(e){return!e})},[m])};return nt.exports.jsxs(nt.exports.Fragment,{children:[nt.exports.jsx(rg,Object.assign({store:e.store||Hh},{children:nt.exports.jsx(uI,Object.assign({"data-test":"app-bar"},{children:nt.exports.jsxs("div",Object.assign({className:t.appBarContainer},{children:[nt.exports.jsx(ae,Object.assign({variant:"subtitle2"},{children:"App Name"})),nt.exports.jsx(ae,Object.assign({"data-test":kFe},{children:nt.exports.jsx(qte,Object.assign({locale:n},{children:nt.exports.jsx(oe,{id:"os-sample-app-bar.hXq2hF",defaultMessage:"Search Bar",description:"Primary Search Bar Place Holder Text"})}))})),nt.exports.jsxs("div",{children:["☀",nt.exports.jsx(Zj,{"data-test":OFe,onChange:y.toggle,checked:y.value}),"☾"]})]}))}))})),nt.exports.jsx("div",{className:t.margin})]})},THEME_SWITCHER:OFe}),Lae={},a=B.exports,Fae=(Object.defineProperty(Lae,"__esModule",{value:!0}),Lae.default=void 0,a(__)),zae=nt.exports,Uae=(0,Fae.default)((0,zae.jsx)("path",{d:"M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5zM12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5zm0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3z"}),"Visibility"),mVe=Lae.default=Uae,qae={},_ae=B.exports,s=(Object.defineProperty(qae,"__esModule",{value:!0}),qae.default=void 0,_ae(__)),Kae=nt.exports,Yae=(0,s.default)((0,Kae.jsx)("path",{d:"M12 7c2.76 0 5 2.24 5 5 0 .65-.13 1.26-.36 1.83l2.92 2.92c1.51-1.26 2.7-2.89 3.43-4.75-1.73-4.39-6-7.5-11-7.5-1.4 0-2.74.25-3.98.7l2.16 2.16C10.74 7.13 11.35 7 12 7zM2 4.27l2.28 2.28.46.46C3.08 8.3 1.78 10.02 1 12c1.73 4.39 6 7.5 11 7.5 1.55 0 3.03-.3 4.38-.84l.42.42L19.73 22 21 20.73 3.27 3 2 4.27zM7.53 9.8l1.55 1.55c-.05.21-.08.43-.08.65 0 1.66 1.34 3 3 3 .22 0 .44-.03.65-.08l1.55 1.55c-.67.33-1.41.53-2.2.53-2.76 0-5-2.24-5-5 0-.79.2-1.53.53-2.2zm4.31-.78 3.15 3.15.02-.16c0-1.66-1.34-3-3-3l-.17.01z"}),"VisibilityOff"),vVe=qae.default=Yae,rse="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},nse=NFe("object"==typeof globalThis&&globalThis)||NFe("object"==typeof window&&window)||NFe("object"==typeof self&&self)||NFe("object"==typeof rse&&rse)||function(){return this}()||Function("return this")(),ose={},ase=!MFe(function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}),ise=!MFe(function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}),yVe=Function.prototype.call,Mae=ise?yVe.bind(yVe):function(){return yVe.apply(yVe,arguments)},sse={},cse={}.propertyIsEnumerable,xVe=Object.getOwnPropertyDescriptor,gse=xVe&&!cse.call({1:2},1),Loe=(sse.f=gse?function(e){e=xVe(this,e);return!!e&&e.enumerable}:cse,ise),hae=Function.prototype,G_=hae.bind,bVe=hae.call,CVe=Loe&&G_.bind(bVe,bVe),hse=Loe?function(e){return e&&CVe(e)}:function(e){return e&&function(){return bVe.apply(e,arguments)}},mse=hse,AVe=mse({}.toString),IVe=mse("".slice),vse=MFe,wVe=DFe,jVe=Object,SVe=hse("".split),fse=vse(function(){return!jVe("z").propertyIsEnumerable(0)})?function(e){return"String"==wVe(e)?SVe(e,""):jVe(e)}:jVe,OVe=TypeError,kVe=fse,EVe=RFe,TVe=FFe,NVe=nse,MVe=FFe,xse=hse({}.isPrototypeOf),Cse=HFe("navigator","userAgent")||"",Ase=Cse,jse=nse.process,l=nse.Deno,Ose=jse&&jse.versions||l&&l.version,Ese=Ose&&Ose.v8,Tse=UJe=!(UJe=Ese?0<(HJe=Ese.split("."))[0]&&HJe[0]<4?1:+(HJe[0]+HJe[1]):UJe)&&Ase&&(!(HJe=Ase.match(/Edge\/(\d+)/))||74<=HJe[1])&&(HJe=Ase.match(/Chrome\/(\d+)/))?+HJe[1]:UJe,PVe=Tse,Nse=MFe,Mse=!!Object.getOwnPropertySymbols&&!Nse(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&PVe&&PVe<41}),Pse=Mse&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,DVe=HFe,RVe=FFe,LVe=xse,FVe=Object,Dse=Pse?function(e){return"symbol"==typeof e}:function(e){var t=DVe("Symbol");return RVe(t)&&LVe(t.prototype,FVe(e))},VVe=String,HVe=FFe,UVe=UFe,BVe=TypeError,zVe=BFe,qVe=Mae,_Ve=FFe,WVe=VFe,ZVe=TypeError,bse={exports:{}},GVe=nse,JVe=Object.defineProperty,Lse=qFe,Fse="__core-js_shared__",zse=nse[Fse]||Lse(Fse,{}),KVe=zse,YVe=((bse.exports=function(e,t){return KVe[e]||(KVe[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.24.1",mode:"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.24.1/LICENSE",source:"https://github.com/zloirock/core-js"}),RFe),QVe=Object,XVe=_Fe,$Ve=hse({}.hasOwnProperty),Hse=Object.hasOwn||function(e,t){return $Ve(XVe(e),t)},Use=hse,eHe=0,tHe=Math.random(),nHe=Use(1..toString),Wse=nse,rHe=Hse,Zse=WFe,iHe=Mse,oHe=Pse,aHe=(0,bse.exports)("wks"),sHe=Wse.Symbol,lHe=sHe&&sHe.for,cHe=oHe?sHe:sHe&&sHe.withoutSetter||Zse,uHe=Mae,dHe=VFe,pHe=Dse,gHe=zFe,fHe=function(e,t){var n,r;if("string"===t&&_Ve(n=e.toString)&&!WVe(r=qVe(n,e)))return r;if(_Ve(n=e.valueOf)&&!WVe(r=qVe(n,e)))return r;if("string"!==t&&_Ve(n=e.toString)&&!WVe(r=qVe(n,e)))return r;throw ZVe("Can't convert object to primitive value")},hHe=TypeError,mHe=ZFe("toPrimitive"),vHe=function(e,t){if(!dHe(e)||pHe(e))return e;var n=gHe(e,mHe);if(n){if(n=uHe(n,e,t=void 0===t?"default":t),!dHe(n)||pHe(n))return n;throw hHe("Can't convert object to primitive value")}return fHe(e,t=void 0===t?"number":t)},yHe=Dse,Gse=VFe,xHe=nse.document,bHe=Gse(xHe)&&Gse(xHe.createElement),CHe=JFe,Jse=!ase&&!MFe(function(){return 7!=Object.defineProperty(CHe("div"),"a",{get:function(){return 7}}).a}),AHe=Mae,IHe=sse,wHe=PFe,jHe=LFe,SHe=GFe,OHe=Hse,kHe=Jse,EHe=Object.getOwnPropertyDescriptor,Yse=(ose.f=ase?EHe:function(e,t){if(e=jHe(e),t=SHe(t),kHe)try{return EHe(e,t)}catch(e){}if(OHe(e,t))return wHe(!AHe(IHe.f,e,t),e[t])},{}),Qse=ase&&MFe(function(){return 42!=Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype}),THe=VFe,NHe=String,MHe=TypeError,PHe=Jse,DHe=KFe,RHe=GFe,LHe=TypeError,FHe=Object.defineProperty,VHe=Object.getOwnPropertyDescriptor,HHe="enumerable",UHe="configurable",BHe="writable",$se=(Yse.f=ase?Qse?function(e,t,n){var r;return DHe(e),t=RHe(t),DHe(n),"function"==typeof e&&"prototype"===t&&"value"in n&&BHe in n&&!n[BHe]&&(r=VHe(e,t))&&r[BHe]&&(e[t]=n.value,n={configurable:(UHe in n?n:r)[UHe],enumerable:(HHe in n?n:r)[HHe],writable:!1}),FHe(e,t,n)}:FHe:function(e,t,n){if(DHe(e),t=RHe(t),DHe(n),PHe)try{return FHe(e,t,n)}catch(e){}if("get"in n||"set"in n)throw LHe("Accessors not supported");return"value"in n&&(e[t]=n.value),e},ase),zHe=Yse,qHe=PFe,ele=$se?function(e,t,n){return zHe.f(e,t,qHe(1,n))}:function(e,t,n){return e[t]=n,e},Rse={exports:{}},tle=ase,rle=Hse,ile=Function.prototype,sle=tle&&Object.getOwnPropertyDescriptor,nle=rle(ile,"name"),cle={EXISTS:nle,PROPER:nle&&"something"===function(){}.name,CONFIGURABLE:nle&&(!tle||sle(ile,"name").configurable)},ule=FFe,ple=zse,_He=hse(Function.toString),gle=(ule(ple.inspectSource)||(ple.inspectSource=function(e){return _He(e)}),ple.inspectSource),hle=FFe,fle=gle,mle=nse.WeakMap,vle=hle(mle)&&/native code/.test(fle(mle)),WHe=WFe,ZHe=(0,bse.exports)("keys"),yle={},xle=hse,GHe=VFe,JHe=ele,KHe=Hse,ble=zse,Cle=YFe,Ile=yle,YHe="Object already initialized",QHe=nse.TypeError,Sle=nse.WeakMap,wle=(gVe=vle||ble.state?(sVe=ble.state||(ble.state=new Sle),lVe=xle(sVe.get),cVe=xle(sVe.has),uVe=xle(sVe.set),dVe=function(e,t){if(cVe(sVe,e))throw new QHe(YHe);return t.facade=e,uVe(sVe,e,t),t},pVe=function(e){return lVe(sVe,e)||{}},function(e){return cVe(sVe,e)}):(Ile[fVe=Cle("state")]=!0,dVe=function(e,t){if(KHe(e,fVe))throw new QHe(YHe);return t.facade=e,JHe(e,fVe,t),t},pVe=function(e){return KHe(e,fVe)?e[fVe]:{}},function(e){return KHe(e,fVe)}),{set:dVe,get:pVe,has:gVe,enforce:function(e){return gVe(e)?pVe(e):dVe(e,{})},getterFor:function(t){return function(e){if(GHe(e)&&(e=pVe(e)).type===t)return e;throw QHe("Incompatible receiver, "+t+" required")}}}),Ole=MFe,XHe=FFe,$He=Hse,eUe=ase,tUe=cle.CONFIGURABLE,nUe=gle,rUe=wle.enforce,iUe=wle.get,oUe=Object.defineProperty,aUe=eUe&&!Ole(function(){return 8!==oUe(function(){},"length",{value:8}).length}),sUe=String(String).split("String"),Nle=Rse.exports=function(e,t,n){"Symbol("===String(t).slice(0,7)&&(t="["+String(t).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),n&&n.getter&&(t="get "+t),n&&n.setter&&(t="set "+t),(!$He(e,"name")||tUe&&e.name!==t)&&(eUe?oUe(e,"name",{value:t,configurable:!0}):e.name=t),aUe&&n&&$He(n,"arity")&&e.length!==n.arity&&oUe(e,"length",{value:n.arity});try{n&&$He(n,"constructor")&&n.constructor?eUe&&oUe(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}n=rUe(e);return $He(n,"source")||(n.source=sUe.join("string"==typeof t?t:"")),e},lUe=(Function.prototype.toString=Nle(function(){return XHe(this)&&iUe(this).source||nUe(this)},"toString"),FFe),cUe=Yse,uUe=Rse.exports,dUe=qFe,Tle={},pUe=Math.ceil,gUe=Math.floor,fUe=Math.trunc||function(e){e=+e;return(0<e?gUe:pUe)(e)},hUe=XFe,mUe=Math.max,vUe=Math.min,yUe=XFe,xUe=Math.min,bUe=eVe,CUe=LFe,AUe=$Fe,IUe=tVe,Mle={includes:nVe(!0),indexOf:nVe(!1)},Vle=hse,wUe=Hse,jUe=LFe,SUe=Mle.indexOf,OUe=yle,kUe=Vle([].push),Ple=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],EUe=rVe,TUe=Ple.concat("length","prototype"),Ble=(Tle.f=Object.getOwnPropertyNames||function(e){return EUe(e,TUe)},{}),zle=(Ble.f=Object.getOwnPropertySymbols,HFe),NUe=Tle,MUe=Ble,PUe=KFe,DUe=hse([].concat),Wle=zle("Reflect","ownKeys")||function(e){var t=NUe.f(PUe(e)),n=MUe.f;return n?DUe(t,n(e)):t},RUe=Hse,LUe=Wle,FUe=ose,VUe=Yse,HUe=MFe,UUe=FFe,BUe=/#|\.prototype\./,zUe=oVe.normalize=function(e){return String(e).replace(BUe,".").toLowerCase()},qUe=oVe.data={},_Ue=oVe.NATIVE="N",WUe=oVe.POLYFILL="P",_le=oVe,ZUe=nse,GUe=ose.f,JUe=ele,KUe=QFe,YUe=qFe,QUe=iVe,XUe=_le,$Ue=rVe,eBe=Ple,Jle=Object.keys||function(e){return $Ue(e,eBe)},tBe=ase,Yle=hse,nBe=Mae,dce=MFe,rBe=Jle,iBe=Ble,oBe=sse,aBe=_Fe,sBe=fse,lBe=Object.assign,cBe=Object.defineProperty,uBe=Yle([].concat),Ale=!lBe||dce(function(){var e,t,n,r;return tBe&&1!==lBe({b:1},lBe(cBe({},"a",{enumerable:!0,get:function(){cBe(this,"b",{value:3,enumerable:!1})}}),{b:2})).b||(t={},r="abcdefghijklmnopqrst",(e={})[n=Symbol()]=7,r.split("").forEach(function(e){t[e]=e}),7!=lBe({},e)[n])||rBe(lBe({},t)).join("")!=r})?function(e,t){for(var n=aBe(e),r=arguments.length,i=1,o=iBe.f,a=oBe.f;i<r;)for(var s,l=sBe(arguments[i++]),c=o?uBe(rBe(l),o(l)):rBe(l),u=c.length,d=0;d<u;)s=c[d++],tBe&&!nBe(a,l,s)||(n[s]=l[s]);return n}:lBe,Xle=(aVe({target:"Object",stat:!0,arity:2,forced:Object.assign!==Ale},{assign:Ale}),{}),dBe=Yse,pBe=KFe,gBe=LFe,fBe=Jle;Xle.f=ase&&!Qse?Object.defineProperties:function(e,t){pBe(e);for(var n,r=gBe(t),i=fBe(t),o=i.length,a=0;a<o;)dBe.f(e,n=i[a++],r[n]);return e};function hBe(){}function mBe(e){e.write(OBe("")),e.close();var t=e.parentWindow.Object;return e=null,t}function vBe(e){TBe[EBe][e]=!0}var yBe,$le=HFe("document","documentElement"),xBe=KFe,bBe=Xle,CBe=Ple,gce=yle,ABe=$le,IBe=JFe,wBe="prototype",jBe="script",SBe=YFe("IE_PROTO"),OBe=function(e){return"<"+jBe+">"+e+"</"+jBe+">"},kBe=function(){try{yBe=new ActiveXObject("htmlfile")}catch(e){}kBe="undefined"==typeof document||document.domain&&yBe?mBe(yBe):(e=IBe("iframe"),t="java"+jBe+":",e.style.display="none",ABe.appendChild(e),e.src=String(t),(t=e.contentWindow.document).open(),t.write(OBe("document.F=Object")),t.close(),t.F);for(var e,t,n=CBe.length;n--;)delete kBe[wBe][CBe[n]];return kBe()},tce=(gce[SBe]=!0,Object.create||function(e,t){var n;return null!==e?(hBe[wBe]=xBe(e),n=new hBe,hBe[wBe]=null,n[SBe]=e):n=kBe(),void 0===t?n:bBe.f(n,t)}),rce=ZFe,pce=tce,ece=Yse.f,EBe=rce("unscopables"),TBe=Array.prototype,hce=(null==TBe[EBe]&&ece(TBe,EBe,{configurable:!0,value:pce(null)}),aVe),NBe=Mle.includes,mce=vBe,MBe=(hce({target:"Array",proto:!0,forced:MFe(function(){return!Array(1).includes()})},{includes:function(e){return NBe(this,e,1<arguments.length?arguments[1]:void 0)}}),mce("includes"),VFe),PBe=DFe,DBe=ZFe("match"),RBe=function(e){var t;return MBe(e)&&(void 0!==(t=e[DBe])?!!t:"RegExp"==PBe(e))},LBe=TypeError,fce={};fce[ZFe("toStringTag")]="z";function FBe(e){if("Symbol"===JBe(e))throw TypeError("Cannot convert a Symbol value to a string");return KBe(e)}function VBe(){var e=tze(this),t="";return e.hasIndices&&(t+="d"),e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.unicodeSets&&(t+="v"),e.sticky&&(t+="y"),t}function HBe(n,e,t,r){var a,i=Sze(n),s=!jze(function(){var e={};return e[i]=function(){return 7},7!=""[n](e)}),o=s&&!jze(function(){var e=!1,t=/a/;return"split"===n&&((t={constructor:{}}).constructor[kze]=function(){return t},t.flags="",t[i]=/./[i]),t.exec=function(){return e=!0,null},t[i](""),!e});s&&o&&!t||(a=Aze(/./[i]),o=e(i,""[n],function(e,t,n,r,i){var e=Aze(e),o=t.exec;return o===wze||o===Eze.exec?s&&!i?{done:!0,value:a(t,n,r)}:{done:!0,value:e(n,t,r)}:{done:!1}}),Ize(String.prototype,n,o[0]),Ize(Eze,i,o[1])),r&&Oze(Eze[i],"sham",!0)}function UBe(i){return function(e,t){var n,e=Nze(Mze(e)),t=Tze(t),r=e.length;return t<0||r<=t?i?"":void 0:(n=Dze(e,t))<55296||56319<n||t+1===r||(r=Dze(e,t+1))<56320||57343<r?i?Pze(e,t):n:i?Rze(e,t,t+2):r-56320+(n-55296<<10)+65536}}function BBe(e,t,n){return t+(n?Lze(e,t).length:1)}function zBe(e,t){var n=e.exec;if(Zze(n))return null!==(n=_ze(n,e,t))&&Wze(n),n;if("RegExp"===Gze(e))return _ze(Jze,e,t);throw Kze("RegExp#exec called on incompatible receiver")}var yce="[object z]"===String(fce),qBe=FFe,_Be=DFe,WBe=ZFe("toStringTag"),ZBe=Object,GBe="Arguments"==_Be(function(){return arguments}()),vce=yce?_Be:function(e){var t;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(t=function(e,t){try{return e[t]}catch(e){}}(e=ZBe(e),WBe))?t:GBe?_Be(e):"Object"==(t=_Be(e))&&qBe(e.callee)?"Arguments":t},JBe=vce,KBe=String,YBe=ZFe("match"),bce=aVe,QBe=function(e){if(RBe(e))throw LBe("The method doesn't accept regular expressions");return e},XBe=RFe,$Be=FBe,xce=function(t){var n=/./;try{"/./"[t](n)}catch(e){try{return n[YBe]=!1,"/./"[t](n)}catch(e){}}return!1},eze=hse("".indexOf),tze=(bce({target:"String",proto:!0,forced:!xce("includes")},{includes:function(e){return!!~eze($Be(XBe(this)),$Be(QBe(e)),1<arguments.length?arguments[1]:void 0)}}),KFe),Ice=MFe,nze=nse.RegExp,Sce=Ice(function(){var e=nze("a","y");return e.lastIndex=2,null!=e.exec("abcd")}),Ace=Sce||Ice(function(){return!nze("a","y").sticky}),Cce={BROKEN_CARET:Sce||Ice(function(){var e=nze("^r","gy");return e.lastIndex=2,null!=e.exec("str")}),MISSED_STICKY:Ace,UNSUPPORTED_Y:Sce},Yce=MFe,rze=nse.RegExp,wce=Yce(function(){var e=rze(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)}),Pce=MFe,ize=nse.RegExp,kce=Pce(function(){var e=ize("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")}),oze=Mae,Tce=hse,aze=FBe,sze=VBe,Mce=Cce,Fce=bse.exports,lze=tce,cze=wle.get,Ece=wce,Nce=kce,uze=Fce("native-string-replace",String.prototype.replace),dze=RegExp.prototype.exec,pze=dze,gze=Tce("".charAt),fze=Tce("".indexOf),hze=Tce("".replace),mze=Tce("".slice),vze=(Wce=/b*/g,oze(dze,Rce=/a/,"a"),oze(dze,Wce,"a"),0!==Rce.lastIndex||0!==Wce.lastIndex),yze=Mce.BROKEN_CARET,xze=void 0!==/()??/.exec("")[1],Vce=pze=vze||xze||yze||Ece||Nce?function(e){var t,n,r,i,o,a,s=this,l=cze(s),e=aze(e),c=l.raw;if(c)return c.lastIndex=s.lastIndex,d=oze(pze,c,e),s.lastIndex=c.lastIndex,d;var u=l.groups,c=yze&&s.sticky,d=oze(sze,s),l=s.source,p=0,g=e;if(c&&(d=hze(d,"y",""),-1===fze(d,"g")&&(d+="g"),g=mze(e,s.lastIndex),0<s.lastIndex&&(!s.multiline||s.multiline&&"\n"!==gze(e,s.lastIndex-1))&&(l="(?: "+l+")",g=" "+g,p++),t=new RegExp("^(?:"+l+")",d)),xze&&(t=new RegExp("^"+l+"$(?!\\s)",d)),vze&&(n=s.lastIndex),r=oze(dze,c?t:s,g),c?r?(r.input=mze(r.input,p),r[0]=mze(r[0],p),r.index=s.lastIndex,s.lastIndex+=r[0].length):s.lastIndex=0:vze&&r&&(s.lastIndex=s.global?r.index+r[0].length:n),xze&&r&&1<r.length&&oze(uze,r[0],t,function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(r[i]=void 0)}),r&&u)for(r.groups=o=lze(null),i=0;i<u.length;i++)o[(a=u[i])[0]]=r[a[1]];return r}:pze,Hce=(aVe({target:"RegExp",proto:!0,forced:/./.exec!==Vce},{exec:Vce}),ise),_ce=Function.prototype,bze=_ce.apply,Cze=_ce.call,Zce="object"==typeof Reflect&&Reflect.apply||(Hce?Cze.bind(bze):function(){return Cze.apply(bze,arguments)}),Aze=hse,Ize=QFe,wze=Vce,jze=MFe,Sze=ZFe,Oze=ele,kze=Sze("species"),Eze=RegExp.prototype,Qce=hse,Tze=XFe,Nze=FBe,Mze=RFe,Pze=Qce("".charAt),Dze=Qce("".charCodeAt),Rze=Qce("".slice),Lze={codeAt:UBe(!1),charAt:UBe(!0)}.charAt,Dce=hse,Fze=_Fe,Vze=Math.floor,Hze=Dce("".charAt),Uze=Dce("".replace),Bze=Dce("".slice),zze=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,qze=/\$([$&'`]|\d{1,2})/g,_ze=Mae,Wze=KFe,Zze=FFe,Gze=DFe,Jze=Vce,Kze=TypeError,Yze=Zce,Qze=Mae,Bce=hse,Lce=HBe,zce=MFe,Xze=KFe,$ze=FFe,eqe=XFe,tqe=eVe,nqe=FBe,rqe=RFe,iqe=BBe,oqe=zFe,aqe=function(o,a,s,l,c,e){var u=s+o.length,d=l.length,t=qze;return void 0!==c&&(c=Fze(c),t=zze),Uze(e,t,function(e,t){var n;switch(Hze(t,0)){case"$":return"$";case"&":return o;case"`":return Bze(a,0,s);case"'":return Bze(a,u);case"<":n=c[Bze(t,1,-1)];break;default:var r,i=+t;if(0==i)return e;if(d<i)return 0!==(r=Vze(i/10))&&r<=d?void 0===l[r-1]?Hze(t,1):l[r-1]+Hze(t,1):e;n=l[i-1]}return void 0===n?"":n})},sqe=zBe,lqe=ZFe("replace"),cqe=Math.max,uqe=Math.min,dqe=Bce([].concat),pqe=Bce([].push),gqe=Bce("".indexOf),fqe=Bce("".slice),qce="$0"==="a".replace(/./,"$0"),hqe=!!/./[lqe]&&""===/./[lqe]("a","$0"),mqe=(Lce("replace",function(e,x,b){var C=hqe?"$":"$0";return[function(e,t){var n=rqe(this),r=null==e?void 0:oqe(e,lqe);return r?Qze(r,e,n,t):Qze(x,nqe(n),e,t)},function(e,t){var n=Xze(this),r=nqe(e);if("string"==typeof t&&-1===gqe(t,C)&&-1===gqe(t,"$<")){e=b(x,n,r,t);if(e.done)return e.value}for(var i,o=$ze(t),a=(o||(t=nqe(t)),n.global),s=(a&&(i=n.unicode,n.lastIndex=0),[]);null!==(p=sqe(n,r))&&(pqe(s,p),a);)""===nqe(p[0])&&(n.lastIndex=iqe(r,tqe(n.lastIndex),i));for(var l,c="",u=0,d=0;d<s.length;d++){for(var p,g=nqe((p=s[d])[0]),f=cqe(uqe(eqe(p.index),r.length),0),h=[],m=1;m<p.length;m++)pqe(h,void 0===(l=p[m])?l:String(l));var v=p.groups,y=o?(y=dqe([g],h,f,r),void 0!==v&&pqe(y,v),nqe(Yze(t,void 0,y))):aqe(g,r,f,h,v,t);u<=f&&(c+=fqe(r,u,f)+y,u=f+g.length)}return c+fqe(r,u)}]},!!zce(function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")})||!qce||hqe),Mae),vqe=Hse,yqe=xse,xqe=VBe,bqe=RegExp.prototype,Gce=cle.PROPER,Jce=QFe,Cqe=KFe,Aqe=FBe,Uce=MFe,Iqe=function(e){var t=e.flags;return void 0!==t||"flags"in bqe||vqe(e,"flags")||!yqe(bqe,e)?t:mqe(xqe,e)},yq="toString",wqe=RegExp.prototype[yq],QH=Uce(function(){return"/a/b"!=wqe.call({source:"a",flags:"b"})}),o=Gce&&wqe.name!=yq;(QH||o)&&Jce(RegExp.prototype,yq,function(){var e=Cqe(this);return"/"+Aqe(e.source)+"/"+Aqe(Iqe(e))},{unsafe:!0});const jqe={resetPasswordTitle:nt.exports.jsx(oe,{id:"os-auth.reset-password.title",defaultMessage:"New password required",description:"Title of the reset password widget"}),resetPasswordSubHeader:nt.exports.jsx(oe,{id:"os-auth.reset-password.subHeader",defaultMessage:"A strong password contains a mix of numbers, letters and symbols. It is hard to guess, does not resemble a real word and is only used for this account.",description:"Description of the reset password widget"}),passwordRequirements:nt.exports.jsx(oe,{id:"os-auth.reset-password.passwordRequirements",defaultMessage:"Password requirements",description:"Heading of password requirements"}),resetPasswordSubmitButton:nt.exports.jsx(oe,{id:"os-auth.reset-password.submitButton",defaultMessage:"Change Password",description:"Text of submit button for reset password"}),lengthCheck:nt.exports.jsx(oe,{id:"os-auth.reset-password.lengthCheck",defaultMessage:"8 Character minimum",description:"The error message for the lengthCheck."}),pastPasswordCheck:nt.exports.jsx(oe,{id:"os-auth.reset-password.pastPasswordCheck",defaultMessage:"Not identical to last 10 passwords",description:"The error message for the pastPasswordCheck."}),userNameCheck:nt.exports.jsx(oe,{id:"os-auth.reset-password.userNameCheck",defaultMessage:"Not the same as account email",description:"The error message for the userNameCheck."}),dictionaryCheck:nt.exports.jsx(oe,{id:"os-auth.reset-password.dictionaryCheck",defaultMessage:"No dictionary passwords",description:"The error message for the dictionaryCheck."}),passwordsNotMatching:nt.exports.jsx(oe,{id:"os-auth.reset-password.passwordsNotMatching",defaultMessage:"Passwords not matching",description:"The error message for the passwords not matching."}),invalidTokenOrUsername:nt.exports.jsx(oe,{id:"os-auth.reset-password.invalidTokenOrUsername",defaultMessage:"Error! Missing token or username.",description:"The error message for the missing token or username."}),passwordComplexityCheckSymbols:nt.exports.jsx(oe,{id:"os-auth.reset-password.passwordComplexityCheckSymbols",defaultMessage:"Requires 1 lowercase, 1 uppercase, 1 number, and 1 symbol.",description:"The error message for the check symbols error."}),passwordComplexityCheckDays:nt.exports.jsx(oe,{id:"os-auth.reset-password.passwordComplexityCheckDays",defaultMessage:"Cannot be changed twice within 10 days.",description:"The error message for the days error."})},Sqe=(e=!1)=>{var t=window.location.host;if(t.includes("local"))return e?"https://api.stage.us-1.veritone.com/v3/graphql":"https://api.stage.us-1.veritone.com";var t=t.split("."),n=t.findIndex(e=>"dev"===e||"stage"===e);let r="";return r=-1!==n?"veritone"!==t[n+1]?t[n]+"."+t[n+1]:t[n]+".us-1":(n=t.findIndex(e=>"veritone"===e),"aiware2"!==t[n-1]?t[n-1]:"us-1"),e?`https://api.${r}.veritone.com/v3/graphql`:`https://api.${r}.veritone.com`};const Oqe=({text:e,subText:t,type:n})=>nt.exports.jsxs(pe,Object.assign({sx:{marginBottom:"30px",textAlign:"center"}},{children:[nt.exports.jsx(ae,Object.assign({sx:{fontFamily:"Nunito",fontSize:"22px",lineHeight:"18px",letterSpacing:"-1.30385e-09px",color:"#2A323C"},"data-testid":"os-auth-header-text-"+n},{children:e})),t&&nt.exports.jsx(ae,Object.assign({sx:{fontFamily:"Nunito",fontSize:"16px",lineHeight:"22px",textAlign:"center",letterSpacing:"-1.30385e-09px",color:"#5C6269",marginTop:"10px",width:"368px"},"data-testid":"os-auth-subheader-text-"+n},{children:t}))]})),kqe=fe()(e=>({title:{textTransform:"initial",fontSize:22,marginBottom:e.spacing(4)},subHeader:{color:"#9CA8B4"},h6:{color:"#27292B"},requirements:{listStyle:"disc",padding:0,marginLeft:e.spacing(5),"& li":{marginBottom:e.spacing(1),color:"#27292B",fontSize:14,fontWeight:400,"&.requirementError":{color:"#D50000"}}},submitButton:{height:55,background:"#214167",fontSize:18,width:"100%",maxWidth:380,textTransform:"uppercase"},text:{fontFamily:"Nunito",fontWeight:400,fontSize:"22px",lineHeight:"18px",letterSpacing:"-1.30385e-09px",color:"#2A323C"},subText:{fontFamily:"'Nunito Sans'",fontWeight:400,fontSize:"16px",lineHeight:"22px",textAlign:"center",letterSpacing:"-1.30385e-09px",color:"#5C6269"}}));var Eqe,Oq={},r=!MFe(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),Tqe=Hse,Nqe=FFe,Mqe=_Fe,wg=r,Pqe=YFe("IE_PROTO"),Dqe=Object,Rqe=Dqe.prototype,Ag=wg?Dqe.getPrototypeOf:function(e){var t,e=Mqe(e);return Tqe(e,Pqe)?e[Pqe]:(t=e.constructor,Nqe(t)&&e instanceof t?t.prototype:e instanceof Dqe?Rqe:null)},mq=MFe,Kce=FFe,ny=Ag,Ez=QFe,Lqe=ZFe("iterator"),m=!1;[].keys&&("next"in($v=[].keys())?(KMe=ny(ny($v)))!==Object.prototype&&(Eqe=KMe):m=!0);function Fqe(e,t,n){(e=e&&!n?e.prototype:e)&&!zqe(e,qqe)&&Bqe(e,qqe,{configurable:!0,value:t})}function Vqe(){return this}function Hqe(e,t,n,r){return t+=" Iterator",e.prototype=Wqe(_qe,{next:Zqe(+!r,n)}),Gqe(e,t,!1),Jqe[t]=Vqe,e}function Uqe(){return this}Kce((Eqe=null==Eqe||mq(function(){var e={};return Eqe[Lqe].call(e)!==e})?{}:Eqe)[Lqe])||Ez(Eqe,Lqe,function(){return this});var i={IteratorPrototype:Eqe,BUGGY_SAFARI_ITERATORS:m},Bqe=Yse.f,zqe=Hse,qqe=ZFe("toStringTag"),_qe=i.IteratorPrototype,Wqe=tce,Zqe=PFe,Gqe=Fqe,Jqe=Oq,Kqe=FFe,Yqe=String,Qqe=TypeError,Xqe=hse,$qe=KFe,e_e=function(e){if("object"==typeof e||Kqe(e))return e;throw Qqe("Can't set "+Yqe(e)+" as a prototype")},t=Object.setPrototypeOf||("__proto__"in{}?function(){var n,r=!1,e={};try{(n=Xqe(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(e,[]),r=e instanceof Array}catch(e){}return function(e,t){return $qe(e),e_e(t),r?n(e,t):e.__proto__=t,e}}():void 0),t_e=aVe,n_e=Mae,r_e=FFe,i_e=Hqe,o_e=Ag,a_e=t,s_e=Fqe,l_e=ele,c_e=QFe,oz=ZFe,u_e=Oq,d_e=cle.PROPER,p_e=cle.CONFIGURABLE,g_e=i.IteratorPrototype,f_e=i.BUGGY_SAFARI_ITERATORS,h_e=oz("iterator"),m_e="values",v_e=LFe,bq=vBe,ty=Oq,ry=wle,yz=Yse.f,ey=function(e,t,n,r,i,o,a){i_e(n,t,r);function s(e){if(e===i&&g)return g;if(!f_e&&e in d)return d[e];switch(e){case"keys":case m_e:case"entries":return function(){return new n(this,e)}}return function(){return new n(this)}}var l,c,r=t+" Iterator",u=!1,d=e.prototype,p=d[h_e]||d["@@iterator"]||i&&d[i],g=!f_e&&p||s(i),f="Array"==t&&d.entries||p;if(f&&(f=o_e(f.call(new e)))!==Object.prototype&&f.next&&(o_e(f)!==g_e&&(a_e?a_e(f,g_e):r_e(f[h_e])||c_e(f,h_e,Uqe)),s_e(f,r,!0)),d_e&&i==m_e&&p&&p.name!==m_e&&(p_e?l_e(d,"name",m_e):(u=!0,g=function(){return n_e(p,this)})),i)if(l={values:s(m_e),keys:o?g:s("keys"),entries:s("entries")},a)for(c in l)!f_e&&!u&&c in d||c_e(d,c,l[c]);else t_e({target:t,proto:!0,forced:f_e||u},l);return d[h_e]!==g&&c_e(d,h_e,g,{name:i}),u_e[t]=g,l},iy=ase,y_e="Array Iterator",x_e=ry.set,b_e=ry.getterFor(y_e),J_=ey(Array,"Array",function(e,t){x_e(this,{type:y_e,target:v_e(e),index:0,kind:t})},function(){var e=b_e(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?{value:e.target=void 0,done:!0}:"keys"==n?{value:r,done:!1}:"values"==n?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}},"values"),wz=ty.Arguments=ty.Array;if(bq("keys"),bq("values"),bq("entries"),iy&&"values"!==wz.name)try{yz(wz,"name",{value:"values"})}catch(e){}function C_e(t,e){if(t){if(t[O_e]!==E_e)try{S_e(t,O_e,E_e)}catch(e){t[O_e]=E_e}if(t[k_e]||S_e(t,k_e,e),w_e[e])for(var n in j_e)if(t[n]!==j_e[n])try{S_e(t,n,j_e[n])}catch(e){t[n]=j_e[n]}}}var A_e,XH=JFe("span").classList,toe=XH&&XH.constructor&&XH.constructor.prototype,WH=toe===Object.prototype?void 0:toe,I_e=nse,w_e={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},aoe=WH,j_e=J_,S_e=ele,ioe=ZFe,O_e=ioe("iterator"),k_e=ioe("toStringTag"),E_e=j_e.values;for(A_e in w_e)C_e(I_e[A_e]&&I_e[A_e].prototype,A_e);C_e(aoe,"DOMTokenList");var T_e,N_e,M_e,P_e,D_e,R_e,L_e,F_e,poe=aVe,Doe=hse,V_e=Hse,boe=FFe,H_e=xse,U_e=FBe,foe=Yse.f,hoe=iVe,B_e=nse.Symbol,z_e=B_e&&B_e.prototype;function q_e(e,a,s,l){return new(s=s||Promise)(function(n,t){function r(e){try{o(l.next(e))}catch(e){t(e)}}function i(e){try{o(l.throw(e))}catch(e){t(e)}}function o(e){var t;e.done?n(e.value):((t=e.value)instanceof s?t:new s(function(e){e(t)})).then(r,i)}o((l=l.apply(e,a||[])).next())})}!ase||!boe(B_e)||"description"in z_e&&void 0===B_e().description||(T_e={},hoe(doe=function(){var e=arguments.length<1||void 0===arguments[0]?void 0:U_e(arguments[0]),t=H_e(z_e,this)?new B_e(e):void 0===e?B_e():B_e(e);return""===e&&(T_e[t]=!0),t},B_e),(doe.prototype=z_e).constructor=doe,N_e="Symbol(test)"==String(B_e("test")),M_e=Doe(z_e.toString),P_e=Doe(z_e.valueOf),D_e=/^Symbol\((.*)\)[^)]+$/,R_e=Doe("".replace),L_e=Doe("".slice),foe(z_e,"description",{configurable:!0,get:function(){var e=P_e(this),t=M_e(e);return V_e(T_e,e)?"":""===(e=N_e?L_e(t,7,-1):R_e(t,D_e,"$1"))?void 0:e}}),poe({global:!0,constructor:!0,forced:!0},{Symbol:doe}));const __e=({onClick:e,text:t,type:n,loading:r})=>nt.exports.jsx(G6e,Object.assign({color:"primary",variant:"contained",onClick:e,loading:r,sx:{textTransform:"none",fontSize:"18px",lineHeight:"24px",fontFamily:"Nunito",fontWeight:600,width:"368px",height:"56px",backgroundColor:"#2C78D4"},"data-testid":`os-auth--${n}-btn`},{children:t}));function W_e({onBtnClick:e,requiresRestriction:t,disableForm:n=!1,columnView:r=!1,isNewPage:i=!1}){var o=kqe()["classes"],a=ue(C$);const s=ue(v$);var l=ue(b$);const[c,u]=De.exports.useState(""),[d,p]=De.exports.useState(""),[g,f]=De.exports.useState({[F_e.lengthCheck]:null,[F_e.userNameCheck]:null,[F_e.dictionaryCheck]:null,[F_e.pastPasswordCheck]:null,[F_e.passwordComplexityCheck]:null,[F_e.passwordChangeFrequencyCheck]:null}),[h,m]=De.exports.useState(null);a="loading"===a&&l===IX.ResetPassword;const v=ge.exports.isEqual(c,d);l=Object.values(g).includes(!1);var y=()=>{ge.exports.isEmpty(c)||ge.exports.isEmpty(d)||!v||e(c)},x=(De.exports.useEffect(()=>{try{if(s){var e=JSON.parse(s);const t=e["description"],r=function(e,t){var n={};for(i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var r=0,i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]]);return n}(e,["description"]);Object.keys(r).forEach(e=>{var t,n;t=e,n=r[e],f(e=>Object.assign(Object.assign({},e),{[t]:n}))}),m(t)}else m(null)}catch(e){m(s)}finally{p("")}},[s]),[{label:jqe.lengthCheck,error:g[F_e.lengthCheck]},{label:jqe.pastPasswordCheck,error:g[F_e.pastPasswordCheck]},{label:jqe.userNameCheck,error:g[F_e.userNameCheck]},{label:jqe.dictionaryCheck,error:g[F_e.dictionaryCheck]},...g[F_e.passwordComplexityCheck]?[{label:jqe.passwordComplexityCheckSymbols,error:!0},{label:jqe.passwordComplexityCheckDays,error:!0}]:[]]),b={fontFamily:"Nunito",lineHeight:"22px"};return nt.exports.jsx("form",Object.assign({onSubmit:e=>{e.preventDefault()}},{children:nt.exports.jsxs(V,Object.assign({container:!0,spacing:i?3:6,mt:i?0:3},{children:[nt.exports.jsxs(V,Object.assign({item:!0,sm:r?12:7,xs:12},{children:[nt.exports.jsx(M6,Object.assign({fullWidth:!0,sx:{mb:6}},{children:nt.exports.jsx(PO,{"data-testid":"rp-password-field",required:!0,type:"password",id:"password",label:"Password",variant:"outlined",autoFocus:!0,value:c,onChange:e=>u(e.target.value),error:l,autoComplete:"off",disabled:n,InputLabelProps:{style:b}})})),nt.exports.jsx(M6,Object.assign({sx:{fontFamily:"Nunito"},fullWidth:!0},{children:nt.exports.jsx(PO,{"data-testid":"rp-password-confirm-field",required:!0,type:"password",id:"confirm-password",label:"Confirm Password",variant:"outlined",value:d,onChange:e=>p(e.target.value),autoComplete:"off",error:!v&&!!d,helperText:!v&&d&&jqe.passwordsNotMatching,disabled:n,InputLabelProps:{style:b}})})),h&&nt.exports.jsx(eI,Object.assign({sx:{mt:4},variant:"outlined",severity:"error"},{children:h}))]})),t&&nt.exports.jsxs(V,Object.assign({item:!0,sm:r?12:5,xs:12},{children:[nt.exports.jsx(ae,Object.assign({variant:"h6",className:o.h6},{children:jqe.passwordRequirements})),nt.exports.jsx("ul",Object.assign({className:o.requirements,"data-testid":"rp-requirements-list"},{children:x.map((e,t)=>nt.exports.jsx("li",Object.assign({className:Jhe({requirementError:!0===e.error})},{children:e.label}),"pwd-requirement-"+t))}))]})),nt.exports.jsx(V,Object.assign({item:!0,xs:12,justifyContent:"center",display:"flex"},{children:i?nt.exports.jsx(__e,{onClick:y,loading:a,text:jqe.resetPasswordSubmitButton,type:"reset-pw"}):nt.exports.jsx(G6e,Object.assign({"data-testid":"rp-password-submit-button",variant:"contained",disableElevation:!0,size:"large",className:o.submitButton,onClick:y,loading:a,disabled:n},{children:jqe.resetPasswordSubmitButton}))}))]}))}))}(ooe=F_e=F_e||{}).lengthCheck="lengthCheck",ooe.userNameCheck="userNameCheck",ooe.dictionaryCheck="dictionaryCheck",ooe.pastPasswordCheck="pastPasswordCheck",ooe.passwordComplexityCheck="passwordComplexityCheck",ooe.passwordChangeFrequencyCheck="passwordChangeFrequencyCheck";const Z_e=740,G_e=400;function J_e({resetToken:t,username:n,requiresPasswordRestriction:e=!1,onSuccess:r,organizationInviteId:i,containerWidth:o=Z_e,isNewPage:a=!1}){kqe();const s=de(),l=ue(C$),c=ue(b$);De.exports.useEffect(()=>{"success"===l&&c===IX.ResetPassword&&null!=r&&r()},[l,c]);var u=ge.exports.isEmpty(t)||ge.exports.isEmpty(n),d=o<=G_e||!e;return nt.exports.jsxs(pe,Object.assign({p:a?0:4,id:"reset-password-widget",width:o},{children:[a?nt.exports.jsx(Oqe,{text:jqe.resetPasswordTitle,subText:jqe.resetPasswordSubHeader,type:"reset-pw"}):nt.exports.jsxs(nt.exports.Fragment,{children:[nt.exports.jsx(ae,Object.assign({variant:"h1",sx:{textTransform:"initial",fontSize:22,marginBottom:"20px"}},{children:jqe.resetPasswordTitle})),nt.exports.jsx(ae,Object.assign({variant:"body2"},{children:jqe.resetPasswordSubHeader}))]}),u&&nt.exports.jsx(eI,Object.assign({sx:{mt:4},variant:"outlined",severity:"error"},{children:jqe.invalidTokenOrUsername})),nt.exports.jsx(W_e,{onBtnClick:e=>{a?s(qX({resetToken:t,username:n,password:e,organizationInviteId:i,apiUrl:Sqe()})):s(qX({resetToken:t,username:n,password:e,organizationInviteId:i}))},requiresRestriction:e,disableForm:u,columnView:d,isNewPage:a})]}))}function K_e(e,t){if(hWe(t,e))return e;throw mWe("Incorrect invocation")}function Y_e(e,t){return vWe(e),void 0===t?e:yWe?xWe(e,t):function(){return e.apply(t,arguments)}}function Q_e(e){if(null!=e)return CWe(e,IWe)||CWe(e,"@@iterator")||AWe[bWe(e)]}function X_e(e,t){if(t=arguments.length<2?kWe(e):t,jWe(t))return SWe(wWe(t,e));throw EWe(OWe(e)+" is not iterable")}function $_e(e,t){if(e<t)throw TWe("Not enough arguments");return e}function eWe(e,t){var n=e.length,r=UWe(n/2);if(n<8){for(var i,o,a=e,s=t,l=a.length,c=1;c<l;){for(i=a[o=c];o&&0<s(a[o-1],i);)a[o]=a[--o];o!==c++&&(a[o]=i)}return a}for(var u=e,d=eWe(HWe(e,0,r),t),p=eWe(HWe(e,r),t),g=t,f=d.length,h=p.length,m=0,v=0;m<f||v<h;)u[m+v]=m<f&&v<h?g(d[m],p[v])<=0?d[m++]:p[v++]:m<f?d[m++]:p[v++];return u}function tWe(e){var t;return qWe?(t=lZe(BWe,e))&&t.value:BWe[e]}function nWe(t){try{return hZe(t)}catch(e){return t}}function rWe(e){var t,n=bZe(e,jZe," "),r=4;try{return hZe(n)}catch(e){for(;r;)n=bZe(n,(t=r--,SZe[t-1]||(SZe[t-1]=gZe("((?:%[\\da-f]{2}){"+t+"})","gi"))),nWe);return n}}function iWe(e){return kZe[e]}function oWe(e){return bZe(mZe(e),OZe,iWe)}function aWe(e){this.entries=[],this.url=null,void 0!==e&&(KWe(e)?this.parseObject(e):this.parseQuery("string"==typeof e?"?"===vZe(e,0)?wZe(e,1):e:YWe(e)))}function sWe(){_We(this,TZe),oZe(this,new aWe(0<arguments.length?arguments[0]:void 0))}var lWe,cWe,uWe,dWe,pWe,voe=MFe,gWe=ZFe("iterator"),goe=!voe(function(){var e=new URL("b?a=1&b=2&c=3","http://a"),n=e.searchParams,r="";return e.pathname="c%20d",n.forEach(function(e,t){n.delete("b"),r+=t+e}),!n.sort||"http://a/c%20d?a=1&c=3"!==e.href||"3"!==n.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!n[gWe]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("http://тест").host||"#%D0%B1"!==new URL("http://a#б").hash||"a1c3"!==r||"x"!==new URL("http://x",void 0).host}),fWe=QFe,hWe=xse,mWe=TypeError,vWe=BFe,yWe=ise,xWe=hse(hse.bind),bWe=vce,CWe=zFe,AWe=Oq,IWe=ZFe("iterator"),wWe=Mae,jWe=BFe,SWe=KFe,OWe=UFe,kWe=Q_e,EWe=TypeError,TWe=TypeError,NWe=GFe,MWe=Yse,PWe=PFe,DWe=$Fe,RWe=tVe,LWe=function(e,t,n){t=NWe(t);t in e?MWe.f(e,t,PWe(0,n)):e[t]=n},FWe=Array,VWe=Math.max,HWe=function(e,t,n){for(var r=RWe(e),i=DWe(t,r),o=DWe(void 0===n?r:n,r),a=FWe(VWe(o-i,0)),s=0;i<o;i++,s++)LWe(a,s,e[i]);return a.length=s,a},UWe=Math.floor,Foe=aVe,BWe=nse,zWe=Mae,Tq=hse,qWe=ase,jce=goe,Eoe=QFe,woe=function(e,t,n){for(var r in t)fWe(e,r,t[r],n);return e},Toe=Fqe,lce=Hqe,Uoe=wle,_We=K_e,Moe=FFe,WWe=Hse,ZWe=Y_e,GWe=vce,JWe=KFe,KWe=VFe,YWe=FBe,QWe=tce,XWe=PFe,$We=X_e,eZe=Q_e,tZe=$_e,nZe=eWe,Ooe=ZFe("iterator"),rZe="URLSearchParams",iZe=rZe+"Iterator",oZe=Uoe.set,aZe=Uoe.getterFor(rZe),sZe=Uoe.getterFor(iZe),lZe=Object.getOwnPropertyDescriptor,cZe=tWe("fetch"),uZe=tWe("Request"),dZe=tWe("Headers"),pZe=uZe&&uZe.prototype,Aoe=dZe&&dZe.prototype,gZe=BWe.RegExp,fZe=BWe.TypeError,hZe=BWe.decodeURIComponent,mZe=BWe.encodeURIComponent,vZe=Tq("".charAt),yZe=Tq([].join),xZe=Tq([].push),bZe=Tq("".replace),CZe=Tq([].shift),AZe=Tq([].splice),IZe=Tq("".split),wZe=Tq("".slice),jZe=/\+/g,SZe=Array(4),OZe=/[!'()~]|%20/g,kZe={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},EZe=lce(function(e,t){oZe(this,{type:iZe,iterator:$We(aZe(e).entries),kind:t})},"Iterator",function(){var e=sZe(this),t=e.kind,e=e.iterator.next(),n=e.value;return e.done||(e.value="keys"===t?n.key:"values"===t?n.value:[n.key,n.value]),e},!0),TZe=(aWe.prototype={type:rZe,bindURL:function(e){this.url=e,this.update()},parseObject:function(e){var t,n,r,i,o,a,s=eZe(e);if(s)for(n=(t=$We(e,s)).next;!(r=zWe(n,t)).done;){if(i=(r=$We(JWe(r.value))).next,(o=zWe(i,r)).done||(a=zWe(i,r)).done||!zWe(i,r).done)throw fZe("Expected sequence with length 2");xZe(this.entries,{key:YWe(o.value),value:YWe(a.value)})}else for(var l in e)WWe(e,l)&&xZe(this.entries,{key:l,value:YWe(e[l])})},parseQuery:function(e){if(e)for(var t,n=IZe(e,"&"),r=0;r<n.length;)(t=n[r++]).length&&(t=IZe(t,"="),xZe(this.entries,{key:rWe(CZe(t)),value:rWe(yZe(t,"="))}))},serialize:function(){for(var e,t=this.entries,n=[],r=0;r<t.length;)e=t[r++],xZe(n,oWe(e.key)+"="+oWe(e.value));return yZe(n,"&")},update:function(){this.entries.length=0,this.parseQuery(this.url.query)},updateURL:function(){this.url&&this.url.update()}},sWe.prototype),ace=(woe(TZe,{append:function(e,t){tZe(arguments.length,2);var n=aZe(this);xZe(n.entries,{key:YWe(e),value:YWe(t)}),n.updateURL()},delete:function(e){tZe(arguments.length,1);for(var t=aZe(this),n=t.entries,r=YWe(e),i=0;i<n.length;)n[i].key===r?AZe(n,i,1):i++;t.updateURL()},get:function(e){tZe(arguments.length,1);for(var t=aZe(this).entries,n=YWe(e),r=0;r<t.length;r++)if(t[r].key===n)return t[r].value;return null},getAll:function(e){tZe(arguments.length,1);for(var t=aZe(this).entries,n=YWe(e),r=[],i=0;i<t.length;i++)t[i].key===n&&xZe(r,t[i].value);return r},has:function(e){tZe(arguments.length,1);for(var t=aZe(this).entries,n=YWe(e),r=0;r<t.length;)if(t[r++].key===n)return!0;return!1},set:function(e,t){tZe(arguments.length,1);for(var n,r=aZe(this),i=r.entries,o=!1,a=YWe(e),s=YWe(t),l=0;l<i.length;l++)(n=i[l]).key===a&&(o?AZe(i,l--,1):(o=!0,n.value=s));o||xZe(i,{key:a,value:s}),r.updateURL()},sort:function(){var e=aZe(this);nZe(e.entries,function(e,t){return e.key>t.key?1:-1}),e.updateURL()},forEach:function(e){for(var t,n=aZe(this).entries,r=ZWe(e,1<arguments.length?arguments[1]:void 0),i=0;i<n.length;)r((t=n[i++]).value,t.key,this)},keys:function(){return new EZe(this,"keys")},values:function(){return new EZe(this,"values")},entries:function(){return new EZe(this,"entries")}},{enumerable:!0}),Eoe(TZe,Ooe,TZe.entries,{name:"entries"}),Eoe(TZe,"toString",function(){return aZe(this).serialize()},{enumerable:!0}),Toe(sWe,rZe),Foe({global:!0,constructor:!0,forced:!jce},{URLSearchParams:sWe}),!jce&&Moe(dZe)&&(lWe=Tq(Aoe.has),cWe=Tq(Aoe.set),uWe=function(e){if(KWe(e)){var t,n=e.body;if(GWe(n)===rZe)return t=e.headers?new dZe(e.headers):new dZe,lWe(t,"content-type")||cWe(t,"content-type","application/x-www-form-urlencoded;charset=UTF-8"),QWe(e,{body:XWe(0,YWe(n)),headers:XWe(0,t)})}return e},Moe(cZe)&&Foe({global:!0,enumerable:!0,dontCallGetSet:!0,forced:!0},{fetch:function(e){return cZe(e,1<arguments.length?uWe(arguments[1]):{})}}),Moe(uZe))&&((pZe.constructor=sce=function(e){return _We(this,pZe),new uZe(e,1<arguments.length?uWe(arguments[1]):{})}).prototype=pZe,Foe({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:sce})),Object.is||function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}),NZe=Mae,MZe=KFe,PZe=RFe,DZe=ace,RZe=FBe,LZe=zFe,FZe=zBe,VZe=(HBe("search",function(r,i,o){return[function(e){var t=PZe(this),n=null==e?void 0:LZe(e,r);return n?NZe(n,e,t):new RegExp(e)[r](RZe(t))},function(e){var t=MZe(this),e=RZe(e),n=o(i,t,e);return n.done?n.value:(n=t.lastIndex,DZe(n,0)||(t.lastIndex=0),e=FZe(t,e),DZe(t.lastIndex,n)||(t.lastIndex=n),null===e?-1:e.index)}]}),Mae),HZe=KFe,UZe=eVe,BZe=FBe,zZe=RFe,qZe=zFe,_Ze=BBe,WZe=zBe;HBe("match",function(r,s,l){return[function(e){var t=zZe(this),n=null==e?void 0:qZe(e,r);return n?VZe(n,e,t):new RegExp(e)[r](BZe(t))},function(e){var t=HZe(this),n=BZe(e),e=l(s,t,n);if(e.done)return e.value;if(!t.global)return WZe(t,n);for(var r=t.unicode,i=[],o=t.lastIndex=0;null!==(a=WZe(t,n));){var a=BZe(a[0]);""===(i[o]=a)&&(t.lastIndex=_Ze(n,UZe(t.lastIndex),r)),o++}return 0===o?null:i}]});const ZZe={emailLabel:nt.exports.jsx(oe,{id:"os-auth-email-input-label",defaultMessage:"Email",description:"Label Email"}),continueLabel:nt.exports.jsx(oe,{id:"os-auth-email-continue-button",defaultMessage:"Continue",description:"Continue Button"}),emailErrorState:nt.exports.jsx(oe,{id:"os-auth-email-input-field-error-state-label",defaultMessage:"This is an invalid email",description:"Email error state label"}),emptyEmailErrorMsg:nt.exports.jsx(oe,{id:"os-auth-empty-email-input-field-error-state-label",defaultMessage:"Email is required",description:"Empty email error state label"})},GZe=fe()(()=>({emailWrapper:{display:"flex",flexDirection:"column",alignItems:"center",fontFamily:"Nunito","& button":{textTransform:"none",marginTop:"20px",fontSize:"18px",lineHeight:"24px",fontFamily:"Nunito",fontWeight:"600"},"& input":{fontFamily:"Nunito",lineHeight:"22px",color:"#2A323C"},"& .Sdk-MuiOutlinedInput-root":{"&:hover fieldset":{border:"1px solid #DADFE8"},"&.Mui-focused fieldset":{border:"1px solid #DADFE8"},"&.Mui-error.Mui-focused fieldset":{borderColor:"#d32f2f"}},"& .Sdk-MuiFormControl-root .MuiInputLabel-root.Mui-focused":{color:"#9CA8B4",fontFamily:"Nunito"},"& .Sdk-MuiInputLabel-outlined":{color:"#9CA8B4",fontFamily:"Nunito"},"& .Sdk-MuiFormLabel-root .MuiInputLabel-root":{color:"#9CA8B4"},"& .Sdk-Mui-focused .MuiInputLabel-outlined":{color:"#9CA8B4"},"& .Sdk-Mui-error":{color:"#d32f2f !important"}},emailField:{width:"368px",height:"52px"},continueBtn:{width:"368px",height:"56px"}})),JZe=({onNextStep:e,email:t,setEmail:n,isLoading:r,buttonText:i})=>{var o=GZe()["classes"];const[a,s]=De.exports.useState(!1);var{emailLabel:l,emailErrorState:c,emptyEmailErrorMsg:u}=ZZe,c=a?t?c:u:l;const d=()=>{p(t)&&e?(s(!1),e()):s(!0)};const p=e=>e.match(/^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/);return nt.exports.jsxs(pe,Object.assign({className:o.emailWrapper},{children:[nt.exports.jsx(PO,{id:"username","data-testid":"os-auth-email-input-field",label:c,InputProps:{type:"email"},variant:"outlined",value:t,autoComplete:"username",autoFocus:!0,className:o.emailField,error:a,onChange:e=>{e=e.target.value;a&&s(!1),n(e)},onKeyDown:e=>{"Enter"===e.key&&d()}}),i&&nt.exports.jsx(G6e,Object.assign({color:"primary",variant:"contained",onClick:d,className:o.continueBtn,"data-testid":"os-auth-email-continue-btn",loading:r},{children:i}))]}))},KZe=fe()(()=>({passwordWrapper:{fontFamily:"Nunito","& input":{fontFamily:"Nunito",lineHeight:"22px",color:"#2A323C"},"& .Sdk-MuiOutlinedInput-root":{"&:hover fieldset":{border:"1px solid #DADFE8"},"&.Mui-focused fieldset":{border:"1px solid #DADFE8"}},"& .Sdk-MuiFormControl-root .MuiInputLabel-root.Mui-focused":{color:"#9CA8B4",fontFamily:"Nunito"},"& .Sdk-MuiInputLabel-outlined":{color:"#9CA8B4",fontFamily:"Nunito"},"& .Sdk-MuiFormLabel-root .MuiInputLabel-rootd":{color:"#9CA8B4"}}})),YZe=({password:e,onPasswordChange:t,errorMessage:n,onPressEnter:r,autoFocus:i=!0})=>{var o=KZe()["classes"];const[a,s]=De.exports.useState(!1),[l,c]=De.exports.useState("Password");De.exports.useEffect(()=>{n?c(n):c("Password")},[n]);return nt.exports.jsx(pe,Object.assign({className:o.passwordWrapper},{children:nt.exports.jsxs(M6,Object.assign({sx:{width:"100%"},variant:"outlined"},{children:[nt.exports.jsx(D9,Object.assign({htmlFor:"outlined-adornment-password",style:{color:n?"#d32f2f":"#9CA8B4"}},{children:l})),nt.exports.jsx(x8,{id:"outlined-adornment-password","data-testid":"os-auth-password-input-field",type:a?"text":"password",onChange:e=>{e=e.target.value;t(e)},value:e,autoFocus:i,autoComplete:"password",endAdornment:nt.exports.jsx(T9,Object.assign({position:"end"},{children:nt.exports.jsx(le,Object.assign({"aria-label":"toggle password visibility",onClick:()=>s(e=>!e),onMouseDown:e=>{e.preventDefault()},edge:"end"},{children:a?nt.exports.jsx(vVe,{}):nt.exports.jsx(mVe,{})}))})),error:!!n,label:l,onKeyDown:e=>{"Enter"===e.key&&r()}})]}))}))},QZe=fe()(e=>({selectWrapper:{position:"absolute",right:"40px",top:"26px"},selectMenu:{marginTop:e.spacing(1),width:"164px",borderRadius:"10px !important",ul:{padding:"5px"},li:{padding:"10px 8px",borderRadius:"4px"}}})),XZe=[{label:"aiWARE - US",value:"https://aiware2.us-1.veritone.com/ui/auth/login"},{label:"aiWARE - CA",value:"https://aiware2.ca-1.veritone.com/ui/auth/login"},{label:"aiWARE - UK",value:"https://aiware2.uk-1.veritone.com/ui/auth/login"},{label:"aiWARE - US Gov 1",value:"https://aiware2.us-gov-1.veritone.com/ui/auth/login"},{label:"aiWARE - US Gov 2",value:"https://aiware2.us-gov-2.veritone.com/ui/auth/login"},{label:"aiWARE - Deloitte",value:"https://aiware2.us-2.veritone.com/ui/auth/login"}],$Ze=({handleDestination:t})=>{var e=QZe()["classes"];const[n,r]=De.exports.useState(XZe[0].value);return nt.exports.jsx(pe,Object.assign({className:e.selectWrapper},{children:nt.exports.jsx(f7,Object.assign({name:"destination-dropdown",value:n,onChange:e=>{e=e.target.value;r(e),t(e)},renderValue:e=>{return nt.exports.jsxs(pe,Object.assign({sx:{display:"flex",alignItems:"center",gap:.2}},{children:[nt.exports.jsx(Rae,{sx:{width:"18px",height:"18px",color:"#555F7C"}}),nt.exports.jsx("span",{children:(t=e,null==(e=XZe.find(e=>e.value===t))?void 0:e.label)})]}));var t},sx:{color:"#2A323C",fontFamily:"Nunito",fontSize:"12px",lineHeight:"16px",fontWeight:"400",width:"164px",height:"36px","& .Sdk-MuiSelect-select":{paddingLeft:"8px"},"&.MuiOutlinedInput-root":{"& fieldset":{border:"1px solid #DADFE8",borderRadius:"30px"},"&:hover fieldset":{border:"1px solid #DADFE8",borderRadius:"30px"},"&.Mui-focused fieldset":{border:"1px solid #DADFE8",borderRadius:"30px"}}},MenuProps:{classes:{paper:e.selectMenu}}},{children:XZe.map(e=>nt.exports.jsx(i8,Object.assign({value:e.value,sx:{color:"#2A323C",fontFamily:"Nunito",fontSize:"12px",lineHeight:"16px",fontWeight:"400",letterSpacing:"-1.30385e-09px"}},{children:e.label}),e.label))}))}))};function eGe(){return(eGe=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n,r=arguments[t];for(n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function tGe(e){return De.exports.createElement("svg",eGe({width:270,height:48,fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),dWe=dWe||De.exports.createElement("g",{clipPath:"url(#aiware_logo_svg__a)"},De.exports.createElement("path",{d:"M0 30.967c0-.99.173-1.906.52-2.751a7.888 7.888 0 0 1 1.453-2.28 6.677 6.677 0 0 1 2.18-1.521 6.167 6.167 0 0 1 2.63-.58h17.583v-7.457H6.897V9.247H27.591l1.126 2.238 1.267 2.356 1.2 2.537V47.8h-6.818V40.67l-.857 1.883-1.267 2.798-1.126 2.45H6.784c-.923 0-1.8-.18-2.63-.543a7.49 7.49 0 0 1-2.181-1.52 7.888 7.888 0 0 1-1.454-2.28A7.463 7.463 0 0 1 0 40.669v-9.702Zm6.784 9.702h17.582v-9.702H6.784v9.702ZM49.735 11.603V47.8h-6.818V11.603h6.818ZM42.57 0h7.51v7.421h-7.51V0Z",fill:"#307FE2"}),De.exports.createElement("path",{d:"M0 30.967c0-.99.173-1.906.52-2.751a7.888 7.888 0 0 1 1.453-2.28 6.677 6.677 0 0 1 2.18-1.521 6.167 6.167 0 0 1 2.63-.58h17.583v-7.457H6.897V9.247H27.591l1.126 2.238 1.267 2.356 1.2 2.537V47.8h-6.818V40.67l-.857 1.883-1.267 2.798-1.126 2.45H6.784c-.923 0-1.8-.18-2.63-.543a7.49 7.49 0 0 1-2.181-1.52 7.888 7.888 0 0 1-1.454-2.28A7.463 7.463 0 0 1 0 40.669v-9.702Zm6.784 9.702h17.582v-9.702H6.784v9.702ZM49.735 11.603V47.8h-6.818V11.603h6.818ZM42.57 0h7.51v7.421h-7.51V0Z",fill:"#307FE2"}),De.exports.createElement("path",{d:"M74.734 47.837 61.658 0h6.538l10.142 38.063L88.448 0h6.539l10.11 38.063L115.239 0h6.538l-13.076 47.837h-7.176l-9.791-35.861-9.823 35.86h-7.177ZM147.26 0l17.637 47.837h-6.538l-2.025-5.505-2.025-5.504-2.52-6.838-2.54 6.838h-15.575l-4.051 11.009h-6.538L140.722 0h6.538Zm-11.099 29.99h15.628l-7.782-21.083-7.846 21.083ZM208.879 17.08c0 6.672-2.722 10.474-8.165 11.409l8.611 19.348h-7.24l-8.483-19.115h-14.321v19.115h-6.538V0h25.037c7.399 0 11.099 3.88 11.099 11.642v5.438Zm-29.598 4.803h18.148c1.743 0 2.998-.4 3.763-1.2.766-.801 1.149-2.113 1.149-3.937v-4.77c0-1.824-.383-3.136-1.149-3.937-.765-.8-2.02-1.2-3.763-1.2h-18.148v15.044ZM219.818 0h33.329v6.839h-26.791v13.677h22.868v6.838h-22.868v13.644h26.791v6.839h-33.329V0ZM257.019 41.225h4.73v.884h-1.942v5.302h-.845v-5.302h-1.943v-.884Zm8.797 6.186-2.206-4.534v4.534h-.846v-6.186h.924l2.252 4.659 2.256-4.659h.919v6.186h-.841v-4.534l-2.207 4.534h-.251Z",fill:"#333F48"})),pWe=pWe||De.exports.createElement("defs",null,De.exports.createElement("clipPath",{id:"aiware_logo_svg__a"},De.exports.createElement("path",{fill:"#fff",d:"M0 0h270v48H0z"}))))}var nGe,rGe,iGe;function oGe(){return(oGe=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n,r=arguments[t];for(n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function aGe(e){return De.exports.createElement("svg",oGe({width:180,height:34,fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),nGe=nGe||De.exports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.626 0 0 13.076 12.175 34h13.319L5.626 0ZM21.703 0l5.164 8.86L32.044 0h-10.34Z",fill:"#728FBE"}),rGe=rGe||De.exports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M32.044 0 12.176 34h13.318L37.67 13.076 32.044 0Z",fill:"#325491"}),iGe=iGe||De.exports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M161.768 10.063v6.02h9.982v1.979h-9.982v6.046h11.175v1.952h-13.21V8.111h13.21v1.952h-11.175Zm-5.114-1.952V26.06h-2.36L143.2 10.904V26.06h-2.034V8.111h2.36l11.094 15.102V8.111h2.034Zm-27.569 16.187c2.133 0 3.86-.696 5.181-2.088 1.265-1.338 1.898-3.046 1.898-5.124 0-2.08-.633-3.787-1.898-5.125-1.321-1.392-3.048-2.088-5.181-2.088-2.134 0-3.861.696-5.181 2.088-1.266 1.338-1.899 3.046-1.899 5.125s.633 3.786 1.899 5.124c1.32 1.392 3.047 2.088 5.181 2.088Zm0-16.404c2.676 0 4.873.895 6.591 2.684 1.682 1.736 2.523 3.905 2.523 6.508 0 2.602-.841 4.772-2.523 6.507-1.718 1.79-3.915 2.684-6.591 2.684-2.677 0-4.874-.895-6.592-2.684-1.681-1.735-2.522-3.905-2.522-6.507 0-2.603.841-4.772 2.522-6.508 1.718-1.79 3.915-2.684 6.592-2.684Zm-9.676 2.17h-6.266V26.06h-2.034V10.063h-6.266V8.111h14.566v1.952ZM99.663 26.06h2.035V8.11h-2.035v17.95ZM84.701 16.97V9.955h4.963c2.743 0 4.134 1.18 4.134 3.507 0 2.326-1.39 3.506-4.135 3.506h-4.962Zm6.956 1.647.193-.05c1.255-.334 2.256-.95 2.974-1.833.717-.882 1.08-1.983 1.08-3.271 0-1.638-.568-2.954-1.688-3.91-1.127-.959-2.65-1.445-4.525-1.445H82.71v17.95H84.7v-7.24h4.726l5.13 7.24h2.364l-5.264-7.44ZM68.577 10.063v6.02h9.982v1.979h-9.982v6.046h11.175v1.952h-13.21V8.111h13.21v1.952H68.577ZM63.942 8.111l-7.687 17.95h-2.333L46.236 8.11h2.224l6.629 15.645L61.717 8.11h2.225ZM176.505 24.727h.236c.276 0 .499-.092.499-.315 0-.197-.144-.328-.459-.328-.132 0-.224.013-.276.026v.617Zm-.013 1.207h-.499v-2.152c.197-.026.472-.066.827-.066.407 0 .591.066.735.171a.54.54 0 0 1 .224.46c0 .262-.197.432-.447.511v.026c.21.066.315.237.381.526.066.328.118.446.157.524h-.525c-.065-.078-.105-.262-.171-.524-.039-.224-.17-.329-.446-.329h-.236v.854Zm-1.327-1.115c0 .958.723 1.72 1.681 1.72.933.012 1.641-.762 1.641-1.707 0-.958-.708-1.732-1.667-1.732-.932 0-1.655.774-1.655 1.719Zm3.874 0c0 1.207-.972 2.165-2.206 2.165s-2.219-.958-2.219-2.165.985-2.152 2.232-2.152c1.221 0 2.193.944 2.193 2.152Z",fill:"#142E44"}))}const sGe=()=>nt.exports.jsxs(pe,Object.assign({sx:{textAlign:"center"}},{children:[nt.exports.jsx(aGe,{}),nt.exports.jsxs(ae,Object.assign({sx:{marginBottom:"18px",marginTop:"50px",fontFamily:"Nunito",fontSize:"10px",lineHeight:"16px",color:"#5C6269"}},{children:["© ",(new Date).getFullYear()," AiWARE, All Rights Reserved."," ",nt.exports.jsxs("a",Object.assign({href:"https://www.veritone.com/terms",style:{color:"#0C53B0",textDecoration:"none"}},{children:["Terms of Service"," "]}))]}))]})),lGe=({children:e})=>nt.exports.jsx(F4,{children:nt.exports.jsxs(pe,Object.assign({sx:{display:"flex",alignItems:"center",flexDirection:"column",justifyContent:"space-between",height:"100vh"}},{children:[nt.exports.jsxs(pe,{children:[nt.exports.jsx(pe,Object.assign({sx:{marginTop:"178px",marginBottom:"50px",textAlign:"center"}},{children:nt.exports.jsx(tGe,{})})),e]}),nt.exports.jsx(sGe,{})]}))}),cGe=fe()(()=>({btnWrapper:{display:"flex",alignItems:"center",width:"100%",justifyContent:"center",flexDirection:"column"},openIdLogo:{width:"24px",height:"24px",marginRight:"8px"},openIdBtn:{"&.MuiButton-root":{width:"368px",marginTop:"20px",height:"56px",border:"1px solid #DADFE8",borderRadius:"4px",fontFamily:"Nunito",fontStyle:"normal",fontWeight:"600",fontSize:"18px",lineHeight:"24px",letterSpacing:"-1.30385e-09px",textTransform:"none","&:hover, &:focus":{border:"1px solid #DADFE8",color:"#2A323C"}}}})),uGe=({openIdItems:e})=>{const n=cGe()["classes"];return nt.exports.jsx(pe,Object.assign({className:n.btnWrapper},{children:nt.exports.jsx(nt.exports.Fragment,{children:e&&e.map((t,e)=>{return nt.exports.jsxs(se,Object.assign({variant:"outlined","data-testid":"os-auth-openId-button-"+e,className:n.openIdBtn,onClick:()=>{var e;e=t.loginUrl,window.location.href=e},sx:{backgroundColor:t.loginButtonStyle&&t.loginButtonStyle.btnColor?t.loginButtonStyle.btnColor:"#FFFFFF","&:hover, &:focus":{backgroundColor:t.loginButtonStyle&&t.loginButtonStyle.btnColor?t.loginButtonStyle.btnColor:"#FFFFFF"}}},{children:[t.loginButtonStyle&&t.loginButtonStyle.btnLogo&&nt.exports.jsx("img",{className:n.openIdLogo,alt:"icon",src:t.loginButtonStyle.btnLogo,"data-testid":"os-auth-openId-image-"+e}),nt.exports.jsx("span",Object.assign({"data-testid":"os-auth-openId-name-"+e,style:{marginTop:"3px",color:t.loginButtonStyle&&t.loginButtonStyle.btnTextColor?t.loginButtonStyle.btnTextColor:"#2A323C"}},{children:(null==t?void 0:t.name)&&"Login with "+(20<(e=t.name).length?e.substring(0,20)+"...":e)}))]}),t.connectId)})})}))};function dGe(){}function pGe(e){if(!yGe(e))return!1;try{return AGe(dGe,CGe,e),!0}catch(e){return!1}}function gGe(e){if(!yGe(e))return!1;switch(xGe(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return jGe||!!wGe(IGe,bGe(e))}catch(e){return!0}}var oce="process"==DFe(nse.process),fGe=HFe,hGe=Yse,mGe=ase,vGe=ZFe("species"),Bae=hse,uce=MFe,yGe=FFe,xGe=vce,bGe=gle,CGe=[],AGe=HFe("Reflect","construct"),IGe=/^\s*(?:class|function)\b/,wGe=Bae(IGe.exec),jGe=!IGe.exec(dGe);gGe.sham=!0;var SGe,OGe,kGe=!AGe||uce(function(){var e;return pGe(pGe.call)||!pGe(Object)||!pGe(function(){e=!0})||e})?gGe:pGe,EGe=UFe,TGe=TypeError,NGe=KFe,MGe=function(e){if(kGe(e))return e;throw TGe(EGe(e)+" is not a constructor")},PGe=ZFe("species"),ice=hse([].slice),joe=/(?:ipad|iphone|ipod).*applewebkit/i.test(Cse),DGe=nse,RGe=Zce,Voe=Y_e,LGe=FFe,FGe=Hse,xoe=MFe,VGe=$le,HGe=ice,UGe=JFe,BGe=$_e,_oe=joe,qoe=oce,Zoe=DGe.setImmediate,Koe=DGe.clearImmediate,zGe=DGe.process,qGe=DGe.Dispatch,_Ge=DGe.Function,Yoe=DGe.MessageChannel,WGe=DGe.String,ZGe=0,GGe={},JGe="onreadystatechange";try{SGe=DGe.location}catch(e){}function KGe(e){return function(){pJe(e)}}function YGe(e){pJe(e.data)}function QGe(e){DGe.postMessage(WGe(e),SGe.protocol+"//"+SGe.host)}function XGe(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}}function $Ge(){this.head=null,this.tail=null}function eJe(e){var n,r;this.promise=new e(function(e,t){if(void 0!==n||void 0!==r)throw TypeError("Bad Promise constructor");n=e,r=t}),this.resolve=jJe(n),this.reject=jJe(r)}function tJe(e,t){var n,r,i,o,a=t.value,s=t.state==tKe,l=s?e.ok:e.fail,c=e.resolve,u=e.reject,d=e.domain;try{l?(s||(t.rejection===iKe&&(o=t,kJe(DJe,OJe,function(){var e=o.facade;SJe?KJe.emit("rejectionHandled",e):sKe(eKe,e,o.value)})),t.rejection=rKe),!0===l?n=a:(d&&d.enter(),n=l(a),d&&(d.exit(),i=!0)),n===e.promise?u(GJe("Promise-chain cycle")):(r=oKe(n))?kJe(r,n,c,u):c(n)):u(a)}catch(e){d&&!i&&d.exit(),u(e)}}var nJe,rJe,iJe,oJe,aJe,sJe,lJe,cJe,uJe,dJe,pJe=function(e){var t;FGe(GGe,e)&&(t=GGe[e],delete GGe[e],t())},oae=(Zoe&&Koe||(Zoe=function(e){BGe(arguments.length,1);var t=LGe(e)?e:_Ge(e),n=HGe(arguments,1);return GGe[++ZGe]=function(){RGe(t,void 0,n)},OGe(ZGe),ZGe},Koe=function(e){delete GGe[e]},qoe?OGe=function(e){zGe.nextTick(KGe(e))}:qGe&&qGe.now?OGe=function(e){qGe.now(KGe(e))}:Yoe&&!_oe?(Woe=(rae=new Yoe).port2,rae.port1.onmessage=YGe,OGe=Voe(Woe.postMessage,Woe)):DGe.addEventListener&&LGe(DGe.postMessage)&&!DGe.importScripts&&SGe&&"file:"!==SGe.protocol&&!xoe(QGe)?(OGe=QGe,DGe.addEventListener("message",YGe,!1)):OGe=JGe in UGe("script")?function(e){VGe.appendChild(UGe("script"))[JGe]=function(){VGe.removeChild(this),pJe(e)}}:function(e){setTimeout(KGe(e),0)}),{set:Zoe,clear:Koe}),gae=nse,fae=/ipad|iphone|ipod/i.test(Cse)&&void 0!==gae.Pebble,mae=/web0s(?!.*chrome)/i.test(Cse),uae=nse,Cae=Y_e,xae=ose.f,gJe=oae.set,Tae=joe,Pae=fae,a=mae,fJe=oce,Fae=uae.MutationObserver||uae.WebKitMutationObserver,zae=uae.document,hJe=uae.process,Lae=uae.Promise,Uae=xae(uae,"queueMicrotask"),_ae=Uae&&Uae.value,Kae=(_ae||(nJe=function(){var e,t;for(fJe&&(e=hJe.domain)&&e.exit();rJe;){t=rJe.fn,rJe=rJe.next;try{t()}catch(e){throw rJe?oJe():iJe=void 0,e}}iJe=void 0,e&&e.enter()},oJe=Tae||fJe||a||!Fae||!zae?!Pae&&Lae&&Lae.resolve?((s=Lae.resolve(void 0)).constructor=Lae,lJe=Cae(s.then,s),function(){lJe(nJe)}):fJe?function(){hJe.nextTick(nJe)}:(gJe=Cae(gJe,uae),function(){gJe(nJe)}):(aJe=!0,sJe=zae.createTextNode(""),new Fae(nJe).observe(sJe,{characterData:!0}),function(){sJe.data=aJe=!aJe})),_ae||function(e){e={fn:e,next:void 0};iJe&&(iJe.next=e),rJe||(rJe=e,oJe()),iJe=e}),mJe=nse,qae=($Ge.prototype={add:function(e){e={item:e,next:null};this.head?this.tail.next=e:this.head=e,this.tail=e},get:function(){var e=this.head;if(e)return this.head=e.next,this.tail===e&&(this.tail=null),e.item}},$Ge),Yae=nse.Promise,rse="object"==typeof Deno&&Deno&&"object"==typeof Deno.version,gse=!rse&&!oce&&"object"==typeof window&&"object"==typeof document,cse=nse,vJe=Yae,hae=FFe,G_=_le,yJe=gle,Loe=ZFe,xJe=gse,bJe=rse,CJe=Tse,AJe=(vJe&&vJe.prototype,Loe("species")),IJe=!1,wJe=hae(cse.PromiseRejectionEvent),mse={CONSTRUCTOR:G_("Promise",function(){var e=yJe(vJe),t=e!==String(vJe);if(!t&&66===CJe)return!0;if(!CJe||CJe<51||!/native code/.test(e)){var e=new vJe(function(e){e(1)}),n=function(e){e(function(){},function(){})};if((e.constructor={})[AJe]=n,!(IJe=e.then(function(){})instanceof n))return!0}return!t&&(xJe||bJe)&&!wJe}),REJECTION_EVENT:wJe,SUBCLASSING:IJe},vse={},jJe=BFe,jse=(vse.f=function(e){return new eJe(e)},aVe),SJe=oce,OJe=nse,kJe=Mae,l=QFe,Ose=t,Ese=Fqe,Ase=function(e){var e=fGe(e),t=hGe.f;mGe&&e&&!e[vGe]&&t(e,vGe,{configurable:!0,get:function(){return this}})},EJe=BFe,TJe=FFe,NJe=VFe,MJe=K_e,PJe=function(e,t){var e=NGe(e).constructor;return void 0===e||null==(e=NGe(e)[PGe])?t:MGe(e)},DJe=oae.set,RJe=Kae,LJe=function(e,t){var n=mJe.console;n&&n.error&&(1==arguments.length?n.error(e):n.error(e,t))},FJe=XGe,VJe=qae,HJe=wle,UJe=Yae,Nse=vse,BJe="Promise",Lse=mse.CONSTRUCTOR,zJe=mse.REJECTION_EVENT,Fse=mse.SUBCLASSING,qJe=HJe.getterFor(BJe),_Je=HJe.set,Use=UJe&&UJe.prototype,WJe=UJe,ZJe=Use,GJe=OJe.TypeError,JJe=OJe.document,KJe=OJe.process,YJe=Nse.f,QJe=YJe,XJe=!!(JJe&&JJe.createEvent&&OJe.dispatchEvent),$Je="unhandledrejection",eKe="rejectionhandled",tKe=1,nKe=2,rKe=1,iKe=2,oKe=function(e){var t;return!(!NJe(e)||!TJe(t=e.then))&&t},aKe=function(n,i){n.notified||(n.notified=!0,RJe(function(){for(var e,r,t=n.reactions;e=t.get();)tJe(e,n);n.notified=!1,i&&!n.rejection&&(r=n,kJe(DJe,OJe,function(){var e=r.facade,t=r.value,n=lKe(r);if(n&&(n=FJe(function(){SJe?KJe.emit("unhandledRejection",t,e):sKe($Je,e,t)}),r.rejection=SJe||lKe(r)?iKe:rKe,n.error))throw n.value}))}))},sKe=function(e,t,n){var r;XJe?((r=JJe.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),OJe.dispatchEvent(r)):r={promise:t,reason:n},!zJe&&(t=OJe["on"+e])?t(r):e===$Je&&LJe("Unhandled promise rejection",n)},lKe=function(e){return e.rejection!==rKe&&!e.parent},cKe=function(t,n,r){return function(e){t(n,e,r)}},uKe=function(e,t,n){e.done||(e.done=!0,(e=n?n:e).value=t,e.state=nKe,aKe(e,!0))},dKe=function(n,e,t){if(!n.done){n.done=!0,t&&(n=t);try{if(n.facade===e)throw GJe("Promise can't be resolved itself");var r=oKe(e);r?RJe(function(){var t={done:!1};try{kJe(r,e,cKe(dKe,t,n),cKe(uKe,t,n))}catch(e){uKe(t,e,n)}}):(n.value=e,n.state=tKe,aKe(n,!1))}catch(e){uKe({done:!1},e,n)}}};if(Lse&&(ZJe=(WJe=function(e){MJe(this,ZJe),EJe(e),kJe(cJe,this);var t=qJe(this);try{e(cKe(dKe,t),cKe(uKe,t))}catch(e){uKe(t,e)}}).prototype,(cJe=function(e){_Je(this,{type:BJe,done:!1,notified:!1,parent:!1,reactions:new VJe,rejection:!1,state:0,value:void 0})}).prototype=l(ZJe,"then",function(e,t){var n=qJe(this),r=YJe(PJe(this,WJe));return n.parent=!0,r.ok=!TJe(e)||e,r.fail=TJe(t)&&t,r.domain=SJe?KJe.domain:void 0,0==n.state?n.reactions.add(r):RJe(function(){tJe(r,n)}),r.promise}),uJe=function(){var e=new cJe,t=qJe(e);this.promise=e,this.resolve=cKe(dKe,t),this.reject=cKe(uKe,t)},Nse.f=YJe=function(e){return e===WJe||void 0===e?new uJe:QJe(e)},TJe(UJe))&&Use!==Object.prototype){dJe=Use.then,Fse||l(Use,"then",function(e,t){var n=this;return new WJe(function(e,t){kJe(dJe,n,e,t)}).then(e,t)},{unsafe:!0});try{delete Use.constructor}catch(e){}Ose&&Ose(Use,ZJe)}jse({global:!0,constructor:!0,wrap:!0,forced:Lse},{Promise:WJe}),Ese(WJe,BJe,!1),Ase(BJe);function pKe(e,t){this.stopped=e,this.result=t}function gKe(e,t,n){function r(e){return o&&EKe(o,"normal",e),new pKe(!0,e)}function i(e){return p?(AKe(e),h?m(e[0],e[1],r):m(e[0],e[1])):h?m(e,r):m(e)}var o,a,s,l,c,u,d=n&&n.that,p=!(!n||!n.AS_ENTRIES),g=!(!n||!n.IS_RECORD),f=!(!n||!n.IS_ITERATOR),h=!(!n||!n.INTERRUPTED),m=bKe(t,d);if(g)o=e.iterator;else if(f)o=e;else{if(!(n=kKe(e)))throw TKe(IKe(e)+" is not iterable");if(wKe(n)){for(a=0,s=jKe(e);a<s;a++)if((l=i(e[a]))&&SKe(NKe,l))return l;return new pKe(!1)}o=OKe(e,n)}for(c=(g?e:o).next;!(u=CKe(c,o)).done;){try{l=i(u.value)}catch(e){EKe(o,"throw",e)}if("object"==typeof l&&l&&SKe(NKe,l))return l}return new pKe(!1)}var fKe=Oq,hKe=ZFe("iterator"),mKe=Array.prototype,vKe=Mae,yKe=KFe,xKe=zFe,bKe=Y_e,CKe=Mae,AKe=KFe,IKe=UFe,wKe=function(e){return void 0!==e&&(fKe.Array===e||mKe[hKe]===e)},jKe=tVe,SKe=xse,OKe=X_e,kKe=Q_e,EKe=function(e,t,n){var r,i;yKe(e);try{if(!(r=xKe(e,"return"))){if("throw"===t)throw n;return n}r=vKe(r,e)}catch(e){i=!0,r=e}if("throw"===t)throw n;if(i)throw r;return yKe(r),n},TKe=TypeError,NKe=pKe.prototype,MKe=ZFe("iterator"),PKe=!1;try{var DKe=0,RKe={next:function(){return{done:!!DKe++}},return:function(){PKe=!0}};RKe[MKe]=function(){return this},Array.from(RKe,function(){throw 2})}catch(e){}var LKe=Yae,Mse=function(e,t){if(!t&&!PKe)return!1;var n=!1;try{var r={};r[MKe]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch(e){}return n},Pse=mse.CONSTRUCTOR||!Mse(function(e){LKe.all(e).then(void 0,function(){})}),FKe=Mae,VKe=BFe,HKe=vse,UKe=XGe,BKe=gKe,Wse=(aVe({target:"Promise",stat:!0,forced:Pse},{all:function(e){var s=this,t=HKe.f(s),l=t.resolve,c=t.reject,n=UKe(function(){var r=VKe(s.resolve),i=[],o=0,a=1;BKe(e,function(e){var t=o++,n=!1;a++,FKe(r,s,e).then(function(e){n||(n=!0,i[t]=e,--a)||l(i)},c)}),--a||l(i)});return n.error&&c(n.value),t.promise}}),aVe),Zse=Yae,Dse=HFe,Gse=FFe,Jse=QFe,$se=Zse&&Zse.prototype;Wse({target:"Promise",proto:!0,forced:mse.CONSTRUCTOR,real:!0},{catch:function(e){return this.then(void 0,e)}}),Gse(Zse)&&(rle=Dse("Promise").prototype.catch,$se.catch!==rle)&&Jse($se,"catch",rle,{unsafe:!0});var zKe=Mae,qKe=BFe,_Ke=vse,WKe=XGe,ZKe=gKe;aVe({target:"Promise",stat:!0,forced:Pse},{race:function(e){var n=this,r=_Ke.f(n),i=r.reject,t=WKe(function(){var t=qKe(n.resolve);ZKe(e,function(e){zKe(t,n,e).then(r.resolve,i)})});return t.error&&i(t.value),r.promise}});var GKe=Mae,JKe=vse,KKe=(aVe({target:"Promise",stat:!0,forced:mse.CONSTRUCTOR},{reject:function(e){var t=JKe.f(this);return GKe(t.reject,void 0,e),t.promise}}),KFe),YKe=VFe,QKe=vse,nle=aVe,tle=HFe,sle=mse.CONSTRUCTOR,XKe=function(e,t){return KKe(e),YKe(t)&&t.constructor===e?t:((0,(e=QKe.f(e)).resolve)(t),e.promise)};tle("Promise"),nle({target:"Promise",stat:!0,forced:sle},{resolve:function(e){return XKe(this,e)}});const $Ke=()=>q_e(void 0,void 0,void 0,function*(){let t=[];try{var e=yield fetch(Sqe()+"/api/admin/openid");t=200===e.status?(yield e.json()).results:(window.DEBUG&&console.error("was not able to retrieve global open id providers",e),[])}catch(e){window.DEBUG&&console.error("was not able to retrieve global open id providers",e),t=[]}return t}),eYe=n=>q_e(void 0,void 0,void 0,function*(){let t=[];try{var e=yield fetch(Sqe()+"/api/admin/openid/org/"+n);t=200===e.status?(yield e.json()).results:(window.DEBUG&&console.error("was not able to retrieve global open id providers",e),[])}catch(e){window.DEBUG&&console.error("was not able to retrieve global open id providers",e),t=[]}return t}),tYe=(e,t,n)=>fetch(Sqe()+"/api/admin/openid/linkUserToOid",{method:"POST",credentials:"include",headers:{"Content-Type":"application/json; charset=utf-8"},body:JSON.stringify({userName:e,password:t,sessionKey:n})}),nYe=(n,r)=>q_e(void 0,void 0,void 0,function*(){var e=Sqe(!0),t={query:`
|
|
1487
1487
|
mutation UserLogin($input: UserLogin!) {
|
|
1488
1488
|
userLogin(input: $input) {
|
|
1489
1489
|
token
|
|
@@ -2773,7 +2773,7 @@ mutation copyFlow($flowRevisionId: ID, $flowId: ID, $name: String){
|
|
|
2773
2773
|
status
|
|
2774
2774
|
}
|
|
2775
2775
|
}
|
|
2776
|
-
}`,variables:e},t))).data.jobs.records.filter(e=>null!==e.targetId)})}const i0n=ge.exports.memoize(function(n){return Fon(this,void 0,void 0,function*(){var{apiRoot:e,token:t}=n;return(yield qon({method:"GET",uri:"v1/admin/bearer",apiRoot:e,token:t,headers:{"Content-Type":"application/json"}})).data})});function*o0n(e){var t=yield T(asn);try{var n,r,i=yield E(i0n,t),o=ge.exports.find(i.groups,{permissions:{cms:{access:"true"}}});o&&(n=o["applicationId"],r=yield E(r0n,t,[n],e.payload),yield k(Can.fetchJobs.fetchJobsSucceeded(r)))}catch(e){console.log("Error fetching jobs list"),yield k(Can.fetchJobs.fetchJobsFailed())}}function*a0n(e){var t=yield T(asn);const n=yield T(x$),r=["download-file","download-file-container","54ed2111-4430-8032-2cdb-bb39bc5eab68","adf1bbd2-c4b3-328e-5213-84c5b400ba32"];var i=e=>-1===r.indexOf(e.id)&&"5e82fab8-c845-4f9c-b7fc-92dfb26e6a3e"!==e.categoryId,o=e=>!n||n<3||e.edgeVersion===n;try{var a=yield E(bhn,t),s={pull:a.pull.records.filter(i).filter(o),push:a.push.records.filter(i).filter(o)};yield k(Can.panelSelectImportSource.fetchEngineAdapterSucceeded({engineAdapters:s}))}catch(e){console.log("Error fetching Engine Adapters: ",e),yield k(Can.panelSelectImportSource.fetchEngineAdapterFailed())}}function*s0n(){yield $1([function*(){yield cP(Can.uiState.init.type,Ahn)}(),function*(){yield lP(Can.viewStreams.sourcesFetchStart.type,Ihn)}(),function*(){yield lP(Can.viewStreams.schedulesFetchStart.type,whn)}(),function*(){yield lP(Can.viewStreams.tdosFetchStart.type,jhn)}(),function*(){yield lP(Can.viewMyFiles.rootFolderFetchStart.type,Shn)}(),function*(){yield lP(Can.viewMyFiles.foldersOrFilesFetchStart.type,Ohn)}(),function*(){yield lP(Can.panelAddFolder.createNewFolderInCurrentParent.type,Thn)}(),function*(){yield lP("dataCenter/ADD_NEW_FOLDER",khn)}(),function*(){yield lP(Can.panelAddFolder.createNewFolderStart.type,Nhn)}(),function*(){yield lP(Can.panelEditFolder.editFolderStart.type,Mhn)}(),function*(){yield lP(Can.tdos.moveTdoStart.type,Uhn)}(),function*(){yield lP(Can.tdos.moveTdoNewFolder.type,Bhn)}(),function*(){yield lP(Can.tdos.deleteTdoStart.type,Dhn)}(),function*(){yield lP(Can.tdos.process.type,Rhn)}(),function*(){yield lP(Can.tdos.viewInfo.type,Lhn)}(),function*(){yield lP(Can.sources.editSource.type,Fhn)}(),function*(){yield lP(Can.schedules.editSchedule.type,Vhn)}(),function*(){yield lP(Can.viewMyFiles.panelResultSelected.type,Hhn)}(),function*(){yield lP(Ron.fetchJobsStart,o0n)}(),function*(){yield lP(Can.fileInfo.fetchFileInfoStart.type,zhn)}(),function*(){yield cP(uon.setSearchTerm.type,Zhn)}(),function*(){yield cP(uon.setSearchTerm.type,Ghn)}(),function*(){yield cP(uon.setSearchTerm.type,Jhn)}(),function*(){yield cP(uon.setSearchTerm.type,Khn)}(),function*(){yield cP(Son.sourcesSearchStart.type,t0n)}(),function*(){yield lP(Aon.filesSearchStart.type,$hn)}(),function*(){yield cP(uon.abortQueries.type,Yhn)}(),function*(){yield cP(Ton.getLibraryIdsStart,n0n)}(),function*(){yield lP(Can.panelSelectImportSource.fetchEngineAdapterStart,a0n)}(),man.watchCreate(),man.watchRead(),man.watchUpdate(),man.watchDelete(),xan.watchCreate(),xan.watchRead(),xan.watchUpdate(),xan.watchDelete()])}function l0n(){return{id:Kin,reducerMap:{[Kin]:Aan},sagas:[s0n],initialActions:[]}}const c0n=e=>{const t=de(),n=ue(Ean),{apiRoot:r,graphQLEndpoint:i,token:o}=ue(asn);return De.exports.useEffect(()=>{"pending"===n&&r&&i&&o&&(t(Can.uiState.init()),t(Ton.getLibraryIdsStart()))},[n,r,i,o,t]),r&&i&&o&&e.panelRendered?nt.exports.jsx(lhn,Object.assign({},e)):null};const u0n=()=>nt.exports.jsx(oe,{id:"os-data-center-browse.gDDtUB",defaultMessage:"New Folder",description:"Create a new folder in the currently selected folder"}),d0n=({entityId:e})=>{const t=de();return nt.exports.jsxs(nt.exports.Fragment,{children:[nt.exports.jsx(ae,Object.assign({id:"folders-files-panel-new-folder-action",style:lsn},{children:nt.exports.jsx(u0n,{})})),nt.exports.jsx(re,Object.assign({title:nt.exports.jsx(u0n,{})},{children:nt.exports.jsx(le,Object.assign({"aria-labelledby":"folders-files-panel-new-folder-action","data-testid":"folders-files-panel-new-folder-action",disableRipple:!0,onClick:()=>{e&&t(Can.panelAddFolder.openAddNewFolder(e))},size:"large"},{children:nt.exports.jsx(Qae,{})}))}))]})},p0n=()=>nt.exports.jsx(oe,{id:"os-data-center-browse.NiSAz+",defaultMessage:"Cancel",description:"Close Folder Panel"}),g0n=()=>nt.exports.jsx(oe,{id:"os-data-center-browse.v3CR56",defaultMessage:"Move to Home",description:"Select root directory"}),f0n=()=>nt.exports.jsx(oe,{id:"os-data-center-browse.J3etGv",defaultMessage:"Choose Location",description:"Choose folder"}),h0n=fe()(e=>({footer:{display:"flex",justifyContent:"end",margin:e.spacing(2)+" "+e.spacing(4)},cancelButton:{marginRight:e.spacing(2)}})),m0n=({onChooseLocation:e,onClosePanel:t,isFolderSelected:n,selectHomeText:r,selectItemText:i})=>{var o=h0n()["classes"],r=r||nt.exports.jsx(g0n,{}),i=i||nt.exports.jsx(f0n,{});return nt.exports.jsxs("div",Object.assign({className:o.footer},{children:[nt.exports.jsx(se,Object.assign({"data-testid":"folder-cancel-button",className:o.cancelButton,onClick:t},{children:nt.exports.jsx(p0n,{})})),nt.exports.jsx(se,Object.assign({"data-testid":"folder-location-select-button",onClick:e,variant:"contained",color:"primary",type:"submit"},{children:n?i:r}))]}))},v0n=fe()(e=>({panel:{backgroundColor:e.palette.background.paper,boxShadow:"0px 0px 12px rgba(0, 0, 0, 0.25)",height:"100%"},wrapper:{height:"calc(100% - 50px)"}})),y0n=({hideNewFolderButton:e,panelRendered:t,viewType:n,hidePanel:r,tdoId:i,onSelect:o,selectHomeText:a,selectItemText:s})=>{const l=de(),c=ue(Ean),u=ue(kan),{apiRoot:d,graphQLEndpoint:p,token:g}=ue(asn),f=ue(zan);var h=ue(Ban),m=ue(Uan);const v=ue(Tan);var y=ue(esn);const x=ue(Zan),b=ue(Pan);var C=v0n()["classes"];if(De.exports.useEffect(()=>{v!==n&&(l(Can.uiState.setPanelView({view:_in.folders,panelMode:!0})),b)&&l(Can.uiState.toggleFluffyView())},[l,n,v]),De.exports.useEffect(()=>{const e=v;return()=>{l(Can.uiState.setPanelView({view:e,panelMode:!1}))}},[]),De.exports.useEffect(()=>{f||l(Can.viewMyFiles.rootFolderFetchStart())},[f,l]),De.exports.useEffect(()=>{"pending"===c&&d&&p&&g&&l(Can.uiState.init())},[c,d,p,g,l]),!f)return null;if(!(d&&p&&g&&t))return null;t=m.isRoot?f:m.id||"";const A=()=>{l(Can.uiState.setPanelView({view:_in.myFiles,panelMode:!1}))};m=!!x;const I=()=>{A(),r&&r()};return nt.exports.jsxs(nt.exports.Fragment,{children:[nt.exports.jsxs("div",Object.assign({className:C.wrapper},{children:[nt.exports.jsx(fln,{breadcrumbs:nt.exports.jsx(Cln,{pathList:h,goToCrumbActionCreator:Can.viewMyFiles.goToMyFilesBreadCrumb}),actions:e?nt.exports.jsx("div",{}):nt.exports.jsx(d0n,{entityId:t}),table:nt.exports.jsx(wgn,{parentFolderId:t})}),nt.exports.jsx(rhn,{className:C.panel,fullScreen:!1})]})),!(null!=y&&y.parentFolderId)&&nt.exports.jsx(m0n,{onChooseLocation:()=>{var e;o?o(x||f):i?(e=u[i],l(Can.tdos.moveTdoNewFolder({tdo:e,selectedFolderId:x})),I()):(A(),l(Can.viewMyFiles.panelResultSelected(x||f)))},onClosePanel:I,isFolderSelected:m,selectHomeText:a,selectItemText:s})]})};const x0n=fe()((e,{height:t})=>({header:{alignItems:"center",borderBottom:"0.5px solid "+e.palette.divider,display:"flex",justifyContent:"space-between",height:t,padding:e.spacing(2,2,2,6)},headerNoBorder:{alignItems:"center",borderBottom:"0.5px solid transparent",display:"flex",justifyContent:"space-between",height:t,padding:e.spacing(0,0,0,6)},marginRight:{marginRight:e.spacing(2)},navigationToggle:{marginRight:e.spacing(1)},headerActionContainer:{alignItems:"center",display:"flex",flexGrow:1,height:"100%",justifyContent:"flex-end"},verticalDivider:{borderRight:".5px solid "+e.palette.divider,height:"70%",margin:"0 "+e.spacing(1)},title:{userSelect:"none",fontStyle:"normal",fontSize:"18px",lineHeight:e.spacing(5),letterSpacing:"0.25px",textTransform:"uppercase",color:e.palette.text.secondary}})),b0n={panelHeaderTitle:()=>nt.exports.jsx(oe,{id:"os-data-center-browse.media-details-panel.title",defaultMessage:"Data Detail",description:"Panel header for the Data Center Media Details Panel"}),iconProcessAi:()=>nt.exports.jsx(oe,{id:"os-data-center-browse.media-details-panel.process-ai",defaultMessage:"Run Cognition on this file",description:"Open Process Ai icon for the Data Center Media Details Panel"}),iconDownload:()=>nt.exports.jsx(oe,{id:"os-data-center-browse.media-details-panel.download",defaultMessage:"Download",description:"Download icon for the Data Center Media Details Panel"}),iconInfo:()=>nt.exports.jsx(oe,{id:"os-data-center-browse.media-details-panel.info",defaultMessage:"View file info",description:"View info icon for the Data Center Media Details Panel"}),iconEnterFullScreen:()=>nt.exports.jsx(oe,{id:"os-data-center-browse.media-details-panel.fullscreen-go",defaultMessage:"Enter Fullscreen",description:"Enter full screen icon for the Data Center Media Details Panel"}),iconLeaveFullScreen:()=>nt.exports.jsx(oe,{id:"os-data-center-browse.media-details-panel.fullscreen-leave",defaultMessage:"Leave Fullscreen",description:"Leave full screen icon for the Data Center Media Details Panel"}),closePanel:()=>nt.exports.jsx(oe,{id:"os-data-center-browse.media-details-panel.close-panel",defaultMessage:"Close",description:"Close panel icon for the Data Center Media Details Panel"})},C0n=({height:e,onPanelClose:t,onProcessAi:n,onFullScreenToggle:r,onDownloadAsset:i,onViewInfo:o,isFullScreen:a,entityPermissions:s,isOLPEnabled:l,isPermissionsLoading:c})=>{e=x0n({height:e}).classes;const u=e=>!l||!!s&&("failure"===s.status||s&&"success"===s.status&&s.permissions&&s.permissions[e]),d=e=>!(!l||!c&&u(e));var p=(e,t)=>l?c?nt.exports.jsx(nt.exports.Fragment,{children:csn.checkingPermissionsTooltip()}):d(e)?nt.exports.jsx(nt.exports.Fragment,{children:csn.noPermissionsTooltip()}):nt.exports.jsx(nt.exports.Fragment,{children:t}):nt.exports.jsx(nt.exports.Fragment,{children:t});return nt.exports.jsxs("header",Object.assign({className:e.header,"data-testid":"dc-media-details-iframe-header"},{children:[nt.exports.jsx(ae,Object.assign({variant:"h1","data-testid":"dc-media-details-iframe-title",className:e.title},{children:b0n.panelHeaderTitle()})),nt.exports.jsxs("div",Object.assign({className:e.headerActionContainer},{children:[nt.exports.jsx(ae,Object.assign({style:lsn,id:"dc-mdp-iframe-process-file"},{children:b0n.iconProcessAi()})),nt.exports.jsx(re,Object.assign({title:p(zLe.Update,b0n.iconProcessAi())},{children:nt.exports.jsx("span",{children:nt.exports.jsx(le,Object.assign({disabled:d(zLe.Update),onClick:n,"aria-labelledby":"dc-mdp-iframe-process-file","data-test":"dc-mdp-iframe-process-file",size:"large"},{children:nt.exports.jsx(Ise,{})}))})})),nt.exports.jsx(ae,Object.assign({style:lsn,id:"dc-mdp-iframe-download"},{children:b0n.iconDownload()})),nt.exports.jsx(re,Object.assign({title:p(zLe.Update,b0n.iconDownload())},{children:nt.exports.jsx("span",{children:nt.exports.jsx(le,Object.assign({disabled:d(zLe.Update),onClick:i,"aria-labelledby":"dc-mdp-iframe-download","data-test":"dc-mdp-iframe-download",size:"large"},{children:nt.exports.jsx(Noe,{})}))})})),nt.exports.jsx(ae,Object.assign({style:lsn,id:"dc-mdp-iframe-view-file-info"},{children:b0n.iconInfo()})),nt.exports.jsx(re,Object.assign({title:p(zLe.Update,b0n.iconInfo())},{children:nt.exports.jsx("span",{children:nt.exports.jsx(le,Object.assign({disabled:d(zLe.Read),onClick:o,"aria-labelledby":"dc-mdp-iframe-view-file-info","data-test":"dc-mdp-iframe-file-info-button",size:"large"},{children:nt.exports.jsx(Eae,{})}))})})),nt.exports.jsx("div",{className:e.verticalDivider}),nt.exports.jsx(ae,Object.assign({style:lsn,id:"dc-mdp-iframe-fullscreen"},{children:a?b0n.iconLeaveFullScreen():b0n.iconEnterFullScreen()})),nt.exports.jsx(re,Object.assign({title:a?b0n.iconLeaveFullScreen():b0n.iconEnterFullScreen()},{children:nt.exports.jsx(le,Object.assign({onClick:r,"aria-labelledby":"dc-mdp-iframe-fullscreen","data-test":"dc-mdp-iframe-fullscreen-toggle",size:"large"},{children:a?nt.exports.jsx(lae,{}):nt.exports.jsx(sae,{})}))})),nt.exports.jsx(ae,Object.assign({style:lsn,id:"dc-media-details-iframe-close-panel"},{children:b0n.closePanel()})),nt.exports.jsx(re,Object.assign({title:b0n.closePanel()},{children:nt.exports.jsx(le,Object.assign({onClick:t,"aria-labelledby":"dc-media-details-iframe-close-panel","data-testid":"dc-media-details-iframe-close-panel",size:"large"},{children:nt.exports.jsx(vae,{})}))}))]}))]}))},A0n=fe()(e=>({container:{width:"100%",height:"100%",display:"flex",position:"relative"},iframe:{width:"100%",height:"100%",border:"none",outline:"none",padding:"0px"},loader:{position:"absolute",top:0,left:0,width:"100%",height:"100%",background:"#FFF",display:"flex",justifyContent:"center",alignItems:"center"},errorMessageContainer:{width:"100%",height:"100%",background:"#FFF",flexDirection:"column",display:"flex",justifyContent:"center",alignItems:"center"},errorMessage:{marginTop:"20px"}})),I0n=({src:n,name:e,title:t,parentOnLoadMessage:r,isOLPEnabled:i=!1,permissions:o=void 0,passAuthToken:a=!1})=>{var s=A0n()["classes"];const l=ue(u$),[c,u]=De.exports.useState(!0),[d,p]=De.exports.useState(!1);var g=De.exports.useRef(null);De.exports.useEffect(()=>{var e;e=f(),Fon(void 0,void 0,void 0,function*(){try{400<=(yield fetch(e,{method:"GET",credentials:"include"})).status?p(!0):p(!1)}catch(e){p(!0)}}).catch(e=>{console.log(e)});const t=setTimeout(()=>{r||u(!1)},5e3);return()=>clearTimeout(t)},[n]),De.exports.useEffect(()=>{const e=e=>{e=e.data;e&&r&&e.message===r&&u(!1)};return window.addEventListener("message",e,!1),()=>window.removeEventListener("message",e)},[]);const f=()=>{const t=new URL(n);if(a&&t.searchParams.set("authToken",l.sessionToken),!1!==i&&o){["create","read","update","delete"].forEach(e=>{!o.permissions||o.permissions[e]||t.searchParams.set(e+"Disabled","true")});for(const e in o.permissions)!1===o.permissions[e]&&t.searchParams.set(e+"Disabled","true")}return t.toString()};return nt.exports.jsxs("div",Object.assign({className:s.container},{children:[c&&!d&&nt.exports.jsx("div",Object.assign({"data-test":"data-center-iframe-loader",className:s.loader},{children:nt.exports.jsx(L4,{size:50,disableShrink:!0})})),d?nt.exports.jsxs("div",Object.assign({className:s.errorMessageContainer},{children:[nt.exports.jsx("img",{"data-test":"data-center-iframe-error-image",alt:"error",src:lX}),nt.exports.jsx(ae,Object.assign({className:s.errorMessage,variant:"body1"},{children:nt.exports.jsx(oe,{id:"os-data-center-browse.iframe.errorMessage",defaultMessage:"Service not available. Please contact support.",description:"Error message for iframe not loading"})}))]})):nt.exports.jsx(nt.exports.Fragment,{children:(!1===i||!(!0!==i||!o)&&"pending"!==o.status)&&nt.exports.jsx("iframe",{id:"DataCenterIframe",ref:g,name:e,title:t,className:s.iframe,src:f()})})]}))},w0n=fe()(e=>({container:{width:"100%",height:"100%",display:"flex",flexDirection:"column"}})),j0n=(e,t,n)=>{var r=document.createElement("a");r.href=e+"/media-streamer/download/tdo/"+t,r.download=n,r.click()},S0n=({entityId:r,iframeUrl:e,fileName:t,isPanelFullScreen:n})=>{const i="DATA_CENTER_MDP_IFRAME_PANEL",o=de();var a=w0n()["classes"];const[s,l]=De.exports.useState(!1);var c=ue(Nan),u=ue(Man);const d=ue(J$);var p=ue(dFe.selectPermissionsByEntity(qLe.TDO,r)),g=ue(y$),f=ue(E$),e=e||f.cmsAppUrl+"/embed/#/media-details/"+r,f=null==(f=ue(dQ(i)))?void 0:f.panelConfig,h=!(!g||p&&"pending"!==p.status&&"idle"!==p.status);const m=u||c||n,v=f&&Object.keys(f).includes("marginTop")?f.marginTop:m?0:55,y=f&&Object.keys(f).includes("marginStart")?f.marginStart:m?0:80;De.exports.useEffect(()=>{l(!1)},[]);return nt.exports.jsxs(H0e,Object.assign({preventRerender:!0,containerClassName:a.container,fullScreen:u,dimmed:s,dataTest:"dc-media-details-panel-iframe"},{children:[nt.exports.jsx(C0n,{height:64,onProcessAi:()=>{var e={name:"DATA_CENTER_PROCESS_AI",config:{name:"DATA CENTER PROCESS AI",tdoId:r,parentPanelId:i}},t={type:"APP_BAR_PANEL_TEMPLATE",marginTop:v,marginStart:y,size:"small",zIndex:m?1013:1003,parentPanelId:i,dimmed:0,dimmedStatus:"dimParent"};o(gQ({panelId:"DATA_CENTER_PROCESS_AI",microFrontend:e,panelConfig:t}))},onDownloadAsset:()=>{j0n(d.apiRoot,r,t)},onViewInfo:()=>{var e="DATA_CENTER_FILE_INFO_PANEL",t={name:e,config:{name:"DATA CENTER FILE INFO PANEL",entityId:r,parentPanelId:i}},n={type:"APP_BAR_PANEL_TEMPLATE",marginTop:v,marginStart:y,size:"small",zIndex:m?1013:1002,parentPanelId:i,dimmed:0,dimmedStatus:"dimParent"};o(gQ({panelId:e,microFrontend:t,panelConfig:n}))},onFullScreenToggle:()=>{o(Can.uiState.toggleMdpFullScreen())},onPanelClose:()=>o(mQ(i)),isFullScreen:u,entityPermissions:p,isOLPEnabled:g,isPermissionsLoading:h}),nt.exports.jsx(I0n,{isOLPEnabled:g,permissions:p,src:e,name:"media-details-iframe-embed",title:"media-details-iframe-embed",passAuthToken:!0})]}))};const O0n=fe()(e=>({container:{width:"100%",height:"100%",display:"flex",flexDirection:"column"},content:{padding:"30px"}})),k0n=fe()((e,{height:t})=>({header:{alignItems:"center",borderBottom:"0.5px solid "+e.palette.divider,display:"flex",justifyContent:"space-between",height:t,padding:e.spacing(2,2,2,6),backgroundColor:"#FAFAFA"},headerNoBorder:{alignItems:"center",borderBottom:"0.5px solid transparent",display:"flex",justifyContent:"space-between",height:t,padding:e.spacing(0,0,0,6)},marginRight:{marginRight:e.spacing(2)},navigationToggle:{marginRight:e.spacing(1)},headerActionContainer:{alignItems:"center",display:"flex",flexGrow:1,height:"100%",justifyContent:"flex-end"},verticalDivider:{borderRight:".5px solid "+e.palette.divider,height:"70%",margin:"0 "+e.spacing(1)},title:{userSelect:"none",fontStyle:"normal",fontSize:"18px",lineHeight:e.spacing(5),letterSpacing:"0.25px",textTransform:"uppercase",color:e.palette.text.secondary}})),E0n={panelHeaderTitle:()=>nt.exports.jsx(oe,{id:"os-data-center-browse.file-info-panel.title",defaultMessage:"File Info",description:"Panel header for the Data Center File Info Panel"}),closePanel:()=>nt.exports.jsx(oe,{id:"os-data-center-browse.file-info-panel.close-panel",defaultMessage:"Close",description:"Close panel icon for the Data Center Media Details Panel"}),errorStateTitle:nt.exports.jsx(oe,{id:"os-data-center-browse.file-info-panel.error-not-found",defaultMessage:"Media not found",description:"Data Center File Info Panel Error media not found message"}),errorStateSubtitle:nt.exports.jsx(oe,{id:"os-data-center-browse.file-info-panel.error-not-found-subtitle",defaultMessage:"We couldn't find this file or you may not have permission to access this file.",description:"Data Center File Info Panel Error media not found message"})};Yce={fileInfo:nt.exports.jsx(oe,{id:"os-data-center-browse.file-info-panel.tab-header.file-info",defaultMessage:"File Info",description:"File Info Panel Tab Header for File Info"}),contentTemplates:nt.exports.jsx(oe,{id:"os-data-center-browse.file-info-panel.tab-header.content-templates",defaultMessage:"Content Templates",description:"File Info Panel Tab Header for Content Templates"}),activity:nt.exports.jsx(oe,{id:"os-data-center-browse.file-info-panel.tab-header.activity",defaultMessage:"Activity",description:"File Info Panel Tab Header for Activity"})};const T0n={editAttributes:nt.exports.jsx(oe,{id:"os-data-center-browse.file-info-panel.header-menu.edit-attributes",defaultMessage:"Edit Attributes",description:"File Info Panel, header menu item for edit attributes panel"}),moveTo:nt.exports.jsx(oe,{id:"os-data-center-browse.file-info-panel.header-menu.move-to",defaultMessage:"Move to...",description:"File Info Panel, header menu item for move item panel"}),process:nt.exports.jsx(oe,{id:"os-data-center-browse.file-info-panel.header-menu.process",defaultMessage:"Process with AI",description:"File Info Panel, header menu item for process with AI"}),download:nt.exports.jsx(oe,{id:"os-data-center-browse.file-info-panel.header-menu.download",defaultMessage:"Download",description:"File Info Panel, header menu item for download"}),delete:nt.exports.jsx(oe,{id:"os-data-center-browse.file-info-panel.header-menu.delete",defaultMessage:"Delete",description:"File Info Panel, header menu item for delete item"})},N0n={id:nt.exports.jsx(oe,{id:"os-data-center-browse.file-info-panel.file-info-data-type.id",defaultMessage:"TDO Id",description:"File Info Panel, File info data type TDO ID"}),name:nt.exports.jsx(oe,{id:"os-data-center-browse.file-info-panel.file-info-data-type.name",defaultMessage:"Name",description:"File Info Panel, File info data type name"}),location:nt.exports.jsx(oe,{id:"os-data-center-browse.file-info-panel.file-info-data-type.location",defaultMessage:"Location",description:"File Info Panel, File info data type location"}),url:nt.exports.jsx(oe,{id:"os-data-center-browse.file-info-panel.file-info-data-type.url",defaultMessage:"URL",description:"File Info Panel, File info data type url"}),fileType:nt.exports.jsx(oe,{id:"os-data-center-browse.file-info-panel.file-info-data-type.file-type",defaultMessage:"File Type",description:"File Info Panel, File info data type file type"}),fileSize:nt.exports.jsx(oe,{id:"os-data-center-browse.file-info-panel.file-info-data-type.file-size",defaultMessage:"File Size",description:"File Info Panel, File info data type file size"}),duration:nt.exports.jsx(oe,{id:"os-data-center-browse.file-info-panel.file-info-data-type.duration",defaultMessage:"Duration",description:"File Info Panel, File info data type duration"}),dateCreated:nt.exports.jsx(oe,{id:"os-data-center-browse.file-info-panel.file-info-data-type.date-created",defaultMessage:"Date Created",description:"File Info Panel, File info data type date created"}),dateUploaded:nt.exports.jsx(oe,{id:"os-data-center-browse.file-info-panel.file-info-data-type.date-uploaded",defaultMessage:"Date Uploaded",description:"File Info Panel, File info data type date uploaded"}),fileStatus:nt.exports.jsx(oe,{id:"os-data-center-browse.file-info-panel.file-info-data-type.file-status",defaultMessage:"Processing Status",description:"File Info Panel, File info data type file status"}),tags:nt.exports.jsx(oe,{id:"os-data-center-browse.file-info-panel.file-info-data-type.tags",defaultMessage:"Tags",description:"File Info Panel, File info data type tags"}),copyTdo:nt.exports.jsx(oe,{id:"os-data-center-browse.file-info-panel.file-info-data-type.copy.tdo",defaultMessage:"Copy TDO ID ",description:"File Info Panel, Copy Tdo id - tooltip"}),copied:nt.exports.jsx(oe,{id:"os-data-center-browse.file-info-panel.file-info-data-type.copied.tdo",defaultMessage:"Copied!",description:"File Info Panel, Copied - tooltip"}),aiEngines:nt.exports.jsx(oe,{id:"os-data-center-browse.file-info-panel.file-info-data-type.ai.engines",defaultMessage:"AI Engines",description:"File Info Panel, File Info AI Engines"}),otherEngines:nt.exports.jsx(oe,{id:"os-data-center-browse.file-info-panel.file-info-data-type.other.engines",defaultMessage:"Other Engines",description:"File Info Panel, File Info Other Engines"})},M0n=De.exports.createContext(void 0),P0n=M0n.Provider,D0n=fe()(e=>({menu:{width:e.spacing(34),padding:e.spacing(1.5)},menuItem:{borderRadius:4,padding:e.spacing(1),"& > svg":{marginRight:e.spacing(2)},textTransform:"none"},divider:{marginBottom:e.spacing(1.5),marginTop:e.spacing(1.5)}})),R0n=({id:e,anchorEl:t,anchorOriginX:n="left",anchorOriginY:r="bottom",transformOriginX:i="right",transformOriginY:o="top",entityId:a,disabled:s=!1,onClose:l,children:c})=>{var u=D0n()["classes"],d=Boolean(t),p=XLe(w.Tdos),p=ue(dFe.selectPermissionsByEntity(p,a)),a=a&&(!p||"pending"===p.status||"idle"===p.status);return nt.exports.jsx(P0n,Object.assign({value:{permissions:p,isLoadingPermissions:!!a,disabled:s}},{children:nt.exports.jsx($w,Object.assign({id:e,anchorEl:t,open:d,className:u.menu,onClose:l,anchorOrigin:{vertical:r,horizontal:n},transformOrigin:{vertical:o,horizontal:i}},{children:c}))}))},L0n=({id:e,permissionRequired:t,visible:n=!0,Icon:r,action:i,text:o,iconSize:a="small"})=>{var s=D0n()["classes"],{permissions:l,isLoadingPermissions:c,disabled:u}=(()=>{var e=De.exports.useContext(M0n);if(e)return e;throw new Error("useSecureMenuContext must be used within the SecureMenuProvider")})(),t=!rFe(l,t||zLe.Read)||c||u;return n&&rFe(l,zLe.Read)?nt.exports.jsxs(i8,Object.assign({id:e,disabled:t,onClick:i,className:s.menuItem},{children:[r&&nt.exports.jsx(r,{fontSize:a}),o]})):null},F0n=({visible:e=!0})=>{var t=D0n()["classes"];return e?nt.exports.jsx(ce,{className:t.divider}):null},V0n=({entityId:o,onDownloadAsset:t,onEditAttributes:n,onDeleteAsset:r,onProcessAi:i,isError:e,isLoading:a})=>{var s=yln[w.Tdos];const[l,c]=De.exports.useState(null),u=de();e=e||a;const d=()=>{c(null)};const p=(e,t)=>{t&&t(),d()};return nt.exports.jsxs(nt.exports.Fragment,{children:[nt.exports.jsx(le,Object.assign({onClick:e=>{c(e.currentTarget),e.stopPropagation()},"aria-labelledby":"dc-file-info-panel-header-menu","data-testid":"dc-file-info-panel-header-menu",size:"large"},{children:nt.exports.jsx(RMe,{})})),nt.exports.jsxs(R0n,Object.assign({id:"dc-file-info-panel-header-context-menu",entityId:o,anchorEl:l,anchorOriginX:"left",anchorOriginY:"bottom",transformOriginX:"right",transformOriginY:"top",disabled:e,onClose:d},{children:[nt.exports.jsx(L0n,{id:"dc-file-info-panel-header-menu-context-menu-option-edit-attributes",text:T0n.editAttributes,visible:!1,permissionRequired:zLe.Update,Icon:rue,iconSize:"small",action:e=>p(0,n)}),nt.exports.jsx(nt.exports.Fragment,{children:[...s.actions].filter(({testLabel:e})=>"view-file-info"!==e&&"process-tdo"!=e).map(({name:e,action:t,Icon:n,permissionRequired:r},i)=>nt.exports.jsx(L0n,{text:e(),Icon:n,action:e=>{u(t(o)),d(),e.stopPropagation()},id:"dc-file-info-panel-header-menu-context-menu-option",permissionRequired:r},i))}),nt.exports.jsx(L0n,{id:"dc-file-info-panel-header-menu-context-menu-option-process-with-ai",text:T0n.process,permissionRequired:zLe.Update,Icon:Ise,iconSize:"small",action:e=>p(0,i)}),nt.exports.jsx(F0n,{}),nt.exports.jsx(L0n,{id:"dc-file-info-panel-header-menu-context-menu-option-download",text:T0n.download,permissionRequired:zLe.Update,Icon:Noe,iconSize:"small",action:e=>p(0,t)}),nt.exports.jsx(L0n,{id:"dc-file-info-panel-header-menu-context-menu-option-delete",text:T0n.delete,visible:!1,permissionRequired:zLe.Delete,Icon:Soe,iconSize:"small",action:e=>p(0,r)})]}))]})},H0n=({height:e,onPanelClose:t,entityId:n,onDownloadAsset:r,onEditAttributes:i,onMoveAsset:o,onDeleteAsset:a,onProcessAi:s,isError:l,isLoading:c,isBetaFeaturesEnabled:u})=>{e=k0n({height:e}).classes;return nt.exports.jsxs("header",Object.assign({className:e.header,"data-testid":"dc-file-info-panel-header"},{children:[nt.exports.jsx(ae,Object.assign({variant:"h1","data-testid":"dc-file-info-panel-title",className:e.title},{children:E0n.panelHeaderTitle()})),nt.exports.jsxs("div",Object.assign({className:e.headerActionContainer},{children:[nt.exports.jsx(ae,Object.assign({style:lsn,id:"dc-file-info-panel-close-panel"},{children:E0n.closePanel()})),nt.exports.jsx(V0n,{entityId:n,onDownloadAsset:r,onEditAttributes:i,onDeleteAsset:a,onProcessAi:s,onMoveAsset:o,isError:l,isLoading:c,isBetaFeaturesEnabled:u}),nt.exports.jsx(re,Object.assign({title:E0n.closePanel()},{children:nt.exports.jsx(le,Object.assign({onClick:t,"aria-labelledby":"dc-file-info-panel-close-panel","data-testid":"dc-file-info-panel-close-panel",size:"large"},{children:nt.exports.jsx(vae,{})}))}))]}))]}))},U0n=[{label:Yce.fileInfo,disabled:!1,id:"File Info"}],B0n=[{label:Yce.contentTemplates,disabled:!1,id:"Content Templates"},{label:Yce.activity,disabled:!1,id:"Activity"}],z0n=fe()(e=>({container:{borderBottom:"1px solid #D5DFE9",padding:"10px 25px 0px"},tabWrapper:{"& p":{margin:0}}})),q0n=c(kO)({borderBottom:"none",minHeight:"30px","& .Sdk-MuiTabs-flexContainer":{justifyContent:"space-between"},"& .Sdk-MuiTabs-indicator":{backgroundColor:"#000"}}),_0n=c(Qj)({color:"#5C6269",fontWeight:400,minHeight:"40px",padding:0,"&.Mui-selected":{color:"#2A323C"}}),W0n=({onChange:e,selectedTabId:t,isBetaFeaturesEnabled:n})=>{const r=z0n()["classes"];n=n?[...U0n,...B0n]:U0n;return 1<n.length?nt.exports.jsx("div",Object.assign({className:r.container},{children:nt.exports.jsx(q0n,Object.assign({value:t,onChange:e,variant:"standard",centered:!0},{children:n.map(e=>nt.exports.jsx(_0n,{className:r.tabWrapper,label:e.label},e.id))}))})):null},Z0n=({tdoId:t})=>{const[e,n]=De.exports.useState(!1);var r={marginLeft:"5px",fontSize:"18px!important",verticalAlign:"middle","&:active":{color:ob().palette.action.active},"&:hover":{cursor:"pointer"}};return nt.exports.jsxs("div",Object.assign({style:{display:"flex",alignItems:"center"}},{children:[nt.exports.jsx(re,Object.assign({title:t},{children:nt.exports.jsx(ae,Object.assign({style:{maxWidth:"90px"},"data-test":"data-detail-tdo-id",noWrap:!0,variant:"body2"},{children:t}))})),nt.exports.jsx(re,Object.assign({title:e?N0n.copied:N0n.copyTdo,disableInteractive:!0},{children:nt.exports.jsxs("span",Object.assign({onMouseLeave:()=>setTimeout(()=>n(!1),300),onClick:e=>{n(!0),e.preventDefault(),e.stopPropagation(),navigator.clipboard.writeText(t).catch(e=>{console.error("Error writing text to clipboard: ",e)})}},{children:[!e&&nt.exports.jsx(ime,{sx:r}),e&&nt.exports.jsx(tme,{sx:r})]}))}))]}))},G0n=e=>{var[t,n,r]=e.toLocaleDateString("en-us").split("/"),[e,i]=e.toLocaleTimeString("en-us").split(" ");return`${t}/${n}/${r.slice(2)} ${e.slice(0,-3)} `+i},J0n=(e,t)=>{for(var n=String(e).split("");n.length<t;)n.unshift("0");return n.join("")},K0n=({status:e})=>{var t=fe()(e=>({statusContainer:{display:"flex",width:"fit-content",borderRadius:"3px",fontWeight:800,fontSize:"11px",padding:"0px 15px",pointerEvents:"none",userSelect:"none",marginTop:"3px",transform:"scale(0.85)",transformOrigin:"left"},"status-NEW":{backgroundColor:"#B9E0BB",color:"#16961B"},"status-COMPLETE":{color:"#1B5E20",background:"rgba(27, 94, 32, 0.2)"},"status-QUEUED":{color:"rgba(74, 20, 140, 1)",background:"rgba(74, 20, 140, 0.2)"},"status-PENDING":{backgroundColor:"#FFE49D",color:"#CA9200"},"status-RUNNING":{color:"rgba(13, 98, 210, 1)",background:"rgba(13, 98, 210, 0.2)"},"status-ERROR":{color:"rgba(183, 28, 28, 1)",background:"rgba(183, 28, 28, 0.2)"}}))()["classes"],n=t["status-"+e];return nt.exports.jsx("div",Object.assign({"data-test":"dc-file-info-panel-status-badge",className:t.statusContainer+" "+n},{children:e.toUpperCase()}))},Y0n=({folderName:e})=>{var t=fe()(e=>({container:{display:"flex",alignItems:"center",justifyContent:"flex-start",marginTop:"5px"},folderLabel:{marginLeft:"5px"}}))()["classes"];return nt.exports.jsxs("div",Object.assign({className:t.container},{children:[nt.exports.jsx(nae,{sx:{width:18,height:18}})," ",nt.exports.jsx(kfn,Object.assign({title:e,maxCharLength:14},{children:nt.exports.jsx(ae,Object.assign({"data-test":"dc-file-info-panel-item-location",className:t.folderLabel,noWrap:!0,variant:"body2"},{children:e}))}))]}))},Q0n=({label:e,value:t})=>{var n=fe()(e=>({container:{display:"flex",flexDirection:"column",width:"40%",marginBottom:"20px"},label:{},value:{}}))()["classes"];let r=t;return"string"==typeof t&&(r=nt.exports.jsx(kfn,Object.assign({title:t,maxCharLength:18},{children:nt.exports.jsx(ae,Object.assign({"data-test":"dc-file-info-panel-item-"+e,noWrap:!0,variant:"body2"},{children:t}))}))),null===t&&(r=nt.exports.jsx(ae,{children:"N/A"})),nt.exports.jsxs("div",Object.assign({className:n.container},{children:[nt.exports.jsx(ae,Object.assign({"data-test":"dc-file-info-panel-"+e,className:n.label,variant:"caption",sx:{fontWeight:"400",color:"#5C6269"}},{children:N0n[e]})),nt.exports.jsx("span",Object.assign({className:n.value},{children:r}))]}))},X0n=({tags:e})=>{const n=fe()(e=>({container:{display:"flex",flexDirection:"column",width:"100%"},tagList:{display:"flex",flexWrap:"wrap",marginTop:"8px"},tag:{border:"0.5px solid #D5DFE9",padding:"0px 10px",borderRadius:"20px",display:"flex",marginRight:"10px",marginBottom:"10px"}}))()["classes"];return nt.exports.jsxs("div",Object.assign({className:n.container},{children:[nt.exports.jsx(ae,Object.assign({"data-test":"dc-file-info-panel-tags",variant:"caption",sx:{fontWeight:"400",color:"#5C6269"}},{children:N0n.tags})),nt.exports.jsx("div",Object.assign({className:n.tagList},{children:e.map((e,t)=>nt.exports.jsx(ae,Object.assign({"data-test":"dc-file-info-panel-tag-item",className:n.tag,noWrap:!0,variant:"body2"},{children:e}),t))}))]}))},$0n=({fileInfo:e})=>{const t=fe()(e=>({container:{display:"flex",justifyContent:"space-between",flexWrap:"wrap"},engineIcons:{display:"flex",flexDirection:"column",width:"40%",marginBottom:"20px"}}))()["classes"],o=(n=e)?((i={}).name=(null==(r=null==(r=n.details)?void 0:r.veritoneFile)?void 0:r.filename)||(null==(r=null==(r=n.details)?void 0:r.veritoneFile)?void 0:r.fileName)||(null==(r=n.details)?void 0:r.name)||n.name||n.id,!n.folders||n.folders.length<1?i.location="Home":(n.folders[0].folderPath.length<=1&&(i.location="Home"),i.location=n.folders[0].folderPath[0].name),n.id&&(i.id=n.id),null!=(r=n.primaryAsset)&&r.signedUri&&(i.url=n.primaryAsset.signedUri),(null!=(r=null==(r=n.details)?void 0:r.veritoneFile)&&r.mimetype||null!=(r=n.primaryAsset)&&r.contentType)&&(i.fileType=(null==(r=null==(r=n.details)?void 0:r.veritoneFile)?void 0:r.mimetype)||(null==(r=n.primaryAsset)?void 0:r.contentType)),null!=(r=null==(r=n.details)?void 0:r.veritoneFile)&&r.size&&(i.fileSize=null==(r=null==(r=n.details)?void 0:r.veritoneFile)?void 0:r.size),n.startDateTime&&n.stopDateTime&&n.startDateTime!==n.stopDateTime?i.duration=Math.floor((new Date(n.stopDateTime).getTime()-new Date(n.startDateTime).getTime())/1e3):i.duration=null,n.modifiedDateTime&&(i.dateUploaded=n.modifiedDateTime),n.createdDateTime&&(i.dateCreated=n.createdDateTime),n.jobs&&0<n.jobs.records.length?n.jobs.records.find(e=>e.status===Mon.FAILED||e.status===Mon.ABORTED||e.status===Mon.CANCELLED)?i.fileStatus="ERROR":n.jobs.records.find(e=>e.status===Mon.PENDING||e.status===Mon.ACTIVE)?i.fileStatus="PENDING":n.jobs.records.find(e=>e.status===Mon.RUNNING)?i.fileStatus="RUNNING":n.jobs.records.every(e=>e.status===Mon.QUEUED||e.status===Mon.SCHEDULED)?i.fileStatus="QUEUED":n.jobs.records.every(e=>e.status===Mon.COMPLETE)?i.fileStatus="COMPLETE":i.fileStatus="NEW":i.fileStatus="NEW",n.details&&Array.isArray(null==(r=n.details)?void 0:r.tags)?i.tags=((null==(r=n.details)?void 0:r.tags)||[]).map(e=>"string"==typeof e?e:"object"==typeof e&&e.value?String(e.value):void 0).filter(e=>!!e):i.tags=[],i):{};var n=ue(Ian),r=ue(wan),i=ue(kan);const a=e&&e.id?Van([e.id],i,r,n)[0].file:[];return nt.exports.jsx("div",Object.assign({className:t.container},{children:nt.exports.jsx(()=>nt.exports.jsxs(nt.exports.Fragment,{children:[o&&Object.keys(o).map(e=>{var t,n,r,i=o[e];switch(e){case"dateUploaded":return nt.exports.jsx(Q0n,{label:e,value:G0n(new Date(i))},e);case"url":return null;case"id":return nt.exports.jsx(Q0n,{label:e,value:nt.exports.jsx(Z0n,{tdoId:i})},e);case"dateCreated":return nt.exports.jsx(Q0n,{label:e,value:G0n(new Date(i))},e);case"fileStatus":return nt.exports.jsx(Q0n,{label:e,value:nt.exports.jsx(K0n,{status:i})},e);case"fileSize":return nt.exports.jsx(Q0n,{label:e,value:(n=Math.ceil(i/1024))<1024?n+" KB":(r=1024<n/1024?"GB":"MB",(n/1024).toFixed(2)+" "+r)},e);case"fileType":return nt.exports.jsx(Q0n,{label:e,value:(e=>{var[,e]=e.split("/");return e})(i).toUpperCase()},e);case"location":return nt.exports.jsx(Q0n,{label:e,value:nt.exports.jsx(Y0n,{folderName:i})},e);case"tags":return null;case"duration":return nt.exports.jsx(Q0n,{label:e,value:(n=i)?n<60?n+" seconds":((r=[]).unshift(J0n(n%60,2)),n<3600?(t=Math.floor(n/60),r.unshift(n<600?t:J0n(t,2))):(r.unshift(J0n(Math.floor(n%3600),2)),r.unshift(J0n(Math.floor(n/86400),2))),r.join(":")):"N/A"},e);default:return nt.exports.jsx(Q0n,{label:e,value:i},e)}}),nt.exports.jsxs("div",Object.assign({"data-test":"dc-file-info-panel-ai-engines-container",className:t.engineIcons},{children:[nt.exports.jsx(ae,Object.assign({"data-test":"dc-file-info-panel-ai-engines",variant:"caption",sx:{fontWeight:"400",color:"#5C6269",marginBottom:"3px"}},{children:N0n.aiEngines})),nt.exports.jsx(Fpn,{item:a,iconsToShow:4})]})),nt.exports.jsxs("div",Object.assign({"data-test":"dc-file-info-panel-other-engines-container",className:t.engineIcons},{children:[nt.exports.jsx(ae,Object.assign({"data-test":"dc-file-info-panel-other-engines",variant:"caption",sx:{fontWeight:"400",color:"#5C6269",marginBottom:"3px"}},{children:N0n.otherEngines})),nt.exports.jsx(Fpn,{item:a,iconsToShow:4,showOtherEngines:!0})]})),nt.exports.jsx(X0n,{tags:(null===o||void 0===o?void 0:o.tags)||[]})]}),{})}))},emn=()=>nt.exports.jsx(Oln,{emptyType:w.Tdos,title:E0n.errorStateTitle,subtitle:E0n.errorStateSubtitle}),tmn=()=>{var e=fe()(e=>({loading:{display:"flex",height:"100%",justifyContent:"center",alignItems:"center"}}))()["classes"];return nt.exports.jsx("div",Object.assign({className:e.loading},{children:nt.exports.jsx(L4,{})}))},nmn=({entityId:n,fileName:e})=>{const[t,r]=De.exports.useState(0),i="DATA_CENTER_FILE_INFO_PANEL",o=de(),a=ue(J$);var s=ue(nsn),l=ue(_$);const c=ue(Nan),{loadingStatus:u,fileInfo:d}=s;var s="failure"===u,p=(De.exports.useEffect(()=>{o(Can.fileInfo.fetchFileInfoStart({entityId:n})),o(oFe.fetchObjectPermissionsStart({entityType:qLe.TDO,entityId:n}))},[o,n]),O0n())["classes"],g="pending"===u,f="success"===u&&!s;return nt.exports.jsxs("div",Object.assign({className:p.container},{children:[nt.exports.jsx(H0n,{height:64,onPanelClose:()=>o(mQ(i)),onEditAttributes:()=>{},onProcessAi:()=>{var e={name:"DATA_CENTER_PROCESS_AI",config:{name:"DATA CENTER PROCESS AI",tdoId:n,parentPanelId:i,marginStart:380}},t={type:"APP_BAR_PANEL_TEMPLATE",marginTop:c?0:55,marginStart:380+(c?0:80),size:"small",zIndex:c?1008:1001,siblingPanelId:i,parentPanelId:i,dimmed:0,dimmedStatus:"dimParent"};o(gQ({panelId:"DATA_CENTER_PROCESS_AI",microFrontend:e,panelConfig:t}))},onMoveAsset:()=>{},onDownloadAsset:()=>{j0n(a.apiRoot,n,e)},onDeleteAsset:()=>{},entityId:n,isError:s,isLoading:g,isBetaFeaturesEnabled:l}),s&&nt.exports.jsx(emn,{}),g&&nt.exports.jsx(tmn,{}),f&&nt.exports.jsxs(nt.exports.Fragment,{children:[nt.exports.jsx(W0n,{selectedTabId:t,onChange:(e,t)=>r(t),isBetaFeaturesEnabled:l}),nt.exports.jsx("div",Object.assign({className:p.content},{children:nt.exports.jsx(()=>{switch(t){case 0:return nt.exports.jsx($0n,{fileInfo:d});case 1:return nt.exports.jsx("div",{children:"Content Templates"});case 2:return nt.exports.jsx("div",{children:"Activity"});default:return null}},{})}))]})]}))};const rmn={panelHeaderTitle:()=>nt.exports.jsx(oe,{id:"os-data-center-browse.ingestion-creation-panel.title",defaultMessage:"New Ingestion Job",description:"Panel header for the Data Center Ingestion Creation Panel"}),closePanel:()=>nt.exports.jsx(oe,{id:"os-data-center-browse.ingestion-creation-panel.close-panel",defaultMessage:"Close",description:"Close panel icon for the Data Center Ingestion Creation Panel"})},imn=({height:e,onPanelClose:t})=>{e=fe()((e,{height:t})=>({header:{alignItems:"center",borderBottom:"0.5px solid transparent",display:"flex",justifyContent:"space-between",height:t,padding:e.spacing(2,2,2,6)},marginRight:{marginRight:e.spacing(2)},navigationToggle:{marginRight:e.spacing(1)},headerActionContainer:{alignItems:"center",display:"flex",flexGrow:1,height:"100%",justifyContent:"flex-end"},verticalDivider:{borderRight:".5px solid "+e.palette.divider,height:"70%",margin:"0 "+e.spacing(1)},title:{userSelect:"none",fontStyle:"normal",fontSize:"18px",lineHeight:e.spacing(5),letterSpacing:"0.25px",textTransform:"uppercase",color:e.palette.text.secondary}}))({height:e}).classes;return nt.exports.jsxs("header",Object.assign({className:e.header,"data-testid":"dc-ingestion-creation-iframe-header"},{children:[nt.exports.jsx(ae,Object.assign({variant:"h1","data-testid":"dc-ingestion-creation-iframe-title",className:e.title},{children:rmn.panelHeaderTitle()})),nt.exports.jsxs("div",Object.assign({className:e.headerActionContainer},{children:[nt.exports.jsx(ae,Object.assign({style:lsn,id:"dc-ingestion-creation-iframe-close-panel"},{children:rmn.closePanel()})),nt.exports.jsx(re,Object.assign({title:rmn.closePanel()},{children:nt.exports.jsx(le,Object.assign({onClick:t,"aria-labelledby":"dc-ingestion-creation-iframe-close-panel","data-testid":"dc-media-details-iframe-close-panel",size:"large"},{children:nt.exports.jsx(moe,{})}))}))]}))]}))};const omn={panelHeaderTitle:()=>nt.exports.jsx(oe,{id:"os-data-center-browse.select-import-source.title",defaultMessage:"Select Import Source",description:"Panel header for Select Import Source"}),closePanel:()=>nt.exports.jsx(oe,{id:"os-data-center-browse.select-import-source.close-panel",defaultMessage:"Close",description:"Close panel icon for the Data Center Select Import Source"}),tabs:{pull:()=>nt.exports.jsx(oe,{id:"os-data-center-browse.select-import-source.tab.pull",defaultMessage:"Pull",description:"Pull Tab title for Select Import Source"}),push:()=>nt.exports.jsx(oe,{id:"os-data-center-browse.select-import-source.tab.push",defaultMessage:"Push",description:"Push Tab title for Select Import Source"})},engineList:{errorStateTitle:()=>nt.exports.jsx(oe,{id:"os-data-center-browse.select-import-source.engine-list.error-title",defaultMessage:"Error Loading Engines",description:"Error title for loading Engines List title for Select Import Source"}),errorStateRetry:()=>nt.exports.jsx(oe,{id:"os-data-center-browse.select-import-source.engine-list.error-retry",defaultMessage:"Retry",description:"Error retry button for loading Engines List title for Select Import Source"}),emptyState:()=>nt.exports.jsx(oe,{id:"os-data-center-browse.select-import-source.engine-list.empty",defaultMessage:"No Engines Found",description:"Empty Engines List title for Select Import Source"})}},amn=({onPanelClose:e,height:t})=>{t=fe()((e,{height:t})=>({header:{alignItems:"center",borderBottom:"0.5px solid transparent",display:"flex",justifyContent:"space-between",height:t,padding:e.spacing(2,2,2,6)},marginRight:{marginRight:e.spacing(2)},navigationToggle:{marginRight:e.spacing(1)},headerActionContainer:{alignItems:"center",display:"flex",flexGrow:1,height:"100%",justifyContent:"flex-end"},verticalDivider:{borderRight:".5px solid "+e.palette.divider,height:"70%",margin:"0 "+e.spacing(1)},title:{userSelect:"none",fontStyle:"normal",fontSize:"18px",lineHeight:e.spacing(5),letterSpacing:"0.25px",textTransform:"uppercase",color:e.palette.text.secondary}}))({height:t}).classes;return nt.exports.jsxs("header",Object.assign({className:t.header,"data-testid":"dc-ingestion-creation-iframe-header"},{children:[nt.exports.jsx(ae,Object.assign({variant:"h1","data-testid":"dc-ingestion-creation-iframe-title",className:t.title},{children:omn.panelHeaderTitle()})),nt.exports.jsxs("div",Object.assign({className:t.headerActionContainer},{children:[nt.exports.jsx(ae,Object.assign({style:lsn,id:"dc-ingestion-creation-iframe-close-panel"},{children:omn.closePanel()})),nt.exports.jsx(re,Object.assign({title:omn.closePanel()},{children:nt.exports.jsx(le,Object.assign({onClick:e,"aria-labelledby":"dc-ingestion-creation-iframe-close-panel","data-testid":"dc-media-details-iframe-close-panel",size:"large"},{children:nt.exports.jsx(rme,{})}))}))]}))]}))},smn=fe()(e=>({tabPanelContainer:{"&:not([hidden])":{overflow:"hidden",overflowY:"scroll",display:"flex",flexDirection:"column",boxSizing:"border-box",justifyContent:"space-between",maxHeight:"100%"},"&.tab-panel::-webkit-scrollbar":{width:"0px!important"},"&.tab-panel:hover::-webkit-scrollbar":{width:"8px!important"}},tabContainer:{padding:"0 30px",borderBottom:"0.5px solid #D5DFE9","& .Sdk-Mui-selected":{color:"black!important"},"& .Sdk-MuiTabs-indicator":{backgroundColor:"black!important"}}}));function lmn(e){return{id:"pull-push-tab-"+e,"aria-controls":"pull-push-tab-"+e}}const cmn=({activeTab:e,onChange:n})=>{var t=smn()["classes"];return nt.exports.jsx("div",Object.assign({className:t.tabContainer},{children:nt.exports.jsxs(kO,Object.assign({value:e,onChange:(e,t)=>{n(t)}},{children:[nt.exports.jsx(Qj,Object.assign({label:omn.tabs.pull(),value:0},lmn(0))),nt.exports.jsx(Qj,Object.assign({label:omn.tabs.push(),value:1},lmn(1)))]}))}))},umn=fe()(e=>({container:{"&:first-of-type":{marginTop:"10px"},"&:last-of-type":{marginBottom:"10px"},display:"flex",justifyContent:"flex-start",alignItems:"flex-start",paddingTop:"20px",paddingBottom:"20px",paddingLeft:"30px",borderBottom:"0.5px solid #D5DFE9","&:hover":{backgroundColor:"#EEF3F9",cursor:"pointer"}},isActive:{backgroundColor:"#EEF3F9"},iconContainer:{width:"50px",height:"50px",display:"flex",alignItems:"flex-start",justifyContent:"center","& img":{width:"50%",height:"50%",objectFit:"cover",borderRadius:"50%",border:"1px solid #D5DFE9",backgroundColor:"#fff"}},labelContainer:{display:"flex",flexDirection:"column",maxWidth:"70%",gap:"5px"}})),dmn=({engineImportItem:e,onClick:t,isActive:n})=>{var r=umn()["classes"];const{displayName:i,name:o,description:a,signedLogoPath:s,signedIconPath:l}=e,[c,u]=De.exports.useState(l),[d,p]=De.exports.useState(!1);return nt.exports.jsxs("div",Object.assign({"data-test-id":"engine-item-id-"+o,className:r.container+" "+(n?r.isActive:""),onClick:t},{children:[nt.exports.jsxs("div",Object.assign({className:r.iconContainer},{children:[c&&!d&&nt.exports.jsx("img",{onError:()=>{s&&c!==s?u(s):p(!0)},src:c,alt:"Engine Icon"}),(!c||d)&&nt.exports.jsx(lle,{sx:{color:"#555F7C"}})]})),nt.exports.jsxs("div",Object.assign({"data-test-id":"engine-item-id-label-container-"+o,className:r.labelContainer},{children:[i&&nt.exports.jsx(ae,Object.assign({id:"engine-item-id-label-"+i},{children:i})),!i&&nt.exports.jsx(ae,Object.assign({id:"engine-item-id-label-"+o},{children:o})),nt.exports.jsx(ae,Object.assign({variant:"caption"},{children:a}))]}))]}))},pmn=fe()(e=>({container:{display:"flex",flexDirection:"column"},loader:{display:"flex",alignItems:"center",justifyContent:"center",padding:"30px",marginTop:"50px"},emptyState:{padding:"30px",display:"flex",alignItems:"center",justifyContent:"center",marginTop:"50px",flexDirection:"column",gap:"15px"}}));const gmn={selectEngines:e=>e[ban].panelSelectImportSource.engineList,selectActiveEngineId:e=>e[ban].panelSelectImportSource.activeEngineId,selectFetchEnginesStatus:e=>e[ban].panelSelectImportSource.fetchEnginesStatus},fmn=({engines:e,onClickEngine:n,onRetry:t,isLoading:r,isError:i})=>{var o=pmn()["classes"];const a=ue(gmn.selectActiveEngineId);return nt.exports.jsxs("div",Object.assign({className:o.container},{children:[!i&&e.map((e,t)=>nt.exports.jsx(dmn,{engineImportItem:e,onClick:()=>n(e),isActive:(null==e?void 0:e.id)===a},null==e?void 0:e.id)),i&&nt.exports.jsx(hmn,{onRetry:t}),r&&nt.exports.jsx("div",Object.assign({className:o.loader},{children:nt.exports.jsx(L4,{})})),0===e.length&&!r&&!i&&nt.exports.jsx(mmn,{})]}))},hmn=({onRetry:e})=>{var t=pmn()["classes"];return nt.exports.jsxs("div",Object.assign({className:t.emptyState},{children:[nt.exports.jsx(ae,{children:omn.engineList.errorStateTitle()}),nt.exports.jsx(se,Object.assign({onClick:e},{children:omn.engineList.errorStateRetry()}))]}))},mmn=()=>{var e=pmn()["classes"];return nt.exports.jsx("div",Object.assign({className:e.emptyState},{children:nt.exports.jsx(ae,{children:omn.engineList.emptyState()})}))};const vmn=e=>{var{children:t,value:n,index:r}=e,e=Lon(e,["children","value","index"]),i=smn()["classes"];return nt.exports.jsx("div",Object.assign({className:i.tabPanelContainer+" tab-panel",role:"tabpanel",hidden:n!==r,id:"pull-push-tabpanel-"+r,"aria-labelledby":"pull-push-tab-"+r},e,{children:n===r&&t}))},ymn={panelHeaderTitle:()=>nt.exports.jsx(oe,{id:"os-data-center-browse.source-creation-panel.title",defaultMessage:"Create New Source",description:"Panel header for the Data Center Source Creation Panel"}),closePanel:()=>nt.exports.jsx(oe,{id:"os-data-center-browse.source-creation-panel.close-panel",defaultMessage:"Close",description:"Close panel icon for the Data Center Source Creation Panel"})},xmn=({height:e,onPanelClose:t})=>{e=fe()((e,{height:t})=>({header:{alignItems:"center",borderBottom:"0.5px solid "+e.palette.divider,display:"flex",justifyContent:"space-between",height:t,padding:e.spacing(2,2,2,6)},headerNoBorder:{alignItems:"center",borderBottom:"0.5px solid transparent",display:"flex",justifyContent:"space-between",height:t,padding:e.spacing(0,0,0,6)},marginRight:{marginRight:e.spacing(2)},navigationToggle:{marginRight:e.spacing(1)},headerActionContainer:{alignItems:"center",display:"flex",flexGrow:1,height:"100%",justifyContent:"flex-end"},verticalDivider:{borderRight:".5px solid "+e.palette.divider,height:"70%",margin:"0 "+e.spacing(1)},title:{userSelect:"none",fontStyle:"normal",fontSize:"18px",lineHeight:e.spacing(5),letterSpacing:"0.25px",textTransform:"uppercase",color:e.palette.text.secondary}}))({height:e}).classes;return nt.exports.jsxs("header",Object.assign({className:e.header,"data-testid":"dc-source-creation-iframe-header"},{children:[nt.exports.jsx(ae,Object.assign({variant:"h1","data-testid":"dc-source-creation-iframe-title",className:e.title},{children:ymn.panelHeaderTitle()})),nt.exports.jsxs("div",Object.assign({className:e.headerActionContainer},{children:[nt.exports.jsx(ae,Object.assign({style:lsn,id:"dc-source-creation-iframe-close-panel"},{children:ymn.closePanel()})),nt.exports.jsx(re,Object.assign({title:ymn.closePanel()},{children:nt.exports.jsx(le,Object.assign({onClick:t,"aria-labelledby":"dc-source-creation-iframe-close-panel","data-testid":"dc-source-creation-iframe-close-panel",size:"large"},{children:nt.exports.jsx(vae,{})}))}))]}))]}))};var bmn,Cmn,Amn,Imn=Object.freeze({__proto__:null,AddNewFolder:rhn,AiAutocomplete:cln,DataCenterBrowse:e=>nt.exports.jsx(FO,{children:nt.exports.jsx(sg,Object.assign({modules:[l0n(),m0e(),Grn()]},{children:nt.exports.jsx(qte,{children:nt.exports.jsx(c0n,Object.assign({},e))})}))}),DataCenterTableDataSettings:Kce,EditFolder:ry,FileInfoPanel:e=>nt.exports.jsx(FO,{children:nt.exports.jsx(sg,Object.assign({modules:[l0n()]},{children:nt.exports.jsx(qte,{children:nt.exports.jsx(nmn,Object.assign({},e))})}))}),FoldersAndFilesPanel:({panelRendered:e,hidePanel:t,viewType:n,tdoId:r,onSelect:i,selectHomeText:o,selectItemText:a,hideNewFolderButton:s})=>nt.exports.jsx(sg,Object.assign({modules:[l0n()]},{children:nt.exports.jsx(qte,Object.assign({style:{height:"100%"}},{children:nt.exports.jsx(y0n,{hideNewFolderButton:s,panelRendered:e,tdoId:r,viewType:n,hidePanel:t,onSelect:i,selectHomeText:o,selectItemText:a})}))})),IngestionCreationPanel:()=>{const t="DATA_CENTER_INGESTION_CREATION_PANEL",n=de();var e=ue(N$)+"/embed/#/ingestion-jobs/create",r=(De.exports.useEffect(()=>{const e=e=>{e=e.data;e&&"AIWARE_SDK_INGESTION_CREATE_COMPLETE"===e.message&&n(mQ(t))};return window.addEventListener("message",e,!1),()=>window.removeEventListener("message",e)},[]),fe()(e=>({container:{display:"flex",height:"100%",flexDirection:"column"}}))())["classes"];return nt.exports.jsxs("div",Object.assign({className:r.container},{children:[nt.exports.jsx(imn,{height:64,onPanelClose:()=>n(mQ(t))}),nt.exports.jsx(I0n,{src:e,name:"ingestion-creation-iframe-embed",title:"ingestion-creation-iframe-embed",parentOnLoadMessage:"AIWARE_SDK_INGESTION_CREATE_LOADED"})]}))},MediaDetailsPanelIframe:e=>nt.exports.jsx(FO,{children:nt.exports.jsx(sg,Object.assign({modules:[l0n()]},{children:nt.exports.jsx(qte,Object.assign({style:{height:`calc(100vh - ${e.isPanelFullScreen?"0":"60"}px)`}},{children:nt.exports.jsx(S0n,Object.assign({},e))}))}))}),SelectImportSource:r=>{const i=de();var[e,t]=De.exports.useState(0);const n=ue(gmn.selectFetchEnginesStatus);var o="pending"===n,a="failure"===n;const s=ue(gmn.selectEngines),l=ue(Nan),c=()=>i(mQ("DATA_CENTER_SELECT_IMPORT_SOURCE"));var u=()=>{i(lon.fetchEngineAdapterStart())};var d=n=>{i(lon.setActiveEngineId(n.id)),setTimeout(()=>{var e,t;c(),e={name:"PROCESSING_CENTER_INGESTION",config:{name:"New Ingestion",activeEngine:e=n,isFullScreen:null==r?void 0:r.isFullScreen}},t={type:"APP_BAR_PANEL_TEMPLATE",size:"large",marginTop:l?0:55,marginStart:l?0:80,zIndex:l?1010:1001,parentPanelId:"DATA_CENTER",dimmed:0,dimmedStatus:"dimParent",borderBottom:!0},i(gQ({panelId:"PROCESSING_CENTER_INGESTION",microFrontend:e,panelConfig:t}))},250)};const p=()=>{i(lon.resetState())};return De.exports.useEffect(()=>(s.pull.length||s.push.length||"idle"!==n||i(lon.fetchEngineAdapterStart()),p),[]),nt.exports.jsxs("div",Object.assign({style:{height:"100%",display:"flex",flexDirection:"column"}},{children:[nt.exports.jsx(amn,{height:64,onPanelClose:c}),nt.exports.jsx(cmn,{activeTab:e,onChange:t}),nt.exports.jsx(vmn,Object.assign({index:0,value:e},{children:nt.exports.jsx(fmn,{isLoading:o,isError:a,engines:s.pull.filter(e=>e.supportedSourceTypes),onClickEngine:d,onRetry:u})})),nt.exports.jsx(vmn,Object.assign({index:1,value:e},{children:nt.exports.jsx(fmn,{isLoading:o,isError:a,engines:s.push.filter(e=>e.supportedSourceTypes),onClickEngine:d,onRetry:u})}))]}))},SourceCreationPanel:()=>{var e=fe()(e=>({container:{display:"flex",height:"100%",flexDirection:"column"}}))()["classes"];const t="DATA_CENTER_SOURCE_CREATION_PANEL",n=de();var r=ue(N$)+"/embed/#/sources/create";return De.exports.useEffect(()=>{const e=e=>{e=e.data;e&&"AIWARE_SDK_SOURCE_UPDATE_COMPLETE"===e.message&&n(mQ(t))};return window.addEventListener("message",e,!1),()=>{n(Can.viewStreams.refreshSourcesSchedulesTdos()),n(Can.viewStreams.sourcesFetchStart()),window.removeEventListener("message",e)}},[]),nt.exports.jsxs("div",Object.assign({className:e.container},{children:[nt.exports.jsx(xmn,{height:64,onPanelClose:()=>n(mQ(t))}),nt.exports.jsx(I0n,{src:r,name:"source-creation-iframe-embed",title:"source-creation-iframe-embed",parentOnLoadMessage:"AIWARE_SDK_SOURCE_CREATE_LOADED"})]}))},Types:Xin,actions:Can,formatJobForDisplay:Don,getDataCenterBrowseModule:l0n,selectors:ssn}),J_={},ey=B.exports,Ice=(Object.defineProperty(J_,"__esModule",{value:!0}),J_.default=void 0,ey(__)),ele=nt.exports,Doe=(0,Ice.default)((0,ele.jsx)("path",{d:"M13 7h-2v4H7v2h4v4h2v-4h4v-2h-4V7zm-1-5C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z"}),"AddCircleOutline"),wmn=J_.default=Doe,hoe={},foe=B.exports,aoe=(Object.defineProperty(hoe,"__esModule",{value:!0}),hoe.default=void 0,foe(__)),ioe=nt.exports,Fce=(0,aoe.default)((0,ioe.jsx)("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"ErrorOutline"),jmn=hoe.default=Fce,boe={},tce=B.exports,Eoe=(Object.defineProperty(boe,"__esModule",{value:!0}),boe.default=void 0,tce(__)),poe=nt.exports,Gce=(0,Eoe.default)((0,poe.jsx)("path",{d:"M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65 4-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4l-2.35 2.35z"}),"RefreshOutlined"),Smn=boe.default=Gce,ooe={},voe=B.exports,pSt=(Object.defineProperty(ooe,"__esModule",{value:!0}),ooe.default=void 0,voe(__)),WH=nt.exports,zse=(0,pSt.default)((0,WH.jsx)("path",{d:"M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96zM19 18H6c-2.21 0-4-1.79-4-4 0-2.05 1.53-3.76 3.56-3.97l1.07-.11.5-.95C8.08 7.14 9.94 6 12 6c2.62 0 4.88 1.86 5.39 4.43l.3 1.5 1.53.11c1.56.1 2.78 1.41 2.78 2.96 0 1.65-1.35 3-3 3zM8 13h2.55v3h2.9v-3H16l-4-4z"}),"CloudUploadOutlined"),Omn=ooe.default=zse;const kmn="dataCenterImporter",Emn=((pce=bmn=bmn||{})[pce.browseFiles=0]="browseFiles",pce[pce.filesSelected=1]="filesSelected",pce[pce.folders=2]="folders",(Ooe=Cmn=Cmn||{}).Image="image",Ooe.Video="video",Ooe.Audio="audio",Ooe.Text="text",(ise=Amn=Amn||{}).ApplicationJson="application/json",ise.ApplicationMsWord="application/msword",ise.ApplicationPdf="application/pdf",ise.ApplicationRtf="application/rtf",ise.ApplicationSmil="application/smil+xml",ise.ApplicationTtml="application/ttml+xml",ise.ApplicationVeritoneAion="application/vnd.veritone.aion+json",ise.ApplicationMsOutlook="application/vnd.ms-outlook",ise.ApplicationMsPowerpoint="application/vnd.ms-powerpoint",ise.ApplicationDocument="application/vnd.openxmlformats-officedocument.wordprocessingml.document",ise.ApplicationSpreadsheet="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",ise.ApplicationPresentation="application/vnd.openxmlformats-officedocument.presentationml.presentation",ise.ApplicationOasisDoc="application/vnd.oasis.opendocument.text",ise.ApplicationOasisSpreadsheet="application/vnd.oasis.opendocument.spreadsheet",ise.ApplicationXFlv="application/x-flv",ise.ApplicationXml="application/xml",ise.ApplicationFormUrlEncoded="application/x-www-form-urlencoded",ise.ImageJpeg="image/jpeg",ise.ImagePng="image/png",ise.ImageTiff="image/tiff",ise.ImageGig="image/gif",ise.TextPlain="text/plain",ise.TextHtml="text/html",ise.TextCsv="text/csv",ise.TextPlainCharset="text/plain; charset=utf-8",ise.AudioAac="audio/aac",ise.AudioFlac="audio/flac",ise.AudioMidi="audio/midi",ise.AudioMp4="audio/mp4",ise.AudioMpeg="audio/mpeg",ise.AudioWav="audio/wav",ise.AudioXWav="audio/x-wav",ise.AudioWebm="audio/webm",ise.VideoMp4="video/mp4",ise.VideoMpeg="video/mpeg",ise.VideoOgg="video/ogg",ise.VideoQuicktime="video/quicktime",ise.VideoWebm="video/webm",ise.VideoM4v="video/x-m4v",ise.VideoMsWmv="video/x-ms-wmv",ise.VideoMsvideo="video/x-msvideo",ise.Message="message/rfc822",[{name:"Image",type:Cmn.Image,extensions:[Amn.ImageJpeg,Amn.ImagePng,Amn.ImageTiff,Amn.ImageGig]},{name:"Video",type:Cmn.Video,extensions:[Amn.VideoMp4,Amn.VideoMpeg,Amn.VideoOgg,Amn.VideoQuicktime,Amn.VideoWebm,Amn.VideoM4v,Amn.VideoMsWmv,Amn.VideoMsvideo]},{name:"Audio",type:Cmn.Audio,extensions:[Amn.AudioAac,Amn.AudioFlac,Amn.AudioMidi,Amn.AudioMp4,Amn.AudioMpeg,Amn.AudioWav,Amn.AudioXWav,Amn.AudioWebm]},{name:"Documents",type:Cmn.Text,extensions:[Amn.TextPlain,Amn.TextHtml,Amn.TextCsv,Amn.TextPlainCharset,Amn.ApplicationJson,Amn.ApplicationMsWord,Amn.ApplicationPdf,Amn.ApplicationRtf,Amn.ApplicationSmil,Amn.ApplicationTtml,Amn.ApplicationVeritoneAion,Amn.ApplicationMsOutlook,Amn.ApplicationMsPowerpoint,Amn.ApplicationDocument,Amn.ApplicationSpreadsheet,Amn.ApplicationPresentation,Amn.ApplicationOasisDoc,Amn.ApplicationOasisSpreadsheet,Amn.ApplicationXFlv,Amn.ApplicationXml,Amn.ApplicationFormUrlEncoded,Amn.Message]}]);Moe="uiState",XH={status:"idle",currentView:bmn.browseFiles},Bce=qM({name:kmn+"/"+Moe,initialState:XH,reducers:{setCurrentView(e,{payload:t}){e.currentView=t},fileUploadFailed(e){e.status="failure"},fileUploadSucceed(e){e.status="idle"},fileUploadStart(e){e.status="pending"},fileUploadAbortFailed(e){e.status="failure"},tdoCreateStart(e,{payload:t}){e.status="pending",console.log("Starting to create TDOs for: ",t.filesSelected.map(e=>e.id).join("\n"))},tdoCreateSucceed(e){e.status="idle"},tdoCreateFailed(e){e.status="failure"},retryTDOCreateForFiles(e,{payload:t}){e.status="pending",console.log("Retrying to create TDOs for: ",t.filesSelected.map(e=>e.id).join("\n"))},fileMetaSaveSucceeded(e){e.status="idle"},fileMetaSaveFailed(e){e.status="failure"},fileMetaSaveIsProcessing(e){e.status="pending"},tdoPermissionsSucceeded(e){e.status="idle"},tdoPermissionsFailed(e){e.status="failure"}}}),mce=Bce.actions,Pse=Bce.reducer,jce="filesSelectedState",Aoe=qM({name:kmn+"/"+jce,initialState:{files:[],tdoIds:[],permissions:{}},reducers:{setFilesSelected(e,{payload:t}){e.files=[...e.files,...t.filesSelected]},deleteFileSelected(e,{payload:t}){var n=e.files.filter(e=>e.id!==t.id);e.files=n},deleteFailedFiles(e){var t=e.files.filter(e=>"failure"!==e.status);e.files=t},clearFilesSelected(e){e.files=[]},updateFile(t,{payload:n}){const r=t.files.findIndex(e=>e.id===n.id);-1!==r&&Object.keys(n).forEach(e=>{t.files[r][e]=n[e]})},retryFileUpload(e,{payload:t}){console.log("Retrying the files:",t.filesSelected.map(e=>e.id).join("/n"))},abortFileUpload(e,t){},addMetadataAction(e,t){console.log("nothing")},addMetadataToSelectedFile(e,t){const{id:n,meta:r}=t.payload;e.files.forEach(e=>{e.id===n&&(e.meta=r)})},setUploadedFilesTdoIds(e,t){t=t.payload.tdoIds;e.tdoIds=t},setPermissionsPayload(e,t){t=t.payload;e.permissions=t}}}),sce=Aoe.actions,Tq=Aoe.reducer,Foe="rootFolderState",woe=qM({name:kmn+"/"+Foe,initialState:{rootFolder:null,status:"idle"},reducers:{startRootFolderFetch(e){e.status="pending"},rootFolderFetchSucceed(e,{payload:t}){e.rootFolder=t.rootFolder,e.status="idle"},rootFolderFetchFailed(e){e.status="failure"},updateRootFolder(e,{payload:t}){e.rootFolder=t.activeFolder}},extraReducers:e=>{e.addCase(UM("DATA_CENTER_FOLDERS_AND_FILES_RESPONSE"),(e,{payload:t})=>{e.rootFolder=t.folder})}}),goe=woe.actions,dce=woe.reducer;const Tmn=kmn,Nmn={uiState:mce,filesSelectedState:sce,rootFolderState:goe},Mmn=gg({uiState:Pse,filesSelectedState:Tq,rootFolderState:dce});function Pmn(e,a,s,l){return new(s=s||Promise)(function(n,t){function r(e){try{o(l.next(e))}catch(e){t(e)}}function i(e){try{o(l.throw(e))}catch(e){t(e)}}function o(e){var t;e.done?n(e.value):((t=e.value)instanceof s?t:new s(function(e){e(t)})).then(r,i)}o((l=l.apply(e,a||[])).next())})}function Dmn(t,n){return Pmn(this,void 0,void 0,function*(){var e="getSignedWritableUrls";return(yield A(Object.assign({query:"query getSignedWritableUrls($count: Int!) {\n getSignedWritableUrls(number: $count) {\n bucket,\n expiresInSeconds,\n getUrl,\n key,\n unsignedUrl,\n url,\n }\n }",variables:{count:n},operationName:e},t)))[e]})}function Rmn(n,r,{onProgress:i,onError:o,onAbort:a,onUpload:s}){return Pmn(this,void 0,void 0,function*(){const e=new XMLHttpRequest;e.upload.onload=()=>{s&&s(`The upload is completed: ${e.status} `+e.response)},e.upload.onerror=()=>{o&&o("Upload failed.")},e.upload.onabort=()=>{a&&a("Upload cancelled.")},e.upload.onprogress=e=>{i&&i(e.loaded/e.total*100)},e.open("PUT",n.url,!0),e.setRequestHeader("Content-Type",r.type);var t=yield(yield fetch(r.fileUrl)).blob();return e.send(t),e})}function Lmn(n){var r;return Pmn(this,void 0,void 0,function*(){var e="getOrgCmsRootFolder",t="createRootFolders",e=yield A(Object.assign({query:"mutation getOrgCmsRootFolder{\n createRootFolders(rootFolderType: cms) {\n id\n name\n modifiedDateTime\n treeObjectId\n ownerId\n }\n }\n ",operationName:e},n));return{orgRootFolder:null==(r=e[t])?void 0:r.find(e=>!e.ownerId),errors:e.errors||null}})}function Fmn(i,o){var a,s,l,c,u,d;return Pmn(this,void 0,void 0,function*(){try{var e="createTDOWithAsset",t=null!=(a=null==o?void 0:o.meta)&&a.startDateTime?null==(s=null==o?void 0:o.meta)?void 0:s.startDateTime:o.startDateTime,n={input:Object.assign(Object.assign({addToIndex:!0,contentType:o.contentType,name:o.name,uri:o.uri,parentFolderId:o.parentFolderId,startDateTime:t,stopDateTime:t,assetType:"media"},null!=(l=null==o?void 0:o.meta)&&l.thumbnailUrl?{thumbnailUrl:null==(c=null==o?void 0:o.meta)?void 0:c.thumbnailUrl}:{}),{details:{veritoneFile:{filename:null==(u=null==o?void 0:o.meta)?void 0:u.fileName,mimetype:o.contentType,size:o.size},tags:null==(d=null==o?void 0:o.meta)?void 0:d.tags}})},r=yield A(Object.assign({query:'mutation ($input: CreateTDOWithAsset!) {\n createTDOWithAsset(input: $input) {\n id\n name\n details\n modifiedDateTime\n primaryAsset(assetType: "media") {\n contentType\n signedUri\n }\n folders{\n folderPath{\n name\n id\n }\n }\n sourceData {\n source {\n id\n sourceTypeId\n }\n }\n thumbnailUrl\n }\n }\n ',variables:n},i));return{data:r[e],errors:r.errors||null}}catch(e){return{data:null,errors:e.message||"Unable to create TDO"}}})}const Vmn=e=>e[Tmn].uiState.status,Hmn=e=>e[Tmn].uiState.currentView,Umn=e=>e[Tmn].rootFolderState.rootFolder,Bmn=e=>e[Tmn].filesSelectedState.files,zmn=e=>{return null==(e=null==(e=e[Tmn])?void 0:e.filesSelectedState)?void 0:e.tdoIds},qmn=e=>{return null==(e=null==(e=e[Tmn])?void 0:e.filesSelectedState)?void 0:e.permissions},_mn=SM([k$,M$,c$],(e,t,n)=>({apiRoot:e,graphQLEndpoint:t,token:n}));function*Wmn(){var e=yield T(_mn),t=yield T(A$),t=rN(t);try{var n,{orgRootFolder:r,errors:i}=yield E(Lmn,e);r&&(r.isRoot=!0,yield k(Nmn.rootFolderState.rootFolderFetchSucceed({rootFolder:r}))),i&&(n=Array.isArray(i)?null==i?void 0:i.map(e=>e.message).join("\n"):t({id:"os-data-center-importer.snackbar.locationFolderFetchError",defaultMessage:[{type:0,value:"Error during the root folder fetch!"}]}),yield k(Bee({content:n,severity:N.Error})),yield k(Nmn.rootFolderState.rootFolderFetchFailed()))}catch(e){yield k(Nmn.rootFolderState.rootFolderFetchFailed())}}function*Zmn(o){var t;const n=yield T(_mn),r=yield T(ssn.viewMyFiles.selectRootFolderId),i=yield T(Umn);var e=o.payload.filesSelected;const a=(e,t,n)=>(k(Nmn.filesSelectedState.updateFile(Object.assign({id:e},t))),{values:t,data:n}),s=e=>{try{!function(t,n){var r;return Pmn(this,void 0,void 0,function*(){var e="createThumbailJob",e=yield A(Object.assign({query:"\n mutation createThumbailJob($input: CreateJob) {\n createJob(input: $input) {\n id\n }\n }\n ",variables:{input:{targetId:n,tasks:[{engineId:"fd891cb5-ff80-48ae-b5cd-ac3c7d190d55"}]}},operationName:e},t));return null==(r=e.createJob)?void 0:r.id})}(n,e).catch(e=>new Error((null==e?void 0:e.message)||"Error while executing createThumbnailJob function"))}catch(e){console.log("Error while launching thumbnail generation job",e)}};try{const d=yield $1(e.reduce((e,t)=>("idle"===t.status&&(e[t.id]=E(Fmn,n,{contentType:t.type,name:t.name,uri:t.unsignedUrl,parentFolderId:o.payload.useDefaultRootFolder?r:i.id,startDateTime:(new Date).toISOString(),size:t.size,meta:null==t?void 0:t.meta})),e),{}));var l,c=[],u=yield $1(Object.keys(d).map(e=>{var t,n=null==(n=null==(n=d[e])?void 0:n.data)?void 0:n.id,r=null==(r=d[e])?void 0:r.data,i=d[e].errors;return null!=r&&r.details&&(r.name=(null==(t=null==(t=r.details)?void 0:t.veritoneFile)?void 0:t.filename)||(null==(t=null==(t=r.details)?void 0:t.veritoneFile)?void 0:t.fileName)||r.name),!n||i?(vX.dispatch(kQ.tdoCreated,new mX(i||"TDO creation failed!"),{fileId:e,tdoId:n}),a(e,{tdoStatus:"failure"})):(null!=(t=o.payload)&&t.skipThumbnail||s(n),vX.dispatch(kQ.tdoCreated,null,{fileId:e,tdoId:n}),a(e,{tdoId:n,tdoStatus:"idle"},r))}));for(let e=0;e<u.length;e++)"idle"===u[e].values.tdoStatus&&(l=u[e].values.tdoId,c.push(l),yield k(Can.viewMyFiles.addTdoFolder({folderId:i.id,tdoId:l})),yield k(Can.entities.addTdoImported({file:null==(t=u[e])?void 0:t.data})));yield k(Nmn.filesSelectedState.setUploadedFilesTdoIds({tdoIds:c})),yield E(Kmn),yield k(Nmn.uiState.tdoCreateSucceed())}catch(e){console.log(e),yield k(Nmn.uiState.tdoCreateFailed())}}function*Gmn(){var e=(yield T(uQ)).find(e=>"DATA_CENTER_IMPORTER"===e.microFrontend.name);e&&e.panelId&&(e=e["panelId"],yield k(mQ(e)))}function*Jmn(e){return yield E(Dmn,yield T(_mn),e)}function*Kmn(){var e=yield T(_mn),t=yield T(zmn),n=yield T(qmn),n=Object.assign(Object.assign({},n),{ids:t,type:"TDO"});try{yield E(mrn,e,n),yield k(Nmn.uiState.tdoPermissionsSucceeded())}catch(e){yield k(Nmn.uiState.tdoPermissionsFailed())}}function*Ymn(){var e=(yield T(uQ)).find(e=>"EDIT_FILE_METADATA"===e.microFrontend.name);e&&e.panelId&&(e=e["panelId"],yield k(mQ(e)))}function*Qmn(e){var t=yield T(A$),e=e["payload"],{id:e,meta:n}=e,t=rN(t);try{var[r]=yield E(Jmn,1);yield k(Nmn.uiState.fileMetaSaveIsProcessing()),n.thumbnailImg&&(yield E(Xmn,n.thumbnailImg,r)),n.thumbnailUrl=r.unsignedUrl,n.runTime&&n.runDate&&(n.startDateTime=new Date(n.runDate+" "+n.runTime).toISOString()),yield k(Nmn.filesSelectedState.addMetadataToSelectedFile({id:e,meta:n})),yield k(Nmn.uiState.fileMetaSaveSucceeded())}catch(e){yield k(Bee({content:t({id:"os-data-center-importer.snackbar.fileMetaError",defaultMessage:[{type:0,value:"Something went wrong while saving your changes."}]}),severity:N.Error}))}}function*Xmn(e,t){yield Rmn(t,Object.assign(Object.assign({},e),{getUrl:t.getUrl,expiresInSeconds:t.expiresInSeconds,key:t.key,unsignedUrl:t.unsignedUrl,url:t.url}),{})}const $mn="undefined"!=typeof window?window:global,e2n=($mn.xhrInstances={},Of());function*t2n(t){var n=t.payload.filesSelected,r=t.payload.sdkFiles;try{yield k(Nmn.uiState.fileUploadStart());var i=yield E(Jmn,n.length);let e=0;for(const a of i){const s=n[e],l=(e++,yield k(Nmn.filesSelectedState.updateFile({id:s.id,status:"pending",percentComplete:0,expiresInSeconds:a.expiresInSeconds,getUrl:a.getUrl,key:a.key,unsignedUrl:a.unsignedUrl,url:a.url})),Object.assign(Object.assign({},r),{expiresInSeconds:a.expiresInSeconds,getUrl:a.getUrl,key:a.key,unsignedUrl:a.unsignedUrl,url:a.url})),c=e=>{e2n.put(Nmn.filesSelectedState.updateFile(Object.assign({id:s.id},e)))};var o=yield Rmn(a,s,{onProgress:e=>{c({percentComplete:e}),vX.dispatch(kQ.fileUploadProgress,null,e)},onAbort:e=>{c({status:"idle"}),vX.dispatch(kQ.fileUpload,new mX(e,"abort"),l)},onError:e=>{c({status:"failure"}),vX.dispatch(kQ.fileUpload,new mX(e),l)},onUpload:e=>{c({status:"idle"}),vX.dispatch(kQ.fileUpload,null,l)}});$mn.xhrInstances[s.id]=o,yield k(Nmn.uiState.fileUploadSucceed())}}catch(e){t=(null==e?void 0:e.message)||"";console.error(t),yield k(Nmn.uiState.fileUploadFailed())}}function*n2n({payload:e}){try{var t=null==e?void 0:e.id,n=$mn.xhrInstances[t];null!=n&&n.abort(),yield k(Nmn.filesSelectedState.deleteFileSelected({id:t}))}catch(e){yield k(Nmn.uiState.fileUploadAbortFailed())}}function*r2n(){yield $1([function*(){yield lP(Nmn.filesSelectedState.setFilesSelected.type,t2n)}(),function*(){for(;;)yield k(yield X1(e2n))}(),function*(){yield lP(Nmn.filesSelectedState.retryFileUpload.type,t2n)}(),function*(){yield lP(Nmn.filesSelectedState.abortFileUpload.type,n2n)}(),function*(){yield cP(Nmn.rootFolderState.startRootFolderFetch.type,Wmn)}(),function*(){yield cP(Nmn.uiState.tdoCreateStart.type,Zmn)}(),function*(){yield lP(Nmn.uiState.retryTDOCreateForFiles.type,Zmn)}(),function*(){yield lP(Nmn.uiState.tdoCreateSucceed.type,Gmn)}(),function*(){yield cP(Nmn.filesSelectedState.addMetadataAction.type,Qmn)}(),function*(){yield lP(Nmn.uiState.fileMetaSaveSucceeded.type,Ymn)}()])}function i2n(){return{id:kmn,reducerMap:{[kmn]:Mmn},sagas:[r2n],initialActions:[]}}const o2n=fe()(e=>({buttonContainer:{position:"relative",margin:"16px"},fileButton:{border:"1px solid #1871E8!important",borderRadius:e.shape.borderRadius,fontWeight:600,fontSize:"12px!important",background:e.palette.background.paper,color:"#1871E8!important",padding:"6px 15px!important"},hiddenFileButton:{visibility:"hidden",position:"absolute",left:0,width:"100%",height:"100%"}})),a2n=({id:e,labelCss:t,onUpload:n,render:r,imageOnly:i=!1,isUploadEnabled:o=!0})=>{const a=De.exports.useRef();var s=o2n()["classes"];return De.exports.useEffect(()=>{o||(a.current.value=null)},[a,o]),nt.exports.jsxs("label",Object.assign({htmlFor:"upload-file-input-"+e,className:t,onClick:e=>{o||e.preventDefault()}},{children:[r&&r({handleButtonClick:()=>{o&&a.current.click()}}),nt.exports.jsx("input",{id:"upload-file-input-"+e,"data-test":"data-center-importer-local-upload-file-input-"+e,type:"file",multiple:!0,accept:i?"image/*":"",className:s.hiddenFileButton,onChange:n,ref:e=>a.current=e})]}))},s2n=fe()(e=>({progress:{width:"117px",height:"10px",borderRadius:8,backgroundColor:"#F2F7FE",display:"inline-block"},listItem:{padding:e.spacing(3,1)},avatar:{backgroundColor:"#FAFAFA",color:e.palette.secondary.main},errorIcon:{backgroundColor:"#FEF2F2","& svg:hover":{color:e.palette.error.main}},secondaryAction:{right:"0"},filename:{width:"330px",overflow:"hidden",whiteSpace:"nowrap",userSelect:"none"},caption:{userSelect:"none"}})),l2n={video:nt.exports.jsx(Gle,{}),image:nt.exports.jsx(Sae,{}),audio:nt.exports.jsx(ale,{}),text:nt.exports.jsx(koe,{}),application:nt.exports.jsx(koe,{})},c2n=({filetype:e})=>{var[e]=e.split("/");return e&&l2n[e]?l2n[e]:nt.exports.jsx(Rle,{})};function u2n({item:e,onDelete:t,onRetry:n,onAbort:r,onEdit:i,showDivider:o=!0,uiStateStatus:a}){const{id:s,percentComplete:l,status:c,tdoStatus:u,size:d,type:p,meta:g}=e;let f=e["name"];g&&g.fileName&&(f=g.fileName);var h=s2n()["classes"],m=[c,u].includes("failure");return nt.exports.jsxs(De.exports.Fragment,{children:[nt.exports.jsxs(fw,Object.assign({"data-test":"dc-file-importer-file-upload-row",className:h.listItem},{children:[nt.exports.jsx(yw,{children:m?nt.exports.jsx(m5,Object.assign({"data-test":"file-item-failed-icon",className:h.errorIcon},{children:nt.exports.jsx(jmn,{color:"error"})})):nt.exports.jsx(m5,Object.assign({"data-test":"file-item-avatar",className:h.avatar},{children:nt.exports.jsx(c2n,{filetype:p})}))}),nt.exports.jsx(kw,{primary:nt.exports.jsx(re,Object.assign({title:30<f.length?f:"",placement:"bottom-end"},{children:nt.exports.jsx(ae,Object.assign({"data-test":"file-item-title",className:h.filename,variant:"body1"},{children:30<f.length?f.substring(0,30)+"...":f}))})),secondary:nt.exports.jsx(ae,Object.assign({"data-test":"file-item-size",variant:"caption",className:h.caption},{children:QU(d)}))}),nt.exports.jsxs(cw,Object.assign({"data-test":"file-button-actions",className:h.secondaryAction},{children:[m&&nt.exports.jsx(re,Object.assign({title:"Retry uploading"},{children:nt.exports.jsx(le,Object.assign({"data-test":"file-item-retry",onClick:()=>n(e),size:"large"},{children:nt.exports.jsx(Smn,{})}))})),"idle"===c&&nt.exports.jsx(le,Object.assign({"data-test":"file-item-edit",onClick:()=>i(e),size:"large"},{children:nt.exports.jsx(Poe,{})})),(["failure","idle"].includes(c)||"failure"===a)&&nt.exports.jsx(le,Object.assign({"data-test":"file-item-delete",onClick:()=>t(s),size:"large"},{children:nt.exports.jsx(Soe,{})})),"pending"===c&&nt.exports.jsxs(nt.exports.Fragment,{children:[nt.exports.jsx(G9,{"data-test":"file-item-progress",className:h.progress,variant:"determinate",value:l}),nt.exports.jsx(le,Object.assign({"data-test":"file-item-abort",title:"Cancel Import",onClick:()=>r(e),size:"large"},{children:nt.exports.jsx(ese,{})}))]})]}))]})),o&&nt.exports.jsx(ce,{})]})}const d2n=fe()(e=>({fileItemListContainer:{paddingLeft:e.spacing(4),paddingRight:e.spacing(4),height:300,overflowY:"scroll",marginRight:5,marginTop:5,"&::-webkit-scrollbar":{width:3},"&::-webkit-scrollbar-track":{background:"transparent"},"&::-webkit-scrollbar-thumb":{background:"#D5DFE9",padding:5,borderRadius:50},"&::-webkit-scrollbar-thumb:hover":{background:"#919ca8"}},shadowGradient:{display:"block",position:"absolute",top:-1,left:0,width:"100%",height:28,background:"linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, #FFFFFF 100%)",transform:"translateY(-100%)"},footerWrapper:{borderTop:"0.5px solid #D5DFE9",position:"relative",padding:"13px 30px"},viewFormatsBtn:{cursor:"pointer",color:"#6098D1",fontSize:14,"&:hover":{color:e.palette.primary.main}},retryButton:{border:"1px solid",borderColor:e.palette.secondary.main,borderRadius:e.shape.borderRadius,fontWeight:600,fontSize:"12px!important",background:e.palette.background.paper,color:e.palette.secondary.main,padding:"6px 15px!important"},refreshIcon:{marginRight:e.spacing(2),color:e.palette.secondary.main,"&:hover":{color:e.palette.secondary.main}},addFilesIcon:{marginRight:e.spacing(2),color:e.palette.primary.main,"&:hover":{color:e.palette.primary.main}},addFilesBtn:{paddingLeft:0,paddingRight:0},addFilesLabel:{alignItems:"center",display:"flex",cursor:"pointer",paddingLeft:e.spacing(2),paddingRight:e.spacing(2)},addIcon:{display:"block",marginRight:e.spacing(1)},filePickerInput:{display:"none"}})),p2n=({onUpload:t,fileItems:n,onDelete:r,onRetryFailedsClick:e,onRetry:i,onAbort:o,onEdit:a,uiStateStatus:s})=>{const l=d2n()["classes"],c=o2n()["classes"];var u=n.some(e=>"failure"===e.status);return nt.exports.jsxs(nt.exports.Fragment,{children:[nt.exports.jsx(ae,Object.assign({variant:"h2",color:"textPrimary","data-test":"data-center-file-item-list-title"},{children:nt.exports.jsx(oe,{id:"os-data-center-importer.eAju+6",defaultMessage:"Local Machine",description:"Title of a list of files that user is uploading from their local machine"})})),nt.exports.jsx(ae,Object.assign({variant:"body2",color:"textSecondary","data-test":"data-center-file-item-list-subheader"},{children:nt.exports.jsx(oe,{id:"os-data-center-importer.Khv+RJ",defaultMessage:"Choose files from your computer to import into your account",description:"A short description of local machine upload"})})),nt.exports.jsxs(pe,Object.assign({mt:6,borderRadius:"4px",border:"0.5px solid #D5DFE9"},{children:[nt.exports.jsx(X9,Object.assign({disablePadding:!0,className:l.fileItemListContainer,"data-test":"data-center-file-item-list-wrapper"},{children:null==n?void 0:n.map((e,t)=>nt.exports.jsx(u2n,{item:e,showDivider:t!==n.length-1,onDelete:r,onRetry:i,onAbort:o,onEdit:a,uiStateStatus:s},t))})),nt.exports.jsxs(V,Object.assign({direction:"row",justifyContent:"flex-end",alignItems:"center",item:!0,container:!0,className:l.footerWrapper},{children:[nt.exports.jsx("span",{className:l.shadowGradient}),u&&nt.exports.jsxs(se,Object.assign({"data-test":"data-center-importer-local-retry-button",variant:"outlined",className:l.retryButton,onClick:e},{children:[nt.exports.jsx(Smn,{fontSize:"small",className:l.refreshIcon}),nt.exports.jsx(oe,{id:"os-data-center-importer.nJrtcz",defaultMessage:"Retry Failed Items",description:"Text of the label `Retry Failed Items`"})]})),nt.exports.jsx(a2n,{onUpload:e=>{e=Array.from(e.target.files);t(e)},id:"file-item-list-upload-button",render:({handleButtonClick:e})=>nt.exports.jsxs(se,Object.assign({id:"file-item-list-upload-button",variant:"outlined",className:c.fileButton,onClick:e},{children:[nt.exports.jsx(wmn,{fontSize:"small",className:l.addFilesIcon}),nt.exports.jsx(oe,{id:"os-data-center-importer.ydDseD",defaultMessage:"Add Files",description:"Text of the label `Add Files`"})]}))})]}))]}))]})},g2n=fe()(e=>({footer:{position:"absolute",right:e.spacing(6),bottom:e.spacing(6)},closeButton:{marginRight:e.spacing(2),color:e.palette.text.primary},dialogTitle:{padding:`${e.spacing(6)} ${e.spacing(6)} ${e.spacing(1)}px !important `},dialogContent:{padding:`${e.spacing(1)} ${e.spacing(6)} !important `},dialogTitleText:{fontWeight:600},dialogAction:{padding:e.spacing(4)+" !important"}})),f2n=({fileItems:e,onClosePanel:t,onImportFiles:n,onIgnoreAndContinue:r,onRetry:i,uiStateStatus:o})=>{const[a,s]=De.exports.useState(!1),[l,c]=De.exports.useState(!1);var u=g2n()["classes"],d=e.some(e=>"pending"===e.status);const p=()=>{s(!1)};De.exports.useEffect(()=>{p()},[i,r]);d=0===e.length||d||["pending","failure"].includes(o);return nt.exports.jsxs("div",Object.assign({className:u.footer},{children:[nt.exports.jsx(se,Object.assign({onClick:()=>{e.length?c(!0):t()},variant:"text",size:"large",className:u.closeButton,"data-test":"data-center-importer-cancel-btn"},{children:nt.exports.jsx(oe,{id:"os-data-center-importer.0EGcHs",defaultMessage:"Close",description:"Close Panel"})})),nt.exports.jsx(se,Object.assign({onClick:()=>{e.some(e=>"failure"===e.status)?s(!0):n()},disabled:d,size:"large",variant:"contained",color:"primary","data-test":"data-center-importer-import-btn"},{children:nt.exports.jsx(oe,{id:"os-data-center-importer.pcbRZH",defaultMessage:"Import",description:"Import uploaded files"})})),nt.exports.jsxs(e6,Object.assign({open:a,maxWidth:"xs",onClose:p,"aria-labelledby":"dialog-title","aria-describedby":"dialog-description"},{children:[nt.exports.jsx(v6,Object.assign({id:"dialog-title","data-test":"data-center-importer-dialog-title",className:u.dialogTitle},{children:nt.exports.jsx(ae,Object.assign({variant:"h2",className:u.dialogTitleText},{children:nt.exports.jsx(oe,{id:"os-data-center-importer.cl4DGP",defaultMessage:"Errors Detected",description:"title for Error Detected Dialog"})}))})),nt.exports.jsx(u6,Object.assign({className:u.dialogContent},{children:nt.exports.jsx(f6,Object.assign({id:"dialog-description"},{children:nt.exports.jsx(oe,{id:"os-data-center-importer.N9Drr+",defaultMessage:"Some of your files have errors, would you like to fix these errors or continue?",description:"description for Error Detected Dialog"})}))})),nt.exports.jsxs(i6,Object.assign({className:u.dialogAction},{children:[nt.exports.jsx(se,Object.assign({onClick:i,variant:"text",size:"large","data-test":"data-center-importer-dialog-cancel-btn"},{children:nt.exports.jsx(oe,{id:"os-data-center-importer.7+A+C3",defaultMessage:"Retry Errors",description:"button text for retry failed files"})})),nt.exports.jsx(se,Object.assign({onClick:r,size:"large",variant:"contained",color:"primary","data-test":"data-center-importer-dialog-confirm-btn"},{children:nt.exports.jsx(oe,{id:"os-data-center-importer.E9hwYl",defaultMessage:"Ignore Errors and Continue",description:"button text for ignore failed files and kick of the importing progress"})}))]}))]})),nt.exports.jsx(Khe,{showConfirmationModal:l,closeConfirmationModal:()=>{c(!1)},onClosePanel:t,classes:u})]}))},h2n=fe()(e=>({root:{width:"720px",height:"auto"},configurationContainer:{minHeight:"650px"},mainContainer:{margin:e.spacing(6),height:"65vh",overflowY:"auto"},spacer:{marginTop:e.spacing(6)},header:{alignItems:"center",borderBottom:"0.5px solid "+e.palette.divider,backgroundColor:"#FAFAFA !important",display:"flex",height:64,padding:e.spacing(2)},headerTitle:{paddingLeft:e.spacing(4)},headerActionContainer:{alignItems:"center",display:"flex",flexGrow:1,height:"100%",justifyContent:"flex-end"},alert:{color:e.palette.error.main,userSelect:"none","& svg, & svg:hover":{color:e.palette.error.main}},permissionsContainer:{marginTop:"30px"},description:{fontWeight:400,marginBlockStart:"16px",userSelect:"none"}}));var m2n={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:-1,overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"};const v2n={panelHeaderTitle:()=>nt.exports.jsx(oe,{id:"os-data-center-importer.UQliO+",defaultMessage:"Local Machine Importer",description:"Local Machine Importer"}),closePanel:()=>nt.exports.jsx(oe,{id:"os-data-center-importer.kOsSpC",defaultMessage:"Close Panel",description:"Close Panel"}),locationFolderTitle:()=>nt.exports.jsx(oe,{id:"os-data-center-importer.UR2j6X",defaultMessage:"Location Folder",description:"Location Folder"}),locationFolderSubheader:()=>nt.exports.jsx(oe,{id:"os-data-center-importer.zEHvrp",defaultMessage:"Choose the Data Center folder location where this content will be stored.",description:"Choose the Data Center folder location where this content will be stored."}),locationFolderLabel:()=>nt.exports.jsx(oe,{id:"os-data-center-importer.UR2j6Z",defaultMessage:"Folder",description:"Folder"}),locationFolderReselect:()=>nt.exports.jsx(oe,{id:"os-data-center-importer.gtjP09",defaultMessage:"Change",description:"Change"}),editFileMetadataHeader:()=>nt.exports.jsx(oe,{id:"os-data-center-importer.WUHjl4",defaultMessage:"Edit Metadata",description:"Edit Metadata"}),editFileMetadataCancelBtn:()=>nt.exports.jsx(oe,{id:"os-data-center-importer.6PdOcy",defaultMessage:"Cancel",description:"Cancel"}),editFileMetadataSaveBtn:()=>nt.exports.jsx(oe,{id:"os-data-center-importer.kxBKrN",defaultMessage:"Save Changes",description:"Save file metadata changes"}),editFileMetadataAddBtn:()=>nt.exports.jsx(oe,{id:"os-data-center-importer.rntBSe",defaultMessage:"Add",description:"Add tags to metadata"}),editFileMetadataTagsHeading:()=>nt.exports.jsx(oe,{id:"os-data-center-importer.fXL811",defaultMessage:"Tags",description:"Tags heading"}),editFileMetadataTagsSubHeading:()=>nt.exports.jsx(oe,{id:"os-data-center-importer.WFj+x5",defaultMessage:"Add searchable tags to better organize this data. Separate each tag with a comma.",description:"Tags sub heading"}),editFileMetadataDisplayTimeHeading:()=>nt.exports.jsx(oe,{id:"os-data-center-importer.8aqtJF",defaultMessage:"Media Display Time",description:"Media Display Time heading"}),editFileMetadataDisplayTimeSubHeading:()=>nt.exports.jsx(oe,{id:"os-data-center-importer.mhUvxM",defaultMessage:"The actual time the content occurred.",description:"Media Display Time sub heading"}),supportedFilesTitle:()=>nt.exports.jsx(oe,{id:"os-data-center-importer.1riZqU",defaultMessage:"Supported File Types",description:"The title for the container of supported files"})},y2n=({onPanelClose:e})=>{var t=h2n()["classes"];return nt.exports.jsxs("div",Object.assign({className:t.header,"data-test":"data-center-importer-header"},{children:[nt.exports.jsx(ae,Object.assign({className:t.headerTitle,variant:"h1",color:"secondary","data-test":"data-center-importer-title"},{children:v2n.panelHeaderTitle()})),nt.exports.jsxs("div",Object.assign({className:t.headerActionContainer},{children:[nt.exports.jsx(ae,Object.assign({style:m2n,id:"data-center-importer-close-panel"},{children:v2n.closePanel()})),nt.exports.jsx(re,Object.assign({title:v2n.closePanel()},{children:nt.exports.jsx(le,Object.assign({onClick:e,"aria-labelledby":"data-center-importer-close-panel","data-test":"data-center-importer-close-panel",size:"large"},{children:nt.exports.jsx(vae,{})}))}))]}))]}))},x2n=fe()(e=>({title:{userSelect:"none"},description:{fontWeight:400,marginBlockStart:"16px",userSelect:"none"},card:{border:"0.5px solid #D5DFE9!important",boxShadow:"none!important",borderRadius:"4px!important",display:"flex",flexDirection:"column",alignItems:"center",padding:32},focusedCard:{backgroundColor:"#D5DFE9",border:"0.5px solid #D5DFE9!important",boxShadow:"none!important",borderRadius:"4px!important",display:"flex",flexDirection:"column",alignItems:"center",padding:32},uploadIcon:{fontSize:"30px","&:hover":{color:"inherit"}},iconCircle:{color:e.palette.secondary.main,backgroundColor:"#ffffff !important",fontSize:"30px !important",width:"70px !important",height:"70px !important",border:"6px solid #E8E8E8"},selectMessage:{fontWeight:600,marginBlockStart:"12px"},subtitle:{fontSize:"12px",fontWeight:400},fileFormatsButton:{color:"#6098D1",fontSize:"10px",marginTop:10}})),b2n=({onUpload:t,onViewSupportedFiles:e})=>{const[n,r]=De.exports.useState(!1),i=De.exports.useRef();var o=x2n()["classes"];const a=o2n()["classes"];De.exports.useEffect(()=>{const e=e=>{e.preventDefault(),t(Array.from(e.dataTransfer.files)),r(!1)};return window.addEventListener("drop",e),()=>{window.removeEventListener("drop",e)}},[r,t]),De.exports.useEffect(()=>{const e=e=>{e.preventDefault(),r(!0)},t=e=>{e.preventDefault(),r(!1)};return i.current&&(i.current.addEventListener("dragover",e),i.current.addEventListener("dragleave",t)),()=>{try{i.current.removeEventListener("dragover",e),i.current.removeEventListener("dragleave",t)}catch(e){}}},[r]);return nt.exports.jsxs(nt.exports.Fragment,{children:[nt.exports.jsx(ae,Object.assign({"data-test":"data-center-importer-local-upload-title",variant:"h2",className:o.title},{children:nt.exports.jsx(oe,{id:"os-data-center-importer.ylbMu5",defaultMessage:"Local Machine",description:"Import files into the Data Center from your computer"})})),nt.exports.jsx(ae,Object.assign({"data-test":"data-center-importer-local-upload-description",variant:"body2",paragraph:!0,className:o.description},{children:nt.exports.jsx(oe,{id:"os-data-center-importer.OcKW8X",defaultMessage:"Choose files from your computer to import and process within your aiWARE account.",description:"Choose files from your computer to import and process within your aiWARE account."})})),nt.exports.jsxs(o4,Object.assign({"data-test":"data-center-importer-local-upload-card",className:n?o.focusedCard:o.card,ref:e=>i.current=e},{children:[nt.exports.jsx(m5,Object.assign({className:o.iconCircle},{children:nt.exports.jsx(Omn,{fontSize:"inherit",className:o.uploadIcon})})),nt.exports.jsx(ae,Object.assign({variant:"body1",className:o.selectMessage},{children:nt.exports.jsx(oe,{id:"os-data-center-importer.vKgOOW",defaultMessage:"Select a file from your computer",description:"Local Machine File Importer: Select a file from your computer to be uploaded into the Data Center"})})),nt.exports.jsx(ae,Object.assign({variant:"body2",className:o.subtitle},{children:nt.exports.jsx(oe,{id:"os-data-center-importer.9cCClM",defaultMessage:"or drag and drop an image here",description:"Local Machine File Importer: files can be dragged and dropped here to upload them"})})),nt.exports.jsx(a2n,{id:"local-file-upload-upload-btn",onUpload:e=>{t(Array.from(e.target.files))},render:({handleButtonClick:e})=>nt.exports.jsx(se,Object.assign({"data-test":"data-center-importer-local-upload-button",variant:"outlined",className:a.fileButton,style:{marginTop:"15px"},onClick:e},{children:nt.exports.jsx(oe,{id:"os-data-center-importer.261ANF",defaultMessage:"Browse Files",description:"Local Machine File Importer: Click here to select the files to upload"})}))}),nt.exports.jsx(se,Object.assign({"data-test":"data-center-importer-local-supported-file-formats-button",variant:"text",className:o.fileFormatsButton,onClick:e},{children:nt.exports.jsx(oe,{id:"os-data-center-importer.OVCv+Y",defaultMessage:"View Supported File Formats",description:"Local Machine File Importer: View a list of all the File Formats that can be uploaded"})}))]}))]})},C2n=fe()(e=>({title:{userSelect:"none"},subheader:{userSelect:"none"},locationFolderWrapper:{width:"100%",marginTop:e.spacing(4),padding:e.spacing(2),border:"1px solid #D5DFE9",borderRadius:4,display:"flex",alignItems:"center",position:"relative"},locationFolderWrapperDisabled:{opacity:.7,pointerEvents:"none",userSelect:"none"},spacer:{display:"block",flex:1},folderIcon:{marginRight:e.spacing(2)},folderLabel:{fontFamily:"Nunito",display:"block",color:"#5C6269",fontSize:12,position:"absolute",top:-10,left:e.spacing(1),paddingLeft:e.spacing(1),paddingRight:e.spacing(1),background:"#fff"},folderInputLabel:{fontFamily:"Nunito",cursor:"pointer",color:"#6098D1",fontSize:14,"&:hover":{color:"#1871E8"}}})),A2n=({folder:e,onChangeBtnClick:t,disabled:n=!1})=>{var r=C2n()["classes"];return e?nt.exports.jsxs(nt.exports.Fragment,{children:[nt.exports.jsx(ae,Object.assign({variant:"h2",color:"textPrimary","data-test":"data-center-location-folder-title",className:r.title},{children:v2n.locationFolderTitle()})),nt.exports.jsx(ae,Object.assign({variant:"body2",color:"textSecondary","data-test":"data-center-location-folder-subheader",className:r.subheader},{children:v2n.locationFolderSubheader()})),nt.exports.jsxs("div",Object.assign({"data-test":"data-center-location-folder",className:Jhe(r.locationFolderWrapper,n?r.locationFolderWrapperDisabled:null)},{children:[nt.exports.jsx("span",Object.assign({className:r.folderLabel,"data-test":"data-center-location-folder-label"},{children:v2n.locationFolderLabel()})),nt.exports.jsx(nae,{className:r.folderIcon}),nt.exports.jsx(ae,Object.assign({variant:"body1",color:"textPrimary","data-test":"data-center-location-folder-path"},{children:null!=e&&e.isRoot?"Home":null==e?void 0:e.name})),nt.exports.jsx("span",{className:r.spacer}),nt.exports.jsx("span",Object.assign({className:r.folderInputLabel,onClick:t,role:"button","data-test":"data-center-location-select-btn"},{children:v2n.locationFolderReselect()}))]}))]}):null},I2n=(e,t)=>{const n=new Set;return null!=e&&e.forEach(e=>{e.type?t.includes(e.type)||n.add(e.type):n.add(e.name.split(".").pop())}),Array.from(n.values())},w2n=100,j2n=1e3,S2n=({hidePanel:e,activeFolder:t,fileLimit:i=w2n})=>{var n=h2n()["classes"];const[r,o]=De.exports.useState(null);var a=ue(A$);const s=ue(z$),l=ue(ssn.uiState.selectIsFullScreen),c=ue(Bmn);var u=ue(Vmn),d=ue(Hmn),p=ue(Umn);const g=ue(u$),f=de(),h=De.exports.useCallback(()=>{e&&e()},[e]),m=rN(a),[v,y]=De.exports.useState(!1);De.exports.useEffect(()=>{var e;g&&null!=(e=null==(e=null==(e=null===g||void 0===g?void 0:g.user)?void 0:e.organization)?void 0:e.kvp)&&e.features&&(e=g.user.organization.kvp["features"],"enabled"===e.enableRBACFeature)&&y(!0)},[g]),De.exports.useEffect(()=>{c&&c.length?f(Nmn.uiState.setCurrentView(bmn.filesSelected)):f(Nmn.uiState.setCurrentView(bmn.browseFiles))},[f,c]),De.exports.useEffect(()=>{s.baseUrl&&(t&&t.id?f(Nmn.rootFolderState.updateRootFolder({activeFolder:t})):f(Nmn.rootFolderState.startRootFolderFetch()))},[s,t,f]);var a=e=>{let t=e;var n=iN.getNames(Amn);const r=I2n(e,n);0<(null===r||void 0===r?void 0:r.length)&&(f(Bee({content:m({id:"os-data-center-importer.snackbar.disallowedFilesMessage",defaultMessage:[{type:0,value:"The following file types are not allowed: "},{type:1,value:"disallowedFiles"}]},{disallowedFiles:Array.from(r.values()).join(",")}),severity:N.Warning})),t=e.filter(e=>e.type&&!r.includes(e.type))),e.length>i?(f(Bee({content:m({id:"os-data-center-importer.snackbar.fileLimitError",defaultMessage:[{type:0,value:"You can only upload files up to "},{type:1,value:"fileLimit"},{type:0,value:" files at once! Only the first "},{type:1,value:"fileLimit"},{type:0,value:" files will be uploaded."}]},{fileLimit:""+i}),severity:N.Warning})),t=e.slice(0,i)):e.length>j2n&&(f(Bee({content:m({id:"os-data-center-importer.snackbar.fileCountError",defaultMessage:[{type:0,value:"You have exceeded the maximum allowable files per upload. Only the first "},{type:1,value:"maxFileCount"},{type:0,value:" files will be uploaded."}]},{maxFileCount:""+j2n}),severity:N.Warning})),t=e.slice(0,j2n));n=t.map(e=>{var t=URL.createObjectURL(e);return{id:ZU(),fileUrl:t,name:e.name,size:e.size,type:e.type,percentComplete:0}});f(Nmn.filesSelectedState.setFilesSelected({filesSelected:n,sdkFiles:t}))},x=()=>{var e=c.filter(e=>"failure"===e.status);f(Nmn.filesSelectedState.retryFileUpload({filesSelected:e}))};const b=()=>{f(Nmn.uiState.tdoCreateStart({filesSelected:c}))};return De.exports.useEffect(()=>{var e;r&&(null!=(e=null===r||void 0===r?void 0:r.entries)&&e.length?f(Nmn.filesSelectedState.setPermissionsPayload(r)):o(null))},[r,f]),nt.exports.jsxs("div",Object.assign({role:"presentation","data-test":"data-center-importer-widget",className:Jhe(n.root)},{children:[nt.exports.jsx(y2n,{onPanelClose:h}),nt.exports.jsxs("div",Object.assign({className:n.mainContainer},{children:["failure"===u&&nt.exports.jsx(pe,Object.assign({mb:4},{children:nt.exports.jsx(eI,Object.assign({variant:"outlined",severity:"error",className:n.alert},{children:"Error while uploading your file(s)."}))})),d===bmn.browseFiles&&nt.exports.jsx(b2n,{onViewSupportedFiles:()=>{var e={name:"SUPPORTED_FILE_TYPES",config:{name:"Local Importer",fileTypes:Emn}},t={type:"APP_BAR_PANEL_TEMPLATE",marginTop:l?0:55,marginStart:l?0:80,size:"medium",zIndex:l?1011:1002,parentPanelId:"DATA_CENTER_IMPORTER",dimmed:0,dimmedStatus:"dimParent"};f(gQ({panelId:"SUPPORTED_FILE_TYPES_PANEL",microFrontend:e,panelConfig:t}))},onUpload:a}),d===bmn.filesSelected&&nt.exports.jsxs(nt.exports.Fragment,{children:[nt.exports.jsx(p2n,{onUpload:a,fileItems:c,onDelete:e=>{f(Nmn.filesSelectedState.deleteFileSelected({id:e}))},onRetryFailedsClick:x,onRetry:e=>{"failure"===(e=e).status?f(Nmn.filesSelectedState.retryFileUpload({filesSelected:[e]})):"failure"===e.tdoStatus&&f(Nmn.uiState.retryTDOCreateForFiles({filesSelected:[e]}))},onAbort:e=>{e=e,f(Nmn.filesSelectedState.abortFileUpload(e))},onEdit:e=>{var t;e={name:"EDIT_FILE_METADATA",config:{name:"Local Importer",file:e=e}},t={type:"APP_BAR_PANEL_TEMPLATE",marginTop:l?0:55,marginStart:l?0:80,size:"small",zIndex:l?1011:1002,parentPanelId:"DATA_CENTER_IMPORTER",dimmed:0,dimmedStatus:"dimParent"},f(gQ({panelId:"EDIT_FILE_METADATA",microFrontend:e,panelConfig:t}))},uiStateStatus:u}),nt.exports.jsx("div",{className:n.spacer}),nt.exports.jsx(A2n,{folder:p,onChangeBtnClick:()=>Pmn(void 0,void 0,void 0,function*(){try{yield CQ({panelId:"DATA_CENTER_FOLDERS_AND_FILES",microFrontend:{name:"DATA_CENTER_FOLDERS_AND_FILES",config:{viewType:Xin.DataCenterView.folders}},panelConfig:{panelId:"DATA_CENTER_FOLDERS_AND_FILES",disableHide:!1,parentPanelId:"DATA_CENTER_IMPORTER",type:"APP_BAR_PANEL_TEMPLATE",size:"small",marginTop:l?0:55,marginStart:l?0:80,height:600,header:{title:nt.exports.jsx(oe,{id:"os-data-center-importer.headerTitle.chooseLocation",defaultMessage:"Choose a Location",description:"The title for the choose location panel"})},dimmed:0,zIndex:l?1011:1002,dimmedStatus:"dimParent"}},Hh)}catch(e){console.log(e)}})})]}),d===bmn.filesSelected&&v&&nt.exports.jsxs("div",Object.assign({className:n.permissionsContainer},{children:[nt.exports.jsx(ae,Object.assign({"data-testid":"ui-permissions-widget-title",variant:"h2"},{children:nt.exports.jsx(oe,{id:"ui-permissions-widget-title",defaultMessage:"Permissions",description:"Permissions widget title"})})),nt.exports.jsx(ae,Object.assign({"data-test":"data-center-importer-local-upload-description",variant:"body2",paragraph:!0,className:n.description},{children:nt.exports.jsx(oe,{id:"os-data-center-importer-ui-permissions-widget-description",defaultMessage:"Manage who can access and permissions to these objects ",description:"Permissions widget description"})})),nt.exports.jsx(Sin,{onGetPermissionPayload:e=>{o(e)},permissionType:"TDO",parentPanelId:"DATA_CENTER_IMPORTER",isFullScreen:l,zIndex:1002,zIndexFullScreen:1012})]})),nt.exports.jsx(f2n,{uiStateStatus:u,fileItems:c,onClosePanel:()=>{if(c.length)for(const e of c)"pending"===e.status&&f(Nmn.filesSelectedState.abortFileUpload(e));h()},onImportFiles:b,onIgnoreAndContinue:()=>{f(Nmn.filesSelectedState.deleteFailedFiles()),b()},onRetry:x})]}))]}))};const O2n=fe()(e=>({supportedFilesTypeHeader:{display:"flex",alignItems:"center",flexDirection:"row",justifyContent:"space-between",padding:"0px 10px",marginBottom:20},supportedFilesTypeWrapper:{padding:"8px 20px 20px 20px"},fileTypeItem:{border:"1px solid #D5DFE9",borderRadius:5,marginBottom:20,overflow:"hidden"},fileTypeItemHeader:{padding:18,borderBottom:"1px solid #D5DFE9",background:"#FAFAFA",display:"flex",alignItems:"center"},fileTypeItemBody:{display:"flex",alignItems:"center",padding:"26px 0",flexWrap:"wrap"},fileTypeItemExtension:{width:"50%",padding:"4px 0 4px 54px"},fileTypeItemExtensionFullWidth:{width:"100%"},fileItemTypeName:{marginLeft:12}})),k2n=({fileItemType:n})=>{var e;const r=O2n()["classes"];return nt.exports.jsxs("div",Object.assign({className:r.fileTypeItem,"data-test":"data-center-importer-supported-file-item"},{children:[nt.exports.jsxs("header",Object.assign({className:r.fileTypeItemHeader},{children:[nt.exports.jsx("span",Object.assign({"data-test":"data-center-importer-file-item-icon"},{children:nt.exports.jsx(c2n,{filetype:n.type})})),nt.exports.jsx(ae,Object.assign({variant:"h2",color:"textPrimary",className:r.fileItemTypeName,"data-test":"data-center-importer-file-type-name"},{children:n.name}))]})),nt.exports.jsx("div",Object.assign({className:r.fileTypeItemBody,"data-test":"data-center-importer-extension-list"},{children:null==(e=null==n?void 0:n.extensions)?void 0:e.map((e,t)=>nt.exports.jsxs(ae,Object.assign({variant:"body2",color:"textPrimary",className:Jhe(r.fileTypeItemExtension,{[r.fileTypeItemExtensionFullWidth]:n.type===Cmn.Text})},{children:[".",e]}),t))}))]}))},E2n=({fileTypes:e,hidePanel:t})=>{var n=O2n()["classes"];return nt.exports.jsxs("div",Object.assign({className:n.supportedFilesTypeWrapper},{children:[nt.exports.jsxs("div",Object.assign({className:n.supportedFilesTypeHeader},{children:[nt.exports.jsx(ae,Object.assign({variant:"h1",color:"secondary","data-test":"data-center-importer-supported-files-title"},{children:v2n.supportedFilesTitle()})),nt.exports.jsx(re,Object.assign({title:v2n.closePanel()},{children:nt.exports.jsx(le,Object.assign({onClick:t,"aria-labelledby":"data-center-importer-close-panel","data-test":"data-center-importer-types-close-panel",size:"large"},{children:nt.exports.jsx(moe,{})}))}))]})),e&&e.map((e,t)=>nt.exports.jsx(k2n,{fileItemType:e},t))]}))};const T2n=fe()(e=>({editMetadataContainer:{padding:"5px 30px"},avatarImage:{display:"flex",justifyContent:"center",alignItems:"center",width:"135px",height:"119px",marginRight:"10px"},coverImage:{flexGrow:1,display:"flex",justifyContent:"center",alignItems:"center",height:"119px"},inputFieldBorder:{border:"1px solid #D5DFE9"},fileName:{width:"100%",border:"1px solid #D5DFE9",height:"52px",borderRadius:"4px",boxSizing:"border-box",padding:"15px"},tagInput:{marginRight:"10px",flexGrow:1},tags:{paddingLeft:"0px","& > li":{listStyleType:"none",display:"inline",marginRight:"5px"}},tag:{backgroundColor:"#D5DFE9",fontSize:"12px",marginBottom:"5px"},runDate:{marginRight:"5px"},runTime:{"& input":{padding:"18.5px 10px !important"}},cancelBtn:{marginRight:e.spacing(2)},header:{display:"flex",alignItems:"center",flexDirection:"row",justifyContent:"space-between",padding:"0px"},footer:{position:"absolute",right:"30px",bottom:e.spacing(6)},topMarginSm:{marginTop:"15px"},topMarginLg:{marginTop:"15px"},flex:{display:"flex"},flexFill:{flexGrow:1},heading:{color:"#2A323C",fontSize:"14px",fontWeight:600,lineHeight:"20px"},subHeading:{color:"#5C6269",fontSize:"14px",fontWeight:"normal",lineHeight:"20px"},closePanel:{transform:"translateX(15px)"}})),N2n=fe()(e=>({container:{position:"relative",borderRadius:"5px",zIndex:2}})),M2n=({id:e,color:t="black",size:n=55})=>{var r=N2n()["classes"];return nt.exports.jsx("div",Object.assign({id:"addImageIcon-"+e,className:r.container},{children:nt.exports.jsx("svg",Object.assign({version:"1.2",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 500 500",width:n,height:n},{children:nt.exports.jsx("path",{fill:t,fillRule:"evenodd",d:"M249.5 62c147.7 0 151.1 0 157.5 1.9 3.6 1.1 8.9 3.7 11.9 5.8 3 2.1 7.3 6.1 9.6 8.8 2.3 2.7 5.2 7.7 9 17l.3 101c.1 55.6.1 101.4-.2 102-.2.7-4.1.6-11.2-.3-6-.7-14-1-17.9-.7-3.9.3-8.4.8-13 1.6V104.5h-291v291H297l-.7 8c-.5 4.4-.8 9.8-.8 12 0 2.2.4 8.2 1.5 22.5h-97.3c-82.7 0-98.2-.3-104.2-1.5-3.8-.9-9-2.8-11.5-4.2-2.5-1.5-6-4.1-7.9-5.8-1.9-1.6-5.2-5.7-7.3-9-2.5-3.9-4.4-8.5-5.4-13-1.3-6.1-1.4-26.2-.9-309l2.4-6c1.4-3.3 4.3-8.3 6.6-11 2.3-2.8 6.6-6.7 9.6-8.8 3-2.1 8.1-4.6 11.4-5.7 5.8-1.8 11.6-1.9 157-2zm45.4 185c.3 0 12.2 15.8 52.6 70.3l-4 3.1c-2.2 1.7-7.7 6.7-12.3 11.1-4.6 4.4-10.6 11.3-18.7 22.5h-93.8c-90.2 0-93.7-.1-92.5-1.8.7-1 14.7-19 31-40 16.4-21 30-38.2 30.3-38.2.3 0 7.8 8.9 16.7 19.8 8.9 10.8 18.7 22.7 21.7 26.5 3.1 3.7 5.8 6.7 6.1 6.7.3-.1 14.4-18.1 31.4-40.1 17-21.9 31.2-39.9 31.5-39.9zm122.6 87.5c13.3.3 15.8.7 22 3 3.9 1.5 9.3 3.8 12 5.2 2.8 1.4 8.4 5.1 12.4 8.2 4.1 3.1 10 8.7 13.1 12.6 3 3.9 7.1 10.1 9.1 14 2 3.9 4.7 9.9 6 13.5 2.1 5.9 2.3 8.2 2.3 24.5s-.2 18.6-2.3 24.5c-1.3 3.6-4 9.6-6 13.5-2 3.9-6.1 10.1-9.1 14-3.1 3.9-9 9.5-13.1 12.5-4 3.1-9.6 6.7-12.4 8.2-2.7 1.5-8.1 3.9-12 5.4-6.8 2.7-7.6 2.8-26 2.8s-19.2-.1-26-2.8c-3.9-1.5-9.2-3.9-12-5.3-2.7-1.4-8.4-5.1-12.4-8.2-4.1-3.1-10-8.7-13.1-12.6-3-3.9-7.1-10.1-9.1-14-2-3.9-4.7-9.9-6-13.5-2.1-5.9-2.3-8.2-2.3-24.5s.2-18.6 2.3-24.5c1.3-3.6 4-9.6 6-13.5 2-3.9 6.1-10.1 9.1-14 3.1-3.9 9-9.5 13.1-12.5 4-3.1 9.7-6.7 12.4-8.2 2.8-1.4 7.5-3.6 10.5-4.8 3-1.2 8-2.6 11-3 3-.5 12.3-.7 20.5-.5zM390 355.6c-3.6 1.6-8.5 4-11 5.4-2.5 1.4-7.4 5.4-11 9-3.9 3.8-8.2 9.6-10.6 14-2.3 4.1-5 10-6 13-1.3 4.2-1.8 8.7-1.8 18.5s.5 14.3 1.8 18.5c1 3 3.7 8.9 5.9 13 2.7 4.8 6.8 10.1 11.3 14.5 5.2 5.1 9.3 8.1 15.5 11.1 4.6 2.3 10.2 4.7 12.4 5.5 2.5.8 8.8 1.3 17 1.3s14.5-.5 17-1.3c2.2-.8 7.8-3.2 12.4-5.5 6.5-3.1 10.2-5.9 16-11.7 5.8-5.7 8.6-9.6 11.8-16 2.3-4.6 4.7-10.2 5.4-12.4.7-2.4 1.3-9.3 1.3-17 0-7.7-.6-14.6-1.3-17-.7-2.2-3.1-7.8-5.4-12.4-3.2-6.4-6-10.3-11.8-16-5.6-5.7-9.6-8.6-15.5-11.5-4.3-2.1-9.7-4.5-11.9-5.3-2.2-.7-8.5-1.5-14-1.7-5.5-.3-12.5-.1-15.5.3s-8.4 2.1-12 3.7zm15 18.4h17v33h33v17h-33v33h-17v-33h-33v-17h33z"})}))}))},P2n=fe()(e=>({addImageBoxContainer:{display:"flex",justifyContent:"flex-start",flexDirection:"column"},addImageBoxTitle:{padding:"0px",margin:"0px",color:"rgb(92, 98, 105)",fontSize:"12px",fontWeight:400,textAlign:"left",paddingLeft:"5px",paddingBottom:"3px"},addImageBoxSizeAvatar:{width:"135px"},addImageBoxSizeCover:{width:"100%"},addImageBoxIconDiv:{height:"180px",display:"flex",alignItems:"center",justifyContent:"center",border:"1px solid #D5DFE9",overflow:"hidden",position:"relative",textAlign:"left",borderRadius:"4px"},addImageBoxBackground:{position:"absolute",height:"100%",width:"100%",top:0,left:0,backgroundSize:"cover"},addImageBoxShadow:{background:"rgba(0,0,0,0.35)",position:"absolute",width:"100%",height:"100%",zIndex:1},iconButtonContainer:{width:"100%",padding:0},deleteIconContainer:{position:"absolute",top:0,left:0,width:"100%",height:"100%",background:"transparent",zIndex:10,display:"flex",justifyContent:"center",alignItems:"center"},deleteIcon:{color:"white",fontSize:"24px"}})),D2n=({title:e,backgroundImgUrl:t="",aspectRatio:n="avatar",onClick:r,onDelete:i})=>{var o=P2n()["classes"];const[a,s]=De.exports.useState(!1);var l=!!t,c=a&&t,u=a&&t,d=!t||a&&t,p=t?{backgroundImage:`url(${t})`}:{};return nt.exports.jsxs("div",Object.assign({className:o.addImageBoxContainer},{children:[nt.exports.jsx(ae,Object.assign({id:`file-item-meta-${n}-image-title`,variant:"body2",className:o.addImageBoxTitle,color:"secondary","data-test":`file-item-meta-${n}-image-title`},{children:e})),nt.exports.jsx(se,Object.assign({className:o.iconButtonContainer,onClick:r},{children:nt.exports.jsxs("div",Object.assign({onMouseEnter:()=>s(!0),onMouseLeave:()=>s(!1),className:o.addImageBoxIconDiv+" "+("avatar"===n?o.addImageBoxSizeAvatar:o.addImageBoxSizeCover)},{children:[d&&!u&&nt.exports.jsx(M2n,{id:`add-${n}-img`,color:t?"#fff":"#2A323C",size:45}),u&&nt.exports.jsx("div",Object.assign({className:o.deleteIconContainer,onClick:i},{children:nt.exports.jsx(swt,{style:{fontSize:42},className:o.deleteIcon,color:"inherit"})})),c&&nt.exports.jsx("div",{className:o.addImageBoxShadow}),l&&nt.exports.jsx("div",{className:o.addImageBoxBackground,style:p})]}))}))]}))},R2n=({file:t,onSave:n,onCancel:e,onClosePanel:r})=>{const i=T2n()["classes"];var o=ue(A$);const[a,s]=De.exports.useState(null),[l,c]=De.exports.useState(""),[u,d]=De.exports.useState(""),[p,g]=De.exports.useState((()=>{var[e,t,n]=(new Date).toLocaleDateString("en-US",{year:"numeric",month:"2-digit",day:"2-digit"}).split("/");return n+`-${e}-`+t})()),[f,h]=De.exports.useState((()=>{var[e,t]=(new Date).toLocaleTimeString("en-US",{hour:"2-digit",minute:"2-digit",hour12:!1}).split(":");return e+":"+t.slice(0,2)})()),[m,v]=De.exports.useState([]);var o=rN(o),y=(De.exports.useEffect(()=>{var e;t&&(e=t["meta"],s(null==e?void 0:e.thumbnailImg),c(null!=e&&e.fileName?e.fileName:t.name),null!=e&&e.runDate&&g(null==e?void 0:e.runDate),null!=e&&e.runTime&&h(null==e?void 0:e.runTime),v((null==e?void 0:e.tags)||[]))},[t]),De.exports.useCallback(()=>{var e;n&&(e={fileId:null==t?void 0:t.id,fileName:l,thumbnailImg:a,runDate:p,runTime:f,tags:m},n(e))},[n,l,p,f,m,a,t])),x=De.exports.useCallback(()=>{e&&(I(),e())},[e]),b=De.exports.useCallback(()=>{r&&(I(),r())},[r]);const C=De.exports.useCallback(()=>{if(u){const t=function(e){e=e.includes(",")?e.split(","):[e];const t=m.map(e=>e.value),n=[];return null!=e&&e.forEach(e=>{e=e.trim();""===e||t.includes(e)||(n.push({value:e}),t.push(e))}),n}(u);v(e=>[...e,...t]),d("")}},[u,m]),A=()=>{s(null)};return nt.exports.jsxs("div",Object.assign({className:i.editMetadataContainer},{children:[nt.exports.jsxs("header",Object.assign({className:i.header},{children:[nt.exports.jsx(ae,Object.assign({id:"file-item-meta-title",variant:"h1",color:"secondary","data-test":"file-item-meta-title"},{children:nt.exports.jsx(oe,{id:"os-data-center-importer.WUHjl4",defaultMessage:"Edit Metadata",description:"Edit Metadata"})})),nt.exports.jsx(re,Object.assign({title:nt.exports.jsx(oe,{id:"os-data-center-importer.kOsSpC",defaultMessage:"Close Panel",description:"Close Panel"})},{children:nt.exports.jsx(le,Object.assign({id:"file-item-meta-close-panel",onClick:b,"aria-labelledby":"file-item-meta-close-panel","data-test":"file-item-meta-close-panel",className:i.closePanel,size:"large"},{children:nt.exports.jsx(moe,{})}))}))]})),nt.exports.jsx("section",{children:nt.exports.jsx(a2n,{id:"file-item-meta-avatar-image-upload",imageOnly:!0,onUpload:e=>{e=e.target.files[0],t=URL.createObjectURL(e);var t,e=t={id:ZU(),fileUrl:t,name:e.name,size:e.size,type:e.type,percentComplete:0};s(e)},isUploadEnabled:!a,render:({handleButtonClick:e})=>nt.exports.jsx(D2n,{title:nt.exports.jsx(oe,{id:"os-data-center-importer.uK8+3P",defaultMessage:"Thumbnail Image",description:"Thumbnail Image"}),backgroundImgUrl:a?null===a||void 0===a?void 0:a.fileUrl:"",aspectRatio:"cover",onClick:e,onDelete:A})})}),nt.exports.jsx("section",Object.assign({className:i.topMarginSm},{children:nt.exports.jsx(PO,{id:"file-item-meta-file-name","data-test":"file-item-meta-file-name-input",InputLabelProps:{shrink:!0},autoComplete:"off",label:o({id:"os-data-center-importer.label.fileName",defaultMessage:[{type:0,value:"File name"}]}),value:l,style:{width:"100%"},onChange:e=>{c(e.target.value)}})})),nt.exports.jsxs("section",Object.assign({className:i.topMarginLg},{children:[nt.exports.jsx(ae,Object.assign({"data-test":"file-item-meta-display-time-heading",variant:"subtitle1",color:"textSecondary",className:i.heading},{children:nt.exports.jsx(oe,{id:"os-data-center-importer.8aqtJF",defaultMessage:"Media Display Time",description:"Media Display Time heading"})})),nt.exports.jsx(ae,Object.assign({"data-test":"file-item-meta-display-time-sub-heading",variant:"subtitle2",color:"textSecondary",className:i.subHeading},{children:nt.exports.jsx(oe,{id:"os-data-center-importer.mhUvxM",defaultMessage:"The actual time the content occurred.",description:"Media Display Time sub heading"})})),nt.exports.jsxs("div",Object.assign({className:i.topMarginSm+" "+i.flex},{children:[nt.exports.jsx(PO,{id:"file-item-meta-run-date",label:o({id:"os-data-center-importer.label.runDate",defaultMessage:[{type:0,value:"Run Date"}]}),type:"date",value:p,className:i.runDate,onChange:e=>g(e.target.value),InputLabelProps:{shrink:!0}}),nt.exports.jsx(PO,{id:"file-item-meta-run-time",label:o({id:"os-data-center-importer.label.runTime",defaultMessage:[{type:0,value:"Run Time"}]}),type:"time",value:f,onChange:e=>h(e.target.value),className:i.runTime,InputLabelProps:{shrink:!0}})]}))]})),nt.exports.jsxs("section",Object.assign({className:i.topMarginLg},{children:[nt.exports.jsx(ae,Object.assign({"data-test":"file-item-meta-tags-heading",variant:"subtitle1",color:"textSecondary",className:i.heading},{children:nt.exports.jsx(oe,{id:"os-data-center-importer.fXL811",defaultMessage:"Tags",description:"Tags heading"})})),nt.exports.jsx(ae,Object.assign({"data-test":"file-item-meta-tags-sub-heading",variant:"subtitle2",color:"textSecondary",className:i.subHeading},{children:nt.exports.jsx(oe,{id:"os-data-center-importer.WFj+x5",defaultMessage:"Add searchable tags to better organize this data. Separate each tag with a comma.",description:"Tags sub heading"})})),nt.exports.jsxs("div",Object.assign({className:i.topMarginSm+" "+i.flex},{children:[nt.exports.jsx(PO,{id:"file-item-meta-tags",autoComplete:"off",value:u,className:i.tagInput,onChange:e=>{d(e.target.value)},size:"small",onKeyPress:e=>{"Enter"===e.key&&C()}}),nt.exports.jsx(se,Object.assign({id:"file-item-meta-tags-addBtn",variant:"outlined",color:"primary",disabled:!u,onClick:C},{children:nt.exports.jsx(oe,{id:"os-data-center-importer.rntBSe",defaultMessage:"Add",description:"Add tags to metadata"})}))]})),nt.exports.jsx("ul",Object.assign({id:"tags",className:i.tags+" "+i.topMarginSm},{children:null===m||void 0===m?void 0:m.map(t=>nt.exports.jsx("li",{children:nt.exports.jsx(jI,{id:ZU(),label:t.value,size:"small",className:i.tag,onDelete:()=>{v(m.filter(e=>e.value!==t.value))}})},t.value))}))]})),nt.exports.jsxs("footer",Object.assign({className:i.footer},{children:[nt.exports.jsx(se,Object.assign({id:"file-item-meta-cancel-btn",onClick:x,variant:"text",size:"large",className:i.cancelBtn,"data-test":"file-item-meta-cancel-btn"},{children:nt.exports.jsx(oe,{id:"os-data-center-importer.6PdOcy",defaultMessage:"Cancel",description:"Cancel"})})),nt.exports.jsx(se,Object.assign({id:"file-item-meta-save-btn",onClick:y,disabled:!1,size:"large",variant:"contained",color:"primary","data-test":"file-item-meta-save-btn"},{children:nt.exports.jsx(oe,{id:"os-data-center-importer.kxBKrN",defaultMessage:"Save Changes",description:"Save file metadata changes"})}))]}))]}));function I(){s(null),c(""),g("2021-12-22"),h("12:00"),v([])}},L2n=({hidePanel:e,file:t})=>{const n=de();var r=ue(Vmn);return nt.exports.jsx(R2n,{file:t,status:r,onSave:function(e){e&&n(Nmn.filesSelectedState.addMetadataAction({id:null==t?void 0:t.id,meta:e}))},onCancel:function(){e()},onClosePanel:function(){e()}})};var F2n,V2n=Object.freeze({__proto__:null,DataCenterImporter:e=>nt.exports.jsx(ZO,{children:nt.exports.jsx(FO,{children:nt.exports.jsx(sg,Object.assign({modules:[i2n(),Grn()]},{children:nt.exports.jsx(qte,{children:nt.exports.jsx(S2n,Object.assign({},e))})}))})}),EditFileMetadata:e=>nt.exports.jsx(FO,{children:nt.exports.jsx(qte,{children:nt.exports.jsx(ZO,{children:nt.exports.jsx(L2n,Object.assign({},e))})})}),SupportedFileTypes:e=>nt.exports.jsx(FO,{children:nt.exports.jsx(qte,{children:nt.exports.jsx(ZO,{children:nt.exports.jsx(E2n,{hidePanel:e.hidePanel,fileTypes:e.fileTypes})})})}),actions:Nmn,getDataCenterImporterModule:i2n,selectSelectedFiles:Bmn,selectUploadedFilesTdoIds:zmn});const H2n="dataLabeler";(zle=F2n=F2n||{}).Annotation="annotation",zle.Publish="publish",zle.DatasetAssets="datasetAssets";ple="uiState",Toe=qM({name:H2n+"/"+ple,initialState:{status:"pending",isFullScreen:!1,isFluffy:!1,isInfoOpen:!1,annotationToolSettings:{isOpen:!1},publishAnnotationSettings:{isOpen:!1}},reducers:{init(e){e.status="pending"},initDone(e){e.status="idle"},initFailed(e){e.status="failure"},toggleFullScreen(e){e.isFullScreen=!e.isFullScreen},togglePublishAnnotationSettings(e,{payload:t}){t?(e.publishAnnotationSettings.isOpen=!0,e.publishAnnotationSettings.entityType=t):(e.publishAnnotationSettings.isOpen=!1,delete e.publishAnnotationSettings.entityType)},toggleAnnotationSettings(e,{payload:t}){t?(e.annotationToolSettings.isOpen=!0,e.annotationToolSettings.entityType=t):(e.annotationToolSettings.isOpen=!1,delete e.annotationToolSettings.entityType)}}}),Ace=Toe.actions,fce=Toe.reducer,Qce="panelPublishAnnotations",ase=qM({name:H2n+"/"+Qce,initialState:{ids:[]},reducers:{submitPublishAnnotations(e,{payload:t}){e.ids=t.ids}}}),pQt=ase.actions,_ce=ase.reducer;const U2n=H2n,B2n={uiState:Ace,panelPublishAnnotations:pQt},z2n=gg({uiState:fce,panelPublishAnnotations:_ce}),q2n=e=>e[U2n].uiState.isFullScreen,_2n=e=>e[U2n].uiState.publishAnnotationSettings,W2n=e=>e[U2n].uiState.annotationToolSettings;var Z2n={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:-1,overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"};const G2n={publishAnnotation:()=>nt.exports.jsx(oe,{id:"os-data-labeler.y9CGIM",defaultMessage:"Publish Annotation",description:"Publish Annotation"}),publishAnnotationSubtitle:()=>nt.exports.jsx(oe,{id:"os-data-labeler.r0ufb8",defaultMessage:"Published annotations will be available as Ground Truth within your dataset and used for comparison metrics.",description:"Published annotations will be available as Ground Truth within your dataset and used for comparison metrics."}),annotationSettings:()=>nt.exports.jsx(oe,{id:"os-data-labeler.XONoJU",defaultMessage:"Annotation Settings",description:"Annotation Settings"}),closePanel:()=>nt.exports.jsx(oe,{id:"os-data-labeler.kOsSpC",defaultMessage:"Close Panel",description:"Close Panel"}),exitFullScreen:()=>nt.exports.jsx(oe,{id:"os-data-labeler.awe7uYc",defaultMessage:"Exit Fullscreen",description:"Exit Fullscreen"}),enterFullScreen:()=>nt.exports.jsx(oe,{id:"os-data-labeler.stiZt+b",defaultMessage:"Enter Fullscreen",description:"Enter Fullscreen"}),toggleFullScreen:()=>nt.exports.jsx(oe,{id:"os-data-labeler.TUGpHT",defaultMessage:"Toggle FullScreen",description:"Toggle FullScreen"}),submit:()=>nt.exports.jsx(oe,{id:"os-data-labeler.lOLf4e",defaultMessage:"Submit",description:"Submit"}),show:()=>nt.exports.jsx(oe,{id:"os-data-labeler.HTVdQU",defaultMessage:"Show",description:"Show"}),hide:()=>nt.exports.jsx(oe,{id:"os-data-labeler.sX3mXR",defaultMessage:"Hide",description:"Hide"})},J2n=fe()((e,t,n)=>({root:{flexGrow:1},gridText:{minHeight:0,minWidth:0},divider:{opacity:.9},name:{fontWeight:400,maxWidth:"100%"},type:{paddingLeft:e.spacing(1),maxWidth:e.spacing(12)},padding:{paddingRight:e.spacing(1)},thumbnailContainer:{paddingLeft:e.spacing(3),maxWidth:"60px"},tableHeaderTitle:{paddingLeft:e.spacing(3),maxWidth:"120px"},thumbnail:{width:32,height:32,borderRadius:4,border:".5px solid "+e.palette.divider,objectFit:"cover",verticalAlign:"middle"},header:{alignItems:"center",borderBottom:"0.5px solid "+e.palette.divider,display:"flex",height:64,padding:e.spacing(2)},navigationToggle:{marginRight:e.spacing(1)},headerActionContainer:{alignItems:"center",display:"flex",flexGrow:1,height:"100%",justifyContent:"flex-end"},verticalDivider:{borderRight:".5px solid "+e.palette.divider,height:"70%",margin:"0 "+e.spacing(1)},folderMoreIcon:{},row:{cursor:"pointer","&:hover":{borderRadius:4,backgroundColor:"#EEF3F9",["& "+n.folderMoreIcon]:{visibility:"visible",width:"100%",display:"flex",justifyContent:"flex-end"},"& #engineIconContainer":{background:"#fff"}},["& "+n.folderMoreIcon]:{visibility:"hidden"}},publishRoot:{height:"calc(100vh - 260px)",width:"100%"},dRoot:{height:"calc(100vh - 120px)",width:"100%"},dNavBar:{height:"100%",overflow:"hidden",background:"#F4F4F4"},dTitle:{color:"#2A323C",fontWeight:600,fontSize:"18px",lineHeight:"24px",padding:e.spacing(3.2)},dContent:{height:"100%",width:"100%",position:"relative"},dMenu:{overflowY:"auto",height:"calc(100% - 52px)"},loadingContainer:{position:"absolute",height:"100%",width:"100%",display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:"white"}})),K2n=({isFullScreen:e,onPanelClose:t,onFullScreenToggle:n,disableSetting:r})=>{var i=J2n()["classes"];const o=de();return nt.exports.jsxs("header",Object.assign({className:i.header,"data-test":"data-labeler-header"},{children:[nt.exports.jsx(ae,Object.assign({variant:"h1","data-test":"data-labeler-title",style:{marginLeft:30}},{children:"Data Labeler"})),nt.exports.jsx("div",Object.assign({style:{alignItems:"center",border:"1px solid #E1E6ED",borderRadius:4,display:"none",flexGrow:1,height:44,padding:20}},{children:"[PLACEHOLDER FOR SEARCH COMPONENT]"})),nt.exports.jsxs("div",Object.assign({className:i.headerActionContainer},{children:[nt.exports.jsx(se,Object.assign({variant:"contained",color:"primary",size:"large","data-test":"data-labeler-open-publish-annotations",style:{marginRight:10},startIcon:nt.exports.jsx(gue,{style:{color:"#FFF"}}),onClick:()=>o(B2n.uiState.togglePublishAnnotationSettings(F2n.Publish))},{children:G2n.publishAnnotation()})),nt.exports.jsx("div",{className:i.verticalDivider}),nt.exports.jsx(ae,Object.assign({style:Z2n,id:"data-labeler-toolbar-open-annotation-settings"},{children:G2n.annotationSettings()})),nt.exports.jsx(re,Object.assign({title:G2n.annotationSettings()},{children:nt.exports.jsx(le,Object.assign({disabled:r,onClick:()=>o(B2n.uiState.toggleAnnotationSettings(F2n.Annotation)),"data-test":"data-labeler-open-annotation-settings","aria-labelledby":"data-labeler-toolbar-open-annotation-settings",size:"large"},{children:nt.exports.jsx(Xse,{})}))})),nt.exports.jsx(ae,Object.assign({style:Z2n,id:"data-labeler-toggle-fullscreen"},{children:G2n.toggleFullScreen()})),nt.exports.jsx(re,Object.assign({title:e?G2n.exitFullScreen():G2n.enterFullScreen()},{children:nt.exports.jsx(le,Object.assign({onClick:n,"aria-labelledby":"data-labeler-toggle-fullscreen","data-test":"data-labeler-fullscreen-toggle",size:"large"},{children:e?nt.exports.jsx(lae,{}):nt.exports.jsx(sae,{})}))})),nt.exports.jsx(ae,Object.assign({style:Z2n,id:"data-labeler-close-panel"},{children:G2n.closePanel()})),nt.exports.jsx(re,Object.assign({title:G2n.closePanel()},{children:nt.exports.jsx(le,Object.assign({onClick:t,"aria-labelledby":"data-labeler-close-panel","data-test":"data-labeler-close-panel",size:"large"},{children:nt.exports.jsx(vae,{})}))}))]}))]}))},Y2n=({path:e,fullScreen:t=!1,onClosePanel:n,onSavePublishAnnotation:r})=>{var i=J2n()["classes"];const[o,a]=De.exports.useState(!0),s=De.exports.useRef(null);De.exports.useEffect(()=>{const e=t=>{t=t.data;if(t){let e;try{e=JSON.parse(t)}finally{e&&"closePanel"===e.action&&n&&n(),e&&"savePublishAnnotation"===e.action&&r&&r()}}};return window.addEventListener("message",e),()=>window.removeEventListener("message",e)}),De.exports.useEffect(()=>{s&&s.current&&s.current.focus()},[s]);t=`calc(100vh - ${t?"64":"120"}px)`;return nt.exports.jsxs("div",Object.assign({className:Jhe(i.dRoot,"hide-in-percy"),style:{height:t}},{children:[o&&nt.exports.jsx("div",Object.assign({className:i.loadingContainer},{children:nt.exports.jsx(L4,{})})),nt.exports.jsx("iframe",{"data-test":"data-labeler-iframe",title:"Data Labeler Iframe",ref:s,style:{width:"100%",height:"100%",overflow:"auto"},src:e,frameBorder:"0",onLoad:function(){setTimeout(()=>{a(!1)},1e3)}})]}))},Q2n=fe()(e=>({panelRoot:{position:"absolute",right:0,top:0,display:"flex","&$fullScreen":{height:"100vh"}},panelContainer:{display:"flex",flexDirection:"column",width:"100%",padding:e.spacing(2)},panelHeader:{display:"flex",justifyContent:"space-between",alignItems:"center",paddingLeft:e.spacing(1),marginBottom:e.spacing(1),"&.with-secondary-title":{alignItems:"flex-start"}},panelBody:{display:"flex",flexGrow:1,padding:e.spacing(1)},divider:{marginBottom:e.spacing(2)},panelOverlay:{backgroundColor:e.palette.grey[50],opacity:"0.5 !important",height:"100%",position:"absolute",top:0,width:"100%"},EmptyAssetContainer:{display:"flex",flexDirection:"column",justifyContent:"flex-start",alignItems:"center",paddingTop:e.spacing(18),width:"100%"},emptyImage:{display:"flex",textAlign:"center",width:"235px",height:"235px",marginBottom:e.spacing(2)},message:{userSelect:"none",paddingBottom:e.spacing(2)}})),X2n=({isOpen:e,panelTitle:t,className:n="",onClose:r,children:i,setIsActive:o,width:a=400})=>{var s=Q2n()["classes"];return nt.exports.jsxs(nt.exports.Fragment,{children:[nt.exports.jsx(S5,Object.assign({in:e,mountOnEnter:!0,unmountOnExit:!0},{children:nt.exports.jsx("div",{className:s.panelOverlay})})),nt.exports.jsx(j6,Object.assign({direction:"left",in:e,mountOnEnter:!0,unmountOnExit:!0,onEntered:()=>{o(!0)},onExited:()=>o(!1)},{children:nt.exports.jsx("div",Object.assign({className:Jhe(n,s.panelRoot),style:{width:a},"data-test":"data-labeler-action-panel"},{children:nt.exports.jsxs("div",Object.assign({className:s.panelContainer},{children:[nt.exports.jsxs("div",Object.assign({className:Jhe(s.panelHeader)},{children:[nt.exports.jsx(ae,Object.assign({"data-test":"data-labeler-action-panel-title",variant:"h1"},{children:t})),nt.exports.jsx(ae,Object.assign({style:Z2n,id:"data-labeler-close-action-panel"},{children:G2n.closePanel()})),nt.exports.jsx(re,Object.assign({title:G2n.closePanel()},{children:nt.exports.jsx(le,Object.assign({onClick:r,"aria-labelledby":"data-labeler-close-action-panel","data-test":"data-labeler-close-action-panel",size:"large"},{children:nt.exports.jsx(vae,{})}))}))]})),nt.exports.jsx(ce,{className:s.divider}),nt.exports.jsx("div",Object.assign({className:s.panelBody},{children:i}))]}))}))}))]})},$2n=e=>{var[t,n]=De.exports.useState(!1);const r=de();var{isOpen:i,entityType:o}=ue(W2n),a=()=>{r(B2n.uiState.toggleAnnotationSettings(null))};return nt.exports.jsx(X2n,Object.assign({isOpen:!(!i||!o),panelTitle:G2n.annotationSettings(),onClose:a,setIsActive:n,width:1020},e,{children:nt.exports.jsx(nt.exports.Fragment,{children:t&&nt.exports.jsx(Y2n,{fullScreen:e.fullScreen,path:e.blueEyeConfig.settingUri,onClosePanel:a})})}))},evn=t=>{var[e,n]=De.exports.useState(!1);const r=de();var{isOpen:i,entityType:o}=ue(_2n),a=()=>{r(B2n.uiState.togglePublishAnnotationSettings(null))};return nt.exports.jsx(X2n,Object.assign({isOpen:!(!i||!o),panelTitle:G2n.publishAnnotation(),onClose:a,setIsActive:n,width:400},t,{children:nt.exports.jsx(nt.exports.Fragment,{children:e&&nt.exports.jsx(Y2n,{fullScreen:t.fullScreen,path:t.blueEyeConfig.publishUri,onClosePanel:a,onSavePublishAnnotation:()=>{var e=t["publishCallback"];e()}})})}))},tvn=fe()(e=>({root:{width:"100%",position:"relative"},panel:{backgroundColor:e.palette.background.paper,boxShadow:"0px 0px 12px rgba(0, 0, 0, 0.25)",height:"100%",overflow:"hidden"},fullScreen:{position:"fixed",width:"100%",height:"100vh",top:0,left:0,right:0,bottom:0,zIndex:1200}})),nvn=({isFullScreen:e,classes:t,children:n})=>e?nt.exports.jsx(WC,{children:nt.exports.jsx("div",Object.assign({role:"presentation","data-test":"data-labeler-widget",className:Jhe(t.panel,t.fullScreen)},{children:n}))}):nt.exports.jsx("div",Object.assign({role:"presentation","data-test":"data-labeler-widget",className:Jhe(t.root,t.panel)},{children:n})),rvn=({hidePanel:e,blueEyeConfig:t,datasetAssets:n,publishCallback:r,disableSetting:i})=>{var o=tvn()["classes"],a=ue(q2n);const s=de();return nt.exports.jsxs(nvn,Object.assign({isFullScreen:a,classes:o},{children:[nt.exports.jsx(K2n,{isFullScreen:a,onFullScreenToggle:()=>{s(B2n.uiState.toggleFullScreen())},onPanelClose:()=>{e&&e()},disableSetting:i}),nt.exports.jsx(Y2n,{fullScreen:a,path:t.annotateUri}),nt.exports.jsx($2n,{className:o.panel,fullScreen:a,blueEyeConfig:t}),nt.exports.jsx(evn,{className:o.panel,fullScreen:a,blueEyeConfig:t,datasetAssets:n,publishCallback:r})]}))};function*ivn(e){var e=e.payload,t=e.ids,e=((0,e.callback)(t),yield T(A$)),t=rN(e);yield k(Bee({content:t({id:"os-data-labeler.snackbar.submitPublishSuccess",defaultMessage:[{type:0,value:"Submit publish annotations successfully."}]}),severity:N.Info}))}function*ovn(){yield $1([function*(){yield lP(B2n.panelPublishAnnotations.submitPublishAnnotations.type,ivn)}()])}Hh.addModules([{id:H2n,reducerMap:{dataLabeler:z2n},sagas:[ovn],initialActions:[]}]);var avn=Object.freeze({__proto__:null,DataLabelerPanel:e=>e.panelRendered?nt.exports.jsx(FO,{children:nt.exports.jsx(qte,{children:nt.exports.jsx(rvn,Object.assign({},e))})}):null}),svn=fe()(e=>({root:{width:"560px",height:"auto"},configurationContainer:{minHeight:"650px"},spacer:{minHeight:e.spacing(2)},header:{alignItems:"center",borderBottom:"0.5px solid "+e.palette.divider,backgroundColor:"#FAFAFA !important",display:"flex",height:64,padding:e.spacing(2)},headerTitle:{paddingLeft:e.spacing(4)},headerActionContainer:{alignItems:"center",display:"flex",flexGrow:1,height:"100%",justifyContent:"flex-end"},verticalDivider:{borderRight:".5px solid "+e.palette.divider,height:"70%",margin:"0 "+e.spacing(1)},stepsContent:{overflowY:"scroll","&::-webkit-scrollbar":{width:"0"},height:"calc(100vh - 280px)"},stepper:{width:"80%",height:"75px",paddingLeft:"30px"},step:{".MuiStepIcon-root.Mui-active":{fill:e.palette.secondary.main},".MuiStepIcon-root.Mui-completed":{fill:e.palette.secondary.main}},sectionsButton:{paddingBottom:e.spacing(3)},sections:{paddingTop:e.spacing(3),paddingBottom:e.spacing(2.8)},container:{paddingTop:e.spacing(3),paddingLeft:e.spacing(3),paddingRight:e.spacing(3)},clientDivider:{paddingBottom:e.spacing(3)},previewButtonContainer:{marginTop:e.spacing(3),padding:e.spacing(3),background:"#FAFAFA"},previewButtonImage:{width:"30px",height:"30px",objectFit:"contain",marginRight:e.spacing(2)},previewButton:{height:"55px",marginBottom:e.spacing(4),textTransform:"none"},designContainer:{display:"flex",width:"100%",marginTop:e.spacing(3)},colorBlocksContainer:{display:"flex",flexDirection:"row",justifyContent:"space-between",width:"100%"},colorBlock:{width:"30px",height:"30px",borderRadius:"4px"},colorValuesContainer:{display:"flex",justifyContent:"space-between",width:"100%"},buttonDesignErrorContainer:{marginTop:"10px",display:"flex",flexDirection:"column",width:"100%",alignItems:"center",justifyContent:"center",color:"#E53935"},buttonDesignContainer:{display:"flex",flexDirection:"column",height:"137px",width:"100%",justifyContent:"space-between"},buttonPreviewLabel:{position:"absolute",fontSize:"12px",fontWeight:300,width:"75px",backgroundColor:"#fff",transform:"translate(2px, 0px) scale(.98)",color:"#5C6269",textAlign:"center",top:"-8px",left:"5px"},logo:{width:"100%",objectFit:"fill",borderRadius:"4px"},logoContainer:{height:"138px",width:"138px",position:"relative",borderRadius:"4px",marginRight:e.spacing(2)},buttonGroup:{position:"fixed",bottom:"20px",right:"80px",display:"flex",flexDirection:"row",justifyContent:"flex-end",alignItems:"flex-end",marginTop:e.spacing(3),marginRight:e.spacing(3)},button:{marginRight:e.spacing(1)},instructions:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},textField:{width:"100%"},textFieldButtonDesign:{marginLeft:0,marginRight:0,marginTop:0,width:"100%"},textFieldHexButtonDesign:{marginLeft:0,marginRight:0,marginTop:0,width:"48%"},inputBase:{fontWeight:400,fontSize:"14px"},inputContainer:{position:"relative"},fileInput:{position:"absolute",height:1,width:1,overflow:"hidden",clip:"rect(1px, 1px, 1px, 1px)"},imageWrapper:{position:"relative",alignItems:"center",borderRadius:4,border:"1px solid #ccc",boxSizing:"border-box",cursor:"pointer",display:"flex",width:137,height:137,justifyContent:"center",overflow:"hidden"},inputLogo:{position:"relative",height:138,width:138,objectFit:"contain"},removeBtn:{backgroundColor:"rgba(255, 255, 255, .7)",color:"#000",borderRadius:"25px",padding:8,position:"absolute",right:4,top:92},loadingCreate:{marginTop:"50px",display:"flex",width:"100%",height:"400px",justifyContent:"space-around",alignItems:"center",flexDirection:"column"},errorImage:{width:"235px",height:"235px"},retryButton:{marginTop:"10px"},isGlobalContainer:{borderRadius:4,backgroundColor:"#FAFAFA",padding:"10px",display:"flex",flexDirection:"row"},isGlobalTitle:{marginBottom:"5px"},isGlobalDescription:{width:"90%"}})),lvn={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:-1,overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"};const cvn={panelHeaderTitle:()=>nt.exports.jsx(oe,{id:"os-admin-center-open-id.ciRSCG",defaultMessage:"Login Connector",description:"Login Connector"}),closePanel:()=>nt.exports.jsx(oe,{id:"os-admin-center-open-id.kOsSpC",defaultMessage:"Close Panel",description:"Close Panel"}),loginStepsProviderConfiguration:()=>nt.exports.jsx(oe,{id:"os-admin-center-open-id.6+P+4t",defaultMessage:"Provider Configuration",description:"Provider Configuration"}),loginStepsButtonDesign:()=>nt.exports.jsx(oe,{id:"os-admin-center-open-id.pgJQ+P",defaultMessage:"Button Design",description:"Button Design"}),loginStepsNextButton:()=>nt.exports.jsx(oe,{id:"os-admin-center-open-id.6V6DQY",defaultMessage:"Next",description:"Next Button"}),loginStepsBackButton:()=>nt.exports.jsx(oe,{id:"os-admin-center-open-id.nsJ82A",defaultMessage:"Back",description:"Back Button"}),loginStepsCreateButton:()=>nt.exports.jsx(oe,{id:"os-admin-center-open-id.DOAMwO",defaultMessage:"Create",description:"Create Button"}),loginStepsUpdateButton:()=>nt.exports.jsx(oe,{id:"os-admin-center-open-id.aW7Qtx",defaultMessage:"Update",description:"Button that allows users to update their open id provider"}),loginStepsCloseButton:()=>nt.exports.jsx(oe,{id:"os-admin-center-open-id.q5zf7S",defaultMessage:"Close",description:"Create Button"}),loginStepsErrorRequired:()=>nt.exports.jsx(oe,{id:"os-admin-center-open-id.vjutlG",defaultMessage:"This field is required.",description:"required field"}),loginStepsErrorIssuerUrl:()=>nt.exports.jsx(oe,{id:"os-admin-center-open-id.2VJeNw",defaultMessage:"This field is required. OpenID connect metaData document",description:"OPenId Metadata Document Required"}),loginStepsErrorBtnText:()=>nt.exports.jsx(oe,{id:"os-admin-center-open-id.JuCywi",defaultMessage:"This field is required",description:"Button Text Required"}),loginStepsErrorBtnColor:()=>nt.exports.jsx(oe,{id:"os-admin-center-open-id.lQChal",defaultMessage:'Needs Valid Six Digit Hex color ie.. "#FFFFFF"',description:"Valid Button Text Color Required"}),loginStepsErrorBtnLogo:()=>nt.exports.jsx(oe,{id:"os-admin-center-open-id.8vQBmc",defaultMessage:"Please use a valid JPEG, PNG or SVG file smaller than 300KB",description:"Valid Button Logo Type File Size"}),providerInstructions:()=>nt.exports.jsx(oe,{id:"os-admin-center-open-id.rpVpIA",defaultMessage:"Configure your new authentication option for users of this organization. This will be displayed on login.",description:"Provider Instructions"}),providerUpdateInstructions:()=>nt.exports.jsx(oe,{id:"os-admin-center-open-id.i1Yvqc",defaultMessage:"Update your authentication options for users of this organization. This will be displayed on login. You will need to re-enter your Client Secret and Issuer URL for this connector",description:"Text to describe Instructions for this step of Login Connector Updating"}),providerSectionBasic:()=>nt.exports.jsx(oe,{id:"os-admin-center-open-id.3nxOek",defaultMessage:"Basic Info",description:"Basic Info"}),providerInputName:()=>nt.exports.jsx(oe,{id:"os-admin-center-open-id.+fYwFL",defaultMessage:"Name",description:"Name"}),providerInputDescription:()=>nt.exports.jsx(oe,{id:"os-admin-center-open-id.3T09+Q",defaultMessage:"Description",description:"Description"}),providerInputWebsiteUrl:()=>nt.exports.jsx(oe,{id:"os-admin-center-open-id.pnHn3q",defaultMessage:"Website URL",description:"Website URL"}),providerSectionClient:()=>nt.exports.jsx(oe,{id:"os-admin-center-open-id.EcoPxV",defaultMessage:"Client Info",description:"Client Info"}),providerInputClientId:()=>nt.exports.jsx(oe,{id:"os-admin-center-open-id.uWdwr0",defaultMessage:"Client ID",description:"Client ID"}),providerInputClientSecret:()=>nt.exports.jsx(oe,{id:"os-admin-center-open-id.6OgfIg",defaultMessage:"Client Secret",description:"Client Secret "}),providerInputIssuerUrl:()=>nt.exports.jsx(oe,{id:"os-admin-center-open-id.mXH+F+",defaultMessage:"Issuer URL",description:"Issuer URL"}),providerGlobalTitle:()=>nt.exports.jsx(oe,{id:"os-admin-center-open-id.+k+hp1",defaultMessage:"Global Authentication",description:"Global Authentication"}),providerGlobalDescription:()=>nt.exports.jsx(oe,{id:"os-admin-center-open-id.fxc8x4",defaultMessage:"When enabled, this login provider will be available for all organizations within this environment. Please use with caution!",description:"Global description"}),buttonInstructions:()=>nt.exports.jsx(oe,{id:"os-admin-center-open-id.gQIG1D",defaultMessage:"Set the look and feel of your login button for your users.",description:"Button Instructions"}),buttonPreview:()=>nt.exports.jsx(oe,{id:"os-admin-center-open-id.dtsZya",defaultMessage:"Button Preview",description:"Button Preview"}),buttonLogo:()=>nt.exports.jsx(oe,{id:"os-admin-center-open-id.XtAWcG",defaultMessage:"Button Logo",description:"Button Logo"}),buttonText:()=>nt.exports.jsx(oe,{id:"os-admin-center-open-id.w2NwY1",defaultMessage:"Button Text Label",description:"Button Text"}),buttonColor:()=>nt.exports.jsx(oe,{id:"os-admin-center-open-id.J2U6tX",defaultMessage:"Button Color",description:"Button Color"}),buttonTextColor:()=>nt.exports.jsx(oe,{id:"os-admin-center-open-id.3GdHqA",defaultMessage:"Button Text Color",description:"Button Text Color"}),providerCreationCreated:()=>nt.exports.jsx(oe,{id:"os-admin-center-open-id.q+GZ9g",defaultMessage:"Your Login Connector is being created!",description:"connector being created"}),providerCreationFailed:()=>nt.exports.jsx(oe,{id:"os-admin-center-open-id.DVnePp",defaultMessage:"There was an error while creating your Open ID connector:",description:"connector creation failed"}),providerCreationRetryButton:()=>nt.exports.jsx(oe,{id:"os-admin-center-open-id.muMXB+",defaultMessage:"Retry",description:"retry button"}),getProviderFailed:()=>nt.exports.jsx(oe,{id:"os-admin-center-open-id.Iuo8e2",defaultMessage:"There was an error retrieving your existing Open ID connector",description:"Message to let user know that we could not retrieve thier Login Connector"})},uvn=({onPanelClose:e})=>{var t=svn()["classes"];return nt.exports.jsxs("div",Object.assign({className:t.header,"data-test":"admin-center-header"},{children:[nt.exports.jsx(ae,Object.assign({className:t.headerTitle,variant:"h1",color:"secondary","data-test":"admin-center-title"},{children:cvn.panelHeaderTitle()})),nt.exports.jsxs("div",Object.assign({className:t.headerActionContainer},{children:[nt.exports.jsx(ae,Object.assign({style:lvn,id:"admin-center-close-panel"},{children:cvn.closePanel()})),nt.exports.jsx(re,Object.assign({title:cvn.closePanel()},{children:nt.exports.jsx(le,Object.assign({onClick:e,"aria-labelledby":"admin-center-close-panel","data-test":"admin-center-close-panel",size:"large"},{children:nt.exports.jsx(vae,{})}))}))]}))]}))},dvn="adminCenterOpenIdDetail",pvn="Log in with ";const gvn=({logoUrl:e,onChangeFormItem:t})=>{var n=svn()["classes"];const i=De.exports.useRef(null),[r,o]=De.exports.useState(e),[a,s]=De.exports.useState(!1);De.exports.useEffect(()=>{t("btnLogo",r)},[r,t]);return nt.exports.jsxs("div",Object.assign({className:n.inputContainer},{children:[nt.exports.jsx("input",{ref:i,id:"logo-input",name:"logo-input",type:"file",accept:"image/*",onChange:e=>{e=ge.exports.get(e,"target.files[0]",null);if(null!==i.current&&(i.current.value=""),t=(t=e).type,["image/jpeg","image/png","image/svg+xml"].includes(t)&&e.size<=3e5){var t=e;var n=e=>{"string"==typeof e&&o(e),s(!1)};const r=new FileReader;r.readAsDataURL(t),r.onload=function(){n(r.result)},r.onerror=function(e){s(!0),console.log("Error: ",e)}}else s(!0)},className:n.fileInput,"aria-label":"Upload Logo"}),nt.exports.jsx("div",Object.assign({className:n.imageWrapper,role:"button"},{children:r?nt.exports.jsxs(nt.exports.Fragment,{children:[nt.exports.jsx("img",{"data-test":"admin-center-image-loaded",src:r,alt:"logo",className:n.inputLogo}),nt.exports.jsx(b9,{"data-test":"admin-center-remove-image","aria-label":"Remove Image",fontSize:"large",className:n.removeBtn,onClick:()=>{s(!1),o("")},component:swt})]}):nt.exports.jsx(b9,{onClick:()=>{null!==i.current&&i.current.click()},"data-test":"upload-icon",fontSize:"large",component:Fle})})),nt.exports.jsx(J6,Object.assign({"data-test":"admin-center-logo-upload-error",error:a},{children:a?cvn.loginStepsErrorBtnLogo():""}))]}))},fvn=({formData:e,errorForm:t,onChangeFormItem:n,handleChangeForm:r})=>{const i=svn()["classes"];return nt.exports.jsxs("div",Object.assign({className:i.configurationContainer},{children:[nt.exports.jsx("div",Object.assign({className:i.container},{children:nt.exports.jsx(ae,Object.assign({"data-test":"admin-center-button-instructions",variant:"body2",color:"textPrimary"},{children:cvn.buttonInstructions()}))})),nt.exports.jsxs("div",Object.assign({className:i.previewButtonContainer},{children:[nt.exports.jsx(ae,Object.assign({className:i.sectionsButton,variant:"h6",color:"textPrimary"},{children:cvn.buttonPreview()})),nt.exports.jsxs(se,Object.assign({style:{color:""+e.btnTextColor,backgroundColor:""+e.btnColor},"data-test":"admin-center-input-previewButton",variant:"outlined",color:"primary",fullWidth:!0,className:i.previewButton},{children:[e.btnLogo?nt.exports.jsx("img",{"data-test":"admin-center-preview-logo",alt:"previewLogo",className:i.previewButtonImage,src:e.btnLogo}):null,null!=e&&e.btnText?pvn+(null==e?void 0:e.btnText):pvn+"<open id connect name>"]}))]})),nt.exports.jsxs("div",Object.assign({className:i.container},{children:[nt.exports.jsxs("div",Object.assign({className:i.designContainer},{children:[nt.exports.jsxs("div",Object.assign({"data-test":"admin-center-button-logo",className:i.logoContainer},{children:[nt.exports.jsx(gvn,{onChangeFormItem:n,logoUrl:null!=e&&e.btnLogo?null==e?void 0:e.btnLogo:""}),nt.exports.jsx("div",Object.assign({className:i.buttonPreviewLabel},{children:cvn.buttonLogo()}))]})),nt.exports.jsxs("div",Object.assign({className:i.buttonDesignContainer},{children:[nt.exports.jsx(PO,{required:!0,id:"btnText","data-test":"admin-center-input-btnText",autoComplete:"off",label:cvn.buttonText(),variant:"outlined",className:i.textFieldButtonDesign,value:null==e?void 0:e.btnText,onChange:r("btnText"),error:""!==t.btnText}),nt.exports.jsx("div",Object.assign({className:i.colorBlocksContainer},{children:["#FB8C00","#FFB300","#00897B","#43A047","#039BE5","#1E88E5","#ADB8C2","#E53935","#D81B60","#8E24AA"].map(e=>nt.exports.jsx("div",{className:i.colorBlock,style:{backgroundColor:e},onClick:()=>n("btnColor",""+e)},e))})),nt.exports.jsxs("div",Object.assign({className:i.colorValuesContainer},{children:[nt.exports.jsx(PO,{required:!0,id:"btnColor","data-test":"admin-center-input-btnColor",autoComplete:"off",label:cvn.buttonColor(),variant:"outlined",className:i.textFieldHexButtonDesign,value:null==e?void 0:e.btnColor,onChange:r("btnColor"),error:""!==t.btnColor,InputProps:{classes:{input:i.inputBase}},size:"small"}),nt.exports.jsx(PO,{required:!0,id:"btnTextColor","data-test":"admin-center-input-btnTextColor",autoComplete:"off",label:cvn.buttonTextColor(),variant:"outlined",className:i.textFieldHexButtonDesign,value:null==e?void 0:e.btnTextColor,onChange:r("btnTextColor"),error:""!==t.btnTextColor,InputProps:{classes:{input:i.inputBase}},size:"small"})]}))]}))]})),nt.exports.jsxs("div",Object.assign({className:i.buttonDesignErrorContainer},{children:[t.btnText?nt.exports.jsxs("div",Object.assign({"data-test":"admin-center-button-text-error"},{children:[cvn.buttonText(),": ",t.btnText]})):null,t.btnColor?nt.exports.jsxs("div",Object.assign({"data-test":"admin-center-button-color-error"},{children:[cvn.buttonColor(),": ",t.btnColor]})):null,t.btnTextColor?nt.exports.jsxs("div",Object.assign({"data-test":"admin-center-button-text-color-error"},{children:[cvn.buttonTextColor(),": ",t.btnTextColor]})):null]}))]}))]}))};function hvn(e){var t={isSuperAdmin:!1,isAdmin:!1};return e&&(0<=e.indexOf("superadmin")&&(t.isSuperAdmin=!0),0<=e.indexOf("admin"))&&(t.isAdmin=!0),t}const mvn="adminCenterIam";vce="uiState";const vvn={status:"pending",openIdProvider:{name:"",description:"",websiteUrl:"",clientId:"",clientSecret:"",issuerUrl:"",btnText:"",btnLogo:"",btnColor:"#FFFFFF",btnTextColor:"#000000",isGlobal:!1},appId:{id:""},existingOpenIdProvider:{id:""},newProvider:{status:"idle",errorMessage:""}};Bae=qM({name:mvn+"/"+vce,initialState:vvn,reducers:{init(e,{payload:t}){e.status="pending",e.existingOpenIdProvider.id=t.connectorId,e.appId.id=t.appId},initDone(e){e.status="idle"},initFailed(e){e.status="failure"},updateAppId(e,{payload:t}){e.appId=t},updateOpenIdConnector(e,{payload:t}){e.openIdProvider=t},startCreateNewProvider(e){e.newProvider.status="pending"},createNewProviderSuccess(e){e.newProvider.status="idle",e.openIdProvider=vvn.openIdProvider},createNewProviderFailed(e,{payload:t}){e.newProvider={status:t.status,errorMessage:t.errorMessage}}}}),Uoe=Bae.actions,r=Bae.reducer;const yvn=dvn,xvn={uiState:Uoe},bvn=gg({uiState:r}),Cvn=e=>e[yvn].uiState.status,Avn=e=>e[yvn].uiState.appId,Ivn=e=>e[yvn].uiState.openIdProvider,wvn=e=>e[yvn].uiState.newProvider,jvn=e=>e[yvn].uiState.existingOpenIdProvider;var Svn=Object.freeze({__proto__:null,selectUIStateStatus:Cvn,selectAppId:Avn,selectOpenIdProvider:Ivn,selectCreateNewProvider:wvn,selectExistingProvider:jvn});const Ovn=({formData:e,errorForm:t,handleChangeForm:n})=>{var r=svn()["classes"],i=ue(d$),o=hvn(i.roles||null),a=ue(jvn),i=null==(i=null==i?void 0:i.organization)?void 0:i.organizationId;return nt.exports.jsx("div",Object.assign({className:r.configurationContainer},{children:nt.exports.jsxs("div",Object.assign({className:r.container},{children:[nt.exports.jsx(ae,Object.assign({"data-test":"admin-center-provider-instructions",variant:"body2",color:"textPrimary"},{children:a.id?cvn.providerUpdateInstructions():cvn.providerInstructions()})),nt.exports.jsx(ae,Object.assign({className:r.sections,variant:"h6",color:"textPrimary"},{children:cvn.providerSectionBasic()})),nt.exports.jsx(PO,{required:!0,id:"name","data-test":"admin-center-input-name",autoComplete:"off",label:cvn.providerInputName(),variant:"outlined",className:r.textField,value:null==e?void 0:e.name,onChange:n("name"),error:""!==t.name,helperText:t.name}),nt.exports.jsx("div",{className:r.spacer}),nt.exports.jsx(PO,{id:"description","data-test":"admin-center-input-description",autoComplete:"off",label:cvn.providerInputDescription(),variant:"outlined",multiline:!0,rows:3,className:r.textField,value:null==e?void 0:e.description,onChange:n("description"),error:""!==t.description,helperText:t.description,inputProps:{maxLength:100}}),nt.exports.jsx("div",{className:r.spacer}),nt.exports.jsx(PO,{id:"websiteUrl","data-test":"admin-center-input-websiteUrl",autoComplete:"off",label:cvn.providerInputWebsiteUrl(),variant:"outlined",className:r.textField,value:null==e?void 0:e.websiteUrl,onChange:n("websiteUrl"),error:""!==t.websiteUrl,helperText:t.websiteUrl}),nt.exports.jsx(ce,{variant:"fullWidth"}),nt.exports.jsx(ae,Object.assign({className:r.sections,variant:"h6",color:"textPrimary"},{children:cvn.providerSectionClient()})),!a.id&&nt.exports.jsx(PO,{required:!0,id:"clientId","data-test":"admin-center-input-clientId",autoComplete:"off",label:cvn.providerInputClientId(),variant:"outlined",className:r.textField,value:null==e?void 0:e.clientId,onChange:n("clientId"),error:""!==t.clientId,helperText:t.clientId}),nt.exports.jsx("div",{className:r.spacer}),nt.exports.jsx(PO,{required:!0,id:"clientSecret","data-test":"admin-center-input-clientSecret",autoComplete:"off",label:cvn.providerInputClientSecret(),variant:"outlined",className:r.textField,value:null==e?void 0:e.clientSecret,onChange:n("clientSecret"),error:""!==t.clientSecret,helperText:t.clientSecret}),nt.exports.jsx("div",{className:r.spacer}),nt.exports.jsx(PO,{required:!0,id:"issuerUrl","data-test":"admin-center-input-issuerUrl",autoComplete:"off",label:cvn.providerInputIssuerUrl(),variant:"outlined",className:r.textField,value:null==e?void 0:e.issuerUrl,onChange:n("issuerUrl"),error:""!==t.issuerUrl,helperText:t.issuerUrl}),nt.exports.jsx("div",{className:r.spacer}),!a.id&&o.isSuperAdmin&&7682===i&&nt.exports.jsxs("div",Object.assign({className:r.isGlobalContainer},{children:[nt.exports.jsxs("div",{children:[nt.exports.jsx(ae,Object.assign({className:r.isGlobalTitle,variant:"h6"},{children:cvn.providerGlobalTitle()})),nt.exports.jsx(ae,Object.assign({className:r.isGlobalDescription,variant:"body2"},{children:cvn.providerGlobalDescription()}))]}),nt.exports.jsx(Zj,{"data-test":"admin-center-isglobal-switch",value:e.isGlobal,onChange:n("isGlobal")})]}))]}))}))},kvn=({handlePanelClose:e})=>{const t=svn()["classes"],n=de(),r=ue(wvn),i=De.exports.useRef(!1);De.exports.useEffect(()=>{i.current&&"idle"===r.status&&e(),i.current=!0},[r,e]);return nt.exports.jsxs("div",Object.assign({className:t.configurationContainer},{children:[nt.exports.jsx(ce,{variant:"fullWidth"}),"idle"===r.status?null:"pending"===r.status?nt.exports.jsxs("div",Object.assign({className:t.loadingCreate},{children:[nt.exports.jsx(ae,Object.assign({variant:"h2"},{children:cvn.providerCreationCreated()})),nt.exports.jsx(L4,{"data-test":"admin-center-provider-creation-loader"})]})):"failure"===r.status?nt.exports.jsxs("div",Object.assign({className:t.loadingCreate},{children:[nt.exports.jsx("img",{"data-test":"admin-center-error-image",alt:"error",className:t.errorImage,src:lX}),nt.exports.jsx(ae,Object.assign({variant:"body1"},{children:cvn.providerCreationFailed()})),nt.exports.jsx(ae,Object.assign({variant:"body1"},{children:r.errorMessage})),nt.exports.jsx(se,Object.assign({onClick:()=>n(xvn.uiState.startCreateNewProvider()),className:t.retryButton,variant:"outlined",color:"primary","data-test":"admin-center-retry-button"},{children:cvn.providerCreationRetryButton()}))]})):void 0]}))},Evn=({handlePanelClose:e})=>{const n=svn()["classes"],t=de(),r=ue(jvn);var i=ue(Ivn);const[o,a]=De.exports.useState(0),[s,l]=De.exports.useState(i),[c,u]=De.exports.useState({name:"",description:"",websiteUrl:"",clientId:"",clientSecret:"",issuerUrl:"",btnText:"",btnLogo:"",btnColor:"",btnTextColor:"",isGlobal:!1});De.exports.useEffect(()=>{t(xvn.uiState.updateOpenIdConnector(s))},[s,t]);const d=[cvn.loginStepsProviderConfiguration(),cvn.loginStepsButtonDesign()];var i=()=>{0===o&&!(()=>{let e=!0;var t={};return s.name||(t.name=cvn.loginStepsErrorRequired(),e=!1),s.clientId||r.id||(t.clientId=cvn.loginStepsErrorRequired(),e=!1),s.clientSecret||(t.clientSecret=cvn.loginStepsErrorRequired(),e=!1),s.issuerUrl||(t.issuerUrl=cvn.loginStepsErrorIssuerUrl(),e=!1),u(Object.assign(Object.assign({},c),t)),e})()||1===o&&!(()=>{let e=!0;var t={},n="^#[A-Fa-f0-9]{6}$";return s.btnText||(t.btnText=cvn.loginStepsErrorBtnText(),e=!1),s.btnColor&&s.btnColor.match(n)||(t.btnColor=cvn.loginStepsErrorBtnColor(),e=!1),s.btnTextColor&&s.btnTextColor.match(n)||(t.btnTextColor=cvn.loginStepsErrorBtnColor(),e=!1),u(Object.assign(Object.assign({},c),t)),e})()||(a(e=>e+1),o!==d.length-1)||t(xvn.uiState.startCreateNewProvider())},p=()=>{a(e=>e-1)};const g=De.exports.useCallback((t,n)=>{l(e=>Object.assign(Object.assign({},e),{[t]:n})),u(e=>Object.assign(Object.assign({},e),{[t]:""}))},[l,u]),f=t=>e=>{e="isGlobal"===t?e.target.checked:e.target.value;g(t,e)};return nt.exports.jsxs("div",Object.assign({className:n.root},{children:[nt.exports.jsx(Vj,Object.assign({className:n.stepper,activeStep:o},{children:d.map((e,t)=>{return nt.exports.jsx(dj,Object.assign({className:n.step},{},{children:nt.exports.jsx(kj,Object.assign({},{},{children:e}))}),t)})})),nt.exports.jsxs("div",{children:[o===d.length&&nt.exports.jsxs(nt.exports.Fragment,{children:[nt.exports.jsx(kvn,{handlePanelClose:e}),nt.exports.jsxs("div",Object.assign({className:n.buttonGroup},{children:[nt.exports.jsx(se,Object.assign({"data-test":"admin-center-steps-btn-back",disabled:0===o,onClick:p,className:n.button},{children:cvn.loginStepsBackButton()})),nt.exports.jsx(se,Object.assign({variant:"contained",color:"primary",onClick:e,className:n.button,"data-test":"admin-center-steps-btn-close"},{children:cvn.loginStepsCloseButton()}))]}))]}),o!==d.length&&nt.exports.jsxs("div",{children:[nt.exports.jsx(ce,{}),nt.exports.jsx("div",Object.assign({className:n.stepsContent},{children:function(e){switch(e){case 0:return nt.exports.jsx(Ovn,{errorForm:c,formData:s,handleChangeForm:f});case 1:return nt.exports.jsx(fvn,{errorForm:c,formData:s,handleChangeForm:f,onChangeFormItem:g});default:return}}(o)})),nt.exports.jsxs("div",Object.assign({className:n.buttonGroup},{children:[nt.exports.jsx(se,Object.assign({"data-test":"admin-center-steps-btn-back",disabled:0===o,onClick:p,className:n.button},{children:cvn.loginStepsBackButton()})),o===d.length-1?nt.exports.jsx(se,Object.assign({variant:"contained",color:"primary",onClick:i,className:n.button,"data-test":"admin-center-steps-btn-create"},{children:r.id?cvn.loginStepsUpdateButton():cvn.loginStepsCreateButton()})):nt.exports.jsx(se,Object.assign({variant:"contained",color:"primary",onClick:i,className:n.button,"data-test":"admin-center-steps-btn-next"},{children:cvn.loginStepsNextButton()}))]}))]})]})]}))},Tvn=()=>{var e=svn()["classes"];const t=de(),n=ue(jvn),r=ue(Avn);return nt.exports.jsxs("div",Object.assign({className:e.loadingCreate},{children:[nt.exports.jsx("img",{"data-test":"admin-center-error-image",alt:"error",className:e.errorImage,src:lX}),nt.exports.jsx(ae,Object.assign({variant:"body1"},{children:cvn.getProviderFailed()})),nt.exports.jsx(se,Object.assign({onClick:()=>t(xvn.uiState.init({connectorId:n.id,appId:r.id})),className:e.retryButton,variant:"outlined",color:"primary","data-test":"admin-center-retry-button"},{children:cvn.providerCreationRetryButton()}))]}))},Nvn=({dataId:e,appId:t,connectorId:n,panelRendered:r})=>{var i=svn()["classes"];const o=ue(Cvn),a=de(),s=ue(d$),{apiRoot:l,graphQLEndpoint:c,token:u}=ue(J$);De.exports.useEffect(()=>{"pending"===o&&l&&c&&u&&s&&a(xvn.uiState.init({connectorId:n,appId:t}))},[o,l,c,u,t,n,s,a]);var d=De.exports.useCallback(()=>{a(hQ(e))},[a,e]);return!(l&&c&&u&&r&&s&&null!==s&&void 0!==s&&s.roles&&hvn(s.roles).isAdmin&&"pending"!==o)?null:nt.exports.jsxs("div",Object.assign({id:e,role:"presentation","data-test":"admin-center-widget",className:Jhe(i.root)},{children:[nt.exports.jsx(uvn,{onPanelClose:d}),"failure"===o&&nt.exports.jsx(Tvn,{}),"idle"===o&&nt.exports.jsx(Evn,{handlePanelClose:d})]}))},Mvn="ADMIN_CENTER_OPEN_ID";Hse=qM({name:mvn,initialState:{status:"idle",providers:[],selectedProviderId:null},reducers:{fetchProvidersStart(e){e.status="pending"},fetchProvidersSuccess(e,t){e.status="success",e.providers=t.payload},fetchProvidersFailure(e){e.status="failure"},setCreatePanelSelected(e){e.selectedProviderId=""},openProviderDetailPanel(e,t){e.selectedProviderId=t.payload},closeProviderDetailPanel(e){e.selectedProviderId=null},deleteProviderStart(e,t){e.status="pending"},deleteProviderSuccess(e){e.status="success"},deleteProviderFailure(e){e.status="failure"}},extraReducers:e=>{e.addCase(hQ,(e,t)=>(t.payload===Mvn&&(e.selectedProviderId=null),e))}});const Pvn=Hse.actions;var Dvn=Hse.reducer;function Rvn(e,a,s,l){return new(s=s||Promise)(function(n,t){function r(e){try{o(l.next(e))}catch(e){t(e)}}function i(e){try{o(l.throw(e))}catch(e){t(e)}}function o(e){var t;e.done?n(e.value):((t=e.value)instanceof s?t:new s(function(e){e(t)})).then(r,i)}o((l=l.apply(e,a||[])).next())})}function Lvn(t,n){return Rvn(this,void 0,void 0,function*(){var e=yield A(Object.assign({query:`
|
|
2776
|
+
}`,variables:e},t))).data.jobs.records.filter(e=>null!==e.targetId)})}const i0n=ge.exports.memoize(function(n){return Fon(this,void 0,void 0,function*(){var{apiRoot:e,token:t}=n;return(yield qon({method:"GET",uri:"v1/admin/bearer",apiRoot:e,token:t,headers:{"Content-Type":"application/json"}})).data})});function*o0n(e){var t=yield T(asn);try{var n,r,i=yield E(i0n,t),o=ge.exports.find(i.groups,{permissions:{cms:{access:"true"}}});o&&(n=o["applicationId"],r=yield E(r0n,t,[n],e.payload),yield k(Can.fetchJobs.fetchJobsSucceeded(r)))}catch(e){console.log("Error fetching jobs list"),yield k(Can.fetchJobs.fetchJobsFailed())}}function*a0n(e){var t=yield T(asn);const n=yield T(x$),r=["download-file","download-file-container","54ed2111-4430-8032-2cdb-bb39bc5eab68","adf1bbd2-c4b3-328e-5213-84c5b400ba32"];var i=e=>-1===r.indexOf(e.id)&&"5e82fab8-c845-4f9c-b7fc-92dfb26e6a3e"!==e.categoryId,o=e=>!n||n<3||e.edgeVersion===n;try{var a=yield E(bhn,t),s={pull:a.pull.records.filter(i).filter(o),push:a.push.records.filter(i).filter(o)};yield k(Can.panelSelectImportSource.fetchEngineAdapterSucceeded({engineAdapters:s}))}catch(e){console.log("Error fetching Engine Adapters: ",e),yield k(Can.panelSelectImportSource.fetchEngineAdapterFailed())}}function*s0n(){yield $1([function*(){yield cP(Can.uiState.init.type,Ahn)}(),function*(){yield lP(Can.viewStreams.sourcesFetchStart.type,Ihn)}(),function*(){yield lP(Can.viewStreams.schedulesFetchStart.type,whn)}(),function*(){yield lP(Can.viewStreams.tdosFetchStart.type,jhn)}(),function*(){yield lP(Can.viewMyFiles.rootFolderFetchStart.type,Shn)}(),function*(){yield lP(Can.viewMyFiles.foldersOrFilesFetchStart.type,Ohn)}(),function*(){yield lP(Can.panelAddFolder.createNewFolderInCurrentParent.type,Thn)}(),function*(){yield lP("dataCenter/ADD_NEW_FOLDER",khn)}(),function*(){yield lP(Can.panelAddFolder.createNewFolderStart.type,Nhn)}(),function*(){yield lP(Can.panelEditFolder.editFolderStart.type,Mhn)}(),function*(){yield lP(Can.tdos.moveTdoStart.type,Uhn)}(),function*(){yield lP(Can.tdos.moveTdoNewFolder.type,Bhn)}(),function*(){yield lP(Can.tdos.deleteTdoStart.type,Dhn)}(),function*(){yield lP(Can.tdos.process.type,Rhn)}(),function*(){yield lP(Can.tdos.viewInfo.type,Lhn)}(),function*(){yield lP(Can.sources.editSource.type,Fhn)}(),function*(){yield lP(Can.schedules.editSchedule.type,Vhn)}(),function*(){yield lP(Can.viewMyFiles.panelResultSelected.type,Hhn)}(),function*(){yield lP(Ron.fetchJobsStart,o0n)}(),function*(){yield lP(Can.fileInfo.fetchFileInfoStart.type,zhn)}(),function*(){yield cP(uon.setSearchTerm.type,Zhn)}(),function*(){yield cP(uon.setSearchTerm.type,Ghn)}(),function*(){yield cP(uon.setSearchTerm.type,Jhn)}(),function*(){yield cP(uon.setSearchTerm.type,Khn)}(),function*(){yield cP(Son.sourcesSearchStart.type,t0n)}(),function*(){yield lP(Aon.filesSearchStart.type,$hn)}(),function*(){yield cP(uon.abortQueries.type,Yhn)}(),function*(){yield cP(Ton.getLibraryIdsStart,n0n)}(),function*(){yield lP(Can.panelSelectImportSource.fetchEngineAdapterStart,a0n)}(),man.watchCreate(),man.watchRead(),man.watchUpdate(),man.watchDelete(),xan.watchCreate(),xan.watchRead(),xan.watchUpdate(),xan.watchDelete()])}function l0n(){return{id:Kin,reducerMap:{[Kin]:Aan},sagas:[s0n],initialActions:[]}}const c0n=e=>{const t=de(),n=ue(Ean),{apiRoot:r,graphQLEndpoint:i,token:o}=ue(asn);return De.exports.useEffect(()=>{"pending"===n&&r&&i&&o&&(t(Can.uiState.init()),t(Ton.getLibraryIdsStart()))},[n,r,i,o,t]),r&&i&&o&&e.panelRendered?nt.exports.jsx(lhn,Object.assign({},e)):null};const u0n=()=>nt.exports.jsx(oe,{id:"os-data-center-browse.gDDtUB",defaultMessage:"New Folder",description:"Create a new folder in the currently selected folder"}),d0n=({entityId:e})=>{const t=de();return nt.exports.jsxs(nt.exports.Fragment,{children:[nt.exports.jsx(ae,Object.assign({id:"folders-files-panel-new-folder-action",style:lsn},{children:nt.exports.jsx(u0n,{})})),nt.exports.jsx(re,Object.assign({title:nt.exports.jsx(u0n,{})},{children:nt.exports.jsx(le,Object.assign({"aria-labelledby":"folders-files-panel-new-folder-action","data-testid":"folders-files-panel-new-folder-action",disableRipple:!0,onClick:()=>{e&&t(Can.panelAddFolder.openAddNewFolder(e))},size:"large"},{children:nt.exports.jsx(Qae,{})}))}))]})},p0n=()=>nt.exports.jsx(oe,{id:"os-data-center-browse.NiSAz+",defaultMessage:"Cancel",description:"Close Folder Panel"}),g0n=()=>nt.exports.jsx(oe,{id:"os-data-center-browse.v3CR56",defaultMessage:"Move to Home",description:"Select root directory"}),f0n=()=>nt.exports.jsx(oe,{id:"os-data-center-browse.J3etGv",defaultMessage:"Choose Location",description:"Choose folder"}),h0n=fe()(e=>({footer:{display:"flex",justifyContent:"end",margin:e.spacing(2)+" "+e.spacing(4)},cancelButton:{marginRight:e.spacing(2)}})),m0n=({onChooseLocation:e,onClosePanel:t,isFolderSelected:n,selectHomeText:r,selectItemText:i})=>{var o=h0n()["classes"],r=r||nt.exports.jsx(g0n,{}),i=i||nt.exports.jsx(f0n,{});return nt.exports.jsxs("div",Object.assign({className:o.footer},{children:[nt.exports.jsx(se,Object.assign({"data-testid":"folder-cancel-button",className:o.cancelButton,onClick:t},{children:nt.exports.jsx(p0n,{})})),nt.exports.jsx(se,Object.assign({"data-testid":"folder-location-select-button",onClick:e,variant:"contained",color:"primary",type:"submit"},{children:n?i:r}))]}))},v0n=fe()(e=>({panel:{backgroundColor:e.palette.background.paper,boxShadow:"0px 0px 12px rgba(0, 0, 0, 0.25)",height:"100%"},wrapper:{height:"calc(100% - 50px)"}})),y0n=({hideNewFolderButton:e,panelRendered:t,viewType:n,hidePanel:r,tdoId:i,onSelect:o,selectHomeText:a,selectItemText:s})=>{const l=de(),c=ue(Ean),u=ue(kan),{apiRoot:d,graphQLEndpoint:p,token:g}=ue(asn),f=ue(zan);var h=ue(Ban),m=ue(Uan);const v=ue(Tan);var y=ue(esn);const x=ue(Zan),b=ue(Pan);var C=v0n()["classes"];if(De.exports.useEffect(()=>{v!==n&&(l(Can.uiState.setPanelView({view:_in.folders,panelMode:!0})),b)&&l(Can.uiState.toggleFluffyView())},[l,n,v]),De.exports.useEffect(()=>{const e=v;return()=>{l(Can.uiState.setPanelView({view:e,panelMode:!1}))}},[]),De.exports.useEffect(()=>{f||l(Can.viewMyFiles.rootFolderFetchStart())},[f,l]),De.exports.useEffect(()=>{"pending"===c&&d&&p&&g&&l(Can.uiState.init())},[c,d,p,g,l]),!f)return null;if(!(d&&p&&g&&t))return null;t=m.isRoot?f:m.id||"";const A=()=>{l(Can.uiState.setPanelView({view:_in.myFiles,panelMode:!1}))};m=!!x;const I=()=>{A(),r&&r()};return nt.exports.jsxs(nt.exports.Fragment,{children:[nt.exports.jsxs("div",Object.assign({className:C.wrapper},{children:[nt.exports.jsx(fln,{breadcrumbs:nt.exports.jsx(Cln,{pathList:h,goToCrumbActionCreator:Can.viewMyFiles.goToMyFilesBreadCrumb}),actions:e?nt.exports.jsx("div",{}):nt.exports.jsx(d0n,{entityId:t}),table:nt.exports.jsx(wgn,{parentFolderId:t})}),nt.exports.jsx(rhn,{className:C.panel,fullScreen:!1})]})),!(null!=y&&y.parentFolderId)&&nt.exports.jsx(m0n,{onChooseLocation:()=>{var e;o?o(x||f):i?(e=u[i],l(Can.tdos.moveTdoNewFolder({tdo:e,selectedFolderId:x})),I()):(A(),l(Can.viewMyFiles.panelResultSelected(x||f)))},onClosePanel:I,isFolderSelected:m,selectHomeText:a,selectItemText:s})]})};const x0n=fe()((e,{height:t})=>({header:{alignItems:"center",borderBottom:"0.5px solid "+e.palette.divider,display:"flex",justifyContent:"space-between",height:t,padding:e.spacing(2,2,2,6)},headerNoBorder:{alignItems:"center",borderBottom:"0.5px solid transparent",display:"flex",justifyContent:"space-between",height:t,padding:e.spacing(0,0,0,6)},marginRight:{marginRight:e.spacing(2)},navigationToggle:{marginRight:e.spacing(1)},headerActionContainer:{alignItems:"center",display:"flex",flexGrow:1,height:"100%",justifyContent:"flex-end"},verticalDivider:{borderRight:".5px solid "+e.palette.divider,height:"70%",margin:"0 "+e.spacing(1)},title:{userSelect:"none",fontStyle:"normal",fontSize:"18px",lineHeight:e.spacing(5),letterSpacing:"0.25px",textTransform:"uppercase",color:e.palette.text.secondary}})),b0n={panelHeaderTitle:()=>nt.exports.jsx(oe,{id:"os-data-center-browse.media-details-panel.title",defaultMessage:"Data Detail",description:"Panel header for the Data Center Media Details Panel"}),iconProcessAi:()=>nt.exports.jsx(oe,{id:"os-data-center-browse.media-details-panel.process-ai",defaultMessage:"Run Cognition on this file",description:"Open Process Ai icon for the Data Center Media Details Panel"}),iconDownload:()=>nt.exports.jsx(oe,{id:"os-data-center-browse.media-details-panel.download",defaultMessage:"Download",description:"Download icon for the Data Center Media Details Panel"}),iconInfo:()=>nt.exports.jsx(oe,{id:"os-data-center-browse.media-details-panel.info",defaultMessage:"View file info",description:"View info icon for the Data Center Media Details Panel"}),iconEnterFullScreen:()=>nt.exports.jsx(oe,{id:"os-data-center-browse.media-details-panel.fullscreen-go",defaultMessage:"Enter Fullscreen",description:"Enter full screen icon for the Data Center Media Details Panel"}),iconLeaveFullScreen:()=>nt.exports.jsx(oe,{id:"os-data-center-browse.media-details-panel.fullscreen-leave",defaultMessage:"Leave Fullscreen",description:"Leave full screen icon for the Data Center Media Details Panel"}),closePanel:()=>nt.exports.jsx(oe,{id:"os-data-center-browse.media-details-panel.close-panel",defaultMessage:"Close",description:"Close panel icon for the Data Center Media Details Panel"})},C0n=({height:e,onPanelClose:t,onProcessAi:n,onFullScreenToggle:r,onDownloadAsset:i,onViewInfo:o,isFullScreen:a,entityPermissions:s,isOLPEnabled:l,isPermissionsLoading:c})=>{e=x0n({height:e}).classes;const u=e=>!l||!!s&&("failure"===s.status||s&&"success"===s.status&&s.permissions&&s.permissions[e]),d=e=>!(!l||!c&&u(e));var p=(e,t)=>l?c?nt.exports.jsx(nt.exports.Fragment,{children:csn.checkingPermissionsTooltip()}):d(e)?nt.exports.jsx(nt.exports.Fragment,{children:csn.noPermissionsTooltip()}):nt.exports.jsx(nt.exports.Fragment,{children:t}):nt.exports.jsx(nt.exports.Fragment,{children:t});return nt.exports.jsxs("header",Object.assign({className:e.header,"data-testid":"dc-media-details-iframe-header"},{children:[nt.exports.jsx(ae,Object.assign({variant:"h1","data-testid":"dc-media-details-iframe-title",className:e.title},{children:b0n.panelHeaderTitle()})),nt.exports.jsxs("div",Object.assign({className:e.headerActionContainer},{children:[nt.exports.jsx(ae,Object.assign({style:lsn,id:"dc-mdp-iframe-process-file"},{children:b0n.iconProcessAi()})),nt.exports.jsx(re,Object.assign({title:p(zLe.Update,b0n.iconProcessAi())},{children:nt.exports.jsx("span",{children:nt.exports.jsx(le,Object.assign({disabled:d(zLe.Update),onClick:n,"aria-labelledby":"dc-mdp-iframe-process-file","data-test":"dc-mdp-iframe-process-file",size:"large"},{children:nt.exports.jsx(Ise,{})}))})})),nt.exports.jsx(ae,Object.assign({style:lsn,id:"dc-mdp-iframe-download"},{children:b0n.iconDownload()})),nt.exports.jsx(re,Object.assign({title:p(zLe.Update,b0n.iconDownload())},{children:nt.exports.jsx("span",{children:nt.exports.jsx(le,Object.assign({disabled:d(zLe.Update),onClick:i,"aria-labelledby":"dc-mdp-iframe-download","data-test":"dc-mdp-iframe-download",size:"large"},{children:nt.exports.jsx(Noe,{})}))})})),nt.exports.jsx(ae,Object.assign({style:lsn,id:"dc-mdp-iframe-view-file-info"},{children:b0n.iconInfo()})),nt.exports.jsx(re,Object.assign({title:p(zLe.Update,b0n.iconInfo())},{children:nt.exports.jsx("span",{children:nt.exports.jsx(le,Object.assign({disabled:d(zLe.Read),onClick:o,"aria-labelledby":"dc-mdp-iframe-view-file-info","data-test":"dc-mdp-iframe-file-info-button",size:"large"},{children:nt.exports.jsx(Eae,{})}))})})),nt.exports.jsx("div",{className:e.verticalDivider}),nt.exports.jsx(ae,Object.assign({style:lsn,id:"dc-mdp-iframe-fullscreen"},{children:a?b0n.iconLeaveFullScreen():b0n.iconEnterFullScreen()})),nt.exports.jsx(re,Object.assign({title:a?b0n.iconLeaveFullScreen():b0n.iconEnterFullScreen()},{children:nt.exports.jsx(le,Object.assign({onClick:r,"aria-labelledby":"dc-mdp-iframe-fullscreen","data-test":"dc-mdp-iframe-fullscreen-toggle",size:"large"},{children:a?nt.exports.jsx(lae,{}):nt.exports.jsx(sae,{})}))})),nt.exports.jsx(ae,Object.assign({style:lsn,id:"dc-media-details-iframe-close-panel"},{children:b0n.closePanel()})),nt.exports.jsx(re,Object.assign({title:b0n.closePanel()},{children:nt.exports.jsx(le,Object.assign({onClick:t,"aria-labelledby":"dc-media-details-iframe-close-panel","data-testid":"dc-media-details-iframe-close-panel",size:"large"},{children:nt.exports.jsx(vae,{})}))}))]}))]}))},A0n=fe()(e=>({container:{width:"100%",height:"100%",display:"flex",position:"relative"},iframe:{width:"100%",height:"100%",border:"none",outline:"none",padding:"0px"},loader:{position:"absolute",top:0,left:0,width:"100%",height:"100%",background:"#FFF",display:"flex",justifyContent:"center",alignItems:"center"},errorMessageContainer:{width:"100%",height:"100%",background:"#FFF",flexDirection:"column",display:"flex",justifyContent:"center",alignItems:"center"},errorMessage:{marginTop:"20px"}})),I0n=({src:n,name:e,title:t,parentOnLoadMessage:r,isOLPEnabled:i=!1,permissions:o=void 0,passAuthToken:a=!1})=>{var s=A0n()["classes"];const l=ue(u$),[c,u]=De.exports.useState(!0),[d,p]=De.exports.useState(!1);var g=De.exports.useRef(null);De.exports.useEffect(()=>{var e;e=f(),Fon(void 0,void 0,void 0,function*(){try{400<=(yield fetch(e,{method:"GET",credentials:"include"})).status?p(!0):p(!1)}catch(e){p(!0)}}).catch(e=>{console.log(e)});const t=setTimeout(()=>{r||u(!1)},5e3);return()=>clearTimeout(t)},[n]),De.exports.useEffect(()=>{const e=e=>{e=e.data;e&&r&&e.message===r&&u(!1)};return window.addEventListener("message",e,!1),()=>window.removeEventListener("message",e)},[]);const f=()=>{const t=new URL(n);if(a&&t.searchParams.set("authToken",l.sessionToken),!1!==i&&o){["create","read","update","delete"].forEach(e=>{!o.permissions||o.permissions[e]||t.searchParams.set(e+"Disabled","true")});for(const e in o.permissions)!1===o.permissions[e]&&t.searchParams.set(e+"Disabled","true")}return t.toString()};return nt.exports.jsxs("div",Object.assign({className:s.container},{children:[c&&!d&&nt.exports.jsx("div",Object.assign({"data-test":"data-center-iframe-loader",className:s.loader},{children:nt.exports.jsx(L4,{size:50,disableShrink:!0})})),d?nt.exports.jsxs("div",Object.assign({className:s.errorMessageContainer},{children:[nt.exports.jsx("img",{"data-test":"data-center-iframe-error-image",alt:"error",src:lX}),nt.exports.jsx(ae,Object.assign({className:s.errorMessage,variant:"body1"},{children:nt.exports.jsx(oe,{id:"os-data-center-browse.iframe.errorMessage",defaultMessage:"Service not available. Please contact support.",description:"Error message for iframe not loading"})}))]})):nt.exports.jsx(nt.exports.Fragment,{children:(!1===i||!(!0!==i||!o)&&"pending"!==o.status)&&nt.exports.jsx("iframe",{id:"DataCenterIframe",ref:g,name:e,title:t,className:s.iframe,src:f()})})]}))},w0n=fe()(e=>({container:{width:"100%",height:"100%",display:"flex",flexDirection:"column"}})),j0n=(e,t,n)=>{var r=document.createElement("a");r.href=e+"/media-streamer/download/tdo/"+t,r.download=n,r.click()},S0n=({entityId:r,iframeUrl:e,fileName:t,isPanelFullScreen:n})=>{const i="DATA_CENTER_MDP_IFRAME_PANEL",o=de();var a=w0n()["classes"];const[s,l]=De.exports.useState(!1);var c=ue(Nan),u=ue(Man);const d=ue(J$);var p=ue(dFe.selectPermissionsByEntity(qLe.TDO,r)),g=ue(y$),f=ue(E$),e=e||f.cmsAppUrl+"/embed/#/media-details/"+r,f=null==(f=ue(dQ(i)))?void 0:f.panelConfig,h=!(!g||p&&"pending"!==p.status&&"idle"!==p.status);const m=u||c||n,v=f&&Object.keys(f).includes("marginTop")?f.marginTop:m?0:55,y=f&&Object.keys(f).includes("marginStart")?f.marginStart:m?0:80;De.exports.useEffect(()=>{l(!1)},[]);return nt.exports.jsxs(H0e,Object.assign({preventRerender:!0,containerClassName:a.container,fullScreen:u,dimmed:s,dataTest:"dc-media-details-panel-iframe"},{children:[nt.exports.jsx(C0n,{height:64,onProcessAi:()=>{var e={name:"DATA_CENTER_PROCESS_AI",config:{name:"DATA CENTER PROCESS AI",tdoId:r,parentPanelId:i}},t={type:"APP_BAR_PANEL_TEMPLATE",marginTop:v,marginStart:y,size:"small",zIndex:m?1013:1003,parentPanelId:i,dimmed:0,dimmedStatus:"dimParent"};o(gQ({panelId:"DATA_CENTER_PROCESS_AI",microFrontend:e,panelConfig:t}))},onDownloadAsset:()=>{j0n(d.apiRoot,r,t)},onViewInfo:()=>{var e="DATA_CENTER_FILE_INFO_PANEL",t={name:e,config:{name:"DATA CENTER FILE INFO PANEL",entityId:r,parentPanelId:i}},n={type:"APP_BAR_PANEL_TEMPLATE",marginTop:v,marginStart:y,size:"small",zIndex:m?1013:1002,parentPanelId:i,dimmed:0,dimmedStatus:"dimParent"};o(gQ({panelId:e,microFrontend:t,panelConfig:n}))},onFullScreenToggle:()=>{o(Can.uiState.toggleMdpFullScreen())},onPanelClose:()=>o(mQ(i)),isFullScreen:u,entityPermissions:p,isOLPEnabled:g,isPermissionsLoading:h}),nt.exports.jsx(I0n,{isOLPEnabled:g,permissions:p,src:e,name:"media-details-iframe-embed",title:"media-details-iframe-embed",passAuthToken:!0})]}))};const O0n=fe()(e=>({container:{width:"100%",height:"100%",display:"flex",flexDirection:"column"},content:{padding:"30px"}})),k0n=fe()((e,{height:t})=>({header:{alignItems:"center",borderBottom:"0.5px solid "+e.palette.divider,display:"flex",justifyContent:"space-between",height:t,padding:e.spacing(2,2,2,6),backgroundColor:"#FAFAFA"},headerNoBorder:{alignItems:"center",borderBottom:"0.5px solid transparent",display:"flex",justifyContent:"space-between",height:t,padding:e.spacing(0,0,0,6)},marginRight:{marginRight:e.spacing(2)},navigationToggle:{marginRight:e.spacing(1)},headerActionContainer:{alignItems:"center",display:"flex",flexGrow:1,height:"100%",justifyContent:"flex-end"},verticalDivider:{borderRight:".5px solid "+e.palette.divider,height:"70%",margin:"0 "+e.spacing(1)},title:{userSelect:"none",fontStyle:"normal",fontSize:"18px",lineHeight:e.spacing(5),letterSpacing:"0.25px",textTransform:"uppercase",color:e.palette.text.secondary}})),E0n={panelHeaderTitle:()=>nt.exports.jsx(oe,{id:"os-data-center-browse.file-info-panel.title",defaultMessage:"File Info",description:"Panel header for the Data Center File Info Panel"}),closePanel:()=>nt.exports.jsx(oe,{id:"os-data-center-browse.file-info-panel.close-panel",defaultMessage:"Close",description:"Close panel icon for the Data Center Media Details Panel"}),errorStateTitle:nt.exports.jsx(oe,{id:"os-data-center-browse.file-info-panel.error-not-found",defaultMessage:"Media not found",description:"Data Center File Info Panel Error media not found message"}),errorStateSubtitle:nt.exports.jsx(oe,{id:"os-data-center-browse.file-info-panel.error-not-found-subtitle",defaultMessage:"We couldn't find this file or you may not have permission to access this file.",description:"Data Center File Info Panel Error media not found message"})};Yce={fileInfo:nt.exports.jsx(oe,{id:"os-data-center-browse.file-info-panel.tab-header.file-info",defaultMessage:"File Info",description:"File Info Panel Tab Header for File Info"}),contentTemplates:nt.exports.jsx(oe,{id:"os-data-center-browse.file-info-panel.tab-header.content-templates",defaultMessage:"Content Templates",description:"File Info Panel Tab Header for Content Templates"}),activity:nt.exports.jsx(oe,{id:"os-data-center-browse.file-info-panel.tab-header.activity",defaultMessage:"Activity",description:"File Info Panel Tab Header for Activity"})};const T0n={editAttributes:nt.exports.jsx(oe,{id:"os-data-center-browse.file-info-panel.header-menu.edit-attributes",defaultMessage:"Edit Attributes",description:"File Info Panel, header menu item for edit attributes panel"}),moveTo:nt.exports.jsx(oe,{id:"os-data-center-browse.file-info-panel.header-menu.move-to",defaultMessage:"Move to...",description:"File Info Panel, header menu item for move item panel"}),process:nt.exports.jsx(oe,{id:"os-data-center-browse.file-info-panel.header-menu.process",defaultMessage:"Process with AI",description:"File Info Panel, header menu item for process with AI"}),download:nt.exports.jsx(oe,{id:"os-data-center-browse.file-info-panel.header-menu.download",defaultMessage:"Download",description:"File Info Panel, header menu item for download"}),delete:nt.exports.jsx(oe,{id:"os-data-center-browse.file-info-panel.header-menu.delete",defaultMessage:"Delete",description:"File Info Panel, header menu item for delete item"})},N0n={id:nt.exports.jsx(oe,{id:"os-data-center-browse.file-info-panel.file-info-data-type.id",defaultMessage:"TDO Id",description:"File Info Panel, File info data type TDO ID"}),name:nt.exports.jsx(oe,{id:"os-data-center-browse.file-info-panel.file-info-data-type.name",defaultMessage:"Name",description:"File Info Panel, File info data type name"}),location:nt.exports.jsx(oe,{id:"os-data-center-browse.file-info-panel.file-info-data-type.location",defaultMessage:"Location",description:"File Info Panel, File info data type location"}),url:nt.exports.jsx(oe,{id:"os-data-center-browse.file-info-panel.file-info-data-type.url",defaultMessage:"URL",description:"File Info Panel, File info data type url"}),fileType:nt.exports.jsx(oe,{id:"os-data-center-browse.file-info-panel.file-info-data-type.file-type",defaultMessage:"File Type",description:"File Info Panel, File info data type file type"}),fileSize:nt.exports.jsx(oe,{id:"os-data-center-browse.file-info-panel.file-info-data-type.file-size",defaultMessage:"File Size",description:"File Info Panel, File info data type file size"}),duration:nt.exports.jsx(oe,{id:"os-data-center-browse.file-info-panel.file-info-data-type.duration",defaultMessage:"Duration",description:"File Info Panel, File info data type duration"}),dateCreated:nt.exports.jsx(oe,{id:"os-data-center-browse.file-info-panel.file-info-data-type.date-created",defaultMessage:"Date Created",description:"File Info Panel, File info data type date created"}),dateUploaded:nt.exports.jsx(oe,{id:"os-data-center-browse.file-info-panel.file-info-data-type.date-uploaded",defaultMessage:"Date Uploaded",description:"File Info Panel, File info data type date uploaded"}),fileStatus:nt.exports.jsx(oe,{id:"os-data-center-browse.file-info-panel.file-info-data-type.file-status",defaultMessage:"Processing Status",description:"File Info Panel, File info data type file status"}),tags:nt.exports.jsx(oe,{id:"os-data-center-browse.file-info-panel.file-info-data-type.tags",defaultMessage:"Tags",description:"File Info Panel, File info data type tags"}),copyTdo:nt.exports.jsx(oe,{id:"os-data-center-browse.file-info-panel.file-info-data-type.copy.tdo",defaultMessage:"Copy TDO ID ",description:"File Info Panel, Copy Tdo id - tooltip"}),copied:nt.exports.jsx(oe,{id:"os-data-center-browse.file-info-panel.file-info-data-type.copied.tdo",defaultMessage:"Copied!",description:"File Info Panel, Copied - tooltip"}),aiEngines:nt.exports.jsx(oe,{id:"os-data-center-browse.file-info-panel.file-info-data-type.ai.engines",defaultMessage:"AI Engines",description:"File Info Panel, File Info AI Engines"}),otherEngines:nt.exports.jsx(oe,{id:"os-data-center-browse.file-info-panel.file-info-data-type.other.engines",defaultMessage:"Other Engines",description:"File Info Panel, File Info Other Engines"})},M0n=De.exports.createContext(void 0),P0n=M0n.Provider,D0n=fe()(e=>({menu:{width:e.spacing(34),padding:e.spacing(1.5)},menuItem:{borderRadius:4,padding:e.spacing(1),"& > svg":{marginRight:e.spacing(2)},textTransform:"none"},divider:{marginBottom:e.spacing(1.5),marginTop:e.spacing(1.5)}})),R0n=({id:e,anchorEl:t,anchorOriginX:n="left",anchorOriginY:r="bottom",transformOriginX:i="right",transformOriginY:o="top",entityId:a,disabled:s=!1,onClose:l,children:c})=>{var u=D0n()["classes"],d=Boolean(t),p=XLe(w.Tdos),p=ue(dFe.selectPermissionsByEntity(p,a)),a=a&&(!p||"pending"===p.status||"idle"===p.status);return nt.exports.jsx(P0n,Object.assign({value:{permissions:p,isLoadingPermissions:!!a,disabled:s}},{children:nt.exports.jsx($w,Object.assign({id:e,anchorEl:t,open:d,className:u.menu,onClose:l,anchorOrigin:{vertical:r,horizontal:n},transformOrigin:{vertical:o,horizontal:i}},{children:c}))}))},L0n=({id:e,permissionRequired:t,visible:n=!0,Icon:r,action:i,text:o,iconSize:a="small"})=>{var s=D0n()["classes"],{permissions:l,isLoadingPermissions:c,disabled:u}=(()=>{var e=De.exports.useContext(M0n);if(e)return e;throw new Error("useSecureMenuContext must be used within the SecureMenuProvider")})(),t=!rFe(l,t||zLe.Read)||c||u;return n&&rFe(l,zLe.Read)?nt.exports.jsxs(i8,Object.assign({id:e,disabled:t,onClick:i,className:s.menuItem},{children:[r&&nt.exports.jsx(r,{fontSize:a}),o]})):null},F0n=({visible:e=!0})=>{var t=D0n()["classes"];return e?nt.exports.jsx(ce,{className:t.divider}):null},V0n=({entityId:o,onDownloadAsset:t,onEditAttributes:n,onDeleteAsset:r,onProcessAi:i,isError:e,isLoading:a})=>{var s=yln[w.Tdos];const[l,c]=De.exports.useState(null),u=de();e=e||a;const d=()=>{c(null)};const p=(e,t)=>{t&&t(),d()};return nt.exports.jsxs(nt.exports.Fragment,{children:[nt.exports.jsx(le,Object.assign({onClick:e=>{c(e.currentTarget),e.stopPropagation()},"aria-labelledby":"dc-file-info-panel-header-menu","data-testid":"dc-file-info-panel-header-menu",size:"large"},{children:nt.exports.jsx(RMe,{})})),nt.exports.jsxs(R0n,Object.assign({id:"dc-file-info-panel-header-context-menu",entityId:o,anchorEl:l,anchorOriginX:"left",anchorOriginY:"bottom",transformOriginX:"right",transformOriginY:"top",disabled:e,onClose:d},{children:[nt.exports.jsx(L0n,{id:"dc-file-info-panel-header-menu-context-menu-option-edit-attributes",text:T0n.editAttributes,visible:!1,permissionRequired:zLe.Update,Icon:rue,iconSize:"small",action:e=>p(0,n)}),nt.exports.jsx(nt.exports.Fragment,{children:[...s.actions].filter(({testLabel:e})=>"view-file-info"!==e&&"process-tdo"!=e).map(({name:e,action:t,Icon:n,permissionRequired:r},i)=>nt.exports.jsx(L0n,{text:e(),Icon:n,action:e=>{u(t(o)),d(),e.stopPropagation()},id:"dc-file-info-panel-header-menu-context-menu-option",permissionRequired:r},i))}),nt.exports.jsx(L0n,{id:"dc-file-info-panel-header-menu-context-menu-option-process-with-ai",text:T0n.process,permissionRequired:zLe.Update,Icon:Ise,iconSize:"small",action:e=>p(0,i)}),nt.exports.jsx(F0n,{}),nt.exports.jsx(L0n,{id:"dc-file-info-panel-header-menu-context-menu-option-download",text:T0n.download,permissionRequired:zLe.Update,Icon:Noe,iconSize:"small",action:e=>p(0,t)}),nt.exports.jsx(L0n,{id:"dc-file-info-panel-header-menu-context-menu-option-delete",text:T0n.delete,visible:!1,permissionRequired:zLe.Delete,Icon:Soe,iconSize:"small",action:e=>p(0,r)})]}))]})},H0n=({height:e,onPanelClose:t,entityId:n,onDownloadAsset:r,onEditAttributes:i,onMoveAsset:o,onDeleteAsset:a,onProcessAi:s,isError:l,isLoading:c,isBetaFeaturesEnabled:u})=>{e=k0n({height:e}).classes;return nt.exports.jsxs("header",Object.assign({className:e.header,"data-testid":"dc-file-info-panel-header"},{children:[nt.exports.jsx(ae,Object.assign({variant:"h1","data-testid":"dc-file-info-panel-title",className:e.title},{children:E0n.panelHeaderTitle()})),nt.exports.jsxs("div",Object.assign({className:e.headerActionContainer},{children:[nt.exports.jsx(ae,Object.assign({style:lsn,id:"dc-file-info-panel-close-panel"},{children:E0n.closePanel()})),nt.exports.jsx(V0n,{entityId:n,onDownloadAsset:r,onEditAttributes:i,onDeleteAsset:a,onProcessAi:s,onMoveAsset:o,isError:l,isLoading:c,isBetaFeaturesEnabled:u}),nt.exports.jsx(re,Object.assign({title:E0n.closePanel()},{children:nt.exports.jsx(le,Object.assign({onClick:t,"aria-labelledby":"dc-file-info-panel-close-panel","data-testid":"dc-file-info-panel-close-panel",size:"large"},{children:nt.exports.jsx(vae,{})}))}))]}))]}))},U0n=[{label:Yce.fileInfo,disabled:!1,id:"File Info"}],B0n=[{label:Yce.contentTemplates,disabled:!1,id:"Content Templates"},{label:Yce.activity,disabled:!1,id:"Activity"}],z0n=fe()(e=>({container:{borderBottom:"1px solid #D5DFE9",padding:"10px 25px 0px"},tabWrapper:{"& p":{margin:0}}})),q0n=c(kO)({borderBottom:"none",minHeight:"30px","& .Sdk-MuiTabs-flexContainer":{justifyContent:"space-between"},"& .Sdk-MuiTabs-indicator":{backgroundColor:"#000"}}),_0n=c(Qj)({color:"#5C6269",fontWeight:400,minHeight:"40px",padding:0,"&.Mui-selected":{color:"#2A323C"}}),W0n=({onChange:e,selectedTabId:t,isBetaFeaturesEnabled:n})=>{const r=z0n()["classes"];n=n?[...U0n,...B0n]:U0n;return 1<n.length?nt.exports.jsx("div",Object.assign({className:r.container},{children:nt.exports.jsx(q0n,Object.assign({value:t,onChange:e,variant:"standard",centered:!0},{children:n.map(e=>nt.exports.jsx(_0n,{className:r.tabWrapper,label:e.label},e.id))}))})):null},Z0n=({tdoId:t})=>{const[e,n]=De.exports.useState(!1);var r={marginLeft:"5px",fontSize:"18px!important",verticalAlign:"middle","&:active":{color:ob().palette.action.active},"&:hover":{cursor:"pointer"}};return nt.exports.jsxs("div",Object.assign({style:{display:"flex",alignItems:"center"}},{children:[nt.exports.jsx(re,Object.assign({title:t},{children:nt.exports.jsx(ae,Object.assign({style:{maxWidth:"90px"},"data-test":"data-detail-tdo-id",noWrap:!0,variant:"body2"},{children:t}))})),nt.exports.jsx(re,Object.assign({title:e?N0n.copied:N0n.copyTdo,disableInteractive:!0},{children:nt.exports.jsxs("span",Object.assign({onMouseLeave:()=>setTimeout(()=>n(!1),300),onClick:e=>{n(!0),e.preventDefault(),e.stopPropagation(),navigator.clipboard.writeText(t).catch(e=>{console.error("Error writing text to clipboard: ",e)})}},{children:[!e&&nt.exports.jsx(ime,{sx:r}),e&&nt.exports.jsx(tme,{sx:r})]}))}))]}))},G0n=e=>{var[t,n,r]=e.toLocaleDateString("en-us").split("/"),[e,i]=e.toLocaleTimeString("en-us").split(" ");return`${t}/${n}/${r.slice(2)} ${e.slice(0,-3)} `+i},J0n=(e,t)=>{for(var n=String(e).split("");n.length<t;)n.unshift("0");return n.join("")},K0n=({status:e})=>{var t=fe()(e=>({statusContainer:{display:"flex",width:"fit-content",borderRadius:"3px",fontWeight:800,fontSize:"11px",padding:"0px 15px",pointerEvents:"none",userSelect:"none",marginTop:"3px",transform:"scale(0.85)",transformOrigin:"left"},"status-NEW":{backgroundColor:"#B9E0BB",color:"#16961B"},"status-COMPLETE":{color:"#1B5E20",background:"rgba(27, 94, 32, 0.2)"},"status-QUEUED":{color:"rgba(74, 20, 140, 1)",background:"rgba(74, 20, 140, 0.2)"},"status-PENDING":{backgroundColor:"#FFE49D",color:"#CA9200"},"status-RUNNING":{color:"rgba(13, 98, 210, 1)",background:"rgba(13, 98, 210, 0.2)"},"status-ERROR":{color:"rgba(183, 28, 28, 1)",background:"rgba(183, 28, 28, 0.2)"}}))()["classes"],n=t["status-"+e];return nt.exports.jsx("div",Object.assign({"data-test":"dc-file-info-panel-status-badge",className:t.statusContainer+" "+n},{children:e.toUpperCase()}))},Y0n=({folderName:e})=>{var t=fe()(e=>({container:{display:"flex",alignItems:"center",justifyContent:"flex-start",marginTop:"5px"},folderLabel:{marginLeft:"5px"}}))()["classes"];return nt.exports.jsxs("div",Object.assign({className:t.container},{children:[nt.exports.jsx(nae,{sx:{width:18,height:18}})," ",nt.exports.jsx(kfn,Object.assign({title:e,maxCharLength:14},{children:nt.exports.jsx(ae,Object.assign({"data-test":"dc-file-info-panel-item-location",className:t.folderLabel,noWrap:!0,variant:"body2"},{children:e}))}))]}))},Q0n=({label:e,value:t})=>{var n=fe()(e=>({container:{display:"flex",flexDirection:"column",width:"40%",marginBottom:"20px"},label:{},value:{}}))()["classes"];let r=t;return"string"==typeof t&&(r=nt.exports.jsx(kfn,Object.assign({title:t,maxCharLength:18},{children:nt.exports.jsx(ae,Object.assign({"data-test":"dc-file-info-panel-item-"+e,noWrap:!0,variant:"body2"},{children:t}))}))),null===t&&(r=nt.exports.jsx(ae,{children:"N/A"})),nt.exports.jsxs("div",Object.assign({className:n.container},{children:[nt.exports.jsx(ae,Object.assign({"data-test":"dc-file-info-panel-"+e,className:n.label,variant:"caption",sx:{fontWeight:"400",color:"#5C6269"}},{children:N0n[e]})),nt.exports.jsx("span",Object.assign({className:n.value},{children:r}))]}))},X0n=({tags:e})=>{const n=fe()(e=>({container:{display:"flex",flexDirection:"column",width:"100%"},tagList:{display:"flex",flexWrap:"wrap",marginTop:"8px"},tag:{border:"0.5px solid #D5DFE9",padding:"0px 10px",borderRadius:"20px",display:"flex",marginRight:"10px",marginBottom:"10px"}}))()["classes"];return nt.exports.jsxs("div",Object.assign({className:n.container},{children:[nt.exports.jsx(ae,Object.assign({"data-test":"dc-file-info-panel-tags",variant:"caption",sx:{fontWeight:"400",color:"#5C6269"}},{children:N0n.tags})),nt.exports.jsx("div",Object.assign({className:n.tagList},{children:e.map((e,t)=>nt.exports.jsx(ae,Object.assign({"data-test":"dc-file-info-panel-tag-item",className:n.tag,noWrap:!0,variant:"body2"},{children:e}),t))}))]}))},$0n=({fileInfo:e})=>{const t=fe()(e=>({container:{display:"flex",justifyContent:"space-between",flexWrap:"wrap"},engineIcons:{display:"flex",flexDirection:"column",width:"40%",marginBottom:"20px"}}))()["classes"],o=(n=e)?((i={}).name=(null==(r=null==(r=n.details)?void 0:r.veritoneFile)?void 0:r.filename)||(null==(r=null==(r=n.details)?void 0:r.veritoneFile)?void 0:r.fileName)||(null==(r=n.details)?void 0:r.name)||n.name||n.id,!n.folders||n.folders.length<1?i.location="Home":(n.folders[0].folderPath.length<=1&&(i.location="Home"),i.location=n.folders[0].folderPath[0].name),n.id&&(i.id=n.id),null!=(r=n.primaryAsset)&&r.signedUri&&(i.url=n.primaryAsset.signedUri),(null!=(r=null==(r=n.details)?void 0:r.veritoneFile)&&r.mimetype||null!=(r=n.primaryAsset)&&r.contentType)&&(i.fileType=(null==(r=null==(r=n.details)?void 0:r.veritoneFile)?void 0:r.mimetype)||(null==(r=n.primaryAsset)?void 0:r.contentType)),null!=(r=null==(r=n.details)?void 0:r.veritoneFile)&&r.size&&(i.fileSize=null==(r=null==(r=n.details)?void 0:r.veritoneFile)?void 0:r.size),n.startDateTime&&n.stopDateTime&&n.startDateTime!==n.stopDateTime?i.duration=Math.floor((new Date(n.stopDateTime).getTime()-new Date(n.startDateTime).getTime())/1e3):i.duration=null,n.modifiedDateTime&&(i.dateUploaded=n.modifiedDateTime),n.createdDateTime&&(i.dateCreated=n.createdDateTime),n.jobs&&0<n.jobs.records.length?n.jobs.records.find(e=>e.status===Mon.FAILED||e.status===Mon.ABORTED||e.status===Mon.CANCELLED)?i.fileStatus="ERROR":n.jobs.records.find(e=>e.status===Mon.PENDING||e.status===Mon.ACTIVE)?i.fileStatus="PENDING":n.jobs.records.find(e=>e.status===Mon.RUNNING)?i.fileStatus="RUNNING":n.jobs.records.every(e=>e.status===Mon.QUEUED||e.status===Mon.SCHEDULED)?i.fileStatus="QUEUED":n.jobs.records.every(e=>e.status===Mon.COMPLETE)?i.fileStatus="COMPLETE":i.fileStatus="NEW":i.fileStatus="NEW",n.details&&Array.isArray(null==(r=n.details)?void 0:r.tags)?i.tags=((null==(r=n.details)?void 0:r.tags)||[]).map(e=>"string"==typeof e?e:"object"==typeof e&&e.value?String(e.value):void 0).filter(e=>!!e):i.tags=[],i):{};var n=ue(Ian),r=ue(wan),i=ue(kan);const a=e&&e.id?Van([e.id],i,r,n)[0].file:[];return nt.exports.jsx("div",Object.assign({className:t.container},{children:nt.exports.jsx(()=>nt.exports.jsxs(nt.exports.Fragment,{children:[o&&Object.keys(o).map(e=>{var t,n,r,i=o[e];switch(e){case"dateUploaded":return nt.exports.jsx(Q0n,{label:e,value:G0n(new Date(i))},e);case"url":return null;case"id":return nt.exports.jsx(Q0n,{label:e,value:nt.exports.jsx(Z0n,{tdoId:i})},e);case"dateCreated":return nt.exports.jsx(Q0n,{label:e,value:G0n(new Date(i))},e);case"fileStatus":return nt.exports.jsx(Q0n,{label:e,value:nt.exports.jsx(K0n,{status:i})},e);case"fileSize":return nt.exports.jsx(Q0n,{label:e,value:(r=Math.ceil(i/1024))<1024?r+" KB":r/1024<1024?(r/1024).toFixed(2)+" MB":(r/1048576).toFixed(2)+" GB"},e);case"fileType":return nt.exports.jsx(Q0n,{label:e,value:(e=>{var[,e]=e.split("/");return e})(i).toUpperCase()},e);case"location":return nt.exports.jsx(Q0n,{label:e,value:nt.exports.jsx(Y0n,{folderName:i})},e);case"tags":return null;case"duration":return nt.exports.jsx(Q0n,{label:e,value:(r=i)?r<60?r+" seconds":((t=[]).unshift(J0n(r%60,2)),r<3600?(n=Math.floor(r/60),t.unshift(r<600?n:J0n(n,2))):(t.unshift(J0n(Math.floor(r%3600),2)),t.unshift(J0n(Math.floor(r/86400),2))),t.join(":")):"N/A"},e);default:return nt.exports.jsx(Q0n,{label:e,value:i},e)}}),nt.exports.jsxs("div",Object.assign({"data-test":"dc-file-info-panel-ai-engines-container",className:t.engineIcons},{children:[nt.exports.jsx(ae,Object.assign({"data-test":"dc-file-info-panel-ai-engines",variant:"caption",sx:{fontWeight:"400",color:"#5C6269",marginBottom:"3px"}},{children:N0n.aiEngines})),nt.exports.jsx(Fpn,{item:a,iconsToShow:4})]})),nt.exports.jsxs("div",Object.assign({"data-test":"dc-file-info-panel-other-engines-container",className:t.engineIcons},{children:[nt.exports.jsx(ae,Object.assign({"data-test":"dc-file-info-panel-other-engines",variant:"caption",sx:{fontWeight:"400",color:"#5C6269",marginBottom:"3px"}},{children:N0n.otherEngines})),nt.exports.jsx(Fpn,{item:a,iconsToShow:4,showOtherEngines:!0})]})),nt.exports.jsx(X0n,{tags:(null===o||void 0===o?void 0:o.tags)||[]})]}),{})}))},emn=()=>nt.exports.jsx(Oln,{emptyType:w.Tdos,title:E0n.errorStateTitle,subtitle:E0n.errorStateSubtitle}),tmn=()=>{var e=fe()(e=>({loading:{display:"flex",height:"100%",justifyContent:"center",alignItems:"center"}}))()["classes"];return nt.exports.jsx("div",Object.assign({className:e.loading},{children:nt.exports.jsx(L4,{})}))},nmn=({entityId:n,fileName:e})=>{const[t,r]=De.exports.useState(0),i="DATA_CENTER_FILE_INFO_PANEL",o=de(),a=ue(J$);var s=ue(nsn),l=ue(_$);const c=ue(Nan),{loadingStatus:u,fileInfo:d}=s;var s="failure"===u,p=(De.exports.useEffect(()=>{o(Can.fileInfo.fetchFileInfoStart({entityId:n})),o(oFe.fetchObjectPermissionsStart({entityType:qLe.TDO,entityId:n}))},[o,n]),O0n())["classes"],g="pending"===u,f="success"===u&&!s;return nt.exports.jsxs("div",Object.assign({className:p.container},{children:[nt.exports.jsx(H0n,{height:64,onPanelClose:()=>o(mQ(i)),onEditAttributes:()=>{},onProcessAi:()=>{var e={name:"DATA_CENTER_PROCESS_AI",config:{name:"DATA CENTER PROCESS AI",tdoId:n,parentPanelId:i,marginStart:380}},t={type:"APP_BAR_PANEL_TEMPLATE",marginTop:c?0:55,marginStart:380+(c?0:80),size:"small",zIndex:c?1008:1001,siblingPanelId:i,parentPanelId:i,dimmed:0,dimmedStatus:"dimParent"};o(gQ({panelId:"DATA_CENTER_PROCESS_AI",microFrontend:e,panelConfig:t}))},onMoveAsset:()=>{},onDownloadAsset:()=>{j0n(a.apiRoot,n,e)},onDeleteAsset:()=>{},entityId:n,isError:s,isLoading:g,isBetaFeaturesEnabled:l}),s&&nt.exports.jsx(emn,{}),g&&nt.exports.jsx(tmn,{}),f&&nt.exports.jsxs(nt.exports.Fragment,{children:[nt.exports.jsx(W0n,{selectedTabId:t,onChange:(e,t)=>r(t),isBetaFeaturesEnabled:l}),nt.exports.jsx("div",Object.assign({className:p.content},{children:nt.exports.jsx(()=>{switch(t){case 0:return nt.exports.jsx($0n,{fileInfo:d});case 1:return nt.exports.jsx("div",{children:"Content Templates"});case 2:return nt.exports.jsx("div",{children:"Activity"});default:return null}},{})}))]})]}))};const rmn={panelHeaderTitle:()=>nt.exports.jsx(oe,{id:"os-data-center-browse.ingestion-creation-panel.title",defaultMessage:"New Ingestion Job",description:"Panel header for the Data Center Ingestion Creation Panel"}),closePanel:()=>nt.exports.jsx(oe,{id:"os-data-center-browse.ingestion-creation-panel.close-panel",defaultMessage:"Close",description:"Close panel icon for the Data Center Ingestion Creation Panel"})},imn=({height:e,onPanelClose:t})=>{e=fe()((e,{height:t})=>({header:{alignItems:"center",borderBottom:"0.5px solid transparent",display:"flex",justifyContent:"space-between",height:t,padding:e.spacing(2,2,2,6)},marginRight:{marginRight:e.spacing(2)},navigationToggle:{marginRight:e.spacing(1)},headerActionContainer:{alignItems:"center",display:"flex",flexGrow:1,height:"100%",justifyContent:"flex-end"},verticalDivider:{borderRight:".5px solid "+e.palette.divider,height:"70%",margin:"0 "+e.spacing(1)},title:{userSelect:"none",fontStyle:"normal",fontSize:"18px",lineHeight:e.spacing(5),letterSpacing:"0.25px",textTransform:"uppercase",color:e.palette.text.secondary}}))({height:e}).classes;return nt.exports.jsxs("header",Object.assign({className:e.header,"data-testid":"dc-ingestion-creation-iframe-header"},{children:[nt.exports.jsx(ae,Object.assign({variant:"h1","data-testid":"dc-ingestion-creation-iframe-title",className:e.title},{children:rmn.panelHeaderTitle()})),nt.exports.jsxs("div",Object.assign({className:e.headerActionContainer},{children:[nt.exports.jsx(ae,Object.assign({style:lsn,id:"dc-ingestion-creation-iframe-close-panel"},{children:rmn.closePanel()})),nt.exports.jsx(re,Object.assign({title:rmn.closePanel()},{children:nt.exports.jsx(le,Object.assign({onClick:t,"aria-labelledby":"dc-ingestion-creation-iframe-close-panel","data-testid":"dc-media-details-iframe-close-panel",size:"large"},{children:nt.exports.jsx(moe,{})}))}))]}))]}))};const omn={panelHeaderTitle:()=>nt.exports.jsx(oe,{id:"os-data-center-browse.select-import-source.title",defaultMessage:"Select Import Source",description:"Panel header for Select Import Source"}),closePanel:()=>nt.exports.jsx(oe,{id:"os-data-center-browse.select-import-source.close-panel",defaultMessage:"Close",description:"Close panel icon for the Data Center Select Import Source"}),tabs:{pull:()=>nt.exports.jsx(oe,{id:"os-data-center-browse.select-import-source.tab.pull",defaultMessage:"Pull",description:"Pull Tab title for Select Import Source"}),push:()=>nt.exports.jsx(oe,{id:"os-data-center-browse.select-import-source.tab.push",defaultMessage:"Push",description:"Push Tab title for Select Import Source"})},engineList:{errorStateTitle:()=>nt.exports.jsx(oe,{id:"os-data-center-browse.select-import-source.engine-list.error-title",defaultMessage:"Error Loading Engines",description:"Error title for loading Engines List title for Select Import Source"}),errorStateRetry:()=>nt.exports.jsx(oe,{id:"os-data-center-browse.select-import-source.engine-list.error-retry",defaultMessage:"Retry",description:"Error retry button for loading Engines List title for Select Import Source"}),emptyState:()=>nt.exports.jsx(oe,{id:"os-data-center-browse.select-import-source.engine-list.empty",defaultMessage:"No Engines Found",description:"Empty Engines List title for Select Import Source"})}},amn=({onPanelClose:e,height:t})=>{t=fe()((e,{height:t})=>({header:{alignItems:"center",borderBottom:"0.5px solid transparent",display:"flex",justifyContent:"space-between",height:t,padding:e.spacing(2,2,2,6)},marginRight:{marginRight:e.spacing(2)},navigationToggle:{marginRight:e.spacing(1)},headerActionContainer:{alignItems:"center",display:"flex",flexGrow:1,height:"100%",justifyContent:"flex-end"},verticalDivider:{borderRight:".5px solid "+e.palette.divider,height:"70%",margin:"0 "+e.spacing(1)},title:{userSelect:"none",fontStyle:"normal",fontSize:"18px",lineHeight:e.spacing(5),letterSpacing:"0.25px",textTransform:"uppercase",color:e.palette.text.secondary}}))({height:t}).classes;return nt.exports.jsxs("header",Object.assign({className:t.header,"data-testid":"dc-ingestion-creation-iframe-header"},{children:[nt.exports.jsx(ae,Object.assign({variant:"h1","data-testid":"dc-ingestion-creation-iframe-title",className:t.title},{children:omn.panelHeaderTitle()})),nt.exports.jsxs("div",Object.assign({className:t.headerActionContainer},{children:[nt.exports.jsx(ae,Object.assign({style:lsn,id:"dc-ingestion-creation-iframe-close-panel"},{children:omn.closePanel()})),nt.exports.jsx(re,Object.assign({title:omn.closePanel()},{children:nt.exports.jsx(le,Object.assign({onClick:e,"aria-labelledby":"dc-ingestion-creation-iframe-close-panel","data-testid":"dc-media-details-iframe-close-panel",size:"large"},{children:nt.exports.jsx(rme,{})}))}))]}))]}))},smn=fe()(e=>({tabPanelContainer:{"&:not([hidden])":{overflow:"hidden",overflowY:"scroll",display:"flex",flexDirection:"column",boxSizing:"border-box",justifyContent:"space-between",maxHeight:"100%"},"&.tab-panel::-webkit-scrollbar":{width:"0px!important"},"&.tab-panel:hover::-webkit-scrollbar":{width:"8px!important"}},tabContainer:{padding:"0 30px",borderBottom:"0.5px solid #D5DFE9","& .Sdk-Mui-selected":{color:"black!important"},"& .Sdk-MuiTabs-indicator":{backgroundColor:"black!important"}}}));function lmn(e){return{id:"pull-push-tab-"+e,"aria-controls":"pull-push-tab-"+e}}const cmn=({activeTab:e,onChange:n})=>{var t=smn()["classes"];return nt.exports.jsx("div",Object.assign({className:t.tabContainer},{children:nt.exports.jsxs(kO,Object.assign({value:e,onChange:(e,t)=>{n(t)}},{children:[nt.exports.jsx(Qj,Object.assign({label:omn.tabs.pull(),value:0},lmn(0))),nt.exports.jsx(Qj,Object.assign({label:omn.tabs.push(),value:1},lmn(1)))]}))}))},umn=fe()(e=>({container:{"&:first-of-type":{marginTop:"10px"},"&:last-of-type":{marginBottom:"10px"},display:"flex",justifyContent:"flex-start",alignItems:"flex-start",paddingTop:"20px",paddingBottom:"20px",paddingLeft:"30px",borderBottom:"0.5px solid #D5DFE9","&:hover":{backgroundColor:"#EEF3F9",cursor:"pointer"}},isActive:{backgroundColor:"#EEF3F9"},iconContainer:{width:"50px",height:"50px",display:"flex",alignItems:"flex-start",justifyContent:"center","& img":{width:"50%",height:"50%",objectFit:"cover",borderRadius:"50%",border:"1px solid #D5DFE9",backgroundColor:"#fff"}},labelContainer:{display:"flex",flexDirection:"column",maxWidth:"70%",gap:"5px"}})),dmn=({engineImportItem:e,onClick:t,isActive:n})=>{var r=umn()["classes"];const{displayName:i,name:o,description:a,signedLogoPath:s,signedIconPath:l}=e,[c,u]=De.exports.useState(l),[d,p]=De.exports.useState(!1);return nt.exports.jsxs("div",Object.assign({"data-test-id":"engine-item-id-"+o,className:r.container+" "+(n?r.isActive:""),onClick:t},{children:[nt.exports.jsxs("div",Object.assign({className:r.iconContainer},{children:[c&&!d&&nt.exports.jsx("img",{onError:()=>{s&&c!==s?u(s):p(!0)},src:c,alt:"Engine Icon"}),(!c||d)&&nt.exports.jsx(lle,{sx:{color:"#555F7C"}})]})),nt.exports.jsxs("div",Object.assign({"data-test-id":"engine-item-id-label-container-"+o,className:r.labelContainer},{children:[i&&nt.exports.jsx(ae,Object.assign({id:"engine-item-id-label-"+i},{children:i})),!i&&nt.exports.jsx(ae,Object.assign({id:"engine-item-id-label-"+o},{children:o})),nt.exports.jsx(ae,Object.assign({variant:"caption"},{children:a}))]}))]}))},pmn=fe()(e=>({container:{display:"flex",flexDirection:"column"},loader:{display:"flex",alignItems:"center",justifyContent:"center",padding:"30px",marginTop:"50px"},emptyState:{padding:"30px",display:"flex",alignItems:"center",justifyContent:"center",marginTop:"50px",flexDirection:"column",gap:"15px"}}));const gmn={selectEngines:e=>e[ban].panelSelectImportSource.engineList,selectActiveEngineId:e=>e[ban].panelSelectImportSource.activeEngineId,selectFetchEnginesStatus:e=>e[ban].panelSelectImportSource.fetchEnginesStatus},fmn=({engines:e,onClickEngine:n,onRetry:t,isLoading:r,isError:i})=>{var o=pmn()["classes"];const a=ue(gmn.selectActiveEngineId);return nt.exports.jsxs("div",Object.assign({className:o.container},{children:[!i&&e.map((e,t)=>nt.exports.jsx(dmn,{engineImportItem:e,onClick:()=>n(e),isActive:(null==e?void 0:e.id)===a},null==e?void 0:e.id)),i&&nt.exports.jsx(hmn,{onRetry:t}),r&&nt.exports.jsx("div",Object.assign({className:o.loader},{children:nt.exports.jsx(L4,{})})),0===e.length&&!r&&!i&&nt.exports.jsx(mmn,{})]}))},hmn=({onRetry:e})=>{var t=pmn()["classes"];return nt.exports.jsxs("div",Object.assign({className:t.emptyState},{children:[nt.exports.jsx(ae,{children:omn.engineList.errorStateTitle()}),nt.exports.jsx(se,Object.assign({onClick:e},{children:omn.engineList.errorStateRetry()}))]}))},mmn=()=>{var e=pmn()["classes"];return nt.exports.jsx("div",Object.assign({className:e.emptyState},{children:nt.exports.jsx(ae,{children:omn.engineList.emptyState()})}))};const vmn=e=>{var{children:t,value:n,index:r}=e,e=Lon(e,["children","value","index"]),i=smn()["classes"];return nt.exports.jsx("div",Object.assign({className:i.tabPanelContainer+" tab-panel",role:"tabpanel",hidden:n!==r,id:"pull-push-tabpanel-"+r,"aria-labelledby":"pull-push-tab-"+r},e,{children:n===r&&t}))},ymn={panelHeaderTitle:()=>nt.exports.jsx(oe,{id:"os-data-center-browse.source-creation-panel.title",defaultMessage:"Create New Source",description:"Panel header for the Data Center Source Creation Panel"}),closePanel:()=>nt.exports.jsx(oe,{id:"os-data-center-browse.source-creation-panel.close-panel",defaultMessage:"Close",description:"Close panel icon for the Data Center Source Creation Panel"})},xmn=({height:e,onPanelClose:t})=>{e=fe()((e,{height:t})=>({header:{alignItems:"center",borderBottom:"0.5px solid "+e.palette.divider,display:"flex",justifyContent:"space-between",height:t,padding:e.spacing(2,2,2,6)},headerNoBorder:{alignItems:"center",borderBottom:"0.5px solid transparent",display:"flex",justifyContent:"space-between",height:t,padding:e.spacing(0,0,0,6)},marginRight:{marginRight:e.spacing(2)},navigationToggle:{marginRight:e.spacing(1)},headerActionContainer:{alignItems:"center",display:"flex",flexGrow:1,height:"100%",justifyContent:"flex-end"},verticalDivider:{borderRight:".5px solid "+e.palette.divider,height:"70%",margin:"0 "+e.spacing(1)},title:{userSelect:"none",fontStyle:"normal",fontSize:"18px",lineHeight:e.spacing(5),letterSpacing:"0.25px",textTransform:"uppercase",color:e.palette.text.secondary}}))({height:e}).classes;return nt.exports.jsxs("header",Object.assign({className:e.header,"data-testid":"dc-source-creation-iframe-header"},{children:[nt.exports.jsx(ae,Object.assign({variant:"h1","data-testid":"dc-source-creation-iframe-title",className:e.title},{children:ymn.panelHeaderTitle()})),nt.exports.jsxs("div",Object.assign({className:e.headerActionContainer},{children:[nt.exports.jsx(ae,Object.assign({style:lsn,id:"dc-source-creation-iframe-close-panel"},{children:ymn.closePanel()})),nt.exports.jsx(re,Object.assign({title:ymn.closePanel()},{children:nt.exports.jsx(le,Object.assign({onClick:t,"aria-labelledby":"dc-source-creation-iframe-close-panel","data-testid":"dc-source-creation-iframe-close-panel",size:"large"},{children:nt.exports.jsx(vae,{})}))}))]}))]}))};var bmn,Cmn,Amn,Imn=Object.freeze({__proto__:null,AddNewFolder:rhn,AiAutocomplete:cln,DataCenterBrowse:e=>nt.exports.jsx(FO,{children:nt.exports.jsx(sg,Object.assign({modules:[l0n(),m0e(),Grn()]},{children:nt.exports.jsx(qte,{children:nt.exports.jsx(c0n,Object.assign({},e))})}))}),DataCenterTableDataSettings:Kce,EditFolder:ry,FileInfoPanel:e=>nt.exports.jsx(FO,{children:nt.exports.jsx(sg,Object.assign({modules:[l0n()]},{children:nt.exports.jsx(qte,{children:nt.exports.jsx(nmn,Object.assign({},e))})}))}),FoldersAndFilesPanel:({panelRendered:e,hidePanel:t,viewType:n,tdoId:r,onSelect:i,selectHomeText:o,selectItemText:a,hideNewFolderButton:s})=>nt.exports.jsx(sg,Object.assign({modules:[l0n()]},{children:nt.exports.jsx(qte,Object.assign({style:{height:"100%"}},{children:nt.exports.jsx(y0n,{hideNewFolderButton:s,panelRendered:e,tdoId:r,viewType:n,hidePanel:t,onSelect:i,selectHomeText:o,selectItemText:a})}))})),IngestionCreationPanel:()=>{const t="DATA_CENTER_INGESTION_CREATION_PANEL",n=de();var e=ue(N$)+"/embed/#/ingestion-jobs/create",r=(De.exports.useEffect(()=>{const e=e=>{e=e.data;e&&"AIWARE_SDK_INGESTION_CREATE_COMPLETE"===e.message&&n(mQ(t))};return window.addEventListener("message",e,!1),()=>window.removeEventListener("message",e)},[]),fe()(e=>({container:{display:"flex",height:"100%",flexDirection:"column"}}))())["classes"];return nt.exports.jsxs("div",Object.assign({className:r.container},{children:[nt.exports.jsx(imn,{height:64,onPanelClose:()=>n(mQ(t))}),nt.exports.jsx(I0n,{src:e,name:"ingestion-creation-iframe-embed",title:"ingestion-creation-iframe-embed",parentOnLoadMessage:"AIWARE_SDK_INGESTION_CREATE_LOADED"})]}))},MediaDetailsPanelIframe:e=>nt.exports.jsx(FO,{children:nt.exports.jsx(sg,Object.assign({modules:[l0n()]},{children:nt.exports.jsx(qte,Object.assign({style:{height:`calc(100vh - ${e.isPanelFullScreen?"0":"60"}px)`}},{children:nt.exports.jsx(S0n,Object.assign({},e))}))}))}),SelectImportSource:r=>{const i=de();var[e,t]=De.exports.useState(0);const n=ue(gmn.selectFetchEnginesStatus);var o="pending"===n,a="failure"===n;const s=ue(gmn.selectEngines),l=ue(Nan),c=()=>i(mQ("DATA_CENTER_SELECT_IMPORT_SOURCE"));var u=()=>{i(lon.fetchEngineAdapterStart())};var d=n=>{i(lon.setActiveEngineId(n.id)),setTimeout(()=>{var e,t;c(),e={name:"PROCESSING_CENTER_INGESTION",config:{name:"New Ingestion",activeEngine:e=n,isFullScreen:null==r?void 0:r.isFullScreen}},t={type:"APP_BAR_PANEL_TEMPLATE",size:"large",marginTop:l?0:55,marginStart:l?0:80,zIndex:l?1010:1001,parentPanelId:"DATA_CENTER",dimmed:0,dimmedStatus:"dimParent",borderBottom:!0},i(gQ({panelId:"PROCESSING_CENTER_INGESTION",microFrontend:e,panelConfig:t}))},250)};const p=()=>{i(lon.resetState())};return De.exports.useEffect(()=>(s.pull.length||s.push.length||"idle"!==n||i(lon.fetchEngineAdapterStart()),p),[]),nt.exports.jsxs("div",Object.assign({style:{height:"100%",display:"flex",flexDirection:"column"}},{children:[nt.exports.jsx(amn,{height:64,onPanelClose:c}),nt.exports.jsx(cmn,{activeTab:e,onChange:t}),nt.exports.jsx(vmn,Object.assign({index:0,value:e},{children:nt.exports.jsx(fmn,{isLoading:o,isError:a,engines:s.pull.filter(e=>e.supportedSourceTypes),onClickEngine:d,onRetry:u})})),nt.exports.jsx(vmn,Object.assign({index:1,value:e},{children:nt.exports.jsx(fmn,{isLoading:o,isError:a,engines:s.push.filter(e=>e.supportedSourceTypes),onClickEngine:d,onRetry:u})}))]}))},SourceCreationPanel:()=>{var e=fe()(e=>({container:{display:"flex",height:"100%",flexDirection:"column"}}))()["classes"];const t="DATA_CENTER_SOURCE_CREATION_PANEL",n=de();var r=ue(N$)+"/embed/#/sources/create";return De.exports.useEffect(()=>{const e=e=>{e=e.data;e&&"AIWARE_SDK_SOURCE_UPDATE_COMPLETE"===e.message&&n(mQ(t))};return window.addEventListener("message",e,!1),()=>{n(Can.viewStreams.refreshSourcesSchedulesTdos()),n(Can.viewStreams.sourcesFetchStart()),window.removeEventListener("message",e)}},[]),nt.exports.jsxs("div",Object.assign({className:e.container},{children:[nt.exports.jsx(xmn,{height:64,onPanelClose:()=>n(mQ(t))}),nt.exports.jsx(I0n,{src:r,name:"source-creation-iframe-embed",title:"source-creation-iframe-embed",parentOnLoadMessage:"AIWARE_SDK_SOURCE_CREATE_LOADED"})]}))},Types:Xin,actions:Can,formatJobForDisplay:Don,getDataCenterBrowseModule:l0n,selectors:ssn}),J_={},ey=B.exports,Ice=(Object.defineProperty(J_,"__esModule",{value:!0}),J_.default=void 0,ey(__)),ele=nt.exports,Doe=(0,Ice.default)((0,ele.jsx)("path",{d:"M13 7h-2v4H7v2h4v4h2v-4h4v-2h-4V7zm-1-5C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z"}),"AddCircleOutline"),wmn=J_.default=Doe,hoe={},foe=B.exports,aoe=(Object.defineProperty(hoe,"__esModule",{value:!0}),hoe.default=void 0,foe(__)),ioe=nt.exports,Fce=(0,aoe.default)((0,ioe.jsx)("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"ErrorOutline"),jmn=hoe.default=Fce,boe={},tce=B.exports,Eoe=(Object.defineProperty(boe,"__esModule",{value:!0}),boe.default=void 0,tce(__)),poe=nt.exports,Gce=(0,Eoe.default)((0,poe.jsx)("path",{d:"M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65 4-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4l-2.35 2.35z"}),"RefreshOutlined"),Smn=boe.default=Gce,ooe={},voe=B.exports,pSt=(Object.defineProperty(ooe,"__esModule",{value:!0}),ooe.default=void 0,voe(__)),WH=nt.exports,zse=(0,pSt.default)((0,WH.jsx)("path",{d:"M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96zM19 18H6c-2.21 0-4-1.79-4-4 0-2.05 1.53-3.76 3.56-3.97l1.07-.11.5-.95C8.08 7.14 9.94 6 12 6c2.62 0 4.88 1.86 5.39 4.43l.3 1.5 1.53.11c1.56.1 2.78 1.41 2.78 2.96 0 1.65-1.35 3-3 3zM8 13h2.55v3h2.9v-3H16l-4-4z"}),"CloudUploadOutlined"),Omn=ooe.default=zse;const kmn="dataCenterImporter",Emn=((pce=bmn=bmn||{})[pce.browseFiles=0]="browseFiles",pce[pce.filesSelected=1]="filesSelected",pce[pce.folders=2]="folders",(Ooe=Cmn=Cmn||{}).Image="image",Ooe.Video="video",Ooe.Audio="audio",Ooe.Text="text",(ise=Amn=Amn||{}).ApplicationJson="application/json",ise.ApplicationMsWord="application/msword",ise.ApplicationPdf="application/pdf",ise.ApplicationRtf="application/rtf",ise.ApplicationSmil="application/smil+xml",ise.ApplicationTtml="application/ttml+xml",ise.ApplicationVeritoneAion="application/vnd.veritone.aion+json",ise.ApplicationMsOutlook="application/vnd.ms-outlook",ise.ApplicationMsPowerpoint="application/vnd.ms-powerpoint",ise.ApplicationDocument="application/vnd.openxmlformats-officedocument.wordprocessingml.document",ise.ApplicationSpreadsheet="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",ise.ApplicationPresentation="application/vnd.openxmlformats-officedocument.presentationml.presentation",ise.ApplicationOasisDoc="application/vnd.oasis.opendocument.text",ise.ApplicationOasisSpreadsheet="application/vnd.oasis.opendocument.spreadsheet",ise.ApplicationXFlv="application/x-flv",ise.ApplicationXml="application/xml",ise.ApplicationFormUrlEncoded="application/x-www-form-urlencoded",ise.ImageJpeg="image/jpeg",ise.ImagePng="image/png",ise.ImageTiff="image/tiff",ise.ImageGig="image/gif",ise.TextPlain="text/plain",ise.TextHtml="text/html",ise.TextCsv="text/csv",ise.TextPlainCharset="text/plain; charset=utf-8",ise.AudioAac="audio/aac",ise.AudioFlac="audio/flac",ise.AudioMidi="audio/midi",ise.AudioMp4="audio/mp4",ise.AudioMpeg="audio/mpeg",ise.AudioWav="audio/wav",ise.AudioXWav="audio/x-wav",ise.AudioWebm="audio/webm",ise.VideoMp4="video/mp4",ise.VideoMpeg="video/mpeg",ise.VideoOgg="video/ogg",ise.VideoQuicktime="video/quicktime",ise.VideoWebm="video/webm",ise.VideoM4v="video/x-m4v",ise.VideoMsWmv="video/x-ms-wmv",ise.VideoMsvideo="video/x-msvideo",ise.Message="message/rfc822",[{name:"Image",type:Cmn.Image,extensions:[Amn.ImageJpeg,Amn.ImagePng,Amn.ImageTiff,Amn.ImageGig]},{name:"Video",type:Cmn.Video,extensions:[Amn.VideoMp4,Amn.VideoMpeg,Amn.VideoOgg,Amn.VideoQuicktime,Amn.VideoWebm,Amn.VideoM4v,Amn.VideoMsWmv,Amn.VideoMsvideo]},{name:"Audio",type:Cmn.Audio,extensions:[Amn.AudioAac,Amn.AudioFlac,Amn.AudioMidi,Amn.AudioMp4,Amn.AudioMpeg,Amn.AudioWav,Amn.AudioXWav,Amn.AudioWebm]},{name:"Documents",type:Cmn.Text,extensions:[Amn.TextPlain,Amn.TextHtml,Amn.TextCsv,Amn.TextPlainCharset,Amn.ApplicationJson,Amn.ApplicationMsWord,Amn.ApplicationPdf,Amn.ApplicationRtf,Amn.ApplicationSmil,Amn.ApplicationTtml,Amn.ApplicationVeritoneAion,Amn.ApplicationMsOutlook,Amn.ApplicationMsPowerpoint,Amn.ApplicationDocument,Amn.ApplicationSpreadsheet,Amn.ApplicationPresentation,Amn.ApplicationOasisDoc,Amn.ApplicationOasisSpreadsheet,Amn.ApplicationXFlv,Amn.ApplicationXml,Amn.ApplicationFormUrlEncoded,Amn.Message]}]);Moe="uiState",XH={status:"idle",currentView:bmn.browseFiles},Bce=qM({name:kmn+"/"+Moe,initialState:XH,reducers:{setCurrentView(e,{payload:t}){e.currentView=t},fileUploadFailed(e){e.status="failure"},fileUploadSucceed(e){e.status="idle"},fileUploadStart(e){e.status="pending"},fileUploadAbortFailed(e){e.status="failure"},tdoCreateStart(e,{payload:t}){e.status="pending",console.log("Starting to create TDOs for: ",t.filesSelected.map(e=>e.id).join("\n"))},tdoCreateSucceed(e){e.status="idle"},tdoCreateFailed(e){e.status="failure"},retryTDOCreateForFiles(e,{payload:t}){e.status="pending",console.log("Retrying to create TDOs for: ",t.filesSelected.map(e=>e.id).join("\n"))},fileMetaSaveSucceeded(e){e.status="idle"},fileMetaSaveFailed(e){e.status="failure"},fileMetaSaveIsProcessing(e){e.status="pending"},tdoPermissionsSucceeded(e){e.status="idle"},tdoPermissionsFailed(e){e.status="failure"}}}),mce=Bce.actions,Pse=Bce.reducer,jce="filesSelectedState",Aoe=qM({name:kmn+"/"+jce,initialState:{files:[],tdoIds:[],permissions:{}},reducers:{setFilesSelected(e,{payload:t}){e.files=[...e.files,...t.filesSelected]},deleteFileSelected(e,{payload:t}){var n=e.files.filter(e=>e.id!==t.id);e.files=n},deleteFailedFiles(e){var t=e.files.filter(e=>"failure"!==e.status);e.files=t},clearFilesSelected(e){e.files=[]},updateFile(t,{payload:n}){const r=t.files.findIndex(e=>e.id===n.id);-1!==r&&Object.keys(n).forEach(e=>{t.files[r][e]=n[e]})},retryFileUpload(e,{payload:t}){console.log("Retrying the files:",t.filesSelected.map(e=>e.id).join("/n"))},abortFileUpload(e,t){},addMetadataAction(e,t){console.log("nothing")},addMetadataToSelectedFile(e,t){const{id:n,meta:r}=t.payload;e.files.forEach(e=>{e.id===n&&(e.meta=r)})},setUploadedFilesTdoIds(e,t){t=t.payload.tdoIds;e.tdoIds=t},setPermissionsPayload(e,t){t=t.payload;e.permissions=t}}}),sce=Aoe.actions,Tq=Aoe.reducer,Foe="rootFolderState",woe=qM({name:kmn+"/"+Foe,initialState:{rootFolder:null,status:"idle"},reducers:{startRootFolderFetch(e){e.status="pending"},rootFolderFetchSucceed(e,{payload:t}){e.rootFolder=t.rootFolder,e.status="idle"},rootFolderFetchFailed(e){e.status="failure"},updateRootFolder(e,{payload:t}){e.rootFolder=t.activeFolder}},extraReducers:e=>{e.addCase(UM("DATA_CENTER_FOLDERS_AND_FILES_RESPONSE"),(e,{payload:t})=>{e.rootFolder=t.folder})}}),goe=woe.actions,dce=woe.reducer;const Tmn=kmn,Nmn={uiState:mce,filesSelectedState:sce,rootFolderState:goe},Mmn=gg({uiState:Pse,filesSelectedState:Tq,rootFolderState:dce});function Pmn(e,a,s,l){return new(s=s||Promise)(function(n,t){function r(e){try{o(l.next(e))}catch(e){t(e)}}function i(e){try{o(l.throw(e))}catch(e){t(e)}}function o(e){var t;e.done?n(e.value):((t=e.value)instanceof s?t:new s(function(e){e(t)})).then(r,i)}o((l=l.apply(e,a||[])).next())})}function Dmn(t,n){return Pmn(this,void 0,void 0,function*(){var e="getSignedWritableUrls";return(yield A(Object.assign({query:"query getSignedWritableUrls($count: Int!) {\n getSignedWritableUrls(number: $count) {\n bucket,\n expiresInSeconds,\n getUrl,\n key,\n unsignedUrl,\n url,\n }\n }",variables:{count:n},operationName:e},t)))[e]})}function Rmn(n,r,{onProgress:i,onError:o,onAbort:a,onUpload:s}){return Pmn(this,void 0,void 0,function*(){const e=new XMLHttpRequest;e.upload.onload=()=>{s&&s(`The upload is completed: ${e.status} `+e.response)},e.upload.onerror=()=>{o&&o("Upload failed.")},e.upload.onabort=()=>{a&&a("Upload cancelled.")},e.upload.onprogress=e=>{i&&i(e.loaded/e.total*100)},e.open("PUT",n.url,!0),e.setRequestHeader("Content-Type",r.type);var t=yield(yield fetch(r.fileUrl)).blob();return e.send(t),e})}function Lmn(n){var r;return Pmn(this,void 0,void 0,function*(){var e="getOrgCmsRootFolder",t="createRootFolders",e=yield A(Object.assign({query:"mutation getOrgCmsRootFolder{\n createRootFolders(rootFolderType: cms) {\n id\n name\n modifiedDateTime\n treeObjectId\n ownerId\n }\n }\n ",operationName:e},n));return{orgRootFolder:null==(r=e[t])?void 0:r.find(e=>!e.ownerId),errors:e.errors||null}})}function Fmn(i,o){var a,s,l,c,u,d;return Pmn(this,void 0,void 0,function*(){try{var e="createTDOWithAsset",t=null!=(a=null==o?void 0:o.meta)&&a.startDateTime?null==(s=null==o?void 0:o.meta)?void 0:s.startDateTime:o.startDateTime,n={input:Object.assign(Object.assign({addToIndex:!0,contentType:o.contentType,name:o.name,uri:o.uri,parentFolderId:o.parentFolderId,startDateTime:t,stopDateTime:t,assetType:"media"},null!=(l=null==o?void 0:o.meta)&&l.thumbnailUrl?{thumbnailUrl:null==(c=null==o?void 0:o.meta)?void 0:c.thumbnailUrl}:{}),{details:{veritoneFile:{filename:null==(u=null==o?void 0:o.meta)?void 0:u.fileName,mimetype:o.contentType,size:o.size},tags:null==(d=null==o?void 0:o.meta)?void 0:d.tags}})},r=yield A(Object.assign({query:'mutation ($input: CreateTDOWithAsset!) {\n createTDOWithAsset(input: $input) {\n id\n name\n details\n modifiedDateTime\n primaryAsset(assetType: "media") {\n contentType\n signedUri\n }\n folders{\n folderPath{\n name\n id\n }\n }\n sourceData {\n source {\n id\n sourceTypeId\n }\n }\n thumbnailUrl\n }\n }\n ',variables:n},i));return{data:r[e],errors:r.errors||null}}catch(e){return{data:null,errors:e.message||"Unable to create TDO"}}})}const Vmn=e=>e[Tmn].uiState.status,Hmn=e=>e[Tmn].uiState.currentView,Umn=e=>e[Tmn].rootFolderState.rootFolder,Bmn=e=>e[Tmn].filesSelectedState.files,zmn=e=>{return null==(e=null==(e=e[Tmn])?void 0:e.filesSelectedState)?void 0:e.tdoIds},qmn=e=>{return null==(e=null==(e=e[Tmn])?void 0:e.filesSelectedState)?void 0:e.permissions},_mn=SM([k$,M$,c$],(e,t,n)=>({apiRoot:e,graphQLEndpoint:t,token:n}));function*Wmn(){var e=yield T(_mn),t=yield T(A$),t=rN(t);try{var n,{orgRootFolder:r,errors:i}=yield E(Lmn,e);r&&(r.isRoot=!0,yield k(Nmn.rootFolderState.rootFolderFetchSucceed({rootFolder:r}))),i&&(n=Array.isArray(i)?null==i?void 0:i.map(e=>e.message).join("\n"):t({id:"os-data-center-importer.snackbar.locationFolderFetchError",defaultMessage:[{type:0,value:"Error during the root folder fetch!"}]}),yield k(Bee({content:n,severity:N.Error})),yield k(Nmn.rootFolderState.rootFolderFetchFailed()))}catch(e){yield k(Nmn.rootFolderState.rootFolderFetchFailed())}}function*Zmn(o){var t;const n=yield T(_mn),r=yield T(ssn.viewMyFiles.selectRootFolderId),i=yield T(Umn);var e=o.payload.filesSelected;const a=(e,t,n)=>(k(Nmn.filesSelectedState.updateFile(Object.assign({id:e},t))),{values:t,data:n}),s=e=>{try{!function(t,n){var r;return Pmn(this,void 0,void 0,function*(){var e="createThumbailJob",e=yield A(Object.assign({query:"\n mutation createThumbailJob($input: CreateJob) {\n createJob(input: $input) {\n id\n }\n }\n ",variables:{input:{targetId:n,tasks:[{engineId:"fd891cb5-ff80-48ae-b5cd-ac3c7d190d55"}]}},operationName:e},t));return null==(r=e.createJob)?void 0:r.id})}(n,e).catch(e=>new Error((null==e?void 0:e.message)||"Error while executing createThumbnailJob function"))}catch(e){console.log("Error while launching thumbnail generation job",e)}};try{const d=yield $1(e.reduce((e,t)=>("idle"===t.status&&(e[t.id]=E(Fmn,n,{contentType:t.type,name:t.name,uri:t.unsignedUrl,parentFolderId:o.payload.useDefaultRootFolder?r:i.id,startDateTime:(new Date).toISOString(),size:t.size,meta:null==t?void 0:t.meta})),e),{}));var l,c=[],u=yield $1(Object.keys(d).map(e=>{var t,n=null==(n=null==(n=d[e])?void 0:n.data)?void 0:n.id,r=null==(r=d[e])?void 0:r.data,i=d[e].errors;return null!=r&&r.details&&(r.name=(null==(t=null==(t=r.details)?void 0:t.veritoneFile)?void 0:t.filename)||(null==(t=null==(t=r.details)?void 0:t.veritoneFile)?void 0:t.fileName)||r.name),!n||i?(vX.dispatch(kQ.tdoCreated,new mX(i||"TDO creation failed!"),{fileId:e,tdoId:n}),a(e,{tdoStatus:"failure"})):(null!=(t=o.payload)&&t.skipThumbnail||s(n),vX.dispatch(kQ.tdoCreated,null,{fileId:e,tdoId:n}),a(e,{tdoId:n,tdoStatus:"idle"},r))}));for(let e=0;e<u.length;e++)"idle"===u[e].values.tdoStatus&&(l=u[e].values.tdoId,c.push(l),yield k(Can.viewMyFiles.addTdoFolder({folderId:i.id,tdoId:l})),yield k(Can.entities.addTdoImported({file:null==(t=u[e])?void 0:t.data})));yield k(Nmn.filesSelectedState.setUploadedFilesTdoIds({tdoIds:c})),yield E(Kmn),yield k(Nmn.uiState.tdoCreateSucceed())}catch(e){console.log(e),yield k(Nmn.uiState.tdoCreateFailed())}}function*Gmn(){var e=(yield T(uQ)).find(e=>"DATA_CENTER_IMPORTER"===e.microFrontend.name);e&&e.panelId&&(e=e["panelId"],yield k(mQ(e)))}function*Jmn(e){return yield E(Dmn,yield T(_mn),e)}function*Kmn(){var e=yield T(_mn),t=yield T(zmn),n=yield T(qmn),n=Object.assign(Object.assign({},n),{ids:t,type:"TDO"});try{yield E(mrn,e,n),yield k(Nmn.uiState.tdoPermissionsSucceeded())}catch(e){yield k(Nmn.uiState.tdoPermissionsFailed())}}function*Ymn(){var e=(yield T(uQ)).find(e=>"EDIT_FILE_METADATA"===e.microFrontend.name);e&&e.panelId&&(e=e["panelId"],yield k(mQ(e)))}function*Qmn(e){var t=yield T(A$),e=e["payload"],{id:e,meta:n}=e,t=rN(t);try{var[r]=yield E(Jmn,1);yield k(Nmn.uiState.fileMetaSaveIsProcessing()),n.thumbnailImg&&(yield E(Xmn,n.thumbnailImg,r)),n.thumbnailUrl=r.unsignedUrl,n.runTime&&n.runDate&&(n.startDateTime=new Date(n.runDate+" "+n.runTime).toISOString()),yield k(Nmn.filesSelectedState.addMetadataToSelectedFile({id:e,meta:n})),yield k(Nmn.uiState.fileMetaSaveSucceeded())}catch(e){yield k(Bee({content:t({id:"os-data-center-importer.snackbar.fileMetaError",defaultMessage:[{type:0,value:"Something went wrong while saving your changes."}]}),severity:N.Error}))}}function*Xmn(e,t){yield Rmn(t,Object.assign(Object.assign({},e),{getUrl:t.getUrl,expiresInSeconds:t.expiresInSeconds,key:t.key,unsignedUrl:t.unsignedUrl,url:t.url}),{})}const $mn="undefined"!=typeof window?window:global,e2n=($mn.xhrInstances={},Of());function*t2n(t){var n=t.payload.filesSelected,r=t.payload.sdkFiles;try{yield k(Nmn.uiState.fileUploadStart());var i=yield E(Jmn,n.length);let e=0;for(const a of i){const s=n[e],l=(e++,yield k(Nmn.filesSelectedState.updateFile({id:s.id,status:"pending",percentComplete:0,expiresInSeconds:a.expiresInSeconds,getUrl:a.getUrl,key:a.key,unsignedUrl:a.unsignedUrl,url:a.url})),Object.assign(Object.assign({},r),{expiresInSeconds:a.expiresInSeconds,getUrl:a.getUrl,key:a.key,unsignedUrl:a.unsignedUrl,url:a.url})),c=e=>{e2n.put(Nmn.filesSelectedState.updateFile(Object.assign({id:s.id},e)))};var o=yield Rmn(a,s,{onProgress:e=>{c({percentComplete:e}),vX.dispatch(kQ.fileUploadProgress,null,e)},onAbort:e=>{c({status:"idle"}),vX.dispatch(kQ.fileUpload,new mX(e,"abort"),l)},onError:e=>{c({status:"failure"}),vX.dispatch(kQ.fileUpload,new mX(e),l)},onUpload:e=>{c({status:"idle"}),vX.dispatch(kQ.fileUpload,null,l)}});$mn.xhrInstances[s.id]=o,yield k(Nmn.uiState.fileUploadSucceed())}}catch(e){t=(null==e?void 0:e.message)||"";console.error(t),yield k(Nmn.uiState.fileUploadFailed())}}function*n2n({payload:e}){try{var t=null==e?void 0:e.id,n=$mn.xhrInstances[t];null!=n&&n.abort(),yield k(Nmn.filesSelectedState.deleteFileSelected({id:t}))}catch(e){yield k(Nmn.uiState.fileUploadAbortFailed())}}function*r2n(){yield $1([function*(){yield lP(Nmn.filesSelectedState.setFilesSelected.type,t2n)}(),function*(){for(;;)yield k(yield X1(e2n))}(),function*(){yield lP(Nmn.filesSelectedState.retryFileUpload.type,t2n)}(),function*(){yield lP(Nmn.filesSelectedState.abortFileUpload.type,n2n)}(),function*(){yield cP(Nmn.rootFolderState.startRootFolderFetch.type,Wmn)}(),function*(){yield cP(Nmn.uiState.tdoCreateStart.type,Zmn)}(),function*(){yield lP(Nmn.uiState.retryTDOCreateForFiles.type,Zmn)}(),function*(){yield lP(Nmn.uiState.tdoCreateSucceed.type,Gmn)}(),function*(){yield cP(Nmn.filesSelectedState.addMetadataAction.type,Qmn)}(),function*(){yield lP(Nmn.uiState.fileMetaSaveSucceeded.type,Ymn)}()])}function i2n(){return{id:kmn,reducerMap:{[kmn]:Mmn},sagas:[r2n],initialActions:[]}}const o2n=fe()(e=>({buttonContainer:{position:"relative",margin:"16px"},fileButton:{border:"1px solid #1871E8!important",borderRadius:e.shape.borderRadius,fontWeight:600,fontSize:"12px!important",background:e.palette.background.paper,color:"#1871E8!important",padding:"6px 15px!important"},hiddenFileButton:{visibility:"hidden",position:"absolute",left:0,width:"100%",height:"100%"}})),a2n=({id:e,labelCss:t,onUpload:n,render:r,imageOnly:i=!1,isUploadEnabled:o=!0})=>{const a=De.exports.useRef();var s=o2n()["classes"];return De.exports.useEffect(()=>{o||(a.current.value=null)},[a,o]),nt.exports.jsxs("label",Object.assign({htmlFor:"upload-file-input-"+e,className:t,onClick:e=>{o||e.preventDefault()}},{children:[r&&r({handleButtonClick:()=>{o&&a.current.click()}}),nt.exports.jsx("input",{id:"upload-file-input-"+e,"data-test":"data-center-importer-local-upload-file-input-"+e,type:"file",multiple:!0,accept:i?"image/*":"",className:s.hiddenFileButton,onChange:n,ref:e=>a.current=e})]}))},s2n=fe()(e=>({progress:{width:"117px",height:"10px",borderRadius:8,backgroundColor:"#F2F7FE",display:"inline-block"},listItem:{padding:e.spacing(3,1)},avatar:{backgroundColor:"#FAFAFA",color:e.palette.secondary.main},errorIcon:{backgroundColor:"#FEF2F2","& svg:hover":{color:e.palette.error.main}},secondaryAction:{right:"0"},filename:{width:"330px",overflow:"hidden",whiteSpace:"nowrap",userSelect:"none"},caption:{userSelect:"none"}})),l2n={video:nt.exports.jsx(Gle,{}),image:nt.exports.jsx(Sae,{}),audio:nt.exports.jsx(ale,{}),text:nt.exports.jsx(koe,{}),application:nt.exports.jsx(koe,{})},c2n=({filetype:e})=>{var[e]=e.split("/");return e&&l2n[e]?l2n[e]:nt.exports.jsx(Rle,{})};function u2n({item:e,onDelete:t,onRetry:n,onAbort:r,onEdit:i,showDivider:o=!0,uiStateStatus:a}){const{id:s,percentComplete:l,status:c,tdoStatus:u,size:d,type:p,meta:g}=e;let f=e["name"];g&&g.fileName&&(f=g.fileName);var h=s2n()["classes"],m=[c,u].includes("failure");return nt.exports.jsxs(De.exports.Fragment,{children:[nt.exports.jsxs(fw,Object.assign({"data-test":"dc-file-importer-file-upload-row",className:h.listItem},{children:[nt.exports.jsx(yw,{children:m?nt.exports.jsx(m5,Object.assign({"data-test":"file-item-failed-icon",className:h.errorIcon},{children:nt.exports.jsx(jmn,{color:"error"})})):nt.exports.jsx(m5,Object.assign({"data-test":"file-item-avatar",className:h.avatar},{children:nt.exports.jsx(c2n,{filetype:p})}))}),nt.exports.jsx(kw,{primary:nt.exports.jsx(re,Object.assign({title:30<f.length?f:"",placement:"bottom-end"},{children:nt.exports.jsx(ae,Object.assign({"data-test":"file-item-title",className:h.filename,variant:"body1"},{children:30<f.length?f.substring(0,30)+"...":f}))})),secondary:nt.exports.jsx(ae,Object.assign({"data-test":"file-item-size",variant:"caption",className:h.caption},{children:QU(d)}))}),nt.exports.jsxs(cw,Object.assign({"data-test":"file-button-actions",className:h.secondaryAction},{children:[m&&nt.exports.jsx(re,Object.assign({title:"Retry uploading"},{children:nt.exports.jsx(le,Object.assign({"data-test":"file-item-retry",onClick:()=>n(e),size:"large"},{children:nt.exports.jsx(Smn,{})}))})),"idle"===c&&nt.exports.jsx(le,Object.assign({"data-test":"file-item-edit",onClick:()=>i(e),size:"large"},{children:nt.exports.jsx(Poe,{})})),(["failure","idle"].includes(c)||"failure"===a)&&nt.exports.jsx(le,Object.assign({"data-test":"file-item-delete",onClick:()=>t(s),size:"large"},{children:nt.exports.jsx(Soe,{})})),"pending"===c&&nt.exports.jsxs(nt.exports.Fragment,{children:[nt.exports.jsx(G9,{"data-test":"file-item-progress",className:h.progress,variant:"determinate",value:l}),nt.exports.jsx(le,Object.assign({"data-test":"file-item-abort",title:"Cancel Import",onClick:()=>r(e),size:"large"},{children:nt.exports.jsx(ese,{})}))]})]}))]})),o&&nt.exports.jsx(ce,{})]})}const d2n=fe()(e=>({fileItemListContainer:{paddingLeft:e.spacing(4),paddingRight:e.spacing(4),height:300,overflowY:"scroll",marginRight:5,marginTop:5,"&::-webkit-scrollbar":{width:3},"&::-webkit-scrollbar-track":{background:"transparent"},"&::-webkit-scrollbar-thumb":{background:"#D5DFE9",padding:5,borderRadius:50},"&::-webkit-scrollbar-thumb:hover":{background:"#919ca8"}},shadowGradient:{display:"block",position:"absolute",top:-1,left:0,width:"100%",height:28,background:"linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, #FFFFFF 100%)",transform:"translateY(-100%)"},footerWrapper:{borderTop:"0.5px solid #D5DFE9",position:"relative",padding:"13px 30px"},viewFormatsBtn:{cursor:"pointer",color:"#6098D1",fontSize:14,"&:hover":{color:e.palette.primary.main}},retryButton:{border:"1px solid",borderColor:e.palette.secondary.main,borderRadius:e.shape.borderRadius,fontWeight:600,fontSize:"12px!important",background:e.palette.background.paper,color:e.palette.secondary.main,padding:"6px 15px!important"},refreshIcon:{marginRight:e.spacing(2),color:e.palette.secondary.main,"&:hover":{color:e.palette.secondary.main}},addFilesIcon:{marginRight:e.spacing(2),color:e.palette.primary.main,"&:hover":{color:e.palette.primary.main}},addFilesBtn:{paddingLeft:0,paddingRight:0},addFilesLabel:{alignItems:"center",display:"flex",cursor:"pointer",paddingLeft:e.spacing(2),paddingRight:e.spacing(2)},addIcon:{display:"block",marginRight:e.spacing(1)},filePickerInput:{display:"none"}})),p2n=({onUpload:t,fileItems:n,onDelete:r,onRetryFailedsClick:e,onRetry:i,onAbort:o,onEdit:a,uiStateStatus:s})=>{const l=d2n()["classes"],c=o2n()["classes"];var u=n.some(e=>"failure"===e.status);return nt.exports.jsxs(nt.exports.Fragment,{children:[nt.exports.jsx(ae,Object.assign({variant:"h2",color:"textPrimary","data-test":"data-center-file-item-list-title"},{children:nt.exports.jsx(oe,{id:"os-data-center-importer.eAju+6",defaultMessage:"Local Machine",description:"Title of a list of files that user is uploading from their local machine"})})),nt.exports.jsx(ae,Object.assign({variant:"body2",color:"textSecondary","data-test":"data-center-file-item-list-subheader"},{children:nt.exports.jsx(oe,{id:"os-data-center-importer.Khv+RJ",defaultMessage:"Choose files from your computer to import into your account",description:"A short description of local machine upload"})})),nt.exports.jsxs(pe,Object.assign({mt:6,borderRadius:"4px",border:"0.5px solid #D5DFE9"},{children:[nt.exports.jsx(X9,Object.assign({disablePadding:!0,className:l.fileItemListContainer,"data-test":"data-center-file-item-list-wrapper"},{children:null==n?void 0:n.map((e,t)=>nt.exports.jsx(u2n,{item:e,showDivider:t!==n.length-1,onDelete:r,onRetry:i,onAbort:o,onEdit:a,uiStateStatus:s},t))})),nt.exports.jsxs(V,Object.assign({direction:"row",justifyContent:"flex-end",alignItems:"center",item:!0,container:!0,className:l.footerWrapper},{children:[nt.exports.jsx("span",{className:l.shadowGradient}),u&&nt.exports.jsxs(se,Object.assign({"data-test":"data-center-importer-local-retry-button",variant:"outlined",className:l.retryButton,onClick:e},{children:[nt.exports.jsx(Smn,{fontSize:"small",className:l.refreshIcon}),nt.exports.jsx(oe,{id:"os-data-center-importer.nJrtcz",defaultMessage:"Retry Failed Items",description:"Text of the label `Retry Failed Items`"})]})),nt.exports.jsx(a2n,{onUpload:e=>{e=Array.from(e.target.files);t(e)},id:"file-item-list-upload-button",render:({handleButtonClick:e})=>nt.exports.jsxs(se,Object.assign({id:"file-item-list-upload-button",variant:"outlined",className:c.fileButton,onClick:e},{children:[nt.exports.jsx(wmn,{fontSize:"small",className:l.addFilesIcon}),nt.exports.jsx(oe,{id:"os-data-center-importer.ydDseD",defaultMessage:"Add Files",description:"Text of the label `Add Files`"})]}))})]}))]}))]})},g2n=fe()(e=>({footer:{position:"absolute",right:e.spacing(6),bottom:e.spacing(6)},closeButton:{marginRight:e.spacing(2),color:e.palette.text.primary},dialogTitle:{padding:`${e.spacing(6)} ${e.spacing(6)} ${e.spacing(1)}px !important `},dialogContent:{padding:`${e.spacing(1)} ${e.spacing(6)} !important `},dialogTitleText:{fontWeight:600},dialogAction:{padding:e.spacing(4)+" !important"}})),f2n=({fileItems:e,onClosePanel:t,onImportFiles:n,onIgnoreAndContinue:r,onRetry:i,uiStateStatus:o})=>{const[a,s]=De.exports.useState(!1),[l,c]=De.exports.useState(!1);var u=g2n()["classes"],d=e.some(e=>"pending"===e.status);const p=()=>{s(!1)};De.exports.useEffect(()=>{p()},[i,r]);d=0===e.length||d||["pending","failure"].includes(o);return nt.exports.jsxs("div",Object.assign({className:u.footer},{children:[nt.exports.jsx(se,Object.assign({onClick:()=>{e.length?c(!0):t()},variant:"text",size:"large",className:u.closeButton,"data-test":"data-center-importer-cancel-btn"},{children:nt.exports.jsx(oe,{id:"os-data-center-importer.0EGcHs",defaultMessage:"Close",description:"Close Panel"})})),nt.exports.jsx(se,Object.assign({onClick:()=>{e.some(e=>"failure"===e.status)?s(!0):n()},disabled:d,size:"large",variant:"contained",color:"primary","data-test":"data-center-importer-import-btn"},{children:nt.exports.jsx(oe,{id:"os-data-center-importer.pcbRZH",defaultMessage:"Import",description:"Import uploaded files"})})),nt.exports.jsxs(e6,Object.assign({open:a,maxWidth:"xs",onClose:p,"aria-labelledby":"dialog-title","aria-describedby":"dialog-description"},{children:[nt.exports.jsx(v6,Object.assign({id:"dialog-title","data-test":"data-center-importer-dialog-title",className:u.dialogTitle},{children:nt.exports.jsx(ae,Object.assign({variant:"h2",className:u.dialogTitleText},{children:nt.exports.jsx(oe,{id:"os-data-center-importer.cl4DGP",defaultMessage:"Errors Detected",description:"title for Error Detected Dialog"})}))})),nt.exports.jsx(u6,Object.assign({className:u.dialogContent},{children:nt.exports.jsx(f6,Object.assign({id:"dialog-description"},{children:nt.exports.jsx(oe,{id:"os-data-center-importer.N9Drr+",defaultMessage:"Some of your files have errors, would you like to fix these errors or continue?",description:"description for Error Detected Dialog"})}))})),nt.exports.jsxs(i6,Object.assign({className:u.dialogAction},{children:[nt.exports.jsx(se,Object.assign({onClick:i,variant:"text",size:"large","data-test":"data-center-importer-dialog-cancel-btn"},{children:nt.exports.jsx(oe,{id:"os-data-center-importer.7+A+C3",defaultMessage:"Retry Errors",description:"button text for retry failed files"})})),nt.exports.jsx(se,Object.assign({onClick:r,size:"large",variant:"contained",color:"primary","data-test":"data-center-importer-dialog-confirm-btn"},{children:nt.exports.jsx(oe,{id:"os-data-center-importer.E9hwYl",defaultMessage:"Ignore Errors and Continue",description:"button text for ignore failed files and kick of the importing progress"})}))]}))]})),nt.exports.jsx(Khe,{showConfirmationModal:l,closeConfirmationModal:()=>{c(!1)},onClosePanel:t,classes:u})]}))},h2n=fe()(e=>({root:{width:"720px",height:"auto"},configurationContainer:{minHeight:"650px"},mainContainer:{margin:e.spacing(6),height:"65vh",overflowY:"auto"},spacer:{marginTop:e.spacing(6)},header:{alignItems:"center",borderBottom:"0.5px solid "+e.palette.divider,backgroundColor:"#FAFAFA !important",display:"flex",height:64,padding:e.spacing(2)},headerTitle:{paddingLeft:e.spacing(4)},headerActionContainer:{alignItems:"center",display:"flex",flexGrow:1,height:"100%",justifyContent:"flex-end"},alert:{color:e.palette.error.main,userSelect:"none","& svg, & svg:hover":{color:e.palette.error.main}},permissionsContainer:{marginTop:"30px"},description:{fontWeight:400,marginBlockStart:"16px",userSelect:"none"}}));var m2n={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:-1,overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"};const v2n={panelHeaderTitle:()=>nt.exports.jsx(oe,{id:"os-data-center-importer.UQliO+",defaultMessage:"Local Machine Importer",description:"Local Machine Importer"}),closePanel:()=>nt.exports.jsx(oe,{id:"os-data-center-importer.kOsSpC",defaultMessage:"Close Panel",description:"Close Panel"}),locationFolderTitle:()=>nt.exports.jsx(oe,{id:"os-data-center-importer.UR2j6X",defaultMessage:"Location Folder",description:"Location Folder"}),locationFolderSubheader:()=>nt.exports.jsx(oe,{id:"os-data-center-importer.zEHvrp",defaultMessage:"Choose the Data Center folder location where this content will be stored.",description:"Choose the Data Center folder location where this content will be stored."}),locationFolderLabel:()=>nt.exports.jsx(oe,{id:"os-data-center-importer.UR2j6Z",defaultMessage:"Folder",description:"Folder"}),locationFolderReselect:()=>nt.exports.jsx(oe,{id:"os-data-center-importer.gtjP09",defaultMessage:"Change",description:"Change"}),editFileMetadataHeader:()=>nt.exports.jsx(oe,{id:"os-data-center-importer.WUHjl4",defaultMessage:"Edit Metadata",description:"Edit Metadata"}),editFileMetadataCancelBtn:()=>nt.exports.jsx(oe,{id:"os-data-center-importer.6PdOcy",defaultMessage:"Cancel",description:"Cancel"}),editFileMetadataSaveBtn:()=>nt.exports.jsx(oe,{id:"os-data-center-importer.kxBKrN",defaultMessage:"Save Changes",description:"Save file metadata changes"}),editFileMetadataAddBtn:()=>nt.exports.jsx(oe,{id:"os-data-center-importer.rntBSe",defaultMessage:"Add",description:"Add tags to metadata"}),editFileMetadataTagsHeading:()=>nt.exports.jsx(oe,{id:"os-data-center-importer.fXL811",defaultMessage:"Tags",description:"Tags heading"}),editFileMetadataTagsSubHeading:()=>nt.exports.jsx(oe,{id:"os-data-center-importer.WFj+x5",defaultMessage:"Add searchable tags to better organize this data. Separate each tag with a comma.",description:"Tags sub heading"}),editFileMetadataDisplayTimeHeading:()=>nt.exports.jsx(oe,{id:"os-data-center-importer.8aqtJF",defaultMessage:"Media Display Time",description:"Media Display Time heading"}),editFileMetadataDisplayTimeSubHeading:()=>nt.exports.jsx(oe,{id:"os-data-center-importer.mhUvxM",defaultMessage:"The actual time the content occurred.",description:"Media Display Time sub heading"}),supportedFilesTitle:()=>nt.exports.jsx(oe,{id:"os-data-center-importer.1riZqU",defaultMessage:"Supported File Types",description:"The title for the container of supported files"})},y2n=({onPanelClose:e})=>{var t=h2n()["classes"];return nt.exports.jsxs("div",Object.assign({className:t.header,"data-test":"data-center-importer-header"},{children:[nt.exports.jsx(ae,Object.assign({className:t.headerTitle,variant:"h1",color:"secondary","data-test":"data-center-importer-title"},{children:v2n.panelHeaderTitle()})),nt.exports.jsxs("div",Object.assign({className:t.headerActionContainer},{children:[nt.exports.jsx(ae,Object.assign({style:m2n,id:"data-center-importer-close-panel"},{children:v2n.closePanel()})),nt.exports.jsx(re,Object.assign({title:v2n.closePanel()},{children:nt.exports.jsx(le,Object.assign({onClick:e,"aria-labelledby":"data-center-importer-close-panel","data-test":"data-center-importer-close-panel",size:"large"},{children:nt.exports.jsx(vae,{})}))}))]}))]}))},x2n=fe()(e=>({title:{userSelect:"none"},description:{fontWeight:400,marginBlockStart:"16px",userSelect:"none"},card:{border:"0.5px solid #D5DFE9!important",boxShadow:"none!important",borderRadius:"4px!important",display:"flex",flexDirection:"column",alignItems:"center",padding:32},focusedCard:{backgroundColor:"#D5DFE9",border:"0.5px solid #D5DFE9!important",boxShadow:"none!important",borderRadius:"4px!important",display:"flex",flexDirection:"column",alignItems:"center",padding:32},uploadIcon:{fontSize:"30px","&:hover":{color:"inherit"}},iconCircle:{color:e.palette.secondary.main,backgroundColor:"#ffffff !important",fontSize:"30px !important",width:"70px !important",height:"70px !important",border:"6px solid #E8E8E8"},selectMessage:{fontWeight:600,marginBlockStart:"12px"},subtitle:{fontSize:"12px",fontWeight:400},fileFormatsButton:{color:"#6098D1",fontSize:"10px",marginTop:10}})),b2n=({onUpload:t,onViewSupportedFiles:e})=>{const[n,r]=De.exports.useState(!1),i=De.exports.useRef();var o=x2n()["classes"];const a=o2n()["classes"];De.exports.useEffect(()=>{const e=e=>{e.preventDefault(),t(Array.from(e.dataTransfer.files)),r(!1)};return window.addEventListener("drop",e),()=>{window.removeEventListener("drop",e)}},[r,t]),De.exports.useEffect(()=>{const e=e=>{e.preventDefault(),r(!0)},t=e=>{e.preventDefault(),r(!1)};return i.current&&(i.current.addEventListener("dragover",e),i.current.addEventListener("dragleave",t)),()=>{try{i.current.removeEventListener("dragover",e),i.current.removeEventListener("dragleave",t)}catch(e){}}},[r]);return nt.exports.jsxs(nt.exports.Fragment,{children:[nt.exports.jsx(ae,Object.assign({"data-test":"data-center-importer-local-upload-title",variant:"h2",className:o.title},{children:nt.exports.jsx(oe,{id:"os-data-center-importer.ylbMu5",defaultMessage:"Local Machine",description:"Import files into the Data Center from your computer"})})),nt.exports.jsx(ae,Object.assign({"data-test":"data-center-importer-local-upload-description",variant:"body2",paragraph:!0,className:o.description},{children:nt.exports.jsx(oe,{id:"os-data-center-importer.OcKW8X",defaultMessage:"Choose files from your computer to import and process within your aiWARE account.",description:"Choose files from your computer to import and process within your aiWARE account."})})),nt.exports.jsxs(o4,Object.assign({"data-test":"data-center-importer-local-upload-card",className:n?o.focusedCard:o.card,ref:e=>i.current=e},{children:[nt.exports.jsx(m5,Object.assign({className:o.iconCircle},{children:nt.exports.jsx(Omn,{fontSize:"inherit",className:o.uploadIcon})})),nt.exports.jsx(ae,Object.assign({variant:"body1",className:o.selectMessage},{children:nt.exports.jsx(oe,{id:"os-data-center-importer.vKgOOW",defaultMessage:"Select a file from your computer",description:"Local Machine File Importer: Select a file from your computer to be uploaded into the Data Center"})})),nt.exports.jsx(ae,Object.assign({variant:"body2",className:o.subtitle},{children:nt.exports.jsx(oe,{id:"os-data-center-importer.9cCClM",defaultMessage:"or drag and drop an image here",description:"Local Machine File Importer: files can be dragged and dropped here to upload them"})})),nt.exports.jsx(a2n,{id:"local-file-upload-upload-btn",onUpload:e=>{t(Array.from(e.target.files))},render:({handleButtonClick:e})=>nt.exports.jsx(se,Object.assign({"data-test":"data-center-importer-local-upload-button",variant:"outlined",className:a.fileButton,style:{marginTop:"15px"},onClick:e},{children:nt.exports.jsx(oe,{id:"os-data-center-importer.261ANF",defaultMessage:"Browse Files",description:"Local Machine File Importer: Click here to select the files to upload"})}))}),nt.exports.jsx(se,Object.assign({"data-test":"data-center-importer-local-supported-file-formats-button",variant:"text",className:o.fileFormatsButton,onClick:e},{children:nt.exports.jsx(oe,{id:"os-data-center-importer.OVCv+Y",defaultMessage:"View Supported File Formats",description:"Local Machine File Importer: View a list of all the File Formats that can be uploaded"})}))]}))]})},C2n=fe()(e=>({title:{userSelect:"none"},subheader:{userSelect:"none"},locationFolderWrapper:{width:"100%",marginTop:e.spacing(4),padding:e.spacing(2),border:"1px solid #D5DFE9",borderRadius:4,display:"flex",alignItems:"center",position:"relative"},locationFolderWrapperDisabled:{opacity:.7,pointerEvents:"none",userSelect:"none"},spacer:{display:"block",flex:1},folderIcon:{marginRight:e.spacing(2)},folderLabel:{fontFamily:"Nunito",display:"block",color:"#5C6269",fontSize:12,position:"absolute",top:-10,left:e.spacing(1),paddingLeft:e.spacing(1),paddingRight:e.spacing(1),background:"#fff"},folderInputLabel:{fontFamily:"Nunito",cursor:"pointer",color:"#6098D1",fontSize:14,"&:hover":{color:"#1871E8"}}})),A2n=({folder:e,onChangeBtnClick:t,disabled:n=!1})=>{var r=C2n()["classes"];return e?nt.exports.jsxs(nt.exports.Fragment,{children:[nt.exports.jsx(ae,Object.assign({variant:"h2",color:"textPrimary","data-test":"data-center-location-folder-title",className:r.title},{children:v2n.locationFolderTitle()})),nt.exports.jsx(ae,Object.assign({variant:"body2",color:"textSecondary","data-test":"data-center-location-folder-subheader",className:r.subheader},{children:v2n.locationFolderSubheader()})),nt.exports.jsxs("div",Object.assign({"data-test":"data-center-location-folder",className:Jhe(r.locationFolderWrapper,n?r.locationFolderWrapperDisabled:null)},{children:[nt.exports.jsx("span",Object.assign({className:r.folderLabel,"data-test":"data-center-location-folder-label"},{children:v2n.locationFolderLabel()})),nt.exports.jsx(nae,{className:r.folderIcon}),nt.exports.jsx(ae,Object.assign({variant:"body1",color:"textPrimary","data-test":"data-center-location-folder-path"},{children:null!=e&&e.isRoot?"Home":null==e?void 0:e.name})),nt.exports.jsx("span",{className:r.spacer}),nt.exports.jsx("span",Object.assign({className:r.folderInputLabel,onClick:t,role:"button","data-test":"data-center-location-select-btn"},{children:v2n.locationFolderReselect()}))]}))]}):null},I2n=(e,t)=>{const n=new Set;return null!=e&&e.forEach(e=>{e.type?t.includes(e.type)||n.add(e.type):n.add(e.name.split(".").pop())}),Array.from(n.values())},w2n=100,j2n=1e3,S2n=({hidePanel:e,activeFolder:t,fileLimit:i=w2n})=>{var n=h2n()["classes"];const[r,o]=De.exports.useState(null);var a=ue(A$);const s=ue(z$),l=ue(ssn.uiState.selectIsFullScreen),c=ue(Bmn);var u=ue(Vmn),d=ue(Hmn),p=ue(Umn);const g=ue(u$),f=de(),h=De.exports.useCallback(()=>{e&&e()},[e]),m=rN(a),[v,y]=De.exports.useState(!1);De.exports.useEffect(()=>{var e;g&&null!=(e=null==(e=null==(e=null===g||void 0===g?void 0:g.user)?void 0:e.organization)?void 0:e.kvp)&&e.features&&(e=g.user.organization.kvp["features"],"enabled"===e.enableRBACFeature)&&y(!0)},[g]),De.exports.useEffect(()=>{c&&c.length?f(Nmn.uiState.setCurrentView(bmn.filesSelected)):f(Nmn.uiState.setCurrentView(bmn.browseFiles))},[f,c]),De.exports.useEffect(()=>{s.baseUrl&&(t&&t.id?f(Nmn.rootFolderState.updateRootFolder({activeFolder:t})):f(Nmn.rootFolderState.startRootFolderFetch()))},[s,t,f]);var a=e=>{let t=e;var n=iN.getNames(Amn);const r=I2n(e,n);0<(null===r||void 0===r?void 0:r.length)&&(f(Bee({content:m({id:"os-data-center-importer.snackbar.disallowedFilesMessage",defaultMessage:[{type:0,value:"The following file types are not allowed: "},{type:1,value:"disallowedFiles"}]},{disallowedFiles:Array.from(r.values()).join(",")}),severity:N.Warning})),t=e.filter(e=>e.type&&!r.includes(e.type))),e.length>i?(f(Bee({content:m({id:"os-data-center-importer.snackbar.fileLimitError",defaultMessage:[{type:0,value:"You can only upload files up to "},{type:1,value:"fileLimit"},{type:0,value:" files at once! Only the first "},{type:1,value:"fileLimit"},{type:0,value:" files will be uploaded."}]},{fileLimit:""+i}),severity:N.Warning})),t=e.slice(0,i)):e.length>j2n&&(f(Bee({content:m({id:"os-data-center-importer.snackbar.fileCountError",defaultMessage:[{type:0,value:"You have exceeded the maximum allowable files per upload. Only the first "},{type:1,value:"maxFileCount"},{type:0,value:" files will be uploaded."}]},{maxFileCount:""+j2n}),severity:N.Warning})),t=e.slice(0,j2n));n=t.map(e=>{var t=URL.createObjectURL(e);return{id:ZU(),fileUrl:t,name:e.name,size:e.size,type:e.type,percentComplete:0}});f(Nmn.filesSelectedState.setFilesSelected({filesSelected:n,sdkFiles:t}))},x=()=>{var e=c.filter(e=>"failure"===e.status);f(Nmn.filesSelectedState.retryFileUpload({filesSelected:e}))};const b=()=>{f(Nmn.uiState.tdoCreateStart({filesSelected:c}))};return De.exports.useEffect(()=>{var e;r&&(null!=(e=null===r||void 0===r?void 0:r.entries)&&e.length?f(Nmn.filesSelectedState.setPermissionsPayload(r)):o(null))},[r,f]),nt.exports.jsxs("div",Object.assign({role:"presentation","data-test":"data-center-importer-widget",className:Jhe(n.root)},{children:[nt.exports.jsx(y2n,{onPanelClose:h}),nt.exports.jsxs("div",Object.assign({className:n.mainContainer},{children:["failure"===u&&nt.exports.jsx(pe,Object.assign({mb:4},{children:nt.exports.jsx(eI,Object.assign({variant:"outlined",severity:"error",className:n.alert},{children:"Error while uploading your file(s)."}))})),d===bmn.browseFiles&&nt.exports.jsx(b2n,{onViewSupportedFiles:()=>{var e={name:"SUPPORTED_FILE_TYPES",config:{name:"Local Importer",fileTypes:Emn}},t={type:"APP_BAR_PANEL_TEMPLATE",marginTop:l?0:55,marginStart:l?0:80,size:"medium",zIndex:l?1011:1002,parentPanelId:"DATA_CENTER_IMPORTER",dimmed:0,dimmedStatus:"dimParent"};f(gQ({panelId:"SUPPORTED_FILE_TYPES_PANEL",microFrontend:e,panelConfig:t}))},onUpload:a}),d===bmn.filesSelected&&nt.exports.jsxs(nt.exports.Fragment,{children:[nt.exports.jsx(p2n,{onUpload:a,fileItems:c,onDelete:e=>{f(Nmn.filesSelectedState.deleteFileSelected({id:e}))},onRetryFailedsClick:x,onRetry:e=>{"failure"===(e=e).status?f(Nmn.filesSelectedState.retryFileUpload({filesSelected:[e]})):"failure"===e.tdoStatus&&f(Nmn.uiState.retryTDOCreateForFiles({filesSelected:[e]}))},onAbort:e=>{e=e,f(Nmn.filesSelectedState.abortFileUpload(e))},onEdit:e=>{var t;e={name:"EDIT_FILE_METADATA",config:{name:"Local Importer",file:e=e}},t={type:"APP_BAR_PANEL_TEMPLATE",marginTop:l?0:55,marginStart:l?0:80,size:"small",zIndex:l?1011:1002,parentPanelId:"DATA_CENTER_IMPORTER",dimmed:0,dimmedStatus:"dimParent"},f(gQ({panelId:"EDIT_FILE_METADATA",microFrontend:e,panelConfig:t}))},uiStateStatus:u}),nt.exports.jsx("div",{className:n.spacer}),nt.exports.jsx(A2n,{folder:p,onChangeBtnClick:()=>Pmn(void 0,void 0,void 0,function*(){try{yield CQ({panelId:"DATA_CENTER_FOLDERS_AND_FILES",microFrontend:{name:"DATA_CENTER_FOLDERS_AND_FILES",config:{viewType:Xin.DataCenterView.folders}},panelConfig:{panelId:"DATA_CENTER_FOLDERS_AND_FILES",disableHide:!1,parentPanelId:"DATA_CENTER_IMPORTER",type:"APP_BAR_PANEL_TEMPLATE",size:"small",marginTop:l?0:55,marginStart:l?0:80,height:600,header:{title:nt.exports.jsx(oe,{id:"os-data-center-importer.headerTitle.chooseLocation",defaultMessage:"Choose a Location",description:"The title for the choose location panel"})},dimmed:0,zIndex:l?1011:1002,dimmedStatus:"dimParent"}},Hh)}catch(e){console.log(e)}})})]}),d===bmn.filesSelected&&v&&nt.exports.jsxs("div",Object.assign({className:n.permissionsContainer},{children:[nt.exports.jsx(ae,Object.assign({"data-testid":"ui-permissions-widget-title",variant:"h2"},{children:nt.exports.jsx(oe,{id:"ui-permissions-widget-title",defaultMessage:"Permissions",description:"Permissions widget title"})})),nt.exports.jsx(ae,Object.assign({"data-test":"data-center-importer-local-upload-description",variant:"body2",paragraph:!0,className:n.description},{children:nt.exports.jsx(oe,{id:"os-data-center-importer-ui-permissions-widget-description",defaultMessage:"Manage who can access and permissions to these objects ",description:"Permissions widget description"})})),nt.exports.jsx(Sin,{onGetPermissionPayload:e=>{o(e)},permissionType:"TDO",parentPanelId:"DATA_CENTER_IMPORTER",isFullScreen:l,zIndex:1002,zIndexFullScreen:1012})]})),nt.exports.jsx(f2n,{uiStateStatus:u,fileItems:c,onClosePanel:()=>{if(c.length)for(const e of c)"pending"===e.status&&f(Nmn.filesSelectedState.abortFileUpload(e));h()},onImportFiles:b,onIgnoreAndContinue:()=>{f(Nmn.filesSelectedState.deleteFailedFiles()),b()},onRetry:x})]}))]}))};const O2n=fe()(e=>({supportedFilesTypeHeader:{display:"flex",alignItems:"center",flexDirection:"row",justifyContent:"space-between",padding:"0px 10px",marginBottom:20},supportedFilesTypeWrapper:{padding:"8px 20px 20px 20px"},fileTypeItem:{border:"1px solid #D5DFE9",borderRadius:5,marginBottom:20,overflow:"hidden"},fileTypeItemHeader:{padding:18,borderBottom:"1px solid #D5DFE9",background:"#FAFAFA",display:"flex",alignItems:"center"},fileTypeItemBody:{display:"flex",alignItems:"center",padding:"26px 0",flexWrap:"wrap"},fileTypeItemExtension:{width:"50%",padding:"4px 0 4px 54px"},fileTypeItemExtensionFullWidth:{width:"100%"},fileItemTypeName:{marginLeft:12}})),k2n=({fileItemType:n})=>{var e;const r=O2n()["classes"];return nt.exports.jsxs("div",Object.assign({className:r.fileTypeItem,"data-test":"data-center-importer-supported-file-item"},{children:[nt.exports.jsxs("header",Object.assign({className:r.fileTypeItemHeader},{children:[nt.exports.jsx("span",Object.assign({"data-test":"data-center-importer-file-item-icon"},{children:nt.exports.jsx(c2n,{filetype:n.type})})),nt.exports.jsx(ae,Object.assign({variant:"h2",color:"textPrimary",className:r.fileItemTypeName,"data-test":"data-center-importer-file-type-name"},{children:n.name}))]})),nt.exports.jsx("div",Object.assign({className:r.fileTypeItemBody,"data-test":"data-center-importer-extension-list"},{children:null==(e=null==n?void 0:n.extensions)?void 0:e.map((e,t)=>nt.exports.jsxs(ae,Object.assign({variant:"body2",color:"textPrimary",className:Jhe(r.fileTypeItemExtension,{[r.fileTypeItemExtensionFullWidth]:n.type===Cmn.Text})},{children:[".",e]}),t))}))]}))},E2n=({fileTypes:e,hidePanel:t})=>{var n=O2n()["classes"];return nt.exports.jsxs("div",Object.assign({className:n.supportedFilesTypeWrapper},{children:[nt.exports.jsxs("div",Object.assign({className:n.supportedFilesTypeHeader},{children:[nt.exports.jsx(ae,Object.assign({variant:"h1",color:"secondary","data-test":"data-center-importer-supported-files-title"},{children:v2n.supportedFilesTitle()})),nt.exports.jsx(re,Object.assign({title:v2n.closePanel()},{children:nt.exports.jsx(le,Object.assign({onClick:t,"aria-labelledby":"data-center-importer-close-panel","data-test":"data-center-importer-types-close-panel",size:"large"},{children:nt.exports.jsx(moe,{})}))}))]})),e&&e.map((e,t)=>nt.exports.jsx(k2n,{fileItemType:e},t))]}))};const T2n=fe()(e=>({editMetadataContainer:{padding:"5px 30px"},avatarImage:{display:"flex",justifyContent:"center",alignItems:"center",width:"135px",height:"119px",marginRight:"10px"},coverImage:{flexGrow:1,display:"flex",justifyContent:"center",alignItems:"center",height:"119px"},inputFieldBorder:{border:"1px solid #D5DFE9"},fileName:{width:"100%",border:"1px solid #D5DFE9",height:"52px",borderRadius:"4px",boxSizing:"border-box",padding:"15px"},tagInput:{marginRight:"10px",flexGrow:1},tags:{paddingLeft:"0px","& > li":{listStyleType:"none",display:"inline",marginRight:"5px"}},tag:{backgroundColor:"#D5DFE9",fontSize:"12px",marginBottom:"5px"},runDate:{marginRight:"5px"},runTime:{"& input":{padding:"18.5px 10px !important"}},cancelBtn:{marginRight:e.spacing(2)},header:{display:"flex",alignItems:"center",flexDirection:"row",justifyContent:"space-between",padding:"0px"},footer:{position:"absolute",right:"30px",bottom:e.spacing(6)},topMarginSm:{marginTop:"15px"},topMarginLg:{marginTop:"15px"},flex:{display:"flex"},flexFill:{flexGrow:1},heading:{color:"#2A323C",fontSize:"14px",fontWeight:600,lineHeight:"20px"},subHeading:{color:"#5C6269",fontSize:"14px",fontWeight:"normal",lineHeight:"20px"},closePanel:{transform:"translateX(15px)"}})),N2n=fe()(e=>({container:{position:"relative",borderRadius:"5px",zIndex:2}})),M2n=({id:e,color:t="black",size:n=55})=>{var r=N2n()["classes"];return nt.exports.jsx("div",Object.assign({id:"addImageIcon-"+e,className:r.container},{children:nt.exports.jsx("svg",Object.assign({version:"1.2",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 500 500",width:n,height:n},{children:nt.exports.jsx("path",{fill:t,fillRule:"evenodd",d:"M249.5 62c147.7 0 151.1 0 157.5 1.9 3.6 1.1 8.9 3.7 11.9 5.8 3 2.1 7.3 6.1 9.6 8.8 2.3 2.7 5.2 7.7 9 17l.3 101c.1 55.6.1 101.4-.2 102-.2.7-4.1.6-11.2-.3-6-.7-14-1-17.9-.7-3.9.3-8.4.8-13 1.6V104.5h-291v291H297l-.7 8c-.5 4.4-.8 9.8-.8 12 0 2.2.4 8.2 1.5 22.5h-97.3c-82.7 0-98.2-.3-104.2-1.5-3.8-.9-9-2.8-11.5-4.2-2.5-1.5-6-4.1-7.9-5.8-1.9-1.6-5.2-5.7-7.3-9-2.5-3.9-4.4-8.5-5.4-13-1.3-6.1-1.4-26.2-.9-309l2.4-6c1.4-3.3 4.3-8.3 6.6-11 2.3-2.8 6.6-6.7 9.6-8.8 3-2.1 8.1-4.6 11.4-5.7 5.8-1.8 11.6-1.9 157-2zm45.4 185c.3 0 12.2 15.8 52.6 70.3l-4 3.1c-2.2 1.7-7.7 6.7-12.3 11.1-4.6 4.4-10.6 11.3-18.7 22.5h-93.8c-90.2 0-93.7-.1-92.5-1.8.7-1 14.7-19 31-40 16.4-21 30-38.2 30.3-38.2.3 0 7.8 8.9 16.7 19.8 8.9 10.8 18.7 22.7 21.7 26.5 3.1 3.7 5.8 6.7 6.1 6.7.3-.1 14.4-18.1 31.4-40.1 17-21.9 31.2-39.9 31.5-39.9zm122.6 87.5c13.3.3 15.8.7 22 3 3.9 1.5 9.3 3.8 12 5.2 2.8 1.4 8.4 5.1 12.4 8.2 4.1 3.1 10 8.7 13.1 12.6 3 3.9 7.1 10.1 9.1 14 2 3.9 4.7 9.9 6 13.5 2.1 5.9 2.3 8.2 2.3 24.5s-.2 18.6-2.3 24.5c-1.3 3.6-4 9.6-6 13.5-2 3.9-6.1 10.1-9.1 14-3.1 3.9-9 9.5-13.1 12.5-4 3.1-9.6 6.7-12.4 8.2-2.7 1.5-8.1 3.9-12 5.4-6.8 2.7-7.6 2.8-26 2.8s-19.2-.1-26-2.8c-3.9-1.5-9.2-3.9-12-5.3-2.7-1.4-8.4-5.1-12.4-8.2-4.1-3.1-10-8.7-13.1-12.6-3-3.9-7.1-10.1-9.1-14-2-3.9-4.7-9.9-6-13.5-2.1-5.9-2.3-8.2-2.3-24.5s.2-18.6 2.3-24.5c1.3-3.6 4-9.6 6-13.5 2-3.9 6.1-10.1 9.1-14 3.1-3.9 9-9.5 13.1-12.5 4-3.1 9.7-6.7 12.4-8.2 2.8-1.4 7.5-3.6 10.5-4.8 3-1.2 8-2.6 11-3 3-.5 12.3-.7 20.5-.5zM390 355.6c-3.6 1.6-8.5 4-11 5.4-2.5 1.4-7.4 5.4-11 9-3.9 3.8-8.2 9.6-10.6 14-2.3 4.1-5 10-6 13-1.3 4.2-1.8 8.7-1.8 18.5s.5 14.3 1.8 18.5c1 3 3.7 8.9 5.9 13 2.7 4.8 6.8 10.1 11.3 14.5 5.2 5.1 9.3 8.1 15.5 11.1 4.6 2.3 10.2 4.7 12.4 5.5 2.5.8 8.8 1.3 17 1.3s14.5-.5 17-1.3c2.2-.8 7.8-3.2 12.4-5.5 6.5-3.1 10.2-5.9 16-11.7 5.8-5.7 8.6-9.6 11.8-16 2.3-4.6 4.7-10.2 5.4-12.4.7-2.4 1.3-9.3 1.3-17 0-7.7-.6-14.6-1.3-17-.7-2.2-3.1-7.8-5.4-12.4-3.2-6.4-6-10.3-11.8-16-5.6-5.7-9.6-8.6-15.5-11.5-4.3-2.1-9.7-4.5-11.9-5.3-2.2-.7-8.5-1.5-14-1.7-5.5-.3-12.5-.1-15.5.3s-8.4 2.1-12 3.7zm15 18.4h17v33h33v17h-33v33h-17v-33h-33v-17h33z"})}))}))},P2n=fe()(e=>({addImageBoxContainer:{display:"flex",justifyContent:"flex-start",flexDirection:"column"},addImageBoxTitle:{padding:"0px",margin:"0px",color:"rgb(92, 98, 105)",fontSize:"12px",fontWeight:400,textAlign:"left",paddingLeft:"5px",paddingBottom:"3px"},addImageBoxSizeAvatar:{width:"135px"},addImageBoxSizeCover:{width:"100%"},addImageBoxIconDiv:{height:"180px",display:"flex",alignItems:"center",justifyContent:"center",border:"1px solid #D5DFE9",overflow:"hidden",position:"relative",textAlign:"left",borderRadius:"4px"},addImageBoxBackground:{position:"absolute",height:"100%",width:"100%",top:0,left:0,backgroundSize:"cover"},addImageBoxShadow:{background:"rgba(0,0,0,0.35)",position:"absolute",width:"100%",height:"100%",zIndex:1},iconButtonContainer:{width:"100%",padding:0},deleteIconContainer:{position:"absolute",top:0,left:0,width:"100%",height:"100%",background:"transparent",zIndex:10,display:"flex",justifyContent:"center",alignItems:"center"},deleteIcon:{color:"white",fontSize:"24px"}})),D2n=({title:e,backgroundImgUrl:t="",aspectRatio:n="avatar",onClick:r,onDelete:i})=>{var o=P2n()["classes"];const[a,s]=De.exports.useState(!1);var l=!!t,c=a&&t,u=a&&t,d=!t||a&&t,p=t?{backgroundImage:`url(${t})`}:{};return nt.exports.jsxs("div",Object.assign({className:o.addImageBoxContainer},{children:[nt.exports.jsx(ae,Object.assign({id:`file-item-meta-${n}-image-title`,variant:"body2",className:o.addImageBoxTitle,color:"secondary","data-test":`file-item-meta-${n}-image-title`},{children:e})),nt.exports.jsx(se,Object.assign({className:o.iconButtonContainer,onClick:r},{children:nt.exports.jsxs("div",Object.assign({onMouseEnter:()=>s(!0),onMouseLeave:()=>s(!1),className:o.addImageBoxIconDiv+" "+("avatar"===n?o.addImageBoxSizeAvatar:o.addImageBoxSizeCover)},{children:[d&&!u&&nt.exports.jsx(M2n,{id:`add-${n}-img`,color:t?"#fff":"#2A323C",size:45}),u&&nt.exports.jsx("div",Object.assign({className:o.deleteIconContainer,onClick:i},{children:nt.exports.jsx(swt,{style:{fontSize:42},className:o.deleteIcon,color:"inherit"})})),c&&nt.exports.jsx("div",{className:o.addImageBoxShadow}),l&&nt.exports.jsx("div",{className:o.addImageBoxBackground,style:p})]}))}))]}))},R2n=({file:t,onSave:n,onCancel:e,onClosePanel:r})=>{const i=T2n()["classes"];var o=ue(A$);const[a,s]=De.exports.useState(null),[l,c]=De.exports.useState(""),[u,d]=De.exports.useState(""),[p,g]=De.exports.useState((()=>{var[e,t,n]=(new Date).toLocaleDateString("en-US",{year:"numeric",month:"2-digit",day:"2-digit"}).split("/");return n+`-${e}-`+t})()),[f,h]=De.exports.useState((()=>{var[e,t]=(new Date).toLocaleTimeString("en-US",{hour:"2-digit",minute:"2-digit",hour12:!1}).split(":");return e+":"+t.slice(0,2)})()),[m,v]=De.exports.useState([]);var o=rN(o),y=(De.exports.useEffect(()=>{var e;t&&(e=t["meta"],s(null==e?void 0:e.thumbnailImg),c(null!=e&&e.fileName?e.fileName:t.name),null!=e&&e.runDate&&g(null==e?void 0:e.runDate),null!=e&&e.runTime&&h(null==e?void 0:e.runTime),v((null==e?void 0:e.tags)||[]))},[t]),De.exports.useCallback(()=>{var e;n&&(e={fileId:null==t?void 0:t.id,fileName:l,thumbnailImg:a,runDate:p,runTime:f,tags:m},n(e))},[n,l,p,f,m,a,t])),x=De.exports.useCallback(()=>{e&&(I(),e())},[e]),b=De.exports.useCallback(()=>{r&&(I(),r())},[r]);const C=De.exports.useCallback(()=>{if(u){const t=function(e){e=e.includes(",")?e.split(","):[e];const t=m.map(e=>e.value),n=[];return null!=e&&e.forEach(e=>{e=e.trim();""===e||t.includes(e)||(n.push({value:e}),t.push(e))}),n}(u);v(e=>[...e,...t]),d("")}},[u,m]),A=()=>{s(null)};return nt.exports.jsxs("div",Object.assign({className:i.editMetadataContainer},{children:[nt.exports.jsxs("header",Object.assign({className:i.header},{children:[nt.exports.jsx(ae,Object.assign({id:"file-item-meta-title",variant:"h1",color:"secondary","data-test":"file-item-meta-title"},{children:nt.exports.jsx(oe,{id:"os-data-center-importer.WUHjl4",defaultMessage:"Edit Metadata",description:"Edit Metadata"})})),nt.exports.jsx(re,Object.assign({title:nt.exports.jsx(oe,{id:"os-data-center-importer.kOsSpC",defaultMessage:"Close Panel",description:"Close Panel"})},{children:nt.exports.jsx(le,Object.assign({id:"file-item-meta-close-panel",onClick:b,"aria-labelledby":"file-item-meta-close-panel","data-test":"file-item-meta-close-panel",className:i.closePanel,size:"large"},{children:nt.exports.jsx(moe,{})}))}))]})),nt.exports.jsx("section",{children:nt.exports.jsx(a2n,{id:"file-item-meta-avatar-image-upload",imageOnly:!0,onUpload:e=>{e=e.target.files[0],t=URL.createObjectURL(e);var t,e=t={id:ZU(),fileUrl:t,name:e.name,size:e.size,type:e.type,percentComplete:0};s(e)},isUploadEnabled:!a,render:({handleButtonClick:e})=>nt.exports.jsx(D2n,{title:nt.exports.jsx(oe,{id:"os-data-center-importer.uK8+3P",defaultMessage:"Thumbnail Image",description:"Thumbnail Image"}),backgroundImgUrl:a?null===a||void 0===a?void 0:a.fileUrl:"",aspectRatio:"cover",onClick:e,onDelete:A})})}),nt.exports.jsx("section",Object.assign({className:i.topMarginSm},{children:nt.exports.jsx(PO,{id:"file-item-meta-file-name","data-test":"file-item-meta-file-name-input",InputLabelProps:{shrink:!0},autoComplete:"off",label:o({id:"os-data-center-importer.label.fileName",defaultMessage:[{type:0,value:"File name"}]}),value:l,style:{width:"100%"},onChange:e=>{c(e.target.value)}})})),nt.exports.jsxs("section",Object.assign({className:i.topMarginLg},{children:[nt.exports.jsx(ae,Object.assign({"data-test":"file-item-meta-display-time-heading",variant:"subtitle1",color:"textSecondary",className:i.heading},{children:nt.exports.jsx(oe,{id:"os-data-center-importer.8aqtJF",defaultMessage:"Media Display Time",description:"Media Display Time heading"})})),nt.exports.jsx(ae,Object.assign({"data-test":"file-item-meta-display-time-sub-heading",variant:"subtitle2",color:"textSecondary",className:i.subHeading},{children:nt.exports.jsx(oe,{id:"os-data-center-importer.mhUvxM",defaultMessage:"The actual time the content occurred.",description:"Media Display Time sub heading"})})),nt.exports.jsxs("div",Object.assign({className:i.topMarginSm+" "+i.flex},{children:[nt.exports.jsx(PO,{id:"file-item-meta-run-date",label:o({id:"os-data-center-importer.label.runDate",defaultMessage:[{type:0,value:"Run Date"}]}),type:"date",value:p,className:i.runDate,onChange:e=>g(e.target.value),InputLabelProps:{shrink:!0}}),nt.exports.jsx(PO,{id:"file-item-meta-run-time",label:o({id:"os-data-center-importer.label.runTime",defaultMessage:[{type:0,value:"Run Time"}]}),type:"time",value:f,onChange:e=>h(e.target.value),className:i.runTime,InputLabelProps:{shrink:!0}})]}))]})),nt.exports.jsxs("section",Object.assign({className:i.topMarginLg},{children:[nt.exports.jsx(ae,Object.assign({"data-test":"file-item-meta-tags-heading",variant:"subtitle1",color:"textSecondary",className:i.heading},{children:nt.exports.jsx(oe,{id:"os-data-center-importer.fXL811",defaultMessage:"Tags",description:"Tags heading"})})),nt.exports.jsx(ae,Object.assign({"data-test":"file-item-meta-tags-sub-heading",variant:"subtitle2",color:"textSecondary",className:i.subHeading},{children:nt.exports.jsx(oe,{id:"os-data-center-importer.WFj+x5",defaultMessage:"Add searchable tags to better organize this data. Separate each tag with a comma.",description:"Tags sub heading"})})),nt.exports.jsxs("div",Object.assign({className:i.topMarginSm+" "+i.flex},{children:[nt.exports.jsx(PO,{id:"file-item-meta-tags",autoComplete:"off",value:u,className:i.tagInput,onChange:e=>{d(e.target.value)},size:"small",onKeyPress:e=>{"Enter"===e.key&&C()}}),nt.exports.jsx(se,Object.assign({id:"file-item-meta-tags-addBtn",variant:"outlined",color:"primary",disabled:!u,onClick:C},{children:nt.exports.jsx(oe,{id:"os-data-center-importer.rntBSe",defaultMessage:"Add",description:"Add tags to metadata"})}))]})),nt.exports.jsx("ul",Object.assign({id:"tags",className:i.tags+" "+i.topMarginSm},{children:null===m||void 0===m?void 0:m.map(t=>nt.exports.jsx("li",{children:nt.exports.jsx(jI,{id:ZU(),label:t.value,size:"small",className:i.tag,onDelete:()=>{v(m.filter(e=>e.value!==t.value))}})},t.value))}))]})),nt.exports.jsxs("footer",Object.assign({className:i.footer},{children:[nt.exports.jsx(se,Object.assign({id:"file-item-meta-cancel-btn",onClick:x,variant:"text",size:"large",className:i.cancelBtn,"data-test":"file-item-meta-cancel-btn"},{children:nt.exports.jsx(oe,{id:"os-data-center-importer.6PdOcy",defaultMessage:"Cancel",description:"Cancel"})})),nt.exports.jsx(se,Object.assign({id:"file-item-meta-save-btn",onClick:y,disabled:!1,size:"large",variant:"contained",color:"primary","data-test":"file-item-meta-save-btn"},{children:nt.exports.jsx(oe,{id:"os-data-center-importer.kxBKrN",defaultMessage:"Save Changes",description:"Save file metadata changes"})}))]}))]}));function I(){s(null),c(""),g("2021-12-22"),h("12:00"),v([])}},L2n=({hidePanel:e,file:t})=>{const n=de();var r=ue(Vmn);return nt.exports.jsx(R2n,{file:t,status:r,onSave:function(e){e&&n(Nmn.filesSelectedState.addMetadataAction({id:null==t?void 0:t.id,meta:e}))},onCancel:function(){e()},onClosePanel:function(){e()}})};var F2n,V2n=Object.freeze({__proto__:null,DataCenterImporter:e=>nt.exports.jsx(ZO,{children:nt.exports.jsx(FO,{children:nt.exports.jsx(sg,Object.assign({modules:[i2n(),Grn()]},{children:nt.exports.jsx(qte,{children:nt.exports.jsx(S2n,Object.assign({},e))})}))})}),EditFileMetadata:e=>nt.exports.jsx(FO,{children:nt.exports.jsx(qte,{children:nt.exports.jsx(ZO,{children:nt.exports.jsx(L2n,Object.assign({},e))})})}),SupportedFileTypes:e=>nt.exports.jsx(FO,{children:nt.exports.jsx(qte,{children:nt.exports.jsx(ZO,{children:nt.exports.jsx(E2n,{hidePanel:e.hidePanel,fileTypes:e.fileTypes})})})}),actions:Nmn,getDataCenterImporterModule:i2n,selectSelectedFiles:Bmn,selectUploadedFilesTdoIds:zmn});const H2n="dataLabeler";(zle=F2n=F2n||{}).Annotation="annotation",zle.Publish="publish",zle.DatasetAssets="datasetAssets";ple="uiState",Toe=qM({name:H2n+"/"+ple,initialState:{status:"pending",isFullScreen:!1,isFluffy:!1,isInfoOpen:!1,annotationToolSettings:{isOpen:!1},publishAnnotationSettings:{isOpen:!1}},reducers:{init(e){e.status="pending"},initDone(e){e.status="idle"},initFailed(e){e.status="failure"},toggleFullScreen(e){e.isFullScreen=!e.isFullScreen},togglePublishAnnotationSettings(e,{payload:t}){t?(e.publishAnnotationSettings.isOpen=!0,e.publishAnnotationSettings.entityType=t):(e.publishAnnotationSettings.isOpen=!1,delete e.publishAnnotationSettings.entityType)},toggleAnnotationSettings(e,{payload:t}){t?(e.annotationToolSettings.isOpen=!0,e.annotationToolSettings.entityType=t):(e.annotationToolSettings.isOpen=!1,delete e.annotationToolSettings.entityType)}}}),Ace=Toe.actions,fce=Toe.reducer,Qce="panelPublishAnnotations",ase=qM({name:H2n+"/"+Qce,initialState:{ids:[]},reducers:{submitPublishAnnotations(e,{payload:t}){e.ids=t.ids}}}),pQt=ase.actions,_ce=ase.reducer;const U2n=H2n,B2n={uiState:Ace,panelPublishAnnotations:pQt},z2n=gg({uiState:fce,panelPublishAnnotations:_ce}),q2n=e=>e[U2n].uiState.isFullScreen,_2n=e=>e[U2n].uiState.publishAnnotationSettings,W2n=e=>e[U2n].uiState.annotationToolSettings;var Z2n={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:-1,overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"};const G2n={publishAnnotation:()=>nt.exports.jsx(oe,{id:"os-data-labeler.y9CGIM",defaultMessage:"Publish Annotation",description:"Publish Annotation"}),publishAnnotationSubtitle:()=>nt.exports.jsx(oe,{id:"os-data-labeler.r0ufb8",defaultMessage:"Published annotations will be available as Ground Truth within your dataset and used for comparison metrics.",description:"Published annotations will be available as Ground Truth within your dataset and used for comparison metrics."}),annotationSettings:()=>nt.exports.jsx(oe,{id:"os-data-labeler.XONoJU",defaultMessage:"Annotation Settings",description:"Annotation Settings"}),closePanel:()=>nt.exports.jsx(oe,{id:"os-data-labeler.kOsSpC",defaultMessage:"Close Panel",description:"Close Panel"}),exitFullScreen:()=>nt.exports.jsx(oe,{id:"os-data-labeler.awe7uYc",defaultMessage:"Exit Fullscreen",description:"Exit Fullscreen"}),enterFullScreen:()=>nt.exports.jsx(oe,{id:"os-data-labeler.stiZt+b",defaultMessage:"Enter Fullscreen",description:"Enter Fullscreen"}),toggleFullScreen:()=>nt.exports.jsx(oe,{id:"os-data-labeler.TUGpHT",defaultMessage:"Toggle FullScreen",description:"Toggle FullScreen"}),submit:()=>nt.exports.jsx(oe,{id:"os-data-labeler.lOLf4e",defaultMessage:"Submit",description:"Submit"}),show:()=>nt.exports.jsx(oe,{id:"os-data-labeler.HTVdQU",defaultMessage:"Show",description:"Show"}),hide:()=>nt.exports.jsx(oe,{id:"os-data-labeler.sX3mXR",defaultMessage:"Hide",description:"Hide"})},J2n=fe()((e,t,n)=>({root:{flexGrow:1},gridText:{minHeight:0,minWidth:0},divider:{opacity:.9},name:{fontWeight:400,maxWidth:"100%"},type:{paddingLeft:e.spacing(1),maxWidth:e.spacing(12)},padding:{paddingRight:e.spacing(1)},thumbnailContainer:{paddingLeft:e.spacing(3),maxWidth:"60px"},tableHeaderTitle:{paddingLeft:e.spacing(3),maxWidth:"120px"},thumbnail:{width:32,height:32,borderRadius:4,border:".5px solid "+e.palette.divider,objectFit:"cover",verticalAlign:"middle"},header:{alignItems:"center",borderBottom:"0.5px solid "+e.palette.divider,display:"flex",height:64,padding:e.spacing(2)},navigationToggle:{marginRight:e.spacing(1)},headerActionContainer:{alignItems:"center",display:"flex",flexGrow:1,height:"100%",justifyContent:"flex-end"},verticalDivider:{borderRight:".5px solid "+e.palette.divider,height:"70%",margin:"0 "+e.spacing(1)},folderMoreIcon:{},row:{cursor:"pointer","&:hover":{borderRadius:4,backgroundColor:"#EEF3F9",["& "+n.folderMoreIcon]:{visibility:"visible",width:"100%",display:"flex",justifyContent:"flex-end"},"& #engineIconContainer":{background:"#fff"}},["& "+n.folderMoreIcon]:{visibility:"hidden"}},publishRoot:{height:"calc(100vh - 260px)",width:"100%"},dRoot:{height:"calc(100vh - 120px)",width:"100%"},dNavBar:{height:"100%",overflow:"hidden",background:"#F4F4F4"},dTitle:{color:"#2A323C",fontWeight:600,fontSize:"18px",lineHeight:"24px",padding:e.spacing(3.2)},dContent:{height:"100%",width:"100%",position:"relative"},dMenu:{overflowY:"auto",height:"calc(100% - 52px)"},loadingContainer:{position:"absolute",height:"100%",width:"100%",display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:"white"}})),K2n=({isFullScreen:e,onPanelClose:t,onFullScreenToggle:n,disableSetting:r})=>{var i=J2n()["classes"];const o=de();return nt.exports.jsxs("header",Object.assign({className:i.header,"data-test":"data-labeler-header"},{children:[nt.exports.jsx(ae,Object.assign({variant:"h1","data-test":"data-labeler-title",style:{marginLeft:30}},{children:"Data Labeler"})),nt.exports.jsx("div",Object.assign({style:{alignItems:"center",border:"1px solid #E1E6ED",borderRadius:4,display:"none",flexGrow:1,height:44,padding:20}},{children:"[PLACEHOLDER FOR SEARCH COMPONENT]"})),nt.exports.jsxs("div",Object.assign({className:i.headerActionContainer},{children:[nt.exports.jsx(se,Object.assign({variant:"contained",color:"primary",size:"large","data-test":"data-labeler-open-publish-annotations",style:{marginRight:10},startIcon:nt.exports.jsx(gue,{style:{color:"#FFF"}}),onClick:()=>o(B2n.uiState.togglePublishAnnotationSettings(F2n.Publish))},{children:G2n.publishAnnotation()})),nt.exports.jsx("div",{className:i.verticalDivider}),nt.exports.jsx(ae,Object.assign({style:Z2n,id:"data-labeler-toolbar-open-annotation-settings"},{children:G2n.annotationSettings()})),nt.exports.jsx(re,Object.assign({title:G2n.annotationSettings()},{children:nt.exports.jsx(le,Object.assign({disabled:r,onClick:()=>o(B2n.uiState.toggleAnnotationSettings(F2n.Annotation)),"data-test":"data-labeler-open-annotation-settings","aria-labelledby":"data-labeler-toolbar-open-annotation-settings",size:"large"},{children:nt.exports.jsx(Xse,{})}))})),nt.exports.jsx(ae,Object.assign({style:Z2n,id:"data-labeler-toggle-fullscreen"},{children:G2n.toggleFullScreen()})),nt.exports.jsx(re,Object.assign({title:e?G2n.exitFullScreen():G2n.enterFullScreen()},{children:nt.exports.jsx(le,Object.assign({onClick:n,"aria-labelledby":"data-labeler-toggle-fullscreen","data-test":"data-labeler-fullscreen-toggle",size:"large"},{children:e?nt.exports.jsx(lae,{}):nt.exports.jsx(sae,{})}))})),nt.exports.jsx(ae,Object.assign({style:Z2n,id:"data-labeler-close-panel"},{children:G2n.closePanel()})),nt.exports.jsx(re,Object.assign({title:G2n.closePanel()},{children:nt.exports.jsx(le,Object.assign({onClick:t,"aria-labelledby":"data-labeler-close-panel","data-test":"data-labeler-close-panel",size:"large"},{children:nt.exports.jsx(vae,{})}))}))]}))]}))},Y2n=({path:e,fullScreen:t=!1,onClosePanel:n,onSavePublishAnnotation:r})=>{var i=J2n()["classes"];const[o,a]=De.exports.useState(!0),s=De.exports.useRef(null);De.exports.useEffect(()=>{const e=t=>{t=t.data;if(t){let e;try{e=JSON.parse(t)}finally{e&&"closePanel"===e.action&&n&&n(),e&&"savePublishAnnotation"===e.action&&r&&r()}}};return window.addEventListener("message",e),()=>window.removeEventListener("message",e)}),De.exports.useEffect(()=>{s&&s.current&&s.current.focus()},[s]);t=`calc(100vh - ${t?"64":"120"}px)`;return nt.exports.jsxs("div",Object.assign({className:Jhe(i.dRoot,"hide-in-percy"),style:{height:t}},{children:[o&&nt.exports.jsx("div",Object.assign({className:i.loadingContainer},{children:nt.exports.jsx(L4,{})})),nt.exports.jsx("iframe",{"data-test":"data-labeler-iframe",title:"Data Labeler Iframe",ref:s,style:{width:"100%",height:"100%",overflow:"auto"},src:e,frameBorder:"0",onLoad:function(){setTimeout(()=>{a(!1)},1e3)}})]}))},Q2n=fe()(e=>({panelRoot:{position:"absolute",right:0,top:0,display:"flex","&$fullScreen":{height:"100vh"}},panelContainer:{display:"flex",flexDirection:"column",width:"100%",padding:e.spacing(2)},panelHeader:{display:"flex",justifyContent:"space-between",alignItems:"center",paddingLeft:e.spacing(1),marginBottom:e.spacing(1),"&.with-secondary-title":{alignItems:"flex-start"}},panelBody:{display:"flex",flexGrow:1,padding:e.spacing(1)},divider:{marginBottom:e.spacing(2)},panelOverlay:{backgroundColor:e.palette.grey[50],opacity:"0.5 !important",height:"100%",position:"absolute",top:0,width:"100%"},EmptyAssetContainer:{display:"flex",flexDirection:"column",justifyContent:"flex-start",alignItems:"center",paddingTop:e.spacing(18),width:"100%"},emptyImage:{display:"flex",textAlign:"center",width:"235px",height:"235px",marginBottom:e.spacing(2)},message:{userSelect:"none",paddingBottom:e.spacing(2)}})),X2n=({isOpen:e,panelTitle:t,className:n="",onClose:r,children:i,setIsActive:o,width:a=400})=>{var s=Q2n()["classes"];return nt.exports.jsxs(nt.exports.Fragment,{children:[nt.exports.jsx(S5,Object.assign({in:e,mountOnEnter:!0,unmountOnExit:!0},{children:nt.exports.jsx("div",{className:s.panelOverlay})})),nt.exports.jsx(j6,Object.assign({direction:"left",in:e,mountOnEnter:!0,unmountOnExit:!0,onEntered:()=>{o(!0)},onExited:()=>o(!1)},{children:nt.exports.jsx("div",Object.assign({className:Jhe(n,s.panelRoot),style:{width:a},"data-test":"data-labeler-action-panel"},{children:nt.exports.jsxs("div",Object.assign({className:s.panelContainer},{children:[nt.exports.jsxs("div",Object.assign({className:Jhe(s.panelHeader)},{children:[nt.exports.jsx(ae,Object.assign({"data-test":"data-labeler-action-panel-title",variant:"h1"},{children:t})),nt.exports.jsx(ae,Object.assign({style:Z2n,id:"data-labeler-close-action-panel"},{children:G2n.closePanel()})),nt.exports.jsx(re,Object.assign({title:G2n.closePanel()},{children:nt.exports.jsx(le,Object.assign({onClick:r,"aria-labelledby":"data-labeler-close-action-panel","data-test":"data-labeler-close-action-panel",size:"large"},{children:nt.exports.jsx(vae,{})}))}))]})),nt.exports.jsx(ce,{className:s.divider}),nt.exports.jsx("div",Object.assign({className:s.panelBody},{children:i}))]}))}))}))]})},$2n=e=>{var[t,n]=De.exports.useState(!1);const r=de();var{isOpen:i,entityType:o}=ue(W2n),a=()=>{r(B2n.uiState.toggleAnnotationSettings(null))};return nt.exports.jsx(X2n,Object.assign({isOpen:!(!i||!o),panelTitle:G2n.annotationSettings(),onClose:a,setIsActive:n,width:1020},e,{children:nt.exports.jsx(nt.exports.Fragment,{children:t&&nt.exports.jsx(Y2n,{fullScreen:e.fullScreen,path:e.blueEyeConfig.settingUri,onClosePanel:a})})}))},evn=t=>{var[e,n]=De.exports.useState(!1);const r=de();var{isOpen:i,entityType:o}=ue(_2n),a=()=>{r(B2n.uiState.togglePublishAnnotationSettings(null))};return nt.exports.jsx(X2n,Object.assign({isOpen:!(!i||!o),panelTitle:G2n.publishAnnotation(),onClose:a,setIsActive:n,width:400},t,{children:nt.exports.jsx(nt.exports.Fragment,{children:e&&nt.exports.jsx(Y2n,{fullScreen:t.fullScreen,path:t.blueEyeConfig.publishUri,onClosePanel:a,onSavePublishAnnotation:()=>{var e=t["publishCallback"];e()}})})}))},tvn=fe()(e=>({root:{width:"100%",position:"relative"},panel:{backgroundColor:e.palette.background.paper,boxShadow:"0px 0px 12px rgba(0, 0, 0, 0.25)",height:"100%",overflow:"hidden"},fullScreen:{position:"fixed",width:"100%",height:"100vh",top:0,left:0,right:0,bottom:0,zIndex:1200}})),nvn=({isFullScreen:e,classes:t,children:n})=>e?nt.exports.jsx(WC,{children:nt.exports.jsx("div",Object.assign({role:"presentation","data-test":"data-labeler-widget",className:Jhe(t.panel,t.fullScreen)},{children:n}))}):nt.exports.jsx("div",Object.assign({role:"presentation","data-test":"data-labeler-widget",className:Jhe(t.root,t.panel)},{children:n})),rvn=({hidePanel:e,blueEyeConfig:t,datasetAssets:n,publishCallback:r,disableSetting:i})=>{var o=tvn()["classes"],a=ue(q2n);const s=de();return nt.exports.jsxs(nvn,Object.assign({isFullScreen:a,classes:o},{children:[nt.exports.jsx(K2n,{isFullScreen:a,onFullScreenToggle:()=>{s(B2n.uiState.toggleFullScreen())},onPanelClose:()=>{e&&e()},disableSetting:i}),nt.exports.jsx(Y2n,{fullScreen:a,path:t.annotateUri}),nt.exports.jsx($2n,{className:o.panel,fullScreen:a,blueEyeConfig:t}),nt.exports.jsx(evn,{className:o.panel,fullScreen:a,blueEyeConfig:t,datasetAssets:n,publishCallback:r})]}))};function*ivn(e){var e=e.payload,t=e.ids,e=((0,e.callback)(t),yield T(A$)),t=rN(e);yield k(Bee({content:t({id:"os-data-labeler.snackbar.submitPublishSuccess",defaultMessage:[{type:0,value:"Submit publish annotations successfully."}]}),severity:N.Info}))}function*ovn(){yield $1([function*(){yield lP(B2n.panelPublishAnnotations.submitPublishAnnotations.type,ivn)}()])}Hh.addModules([{id:H2n,reducerMap:{dataLabeler:z2n},sagas:[ovn],initialActions:[]}]);var avn=Object.freeze({__proto__:null,DataLabelerPanel:e=>e.panelRendered?nt.exports.jsx(FO,{children:nt.exports.jsx(qte,{children:nt.exports.jsx(rvn,Object.assign({},e))})}):null}),svn=fe()(e=>({root:{width:"560px",height:"auto"},configurationContainer:{minHeight:"650px"},spacer:{minHeight:e.spacing(2)},header:{alignItems:"center",borderBottom:"0.5px solid "+e.palette.divider,backgroundColor:"#FAFAFA !important",display:"flex",height:64,padding:e.spacing(2)},headerTitle:{paddingLeft:e.spacing(4)},headerActionContainer:{alignItems:"center",display:"flex",flexGrow:1,height:"100%",justifyContent:"flex-end"},verticalDivider:{borderRight:".5px solid "+e.palette.divider,height:"70%",margin:"0 "+e.spacing(1)},stepsContent:{overflowY:"scroll","&::-webkit-scrollbar":{width:"0"},height:"calc(100vh - 280px)"},stepper:{width:"80%",height:"75px",paddingLeft:"30px"},step:{".MuiStepIcon-root.Mui-active":{fill:e.palette.secondary.main},".MuiStepIcon-root.Mui-completed":{fill:e.palette.secondary.main}},sectionsButton:{paddingBottom:e.spacing(3)},sections:{paddingTop:e.spacing(3),paddingBottom:e.spacing(2.8)},container:{paddingTop:e.spacing(3),paddingLeft:e.spacing(3),paddingRight:e.spacing(3)},clientDivider:{paddingBottom:e.spacing(3)},previewButtonContainer:{marginTop:e.spacing(3),padding:e.spacing(3),background:"#FAFAFA"},previewButtonImage:{width:"30px",height:"30px",objectFit:"contain",marginRight:e.spacing(2)},previewButton:{height:"55px",marginBottom:e.spacing(4),textTransform:"none"},designContainer:{display:"flex",width:"100%",marginTop:e.spacing(3)},colorBlocksContainer:{display:"flex",flexDirection:"row",justifyContent:"space-between",width:"100%"},colorBlock:{width:"30px",height:"30px",borderRadius:"4px"},colorValuesContainer:{display:"flex",justifyContent:"space-between",width:"100%"},buttonDesignErrorContainer:{marginTop:"10px",display:"flex",flexDirection:"column",width:"100%",alignItems:"center",justifyContent:"center",color:"#E53935"},buttonDesignContainer:{display:"flex",flexDirection:"column",height:"137px",width:"100%",justifyContent:"space-between"},buttonPreviewLabel:{position:"absolute",fontSize:"12px",fontWeight:300,width:"75px",backgroundColor:"#fff",transform:"translate(2px, 0px) scale(.98)",color:"#5C6269",textAlign:"center",top:"-8px",left:"5px"},logo:{width:"100%",objectFit:"fill",borderRadius:"4px"},logoContainer:{height:"138px",width:"138px",position:"relative",borderRadius:"4px",marginRight:e.spacing(2)},buttonGroup:{position:"fixed",bottom:"20px",right:"80px",display:"flex",flexDirection:"row",justifyContent:"flex-end",alignItems:"flex-end",marginTop:e.spacing(3),marginRight:e.spacing(3)},button:{marginRight:e.spacing(1)},instructions:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},textField:{width:"100%"},textFieldButtonDesign:{marginLeft:0,marginRight:0,marginTop:0,width:"100%"},textFieldHexButtonDesign:{marginLeft:0,marginRight:0,marginTop:0,width:"48%"},inputBase:{fontWeight:400,fontSize:"14px"},inputContainer:{position:"relative"},fileInput:{position:"absolute",height:1,width:1,overflow:"hidden",clip:"rect(1px, 1px, 1px, 1px)"},imageWrapper:{position:"relative",alignItems:"center",borderRadius:4,border:"1px solid #ccc",boxSizing:"border-box",cursor:"pointer",display:"flex",width:137,height:137,justifyContent:"center",overflow:"hidden"},inputLogo:{position:"relative",height:138,width:138,objectFit:"contain"},removeBtn:{backgroundColor:"rgba(255, 255, 255, .7)",color:"#000",borderRadius:"25px",padding:8,position:"absolute",right:4,top:92},loadingCreate:{marginTop:"50px",display:"flex",width:"100%",height:"400px",justifyContent:"space-around",alignItems:"center",flexDirection:"column"},errorImage:{width:"235px",height:"235px"},retryButton:{marginTop:"10px"},isGlobalContainer:{borderRadius:4,backgroundColor:"#FAFAFA",padding:"10px",display:"flex",flexDirection:"row"},isGlobalTitle:{marginBottom:"5px"},isGlobalDescription:{width:"90%"}})),lvn={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:-1,overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"};const cvn={panelHeaderTitle:()=>nt.exports.jsx(oe,{id:"os-admin-center-open-id.ciRSCG",defaultMessage:"Login Connector",description:"Login Connector"}),closePanel:()=>nt.exports.jsx(oe,{id:"os-admin-center-open-id.kOsSpC",defaultMessage:"Close Panel",description:"Close Panel"}),loginStepsProviderConfiguration:()=>nt.exports.jsx(oe,{id:"os-admin-center-open-id.6+P+4t",defaultMessage:"Provider Configuration",description:"Provider Configuration"}),loginStepsButtonDesign:()=>nt.exports.jsx(oe,{id:"os-admin-center-open-id.pgJQ+P",defaultMessage:"Button Design",description:"Button Design"}),loginStepsNextButton:()=>nt.exports.jsx(oe,{id:"os-admin-center-open-id.6V6DQY",defaultMessage:"Next",description:"Next Button"}),loginStepsBackButton:()=>nt.exports.jsx(oe,{id:"os-admin-center-open-id.nsJ82A",defaultMessage:"Back",description:"Back Button"}),loginStepsCreateButton:()=>nt.exports.jsx(oe,{id:"os-admin-center-open-id.DOAMwO",defaultMessage:"Create",description:"Create Button"}),loginStepsUpdateButton:()=>nt.exports.jsx(oe,{id:"os-admin-center-open-id.aW7Qtx",defaultMessage:"Update",description:"Button that allows users to update their open id provider"}),loginStepsCloseButton:()=>nt.exports.jsx(oe,{id:"os-admin-center-open-id.q5zf7S",defaultMessage:"Close",description:"Create Button"}),loginStepsErrorRequired:()=>nt.exports.jsx(oe,{id:"os-admin-center-open-id.vjutlG",defaultMessage:"This field is required.",description:"required field"}),loginStepsErrorIssuerUrl:()=>nt.exports.jsx(oe,{id:"os-admin-center-open-id.2VJeNw",defaultMessage:"This field is required. OpenID connect metaData document",description:"OPenId Metadata Document Required"}),loginStepsErrorBtnText:()=>nt.exports.jsx(oe,{id:"os-admin-center-open-id.JuCywi",defaultMessage:"This field is required",description:"Button Text Required"}),loginStepsErrorBtnColor:()=>nt.exports.jsx(oe,{id:"os-admin-center-open-id.lQChal",defaultMessage:'Needs Valid Six Digit Hex color ie.. "#FFFFFF"',description:"Valid Button Text Color Required"}),loginStepsErrorBtnLogo:()=>nt.exports.jsx(oe,{id:"os-admin-center-open-id.8vQBmc",defaultMessage:"Please use a valid JPEG, PNG or SVG file smaller than 300KB",description:"Valid Button Logo Type File Size"}),providerInstructions:()=>nt.exports.jsx(oe,{id:"os-admin-center-open-id.rpVpIA",defaultMessage:"Configure your new authentication option for users of this organization. This will be displayed on login.",description:"Provider Instructions"}),providerUpdateInstructions:()=>nt.exports.jsx(oe,{id:"os-admin-center-open-id.i1Yvqc",defaultMessage:"Update your authentication options for users of this organization. This will be displayed on login. You will need to re-enter your Client Secret and Issuer URL for this connector",description:"Text to describe Instructions for this step of Login Connector Updating"}),providerSectionBasic:()=>nt.exports.jsx(oe,{id:"os-admin-center-open-id.3nxOek",defaultMessage:"Basic Info",description:"Basic Info"}),providerInputName:()=>nt.exports.jsx(oe,{id:"os-admin-center-open-id.+fYwFL",defaultMessage:"Name",description:"Name"}),providerInputDescription:()=>nt.exports.jsx(oe,{id:"os-admin-center-open-id.3T09+Q",defaultMessage:"Description",description:"Description"}),providerInputWebsiteUrl:()=>nt.exports.jsx(oe,{id:"os-admin-center-open-id.pnHn3q",defaultMessage:"Website URL",description:"Website URL"}),providerSectionClient:()=>nt.exports.jsx(oe,{id:"os-admin-center-open-id.EcoPxV",defaultMessage:"Client Info",description:"Client Info"}),providerInputClientId:()=>nt.exports.jsx(oe,{id:"os-admin-center-open-id.uWdwr0",defaultMessage:"Client ID",description:"Client ID"}),providerInputClientSecret:()=>nt.exports.jsx(oe,{id:"os-admin-center-open-id.6OgfIg",defaultMessage:"Client Secret",description:"Client Secret "}),providerInputIssuerUrl:()=>nt.exports.jsx(oe,{id:"os-admin-center-open-id.mXH+F+",defaultMessage:"Issuer URL",description:"Issuer URL"}),providerGlobalTitle:()=>nt.exports.jsx(oe,{id:"os-admin-center-open-id.+k+hp1",defaultMessage:"Global Authentication",description:"Global Authentication"}),providerGlobalDescription:()=>nt.exports.jsx(oe,{id:"os-admin-center-open-id.fxc8x4",defaultMessage:"When enabled, this login provider will be available for all organizations within this environment. Please use with caution!",description:"Global description"}),buttonInstructions:()=>nt.exports.jsx(oe,{id:"os-admin-center-open-id.gQIG1D",defaultMessage:"Set the look and feel of your login button for your users.",description:"Button Instructions"}),buttonPreview:()=>nt.exports.jsx(oe,{id:"os-admin-center-open-id.dtsZya",defaultMessage:"Button Preview",description:"Button Preview"}),buttonLogo:()=>nt.exports.jsx(oe,{id:"os-admin-center-open-id.XtAWcG",defaultMessage:"Button Logo",description:"Button Logo"}),buttonText:()=>nt.exports.jsx(oe,{id:"os-admin-center-open-id.w2NwY1",defaultMessage:"Button Text Label",description:"Button Text"}),buttonColor:()=>nt.exports.jsx(oe,{id:"os-admin-center-open-id.J2U6tX",defaultMessage:"Button Color",description:"Button Color"}),buttonTextColor:()=>nt.exports.jsx(oe,{id:"os-admin-center-open-id.3GdHqA",defaultMessage:"Button Text Color",description:"Button Text Color"}),providerCreationCreated:()=>nt.exports.jsx(oe,{id:"os-admin-center-open-id.q+GZ9g",defaultMessage:"Your Login Connector is being created!",description:"connector being created"}),providerCreationFailed:()=>nt.exports.jsx(oe,{id:"os-admin-center-open-id.DVnePp",defaultMessage:"There was an error while creating your Open ID connector:",description:"connector creation failed"}),providerCreationRetryButton:()=>nt.exports.jsx(oe,{id:"os-admin-center-open-id.muMXB+",defaultMessage:"Retry",description:"retry button"}),getProviderFailed:()=>nt.exports.jsx(oe,{id:"os-admin-center-open-id.Iuo8e2",defaultMessage:"There was an error retrieving your existing Open ID connector",description:"Message to let user know that we could not retrieve thier Login Connector"})},uvn=({onPanelClose:e})=>{var t=svn()["classes"];return nt.exports.jsxs("div",Object.assign({className:t.header,"data-test":"admin-center-header"},{children:[nt.exports.jsx(ae,Object.assign({className:t.headerTitle,variant:"h1",color:"secondary","data-test":"admin-center-title"},{children:cvn.panelHeaderTitle()})),nt.exports.jsxs("div",Object.assign({className:t.headerActionContainer},{children:[nt.exports.jsx(ae,Object.assign({style:lvn,id:"admin-center-close-panel"},{children:cvn.closePanel()})),nt.exports.jsx(re,Object.assign({title:cvn.closePanel()},{children:nt.exports.jsx(le,Object.assign({onClick:e,"aria-labelledby":"admin-center-close-panel","data-test":"admin-center-close-panel",size:"large"},{children:nt.exports.jsx(vae,{})}))}))]}))]}))},dvn="adminCenterOpenIdDetail",pvn="Log in with ";const gvn=({logoUrl:e,onChangeFormItem:t})=>{var n=svn()["classes"];const i=De.exports.useRef(null),[r,o]=De.exports.useState(e),[a,s]=De.exports.useState(!1);De.exports.useEffect(()=>{t("btnLogo",r)},[r,t]);return nt.exports.jsxs("div",Object.assign({className:n.inputContainer},{children:[nt.exports.jsx("input",{ref:i,id:"logo-input",name:"logo-input",type:"file",accept:"image/*",onChange:e=>{e=ge.exports.get(e,"target.files[0]",null);if(null!==i.current&&(i.current.value=""),t=(t=e).type,["image/jpeg","image/png","image/svg+xml"].includes(t)&&e.size<=3e5){var t=e;var n=e=>{"string"==typeof e&&o(e),s(!1)};const r=new FileReader;r.readAsDataURL(t),r.onload=function(){n(r.result)},r.onerror=function(e){s(!0),console.log("Error: ",e)}}else s(!0)},className:n.fileInput,"aria-label":"Upload Logo"}),nt.exports.jsx("div",Object.assign({className:n.imageWrapper,role:"button"},{children:r?nt.exports.jsxs(nt.exports.Fragment,{children:[nt.exports.jsx("img",{"data-test":"admin-center-image-loaded",src:r,alt:"logo",className:n.inputLogo}),nt.exports.jsx(b9,{"data-test":"admin-center-remove-image","aria-label":"Remove Image",fontSize:"large",className:n.removeBtn,onClick:()=>{s(!1),o("")},component:swt})]}):nt.exports.jsx(b9,{onClick:()=>{null!==i.current&&i.current.click()},"data-test":"upload-icon",fontSize:"large",component:Fle})})),nt.exports.jsx(J6,Object.assign({"data-test":"admin-center-logo-upload-error",error:a},{children:a?cvn.loginStepsErrorBtnLogo():""}))]}))},fvn=({formData:e,errorForm:t,onChangeFormItem:n,handleChangeForm:r})=>{const i=svn()["classes"];return nt.exports.jsxs("div",Object.assign({className:i.configurationContainer},{children:[nt.exports.jsx("div",Object.assign({className:i.container},{children:nt.exports.jsx(ae,Object.assign({"data-test":"admin-center-button-instructions",variant:"body2",color:"textPrimary"},{children:cvn.buttonInstructions()}))})),nt.exports.jsxs("div",Object.assign({className:i.previewButtonContainer},{children:[nt.exports.jsx(ae,Object.assign({className:i.sectionsButton,variant:"h6",color:"textPrimary"},{children:cvn.buttonPreview()})),nt.exports.jsxs(se,Object.assign({style:{color:""+e.btnTextColor,backgroundColor:""+e.btnColor},"data-test":"admin-center-input-previewButton",variant:"outlined",color:"primary",fullWidth:!0,className:i.previewButton},{children:[e.btnLogo?nt.exports.jsx("img",{"data-test":"admin-center-preview-logo",alt:"previewLogo",className:i.previewButtonImage,src:e.btnLogo}):null,null!=e&&e.btnText?pvn+(null==e?void 0:e.btnText):pvn+"<open id connect name>"]}))]})),nt.exports.jsxs("div",Object.assign({className:i.container},{children:[nt.exports.jsxs("div",Object.assign({className:i.designContainer},{children:[nt.exports.jsxs("div",Object.assign({"data-test":"admin-center-button-logo",className:i.logoContainer},{children:[nt.exports.jsx(gvn,{onChangeFormItem:n,logoUrl:null!=e&&e.btnLogo?null==e?void 0:e.btnLogo:""}),nt.exports.jsx("div",Object.assign({className:i.buttonPreviewLabel},{children:cvn.buttonLogo()}))]})),nt.exports.jsxs("div",Object.assign({className:i.buttonDesignContainer},{children:[nt.exports.jsx(PO,{required:!0,id:"btnText","data-test":"admin-center-input-btnText",autoComplete:"off",label:cvn.buttonText(),variant:"outlined",className:i.textFieldButtonDesign,value:null==e?void 0:e.btnText,onChange:r("btnText"),error:""!==t.btnText}),nt.exports.jsx("div",Object.assign({className:i.colorBlocksContainer},{children:["#FB8C00","#FFB300","#00897B","#43A047","#039BE5","#1E88E5","#ADB8C2","#E53935","#D81B60","#8E24AA"].map(e=>nt.exports.jsx("div",{className:i.colorBlock,style:{backgroundColor:e},onClick:()=>n("btnColor",""+e)},e))})),nt.exports.jsxs("div",Object.assign({className:i.colorValuesContainer},{children:[nt.exports.jsx(PO,{required:!0,id:"btnColor","data-test":"admin-center-input-btnColor",autoComplete:"off",label:cvn.buttonColor(),variant:"outlined",className:i.textFieldHexButtonDesign,value:null==e?void 0:e.btnColor,onChange:r("btnColor"),error:""!==t.btnColor,InputProps:{classes:{input:i.inputBase}},size:"small"}),nt.exports.jsx(PO,{required:!0,id:"btnTextColor","data-test":"admin-center-input-btnTextColor",autoComplete:"off",label:cvn.buttonTextColor(),variant:"outlined",className:i.textFieldHexButtonDesign,value:null==e?void 0:e.btnTextColor,onChange:r("btnTextColor"),error:""!==t.btnTextColor,InputProps:{classes:{input:i.inputBase}},size:"small"})]}))]}))]})),nt.exports.jsxs("div",Object.assign({className:i.buttonDesignErrorContainer},{children:[t.btnText?nt.exports.jsxs("div",Object.assign({"data-test":"admin-center-button-text-error"},{children:[cvn.buttonText(),": ",t.btnText]})):null,t.btnColor?nt.exports.jsxs("div",Object.assign({"data-test":"admin-center-button-color-error"},{children:[cvn.buttonColor(),": ",t.btnColor]})):null,t.btnTextColor?nt.exports.jsxs("div",Object.assign({"data-test":"admin-center-button-text-color-error"},{children:[cvn.buttonTextColor(),": ",t.btnTextColor]})):null]}))]}))]}))};function hvn(e){var t={isSuperAdmin:!1,isAdmin:!1};return e&&(0<=e.indexOf("superadmin")&&(t.isSuperAdmin=!0),0<=e.indexOf("admin"))&&(t.isAdmin=!0),t}const mvn="adminCenterIam";vce="uiState";const vvn={status:"pending",openIdProvider:{name:"",description:"",websiteUrl:"",clientId:"",clientSecret:"",issuerUrl:"",btnText:"",btnLogo:"",btnColor:"#FFFFFF",btnTextColor:"#000000",isGlobal:!1},appId:{id:""},existingOpenIdProvider:{id:""},newProvider:{status:"idle",errorMessage:""}};Bae=qM({name:mvn+"/"+vce,initialState:vvn,reducers:{init(e,{payload:t}){e.status="pending",e.existingOpenIdProvider.id=t.connectorId,e.appId.id=t.appId},initDone(e){e.status="idle"},initFailed(e){e.status="failure"},updateAppId(e,{payload:t}){e.appId=t},updateOpenIdConnector(e,{payload:t}){e.openIdProvider=t},startCreateNewProvider(e){e.newProvider.status="pending"},createNewProviderSuccess(e){e.newProvider.status="idle",e.openIdProvider=vvn.openIdProvider},createNewProviderFailed(e,{payload:t}){e.newProvider={status:t.status,errorMessage:t.errorMessage}}}}),Uoe=Bae.actions,r=Bae.reducer;const yvn=dvn,xvn={uiState:Uoe},bvn=gg({uiState:r}),Cvn=e=>e[yvn].uiState.status,Avn=e=>e[yvn].uiState.appId,Ivn=e=>e[yvn].uiState.openIdProvider,wvn=e=>e[yvn].uiState.newProvider,jvn=e=>e[yvn].uiState.existingOpenIdProvider;var Svn=Object.freeze({__proto__:null,selectUIStateStatus:Cvn,selectAppId:Avn,selectOpenIdProvider:Ivn,selectCreateNewProvider:wvn,selectExistingProvider:jvn});const Ovn=({formData:e,errorForm:t,handleChangeForm:n})=>{var r=svn()["classes"],i=ue(d$),o=hvn(i.roles||null),a=ue(jvn),i=null==(i=null==i?void 0:i.organization)?void 0:i.organizationId;return nt.exports.jsx("div",Object.assign({className:r.configurationContainer},{children:nt.exports.jsxs("div",Object.assign({className:r.container},{children:[nt.exports.jsx(ae,Object.assign({"data-test":"admin-center-provider-instructions",variant:"body2",color:"textPrimary"},{children:a.id?cvn.providerUpdateInstructions():cvn.providerInstructions()})),nt.exports.jsx(ae,Object.assign({className:r.sections,variant:"h6",color:"textPrimary"},{children:cvn.providerSectionBasic()})),nt.exports.jsx(PO,{required:!0,id:"name","data-test":"admin-center-input-name",autoComplete:"off",label:cvn.providerInputName(),variant:"outlined",className:r.textField,value:null==e?void 0:e.name,onChange:n("name"),error:""!==t.name,helperText:t.name}),nt.exports.jsx("div",{className:r.spacer}),nt.exports.jsx(PO,{id:"description","data-test":"admin-center-input-description",autoComplete:"off",label:cvn.providerInputDescription(),variant:"outlined",multiline:!0,rows:3,className:r.textField,value:null==e?void 0:e.description,onChange:n("description"),error:""!==t.description,helperText:t.description,inputProps:{maxLength:100}}),nt.exports.jsx("div",{className:r.spacer}),nt.exports.jsx(PO,{id:"websiteUrl","data-test":"admin-center-input-websiteUrl",autoComplete:"off",label:cvn.providerInputWebsiteUrl(),variant:"outlined",className:r.textField,value:null==e?void 0:e.websiteUrl,onChange:n("websiteUrl"),error:""!==t.websiteUrl,helperText:t.websiteUrl}),nt.exports.jsx(ce,{variant:"fullWidth"}),nt.exports.jsx(ae,Object.assign({className:r.sections,variant:"h6",color:"textPrimary"},{children:cvn.providerSectionClient()})),!a.id&&nt.exports.jsx(PO,{required:!0,id:"clientId","data-test":"admin-center-input-clientId",autoComplete:"off",label:cvn.providerInputClientId(),variant:"outlined",className:r.textField,value:null==e?void 0:e.clientId,onChange:n("clientId"),error:""!==t.clientId,helperText:t.clientId}),nt.exports.jsx("div",{className:r.spacer}),nt.exports.jsx(PO,{required:!0,id:"clientSecret","data-test":"admin-center-input-clientSecret",autoComplete:"off",label:cvn.providerInputClientSecret(),variant:"outlined",className:r.textField,value:null==e?void 0:e.clientSecret,onChange:n("clientSecret"),error:""!==t.clientSecret,helperText:t.clientSecret}),nt.exports.jsx("div",{className:r.spacer}),nt.exports.jsx(PO,{required:!0,id:"issuerUrl","data-test":"admin-center-input-issuerUrl",autoComplete:"off",label:cvn.providerInputIssuerUrl(),variant:"outlined",className:r.textField,value:null==e?void 0:e.issuerUrl,onChange:n("issuerUrl"),error:""!==t.issuerUrl,helperText:t.issuerUrl}),nt.exports.jsx("div",{className:r.spacer}),!a.id&&o.isSuperAdmin&&7682===i&&nt.exports.jsxs("div",Object.assign({className:r.isGlobalContainer},{children:[nt.exports.jsxs("div",{children:[nt.exports.jsx(ae,Object.assign({className:r.isGlobalTitle,variant:"h6"},{children:cvn.providerGlobalTitle()})),nt.exports.jsx(ae,Object.assign({className:r.isGlobalDescription,variant:"body2"},{children:cvn.providerGlobalDescription()}))]}),nt.exports.jsx(Zj,{"data-test":"admin-center-isglobal-switch",value:e.isGlobal,onChange:n("isGlobal")})]}))]}))}))},kvn=({handlePanelClose:e})=>{const t=svn()["classes"],n=de(),r=ue(wvn),i=De.exports.useRef(!1);De.exports.useEffect(()=>{i.current&&"idle"===r.status&&e(),i.current=!0},[r,e]);return nt.exports.jsxs("div",Object.assign({className:t.configurationContainer},{children:[nt.exports.jsx(ce,{variant:"fullWidth"}),"idle"===r.status?null:"pending"===r.status?nt.exports.jsxs("div",Object.assign({className:t.loadingCreate},{children:[nt.exports.jsx(ae,Object.assign({variant:"h2"},{children:cvn.providerCreationCreated()})),nt.exports.jsx(L4,{"data-test":"admin-center-provider-creation-loader"})]})):"failure"===r.status?nt.exports.jsxs("div",Object.assign({className:t.loadingCreate},{children:[nt.exports.jsx("img",{"data-test":"admin-center-error-image",alt:"error",className:t.errorImage,src:lX}),nt.exports.jsx(ae,Object.assign({variant:"body1"},{children:cvn.providerCreationFailed()})),nt.exports.jsx(ae,Object.assign({variant:"body1"},{children:r.errorMessage})),nt.exports.jsx(se,Object.assign({onClick:()=>n(xvn.uiState.startCreateNewProvider()),className:t.retryButton,variant:"outlined",color:"primary","data-test":"admin-center-retry-button"},{children:cvn.providerCreationRetryButton()}))]})):void 0]}))},Evn=({handlePanelClose:e})=>{const n=svn()["classes"],t=de(),r=ue(jvn);var i=ue(Ivn);const[o,a]=De.exports.useState(0),[s,l]=De.exports.useState(i),[c,u]=De.exports.useState({name:"",description:"",websiteUrl:"",clientId:"",clientSecret:"",issuerUrl:"",btnText:"",btnLogo:"",btnColor:"",btnTextColor:"",isGlobal:!1});De.exports.useEffect(()=>{t(xvn.uiState.updateOpenIdConnector(s))},[s,t]);const d=[cvn.loginStepsProviderConfiguration(),cvn.loginStepsButtonDesign()];var i=()=>{0===o&&!(()=>{let e=!0;var t={};return s.name||(t.name=cvn.loginStepsErrorRequired(),e=!1),s.clientId||r.id||(t.clientId=cvn.loginStepsErrorRequired(),e=!1),s.clientSecret||(t.clientSecret=cvn.loginStepsErrorRequired(),e=!1),s.issuerUrl||(t.issuerUrl=cvn.loginStepsErrorIssuerUrl(),e=!1),u(Object.assign(Object.assign({},c),t)),e})()||1===o&&!(()=>{let e=!0;var t={},n="^#[A-Fa-f0-9]{6}$";return s.btnText||(t.btnText=cvn.loginStepsErrorBtnText(),e=!1),s.btnColor&&s.btnColor.match(n)||(t.btnColor=cvn.loginStepsErrorBtnColor(),e=!1),s.btnTextColor&&s.btnTextColor.match(n)||(t.btnTextColor=cvn.loginStepsErrorBtnColor(),e=!1),u(Object.assign(Object.assign({},c),t)),e})()||(a(e=>e+1),o!==d.length-1)||t(xvn.uiState.startCreateNewProvider())},p=()=>{a(e=>e-1)};const g=De.exports.useCallback((t,n)=>{l(e=>Object.assign(Object.assign({},e),{[t]:n})),u(e=>Object.assign(Object.assign({},e),{[t]:""}))},[l,u]),f=t=>e=>{e="isGlobal"===t?e.target.checked:e.target.value;g(t,e)};return nt.exports.jsxs("div",Object.assign({className:n.root},{children:[nt.exports.jsx(Vj,Object.assign({className:n.stepper,activeStep:o},{children:d.map((e,t)=>{return nt.exports.jsx(dj,Object.assign({className:n.step},{},{children:nt.exports.jsx(kj,Object.assign({},{},{children:e}))}),t)})})),nt.exports.jsxs("div",{children:[o===d.length&&nt.exports.jsxs(nt.exports.Fragment,{children:[nt.exports.jsx(kvn,{handlePanelClose:e}),nt.exports.jsxs("div",Object.assign({className:n.buttonGroup},{children:[nt.exports.jsx(se,Object.assign({"data-test":"admin-center-steps-btn-back",disabled:0===o,onClick:p,className:n.button},{children:cvn.loginStepsBackButton()})),nt.exports.jsx(se,Object.assign({variant:"contained",color:"primary",onClick:e,className:n.button,"data-test":"admin-center-steps-btn-close"},{children:cvn.loginStepsCloseButton()}))]}))]}),o!==d.length&&nt.exports.jsxs("div",{children:[nt.exports.jsx(ce,{}),nt.exports.jsx("div",Object.assign({className:n.stepsContent},{children:function(e){switch(e){case 0:return nt.exports.jsx(Ovn,{errorForm:c,formData:s,handleChangeForm:f});case 1:return nt.exports.jsx(fvn,{errorForm:c,formData:s,handleChangeForm:f,onChangeFormItem:g});default:return}}(o)})),nt.exports.jsxs("div",Object.assign({className:n.buttonGroup},{children:[nt.exports.jsx(se,Object.assign({"data-test":"admin-center-steps-btn-back",disabled:0===o,onClick:p,className:n.button},{children:cvn.loginStepsBackButton()})),o===d.length-1?nt.exports.jsx(se,Object.assign({variant:"contained",color:"primary",onClick:i,className:n.button,"data-test":"admin-center-steps-btn-create"},{children:r.id?cvn.loginStepsUpdateButton():cvn.loginStepsCreateButton()})):nt.exports.jsx(se,Object.assign({variant:"contained",color:"primary",onClick:i,className:n.button,"data-test":"admin-center-steps-btn-next"},{children:cvn.loginStepsNextButton()}))]}))]})]})]}))},Tvn=()=>{var e=svn()["classes"];const t=de(),n=ue(jvn),r=ue(Avn);return nt.exports.jsxs("div",Object.assign({className:e.loadingCreate},{children:[nt.exports.jsx("img",{"data-test":"admin-center-error-image",alt:"error",className:e.errorImage,src:lX}),nt.exports.jsx(ae,Object.assign({variant:"body1"},{children:cvn.getProviderFailed()})),nt.exports.jsx(se,Object.assign({onClick:()=>t(xvn.uiState.init({connectorId:n.id,appId:r.id})),className:e.retryButton,variant:"outlined",color:"primary","data-test":"admin-center-retry-button"},{children:cvn.providerCreationRetryButton()}))]}))},Nvn=({dataId:e,appId:t,connectorId:n,panelRendered:r})=>{var i=svn()["classes"];const o=ue(Cvn),a=de(),s=ue(d$),{apiRoot:l,graphQLEndpoint:c,token:u}=ue(J$);De.exports.useEffect(()=>{"pending"===o&&l&&c&&u&&s&&a(xvn.uiState.init({connectorId:n,appId:t}))},[o,l,c,u,t,n,s,a]);var d=De.exports.useCallback(()=>{a(hQ(e))},[a,e]);return!(l&&c&&u&&r&&s&&null!==s&&void 0!==s&&s.roles&&hvn(s.roles).isAdmin&&"pending"!==o)?null:nt.exports.jsxs("div",Object.assign({id:e,role:"presentation","data-test":"admin-center-widget",className:Jhe(i.root)},{children:[nt.exports.jsx(uvn,{onPanelClose:d}),"failure"===o&&nt.exports.jsx(Tvn,{}),"idle"===o&&nt.exports.jsx(Evn,{handlePanelClose:d})]}))},Mvn="ADMIN_CENTER_OPEN_ID";Hse=qM({name:mvn,initialState:{status:"idle",providers:[],selectedProviderId:null},reducers:{fetchProvidersStart(e){e.status="pending"},fetchProvidersSuccess(e,t){e.status="success",e.providers=t.payload},fetchProvidersFailure(e){e.status="failure"},setCreatePanelSelected(e){e.selectedProviderId=""},openProviderDetailPanel(e,t){e.selectedProviderId=t.payload},closeProviderDetailPanel(e){e.selectedProviderId=null},deleteProviderStart(e,t){e.status="pending"},deleteProviderSuccess(e){e.status="success"},deleteProviderFailure(e){e.status="failure"}},extraReducers:e=>{e.addCase(hQ,(e,t)=>(t.payload===Mvn&&(e.selectedProviderId=null),e))}});const Pvn=Hse.actions;var Dvn=Hse.reducer;function Rvn(e,a,s,l){return new(s=s||Promise)(function(n,t){function r(e){try{o(l.next(e))}catch(e){t(e)}}function i(e){try{o(l.throw(e))}catch(e){t(e)}}function o(e){var t;e.done?n(e.value):((t=e.value)instanceof s?t:new s(function(e){e(t)})).then(r,i)}o((l=l.apply(e,a||[])).next())})}function Lvn(t,n){return Rvn(this,void 0,void 0,function*(){var e=yield A(Object.assign({query:`
|
|
2777
2777
|
mutation createNewOpenIdProvider($input: CreateOpenIdProvider!){
|
|
2778
2778
|
createOpenIdProvider(input: $input){
|
|
2779
2779
|
name
|