@kern0x1b/penstock-cli 26.10.3 → 26.10.5

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.
Files changed (182) hide show
  1. package/dist/chunk-account-C8EHysMH.js +1 -0
  2. package/dist/chunk-agentFailure-piRAFLGH.js +1 -0
  3. package/dist/chunk-agentLaunch-C5Uo40vv.js +1 -0
  4. package/dist/chunk-agentServe-4O0syoYQ.js +10 -0
  5. package/dist/chunk-analyze-Brxlb4U1.js +1 -0
  6. package/dist/chunk-analyze-CUxuBgNS.js +1 -0
  7. package/dist/chunk-apply-BAMwoXG9.js +1 -0
  8. package/dist/chunk-atomicWrite-C6J1gDtO.js +1 -0
  9. package/dist/chunk-baseline-DvS2S0am.js +1 -0
  10. package/dist/chunk-bot-I4kuhjyv.js +11 -0
  11. package/dist/chunk-cacheDirectory-7sa0970e.js +1 -0
  12. package/dist/chunk-codeFactSet-DOOlbIIj.js +1 -0
  13. package/dist/chunk-codeIndex-CzENd6hG.js +1 -0
  14. package/dist/chunk-codeLinks-D-gzUjYv.js +1 -0
  15. package/dist/chunk-codeLinks-DLxEBWPi.js +1 -0
  16. package/dist/chunk-command-BR4memGJ.js +1 -0
  17. package/dist/chunk-command-BctoT00W.js +5 -0
  18. package/dist/chunk-command-Jl1msVwF.js +1 -0
  19. package/dist/chunk-commands-CeRlfHY-.js +1 -0
  20. package/dist/chunk-compose-BV9Jg348.js +4 -0
  21. package/dist/chunk-connectors-CVfz5pSg.js +1 -0
  22. package/dist/chunk-connectors-eXPldvkc.js +2 -0
  23. package/dist/chunk-context-DPJmldqg.js +1 -0
  24. package/dist/chunk-convert-B1sgT9kl.js +1 -0
  25. package/dist/chunk-deploy-C4KJK-tw.js +1 -0
  26. package/dist/chunk-deploy-DOXu2-8q.js +2 -0
  27. package/dist/chunk-diagram-BaVwLa4h.js +1 -0
  28. package/dist/chunk-diagram-CCA1-fT5.js +1 -0
  29. package/dist/chunk-diagramDefects-7UG_Iwsr.js +1 -0
  30. package/dist/chunk-diagrams-6suPQBVQ.js +1 -0
  31. package/dist/chunk-diff-BC8gZX5w.js +1 -0
  32. package/dist/chunk-diff-D1m_eKvv.js +1 -0
  33. package/dist/chunk-diffModels-DYtf3au1.js +3 -0
  34. package/dist/chunk-dispatch-CW2CJI0C.js +6 -0
  35. package/dist/chunk-docs-CY6ICsip.js +1 -0
  36. package/dist/chunk-docs-CwY3Ce9M.js +30 -0
  37. package/dist/chunk-doctor-m0mnVdDE.js +1 -0
  38. package/dist/chunk-drawing-shRfnrs9.js +8 -0
  39. package/dist/chunk-editPreview-BgH1JVOD.js +1 -0
  40. package/dist/chunk-engine-CxgdJ2wO.js +1 -0
  41. package/dist/chunk-export-9AWsr5ai.js +1 -0
  42. package/dist/chunk-export-D5kPD4Or.js +20 -0
  43. package/dist/chunk-facts-DA3Y-k9a.js +1 -0
  44. package/dist/chunk-failure-BsimkHy_.js +1 -0
  45. package/dist/chunk-features-BfRg2kR5.js +1 -0
  46. package/dist/chunk-features-BwnwB6jL.js +1 -0
  47. package/dist/chunk-folders-13vx0i0n.js +1 -0
  48. package/dist/chunk-folders-C1Nes4Ap.js +1 -0
  49. package/dist/chunk-formChecks-acRgARZ3.js +1 -0
  50. package/dist/chunk-git-BOKyPQj7.js +3 -0
  51. package/dist/chunk-help-CFhmAhz8.js +85 -0
  52. package/dist/chunk-importCommand-5SJxu2k4.js +1 -0
  53. package/dist/chunk-init-AIh_7yE0.js +227 -0
  54. package/dist/chunk-license-B_To2110.js +1 -0
  55. package/dist/chunk-license-x3oHbKe2.js +1 -0
  56. package/dist/chunk-lint-C_fAcLIg.js +1 -0
  57. package/dist/chunk-load-BVJUBU5S.js +5 -0
  58. package/dist/chunk-main-D3S4Xr__.js +1 -0
  59. package/dist/chunk-mcp-ByMCWlXC.js +76 -0
  60. package/dist/chunk-mcpLaunch-C13ViiIP.js +592 -0
  61. package/dist/chunk-migrate-CLQ-hrae.js +1 -0
  62. package/dist/chunk-migrate-CVUR1K7f.js +1 -0
  63. package/dist/chunk-moddle-AjPH0QEc.js +1 -0
  64. package/dist/chunk-moddle-Dlk0NR-u.js +1 -0
  65. package/dist/chunk-own-CX-3lIbf.js +1 -0
  66. package/dist/chunk-penstockCli-CqiOKC75.js +1 -0
  67. package/dist/chunk-placeholderLayout-B18ekWmh.js +1 -0
  68. package/dist/chunk-plural-Bq_4vgOr.js +1 -0
  69. package/dist/chunk-pr-tC3-PSNM.js +1 -0
  70. package/dist/chunk-preferencesFile-F6bAlNrk.js +1 -0
  71. package/dist/chunk-project-qT-Fk_Rz.js +1 -0
  72. package/dist/chunk-report-CDz78nCI.js +1 -0
  73. package/dist/chunk-review-BqZSohXR.js +1 -0
  74. package/dist/chunk-rules-DJlL7K_Q.js +1 -0
  75. package/dist/chunk-security-5SU-bq3A.js +18 -0
  76. package/dist/chunk-share-YSewfw3F.js +239 -0
  77. package/dist/chunk-src-BLyg_6UX.js +879 -0
  78. package/dist/chunk-stages-C-nhLoBW.js +3 -0
  79. package/dist/chunk-status-DgeSOz3A.js +1 -0
  80. package/dist/chunk-systemError-2me5k57V.js +1 -0
  81. package/dist/chunk-systemError-B-1nL94i.js +1 -0
  82. package/dist/chunk-table-CJtiXv0e.js +1 -0
  83. package/dist/chunk-taskTest-4rIxp0rL.js +2 -0
  84. package/dist/chunk-taskTest-rng12v_b.js +1 -0
  85. package/dist/chunk-templates-Bxe3J0qy.js +1 -0
  86. package/dist/chunk-testCases-CwQ-Mi7L.js +1 -0
  87. package/dist/chunk-testCases-xculyxH_.js +4 -0
  88. package/dist/chunk-tests-C-kNQNpq.js +1 -0
  89. package/dist/chunk-tests-C3XJ9LMT.js +23 -0
  90. package/dist/chunk-translator-BFUJmSkR.js +21 -0
  91. package/dist/chunk-trust-u1vZ6Yk0.js +1 -0
  92. package/dist/chunk-trust-yKw_pXRj.js +1 -0
  93. package/dist/chunk-version-CdS8_QQd.js +1 -0
  94. package/dist/chunk-workerVariables-CCLcoR0U.js +1 -0
  95. package/dist/chunk-wrapper-AJWl6ru-.js +3 -0
  96. package/dist/chunk-wrapper-Bxz1Lgp5.js +1 -0
  97. package/dist/licensing.json +1 -1
  98. package/dist/locales/de.json +9176 -0
  99. package/dist/locales/es.json +9176 -0
  100. package/dist/locales/fr.json +9176 -0
  101. package/dist/locales/ja.json +9023 -0
  102. package/dist/locales/ko.json +9023 -0
  103. package/dist/locales/pt-BR.json +9176 -0
  104. package/dist/locales/ru.json +9482 -0
  105. package/dist/locales/zh.json +9023 -0
  106. package/dist/penstock.js +1 -2102
  107. package/dist/web/assets/{AgentSettings-C-1YBic4.js → AgentSettings-C3Er_rlW.js} +1 -1
  108. package/dist/web/assets/{AgentsDialog-CSu8pyh7.js → AgentsDialog-Bo7kikb6.js} +1 -1
  109. package/dist/web/assets/BpmnCanvas-Dw5zgCN3.js +1905 -0
  110. package/dist/web/assets/BpmnDocument-CuU0biX9.js +24 -0
  111. package/dist/web/assets/{ConflictDialog-nygfF7Dn.js → ConflictDialog-GxZ-d8SK.js} +1 -1
  112. package/dist/web/assets/{DiffDocument-DUrje9io.js → DiffDocument-Bh3hFmmi.js} +1 -1
  113. package/dist/web/assets/{DmnDocument-fn7AH7P1.js → DmnDocument-C8HpJAcE.js} +9 -9
  114. package/dist/web/assets/{FormDocument-BbyRqjib.js → FormDocument-CH-4KB3x.js} +1 -1
  115. package/dist/web/assets/{FormStepView-BYRMBW0U.js → FormStepView-DraPVoAN.js} +1 -1
  116. package/dist/web/assets/GraphAwareLayoutService-C8J8YHJI.js +21 -0
  117. package/dist/web/assets/NewFileDialog-j09JqpPj.js +47 -0
  118. package/dist/web/assets/{QuickOpen-D-u9hdSt.js → QuickOpen-CeBhsCzA.js} +1 -1
  119. package/dist/web/assets/{ScriptPane-BQorfmyv.js → ScriptPane-DDikZDv6.js} +2 -2
  120. package/dist/web/assets/{ScriptRunDialog-DjBW0LRD.js → ScriptRunDialog-DdzJ0pvT.js} +1 -1
  121. package/dist/web/assets/{SettingsDialog-DvYUAKpH.js → SettingsDialog-JUc5zUR9.js} +1 -1
  122. package/dist/web/assets/{ShortcutsDialog-BQ5BYHj3.js → ShortcutsDialog-DECqWPNE.js} +1 -1
  123. package/dist/web/assets/{SourceDocument-BfHVXxuk.js → SourceDocument-X8ajUcxM.js} +1 -1
  124. package/dist/web/assets/{TextDocument-BPepqeGu.js → TextDocument-0z7qojAh.js} +1 -1
  125. package/dist/web/assets/{UnreadableFileLayer-D5B6nixz.js → UnreadableFileLayer-D3G59F4u.js} +1 -1
  126. package/dist/web/assets/{UploadDialog-BzIvQ1YS.js → UploadDialog-CiahYkTc.js} +1 -1
  127. package/dist/web/assets/apply-HqvoGwLE.js +1 -0
  128. package/dist/web/assets/{bpmnTheme-Divwrkjy.js → bpmnTheme-cOvp4qFc.js} +1 -1
  129. package/dist/web/assets/bridgeInstance-DQk-c8L1.js +850 -0
  130. package/dist/web/assets/{commands-N2yKHjf_.js → commands-nPznxvPp.js} +1 -1
  131. package/dist/web/assets/de-Dj813wjn.js +1 -0
  132. package/dist/web/assets/{dialog-DSf66Ory.js → dialog-CtGB1LHI.js} +1 -1
  133. package/dist/web/assets/{diff-DkfgVbKD.js → diff-NgYeO98t.js} +1 -1
  134. package/dist/web/assets/{documentBridge-DSWBQZRP.js → documentBridge-QW0IZ9Bq.js} +8 -8
  135. package/dist/web/assets/{documents-C4vr2KnQ.js → documents-KeXEdK1U.js} +1 -1
  136. package/dist/web/assets/{duplicate-C-AiqE1T.js → duplicate-DNPpPVse.js} +1 -1
  137. package/dist/web/assets/{engines-DG8KgTeX.js → engines-DU0BfbYM.js} +1 -1
  138. package/dist/web/assets/es-CyJDEw4H.js +1 -0
  139. package/dist/web/assets/{formChecks-B_ZFz9DR.js → formChecks-sU20kKkU.js} +1 -1
  140. package/dist/web/assets/fr-B1lqrd3d.js +1 -0
  141. package/dist/web/assets/frontend-caI7mOAL.js +1 -0
  142. package/dist/web/assets/{httpHost-Cll6HteE.js → httpHost-Dqit__mm.js} +1 -1
  143. package/dist/web/assets/{index.es-B0wi5_fv.js → index.es-BqVUpGyA.js} +1 -1
  144. package/dist/web/assets/{index.es-DQAdm_u9.js → index.es-DqkfrvWI.js} +1 -1
  145. package/dist/web/assets/{intelligence-glU4hcHy.js → intelligence-Ck_Q9upa.js} +1 -1
  146. package/dist/web/assets/ja-BUAM_DzQ.js +1 -0
  147. package/dist/web/assets/{jspdf.es.min-xdeBAA_m.js → jspdf.es.min-CM3S4IDt.js} +3 -3
  148. package/dist/web/assets/ko-7l4EjTF9.js +1 -0
  149. package/dist/web/assets/{lib-DJ1i09sd.js → lib-DAKOOgix.js} +1 -1
  150. package/dist/web/assets/{engine-BPUfS3r2.js → moddle-CGpeSs3G.js} +1 -1
  151. package/dist/web/assets/{platform-BS7bgwr3.js → platform-CkWAyNst.js} +1 -1
  152. package/dist/web/assets/preferences-nBrFGN89.js +1 -0
  153. package/dist/web/assets/pt-BR-CxxRL7kF.js +1 -0
  154. package/dist/web/assets/ru-C4gbkVXL.js +1 -0
  155. package/dist/web/assets/{run-Df8AD_as.js → run-B3YvrVeP.js} +1 -1
  156. package/dist/web/assets/{samples-chRLnLcq.js → samples-BVuIm-bu.js} +1 -1
  157. package/dist/web/assets/testCaseRuns-DYKnccnc.js +1 -0
  158. package/dist/web/assets/translator-B2N3PQBL.js +1 -0
  159. package/dist/web/assets/{ui-AICOEtWR.js → ui-3pEQJ50t.js} +1 -1
  160. package/dist/web/assets/{useTrace-B3gDUL0X.js → useTrace-BAXnn0Bt.js} +1 -1
  161. package/dist/web/assets/{web-BtxFF0jJ.js → web-B2zkonPE.js} +8 -8
  162. package/dist/web/assets/zh-DIYPlVjz.js +1 -0
  163. package/dist/web/index.html +20 -20
  164. package/package.json +4 -1
  165. package/dist/web/assets/BpmnCanvas-DnBLxMNQ.js +0 -1905
  166. package/dist/web/assets/BpmnDocument-BPpyqTzJ.js +0 -24
  167. package/dist/web/assets/GraphAwareLayoutService-BiLVDmB7.js +0 -21
  168. package/dist/web/assets/NewFileDialog-Ce_cTeOv.js +0 -34
  169. package/dist/web/assets/apply-B0vauBJn.js +0 -1
  170. package/dist/web/assets/bridgeInstance-D0bzpNGz.js +0 -600
  171. package/dist/web/assets/de-izeWpfua.js +0 -1
  172. package/dist/web/assets/es-CRMYEYWD.js +0 -1
  173. package/dist/web/assets/fr-8pTyPyAI.js +0 -1
  174. package/dist/web/assets/frontend-BLfXy4OQ.js +0 -1
  175. package/dist/web/assets/ja-I1fjeFMy.js +0 -1
  176. package/dist/web/assets/ko-CFd9C-RA.js +0 -1
  177. package/dist/web/assets/preferences-C_EXTz45.js +0 -1
  178. package/dist/web/assets/pt-BR-Dl_APu95.js +0 -1
  179. package/dist/web/assets/ru-_vhcOTod.js +0 -1
  180. package/dist/web/assets/testCaseRuns-DLEqANBi.js +0 -1
  181. package/dist/web/assets/translator-CS9eR0My.js +0 -1
  182. package/dist/web/assets/zh-Do_q1RZ2.js +0 -1
