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.

Files changed (153) hide show
  1. mage_ai/api/mixins/__init__.py +0 -0
  2. mage_ai/api/mixins/result_set.py +65 -0
  3. mage_ai/api/operations/base.py +8 -3
  4. mage_ai/api/policies/BasePolicy.py +127 -2
  5. mage_ai/api/policies/PermissionPolicy.py +5 -0
  6. mage_ai/api/policies/UserPolicy.py +25 -2
  7. mage_ai/api/policies/mixins/user_permissions.py +0 -9
  8. mage_ai/api/presenters/PermissionPresenter.py +2 -0
  9. mage_ai/api/presenters/RolePresenter.py +15 -0
  10. mage_ai/api/presenters/UserPresenter.py +9 -15
  11. mage_ai/api/resources/PermissionResource.py +40 -3
  12. mage_ai/api/resources/RoleResource.py +1 -0
  13. mage_ai/api/resources/UserResource.py +35 -4
  14. mage_ai/orchestration/db/models/oauth.py +126 -0
  15. mage_ai/server/constants.py +1 -1
  16. mage_ai/server/frontend_dist/404.html +2 -2
  17. mage_ai/server/frontend_dist/_next/static/PBVuphyo_muEAj347ZP_b/_buildManifest.js +1 -0
  18. mage_ai/server/frontend_dist/_next/static/chunks/{3859-3501cdba0a33f9f2.js → 3859-ba594d21a1260cd2.js} +1 -1
  19. mage_ai/server/{frontend_dist_base_path_template/_next/static/chunks/7022-a0fb5af2ebd7bb45.js → frontend_dist/_next/static/chunks/7022-80d082a1d7fd1234.js} +1 -1
  20. mage_ai/server/frontend_dist/_next/static/chunks/7361-25f211ef377e5958.js +1 -0
  21. mage_ai/server/frontend_dist/_next/static/chunks/8146-941c5155c3bfcc35.js +1 -0
  22. mage_ai/server/frontend_dist/_next/static/chunks/9264-5730e4e059db40a8.js +1 -0
  23. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/edit-d7fd4857579e2b00.js +1 -0
  24. mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/permissions/[...slug]-1a95628ea8d0d846.js +1 -0
  25. mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/permissions-cb1cdf5f8e5bf9c5.js +1 -0
  26. mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/users/[...slug]-5061c073e1c0de07.js +1 -0
  27. mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/users-f551c5665bfd3494.js +1 -0
  28. mage_ai/server/frontend_dist/block-layout.html +2 -2
  29. mage_ai/server/frontend_dist/files.html +5 -5
  30. mage_ai/server/frontend_dist/global-data-products/[...slug].html +5 -5
  31. mage_ai/server/frontend_dist/global-data-products.html +5 -5
  32. mage_ai/server/frontend_dist/index.html +2 -2
  33. mage_ai/server/frontend_dist/manage/settings.html +5 -5
  34. mage_ai/server/frontend_dist/manage/users/[user].html +5 -5
  35. mage_ai/server/frontend_dist/manage/users/new.html +5 -5
  36. mage_ai/server/frontend_dist/manage/users.html +5 -5
  37. mage_ai/server/frontend_dist/manage.html +5 -5
  38. mage_ai/server/frontend_dist/overview.html +5 -5
  39. mage_ai/server/frontend_dist/pipeline-runs.html +5 -5
  40. mage_ai/server/frontend_dist/pipelines/[pipeline]/backfills/[...slug].html +5 -5
  41. mage_ai/server/frontend_dist/pipelines/[pipeline]/backfills.html +5 -5
  42. mage_ai/server/frontend_dist/pipelines/[pipeline]/dashboard.html +5 -5
  43. mage_ai/server/frontend_dist/pipelines/[pipeline]/edit.html +2 -2
  44. mage_ai/server/frontend_dist/pipelines/[pipeline]/logs.html +5 -5
  45. mage_ai/server/frontend_dist/pipelines/[pipeline]/monitors/block-runs.html +5 -5
  46. mage_ai/server/frontend_dist/pipelines/[pipeline]/monitors/block-runtime.html +5 -5
  47. mage_ai/server/frontend_dist/pipelines/[pipeline]/monitors.html +5 -5
  48. mage_ai/server/frontend_dist/pipelines/[pipeline]/runs/[run].html +5 -5
  49. mage_ai/server/frontend_dist/pipelines/[pipeline]/runs.html +5 -5
  50. mage_ai/server/frontend_dist/pipelines/[pipeline]/settings.html +5 -5
  51. mage_ai/server/frontend_dist/pipelines/[pipeline]/syncs.html +5 -5
  52. mage_ai/server/frontend_dist/pipelines/[pipeline]/triggers/[...slug].html +5 -5
  53. mage_ai/server/frontend_dist/pipelines/[pipeline]/triggers.html +5 -5
  54. mage_ai/server/frontend_dist/pipelines/[pipeline].html +2 -2
  55. mage_ai/server/frontend_dist/pipelines.html +5 -5
  56. mage_ai/server/frontend_dist/settings/account/profile.html +5 -5
  57. mage_ai/server/frontend_dist/settings/workspace/permissions/[...slug].html +5 -5
  58. mage_ai/server/frontend_dist/settings/workspace/permissions.html +5 -5
  59. mage_ai/server/frontend_dist/settings/workspace/preferences.html +5 -5
  60. mage_ai/server/frontend_dist/settings/workspace/roles/[...slug].html +5 -5
  61. mage_ai/server/frontend_dist/settings/workspace/roles.html +5 -5
  62. mage_ai/server/frontend_dist/settings/workspace/sync-data.html +5 -5
  63. mage_ai/server/frontend_dist/settings/workspace/users/[...slug].html +5 -5
  64. mage_ai/server/frontend_dist/settings/workspace/users.html +5 -5
  65. mage_ai/server/frontend_dist/settings.html +2 -2
  66. mage_ai/server/frontend_dist/sign-in.html +10 -10
  67. mage_ai/server/frontend_dist/templates/[...slug].html +5 -5
  68. mage_ai/server/frontend_dist/templates.html +5 -5
  69. mage_ai/server/frontend_dist/terminal.html +5 -5
  70. mage_ai/server/frontend_dist/test.html +4 -4
  71. mage_ai/server/frontend_dist/triggers.html +5 -5
  72. mage_ai/server/frontend_dist/version-control.html +5 -5
  73. mage_ai/server/frontend_dist_base_path_template/404.html +2 -2
  74. mage_ai/server/frontend_dist_base_path_template/_next/static/L-IKw5_bRZUs-wyjnpN_j/_buildManifest.js +1 -0
  75. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/{3859-3501cdba0a33f9f2.js → 3859-ba594d21a1260cd2.js} +1 -1
  76. mage_ai/server/{frontend_dist/_next/static/chunks/7022-a0fb5af2ebd7bb45.js → frontend_dist_base_path_template/_next/static/chunks/7022-80d082a1d7fd1234.js} +1 -1
  77. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/7361-25f211ef377e5958.js +1 -0
  78. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/8146-941c5155c3bfcc35.js +1 -0
  79. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/9264-5730e4e059db40a8.js +1 -0
  80. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/edit-d7fd4857579e2b00.js +1 -0
  81. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/workspace/permissions/[...slug]-1a95628ea8d0d846.js +1 -0
  82. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/workspace/permissions-cb1cdf5f8e5bf9c5.js +1 -0
  83. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/workspace/users/[...slug]-5061c073e1c0de07.js +1 -0
  84. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/workspace/users-f551c5665bfd3494.js +1 -0
  85. mage_ai/server/frontend_dist_base_path_template/block-layout.html +2 -2
  86. mage_ai/server/frontend_dist_base_path_template/files.html +5 -5
  87. mage_ai/server/frontend_dist_base_path_template/global-data-products/[...slug].html +5 -5
  88. mage_ai/server/frontend_dist_base_path_template/global-data-products.html +5 -5
  89. mage_ai/server/frontend_dist_base_path_template/index.html +2 -2
  90. mage_ai/server/frontend_dist_base_path_template/manage/settings.html +5 -5
  91. mage_ai/server/frontend_dist_base_path_template/manage/users/[user].html +5 -5
  92. mage_ai/server/frontend_dist_base_path_template/manage/users/new.html +5 -5
  93. mage_ai/server/frontend_dist_base_path_template/manage/users.html +5 -5
  94. mage_ai/server/frontend_dist_base_path_template/manage.html +5 -5
  95. mage_ai/server/frontend_dist_base_path_template/overview.html +5 -5
  96. mage_ai/server/frontend_dist_base_path_template/pipeline-runs.html +5 -5
  97. mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/backfills/[...slug].html +5 -5
  98. mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/backfills.html +5 -5
  99. mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/dashboard.html +5 -5
  100. mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/edit.html +2 -2
  101. mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/logs.html +5 -5
  102. mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/monitors/block-runs.html +5 -5
  103. mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/monitors/block-runtime.html +5 -5
  104. mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/monitors.html +5 -5
  105. mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/runs/[run].html +5 -5
  106. mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/runs.html +5 -5
  107. mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/settings.html +5 -5
  108. mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/syncs.html +5 -5
  109. mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/triggers/[...slug].html +5 -5
  110. mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/triggers.html +5 -5
  111. mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline].html +2 -2
  112. mage_ai/server/frontend_dist_base_path_template/pipelines.html +5 -5
  113. mage_ai/server/frontend_dist_base_path_template/settings/account/profile.html +5 -5
  114. mage_ai/server/frontend_dist_base_path_template/settings/workspace/permissions/[...slug].html +5 -5
  115. mage_ai/server/frontend_dist_base_path_template/settings/workspace/permissions.html +5 -5
  116. mage_ai/server/frontend_dist_base_path_template/settings/workspace/preferences.html +5 -5
  117. mage_ai/server/frontend_dist_base_path_template/settings/workspace/roles/[...slug].html +5 -5
  118. mage_ai/server/frontend_dist_base_path_template/settings/workspace/roles.html +5 -5
  119. mage_ai/server/frontend_dist_base_path_template/settings/workspace/sync-data.html +5 -5
  120. mage_ai/server/frontend_dist_base_path_template/settings/workspace/users/[...slug].html +5 -5
  121. mage_ai/server/frontend_dist_base_path_template/settings/workspace/users.html +5 -5
  122. mage_ai/server/frontend_dist_base_path_template/settings.html +2 -2
  123. mage_ai/server/frontend_dist_base_path_template/sign-in.html +10 -10
  124. mage_ai/server/frontend_dist_base_path_template/templates/[...slug].html +5 -5
  125. mage_ai/server/frontend_dist_base_path_template/templates.html +5 -5
  126. mage_ai/server/frontend_dist_base_path_template/terminal.html +5 -5
  127. mage_ai/server/frontend_dist_base_path_template/test.html +4 -4
  128. mage_ai/server/frontend_dist_base_path_template/triggers.html +5 -5
  129. mage_ai/server/frontend_dist_base_path_template/version-control.html +5 -5
  130. {mage_ai-0.9.33.dist-info → mage_ai-0.9.34.dist-info}/METADATA +1 -1
  131. {mage_ai-0.9.33.dist-info → mage_ai-0.9.34.dist-info}/RECORD +137 -133
  132. mage_ai/server/frontend_dist/_next/static/chunks/8146-6f46ffd7cbe2fd07.js +0 -1
  133. mage_ai/server/frontend_dist/_next/static/chunks/9264-11c4f9e79f8a9fd5.js +0 -1
  134. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/edit-68f1591d3f4262f1.js +0 -1
  135. mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/permissions/[...slug]-672599b18c4eb2a6.js +0 -1
  136. mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/permissions-b7bc84646325062c.js +0 -1
  137. mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/users/[...slug]-b7b99c3d2109fdea.js +0 -1
  138. mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/users-fe480da25b026bb5.js +0 -1
  139. mage_ai/server/frontend_dist/_next/static/sGWtg0x8VBmlqQeSOAw9E/_buildManifest.js +0 -1
  140. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/8146-6f46ffd7cbe2fd07.js +0 -1
  141. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/9264-11c4f9e79f8a9fd5.js +0 -1
  142. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/edit-68f1591d3f4262f1.js +0 -1
  143. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/workspace/permissions/[...slug]-672599b18c4eb2a6.js +0 -1
  144. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/workspace/permissions-b7bc84646325062c.js +0 -1
  145. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/workspace/users/[...slug]-b7b99c3d2109fdea.js +0 -1
  146. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/workspace/users-fe480da25b026bb5.js +0 -1
  147. mage_ai/server/frontend_dist_base_path_template/_next/static/dFD_SGZQKSOB83hTxog2E/_buildManifest.js +0 -1
  148. /mage_ai/server/frontend_dist/_next/static/{sGWtg0x8VBmlqQeSOAw9E → PBVuphyo_muEAj347ZP_b}/_ssgManifest.js +0 -0
  149. /mage_ai/server/frontend_dist_base_path_template/_next/static/{dFD_SGZQKSOB83hTxog2E → L-IKw5_bRZUs-wyjnpN_j}/_ssgManifest.js +0 -0
  150. {mage_ai-0.9.33.dist-info → mage_ai-0.9.34.dist-info}/LICENSE +0 -0
  151. {mage_ai-0.9.33.dist-info → mage_ai-0.9.34.dist-info}/WHEEL +0 -0
  152. {mage_ai-0.9.33.dist-info → mage_ai-0.9.34.dist-info}/entry_points.txt +0 -0
  153. {mage_ai-0.9.33.dist-info → mage_ai-0.9.34.dist-info}/top_level.txt +0 -0
