mage-ai 0.9.33__py3-none-any.whl → 0.9.34__py3-none-any.whl
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.
Potentially problematic release.
This version of mage-ai might be problematic. Click here for more details.
- mage_ai/api/mixins/__init__.py +0 -0
- mage_ai/api/mixins/result_set.py +65 -0
- mage_ai/api/operations/base.py +8 -3
- mage_ai/api/policies/BasePolicy.py +127 -2
- mage_ai/api/policies/PermissionPolicy.py +5 -0
- mage_ai/api/policies/UserPolicy.py +25 -2
- mage_ai/api/policies/mixins/user_permissions.py +0 -9
- mage_ai/api/presenters/PermissionPresenter.py +2 -0
- mage_ai/api/presenters/RolePresenter.py +15 -0
- mage_ai/api/presenters/UserPresenter.py +9 -15
- mage_ai/api/resources/PermissionResource.py +40 -3
- mage_ai/api/resources/RoleResource.py +1 -0
- mage_ai/api/resources/UserResource.py +35 -4
- mage_ai/orchestration/db/models/oauth.py +126 -0
- mage_ai/server/constants.py +1 -1
- mage_ai/server/frontend_dist/404.html +2 -2
- mage_ai/server/frontend_dist/_next/static/PBVuphyo_muEAj347ZP_b/_buildManifest.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/{3859-3501cdba0a33f9f2.js → 3859-ba594d21a1260cd2.js} +1 -1
- mage_ai/server/{frontend_dist_base_path_template/_next/static/chunks/7022-a0fb5af2ebd7bb45.js → frontend_dist/_next/static/chunks/7022-80d082a1d7fd1234.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/7361-25f211ef377e5958.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/8146-941c5155c3bfcc35.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/9264-5730e4e059db40a8.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/edit-d7fd4857579e2b00.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/permissions/[...slug]-1a95628ea8d0d846.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/permissions-cb1cdf5f8e5bf9c5.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/users/[...slug]-5061c073e1c0de07.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/users-f551c5665bfd3494.js +1 -0
- mage_ai/server/frontend_dist/block-layout.html +2 -2
- mage_ai/server/frontend_dist/files.html +5 -5
- mage_ai/server/frontend_dist/global-data-products/[...slug].html +5 -5
- mage_ai/server/frontend_dist/global-data-products.html +5 -5
- mage_ai/server/frontend_dist/index.html +2 -2
- mage_ai/server/frontend_dist/manage/settings.html +5 -5
- mage_ai/server/frontend_dist/manage/users/[user].html +5 -5
- mage_ai/server/frontend_dist/manage/users/new.html +5 -5
- mage_ai/server/frontend_dist/manage/users.html +5 -5
- mage_ai/server/frontend_dist/manage.html +5 -5
- mage_ai/server/frontend_dist/overview.html +5 -5
- mage_ai/server/frontend_dist/pipeline-runs.html +5 -5
- mage_ai/server/frontend_dist/pipelines/[pipeline]/backfills/[...slug].html +5 -5
- mage_ai/server/frontend_dist/pipelines/[pipeline]/backfills.html +5 -5
- mage_ai/server/frontend_dist/pipelines/[pipeline]/dashboard.html +5 -5
- mage_ai/server/frontend_dist/pipelines/[pipeline]/edit.html +2 -2
- mage_ai/server/frontend_dist/pipelines/[pipeline]/logs.html +5 -5
- mage_ai/server/frontend_dist/pipelines/[pipeline]/monitors/block-runs.html +5 -5
- mage_ai/server/frontend_dist/pipelines/[pipeline]/monitors/block-runtime.html +5 -5
- mage_ai/server/frontend_dist/pipelines/[pipeline]/monitors.html +5 -5
- mage_ai/server/frontend_dist/pipelines/[pipeline]/runs/[run].html +5 -5
- mage_ai/server/frontend_dist/pipelines/[pipeline]/runs.html +5 -5
- mage_ai/server/frontend_dist/pipelines/[pipeline]/settings.html +5 -5
- mage_ai/server/frontend_dist/pipelines/[pipeline]/syncs.html +5 -5
- mage_ai/server/frontend_dist/pipelines/[pipeline]/triggers/[...slug].html +5 -5
- mage_ai/server/frontend_dist/pipelines/[pipeline]/triggers.html +5 -5
- mage_ai/server/frontend_dist/pipelines/[pipeline].html +2 -2
- mage_ai/server/frontend_dist/pipelines.html +5 -5
- mage_ai/server/frontend_dist/settings/account/profile.html +5 -5
- mage_ai/server/frontend_dist/settings/workspace/permissions/[...slug].html +5 -5
- mage_ai/server/frontend_dist/settings/workspace/permissions.html +5 -5
- mage_ai/server/frontend_dist/settings/workspace/preferences.html +5 -5
- mage_ai/server/frontend_dist/settings/workspace/roles/[...slug].html +5 -5
- mage_ai/server/frontend_dist/settings/workspace/roles.html +5 -5
- mage_ai/server/frontend_dist/settings/workspace/sync-data.html +5 -5
- mage_ai/server/frontend_dist/settings/workspace/users/[...slug].html +5 -5
- mage_ai/server/frontend_dist/settings/workspace/users.html +5 -5
- mage_ai/server/frontend_dist/settings.html +2 -2
- mage_ai/server/frontend_dist/sign-in.html +10 -10
- mage_ai/server/frontend_dist/templates/[...slug].html +5 -5
- mage_ai/server/frontend_dist/templates.html +5 -5
- mage_ai/server/frontend_dist/terminal.html +5 -5
- mage_ai/server/frontend_dist/test.html +4 -4
- mage_ai/server/frontend_dist/triggers.html +5 -5
- mage_ai/server/frontend_dist/version-control.html +5 -5
- mage_ai/server/frontend_dist_base_path_template/404.html +2 -2
- mage_ai/server/frontend_dist_base_path_template/_next/static/L-IKw5_bRZUs-wyjnpN_j/_buildManifest.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/{3859-3501cdba0a33f9f2.js → 3859-ba594d21a1260cd2.js} +1 -1
- mage_ai/server/{frontend_dist/_next/static/chunks/7022-a0fb5af2ebd7bb45.js → frontend_dist_base_path_template/_next/static/chunks/7022-80d082a1d7fd1234.js} +1 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/7361-25f211ef377e5958.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/8146-941c5155c3bfcc35.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/9264-5730e4e059db40a8.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/edit-d7fd4857579e2b00.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/workspace/permissions/[...slug]-1a95628ea8d0d846.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/workspace/permissions-cb1cdf5f8e5bf9c5.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/workspace/users/[...slug]-5061c073e1c0de07.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/workspace/users-f551c5665bfd3494.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/block-layout.html +2 -2
- mage_ai/server/frontend_dist_base_path_template/files.html +5 -5
- mage_ai/server/frontend_dist_base_path_template/global-data-products/[...slug].html +5 -5
- mage_ai/server/frontend_dist_base_path_template/global-data-products.html +5 -5
- mage_ai/server/frontend_dist_base_path_template/index.html +2 -2
- mage_ai/server/frontend_dist_base_path_template/manage/settings.html +5 -5
- mage_ai/server/frontend_dist_base_path_template/manage/users/[user].html +5 -5
- mage_ai/server/frontend_dist_base_path_template/manage/users/new.html +5 -5
- mage_ai/server/frontend_dist_base_path_template/manage/users.html +5 -5
- mage_ai/server/frontend_dist_base_path_template/manage.html +5 -5
- mage_ai/server/frontend_dist_base_path_template/overview.html +5 -5
- mage_ai/server/frontend_dist_base_path_template/pipeline-runs.html +5 -5
- mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/backfills/[...slug].html +5 -5
- mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/backfills.html +5 -5
- mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/dashboard.html +5 -5
- mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/edit.html +2 -2
- mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/logs.html +5 -5
- mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/monitors/block-runs.html +5 -5
- mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/monitors/block-runtime.html +5 -5
- mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/monitors.html +5 -5
- mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/runs/[run].html +5 -5
- mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/runs.html +5 -5
- mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/settings.html +5 -5
- mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/syncs.html +5 -5
- mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/triggers/[...slug].html +5 -5
- mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/triggers.html +5 -5
- mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline].html +2 -2
- mage_ai/server/frontend_dist_base_path_template/pipelines.html +5 -5
- mage_ai/server/frontend_dist_base_path_template/settings/account/profile.html +5 -5
- mage_ai/server/frontend_dist_base_path_template/settings/workspace/permissions/[...slug].html +5 -5
- mage_ai/server/frontend_dist_base_path_template/settings/workspace/permissions.html +5 -5
- mage_ai/server/frontend_dist_base_path_template/settings/workspace/preferences.html +5 -5
- mage_ai/server/frontend_dist_base_path_template/settings/workspace/roles/[...slug].html +5 -5
- mage_ai/server/frontend_dist_base_path_template/settings/workspace/roles.html +5 -5
- mage_ai/server/frontend_dist_base_path_template/settings/workspace/sync-data.html +5 -5
- mage_ai/server/frontend_dist_base_path_template/settings/workspace/users/[...slug].html +5 -5
- mage_ai/server/frontend_dist_base_path_template/settings/workspace/users.html +5 -5
- mage_ai/server/frontend_dist_base_path_template/settings.html +2 -2
- mage_ai/server/frontend_dist_base_path_template/sign-in.html +10 -10
- mage_ai/server/frontend_dist_base_path_template/templates/[...slug].html +5 -5
- mage_ai/server/frontend_dist_base_path_template/templates.html +5 -5
- mage_ai/server/frontend_dist_base_path_template/terminal.html +5 -5
- mage_ai/server/frontend_dist_base_path_template/test.html +4 -4
- mage_ai/server/frontend_dist_base_path_template/triggers.html +5 -5
- mage_ai/server/frontend_dist_base_path_template/version-control.html +5 -5
- {mage_ai-0.9.33.dist-info → mage_ai-0.9.34.dist-info}/METADATA +1 -1
- {mage_ai-0.9.33.dist-info → mage_ai-0.9.34.dist-info}/RECORD +137 -133
- mage_ai/server/frontend_dist/_next/static/chunks/8146-6f46ffd7cbe2fd07.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/9264-11c4f9e79f8a9fd5.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/edit-68f1591d3f4262f1.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/permissions/[...slug]-672599b18c4eb2a6.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/permissions-b7bc84646325062c.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/users/[...slug]-b7b99c3d2109fdea.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/users-fe480da25b026bb5.js +0 -1
- mage_ai/server/frontend_dist/_next/static/sGWtg0x8VBmlqQeSOAw9E/_buildManifest.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/8146-6f46ffd7cbe2fd07.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/9264-11c4f9e79f8a9fd5.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/edit-68f1591d3f4262f1.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/workspace/permissions/[...slug]-672599b18c4eb2a6.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/workspace/permissions-b7bc84646325062c.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/workspace/users/[...slug]-b7b99c3d2109fdea.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/workspace/users-fe480da25b026bb5.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/dFD_SGZQKSOB83hTxog2E/_buildManifest.js +0 -1
- /mage_ai/server/frontend_dist/_next/static/{sGWtg0x8VBmlqQeSOAw9E → PBVuphyo_muEAj347ZP_b}/_ssgManifest.js +0 -0
- /mage_ai/server/frontend_dist_base_path_template/_next/static/{dFD_SGZQKSOB83hTxog2E → L-IKw5_bRZUs-wyjnpN_j}/_ssgManifest.js +0 -0
- {mage_ai-0.9.33.dist-info → mage_ai-0.9.34.dist-info}/LICENSE +0 -0
- {mage_ai-0.9.33.dist-info → mage_ai-0.9.34.dist-info}/WHEEL +0 -0
- {mage_ai-0.9.33.dist-info → mage_ai-0.9.34.dist-info}/entry_points.txt +0 -0
- {mage_ai-0.9.33.dist-info → mage_ai-0.9.34.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8146],{17717:function(e){!function(){"use strict";var n={114:function(e){function n(e){if("string"!==typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}function t(e,n){for(var t,r="",i=0,o=-1,l=0,s=0;s<=e.length;++s){if(s<e.length)t=e.charCodeAt(s);else{if(47===t)break;t=47}if(47===t){if(o===s-1||1===l);else if(o!==s-1&&2===l){if(r.length<2||2!==i||46!==r.charCodeAt(r.length-1)||46!==r.charCodeAt(r.length-2))if(r.length>2){var c=r.lastIndexOf("/");if(c!==r.length-1){-1===c?(r="",i=0):i=(r=r.slice(0,c)).length-1-r.lastIndexOf("/"),o=s,l=0;continue}}else if(2===r.length||1===r.length){r="",i=0,o=s,l=0;continue}n&&(r.length>0?r+="/..":r="..",i=2)}else r.length>0?r+="/"+e.slice(o+1,s):r=e.slice(o+1,s),i=s-o-1;o=s,l=0}else 46===t&&-1!==l?++l:l=-1}return r}var r={resolve:function(){for(var e,r="",i=!1,o=arguments.length-1;o>=-1&&!i;o--){var l;o>=0?l=arguments[o]:(void 0===e&&(e=""),l=e),n(l),0!==l.length&&(r=l+"/"+r,i=47===l.charCodeAt(0))}return r=t(r,!i),i?r.length>0?"/"+r:"/":r.length>0?r:"."},normalize:function(e){if(n(e),0===e.length)return".";var r=47===e.charCodeAt(0),i=47===e.charCodeAt(e.length-1);return 0!==(e=t(e,!r)).length||r||(e="."),e.length>0&&i&&(e+="/"),r?"/"+e:e},isAbsolute:function(e){return n(e),e.length>0&&47===e.charCodeAt(0)},join:function(){if(0===arguments.length)return".";for(var e,t=0;t<arguments.length;++t){var i=arguments[t];n(i),i.length>0&&(void 0===e?e=i:e+="/"+i)}return void 0===e?".":r.normalize(e)},relative:function(e,t){if(n(e),n(t),e===t)return"";if((e=r.resolve(e))===(t=r.resolve(t)))return"";for(var i=1;i<e.length&&47===e.charCodeAt(i);++i);for(var o=e.length,l=o-i,s=1;s<t.length&&47===t.charCodeAt(s);++s);for(var c=t.length-s,a=l<c?l:c,u=-1,d=0;d<=a;++d){if(d===a){if(c>a){if(47===t.charCodeAt(s+d))return t.slice(s+d+1);if(0===d)return t.slice(s+d)}else l>a&&(47===e.charCodeAt(i+d)?u=d:0===d&&(u=0));break}var f=e.charCodeAt(i+d);if(f!==t.charCodeAt(s+d))break;47===f&&(u=d)}var h="";for(d=i+u+1;d<=o;++d)d!==o&&47!==e.charCodeAt(d)||(0===h.length?h+="..":h+="/..");return h.length>0?h+t.slice(s+u):(s+=u,47===t.charCodeAt(s)&&++s,t.slice(s))},_makeLong:function(e){return e},dirname:function(e){if(n(e),0===e.length)return".";for(var t=e.charCodeAt(0),r=47===t,i=-1,o=!0,l=e.length-1;l>=1;--l)if(47===(t=e.charCodeAt(l))){if(!o){i=l;break}}else o=!1;return-1===i?r?"/":".":r&&1===i?"//":e.slice(0,i)},basename:function(e,t){if(void 0!==t&&"string"!==typeof t)throw new TypeError('"ext" argument must be a string');n(e);var r,i=0,o=-1,l=!0;if(void 0!==t&&t.length>0&&t.length<=e.length){if(t.length===e.length&&t===e)return"";var s=t.length-1,c=-1;for(r=e.length-1;r>=0;--r){var a=e.charCodeAt(r);if(47===a){if(!l){i=r+1;break}}else-1===c&&(l=!1,c=r+1),s>=0&&(a===t.charCodeAt(s)?-1===--s&&(o=r):(s=-1,o=c))}return i===o?o=c:-1===o&&(o=e.length),e.slice(i,o)}for(r=e.length-1;r>=0;--r)if(47===e.charCodeAt(r)){if(!l){i=r+1;break}}else-1===o&&(l=!1,o=r+1);return-1===o?"":e.slice(i,o)},extname:function(e){n(e);for(var t=-1,r=0,i=-1,o=!0,l=0,s=e.length-1;s>=0;--s){var c=e.charCodeAt(s);if(47!==c)-1===i&&(o=!1,i=s+1),46===c?-1===t?t=s:1!==l&&(l=1):-1!==t&&(l=-1);else if(!o){r=s+1;break}}return-1===t||-1===i||0===l||1===l&&t===i-1&&t===r+1?"":e.slice(t,i)},format:function(e){if(null===e||"object"!==typeof e)throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof e);return function(e,n){var t=n.dir||n.root,r=n.base||(n.name||"")+(n.ext||"");return t?t===n.root?t+r:t+e+r:r}("/",e)},parse:function(e){n(e);var t={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return t;var r,i=e.charCodeAt(0),o=47===i;o?(t.root="/",r=1):r=0;for(var l=-1,s=0,c=-1,a=!0,u=e.length-1,d=0;u>=r;--u)if(47!==(i=e.charCodeAt(u)))-1===c&&(a=!1,c=u+1),46===i?-1===l?l=u:1!==d&&(d=1):-1!==l&&(d=-1);else if(!a){s=u+1;break}return-1===l||-1===c||0===d||1===d&&l===c-1&&l===s+1?-1!==c&&(t.base=t.name=0===s&&o?e.slice(1,c):e.slice(s,c)):(0===s&&o?(t.name=e.slice(1,l),t.base=e.slice(1,c)):(t.name=e.slice(s,l),t.base=e.slice(s,c)),t.ext=e.slice(l,c)),s>0?t.dir=e.slice(0,s-1):o&&(t.dir="/"),t},sep:"/",delimiter:":",win32:null,posix:null};r.posix=r,e.exports=r}},t={};function r(e){var i=t[e];if(void 0!==i)return i.exports;var o=t[e]={exports:{}},l=!0;try{n[e](o,o.exports,r),l=!1}finally{l&&delete t[e]}return o.exports}r.ab="//";var i=r(114);e.exports=i}()},58146:function(e,n,t){"use strict";var r=t(75582),i=t(82394),o=t(21764),l=t(82684),s=t(69864),c=t(34376),a=t(71180),u=t(70652),d=t(15338),f=t(97618),h=t(55485),g=t(85854),m=t(65956),p=t(36288),x=t(44085),v=t(28274),j=t(38276),Z=t(75499),E=t(30160),b=t(35576),A=t(17488),I=t(69650),L=t(35686),_=t(8193),D=t(72473),y=t(70515),P=t(24755),R=t(48277),S=t(81728),w=t(3917),T=t(76417),C=t(86735),k=t(42122),O=t(72619),B=t(28598);function N(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function W(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?N(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):N(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var M,H=2*y.iI;!function(e){e.ROLES="Roles",e.USERS="Users"}(M||(M={})),n.Z=function(e){var n,t=e.contained,i=e.onCancel,N=e.slug,U=(0,c.useRouter)(),Y=(0,l.useState)(!0),V=Y[0],Q=Y[1],z=(0,l.useState)(null),F=z[0],q=z[1],G=(0,l.useState)({}),J=G[0],K=G[1],$=(0,l.useState)(null),X=$[0],ee=$[1],ne=(0,l.useCallback)((function(e,n,t){ee(W(W({},e),{},{rolesMapping:(0,C.HK)(n||[],(function(e){return e.id})),usersMapping:(0,C.HK)(t||[],(function(e){return e.id}))}))}),[ee]),te=(0,l.useCallback)((function(e){K((function(n){return W(W({},n),e)})),ee((function(n){return W(W({},n),e)}))}),[K,ee]),re=L.ZP.permissions.detail(N,{},{revalidateOnFocus:!1}).data,ie=(0,l.useMemo)((function(){return null===re||void 0===re?void 0:re.permission}),[re]);(0,l.useEffect)((function(){ie&&ne(ie,null===ie||void 0===ie?void 0:ie.roles,null===ie||void 0===ie?void 0:ie.users)}),[ne,ie]);var oe=L.ZP.permissions.list({_format:"with_only_entity_options",only_entity_options:!0},{},{pauseFetch:!!ie}).data,le=(0,l.useMemo)((function(){var e;return null===oe||void 0===oe||null===(e=oe.permissions)||void 0===e?void 0:e[0]}),[oe]),se=(0,l.useMemo)((function(){var e;return(null===(e=ie||le)||void 0===e?void 0:e.entity_names)||[]}),[ie,le]),ce=(0,l.useMemo)((function(){var e;return(null===(e=ie||le)||void 0===e?void 0:e.entity_types)||[]}),[ie,le]),ae=(0,s.Db)(ie?L.ZP.permissions.useUpdate(null===ie||void 0===ie?void 0:ie.id):L.ZP.permissions.useCreate(),{onSuccess:function(e){return(0,O.wD)(e,{callback:function(e){var n=e.permission;K({}),ne(n,null===n||void 0===n?void 0:n.roles,null===n||void 0===n?void 0:n.users),ie||U.push("/settings/workspace/permissions/".concat(null===n||void 0===n?void 0:n.id)),o.Am.success(ie?"Permission successfully updated.":"New permission created successfully.",{position:o.Am.POSITION.BOTTOM_RIGHT,toastId:"permission-mutate-success-".concat(n.id)})},onErrorCallback:function(e){var n=e.error,t=n.errors,r=n.exception,i=n.message,l=n.type;o.Am.error((null===t||void 0===t?void 0:t.error)||r||i,{position:o.Am.POSITION.BOTTOM_RIGHT,toastId:l})}})}}),ue=(0,r.Z)(ae,2),de=ue[0],fe=ue[1].isLoading,he=(0,s.Db)(L.ZP.permissions.useDelete(null===ie||void 0===ie?void 0:ie.id),{onSuccess:function(e){return(0,O.wD)(e,{callback:function(){U.push("/settings/workspace/permissions"),o.Am.success("Permission successfully delete.",{position:o.Am.POSITION.BOTTOM_RIGHT,toastId:"permission-delete-success-".concat(null===ie||void 0===ie?void 0:ie.id)})},onErrorCallback:function(e){var n=e.error,t=n.errors,r=n.exception,i=n.message,l=n.type;o.Am.error((null===t||void 0===t?void 0:t.error)||r||i,{position:o.Am.POSITION.BOTTOM_RIGHT,toastId:l})}})}}),ge=(0,r.Z)(he,2),me=ge[0],pe=ge[1].isLoading,xe=(0,l.useMemo)((function(){return(null===X||void 0===X?void 0:X.access)||0}),[X]),ve=(0,l.useCallback)((function(e){return e.map((function(e,n){var t=p.K4[e],r=Boolean(xe&Number(e)),i=(0,R.fD)(xe),o=(0,R.fD)(e);return(0,B.jsx)(j.Z,{mt:n>=1?1:0,children:(0,B.jsxs)(h.ZP,{alignItems:"center",children:[(0,B.jsx)(I.Z,{checked:r,compact:!0,onCheck:function(e){return te({access:(0,R.$P)(e(r)?(0,R.vN)(i,o):(0,R.VJ)(i,o))})}}),(0,B.jsx)(j.Z,{mr:y.cd}),(0,B.jsx)(E.ZP,{default:!r,children:t})]})},t)}))}),[xe]),je=L.ZP.roles.list({},{},{pauseFetch:!ie}).data,Ze=(0,l.useMemo)((function(){return(0,C.YC)((null===je||void 0===je?void 0:je.roles)||[],"name")}),[je]),Ee=(0,l.useMemo)((function(){return(null===X||void 0===X?void 0:X.rolesMapping)||{}}),[X]),be=(0,l.useMemo)((function(){return(0,C.YC)(Object.values(Ee),"name")}),[Ee]),Ae=L.ZP.users.list({},{},{pauseFetch:!ie}).data,Ie=((0,l.useMemo)((function(){return(0,C.YC)((null===Ae||void 0===Ae?void 0:Ae.users)||[],(function(e){return(0,T.s)(e)}))}),[Ae]),(0,l.useMemo)((function(){return(null===X||void 0===X?void 0:X.usersMapping)||{}}),[X])),Le=(0,l.useMemo)((function(){return(0,C.YC)(Object.values(Ie),(function(e){return(0,T.s)(e)}))}),[Ie]),_e=(0,l.useMemo)((function(){return(null===be||void 0===be?void 0:be.length)>=1}),[be]),De=(0,l.useMemo)((function(){return(0,B.jsx)(a.Z,{beforeIcon:(0,B.jsx)(D.mm,{}),compact:!0,onClick:function(){q(M.ROLES),Q(!1)},primary:!_e,secondary:_e,small:!0,children:"Add roles"})}),[_e,q,Q]),ye=(0,l.useMemo)((function(){return(null===Le||void 0===Le?void 0:Le.length)>=1}),[Le]),Pe=(0,l.useCallback)((function(e){return(0,B.jsx)(Z.Z,{columnFlex:[null,1],columns:[{label:function(){var n=null===e||void 0===e?void 0:e.every((function(e){var n=e.id;return null===Ee||void 0===Ee?void 0:Ee[n]}));return(0,B.jsx)(u.Z,{checked:n,onClick:function(){te(n?{rolesMapping:{}}:{rolesMapping:(0,C.HK)(e,(function(e){return e.id}))})}},"checkbox")},uuid:"actions"},{uuid:"Role"}],onClickRow:function(n){var t=e[n],r=null===t||void 0===t?void 0:t.id,i=!(null===Ee||void 0===Ee||!Ee[r]),o=W({},Ee);i?null===o||void 0===o||delete o[r]:o[r]=t,te({rolesMapping:o})},rows:null===e||void 0===e?void 0:e.map((function(e){var n=e.name,t=e.id,r=!(null===Ee||void 0===Ee||!Ee[t]);return[(0,B.jsx)(u.Z,{checked:r},"checkbox"),(0,B.jsx)(E.ZP,{monospace:!0,children:n},"name")]})),uuid:"roles"})}),[Ee,te]),Re=(0,l.useCallback)((function(e){return(0,B.jsx)(Z.Z,{columnFlex:[1,1,1],columns:[{uuid:"Username"},{uuid:"First name"},{uuid:"Last name"}],rows:null===e||void 0===e?void 0:e.map((function(e){var n=e.first_name,t=e.last_name,r=e.username;return[(0,B.jsx)(E.ZP,{children:r},"username"),(0,B.jsx)(E.ZP,{default:!0,children:n},"firstName"),(0,B.jsx)(E.ZP,{default:!0,children:t},"lastName")]})),uuid:"users"})}),[Ie,te]),Se=(0,l.useMemo)((function(){return Pe(Ze)}),[Pe,Ze]),we=(0,l.useMemo)((function(){return Pe(be)}),[Pe,be]),Te=(0,l.useMemo)((function(){return Re(Le)}),[Re,Le]),Ce=(0,B.jsxs)(_.N,{children:[(0,B.jsxs)(m.Z,{noPadding:!0,children:[(0,B.jsx)(j.Z,{p:y.cd,children:(0,B.jsx)(g.Z,{level:4,children:ie?"Permission ".concat(null===ie||void 0===ie?void 0:ie.id):"New permission"})}),(0,B.jsx)(d.Z,{light:!0}),(0,B.jsx)(j.Z,{p:y.cd,children:(0,B.jsxs)(h.ZP,{alignItems:"center",children:[(0,B.jsxs)(E.ZP,{danger:"entity_name"in J&&!(null!==X&&void 0!==X&&X.entity_name),default:!0,large:!0,children:["Entity ","entity_name"in J&&!(null!==X&&void 0!==X&&X.entity_name)&&(0,B.jsx)(E.ZP,{danger:!0,inline:!0,large:!0,children:"is required"})]}),(0,B.jsx)(j.Z,{mr:y.cd}),(0,B.jsx)(f.Z,{flex:1,justifyContent:"flex-end",children:(0,B.jsx)(x.Z,{afterIconSize:H,alignRight:!0,autoComplete:"off",large:!0,noBackground:!0,noBorder:!0,onChange:function(e){return te({entity_name:e.target.value})},paddingHorizontal:0,paddingVertical:0,placeholder:"Select an entity",value:(null===X||void 0===X?void 0:X.entity_name)||"",children:se.map((function(e){return(0,B.jsx)("option",{value:e,children:(0,S.j3)(e)},e)}))})})]})}),(0,B.jsx)(d.Z,{light:!0}),(0,B.jsx)(j.Z,{p:y.cd,children:(0,B.jsxs)(h.ZP,{alignItems:"center",children:[(0,B.jsx)(E.ZP,{default:!0,large:!0,children:"Entity subtype"}),(0,B.jsx)(j.Z,{mr:y.cd}),(0,B.jsx)(f.Z,{flex:1,justifyContent:"flex-end",children:(0,B.jsxs)(x.Z,{afterIconSize:H,alignRight:!0,autoComplete:"off",large:!0,monospace:!0,noBackground:!0,noBorder:!0,onChange:function(e){return te({entity_type:e.target.value})},paddingHorizontal:0,paddingVertical:0,placeholder:"Select an entity subtype",value:(null===X||void 0===X?void 0:X.entity_type)||"",children:[(0,B.jsx)("option",{value:""}),ce.map((function(e){return(0,B.jsx)("option",{value:e,children:e},e)}))]})})]})}),(0,B.jsx)(d.Z,{light:!0}),(0,B.jsx)(j.Z,{p:y.cd,children:(0,B.jsxs)(h.ZP,{alignItems:"center",children:[(0,B.jsx)(E.ZP,{default:!0,large:!0,children:"Enity UUID"}),(0,B.jsx)(j.Z,{mr:y.cd}),(0,B.jsx)(f.Z,{flex:1,children:(0,B.jsx)(A.Z,{afterIcon:(0,B.jsx)(D.I8,{}),afterIconClick:function(e,n){var t;null===n||void 0===n||null===(t=n.current)||void 0===t||t.focus()},afterIconSize:H,alignRight:!0,autoComplete:"off",large:!0,monospace:!0,noBackground:!0,noBorder:!0,fullWidth:!0,onChange:function(e){return te({entity_id:e.target.value})},paddingHorizontal:0,paddingVertical:0,placeholder:"e.g. pipeline_uuid",value:(null===X||void 0===X?void 0:X.entity_id)||""})})]})})]}),(0,B.jsx)(j.Z,{mb:y.HN}),(0,B.jsxs)(m.Z,{noPadding:!0,children:[(0,B.jsx)(j.Z,{p:y.cd,children:(0,B.jsx)(g.Z,{level:4,children:"Access"})}),(0,B.jsx)(d.Z,{light:!0}),(0,B.jsxs)(j.Z,{p:y.cd,children:[(0,B.jsx)(j.Z,{mb:y.cd,children:(0,B.jsx)(E.ZP,{default:!0,large:!0,children:"Groups"})}),ve(p.G9)]}),(0,B.jsx)(d.Z,{light:!0}),(0,B.jsxs)(h.ZP,{alignItems:"center",children:[(0,B.jsx)(f.Z,{flex:1,children:(0,B.jsxs)(j.Z,{p:y.cd,children:[(0,B.jsx)(j.Z,{mb:y.cd,children:(0,B.jsx)(E.ZP,{default:!0,large:!0,children:"Operations"})}),ve(p.Pt)]})}),(0,B.jsx)(f.Z,{flex:1,children:(0,B.jsxs)(j.Z,{p:y.cd,children:[(0,B.jsx)(j.Z,{mb:y.cd,children:(0,B.jsx)(E.ZP,{default:!0,large:!0,children:"Disable operations"})}),ve(p.oO)]})})]}),(0,B.jsx)(d.Z,{light:!0}),(0,B.jsxs)(h.ZP,{alignItems:"flex-start",children:[(0,B.jsx)(f.Z,{flex:1,children:(0,B.jsxs)(j.Z,{p:y.cd,children:[(0,B.jsx)(j.Z,{mb:y.cd,children:(0,B.jsx)(E.ZP,{default:!0,large:!0,children:"Read attributes"})}),ve(p.Fy)]})}),(0,B.jsx)(f.Z,{flex:1,children:(0,B.jsxs)(j.Z,{fullWidth:!0,p:y.cd,children:[(0,B.jsx)(j.Z,{mb:y.cd,children:(0,B.jsx)(E.ZP,{default:!0,large:!0,children:"Readable attributes (comma separated)"})}),(0,B.jsx)(b.Z,{fullWidth:!0,monospace:!0,onChange:function(e){return te({read_attributes:e.target.value})},placeholder:"e.g. email",value:(null===X||void 0===X?void 0:X.read_attributes)||""})]})})]}),(0,B.jsx)(d.Z,{light:!0}),(0,B.jsxs)(h.ZP,{alignItems:"flex-start",children:[(0,B.jsx)(f.Z,{flex:1,children:(0,B.jsxs)(j.Z,{p:y.cd,children:[(0,B.jsx)(j.Z,{mb:y.cd,children:(0,B.jsx)(E.ZP,{default:!0,large:!0,children:"Write attributes"})}),ve(p.H1)]})}),(0,B.jsx)(f.Z,{flex:1,children:(0,B.jsxs)(j.Z,{fullWidth:!0,p:y.cd,children:[(0,B.jsx)(j.Z,{mb:y.cd,children:(0,B.jsx)(E.ZP,{default:!0,large:!0,children:"Writable attributes (comma separated)"})}),(0,B.jsx)(b.Z,{fullWidth:!0,monospace:!0,onChange:function(e){return te({write_attributes:e.target.value})},placeholder:"e.g. password",value:(null===X||void 0===X?void 0:X.write_attributes)||""})]})})]}),(0,B.jsx)(d.Z,{light:!0}),(0,B.jsxs)(h.ZP,{alignItems:"flex-start",children:[(0,B.jsx)(f.Z,{flex:1,children:(0,B.jsxs)(j.Z,{p:y.cd,children:[(0,B.jsx)(j.Z,{mb:y.cd,children:(0,B.jsx)(E.ZP,{default:!0,large:!0,children:"Query parameters"})}),ve(p.hl)]})}),(0,B.jsx)(f.Z,{flex:1,children:(0,B.jsxs)(j.Z,{fullWidth:!0,p:y.cd,children:[(0,B.jsx)(j.Z,{mb:y.cd,children:(0,B.jsx)(E.ZP,{default:!0,large:!0,children:"Parameters that can be queried (comma separated)"})}),(0,B.jsx)(b.Z,{fullWidth:!0,monospace:!0,onChange:function(e){return te({query_attributes:e.target.value})},placeholder:"e.g. include_outputs",value:(null===X||void 0===X?void 0:X.query_attributes)||""})]})})]})]}),(0,B.jsx)(j.Z,{mb:y.HN}),ie&&(0,B.jsxs)(B.Fragment,{children:[(0,B.jsxs)(m.Z,{noPadding:!0,children:[(0,B.jsx)(j.Z,{p:y.cd,children:(0,B.jsxs)(h.ZP,{alignItems:"center",justifyContent:"space-between",children:[(0,B.jsx)(g.Z,{level:4,children:"Roles"}),(0,B.jsx)(j.Z,{mr:y.cd}),_e&&(0,B.jsx)(h.ZP,{alignItems:"center",children:De})]})}),(0,B.jsx)(d.Z,{light:!0}),!_e&&(0,B.jsxs)(j.Z,{p:y.cd,children:[(0,B.jsx)(j.Z,{mb:y.cd,children:(0,B.jsx)(E.ZP,{default:!0,children:"This permission is currently not attached to any role."})}),(0,B.jsx)(h.ZP,{alignItems:"center",children:De})]}),_e&&(0,B.jsx)(j.Z,{pb:y.Mq,children:we})]}),(0,B.jsx)(j.Z,{mb:y.HN}),(0,B.jsxs)(m.Z,{noPadding:!0,children:[(0,B.jsx)(j.Z,{p:y.cd,children:(0,B.jsx)(h.ZP,{alignItems:"center",justifyContent:"space-between",children:(0,B.jsx)(g.Z,{level:4,children:"Users"})})}),(0,B.jsx)(d.Z,{light:!0}),!ye&&(0,B.jsx)(j.Z,{p:y.cd,children:(0,B.jsx)(E.ZP,{default:!0,children:"There are currently no users with this permission."})}),ye&&(0,B.jsx)(j.Z,{pb:y.Mq,children:Te})]}),(0,B.jsx)(j.Z,{mb:y.HN}),(0,B.jsxs)(m.Z,{noPadding:!0,children:[(0,B.jsx)(j.Z,{p:y.cd,children:(0,B.jsx)(g.Z,{level:4,children:"Metadata"})}),(0,B.jsx)(d.Z,{light:!0}),(0,B.jsx)(j.Z,{p:y.cd,children:(0,B.jsxs)(h.ZP,{alignItems:"center",children:[(0,B.jsx)(E.ZP,{default:!0,large:!0,children:"Last updated"}),(0,B.jsx)(j.Z,{mr:y.cd}),(0,B.jsxs)(f.Z,{alignItems:"center",flex:1,justifyContent:"flex-end",children:[(0,B.jsx)(E.ZP,{large:!0,monospace:!0,muted:!0,children:(null===X||void 0===X?void 0:X.updated_at)&&(0,w.d$)(null===X||void 0===X?void 0:X.updated_at,{includeSeconds:!0})}),(0,B.jsx)(j.Z,{mr:y.cd}),(0,B.jsx)(D.Pf,{muted:!0,size:H}),(0,B.jsx)(j.Z,{mr:1})]})]})}),(0,B.jsx)(d.Z,{light:!0}),(0,B.jsx)(j.Z,{p:y.cd,children:(0,B.jsxs)(h.ZP,{alignItems:"center",children:[(0,B.jsx)(E.ZP,{default:!0,large:!0,children:"Created at"}),(0,B.jsx)(j.Z,{mr:y.cd}),(0,B.jsxs)(f.Z,{alignItems:"center",flex:1,justifyContent:"flex-end",children:[(0,B.jsx)(E.ZP,{large:!0,monospace:!0,muted:!0,children:(null===X||void 0===X?void 0:X.created_at)&&(0,w.d$)(null===X||void 0===X?void 0:X.created_at,{includeSeconds:!0})}),(0,B.jsx)(j.Z,{mr:y.cd}),(0,B.jsx)(D.Pf,{muted:!0,size:H}),(0,B.jsx)(j.Z,{mr:1})]})]})}),(0,B.jsx)(d.Z,{light:!0}),(0,B.jsx)(j.Z,{p:y.cd,children:(0,B.jsxs)(h.ZP,{alignItems:"center",children:[(0,B.jsx)(E.ZP,{default:!0,large:!0,children:"Created by"}),(0,B.jsx)(j.Z,{mr:y.cd}),(0,B.jsxs)(f.Z,{alignItems:"center",flex:1,justifyContent:"flex-end",children:[(0,B.jsx)(E.ZP,{large:!0,monospace:!0,muted:!0,children:(0,T.s)(null===ie||void 0===ie?void 0:ie.user)}),(0,B.jsx)(j.Z,{mr:y.cd}),(0,B.jsx)(D.Pf,{muted:!0,size:H}),(0,B.jsx)(j.Z,{mr:1})]})]})})]}),(0,B.jsx)(j.Z,{mb:y.HN})]}),(0,B.jsxs)(h.ZP,{children:[(0,B.jsx)(a.Z,{beforeIcon:(0,B.jsx)(D.vc,{}),disabled:!J||!(null!==(n=Object.keys(J))&&void 0!==n&&n.length),loading:fe,onClick:function(){return de({permission:W(W({},(0,k.GL)(X,["access","entity_id","entity_name","entity_type","query_attributes","read_attributes","write_attributes"],{include_blanks:!0})),ie?{role_ids:Object.keys((null===X||void 0===X?void 0:X.rolesMapping)||{}).map((function(e){return Number(e)}))}:{})})},primary:!0,children:ie?"Save changes":"Create new permission"}),i&&(0,B.jsxs)(B.Fragment,{children:[(0,B.jsx)(j.Z,{mr:y.cd}),(0,B.jsx)(a.Z,{onClick:function(){return null===i||void 0===i?void 0:i()},secondary:!0,children:"Cancel and go back"})]}),ie&&(0,B.jsxs)(B.Fragment,{children:[(0,B.jsx)(j.Z,{mr:y.cd}),(0,B.jsx)(a.Z,{beforeIcon:(0,B.jsx)(D.rF,{}),danger:!0,loading:pe,onClick:function(){return me()},children:"Delete permission"})]})]})]});return t?Ce:(0,B.jsx)(v.Z,{after:Se,afterHeader:(0,B.jsx)(j.Z,{px:y.cd,children:(0,B.jsx)(E.ZP,{bold:!0,children:F})}),afterHidden:V,afterWidth:60*y.iI,appendBreadcrumbs:!0,breadcrumbs:[{label:function(){return"Permissions"},linkProps:{href:"/settings/workspace/permissions"}},{bold:!0,label:function(){return"Permission ".concat(null===ie||void 0===ie?void 0:ie.id)}}],setAfterHidden:Q,title:null!==ie&&void 0!==ie&&ie.id?"Permission ".concat(null===ie||void 0===ie?void 0:ie.id):"New permission",uuidItemSelected:P.B2.PERMISSIONS,uuidWorkspaceSelected:P.Pl.USER_MANAGEMENT,children:ie&&Ce})}},8193:function(e,n,t){"use strict";t.d(n,{N:function(){return s}});var r=t(38626),i=t(44897),o=t(42631),l=t(70515),s=r.default.div.withConfig({displayName:"indexstyle__ContainerStyle",componentId:"sc-1ck7mzt-0"})(["border-radius:","px;padding:","px;",""],o.n_,l.cd*l.iI,(function(e){return"\n background-color: ".concat((e.theme.background||i.Z.background).codeArea,";\n ")}))},36288:function(e,n,t){"use strict";t.d(n,{Fy:function(){return d},G9:function(){return s},H1:function(){return f},K4:function(){return l},Pt:function(){return c},hl:function(){return u},oO:function(){return a}});var r,i,o=t(82394);!function(e){e[e.OWNER=1]="OWNER",e[e.ADMIN=2]="ADMIN",e[e.EDITOR=4]="EDITOR",e[e.VIEWER=8]="VIEWER",e[e.LIST=16]="LIST",e[e.DETAIL=32]="DETAIL",e[e.CREATE=64]="CREATE",e[e.UPDATE=128]="UPDATE",e[e.DELETE=512]="DELETE",e[e.OPERATION_ALL=1024]="OPERATION_ALL",e[e.QUERY=2048]="QUERY",e[e.QUERY_ALL=4096]="QUERY_ALL",e[e.READ=8192]="READ",e[e.READ_ALL=16384]="READ_ALL",e[e.WRITE=32768]="WRITE",e[e.WRITE_ALL=65536]="WRITE_ALL",e[e.ALL=131072]="ALL",e[e.DISABLE_LIST=262144]="DISABLE_LIST",e[e.DISABLE_DETAIL=524288]="DISABLE_DETAIL",e[e.DISABLE_CREATE=1048576]="DISABLE_CREATE",e[e.DISABLE_UPDATE=2097152]="DISABLE_UPDATE",e[e.DISABLE_DELETE=4194304]="DISABLE_DELETE",e[e.DISABLE_OPERATION_ALL=8388608]="DISABLE_OPERATION_ALL",e[e.DISABLE_QUERY=16777216]="DISABLE_QUERY",e[e.DISABLE_QUERY_ALL=33554432]="DISABLE_QUERY_ALL",e[e.DISABLE_READ=67108864]="DISABLE_READ",e[e.DISABLE_READ_ALL=134217728]="DISABLE_READ_ALL",e[e.DISABLE_WRITE=268435456]="DISABLE_WRITE",e[e.DISABLE_WRITE_ALL=536870912]="DISABLE_WRITE_ALL"}(i||(i={}));var l=(r={},(0,o.Z)(r,i.OWNER,"Owner"),(0,o.Z)(r,i.ADMIN,"Admin"),(0,o.Z)(r,i.EDITOR,"Editor"),(0,o.Z)(r,i.VIEWER,"Viewer"),(0,o.Z)(r,i.LIST,"List"),(0,o.Z)(r,i.DETAIL,"Detail"),(0,o.Z)(r,i.CREATE,"Create"),(0,o.Z)(r,i.UPDATE,"Update"),(0,o.Z)(r,i.DELETE,"Delete"),(0,o.Z)(r,i.OPERATION_ALL,"All operations"),(0,o.Z)(r,i.QUERY,"Query"),(0,o.Z)(r,i.QUERY_ALL,"Query all attributes"),(0,o.Z)(r,i.READ,"Read"),(0,o.Z)(r,i.READ_ALL,"Read all attributes"),(0,o.Z)(r,i.WRITE,"Write"),(0,o.Z)(r,i.WRITE_ALL,"Write all attributes"),(0,o.Z)(r,i.ALL,"All"),(0,o.Z)(r,i.DISABLE_LIST,"Disable list"),(0,o.Z)(r,i.DISABLE_DETAIL,"Disable detail"),(0,o.Z)(r,i.DISABLE_CREATE,"Disable create"),(0,o.Z)(r,i.DISABLE_UPDATE,"Disable update"),(0,o.Z)(r,i.DISABLE_DELETE,"Disable delete"),(0,o.Z)(r,i.DISABLE_OPERATION_ALL,"Disable all operations"),(0,o.Z)(r,i.DISABLE_QUERY,"Disable query"),(0,o.Z)(r,i.DISABLE_QUERY_ALL,"Disable all query parameters"),(0,o.Z)(r,i.DISABLE_READ,"Disable read"),(0,o.Z)(r,i.DISABLE_READ_ALL,"Disable all read attributes"),(0,o.Z)(r,i.DISABLE_WRITE,"Disable write"),(0,o.Z)(r,i.DISABLE_WRITE_ALL,"Disable all write attributes"),r),s=[i.OWNER,i.ADMIN,i.EDITOR,i.VIEWER,i.ALL],c=[i.LIST,i.DETAIL,i.CREATE,i.UPDATE,i.DELETE,i.OPERATION_ALL],a=[i.DISABLE_LIST,i.DISABLE_DETAIL,i.DISABLE_CREATE,i.DISABLE_UPDATE,i.DISABLE_DELETE,i.DISABLE_OPERATION_ALL],u=[i.QUERY,i.QUERY_ALL,i.DISABLE_QUERY,i.DISABLE_QUERY_ALL],d=[i.READ,i.READ_ALL,i.DISABLE_READ,i.DISABLE_READ_ALL],f=[i.WRITE,i.WRITE_ALL,i.DISABLE_WRITE,i.DISABLE_WRITE_ALL]},65956:function(e,n,t){"use strict";var r=t(38626),i=t(55485),o=t(38276),l=t(30160),s=t(44897),c=t(42631),a=t(47041),u=t(70515),d=t(28598),f=(0,r.css)(["padding:","px;padding-bottom:","px;padding-top:","px;"],2*u.iI,1.5*u.iI,1.5*u.iI),h=r.default.div.withConfig({displayName:"Panel__PanelStyle",componentId:"sc-1ct8cgl-0"})(["border-radius:","px;overflow:hidden;"," "," "," "," "," "," "," "," "," "," "," ",""],c.n_,(function(e){return e.fullWidth&&"\n width: 100%;\n "}),(function(e){return!e.borderless&&"\n border: 1px solid ".concat((e.theme.interactive||s.Z.interactive).defaultBorder,";\n ")}),(function(e){return e.success&&"\n background-color: ".concat((e.theme.background||s.Z.background).successLight,";\n ")}),(function(e){return e.success&&!e.borderless&&"\n border: 1px solid ".concat((e.theme.background||s.Z.background).success,";\n ")}),(function(e){return!e.dark&&!e.success&&"\n background-color: ".concat((e.theme.background||s.Z.background).panel,";\n ")}),(function(e){return e.dark&&"\n background-color: ".concat((e.theme.background||s.Z.background).content,";\n ")}),(function(e){return!e.fullHeight&&"\n height: fit-content;\n "}),(function(e){return e.maxHeight&&"\n max-height: ".concat(e.maxHeight,";\n ")}),(function(e){return e.maxWidth&&"\n max-width: ".concat(e.maxWidth,"px;\n ")}),(function(e){return e.minWidth&&"\n min-width: ".concat(e.minWidth,"px;\n\n @media (max-width: ").concat(e.minWidth,"px) {\n min-width: 0;\n }\n ")}),(function(e){return e.borderless&&"\n border: none;\n "}),(function(e){return e.overflowVisible&&"\n overflow: visible;\n "})),g=r.default.div.withConfig({displayName:"Panel__HeaderStyle",componentId:"sc-1ct8cgl-1"})(["border-top-left-radius:","px;border-top-right-radius:","px;"," "," "," ",""],c.n_,c.n_,(function(e){return"\n background-color: ".concat((e.theme.background||s.Z.background).chartBlock,";\n border-bottom: 1px solid ").concat((e.theme.interactive||s.Z.interactive).defaultBorder,";\n ")}),(function(e){return e.height&&"\n height: ".concat(e.height,"px;\n ")}),f,(function(e){return e.headerPaddingVertical&&"\n padding-bottom: ".concat(e.headerPaddingVertical,"px;\n padding-top: ").concat(e.headerPaddingVertical,"px;\n ")})),m=r.default.div.withConfig({displayName:"Panel__ContentStyle",componentId:"sc-1ct8cgl-2"})(["overflow-y:auto;padding:","px;height:100%;"," "," "," "," ",""],1.75*u.iI,a.w5,(function(e){return e.height&&"\n height: ".concat(e.height,"px;\n ")}),(function(e){return e.maxHeight&&"\n max-height: calc(".concat(e.maxHeight," - ").concat(15*u.iI,"px);\n ")}),(function(e){return e.noPadding&&"\n padding: 0;\n "}),(function(e){return e.overflowVisible&&"\n overflow: visible;\n "})),p=r.default.div.withConfig({displayName:"Panel__FooterStyle",componentId:"sc-1ct8cgl-3"})(["border-style:",";border-top-width:","px;padding:","px;"],c.M8,c.YF,1.75*u.iI);n.Z=function(e){var n=e.borderless,t=e.children,r=e.containerRef,s=e.contentContainerRef,c=e.dark,a=e.footer,u=e.fullHeight,f=void 0===u||u,x=e.fullWidth,v=void 0===x||x,j=e.header,Z=e.headerHeight,E=e.headerIcon,b=e.headerPaddingVertical,A=e.headerTitle,I=e.maxHeight,L=e.maxWidth,_=e.minWidth,D=e.noPadding,y=e.overflowVisible,P=e.subtitle,R=e.success;return(0,d.jsxs)(h,{borderless:n,dark:c,fullHeight:f,fullWidth:v,maxHeight:I,maxWidth:L,minWidth:_,overflowVisible:y,ref:r,success:R,children:[(j||A)&&(0,d.jsxs)(g,{headerPaddingVertical:b,height:Z,children:[j&&j,A&&(0,d.jsx)(i.ZP,{alignItems:"center",justifyContent:"space-between",children:(0,d.jsxs)(i.ZP,{alignItems:"center",children:[E&&E,(0,d.jsx)(o.Z,{ml:E?1:0,children:(0,d.jsx)(l.ZP,{bold:!0,default:!0,children:A})})]})})]}),(0,d.jsxs)(m,{maxHeight:I,noPadding:D,overflowVisible:y,ref:s,children:[P&&(0,d.jsx)(o.Z,{mb:2,children:(0,d.jsx)(l.ZP,{default:!0,children:P})}),t]}),a&&(0,d.jsx)(p,{children:a})]})}},76417:function(e,n,t){"use strict";function r(e){return null!==e&&void 0!==e&&e.first_name?[null===e||void 0===e?void 0:e.first_name,null===e||void 0===e?void 0:e.last_name].filter((function(e){return e})).join(" "):null===e||void 0===e?void 0:e.username}t.d(n,{s:function(){return r}})},48277:function(e,n,t){"use strict";t.d(n,{$P:function(){return a},JI:function(){return o},VJ:function(){return c},fD:function(){return l},uf:function(){return i},vN:function(){return s}});var r=t(75582),i=function(e){var n=String(e).split("."),t=(0,r.Z)(n,2),i=t[0],o=t[1];return"".concat(i.replace(/\B(?=(\d{3})+(?!\d))/g,",")).concat(o?".".concat(o):"")};function o(e){var n=Math.floor(Date.now()/1e3);return e>0?n-e:n}function l(e){return(e>>>0).toString(2)}function s(e,n){return String(BigInt(e)+BigInt(n))}function c(e,n){return String(BigInt(e)-BigInt(n))}function a(e){return parseInt(e,2)}},81728:function(e,n,t){"use strict";t.d(n,{RA:function(){return h},j3:function(){return b},kC:function(){return g},vg:function(){return E},kE:function(){return P},Mp:function(){return m},Pb:function(){return u},HW:function(){return I},HD:function(){return d},wX:function(){return p},x6:function(){return x},_6:function(){return v},zf:function(){return A},Y6:function(){return D},Lo:function(){return y},wE:function(){return R},Tz:function(){return L},J3:function(){return j},We:function(){return f},QV:function(){return _},C5:function(){return Z}});var r=t(75582),i=t(17717),o=["aged","ancient","autumn","billowing","bitter","black","blue","bold","broken","cold","cool","crimson","damp","dark","dawn","delicate","divine","dry","empty","falling","floral","fragrant","frosty","green","hidden","holy","icy","late","lingering","little","lively","long","misty","morning","muddy","nameless","old","patient","polished","proud","purple","quiet","red","restless","rough","shy","silent","small","snowy","solitary","sparkling","spring","still","summer","throbbing","twilight","wandering","weathered","white","wild","winter","wispy","withered","young"],l=["a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z"],s=(t(92083),["bird","breeze","brook","bush","butterfly","cherry","cloud","darkness","dawn","dew","dream","dust","feather","field","fire","firefly","flower","fog","forest","frog","frost","glade","glitter","grass","haze","hill","lake","leaf","meadow","moon","morning","mountain","night","paper","pine","pond","rain","resonance","river","sea","shadow","shape","silence","sky","smoke","snow","snowflake","sound","star","sun","sun","sunset","surf","thunder","tree","violet","voice","water","water","waterfall","wave","wildflower","wind","wood"]),c=["0","1","2","3","4","5","6","7","8","9"],a=t(86735);function u(e){if(!e)return!1;try{JSON.parse(e)}catch(n){return!1}return!0}function d(e){return"string"===typeof e}function f(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"_";return e.split(" ").join(n)}function h(e){return e.split(" ").join("_")}function g(e){return e?e.charAt(0).toUpperCase()+e.slice(1):""}function m(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;return String((new Date).getTime()*e)}function p(e){return e.charAt(0).toLowerCase()+e.slice(1)}function x(e){if(null===e||"undefined"===typeof e)return"";var n=e.toString().split("."),t=(0,r.Z)(n,2),i=t[0],o=t[1],l=i.toString().replace(/\B(?=(\d{3})+(?!\d))/g,",");return o?"".concat(l,".").concat(o):l}function v(e,n){var t,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=n,l=void 0!==o&&null!==o;if(l||(o=2),1===o)t=e;else{var s=e.length,c=e[s-1];t="y"===c&&"day"!==e?"".concat(e.slice(0,s-1),"ies"):"".concat(e,"s"===c?"es":"s")}if(l&&!i){var a=r?x(o):o;return"".concat(a," ").concat(t)}return t}function j(e){return null===e||void 0===e?void 0:e.replace(/_/g," ")}function Z(e){var n=e.length;return"ies"===e.slice(n-3,n)?"".concat(e.slice(0,n-3),"y"):"es"===e.slice(n-2,n)&&"ces"!==e.slice(n-3,n)?e.slice(0,n-2):e.slice(0,n-1)}function E(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return g(j(e.toLowerCase()))}function b(e){return e.replace(/([A-Z])/g," $1")}function A(e){var n,t=[["second",60],["minute",60],["hour",24],["day",7],["week",4],["month",12],["year",null]];return t.forEach((function(i,o){if(!n){var l=(0,r.Z)(i,2),s=l[0],c=l[1],a=t.slice(0,o).reduce((function(e,n){return e*Number(n[1])}),1);e<Number(c)*a&&(n=v(s,Math.round(e/a)))}})),n}function I(e){return"undefined"!==typeof e&&null!==e&&!isNaN(e)}function L(e){var n,t=e.match(/\d+(\.?\d*)%/)||[];return Number(null===(n=t[0])||void 0===n?void 0:n.slice(0,-1))}function _(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2,t=Math.pow(10,n);return Math.round((e||0)*t)/t}function D(){return"".concat((0,a.mp)(o)," ").concat((0,a.mp)(s))}function y(){return"".concat((0,a.mp)(l)).concat((0,a.mp)(c))}function P(e){return null===e||void 0===e?void 0:e.toLowerCase().replace(/\W+/g,"_")}function R(e){var n,t=e.split(i.sep),r=t[t.length-1].split(".");return n=1===r.length?r[0]:r.slice(0,-1).join("."),t.slice(0,t.length-1).concat(n).join(i.sep)}}}]);
|