@lovrabet/rabetbase-cli 2.5.2-beta.1 → 2.5.2-beta.3

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 (348) hide show
  1. package/README.md +1 -1
  2. package/lib/api/api-doc.js +1 -1
  3. package/lib/api/fetch-model-list.js +1 -1
  4. package/lib/api/generate-api-file.js +1 -1
  5. package/lib/api/generate-sdk-config-file.js +1 -1
  6. package/lib/auth/auth-server-ui.js +1 -1
  7. package/lib/auth/auth-server.js +1 -1
  8. package/lib/auth/constant.js +1 -1
  9. package/lib/auth/get-cookie.js +1 -1
  10. package/lib/auth/get-session-user.js +1 -1
  11. package/lib/auth/is-session-valid.js +1 -1
  12. package/lib/auth/login-success-html.js +1 -1
  13. package/lib/auth/logout.js +1 -1
  14. package/lib/cli-flags.js +1 -1
  15. package/lib/cli.js +1 -1
  16. package/lib/commands/api/generate.js +1 -1
  17. package/lib/commands/api/index.js +1 -1
  18. package/lib/commands/api/list.js +1 -1
  19. package/lib/commands/api/pull.js +1 -1
  20. package/lib/commands/api/shared.js +1 -1
  21. package/lib/commands/app/index.js +1 -1
  22. package/lib/commands/app/list.js +1 -1
  23. package/lib/commands/app/members-list.js +1 -1
  24. package/lib/commands/app/remote-directory.js +1 -1
  25. package/lib/commands/app/shared.d.ts +1 -0
  26. package/lib/commands/app/shared.js +1 -1
  27. package/lib/commands/app-config/delete.js +1 -1
  28. package/lib/commands/app-config/get.js +1 -1
  29. package/lib/commands/app-config/index.js +1 -1
  30. package/lib/commands/app-config/list.js +1 -1
  31. package/lib/commands/app-config/set.js +1 -1
  32. package/lib/commands/app-config/shared.js +1 -1
  33. package/lib/commands/auth/index.js +1 -1
  34. package/lib/commands/bff/create.js +1 -1
  35. package/lib/commands/bff/delete.js +1 -1
  36. package/lib/commands/bff/detail.js +1 -1
  37. package/lib/commands/bff/index.js +1 -1
  38. package/lib/commands/bff/list.js +1 -1
  39. package/lib/commands/bff/pull.js +1 -1
  40. package/lib/commands/bff/push.js +1 -1
  41. package/lib/commands/bff/status.js +1 -1
  42. package/lib/commands/cli-skill/index.js +1 -1
  43. package/lib/commands/cli-update.js +1 -1
  44. package/lib/commands/codegen/index.js +1 -1
  45. package/lib/commands/codegen/sdk.js +1 -1
  46. package/lib/commands/codegen/sql.js +1 -1
  47. package/lib/commands/common/app-registry.js +1 -1
  48. package/lib/commands/common/app-selector.js +1 -1
  49. package/lib/commands/common/async-task.js +1 -1
  50. package/lib/commands/common/dry-run.js +1 -1
  51. package/lib/commands/common/flags.js +1 -1
  52. package/lib/commands/common/local-file.js +1 -1
  53. package/lib/commands/common/validate.js +1 -1
  54. package/lib/commands/config/delete.js +1 -1
  55. package/lib/commands/config/get.js +1 -1
  56. package/lib/commands/config/index.js +1 -1
  57. package/lib/commands/config/init.js +1 -1
  58. package/lib/commands/config/list.js +1 -1
  59. package/lib/commands/config/set.js +1 -1
  60. package/lib/commands/config/shared.js +1 -1
  61. package/lib/commands/dataset/business-group-update.js +1 -1
  62. package/lib/commands/dataset/business-groups.js +1 -1
  63. package/lib/commands/dataset/capability.js +1 -1
  64. package/lib/commands/dataset/delete.js +1 -1
  65. package/lib/commands/dataset/detail.js +1 -1
  66. package/lib/commands/dataset/extend-update.js +1 -1
  67. package/lib/commands/dataset/field-restore.js +1 -1
  68. package/lib/commands/dataset/field-update.js +1 -1
  69. package/lib/commands/dataset/generate.js +1 -1
  70. package/lib/commands/dataset/index.js +1 -1
  71. package/lib/commands/dataset/list.js +1 -1
  72. package/lib/commands/dataset/operations.js +1 -1
  73. package/lib/commands/dataset/relation-audit.js +1 -1
  74. package/lib/commands/dataset/relation-create.js +1 -1
  75. package/lib/commands/dataset/relation-delete.js +1 -1
  76. package/lib/commands/dataset/relation-shared.js +1 -1
  77. package/lib/commands/dataset/relation-update.js +1 -1
  78. package/lib/commands/dataset/relations.js +1 -1
  79. package/lib/commands/dataset/rename.js +1 -1
  80. package/lib/commands/dataset/restore.js +1 -1
  81. package/lib/commands/dataset/user-deleted-field-list.js +1 -1
  82. package/lib/commands/db/analysis-batching.js +1 -1
  83. package/lib/commands/db/analyze-batch-plan.js +1 -1
  84. package/lib/commands/db/analyze-cancel.js +1 -1
  85. package/lib/commands/db/analyze-start.js +1 -1
  86. package/lib/commands/db/analyze-status.js +1 -1
  87. package/lib/commands/db/create.js +1 -1
  88. package/lib/commands/db/delete.js +1 -1
  89. package/lib/commands/db/detail.js +1 -1
  90. package/lib/commands/db/diff-refresh-start.js +1 -1
  91. package/lib/commands/db/diff-refresh-status.js +1 -1
  92. package/lib/commands/db/diff.js +1 -1
  93. package/lib/commands/db/index.js +1 -1
  94. package/lib/commands/db/list.js +1 -1
  95. package/lib/commands/db/shared.js +1 -1
  96. package/lib/commands/db/table-diff-shared.js +1 -1
  97. package/lib/commands/db/tables.js +1 -1
  98. package/lib/commands/db/test.js +1 -1
  99. package/lib/commands/db/update.js +1 -1
  100. package/lib/commands/deployment/auto-sync.js +1 -1
  101. package/lib/commands/deployment/index.js +1 -1
  102. package/lib/commands/deployment/sync-all.d.ts +2 -0
  103. package/lib/commands/deployment/sync-all.js +1 -0
  104. package/lib/commands/deployment/sync-jobs.d.ts +2 -0
  105. package/lib/commands/deployment/sync-jobs.js +1 -0
  106. package/lib/commands/deployment/sync-status.d.ts +2 -0
  107. package/lib/commands/deployment/sync-status.js +1 -0
  108. package/lib/commands/deployment/sync.js +1 -1
  109. package/lib/commands/doctor.js +1 -1
  110. package/lib/commands/file/index.js +1 -1
  111. package/lib/commands/instant-api-policy/current.d.ts +2 -0
  112. package/lib/commands/instant-api-policy/current.js +1 -0
  113. package/lib/commands/instant-api-policy/index.d.ts +2 -0
  114. package/lib/commands/instant-api-policy/index.js +1 -0
  115. package/lib/commands/instant-api-policy/init.d.ts +2 -0
  116. package/lib/commands/instant-api-policy/init.js +1 -0
  117. package/lib/commands/instant-api-policy/publish.d.ts +2 -0
  118. package/lib/commands/instant-api-policy/publish.js +1 -0
  119. package/lib/commands/instant-api-policy/pull.d.ts +2 -0
  120. package/lib/commands/instant-api-policy/pull.js +1 -0
  121. package/lib/commands/instant-api-policy/revision.d.ts +2 -0
  122. package/lib/commands/instant-api-policy/revision.js +1 -0
  123. package/lib/commands/instant-api-policy/revisions.d.ts +2 -0
  124. package/lib/commands/instant-api-policy/revisions.js +1 -0
  125. package/lib/commands/instant-api-policy/rollback.d.ts +2 -0
  126. package/lib/commands/instant-api-policy/rollback.js +1 -0
  127. package/lib/commands/instant-api-policy/shared.d.ts +82 -0
  128. package/lib/commands/instant-api-policy/shared.js +1 -0
  129. package/lib/commands/instant-api-policy/validate.d.ts +2 -0
  130. package/lib/commands/instant-api-policy/validate.js +1 -0
  131. package/lib/commands/issue/index.js +1 -1
  132. package/lib/commands/issue/nudge.js +1 -1
  133. package/lib/commands/issue/report.js +1 -1
  134. package/lib/commands/issue/shared.js +1 -1
  135. package/lib/commands/kb/create.js +1 -1
  136. package/lib/commands/kb/delete.js +1 -1
  137. package/lib/commands/kb/detail.js +1 -1
  138. package/lib/commands/kb/index.js +1 -1
  139. package/lib/commands/kb/list.js +1 -1
  140. package/lib/commands/kb/search.js +1 -1
  141. package/lib/commands/kb/shared.js +1 -1
  142. package/lib/commands/kb/update.js +1 -1
  143. package/lib/commands/logs/index.js +1 -1
  144. package/lib/commands/menu/asset-update.js +1 -1
  145. package/lib/commands/menu/delete.js +1 -1
  146. package/lib/commands/menu/external-link-create.js +1 -1
  147. package/lib/commands/menu/external-link-update.js +1 -1
  148. package/lib/commands/menu/group-create.js +1 -1
  149. package/lib/commands/menu/group-update.js +1 -1
  150. package/lib/commands/menu/index.js +1 -1
  151. package/lib/commands/menu/list.js +1 -1
  152. package/lib/commands/menu/move.js +1 -1
  153. package/lib/commands/menu/regroup-start.js +1 -1
  154. package/lib/commands/menu/rename.js +1 -1
  155. package/lib/commands/menu/shared/compare-table.js +1 -1
  156. package/lib/commands/menu/shared/delete-plan.js +1 -1
  157. package/lib/commands/menu/shared/facts.js +1 -1
  158. package/lib/commands/menu/shared/index.js +1 -1
  159. package/lib/commands/menu/shared/inquirer.js +1 -1
  160. package/lib/commands/menu/shared/local-pages.js +1 -1
  161. package/lib/commands/menu/shared/logic.js +1 -1
  162. package/lib/commands/menu/shared/mutations.js +1 -1
  163. package/lib/commands/menu/shared/service.js +1 -1
  164. package/lib/commands/menu/shared/sync-core.js +1 -1
  165. package/lib/commands/menu/shared/update-core.js +1 -1
  166. package/lib/commands/menu/shared/valid-url.js +1 -1
  167. package/lib/commands/menu/sync.js +1 -1
  168. package/lib/commands/menu/visibility-update.js +1 -1
  169. package/lib/commands/notification/config-create.js +1 -1
  170. package/lib/commands/notification/config-delete.js +1 -1
  171. package/lib/commands/notification/config-list.js +1 -1
  172. package/lib/commands/notification/config-update.js +1 -1
  173. package/lib/commands/notification/index.js +1 -1
  174. package/lib/commands/notification/shared.js +1 -1
  175. package/lib/commands/ocr/index.js +1 -1
  176. package/lib/commands/page/create.js +1 -1
  177. package/lib/commands/page/custom/detail.js +1 -1
  178. package/lib/commands/page/custom/list.js +1 -1
  179. package/lib/commands/page/custom/publish.js +1 -1
  180. package/lib/commands/page/custom/shared.js +1 -1
  181. package/lib/commands/page/custom/syntax.js +1 -1
  182. package/lib/commands/page/custom/template.js +1 -1
  183. package/lib/commands/page/custom/update.js +1 -1
  184. package/lib/commands/page/data-list-status.js +1 -1
  185. package/lib/commands/page/generate-start.js +1 -1
  186. package/lib/commands/page/generate-status.js +1 -1
  187. package/lib/commands/page/index.js +1 -1
  188. package/lib/commands/page/pull.js +1 -1
  189. package/lib/commands/page/push.js +1 -1
  190. package/lib/commands/page/relation-audit.js +1 -1
  191. package/lib/commands/page/restore.js +1 -1
  192. package/lib/commands/page/shared.js +1 -1
  193. package/lib/commands/page/sync.js +1 -1
  194. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  195. package/lib/commands/project/create/format-elapsed.js +1 -1
  196. package/lib/commands/project/create/main.js +1 -1
  197. package/lib/commands/project/create/materialize-project-template.js +1 -1
  198. package/lib/commands/project/create/project-name.js +1 -1
  199. package/lib/commands/project/create/project-template-archive.js +1 -1
  200. package/lib/commands/project/create/project-template-path.js +1 -1
  201. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  202. package/lib/commands/project/create/use-format-code.js +1 -1
  203. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  204. package/lib/commands/project/domain-routing-sync.js +1 -1
  205. package/lib/commands/project/index.js +1 -1
  206. package/lib/commands/project/upgrade.js +1 -1
  207. package/lib/commands/registry.js +1 -1
  208. package/lib/commands/role/delete.js +1 -1
  209. package/lib/commands/role/detail.js +1 -1
  210. package/lib/commands/role/index.js +1 -1
  211. package/lib/commands/role/list.js +1 -1
  212. package/lib/commands/role/shared.js +1 -1
  213. package/lib/commands/role/update.js +1 -1
  214. package/lib/commands/role/user-add.js +1 -1
  215. package/lib/commands/role/user-remove.js +1 -1
  216. package/lib/commands/role/user-resolve.js +1 -1
  217. package/lib/commands/rule/get.js +1 -1
  218. package/lib/commands/rule/index.js +1 -1
  219. package/lib/commands/rule/list.js +1 -1
  220. package/lib/commands/rule/set.js +1 -1
  221. package/lib/commands/rule/shared.js +1 -1
  222. package/lib/commands/run/index.js +1 -1
  223. package/lib/commands/schema.js +1 -1
  224. package/lib/commands/sql/create.js +1 -1
  225. package/lib/commands/sql/delete.js +1 -1
  226. package/lib/commands/sql/detail.js +1 -1
  227. package/lib/commands/sql/exec.js +1 -1
  228. package/lib/commands/sql/index.js +1 -1
  229. package/lib/commands/sql/list.js +1 -1
  230. package/lib/commands/sql/pull.js +1 -1
  231. package/lib/commands/sql/push.js +1 -1
  232. package/lib/commands/sql/shared.js +1 -1
  233. package/lib/commands/sql/status.js +1 -1
  234. package/lib/commands/sql/validate.js +1 -1
  235. package/lib/commands/task/index.js +1 -1
  236. package/lib/commands/task/status.js +1 -1
  237. package/lib/commands/tenant/index.js +1 -1
  238. package/lib/commands/tenant/members-list.js +1 -1
  239. package/lib/commands/tenant/shared.js +1 -1
  240. package/lib/commands/user-account/dingding-sandbox-bind.js +1 -1
  241. package/lib/commands/user-account/index.js +1 -1
  242. package/lib/commands/workspace/add.js +1 -1
  243. package/lib/commands/workspace/index.js +1 -1
  244. package/lib/commands/workspace/remove.js +1 -1
  245. package/lib/config/domain-config.d.ts +3 -7
  246. package/lib/config/domain-config.js +1 -1
  247. package/lib/config/project-domain-routing.js +1 -1
  248. package/lib/config/schema.js +1 -1
  249. package/lib/constant/cdn.js +1 -1
  250. package/lib/constant/cli.js +1 -1
  251. package/lib/constant/defaults.js +1 -1
  252. package/lib/constant/domain.js +1 -1
  253. package/lib/constant/env.js +1 -1
  254. package/lib/constant/output.js +1 -1
  255. package/lib/constant/paths.js +1 -1
  256. package/lib/constant/region.js +1 -1
  257. package/lib/constant/risk.js +1 -1
  258. package/lib/constant/routing-profile.js +1 -1
  259. package/lib/context/app-resolver.js +1 -1
  260. package/lib/context/auth-resolver.js +1 -1
  261. package/lib/context/config-loader.js +1 -1
  262. package/lib/context.js +1 -1
  263. package/lib/core/alias-resolver.js +1 -1
  264. package/lib/core/api-client.d.ts +114 -0
  265. package/lib/core/api-client.js +1 -1
  266. package/lib/core/bff/config.js +1 -1
  267. package/lib/core/bff/file-system.js +1 -1
  268. package/lib/core/bff/hash.js +1 -1
  269. package/lib/core/bff/lock.js +1 -1
  270. package/lib/core/bff/utils.js +1 -1
  271. package/lib/core/db-resolver.js +1 -1
  272. package/lib/core/instant-api-policy/config.d.ts +23 -0
  273. package/lib/core/instant-api-policy/config.js +1 -0
  274. package/lib/core/kb-search-client.js +1 -1
  275. package/lib/core/page/file-system.js +1 -1
  276. package/lib/core/page/hash.js +1 -1
  277. package/lib/core/page/lock.js +1 -1
  278. package/lib/core/sql-index-auditor.js +1 -1
  279. package/lib/core/sql-sync/config.js +1 -1
  280. package/lib/core/sql-sync/file-system.js +1 -1
  281. package/lib/core/sql-sync/hash.js +1 -1
  282. package/lib/core/sql-sync/lock.js +1 -1
  283. package/lib/core/sql-sync/utils.js +1 -1
  284. package/lib/core/sql-validator.js +1 -1
  285. package/lib/errors.js +1 -1
  286. package/lib/framework/build-all-flags.js +1 -1
  287. package/lib/framework/error-output.js +1 -1
  288. package/lib/framework/explicit-yes.js +1 -1
  289. package/lib/framework/flags.js +1 -1
  290. package/lib/framework/help.js +1 -1
  291. package/lib/framework/index.js +1 -1
  292. package/lib/framework/output.js +1 -1
  293. package/lib/framework/response.js +1 -1
  294. package/lib/framework/runner-alias.js +1 -1
  295. package/lib/framework/runner.js +1 -1
  296. package/lib/framework/schema-export.js +1 -1
  297. package/lib/framework/supported-flags.js +1 -1
  298. package/lib/framework/types.js +1 -1
  299. package/lib/generated/build-info.d.ts +4 -4
  300. package/lib/generated/build-info.js +1 -1
  301. package/lib/generated/official-routing.d.ts +1 -1
  302. package/lib/generated/official-routing.js +1 -1
  303. package/lib/generated/routing-contract.d.ts +1 -3
  304. package/lib/generated/routing-contract.js +1 -1
  305. package/lib/help.js +1 -1
  306. package/lib/postinstall.js +1 -1
  307. package/lib/runtime/confirmation.js +1 -1
  308. package/lib/runtime/event.js +1 -1
  309. package/lib/runtime/index.js +1 -1
  310. package/lib/runtime/queue.js +1 -1
  311. package/lib/runtime/resolve.js +1 -1
  312. package/lib/skills/builtin-skill.js +1 -1
  313. package/lib/skills/main.js +1 -1
  314. package/lib/skills/npx-skills-add.js +1 -1
  315. package/lib/skills/skill-presence.js +1 -1
  316. package/lib/telemetry/cli-command-trace.js +1 -1
  317. package/lib/telemetry/cli-help-trace.js +1 -1
  318. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  319. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  320. package/lib/telemetry/send-cli-trace-log.js +1 -1
  321. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  322. package/lib/utils/ai_config.js +1 -1
  323. package/lib/utils/apply-jq-filter.js +1 -1
  324. package/lib/utils/cdn-config.js +1 -1
  325. package/lib/utils/check-sdk-version.js +1 -1
  326. package/lib/utils/cli-version-check.js +1 -1
  327. package/lib/utils/cli-version-policy.js +1 -1
  328. package/lib/utils/config.js +1 -1
  329. package/lib/utils/entity-with-id.js +1 -1
  330. package/lib/utils/file-utils.js +1 -1
  331. package/lib/utils/guides-cdn.js +1 -1
  332. package/lib/utils/http-client.js +1 -1
  333. package/lib/utils/is-non-interactive.js +1 -1
  334. package/lib/utils/logger.js +1 -1
  335. package/lib/utils/params.js +1 -1
  336. package/lib/utils/platform.js +1 -1
  337. package/lib/utils/sleep.js +1 -1
  338. package/lib/utils/template-replacer.js +1 -1
  339. package/lib/utils/update-notice.js +1 -1
  340. package/lib/utils/version.js +1 -1
  341. package/lib/utils/with-active-cookie.js +1 -1
  342. package/lib/utils/write-cli-side-channel.js +1 -1
  343. package/package.json +1 -1
  344. package/skills/rabetbase/SKILL.md +12 -6
  345. package/skills/rabetbase/references/rabetbase-app-members-list.md +2 -0
  346. package/skills/rabetbase/references/rabetbase-deployment-sync.md +41 -5
  347. package/skills/rabetbase/references/rabetbase-instant-api-policy.md +92 -0
  348. package/skills/rabetbase.manifest.json +4 -3