@@ -1 +1 @@
1
- import"./rolldown-runtime-B8BYMn-z.js";import{c as e,i as t,o as n,r,u as i}from"./vendor-NJP34MHU.js";import{i as a}from"./translator-CS9eR0My.js";import{t as o}from"./bridgeInstance-D0bzpNGz.js";import"./platform-BS7bgwr3.js";import{s}from"./ui-AICOEtWR.js";import{i as c}from"./lib-DJ1i09sd.js";import{u as l}from"./index.es-DQAdm_u9.js";function findEmbeddedFormSchema(e,t){if(!e)return null;if(typeof e==`string`){let n=RegExp(`<zeebe:userTaskForm[^>]*id=["']${t}["'][^>]*>([\\s\\S]*?)<\\/zeebe:userTaskForm>`,`i`).exec(e)??RegExp(`<zeebe:userTaskForm[^>]*id=["']userTaskForm_${t}["'][^>]*>([\\s\\S]*?)<\\/zeebe:userTaskForm>`,`i`).exec(e);if(n)try{let e=JSON.parse(n[1].trim());if(typeof e==`object`&&e)return e}catch{}}let n=e.rootElements??(Array.isArray(e)?e:[e]);for(let e of n){let n=e?.extensionElements?.values??[];for(let e of n)if(e.$type===`zeebe:UserTaskForm`||e.$type===`UserTaskForm`){let n=String(e.id??``),r=n.replace(/^userTaskForm_/,``),i=t.replace(/^userTaskForm_/,``);if(n===t||n===`userTaskForm_${t}`||t===`userTaskForm_${n}`||r===i){let t=e.body??e.text??e.content;if(typeof t==`string`)try{let e=JSON.parse(t);if(typeof e==`object`&&e)return e}catch{}}}}return null}async function findFormSchema(e,t,n,r){if(!e)return null;let i=e,a=!1;if(e.startsWith(`camunda-forms:bpmn:`)?(i=e.slice(19),a=!0):e.startsWith(`camunda-forms:deployment:`)?i=e.slice(25):e.startsWith(`camunda-forms:app:`)&&(i=e.slice(18)),a||i.startsWith(`userTaskForm_`)){let e=findEmbeddedFormSchema(t,i);if(e)return e}let o=findEmbeddedFormSchema(t,i);if(o)return o;let s=n.get(i)??n.get(e);if(s){let e=await r(s).catch(()=>null);if(e)try{let t=JSON.parse(e);if(typeof t==`object`&&t)return t}catch{}}for(let[e,t]of n.entries())if(t.endsWith(i)||t.endsWith(`${i}.form`)||e===i){let e=await r(t).catch(()=>null);if(e)try{let t=JSON.parse(e);if(typeof t==`object`&&t)return t}catch{}}let c=await r(i).catch(()=>null);if(c)try{let e=JSON.parse(c);if(typeof e==`object`&&e)return e}catch{}return null}function FormStepView({step:u,review:d,runs:f,onChange:p,onComplete:m,onRevealFile:h}){let g=t(null),_=t(null),v=t({}),[y,b]=e(null),[x,S]=e(!0),C=n(()=>{let e={};for(let t of u.values?.rows??[])t.name&&(e[t.name]=t.value);return e},[u.values?.rows]);if(i(()=>{let e=!1;S(!0);let t=u.links.form;if(!t)b(null),S(!1);else return(async()=>{try{let n=await findFormSchema(t,d.context?.definitions,d.targets.forms,e=>o().readFileIfPresent(e));if(e)return;b(n)}catch{if(e)return;b(null)}finally{e||S(!1)}})(),()=>{e=!0}},[u.links.form,u.elementId,d.context?.definitions,d.targets.forms]),i(()=>{if(g.current&&y)try{let e=new l({container:g.current,additionalModules:[c]});_.current=e;let t=!1;return e.on(`changed`,e=>{v.current=e.data,t&&p(Object.entries(e.data).map(([e,t])=>({name:e,value:t})))}),v.current=C,e.importSchema(y,C).then(()=>{t=!0}).catch(()=>{}),()=>{_.current=null;try{e.destroy()}catch{}}}catch{return}},[y,u.elementId]),x)return r(`div`,{class:`penstock-review__empty`,children:r(`p`,{class:`penstock-review__hint`,children:a(`app.common.loading`)})});if(!y)return r(`div`,{class:`penstock-review__empty`,children:[r(s,{title:a(`app.runs.noFormWithTheId`,{id:u.links.form??u.name}),hint:a(`app.runs.formNotInProject`,{id:u.links.form??u.name}),guide:`scenarios`}),u.links.form&&h&&r(`div`,{class:`penstock-review__actions`,children:r(`button`,{type:`button`,class:`penstock-review__link`,onClick:()=>h(u),children:a(`app.runs.goToTheForm`)})})]});let w=f.waiting&&f.waiting.kind===`userTask`&&f.waiting.elementId===u.elementId;return r(`div`,{class:`penstock-review__form-wrap`,children:[r(`div`,{class:`penstock-review__form`,ref:g}),w&&r(`div`,{class:`penstock-review__footer`,children:r(`button`,{type:`button`,class:`ui-button ui-button--primary`,onClick:()=>m?.(v.current),children:a(`app.runs.complete`)})}),u.links.form&&h&&!w&&r(`div`,{class:`penstock-review__actions penstock-review__pad`,children:r(`button`,{type:`button`,class:`penstock-review__link`,onClick:()=>h(u),children:a(`app.runs.goToTheForm`)})})]})}export{FormStepView};
1
+ import"./rolldown-runtime-B8BYMn-z.js";import{c as e,i as t,o as n,r,u as i}from"./vendor-NJP34MHU.js";import{i as a}from"./translator-B2N3PQBL.js";import{t as o}from"./bridgeInstance-DQk-c8L1.js";import"./platform-CkWAyNst.js";import{s}from"./ui-3pEQJ50t.js";import{i as c}from"./lib-DAKOOgix.js";import{u as l}from"./index.es-DqkfrvWI.js";function findEmbeddedFormSchema(e,t){if(!e)return null;if(typeof e==`string`){let n=RegExp(`<zeebe:userTaskForm[^>]*id=["']${t}["'][^>]*>([\\s\\S]*?)<\\/zeebe:userTaskForm>`,`i`).exec(e)??RegExp(`<zeebe:userTaskForm[^>]*id=["']userTaskForm_${t}["'][^>]*>([\\s\\S]*?)<\\/zeebe:userTaskForm>`,`i`).exec(e);if(n)try{let e=JSON.parse(n[1].trim());if(typeof e==`object`&&e)return e}catch{}}let n=e.rootElements??(Array.isArray(e)?e:[e]);for(let e of n){let n=e?.extensionElements?.values??[];for(let e of n)if(e.$type===`zeebe:UserTaskForm`||e.$type===`UserTaskForm`){let n=String(e.id??``),r=n.replace(/^userTaskForm_/,``),i=t.replace(/^userTaskForm_/,``);if(n===t||n===`userTaskForm_${t}`||t===`userTaskForm_${n}`||r===i){let t=e.body??e.text??e.content;if(typeof t==`string`)try{let e=JSON.parse(t);if(typeof e==`object`&&e)return e}catch{}}}}return null}async function findFormSchema(e,t,n,r){if(!e)return null;let i=e,a=!1;if(e.startsWith(`camunda-forms:bpmn:`)?(i=e.slice(19),a=!0):e.startsWith(`camunda-forms:deployment:`)?i=e.slice(25):e.startsWith(`camunda-forms:app:`)&&(i=e.slice(18)),a||i.startsWith(`userTaskForm_`)){let e=findEmbeddedFormSchema(t,i);if(e)return e}let o=findEmbeddedFormSchema(t,i);if(o)return o;let s=n.get(i)??n.get(e);if(s){let e=await r(s).catch(()=>null);if(e)try{let t=JSON.parse(e);if(typeof t==`object`&&t)return t}catch{}}for(let[e,t]of n.entries())if(t.endsWith(i)||t.endsWith(`${i}.form`)||e===i){let e=await r(t).catch(()=>null);if(e)try{let t=JSON.parse(e);if(typeof t==`object`&&t)return t}catch{}}let c=await r(i).catch(()=>null);if(c)try{let e=JSON.parse(c);if(typeof e==`object`&&e)return e}catch{}return null}function FormStepView({step:u,review:d,runs:f,onChange:p,onComplete:m,onRevealFile:h}){let g=t(null),_=t(null),v=t({}),[y,b]=e(null),[x,S]=e(!0),C=n(()=>{let e={};for(let t of u.values?.rows??[])t.name&&(e[t.name]=t.value);return e},[u.values?.rows]);if(i(()=>{let e=!1;S(!0);let t=u.links.form;if(!t)b(null),S(!1);else return(async()=>{try{let n=await findFormSchema(t,d.context?.definitions,d.targets.forms,e=>o().readFileIfPresent(e));if(e)return;b(n)}catch{if(e)return;b(null)}finally{e||S(!1)}})(),()=>{e=!0}},[u.links.form,u.elementId,d.context?.definitions,d.targets.forms]),i(()=>{if(g.current&&y)try{let e=new l({container:g.current,additionalModules:[c]});_.current=e;let t=!1;return e.on(`changed`,e=>{v.current=e.data,t&&p(Object.entries(e.data).map(([e,t])=>({name:e,value:t})))}),v.current=C,e.importSchema(y,C).then(()=>{t=!0}).catch(()=>{}),()=>{_.current=null;try{e.destroy()}catch{}}}catch{return}},[y,u.elementId]),x)return r(`div`,{class:`penstock-review__empty`,children:r(`p`,{class:`penstock-review__hint`,children:a(`app.common.loading`)})});if(!y)return r(`div`,{class:`penstock-review__empty`,children:[r(s,{title:a(`app.runs.noFormWithTheId`,{id:u.links.form??u.name}),hint:a(`app.runs.formNotInProject`,{id:u.links.form??u.name}),guide:`scenarios`}),u.links.form&&h&&r(`div`,{class:`penstock-review__actions`,children:r(`button`,{type:`button`,class:`penstock-review__link`,onClick:()=>h(u),children:a(`app.runs.goToTheForm`)})})]});let w=f.waiting&&f.waiting.kind===`userTask`&&f.waiting.elementId===u.elementId;return r(`div`,{class:`penstock-review__form-wrap`,children:[r(`div`,{class:`penstock-review__form`,ref:g}),w&&r(`div`,{class:`penstock-review__footer`,children:r(`button`,{type:`button`,class:`ui-button ui-button--primary`,onClick:()=>m?.(v.current),children:a(`app.runs.complete`)})}),u.links.form&&h&&!w&&r(`div`,{class:`penstock-review__actions penstock-review__pad`,children:r(`button`,{type:`button`,class:`penstock-review__link`,onClick:()=>h(u),children:a(`app.runs.goToTheForm`)})})]})}export{FormStepView};