aiware-js 1.0.0-master.766 → 1.0.0-master.768

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/js-core.esm.js CHANGED
@@ -944,7 +944,7 @@ createScheduledJob(input:{
944
944
  }
945
945
  }
946
946
  }
947
- }`,graphEndpoint:t,token:n})).errors?this.introspectionEnabled=!1:(this.mutation=((null==(o=null==(o=null==(o=null==e?void 0:e.data)?void 0:o.__schema)?void 0:o.mutationType)?void 0:o.fields)||[]).map(n=>{var e;const r=this.typeBuilder(n.type);return{name:n.name,type:r,args:null==(e=n.args)?void 0:e.map(e=>{var t=this.typeBuilder(e.type);return isEqual_1("production","development")&&!t&&this.alertDevs&&alert(`${n.name} mutation is missing ${e.name} argument type. Check if it's nested one more level deep`),isEqual_1("production","development")&&!r&&this.alertDevs&&alert(n.name+" query is missing its type. Check if it's nested one more level deep"),{name:e.name,type:t}})}}),this.query=((null==(o=null==(o=null==(o=null==e?void 0:e.data)?void 0:o.__schema)?void 0:o.queryType)?void 0:o.fields)||[]).map(n=>{var e;const r=this.typeBuilder(n.type);return{name:n.name,type:r,args:null==(e=n.args)?void 0:e.map(e=>{var t=this.typeBuilder(e.type);return isEqual_1("production","development")&&!t&&this.alertDevs&&alert(`${n.name} query is missing ${e.name} argument type. Check if it's nested one more level deep`),isEqual_1("production","development")&&!r&&this.alertDevs&&alert(n.name+" query is missing its type. Check if it's nested one more level deep"),{name:e.name,type:t}})}})))})}getEnumValues(t,n,r){return __awaiter$b(this,void 0,void 0,function*(){if(this.enums[r])return this.enums[r];try{var e=(yield baseGraphQLApi({query:`{
947
+ }`,graphEndpoint:t,token:n})).errors?this.introspectionEnabled=!1:(this.mutation=((null==(o=null==(o=null==(o=null==e?void 0:e.data)?void 0:o.__schema)?void 0:o.mutationType)?void 0:o.fields)||[]).map(n=>{var e;const r=this.typeBuilder(n.type);return{name:n.name,type:r,args:null==(e=n.args)?void 0:e.map(e=>{var t=this.typeBuilder(e.type);return isEqual_1("production","development")&&!t&&this.alertDevs&&alert(`${n.name} mutation is missing ${e.name} argument type. Check if it's nested one more level deep`),isEqual_1("production","development")&&!r&&this.alertDevs&&alert(n.name+" query is missing its type. Check if it's nested one more level deep"),{name:e.name,type:t}})}}),this.query=((null==(o=null==(o=null==(o=null==e?void 0:e.data)?void 0:o.__schema)?void 0:o.queryType)?void 0:o.fields)||[]).map(n=>{const r=this.typeBuilder(n.type);var e=null==(e=n.args)?void 0:e.map(e=>{var t=this.typeBuilder(e.type);return isEqual_1("production","development")&&!t&&this.alertDevs&&alert(`${n.name} query is missing ${e.name} argument type. Check if it's nested one more level deep`),isEqual_1("production","development")&&!r&&this.alertDevs&&alert(n.name+" query is missing its type. Check if it's nested one more level deep"),{name:e.name,type:t}});return{name:n.name,type:r,args:e}})))})}getEnumValues(t,n,r){return __awaiter$b(this,void 0,void 0,function*(){if(this.enums[r])return this.enums[r];try{var e=(yield baseGraphQLApi({query:`{
948
948
  __type(name: "${r}") {
949
949
  enumValues {
950
950
  name
@@ -992,7 +992,7 @@ createScheduledJob(input:{
992
992
  }
993
993
  }
994
994
  }
995
- }`,graphEndpoint:i,token:o})).errors||(e=null==(s=null==n?void 0:n.data)?void 0:s.__type)&&(n=e["name"],(n={name:n,fields:[]}).fields=(e.fields||[]).map(e=>({name:e.name,args:e.args.map(e=>({name:e.name,type:this.typeBuilder(e.type)})),type:this.typeBuilder(null==e?void 0:e.type)})),this.types.push(n),e=n),a){const r=[];return null!==e&&void 0!==e&&e.fields.forEach(t=>{a.find(e=>t.name===e)&&r.push(t)}),r}return null===e||void 0===e?void 0:e.fields}})}typeBuilder(e){if(e.name)return e.name;let t="";return t=e.kind&&("NON_NULL"===e.kind&&(t=this.typeBuilder(e.ofType)+"!"),"LIST"===e.kind)?"["+this.typeBuilder(e.ofType)+"]":t}getQueries(){return this.query}getMutations(){return this.mutation}getTypes(){return this.types}isOperationValid(t,e){return e?!!this[e].find(e=>e.name===t):!!this.query.find(e=>e.name===t)||!!this.mutation.find(e=>e.name===t)}indentationChecker(e){let t=0,n=0;for(;" "===e[n];)t+=1,n+=1;return t}nestingChecker(e){let t=0;for(;t<e.length;)"{"===e[t][e[t].length-1]&&e[t+1]&&"}"===e[t+1][e[t+1].length-1]?e.splice(t,2):t+=1;if(2===e.length)throw new Error("Provided operation payload is not supported");return e}recursiveFieldCheck(d,p,f,h,m=[],g,n=1,v=2){var y;return __awaiter$b(this,void 0,void 0,function*(){let e=" ",r="",t=v;for(;t-1;)e+=" ",r+=" ",--t;!this.types.find(e=>e.name===p)&&p&&(yield this.getAvailableFields(f,h,p));let i=n;for(;i<d.length;){let n;const l=d[i].includes("...");l?(n=d[i].split("on")[1].split("{")[0].trim(),yield this.getAvailableFields(f,h,n)):n=d[i].trim().split("(")[0].trim().split("{")[0].trim();let t;t=n.includes(":")?n.split(":")[1]:n;var o=this.types.find(e=>l?e.name===n:e.name===(p||"").replace(/[\[\]!]+/g,""));if(o||"}"===n||l){var a=l?o:null==o?void 0:o.fields.find(e=>e.name===t);if(a||"}"===n){let t="";if(d[i].includes("(")&&a){var s=this.getParameters(d,i),s=this.paramsParser(s,g);if(s.length){const c=[],u=(null==(y=null==o?void 0:o.fields.find(e=>e.name===n))?void 0:y.args)||[];s.forEach(t=>{var e,n=u.find(e=>e.name in t&&t[e.name]===e.type);n&&(-1!==(e=this.params.findIndex(e=>t.field in e))&&(this.params[e].validated=!0),c.push(Object.assign(Object.assign({},n),{field:t.field})))}),c.length&&(t+="(",c.forEach(e=>t+=`${e.name}: ${e.field} `),t+=")")}}if(d[i].includes("{")&&a||l){l?m.push(`${e}... on ${n} ${t}{`):m.push(""+e+n+` ${t}{`);o=l?n:(null==a?void 0:a.type)||null;i=yield this.recursiveFieldCheck(d,o,f,h,m,g,i+1,v+1)}else{if(d[i].includes("}"))return m.push(r+"}"),i===d.length-1?this.nestingChecker(m).join("\n"):i;m.push(""+e+n)}}else if(d[i].includes("{")){let e=1;for(;e;)i+=1,d[i].includes("{")&&(e+=1),d[i].includes("}")&&--e}}i+=1}})}getParameters(e,t){return e[t].split("(")[1].split(")")[0].trim().replace(/:\s/g,":")}paramsParser(e,n){e=e.split(":");const r=[];e.forEach(e=>{e=e.trim();let t;e.includes(" ")&&(t=e.split(" ")),(t=e.includes(",")?e.split(","):t)?t.forEach(e=>r.push(e.trim())):r.push(e)});var i=[];for(let t=0;t<r.length-1;t++){var o=n.find(e=>r[t+1]in e);o&&(o={[r[t]]:o[r[t+1]],field:r[t+1],validated:!1},i.push(o)),t+=1}return i}queryParser(g,v,y){return __awaiter$b(this,void 0,void 0,function*(){this.params=[];try{this.initialized||(yield this.initialize(g,v,!1));var o=y.split("\n");let i,e="",t="";o[0].includes("(")?(1<(i=o[0].split("(")[0].trim()).split(" ").length&&([i,e]=i.split(" ")),(t=(t=(t=(t=this.getParameters(o,0)).includes(",")?t.split(",").join(""):t).split("$")).filter(e=>!!e)).forEach(e=>"$"+e.trim()),this.params=t.map(e=>{var[e,t]=e.split(":");return{["$"+e]:t.trim(),validated:!1}})):i=o[0].split("{")[0].trim(),i.includes(" ")&&([i,e]=i.split(" ")),i=i||"query";var a,n=o[1],s=this.indentationChecker(n),l=[];for(let r=1;r<o.length;r++){let n="";if(s===this.indentationChecker(o[r])){let t;let e;if(o[r].includes("(")?(t=o[r].split("(")[0].trim(),a=o[r].split("(")[1].split(")")[0].trim(),e=this.paramsParser(a,this.params)):t=o[r].split("{")[0].trim(),"}"!==t){const h=this[i].find(e=>e.name===t);if(e){const m=[];e.forEach(t=>{var e,n=h.args.find(e=>e.name in t&&t[e.name]===e.type);n&&(-1!==(e=this.params.findIndex(e=>t.field in e))&&(this.params[e].validated=!0),m.push(Object.assign(Object.assign({},n),{field:t.field})))}),m.length&&(n+="(",m.forEach(e=>n+=`${e.name}: ${e.field} `),n+=")")}l.push({operation:t,line:r,type:null===h||void 0===h?void 0:h.type,args:n})}}}let r="";for(let t=0;t<l.length;t++){var c=(l[t+1]||{}).line||o.length-1,u=l[t].type,d=o.slice(l[t].line,c),p=md5(d.join("").replace(/\s/g,""));let e;if("string"!=typeof(e=this.hashMap[p]?(isEqual_1("production","development")&&console.log(`returning ${l[t].operation} from memory`),this.hashMap[p]):yield this.recursiveFieldCheck(d,u,g,v,[` ${l[t].operation} ${l[t].args} {`],this.params)))throw new Error("Introspection utility failed while validating operation");this.hashMap[p]=e,r+="\n"+e+"\n"}if(r){let n="";if(this.params.forEach(e=>{var t;e.validated&&([e,t]=Object.entries(e)[0],n+=e+`: ${t} `)}),this.params.length&&!n)throw new Error("No valid parameters found");n=n&&"("+n+")",r=`${i} ${e} ${n} {`+r+"}";var f=this.params.filter(e=>!e.validated).map(e=>{var{}=e,e=__rest$5(e,["validated"]);return Object.keys(e)[0].replace("$","")});return{query:r,unsupportedArgs:f}}if(this.safety)throw new Error("Instrospection utility failed. Safety is ON");return isEqual_1("production","development")&&console.log("Instrospection utility failed. Safety is OFF. Proceeding with original operation payload"),{query:y}}catch(e){if(isEqual_1("production","development")&&console.error(e),!this.safety)return{query:y}}})}}var AuthContext,Status,MessageSeverity,gqlIntrospection=new GqlInstrospection;(AuthContext=AuthContext||{}).ResetPassword="ResetPassword",function(e){e.idle="idle",e.loading="loading",e.success="success",e.failure="failure",e.skipped="skipped",e.ready="ready"}(Status=Status||{});const namespace$4$2="auth",initialState$4$2={oAuthToken:"",oAuthStatus:Status.idle,initStatus:Status.idle,userId:"",sessionToken:"",user:{},status:Status.idle,authContext:null,errorMessage:null,userIsActive:!0},authSlice=createSlice({name:namespace$4$2,initialState:initialState$4$2,reducers:{fetchUserRequest(e){e.status=Status.loading},fetchUserSuccess(e,t){var n;e.sessionToken=(null==(n=t.payload)?void 0:n.token)||"",e.userId=(null==(n=t.payload)?void 0:n.userId)||"",e.user=Object.assign({},t.payload),e.status=Status.success},fetchUserError(e){e.status=Status.failure},updateTokenRequest(e,t){e.status=Status.idle},updateTokenSuccess(e,t){t=t.payload.token;e.sessionToken=t,e.user.token=t,e.oAuthStatus!==Status.success&&e.oAuthStatus!==Status.skipped||(e.status=Status.success)},updateTokenError(e){e.sessionToken="",e.status=Status.failure},updateUserLanguageStart(e,t){e.status=Status.loading},updateUserLanguageSuccess(e,t){e.user.preferredLanguage=t.payload,e.status=Status.success},refreshTokenRequest(e,t){e.status=Status.loading},refreshTokenSuccess(e,t){e.sessionToken=(null==(t=null==(t=t.payload)?void 0:t.refreshToken)?void 0:t.token)||"",e.status=Status.success},extendTokenRequest(e,t){e.status=Status.loading},extendTokenSuccess(e,t){e.sessionToken!==t.payload.token&&(e.sessionToken=t.payload.token),e.status=Status.success},setTokenExpiration(e,t){e.user=Object.assign(Object.assign({},e.user),{tokenExpiration:null==(e=t.payload)?void 0:e.expirationTime})},logoutRequest(e,t){e.status=Status.loading},logoutSuccess(e){e.status=Status.success},logoutError(e){e.status=Status.failure},resetPasswordRequest(e,t){e.status=Status.loading,e.errorMessage=null,e.authContext=AuthContext.ResetPassword},resetPasswordError(e,t){t=t.payload;e.status=Status.failure,e.errorMessage=t.message},resetPasswordSuccess(e){e.status=Status.success,e.errorMessage=null},oAuthGrantReadyToStart(e){e.oAuthStatus=Status.ready},oAuthGrantStart(e){e.oAuthStatus=Status.loading},oAuthGrantSkip(e){e.oAuthStatus=Status.skipped},oAuthGrantSuccess(e,t){e.oAuthToken=t.payload,e.oAuthStatus=Status.success},oAuthGrantFailure(e){e.oAuthStatus=Status.failure},sdkInitSuccess(e){e.initStatus=Status.success},sdkInitFailure(e){e.initStatus=Status.failure},updateUserRecentApplicationsStart(e,t){e.status=Status.loading},updateUserRecentApplicationsSuccess(e,t){e.user.recentApplications=t.payload,e.status=Status.success}}}),{fetchUserRequest,fetchUserSuccess,fetchUserError,refreshTokenRequest,refreshTokenSuccess,extendTokenRequest,extendTokenSuccess,setTokenExpiration,logoutRequest,logoutSuccess,logoutError,updateTokenRequest,updateTokenSuccess,updateTokenError,updateUserLanguageStart,updateUserLanguageSuccess,resetPasswordRequest,resetPasswordError,resetPasswordSuccess,oAuthGrantStart,oAuthGrantReadyToStart,oAuthGrantSkip,oAuthGrantSuccess,oAuthGrantFailure,sdkInitSuccess,sdkInitFailure,updateUserRecentApplicationsStart,updateUserRecentApplicationsSuccess}=authSlice.actions,authReducer=authSlice.reducer,namespace$3$2="configs",initialState$3$3={initConfig:{},config:null,status:"idle"},configsSlice=createSlice({name:namespace$3$2,initialState:initialState$3$3,reducers:{getInitConfig(e,t){e.initConfig=t.payload,e.status="loading"},getSessionTimeout(e,t){e.status="loading"},setSessionTimeout(e,t){e.status="success",e.config.sessionTimeout=t.payload},getConfigFail(e){e.status="failure"},getConfigSuccess(e,t){e.status="success",e.config=t.payload},enableBetaFeatures(e){e.initConfig=Object.assign(Object.assign({},e.initConfig),{betaFeatures:!0})},disableBetaFeatures(e){e.initConfig=Object.assign(Object.assign({},e.initConfig),{betaFeatures:!1})}}}),{getInitConfig,getConfigFail,getConfigSuccess,enableBetaFeatures,disableBetaFeatures,getSessionTimeout,setSessionTimeout}=configsSlice.actions,configsReducer=configsSlice.reducer,sessionTokenSelector=e=>{return null==(e=e[namespace$4$2])?void 0:e.sessionToken},authSelector=e=>(null==e?void 0:e[namespace$4$2])||{},userSelector$2=e=>{return null==(e=e[namespace$4$2])?void 0:e.user},selectHasUserCreateRootFolderPermission=e=>{return((null==(e=null==(e=e[namespace$4$2])?void 0:e.user)?void 0:e.myRights)||[]).some(e=>["collections.collections.create","cms.media.create","veritone.superadmin"].includes(e))},selectUserCanAccessResourceCenter=e=>{return((null==(e=null==(e=e[namespace$4$2])?void 0:e.user)?void 0:e.myRights)||[]).some(e=>{var t=["admin.access"].includes(e),n=["developer.engine.update","developer.engine.create","developer.engine.delete","developer.engine.disable","developer.engine.enable"].includes(e),e=["developer.docker.admin"].includes(e);return!(!t||!n&&!e)||!!n||!!e})},selectUserCanCreatePackage=e=>selectUserCanAccessResourceCenter(e),selectIsSuperAdmin=e=>{return((null==(e=null==(e=e[namespace$4$2])?void 0:e.user)?void 0:e.myRights)||[]).some(e=>["superadmin","veritone.superadmin"].includes(e))},selectOrgId=e=>{return null==(e=null==(e=null==(e=e[namespace$4$2])?void 0:e.user)?void 0:e.organization)?void 0:e.organizationId},authErrorMessage=e=>{return null==(e=e[namespace$4$2])?void 0:e.errorMessage},selectIsOLPEnabled=e=>{return"enabled"===(null==(e=null==(e=null==(e=null==(e=null==(e=e[namespace$4$2])?void 0:e.user)?void 0:e.organization)?void 0:e.kvp)?void 0:e.features)?void 0:e.enableRBACFeature)},selectUserOrgEdgeVersion=e=>{return null==(e=null==(e=null==(e=null==(e=null==(e=e[namespace$4$2])?void 0:e.user)?void 0:e.organization)?void 0:e.kvp)?void 0:e.features)?void 0:e.edgeVersion},selectUserOrgHideCmsFromAppList=e=>{return!0===(null==(e=null==(e=null==(e=null==(e=null==(e=e[namespace$4$2])?void 0:e.user)?void 0:e.organization)?void 0:e.kvp)?void 0:e.features)?void 0:e.hideCMSFromAppList)},authContextSelector=e=>{return null==(e=e[namespace$4$2])?void 0:e.authContext},authStatusSelector=e=>{return null==(e=e[namespace$4$2])?void 0:e.status},preferredLanguageSelector=e=>{var t;return null!=(t=null==(t=e[namespace$4$2])?void 0:t.user)&&t.preferredLanguage?null==(e=null==(t=e[namespace$4$2])?void 0:t.user)?void 0:e.preferredLanguage:"en"},selectIsUserAdmin=e=>{return null==(e=null==(e=null==(e=e[namespace$4$2])?void 0:e.user)?void 0:e.roles)?void 0:e.includes("superadmin")},oAuthTokenSelector=e=>{return null==(e=null==e?void 0:e[namespace$4$2])?void 0:e.oAuthToken},oAuthStatusSelector=e=>{return null==(e=null==e?void 0:e[namespace$4$2])?void 0:e.oAuthStatus},initStatusSelector=e=>{return null==(e=null==e?void 0:e[namespace$4$2])?void 0:e.initStatus},userRecentApplicationsSelector=e=>{var t;return null!=(t=null==(t=e[namespace$4$2])?void 0:t.user)&&t.recentApplications?JSON.parse(null==(e=null==(t=e[namespace$4$2])?void 0:t.user)?void 0:e.recentApplications):[]},rootApiSelector=e=>{return null==(e=null==(e=null==e?void 0:e[namespace$3$2])?void 0:e.config)?void 0:e.apiRoot},configSelector=e=>{return null==(e=null==e?void 0:e[namespace$3$2])?void 0:e.config},switchApiSelector=e=>{return null==(e=null==(e=null==e?void 0:e[namespace$3$2])?void 0:e.config)?void 0:e.switchAppUrl},cmsUrlSelector=e=>{return null==(e=null==(e=null==e?void 0:e[namespace$3$2])?void 0:e.config)?void 0:e.cmsAppUrl},graphEndpointSelector=e=>{return null==(e=null==(e=null==e?void 0:e[namespace$3$2])?void 0:e.config)?void 0:e.graphEndpoint},loginUrlSelector=e=>{return null==(e=null==(e=null==e?void 0:e[namespace$3$2])?void 0:e.config)?void 0:e.loginUrl},logoutUrlSelector=e=>{return null==(e=null==(e=null==e?void 0:e[namespace$3$2])?void 0:e.config)?void 0:e.logoutUrl},hidePasswordResetSelector=e=>{return null==(e=null==(e=null==e?void 0:e[namespace$3$2])?void 0:e.initConfig)?void 0:e.hidePasswordReset},logoutRedirectUrlSelector=e=>{return null==(e=null==(e=null==e?void 0:e[namespace$3$2])?void 0:e.initConfig)?void 0:e.logoutRedirectUrl},controllerNodeRedImageSelector=e=>{return null==(e=null==(e=null==e?void 0:e[namespace$3$2])?void 0:e.config)?void 0:e.controllerNodeRedImage},controllerUrlSelector=e=>{return null==(e=null==(e=null==e?void 0:e[namespace$3$2])?void 0:e.config)?void 0:e.controllerUrl},automateControllerUrlSelector=e=>{return null==(e=null==(e=null==e?void 0:e[namespace$3$2])?void 0:e.config)?void 0:e.automateControllerUrl},automateUrlSelector=e=>{return null==(e=null==(e=null==e?void 0:e[namespace$3$2])?void 0:e.config)?void 0:e.automateUrl},baseUrlSelector=e=>{return null==(e=null==(e=null==e?void 0:e[namespace$3$2])?void 0:e.initConfig)?void 0:e.baseUrl},initialConfigSelector=e=>{return null==(e=null==e?void 0:e[namespace$3$2])?void 0:e.initConfig},sessionTimeoutSelector=e=>{return null==(e=null==(e=null==e?void 0:e[namespace$3$2])?void 0:e.config)?void 0:e.sessionTimeout},betaFeaturesSelector=e=>{return null==(e=null==(e=null==e?void 0:e[namespace$3$2])?void 0:e.initConfig)?void 0:e.betaFeatures},appIdSelector=e=>{return null==(e=null==(e=null==e?void 0:e[namespace$3$2])?void 0:e.initConfig)?void 0:e.applicationId},selectDesktopUrl=e=>{return null==(e=null==(e=null==e?void 0:e[namespace$3$2])?void 0:e.config)?void 0:e.desktopAppUrl},oauthRedirectUriSelector=e=>{return(null==(e=null==(e=null==e?void 0:e[namespace$3$2])?void 0:e.initConfig)?void 0:e.oAuthRedirectUri)||window.location.protocol+"//"+window.location.hostname},selectApiConfigs$2=createSelector$1([rootApiSelector,graphEndpointSelector,sessionTokenSelector],(e,t,n)=>({apiRoot:e,graphQLEndpoint:t,token:n})),getAppConfig=(e,t)=>__awaiter$b(void 0,void 0,void 0,function*(){try{return yield baseGraphQLApi({query:`query {
995
+ }`,graphEndpoint:i,token:o})).errors||(e=null==(s=null==n?void 0:n.data)?void 0:s.__type)&&(n=e["name"],(n={name:n,fields:[]}).fields=(e.fields||[]).map(e=>({name:e.name,args:e.args.map(e=>({name:e.name,type:this.typeBuilder(e.type)})),type:this.typeBuilder(null==e?void 0:e.type)})),this.types.push(n),e=n),a){const r=[];return null!==e&&void 0!==e&&e.fields.forEach(t=>{a.find(e=>t.name===e)&&r.push(t)}),r}return null===e||void 0===e?void 0:e.fields}})}typeBuilder(e){if(e.name)return e.name;let t="";return t=e.kind&&("NON_NULL"===e.kind&&(t=this.typeBuilder(e.ofType)+"!"),"LIST"===e.kind)?"["+this.typeBuilder(e.ofType)+"]":t}getQueries(){return this.query}getMutations(){return this.mutation}getTypes(){return this.types}isOperationValid(t,e){return e?!!this[e].find(e=>e.name===t):!!this.query.find(e=>e.name===t)||!!this.mutation.find(e=>e.name===t)}indentationChecker(e){let t=0,n=0;for(;" "===e[n];)t+=1,n+=1;return t}nestingChecker(e){let t=0;for(;t<e.length;)"{"===e[t][e[t].length-1]&&e[t+1]&&"}"===e[t+1][e[t+1].length-1]?e.splice(t,2):t+=1;if(2===e.length)throw new Error("Provided operation payload is not supported");return e}recursiveFieldCheck(d,p,f,h,m=[],g,n=1,v=2){var y;return __awaiter$b(this,void 0,void 0,function*(){let e=" ",r="",t=v;for(;t-1;)e+=" ",r+=" ",--t;!this.types.find(e=>e.name===p)&&p&&(yield this.getAvailableFields(f,h,p));let i=n;for(;i<d.length;){let n;const l=d[i].includes("...");l?(n=d[i].split("on")[1].split("{")[0].trim(),yield this.getAvailableFields(f,h,n)):n=d[i].trim().split("(")[0].trim().split("{")[0].trim();let t;t=n.includes(":")?n.split(":")[1]:n;var o=this.types.find(e=>l?e.name===n:e.name===(p||"").replace(/[\[\]!]+/g,""));if(o||"}"===n||l){var a=l?o:null==o?void 0:o.fields.find(e=>e.name===t);if(a||"}"===n){let t="";if(d[i].includes("(")&&a){var s=this.getParameters(d,i),s=this.paramsParser(s,g);if(s.length){const c=[],u=(null==(y=null==o?void 0:o.fields.find(e=>e.name===n))?void 0:y.args)||[];s.forEach(t=>{var e,n=u.find(e=>e.name in t&&t[e.name]===e.type);n&&(-1!==(e=this.params.findIndex(e=>t.field in e))&&(this.params[e].validated=!0),c.push(Object.assign(Object.assign({},n),{field:t.field})))}),c.length&&(t+="(",c.forEach(e=>t+=`${e.name}: ${e.field} `),t+=")")}}if(d[i].includes("{")&&a||l){l?m.push(`${e}... on ${n} ${t}{`):m.push(""+e+n+` ${t}{`);o=l?n:(null==a?void 0:a.type)||null;i=yield this.recursiveFieldCheck(d,o,f,h,m,g,i+1,v+1)}else{if(d[i].includes("}"))return m.push(r+"}"),i===d.length-1?this.nestingChecker(m).join("\n"):i;m.push(""+e+n)}}else if(d[i].includes("{")){let e=1;for(;e;)i+=1,d[i].includes("{")&&(e+=1),d[i].includes("}")&&--e}}i+=1}})}getParameters(e,t){return e[t].split("(")[1].split(")")[0].trim().replace(/:\s/g,":")}paramsParser(e,n){e=e.split(":");const r=[];e.forEach(e=>{e=e.trim();let t;e.includes(" ")&&(t=e.split(" ")),(t=e.includes(",")?e.split(","):t)?t.forEach(e=>r.push(e.trim())):r.push(e)});var i=[];for(let t=0;t<r.length-1;t++){var o=n.find(e=>r[t+1]in e);o&&(o={[r[t]]:o[r[t+1]],field:r[t+1],validated:!1},i.push(o)),t+=1}return i}queryParser(g,v,y,x=!0){return __awaiter$b(this,void 0,void 0,function*(){this.params=[];try{this.initialized||(yield this.initialize(g,v,!1));var o=y.split("\n");let i,e="",t="";o[0].includes("(")?(1<(i=o[0].split("(")[0].trim()).split(" ").length&&([i,e]=i.split(" ")),(t=(t=(t=(t=this.getParameters(o,0)).includes(",")?t.split(",").join(""):t).split("$")).filter(e=>!!e)).forEach(e=>"$"+e.trim()),this.params=t.map(e=>{var[e,t]=e.split(":");return{["$"+e]:t.trim(),validated:!1}})):i=o[0].split("{")[0].trim(),i.includes(" ")&&([i,e]=i.split(" ")),i=i||"query";var a,n=o[1],s=this.indentationChecker(n),l=[];for(let r=1;r<o.length;r++){let n="";if(s===this.indentationChecker(o[r])){let t;let e;if(o[r].includes("(")?(t=o[r].split("(")[0].trim(),a=o[r].split("(")[1].split(")")[0].trim(),e=this.paramsParser(a,this.params)):t=o[r].split("{")[0].trim(),"}"!==t){const h=this[i].find(e=>e.name===t);if(e){const m=[];e.forEach(t=>{var e,n=h.args.find(e=>e.name in t&&t[e.name]===e.type);n&&(-1!==(e=this.params.findIndex(e=>t.field in e))&&(this.params[e].validated=!0),m.push(Object.assign(Object.assign({},n),{field:t.field})))}),m.length&&(n+="(",m.forEach(e=>n+=`${e.name}: ${e.field} `),n+=")")}l.push({operation:t,line:r,type:null===h||void 0===h?void 0:h.type,args:n})}}}let r="";for(let t=0;t<l.length;t++){var c=(l[t+1]||{}).line||o.length-1,u=l[t].type,d=o.slice(l[t].line,c),p=md5(d.join("").replace(/\s/g,""));let e;if("string"!=typeof(e=this.hashMap[p]?(isEqual_1("production","development")&&console.log(`returning ${l[t].operation} from memory`),this.hashMap[p]):yield this.recursiveFieldCheck(d,u,g,v,[` ${l[t].operation} ${l[t].args} {`],this.params)))throw new Error("Introspection utility failed while validating operation");this.hashMap[p]=e,r+="\n"+e+"\n"}if(r){let n="";if(this.params.forEach(e=>{var t;e.validated&&([e,t]=Object.entries(e)[0],n+=e+`: ${t} `)}),this.params.length&&!n&&x)throw new Error("No valid parameters found");n=n&&"("+n+")",r=`${i} ${e} ${n} {`+r+"}";var f=this.params.filter(e=>!e.validated).map(e=>{var{}=e,e=__rest$5(e,["validated"]);return Object.keys(e)[0].replace("$","")});return{query:r,unsupportedArgs:f}}if(this.safety)throw new Error("Instrospection utility failed. Safety is ON");return isEqual_1("production","development")&&console.log("Instrospection utility failed. Safety is OFF. Proceeding with original operation payload"),{query:y}}catch(e){if(isEqual_1("production","development")&&console.error(e),!this.safety)return{query:y}}})}}var AuthContext,Status,MessageSeverity,gqlIntrospection=new GqlInstrospection;(AuthContext=AuthContext||{}).ResetPassword="ResetPassword",function(e){e.idle="idle",e.loading="loading",e.success="success",e.failure="failure",e.skipped="skipped",e.ready="ready"}(Status=Status||{});const namespace$4$2="auth",initialState$4$2={oAuthToken:"",oAuthStatus:Status.idle,initStatus:Status.idle,userId:"",sessionToken:"",user:{},status:Status.idle,authContext:null,errorMessage:null,userIsActive:!0},authSlice=createSlice({name:namespace$4$2,initialState:initialState$4$2,reducers:{fetchUserRequest(e){e.status=Status.loading},fetchUserSuccess(e,t){var n;e.sessionToken=(null==(n=t.payload)?void 0:n.token)||"",e.userId=(null==(n=t.payload)?void 0:n.userId)||"",e.user=Object.assign({},t.payload),e.status=Status.success},fetchUserError(e){e.status=Status.failure},updateTokenRequest(e,t){e.status=Status.idle},updateTokenSuccess(e,t){t=t.payload.token;e.sessionToken=t,e.user.token=t,e.oAuthStatus!==Status.success&&e.oAuthStatus!==Status.skipped||(e.status=Status.success)},updateTokenError(e){e.sessionToken="",e.status=Status.failure},updateUserLanguageStart(e,t){e.status=Status.loading},updateUserLanguageSuccess(e,t){e.user.preferredLanguage=t.payload,e.status=Status.success},refreshTokenRequest(e,t){e.status=Status.loading},refreshTokenSuccess(e,t){e.sessionToken=(null==(t=null==(t=t.payload)?void 0:t.refreshToken)?void 0:t.token)||"",e.status=Status.success},extendTokenRequest(e,t){e.status=Status.loading},extendTokenSuccess(e,t){e.sessionToken!==t.payload.token&&(e.sessionToken=t.payload.token),e.status=Status.success},setTokenExpiration(e,t){e.user=Object.assign(Object.assign({},e.user),{tokenExpiration:null==(e=t.payload)?void 0:e.expirationTime})},logoutRequest(e,t){e.status=Status.loading},logoutSuccess(e){e.status=Status.success},logoutError(e){e.status=Status.failure},resetPasswordRequest(e,t){e.status=Status.loading,e.errorMessage=null,e.authContext=AuthContext.ResetPassword},resetPasswordError(e,t){t=t.payload;e.status=Status.failure,e.errorMessage=t.message},resetPasswordSuccess(e){e.status=Status.success,e.errorMessage=null},oAuthGrantReadyToStart(e){e.oAuthStatus=Status.ready},oAuthGrantStart(e){e.oAuthStatus=Status.loading},oAuthGrantSkip(e){e.oAuthStatus=Status.skipped},oAuthGrantSuccess(e,t){e.oAuthToken=t.payload,e.oAuthStatus=Status.success},oAuthGrantFailure(e){e.oAuthStatus=Status.failure},sdkInitSuccess(e){e.initStatus=Status.success},sdkInitFailure(e){e.initStatus=Status.failure},updateUserRecentApplicationsStart(e,t){e.status=Status.loading},updateUserRecentApplicationsSuccess(e,t){e.user.recentApplications=t.payload,e.status=Status.success}}}),{fetchUserRequest,fetchUserSuccess,fetchUserError,refreshTokenRequest,refreshTokenSuccess,extendTokenRequest,extendTokenSuccess,setTokenExpiration,logoutRequest,logoutSuccess,logoutError,updateTokenRequest,updateTokenSuccess,updateTokenError,updateUserLanguageStart,updateUserLanguageSuccess,resetPasswordRequest,resetPasswordError,resetPasswordSuccess,oAuthGrantStart,oAuthGrantReadyToStart,oAuthGrantSkip,oAuthGrantSuccess,oAuthGrantFailure,sdkInitSuccess,sdkInitFailure,updateUserRecentApplicationsStart,updateUserRecentApplicationsSuccess}=authSlice.actions,authReducer=authSlice.reducer,namespace$3$2="configs",initialState$3$3={initConfig:{},config:null,status:"idle"},configsSlice=createSlice({name:namespace$3$2,initialState:initialState$3$3,reducers:{getInitConfig(e,t){e.initConfig=t.payload,e.status="loading"},getSessionTimeout(e,t){e.status="loading"},setSessionTimeout(e,t){e.status="success",e.config.sessionTimeout=t.payload},getConfigFail(e){e.status="failure"},getConfigSuccess(e,t){e.status="success",e.config=t.payload},enableBetaFeatures(e){e.initConfig=Object.assign(Object.assign({},e.initConfig),{betaFeatures:!0})},disableBetaFeatures(e){e.initConfig=Object.assign(Object.assign({},e.initConfig),{betaFeatures:!1})}}}),{getInitConfig,getConfigFail,getConfigSuccess,enableBetaFeatures,disableBetaFeatures,getSessionTimeout,setSessionTimeout}=configsSlice.actions,configsReducer=configsSlice.reducer,sessionTokenSelector=e=>{return null==(e=e[namespace$4$2])?void 0:e.sessionToken},authSelector=e=>(null==e?void 0:e[namespace$4$2])||{},userSelector$2=e=>{return null==(e=e[namespace$4$2])?void 0:e.user},selectHasUserCreateRootFolderPermission=e=>{return((null==(e=null==(e=e[namespace$4$2])?void 0:e.user)?void 0:e.myRights)||[]).some(e=>["collections.collections.create","cms.media.create","veritone.superadmin"].includes(e))},selectUserCanAccessResourceCenter=e=>{return((null==(e=null==(e=e[namespace$4$2])?void 0:e.user)?void 0:e.myRights)||[]).some(e=>{var t=["admin.access"].includes(e),n=["developer.engine.update","developer.engine.create","developer.engine.delete","developer.engine.disable","developer.engine.enable"].includes(e),e=["developer.docker.admin"].includes(e);return!(!t||!n&&!e)||!!n||!!e})},selectUserCanCreatePackage=e=>selectUserCanAccessResourceCenter(e),selectIsSuperAdmin=e=>{return((null==(e=null==(e=e[namespace$4$2])?void 0:e.user)?void 0:e.myRights)||[]).some(e=>["superadmin","veritone.superadmin"].includes(e))},selectOrgId=e=>{return null==(e=null==(e=null==(e=e[namespace$4$2])?void 0:e.user)?void 0:e.organization)?void 0:e.organizationId},authErrorMessage=e=>{return null==(e=e[namespace$4$2])?void 0:e.errorMessage},selectIsOLPEnabled=e=>{return"enabled"===(null==(e=null==(e=null==(e=null==(e=null==(e=e[namespace$4$2])?void 0:e.user)?void 0:e.organization)?void 0:e.kvp)?void 0:e.features)?void 0:e.enableRBACFeature)},selectUserOrgEdgeVersion=e=>{return null==(e=null==(e=null==(e=null==(e=null==(e=e[namespace$4$2])?void 0:e.user)?void 0:e.organization)?void 0:e.kvp)?void 0:e.features)?void 0:e.edgeVersion},selectUserOrgHideCmsFromAppList=e=>{return!0===(null==(e=null==(e=null==(e=null==(e=null==(e=e[namespace$4$2])?void 0:e.user)?void 0:e.organization)?void 0:e.kvp)?void 0:e.features)?void 0:e.hideCMSFromAppList)},authContextSelector=e=>{return null==(e=e[namespace$4$2])?void 0:e.authContext},authStatusSelector=e=>{return null==(e=e[namespace$4$2])?void 0:e.status},preferredLanguageSelector=e=>{var t;return null!=(t=null==(t=e[namespace$4$2])?void 0:t.user)&&t.preferredLanguage?null==(e=null==(t=e[namespace$4$2])?void 0:t.user)?void 0:e.preferredLanguage:"en"},selectIsUserAdmin=e=>{return null==(e=null==(e=null==(e=e[namespace$4$2])?void 0:e.user)?void 0:e.roles)?void 0:e.includes("superadmin")},oAuthTokenSelector=e=>{return null==(e=null==e?void 0:e[namespace$4$2])?void 0:e.oAuthToken},oAuthStatusSelector=e=>{return null==(e=null==e?void 0:e[namespace$4$2])?void 0:e.oAuthStatus},initStatusSelector=e=>{return null==(e=null==e?void 0:e[namespace$4$2])?void 0:e.initStatus},userRecentApplicationsSelector=e=>{var t;return null!=(t=null==(t=e[namespace$4$2])?void 0:t.user)&&t.recentApplications?JSON.parse(null==(e=null==(t=e[namespace$4$2])?void 0:t.user)?void 0:e.recentApplications):[]},rootApiSelector=e=>{return null==(e=null==(e=null==e?void 0:e[namespace$3$2])?void 0:e.config)?void 0:e.apiRoot},configSelector=e=>{return null==(e=null==e?void 0:e[namespace$3$2])?void 0:e.config},switchApiSelector=e=>{return null==(e=null==(e=null==e?void 0:e[namespace$3$2])?void 0:e.config)?void 0:e.switchAppUrl},cmsUrlSelector=e=>{return null==(e=null==(e=null==e?void 0:e[namespace$3$2])?void 0:e.config)?void 0:e.cmsAppUrl},graphEndpointSelector=e=>{return null==(e=null==(e=null==e?void 0:e[namespace$3$2])?void 0:e.config)?void 0:e.graphEndpoint},loginUrlSelector=e=>{return null==(e=null==(e=null==e?void 0:e[namespace$3$2])?void 0:e.config)?void 0:e.loginUrl},logoutUrlSelector=e=>{return null==(e=null==(e=null==e?void 0:e[namespace$3$2])?void 0:e.config)?void 0:e.logoutUrl},hidePasswordResetSelector=e=>{return null==(e=null==(e=null==e?void 0:e[namespace$3$2])?void 0:e.initConfig)?void 0:e.hidePasswordReset},logoutRedirectUrlSelector=e=>{return null==(e=null==(e=null==e?void 0:e[namespace$3$2])?void 0:e.initConfig)?void 0:e.logoutRedirectUrl},controllerNodeRedImageSelector=e=>{return null==(e=null==(e=null==e?void 0:e[namespace$3$2])?void 0:e.config)?void 0:e.controllerNodeRedImage},controllerUrlSelector=e=>{return null==(e=null==(e=null==e?void 0:e[namespace$3$2])?void 0:e.config)?void 0:e.controllerUrl},automateControllerUrlSelector=e=>{return null==(e=null==(e=null==e?void 0:e[namespace$3$2])?void 0:e.config)?void 0:e.automateControllerUrl},automateUrlSelector=e=>{return null==(e=null==(e=null==e?void 0:e[namespace$3$2])?void 0:e.config)?void 0:e.automateUrl},baseUrlSelector=e=>{return null==(e=null==(e=null==e?void 0:e[namespace$3$2])?void 0:e.initConfig)?void 0:e.baseUrl},initialConfigSelector=e=>{return null==(e=null==e?void 0:e[namespace$3$2])?void 0:e.initConfig},sessionTimeoutSelector=e=>{return null==(e=null==(e=null==e?void 0:e[namespace$3$2])?void 0:e.config)?void 0:e.sessionTimeout},betaFeaturesSelector=e=>{return null==(e=null==(e=null==e?void 0:e[namespace$3$2])?void 0:e.initConfig)?void 0:e.betaFeatures},appIdSelector=e=>{return null==(e=null==(e=null==e?void 0:e[namespace$3$2])?void 0:e.initConfig)?void 0:e.applicationId},selectDesktopUrl=e=>{return null==(e=null==(e=null==e?void 0:e[namespace$3$2])?void 0:e.config)?void 0:e.desktopAppUrl},oauthRedirectUriSelector=e=>{return(null==(e=null==(e=null==e?void 0:e[namespace$3$2])?void 0:e.initConfig)?void 0:e.oAuthRedirectUri)||window.location.protocol+"//"+window.location.hostname},selectApiConfigs$2=createSelector$1([rootApiSelector,graphEndpointSelector,sessionTokenSelector],(e,t,n)=>({apiRoot:e,graphQLEndpoint:t,token:n})),getAppConfig=(e,t)=>__awaiter$b(void 0,void 0,void 0,function*(){try{return yield baseGraphQLApi({query:`query {
996
996
  staticAppConfig {
997
997
  apiRoot
998
998
  switchAppUrl
@@ -1507,7 +1507,7 @@ createScheduledJob(input:{
1507
1507
  100% {
1508
1508
  opacity: 0;
1509
1509
  }
1510
- `),useStyles$2$1=makeStyles()(()=>({fullScreen:{position:"fixed",width:"100%",height:"100vh",top:"0",left:"0",backgroundColor:"#ffffff",display:"flex",justifyContent:"center",alignItems:"center",flexDirection:"column",textAlign:"center",fontSize:"14px",zIndex:99999,animation:fadeInOut+" 5s linear forwards"},loaderBox:{height:"200px",width:"200px"},veritoneDarkLogo:{height:"200px",width:"200px"}})),useStyles$1$1=makeStyles()(e=>({flexContainer:{display:"flex",alignItems:"center"},header:{alignItems:"center",display:"flex",justifyContent:"space-between",height:"55px",padding:e.spacing(6,0,6,6),borderBottom:"1px solid rgb(219, 226, 234)"},headerActionContainer:{alignItems:"center",display:"flex",flexGrow:1,height:"100%",justifyContent:"flex-end",paddingRight:"10px"},title:{color:"#2A323C"},panelRoot:{padding:"15px",height:"calc(100% - 70px);",overflowY:"scroll"},row:{display:"flex","& svg":{marginRight:"12px",marginBottom:"24px"}},widgets:{"& svg":{fill:"#555F7C"}},veriLogo:{transform:"translate(3px, 2px)"},versionText:{textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden",marginBottom:"5px"},wrapperBox:{padding:"15px 0 15px 0px",marginBottom:"14px"},aiwareLogo:{marginBottom:"10px",marginTop:"10px",width:"151px"},boldTitle:{fontWeight:700},gridBox:{background:"#F7F7F7",padding:"10px",color:"#2A323C"},valueBox:{background:"#F7F7F7",padding:"10px",color:"#2A323C",whiteSpace:"nowrap",textTransform:"capitalize"},imageContainer:{textAlign:"center"},falconLogo:{width:"148px"},osInfo:{display:"flex",justifyContent:"center","& *":{textAlign:"center"}},osName:{padding:"5px 8px",background:"#465364",color:"white",textTransform:"uppercase",fontWeight:"700",borderRadius:"4px"},osVersion:{color:"#5C6269"}})),versionPanelLabels=e=>({closePanelTooltip:e.formatMessage({id:"version-panel.header.close-btn-tooltip",defaultMessage:[{type:0,value:"Close panel"}]}),versionInformationLabel:e.formatMessage({id:"version-panel.version-information-title",defaultMessage:[{type:0,value:"Version Information"}]}),versionLabel:e.formatMessage({id:"version-panel.version-title",defaultMessage:[{type:0,value:"Version"}]}),viewReleaseNotes:e.formatMessage({id:"version-panel.view-release-notes",defaultMessage:[{type:0,value:"View Release Notes"}]}),noVersionInfo:e.formatMessage({id:"version-panel.no-info-label",defaultMessage:[{type:0,value:"Cannot get version information"}]}),clusterSizeLabel:e.formatMessage({id:"version-panel.cluster-size-label",defaultMessage:[{type:0,value:"Cluster Size"}]}),environmentLabel:e.formatMessage({id:"version-panel.environment-label",defaultMessage:[{type:0,value:"Environment"}]}),hostingTypeLabel:e.formatMessage({id:"version-panel.hosting-type-label",defaultMessage:[{type:0,value:"Hosting Type"}]}),infrastructureLabel:e.formatMessage({id:"version-panel.infrastructure-label",defaultMessage:[{type:0,value:"Infrastructure"}]})}),Header$1=()=>{const e=useDispatch();var t=useStyles$1$1()["classes"],n=useIntl(),{versionInformationLabel:n,closePanelTooltip:r}=versionPanelLabels(n);return jsxRuntime.exports.jsxs("header",Object.assign({className:t.header,"data-testid":"create-or-update-token-panel.header"},{children:[jsxRuntime.exports.jsx(Typography$1,Object.assign({variant:"h1","data-testid":"permissions-panel-header-title",className:t.title},{children:n})),jsxRuntime.exports.jsx("div",Object.assign({className:t.headerActionContainer},{children:jsxRuntime.exports.jsx(Tooltip$1,Object.assign({title:r},{children:jsxRuntime.exports.jsx(IconButton$1,Object.assign({onClick:()=>e(hidePanel$1(VERSION_PANEL)),"aria-labelledby":"version-panel.close-button","data-testid":"version-panel.close-button",size:"large"},{children:jsxRuntime.exports.jsx(Close$1,{})}))}))}))]}))},selectLoadingStatus=e=>{return null==(e=null==(e=null==e?void 0:e[PANEL_SLICE])?void 0:e[VERSION_PANEL_NAMESPACE])?void 0:e.status},selectCurrentVersion=e=>{return null==(e=null==(e=null==e?void 0:e[PANEL_SLICE])?void 0:e[VERSION_PANEL_NAMESPACE])?void 0:e.currentVersion},selectPreviousVersion=e=>{return null==(e=null==(e=null==e?void 0:e[PANEL_SLICE])?void 0:e[VERSION_PANEL_NAMESPACE])?void 0:e.previousVersion},selectPlatformProperties=e=>{return null==(e=null==(e=null==e?void 0:e[PANEL_SLICE])?void 0:e[VERSION_PANEL_NAMESPACE])?void 0:e.platformProperties},VERSION_PANEL="VERSION_PANEL",VersionChangelogNullState=({label:e})=>{var t=useStyles$1$1()["classes"];return jsxRuntime.exports.jsx(Box$1,Object.assign({className:t.gridBox,sx:{fontWeight:700,textAlign:"center",mb:"5px"}},{children:e}))},VersionPanelComponent=({sdk:e,edge:t,core:n})=>{const r=useStyles$1$1()["classes"];var i=useIntl();const o=useDispatch(),{versionLabel:a,viewReleaseNotes:s,noVersionInfo:l,clusterSizeLabel:c,environmentLabel:u,hostingTypeLabel:d,infrastructureLabel:p}=versionPanelLabels(i);var i=useSelector(betaFeaturesSelector),f=useSelector(selectPlatformProperties),h=useSelector(selectLoadingStatus);const m={sdk:e,core:n,edge:null!=t&&t.includes("<Error>")?void 0:t};react.exports.useEffect(()=>{o(actions$1.fetchVersionInfoStart())},[o]);var g=jsxRuntime.exports.jsx(Box$1,Object.assign({className:r.osInfo},{children:jsxRuntime.exports.jsxs(Box$1,{children:[jsxRuntime.exports.jsx(Box$1,Object.assign({className:r.osName},{children:jsxRuntime.exports.jsx(Typography$1,Object.assign({variant:"body2",sx:{fontWeight:700}},{children:"Falcon"}))})),jsxRuntime.exports.jsx(Box$1,Object.assign({className:r.osVersion},{children:jsxRuntime.exports.jsxs(Typography$1,Object.assign({variant:"caption"},{children:[a," 2.0"]}))}))]})}));const v={ClusterSize:c,Environment:u,HostingType:d,Infrastructure:p};return jsxRuntime.exports.jsxs(Box$1,{children:[jsxRuntime.exports.jsx(Header$1,{}),jsxRuntime.exports.jsxs("div",Object.assign({className:r.panelRoot},{children:[jsxRuntime.exports.jsxs(Box$1,Object.assign({className:r.wrapperBox},{children:[jsxRuntime.exports.jsxs(Box$1,Object.assign({sx:{p:"20px"}},{children:[i&&(e||t||n)&&jsxRuntime.exports.jsx(Box$1,Object.assign({className:r.imageContainer},{children:jsxRuntime.exports.jsx("img",{src:img$3,className:r.falconLogo,alt:"system-logo"})})),jsxRuntime.exports.jsx(Box$1,Object.assign({className:r.imageContainer},{children:jsxRuntime.exports.jsx("img",{src:img$1,className:r.aiwareLogo,alt:"aiware-logo"})})),i&&(e||t||n)&&g]})),e||t||n||f||["idle","pending"].includes(h)?jsxRuntime.exports.jsxs(Grid$1,Object.assign({container:!0,sx:{mt:"10px"}},{children:[Object.keys(m).map(e=>m[e]?jsxRuntime.exports.jsxs(react.exports.Fragment,{children:[jsxRuntime.exports.jsx(Grid$1,Object.assign({item:!0,xs:9,sx:{p:"2px"}},{children:jsxRuntime.exports.jsxs(Box$1,Object.assign({className:r.gridBox,sx:{fontWeight:700}},{children:[e.charAt(0).toUpperCase()+e.slice(1)," ",a,":"]}))})),jsxRuntime.exports.jsx(Grid$1,Object.assign({item:!0,xs:3,sx:{p:"2px"}},{children:jsxRuntime.exports.jsx(Box$1,Object.assign({className:r.gridBox},{children:m[e]}))}))]},e):null),f&&Object.entries(f).map(([e,t])=>v[e]&&jsxRuntime.exports.jsxs(react.exports.Fragment,{children:[jsxRuntime.exports.jsx(Grid$1,Object.assign({item:!0,xs:9,sx:{p:"2px"}},{children:jsxRuntime.exports.jsxs(Box$1,Object.assign({className:r.gridBox,sx:{fontWeight:700}},{children:[v[e],":"]}))})),jsxRuntime.exports.jsx(Grid$1,Object.assign({item:!0,xs:3,sx:{p:"2px"}},{children:jsxRuntime.exports.jsx(Box$1,Object.assign({className:r.valueBox},{children:t}))}))]},e))]})):jsxRuntime.exports.jsx(VersionChangelogNullState,{label:l})]})),i&&jsxRuntime.exports.jsx(Button$1,Object.assign({sx:{width:"100%",cursor:"pointer"},variant:"outlined",onClick:()=>{}},{children:s}))]}))]})},VersionPanel=e=>jsxRuntime.exports.jsx(DynamicModuleLoader,Object.assign({modules:[getPanelModule()]},{children:jsxRuntime.exports.jsx(VersionPanelComponent,Object.assign({},e))})),dateFormatter=e=>{e=new Date(e||"");return(8<e.getMonth()?e.getMonth()+1:"0"+(e.getMonth()+1))+"/"+(9<e.getDate()?e.getDate():"0"+e.getDate())+"/"+e.getFullYear()};let lottieScript,audio;const theme=createTheme({palette:{secondary:{main:"#1871E8"}}}),Logo_=({intl:n})=>{const r=useDispatch();var e=useStyles$2$1()["classes"];const[i,o]=react.exports.useState(0),[t,a]=react.exports.useState(!1),[s,l]=react.exports.useState(!1),c=jsxRuntime.exports.jsx("p",Object.assign({style:{pointerEvents:"none"}},{children:"Loading Beta Features"})),[u,d]=react.exports.useState(c),p=useSelector(organizations_selector.selectOrgSwitchInitiated),f=useSelector(e=>{return null==(e=null==(e=null==e?void 0:e.configs)?void 0:e.initConfig)?void 0:e.betaFeatures}),[h,m]=react.exports.useState(!1),[g,v]=react.exports.useState(""),[y,x]=react.exports.useState(""),[b,C]=react.exports.useState(""),[$,S]=react.exports.useState(!1);react.exports.useEffect(()=>{h||(m(!0),(lottieScript=document.createElement("script")).setAttribute("src","https://cdnjs.cloudflare.com/ajax/libs/bodymovin/5.7.8/lottie.min.js"),lottieScript.onload=()=>l(!0),(audio=document.createElement("audio")).id="player",audio.src="https://static.veritone.com/aiware-js-animation/sound-effects/chime.wav",document.head.appendChild(lottieScript),document.body.appendChild(audio)),has_1(window,"aiware.version")&&((t=null==(t=window.aiware)?void 0:t.version)&&"undefined"!==t&&v(t),t=null==(t=window.aiware)?void 0:t.releaseDate,x(dateFormatter(t)));var t=document.getElementsByTagName("script");if(t.length){let e=Array.from(t).find(e=>e.src.includes("get.aiware.com"));(e=e||Array.from(t).find(e=>e.src.includes("https://cdn.jsdelivr.net/npm/aiware-js")))&&fetch(e.getAttribute("src")).then(e=>{v(e.url.split("@")[1].split("/")[0])})}fetch("https://get.aiware.com/aiware-versions/aiware-latest.txt",{headers:{"Content-Type":"text/plain"}}).then(e=>e.text()).then(e=>C(e))},[]),react.exports.useEffect(()=>{if(f&&!p)return;p&&d(jsxRuntime.exports.jsx("p",{children:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-organization-panel.organizations-switching-loader-message",defaultMessage:"Changing your Organization",description:"organizations switching loader message"})}));const e=10===i;if((e||p)&&(a(!0),s)){const t=window.bodymovin.loadAnimation({container:document.getElementById("loaderAnimation"),path:"https://static.veritone.com/aiware-js-animation/particle-explosion.json",renderer:"svg",loop:!1,autoplay:!0,name:"unicorn"});t.onComplete=()=>{e?(r(enableBetaFeatures()),o(0)):p&&d(c),a(!1),t.destroy()},null!==audio&&void 0!==audio&&audio.play()}},[i,f,r,t,p]);return jsxRuntime.exports.jsxs(react.exports.Fragment,{children:[t&&jsxRuntime.exports.jsxs("div",Object.assign({className:e.fullScreen},{children:[jsxRuntime.exports.jsx("div",Object.assign({className:e.loaderBox,id:"loaderAnimation"},{children:!s&&jsxRuntime.exports.jsx("img",{src:img$5,alt:"veritone-logo",className:e.veritoneDarkLogo})})),jsxRuntime.exports.jsxs("div",Object.assign({className:e.loaderBox},{children:[jsxRuntime.exports.jsx(StyledEngineProvider,Object.assign({injectFirst:!0},{children:jsxRuntime.exports.jsx(ThemeProvider,Object.assign({theme:theme},{children:jsxRuntime.exports.jsx(LinearProgress$1,{color:"secondary"})}))})),u]}))]})),jsxRuntime.exports.jsxs("div",{children:[g?jsxRuntime.exports.jsxs(Typography$1,Object.assign({sx:{color:"#9CA8B4",fontSize:"10px",textAlign:"center",cursor:"pointer",width:"60px",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"},onClick:()=>{var e,t;$?(S(!1),r(hidePanel$1(VERSION_PANEL))):(S(!0),e={name:VERSION_PANEL,config:{name:"Version Information",sdk:g,sdkRelease:y,edge:b}},t={type:"APP_BAR_PANEL_TEMPLATE",marginTop:55,marginStart:80,size:"small",zIndex:1001,dimmed:0,borderBottom:!0,header:{title:n.formatMessage({id:"os-panel.version-information.panel-header",defaultMessage:[{type:0,value:"Version Information"}]})}},r(mountPanel$1({panelId:VERSION_PANEL,microFrontend:e,panelConfig:t})))}},{children:["V. ",g]})):null,jsxRuntime.exports.jsx("img",{onClick:()=>o(i+1),src:img$B,alt:"footer-icon",draggable:"false"})]})]})},Logo=injectIntl(Logo_);function getTabAction(e,t,n,r="APP_BAR_PANEL"){return{type:mountPanel$1({}).type,payload:{panelId:e,microFrontend:{name:r,config:{name:"Veritone",tabId:e,dataId:"dataId",type:"APP_BAR_PANEL_TEMPLATE"}},panelConfig:{type:"APP_BAR_PANEL_TEMPLATE",marginTop:55,marginStart:80,fullScreen:!1,width:n,header:{divider:!0,title:t}}}}}const tabsListDefault=[{id:TabId.PERSONAL_PANEL,label:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-panel.tabItems.personalProfile",defaultMessage:"Personal Profile",description:"Tooltip pops on the sidebar for personal profile"}),iconComponent:jsxRuntime.exports.jsx(PersonalProfile$1,{}),role:"",action:getTabAction(TabId.PERSONAL_PANEL,jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-panel.panelTitle.personalProfile",defaultMessage:"Personal Profile",description:"Header title for personal profile"}),410)},{id:TabId.ORGANIZATION_PANEL,label:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-panel.tabItems.organizations",defaultMessage:"Organizations",description:"Tooltip pops on the sidebar for organizations"}),iconComponent:jsxRuntime.exports.jsx(Organizations,{}),role:"",action:{type:mountPanel$1({}).type,payload:{panelId:TabId.ORGANIZATION_PANEL,microFrontend:{name:"ORGANIZATION_PANEL"},panelConfig:{type:"APP_BAR_PANEL_TEMPLATE",marginTop:55,marginStart:80,width:560,zIndex:1e3}}}},{id:TabId.CMS_SHORTCUT,label:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-panel.tabItems.dataCenter",defaultMessage:"Data Center",description:"Tooltip pops on the sidebar for data center"}),iconComponent:jsxRuntime.exports.jsx(DataCenter,{}),role:"cms",action:{type:"panels/OPEN_APP_SHORTCUT",payload:"cms"}},{id:TabId.DATA_CENTER,label:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-panel.tabItems.dataCenter",defaultMessage:"Data Center",description:"Tooltip pops on the sidebar for data center"}),iconComponent:jsxRuntime.exports.jsx(DataCenter,{}),role:"cms",action:{type:mountPanel$1({}).type,payload:{panelId:TabId.DATA_CENTER,microFrontend:{name:"DATA_CENTER_BROWSE"},panelConfig:{type:"APP_BAR_PANEL_TEMPLATE",marginTop:55,marginStart:80,size:"xlarge",zIndex:1e3}}}},{id:TabId.PROCESSING_CENTER_BROWSE,label:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-panel.tabItems.processingCenter",defaultMessage:"Processing Center",description:"Tooltip pops on the sidebar for processing center"}),iconComponent:jsxRuntime.exports.jsx(Process,{}),role:"cms",action:{type:mountPanel$1({}).type,payload:{panelId:TabId.PROCESSING_CENTER_BROWSE,microFrontend:{name:"PROCESSING_CENTER_BROWSE"},panelConfig:{type:"APP_BAR_PANEL_TEMPLATE",marginTop:55,marginStart:80,size:"xxlarge",zIndex:1e3}}}},{id:TabId.FLOW_CENTER,label:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-panel.tabItems.flowCenter",defaultMessage:"Flow Center",description:"Tooltip pops on the sidebar for flow center"}),iconComponent:jsxRuntime.exports.jsx(FlowCenter2,{}),role:"automate",action:{type:mountPanel$1({}).type,payload:{panelId:TabId.FLOW_CENTER,microFrontend:{name:"FLOW_CENTER",config:{name:"Veritone",tabId:TabId.FLOW_CENTER,dataId:"dataId",type:"APP_BAR_PANEL_TEMPLATE",zIndex:1200}},panelConfig:{type:"APP_BAR_PANEL_TEMPLATE",marginTop:55,marginStart:80,size:"xxlarge"}}}},{id:TabId.ENGINE_CENTER,label:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-panel.tabItems.developerCenter",defaultMessage:"Developer Center",description:"Tooltip pops on the sidebar for developer center"}),iconComponent:jsxRuntime.exports.jsx(DeveloperCenter,{}),role:"cms",action:{type:"panels/OPEN_APP_SHORTCUT",payload:"developer"}},{id:TabId.MARKETPLACE_CENTER,label:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-panel.tabItems.marketplaceCenter",defaultMessage:"Marketplace",description:"Tooltip pops on the sidebar for marketplace center"}),iconComponent:jsxRuntime.exports.jsx(Marketplace$1,{}),role:"cms",action:{type:"panels/OPEN_APP_SHORTCUT",payload:"marketplace"}},{id:TabId.LIBRARY_CENTER,label:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-panel.tabItems.libraryCenter",defaultMessage:"Library Center",description:"Tooltip pops on the sidebar for library center"}),iconComponent:jsxRuntime.exports.jsx(LibraryCenter,{}),role:"",action:{type:"panels/OPEN_APP_SHORTCUT",payload:"libray"}},{id:TabId.ADMIN_SHORTCUT,label:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-panel.tabItems.adminCenter",defaultMessage:"Admin Center",description:"Tooltip pops on the sidebar for admin center"}),iconComponent:jsxRuntime.exports.jsx(AdminCenter,{}),role:"admin",action:{type:mountPanel$1({}).type,payload:{panelId:TabId.ADMIN_SHORTCUT,microFrontend:{name:"ADMIN_CENTER_BROWSE"},panelConfig:{type:"APP_BAR_PANEL_TEMPLATE",marginTop:55,marginStart:80,size:"xlarge",zIndex:1e3}}}},{id:TabId.INSTANCE_ADMIN_CENTER_BROWSE,label:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-panel.tabItems.instanceAdminCenter",defaultMessage:"Instance Admin Center",description:"Tooltip pops on the sidebar for instance admin center"}),iconComponent:jsxRuntime.exports.jsx(AdminTabIcon,{}),role:"admin",action:{type:mountPanel$1({}).type,payload:{panelId:TabId.INSTANCE_ADMIN_CENTER_BROWSE,microFrontend:{name:"INSTANCE_ADMIN_CENTER_BROWSE"},panelConfig:{type:"APP_BAR_PANEL_TEMPLATE",marginTop:55,marginStart:80,size:"xlarge",zIndex:1e3}}}},{id:TabId.RESOURCE_CENTER,label:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-panel.tabItems.resourceCenter",defaultMessage:"Resource Center",description:"Tooltip pops on the sidebar for resource center"}),iconComponent:jsxRuntime.exports.jsx(Resources$1,{}),role:"",action:{type:mountPanel$1({}).type,payload:{panelId:TabId.RESOURCE_CENTER,microFrontend:{name:"RESOURCE_CENTER_BROWSE"},panelConfig:{type:"APP_BAR_PANEL_TEMPLATE",marginTop:55,marginStart:80,size:"xxlarge",zIndex:1e3}}}},{id:TabId.PROCESSING_CENTER_DAG_BUILDER,label:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-panel.tabItems.dagBuilder",defaultMessage:"DAG Builder (Beta)",description:"Tooltip pops on the sidebar for dag builder"}),iconComponent:jsxRuntime.exports.jsx(DagBuilder,{}),role:"cms",action:{type:mountPanel$1({}).type,payload:{panelId:TabId.PROCESSING_CENTER_DAG_BUILDER,microFrontend:{name:"PROCESSING_CENTER_DAG_BUILDER"},panelConfig:{type:"APP_BAR_PANEL_TEMPLATE",marginTop:55,marginStart:80,size:"xlarge",zIndex:1e3}}}}];function AppbarTabPanel({panelId:t,children:e,withTab:r=!0,withChild:n=!0}){const i=useDispatch(),[o,a]=react.exports.useState(),[s,l]=react.exports.useState([]),[c,u]=react.exports.useState(!1);var d=useSelector(e=>e.panels.find(e=>e.panelId===t))||{};const p=useSelector(e=>e.panels);const{microFrontend:f,panelConfig:h}=d,{minWidth:m,padding:g=0,header:v,footer:y,marginTop:x=0,marginStart:b=0,show:C,tabs:$=[],zIndex:S=1e3,userRoles:w=[],panelId:_,size:j,fullScreen:T,width:E,dimmed:R=0,parentPanelId:I,borderBottom:O}=h||{};const A=I?("ORGANIZATION_PANEL"!==I?"":"solid 5px #4D81B7")||("DATA_CENTER"!==I?"":"solid 5px #4D81B7"):"solid 5px #4D81B7",M=makeStyles()(e=>{return{container:{position:"fixed",top:x,right:T?0:b,height:`calc(100vh - ${x}px)`,minWidth:m,width:E||(T?"100%":getTabPanelWidthBySize(j)||560),borderBottom:O?"solid 5px #4D81B7":A,zIndex:T?1500:S,transitionTimingFunction:"ease-in-out !important"},padding:{padding:e.spacing(g),paddingTop:e.spacing(g/2)},margin:{margin:e.spacing()},headerContainer:{display:"flex",width:"100%",justifyContent:"space-between",alignItems:"center"},headerTitle:{margin:e.spacing(),marginTop:e.spacing(2)},actionButton:{margin:e.spacing()},footer:{},actionContainer:{"&:last-child":{marginRight:e.spacing(2)}},content:{overflow:"overlay",overflowX:"hidden",height:(t=v?64:0,n=y?64:0,`calc(100vh - ${x}px - ${t}px - ${n}px - 5px)`)},paperContainer:{top:56,backgroundColor:"unset !important",boxShadow:"none"},tabContainer:{overflow:"hidden",width:"100%"},tabSelect:{paddingTop:e.spacing(6),width:80,display:"flex",flexDirection:"column"},drawerContainer:{display:"flex",background:e.palette.background.default},tabName:{display:"flex",justifyContent:"space-between",alignItems:"center",height:"61px",padding:e.spacing(0,4,0,6)},actionIcons:{margin:e.spacing(-2.4)},title:{userSelect:"none",fontStyle:"normal",fontSize:"18px",lineHeight:e.spacing(5),letterSpacing:"0.25px",textTransform:"uppercase",color:e.palette.text.secondary},tabContent:{borderRight:r?"0.5px solid "+e.palette.divider:"none",overflowY:"auto",overflowX:"hidden",width:"100%"},buttonAction:{textTransform:"unset"},aiWareIcon:{padding:e.spacing(2.4,0),display:"flex",justifyContent:"center",position:"fixed",bottom:"0",right:"10px"},noShadow:{boxShadow:"none",borderLeft:"0.5px solid "+e.palette.divider},panelMask:{position:"absolute",zIndex:1150,width:"100%",height:"100%",backgroundColor:e.palette.grey[50],opacity:.5}};var t,n})()["classes"];react.exports.useEffect(()=>{0<$.length?l([...tabsListDefault,...$]):l(tabsListDefault)},[$]),react.exports.useEffect(()=>{var e;null!==f&&void 0!==f&&f.config&&null!=(e=f.config)&&e.tabId&&a(f.config.tabId)},[f]),react.exports.useEffect(()=>{0<p.length&&o&&r&&(p.find(e=>e.panelId===o)||a(void 0))},[p,o,r]);n=jsxRuntime.exports.jsxs(Paper$1,Object.assign({className:`${M.container} ${n?"":M.noShadow} `,elevation:3,id:t,square:!0,"data-test":"panel-"+(_||"unknown")},{children:[0<R&&jsxRuntime.exports.jsx("div",{className:M.panelMask}),jsxRuntime.exports.jsxs("div",Object.assign({className:M.drawerContainer},{children:[n&&jsxRuntime.exports.jsxs("div",Object.assign({className:M.tabContent},{children:[v&&jsxRuntime.exports.jsxs("div",{children:[jsxRuntime.exports.jsxs("div",Object.assign({className:M.tabName},{children:[jsxRuntime.exports.jsx(Typography$1,Object.assign({variant:"h1",className:M.title},{children:v.title||(null==(d=s.find(e=>e.id===o))?void 0:d.label)})),jsxRuntime.exports.jsxs("div",Object.assign({className:M.actionIcons},{children:[null==(n=v.actions)?void 0:n.map(e=>e.label?jsxRuntime.exports.jsx(Button$1,Object.assign({size:e.size,variant:e.variant,onClick:()=>i(e.action)},{children:e.label}),e.action.type):jsxRuntime.exports.jsxs(IconButton$1,Object.assign({onClick:()=>i(e.action),size:"large"},{children:[e.iconUrl&&jsxRuntime.exports.jsx("img",{src:e.iconUrl,alt:"icon",draggable:"false"}),e.icon&&jsxRuntime.exports.jsx("div",{children:e.icon})]}),e.action.type)),jsxRuntime.exports.jsx(IconButton$1,Object.assign({onClick:()=>i(hidePanel$1(t)),"data-test":"close-button-"+t,size:"large"},{children:jsxRuntime.exports.jsx("img",{src:I?img$U:img$V,alt:"icon",draggable:"false"})}))]}))]})),v.divider&&jsxRuntime.exports.jsx(Divider$1,{})]}),jsxRuntime.exports.jsx("div",Object.assign({className:M.content},{children:e?react.exports.cloneElement(e,Object.assign(Object.assign({},(null===f||void 0===f?void 0:f.config)||{}),{dataId:t,hidePanel:()=>i(hidePanel$1(t)),tabId:o,panelRendered:c})):jsxRuntime.exports.jsx("div",{children:jsxRuntime.exports.jsx("h1",{children:"No micro frontend passed!"})})})),y&&jsxRuntime.exports.jsxs("div",Object.assign({className:M.footer},{children:[y.divider&&jsxRuntime.exports.jsx(Divider$1,{}),jsxRuntime.exports.jsx("div",Object.assign({className:M.headerContainer},{children:jsxRuntime.exports.jsx("div",Object.assign({className:M.actionContainer},{children:null==(d=y.actions)?void 0:d.map(e=>{var t;if(e.iconUrl)return jsxRuntime.exports.jsxs(IconButton$1,Object.assign({className:M.actionButton,onClick:(t=e.action,()=>{i(t)}),size:"large"},{children:[e.iconUrl&&jsxRuntime.exports.jsx("img",{src:e.iconUrl,alt:"icon",draggable:"false"}),e.icon&&jsxRuntime.exports.jsx("div",{children:e.icon})]}),e.action.type);const n=e;return jsxRuntime.exports.jsx(Button$1,Object.assign({className:M.actionButton,size:n.size,variant:n.variant,onClick:()=>i(n.action)},{children:n.label}),e.action.type)})}))}))]}))]})),r&&jsxRuntime.exports.jsxs("div",Object.assign({id:"tabs-content",className:M.tabSelect},{children:[jsxRuntime.exports.jsx(Tabs,{selectedId:o,tabsList:s,onChangeTab:function(t){0<=p.map(e=>e.panelId).indexOf(VERSION_PANEL)&&i(hidePanel$1(VERSION_PANEL)),o&&i(hidePanel$1(o)),a(t);var e,n=s.find(e=>e.id===t);null!=(e=null==n?void 0:n.onClick)&&e.call(n,t),null!=n&&n.action&&i(n.action)},roles:w}),(null===y||void 0===y?void 0:y.logo)&&jsxRuntime.exports.jsx("div",Object.assign({className:M.aiWareIcon},{children:jsxRuntime.exports.jsx(Logo,{})}))]}))]}))]}));return jsxRuntime.exports.jsx(AIWareThemeProvider$1,{children:jsxRuntime.exports.jsx(AIWareIntlProvider,{children:jsxRuntime.exports.jsx(DynamicModuleLoader,Object.assign({modules:[getPanelModule()]},{children:jsxRuntime.exports.jsx(Slide$1,Object.assign({"data-id":"123456",in:C,direction:"left",onEntered:()=>u(!0),onExited:()=>i(unmountPanel$1(t))},{children:n}))}))})})}const AppbarPanel=e=>jsxRuntime.exports.jsx(AppbarTabPanel,Object.assign({},e,{withChild:!0,withTab:!1})),Tab=e=>jsxRuntime.exports.jsx(AppbarTabPanel,Object.assign({},e,{withChild:!1,withTab:!0})),changelogPanelLabels=e=>({changelog:e.formatMessage({id:"changelog-panel.header.title",defaultMessage:[{type:0,value:"Release Notes"}]}),closePanelTooltip:e.formatMessage({id:"changelog-panel.header.close-btn-tooltip",defaultMessage:[{type:0,value:"Close panel"}]}),versionLabel:e.formatMessage({id:"changelog-panel.version-title",defaultMessage:[{type:0,value:"Version"}]}),updateRequiredLabel:e.formatMessage({id:"changelog-panel.update-required",defaultMessage:[{type:0,value:"Update required"}]}),deploymentLabel:e.formatMessage({id:"changelog-panel.deployment",defaultMessage:[{type:0,value:"Deployment"}]}),currentVersionLabel:e.formatMessage({id:"changelog-panel.current-version",defaultMessage:[{type:0,value:"Current Version"}]}),previousVersionLabel:e.formatMessage({id:"changelog-panel.previous-version",defaultMessage:[{type:0,value:"Previous Version"}]}),apiUnavailable:e.formatMessage({id:"changelog-panel.no-api",defaultMessage:[{type:0,value:"Cannot retrieve platform information"}]}),current:e.formatMessage({id:"changelog-panel.current",defaultMessage:[{type:0,value:"Current"}]}),previous:e.formatMessage({id:"changelog-panel.previous",defaultMessage:[{type:0,value:"Previous"}]}),noVersionHighlightsCurrent:e.formatMessage({id:"changelog-panel.no-current-version-highlights",defaultMessage:[{type:0,value:"No Release Notes for Current Version"}]}),noVersionHighlightsPrevious:e.formatMessage({id:"changelog-panel.no-prev-version-highlights",defaultMessage:[{type:0,value:"No Release Notes for Previous Version"}]}),noHighlights:e.formatMessage({id:"changelog-panel.no-highlights",defaultMessage:[{type:0,value:"Cannot retrieve version highlights"}]}),unknown:e.formatMessage({id:"changelog-panel.unknown",defaultMessage:[{type:0,value:"unknown"}]}),viewReleaseNotes:e.formatMessage({id:"version-panel.view-release-notes",defaultMessage:[{type:0,value:"View Release Notes"}]}),error:e.formatMessage({id:"version-panel.error-state",defaultMessage:[{type:0,value:"Error while fetching release notes"}]}),errorHelperText:e.formatMessage({id:"version-panel.error-state-helper-text",defaultMessage:[{type:0,value:"Please try again later"}]})}),useStyles$5=makeStyles()(e=>({flexContainer:{display:"flex",alignItems:"center"},header:{alignItems:"center",display:"flex",justifyContent:"space-between",height:"55px",padding:e.spacing(6,0,6,6),borderBottom:"1px solid rgb(219, 226, 234)"},headerActionContainer:{alignItems:"center",display:"flex",flexGrow:1,height:"100%",justifyContent:"flex-end",paddingRight:"10px"},title:{color:"#2A323C"},panelRoot:{padding:"15px",height:"calc(100% - 70px);",overflowY:"scroll"},row:{display:"flex","& svg":{marginRight:"12px",marginBottom:"24px"}},widgets:{"& svg":{fill:"#555F7C"}},veriLogo:{transform:"translate(3px, 2px)"},versionText:{textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden",marginBottom:"5px"},wrapperBox:{padding:"15px 0 15px 15px",border:".5px solid #D5DFE9",borderRadius:"4px",marginBottom:"14px","& iframe":{width:"100%",border:"none"}},aiwareLogo:{marginBottom:"10px"},boldTitle:{fontWeight:700},releaseNotesBtn:{width:"100%",cursor:"pointer",height:"36px",border:"1px solid #5C6269",color:"#5C6269",marginTop:"15px","&:hover":{border:"1px solid #5C6269"}},errorStateContainer:{padding:"40px",textAlign:"center","& img":{width:"40%",marginBottom:"20px"}}})),Header=()=>{const e=useDispatch();var t=useStyles$5()["classes"],n=useIntl(),{changelog:n,closePanelTooltip:r}=changelogPanelLabels(n);return jsxRuntime.exports.jsxs("header",Object.assign({className:t.header,"data-testid":"create-or-update-token-panel.header"},{children:[jsxRuntime.exports.jsxs(Typography$1,Object.assign({variant:"h1","data-testid":"permissions-panel-header-title",className:t.title},{children:["AIWARE ",n]})),jsxRuntime.exports.jsx("div",Object.assign({className:t.headerActionContainer},{children:jsxRuntime.exports.jsx(Tooltip$1,Object.assign({title:r},{children:jsxRuntime.exports.jsx(IconButton$1,Object.assign({onClick:()=>e(hidePanel$1(CHANGELOG_PANEL)),"aria-labelledby":"version-panel.close-button","data-testid":"version-panel.close-button",size:"large"},{children:jsxRuntime.exports.jsx(Close$1,{})}))}))}))]}))},CHANGELOG_PANEL="CHANGELOG_PANEL",ChangelogPanelComponent=()=>{var e=useStyles$5()["classes"],t=useIntl(),{versionLabel:t,updateRequiredLabel:n,deploymentLabel:r,previousVersionLabel:i,currentVersionLabel:o,apiUnavailable:a,noHighlights:s,noVersionHighlightsCurrent:l,noVersionHighlightsPrevious:c,unknown:u,viewReleaseNotes:d,error:p,errorHelperText:f}=changelogPanelLabels(t);const h=useDispatch(),[m,g]=react.exports.useState(!1);var v=useSelector(selectLoadingStatus);const[y,x]=react.exports.useState({}),b=e=>{if("https://get.aiware.com"===e.origin){const{height:t,source:n}=e.data;x(e=>Object.assign(Object.assign({},e),{[n]:t+1}))}};var C=useSelector(betaFeaturesSelector),$=(react.exports.useEffect(()=>{var e=gqlIntrospection.getQueries().find(e=>"platformInfo"===e.name);return g(!!e),e&&h(actions$2.versionPanel.fetchVersionInfoStart()),window.addEventListener("message",b),()=>window.removeEventListener("message",b)},[]),(e="")=>{let t;try{t=new URL(e)}catch(e){return!1}return"http:"===t.protocol||"https:"===t.protocol}),S=useSelector(selectCurrentVersion),w=useSelector(selectPreviousVersion),[_,,]=react.exports.useState(!1),o=$(null==S?void 0:S.highlightsUrl)?jsxRuntime.exports.jsxs(Box$1,Object.assign({className:e.wrapperBox},{children:[S&&jsxRuntime.exports.jsx(Typography$1,Object.assign({variant:"h1",sx:{mb:"10px"}},{children:o})),jsxRuntime.exports.jsx("iframe",{id:"current-version",src:null==S?void 0:S.highlightsUrl,height:y[(null==(o=null==S?void 0:S.highlightsUrl)?void 0:o.toString())||""]})]})):jsxRuntime.exports.jsx(VersionChangelogNullState,{label:l}),$=$(null==w?void 0:w.highlightsUrl)?jsxRuntime.exports.jsxs(Box$1,Object.assign({className:e.wrapperBox},{children:[S&&jsxRuntime.exports.jsx(Typography$1,Object.assign({variant:"h1",sx:{mb:"10px"}},{children:i})),jsxRuntime.exports.jsx("iframe",{id:"previous-version",src:null==w?void 0:w.highlightsUrl,height:y[(null==(l=null==w?void 0:w.highlightsUrl)?void 0:l.toString())||""]})]})):jsxRuntime.exports.jsx(VersionChangelogNullState,{label:c}),i=jsxRuntime.exports.jsxs(Box$1,{children:[jsxRuntime.exports.jsxs(Box$1,Object.assign({sx:{display:"flex",flexDirection:"column",height:"100%"}},{children:[jsxRuntime.exports.jsxs(Box$1,Object.assign({className:e.wrapperBox},{children:[jsxRuntime.exports.jsxs(Box$1,Object.assign({className:e.flexContainer},{children:[jsxRuntime.exports.jsxs(Typography$1,Object.assign({variant:"h1"},{children:[t," ",null!=S&&S.version?null==S?void 0:S.version:u]})),_?jsxRuntime.exports.jsxs(Typography$1,Object.assign({sx:{ml:"10px"},variant:"caption"},{children:["(",n,")"]})):null]})),jsxRuntime.exports.jsx(Box$1,Object.assign({sx:{mt:"5px"}},{children:jsxRuntime.exports.jsxs(Typography$1,Object.assign({variant:"body2"},{children:[r," -"," ",S&&S.createdAt?dateFormatter((null==S?void 0:S.createdAt)||null):u]}))}))]})),S?o:null]})),w?$:null,!S&&!w&&jsxRuntime.exports.jsx(VersionChangelogNullState,{label:s}),C&&jsxRuntime.exports.jsxs(Button$1,Object.assign({className:e.releaseNotesBtn,variant:"outlined",onClick:()=>({})},{children:[jsxRuntime.exports.jsx(Launch,{sx:{mr:"5px",width:"18px"}})," ",d]}))]}),l=jsxRuntime.exports.jsxs(Box$1,Object.assign({className:e.errorStateContainer},{children:[jsxRuntime.exports.jsx("img",{src:img$a,alt:"error"}),jsxRuntime.exports.jsx(Box$1,{children:jsxRuntime.exports.jsx(Typography$1,Object.assign({variant:"body1",sx:{fontWeight:700}},{children:p}))}),jsxRuntime.exports.jsx(Box$1,{children:jsxRuntime.exports.jsx(Typography$1,Object.assign({variant:"body2"},{children:f}))})]}));return jsxRuntime.exports.jsxs(Box$1,Object.assign({sx:{height:"calc(100vh - 60px)",overflow:"hidden"}},{children:[jsxRuntime.exports.jsx(Header,{}),"pending"===v&&jsxRuntime.exports.jsx(Box$1,Object.assign({sx:{p:"15px",display:"flex",justifyContent:"center"}},{children:jsxRuntime.exports.jsx(CircularProgress$1,{})})),"success"===v&&jsxRuntime.exports.jsx("div",Object.assign({className:e.panelRoot},{children:m?i:jsxRuntime.exports.jsx(VersionChangelogNullState,{label:a})})),"failure"===v&&l]}))},ChangelogPanel=()=>jsxRuntime.exports.jsx(DynamicModuleLoader,Object.assign({modules:[getPanelModule()]},{children:jsxRuntime.exports.jsx(ChangelogPanelComponent,{})}));var index_esm$2=Object.freeze({__proto__:null,AppbarPanel:AppbarPanel,AppbarTabPanel:AppbarTabPanel,ChangelogPanel:ChangelogPanel,TabPanel:Tab,VersionPanel:VersionPanel});const Panel=({panelId:t,children:e})=>{var n;const r=useDispatch(),{microFrontend:i,panelConfig:{minWidth:o,padding:a=0,header:s,footer:l,marginTop:c=0,marginStart:u=0,show:d,width:p=500,zIndex:f=1}}=useSelector(e=>e.panels.find(e=>e.panelId===t)),h=makeStyles()(e=>({container:{position:"fixed",top:c,right:u,height:"100%",minWidth:o,width:p,zIndex:f},padding:{padding:e.spacing(a),paddingTop:e.spacing(a/2)},margin:{margin:e.spacing()},headerContainer:{display:"flex",width:"100%",justifyContent:"space-between",alignItems:"center"},headerTitle:{margin:e.spacing()},actionButton:{margin:e.spacing()},actionContainer:{"&:last-child":{marginRight:e.spacing(2)}},footer:{}}))()["classes"],m=e=>{var t;return e.icon?jsxRuntime.exports.jsx(IconButton$1,Object.assign({className:h.actionButton,onClick:()=>r(e.action),size:"large"},{children:e.icon})):(t=e,jsxRuntime.exports.jsx(Button$1,Object.assign({className:h.actionButton,size:t.size,variant:t.variant,onClick:()=>r(e.action)},{children:t.label})))};return jsxRuntime.exports.jsx(Slide$1,Object.assign({in:d,direction:"left",onExited:()=>r(unmountPanel$1(t))},{children:jsxRuntime.exports.jsxs(Paper$1,Object.assign({elevation:3,id:t,"data-test":"panel-"+(t||"unknown"),className:h.container},{children:[s&&jsxRuntime.exports.jsxs("div",{children:[jsxRuntime.exports.jsxs("div",Object.assign({className:h.headerContainer},{children:[jsxRuntime.exports.jsx(Typography$1,Object.assign({gutterBottom:!0,className:h.headerTitle,variant:"h4"},{children:s.title})),jsxRuntime.exports.jsxs("div",Object.assign({className:h.actionContainer},{children:[null==(n=s.actions)?void 0:n.map(e=>m(e)),jsxRuntime.exports.jsx(IconButton$1,Object.assign({"data-test":"close-button-"+t,className:h.actionButton,onClick:()=>r(hidePanel$1(t)),size:"large"},{children:jsxRuntime.exports.jsx(default_1$6,{})}))]}))]})),s.divider&&jsxRuntime.exports.jsx(Divider$1,{})]}),jsxRuntime.exports.jsx("div",Object.assign({className:h.padding},{children:e?react.exports.cloneElement(e,Object.assign(Object.assign({},i.config||{}),{dataId:t,hidePanel:()=>r(hidePanel$1(t))})):jsxRuntime.exports.jsx("div",{children:jsxRuntime.exports.jsx("h1",{children:"No micro frontend passed!"})})})),l&&jsxRuntime.exports.jsxs("div",Object.assign({className:h.footer},{children:[l.divider&&jsxRuntime.exports.jsx(Divider$1,{}),jsxRuntime.exports.jsxs("div",Object.assign({className:h.headerContainer},{children:[jsxRuntime.exports.jsx("div",{}),jsxRuntime.exports.jsx("div",Object.assign({className:h.actionContainer},{children:null==(n=l.actions)?void 0:n.map(e=>m(e))}))]}))]}))]}))}))},SamplePanel5=e=>jsxRuntime.exports.jsx("div",{children:jsxRuntime.exports.jsx("h1",{children:"Welcome to SamplePanel5!"})}),SamplePanel4=e=>jsxRuntime.exports.jsx("div",{children:jsxRuntime.exports.jsx("h1",{children:"Welcome to SamplePanel4!"})}),SamplePanel3=n=>{const r=useDispatch();return jsxRuntime.exports.jsxs("div",{children:[jsxRuntime.exports.jsx("h1",{children:"Welcome to picker!"}),jsxRuntime.exports.jsx(Typography$1,Object.assign({id:"discrete-slider",gutterBottom:!0},{children:"Temperature"})),jsxRuntime.exports.jsx(Slider$1,{"data-test":"slider",defaultValue:n.value,value:n.value,"aria-labelledby":"discrete-slider",valueLabelDisplay:"auto",step:10,marks:!0,min:0,max:110,onChange:(e,t)=>{r(updatePanelMicroFrontendProps({id:n.dataId,props:Object.assign(Object.assign({},n),{value:t})}))},onChangeCommitted:(e,t)=>{r(updatePanelMicroFrontendProps({id:n.dataId,props:Object.assign(Object.assign({},n),{value:t})})),r(setData({id:n.dataId,data:t}))}})]})},SamplePanel2=e=>jsxRuntime.exports.jsx("div",{children:jsxRuntime.exports.jsx("h1",{children:"Welcome to SamplePanel2!"})}),useStyles$3=makeStyles()(e=>({container:{},root:{minWidth:50},bullet:{display:"inline-block",margin:"0 2px",transform:"scale(0.8)"},title:{fontSize:14},pos:{marginBottom:12}})),SamplePanel1=e=>{var t=useStyles$3()["classes"],n=jsxRuntime.exports.jsx("span",Object.assign({className:t.bullet},{children:"•"}));return jsxRuntime.exports.jsxs("div",Object.assign({className:t.container},{children:[jsxRuntime.exports.jsxs("h1",{children:["Welcome to SamplePanel1 ",e.name||"Unknown Person","!"]}),jsxRuntime.exports.jsxs(Card$1,Object.assign({className:t.root},{children:[jsxRuntime.exports.jsxs(CardContent$1,{children:[jsxRuntime.exports.jsx(Typography$1,Object.assign({className:t.title,color:"textSecondary",gutterBottom:!0},{children:"Word of the Day"})),jsxRuntime.exports.jsxs(Typography$1,Object.assign({variant:"h5",component:"h2"},{children:["be",n,"nev",n,"o",n,"lent"]})),jsxRuntime.exports.jsx(Typography$1,Object.assign({className:t.pos,color:"textSecondary"},{children:"adjective"})),jsxRuntime.exports.jsxs(Typography$1,Object.assign({variant:"body2",component:"p"},{children:["well meaning and kindly.",jsxRuntime.exports.jsx("br",{}),'"a benevolent smile"']}))]}),jsxRuntime.exports.jsx(CardActions$1,{children:jsxRuntime.exports.jsx(Button$1,Object.assign({size:"small"},{children:"Learn More"}))})]}))]}))};var WidgetsStatus,index_esm$1=Object.freeze({__proto__:null,Panel:Panel,SamplePanel1:SamplePanel1,SamplePanel2:SamplePanel2,SamplePanel3:SamplePanel3,SamplePanel4:SamplePanel4,SamplePanel5:SamplePanel5});const registry={[AvailableWidgets.APP_BAR]:App,[AvailableComponents.APP_BAR_PANEL]:SettingPanelComponent,[AvailablePanels.APP_BAR_PANEL_TEMPLATE]:AppbarPanel,[AvailablePanels.TAB_TEMPLATE]:Tab,[AvailablePanels.SIMPLE_PANEL]:Panel},registryLookup=t=>__awaiter$e(void 0,void 0,void 0,function*(){if(registry[t])return yield registry[t];let e=Promise.resolve(null);switch(t){case AvailableWidgets.SAMPLE_APP_BAR:e=import("./js-core.esm2.js").then(e=>e.SampleAppBar);break;case AvailableWidgets.RESET_PASSWORD:e=import("./js-core.esm4.js").then(e=>e.ResetPassword);break;case AvailableWidgets.FLOW_CENTER:e=import("./js-core.esm7.js").then(e=>e.App);break;case AvailableWidgets.FLOW_WIDGET:e=import("./js-core.esm8.js").then(function(e){return e.i}).then(e=>e.App);break;case AvailableWidgets.ENGINE_CENTER_BROWSE:e=import("./js-core.esm20.js").then(e=>e.EngineCenterBrowse);break;case AvailablePanels.APP_BAR_TAB_PANEL_TEMPLATE:e=Promise.resolve().then(function(){return index_esm$2}).then(e=>e.AppbarTabPanel);break;case AvailableComponents.NOTIFICATION_PANEL:e=Promise.resolve().then(function(){return index_esm$5}).then(e=>e.NotificationPanel);break;case AvailableComponents.NOTIFICATION_DETAIL:e=Promise.resolve().then(function(){return index_esm$5}).then(e=>e.NotificationDetailPanel);break;case AvailableComponents.NOTIFICATION_SETTING:e=Promise.resolve().then(function(){return index_esm$5}).then(e=>e.NotificationSetting);break;case AvailableComponents.NOTIFICATION_UTILITY:e=Promise.resolve().then(function(){return index_esm$5}).then(e=>e.NotificationUtilityPanel);break;case AvailableComponents.NOTIFICATION_APPLICATION:e=Promise.resolve().then(function(){return index_esm$5}).then(e=>e.NotificationApplication);break;case AvailableComponents.HELP_PANEL:e=Promise.resolve().then(function(){return index_esm}).then(e=>e.HelpCenterPanel);break;case AvailableComponents.EDIT_PROFILE_PICTURE:e=Promise.resolve().then(function(){return index_esm$4}).then(e=>e.EditProFilePicture);break;case AvailableComponents.TEST_COMPONENT:e=Promise.resolve().then(function(){return index_esm$1}).then(e=>e.SamplePanel1);break;case AvailableComponents.TEST_COMPONENT2:e=Promise.resolve().then(function(){return index_esm$1}).then(e=>e.SamplePanel2);break;case AvailableComponents.TEST_COMPONENT3:e=Promise.resolve().then(function(){return index_esm$1}).then(e=>e.SamplePanel3);break;case AvailableComponents.SETTING_PREFERENCE:e=import("./js-core.esm33.js").then(e=>e.SettingsPreferencesPanel);break;case AvailableComponents.ORGANIZATION_PANEL:e=Promise.resolve().then(function(){return index_esm$3}).then(e=>e.OrganizationPanel);break;case AvailableComponents.INVITE_USERS_PANEL:e=Promise.resolve().then(function(){return index_esm$3}).then(e=>e.InviteUsersPanel);break;case AvailableComponents.INVITE_REQUESTS_PANEL:e=Promise.resolve().then(function(){return index_esm$3}).then(e=>e.InviteRequestsPanel);break;case AvailableComponents.REVIEW_ORG_INVITE_PANEL:e=Promise.resolve().then(function(){return index_esm$3}).then(e=>e.ReviewRequestPanel);break;case AvailableComponents.ADD_APPLICATIONS:e=Promise.resolve().then(function(){return index_esm$3}).then(e=>e.AddApplicationsPanel);break;case AvailableComponents.DATA_CENTER_BROWSE:e=import("./js-core.esm34.js").then(function(e){return e.c}).then(e=>e.DataCenterBrowse);break;case AvailableComponents.DATA_CENTER_FOLDERS_AND_FILES:e=import("./js-core.esm34.js").then(function(e){return e.c}).then(e=>e.FoldersAndFilesPanel);break;case AvailableComponents.DATA_CENTER_FILE_INFO_PANEL:e=import("./js-core.esm34.js").then(function(e){return e.c}).then(e=>e.FileInfoPanel);break;case AvailableComponents.DATA_CENTER_IMPORTER:e=import("./js-core.esm39.js").then(e=>e.DataCenterImporter);break;case AvailableComponents.DATA_LABELER:e=import("./js-core.esm40.js").then(e=>e.DataLabelerPanel);break;case AvailableComponents.ADMIN_CENTER_OPEN_ID:e=import("./js-core.esm41.js").then(e=>e.AdminCenterOpenId);break;case AvailableComponents.ADMIN_CENTER_BROWSE:e=import("./js-core.esm43.js").then(e=>e.AdminCenterBrowse);break;case AvailableComponents.DATA_CENTER_PROCESS_AI:e=import("./js-core.esm47.js").then(e=>e.DataCenterProcessAI);break;case AvailableComponents.ENGINE_CENTER_NEW:e=import("./js-core.esm21.js").then(function(e){return e.k}).then(e=>e.EngineCenterNew);break;case AvailableComponents.ENGINE_CENTER_FILTER:e=import("./js-core.esm20.js").then(e=>e.EngineCenterFilter);break;case AvailableComponents.APP_CENTER_FILTER:e=import("./js-core.esm48.js").then(e=>e.AppCenterFilter);break;case AvailableComponents.ENGINE_CENTER_DETAILS:e=import("./js-core.esm20.js").then(e=>e.EngineDetails);break;case AvailableComponents.ENGINE_CENTER_NEW_BUILD:e=import("./js-core.esm20.js").then(e=>e.CreateNewBuildPanel);break;case AvailableComponents.ENGINE_CENTER_CUSTOM_FIELDS_FORM:e=import("./js-core.esm21.js").then(function(e){return e.k}).then(e=>e.EngineCenterCustomFieldsForm);break;case AvailableComponents.ENGINE_CENTER_SCHEMAS_FORM_PANEL:e=import("./js-core.esm21.js").then(function(e){return e.k}).then(e=>e.SchemasFormPanel);break;case AvailableComponents.ENGINE_CENTER_INPUT_TYPE_FLYOUT:e=import("./js-core.esm21.js").then(function(e){return e.k}).then(e=>e.InputTypeFlyout);break;case AvailableComponents.ENGINE_CENTER_EDIT_RELEASE_NOTES:e=import("./js-core.esm20.js").then(e=>e.EditReleaseNotes);break;case AvailableComponents.ENGINE_CENTER_VERSION_HISTORY_PANEL:e=import("./js-core.esm20.js").then(e=>e.VersionHistoryPanel);break;case AvailableComponents.SUPPORTED_FILE_TYPES:e=import("./js-core.esm39.js").then(e=>e.SupportedFileTypes);break;case AvailableComponents.EDIT_FILE_METADATA:e=import("./js-core.esm39.js").then(e=>e.EditFileMetadata);break;case AvailableWidgets.APP_CENTER_BROWSE:e=import("./js-core.esm48.js").then(e=>e.AppCenterBrowse);break;case AvailableComponents.APP_CENTER_NEW:e=import("./js-core.esm49.js").then(e=>e.AppCenterNew);break;case AvailableComponents.APP_CENTER_CONFIG_FIELDS_FORM:e=import("./js-core.esm49.js").then(e=>e.AppCenterConfigFieldsForm);break;case AvailableComponents.APP_CENTER_CONTEXT_MENU_EXTENSIONS:e=import("./js-core.esm49.js").then(e=>e.AppCenterContextMenuExtensionPanel);break;case AvailableComponents.APP_CENTER_BROWSE:e=import("./js-core.esm48.js").then(e=>e.AppCenterBrowse);break;case AvailableComponents.APP_CENTER_DETAILS:e=import("./js-core.esm48.js").then(e=>e.AppCenterDetails);break;case AvailableComponents.DATA_CENTER_ENGINE_SELECTION:e=import("./js-core.esm47.js").then(e=>e.DataCenterEngineSelection);break;case AvailableComponents.ADMIN_CENTER_NEW_GROUP_PANEL:e=import("./js-core.esm38.js").then(e=>e.NewGroupPanel);break;case AvailableComponents.PERMISSIONS_PANEL:e=import("./js-core.esm35.js").then(e=>e.PermissionsPanel);break;case AvailableComponents.GROUP_INFO_PANEL:e=import("./js-core.esm35.js").then(e=>e.GroupInfoPanel);break;case AvailableComponents.NEW_PERMISSION_SET_PANEL:e=import("./js-core.esm35.js").then(e=>e.NewPermissionSetPanel);break;case AvailableComponents.PERMISSION_SET_DETAILS_PANEL:e=import("./js-core.esm35.js").then(e=>e.PermissionSetDetailsPanel);break;case AvailableComponents.DATA_CENTER_MDP_IFRAME_PANEL:e=import("./js-core.esm34.js").then(function(e){return e.c}).then(e=>e.MediaDetailsPanelIframe);break;case AvailableComponents.DATA_CENTER_INGESTION_CREATION_PANEL:e=import("./js-core.esm34.js").then(function(e){return e.c}).then(e=>e.IngestionCreationPanel);break;case AvailableComponents.DATA_CENTER_SELECT_IMPORT_SOURCE:e=import("./js-core.esm34.js").then(function(e){return e.c}).then(e=>e.SelectImportSource);break;case AvailableComponents.DATA_CENTER_SOURCE_CREATION_PANEL:e=import("./js-core.esm34.js").then(function(e){return e.c}).then(e=>e.SourceCreationPanel);break;case AvailableComponents.ADMIN_CENTER_GROUP_DETAILS_PANEL:e=import("./js-core.esm38.js").then(e=>e.GroupDetailsPanel);break;case AvailableComponents.ADMIN_CENTER_ADD_MEMBER_PANEL:e=import("./js-core.esm38.js").then(e=>e.AddMemberPanel);break;case AvailableComponents.APPLICATION_DETAILS_PANEL:e=import("./js-core.esm44.js").then(e=>e.ApplicationDetailsPanel);break;case AvailableComponents.PROCESSING_CENTER_SOURCES:e=import("./js-core.esm50.js").then(e=>e.ProcessingCenterSources);break;case AvailableComponents.PROCESSING_CENTER_ERROR_DETAIL:e=import("./js-core.esm50.js").then(e=>e.ErrorDetailPanel);break;case AvailableComponents.USER_APPLICATION_SETTINGS_PANEL:e=Promise.resolve().then(function(){return index_esm$6}).then(e=>e.UserApplicationSettingsPanel);break;case AvailableComponents.ADD_APPLICATION_USERS_PANEL:e=import("./js-core.esm44.js").then(e=>e.AddUsersPanel);break;case AvailableComponents.PROCESSING_CENTER_BROWSE:e=import("./js-core.esm53.js").then(e=>e.ProcessingCenterBrowse);break;case AvailableComponents.JOBS_TABLE_SETTINGS_PANEL:e=import("./js-core.esm54.js").then(e=>e.JobsTableSettingsPanel);break;case AvailableComponents.VERSION_PANEL:e=Promise.resolve().then(function(){return index_esm$2}).then(e=>e.VersionPanel);break;case AvailableComponents.CHANGELOG_PANEL:e=Promise.resolve().then(function(){return index_esm$2}).then(e=>e.ChangelogPanel);break;case AvailableComponents.PROCESSING_CENTER_DAG_BUILDER:e=import("./js-core.esm56.js").then(e=>e.DagBuilder);break;case AvailableComponents.PROCESSING_CENTER_INGESTION:e=import("./js-core.esm57.js").then(function(e){return e.at}).then(e=>e.ProcessingCenterIngestion);break;case AvailableComponents.PROCESSING_CENTER_ADVANCED_SETTINGS:e=import("./js-core.esm57.js").then(function(e){return e.at}).then(e=>e.ProcessingCenterAdvancedSettings);break;case AvailableComponents.PROCESSING_CENTER_AFFILIATE_PANEL:e=import("./js-core.esm57.js").then(function(e){return e.at}).then(e=>e.ProcessingCenterAffiliatePanel);break;case AvailableComponents.JOBS_DETAILS_PANEL:e=import("./js-core.esm54.js").then(e=>e.JobsDetailsPanel);break;case AvailableComponents.TASKS_TABLE_SETTINGS_PANEL:e=import("./js-core.esm55.js").then(e=>e.TasksTableSettingsPanel);break;case AvailableComponents.TASK_DETAILS_PANEL:e=import("./js-core.esm55.js").then(e=>e.TaskDetailsPanel);break;case AvailableComponents.RESOURCE_CENTER_BROWSE:e=import("./js-core.esm59.js").then(e=>e.ResourceCenterBrowse);break;case AvailableComponents.PACKAGE_DETAILS_PANEL:e=import("./js-core.esm63.js").then(e=>e.PackageDetails);break;case AvailableComponents.PACKAGE_MANAGER_PANEL:e=import("./js-core.esm64.js").then(function(e){return e.J}).then(e=>e.PackageManager);break;case AvailableComponents.INSTANCE_ADMIN_CENTER_BROWSE:e=import("./js-core.esm65.js").then(e=>e.InstanceAdminCenterBrowse);break;case AvailableComponents.MANAGE_GRANTS:e=import("./js-core.esm63.js").then(e=>e.ManageGrantsPanel);break;case AvailableComponents.SCHEMA_DETAILS_PANEL:e=import("./js-core.esm66.js").then(e=>e.SchemaDetailsPanel);break;case AvailableComponents.FLOW_TEMPLATE_DETAILS_PANEL:e=import("./js-core.esm66.js").then(e=>e.TemplateDetailsPanel);break;case AvailableComponents.USER_DETAILS_PANEL:e=import("./js-core.esm45.js").then(e=>e.UserDetailsPanel);break;case AvailableComponents.CREATE_OR_UPDATE_TOKEN_PANEL:e=import("./js-core.esm46.js").then(e=>e.CreateOrUpdateApiTokenPanel);break;case AvailableComponents.FLOW_DETAILS_PANEL:e=import("./js-core.esm8.js").then(function(e){return e.i}).then(e=>e.App)}return yield registry[t]=e}),registerComponent=(e,t)=>{registry[e]=t},WIDGETS_FEATURE_KEY="widgets",initialState$2=(!function(e){e.idle="idle",e.mounting="mounting",e.unmounting="unmounting",e.error="error",e.eventing="eventing"}(WidgetsStatus=WidgetsStatus||{}),{value:[],status:WidgetsStatus.idle}),widgetsSelector=e=>e[name].value,callWidgetOnComplete=(e,t)=>{e=e.find(e=>e.widgetName===t);null!=e&&e.onComplete&&e.onComplete()},{name,reducer,actions:{mountWidget:mountWidget$1,mountWidgetSuccess,mountWidgetError,unmountWidget:unmountWidget$1,unmountWidgetSuccess,unmountWidgetFailure,triggerWidgetCallback,triggerWidgetCallbackSuccess}}=createSlice({name:WIDGETS_FEATURE_KEY,initialState:initialState$2,reducers:{mountWidget:(e,t)=>{e.value.push(t.payload),e.status=WidgetsStatus.mounting},mountWidgetSuccess:e=>{e.status=WidgetsStatus.idle},mountWidgetError:e=>{e.status=WidgetsStatus.error},triggerWidgetCallback:(e,t)=>{e.status=WidgetsStatus.eventing},triggerWidgetCallbackSuccess:e=>{e.status=WidgetsStatus.idle},unmountWidget:(e,t)=>{e.status=WidgetsStatus.unmounting},unmountWidgetSuccess:(e,t)=>{e.value=e.value.filter(e=>e.widgetId!==t.payload),e.status=WidgetsStatus.idle},unmountWidgetFailure:e=>{e.status=WidgetsStatus.error}}});function*mountWidgetListenerSaga(){let a;const s={};yield takeEvery$1(mountWidget$1({}).type,function*(e){try{var{widgetConfig:t={},widgetName:n,elementId:r}=null==e?void 0:e.payload,i=(yield call$i(registryLookup,n))||(()=>jsxRuntime.exports.jsx("div",{children:"Component Not Found."})),o=getElement(r,n);o.classList.add("aiware-el"),s[r]?a=s[r]:(a=client$1.createRoot(o),s[r]=a),a.render(jsxRuntime.exports.jsx(AIWareCacheProvider,{children:jsxRuntime.exports.jsx(AIWareThemeProvider$1,{children:jsxRuntime.exports.jsx(Provider$2,Object.assign({store:store$4},{children:jsxRuntime.exports.jsx(i,Object.assign({},t))}))})})),yield put(mountWidgetSuccess())}catch(e){yield put(mountWidgetError())}}),yield takeEvery$1(e=>/\/booted$/.test(e.type),function*(e){var[e]=e.type.split("/");yield put(triggerWidgetCallback(e))}),yield takeEvery$1(unmountWidget$1("").type,function*(t){try{const e=yield select(e=>{return(null==(e=widgetsSelector(e).find(e=>e.widgetId===t.payload))?void 0:e.elementId)||""});setTimeout(()=>{s[e]&&s[e].unmount(),delete s[e]}),yield put(unmountWidgetSuccess(t.payload))}catch(e){yield put(unmountWidgetFailure())}}),yield takeEvery$1(triggerWidgetCallback("").type,function*(e){var t=yield select(widgetsSelector);callWidgetOnComplete(t,e.payload),yield put(triggerWidgetCallbackSuccess())})}function getWidgetsModule(){return{id:name,reducerMap:{[name]:reducer},sagas:[mountWidgetListenerSaga],initialActions:[]}}function getDataModule(){return{id:"data",reducerMap:{data:(e,{type:t,payload:n})=>{return t===setData({}).type?[...e.filter(e=>e.id!==n.id),n]:e||[]}},sagas:[],initialActions:[]}}const useStyles$2=makeStyles()(e=>({sdkSnackbarContainer:{"& svg":{fill:"white"}}}));function CustomSnackbar(){const n=useDispatch(),[e,t]=react.exports.useState([]),[r,i]=react.exports.useState(!1),[o,a]=react.exports.useState(void 0),{message:s,duration:l}=useSelector(snackbarSelector);var c=useStyles$2()["classes"],u=(react.exports.useEffect(()=>{null!==s&&void 0!==s&&s.content&&t(e=>[...e,s])},[s]),react.exports.useEffect(()=>{e.length&&!o?(a(Object.assign({},e[0])),t(e=>e.slice(1)),i(!0)):e.length&&o&&r&&(n(clearMessage()),i(!1))},[e,o,r,n]),(e,t)=>{"clickaway"!==t&&(i(!1),n(clearMessage()))});return jsxRuntime.exports.jsx(Snackbar$1,Object.assign({anchorOrigin:{vertical:"bottom",horizontal:"right"},open:r,autoHideDuration:l||3e3,onClose:u,TransitionProps:{onExited:()=>{a(void 0),n(clearMessage())}},className:c.sdkSnackbarContainer,"data-snackbarid":(null===o||void 0===o?void 0:o.key)||"na","data-testid":"snackbar.message."+((null===o||void 0===o?void 0:o.severity)||"na")},{children:jsxRuntime.exports.jsx(Alert$1,Object.assign({onClose:u,severity:null===o||void 0===o?void 0:o.severity,elevation:6,variant:"filled"},{children:null===o||void 0===o?void 0:o.content}))}),o?o.key:void 0)}function validateConfig(e){return e.applicationId||console.info("@aiware/js: applicationId is required. Go to developer app to find your application id."),e.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"),e.knowledgeBaseURL?(console.info("@aiware/js: knowledgeBaseURL is deprecated and scheduled to be removed in v3. Please use knowledgeBaseUrl instead."),Object.assign(Object.assign({},e),{knowledgeBaseUrl:e.knowledgeBaseURL})):e}const ID="openSupportChatButton",DATA_ATTR="open-support-chat-button";var SupportCenterPixel=()=>jsxRuntime.exports.jsx(Portal$1,{children:jsxRuntime.exports.jsx("div",{id:ID,"data-veritone-element":DATA_ATTR,style:{width:1,height:1,position:"fixed",right:55,bottom:20}})});const nameSpace="@helpPanel",updateSelectedTab=createAction(nameSpace+"/UPDATE_SELECTED_TAB",function(e,t){return{payload:{selectedTabId:e,tabLink:t}}}),setCustomKnowledgeBaseUrl=createAction(nameSpace+"/SET_CUSTOM_KNOWLEDGE_BASE_URL",function(e){return{payload:{url:e}}}),setCustomDocsUrl=createAction(nameSpace+"/SET_CUSTOM_DOCS_URL",function(e){return{payload:{url:e}}}),initialState$1={selectedTabId:0,tabLink:"https://support.veritone.com/",customKnowledgeBaseUrl:"",customDocsUrl:""},getTabLinkReducer=createReducer(initialState$1,e=>{e.addCase(updateSelectedTab,(e,t)=>Object.assign(Object.assign({},e),{tabLink:t.payload.tabLink,selectedTabId:t.payload.selectedTabId})),e.addCase(setCustomKnowledgeBaseUrl,(e,t)=>Object.assign(Object.assign({},e),{customKnowledgeBaseUrl:t.payload.url})),e.addCase(setCustomDocsUrl,(e,t)=>Object.assign(Object.assign({},e),{customDocsUrl:t.payload.url}))});function*helpSaga(){yield takeEvery$1("OPEN_HELP_LINK",function*(){var e=yield select(e=>e.helpPanel.tabLink);yield put(openLinkOnNewTab({url:e}))})}const namespace$1="helpPanel",helpCenterSelectedTabIdSelector=e=>null!=e&&e[namespace$1]?e[namespace$1].selectedTabId:0,customDocsUrlSelector=e=>null!=e&&e[namespace$1]?e[namespace$1].customDocsUrl:"",customKnowledgeBaseUrlSelector=e=>null!=e&&e[namespace$1]?e[namespace$1].customKnowledgeBaseUrl:"";function getHelpPanelModule(){return{id:"help",reducerMap:{[namespace$1]:getTabLinkReducer},sagas:[helpSaga],initialActions:[]}}var knowledgeBaseUrl$1="https://docs.veritone.com/help/index.html",documentUrl$1="https://docs.veritone.com",config={knowledgeBaseUrl:knowledgeBaseUrl$1,documentUrl:documentUrl$1};const useStyles$1=makeStyles()(e=>({root:{height:"calc(100% - 110px)",textAlign:"left","& .Sdk-MuiTab-root.Mui-selected":{color:e.palette.text.primary,fontWeight:600}},tabs:{padding:e.spacing(2.4,6,0,6)},tabPanels:{width:"100%",height:"100%"},aiWareIcon:{position:"relative",maxHeight:50,opacity:"inherit",padding:e.spacing(4,3.2,0,3.2),display:"flex",justifyContent:"flex-end"},customTabs:{margin:e.spacing(0,4)},kbRoot:{height:"100%",textAlign:"left"},loadingContainer:{position:"absolute",height:"100%",width:"100%",display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:"white"},kbToolBarBox:{padding:e.spacing(6,6,1.6,6)},kbTabContent:{height:"calc(100% - 92px)"},kbTabPanel:{padding:e.spacing(6)},dRoot:{height:"100%",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)"},drawerContainer:{display:"flex",height:"100%",background:e.palette.background.default},tabContainer:{borderRight:"0.5px solid #D5DFE9",overflow:"hidden",height:"100%",width:"100%"},tabName:{borderBottom:"0.5px solid #D5DFE9",display:"flex",justifyContent:"space-between",alignItems:"center",height:"64px",padding:e.spacing(0,6)},actionIcons:{margin:e.spacing(-2.4)},tabContent:{height:"calc(100vh - 57px - 60px)",overflowY:"auto",overflowX:"hidden"}})),documentUrl=config.documentUrl,Documentation=({path:e=documentUrl})=>{var t=useStyles$1()["classes"];const[n,r]=react.exports.useState(!0);return jsxRuntime.exports.jsxs("div",Object.assign({className:classNames(t.dRoot,"hide-in-percy")},{children:[n&&jsxRuntime.exports.jsx("div",Object.assign({className:t.loadingContainer},{children:jsxRuntime.exports.jsx(CircularProgress$1,{})})),jsxRuntime.exports.jsx("iframe",{"data-cy":"docs-iframe",title:"Document Iframe",style:{width:"100%",height:"100%"},src:e,frameBorder:"0",onLoad:function(){setTimeout(()=>{r(!1)},1e3)}})]}))},knowledgeBaseUrl=config["knowledgeBaseUrl"];function Knowledgebase({path:e=knowledgeBaseUrl}){var t=useStyles$1()["classes"];const[n,r]=react.exports.useState(!0);return jsxRuntime.exports.jsxs("div",Object.assign({className:t.kbRoot},{children:[n&&jsxRuntime.exports.jsx("div",Object.assign({className:t.loadingContainer},{children:jsxRuntime.exports.jsx(CircularProgress$1,{})})),jsxRuntime.exports.jsx("iframe",{"data-cy":"knowledgebase-iframe",title:"Knowledgebase Iframe",style:{width:"100%",height:"100%"},src:e,frameBorder:"0",onLoad:function(){r(!1)}})]}))}const defaultLocale="en-us",tabsList=[{label:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-help-panel.au1+VZ",defaultMessage:"Knowledgebase",description:"Help Panel: Knowledgebase tab label"}),disabled:!1,url:"https://support.veritone.com/"},{label:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-help-panel.8bnkm8",defaultMessage:"Documentation",description:"Help Panel: Documentation tab label"}),disabled:!1,url:"https://docs.veritone.com/#/aiware/"}];function HelpCenter(){var e=useSelector(initialConfigSelector),t=useSelector(customKnowledgeBaseUrlSelector),n=useSelector(customDocsUrlSelector),r=useSelector(helpCenterSelectedTabIdSelector),i=useSelector(e=>null==e?void 0:e.panels),o=useStyles$1()["classes"],[a]=react.exports.useState(defaultLocale);const s=useDispatch();i=null==i?void 0:i.find(e=>"CUSTOM_HELP_PANEL_ID"===e.panelId),t=i&&t?t:e.knowledgeBaseUrl,i=i&&n?n:e.docsURL;return jsxRuntime.exports.jsx(DynamicModuleLoader,Object.assign({modules:[getHelpPanelModule()]},{children:jsxRuntime.exports.jsx(AIWareIntlProvider,Object.assign({locale:a},{children:jsxRuntime.exports.jsx("div",Object.assign({className:o.drawerContainer},{children:jsxRuntime.exports.jsx("div",Object.assign({id:"setting-content",className:o.tabContainer},{children:jsxRuntime.exports.jsx("div",Object.assign({className:o.tabContent},{children:jsxRuntime.exports.jsx("div",Object.assign({className:o.root},{children:jsxRuntime.exports.jsxs("div",Object.assign({className:o.tabPanels},{children:[jsxRuntime.exports.jsx("div",Object.assign({className:o.customTabs},{children:jsxRuntime.exports.jsx(CustomTabs,{selectedId:r,onChangeTab:e=>{s(updateSelectedTab(e,tabsList[e].url))},tabsList:tabsList})})),jsxRuntime.exports.jsxs(Box$1,Object.assign({className:o.tabPanels},{children:[jsxRuntime.exports.jsx(TabPanel,Object.assign({value:r,index:0},{children:jsxRuntime.exports.jsx(Knowledgebase,{path:t})})),jsxRuntime.exports.jsx(TabPanel,Object.assign({value:r,index:1},{children:jsxRuntime.exports.jsx(Documentation,{path:i})}))]})),jsxRuntime.exports.jsx("div",Object.assign({className:o.aiWareIcon},{children:jsxRuntime.exports.jsx("img",{src:img$B,alt:"icon",draggable:"false"})}))]}))}))}))}))}))}))}))}var EPermissionAction,EAuthResourceType,EAuthSubResourceType,index_esm=Object.freeze({__proto__:null,HelpCenterPanel:HelpCenter,customDocsUrlSelector:customDocsUrlSelector,customKnowledgeBaseUrlSelector:customKnowledgeBaseUrlSelector,helpCenterSelectedTabIdSelector:helpCenterSelectedTabIdSelector,setCustomDocsUrl:setCustomDocsUrl,setCustomKnowledgeBaseUrl:setCustomKnowledgeBaseUrl,updateSelectedTab:updateSelectedTab});const useStyles=makeStyles()(()=>({dialog:{top:"125px",overflowX:"hidden",overflowY:"hidden",display:"flex",alignItems:"center",flexDirection:"column"},container:{borderRadius:"4px",backgroundColor:"#fff",width:"430px",overflow:"hidden",outline:0,boxShadow:"0px 0px 7px rgba(0, 0, 0, .25)"},header:{textTransform:"capitalize"},appListContainer:{width:"100%"},orgName:{fontWeight:"bold"}})),ApplicationDialog=()=>{const[e,t]=react.exports.useState(null),[n,r]=react.exports.useState(0);var i=useSelector(userSelector$2),o=useStyles()["classes"];const a=useSelector(initialConfigSelector),s=a.applicationId,l=useSelector(applicationSelector),c=useSelector(switchApiSelector);var u=(null===l||void 0===l?void 0:l.application)||[],d=null===l||void 0===l?void 0:l.status;var p=[...u].sort(function(e,t){return e.name>t.name?1:e.name<t.name?-1:0}),f=u.findIndex(e=>e.id===s);useInterval(()=>{t(e=>e&&e-1)},e&&n<3?1e3:null),react.exports.useEffect(()=>{"success"!==(null===l||void 0===l?void 0:l.status)||1!==(null===l||void 0===l?void 0:l.application.length)||(null===l||void 0===l?void 0:l.application[0].id)===a.applicationId||e||(0===e?window.open(c+"/"+(null===l||void 0===l?void 0:l.application[0].id),"_self"):t(10))},[a,l,c,e]);return/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i.test(s)&&f<0&&"success"===d?jsxRuntime.exports.jsx(Modal$1,Object.assign({className:o.dialog,open:!0},{children:jsxRuntime.exports.jsxs("div",Object.assign({className:o.container},{children:[jsxRuntime.exports.jsx(Typography$1,Object.assign({"data-test":"application-dialog-title",className:o.header,variant:"h1",sx:{px:"30px",pt:"30px"}},{children:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"js-core-app-dialog-title",defaultMessage:"Application Not Available",description:"Title for modal"})})),jsxRuntime.exports.jsxs(Typography$1,Object.assign({variant:"body2",sx:{px:"30px",pt:"10px"}},{children:[jsxRuntime.exports.jsx(FormattedMessage$1,{id:"js-core-app-dialog-message1",defaultMessage:"Looks like you switched organizations, your current application is not available in the current",description:"Description current application not available"})," ",jsxRuntime.exports.jsx("span",Object.assign({className:o.orgName},{children:null!=(f=null==i?void 0:i.organization)&&f.organizationName?i.organization.organizationName:""}))," ",jsxRuntime.exports.jsx(FormattedMessage$1,{id:"js-core-app-dialog-message2",defaultMessage:"organization you are viewing.",description:"Description current application not available"})]})),jsxRuntime.exports.jsx(Typography$1,Object.assign({variant:"body2",sx:{px:"30px",pt:"20px"}},{children:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"js-core-app-dialog-message3",defaultMessage:"Please select from the available applications below to be redirected.",description:"Instructions for current application not available"})})),e&&jsxRuntime.exports.jsx(Typography$1,Object.assign({variant:"body2",sx:{px:"30px",pt:"20px"},onClick:()=>{r(e=>e+1)}},{children:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"js-core-app-dialog-countdown-message",defaultMessage:"You will be automatically forwarded to {appName} in {timeRemaining} seconds.",description:"Instructions for current application not available",values:{timeRemaining:e,appName:u[0].name}})})),jsxRuntime.exports.jsx("div",Object.assign({className:o.appListContainer},{children:jsxRuntime.exports.jsx(AppList,{title:"",selectedAppId:null,onSelectApplication:e=>{window.open(c+"/"+e,"_self")},applications:p,useGrid:!1,row:3})}))]}))})):null};class RateLimiter{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)}}!function(e){e.Create="create",e.Read="read",e.Update="update",e.Delete="delete",e.File="file",e.CustomerService="customerService",e.Access="access"}(EPermissionAction=EPermissionAction||{}),function(e){e.Folder="Folder",e.TDO="TDO",e.Organization="Organization",e.Source="Sources",e.Schedule="Schedules",e.Job="Job"}(EAuthResourceType=EAuthResourceType||{}),function(e){e.Group="group",e.Media="media",e.Package="package",e.User="user",e.Workflow="workflow",e.ProcessingCenter="processingCenter",e.ResourceCenter="resourceCenter"}(EAuthSubResourceType=EAuthSubResourceType||{});const orgRightsByObjectPermission={[EAuthResourceType.TDO]:{create:["cms.media.create","recording.create"],read:["cms.media.read","recording.read"],update:["cms.media.update","recording.update"],delete:["cms.media.delete","recording.delete"]},[EAuthResourceType.Folder]:{create:["cms.media.create","recording.create"],read:["cms.media.read","recording.read"],update:["cms.media.update","recording.update"],delete:["cms.media.delete","recording.delete"],file:["cms.media.create","recording.create"]},[EAuthResourceType.Source]:{create:["cms.media.create","recording.create"],read:["cms.media.read","recording.read"],update:["cms.media.update","recording.update","source.update"],delete:["cms.media.delete","recording.delete"]},[EAuthResourceType.Job]:{customerService:["cms.customerservice"],create:["job.create"],read:["job.read"],update:["job.update"],delete:["job.delete"]},[EAuthResourceType.Schedule]:{customerService:["cms.customerservice"],create:["job.create"],read:["job.read"],update:["job.update"],delete:["job.delete"]},[EAuthSubResourceType.User]:{create:["admin.user.create"],delete:["admin.user.delete"]},[EAuthSubResourceType.Group]:{create:["admin.group.create"],delete:["admin.group.delete"]},[EAuthSubResourceType.Package]:{update:["developer.build.update"]}},permissionActionsToFetchByObjectType={[EAuthResourceType.TDO]:{create:"AIWARE_TDO_CREATE",read:"AIWARE_TDO_READ",update:"AIWARE_TDO_UPDATE",delete:"AIWARE_TDO_DELETE"},[EAuthResourceType.Folder]:{create:"AIWARE_FOLDER_CREATE",read:"AIWARE_FOLDER_READ",update:"AIWARE_FOLDER_UPDATE",delete:"AIWARE_FOLDER_DELETE",file:"AIWARE_FOLDER_FILE"},[EAuthResourceType.Source]:{create:"AIWARE_SOURCES_CREATE",read:"AIWARE_SOURCES_READ",update:"AIWARE_SOURCES_UPDATE",delete:"AIWARE_SOURCES_DELETE"},[EAuthResourceType.Job]:{customerService:"CMS_CUSTOMERSERVICE",create:"AIWARE_JOB_CREATE",read:"AIWARE_JOB_READ",update:"AIWARE_JOB_UPDATE",delete:"AIWARE_JOB_DELETE"},[EAuthResourceType.Schedule]:{customerService:"CMS_CUSTOMERSERVICE",create:"AIWARE_JOB_CREATE",read:"AIWARE_JOB_READ",update:"AIWARE_JOB_UPDATE",delete:"AIWARE_JOB_DELETE"},[EAuthResourceType.Organization]:{[EAuthSubResourceType.Group]:{create:"AIWARE_GROUP_CREATE",delete:"AIWARE_GROUP_DELETE"},[EAuthSubResourceType.Package]:{create:"AIWARE_PACKAGE_CREATE",read:"AIWARE_PACKAGE_READ",update:"AIWARE_PACKAGE_UPDATE",delete:"AIWARE_PACKAGE_DELETE"},[EAuthSubResourceType.User]:{create:"AIWARE_USER_CREATE",delete:"AIWARE_USER_DELETE"},[EAuthSubResourceType.ResourceCenter]:{access:"AIWARE_RESOURCE_CENTER_ACCESS"}}},permissionTypeToFetchByEntityType={[EAuthResourceType.TDO]:[EAuthResourceType.TDO],[EAuthResourceType.Folder]:[EAuthResourceType.Folder],[EAuthResourceType.Source]:[EAuthResourceType.Source],[EAuthResourceType.Job]:[EAuthResourceType.Job],[EAuthResourceType.Schedule]:[EAuthResourceType.Schedule],[EAuthResourceType.Organization]:[EAuthResourceType.Organization,EAuthResourceType.TDO,EAuthResourceType.Folder,EAuthResourceType.Source,EAuthResourceType.Schedule,EAuthResourceType.Job]},authResourcesByEntityType={[EntityType.Folders]:EAuthResourceType.Folder,[EntityType.Tdos]:EAuthResourceType.TDO,[EntityType.Sources]:[EAuthResourceType.Source],[EntityType.Schedules]:[EAuthResourceType.Schedule]},convertEntityToAuthResource=e=>authResourcesByEntityType[e],convertPermissionsToRights=(e,t,n)=>{const r=(null==(e=orgRightsByObjectPermission[e])?void 0:e[t])||[];return 0<n.filter(e=>r&&r.includes(e)).length},permissionDetailIsActionPair=e=>Object.keys(e).some(e=>Object.values(EPermissionAction).includes(e)),getQueryActions=(e,t,n)=>({targetObjectType:e,targetActions:Object.keys(t).map(e=>({targetAction:e,serverName:t[e],resource:n}))}),getPermissionActions=(t,n)=>{return permissionDetailIsActionPair(t)?[getQueryActions(n,t)]:Object.keys(t).map(e=>getQueryActions(n,t[e]||{},e))},getPermissionTypesToQuery=e=>{return(permissionTypeToFetchByEntityType[e]||[]).flatMap(e=>getPermissionActions(permissionActionsToFetchByObjectType[e]||{},e))},isPermissionLoading=e=>!e||"pending"===e.status||"idle"===e.status,hasPermission=(e,t)=>!!e&&("failure"===e.status||e&&"success"===e.status&&e.permissions&&e.permissions[t]),namespace="permissions",initialState={permissionsByObject:{},rights:{status:"idle"}},slice=createSlice({name:namespace,initialState:initialState,reducers:{fetchObjectPermissionsStart(e,t){var{entityType:t,entityId:n}=t.payload;Object.prototype.hasOwnProperty.call(e.permissionsByObject,t)||(e.permissionsByObject[t]={}),Object.prototype.hasOwnProperty.call(e.permissionsByObject[t],n)||(e.permissionsByObject[t][n]={}),Object.prototype.hasOwnProperty.call(e.permissionsByObject[t][n],t)||(e.permissionsByObject[t][n][t]={status:"idle"})},fetchObjectPermissionsStarted(e,t){var{entityId:t,entityType:n}=t.payload;e.permissionsByObject[n][t][n].status="pending"},fetchObjectPermissionsSucceeded(t,e){const{entityType:n,entityId:r,permissions:i}=e.payload;Object.keys(i).forEach(e=>{t.permissionsByObject[n][r][e]={status:"success",permissions:i[e]}})},fetchObjectPermissionsFailed(e,t){var{entityType:t,entityId:n}=t.payload;e.permissionsByObject[t][n][t]={status:"failure"}},fetchMyRightsStarted(e){e.rights.status="pending"},fetchMyRightsSucceeded(e,t){e.rights.status="success",e.rights.myRights=t.payload},fetchMyRightsFailed(e){e.rights.status="failure"}}}),actions=slice.actions;var permissionsReducer=slice.reducer;function __awaiter(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 getObjectPermissions(u,d,p){var f;return __awaiter(this,void 0,void 0,function*(){var{entityType:e,entityId:t}=p,n="getPermissions",r=getPermissionTypesToQuery(e);let i=!1,o=[],a={};for(;!i;){var s=`
1510
+ `),useStyles$2$1=makeStyles()(()=>({fullScreen:{position:"fixed",width:"100%",height:"100vh",top:"0",left:"0",backgroundColor:"#ffffff",display:"flex",justifyContent:"center",alignItems:"center",flexDirection:"column",textAlign:"center",fontSize:"14px",zIndex:99999,animation:fadeInOut+" 5s linear forwards"},loaderBox:{height:"200px",width:"200px"},veritoneDarkLogo:{height:"200px",width:"200px"}})),useStyles$1$1=makeStyles()(e=>({flexContainer:{display:"flex",alignItems:"center"},header:{alignItems:"center",display:"flex",justifyContent:"space-between",height:"55px",padding:e.spacing(6,0,6,6),borderBottom:"1px solid rgb(219, 226, 234)"},headerActionContainer:{alignItems:"center",display:"flex",flexGrow:1,height:"100%",justifyContent:"flex-end",paddingRight:"10px"},title:{color:"#2A323C"},panelRoot:{padding:"15px",height:"calc(100% - 70px);",overflowY:"scroll"},row:{display:"flex","& svg":{marginRight:"12px",marginBottom:"24px"}},widgets:{"& svg":{fill:"#555F7C"}},veriLogo:{transform:"translate(3px, 2px)"},versionText:{textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden",marginBottom:"5px"},wrapperBox:{padding:"15px 0 15px 0px",marginBottom:"14px"},aiwareLogo:{marginBottom:"10px",marginTop:"10px",width:"151px"},boldTitle:{fontWeight:700},gridBox:{background:"#F7F7F7",padding:"10px",color:"#2A323C"},valueBox:{background:"#F7F7F7",padding:"10px",color:"#2A323C",whiteSpace:"nowrap",textTransform:"capitalize"},imageContainer:{textAlign:"center"},falconLogo:{width:"148px"},osInfo:{display:"flex",justifyContent:"center","& *":{textAlign:"center"}},osName:{padding:"5px 8px",background:"#465364",color:"white",textTransform:"uppercase",fontWeight:"700",borderRadius:"4px"},osVersion:{color:"#5C6269"}})),versionPanelLabels=e=>({closePanelTooltip:e.formatMessage({id:"version-panel.header.close-btn-tooltip",defaultMessage:[{type:0,value:"Close panel"}]}),versionInformationLabel:e.formatMessage({id:"version-panel.version-information-title",defaultMessage:[{type:0,value:"Version Information"}]}),versionLabel:e.formatMessage({id:"version-panel.version-title",defaultMessage:[{type:0,value:"Version"}]}),viewReleaseNotes:e.formatMessage({id:"version-panel.view-release-notes",defaultMessage:[{type:0,value:"View Release Notes"}]}),noVersionInfo:e.formatMessage({id:"version-panel.no-info-label",defaultMessage:[{type:0,value:"Cannot get version information"}]}),clusterSizeLabel:e.formatMessage({id:"version-panel.cluster-size-label",defaultMessage:[{type:0,value:"Cluster Size"}]}),environmentLabel:e.formatMessage({id:"version-panel.environment-label",defaultMessage:[{type:0,value:"Environment"}]}),hostingTypeLabel:e.formatMessage({id:"version-panel.hosting-type-label",defaultMessage:[{type:0,value:"Hosting Type"}]}),infrastructureLabel:e.formatMessage({id:"version-panel.infrastructure-label",defaultMessage:[{type:0,value:"Infrastructure"}]})}),Header$1=()=>{const e=useDispatch();var t=useStyles$1$1()["classes"],n=useIntl(),{versionInformationLabel:n,closePanelTooltip:r}=versionPanelLabels(n);return jsxRuntime.exports.jsxs("header",Object.assign({className:t.header,"data-testid":"create-or-update-token-panel.header"},{children:[jsxRuntime.exports.jsx(Typography$1,Object.assign({variant:"h1","data-testid":"permissions-panel-header-title",className:t.title},{children:n})),jsxRuntime.exports.jsx("div",Object.assign({className:t.headerActionContainer},{children:jsxRuntime.exports.jsx(Tooltip$1,Object.assign({title:r},{children:jsxRuntime.exports.jsx(IconButton$1,Object.assign({onClick:()=>e(hidePanel$1(VERSION_PANEL)),"aria-labelledby":"version-panel.close-button","data-testid":"version-panel.close-button",size:"large"},{children:jsxRuntime.exports.jsx(Close$1,{})}))}))}))]}))},selectLoadingStatus=e=>{return null==(e=null==(e=null==e?void 0:e[PANEL_SLICE])?void 0:e[VERSION_PANEL_NAMESPACE])?void 0:e.status},selectCurrentVersion=e=>{return null==(e=null==(e=null==e?void 0:e[PANEL_SLICE])?void 0:e[VERSION_PANEL_NAMESPACE])?void 0:e.currentVersion},selectPreviousVersion=e=>{return null==(e=null==(e=null==e?void 0:e[PANEL_SLICE])?void 0:e[VERSION_PANEL_NAMESPACE])?void 0:e.previousVersion},selectPlatformProperties=e=>{return null==(e=null==(e=null==e?void 0:e[PANEL_SLICE])?void 0:e[VERSION_PANEL_NAMESPACE])?void 0:e.platformProperties},VERSION_PANEL="VERSION_PANEL",VersionChangelogNullState=({label:e})=>{var t=useStyles$1$1()["classes"];return jsxRuntime.exports.jsx(Box$1,Object.assign({className:t.gridBox,sx:{fontWeight:700,textAlign:"center",mb:"5px"}},{children:e}))},VersionPanelComponent=({sdk:e,edge:t,core:n})=>{const r=useStyles$1$1()["classes"];var i=useIntl();const o=useDispatch(),{versionLabel:a,viewReleaseNotes:s,noVersionInfo:l,clusterSizeLabel:c,environmentLabel:u,hostingTypeLabel:d,infrastructureLabel:p}=versionPanelLabels(i);var i=useSelector(betaFeaturesSelector),f=useSelector(selectPlatformProperties),h=useSelector(selectLoadingStatus);const m={sdk:e,core:n,edge:null!=t&&t.includes("<Error>")?void 0:t};react.exports.useEffect(()=>{o(actions$1.fetchVersionInfoStart())},[o]);var g=jsxRuntime.exports.jsx(Box$1,Object.assign({className:r.osInfo},{children:jsxRuntime.exports.jsxs(Box$1,{children:[jsxRuntime.exports.jsx(Box$1,Object.assign({className:r.osName},{children:jsxRuntime.exports.jsx(Typography$1,Object.assign({variant:"body2",sx:{fontWeight:700}},{children:"Falcon"}))})),jsxRuntime.exports.jsx(Box$1,Object.assign({className:r.osVersion},{children:jsxRuntime.exports.jsxs(Typography$1,Object.assign({variant:"caption"},{children:[a," 2.0"]}))}))]})}));const v={ClusterSize:c,Environment:u,HostingType:d,Infrastructure:p};return jsxRuntime.exports.jsxs(Box$1,{children:[jsxRuntime.exports.jsx(Header$1,{}),jsxRuntime.exports.jsxs("div",Object.assign({className:r.panelRoot},{children:[jsxRuntime.exports.jsxs(Box$1,Object.assign({className:r.wrapperBox},{children:[jsxRuntime.exports.jsxs(Box$1,Object.assign({sx:{p:"20px"}},{children:[i&&(e||t||n)&&jsxRuntime.exports.jsx(Box$1,Object.assign({className:r.imageContainer},{children:jsxRuntime.exports.jsx("img",{src:img$3,className:r.falconLogo,alt:"system-logo"})})),jsxRuntime.exports.jsx(Box$1,Object.assign({className:r.imageContainer},{children:jsxRuntime.exports.jsx("img",{src:img$1,className:r.aiwareLogo,alt:"aiware-logo"})})),i&&(e||t||n)&&g]})),e||t||n||f||["idle","pending"].includes(h)?jsxRuntime.exports.jsxs(Grid$1,Object.assign({container:!0,sx:{mt:"10px"}},{children:[Object.keys(m).map(e=>m[e]?jsxRuntime.exports.jsxs(react.exports.Fragment,{children:[jsxRuntime.exports.jsx(Grid$1,Object.assign({item:!0,xs:9,sx:{p:"2px"}},{children:jsxRuntime.exports.jsxs(Box$1,Object.assign({className:r.gridBox,sx:{fontWeight:700}},{children:[e.charAt(0).toUpperCase()+e.slice(1)," ",a,":"]}))})),jsxRuntime.exports.jsx(Grid$1,Object.assign({item:!0,xs:3,sx:{p:"2px"}},{children:jsxRuntime.exports.jsx(Box$1,Object.assign({className:r.gridBox},{children:m[e]}))}))]},e):null),f&&Object.entries(f).map(([e,t])=>v[e]&&jsxRuntime.exports.jsxs(react.exports.Fragment,{children:[jsxRuntime.exports.jsx(Grid$1,Object.assign({item:!0,xs:9,sx:{p:"2px"}},{children:jsxRuntime.exports.jsxs(Box$1,Object.assign({className:r.gridBox,sx:{fontWeight:700}},{children:[v[e],":"]}))})),jsxRuntime.exports.jsx(Grid$1,Object.assign({item:!0,xs:3,sx:{p:"2px"}},{children:jsxRuntime.exports.jsx(Box$1,Object.assign({className:r.valueBox},{children:t}))}))]},e))]})):jsxRuntime.exports.jsx(VersionChangelogNullState,{label:l})]})),i&&jsxRuntime.exports.jsx(Button$1,Object.assign({sx:{width:"100%",cursor:"pointer"},variant:"outlined",onClick:()=>{}},{children:s}))]}))]})},VersionPanel=e=>jsxRuntime.exports.jsx(DynamicModuleLoader,Object.assign({modules:[getPanelModule()]},{children:jsxRuntime.exports.jsx(VersionPanelComponent,Object.assign({},e))})),dateFormatter=e=>{e=new Date(e||"");return(8<e.getMonth()?e.getMonth()+1:"0"+(e.getMonth()+1))+"/"+(9<e.getDate()?e.getDate():"0"+e.getDate())+"/"+e.getFullYear()};let lottieScript,audio;const theme=createTheme({palette:{secondary:{main:"#1871E8"}}}),Logo_=()=>{const n=useDispatch();var e=useStyles$2$1()["classes"];const[r,i]=react.exports.useState(0),[t,o]=react.exports.useState(!1),[a,s]=react.exports.useState(!1),l=jsxRuntime.exports.jsx("p",Object.assign({style:{pointerEvents:"none"}},{children:"Loading Beta Features"})),[c,u]=react.exports.useState(l),d=useSelector(organizations_selector.selectOrgSwitchInitiated),p=useSelector(e=>{return null==(e=null==(e=null==e?void 0:e.configs)?void 0:e.initConfig)?void 0:e.betaFeatures}),[f,h]=react.exports.useState(!1),[m,g]=react.exports.useState(""),[v,y]=react.exports.useState(""),[x,b]=react.exports.useState(""),[C,$]=react.exports.useState(!1);react.exports.useEffect(()=>{f||(h(!0),(lottieScript=document.createElement("script")).setAttribute("src","https://cdnjs.cloudflare.com/ajax/libs/bodymovin/5.7.8/lottie.min.js"),lottieScript.onload=()=>s(!0),(audio=document.createElement("audio")).id="player",audio.src="https://static.veritone.com/aiware-js-animation/sound-effects/chime.wav",document.head.appendChild(lottieScript),document.body.appendChild(audio)),has_1(window,"aiware.version")&&((t=null==(t=window.aiware)?void 0:t.version)&&"undefined"!==t&&g(t),t=null==(t=window.aiware)?void 0:t.releaseDate,y(dateFormatter(t)));var t=document.getElementsByTagName("script");if(t.length){let e=Array.from(t).find(e=>e.src.includes("get.aiware.com"));(e=e||Array.from(t).find(e=>e.src.includes("https://cdn.jsdelivr.net/npm/aiware-js")))&&fetch(e.getAttribute("src")).then(e=>{g(e.url.split("@")[1].split("/")[0])})}fetch("https://get.aiware.com/aiware-versions/aiware-latest.txt",{headers:{"Content-Type":"text/plain"}}).then(e=>e.text()).then(e=>b(e))},[]),react.exports.useEffect(()=>{if(p&&!d)return;d&&u(jsxRuntime.exports.jsx("p",{children:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-organization-panel.organizations-switching-loader-message",defaultMessage:"Changing your Organization",description:"organizations switching loader message"})}));const e=10===r;if((e||d)&&(o(!0),a)){const t=window.bodymovin.loadAnimation({container:document.getElementById("loaderAnimation"),path:"https://static.veritone.com/aiware-js-animation/particle-explosion.json",renderer:"svg",loop:!1,autoplay:!0,name:"unicorn"});t.onComplete=()=>{e?(n(enableBetaFeatures()),i(0)):d&&u(l),o(!1),t.destroy()},null!==audio&&void 0!==audio&&audio.play()}},[r,p,n,t,d]);return jsxRuntime.exports.jsxs(react.exports.Fragment,{children:[t&&jsxRuntime.exports.jsxs("div",Object.assign({className:e.fullScreen},{children:[jsxRuntime.exports.jsx("div",Object.assign({className:e.loaderBox,id:"loaderAnimation"},{children:!a&&jsxRuntime.exports.jsx("img",{src:img$5,alt:"veritone-logo",className:e.veritoneDarkLogo})})),jsxRuntime.exports.jsxs("div",Object.assign({className:e.loaderBox},{children:[jsxRuntime.exports.jsx(StyledEngineProvider,Object.assign({injectFirst:!0},{children:jsxRuntime.exports.jsx(ThemeProvider,Object.assign({theme:theme},{children:jsxRuntime.exports.jsx(LinearProgress$1,{color:"secondary"})}))})),c]}))]})),jsxRuntime.exports.jsxs("div",{children:[m?jsxRuntime.exports.jsxs(Typography$1,Object.assign({sx:{color:"#9CA8B4",fontSize:"10px",textAlign:"center",cursor:"pointer",width:"60px",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"},onClick:()=>{var e,t;C?($(!1),n(hidePanel$1(VERSION_PANEL))):($(!0),e={name:VERSION_PANEL,config:{name:"Version Information",sdk:m,sdkRelease:v,edge:x}},t={type:"APP_BAR_PANEL_TEMPLATE",marginTop:55,marginStart:80,size:"small",zIndex:1001,dimmed:0,borderBottom:!0},n(mountPanel$1({panelId:VERSION_PANEL,microFrontend:e,panelConfig:t})))}},{children:["V. ",m]})):null,jsxRuntime.exports.jsx("img",{onClick:()=>i(r+1),src:img$B,alt:"footer-icon",draggable:"false"})]})]})},Logo=injectIntl(Logo_);function getTabAction(e,t,n,r="APP_BAR_PANEL"){return{type:mountPanel$1({}).type,payload:{panelId:e,microFrontend:{name:r,config:{name:"Veritone",tabId:e,dataId:"dataId",type:"APP_BAR_PANEL_TEMPLATE"}},panelConfig:{type:"APP_BAR_PANEL_TEMPLATE",marginTop:55,marginStart:80,fullScreen:!1,width:n,header:{divider:!0,title:t}}}}}const tabsListDefault=[{id:TabId.PERSONAL_PANEL,label:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-panel.tabItems.personalProfile",defaultMessage:"Personal Profile",description:"Tooltip pops on the sidebar for personal profile"}),iconComponent:jsxRuntime.exports.jsx(PersonalProfile$1,{}),role:"",action:getTabAction(TabId.PERSONAL_PANEL,jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-panel.panelTitle.personalProfile",defaultMessage:"Personal Profile",description:"Header title for personal profile"}),410)},{id:TabId.ORGANIZATION_PANEL,label:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-panel.tabItems.organizations",defaultMessage:"Organizations",description:"Tooltip pops on the sidebar for organizations"}),iconComponent:jsxRuntime.exports.jsx(Organizations,{}),role:"",action:{type:mountPanel$1({}).type,payload:{panelId:TabId.ORGANIZATION_PANEL,microFrontend:{name:"ORGANIZATION_PANEL"},panelConfig:{type:"APP_BAR_PANEL_TEMPLATE",marginTop:55,marginStart:80,width:560,zIndex:1e3}}}},{id:TabId.CMS_SHORTCUT,label:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-panel.tabItems.dataCenter",defaultMessage:"Data Center",description:"Tooltip pops on the sidebar for data center"}),iconComponent:jsxRuntime.exports.jsx(DataCenter,{}),role:"cms",action:{type:"panels/OPEN_APP_SHORTCUT",payload:"cms"}},{id:TabId.DATA_CENTER,label:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-panel.tabItems.dataCenter",defaultMessage:"Data Center",description:"Tooltip pops on the sidebar for data center"}),iconComponent:jsxRuntime.exports.jsx(DataCenter,{}),role:"cms",action:{type:mountPanel$1({}).type,payload:{panelId:TabId.DATA_CENTER,microFrontend:{name:"DATA_CENTER_BROWSE"},panelConfig:{type:"APP_BAR_PANEL_TEMPLATE",marginTop:55,marginStart:80,size:"xlarge",zIndex:1e3}}}},{id:TabId.PROCESSING_CENTER_BROWSE,label:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-panel.tabItems.processingCenter",defaultMessage:"Processing Center",description:"Tooltip pops on the sidebar for processing center"}),iconComponent:jsxRuntime.exports.jsx(Process,{}),role:"cms",action:{type:mountPanel$1({}).type,payload:{panelId:TabId.PROCESSING_CENTER_BROWSE,microFrontend:{name:"PROCESSING_CENTER_BROWSE"},panelConfig:{type:"APP_BAR_PANEL_TEMPLATE",marginTop:55,marginStart:80,size:"xxlarge",zIndex:1e3}}}},{id:TabId.FLOW_CENTER,label:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-panel.tabItems.flowCenter",defaultMessage:"Flow Center",description:"Tooltip pops on the sidebar for flow center"}),iconComponent:jsxRuntime.exports.jsx(FlowCenter2,{}),role:"automate",action:{type:mountPanel$1({}).type,payload:{panelId:TabId.FLOW_CENTER,microFrontend:{name:"FLOW_CENTER",config:{name:"Veritone",tabId:TabId.FLOW_CENTER,dataId:"dataId",type:"APP_BAR_PANEL_TEMPLATE",zIndex:1200}},panelConfig:{type:"APP_BAR_PANEL_TEMPLATE",marginTop:55,marginStart:80,size:"xxlarge"}}}},{id:TabId.ENGINE_CENTER,label:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-panel.tabItems.developerCenter",defaultMessage:"Developer Center",description:"Tooltip pops on the sidebar for developer center"}),iconComponent:jsxRuntime.exports.jsx(DeveloperCenter,{}),role:"cms",action:{type:"panels/OPEN_APP_SHORTCUT",payload:"developer"}},{id:TabId.MARKETPLACE_CENTER,label:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-panel.tabItems.marketplaceCenter",defaultMessage:"Marketplace",description:"Tooltip pops on the sidebar for marketplace center"}),iconComponent:jsxRuntime.exports.jsx(Marketplace$1,{}),role:"cms",action:{type:"panels/OPEN_APP_SHORTCUT",payload:"marketplace"}},{id:TabId.LIBRARY_CENTER,label:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-panel.tabItems.libraryCenter",defaultMessage:"Library Center",description:"Tooltip pops on the sidebar for library center"}),iconComponent:jsxRuntime.exports.jsx(LibraryCenter,{}),role:"",action:{type:"panels/OPEN_APP_SHORTCUT",payload:"libray"}},{id:TabId.ADMIN_SHORTCUT,label:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-panel.tabItems.adminCenter",defaultMessage:"Admin Center",description:"Tooltip pops on the sidebar for admin center"}),iconComponent:jsxRuntime.exports.jsx(AdminCenter,{}),role:"admin",action:{type:mountPanel$1({}).type,payload:{panelId:TabId.ADMIN_SHORTCUT,microFrontend:{name:"ADMIN_CENTER_BROWSE"},panelConfig:{type:"APP_BAR_PANEL_TEMPLATE",marginTop:55,marginStart:80,size:"xlarge",zIndex:1e3}}}},{id:TabId.INSTANCE_ADMIN_CENTER_BROWSE,label:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-panel.tabItems.instanceAdminCenter",defaultMessage:"Instance Admin Center",description:"Tooltip pops on the sidebar for instance admin center"}),iconComponent:jsxRuntime.exports.jsx(AdminTabIcon,{}),role:"admin",action:{type:mountPanel$1({}).type,payload:{panelId:TabId.INSTANCE_ADMIN_CENTER_BROWSE,microFrontend:{name:"INSTANCE_ADMIN_CENTER_BROWSE"},panelConfig:{type:"APP_BAR_PANEL_TEMPLATE",marginTop:55,marginStart:80,size:"xlarge",zIndex:1e3}}}},{id:TabId.RESOURCE_CENTER,label:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-panel.tabItems.resourceCenter",defaultMessage:"Resource Center",description:"Tooltip pops on the sidebar for resource center"}),iconComponent:jsxRuntime.exports.jsx(Resources$1,{}),role:"",action:{type:mountPanel$1({}).type,payload:{panelId:TabId.RESOURCE_CENTER,microFrontend:{name:"RESOURCE_CENTER_BROWSE"},panelConfig:{type:"APP_BAR_PANEL_TEMPLATE",marginTop:55,marginStart:80,size:"xxlarge",zIndex:1e3}}}},{id:TabId.PROCESSING_CENTER_DAG_BUILDER,label:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-panel.tabItems.dagBuilder",defaultMessage:"DAG Builder (Beta)",description:"Tooltip pops on the sidebar for dag builder"}),iconComponent:jsxRuntime.exports.jsx(DagBuilder,{}),role:"cms",action:{type:mountPanel$1({}).type,payload:{panelId:TabId.PROCESSING_CENTER_DAG_BUILDER,microFrontend:{name:"PROCESSING_CENTER_DAG_BUILDER"},panelConfig:{type:"APP_BAR_PANEL_TEMPLATE",marginTop:55,marginStart:80,size:"xlarge",zIndex:1e3}}}}];function AppbarTabPanel({panelId:t,children:e,withTab:r=!0,withChild:n=!0}){const i=useDispatch(),[o,a]=react.exports.useState(),[s,l]=react.exports.useState([]),[c,u]=react.exports.useState(!1);var d=useSelector(e=>e.panels.find(e=>e.panelId===t))||{};const p=useSelector(e=>e.panels);const{microFrontend:f,panelConfig:h}=d,{minWidth:m,padding:g=0,header:v,footer:y,marginTop:x=0,marginStart:b=0,show:C,tabs:$=[],zIndex:S=1e3,userRoles:w=[],panelId:_,size:j,fullScreen:T,width:E,dimmed:R=0,parentPanelId:I,borderBottom:O}=h||{};const A=I?("ORGANIZATION_PANEL"!==I?"":"solid 5px #4D81B7")||("DATA_CENTER"!==I?"":"solid 5px #4D81B7"):"solid 5px #4D81B7",M=makeStyles()(e=>{return{container:{position:"fixed",top:x,right:T?0:b,height:`calc(100vh - ${x}px)`,minWidth:m,width:E||(T?"100%":getTabPanelWidthBySize(j)||560),borderBottom:O?"solid 5px #4D81B7":A,zIndex:T?1500:S,transitionTimingFunction:"ease-in-out !important"},padding:{padding:e.spacing(g),paddingTop:e.spacing(g/2)},margin:{margin:e.spacing()},headerContainer:{display:"flex",width:"100%",justifyContent:"space-between",alignItems:"center"},headerTitle:{margin:e.spacing(),marginTop:e.spacing(2)},actionButton:{margin:e.spacing()},footer:{},actionContainer:{"&:last-child":{marginRight:e.spacing(2)}},content:{overflow:"overlay",overflowX:"hidden",height:(t=v?64:0,n=y?64:0,`calc(100vh - ${x}px - ${t}px - ${n}px - 5px)`)},paperContainer:{top:56,backgroundColor:"unset !important",boxShadow:"none"},tabContainer:{overflow:"hidden",width:"100%"},tabSelect:{paddingTop:e.spacing(6),width:80,display:"flex",flexDirection:"column"},drawerContainer:{display:"flex",background:e.palette.background.default},tabName:{display:"flex",justifyContent:"space-between",alignItems:"center",height:"61px",padding:e.spacing(0,4,0,6)},actionIcons:{margin:e.spacing(-2.4)},title:{userSelect:"none",fontStyle:"normal",fontSize:"18px",lineHeight:e.spacing(5),letterSpacing:"0.25px",textTransform:"uppercase",color:e.palette.text.secondary},tabContent:{borderRight:r?"0.5px solid "+e.palette.divider:"none",overflowY:"auto",overflowX:"hidden",width:"100%"},buttonAction:{textTransform:"unset"},aiWareIcon:{padding:e.spacing(2.4,0),display:"flex",justifyContent:"center",position:"fixed",bottom:"0",right:"10px"},noShadow:{boxShadow:"none",borderLeft:"0.5px solid "+e.palette.divider},panelMask:{position:"absolute",zIndex:1150,width:"100%",height:"100%",backgroundColor:e.palette.grey[50],opacity:.5}};var t,n})()["classes"];react.exports.useEffect(()=>{0<$.length?l([...tabsListDefault,...$]):l(tabsListDefault)},[$]),react.exports.useEffect(()=>{var e;null!==f&&void 0!==f&&f.config&&null!=(e=f.config)&&e.tabId&&a(f.config.tabId)},[f]),react.exports.useEffect(()=>{0<p.length&&o&&r&&(p.find(e=>e.panelId===o)||a(void 0))},[p,o,r]);n=jsxRuntime.exports.jsxs(Paper$1,Object.assign({className:`${M.container} ${n?"":M.noShadow} `,elevation:3,id:t,square:!0,"data-test":"panel-"+(_||"unknown")},{children:[0<R&&jsxRuntime.exports.jsx("div",{className:M.panelMask}),jsxRuntime.exports.jsxs("div",Object.assign({className:M.drawerContainer},{children:[n&&jsxRuntime.exports.jsxs("div",Object.assign({className:M.tabContent},{children:[v&&jsxRuntime.exports.jsxs("div",{children:[jsxRuntime.exports.jsxs("div",Object.assign({className:M.tabName},{children:[jsxRuntime.exports.jsx(Typography$1,Object.assign({variant:"h1",className:M.title},{children:v.title||(null==(d=s.find(e=>e.id===o))?void 0:d.label)})),jsxRuntime.exports.jsxs("div",Object.assign({className:M.actionIcons},{children:[null==(n=v.actions)?void 0:n.map(e=>e.label?jsxRuntime.exports.jsx(Button$1,Object.assign({size:e.size,variant:e.variant,onClick:()=>i(e.action)},{children:e.label}),e.action.type):jsxRuntime.exports.jsxs(IconButton$1,Object.assign({onClick:()=>i(e.action),size:"large"},{children:[e.iconUrl&&jsxRuntime.exports.jsx("img",{src:e.iconUrl,alt:"icon",draggable:"false"}),e.icon&&jsxRuntime.exports.jsx("div",{children:e.icon})]}),e.action.type)),jsxRuntime.exports.jsx(IconButton$1,Object.assign({onClick:()=>i(hidePanel$1(t)),"data-test":"close-button-"+t,size:"large"},{children:jsxRuntime.exports.jsx("img",{src:I?img$U:img$V,alt:"icon",draggable:"false"})}))]}))]})),v.divider&&jsxRuntime.exports.jsx(Divider$1,{})]}),jsxRuntime.exports.jsx("div",Object.assign({className:M.content},{children:e?react.exports.cloneElement(e,Object.assign(Object.assign({},(null===f||void 0===f?void 0:f.config)||{}),{dataId:t,hidePanel:()=>i(hidePanel$1(t)),tabId:o,panelRendered:c})):jsxRuntime.exports.jsx("div",{children:jsxRuntime.exports.jsx("h1",{children:"No micro frontend passed!"})})})),y&&jsxRuntime.exports.jsxs("div",Object.assign({className:M.footer},{children:[y.divider&&jsxRuntime.exports.jsx(Divider$1,{}),jsxRuntime.exports.jsx("div",Object.assign({className:M.headerContainer},{children:jsxRuntime.exports.jsx("div",Object.assign({className:M.actionContainer},{children:null==(d=y.actions)?void 0:d.map(e=>{var t;if(e.iconUrl)return jsxRuntime.exports.jsxs(IconButton$1,Object.assign({className:M.actionButton,onClick:(t=e.action,()=>{i(t)}),size:"large"},{children:[e.iconUrl&&jsxRuntime.exports.jsx("img",{src:e.iconUrl,alt:"icon",draggable:"false"}),e.icon&&jsxRuntime.exports.jsx("div",{children:e.icon})]}),e.action.type);const n=e;return jsxRuntime.exports.jsx(Button$1,Object.assign({className:M.actionButton,size:n.size,variant:n.variant,onClick:()=>i(n.action)},{children:n.label}),e.action.type)})}))}))]}))]})),r&&jsxRuntime.exports.jsxs("div",Object.assign({id:"tabs-content",className:M.tabSelect},{children:[jsxRuntime.exports.jsx(Tabs,{selectedId:o,tabsList:s,onChangeTab:function(t){0<=p.map(e=>e.panelId).indexOf(VERSION_PANEL)&&i(hidePanel$1(VERSION_PANEL)),o&&i(hidePanel$1(o)),a(t);var e,n=s.find(e=>e.id===t);null!=(e=null==n?void 0:n.onClick)&&e.call(n,t),null!=n&&n.action&&i(n.action)},roles:w}),(null===y||void 0===y?void 0:y.logo)&&jsxRuntime.exports.jsx("div",Object.assign({className:M.aiWareIcon},{children:jsxRuntime.exports.jsx(Logo,{})}))]}))]}))]}));return jsxRuntime.exports.jsx(AIWareThemeProvider$1,{children:jsxRuntime.exports.jsx(AIWareIntlProvider,{children:jsxRuntime.exports.jsx(DynamicModuleLoader,Object.assign({modules:[getPanelModule()]},{children:jsxRuntime.exports.jsx(Slide$1,Object.assign({"data-id":"123456",in:C,direction:"left",onEntered:()=>u(!0),onExited:()=>i(unmountPanel$1(t))},{children:n}))}))})})}const AppbarPanel=e=>jsxRuntime.exports.jsx(AppbarTabPanel,Object.assign({},e,{withChild:!0,withTab:!1})),Tab=e=>jsxRuntime.exports.jsx(AppbarTabPanel,Object.assign({},e,{withChild:!1,withTab:!0})),changelogPanelLabels=e=>({changelog:e.formatMessage({id:"changelog-panel.header.title",defaultMessage:[{type:0,value:"Release Notes"}]}),closePanelTooltip:e.formatMessage({id:"changelog-panel.header.close-btn-tooltip",defaultMessage:[{type:0,value:"Close panel"}]}),versionLabel:e.formatMessage({id:"changelog-panel.version-title",defaultMessage:[{type:0,value:"Version"}]}),updateRequiredLabel:e.formatMessage({id:"changelog-panel.update-required",defaultMessage:[{type:0,value:"Update required"}]}),deploymentLabel:e.formatMessage({id:"changelog-panel.deployment",defaultMessage:[{type:0,value:"Deployment"}]}),currentVersionLabel:e.formatMessage({id:"changelog-panel.current-version",defaultMessage:[{type:0,value:"Current Version"}]}),previousVersionLabel:e.formatMessage({id:"changelog-panel.previous-version",defaultMessage:[{type:0,value:"Previous Version"}]}),apiUnavailable:e.formatMessage({id:"changelog-panel.no-api",defaultMessage:[{type:0,value:"Cannot retrieve platform information"}]}),current:e.formatMessage({id:"changelog-panel.current",defaultMessage:[{type:0,value:"Current"}]}),previous:e.formatMessage({id:"changelog-panel.previous",defaultMessage:[{type:0,value:"Previous"}]}),noVersionHighlightsCurrent:e.formatMessage({id:"changelog-panel.no-current-version-highlights",defaultMessage:[{type:0,value:"No Release Notes for Current Version"}]}),noVersionHighlightsPrevious:e.formatMessage({id:"changelog-panel.no-prev-version-highlights",defaultMessage:[{type:0,value:"No Release Notes for Previous Version"}]}),noHighlights:e.formatMessage({id:"changelog-panel.no-highlights",defaultMessage:[{type:0,value:"Cannot retrieve version highlights"}]}),unknown:e.formatMessage({id:"changelog-panel.unknown",defaultMessage:[{type:0,value:"unknown"}]}),viewReleaseNotes:e.formatMessage({id:"version-panel.view-release-notes",defaultMessage:[{type:0,value:"View Release Notes"}]}),error:e.formatMessage({id:"version-panel.error-state",defaultMessage:[{type:0,value:"Error while fetching release notes"}]}),errorHelperText:e.formatMessage({id:"version-panel.error-state-helper-text",defaultMessage:[{type:0,value:"Please try again later"}]})}),useStyles$5=makeStyles()(e=>({flexContainer:{display:"flex",alignItems:"center"},header:{alignItems:"center",display:"flex",justifyContent:"space-between",height:"55px",padding:e.spacing(6,0,6,6),borderBottom:"1px solid rgb(219, 226, 234)"},headerActionContainer:{alignItems:"center",display:"flex",flexGrow:1,height:"100%",justifyContent:"flex-end",paddingRight:"10px"},title:{color:"#2A323C"},panelRoot:{padding:"15px",height:"calc(100% - 70px);",overflowY:"scroll"},row:{display:"flex","& svg":{marginRight:"12px",marginBottom:"24px"}},widgets:{"& svg":{fill:"#555F7C"}},veriLogo:{transform:"translate(3px, 2px)"},versionText:{textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden",marginBottom:"5px"},wrapperBox:{padding:"15px 0 15px 15px",border:".5px solid #D5DFE9",borderRadius:"4px",marginBottom:"14px","& iframe":{width:"100%",border:"none"}},aiwareLogo:{marginBottom:"10px"},boldTitle:{fontWeight:700},releaseNotesBtn:{width:"100%",cursor:"pointer",height:"36px",border:"1px solid #5C6269",color:"#5C6269",marginTop:"15px","&:hover":{border:"1px solid #5C6269"}},errorStateContainer:{padding:"40px",textAlign:"center","& img":{width:"40%",marginBottom:"20px"}}})),Header=()=>{const e=useDispatch();var t=useStyles$5()["classes"],n=useIntl(),{changelog:n,closePanelTooltip:r}=changelogPanelLabels(n);return jsxRuntime.exports.jsxs("header",Object.assign({className:t.header,"data-testid":"create-or-update-token-panel.header"},{children:[jsxRuntime.exports.jsxs(Typography$1,Object.assign({variant:"h1","data-testid":"permissions-panel-header-title",className:t.title},{children:["AIWARE ",n]})),jsxRuntime.exports.jsx("div",Object.assign({className:t.headerActionContainer},{children:jsxRuntime.exports.jsx(Tooltip$1,Object.assign({title:r},{children:jsxRuntime.exports.jsx(IconButton$1,Object.assign({onClick:()=>e(hidePanel$1(CHANGELOG_PANEL)),"aria-labelledby":"version-panel.close-button","data-testid":"version-panel.close-button",size:"large"},{children:jsxRuntime.exports.jsx(Close$1,{})}))}))}))]}))},CHANGELOG_PANEL="CHANGELOG_PANEL",ChangelogPanelComponent=()=>{var e=useStyles$5()["classes"],t=useIntl(),{versionLabel:t,updateRequiredLabel:n,deploymentLabel:r,previousVersionLabel:i,currentVersionLabel:o,apiUnavailable:a,noHighlights:s,noVersionHighlightsCurrent:l,noVersionHighlightsPrevious:c,unknown:u,viewReleaseNotes:d,error:p,errorHelperText:f}=changelogPanelLabels(t);const h=useDispatch(),[m,g]=react.exports.useState(!1);var v=useSelector(selectLoadingStatus);const[y,x]=react.exports.useState({}),b=e=>{if("https://get.aiware.com"===e.origin){const{height:t,source:n}=e.data;x(e=>Object.assign(Object.assign({},e),{[n]:t+1}))}};var C=useSelector(betaFeaturesSelector),$=(react.exports.useEffect(()=>{var e=gqlIntrospection.getQueries().find(e=>"platformInfo"===e.name);return g(!!e),e&&h(actions$2.versionPanel.fetchVersionInfoStart()),window.addEventListener("message",b),()=>window.removeEventListener("message",b)},[]),(e="")=>{let t;try{t=new URL(e)}catch(e){return!1}return"http:"===t.protocol||"https:"===t.protocol}),S=useSelector(selectCurrentVersion),w=useSelector(selectPreviousVersion),[_,,]=react.exports.useState(!1),o=$(null==S?void 0:S.highlightsUrl)?jsxRuntime.exports.jsxs(Box$1,Object.assign({className:e.wrapperBox},{children:[S&&jsxRuntime.exports.jsx(Typography$1,Object.assign({variant:"h1",sx:{mb:"10px"}},{children:o})),jsxRuntime.exports.jsx("iframe",{id:"current-version",src:null==S?void 0:S.highlightsUrl,height:y[(null==(o=null==S?void 0:S.highlightsUrl)?void 0:o.toString())||""]})]})):jsxRuntime.exports.jsx(VersionChangelogNullState,{label:l}),$=$(null==w?void 0:w.highlightsUrl)?jsxRuntime.exports.jsxs(Box$1,Object.assign({className:e.wrapperBox},{children:[S&&jsxRuntime.exports.jsx(Typography$1,Object.assign({variant:"h1",sx:{mb:"10px"}},{children:i})),jsxRuntime.exports.jsx("iframe",{id:"previous-version",src:null==w?void 0:w.highlightsUrl,height:y[(null==(l=null==w?void 0:w.highlightsUrl)?void 0:l.toString())||""]})]})):jsxRuntime.exports.jsx(VersionChangelogNullState,{label:c}),i=jsxRuntime.exports.jsxs(Box$1,{children:[jsxRuntime.exports.jsxs(Box$1,Object.assign({sx:{display:"flex",flexDirection:"column",height:"100%"}},{children:[jsxRuntime.exports.jsxs(Box$1,Object.assign({className:e.wrapperBox},{children:[jsxRuntime.exports.jsxs(Box$1,Object.assign({className:e.flexContainer},{children:[jsxRuntime.exports.jsxs(Typography$1,Object.assign({variant:"h1"},{children:[t," ",null!=S&&S.version?null==S?void 0:S.version:u]})),_?jsxRuntime.exports.jsxs(Typography$1,Object.assign({sx:{ml:"10px"},variant:"caption"},{children:["(",n,")"]})):null]})),jsxRuntime.exports.jsx(Box$1,Object.assign({sx:{mt:"5px"}},{children:jsxRuntime.exports.jsxs(Typography$1,Object.assign({variant:"body2"},{children:[r," -"," ",S&&S.createdAt?dateFormatter((null==S?void 0:S.createdAt)||null):u]}))}))]})),S?o:null]})),w?$:null,!S&&!w&&jsxRuntime.exports.jsx(VersionChangelogNullState,{label:s}),C&&jsxRuntime.exports.jsxs(Button$1,Object.assign({className:e.releaseNotesBtn,variant:"outlined",onClick:()=>({})},{children:[jsxRuntime.exports.jsx(Launch,{sx:{mr:"5px",width:"18px"}})," ",d]}))]}),l=jsxRuntime.exports.jsxs(Box$1,Object.assign({className:e.errorStateContainer},{children:[jsxRuntime.exports.jsx("img",{src:img$a,alt:"error"}),jsxRuntime.exports.jsx(Box$1,{children:jsxRuntime.exports.jsx(Typography$1,Object.assign({variant:"body1",sx:{fontWeight:700}},{children:p}))}),jsxRuntime.exports.jsx(Box$1,{children:jsxRuntime.exports.jsx(Typography$1,Object.assign({variant:"body2"},{children:f}))})]}));return jsxRuntime.exports.jsxs(Box$1,Object.assign({sx:{height:"calc(100vh - 60px)",overflow:"hidden"}},{children:[jsxRuntime.exports.jsx(Header,{}),"pending"===v&&jsxRuntime.exports.jsx(Box$1,Object.assign({sx:{p:"15px",display:"flex",justifyContent:"center"}},{children:jsxRuntime.exports.jsx(CircularProgress$1,{})})),"success"===v&&jsxRuntime.exports.jsx("div",Object.assign({className:e.panelRoot},{children:m?i:jsxRuntime.exports.jsx(VersionChangelogNullState,{label:a})})),"failure"===v&&l]}))},ChangelogPanel=()=>jsxRuntime.exports.jsx(DynamicModuleLoader,Object.assign({modules:[getPanelModule()]},{children:jsxRuntime.exports.jsx(ChangelogPanelComponent,{})}));var index_esm$2=Object.freeze({__proto__:null,AppbarPanel:AppbarPanel,AppbarTabPanel:AppbarTabPanel,ChangelogPanel:ChangelogPanel,TabPanel:Tab,VersionPanel:VersionPanel});const Panel=({panelId:t,children:e})=>{var n;const r=useDispatch(),{microFrontend:i,panelConfig:{minWidth:o,padding:a=0,header:s,footer:l,marginTop:c=0,marginStart:u=0,show:d,width:p=500,zIndex:f=1}}=useSelector(e=>e.panels.find(e=>e.panelId===t)),h=makeStyles()(e=>({container:{position:"fixed",top:c,right:u,height:"100%",minWidth:o,width:p,zIndex:f},padding:{padding:e.spacing(a),paddingTop:e.spacing(a/2)},margin:{margin:e.spacing()},headerContainer:{display:"flex",width:"100%",justifyContent:"space-between",alignItems:"center"},headerTitle:{margin:e.spacing()},actionButton:{margin:e.spacing()},actionContainer:{"&:last-child":{marginRight:e.spacing(2)}},footer:{}}))()["classes"],m=e=>{var t;return e.icon?jsxRuntime.exports.jsx(IconButton$1,Object.assign({className:h.actionButton,onClick:()=>r(e.action),size:"large"},{children:e.icon})):(t=e,jsxRuntime.exports.jsx(Button$1,Object.assign({className:h.actionButton,size:t.size,variant:t.variant,onClick:()=>r(e.action)},{children:t.label})))};return jsxRuntime.exports.jsx(Slide$1,Object.assign({in:d,direction:"left",onExited:()=>r(unmountPanel$1(t))},{children:jsxRuntime.exports.jsxs(Paper$1,Object.assign({elevation:3,id:t,"data-test":"panel-"+(t||"unknown"),className:h.container},{children:[s&&jsxRuntime.exports.jsxs("div",{children:[jsxRuntime.exports.jsxs("div",Object.assign({className:h.headerContainer},{children:[jsxRuntime.exports.jsx(Typography$1,Object.assign({gutterBottom:!0,className:h.headerTitle,variant:"h4"},{children:s.title})),jsxRuntime.exports.jsxs("div",Object.assign({className:h.actionContainer},{children:[null==(n=s.actions)?void 0:n.map(e=>m(e)),jsxRuntime.exports.jsx(IconButton$1,Object.assign({"data-test":"close-button-"+t,className:h.actionButton,onClick:()=>r(hidePanel$1(t)),size:"large"},{children:jsxRuntime.exports.jsx(default_1$6,{})}))]}))]})),s.divider&&jsxRuntime.exports.jsx(Divider$1,{})]}),jsxRuntime.exports.jsx("div",Object.assign({className:h.padding},{children:e?react.exports.cloneElement(e,Object.assign(Object.assign({},i.config||{}),{dataId:t,hidePanel:()=>r(hidePanel$1(t))})):jsxRuntime.exports.jsx("div",{children:jsxRuntime.exports.jsx("h1",{children:"No micro frontend passed!"})})})),l&&jsxRuntime.exports.jsxs("div",Object.assign({className:h.footer},{children:[l.divider&&jsxRuntime.exports.jsx(Divider$1,{}),jsxRuntime.exports.jsxs("div",Object.assign({className:h.headerContainer},{children:[jsxRuntime.exports.jsx("div",{}),jsxRuntime.exports.jsx("div",Object.assign({className:h.actionContainer},{children:null==(n=l.actions)?void 0:n.map(e=>m(e))}))]}))]}))]}))}))},SamplePanel5=e=>jsxRuntime.exports.jsx("div",{children:jsxRuntime.exports.jsx("h1",{children:"Welcome to SamplePanel5!"})}),SamplePanel4=e=>jsxRuntime.exports.jsx("div",{children:jsxRuntime.exports.jsx("h1",{children:"Welcome to SamplePanel4!"})}),SamplePanel3=n=>{const r=useDispatch();return jsxRuntime.exports.jsxs("div",{children:[jsxRuntime.exports.jsx("h1",{children:"Welcome to picker!"}),jsxRuntime.exports.jsx(Typography$1,Object.assign({id:"discrete-slider",gutterBottom:!0},{children:"Temperature"})),jsxRuntime.exports.jsx(Slider$1,{"data-test":"slider",defaultValue:n.value,value:n.value,"aria-labelledby":"discrete-slider",valueLabelDisplay:"auto",step:10,marks:!0,min:0,max:110,onChange:(e,t)=>{r(updatePanelMicroFrontendProps({id:n.dataId,props:Object.assign(Object.assign({},n),{value:t})}))},onChangeCommitted:(e,t)=>{r(updatePanelMicroFrontendProps({id:n.dataId,props:Object.assign(Object.assign({},n),{value:t})})),r(setData({id:n.dataId,data:t}))}})]})},SamplePanel2=e=>jsxRuntime.exports.jsx("div",{children:jsxRuntime.exports.jsx("h1",{children:"Welcome to SamplePanel2!"})}),useStyles$3=makeStyles()(e=>({container:{},root:{minWidth:50},bullet:{display:"inline-block",margin:"0 2px",transform:"scale(0.8)"},title:{fontSize:14},pos:{marginBottom:12}})),SamplePanel1=e=>{var t=useStyles$3()["classes"],n=jsxRuntime.exports.jsx("span",Object.assign({className:t.bullet},{children:"•"}));return jsxRuntime.exports.jsxs("div",Object.assign({className:t.container},{children:[jsxRuntime.exports.jsxs("h1",{children:["Welcome to SamplePanel1 ",e.name||"Unknown Person","!"]}),jsxRuntime.exports.jsxs(Card$1,Object.assign({className:t.root},{children:[jsxRuntime.exports.jsxs(CardContent$1,{children:[jsxRuntime.exports.jsx(Typography$1,Object.assign({className:t.title,color:"textSecondary",gutterBottom:!0},{children:"Word of the Day"})),jsxRuntime.exports.jsxs(Typography$1,Object.assign({variant:"h5",component:"h2"},{children:["be",n,"nev",n,"o",n,"lent"]})),jsxRuntime.exports.jsx(Typography$1,Object.assign({className:t.pos,color:"textSecondary"},{children:"adjective"})),jsxRuntime.exports.jsxs(Typography$1,Object.assign({variant:"body2",component:"p"},{children:["well meaning and kindly.",jsxRuntime.exports.jsx("br",{}),'"a benevolent smile"']}))]}),jsxRuntime.exports.jsx(CardActions$1,{children:jsxRuntime.exports.jsx(Button$1,Object.assign({size:"small"},{children:"Learn More"}))})]}))]}))};var WidgetsStatus,index_esm$1=Object.freeze({__proto__:null,Panel:Panel,SamplePanel1:SamplePanel1,SamplePanel2:SamplePanel2,SamplePanel3:SamplePanel3,SamplePanel4:SamplePanel4,SamplePanel5:SamplePanel5});const registry={[AvailableWidgets.APP_BAR]:App,[AvailableComponents.APP_BAR_PANEL]:SettingPanelComponent,[AvailablePanels.APP_BAR_PANEL_TEMPLATE]:AppbarPanel,[AvailablePanels.TAB_TEMPLATE]:Tab,[AvailablePanels.SIMPLE_PANEL]:Panel},registryLookup=t=>__awaiter$e(void 0,void 0,void 0,function*(){if(registry[t])return yield registry[t];let e=Promise.resolve(null);switch(t){case AvailableWidgets.SAMPLE_APP_BAR:e=import("./js-core.esm2.js").then(e=>e.SampleAppBar);break;case AvailableWidgets.RESET_PASSWORD:e=import("./js-core.esm4.js").then(e=>e.ResetPassword);break;case AvailableWidgets.FLOW_CENTER:e=import("./js-core.esm7.js").then(e=>e.App);break;case AvailableWidgets.FLOW_WIDGET:e=import("./js-core.esm8.js").then(function(e){return e.i}).then(e=>e.App);break;case AvailableWidgets.ENGINE_CENTER_BROWSE:e=import("./js-core.esm20.js").then(e=>e.EngineCenterBrowse);break;case AvailablePanels.APP_BAR_TAB_PANEL_TEMPLATE:e=Promise.resolve().then(function(){return index_esm$2}).then(e=>e.AppbarTabPanel);break;case AvailableComponents.NOTIFICATION_PANEL:e=Promise.resolve().then(function(){return index_esm$5}).then(e=>e.NotificationPanel);break;case AvailableComponents.NOTIFICATION_DETAIL:e=Promise.resolve().then(function(){return index_esm$5}).then(e=>e.NotificationDetailPanel);break;case AvailableComponents.NOTIFICATION_SETTING:e=Promise.resolve().then(function(){return index_esm$5}).then(e=>e.NotificationSetting);break;case AvailableComponents.NOTIFICATION_UTILITY:e=Promise.resolve().then(function(){return index_esm$5}).then(e=>e.NotificationUtilityPanel);break;case AvailableComponents.NOTIFICATION_APPLICATION:e=Promise.resolve().then(function(){return index_esm$5}).then(e=>e.NotificationApplication);break;case AvailableComponents.HELP_PANEL:e=Promise.resolve().then(function(){return index_esm}).then(e=>e.HelpCenterPanel);break;case AvailableComponents.EDIT_PROFILE_PICTURE:e=Promise.resolve().then(function(){return index_esm$4}).then(e=>e.EditProFilePicture);break;case AvailableComponents.TEST_COMPONENT:e=Promise.resolve().then(function(){return index_esm$1}).then(e=>e.SamplePanel1);break;case AvailableComponents.TEST_COMPONENT2:e=Promise.resolve().then(function(){return index_esm$1}).then(e=>e.SamplePanel2);break;case AvailableComponents.TEST_COMPONENT3:e=Promise.resolve().then(function(){return index_esm$1}).then(e=>e.SamplePanel3);break;case AvailableComponents.SETTING_PREFERENCE:e=import("./js-core.esm33.js").then(e=>e.SettingsPreferencesPanel);break;case AvailableComponents.ORGANIZATION_PANEL:e=Promise.resolve().then(function(){return index_esm$3}).then(e=>e.OrganizationPanel);break;case AvailableComponents.INVITE_USERS_PANEL:e=Promise.resolve().then(function(){return index_esm$3}).then(e=>e.InviteUsersPanel);break;case AvailableComponents.INVITE_REQUESTS_PANEL:e=Promise.resolve().then(function(){return index_esm$3}).then(e=>e.InviteRequestsPanel);break;case AvailableComponents.REVIEW_ORG_INVITE_PANEL:e=Promise.resolve().then(function(){return index_esm$3}).then(e=>e.ReviewRequestPanel);break;case AvailableComponents.ADD_APPLICATIONS:e=Promise.resolve().then(function(){return index_esm$3}).then(e=>e.AddApplicationsPanel);break;case AvailableComponents.DATA_CENTER_BROWSE:e=import("./js-core.esm34.js").then(function(e){return e.c}).then(e=>e.DataCenterBrowse);break;case AvailableComponents.DATA_CENTER_FOLDERS_AND_FILES:e=import("./js-core.esm34.js").then(function(e){return e.c}).then(e=>e.FoldersAndFilesPanel);break;case AvailableComponents.DATA_CENTER_FILE_INFO_PANEL:e=import("./js-core.esm34.js").then(function(e){return e.c}).then(e=>e.FileInfoPanel);break;case AvailableComponents.DATA_CENTER_IMPORTER:e=import("./js-core.esm39.js").then(e=>e.DataCenterImporter);break;case AvailableComponents.DATA_LABELER:e=import("./js-core.esm40.js").then(e=>e.DataLabelerPanel);break;case AvailableComponents.ADMIN_CENTER_OPEN_ID:e=import("./js-core.esm41.js").then(e=>e.AdminCenterOpenId);break;case AvailableComponents.ADMIN_CENTER_BROWSE:e=import("./js-core.esm43.js").then(e=>e.AdminCenterBrowse);break;case AvailableComponents.DATA_CENTER_PROCESS_AI:e=import("./js-core.esm47.js").then(e=>e.DataCenterProcessAI);break;case AvailableComponents.ENGINE_CENTER_NEW:e=import("./js-core.esm21.js").then(function(e){return e.k}).then(e=>e.EngineCenterNew);break;case AvailableComponents.ENGINE_CENTER_FILTER:e=import("./js-core.esm20.js").then(e=>e.EngineCenterFilter);break;case AvailableComponents.APP_CENTER_FILTER:e=import("./js-core.esm48.js").then(e=>e.AppCenterFilter);break;case AvailableComponents.ENGINE_CENTER_DETAILS:e=import("./js-core.esm20.js").then(e=>e.EngineDetails);break;case AvailableComponents.ENGINE_CENTER_NEW_BUILD:e=import("./js-core.esm20.js").then(e=>e.CreateNewBuildPanel);break;case AvailableComponents.ENGINE_CENTER_CUSTOM_FIELDS_FORM:e=import("./js-core.esm21.js").then(function(e){return e.k}).then(e=>e.EngineCenterCustomFieldsForm);break;case AvailableComponents.ENGINE_CENTER_SCHEMAS_FORM_PANEL:e=import("./js-core.esm21.js").then(function(e){return e.k}).then(e=>e.SchemasFormPanel);break;case AvailableComponents.ENGINE_CENTER_INPUT_TYPE_FLYOUT:e=import("./js-core.esm21.js").then(function(e){return e.k}).then(e=>e.InputTypeFlyout);break;case AvailableComponents.ENGINE_CENTER_EDIT_RELEASE_NOTES:e=import("./js-core.esm20.js").then(e=>e.EditReleaseNotes);break;case AvailableComponents.ENGINE_CENTER_VERSION_HISTORY_PANEL:e=import("./js-core.esm20.js").then(e=>e.VersionHistoryPanel);break;case AvailableComponents.SUPPORTED_FILE_TYPES:e=import("./js-core.esm39.js").then(e=>e.SupportedFileTypes);break;case AvailableComponents.EDIT_FILE_METADATA:e=import("./js-core.esm39.js").then(e=>e.EditFileMetadata);break;case AvailableWidgets.APP_CENTER_BROWSE:e=import("./js-core.esm48.js").then(e=>e.AppCenterBrowse);break;case AvailableComponents.APP_CENTER_NEW:e=import("./js-core.esm49.js").then(e=>e.AppCenterNew);break;case AvailableComponents.APP_CENTER_CONFIG_FIELDS_FORM:e=import("./js-core.esm49.js").then(e=>e.AppCenterConfigFieldsForm);break;case AvailableComponents.APP_CENTER_CONTEXT_MENU_EXTENSIONS:e=import("./js-core.esm49.js").then(e=>e.AppCenterContextMenuExtensionPanel);break;case AvailableComponents.APP_CENTER_BROWSE:e=import("./js-core.esm48.js").then(e=>e.AppCenterBrowse);break;case AvailableComponents.APP_CENTER_DETAILS:e=import("./js-core.esm48.js").then(e=>e.AppCenterDetails);break;case AvailableComponents.DATA_CENTER_ENGINE_SELECTION:e=import("./js-core.esm47.js").then(e=>e.DataCenterEngineSelection);break;case AvailableComponents.ADMIN_CENTER_NEW_GROUP_PANEL:e=import("./js-core.esm38.js").then(e=>e.NewGroupPanel);break;case AvailableComponents.PERMISSIONS_PANEL:e=import("./js-core.esm35.js").then(e=>e.PermissionsPanel);break;case AvailableComponents.GROUP_INFO_PANEL:e=import("./js-core.esm35.js").then(e=>e.GroupInfoPanel);break;case AvailableComponents.NEW_PERMISSION_SET_PANEL:e=import("./js-core.esm35.js").then(e=>e.NewPermissionSetPanel);break;case AvailableComponents.PERMISSION_SET_DETAILS_PANEL:e=import("./js-core.esm35.js").then(e=>e.PermissionSetDetailsPanel);break;case AvailableComponents.DATA_CENTER_MDP_IFRAME_PANEL:e=import("./js-core.esm34.js").then(function(e){return e.c}).then(e=>e.MediaDetailsPanelIframe);break;case AvailableComponents.DATA_CENTER_INGESTION_CREATION_PANEL:e=import("./js-core.esm34.js").then(function(e){return e.c}).then(e=>e.IngestionCreationPanel);break;case AvailableComponents.DATA_CENTER_SELECT_IMPORT_SOURCE:e=import("./js-core.esm34.js").then(function(e){return e.c}).then(e=>e.SelectImportSource);break;case AvailableComponents.DATA_CENTER_SOURCE_CREATION_PANEL:e=import("./js-core.esm34.js").then(function(e){return e.c}).then(e=>e.SourceCreationPanel);break;case AvailableComponents.ADMIN_CENTER_GROUP_DETAILS_PANEL:e=import("./js-core.esm38.js").then(e=>e.GroupDetailsPanel);break;case AvailableComponents.ADMIN_CENTER_ADD_MEMBER_PANEL:e=import("./js-core.esm38.js").then(e=>e.AddMemberPanel);break;case AvailableComponents.APPLICATION_DETAILS_PANEL:e=import("./js-core.esm44.js").then(e=>e.ApplicationDetailsPanel);break;case AvailableComponents.PROCESSING_CENTER_SOURCES:e=import("./js-core.esm50.js").then(e=>e.ProcessingCenterSources);break;case AvailableComponents.PROCESSING_CENTER_ERROR_DETAIL:e=import("./js-core.esm50.js").then(e=>e.ErrorDetailPanel);break;case AvailableComponents.USER_APPLICATION_SETTINGS_PANEL:e=Promise.resolve().then(function(){return index_esm$6}).then(e=>e.UserApplicationSettingsPanel);break;case AvailableComponents.ADD_APPLICATION_USERS_PANEL:e=import("./js-core.esm44.js").then(e=>e.AddUsersPanel);break;case AvailableComponents.PROCESSING_CENTER_BROWSE:e=import("./js-core.esm53.js").then(e=>e.ProcessingCenterBrowse);break;case AvailableComponents.JOBS_TABLE_SETTINGS_PANEL:e=import("./js-core.esm54.js").then(e=>e.JobsTableSettingsPanel);break;case AvailableComponents.VERSION_PANEL:e=Promise.resolve().then(function(){return index_esm$2}).then(e=>e.VersionPanel);break;case AvailableComponents.CHANGELOG_PANEL:e=Promise.resolve().then(function(){return index_esm$2}).then(e=>e.ChangelogPanel);break;case AvailableComponents.PROCESSING_CENTER_DAG_BUILDER:e=import("./js-core.esm56.js").then(e=>e.DagBuilder);break;case AvailableComponents.PROCESSING_CENTER_INGESTION:e=import("./js-core.esm57.js").then(function(e){return e.at}).then(e=>e.ProcessingCenterIngestion);break;case AvailableComponents.PROCESSING_CENTER_ADVANCED_SETTINGS:e=import("./js-core.esm57.js").then(function(e){return e.at}).then(e=>e.ProcessingCenterAdvancedSettings);break;case AvailableComponents.PROCESSING_CENTER_AFFILIATE_PANEL:e=import("./js-core.esm57.js").then(function(e){return e.at}).then(e=>e.ProcessingCenterAffiliatePanel);break;case AvailableComponents.JOBS_DETAILS_PANEL:e=import("./js-core.esm54.js").then(e=>e.JobsDetailsPanel);break;case AvailableComponents.TASKS_TABLE_SETTINGS_PANEL:e=import("./js-core.esm55.js").then(e=>e.TasksTableSettingsPanel);break;case AvailableComponents.TASK_DETAILS_PANEL:e=import("./js-core.esm55.js").then(e=>e.TaskDetailsPanel);break;case AvailableComponents.RESOURCE_CENTER_BROWSE:e=import("./js-core.esm59.js").then(e=>e.ResourceCenterBrowse);break;case AvailableComponents.PACKAGE_DETAILS_PANEL:e=import("./js-core.esm63.js").then(e=>e.PackageDetails);break;case AvailableComponents.PACKAGE_MANAGER_PANEL:e=import("./js-core.esm64.js").then(function(e){return e.J}).then(e=>e.PackageManager);break;case AvailableComponents.INSTANCE_ADMIN_CENTER_BROWSE:e=import("./js-core.esm65.js").then(e=>e.InstanceAdminCenterBrowse);break;case AvailableComponents.MANAGE_GRANTS:e=import("./js-core.esm63.js").then(e=>e.ManageGrantsPanel);break;case AvailableComponents.SCHEMA_DETAILS_PANEL:e=import("./js-core.esm66.js").then(e=>e.SchemaDetailsPanel);break;case AvailableComponents.FLOW_TEMPLATE_DETAILS_PANEL:e=import("./js-core.esm66.js").then(e=>e.TemplateDetailsPanel);break;case AvailableComponents.USER_DETAILS_PANEL:e=import("./js-core.esm45.js").then(e=>e.UserDetailsPanel);break;case AvailableComponents.CREATE_OR_UPDATE_TOKEN_PANEL:e=import("./js-core.esm46.js").then(e=>e.CreateOrUpdateApiTokenPanel);break;case AvailableComponents.FLOW_DETAILS_PANEL:e=import("./js-core.esm8.js").then(function(e){return e.i}).then(e=>e.App)}return yield registry[t]=e}),registerComponent=(e,t)=>{registry[e]=t},WIDGETS_FEATURE_KEY="widgets",initialState$2=(!function(e){e.idle="idle",e.mounting="mounting",e.unmounting="unmounting",e.error="error",e.eventing="eventing"}(WidgetsStatus=WidgetsStatus||{}),{value:[],status:WidgetsStatus.idle}),widgetsSelector=e=>e[name].value,callWidgetOnComplete=(e,t)=>{e=e.find(e=>e.widgetName===t);null!=e&&e.onComplete&&e.onComplete()},{name,reducer,actions:{mountWidget:mountWidget$1,mountWidgetSuccess,mountWidgetError,unmountWidget:unmountWidget$1,unmountWidgetSuccess,unmountWidgetFailure,triggerWidgetCallback,triggerWidgetCallbackSuccess}}=createSlice({name:WIDGETS_FEATURE_KEY,initialState:initialState$2,reducers:{mountWidget:(e,t)=>{e.value.push(t.payload),e.status=WidgetsStatus.mounting},mountWidgetSuccess:e=>{e.status=WidgetsStatus.idle},mountWidgetError:e=>{e.status=WidgetsStatus.error},triggerWidgetCallback:(e,t)=>{e.status=WidgetsStatus.eventing},triggerWidgetCallbackSuccess:e=>{e.status=WidgetsStatus.idle},unmountWidget:(e,t)=>{e.status=WidgetsStatus.unmounting},unmountWidgetSuccess:(e,t)=>{e.value=e.value.filter(e=>e.widgetId!==t.payload),e.status=WidgetsStatus.idle},unmountWidgetFailure:e=>{e.status=WidgetsStatus.error}}});function*mountWidgetListenerSaga(){let a;const s={};yield takeEvery$1(mountWidget$1({}).type,function*(e){try{var{widgetConfig:t={},widgetName:n,elementId:r}=null==e?void 0:e.payload,i=(yield call$i(registryLookup,n))||(()=>jsxRuntime.exports.jsx("div",{children:"Component Not Found."})),o=getElement(r,n);o.classList.add("aiware-el"),s[r]?a=s[r]:(a=client$1.createRoot(o),s[r]=a),a.render(jsxRuntime.exports.jsx(AIWareCacheProvider,{children:jsxRuntime.exports.jsx(AIWareThemeProvider$1,{children:jsxRuntime.exports.jsx(Provider$2,Object.assign({store:store$4},{children:jsxRuntime.exports.jsx(i,Object.assign({},t))}))})})),yield put(mountWidgetSuccess())}catch(e){yield put(mountWidgetError())}}),yield takeEvery$1(e=>/\/booted$/.test(e.type),function*(e){var[e]=e.type.split("/");yield put(triggerWidgetCallback(e))}),yield takeEvery$1(unmountWidget$1("").type,function*(t){try{const e=yield select(e=>{return(null==(e=widgetsSelector(e).find(e=>e.widgetId===t.payload))?void 0:e.elementId)||""});setTimeout(()=>{s[e]&&s[e].unmount(),delete s[e]}),yield put(unmountWidgetSuccess(t.payload))}catch(e){yield put(unmountWidgetFailure())}}),yield takeEvery$1(triggerWidgetCallback("").type,function*(e){var t=yield select(widgetsSelector);callWidgetOnComplete(t,e.payload),yield put(triggerWidgetCallbackSuccess())})}function getWidgetsModule(){return{id:name,reducerMap:{[name]:reducer},sagas:[mountWidgetListenerSaga],initialActions:[]}}function getDataModule(){return{id:"data",reducerMap:{data:(e,{type:t,payload:n})=>{return t===setData({}).type?[...e.filter(e=>e.id!==n.id),n]:e||[]}},sagas:[],initialActions:[]}}const useStyles$2=makeStyles()(e=>({sdkSnackbarContainer:{"& svg":{fill:"white"}}}));function CustomSnackbar(){const n=useDispatch(),[e,t]=react.exports.useState([]),[r,i]=react.exports.useState(!1),[o,a]=react.exports.useState(void 0),{message:s,duration:l}=useSelector(snackbarSelector);var c=useStyles$2()["classes"],u=(react.exports.useEffect(()=>{null!==s&&void 0!==s&&s.content&&t(e=>[...e,s])},[s]),react.exports.useEffect(()=>{e.length&&!o?(a(Object.assign({},e[0])),t(e=>e.slice(1)),i(!0)):e.length&&o&&r&&(n(clearMessage()),i(!1))},[e,o,r,n]),(e,t)=>{"clickaway"!==t&&(i(!1),n(clearMessage()))});return jsxRuntime.exports.jsx(Snackbar$1,Object.assign({anchorOrigin:{vertical:"bottom",horizontal:"right"},open:r,autoHideDuration:l||3e3,onClose:u,TransitionProps:{onExited:()=>{a(void 0),n(clearMessage())}},className:c.sdkSnackbarContainer,"data-snackbarid":(null===o||void 0===o?void 0:o.key)||"na","data-testid":"snackbar.message."+((null===o||void 0===o?void 0:o.severity)||"na")},{children:jsxRuntime.exports.jsx(Alert$1,Object.assign({onClose:u,severity:null===o||void 0===o?void 0:o.severity,elevation:6,variant:"filled"},{children:null===o||void 0===o?void 0:o.content}))}),o?o.key:void 0)}function validateConfig(e){return e.applicationId||console.info("@aiware/js: applicationId is required. Go to developer app to find your application id."),e.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"),e.knowledgeBaseURL?(console.info("@aiware/js: knowledgeBaseURL is deprecated and scheduled to be removed in v3. Please use knowledgeBaseUrl instead."),Object.assign(Object.assign({},e),{knowledgeBaseUrl:e.knowledgeBaseURL})):e}const ID="openSupportChatButton",DATA_ATTR="open-support-chat-button";var SupportCenterPixel=()=>jsxRuntime.exports.jsx(Portal$1,{children:jsxRuntime.exports.jsx("div",{id:ID,"data-veritone-element":DATA_ATTR,style:{width:1,height:1,position:"fixed",right:55,bottom:20}})});const nameSpace="@helpPanel",updateSelectedTab=createAction(nameSpace+"/UPDATE_SELECTED_TAB",function(e,t){return{payload:{selectedTabId:e,tabLink:t}}}),setCustomKnowledgeBaseUrl=createAction(nameSpace+"/SET_CUSTOM_KNOWLEDGE_BASE_URL",function(e){return{payload:{url:e}}}),setCustomDocsUrl=createAction(nameSpace+"/SET_CUSTOM_DOCS_URL",function(e){return{payload:{url:e}}}),initialState$1={selectedTabId:0,tabLink:"https://support.veritone.com/",customKnowledgeBaseUrl:"",customDocsUrl:""},getTabLinkReducer=createReducer(initialState$1,e=>{e.addCase(updateSelectedTab,(e,t)=>Object.assign(Object.assign({},e),{tabLink:t.payload.tabLink,selectedTabId:t.payload.selectedTabId})),e.addCase(setCustomKnowledgeBaseUrl,(e,t)=>Object.assign(Object.assign({},e),{customKnowledgeBaseUrl:t.payload.url})),e.addCase(setCustomDocsUrl,(e,t)=>Object.assign(Object.assign({},e),{customDocsUrl:t.payload.url}))});function*helpSaga(){yield takeEvery$1("OPEN_HELP_LINK",function*(){var e=yield select(e=>e.helpPanel.tabLink);yield put(openLinkOnNewTab({url:e}))})}const namespace$1="helpPanel",helpCenterSelectedTabIdSelector=e=>null!=e&&e[namespace$1]?e[namespace$1].selectedTabId:0,customDocsUrlSelector=e=>null!=e&&e[namespace$1]?e[namespace$1].customDocsUrl:"",customKnowledgeBaseUrlSelector=e=>null!=e&&e[namespace$1]?e[namespace$1].customKnowledgeBaseUrl:"";function getHelpPanelModule(){return{id:"help",reducerMap:{[namespace$1]:getTabLinkReducer},sagas:[helpSaga],initialActions:[]}}var knowledgeBaseUrl$1="https://docs.veritone.com/help/index.html",documentUrl$1="https://docs.veritone.com",config={knowledgeBaseUrl:knowledgeBaseUrl$1,documentUrl:documentUrl$1};const useStyles$1=makeStyles()(e=>({root:{height:"calc(100% - 110px)",textAlign:"left","& .Sdk-MuiTab-root.Mui-selected":{color:e.palette.text.primary,fontWeight:600}},tabs:{padding:e.spacing(2.4,6,0,6)},tabPanels:{width:"100%",height:"100%"},aiWareIcon:{position:"relative",maxHeight:50,opacity:"inherit",padding:e.spacing(4,3.2,0,3.2),display:"flex",justifyContent:"flex-end"},customTabs:{margin:e.spacing(0,4)},kbRoot:{height:"100%",textAlign:"left"},loadingContainer:{position:"absolute",height:"100%",width:"100%",display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:"white"},kbToolBarBox:{padding:e.spacing(6,6,1.6,6)},kbTabContent:{height:"calc(100% - 92px)"},kbTabPanel:{padding:e.spacing(6)},dRoot:{height:"100%",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)"},drawerContainer:{display:"flex",height:"100%",background:e.palette.background.default},tabContainer:{borderRight:"0.5px solid #D5DFE9",overflow:"hidden",height:"100%",width:"100%"},tabName:{borderBottom:"0.5px solid #D5DFE9",display:"flex",justifyContent:"space-between",alignItems:"center",height:"64px",padding:e.spacing(0,6)},actionIcons:{margin:e.spacing(-2.4)},tabContent:{height:"calc(100vh - 57px - 60px)",overflowY:"auto",overflowX:"hidden"}})),documentUrl=config.documentUrl,Documentation=({path:e=documentUrl})=>{var t=useStyles$1()["classes"];const[n,r]=react.exports.useState(!0);return jsxRuntime.exports.jsxs("div",Object.assign({className:classNames(t.dRoot,"hide-in-percy")},{children:[n&&jsxRuntime.exports.jsx("div",Object.assign({className:t.loadingContainer},{children:jsxRuntime.exports.jsx(CircularProgress$1,{})})),jsxRuntime.exports.jsx("iframe",{"data-cy":"docs-iframe",title:"Document Iframe",style:{width:"100%",height:"100%"},src:e,frameBorder:"0",onLoad:function(){setTimeout(()=>{r(!1)},1e3)}})]}))},knowledgeBaseUrl=config["knowledgeBaseUrl"];function Knowledgebase({path:e=knowledgeBaseUrl}){var t=useStyles$1()["classes"];const[n,r]=react.exports.useState(!0);return jsxRuntime.exports.jsxs("div",Object.assign({className:t.kbRoot},{children:[n&&jsxRuntime.exports.jsx("div",Object.assign({className:t.loadingContainer},{children:jsxRuntime.exports.jsx(CircularProgress$1,{})})),jsxRuntime.exports.jsx("iframe",{"data-cy":"knowledgebase-iframe",title:"Knowledgebase Iframe",style:{width:"100%",height:"100%"},src:e,frameBorder:"0",onLoad:function(){r(!1)}})]}))}const defaultLocale="en-us",tabsList=[{label:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-help-panel.au1+VZ",defaultMessage:"Knowledgebase",description:"Help Panel: Knowledgebase tab label"}),disabled:!1,url:"https://support.veritone.com/"},{label:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-help-panel.8bnkm8",defaultMessage:"Documentation",description:"Help Panel: Documentation tab label"}),disabled:!1,url:"https://docs.veritone.com/#/aiware/"}];function HelpCenter(){var e=useSelector(initialConfigSelector),t=useSelector(customKnowledgeBaseUrlSelector),n=useSelector(customDocsUrlSelector),r=useSelector(helpCenterSelectedTabIdSelector),i=useSelector(e=>null==e?void 0:e.panels),o=useStyles$1()["classes"],[a]=react.exports.useState(defaultLocale);const s=useDispatch();i=null==i?void 0:i.find(e=>"CUSTOM_HELP_PANEL_ID"===e.panelId),t=i&&t?t:e.knowledgeBaseUrl,i=i&&n?n:e.docsURL;return jsxRuntime.exports.jsx(DynamicModuleLoader,Object.assign({modules:[getHelpPanelModule()]},{children:jsxRuntime.exports.jsx(AIWareIntlProvider,Object.assign({locale:a},{children:jsxRuntime.exports.jsx("div",Object.assign({className:o.drawerContainer},{children:jsxRuntime.exports.jsx("div",Object.assign({id:"setting-content",className:o.tabContainer},{children:jsxRuntime.exports.jsx("div",Object.assign({className:o.tabContent},{children:jsxRuntime.exports.jsx("div",Object.assign({className:o.root},{children:jsxRuntime.exports.jsxs("div",Object.assign({className:o.tabPanels},{children:[jsxRuntime.exports.jsx("div",Object.assign({className:o.customTabs},{children:jsxRuntime.exports.jsx(CustomTabs,{selectedId:r,onChangeTab:e=>{s(updateSelectedTab(e,tabsList[e].url))},tabsList:tabsList})})),jsxRuntime.exports.jsxs(Box$1,Object.assign({className:o.tabPanels},{children:[jsxRuntime.exports.jsx(TabPanel,Object.assign({value:r,index:0},{children:jsxRuntime.exports.jsx(Knowledgebase,{path:t})})),jsxRuntime.exports.jsx(TabPanel,Object.assign({value:r,index:1},{children:jsxRuntime.exports.jsx(Documentation,{path:i})}))]})),jsxRuntime.exports.jsx("div",Object.assign({className:o.aiWareIcon},{children:jsxRuntime.exports.jsx("img",{src:img$B,alt:"icon",draggable:"false"})}))]}))}))}))}))}))}))}))}var EPermissionAction,EAuthResourceType,EAuthSubResourceType,index_esm=Object.freeze({__proto__:null,HelpCenterPanel:HelpCenter,customDocsUrlSelector:customDocsUrlSelector,customKnowledgeBaseUrlSelector:customKnowledgeBaseUrlSelector,helpCenterSelectedTabIdSelector:helpCenterSelectedTabIdSelector,setCustomDocsUrl:setCustomDocsUrl,setCustomKnowledgeBaseUrl:setCustomKnowledgeBaseUrl,updateSelectedTab:updateSelectedTab});const useStyles=makeStyles()(()=>({dialog:{top:"125px",overflowX:"hidden",overflowY:"hidden",display:"flex",alignItems:"center",flexDirection:"column"},container:{borderRadius:"4px",backgroundColor:"#fff",width:"430px",overflow:"hidden",outline:0,boxShadow:"0px 0px 7px rgba(0, 0, 0, .25)"},header:{textTransform:"capitalize"},appListContainer:{width:"100%"},orgName:{fontWeight:"bold"}})),ApplicationDialog=()=>{const[e,t]=react.exports.useState(null),[n,r]=react.exports.useState(0);var i=useSelector(userSelector$2),o=useStyles()["classes"];const a=useSelector(initialConfigSelector),s=a.applicationId,l=useSelector(applicationSelector),c=useSelector(switchApiSelector);var u=(null===l||void 0===l?void 0:l.application)||[],d=null===l||void 0===l?void 0:l.status;var p=[...u].sort(function(e,t){return e.name>t.name?1:e.name<t.name?-1:0}),f=u.findIndex(e=>e.id===s);useInterval(()=>{t(e=>e&&e-1)},e&&n<3?1e3:null),react.exports.useEffect(()=>{"success"!==(null===l||void 0===l?void 0:l.status)||1!==(null===l||void 0===l?void 0:l.application.length)||(null===l||void 0===l?void 0:l.application[0].id)===a.applicationId||e||(0===e?window.open(c+"/"+(null===l||void 0===l?void 0:l.application[0].id),"_self"):t(10))},[a,l,c,e]);return/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i.test(s)&&f<0&&"success"===d?jsxRuntime.exports.jsx(Modal$1,Object.assign({className:o.dialog,open:!0},{children:jsxRuntime.exports.jsxs("div",Object.assign({className:o.container},{children:[jsxRuntime.exports.jsx(Typography$1,Object.assign({"data-test":"application-dialog-title",className:o.header,variant:"h1",sx:{px:"30px",pt:"30px"}},{children:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"js-core-app-dialog-title",defaultMessage:"Application Not Available",description:"Title for modal"})})),jsxRuntime.exports.jsxs(Typography$1,Object.assign({variant:"body2",sx:{px:"30px",pt:"10px"}},{children:[jsxRuntime.exports.jsx(FormattedMessage$1,{id:"js-core-app-dialog-message1",defaultMessage:"Looks like you switched organizations, your current application is not available in the current",description:"Description current application not available"})," ",jsxRuntime.exports.jsx("span",Object.assign({className:o.orgName},{children:null!=(f=null==i?void 0:i.organization)&&f.organizationName?i.organization.organizationName:""}))," ",jsxRuntime.exports.jsx(FormattedMessage$1,{id:"js-core-app-dialog-message2",defaultMessage:"organization you are viewing.",description:"Description current application not available"})]})),jsxRuntime.exports.jsx(Typography$1,Object.assign({variant:"body2",sx:{px:"30px",pt:"20px"}},{children:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"js-core-app-dialog-message3",defaultMessage:"Please select from the available applications below to be redirected.",description:"Instructions for current application not available"})})),e&&jsxRuntime.exports.jsx(Typography$1,Object.assign({variant:"body2",sx:{px:"30px",pt:"20px"},onClick:()=>{r(e=>e+1)}},{children:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"js-core-app-dialog-countdown-message",defaultMessage:"You will be automatically forwarded to {appName} in {timeRemaining} seconds.",description:"Instructions for current application not available",values:{timeRemaining:e,appName:u[0].name}})})),jsxRuntime.exports.jsx("div",Object.assign({className:o.appListContainer},{children:jsxRuntime.exports.jsx(AppList,{title:"",selectedAppId:null,onSelectApplication:e=>{window.open(c+"/"+e,"_self")},applications:p,useGrid:!1,row:3})}))]}))})):null};class RateLimiter{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)}}!function(e){e.Create="create",e.Read="read",e.Update="update",e.Delete="delete",e.File="file",e.CustomerService="customerService",e.Access="access"}(EPermissionAction=EPermissionAction||{}),function(e){e.Folder="Folder",e.TDO="TDO",e.Organization="Organization",e.Source="Sources",e.Schedule="Schedules",e.Job="Job"}(EAuthResourceType=EAuthResourceType||{}),function(e){e.Group="group",e.Media="media",e.Package="package",e.User="user",e.Workflow="workflow",e.ProcessingCenter="processingCenter",e.ResourceCenter="resourceCenter"}(EAuthSubResourceType=EAuthSubResourceType||{});const orgRightsByObjectPermission={[EAuthResourceType.TDO]:{create:["cms.media.create","recording.create"],read:["cms.media.read","recording.read"],update:["cms.media.update","recording.update"],delete:["cms.media.delete","recording.delete"]},[EAuthResourceType.Folder]:{create:["cms.media.create","recording.create"],read:["cms.media.read","recording.read"],update:["cms.media.update","recording.update"],delete:["cms.media.delete","recording.delete"],file:["cms.media.create","recording.create"]},[EAuthResourceType.Source]:{create:["cms.media.create","recording.create"],read:["cms.media.read","recording.read"],update:["cms.media.update","recording.update","source.update"],delete:["cms.media.delete","recording.delete"]},[EAuthResourceType.Job]:{customerService:["cms.customerservice"],create:["job.create"],read:["job.read"],update:["job.update"],delete:["job.delete"]},[EAuthResourceType.Schedule]:{customerService:["cms.customerservice"],create:["job.create"],read:["job.read"],update:["job.update"],delete:["job.delete"]},[EAuthSubResourceType.User]:{create:["admin.user.create"],delete:["admin.user.delete"]},[EAuthSubResourceType.Group]:{create:["admin.group.create"],delete:["admin.group.delete"]},[EAuthSubResourceType.Package]:{update:["developer.build.update"]}},permissionActionsToFetchByObjectType={[EAuthResourceType.TDO]:{create:"AIWARE_TDO_CREATE",read:"AIWARE_TDO_READ",update:"AIWARE_TDO_UPDATE",delete:"AIWARE_TDO_DELETE"},[EAuthResourceType.Folder]:{create:"AIWARE_FOLDER_CREATE",read:"AIWARE_FOLDER_READ",update:"AIWARE_FOLDER_UPDATE",delete:"AIWARE_FOLDER_DELETE",file:"AIWARE_FOLDER_FILE"},[EAuthResourceType.Source]:{create:"AIWARE_SOURCES_CREATE",read:"AIWARE_SOURCES_READ",update:"AIWARE_SOURCES_UPDATE",delete:"AIWARE_SOURCES_DELETE"},[EAuthResourceType.Job]:{customerService:"CMS_CUSTOMERSERVICE",create:"AIWARE_JOB_CREATE",read:"AIWARE_JOB_READ",update:"AIWARE_JOB_UPDATE",delete:"AIWARE_JOB_DELETE"},[EAuthResourceType.Schedule]:{customerService:"CMS_CUSTOMERSERVICE",create:"AIWARE_JOB_CREATE",read:"AIWARE_JOB_READ",update:"AIWARE_JOB_UPDATE",delete:"AIWARE_JOB_DELETE"},[EAuthResourceType.Organization]:{[EAuthSubResourceType.Group]:{create:"AIWARE_GROUP_CREATE",delete:"AIWARE_GROUP_DELETE"},[EAuthSubResourceType.Package]:{create:"AIWARE_PACKAGE_CREATE",read:"AIWARE_PACKAGE_READ",update:"AIWARE_PACKAGE_UPDATE",delete:"AIWARE_PACKAGE_DELETE"},[EAuthSubResourceType.User]:{create:"AIWARE_USER_CREATE",delete:"AIWARE_USER_DELETE"},[EAuthSubResourceType.ResourceCenter]:{access:"AIWARE_RESOURCE_CENTER_ACCESS"}}},permissionTypeToFetchByEntityType={[EAuthResourceType.TDO]:[EAuthResourceType.TDO],[EAuthResourceType.Folder]:[EAuthResourceType.Folder],[EAuthResourceType.Source]:[EAuthResourceType.Source],[EAuthResourceType.Job]:[EAuthResourceType.Job],[EAuthResourceType.Schedule]:[EAuthResourceType.Schedule],[EAuthResourceType.Organization]:[EAuthResourceType.Organization,EAuthResourceType.TDO,EAuthResourceType.Folder,EAuthResourceType.Source,EAuthResourceType.Schedule,EAuthResourceType.Job]},authResourcesByEntityType={[EntityType.Folders]:EAuthResourceType.Folder,[EntityType.Tdos]:EAuthResourceType.TDO,[EntityType.Sources]:[EAuthResourceType.Source],[EntityType.Schedules]:[EAuthResourceType.Schedule]},convertEntityToAuthResource=e=>authResourcesByEntityType[e],convertPermissionsToRights=(e,t,n)=>{const r=(null==(e=orgRightsByObjectPermission[e])?void 0:e[t])||[];return 0<n.filter(e=>r&&r.includes(e)).length},permissionDetailIsActionPair=e=>Object.keys(e).some(e=>Object.values(EPermissionAction).includes(e)),getQueryActions=(e,t,n)=>({targetObjectType:e,targetActions:Object.keys(t).map(e=>({targetAction:e,serverName:t[e],resource:n}))}),getPermissionActions=(t,n)=>{return permissionDetailIsActionPair(t)?[getQueryActions(n,t)]:Object.keys(t).map(e=>getQueryActions(n,t[e]||{},e))},getPermissionTypesToQuery=e=>{return(permissionTypeToFetchByEntityType[e]||[]).flatMap(e=>getPermissionActions(permissionActionsToFetchByObjectType[e]||{},e))},isPermissionLoading=e=>!e||"pending"===e.status||"idle"===e.status,hasPermission=(e,t)=>!!e&&("failure"===e.status||e&&"success"===e.status&&e.permissions&&e.permissions[t]),namespace="permissions",initialState={permissionsByObject:{},rights:{status:"idle"}},slice=createSlice({name:namespace,initialState:initialState,reducers:{fetchObjectPermissionsStart(e,t){var{entityType:t,entityId:n}=t.payload;Object.prototype.hasOwnProperty.call(e.permissionsByObject,t)||(e.permissionsByObject[t]={}),Object.prototype.hasOwnProperty.call(e.permissionsByObject[t],n)||(e.permissionsByObject[t][n]={}),Object.prototype.hasOwnProperty.call(e.permissionsByObject[t][n],t)||(e.permissionsByObject[t][n][t]={status:"idle"})},fetchObjectPermissionsStarted(e,t){var{entityId:t,entityType:n}=t.payload;e.permissionsByObject[n][t][n].status="pending"},fetchObjectPermissionsSucceeded(t,e){const{entityType:n,entityId:r,permissions:i}=e.payload;Object.keys(i).forEach(e=>{t.permissionsByObject[n][r][e]={status:"success",permissions:i[e]}})},fetchObjectPermissionsFailed(e,t){var{entityType:t,entityId:n}=t.payload;e.permissionsByObject[t][n][t]={status:"failure"}},fetchMyRightsStarted(e){e.rights.status="pending"},fetchMyRightsSucceeded(e,t){e.rights.status="success",e.rights.myRights=t.payload},fetchMyRightsFailed(e){e.rights.status="failure"}}}),actions=slice.actions;var permissionsReducer=slice.reducer;function __awaiter(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 getObjectPermissions(u,d,p){var f;return __awaiter(this,void 0,void 0,function*(){var{entityType:e,entityId:t}=p,n="getPermissions",r=getPermissionTypesToQuery(e);let i=!1,o=[],a={};for(;!i;){var s=`
1511
1511
  query ${n}($entityType: AuthResourceType!, $entityId: ID!) {
1512
1512
  ${r.reduce((n,e)=>{const{targetObjectType:r,targetActions:t}=e;return t.forEach(e=>{var t=e.resource?`${r}__${e.resource}__`+e.targetAction:r+"__"+e.targetAction;o.includes(e.serverName)||n.push(`
1513
1513
  ${t}: hasPermissions(resourceType: $entityType, ids: [$entityId], permissions: [${e.serverName}]) {
@@ -1515,4 +1515,4 @@ createScheduledJob(input:{
1515
1515
  }
1516
1516
  `)}),n},[]).join("\r\n")}
1517
1517
  }
1518
- `,l={entityId:t,entityType:e};try{a=yield baseGraphQLApi({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==(f=(a.errors||[])[0])?void 0:f.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 getMyRights(t){return __awaiter(this,void 0,void 0,function*(){var e="getMyRights";return(yield baseGraphQLApiWithError(Object.assign({query:"\n query getMyRights {\n myRights {\n operations\n }\n }\n ",operationName:e},t))).myRights.operations})}const selectPermissionsByEntity=(t,n,r)=>e=>{return t&&n&&(e=e[namespace].permissionsByObject[t])&&e[n]?e[n][r||t]:void 0},selectMyRights=e=>e[namespace].rights;var index=Object.freeze({__proto__:null,selectPermissionsByEntity:selectPermissionsByEntity,selectMyRights:selectMyRights});function*fetchObjectPermissions(t){var{entityId:t,entityType:n}=t.payload,i=yield select(selectApiConfigs$2),e=yield select(graphEndpointSelector),o=yield select(sessionTokenSelector),a=yield select(selectIsOLPEnabled),r=yield select(selectPermissionsByEntity(n,t));if(!r||"success"!==r.status&&"pending"!==r.status){yield put(actions.fetchObjectPermissionsStarted({entityId:t,entityType:n}));try{let r={};if(a)r=yield call$i(getObjectPermissions,e,o,{entityType:n,entityId:t});else{let e=yield select(selectMyRights);if("success"!==e.status&&"pending"!==e.status){yield put(actions.fetchMyRightsStarted);try{var s=yield call$i(getMyRights,i);yield put(actions.fetchMyRightsSucceeded(s)),e=yield select(selectMyRights)}catch(e){throw yield put(actions.fetchMyRightsFailed),e}}else"pending"===e.status&&(yield take([actions.fetchMyRightsFailed,actions.fetchMyRightsSucceeded]),e=yield select(selectMyRights));const l=e["myRights"];getPermissionTypesToQuery(n).forEach(n=>{var{action:e,resource:t}=n.targetActions.reduce((e,t)=>(e.action[t.targetAction]=convertPermissionsToRights(t.resource||n.targetObjectType,t.targetAction,l),e.resource=t.resource,e),{action:{}});r[t||n.targetObjectType]=e})}yield put(actions.fetchObjectPermissionsSucceeded({entityId:t,entityType:n,permissions:r}))}catch(e){actions.fetchObjectPermissionsFailed({entityId:t,entityType:n})}}}function*watchPermissionsStart(){yield takeEvery$1(actions.fetchObjectPermissionsStart.type,fetchObjectPermissions)}function*rootSaga(){yield all([watchPermissionsStart()])}function getPermissionsModule(){return{id:namespace,reducerMap:{[namespace]:permissionsReducer},sagas:[rootSaga],initialActions:[]}}const useOrganizationPermissions=e=>{const t=react.exports.useRef(),n=useDispatch(),r=null==(o=useSelector(userSelector$2).organization)?void 0:o.organizationId,i=useSelector(selectPermissionsByEntity(EAuthResourceType.Organization,String(r),e));react.exports.useEffect(()=>{!r||i&&"failure"!==i.status&&"idle"!==i.status&&t.current===r||(t.current=r,n(actions.fetchObjectPermissionsStart({entityType:EAuthResourceType.Organization,entityId:String(r)})))},[n,r,i]);var o=react.exports.useCallback(e=>{return!isPermissionLoading(i)&&hasPermission(i,e)},[i]);return{permissions:i,hasPermission:o}},rateLimiter=new RateLimiter,checkAndDecodeBase64String=t=>{if(null==t||!t.trim())return t;try{return window.btoa(window.atob(t))==t?window.atob(t):t}catch(e){return t}};function SnackbarRenderer(){return jsxRuntime.exports.jsx(Provider$2,Object.assign({store:store$4},{children:jsxRuntime.exports.jsx(DynamicModuleLoader,Object.assign({modules:[getSnackbarModule()]},{children:jsxRuntime.exports.jsx(CustomSnackbar,{})}))}))}store$4.addModules([getWidgetsModule(),getPanelsModule(registry,registryLookup),getDataModule(),getConfigModule(),getAuthModule(),getPermissionsModule()]);let hasLoaded=!1;const AppBarPreLoader=()=>{var e=useSelector(authSelector);return(null==(e=null==e?void 0:e.user)?void 0:e.token)&&!hasLoaded&&(hasLoaded=!0,setTimeout(()=>{store$4.addModules([getAppbarPanelModule()])},0)),null};function ApplicationDialogPreLoader(){var e=useSelector(authSelector);return(null==(e=null==e?void 0:e.user)?void 0:e.token)&&hasLoaded?jsxRuntime.exports.jsx(ApplicationDialog,{}):null}const authHelpers={updateToken(e){e?store$4.dispatch(updateTokenRequest({token:e})):console.error("[AiWARE JS]: Please provide a valid token!")},logout(e){"function"==typeof e?(e(),setTimeout(()=>{store$4.dispatch(logout())},1e3)):store$4.dispatch(logout())},reportAppActivity(e){rateLimiter.checkIfCanCall(e)&&store$4.dispatch(updateActivityStatus$1())}};function PortalRenderer(){return jsxRuntime.exports.jsxs(jsxRuntime.exports.Fragment,{children:[jsxRuntime.exports.jsx(SupportCenterPixel,{}),jsxRuntime.exports.jsx(Provider$2,Object.assign({store:store$4},{children:jsxRuntime.exports.jsx(AppBarPreLoader,{})}))]})}function ApplicationDialogRenderer(){return jsxRuntime.exports.jsx(jsxRuntime.exports.Fragment,{children:jsxRuntime.exports.jsx(Provider$2,Object.assign({store:store$4},{children:jsxRuntime.exports.jsx(AIWareIntlProvider,{children:jsxRuntime.exports.jsx(ApplicationDialogPreLoader,{})})}))})}const ThemeInitializer=()=>(useTheme(),null),root=getElement("aiWARE"),reactDOMroot=(root.classList.add("aiware-el"),client$1.createRoot(root)),mountWidget=("_auth"===window.name?handleImplicitRedirect(window.location.hash,window.opener):reactDOMroot.render(jsxRuntime.exports.jsx(AIWareCacheProvider,{children:jsxRuntime.exports.jsxs(AIWareThemeProvider$1,{children:[jsxRuntime.exports.jsx(PortalRenderer,{}),jsxRuntime.exports.jsx(SnackbarRenderer,{}),jsxRuntime.exports.jsx(ApplicationDialogRenderer,{}),jsxRuntime.exports.jsx(ThemeInitializer,{})]})})),(e,t)=>{var n=getUniqueID(),{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"),store$4.dispatch(mountWidget$1({elementId:r,widgetName:e,widgetConfig:i,widgetId:n,onComplete:t})),n}),unmountWidget=e=>(store$4.dispatch(unmountWidget$1(e)),!0),mountPanel=(e,t)=>{const n=e.panelId||getUniqueID();var{microFrontend:e,panelConfig:r}=e;store$4.dispatch(mountPanel$1({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 takeEvery$1(i.map(e=>e.type),function*(){var e=(yield select(e=>e.data.find(e=>e.id===n)))["data"];t&&t(e)})}]};return store$4.addModule(r),n},unmountPanel=e=>(store$4.dispatch(unmountPanel$1(e)),!0),hidePanel=e=>(store$4.dispatch(hidePanel$1(e)),!0),unmountAllPanel=()=>{store$4.dispatch(unmountAllPanel$1(""))};function init(e,t){var n,e=validateConfig(e);e?(n=e["authToken"],n=checkAndDecodeBase64String(n||""),store$4.dispatch(getInitConfig(Object.assign(Object.assign({},e),{authToken:n,onComplete:t})))):console.error("@aiware/js initialization failed. Please pass valid configuration object.")}function helpCenter(){var e=new HelpCenter$2({actions:{setCustomKnowledgeBaseUrlAction:setCustomKnowledgeBaseUrl,setCustomDocsUrlAction:setCustomDocsUrl,updateSelectedTabAction:updateSelectedTab}});return{openKnowledgeBasePanel:e.openKnowledgeBasePanel.bind(e),openDocsPanel:e.openDocsPanel.bind(e)}}function dataCenter(){var e=new DataCenter$1;return{openImporterPanel:e.openImporterPanel.bind(e)}}function handleEvents(){function n(e){if(!e||"string"!=typeof e)throw new SdkError("Please provide a valid event name!");if(!SdkEvents[e])throw new SdkError("Unknown event: "+e)}return{on:function(e,t){n(e),sdkEventManager.on.call(sdkEventManager,e,t)},off:function(e){n(e),sdkEventManager.off.call(sdkEventManager,e)}}}const mountPanelForResponse=e=>mountPanelForResponse$1(e,store$4),aiwareEvents=handleEvents();window&&(window.aiWare_initTesting=()=>{window.aiWare_store=store$4,window.aiWare_theme={darkTheme:darkTheme$1,lightTheme:lightTheme$1}},window.aiware={init:init,auth:authHelpers,helpCenter:helpCenter(),dataCenter:dataCenter(),on:aiwareEvents.on,off:aiwareEvents.off,hidePanel:hidePanel,unmountPanel:unmountPanel,store:store$4,registry:registry,registerComponent:registerComponent,AvailableWidgets:AvailableWidgets,mountPanelAction:mountPanel$1,unmountPanelAction:unmountPanel$1,hidePanelAction:hidePanel$1,updatePanelMicroFrontendPropsAction:updatePanelMicroFrontendProps,setData:setData,mountWidget:mountWidget,mountPanel:mountPanel,mountPanelForResponse:mountPanelForResponse,unmountWidget:unmountWidget,version:"sdk_release_version",commit:"f3a125eb5",releaseDate:"2023-08-04T19:57:45.751Z"});export{createAction as $,AIWareIntlProvider as A,Box$1 as B,authErrorMessage as C,FormControl$1 as D,TextField$1 as E,FormattedMessage$1 as F,Grid$1 as G,classNames as H,resetPasswordRequest as I,InputLabel$1 as J,InputAdornment$1 as K,LoadingButton$1 as L,IconButton$1 as M,Select$1 as N,OutlinedInput$1 as O,Provider$2 as P,Location as Q,Routes as R,Switch$1 as S,Typography$1 as T,MenuItem$1 as U,Button$1 as V,Divider$1 as W,createTheme$1 as X,systemStyled as Y,useThemeProps$1 as Z,_extends$3 as _,generateUtilityClasses as a,default_1 as a$,createReducer as a0,createSlice as a1,ENGINE_OWNER_TYPES as a2,ENGINE_FILTER_TYPES as a3,DynamicModuleLoader as a4,preferredLanguageSelector as a5,baseUrlSelector as a6,rootApiSelector as a7,sessionTokenSelector as a8,graphEndpointSelector as a9,call$i as aA,fetchTemplateGallery as aB,isRevisionsExistOnServerRequest as aC,FormLabel$1 as aD,default_1$d as aE,FormGroup$1 as aF,FormControlLabel$1 as aG,Checkbox$1 as aH,fetchTemplateGalleryFallback as aI,Card$1 as aJ,CardContent$1 as aK,img$m as aL,CardActions$1 as aM,flowStyles as aN,NoResults as aO,CircularProgress$1 as aP,img$c as aQ,Dialog$1 as aR,setApiEndpoint as aS,TableContainer$1 as aT,Table$1 as aU,TableHead$1 as aV,TableRow$1 as aW,TableCell$1 as aX,TableSortLabel$1 as aY,TableBody$1 as aZ,img$h as a_,controllerNodeRedImageSelector as aa,controllerUrlSelector as ab,automateControllerUrlSelector as ac,flowCenterDialogSelector as ad,automateUrlSelector as ae,Portal$1 as af,flowCenterDialogReducer as ag,List$2 as ah,ListItem$1 as ai,ListItemIcon$1 as aj,ListItemText$1 as ak,flowCenterDialogAction as al,all as am,img$o as an,img$p as ao,img$r as ap,img$s as aq,Tooltip$1 as ar,img$i as as,img$H as at,Skeleton$1 as au,takeLatest$1 as av,fetchAllTags as aw,put as ax,select as ay,fetchFlows as az,styled$1 as b,img$x as b$,Popper$1 as b0,ClickAwayListener as b1,Fade$1 as b2,img$t as b3,img$q as b4,img$R as b5,img$D as b6,DialogTitle$1 as b7,DialogContent$1 as b8,DialogActions$1 as b9,__generator$2 as bA,__spread as bB,React5 as bC,TransitionGroup$1 as bD,connect$1 as bE,Bookmark as bF,EngineFlagIcons as bG,createAsyncThunk as bH,withStyles as bI,getConfigModule as bJ,getAuthModule as bK,getSnackbarModule as bL,AIWareCacheProvider as bM,img$S as bN,img$e as bO,img$d as bP,isEmpty_1 as bQ,Backdrop$1 as bR,getDefaultMiddleware as bS,isNil_1 as bT,UpDown as bU,Icon$1 as bV,get_1 as bW,map_1 as bX,keys_1 as bY,RadioGroup$1 as bZ,Avatar$1 as b_,Snackbar$1 as ba,default_1$6 as bb,Search$1 as bc,img$j as bd,img$l as be,img$V as bf,Tabs$2 as bg,Tab$2 as bh,deleteEngine as bi,fetchEngine as bj,img$k as bk,AIWareFormatMessage as bl,FormattedDate as bm,fetchVeritoneGraphQLApi as bn,useTheme as bo,KeyboardArrowRight as bp,KeyboardArrowLeft as bq,useId as br,InputUnstyled as bs,isHostComponent as bt,getDefaultExportFromNamespaceIfNotNamed as bu,commonjsRequire as bv,reactDom as bw,Transition$1 as bx,_defineProperty$x as by,__awaiter$e as bz,Paper$1 as c,DynamicTable as c$,baseGraphQLApi as c0,FormHelperText$2 as c1,img$g as c2,StyledEngineProvider as c3,ThemeProvider as c4,lightTheme$1 as c5,CssBaseline as c6,Hide as c7,has_1 as c8,showMessage as c9,TabPanel as cA,default_1$8 as cB,unmountPanel$1 as cC,AvailableComponents as cD,delay$1 as cE,hidePanel$1 as cF,mountPanel$1 as cG,DialogContentText$1 as cH,userSelector$2 as cI,MoreVert$1 as cJ,Menu$1 as cK,Edit as cL,Upload as cM,Delete$1 as cN,CustomTabs as cO,useBackupImg as cP,img$1A as cQ,validate as cR,configSelector as cS,baseGraphQLApiWithError as cT,VerifiedFilled as cU,Add as cV,ExpandLess$1 as cW,ExpandMore$1 as cX,Collapse$1 as cY,img$17 as cZ,Filter$1 as c_,MessageSeverity as ca,Radio$2 as cb,createSvgIcon$2 as cc,_createCompounder as cd,_baseIteratee as ce,isArrayLike_1 as cf,toInteger_1 as cg,_typeof$D as ch,_assertThisInitialized$x as ci,_setPrototypeOf$z as cj,_toPropertyKey as ck,_inheritsLoose$2 as cl,hoistNonReactStatics_cjs as cm,commonjsGlobal$1 as cn,combineReducers as co,createSelector$1 as cp,fork as cq,statusPill as cr,AIWareThemeProvider$1 as cs,LocalizationProvider as ct,AdapterDateFns as cu,CalendarPicker as cv,Stack$4 as cw,Close$1 as cx,FullscreenExit as cy,Fullscreen as cz,capitalize$2 as d,eq_1 as d$,useTheme$3 as d0,getThemeProps as d1,useEnhancedEffect$3 as d2,React as d3,_arrayPush as d4,isArray_1 as d5,_baseToString as d6,_baseTrim as d7,_castSlice as d8,_stringToArray as d9,EngineClassIcons as dA,Mode2 as dB,EngineModeIcons as dC,DeploymentModelIcons as dD,ListSubheader$1 as dE,guid as dF,EditList as dG,Chip$1 as dH,useControlled$1 as dI,usePreviousProps$1 as dJ,useEventCallback as dK,setRef as dL,inputClasses$1 as dM,inputBaseClasses$1 as dN,outlinedInputClasses$1 as dO,filledInputClasses$1 as dP,alpha as dQ,ClearIcon as dR,ArrowDropDownIcon as dS,ButtonBase$1 as dT,isObject_1 as dU,_arrayMap as dV,_Symbol as dW,isArguments_1 as dX,_baseEach as dY,_arrayFilter as dZ,_getNative as d_,toString_1 as da,ReactIs as db,upperFirst_1 as dc,isString_1 as dd,_baseGet as de,_baseSlice as df,_castPath as dg,_toKey as dh,_isIndex as di,channel$1 as dj,useIntl as dk,VideoCamera as dl,Image$1 as dm,Sound as dn,Description as dp,toNumber_1 as dq,ProgressStepper as dr,size_1 as ds,take as dt,CurlyBraces as du,UnknownDocument as dv,VariableSizeList as dw,sdkEventManager as dx,SdkEvents as dy,SdkError as dz,_objectWithoutPropertiesLoose$2 as e,MoveFolder as e$,_root as e0,_Uint8Array as e1,_overArg as e2,_isPrototype as e3,isObjectLike_1 as e4,_baseGetTag as e5,_arrayLikeKeys as e6,isBuffer$4 as e7,isFunction_1 as e8,isTypedArray_1 as e9,EntityType as eA,generateState as eB,injectIntl as eC,ErrorBoundary$1 as eD,EPermissionAction as eE,Process as eF,Information as eG,Download as eH,NewFolder as eI,SpecialFolder as eJ,User as eK,Source as eL,Search$2 as eM,selectIsOLPEnabled as eN,ListItemSecondaryAction$1 as eO,getLibraryModule as eP,cmsUrlSelector as eQ,betaFeaturesSelector as eR,debounce_1 as eS,SearchStructuredData as eT,Grow$1 as eU,index as eV,actions as eW,hasPermission as eX,UserAddFilled as eY,Popover$1 as eZ,MenuList$1 as e_,_Stack as ea,_baseFor as eb,identity_1 as ec,_isIterateeCall as ed,isSymbol_1 as ee,_baseMap as ef,_baseUnary as eg,createBox$1 as eh,_Set as ei,_setToArray as ej,_SetCache as ek,_cacheHas as el,img$O as em,img$N as en,img$1w as eo,img$1v as ep,img$1u as eq,img$L as er,img$1y as es,img$K as et,authSelector as eu,ListItemAvatar$1 as ev,takeEvery$1 as ew,emphasize as ex,useSlotProps as ey,_arraySome as ez,clsx as f,LinearProgress$1 as f$,EAuthResourceType as f0,Slide$1 as f1,img$a as f2,selectApiConfigs$2 as f3,selectPanelByPanelName as f4,FullScreenContainer as f5,EngineCategoryIcons as f6,isPermissionLoading as f7,Settings$2 as f8,Hamburger as f9,Undefined as fA,PodcastSource as fB,YoutubeSource as fC,TVSource as fD,RadioSource as fE,selectOrgId as fF,navSectionStyles as fG,selectIsUserAdmin as fH,AvatarGroup$1 as fI,index$1 as fJ,ErrorState$2 as fK,Stepper$1 as fL,StepConnector$1 as fM,Step$1 as fN,StepLabel$1 as fO,isEqual_1 as fP,NullState$2 as fQ,Group as fR,PermissionChangedAction as fS,Lock as fT,useOrganizationPermissions as fU,EAuthSubResourceType as fV,AddGroup as fW,initialConfigSelector as fX,ConfirmationModal as fY,EnumHelpers as fZ,formatBytes as f_,List as fa,enginesFilter as fb,panelsSelector as fc,Badge$1 as fd,MoreHor as fe,convertEntityToAuthResource as ff,AutoSizer as fg,InfiniteLoader as fh,FixedSizeList as fi,selectUserOrgEdgeVersion as fj,EditAttributes as fk,gqlIntrospection as fl,ProcessingDetail as fm,img$w as fn,img$y as fo,img$4 as fp,FilterRemove as fq,AlarmTwo as fr,tableInfiniteScroll as fs,CheckCircle as ft,FolderOpen as fu,Voice as fv,useDoubleClick as fw,FolderFilled as fx,Time as fy,img$z as fz,generateUtilityClass as g,createStack as g$,NotInterested as g0,mountPanelForResponse$1 as g1,default_1$9 as g2,tableStyles as g3,ArrowDown as g4,ArrowUp as g5,useInterval as g6,Iam as g7,safeFormatMessage as g8,contextMenuStyles as g9,stubArray_1 as gA,_baseGetAllKeys as gB,_getTag as gC,_nodeUtil as gD,_getAllKeys as gE,_castFunction as gF,Article as gG,Task as gH,View as gI,_objectSpread2 as gJ,serialize as gK,stringify$2 as gL,compile as gM,Check as gN,EngineIconsRenderer as gO,FormattedRelativeTime$1 as gP,BottomQueue as gQ,TopQueue as gR,Pause as gS,Cancel as gT,Folder as gU,Hidden as gV,dateRangeFilter as gW,statusFilter as gX,TableLoadingState as gY,setDuration as gZ,resetDuration as g_,Users as ga,SecurityGroup as gb,getOrganizationPanelModule as gc,Lock2 as gd,EApplicationConfigLevel as ge,NoApps as gf,EApplicationConfigType as gg,green$1 as gh,md5 as gi,selectIsSuperAdmin as gj,organizations_selector as gk,actions$5 as gl,AddUser as gm,selectors as gn,LibraryDropdown as go,Remove as gp,Save as gq,Input$3 as gr,getElement as gs,client$1 as gt,Copy as gu,ArrowForward as gv,Modal$1 as gw,Slider$1 as gx,getDefaultExportFromCjs as gy,_getSymbols as gz,composeClasses as h,toFinite_1 as h0,_baseForOwn as h1,_arrayReduce as h2,hasIn_1 as h3,now_1 as h4,useSyncExternalStoreExports as h5,imageUpload as h6,characterCountTextField as h7,Engines as h8,tabsClasses$1 as h9,mountPanel as hA,unmountPanel as hB,hidePanel as hC,unmountAllPanel as hD,init as hE,aiwareEvents as hF,Packages as ha,Resources$1 as hb,selectUserCanCreatePackage as hc,PackagesAvatar as hd,actionChannel as he,cancelled as hf,flush$3 as hg,cancel as hh,tableSearchComponents as hi,FlowCenter2 as hj,ArrowBack as hk,Schema as hl,FlowTemplate as hm,panelComponents as hn,img$v as ho,Clear as hp,ExpandLess as hq,ExpandMore as hr,registry as hs,registerComponent as ht,AvailableWidgets as hu,updatePanelMicroFrontendProps as hv,setData as hw,root as hx,mountWidget as hy,unmountWidget as hz,createSvgIcon$1 as i,jsxRuntime as j,interopRequireDefault as k,Route as l,makeStyles as m,useDispatch as n,useSelector as o,authStatusSelector as p,authContextSelector as q,react as r,store$4 as s,AuthContext as t,useThemeProps as u,lodash as v,Alert$1 as w,useNavigate as x,devErrorLogger as y,useLocation as z};
1518
+ `,l={entityId:t,entityType:e};try{a=yield baseGraphQLApi({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==(f=(a.errors||[])[0])?void 0:f.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 getMyRights(t){return __awaiter(this,void 0,void 0,function*(){var e="getMyRights";return(yield baseGraphQLApiWithError(Object.assign({query:"\n query getMyRights {\n myRights {\n operations\n }\n }\n ",operationName:e},t))).myRights.operations})}const selectPermissionsByEntity=(t,n,r)=>e=>{return t&&n&&(e=e[namespace].permissionsByObject[t])&&e[n]?e[n][r||t]:void 0},selectMyRights=e=>e[namespace].rights;var index=Object.freeze({__proto__:null,selectPermissionsByEntity:selectPermissionsByEntity,selectMyRights:selectMyRights});function*fetchObjectPermissions(t){var{entityId:t,entityType:n}=t.payload,i=yield select(selectApiConfigs$2),e=yield select(graphEndpointSelector),o=yield select(sessionTokenSelector),a=yield select(selectIsOLPEnabled),r=yield select(selectPermissionsByEntity(n,t));if(!r||"success"!==r.status&&"pending"!==r.status){yield put(actions.fetchObjectPermissionsStarted({entityId:t,entityType:n}));try{let r={};if(a)r=yield call$i(getObjectPermissions,e,o,{entityType:n,entityId:t});else{let e=yield select(selectMyRights);if("success"!==e.status&&"pending"!==e.status){yield put(actions.fetchMyRightsStarted);try{var s=yield call$i(getMyRights,i);yield put(actions.fetchMyRightsSucceeded(s)),e=yield select(selectMyRights)}catch(e){throw yield put(actions.fetchMyRightsFailed),e}}else"pending"===e.status&&(yield take([actions.fetchMyRightsFailed,actions.fetchMyRightsSucceeded]),e=yield select(selectMyRights));const l=e["myRights"];getPermissionTypesToQuery(n).forEach(n=>{var{action:e,resource:t}=n.targetActions.reduce((e,t)=>(e.action[t.targetAction]=convertPermissionsToRights(t.resource||n.targetObjectType,t.targetAction,l),e.resource=t.resource,e),{action:{}});r[t||n.targetObjectType]=e})}yield put(actions.fetchObjectPermissionsSucceeded({entityId:t,entityType:n,permissions:r}))}catch(e){actions.fetchObjectPermissionsFailed({entityId:t,entityType:n})}}}function*watchPermissionsStart(){yield takeEvery$1(actions.fetchObjectPermissionsStart.type,fetchObjectPermissions)}function*rootSaga(){yield all([watchPermissionsStart()])}function getPermissionsModule(){return{id:namespace,reducerMap:{[namespace]:permissionsReducer},sagas:[rootSaga],initialActions:[]}}const useOrganizationPermissions=e=>{const t=react.exports.useRef(),n=useDispatch(),r=null==(o=useSelector(userSelector$2).organization)?void 0:o.organizationId,i=useSelector(selectPermissionsByEntity(EAuthResourceType.Organization,String(r),e));react.exports.useEffect(()=>{!r||i&&"failure"!==i.status&&"idle"!==i.status&&t.current===r||(t.current=r,n(actions.fetchObjectPermissionsStart({entityType:EAuthResourceType.Organization,entityId:String(r)})))},[n,r,i]);var o=react.exports.useCallback(e=>{return!isPermissionLoading(i)&&hasPermission(i,e)},[i]);return{permissions:i,hasPermission:o}},rateLimiter=new RateLimiter,checkAndDecodeBase64String=t=>{if(null==t||!t.trim())return t;try{return window.btoa(window.atob(t))==t?window.atob(t):t}catch(e){return t}};function SnackbarRenderer(){return jsxRuntime.exports.jsx(Provider$2,Object.assign({store:store$4},{children:jsxRuntime.exports.jsx(DynamicModuleLoader,Object.assign({modules:[getSnackbarModule()]},{children:jsxRuntime.exports.jsx(CustomSnackbar,{})}))}))}store$4.addModules([getWidgetsModule(),getPanelsModule(registry,registryLookup),getDataModule(),getConfigModule(),getAuthModule(),getPermissionsModule()]);let hasLoaded=!1;const AppBarPreLoader=()=>{var e=useSelector(authSelector);return(null==(e=null==e?void 0:e.user)?void 0:e.token)&&!hasLoaded&&(hasLoaded=!0,setTimeout(()=>{store$4.addModules([getAppbarPanelModule()])},0)),null};function ApplicationDialogPreLoader(){var e=useSelector(authSelector);return(null==(e=null==e?void 0:e.user)?void 0:e.token)&&hasLoaded?jsxRuntime.exports.jsx(ApplicationDialog,{}):null}const authHelpers={updateToken(e){e?store$4.dispatch(updateTokenRequest({token:e})):console.error("[AiWARE JS]: Please provide a valid token!")},logout(e){"function"==typeof e?(e(),setTimeout(()=>{store$4.dispatch(logout())},1e3)):store$4.dispatch(logout())},reportAppActivity(e){rateLimiter.checkIfCanCall(e)&&store$4.dispatch(updateActivityStatus$1())}};function PortalRenderer(){return jsxRuntime.exports.jsxs(jsxRuntime.exports.Fragment,{children:[jsxRuntime.exports.jsx(SupportCenterPixel,{}),jsxRuntime.exports.jsx(Provider$2,Object.assign({store:store$4},{children:jsxRuntime.exports.jsx(AppBarPreLoader,{})}))]})}function ApplicationDialogRenderer(){return jsxRuntime.exports.jsx(jsxRuntime.exports.Fragment,{children:jsxRuntime.exports.jsx(Provider$2,Object.assign({store:store$4},{children:jsxRuntime.exports.jsx(AIWareIntlProvider,{children:jsxRuntime.exports.jsx(ApplicationDialogPreLoader,{})})}))})}const ThemeInitializer=()=>(useTheme(),null),root=getElement("aiWARE"),reactDOMroot=(root.classList.add("aiware-el"),client$1.createRoot(root)),mountWidget=("_auth"===window.name?handleImplicitRedirect(window.location.hash,window.opener):reactDOMroot.render(jsxRuntime.exports.jsx(AIWareCacheProvider,{children:jsxRuntime.exports.jsxs(AIWareThemeProvider$1,{children:[jsxRuntime.exports.jsx(PortalRenderer,{}),jsxRuntime.exports.jsx(SnackbarRenderer,{}),jsxRuntime.exports.jsx(ApplicationDialogRenderer,{}),jsxRuntime.exports.jsx(ThemeInitializer,{})]})})),(e,t)=>{var n=getUniqueID(),{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"),store$4.dispatch(mountWidget$1({elementId:r,widgetName:e,widgetConfig:i,widgetId:n,onComplete:t})),n}),unmountWidget=e=>(store$4.dispatch(unmountWidget$1(e)),!0),mountPanel=(e,t)=>{const n=e.panelId||getUniqueID();var{microFrontend:e,panelConfig:r}=e;store$4.dispatch(mountPanel$1({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 takeEvery$1(i.map(e=>e.type),function*(){var e=(yield select(e=>e.data.find(e=>e.id===n)))["data"];t&&t(e)})}]};return store$4.addModule(r),n},unmountPanel=e=>(store$4.dispatch(unmountPanel$1(e)),!0),hidePanel=e=>(store$4.dispatch(hidePanel$1(e)),!0),unmountAllPanel=()=>{store$4.dispatch(unmountAllPanel$1(""))};function init(e,t){var n,e=validateConfig(e);e?(n=e["authToken"],n=checkAndDecodeBase64String(n||""),store$4.dispatch(getInitConfig(Object.assign(Object.assign({},e),{authToken:n,onComplete:t})))):console.error("@aiware/js initialization failed. Please pass valid configuration object.")}function helpCenter(){var e=new HelpCenter$2({actions:{setCustomKnowledgeBaseUrlAction:setCustomKnowledgeBaseUrl,setCustomDocsUrlAction:setCustomDocsUrl,updateSelectedTabAction:updateSelectedTab}});return{openKnowledgeBasePanel:e.openKnowledgeBasePanel.bind(e),openDocsPanel:e.openDocsPanel.bind(e)}}function dataCenter(){var e=new DataCenter$1;return{openImporterPanel:e.openImporterPanel.bind(e)}}function handleEvents(){function n(e){if(!e||"string"!=typeof e)throw new SdkError("Please provide a valid event name!");if(!SdkEvents[e])throw new SdkError("Unknown event: "+e)}return{on:function(e,t){n(e),sdkEventManager.on.call(sdkEventManager,e,t)},off:function(e){n(e),sdkEventManager.off.call(sdkEventManager,e)}}}const mountPanelForResponse=e=>mountPanelForResponse$1(e,store$4),aiwareEvents=handleEvents();window&&(window.aiWare_initTesting=()=>{window.aiWare_store=store$4,window.aiWare_theme={darkTheme:darkTheme$1,lightTheme:lightTheme$1}},window.aiware={init:init,auth:authHelpers,helpCenter:helpCenter(),dataCenter:dataCenter(),on:aiwareEvents.on,off:aiwareEvents.off,hidePanel:hidePanel,unmountPanel:unmountPanel,store:store$4,registry:registry,registerComponent:registerComponent,AvailableWidgets:AvailableWidgets,mountPanelAction:mountPanel$1,unmountPanelAction:unmountPanel$1,hidePanelAction:hidePanel$1,updatePanelMicroFrontendPropsAction:updatePanelMicroFrontendProps,setData:setData,mountWidget:mountWidget,mountPanel:mountPanel,mountPanelForResponse:mountPanelForResponse,unmountWidget:unmountWidget,version:"sdk_release_version",commit:"4c1eb74c7",releaseDate:"2023-08-04T22:29:36.267Z"});export{createAction as $,AIWareIntlProvider as A,Box$1 as B,authErrorMessage as C,FormControl$1 as D,TextField$1 as E,FormattedMessage$1 as F,Grid$1 as G,classNames as H,resetPasswordRequest as I,InputLabel$1 as J,InputAdornment$1 as K,LoadingButton$1 as L,IconButton$1 as M,Select$1 as N,OutlinedInput$1 as O,Provider$2 as P,Location as Q,Routes as R,Switch$1 as S,Typography$1 as T,MenuItem$1 as U,Button$1 as V,Divider$1 as W,createTheme$1 as X,systemStyled as Y,useThemeProps$1 as Z,_extends$3 as _,generateUtilityClasses as a,default_1 as a$,createReducer as a0,createSlice as a1,ENGINE_OWNER_TYPES as a2,ENGINE_FILTER_TYPES as a3,DynamicModuleLoader as a4,preferredLanguageSelector as a5,baseUrlSelector as a6,rootApiSelector as a7,sessionTokenSelector as a8,graphEndpointSelector as a9,call$i as aA,fetchTemplateGallery as aB,isRevisionsExistOnServerRequest as aC,FormLabel$1 as aD,default_1$d as aE,FormGroup$1 as aF,FormControlLabel$1 as aG,Checkbox$1 as aH,fetchTemplateGalleryFallback as aI,Card$1 as aJ,CardContent$1 as aK,img$m as aL,CardActions$1 as aM,flowStyles as aN,NoResults as aO,CircularProgress$1 as aP,img$c as aQ,Dialog$1 as aR,setApiEndpoint as aS,TableContainer$1 as aT,Table$1 as aU,TableHead$1 as aV,TableRow$1 as aW,TableCell$1 as aX,TableSortLabel$1 as aY,TableBody$1 as aZ,img$h as a_,controllerNodeRedImageSelector as aa,controllerUrlSelector as ab,automateControllerUrlSelector as ac,flowCenterDialogSelector as ad,automateUrlSelector as ae,Portal$1 as af,flowCenterDialogReducer as ag,List$2 as ah,ListItem$1 as ai,ListItemIcon$1 as aj,ListItemText$1 as ak,flowCenterDialogAction as al,all as am,img$o as an,img$p as ao,img$r as ap,img$s as aq,Tooltip$1 as ar,img$i as as,img$H as at,Skeleton$1 as au,takeLatest$1 as av,fetchAllTags as aw,put as ax,select as ay,fetchFlows as az,styled$1 as b,img$x as b$,Popper$1 as b0,ClickAwayListener as b1,Fade$1 as b2,img$t as b3,img$q as b4,img$R as b5,img$D as b6,DialogTitle$1 as b7,DialogContent$1 as b8,DialogActions$1 as b9,__generator$2 as bA,__spread as bB,React5 as bC,TransitionGroup$1 as bD,connect$1 as bE,Bookmark as bF,EngineFlagIcons as bG,createAsyncThunk as bH,withStyles as bI,getConfigModule as bJ,getAuthModule as bK,getSnackbarModule as bL,AIWareCacheProvider as bM,img$S as bN,img$e as bO,img$d as bP,isEmpty_1 as bQ,Backdrop$1 as bR,getDefaultMiddleware as bS,isNil_1 as bT,UpDown as bU,Icon$1 as bV,get_1 as bW,map_1 as bX,keys_1 as bY,RadioGroup$1 as bZ,Avatar$1 as b_,Snackbar$1 as ba,default_1$6 as bb,Search$1 as bc,img$j as bd,img$l as be,img$V as bf,Tabs$2 as bg,Tab$2 as bh,deleteEngine as bi,fetchEngine as bj,img$k as bk,AIWareFormatMessage as bl,FormattedDate as bm,fetchVeritoneGraphQLApi as bn,useTheme as bo,KeyboardArrowRight as bp,KeyboardArrowLeft as bq,useId as br,InputUnstyled as bs,isHostComponent as bt,getDefaultExportFromNamespaceIfNotNamed as bu,commonjsRequire as bv,reactDom as bw,Transition$1 as bx,_defineProperty$x as by,__awaiter$e as bz,Paper$1 as c,DynamicTable as c$,baseGraphQLApi as c0,FormHelperText$2 as c1,img$g as c2,StyledEngineProvider as c3,ThemeProvider as c4,lightTheme$1 as c5,CssBaseline as c6,Hide as c7,has_1 as c8,showMessage as c9,TabPanel as cA,default_1$8 as cB,unmountPanel$1 as cC,AvailableComponents as cD,delay$1 as cE,hidePanel$1 as cF,mountPanel$1 as cG,DialogContentText$1 as cH,userSelector$2 as cI,MoreVert$1 as cJ,Menu$1 as cK,Edit as cL,Upload as cM,Delete$1 as cN,CustomTabs as cO,useBackupImg as cP,img$1A as cQ,validate as cR,configSelector as cS,baseGraphQLApiWithError as cT,VerifiedFilled as cU,Add as cV,ExpandLess$1 as cW,ExpandMore$1 as cX,Collapse$1 as cY,img$17 as cZ,Filter$1 as c_,MessageSeverity as ca,Radio$2 as cb,createSvgIcon$2 as cc,_createCompounder as cd,_baseIteratee as ce,isArrayLike_1 as cf,toInteger_1 as cg,_typeof$D as ch,_assertThisInitialized$x as ci,_setPrototypeOf$z as cj,_toPropertyKey as ck,_inheritsLoose$2 as cl,hoistNonReactStatics_cjs as cm,commonjsGlobal$1 as cn,combineReducers as co,createSelector$1 as cp,fork as cq,statusPill as cr,AIWareThemeProvider$1 as cs,LocalizationProvider as ct,AdapterDateFns as cu,CalendarPicker as cv,Stack$4 as cw,Close$1 as cx,FullscreenExit as cy,Fullscreen as cz,capitalize$2 as d,eq_1 as d$,useTheme$3 as d0,getThemeProps as d1,useEnhancedEffect$3 as d2,React as d3,_arrayPush as d4,isArray_1 as d5,_baseToString as d6,_baseTrim as d7,_castSlice as d8,_stringToArray as d9,EngineClassIcons as dA,Mode2 as dB,EngineModeIcons as dC,DeploymentModelIcons as dD,ListSubheader$1 as dE,guid as dF,EditList as dG,Chip$1 as dH,useControlled$1 as dI,usePreviousProps$1 as dJ,useEventCallback as dK,setRef as dL,inputClasses$1 as dM,inputBaseClasses$1 as dN,outlinedInputClasses$1 as dO,filledInputClasses$1 as dP,alpha as dQ,ClearIcon as dR,ArrowDropDownIcon as dS,ButtonBase$1 as dT,isObject_1 as dU,_arrayMap as dV,_Symbol as dW,isArguments_1 as dX,_baseEach as dY,_arrayFilter as dZ,_getNative as d_,toString_1 as da,ReactIs as db,upperFirst_1 as dc,isString_1 as dd,_baseGet as de,_baseSlice as df,_castPath as dg,_toKey as dh,_isIndex as di,channel$1 as dj,useIntl as dk,VideoCamera as dl,Image$1 as dm,Sound as dn,Description as dp,toNumber_1 as dq,ProgressStepper as dr,size_1 as ds,take as dt,CurlyBraces as du,UnknownDocument as dv,VariableSizeList as dw,sdkEventManager as dx,SdkEvents as dy,SdkError as dz,_objectWithoutPropertiesLoose$2 as e,MoveFolder as e$,_root as e0,_Uint8Array as e1,_overArg as e2,_isPrototype as e3,isObjectLike_1 as e4,_baseGetTag as e5,_arrayLikeKeys as e6,isBuffer$4 as e7,isFunction_1 as e8,isTypedArray_1 as e9,EntityType as eA,generateState as eB,injectIntl as eC,ErrorBoundary$1 as eD,EPermissionAction as eE,Process as eF,Information as eG,Download as eH,NewFolder as eI,SpecialFolder as eJ,User as eK,Source as eL,Search$2 as eM,selectIsOLPEnabled as eN,ListItemSecondaryAction$1 as eO,getLibraryModule as eP,cmsUrlSelector as eQ,betaFeaturesSelector as eR,debounce_1 as eS,SearchStructuredData as eT,Grow$1 as eU,index as eV,actions as eW,hasPermission as eX,UserAddFilled as eY,Popover$1 as eZ,MenuList$1 as e_,_Stack as ea,_baseFor as eb,identity_1 as ec,_isIterateeCall as ed,isSymbol_1 as ee,_baseMap as ef,_baseUnary as eg,createBox$1 as eh,_Set as ei,_setToArray as ej,_SetCache as ek,_cacheHas as el,img$O as em,img$N as en,img$1w as eo,img$1v as ep,img$1u as eq,img$L as er,img$1y as es,img$K as et,authSelector as eu,ListItemAvatar$1 as ev,takeEvery$1 as ew,emphasize as ex,useSlotProps as ey,_arraySome as ez,clsx as f,LinearProgress$1 as f$,EAuthResourceType as f0,Slide$1 as f1,img$a as f2,selectApiConfigs$2 as f3,selectPanelByPanelName as f4,FullScreenContainer as f5,EngineCategoryIcons as f6,isPermissionLoading as f7,Settings$2 as f8,Hamburger as f9,Undefined as fA,PodcastSource as fB,YoutubeSource as fC,TVSource as fD,RadioSource as fE,selectOrgId as fF,navSectionStyles as fG,selectIsUserAdmin as fH,AvatarGroup$1 as fI,index$1 as fJ,ErrorState$2 as fK,Stepper$1 as fL,StepConnector$1 as fM,Step$1 as fN,StepLabel$1 as fO,isEqual_1 as fP,NullState$2 as fQ,Group as fR,PermissionChangedAction as fS,Lock as fT,useOrganizationPermissions as fU,EAuthSubResourceType as fV,AddGroup as fW,initialConfigSelector as fX,ConfirmationModal as fY,EnumHelpers as fZ,formatBytes as f_,List as fa,enginesFilter as fb,panelsSelector as fc,Badge$1 as fd,MoreHor as fe,convertEntityToAuthResource as ff,AutoSizer as fg,InfiniteLoader as fh,FixedSizeList as fi,selectUserOrgEdgeVersion as fj,EditAttributes as fk,gqlIntrospection as fl,ProcessingDetail as fm,img$w as fn,img$y as fo,img$4 as fp,FilterRemove as fq,AlarmTwo as fr,tableInfiniteScroll as fs,CheckCircle as ft,FolderOpen as fu,Voice as fv,useDoubleClick as fw,FolderFilled as fx,Time as fy,img$z as fz,generateUtilityClass as g,createStack as g$,NotInterested as g0,mountPanelForResponse$1 as g1,default_1$9 as g2,tableStyles as g3,ArrowDown as g4,ArrowUp as g5,useInterval as g6,Iam as g7,safeFormatMessage as g8,contextMenuStyles as g9,stubArray_1 as gA,_baseGetAllKeys as gB,_getTag as gC,_nodeUtil as gD,_getAllKeys as gE,_castFunction as gF,Article as gG,Task as gH,View as gI,_objectSpread2 as gJ,serialize as gK,stringify$2 as gL,compile as gM,Check as gN,EngineIconsRenderer as gO,FormattedRelativeTime$1 as gP,BottomQueue as gQ,TopQueue as gR,Pause as gS,Cancel as gT,Folder as gU,Hidden as gV,dateRangeFilter as gW,statusFilter as gX,TableLoadingState as gY,setDuration as gZ,resetDuration as g_,Users as ga,SecurityGroup as gb,getOrganizationPanelModule as gc,Lock2 as gd,EApplicationConfigLevel as ge,NoApps as gf,EApplicationConfigType as gg,green$1 as gh,md5 as gi,selectIsSuperAdmin as gj,organizations_selector as gk,actions$5 as gl,AddUser as gm,selectors as gn,LibraryDropdown as go,Remove as gp,Save as gq,Input$3 as gr,getElement as gs,client$1 as gt,Copy as gu,ArrowForward as gv,Modal$1 as gw,Slider$1 as gx,getDefaultExportFromCjs as gy,_getSymbols as gz,composeClasses as h,toFinite_1 as h0,_baseForOwn as h1,_arrayReduce as h2,hasIn_1 as h3,now_1 as h4,useSyncExternalStoreExports as h5,imageUpload as h6,characterCountTextField as h7,Engines as h8,tabsClasses$1 as h9,mountPanel as hA,unmountPanel as hB,hidePanel as hC,unmountAllPanel as hD,init as hE,aiwareEvents as hF,Packages as ha,Resources$1 as hb,selectUserCanCreatePackage as hc,PackagesAvatar as hd,actionChannel as he,cancelled as hf,flush$3 as hg,cancel as hh,tableSearchComponents as hi,FlowCenter2 as hj,ArrowBack as hk,Schema as hl,FlowTemplate as hm,panelComponents as hn,img$v as ho,Clear as hp,ExpandLess as hq,ExpandMore as hr,registry as hs,registerComponent as ht,AvailableWidgets as hu,updatePanelMicroFrontendProps as hv,setData as hw,root as hx,mountWidget as hy,unmountWidget as hz,createSvgIcon$1 as i,jsxRuntime as j,interopRequireDefault as k,Route as l,makeStyles as m,useDispatch as n,useSelector as o,authStatusSelector as p,authContextSelector as q,react as r,store$4 as s,AuthContext as t,useThemeProps as u,lodash as v,Alert$1 as w,useNavigate as x,devErrorLogger as y,useLocation as z};
package/js-core.esm.js.gz CHANGED
Binary file