mage-ai 0.9.8__py3-none-any.whl → 0.9.9__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 (158) hide show
  1. mage_ai/ai/constants.py +1 -0
  2. mage_ai/ai/generator.py +6 -0
  3. mage_ai/ai/{gen_doc_for_pipeline.py → generator_cmds.py} +5 -0
  4. mage_ai/ai/llm_pipeline_wizard.py +108 -3
  5. mage_ai/api/policies/BlockPolicy.py +1 -0
  6. mage_ai/api/policies/BlockTemplatePolicy.py +9 -0
  7. mage_ai/api/policies/LlmPolicy.py +3 -2
  8. mage_ai/api/policies/OauthAccessTokenPolicy.py +31 -0
  9. mage_ai/api/policies/PipelinePolicy.py +1 -0
  10. mage_ai/api/policies/ProjectPolicy.py +9 -0
  11. mage_ai/api/policies/SearchResultPolicy.py +32 -0
  12. mage_ai/api/policies/VariablePolicy.py +8 -0
  13. mage_ai/api/presenters/BlockTemplatePresenter.py +1 -0
  14. mage_ai/api/presenters/OauthAccessTokenPresenter.py +9 -0
  15. mage_ai/api/presenters/ProjectPresenter.py +2 -0
  16. mage_ai/api/presenters/SearchResultPresenter.py +73 -0
  17. mage_ai/api/resources/BlockResource.py +43 -4
  18. mage_ai/api/resources/BlockTemplateResource.py +15 -2
  19. mage_ai/api/resources/CustomTemplateResource.py +15 -3
  20. mage_ai/api/resources/FileContentResource.py +8 -1
  21. mage_ai/api/resources/FileResource.py +22 -2
  22. mage_ai/api/resources/OauthAccessTokenResource.py +24 -0
  23. mage_ai/api/resources/PipelineResource.py +70 -2
  24. mage_ai/api/resources/ProjectResource.py +15 -1
  25. mage_ai/api/resources/SearchResultResource.py +68 -0
  26. mage_ai/api/resources/VariableResource.py +25 -14
  27. mage_ai/cache/base.py +3 -0
  28. mage_ai/cache/block_action_object/__init__.py +282 -0
  29. mage_ai/cache/block_action_object/constants.py +4 -0
  30. mage_ai/cache/constants.py +1 -0
  31. mage_ai/data_integrations/destinations/constants.py +2 -0
  32. mage_ai/data_preparation/executors/k8s_pipeline_executor.py +1 -1
  33. mage_ai/data_preparation/models/block/__init__.py +20 -1
  34. mage_ai/data_preparation/models/block/dbt/utils/__init__.py +1 -0
  35. mage_ai/data_preparation/models/custom_templates/custom_block_template.py +8 -3
  36. mage_ai/data_preparation/models/custom_templates/utils.py +6 -3
  37. mage_ai/data_preparation/models/file.py +3 -0
  38. mage_ai/data_preparation/models/pipeline.py +10 -1
  39. mage_ai/data_preparation/models/{project.py → project/__init__.py} +17 -0
  40. mage_ai/data_preparation/models/project/constants.py +5 -0
  41. mage_ai/data_preparation/repo_manager.py +9 -6
  42. mage_ai/data_preparation/templates/constants.py +478 -1
  43. mage_ai/data_preparation/templates/template.py +9 -1
  44. mage_ai/orchestration/db/__init__.py +25 -0
  45. mage_ai/orchestration/pipeline_scheduler.py +23 -0
  46. mage_ai/server/constants.py +1 -1
  47. mage_ai/server/frontend_dist/404.html +2 -2
  48. mage_ai/server/frontend_dist/404.html.html +2 -2
  49. mage_ai/server/frontend_dist/_next/static/OwvTROmputQCA1Z9HEGDv/_buildManifest.js +1 -0
  50. mage_ai/server/frontend_dist/_next/static/chunks/{1005-ce36fe7ed460d006.js → 1005-16c1a6678de5311e.js} +1 -1
  51. mage_ai/server/frontend_dist/_next/static/chunks/1424-e22139f33196c5c1.js +1 -0
  52. mage_ai/server/frontend_dist/_next/static/chunks/1484-a76b2c31e4808379.js +1 -0
  53. mage_ai/server/frontend_dist/_next/static/chunks/2485-b569baad92049d6b.js +1 -0
  54. mage_ai/server/frontend_dist/_next/static/chunks/{2786-d8b593e5d7c42665.js → 2786-acce6ea0d9b4898e.js} +1 -1
  55. mage_ai/server/frontend_dist/_next/static/chunks/3654-573457b62efff6e2.js +1 -0
  56. mage_ai/server/frontend_dist/_next/static/chunks/3881-0eb04f7f7a244347.js +1 -0
  57. mage_ai/server/frontend_dist/_next/static/chunks/{4317-b112fe7bb532b998.js → 4317-3fe63fc9401685d6.js} +1 -1
  58. mage_ai/server/frontend_dist/_next/static/chunks/{4822-52d9d661b6bd1ae9.js → 4822-045cc7cdd7c95163.js} +1 -1
  59. mage_ai/server/frontend_dist/_next/static/chunks/{547-14029bdacc0ed267.js → 547-4ad2cdae967055b6.js} +1 -1
  60. mage_ai/server/frontend_dist/_next/static/chunks/6299-cf188c1b7a1bc33c.js +1 -0
  61. mage_ai/server/frontend_dist/_next/static/chunks/{7815-6dc55b5fd5d1f48a.js → 7815-fbd99c8f259d9e8b.js} +1 -1
  62. mage_ai/server/frontend_dist/_next/static/chunks/{8312-cdc4d6c3b9f53099.js → 8312-c88a3b1012e5448b.js} +1 -1
  63. mage_ai/server/frontend_dist/_next/static/chunks/{8952-492bf0e29d215ddd.js → 8952-e94a7334fcd5c68b.js} +1 -1
  64. mage_ai/server/frontend_dist/_next/static/chunks/9055-d0d25298cb5f4e45.js +1 -0
  65. mage_ai/server/frontend_dist/_next/static/chunks/pages/{_app-c7557dc9e725825e.js → _app-fa38a24707c76411.js} +1 -1
  66. mage_ai/server/frontend_dist/_next/static/chunks/pages/files-b9dac983c75798f2.js +1 -0
  67. mage_ai/server/frontend_dist/_next/static/chunks/pages/manage/{settings-17bb362b9683079c.js → settings-453aaa7bf78f8101.js} +1 -1
  68. mage_ai/server/frontend_dist/_next/static/chunks/pages/manage/users/{[user]-bfa53c0ee79920a0.js → [user]-3b502aa6d1a04cad.js} +1 -1
  69. mage_ai/server/frontend_dist/_next/static/chunks/pages/manage/users/{new-2f7e6bf8e2a37380.js → new-dd41d718cbb5990c.js} +1 -1
  70. mage_ai/server/frontend_dist/_next/static/chunks/pages/manage/users-ec748f838b7b8fad.js +1 -0
  71. mage_ai/server/frontend_dist/_next/static/chunks/pages/manage-bcc24120f5911f76.js +1 -0
  72. mage_ai/server/frontend_dist/_next/static/chunks/pages/{overview-8ffbc4b0e8a43266.js → overview-6f20b9e9cbec91d6.js} +1 -1
  73. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/backfills/{[...slug]-373f6b8c9161e819.js → [...slug]-55212dfc15881ef2.js} +1 -1
  74. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/{backfills-226bf0c5c1bfe004.js → backfills-6b4a82cd0516e121.js} +1 -1
  75. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/edit-0705c99df236ec8a.js +1 -0
  76. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/{logs-4ade07836fd577c9.js → logs-c294f5d74bd2d50f.js} +1 -1
  77. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/{monitors-fd9eb711e89425e9.js → monitors-1b9e4abc54842cdf.js} +1 -1
  78. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/{runs-027666ed18d3151e.js → runs-17ebe87e94242ae5.js} +1 -1
  79. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/settings-48b60ca236a26818.js +1 -0
  80. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/{syncs-de58e6b91e5e4552.js → syncs-5153f4665aaf8b17.js} +1 -1
  81. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/triggers/{[...slug]-432843576e1ed09e.js → [...slug]-1306e85191f6b47c.js} +1 -1
  82. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/{triggers-ae31b1d0d8a4634d.js → triggers-2e731d343a26d46a.js} +1 -1
  83. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines-0fab737dbc9074fc.js +1 -0
  84. mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/preferences-b2354688508b0755.js +1 -0
  85. mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/{users-a4f01b5c429757cc.js → users-6522c963087f18e8.js} +1 -1
  86. mage_ai/server/frontend_dist/_next/static/chunks/pages/{sign-in-1140f8ee7e89381a.js → sign-in-7dcd1257ca9660bb.js} +1 -1
  87. mage_ai/server/frontend_dist/_next/static/chunks/pages/templates/{[...slug]-f59b3f04c5a49351.js → [...slug]-78a07e7fe8973811.js} +1 -1
  88. mage_ai/server/frontend_dist/_next/static/chunks/pages/{templates-dbb209ce131390a9.js → templates-19df643f52679d5a.js} +1 -1
  89. mage_ai/server/frontend_dist/_next/static/chunks/pages/version-control-a1cf445565b68809.js +1 -0
  90. mage_ai/server/frontend_dist/files.html +2 -2
  91. mage_ai/server/frontend_dist/index.html +2 -2
  92. mage_ai/server/frontend_dist/manage/settings.html +2 -2
  93. mage_ai/server/frontend_dist/manage/users/[user].html +2 -2
  94. mage_ai/server/frontend_dist/manage/users/new.html +2 -2
  95. mage_ai/server/frontend_dist/manage/users.html +2 -2
  96. mage_ai/server/frontend_dist/manage.html +2 -2
  97. mage_ai/server/frontend_dist/overview.html +2 -2
  98. mage_ai/server/frontend_dist/pipeline-runs.html +2 -2
  99. mage_ai/server/frontend_dist/pipelines/[pipeline]/backfills/[...slug].html +2 -2
  100. mage_ai/server/frontend_dist/pipelines/[pipeline]/backfills.html +2 -2
  101. mage_ai/server/frontend_dist/pipelines/[pipeline]/edit.html +2 -2
  102. mage_ai/server/frontend_dist/pipelines/[pipeline]/logs.html +2 -2
  103. mage_ai/server/frontend_dist/pipelines/[pipeline]/monitors/block-runs.html +2 -2
  104. mage_ai/server/frontend_dist/pipelines/[pipeline]/monitors/block-runtime.html +2 -2
  105. mage_ai/server/frontend_dist/pipelines/[pipeline]/monitors.html +2 -2
  106. mage_ai/server/frontend_dist/pipelines/[pipeline]/runs/[run].html +2 -2
  107. mage_ai/server/frontend_dist/pipelines/[pipeline]/runs.html +2 -2
  108. mage_ai/server/frontend_dist/pipelines/[pipeline]/settings.html +2 -2
  109. mage_ai/server/frontend_dist/pipelines/[pipeline]/syncs.html +2 -2
  110. mage_ai/server/frontend_dist/pipelines/[pipeline]/triggers/[...slug].html +2 -2
  111. mage_ai/server/frontend_dist/pipelines/[pipeline]/triggers.html +2 -2
  112. mage_ai/server/frontend_dist/pipelines/[pipeline].html +2 -2
  113. mage_ai/server/frontend_dist/pipelines.html +2 -2
  114. mage_ai/server/frontend_dist/settings/account/profile.html +2 -2
  115. mage_ai/server/frontend_dist/settings/workspace/preferences.html +2 -2
  116. mage_ai/server/frontend_dist/settings/workspace/sync-data.html +2 -2
  117. mage_ai/server/frontend_dist/settings/workspace/users.html +2 -2
  118. mage_ai/server/frontend_dist/settings.html +2 -2
  119. mage_ai/server/frontend_dist/sign-in.html +16 -16
  120. mage_ai/server/frontend_dist/templates/[...slug].html +2 -2
  121. mage_ai/server/frontend_dist/templates.html +2 -2
  122. mage_ai/server/frontend_dist/terminal.html +2 -2
  123. mage_ai/server/frontend_dist/test.html +2 -2
  124. mage_ai/server/frontend_dist/triggers.html +2 -2
  125. mage_ai/server/frontend_dist/version-control.html +2 -2
  126. mage_ai/server/server.py +5 -0
  127. mage_ai/services/search/__init__.py +0 -0
  128. mage_ai/services/search/block_action_objects.py +33 -0
  129. mage_ai/services/search/constants.py +1 -0
  130. mage_ai/shared/array.py +7 -0
  131. mage_ai/shared/parsers.py +11 -2
  132. mage_ai/tests/shared/test_parsers.py +73 -0
  133. mage_ai/usage_statistics/constants.py +1 -0
  134. mage_ai/usage_statistics/logger.py +19 -1
  135. {mage_ai-0.9.8.dist-info → mage_ai-0.9.9.dist-info}/METADATA +9 -7
  136. {mage_ai-0.9.8.dist-info → mage_ai-0.9.9.dist-info}/RECORD +142 -129
  137. mage_ai/server/frontend_dist/_next/static/RcIgkp9pBXE1Rb4tOGR1L/_buildManifest.js +0 -1
  138. mage_ai/server/frontend_dist/_next/static/chunks/1424-de97c5aa0477894b.js +0 -1
  139. mage_ai/server/frontend_dist/_next/static/chunks/1484-c9d6bc33227070dd.js +0 -1
  140. mage_ai/server/frontend_dist/_next/static/chunks/2485-86c97f516c1abb9f.js +0 -1
  141. mage_ai/server/frontend_dist/_next/static/chunks/3215-c2f5f19b650f9a50.js +0 -1
  142. mage_ai/server/frontend_dist/_next/static/chunks/3654-bff4740b63cf280c.js +0 -1
  143. mage_ai/server/frontend_dist/_next/static/chunks/3881-7f121dbbe6e273cd.js +0 -1
  144. mage_ai/server/frontend_dist/_next/static/chunks/6299-97f283be01adf6a8.js +0 -1
  145. mage_ai/server/frontend_dist/_next/static/chunks/pages/files-0df5a20d6f1aa606.js +0 -1
  146. mage_ai/server/frontend_dist/_next/static/chunks/pages/manage/users-1f6cb7656299cbd1.js +0 -1
  147. mage_ai/server/frontend_dist/_next/static/chunks/pages/manage-4894eabb442a039c.js +0 -1
  148. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/edit-a9bd86bee73b5762.js +0 -1
  149. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/settings-cf51793c2112915c.js +0 -1
  150. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines-f1131ffe0d2a4a06.js +0 -1
  151. mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/preferences-170943ca00445486.js +0 -1
  152. mage_ai/server/frontend_dist/_next/static/chunks/pages/version-control-2ecda1f1437013f2.js +0 -1
  153. /mage_ai/server/frontend_dist/_next/static/{RcIgkp9pBXE1Rb4tOGR1L → OwvTROmputQCA1Z9HEGDv}/_middlewareManifest.js +0 -0
  154. /mage_ai/server/frontend_dist/_next/static/{RcIgkp9pBXE1Rb4tOGR1L → OwvTROmputQCA1Z9HEGDv}/_ssgManifest.js +0 -0
  155. {mage_ai-0.9.8.dist-info → mage_ai-0.9.9.dist-info}/LICENSE +0 -0
  156. {mage_ai-0.9.8.dist-info → mage_ai-0.9.9.dist-info}/WHEEL +0 -0
  157. {mage_ai-0.9.8.dist-info → mage_ai-0.9.9.dist-info}/entry_points.txt +0 -0
  158. {mage_ai-0.9.8.dist-info → mage_ai-0.9.9.dist-info}/top_level.txt +0 -0
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3215],{90857:function(e){e.exports=function e(t,n){if(t===n)return!0;if(t&&n&&"object"==typeof t&&"object"==typeof n){if(t.constructor!==n.constructor)return!1;var r,i,o;if(Array.isArray(t)){if((r=t.length)!=n.length)return!1;for(i=r;0!==i--;)if(!e(t[i],n[i]))return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if((r=(o=Object.keys(t)).length)!==Object.keys(n).length)return!1;for(i=r;0!==i--;)if(!Object.prototype.hasOwnProperty.call(n,o[i]))return!1;for(i=r;0!==i--;){var s=o[i];if(!e(t[s],n[s]))return!1}return!0}return t!==t&&n!==n}},55021:function(e,t,n){n.d(t,{k:function(){return i}});var r=n(554);function i(e,t,...n){if("undefined"!==typeof r&&void 0===t)throw new Error("invariant requires an error message argument");if(!e){let e;if(void 0===t)e=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{let r=0;e=new Error(t.replace(/%s/g,(function(){return n[r++]}))),e.name="Invariant Violation"}throw e.framesToPop=1,e}}},33382:function(e,t,n){function r(e,t,n,r){let i=n?n.call(r,e,t):void 0;if(void 0!==i)return!!i;if(e===t)return!0;if("object"!==typeof e||!e||"object"!==typeof t||!t)return!1;const o=Object.keys(e),s=Object.keys(t);if(o.length!==s.length)return!1;const a=Object.prototype.hasOwnProperty.bind(t);for(let c=0;c<o.length;c++){const s=o[c];if(!a(s))return!1;const u=e[s],l=t[s];if(i=n?n.call(r,u,l,s):void 0,!1===i||void 0===i&&u!==l)return!1}return!0}n.d(t,{w:function(){return r}})},1254:function(e,t,n){n.d(t,{PD:function(){return T}});var r={};function i(e){let t=null;return()=>(null==t&&(t=e()),t)}n.r(r),n.d(r,{FILE:function(){return a},HTML:function(){return l},TEXT:function(){return u},URL:function(){return c}});class o{enter(e){const t=this.entered.length;return this.entered=function(e,t){const n=new Set,r=e=>n.add(e);e.forEach(r),t.forEach(r);const i=[];return n.forEach((e=>i.push(e))),i}(this.entered.filter((t=>this.isNodeInDocument(t)&&(!t.contains||t.contains(e)))),[e]),0===t&&this.entered.length>0}leave(e){const t=this.entered.length;var n,r;return this.entered=(n=this.entered.filter(this.isNodeInDocument),r=e,n.filter((e=>e!==r))),t>0&&0===this.entered.length}reset(){this.entered=[]}constructor(e){this.entered=[],this.isNodeInDocument=e}}class s{initializeExposedProperties(){Object.keys(this.config.exposeProperties).forEach((e=>{Object.defineProperty(this.item,e,{configurable:!0,enumerable:!0,get:()=>(console.warn(`Browser doesn't allow reading "${e}" until the drop event.`),null)})}))}loadDataTransfer(e){if(e){const t={};Object.keys(this.config.exposeProperties).forEach((n=>{const r=this.config.exposeProperties[n];null!=r&&(t[n]={value:r(e,this.config.matchesTypes),configurable:!0,enumerable:!0})})),Object.defineProperties(this.item,t)}}canDrag(){return!0}beginDrag(){return this.item}isDragging(e,t){return t===e.getSourceId()}endDrag(){}constructor(e){this.config=e,this.item={},this.initializeExposedProperties()}}const a="__NATIVE_FILE__",c="__NATIVE_URL__",u="__NATIVE_TEXT__",l="__NATIVE_HTML__";function d(e,t,n){const r=t.reduce(((t,n)=>t||e.getData(n)),"");return null!=r?r:n}const f={[a]:{exposeProperties:{files:e=>Array.prototype.slice.call(e.files),items:e=>e.items,dataTransfer:e=>e},matchesTypes:["Files"]},[l]:{exposeProperties:{html:(e,t)=>d(e,t,""),dataTransfer:e=>e},matchesTypes:["Html","text/html"]},[c]:{exposeProperties:{urls:(e,t)=>d(e,t,"").split("\n"),dataTransfer:e=>e},matchesTypes:["Url","text/uri-list"]},[u]:{exposeProperties:{text:(e,t)=>d(e,t,""),dataTransfer:e=>e},matchesTypes:["Text","text/plain"]}};function h(e){if(!e)return null;const t=Array.prototype.slice.call(e.types||[]);return Object.keys(f).filter((e=>{const n=f[e];return!!(null===n||void 0===n?void 0:n.matchesTypes)&&n.matchesTypes.some((e=>t.indexOf(e)>-1))}))[0]||null}const g=i((()=>/firefox/i.test(navigator.userAgent))),p=i((()=>Boolean(window.safari)));class m{interpolate(e){const{xs:t,ys:n,c1s:r,c2s:i,c3s:o}=this;let s=t.length-1;if(e===t[s])return n[s];let a,c=0,u=o.length-1;for(;c<=u;){a=Math.floor(.5*(c+u));const r=t[a];if(r<e)c=a+1;else{if(!(r>e))return n[a];u=a-1}}s=Math.max(0,u);const l=e-t[s],d=l*l;return n[s]+r[s]*l+i[s]*d+o[s]*l*d}constructor(e,t){const{length:n}=e,r=[];for(let h=0;h<n;h++)r.push(h);r.sort(((t,n)=>e[t]<e[n]?-1:1));const i=[],o=[],s=[];let a,c;for(let h=0;h<n-1;h++)a=e[h+1]-e[h],c=t[h+1]-t[h],o.push(a),i.push(c),s.push(c/a);const u=[s[0]];for(let h=0;h<o.length-1;h++){const e=s[h],t=s[h+1];if(e*t<=0)u.push(0);else{a=o[h];const n=o[h+1],r=a+n;u.push(3*r/((r+n)/e+(r+a)/t))}}u.push(s[s.length-1]);const l=[],d=[];let f;for(let h=0;h<u.length-1;h++){f=s[h];const e=u[h],t=1/o[h],n=e+u[h+1]-f-f;l.push((f-e-n)*t),d.push(n*t*t)}this.xs=e,this.ys=t,this.c1s=u,this.c2s=l,this.c3s=d}}function v(e){const t=1===e.nodeType?e:e.parentElement;if(!t)return null;const{top:n,left:r}=t.getBoundingClientRect();return{x:r,y:n}}function b(e){return{x:e.clientX,y:e.clientY}}function y(e,t,n,r,i){const o=function(e){var t;return"IMG"===e.nodeName&&(g()||!(null===(t=document.documentElement)||void 0===t?void 0:t.contains(e)))}(t),s=v(o?e:t),a={x:n.x-s.x,y:n.y-s.y},{offsetWidth:c,offsetHeight:u}=e,{anchorX:l,anchorY:d}=r,{dragPreviewWidth:f,dragPreviewHeight:h}=function(e,t,n,r){let i=e?t.width:n,o=e?t.height:r;return p()&&e&&(o/=window.devicePixelRatio,i/=window.devicePixelRatio),{dragPreviewWidth:i,dragPreviewHeight:o}}(o,t,c,u),{offsetX:b,offsetY:y}=i,D=0===y||y;return{x:0===b||b?b:new m([0,.5,1],[a.x,a.x/c*f,a.x+f-c]).interpolate(l),y:D?y:(()=>{let e=new m([0,.5,1],[a.y,a.y/u*h,a.y+h-u]).interpolate(d);return p()&&o&&(e+=(window.devicePixelRatio-1)*h),e})()}}class D{get window(){return this.globalContext?this.globalContext:"undefined"!==typeof window?window:void 0}get document(){var e;return(null===(e=this.globalContext)||void 0===e?void 0:e.document)?this.globalContext.document:this.window?this.window.document:void 0}get rootElement(){var e;return(null===(e=this.optionsArgs)||void 0===e?void 0:e.rootElement)||this.window}constructor(e,t){this.ownerDocument=null,this.globalContext=e,this.optionsArgs=t}}function O(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function w(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){O(e,t,n[t])}))}return e}class S{profile(){var e,t;return{sourcePreviewNodes:this.sourcePreviewNodes.size,sourcePreviewNodeOptions:this.sourcePreviewNodeOptions.size,sourceNodeOptions:this.sourceNodeOptions.size,sourceNodes:this.sourceNodes.size,dragStartSourceIds:(null===(e=this.dragStartSourceIds)||void 0===e?void 0:e.length)||0,dropTargetIds:this.dropTargetIds.length,dragEnterTargetIds:this.dragEnterTargetIds.length,dragOverTargetIds:(null===(t=this.dragOverTargetIds)||void 0===t?void 0:t.length)||0}}get window(){return this.options.window}get document(){return this.options.document}get rootElement(){return this.options.rootElement}setup(){const e=this.rootElement;if(void 0!==e){if(e.__isReactDndBackendSetUp)throw new Error("Cannot have two HTML5 backends at the same time.");e.__isReactDndBackendSetUp=!0,this.addEventListeners(e)}}teardown(){const e=this.rootElement;var t;void 0!==e&&(e.__isReactDndBackendSetUp=!1,this.removeEventListeners(this.rootElement),this.clearCurrentDragSourceNode(),this.asyncEndDragFrameId&&(null===(t=this.window)||void 0===t||t.cancelAnimationFrame(this.asyncEndDragFrameId)))}connectDragPreview(e,t,n){return this.sourcePreviewNodeOptions.set(e,n),this.sourcePreviewNodes.set(e,t),()=>{this.sourcePreviewNodes.delete(e),this.sourcePreviewNodeOptions.delete(e)}}connectDragSource(e,t,n){this.sourceNodes.set(e,t),this.sourceNodeOptions.set(e,n);const r=t=>this.handleDragStart(t,e),i=e=>this.handleSelectStart(e);return t.setAttribute("draggable","true"),t.addEventListener("dragstart",r),t.addEventListener("selectstart",i),()=>{this.sourceNodes.delete(e),this.sourceNodeOptions.delete(e),t.removeEventListener("dragstart",r),t.removeEventListener("selectstart",i),t.setAttribute("draggable","false")}}connectDropTarget(e,t){const n=t=>this.handleDragEnter(t,e),r=t=>this.handleDragOver(t,e),i=t=>this.handleDrop(t,e);return t.addEventListener("dragenter",n),t.addEventListener("dragover",r),t.addEventListener("drop",i),()=>{t.removeEventListener("dragenter",n),t.removeEventListener("dragover",r),t.removeEventListener("drop",i)}}addEventListeners(e){e.addEventListener&&(e.addEventListener("dragstart",this.handleTopDragStart),e.addEventListener("dragstart",this.handleTopDragStartCapture,!0),e.addEventListener("dragend",this.handleTopDragEndCapture,!0),e.addEventListener("dragenter",this.handleTopDragEnter),e.addEventListener("dragenter",this.handleTopDragEnterCapture,!0),e.addEventListener("dragleave",this.handleTopDragLeaveCapture,!0),e.addEventListener("dragover",this.handleTopDragOver),e.addEventListener("dragover",this.handleTopDragOverCapture,!0),e.addEventListener("drop",this.handleTopDrop),e.addEventListener("drop",this.handleTopDropCapture,!0))}removeEventListeners(e){e.removeEventListener&&(e.removeEventListener("dragstart",this.handleTopDragStart),e.removeEventListener("dragstart",this.handleTopDragStartCapture,!0),e.removeEventListener("dragend",this.handleTopDragEndCapture,!0),e.removeEventListener("dragenter",this.handleTopDragEnter),e.removeEventListener("dragenter",this.handleTopDragEnterCapture,!0),e.removeEventListener("dragleave",this.handleTopDragLeaveCapture,!0),e.removeEventListener("dragover",this.handleTopDragOver),e.removeEventListener("dragover",this.handleTopDragOverCapture,!0),e.removeEventListener("drop",this.handleTopDrop),e.removeEventListener("drop",this.handleTopDropCapture,!0))}getCurrentSourceNodeOptions(){const e=this.monitor.getSourceId(),t=this.sourceNodeOptions.get(e);return w({dropEffect:this.altKeyPressed?"copy":"move"},t||{})}getCurrentDropEffect(){return this.isDraggingNativeItem()?"copy":this.getCurrentSourceNodeOptions().dropEffect}getCurrentSourcePreviewNodeOptions(){const e=this.monitor.getSourceId();return w({anchorX:.5,anchorY:.5,captureDraggingState:!1},this.sourcePreviewNodeOptions.get(e)||{})}isDraggingNativeItem(){const e=this.monitor.getItemType();return Object.keys(r).some((t=>r[t]===e))}beginDragNativeItem(e,t){this.clearCurrentDragSourceNode(),this.currentNativeSource=function(e,t){const n=f[e];if(!n)throw new Error(`native type ${e} has no configuration`);const r=new s(n);return r.loadDataTransfer(t),r}(e,t),this.currentNativeHandle=this.registry.addSource(e,this.currentNativeSource),this.actions.beginDrag([this.currentNativeHandle])}setCurrentDragSourceNode(e){this.clearCurrentDragSourceNode(),this.currentDragSourceNode=e;this.mouseMoveTimeoutTimer=setTimeout((()=>{var e;return null===(e=this.rootElement)||void 0===e?void 0:e.addEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0)}),1e3)}clearCurrentDragSourceNode(){if(this.currentDragSourceNode){var e;if(this.currentDragSourceNode=null,this.rootElement)null===(e=this.window)||void 0===e||e.clearTimeout(this.mouseMoveTimeoutTimer||void 0),this.rootElement.removeEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0);return this.mouseMoveTimeoutTimer=null,!0}return!1}handleDragStart(e,t){e.defaultPrevented||(this.dragStartSourceIds||(this.dragStartSourceIds=[]),this.dragStartSourceIds.unshift(t))}handleDragEnter(e,t){this.dragEnterTargetIds.unshift(t)}handleDragOver(e,t){null===this.dragOverTargetIds&&(this.dragOverTargetIds=[]),this.dragOverTargetIds.unshift(t)}handleDrop(e,t){this.dropTargetIds.unshift(t)}constructor(e,t,n){this.sourcePreviewNodes=new Map,this.sourcePreviewNodeOptions=new Map,this.sourceNodes=new Map,this.sourceNodeOptions=new Map,this.dragStartSourceIds=null,this.dropTargetIds=[],this.dragEnterTargetIds=[],this.currentNativeSource=null,this.currentNativeHandle=null,this.currentDragSourceNode=null,this.altKeyPressed=!1,this.mouseMoveTimeoutTimer=null,this.asyncEndDragFrameId=null,this.dragOverTargetIds=null,this.lastClientOffset=null,this.hoverRafId=null,this.getSourceClientOffset=e=>{const t=this.sourceNodes.get(e);return t&&v(t)||null},this.endDragNativeItem=()=>{this.isDraggingNativeItem()&&(this.actions.endDrag(),this.currentNativeHandle&&this.registry.removeSource(this.currentNativeHandle),this.currentNativeHandle=null,this.currentNativeSource=null)},this.isNodeInDocument=e=>Boolean(e&&this.document&&this.document.body&&this.document.body.contains(e)),this.endDragIfSourceWasRemovedFromDOM=()=>{const e=this.currentDragSourceNode;null==e||this.isNodeInDocument(e)||(this.clearCurrentDragSourceNode()&&this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover())},this.scheduleHover=e=>{null===this.hoverRafId&&"undefined"!==typeof requestAnimationFrame&&(this.hoverRafId=requestAnimationFrame((()=>{this.monitor.isDragging()&&this.actions.hover(e||[],{clientOffset:this.lastClientOffset}),this.hoverRafId=null})))},this.cancelHover=()=>{null!==this.hoverRafId&&"undefined"!==typeof cancelAnimationFrame&&(cancelAnimationFrame(this.hoverRafId),this.hoverRafId=null)},this.handleTopDragStartCapture=()=>{this.clearCurrentDragSourceNode(),this.dragStartSourceIds=[]},this.handleTopDragStart=e=>{if(e.defaultPrevented)return;const{dragStartSourceIds:t}=this;this.dragStartSourceIds=null;const n=b(e);this.monitor.isDragging()&&(this.actions.endDrag(),this.cancelHover()),this.actions.beginDrag(t||[],{publishSource:!1,getSourceClientOffset:this.getSourceClientOffset,clientOffset:n});const{dataTransfer:r}=e,i=h(r);if(this.monitor.isDragging()){if(r&&"function"===typeof r.setDragImage){const e=this.monitor.getSourceId(),t=this.sourceNodes.get(e),i=this.sourcePreviewNodes.get(e)||t;if(i){const{anchorX:e,anchorY:o,offsetX:s,offsetY:a}=this.getCurrentSourcePreviewNodeOptions(),c=y(t,i,n,{anchorX:e,anchorY:o},{offsetX:s,offsetY:a});r.setDragImage(i,c.x,c.y)}}try{null===r||void 0===r||r.setData("application/json",{})}catch(o){}this.setCurrentDragSourceNode(e.target);const{captureDraggingState:t}=this.getCurrentSourcePreviewNodeOptions();t?this.actions.publishDragSource():setTimeout((()=>this.actions.publishDragSource()),0)}else if(i)this.beginDragNativeItem(i);else{if(r&&!r.types&&(e.target&&!e.target.hasAttribute||!e.target.hasAttribute("draggable")))return;e.preventDefault()}},this.handleTopDragEndCapture=()=>{this.clearCurrentDragSourceNode()&&this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover()},this.handleTopDragEnterCapture=e=>{var t;(this.dragEnterTargetIds=[],this.isDraggingNativeItem())&&(null===(t=this.currentNativeSource)||void 0===t||t.loadDataTransfer(e.dataTransfer));if(!this.enterLeaveCounter.enter(e.target)||this.monitor.isDragging())return;const{dataTransfer:n}=e,r=h(n);r&&this.beginDragNativeItem(r,n)},this.handleTopDragEnter=e=>{const{dragEnterTargetIds:t}=this;if(this.dragEnterTargetIds=[],!this.monitor.isDragging())return;this.altKeyPressed=e.altKey,t.length>0&&this.actions.hover(t,{clientOffset:b(e)});t.some((e=>this.monitor.canDropOnTarget(e)))&&(e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect=this.getCurrentDropEffect()))},this.handleTopDragOverCapture=e=>{var t;(this.dragOverTargetIds=[],this.isDraggingNativeItem())&&(null===(t=this.currentNativeSource)||void 0===t||t.loadDataTransfer(e.dataTransfer))},this.handleTopDragOver=e=>{const{dragOverTargetIds:t}=this;if(this.dragOverTargetIds=[],!this.monitor.isDragging())return e.preventDefault(),void(e.dataTransfer&&(e.dataTransfer.dropEffect="none"));this.altKeyPressed=e.altKey,this.lastClientOffset=b(e),this.scheduleHover(t);(t||[]).some((e=>this.monitor.canDropOnTarget(e)))?(e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect=this.getCurrentDropEffect())):this.isDraggingNativeItem()?e.preventDefault():(e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect="none"))},this.handleTopDragLeaveCapture=e=>{this.isDraggingNativeItem()&&e.preventDefault();this.enterLeaveCounter.leave(e.target)&&(this.isDraggingNativeItem()&&setTimeout((()=>this.endDragNativeItem()),0),this.cancelHover())},this.handleTopDropCapture=e=>{var t;(this.dropTargetIds=[],this.isDraggingNativeItem())?(e.preventDefault(),null===(t=this.currentNativeSource)||void 0===t||t.loadDataTransfer(e.dataTransfer)):h(e.dataTransfer)&&e.preventDefault();this.enterLeaveCounter.reset()},this.handleTopDrop=e=>{const{dropTargetIds:t}=this;this.dropTargetIds=[],this.actions.hover(t,{clientOffset:b(e)}),this.actions.drop({dropEffect:this.getCurrentDropEffect()}),this.isDraggingNativeItem()?this.endDragNativeItem():this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover()},this.handleSelectStart=e=>{const t=e.target;"function"===typeof t.dragDrop&&("INPUT"===t.tagName||"SELECT"===t.tagName||"TEXTAREA"===t.tagName||t.isContentEditable||(e.preventDefault(),t.dragDrop()))},this.options=new D(t,n),this.actions=e.getActions(),this.monitor=e.getMonitor(),this.registry=e.getRegistry(),this.enterLeaveCounter=new o(this.isNodeInDocument)}}const T=function(e,t,n){return new S(e,t,n)}},733:function(e,t,n){n.d(t,{L:function(){return r}});const r=(0,n(82684).createContext)({dragDropManager:void 0})},65701:function(e,t,n){n.d(t,{W:function(){return ve}});var r=n(28598);function i(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var o="function"===typeof Symbol&&Symbol.observable||"@@observable",s=function(){return Math.random().toString(36).substring(7).split("").join(".")},a={INIT:"@@redux/INIT"+s(),REPLACE:"@@redux/REPLACE"+s(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+s()}};function c(e){if("object"!==typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function u(e,t,n){var r;if("function"===typeof t&&"function"===typeof n||"function"===typeof n&&"function"===typeof arguments[3])throw new Error(i(0));if("function"===typeof t&&"undefined"===typeof n&&(n=t,t=void 0),"undefined"!==typeof n){if("function"!==typeof n)throw new Error(i(1));return n(u)(e,t)}if("function"!==typeof e)throw new Error(i(2));var s=e,l=t,d=[],f=d,h=!1;function g(){f===d&&(f=d.slice())}function p(){if(h)throw new Error(i(3));return l}function m(e){if("function"!==typeof e)throw new Error(i(4));if(h)throw new Error(i(5));var t=!0;return g(),f.push(e),function(){if(t){if(h)throw new Error(i(6));t=!1,g();var n=f.indexOf(e);f.splice(n,1),d=null}}}function v(e){if(!c(e))throw new Error(i(7));if("undefined"===typeof e.type)throw new Error(i(8));if(h)throw new Error(i(9));try{h=!0,l=s(l,e)}finally{h=!1}for(var t=d=f,n=0;n<t.length;n++){(0,t[n])()}return e}function b(e){if("function"!==typeof e)throw new Error(i(10));s=e,v({type:a.REPLACE})}function y(){var e,t=m;return(e={subscribe:function(e){if("object"!==typeof e||null===e)throw new Error(i(11));function n(){e.next&&e.next(p())}return n(),{unsubscribe:t(n)}}})[o]=function(){return this},e}return v({type:a.INIT}),(r={dispatch:v,subscribe:m,getState:p,replaceReducer:b})[o]=y,r}var l=n(55021);function d(e){return"object"===typeof e}const f="dnd-core/INIT_COORDS",h="dnd-core/BEGIN_DRAG",g="dnd-core/PUBLISH_DRAG_SOURCE",p="dnd-core/HOVER",m="dnd-core/DROP",v="dnd-core/END_DRAG";function b(e,t){return{type:f,payload:{sourceClientOffset:t||null,clientOffset:e||null}}}const y={type:f,payload:{clientOffset:null,sourceClientOffset:null}};function D(e){return function(t=[],n={publishSource:!0}){const{publishSource:r=!0,clientOffset:i,getSourceClientOffset:o}=n,s=e.getMonitor(),a=e.getRegistry();e.dispatch(b(i)),function(e,t,n){(0,l.k)(!t.isDragging(),"Cannot call beginDrag while dragging."),e.forEach((function(e){(0,l.k)(n.getSource(e),"Expected sourceIds to be registered.")}))}(t,s,a);const c=function(e,t){let n=null;for(let r=e.length-1;r>=0;r--)if(t.canDragSource(e[r])){n=e[r];break}return n}(t,s);if(null==c)return void e.dispatch(y);let u=null;if(i){if(!o)throw new Error("getSourceClientOffset must be defined");!function(e){(0,l.k)("function"===typeof e,"When clientOffset is provided, getSourceClientOffset must be a function.")}(o),u=o(c)}e.dispatch(b(i,u));const f=a.getSource(c).beginDrag(s,c);if(null==f)return;!function(e){(0,l.k)(d(e),"Item must be an object.")}(f),a.pinSource(c);const g=a.getSourceType(c);return{type:h,payload:{itemType:g,item:f,sourceId:c,clientOffset:i||null,sourceClientOffset:u||null,isSourcePublic:!!r}}}}function O(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function w(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){O(e,t,n[t])}))}return e}function S(e){return function(t={}){const n=e.getMonitor(),r=e.getRegistry();!function(e){(0,l.k)(e.isDragging(),"Cannot call drop while not dragging."),(0,l.k)(!e.didDrop(),"Cannot call drop twice during one drag operation.")}(n);const i=function(e){const t=e.getTargetIds().filter(e.canDropOnTarget,e);return t.reverse(),t}(n);i.forEach(((i,o)=>{const s=function(e,t,n,r){const i=n.getTarget(e);let o=i?i.drop(r,e):void 0;(function(e){(0,l.k)("undefined"===typeof e||d(e),"Drop result must either be an object or undefined.")})(o),"undefined"===typeof o&&(o=0===t?{}:r.getDropResult());return o}(i,o,r,n),a={type:m,payload:{dropResult:w({},t,s)}};e.dispatch(a)}))}}function T(e){return function(){const t=e.getMonitor(),n=e.getRegistry();!function(e){(0,l.k)(e.isDragging(),"Cannot call endDrag while not dragging.")}(t);const r=t.getSourceId();if(null!=r){n.getSource(r,!0).endDrag(t,r),n.unpinSource()}return{type:v}}}function k(e,t){return null===t?null===e:Array.isArray(e)?e.some((e=>e===t)):e===t}function C(e){return function(t,{clientOffset:n}={}){!function(e){(0,l.k)(Array.isArray(e),"Expected targetIds to be an array.")}(t);const r=t.slice(0),i=e.getMonitor(),o=e.getRegistry();return function(e,t,n){for(let r=e.length-1;r>=0;r--){const i=e[r];k(t.getTargetType(i),n)||e.splice(r,1)}}(r,o,i.getItemType()),function(e,t,n){(0,l.k)(t.isDragging(),"Cannot call hover while not dragging."),(0,l.k)(!t.didDrop(),"Cannot call hover after drop.");for(let r=0;r<e.length;r++){const t=e[r];(0,l.k)(e.lastIndexOf(t)===r,"Expected targetIds to be unique in the passed array.");const i=n.getTarget(t);(0,l.k)(i,"Expected targetIds to be registered.")}}(r,i,o),function(e,t,n){e.forEach((function(e){n.getTarget(e).hover(t,e)}))}(r,i,o),{type:p,payload:{targetIds:r,clientOffset:n||null}}}}function I(e){return function(){if(e.getMonitor().isDragging())return{type:g}}}class x{receiveBackend(e){this.backend=e}getMonitor(){return this.monitor}getBackend(){return this.backend}getRegistry(){return this.monitor.registry}getActions(){const e=this,{dispatch:t}=this.store;const n=function(e){return{beginDrag:D(e),publishDragSource:I(e),hover:C(e),drop:S(e),endDrag:T(e)}}(this);return Object.keys(n).reduce(((r,i)=>{const o=n[i];var s;return r[i]=(s=o,(...n)=>{const r=s.apply(e,n);"undefined"!==typeof r&&t(r)}),r}),{})}dispatch(e){this.store.dispatch(e)}constructor(e,t){this.isSetUp=!1,this.handleRefCountChange=()=>{const e=this.store.getState().refCount>0;this.backend&&(e&&!this.isSetUp?(this.backend.setup(),this.isSetUp=!0):!e&&this.isSetUp&&(this.backend.teardown(),this.isSetUp=!1))},this.store=e,this.monitor=t,e.subscribe(this.handleRefCountChange)}}function E(e,t){return{x:e.x-t.x,y:e.y-t.y}}const P=[],N=[];P.__IS_NONE__=!0,N.__IS_ALL__=!0;class R{subscribeToStateChange(e,t={}){const{handlerIds:n}=t;(0,l.k)("function"===typeof e,"listener must be a function."),(0,l.k)("undefined"===typeof n||Array.isArray(n),"handlerIds, when specified, must be an array of strings.");let r=this.store.getState().stateId;return this.store.subscribe((()=>{const t=this.store.getState(),i=t.stateId;try{const o=i===r||i===r+1&&!function(e,t){return e!==P&&(e===N||"undefined"===typeof t||(n=e,t.filter((e=>n.indexOf(e)>-1))).length>0);var n}(t.dirtyHandlerIds,n);o||e()}finally{r=i}}))}subscribeToOffsetChange(e){(0,l.k)("function"===typeof e,"listener must be a function.");let t=this.store.getState().dragOffset;return this.store.subscribe((()=>{const n=this.store.getState().dragOffset;n!==t&&(t=n,e())}))}canDragSource(e){if(!e)return!1;const t=this.registry.getSource(e);return(0,l.k)(t,`Expected to find a valid source. sourceId=${e}`),!this.isDragging()&&t.canDrag(this,e)}canDropOnTarget(e){if(!e)return!1;const t=this.registry.getTarget(e);if((0,l.k)(t,`Expected to find a valid target. targetId=${e}`),!this.isDragging()||this.didDrop())return!1;return k(this.registry.getTargetType(e),this.getItemType())&&t.canDrop(this,e)}isDragging(){return Boolean(this.getItemType())}isDraggingSource(e){if(!e)return!1;const t=this.registry.getSource(e,!0);if((0,l.k)(t,`Expected to find a valid source. sourceId=${e}`),!this.isDragging()||!this.isSourcePublic())return!1;return this.registry.getSourceType(e)===this.getItemType()&&t.isDragging(this,e)}isOverTarget(e,t={shallow:!1}){if(!e)return!1;const{shallow:n}=t;if(!this.isDragging())return!1;const r=this.registry.getTargetType(e),i=this.getItemType();if(i&&!k(r,i))return!1;const o=this.getTargetIds();if(!o.length)return!1;const s=o.indexOf(e);return n?s===o.length-1:s>-1}getItemType(){return this.store.getState().dragOperation.itemType}getItem(){return this.store.getState().dragOperation.item}getSourceId(){return this.store.getState().dragOperation.sourceId}getTargetIds(){return this.store.getState().dragOperation.targetIds}getDropResult(){return this.store.getState().dragOperation.dropResult}didDrop(){return this.store.getState().dragOperation.didDrop}isSourcePublic(){return Boolean(this.store.getState().dragOperation.isSourcePublic)}getInitialClientOffset(){return this.store.getState().dragOffset.initialClientOffset}getInitialSourceClientOffset(){return this.store.getState().dragOffset.initialSourceClientOffset}getClientOffset(){return this.store.getState().dragOffset.clientOffset}getSourceClientOffset(){return function(e){const{clientOffset:t,initialClientOffset:n,initialSourceClientOffset:r}=e;return t&&n&&r?E((o=r,{x:(i=t).x+o.x,y:i.y+o.y}),n):null;var i,o}(this.store.getState().dragOffset)}getDifferenceFromInitialOffset(){return function(e){const{clientOffset:t,initialClientOffset:n}=e;return t&&n?E(t,n):null}(this.store.getState().dragOffset)}constructor(e,t){this.store=e,this.registry=t}}const L="undefined"!==typeof global?global:self,M=L.MutationObserver||L.WebKitMutationObserver;function A(e){return function(){const t=setTimeout(r,0),n=setInterval(r,50);function r(){clearTimeout(t),clearInterval(n),e()}}}const j="function"===typeof M?function(e){let t=1;const n=new M(e),r=document.createTextNode("");return n.observe(r,{characterData:!0}),function(){t=-t,r.data=t}}:A;class _{call(){try{this.task&&this.task()}catch(e){this.onError(e)}finally{this.task=null,this.release(this)}}constructor(e,t){this.onError=e,this.release=t,this.task=null}}const F=new class{enqueueTask(e){const{queue:t,requestFlush:n}=this;t.length||(n(),this.flushing=!0),t[t.length]=e}constructor(){this.queue=[],this.pendingErrors=[],this.flushing=!1,this.index=0,this.capacity=1024,this.flush=()=>{const{queue:e}=this;for(;this.index<e.length;){const t=this.index;if(this.index++,e[t].call(),this.index>this.capacity){for(let t=0,n=e.length-this.index;t<n;t++)e[t]=e[t+this.index];e.length-=this.index,this.index=0}}e.length=0,this.index=0,this.flushing=!1},this.registerPendingError=e=>{this.pendingErrors.push(e),this.requestErrorThrow()},this.requestFlush=j(this.flush),this.requestErrorThrow=A((()=>{if(this.pendingErrors.length)throw this.pendingErrors.shift()}))}},H=new class{create(e){const t=this.freeTasks,n=t.length?t.pop():new _(this.onError,(e=>t[t.length]=e));return n.task=e,n}constructor(e){this.onError=e,this.freeTasks=[]}}(F.registerPendingError);const z="dnd-core/ADD_SOURCE",U="dnd-core/ADD_TARGET",B="dnd-core/REMOVE_SOURCE",$="dnd-core/REMOVE_TARGET";function W(e,t){t&&Array.isArray(e)?e.forEach((e=>W(e,!1))):(0,l.k)("string"===typeof e||"symbol"===typeof e,t?"Type can only be a string, a symbol, or an array of either.":"Type can only be a string or a symbol.")}var q;!function(e){e.SOURCE="SOURCE",e.TARGET="TARGET"}(q||(q={}));let V=0;function X(e){const t=(V++).toString();switch(e){case q.SOURCE:return`S${t}`;case q.TARGET:return`T${t}`;default:throw new Error(`Unknown Handler Role: ${e}`)}}function G(e){switch(e[0]){case"S":return q.SOURCE;case"T":return q.TARGET;default:throw new Error(`Cannot parse handler ID: ${e}`)}}function Y(e,t){const n=e.entries();let r=!1;do{const{done:e,value:[,i]}=n.next();if(i===t)return!0;r=!!e}while(!r);return!1}class K{addSource(e,t){W(e),function(e){(0,l.k)("function"===typeof e.canDrag,"Expected canDrag to be a function."),(0,l.k)("function"===typeof e.beginDrag,"Expected beginDrag to be a function."),(0,l.k)("function"===typeof e.endDrag,"Expected endDrag to be a function.")}(t);const n=this.addHandler(q.SOURCE,e,t);return this.store.dispatch(function(e){return{type:z,payload:{sourceId:e}}}(n)),n}addTarget(e,t){W(e,!0),function(e){(0,l.k)("function"===typeof e.canDrop,"Expected canDrop to be a function."),(0,l.k)("function"===typeof e.hover,"Expected hover to be a function."),(0,l.k)("function"===typeof e.drop,"Expected beginDrag to be a function.")}(t);const n=this.addHandler(q.TARGET,e,t);return this.store.dispatch(function(e){return{type:U,payload:{targetId:e}}}(n)),n}containsHandler(e){return Y(this.dragSources,e)||Y(this.dropTargets,e)}getSource(e,t=!1){(0,l.k)(this.isSourceId(e),"Expected a valid source ID.");return t&&e===this.pinnedSourceId?this.pinnedSource:this.dragSources.get(e)}getTarget(e){return(0,l.k)(this.isTargetId(e),"Expected a valid target ID."),this.dropTargets.get(e)}getSourceType(e){return(0,l.k)(this.isSourceId(e),"Expected a valid source ID."),this.types.get(e)}getTargetType(e){return(0,l.k)(this.isTargetId(e),"Expected a valid target ID."),this.types.get(e)}isSourceId(e){return G(e)===q.SOURCE}isTargetId(e){return G(e)===q.TARGET}removeSource(e){var t;(0,l.k)(this.getSource(e),"Expected an existing source."),this.store.dispatch(function(e){return{type:B,payload:{sourceId:e}}}(e)),t=()=>{this.dragSources.delete(e),this.types.delete(e)},F.enqueueTask(H.create(t))}removeTarget(e){(0,l.k)(this.getTarget(e),"Expected an existing target."),this.store.dispatch(function(e){return{type:$,payload:{targetId:e}}}(e)),this.dropTargets.delete(e),this.types.delete(e)}pinSource(e){const t=this.getSource(e);(0,l.k)(t,"Expected an existing source."),this.pinnedSourceId=e,this.pinnedSource=t}unpinSource(){(0,l.k)(this.pinnedSource,"No source is pinned at the time."),this.pinnedSourceId=null,this.pinnedSource=null}addHandler(e,t,n){const r=X(e);return this.types.set(r,t),e===q.SOURCE?this.dragSources.set(r,n):e===q.TARGET&&this.dropTargets.set(r,n),r}constructor(e){this.types=new Map,this.dragSources=new Map,this.dropTargets=new Map,this.pinnedSourceId=null,this.pinnedSource=null,this.store=e}}const J=(e,t)=>e===t;function Z(e=P,t){switch(t.type){case p:break;case z:case U:case $:case B:return P;default:return N}const{targetIds:n=[],prevTargetIds:r=[]}=t.payload,i=function(e,t){const n=new Map,r=e=>{n.set(e,n.has(e)?n.get(e)+1:1)};e.forEach(r),t.forEach(r);const i=[];return n.forEach(((e,t)=>{1===e&&i.push(t)})),i}(n,r);if(!(i.length>0||!function(e,t,n=J){if(e.length!==t.length)return!1;for(let r=0;r<e.length;++r)if(!n(e[r],t[r]))return!1;return!0}(n,r)))return P;const o=r[r.length-1],s=n[n.length-1];return o!==s&&(o&&i.push(o),s&&i.push(s)),i}function Q(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const ee={initialSourceClientOffset:null,initialClientOffset:null,clientOffset:null};function te(e=ee,t){const{payload:n}=t;switch(t.type){case f:case h:return{initialSourceClientOffset:n.sourceClientOffset,initialClientOffset:n.clientOffset,clientOffset:n.clientOffset};case p:return r=e.clientOffset,i=n.clientOffset,!r&&!i||r&&i&&r.x===i.x&&r.y===i.y?e:function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Q(e,t,n[t])}))}return e}({},e,{clientOffset:n.clientOffset});case v:case m:return ee;default:return e}var r,i}function ne(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function re(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){ne(e,t,n[t])}))}return e}const ie={itemType:null,item:null,sourceId:null,targetIds:[],dropResult:null,didDrop:!1,isSourcePublic:null};function oe(e=ie,t){const{payload:n}=t;switch(t.type){case h:return re({},e,{itemType:n.itemType,item:n.item,sourceId:n.sourceId,isSourcePublic:n.isSourcePublic,dropResult:null,didDrop:!1});case g:return re({},e,{isSourcePublic:!0});case p:return re({},e,{targetIds:n.targetIds});case $:return-1===e.targetIds.indexOf(n.targetId)?e:re({},e,{targetIds:(r=e.targetIds,i=n.targetId,r.filter((e=>e!==i)))});case m:return re({},e,{dropResult:n.dropResult,didDrop:!0,targetIds:[]});case v:return re({},e,{itemType:null,item:null,sourceId:null,dropResult:null,didDrop:!1,isSourcePublic:null,targetIds:[]});default:return e}var r,i}function se(e=0,t){switch(t.type){case z:case U:return e+1;case B:case $:return e-1;default:return e}}function ae(e=0){return e+1}function ce(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ue(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){ce(e,t,n[t])}))}return e}function le(e={},t){return{dirtyHandlerIds:Z(e.dirtyHandlerIds,{type:t.type,payload:ue({},t.payload,{prevTargetIds:(n=e,r="dragOperation.targetIds",i=[],r.split(".").reduce(((e,t)=>e&&e[t]?e[t]:i||null),n))})}),dragOffset:te(e.dragOffset,t),refCount:se(e.refCount,t),dragOperation:oe(e.dragOperation,t),stateId:ae(e.stateId)};var n,r,i}function de(e,t,n={},r=!1){const i=function(e){const t="undefined"!==typeof window&&window.__REDUX_DEVTOOLS_EXTENSION__;return u(le,e&&t&&t({name:"dnd-core",instanceId:"dnd-core"}))}(r),o=new R(i,new K(i)),s=new x(i,o),a=e(s,t,n);return s.receiveBackend(a),s}var fe=n(82684),he=n(733);function ge(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}let pe=0;const me=Symbol.for("__REACT_DND_CONTEXT_INSTANCE__");var ve=(0,fe.memo)((function(e){var{children:t}=e,n=ge(e,["children"]);const[i,o]=function(e){if("manager"in e){return[{dragDropManager:e.manager},!1]}const t=function(e,t=be(),n,r){const i=t;i[me]||(i[me]={dragDropManager:de(e,t,n,r)});return i[me]}(e.backend,e.context,e.options,e.debugMode),n=!e.context;return[t,n]}(n);return(0,fe.useEffect)((()=>{if(o){const e=be();return++pe,()=>{0===--pe&&(e[me]=null)}}}),[]),(0,r.jsx)(he.L.Provider,{value:i,children:t})}));function be(){return"undefined"!==typeof global?global:window}},15716:function(e,t,n){n.d(t,{J:function(){return a}});var r=n(90857),i=n(82684),o=n(42738);function s(e,t,n){const[s,a]=function(e,t,n){const[s,a]=(0,i.useState)((()=>t(e))),c=(0,i.useCallback)((()=>{const i=t(e);r(s,i)||(a(i),n&&n())}),[s,e,n]);return(0,o.L)(c),[s,c]}(e,t,n);return(0,o.L)((function(){const t=e.getHandlerId();if(null!=t)return e.subscribeToStateChange(a,{handlerIds:[t]})}),[e,a]),s}function a(e,t,n){return s(t,e||(()=>({})),(()=>n.reconnect()))}},10975:function(e,t,n){n.d(t,{c:function(){return O}});var r=n(55021),i=n(15716),o=n(60452),s=n(82684);function a(e){return(0,s.useMemo)((()=>e.hooks.dragSource()),[e])}function c(e){return(0,s.useMemo)((()=>e.hooks.dragPreview()),[e])}var u=n(33382),l=n(20941),d=n(92963);class f{receiveHandlerId(e){this.handlerId!==e&&(this.handlerId=e,this.reconnect())}get connectTarget(){return this.dragSource}get dragSourceOptions(){return this.dragSourceOptionsInternal}set dragSourceOptions(e){this.dragSourceOptionsInternal=e}get dragPreviewOptions(){return this.dragPreviewOptionsInternal}set dragPreviewOptions(e){this.dragPreviewOptionsInternal=e}reconnect(){const e=this.reconnectDragSource();this.reconnectDragPreview(e)}reconnectDragSource(){const e=this.dragSource,t=this.didHandlerIdChange()||this.didConnectedDragSourceChange()||this.didDragSourceOptionsChange();return t&&this.disconnectDragSource(),this.handlerId?e?(t&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragSource=e,this.lastConnectedDragSourceOptions=this.dragSourceOptions,this.dragSourceUnsubscribe=this.backend.connectDragSource(this.handlerId,e,this.dragSourceOptions)),t):(this.lastConnectedDragSource=e,t):t}reconnectDragPreview(e=!1){const t=this.dragPreview,n=e||this.didHandlerIdChange()||this.didConnectedDragPreviewChange()||this.didDragPreviewOptionsChange();n&&this.disconnectDragPreview(),this.handlerId&&(t?n&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragPreview=t,this.lastConnectedDragPreviewOptions=this.dragPreviewOptions,this.dragPreviewUnsubscribe=this.backend.connectDragPreview(this.handlerId,t,this.dragPreviewOptions)):this.lastConnectedDragPreview=t)}didHandlerIdChange(){return this.lastConnectedHandlerId!==this.handlerId}didConnectedDragSourceChange(){return this.lastConnectedDragSource!==this.dragSource}didConnectedDragPreviewChange(){return this.lastConnectedDragPreview!==this.dragPreview}didDragSourceOptionsChange(){return!(0,u.w)(this.lastConnectedDragSourceOptions,this.dragSourceOptions)}didDragPreviewOptionsChange(){return!(0,u.w)(this.lastConnectedDragPreviewOptions,this.dragPreviewOptions)}disconnectDragSource(){this.dragSourceUnsubscribe&&(this.dragSourceUnsubscribe(),this.dragSourceUnsubscribe=void 0)}disconnectDragPreview(){this.dragPreviewUnsubscribe&&(this.dragPreviewUnsubscribe(),this.dragPreviewUnsubscribe=void 0,this.dragPreviewNode=null,this.dragPreviewRef=null)}get dragSource(){return this.dragSourceNode||this.dragSourceRef&&this.dragSourceRef.current}get dragPreview(){return this.dragPreviewNode||this.dragPreviewRef&&this.dragPreviewRef.current}clearDragSource(){this.dragSourceNode=null,this.dragSourceRef=null}clearDragPreview(){this.dragPreviewNode=null,this.dragPreviewRef=null}constructor(e){this.hooks=(0,d.p)({dragSource:(e,t)=>{this.clearDragSource(),this.dragSourceOptions=t||null,(0,l.d)(e)?this.dragSourceRef=e:this.dragSourceNode=e,this.reconnectDragSource()},dragPreview:(e,t)=>{this.clearDragPreview(),this.dragPreviewOptions=t||null,(0,l.d)(e)?this.dragPreviewRef=e:this.dragPreviewNode=e,this.reconnectDragPreview()}}),this.handlerId=null,this.dragSourceRef=null,this.dragSourceOptionsInternal=null,this.dragPreviewRef=null,this.dragPreviewOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDragSource=null,this.lastConnectedDragSourceOptions=null,this.lastConnectedDragPreview=null,this.lastConnectedDragPreviewOptions=null,this.backend=e}}var h=n(77655),g=n(42738);let p=!1,m=!1;class v{receiveHandlerId(e){this.sourceId=e}getHandlerId(){return this.sourceId}canDrag(){(0,r.k)(!p,"You may not call monitor.canDrag() inside your canDrag() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return p=!0,this.internalMonitor.canDragSource(this.sourceId)}finally{p=!1}}isDragging(){if(!this.sourceId)return!1;(0,r.k)(!m,"You may not call monitor.isDragging() inside your isDragging() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return m=!0,this.internalMonitor.isDraggingSource(this.sourceId)}finally{m=!1}}subscribeToStateChange(e,t){return this.internalMonitor.subscribeToStateChange(e,t)}isDraggingSource(e){return this.internalMonitor.isDraggingSource(e)}isOverTarget(e,t){return this.internalMonitor.isOverTarget(e,t)}getTargetIds(){return this.internalMonitor.getTargetIds()}isSourcePublic(){return this.internalMonitor.isSourcePublic()}getSourceId(){return this.internalMonitor.getSourceId()}subscribeToOffsetChange(e){return this.internalMonitor.subscribeToOffsetChange(e)}canDragSource(e){return this.internalMonitor.canDragSource(e)}canDropOnTarget(e){return this.internalMonitor.canDropOnTarget(e)}getItemType(){return this.internalMonitor.getItemType()}getItem(){return this.internalMonitor.getItem()}getDropResult(){return this.internalMonitor.getDropResult()}didDrop(){return this.internalMonitor.didDrop()}getInitialClientOffset(){return this.internalMonitor.getInitialClientOffset()}getInitialSourceClientOffset(){return this.internalMonitor.getInitialSourceClientOffset()}getSourceClientOffset(){return this.internalMonitor.getSourceClientOffset()}getClientOffset(){return this.internalMonitor.getClientOffset()}getDifferenceFromInitialOffset(){return this.internalMonitor.getDifferenceFromInitialOffset()}constructor(e){this.sourceId=null,this.internalMonitor=e.getMonitor()}}var b=n(99130);class y{beginDrag(){const e=this.spec,t=this.monitor;let n=null;return n="object"===typeof e.item?e.item:"function"===typeof e.item?e.item(t):{},null!==n&&void 0!==n?n:null}canDrag(){const e=this.spec,t=this.monitor;return"boolean"===typeof e.canDrag?e.canDrag:"function"!==typeof e.canDrag||e.canDrag(t)}isDragging(e,t){const n=this.spec,r=this.monitor,{isDragging:i}=n;return i?i(r):t===e.getSourceId()}endDrag(){const e=this.spec,t=this.monitor,n=this.connector,{end:r}=e;r&&r(t.getItem(),t),n.reconnect()}constructor(e,t,n){this.spec=e,this.monitor=t,this.connector=n}}function D(e,t,n){const i=(0,h.N)(),o=function(e,t,n){const r=(0,s.useMemo)((()=>new y(e,t,n)),[t,n]);return(0,s.useEffect)((()=>{r.spec=e}),[e]),r}(e,t,n),a=function(e){return(0,s.useMemo)((()=>{const t=e.type;return(0,r.k)(null!=t,"spec.type must be defined"),t}),[e])}(e);(0,g.L)((function(){if(null!=a){const[e,r]=(0,b.w)(a,o,i);return t.receiveHandlerId(e),n.receiveHandlerId(e),r}}),[i,t,n,o,a])}function O(e,t){const n=(0,o.w)(e,t);(0,r.k)(!n.begin,"useDrag::spec.begin was deprecated in v14. Replace spec.begin() with spec.item(). (see more here - https://react-dnd.github.io/react-dnd/docs/api/use-drag)");const u=function(){const e=(0,h.N)();return(0,s.useMemo)((()=>new v(e)),[e])}(),l=function(e,t){const n=(0,h.N)(),r=(0,s.useMemo)((()=>new f(n.getBackend())),[n]);return(0,g.L)((()=>(r.dragSourceOptions=e||null,r.reconnect(),()=>r.disconnectDragSource())),[r,e]),(0,g.L)((()=>(r.dragPreviewOptions=t||null,r.reconnect(),()=>r.disconnectDragPreview())),[r,t]),r}(n.options,n.previewOptions);return D(n,u,l),[(0,i.J)(n.collect,u,l),a(l),c(l)]}},77655:function(e,t,n){n.d(t,{N:function(){return s}});var r=n(55021),i=n(82684),o=n(733);function s(){const{dragDropManager:e}=(0,i.useContext)(o.L);return(0,r.k)(null!=e,"Expected drag drop context"),e}},14567:function(e,t,n){n.d(t,{L:function(){return y}});var r=n(15716),i=n(60452),o=n(82684);function s(e){return(0,o.useMemo)((()=>e.hooks.dropTarget()),[e])}var a=n(33382),c=n(20941),u=n(92963);class l{get connectTarget(){return this.dropTarget}reconnect(){const e=this.didHandlerIdChange()||this.didDropTargetChange()||this.didOptionsChange();e&&this.disconnectDropTarget();const t=this.dropTarget;this.handlerId&&(t?e&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDropTarget=t,this.lastConnectedDropTargetOptions=this.dropTargetOptions,this.unsubscribeDropTarget=this.backend.connectDropTarget(this.handlerId,t,this.dropTargetOptions)):this.lastConnectedDropTarget=t)}receiveHandlerId(e){e!==this.handlerId&&(this.handlerId=e,this.reconnect())}get dropTargetOptions(){return this.dropTargetOptionsInternal}set dropTargetOptions(e){this.dropTargetOptionsInternal=e}didHandlerIdChange(){return this.lastConnectedHandlerId!==this.handlerId}didDropTargetChange(){return this.lastConnectedDropTarget!==this.dropTarget}didOptionsChange(){return!(0,a.w)(this.lastConnectedDropTargetOptions,this.dropTargetOptions)}disconnectDropTarget(){this.unsubscribeDropTarget&&(this.unsubscribeDropTarget(),this.unsubscribeDropTarget=void 0)}get dropTarget(){return this.dropTargetNode||this.dropTargetRef&&this.dropTargetRef.current}clearDropTarget(){this.dropTargetRef=null,this.dropTargetNode=null}constructor(e){this.hooks=(0,u.p)({dropTarget:(e,t)=>{this.clearDropTarget(),this.dropTargetOptions=t,(0,c.d)(e)?this.dropTargetRef=e:this.dropTargetNode=e,this.reconnect()}}),this.handlerId=null,this.dropTargetRef=null,this.dropTargetOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDropTarget=null,this.lastConnectedDropTargetOptions=null,this.backend=e}}var d=n(77655),f=n(42738);var h=n(55021);let g=!1;class p{receiveHandlerId(e){this.targetId=e}getHandlerId(){return this.targetId}subscribeToStateChange(e,t){return this.internalMonitor.subscribeToStateChange(e,t)}canDrop(){if(!this.targetId)return!1;(0,h.k)(!g,"You may not call monitor.canDrop() inside your canDrop() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target-monitor");try{return g=!0,this.internalMonitor.canDropOnTarget(this.targetId)}finally{g=!1}}isOver(e){return!!this.targetId&&this.internalMonitor.isOverTarget(this.targetId,e)}getItemType(){return this.internalMonitor.getItemType()}getItem(){return this.internalMonitor.getItem()}getDropResult(){return this.internalMonitor.getDropResult()}didDrop(){return this.internalMonitor.didDrop()}getInitialClientOffset(){return this.internalMonitor.getInitialClientOffset()}getInitialSourceClientOffset(){return this.internalMonitor.getInitialSourceClientOffset()}getSourceClientOffset(){return this.internalMonitor.getSourceClientOffset()}getClientOffset(){return this.internalMonitor.getClientOffset()}getDifferenceFromInitialOffset(){return this.internalMonitor.getDifferenceFromInitialOffset()}constructor(e){this.targetId=null,this.internalMonitor=e.getMonitor()}}var m=n(99130);class v{canDrop(){const e=this.spec,t=this.monitor;return!e.canDrop||e.canDrop(t.getItem(),t)}hover(){const e=this.spec,t=this.monitor;e.hover&&e.hover(t.getItem(),t)}drop(){const e=this.spec,t=this.monitor;if(e.drop)return e.drop(t.getItem(),t)}constructor(e,t){this.spec=e,this.monitor=t}}function b(e,t,n){const r=(0,d.N)(),i=function(e,t){const n=(0,o.useMemo)((()=>new v(e,t)),[t]);return(0,o.useEffect)((()=>{n.spec=e}),[e]),n}(e,t),s=function(e){const{accept:t}=e;return(0,o.useMemo)((()=>((0,h.k)(null!=e.accept,"accept must be defined"),Array.isArray(t)?t:[t])),[t])}(e);(0,f.L)((function(){const[e,o]=(0,m.n)(s,i,r);return t.receiveHandlerId(e),n.receiveHandlerId(e),o}),[r,t,i,n,s.map((e=>e.toString())).join("|")])}function y(e,t){const n=(0,i.w)(e,t),a=function(){const e=(0,d.N)();return(0,o.useMemo)((()=>new p(e)),[e])}(),c=function(e){const t=(0,d.N)(),n=(0,o.useMemo)((()=>new l(t.getBackend())),[t]);return(0,f.L)((()=>(n.dropTargetOptions=e||null,n.reconnect(),()=>n.disconnectDropTarget())),[e]),n}(n.options);return b(n,a,c),[(0,r.J)(n.collect,a,c),s(c)]}},42738:function(e,t,n){n.d(t,{L:function(){return i}});var r=n(82684);const i="undefined"!==typeof window?r.useLayoutEffect:r.useEffect},60452:function(e,t,n){n.d(t,{w:function(){return i}});var r=n(82684);function i(e,t){const n=[...t||[]];return null==t&&"function"!==typeof e&&n.push(e),(0,r.useMemo)((()=>"function"===typeof e?e():e),n)}},20941:function(e,t,n){function r(e){return null!==e&&"object"===typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}n.d(t,{d:function(){return r}})},99130:function(e,t,n){function r(e,t,n){const r=n.getRegistry(),i=r.addTarget(e,t);return[i,()=>r.removeTarget(i)]}function i(e,t,n){const r=n.getRegistry(),i=r.addSource(e,t);return[i,()=>r.removeSource(i)]}n.d(t,{n:function(){return r},w:function(){return i}})},92963:function(e,t,n){n.d(t,{p:function(){return s}});var r=n(55021),i=n(82684);function o(e){return(t=null,n=null)=>{if(!(0,i.isValidElement)(t)){const r=t;return e(r,n),r}const o=t;!function(e){if("string"===typeof e.type)return;const t=e.type.displayName||e.type.name||"the component";throw new Error(`Only native element nodes can now be passed to React DnD connectors.You can either wrap ${t} into a <div>, or turn it into a drag source or a drop target itself.`)}(o);return function(e,t){const n=e.ref;return(0,r.k)("string"!==typeof n,"Cannot connect React DnD to an element with an existing string ref. Please convert it to use a callback ref instead, or wrap it into a <span> or <div>. Read more: https://reactjs.org/docs/refs-and-the-dom.html#callback-refs"),n?(0,i.cloneElement)(e,{ref:e=>{a(n,e),a(t,e)}}):(0,i.cloneElement)(e,{ref:t})}(o,n?t=>e(t,n):e)}}function s(e){const t={};return Object.keys(e).forEach((n=>{const r=e[n];if(n.endsWith("Ref"))t[n]=e[n];else{const e=o(r);t[n]=()=>e}})),t}function a(e,t){"function"===typeof e?e(t):e.current=t}},5882:function(e,t,n){n.d(t,{Z:function(){return $e}});var r=n(76075),i=n(80226);const o={tokenize:function(e,t,n){return function(t){return e.consume(t),r};function r(t){return 87===t||119===t?(e.consume(t),o):n(t)}function o(t){return 87===t||119===t?(e.consume(t),s):n(t)}function s(t){return 46===t?(e.consume(t),a):n(t)}function a(e){return null===e||(0,i.Ch)(e)?n(e):t(e)}},partial:!0},s={tokenize:function(e,t,n){let r,o;return s;function s(t){return 38===t?e.check(u,l,a)(t):46===t||95===t?e.check(c,l,a)(t):null===t||(0,i.Av)(t)||(0,i.B8)(t)||45!==t&&(0,i.Xh)(t)?l(t):(e.consume(t),s)}function a(t){return 46===t?(o=r,r=void 0,e.consume(t),s):(95===t&&(r=!0),e.consume(t),s)}function l(e){return o||r?n(e):t(e)}},partial:!0},a={tokenize:function(e,t){let n=0;return r;function r(s){return 38===s?e.check(u,t,i)(s):(40===s&&n++,41===s?e.check(c,o,i)(s):v(s)?t(s):m(s)?e.check(c,t,i)(s):(e.consume(s),r))}function i(t){return e.consume(t),r}function o(e){return n--,n<0?t(e):i(e)}},partial:!0},c={tokenize:function(e,t,n){return function(t){return e.consume(t),r};function r(i){return m(i)?(e.consume(i),r):v(i)?t(i):n(i)}},partial:!0},u={tokenize:function(e,t,n){return function(t){return e.consume(t),r};function r(t){return(0,i.jv)(t)?(e.consume(t),r):59===t?(e.consume(t),o):n(t)}function o(e){return v(e)?t(e):n(e)}},partial:!0},l={tokenize:function(e,t,n){const r=this;return function(t){if(87!==t&&119!==t||!y(r.previous)||w(r.events))return n(t);return e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(o,e.attempt(s,e.attempt(a,i),n),n)(t)};function i(n){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(n)}},previous:y},d={tokenize:function(e,t,n){const r=this;return function(t){if(72!==t&&104!==t||!D(r.previous)||w(r.events))return n(t);return e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),e.consume(t),o};function o(t){return 84===t||116===t?(e.consume(t),c):n(t)}function c(t){return 84===t||116===t?(e.consume(t),u):n(t)}function u(t){return 80===t||112===t?(e.consume(t),l):n(t)}function l(t){return 83===t||115===t?(e.consume(t),d):d(t)}function d(t){return 58===t?(e.consume(t),f):n(t)}function f(t){return 47===t?(e.consume(t),h):n(t)}function h(t){return 47===t?(e.consume(t),g):n(t)}function g(t){return null===t||(0,i.Av)(t)||(0,i.B8)(t)||(0,i.Xh)(t)?n(t):e.attempt(s,e.attempt(a,p),n)(t)}function p(n){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(n)}},previous:D},f={tokenize:function(e,t,n){const r=this;let o,s;return function(t){if(!b(t)||!O(r.previous)||w(r.events))return n(t);return e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),a(t)};function a(t){return b(t)?(e.consume(t),a):64===t?(e.consume(t),u):n(t)}function u(t){return 46===t?e.check(c,h,l)(t):45===t||95===t?e.check(c,n,d)(t):(0,i.H$)(t)?(!s&&(0,i.pY)(t)&&(s=!0),e.consume(t),u):h(t)}function l(t){return e.consume(t),o=!0,s=void 0,u}function d(t){return e.consume(t),f}function f(t){return 46===t?e.check(c,n,l)(t):u(t)}function h(r){return o&&!s?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(r)):n(r)}},previous:O},h={},g={text:h};let p=48;for(;p<123;)h[p]=f,p++,58===p?p=65:91===p&&(p=97);function m(e){return 33===e||34===e||39===e||41===e||42===e||44===e||46===e||58===e||59===e||60===e||63===e||95===e||126===e}function v(e){return null===e||60===e||(0,i.z3)(e)}function b(e){return 43===e||45===e||46===e||95===e||(0,i.H$)(e)}function y(e){return null===e||40===e||42===e||95===e||126===e||(0,i.z3)(e)}function D(e){return null===e||!(0,i.jv)(e)}function O(e){return 47!==e&&D(e)}function w(e){let t=e.length,n=!1;for(;t--;){const r=e[t][1];if(("labelLink"===r.type||"labelImage"===r.type)&&!r._balanced){n=!0;break}if(r._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}h[43]=f,h[45]=f,h[46]=f,h[95]=f,h[72]=[f,d],h[104]=[f,d],h[87]=[f,l],h[119]=[f,l];var S=n(84430),T=n(576),k=n(43774);const C={tokenize:function(e,t,n){const r=this;return(0,T.f)(e,(function(e){const i=r.events[r.events.length-1];return i&&"gfmFootnoteDefinitionIndent"===i[1].type&&4===i[2].sliceSerialize(i[1],!0).length?t(e):n(e)}),"gfmFootnoteDefinitionIndent",5)},partial:!0};function I(e,t,n){const r=this;let i=r.events.length;const o=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let s;for(;i--;){const e=r.events[i][1];if("labelImage"===e.type){s=e;break}if("gfmFootnoteCall"===e.type||"labelLink"===e.type||"label"===e.type||"image"===e.type||"link"===e.type)break}return function(i){if(!s||!s._balanced)return n(i);const a=(0,k.d)(r.sliceSerialize({start:s.end,end:r.now()}));if(94!==a.codePointAt(0)||!o.includes(a.slice(1)))return n(i);return e.enter("gfmFootnoteCallLabelMarker"),e.consume(i),e.exit("gfmFootnoteCallLabelMarker"),t(i)}}function x(e,t){let n,r=e.length;for(;r--;)if("labelImage"===e[r][1].type&&"enter"===e[r][0]){n=e[r][1];break}e[r+1][1].type="data",e[r+3][1].type="gfmFootnoteCallLabelMarker";const i={type:"gfmFootnoteCall",start:Object.assign({},e[r+3][1].start),end:Object.assign({},e[e.length-1][1].end)},o={type:"gfmFootnoteCallMarker",start:Object.assign({},e[r+3][1].end),end:Object.assign({},e[r+3][1].end)};o.end.column++,o.end.offset++,o.end._bufferIndex++;const s={type:"gfmFootnoteCallString",start:Object.assign({},o.end),end:Object.assign({},e[e.length-1][1].start)},a={type:"chunkString",contentType:"string",start:Object.assign({},s.start),end:Object.assign({},s.end)},c=[e[r+1],e[r+2],["enter",i,t],e[r+3],e[r+4],["enter",o,t],["exit",o,t],["enter",s,t],["enter",a,t],["exit",a,t],["exit",s,t],e[e.length-2],e[e.length-1],["exit",i,t]];return e.splice(r,e.length-r+1,...c),e}function E(e,t,n){const r=this,o=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let s,a=0;return function(t){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(t),e.exit("gfmFootnoteCallLabelMarker"),c};function c(t){return 94!==t?n(t):(e.enter("gfmFootnoteCallMarker"),e.consume(t),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",u)}function u(c){if(a>999||93===c&&!s||null===c||91===c||(0,i.z3)(c))return n(c);if(93===c){e.exit("chunkString");const i=e.exit("gfmFootnoteCallString");return o.includes((0,k.d)(r.sliceSerialize(i)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(c),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(c)}return(0,i.z3)(c)||(s=!0),a++,e.consume(c),92===c?l:u}function l(t){return 91===t||92===t||93===t?(e.consume(t),a++,u):u(t)}}function P(e,t,n){const r=this,o=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let s,a,c=0;return function(t){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionLabelMarker"),u};function u(t){return 94===t?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",l):n(t)}function l(t){if(c>999||93===t&&!a||null===t||91===t||(0,i.z3)(t))return n(t);if(93===t){e.exit("chunkString");const n=e.exit("gfmFootnoteDefinitionLabelString");return s=(0,k.d)(r.sliceSerialize(n)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),f}return(0,i.z3)(t)||(a=!0),c++,e.consume(t),92===t?d:l}function d(t){return 91===t||92===t||93===t?(e.consume(t),c++,l):l(t)}function f(t){return 58===t?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),o.includes(s)||o.push(s),(0,T.f)(e,h,"gfmFootnoteDefinitionWhitespace")):n(t)}function h(e){return t(e)}}function N(e,t,n){return e.check(S.w,t,e.attempt(C,t,n))}function R(e){e.exit("gfmFootnoteDefinition")}var L=n(78043),M=n(38600),A=n(16821);function j(e){let t=(e||{}).singleTilde;const n={tokenize:function(e,n,r){const i=this.previous,o=this.events;let s=0;return function(t){if(126===i&&"characterEscape"!==o[o.length-1][1].type)return r(t);return e.enter("strikethroughSequenceTemporary"),a(t)};function a(o){const c=(0,M.r)(i);if(126===o)return s>1?r(o):(e.consume(o),s++,a);if(s<2&&!t)return r(o);const u=e.exit("strikethroughSequenceTemporary"),l=(0,M.r)(o);return u._open=!l||2===l&&Boolean(c),u._close=!c||2===c&&Boolean(l),n(o)}},resolveAll:function(e,t){let n=-1;for(;++n<e.length;)if("enter"===e[n][0]&&"strikethroughSequenceTemporary"===e[n][1].type&&e[n][1]._close){let r=n;for(;r--;)if("exit"===e[r][0]&&"strikethroughSequenceTemporary"===e[r][1].type&&e[r][1]._open&&e[n][1].end.offset-e[n][1].start.offset===e[r][1].end.offset-e[r][1].start.offset){e[n][1].type="strikethroughSequence",e[r][1].type="strikethroughSequence";const i={type:"strikethrough",start:Object.assign({},e[r][1].start),end:Object.assign({},e[n][1].end)},o={type:"strikethroughText",start:Object.assign({},e[r][1].end),end:Object.assign({},e[n][1].start)},s=[["enter",i,t],["enter",e[r][1],t],["exit",e[r][1],t],["enter",o,t]],a=t.parser.constructs.insideSpan.null;a&&(0,L.d)(s,s.length,0,(0,A.C)(a,e.slice(r+1,n),t)),(0,L.d)(s,s.length,0,[["exit",o,t],["enter",e[n][1],t],["exit",e[n][1],t],["exit",i,t]]),(0,L.d)(e,r-1,n-r+3,s),n=r+s.length-2;break}}n=-1;for(;++n<e.length;)"strikethroughSequenceTemporary"===e[n][1].type&&(e[n][1].type="data");return e}};return null!==t&&void 0!==t||(t=!0),{text:{126:n},insideSpan:{null:[n]},attentionMarkers:{null:[126]}}}const _={flow:{null:{tokenize:function(e,t,n){const r=this,o=[];let s,a,c=0;return function(t){if(e.enter("table")._align=o,e.enter("tableHead"),e.enter("tableRow"),124===t)return u(t);return c++,e.enter("temporaryTableCellContent"),f(t)};function u(t){return e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),s=!0,l}function l(t){return null===t||(0,i.Ch)(t)?function(t){if(null===t)return n(t);e.exit("tableRow"),e.exit("tableHead");const i=r.interrupt;return r.interrupt=!0,e.attempt({tokenize:P,partial:!0},(function(t){return r.interrupt=i,e.enter("tableDelimiterRow"),g(t)}),(function(e){return r.interrupt=i,n(e)}))(t)}(t):(0,i.xz)(t)?(e.enter("whitespace"),e.consume(t),d):(s&&(s=void 0,c++),124===t?u(t):(e.enter("temporaryTableCellContent"),f(t)))}function d(t){return(0,i.xz)(t)?(e.consume(t),d):(e.exit("whitespace"),l(t))}function f(t){return null===t||124===t||(0,i.z3)(t)?(e.exit("temporaryTableCellContent"),l(t)):(e.consume(t),92===t?h:f)}function h(t){return 92===t||124===t?(e.consume(t),f):f(t)}function g(t){return null===t||(0,i.Ch)(t)?y(t):(0,i.xz)(t)?(e.enter("whitespace"),e.consume(t),p):45===t?(e.enter("tableDelimiterFiller"),e.consume(t),a=!0,o.push("none"),m):58===t?(e.enter("tableDelimiterAlignment"),e.consume(t),e.exit("tableDelimiterAlignment"),o.push("left"),v):124===t?(e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),g):n(t)}function p(t){return(0,i.xz)(t)?(e.consume(t),p):(e.exit("whitespace"),g(t))}function m(t){return 45===t?(e.consume(t),m):(e.exit("tableDelimiterFiller"),58===t?(e.enter("tableDelimiterAlignment"),e.consume(t),e.exit("tableDelimiterAlignment"),o[o.length-1]="left"===o[o.length-1]?"center":"right",b):g(t))}function v(t){return 45===t?(e.enter("tableDelimiterFiller"),e.consume(t),a=!0,m):n(t)}function b(t){return null===t||(0,i.Ch)(t)?y(t):(0,i.xz)(t)?(e.enter("whitespace"),e.consume(t),p):124===t?(e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),g):n(t)}function y(t){return e.exit("tableDelimiterRow"),a&&c===o.length?null===t?D(t):e.check(F,D,e.attempt({tokenize:P,partial:!0},(0,T.f)(e,O,"linePrefix",4),D))(t):n(t)}function D(n){return e.exit("table"),t(n)}function O(t){return e.enter("tableBody"),w(t)}function w(t){return e.enter("tableRow"),124===t?S(t):(e.enter("temporaryTableCellContent"),I(t))}function S(t){return e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),k}function k(t){return null===t||(0,i.Ch)(t)?function(t){if(e.exit("tableRow"),null===t)return E(t);return e.check(F,E,e.attempt({tokenize:P,partial:!0},(0,T.f)(e,w,"linePrefix",4),E))(t)}(t):(0,i.xz)(t)?(e.enter("whitespace"),e.consume(t),C):124===t?S(t):(e.enter("temporaryTableCellContent"),I(t))}function C(t){return(0,i.xz)(t)?(e.consume(t),C):(e.exit("whitespace"),k(t))}function I(t){return null===t||124===t||(0,i.z3)(t)?(e.exit("temporaryTableCellContent"),k(t)):(e.consume(t),92===t?x:I)}function x(t){return 92===t||124===t?(e.consume(t),I):I(t)}function E(t){return e.exit("tableBody"),D(t)}function P(e,t,n){return function(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),(0,T.f)(e,o,"linePrefix")};function o(o){if(r.parser.lazy[r.now().line]||null===o||(0,i.Ch)(o))return n(o);const s=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&s&&"linePrefix"===s[1].type&&s[2].sliceSerialize(s[1],!0).length>=4?n(o):(r._gfmTableDynamicInterruptHack=!0,e.check(r.parser.constructs.flow,(function(e){return r._gfmTableDynamicInterruptHack=!1,n(e)}),(function(e){return r._gfmTableDynamicInterruptHack=!1,t(e)}))(o))}}},resolve:function(e,t){let n,r,i,o,s,a,c,u=-1;for(;++u<e.length;){const l=e[u][1];if(i&&("temporaryTableCellContent"===l.type&&(o=o||u,s=u),("tableCellDivider"===l.type||"tableRow"===l.type)&&s)){const n={type:"tableContent",start:e[o][1].start,end:e[s][1].end},r={type:"chunkText",start:n.start,end:n.end,contentType:"text"};e.splice(o,s-o+1,["enter",n,t],["enter",r,t],["exit",r,t],["exit",n,t]),u-=s-o-3,o=void 0,s=void 0}if("exit"===e[u][0]&&void 0!==a&&a+(c?0:1)<u&&("tableCellDivider"===l.type||"tableRow"===l.type&&(a+3<u||"whitespace"!==e[a][1].type))){const i={type:r?"tableDelimiter":n?"tableHeader":"tableData",start:e[a][1].start,end:e[u][1].end};e.splice(u+("tableCellDivider"===l.type?1:0),0,["exit",i,t]),e.splice(a,0,["enter",i,t]),u+=2,a=u+1,c=!0}"tableRow"===l.type&&(i="enter"===e[u][0],i&&(a=u+1,c=!1)),"tableDelimiterRow"===l.type&&(r="enter"===e[u][0],r&&(a=u+1,c=!1)),"tableHead"===l.type&&(n="enter"===e[u][0])}return e}}}},F={tokenize:function(e,t,n){let r=0;return function(t){return e.enter("check"),e.consume(t),o};function o(s){return-1===s||32===s?(e.consume(s),r++,4===r?t:o):null===s||(0,i.z3)(s)?t(s):n(s)}},partial:!0};const H={tokenize:function(e,t,n){const r=this;return function(t){if(null!==r.previous||!r._gfmTasklistFirstContentOfListItem)return n(t);return e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(t),e.exit("taskListCheckMarker"),o};function o(t){return(0,i.z3)(t)?(e.enter("taskListCheckValueUnchecked"),e.consume(t),e.exit("taskListCheckValueUnchecked"),s):88===t||120===t?(e.enter("taskListCheckValueChecked"),e.consume(t),e.exit("taskListCheckValueChecked"),s):n(t)}function s(t){return 93===t?(e.enter("taskListCheckMarker"),e.consume(t),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),a):n(t)}function a(r){return(0,i.Ch)(r)?t(r):(0,i.xz)(r)?e.check({tokenize:U},t,n)(r):n(r)}}},z={text:{91:H}};function U(e,t,n){return(0,T.f)(e,(function(e){return null===e?n(e):t(e)}),"whitespace")}function B(e,t){const n=String(e);if("string"!==typeof t)throw new TypeError("Expected character");let r=0,i=n.indexOf(t);for(;-1!==i;)r++,i=n.indexOf(t,i+t.length);return r}var $=n(89505);const W=function(e){if(void 0===e||null===e)return V;if("string"===typeof e)return function(e){return q(t);function t(t){return t&&t.type===e}}(e);if("object"===typeof e)return Array.isArray(e)?function(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=W(e[n]);return q(r);function r(...e){let n=-1;for(;++n<t.length;)if(t[n].call(this,...e))return!0;return!1}}(e):function(e){return q(t);function t(t){let n;for(n in e)if(t[n]!==e[n])return!1;return!0}}(e);if("function"===typeof e)return q(e);throw new Error("Expected function, string, or object as test")};function q(e){return function(t,...n){return Boolean(t&&"object"===typeof t&&"type"in t&&Boolean(e.call(this,t,...n)))}}function V(){return!0}const X={}.hasOwnProperty,G=function(e,t,n,r){let i,o;"string"===typeof t||t instanceof RegExp?(o=[[t,n]],i=r):(o=t,i=n),i||(i={});const s=W(i.ignore||[]),a=function(e){const t=[];if("object"!==typeof e)throw new TypeError("Expected array or object as schema");if(Array.isArray(e)){let n=-1;for(;++n<e.length;)t.push([Y(e[n][0]),K(e[n][1])])}else{let n;for(n in e)X.call(e,n)&&t.push([Y(n),K(e[n])])}return t}(o);let c=-1;for(;++c<a.length;)(0,$.S4)(e,"text",u);return e;function u(e,t){let n,r=-1;for(;++r<t.length;){const e=t[r];if(s(e,n?n.children.indexOf(e):void 0,n))return;n=e}if(n)return function(e,t){const n=t[t.length-1],r=a[c][0],i=a[c][1];let o=0;const s=n.children.indexOf(e);let u=!1,l=[];r.lastIndex=0;let d=r.exec(e.value);for(;d;){const n=d.index,s={index:d.index,input:d.input,stack:[...t,e]};let a=i(...d,s);if("string"===typeof a&&(a=a.length>0?{type:"text",value:a}:void 0),!1!==a&&(o!==n&&l.push({type:"text",value:e.value.slice(o,n)}),Array.isArray(a)?l.push(...a):a&&l.push(a),o=n+d[0].length,u=!0),!r.global)break;d=r.exec(e.value)}u?(o<e.value.length&&l.push({type:"text",value:e.value.slice(o)}),n.children.splice(s,1,...l)):l=[e];return s+l.length}(e,t)}};function Y(e){return"string"===typeof e?new RegExp(function(e){if("string"!==typeof e)throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}(e),"g"):e}function K(e){return"function"===typeof e?e:()=>e}const J="phrasing",Z=["autolink","link","image","label"],Q={transforms:[function(e){G(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,ne],[/([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/g,re]],{ignore:["link","linkReference"]})}],enter:{literalAutolink:function(e){this.enter({type:"link",title:null,url:"",children:[]},e)},literalAutolinkEmail:te,literalAutolinkHttp:te,literalAutolinkWww:te},exit:{literalAutolink:function(e){this.exit(e)},literalAutolinkEmail:function(e){this.config.exit.autolinkEmail.call(this,e)},literalAutolinkHttp:function(e){this.config.exit.autolinkProtocol.call(this,e)},literalAutolinkWww:function(e){this.config.exit.data.call(this,e);this.stack[this.stack.length-1].url="http://"+this.sliceSerialize(e)}}},ee={unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:J,notInConstruct:Z},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:J,notInConstruct:Z},{character:":",before:"[ps]",after:"\\/",inConstruct:J,notInConstruct:Z}]};function te(e){this.config.enter.autolinkProtocol.call(this,e)}function ne(e,t,n,r,i){let o="";if(!ie(i))return!1;if(/^w/i.test(t)&&(n=t+n,t="",o="http://"),!function(e){const t=e.split(".");if(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))return!1;return!0}(n))return!1;const s=function(e){const t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],r=n.indexOf(")");const i=B(e,"(");let o=B(e,")");for(;-1!==r&&i>o;)e+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(")"),o++;return[e,n]}(n+r);if(!s[0])return!1;const a={type:"link",title:null,url:o+t+s[0],children:[{type:"text",value:t+s[0]}]};return s[1]?[a,{type:"text",value:s[1]}]:a}function re(e,t,n,r){return!(!ie(r,!0)||/[-\d_]$/.test(n))&&{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function ie(e,t){const n=e.input.charCodeAt(e.index-1);return(0===e.index||(0,i.B8)(n)||(0,i.Xh)(n))&&(!t||47!==n)}var oe=n(83531);function se(e){return e.label||!e.identifier?e.label||"":(0,oe.v)(e.identifier)}function ae(e,t,n,r){let i=r.join.length;for(;i--;){const o=r.join[i](e,t,n,r);if(!0===o||1===o)break;if("number"===typeof o)return"\n".repeat(1+o);if(!1===o)return"\n\n\x3c!----\x3e\n\n"}return"\n\n"}const ce=/\r?\n|\r/g;function ue(e){if(!e._compiled){const t=(e.atBreak?"[\\r\\n][\\t ]*":"")+(e.before?"(?:"+e.before+")":"");e._compiled=new RegExp((t?"("+t+")":"")+(/[|\\{}()[\]^$+*?.-]/.test(e.character)?"\\":"")+e.character+(e.after?"(?:"+e.after+")":""),"g")}return e._compiled}function le(e,t){return de(e,t.inConstruct,!0)&&!de(e,t.notInConstruct,!1)}function de(e,t,n){if("string"===typeof t&&(t=[t]),!t||0===t.length)return n;let r=-1;for(;++r<t.length;)if(e.includes(t[r]))return!0;return!1}function fe(e,t,n){const r=(n.before||"")+(t||"")+(n.after||""),i=[],o=[],s={};let a=-1;for(;++a<e.unsafe.length;){const t=e.unsafe[a];if(!le(e.stack,t))continue;const n=ue(t);let o;for(;o=n.exec(r);){const e="before"in t||Boolean(t.atBreak),n="after"in t,r=o.index+(e?o[1].length:0);i.includes(r)?(s[r].before&&!e&&(s[r].before=!1),s[r].after&&!n&&(s[r].after=!1)):(i.push(r),s[r]={before:e,after:n})}}i.sort(he);let c=n.before?n.before.length:0;const u=r.length-(n.after?n.after.length:0);for(a=-1;++a<i.length;){const e=i[a];e<c||e>=u||(e+1<u&&i[a+1]===e+1&&s[e].after&&!s[e+1].before&&!s[e+1].after||i[a-1]===e-1&&s[e].before&&!s[e-1].before&&!s[e-1].after||(c!==e&&o.push(ge(r.slice(c,e),"\\")),c=e,!/[!-/:-@[-`{-~]/.test(r.charAt(e))||n.encode&&n.encode.includes(r.charAt(e))?(o.push("&#x"+r.charCodeAt(e).toString(16).toUpperCase()+";"),c++):o.push("\\")))}return o.push(ge(r.slice(c,u),n.after)),o.join("")}function he(e,t){return e-t}function ge(e,t){const n=/\\(?=[!-/:-@[-`{-~])/g,r=[],i=[],o=e+t;let s,a=-1,c=0;for(;s=n.exec(o);)r.push(s.index);for(;++a<r.length;)c!==r[a]&&i.push(e.slice(c,r[a])),i.push("\\"),c=r[a];return i.push(e.slice(c)),i.join("")}function pe(e){const t=e||{},n=t.now||{};let r=t.lineShift||0,i=n.line||1,o=n.column||1;return{move:function(e){const t=e||"",n=t.split(/\r?\n|\r/g),s=n[n.length-1];return i+=n.length-1,o=1===n.length?o+s.length:1+s.length+r,t},current:function(){return{now:{line:i,column:o},lineShift:r}},shift:function(e){r+=e}}}function me(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function ve(){this.buffer()}function be(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=(0,k.d)(this.sliceSerialize(e)).toLowerCase()}function ye(e){this.exit(e)}function De(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function Oe(){this.buffer()}function we(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=(0,k.d)(this.sliceSerialize(e)).toLowerCase()}function Se(e){this.exit(e)}function Te(e,t,n,r){const i=pe(r);let o=i.move("[^");const s=n.enter("footnoteReference"),a=n.enter("reference");return o+=i.move(fe(n,se(e),{...i.current(),before:o,after:"]"})),a(),s(),o+=i.move("]"),o}function ke(e,t,n,r){const i=pe(r);let o=i.move("[^");const s=n.enter("footnoteDefinition"),a=n.enter("label");return o+=i.move(fe(n,se(e),{...i.current(),before:o,after:"]"})),a(),o+=i.move("]:"+(e.children&&e.children.length>0?" ":"")),i.shift(4),o+=i.move(function(e,t){const n=[];let r,i=0,o=0;for(;r=ce.exec(e);)s(e.slice(i,r.index)),n.push(r[0]),i=r.index+r[0].length,o++;return s(e.slice(i)),n.join("");function s(e){n.push(t(e,o,!e))}}(function(e,t,n){const r=t.indexStack,i=e.children||[],o=t.createTracker(n),s=[];let a=-1;for(r.push(-1);++a<i.length;){const n=i[a];r[r.length-1]=a,s.push(o.move(t.handle(n,e,t,{before:"\n",after:"\n",...o.current()}))),"list"!==n.type&&(t.bulletLastUsed=void 0),a<i.length-1&&s.push(o.move(ae(n,i[a+1],e,t)))}return r.pop(),s.join("")}(e,n,i.current()),Ce)),s(),o}function Ce(e,t,n){return 0===t?e:(n?"":" ")+e}function Ie(e,t,n){const r=t.indexStack,i=e.children||[],o=[];let s=-1,a=n.before;r.push(-1);let c=t.createTracker(n);for(;++s<i.length;){const u=i[s];let l;if(r[r.length-1]=s,s+1<i.length){let n=t.handle.handlers[i[s+1].type];n&&n.peek&&(n=n.peek),l=n?n(i[s+1],e,t,{before:"",after:"",...c.current()}).charAt(0):""}else l=n.after;o.length>0&&("\r"===a||"\n"===a)&&"html"===u.type&&(o[o.length-1]=o[o.length-1].replace(/(\r?\n|\r)$/," "),a=" ",c=t.createTracker(n),c.move(o.join(""))),o.push(c.move(t.handle(u,e,t,{...c.current(),before:a,after:l}))),a=o[o.length-1].slice(-1)}return r.pop(),o.join("")}Te.peek=function(){return"["};Pe.peek=function(){return"~"};const xe={canContainEols:["delete"],enter:{strikethrough:function(e){this.enter({type:"delete",children:[]},e)}},exit:{strikethrough:function(e){this.exit(e)}}},Ee={unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"]}],handlers:{delete:Pe}};function Pe(e,t,n,r){const i=pe(r),o=n.enter("strikethrough");let s=i.move("~~");return s+=Ie(e,n,{...i.current(),before:s,after:"~"}),s+=i.move("~~"),o(),s}function Ne(e,t,n){let r=e.value||"",i="`",o=-1;for(;new RegExp("(^|[^`])"+i+"([^`]|$)").test(r);)i+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++o<n.unsafe.length;){const e=n.unsafe[o],t=ue(e);let i;if(e.atBreak)for(;i=t.exec(r);){let e=i.index;10===r.charCodeAt(e)&&13===r.charCodeAt(e-1)&&e--,r=r.slice(0,e)+" "+r.slice(i.index+1)}}return i+r+i}function Re(e){return e.length}function Le(e){const t="string"===typeof e?e.codePointAt(0):0;return 67===t||99===t?99:76===t||108===t?108:82===t||114===t?114:0}Ne.peek=function(){return"`"};const Me={enter:{table:function(e){const t=e._align;this.enter({type:"table",align:t.map((e=>"none"===e?null:e)),children:[]},e),this.setData("inTable",!0)},tableData:je,tableHeader:je,tableRow:function(e){this.enter({type:"tableRow",children:[]},e)}},exit:{codeText:function(e){let t=this.resume();this.getData("inTable")&&(t=t.replace(/\\([\\|])/g,_e));this.stack[this.stack.length-1].value=t,this.exit(e)},table:function(e){this.exit(e),this.setData("inTable")},tableData:Ae,tableHeader:Ae,tableRow:Ae}};function Ae(e){this.exit(e)}function je(e){this.enter({type:"tableCell",children:[]},e)}function _e(e,t){return"|"===t?t:e}function Fe(e){const t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,i=t.stringLength,o=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:"\n",inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[\t :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{table:function(e,t,n,r){return a(function(e,t,n){const r=e.children;let i=-1;const o=[],s=t.enter("table");for(;++i<r.length;)o[i]=c(r[i],t,n);return s(),o}(e,n,r),e.align)},tableRow:function(e,t,n,r){const i=a([c(e,n,r)]);return i.slice(0,i.indexOf("\n"))},tableCell:s,inlineCode:function(e,t,n){let r=Ne(e,0,n);n.stack.includes("tableCell")&&(r=r.replace(/\|/g,"\\$&"));return r}}};function s(e,t,n,r){const i=n.enter("tableCell"),s=n.enter("phrasing"),a=Ie(e,n,{...r,before:o,after:o});return s(),i(),a}function a(e,t){return function(e,t={}){const n=(t.align||[]).concat(),r=t.stringLength||Re,i=[],o=[],s=[],a=[];let c=0,u=-1;for(;++u<e.length;){const n=[],i=[];let d=-1;for(e[u].length>c&&(c=e[u].length);++d<e[u].length;){const o=null===(l=e[u][d])||void 0===l?"":String(l);if(!1!==t.alignDelimiters){const e=r(o);i[d]=e,(void 0===a[d]||e>a[d])&&(a[d]=e)}n.push(o)}o[u]=n,s[u]=i}var l;let d=-1;if("object"===typeof n&&"length"in n)for(;++d<c;)i[d]=Le(n[d]);else{const e=Le(n);for(;++d<c;)i[d]=e}d=-1;const f=[],h=[];for(;++d<c;){const e=i[d];let n="",r="";99===e?(n=":",r=":"):108===e?n=":":114===e&&(r=":");let o=!1===t.alignDelimiters?1:Math.max(1,a[d]-n.length-r.length);const s=n+"-".repeat(o)+r;!1!==t.alignDelimiters&&(o=n.length+o+r.length,o>a[d]&&(a[d]=o),h[d]=o),f[d]=s}o.splice(1,0,f),s.splice(1,0,h),u=-1;const g=[];for(;++u<o.length;){const e=o[u],n=s[u];d=-1;const r=[];for(;++d<c;){const o=e[d]||"";let s="",u="";if(!1!==t.alignDelimiters){const e=a[d]-(n[d]||0),t=i[d];114===t?s=" ".repeat(e):99===t?e%2?(s=" ".repeat(e/2+.5),u=" ".repeat(e/2-.5)):(s=" ".repeat(e/2),u=s):u=" ".repeat(e)}!1===t.delimiterStart||d||r.push("|"),!1===t.padding||!1===t.alignDelimiters&&""===o||!1===t.delimiterStart&&!d||r.push(" "),!1!==t.alignDelimiters&&r.push(s),r.push(o),!1!==t.alignDelimiters&&r.push(u),!1!==t.padding&&r.push(" "),!1===t.delimiterEnd&&d===c-1||r.push("|")}g.push(!1===t.delimiterEnd?r.join("").replace(/ +$/,""):r.join(""))}return g.join("\n")}(e,{align:t,alignDelimiters:r,padding:n,stringLength:i})}function c(e,t,n){const r=e.children;let i=-1;const o=[],a=t.enter("tableRow");for(;++i<r.length;)o[i]=s(r[i],0,t,n);return a(),o}}function He(e,t,n,r){const i=function(e){const t=e.options.listItemIndent||"tab";if(1===t||"1"===t)return"one";if("tab"!==t&&"one"!==t&&"mixed"!==t)throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}(n);let o=n.bulletCurrent||function(e){const t=e.options.bullet||"*";if("*"!==t&&"+"!==t&&"-"!==t)throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}(n);t&&"list"===t.type&&t.ordered&&(o=("number"===typeof t.start&&t.start>-1?t.start:1)+(!1===n.options.incrementListMarker?0:t.children.indexOf(e))+o);let s=o.length+1;("tab"===i||"mixed"===i&&(t&&"list"===t.type&&t.spread||e.spread))&&(s=4*Math.ceil(s/4));const a=n.createTracker(r);a.move(o+" ".repeat(s-o.length)),a.shift(s);const c=n.enter("listItem"),u=n.indentLines(n.containerFlow(e,a.current()),(function(e,t,n){if(t)return(n?"":" ".repeat(s))+e;return(n?o:o+" ".repeat(s-o.length))+e}));return c(),u}const ze={exit:{taskListCheckValueChecked:Be,taskListCheckValueUnchecked:Be,paragraph:function(e){const t=this.stack[this.stack.length-2];if(t&&"listItem"===t.type&&"boolean"===typeof t.checked){const e=this.stack[this.stack.length-1],n=e.children[0];if(n&&"text"===n.type){const r=t.children;let i,o=-1;for(;++o<r.length;){const e=r[o];if("paragraph"===e.type){i=e;break}}i===e&&(n.value=n.value.slice(1),0===n.value.length?e.children.shift():e.position&&n.position&&"number"===typeof n.position.start.offset&&(n.position.start.column++,n.position.start.offset++,e.position.start=Object.assign({},n.position.start)))}}this.exit(e)}}},Ue={unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:function(e,t,n,r){const i=e.children[0],o="boolean"===typeof e.checked&&i&&"paragraph"===i.type,s="["+(e.checked?"x":" ")+"] ",a=pe(r);o&&a.move(s);let c=He(e,t,n,{...r,...a.current()});o&&(c=c.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,(function(e){return e+s})));return c}}};function Be(e){this.stack[this.stack.length-2].checked="taskListCheckValueChecked"===e.type}function $e(e={}){const t=this.data();function n(e,n){(t[e]?t[e]:t[e]=[]).push(n)}n("micromarkExtensions",function(e){return(0,r.W)([g,{document:{91:{tokenize:P,continuation:{tokenize:N},exit:R}},text:{91:{tokenize:E},93:{add:"after",tokenize:I,resolveTo:x}}},j(e),_,z])}(e)),n("fromMarkdownExtensions",[Q,{enter:{gfmFootnoteDefinition:me,gfmFootnoteDefinitionLabelString:ve,gfmFootnoteCall:De,gfmFootnoteCallString:Oe},exit:{gfmFootnoteDefinition:ye,gfmFootnoteDefinitionLabelString:be,gfmFootnoteCall:Se,gfmFootnoteCallString:we}},xe,Me,ze]),n("toMarkdownExtensions",function(e){return{extensions:[ee,{unsafe:[{character:"[",inConstruct:["phrasing","label","reference"]}],handlers:{footnoteDefinition:ke,footnoteReference:Te}},Ee,Fe(e),Ue]}}(e))}}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3654],{44162:function(n,e,t){t.d(e,{HC:function(){return b},Kf:function(){return f},Nk:function(){return s},PY:function(){return p},gE:function(){return g},jv:function(){return m},nz:function(){return h},oh:function(){return l},qn:function(){return d},t1:function(){return y},y9:function(){return A}});var r=t(38626),o=t(23831),i=t(86422),c=t(73942),a=t(49125),u=t(90880),l=68;function d(n,e){var t,r,c=((null===e||void 0===e||null===(t=e.theme)||void 0===t?void 0:t.borders)||o.Z.borders).light,a=((null===e||void 0===e||null===(r=e.theme)||void 0===r?void 0:r.monotone)||o.Z.monotone).grey500,u=e||{},l=u.blockColor,d=u.isSelected,f=u.theme;return d?c=(f||o.Z).content.active:i.tf.TRANSFORMER===n||l===i.Lq.PURPLE?(c=(f||o.Z).accent.purple,a=(f||o.Z).accent.purpleLight):i.tf.DATA_EXPORTER===n||l===i.Lq.YELLOW?(c=(f||o.Z).accent.yellow,a=(f||o.Z).accent.yellowLight):i.tf.DATA_LOADER===n||l===i.Lq.BLUE?(c=(f||o.Z).accent.blue,a=(f||o.Z).accent.blueLight):i.tf.MARKDOWN===n?(c=(f||o.Z).accent.sky,a=(f||o.Z).accent.skyLight):i.tf.SENSOR===n||l===i.Lq.PINK?(c=(f||o.Z).accent.pink,a=(f||o.Z).accent.pinkLight):i.tf.DBT===n?(c=(f||o.Z).accent.dbt,a=(f||o.Z).accent.dbtLight):i.tf.EXTENSION===n||l===i.Lq.TEAL?(c=((null===f||void 0===f?void 0:f.accent)||o.Z.accent).teal,a=((null===f||void 0===f?void 0:f.accent)||o.Z.accent).tealLight):i.tf.CALLBACK===n?(c=((null===f||void 0===f?void 0:f.accent)||o.Z.accent).rose,a=((null===f||void 0===f?void 0:f.accent)||o.Z.accent).roseLight):(i.tf.CONDITIONAL===n||i.tf.SCRATCHPAD===n||l===i.Lq.GREY||i.tf.CUSTOM===n&&!l)&&(c=(f||o.Z).content.default,a=(f||o.Z).accent.contentDefaultTransparent),{accent:c,accentLight:a}}var f=(0,r.css)([""," "," "," "," "," "," ",""],(0,u.eR)(),(function(n){return!n.selected&&!n.hasError&&"\n border-color: ".concat(d(n.blockType,n).accentLight,";\n ")}),(function(n){return n.selected&&!n.hasError&&"\n border-color: ".concat(d(n.blockType,n).accent,";\n ")}),(function(n){return!n.selected&&n.hasError&&"\n border-color: ".concat((n.theme.accent||o.Z.accent).negativeTransparent,";\n ")}),(function(n){return n.selected&&n.hasError&&"\n border-color: ".concat((n.theme.borders||o.Z.borders).danger,";\n ")}),(function(n){return n.dynamicBlock&&"\n border-style: dashed !important;\n "}),(function(n){return n.dynamicChildBlock&&"\n border-style: dotted !important;\n "})),s=r.default.div.withConfig({displayName:"indexstyle__ContainerStyle",componentId:"sc-s5rj34-0"})(["border-radius:","px;position:relative;"],c.n_),p=r.default.div.withConfig({displayName:"indexstyle__HiddenBlockContainerStyle",componentId:"sc-s5rj34-1"})([""," border-radius:","px;border-style:",";border-width:","px;",""],f,c.n_,c.M8,c.mP,(function(n){return"\n background-color: ".concat((n.theme||o.Z).background.content,";\n\n &:hover {\n border-color: ").concat(d(n.blockType,n).accent,";\n }\n ")})),h=r.default.div.withConfig({displayName:"indexstyle__BlockHeaderStyle",componentId:"sc-s5rj34-2"})([""," border-top-left-radius:","px;border-top-right-radius:","px;border-top-style:",";border-top-width:","px;border-left-style:",";border-left-width:","px;border-right-style:",";border-right-width:","px;padding:","px;position:sticky;top:-5px;"," "," ",""],f,c.n_,c.n_,c.M8,c.mP,c.M8,c.mP,c.M8,c.mP,a.iI,(function(n){return"\n background-color: ".concat((n.theme||o.Z).background.content,";\n ")}),(function(n){return n.bottomBorder&&"\n border-bottom: ".concat(c.YF,"px ").concat(c.M8," ").concat((n.theme||o.Z).borders.medium2,";\n ")}),(function(n){return n.zIndex&&"\n z-index: ".concat(6+(n.zIndex||0),";\n ")})),m=r.default.div.withConfig({displayName:"indexstyle__CodeContainerStyle",componentId:"sc-s5rj34-3"})([""," border-left-style:",";border-left-width:","px;border-right-style:",";border-right-width:","px;padding-bottom:","px;padding-top:","px;position:relative;"," "," "," .line-numbers{opacity:0;}&.selected{.line-numbers{opacity:1 !important;}}"],f,c.M8,c.mP,c.M8,c.mP,a.iI,a.iI,(function(n){return"\n background-color: ".concat((n.theme.background||o.Z.background).codeTextarea,";\n ")}),(function(n){return n.lightBackground&&"\n background-color: ".concat((n.theme||o.Z).background.content,";\n ")}),(function(n){return!n.hasOutput&&"\n border-bottom-left-radius: ".concat(c.n_,"px;\n border-bottom-right-radius: ").concat(c.n_,"px;\n border-bottom-style: ").concat(c.M8,";\n border-bottom-width: ").concat(c.mP,"px;\n ")})),g=r.default.div.withConfig({displayName:"indexstyle__BlockDivider",componentId:"sc-s5rj34-4"})(["align-items:center;display:flex;height:","px;justify-content:center;position:relative;z-index:8;bottom:","px;&:hover{"," .block-divider-inner{","}}"],2*a.iI,.5*a.iI,(function(n){return n.additionalZIndex>0&&"\n z-index: ".concat(8+n.additionalZIndex,";\n ")}),(function(n){return"\n background-color: ".concat((n.theme.text||o.Z.text).fileBrowser,";\n ")})),y=r.default.div.withConfig({displayName:"indexstyle__BlockDividerInner",componentId:"sc-s5rj34-5"})(["height 1px;width:100%;position:absolute;z-index:-1;top:","px;"],1.5*a.iI),A=r.default.div.withConfig({displayName:"indexstyle__CodeHelperStyle",componentId:"sc-s5rj34-6"})(["margin-bottom:","px;padding-bottom:","px;",""],1*a.iI,1*a.iI,(function(n){return"\n border-bottom: 1px solid ".concat((n.theme.borders||o.Z.borders).medium,";\n padding-left: ").concat(n.normalPadding?a.iI:l,"px;\n ")})),b=r.default.div.withConfig({displayName:"indexstyle__TimeTrackerStyle",componentId:"sc-s5rj34-7"})(["bottom:","px;left:","px;position:absolute;"],1*a.iI,l)},86422:function(n,e,t){t.d(e,{$W:function(){return g},DA:function(){return m},HX:function(){return b},J8:function(){return A},L8:function(){return a},LE:function(){return s},Lq:function(){return p},M5:function(){return h},Qj:function(){return T},Ut:function(){return O},V4:function(){return E},VZ:function(){return y},dO:function(){return f},f2:function(){return R},iZ:function(){return N},t6:function(){return u},tf:function(){return d}});var r,o,i,c,a,u,l=t(82394);!function(n){n.CONDITION="condition",n.DBT_SNAPSHOT="snapshot",n.DYNAMIC="dynamic",n.DYNAMIC_CHILD="dynamic_child",n.REDUCE_OUTPUT="reduce_output",n.REPLICA="replica"}(a||(a={})),function(n){n.MARKDOWN="markdown",n.PYTHON="python",n.R="r",n.SQL="sql",n.YAML="yaml"}(u||(u={}));var d,f=(r={},(0,l.Z)(r,u.MARKDOWN,"MD"),(0,l.Z)(r,u.PYTHON,"PY"),(0,l.Z)(r,u.R,"R"),(0,l.Z)(r,u.SQL,"SQL"),(0,l.Z)(r,u.YAML,"YAML"),r),s=(o={},(0,l.Z)(o,u.MARKDOWN,"Markdown"),(0,l.Z)(o,u.PYTHON,"Python"),(0,l.Z)(o,u.R,"R"),(0,l.Z)(o,u.SQL,"SQL"),(0,l.Z)(o,u.YAML,"YAML"),o);!function(n){n.CALLBACK="callback",n.CHART="chart",n.CONDITIONAL="conditional",n.CUSTOM="custom",n.DATA_EXPORTER="data_exporter",n.DATA_LOADER="data_loader",n.DBT="dbt",n.EXTENSION="extension",n.SCRATCHPAD="scratchpad",n.SENSOR="sensor",n.MARKDOWN="markdown",n.TRANSFORMER="transformer"}(d||(d={}));var p,h=[d.CALLBACK,d.CONDITIONAL,d.EXTENSION];!function(n){n.BLUE="blue",n.GREY="grey",n.PINK="pink",n.PURPLE="purple",n.TEAL="teal",n.YELLOW="yellow"}(p||(p={}));var m,g=[d.CHART,d.CUSTOM,d.DATA_EXPORTER,d.DATA_LOADER,d.SCRATCHPAD,d.SENSOR,d.MARKDOWN,d.TRANSFORMER],y=[d.DATA_EXPORTER,d.DATA_LOADER],A=[d.DATA_EXPORTER,d.DATA_LOADER,d.TRANSFORMER],b=[d.DATA_EXPORTER,d.DATA_LOADER,d.DBT,d.TRANSFORMER],T=[d.CHART,d.SCRATCHPAD,d.SENSOR,d.MARKDOWN],N=[d.CALLBACK,d.CHART,d.EXTENSION,d.SCRATCHPAD,d.MARKDOWN];!function(n){n.EXECUTED="executed",n.FAILED="failed",n.NOT_EXECUTED="not_executed",n.UPDATED="updated"}(m||(m={}));var R=[d.CUSTOM,d.DATA_EXPORTER,d.DATA_LOADER,d.TRANSFORMER],E=(i={},(0,l.Z)(i,d.CALLBACK,"Callback"),(0,l.Z)(i,d.CHART,"Chart"),(0,l.Z)(i,d.CONDITIONAL,"Conditional"),(0,l.Z)(i,d.CUSTOM,"Custom"),(0,l.Z)(i,d.DATA_EXPORTER,"Data exporter"),(0,l.Z)(i,d.DATA_LOADER,"Data loader"),(0,l.Z)(i,d.DBT,"DBT"),(0,l.Z)(i,d.EXTENSION,"Extension"),(0,l.Z)(i,d.MARKDOWN,"Markdown"),(0,l.Z)(i,d.SCRATCHPAD,"Scratchpad"),(0,l.Z)(i,d.SENSOR,"Sensor"),(0,l.Z)(i,d.TRANSFORMER,"Transformer"),i),O=[d.DATA_LOADER,d.TRANSFORMER,d.DATA_EXPORTER,d.SENSOR];c={},(0,l.Z)(c,d.DATA_EXPORTER,"DE"),(0,l.Z)(c,d.DATA_LOADER,"DL"),(0,l.Z)(c,d.SCRATCHPAD,"SP"),(0,l.Z)(c,d.SENSOR,"SR"),(0,l.Z)(c,d.MARKDOWN,"MD"),(0,l.Z)(c,d.TRANSFORMER,"TF")},98781:function(n,e,t){t.d(e,{$1:function(){return d},G7:function(){return s},LM:function(){return p},Mj:function(){return h},QK:function(){return l},a_:function(){return m},qL:function(){return c},r0:function(){return f}});var r,o,i,c,a=t(82394),u=t(10503);!function(n){n.INTEGRATION="integration",n.PYTHON="python",n.PYSPARK="pyspark",n.STREAMING="streaming"}(c||(c={}));var l,d,f,s=(r={},(0,a.Z)(r,c.INTEGRATION,"Integration"),(0,a.Z)(r,c.PYTHON,"Standard"),(0,a.Z)(r,c.PYSPARK,"PySpark"),(0,a.Z)(r,c.STREAMING,"Streaming"),r),p="all",h=(c.PYTHON,c.INTEGRATION,c.STREAMING,o={},(0,a.Z)(o,p,u.ie),(0,a.Z)(o,c.INTEGRATION,u.YC),(0,a.Z)(o,c.PYTHON,u.El),(0,a.Z)(o,c.STREAMING,u.dB),o);!function(n){n.ACTIVE="active",n.INACTIVE="inactive",n.NO_SCHEDULES="no_schedules",n.RETRY="retry"}(l||(l={})),function(n){n.GROUP="group_by",n.STATUS="status[]",n.TAG="tag[]",n.TYPE="type[]"}(d||(d={})),function(n){n.STATUS="status",n.TAG="tag",n.TYPE="type"}(f||(f={}));var m=(i={},(0,a.Z)(i,c.PYTHON,"python3"),(0,a.Z)(i,c.PYSPARK,"pysparkkernel"),i)},87372:function(n,e,t){var r,o,i,c,a,u,l,d,f=t(82394),s=t(26304),p=t(26653),h=t(38626),m=t(33591),g=t(23831),y=t(2005),A=t(31012),b=t(19711),T=t(49125),N=t(86673),R=t(28598),E=["children","condensed","inline","level","marketing","spacingBelow"];function O(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 S(n){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?O(Object(t),!0).forEach((function(e){(0,f.Z)(n,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):O(Object(t)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}))}return n}var v=(0,h.css)([""," margin:0;"," "," "," "," "," "," "," "," "," "," "," "," ",""],b.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 "})),w=h.default.div.withConfig({displayName:"Headline__HeadlineContainerStyle",componentId:"sc-12jzt2e-0"})(["",""],(function(n){return"\n color: ".concat((n.theme.content||g.Z.content).active,";\n ")})),C=h.default.h1.withConfig({displayName:"Headline__H1HeroStyle",componentId:"sc-12jzt2e-1"})([""," font-size:42px;line-height:56px;"," "," ",""],v,m.media.md(r||(r=(0,p.Z)(["\n ","\n "])),A.aQ),m.media.lg(o||(o=(0,p.Z)(["\n ","\n "])),A.aQ),m.media.xl(i||(i=(0,p.Z)(["\n ","\n "])),A.aQ)),Z=h.default.h1.withConfig({displayName:"Headline__H1Style",componentId:"sc-12jzt2e-2"})([""," ",""],v,A.MJ),x=h.default.h1.withConfig({displayName:"Headline__H1MarketingStyle",componentId:"sc-12jzt2e-3"})([""," "," "," "," "," ",""],v,m.media.xs(c||(c=(0,p.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*T.iI,7*T.iI),m.media.sm(a||(a=(0,p.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*T.iI,7*T.iI),m.media.md(u||(u=(0,p.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*T.iI,7*T.iI),m.media.lg(l||(l=(0,p.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*T.iI,7*T.iI),m.media.xl(d||(d=(0,p.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*T.iI,7*T.iI)),D=h.default.h2.withConfig({displayName:"Headline__H2Style",componentId:"sc-12jzt2e-4"})([""," ",""],v,A.BL),I=h.default.h3.withConfig({displayName:"Headline__H3Style",componentId:"sc-12jzt2e-5"})([""," font-size:24px;line-height:32px;"],v),_=h.default.h4.withConfig({displayName:"Headline__H4Style",componentId:"sc-12jzt2e-6"})([""," font-size:20px;line-height:28px;"],v),L=h.default.h5.withConfig({displayName:"Headline__H5Style",componentId:"sc-12jzt2e-7"})([""," font-size:18px;line-height:26px;"],v),P=h.default.span.withConfig({displayName:"Headline__SpanStyle",componentId:"sc-12jzt2e-8"})([""," "," "," "," ",""],v,(function(n){return 1===n.level&&"\n ".concat(A.MJ,"\n ")}),(function(n){return 2===n.level&&"\n ".concat(A.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 "})),k=function(n){var e,t=n.children,r=n.condensed,o=n.inline,i=n.level,c=n.marketing,a=n.spacingBelow,u=(0,s.Z)(n,E);o?e=P:0===Number(i)?e=C:1===Number(i)?e=c?x:Z:2===Number(i)?e=D:3===Number(i)?e=I:4===Number(i)?e=_:5===Number(i)&&(e=L);var l=(0,R.jsxs)(e,S(S({},u),{},{level:i,children:[a&&(0,R.jsx)(N.Z,{mb:r?2:3,children:t}),!a&&t]}));return o?l:(0,R.jsx)(w,{children:l})};k.defaultProps={level:3,weightStyle:6},e.Z=k},90211:function(n,e,t){t.d(e,{RA:function(){return d},kC:function(){return f},vg:function(){return A},kE:function(){return E},Mp:function(){return s},Pb:function(){return u},HW:function(){return T},wX:function(){return p},x6:function(){return h},_6:function(){return m},zf:function(){return b},Y6:function(){return R},wE:function(){return O},J3:function(){return g},We:function(){return l},QV:function(){return N},C5:function(){return y}});var r=t(75582),o=t(17717),i=["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"],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"]),a=t(24224);function u(n){if(!n)return!1;try{JSON.parse(n)}catch(e){return!1}return!0}function l(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"_";return n.split(" ").join(e)}function d(n){return n.split(" ").join("_")}function f(n){return n?n.charAt(0).toUpperCase()+n.slice(1):""}function s(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;return String((new Date).getTime()*n)}function p(n){return n.charAt(0).toLowerCase()+n.slice(1)}function h(n){if(null===n||"undefined"===typeof n)return"";var e=n.toString().split("."),t=(0,r.Z)(e,2),o=t[0],i=t[1],c=o.toString().replace(/\B(?=(\d{3})+(?!\d))/g,",");return i?"".concat(c,".").concat(i):c}function m(n,e){var t,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=e,i=void 0!==o&&null!==o;if(i||(o=2),1===o)t=n;else{var c=n.length,a=n[c-1];t="y"===a&&"day"!==n?"".concat(n.slice(0,c-1),"ies"):"".concat(n,"s"===a?"es":"s")}if(i){var u=r?h(o):o;return"".concat(u," ").concat(t)}return t}function g(n){return null===n||void 0===n?void 0:n.replace(/_/g," ")}function y(n){var e=n.length;return"ies"===n.slice(e-3,e)?"".concat(n.slice(0,e-3),"y"):"es"===n.slice(e-2,e)&&"ces"!==n.slice(e-3,e)?n.slice(0,e-2):n.slice(0,e-1)}function A(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return f(g(n.toLowerCase()))}function b(n){var e,t=[["second",60],["minute",60],["hour",24],["day",7],["week",4],["month",12],["year",null]];return t.forEach((function(o,i){if(!e){var c=(0,r.Z)(o,2),a=c[0],u=c[1],l=t.slice(0,i).reduce((function(n,e){return n*Number(e[1])}),1);n<Number(u)*l&&(e=m(a,Math.round(n/l)))}})),e}function T(n){return!isNaN(n)}function N(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2,t=Math.pow(10,e);return Math.round((n||0)*t)/t}function R(){return"".concat((0,a.mp)(i)," ").concat((0,a.mp)(c))}function E(n){return null===n||void 0===n?void 0:n.toLowerCase().replace(/\W+/g,"_")}function O(n){var e,t=n.split(o.sep),r=t[t.length-1].split(".");return e=1===r.length?r[0]:r.slice(0,-1).join("."),t.slice(0,t.length-1).concat(e).join(o.sep)}}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3881],{1210:function(e,n,t){t.d(n,{Z:function(){return _}});var r=t(82394),o=t(21831),i=t(82684),l=t(47999),u=t(49894),a=t(93461),c=t(57384),s=t(41424),d=t(72454),f=t(28598);function p(e,n){var t=e.children;return(0,f.jsx)(d.HS,{ref:n,children:t})}var m=i.forwardRef(p),h=t(32063),v=t(85019),b=t(82531),w=t(66166),y=t(3055),g=t(49125),j=t(91427),x=t(24141);function O(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 Z(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?O(Object(t),!0).forEach((function(n){(0,r.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):O(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var _=function(e){var n,t=e.addProjectBreadcrumbToCustomBreadcrumbs,r=e.after,p=e.afterHidden,O=e.afterWidth,_=e.afterWidthOverride,C=e.before,I=e.beforeWidth,S=e.breadcrumbs,P=e.children,k=e.errors,N=e.headerMenuItems,H=e.headerOffset,E=e.mainContainerHeader,M=e.navigationItems,z=e.setErrors,D=e.subheaderChildren,A=e.title,T=e.uuid,B=(0,x.i)().width,F="dashboard_after_width_".concat(T),q="dashboard_before_width_".concat(T),L=(0,i.useRef)(null),R=(0,i.useState)(_?O:(0,j.U2)(F,O)),U=R[0],W=R[1],G=(0,i.useState)(!1),Q=G[0],J=G[1],X=(0,i.useState)(C?Math.max((0,j.U2)(q,I),13*g.iI):null),Y=X[0],K=X[1],V=(0,i.useState)(!1),$=V[0],ee=V[1],ne=(0,i.useState)(null)[1],te=b.ZP.projects.list({},{revalidateOnFocus:!1}).data,re=null===te||void 0===te?void 0:te.projects,oe={label:function(){var e;return null===re||void 0===re||null===(e=re[0])||void 0===e?void 0:e.name},linkProps:{href:"/"}},ie=[];S?(t&&ie.push(oe),ie.push.apply(ie,(0,o.Z)(S))):(null===re||void 0===re?void 0:re.length)>=1&&ie.push.apply(ie,[oe,{bold:!0,label:function(){return A}}]),(0,i.useEffect)((function(){null===L||void 0===L||!L.current||Q||$||null===ne||void 0===ne||ne(L.current.getBoundingClientRect().width)}),[Q,U,$,Y,L,ne,B]),(0,i.useEffect)((function(){Q||(0,j.t8)(F,U)}),[p,Q,U,F]),(0,i.useEffect)((function(){$||(0,j.t8)(q,Y)}),[$,Y,q]);var le=(0,w.Z)(O);return(0,i.useEffect)((function(){_&&le!==O&&W(O)}),[_,O,le]),(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(c.Z,{title:A}),(0,f.jsx)(s.Z,{breadcrumbs:ie,menuItems:N,project:null===re||void 0===re?void 0:re[0],version:null===re||void 0===re||null===(n=re[0])||void 0===n?void 0:n.version}),(0,f.jsxs)(d.Nk,{children:[0!==(null===M||void 0===M?void 0:M.length)&&(0,f.jsx)(d.lm,{showMore:!0,children:(0,f.jsx)(v.Z,{navigationItems:M,showMore:!0})}),(0,f.jsx)(a.Z,{flex:1,flexDirection:"column",children:(0,f.jsxs)(h.Z,{after:r,afterHeightOffset:y.Mz,afterHidden:p,afterMousedownActive:Q,afterWidth:U,before:C,beforeHeightOffset:y.Mz,beforeMousedownActive:$,beforeWidth:d.k1+(C?Y:0),headerOffset:H,hideAfterCompletely:!0,leftOffset:C?d.k1:null,mainContainerHeader:E,mainContainerRef:L,setAfterMousedownActive:J,setAfterWidth:W,setBeforeMousedownActive:ee,setBeforeWidth:K,children:[D&&(0,f.jsx)(m,{children:D}),P]})})]}),k&&(0,f.jsx)(l.Z,{disableClickOutside:!0,isOpen:!0,onClickOutside:function(){return null===z||void 0===z?void 0:z(null)},children:(0,f.jsx)(u.Z,Z(Z({},k),{},{onClose:function(){return null===z||void 0===z?void 0:z(null)}}))})]})}},63153:function(e,n,t){t.d(n,{Z3:function(){return r},ms:function(){return i},s7:function(){return o}});var r=[{autoComplete:"username",label:"Username",required:!0,uuid:"username"},{autoComplete:"email",disabled:!1,label:"Email",required:!0,type:"email",uuid:"email"}],o="password_current",i=[{autoComplete:"current-password",label:"Current password",type:"password",uuid:o},{autoComplete:"new-password",label:"New password",type:"password",uuid:"password"},{autoComplete:"new-password",label:"Confirm new password",type:"password",uuid:"password_confirmation"}]},20582:function(e,n,t){var r=t(82394),o=t(21831),i=t(75582),l=t(21764),u=t(82684),a=t(83455),c=t(60328),s=t(79891),d=t(67971),f=t(87372),p=t(55378),m=t(86673),h=t(19711),v=t(82944),b=t(82531),w=t(66166),y=t(46336),g=t(63153),j=t(24224),x=t(9736),O=t(7715),Z=t(96510),_=t(28598);function C(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 I(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?C(Object(t),!0).forEach((function(n){(0,r.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):C(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}n.Z=function(e){var n=e.disabledFields,t=e.hideFields,C=e.newUser,S=e.onDeleteSuccess,P=e.onSaveSuccess,k=e.showDelete,N=e.title,H=e.user,E=(0,u.useState)(!0),M=E[0],z=E[1],D=(0,u.useState)({}),A=D[0],T=D[1],B=(0,u.useState)(null),F=B[0],q=B[1],L=((0,x.PR)()||{}).owner,R=b.ZP.statuses.list().data,U=(0,u.useMemo)((function(){var e;return(null===R||void 0===R||null===(e=R.statuses)||void 0===e?void 0:e[0])||{}}),[R]),W=U.project_type,G=U.project_uuid,Q="global",J=null,X=null;W===y.k.SUB?(Q="project",J=G):W===y.k.MAIN&&(X="The roles selected here will apply to this user globally.\n If a user has both a global role and a workspace role,\n then the role with higher access will take precedence.");var Y=b.ZP.roles.list({entity:Q,entity_ids:J?[J]:[],limit_roles:!!C},{revalidateOnFocus:!1}),K=Y.data,V=(Y.mutate,(0,u.useMemo)((function(){return(null===K||void 0===K?void 0:K.roles)||[]}),[null===K||void 0===K?void 0:K.roles])),$=(0,a.Db)(C?b.ZP.users.useCreate():b.ZP.users.useUpdate(null===H||void 0===H?void 0:H.id),{onSuccess:function(e){return(0,Z.wD)(e,{callback:function(e){var n=e.user,t=g.Z3.concat(g.ms).map((function(e){return e.uuid}));t.push("id");var r=(0,O.GL)(n,t);q(r),l.Am.success(C?"New user created successfully.":"User profile successfully updated.",{position:l.Am.POSITION.BOTTOM_RIGHT,toastId:"user-update-success-".concat(n.id)}),null===P||void 0===P||P(r)},onErrorCallback:function(e){var n=e.error,t=n.errors,r=n.exception,o=n.message,i=n.type;l.Am.error((null===t||void 0===t?void 0:t.error)||r||o,{position:l.Am.POSITION.BOTTOM_RIGHT,toastId:i})}})}}),ee=(0,i.Z)($,2),ne=ee[0],te=ee[1].isLoading,re=(0,a.Db)(b.ZP.users.useDelete(null===H||void 0===H?void 0:H.id),{onSuccess:function(e){return(0,Z.wD)(e,{callback:function(){null===S||void 0===S||S()},onErrorCallback:function(e){var n=e.error,t=n.errors,r=n.message;alert(r),console.log(t)}})}}),oe=(0,i.Z)(re,2),ie=oe[0],le=oe[1].isLoading,ue=t?(0,o.Z)(t):[];C&&ue.push(g.s7);var ae=!ue||!ue.includes(g.s7),ce=(0,w.Z)(H);(0,u.useEffect)((function(){if(H&&(!F||(null===ce||void 0===ce?void 0:ce.id)!==(null===H||void 0===H?void 0:H.id))){var e=g.Z3.concat(g.ms).map((function(e){return e.uuid}));q((0,O.GL)(H,e))}null!==F&&void 0!==F&&F.password||null!==F&&void 0!==F&&F.password_confirmation?(null===F||void 0===F?void 0:F.password)!==(null===F||void 0===F?void 0:F.password_confirmation)?T({password_confirmation:"Password confirmation does not match."}):!ae||null!==F&&void 0!==F&&F.password_current?T(null):T({password_current:"This field is required."}):null!==F&&void 0!==F&&F.password_current&&ae?null!==F&&void 0!==F&&F.password&&null!==F&&void 0!==F&&F.password_confirmation?T(null):T({password:"This field is required.",password_confirmation:"This field is required."}):null!==F&&void 0!==F&&F.password_current||null!==F&&void 0!==F&&F.password||null!==F&&void 0!==F&&F.password_confirmation||T(null)}),[F,ae,H,ce]);var se=(0,u.useState)(!1),de=se[0],fe=se[1],pe=(0,u.useMemo)((function(){return(de?null===F||void 0===F?void 0:F.roles_new:null===H||void 0===H?void 0:H.roles_new)||[]}),[F,de,H]),me=(0,u.useMemo)((function(){var e=(null===V||void 0===V?void 0:V.map((function(e){return e.id})))||[];return null===pe||void 0===pe?void 0:pe.filter((function(n){var t=n.id;return e.includes(t)}))}),[pe,V]);return(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(f.Z,{children:N||"Edit profile"}),(0,_.jsxs)("form",{children:[g.Z3.filter((function(e){var n=e.uuid;return!ue||!ue.includes(n)})).map((function(e){var n=e.autoComplete,t=e.disabled,o=e.label,i=e.required,l=e.type,u=e.uuid;return(0,_.jsx)(m.Z,{mt:2,children:(0,_.jsx)(v.Z,{autoComplete:n,disabled:t&&!C,label:o,onChange:function(e){z(!1),q((function(n){return I(I({},n),{},(0,r.Z)({},u,e.target.value))}))},primary:!0,required:i,setContentOnMount:!0,type:l,value:(null===F||void 0===F?void 0:F[u])||""})},u)})),!(null!==H&&void 0!==H&&H.owner)&&!(null!==ue&&void 0!==ue&&ue.includes("roles"))&&(0,_.jsxs)(m.Z,{mt:2,children:[X&&(0,_.jsx)(m.Z,{mb:1,children:(0,_.jsx)(h.ZP,{children:X})}),(0,_.jsx)(p.Z,{disabled:null===n||void 0===n?void 0:n.includes("roles"),label:"Roles",onChange:function(e){var n=(0,j.sE)(V,(function(n){return n.id==e.target.value}));n&&(z(!1),fe(!0),q((function(e){var t={};return(0,j.sE)(pe,(function(e){return e.id==(null===n||void 0===n?void 0:n.id)}))||(t={roles_new:[].concat((0,o.Z)(pe),[n])}),I(I({},e),t)})))},primary:!0,setContentOnMount:!0,children:V.map((function(e){var n=e.id,t=e.name;return(0,_.jsx)("option",{value:n,children:t},t)}))}),(0,_.jsx)(m.Z,{mb:1}),(0,_.jsx)(d.Z,{alignItems:"center",flexWrap:"wrap",children:null===me||void 0===me?void 0:me.map((function(e){var t=e.id,r=e.name;return(0,_.jsx)(m.Z,{mb:1,mr:1,children:(0,_.jsx)(s.Z,{disabled:null===n||void 0===n?void 0:n.includes("roles"),label:r,onClick:function(){z(!1),fe(!0),q((function(e){return I(I({},e),{},{roles_new:(0,j.Od)(pe,(function(e){return e.id===t}))})}))},primary:!0})},"user_roles/".concat(r))}))})]}),(0,_.jsxs)(m.Z,{mt:5,children:[(0,_.jsx)(f.Z,{children:C?"Password":"Change password"}),g.ms.filter((function(e){var n=e.uuid;return!ue||!ue.includes(n)})).map((function(e){var n=e.autoComplete,t=e.disabled,o=e.label,i=e.required,l=e.type,u=e.uuid;return(0,_.jsx)(m.Z,{mt:2,children:(0,_.jsx)(v.Z,{autoComplete:n,disabled:t,label:o,meta:{error:null===A||void 0===A?void 0:A[u],touched:!(null===A||void 0===A||!A[u])},onChange:function(e){z(!1),q((function(n){return I(I({},n),{},(0,r.Z)({},u,e.target.value))}))},primary:!0,required:i,setContentOnMount:!0,type:l,value:(null===F||void 0===F?void 0:F[u])||""})},u)}))]}),(0,_.jsx)(m.Z,{mt:5,children:(0,_.jsxs)(d.Z,{children:[(0,_.jsx)(c.Z,{disabled:M||A&&!(0,O.Qr)(A),loading:te,onClick:function(){var e,n=I({},F);"roles_new"in n&&(n.roles_new=null===(e=F.roles_new)||void 0===e?void 0:e.map((function(e){return e.id})));ne({user:n})},primary:!0,children:C?"Create new user":"Update user profile"}),k&&L&&(0,_.jsx)(m.Z,{ml:1,children:(0,_.jsx)(c.Z,{danger:!0,loading:le,onClick:function(){window.confirm("Are you sure you want to delete ".concat(F.username||F.email,"?"))&&ie()},children:"Delete user"})})]})})]})]})}},46336:function(e,n,t){var r;t.d(n,{k:function(){return r}}),function(e){e.MAIN="main",e.STANDALONE="standalone",e.SUB="sub"}(r||(r={}))},79891:function(e,n,t){var r=t(38626),o=t(60328),i=t(67971),l=t(86673),u=t(19711),a=t(23831),c=t(10503),s=t(49125),d=t(31012),f=t(28598),p=r.default.div.withConfig({displayName:"Chip__ChipStyle",componentId:"sc-1ok73g-0"})(["display:inline-block;"," "," "," "," ",""],(function(e){return!e.primary&&"\n background-color: ".concat((e.theme.background||a.Z.background).tag,";\n ")}),(function(e){return e.primary&&"\n background-color: ".concat((e.theme.chart||a.Z.chart).primary,";\n ")}),(function(e){return!e.small&&"\n border-radius: ".concat((s.iI+d.Al)/2,"px;\n height: ").concat(1.5*s.iI+d.Al,"px;\n padding: ").concat(s.iI/1.5,"px ").concat(1.25*s.iI,"px;\n ")}),(function(e){return e.small&&"\n border-radius: ".concat((s.iI/2+d.Al)/2,"px;\n height: ").concat(d.Al+s.iI/2+2,"px;\n padding: ").concat(s.iI/4,"px ").concat(s.iI,"px;\n ")}),(function(e){return e.border&&"\n border: 1px solid ".concat((e.theme.content||a.Z.content).muted,";\n ")}));n.Z=function(e){var n=e.border,t=e.children,r=e.disabled,a=e.label,d=e.onClick,m=e.primary,h=e.small;return(0,f.jsx)(p,{border:n,primary:m,small:h,children:(0,f.jsx)(o.Z,{basic:!0,disabled:r,noBackground:!0,noPadding:!0,onClick:d,transparent:!0,children:(0,f.jsxs)(i.Z,{alignItems:"center",children:[t,a&&(0,f.jsx)(u.ZP,{small:h,children:a}),!r&&d&&(0,f.jsx)(l.Z,{ml:1,children:(0,f.jsx)(c.x8,{default:m,muted:!m,size:h?s.iI:1.25*s.iI})})]})})})}},87372:function(e,n,t){var r,o,i,l,u,a,c,s,d=t(82394),f=t(26304),p=t(26653),m=t(38626),h=t(33591),v=t(23831),b=t(2005),w=t(31012),y=t(19711),g=t(49125),j=t(86673),x=t(28598),O=["children","condensed","inline","level","marketing","spacingBelow"];function Z(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 _(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?Z(Object(t),!0).forEach((function(n){(0,d.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Z(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var C=(0,m.css)([""," margin:0;"," "," "," "," "," "," "," "," "," "," "," "," ",""],y.IH,(function(e){return e.color&&"\n color: ".concat(e.color,"\n ")}),(function(e){return e.yellow&&"\n color: ".concat((e.theme.accent||v.Z.accent).yellow,";\n ")}),(function(e){return e.center&&"\n text-align: center;\n "}),(function(e){return!e.monospace&&0===Number(e.weightStyle)&&"\n font-family: ".concat(b.iI,";\n ")}),(function(e){return!e.monospace&&1===Number(e.weightStyle)&&"\n font-family: ".concat(b.LX,";\n ")}),(function(e){return!e.monospace&&2===Number(e.weightStyle)&&"\n font-family: ".concat(b.LX,";\n ")}),(function(e){return!e.monospace&&3===Number(e.weightStyle)&&"\n font-family: ".concat(b.ry,";\n ")}),(function(e){return!e.monospace&&4===Number(e.weightStyle)&&"\n font-family: ".concat(b.YC,";\n ")}),(function(e){return!e.monospace&&5===Number(e.weightStyle)&&"\n font-family: ".concat(b.nF,";\n ")}),(function(e){return!e.monospace&&(6===Number(e.weightStyle)||e.bold)&&"\n font-family: ".concat(b.nF,";\n ")}),(function(e){return!e.monospace&&7===Number(e.weightStyle)&&"\n font-family: ".concat(b.nF,";\n ")}),(function(e){return!e.monospace&&8===Number(e.weightStyle)&&"\n font-family: ".concat(b.nF,";\n ")}),(function(e){return e.lineHeightAuto&&"\n line-height: normal !important;\n "})),I=m.default.div.withConfig({displayName:"Headline__HeadlineContainerStyle",componentId:"sc-12jzt2e-0"})(["",""],(function(e){return"\n color: ".concat((e.theme.content||v.Z.content).active,";\n ")})),S=m.default.h1.withConfig({displayName:"Headline__H1HeroStyle",componentId:"sc-12jzt2e-1"})([""," font-size:42px;line-height:56px;"," "," ",""],C,h.media.md(r||(r=(0,p.Z)(["\n ","\n "])),w.aQ),h.media.lg(o||(o=(0,p.Z)(["\n ","\n "])),w.aQ),h.media.xl(i||(i=(0,p.Z)(["\n ","\n "])),w.aQ)),P=m.default.h1.withConfig({displayName:"Headline__H1Style",componentId:"sc-12jzt2e-2"})([""," ",""],C,w.MJ),k=m.default.h1.withConfig({displayName:"Headline__H1MarketingStyle",componentId:"sc-12jzt2e-3"})([""," "," "," "," "," ",""],C,h.media.xs(l||(l=(0,p.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*g.iI,7*g.iI),h.media.sm(u||(u=(0,p.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*g.iI,7*g.iI),h.media.md(a||(a=(0,p.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*g.iI,7*g.iI),h.media.lg(c||(c=(0,p.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*g.iI,7*g.iI),h.media.xl(s||(s=(0,p.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*g.iI,7*g.iI)),N=m.default.h2.withConfig({displayName:"Headline__H2Style",componentId:"sc-12jzt2e-4"})([""," ",""],C,w.BL),H=m.default.h3.withConfig({displayName:"Headline__H3Style",componentId:"sc-12jzt2e-5"})([""," font-size:24px;line-height:32px;"],C),E=m.default.h4.withConfig({displayName:"Headline__H4Style",componentId:"sc-12jzt2e-6"})([""," font-size:20px;line-height:28px;"],C),M=m.default.h5.withConfig({displayName:"Headline__H5Style",componentId:"sc-12jzt2e-7"})([""," font-size:18px;line-height:26px;"],C),z=m.default.span.withConfig({displayName:"Headline__SpanStyle",componentId:"sc-12jzt2e-8"})([""," "," "," "," ",""],C,(function(e){return 1===e.level&&"\n ".concat(w.MJ,"\n ")}),(function(e){return 2===e.level&&"\n ".concat(w.BL,"\n ")}),(function(e){return 3===e.level&&"\n font-size: 24px;\n line-height: 32px;\n "}),(function(e){return 4===e.level&&"\n font-size: 20px;\n line-height: 28px;\n "})),D=function(e){var n,t=e.children,r=e.condensed,o=e.inline,i=e.level,l=e.marketing,u=e.spacingBelow,a=(0,f.Z)(e,O);o?n=z:0===Number(i)?n=S:1===Number(i)?n=l?k:P:2===Number(i)?n=N:3===Number(i)?n=H:4===Number(i)?n=E:5===Number(i)&&(n=M);var c=(0,x.jsxs)(n,_(_({},a),{},{level:i,children:[u&&(0,x.jsx)(j.Z,{mb:r?2:3,children:t}),!u&&t]}));return o?c:(0,x.jsx)(I,{children:c})};D.defaultProps={level:3,weightStyle:6},n.Z=D},80022:function(e,n,t){function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}t.d(n,{Z:function(){return r}})},15544:function(e,n,t){function r(e){return r=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},r(e)}t.d(n,{Z:function(){return r}})},99177:function(e,n,t){function r(e,n){return r=Object.setPrototypeOf||function(e,n){return e.__proto__=n,e},r(e,n)}function o(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),n&&r(e,n)}t.d(n,{Z:function(){return o}})},93189:function(e,n,t){t.d(n,{Z:function(){return i}});var r=t(12539),o=t(80022);function i(e,n){if(n&&("object"===r(n)||"function"===typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return(0,o.Z)(e)}}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6299],{43032:function(e,n,t){t.d(n,{Cl:function(){return c},Nk:function(){return u},ZG:function(){return l}});var i=t(38626),r=t(23831),o=t(49125),l=1.5*o.iI,c=1*l+o.iI/2,u=i.default.div.withConfig({displayName:"indexstyle__ContainerStyle",componentId:"sc-uvd91-0"})([".row:hover{","}"],(function(e){return"\n background-color: ".concat((e.theme.interactive||r.Z.interactive).hoverBackground,";\n ")}))},46299:function(e,n,t){t.d(n,{Z:function(){return ce}});var i=t(82394),r=t(75582),o=t(26304),l=t(82684),c=t(38626),u=t(83455),a=t(86422),d=t(62084),s=t(16634),f=t(73828),p=t(93461),v=t(19711),h=t(10503),m=t(43032),g=t(49125),b=t(60701),x=t(91427),y=t(44162),j=t(32821),k=t(24224),C=t(90211),w=t(28598);function Z(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function O(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?Z(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Z(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var D="default_repo";var P=function e(n){var t=n.allowEmptyFolders,i=n.allowSelectingFolders,r=n.containerRef,o=n.disableContextMenu,c=n.file,u=n.isFileDisabled,d=n.level,Z=n.onClickFile,P=n.onClickFolder,F=n.onSelectBlockFile,_=n.onlyShowChildren,E=n.openFile,I=n.openPipeline,S=n.openSidekickView,R=n.pipelineBlockUuids,T=n.renderAfterContent,N=n.selectFile,M=n.setContextItem,L=n.setCoordinates,A=n.setDraggingFile,B=n.setSelectedFile,U=n.theme,W=n.timeout,H=n.uncollapsed,V=n.useRootFolder,z=c.children,q=c.disabled,Y=c.name,G=c.parent;Y||t||(c.name=D);var $,X=V?(0,j.a9)(c):(0,j.jN)(c),Q=(null===G||void 0===G?void 0:G.name)===f.oy,J=(0,l.useMemo)((function(){return z?(0,k.YC)(z,(function(e){return e.children?0:1})):z}),[z]),K=u?u(X,J):q||"__init__.py"===Y||!(null===Y||void 0===Y||!Y.match(/^\./))||!Y.match(f.d2)&&!z,ee=u?u(X,J):q||"__init__.py"===Y||!(null===Y||void 0===Y||!Y.match(/^\./))&&!J||!Y.match(f.d2)&&!z,ne="".concat(d,"/").concat(Y),te=(R.includes((0,j.dq)(c)),(0,l.useState)("undefined"===typeof H?(0,x.U2)(ne,!1):!H)),ie=te[0],re=te[1],oe=h.iU;1===d&&Y===f.oy?oe=h.B_:Y===f.PF?oe=h.er:J?oe=h.gt:!Y&&t&&(oe=h.mH),J&&a.$W.includes((0,C.C5)(Y))&&(0,C.C5)(Y)!==a.tf.CHART&&($=(0,y.qn)((0,C.C5)(Y),{theme:U}).accent);var le=(0,l.useMemo)((function(){return null===J||void 0===J?void 0:J.map((function(n){return(0,w.jsx)(e,{allowEmptyFolders:t,allowSelectingFolders:i,containerRef:r,disableContextMenu:o,file:O(O({},n),{},{parent:c}),isFileDisabled:u,level:_?d:d+1,onClickFile:Z,onClickFolder:P,onSelectBlockFile:F,openFile:E,openPipeline:I,openSidekickView:S,pipelineBlockUuids:R,renderAfterContent:T,selectFile:N,setContextItem:M,setCoordinates:L,setDraggingFile:A,setSelectedFile:B,theme:U,timeout:W,uncollapsed:H,useRootFolder:V},"".concat(ne,"/").concat((null===n||void 0===n?void 0:n.name)||D))}))}),[t,i,J,r,o,c,u,d,Z,P,F,_,E,I,S,R,T,N,M,L,A,B,U,W,H,V,ne]),ce=(0,l.useMemo)((function(){var e=[];return(0,k.w6)(d).forEach((function(n,t){var i,r=m.Cl-1;e.push((0,w.jsx)("div",{style:{borderLeft:"1px solid ".concat(null===U||void 0===U||null===(i=U.content)||void 0===i?void 0:i.disabled),height:22,marginLeft:r/2-2,paddingLeft:r/2+2}},"line-".concat(ne,"-").concat(t)))})),e}),[d,U,ne]);return(0,w.jsxs)(w.Fragment,{children:[!_&&(0,w.jsxs)("div",{className:"row",onClick:function(e){if(e.preventDefault(),!ee){if((null===G||void 0===G?void 0:G.name)===f.PF){null===S||void 0===S||S(b.cH.CHARTS);var n=(0,j.lr)(c);n&&(null===F||void 0===F||F(n.uuid,n.type,(0,j.jN)(c)))}var t=(0,j.V3)(c);if(J)i?N(X):re((function(e){return(0,x.t8)(ne,!e),!e})),null===P||void 0===P||P(X);else if(Z)Z(X);else if(t)null===F||void 0===F||F(t.uuid,t.type,(0,j.jN)(c));else if(Y.match(f.xF))null===E||void 0===E||E(X);else{var r=(0,j.lr)(c);r&&(null===F||void 0===F||F(r.uuid,r.type,(0,j.jN)(c)))}}},onContextMenu:function(e){var n;clearTimeout(W.current),null!==r&&void 0!==r&&null!==(n=r.current)&&void 0!==n&&n.contains(e.target)&&!o&&(e.preventDefault(),L({x:e.pageX,y:e.pageY}),A(null),B(c))},onMouseDown:function(e){var n,t=c?(0,j.lr)(c):null;null===r||void 0===r||null===(n=r.current)||void 0===n||!n.contains(e.target)||!t||(null===J||void 0===J?void 0:J.length)>=1||o||ee||Q||(e.preventDefault(),clearTimeout(W.current),W.current=setTimeout((function(){L({x:e.pageX,y:e.pageY}),A(c),B(null)}),300))},style:{alignItems:"center",cursor:"default",display:"flex",minWidth:d*m.Cl+c.name.length*g.Fo+2*g.iI,paddingRight:g.iI/4},children:[(0,w.jsxs)(p.Z,{alignItems:"center",flex:1,children:[ce,J&&!ie&&(0,w.jsx)(h._M,{muted:!0,size:m.ZG}),J&&ie&&(0,w.jsx)(h._Q,{muted:!0,size:m.ZG}),!J&&(0,w.jsx)("div",{style:{width:m.ZG}}),(0,w.jsxs)("div",{style:{marginLeft:g.iI/2,marginRight:g.iI/2},children:[!$&&(0,w.jsx)(oe,{disabled:K,size:m.ZG}),$&&(0,w.jsx)(s.Z,{color:$,size:m.ZG,square:!0})]}),(0,w.jsx)(v.ZP,{color:$,default:!$&&!ee,disabled:ee,monospace:!0,small:!0,children:Y})]}),T&&T(c)]}),(0,w.jsx)("div",{style:{display:ie?"none":"block"},children:le})]})},F=t(60328),_=t(67971),E=t(11135),I=t(29237),S=t(86673),R=t(82944),T=t(82531),N=t(16115),M=t(7715),L=t(96510),A=t(51504);var B=function(e){var n=e.fetchFileTree,t=e.file,i=e.moveFile,o=e.onCancel,c=e.onCreateFile,a=e.selectedFolder,d=e.setErrors,s=(0,l.useRef)(null),f=(0,M.Qr)(t)?null:t,p=(0,l.useState)(f?(0,j.jN)(f,null,!0):""),v=p[0],h=p[1],m=(0,l.useState)(f?null===f||void 0===f?void 0:f.name:""),g=m[0],b=m[1];(0,l.useEffect)((function(){var e;null===s||void 0===s||null===(e=s.current)||void 0===e||e.focus()}),[]),(0,l.useEffect)((function(){a&&h((0,j.jN)(a))}),[a]);var x=(0,u.Db)(T.ZP.files.useCreate(),{onSuccess:function(e){return(0,L.wD)(e,{callback:function(e){var t=e.file;null===n||void 0===n||n(),o(),null===c||void 0===c||c(t)},onErrorCallback:function(e,n){return d({errors:n,response:e})}})}}),y=(0,r.Z)(x,1)[0],k=(0,u.Db)(T.ZP.files.useUpdate(f&&encodeURIComponent((0,j.jN)(f))),{onSuccess:function(e){return(0,L.wD)(e,{callback:function(){null===n||void 0===n||n(),o()},onErrorCallback:function(e,n){return d({errors:n,response:e})}})}}),C=(0,r.Z)(k,1)[0];return(0,w.jsxs)(I.Z,{footer:(0,w.jsxs)(_.Z,{children:[(0,w.jsxs)(E.ZP,{bold:!0,disabled:!g,inline:!0,keyboardShortcutValidation:function(e){var n=e.keyMapping;return(0,A.y)([N.Uq],n)},onClick:function(){return f?C({file:{dir_path:v,name:g},file_json_only:!0}):y({file:{dir_path:v,name:g,overwrite:!1},file_json_only:!0})},primary:!0,tabIndex:0,uuid:"NewFile/create_file",children:[f?i?"Move":"Rename":"Create"," file"]}),(0,w.jsx)(S.Z,{ml:1,children:(0,w.jsx)(F.Z,{onClick:function(){return o()},tabIndex:0,children:"Cancel"})})]}),headerTitle:f?i?"Move file":"Rename file":"New file",children:[(0,w.jsx)(R.Z,{disabled:!!f&&!i,label:"Directory",monospace:!0,onChange:function(e){return h(e.target.value)},setContentOnMount:!0,value:v}),(0,w.jsx)(S.Z,{mt:2,children:(0,w.jsx)(R.Z,{disabled:!!i,label:"Filename",monospace:!0,onChange:function(e){return b(e.target.value)},ref:s,required:!0,value:g})})]})};var U=function(e){var n=e.fetchFileTree,t=e.file,i=e.moveFile,o=e.onCancel,c=e.onCreateFile,a=e.selectedFolder,d=e.setErrors,s=(0,l.useRef)(null),f=(0,M.Qr)(t)?null:t,p=(0,l.useState)(f?(0,j.jN)(f,null,!0):""),v=p[0],h=p[1],m=(0,l.useState)(f?null===f||void 0===f?void 0:f.name:""),g=m[0],b=m[1];(0,l.useEffect)((function(){var e;null===s||void 0===s||null===(e=s.current)||void 0===e||e.focus()}),[]),(0,l.useEffect)((function(){a&&h((0,j.jN)(a,null,!0))}),[a]);var x=(0,u.Db)(T.ZP.folders.useCreate(),{onSuccess:function(e){return(0,L.wD)(e,{callback:function(e){var t=e.file;null===n||void 0===n||n(),o(),null===c||void 0===c||c(t)},onErrorCallback:function(e,n){return d({errors:n,response:e})}})}}),y=(0,r.Z)(x,1)[0],k=(0,u.Db)(T.ZP.folders.useUpdate(f&&encodeURIComponent((0,j.jN)(f))),{onSuccess:function(e){return(0,L.wD)(e,{callback:function(){null===n||void 0===n||n(),o()},onErrorCallback:function(e,n){return d({errors:n,response:e})}})}}),C=(0,r.Z)(k,1)[0];return(0,w.jsxs)(I.Z,{footer:(0,w.jsxs)(_.Z,{children:[(0,w.jsxs)(E.ZP,{bold:!0,disabled:!g,inline:!0,keyboardShortcutValidation:function(e){var n=e.keyMapping;return(0,A.y)([N.Uq],n)},onClick:function(){return f?C({folder:{name:g,path:v}}):y({folder:{name:g,overwrite:!1,path:v}})},primary:!0,tabIndex:0,uuid:"NewFolder/create_folder",children:[f?i?"Move":"Rename":"Create"," folder"]}),(0,w.jsx)(S.Z,{ml:1,children:(0,w.jsx)(F.Z,{onClick:function(){return o()},tabIndex:0,children:"Cancel"})})]}),headerTitle:f?i?"Move folder":"Rename folder":"New folder",children:[(0,w.jsx)(R.Z,{disabled:!!f&&!i,label:"Directory",monospace:!0,onChange:function(e){return h(e.target.value)},setContentOnMount:!0,value:v}),(0,w.jsx)(S.Z,{mt:2,children:(0,w.jsx)(R.Z,{disabled:!!i,label:"Folder name",monospace:!0,onChange:function(e){return b(e.target.value)},ref:s,required:!0,value:g})})]})},W=t(98781),H=t(62609),V=t(55106),z=t(66176),q=t(87815),Y=t(23831),G=t(73942),$=(g.iI,c.default.div.withConfig({displayName:"indexstyle__DropZoneStyle",componentId:"sc-1g3zz7z-0"})(["border-radius:","px;padding:","px;max-width:","px;min-width:","px;",""],G.n_,8*g.iI,100*g.iI,55*g.iI,(function(e){return"\n border: 1px dashed ".concat((e.theme.borders||Y.Z.borders).contrast,";\n ")}))),X=c.default.div.withConfig({displayName:"indexstyle__TableStyle",componentId:"sc-1g3zz7z-1"})(["max-width:","px;min-width:","px;"],100*g.iI,55*g.iI);var Q=function(e){var n=e.fetchFileTree,t=e.onCancel,i=e.selectedFolder,o=(0,l.useState)(!1),c=o[0],u=o[1],a=(0,l.useState)({}),d=a[0],s=a[1],f=(0,l.useState)({}),p=f[0],h=f[1],m=!(0,M.Qr)(d),g=(0,l.useMemo)((function(){var e=[];return(0,k.YC)(Object.entries(d),(function(e){var n=(0,r.Z)(e,2),t=n[0];n[1];return t})).forEach((function(n){var t=(0,r.Z)(n,2),i=t[0],o=t[1],l=p[i],c=null===l||void 0===l?void 0:l.message;e.push([(0,w.jsxs)("div",{children:[(0,w.jsx)(v.ZP,{overflowWrap:!0,preWrap:!0,children:i}),c&&(0,w.jsx)(S.Z,{mt:1,children:(0,w.jsx)(v.ZP,{danger:!0,small:!0,children:c})})]},"name-".concat(i)),(0,w.jsx)(z.Z,{danger:!!c,progress:100*o},"progress-".concat(i))])})),(0,w.jsx)(q.Z,{columnFlex:[1,4],columns:[{uuid:"Filename"},{uuid:"Upload progress"}],rows:e,uuid:"block-runs"})}),[d,p]);return(0,w.jsxs)(I.Z,{footer:(0,w.jsxs)(_.Z,{fullWidth:!0,children:[(0,w.jsx)(F.Z,{onClick:function(){return t()},children:"Close"}),m&&(0,w.jsx)(S.Z,{ml:1,children:(0,w.jsx)(F.Z,{onClick:function(){s({}),h({})},children:"Clear files and retry"})})]}),headerTitle:"Upload files",children:[m&&(0,w.jsx)(X,{children:g}),!m&&(0,w.jsx)(V.Z,{directoryPath:i?(0,j.jN)(i):"",onDragActiveChange:u,setFileUploadProgress:s,setUploadedFiles:function(e){h(e),null===n||void 0===n||n()},children:(0,w.jsx)($,{children:(0,w.jsxs)(v.ZP,{center:!0,children:[c&&"Drop to upload",!c&&"Click or drop files and folders to upload"]})})})]})},J=t(86585),K=t(55512),ee=t(99497),ne=["addNewBlock","blocks","deleteWidget","fetchAutocompleteItems","fetchFileTree","fetchPipeline","files","onCreateFile","pipeline","setErrors","setSelectedBlock","widgets"];function te(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function ie(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?te(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):te(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var re,oe=20*g.iI;function le(e,n){var t=e.addNewBlock,i=e.blocks,s=void 0===i?[]:i,p=e.deleteWidget,h=e.fetchAutocompleteItems,b=e.fetchFileTree,x=e.fetchPipeline,y=e.files,C=e.onCreateFile,Z=e.pipeline,O=e.setErrors,D=e.setSelectedBlock,F=e.widgets,_=void 0===F?[]:F,E=(0,o.Z)(e,ne),I=(0,l.useRef)(null),S=(0,l.useContext)(c.ThemeContext),R=(0,l.useState)(null),N=R[0],M=R[1],A=(0,l.useState)(null),V=A[0],z=A[1],q=(0,l.useState)(null),Y=q[0],G=q[1],$=T.ZP.statuses.list().data,X=(0,l.useMemo)((function(){var e,n;return null===$||void 0===$||null===(e=$.statuses)||void 0===e||null===(n=e[0])||void 0===n?void 0:n.repo_path}),[$]),te=(0,u.Db)((function(e){return T.ZP.files.useDelete(e)()}),{onSuccess:function(e){return(0,L.wD)(e,{callback:function(){null===b||void 0===b||b()},onErrorCallback:function(e,n){return O({errors:n,response:e})}})}}),re=(0,r.Z)(te,1)[0],le=(0,u.Db)((function(e){return T.ZP.folders.useDelete(e)()}),{onSuccess:function(e){return(0,L.wD)(e,{callback:function(){null===b||void 0===b||b()},onErrorCallback:function(e,n){return O({errors:n,response:e})}})}}),ce=(0,r.Z)(le,1)[0],ue=(0,ee.dd)((function(e){var n=e.block;return(0,w.jsx)(H.Z,{centerOnScreen:!0,danger:!0,onCancel:se,onClick:function(){return pe({block:n,force:!0}).then((function(){return se()}))},subtitle:"Deleting this block file is dangerous. This block may have dependencies in active pipelines. Press confirm to delete this block anyway and remove it as a dependency from downstream blocks.",title:"Delete ".concat(n.uuid," anyway?"),width:34*g.iI})})),ae=(0,r.Z)(ue,2),de=ae[0],se=ae[1],fe=(0,u.Db)((function(e){var n=e.block,t=n.language,i=n.type,r=n.uuid,o=e.force,l=void 0!==o&&o,c="".concat(i,"/").concat(r);return t&&f.JD[t]&&(c="".concat(c,".").concat(f.JD[t].toLowerCase())),T.ZP.blocks.useDelete(encodeURIComponent(c),{force:l})()}),{onSuccess:function(e){return(0,L.wD)(e,{callback:function(){h(),x(),b()},onErrorCallback:function(e){var n=e.error,t=n.exception;n.message.includes("raise HasDownstreamDependencies")&&de({block:ye,exception:t})}})}}),pe=(0,r.Z)(fe,1)[0],ve=(0,k.sE)(null===Z||void 0===Z?void 0:Z.blocks,(function(e){var n=e.type;return a.tf.DATA_EXPORTER===n})),he=(0,u.Db)(T.ZP.blocks.pipelines.useUpdate(null===Z||void 0===Z?void 0:Z.uuid,null===ve||void 0===ve?void 0:ve.uuid),{onSuccess:function(e){return(0,L.wD)(e,{callback:function(){null===x||void 0===x||x()},onErrorCallback:function(e,n){return O({errors:n,response:e})}})}}),me=(0,r.Z)(he,1)[0],ge=(0,l.useCallback)((function(){return G(null)}),[G]);(0,l.useEffect)((function(){var e,i,r,o=function(e){if(clearTimeout(I.current),z(null),V&&Z&&t){var i,r,o=(null===n||void 0===n||null===(i=n.current)||void 0===i||null===(r=i.getBoundingClientRect)||void 0===r?void 0:r.call(i))||{},l=o.width,c=o.x;if(e.pageX>c+l){var u=(null===Z||void 0===Z?void 0:Z.type)===W.qL.INTEGRATION,a=(0,K.TU)(ie(ie({},V),{},{path:(0,j.jN)(V)}),X,Z);null===t||void 0===t||t(a,(function(e){u&&ve&&me({block:ie(ie({},ve),{},{upstream_blocks:[e.uuid]})}),null===D||void 0===D||D(e)}))}}},l=function(e){V&&M({x:e.pageX,y:e.pageY})};return null===(e=document)||void 0===e||e.addEventListener("click",ge),null===(i=document)||void 0===i||i.addEventListener("mousemove",l),null===(r=document)||void 0===r||r.addEventListener("mouseup",o),function(){var e,n,t;null===(e=document)||void 0===e||e.removeEventListener("click",ge),null===(n=document)||void 0===n||n.removeEventListener("mousemove",l),null===(t=document)||void 0===t||t.removeEventListener("mouseup",o)}}),[t,ve,V,ge,Z,n,X,D,I,me]);var be=(0,l.useMemo)((function(){return s.concat(_).map((function(e){return e.uuid}))}),[s,_]),xe=(0,l.useMemo)((function(){return null===y||void 0===y?void 0:y.map((function(e){return(0,l.createElement)(P,ie(ie({},E),{},{containerRef:n,file:e,key:e.name,level:0,pipelineBlockUuids:be,setCoordinates:M,setDraggingFile:z,setSelectedFile:G,theme:S,timeout:I}))}))}),[y,be,E,n,S,I]),ye=(0,l.useMemo)((function(){return Y&&(0,j.lr)(Y)}),[Y]),je=(0,l.useMemo)((function(){return V&&(0,j.lr)(V)}),[V]),ke=(0,l.useMemo)((function(){return Y&&"undefined"!==typeof(null===Y||void 0===Y?void 0:Y.children)&&Y}),[Y]),Ce=(0,ee.dd)((function(){return(0,w.jsx)(Q,{fetchFileTree:b,onCancel:Oe,selectedFolder:ke})}),{},[b,ke],{background:!0,uuid:"upload_files"}),we=(0,r.Z)(Ce,2),Ze=we[0],Oe=we[1],De=(0,ee.dd)((function(e){return(0,w.jsx)(B,{fetchFileTree:b,file:null===e||void 0===e?void 0:e.file,moveFile:null===e||void 0===e?void 0:e.moveFile,onCancel:_e,onCreateFile:C,selectedFolder:ke,setErrors:O})}),{},[b,C,ke,O],{background:!0,disableClickOutside:!0,uuid:"new_file"}),Pe=(0,r.Z)(De,2),Fe=Pe[0],_e=Pe[1],Ee=(0,ee.dd)((function(e){return(0,w.jsx)(U,{fetchFileTree:b,file:null===e||void 0===e?void 0:e.file,moveFile:null===e||void 0===e?void 0:e.moveFile,onCancel:Re,selectedFolder:ke,setErrors:O})}),{},[b,ke,O],{background:!0,disableClickOutside:!0,uuid:"new_folder"}),Ie=(0,r.Z)(Ee,2),Se=Ie[0],Re=Ie[1],Te=(0,l.useMemo)((function(){var e;if(!ye&&!Y&&!ke)return(0,w.jsx)("div",{});var t=(null===n||void 0===n||null===(e=n.current)||void 0===e?void 0:e.getBoundingClientRect())||{},i=t.x,r=t.width,o=N||{},l=o.x,c=void 0===l?0:l,u=o.y,s=void 0===u?0:u,f=c;c+oe>=i+r&&(f=i+r-(oe+g.iI)),f<0&&(f=0);var v=[];return ke?v.push.apply(v,[{label:function(){return"New folder"},onClick:function(){Se()},uuid:"new_folder"},{label:function(){return"Rename folder"},onClick:function(){Se({file:ke})},uuid:"rename_folder"},{label:function(){return"Move folder"},onClick:function(){Se({file:ke,moveFile:!0})},uuid:"Move_folder"},{label:function(){return"Delete folder"},onClick:function(){var e=(0,j.jN)(ke);window.confirm("Are you sure you want to delete folder ".concat(e," and all its subfolders and files?"))&&ce(encodeURIComponent(e))},uuid:"Delete_folder"},{label:function(){return"New file"},onClick:function(){Fe({file:{}})},uuid:"new_file"},{label:function(){return"Upload files"},onClick:function(){Ze()},uuid:"upload_files"}]):Y&&(v.push.apply(v,[{label:function(){return"Rename file"},onClick:function(){Fe({file:Y})},uuid:"rename_file"},{label:function(){return"Move file"},onClick:function(){Fe({file:Y,moveFile:!0})},uuid:"move_file"}]),ye?v.push({label:function(){return"Delete block file"},onClick:function(){ye.type===a.tf.CHART?window.confirm("Are you sure you want to delete widget ".concat(ye.uuid,"?"))&&p(ye):window.confirm("Are you sure you want to delete block ".concat(ye.uuid,"?"))&&pe({block:ye})},uuid:"delete_block_file"}):v.push({label:function(){return"Delete file"},onClick:function(){var e=(0,j.jN)(Y);window.confirm("Are you sure you want to delete file ".concat(e,"?"))&&re(encodeURIComponent(e))},uuid:"delete_file"})),(0,w.jsx)("div",{style:{left:f,position:"fixed",top:s+g.iI/2,zIndex:J.bf+100},children:(0,w.jsx)(d.Z,{items:v,open:!0,parentRef:void 0,uuid:"FileBrowser/ContextMenu",width:oe})})}),[N,pe,re,ce,p,n,Ze,Fe,Se,ye,Y,ke]);return(0,w.jsxs)(m.Nk,{ref:n,children:[xe,(ye||Y||ke)&&Te,je&&(0,w.jsx)("div",{style:{left:(null===N||void 0===N?void 0:N.x)-g.iI,position:"fixed",top:(null===N||void 0===N?void 0:N.y)-g.iI,zIndex:J.bf+100},children:(0,w.jsx)(v.ZP,{cursor:"grabbing",monospace:!0,children:null===je||void 0===je?void 0:je.uuid})})]})}!function(e){e.BLOCK_FILE="block_file",e.DISABLED="disabled",e.FILE="file",e.FOLDER="folder",e.PIPELINE="pipeline"}(re||(re={}));var ce=l.forwardRef(le)},32821:function(e,n,t){t.d(n,{IO:function(){return p},V3:function(){return s},a9:function(){return c},dq:function(){return f},jN:function(){return a},lr:function(){return d}});var i=t(17717),r=t(86422),o=t(73828),l=t(90211);function c(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,t=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=n||(t?null:null===e||void 0===e?void 0:e.name);if(null!==e&&void 0!==e&&e.parent){var o=[e.parent.name];return(null===r||void 0===r?void 0:r.length)>=1&&o.push(r),c(e.parent,o.join(i.sep))}return r}function u(e){return null===e||void 0===e?void 0:e.split(i.sep).slice(1).join(i.sep)}function a(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,t=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=c(e,n,t);return u(i)}function d(e){var n,t,u=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,a=c(e,u).split(i.sep);if(!a)return null;if(1===a.length)(a=null===e||void 0===e||null===(t=e.path)||void 0===t?void 0:t.split(i.sep))&&(n=a[0]===r.tf.CUSTOM?a[0]:(0,l.C5)(a[0]||""));else if(a[1]===r.tf.CUSTOM)n=a[1];else{var d=a[1];n=r.tf.DBT===d?d:(0,l.C5)(d||"")}if(!a||r.tf.DBT===n)return null;var s="";s=a.length>=3?a.slice(2,a.length).join(i.sep):a[a.length-1];var f=["\\.".concat(o.Lu.PY),"\\.".concat(o.Lu.R),"\\.".concat(o.Lu.SQL),"\\.".concat(o.Lu.YAML),"\\.".concat(o.Lu.YML)].join("|"),p=new RegExp("".concat(f,"$"));if(r.$W.concat(r.tf.DBT).includes(n)&&s.match(p)){var v=s.lastIndexOf("."),h=s.slice(v+1);return{language:o.nB[h],type:n,uuid:s.slice(0,v)}}}function s(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,t=c(e,n).split(i.sep);if(t[1]){var u=(0,l.C5)(t[n?0:1]);t[1]===r.tf.DBT&&(u=r.tf.DBT);var a=t[t.length-1],d=new RegExp(".".concat(o.Lu.YAML,"$")),s=new RegExp(".".concat(o.Lu.R,"$")),f=new RegExp(".".concat(o.Lu.SQL,"$")),p=new RegExp(".".concat(o.Lu.MD,"$"));if(a.match(d)&&r.VZ.includes(u))return{type:u,uuid:a.replace(d,"")};if(a.match(s)&&r.J8.includes(u))return{type:u,uuid:a.replace(s,"")};if(a.match(f)&&r.HX.includes(u)){var v=a.replace(/[.]/g,"_"),h=u===r.tf.DBT?t.slice(2,-1).join("_").concat("_".concat(v)):a.replace(f,"");return{type:u,uuid:h}}return a.match(p)&&u===r.tf.MARKDOWN?{type:u,uuid:a.replace(p,"")}:void 0}}function f(e){var n=e.name.split("."),t=n[n.length-1];return o.n6.includes(t)&&n.pop(),n.join("")}function p(e,n){var t=e.split("."),r=t[t.length-1];o.n6.includes(r)&&t.pop();var l=t.join("").split(i.sep),c=l.slice(1,l.length).join("");return n.find((function(e){return e.uuid===c}))}},55512:function(e,n,t){t.d(n,{TU:function(){return f},ck:function(){return d},lU:function(){return s}});var i=t(21831),r=t(17717),o=t(86422),l=t(98781),c=t(73828),u=t(24224),a=t(90211),d=function(e){var n=e[0];return n===o.tf.DBT||n===o.tf.CUSTOM?n:e[0].slice(0,-1)};function s(){return new RegExp(Object.keys(c.nB).map((function(e){return".(".concat(e,")$")})).join("|"))}function f(e,n,t){var f,p,v=null===e||void 0===e||null===(f=e.path.match(s())[0])||void 0===f?void 0:f.split(".")[1],h=t.type===l.qL.INTEGRATION,m=(0,u.sE)(null===t||void 0===t?void 0:t.blocks,(function(e){var n=e.type;return o.tf.DATA_EXPORTER===n})),g=e.path.replace(n,"").split(r.sep),b=e.path.split(r.sep)[0]===o.tf.DBT,x=(p=g)[0]===o.tf.DBT?p.slice(1).join(r.sep):function(e){return e.at(-1)}(p).split(".")[0];if(g.length>=3&&!b){var y=g.slice(1,g.length-1).join(r.sep);x="".concat(y,"/").concat(x)}var j=d(e.path.split(r.sep)),k={configuration:{file_path:b?x:null},language:c.nB[v],name:(0,a.wE)(x),type:j};if(j===o.tf.CUSTOM&&(k.color=o.Lq.TEAL),h){var C=(0,u.sE)(t.blocks,(function(e){var n=e.type;return o.tf.DATA_LOADER===n})),w=(0,u.sE)(t.blocks,(function(e){var n=e.type;return o.tf.TRANSFORMER===n})),Z=[];w?Z.push(w.uuid):null!==m&&void 0!==m&&m.upstream_blocks?Z.push.apply(Z,(0,i.Z)(m.upstream_blocks)):C&&Z.push(C.uuid),k.upstream_blocks=Z}return k}},55106:function(e,n,t){t.d(n,{Z:function(){return b}});var i=t(82394),r=t(75582),o=t(17717),l=t(82684),c=t(83455),u=t(38626),a=t(77011),d=t(28598);function s(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function f(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 p=u.default.div.withConfig({displayName:"MultiFileInput__DropzoneStyle",componentId:"sc-1l6yd2y-0"})(["&:hover{cursor:pointer;}"]);var v=function(e){var n=e.children,t=e.inputOnChange,i=e.inputProps,r=e.onDragActiveChange,o=e.setFiles,c=(0,l.useCallback)((function(e){o(e)}),[o]),u=(0,a.uI)({onDrop:c}),s=u.getInputProps,v=u.getRootProps,h=u.isDragActive,m=s(),g=m.accept,b=m.autoComplete,x=m.multiple,y=m.onChange,j=m.onClick,k=m.ref,C=m.style,w=m.tabIndex,Z=m.type,O=f(f({},i),{},{accept:g,autoComplete:b,multiple:x,onChange:function(e){null===t||void 0===t||t(e),null===i||void 0===i||i.onChange(e),y(e)},onClick:j,ref:k,style:C,tabIndex:w,type:Z});return(0,l.useEffect)((function(){null===r||void 0===r||r(h)}),[h,r]),(0,d.jsxs)(p,f(f({},v()),{},{children:[(0,d.jsx)("input",f(f({},O),{},{directory:"",webkitdirectory:""})),n]}))},h=t(82531);function m(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function g(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?m(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):m(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var b=function(e){var n=e.children,t=e.directoryPath,u=e.onDragActiveChange,a=e.setFileUploadProgress,s=e.setUploadedFiles,f=(0,c.Db)(h.ZP.files.useCreate({onUploadProgress:function(e,n){var t,r=n.body,l=[null===r||void 0===r?void 0:r.dir_path,null===r||void 0===r||null===(t=r.file)||void 0===t?void 0:t.name].filter((function(e){return(null===e||void 0===e?void 0:e.length)>=1})).join(o.sep);null===a||void 0===a||a((function(n){return g(g({},n),{},(0,i.Z)({},l,e.loaded/e.total))}))}})),p=(0,r.Z)(f,1)[0],m=(0,l.useCallback)((function(e){e.forEach((function(e){var n=e.name,r=e.path,l=[t],c=r.split(o.sep).filter((function(e){return e&&e!==n})).join(o.sep);c&&l.push(c);var u=[],d=l.join(o.sep);(null===d||void 0===d?void 0:d.length)>=1&&l.push(d),u.push(n);var f=u.join(o.sep);p({dir_path:d,file:e,overwrite:!1}).then((function(e){var n=e.data,t=n.error,r=n.file;s((function(e){return g(g({},e),{},(0,i.Z)({},f,r||t))}))})),a((function(e){return g(g({},e),{},(0,i.Z)({},f,0))}))}))}),[p,t,a,s]);return(0,d.jsx)(v,{onDragActiveChange:u,setFiles:m,children:n})}},29237:function(e,n,t){var i=t(38626),r=t(67971),o=t(86673),l=t(19711),c=t(23831),u=t(73942),a=t(37391),d=t(49125),s=t(28598),f=(0,i.css)(["padding:","px;padding-bottom:","px;padding-top:","px;"],2*d.iI,1.5*d.iI,1.5*d.iI),p=i.default.div.withConfig({displayName:"Panel__PanelStyle",componentId:"sc-1ct8cgl-0"})(["border-radius:","px;overflow:hidden;"," "," "," "," "," "," "," "," "," "," "," ",""],u.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 "})),v=i.default.div.withConfig({displayName:"Panel__HeaderStyle",componentId:"sc-1ct8cgl-1"})(["border-top-left-radius:","px;border-top-right-radius:","px;"," "," "," ",""],u.n_,u.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 ")})),h=i.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 "})),m=i.default.div.withConfig({displayName:"Panel__FooterStyle",componentId:"sc-1ct8cgl-3"})(["border-style:",";border-top-width:","px;padding:","px;"],u.M8,u.YF,1.75*d.iI);n.Z=function(e){var n=e.borderless,t=e.children,i=e.containerRef,c=e.contentContainerRef,u=e.dark,a=e.footer,d=e.fullHeight,f=void 0===d||d,g=e.fullWidth,b=void 0===g||g,x=e.header,y=e.headerHeight,j=e.headerIcon,k=e.headerPaddingVertical,C=e.headerTitle,w=e.maxHeight,Z=e.maxWidth,O=e.minWidth,D=e.noPadding,P=e.overflowVisible,F=e.subtitle,_=e.success;return(0,s.jsxs)(p,{borderless:n,dark:u,fullHeight:f,fullWidth:b,maxHeight:w,maxWidth:Z,minWidth:O,overflowVisible:P,ref:i,success:_,children:[(x||C)&&(0,s.jsxs)(v,{headerPaddingVertical:k,height:y,children:[x&&x,C&&(0,s.jsx)(r.Z,{alignItems:"center",justifyContent:"space-between",children:(0,s.jsxs)(r.Z,{alignItems:"center",children:[j&&j,(0,s.jsx)(o.Z,{ml:j?1:0,children:(0,s.jsx)(l.ZP,{bold:!0,default:!0,children:C})})]})})]}),(0,s.jsxs)(h,{maxHeight:w,noPadding:D,overflowVisible:P,ref:c,children:[F&&(0,s.jsx)(o.Z,{mb:2,children:(0,s.jsx)(l.ZP,{default:!0,children:F})}),t]}),a&&(0,s.jsx)(m,{children:a})]})}}}]);
@@ -1 +0,0 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7869],{48591:function(e,n,t){"use strict";var r=t(21831),i=t(75582),o=t(82684),u=t(37958);n.Z=function(e){var n=e.children,t=e.uuid,c=e.uuids,l=void 0===c?[]:c,a=(0,u.j)("apiReloads"),s=(0,i.Z)(a,1)[0],d=(0,r.Z)(l);t&&d.push(t);var f=d.map((function(e){return String(s[e])||"-"})).join("_");return o.cloneElement(n,{key:f})}},1210:function(e,n,t){"use strict";t.d(n,{Z:function(){return w}});var r=t(82394),i=t(21831),o=t(82684),u=t(47999),c=t(49894),l=t(93461),a=t(57384),s=t(41424),d=t(72454),f=t(28598);function v(e,n){var t=e.children;return(0,f.jsx)(d.HS,{ref:n,children:t})}var p=o.forwardRef(v),h=t(32063),b=t(85019),m=t(82531),g=t(66166),O=t(3055),y=t(49125),j=t(91427),S=t(24141);function Z(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 x(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?Z(Object(t),!0).forEach((function(n){(0,r.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Z(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var w=function(e){var n,t=e.addProjectBreadcrumbToCustomBreadcrumbs,r=e.after,v=e.afterHidden,Z=e.afterWidth,w=e.afterWidthOverride,P=e.before,C=e.beforeWidth,k=e.breadcrumbs,E=e.children,T=e.errors,D=e.headerMenuItems,M=e.headerOffset,A=e.mainContainerHeader,_=e.navigationItems,R=e.setErrors,I=e.subheaderChildren,N=e.title,L=e.uuid,H=(0,S.i)().width,F="dashboard_after_width_".concat(L),Y="dashboard_before_width_".concat(L),B=(0,o.useRef)(null),U=(0,o.useState)(w?Z:(0,j.U2)(F,Z)),V=U[0],W=U[1],K=(0,o.useState)(!1),X=K[0],z=K[1],G=(0,o.useState)(P?Math.max((0,j.U2)(Y,C),13*y.iI):null),J=G[0],Q=G[1],q=(0,o.useState)(!1),$=q[0],ee=q[1],ne=(0,o.useState)(null)[1],te=m.ZP.projects.list({},{revalidateOnFocus:!1}).data,re=null===te||void 0===te?void 0:te.projects,ie={label:function(){var e;return null===re||void 0===re||null===(e=re[0])||void 0===e?void 0:e.name},linkProps:{href:"/"}},oe=[];k?(t&&oe.push(ie),oe.push.apply(oe,(0,i.Z)(k))):(null===re||void 0===re?void 0:re.length)>=1&&oe.push.apply(oe,[ie,{bold:!0,label:function(){return N}}]),(0,o.useEffect)((function(){null===B||void 0===B||!B.current||X||$||null===ne||void 0===ne||ne(B.current.getBoundingClientRect().width)}),[X,V,$,J,B,ne,H]),(0,o.useEffect)((function(){X||(0,j.t8)(F,V)}),[v,X,V,F]),(0,o.useEffect)((function(){$||(0,j.t8)(Y,J)}),[$,J,Y]);var ue=(0,g.Z)(Z);return(0,o.useEffect)((function(){w&&ue!==Z&&W(Z)}),[w,Z,ue]),(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(a.Z,{title:N}),(0,f.jsx)(s.Z,{breadcrumbs:oe,menuItems:D,project:null===re||void 0===re?void 0:re[0],version:null===re||void 0===re||null===(n=re[0])||void 0===n?void 0:n.version}),(0,f.jsxs)(d.Nk,{children:[0!==(null===_||void 0===_?void 0:_.length)&&(0,f.jsx)(d.lm,{showMore:!0,children:(0,f.jsx)(b.Z,{navigationItems:_,showMore:!0})}),(0,f.jsx)(l.Z,{flex:1,flexDirection:"column",children:(0,f.jsxs)(h.Z,{after:r,afterHeightOffset:O.Mz,afterHidden:v,afterMousedownActive:X,afterWidth:V,before:P,beforeHeightOffset:O.Mz,beforeMousedownActive:$,beforeWidth:d.k1+(P?J:0),headerOffset:M,hideAfterCompletely:!0,leftOffset:P?d.k1:null,mainContainerHeader:A,mainContainerRef:B,setAfterMousedownActive:z,setAfterWidth:W,setBeforeMousedownActive:ee,setBeforeWidth:Q,children:[I&&(0,f.jsx)(p,{children:I}),E]})})]}),T&&(0,f.jsx)(u.Z,{disableClickOutside:!0,isOpen:!0,onClickOutside:function(){return null===R||void 0===R?void 0:R(null)},children:(0,f.jsx)(c.Z,x(x({},T),{},{onClose:function(){return null===R||void 0===R?void 0:R(null)}}))})]})}},91207:function(e,n,t){"use strict";t.d(n,{Z:function(){return N}});var r=t(82394),i=t(75582),o=t(17717),u=t(82684),c=t(37958),l=t(83455),a=t(35490),s=t(86422),d=t(60328),f=t(38626),v=t(93461),p=t(67971),h=t(28598),b=f.default.div.withConfig({displayName:"ButtonGroup__ButtonGroupStyle",componentId:"sc-15vbmc8-0"})([""]),m=f.default.div.withConfig({displayName:"ButtonGroup__VerticalDivider",componentId:"sc-15vbmc8-1"})(["width:1px;"]),g=function(e){var n=e.children,t=e.divider,r=u.Children.toArray(n).length;return(0,h.jsx)(b,{children:(0,h.jsx)(p.Z,{children:u.Children.map(n,(function(e,n){return e&&(0,h.jsxs)(v.Z,{children:[n>=1&&t&&(0,h.jsx)(m,{}),u.cloneElement(e,{borderRadiusLeft:r>=2&&0===n,borderRadiusRight:r>=2&&n===r-1,halfPaddingLeft:r>=2&&0!==n,halfPaddingRight:r>=2&&n!==r-1,noBorder:r>=2&&n>0&&n<r-1,noBorderRight:r>=2&&n!==r-1})]},"button-group-child-".concat(n))}))})})},O=t(57722),y=t(73828),j=t(11135),S=t(98781),Z=t(86673),x=t(82531),w=t(16115),P=t(94353),C=t(60701),k=t(55512),E=t(24224),T=t(32821),D=t(90211),M=t(96510),A=t(51504),_=t(41150);function R(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 I(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?R(Object(t),!0).forEach((function(n){(0,r.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):R(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var N=function(e){var n=e.active,t=e.addNewBlock,f=e.disableRefreshWarning,v=e.fetchPipeline,b=e.fetchVariables,m=e.filePath,R=e.hideHeaderButtons,N=e.onContentChange,L=e.openSidekickView,H=e.pipeline,F=e.saveFile,Y=e.selectedFilePath,B=e.sendTerminalMessage,U=e.setDisableShortcuts,V=e.setErrors,W=e.setFilesTouched,K=e.setSelectedBlock,X=(0,c.j)("apiReloads"),z=(0,i.Z)(X,2)[1],G=(0,u.useState)(null),J=G[0],Q=G[1],q=(0,u.useState)(!1),$=q[0],ee=(q[1],(0,u.useRef)(null)),ne=(0,u.useMemo)((function(){return new a.Z}),[]),te=(0,u.useMemo)((function(){return{api_key:P.l,token:ne.decodedToken.token}}),[ne]),re=x.ZP.statuses.list().data,ie=(0,u.useMemo)((function(){var e,n;return null===re||void 0===re||null===(e=re.statuses)||void 0===e||null===(n=e[0])||void 0===n?void 0:n.repo_path}),[re]),oe=x.ZP.file_contents.detail(m).data;(0,u.useEffect)((function(){null!==oe&&void 0!==oe&&oe.file_content&&Q(oe.file_content)}),[oe]);var ue=(0,u.useState)(null===J||void 0===J?void 0:J.content),ce=ue[0],le=ue[1],ae=(0,u.useCallback)((function(e){le(e),N&&(null===N||void 0===N||N(e))}),[N]),se=(0,u.useState)(!1),de=se[0],fe=se[1];(0,u.useEffect)((function(){n&&U&&(null===U||void 0===U||U(!0))}),[n,U]),(0,u.useEffect)((function(){var e;Y&&(null===ee||void 0===ee||null===(e=ee.current)||void 0===e||e.scrollIntoView())}),[Y]);var ve=(0,l.Db)(x.ZP.file_contents.useUpdate((null===J||void 0===J?void 0:J.path)&&encodeURIComponent(null===J||void 0===J?void 0:J.path)),{onSuccess:function(e){return(0,M.wD)(e,{callback:function(){z((function(e){return I(I({},e),{},(0,r.Z)({},"FileVersions/".concat(null===J||void 0===J?void 0:J.path),Number(new Date)))}))},onErrorCallback:function(e,n){return null===V||void 0===V?void 0:V({errors:n,response:e})}})}}),pe=(0,i.Z)(ve,1)[0],he=(0,u.useCallback)((function(e,n){if(F)return F(e,n);pe({file_content:I(I({},n),{},{content:e})}).then((function(){decodeURIComponent(m).split(o.sep).pop()===y.dT.METADATA_YAML&&b&&(null===b||void 0===b||b())})),W((function(e){return I(I({},e),{},(0,r.Z)({},null===n||void 0===n?void 0:n.path,!1))})),fe(!1)}),[b,m,F,W,pe]),be=(0,u.useMemo)((function(){return(0,k.lU)()}),[]),me=(0,u.useMemo)((function(){var e,n,t,r;return null===(null===J||void 0===J||null===(e=J.path)||void 0===e?void 0:e.match(be))?y.Lu.TXT:null===J||void 0===J||null===(n=J.path)||void 0===n||null===(t=n.match(be))||void 0===t||null===(r=t[0])||void 0===r?void 0:r.split(".")[1]}),[be,J]),ge=(0,u.useMemo)((function(){if(null!==J&&void 0!==J&&J.path)return(0,h.jsx)(O.Z,{autoHeight:!0,language:y.nB[me],onChange:function(e){ae(e),W((function(e){return I(I({},e),{},(0,r.Z)({},null===J||void 0===J?void 0:J.path,!0))})),fe(!0)},onSave:function(e){he(e,J)},selected:!0,textareaFocused:!0,value:(0,D.Pb)(null===J||void 0===J?void 0:J.content)?JSON.stringify(JSON.parse(null===J||void 0===J?void 0:J.content),null,2):null===J||void 0===J?void 0:J.content,width:"100%"})}),[J,me,he,ae,W]),Oe=null!==H&&void 0!==H&&H.blocks?(0,E.sE)(null===H||void 0===H?void 0:H.blocks,(function(e){var n=e.type;return s.tf.DATA_EXPORTER===n})):null,ye=(0,l.Db)(x.ZP.blocks.pipelines.useUpdate(null===H||void 0===H?void 0:H.uuid,null===Oe||void 0===Oe?void 0:Oe.uuid),{onSuccess:function(e){return(0,M.wD)(e,{callback:function(){null===v||void 0===v||v()}})}}),je=(0,i.Z)(ye,1)[0],Se=t&&H&&(me===y.Lu.PY||me===y.Lu.SQL||(me===y.Lu.YAML||me===y.Lu.R)&&(0,T.V3)(J,null===J||void 0===J?void 0:J.path))&&(0,k.ck)(J.path.split(o.sep))!==s.tf.SCRATCHPAD&&(0,T.lr)(J)&&(0,h.jsx)(d.Z,{onClick:function(){var e=(null===H||void 0===H?void 0:H.type)===S.qL.INTEGRATION,n=(0,k.TU)(J,ie,H);t(n,(function(n){e&&Oe&&je({block:I(I({},Oe),{},{upstream_blocks:[n.uuid]})}),null===K||void 0===K||K(n)}))},primary:!0,children:"Add to current pipeline"}),Ze=B&&(0,h.jsx)(Z.Z,{m:2,children:(0,h.jsx)(j.ZP,{disabled:!ie,inline:!0,loading:$,onClick:function(){null===L||void 0===L||L(C.cH.TERMINAL),null===B||void 0===B||B(JSON.stringify(I(I({},te),{},{command:["stdin","pip install -r ".concat(ie,"/requirements.txt\r")]})))},title:ie?"Pip install packages from your saved requirements.txt file (\u2318+S to save).":"Please use right panel terminal to install packages.",uuid:"FileEditor/InstallPackages",children:"Install packages"})}),xe="FileEditor/".concat(null===J||void 0===J?void 0:J.path),we=(0,_.y)(),Pe=we.registerOnKeyDown,Ce=we.unregisterOnKeyDown;return(0,u.useEffect)((function(){return function(){Ce(xe)}}),[Ce,xe]),Pe(xe,(function(e,t){if(n&&!f)if((0,A.y)([w.zX,w.Um],t)||(0,A.y)([w.PQ,w.Um],t))e.preventDefault(),he(ce,J);else if(de&&(0,A.y)([w.zX,w.hS],t)){e.preventDefault();var r="".concat(J.path," has changes that are unsaved. ")+"Click cancel and save your changes before reloading page.";"undefined"!==typeof location&&window.confirm(r)&&location.reload()}}),[n,ce,f,J,he,de]),(0,h.jsxs)("div",{ref:ee,children:[!R&&(0,h.jsx)(Z.Z,{p:2,children:(0,h.jsxs)(p.Z,{justifyContent:"space-between",children:[(0,h.jsxs)(g,{children:[Se,(0,h.jsx)(d.Z,{disabled:!ce,onClick:function(e){e.preventDefault(),he(ce,J)},title:ce?null:"No changes have been made to this file.",children:"Save file content"})]}),L&&(0,h.jsx)(g,{children:(0,h.jsx)(d.Z,{compact:!0,onClick:function(){L(C.cH.FILE_VERSIONS)},small:!0,title:"View previous changes to this file.",children:"Show versions"})})]})}),ge,m===y.dT.REQS_TXT&&Ze]})}},23351:function(e,n,t){"use strict";var r=t(82394),i=t(75582),o=t(17717),u=t(37958),c=t(82684),l=t(83455),a=t(60328),s=t(57722),d=t(73828),f=t(93461),v=t(67971),p=t(87372),h=t(86673),b=t(54283),m=t(87815),g=t(19711),O=t(82531),y=t(49125),j=t(55512),S=t(42305),Z=t(90211),x=t(96510),w=t(66653),P=t(24224),C=t(28598);function k(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 E(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?k(Object(t),!0).forEach((function(n){(0,r.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):k(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}n.Z=function(e){var n=e.onActionCallback,t=e.selectedBlock,k=e.selectedFilePath,T=e.setErrors,D=e.width,M=(0,u.j)("apiReloads"),A=(0,i.Z)(M,2)[1],_=O.ZP.file_versions.files.list(k&&encodeURIComponent(k)),R=_.data,I=_.mutate,N=(0,c.useMemo)((function(){return(null===R||void 0===R?void 0:R.file_versions)||[]}),[R]),L=(0,c.useState)(null),H=L[0],F=L[1],Y=(0,c.useMemo)((function(){return null===N||void 0===N?void 0:N[H]}),[H,N]),B=O.ZP.file_contents.detail(Y?encodeURIComponent(Y.path):null).data,U=(0,c.useMemo)((function(){return null===B||void 0===B?void 0:B.file_content}),[B]),V=(0,c.useMemo)((function(){return(0,j.lU)()}),[]),W=(0,c.useMemo)((function(){var e,n,t;return null===k||void 0===k||null===(e=k.match(V))||void 0===e||null===(n=e[0])||void 0===n||null===(t=n.split("."))||void 0===t?void 0:t[1]}),[k,V]),K=(0,l.Db)(O.ZP.file_contents.useUpdate(k&&encodeURIComponent(k)),{onSuccess:function(e){return(0,x.wD)(e,{callback:function(e){var t;k&&I();var i=null===e||void 0===e||null===(t=e.file_content)||void 0===t?void 0:t.path,u="FileEditor/".concat(i);if(i){var c=i.split(o.sep);if("pipelines"===c[0]){var l=c.slice(1,c.length-1).join(o.sep);u="PipelineDetail/".concat(l)}}A((function(e){return E(E({},e),{},(0,r.Z)({},u,Number(new Date)))})),F((function(e){return e+1})),null===n||void 0===n||n(e)},onErrorCallback:function(e,n){return T({errors:n,response:e})}})}}),X=(0,i.Z)(K,2),z=X[0],G=X[1].isLoading,J=(0,c.useMemo)((function(){var e=N.map((function(e){var n=e.name,t=e.path;return[(0,C.jsxs)(v.Z,{alignItems:"center",justifyContent:"space-between",children:[(0,C.jsxs)(f.Z,{flex:1,children:[(0,C.jsx)(g.ZP,{default:!0,monospace:!0,children:(0,S.JX)(n,{withSeconds:!0})}),(0,C.jsx)(h.Z,{px:2*y.cd,children:(0,C.jsx)(g.ZP,{monospace:!0,children:n})})]}),Y&&(null===Y||void 0===Y?void 0:Y.path)===t&&(0,C.jsx)(a.Z,{compact:!0,loading:G,onClick:function(e){(0,w.j)(e),z({file_content:{version:n}})},small:!0,children:"Replace with this version"})]},n)]}));if(Y){var n=(0,C.jsx)(h.Z,{p:y.cd,children:(0,C.jsx)(b.Z,{},"spinner")});if(U&&(null===U||void 0===U?void 0:U.path)===(null===Y||void 0===Y?void 0:Y.path)){var t=U.content,r=void 0===t?"":t;n=(0,C.jsx)(s.Z,{autoHeight:!0,language:d.nB[W],padding:!0,readOnly:!0,value:(0,Z.Pb)(r)?JSON.stringify(JSON.parse(r),null,2):r,width:D})}e=(0,P.Hk)([n],H+1,e)}return e}),[U,W,N,G,Y,H,z,D]);return(0,C.jsxs)("div",{style:{width:D},children:[(0,C.jsxs)(h.Z,{p:y.cd,children:[(0,C.jsx)(p.Z,{level:5,children:"File versions"}),(0,C.jsx)(g.ZP,{inline:!0,monospace:!0,children:k?decodeURIComponent(k):null===t||void 0===t?void 0:t.uuid})]}),(0,C.jsx)(m.Z,{buildRowProps:function(e){if(Y&&H+1===e)return{renderCell:function(e){return e},renderRow:function(e){return e}}},columnFlex:[1],columns:[{uuid:"Version"}],isSelectedRow:function(e){var n;return(null===(n=N[e])||void 0===n?void 0:n.name)===(null===Y||void 0===Y?void 0:Y.name)},onClickRow:function(e){Y?e===H?F(null):e<H?F(e):e>H+1&&F(e-1):F(e)},rows:J})]})}},38488:function(e,n,t){"use strict";t.d(n,{Z:function(){return w}});var r=t(82394),i=t(26304),o=t(82684),u=t(38626),c=t(16634),l=t(67971),a=t(10919),s=t(86673),d=t(19711),f=t(46261),v=t(23831),p=t(10503),h=t(28347),b=t(49125),m=t(33766),g=t(66653),O=t(28598);var y=function(e){var n=e.filePath,t=e.filesTouched,r=void 0===t?{}:t,i=e.isLast,u=e.onClickTab,y=e.onClickTabClose,j=e.renderTabTitle,S=e.savePipelineContent,Z=e.selected,x=e.themeContext,w=(0,o.useState)(!1),P=w[0],C=w[1];return(0,O.jsx)(l.Z,{flexDirection:"column",fullHeight:!0,onClick:function(e){e.preventDefault(),Z||(u?u(n):(null===S||void 0===S||S(),(0,m.u7)({file_path:encodeURIComponent(n)})))},onMouseEnter:function(){return C(!0)},onMouseLeave:function(){return C(!1)},children:(0,O.jsx)(h.Gb,{last:i,selected:Z,children:(0,O.jsxs)(l.Z,{alignItems:"center",fullHeight:!0,children:[(0,O.jsx)(f.Z,{appearAbove:!0,appearBefore:!0,label:n,size:null,widthFitContent:!0,children:(0,O.jsxs)(l.Z,{alignItems:"center",fullHeight:!0,children:[!r[n]&&(0,O.jsx)(p.iU,{muted:!Z,size:1.5*b.iI}),r[n]&&(0,O.jsx)(f.Z,{label:"Unsaved changes",size:null,widthFitContent:!0,children:(0,O.jsx)("div",{style:{padding:1},children:(0,O.jsx)(c.Z,{borderColor:(x||v.Z).borders.danger,size:1.25*b.iI})})}),(0,O.jsx)(s.Z,{mr:1}),(0,O.jsx)(d.ZP,{muted:!Z,children:j?j(n):n})]})}),(0,O.jsx)(s.Z,{mr:2}),(0,O.jsx)(f.Z,{label:"Close",size:null,widthFitContent:!0,children:(0,O.jsxs)(a.Z,{autoHeight:!0,block:!0,noHoverUnderline:!0,noOutline:!0,onClick:function(e){(0,g.j)(e),null===y||void 0===y||y(n)},preventDefault:!0,children:[(P||Z)&&(0,O.jsx)(p.x8,{muted:!Z,size:1.25*b.iI}),!P&&!Z&&(0,O.jsx)("div",{style:{width:1.25*b.iI}})]})})]})})})},j=t(24224),S=["filePaths","isSelectedFilePath","onClickTabClose","selectedFilePath"];function Z(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 x(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?Z(Object(t),!0).forEach((function(n){(0,r.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Z(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var w=function(e){var n=e.filePaths,t=e.isSelectedFilePath,r=e.onClickTabClose,c=e.selectedFilePath,a=(0,i.Z)(e,S),s=(0,o.useContext)(u.ThemeContext),d=(0,o.useMemo)((function(){return n.map((function(e){return decodeURIComponent(e)}))}),[n]),f=(0,o.useMemo)((function(){return null===d||void 0===d?void 0:d.length}),[d]);return(0,O.jsx)(l.Z,{alignItems:"center",justifyContent:"flex-start",children:null===d||void 0===d?void 0:d.map((function(e,n){var i=t?t(e,c):c===encodeURIComponent(e);return(0,o.createElement)(y,x(x({},a),{},{filePath:e,isLast:n===f-1,key:e,onClickTabClose:function(e){if(r)r(e);else{var n=(0,j.Od)(d,(function(n){return n===e})).map((function(e){return encodeURIComponent(e)}));(0,m.u7)({file_path:n[n.length-1]||null,"file_paths[]":n},{pushHistory:!0})}},selected:i,themeContext:s}))}))})}},28347:function(e,n,t){"use strict";t.d(n,{Gb:function(){return f},fm:function(){return s},lO:function(){return a},rK:function(){return d},zn:function(){return l}});var r=t(38626),i=t(23831),o=t(82386),u=t(49125),c=t(37391),l=300,a=r.default.div.withConfig({displayName:"indexstyle__PipelineContainerStyle",componentId:"sc-1sv9513-0"})([".pipeline-detail-enter-active{opacity:1;transition:opacity ","ms linear;}.pipeline-detail-enter-done{opacity:0;transition:opacity ","ms linear;}"],l,l),s=r.default.div.withConfig({displayName:"indexstyle__OverlayStyle",componentId:"sc-1sv9513-1"})(["height:100vh;opacity:1;position:fixed;width:100vw;z-index:9999;",""],(function(e){return"\n background-color: ".concat((e.theme.background||i.Z.background).codeArea,";\n ")})),d=r.default.div.withConfig({displayName:"indexstyle__PipelineHeaderStyle",componentId:"sc-1sv9513-2"})(["height:","px;position:sticky;top:","px;width:100%;z-index:5;"," "," "," ",""],o.Wi,o.Wi,(function(e){return"\n background-color: ".concat((e.theme.background||i.Z.background).panel,";\n border-bottom: 1px solid ").concat((e.theme.borders||i.Z.borders).medium,";\n ")}),(function(e){return e.relativePosition&&"\n position: relative;\n "}),(function(e){return e.secondary&&"\n height: ".concat(37,"px;\n top: ").concat(o.Wi,"px;\n overflow-x: auto;\n z-index: 3;\n ")}),(0,c.y$)()),f=r.default.div.withConfig({displayName:"indexstyle__FileTabStyle",componentId:"sc-1sv9513-3"})(["border-right:1px solid transparent;height:100%;padding:","px ","px;"," "," ",""],u.iI,u.cd*u.iI,(function(e){return"\n &:hover {\n cursor: default;\n\n p {\n color: ".concat((e.theme.content||i.Z.content).active," !important;\n cursor: default;\n }\n }\n ")}),(function(e){return e.selected&&"\n background-color: ".concat((e.theme.interactive||i.Z.interactive).hoverBackground,";\n ")}),(function(e){return!e.selected&&!e.last&&"\n border-color: ".concat((e.theme.borders||i.Z.borders).light," !important;\n ")}))},60701:function(e,n,t){"use strict";t.d(n,{Qq:function(){return f},Z7:function(){return v},cH:function(){return i},du:function(){return s},fp:function(){return a},j5:function(){return d},uM:function(){return l}});var r,i,o=t(82394),u=t(10503),c=t(24224),l="sideview",a=90;!function(e){e.ADDON_BLOCKS="addon_blocks",e.BLOCK_SETTINGS="block_settings",e.CALLBACKS="callbacks",e.CHARTS="charts",e.DATA="data",e.EXTENSIONS="power_ups",e.FILE_VERSIONS="file_versions",e.GRAPHS="graphs",e.REPORTS="reports",e.SECRETS="secrets",e.SETTINGS="settings",e.TERMINAL="terminal",e.TREE="tree",e.VARIABLES="variables"}(i||(i={}));i.BLOCK_SETTINGS,i.CALLBACKS,i.CHARTS,i.DATA,i.EXTENSIONS,i.TREE;var s=[i.DATA],d=[{key:i.TREE,label:"Tree"},{buildLabel:function(e){var n=(e.pipeline||{}).widgets,t=void 0===n?[]:n;return(null===t||void 0===t?void 0:t.length)>=1?"Charts (".concat(t.length,")"):"Charts"},key:i.CHARTS},{buildLabel:function(e){var n=e.variables;return(null===n||void 0===n?void 0:n.length)>=1?"Variables (".concat(n.length,")"):"Variables"},key:i.VARIABLES},{buildLabel:function(e){var n=e.secrets;return(null===n||void 0===n?void 0:n.length)>=1?"Secrets (".concat(n.length,")"):"Secrets"},key:i.SECRETS},{buildLabel:function(e){e.pipeline;return"Add-on blocks"},key:i.ADDON_BLOCKS},{buildLabel:function(e){var n=(e.pipeline||{}).extensions,t=void 0===n?{}:n,r=0;return Object.values(t).forEach((function(e){var n=e.blocks;r+=(null===n||void 0===n?void 0:n.length)||0})),r>=1?"Power ups (".concat(r,")"):"Power ups"},key:i.EXTENSIONS},{key:i.DATA,label:"Data"},{key:i.TERMINAL,label:"Terminal"},{key:i.BLOCK_SETTINGS,label:"Block settings"}],f=(0,c.HK)(d,(function(e){return e.key})),v=(r={},(0,o.Z)(r,i.ADDON_BLOCKS,u.EJ),(0,o.Z)(r,i.BLOCK_SETTINGS,u.JG),(0,o.Z)(r,i.CALLBACKS,u.AQ),(0,o.Z)(r,i.CHARTS,u.GQ),(0,o.Z)(r,i.DATA,u.iA),(0,o.Z)(r,i.EXTENSIONS,u.Bf),(0,o.Z)(r,i.SECRETS,u.Yo),(0,o.Z)(r,i.SETTINGS,u.Zr),(0,o.Z)(r,i.TERMINAL,u.oI),(0,o.Z)(r,i.TREE,u.mp),(0,o.Z)(r,i.VARIABLES,u.LO),r)},73828:function(e,n,t){"use strict";t.d(n,{JD:function(){return b},Lu:function(){return o},PF:function(){return v},d2:function(){return f},dT:function(){return u},n6:function(){return a},nB:function(){return h},oy:function(){return p},xF:function(){return d}});var r,i,o,u,c=t(82394),l=t(86422);!function(e){e.CSV="csv",e.JSON="json",e.MD="md",e.PY="py",e.R="r",e.SQL="sql",e.TXT="txt",e.YAML="yaml",e.YML="yml"}(o||(o={})),function(e){e.INIT_PY="__init__.py",e.METADATA_YAML="metadata.yaml",e.REQS_TXT="requirements.txt"}(u||(u={}));var a=[o.PY,o.SQL],s=[o.JSON,o.MD,o.PY,o.R,o.SQL,o.TXT,o.YAML,o.YML],d=new RegExp(s.map((function(e){return".".concat(e,"$")})).join("|")),f=new RegExp(s.map((function(e){return".".concat(e,"$")})).join("|")),v="charts",p="pipelines",h=(r={},(0,c.Z)(r,o.MD,l.t6.MARKDOWN),(0,c.Z)(r,o.JSON,o.JSON),(0,c.Z)(r,o.PY,l.t6.PYTHON),(0,c.Z)(r,o.R,l.t6.R),(0,c.Z)(r,o.SQL,l.t6.SQL),(0,c.Z)(r,o.TXT,"text"),(0,c.Z)(r,o.YAML,l.t6.YAML),(0,c.Z)(r,o.YML,l.t6.YAML),r),b=(i={},(0,c.Z)(i,l.t6.MARKDOWN,o.MD),(0,c.Z)(i,l.t6.PYTHON,o.PY),(0,c.Z)(i,l.t6.R,o.R),(0,c.Z)(i,l.t6.SQL,o.SQL),(0,c.Z)(i,l.t6.YAML,o.YAML),(0,c.Z)(i,"text",o.TXT),i)},66176:function(e,n,t){"use strict";var r=t(82394),i=t(91835),o=(t(82684),t(38626)),u=t(23831),c=t(73942),l=t(49125),a=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 d(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,r.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 f=o.default.div.withConfig({displayName:"ProgressBar__ProgressBarContainerStyle",componentId:"sc-10x9ojc-0"})(["border-radius:","px;height:","px;overflow:hidden;position:relative;width:100%;",""],c.BG,.75*l.iI,(function(e){return"\n background-color: ".concat((e.theme.monotone||u.Z.monotone).grey200,";\n ")})),v=o.default.div.withConfig({displayName:"ProgressBar__ProgressBarStyle",componentId:"sc-10x9ojc-1"})(["height:inherit;position:absolute;"," "," "," ",""],(function(e){return!e.danger&&"\n background-color: ".concat((e.theme.progress||u.Z.progress).positive,";\n ")}),(function(e){return e.progress&&"\n width: ".concat(e.progress,"%;\n ")}),(function(e){return e.danger&&"\n background-color: ".concat((e.theme.progress||u.Z.progress).negative,";\n ")}),(function(e){return e.animateProgress&&"\n animation: animate-progress ".concat(e.animateProgress.duration,"ms linear forwards;\n\n @keyframes animate-progress {\n 0% {\n width: ").concat(e.animateProgress.start,"%;\n }\n\n 100% {\n width: ").concat(e.animateProgress.end,"%;\n }\n }\n ")}));n.Z=function(e){var n=(0,i.Z)({},e);return(0,a.jsx)(f,d(d({},n),{},{children:(0,a.jsx)(v,d({},n))}))}},55389:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return Q}});var r=t(77837),i=t(38860),o=t.n(i),u=t(82394),c=t(75582),l=t(17717),a=t(82684),s=t(37958),d=t(83455),f=t(48591),v=t(1210),p=t(46299),h=t(91207),b=t(47999),m=t(67971),g=t(62084),O=t(19711),y=t(16115),j=t(64318),S=t(54405),Z=t(41150),x=t(28598);var w=function(e){var n=e.children,t=e.fileVersionsVisible,r=e.onSave,i=e.setFilesVersionsVisible,o=(0,a.useState)(null),u=o[0],c=o[1],l=(0,a.useRef)(null),s=(0,a.useRef)(null),d=(0,a.useMemo)((function(){return[{disabled:!r,keyTextGroups:[[(0,S.V5)()?y.RJ:y.hE,y.SS]],label:function(){return"Save"},onClick:function(){return r?r():null},uuid:"save"}]}),[r]),f=(0,a.useMemo)((function(){return[{label:function(){return t?"Hide versions":"Show versions"},onClick:function(){return i(!t)},uuid:"versions"}]}),[t,i]),v="FileHeaderMenu/index",p=(0,Z.y)(),h=p.registerOnKeyDown,w=p.unregisterOnKeyDown;return(0,a.useEffect)((function(){return function(){w(v)}}),[w,v]),h(v,(function(e,n){null!==u&&(n[y.QK]?c((function(e){return 0===e?2:e-1})):n[y.DY]&&c((function(e){return 2===e?0:e+1})))}),[u,c]),(0,x.jsx)(b.Z,{onClickOutside:function(){return c(null)},open:!0,style:{position:"relative"},children:(0,x.jsxs)(m.Z,{children:[(0,x.jsxs)("div",{style:{position:"relative"},children:[(0,x.jsx)(j.u,{highlighted:0===u,onClick:function(){return c((function(e){return 0===e?null:0}))},onMouseEnter:function(){return c((function(e){return null!==e?0:null}))},ref:l,children:(0,x.jsx)(O.ZP,{children:"File"})}),(0,x.jsx)(g.Z,{items:d,onClickCallback:function(){return c(null)},open:0===u,parentRef:l,uuid:"FileHeaderMenu/file"})]}),(0,x.jsxs)("div",{style:{position:"relative"},children:[(0,x.jsx)(j.u,{highlighted:1===u,onClick:function(){return c((function(e){return 1===e?null:1}))},onMouseEnter:function(){return c((function(e){return null!==e?1:null}))},ref:s,children:(0,x.jsx)(O.ZP,{children:"Edit"})}),(0,x.jsx)(g.Z,{items:f,onClickCallback:function(){return c(null)},open:1===u,parentRef:s,uuid:"FileHeaderMenu/edit"})]}),n]})})},P=t(38488),C=t(23351),k=t(82531),E=t(38626),T=t(23831),D=t(82386),M=t(3055),A=t(37391),_=72-D.uX+M.Mz,R=E.default.div.withConfig({displayName:"indexstyle__HeaderStyle",componentId:"sc-11pty4f-0"})(["height:","px;top:","px;z-index:3;",""],72,M.Mz,(function(e){return"\n background-color: ".concat((e.theme.background||T.Z.background).codeArea,";\n ")})),I=E.default.div.withConfig({displayName:"indexstyle__MenuStyle",componentId:"sc-11pty4f-1"})(["height:","px;position:relative;z-index:1;",""],36,(function(e){return"\n border-bottom: 1px solid ".concat((e.theme.borders||T.Z.borders).medium,";\n ")})),N=E.default.div.withConfig({displayName:"indexstyle__TabsStyle",componentId:"sc-11pty4f-2"})([""," height:","px;overflow-x:auto;position:sticky;width:100%;z-index:0;"],(0,A.y$)(),36),L=t(91427),H=t(24224),F="open_files";function Y(e){(0,L.t8)(F,e)}var B=t(96510),U=t(51504),V=t(9728);function W(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 K(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?W(Object(t),!0).forEach((function(n){(0,u.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):W(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function X(e){var n=e.split(l.sep);return n[n.length-1]}var z=function(){var e=(0,s.j)("apiReloads"),n=(0,c.Z)(e,2)[1],t=(0,a.useRef)(null),r=(0,a.useRef)(null),i=(0,a.useCallback)((function(e){r.current||(r.current={}),r.current=K(K({},r.current),e)}),[r]),o=(0,a.useState)([]),l=o[0],b=o[1],m=(0,a.useState)(null),g=m[0],O=m[1],j=(0,a.useState)({}),S=j[0],E=j[1],T=(0,a.useState)(!1),D=T[0],M=T[1],A=(0,a.useMemo)((function(){return l.reduce((function(e,n){var t=X(n);return e[t]||(e[t]=[]),e[t].push(n),e}),{})}),[l]),W=(0,a.useCallback)((function(e){Y(e),b(e)}),[]),z=(0,a.useCallback)((function(e){W(function(e){var n=(0,L.U2)(F,[]);return n.includes(e)||n.push(e),Y(n),n}(e))}),[W]),G=(0,a.useCallback)((function(e){i((0,u.Z)({},e,null)),E((function(n){return K(K({},n),{},(0,u.Z)({},e,!1))}));var n=function(e){var n=(0,L.U2)(F,[]),t=(0,H.Od)(n,(function(n){return n===e}));return Y(t),t}(e);W(n),g===e&&(null===n||void 0===n?void 0:n.length)>=1&&O(n[n.length-1]),0===(null===n||void 0===n?void 0:n.length)&&O(null)}),[g,i,W]),J=(0,a.useCallback)((function(e,n){n||(z(e),O(e))}),[z]);(0,a.useEffect)((function(){var e=(0,L.U2)(F,[]);W(e),O((function(n){return!n&&(null===e||void 0===e?void 0:e.length)>=1?e[0]:n}))}),[W]);var Q=k.ZP.files.list(),q=Q.data,$=Q.mutate,ee=(0,a.useMemo)((function(){return(null===q||void 0===q?void 0:q.files)||[]}),[q]),ne=(0,V.VI)(null,{},[],{uuid:"FilesPage"}),te=(0,c.Z)(ne,1)[0],re="Files/index",ie=(0,Z.y)(),oe=(ie.disableGlobalKeyboardShortcuts,ie.registerOnKeyDown),ue=ie.unregisterOnKeyDown;(0,a.useEffect)((function(){return function(){ue(re)}}),[ue,re]),oe(re,(function(e,n){var t=Object.entries(S).reduce((function(e,n){var t=(0,c.Z)(n,2),r=t[0];return t[1]?e.concat(r):e}),[]);if((0,U.y)([y.zX,y.hS],n)&&(null===t||void 0===t?void 0:t.length)>=1){e.preventDefault();var r="You have changes that are unsaved: ".concat(t.join(", "),". ")+"Click cancel and save your changes before reloading page.";"undefined"!==typeof location&&window.confirm(r)&&location.reload()}}),[S]);var ce=(0,a.useMemo)((function(){return(0,x.jsx)(P.Z,{filePaths:l,filesTouched:S,isSelectedFilePath:function(e,n){return e===n},onClickTab:function(e){return O(e)},onClickTabClose:function(e){return G(e)},renderTabTitle:function(e){var n=X(e),t=A[n];return t&&(null===t||void 0===t?void 0:t.length)>=2?e:n},selectedFilePath:g})}),[S,l,A,G,g]),le=(0,a.useMemo)((function(){return(0,x.jsx)(p.Z,{fetchFileTree:$,files:ee,onClickFile:function(e){return J(e)},onClickFolder:function(e){return J(e,!0)},onCreateFile:function(e){var n=e.path;return J(n)},ref:t,setErrors:te})}),[$,t,ee,J,te]),ae=(0,d.Db)((function(e){return k.ZP.file_contents.useUpdate((null===e||void 0===e?void 0:e.path)&&encodeURIComponent(null===e||void 0===e?void 0:e.path))({file_content:e})}),{onSuccess:function(e){return(0,B.wD)(e,{callback:function(e){var t=e.file_content;n((function(e){return K(K({},e),{},(0,u.Z)({},"FileVersions/".concat(null===t||void 0===t?void 0:t.path),Number(new Date)))})),i((0,u.Z)({},null===t||void 0===t?void 0:t.path,null))},onErrorCallback:function(e,n){return te({errors:n,response:e})}})}}),se=(0,c.Z)(ae,1)[0],de=(0,a.useCallback)((function(e,n){se(K(K({},n),{},{content:e})),E((function(e){return K(K({},e),{},(0,u.Z)({},null===n||void 0===n?void 0:n.path,!1))}))}),[E,se]),fe=(0,a.useMemo)((function(){return null===l||void 0===l?void 0:l.map((function(e){return(0,x.jsx)("div",{style:{display:g===e?null:"none"},children:(0,x.jsx)(f.Z,{uuid:"FileEditor/".concat(decodeURIComponent(e)),children:(0,x.jsx)(h.Z,{active:g===e,disableRefreshWarning:!0,filePath:e?encodeURIComponent(e):null,hideHeaderButtons:!0,onContentChange:function(n){return i((0,u.Z)({},e,n))},saveFile:de,selectedFilePath:g,setErrors:te,setFilesTouched:E})})},e)}))}),[l,de,g,i,te]),ve=(0,a.useMemo)((function(){return(0,x.jsx)(w,{fileVersionsVisible:D,onSave:function(){var e,n;(null===r||void 0===r||null===(e=r.current)||void 0===e||null===(n=e[g])||void 0===n?void 0:n.length)>=1&&de(r.current[g],{path:g})},setFilesVersionsVisible:M})}),[r,D,de,g,M]);return(0,x.jsx)(v.Z,{after:(0,x.jsx)(f.Z,{uuid:"FileVersions/".concat(g?decodeURIComponent(g):""),children:(0,x.jsx)(C.Z,{selectedFilePath:g,setErrors:te})}),afterHidden:!(D&&g),before:le,headerOffset:_,mainContainerHeader:(null===l||void 0===l?void 0:l.length)>=1&&(0,x.jsxs)(R,{children:[(0,x.jsx)(I,{children:ve}),(0,x.jsx)(N,{children:ce})]}),title:"Files",uuid:"Files/index",children:fe})},G=t(41788);function J(){return(0,x.jsx)(z,{})}J.getInitialProps=(0,r.Z)(o().mark((function e(){return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",{});case 1:case"end":return e.stop()}}),e)})));var Q=(0,G.Z)(J)},37958:function(e,n,t){"use strict";t.d(n,{j:function(){return r}});var r=(0,t(44152).r)({apiReloads:{}}).useGlobalState},42305:function(e,n,t){"use strict";t.d(n,{A5:function(){return O},AY:function(){return y},BP:function(){return g},JX:function(){return m},OC:function(){return d},Pc:function(){return j},Ro:function(){return S},Tz:function(){return b},Y_:function(){return x},d$:function(){return h},jV:function(){return Z},lJ:function(){return w},n1:function(){return v},s8:function(){return a},vk:function(){return o},yD:function(){return s}});var r,i,o,u=t(82394),c=t(92083),l=t.n(c);!function(e){e.TODAY="today",e.WEEK="week",e.MONTH="month"}(o||(o={}));var a=(r={},(0,u.Z)(r,o.TODAY,"today"),(0,u.Z)(r,o.WEEK,"last 7 days"),(0,u.Z)(r,o.MONTH,"last 30 days"),r),s=(i={},(0,u.Z)(i,o.TODAY,0),(0,u.Z)(i,o.WEEK,6),(0,u.Z)(i,o.MONTH,29),i),d="YYYY-MM-DD HH:mm:ss",f="YYYY-MM-DD HH:mm",v="YYYY-MM-DD",p="MMMM D, YYYY";function h(e,n){var t=n.dayAgo,r=n.includeSeconds,i=n.utcFormat,o=l()(e),u=f;return i&&(o=o.utc()),t&&(o=o.subtract(1,"days")),r&&(u=d),o.format(u)}function b(e){var n=h((new Date).toISOString(),{includeSeconds:!0,utcFormat:!0});return null!==e&&void 0!==e&&e.dateObj?new Date(n):n}function m(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return l().unix(e).format(null!==n&&void 0!==n&&n.withSeconds?d:f)}function g(e,n,t){return l()(e).utc().hours(+n).minutes(+t).format()}function O(e){return l()(e).unix()}function y(e,n,t,r){var i="".concat(e.toISOString().split("T")[0]," ").concat(n,":").concat(t);return r?"".concat(i,":").concat(r):i}function j(e){var n=l().unix(+e).utc();return{date:n.toDate(),hour:String(n.hour()),minute:String(n.minute())}}function S(e,n){var t=l().utc(),r=l().utc();null!==n&&void 0!==n&&n.localTime&&(t=l()().local(),r=l()().local());var i=(t=t.subtract(e,"days")).format(p),o=r.format(p);return null!==n&&void 0!==n&&n.endDateOnly?o:"".concat(i," - ").concat(o)}function Z(e,n){var t=null!==n&&void 0!==n&&n.localTime?l()().local():l().utc();if(e===o.WEEK){var r=s[o.WEEK];t=t.subtract(r,"days")}else if(e===o.MONTH){var i=s[o.MONTH];t=t.subtract(i,"days")}return null!==n&&void 0!==n&&n.isoString?t.startOf("day").toISOString():t.startOf("day").format(d)}function x(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:90,n=new Date,t=[],r=0;r<e;r++)t.unshift(n.toISOString().split("T")[0]),n.setDate(n.getDate()-1);return t}function w(e){return e.padStart(2,"0")}},54405:function(e,n,t){"use strict";var r;t.d(n,{V5:function(){return o}}),function(e){e.ANDROID="Android",e.CHROME_OS="ChromeOS",e.IOS="iOS",e.LINUX="Linux",e.MAC="macOS",e.WINDOWS="Windows"}(r||(r={}));var i=r;function o(){return function(){var e,n,t,r,o,u,c,l=i.MAC,a=null===(e=window)||void 0===e||null===(n=e.navigator)||void 0===n?void 0:n.userAgent,s=(null===(t=window)||void 0===t||null===(r=t.navigator)||void 0===r||null===(o=r.userAgentData)||void 0===o?void 0:o.platform)||(null===(u=window)||void 0===u||null===(c=u.navigator)||void 0===c?void 0:c.platform);return s?["macOS","Macintosh","MacIntel","MacPPC","Mac68K"].includes(s)?l=i.MAC:["Win32","Win64","Windows","WinCE"].includes(s)?l=i.WINDOWS:["iPhone","iPad","iPod"].includes(s)&&(l=i.IOS):a&&(a.includes("Macintosh")?l=i.MAC:a.includes("Windows")?l=i.WINDOWS:a.includes("Linux")&&a.includes("X11")?l=i.LINUX:/(iPhone|iPad)/.test(a)?l=i.IOS:a.includes("Android")&&a.includes("Mobi")?l=i.ANDROID:a.includes("CrOS")&&(l=i.CHROME_OS)),l}()===i.MAC}},33766:function(e,n,t){"use strict";t.d(n,{O2:function(){return d},g_:function(){return v},u7:function(){return f}});var r=t(75582),i=t(82394),o=t(34376),u=t.n(o),c=t(59e3),l=t(24224);function a(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 s(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?a(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):a(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var d="_offset";function f(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=n.preserveParams,i=n.pushHistory,o=n.replaceParams,l=(0,c.iV)(),a={};t&&t.forEach((function(e){l[e]&&(a[e]=l[e])}));var d,f=o?a:l;d=window.location.pathname;var v=i?u().push:u().replace,p=s(s({},f),e);Object.entries(e).forEach((function(e){var n=(0,r.Z)(e,2),t=n[0],i=n[1];"undefined"!==typeof i&&null!==i||delete p[t]}));var h=(0,c.uM)(p);h.length>=1&&(h="?".concat(h));var b="".concat(d.split("?")[0]).concat(h);return v(u().router.pathname,b,{shallow:!0})}function v(e,n,t){var i=t.addingMultipleValues,o=t.isList,u=t.itemsPerPage,c=t.pushHistory,a=void 0!==c&&c,v=t.resetLimitParams,p=s({},e);i?Object.entries(n).forEach((function(e){var n=(0,r.Z)(e,2),t=n[0],i=n[1];if(Array.isArray(i)){var o="".concat(t,"[]");p[o]=i.map(String)}})):o?Object.entries(n).forEach((function(e){var n=(0,r.Z)(e,2),t=n[0],i=n[1],o=String(i),u="".concat(t,"[]"),c=p[u];c&&Array.isArray(c)?(c=c.map(String)).includes(o)?p[u]=(0,l.Od)(c,(function(e){return e===o})):p[u]=c.concat(o):p[u]=[o]})):p=s(s({},p),n),v&&(p._limit=u||20,p[d]=0),f(p,{pushHistory:a})}},99017:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/files",function(){return t(55389)}])}},function(e){e.O(0,[844,9902,8789,7011,5643,1424,1005,7815,3654,7722,6299,9774,2888,179],(function(){return n=99017,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([[1911],{1210:function(e,n,t){"use strict";t.d(n,{Z:function(){return _}});var r=t(82394),i=t(21831),o=t(82684),u=t(47999),c=t(49894),s=t(93461),l=t(57384),a=t(41424),f=t(72454),d=t(28598);function p(e,n){var t=e.children;return(0,d.jsx)(f.HS,{ref:n,children:t})}var h=o.forwardRef(p),m=t(32063),b=t(85019),v=t(82531),y=t(66166),g=t(3055),j=t(49125),w=t(91427),O=t(24141);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 x(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,r.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 _=function(e){var n,t=e.addProjectBreadcrumbToCustomBreadcrumbs,r=e.after,p=e.afterHidden,S=e.afterWidth,_=e.afterWidthOverride,P=e.before,Z=e.beforeWidth,N=e.breadcrumbs,I=e.children,E=e.errors,k=e.headerMenuItems,C=e.headerOffset,H=e.mainContainerHeader,z=e.navigationItems,R=e.setErrors,M=e.subheaderChildren,A=e.title,D=e.uuid,W=(0,O.i)().width,B="dashboard_after_width_".concat(D),T="dashboard_before_width_".concat(D),F=(0,o.useRef)(null),U=(0,o.useState)(_?S:(0,w.U2)(B,S)),L=U[0],X=U[1],G=(0,o.useState)(!1),K=G[0],Q=G[1],J=(0,o.useState)(P?Math.max((0,w.U2)(T,Z),13*j.iI):null),V=J[0],Y=J[1],q=(0,o.useState)(!1),$=q[0],ee=q[1],ne=(0,o.useState)(null)[1],te=v.ZP.projects.list({},{revalidateOnFocus:!1}).data,re=null===te||void 0===te?void 0:te.projects,ie={label:function(){var e;return null===re||void 0===re||null===(e=re[0])||void 0===e?void 0:e.name},linkProps:{href:"/"}},oe=[];N?(t&&oe.push(ie),oe.push.apply(oe,(0,i.Z)(N))):(null===re||void 0===re?void 0:re.length)>=1&&oe.push.apply(oe,[ie,{bold:!0,label:function(){return A}}]),(0,o.useEffect)((function(){null===F||void 0===F||!F.current||K||$||null===ne||void 0===ne||ne(F.current.getBoundingClientRect().width)}),[K,L,$,V,F,ne,W]),(0,o.useEffect)((function(){K||(0,w.t8)(B,L)}),[p,K,L,B]),(0,o.useEffect)((function(){$||(0,w.t8)(T,V)}),[$,V,T]);var ue=(0,y.Z)(S);return(0,o.useEffect)((function(){_&&ue!==S&&X(S)}),[_,S,ue]),(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(l.Z,{title:A}),(0,d.jsx)(a.Z,{breadcrumbs:oe,menuItems:k,project:null===re||void 0===re?void 0:re[0],version:null===re||void 0===re||null===(n=re[0])||void 0===n?void 0:n.version}),(0,d.jsxs)(f.Nk,{children:[0!==(null===z||void 0===z?void 0:z.length)&&(0,d.jsx)(f.lm,{showMore:!0,children:(0,d.jsx)(b.Z,{navigationItems:z,showMore:!0})}),(0,d.jsx)(s.Z,{flex:1,flexDirection:"column",children:(0,d.jsxs)(m.Z,{after:r,afterHeightOffset:g.Mz,afterHidden:p,afterMousedownActive:K,afterWidth:L,before:P,beforeHeightOffset:g.Mz,beforeMousedownActive:$,beforeWidth:f.k1+(P?V:0),headerOffset:C,hideAfterCompletely:!0,leftOffset:P?f.k1:null,mainContainerHeader:H,mainContainerRef:F,setAfterMousedownActive:Q,setAfterWidth:X,setBeforeMousedownActive:ee,setBeforeWidth:Y,children:[M&&(0,d.jsx)(h,{children:M}),I]})})]}),E&&(0,d.jsx)(u.Z,{disableClickOutside:!0,isOpen:!0,onClickOutside:function(){return null===R||void 0===R?void 0:R(null)},children:(0,d.jsx)(c.Z,x(x({},E),{},{onClose:function(){return null===R||void 0===R?void 0:R(null)}}))})]})}},84392:function(e,n,t){"use strict";t.d(n,{HF:function(){return u},L6:function(){return r}});var r,i=t(46336),o=t(10503);function u(e,n,t){var u=e.owner,c=(e.roles,[{Icon:o.Vz,id:r.WORKSPACES,isSelected:function(){return r.WORKSPACES===t},label:function(){return"Workspaces"},linkProps:{href:"/manage"}}]);return u&&c.push({Icon:o.NO,id:r.USERS,isSelected:function(){return r.USERS===t},label:function(){return"Users"},linkProps:{href:"/manage/users"}}),n==i.k.MAIN&&c.push({Icon:o.Zr,id:r.SETTINGS,isSelected:function(){return r.SETTINGS===t},label:function(){return"Settings"},linkProps:{href:"/manage/settings"}}),c}!function(e){e.WORKSPACES="workspaces",e.USERS="users",e.SETTINGS="settings"}(r||(r={}))},3849:function(e,n,t){"use strict";var r=t(82684),i=t(1210),o=t(82531),u=t(49125),c=t(84392),s=t(9736),l=t(28598);n.Z=function(e){var n=e.before,t=e.breadcrumbs,a=void 0===t?[]:t,f=e.children,d=e.errors,p=e.pageName,h=e.subheaderChildren,m=o.ZP.statuses.list().data,b=(0,r.useMemo)((function(){var e,n;return null===m||void 0===m||null===(e=m.statuses)||void 0===e||null===(n=e[0])||void 0===n?void 0:n.project_type}),[m]),v=(0,s.PR)()||{};return(0,l.jsx)(i.Z,{before:n,beforeWidth:n?50*u.iI:0,breadcrumbs:a,errors:d,navigationItems:(0,c.HF)(v,b,p),subheaderChildren:h,title:"Workspaces",uuid:"workspaces/index",children:f})}},46336:function(e,n,t){"use strict";var r;t.d(n,{k:function(){return r}}),function(e){e.MAIN="main",e.STANDALONE="standalone",e.SUB="sub"}(r||(r={}))},87372:function(e,n,t){"use strict";var r,i,o,u,c,s,l,a,f=t(82394),d=t(26304),p=t(26653),h=t(38626),m=t(33591),b=t(23831),v=t(2005),y=t(31012),g=t(19711),j=t(49125),w=t(86673),O=t(28598),S=["children","condensed","inline","level","marketing","spacingBelow"];function x(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 _(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?x(Object(t),!0).forEach((function(n){(0,f.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):x(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var P=(0,h.css)([""," margin:0;"," "," "," "," "," "," "," "," "," "," "," "," ",""],g.IH,(function(e){return e.color&&"\n color: ".concat(e.color,"\n ")}),(function(e){return e.yellow&&"\n color: ".concat((e.theme.accent||b.Z.accent).yellow,";\n ")}),(function(e){return e.center&&"\n text-align: center;\n "}),(function(e){return!e.monospace&&0===Number(e.weightStyle)&&"\n font-family: ".concat(v.iI,";\n ")}),(function(e){return!e.monospace&&1===Number(e.weightStyle)&&"\n font-family: ".concat(v.LX,";\n ")}),(function(e){return!e.monospace&&2===Number(e.weightStyle)&&"\n font-family: ".concat(v.LX,";\n ")}),(function(e){return!e.monospace&&3===Number(e.weightStyle)&&"\n font-family: ".concat(v.ry,";\n ")}),(function(e){return!e.monospace&&4===Number(e.weightStyle)&&"\n font-family: ".concat(v.YC,";\n ")}),(function(e){return!e.monospace&&5===Number(e.weightStyle)&&"\n font-family: ".concat(v.nF,";\n ")}),(function(e){return!e.monospace&&(6===Number(e.weightStyle)||e.bold)&&"\n font-family: ".concat(v.nF,";\n ")}),(function(e){return!e.monospace&&7===Number(e.weightStyle)&&"\n font-family: ".concat(v.nF,";\n ")}),(function(e){return!e.monospace&&8===Number(e.weightStyle)&&"\n font-family: ".concat(v.nF,";\n ")}),(function(e){return e.lineHeightAuto&&"\n line-height: normal !important;\n "})),Z=h.default.div.withConfig({displayName:"Headline__HeadlineContainerStyle",componentId:"sc-12jzt2e-0"})(["",""],(function(e){return"\n color: ".concat((e.theme.content||b.Z.content).active,";\n ")})),N=h.default.h1.withConfig({displayName:"Headline__H1HeroStyle",componentId:"sc-12jzt2e-1"})([""," font-size:42px;line-height:56px;"," "," ",""],P,m.media.md(r||(r=(0,p.Z)(["\n ","\n "])),y.aQ),m.media.lg(i||(i=(0,p.Z)(["\n ","\n "])),y.aQ),m.media.xl(o||(o=(0,p.Z)(["\n ","\n "])),y.aQ)),I=h.default.h1.withConfig({displayName:"Headline__H1Style",componentId:"sc-12jzt2e-2"})([""," ",""],P,y.MJ),E=h.default.h1.withConfig({displayName:"Headline__H1MarketingStyle",componentId:"sc-12jzt2e-3"})([""," "," "," "," "," ",""],P,m.media.xs(u||(u=(0,p.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*j.iI,7*j.iI),m.media.sm(c||(c=(0,p.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*j.iI,7*j.iI),m.media.md(s||(s=(0,p.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*j.iI,7*j.iI),m.media.lg(l||(l=(0,p.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*j.iI,7*j.iI),m.media.xl(a||(a=(0,p.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*j.iI,7*j.iI)),k=h.default.h2.withConfig({displayName:"Headline__H2Style",componentId:"sc-12jzt2e-4"})([""," ",""],P,y.BL),C=h.default.h3.withConfig({displayName:"Headline__H3Style",componentId:"sc-12jzt2e-5"})([""," font-size:24px;line-height:32px;"],P),H=h.default.h4.withConfig({displayName:"Headline__H4Style",componentId:"sc-12jzt2e-6"})([""," font-size:20px;line-height:28px;"],P),z=h.default.h5.withConfig({displayName:"Headline__H5Style",componentId:"sc-12jzt2e-7"})([""," font-size:18px;line-height:26px;"],P),R=h.default.span.withConfig({displayName:"Headline__SpanStyle",componentId:"sc-12jzt2e-8"})([""," "," "," "," ",""],P,(function(e){return 1===e.level&&"\n ".concat(y.MJ,"\n ")}),(function(e){return 2===e.level&&"\n ".concat(y.BL,"\n ")}),(function(e){return 3===e.level&&"\n font-size: 24px;\n line-height: 32px;\n "}),(function(e){return 4===e.level&&"\n font-size: 20px;\n line-height: 28px;\n "})),M=function(e){var n,t=e.children,r=e.condensed,i=e.inline,o=e.level,u=e.marketing,c=e.spacingBelow,s=(0,d.Z)(e,S);i?n=R:0===Number(o)?n=N:1===Number(o)?n=u?E:I:2===Number(o)?n=k:3===Number(o)?n=C:4===Number(o)?n=H:5===Number(o)&&(n=z);var l=(0,O.jsxs)(n,_(_({},s),{},{level:o,children:[c&&(0,O.jsx)(w.Z,{mb:r?2:3,children:t}),!c&&t]}));return i?l:(0,O.jsx)(Z,{children:l})};M.defaultProps={level:3,weightStyle:6},n.Z=M},37938:function(e,n,t){"use strict";t.r(n);var r=t(77837),i=t(82394),o=t(38860),u=t.n(o),c=t(82684),s=t(34376),l=t(60328),a=t(87372),f=t(41788),d=t(86673),p=t(87815),h=t(19711),m=t(3849),b=t(82531),v=t(66166),y=t(10503),g=t(49125),j=t(84392),w=t(9736),O=t(7715),S=t(59e3),x=t(96510),_=t(28598);function P(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 Z(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?P(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):P(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function N(){var e=(0,s.useRouter)(),n=(0,c.useState)(null),t=n[0],r=n[1],i=((0,w.PR)()||{}).owner,o=(0,c.useState)(null),u=o[0],f=o[1],P=b.ZP.users.list({},{revalidateOnFocus:!1}),N=P.data;P.mutate;(0,c.useEffect)((function(){(0,x.bB)(N,r)}),[N]);var I=(0,c.useMemo)((function(){return(null===N||void 0===N?void 0:N.users)||[]}),[null===N||void 0===N?void 0:N.users]),E=b.ZP.users.detail(null===u||void 0===u?void 0:u.user_id,{},{revalidateOnFocus:!1}),k=E.data;E.mutate;(0,c.useEffect)((function(){(0,x.bB)(k,r)}),[k]);var C=null===k||void 0===k?void 0:k.user,H=(0,S.iV)(),z=(0,v.Z)(H);return(0,c.useEffect)((function(){var e=H.add_new_user,n=H.user_id;if(!(0,O.Xy)(H,z)){var t=Z(Z({},z),H);n?t.user_id=n:delete t.user_id,e?t.add_new_user=e:delete t.add_new_user,f(t)}}),[H,z]),(0,_.jsxs)(m.Z,{breadcrumbs:[{label:function(){return"Workspaces"},linkProps:{as:"/manage",href:"/manage"}},{bold:!0,label:function(){return"Users"}}],errors:t,pageName:j.L6.USERS,children:[i&&(0,_.jsx)(d.Z,{p:g.cd,children:(0,_.jsx)(l.Z,{beforeIcon:(0,_.jsx)(y.mm,{}),onClick:function(){return e.push("/manage/users/new")},primary:!0,children:"Add new user"})}),(0,_.jsx)(d.Z,{p:g.cd,children:(0,_.jsx)(a.Z,{children:"Users"})}),(0,_.jsx)(p.Z,{columnFlex:[1,1,1],columns:[{uuid:"Username"},{uuid:"Email"},{uuid:"Role"}],isSelectedRow:function(e){var n;return(null===(n=I[e])||void 0===n?void 0:n.id)===(null===C||void 0===C?void 0:C.id)},onClickRow:function(n){var t,r=null===(t=I[n])||void 0===t?void 0:t.id;e.push("/manage/users/[user]","/manage/users/".concat(r))},rows:I.map((function(e){var n=e.email,t=e.roles_display,r=e.roles_new,i=e.username;return[(0,_.jsx)(h.ZP,{bold:!0,children:i},"username"),(0,_.jsx)(h.ZP,{default:!0,children:n},"email"),(0,_.jsx)(h.ZP,{default:!0,children:r&&r[0]?r[0].name:t},"roles")]})),uuid:"pipeline-runs"})]})}N.getInitialProps=(0,r.Z)(u().mark((function e(){return u().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,f.Z)(N)},72695:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/manage/users",function(){return t(37938)}])},80022:function(e,n,t){"use strict";function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}t.d(n,{Z:function(){return r}})},15544:function(e,n,t){"use strict";function r(e){return r=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},r(e)}t.d(n,{Z:function(){return r}})},99177:function(e,n,t){"use strict";function r(e,n){return r=Object.setPrototypeOf||function(e,n){return e.__proto__=n,e},r(e,n)}function i(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),n&&r(e,n)}t.d(n,{Z:function(){return i}})},93189:function(e,n,t){"use strict";t.d(n,{Z:function(){return o}});var r=t(12539),i=t(80022);function o(e,n){if(n&&("object"===r(n)||"function"===typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return(0,i.Z)(e)}}},function(e){e.O(0,[844,1424,1005,7815,9774,2888,179],(function(){return n=72695,e(e.s=n);var n}));var n=e.O();_N_E=n}]);