@@ -1 +1 @@
1
- const a146_0x4de633=a146_0x49f4;(function(_0x4fc32e,_0x18493f){const _0x6fa3e8=a146_0x49f4,_0x11717f=_0x4fc32e();while(!![]){try{const _0x301cb8=-parseInt(_0x6fa3e8(0xd5))/0x1*(-parseInt(_0x6fa3e8(0xde))/0x2)+parseInt(_0x6fa3e8(0xe7))/0x3*(-parseInt(_0x6fa3e8(0xb4))/0x4)+parseInt(_0x6fa3e8(0x106))/0x5+-parseInt(_0x6fa3e8(0xe4))/0x6*(-parseInt(_0x6fa3e8(0xfd))/0x7)+-parseInt(_0x6fa3e8(0xb6))/0x8*(-parseInt(_0x6fa3e8(0xb9))/0x9)+parseInt(_0x6fa3e8(0xf6))/0xa*(-parseInt(_0x6fa3e8(0xf3))/0xb)+-parseInt(_0x6fa3e8(0xdd))/0xc;if(_0x301cb8===_0x18493f)break;else _0x11717f['push'](_0x11717f['shift']());}catch(_0xcd9f75){_0x11717f['push'](_0x11717f['shift']());}}}(a146_0x3bf9,0x38fc4));import{readFile}from'node:fs/promises';import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{getNotificationChannelConfig}from'../../core/api-client.js';import{CliError,CliErrors}from'../../errors.js';export const NOTIFICATION_CHANNEL_TYPES=['EMAIL',a146_0x4de633(0xa8),a146_0x4de633(0xea),a146_0x4de633(0x103),a146_0x4de633(0x11e)];export const DEFAULT_NOTIFICATION_CONNECT_TIMEOUT=0x1388;export const DEFAULT_NOTIFICATION_READ_TIMEOUT=0x2710;const ALLOWED_INPUT_FIELDS=new Set([a146_0x4de633(0xc9),'channelType',a146_0x4de633(0xcf),a146_0x4de633(0x10c),'description',a146_0x4de633(0xee),a146_0x4de633(0xa1)]),FORBIDDEN_IDENTITY_FIELDS=new Set(['id',a146_0x4de633(0xc4),'configCode',a146_0x4de633(0xf1)]),EMAIL_RECIPIENT_FIELDS=new Set([a146_0x4de633(0xbf),a146_0x4de633(0x10b),a146_0x4de633(0xd2),a146_0x4de633(0x11d),a146_0x4de633(0x117),a146_0x4de633(0xc2),a146_0x4de633(0xc3),'to','cc']);export const NOTIFICATION_INPUT_FLAGS=[{'name':a146_0x4de633(0xf0),'type':a146_0x4de633(0xa7),'required':![],'description':a146_0x4de633(0xa6)},{'name':'stdin','type':a146_0x4de633(0xef),'required':![],'default':![],'description':'Read\x20the\x20notification\x20JSON\x20document\x20from\x20stdin'},{'name':a146_0x4de633(0xf2),'type':a146_0x4de633(0xa7),'required':![],'description':a146_0x4de633(0xfb)}];export const NOTIFICATION_ID_FLAG={'name':'id','type':a146_0x4de633(0x121),'required':!![],'description':a146_0x4de633(0xb8)};export const NOTIFICATION_APP_FLAG=APPCODE_FLAG_OPTIONAL;export function notificationError(_0x4586d0,_0xd7726a,_0x4d7935){return new CliError(_0x4586d0,0x1,_0xd7726a,_0x4d7935);}export function readNotificationId(_0x40faf6){const _0x303bc2=a146_0x4de633,_0x3e227a=_0x40faf6['num']('id');if(!Number[_0x303bc2(0xc6)](_0x3e227a)||_0x3e227a<=0x0)throw notificationError('notification_config_id_invalid',_0x303bc2(0x122));return _0x3e227a;}export function requireNotificationExplicitYes(_0x2bf1f4){const _0x11c354=a146_0x4de633;if(_0x2bf1f4['bool'](_0x11c354(0xeb))||_0x2bf1f4[_0x11c354(0xa3)](_0x11c354(0xba)))return;throw notificationError(_0x11c354(0xaf),_0x11c354(0xff),_0x11c354(0xf7));}export function readNotificationChannelType(_0x28a97c,_0x212820=a146_0x4de633(0xe9),_0x3c8f51=a146_0x4de633(0x102)){const _0x153368=a146_0x4de633,_0x162564=_0x28a97c[_0x153368(0xbe)](_0x212820)[_0x153368(0x114)]()||_0x3c8f51;if(!NOTIFICATION_CHANNEL_TYPES['includes'](_0x162564))throw CliErrors[_0x153368(0xe1)]('Invalid\x20--'+_0x212820+':\x20'+_0x162564,_0x153368(0x9f)+NOTIFICATION_CHANNEL_TYPES[_0x153368(0xac)](',\x20')+'.');return _0x162564;}function a146_0x3bf9(){const _0x13a714=['stdin','configCode','24CLPOGm','environment\x20variable\x20','type','DINGTALK','dry-run','\x22channelType\x22.','\x22\x20must\x20be\x20a\x20non-negative\x20safe\x20integer\x20or\x20null.','connectTimeout','boolean','file','channelCode','from-env','827662uxseQj','Unknown\x20notification\x20JSON\x20field\x20\x22','keys','40hGYitU','Run\x20the\x20command\x20with\x20--dry-run\x20first,\x20then\x20add\x20--yes\x20after\x20reviewing\x20the\x20plan.','Notification\x20JSON\x20environment\x20variable\x20is\x20not\x20set:\x20','<redacted>','endpointUrl:null','Read\x20the\x20notification\x20JSON\x20document\x20from\x20a\x20named\x20environment\x20variable','parse','791ICGSDk','\x22\x20must\x20be\x20a\x20non-empty\x20string.','This\x20notification\x20config\x20mutation\x20requires\x20explicit\x20--yes.','entries','isArray','EMAIL','WECOM','Invalid\x20notification\x20config\x20response.','update','1898405SdvrUQ','\x22\x20cannot\x20exceed\x20','Notification\x20JSON\x20source\x20is\x20ambiguous.','Notification\x20config\x20list\x20item\x20','notification_config_field_unknown','recipients','channelConfig','hasOwnProperty','notification_config_field_invalid','notification_config_field_required','Notification\x20JSON\x20from\x20','Notification\x20config\x20detail\x20did\x20not\x20contain\x20the\x20requested\x20ID\x20','notification_config_channel_field_forbidden','create','trim','updateTime','utf8','replyTo','preflight','includes','channelType','\x20has\x20invalid\x20field\x20\x22','\x20is\x20missing\x20required\x20field\x20\x22','bccList','WEBHOOK','\x22\x20must\x20be\x20','name','number','--id\x20must\x20be\x20a\x20positive\x20safe\x20integer.','every','notification_config_update_empty','rabetbase\x20notification\x20config-list\x20--appcode\x20','Allowed\x20values:\x20','messageTemplate','readTimeout','\x20has\x20an\x20unsupported\x20channelType.','bool','notification_config_source_unavailable','\x20is\x20invalid.','Read\x20the\x20notification\x20JSON\x20document\x20from\x20a\x20UTF-8\x20file','string','FEISHU','length','push','endpointUrlRaw','join','Update\x20JSON\x20must\x20contain\x20at\x20least\x20one\x20allowed\x20field.','\x20has\x20an\x20invalid\x20id.','notification_config_confirmation_required','notification_config_json_invalid','Notification\x20config\x20','\x20has\x20an\x20invalid\x20appCode.','\x20--type\x20','16800ffzlPS','\x22\x20is\x20controlled\x20by\x20the\x20CLI\x20or\x20server\x20and\x20is\x20forbidden.','8sPpNjF','channelConfigRaw','Application-level\x20notification\x20config\x20ID','957123xQKFaS','yes','Notification\x20JSON\x20field\x20\x22','Missing\x20notification\x20JSON\x20source.','apiError','str','emailTargets','Use\x20exactly\x20one\x20of\x20--file\x20<path>,\x20--stdin,\x20or\x20--from-env\x20<NAME>.','path','subjectPrefix','fromName','appCode','Inspect\x20with\x20rabetbase\x20notification\x20config-list\x20--appcode\x20','isSafeInteger','prototype','\x20does\x20not\x20belong\x20to\x20the\x20resolved\x20app.','configName','some','_unavailable','\x20characters.','has','Unable\x20to\x20read\x20notification\x20JSON\x20from\x20','endpointUrl','a\x20string\x20or\x20null','description','ccList','\x20must\x20be\x20an\x20object.','object','22wsrjEp','kind','a\x20non-empty\x20string','notification_config_field_forbidden','a\x20JSON\x20object','Provide\x20one\x20valid\x20JSON\x20object;\x20source\x20contents\x20are\x20not\x20included\x20in\x20errors.','env','stringify','2639652uHkZal','14884IaCWvf','\x22\x20is\x20forbidden.','notification_config_response_invalid','validation','Notification\x20JSON\x20channelConfig\x20field\x20\x22','Create\x20JSON\x20requires\x20field\x20','7338dqbqoZ'];a146_0x3bf9=function(){return _0x13a714;};return a146_0x3bf9();}export function assertSingleNotificationSource(_0x138bc6){const _0x2da31d=a146_0x4de633,_0x362df7=[],_0xa76a7a=_0x138bc6[_0x2da31d(0xbe)](_0x2da31d(0xf0))[_0x2da31d(0x114)]();if(_0xa76a7a)_0x362df7[_0x2da31d(0xaa)]({'kind':_0x2da31d(0xf0),'path':_0xa76a7a});if(_0x138bc6[_0x2da31d(0xa3)]('stdin'))_0x362df7['push']({'kind':_0x2da31d(0xe5)});const _0x5a8fb6=_0x138bc6[_0x2da31d(0xbe)](_0x2da31d(0xf2))[_0x2da31d(0x114)]();if(_0x5a8fb6)_0x362df7['push']({'kind':_0x2da31d(0xdb),'name':_0x5a8fb6});if(_0x362df7['length']===0x0)throw CliErrors['validation'](_0x2da31d(0xbc),'Use\x20exactly\x20one\x20of\x20--file\x20<path>,\x20--stdin,\x20or\x20--from-env\x20<NAME>.');if(_0x362df7[_0x2da31d(0xa9)]>0x1)throw CliErrors[_0x2da31d(0xe1)](_0x2da31d(0x108),_0x2da31d(0xc0));return _0x362df7[0x0];}function a146_0x49f4(_0x286a16,_0xe62a5b){_0x286a16=_0x286a16-0x9f;const _0x3bf9a6=a146_0x3bf9();let _0x49f479=_0x3bf9a6[_0x286a16];return _0x49f479;}export async function readNotificationDocument(_0x3f5981,_0x58d762){const _0x5028e3=a146_0x4de633,_0x272e8d=assertSingleNotificationSource(_0x3f5981),_0x1b0d9d=_0x272e8d['kind']===_0x5028e3(0xf0)?'file\x20'+_0x272e8d[_0x5028e3(0xc1)]:_0x272e8d[_0x5028e3(0xd6)]===_0x5028e3(0xdb)?_0x5028e3(0xe8)+_0x272e8d['name']:_0x5028e3(0xe5);let _0x606655;try{if(_0x272e8d['kind']===_0x5028e3(0xf0))_0x606655=await readFile(_0x272e8d[_0x5028e3(0xc1)],'utf8');else{if(_0x272e8d[_0x5028e3(0xd6)]===_0x5028e3(0xdb)){if(!(_0x272e8d[_0x5028e3(0x120)]in process.env))throw notificationError(_0x5028e3(0xa4),_0x5028e3(0xf8)+_0x272e8d[_0x5028e3(0x120)]);_0x606655=process.env[_0x272e8d.name]??'';}else _0x606655=await readStdin();}}catch(_0x5e6707){if(_0x5e6707 instanceof CliError)throw _0x5e6707;throw notificationError(_0x5028e3(0xa4),_0x5028e3(0xce)+_0x1b0d9d+'.');}let _0x5a6ead;try{_0x5a6ead=JSON[_0x5028e3(0xfc)](_0x606655);}catch{throw notificationError(_0x5028e3(0xb0),'Notification\x20JSON\x20from\x20'+_0x1b0d9d+_0x5028e3(0xa5),_0x5028e3(0xda));}if(!isJsonObject(_0x5a6ead))throw notificationError(_0x5028e3(0xb0),_0x5028e3(0x110)+_0x1b0d9d+_0x5028e3(0xd3));return validateNotificationDocument(_0x5a6ead,_0x58d762);}export function projectNotificationListConfig(_0x15c05b,_0x2490f2){const _0x3b2f9c=a146_0x4de633;return{'id':typeof _0x15c05b['id']===_0x3b2f9c(0x121)?_0x15c05b['id']:null,'configCode':requireResponseString(_0x15c05b[_0x3b2f9c(0xe6)],_0x3b2f9c(0xe6),_0x2490f2),'configName':requireResponseString(_0x15c05b['configName'],'configName',_0x2490f2),'channelType':requireResponseString(_0x15c05b['channelType'],'channelType',_0x2490f2),'description':normalizeNullableString(_0x15c05b[_0x3b2f9c(0xd1)]),'createTime':normalizeNullableString(_0x15c05b['createTime']),'updateTime':normalizeNullableString(_0x15c05b[_0x3b2f9c(0x115)])};}export function normalizeExactNotificationConfig(_0x3ba245,_0x484a96,_0x47b045){const _0x51de37=a146_0x4de633;if(!Number['isSafeInteger'](_0x3ba245['id'])||_0x3ba245['id']!==_0x484a96)throw notificationError('notification_config_response_invalid',_0x51de37(0x111)+_0x484a96+'.');if(_0x3ba245[_0x51de37(0xc4)]!==_0x47b045)throw notificationError('notification_config_response_invalid',_0x51de37(0xb1)+_0x484a96+_0x51de37(0xc8));const _0x1c910f=requireExactString(_0x3ba245[_0x51de37(0xc9)],_0x51de37(0xc9),_0x484a96),_0x3e0227=requireExactString(_0x3ba245[_0x51de37(0xe6)],_0x51de37(0xe6),_0x484a96),_0x3b8f7b=requireExactString(_0x3ba245[_0x51de37(0x11a)],_0x51de37(0x11a),_0x484a96);if(!NOTIFICATION_CHANNEL_TYPES[_0x51de37(0x119)](_0x3b8f7b))throw notificationError(_0x51de37(0xe0),_0x51de37(0xb1)+_0x484a96+_0x51de37(0xa2));const _0x1487f9=responseNullableString(_0x3ba245['endpointUrl'],_0x51de37(0xcf),_0x484a96),_0x24bed2=responseNullableString(_0x3ba245[_0x51de37(0x10c)],_0x51de37(0x10c),_0x484a96),_0x2b2b1f=responseNullableString(_0x3ba245['description'],_0x51de37(0xd1),_0x484a96),_0x2b8dd3=responseNullableTimeout(_0x3ba245[_0x51de37(0xee)],'connectTimeout',_0x484a96),_0x39aacb=responseNullableTimeout(_0x3ba245[_0x51de37(0xa1)],_0x51de37(0xa1),_0x484a96);return{'id':_0x484a96,'appCode':_0x47b045,'configCode':_0x3e0227,'configName':_0x1c910f,'channelType':_0x3b8f7b,'endpointUrl':redactSensitive(_0x1487f9),'channelConfig':redactSensitive(_0x24bed2),'description':_0x2b2b1f,'connectTimeout':_0x2b8dd3,'readTimeout':_0x39aacb,'endpointUrlRaw':_0x1487f9,'channelConfigRaw':_0x24bed2};}export async function requireExactNotificationConfig(_0x4b6cdc,_0x2882c0,_0x3065be){const _0x3ad2c0=a146_0x4de633;let _0x1e1c7c;try{_0x1e1c7c=await getNotificationChannelConfig(_0x2882c0,_0x4b6cdc);}catch{throw safeApiFailure(_0x3065be,_0x3ad2c0(0x118),_0x3ad2c0(0xc5)+_0x4b6cdc+'\x20--type\x20<CHANNEL_TYPE>\x20--format\x20compress;\x20no\x20mutation\x20was\x20submitted.');}return normalizeExactNotificationConfig(_0x1e1c7c,_0x2882c0,_0x4b6cdc);}export function projectNotificationConfig(_0x10f180){const _0xfe4f52=a146_0x4de633;return{'id':_0x10f180['id']??null,'appCode':_0x10f180[_0xfe4f52(0xc4)],'configCode':_0x10f180['configCode']??null,'configName':_0x10f180[_0xfe4f52(0xc9)],'channelType':_0x10f180[_0xfe4f52(0x11a)],'endpointUrl':redactSensitive(_0x10f180[_0xfe4f52(0xcf)]),'channelConfig':redactSensitive(_0x10f180['channelConfig']),'description':_0x10f180[_0xfe4f52(0xd1)]??null,'connectTimeout':_0x10f180[_0xfe4f52(0xee)]??null,'readTimeout':_0x10f180['readTimeout']??null};}export function notificationSelector(_0x1fad25){const _0x78b6f5=a146_0x4de633;return{'appCode':_0x1fad25['appCode'],'id':_0x1fad25['id'],'configCode':_0x1fad25['configCode'],'configName':_0x1fad25[_0x78b6f5(0xc9)],'channelType':_0x1fad25[_0x78b6f5(0x11a)]};}export function createMutationInput(_0x42f816,_0x4474d5){const _0x2fec16=a146_0x4de633;return{'appCode':_0x42f816,'configName':_0x4474d5['configName'],'channelType':_0x4474d5[_0x2fec16(0x11a)],...hasOwn(_0x4474d5,_0x2fec16(0xcf))?{'endpointUrl':_0x4474d5[_0x2fec16(0xcf)]}:{},...hasOwn(_0x4474d5,_0x2fec16(0x10c))?{'channelConfig':serializeChannelConfig(_0x4474d5['channelConfig'])}:{},...hasOwn(_0x4474d5,'description')?{'description':_0x4474d5[_0x2fec16(0xd1)]}:{},...hasOwn(_0x4474d5,_0x2fec16(0xee))?{'connectTimeout':_0x4474d5[_0x2fec16(0xee)]}:{},...hasOwn(_0x4474d5,_0x2fec16(0xa1))?{'readTimeout':_0x4474d5['readTimeout']}:{}};}export function mergeUpdateInput(_0xa0f6e3,_0x2b0c6e){const _0x4408fd=a146_0x4de633;return{'id':_0xa0f6e3['id'],'appCode':_0xa0f6e3[_0x4408fd(0xc4)],'configName':_0x2b0c6e[_0x4408fd(0xc9)]??_0xa0f6e3[_0x4408fd(0xc9)],'channelType':_0x2b0c6e[_0x4408fd(0x11a)]??_0xa0f6e3[_0x4408fd(0x11a)],'endpointUrl':hasOwn(_0x2b0c6e,_0x4408fd(0xcf))?_0x2b0c6e[_0x4408fd(0xcf)]:_0xa0f6e3[_0x4408fd(0xab)],'channelConfig':hasOwn(_0x2b0c6e,'channelConfig')?serializeChannelConfig(_0x2b0c6e['channelConfig']):_0xa0f6e3[_0x4408fd(0xb7)],'description':hasOwn(_0x2b0c6e,_0x4408fd(0xd1))?_0x2b0c6e[_0x4408fd(0xd1)]:_0xa0f6e3['description'],'connectTimeout':hasOwn(_0x2b0c6e,_0x4408fd(0xee))?_0x2b0c6e[_0x4408fd(0xee)]:_0xa0f6e3[_0x4408fd(0xee)],'readTimeout':hasOwn(_0x2b0c6e,_0x4408fd(0xa1))?_0x2b0c6e[_0x4408fd(0xa1)]:_0xa0f6e3[_0x4408fd(0xa1)]};}export function plannedUpdateProjection(_0x5339f0,_0x5d5d9c){const _0x4de016=a146_0x4de633;return projectNotificationConfig({'id':_0x5339f0['id'],'appCode':_0x5339f0[_0x4de016(0xc4)],'configCode':_0x5339f0[_0x4de016(0xe6)],'configName':_0x5d5d9c['configName']??_0x5339f0['configName'],'channelType':_0x5d5d9c[_0x4de016(0x11a)]??_0x5339f0[_0x4de016(0x11a)],'endpointUrl':hasOwn(_0x5d5d9c,_0x4de016(0xcf))?_0x5d5d9c['endpointUrl']:_0x5339f0[_0x4de016(0xab)],'channelConfig':hasOwn(_0x5d5d9c,'channelConfig')?_0x5d5d9c[_0x4de016(0x10c)]:_0x5339f0[_0x4de016(0xb7)],'description':hasOwn(_0x5d5d9c,_0x4de016(0xd1))?_0x5d5d9c[_0x4de016(0xd1)]:_0x5339f0[_0x4de016(0xd1)],'connectTimeout':hasOwn(_0x5d5d9c,'connectTimeout')?_0x5d5d9c[_0x4de016(0xee)]??DEFAULT_NOTIFICATION_CONNECT_TIMEOUT:_0x5339f0[_0x4de016(0xee)],'readTimeout':hasOwn(_0x5d5d9c,_0x4de016(0xa1))?_0x5d5d9c[_0x4de016(0xa1)]??DEFAULT_NOTIFICATION_READ_TIMEOUT:_0x5339f0[_0x4de016(0xa1)]});}export function requestedSafeFieldsMatch(_0xfce139,_0x4327b6,_0x52eeec){const _0xaf7776=a146_0x4de633,_0x294d92=[],_0x2147e0=[],_0xae386=[];for(const _0x2b5420 of[_0xaf7776(0xc9),'channelType',_0xaf7776(0xd1)]){if(!hasOwn(_0x52eeec,_0x2b5420))continue;_0xae386[_0xaf7776(0xaa)](_0x2b5420),_0x294d92[_0xaf7776(0xaa)](_0x4327b6[_0x2b5420]===_0x52eeec[_0x2b5420]),_0x2147e0[_0xaf7776(0xaa)](_0xfce139[_0x2b5420]!==_0x52eeec[_0x2b5420]&&_0x4327b6[_0x2b5420]===_0x52eeec[_0x2b5420]);}for(const _0x230081 of[_0xaf7776(0xee),_0xaf7776(0xa1)]){if(!hasOwn(_0x52eeec,_0x230081))continue;const _0x5af703=_0x52eeec[_0x230081]??(_0x230081===_0xaf7776(0xee)?DEFAULT_NOTIFICATION_CONNECT_TIMEOUT:DEFAULT_NOTIFICATION_READ_TIMEOUT);_0xae386[_0xaf7776(0xaa)](_0x230081),_0x294d92[_0xaf7776(0xaa)](_0x4327b6[_0x230081]===_0x5af703),_0x2147e0['push'](_0xfce139[_0x230081]!==_0x5af703&&_0x4327b6[_0x230081]===_0x5af703);}return hasOwn(_0x52eeec,'endpointUrl')&&_0x52eeec['endpointUrl']===null&&(_0xae386[_0xaf7776(0xaa)](_0xaf7776(0xfa)),_0x294d92[_0xaf7776(0xaa)](_0x4327b6['endpointUrlRaw']===null||_0x4327b6[_0xaf7776(0xab)]===''),_0x2147e0['push'](_0xfce139[_0xaf7776(0xab)]!==null&&_0xfce139[_0xaf7776(0xab)]!==''&&(_0x4327b6[_0xaf7776(0xab)]===null||_0x4327b6[_0xaf7776(0xab)]===''))),{'allMatch':_0x294d92[_0xaf7776(0x123)](Boolean),'provesChange':_0x2147e0[_0xaf7776(0xca)](Boolean),'verifiedFields':_0xae386};}export function validateNotificationDeleteReadback(_0x2d4037,_0x3511f2,_0xf8f690){const _0x2efe2c=a146_0x4de633;for(const [_0x40d6a6,_0x48e47b]of _0x2d4037[_0x2efe2c(0x100)]()){if(!Number[_0x2efe2c(0xc6)](_0x48e47b['id'])||_0x48e47b['id']<=0x0)throw notificationError(_0x2efe2c(0xe0),_0x2efe2c(0x109)+(_0x40d6a6+0x1)+_0x2efe2c(0xae));if(_0x48e47b[_0x2efe2c(0xc4)]!==_0x3511f2)throw notificationError(_0x2efe2c(0xe0),_0x2efe2c(0x109)+(_0x40d6a6+0x1)+_0x2efe2c(0xb2));if(_0x48e47b[_0x2efe2c(0x11a)]!==_0xf8f690)throw notificationError(_0x2efe2c(0xe0),_0x2efe2c(0x109)+(_0x40d6a6+0x1)+'\x20has\x20an\x20invalid\x20channelType.');}}export function safeApiFailure(_0x2252a1,_0x503490,_0x1bb407){const _0x3345d5=a146_0x4de633;return notificationError('notification_config_'+_0x2252a1+'_'+(_0x503490==='mutation'?'failed':_0x503490+_0x3345d5(0xcb)),_0x3345d5(0xb1)+_0x2252a1+'\x20'+_0x503490+'\x20failed.',_0x1bb407);}export function notificationLookupCommand(_0x3d0239,_0x58577b){const _0x517b00=a146_0x4de633;return _0x517b00(0x125)+_0x3d0239+_0x517b00(0xb3)+_0x58577b+'\x20--format\x20compress';}function validateNotificationDocument(_0x297825,_0x45bde7){const _0x34a775=a146_0x4de633;for(const _0x2accfb of Object['keys'](_0x297825)){if(FORBIDDEN_IDENTITY_FIELDS[_0x34a775(0xcd)](_0x2accfb))throw notificationError(_0x34a775(0xd8),_0x34a775(0xbb)+_0x2accfb+_0x34a775(0xb5));if(!ALLOWED_INPUT_FIELDS[_0x34a775(0xcd)](_0x2accfb))throw notificationError(_0x34a775(0x10a),_0x34a775(0xf4)+_0x2accfb+'\x22.');}if(_0x45bde7===_0x34a775(0x105)&&Object[_0x34a775(0xf5)](_0x297825)[_0x34a775(0xa9)]===0x0)throw notificationError(_0x34a775(0x124),_0x34a775(0xad));const _0x158823={};if(hasOwn(_0x297825,_0x34a775(0xc9)))_0x158823[_0x34a775(0xc9)]=validateRequiredString(_0x297825['configName'],_0x34a775(0xc9),0x80);else{if(_0x45bde7===_0x34a775(0x113))throw notificationError(_0x34a775(0x10f),_0x34a775(0xe3)+'\x22configName\x22.');}if(hasOwn(_0x297825,_0x34a775(0x11a))){if(typeof _0x297825[_0x34a775(0x11a)]!=='string')throw invalidFieldType(_0x34a775(0x11a),'a\x20supported\x20string');const _0x475be8=_0x297825['channelType']['trim']();if(!NOTIFICATION_CHANNEL_TYPES['includes'](_0x475be8))throw notificationError(_0x34a775(0x10e),'Notification\x20JSON\x20field\x20\x22channelType\x22\x20is\x20unsupported.',_0x34a775(0x9f)+NOTIFICATION_CHANNEL_TYPES[_0x34a775(0xac)](',\x20')+'.');_0x158823[_0x34a775(0x11a)]=_0x475be8;}else{if(_0x45bde7===_0x34a775(0x113))throw notificationError(_0x34a775(0x10f),'Create\x20JSON\x20requires\x20field\x20'+_0x34a775(0xec));}for(const [_0x5c61db,_0x2eb546]of[[_0x34a775(0xcf),0x200],[_0x34a775(0xd1),0x100]]){if(!hasOwn(_0x297825,_0x5c61db))continue;const _0x2d4cbb=_0x297825[_0x5c61db];if(_0x2d4cbb!==null&&typeof _0x2d4cbb!=='string')throw invalidFieldType(_0x5c61db,_0x34a775(0xd0));if(typeof _0x2d4cbb==='string'&&_0x2d4cbb[_0x34a775(0xa9)]>_0x2eb546)throw notificationError(_0x34a775(0x10e),'Notification\x20JSON\x20field\x20\x22'+_0x5c61db+_0x34a775(0x107)+_0x2eb546+'\x20characters.');_0x158823[_0x5c61db]=_0x2d4cbb;}if(hasOwn(_0x297825,_0x34a775(0x10c))){const _0x314055=_0x297825[_0x34a775(0x10c)];if(_0x314055===null&&_0x45bde7===_0x34a775(0x113))throw invalidFieldType('channelConfig',_0x34a775(0xd9));if(_0x314055!==null&&!isJsonObject(_0x314055))throw invalidFieldType(_0x34a775(0x10c),_0x45bde7===_0x34a775(0x105)?'a\x20JSON\x20object\x20or\x20null':_0x34a775(0xd9));_0x314055!==null&&validateChannelConfigFields(_0x158823[_0x34a775(0x11a)],_0x314055),_0x158823[_0x34a775(0x10c)]=_0x314055;}for(const _0x526370 of['connectTimeout',_0x34a775(0xa1)]){if(!hasOwn(_0x297825,_0x526370))continue;const _0x50c220=_0x297825[_0x526370];if(_0x50c220!==null&&(!Number[_0x34a775(0xc6)](_0x50c220)||_0x50c220<0x0))throw notificationError(_0x34a775(0x10e),_0x34a775(0xbb)+_0x526370+_0x34a775(0xed));_0x158823[_0x526370]=_0x50c220;}return _0x158823;}function validateRequiredString(_0x32e39d,_0x4f51fb,_0x92ed9c){const _0xc0ed33=a146_0x4de633;if(typeof _0x32e39d!==_0xc0ed33(0xa7))throw invalidFieldType(_0x4f51fb,_0xc0ed33(0xd7));const _0x281bc0=_0x32e39d[_0xc0ed33(0x114)]();if(!_0x281bc0)throw notificationError(_0xc0ed33(0x10e),_0xc0ed33(0xbb)+_0x4f51fb+_0xc0ed33(0xfe));if(_0x281bc0[_0xc0ed33(0xa9)]>_0x92ed9c)throw notificationError(_0xc0ed33(0x10e),'Notification\x20JSON\x20field\x20\x22'+_0x4f51fb+_0xc0ed33(0x107)+_0x92ed9c+_0xc0ed33(0xcc));return _0x281bc0;}function validateChannelConfigFields(_0x2b8937,_0x522701){const _0x1997fb=a146_0x4de633;if(hasOwn(_0x522701,'messageTemplate'))throw forbiddenChannelConfigField(_0x1997fb(0xa0));if(_0x2b8937==='EMAIL')for(const _0x293d70 of EMAIL_RECIPIENT_FIELDS){if(hasOwn(_0x522701,_0x293d70))throw forbiddenChannelConfigField(_0x293d70);}}function forbiddenChannelConfigField(_0x1cb26c){const _0x1a33f8=a146_0x4de633;return notificationError(_0x1a33f8(0x112),_0x1a33f8(0xe2)+_0x1cb26c+_0x1a33f8(0xdf));}function invalidFieldType(_0x58c79f,_0x5bd539){const _0x180288=a146_0x4de633;return notificationError('notification_config_field_invalid',_0x180288(0xbb)+_0x58c79f+_0x180288(0x11f)+_0x5bd539+'.');}function serializeChannelConfig(_0x48b07f){const _0x104f89=a146_0x4de633;return _0x48b07f===null||_0x48b07f===undefined?null:JSON[_0x104f89(0xdc)](_0x48b07f);}function redactSensitive(_0x1d666c){const _0x248775=a146_0x4de633;return _0x1d666c===null||_0x1d666c===undefined||_0x1d666c===''?null:_0x248775(0xf9);}function requireResponseString(_0x3ba707,_0x520068,_0x5478ea){const _0x4d1bb3=a146_0x4de633;if(typeof _0x3ba707!==_0x4d1bb3(0xa7)||_0x3ba707['trim']()==='')throw CliErrors[_0x4d1bb3(0xbd)](_0x4d1bb3(0x104),'Item\x20'+(_0x5478ea+0x1)+_0x4d1bb3(0x11c)+_0x520068+'\x22.');return _0x3ba707[_0x4d1bb3(0x114)]();}function requireExactString(_0xa2e31,_0x51a250,_0x1794ba){const _0x189b46=a146_0x4de633;if(typeof _0xa2e31!==_0x189b46(0xa7)||_0xa2e31[_0x189b46(0x114)]()==='')throw notificationError(_0x189b46(0xe0),'Notification\x20config\x20'+_0x1794ba+'\x20is\x20missing\x20required\x20field\x20\x22'+_0x51a250+'\x22.');return _0xa2e31[_0x189b46(0x114)]();}function responseNullableString(_0x596458,_0x4ef08e,_0x54fefe){const _0x4da756=a146_0x4de633;if(_0x596458===undefined||_0x596458===null)return null;if(typeof _0x596458!==_0x4da756(0xa7))throw notificationError(_0x4da756(0xe0),_0x4da756(0xb1)+_0x54fefe+_0x4da756(0x11b)+_0x4ef08e+'\x22.');return _0x596458;}function responseNullableTimeout(_0x1f2621,_0xfdf4fa,_0x7666b3){const _0x231029=a146_0x4de633;if(_0x1f2621===undefined||_0x1f2621===null)return null;if(!Number[_0x231029(0xc6)](_0x1f2621)||_0x1f2621<0x0)throw notificationError(_0x231029(0xe0),'Notification\x20config\x20'+_0x7666b3+_0x231029(0x11b)+_0xfdf4fa+'\x22.');return _0x1f2621;}function normalizeNullableString(_0x2a7b67){const _0x594670=a146_0x4de633;return typeof _0x2a7b67===_0x594670(0xa7)?_0x2a7b67:null;}function isJsonObject(_0x2e5e73){const _0x3f948c=a146_0x4de633;return _0x2e5e73!==null&&typeof _0x2e5e73===_0x3f948c(0xd4)&&!Array[_0x3f948c(0x101)](_0x2e5e73);}function hasOwn(_0x3008cc,_0x397282){const _0x12aca4=a146_0x4de633;return Object[_0x12aca4(0xc7)][_0x12aca4(0x10d)]['call'](_0x3008cc,_0x397282);}async function readStdin(){const _0x1b60a4=a146_0x4de633;let _0x226f8a='';process[_0x1b60a4(0xe5)]['setEncoding'](_0x1b60a4(0x116));for await(const _0x20e60d of process[_0x1b60a4(0xe5)])_0x226f8a+=_0x20e60d;return _0x226f8a;}
1
+ const a159_0x122a20=a159_0x141c;(function(_0x622d90,_0x38182c){const _0x376bb4=a159_0x141c,_0x200edb=_0x622d90();while(!![]){try{const _0x46b270=parseInt(_0x376bb4(0x245))/0x1+parseInt(_0x376bb4(0x248))/0x2*(parseInt(_0x376bb4(0x1f2))/0x3)+-parseInt(_0x376bb4(0x1f9))/0x4+-parseInt(_0x376bb4(0x200))/0x5+-parseInt(_0x376bb4(0x210))/0x6*(-parseInt(_0x376bb4(0x209))/0x7)+-parseInt(_0x376bb4(0x263))/0x8*(parseInt(_0x376bb4(0x22a))/0x9)+parseInt(_0x376bb4(0x254))/0xa;if(_0x46b270===_0x38182c)break;else _0x200edb['push'](_0x200edb['shift']());}catch(_0x2e2421){_0x200edb['push'](_0x200edb['shift']());}}}(a159_0x4a41,0x8d215));import{readFile}from'node:fs/promises';import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{getNotificationChannelConfig}from'../../core/api-client.js';import{CliError,CliErrors}from'../../errors.js';export const NOTIFICATION_CHANNEL_TYPES=[a159_0x122a20(0x259),a159_0x122a20(0x226),a159_0x122a20(0x205),a159_0x122a20(0x26f),a159_0x122a20(0x246)];export const DEFAULT_NOTIFICATION_CONNECT_TIMEOUT=0x1388;export const DEFAULT_NOTIFICATION_READ_TIMEOUT=0x2710;const ALLOWED_INPUT_FIELDS=new Set([a159_0x122a20(0x232),a159_0x122a20(0x1f8),'endpointUrl','channelConfig',a159_0x122a20(0x247),a159_0x122a20(0x1fa),a159_0x122a20(0x230)]),FORBIDDEN_IDENTITY_FIELDS=new Set(['id',a159_0x122a20(0x23b),'configCode',a159_0x122a20(0x251)]),EMAIL_RECIPIENT_FIELDS=new Set(['emailTargets',a159_0x122a20(0x219),a159_0x122a20(0x26a),a159_0x122a20(0x22f),a159_0x122a20(0x26e),a159_0x122a20(0x25f),a159_0x122a20(0x268),'to','cc']);export const NOTIFICATION_INPUT_FLAGS=[{'name':'file','type':a159_0x122a20(0x241),'required':![],'description':a159_0x122a20(0x214)},{'name':a159_0x122a20(0x206),'type':a159_0x122a20(0x21b),'required':![],'default':![],'description':a159_0x122a20(0x23e)},{'name':a159_0x122a20(0x229),'type':'string','required':![],'description':a159_0x122a20(0x25c)}];export const NOTIFICATION_ID_FLAG={'name':'id','type':a159_0x122a20(0x264),'required':!![],'description':a159_0x122a20(0x220)};export const NOTIFICATION_APP_FLAG=APPCODE_FLAG_OPTIONAL;export function notificationError(_0x35554c,_0xdb83b2,_0x4cc029){return new CliError(_0x35554c,0x1,_0xdb83b2,_0x4cc029);}export function readNotificationId(_0x4c028e){const _0x46efc3=a159_0x122a20,_0xce267a=_0x4c028e[_0x46efc3(0x20b)]('id');if(!Number[_0x46efc3(0x215)](_0xce267a)||_0xce267a<=0x0)throw notificationError(_0x46efc3(0x24f),'--id\x20must\x20be\x20a\x20positive\x20safe\x20integer.');return _0xce267a;}export function requireNotificationExplicitYes(_0x31fe29){const _0x3d5072=a159_0x122a20;if(_0x31fe29[_0x3d5072(0x23f)]('dry-run')||_0x31fe29[_0x3d5072(0x23f)]('yes'))return;throw notificationError(_0x3d5072(0x203),_0x3d5072(0x21f),_0x3d5072(0x21e));}export function readNotificationChannelType(_0x4a99f3,_0x276485=a159_0x122a20(0x1f1),_0x5a7c26=a159_0x122a20(0x259)){const _0x5a2fb8=a159_0x122a20,_0x33ed88=_0x4a99f3[_0x5a2fb8(0x265)](_0x276485)[_0x5a2fb8(0x26b)]()||_0x5a7c26;if(!NOTIFICATION_CHANNEL_TYPES[_0x5a2fb8(0x208)](_0x33ed88))throw CliErrors[_0x5a2fb8(0x202)](_0x5a2fb8(0x25b)+_0x276485+':\x20'+_0x33ed88,_0x5a2fb8(0x250)+NOTIFICATION_CHANNEL_TYPES[_0x5a2fb8(0x20c)](',\x20')+'.');return _0x33ed88;}export function assertSingleNotificationSource(_0x8ab6e6){const _0x4a5d93=a159_0x122a20,_0x26c926=[],_0x12838d=_0x8ab6e6[_0x4a5d93(0x265)](_0x4a5d93(0x201))[_0x4a5d93(0x26b)]();if(_0x12838d)_0x26c926['push']({'kind':_0x4a5d93(0x201),'path':_0x12838d});if(_0x8ab6e6[_0x4a5d93(0x23f)](_0x4a5d93(0x206)))_0x26c926[_0x4a5d93(0x217)]({'kind':_0x4a5d93(0x206)});const _0x470cdd=_0x8ab6e6[_0x4a5d93(0x265)]('from-env')[_0x4a5d93(0x26b)]();if(_0x470cdd)_0x26c926['push']({'kind':_0x4a5d93(0x1fd),'name':_0x470cdd});if(_0x26c926['length']===0x0)throw CliErrors[_0x4a5d93(0x202)](_0x4a5d93(0x24a),_0x4a5d93(0x267));if(_0x26c926['length']>0x1)throw CliErrors['validation'](_0x4a5d93(0x1f4),_0x4a5d93(0x267));return _0x26c926[0x0];}export async function readNotificationDocument(_0x29b56f,_0xa114dd){const _0x4f8bfc=a159_0x122a20,_0x260824=assertSingleNotificationSource(_0x29b56f),_0x2942c6=_0x260824['kind']===_0x4f8bfc(0x201)?'file\x20'+_0x260824[_0x4f8bfc(0x216)]:_0x260824[_0x4f8bfc(0x25e)]===_0x4f8bfc(0x1fd)?_0x4f8bfc(0x22c)+_0x260824['name']:_0x4f8bfc(0x206);let _0x42505a;try{if(_0x260824[_0x4f8bfc(0x25e)]==='file')_0x42505a=await readFile(_0x260824['path'],'utf8');else{if(_0x260824[_0x4f8bfc(0x25e)]===_0x4f8bfc(0x1fd)){if(!(_0x260824[_0x4f8bfc(0x228)]in process.env))throw notificationError(_0x4f8bfc(0x231),_0x4f8bfc(0x252)+_0x260824[_0x4f8bfc(0x228)]);_0x42505a=process.env[_0x260824.name]??'';}else _0x42505a=await readStdin();}}catch(_0x335ff1){if(_0x335ff1 instanceof CliError)throw _0x335ff1;throw notificationError(_0x4f8bfc(0x231),_0x4f8bfc(0x262)+_0x2942c6+'.');}let _0x2f6b96;try{_0x2f6b96=JSON['parse'](_0x42505a);}catch{throw notificationError(_0x4f8bfc(0x24c),_0x4f8bfc(0x249)+_0x2942c6+_0x4f8bfc(0x261),'Provide\x20one\x20valid\x20JSON\x20object;\x20source\x20contents\x20are\x20not\x20included\x20in\x20errors.');}if(!isJsonObject(_0x2f6b96))throw notificationError('notification_config_json_invalid',_0x4f8bfc(0x249)+_0x2942c6+_0x4f8bfc(0x20d));return validateNotificationDocument(_0x2f6b96,_0xa114dd);}export function projectNotificationListConfig(_0xd111d6,_0xd25b87){const _0x3074ed=a159_0x122a20;return{'id':typeof _0xd111d6['id']===_0x3074ed(0x264)?_0xd111d6['id']:null,'configCode':requireResponseString(_0xd111d6['configCode'],'configCode',_0xd25b87),'configName':requireResponseString(_0xd111d6['configName'],_0x3074ed(0x232),_0xd25b87),'channelType':requireResponseString(_0xd111d6[_0x3074ed(0x1f8)],_0x3074ed(0x1f8),_0xd25b87),'description':normalizeNullableString(_0xd111d6[_0x3074ed(0x247)]),'createTime':normalizeNullableString(_0xd111d6[_0x3074ed(0x223)]),'updateTime':normalizeNullableString(_0xd111d6['updateTime'])};}export function normalizeExactNotificationConfig(_0x4033e1,_0x194c61,_0x3443bc){const _0x5695b5=a159_0x122a20;if(!Number[_0x5695b5(0x215)](_0x4033e1['id'])||_0x4033e1['id']!==_0x194c61)throw notificationError(_0x5695b5(0x22d),_0x5695b5(0x26c)+_0x194c61+'.');if(_0x4033e1['appCode']!==_0x3443bc)throw notificationError('notification_config_response_invalid','Notification\x20config\x20'+_0x194c61+_0x5695b5(0x258));const _0x161cc4=requireExactString(_0x4033e1[_0x5695b5(0x232)],_0x5695b5(0x232),_0x194c61),_0x2ba147=requireExactString(_0x4033e1[_0x5695b5(0x271)],_0x5695b5(0x271),_0x194c61),_0x5be129=requireExactString(_0x4033e1[_0x5695b5(0x1f8)],_0x5695b5(0x1f8),_0x194c61);if(!NOTIFICATION_CHANNEL_TYPES['includes'](_0x5be129))throw notificationError(_0x5695b5(0x22d),_0x5695b5(0x1f5)+_0x194c61+'\x20has\x20an\x20unsupported\x20channelType.');const _0x357106=responseNullableString(_0x4033e1[_0x5695b5(0x20a)],_0x5695b5(0x20a),_0x194c61),_0x22acf3=responseNullableString(_0x4033e1['channelConfig'],'channelConfig',_0x194c61),_0x4009df=responseNullableString(_0x4033e1[_0x5695b5(0x247)],'description',_0x194c61),_0x3df896=responseNullableTimeout(_0x4033e1[_0x5695b5(0x1fa)],_0x5695b5(0x1fa),_0x194c61),_0x12606b=responseNullableTimeout(_0x4033e1['readTimeout'],_0x5695b5(0x230),_0x194c61);return{'id':_0x194c61,'appCode':_0x3443bc,'configCode':_0x2ba147,'configName':_0x161cc4,'channelType':_0x5be129,'endpointUrl':redactSensitive(_0x357106),'channelConfig':redactSensitive(_0x22acf3),'description':_0x4009df,'connectTimeout':_0x3df896,'readTimeout':_0x12606b,'endpointUrlRaw':_0x357106,'channelConfigRaw':_0x22acf3};}export async function requireExactNotificationConfig(_0x38ac2b,_0x5ced4d,_0x3a895e){const _0x3e7c64=a159_0x122a20;let _0x586a96;try{_0x586a96=await getNotificationChannelConfig(_0x5ced4d,_0x38ac2b);}catch{throw safeApiFailure(_0x3a895e,_0x3e7c64(0x253),_0x3e7c64(0x234)+_0x38ac2b+_0x3e7c64(0x224));}return normalizeExactNotificationConfig(_0x586a96,_0x5ced4d,_0x38ac2b);}export function projectNotificationConfig(_0x38b61b){const _0x393a80=a159_0x122a20;return{'id':_0x38b61b['id']??null,'appCode':_0x38b61b[_0x393a80(0x23b)],'configCode':_0x38b61b['configCode']??null,'configName':_0x38b61b[_0x393a80(0x232)],'channelType':_0x38b61b[_0x393a80(0x1f8)],'endpointUrl':redactSensitive(_0x38b61b[_0x393a80(0x20a)]),'channelConfig':redactSensitive(_0x38b61b[_0x393a80(0x260)]),'description':_0x38b61b['description']??null,'connectTimeout':_0x38b61b[_0x393a80(0x1fa)]??null,'readTimeout':_0x38b61b[_0x393a80(0x230)]??null};}export function notificationSelector(_0x6da6c){const _0x3fd1f5=a159_0x122a20;return{'appCode':_0x6da6c['appCode'],'id':_0x6da6c['id'],'configCode':_0x6da6c[_0x3fd1f5(0x271)],'configName':_0x6da6c[_0x3fd1f5(0x232)],'channelType':_0x6da6c['channelType']};}export function createMutationInput(_0x26fcdb,_0x10eb19){const _0x55d024=a159_0x122a20;return{'appCode':_0x26fcdb,'configName':_0x10eb19[_0x55d024(0x232)],'channelType':_0x10eb19[_0x55d024(0x1f8)],...hasOwn(_0x10eb19,_0x55d024(0x20a))?{'endpointUrl':_0x10eb19[_0x55d024(0x20a)]}:{},...hasOwn(_0x10eb19,_0x55d024(0x260))?{'channelConfig':serializeChannelConfig(_0x10eb19[_0x55d024(0x260)])}:{},...hasOwn(_0x10eb19,_0x55d024(0x247))?{'description':_0x10eb19['description']}:{},...hasOwn(_0x10eb19,'connectTimeout')?{'connectTimeout':_0x10eb19[_0x55d024(0x1fa)]}:{},...hasOwn(_0x10eb19,_0x55d024(0x230))?{'readTimeout':_0x10eb19['readTimeout']}:{}};}function a159_0x4a41(){const _0x34e08a=['Notification\x20JSON\x20environment\x20variable\x20is\x20not\x20set:\x20','preflight','6555360vXpern','length','\x20--type\x20','\x22configName\x22.','\x20does\x20not\x20belong\x20to\x20the\x20resolved\x20app.','EMAIL','\x22\x20must\x20be\x20a\x20non-empty\x20string.','Invalid\x20--','Read\x20the\x20notification\x20JSON\x20document\x20from\x20a\x20named\x20environment\x20variable','\x22\x20is\x20controlled\x20by\x20the\x20CLI\x20or\x20server\x20and\x20is\x20forbidden.','kind','subjectPrefix','channelConfig','\x20is\x20invalid.','Unable\x20to\x20read\x20notification\x20JSON\x20from\x20','16GDVWQH','number','str','\x20failed.','Use\x20exactly\x20one\x20of\x20--file\x20<path>,\x20--stdin,\x20or\x20--from-env\x20<NAME>.','fromName','notification_config_update_empty','ccList','trim','Notification\x20config\x20detail\x20did\x20not\x20contain\x20the\x20requested\x20ID\x20','\x20has\x20an\x20invalid\x20channelType.','replyTo','WECOM','Unknown\x20notification\x20JSON\x20field\x20\x22','configCode','type','207mqlmJU','a\x20JSON\x20object','Notification\x20JSON\x20source\x20is\x20ambiguous.','Notification\x20config\x20','notification_config_field_forbidden','Create\x20JSON\x20requires\x20field\x20','channelType','2389836zPxgth','connectTimeout','Update\x20JSON\x20must\x20contain\x20at\x20least\x20one\x20allowed\x20field.','utf8','env','call','notification_config_field_required','1507070XZlLIa','file','validation','notification_config_confirmation_required','object','DINGTALK','stdin','notification_config_channel_field_forbidden','includes','2252838NDiqNX','endpointUrl','num','join','\x20must\x20be\x20an\x20object.','\x22\x20cannot\x20exceed\x20','\x22\x20is\x20forbidden.','18zxOmZg','Item\x20','apiError','\x22\x20must\x20be\x20','Read\x20the\x20notification\x20JSON\x20document\x20from\x20a\x20UTF-8\x20file','isSafeInteger','path','push','Notification\x20JSON\x20field\x20\x22','recipients','isArray','boolean','every','\x20has\x20invalid\x20field\x20\x22','Run\x20the\x20command\x20with\x20--dry-run\x20first,\x20then\x20add\x20--yes\x20after\x20reviewing\x20the\x20plan.','This\x20notification\x20config\x20mutation\x20requires\x20explicit\x20--yes.','Application-level\x20notification\x20config\x20ID','a\x20string\x20or\x20null','\x20has\x20an\x20invalid\x20id.','createTime','\x20--type\x20<CHANNEL_TYPE>\x20--format\x20compress;\x20no\x20mutation\x20was\x20submitted.','a\x20JSON\x20object\x20or\x20null','FEISHU','a\x20non-empty\x20string','name','from-env','4272192DYkxUK','\x20--format\x20compress','environment\x20variable\x20','notification_config_response_invalid','\x20is\x20missing\x20required\x20field\x20\x22','bccList','readTimeout','notification_config_source_unavailable','configName','\x20has\x20an\x20invalid\x20appCode.','Inspect\x20with\x20rabetbase\x20notification\x20config-list\x20--appcode\x20','hasOwnProperty','create','update','some','messageTemplate','has','appCode','channelConfigRaw','endpointUrlRaw','Read\x20the\x20notification\x20JSON\x20document\x20from\x20stdin','bool','\x22\x20must\x20be\x20a\x20non-negative\x20safe\x20integer\x20or\x20null.','string','mutation','\x22channelType\x22.','keys','429989cAvtuw','WEBHOOK','description','10878aDehkp','Notification\x20JSON\x20from\x20','Missing\x20notification\x20JSON\x20source.','<redacted>','notification_config_json_invalid','rabetbase\x20notification\x20config-list\x20--appcode\x20','notification_config_field_invalid','notification_config_id_invalid','Allowed\x20values:\x20','channelCode'];a159_0x4a41=function(){return _0x34e08a;};return a159_0x4a41();}export function mergeUpdateInput(_0x346e6f,_0x23f520){const _0x2f944e=a159_0x122a20;return{'id':_0x346e6f['id'],'appCode':_0x346e6f['appCode'],'configName':_0x23f520[_0x2f944e(0x232)]??_0x346e6f[_0x2f944e(0x232)],'channelType':_0x23f520[_0x2f944e(0x1f8)]??_0x346e6f[_0x2f944e(0x1f8)],'endpointUrl':hasOwn(_0x23f520,_0x2f944e(0x20a))?_0x23f520[_0x2f944e(0x20a)]:_0x346e6f[_0x2f944e(0x23d)],'channelConfig':hasOwn(_0x23f520,'channelConfig')?serializeChannelConfig(_0x23f520[_0x2f944e(0x260)]):_0x346e6f[_0x2f944e(0x23c)],'description':hasOwn(_0x23f520,_0x2f944e(0x247))?_0x23f520[_0x2f944e(0x247)]:_0x346e6f[_0x2f944e(0x247)],'connectTimeout':hasOwn(_0x23f520,_0x2f944e(0x1fa))?_0x23f520[_0x2f944e(0x1fa)]:_0x346e6f[_0x2f944e(0x1fa)],'readTimeout':hasOwn(_0x23f520,_0x2f944e(0x230))?_0x23f520[_0x2f944e(0x230)]:_0x346e6f[_0x2f944e(0x230)]};}export function plannedUpdateProjection(_0x1a2d08,_0x24a642){const _0x2cee3e=a159_0x122a20;return projectNotificationConfig({'id':_0x1a2d08['id'],'appCode':_0x1a2d08[_0x2cee3e(0x23b)],'configCode':_0x1a2d08[_0x2cee3e(0x271)],'configName':_0x24a642[_0x2cee3e(0x232)]??_0x1a2d08['configName'],'channelType':_0x24a642[_0x2cee3e(0x1f8)]??_0x1a2d08[_0x2cee3e(0x1f8)],'endpointUrl':hasOwn(_0x24a642,'endpointUrl')?_0x24a642[_0x2cee3e(0x20a)]:_0x1a2d08['endpointUrlRaw'],'channelConfig':hasOwn(_0x24a642,'channelConfig')?_0x24a642['channelConfig']:_0x1a2d08['channelConfigRaw'],'description':hasOwn(_0x24a642,_0x2cee3e(0x247))?_0x24a642[_0x2cee3e(0x247)]:_0x1a2d08['description'],'connectTimeout':hasOwn(_0x24a642,_0x2cee3e(0x1fa))?_0x24a642[_0x2cee3e(0x1fa)]??DEFAULT_NOTIFICATION_CONNECT_TIMEOUT:_0x1a2d08[_0x2cee3e(0x1fa)],'readTimeout':hasOwn(_0x24a642,_0x2cee3e(0x230))?_0x24a642[_0x2cee3e(0x230)]??DEFAULT_NOTIFICATION_READ_TIMEOUT:_0x1a2d08[_0x2cee3e(0x230)]});}export function requestedSafeFieldsMatch(_0x4fad03,_0x1ef733,_0x48317d){const _0x35dcd0=a159_0x122a20,_0x1b21b4=[],_0x77c7b8=[],_0x139de4=[];for(const _0x392558 of['configName',_0x35dcd0(0x1f8),_0x35dcd0(0x247)]){if(!hasOwn(_0x48317d,_0x392558))continue;_0x139de4['push'](_0x392558),_0x1b21b4[_0x35dcd0(0x217)](_0x1ef733[_0x392558]===_0x48317d[_0x392558]),_0x77c7b8[_0x35dcd0(0x217)](_0x4fad03[_0x392558]!==_0x48317d[_0x392558]&&_0x1ef733[_0x392558]===_0x48317d[_0x392558]);}for(const _0xce066f of[_0x35dcd0(0x1fa),_0x35dcd0(0x230)]){if(!hasOwn(_0x48317d,_0xce066f))continue;const _0x31daaf=_0x48317d[_0xce066f]??(_0xce066f===_0x35dcd0(0x1fa)?DEFAULT_NOTIFICATION_CONNECT_TIMEOUT:DEFAULT_NOTIFICATION_READ_TIMEOUT);_0x139de4[_0x35dcd0(0x217)](_0xce066f),_0x1b21b4[_0x35dcd0(0x217)](_0x1ef733[_0xce066f]===_0x31daaf),_0x77c7b8[_0x35dcd0(0x217)](_0x4fad03[_0xce066f]!==_0x31daaf&&_0x1ef733[_0xce066f]===_0x31daaf);}return hasOwn(_0x48317d,_0x35dcd0(0x20a))&&_0x48317d['endpointUrl']===null&&(_0x139de4[_0x35dcd0(0x217)]('endpointUrl:null'),_0x1b21b4[_0x35dcd0(0x217)](_0x1ef733[_0x35dcd0(0x23d)]===null||_0x1ef733['endpointUrlRaw']===''),_0x77c7b8[_0x35dcd0(0x217)](_0x4fad03['endpointUrlRaw']!==null&&_0x4fad03[_0x35dcd0(0x23d)]!==''&&(_0x1ef733[_0x35dcd0(0x23d)]===null||_0x1ef733[_0x35dcd0(0x23d)]===''))),{'allMatch':_0x1b21b4[_0x35dcd0(0x21c)](Boolean),'provesChange':_0x77c7b8[_0x35dcd0(0x238)](Boolean),'verifiedFields':_0x139de4};}export function validateNotificationDeleteReadback(_0x2ce1f0,_0x51ed2e,_0xc27d2d){const _0x411ff4=a159_0x122a20;for(const [_0x2bc473,_0x55c7fa]of _0x2ce1f0['entries']()){if(!Number['isSafeInteger'](_0x55c7fa['id'])||_0x55c7fa['id']<=0x0)throw notificationError('notification_config_response_invalid','Notification\x20config\x20list\x20item\x20'+(_0x2bc473+0x1)+_0x411ff4(0x222));if(_0x55c7fa[_0x411ff4(0x23b)]!==_0x51ed2e)throw notificationError('notification_config_response_invalid','Notification\x20config\x20list\x20item\x20'+(_0x2bc473+0x1)+_0x411ff4(0x233));if(_0x55c7fa[_0x411ff4(0x1f8)]!==_0xc27d2d)throw notificationError(_0x411ff4(0x22d),'Notification\x20config\x20list\x20item\x20'+(_0x2bc473+0x1)+_0x411ff4(0x26d));}}export function safeApiFailure(_0x1e0787,_0x3a3cce,_0x490378){const _0x2e8ad6=a159_0x122a20;return notificationError('notification_config_'+_0x1e0787+'_'+(_0x3a3cce===_0x2e8ad6(0x242)?'failed':_0x3a3cce+'_unavailable'),_0x2e8ad6(0x1f5)+_0x1e0787+'\x20'+_0x3a3cce+_0x2e8ad6(0x266),_0x490378);}export function notificationLookupCommand(_0x3c1898,_0x2a6124){const _0x3d19ac=a159_0x122a20;return _0x3d19ac(0x24d)+_0x3c1898+_0x3d19ac(0x256)+_0x2a6124+_0x3d19ac(0x22b);}function validateNotificationDocument(_0x28bcb0,_0x2d52bd){const _0x3fdd29=a159_0x122a20;for(const _0x434641 of Object[_0x3fdd29(0x244)](_0x28bcb0)){if(FORBIDDEN_IDENTITY_FIELDS[_0x3fdd29(0x23a)](_0x434641))throw notificationError(_0x3fdd29(0x1f6),'Notification\x20JSON\x20field\x20\x22'+_0x434641+_0x3fdd29(0x25d));if(!ALLOWED_INPUT_FIELDS[_0x3fdd29(0x23a)](_0x434641))throw notificationError('notification_config_field_unknown',_0x3fdd29(0x270)+_0x434641+'\x22.');}if(_0x2d52bd===_0x3fdd29(0x237)&&Object[_0x3fdd29(0x244)](_0x28bcb0)[_0x3fdd29(0x255)]===0x0)throw notificationError(_0x3fdd29(0x269),_0x3fdd29(0x1fb));const _0x15e395={};if(hasOwn(_0x28bcb0,_0x3fdd29(0x232)))_0x15e395[_0x3fdd29(0x232)]=validateRequiredString(_0x28bcb0[_0x3fdd29(0x232)],_0x3fdd29(0x232),0x80);else{if(_0x2d52bd===_0x3fdd29(0x236))throw notificationError(_0x3fdd29(0x1ff),'Create\x20JSON\x20requires\x20field\x20'+_0x3fdd29(0x257));}if(hasOwn(_0x28bcb0,_0x3fdd29(0x1f8))){if(typeof _0x28bcb0[_0x3fdd29(0x1f8)]!==_0x3fdd29(0x241))throw invalidFieldType(_0x3fdd29(0x1f8),'a\x20supported\x20string');const _0xf4bae9=_0x28bcb0[_0x3fdd29(0x1f8)]['trim']();if(!NOTIFICATION_CHANNEL_TYPES[_0x3fdd29(0x208)](_0xf4bae9))throw notificationError(_0x3fdd29(0x24e),'Notification\x20JSON\x20field\x20\x22channelType\x22\x20is\x20unsupported.',_0x3fdd29(0x250)+NOTIFICATION_CHANNEL_TYPES[_0x3fdd29(0x20c)](',\x20')+'.');_0x15e395[_0x3fdd29(0x1f8)]=_0xf4bae9;}else{if(_0x2d52bd===_0x3fdd29(0x236))throw notificationError(_0x3fdd29(0x1ff),_0x3fdd29(0x1f7)+_0x3fdd29(0x243));}for(const [_0x4f5fb6,_0x1b9134]of[[_0x3fdd29(0x20a),0x200],['description',0x100]]){if(!hasOwn(_0x28bcb0,_0x4f5fb6))continue;const _0x519b9b=_0x28bcb0[_0x4f5fb6];if(_0x519b9b!==null&&typeof _0x519b9b!=='string')throw invalidFieldType(_0x4f5fb6,_0x3fdd29(0x221));if(typeof _0x519b9b===_0x3fdd29(0x241)&&_0x519b9b[_0x3fdd29(0x255)]>_0x1b9134)throw notificationError(_0x3fdd29(0x24e),_0x3fdd29(0x218)+_0x4f5fb6+_0x3fdd29(0x20e)+_0x1b9134+'\x20characters.');_0x15e395[_0x4f5fb6]=_0x519b9b;}if(hasOwn(_0x28bcb0,'channelConfig')){const _0x586d5e=_0x28bcb0[_0x3fdd29(0x260)];if(_0x586d5e===null&&_0x2d52bd===_0x3fdd29(0x236))throw invalidFieldType(_0x3fdd29(0x260),_0x3fdd29(0x1f3));if(_0x586d5e!==null&&!isJsonObject(_0x586d5e))throw invalidFieldType(_0x3fdd29(0x260),_0x2d52bd==='update'?_0x3fdd29(0x225):_0x3fdd29(0x1f3));_0x586d5e!==null&&validateChannelConfigFields(_0x15e395[_0x3fdd29(0x1f8)],_0x586d5e),_0x15e395[_0x3fdd29(0x260)]=_0x586d5e;}for(const _0x50642b of[_0x3fdd29(0x1fa),_0x3fdd29(0x230)]){if(!hasOwn(_0x28bcb0,_0x50642b))continue;const _0x2479fd=_0x28bcb0[_0x50642b];if(_0x2479fd!==null&&(!Number[_0x3fdd29(0x215)](_0x2479fd)||_0x2479fd<0x0))throw notificationError(_0x3fdd29(0x24e),_0x3fdd29(0x218)+_0x50642b+_0x3fdd29(0x240));_0x15e395[_0x50642b]=_0x2479fd;}return _0x15e395;}function a159_0x141c(_0x1b448,_0x422b6c){_0x1b448=_0x1b448-0x1f1;const _0x4a41b4=a159_0x4a41();let _0x141c69=_0x4a41b4[_0x1b448];return _0x141c69;}function validateRequiredString(_0x262143,_0x24e0d4,_0xe90adf){const _0xd58ea1=a159_0x122a20;if(typeof _0x262143!=='string')throw invalidFieldType(_0x24e0d4,_0xd58ea1(0x227));const _0xf64e55=_0x262143[_0xd58ea1(0x26b)]();if(!_0xf64e55)throw notificationError('notification_config_field_invalid',_0xd58ea1(0x218)+_0x24e0d4+_0xd58ea1(0x25a));if(_0xf64e55[_0xd58ea1(0x255)]>_0xe90adf)throw notificationError('notification_config_field_invalid',_0xd58ea1(0x218)+_0x24e0d4+_0xd58ea1(0x20e)+_0xe90adf+'\x20characters.');return _0xf64e55;}function validateChannelConfigFields(_0x3b3080,_0x4122de){const _0x3837b7=a159_0x122a20;if(hasOwn(_0x4122de,_0x3837b7(0x239)))throw forbiddenChannelConfigField('messageTemplate');if(_0x3b3080===_0x3837b7(0x259))for(const _0x251420 of EMAIL_RECIPIENT_FIELDS){if(hasOwn(_0x4122de,_0x251420))throw forbiddenChannelConfigField(_0x251420);}}function forbiddenChannelConfigField(_0x34fcdb){const _0x1d513a=a159_0x122a20;return notificationError(_0x1d513a(0x207),'Notification\x20JSON\x20channelConfig\x20field\x20\x22'+_0x34fcdb+_0x1d513a(0x20f));}function invalidFieldType(_0x1f3523,_0x36c349){const _0x39eb2b=a159_0x122a20;return notificationError('notification_config_field_invalid',_0x39eb2b(0x218)+_0x1f3523+_0x39eb2b(0x213)+_0x36c349+'.');}function serializeChannelConfig(_0xaaa7a2){return _0xaaa7a2===null||_0xaaa7a2===undefined?null:JSON['stringify'](_0xaaa7a2);}function redactSensitive(_0x1f50ec){const _0x22216f=a159_0x122a20;return _0x1f50ec===null||_0x1f50ec===undefined||_0x1f50ec===''?null:_0x22216f(0x24b);}function requireResponseString(_0x1eb3e5,_0x7edd7,_0x2c7781){const _0x4930be=a159_0x122a20;if(typeof _0x1eb3e5!==_0x4930be(0x241)||_0x1eb3e5['trim']()==='')throw CliErrors[_0x4930be(0x212)]('Invalid\x20notification\x20config\x20response.',_0x4930be(0x211)+(_0x2c7781+0x1)+'\x20is\x20missing\x20required\x20field\x20\x22'+_0x7edd7+'\x22.');return _0x1eb3e5['trim']();}function requireExactString(_0x437f57,_0x1628e0,_0x1b27a3){const _0x54f0d6=a159_0x122a20;if(typeof _0x437f57!==_0x54f0d6(0x241)||_0x437f57[_0x54f0d6(0x26b)]()==='')throw notificationError('notification_config_response_invalid',_0x54f0d6(0x1f5)+_0x1b27a3+_0x54f0d6(0x22e)+_0x1628e0+'\x22.');return _0x437f57[_0x54f0d6(0x26b)]();}function responseNullableString(_0x2e2f62,_0x4fd475,_0x3dab3d){const _0x5c7245=a159_0x122a20;if(_0x2e2f62===undefined||_0x2e2f62===null)return null;if(typeof _0x2e2f62!=='string')throw notificationError(_0x5c7245(0x22d),_0x5c7245(0x1f5)+_0x3dab3d+_0x5c7245(0x21d)+_0x4fd475+'\x22.');return _0x2e2f62;}function responseNullableTimeout(_0x55b407,_0x499011,_0x31a172){const _0x519abb=a159_0x122a20;if(_0x55b407===undefined||_0x55b407===null)return null;if(!Number[_0x519abb(0x215)](_0x55b407)||_0x55b407<0x0)throw notificationError('notification_config_response_invalid',_0x519abb(0x1f5)+_0x31a172+_0x519abb(0x21d)+_0x499011+'\x22.');return _0x55b407;}function normalizeNullableString(_0x17b8ef){return typeof _0x17b8ef==='string'?_0x17b8ef:null;}function isJsonObject(_0x1a2b57){const _0x4441f8=a159_0x122a20;return _0x1a2b57!==null&&typeof _0x1a2b57===_0x4441f8(0x204)&&!Array[_0x4441f8(0x21a)](_0x1a2b57);}function hasOwn(_0x7fd702,_0x40936a){const _0x5ef969=a159_0x122a20;return Object['prototype'][_0x5ef969(0x235)][_0x5ef969(0x1fe)](_0x7fd702,_0x40936a);}async function readStdin(){const _0x185d35=a159_0x122a20;let _0x1de476='';process[_0x185d35(0x206)]['setEncoding'](_0x185d35(0x1fc));for await(const _0x426205 of process[_0x185d35(0x206)])_0x1de476+=_0x426205;return _0x1de476;}
@@ -1 +1 @@
1
- const a147_0x180acd=a147_0x21d8;(function(_0x4c5768,_0x1d7680){const _0x256f33=a147_0x21d8,_0x15d5a4=_0x4c5768();while(!![]){try{const _0xa90fd=-parseInt(_0x256f33(0x14e))/0x1*(-parseInt(_0x256f33(0x160))/0x2)+parseInt(_0x256f33(0x15a))/0x3*(parseInt(_0x256f33(0x165))/0x4)+-parseInt(_0x256f33(0x15f))/0x5*(-parseInt(_0x256f33(0x16a))/0x6)+parseInt(_0x256f33(0x156))/0x7+-parseInt(_0x256f33(0x142))/0x8*(-parseInt(_0x256f33(0x157))/0x9)+-parseInt(_0x256f33(0x150))/0xa+-parseInt(_0x256f33(0x14b))/0xb;if(_0xa90fd===_0x1d7680)break;else _0x15d5a4['push'](_0x15d5a4['shift']());}catch(_0x5ba4dd){_0x15d5a4['push'](_0x15d5a4['shift']());}}}(a147_0x2600,0x1c166));function a147_0x21d8(_0x98c236,_0x11e45e){_0x98c236=_0x98c236-0x13f;const _0x2600f8=a147_0x2600();let _0x21d89c=_0x2600f8[_0x98c236];return _0x21d89c;}import{requireDevelopmentUploadFile}from'../../commands/common/local-file.js';import{queryDevelopmentFileUrl,recognizeDevelopmentOcr,uploadDevelopmentFile}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';const SUPPORTED_SCENES=[a147_0x180acd(0x147),a147_0x180acd(0x171),a147_0x180acd(0x15b),a147_0x180acd(0x162)],SCENE_TO_LEGACY_TYPE={'invoice':a147_0x180acd(0x161),'general':a147_0x180acd(0x151),'form':a147_0x180acd(0x144),'idCard':a147_0x180acd(0x16e)},SCENE_FLAG={'name':a147_0x180acd(0x14d),'type':'string','required':!![],'enum':[...SUPPORTED_SCENES],'description':'OCR\x20scene:\x20invoice,\x20general,\x20form,\x20or\x20idCard'},IMAGE_FILE_FLAG={'name':'image-file','type':a147_0x180acd(0x152),'description':a147_0x180acd(0x166)},IMAGE_URL_FLAG={'name':'image-url','type':a147_0x180acd(0x152),'description':a147_0x180acd(0x148)};function normalizeScene(_0x56fd3f){const _0xbf0a6a=a147_0x180acd,_0x27541b=_0x56fd3f[_0xbf0a6a(0x158)]()[_0xbf0a6a(0x159)]();if(_0x27541b==='idcard')return _0xbf0a6a(0x162);if(_0x27541b===_0xbf0a6a(0x147)||_0x27541b===_0xbf0a6a(0x171)||_0x27541b==='form')return _0x27541b;throw CliErrors['validation'](_0xbf0a6a(0x163)+_0x56fd3f+'.\x20Supported\x20scenes:\x20'+SUPPORTED_SCENES[_0xbf0a6a(0x146)](',\x20'));}function selectedInputs(_0x354b95){const _0x33bf7d=a147_0x180acd,_0x5bed83=_0x354b95[_0x33bf7d(0x170)](_0x33bf7d(0x176))[_0x33bf7d(0x158)](),_0x3c1c31=_0x354b95[_0x33bf7d(0x170)](_0x33bf7d(0x168))[_0x33bf7d(0x158)]();return{'imageFile':_0x5bed83,'imageUrl':_0x3c1c31,'count':[_0x5bed83,_0x3c1c31]['filter'](Boolean)[_0x33bf7d(0x141)]};}function validateInputSelection(_0xa92c11){const _0x2c1bcc=a147_0x180acd,_0x46d62d=selectedInputs(_0xa92c11);if(_0x46d62d[_0x2c1bcc(0x16b)]!==0x1)throw CliErrors['validation'](_0x2c1bcc(0x16f));return _0x46d62d;}function withScene(_0x2ef9c6,_0x167a86,_0x59ffa1){const _0x315ed9=a147_0x180acd;return{..._0x2ef9c6,'scene':_0x167a86,..._0x59ffa1?{'sourceFile':{'fileName':_0x59ffa1[_0x315ed9(0x155)],'filePath':_0x59ffa1[_0x315ed9(0x169)]}}:{}};}const ocrRecognize={'service':a147_0x180acd(0x15e),'command':'recognize','description':'Extract\x20text\x20and\x20structured\x20fields\x20from\x20voucher-style\x20business\x20documents;\x20not\x20for\x20general\x20image\x20understanding','risk':a147_0x180acd(0x175),'flags':[SCENE_FLAG,IMAGE_FILE_FLAG,IMAGE_URL_FLAG],async 'dryRun'(_0x48bfee){const _0xd61e79=a147_0x180acd,_0x1f77b2=normalizeScene(_0x48bfee[_0xd61e79(0x170)](_0xd61e79(0x14d))),_0x3cd50a=SCENE_TO_LEGACY_TYPE[_0x1f77b2],_0x19fb78=validateInputSelection(_0x48bfee);if(_0x19fb78[_0xd61e79(0x153)]){const _0xfe3a07=new URLSearchParams({'url':_0x19fb78['imageUrl'],'type':_0x3cd50a,'appCode':_0x48bfee[_0xd61e79(0x140)]});return{'method':_0xd61e79(0x164),'url':_0xd61e79(0x15d)+_0xfe3a07[_0xd61e79(0x16c)](),'description':'Preview:\x20recognize\x20'+_0x1f77b2+'\x20OCR\x20from\x20URL'};}const _0x2e5db3=requireDevelopmentUploadFile(_0x19fb78[_0xd61e79(0x174)],_0xd61e79(0x176));return{'method':_0xd61e79(0x16d),'url':_0xd61e79(0x154),'body':{'steps':[{'method':_0xd61e79(0x16d),'url':'/smartapi/common/uploadFile','body':{'appCode':_0x48bfee[_0xd61e79(0x140)],'multipart':{'file':_0x2e5db3}}},{'method':_0xd61e79(0x16d),'url':_0xd61e79(0x172),'body':{'filePath':_0xd61e79(0x143),'downloadFlag':![]}},{'method':_0xd61e79(0x164),'url':_0xd61e79(0x167),'query':{'appCode':_0x48bfee[_0xd61e79(0x140)],'url':_0xd61e79(0x173),'type':_0x3cd50a}}]},'description':_0xd61e79(0x15c)+_0x1f77b2+_0xd61e79(0x149)};},async 'execute'(_0x4520bc){const _0x30b1af=a147_0x180acd,_0x3b0130=normalizeScene(_0x4520bc[_0x30b1af(0x170)](_0x30b1af(0x14d))),_0x48c6d1=SCENE_TO_LEGACY_TYPE[_0x3b0130],_0x6f3e4=validateInputSelection(_0x4520bc);if(_0x6f3e4[_0x30b1af(0x153)]){const _0x1d6734=await recognizeDevelopmentOcr(_0x4520bc['appCode'],{'url':_0x6f3e4[_0x30b1af(0x153)],'type':_0x48c6d1});return{'ok':!![],'data':withScene(_0x1d6734,_0x3b0130)};}const _0x4abbe2=requireDevelopmentUploadFile(_0x6f3e4['imageFile'],_0x30b1af(0x176)),_0x455f1d=await uploadDevelopmentFile(_0x4520bc['appCode'],_0x4abbe2[_0x30b1af(0x14a)]);if(!_0x455f1d[_0x30b1af(0x169)])throw CliErrors['apiError'](_0x30b1af(0x13f));const _0x3070fd=await queryDevelopmentFileUrl(_0x455f1d[_0x30b1af(0x169)],{'download':![]});if(!_0x3070fd[_0x30b1af(0x14f)])throw CliErrors[_0x30b1af(0x145)](_0x30b1af(0x14c));const _0x4c774e=await recognizeDevelopmentOcr(_0x4520bc['appCode'],{'url':_0x3070fd[_0x30b1af(0x14f)],'type':_0x48c6d1});return{'ok':!![],'data':withScene(_0x4c774e,_0x3b0130,_0x455f1d)};}};export const ocrDefinitions=[ocrRecognize];function a147_0x2600(){const _0x14b1fe=['filePath','12LqRiWG','count','toString','POST','IdCard','Choose\x20exactly\x20one\x20OCR\x20input:\x20--image-file\x20or\x20--image-url.','str','general','/smartapi/common/queryFileUrl','<fileUrl\x20returned\x20by\x20/smartapi/common/queryFileUrl>','imageFile','read','image-file','File\x20upload\x20response\x20missing\x20filePath.','appCode','length','1102328kIeXsF','<filePath\x20returned\x20by\x20/smartapi/common/uploadFile>','Table','apiError','join','invoice','Publicly\x20accessible\x20image\x20or\x20file\x20URL','\x20OCR','path','3516007UaWxeE','File\x20URL\x20response\x20missing\x20fileUrl.','scene','49ryQKES','fileUrl','2174090bBDDGD','General','string','imageUrl','/smartapi/common/uploadFile','fileName','1035930GbnHNT','9vsAVqB','trim','toLowerCase','27DSJfLn','form','Preview:\x20upload\x20local\x20file,\x20query\x20temporary\x20URL,\x20then\x20recognize\x20','/smartapi/ocr/recognize-text?','ocr','263185nGyyBH','7034VTNZsB','Invoice','idCard','Unsupported\x20OCR\x20scene:\x20','GET','39424TacXpV','Local\x20image\x20or\x20PDF\x20file;\x20uses\x20upload\x20->\x20query-url\x20->\x20OCR','/smartapi/ocr/recognize-text','image-url'];a147_0x2600=function(){return _0x14b1fe;};return a147_0x2600();}
1
+ const a160_0x507db8=a160_0x1971;(function(_0xa2ead,_0x3bea05){const _0x5df1d1=a160_0x1971,_0x430526=_0xa2ead();while(!![]){try{const _0x50bfa7=-parseInt(_0x5df1d1(0xd5))/0x1+parseInt(_0x5df1d1(0xc6))/0x2+-parseInt(_0x5df1d1(0xa5))/0x3+parseInt(_0x5df1d1(0xac))/0x4*(-parseInt(_0x5df1d1(0xcb))/0x5)+-parseInt(_0x5df1d1(0xb6))/0x6*(-parseInt(_0x5df1d1(0xb5))/0x7)+-parseInt(_0x5df1d1(0xbb))/0x8*(parseInt(_0x5df1d1(0xba))/0x9)+parseInt(_0x5df1d1(0xb2))/0xa*(parseInt(_0x5df1d1(0xcf))/0xb);if(_0x50bfa7===_0x3bea05)break;else _0x430526['push'](_0x430526['shift']());}catch(_0x31a30b){_0x430526['push'](_0x430526['shift']());}}}(a160_0xd3d7,0x77b49));import{requireDevelopmentUploadFile}from'../../commands/common/local-file.js';import{queryDevelopmentFileUrl,recognizeDevelopmentOcr,uploadDevelopmentFile}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';const SUPPORTED_SCENES=[a160_0x507db8(0xb7),a160_0x507db8(0xb1),'form','idCard'],SCENE_TO_LEGACY_TYPE={'invoice':a160_0x507db8(0xbe),'general':'General','form':a160_0x507db8(0xd3),'idCard':a160_0x507db8(0xc5)},SCENE_FLAG={'name':'scene','type':a160_0x507db8(0xce),'required':!![],'enum':[...SUPPORTED_SCENES],'description':'OCR\x20scene:\x20invoice,\x20general,\x20form,\x20or\x20idCard'},IMAGE_FILE_FLAG={'name':a160_0x507db8(0xd0),'type':'string','description':a160_0x507db8(0xa6)},IMAGE_URL_FLAG={'name':a160_0x507db8(0xb9),'type':'string','description':'Publicly\x20accessible\x20image\x20or\x20file\x20URL'};function a160_0x1971(_0x40b4b7,_0x1598ca){_0x40b4b7=_0x40b4b7-0xa1;const _0xd3d73f=a160_0xd3d7();let _0x1971a1=_0xd3d73f[_0x40b4b7];return _0x1971a1;}function normalizeScene(_0x30893c){const _0x7eb57d=a160_0x507db8,_0x26337f=_0x30893c[_0x7eb57d(0xc1)]()[_0x7eb57d(0xc2)]();if(_0x26337f===_0x7eb57d(0xa1))return'idCard';if(_0x26337f==='invoice'||_0x26337f==='general'||_0x26337f==='form')return _0x26337f;throw CliErrors[_0x7eb57d(0xc9)]('Unsupported\x20OCR\x20scene:\x20'+_0x30893c+_0x7eb57d(0xc0)+SUPPORTED_SCENES[_0x7eb57d(0xa2)](',\x20'));}function selectedInputs(_0x11bb57){const _0xbd71dc=a160_0x507db8,_0x1a1112=_0x11bb57[_0xbd71dc(0xb8)](_0xbd71dc(0xd0))[_0xbd71dc(0xc1)](),_0x5015d5=_0x11bb57[_0xbd71dc(0xb8)]('image-url')[_0xbd71dc(0xc1)]();return{'imageFile':_0x1a1112,'imageUrl':_0x5015d5,'count':[_0x1a1112,_0x5015d5][_0xbd71dc(0xa7)](Boolean)[_0xbd71dc(0xaf)]};}function validateInputSelection(_0x5ed624){const _0x33420e=a160_0x507db8,_0x323204=selectedInputs(_0x5ed624);if(_0x323204[_0x33420e(0xa8)]!==0x1)throw CliErrors[_0x33420e(0xc9)]('Choose\x20exactly\x20one\x20OCR\x20input:\x20--image-file\x20or\x20--image-url.');return _0x323204;}function withScene(_0x49b03b,_0x5ac0ea,_0x5e1cee){const _0x448d26=a160_0x507db8;return{..._0x49b03b,'scene':_0x5ac0ea,..._0x5e1cee?{'sourceFile':{'fileName':_0x5e1cee[_0x448d26(0xab)],'filePath':_0x5e1cee[_0x448d26(0xad)]}}:{}};}const ocrRecognize={'service':a160_0x507db8(0xb4),'command':a160_0x507db8(0xd2),'description':a160_0x507db8(0xc7),'risk':a160_0x507db8(0xbc),'flags':[SCENE_FLAG,IMAGE_FILE_FLAG,IMAGE_URL_FLAG],async 'dryRun'(_0x5039a7){const _0x4d4e48=a160_0x507db8,_0x2b5a98=normalizeScene(_0x5039a7['str']('scene')),_0x1ed4fc=SCENE_TO_LEGACY_TYPE[_0x2b5a98],_0x19680c=validateInputSelection(_0x5039a7);if(_0x19680c[_0x4d4e48(0xa9)]){const _0x57ce9e=new URLSearchParams({'url':_0x19680c[_0x4d4e48(0xa9)],'type':_0x1ed4fc,'appCode':_0x5039a7[_0x4d4e48(0xbd)]});return{'method':'GET','url':_0x4d4e48(0xc8)+_0x57ce9e[_0x4d4e48(0xca)](),'description':'Preview:\x20recognize\x20'+_0x2b5a98+_0x4d4e48(0xaa)};}const _0x468894=requireDevelopmentUploadFile(_0x19680c['imageFile'],_0x4d4e48(0xd0));return{'method':_0x4d4e48(0xae),'url':_0x4d4e48(0xa3),'body':{'steps':[{'method':_0x4d4e48(0xae),'url':_0x4d4e48(0xa3),'body':{'appCode':_0x5039a7[_0x4d4e48(0xbd)],'multipart':{'file':_0x468894}}},{'method':'POST','url':_0x4d4e48(0xd1),'body':{'filePath':'<filePath\x20returned\x20by\x20/smartapi/common/uploadFile>','downloadFlag':![]}},{'method':'GET','url':_0x4d4e48(0xd4),'query':{'appCode':_0x5039a7['appCode'],'url':_0x4d4e48(0xb0),'type':_0x1ed4fc}}]},'description':_0x4d4e48(0xcd)+_0x2b5a98+_0x4d4e48(0xcc)};},async 'execute'(_0x2ac4eb){const _0x1ec846=a160_0x507db8,_0x441ca7=normalizeScene(_0x2ac4eb[_0x1ec846(0xb8)]('scene')),_0x4aed26=SCENE_TO_LEGACY_TYPE[_0x441ca7],_0x3af5ea=validateInputSelection(_0x2ac4eb);if(_0x3af5ea[_0x1ec846(0xa9)]){const _0xe24fae=await recognizeDevelopmentOcr(_0x2ac4eb[_0x1ec846(0xbd)],{'url':_0x3af5ea[_0x1ec846(0xa9)],'type':_0x4aed26});return{'ok':!![],'data':withScene(_0xe24fae,_0x441ca7)};}const _0x254224=requireDevelopmentUploadFile(_0x3af5ea['imageFile'],'image-file'),_0x59e208=await uploadDevelopmentFile(_0x2ac4eb['appCode'],_0x254224[_0x1ec846(0xc3)]);if(!_0x59e208[_0x1ec846(0xad)])throw CliErrors[_0x1ec846(0xb3)](_0x1ec846(0xa4));const _0x27b50b=await queryDevelopmentFileUrl(_0x59e208[_0x1ec846(0xad)],{'download':![]});if(!_0x27b50b[_0x1ec846(0xbf)])throw CliErrors['apiError'](_0x1ec846(0xc4));const _0x260cb8=await recognizeDevelopmentOcr(_0x2ac4eb[_0x1ec846(0xbd)],{'url':_0x27b50b[_0x1ec846(0xbf)],'type':_0x4aed26});return{'ok':!![],'data':withScene(_0x260cb8,_0x441ca7,_0x59e208)};}};export const ocrDefinitions=[ocrRecognize];function a160_0xd3d7(){const _0x47ab1b=['/smartapi/ocr/recognize-text?','validation','toString','1865385FwkbYu','\x20OCR','Preview:\x20upload\x20local\x20file,\x20query\x20temporary\x20URL,\x20then\x20recognize\x20','string','23837kShasB','image-file','/smartapi/common/queryFileUrl','recognize','Table','/smartapi/ocr/recognize-text','330794NuhgtQ','idcard','join','/smartapi/common/uploadFile','File\x20upload\x20response\x20missing\x20filePath.','1082496hRneYt','Local\x20image\x20or\x20PDF\x20file;\x20uses\x20upload\x20->\x20query-url\x20->\x20OCR','filter','count','imageUrl','\x20OCR\x20from\x20URL','fileName','8MDyNBa','filePath','POST','length','<fileUrl\x20returned\x20by\x20/smartapi/common/queryFileUrl>','general','10330QLsEMF','apiError','ocr','2961vedRty','492fRjCxB','invoice','str','image-url','1742166YvfbKl','40QwqwaM','read','appCode','Invoice','fileUrl','.\x20Supported\x20scenes:\x20','trim','toLowerCase','path','File\x20URL\x20response\x20missing\x20fileUrl.','IdCard','1245532unvnPK','Extract\x20text\x20and\x20structured\x20fields\x20from\x20voucher-style\x20business\x20documents;\x20not\x20for\x20general\x20image\x20understanding'];a160_0xd3d7=function(){return _0x47ab1b;};return a160_0xd3d7();}
@@ -1 +1 @@
1
- const a148_0x411d5b=a148_0x9800;function a148_0x29fc(){const _0x4d161b=['length','parent-menu-id','10hUfkHJ','Create\x20a\x20JSX\x20Custom\x20Page\x20from\x20a\x20released\x20pattern\x20or\x20complete\x20files','stringify','create','string','name','num','1706058fsxPYe','createMenu','86935mYcltK','isNaN','page','Custom\x20Page\x20was\x20created,\x20but\x20a\x20link\x20to\x20its\x20latest\x20saved\x20content\x20could\x20not\x20be\x20generated.','trim','18643806laQeoE','Custom\x20Page\x20pattern\x20(currently\x20BLANK;\x20conflicts\x20with\x20--page-content)','Application\x20language\x20settings\x20could\x20not\x20be\x20read;\x20default\x20Chinese\x20and\x20English\x20language\x20files\x20were\x20generated.','en-US','page-type','page-content','--page-pattern\x20and\x20--page-content\x20cannot\x20be\x20used\x20together.','BLANK','keys','1747832LqDeER','351LLwqWf','\x20and\x20its\x20menu\x20entry.','pageId','parentMenuId','Would\x20create\x20Custom\x20Page\x20','validation','page-pattern','--parent-menu-id\x20must\x20be\x20a\x20positive\x20integer.','appCode','Custom_page_','files','str','POST','Provide\x20--page-pattern\x20BLANK\x20or\x20--page-content.','isInteger','CUSTOM','pageName','620350rzHLGs','6551405pWFORJ','write','2DhCAxN','warnings','menuPath','apiError','pagePattern','Custom\x20Page\x20creation\x20did\x20not\x20return\x20a\x20valid\x20pageId.','page\x20create\x20does\x20not\x20accept\x20--page-type.','36408eHKVlN'];a148_0x29fc=function(){return _0x4d161b;};return a148_0x29fc();}(function(_0x168d0f,_0x3c7689){const _0x499a58=a148_0x9800,_0x19a765=_0x168d0f();while(!![]){try{const _0xc68f5a=parseInt(_0x499a58(0x105))/0x1*(parseInt(_0x499a58(0xf2))/0x2)+-parseInt(_0x499a58(0x114))/0x3*(parseInt(_0x499a58(0xf9))/0x4)+-parseInt(_0x499a58(0xef))/0x5+parseInt(_0x499a58(0x103))/0x6+-parseInt(_0x499a58(0xf0))/0x7+parseInt(_0x499a58(0x113))/0x8+-parseInt(_0x499a58(0x10a))/0x9*(-parseInt(_0x499a58(0xfc))/0xa);if(_0xc68f5a===_0x3c7689)break;else _0x19a765['push'](_0x19a765['shift']());}catch(_0x4ec1bd){_0x19a765['push'](_0x19a765['shift']());}}}(a148_0x29fc,0x82f34));import{APPCODE_FLAG}from'../../commands/common/flags.js';import{buildInitialFiles}from'../../commands/page/custom/template.js';import{createCustomPage,getI18nInfo}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';import{buildCustomPageDevelopmentUrl,buildCustomPageEditUrl,parseCustomPageContent,validateCustomPageContent}from'./custom/shared.js';const DEFAULT_CUSTOM_PAGE_LANGUAGES=['zh-CN',a148_0x411d5b(0x10d)];function a148_0x9800(_0x9c2518,_0x57ee43){_0x9c2518=_0x9c2518-0xeb;const _0x29fcd4=a148_0x29fc();let _0x980037=_0x29fcd4[_0x9c2518];return _0x980037;}export const pageCreate={'service':a148_0x411d5b(0x107),'command':a148_0x411d5b(0xff),'description':a148_0x411d5b(0xfd),'risk':a148_0x411d5b(0xf1),'defaultOutputFormat':'compress','structuredErrors':!![],'rejectedFlags':[{'name':a148_0x411d5b(0x10e),'message':a148_0x411d5b(0xf8),'hint':'This\x20command\x20always\x20creates\x20a\x20CUSTOM\x20JSX\x20page;\x20use\x20--page-pattern\x20BLANK\x20or\x20--page-content.'}],'flags':[{'name':'name','type':'string','description':'Optional\x20Custom\x20Page\x20name\x20(1-100\x20characters)'},{'name':a148_0x411d5b(0xfb),'type':'number','description':'Optional\x20parent\x20menu\x20id\x20when\x20creating\x20a\x20menu\x20entry'},{'name':a148_0x411d5b(0x11a),'type':a148_0x411d5b(0x100),'description':a148_0x411d5b(0x10b),'enum':[a148_0x411d5b(0x111)]},{'name':a148_0x411d5b(0x10f),'type':a148_0x411d5b(0x100),'description':'Complete\x20page\x20files\x20as\x20JSON\x20(conflicts\x20with\x20--page-pattern)'},APPCODE_FLAG],async 'validate'(_0x6bcfcb){const _0x115a0b=a148_0x411d5b,_0x5e770d=readPagePattern(_0x6bcfcb);await validateCustomPageContent(readInput(_0x6bcfcb,DEFAULT_CUSTOM_PAGE_LANGUAGES,_0x5e770d)[_0x115a0b(0x11e)]);},async 'dryRun'(_0x34769c){const _0x52402e=a148_0x411d5b,{input:_0x14f1a0}=await prepare(_0x34769c);return{'method':_0x52402e(0x120),'url':'/smartapi/webcode/page/create','body':{'appCode':_0x14f1a0[_0x52402e(0x11c)],'pageName':_0x14f1a0['pageName'],..._0x14f1a0[_0x52402e(0x117)]!=null?{'parentMenuId':_0x14f1a0[_0x52402e(0x117)]}:{},'createMenu':_0x14f1a0[_0x52402e(0x104)],'codeContent':_0x14f1a0[_0x52402e(0x11e)]},'description':_0x52402e(0x118)+JSON[_0x52402e(0xfe)](_0x14f1a0[_0x52402e(0xee)])+_0x52402e(0x115)};},async 'execute'(_0x261049){const _0x5ede0f=a148_0x411d5b,_0x555b7e=await prepare(_0x261049),_0x5c92bc=await createCustomPage(_0x555b7e['input']);if(!Number[_0x5ede0f(0xec)](_0x5c92bc[_0x5ede0f(0x116)])||_0x5c92bc[_0x5ede0f(0x116)]<=0x0)throw CliErrors[_0x5ede0f(0xf5)](_0x5ede0f(0xf7));return{'ok':!![],'data':buildMutationData(_0x555b7e,_0x5c92bc),'message':'Created\x20Custom\x20Page\x20'+_0x5c92bc[_0x5ede0f(0x116)]+'.'};}};async function prepare(_0x426ca3){const _0x54b10b=a148_0x411d5b,_0xd9d22b=readPagePattern(_0x426ca3);if(_0xd9d22b===null)return{'input':readInput(_0x426ca3,DEFAULT_CUSTOM_PAGE_LANGUAGES,_0xd9d22b),'warnings':[],'pagePattern':_0xd9d22b};let _0x438183=DEFAULT_CUSTOM_PAGE_LANGUAGES,_0x3023da=[];try{const _0x18ac59=await getI18nInfo(_0x426ca3['appCode']);_0x18ac59['enableI18n']&&_0x18ac59['langs']?.[_0x54b10b(0xfa)]&&(_0x438183=_0x18ac59['langs']);}catch{_0x3023da=[_0x54b10b(0x10c)];}return{'input':readInput(_0x426ca3,_0x438183,_0xd9d22b),'warnings':_0x3023da,'pagePattern':_0xd9d22b};}function readPagePattern(_0x30c48e){const _0x288077=a148_0x411d5b,_0x25b9e0=_0x30c48e['str'](_0x288077(0x11a))[_0x288077(0x109)](),_0x14ee0c=_0x30c48e[_0x288077(0x11f)](_0x288077(0x10f))['trim']()['length']>0x0;if(_0x25b9e0&&_0x14ee0c)throw CliErrors['validation'](_0x288077(0x110));if(_0x14ee0c)return null;if(!_0x25b9e0)throw CliErrors['validation'](_0x288077(0xeb));if(_0x25b9e0!==_0x288077(0x111))throw CliErrors[_0x288077(0x119)]('--page-pattern\x20currently\x20supports\x20only\x20BLANK.');return _0x25b9e0;}function readInput(_0x2dca46,_0x1f49d5=DEFAULT_CUSTOM_PAGE_LANGUAGES,_0xcd6b48=readPagePattern(_0x2dca46)){const _0x199b76=a148_0x411d5b,_0x4328ce=_0x2dca46[_0x199b76(0x11f)](_0x199b76(0x101))['trim']()||_0x199b76(0x11d)+Date['now']();if(_0x4328ce[_0x199b76(0xfa)]>0x64)throw CliErrors[_0x199b76(0x119)]('pageName\x20cannot\x20exceed\x20100\x20characters.');const _0x37be61=_0x2dca46[_0x199b76(0x102)]('parent-menu-id',NaN),_0x35a98d=!Number[_0x199b76(0x106)](_0x37be61);if(_0x35a98d&&(!Number[_0x199b76(0xec)](_0x37be61)||_0x37be61<=0x0))throw CliErrors['validation'](_0x199b76(0x11b));return{'appCode':_0x2dca46['appCode'],'pageName':_0x4328ce,..._0x35a98d?{'parentMenuId':_0x37be61}:{},'createMenu':!![],'files':_0xcd6b48===null?parseCustomPageContent(_0x2dca46[_0x199b76(0x11f)]('page-content')):buildInitialFiles(_0x4328ce,_0x1f49d5)};}function buildMutationData(_0x1ea52a,_0x1ee59b){const _0x111f38=a148_0x411d5b,{input:_0x27dc8e}=_0x1ea52a,_0x32c83d=_0x1ee59b&&buildCustomPageDevelopmentUrl(_0x27dc8e[_0x111f38(0x11c)],_0x1ee59b[_0x111f38(0xf4)]),_0x50282c=_0x1ee59b&&buildCustomPageEditUrl(_0x27dc8e[_0x111f38(0x11c)],_0x1ee59b[_0x111f38(0x116)]);return{'operation':'page.create','pageType':_0x111f38(0xed),'pagePattern':_0x1ea52a[_0x111f38(0xf6)],'selector':{'appCode':_0x27dc8e['appCode'],'pageName':_0x27dc8e[_0x111f38(0xee)]},'before':null,'after':{'pageId':_0x1ee59b?.[_0x111f38(0x116)]??null,'pageName':_0x1ee59b?.[_0x111f38(0xee)]??_0x27dc8e[_0x111f38(0xee)],'appCode':_0x1ee59b?.[_0x111f38(0x11c)]??_0x27dc8e[_0x111f38(0x11c)],'version':_0x1ee59b?.['version']??null,'menuId':_0x1ee59b?.['menuId']??null,'menuPath':_0x1ee59b?.['menuPath']??null,'files':_0x1ee59b?.[_0x111f38(0x11e)]??Object[_0x111f38(0x112)](_0x27dc8e[_0x111f38(0x11e)])},'dryRun':_0x1ee59b===undefined,'request':_0x27dc8e,..._0x32c83d?{'pageUrl':_0x32c83d}:{},..._0x50282c?{'editPageUrl':_0x50282c}:{},'warnings':[..._0x1ea52a[_0x111f38(0xf3)],..._0x1ee59b&&!_0x32c83d?[_0x111f38(0x108)]:[]]};}
1
+ const a161_0x45bc96=a161_0x1bed;(function(_0x1de060,_0x2d004e){const _0x5159d6=a161_0x1bed,_0x3f5fa4=_0x1de060();while(!![]){try{const _0x5a3948=parseInt(_0x5159d6(0x71))/0x1*(-parseInt(_0x5159d6(0x75))/0x2)+parseInt(_0x5159d6(0x8c))/0x3*(-parseInt(_0x5159d6(0x94))/0x4)+parseInt(_0x5159d6(0x83))/0x5+parseInt(_0x5159d6(0x84))/0x6*(parseInt(_0x5159d6(0x82))/0x7)+-parseInt(_0x5159d6(0x7f))/0x8*(parseInt(_0x5159d6(0x8f))/0x9)+parseInt(_0x5159d6(0x95))/0xa+parseInt(_0x5159d6(0x73))/0xb*(parseInt(_0x5159d6(0x7b))/0xc);if(_0x5a3948===_0x2d004e)break;else _0x3f5fa4['push'](_0x3f5fa4['shift']());}catch(_0x5a8aa6){_0x3f5fa4['push'](_0x3f5fa4['shift']());}}}(a161_0x55be,0x6c8cf));function a161_0x55be(){const _0x5ba0f0=['12babeCT','enableI18n','Created\x20Custom\x20Page\x20','stringify','1216ShLijy','warnings','\x20and\x20its\x20menu\x20entry.','511vOniYZ','3911145DNVTDm','33006okBSQp','Complete\x20page\x20files\x20as\x20JSON\x20(conflicts\x20with\x20--page-pattern)','compress','Provide\x20--page-pattern\x20BLANK\x20or\x20--page-content.','pageName','number','page\x20create\x20does\x20not\x20accept\x20--page-type.','isInteger','3ldoMkK','BLANK','input','28503sKOnXa','trim','parent-menu-id','pageId','page-pattern','3236500OcFrYz','7578610zubhFk','parentMenuId','Optional\x20parent\x20menu\x20id\x20when\x20creating\x20a\x20menu\x20entry','appCode','Create\x20a\x20JSX\x20Custom\x20Page\x20from\x20a\x20released\x20pattern\x20or\x20complete\x20files','zh-CN','menuPath','now','length','create','write','page-content','Application\x20language\x20settings\x20could\x20not\x20be\x20read;\x20default\x20Chinese\x20and\x20English\x20language\x20files\x20were\x20generated.','string','keys','Custom\x20Page\x20was\x20created,\x20but\x20a\x20link\x20to\x20its\x20latest\x20saved\x20content\x20could\x20not\x20be\x20generated.','files','page-type','name','langs','/smartapi/webcode/page/create','1531KkqBLP','Optional\x20Custom\x20Page\x20name\x20(1-100\x20characters)','4835061xvXzvb','Custom\x20Page\x20pattern\x20(currently\x20BLANK;\x20conflicts\x20with\x20--page-content)','844ElcXaf','This\x20command\x20always\x20creates\x20a\x20CUSTOM\x20JSX\x20page;\x20use\x20--page-pattern\x20BLANK\x20or\x20--page-content.','menuId','en-US','str','isNaN'];a161_0x55be=function(){return _0x5ba0f0;};return a161_0x55be();}import{APPCODE_FLAG}from'../../commands/common/flags.js';import{buildInitialFiles}from'../../commands/page/custom/template.js';import{createCustomPage,getI18nInfo}from'../../core/api-client.js';function a161_0x1bed(_0x33fe0d,_0x5aa25a){_0x33fe0d=_0x33fe0d-0x6e;const _0x55be74=a161_0x55be();let _0x1bed83=_0x55be74[_0x33fe0d];return _0x1bed83;}import{CliErrors}from'../../errors.js';import{buildCustomPageDevelopmentUrl,buildCustomPageEditUrl,parseCustomPageContent,validateCustomPageContent}from'./custom/shared.js';const DEFAULT_CUSTOM_PAGE_LANGUAGES=[a161_0x45bc96(0x9a),a161_0x45bc96(0x78)];export const pageCreate={'service':'page','command':a161_0x45bc96(0x9e),'description':a161_0x45bc96(0x99),'risk':a161_0x45bc96(0x9f),'defaultOutputFormat':a161_0x45bc96(0x86),'structuredErrors':!![],'rejectedFlags':[{'name':a161_0x45bc96(0xa6),'message':a161_0x45bc96(0x8a),'hint':a161_0x45bc96(0x76)}],'flags':[{'name':a161_0x45bc96(0x6e),'type':a161_0x45bc96(0xa2),'description':a161_0x45bc96(0x72)},{'name':'parent-menu-id','type':a161_0x45bc96(0x89),'description':a161_0x45bc96(0x97)},{'name':a161_0x45bc96(0x93),'type':'string','description':a161_0x45bc96(0x74),'enum':[a161_0x45bc96(0x8d)]},{'name':a161_0x45bc96(0xa0),'type':'string','description':a161_0x45bc96(0x85)},APPCODE_FLAG],async 'validate'(_0x4ddf55){const _0x5b54ee=readPagePattern(_0x4ddf55);await validateCustomPageContent(readInput(_0x4ddf55,DEFAULT_CUSTOM_PAGE_LANGUAGES,_0x5b54ee)['files']);},async 'dryRun'(_0x2d3c2e){const _0x51a014=a161_0x45bc96,{input:_0x29a226}=await prepare(_0x2d3c2e);return{'method':'POST','url':_0x51a014(0x70),'body':{'appCode':_0x29a226['appCode'],'pageName':_0x29a226[_0x51a014(0x88)],..._0x29a226[_0x51a014(0x96)]!=null?{'parentMenuId':_0x29a226[_0x51a014(0x96)]}:{},'createMenu':_0x29a226['createMenu'],'codeContent':_0x29a226[_0x51a014(0xa5)]},'description':'Would\x20create\x20Custom\x20Page\x20'+JSON[_0x51a014(0x7e)](_0x29a226['pageName'])+_0x51a014(0x81)};},async 'execute'(_0x4dbb9d){const _0x47fffc=a161_0x45bc96,_0x3ca82f=await prepare(_0x4dbb9d),_0x5cadd3=await createCustomPage(_0x3ca82f[_0x47fffc(0x8e)]);if(!Number[_0x47fffc(0x8b)](_0x5cadd3[_0x47fffc(0x92)])||_0x5cadd3[_0x47fffc(0x92)]<=0x0)throw CliErrors['apiError']('Custom\x20Page\x20creation\x20did\x20not\x20return\x20a\x20valid\x20pageId.');return{'ok':!![],'data':buildMutationData(_0x3ca82f,_0x5cadd3),'message':_0x47fffc(0x7d)+_0x5cadd3[_0x47fffc(0x92)]+'.'};}};async function prepare(_0x2d3f0c){const _0x34a44d=a161_0x45bc96,_0x212e45=readPagePattern(_0x2d3f0c);if(_0x212e45===null)return{'input':readInput(_0x2d3f0c,DEFAULT_CUSTOM_PAGE_LANGUAGES,_0x212e45),'warnings':[],'pagePattern':_0x212e45};let _0xedf4ab=DEFAULT_CUSTOM_PAGE_LANGUAGES,_0x51430b=[];try{const _0x351539=await getI18nInfo(_0x2d3f0c[_0x34a44d(0x98)]);_0x351539[_0x34a44d(0x7c)]&&_0x351539[_0x34a44d(0x6f)]?.[_0x34a44d(0x9d)]&&(_0xedf4ab=_0x351539[_0x34a44d(0x6f)]);}catch{_0x51430b=[_0x34a44d(0xa1)];}return{'input':readInput(_0x2d3f0c,_0xedf4ab,_0x212e45),'warnings':_0x51430b,'pagePattern':_0x212e45};}function readPagePattern(_0x20fe19){const _0x32929b=a161_0x45bc96,_0x55fd1f=_0x20fe19['str']('page-pattern')[_0x32929b(0x90)](),_0x22db24=_0x20fe19['str']('page-content')[_0x32929b(0x90)]()[_0x32929b(0x9d)]>0x0;if(_0x55fd1f&&_0x22db24)throw CliErrors['validation']('--page-pattern\x20and\x20--page-content\x20cannot\x20be\x20used\x20together.');if(_0x22db24)return null;if(!_0x55fd1f)throw CliErrors['validation'](_0x32929b(0x87));if(_0x55fd1f!==_0x32929b(0x8d))throw CliErrors['validation']('--page-pattern\x20currently\x20supports\x20only\x20BLANK.');return _0x55fd1f;}function readInput(_0x569516,_0x29199b=DEFAULT_CUSTOM_PAGE_LANGUAGES,_0x5cd08d=readPagePattern(_0x569516)){const _0x492d3f=a161_0x45bc96,_0xa8ec60=_0x569516[_0x492d3f(0x79)](_0x492d3f(0x6e))[_0x492d3f(0x90)]()||'Custom_page_'+Date[_0x492d3f(0x9c)]();if(_0xa8ec60['length']>0x64)throw CliErrors['validation']('pageName\x20cannot\x20exceed\x20100\x20characters.');const _0x29775e=_0x569516['num'](_0x492d3f(0x91),NaN),_0x3d65bb=!Number[_0x492d3f(0x7a)](_0x29775e);if(_0x3d65bb&&(!Number[_0x492d3f(0x8b)](_0x29775e)||_0x29775e<=0x0))throw CliErrors['validation']('--parent-menu-id\x20must\x20be\x20a\x20positive\x20integer.');return{'appCode':_0x569516[_0x492d3f(0x98)],'pageName':_0xa8ec60,..._0x3d65bb?{'parentMenuId':_0x29775e}:{},'createMenu':!![],'files':_0x5cd08d===null?parseCustomPageContent(_0x569516['str'](_0x492d3f(0xa0))):buildInitialFiles(_0xa8ec60,_0x29199b)};}function buildMutationData(_0x574900,_0x34fda8){const _0x55b683=a161_0x45bc96,{input:_0x1d6cb8}=_0x574900,_0x5ec271=_0x34fda8&&buildCustomPageDevelopmentUrl(_0x1d6cb8['appCode'],_0x34fda8['menuPath']),_0x4204fd=_0x34fda8&&buildCustomPageEditUrl(_0x1d6cb8[_0x55b683(0x98)],_0x34fda8[_0x55b683(0x92)]);return{'operation':'page.create','pageType':'CUSTOM','pagePattern':_0x574900['pagePattern'],'selector':{'appCode':_0x1d6cb8[_0x55b683(0x98)],'pageName':_0x1d6cb8[_0x55b683(0x88)]},'before':null,'after':{'pageId':_0x34fda8?.[_0x55b683(0x92)]??null,'pageName':_0x34fda8?.[_0x55b683(0x88)]??_0x1d6cb8[_0x55b683(0x88)],'appCode':_0x34fda8?.[_0x55b683(0x98)]??_0x1d6cb8[_0x55b683(0x98)],'version':_0x34fda8?.['version']??null,'menuId':_0x34fda8?.[_0x55b683(0x77)]??null,'menuPath':_0x34fda8?.[_0x55b683(0x9b)]??null,'files':_0x34fda8?.[_0x55b683(0xa5)]??Object[_0x55b683(0xa3)](_0x1d6cb8[_0x55b683(0xa5)])},'dryRun':_0x34fda8===undefined,'request':_0x1d6cb8,..._0x5ec271?{'pageUrl':_0x5ec271}:{},..._0x4204fd?{'editPageUrl':_0x4204fd}:{},'warnings':[..._0x574900[_0x55b683(0x80)],..._0x34fda8&&!_0x5ec271?[_0x55b683(0xa4)]:[]]};}
@@ -1 +1 @@
1
- const a149_0x2fcc16=a149_0xb76b;(function(_0x1dfb48,_0x1beb44){const _0xb5066f=a149_0xb76b,_0x1241ee=_0x1dfb48();while(!![]){try{const _0x36c83e=-parseInt(_0xb5066f(0xbb))/0x1*(-parseInt(_0xb5066f(0xad))/0x2)+parseInt(_0xb5066f(0xbe))/0x3+-parseInt(_0xb5066f(0xa9))/0x4+-parseInt(_0xb5066f(0xc2))/0x5*(parseInt(_0xb5066f(0xbc))/0x6)+-parseInt(_0xb5066f(0xa5))/0x7*(parseInt(_0xb5066f(0xaf))/0x8)+parseInt(_0xb5066f(0xc3))/0x9*(-parseInt(_0xb5066f(0xb9))/0xa)+parseInt(_0xb5066f(0xb4))/0xb;if(_0x36c83e===_0x1beb44)break;else _0x1241ee['push'](_0x1241ee['shift']());}catch(_0xd7cd12){_0x1241ee['push'](_0x1241ee['shift']());}}}(a149_0x1474,0x9ac77));function a149_0x1474(){const _0x1db19d=['appcode','getTime','cookie','2189644ATQLDl','read','compress','Custom\x20Page\x20ID','2xPwHRE','getDate','104iImLag','getHours','padStart','getMinutes','custom-detail','7533229YXzcPk','Show\x20a\x20Custom\x20Page\x20and\x20all\x20of\x20its\x20files','number','isNaN','appCode','20kHSplO','getFullYear','603419VeFZbY','2311032jWjenx','getSeconds','3233511XqJywE','getMonth','join','trim','5tqkRLo','1580661alZMQs','Retrieved\x20Custom\x20Page\x20','pageCode','241381yJFwwN'];a149_0x1474=function(){return _0x1db19d;};return a149_0x1474();}import{getCustomPageSource}from'../../../core/api-client.js';import{buildCustomPageEditUrl,buildCustomPageRuntimeUrl,readCustomPageId,CUSTOM_PAGE_APPCODE_FLAG_OPTIONAL,resolveCustomPageDevelopmentUrl}from'./shared.js';function a149_0xb76b(_0x319b1f,_0x44c763){_0x319b1f=_0x319b1f-0xa4;const _0x147403=a149_0x1474();let _0xb76b85=_0x147403[_0x319b1f];return _0xb76b85;}export const pageCustomDetail={'service':'page','command':a149_0x2fcc16(0xb3),'description':a149_0x2fcc16(0xb5),'risk':a149_0x2fcc16(0xaa),'defaultOutputFormat':a149_0x2fcc16(0xab),'structuredErrors':!![],'requiresAppCode':![],'flags':[{'name':'id','type':a149_0x2fcc16(0xb6),'required':!![],'description':a149_0x2fcc16(0xac)},CUSTOM_PAGE_APPCODE_FLAG_OPTIONAL],async 'validate'(_0xc45065){readCustomPageId(_0xc45065);},async 'execute'(_0x28dc3a){const _0x2f9e5f=a149_0x2fcc16,_0x4502d0=readCustomPageId(_0x28dc3a),_0x51dfaf=await getCustomPageSource(_0x4502d0),{bundle:_0xc32c37,createTime:_0x3c5148,updateTime:_0x336f7a,..._0x2c9c5a}=_0x51dfaf,_0xb0bc60=_0x51dfaf['id']??_0x4502d0,_0x505e44=_0x51dfaf[_0x2f9e5f(0xb8)]?.[_0x2f9e5f(0xc1)]()||_0x28dc3a['str'](_0x2f9e5f(0xa6))[_0x2f9e5f(0xc1)](),_0x298b39=buildCustomPageRuntimeUrl(_0x505e44,_0x51dfaf[_0x2f9e5f(0xa4)]),_0xa812d9=buildCustomPageEditUrl(_0x505e44,_0xb0bc60),_0x18dee6=await resolveCustomPageDevelopmentUrl(_0x505e44,_0xb0bc60,_0x28dc3a[_0x2f9e5f(0xa8)]);return{'ok':!![],'data':{..._0x2c9c5a,..._0x298b39?{'runtimePageUrl':_0x298b39}:{},..._0x18dee6?{'pageUrl':_0x18dee6}:{},..._0xa812d9?{'editPageUrl':_0xa812d9}:{},..._0x3c5148==null?{}:{'createTime':formatTime(_0x3c5148)},..._0x336f7a==null?{}:{'updateTime':formatTime(_0x336f7a)}},'message':_0x2f9e5f(0xc4)+_0x4502d0+'.'};}};function formatTime(_0x48c378){const _0x278c1c=a149_0x2fcc16,_0x39748a=new Date(_0x48c378);if(Number[_0x278c1c(0xb7)](_0x39748a[_0x278c1c(0xa7)]()))return String(_0x48c378);const _0x120028=[_0x39748a[_0x278c1c(0xba)](),String(_0x39748a[_0x278c1c(0xbf)]()+0x1)['padStart'](0x2,'0'),String(_0x39748a[_0x278c1c(0xae)]())[_0x278c1c(0xb1)](0x2,'0')][_0x278c1c(0xc0)]('-'),_0x2517fb=[String(_0x39748a[_0x278c1c(0xb0)]())[_0x278c1c(0xb1)](0x2,'0'),String(_0x39748a[_0x278c1c(0xb2)]())['padStart'](0x2,'0'),String(_0x39748a[_0x278c1c(0xbd)]())[_0x278c1c(0xb1)](0x2,'0')][_0x278c1c(0xc0)](':');return _0x120028+'\x20'+_0x2517fb;}
1
+ const a162_0x31d9f5=a162_0x17c3;(function(_0x4c8d9b,_0x29c8bb){const _0x222f5c=a162_0x17c3,_0x105623=_0x4c8d9b();while(!![]){try{const _0x3e9dc4=parseInt(_0x222f5c(0xe7))/0x1*(parseInt(_0x222f5c(0xea))/0x2)+-parseInt(_0x222f5c(0xf6))/0x3+parseInt(_0x222f5c(0xed))/0x4+-parseInt(_0x222f5c(0xe3))/0x5+-parseInt(_0x222f5c(0xf4))/0x6*(parseInt(_0x222f5c(0xe1))/0x7)+parseInt(_0x222f5c(0xf8))/0x8*(-parseInt(_0x222f5c(0xe2))/0x9)+parseInt(_0x222f5c(0xe9))/0xa;if(_0x3e9dc4===_0x29c8bb)break;else _0x105623['push'](_0x105623['shift']());}catch(_0xb8eb8e){_0x105623['push'](_0x105623['shift']());}}}(a162_0x44c2,0x72633));import{getCustomPageSource}from'../../../core/api-client.js';function a162_0x44c2(){const _0x34dcc4=['getFullYear','1671927yEIMVf','page','17048HzqyXH','Show\x20a\x20Custom\x20Page\x20and\x20all\x20of\x20its\x20files','padStart','join','getMinutes','read','8673rkGrJj','3438NSGHxl','4136500eTrRIA','pageCode','getDate','getTime','177387zLFPwB','str','25079130kYuXEY','2aRdJOj','compress','trim','338876FZXiQa','getHours','getSeconds','appCode','number','custom-detail','Custom\x20Page\x20ID','498cfXiGY'];a162_0x44c2=function(){return _0x34dcc4;};return a162_0x44c2();}import{buildCustomPageEditUrl,buildCustomPageRuntimeUrl,readCustomPageId,CUSTOM_PAGE_APPCODE_FLAG_OPTIONAL,resolveCustomPageDevelopmentUrl}from'./shared.js';export const pageCustomDetail={'service':a162_0x31d9f5(0xf7),'command':a162_0x31d9f5(0xf2),'description':a162_0x31d9f5(0xf9),'risk':a162_0x31d9f5(0xe0),'defaultOutputFormat':a162_0x31d9f5(0xeb),'structuredErrors':!![],'requiresAppCode':![],'flags':[{'name':'id','type':a162_0x31d9f5(0xf1),'required':!![],'description':a162_0x31d9f5(0xf3)},CUSTOM_PAGE_APPCODE_FLAG_OPTIONAL],async 'validate'(_0x59b04f){readCustomPageId(_0x59b04f);},async 'execute'(_0x5d21a2){const _0x69f2c9=a162_0x31d9f5,_0x43c502=readCustomPageId(_0x5d21a2),_0x5dc824=await getCustomPageSource(_0x43c502),{bundle:_0x52ac5b,createTime:_0x30e87f,updateTime:_0x2f789b,..._0x48581d}=_0x5dc824,_0x52e782=_0x5dc824['id']??_0x43c502,_0xba5e22=_0x5dc824[_0x69f2c9(0xf0)]?.[_0x69f2c9(0xec)]()||_0x5d21a2[_0x69f2c9(0xe8)]('appcode')['trim'](),_0xf7bb26=buildCustomPageRuntimeUrl(_0xba5e22,_0x5dc824[_0x69f2c9(0xe4)]),_0x506e6e=buildCustomPageEditUrl(_0xba5e22,_0x52e782),_0x1dd9a3=await resolveCustomPageDevelopmentUrl(_0xba5e22,_0x52e782,_0x5d21a2['cookie']);return{'ok':!![],'data':{..._0x48581d,..._0xf7bb26?{'runtimePageUrl':_0xf7bb26}:{},..._0x1dd9a3?{'pageUrl':_0x1dd9a3}:{},..._0x506e6e?{'editPageUrl':_0x506e6e}:{},..._0x30e87f==null?{}:{'createTime':formatTime(_0x30e87f)},..._0x2f789b==null?{}:{'updateTime':formatTime(_0x2f789b)}},'message':'Retrieved\x20Custom\x20Page\x20'+_0x43c502+'.'};}};function a162_0x17c3(_0x587d0b,_0x489ff2){_0x587d0b=_0x587d0b-0xdd;const _0x44c23c=a162_0x44c2();let _0x17c395=_0x44c23c[_0x587d0b];return _0x17c395;}function formatTime(_0x501726){const _0xe39a80=a162_0x31d9f5,_0x410bac=new Date(_0x501726);if(Number['isNaN'](_0x410bac[_0xe39a80(0xe6)]()))return String(_0x501726);const _0x3ff146=[_0x410bac[_0xe39a80(0xf5)](),String(_0x410bac['getMonth']()+0x1)[_0xe39a80(0xdd)](0x2,'0'),String(_0x410bac[_0xe39a80(0xe5)]())['padStart'](0x2,'0')][_0xe39a80(0xde)]('-'),_0x34421a=[String(_0x410bac[_0xe39a80(0xee)]())[_0xe39a80(0xdd)](0x2,'0'),String(_0x410bac[_0xe39a80(0xdf)]())[_0xe39a80(0xdd)](0x2,'0'),String(_0x410bac[_0xe39a80(0xef)]())[_0xe39a80(0xdd)](0x2,'0')][_0xe39a80(0xde)](':');return _0x3ff146+'\x20'+_0x34421a;}
@@ -1 +1 @@
1
- const a150_0x22a9ff=a150_0x432f;(function(_0x1f2580,_0x346f5b){const _0x596ae6=a150_0x432f,_0x458765=_0x1f2580();while(!![]){try{const _0x3222d0=parseInt(_0x596ae6(0x1d5))/0x1+-parseInt(_0x596ae6(0x1db))/0x2+parseInt(_0x596ae6(0x1d3))/0x3*(-parseInt(_0x596ae6(0x1cf))/0x4)+-parseInt(_0x596ae6(0x1d1))/0x5+-parseInt(_0x596ae6(0x1cb))/0x6+parseInt(_0x596ae6(0x1ce))/0x7*(-parseInt(_0x596ae6(0x1d4))/0x8)+parseInt(_0x596ae6(0x1d2))/0x9*(parseInt(_0x596ae6(0x1cd))/0xa);if(_0x3222d0===_0x346f5b)break;else _0x458765['push'](_0x458765['shift']());}catch(_0x2d968f){_0x458765['push'](_0x458765['shift']());}}}(a150_0x254e,0xa1a70));import{APPCODE_FLAG_OPTIONAL}from'../../../commands/common/flags.js';import{fetchMenuSnapshot}from'../../../commands/menu/shared/facts.js';import{buildCustomPageDevelopmentUrl,buildCustomPageEditUrl}from'./shared.js';export const pageCustomList={'service':a150_0x22a9ff(0x1ca),'command':'custom-list','description':a150_0x22a9ff(0x1c4),'risk':a150_0x22a9ff(0x1d7),'defaultOutputFormat':a150_0x22a9ff(0x1c9),'structuredErrors':!![],'flags':[APPCODE_FLAG_OPTIONAL],async 'execute'(_0x39c428){const _0x2a63d7=a150_0x22a9ff,_0x24a3f3=(await fetchMenuSnapshot(_0x39c428[_0x2a63d7(0x1d6)],_0x39c428['cookie']))[_0x2a63d7(0x1c7)][_0x2a63d7(0x1c6)](_0x1973c7=>{const _0x462a30=_0x2a63d7;if(_0x1973c7[_0x462a30(0x1da)]!==_0x462a30(0x1d9)||_0x1973c7['pageId']==null)return[];const _0x22e15c=buildCustomPageDevelopmentUrl(_0x39c428[_0x462a30(0x1d6)],_0x1973c7['path']),_0x731afd=buildCustomPageEditUrl(_0x39c428['appCode'],_0x1973c7[_0x462a30(0x1c5)]);return[{'pageId':_0x1973c7['pageId'],'label':_0x1973c7[_0x462a30(0x1cc)],..._0x22e15c?{'pageUrl':_0x22e15c}:{},..._0x731afd?{'editPageUrl':_0x731afd}:{}}];});return{'ok':!![],'data':{'pages':_0x24a3f3},'message':_0x24a3f3[_0x2a63d7(0x1c8)]===0x0?'No\x20Custom\x20Pages\x20found.':_0x2a63d7(0x1d8)+_0x24a3f3[_0x2a63d7(0x1c8)]+_0x2a63d7(0x1d0)};}};function a150_0x432f(_0x4a9ad3,_0x4da4f8){_0x4a9ad3=_0x4a9ad3-0x1c4;const _0x254e96=a150_0x254e();let _0x432f02=_0x254e96[_0x4a9ad3];return _0x432f02;}function a150_0x254e(){const _0x26c578=['appCode','read','Found\x20','react','type','833760ONWHBV','List\x20Custom\x20Pages\x20in\x20the\x20current\x20app','pageId','flatMap','menus','length','compress','page','5849700ceEdhh','label','20nIICFy','49BNlWUA','4QVMSzC','\x20Custom\x20Page(s).','2329610zcsRSd','10433889WfhsDb','1286913HgGmiZ','478264tPSIhP','1048690qhAHWQ'];a150_0x254e=function(){return _0x26c578;};return a150_0x254e();}
1
+ const a163_0x507a9d=a163_0x1ad1;function a163_0x1ad1(_0x7040fd,_0x3f3bd0){_0x7040fd=_0x7040fd-0x1a0;const _0x4e648f=a163_0x4e64();let _0x1ad126=_0x4e648f[_0x7040fd];return _0x1ad126;}(function(_0x2b9223,_0x55954f){const _0x586935=a163_0x1ad1,_0x36ed25=_0x2b9223();while(!![]){try{const _0x350ff9=parseInt(_0x586935(0x1b4))/0x1+-parseInt(_0x586935(0x1a0))/0x2+-parseInt(_0x586935(0x1ab))/0x3+parseInt(_0x586935(0x1a3))/0x4+-parseInt(_0x586935(0x1b0))/0x5*(-parseInt(_0x586935(0x1b3))/0x6)+-parseInt(_0x586935(0x1a4))/0x7*(parseInt(_0x586935(0x1a6))/0x8)+parseInt(_0x586935(0x1a1))/0x9;if(_0x350ff9===_0x55954f)break;else _0x36ed25['push'](_0x36ed25['shift']());}catch(_0x40abb3){_0x36ed25['push'](_0x36ed25['shift']());}}}(a163_0x4e64,0x58d0f));import{APPCODE_FLAG_OPTIONAL}from'../../../commands/common/flags.js';import{fetchMenuSnapshot}from'../../../commands/menu/shared/facts.js';import{buildCustomPageDevelopmentUrl,buildCustomPageEditUrl}from'./shared.js';function a163_0x4e64(){const _0x137ec4=['\x20Custom\x20Page(s).','flatMap','Found\x20','1274739UFHCSC','appCode','path','length','No\x20Custom\x20Pages\x20found.','50MbjVkq','pageId','menus','82212NzIPeJ','569774LHTYmp','List\x20Custom\x20Pages\x20in\x20the\x20current\x20app','1181476cskqzc','8700633rxDjDX','cookie','1471656DPjQyj','7lOuFRR','type','5296024kTfUUK','react'];a163_0x4e64=function(){return _0x137ec4;};return a163_0x4e64();}export const pageCustomList={'service':'page','command':'custom-list','description':a163_0x507a9d(0x1b5),'risk':'read','defaultOutputFormat':'compress','structuredErrors':!![],'flags':[APPCODE_FLAG_OPTIONAL],async 'execute'(_0x5d49e8){const _0x16078b=a163_0x507a9d,_0x474550=(await fetchMenuSnapshot(_0x5d49e8['appCode'],_0x5d49e8[_0x16078b(0x1a2)]))[_0x16078b(0x1b2)][_0x16078b(0x1a9)](_0x2e489a=>{const _0x5355a2=_0x16078b;if(_0x2e489a[_0x5355a2(0x1a5)]!==_0x5355a2(0x1a7)||_0x2e489a[_0x5355a2(0x1b1)]==null)return[];const _0x5bc180=buildCustomPageDevelopmentUrl(_0x5d49e8[_0x5355a2(0x1ac)],_0x2e489a[_0x5355a2(0x1ad)]),_0x2fc1e2=buildCustomPageEditUrl(_0x5d49e8['appCode'],_0x2e489a['pageId']);return[{'pageId':_0x2e489a[_0x5355a2(0x1b1)],'label':_0x2e489a['label'],..._0x5bc180?{'pageUrl':_0x5bc180}:{},..._0x2fc1e2?{'editPageUrl':_0x2fc1e2}:{}}];});return{'ok':!![],'data':{'pages':_0x474550},'message':_0x474550[_0x16078b(0x1ae)]===0x0?_0x16078b(0x1af):_0x16078b(0x1aa)+_0x474550[_0x16078b(0x1ae)]+_0x16078b(0x1a8)};}};
@@ -1 +1 @@
1
- const a151_0x29a5ff=a151_0x440f;(function(_0x1889ef,_0x4352f9){const _0x2ad072=a151_0x440f,_0x31969d=_0x1889ef();while(!![]){try{const _0x1929d3=parseInt(_0x2ad072(0xf8))/0x1*(-parseInt(_0x2ad072(0x104))/0x2)+parseInt(_0x2ad072(0xf9))/0x3*(-parseInt(_0x2ad072(0x10f))/0x4)+parseInt(_0x2ad072(0x121))/0x5*(parseInt(_0x2ad072(0xfb))/0x6)+parseInt(_0x2ad072(0x103))/0x7*(parseInt(_0x2ad072(0x118))/0x8)+parseInt(_0x2ad072(0x114))/0x9*(parseInt(_0x2ad072(0xfa))/0xa)+parseInt(_0x2ad072(0xfd))/0xb*(-parseInt(_0x2ad072(0xf7))/0xc)+parseInt(_0x2ad072(0x105))/0xd;if(_0x1929d3===_0x4352f9)break;else _0x31969d['push'](_0x31969d['shift']());}catch(_0xb8b917){_0x31969d['push'](_0x31969d['shift']());}}}(a151_0x361a,0xda07d));function a151_0x440f(_0x2f5da4,_0x3d5a8e){_0x2f5da4=_0x2f5da4-0xf6;const _0x361a59=a151_0x361a();let _0x440f6d=_0x361a59[_0x2f5da4];return _0x440f6d;}import{getCustomPageSource,publishCustomPage}from'../../../core/api-client.js';import{CliErrors}from'../../../errors.js';import{buildCustomPageEditUrl,buildCustomPageRuntimeUrl,readCustomPageId,resolveCustomPageDevelopmentUrl}from'./shared.js';export const pageCustomPublish={'service':a151_0x29a5ff(0x102),'command':a151_0x29a5ff(0x11d),'description':'Publish\x20the\x20latest\x20saved\x20content\x20of\x20a\x20Custom\x20Page','risk':a151_0x29a5ff(0x11c),'defaultOutputFormat':a151_0x29a5ff(0x11b),'structuredErrors':!![],'requiresAppCode':![],'flags':[{'name':'id','type':a151_0x29a5ff(0x11f),'required':!![],'description':a151_0x29a5ff(0x119)},{'name':'remark','type':a151_0x29a5ff(0x11e),'description':a151_0x29a5ff(0x111)}],async 'validate'(_0x42710c){readCustomPageId(_0x42710c);},async 'dryRun'(_0x81a1b9){const _0x477533=a151_0x29a5ff,_0x2c273e=readInput(_0x81a1b9);return{'method':_0x477533(0x101),'url':_0x477533(0x120),'body':{'id':_0x2c273e[_0x477533(0xf6)],..._0x2c273e[_0x477533(0x10b)]?{'remark':_0x2c273e['remark']}:{}},'description':'Would\x20publish\x20Custom\x20Page\x20'+_0x2c273e['pageId']+'.'};},async 'execute'(_0x6d92d9){const _0x5b48d1=a151_0x29a5ff,_0x86a008=readInput(_0x6d92d9);await getCustomPageSource(_0x86a008[_0x5b48d1(0xf6)]);const _0x101dff=await publishCustomPage(_0x86a008);if(!Number[_0x5b48d1(0x113)](_0x101dff)||_0x101dff!==_0x86a008[_0x5b48d1(0xf6)])throw CliErrors[_0x5b48d1(0x107)](_0x5b48d1(0x115));const _0x4aca6d=await getCustomPageSource(_0x86a008['pageId']);if(_0x4aca6d[_0x5b48d1(0xff)]!==_0x5b48d1(0x106))throw CliErrors[_0x5b48d1(0x107)](_0x5b48d1(0x109)+(_0x4aca6d[_0x5b48d1(0xff)]??_0x5b48d1(0xfe))+'.');const _0x5da339=_0x4aca6d[_0x5b48d1(0x100)]?.[_0x5b48d1(0x117)](),_0x3d5f66=buildCustomPageEditUrl(_0x5da339,_0x86a008[_0x5b48d1(0xf6)]),_0x524d6c=await resolveCustomPageDevelopmentUrl(_0x5da339,_0x86a008[_0x5b48d1(0xf6)],_0x6d92d9[_0x5b48d1(0x116)]),_0x32180d=buildMutationData(_0x86a008,!![],_0x524d6c,_0x3d5f66);_0x5da339&&!_0x524d6c&&_0x32180d[_0x5b48d1(0x112)]['push'](_0x5b48d1(0xfc));const _0x8c62f7=buildCustomPageRuntimeUrl(_0x4aca6d[_0x5b48d1(0x100)],_0x4aca6d[_0x5b48d1(0x10e)]);return _0x8c62f7?_0x32180d[_0x5b48d1(0x10a)]=_0x8c62f7:_0x32180d[_0x5b48d1(0x112)][_0x5b48d1(0x10d)](_0x5b48d1(0x10c)),{'ok':!![],'data':_0x32180d,'message':_0x5b48d1(0x11a)+_0x86a008[_0x5b48d1(0xf6)]+'.'};}};function readInput(_0x147765){const _0x33f34d=a151_0x29a5ff,_0x41b94d=readCustomPageId(_0x147765),_0x3a80f6=_0x147765[_0x33f34d(0x110)](_0x33f34d(0x10b))[_0x33f34d(0x117)]();return{'pageId':_0x41b94d,..._0x3a80f6?{'remark':_0x3a80f6}:{}};}function a151_0x361a(){const _0x3e143c=['string','number','/smartapi/webcode/file/publish','401090GRQyvd','pageId','48BGQvaz','597wqZPIA','111TxuuAH','230KjUzFM','42GljMko','Published\x20successfully,\x20but\x20a\x20link\x20to\x20the\x20latest\x20saved\x20content\x20could\x20not\x20be\x20generated.','3681964QVdYaE','unknown','status','appCode','POST','page','7AUZLwk','626ueCkQf','6260865sWOEyX','FORMAL','apiError','page.custom-publish','Custom\x20Page\x20publish\x20did\x20not\x20reach\x20published\x20status:\x20','runtimePageUrl','remark','Published\x20successfully,\x20but\x20a\x20link\x20to\x20the\x20published\x20page\x20could\x20not\x20be\x20generated.','push','pageCode','24180BhvDff','str','Optional\x20publish\x20remark','warnings','isInteger','602748wvBONI','Custom\x20Page\x20publish\x20did\x20not\x20return\x20the\x20expected\x20page\x20ID.','cookie','trim','471904jMYVLw','Custom\x20Page\x20ID','Published\x20Custom\x20Page\x20','compress','write','custom-publish'];a151_0x361a=function(){return _0x3e143c;};return a151_0x361a();}function buildMutationData(_0x1c574c,_0x2866f4=![],_0xff3e9b,_0x195e14){const _0x4858e4=a151_0x29a5ff;return{'operation':_0x4858e4(0x108),'selector':{'pageId':_0x1c574c['pageId']},'before':null,'after':{'pageId':_0x1c574c['pageId'],'status':_0x4858e4(0x106)},'dryRun':!_0x2866f4,'request':_0x1c574c,..._0xff3e9b?{'pageUrl':_0xff3e9b}:{},..._0x195e14?{'editPageUrl':_0x195e14}:{},'warnings':[]};}
1
+ const a164_0x159c6a=a164_0x41c1;(function(_0x596a4e,_0x575c1e){const _0x35a006=a164_0x41c1,_0x33bf5c=_0x596a4e();while(!![]){try{const _0x53291e=parseInt(_0x35a006(0x19d))/0x1*(-parseInt(_0x35a006(0x1af))/0x2)+-parseInt(_0x35a006(0x1ae))/0x3*(-parseInt(_0x35a006(0x1b8))/0x4)+parseInt(_0x35a006(0x1b4))/0x5+-parseInt(_0x35a006(0x1aa))/0x6*(parseInt(_0x35a006(0x1b7))/0x7)+-parseInt(_0x35a006(0x1ac))/0x8+parseInt(_0x35a006(0x1ab))/0x9*(-parseInt(_0x35a006(0x1a1))/0xa)+parseInt(_0x35a006(0x19f))/0xb;if(_0x53291e===_0x575c1e)break;else _0x33bf5c['push'](_0x33bf5c['shift']());}catch(_0x4e9d9e){_0x33bf5c['push'](_0x33bf5c['shift']());}}}(a164_0x22d3,0x87301));import{getCustomPageSource,publishCustomPage}from'../../../core/api-client.js';import{CliErrors}from'../../../errors.js';import{buildCustomPageEditUrl,buildCustomPageRuntimeUrl,readCustomPageId,resolveCustomPageDevelopmentUrl}from'./shared.js';export const pageCustomPublish={'service':'page','command':a164_0x159c6a(0x1bb),'description':a164_0x159c6a(0x1b5),'risk':a164_0x159c6a(0x1b3),'defaultOutputFormat':a164_0x159c6a(0x1a2),'structuredErrors':!![],'requiresAppCode':![],'flags':[{'name':'id','type':'number','required':!![],'description':a164_0x159c6a(0x1b9)},{'name':a164_0x159c6a(0x1a4),'type':'string','description':a164_0x159c6a(0x1a6)}],async 'validate'(_0x5787b2){readCustomPageId(_0x5787b2);},async 'dryRun'(_0xc61254){const _0x424b0e=a164_0x159c6a,_0x372bad=readInput(_0xc61254);return{'method':_0x424b0e(0x1a8),'url':_0x424b0e(0x1bd),'body':{'id':_0x372bad[_0x424b0e(0x1bf)],..._0x372bad[_0x424b0e(0x1a4)]?{'remark':_0x372bad['remark']}:{}},'description':_0x424b0e(0x1b2)+_0x372bad['pageId']+'.'};},async 'execute'(_0x450923){const _0x25e88e=a164_0x159c6a,_0x1f5964=readInput(_0x450923);await getCustomPageSource(_0x1f5964[_0x25e88e(0x1bf)]);const _0x271299=await publishCustomPage(_0x1f5964);if(!Number[_0x25e88e(0x1be)](_0x271299)||_0x271299!==_0x1f5964[_0x25e88e(0x1bf)])throw CliErrors[_0x25e88e(0x1a3)](_0x25e88e(0x1a7));const _0x57fd37=await getCustomPageSource(_0x1f5964['pageId']);if(_0x57fd37[_0x25e88e(0x1b6)]!==_0x25e88e(0x1ba))throw CliErrors[_0x25e88e(0x1a3)](_0x25e88e(0x1b0)+(_0x57fd37['status']??_0x25e88e(0x1ad))+'.');const _0x46750b=_0x57fd37['appCode']?.['trim'](),_0x49ec8c=buildCustomPageEditUrl(_0x46750b,_0x1f5964[_0x25e88e(0x1bf)]),_0x46ae24=await resolveCustomPageDevelopmentUrl(_0x46750b,_0x1f5964['pageId'],_0x450923[_0x25e88e(0x1a5)]),_0x4ab2e8=buildMutationData(_0x1f5964,!![],_0x46ae24,_0x49ec8c);_0x46750b&&!_0x46ae24&&_0x4ab2e8[_0x25e88e(0x19c)][_0x25e88e(0x1bc)]('Published\x20successfully,\x20but\x20a\x20link\x20to\x20the\x20latest\x20saved\x20content\x20could\x20not\x20be\x20generated.');const _0x4e4a3a=buildCustomPageRuntimeUrl(_0x57fd37['appCode'],_0x57fd37['pageCode']);return _0x4e4a3a?_0x4ab2e8['runtimePageUrl']=_0x4e4a3a:_0x4ab2e8[_0x25e88e(0x19c)][_0x25e88e(0x1bc)]('Published\x20successfully,\x20but\x20a\x20link\x20to\x20the\x20published\x20page\x20could\x20not\x20be\x20generated.'),{'ok':!![],'data':_0x4ab2e8,'message':_0x25e88e(0x1b1)+_0x1f5964[_0x25e88e(0x1bf)]+'.'};}};function a164_0x22d3(){const _0x4893c3=['cookie','Optional\x20publish\x20remark','Custom\x20Page\x20publish\x20did\x20not\x20return\x20the\x20expected\x20page\x20ID.','POST','page.custom-publish','5907498VMXKme','3258FrBZAg','7116904kTCFdx','unknown','3KWZpIZ','29732AmqcGR','Custom\x20Page\x20publish\x20did\x20not\x20reach\x20published\x20status:\x20','Published\x20Custom\x20Page\x20','Would\x20publish\x20Custom\x20Page\x20','write','3297130naGpZz','Publish\x20the\x20latest\x20saved\x20content\x20of\x20a\x20Custom\x20Page','status','7kJIcqm','4367604SMGbJd','Custom\x20Page\x20ID','FORMAL','custom-publish','push','/smartapi/webcode/file/publish','isInteger','pageId','warnings','67ADlbGI','trim','28803786MzQCSx','str','26130qenntJ','compress','apiError','remark'];a164_0x22d3=function(){return _0x4893c3;};return a164_0x22d3();}function readInput(_0x30067e){const _0x543866=a164_0x159c6a,_0x1d832d=readCustomPageId(_0x30067e),_0x44bc1a=_0x30067e[_0x543866(0x1a0)]('remark')[_0x543866(0x19e)]();return{'pageId':_0x1d832d,..._0x44bc1a?{'remark':_0x44bc1a}:{}};}function a164_0x41c1(_0x4ab4d7,_0x45dd2b){_0x4ab4d7=_0x4ab4d7-0x19c;const _0x22d349=a164_0x22d3();let _0x41c179=_0x22d349[_0x4ab4d7];return _0x41c179;}function buildMutationData(_0x4fe244,_0x4bdc07=![],_0x51e909,_0x314a67){const _0x1a3e08=a164_0x159c6a;return{'operation':_0x1a3e08(0x1a9),'selector':{'pageId':_0x4fe244['pageId']},'before':null,'after':{'pageId':_0x4fe244[_0x1a3e08(0x1bf)],'status':_0x1a3e08(0x1ba)},'dryRun':!_0x4bdc07,'request':_0x4fe244,..._0x51e909?{'pageUrl':_0x51e909}:{},..._0x314a67?{'editPageUrl':_0x314a67}:{},'warnings':[]};}
@@ -1 +1 @@
1
- (function(_0x361ead,_0x33c93f){const _0x41ee0c=a152_0x1a16,_0x2431d6=_0x361ead();while(!![]){try{const _0x34e1b1=parseInt(_0x41ee0c(0x1ed))/0x1*(-parseInt(_0x41ee0c(0x1d5))/0x2)+parseInt(_0x41ee0c(0x1de))/0x3+-parseInt(_0x41ee0c(0x1e6))/0x4*(-parseInt(_0x41ee0c(0x1e1))/0x5)+parseInt(_0x41ee0c(0x1e4))/0x6+parseInt(_0x41ee0c(0x1d2))/0x7+-parseInt(_0x41ee0c(0x1f0))/0x8+-parseInt(_0x41ee0c(0x1d9))/0x9*(-parseInt(_0x41ee0c(0x1d6))/0xa);if(_0x34e1b1===_0x33c93f)break;else _0x2431d6['push'](_0x2431d6['shift']());}catch(_0x214573){_0x2431d6['push'](_0x2431d6['shift']());}}}(a152_0x2102,0x3d5c2));import{APPCODE_FLAG_OPTIONAL}from'../../../commands/common/flags.js';import{fetchMenuSnapshot}from'../../../commands/menu/shared/facts.js';import{getAppBaseUrl,getPublishedAppDomain}from'../../../constant/domain.js';import{CliErrors}from'../../../errors.js';import{validateCustomPageSourceFiles}from'./syntax.js';export const CUSTOM_PAGE_APPCODE_FLAG_OPTIONAL={...APPCODE_FLAG_OPTIONAL,'description':'Optional\x20app\x20code\x20resolved\x20from\x20page\x20ID\x20when\x20omitted'};function trimOptional(_0x484dc8){const _0x21211e=a152_0x1a16;return _0x484dc8?.[_0x21211e(0x1dc)]()||undefined;}export function buildCustomPageRuntimeUrl(_0x9687ea,_0x27bbac){const _0x24cc68=trimOptional(_0x9687ea),_0x15e2e8=trimOptional(_0x27bbac);if(!_0x24cc68||!_0x15e2e8)return undefined;return getPublishedAppDomain(_0x24cc68)+'/'+encodeURIComponent(_0x15e2e8);}function a152_0x2102(){const _0x43c1e5=['pageId','/ide/','20981JFBLWp','values','/pages/','121160AgcrlK','map','--page-content\x20must\x20be\x20valid\x20JSON.','844431RCHTKM','menus','Invalid\x20Custom\x20Page\x20content:\x20','36lXmlty','2317070hsndxS','page-content','path','9EGcUkV','object','string','trim','find','97797iniOFm','react','join','390lTjvKm','isInteger','--id\x20must\x20be\x20a\x20positive\x20integer.','414648XzBslG','some','9748sxBXEa','type','validation','length','num'];a152_0x2102=function(){return _0x43c1e5;};return a152_0x2102();}export function buildCustomPageDevelopmentUrl(_0x217b6b,_0x3438c9){const _0x4d1398=a152_0x1a16,_0x1c435e=trimOptional(_0x217b6b),_0x356bb4=trimOptional(_0x3438c9);if(!_0x1c435e||!_0x356bb4)return undefined;return getAppBaseUrl(_0x1c435e)+_0x4d1398(0x1ef)+encodeURIComponent(_0x356bb4);}export async function resolveCustomPageDevelopmentUrl(_0xac228b,_0x99e901,_0x544098){const _0x27ada2=a152_0x1a16,_0x3a0e80=trimOptional(_0xac228b);if(!_0x3a0e80)return undefined;try{const _0x600fd6=(await fetchMenuSnapshot(_0x3a0e80,_0x544098))[_0x27ada2(0x1d3)][_0x27ada2(0x1dd)](_0x5f1072=>_0x5f1072[_0x27ada2(0x1e7)]===_0x27ada2(0x1df)&&_0x5f1072[_0x27ada2(0x1eb)]===_0x99e901);return buildCustomPageDevelopmentUrl(_0x3a0e80,_0x600fd6?.[_0x27ada2(0x1d8)]);}catch{return undefined;}}export function buildCustomPageEditUrl(_0x1b5fa9,_0x51a239){const _0x5c9b48=a152_0x1a16,_0x5ccccf=trimOptional(_0x1b5fa9);if(!_0x5ccccf)return;const _0x3dc930=trimOptional(_0x51a239==null?undefined:String(_0x51a239));if(!_0x3dc930)return;return getAppBaseUrl(_0x5ccccf)+_0x5c9b48(0x1ec)+encodeURIComponent(_0x3dc930);}export function parseCustomPageContent(_0x3783b2){const _0x5b515a=a152_0x1a16;if(!_0x3783b2[_0x5b515a(0x1dc)]())throw CliErrors['flagMissing'](_0x5b515a(0x1d7));let _0x4b77db;try{_0x4b77db=JSON['parse'](_0x3783b2);}catch{throw CliErrors[_0x5b515a(0x1e8)](_0x5b515a(0x1d1));}if(typeof _0x4b77db!==_0x5b515a(0x1da)||_0x4b77db===null||Array['isArray'](_0x4b77db)||Object[_0x5b515a(0x1ee)](_0x4b77db)[_0x5b515a(0x1e5)](_0x2d916f=>typeof _0x2d916f!==_0x5b515a(0x1db)))throw CliErrors[_0x5b515a(0x1e8)]('--page-content\x20must\x20be\x20a\x20JSON\x20object\x20whose\x20values\x20are\x20file\x20content\x20strings.');return _0x4b77db;}export async function validateCustomPageContent(_0x491ee2){const _0x4dfe5f=a152_0x1a16,_0x5f4820=await validateCustomPageSourceFiles(_0x491ee2);if(_0x5f4820[_0x4dfe5f(0x1e9)]>0x0)throw CliErrors[_0x4dfe5f(0x1e8)](_0x4dfe5f(0x1d4)+_0x5f4820[_0x4dfe5f(0x1d0)](_0xf8a7a2=>_0xf8a7a2['file']+':\x20'+_0xf8a7a2['message'])[_0x4dfe5f(0x1e0)](';\x20'));}function a152_0x1a16(_0x5506a6,_0x199101){_0x5506a6=_0x5506a6-0x1d0;const _0x210244=a152_0x2102();let _0x1a16b4=_0x210244[_0x5506a6];return _0x1a16b4;}export function readCustomPageId(_0x39f91d){const _0x19300f=a152_0x1a16,_0x32140a=_0x39f91d[_0x19300f(0x1ea)]('id');if(!Number[_0x19300f(0x1e2)](_0x32140a)||_0x32140a<=0x0)throw CliErrors[_0x19300f(0x1e8)](_0x19300f(0x1e3));return _0x32140a;}
1
+ (function(_0xe55a5d,_0x3b6dc8){const _0x2d38a0=a165_0x5b36,_0x190e20=_0xe55a5d();while(!![]){try{const _0x266d60=-parseInt(_0x2d38a0(0x1dd))/0x1*(parseInt(_0x2d38a0(0x1e9))/0x2)+-parseInt(_0x2d38a0(0x1f3))/0x3+-parseInt(_0x2d38a0(0x1e7))/0x4+-parseInt(_0x2d38a0(0x1db))/0x5*(-parseInt(_0x2d38a0(0x1f4))/0x6)+parseInt(_0x2d38a0(0x1df))/0x7+-parseInt(_0x2d38a0(0x1f7))/0x8*(-parseInt(_0x2d38a0(0x1ee))/0x9)+-parseInt(_0x2d38a0(0x1e4))/0xa;if(_0x266d60===_0x3b6dc8)break;else _0x190e20['push'](_0x190e20['shift']());}catch(_0x5db74d){_0x190e20['push'](_0x190e20['shift']());}}}(a165_0x3051,0x37426));import{APPCODE_FLAG_OPTIONAL}from'../../../commands/common/flags.js';import{fetchMenuSnapshot}from'../../../commands/menu/shared/facts.js';import{getAppBaseUrl,getPublishedAppDomain}from'../../../constant/domain.js';import{CliErrors}from'../../../errors.js';import{validateCustomPageSourceFiles}from'./syntax.js';export const CUSTOM_PAGE_APPCODE_FLAG_OPTIONAL={...APPCODE_FLAG_OPTIONAL,'description':'Optional\x20app\x20code\x20resolved\x20from\x20page\x20ID\x20when\x20omitted'};function trimOptional(_0x5eb25a){const _0x3c7c7b=a165_0x5b36;return _0x5eb25a?.[_0x3c7c7b(0x1de)]()||undefined;}export function buildCustomPageRuntimeUrl(_0x2ecf75,_0xd13293){const _0x2373d8=trimOptional(_0x2ecf75),_0x2ae652=trimOptional(_0xd13293);if(!_0x2373d8||!_0x2ae652)return undefined;return getPublishedAppDomain(_0x2373d8)+'/'+encodeURIComponent(_0x2ae652);}export function buildCustomPageDevelopmentUrl(_0x22e6b6,_0x54c6a9){const _0x48ec16=a165_0x5b36,_0x5edfd0=trimOptional(_0x22e6b6),_0x573d2f=trimOptional(_0x54c6a9);if(!_0x5edfd0||!_0x573d2f)return undefined;return getAppBaseUrl(_0x5edfd0)+_0x48ec16(0x1eb)+encodeURIComponent(_0x573d2f);}export async function resolveCustomPageDevelopmentUrl(_0x435d00,_0x2c4f14,_0x24873d){const _0x126cae=a165_0x5b36,_0x45661d=trimOptional(_0x435d00);if(!_0x45661d)return undefined;try{const _0x46a977=(await fetchMenuSnapshot(_0x45661d,_0x24873d))[_0x126cae(0x1e6)][_0x126cae(0x1e1)](_0xfd388a=>_0xfd388a[_0x126cae(0x1f5)]===_0x126cae(0x1ef)&&_0xfd388a[_0x126cae(0x1f2)]===_0x2c4f14);return buildCustomPageDevelopmentUrl(_0x45661d,_0x46a977?.[_0x126cae(0x1e2)]);}catch{return undefined;}}function a165_0x5b36(_0x2a2758,_0x674305){_0x2a2758=_0x2a2758-0x1d8;const _0x30514b=a165_0x3051();let _0x5b36b5=_0x30514b[_0x2a2758];return _0x5b36b5;}export function buildCustomPageEditUrl(_0x117508,_0x541038){const _0x1bb078=a165_0x5b36,_0xed7aa1=trimOptional(_0x117508);if(!_0xed7aa1)return;const _0x2d8ce3=trimOptional(_0x541038==null?undefined:String(_0x541038));if(!_0x2d8ce3)return;return getAppBaseUrl(_0xed7aa1)+_0x1bb078(0x1e0)+encodeURIComponent(_0x2d8ce3);}export function parseCustomPageContent(_0x5d4ca2){const _0xb587b=a165_0x5b36;if(!_0x5d4ca2[_0xb587b(0x1de)]())throw CliErrors['flagMissing'](_0xb587b(0x1f8));let _0x438614;try{_0x438614=JSON['parse'](_0x5d4ca2);}catch{throw CliErrors['validation']('--page-content\x20must\x20be\x20valid\x20JSON.');}if(typeof _0x438614!==_0xb587b(0x1da)||_0x438614===null||Array['isArray'](_0x438614)||Object[_0xb587b(0x1e8)](_0x438614)[_0xb587b(0x1ec)](_0xe30554=>typeof _0xe30554!==_0xb587b(0x1d9)))throw CliErrors[_0xb587b(0x1f1)]('--page-content\x20must\x20be\x20a\x20JSON\x20object\x20whose\x20values\x20are\x20file\x20content\x20strings.');return _0x438614;}export async function validateCustomPageContent(_0xa2e4c8){const _0x20fa77=a165_0x5b36,_0x10561a=await validateCustomPageSourceFiles(_0xa2e4c8);if(_0x10561a['length']>0x0)throw CliErrors[_0x20fa77(0x1f1)](_0x20fa77(0x1f0)+_0x10561a[_0x20fa77(0x1ed)](_0x36b77e=>_0x36b77e[_0x20fa77(0x1e5)]+':\x20'+_0x36b77e[_0x20fa77(0x1ea)])[_0x20fa77(0x1dc)](';\x20'));}export function readCustomPageId(_0x4d6dbb){const _0x333e46=a165_0x5b36,_0x3bf070=_0x4d6dbb[_0x333e46(0x1e3)]('id');if(!Number[_0x333e46(0x1f6)](_0x3bf070)||_0x3bf070<=0x0)throw CliErrors[_0x333e46(0x1f1)](_0x333e46(0x1d8));return _0x3bf070;}function a165_0x3051(){const _0x24dbf4=['24sjtrGc','page-content','--id\x20must\x20be\x20a\x20positive\x20integer.','string','object','1617855NsqmpR','join','34925cjoelw','trim','2133418ThquoC','/ide/','find','path','num','1680520rwQjQi','file','menus','689820UWsBOB','values','2XleTlZ','message','/pages/','some','map','855171eJauqh','react','Invalid\x20Custom\x20Page\x20content:\x20','validation','pageId','934884pFbnae','6JOwPWx','type','isInteger'];a165_0x3051=function(){return _0x24dbf4;};return a165_0x3051();}
@@ -1 +1 @@
1
- const a153_0x573e25=a153_0x337d;function a153_0x337d(_0x5ef974,_0x2cbdc0){_0x5ef974=_0x5ef974-0xc4;const _0x3f520d=a153_0x3f52();let _0x337d50=_0x3f520d[_0x5ef974];return _0x337d50;}function a153_0x3f52(){const _0xbd9d6e=['.tsx','168232idtBwr','7NMNOHx','babel','842652DlbQpJ','map','1533625WPrAnV','trim','page-content','18tZBWlN','toLowerCase','find','7227720zHcMpO','typescript','3570PlxmZY','filter','395044ChAKZk','message','entries','some','267xxNTEM','Missing\x20React\x20source\x20file\x20with\x20extension\x20.jsx\x20or\x20.tsx','.jsx','307146hIRRXd'];a153_0x3f52=function(){return _0xbd9d6e;};return a153_0x3f52();}(function(_0x1d717e,_0x524fa1){const _0x4d3053=a153_0x337d,_0x3fbeb3=_0x1d717e();while(!![]){try{const _0x3a7dea=-parseInt(_0x4d3053(0xda))/0x1+-parseInt(_0x4d3053(0xd8))/0x2*(parseInt(_0x4d3053(0xc6))/0x3)+-parseInt(_0x4d3053(0xce))/0x4+-parseInt(_0x4d3053(0xd0))/0x5+-parseInt(_0x4d3053(0xc9))/0x6+-parseInt(_0x4d3053(0xcc))/0x7*(-parseInt(_0x4d3053(0xcb))/0x8)+-parseInt(_0x4d3053(0xd3))/0x9*(-parseInt(_0x4d3053(0xd6))/0xa);if(_0x3a7dea===_0x524fa1)break;else _0x3fbeb3['push'](_0x3fbeb3['shift']());}catch(_0x3a21af){_0x3fbeb3['push'](_0x3fbeb3['shift']());}}}(a153_0x3f52,0x54015));import{format}from'prettier';const SOURCE_PARSERS={'.js':'babel','.jsx':a153_0x573e25(0xcd),'.ts':a153_0x573e25(0xd7),'.tsx':a153_0x573e25(0xd7)},CUSTOM_PAGE_EXTENSIONS=[a153_0x573e25(0xc8),a153_0x573e25(0xca)];export async function validateCustomPageSourceFiles(_0xa12ef){const _0x3e72a6=a153_0x573e25,_0x498216=Object[_0x3e72a6(0xc4)](_0xa12ef)[_0x3e72a6(0xd9)](([_0x1a4d5d])=>getParser(_0x1a4d5d));if(!_0x498216['some'](([_0x4a4457])=>isReactSourceFile(_0x4a4457)))return[{'file':_0x3e72a6(0xd2),'message':_0x3e72a6(0xc7)}];const _0x2b20da=await Promise['all'](_0x498216[_0x3e72a6(0xcf)](async([_0x257ea4,_0x308785])=>{const _0x2e882a=_0x3e72a6;try{return await format(_0x308785,{'parser':getParser(_0x257ea4)}),undefined;}catch(_0xb1991d){return{'file':_0x257ea4,'message':_0xb1991d instanceof Error?_0xb1991d[_0x2e882a(0xdb)]:String(_0xb1991d)};}}));return _0x2b20da[_0x3e72a6(0xd9)](_0x3313a9=>_0x3313a9!==undefined);}function getParser(_0x400873){const _0x2a5ece=a153_0x573e25,_0x178330=_0x400873[_0x2a5ece(0xd1)]()[_0x2a5ece(0xd4)]();return Object['entries'](SOURCE_PARSERS)[_0x2a5ece(0xd5)](([_0x319e15])=>_0x178330['endsWith'](_0x319e15))?.[0x1];}function isReactSourceFile(_0x22f977){const _0x351c33=a153_0x573e25,_0x5aa2d6=_0x22f977[_0x351c33(0xd1)]()['toLowerCase']();return CUSTOM_PAGE_EXTENSIONS[_0x351c33(0xc5)](_0x40572a=>_0x5aa2d6['endsWith'](_0x40572a));}
1
+ const a166_0x1bb22d=a166_0x5775;(function(_0x2403fd,_0x5ad72a){const _0x195c82=a166_0x5775,_0x566bde=_0x2403fd();while(!![]){try{const _0x4db013=-parseInt(_0x195c82(0x7d))/0x1+-parseInt(_0x195c82(0x82))/0x2*(-parseInt(_0x195c82(0x7f))/0x3)+-parseInt(_0x195c82(0x89))/0x4+-parseInt(_0x195c82(0x7c))/0x5+parseInt(_0x195c82(0x75))/0x6*(-parseInt(_0x195c82(0x85))/0x7)+-parseInt(_0x195c82(0x77))/0x8+parseInt(_0x195c82(0x84))/0x9;if(_0x4db013===_0x5ad72a)break;else _0x566bde['push'](_0x566bde['shift']());}catch(_0x4f9fba){_0x566bde['push'](_0x566bde['shift']());}}}(a166_0x192e,0xbe3f0));function a166_0x192e(){const _0x4b76f2=['babel','14828EayqRo','endsWith','46807983lDzMFL','7572628cZXBkk','all','filter','toLowerCase','4667256BZDwvs','trim','entries','6HWggBg','find','6538352DXZSav','typescript','.tsx','some','.jsx','5571800uhliXo','337749YKeDaQ','page-content','39hRhhrW','Missing\x20React\x20source\x20file\x20with\x20extension\x20.jsx\x20or\x20.tsx'];a166_0x192e=function(){return _0x4b76f2;};return a166_0x192e();}import{format}from'prettier';const SOURCE_PARSERS={'.js':a166_0x1bb22d(0x81),'.jsx':a166_0x1bb22d(0x81),'.ts':'typescript','.tsx':a166_0x1bb22d(0x78)},CUSTOM_PAGE_EXTENSIONS=[a166_0x1bb22d(0x7b),a166_0x1bb22d(0x79)];function a166_0x5775(_0x22da11,_0x1d2e56){_0x22da11=_0x22da11-0x73;const _0x192ea2=a166_0x192e();let _0x577556=_0x192ea2[_0x22da11];return _0x577556;}export async function validateCustomPageSourceFiles(_0x2a13f0){const _0x5494c7=a166_0x1bb22d,_0x1521c2=Object[_0x5494c7(0x74)](_0x2a13f0)[_0x5494c7(0x87)](([_0x4343f1])=>getParser(_0x4343f1));if(!_0x1521c2[_0x5494c7(0x7a)](([_0x4bcaec])=>isReactSourceFile(_0x4bcaec)))return[{'file':_0x5494c7(0x7e),'message':_0x5494c7(0x80)}];const _0x58b903=await Promise[_0x5494c7(0x86)](_0x1521c2['map'](async([_0x3149d9,_0x5a9111])=>{try{return await format(_0x5a9111,{'parser':getParser(_0x3149d9)}),undefined;}catch(_0x5990e4){return{'file':_0x3149d9,'message':_0x5990e4 instanceof Error?_0x5990e4['message']:String(_0x5990e4)};}}));return _0x58b903[_0x5494c7(0x87)](_0x37e375=>_0x37e375!==undefined);}function getParser(_0x138563){const _0x2d7011=a166_0x1bb22d,_0x30dd23=_0x138563[_0x2d7011(0x73)]()[_0x2d7011(0x88)]();return Object[_0x2d7011(0x74)](SOURCE_PARSERS)[_0x2d7011(0x76)](([_0x323f57])=>_0x30dd23[_0x2d7011(0x83)](_0x323f57))?.[0x1];}function isReactSourceFile(_0xbf9c65){const _0x28a755=a166_0x1bb22d,_0x332a9a=_0xbf9c65[_0x28a755(0x73)]()['toLowerCase']();return CUSTOM_PAGE_EXTENSIONS[_0x28a755(0x7a)](_0x468dab=>_0x332a9a[_0x28a755(0x83)](_0x468dab));}
@@ -1 +1 @@
1
- (function(_0x203b29,_0xd90fba){const _0x30584c=a154_0x24ad,_0xdc14bf=_0x203b29();while(!![]){try{const _0x4c5339=-parseInt(_0x30584c(0x114))/0x1*(parseInt(_0x30584c(0x11c))/0x2)+-parseInt(_0x30584c(0x115))/0x3+parseInt(_0x30584c(0x117))/0x4+-parseInt(_0x30584c(0x10e))/0x5+-parseInt(_0x30584c(0x107))/0x6+parseInt(_0x30584c(0x110))/0x7+-parseInt(_0x30584c(0x11b))/0x8*(-parseInt(_0x30584c(0x112))/0x9);if(_0x4c5339===_0xd90fba)break;else _0xdc14bf['push'](_0xdc14bf['shift']());}catch(_0x1d9c3a){_0xdc14bf['push'](_0xdc14bf['shift']());}}}(a154_0x2a85,0x29842));function buildIndexFile(_0x371a2e){const _0x412602=a154_0x24ad;return _0x412602(0x106)+JSON['stringify'](_0x371a2e)+_0x412602(0x11d);}function buildStyleFile(){const _0x4114e5=a154_0x24ad;return _0x4114e5(0x113);}function buildLocalesFile(_0x259c30){const _0x3bebf5=a154_0x24ad,_0x59036e=_0x259c30[_0x3bebf5(0x111)](_0x335dac=>{const _0x4d43c6=_0x3bebf5;let _0x432ac8='';switch(_0x335dac){case _0x4d43c6(0x10c):_0x432ac8='这是一个基础页面模板,你可以在此基础上进行开发。';break;case _0x4d43c6(0x10d):_0x432ac8=_0x4d43c6(0x119);break;case _0x4d43c6(0x116):_0x432ac8=_0x4d43c6(0x10a);break;case'tr-TR':_0x432ac8=_0x4d43c6(0x11a);break;case'id-ID':_0x432ac8=_0x4d43c6(0x109);break;default:_0x432ac8='This\x20is\x20a\x20basic\x20page\x20template,\x20you\x20can\x20develop\x20based\x20on\x20it.';}return'\x20\x20'+JSON[_0x4d43c6(0x108)](_0x335dac)+':\x20{\x0a\x20\x20\x20\x20'+JSON['stringify'](_0x4d43c6(0x10b))+':\x20'+JSON[_0x4d43c6(0x108)](_0x432ac8)+_0x4d43c6(0x10f);})['join'](',\x0a');return _0x3bebf5(0x118)+_0x59036e+'\x0a};\x0a';}function a154_0x24ad(_0x463848,_0x3eb33e){_0x463848=_0x463848-0x106;const _0x2a8502=a154_0x2a85();let _0x24ad9f=_0x2a8502[_0x463848];return _0x24ad9f;}export function buildInitialFiles(_0x39eb40,_0x556625){return{'src/app/index.jsx':buildIndexFile(_0x39eb40),'src/app/index.css':buildStyleFile(),'src/locales/index.js':buildLocalesFile(_0x556625)};}function a154_0x2a85(){const _0x4b0097=['Ini\x20adalah\x20sebuah\x20halaman\x20dasar.\x20Anda\x20dapat\x20mengembangkan\x20ini.','これは基本ページテンプレートです。あなたは、これに基づいて開発できます。','pageDescription','zh-CN','en-US','838885oOYXWM',',\x0a\x20\x20}','444171MUJUYy','map','36iTTNGg','.page-container\x20{\x0a\x20\x20padding:\x2024px;\x0a\x20\x20background:\x20#f0f2f5;\x0a\x20\x20min-height:\x20100vh;\x0a}\x0a','105jLjPGg','993186XjPhFE','ja-JP','851132LHeEJx','export\x20const\x20locales\x20=\x20{\x0a','This\x20is\x20a\x20basic\x20page\x20template,\x20you\x20can\x20develop\x20based\x20on\x20it.','Bu\x20bir\x20temel\x20sayfa\x20şablonudur.\x20Bu\x20temaplana\x20dayanarak\x20geliştirilebilir.','1666088EuPyhl','5188KYKDSp','}</Typography.Title>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<Typography.Paragraph>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{$i18n.t(\x27pageDescription\x27,\x20\x27这是一个基础页面模板,你可以在此基础上进行开发。\x27)}\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</Typography.Paragraph>\x0a\x20\x20\x20\x20\x20\x20\x20\x20</Typography>\x0a\x20\x20\x20\x20\x20\x20</Card>\x0a\x20\x20\x20\x20</div>\x0a\x20\x20);\x0a};\x0a\x0aexport\x20default\x20App;\x0a','import\x20React\x20from\x20\x27react\x27;\x0aimport\x20{\x20Card,\x20Typography\x20}\x20from\x20\x27antd\x27;\x0aimport\x20{\x20useSdkClient,\x20useI18n,\x20useNavigate,\x20useLocation\x20}\x20from\x20\x22@/context/app-context\x22;\x0aimport\x20{\x20locales\x20}\x20from\x20\x27../locales\x27;\x0aimport\x20\x27./index.css\x27;\x0a\x0aconst\x20App\x20=\x20()\x20=>\x20{\x0a\x20\x20const\x20client\x20=\x20useSdkClient();\x20//\x20client\x20可以用于获取其他数据集的数据\x0a\x20\x20const\x20$i18n\x20=\x20useI18n();\x20//\x20国际化多语言\x20i18n\x20实例\x0a\x20\x20const\x20navigate\x20=\x20useNavigate();\x20//\x20react-router\x20navigate\x20导航实例\x0a\x20\x20const\x20location\x20=\x20useLocation();\x20//\x20浏览器\x20location\x20实例\x0a\x0a\x20\x20$i18n.addLocale(locales);\x20//\x20添加多语言词包\x0a\x0a\x20\x20return\x20(\x0a\x20\x20\x20\x20<div\x20className=\x22page-container\x22>\x0a\x20\x20\x20\x20\x20\x20<Card>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<Typography>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<Typography.Title\x20level={2}>{','1008126YrFudh','stringify'];a154_0x2a85=function(){return _0x4b0097;};return a154_0x2a85();}
1
+ function a167_0x3e52(_0x443b5e,_0x2abd7e){_0x443b5e=_0x443b5e-0x8e;const _0x4be5f7=a167_0x4be5();let _0x3e52da=_0x4be5f7[_0x443b5e];return _0x3e52da;}(function(_0x59ccd2,_0xebf997){const _0x11be92=a167_0x3e52,_0x2b97fa=_0x59ccd2();while(!![]){try{const _0x273a50=-parseInt(_0x11be92(0x8e))/0x1+-parseInt(_0x11be92(0x9a))/0x2*(parseInt(_0x11be92(0xa3))/0x3)+-parseInt(_0x11be92(0xa5))/0x4+parseInt(_0x11be92(0x90))/0x5+-parseInt(_0x11be92(0x8f))/0x6+-parseInt(_0x11be92(0x9b))/0x7+-parseInt(_0x11be92(0xa8))/0x8*(-parseInt(_0x11be92(0x93))/0x9);if(_0x273a50===_0xebf997)break;else _0x2b97fa['push'](_0x2b97fa['shift']());}catch(_0x4b2c6b){_0x2b97fa['push'](_0x2b97fa['shift']());}}}(a167_0x4be5,0xdf6a1));function buildIndexFile(_0x5a99f9){const _0x242d7c=a167_0x3e52;return _0x242d7c(0xa2)+JSON[_0x242d7c(0x98)](_0x5a99f9)+_0x242d7c(0x99);}function a167_0x4be5(){const _0x4019d3=['export\x20const\x20locales\x20=\x20{\x0a','pageDescription','Bu\x20bir\x20temel\x20sayfa\x20şablonudur.\x20Bu\x20temaplana\x20dayanarak\x20geliştirilebilir.','import\x20React\x20from\x20\x27react\x27;\x0aimport\x20{\x20Card,\x20Typography\x20}\x20from\x20\x27antd\x27;\x0aimport\x20{\x20useSdkClient,\x20useI18n,\x20useNavigate,\x20useLocation\x20}\x20from\x20\x22@/context/app-context\x22;\x0aimport\x20{\x20locales\x20}\x20from\x20\x27../locales\x27;\x0aimport\x20\x27./index.css\x27;\x0a\x0aconst\x20App\x20=\x20()\x20=>\x20{\x0a\x20\x20const\x20client\x20=\x20useSdkClient();\x20//\x20client\x20可以用于获取其他数据集的数据\x0a\x20\x20const\x20$i18n\x20=\x20useI18n();\x20//\x20国际化多语言\x20i18n\x20实例\x0a\x20\x20const\x20navigate\x20=\x20useNavigate();\x20//\x20react-router\x20navigate\x20导航实例\x0a\x20\x20const\x20location\x20=\x20useLocation();\x20//\x20浏览器\x20location\x20实例\x0a\x0a\x20\x20$i18n.addLocale(locales);\x20//\x20添加多语言词包\x0a\x0a\x20\x20return\x20(\x0a\x20\x20\x20\x20<div\x20className=\x22page-container\x22>\x0a\x20\x20\x20\x20\x20\x20<Card>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<Typography>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<Typography.Title\x20level={2}>{','129gbqkyE','Ini\x20adalah\x20sebuah\x20halaman\x20dasar.\x20Anda\x20dapat\x20mengembangkan\x20ini.','5908660HZQRXw','id-ID','这是一个基础页面模板,你可以在此基础上进行开发。','672qlcvTm','en-US','1013936tZZkUI','2490708dDNZlM','8811340BYYtIV',':\x20{\x0a\x20\x20\x20\x20',',\x0a\x20\x20}','384165ElZrkP','\x0a};\x0a','zh-CN','This\x20is\x20a\x20basic\x20page\x20template,\x20you\x20can\x20develop\x20based\x20on\x20it.','tr-TR','stringify','}</Typography.Title>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<Typography.Paragraph>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{$i18n.t(\x27pageDescription\x27,\x20\x27这是一个基础页面模板,你可以在此基础上进行开发。\x27)}\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</Typography.Paragraph>\x0a\x20\x20\x20\x20\x20\x20\x20\x20</Typography>\x0a\x20\x20\x20\x20\x20\x20</Card>\x0a\x20\x20\x20\x20</div>\x0a\x20\x20);\x0a};\x0a\x0aexport\x20default\x20App;\x0a','46534ShSkNg','3682021oVMpTV','ja-JP','map','これは基本ページテンプレートです。あなたは、これに基づいて開発できます。'];a167_0x4be5=function(){return _0x4019d3;};return a167_0x4be5();}function buildStyleFile(){return'.page-container\x20{\x0a\x20\x20padding:\x2024px;\x0a\x20\x20background:\x20#f0f2f5;\x0a\x20\x20min-height:\x20100vh;\x0a}\x0a';}function buildLocalesFile(_0x2a5b68){const _0x2434d2=a167_0x3e52,_0x21f86c=_0x2a5b68[_0x2434d2(0x9d)](_0x15154a=>{const _0x3d2ca0=_0x2434d2;let _0x323bf6='';switch(_0x15154a){case _0x3d2ca0(0x95):_0x323bf6=_0x3d2ca0(0xa7);break;case _0x3d2ca0(0xa9):_0x323bf6=_0x3d2ca0(0x96);break;case _0x3d2ca0(0x9c):_0x323bf6=_0x3d2ca0(0x9e);break;case _0x3d2ca0(0x97):_0x323bf6=_0x3d2ca0(0xa1);break;case _0x3d2ca0(0xa6):_0x323bf6=_0x3d2ca0(0xa4);break;default:_0x323bf6=_0x3d2ca0(0x96);}return'\x20\x20'+JSON['stringify'](_0x15154a)+_0x3d2ca0(0x91)+JSON['stringify'](_0x3d2ca0(0xa0))+':\x20'+JSON[_0x3d2ca0(0x98)](_0x323bf6)+_0x3d2ca0(0x92);})['join'](',\x0a');return _0x2434d2(0x9f)+_0x21f86c+_0x2434d2(0x94);}export function buildInitialFiles(_0x164a3e,_0x5ef213){return{'src/app/index.jsx':buildIndexFile(_0x164a3e),'src/app/index.css':buildStyleFile(),'src/locales/index.js':buildLocalesFile(_0x5ef213)};}
@@ -1 +1 @@
1
- const a155_0x3c26e2=a155_0x1e68;(function(_0x35b2f8,_0x1e9255){const _0x4ed988=a155_0x1e68,_0x460d93=_0x35b2f8();while(!![]){try{const _0x1d2915=-parseInt(_0x4ed988(0xdd))/0x1+parseInt(_0x4ed988(0xdb))/0x2+-parseInt(_0x4ed988(0xd0))/0x3+-parseInt(_0x4ed988(0xda))/0x4*(parseInt(_0x4ed988(0xe3))/0x5)+parseInt(_0x4ed988(0xd6))/0x6*(parseInt(_0x4ed988(0xc8))/0x7)+-parseInt(_0x4ed988(0xde))/0x8*(parseInt(_0x4ed988(0xcc))/0x9)+parseInt(_0x4ed988(0xc9))/0xa*(parseInt(_0x4ed988(0xd9))/0xb);if(_0x1d2915===_0x1e9255)break;else _0x460d93['push'](_0x460d93['shift']());}catch(_0x35e673){_0x460d93['push'](_0x460d93['shift']());}}}(a155_0x48b7,0x7c83d));import{getCustomPageSource,updateCustomPageContent}from'../../../core/api-client.js';function a155_0x48b7(){const _0x1d402e=['82355JyYfVy','pageContent','validation','Custom\x20Page\x20was\x20updated,\x20but\x20a\x20link\x20to\x20its\x20latest\x20saved\x20content\x20could\x20not\x20be\x20generated.','apiError','compress','cookie','2473891RctIId','30CnGpmF','isInteger','Would\x20save\x20all\x20files\x20of\x20Custom\x20Page\x20','928593aImBXo','string','page.custom-update','custom-update','2727903XibwuJ','appcode','Custom\x20Page\x20ID','pageId','str','POST','6qYroEw','number','appCode','10271921umleKU','68vsqQCG','771070azxGgh','newVersion','1015644cCsblB','64ocysBt','page-content','trim','Updated\x20Custom\x20Page\x20','Custom\x20Page\x20update\x20did\x20not\x20create\x20a\x20new\x20version.'];a155_0x48b7=function(){return _0x1d402e;};return a155_0x48b7();}function a155_0x1e68(_0x540a5b,_0x17ef82){_0x540a5b=_0x540a5b-0xc4;const _0x48b7ad=a155_0x48b7();let _0x1e6811=_0x48b7ad[_0x540a5b];return _0x1e6811;}import{CliErrors}from'../../../errors.js';import{buildCustomPageEditUrl,parseCustomPageContent,resolveCustomPageDevelopmentUrl,readCustomPageId,CUSTOM_PAGE_APPCODE_FLAG_OPTIONAL,validateCustomPageContent}from'./shared.js';export const pageCustomUpdate={'service':'page','command':a155_0x3c26e2(0xcf),'description':'Save\x20all\x20files\x20of\x20a\x20Custom\x20Page','risk':'write','defaultOutputFormat':a155_0x3c26e2(0xc6),'structuredErrors':!![],'requiresAppCode':![],'flags':[{'name':'id','type':a155_0x3c26e2(0xd7),'required':!![],'description':a155_0x3c26e2(0xd2)},{'name':a155_0x3c26e2(0xdf),'type':a155_0x3c26e2(0xcd),'required':!![],'description':'Complete\x20page\x20files\x20as\x20JSON'},CUSTOM_PAGE_APPCODE_FLAG_OPTIONAL],async 'validate'(_0x35b0a5){const _0x1586e8=a155_0x3c26e2;readCustomPageId(_0x35b0a5),await validateCustomPageContent(parseCustomPageContent(_0x35b0a5[_0x1586e8(0xd4)](_0x1586e8(0xdf))));},async 'dryRun'(_0x45d19f){const _0x58c8ce=a155_0x3c26e2,_0x1dd609=await readInput(_0x45d19f);return{'method':_0x58c8ce(0xd5),'url':'/smartapi/webcode/page/update/content','body':{'id':_0x1dd609[_0x58c8ce(0xd3)],'codeContent':_0x1dd609['pageContent']},'description':_0x58c8ce(0xcb)+_0x1dd609['pageId']+'.'};},async 'execute'(_0x5d8116){const _0x198dd9=a155_0x3c26e2,_0x1ba641=await readInput(_0x5d8116),_0x3b1347=await updateCustomPageContent({'pageId':_0x1ba641[_0x198dd9(0xd3)],'pageContent':_0x1ba641[_0x198dd9(0xe4)]});if(!Number[_0x198dd9(0xca)](_0x3b1347[_0x198dd9(0xdc)])||_0x3b1347[_0x198dd9(0xdc)]<=0x0)throw CliErrors[_0x198dd9(0xc5)](_0x198dd9(0xe2));const _0x54ba15=buildCustomPageEditUrl(_0x1ba641[_0x198dd9(0xd8)],_0x1ba641[_0x198dd9(0xd3)]),_0x66c656=await resolveCustomPageDevelopmentUrl(_0x1ba641[_0x198dd9(0xd8)],_0x1ba641[_0x198dd9(0xd3)],_0x5d8116[_0x198dd9(0xc7)]);return{'ok':!![],'data':buildMutationData(_0x1ba641,_0x3b1347,_0x66c656,_0x54ba15,_0x66c656?[]:[_0x198dd9(0xc4)]),'message':_0x198dd9(0xe1)+_0x1ba641['pageId']+'.'};}};async function readInput(_0x1c3849){const _0xcf34e0=a155_0x3c26e2,_0x41c7b0=readCustomPageId(_0x1c3849),_0x56a6cb=_0x1c3849[_0xcf34e0(0xd4)](_0xcf34e0(0xd1))[_0xcf34e0(0xe0)]()||(await getCustomPageSource(_0x41c7b0))[_0xcf34e0(0xd8)]?.[_0xcf34e0(0xe0)]();if(!_0x56a6cb)throw CliErrors[_0xcf34e0(0xe5)]('Cannot\x20determine\x20the\x20appCode\x20for\x20Custom\x20Page\x20'+_0x41c7b0+'.');return{'appCode':_0x56a6cb,'pageId':_0x41c7b0,'pageContent':parseCustomPageContent(_0x1c3849[_0xcf34e0(0xd4)](_0xcf34e0(0xdf)))};}function buildMutationData(_0x209ce2,_0x5808b1,_0x8b2047,_0x20ba45,_0x5415f9=[]){const _0x3f69f4=a155_0x3c26e2;return{'operation':_0x3f69f4(0xce),'selector':{'appCode':_0x209ce2['appCode'],'pageId':_0x209ce2[_0x3f69f4(0xd3)]},'before':null,'after':{'pageId':_0x5808b1?.[_0x3f69f4(0xd3)]??_0x209ce2[_0x3f69f4(0xd3)],'version':_0x5808b1?.[_0x3f69f4(0xdc)]??null,'pageContent':_0x209ce2[_0x3f69f4(0xe4)]},'dryRun':_0x5808b1===undefined,'request':_0x209ce2,..._0x8b2047?{'pageUrl':_0x8b2047}:{},..._0x20ba45?{'editPageUrl':_0x20ba45}:{},'warnings':_0x5415f9};}
1
+ const a168_0x5cc648=a168_0x36b4;(function(_0x534d88,_0x3ff961){const _0x2e147e=a168_0x36b4,_0xe8271e=_0x534d88();while(!![]){try{const _0x185b7e=parseInt(_0x2e147e(0x162))/0x1+-parseInt(_0x2e147e(0x16d))/0x2+-parseInt(_0x2e147e(0x15e))/0x3*(parseInt(_0x2e147e(0x156))/0x4)+parseInt(_0x2e147e(0x15c))/0x5*(parseInt(_0x2e147e(0x173))/0x6)+-parseInt(_0x2e147e(0x163))/0x7*(-parseInt(_0x2e147e(0x160))/0x8)+-parseInt(_0x2e147e(0x164))/0x9*(parseInt(_0x2e147e(0x155))/0xa)+parseInt(_0x2e147e(0x15a))/0xb*(parseInt(_0x2e147e(0x16e))/0xc);if(_0x185b7e===_0x3ff961)break;else _0xe8271e['push'](_0xe8271e['shift']());}catch(_0x505411){_0xe8271e['push'](_0xe8271e['shift']());}}}(a168_0x5b92,0x6ec06));import{getCustomPageSource,updateCustomPageContent}from'../../../core/api-client.js';import{CliErrors}from'../../../errors.js';import{buildCustomPageEditUrl,parseCustomPageContent,resolveCustomPageDevelopmentUrl,readCustomPageId,CUSTOM_PAGE_APPCODE_FLAG_OPTIONAL,validateCustomPageContent}from'./shared.js';function a168_0x36b4(_0x39307e,_0x1f8ab6){_0x39307e=_0x39307e-0x154;const _0x5b92d0=a168_0x5b92();let _0x36b4fe=_0x5b92d0[_0x39307e];return _0x36b4fe;}export const pageCustomUpdate={'service':'page','command':'custom-update','description':a168_0x5cc648(0x161),'risk':'write','defaultOutputFormat':a168_0x5cc648(0x16f),'structuredErrors':!![],'requiresAppCode':![],'flags':[{'name':'id','type':a168_0x5cc648(0x177),'required':!![],'description':a168_0x5cc648(0x176)},{'name':a168_0x5cc648(0x15d),'type':a168_0x5cc648(0x157),'required':!![],'description':'Complete\x20page\x20files\x20as\x20JSON'},CUSTOM_PAGE_APPCODE_FLAG_OPTIONAL],async 'validate'(_0x389c04){const _0x2e32f2=a168_0x5cc648;readCustomPageId(_0x389c04),await validateCustomPageContent(parseCustomPageContent(_0x389c04[_0x2e32f2(0x165)](_0x2e32f2(0x15d))));},async 'dryRun'(_0x274b6e){const _0x1338c3=a168_0x5cc648,_0xfef270=await readInput(_0x274b6e);return{'method':_0x1338c3(0x15b),'url':_0x1338c3(0x174),'body':{'id':_0xfef270[_0x1338c3(0x154)],'codeContent':_0xfef270[_0x1338c3(0x16c)]},'description':_0x1338c3(0x159)+_0xfef270['pageId']+'.'};},async 'execute'(_0x4881c9){const _0x2e9adf=a168_0x5cc648,_0x29f53a=await readInput(_0x4881c9),_0x3087ac=await updateCustomPageContent({'pageId':_0x29f53a[_0x2e9adf(0x154)],'pageContent':_0x29f53a[_0x2e9adf(0x16c)]});if(!Number[_0x2e9adf(0x15f)](_0x3087ac[_0x2e9adf(0x170)])||_0x3087ac[_0x2e9adf(0x170)]<=0x0)throw CliErrors[_0x2e9adf(0x158)](_0x2e9adf(0x169));const _0x26e1c1=buildCustomPageEditUrl(_0x29f53a[_0x2e9adf(0x171)],_0x29f53a[_0x2e9adf(0x154)]),_0x52e661=await resolveCustomPageDevelopmentUrl(_0x29f53a[_0x2e9adf(0x171)],_0x29f53a[_0x2e9adf(0x154)],_0x4881c9[_0x2e9adf(0x168)]);return{'ok':!![],'data':buildMutationData(_0x29f53a,_0x3087ac,_0x52e661,_0x26e1c1,_0x52e661?[]:[_0x2e9adf(0x167)]),'message':_0x2e9adf(0x175)+_0x29f53a[_0x2e9adf(0x154)]+'.'};}};async function readInput(_0xa56442){const _0x405cbe=a168_0x5cc648,_0x248165=readCustomPageId(_0xa56442),_0x17fa4b=_0xa56442[_0x405cbe(0x165)]('appcode')[_0x405cbe(0x16a)]()||(await getCustomPageSource(_0x248165))[_0x405cbe(0x171)]?.[_0x405cbe(0x16a)]();if(!_0x17fa4b)throw CliErrors[_0x405cbe(0x172)](_0x405cbe(0x16b)+_0x248165+'.');return{'appCode':_0x17fa4b,'pageId':_0x248165,'pageContent':parseCustomPageContent(_0xa56442['str'](_0x405cbe(0x15d)))};}function buildMutationData(_0x40a401,_0x593d93,_0x34d77a,_0x19cde7,_0x48cd5e=[]){const _0x34b155=a168_0x5cc648;return{'operation':_0x34b155(0x166),'selector':{'appCode':_0x40a401[_0x34b155(0x171)],'pageId':_0x40a401[_0x34b155(0x154)]},'before':null,'after':{'pageId':_0x593d93?.['pageId']??_0x40a401['pageId'],'version':_0x593d93?.[_0x34b155(0x170)]??null,'pageContent':_0x40a401['pageContent']},'dryRun':_0x593d93===undefined,'request':_0x40a401,..._0x34d77a?{'pageUrl':_0x34d77a}:{},..._0x19cde7?{'editPageUrl':_0x19cde7}:{},'warnings':_0x48cd5e};}function a168_0x5b92(){const _0x558deb=['str','page.custom-update','Custom\x20Page\x20was\x20updated,\x20but\x20a\x20link\x20to\x20its\x20latest\x20saved\x20content\x20could\x20not\x20be\x20generated.','cookie','Custom\x20Page\x20update\x20did\x20not\x20create\x20a\x20new\x20version.','trim','Cannot\x20determine\x20the\x20appCode\x20for\x20Custom\x20Page\x20','pageContent','1669136zgZtUm','5165736EQipbf','compress','newVersion','appCode','validation','174lgKzGX','/smartapi/webcode/page/update/content','Updated\x20Custom\x20Page\x20','Custom\x20Page\x20ID','number','pageId','1830TejyrQ','190264GbErvz','string','apiError','Would\x20save\x20all\x20files\x20of\x20Custom\x20Page\x20','11GxfcVr','POST','38185pzRimf','page-content','18CMViEL','isInteger','4456JOONTW','Save\x20all\x20files\x20of\x20a\x20Custom\x20Page','878668OeoYaR','4144koEiWj','14103cYtOEH'];a168_0x5b92=function(){return _0x558deb;};return a168_0x5b92();}
@@ -1 +1 @@
1
- const a156_0x23f8f7=a156_0x5d7c;function a156_0x4a49(){const _0x5b23ff=['related-pages-fallback','6099772amDgqy','status','appCode','alias','Query\x20Data\x20List\x20Page\x20facts\x20for\x20a\x20dataset','5899340CCOSqL','manualResolutionRequired','length','/smartapi/lovrabet/dataset/','name','1655664hiMvQj','3606666EhJbLu','code','4959027mJbFLY','relatedPages','source','934305NJpADk','4301437YsSxLq','read','nextAction','Dataset\x20alias\x20from\x20api.ts\x20(resolves\x20to\x20dataset\x20code\x20automatically)','data-list-status'];a156_0x4a49=function(){return _0x5b23ff;};return a156_0x4a49();}(function(_0x257f0e,_0x507949){const _0x2e4bb5=a156_0x5d7c,_0x3390b8=_0x257f0e();while(!![]){try{const _0x3a75a7=parseInt(_0x2e4bb5(0x1bc))/0x1+-parseInt(_0x2e4bb5(0x1b6))/0x2+parseInt(_0x2e4bb5(0x1b9))/0x3+parseInt(_0x2e4bb5(0x1c3))/0x4+-parseInt(_0x2e4bb5(0x1b1))/0x5+-parseInt(_0x2e4bb5(0x1b7))/0x6+-parseInt(_0x2e4bb5(0x1bd))/0x7;if(_0x3a75a7===_0x507949)break;else _0x3390b8['push'](_0x3390b8['shift']());}catch(_0x391de1){_0x3390b8['push'](_0x3390b8['shift']());}}}(a156_0x4a49,0xd907b));import{APPCODE_FLAG_OPTIONAL,DATASETCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{assessDataListPageState,getUndeletedRelatedPages,loadDatasetDetailForPage,loadDataListPageStatusForGenerate,serializeDryRunDescription,validateDatasetSelector}from'../../commands/page/shared.js';function a156_0x5d7c(_0x651a7c,_0x1d4ded){_0x651a7c=_0x651a7c-0x1af;const _0x4a49c8=a156_0x4a49();let _0x5d7c78=_0x4a49c8[_0x651a7c];return _0x5d7c78;}export const pageDataListStatus={'service':'page','command':a156_0x23f8f7(0x1c1),'description':a156_0x23f8f7(0x1b0),'risk':a156_0x23f8f7(0x1be),'defaultOutputFormat':'compress','flags':[APPCODE_FLAG_OPTIONAL,DATASETCODE_FLAG_OPTIONAL,{'name':a156_0x23f8f7(0x1af),'type':'string','description':a156_0x23f8f7(0x1c0)}],async 'validate'(_0xfc0351){validateDatasetSelector(_0xfc0351);},async 'dryRun'(_0x4448c1){const _0x394135=a156_0x23f8f7,_0x56201c=await loadDatasetDetailForPage(_0x4448c1);return{'method':'GET','url':_0x394135(0x1b4)+_0x56201c[_0x394135(0x1b8)]+'/standard-page-status?appCode='+encodeURIComponent(_0x4448c1[_0x394135(0x1c5)]),'description':serializeDryRunDescription({'dataset':{'id':_0x56201c['id'],'code':_0x56201c[_0x394135(0x1b8)],'name':_0x56201c[_0x394135(0x1b5)]},'action':'query-data-list-status'})};},async 'execute'(_0x11047f){const _0x7b5c19=a156_0x23f8f7,_0x275e20=await loadDatasetDetailForPage(_0x11047f),_0x2571f2=await loadDataListPageStatusForGenerate(_0x11047f,_0x275e20[_0x7b5c19(0x1b8)]),_0x16d74c=getUndeletedRelatedPages(_0x275e20),_0x4762ee=assessDataListPageState(_0x275e20[_0x7b5c19(0x1b8)],_0x2571f2,{'fallbackUndeletedPages':_0x16d74c});return{'ok':!![],'data':{'datasetCode':_0x275e20[_0x7b5c19(0x1b8)],'precheckSource':_0x2571f2?.[_0x7b5c19(0x1bb)]??_0x7b5c19(0x1c2),'status':_0x4762ee[_0x7b5c19(0x1c4)],'manualResolutionRequired':_0x4762ee[_0x7b5c19(0x1b2)],'nextAction':_0x4762ee[_0x7b5c19(0x1bf)],'dataListPageStatus':_0x2571f2,'relatedPages':{'total':_0x275e20[_0x7b5c19(0x1ba)][_0x7b5c19(0x1b3)],'undeletedCount':_0x16d74c['length']}}};}};
1
+ const a169_0x2bb313=a169_0x5cc5;(function(_0x1befc3,_0x16becf){const _0x5efc42=a169_0x5cc5,_0x5d2231=_0x1befc3();while(!![]){try{const _0x5e14d7=parseInt(_0x5efc42(0x12b))/0x1+parseInt(_0x5efc42(0x128))/0x2*(-parseInt(_0x5efc42(0x142))/0x3)+parseInt(_0x5efc42(0x134))/0x4*(parseInt(_0x5efc42(0x139))/0x5)+parseInt(_0x5efc42(0x13f))/0x6*(-parseInt(_0x5efc42(0x13e))/0x7)+-parseInt(_0x5efc42(0x133))/0x8*(-parseInt(_0x5efc42(0x12a))/0x9)+-parseInt(_0x5efc42(0x140))/0xa*(-parseInt(_0x5efc42(0x138))/0xb)+parseInt(_0x5efc42(0x13c))/0xc*(-parseInt(_0x5efc42(0x129))/0xd);if(_0x5e14d7===_0x16becf)break;else _0x5d2231['push'](_0x5d2231['shift']());}catch(_0x75e7d){_0x5d2231['push'](_0x5d2231['shift']());}}}(a169_0x4b65,0xc82c6));import{APPCODE_FLAG_OPTIONAL,DATASETCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function a169_0x5cc5(_0x3182d2,_0xe12ef4){_0x3182d2=_0x3182d2-0x126;const _0x4b65f4=a169_0x4b65();let _0x5cc528=_0x4b65f4[_0x3182d2];return _0x5cc528;}import{assessDataListPageState,getUndeletedRelatedPages,loadDatasetDetailForPage,loadDataListPageStatusForGenerate,serializeDryRunDescription,validateDatasetSelector}from'../../commands/page/shared.js';export const pageDataListStatus={'service':a169_0x2bb313(0x131),'command':a169_0x2bb313(0x13d),'description':a169_0x2bb313(0x12d),'risk':a169_0x2bb313(0x143),'defaultOutputFormat':a169_0x2bb313(0x13b),'flags':[APPCODE_FLAG_OPTIONAL,DATASETCODE_FLAG_OPTIONAL,{'name':'alias','type':a169_0x2bb313(0x127),'description':a169_0x2bb313(0x12e)}],async 'validate'(_0x1c3350){validateDatasetSelector(_0x1c3350);},async 'dryRun'(_0x760e4c){const _0x4e693d=a169_0x2bb313,_0x4226b1=await loadDatasetDetailForPage(_0x760e4c);return{'method':_0x4e693d(0x136),'url':_0x4e693d(0x135)+_0x4226b1['code']+_0x4e693d(0x126)+encodeURIComponent(_0x760e4c[_0x4e693d(0x145)]),'description':serializeDryRunDescription({'dataset':{'id':_0x4226b1['id'],'code':_0x4226b1[_0x4e693d(0x13a)],'name':_0x4226b1[_0x4e693d(0x144)]},'action':_0x4e693d(0x12c)})};},async 'execute'(_0x507819){const _0x354fc0=a169_0x2bb313,_0x5b98cd=await loadDatasetDetailForPage(_0x507819),_0x15c050=await loadDataListPageStatusForGenerate(_0x507819,_0x5b98cd['code']),_0x34c421=getUndeletedRelatedPages(_0x5b98cd),_0x4d3c72=assessDataListPageState(_0x5b98cd[_0x354fc0(0x13a)],_0x15c050,{'fallbackUndeletedPages':_0x34c421});return{'ok':!![],'data':{'datasetCode':_0x5b98cd['code'],'precheckSource':_0x15c050?.['source']??_0x354fc0(0x132),'status':_0x4d3c72['status'],'manualResolutionRequired':_0x4d3c72[_0x354fc0(0x137)],'nextAction':_0x4d3c72[_0x354fc0(0x12f)],'dataListPageStatus':_0x15c050,'relatedPages':{'total':_0x5b98cd[_0x354fc0(0x141)][_0x354fc0(0x130)],'undeletedCount':_0x34c421[_0x354fc0(0x130)]}}};}};function a169_0x4b65(){const _0x211afd=['552543LNCHVb','read','name','appCode','/standard-page-status?appCode=','string','14wqJBTb','13IFMNzT','1224XuwMjY','1550249gtZmxQ','query-data-list-status','Query\x20Data\x20List\x20Page\x20facts\x20for\x20a\x20dataset','Dataset\x20alias\x20from\x20api.ts\x20(resolves\x20to\x20dataset\x20code\x20automatically)','nextAction','length','page','related-pages-fallback','59816iOhRAY','36SJacjw','/smartapi/lovrabet/dataset/','GET','manualResolutionRequired','13665938mJsCBM','621205mXtJTF','code','compress','20088612kmuClV','data-list-status','400547xKCEsW','120rLajgK','10ilzHcZ','relatedPages'];a169_0x4b65=function(){return _0x211afd;};return a169_0x4b65();}
@@ -1 +1 @@
1
- const a157_0x5e2a72=a157_0x2540;(function(_0x378264,_0x3ff6ee){const _0x435f9c=a157_0x2540,_0x449b53=_0x378264();while(!![]){try{const _0x29455c=parseInt(_0x435f9c(0x1f1))/0x1*(parseInt(_0x435f9c(0x1f4))/0x2)+parseInt(_0x435f9c(0x1f2))/0x3*(parseInt(_0x435f9c(0x1f0))/0x4)+-parseInt(_0x435f9c(0x1ee))/0x5+-parseInt(_0x435f9c(0x1d3))/0x6+parseInt(_0x435f9c(0x1e5))/0x7*(parseInt(_0x435f9c(0x1dc))/0x8)+parseInt(_0x435f9c(0x1d4))/0x9*(parseInt(_0x435f9c(0x1cb))/0xa)+parseInt(_0x435f9c(0x1f3))/0xb*(parseInt(_0x435f9c(0x1eb))/0xc);if(_0x29455c===_0x3ff6ee)break;else _0x449b53['push'](_0x449b53['shift']());}catch(_0x1df158){_0x449b53['push'](_0x449b53['shift']());}}}(a157_0x37ec,0x80436));function a157_0x37ec(){const _0x656730=['3531rnIbrN','627602DJiqCZ','bool','Start\x20async\x20Data\x20List\x20Page\x20generation\x20from\x20a\x20dataset','/generate-standard-pages/start','SUCCESS','9240YkcFIg','Dataset\x20alias\x20from\x20api.ts\x20(resolves\x20to\x20dataset\x20code\x20automatically)','compress','nextAction','fieldCount','Actually\x20execute\x20the\x20generation.\x20Without\x20this\x20flag,\x20only\x20a\x20dry-run\x20preview\x20is\x20shown.','This\x20command\x20always\x20generates\x20a\x20DATA_LIST\x20page\x20from\x20a\x20dataset.','appCode','3273522rioKUI','8667ZTMFIL','code','page\x20generate-start\x20does\x20not\x20accept\x20--page-pattern.','taskId','message','clientOperationId','status','page\x20generate-start\x20does\x20not\x20accept\x20--page-type.','821224bxevSZ','precheck','write','Reusing\x20an\x20existing\x20generate\x20task','string','DATA_LIST','generate-start','reused','page-pattern','14IOwTEu','apply','dataset','name','number','operationId','8724HWTcQo','related-pages-fallback','currentStep','4916315uxnaCW','/smartapi/lovrabet/dataset/','180kuMlnh','1jjfVdx','27462sysUHk'];a157_0x37ec=function(){return _0x656730;};return a157_0x37ec();}import{APPCODE_FLAG_OPTIONAL,DATASETCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{assessGenerateOperationState,assessDataListPageState,buildPageGenerateOperationStatusQueryCommand,buildDataListPageStatusQueryCommand,createPageGenerateClientOperationId,getUndeletedRelatedPages,loadDatasetDetailForPage,loadDataListPageStatusForGenerate,serializeDryRunDescription,validateDatasetSelector}from'../../commands/page/shared.js';import{startGenerateDataListPages}from'../../core/api-client.js';function a157_0x2540(_0x5d091b,_0x5675ad){_0x5d091b=_0x5d091b-0x1c7;const _0x37ec46=a157_0x37ec();let _0x25400f=_0x37ec46[_0x5d091b];return _0x25400f;}export const pageGenerateStart={'service':'page','command':a157_0x5e2a72(0x1e2),'description':a157_0x5e2a72(0x1c8),'risk':a157_0x5e2a72(0x1de),'defaultOutputFormat':a157_0x5e2a72(0x1cd),'rejectedFlags':[{'name':'page-type','message':a157_0x5e2a72(0x1db),'hint':a157_0x5e2a72(0x1d1)},{'name':a157_0x5e2a72(0x1e4),'message':a157_0x5e2a72(0x1d6),'hint':'DATA_LIST\x20currently\x20has\x20one\x20fixed\x20pattern:\x20CRUD_PAGE_SET.'}],'flags':[APPCODE_FLAG_OPTIONAL,DATASETCODE_FLAG_OPTIONAL,{'name':'alias','type':a157_0x5e2a72(0x1e0),'description':a157_0x5e2a72(0x1cc)},{'name':a157_0x5e2a72(0x1e6),'type':'boolean','description':a157_0x5e2a72(0x1d0)}],async 'validate'(_0x16be3c){validateDatasetSelector(_0x16be3c);},async 'dryRun'(_0x3770a0){const _0x50ac8b=a157_0x5e2a72,_0x4e715a=await prepare(_0x3770a0);return{'method':'POST','url':_0x50ac8b(0x1ef)+_0x4e715a['dataset'][_0x50ac8b(0x1d5)]+_0x50ac8b(0x1c9),'body':{'appCode':_0x3770a0['appCode'],'clientOperationId':_0x4e715a[_0x50ac8b(0x1d9)]},'description':serializeDryRunDescription({'dataset':{'id':_0x4e715a[_0x50ac8b(0x1e7)]['id'],'code':_0x4e715a[_0x50ac8b(0x1e7)]['code'],'name':_0x4e715a['dataset'][_0x50ac8b(0x1e8)],'fieldCount':_0x4e715a['dataset'][_0x50ac8b(0x1cf)]},'precheckSource':_0x4e715a['dataListPageStatus']?.['source']??_0x50ac8b(0x1ec),'action':'generate-start','clientOperationId':_0x4e715a['clientOperationId'],'plannedStatus':_0x4e715a[_0x50ac8b(0x1dd)]['status'],'reason':_0x4e715a[_0x50ac8b(0x1dd)][_0x50ac8b(0x1d8)]})};},async 'execute'(_0x3a2140){const _0x3d60bd=a157_0x5e2a72;if(!_0x3a2140[_0x3d60bd(0x1c7)](_0x3d60bd(0x1e6))){const _0x10254d=await pageGenerateStart['dryRun'](_0x3a2140);return{'ok':!![],'message':'Dry-run\x20preview\x20(pass\x20--apply\x20to\x20execute\x20the\x20generation)','data':_0x10254d};}const _0x3b3c8a=await prepare(_0x3a2140);if(!_0x3b3c8a[_0x3d60bd(0x1dd)]['allowGenerate'])return{'ok':![],'message':_0x3b3c8a[_0x3d60bd(0x1dd)][_0x3d60bd(0x1d8)],'data':{'datasetCode':_0x3b3c8a[_0x3d60bd(0x1e7)]['code'],'pageType':_0x3d60bd(0x1e1),'pagePattern':'CRUD_PAGE_SET','clientOperationId':_0x3b3c8a[_0x3d60bd(0x1d9)],'precheckSource':_0x3b3c8a['dataListPageStatus']?.['source']??_0x3d60bd(0x1ec),'status':_0x3b3c8a[_0x3d60bd(0x1dd)][_0x3d60bd(0x1da)],'manualResolutionRequired':_0x3b3c8a['precheck']['manualResolutionRequired'],'nextAction':_0x3b3c8a[_0x3d60bd(0x1dd)][_0x3d60bd(0x1ce)],'query':{'command':buildDataListPageStatusQueryCommand(_0x3b3c8a[_0x3d60bd(0x1e7)][_0x3d60bd(0x1d5)],_0x3a2140[_0x3d60bd(0x1d2)])},'dataListPageStatus':_0x3b3c8a['dataListPageStatus']}};const _0xc32b66=await startGenerateDataListPages(_0x3a2140['appCode'],_0x3b3c8a[_0x3d60bd(0x1e7)][_0x3d60bd(0x1d5)],{'clientOperationId':_0x3b3c8a[_0x3d60bd(0x1d9)]}),_0x2b1ab1=_0xc32b66[_0x3d60bd(0x1da)]===_0x3d60bd(0x1ca)||_0xc32b66['status']==='PARTIAL_SUCCESS'?await loadDataListPageStatusForGenerate(_0x3a2140,_0x3b3c8a[_0x3d60bd(0x1e7)][_0x3d60bd(0x1d5)]):null,_0x273115=assessGenerateOperationState(_0x3b3c8a[_0x3d60bd(0x1e7)]['code'],_0xc32b66[_0x3d60bd(0x1da)],_0x2b1ab1);return{'ok':!![],'message':_0xc32b66[_0x3d60bd(0x1e3)]?_0x3d60bd(0x1df):'Submitted\x20a\x20generate\x20task','data':{'datasetCode':_0x3b3c8a[_0x3d60bd(0x1e7)][_0x3d60bd(0x1d5)],'appCode':_0x3a2140[_0x3d60bd(0x1d2)],'pageType':_0x3d60bd(0x1e1),'pagePattern':'CRUD_PAGE_SET','taskId':_0xc32b66[_0x3d60bd(0x1d7)]??null,'operationId':_0xc32b66[_0x3d60bd(0x1ea)]??null,'clientOperationId':_0x3b3c8a[_0x3d60bd(0x1d9)],'jobStatus':_0xc32b66[_0x3d60bd(0x1da)]??null,'progressRate':typeof _0xc32b66['progressRate']===_0x3d60bd(0x1e9)?_0xc32b66['progressRate']:null,'currentStep':_0xc32b66[_0x3d60bd(0x1ed)]??null,'reused':_0xc32b66['reused']===!![],'status':_0x273115[_0x3d60bd(0x1da)],'manualResolutionRequired':_0x273115['manualResolutionRequired'],'nextAction':_0x273115[_0x3d60bd(0x1ce)],'query':{'command':buildPageGenerateOperationStatusQueryCommand(_0x3b3c8a[_0x3d60bd(0x1e7)][_0x3d60bd(0x1d5)],{'appCode':_0x3a2140[_0x3d60bd(0x1d2)],'taskId':_0xc32b66[_0x3d60bd(0x1d7)],'operationId':_0xc32b66[_0x3d60bd(0x1ea)],'clientOperationId':_0x3b3c8a['clientOperationId']})},'dataListPageStatus':_0x2b1ab1}};}};async function prepare(_0x2350a1){const _0x5c4371=a157_0x5e2a72,_0x5c68cb=await loadDatasetDetailForPage(_0x2350a1),_0x36f92c=await loadDataListPageStatusForGenerate(_0x2350a1,_0x5c68cb[_0x5c4371(0x1d5)]),_0x52d8fc=getUndeletedRelatedPages(_0x5c68cb);return{'dataset':_0x5c68cb,'dataListPageStatus':_0x36f92c,'clientOperationId':createPageGenerateClientOperationId(),'precheck':assessDataListPageState(_0x5c68cb[_0x5c4371(0x1d5)],_0x36f92c,{'fallbackUndeletedPages':_0x52d8fc})};}
1
+ const a170_0x41d9aa=a170_0x46ab;(function(_0x5e006c,_0x4fb537){const _0x259c8f=a170_0x46ab,_0x440e70=_0x5e006c();while(!![]){try{const _0x4a565c=parseInt(_0x259c8f(0xfe))/0x1*(-parseInt(_0x259c8f(0x103))/0x2)+parseInt(_0x259c8f(0xf5))/0x3*(-parseInt(_0x259c8f(0xe1))/0x4)+parseInt(_0x259c8f(0xe2))/0x5+-parseInt(_0x259c8f(0xf6))/0x6*(-parseInt(_0x259c8f(0x102))/0x7)+parseInt(_0x259c8f(0xe0))/0x8+-parseInt(_0x259c8f(0xe4))/0x9*(parseInt(_0x259c8f(0xdd))/0xa)+parseInt(_0x259c8f(0xf2))/0xb*(-parseInt(_0x259c8f(0x10a))/0xc);if(_0x4a565c===_0x4fb537)break;else _0x440e70['push'](_0x440e70['shift']());}catch(_0xc250ab){_0x440e70['push'](_0x440e70['shift']());}}}(a170_0x6cee,0x893bb));import{APPCODE_FLAG_OPTIONAL,DATASETCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{assessGenerateOperationState,assessDataListPageState,buildPageGenerateOperationStatusQueryCommand,buildDataListPageStatusQueryCommand,createPageGenerateClientOperationId,getUndeletedRelatedPages,loadDatasetDetailForPage,loadDataListPageStatusForGenerate,serializeDryRunDescription,validateDatasetSelector}from'../../commands/page/shared.js';function a170_0x46ab(_0x2f523f,_0x4f6549){_0x2f523f=_0x2f523f-0xdc;const _0x6ceed9=a170_0x6cee();let _0x46ab0c=_0x6ceed9[_0x2f523f];return _0x46ab0c;}import{startGenerateDataListPages}from'../../core/api-client.js';export const pageGenerateStart={'service':'page','command':a170_0x41d9aa(0x10f),'description':a170_0x41d9aa(0xed),'risk':a170_0x41d9aa(0xfa),'defaultOutputFormat':a170_0x41d9aa(0xff),'rejectedFlags':[{'name':a170_0x41d9aa(0x106),'message':a170_0x41d9aa(0xe9),'hint':a170_0x41d9aa(0xf4)},{'name':a170_0x41d9aa(0x105),'message':a170_0x41d9aa(0xe5),'hint':a170_0x41d9aa(0xde)}],'flags':[APPCODE_FLAG_OPTIONAL,DATASETCODE_FLAG_OPTIONAL,{'name':a170_0x41d9aa(0x10e),'type':a170_0x41d9aa(0xe3),'description':a170_0x41d9aa(0x104)},{'name':'apply','type':a170_0x41d9aa(0xeb),'description':'Actually\x20execute\x20the\x20generation.\x20Without\x20this\x20flag,\x20only\x20a\x20dry-run\x20preview\x20is\x20shown.'}],async 'validate'(_0x30f3e1){validateDatasetSelector(_0x30f3e1);},async 'dryRun'(_0x2f311b){const _0x27b048=a170_0x41d9aa,_0xeeb805=await prepare(_0x2f311b);return{'method':_0x27b048(0x115),'url':_0x27b048(0xe6)+_0xeeb805[_0x27b048(0x112)][_0x27b048(0xec)]+_0x27b048(0xe7),'body':{'appCode':_0x2f311b[_0x27b048(0xdf)],'clientOperationId':_0xeeb805[_0x27b048(0xf1)]},'description':serializeDryRunDescription({'dataset':{'id':_0xeeb805['dataset']['id'],'code':_0xeeb805[_0x27b048(0x112)][_0x27b048(0xec)],'name':_0xeeb805[_0x27b048(0x112)][_0x27b048(0xfb)],'fieldCount':_0xeeb805[_0x27b048(0x112)][_0x27b048(0xee)]},'precheckSource':_0xeeb805['dataListPageStatus']?.['source']??_0x27b048(0x101),'action':_0x27b048(0x10f),'clientOperationId':_0xeeb805['clientOperationId'],'plannedStatus':_0xeeb805[_0x27b048(0x111)][_0x27b048(0x10b)],'reason':_0xeeb805[_0x27b048(0x111)][_0x27b048(0xea)]})};},async 'execute'(_0x4b91cd){const _0x3d2bbb=a170_0x41d9aa;if(!_0x4b91cd['bool'](_0x3d2bbb(0x109))){const _0x484b84=await pageGenerateStart[_0x3d2bbb(0xfc)](_0x4b91cd);return{'ok':!![],'message':_0x3d2bbb(0x10c),'data':_0x484b84};}const _0xc7d6c1=await prepare(_0x4b91cd);if(!_0xc7d6c1[_0x3d2bbb(0x111)][_0x3d2bbb(0xef)])return{'ok':![],'message':_0xc7d6c1[_0x3d2bbb(0x111)][_0x3d2bbb(0xea)],'data':{'datasetCode':_0xc7d6c1['dataset'][_0x3d2bbb(0xec)],'pageType':_0x3d2bbb(0x107),'pagePattern':_0x3d2bbb(0xf0),'clientOperationId':_0xc7d6c1['clientOperationId'],'precheckSource':_0xc7d6c1['dataListPageStatus']?.[_0x3d2bbb(0x100)]??_0x3d2bbb(0x101),'status':_0xc7d6c1[_0x3d2bbb(0x111)]['status'],'manualResolutionRequired':_0xc7d6c1[_0x3d2bbb(0x111)]['manualResolutionRequired'],'nextAction':_0xc7d6c1['precheck'][_0x3d2bbb(0xf8)],'query':{'command':buildDataListPageStatusQueryCommand(_0xc7d6c1['dataset']['code'],_0x4b91cd[_0x3d2bbb(0xdf)])},'dataListPageStatus':_0xc7d6c1['dataListPageStatus']}};const _0x2e6da5=await startGenerateDataListPages(_0x4b91cd[_0x3d2bbb(0xdf)],_0xc7d6c1[_0x3d2bbb(0x112)][_0x3d2bbb(0xec)],{'clientOperationId':_0xc7d6c1[_0x3d2bbb(0xf1)]}),_0x466299=_0x2e6da5['status']===_0x3d2bbb(0xf9)||_0x2e6da5[_0x3d2bbb(0x10b)]===_0x3d2bbb(0x10d)?await loadDataListPageStatusForGenerate(_0x4b91cd,_0xc7d6c1[_0x3d2bbb(0x112)]['code']):null,_0x3259cc=assessGenerateOperationState(_0xc7d6c1[_0x3d2bbb(0x112)][_0x3d2bbb(0xec)],_0x2e6da5['status'],_0x466299);return{'ok':!![],'message':_0x2e6da5[_0x3d2bbb(0xfd)]?_0x3d2bbb(0xe8):_0x3d2bbb(0x114),'data':{'datasetCode':_0xc7d6c1['dataset'][_0x3d2bbb(0xec)],'appCode':_0x4b91cd[_0x3d2bbb(0xdf)],'pageType':_0x3d2bbb(0x107),'pagePattern':_0x3d2bbb(0xf0),'taskId':_0x2e6da5[_0x3d2bbb(0x108)]??null,'operationId':_0x2e6da5[_0x3d2bbb(0xf3)]??null,'clientOperationId':_0xc7d6c1['clientOperationId'],'jobStatus':_0x2e6da5[_0x3d2bbb(0x10b)]??null,'progressRate':typeof _0x2e6da5[_0x3d2bbb(0xf7)]===_0x3d2bbb(0xdc)?_0x2e6da5[_0x3d2bbb(0xf7)]:null,'currentStep':_0x2e6da5[_0x3d2bbb(0x113)]??null,'reused':_0x2e6da5[_0x3d2bbb(0xfd)]===!![],'status':_0x3259cc[_0x3d2bbb(0x10b)],'manualResolutionRequired':_0x3259cc[_0x3d2bbb(0x110)],'nextAction':_0x3259cc[_0x3d2bbb(0xf8)],'query':{'command':buildPageGenerateOperationStatusQueryCommand(_0xc7d6c1[_0x3d2bbb(0x112)]['code'],{'appCode':_0x4b91cd[_0x3d2bbb(0xdf)],'taskId':_0x2e6da5[_0x3d2bbb(0x108)],'operationId':_0x2e6da5[_0x3d2bbb(0xf3)],'clientOperationId':_0xc7d6c1[_0x3d2bbb(0xf1)]})},'dataListPageStatus':_0x466299}};}};async function prepare(_0x26a3ed){const _0xd9bde7=a170_0x41d9aa,_0x292bf6=await loadDatasetDetailForPage(_0x26a3ed),_0x2b157c=await loadDataListPageStatusForGenerate(_0x26a3ed,_0x292bf6['code']),_0x3f1b4e=getUndeletedRelatedPages(_0x292bf6);return{'dataset':_0x292bf6,'dataListPageStatus':_0x2b157c,'clientOperationId':createPageGenerateClientOperationId(),'precheck':assessDataListPageState(_0x292bf6[_0xd9bde7(0xec)],_0x2b157c,{'fallbackUndeletedPages':_0x3f1b4e})};}function a170_0x6cee(){const _0x4a2fc1=['number','4423890ValHBn','DATA_LIST\x20currently\x20has\x20one\x20fixed\x20pattern:\x20CRUD_PAGE_SET.','appCode','7340576WhrwPY','336oBuDch','621870eroReG','string','9XuxRFy','page\x20generate-start\x20does\x20not\x20accept\x20--page-pattern.','/smartapi/lovrabet/dataset/','/generate-standard-pages/start','Reusing\x20an\x20existing\x20generate\x20task','page\x20generate-start\x20does\x20not\x20accept\x20--page-type.','message','boolean','code','Start\x20async\x20Data\x20List\x20Page\x20generation\x20from\x20a\x20dataset','fieldCount','allowGenerate','CRUD_PAGE_SET','clientOperationId','77MGwSpo','operationId','This\x20command\x20always\x20generates\x20a\x20DATA_LIST\x20page\x20from\x20a\x20dataset.','25341jVbRAx','6DLtzpb','progressRate','nextAction','SUCCESS','write','name','dryRun','reused','857FqPyCS','compress','source','related-pages-fallback','6756736QhmEyQ','222LSKUKR','Dataset\x20alias\x20from\x20api.ts\x20(resolves\x20to\x20dataset\x20code\x20automatically)','page-pattern','page-type','DATA_LIST','taskId','apply','339468MLVoUq','status','Dry-run\x20preview\x20(pass\x20--apply\x20to\x20execute\x20the\x20generation)','PARTIAL_SUCCESS','alias','generate-start','manualResolutionRequired','precheck','dataset','currentStep','Submitted\x20a\x20generate\x20task','POST'];a170_0x6cee=function(){return _0x4a2fc1;};return a170_0x6cee();}