@@ -1 +0,0 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[609],{85854:function(n,t,e){"use strict";var i,r,o,c,u,a,l,s,f=e(82394),d=e(26304),m=e(26653),p=e(38626),h=e(33591),g=e(44897),y=e(95363),v=e(61896),w=e(30160),b=e(70515),S=e(38276),O=e(28598),N=["children","condensed","inline","level","marketing","spacingBelow"];function x(n,t){var e=Object.keys(n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(n);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),e.push.apply(e,i)}return e}function _(n){for(var t=1;t<arguments.length;t++){var e=null!=arguments[t]?arguments[t]:{};t%2?x(Object(e),!0).forEach((function(t){(0,f.Z)(n,t,e[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(e)):x(Object(e)).forEach((function(t){Object.defineProperty(n,t,Object.getOwnPropertyDescriptor(e,t))}))}return n}var H=(0,p.css)([""," margin:0;"," "," "," "," "," "," "," "," "," "," "," "," ",""],w.IH,(function(n){return n.color&&"\n color: ".concat(n.color,"\n ")}),(function(n){return n.yellow&&"\n color: ".concat((n.theme.accent||g.Z.accent).yellow,";\n ")}),(function(n){return n.center&&"\n text-align: center;\n "}),(function(n){return!n.monospace&&0===Number(n.weightStyle)&&"\n font-family: ".concat(y.iI,";\n ")}),(function(n){return!n.monospace&&1===Number(n.weightStyle)&&"\n font-family: ".concat(y.LX,";\n ")}),(function(n){return!n.monospace&&2===Number(n.weightStyle)&&"\n font-family: ".concat(y.LX,";\n ")}),(function(n){return!n.monospace&&3===Number(n.weightStyle)&&"\n font-family: ".concat(y.ry,";\n ")}),(function(n){return!n.monospace&&4===Number(n.weightStyle)&&"\n font-family: ".concat(y.YC,";\n ")}),(function(n){return!n.monospace&&5===Number(n.weightStyle)&&"\n font-family: ".concat(y.nF,";\n ")}),(function(n){return!n.monospace&&(6===Number(n.weightStyle)||n.bold)&&"\n font-family: ".concat(y.nF,";\n ")}),(function(n){return!n.monospace&&7===Number(n.weightStyle)&&"\n font-family: ".concat(y.nF,";\n ")}),(function(n){return!n.monospace&&8===Number(n.weightStyle)&&"\n font-family: ".concat(y.nF,";\n ")}),(function(n){return n.lineHeightAuto&&"\n line-height: normal !important;\n "})),I=p.default.div.withConfig({displayName:"Headline__HeadlineContainerStyle",componentId:"sc-12jzt2e-0"})(["",""],(function(n){return"\n color: ".concat((n.theme.content||g.Z.content).active,";\n ")})),Y=p.default.h1.withConfig({displayName:"Headline__H1HeroStyle",componentId:"sc-12jzt2e-1"})([""," font-size:42px;line-height:56px;"," "," ",""],H,h.media.md(i||(i=(0,m.Z)(["\n ","\n "])),v.aQ),h.media.lg(r||(r=(0,m.Z)(["\n ","\n "])),v.aQ),h.media.xl(o||(o=(0,m.Z)(["\n ","\n "])),v.aQ)),j=p.default.h1.withConfig({displayName:"Headline__H1Style",componentId:"sc-12jzt2e-2"})([""," ",""],H,v.MJ),D=p.default.h1.withConfig({displayName:"Headline__H1MarketingStyle",componentId:"sc-12jzt2e-3"})([""," "," "," "," "," ",""],H,h.media.xs(c||(c=(0,m.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*b.iI,7*b.iI),h.media.sm(u||(u=(0,m.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*b.iI,7*b.iI),h.media.md(a||(a=(0,m.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*b.iI,7*b.iI),h.media.lg(l||(l=(0,m.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*b.iI,7*b.iI),h.media.xl(s||(s=(0,m.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*b.iI,7*b.iI)),M=p.default.h2.withConfig({displayName:"Headline__H2Style",componentId:"sc-12jzt2e-4"})([""," ",""],H,v.BL),Z=p.default.h3.withConfig({displayName:"Headline__H3Style",componentId:"sc-12jzt2e-5"})([""," font-size:24px;line-height:32px;"],H),E=p.default.h4.withConfig({displayName:"Headline__H4Style",componentId:"sc-12jzt2e-6"})([""," font-size:20px;line-height:28px;"],H),z=p.default.h5.withConfig({displayName:"Headline__H5Style",componentId:"sc-12jzt2e-7"})([""," font-size:18px;line-height:26px;"],H),P=p.default.span.withConfig({displayName:"Headline__SpanStyle",componentId:"sc-12jzt2e-8"})([""," "," "," "," ",""],H,(function(n){return 1===n.level&&"\n ".concat(v.MJ,"\n ")}),(function(n){return 2===n.level&&"\n ".concat(v.BL,"\n ")}),(function(n){return 3===n.level&&"\n font-size: 24px;\n line-height: 32px;\n "}),(function(n){return 4===n.level&&"\n font-size: 20px;\n line-height: 28px;\n "})),T=function(n){var t,e=n.children,i=n.condensed,r=n.inline,o=n.level,c=n.marketing,u=n.spacingBelow,a=(0,d.Z)(n,N);r?t=P:0===Number(o)?t=Y:1===Number(o)?t=c?D:j:2===Number(o)?t=M:3===Number(o)?t=Z:4===Number(o)?t=E:5===Number(o)&&(t=z);var l=(0,O.jsxs)(t,_(_({},a),{},{level:o,children:[u&&(0,O.jsx)(S.Z,{mb:i?2:3,children:e}),!u&&e]}));return r?l:(0,O.jsx)(I,{children:l})};T.defaultProps={level:3,weightStyle:6},t.Z=T},5149:function(n,t,e){"use strict";e.r(t);var i=e(77837),r=e(38860),o=e.n(r),c=e(58146),u=e(93808),a=e(28274),l=e(35686),s=e(24755),f=e(28598);function d(n){var t=n.slug,e=l.ZP.permissions.detail(t,{},{revalidateOnFocus:!1}).data,i=null===e||void 0===e?void 0:e.permission;return(0,f.jsx)(a.Z,{appendBreadcrumbs:!0,breadcrumbs:[{label:function(){return"Permissions"},linkProps:{href:"/settings/workspace/permissions"}},{bold:!0,label:function(){return null===i||void 0===i?void 0:i.id}}],title:i?"Permission ".concat(null===i||void 0===i?void 0:i.id):"New permission",uuidItemSelected:s.B2.PERMISSIONS,uuidWorkspaceSelected:s.Pl.USER_MANAGEMENT,children:i&&(0,f.jsx)(c.Z,{permission:i})})}d.getInitialProps=function(){var n=(0,i.Z)(o().mark((function n(t){var e;return o().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return e=t.query.slug,n.abrupt("return",{slug:null===e||void 0===e?void 0:e[0]});case 2:case"end":return n.stop()}}),n)})));return function(t){return n.apply(this,arguments)}}(),t.default=(0,u.Z)(d)},3917:function(n,t,e){"use strict";e.d(t,{A5:function(){return x},AY:function(){return _},BP:function(){return N},Cs:function(){return D},JX:function(){return O},OC:function(){return d},Pc:function(){return H},Ro:function(){return I},Tz:function(){return S},XG:function(){return w},Y_:function(){return j},d$:function(){return v},jV:function(){return Y},lE:function(){return p},lJ:function(){return M},n$:function(){return b},n1:function(){return h},s8:function(){return s},vk:function(){return o},yD:function(){return f},yd:function(){return y}});var i,r,o,c=e(82394),u=e(92083),a=e.n(u),l=e(86735);!function(n){n.TODAY="today",n.WEEK="week",n.MONTH="month"}(o||(o={}));var s=(i={},(0,c.Z)(i,o.TODAY,"today"),(0,c.Z)(i,o.WEEK,"last 7 days"),(0,c.Z)(i,o.MONTH,"last 30 days"),i),f=(r={},(0,c.Z)(r,o.TODAY,0),(0,c.Z)(r,o.WEEK,6),(0,c.Z)(r,o.MONTH,29),r),d="YYYY-MM-DD HH:mm:ss",m="YYYY-MM-DD HH:mm",p="YYYY-MM-DD HH:mmZ",h="YYYY-MM-DD",g="MMMM D, YYYY",y=Intl.DateTimeFormat().resolvedOptions().timeZone;function v(n,t){var e=t||{},i=e.dayAgo,r=e.includeSeconds,o=e.utcFormat,c=a()(n),u=m;return o&&(c=c.utc()),i&&(c=c.subtract(1,"days")),r&&(u=d),c.format(u)}function w(n,t){return t?a().utc(n).local().format():n}function b(n){return a().utc(n).local().toDate()}function S(n){var t=v((new Date).toISOString(),{includeSeconds:!0,utcFormat:!0});return null!==n&&void 0!==n&&n.dateObj?new Date(t):t}function O(n){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return a().unix(n).format(null!==t&&void 0!==t&&t.withSeconds?d:m)}function N(n,t,e){return a()(n).utc().hours(+t).minutes(+e).format()}function x(n){return a()(n).unix()}function _(n,t,e,i){var r="".concat(n.toISOString().split("T")[0]," ").concat(t,":").concat(e);return i?"".concat(r,":").concat(i):r}function H(n){var t=a().unix(+n).utc();return{date:t.toDate(),hour:String(t.hour()),minute:String(t.minute())}}function I(n,t){var e=a().utc(),i=a().utc();null!==t&&void 0!==t&&t.localTime&&(e=a()().local(),i=a()().local());var r=(e=e.subtract(n,"days")).format(g),o=i.format(g);return null!==t&&void 0!==t&&t.endDateOnly?o:"".concat(r," - ").concat(o)}function Y(n,t){var e=null!==t&&void 0!==t&&t.localTime?a()().local():a().utc();if(n===o.WEEK){var i=f[o.WEEK];e=e.subtract(i,"days")}else if(n===o.MONTH){var r=f[o.MONTH];e=e.subtract(r,"days")}return null!==t&&void 0!==t&&t.isoString?e.startOf("day").toISOString():e.startOf("day").format(d)}function j(){for(var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:90,t=new Date,e=[],i=0;i<n;i++)e.unshift(t.toISOString().split("T")[0]),t.setDate(t.getDate()-1);return e}function D(){var n=new Date,t=String(n.getMonth()+1).padStart(2,"0"),e=n.getFullYear(),i=a()("".concat(e,"-").concat(t),"YYYY-MM").daysInMonth();return(0,l.m5)(i,1)}function M(n){return n.padStart(2,"0")}},79877:function(n,t,e){(window.__NEXT_P=window.__NEXT_P||[]).push(["/settings/workspace/permissions/[...slug]",function(){return e(5149)}])}},function(n){n.O(0,[844,2083,8013,600,4636,8264,3684,8146,9774,2888,179],(function(){return t=79877,n(n.s=t);var t}));var t=n.O();_N_E=t}]);
@@ -1 +0,0 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4085],{34331:function(e,n,t){"use strict";t.r(n);var i=t(77837),r=t(38860),s=t.n(r),u=t(82684),c=t(34376),o=t(71180),d=t(15338),l=t(55485),a=t(58146),p=t(93808),m=t(28274),f=t(38276),h=t(75499),v=t(30160),x=t(35686),j=t(72473),Z=t(70515),_=t(24755),P=t(3917),w=t(36717),b=t(28598);function k(){var e=(0,c.useRouter)(),n=(0,u.useState)(!1),t=n[0],i=n[1],r=x.ZP.permissions.list().data,s=(0,u.useMemo)((function(){return(null===r||void 0===r?void 0:r.permissions)||[]}),[r]),p=[{bold:!t,label:function(){return"Permissions"}}];return t?(p[0].onClick=function(){return i(!1)},p.push({bold:!0,label:function(){return"New permission"}})):p[0].linkProps={href:"/settings/workspace/permissions"},(0,b.jsxs)(m.Z,{appendBreadcrumbs:!0,breadcrumbs:p,title:"Permissions",uuidItemSelected:_.B2.PERMISSIONS,uuidWorkspaceSelected:_.Pl.USER_MANAGEMENT,children:[t&&(0,b.jsx)(a.Z,{onCancel:function(){return i(!1)}}),!t&&(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(f.Z,{p:Z.cd,children:(0,b.jsx)(o.Z,{beforeIcon:(0,b.jsx)(j.QM,{}),onClick:function(){return i(!0)},primary:!0,children:"Add new permission"})}),(0,b.jsx)(d.Z,{light:!0}),(0,b.jsx)(h.Z,{columnFlex:[3,1,null,6,null,null],columns:[{uuid:"Entity"},{uuid:"Subtype"},{uuid:"Entity ID"},{uuid:"Access"},{uuid:"Last updated"},{rightAligned:!0,uuid:"Created at"}],onClickRow:function(n){var t,i=null===(t=s[n])||void 0===t?void 0:t.id;e.push("/settings/workspace/permissions/".concat(i))},rows:null===s||void 0===s?void 0:s.map((function(e){var n=e.access,t=e.created_at,i=e.entity,r=e.entity_id,s=e.entity_name,u=e.entity_type,c=(e.id,e.updated_at),o=(e.user,n?(0,w.q)(n):[]),d=(null===o||void 0===o?void 0:o.length)||0;return[(0,b.jsx)(v.ZP,{monospace:!0,children:s||i},"entityName"),(0,b.jsx)(v.ZP,{default:!0,monospace:!!u,children:u||"-"},"entityType"),(0,b.jsx)(v.ZP,{default:!0,monospace:!!r,children:r||"-"},"entityID"),(0,b.jsx)("div",{children:d>=1&&(0,b.jsx)(l.ZP,{alignItems:"center",flexWrap:"wrap",children:null===o||void 0===o?void 0:o.map((function(e,n){return(0,b.jsx)("div",{children:(0,b.jsxs)(v.ZP,{default:!0,monospace:!0,small:!0,children:[e,d>=2&&n<d-1&&(0,b.jsx)(v.ZP,{inline:!0,muted:!0,small:!0,children:",\xa0"})]})},e)}))})},"access"),(0,b.jsx)(v.ZP,{monospace:!0,default:!0,children:c&&(0,P.d$)(c)},"updatedAt"),(0,b.jsx)(v.ZP,{monospace:!0,default:!0,rightAligned:!0,children:t&&(0,P.d$)(t)},"createdAt")]})),uuid:"permissions"})]})]})}k.getInitialProps=(0,i.Z)(s().mark((function e(){return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",{});case 1:case"end":return e.stop()}}),e)}))),n.default=(0,p.Z)(k)},36717:function(e,n,t){"use strict";t.d(n,{q:function(){return s}});var i=t(75582),r=t(36288);function s(e){return Object.entries(r.K4).reduce((function(n,t){var r=(0,i.Z)(t,2),s=r[0],u=r[1];return e&Number(s)?n.concat(u):n}),[])}},65960:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/settings/workspace/permissions",function(){return t(34331)}])}},function(e){e.O(0,[844,2083,8013,600,4636,8264,4666,5499,3684,8146,9774,2888,179],(function(){return n=65960,e(e.s=n);var n}));var n=e.O();_N_E=n}]);
@@ -1 +0,0 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8011],{8193:function(n,e,t){"use strict";t.d(e,{N:function(){return c}});var r=t(38626),i=t(44897),o=t(42631),a=t(70515),c=r.default.div.withConfig({displayName:"indexstyle__ContainerStyle",componentId:"sc-1ck7mzt-0"})(["border-radius:","px;padding:","px;",""],o.n_,a.cd*a.iI,(function(n){return"\n background-color: ".concat((n.theme.background||i.Z.background).codeArea,";\n ")}))},65956:function(n,e,t){"use strict";var r=t(38626),i=t(55485),o=t(38276),a=t(30160),c=t(44897),l=t(42631),d=t(47041),u=t(70515),s=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;"," "," "," "," "," "," "," "," "," "," "," ",""],l.n_,(function(n){return n.fullWidth&&"\n width: 100%;\n "}),(function(n){return!n.borderless&&"\n border: 1px solid ".concat((n.theme.interactive||c.Z.interactive).defaultBorder,";\n ")}),(function(n){return n.success&&"\n background-color: ".concat((n.theme.background||c.Z.background).successLight,";\n ")}),(function(n){return n.success&&!n.borderless&&"\n border: 1px solid ".concat((n.theme.background||c.Z.background).success,";\n ")}),(function(n){return!n.dark&&!n.success&&"\n background-color: ".concat((n.theme.background||c.Z.background).panel,";\n ")}),(function(n){return n.dark&&"\n background-color: ".concat((n.theme.background||c.Z.background).content,";\n ")}),(function(n){return!n.fullHeight&&"\n height: fit-content;\n "}),(function(n){return n.maxHeight&&"\n max-height: ".concat(n.maxHeight,";\n ")}),(function(n){return n.maxWidth&&"\n max-width: ".concat(n.maxWidth,"px;\n ")}),(function(n){return n.minWidth&&"\n min-width: ".concat(n.minWidth,"px;\n\n @media (max-width: ").concat(n.minWidth,"px) {\n min-width: 0;\n }\n ")}),(function(n){return n.borderless&&"\n border: none;\n "}),(function(n){return n.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;"," "," "," ",""],l.n_,l.n_,(function(n){return"\n background-color: ".concat((n.theme.background||c.Z.background).chartBlock,";\n border-bottom: 1px solid ").concat((n.theme.interactive||c.Z.interactive).defaultBorder,";\n ")}),(function(n){return n.height&&"\n height: ".concat(n.height,"px;\n ")}),f,(function(n){return n.headerPaddingVertical&&"\n padding-bottom: ".concat(n.headerPaddingVertical,"px;\n padding-top: ").concat(n.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,d.w5,(function(n){return n.height&&"\n height: ".concat(n.height,"px;\n ")}),(function(n){return n.maxHeight&&"\n max-height: calc(".concat(n.maxHeight," - ").concat(15*u.iI,"px);\n ")}),(function(n){return n.noPadding&&"\n padding: 0;\n "}),(function(n){return n.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;"],l.M8,l.YF,1.75*u.iI);e.Z=function(n){var e=n.borderless,t=n.children,r=n.containerRef,c=n.contentContainerRef,l=n.dark,d=n.footer,u=n.fullHeight,f=void 0===u||u,x=n.fullWidth,v=void 0===x||x,j=n.header,Z=n.headerHeight,b=n.headerIcon,w=n.headerPaddingVertical,y=n.headerTitle,I=n.maxHeight,P=n.maxWidth,_=n.minWidth,S=n.noPadding,O=n.overflowVisible,k=n.subtitle,H=n.success;return(0,s.jsxs)(h,{borderless:e,dark:l,fullHeight:f,fullWidth:v,maxHeight:I,maxWidth:P,minWidth:_,overflowVisible:O,ref:r,success:H,children:[(j||y)&&(0,s.jsxs)(g,{headerPaddingVertical:w,height:Z,children:[j&&j,y&&(0,s.jsx)(i.ZP,{alignItems:"center",justifyContent:"space-between",children:(0,s.jsxs)(i.ZP,{alignItems:"center",children:[b&&b,(0,s.jsx)(o.Z,{ml:b?1:0,children:(0,s.jsx)(a.ZP,{bold:!0,default:!0,children:y})})]})})]}),(0,s.jsxs)(m,{maxHeight:I,noPadding:S,overflowVisible:O,ref:c,children:[k&&(0,s.jsx)(o.Z,{mb:2,children:(0,s.jsx)(a.ZP,{default:!0,children:k})}),t]}),d&&(0,s.jsx)(p,{children:d})]})}},85854:function(n,e,t){"use strict";var r,i,o,a,c,l,d,u,s=t(82394),f=t(26304),h=t(26653),g=t(38626),m=t(33591),p=t(44897),x=t(95363),v=t(61896),j=t(30160),Z=t(70515),b=t(38276),w=t(28598),y=["children","condensed","inline","level","marketing","spacingBelow"];function I(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,r)}return t}function P(n){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?I(Object(t),!0).forEach((function(e){(0,s.Z)(n,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):I(Object(t)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}))}return n}var _=(0,g.css)([""," margin:0;"," "," "," "," "," "," "," "," "," "," "," "," ",""],j.IH,(function(n){return n.color&&"\n color: ".concat(n.color,"\n ")}),(function(n){return n.yellow&&"\n color: ".concat((n.theme.accent||p.Z.accent).yellow,";\n ")}),(function(n){return n.center&&"\n text-align: center;\n "}),(function(n){return!n.monospace&&0===Number(n.weightStyle)&&"\n font-family: ".concat(x.iI,";\n ")}),(function(n){return!n.monospace&&1===Number(n.weightStyle)&&"\n font-family: ".concat(x.LX,";\n ")}),(function(n){return!n.monospace&&2===Number(n.weightStyle)&&"\n font-family: ".concat(x.LX,";\n ")}),(function(n){return!n.monospace&&3===Number(n.weightStyle)&&"\n font-family: ".concat(x.ry,";\n ")}),(function(n){return!n.monospace&&4===Number(n.weightStyle)&&"\n font-family: ".concat(x.YC,";\n ")}),(function(n){return!n.monospace&&5===Number(n.weightStyle)&&"\n font-family: ".concat(x.nF,";\n ")}),(function(n){return!n.monospace&&(6===Number(n.weightStyle)||n.bold)&&"\n font-family: ".concat(x.nF,";\n ")}),(function(n){return!n.monospace&&7===Number(n.weightStyle)&&"\n font-family: ".concat(x.nF,";\n ")}),(function(n){return!n.monospace&&8===Number(n.weightStyle)&&"\n font-family: ".concat(x.nF,";\n ")}),(function(n){return n.lineHeightAuto&&"\n line-height: normal !important;\n "})),S=g.default.div.withConfig({displayName:"Headline__HeadlineContainerStyle",componentId:"sc-12jzt2e-0"})(["",""],(function(n){return"\n color: ".concat((n.theme.content||p.Z.content).active,";\n ")})),O=g.default.h1.withConfig({displayName:"Headline__H1HeroStyle",componentId:"sc-12jzt2e-1"})([""," font-size:42px;line-height:56px;"," "," ",""],_,m.media.md(r||(r=(0,h.Z)(["\n ","\n "])),v.aQ),m.media.lg(i||(i=(0,h.Z)(["\n ","\n "])),v.aQ),m.media.xl(o||(o=(0,h.Z)(["\n ","\n "])),v.aQ)),k=g.default.h1.withConfig({displayName:"Headline__H1Style",componentId:"sc-12jzt2e-2"})([""," ",""],_,v.MJ),H=g.default.h1.withConfig({displayName:"Headline__H1MarketingStyle",componentId:"sc-12jzt2e-3"})([""," "," "," "," "," ",""],_,m.media.xs(a||(a=(0,h.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*Z.iI,7*Z.iI),m.media.sm(c||(c=(0,h.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*Z.iI,7*Z.iI),m.media.md(l||(l=(0,h.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*Z.iI,7*Z.iI),m.media.lg(d||(d=(0,h.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*Z.iI,7*Z.iI),m.media.xl(u||(u=(0,h.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*Z.iI,7*Z.iI)),C=g.default.h2.withConfig({displayName:"Headline__H2Style",componentId:"sc-12jzt2e-4"})([""," ",""],_,v.BL),N=g.default.h3.withConfig({displayName:"Headline__H3Style",componentId:"sc-12jzt2e-5"})([""," font-size:24px;line-height:32px;"],_),z=g.default.h4.withConfig({displayName:"Headline__H4Style",componentId:"sc-12jzt2e-6"})([""," font-size:20px;line-height:28px;"],_),D=g.default.h5.withConfig({displayName:"Headline__H5Style",componentId:"sc-12jzt2e-7"})([""," font-size:18px;line-height:26px;"],_),M=g.default.span.withConfig({displayName:"Headline__SpanStyle",componentId:"sc-12jzt2e-8"})([""," "," "," "," ",""],_,(function(n){return 1===n.level&&"\n ".concat(v.MJ,"\n ")}),(function(n){return 2===n.level&&"\n ".concat(v.BL,"\n ")}),(function(n){return 3===n.level&&"\n font-size: 24px;\n line-height: 32px;\n "}),(function(n){return 4===n.level&&"\n font-size: 20px;\n line-height: 28px;\n "})),Y=function(n){var e,t=n.children,r=n.condensed,i=n.inline,o=n.level,a=n.marketing,c=n.spacingBelow,l=(0,f.Z)(n,y);i?e=M:0===Number(o)?e=O:1===Number(o)?e=a?H:k:2===Number(o)?e=C:3===Number(o)?e=N:4===Number(o)?e=z:5===Number(o)&&(e=D);var d=(0,w.jsxs)(e,P(P({},l),{},{level:o,children:[c&&(0,w.jsx)(b.Z,{mb:r?2:3,children:t}),!c&&t]}));return i?d:(0,w.jsx)(S,{children:d})};Y.defaultProps={level:3,weightStyle:6},e.Z=Y},49597:function(n,e,t){"use strict";t.r(e);var r=t(77837),i=t(75582),o=t(82394),a=t(38860),c=t.n(a),l=t(21764),d=t(82684),u=t(69864),s=t(71180),f=t(15338),h=t(97618),g=t(55485),m=t(85854),p=t(65956),x=t(93808),v=t(28274),j=t(38276),Z=t(30160),b=t(17488),w=t(35686),y=t(8193),I=t(72473),P=t(70515),_=t(24755),S=t(3917),O=t(76417),k=t(50178),H=t(42122),C=t(72619),N=t(28598);function z(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,r)}return t}function D(n){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?z(Object(t),!0).forEach((function(e){(0,o.Z)(n,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):z(Object(t)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}))}return n}var M=2*P.iI;function Y(n){var e=n.newUser,t=n.slug,r=((0,k.PR)()||{}).owner,o=(0,d.useState)({}),a=o[0],c=o[1],x=(0,d.useState)(null),z=x[0],Y=x[1],E=(0,d.useCallback)((function(n){c((function(e){return D(D({},e),n)})),Y((function(e){return D(D({},e),n)}))}),[c,Y]),B=w.ZP.users.detail(t,{},{revalidateOnFocus:!1}).data,T=(0,d.useMemo)((function(){return null===B||void 0===B?void 0:B.user}),[B]);(0,d.useEffect)((function(){T&&Y(T)}),[Y,T]);var W=(0,u.Db)(e?w.ZP.users.useCreate():w.ZP.users.useUpdate(t),{onSuccess:function(n){return(0,C.wD)(n,{callback:function(n){var t=n.user;c({}),Y(t),l.Am.success(e?"New user created successfully.":"User profile successfully updated.",{position:l.Am.POSITION.BOTTOM_RIGHT,toastId:"user-update-success-".concat(t.id)})},onErrorCallback:function(n){var e=n.error,t=e.errors,r=e.exception,i=e.message,o=e.type;l.Am.error((null===t||void 0===t?void 0:t.error)||r||i,{position:l.Am.POSITION.BOTTOM_RIGHT,toastId:o})}})}}),A=(0,i.Z)(W,2),V=A[0],R=A[1].isLoading;return(0,N.jsx)(v.Z,{appendBreadcrumbs:!0,breadcrumbs:[{label:function(){return"Users"},linkProps:{href:"/settings/workspace/users"}},{bold:!0,label:function(){return null===z||void 0===z?void 0:z.username}}],title:T?(0,O.s)(T):"New user",uuidItemSelected:_.B2.USERS,uuidWorkspaceSelected:_.Pl.USER_MANAGEMENT,children:(0,N.jsxs)(y.N,{children:[(0,N.jsxs)(p.Z,{noPadding:!0,children:[(0,N.jsx)(j.Z,{p:P.cd,children:(0,N.jsx)(m.Z,{level:4,children:"Profile"})}),(0,N.jsx)(f.Z,{light:!0}),(0,N.jsx)(j.Z,{p:P.cd,children:(0,N.jsxs)(g.ZP,{alignItems:"center",children:[(0,N.jsx)(Z.ZP,{default:!0,large:!0,children:"Avatar"}),(0,N.jsx)(j.Z,{mr:P.cd}),(0,N.jsx)(h.Z,{flex:1,children:(0,N.jsx)(b.Z,{afterIcon:(0,N.jsx)(I.I8,{}),afterIconClick:function(n,e){var t;null===e||void 0===e||null===(t=e.current)||void 0===t||t.focus()},afterIconSize:M,alignRight:!0,autoComplete:"off",large:!0,noBackground:!0,noBorder:!0,fullWidth:!0,onChange:function(n){return E({avatar:n.target.value})},paddingHorizontal:0,paddingVertical:0,placeholder:"Add initials or an emoji",value:(null===z||void 0===z?void 0:z.avatar)||""})})]})}),(0,N.jsx)(f.Z,{light:!0}),(0,N.jsx)(j.Z,{p:P.cd,children:(0,N.jsxs)(g.ZP,{alignItems:"center",children:[(0,N.jsxs)(Z.ZP,{danger:"username"in a&&!(null!==z&&void 0!==z&&z.username),default:!0,large:!0,children:["Username ","username"in a&&!(null!==z&&void 0!==z&&z.username)&&(0,N.jsx)(Z.ZP,{danger:!0,inline:!0,large:!0,children:"is required"})]}),(0,N.jsx)(j.Z,{mr:P.cd}),(0,N.jsx)(h.Z,{flex:1,children:(0,N.jsx)(b.Z,{afterIcon:(0,N.jsx)(I.I8,{}),afterIconClick:function(n,e){var t;null===e||void 0===e||null===(t=e.current)||void 0===t||t.focus()},afterIconSize:M,alignRight:!0,large:!0,noBackground:!0,noBorder:!0,fullWidth:!0,onChange:function(n){return E({username:n.target.value})},paddingHorizontal:0,paddingVertical:0,placeholder:"e.g. Mage Supreme",value:(null===z||void 0===z?void 0:z.username)||""})})]})}),(0,N.jsx)(f.Z,{light:!0}),(0,N.jsx)(j.Z,{p:P.cd,children:(0,N.jsxs)(g.ZP,{alignItems:"center",children:[(0,N.jsx)(Z.ZP,{default:!0,large:!0,children:"First name"}),(0,N.jsx)(j.Z,{mr:P.cd}),(0,N.jsx)(h.Z,{flex:1,children:(0,N.jsx)(b.Z,{afterIcon:(0,N.jsx)(I.I8,{}),afterIconClick:function(n,e){var t;null===e||void 0===e||null===(t=e.current)||void 0===t||t.focus()},afterIconSize:M,alignRight:!0,large:!0,noBackground:!0,noBorder:!0,fullWidth:!0,onChange:function(n){return E({first_name:n.target.value})},paddingHorizontal:0,paddingVertical:0,placeholder:"e.g. Urza",value:(null===z||void 0===z?void 0:z.first_name)||""})})]})}),(0,N.jsx)(f.Z,{light:!0}),(0,N.jsx)(j.Z,{p:P.cd,children:(0,N.jsxs)(g.ZP,{alignItems:"center",children:[(0,N.jsx)(Z.ZP,{default:!0,large:!0,children:"Last name"}),(0,N.jsx)(j.Z,{mr:P.cd}),(0,N.jsx)(h.Z,{flex:1,children:(0,N.jsx)(b.Z,{afterIcon:(0,N.jsx)(I.I8,{}),afterIconClick:function(n,e){var t;null===e||void 0===e||null===(t=e.current)||void 0===t||t.focus()},afterIconSize:M,alignRight:!0,large:!0,noBackground:!0,noBorder:!0,fullWidth:!0,onChange:function(n){return E({last_name:n.target.value})},paddingHorizontal:0,paddingVertical:0,placeholder:"e.g. Andromeda",value:(null===z||void 0===z?void 0:z.last_name)||""})})]})}),(0,N.jsx)(f.Z,{light:!0}),(0,N.jsx)(j.Z,{p:P.cd,children:(0,N.jsxs)(g.ZP,{alignItems:"center",children:[(0,N.jsx)(Z.ZP,{default:!0,large:!0,children:"Email"}),(0,N.jsx)(j.Z,{mr:P.cd}),(0,N.jsxs)(h.Z,{alignItems:"center",flex:1,justifyContent:"flex-end",children:[(0,N.jsx)(Z.ZP,{large:!0,muted:!0,children:null===z||void 0===z?void 0:z.email}),(0,N.jsx)(j.Z,{mr:P.cd}),(0,N.jsx)(I.KJ,{muted:!0,size:M}),(0,N.jsx)(j.Z,{mr:1})]})]})})]}),(0,N.jsx)(j.Z,{mb:P.HN}),(0,N.jsxs)(p.Z,{noPadding:!0,children:[(0,N.jsx)(j.Z,{p:P.cd,children:(0,N.jsx)(m.Z,{level:4,children:"Authentication"})}),(0,N.jsx)(f.Z,{light:!0}),(0,N.jsx)(j.Z,{p:P.cd,children:(0,N.jsxs)(g.ZP,{alignItems:"center",children:[(0,N.jsxs)(Z.ZP,{danger:"password_current"in a&&!(null!==z&&void 0!==z&&z.password_current),default:!0,large:!0,children:["Current password ","password_current"in a&&!(null!==z&&void 0!==z&&z.password_current)&&(0,N.jsx)(Z.ZP,{danger:!0,inline:!0,large:!0,children:"is required"})]}),(0,N.jsx)(j.Z,{mr:P.cd}),(0,N.jsx)(h.Z,{flex:1,children:(0,N.jsx)(b.Z,{afterIcon:(0,N.jsx)(I.I8,{}),afterIconClick:function(n,e){var t;null===e||void 0===e||null===(t=e.current)||void 0===t||t.focus()},afterIconSize:M,alignRight:!0,large:!0,noBackground:!0,noBorder:!0,fullWidth:!0,onChange:function(n){return E({password_current:n.target.value})},paddingHorizontal:0,paddingVertical:0,placeholder:"* * * * * * * *",type:"password",value:(null===z||void 0===z?void 0:z.password_current)||""})})]})}),(0,N.jsx)(f.Z,{light:!0}),(0,N.jsx)(j.Z,{p:P.cd,children:(0,N.jsxs)(g.ZP,{alignItems:"center",children:[(0,N.jsxs)(Z.ZP,{danger:"password"in a&&!(null!==z&&void 0!==z&&z.password),default:!0,large:!0,children:["New password ","password"in a&&!(null!==z&&void 0!==z&&z.password)&&(0,N.jsx)(Z.ZP,{danger:!0,inline:!0,large:!0,children:"is required"})]}),(0,N.jsx)(j.Z,{mr:P.cd}),(0,N.jsx)(h.Z,{flex:1,children:(0,N.jsx)(b.Z,{afterIcon:(0,N.jsx)(I.I8,{}),afterIconClick:function(n,e){var t;null===e||void 0===e||null===(t=e.current)||void 0===t||t.focus()},afterIconSize:M,alignRight:!0,autoComplete:"off",large:!0,noBackground:!0,noBorder:!0,fullWidth:!0,onChange:function(n){return E({password:n.target.value})},paddingHorizontal:0,paddingVertical:0,placeholder:"* * * * * * * *",type:"password",value:(null===z||void 0===z?void 0:z.password)||""})})]})}),(0,N.jsx)(f.Z,{light:!0}),(0,N.jsx)(j.Z,{p:P.cd,children:(0,N.jsxs)(g.ZP,{alignItems:"center",children:[(0,N.jsxs)(Z.ZP,{danger:"password_confirmation"in a&&!(null!==z&&void 0!==z&&z.password_confirmation),default:!0,large:!0,children:["Confirm new password ","password_confirmation"in a&&!(null!==z&&void 0!==z&&z.password_confirmation)&&(0,N.jsx)(Z.ZP,{danger:!0,inline:!0,large:!0,children:"is required"})]}),(0,N.jsx)(j.Z,{mr:P.cd}),(0,N.jsx)(h.Z,{flex:1,children:(0,N.jsx)(b.Z,{afterIcon:(0,N.jsx)(I.I8,{}),afterIconClick:function(n,e){var t;null===e||void 0===e||null===(t=e.current)||void 0===t||t.focus()},afterIconSize:M,alignRight:!0,autoComplete:"off",large:!0,noBackground:!0,noBorder:!0,fullWidth:!0,onChange:function(n){return E({password_confirmation:n.target.value})},paddingHorizontal:0,paddingVertical:0,placeholder:"* * * * * * * *",type:"password",value:(null===z||void 0===z?void 0:z.password_confirmation)||""})})]})})]}),(0,N.jsx)(j.Z,{mb:P.HN}),(0,N.jsxs)(p.Z,{noPadding:!0,children:[(0,N.jsx)(j.Z,{p:P.cd,children:(0,N.jsx)(m.Z,{level:4,children:"Metadata"})}),(0,N.jsx)(f.Z,{light:!0}),(0,N.jsx)(j.Z,{p:P.cd,children:(0,N.jsxs)(g.ZP,{alignItems:"center",children:[(0,N.jsx)(Z.ZP,{default:!0,large:!0,children:"Last updated"}),(0,N.jsx)(j.Z,{mr:P.cd}),(0,N.jsxs)(h.Z,{alignItems:"center",flex:1,justifyContent:"flex-end",children:[(0,N.jsx)(Z.ZP,{large:!0,monospace:!0,muted:!0,children:(null===z||void 0===z?void 0:z.updated_at)&&(0,S.d$)(null===z||void 0===z?void 0:z.updated_at,{includeSeconds:!0})}),(0,N.jsx)(j.Z,{mr:P.cd}),(0,N.jsx)(I.Pf,{muted:!0,size:M}),(0,N.jsx)(j.Z,{mr:1})]})]})}),(0,N.jsx)(f.Z,{light:!0}),(0,N.jsx)(j.Z,{p:P.cd,children:(0,N.jsxs)(g.ZP,{alignItems:"center",children:[(0,N.jsx)(Z.ZP,{default:!0,large:!0,children:"Created at"}),(0,N.jsx)(j.Z,{mr:P.cd}),(0,N.jsxs)(h.Z,{alignItems:"center",flex:1,justifyContent:"flex-end",children:[(0,N.jsx)(Z.ZP,{large:!0,monospace:!0,muted:!0,children:(null===T||void 0===T?void 0:T.created_at)&&(0,S.d$)(null===T||void 0===T?void 0:T.created_at,{includeSeconds:!0})}),(0,N.jsx)(j.Z,{mr:P.cd}),(0,N.jsx)(I.Pf,{muted:!0,size:M}),(0,N.jsx)(j.Z,{mr:1})]})]})})]}),(0,N.jsx)(j.Z,{mb:P.HN}),(0,N.jsxs)(g.ZP,{children:[(0,N.jsx)(s.Z,{beforeIcon:(0,N.jsx)(I.vc,{}),disabled:!a||(0,H.Qr)(a),loading:R,onClick:function(){return V({user:(0,H.GL)(z,["avatar","first_name","last_name","password","password_confirmation","password_current","username"],{include_blanks:!0})})},primary:!0,children:"Save changes"}),String(null===T||void 0===T?void 0:T.id)!==String(t)&&r&&(0,N.jsxs)(N.Fragment,{children:[(0,N.jsx)(j.Z,{mr:P.cd}),(0,N.jsx)(s.Z,{beforeIcon:(0,N.jsx)(I.rF,{}),danger:!0,children:"Delete user"})]})]})]})})}Y.getInitialProps=function(){var n=(0,r.Z)(c().mark((function n(e){var t;return c().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return t=e.query.slug,n.abrupt("return",{slug:null===t||void 0===t?void 0:t[0]});case 2:case"end":return n.stop()}}),n)})));return function(e){return n.apply(this,arguments)}}(),e.default=(0,x.Z)(Y)},3917:function(n,e,t){"use strict";t.d(e,{A5:function(){return I},AY:function(){return P},BP:function(){return y},Cs:function(){return H},JX:function(){return w},OC:function(){return f},Pc:function(){return _},Ro:function(){return S},Tz:function(){return b},XG:function(){return j},Y_:function(){return k},d$:function(){return v},jV:function(){return O},lE:function(){return g},lJ:function(){return C},n$:function(){return Z},n1:function(){return m},s8:function(){return u},vk:function(){return o},yD:function(){return s},yd:function(){return x}});var r,i,o,a=t(82394),c=t(92083),l=t.n(c),d=t(86735);!function(n){n.TODAY="today",n.WEEK="week",n.MONTH="month"}(o||(o={}));var u=(r={},(0,a.Z)(r,o.TODAY,"today"),(0,a.Z)(r,o.WEEK,"last 7 days"),(0,a.Z)(r,o.MONTH,"last 30 days"),r),s=(i={},(0,a.Z)(i,o.TODAY,0),(0,a.Z)(i,o.WEEK,6),(0,a.Z)(i,o.MONTH,29),i),f="YYYY-MM-DD HH:mm:ss",h="YYYY-MM-DD HH:mm",g="YYYY-MM-DD HH:mmZ",m="YYYY-MM-DD",p="MMMM D, YYYY",x=Intl.DateTimeFormat().resolvedOptions().timeZone;function v(n,e){var t=e||{},r=t.dayAgo,i=t.includeSeconds,o=t.utcFormat,a=l()(n),c=h;return o&&(a=a.utc()),r&&(a=a.subtract(1,"days")),i&&(c=f),a.format(c)}function j(n,e){return e?l().utc(n).local().format():n}function Z(n){return l().utc(n).local().toDate()}function b(n){var e=v((new Date).toISOString(),{includeSeconds:!0,utcFormat:!0});return null!==n&&void 0!==n&&n.dateObj?new Date(e):e}function w(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return l().unix(n).format(null!==e&&void 0!==e&&e.withSeconds?f:h)}function y(n,e,t){return l()(n).utc().hours(+e).minutes(+t).format()}function I(n){return l()(n).unix()}function P(n,e,t,r){var i="".concat(n.toISOString().split("T")[0]," ").concat(e,":").concat(t);return r?"".concat(i,":").concat(r):i}function _(n){var e=l().unix(+n).utc();return{date:e.toDate(),hour:String(e.hour()),minute:String(e.minute())}}function S(n,e){var t=l().utc(),r=l().utc();null!==e&&void 0!==e&&e.localTime&&(t=l()().local(),r=l()().local());var i=(t=t.subtract(n,"days")).format(p),o=r.format(p);return null!==e&&void 0!==e&&e.endDateOnly?o:"".concat(i," - ").concat(o)}function O(n,e){var t=null!==e&&void 0!==e&&e.localTime?l()().local():l().utc();if(n===o.WEEK){var r=s[o.WEEK];t=t.subtract(r,"days")}else if(n===o.MONTH){var i=s[o.MONTH];t=t.subtract(i,"days")}return null!==e&&void 0!==e&&e.isoString?t.startOf("day").toISOString():t.startOf("day").format(f)}function k(){for(var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:90,e=new Date,t=[],r=0;r<n;r++)t.unshift(e.toISOString().split("T")[0]),e.setDate(e.getDate()-1);return t}function H(){var n=new Date,e=String(n.getMonth()+1).padStart(2,"0"),t=n.getFullYear(),r=l()("".concat(t,"-").concat(e),"YYYY-MM").daysInMonth();return(0,d.m5)(r,1)}function C(n){return n.padStart(2,"0")}},76417:function(n,e,t){"use strict";function r(n){return null!==n&&void 0!==n&&n.first_name?[null===n||void 0===n?void 0:n.first_name,null===n||void 0===n?void 0:n.last_name].filter((function(n){return n})).join(" "):null===n||void 0===n?void 0:n.username}t.d(e,{s:function(){return r}})},23292:function(n,e,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/settings/workspace/users/[...slug]",function(){return t(49597)}])}},function(n){n.O(0,[844,2083,8013,600,4636,8264,3684,9774,2888,179],(function(){return e=23292,n(n.s=e);var e}));var e=n.O();_N_E=e}]);
@@ -1 +0,0 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2287],{87992:function(e,r,n){"use strict";n.r(r);var u=n(77837),t=n(82394),s=n(38860),i=n.n(s),d=n(82684),l=n(34376),a=n(71180),o=n(15338),c=n(93808),f=n(28274),_=n(38276),p=n(75499),v=n(30160),w=n(36043),h=n(35686),m=n(98464),j=n(72473),b=n(70515),P=n(24755),Z=n(14875),O=n(3917),x=n(50178),g=n(15610),y=n(42122),E=n(69419),S=n(28598);function k(e,r){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(e);r&&(u=u.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),n.push.apply(n,u)}return n}function N(e){for(var r=1;r<arguments.length;r++){var n=null!=arguments[r]?arguments[r]:{};r%2?k(Object(n),!0).forEach((function(r){(0,t.Z)(e,r,n[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):k(Object(n)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))}))}return e}function D(){var e=(0,l.useRouter)(),r=(0,x.PR)()||{},n=(r.id,r.owner),u=(0,d.useState)(null),t=u[0],s=u[1],i=h.ZP.users.list({},{revalidateOnFocus:!1}),c=i.data,k=i.mutate,D=(0,d.useMemo)((function(){return(null===c||void 0===c?void 0:c.users)||[]}),[null===c||void 0===c?void 0:c.users]),R=h.ZP.users.detail(null===t||void 0===t?void 0:t.user_id,{},{revalidateOnFocus:!1}),A=R.data,U=R.mutate,C=null===A||void 0===A?void 0:A.user,F=(0,E.iV)(),M=(0,m.Z)(F);(0,d.useEffect)((function(){var e=F.add_new_user,r=F.user_id;if(!(0,y.Xy)(F,M)){var n=N(N({},M),F);r?n.user_id=r:delete n.user_id,e?n.add_new_user=e:delete n.add_new_user,s(n)}}),[F,M]);var I=null===t||void 0===t?void 0:t.add_new_user,T=(0,d.useMemo)((function(){return I?(0,S.jsx)(_.Z,{p:b.cd,children:(0,S.jsx)(w.Z,{newUser:!0,onSaveSuccess:function(){(0,g.u7)({add_new_user:null,user_id:null}),k()},title:"Add new user",user:{}})}):C?(0,S.jsx)(_.Z,{p:b.cd,children:(0,S.jsx)(w.Z,{hideFields:[Z.s7],onDeleteSuccess:function(){(0,g.u7)({add_new_user:null,user_id:null}),k()},onSaveSuccess:function(){(0,g.u7)({add_new_user:null,user_id:null}),U(),k()},showDelete:!0,title:"Edit user",user:C})}):null}),[U,k,I,C]);return(0,S.jsxs)(f.Z,{after:T,afterHidden:!C&&!I,appendBreadcrumbs:!0,breadcrumbs:[{bold:!0,label:function(){return"Users"},linkProps:{href:"/settings/workspace/users"}}],title:"Users",uuidItemSelected:P.B2.USERS,uuidWorkspaceSelected:P.Pl.USER_MANAGEMENT,children:[n&&(0,S.jsx)(_.Z,{p:b.cd,children:(0,S.jsx)(a.Z,{beforeIcon:(0,S.jsx)(j.DN,{}),onClick:function(){return(0,g.u7)({add_new_user:1,user_id:null})},primary:!0,children:"Add new user"})}),(0,S.jsx)(o.Z,{light:!0}),(0,S.jsx)(p.Z,{columnFlex:[null,1,1,1,1,null,null],columns:[{label:function(){return""},uuid:"avatar"},{uuid:"Username"},{uuid:"First name"},{uuid:"Last name"},{uuid:"Email"},{uuid:"Role"},{rightAligned:!0,uuid:"Created"}],isSelectedRow:function(e){var r;return(null===(r=D[e])||void 0===r?void 0:r.id)===(null===C||void 0===C?void 0:C.id)},onClickRow:function(r){var n,u=null===(n=D[r])||void 0===n?void 0:n.id;e.push("/settings/workspace/users/".concat(u))},rows:D.map((function(e){var r=e.avatar,n=e.created_at,u=e.email,t=e.first_name,s=(e.id,e.last_name),i=e.roles_display,d=e.roles_new,l=e.username,a=d||[];return a.sort((function(e,r){return e.id-r.id})),[(0,S.jsx)(v.ZP,{large:!0,rightAligned:!0,children:r},"avatar"),(0,S.jsx)(v.ZP,{children:l||"-"},"username"),(0,S.jsx)(v.ZP,{default:!0,children:t||"-"},"firstName"),(0,S.jsx)(v.ZP,{default:!0,children:s||"-"},"lastName"),(0,S.jsx)(v.ZP,{default:!0,children:u},"email"),(0,S.jsx)(v.ZP,{default:!0,children:a.length>0?a[0].name:i},"roles"),(0,S.jsx)(v.ZP,{monospace:!0,default:!0,children:n&&(0,O.d$)(n)},"created")]})),uuid:"pipeline-runs"})]})}D.getInitialProps=(0,u.Z)(i().mark((function e(){return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",{});case 1:case"end":return e.stop()}}),e)}))),r.default=(0,c.Z)(D)},48673:function(e,r,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/settings/workspace/users",function(){return n(87992)}])}},function(e){e.O(0,[844,2083,8013,600,4636,8264,4666,5499,3684,6043,9774,2888,179],(function(){return r=48673,e(e.s=r);var r}));var r=e.O();_N_E=r}]);
@@ -1 +0,0 @@
1
- self.__BUILD_MANIFEST=function(s,e,i,a,c,t,n,p,l,u,g,r,k,d,b,f,o,h,j,m,w,_,v,y,I,B,F,A,D,E,L,M,N,S,T,U,C,x,P,q,z,G,H,J,K,O){return{__rewrites:{beforeFiles:[],afterFiles:[],fallback:[]},"/":["static/chunks/pages/index-a22f976b85beef2d.js"],"/_error":["static/chunks/pages/_error-e989623bffcbf724.js"],"/block-layout":[I,t,r,k,f,j,_,B,D,s,e,i,o,m,E,S,"static/chunks/pages/block-layout-a27a28d2a615e364.js"],"/files":[a,t,k,T,"static/chunks/6750-3c4c9e36f3a27999.js",s,e,c,i,n,p,l,o,U,"static/chunks/pages/files-98e27a4d7bd0da47.js"],"/global-data-products":[a,t,s,e,c,i,n,p,v,L,x,"static/chunks/pages/global-data-products-26909dec66f00231.js"],"/global-data-products/[...slug]":[a,t,s,e,c,i,n,p,v,L,x,"static/chunks/pages/global-data-products/[...slug]-9eb5dad57da13efd.js"],"/manage":[a,t,k,s,e,c,i,n,p,o,"static/chunks/pages/manage-476c921d62f565fc.js"],"/manage/settings":[a,t,k,"static/chunks/2261-27a93815f4d82dfc.js",s,e,c,i,o,"static/chunks/pages/manage/settings-b9eea6abc676ca81.js"],"/manage/users":[a,t,s,e,c,i,n,p,"static/chunks/pages/manage/users-bfce0ee677d57206.js"],"/manage/users/new":[a,s,e,c,i,M,"static/chunks/pages/manage/users/new-ae6083077c9c1c41.js"],"/manage/users/[user]":[a,t,s,e,c,i,n,p,M,"static/chunks/pages/manage/users/[user]-11c601c6ef07fe86.js"],"/overview":[I,a,t,g,d,r,k,f,j,_,F,B,D,s,e,c,i,n,p,l,b,o,w,m,A,E,S,P,"static/chunks/pages/overview-2ec6b17e45a52be8.js"],"/pipeline-runs":[a,t,s,e,c,i,n,p,v,"static/chunks/pages/pipeline-runs-605918f3a5c1aac4.js"],"/pipelines":[a,t,g,d,r,k,f,F,s,e,c,i,n,p,l,b,o,w,m,A,P,q,"static/chunks/pages/pipelines-270b912e1ac189b5.js"],"/pipelines/[pipeline]":["static/chunks/pages/pipelines/[pipeline]-35fe7762cb83a733.js"],"/pipelines/[pipeline]/backfills":[a,t,s,e,c,i,n,p,u,"static/chunks/pages/pipelines/[pipeline]/backfills-2402004a19a6ad53.js"],"/pipelines/[pipeline]/backfills/[...slug]":[a,t,g,d,y,N,s,e,c,i,n,p,l,u,b,v,"static/chunks/pages/pipelines/[pipeline]/backfills/[...slug]-ee65a62ed166bd85.js"],"/pipelines/[pipeline]/dashboard":[I,a,t,r,k,f,j,_,B,D,s,e,c,i,u,o,m,E,S,"static/chunks/pages/pipelines/[pipeline]/dashboard-8781db69f19759a1.js"],"/pipelines/[pipeline]/edit":[I,a,t,g,d,r,k,f,j,_,y,F,B,D,T,"static/chunks/6563-5b3b97c9088baf69.js",s,e,c,i,n,p,l,b,w,A,E,U,z,"static/chunks/pages/pipelines/[pipeline]/edit-68f1591d3f4262f1.js"],"/pipelines/[pipeline]/logs":[a,t,g,f,N,s,e,c,i,n,p,l,u,m,"static/chunks/pages/pipelines/[pipeline]/logs-234007c99efdccf6.js"],"/pipelines/[pipeline]/monitors":[a,t,j,_,"static/chunks/9737-1456491f9fdb09d3.js",s,e,c,i,u,C,"static/chunks/pages/pipelines/[pipeline]/monitors-a057b17847b82468.js"],"/pipelines/[pipeline]/monitors/block-runs":[a,t,j,_,"static/chunks/9210-b26999bcfb636602.js",s,e,c,i,l,u,C,"static/chunks/pages/pipelines/[pipeline]/monitors/block-runs-da7510d4b277e47b.js"],"/pipelines/[pipeline]/monitors/block-runtime":[I,a,t,j,_,"static/chunks/6485-dbc1ca8f24401caf.js",s,e,c,i,l,u,C,"static/chunks/pages/pipelines/[pipeline]/monitors/block-runtime-eae853ff34b09481.js"],"/pipelines/[pipeline]/runs":[a,t,g,d,y,s,e,c,i,n,p,l,u,b,v,G,"static/chunks/pages/pipelines/[pipeline]/runs-3f0980d8810a540b.js"],"/pipelines/[pipeline]/runs/[run]":[a,t,g,d,f,j,y,B,s,e,c,i,n,p,l,u,b,m,G,"static/chunks/pages/pipelines/[pipeline]/runs/[run]-99d11c86f8b15369.js"],"/pipelines/[pipeline]/settings":[a,t,s,e,c,i,u,"static/chunks/pages/pipelines/[pipeline]/settings-9edf75d03460aaeb.js"],"/pipelines/[pipeline]/syncs":[a,t,s,e,c,i,n,p,u,"static/chunks/pages/pipelines/[pipeline]/syncs-e7692e54979f037d.js"],"/pipelines/[pipeline]/triggers":[a,t,g,d,r,y,N,H,s,e,c,i,n,p,l,u,b,w,L,J,q,"static/chunks/pages/pipelines/[pipeline]/triggers-5eff96c149584e87.js"],"/pipelines/[pipeline]/triggers/[...slug]":[a,t,g,d,r,y,N,H,s,e,c,i,n,p,l,u,b,w,v,J,"static/chunks/pages/pipelines/[pipeline]/triggers/[...slug]-cb6a3bcaf4fa1a81.js"],"/settings":["static/chunks/pages/settings-56f83205752b1323.js"],"/settings/account/profile":[a,s,e,c,i,h,M,"static/chunks/pages/settings/account/profile-2058d022972cdea4.js"],"/settings/workspace/permissions":[a,t,s,e,c,i,n,p,h,K,"static/chunks/pages/settings/workspace/permissions-b7bc84646325062c.js"],"/settings/workspace/permissions/[...slug]":[a,t,s,e,c,i,h,K,"static/chunks/pages/settings/workspace/permissions/[...slug]-672599b18c4eb2a6.js"],"/settings/workspace/preferences":[a,s,e,c,i,h,"static/chunks/pages/settings/workspace/preferences-58978256db4efbda.js"],"/settings/workspace/roles":[a,t,s,e,c,i,n,p,h,O,"static/chunks/pages/settings/workspace/roles-1694c5eb1acbcf30.js"],"/settings/workspace/roles/[...slug]":[a,t,s,e,c,i,n,p,h,O,"static/chunks/pages/settings/workspace/roles/[...slug]-9ddd7eb842d5a911.js"],"/settings/workspace/sync-data":[a,s,e,c,i,h,"static/chunks/pages/settings/workspace/sync-data-6850e854fbedbb61.js"],"/settings/workspace/users":[a,t,s,e,c,i,n,p,h,M,"static/chunks/pages/settings/workspace/users-fe480da25b026bb5.js"],"/settings/workspace/users/[...slug]":[a,t,s,e,c,i,h,"static/chunks/pages/settings/workspace/users/[...slug]-b7b99c3d2109fdea.js"],"/sign-in":[a,s,e,c,"static/chunks/pages/sign-in-e779dbab123e626e.js"],"/templates":[a,t,g,d,r,k,f,F,s,e,c,i,n,p,l,b,o,w,m,A,"static/chunks/pages/templates-7079d637e396f2a8.js"],"/templates/[...slug]":[a,t,g,d,r,k,f,F,s,e,c,i,n,p,l,b,o,w,m,A,"static/chunks/pages/templates/[...slug]-935113d252ada806.js"],"/terminal":[a,s,e,c,i,"static/chunks/pages/terminal-67fdb4a3be93aa14.js"],"/test":[t,r,s,n,l,w,z,"static/chunks/pages/test-4a5ae8f9da088932.js"],"/triggers":[a,t,s,e,c,i,n,p,L,"static/chunks/pages/triggers-9c0374c7c783b34a.js"],"/version-control":[a,t,T,"static/chunks/8478-3f642f8420d9ef66.js",s,e,c,i,n,p,l,U,"static/chunks/pages/version-control-ea3a0d48e5822b42.js"],sortedPages:["/","/_app","/_error","/block-layout","/files","/global-data-products","/global-data-products/[...slug]","/manage","/manage/settings","/manage/users","/manage/users/new","/manage/users/[user]","/overview","/pipeline-runs","/pipelines","/pipelines/[pipeline]","/pipelines/[pipeline]/backfills","/pipelines/[pipeline]/backfills/[...slug]","/pipelines/[pipeline]/dashboard","/pipelines/[pipeline]/edit","/pipelines/[pipeline]/logs","/pipelines/[pipeline]/monitors","/pipelines/[pipeline]/monitors/block-runs","/pipelines/[pipeline]/monitors/block-runtime","/pipelines/[pipeline]/runs","/pipelines/[pipeline]/runs/[run]","/pipelines/[pipeline]/settings","/pipelines/[pipeline]/syncs","/pipelines/[pipeline]/triggers","/pipelines/[pipeline]/triggers/[...slug]","/settings","/settings/account/profile","/settings/workspace/permissions","/settings/workspace/permissions/[...slug]","/settings/workspace/preferences","/settings/workspace/roles","/settings/workspace/roles/[...slug]","/settings/workspace/sync-data","/settings/workspace/users","/settings/workspace/users/[...slug]","/sign-in","/templates","/templates/[...slug]","/terminal","/test","/triggers","/version-control"]}}("static/chunks/8013-e67c71ddea072a20.js","static/chunks/600-2b6bafe425cfd52c.js","static/chunks/8264-2743af6deab87497.js","static/chunks/844-1e171f361e63b36d.js","static/chunks/4636-84f545d1d238df13.js","static/chunks/2083-78a438dbdc57d1e4.js","static/chunks/4666-d8994abbc40b52ee.js","static/chunks/5499-b74459f6be5f9229.js","static/chunks/4839-e5fe343a369734bc.js","static/chunks/5457-97433bc45b42a88a.js","static/chunks/2851-dc553b2d9ee109c2.js","static/chunks/341-ef0f7b98b7f69802.js","static/chunks/8789-4f858e520d46973b.js","static/chunks/1124-d8fc76201b83b376.js","static/chunks/7055-17504ff848d2ce56.js","static/chunks/4913-24ccab3739f1c678.js","static/chunks/5810-7f576f7267788fe0.js","static/chunks/3684-e1a713b7c16f0151.js","static/chunks/5896-14e5a23b1c6a0769.js","static/chunks/3859-3501cdba0a33f9f2.js","static/chunks/1769-613e23e361eb5bce.js","static/chunks/2714-1e79e9f2e998b544.js","static/chunks/3943-35659e0a3fc6bda5.js","static/chunks/9161-837b653aa849a76f.js","static/chunks/29107295-989a0767a635d9d5.js","static/chunks/2631-b9f9bea3f1cf906d.js","static/chunks/1821-953efd0da290d25f.js","static/chunks/9264-11c4f9e79f8a9fd5.js","static/chunks/4783-1a21d9be47574bba.js","static/chunks/976-9a0469f807d8a343.js","static/chunks/1743-fe9deb3242e0e587.js","static/chunks/6043-6ea109833b88eb1d.js","static/chunks/4495-4f0340aa82e0c623.js","static/chunks/9440-0267f0e8690ea3c4.js","static/chunks/7011-81dd8269c4806d26.js","static/chunks/553-9a94dd8b33e381f8.js","static/chunks/9242-4c61fd2e1018e626.js","static/chunks/2327-1a797c758f8b064a.js","static/chunks/2677-a85c5a72bb695304.js","static/chunks/3951-22dc3b7d6ec6f5d5.js","static/chunks/1749-a6bdce4ee8a09bce.js","static/chunks/3419-0df6c5ef72f2e672.js","static/chunks/9302-913007e2f801ad65.js","static/chunks/6333-ca4cd6a73a597a40.js","static/chunks/8146-6f46ffd7cbe2fd07.js","static/chunks/7022-a0fb5af2ebd7bb45.js"),self.__BUILD_MANIFEST_CB&&self.__BUILD_MANIFEST_CB();
@@ -1 +0,0 @@
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,c=0;c<=e.length;++c){if(c<e.length)t=e.charCodeAt(c);else{if(47===t)break;t=47}if(47===t){if(o===c-1||1===l);else if(o!==c-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 s=r.lastIndexOf("/");if(s!==r.length-1){-1===s?(r="",i=0):i=(r=r.slice(0,s)).length-1-r.lastIndexOf("/"),o=c,l=0;continue}}else if(2===r.length||1===r.length){r="",i=0,o=c,l=0;continue}n&&(r.length>0?r+="/..":r="..",i=2)}else r.length>0?r+="/"+e.slice(o+1,c):r=e.slice(o+1,c),i=c-o-1;o=c,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,c=1;c<t.length&&47===t.charCodeAt(c);++c);for(var s=t.length-c,a=l<s?l:s,d=-1,u=0;u<=a;++u){if(u===a){if(s>a){if(47===t.charCodeAt(c+u))return t.slice(c+u+1);if(0===u)return t.slice(c+u)}else l>a&&(47===e.charCodeAt(i+u)?d=u:0===u&&(d=0));break}var f=e.charCodeAt(i+u);if(f!==t.charCodeAt(c+u))break;47===f&&(d=u)}var h="";for(u=i+d+1;u<=o;++u)u!==o&&47!==e.charCodeAt(u)||(0===h.length?h+="..":h+="/..");return h.length>0?h+t.slice(c+d):(c+=d,47===t.charCodeAt(c)&&++c,t.slice(c))},_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 c=t.length-1,s=-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===s&&(l=!1,s=r+1),c>=0&&(a===t.charCodeAt(c)?-1===--c&&(o=r):(c=-1,o=s))}return i===o?o=s:-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,c=e.length-1;c>=0;--c){var s=e.charCodeAt(c);if(47!==s)-1===i&&(o=!1,i=c+1),46===s?-1===t?t=c:1!==l&&(l=1):-1!==t&&(l=-1);else if(!o){r=c+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,c=0,s=-1,a=!0,d=e.length-1,u=0;d>=r;--d)if(47!==(i=e.charCodeAt(d)))-1===s&&(a=!1,s=d+1),46===i?-1===l?l=d:1!==u&&(u=1):-1!==l&&(u=-1);else if(!a){c=d+1;break}return-1===l||-1===s||0===u||1===u&&l===s-1&&l===c+1?-1!==s&&(t.base=t.name=0===c&&o?e.slice(1,s):e.slice(c,s)):(0===c&&o?(t.name=e.slice(1,l),t.base=e.slice(1,s)):(t.name=e.slice(c,l),t.base=e.slice(c,s)),t.ext=e.slice(l,s)),c>0?t.dir=e.slice(0,c-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),c=t(69864),s=t(34376),a=t(71180),d=t(15338),u=t(97618),f=t(55485),h=t(85854),g=t(65956),p=t(36288),x=t(44085),m=t(38276),v=t(30160),E=t(35576),Z=t(17488),j=t(69650),A=t(35686),b=t(8193),I=t(72473),L=t(70515),_=t(48277),D=t(81728),y=t(3917),P=t(76417),R=t(42122),T=t(72619),w=t(28598);function S(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 C(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?S(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):S(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var k=2*L.iI;n.Z=function(e){var n=e.onCancel,t=e.permission,i=(0,s.useRouter)(),S=(0,l.useState)({}),B=S[0],O=S[1],W=(0,l.useState)(null),N=W[0],U=W[1],H=(0,l.useCallback)((function(e){O((function(n){return C(C({},n),e)})),U((function(n){return C(C({},n),e)}))}),[O,U]);(0,l.useEffect)((function(){t&&U(t)}),[U,t]);var M=A.ZP.permissions.list({_format:"with_only_entity_options",only_entity_options:!0},{},{pauseFetch:!!t}).data,Q=(0,l.useMemo)((function(){var e;return null===M||void 0===M||null===(e=M.permissions)||void 0===e?void 0:e[0]}),[M]),V=(0,l.useMemo)((function(){var e;return(null===(e=t||Q)||void 0===e?void 0:e.entity_names)||[]}),[t,Q]),Y=(0,l.useMemo)((function(){var e;return(null===(e=t||Q)||void 0===e?void 0:e.entity_types)||[]}),[t,Q]),z=(0,c.Db)(t?A.ZP.permissions.useUpdate(null===t||void 0===t?void 0:t.id):A.ZP.permissions.useCreate(),{onSuccess:function(e){return(0,T.wD)(e,{callback:function(e){var n=e.permission;O({}),U(n),t||i.push("/settings/workspace/permissions/".concat(null===n||void 0===n?void 0:n.id)),o.Am.success(t?"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})}})}}),q=(0,r.Z)(z,2),F=q[0],G=q[1].isLoading,J=(0,c.Db)(A.ZP.permissions.useDelete(null===t||void 0===t?void 0:t.id),{onSuccess:function(e){return(0,T.wD)(e,{callback:function(){i.push("/settings/workspace/permissions"),o.Am.success("Permission successfully delete.",{position:o.Am.POSITION.BOTTOM_RIGHT,toastId:"permission-delete-success-".concat(null===t||void 0===t?void 0:t.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})}})}}),$=(0,r.Z)(J,2),K=$[0],X=$[1].isLoading,ee=(0,l.useMemo)((function(){return(null===N||void 0===N?void 0:N.access)||0}),[N]),ne=(0,l.useCallback)((function(e){return e.map((function(e,n){var t=p.K4[e],r=Boolean(ee&Number(e)),i=(0,_.fD)(ee),o=(0,_.fD)(e);return(0,w.jsx)(m.Z,{mt:n>=1?1:0,children:(0,w.jsxs)(f.ZP,{alignItems:"center",children:[(0,w.jsx)(j.Z,{checked:r,compact:!0,onCheck:function(e){return H({access:(0,_.$P)(e(r)?(0,_.vN)(i,o):(0,_.VJ)(i,o))})}}),(0,w.jsx)(m.Z,{mr:L.cd}),(0,w.jsx)(v.ZP,{default:!r,children:t})]})},t)}))}),[ee]),te=(0,l.useMemo)((function(){return(null===t||void 0===t?void 0:t.roles)||[]}),[t]),re=(0,l.useMemo)((function(){return(null===t||void 0===t?void 0:t.users)||[]}),[t]),ie=(0,l.useMemo)((function(){return(null===te||void 0===te?void 0:te.length)>=1}),[te]),oe=(0,l.useMemo)((function(){return(null===re||void 0===re?void 0:re.length)>=1}),[re]);return(0,w.jsxs)(b.N,{children:[(0,w.jsxs)(g.Z,{noPadding:!0,children:[(0,w.jsx)(m.Z,{p:L.cd,children:(0,w.jsx)(h.Z,{level:4,children:t?"Permission ".concat(null===t||void 0===t?void 0:t.id):"New permission"})}),(0,w.jsx)(d.Z,{light:!0}),(0,w.jsx)(m.Z,{p:L.cd,children:(0,w.jsxs)(f.ZP,{alignItems:"center",children:[(0,w.jsxs)(v.ZP,{danger:"entity_name"in B&&!(null!==N&&void 0!==N&&N.entity_name),default:!0,large:!0,children:["Entity ","entity_name"in B&&!(null!==N&&void 0!==N&&N.entity_name)&&(0,w.jsx)(v.ZP,{danger:!0,inline:!0,large:!0,children:"is required"})]}),(0,w.jsx)(m.Z,{mr:L.cd}),(0,w.jsx)(u.Z,{flex:1,justifyContent:"flex-end",children:(0,w.jsx)(x.Z,{afterIconSize:k,alignRight:!0,autoComplete:"off",large:!0,noBackground:!0,noBorder:!0,onChange:function(e){return H({entity_name:e.target.value})},paddingHorizontal:0,paddingVertical:0,placeholder:"Select an entity",value:(null===N||void 0===N?void 0:N.entity_name)||"",children:V.map((function(e){return(0,w.jsx)("option",{value:e,children:(0,D.j3)(e)},e)}))})})]})}),(0,w.jsx)(d.Z,{light:!0}),(0,w.jsx)(m.Z,{p:L.cd,children:(0,w.jsxs)(f.ZP,{alignItems:"center",children:[(0,w.jsx)(v.ZP,{default:!0,large:!0,children:"Entity subtype"}),(0,w.jsx)(m.Z,{mr:L.cd}),(0,w.jsx)(u.Z,{flex:1,justifyContent:"flex-end",children:(0,w.jsxs)(x.Z,{afterIconSize:k,alignRight:!0,autoComplete:"off",large:!0,monospace:!0,noBackground:!0,noBorder:!0,onChange:function(e){return H({entity_type:e.target.value})},paddingHorizontal:0,paddingVertical:0,placeholder:"Select an entity subtype",value:(null===N||void 0===N?void 0:N.entity_type)||"",children:[(0,w.jsx)("option",{value:""}),Y.map((function(e){return(0,w.jsx)("option",{value:e,children:e},e)}))]})})]})}),(0,w.jsx)(d.Z,{light:!0}),(0,w.jsx)(m.Z,{p:L.cd,children:(0,w.jsxs)(f.ZP,{alignItems:"center",children:[(0,w.jsx)(v.ZP,{default:!0,large:!0,children:"Enity UUID"}),(0,w.jsx)(m.Z,{mr:L.cd}),(0,w.jsx)(u.Z,{flex:1,children:(0,w.jsx)(Z.Z,{afterIcon:(0,w.jsx)(I.I8,{}),afterIconClick:function(e,n){var t;null===n||void 0===n||null===(t=n.current)||void 0===t||t.focus()},afterIconSize:k,alignRight:!0,autoComplete:"off",large:!0,monospace:!0,noBackground:!0,noBorder:!0,fullWidth:!0,onChange:function(e){return H({entity_id:e.target.value})},paddingHorizontal:0,paddingVertical:0,placeholder:"e.g. pipeline_uuid",value:(null===N||void 0===N?void 0:N.entity_id)||""})})]})})]}),(0,w.jsx)(m.Z,{mb:L.HN}),(0,w.jsxs)(g.Z,{noPadding:!0,children:[(0,w.jsx)(m.Z,{p:L.cd,children:(0,w.jsx)(h.Z,{level:4,children:"Access"})}),(0,w.jsx)(d.Z,{light:!0}),(0,w.jsxs)(m.Z,{p:L.cd,children:[(0,w.jsx)(m.Z,{mb:L.cd,children:(0,w.jsx)(v.ZP,{default:!0,large:!0,children:"Groups"})}),ne(p.G9)]}),(0,w.jsx)(d.Z,{light:!0}),(0,w.jsxs)(f.ZP,{alignItems:"center",children:[(0,w.jsx)(u.Z,{flex:1,children:(0,w.jsxs)(m.Z,{p:L.cd,children:[(0,w.jsx)(m.Z,{mb:L.cd,children:(0,w.jsx)(v.ZP,{default:!0,large:!0,children:"Operations"})}),ne(p.Pt)]})}),(0,w.jsx)(u.Z,{flex:1,children:(0,w.jsxs)(m.Z,{p:L.cd,children:[(0,w.jsx)(m.Z,{mb:L.cd,children:(0,w.jsx)(v.ZP,{default:!0,large:!0,children:"Disable operations"})}),ne(p.oO)]})})]}),(0,w.jsx)(d.Z,{light:!0}),(0,w.jsxs)(f.ZP,{alignItems:"flex-start",children:[(0,w.jsx)(u.Z,{flex:1,children:(0,w.jsxs)(m.Z,{p:L.cd,children:[(0,w.jsx)(m.Z,{mb:L.cd,children:(0,w.jsx)(v.ZP,{default:!0,large:!0,children:"Read attributes"})}),ne(p.Fy)]})}),(0,w.jsx)(u.Z,{flex:1,children:(0,w.jsxs)(m.Z,{fullWidth:!0,p:L.cd,children:[(0,w.jsx)(m.Z,{mb:L.cd,children:(0,w.jsx)(v.ZP,{default:!0,large:!0,children:"Readable attributes (comma separated)"})}),(0,w.jsx)(E.Z,{fullWidth:!0,monospace:!0,onChange:function(e){return H({read_attributes:e.target.value})},placeholder:"e.g. email",value:(null===N||void 0===N?void 0:N.read_attributes)||""})]})})]}),(0,w.jsx)(d.Z,{light:!0}),(0,w.jsxs)(f.ZP,{alignItems:"flex-start",children:[(0,w.jsx)(u.Z,{flex:1,children:(0,w.jsxs)(m.Z,{p:L.cd,children:[(0,w.jsx)(m.Z,{mb:L.cd,children:(0,w.jsx)(v.ZP,{default:!0,large:!0,children:"Write attributes"})}),ne(p.H1)]})}),(0,w.jsx)(u.Z,{flex:1,children:(0,w.jsxs)(m.Z,{fullWidth:!0,p:L.cd,children:[(0,w.jsx)(m.Z,{mb:L.cd,children:(0,w.jsx)(v.ZP,{default:!0,large:!0,children:"Writable attributes (comma separated)"})}),(0,w.jsx)(E.Z,{fullWidth:!0,monospace:!0,onChange:function(e){return H({write_attributes:e.target.value})},placeholder:"e.g. password",value:(null===N||void 0===N?void 0:N.write_attributes)||""})]})})]}),(0,w.jsx)(d.Z,{light:!0}),(0,w.jsxs)(f.ZP,{alignItems:"flex-start",children:[(0,w.jsx)(u.Z,{flex:1,children:(0,w.jsxs)(m.Z,{p:L.cd,children:[(0,w.jsx)(m.Z,{mb:L.cd,children:(0,w.jsx)(v.ZP,{default:!0,large:!0,children:"Query parameters"})}),ne(p.hl)]})}),(0,w.jsx)(u.Z,{flex:1,children:(0,w.jsxs)(m.Z,{fullWidth:!0,p:L.cd,children:[(0,w.jsx)(m.Z,{mb:L.cd,children:(0,w.jsx)(v.ZP,{default:!0,large:!0,children:"Parameters that can be queried (comma separated)"})}),(0,w.jsx)(E.Z,{fullWidth:!0,monospace:!0,onChange:function(e){return H({query_attributes:e.target.value})},placeholder:"e.g. include_outputs",value:(null===N||void 0===N?void 0:N.query_attributes)||""})]})})]})]}),(0,w.jsx)(m.Z,{mb:L.HN}),t&&(0,w.jsxs)(w.Fragment,{children:[(0,w.jsxs)(g.Z,{noPadding:!0,children:[(0,w.jsx)(m.Z,{p:L.cd,children:(0,w.jsx)(f.ZP,{alignItems:"center",justifyContent:"space-between",children:(0,w.jsx)(h.Z,{level:4,children:"Roles"})})}),(0,w.jsx)(d.Z,{light:!0}),(0,w.jsx)(m.Z,{p:L.cd,children:!ie&&(0,w.jsx)(v.ZP,{default:!0,children:"This permission is currently not attached to any role."})})]}),(0,w.jsx)(m.Z,{mb:L.HN}),(0,w.jsxs)(g.Z,{noPadding:!0,children:[(0,w.jsx)(m.Z,{p:L.cd,children:(0,w.jsx)(f.ZP,{alignItems:"center",justifyContent:"space-between",children:(0,w.jsx)(h.Z,{level:4,children:"Users"})})}),(0,w.jsx)(d.Z,{light:!0}),(0,w.jsx)(m.Z,{p:L.cd,children:!oe&&(0,w.jsx)(v.ZP,{default:!0,children:"There are currently no users with this permission."})})]}),(0,w.jsx)(m.Z,{mb:L.HN}),(0,w.jsxs)(g.Z,{noPadding:!0,children:[(0,w.jsx)(m.Z,{p:L.cd,children:(0,w.jsx)(h.Z,{level:4,children:"Metadata"})}),(0,w.jsx)(d.Z,{light:!0}),(0,w.jsx)(m.Z,{p:L.cd,children:(0,w.jsxs)(f.ZP,{alignItems:"center",children:[(0,w.jsx)(v.ZP,{default:!0,large:!0,children:"Last updated"}),(0,w.jsx)(m.Z,{mr:L.cd}),(0,w.jsxs)(u.Z,{alignItems:"center",flex:1,justifyContent:"flex-end",children:[(0,w.jsx)(v.ZP,{large:!0,monospace:!0,muted:!0,children:(null===N||void 0===N?void 0:N.updated_at)&&(0,y.d$)(null===N||void 0===N?void 0:N.updated_at,{includeSeconds:!0})}),(0,w.jsx)(m.Z,{mr:L.cd}),(0,w.jsx)(I.Pf,{muted:!0,size:k}),(0,w.jsx)(m.Z,{mr:1})]})]})}),(0,w.jsx)(d.Z,{light:!0}),(0,w.jsx)(m.Z,{p:L.cd,children:(0,w.jsxs)(f.ZP,{alignItems:"center",children:[(0,w.jsx)(v.ZP,{default:!0,large:!0,children:"Created at"}),(0,w.jsx)(m.Z,{mr:L.cd}),(0,w.jsxs)(u.Z,{alignItems:"center",flex:1,justifyContent:"flex-end",children:[(0,w.jsx)(v.ZP,{large:!0,monospace:!0,muted:!0,children:(null===N||void 0===N?void 0:N.created_at)&&(0,y.d$)(null===N||void 0===N?void 0:N.created_at,{includeSeconds:!0})}),(0,w.jsx)(m.Z,{mr:L.cd}),(0,w.jsx)(I.Pf,{muted:!0,size:k}),(0,w.jsx)(m.Z,{mr:1})]})]})}),(0,w.jsx)(d.Z,{light:!0}),(0,w.jsx)(m.Z,{p:L.cd,children:(0,w.jsxs)(f.ZP,{alignItems:"center",children:[(0,w.jsx)(v.ZP,{default:!0,large:!0,children:"Created by"}),(0,w.jsx)(m.Z,{mr:L.cd}),(0,w.jsxs)(u.Z,{alignItems:"center",flex:1,justifyContent:"flex-end",children:[(0,w.jsx)(v.ZP,{large:!0,monospace:!0,muted:!0,children:(0,P.s)(null===t||void 0===t?void 0:t.user)}),(0,w.jsx)(m.Z,{mr:L.cd}),(0,w.jsx)(I.Pf,{muted:!0,size:k}),(0,w.jsx)(m.Z,{mr:1})]})]})})]}),(0,w.jsx)(m.Z,{mb:L.HN})]}),(0,w.jsxs)(f.ZP,{children:[(0,w.jsx)(a.Z,{beforeIcon:(0,w.jsx)(I.vc,{}),disabled:!B||(0,R.Qr)(B),loading:G,onClick:function(){return F({permission:(0,R.GL)(N,["access","entity_id","entity_name","entity_type","query_attributes","read_attributes","write_attributes"],{include_blanks:!0})})},primary:!0,children:t?"Save changes":"Create new permission"}),n&&(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(m.Z,{mr:L.cd}),(0,w.jsx)(a.Z,{onClick:function(){return null===n||void 0===n?void 0:n()},secondary:!0,children:"Cancel and go back"})]}),t&&(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(m.Z,{mr:L.cd}),(0,w.jsx)(a.Z,{beforeIcon:(0,w.jsx)(I.rF,{}),danger:!0,loading:X,onClick:function(){return K()},children:"Delete permission"})]})]})]})}},8193:function(e,n,t){"use strict";t.d(n,{N:function(){return c}});var r=t(38626),i=t(44897),o=t(42631),l=t(70515),c=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 u},G9:function(){return c},H1:function(){return f},K4:function(){return l},Pt:function(){return s},hl:function(){return d},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),c=[i.OWNER,i.ADMIN,i.EDITOR,i.VIEWER,i.ALL],s=[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],d=[i.QUERY,i.QUERY_ALL,i.DISABLE_QUERY,i.DISABLE_QUERY_ALL],u=[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),c=t(44897),s=t(42631),a=t(47041),d=t(70515),u=t(28598),f=(0,r.css)(["padding:","px;padding-bottom:","px;padding-top:","px;"],2*d.iI,1.5*d.iI,1.5*d.iI),h=r.default.div.withConfig({displayName:"Panel__PanelStyle",componentId:"sc-1ct8cgl-0"})(["border-radius:","px;overflow:hidden;"," "," "," "," "," "," "," "," "," "," "," ",""],s.n_,(function(e){return e.fullWidth&&"\n width: 100%;\n "}),(function(e){return!e.borderless&&"\n border: 1px solid ".concat((e.theme.interactive||c.Z.interactive).defaultBorder,";\n ")}),(function(e){return e.success&&"\n background-color: ".concat((e.theme.background||c.Z.background).successLight,";\n ")}),(function(e){return e.success&&!e.borderless&&"\n border: 1px solid ".concat((e.theme.background||c.Z.background).success,";\n ")}),(function(e){return!e.dark&&!e.success&&"\n background-color: ".concat((e.theme.background||c.Z.background).panel,";\n ")}),(function(e){return e.dark&&"\n background-color: ".concat((e.theme.background||c.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;"," "," "," ",""],s.n_,s.n_,(function(e){return"\n background-color: ".concat((e.theme.background||c.Z.background).chartBlock,";\n border-bottom: 1px solid ").concat((e.theme.interactive||c.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 ")})),p=r.default.div.withConfig({displayName:"Panel__ContentStyle",componentId:"sc-1ct8cgl-2"})(["overflow-y:auto;padding:","px;height:100%;"," "," "," "," ",""],1.75*d.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*d.iI,"px);\n ")}),(function(e){return e.noPadding&&"\n padding: 0;\n "}),(function(e){return e.overflowVisible&&"\n overflow: visible;\n "})),x=r.default.div.withConfig({displayName:"Panel__FooterStyle",componentId:"sc-1ct8cgl-3"})(["border-style:",";border-top-width:","px;padding:","px;"],s.M8,s.YF,1.75*d.iI);n.Z=function(e){var n=e.borderless,t=e.children,r=e.containerRef,c=e.contentContainerRef,s=e.dark,a=e.footer,d=e.fullHeight,f=void 0===d||d,m=e.fullWidth,v=void 0===m||m,E=e.header,Z=e.headerHeight,j=e.headerIcon,A=e.headerPaddingVertical,b=e.headerTitle,I=e.maxHeight,L=e.maxWidth,_=e.minWidth,D=e.noPadding,y=e.overflowVisible,P=e.subtitle,R=e.success;return(0,u.jsxs)(h,{borderless:n,dark:s,fullHeight:f,fullWidth:v,maxHeight:I,maxWidth:L,minWidth:_,overflowVisible:y,ref:r,success:R,children:[(E||b)&&(0,u.jsxs)(g,{headerPaddingVertical:A,height:Z,children:[E&&E,b&&(0,u.jsx)(i.ZP,{alignItems:"center",justifyContent:"space-between",children:(0,u.jsxs)(i.ZP,{alignItems:"center",children:[j&&j,(0,u.jsx)(o.Z,{ml:j?1:0,children:(0,u.jsx)(l.ZP,{bold:!0,default:!0,children:b})})]})})]}),(0,u.jsxs)(p,{maxHeight:I,noPadding:D,overflowVisible:y,ref:c,children:[P&&(0,u.jsx)(o.Z,{mb:2,children:(0,u.jsx)(l.ZP,{default:!0,children:P})}),t]}),a&&(0,u.jsx)(x,{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 s},fD:function(){return l},uf:function(){return i},vN:function(){return c}});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 c(e,n){return String(BigInt(e)+BigInt(n))}function s(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 A},kC:function(){return g},vg:function(){return j},kE:function(){return P},Mp:function(){return p},Pb:function(){return d},HW:function(){return I},HD:function(){return u},wX:function(){return x},x6:function(){return m},_6:function(){return v},zf:function(){return b},Y6:function(){return D},Lo:function(){return y},wE:function(){return R},Tz:function(){return L},J3:function(){return E},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"],c=(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"]),s=["0","1","2","3","4","5","6","7","8","9"],a=t(86735);function d(e){if(!e)return!1;try{JSON.parse(e)}catch(n){return!1}return!0}function u(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 p(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;return String((new Date).getTime()*e)}function x(e){return e.charAt(0).toLowerCase()+e.slice(1)}function m(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 c=e.length,s=e[c-1];t="y"===s&&"day"!==e?"".concat(e.slice(0,c-1),"ies"):"".concat(e,"s"===s?"es":"s")}if(l&&!i){var a=r?m(o):o;return"".concat(a," ").concat(t)}return t}function E(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 j(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return g(E(e.toLowerCase()))}function A(e){return e.replace(/([A-Z])/g," $1")}function b(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),c=l[0],s=l[1],a=t.slice(0,o).reduce((function(e,n){return e*Number(n[1])}),1);e<Number(s)*a&&(n=v(c,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)(c))}function y(){return"".concat((0,a.mp)(l)).concat((0,a.mp)(s))}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)}}}]);