@e-llm-studio/instant-learning 0.1.1-alpha.53 → 0.1.1-alpha.55
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/dist/cjs/features/LearningManagement/LearningManagement.js +1 -1
- package/dist/cjs/features/LearningManagement/LearningTemplateLayout.js +1 -1
- package/dist/cjs/features/LearningManagement/RBAC/AccessPanel.js +1 -1
- package/dist/cjs/features/LearningManagement/RBAC/AccessPanel.module.css.js +1 -1
- package/dist/cjs/features/LearningManagement/RuleContent/AddScopeModal.js +1 -1
- package/dist/cjs/features/LearningManagement/RuleContent/ApprovalLearningDialog.js +1 -1
- package/dist/cjs/features/LearningManagement/RuleContent/RuleContent.js +1 -1
- package/dist/cjs/features/LearningManagement/RuleContent/VariantCard.js +1 -1
- package/dist/cjs/features/LearningManagement/apis/apiConfig.js +1 -1
- package/dist/cjs/features/LearningManagement/apis/scopeApis.js +1 -1
- package/dist/cjs/features/LearningManagement/components/CreateLearningSetModal.js +1 -1
- package/dist/cjs/features/LearningManagement/components/EmptyLearningState.js +1 -1
- package/dist/cjs/features/LearningManagement/queries/useApprovalQueries.js +1 -1
- package/dist/cjs/features/LearningManagement/store/usePermissionsStore.js +1 -1
- package/dist/cjs/features/LearningManagement/styles/EmptyRuleState.module.css.js +1 -1
- package/dist/features/LearningManagement/LearningManagement.js +1 -1
- package/dist/features/LearningManagement/LearningTemplateLayout.js +1 -1
- package/dist/features/LearningManagement/RBAC/AccessPanel.js +1 -1
- package/dist/features/LearningManagement/RBAC/AccessPanel.module.css.js +1 -1
- package/dist/features/LearningManagement/RuleContent/AddScopeModal.js +1 -1
- package/dist/features/LearningManagement/RuleContent/ApprovalLearningDialog.js +1 -1
- package/dist/features/LearningManagement/RuleContent/RuleContent.js +1 -1
- package/dist/features/LearningManagement/RuleContent/VariantCard.js +1 -1
- package/dist/features/LearningManagement/apis/apiConfig.js +1 -1
- package/dist/features/LearningManagement/apis/scopeApis.js +1 -1
- package/dist/features/LearningManagement/components/CreateLearningSetModal.js +1 -1
- package/dist/features/LearningManagement/components/EmptyLearningState.js +1 -1
- package/dist/features/LearningManagement/queries/useApprovalQueries.js +1 -1
- package/dist/features/LearningManagement/store/usePermissionsStore.js +1 -1
- package/dist/features/LearningManagement/styles/EmptyRuleState.module.css.js +1 -1
- package/dist/types/src/features/LearningManagement/LearningManagement.d.ts.map +1 -1
- package/dist/types/src/features/LearningManagement/LearningManagementTest.d.ts.map +1 -1
- package/dist/types/src/features/LearningManagement/RBAC/AccessPanel.d.ts +0 -2
- package/dist/types/src/features/LearningManagement/RBAC/AccessPanel.d.ts.map +1 -1
- package/dist/types/src/features/LearningManagement/RBAC/index.d.ts +1 -2
- package/dist/types/src/features/LearningManagement/RBAC/index.d.ts.map +1 -1
- package/dist/types/src/features/LearningManagement/RuleContent/AddScopeModal.d.ts.map +1 -1
- package/dist/types/src/features/LearningManagement/RuleContent/ApprovalLearningDialog.d.ts.map +1 -1
- package/dist/types/src/features/LearningManagement/RuleContent/RuleContent.d.ts.map +1 -1
- package/dist/types/src/features/LearningManagement/RuleContent/VariantCard.d.ts.map +1 -1
- package/dist/types/src/features/LearningManagement/apis/apiConfig.d.ts +4 -0
- package/dist/types/src/features/LearningManagement/apis/apiConfig.d.ts.map +1 -1
- package/dist/types/src/features/LearningManagement/apis/scopeApis.d.ts +3 -4
- package/dist/types/src/features/LearningManagement/apis/scopeApis.d.ts.map +1 -1
- package/dist/types/src/features/LearningManagement/components/EmptyLearningState.d.ts +0 -8
- package/dist/types/src/features/LearningManagement/components/EmptyLearningState.d.ts.map +1 -1
- package/dist/types/src/features/LearningManagement/components/InstantLearningModal.d.ts.map +1 -1
- package/dist/types/src/features/LearningManagement/queries/useApprovalQueries.d.ts +3 -4
- package/dist/types/src/features/LearningManagement/queries/useApprovalQueries.d.ts.map +1 -1
- package/dist/types/src/features/LearningManagement/store/useEnvStore.d.ts +0 -1
- package/dist/types/src/features/LearningManagement/store/useEnvStore.d.ts.map +1 -1
- package/dist/types/src/features/LearningManagement/store/usePermissionsStore.d.ts +1 -2
- package/dist/types/src/features/LearningManagement/store/usePermissionsStore.d.ts.map +1 -1
- package/package.json +1 -1
- package/dist/cjs/features/LearningManagement/RBAC/AccessManagementPanel.js +0 -2
- package/dist/cjs/features/LearningManagement/RBAC/AccessManagementPanel.js.map +0 -1
- package/dist/cjs/features/LearningManagement/assets/Search-result(add new).svg.js +0 -2
- package/dist/cjs/features/LearningManagement/assets/Search-result(add new).svg.js.map +0 -1
- package/dist/cjs/features/LearningManagement/components/StationOnboarding/BackwardStationOnboardModal.js +0 -2
- package/dist/cjs/features/LearningManagement/components/StationOnboarding/BackwardStationOnboardModal.js.map +0 -1
- package/dist/features/LearningManagement/RBAC/AccessManagementPanel.js +0 -2
- package/dist/features/LearningManagement/RBAC/AccessManagementPanel.js.map +0 -1
- package/dist/features/LearningManagement/assets/Search-result(add new).svg.js +0 -2
- package/dist/features/LearningManagement/assets/Search-result(add new).svg.js.map +0 -1
- package/dist/features/LearningManagement/components/StationOnboarding/BackwardStationOnboardModal.js +0 -2
- package/dist/features/LearningManagement/components/StationOnboarding/BackwardStationOnboardModal.js.map +0 -1
- package/dist/types/src/features/LearningManagement/RBAC/AccessManagementPanel.d.ts +0 -7
- package/dist/types/src/features/LearningManagement/RBAC/AccessManagementPanel.d.ts.map +0 -1
- package/dist/types/src/features/LearningManagement/components/StationOnboarding/BackwardStationOnboardModal.d.ts +0 -12
- package/dist/types/src/features/LearningManagement/components/StationOnboarding/BackwardStationOnboardModal.d.ts.map +0 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),t=require("axios"),r=require("./apiConfig.js"),n=require("../store/useAuthStore.js"),a=require("../store/useEnvStore.js"),o=require("../store/useLearningTemplateStore.js"),s=require("../config.js");function i(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var u=i(t),c=function(e){return e.interceptors.request.use(function(e){var t=n.default.getState().user,r=null==t?void 0:t.accessToken;return r&&(e.headers.Authorization="Bearer ".concat(r)),e}),e},l=function(e,t){return e.interceptors.request.use(function(e){return e.baseURL=t(),e}),e},d=l(c(u.default.create({headers:{"Content-Type":"application/json"}})),function(){return a.default.getState().audacyBackendUrl||""}),p=l(c(u.default.create({headers:{"Content-Type":"application/json"}})),function(){return a.default.getState().llmStudioUrl||""}),_=l(c(u.default.create({headers:{"Content-Type":"application/json"}})),function(){return a.default.getState().appsecRbacUrl||""}),h=l(c(u.default.create({headers:{"Content-Type":"application/json"}})),function(){return a.default.getState().appsecBaseUrl||""}),v=function(e){return l(c(u.default.create({headers:{"Content-Type":"application/json",Authorization:"Bearer ".concat(e)},withCredentials:!0})),function(){return a.default.getState().llmStudioUrl||""})};exports.ApproveOrRejectVariants=function(t){var r=t.variant_ids,n=t.status,a=t.feedback,o=t.scopeId,s=t.is_deleted;return e.__awaiter(void 0,void 0,void 0,function(){var t,i,u;return e.__generator(this,function(e){switch(e.label){case 0:return e.trys.push([0,2,,3]),t={variant_ids:r,status:n,feedback:a||"",is_deleted:null!=s&&s},i="instant_learning/scopes/".concat(o,"/variants/update_variant_status"),[4,p.patch(i,t)];case 1:return[2,e.sent().data];case 2:throw u=e.sent(),console.log(u),u;case 3:return[2]}})})},exports.GetAppsecRoles=function(t){return e.__awaiter(void 0,void 0,void 0,function(){var r;return e.__generator(this,function(e){switch(e.label){case 0:return e.trys.push([0,2,,3]),[4,_.get("/roles?appid=".concat(t))];case 1:return[2,e.sent().data];case 2:throw r=e.sent(),console.error(r),r;case 3:return[2]}})})},exports.alterQuestionPriority=function(t,n,a,o,s){return e.__awaiter(void 0,void 0,void 0,function(){var i,u;return e.__generator(this,function(e){switch(e.label){case 0:return e.trys.push([0,2,,3]),i={scopeId:t,tierId:n,move:{movedRuleId:a,prevRuleId:o,nextRuleId:s}},[4,p.put(r.API_ENDPOINTS.alterRulePriority,i)];case 1:return[2,e.sent().data];case 2:throw u=e.sent(),console.error("Error altering question priority:",u),u;case 3:return[2]}})})},exports.appsecApi=_,exports.appsecApigetUser=h,exports.appsecGetUserGroups=function(t){return void 0===t&&(t={}),e.__awaiter(void 0,void 0,void 0,function(){var r,n,a,o,s,i,u,c,l,d,p,h,v,g,f,S;return e.__generator(this,function(e){switch(e.label){case 0:r=t.appId,n=void 0===r?"":r,a=t.name,o=void 0===a?"":a,s=t.user,i=void 0===s?"":s,u=t.isActive,c=void 0===u||u,l=t.page,d=void 0===l?1:l,p=t.limit,h=void 0===p?10:p,v=t.pagination,g=void 0===v||v,f=new URLSearchParams({appId:n,name:o,user:i,isActive:String(c),page:String(d),limit:String(h),pagination:String(g)}),e.label=1;case 1:return e.trys.push([1,3,,4]),[4,_.get("/groups?".concat(f.toString()))];case 2:return[2,e.sent().data];case 3:throw S=e.sent(),console.error("Failed to fetch user groups",S),S;case 4:return[2]}})})},exports.appsecGetUsersByQueryLite=function(t,r){return e.__awaiter(void 0,void 0,void 0,function(){var n,a,o,s,i,u,c,l,d,p,_,v,g,f,S,w,I;return e.__generator(this,function(e){switch(e.label){case 0:a=(n=r||{}).isPopulateRoles,o=void 0!==a&&a,s=n.isPopulatePermissions,i=void 0!==s&&s,u=n.isPopulateApps,c=void 0!==u&&u,l=n.isPopulateEnvironments,d=void 0!==l&&l,p=n.isPopulateOperations,_=void 0!==p&&p,v=n.isPopulateGroups,g=void 0!==v&&v,f=n.isPopulateOrganization,S=void 0!==f&&f,w=new URLSearchParams({search:t,isPopulateRoles:String(o),isPopulatePermissions:String(i),isPopulateApps:String(c),isPopulateEnvironments:String(d),isPopulateOperations:String(_),isPopulateGroups:String(g),isPopulateOrganization:String(S)}),e.label=1;case 1:return e.trys.push([1,3,,4]),[4,h.get("/api/user/get-by-query-v2?".concat(w.toString()))];case 2:return[2,e.sent().data];case 3:throw I=e.sent(),console.error("Failed to fetch users",I),I;case 4:return[2]}})})},exports.audacyApi=d,exports.createRuleSet=function(t,n){return e.__awaiter(void 0,void 0,void 0,function(){var a,s,i;return e.__generator(this,function(e){switch(e.label){case 0:return e.trys.push([0,2,,3]),a=o.useLearningTemplateStore.getState().backwardCompatibility,s=a?r.LEGACY_API_ENDPOINTS.createRuleSet:r.API_ENDPOINTS.createRuleSet,[4,v(n).post(s,t)];case 1:return[2,e.sent().data];case 2:throw i=e.sent(),console.error("Error creating rule set:",i),i;case 3:return[2]}})})},exports.default=p,exports.deleteQuestion=function(t){return e.__awaiter(void 0,void 0,void 0,function(){var n,a;return e.__generator(this,function(e){switch(e.label){case 0:return e.trys.push([0,2,,3]),n=r.API_ENDPOINTS.deleteQuestion.replace("{questionId}",t),[4,p.delete(n)];case 1:return[2,e.sent().data];case 2:throw a=e.sent(),console.error("Error deleting question:",a),a;case 3:return[2]}})})},exports.deleteRule=function(t){return e.__awaiter(void 0,void 0,void 0,function(){var n,a;return e.__generator(this,function(e){switch(e.label){case 0:return e.trys.push([0,2,,3]),n=r.API_ENDPOINTS.deleteRule.replace("{ruleId}",t),[4,p.delete(n)];case 1:return[2,e.sent().data];case 2:throw a=e.sent(),console.error("Error deleting rule:",a),a;case 3:return[2]}})})},exports.deleteRuleSet=function(t,n){return e.__awaiter(void 0,void 0,void 0,function(){var a,s,i;return e.__generator(this,function(e){switch(e.label){case 0:a=o.useLearningTemplateStore.getState().backwardCompatibility,e.label=1;case 1:return e.trys.push([1,3,,4]),s=a?r.LEGACY_API_ENDPOINTS.deleteRuleSet.replace("{ruleSetId}",t):r.API_ENDPOINTS.deleteRuleSet.replace("{ruleSetId}",t),[4,v(n).delete(s)];case 2:return[2,e.sent().data];case 3:throw i=e.sent(),console.error("Error deleting rule set:",i),i;case 4:return[2]}})})},exports.deleteTier=function(t,n){return e.__awaiter(void 0,void 0,void 0,function(){var a,o;return e.__generator(this,function(e){switch(e.label){case 0:return e.trys.push([0,2,,3]),a=r.API_ENDPOINTS.deleteTier.replace("{scopeId}",t).replace("{tierId}",n),[4,p.delete(a)];case 1:return[2,e.sent().data];case 2:throw o=e.sent(),console.error("Error deleting tier:",o),o;case 3:return[2]}})})},exports.exportRuleSet=function(t){return e.__awaiter(void 0,void 0,void 0,function(){var n;return e.__generator(this,function(e){switch(e.label){case 0:if(!t)throw new Error("scopeId is required for exporting rule sets");e.label=1;case 1:return e.trys.push([1,3,,4]),[4,p.post(r.API_ENDPOINTS.exportRuleSet,{scope_id:t},{responseType:"blob"})];case 2:return[2,e.sent().data];case 3:throw n=e.sent(),console.error("Error exporting rule set:",n),n;case 4:return[2]}})})},exports.fetchRulesByQuestionId=function(t,n){return e.__awaiter(void 0,void 0,void 0,function(){var a,o;return e.__generator(this,function(e){switch(e.label){case 0:return e.trys.push([0,2,,3]),a=r.API_ENDPOINTS.fetchRulesByQuestionId.replace("{questionId}",t).replace("{scopeId}",n),[4,p.get(a)];case 1:return[2,e.sent().data];case 2:throw o=e.sent(),console.error("Error fetching rules by question id:",o),o;case 3:return[2]}})})},exports.fetchScopes=function(t,n){return e.__awaiter(void 0,void 0,void 0,function(){var a,s,i;return e.__generator(this,function(e){switch(e.label){case 0:a=o.useLearningTemplateStore.getState().backwardCompatibility,e.label=1;case 1:if(e.trys.push([1,3,,4]),!t&&!1===a)throw new Error("App Integration ID is not provided. Falling back to legacy endpoint for fetching scopes.");return s=a?r.LEGACY_API_ENDPOINTS.fetchScopes:"".concat(r.API_ENDPOINTS.fetchScopes,"/").concat(t),[4,v(n).get(s)];case 2:return[2,e.sent().data];case 3:throw i=e.sent(),console.error("Error fetching rule sets:",i),i;case 4:return[2]}})})},exports.fetchStationsByKeyword=function(t,n){return void 0===n&&(n=!1),e.__awaiter(void 0,void 0,void 0,function(){var a,o;return e.__generator(this,function(e){switch(e.label){case 0:return e.trys.push([0,2,,3]),a="".concat(r.API_ENDPOINTS.fetchStationsByKeyword.replace("{keyword}",t),"?allow_existing=").concat(n),[4,d.get(a)];case 1:return[2,e.sent().data];case 2:throw o=e.sent(),console.error("Error fetching station name by keyword:",o),o;case 3:return[2]}})})},exports.fetchTiers=function(){return e.__awaiter(void 0,void 0,void 0,function(){var t,n,a,i,u,c,l,d;return e.__generator(this,function(e){switch(e.label){case 0:t=o.useLearningTemplateStore.getState().backwardCompatibility,n=o.useLearningTemplateStore.getState().app_integration_id,a=o.useLearningTemplateStore.getState().token,e.label=1;case 1:return e.trys.push([1,6,,7]),t?(i=s.IL_CONFIG_CONSTANTS.CUSTOM_SCOPE_GROUP_NAME,[4,v(a).post(r.LEGACY_API_ENDPOINTS.getTiers,{tier_group_name:i})]):[3,3];case 2:return u=e.sent(),o.useLearningTemplateStore.getState().setTiers((null===(l=u.data)||void 0===l?void 0:l.response)||[]),[3,5];case 3:return[4,v(a).get(r.API_ENDPOINTS.getTiers.replace("{appIntegrationId}",null!=n?n:""))];case 4:u=e.sent(),"success"===(null===(d=u.data)||void 0===d?void 0:d.status)&&o.useLearningTemplateStore.getState().setTiers(u.data.data.map(function(e){return{tier_id:e.id,tier_name:e.name,tier_priority:e.tier_priority}})),e.label=5;case 5:return[3,7];case 6:throw c=e.sent(),console.error("Error fetching tiers:",c),c;case 7:return[2]}})})},exports.getRuleOverrideHistory=function(t){return e.__awaiter(void 0,void 0,void 0,function(){var n,a;return e.__generator(this,function(e){switch(e.label){case 0:return e.trys.push([0,2,,3]),n="".concat(r.API_ENDPOINTS.getRuleOverrideHistory,"/").concat(t),[4,p.get(n)];case 1:return[2,e.sent().data];case 2:throw a=e.sent(),console.error("Error getting rule override history:",a),a;case 3:return[2]}})})},exports.getRulesInRuleSetById=function(t,n){return e.__awaiter(void 0,void 0,void 0,function(){var a,s,i;return e.__generator(this,function(e){switch(e.label){case 0:a=o.useLearningTemplateStore.getState().backwardCompatibility,e.label=1;case 1:return e.trys.push([1,3,,4]),s=a?"".concat(r.LEGACY_API_ENDPOINTS.getRulesInRuleSetById,"/").concat(t,"?include_config=True&sort_variant_by=createdAt"):"".concat(r.API_ENDPOINTS.getRulesInRuleSetById,"/").concat(t),[4,v(n).get(s)];case 2:return[2,e.sent().data];case 3:return i=e.sent(),console.error("Error fetching rules in rule set:",i),[3,4];case 4:return[2]}})})},exports.getStationsByScopeId=function(t){return e.__awaiter(void 0,void 0,void 0,function(){return e.__generator(this,function(e){return[2,new Promise(function(e){setTimeout(function(){e({data:[{stationId:"reetrtdfsds",stationName:"Hot 98.7",stationDesc:"Learnings that apply for Hot 98.7 Station",learningsCount:5},{stationId:"sta-102",stationName:"Smooth Jazz 102.1",stationDesc:"Learnings that apply for Smooth Jazz 102.1 Station",learningsCount:12},{stationId:"sta-103",stationName:"Rock 94",stationDesc:"Learnings that apply for Rock 94 Station",learningsCount:8}]})},500)})]})})},exports.inheritScope=function(t){return e.__awaiter(void 0,void 0,void 0,function(){var n;return e.__generator(this,function(e){switch(e.label){case 0:return e.trys.push([0,4,,5]),(null==t?void 0:t.application_mapping_id)?[4,p.post(r.API_ENDPOINTS.inheritScope,t)]:[3,2];case 1:return[2,e.sent().data];case 2:throw Error("Fatal Error: Trying to call inherit API without appintegration ID");case 3:return[3,5];case 4:throw n=e.sent(),console.error("Error inheriting scope:",n),n;case 5:return[2]}})})},exports.inheritScopeBackwardCompatible=function(t){return e.__awaiter(void 0,void 0,void 0,function(){var n;return e.__generator(this,function(e){switch(e.label){case 0:return e.trys.push([0,2,,3]),[4,p.post(r.LEGACY_API_ENDPOINTS.inheritScope,t)];case 1:return[2,e.sent().data];case 2:throw n=e.sent(),console.error("Error inheriting scope:",n),n;case 3:return[2]}})})},exports.llmApiWithToken=v,exports.publishFeedback=function(t,n){return e.__awaiter(void 0,void 0,void 0,function(){var n,a,s;return e.__generator(this,function(e){switch(e.label){case 0:n=o.useLearningTemplateStore.getState().backwardCompatibility,e.label=1;case 1:return e.trys.push([1,3,,4]),a=n?r.LEGACY_API_ENDPOINTS.publishFeedback:"".concat(r.API_ENDPOINTS.publishFeedback),[4,p.post(a,t)];case 2:return[2,e.sent().data];case 3:throw s=e.sent(),console.error("Error publishing feedback to LLM Studio:",s),s;case 4:return[2]}})})},exports.renameScope=function(t){return e.__awaiter(void 0,void 0,void 0,function(){var n,a;return e.__generator(this,function(e){switch(e.label){case 0:return e.trys.push([0,2,,3]),n="".concat(r.API_ENDPOINTS.renameScope),[4,p.put(n,t)];case 1:return[2,e.sent().data];case 2:throw a=e.sent(),console.error("Error renaming scope:",a),a;case 3:return[2]}})})},exports.retrieveGenreScopes=function(t){return void 0===t&&(t={limit:"50",offset:"0"}),e.__awaiter(void 0,void 0,void 0,function(){var n;return e.__generator(this,function(e){switch(e.label){case 0:return e.trys.push([0,2,,3]),[4,p.post(r.API_ENDPOINTS.retrieveGenreScopes,t)];case 1:return[2,e.sent().data];case 2:throw n=e.sent(),console.error("Error retrieving genre scopes:",n),n;case 3:return[2]}})})},exports.saveInstantLearningQuestion=function(t){return e.__awaiter(void 0,void 0,void 0,function(){var n;return e.__generator(this,function(e){switch(e.label){case 0:return e.trys.push([0,2,,3]),[4,p.post(r.API_ENDPOINTS.saveInstantLearningQuestion,t)];case 1:return[2,e.sent().data];case 2:throw n=e.sent(),console.error("Error saving instant learning question:",n),n;case 3:return[2]}})})},exports.searchScopes=function(t){return e.__awaiter(void 0,void 0,void 0,function(){var n;return e.__generator(this,function(e){switch(e.label){case 0:return e.trys.push([0,2,,3]),[4,p.post(r.API_ENDPOINTS.searchScopes,t)];case 1:return[2,e.sent().data];case 2:throw n=e.sent(),console.error("Error searching scopes:",n),n;case 3:return[2]}})})},exports.submitChatFeedback=function(t){return e.__awaiter(void 0,void 0,void 0,function(){var n;return e.__generator(this,function(e){switch(e.label){case 0:return e.trys.push([0,2,,3]),[4,p.post(r.API_ENDPOINTS.submitChatFeedback,t)];case 1:return[2,e.sent().data];case 2:throw n=e.sent(),console.error("Error submitting chat feedback:",n),n;case 3:return[2]}})})},exports.toggleVariant=function(t,n,a){return e.__awaiter(void 0,void 0,void 0,function(){var a,s,i,u;return e.__generator(this,function(e){switch(e.label){case 0:a=o.useLearningTemplateStore.getState().backwardCompatibility,s=o.useLearningTemplateStore.getState().app_integration_id,i=o.useLearningTemplateStore.getState().token,e.label=1;case 1:return e.trys.push([1,6,,7]),a?[4,v(i).patch(r.LEGACY_API_ENDPOINTS.toggleVariant,{variant_ids:t,is_enabled:n})]:[3,3];case 2:return[2,e.sent().data];case 3:return[4,v(i).patch(r.API_ENDPOINTS.toggleVariant,{variant_ids:t,application_mapping_id:s,is_enabled:n})];case 4:return[2,e.sent().data];case 5:return[3,7];case 6:throw u=e.sent(),console.error("Error toggling variant status:",u),u;case 7:return[2]}})})},exports.updateStation=function(t){return e.__awaiter(void 0,void 0,void 0,function(){var n;return e.__generator(this,function(e){switch(e.label){case 0:return e.trys.push([0,2,,3]),[4,d.post(r.API_ENDPOINTS.updateStation,t)];case 1:return[2,e.sent().data];case 2:throw n=e.sent(),console.error("Error updating station:",n),n;case 3:return[2]}})})},exports.updateVariant=function(t,n){return e.__awaiter(void 0,void 0,void 0,function(){var n;return e.__generator(this,function(e){switch(e.label){case 0:return e.trys.push([0,2,,3]),[4,p.put(r.API_ENDPOINTS.updateVariant,t)];case 1:return[2,e.sent().data];case 2:throw n=e.sent(),console.error("Error updating variant:",n),n;case 3:return[2]}})})};
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),t=require("axios"),r=require("./apiConfig.js"),n=require("../store/useAuthStore.js"),a=require("../store/useEnvStore.js"),o=require("../store/useLearningTemplateStore.js"),i=require("../config.js");function s(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var u=s(t),c=function(e){return e.interceptors.request.use(function(e){var t=n.default.getState().user,r=null==t?void 0:t.accessToken;return r&&(e.headers.Authorization="Bearer ".concat(r)),e}),e},l=function(e,t){return e.interceptors.request.use(function(e){return e.baseURL=t(),e}),e},p=l(c(u.default.create({headers:{"Content-Type":"application/json"}})),function(){return a.default.getState().audacyBackendUrl||""}),d=l(c(u.default.create({headers:{"Content-Type":"application/json"}})),function(){return a.default.getState().llmStudioUrl||""}),_=l(c(u.default.create({headers:{"Content-Type":"application/json"}})),function(){return a.default.getState().appsecRbacUrl||""}),g=l(c(u.default.create({headers:{"Content-Type":"application/json"}})),function(){return a.default.getState().appsecBaseUrl||""}),h=function(e){return l(c(u.default.create({headers:{"Content-Type":"application/json",Authorization:"Bearer ".concat(e)},withCredentials:!0})),function(){return a.default.getState().llmStudioUrl||""})};exports.ApproveOrRejectVariants=function(t){var r=t.variant_ids,n=t.status,a=t.feedback,o=t.scopeId;return e.__awaiter(void 0,void 0,void 0,function(){var t,i,s;return e.__generator(this,function(e){switch(e.label){case 0:return e.trys.push([0,2,,3]),t={variant_ids:r,status:n,feedback:a||"",is_deleted:!0},i="instant_learning/scopes/".concat(o,"/variants/update_variant_status"),[4,d.patch(i,t)];case 1:return[2,e.sent().data];case 2:throw s=e.sent(),console.log(s),s;case 3:return[2]}})})},exports.GetAppsecRoles=function(t){return e.__awaiter(void 0,void 0,void 0,function(){var r;return e.__generator(this,function(e){switch(e.label){case 0:return e.trys.push([0,2,,3]),[4,_.get("/roles?appid=".concat(t))];case 1:return[2,e.sent().data];case 2:throw r=e.sent(),console.error(r),r;case 3:return[2]}})})},exports.alterQuestionPriority=function(t,n,a,o,i){return e.__awaiter(void 0,void 0,void 0,function(){var s,u;return e.__generator(this,function(e){switch(e.label){case 0:return e.trys.push([0,2,,3]),s={scopeId:t,tierId:n,move:{movedRuleId:a,prevRuleId:o,nextRuleId:i}},[4,d.put(r.API_ENDPOINTS.alterRulePriority,s)];case 1:return[2,e.sent().data];case 2:throw u=e.sent(),console.error("Error altering question priority:",u),u;case 3:return[2]}})})},exports.appsecApi=_,exports.appsecApigetUser=g,exports.appsecGetUserGroups=function(t){return void 0===t&&(t={}),e.__awaiter(void 0,void 0,void 0,function(){var r,n,a,o,i,s,u,c,l,p,d,g,h,v,S,f;return e.__generator(this,function(e){switch(e.label){case 0:r=t.appId,n=void 0===r?"":r,a=t.name,o=void 0===a?"":a,i=t.user,s=void 0===i?"":i,u=t.isActive,c=void 0===u||u,l=t.page,p=void 0===l?1:l,d=t.limit,g=void 0===d?10:d,h=t.pagination,v=void 0===h||h,S=new URLSearchParams({appId:n,name:o,user:s,isActive:String(c),page:String(p),limit:String(g),pagination:String(v)}),e.label=1;case 1:return e.trys.push([1,3,,4]),[4,_.get("/groups?".concat(S.toString()))];case 2:return[2,e.sent().data];case 3:throw f=e.sent(),console.error("Failed to fetch user groups",f),f;case 4:return[2]}})})},exports.appsecGetUsersByQueryLite=function(t,r){return e.__awaiter(void 0,void 0,void 0,function(){var n,a,o,i,s,u,c,l,p,d,_,h,v,S,f,I,w;return e.__generator(this,function(e){switch(e.label){case 0:a=(n=r||{}).isPopulateRoles,o=void 0!==a&&a,i=n.isPopulatePermissions,s=void 0!==i&&i,u=n.isPopulateApps,c=void 0!==u&&u,l=n.isPopulateEnvironments,p=void 0!==l&&l,d=n.isPopulateOperations,_=void 0!==d&&d,h=n.isPopulateGroups,v=void 0!==h&&h,S=n.isPopulateOrganization,f=void 0!==S&&S,I=new URLSearchParams({search:t,isPopulateRoles:String(o),isPopulatePermissions:String(s),isPopulateApps:String(c),isPopulateEnvironments:String(p),isPopulateOperations:String(_),isPopulateGroups:String(v),isPopulateOrganization:String(f)}),e.label=1;case 1:return e.trys.push([1,3,,4]),[4,g.get("/api/user/get-by-query-v2?".concat(I.toString()))];case 2:return[2,e.sent().data];case 3:throw w=e.sent(),console.error("Failed to fetch users",w),w;case 4:return[2]}})})},exports.audacyApi=p,exports.createRuleSet=function(t,n){return e.__awaiter(void 0,void 0,void 0,function(){var a,i,s;return e.__generator(this,function(e){switch(e.label){case 0:return e.trys.push([0,2,,3]),a=o.useLearningTemplateStore.getState().backwardCompatibility,i=a?r.LEGACY_API_ENDPOINTS.createRuleSet:r.API_ENDPOINTS.createRuleSet,[4,h(n).post(i,t)];case 1:return[2,e.sent().data];case 2:throw s=e.sent(),console.error("Error creating rule set:",s),s;case 3:return[2]}})})},exports.default=d,exports.deleteQuestion=function(t){return e.__awaiter(void 0,void 0,void 0,function(){var n,a,i,s,u;return e.__generator(this,function(e){switch(e.label){case 0:n=o.useLearningTemplateStore.getState().backwardCompatibility,a=o.useLearningTemplateStore.getState().app_integration_id,i=o.useLearningTemplateStore.getState().token,e.label=1;case 1:return e.trys.push([1,6,,7]),n?(s=r.LEGACY_API_ENDPOINTS.deleteQuestion.replace("{questionId}",t),[4,d.delete(s)]):[3,3];case 2:return[2,e.sent().data];case 3:return s=r.API_ENDPOINTS.deleteQuestion.replace("{questionId}",t).replace("{appIntegrationId}",null!=a?a:""),[4,h(i).delete(s)];case 4:return[2,e.sent().data];case 5:return[3,7];case 6:throw u=e.sent(),console.error("Error deleting question:",u),u;case 7:return[2]}})})},exports.deleteRule=function(t){return e.__awaiter(void 0,void 0,void 0,function(){var n,a,i,s,u;return e.__generator(this,function(e){switch(e.label){case 0:n=o.useLearningTemplateStore.getState().backwardCompatibility,a=o.useLearningTemplateStore.getState().app_integration_id,i=o.useLearningTemplateStore.getState().token,e.label=1;case 1:return e.trys.push([1,6,,7]),n?(s=r.LEGACY_API_ENDPOINTS.deleteRule.replace("{ruleId}",t),[4,d.delete(s)]):[3,3];case 2:return[2,e.sent().data];case 3:return s=r.API_ENDPOINTS.deleteRule.replace("{ruleId}",t).replace("{appIntegrationId}",null!=a?a:""),[4,h(i).delete(s)];case 4:return[2,e.sent().data];case 5:return[3,7];case 6:throw u=e.sent(),console.error("Error deleting rule:",u),u;case 7:return[2]}})})},exports.deleteRuleSet=function(t,n){return e.__awaiter(void 0,void 0,void 0,function(){var a,i,s;return e.__generator(this,function(e){switch(e.label){case 0:a=o.useLearningTemplateStore.getState().backwardCompatibility,e.label=1;case 1:return e.trys.push([1,3,,4]),i=a?r.LEGACY_API_ENDPOINTS.deleteRuleSet.replace("{ruleSetId}",t):r.API_ENDPOINTS.deleteRuleSet.replace("{ruleSetId}",t),[4,h(n).delete(i)];case 2:return[2,e.sent().data];case 3:throw s=e.sent(),console.error("Error deleting rule set:",s),s;case 4:return[2]}})})},exports.deleteTier=function(t,n){return e.__awaiter(void 0,void 0,void 0,function(){var a,i,s,u,c;return e.__generator(this,function(e){switch(e.label){case 0:a=o.useLearningTemplateStore.getState().backwardCompatibility,i=o.useLearningTemplateStore.getState().app_integration_id,s=o.useLearningTemplateStore.getState().token,e.label=1;case 1:return e.trys.push([1,6,,7]),a?(u=r.LEGACY_API_ENDPOINTS.deleteTier.replace("{scopeId}",t).replace("{tierId}",n),[4,d.delete(u)]):[3,3];case 2:return[2,e.sent().data];case 3:return u=r.API_ENDPOINTS.deleteTier.replace("{scopeId}",t).replace("{tierId}",n).replace("{appIntegrationId}",null!=i?i:""),[4,h(s).delete(u)];case 4:return[2,e.sent().data];case 5:return[3,7];case 6:throw c=e.sent(),console.error("Error deleting tier:",c),c;case 7:return[2]}})})},exports.exportRuleSet=function(t){return e.__awaiter(void 0,void 0,void 0,function(){var n;return e.__generator(this,function(e){switch(e.label){case 0:if(!t)throw new Error("scopeId is required for exporting rule sets");e.label=1;case 1:return e.trys.push([1,3,,4]),[4,d.post(r.API_ENDPOINTS.exportRuleSet,{scope_id:t},{responseType:"blob"})];case 2:return[2,e.sent().data];case 3:throw n=e.sent(),console.error("Error exporting rule set:",n),n;case 4:return[2]}})})},exports.fetchRulesByQuestionId=function(t,n){return e.__awaiter(void 0,void 0,void 0,function(){var a,i,s,u,c;return e.__generator(this,function(e){switch(e.label){case 0:a=o.useLearningTemplateStore.getState().backwardCompatibility,i=o.useLearningTemplateStore.getState().app_integration_id,s=o.useLearningTemplateStore.getState().token,e.label=1;case 1:return e.trys.push([1,6,,7]),a?(u=r.LEGACY_API_ENDPOINTS.fetchRulesByQuestionId.replace("{questionId}",t).replace("{scopeId}",n),[4,d.get(u)]):[3,3];case 2:return[2,e.sent().data];case 3:return u=r.API_ENDPOINTS.fetchRulesByQuestionId.replace("{appIntegrationId}",null!=i?i:"").replace("{questionId}",t).replace("{scopeId}",n),[4,h(s).get(u)];case 4:return[2,e.sent().data];case 5:return[3,7];case 6:throw c=e.sent(),console.error("Error fetching rules by question id:",c),c;case 7:return[2]}})})},exports.fetchScopes=function(t,n){return e.__awaiter(void 0,void 0,void 0,function(){var a,i,s;return e.__generator(this,function(e){switch(e.label){case 0:a=o.useLearningTemplateStore.getState().backwardCompatibility,e.label=1;case 1:if(e.trys.push([1,3,,4]),!t&&!1===a)throw new Error("App Integration ID is not provided. Falling back to legacy endpoint for fetching scopes.");return i=a?r.LEGACY_API_ENDPOINTS.fetchScopes:"".concat(r.API_ENDPOINTS.fetchScopes,"/").concat(t),[4,h(n).get(i)];case 2:return[2,e.sent().data];case 3:throw s=e.sent(),console.error("Error fetching rule sets:",s),s;case 4:return[2]}})})},exports.fetchStationsByKeyword=function(t,n){return void 0===n&&(n=!1),e.__awaiter(void 0,void 0,void 0,function(){var a,o;return e.__generator(this,function(e){switch(e.label){case 0:return e.trys.push([0,2,,3]),a="".concat(r.API_ENDPOINTS.fetchStationsByKeyword.replace("{keyword}",t),"?allow_existing=").concat(n),[4,p.get(a)];case 1:return[2,e.sent().data];case 2:throw o=e.sent(),console.error("Error fetching station name by keyword:",o),o;case 3:return[2]}})})},exports.fetchTiers=function(){return e.__awaiter(void 0,void 0,void 0,function(){var t,n,a,s,u,c,l,p;return e.__generator(this,function(e){switch(e.label){case 0:t=o.useLearningTemplateStore.getState().backwardCompatibility,n=o.useLearningTemplateStore.getState().app_integration_id,a=o.useLearningTemplateStore.getState().token,e.label=1;case 1:return e.trys.push([1,6,,7]),t?(s=i.IL_CONFIG_CONSTANTS.CUSTOM_SCOPE_GROUP_NAME,[4,h(a).post(r.LEGACY_API_ENDPOINTS.getTiers,{tier_group_name:s})]):[3,3];case 2:return u=e.sent(),o.useLearningTemplateStore.getState().setTiers((null===(l=u.data)||void 0===l?void 0:l.response)||[]),[3,5];case 3:return[4,h(a).get(r.API_ENDPOINTS.getTiers.replace("{appIntegrationId}",null!=n?n:""))];case 4:u=e.sent(),"success"===(null===(p=u.data)||void 0===p?void 0:p.status)&&o.useLearningTemplateStore.getState().setTiers(u.data.data.map(function(e){return{tier_id:e.id,tier_name:e.name,tier_priority:e.tier_priority}})),e.label=5;case 5:return[3,7];case 6:throw c=e.sent(),console.error("Error fetching tiers:",c),c;case 7:return[2]}})})},exports.getRuleOverrideHistory=function(t){return e.__awaiter(void 0,void 0,void 0,function(){var n,a;return e.__generator(this,function(e){switch(e.label){case 0:return e.trys.push([0,2,,3]),n="".concat(r.API_ENDPOINTS.getRuleOverrideHistory,"/").concat(t),[4,d.get(n)];case 1:return[2,e.sent().data];case 2:throw a=e.sent(),console.error("Error getting rule override history:",a),a;case 3:return[2]}})})},exports.getRulesInRuleSetById=function(t,n){return e.__awaiter(void 0,void 0,void 0,function(){var a,i,s;return e.__generator(this,function(e){switch(e.label){case 0:a=o.useLearningTemplateStore.getState().backwardCompatibility,e.label=1;case 1:return e.trys.push([1,3,,4]),i=a?"".concat(r.LEGACY_API_ENDPOINTS.getRulesInRuleSetById,"/").concat(t,"?include_config=True&sort_variant_by=createdAt"):"".concat(r.API_ENDPOINTS.getRulesInRuleSetById,"/").concat(t),[4,h(n).get(i)];case 2:return[2,e.sent().data];case 3:return s=e.sent(),console.error("Error fetching rules in rule set:",s),[3,4];case 4:return[2]}})})},exports.getStationsByScopeId=function(t){return e.__awaiter(void 0,void 0,void 0,function(){return e.__generator(this,function(e){return[2,new Promise(function(e){setTimeout(function(){e({data:[{stationId:"reetrtdfsds",stationName:"Hot 98.7",stationDesc:"Learnings that apply for Hot 98.7 Station",learningsCount:5},{stationId:"sta-102",stationName:"Smooth Jazz 102.1",stationDesc:"Learnings that apply for Smooth Jazz 102.1 Station",learningsCount:12},{stationId:"sta-103",stationName:"Rock 94",stationDesc:"Learnings that apply for Rock 94 Station",learningsCount:8}]})},500)})]})})},exports.inheritScope=function(t){return e.__awaiter(void 0,void 0,void 0,function(){var n;return e.__generator(this,function(e){switch(e.label){case 0:return e.trys.push([0,4,,5]),(null==t?void 0:t.application_mapping_id)?[4,d.post(r.API_ENDPOINTS.inheritScope,t)]:[3,2];case 1:return[2,e.sent().data];case 2:throw Error("Fatal Error: Trying to call inherit API without appintegration ID");case 3:return[3,5];case 4:throw n=e.sent(),console.error("Error inheriting scope:",n),n;case 5:return[2]}})})},exports.inheritScopeBackwardCompatible=function(t){return e.__awaiter(void 0,void 0,void 0,function(){var n;return e.__generator(this,function(e){switch(e.label){case 0:return e.trys.push([0,2,,3]),[4,d.post(r.LEGACY_API_ENDPOINTS.inheritScope,t)];case 1:return[2,e.sent().data];case 2:throw n=e.sent(),console.error("Error inheriting scope:",n),n;case 3:return[2]}})})},exports.llmApiWithToken=h,exports.publishFeedback=function(t,n){return e.__awaiter(void 0,void 0,void 0,function(){var n,a,i;return e.__generator(this,function(e){switch(e.label){case 0:n=o.useLearningTemplateStore.getState().backwardCompatibility,e.label=1;case 1:return e.trys.push([1,3,,4]),a=n?r.LEGACY_API_ENDPOINTS.publishFeedback:"".concat(r.API_ENDPOINTS.publishFeedback),[4,d.post(a,t)];case 2:return[2,e.sent().data];case 3:throw i=e.sent(),console.error("Error publishing feedback to LLM Studio:",i),i;case 4:return[2]}})})},exports.renameScope=function(t){return e.__awaiter(void 0,void 0,void 0,function(){var n,a;return e.__generator(this,function(e){switch(e.label){case 0:return e.trys.push([0,2,,3]),n="".concat(r.API_ENDPOINTS.renameScope),[4,d.put(n,t)];case 1:return[2,e.sent().data];case 2:throw a=e.sent(),console.error("Error renaming scope:",a),a;case 3:return[2]}})})},exports.retrieveGenreScopes=function(t){return void 0===t&&(t={limit:"50",offset:"0"}),e.__awaiter(void 0,void 0,void 0,function(){var n;return e.__generator(this,function(e){switch(e.label){case 0:return e.trys.push([0,2,,3]),[4,d.post(r.API_ENDPOINTS.retrieveGenreScopes,t)];case 1:return[2,e.sent().data];case 2:throw n=e.sent(),console.error("Error retrieving genre scopes:",n),n;case 3:return[2]}})})},exports.saveInstantLearningQuestion=function(t){return e.__awaiter(void 0,void 0,void 0,function(){var n;return e.__generator(this,function(e){switch(e.label){case 0:return e.trys.push([0,2,,3]),[4,d.post(r.API_ENDPOINTS.saveInstantLearningQuestion,t)];case 1:return[2,e.sent().data];case 2:throw n=e.sent(),console.error("Error saving instant learning question:",n),n;case 3:return[2]}})})},exports.searchScopes=function(t){return e.__awaiter(void 0,void 0,void 0,function(){var n;return e.__generator(this,function(e){switch(e.label){case 0:return e.trys.push([0,2,,3]),[4,d.post(r.API_ENDPOINTS.searchScopes,t)];case 1:return[2,e.sent().data];case 2:throw n=e.sent(),console.error("Error searching scopes:",n),n;case 3:return[2]}})})},exports.submitChatFeedback=function(t){return e.__awaiter(void 0,void 0,void 0,function(){var n;return e.__generator(this,function(e){switch(e.label){case 0:return e.trys.push([0,2,,3]),[4,d.post(r.API_ENDPOINTS.submitChatFeedback,t)];case 1:return[2,e.sent().data];case 2:throw n=e.sent(),console.error("Error submitting chat feedback:",n),n;case 3:return[2]}})})},exports.toggleVariant=function(t,n,a){return e.__awaiter(void 0,void 0,void 0,function(){var a,i,s,u;return e.__generator(this,function(e){switch(e.label){case 0:a=o.useLearningTemplateStore.getState().backwardCompatibility,i=o.useLearningTemplateStore.getState().app_integration_id,s=o.useLearningTemplateStore.getState().token,e.label=1;case 1:return e.trys.push([1,6,,7]),a?[4,h(s).patch(r.LEGACY_API_ENDPOINTS.toggleVariant,{variant_ids:t,is_enabled:n})]:[3,3];case 2:return[2,e.sent().data];case 3:return[4,h(s).patch(r.API_ENDPOINTS.toggleVariant,{variant_ids:t,application_mapping_id:i,is_enabled:n})];case 4:return[2,e.sent().data];case 5:return[3,7];case 6:throw u=e.sent(),console.error("Error toggling variant status:",u),u;case 7:return[2]}})})},exports.updateStation=function(t){return e.__awaiter(void 0,void 0,void 0,function(){var n;return e.__generator(this,function(e){switch(e.label){case 0:return e.trys.push([0,2,,3]),[4,p.post(r.API_ENDPOINTS.updateStation,t)];case 1:return[2,e.sent().data];case 2:throw n=e.sent(),console.error("Error updating station:",n),n;case 3:return[2]}})})},exports.updateVariant=function(t,n){return e.__awaiter(void 0,void 0,void 0,function(){var n;return e.__generator(this,function(e){switch(e.label){case 0:return e.trys.push([0,2,,3]),[4,d.put(r.API_ENDPOINTS.updateVariant,t)];case 1:return[2,e.sent().data];case 2:throw n=e.sent(),console.error("Error updating variant:",n),n;case 3:return[2]}})})};
|
|
2
2
|
//# sourceMappingURL=scopeApis.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),s=require("react/jsx-runtime"),a=require("react"),l=require("lucide-react"),i=require("../styles/CreateLearningSetModal.module.css.js");exports.default=function(n){var
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),s=require("react/jsx-runtime"),a=require("react"),l=require("lucide-react"),i=require("../styles/CreateLearningSetModal.module.css.js");exports.default=function(n){var r=n.isOpen,t=n.onClose,c=n.onSubmit,d=n.title,u=n.description,o=n.inputLabel,_=n.submitLabel,f=n.placeholder,m=void 0===f?"":f,g=n.initialValue,h=void 0===g?"":g,v=n.isLoading,x=void 0!==v&&v,j=a.useState(""),p=j[0],b=j[1],N=a.useState(null),C=N[0],q=N[1];if(a.useEffect(function(){r&&(b(h),q(null))},[r,h]),!r)return null;return s.jsx("div",e.__assign({className:i.default.overlay},{children:s.jsxs("div",e.__assign({className:i.default.modal},{children:[s.jsxs("div",e.__assign({className:i.default.header},{children:[s.jsxs("div",e.__assign({className:i.default.headerContent},{children:[s.jsx("h2",e.__assign({className:i.default.title},{children:d})),u&&s.jsx("p",e.__assign({className:i.default.description},{children:u}))]})),s.jsx("button",e.__assign({onClick:t,className:i.default.closeBtn,disabled:x},{children:s.jsx(l.X,{size:24})}))]})),s.jsx("div",e.__assign({className:i.default.form},{children:s.jsxs("div",e.__assign({className:i.default.formGroup},{children:[s.jsxs("label",e.__assign({className:i.default.label},{children:[s.jsx("span",e.__assign({className:i.default.asterisk},{children:"*"})),o]})),s.jsx("input",{type:"text",value:p,onChange:function(e){var s=e.target.value;if(s.length>50)return b(s.slice(0,50)),void q("Maximum 50 characters allowed");b(s),C&&q(null)},className:"".concat(i.default.inputField," ").concat(C?i.default.inputError:""),placeholder:m,disabled:x}),C&&s.jsx("p",e.__assign({className:i.default.errorMessage},{children:C}))]}))})),s.jsxs("div",e.__assign({className:i.default.footer},{children:[s.jsx("button",e.__assign({onClick:t,className:i.default.cancelBtn,disabled:x},{children:"Cancel"})),s.jsx("button",e.__assign({onClick:function(){return e.__awaiter(void 0,void 0,void 0,function(){var s;return e.__generator(this,function(e){switch(e.label){case 0:if(!(p.trim()?(q(null),1):(q("".concat(o.replace("*","").trim()," is required")),0)))return[2];e.label=1;case 1:return e.trys.push([1,3,,4]),[4,c(p)];case 2:return e.sent(),t(),[3,4];case 3:return s=e.sent(),q((null==s?void 0:s.message)||"An error occurred. Please try again."),[3,4];case 4:return[2]}})})},className:i.default.confirmBtn,disabled:x},{children:x?s.jsxs(s.Fragment,{children:[s.jsx(l.Loader2,{className:i.default.spinner}),"Save"===_?"Saving...":"Creating..."]}):_}))]}))]}))}))};
|
|
2
2
|
//# sourceMappingURL=CreateLearningSetModal.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),s=require("react/jsx-runtime"),a=require("lucide-react"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),s=require("react/jsx-runtime"),a=require("lucide-react"),i=require("../styles/EmptyRuleState.module.css.js");exports.default=function(n){var c=n.onCreate,t=n.title,l=n.desc,d=n.button,r=n.canCreateRule;return s.jsx("div",e.__assign({className:i.default.container},{children:s.jsxs("div",e.__assign({className:i.default.card},{children:[s.jsxs("div",e.__assign({className:i.default.iconContainer},{children:[s.jsxs("div",e.__assign({className:i.default.iconLines},{children:[s.jsx("div",{className:"".concat(i.default.iconLine," ").concat(i.default.iconLineLong)}),s.jsx("div",{className:"".concat(i.default.iconLine," ").concat(i.default.iconLineLong)}),s.jsx("div",{className:"".concat(i.default.iconLine," ").concat(i.default.iconLineShort)})]})),s.jsx("div",e.__assign({className:i.default.iconBadge},{children:s.jsx(a.Plus,{size:22})}))]})),s.jsx("h2",e.__assign({className:i.default.title},{children:t})),s.jsx("p",e.__assign({className:i.default.description},{children:l})),s.jsxs("button",e.__assign({onClick:c,className:i.default.createButton,disabled:!r},{children:[s.jsx(a.Plus,{size:16}),d]}))]}))}))};
|
|
2
2
|
//# sourceMappingURL=EmptyLearningState.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),r=require("@tanstack/react-query"),t=require("../apis/scopeApis.js"),n=require("../store/useEnvStore.js");exports.useApproveOrRejectVariantsMutation=function(){return r.useMutation({mutationFn:function(e){var r=e.variantIds,n=e.status,u=e.feedback,a=e.scopeId
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),r=require("@tanstack/react-query"),t=require("../apis/scopeApis.js"),n=require("../store/useEnvStore.js");exports.useApproveOrRejectVariantsMutation=function(){return r.useMutation({mutationFn:function(e){var r=e.variantIds,n=e.status,u=e.feedback,a=e.scopeId;return t.ApproveOrRejectVariants({variant_ids:r,status:n,feedback:u,scopeId:a})}})},exports.useApproverSearchQuery=function(n){var u=this;return r.useQuery({queryKey:["approver-search",n],queryFn:function(){return e.__awaiter(u,void 0,void 0,function(){var r;return e.__generator(this,function(e){switch(e.label){case 0:return[4,t.appsecGetUsersByQueryLite(n)];case 1:return[2,(null==(r=e.sent())?void 0:r.data)||[]]}})})},enabled:!!n.trim(),staleTime:3e4})},exports.useGetAppSecRolesQuery=function(n,u){var a=this;return void 0===u&&(u=!0),r.useQuery({queryKey:["appsec-roles",n],queryFn:function(){return e.__awaiter(a,void 0,void 0,function(){return e.__generator(this,function(e){switch(e.label){case 0:return[4,t.GetAppsecRoles(n)];case 1:return[2,e.sent().data]}})})},enabled:u&&!!n,staleTime:1e5})},exports.useGroupSearchQuery=function(u){var a=this,s=n.default(function(e){var r;return null===(r=e.rbacConfig)||void 0===r?void 0:r.applicationId});return r.useQuery({queryKey:["group-search",s,u],queryFn:function(){return e.__awaiter(a,void 0,void 0,function(){return e.__generator(this,function(e){switch(e.label){case 0:return[4,t.appsecGetUserGroups({appId:s,name:u})];case 1:return[2,e.sent().data]}})})},enabled:!!s,staleTime:3e4})};
|
|
2
2
|
//# sourceMappingURL=useApprovalQueries.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),r=require("zustand"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),r=require("zustand"),i=require("../apis/scopeApis.js"),n=require("./useLearningTemplateStore.js"),t=r.create(function(r,t){return{accessData:[],isLoading:!1,error:null,fetchPermissions:function(n,t){return e.__awaiter(void 0,void 0,void 0,function(){var s,o,a;return e.__generator(this,function(e){switch(e.label){case 0:if(!n)return[2];r({isLoading:!0,error:null}),e.label=1;case 1:return e.trys.push([1,3,,4]),[4,i.appsecApi.get("/users/me",{params:{appId:n,resourceId:t}})];case 2:return s=e.sent(),r({accessData:(null===(a=s.data)||void 0===a?void 0:a.data)||[],isLoading:!1}),[3,4];case 3:return o=e.sent(),console.error("Failed to fetch permissions:",o),r({error:o.message||"Failed to fetch permissions",isLoading:!1}),[3,4];case 4:return[2]}})})},hasPermission:function(e,r){var i,s,o;if(!n.useLearningTemplateStore.getState().backwardCompatibility)return!0;var a=t().accessData.find(function(e){return function(e,r){return!!r&&function(e){return e?"string"==typeof e?[e]:[e._id,e.id,e.resourceId,e.resource_id].filter(function(e){return"string"==typeof e&&e.length>0}):[]}(e).includes(r)}(e.resourceId,r)});return!!a&&(null!==(o=null===(s=null===(i=a.role)||void 0===i?void 0:i.permissions)||void 0===s?void 0:s.some(function(r){return r.name===e}))&&void 0!==o&&o)},hasGlobalPermission:function(e){return!n.useLearningTemplateStore.getState().backwardCompatibility||t().accessData.some(function(r){var i,n;return null===(n=null===(i=r.role)||void 0===i?void 0:i.permissions)||void 0===n?void 0:n.some(function(r){return r.name===e})})},reset:function(){return r({accessData:[],isLoading:!1,error:null})}}});exports.usePermissionsStore=t;
|
|
2
2
|
//# sourceMappingURL=usePermissionsStore.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});require("../../../node_modules/style-inject/dist/style-inject.es.js").default(".EmptyRuleState-module_container__DD8ZC{align-items:center;display:flex;flex:1;flex-direction:column;justify-content:center;padding:2.5rem}.EmptyRuleState-module_card__2-kb8{align-items:center;background-color:#fff;border:1px solid #f3f4f6;border-radius:1rem;box-shadow:0 4px 30px #00000008;display:flex;flex-direction:column;max-width:600px;padding:4rem 2.5rem;text-align:center;width:100%}.EmptyRuleState-module_iconContainer__2Mep-{align-items:center;background-color:#f9fafb;border-radius:9999px;display:flex;height:5rem;justify-content:center;margin-bottom:1.5rem;position:relative;width:5rem}.EmptyRuleState-module_iconLines__-G9Us{display:flex;flex-direction:column;gap:.375rem;opacity:.2;transform:scale(1.1)}.EmptyRuleState-module_iconLine__v1Xs7{background-color:#60a5fa;border-radius:9999px;height:.375rem}.EmptyRuleState-module_iconLineLong__7I0wU{width:2.5rem}.EmptyRuleState-module_iconLineShort__R3ArP{width:1.75rem}.EmptyRuleState-module_iconBadge__YY28J{background-color:#fff;border:1px solid #f9fafb;border-radius:9999px;bottom:-.25rem;box-shadow:0 1px 2px 0 #0000000d;padding:.375rem;position:absolute;right:-.25rem}.EmptyRuleState-module_iconBadge__YY28J svg{color:#d1d5db}.EmptyRuleState-module_title__qk36r{color:#111827;font-size:1.125rem;font-weight:700;margin-bottom:.5rem}.EmptyRuleState-module_description__XButJ{color:#6b7280;font-size:.875rem;margin-bottom:2rem}.EmptyRuleState-module_createButton__GM3ug{align-items:center;background-color:#2563eb;border:none;border-radius:.375rem;box-shadow:0 1px 2px 0 #0000000d;color:#fff;cursor:pointer;display:flex;font-size:.875rem;font-weight:500;gap:.5rem;padding:.625rem 1.5rem;transition:background-color .2s,box-shadow .2s}.EmptyRuleState-module_createButton__GM3ug:hover{background-color:#1d4ed8;box-shadow:0 4px 6px -1px #0000001a}
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});require("../../../node_modules/style-inject/dist/style-inject.es.js").default(".EmptyRuleState-module_container__DD8ZC{align-items:center;display:flex;flex:1;flex-direction:column;justify-content:center;padding:2.5rem}.EmptyRuleState-module_card__2-kb8{align-items:center;background-color:#fff;border:1px solid #f3f4f6;border-radius:1rem;box-shadow:0 4px 30px #00000008;display:flex;flex-direction:column;max-width:600px;padding:4rem 2.5rem;text-align:center;width:100%}.EmptyRuleState-module_iconContainer__2Mep-{align-items:center;background-color:#f9fafb;border-radius:9999px;display:flex;height:5rem;justify-content:center;margin-bottom:1.5rem;position:relative;width:5rem}.EmptyRuleState-module_iconLines__-G9Us{display:flex;flex-direction:column;gap:.375rem;opacity:.2;transform:scale(1.1)}.EmptyRuleState-module_iconLine__v1Xs7{background-color:#60a5fa;border-radius:9999px;height:.375rem}.EmptyRuleState-module_iconLineLong__7I0wU{width:2.5rem}.EmptyRuleState-module_iconLineShort__R3ArP{width:1.75rem}.EmptyRuleState-module_iconBadge__YY28J{background-color:#fff;border:1px solid #f9fafb;border-radius:9999px;bottom:-.25rem;box-shadow:0 1px 2px 0 #0000000d;padding:.375rem;position:absolute;right:-.25rem}.EmptyRuleState-module_iconBadge__YY28J svg{color:#d1d5db}.EmptyRuleState-module_title__qk36r{color:#111827;font-size:1.125rem;font-weight:700;margin-bottom:.5rem}.EmptyRuleState-module_description__XButJ{color:#6b7280;font-size:.875rem;margin-bottom:2rem}.EmptyRuleState-module_createButton__GM3ug{align-items:center;background-color:#2563eb;border:none;border-radius:.375rem;box-shadow:0 1px 2px 0 #0000000d;color:#fff;cursor:pointer;display:flex;font-size:.875rem;font-weight:500;gap:.5rem;padding:.625rem 1.5rem;transition:background-color .2s,box-shadow .2s}.EmptyRuleState-module_createButton__GM3ug:hover{background-color:#1d4ed8;box-shadow:0 4px 6px -1px #0000001a}"),exports.default={container:"EmptyRuleState-module_container__DD8ZC",card:"EmptyRuleState-module_card__2-kb8",iconContainer:"EmptyRuleState-module_iconContainer__2Mep-",iconLines:"EmptyRuleState-module_iconLines__-G9Us",iconLine:"EmptyRuleState-module_iconLine__v1Xs7",iconLineLong:"EmptyRuleState-module_iconLineLong__7I0wU",iconLineShort:"EmptyRuleState-module_iconLineShort__R3ArP",iconBadge:"EmptyRuleState-module_iconBadge__YY28J",title:"EmptyRuleState-module_title__qk36r",description:"EmptyRuleState-module_description__XButJ",createButton:"EmptyRuleState-module_createButton__GM3ug"};
|
|
2
2
|
//# sourceMappingURL=EmptyRuleState.module.css.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{__assign as e,__awaiter as t,__generator as n}from"tslib";import{jsx as r,jsxs as o,Fragment as a}from"react/jsx-runtime";import{useState as i,useRef as s,useEffect as l}from"react";import{BookOpen as c,Users as u}from"lucide-react";import{useLearningTemplateStore as d}from"./store/useLearningTemplateStore.js";import{Toast as p}from"primereact/toast";import m from"./styles/LearningTemplateManagement.module.css.js";import f from"./LearningTemplateLayout.js";import v from"./components/EmptyLearningState.js";import g from"./store/useAuthStore.js";import{fetchTiers as h,fetchScopes as S,inheritScope as y,inheritScopeBackwardCompatible as b,createRuleSet as C,renameScope as T,updateStation as A,deleteRuleSet as L}from"./apis/scopeApis.js";import w from"./components/ConfirmationModal.js";import I from"./components/LearningTemplateManagementSkeleton.js";import{findNodePathById as O}from"./utils/treeUtils.js";import E from"./store/useEnvStore.js";import{useConfigStore as R}from"./store/useConfigStore.js";import{TooltipProvider as _}from"./components/ToolTip.js";import j from"./components/CreateRuleSetLegacyModal.js";import{usePermissionsStore as D}from"./store/usePermissionsStore.js";import{useAppSecRolesStore as k}from"./store/useAppSecRolesStore.js";import{useGetAppSecRolesQuery as N}from"./queries/useApprovalQueries.js";import G from"./RuleContent/AddScopeModal.js";import{useLocation as P}from"react-router-dom";var B=[{id:"learnings",label:"Learnings",icon:c,badgeKey:"learningsCount"},{id:"access",label:"Access",icon:u}],U=[{type:"GLOBAL",label:"Global",addChildLabel:"Add Scope",addChildType:"SCOPE"},{type:"SCOPE",label:"Scope",addChildLabel:"Add Subscope",addChildType:"SUBSCOPE"},{type:"SUBSCOPE",label:"Subscope"}];function M(c){var u,M=this,F=c.userDetails,q=c.llmStudioUrl,x=c.audacyBackendUrl,H=c.ilLabels,K=c.config,Q=c.rbacConfig,V=c.app_integration_id,W=c.backwardCompatibility,Y=void 0!==W&&W,z=d(function(e){return e.selectedRuleSetId}),J=d(function(e){return e.setSelectedRuleSetId}),X=d(function(e){return e.error}),Z=d(function(e){return e.setError}),$=d(function(e){return e.setStations}),ee=d(function(e){return e.scopeTreeData}),te=d(function(e){return e.setScopeTreeData}),ne=i({isOpen:!1,type:"GLOBAL"}),re=ne[0],oe=ne[1],ae=i(!1),ie=ae[0],se=ae[1],le=i(!1),ce=le[0],ue=le[1],de=i("learnings"),pe=de[0],me=de[1],fe=i(null),ve=fe[0],ge=fe[1],he=s(null),Se=s(null),ye=s(null),be=g();be.user;var Ce=be.setUser,Te=R(),Ae=Te.setConfig,Le=Te.setIlLabels,we=function(){try{return P()}catch(e){return{search:""}}}();l(function(){var e=new URLSearchParams(window.location.search).get("rulesetid");(null==e?void 0:e.length)&&J&&me&&(J(e),me("learnings"))},[null==we?void 0:we.search,me,J]);var Ie=D(function(e){return e.fetchPermissions}),Oe=D(function(e){return e.hasPermission}),Ee=k(function(e){return e.setRoles}),Re=E(function(e){return e.appsecRbacUrl})===Q.appsecRbacUrl,_e=N(Q.applicationId,Re).data;l(function(){_e&&Ee(_e.map(function(e){return{_id:e._id,name:e.name}}))},[_e,Ee]),l(function(){var e;console.log("userDetails",F),Ce(F),console.log("llmStudioUrl",q),console.log("audacyBackendUrl",x),E.getState().setLlmStudioUrl(q),E.getState().setAudacyBackendUrl(x),E.getState().setRbacConfig(Q),Ae(K),Le(H),d.getState().setAppIntegrationId(null!=V?V:null),d.getState().setBackwardCompatibility(Y),d.getState().setToken(null!==(e=F.accessToken)&&void 0!==e?e:null)},[F,Ce,q,x,Q,K,Ae,H,Le,V,Y]),l(function(){(null==F?void 0:F.accessToken)&&q&&h()},[V,null==F?void 0:F.accessToken,q]);var je=function(r){return void 0===r&&(r=!0),t(M,void 0,void 0,function(){var t,o,a,i,s;return n(this,function(n){switch(n.label){case 0:r&&se(!0),Z(null),n.label=1;case 1:return n.trys.push([1,4,5,6]),[4,Ie(Q.applicationId)];case 2:return n.sent(),t=function(n){if(!D.getState().hasPermission("ilotj.scope.view",n.id))return null;var r=n.children?n.children.map(function(e){return t(e)}).filter(function(e){return null!==e}):[];return e(e({},n),{children:r})},[4,S(V,F.accessToken)];case 3:return(o=n.sent())&&o.data&&o.data.data&&(a=o.data.data,Array.isArray(a)&&(a=a.length>0?a[0]:null),a&&(i=t(a))?(te({data:i}),Se.current?(J(Se.current),me("learnings"),Se.current=null):d.getState().selectedRuleSetId||J(i.id)):te(null)),[3,6];case 4:return s=n.sent(),console.error("Failed to fetch rule sets or permissions",s),Z("Failed to load data. Please try again later."),[3,6];case 5:return se(!1),[7];case 6:return[2]}})})};l(function(){var e;(null===(e=null==F?void 0:F.accessToken)||void 0===e?void 0:e.length)&&Re?je(!0):console.warn("Error: Trying to fetch rules without access token",F)},[null==F?void 0:F.accessToken,Z,$,Q.applicationId,Re]);var De=function(r,o,a){return t(M,void 0,void 0,function(){var t,i,s,l,c,u,p,m,f;return n(this,function(n){switch(n.label){case 0:ue(!0),n.label=1;case 1:return n.trys.push([1,8,9,10]),[4,L(r,F.accessToken)];case 2:if(n.sent(),d.getState().selectedRuleSetId===r&&(t=d.getState().scopeTreeData,(i=O((null==t?void 0:t.data)||null,r))&&i.length>1&&(s=i[i.length-2],J(s),me("learnings"))),!a||!o)return[3,6];n.label=3;case 3:return n.trys.push([3,5,,6]),[4,A({station_name:o,ruleset_id:""})];case 4:return n.sent(),[3,6];case 5:return l=n.sent(),console.error("Error unlinking station on subscope delete:",l),[3,6];case 6:return[4,je(!0)];case 7:return n.sent(),oe(function(t){return e(e({},t),{isOpen:!1})}),null===(u=ye.current)||void 0===u||u.show({severity:"success",summary:"Deleted Successfully",detail:"The scope was permanently removed."}),[3,10];case 8:return c=n.sent(),console.error("An error occurred during scope deletion.",c),null===(p=ye.current)||void 0===p||p.show({severity:"error",summary:"Delete Failed",detail:(null===(f=null===(m=null==c?void 0:c.response)||void 0===m?void 0:m.data)||void 0===f?void 0:f.message)||"There was an error deleting the scope. Please try again."}),[3,10];case 9:return ue(!1),[7];case 10:return[2]}})})},ke=ee,Ne=ve?{data:{id:ve.stationId,name:ve.stationName,type:"STATION",metrics:{learningsCount:ve.learningsCount,stationsCount:0},children:[]}}:ke,Ge=!!(null==Ne?void 0:Ne.data);null===(u=null==Ne?void 0:Ne.data)||void 0===u||u.type;var Pe=D(function(e){return e.hasGlobalPermission})("ilotj.scope.global.create",Q.applicationResourceId||""),Be=ve?B.filter(function(e){return"stations"!==e.id}):B;return r(_,{children:o("div",e({className:m.learningManagementContainer},{children:[r("div",e({className:m.mainWrapper},{children:ie?r(I,{}):X?o("div",e({className:m.errorContainer},{children:[r("div",e({className:m.errorTitle},{children:"Error Loading Data"})),r("p",e({className:m.errorDesc},{children:X})),r("button",e({onClick:function(){return je(!0)},className:m.tryAgainBtn},{children:"Try Again"}))]})):Ge?r(f,{onOpenCreateModal:function(){return oe({isOpen:!0,type:"GLOBAL"})},onAddChild:function(e,t,n){return oe({isOpen:!0,type:t,parentId:e,parentName:n})},onRenameChild:function(e,t){return oe({isOpen:!0,type:"RENAME",scopeId:e,initialName:t})},onDeleteChild:function(e,r,o){return t(M,void 0,void 0,function(){var t,a,i;return n(this,function(n){switch(n.label){case 0:return t=d.getState().scopeTreeData,a=O((null==t?void 0:t.data)||null,e),i=!!a&&3===a.length,0!==o?[3,2]:[4,De(e,r,i)];case 1:return n.sent(),[3,3];case 2:oe({isOpen:!0,type:"DELETE",scopeId:e,initialName:r,isSubscope:i}),n.label=3;case 3:return[2]}})})},canDeleteScope:function(e){return Oe("ilotj.scope.delete",e)},canEditScope:function(e){return Oe("ilotj.scope.edit",e)},canCreateScope:function(e){return Oe("ilotj.scope.create",e)},onSectionSelect:function(e,t){console.log("Section Selected:",{scopeId:e,sectionId:t}),me(t),J(e)},activeSectionId:pe,scopeTreeData:Ne,sectionsConfig:Be,onViewStation:function(e){he.current=z,ge(e),me("learnings"),J(e.stationId)},onRefreshRuleSets:function(e,t){void 0===e&&(e=!0),t&&(Se.current=t),je(e)},nodeTypesConfig:U,app_integration_id:V,token:F.accessToken}):r(v,{onCreate:function(){return oe({isOpen:!0,type:"GLOBAL"})},title:"No Global Scope has been added!",desc:"Start by creating a Global scope to define base learnings that apply across all stations.",button:"Create Global Scope",canCreateRule:Pe,noAccessTitle:"Access Restricted",noAccessDesc:"You do not have access to create a Global scope for this application.",onRequestAccess:function(){var e;null===(e=ye.current)||void 0===e||e.show({severity:"info",summary:"Access Required",detail:"Request access to create a Global scope for this application."})}})})),r(p,{ref:ye}),Y&&re.isOpen&&"DELETE"!==re.type&&"RENAME"!==re.type?r(j,{isOpen:!0,onClose:function(){return oe(e(e({},re),{isOpen:!1}))},onSubmit:function(r){return t(M,void 0,void 0,function(){var t,o,a,i,s,l,c,u,p,m,f,v,g,h,S,T,A,L,w,I;return n(this,function(n){switch(n.label){case 0:ue(!0),t=d.getState().backwardCompatibility,n.label=1;case 1:return n.trys.push([1,12,13,14]),o=void 0,t&&"object"==typeof r?o=r:(a=r,i="SCOPE"===re.type&&re.parentId,s=i?"genreRuleSet":re.type,o={topic:s,scope_reference_id:null,scopeDescription:"demo",parentScopeId:re.parentId||null,scopeName:a,scopeReferenceMetadata:{},applicationMappingId:V}),[4,C(o,F.accessToken)];case 2:if(l=n.sent(),!(c=null===(h=null==l?void 0:l.data)||void 0===h?void 0:h.scopeId))return[3,10];if(Se.current=c,u=t&&(null===(S=o.topic)||void 0===S?void 0:S.toLowerCase().includes("genre")),p=!t&&"GLOBAL"!==re.type&&re.parentId,!u&&!p)return[3,10];if(!(m=t?null===(A=null===(T=d.getState().scopeTreeData)||void 0===T?void 0:T.data)||void 0===A?void 0:A.id:re.parentId))return[3,10];if(!Y)return[3,7];n.label=3;case 3:return n.trys.push([3,5,,6]),[4,b({source_scope_id:m,target_scope_id:c})];case 4:return n.sent(),[3,6];case 5:return f=n.sent(),console.error("Failed to inherit rules for the new scope:",f),[3,6];case 6:return[3,10];case 7:return n.trys.push([7,9,,10]),[4,y({source_scope_id:m,target_scope_id:c,application_mapping_id:V||"",is_copy_parent_variant_id:!1})];case 8:return n.sent(),[3,10];case 9:return v=n.sent(),console.error("Failed to inherit rules for the new scope:",v),[3,10];case 10:return[4,je(!0)];case 11:return n.sent(),oe(function(t){return e(e({},t),{isOpen:!1})}),[3,14];case 12:throw g=n.sent(),console.error("An error occurred during scope creation.",g),null===(L=ye.current)||void 0===L||L.show({severity:"error",summary:"Creation Failed",detail:(null===(I=null===(w=null==g?void 0:g.response)||void 0===w?void 0:w.data)||void 0===I?void 0:I.message)||"There was an error creating the scope. Please try again."}),g;case 13:return ue(!1),[7];case 14:return[2]}})})},hasGlobalRuleSet:Ge,canCreateGlobal:Pe}):r(G,{isOpen:re.isOpen&&"DELETE"!==re.type,onClose:function(){return oe(e(e({},re),{isOpen:!1}))},onCreate:function(r){return o=null!=r?r:"",t(M,void 0,void 0,function(){var t,r,a,i;return n(this,function(n){switch(n.label){case 0:ue(!0),n.label=1;case 1:return n.trys.push([1,4,5,6]),re.scopeId?[4,T({scope_id:re.scopeId,scope_name:o})]:[2];case 2:return n.sent(),[4,je(!0)];case 3:return n.sent(),oe(function(t){return e(e({},t),{isOpen:!1})}),[3,6];case 4:throw t=n.sent(),console.error("An error occurred during scope rename.",t),null===(r=ye.current)||void 0===r||r.show({severity:"error",summary:"Rename Failed",detail:(null===(i=null===(a=null==t?void 0:t.response)||void 0===a?void 0:a.data)||void 0===i?void 0:i.message)||"There was an error renaming the scope. Please try again."}),t;case 5:return ue(!1),[7];case 6:return[2]}})});var o},hasGlobalRuleSet:Ge}),r(w,{isOpen:re.isOpen&&"DELETE"===re.type,onCancel:function(){return oe(e(e({},re),{isOpen:!1}))},onConfirm:function(){return De(re.scopeId,re.initialName,re.isSubscope)},title:"Delete Scope",description:o(a,{children:["Deleting ",r("span",e({className:m.highlight},{children:re.initialName||"this scope"}))," will permanently remove all Learnings, Access rules, and Change History inside it. This cannot be undone."]}),confirmText:"Delete",confirmBgColor:"#EF4444",isLoading:ce})]}))})}export{M as default};
|
|
1
|
+
import{__assign as e,__awaiter as n,__generator as t}from"tslib";import{jsx as r,jsxs as o,Fragment as i}from"react/jsx-runtime";import{useState as a,useRef as s,useEffect as l}from"react";import{BookOpen as c,Users as u}from"lucide-react";import{useLearningTemplateStore as d}from"./store/useLearningTemplateStore.js";import{Toast as p}from"primereact/toast";import m from"./styles/LearningTemplateManagement.module.css.js";import f from"./LearningTemplateLayout.js";import g from"./components/EmptyLearningState.js";import v from"./store/useAuthStore.js";import{fetchTiers as h,fetchScopes as S,inheritScope as y,inheritScopeBackwardCompatible as b,createRuleSet as C,renameScope as T,updateStation as L,deleteRuleSet as O}from"./apis/scopeApis.js";import w from"./components/ConfirmationModal.js";import E from"./components/LearningTemplateManagementSkeleton.js";import{findNodePathById as I}from"./utils/treeUtils.js";import A from"./store/useEnvStore.js";import{useConfigStore as _}from"./store/useConfigStore.js";import{TooltipProvider as j}from"./components/ToolTip.js";import R from"./components/CreateRuleSetLegacyModal.js";import{usePermissionsStore as D}from"./store/usePermissionsStore.js";import{useAppSecRolesStore as k}from"./store/useAppSecRolesStore.js";import{useGetAppSecRolesQuery as N}from"./queries/useApprovalQueries.js";import P from"./RuleContent/AddScopeModal.js";import{useLocation as B}from"react-router-dom";var U=[{id:"learnings",label:"Learnings",icon:c,badgeKey:"learningsCount"},{id:"access",label:"Access",icon:u}],G=[{type:"GLOBAL",label:"Global",addChildLabel:"Add Scope",addChildType:"SCOPE"},{type:"SCOPE",label:"Scope",addChildLabel:"Add Subscope",addChildType:"SUBSCOPE"},{type:"SUBSCOPE",label:"Subscope"}];function M(c){var u,M=this,F=c.userDetails,x=c.llmStudioUrl,q=c.audacyBackendUrl,H=c.ilLabels,K=c.config,Q=c.rbacConfig,V=c.app_integration_id,W=c.backwardCompatibility,z=void 0!==W&&W,J=d(function(e){return e.selectedRuleSetId}),X=d(function(e){return e.setSelectedRuleSetId}),Y=d(function(e){return e.error}),Z=d(function(e){return e.setError}),$=d(function(e){return e.setStations}),ee=d(function(e){return e.scopeTreeData}),ne=d(function(e){return e.setScopeTreeData}),te=a({isOpen:!1,type:"GLOBAL"}),re=te[0],oe=te[1],ie=a(!1),ae=ie[0],se=ie[1],le=a(!1),ce=le[0],ue=le[1],de=a("learnings"),pe=de[0],me=de[1],fe=a(null),ge=fe[0],ve=fe[1],he=s(null),Se=s(null),ye=s(null),be=v();be.user;var Ce=be.setUser,Te=_(),Le=Te.setConfig,Oe=Te.setIlLabels,we=function(){try{return B()}catch(e){return{search:""}}}();l(function(){var e=new URLSearchParams(window.location.search).get("rulesetid");(null==e?void 0:e.length)&&X&&me&&(X(e),me("learnings"))},[null==we?void 0:we.search,me,X]);var Ee=D(function(e){return e.fetchPermissions}),Ie=D(function(e){return e.hasPermission}),Ae=k(function(e){return e.setRoles}),_e=A(function(e){return e.appsecRbacUrl})===Q.appsecRbacUrl,je=N(Q.applicationId,_e).data;l(function(){je&&Ae(je.map(function(e){return{_id:e._id,name:e.name}}))},[je,Ae]),l(function(){var e;console.log("userDetails",F),Ce(F),console.log("llmStudioUrl",x),console.log("audacyBackendUrl",q),A.getState().setLlmStudioUrl(x),A.getState().setAudacyBackendUrl(q),A.getState().setRbacConfig(Q),Le(K),Oe(H),d.getState().setAppIntegrationId(null!=V?V:null),d.getState().setBackwardCompatibility(z),d.getState().setToken(null!==(e=F.accessToken)&&void 0!==e?e:null)},[F,Ce,x,q,Q,K,Le,H,Oe,V,z]),l(function(){(null==F?void 0:F.accessToken)&&x&&h()},[V,null==F?void 0:F.accessToken,x]);var Re=function(r){return void 0===r&&(r=!0),n(M,void 0,void 0,function(){var n,o,i,a,s;return t(this,function(t){switch(t.label){case 0:r&&se(!0),Z(null),t.label=1;case 1:return t.trys.push([1,4,5,6]),[4,Ee(Q.applicationId)];case 2:return t.sent(),n=function(t){if(!D.getState().hasPermission("ilotj.scope.view",t.id))return null;var r=t.children?t.children.map(function(e){return n(e)}).filter(function(e){return null!==e}):[];return e(e({},t),{children:r})},[4,S(V,F.accessToken)];case 3:return(o=t.sent())&&o.data&&o.data.data&&(i=o.data.data,Array.isArray(i)&&(i=i.length>0?i[0]:null),i&&(a=n(i))?(ne({data:a}),Se.current?(X(Se.current),me("learnings"),Se.current=null):d.getState().selectedRuleSetId||X(a.id)):ne(null)),[3,6];case 4:return s=t.sent(),console.error("Failed to fetch rule sets or permissions",s),Z("Failed to load data. Please try again later."),[3,6];case 5:return se(!1),[7];case 6:return[2]}})})};l(function(){var e;(null===(e=null==F?void 0:F.accessToken)||void 0===e?void 0:e.length)&&_e?Re(!0):console.warn("Error: Trying to fetch rules without access token",F)},[null==F?void 0:F.accessToken,Z,$,Q.applicationId,_e]);var De=function(r,o,i){return n(M,void 0,void 0,function(){var n,a,s,l,c,u,p,m,f;return t(this,function(t){switch(t.label){case 0:ue(!0),t.label=1;case 1:return t.trys.push([1,8,9,10]),[4,O(r,F.accessToken)];case 2:if(t.sent(),d.getState().selectedRuleSetId===r&&(n=d.getState().scopeTreeData,(a=I((null==n?void 0:n.data)||null,r))&&a.length>1&&(s=a[a.length-2],X(s),me("learnings"))),!i||!o)return[3,6];t.label=3;case 3:return t.trys.push([3,5,,6]),[4,L({station_name:o,ruleset_id:""})];case 4:return t.sent(),[3,6];case 5:return l=t.sent(),console.error("Error unlinking station on subscope delete:",l),[3,6];case 6:return[4,Re(!0)];case 7:return t.sent(),oe(function(n){return e(e({},n),{isOpen:!1})}),null===(u=ye.current)||void 0===u||u.show({severity:"success",summary:"Deleted Successfully",detail:"The scope was permanently removed."}),[3,10];case 8:return c=t.sent(),console.error("An error occurred during scope deletion.",c),null===(p=ye.current)||void 0===p||p.show({severity:"error",summary:"Delete Failed",detail:(null===(f=null===(m=null==c?void 0:c.response)||void 0===m?void 0:m.data)||void 0===f?void 0:f.message)||"There was an error deleting the scope. Please try again."}),[3,10];case 9:return ue(!1),[7];case 10:return[2]}})})},ke=ee,Ne=ge?{data:{id:ge.stationId,name:ge.stationName,type:"STATION",metrics:{learningsCount:ge.learningsCount,stationsCount:0},children:[]}}:ke,Pe=!!(null==Ne?void 0:Ne.data);null===(u=null==Ne?void 0:Ne.data)||void 0===u||u.type;var Be=D(function(e){return e.hasGlobalPermission})("ilotj.scope.global.create"),Ue=ge?U.filter(function(e){return"stations"!==e.id}):U;return r(j,{children:o("div",e({className:m.learningManagementContainer},{children:[r("div",e({className:m.mainWrapper},{children:ae?r(E,{}):Y?o("div",e({className:m.errorContainer},{children:[r("div",e({className:m.errorTitle},{children:"Error Loading Data"})),r("p",e({className:m.errorDesc},{children:Y})),r("button",e({onClick:function(){return Re(!0)},className:m.tryAgainBtn},{children:"Try Again"}))]})):Pe?r(f,{onOpenCreateModal:function(){return oe({isOpen:!0,type:"GLOBAL"})},onAddChild:function(e,n,t){return oe({isOpen:!0,type:n,parentId:e,parentName:t})},onRenameChild:function(e,n){return oe({isOpen:!0,type:"RENAME",scopeId:e,initialName:n})},onDeleteChild:function(e,r,o){return n(M,void 0,void 0,function(){var n,i,a;return t(this,function(t){switch(t.label){case 0:return n=d.getState().scopeTreeData,i=I((null==n?void 0:n.data)||null,e),a=!!i&&3===i.length,0!==o?[3,2]:[4,De(e,r,a)];case 1:return t.sent(),[3,3];case 2:oe({isOpen:!0,type:"DELETE",scopeId:e,initialName:r,isSubscope:a}),t.label=3;case 3:return[2]}})})},canDeleteScope:function(e){return Ie("ilotj.scope.delete",e)},canEditScope:function(e){return Ie("ilotj.scope.edit",e)},canCreateScope:function(e){return Ie("ilotj.scope.create",e)},onSectionSelect:function(e,n){console.log("Section Selected:",{scopeId:e,sectionId:n}),me(n),X(e)},activeSectionId:pe,scopeTreeData:Ne,sectionsConfig:Ue,onViewStation:function(e){he.current=J,ve(e),me("learnings"),X(e.stationId)},onRefreshRuleSets:function(e,n){void 0===e&&(e=!0),n&&(Se.current=n),Re(e)},nodeTypesConfig:G,app_integration_id:V,token:F.accessToken}):r(g,{onCreate:function(){return oe({isOpen:!0,type:"GLOBAL"})},title:"No Global Scope has been added!",desc:"Start by creating a Global scope to define base learnings that apply across all stations.",button:"Create Global Scope",canCreateRule:Be})})),r(p,{ref:ye}),z&&re.isOpen&&"DELETE"!==re.type&&"RENAME"!==re.type?r(R,{isOpen:!0,onClose:function(){return oe(e(e({},re),{isOpen:!1}))},onSubmit:function(r){return n(M,void 0,void 0,function(){var n,o,i,a,s,l,c,u,p,m,f,g,v,h,S,T,L,O,w,E;return t(this,function(t){switch(t.label){case 0:ue(!0),n=d.getState().backwardCompatibility,t.label=1;case 1:return t.trys.push([1,12,13,14]),o=void 0,n&&"object"==typeof r?o=r:(i=r,a="SCOPE"===re.type&&re.parentId,s=a?"genreRuleSet":re.type,o={topic:s,scope_reference_id:null,scopeDescription:"demo",parentScopeId:re.parentId||null,scopeName:i,scopeReferenceMetadata:{},applicationMappingId:V}),[4,C(o,F.accessToken)];case 2:if(l=t.sent(),!(c=null===(h=null==l?void 0:l.data)||void 0===h?void 0:h.scopeId))return[3,10];if(Se.current=c,u=n&&(null===(S=o.topic)||void 0===S?void 0:S.toLowerCase().includes("genre")),p=!n&&"GLOBAL"!==re.type&&re.parentId,!u&&!p)return[3,10];if(!(m=n?null===(L=null===(T=d.getState().scopeTreeData)||void 0===T?void 0:T.data)||void 0===L?void 0:L.id:re.parentId))return[3,10];if(!z)return[3,7];t.label=3;case 3:return t.trys.push([3,5,,6]),[4,b({source_scope_id:m,target_scope_id:c})];case 4:return t.sent(),[3,6];case 5:return f=t.sent(),console.error("Failed to inherit rules for the new scope:",f),[3,6];case 6:return[3,10];case 7:return t.trys.push([7,9,,10]),[4,y({source_scope_id:m,target_scope_id:c,application_mapping_id:V||"",is_copy_parent_variant_id:!1})];case 8:return t.sent(),[3,10];case 9:return g=t.sent(),console.error("Failed to inherit rules for the new scope:",g),[3,10];case 10:return[4,Re(!0)];case 11:return t.sent(),oe(function(n){return e(e({},n),{isOpen:!1})}),[3,14];case 12:throw v=t.sent(),console.error("An error occurred during scope creation.",v),null===(O=ye.current)||void 0===O||O.show({severity:"error",summary:"Creation Failed",detail:(null===(E=null===(w=null==v?void 0:v.response)||void 0===w?void 0:w.data)||void 0===E?void 0:E.message)||"There was an error creating the scope. Please try again."}),v;case 13:return ue(!1),[7];case 14:return[2]}})})},hasGlobalRuleSet:Pe}):r(P,{isOpen:re.isOpen&&"DELETE"!==re.type,onClose:function(){return oe(e(e({},re),{isOpen:!1}))},onCreate:function(r){return o=null!=r?r:"",n(M,void 0,void 0,function(){var n,r,i,a;return t(this,function(t){switch(t.label){case 0:ue(!0),t.label=1;case 1:return t.trys.push([1,4,5,6]),re.scopeId?[4,T({scope_id:re.scopeId,scope_name:o})]:[2];case 2:return t.sent(),[4,Re(!0)];case 3:return t.sent(),oe(function(n){return e(e({},n),{isOpen:!1})}),[3,6];case 4:throw n=t.sent(),console.error("An error occurred during scope rename.",n),null===(r=ye.current)||void 0===r||r.show({severity:"error",summary:"Rename Failed",detail:(null===(a=null===(i=null==n?void 0:n.response)||void 0===i?void 0:i.data)||void 0===a?void 0:a.message)||"There was an error renaming the scope. Please try again."}),n;case 5:return ue(!1),[7];case 6:return[2]}})});var o},hasGlobalRuleSet:Pe}),r(w,{isOpen:re.isOpen&&"DELETE"===re.type,onCancel:function(){return oe(e(e({},re),{isOpen:!1}))},onConfirm:function(){return De(re.scopeId,re.initialName,re.isSubscope)},title:"Delete Scope",description:o(i,{children:["Deleting ",r("span",e({className:m.highlight},{children:re.initialName||"this scope"}))," will permanently remove all Learnings, Access rules, and Change History inside it. This cannot be undone."]}),confirmText:"Delete",confirmBgColor:"#EF4444",isLoading:ce})]}))})}export{M as default};
|
|
2
2
|
//# sourceMappingURL=LearningManagement.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{__assign as e}from"tslib";import{jsxs as
|
|
1
|
+
import{__assign as e}from"tslib";import{jsxs as n,jsx as o}from"react/jsx-runtime";import t from"./RuleContent/RuleContent.js";import i from"./StationsContent/StationsContent.js";import a from"./RBAC/AccessPanel.js";import r from"./styles/LearningTemplateLayout.module.css.js";import{findNodeById as s}from"./utils/treeUtils.js";import l from"./SidebarWrapper.js";import{useLearningTemplateStore as c}from"./store/useLearningTemplateStore.js";import d from"./components/StationOnboarding/StationOnboardModal.js";var p=function(p){var m,u=p.onOpenCreateModal,S=p.onRefreshRuleSets,f=p.scopeTreeData,C=p.onAddChild,v=p.onRenameChild,h=p.onDeleteChild,R=p.canDeleteScope,g=p.canEditScope,j=p.canCreateScope,O=p.onSectionSelect,D=p.onViewStation,T=p.activeSectionId,_=void 0===T?"learnings":T,y=p.sectionsConfig,I=p.nodeTypesConfig,M=p.app_integration_id,b=p.token,k=c(function(e){return e.isStationModalOpen}),w=c(function(e){return e.setStationModalOpen}),A=c(function(e){return e.selectedRuleSetId}),x=A?s((null==f?void 0:f.data)||null,A):null;return n("div",e({className:r.container},{children:[o(l,{onOpenCreateModal:u,onRefreshRuleSets:S,scopeTreeData:f,onAddChild:C,onRenameChild:v,onDeleteChild:h,canDeleteScope:R,canEditScope:g,canCreateScope:j,onSectionSelect:O,activeSectionId:_,sectionsConfig:y,nodeTypesConfig:I}),o("div",e({id:"rule-template-layout-content",className:"".concat(r.content," relative flex-1 overflow-hidden")},{children:"stations"===_?o(i,{scopeId:A||"",scopeName:(null==x?void 0:x.name)||"Unknown Scope",stationsCount:null===(m=null==x?void 0:x.metrics)||void 0===m?void 0:m.stationsCount,onViewStation:D}):"access"===_?o(a,{ruleSetId:A}):o(t,{onRefreshRuleSets:S,app_integration_id:M,token:b})})),o(d,{isOpen:k,onClose:function(){w(!1)},onBoardStation:function(e){S(!0,e)},app_integration_id:M,token:b})]}))};export{p as default};
|
|
2
2
|
//# sourceMappingURL=LearningTemplateLayout.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{__assign as e}from"tslib";import{jsx as o}from"react/jsx-runtime";import{RbacQueryProvider as r,AppsecProvider as
|
|
1
|
+
import{__assign as e}from"tslib";import{jsx as o}from"react/jsx-runtime";import{RbacQueryProvider as r,AppsecProvider as s,AccessListPanel as c}from"appsec-ui";import t from"../store/useAuthStore.js";import{usePermissionsStore as n}from"../store/usePermissionsStore.js";import a from"./AccessPanel.module.css.js";import i from"../store/useEnvStore.js";var u=function(u){var l=u.ruleSetId,d=u.moduleId,p=u.mode,m=void 0===p?"both":p,f=t(function(e){return e.user}),j=i(function(e){return e.rbacConfig}),h=i(function(e){return e.appsecRbacUrl}),g=i(function(e){return e.appsecBaseUrl}),v=null==f?void 0:f.accessToken,U=n(function(e){return e.hasPermission}),I=l||void 0,b=Boolean(I),A=b&&U("ilotj.scope.access.user.add",I),S=b&&U("ilotj.scope.access.user.edit",I),P=b&&U("ilotj.scope.access.user.remove",I),E=b&&U("ilotj.scope.access.group.add",I),G=b&&U("ilotj.scope.access.group.role.change",I),N=b&&U("ilotj.scope.access.group.remove",I);return o("div",e({className:a.accessPanel},I&&j&&h&&g?{children:o(r,{children:o(s,e({appId:j.applicationName,baseUrl:h,appsecUrl:g,mode:"manage",getAuthToken:function(){return null!=v?v:""}},{children:o(c,{resourceId:I,moduleId:d||j.moduleId,mode:m,canAddUser:A,canEditUser:S,canDeleteUser:P,canAddGroup:E,canEditGroup:G,canDeleteGroup:N})}))})}:{children:o("p",e({className:a.emptyState},{children:"Waiting for access configuration..."}))}))};export{u as default};
|
|
2
2
|
//# sourceMappingURL=AccessPanel.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import e from"../../../node_modules/style-inject/dist/style-inject.es.js";var s={accessPanel:"AccessPanel-module_accessPanel__RXDzY",emptyState:"AccessPanel-module_emptyState__EAuao",accessManagement:"AccessPanel-module_accessManagement__3XAwK",accessTabs:"AccessPanel-module_accessTabs__G6baq",accessTab:"AccessPanel-module_accessTab__gUfj-",accessTabActive:"AccessPanel-module_accessTabActive__6ZZzE",accessTabPanel:"AccessPanel-module_accessTabPanel__h458u"};e(".AccessPanel-module_accessPanel__RXDzY{--appsec-bg:#fff;--appsec-surface:#f9fafb;--appsec-surface-alt:#f2f4f7;--appsec-border:#d0d5dd;--appsec-text:#101828;--appsec-text-secondary:#475467;--appsec-text-tertiary:#667085;--appsec-primary:#2563eb;--appsec-primary-light:#eff6ff;--appsec-danger:#dc2626;--appsec-danger-light:#fef2f2;--appsec-success:#16a34a;--appsec-success-light:#f0fdf4;--appsec-warning:#d97706;--appsec-warning-light:#fffbeb;box-sizing:border-box;color:#101828;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;font-size:14px;height:100%;overflow:auto;padding:16px;width:100%}.AccessPanel-module_emptyState__EAuao{color:#667085;font-size:14px;margin:0}.AccessPanel-module_accessManagement__3XAwK{background:#fff;display:flex;flex-direction:column;height:100%;min-height:0}.AccessPanel-module_accessTabs__G6baq{align-items:center;border-bottom:1px solid #e4e7ec;display:flex;gap:4px;padding:12px 16px 0}.AccessPanel-module_accessTab__gUfj-{background:#0000;border:0;border-bottom:2px solid #0000;color:#667085;cursor:pointer;font-size:14px;font-weight:600;padding:10px 12px}.AccessPanel-module_accessTab__gUfj-:hover:not(:disabled){color:#101828}.AccessPanel-module_accessTab__gUfj-:disabled{color:#98a2b3;cursor:not-allowed}.AccessPanel-module_accessTabActive__6ZZzE{border-bottom-color:#2563eb;color:#101828}.AccessPanel-module_accessTabPanel__h458u{flex:1;min-height:0;overflow:hidden}.AccessPanel-module_accessPanel__RXDzY *{box-sizing:border-box}.AccessPanel-module_accessPanel__RXDzY button,.AccessPanel-module_accessPanel__RXDzY input,.AccessPanel-module_accessPanel__RXDzY select,.AccessPanel-module_accessPanel__RXDzY textarea{font:inherit}.AccessPanel-module_accessPanel__RXDzY button{background:#0000;border:0;cursor:pointer}.AccessPanel-module_accessPanel__RXDzY p{margin:0}.AccessPanel-module_accessPanel__RXDzY .fixed{position:fixed}.AccessPanel-module_accessPanel__RXDzY .inset-0{inset:0}.AccessPanel-module_accessPanel__RXDzY .top-0{top:0}.AccessPanel-module_accessPanel__RXDzY .right-0{right:0}.AccessPanel-module_accessPanel__RXDzY .bottom-0{bottom:0}.AccessPanel-module_accessPanel__RXDzY .left-0{left:0}.AccessPanel-module_accessPanel__RXDzY .top-2{top:8px}.AccessPanel-module_accessPanel__RXDzY .top-4{top:16px}.AccessPanel-module_accessPanel__RXDzY .right-2{right:8px}.AccessPanel-module_accessPanel__RXDzY .right-4{right:16px}.AccessPanel-module_accessPanel__RXDzY .left-3{left:12px}.AccessPanel-module_accessPanel__RXDzY .right-2\\.5{right:10px}.AccessPanel-module_accessPanel__RXDzY .top-1\\.5{top:6px}.AccessPanel-module_accessPanel__RXDzY .top-2\\.5{top:10px}.AccessPanel-module_accessPanel__RXDzY .top-1\\/2{top:50%}.AccessPanel-module_accessPanel__RXDzY .left-1\\/2{left:50%}.AccessPanel-module_accessPanel__RXDzY .-translate-x-1\\/2{transform:translateX(-50%)}.AccessPanel-module_accessPanel__RXDzY .-translate-y-1\\/2{transform:translateY(-50%)}.AccessPanel-module_accessPanel__RXDzY .bg-black\\/40{background-color:#0006}.AccessPanel-module_accessPanel__RXDzY .bg-black\\/50{background-color:#00000080}.AccessPanel-module_accessPanel__RXDzY .flex{display:flex}.AccessPanel-module_accessPanel__RXDzY .inline-flex{display:inline-flex}.AccessPanel-module_accessPanel__RXDzY .block{display:block}.AccessPanel-module_accessPanel__RXDzY .inline-block{display:inline-block}.AccessPanel-module_accessPanel__RXDzY .hidden{display:none}.AccessPanel-module_accessPanel__RXDzY .grid{display:grid}.AccessPanel-module_accessPanel__RXDzY .flex-col{flex-direction:column}.AccessPanel-module_accessPanel__RXDzY .flex-row{flex-direction:row}.AccessPanel-module_accessPanel__RXDzY .flex-wrap{flex-wrap:wrap}.AccessPanel-module_accessPanel__RXDzY .flex-nowrap{flex-wrap:nowrap}.AccessPanel-module_accessPanel__RXDzY .flex-1{flex:1 1 0%}.AccessPanel-module_accessPanel__RXDzY .flex-auto{flex:1 1 auto}.AccessPanel-module_accessPanel__RXDzY .flex-none{flex:none}.AccessPanel-module_accessPanel__RXDzY .shrink-0{flex-shrink:0}.AccessPanel-module_accessPanel__RXDzY .grow{flex-grow:1}.AccessPanel-module_accessPanel__RXDzY .items-center{align-items:center}.AccessPanel-module_accessPanel__RXDzY .items-start{align-items:flex-start}.AccessPanel-module_accessPanel__RXDzY .items-end{align-items:flex-end}.AccessPanel-module_accessPanel__RXDzY .items-stretch{align-items:stretch}.AccessPanel-module_accessPanel__RXDzY .justify-center{justify-content:center}.AccessPanel-module_accessPanel__RXDzY .justify-between{justify-content:space-between}.AccessPanel-module_accessPanel__RXDzY .justify-end{justify-content:flex-end}.AccessPanel-module_accessPanel__RXDzY .justify-start{justify-content:flex-start}.AccessPanel-module_accessPanel__RXDzY .self-center{align-self:center}.AccessPanel-module_accessPanel__RXDzY .self-start{align-self:flex-start}.AccessPanel-module_accessPanel__RXDzY .self-end{align-self:flex-end}.AccessPanel-module_accessPanel__RXDzY .gap-0{gap:0}.AccessPanel-module_accessPanel__RXDzY .gap-0\\.5{gap:2px}.AccessPanel-module_accessPanel__RXDzY .gap-1{gap:4px}.AccessPanel-module_accessPanel__RXDzY .gap-1\\.5{gap:6px}.AccessPanel-module_accessPanel__RXDzY .gap-2{gap:8px}.AccessPanel-module_accessPanel__RXDzY .gap-2\\.5{gap:10px}.AccessPanel-module_accessPanel__RXDzY .gap-3{gap:12px}.AccessPanel-module_accessPanel__RXDzY .gap-4{gap:16px}.AccessPanel-module_accessPanel__RXDzY .gap-5{gap:20px}.AccessPanel-module_accessPanel__RXDzY .gap-6{gap:24px}.AccessPanel-module_accessPanel__RXDzY .gap-x-2{column-gap:8px}.AccessPanel-module_accessPanel__RXDzY .gap-x-3{column-gap:12px}.AccessPanel-module_accessPanel__RXDzY .gap-y-2{row-gap:8px}.AccessPanel-module_accessPanel__RXDzY .gap-y-3{row-gap:12px}.AccessPanel-module_accessPanel__RXDzY .space-y-1>:not([hidden])~:not([hidden]){margin-top:4px}.AccessPanel-module_accessPanel__RXDzY .space-y-2>:not([hidden])~:not([hidden]){margin-top:8px}.AccessPanel-module_accessPanel__RXDzY .space-y-3>:not([hidden])~:not([hidden]){margin-top:12px}.AccessPanel-module_accessPanel__RXDzY .space-y-4>:not([hidden])~:not([hidden]){margin-top:16px}.AccessPanel-module_accessPanel__RXDzY .space-x-2>:not([hidden])~:not([hidden]){margin-left:8px}.AccessPanel-module_accessPanel__RXDzY .space-x-3>:not([hidden])~:not([hidden]){margin-left:12px}.AccessPanel-module_accessPanel__RXDzY .relative{position:relative}.AccessPanel-module_accessPanel__RXDzY .absolute{position:absolute}.AccessPanel-module_accessPanel__RXDzY .sticky{position:sticky}.AccessPanel-module_accessPanel__RXDzY .z-10{z-index:10}.AccessPanel-module_accessPanel__RXDzY .z-20{z-index:20}.AccessPanel-module_accessPanel__RXDzY .z-50{z-index:50}.AccessPanel-module_accessPanel__RXDzY .z-100{z-index:100}.AccessPanel-module_accessPanel__RXDzY .pointer-events-none{pointer-events:none}.AccessPanel-module_accessPanel__RXDzY .pointer-events-auto{pointer-events:auto}.AccessPanel-module_accessPanel__RXDzY .w-full{width:100%}.AccessPanel-module_accessPanel__RXDzY .h-full{height:100%}.AccessPanel-module_accessPanel__RXDzY .w-auto{width:auto}.AccessPanel-module_accessPanel__RXDzY .h-auto{height:auto}.AccessPanel-module_accessPanel__RXDzY .w-fit{width:fit-content}.AccessPanel-module_accessPanel__RXDzY .w-3{width:12px}.AccessPanel-module_accessPanel__RXDzY .h-3{height:12px}.AccessPanel-module_accessPanel__RXDzY .w-3\\.5{width:14px}.AccessPanel-module_accessPanel__RXDzY .h-3\\.5{height:14px}.AccessPanel-module_accessPanel__RXDzY .w-4{width:16px}.AccessPanel-module_accessPanel__RXDzY .h-4{height:16px}.AccessPanel-module_accessPanel__RXDzY .w-5{width:20px}.AccessPanel-module_accessPanel__RXDzY .h-5{height:20px}.AccessPanel-module_accessPanel__RXDzY .w-6{width:24px}.AccessPanel-module_accessPanel__RXDzY .h-6{height:24px}.AccessPanel-module_accessPanel__RXDzY .w-7{width:28px}.AccessPanel-module_accessPanel__RXDzY .h-7{height:28px}.AccessPanel-module_accessPanel__RXDzY .w-8{width:32px}.AccessPanel-module_accessPanel__RXDzY .h-8{height:32px}.AccessPanel-module_accessPanel__RXDzY .w-9{width:36px}.AccessPanel-module_accessPanel__RXDzY .h-9{height:36px}.AccessPanel-module_accessPanel__RXDzY .w-10{width:40px}.AccessPanel-module_accessPanel__RXDzY .h-10{height:40px}.AccessPanel-module_accessPanel__RXDzY .w-12{width:48px}.AccessPanel-module_accessPanel__RXDzY .h-12{height:48px}.AccessPanel-module_accessPanel__RXDzY .w-14{width:56px}.AccessPanel-module_accessPanel__RXDzY .w-16{width:64px}.AccessPanel-module_accessPanel__RXDzY .w-20{width:80px}.AccessPanel-module_accessPanel__RXDzY .w-24{width:96px}.AccessPanel-module_accessPanel__RXDzY .w-28{width:112px}.AccessPanel-module_accessPanel__RXDzY .w-32{width:128px}.AccessPanel-module_accessPanel__RXDzY .w-40{width:160px}.AccessPanel-module_accessPanel__RXDzY .w-48{width:192px}.AccessPanel-module_accessPanel__RXDzY .w-64{width:256px}.AccessPanel-module_accessPanel__RXDzY .w-80{width:320px}.AccessPanel-module_accessPanel__RXDzY .min-w-0{min-width:0}.AccessPanel-module_accessPanel__RXDzY .min-w-32{min-width:128px}.AccessPanel-module_accessPanel__RXDzY .min-w-40{min-width:160px}.AccessPanel-module_accessPanel__RXDzY .min-w-48{min-width:192px}.AccessPanel-module_accessPanel__RXDzY .max-w-xs{max-width:320px}.AccessPanel-module_accessPanel__RXDzY .max-w-sm{max-width:384px}.AccessPanel-module_accessPanel__RXDzY .max-w-md{max-width:448px}.AccessPanel-module_accessPanel__RXDzY .max-w-lg{max-width:512px}.AccessPanel-module_accessPanel__RXDzY .max-w-full{max-width:100%}.AccessPanel-module_accessPanel__RXDzY .max-h-60{max-height:240px}.AccessPanel-module_accessPanel__RXDzY .max-h-72{max-height:288px}.AccessPanel-module_accessPanel__RXDzY .max-h-96{max-height:384px}.AccessPanel-module_accessPanel__RXDzY .min-h-0{min-height:0}.AccessPanel-module_accessPanel__RXDzY .rounded-none{border-radius:0}.AccessPanel-module_accessPanel__RXDzY .rounded-sm{border-radius:2px}.AccessPanel-module_accessPanel__RXDzY .rounded{border-radius:4px}.AccessPanel-module_accessPanel__RXDzY .rounded-md{border-radius:6px}.AccessPanel-module_accessPanel__RXDzY .rounded-lg{border-radius:8px}.AccessPanel-module_accessPanel__RXDzY .rounded-xl{border-radius:12px}.AccessPanel-module_accessPanel__RXDzY .rounded-2xl{border-radius:16px}.AccessPanel-module_accessPanel__RXDzY .rounded-full{border-radius:9999px}.AccessPanel-module_accessPanel__RXDzY .rounded-appsec{border-radius:8px}.AccessPanel-module_accessPanel__RXDzY .rounded-t-lg{border-top-left-radius:8px;border-top-right-radius:8px}.AccessPanel-module_accessPanel__RXDzY .rounded-b-lg{border-bottom-left-radius:8px;border-bottom-right-radius:8px}.AccessPanel-module_accessPanel__RXDzY .rounded-l-lg{border-bottom-left-radius:8px;border-top-left-radius:8px}.AccessPanel-module_accessPanel__RXDzY .rounded-r-lg{border-bottom-right-radius:8px;border-top-right-radius:8px}.AccessPanel-module_accessPanel__RXDzY .rounded-t-md{border-top-left-radius:6px;border-top-right-radius:6px}.AccessPanel-module_accessPanel__RXDzY .rounded-b-md{border-bottom-left-radius:6px;border-bottom-right-radius:6px}.AccessPanel-module_accessPanel__RXDzY .rounded-t-xl{border-top-left-radius:12px;border-top-right-radius:12px}.AccessPanel-module_accessPanel__RXDzY .rounded-b-xl{border-bottom-left-radius:12px;border-bottom-right-radius:12px}.AccessPanel-module_accessPanel__RXDzY .border{border:1px solid var(--appsec-border)}.AccessPanel-module_accessPanel__RXDzY .border-0{border:0}.AccessPanel-module_accessPanel__RXDzY .border-2{border:2px solid var(--appsec-border)}.AccessPanel-module_accessPanel__RXDzY .border-t{border-top:1px solid var(--appsec-border)}.AccessPanel-module_accessPanel__RXDzY .border-b{border-bottom:1px solid var(--appsec-border)}.AccessPanel-module_accessPanel__RXDzY .border-l{border-left:1px solid var(--appsec-border)}.AccessPanel-module_accessPanel__RXDzY .border-r{border-right:1px solid var(--appsec-border)}.AccessPanel-module_accessPanel__RXDzY .border-t-0{border-top:0}.AccessPanel-module_accessPanel__RXDzY .border-b-0{border-bottom:0}.AccessPanel-module_accessPanel__RXDzY .border-appsec-border{border-color:var(--appsec-border)}.AccessPanel-module_accessPanel__RXDzY .border-appsec-primary{border-color:var(--appsec-primary)}.AccessPanel-module_accessPanel__RXDzY .border-appsec-danger{border-color:var(--appsec-danger)}.AccessPanel-module_accessPanel__RXDzY .border-transparent{border-color:#0000}.AccessPanel-module_accessPanel__RXDzY .border-gray-200{border-color:#eaecf0}.AccessPanel-module_accessPanel__RXDzY .border-blue-200{border-color:#bfdbfe}.AccessPanel-module_accessPanel__RXDzY .divide-y>:not([hidden])~:not([hidden]){border-top:1px solid var(--appsec-border)}.AccessPanel-module_accessPanel__RXDzY .divide-x>:not([hidden])~:not([hidden]){border-left:1px solid var(--appsec-border)}.AccessPanel-module_accessPanel__RXDzY [role=tablist]{background:var(--appsec-surface);border:1px solid var(--appsec-border);border-radius:8px;display:grid;grid-auto-columns:1fr;grid-auto-flow:column;overflow:hidden}.AccessPanel-module_accessPanel__RXDzY [role=tab]{background:#0000;border:none;border-radius:0;color:var(--appsec-text-secondary);cursor:pointer;font-size:13px;font-weight:400;padding:8px 12px;text-align:center;transition:background .12s,color .12s;white-space:nowrap}.AccessPanel-module_accessPanel__RXDzY [role=tab].active,.AccessPanel-module_accessPanel__RXDzY [role=tab][aria-selected=true],.AccessPanel-module_accessPanel__RXDzY [role=tab][data-state=active]{background:var(--appsec-primary);color:#fff;font-weight:500}.AccessPanel-module_accessPanel__RXDzY [role=tab]:not([aria-selected=true]):not([data-state=active]):not(.active):hover{background:var(--appsec-surface-alt);color:var(--appsec-text)}.AccessPanel-module_accessPanel__RXDzY .overflow-hidden{overflow:hidden}.AccessPanel-module_accessPanel__RXDzY .overflow-auto{overflow:auto}.AccessPanel-module_accessPanel__RXDzY .overflow-y-auto{overflow-y:auto}.AccessPanel-module_accessPanel__RXDzY .overflow-x-auto{overflow-x:auto}.AccessPanel-module_accessPanel__RXDzY .overflow-visible{overflow:visible}.AccessPanel-module_accessPanel__RXDzY .truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.AccessPanel-module_accessPanel__RXDzY .whitespace-nowrap{white-space:nowrap}.AccessPanel-module_accessPanel__RXDzY .whitespace-normal{white-space:normal}.AccessPanel-module_accessPanel__RXDzY .break-words{overflow-wrap:break-word}.AccessPanel-module_accessPanel__RXDzY .break-all{word-break:break-all}.AccessPanel-module_accessPanel__RXDzY .text-left{text-align:left}.AccessPanel-module_accessPanel__RXDzY .text-center{text-align:center}.AccessPanel-module_accessPanel__RXDzY .text-right{text-align:right}.AccessPanel-module_accessPanel__RXDzY .text-xs{font-size:12px;line-height:16px}.AccessPanel-module_accessPanel__RXDzY .text-sm{font-size:14px;line-height:20px}.AccessPanel-module_accessPanel__RXDzY .text-base{font-size:16px;line-height:24px}.AccessPanel-module_accessPanel__RXDzY .text-lg{font-size:18px;line-height:28px}.AccessPanel-module_accessPanel__RXDzY .text-xl{font-size:20px;line-height:28px}.AccessPanel-module_accessPanel__RXDzY .text-2xl{font-size:24px;line-height:32px}.AccessPanel-module_accessPanel__RXDzY .text-\\[10px\\]{font-size:10px;line-height:14px}.AccessPanel-module_accessPanel__RXDzY .text-\\[11px\\]{font-size:11px;line-height:16px}.AccessPanel-module_accessPanel__RXDzY .text-\\[13px\\]{font-size:13px;line-height:18px}.AccessPanel-module_accessPanel__RXDzY .font-normal{font-weight:400}.AccessPanel-module_accessPanel__RXDzY .font-medium{font-weight:500}.AccessPanel-module_accessPanel__RXDzY .font-semibold{font-weight:600}.AccessPanel-module_accessPanel__RXDzY .font-bold{font-weight:700}.AccessPanel-module_accessPanel__RXDzY .italic{font-style:italic}.AccessPanel-module_accessPanel__RXDzY .not-italic{font-style:normal}.AccessPanel-module_accessPanel__RXDzY .uppercase{text-transform:uppercase}.AccessPanel-module_accessPanel__RXDzY .lowercase{text-transform:lowercase}.AccessPanel-module_accessPanel__RXDzY .capitalize{text-transform:capitalize}.AccessPanel-module_accessPanel__RXDzY .normal-case{text-transform:none}.AccessPanel-module_accessPanel__RXDzY .underline{text-decoration:underline}.AccessPanel-module_accessPanel__RXDzY .no-underline{text-decoration:none}.AccessPanel-module_accessPanel__RXDzY .line-through{text-decoration:line-through}.AccessPanel-module_accessPanel__RXDzY .leading-none{line-height:1}.AccessPanel-module_accessPanel__RXDzY .leading-tight{line-height:1.25}.AccessPanel-module_accessPanel__RXDzY .leading-snug{line-height:1.375}.AccessPanel-module_accessPanel__RXDzY .leading-normal{line-height:1.5}.AccessPanel-module_accessPanel__RXDzY .leading-relaxed{line-height:1.625}.AccessPanel-module_accessPanel__RXDzY .text-white{color:#fff}.AccessPanel-module_accessPanel__RXDzY .text-black{color:#000}.AccessPanel-module_accessPanel__RXDzY .text-appsec-text{color:var(--appsec-text)}.AccessPanel-module_accessPanel__RXDzY .text-appsec-text-secondary{color:var(--appsec-text-secondary)}.AccessPanel-module_accessPanel__RXDzY .text-appsec-text-tertiary{color:var(--appsec-text-tertiary)}.AccessPanel-module_accessPanel__RXDzY .text-appsec-primary{color:var(--appsec-primary)}.AccessPanel-module_accessPanel__RXDzY .text-appsec-danger{color:var(--appsec-danger)}.AccessPanel-module_accessPanel__RXDzY .text-appsec-success{color:var(--appsec-success)}.AccessPanel-module_accessPanel__RXDzY .text-appsec-warning{color:var(--appsec-warning)}.AccessPanel-module_accessPanel__RXDzY .text-gray-400{color:#98a2b3}.AccessPanel-module_accessPanel__RXDzY .text-gray-500{color:#667085}.AccessPanel-module_accessPanel__RXDzY .text-gray-600{color:#475467}.AccessPanel-module_accessPanel__RXDzY .text-gray-700{color:#344054}.AccessPanel-module_accessPanel__RXDzY .text-gray-900{color:#101828}.AccessPanel-module_accessPanel__RXDzY .text-blue-600{color:#2563eb}.AccessPanel-module_accessPanel__RXDzY .text-blue-700{color:#1d4ed8}.AccessPanel-module_accessPanel__RXDzY .text-red-600{color:#dc2626}.AccessPanel-module_accessPanel__RXDzY .text-red-700{color:#b91c1c}.AccessPanel-module_accessPanel__RXDzY .text-green-600{color:#16a34a}.AccessPanel-module_accessPanel__RXDzY .text-green-700{color:#15803d}.AccessPanel-module_accessPanel__RXDzY .bg-appsec-bg{background-color:var(--appsec-bg)}.AccessPanel-module_accessPanel__RXDzY .bg-appsec-surface{background-color:var(--appsec-surface)}.AccessPanel-module_accessPanel__RXDzY .bg-appsec-surface-alt{background-color:var(--appsec-surface-alt)}.AccessPanel-module_accessPanel__RXDzY .bg-appsec-primary{background-color:var(--appsec-primary)}.AccessPanel-module_accessPanel__RXDzY .bg-appsec-primary-light{background-color:var(--appsec-primary-light)}.AccessPanel-module_accessPanel__RXDzY .bg-appsec-danger{background-color:var(--appsec-danger)}.AccessPanel-module_accessPanel__RXDzY .bg-appsec-danger-light{background-color:var(--appsec-danger-light)}.AccessPanel-module_accessPanel__RXDzY .bg-appsec-success-light{background-color:var(--appsec-success-light)}.AccessPanel-module_accessPanel__RXDzY .bg-appsec-warning-light{background-color:var(--appsec-warning-light)}.AccessPanel-module_accessPanel__RXDzY .bg-transparent{background-color:initial}.AccessPanel-module_accessPanel__RXDzY .bg-white{background-color:#fff}.AccessPanel-module_accessPanel__RXDzY .bg-gray-50{background-color:#f9fafb}.AccessPanel-module_accessPanel__RXDzY .bg-gray-100{background-color:#f2f4f7}.AccessPanel-module_accessPanel__RXDzY .bg-gray-200{background-color:#eaecf0}.AccessPanel-module_accessPanel__RXDzY .bg-blue-50{background-color:#eff6ff}.AccessPanel-module_accessPanel__RXDzY .bg-blue-600{background-color:#2563eb}.AccessPanel-module_accessPanel__RXDzY .bg-red-50{background-color:#fef2f2}.AccessPanel-module_accessPanel__RXDzY .bg-red-600{background-color:#dc2626}.AccessPanel-module_accessPanel__RXDzY .bg-green-50{background-color:#f0fdf4}.AccessPanel-module_accessPanel__RXDzY .bg-yellow-50{background-color:#fffbeb}.AccessPanel-module_accessPanel__RXDzY .bg-blue-500{background-color:#3b82f6}.AccessPanel-module_accessPanel__RXDzY .bg-purple-500{background-color:#a855f7}.AccessPanel-module_accessPanel__RXDzY .bg-green-600{background-color:#16a34a}.AccessPanel-module_accessPanel__RXDzY .bg-orange-500{background-color:#f97316}.AccessPanel-module_accessPanel__RXDzY .bg-pink-500{background-color:#ec4899}.AccessPanel-module_accessPanel__RXDzY .bg-teal-500{background-color:#14b8a6}.AccessPanel-module_accessPanel__RXDzY .bg-indigo-500{background-color:#6366f1}.AccessPanel-module_accessPanel__RXDzY .bg-rose-500{background-color:#f43f5e}.AccessPanel-module_accessPanel__RXDzY .p-0{padding:0}.AccessPanel-module_accessPanel__RXDzY .p-0\\.5{padding:2px}.AccessPanel-module_accessPanel__RXDzY .p-1{padding:4px}.AccessPanel-module_accessPanel__RXDzY .p-1\\.5{padding:6px}.AccessPanel-module_accessPanel__RXDzY .p-2{padding:8px}.AccessPanel-module_accessPanel__RXDzY .p-2\\.5{padding:10px}.AccessPanel-module_accessPanel__RXDzY .p-3{padding:12px}.AccessPanel-module_accessPanel__RXDzY .p-4{padding:16px}.AccessPanel-module_accessPanel__RXDzY .p-5{padding:20px}.AccessPanel-module_accessPanel__RXDzY .p-6{padding:24px}.AccessPanel-module_accessPanel__RXDzY .px-1{padding-left:4px;padding-right:4px}.AccessPanel-module_accessPanel__RXDzY .px-2{padding-left:8px;padding-right:8px}.AccessPanel-module_accessPanel__RXDzY .px-2\\.5{padding-left:10px;padding-right:10px}.AccessPanel-module_accessPanel__RXDzY .px-3{padding-left:12px;padding-right:12px}.AccessPanel-module_accessPanel__RXDzY .px-4{padding-left:16px;padding-right:16px}.AccessPanel-module_accessPanel__RXDzY .px-5{padding-left:20px;padding-right:20px}.AccessPanel-module_accessPanel__RXDzY .px-6{padding-left:24px;padding-right:24px}.AccessPanel-module_accessPanel__RXDzY .py-0\\.5{padding-bottom:2px;padding-top:2px}.AccessPanel-module_accessPanel__RXDzY .py-1{padding-bottom:4px;padding-top:4px}.AccessPanel-module_accessPanel__RXDzY .py-1\\.5{padding-bottom:6px;padding-top:6px}.AccessPanel-module_accessPanel__RXDzY .py-2{padding-bottom:8px;padding-top:8px}.AccessPanel-module_accessPanel__RXDzY .py-2\\.5{padding-bottom:10px;padding-top:10px}.AccessPanel-module_accessPanel__RXDzY .py-3{padding-bottom:12px;padding-top:12px}.AccessPanel-module_accessPanel__RXDzY .py-4{padding-bottom:16px;padding-top:16px}.AccessPanel-module_accessPanel__RXDzY .py-5{padding-bottom:20px;padding-top:20px}.AccessPanel-module_accessPanel__RXDzY .py-6{padding-bottom:24px;padding-top:24px}.AccessPanel-module_accessPanel__RXDzY .py-8{padding-bottom:32px;padding-top:32px}.AccessPanel-module_accessPanel__RXDzY .pt-0{padding-top:0}.AccessPanel-module_accessPanel__RXDzY .pt-1{padding-top:4px}.AccessPanel-module_accessPanel__RXDzY .pt-2{padding-top:8px}.AccessPanel-module_accessPanel__RXDzY .pt-3{padding-top:12px}.AccessPanel-module_accessPanel__RXDzY .pt-4{padding-top:16px}.AccessPanel-module_accessPanel__RXDzY .pb-0{padding-bottom:0}.AccessPanel-module_accessPanel__RXDzY .pb-1{padding-bottom:4px}.AccessPanel-module_accessPanel__RXDzY .pb-2{padding-bottom:8px}.AccessPanel-module_accessPanel__RXDzY .pb-3{padding-bottom:12px}.AccessPanel-module_accessPanel__RXDzY .pb-4{padding-bottom:16px}.AccessPanel-module_accessPanel__RXDzY .pl-0{padding-left:0}.AccessPanel-module_accessPanel__RXDzY .pl-2{padding-left:8px}.AccessPanel-module_accessPanel__RXDzY .pl-3{padding-left:12px}.AccessPanel-module_accessPanel__RXDzY .pl-4{padding-left:16px}.AccessPanel-module_accessPanel__RXDzY .pl-9{padding-left:36px}.AccessPanel-module_accessPanel__RXDzY .pr-0{padding-right:0}.AccessPanel-module_accessPanel__RXDzY .pr-2{padding-right:8px}.AccessPanel-module_accessPanel__RXDzY .pr-3{padding-right:12px}.AccessPanel-module_accessPanel__RXDzY .pr-4{padding-right:16px}.AccessPanel-module_accessPanel__RXDzY .pr-6{padding-right:24px}.AccessPanel-module_accessPanel__RXDzY .pr-8{padding-right:32px}.AccessPanel-module_accessPanel__RXDzY .pr-10{padding-right:40px}.AccessPanel-module_accessPanel__RXDzY .m-0{margin:0}.AccessPanel-module_accessPanel__RXDzY .m-1{margin:4px}.AccessPanel-module_accessPanel__RXDzY .m-2{margin:8px}.AccessPanel-module_accessPanel__RXDzY .m-auto{margin:auto}.AccessPanel-module_accessPanel__RXDzY .mx-auto{margin-left:auto;margin-right:auto}.AccessPanel-module_accessPanel__RXDzY .ml-auto{margin-left:auto}.AccessPanel-module_accessPanel__RXDzY .mr-auto{margin-right:auto}.AccessPanel-module_accessPanel__RXDzY .mt-0{margin-top:0}.AccessPanel-module_accessPanel__RXDzY .mt-1{margin-top:4px}.AccessPanel-module_accessPanel__RXDzY .mt-2{margin-top:8px}.AccessPanel-module_accessPanel__RXDzY .mt-3{margin-top:12px}.AccessPanel-module_accessPanel__RXDzY .mt-4{margin-top:16px}.AccessPanel-module_accessPanel__RXDzY .mt-6{margin-top:24px}.AccessPanel-module_accessPanel__RXDzY .mb-0{margin-bottom:0}.AccessPanel-module_accessPanel__RXDzY .mb-1{margin-bottom:4px}.AccessPanel-module_accessPanel__RXDzY .mb-2{margin-bottom:8px}.AccessPanel-module_accessPanel__RXDzY .mb-3{margin-bottom:12px}.AccessPanel-module_accessPanel__RXDzY .mb-4{margin-bottom:16px}.AccessPanel-module_accessPanel__RXDzY .ml-0{margin-left:0}.AccessPanel-module_accessPanel__RXDzY .ml-1{margin-left:4px}.AccessPanel-module_accessPanel__RXDzY .ml-2{margin-left:8px}.AccessPanel-module_accessPanel__RXDzY .ml-3{margin-left:12px}.AccessPanel-module_accessPanel__RXDzY .mr-0{margin-right:0}.AccessPanel-module_accessPanel__RXDzY .mr-1{margin-right:4px}.AccessPanel-module_accessPanel__RXDzY .mr-2{margin-right:8px}.AccessPanel-module_accessPanel__RXDzY .-mt-px{margin-top:-1px}.AccessPanel-module_accessPanel__RXDzY .shadow-none{box-shadow:none}.AccessPanel-module_accessPanel__RXDzY .shadow-sm{box-shadow:0 1px 2px #1018280f}.AccessPanel-module_accessPanel__RXDzY .shadow{box-shadow:0 1px 3px #1018281a,0 1px 2px #1018280f}.AccessPanel-module_accessPanel__RXDzY .shadow-md{box-shadow:0 4px 8px #10182814,0 2px 4px #1018280a}.AccessPanel-module_accessPanel__RXDzY .shadow-lg{box-shadow:0 12px 24px #1018281f}.AccessPanel-module_accessPanel__RXDzY .shadow-xl{box-shadow:0 20px 40px #10182829}.AccessPanel-module_accessPanel__RXDzY :where(input[type=text],input[type=email],input[type=search],input[type=password],textarea,select){background-color:var(--appsec-bg);border:1px solid var(--appsec-border);border-radius:8px;color:var(--appsec-text);height:36px;outline:none;padding:0 12px;transition:border-color .12s,box-shadow .12s;width:100%}.AccessPanel-module_accessPanel__RXDzY :where(textarea){height:auto;padding:8px 12px;resize:vertical}.AccessPanel-module_accessPanel__RXDzY :where(input[type=text]:focus,input[type=email]:focus,input[type=search]:focus,input[type=password]:focus,textarea:focus,select:focus){border-color:var(--appsec-primary);box-shadow:0 0 0 3px var(--appsec-primary-light)}.AccessPanel-module_accessPanel__RXDzY :where(input::placeholder,textarea::placeholder){color:var(--appsec-text-tertiary)}.AccessPanel-module_accessPanel__RXDzY :where(input[type=checkbox]){accent-color:var(--appsec-primary);height:16px;width:16px}.AccessPanel-module_accessPanel__RXDzY .appearance-none{appearance:none}.AccessPanel-module_accessPanel__RXDzY .outline-none{outline:0}.AccessPanel-module_accessPanel__RXDzY .focus\\:border-appsec-primary:focus{border-color:var(--appsec-primary)}.AccessPanel-module_accessPanel__RXDzY .focus\\:ring-2:focus{box-shadow:0 0 0 3px var(--appsec-primary-light)}.AccessPanel-module_accessPanel__RXDzY .focus\\:outline-none:focus{outline:0}.AccessPanel-module_accessPanel__RXDzY button:hover:not(:disabled){opacity:.92}.AccessPanel-module_accessPanel__RXDzY .disabled\\:opacity-30:disabled,.AccessPanel-module_accessPanel__RXDzY button:disabled{opacity:.3}.AccessPanel-module_accessPanel__RXDzY .disabled\\:opacity-50:disabled{opacity:.5}.AccessPanel-module_accessPanel__RXDzY .disabled\\:cursor-not-allowed:disabled{cursor:not-allowed}.AccessPanel-module_accessPanel__RXDzY .cursor-pointer{cursor:pointer}.AccessPanel-module_accessPanel__RXDzY .cursor-not-allowed{cursor:not-allowed}.AccessPanel-module_accessPanel__RXDzY .cursor-default{cursor:default}.AccessPanel-module_accessPanel__RXDzY .select-none{user-select:none}.AccessPanel-module_accessPanel__RXDzY .select-text{user-select:text}.AccessPanel-module_accessPanel__RXDzY .opacity-0{opacity:0}.AccessPanel-module_accessPanel__RXDzY .opacity-30{opacity:.3}.AccessPanel-module_accessPanel__RXDzY .opacity-50{opacity:.5}.AccessPanel-module_accessPanel__RXDzY .opacity-75{opacity:.75}.AccessPanel-module_accessPanel__RXDzY .opacity-100{opacity:1}.AccessPanel-module_accessPanel__RXDzY .transition-all{transition:all .15s ease}.AccessPanel-module_accessPanel__RXDzY .transition-colors{transition:color .15s ease,background-color .15s ease,border-color .15s ease}.AccessPanel-module_accessPanel__RXDzY .transition-opacity{transition:opacity .15s ease}.AccessPanel-module_accessPanel__RXDzY .transition-transform{transition:transform .15s ease}.AccessPanel-module_accessPanel__RXDzY .duration-150{transition-duration:.15s}.AccessPanel-module_accessPanel__RXDzY .duration-200{transition-duration:.2s}.AccessPanel-module_accessPanel__RXDzY .duration-300{transition-duration:.3s}.AccessPanel-module_accessPanel__RXDzY .ease-in-out{transition-timing-function:ease-in-out}.AccessPanel-module_accessPanel__RXDzY .rotate-90{transform:rotate(90deg)}.AccessPanel-module_accessPanel__RXDzY .rotate-180{transform:rotate(180deg)}.AccessPanel-module_accessPanel__RXDzY .-rotate-90{transform:rotate(-90deg)}.AccessPanel-module_accessPanel__RXDzY .scale-95{transform:scale(.95)}.AccessPanel-module_accessPanel__RXDzY .scale-100{transform:scale(1)}.AccessPanel-module_accessPanel__RXDzY .list-none{list-style:none}.AccessPanel-module_accessPanel__RXDzY .list-disc{list-style:disc}.AccessPanel-module_accessPanel__RXDzY .object-cover{object-fit:cover}.AccessPanel-module_accessPanel__RXDzY .object-contain{object-fit:contain}.AccessPanel-module_accessPanel__RXDzY .sr-only{clip:rect(0,0,0,0);border:0;height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px}.AccessPanel-module_accessPanel__RXDzY .hover\\:bg-appsec-surface:hover{background-color:var(--appsec-surface)}.AccessPanel-module_accessPanel__RXDzY .hover\\:bg-appsec-surface-alt:hover{background-color:var(--appsec-surface-alt)}.AccessPanel-module_accessPanel__RXDzY .hover\\:bg-appsec-danger-light:hover{background-color:var(--appsec-danger-light)}.AccessPanel-module_accessPanel__RXDzY .hover\\:bg-gray-50:hover{background-color:#f9fafb}.AccessPanel-module_accessPanel__RXDzY .hover\\:bg-gray-100:hover{background-color:#f2f4f7}.AccessPanel-module_accessPanel__RXDzY .hover\\:text-appsec-text:hover{color:var(--appsec-text)}.AccessPanel-module_accessPanel__RXDzY .hover\\:text-appsec-danger:hover{color:var(--appsec-danger)}.AccessPanel-module_accessPanel__RXDzY .hover\\:text-appsec-primary:hover{color:var(--appsec-primary)}.AccessPanel-module_accessPanel__RXDzY .hover\\:border-appsec-primary:hover{border-color:var(--appsec-primary)}.AccessPanel-module_accessPanel__RXDzY .hover\\:underline:hover{text-decoration:underline}.AccessPanel-module_accessPanel__RXDzY .hover\\:opacity-80:hover{opacity:.8}.AccessPanel-module_accessPanel__RXDzY .hover\\:shadow-md:hover{box-shadow:0 4px 8px #10182814,0 2px 4px #1018280a}.AccessPanel-module_accessPanel__RXDzY .group:hover .group-hover\\:opacity-100{opacity:1}.AccessPanel-module_accessPanel__RXDzY .group-hover\\:opacity-100{opacity:0;transition:opacity .15s}");export{s as default};
|
|
1
|
+
import e from"../../../node_modules/style-inject/dist/style-inject.es.js";var s={accessPanel:"AccessPanel-module_accessPanel__RXDzY",emptyState:"AccessPanel-module_emptyState__EAuao"};e(".AccessPanel-module_accessPanel__RXDzY{--appsec-bg:#fff;--appsec-surface:#f9fafb;--appsec-surface-alt:#f2f4f7;--appsec-border:#d0d5dd;--appsec-text:#101828;--appsec-text-secondary:#475467;--appsec-text-tertiary:#667085;--appsec-primary:#2563eb;--appsec-primary-light:#eff6ff;--appsec-danger:#dc2626;--appsec-danger-light:#fef2f2;--appsec-success:#16a34a;--appsec-success-light:#f0fdf4;--appsec-warning:#d97706;--appsec-warning-light:#fffbeb;box-sizing:border-box;color:#101828;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;font-size:14px;height:100%;overflow:auto;padding:16px;width:100%}.AccessPanel-module_emptyState__EAuao{color:#667085;font-size:14px;margin:0}.AccessPanel-module_accessPanel__RXDzY *{box-sizing:border-box}.AccessPanel-module_accessPanel__RXDzY button,.AccessPanel-module_accessPanel__RXDzY input,.AccessPanel-module_accessPanel__RXDzY select,.AccessPanel-module_accessPanel__RXDzY textarea{font:inherit}.AccessPanel-module_accessPanel__RXDzY button{background:#0000;border:0;cursor:pointer}.AccessPanel-module_accessPanel__RXDzY p{margin:0}.AccessPanel-module_accessPanel__RXDzY .fixed{position:fixed}.AccessPanel-module_accessPanel__RXDzY .inset-0{inset:0}.AccessPanel-module_accessPanel__RXDzY .top-0{top:0}.AccessPanel-module_accessPanel__RXDzY .right-0{right:0}.AccessPanel-module_accessPanel__RXDzY .bottom-0{bottom:0}.AccessPanel-module_accessPanel__RXDzY .left-0{left:0}.AccessPanel-module_accessPanel__RXDzY .top-2{top:8px}.AccessPanel-module_accessPanel__RXDzY .top-4{top:16px}.AccessPanel-module_accessPanel__RXDzY .right-2{right:8px}.AccessPanel-module_accessPanel__RXDzY .right-4{right:16px}.AccessPanel-module_accessPanel__RXDzY .left-3{left:12px}.AccessPanel-module_accessPanel__RXDzY .right-2\\.5{right:10px}.AccessPanel-module_accessPanel__RXDzY .top-1\\.5{top:6px}.AccessPanel-module_accessPanel__RXDzY .top-2\\.5{top:10px}.AccessPanel-module_accessPanel__RXDzY .top-1\\/2{top:50%}.AccessPanel-module_accessPanel__RXDzY .left-1\\/2{left:50%}.AccessPanel-module_accessPanel__RXDzY .-translate-x-1\\/2{transform:translateX(-50%)}.AccessPanel-module_accessPanel__RXDzY .-translate-y-1\\/2{transform:translateY(-50%)}.AccessPanel-module_accessPanel__RXDzY .bg-black\\/40{background-color:#0006}.AccessPanel-module_accessPanel__RXDzY .bg-black\\/50{background-color:#00000080}.AccessPanel-module_accessPanel__RXDzY .flex{display:flex}.AccessPanel-module_accessPanel__RXDzY .inline-flex{display:inline-flex}.AccessPanel-module_accessPanel__RXDzY .block{display:block}.AccessPanel-module_accessPanel__RXDzY .inline-block{display:inline-block}.AccessPanel-module_accessPanel__RXDzY .hidden{display:none}.AccessPanel-module_accessPanel__RXDzY .grid{display:grid}.AccessPanel-module_accessPanel__RXDzY .flex-col{flex-direction:column}.AccessPanel-module_accessPanel__RXDzY .flex-row{flex-direction:row}.AccessPanel-module_accessPanel__RXDzY .flex-wrap{flex-wrap:wrap}.AccessPanel-module_accessPanel__RXDzY .flex-nowrap{flex-wrap:nowrap}.AccessPanel-module_accessPanel__RXDzY .flex-1{flex:1 1 0%}.AccessPanel-module_accessPanel__RXDzY .flex-auto{flex:1 1 auto}.AccessPanel-module_accessPanel__RXDzY .flex-none{flex:none}.AccessPanel-module_accessPanel__RXDzY .shrink-0{flex-shrink:0}.AccessPanel-module_accessPanel__RXDzY .grow{flex-grow:1}.AccessPanel-module_accessPanel__RXDzY .items-center{align-items:center}.AccessPanel-module_accessPanel__RXDzY .items-start{align-items:flex-start}.AccessPanel-module_accessPanel__RXDzY .items-end{align-items:flex-end}.AccessPanel-module_accessPanel__RXDzY .items-stretch{align-items:stretch}.AccessPanel-module_accessPanel__RXDzY .justify-center{justify-content:center}.AccessPanel-module_accessPanel__RXDzY .justify-between{justify-content:space-between}.AccessPanel-module_accessPanel__RXDzY .justify-end{justify-content:flex-end}.AccessPanel-module_accessPanel__RXDzY .justify-start{justify-content:flex-start}.AccessPanel-module_accessPanel__RXDzY .self-center{align-self:center}.AccessPanel-module_accessPanel__RXDzY .self-start{align-self:flex-start}.AccessPanel-module_accessPanel__RXDzY .self-end{align-self:flex-end}.AccessPanel-module_accessPanel__RXDzY .gap-0{gap:0}.AccessPanel-module_accessPanel__RXDzY .gap-0\\.5{gap:2px}.AccessPanel-module_accessPanel__RXDzY .gap-1{gap:4px}.AccessPanel-module_accessPanel__RXDzY .gap-1\\.5{gap:6px}.AccessPanel-module_accessPanel__RXDzY .gap-2{gap:8px}.AccessPanel-module_accessPanel__RXDzY .gap-2\\.5{gap:10px}.AccessPanel-module_accessPanel__RXDzY .gap-3{gap:12px}.AccessPanel-module_accessPanel__RXDzY .gap-4{gap:16px}.AccessPanel-module_accessPanel__RXDzY .gap-5{gap:20px}.AccessPanel-module_accessPanel__RXDzY .gap-6{gap:24px}.AccessPanel-module_accessPanel__RXDzY .gap-x-2{column-gap:8px}.AccessPanel-module_accessPanel__RXDzY .gap-x-3{column-gap:12px}.AccessPanel-module_accessPanel__RXDzY .gap-y-2{row-gap:8px}.AccessPanel-module_accessPanel__RXDzY .gap-y-3{row-gap:12px}.AccessPanel-module_accessPanel__RXDzY .space-y-1>:not([hidden])~:not([hidden]){margin-top:4px}.AccessPanel-module_accessPanel__RXDzY .space-y-2>:not([hidden])~:not([hidden]){margin-top:8px}.AccessPanel-module_accessPanel__RXDzY .space-y-3>:not([hidden])~:not([hidden]){margin-top:12px}.AccessPanel-module_accessPanel__RXDzY .space-y-4>:not([hidden])~:not([hidden]){margin-top:16px}.AccessPanel-module_accessPanel__RXDzY .space-x-2>:not([hidden])~:not([hidden]){margin-left:8px}.AccessPanel-module_accessPanel__RXDzY .space-x-3>:not([hidden])~:not([hidden]){margin-left:12px}.AccessPanel-module_accessPanel__RXDzY .relative{position:relative}.AccessPanel-module_accessPanel__RXDzY .absolute{position:absolute}.AccessPanel-module_accessPanel__RXDzY .sticky{position:sticky}.AccessPanel-module_accessPanel__RXDzY .z-10{z-index:10}.AccessPanel-module_accessPanel__RXDzY .z-20{z-index:20}.AccessPanel-module_accessPanel__RXDzY .z-50{z-index:50}.AccessPanel-module_accessPanel__RXDzY .z-100{z-index:100}.AccessPanel-module_accessPanel__RXDzY .pointer-events-none{pointer-events:none}.AccessPanel-module_accessPanel__RXDzY .pointer-events-auto{pointer-events:auto}.AccessPanel-module_accessPanel__RXDzY .w-full{width:100%}.AccessPanel-module_accessPanel__RXDzY .h-full{height:100%}.AccessPanel-module_accessPanel__RXDzY .w-auto{width:auto}.AccessPanel-module_accessPanel__RXDzY .h-auto{height:auto}.AccessPanel-module_accessPanel__RXDzY .w-fit{width:fit-content}.AccessPanel-module_accessPanel__RXDzY .w-3{width:12px}.AccessPanel-module_accessPanel__RXDzY .h-3{height:12px}.AccessPanel-module_accessPanel__RXDzY .w-3\\.5{width:14px}.AccessPanel-module_accessPanel__RXDzY .h-3\\.5{height:14px}.AccessPanel-module_accessPanel__RXDzY .w-4{width:16px}.AccessPanel-module_accessPanel__RXDzY .h-4{height:16px}.AccessPanel-module_accessPanel__RXDzY .w-5{width:20px}.AccessPanel-module_accessPanel__RXDzY .h-5{height:20px}.AccessPanel-module_accessPanel__RXDzY .w-6{width:24px}.AccessPanel-module_accessPanel__RXDzY .h-6{height:24px}.AccessPanel-module_accessPanel__RXDzY .w-7{width:28px}.AccessPanel-module_accessPanel__RXDzY .h-7{height:28px}.AccessPanel-module_accessPanel__RXDzY .w-8{width:32px}.AccessPanel-module_accessPanel__RXDzY .h-8{height:32px}.AccessPanel-module_accessPanel__RXDzY .w-9{width:36px}.AccessPanel-module_accessPanel__RXDzY .h-9{height:36px}.AccessPanel-module_accessPanel__RXDzY .w-10{width:40px}.AccessPanel-module_accessPanel__RXDzY .h-10{height:40px}.AccessPanel-module_accessPanel__RXDzY .w-12{width:48px}.AccessPanel-module_accessPanel__RXDzY .h-12{height:48px}.AccessPanel-module_accessPanel__RXDzY .w-14{width:56px}.AccessPanel-module_accessPanel__RXDzY .w-16{width:64px}.AccessPanel-module_accessPanel__RXDzY .w-20{width:80px}.AccessPanel-module_accessPanel__RXDzY .w-24{width:96px}.AccessPanel-module_accessPanel__RXDzY .w-28{width:112px}.AccessPanel-module_accessPanel__RXDzY .w-32{width:128px}.AccessPanel-module_accessPanel__RXDzY .w-40{width:160px}.AccessPanel-module_accessPanel__RXDzY .w-48{width:192px}.AccessPanel-module_accessPanel__RXDzY .w-64{width:256px}.AccessPanel-module_accessPanel__RXDzY .w-80{width:320px}.AccessPanel-module_accessPanel__RXDzY .min-w-0{min-width:0}.AccessPanel-module_accessPanel__RXDzY .min-w-32{min-width:128px}.AccessPanel-module_accessPanel__RXDzY .min-w-40{min-width:160px}.AccessPanel-module_accessPanel__RXDzY .min-w-48{min-width:192px}.AccessPanel-module_accessPanel__RXDzY .max-w-xs{max-width:320px}.AccessPanel-module_accessPanel__RXDzY .max-w-sm{max-width:384px}.AccessPanel-module_accessPanel__RXDzY .max-w-md{max-width:448px}.AccessPanel-module_accessPanel__RXDzY .max-w-lg{max-width:512px}.AccessPanel-module_accessPanel__RXDzY .max-w-full{max-width:100%}.AccessPanel-module_accessPanel__RXDzY .max-h-60{max-height:240px}.AccessPanel-module_accessPanel__RXDzY .max-h-72{max-height:288px}.AccessPanel-module_accessPanel__RXDzY .max-h-96{max-height:384px}.AccessPanel-module_accessPanel__RXDzY .min-h-0{min-height:0}.AccessPanel-module_accessPanel__RXDzY .rounded-none{border-radius:0}.AccessPanel-module_accessPanel__RXDzY .rounded-sm{border-radius:2px}.AccessPanel-module_accessPanel__RXDzY .rounded{border-radius:4px}.AccessPanel-module_accessPanel__RXDzY .rounded-md{border-radius:6px}.AccessPanel-module_accessPanel__RXDzY .rounded-lg{border-radius:8px}.AccessPanel-module_accessPanel__RXDzY .rounded-xl{border-radius:12px}.AccessPanel-module_accessPanel__RXDzY .rounded-2xl{border-radius:16px}.AccessPanel-module_accessPanel__RXDzY .rounded-full{border-radius:9999px}.AccessPanel-module_accessPanel__RXDzY .rounded-appsec{border-radius:8px}.AccessPanel-module_accessPanel__RXDzY .rounded-t-lg{border-top-left-radius:8px;border-top-right-radius:8px}.AccessPanel-module_accessPanel__RXDzY .rounded-b-lg{border-bottom-left-radius:8px;border-bottom-right-radius:8px}.AccessPanel-module_accessPanel__RXDzY .rounded-l-lg{border-bottom-left-radius:8px;border-top-left-radius:8px}.AccessPanel-module_accessPanel__RXDzY .rounded-r-lg{border-bottom-right-radius:8px;border-top-right-radius:8px}.AccessPanel-module_accessPanel__RXDzY .rounded-t-md{border-top-left-radius:6px;border-top-right-radius:6px}.AccessPanel-module_accessPanel__RXDzY .rounded-b-md{border-bottom-left-radius:6px;border-bottom-right-radius:6px}.AccessPanel-module_accessPanel__RXDzY .rounded-t-xl{border-top-left-radius:12px;border-top-right-radius:12px}.AccessPanel-module_accessPanel__RXDzY .rounded-b-xl{border-bottom-left-radius:12px;border-bottom-right-radius:12px}.AccessPanel-module_accessPanel__RXDzY .border{border:1px solid var(--appsec-border)}.AccessPanel-module_accessPanel__RXDzY .border-0{border:0}.AccessPanel-module_accessPanel__RXDzY .border-2{border:2px solid var(--appsec-border)}.AccessPanel-module_accessPanel__RXDzY .border-t{border-top:1px solid var(--appsec-border)}.AccessPanel-module_accessPanel__RXDzY .border-b{border-bottom:1px solid var(--appsec-border)}.AccessPanel-module_accessPanel__RXDzY .border-l{border-left:1px solid var(--appsec-border)}.AccessPanel-module_accessPanel__RXDzY .border-r{border-right:1px solid var(--appsec-border)}.AccessPanel-module_accessPanel__RXDzY .border-t-0{border-top:0}.AccessPanel-module_accessPanel__RXDzY .border-b-0{border-bottom:0}.AccessPanel-module_accessPanel__RXDzY .border-appsec-border{border-color:var(--appsec-border)}.AccessPanel-module_accessPanel__RXDzY .border-appsec-primary{border-color:var(--appsec-primary)}.AccessPanel-module_accessPanel__RXDzY .border-appsec-danger{border-color:var(--appsec-danger)}.AccessPanel-module_accessPanel__RXDzY .border-transparent{border-color:#0000}.AccessPanel-module_accessPanel__RXDzY .border-gray-200{border-color:#eaecf0}.AccessPanel-module_accessPanel__RXDzY .border-blue-200{border-color:#bfdbfe}.AccessPanel-module_accessPanel__RXDzY .divide-y>:not([hidden])~:not([hidden]){border-top:1px solid var(--appsec-border)}.AccessPanel-module_accessPanel__RXDzY .divide-x>:not([hidden])~:not([hidden]){border-left:1px solid var(--appsec-border)}.AccessPanel-module_accessPanel__RXDzY [role=tablist]{background:var(--appsec-surface);border:1px solid var(--appsec-border);border-radius:8px;display:grid;grid-auto-columns:1fr;grid-auto-flow:column;overflow:hidden}.AccessPanel-module_accessPanel__RXDzY [role=tab]{background:#0000;border:none;border-radius:0;color:var(--appsec-text-secondary);cursor:pointer;font-size:13px;font-weight:400;padding:8px 12px;text-align:center;transition:background .12s,color .12s;white-space:nowrap}.AccessPanel-module_accessPanel__RXDzY [role=tab].active,.AccessPanel-module_accessPanel__RXDzY [role=tab][aria-selected=true],.AccessPanel-module_accessPanel__RXDzY [role=tab][data-state=active]{background:var(--appsec-primary);color:#fff;font-weight:500}.AccessPanel-module_accessPanel__RXDzY [role=tab]:not([aria-selected=true]):not([data-state=active]):not(.active):hover{background:var(--appsec-surface-alt);color:var(--appsec-text)}.AccessPanel-module_accessPanel__RXDzY .overflow-hidden{overflow:hidden}.AccessPanel-module_accessPanel__RXDzY .overflow-auto{overflow:auto}.AccessPanel-module_accessPanel__RXDzY .overflow-y-auto{overflow-y:auto}.AccessPanel-module_accessPanel__RXDzY .overflow-x-auto{overflow-x:auto}.AccessPanel-module_accessPanel__RXDzY .overflow-visible{overflow:visible}.AccessPanel-module_accessPanel__RXDzY .truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.AccessPanel-module_accessPanel__RXDzY .whitespace-nowrap{white-space:nowrap}.AccessPanel-module_accessPanel__RXDzY .whitespace-normal{white-space:normal}.AccessPanel-module_accessPanel__RXDzY .break-words{overflow-wrap:break-word}.AccessPanel-module_accessPanel__RXDzY .break-all{word-break:break-all}.AccessPanel-module_accessPanel__RXDzY .text-left{text-align:left}.AccessPanel-module_accessPanel__RXDzY .text-center{text-align:center}.AccessPanel-module_accessPanel__RXDzY .text-right{text-align:right}.AccessPanel-module_accessPanel__RXDzY .text-xs{font-size:12px;line-height:16px}.AccessPanel-module_accessPanel__RXDzY .text-sm{font-size:14px;line-height:20px}.AccessPanel-module_accessPanel__RXDzY .text-base{font-size:16px;line-height:24px}.AccessPanel-module_accessPanel__RXDzY .text-lg{font-size:18px;line-height:28px}.AccessPanel-module_accessPanel__RXDzY .text-xl{font-size:20px;line-height:28px}.AccessPanel-module_accessPanel__RXDzY .text-2xl{font-size:24px;line-height:32px}.AccessPanel-module_accessPanel__RXDzY .text-\\[10px\\]{font-size:10px;line-height:14px}.AccessPanel-module_accessPanel__RXDzY .text-\\[11px\\]{font-size:11px;line-height:16px}.AccessPanel-module_accessPanel__RXDzY .text-\\[13px\\]{font-size:13px;line-height:18px}.AccessPanel-module_accessPanel__RXDzY .font-normal{font-weight:400}.AccessPanel-module_accessPanel__RXDzY .font-medium{font-weight:500}.AccessPanel-module_accessPanel__RXDzY .font-semibold{font-weight:600}.AccessPanel-module_accessPanel__RXDzY .font-bold{font-weight:700}.AccessPanel-module_accessPanel__RXDzY .italic{font-style:italic}.AccessPanel-module_accessPanel__RXDzY .not-italic{font-style:normal}.AccessPanel-module_accessPanel__RXDzY .uppercase{text-transform:uppercase}.AccessPanel-module_accessPanel__RXDzY .lowercase{text-transform:lowercase}.AccessPanel-module_accessPanel__RXDzY .capitalize{text-transform:capitalize}.AccessPanel-module_accessPanel__RXDzY .normal-case{text-transform:none}.AccessPanel-module_accessPanel__RXDzY .underline{text-decoration:underline}.AccessPanel-module_accessPanel__RXDzY .no-underline{text-decoration:none}.AccessPanel-module_accessPanel__RXDzY .line-through{text-decoration:line-through}.AccessPanel-module_accessPanel__RXDzY .leading-none{line-height:1}.AccessPanel-module_accessPanel__RXDzY .leading-tight{line-height:1.25}.AccessPanel-module_accessPanel__RXDzY .leading-snug{line-height:1.375}.AccessPanel-module_accessPanel__RXDzY .leading-normal{line-height:1.5}.AccessPanel-module_accessPanel__RXDzY .leading-relaxed{line-height:1.625}.AccessPanel-module_accessPanel__RXDzY .text-white{color:#fff}.AccessPanel-module_accessPanel__RXDzY .text-black{color:#000}.AccessPanel-module_accessPanel__RXDzY .text-appsec-text{color:var(--appsec-text)}.AccessPanel-module_accessPanel__RXDzY .text-appsec-text-secondary{color:var(--appsec-text-secondary)}.AccessPanel-module_accessPanel__RXDzY .text-appsec-text-tertiary{color:var(--appsec-text-tertiary)}.AccessPanel-module_accessPanel__RXDzY .text-appsec-primary{color:var(--appsec-primary)}.AccessPanel-module_accessPanel__RXDzY .text-appsec-danger{color:var(--appsec-danger)}.AccessPanel-module_accessPanel__RXDzY .text-appsec-success{color:var(--appsec-success)}.AccessPanel-module_accessPanel__RXDzY .text-appsec-warning{color:var(--appsec-warning)}.AccessPanel-module_accessPanel__RXDzY .text-gray-400{color:#98a2b3}.AccessPanel-module_accessPanel__RXDzY .text-gray-500{color:#667085}.AccessPanel-module_accessPanel__RXDzY .text-gray-600{color:#475467}.AccessPanel-module_accessPanel__RXDzY .text-gray-700{color:#344054}.AccessPanel-module_accessPanel__RXDzY .text-gray-900{color:#101828}.AccessPanel-module_accessPanel__RXDzY .text-blue-600{color:#2563eb}.AccessPanel-module_accessPanel__RXDzY .text-blue-700{color:#1d4ed8}.AccessPanel-module_accessPanel__RXDzY .text-red-600{color:#dc2626}.AccessPanel-module_accessPanel__RXDzY .text-red-700{color:#b91c1c}.AccessPanel-module_accessPanel__RXDzY .text-green-600{color:#16a34a}.AccessPanel-module_accessPanel__RXDzY .text-green-700{color:#15803d}.AccessPanel-module_accessPanel__RXDzY .bg-appsec-bg{background-color:var(--appsec-bg)}.AccessPanel-module_accessPanel__RXDzY .bg-appsec-surface{background-color:var(--appsec-surface)}.AccessPanel-module_accessPanel__RXDzY .bg-appsec-surface-alt{background-color:var(--appsec-surface-alt)}.AccessPanel-module_accessPanel__RXDzY .bg-appsec-primary{background-color:var(--appsec-primary)}.AccessPanel-module_accessPanel__RXDzY .bg-appsec-primary-light{background-color:var(--appsec-primary-light)}.AccessPanel-module_accessPanel__RXDzY .bg-appsec-danger{background-color:var(--appsec-danger)}.AccessPanel-module_accessPanel__RXDzY .bg-appsec-danger-light{background-color:var(--appsec-danger-light)}.AccessPanel-module_accessPanel__RXDzY .bg-appsec-success-light{background-color:var(--appsec-success-light)}.AccessPanel-module_accessPanel__RXDzY .bg-appsec-warning-light{background-color:var(--appsec-warning-light)}.AccessPanel-module_accessPanel__RXDzY .bg-transparent{background-color:initial}.AccessPanel-module_accessPanel__RXDzY .bg-white{background-color:#fff}.AccessPanel-module_accessPanel__RXDzY .bg-gray-50{background-color:#f9fafb}.AccessPanel-module_accessPanel__RXDzY .bg-gray-100{background-color:#f2f4f7}.AccessPanel-module_accessPanel__RXDzY .bg-gray-200{background-color:#eaecf0}.AccessPanel-module_accessPanel__RXDzY .bg-blue-50{background-color:#eff6ff}.AccessPanel-module_accessPanel__RXDzY .bg-blue-600{background-color:#2563eb}.AccessPanel-module_accessPanel__RXDzY .bg-red-50{background-color:#fef2f2}.AccessPanel-module_accessPanel__RXDzY .bg-red-600{background-color:#dc2626}.AccessPanel-module_accessPanel__RXDzY .bg-green-50{background-color:#f0fdf4}.AccessPanel-module_accessPanel__RXDzY .bg-yellow-50{background-color:#fffbeb}.AccessPanel-module_accessPanel__RXDzY .bg-blue-500{background-color:#3b82f6}.AccessPanel-module_accessPanel__RXDzY .bg-purple-500{background-color:#a855f7}.AccessPanel-module_accessPanel__RXDzY .bg-green-600{background-color:#16a34a}.AccessPanel-module_accessPanel__RXDzY .bg-orange-500{background-color:#f97316}.AccessPanel-module_accessPanel__RXDzY .bg-pink-500{background-color:#ec4899}.AccessPanel-module_accessPanel__RXDzY .bg-teal-500{background-color:#14b8a6}.AccessPanel-module_accessPanel__RXDzY .bg-indigo-500{background-color:#6366f1}.AccessPanel-module_accessPanel__RXDzY .bg-rose-500{background-color:#f43f5e}.AccessPanel-module_accessPanel__RXDzY .p-0{padding:0}.AccessPanel-module_accessPanel__RXDzY .p-0\\.5{padding:2px}.AccessPanel-module_accessPanel__RXDzY .p-1{padding:4px}.AccessPanel-module_accessPanel__RXDzY .p-1\\.5{padding:6px}.AccessPanel-module_accessPanel__RXDzY .p-2{padding:8px}.AccessPanel-module_accessPanel__RXDzY .p-2\\.5{padding:10px}.AccessPanel-module_accessPanel__RXDzY .p-3{padding:12px}.AccessPanel-module_accessPanel__RXDzY .p-4{padding:16px}.AccessPanel-module_accessPanel__RXDzY .p-5{padding:20px}.AccessPanel-module_accessPanel__RXDzY .p-6{padding:24px}.AccessPanel-module_accessPanel__RXDzY .px-1{padding-left:4px;padding-right:4px}.AccessPanel-module_accessPanel__RXDzY .px-2{padding-left:8px;padding-right:8px}.AccessPanel-module_accessPanel__RXDzY .px-2\\.5{padding-left:10px;padding-right:10px}.AccessPanel-module_accessPanel__RXDzY .px-3{padding-left:12px;padding-right:12px}.AccessPanel-module_accessPanel__RXDzY .px-4{padding-left:16px;padding-right:16px}.AccessPanel-module_accessPanel__RXDzY .px-5{padding-left:20px;padding-right:20px}.AccessPanel-module_accessPanel__RXDzY .px-6{padding-left:24px;padding-right:24px}.AccessPanel-module_accessPanel__RXDzY .py-0\\.5{padding-bottom:2px;padding-top:2px}.AccessPanel-module_accessPanel__RXDzY .py-1{padding-bottom:4px;padding-top:4px}.AccessPanel-module_accessPanel__RXDzY .py-1\\.5{padding-bottom:6px;padding-top:6px}.AccessPanel-module_accessPanel__RXDzY .py-2{padding-bottom:8px;padding-top:8px}.AccessPanel-module_accessPanel__RXDzY .py-2\\.5{padding-bottom:10px;padding-top:10px}.AccessPanel-module_accessPanel__RXDzY .py-3{padding-bottom:12px;padding-top:12px}.AccessPanel-module_accessPanel__RXDzY .py-4{padding-bottom:16px;padding-top:16px}.AccessPanel-module_accessPanel__RXDzY .py-5{padding-bottom:20px;padding-top:20px}.AccessPanel-module_accessPanel__RXDzY .py-6{padding-bottom:24px;padding-top:24px}.AccessPanel-module_accessPanel__RXDzY .py-8{padding-bottom:32px;padding-top:32px}.AccessPanel-module_accessPanel__RXDzY .pt-0{padding-top:0}.AccessPanel-module_accessPanel__RXDzY .pt-1{padding-top:4px}.AccessPanel-module_accessPanel__RXDzY .pt-2{padding-top:8px}.AccessPanel-module_accessPanel__RXDzY .pt-3{padding-top:12px}.AccessPanel-module_accessPanel__RXDzY .pt-4{padding-top:16px}.AccessPanel-module_accessPanel__RXDzY .pb-0{padding-bottom:0}.AccessPanel-module_accessPanel__RXDzY .pb-1{padding-bottom:4px}.AccessPanel-module_accessPanel__RXDzY .pb-2{padding-bottom:8px}.AccessPanel-module_accessPanel__RXDzY .pb-3{padding-bottom:12px}.AccessPanel-module_accessPanel__RXDzY .pb-4{padding-bottom:16px}.AccessPanel-module_accessPanel__RXDzY .pl-0{padding-left:0}.AccessPanel-module_accessPanel__RXDzY .pl-2{padding-left:8px}.AccessPanel-module_accessPanel__RXDzY .pl-3{padding-left:12px}.AccessPanel-module_accessPanel__RXDzY .pl-4{padding-left:16px}.AccessPanel-module_accessPanel__RXDzY .pl-9{padding-left:36px}.AccessPanel-module_accessPanel__RXDzY .pr-0{padding-right:0}.AccessPanel-module_accessPanel__RXDzY .pr-2{padding-right:8px}.AccessPanel-module_accessPanel__RXDzY .pr-3{padding-right:12px}.AccessPanel-module_accessPanel__RXDzY .pr-4{padding-right:16px}.AccessPanel-module_accessPanel__RXDzY .pr-6{padding-right:24px}.AccessPanel-module_accessPanel__RXDzY .pr-8{padding-right:32px}.AccessPanel-module_accessPanel__RXDzY .pr-10{padding-right:40px}.AccessPanel-module_accessPanel__RXDzY .m-0{margin:0}.AccessPanel-module_accessPanel__RXDzY .m-1{margin:4px}.AccessPanel-module_accessPanel__RXDzY .m-2{margin:8px}.AccessPanel-module_accessPanel__RXDzY .m-auto{margin:auto}.AccessPanel-module_accessPanel__RXDzY .mx-auto{margin-left:auto;margin-right:auto}.AccessPanel-module_accessPanel__RXDzY .ml-auto{margin-left:auto}.AccessPanel-module_accessPanel__RXDzY .mr-auto{margin-right:auto}.AccessPanel-module_accessPanel__RXDzY .mt-0{margin-top:0}.AccessPanel-module_accessPanel__RXDzY .mt-1{margin-top:4px}.AccessPanel-module_accessPanel__RXDzY .mt-2{margin-top:8px}.AccessPanel-module_accessPanel__RXDzY .mt-3{margin-top:12px}.AccessPanel-module_accessPanel__RXDzY .mt-4{margin-top:16px}.AccessPanel-module_accessPanel__RXDzY .mt-6{margin-top:24px}.AccessPanel-module_accessPanel__RXDzY .mb-0{margin-bottom:0}.AccessPanel-module_accessPanel__RXDzY .mb-1{margin-bottom:4px}.AccessPanel-module_accessPanel__RXDzY .mb-2{margin-bottom:8px}.AccessPanel-module_accessPanel__RXDzY .mb-3{margin-bottom:12px}.AccessPanel-module_accessPanel__RXDzY .mb-4{margin-bottom:16px}.AccessPanel-module_accessPanel__RXDzY .ml-0{margin-left:0}.AccessPanel-module_accessPanel__RXDzY .ml-1{margin-left:4px}.AccessPanel-module_accessPanel__RXDzY .ml-2{margin-left:8px}.AccessPanel-module_accessPanel__RXDzY .ml-3{margin-left:12px}.AccessPanel-module_accessPanel__RXDzY .mr-0{margin-right:0}.AccessPanel-module_accessPanel__RXDzY .mr-1{margin-right:4px}.AccessPanel-module_accessPanel__RXDzY .mr-2{margin-right:8px}.AccessPanel-module_accessPanel__RXDzY .-mt-px{margin-top:-1px}.AccessPanel-module_accessPanel__RXDzY .shadow-none{box-shadow:none}.AccessPanel-module_accessPanel__RXDzY .shadow-sm{box-shadow:0 1px 2px #1018280f}.AccessPanel-module_accessPanel__RXDzY .shadow{box-shadow:0 1px 3px #1018281a,0 1px 2px #1018280f}.AccessPanel-module_accessPanel__RXDzY .shadow-md{box-shadow:0 4px 8px #10182814,0 2px 4px #1018280a}.AccessPanel-module_accessPanel__RXDzY .shadow-lg{box-shadow:0 12px 24px #1018281f}.AccessPanel-module_accessPanel__RXDzY .shadow-xl{box-shadow:0 20px 40px #10182829}.AccessPanel-module_accessPanel__RXDzY :where(input[type=text],input[type=email],input[type=search],input[type=password],textarea,select){background-color:var(--appsec-bg);border:1px solid var(--appsec-border);border-radius:8px;color:var(--appsec-text);height:36px;outline:none;padding:0 12px;transition:border-color .12s,box-shadow .12s;width:100%}.AccessPanel-module_accessPanel__RXDzY :where(textarea){height:auto;padding:8px 12px;resize:vertical}.AccessPanel-module_accessPanel__RXDzY :where(input[type=text]:focus,input[type=email]:focus,input[type=search]:focus,input[type=password]:focus,textarea:focus,select:focus){border-color:var(--appsec-primary);box-shadow:0 0 0 3px var(--appsec-primary-light)}.AccessPanel-module_accessPanel__RXDzY :where(input::placeholder,textarea::placeholder){color:var(--appsec-text-tertiary)}.AccessPanel-module_accessPanel__RXDzY :where(input[type=checkbox]){accent-color:var(--appsec-primary);height:16px;width:16px}.AccessPanel-module_accessPanel__RXDzY .appearance-none{appearance:none}.AccessPanel-module_accessPanel__RXDzY .outline-none{outline:0}.AccessPanel-module_accessPanel__RXDzY .focus\\:border-appsec-primary:focus{border-color:var(--appsec-primary)}.AccessPanel-module_accessPanel__RXDzY .focus\\:ring-2:focus{box-shadow:0 0 0 3px var(--appsec-primary-light)}.AccessPanel-module_accessPanel__RXDzY .focus\\:outline-none:focus{outline:0}.AccessPanel-module_accessPanel__RXDzY button:hover:not(:disabled){opacity:.92}.AccessPanel-module_accessPanel__RXDzY .disabled\\:opacity-30:disabled,.AccessPanel-module_accessPanel__RXDzY button:disabled{opacity:.3}.AccessPanel-module_accessPanel__RXDzY .disabled\\:opacity-50:disabled{opacity:.5}.AccessPanel-module_accessPanel__RXDzY .disabled\\:cursor-not-allowed:disabled{cursor:not-allowed}.AccessPanel-module_accessPanel__RXDzY .cursor-pointer{cursor:pointer}.AccessPanel-module_accessPanel__RXDzY .cursor-not-allowed{cursor:not-allowed}.AccessPanel-module_accessPanel__RXDzY .cursor-default{cursor:default}.AccessPanel-module_accessPanel__RXDzY .select-none{user-select:none}.AccessPanel-module_accessPanel__RXDzY .select-text{user-select:text}.AccessPanel-module_accessPanel__RXDzY .opacity-0{opacity:0}.AccessPanel-module_accessPanel__RXDzY .opacity-30{opacity:.3}.AccessPanel-module_accessPanel__RXDzY .opacity-50{opacity:.5}.AccessPanel-module_accessPanel__RXDzY .opacity-75{opacity:.75}.AccessPanel-module_accessPanel__RXDzY .opacity-100{opacity:1}.AccessPanel-module_accessPanel__RXDzY .transition-all{transition:all .15s ease}.AccessPanel-module_accessPanel__RXDzY .transition-colors{transition:color .15s ease,background-color .15s ease,border-color .15s ease}.AccessPanel-module_accessPanel__RXDzY .transition-opacity{transition:opacity .15s ease}.AccessPanel-module_accessPanel__RXDzY .transition-transform{transition:transform .15s ease}.AccessPanel-module_accessPanel__RXDzY .duration-150{transition-duration:.15s}.AccessPanel-module_accessPanel__RXDzY .duration-200{transition-duration:.2s}.AccessPanel-module_accessPanel__RXDzY .duration-300{transition-duration:.3s}.AccessPanel-module_accessPanel__RXDzY .ease-in-out{transition-timing-function:ease-in-out}.AccessPanel-module_accessPanel__RXDzY .rotate-90{transform:rotate(90deg)}.AccessPanel-module_accessPanel__RXDzY .rotate-180{transform:rotate(180deg)}.AccessPanel-module_accessPanel__RXDzY .-rotate-90{transform:rotate(-90deg)}.AccessPanel-module_accessPanel__RXDzY .scale-95{transform:scale(.95)}.AccessPanel-module_accessPanel__RXDzY .scale-100{transform:scale(1)}.AccessPanel-module_accessPanel__RXDzY .list-none{list-style:none}.AccessPanel-module_accessPanel__RXDzY .list-disc{list-style:disc}.AccessPanel-module_accessPanel__RXDzY .object-cover{object-fit:cover}.AccessPanel-module_accessPanel__RXDzY .object-contain{object-fit:contain}.AccessPanel-module_accessPanel__RXDzY .sr-only{clip:rect(0,0,0,0);border:0;height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px}.AccessPanel-module_accessPanel__RXDzY .hover\\:bg-appsec-surface:hover{background-color:var(--appsec-surface)}.AccessPanel-module_accessPanel__RXDzY .hover\\:bg-appsec-surface-alt:hover{background-color:var(--appsec-surface-alt)}.AccessPanel-module_accessPanel__RXDzY .hover\\:bg-appsec-danger-light:hover{background-color:var(--appsec-danger-light)}.AccessPanel-module_accessPanel__RXDzY .hover\\:bg-gray-50:hover{background-color:#f9fafb}.AccessPanel-module_accessPanel__RXDzY .hover\\:bg-gray-100:hover{background-color:#f2f4f7}.AccessPanel-module_accessPanel__RXDzY .hover\\:text-appsec-text:hover{color:var(--appsec-text)}.AccessPanel-module_accessPanel__RXDzY .hover\\:text-appsec-danger:hover{color:var(--appsec-danger)}.AccessPanel-module_accessPanel__RXDzY .hover\\:text-appsec-primary:hover{color:var(--appsec-primary)}.AccessPanel-module_accessPanel__RXDzY .hover\\:border-appsec-primary:hover{border-color:var(--appsec-primary)}.AccessPanel-module_accessPanel__RXDzY .hover\\:underline:hover{text-decoration:underline}.AccessPanel-module_accessPanel__RXDzY .hover\\:opacity-80:hover{opacity:.8}.AccessPanel-module_accessPanel__RXDzY .hover\\:shadow-md:hover{box-shadow:0 4px 8px #10182814,0 2px 4px #1018280a}.AccessPanel-module_accessPanel__RXDzY .group:hover .group-hover\\:opacity-100{opacity:1}.AccessPanel-module_accessPanel__RXDzY .group-hover\\:opacity-100{opacity:0;transition:opacity .15s}");export{s as default};
|
|
2
2
|
//# sourceMappingURL=AccessPanel.module.css.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{__awaiter as e,__generator as o,__assign as r,__spreadArray as i}from"tslib";import{jsx as n,jsxs as t,Fragment as l}from"react/jsx-runtime";import{useState as a,useRef as d,useEffect as
|
|
1
|
+
import{__awaiter as e,__generator as o,__assign as r,__spreadArray as i}from"tslib";import{jsx as n,jsxs as t,Fragment as l}from"react/jsx-runtime";import{useState as a,useRef as d,useEffect as c}from"react";import{useMutation as s}from"@tanstack/react-query";import{X as p,Loader2 as u}from"lucide-react";import{Toast as m}from"primereact/toast";import{v4 as f}from"uuid";import h from"../components/StationOnboarding/StationAutocomplete.js";import g from"./AddScopeApprovalSearchComponent.js";import v from"../components/ScopeSkeletonLoader.js";import{Input as y}from"@mui/material";import b from"../store/useAuthStore.js";import{useAppSecRolesStore as S}from"../store/useAppSecRolesStore.js";import C from"../store/useEnvStore.js";import{createRuleSet as x}from"../apis/scopeApis.js";import{useLearningTemplateStore as w}from"../store/useLearningTemplateStore.js";import{IL_CONFIG_CONSTANTS as _}from"../config.js";var k=function(k){var A=k.isOpen,R=k.onClose,D=k.onCreate,I=k.hasGlobalRuleSet,q=a(""),z=q[0],F=q[1],j=a(""),E=j[0],L=j[1],B=a({}),N=B[0],W=B[1],G=d(null),P=b().user,O=S(function(e){return e.roles}),T=C(function(e){return e.rbacConfig}),M=a(null),K=M[0],U=M[1],H=a("approval_required"),J=H[0],Q=H[1],V=a([]),X=V[0],Y=V[1],Z=a([]),$=Z[0],ee=Z[1],oe=a(""),re=oe[0],ie=oe[1],ne=s({mutationFn:function(r){return e(void 0,void 0,void 0,function(){var e;return o(this,function(o){switch(o.label){case 0:return[4,x(r,null!==(e=null==P?void 0:P.accessToken)&&void 0!==e?e:"")];case 1:return[2,o.sent()]}})})},onSuccess:function(r){return e(void 0,void 0,void 0,function(){return o(this,function(e){return console.log("Rule Set Created Successfully",r),[2]})})}}),te=ne.data,le=ne.isPending,ae=ne.mutateAsync;return c(function(){A&&(F(""),L(""),W({}),U(null),Q("approval_required"),Y([]),ee([]),ie(""))},[A]),A?le?n(v,{isLoading:le}):t("div",r({style:{position:"absolute",inset:0,zIndex:50,display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:"rgba(0,0,0,0.3)"}},{children:[n(m,{ref:G}),t("div",r({style:{position:"relative",width:600,borderRadius:12,backgroundColor:"white",padding:24,boxShadow:"0 25px 50px -12px rgba(0,0,0,0.25)"}},{children:[t("div",r({style:{marginBottom:24,display:"flex",alignItems:"flex-start",justifyContent:"space-between"}},{children:[t("div",{children:[n("h2",r({style:{margin:0,fontSize:18,fontWeight:500,color:"#19213D"}},{children:"Add Scope"})),n("p",r({style:{margin:"4px 0 0 0",fontSize:14,fontWeight:400,color:"#666F8D"}},{children:"This scope will be created under Global and will inherit its Learnings by default."}))]}),n("button",r({onClick:R,style:{background:"none",border:"none",padding:0,cursor:"pointer",color:"#9CA3AF"}},{children:n(p,{size:24})}))]})),t("div",r({style:{display:"flex",flexDirection:"column",gap:20}},{children:[t("div",r({style:{position:"relative",display:"flex",flexDirection:"column",gap:6}},{children:[t("label",r({style:{fontSize:14,fontWeight:500,color:"#19213D"}},{children:[n("span",r({style:{marginRight:4,fontSize:16,fontWeight:600,color:"#8F2C23"}},{children:"*"})),"Scope Name"]})),"Custom"===z?n(h,{value:E,onChange:function(e){if(e.length>50)return L(e.slice(0,50)),void W(function(e){return r(r({},e),{name:"Scope Name must be 50 characters or fewer"})});L(e),W(function(e){return r(r({},e),{name:void 0})})},onStationSelect:function(e){U(e)},style:{border:N.name?"1px solid #8F2C23":void 0}}):n(y,{value:E,onChange:function(e){var o=e.target.value;if(o.length>50)return L(o.slice(0,50)),void W(function(e){return r(r({},e),{name:"Scope Name must be 50 characters or fewer"})});L(o),W(function(e){return r(r({},e),{name:void 0})})},style:{border:"1px solid ".concat(N.name?"#8F2C23":"#F0F2F5")},placeholder:"e.g. Global Learnings"}),N.name&&n("p",r({style:{margin:"4px 0 0 0",fontSize:12,color:"#8F2C23"}},{children:N.name}))]})),t("div",r({style:{display:"flex",flexDirection:"column",gap:12}},{children:[t("label",r({style:{fontSize:14,fontWeight:500,color:"#19213D"}},{children:[n("span",r({style:{marginRight:4,fontSize:16,fontWeight:600,color:"#8F2C23"}},{children:"*"})),"Learning Approval Settings"]})),t("div",r({role:"radio","aria-checked":"approval_required"===J,tabIndex:0,style:{cursor:"pointer",display:"flex",flexDirection:"column",gap:4},onClick:function(){return Q("approval_required")},onKeyDown:function(e){"Enter"!==e.key&&" "!==e.key||Q("approval_required")}},{children:[t("div",r({style:{display:"flex",alignItems:"center",gap:8}},{children:[n("div",r({style:{display:"flex",height:16,width:16,flexShrink:0,alignItems:"center",justifyContent:"center",borderRadius:"50%",border:"2px solid ".concat("approval_required"===J?"#2563EB":"#CBD5E1")}},{children:"approval_required"===J&&n("div",{style:{height:8,width:8,borderRadius:"50%",backgroundColor:"#2563EB"}})})),n("span",r({style:{fontSize:14,fontWeight:500,color:"#19213D"}},{children:"Approval Required Before Publishing"}))]})),n("p",r({style:{margin:0,marginLeft:24,fontSize:12,color:"#666F8D"}},{children:"Learnings require approval before publishing."}))]})),"approval_required"===J&&n(g,{selectedApprovers:X,selectedGroupOfApprovers:$,onApproversChange:Y,onGroupsChange:ee}),re&&n("p",r({style:{margin:0,marginLeft:24,fontSize:12,color:"#8F2C23"}},{children:re})),t("div",r({role:"radio","aria-checked":"publish_without"===J,tabIndex:0,style:{cursor:"pointer",display:"flex",flexDirection:"column",gap:4},onClick:function(){Q("publish_without"),ie("")},onKeyDown:function(e){"Enter"!==e.key&&" "!==e.key||(Q("publish_without"),ie(""))}},{children:[t("div",r({style:{display:"flex",alignItems:"center",gap:8}},{children:[n("div",r({style:{display:"flex",height:16,width:16,flexShrink:0,alignItems:"center",justifyContent:"center",borderRadius:"50%",border:"2px solid ".concat("publish_without"===J?"#2563EB":"#CBD5E1")}},{children:"publish_without"===J&&n("div",{style:{height:8,width:8,borderRadius:"50%",backgroundColor:"#2563EB"}})})),n("span",r({style:{fontSize:14,fontWeight:500,color:"#19213D"}},{children:"Publish Without Approval"}))]})),n("p",r({style:{margin:0,marginLeft:24,fontSize:12,color:"#666F8D"}},{children:"Learnings can be published directly."}))]}))]})),t("div",r({style:{marginTop:32,display:"flex",justifyContent:"flex-end",gap:12}},{children:[n("button",r({onClick:R,style:{borderRadius:6,border:"1px solid #E2E8F0",padding:"8px 16px",fontSize:14,fontWeight:500,color:"#64748B",backgroundColor:"white",cursor:"pointer",opacity:le?.5:1},disabled:le},{children:"Cancel"})),n("button",r({onClick:function(){return e(void 0,void 0,void 0,function(){var e,r,n,t,l,a,d,c,s,p,u,m;return o(this,function(o){if(e={},E.trim()?E.length>50&&(e.name="Scope Name must be 50 characters or fewer"):e.name="Scope Name is required","approval_required"===J&&0===X.length&&0===$.length&&ie("Please select at least one approver or approver group."),e.name)return W(e),[2];if("approval_required"===J&&0===X.length&&0===$.length)return[2];ie("");try{r="approval_required"===J,n=w.getState().backwardCompatibility,t=n?{topic:I?"genreRuleSet":"globalRuleSet",customScopeGroupName:_.CUSTOM_SCOPE_GROUP_NAME,scopeDescription:E,parentScopeId:null,customScopeName:E,customScopeId:f(),createByName:(null==P?void 0:P.firstname)||"System",createdBy:(null==P?void 0:P.email)||"system@audacy.com",approvalRequired:r,appsecData:{application:null==T?void 0:T.applicationId,module:null==T?void 0:T.moduleId,roles:i(i([],r?[{users:X.map(function(e){return e.email}),groups:$.map(function(e){return e._id}),role:null!==(a=null===(l=O.find(function(e){return"Learning Manager"===e.name}))||void 0===l?void 0:l._id)&&void 0!==a?a:""}]:[],!0),[{users:[null==P?void 0:P.email],groups:[],role:null!==(c=null===(d=O.find(function(e){return"Instant Learning Admin"===e.name}))||void 0===d?void 0:d._id)&&void 0!==c?c:""}],!1)}}:{topic:I?"genreRuleSet":"globalRuleSet",scope_reference_id:null,scopeDescription:E,parentScopeId:null,scopeName:E,scopeReferenceMetadata:{},applicationMappingId:w.getState().app_integration_id},console.log("Add Scope payload:",t),ae(t),D(null===(s=null==te?void 0:te.data)||void 0===s?void 0:s.scopeId),R()}catch(e){console.error("An error occurred during scope creation.",e),null===(p=G.current)||void 0===p||p.show({severity:"error",summary:"Adding Scope Failed",detail:(null===(m=null===(u=null==e?void 0:e.response)||void 0===u?void 0:u.data)||void 0===m?void 0:m.message)||"There was an error creating the scope. Please try again."})}return[2]})})},style:{display:"flex",alignItems:"center",borderRadius:6,backgroundColor:"#2563EB",padding:"8px 16px",fontSize:14,fontWeight:500,color:"white",border:"none",cursor:"pointer",opacity:le||"Custom"===z&&!K?.5:1},disabled:le||"Custom"===z&&!K},{children:le?t(l,{children:[n(u,{className:"animate-spin",style:{marginRight:8,height:16,width:16,color:"white"}}),"Creating..."]}):"Create Scope"}))]}))]}))]}))]})):null};export{k as default};
|
|
2
2
|
//# sourceMappingURL=AddScopeModal.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{__assign as e}from"tslib";import{jsxs as o,jsx as n}from"react/jsx-runtime";import{useState as r}from"react";import{Dialog as t,DialogContent as i,DialogContentText as a,DialogActions as c}from"@mui/material";import l from"@mui/icons-material/Check";import d from"@mui/icons-material/CloseRounded";import{X as s,Loader2 as p}from"lucide-react";var u={header:{padding:"16px 16px 0",display:"flex",justifyContent:"space-between",alignItems:"center"},title:{color:"#334155",fontSize:"1rem"},closeButton:{border:"none",background:"transparent",padding:0,color:"#9CA3AF",cursor:"pointer",outline:"none",transition:"color 150ms ease-in-out"},dialogContent:{padding:"8px 16px"},description:{color:"#475569",fontSize:"0.875rem",lineHeight:1.625},descriptionStrong:{fontWeight:700,color:"#1E293B"},secondaryDescription:{color:"#475569",fontSize:"0.875rem",marginTop:"8px"},rejectSection:{marginTop:"20px"},feedbackLabel:{display:"block",fontSize:"0.875rem",fontWeight:600,color:"#334155",marginBottom:"6px"},textarea:{width:"100%",fontSize:"0.875rem",color:"#1E293B",padding:"10px",border:"1px solid #E2E8F0",borderRadius:"0.5rem",outline:"none",resize:"none",transition:"border-color 150ms ease-in-out, box-shadow 150ms ease-in-out",boxSizing:"border-box",fontFamily:"inherit"},checkboxLabel:{display:"flex",justifyContent:"flex-end",
|
|
1
|
+
import{__assign as e}from"tslib";import{jsxs as o,jsx as n}from"react/jsx-runtime";import{useState as r}from"react";import{Dialog as t,DialogContent as i,DialogContentText as a,DialogActions as c}from"@mui/material";import l from"@mui/icons-material/Check";import d from"@mui/icons-material/CloseRounded";import{X as s,Loader2 as p}from"lucide-react";var u={header:{padding:"16px 16px 0",display:"flex",justifyContent:"space-between",alignItems:"center"},title:{color:"#334155",fontSize:"1rem"},closeButton:{border:"none",background:"transparent",padding:0,color:"#9CA3AF",cursor:"pointer",outline:"none",transition:"color 150ms ease-in-out"},dialogContent:{padding:"8px 16px"},description:{color:"#475569",fontSize:"0.875rem",lineHeight:1.625},descriptionStrong:{fontWeight:700,color:"#1E293B"},secondaryDescription:{color:"#475569",fontSize:"0.875rem",marginTop:"8px"},rejectSection:{marginTop:"20px"},feedbackLabel:{display:"block",fontSize:"0.875rem",fontWeight:600,color:"#334155",marginBottom:"6px"},textarea:{width:"100%",fontSize:"0.875rem",color:"#1E293B",padding:"10px",border:"1px solid #E2E8F0",borderRadius:"0.5rem",outline:"none",resize:"none",transition:"border-color 150ms ease-in-out, box-shadow 150ms ease-in-out",boxSizing:"border-box",fontFamily:"inherit"},checkboxLabel:{display:"flex",justifyContent:"flex-end",gap:"12px",cursor:"pointer",userSelect:"none",marginTop:"16px"},checkbox:{marginTop:"4px",height:"1rem",width:"1rem",borderRadius:"0.25rem",border:"1px solid #CBD5E1",accentColor:"#DC2626",cursor:"pointer"},checkboxTextWrap:{display:"flex",flexDirection:"column"},checkboxText:{fontSize:"0.875rem",fontWeight:500,color:"#1E293B",transition:"color 150ms ease-in-out"},actions:{padding:"24px",gap:"8px"},secondaryButton:{padding:"8px 20px",fontSize:"0.875rem",fontWeight:500,color:"#475569",border:"1px solid #E2E8F0",borderRadius:"0.5rem",backgroundColor:"#FFFFFF",transition:"background-color 150ms ease-in-out, border-color 150ms ease-in-out",cursor:"pointer"},primaryButton:{display:"inline-flex",alignItems:"center",gap:"0.375rem",padding:"8px 20px",fontSize:"0.875rem",fontWeight:500,color:"#FFFFFF",border:"none",borderRadius:"0.5rem",transition:"background-color 150ms ease-in-out",boxShadow:"none",cursor:"pointer"},actionIcon:{width:"1rem",height:"1rem",fontSize:"1rem"},variantCard:{backgroundColor:"#f9fafb",border:"1px solid #e5e7eb",borderRadius:"10px",padding:"16px 20px",marginTop:"12px"},variantCardTitle:{fontSize:"0.9375rem",fontWeight:700,color:"#111111",marginBottom:"4px"},variantCardDescription:{fontSize:"0.8125rem",color:"#374151",marginBottom:"12px",lineHeight:1.5},variantCardMono:{fontSize:"0.75rem",color:"#4b5563",fontFamily:"ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace",lineHeight:1.6}},m=function(m){var h=m.open,b=m.mode,f=m.onClose,g=m.onSubmit,x=m.variantInformation,y=m.ruleTitle,C=m.pendingVariants,v=void 0===C?[]:C,k=m.isPending,F=void 0!==k&&k,E=r(""),S=E[0],w=E[1],B=r(!1),A=B[0],T=B[1],z=r(!1),M=z[0],L=z[1],W=r(!1),j=W[0],D=W[1],R=r(!1),I=R[0],H=R[1],N=r(!1),V=N[0],P=N[1],Y=r(!1),q=Y[0],G=Y[1],J="undefined"!=typeof document?document.getElementById("rule-template-layout-content"):null,K="reject"===b,O=function(){g(K?{feedback:S,deleteLearning:A}:{}),w(""),T(!1)},Q=function(){w(""),T(!1),f()};return o(t,e({open:h,onClose:Q,container:J,maxWidth:!1,fullWidth:!0,sx:{position:"absolute",inset:0,zIndex:999,"& .MuiBackdrop-root":{position:"absolute"},"& .MuiDialog-container":{alignItems:"center",justifyContent:"center",padding:"24px 16px"},"& .MuiDialog-paper":{width:"100%",maxWidth:"640px",margin:0,borderRadius:"16px"}}},{children:[o("div",e({style:u.header},{children:[n("div",e({style:u.title},{children:K?"Reject Learning":"Approve Learning"})),n("button",e({onClick:f,onMouseEnter:function(){return L(!0)},onMouseLeave:function(){return L(!1)},style:e(e({},u.closeButton),{color:M?"#4B5563":"#9CA3AF"})},{children:n(s,{size:24})}))]})),o(i,e({sx:u.dialogContent},{children:[o(a,e({sx:u.description},{children:[n("span",e({style:u.descriptionStrong},{children:x}))," ",K?"will not be published or applied within the selected scope. You can provide feedback before rejecting.":"will be published and become active within the selected scope after approval."]})),v.length>0&&n("div",{children:v.map(function(r,t){return o("div",e({style:u.variantCard},{children:[o("div",e({style:u.variantCardTitle},{children:[y,v.length>1?" — Variant ".concat(t+1):""]})),r.description&&n("div",e({style:u.variantCardDescription},{children:r.description})),o("div",e({style:u.variantCardMono},{children:[r.whenToApply&&o("div",{children:["WTA — ",r.whenToApply]}),r.whenNotToApply&&o("div",{children:["WNTA — ",r.whenNotToApply]})]}))]}),r.variantId)})}),n(a,e({sx:u.secondaryDescription},{children:K?"":"Take a moment to check the configuration before moving forward."})),K&&o("div",e({style:u.rejectSection},{children:[o("div",{children:[n("label",e({htmlFor:"feedback",style:u.feedbackLabel},{children:"Feedback"})),n("textarea",{id:"feedback",rows:4,value:S,onChange:function(e){return w(e.target.value)},onFocus:function(){return D(!0)},onBlur:function(){return D(!1)},placeholder:"Add feedback or reason for rejection",style:e(e({},u.textarea),{borderColor:j?"#EF4444":"#E2E8F0",boxShadow:j?"0 0 0 2px rgba(239, 68, 68, 0.2)":"none"})})]}),o("label",e({style:u.checkboxLabel,onMouseEnter:function(){return H(!0)},onMouseLeave:function(){return H(!1)}},{children:[n("input",{type:"checkbox",checked:!0,disabled:!0,onChange:function(e){return T(e.target.checked)},style:u.checkbox}),n("div",e({style:u.checkboxTextWrap},{children:n("span",e({style:e(e({},u.checkboxText),{color:I?"#0F172A":"#1E293B"})},{children:"Also delete this learning"}))}))]}))]}))]})),o(c,e({sx:u.actions},{children:[n("button",e({onClick:Q,type:"button",disabled:F,onMouseEnter:function(){return P(!0)},onMouseLeave:function(){return P(!1)},style:e(e({},u.secondaryButton),{backgroundColor:V&&!F?"#F8FAFC":"#FFFFFF",borderColor:V&&!F?"#CBD5E1":"#E2E8F0",opacity:F?.5:1,cursor:F?"not-allowed":"pointer"})},{children:"Cancel"})),o("button",K?e({onClick:O,type:"button",disabled:F,onMouseEnter:function(){return G(!0)},onMouseLeave:function(){return G(!1)},style:e(e({},u.primaryButton),{backgroundColor:F?"#EF4444":q?"#DC2626":"#EF4444",opacity:F?.7:1,cursor:F?"not-allowed":"pointer"})},{children:[F?n(p,{size:16,style:{animation:"spin 1s linear infinite"}}):n(d,{sx:u.actionIcon}),F?"Rejecting…":"Reject Learning"]}):e({onClick:O,type:"button",disabled:F,onMouseEnter:function(){return G(!0)},onMouseLeave:function(){return G(!1)},style:e(e({},u.primaryButton),{backgroundColor:F?"#22C55E":q?"#16A34A":"#22C55E",opacity:F?.7:1,cursor:F?"not-allowed":"pointer"})},{children:[F?n(p,{size:16,style:{animation:"spin 1s linear infinite"}}):n(l,{sx:u.actionIcon}),F?"Approving…":"Approve Learning"]}))]})),n("style",{children:"@keyframes spin { to { transform: rotate(360deg); } }"})]}))};export{m as default};
|
|
2
2
|
//# sourceMappingURL=ApprovalLearningDialog.js.map
|