@lovrabet/rabetbase-cli 2.4.6-beta.1 → 2.4.6-beta.2

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 (298) hide show
  1. package/lib/api/api-doc.js +1 -1
  2. package/lib/api/fetch-model-list.js +1 -1
  3. package/lib/api/generate-api-file.js +1 -1
  4. package/lib/auth/auth-server-ui.js +1 -1
  5. package/lib/auth/auth-server.js +1 -1
  6. package/lib/auth/constant.js +1 -1
  7. package/lib/auth/get-cookie.js +1 -1
  8. package/lib/auth/get-session-user.js +1 -1
  9. package/lib/auth/is-session-valid.js +1 -1
  10. package/lib/auth/login-success-html.js +1 -1
  11. package/lib/auth/logout.js +1 -1
  12. package/lib/cli-flags.js +1 -1
  13. package/lib/cli.js +1 -1
  14. package/lib/commands/api/generate.js +1 -1
  15. package/lib/commands/api/index.js +1 -1
  16. package/lib/commands/api/list.js +1 -1
  17. package/lib/commands/api/pull.js +1 -1
  18. package/lib/commands/api/shared.js +1 -1
  19. package/lib/commands/app/index.js +1 -1
  20. package/lib/commands/app/list.js +1 -1
  21. package/lib/commands/app/members-list.js +1 -1
  22. package/lib/commands/app/remote-directory.js +1 -1
  23. package/lib/commands/app/shared.js +1 -1
  24. package/lib/commands/app-config/delete.js +1 -1
  25. package/lib/commands/app-config/get.js +1 -1
  26. package/lib/commands/app-config/index.js +1 -1
  27. package/lib/commands/app-config/list.js +1 -1
  28. package/lib/commands/app-config/set.js +1 -1
  29. package/lib/commands/app-config/shared.js +1 -1
  30. package/lib/commands/auth/index.js +1 -1
  31. package/lib/commands/bff/create.js +1 -1
  32. package/lib/commands/bff/delete.js +1 -1
  33. package/lib/commands/bff/detail.js +1 -1
  34. package/lib/commands/bff/index.js +1 -1
  35. package/lib/commands/bff/list.js +1 -1
  36. package/lib/commands/bff/pull.js +1 -1
  37. package/lib/commands/bff/push.js +1 -1
  38. package/lib/commands/bff/status.js +1 -1
  39. package/lib/commands/cli-skill/index.js +1 -1
  40. package/lib/commands/cli-update.js +1 -1
  41. package/lib/commands/codegen/index.js +1 -1
  42. package/lib/commands/codegen/sdk.js +1 -1
  43. package/lib/commands/codegen/sql.js +1 -1
  44. package/lib/commands/common/app-registry.js +1 -1
  45. package/lib/commands/common/app-selector.js +1 -1
  46. package/lib/commands/common/async-task.js +1 -1
  47. package/lib/commands/common/dry-run.js +1 -1
  48. package/lib/commands/common/flags.js +1 -1
  49. package/lib/commands/common/local-file.js +1 -1
  50. package/lib/commands/common/validate.js +1 -1
  51. package/lib/commands/config/get.js +1 -1
  52. package/lib/commands/config/index.js +1 -1
  53. package/lib/commands/config/list.js +1 -1
  54. package/lib/commands/config/set.js +1 -1
  55. package/lib/commands/config/shared.js +1 -1
  56. package/lib/commands/data/filter.js +1 -1
  57. package/lib/commands/data/getOne.js +1 -1
  58. package/lib/commands/data/index.js +1 -1
  59. package/lib/commands/data/shared.js +1 -1
  60. package/lib/commands/dataset/business-group-update.js +1 -1
  61. package/lib/commands/dataset/business-groups.js +1 -1
  62. package/lib/commands/dataset/capability.js +1 -1
  63. package/lib/commands/dataset/delete.js +1 -1
  64. package/lib/commands/dataset/detail.js +1 -1
  65. package/lib/commands/dataset/extend-update.js +1 -1
  66. package/lib/commands/dataset/field-update.js +1 -1
  67. package/lib/commands/dataset/generate.js +1 -1
  68. package/lib/commands/dataset/index.js +1 -1
  69. package/lib/commands/dataset/list.js +1 -1
  70. package/lib/commands/dataset/operations.js +1 -1
  71. package/lib/commands/dataset/relation-audit.js +1 -1
  72. package/lib/commands/dataset/relation-create.js +1 -1
  73. package/lib/commands/dataset/relation-delete.js +1 -1
  74. package/lib/commands/dataset/relation-shared.js +1 -1
  75. package/lib/commands/dataset/relation-update.js +1 -1
  76. package/lib/commands/dataset/relations.js +1 -1
  77. package/lib/commands/dataset/rename.js +1 -1
  78. package/lib/commands/dataset/restore.js +1 -1
  79. package/lib/commands/db/analysis-batching.js +1 -1
  80. package/lib/commands/db/analyze-batch-plan.js +1 -1
  81. package/lib/commands/db/analyze-cancel.js +1 -1
  82. package/lib/commands/db/analyze-start.js +1 -1
  83. package/lib/commands/db/analyze-status.js +1 -1
  84. package/lib/commands/db/create.js +1 -1
  85. package/lib/commands/db/delete.js +1 -1
  86. package/lib/commands/db/detail.js +1 -1
  87. package/lib/commands/db/diff-refresh-start.js +1 -1
  88. package/lib/commands/db/diff-refresh-status.js +1 -1
  89. package/lib/commands/db/diff.js +1 -1
  90. package/lib/commands/db/index.js +1 -1
  91. package/lib/commands/db/list.js +1 -1
  92. package/lib/commands/db/shared.js +1 -1
  93. package/lib/commands/db/tables.js +1 -1
  94. package/lib/commands/db/test.js +1 -1
  95. package/lib/commands/db/update.js +1 -1
  96. package/lib/commands/doctor.js +1 -1
  97. package/lib/commands/file/index.js +1 -1
  98. package/lib/commands/init/index.js +1 -1
  99. package/lib/commands/issue/index.js +1 -1
  100. package/lib/commands/issue/nudge.js +1 -1
  101. package/lib/commands/issue/report.js +1 -1
  102. package/lib/commands/issue/shared.js +1 -1
  103. package/lib/commands/kb/create.js +1 -1
  104. package/lib/commands/kb/delete.js +1 -1
  105. package/lib/commands/kb/detail.js +1 -1
  106. package/lib/commands/kb/index.js +1 -1
  107. package/lib/commands/kb/list.js +1 -1
  108. package/lib/commands/kb/shared.js +1 -1
  109. package/lib/commands/kb/update.js +1 -1
  110. package/lib/commands/logs/index.js +1 -1
  111. package/lib/commands/menu/asset-update.js +1 -1
  112. package/lib/commands/menu/delete.js +1 -1
  113. package/lib/commands/menu/external-link-create.js +1 -1
  114. package/lib/commands/menu/external-link-update.js +1 -1
  115. package/lib/commands/menu/group-create.js +1 -1
  116. package/lib/commands/menu/group-update.js +1 -1
  117. package/lib/commands/menu/index.js +1 -1
  118. package/lib/commands/menu/list.js +1 -1
  119. package/lib/commands/menu/move.js +1 -1
  120. package/lib/commands/menu/regroup-start.js +1 -1
  121. package/lib/commands/menu/rename.js +1 -1
  122. package/lib/commands/menu/shared/compare-table.js +1 -1
  123. package/lib/commands/menu/shared/delete-plan.js +1 -1
  124. package/lib/commands/menu/shared/facts.js +1 -1
  125. package/lib/commands/menu/shared/index.js +1 -1
  126. package/lib/commands/menu/shared/inquirer.js +1 -1
  127. package/lib/commands/menu/shared/local-pages.js +1 -1
  128. package/lib/commands/menu/shared/logic.js +1 -1
  129. package/lib/commands/menu/shared/mutations.d.ts +8 -7
  130. package/lib/commands/menu/shared/mutations.js +1 -1
  131. package/lib/commands/menu/shared/service.js +1 -1
  132. package/lib/commands/menu/shared/sync-core.js +1 -1
  133. package/lib/commands/menu/shared/types.d.ts +17 -2
  134. package/lib/commands/menu/shared/update-core.js +1 -1
  135. package/lib/commands/menu/shared/valid-url.js +1 -1
  136. package/lib/commands/menu/sync.js +1 -1
  137. package/lib/commands/menu/visibility-update.d.ts +2 -0
  138. package/lib/commands/menu/visibility-update.js +1 -0
  139. package/lib/commands/notification/config-create.js +1 -1
  140. package/lib/commands/notification/config-delete.js +1 -1
  141. package/lib/commands/notification/config-list.js +1 -1
  142. package/lib/commands/notification/config-update.js +1 -1
  143. package/lib/commands/notification/index.js +1 -1
  144. package/lib/commands/notification/shared.js +1 -1
  145. package/lib/commands/ocr/index.js +1 -1
  146. package/lib/commands/page/create.js +1 -1
  147. package/lib/commands/page/custom/detail.js +1 -1
  148. package/lib/commands/page/custom/list.js +1 -1
  149. package/lib/commands/page/custom/publish.js +1 -1
  150. package/lib/commands/page/custom/shared.js +1 -1
  151. package/lib/commands/page/custom/syntax.js +1 -1
  152. package/lib/commands/page/custom/template.js +1 -1
  153. package/lib/commands/page/custom/update.js +1 -1
  154. package/lib/commands/page/data-list-status.js +1 -1
  155. package/lib/commands/page/generate-start.js +1 -1
  156. package/lib/commands/page/generate-status.js +1 -1
  157. package/lib/commands/page/index.js +1 -1
  158. package/lib/commands/page/pull.js +1 -1
  159. package/lib/commands/page/push.js +1 -1
  160. package/lib/commands/page/relation-audit.js +1 -1
  161. package/lib/commands/page/restore.js +1 -1
  162. package/lib/commands/page/shared.js +1 -1
  163. package/lib/commands/page/sync.js +1 -1
  164. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  165. package/lib/commands/project/create/format-elapsed.js +1 -1
  166. package/lib/commands/project/create/main.js +1 -1
  167. package/lib/commands/project/create/materialize-project-template.js +1 -1
  168. package/lib/commands/project/create/project-name.js +1 -1
  169. package/lib/commands/project/create/project-template-archive.js +1 -1
  170. package/lib/commands/project/create/project-template-path.js +1 -1
  171. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  172. package/lib/commands/project/create/use-format-code.js +1 -1
  173. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  174. package/lib/commands/project/index.js +1 -1
  175. package/lib/commands/project/upgrade.js +1 -1
  176. package/lib/commands/registry.js +1 -1
  177. package/lib/commands/role/delete.js +1 -1
  178. package/lib/commands/role/detail.js +1 -1
  179. package/lib/commands/role/index.js +1 -1
  180. package/lib/commands/role/list.js +1 -1
  181. package/lib/commands/role/shared.js +1 -1
  182. package/lib/commands/role/update.js +1 -1
  183. package/lib/commands/role/user-add.js +1 -1
  184. package/lib/commands/role/user-remove.js +1 -1
  185. package/lib/commands/role/user-resolve.js +1 -1
  186. package/lib/commands/run/index.js +1 -1
  187. package/lib/commands/schema.js +1 -1
  188. package/lib/commands/sql/create.js +1 -1
  189. package/lib/commands/sql/delete.js +1 -1
  190. package/lib/commands/sql/detail.js +1 -1
  191. package/lib/commands/sql/exec.js +1 -1
  192. package/lib/commands/sql/index.js +1 -1
  193. package/lib/commands/sql/list.js +1 -1
  194. package/lib/commands/sql/pull.js +1 -1
  195. package/lib/commands/sql/push.js +1 -1
  196. package/lib/commands/sql/shared.js +1 -1
  197. package/lib/commands/sql/status.js +1 -1
  198. package/lib/commands/sql/validate.js +1 -1
  199. package/lib/commands/task/index.js +1 -1
  200. package/lib/commands/task/status.js +1 -1
  201. package/lib/commands/tenant/index.js +1 -1
  202. package/lib/commands/tenant/members-list.js +1 -1
  203. package/lib/commands/tenant/shared.js +1 -1
  204. package/lib/commands/user-account/dingding-sandbox-bind.js +1 -1
  205. package/lib/commands/user-account/index.js +1 -1
  206. package/lib/commands/workspace/add.js +1 -1
  207. package/lib/commands/workspace/index.js +1 -1
  208. package/lib/commands/workspace/remove.js +1 -1
  209. package/lib/config/schema.js +1 -1
  210. package/lib/constant/cdn.js +1 -1
  211. package/lib/constant/cli.js +1 -1
  212. package/lib/constant/defaults.js +1 -1
  213. package/lib/constant/domain.js +1 -1
  214. package/lib/constant/env.js +1 -1
  215. package/lib/constant/output.js +1 -1
  216. package/lib/constant/paths.js +1 -1
  217. package/lib/constant/risk.js +1 -1
  218. package/lib/context/app-resolver.js +1 -1
  219. package/lib/context/auth-resolver.js +1 -1
  220. package/lib/context/config-loader.js +1 -1
  221. package/lib/context.js +1 -1
  222. package/lib/core/alias-resolver.js +1 -1
  223. package/lib/core/api-client.js +1 -1
  224. package/lib/core/bff/config.js +1 -1
  225. package/lib/core/bff/file-system.js +1 -1
  226. package/lib/core/bff/hash.js +1 -1
  227. package/lib/core/bff/lock.js +1 -1
  228. package/lib/core/bff/utils.js +1 -1
  229. package/lib/core/db-resolver.js +1 -1
  230. package/lib/core/page/file-system.js +1 -1
  231. package/lib/core/page/hash.js +1 -1
  232. package/lib/core/page/lock.js +1 -1
  233. package/lib/core/sql-index-auditor.js +1 -1
  234. package/lib/core/sql-sync/config.js +1 -1
  235. package/lib/core/sql-sync/file-system.js +1 -1
  236. package/lib/core/sql-sync/hash.js +1 -1
  237. package/lib/core/sql-sync/lock.js +1 -1
  238. package/lib/core/sql-sync/utils.js +1 -1
  239. package/lib/core/sql-validator.js +1 -1
  240. package/lib/errors.js +1 -1
  241. package/lib/framework/build-all-flags.js +1 -1
  242. package/lib/framework/error-output.js +1 -1
  243. package/lib/framework/explicit-yes.js +1 -1
  244. package/lib/framework/flags.js +1 -1
  245. package/lib/framework/help.js +1 -1
  246. package/lib/framework/index.js +1 -1
  247. package/lib/framework/output.js +1 -1
  248. package/lib/framework/response.js +1 -1
  249. package/lib/framework/runner-alias.js +1 -1
  250. package/lib/framework/runner.js +1 -1
  251. package/lib/framework/schema-export.js +1 -1
  252. package/lib/framework/types.js +1 -1
  253. package/lib/generated/build-info.d.ts +4 -4
  254. package/lib/generated/build-info.js +1 -1
  255. package/lib/help.js +1 -1
  256. package/lib/postinstall.js +1 -1
  257. package/lib/runtime/confirmation.js +1 -1
  258. package/lib/runtime/event.js +1 -1
  259. package/lib/runtime/index.js +1 -1
  260. package/lib/runtime/queue.js +1 -1
  261. package/lib/runtime/resolve.js +1 -1
  262. package/lib/skills/builtin-skill.js +1 -1
  263. package/lib/skills/main.js +1 -1
  264. package/lib/skills/npx-skills-add.js +1 -1
  265. package/lib/skills/skill-presence.js +1 -1
  266. package/lib/telemetry/cli-command-trace.js +1 -1
  267. package/lib/telemetry/cli-help-trace.js +1 -1
  268. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  269. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  270. package/lib/telemetry/send-cli-trace-log.js +1 -1
  271. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  272. package/lib/utils/ai_config.js +1 -1
  273. package/lib/utils/apply-jq-filter.js +1 -1
  274. package/lib/utils/cdn-config.js +1 -1
  275. package/lib/utils/check-sdk-version.js +1 -1
  276. package/lib/utils/cli-version-check.js +1 -1
  277. package/lib/utils/cli-version-policy.js +1 -1
  278. package/lib/utils/config.js +1 -1
  279. package/lib/utils/entity-with-id.js +1 -1
  280. package/lib/utils/file-utils.js +1 -1
  281. package/lib/utils/guides-cdn.js +1 -1
  282. package/lib/utils/http-client.js +1 -1
  283. package/lib/utils/is-non-interactive.js +1 -1
  284. package/lib/utils/logger.js +1 -1
  285. package/lib/utils/params.js +1 -1
  286. package/lib/utils/platform.js +1 -1
  287. package/lib/utils/rules-cdn.js +1 -1
  288. package/lib/utils/sleep.js +1 -1
  289. package/lib/utils/template-replacer.js +1 -1
  290. package/lib/utils/update-notice.js +1 -1
  291. package/lib/utils/version.js +1 -1
  292. package/lib/utils/with-active-cookie.js +1 -1
  293. package/lib/utils/write-cli-side-channel.js +1 -1
  294. package/package.json +1 -1
  295. package/skills/rabetbase/SKILL.md +3 -2
  296. package/skills/rabetbase/references/rabetbase-menu-list.md +3 -1
  297. package/skills/rabetbase/references/rabetbase-menu-visibility-update.md +59 -0
  298. package/skills/rabetbase.manifest.json +4 -3
@@ -1 +1 @@
1
- const a140_0x3c8ca0=a140_0x19a2;(function(_0x541fed,_0x200543){const _0x57b74e=a140_0x19a2,_0x394e58=_0x541fed();while(!![]){try{const _0x25c89c=parseInt(_0x57b74e(0x1bb))/0x1+-parseInt(_0x57b74e(0x1fe))/0x2+parseInt(_0x57b74e(0x1e1))/0x3+parseInt(_0x57b74e(0x1d6))/0x4+parseInt(_0x57b74e(0x21e))/0x5*(-parseInt(_0x57b74e(0x21c))/0x6)+-parseInt(_0x57b74e(0x1c6))/0x7*(-parseInt(_0x57b74e(0x1f4))/0x8)+-parseInt(_0x57b74e(0x1ca))/0x9;if(_0x25c89c===_0x200543)break;else _0x394e58['push'](_0x394e58['shift']());}catch(_0x1edd55){_0x394e58['push'](_0x394e58['shift']());}}}(a140_0x2f32,0xdade0));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','FEISHU',a140_0x3c8ca0(0x1be),'WECOM',a140_0x3c8ca0(0x1b3)];export const DEFAULT_NOTIFICATION_CONNECT_TIMEOUT=0x1388;export const DEFAULT_NOTIFICATION_READ_TIMEOUT=0x2710;const ALLOWED_INPUT_FIELDS=new Set(['configName',a140_0x3c8ca0(0x222),a140_0x3c8ca0(0x1ac),'channelConfig',a140_0x3c8ca0(0x1cd),a140_0x3c8ca0(0x21d),'readTimeout']),FORBIDDEN_IDENTITY_FIELDS=new Set(['id',a140_0x3c8ca0(0x214),a140_0x3c8ca0(0x1ef),a140_0x3c8ca0(0x1cf)]),EMAIL_RECIPIENT_FIELDS=new Set([a140_0x3c8ca0(0x1d1),'recipients','ccList','bccList',a140_0x3c8ca0(0x1f2),a140_0x3c8ca0(0x207),'fromName','to','cc']);export const NOTIFICATION_INPUT_FLAGS=[{'name':a140_0x3c8ca0(0x1de),'type':a140_0x3c8ca0(0x1cb),'required':![],'description':a140_0x3c8ca0(0x1f8)},{'name':a140_0x3c8ca0(0x21b),'type':'boolean','required':![],'default':![],'description':a140_0x3c8ca0(0x1e9)},{'name':a140_0x3c8ca0(0x1b8),'type':a140_0x3c8ca0(0x1cb),'required':![],'description':a140_0x3c8ca0(0x1ae)}];export const NOTIFICATION_ID_FLAG={'name':'id','type':a140_0x3c8ca0(0x1d5),'required':!![],'description':a140_0x3c8ca0(0x1f5)};export const NOTIFICATION_APP_FLAG=APPCODE_FLAG_OPTIONAL;export function notificationError(_0x317879,_0x3f6ab1,_0x1a19b9){return new CliError(_0x317879,0x1,_0x3f6ab1,_0x1a19b9);}export function readNotificationId(_0x2cb583){const _0x58a029=a140_0x3c8ca0,_0x491c41=_0x2cb583[_0x58a029(0x20f)]('id');if(!Number['isSafeInteger'](_0x491c41)||_0x491c41<=0x0)throw notificationError(_0x58a029(0x1f6),_0x58a029(0x204));return _0x491c41;}export function requireNotificationExplicitYes(_0x41b6fc){const _0x169be6=a140_0x3c8ca0;if(_0x41b6fc['bool'](_0x169be6(0x211))||_0x41b6fc['bool'](_0x169be6(0x20a)))return;throw notificationError(_0x169be6(0x1f7),_0x169be6(0x1c3),_0x169be6(0x1eb));}export function readNotificationChannelType(_0x2a2485,_0x35dd0f='type',_0x10678a=a140_0x3c8ca0(0x1ea)){const _0x9b4c0a=a140_0x3c8ca0,_0x2eec5b=_0x2a2485[_0x9b4c0a(0x1e7)](_0x35dd0f)[_0x9b4c0a(0x1c8)]()||_0x10678a;if(!NOTIFICATION_CHANNEL_TYPES[_0x9b4c0a(0x200)](_0x2eec5b))throw CliErrors['validation'](_0x9b4c0a(0x1fd)+_0x35dd0f+':\x20'+_0x2eec5b,_0x9b4c0a(0x1bf)+NOTIFICATION_CHANNEL_TYPES['join'](',\x20')+'.');return _0x2eec5b;}export function assertSingleNotificationSource(_0x1c0661){const _0x2c5be2=a140_0x3c8ca0,_0x35218e=[],_0x4a0ed9=_0x1c0661[_0x2c5be2(0x1e7)](_0x2c5be2(0x1de))[_0x2c5be2(0x1c8)]();if(_0x4a0ed9)_0x35218e[_0x2c5be2(0x1bd)]({'kind':_0x2c5be2(0x1de),'path':_0x4a0ed9});if(_0x1c0661[_0x2c5be2(0x215)](_0x2c5be2(0x21b)))_0x35218e[_0x2c5be2(0x1bd)]({'kind':_0x2c5be2(0x21b)});const _0x27778c=_0x1c0661['str'](_0x2c5be2(0x1b8))[_0x2c5be2(0x1c8)]();if(_0x27778c)_0x35218e['push']({'kind':_0x2c5be2(0x1b5),'name':_0x27778c});if(_0x35218e['length']===0x0)throw CliErrors[_0x2c5be2(0x1c5)](_0x2c5be2(0x1b7),'Use\x20exactly\x20one\x20of\x20--file\x20<path>,\x20--stdin,\x20or\x20--from-env\x20<NAME>.');if(_0x35218e[_0x2c5be2(0x202)]>0x1)throw CliErrors[_0x2c5be2(0x1c5)]('Notification\x20JSON\x20source\x20is\x20ambiguous.','Use\x20exactly\x20one\x20of\x20--file\x20<path>,\x20--stdin,\x20or\x20--from-env\x20<NAME>.');return _0x35218e[0x0];}export async function readNotificationDocument(_0x1275ad,_0x456b56){const _0x19d70d=a140_0x3c8ca0,_0x177952=assertSingleNotificationSource(_0x1275ad),_0x23b8bb=_0x177952[_0x19d70d(0x1d9)]===_0x19d70d(0x1de)?_0x19d70d(0x1e4)+_0x177952[_0x19d70d(0x1ab)]:_0x177952[_0x19d70d(0x1d9)]===_0x19d70d(0x1b5)?_0x19d70d(0x1f3)+_0x177952[_0x19d70d(0x1ba)]:_0x19d70d(0x21b);let _0x53d85d;try{if(_0x177952[_0x19d70d(0x1d9)]===_0x19d70d(0x1de))_0x53d85d=await readFile(_0x177952[_0x19d70d(0x1ab)],'utf8');else{if(_0x177952[_0x19d70d(0x1d9)]===_0x19d70d(0x1b5)){if(!(_0x177952[_0x19d70d(0x1ba)]in process.env))throw notificationError(_0x19d70d(0x220),_0x19d70d(0x1d0)+_0x177952[_0x19d70d(0x1ba)]);_0x53d85d=process.env[_0x177952.name]??'';}else _0x53d85d=await readStdin();}}catch(_0x27320d){if(_0x27320d instanceof CliError)throw _0x27320d;throw notificationError('notification_config_source_unavailable',_0x19d70d(0x1b6)+_0x23b8bb+'.');}let _0x2db8d8;try{_0x2db8d8=JSON['parse'](_0x53d85d);}catch{throw notificationError(_0x19d70d(0x223),_0x19d70d(0x1af)+_0x23b8bb+_0x19d70d(0x203),_0x19d70d(0x1b1));}if(!isJsonObject(_0x2db8d8))throw notificationError(_0x19d70d(0x223),_0x19d70d(0x1af)+_0x23b8bb+_0x19d70d(0x1a7));return validateNotificationDocument(_0x2db8d8,_0x456b56);}export function projectNotificationListConfig(_0x58033a,_0xa05cea){const _0x495b9b=a140_0x3c8ca0;return{'id':typeof _0x58033a['id']===_0x495b9b(0x1d5)?_0x58033a['id']:null,'configCode':requireResponseString(_0x58033a['configCode'],_0x495b9b(0x1ef),_0xa05cea),'configName':requireResponseString(_0x58033a[_0x495b9b(0x1c0)],_0x495b9b(0x1c0),_0xa05cea),'channelType':requireResponseString(_0x58033a[_0x495b9b(0x222)],'channelType',_0xa05cea),'description':normalizeNullableString(_0x58033a[_0x495b9b(0x1cd)]),'createTime':normalizeNullableString(_0x58033a['createTime']),'updateTime':normalizeNullableString(_0x58033a[_0x495b9b(0x1bc)])};}export function normalizeExactNotificationConfig(_0x3edae5,_0x40fa3d,_0x2beee4){const _0x1e6a2c=a140_0x3c8ca0;if(!Number[_0x1e6a2c(0x1d8)](_0x3edae5['id'])||_0x3edae5['id']!==_0x40fa3d)throw notificationError('notification_config_response_invalid','Notification\x20config\x20detail\x20did\x20not\x20contain\x20the\x20requested\x20ID\x20'+_0x40fa3d+'.');if(_0x3edae5[_0x1e6a2c(0x214)]!==_0x2beee4)throw notificationError(_0x1e6a2c(0x20d),_0x1e6a2c(0x1e5)+_0x40fa3d+'\x20does\x20not\x20belong\x20to\x20the\x20resolved\x20app.');const _0x579e41=requireExactString(_0x3edae5['configName'],_0x1e6a2c(0x1c0),_0x40fa3d),_0x5f4f5f=requireExactString(_0x3edae5[_0x1e6a2c(0x1ef)],_0x1e6a2c(0x1ef),_0x40fa3d),_0x17798c=requireExactString(_0x3edae5[_0x1e6a2c(0x222)],_0x1e6a2c(0x222),_0x40fa3d);if(!NOTIFICATION_CHANNEL_TYPES[_0x1e6a2c(0x200)](_0x17798c))throw notificationError(_0x1e6a2c(0x20d),_0x1e6a2c(0x1e5)+_0x40fa3d+_0x1e6a2c(0x1cc));const _0x33d6b8=responseNullableString(_0x3edae5['endpointUrl'],_0x1e6a2c(0x1ac),_0x40fa3d),_0x53b299=responseNullableString(_0x3edae5[_0x1e6a2c(0x1c2)],_0x1e6a2c(0x1c2),_0x40fa3d),_0x512f68=responseNullableString(_0x3edae5['description'],'description',_0x40fa3d),_0x28b51c=responseNullableTimeout(_0x3edae5[_0x1e6a2c(0x21d)],_0x1e6a2c(0x21d),_0x40fa3d),_0x1ffd20=responseNullableTimeout(_0x3edae5[_0x1e6a2c(0x216)],_0x1e6a2c(0x216),_0x40fa3d);return{'id':_0x40fa3d,'appCode':_0x2beee4,'configCode':_0x5f4f5f,'configName':_0x579e41,'channelType':_0x17798c,'endpointUrl':redactSensitive(_0x33d6b8),'channelConfig':redactSensitive(_0x53b299),'description':_0x512f68,'connectTimeout':_0x28b51c,'readTimeout':_0x1ffd20,'endpointUrlRaw':_0x33d6b8,'channelConfigRaw':_0x53b299};}export async function requireExactNotificationConfig(_0x19f666,_0x3d7456,_0x2b7348){const _0x40be2c=a140_0x3c8ca0;let _0x306b3a;try{_0x306b3a=await getNotificationChannelConfig(_0x3d7456,_0x19f666);}catch{throw safeApiFailure(_0x2b7348,_0x40be2c(0x1a9),_0x40be2c(0x1e8)+_0x19f666+_0x40be2c(0x1df));}return normalizeExactNotificationConfig(_0x306b3a,_0x3d7456,_0x19f666);}export function projectNotificationConfig(_0x401eb3){const _0xd7503a=a140_0x3c8ca0;return{'id':_0x401eb3['id']??null,'appCode':_0x401eb3[_0xd7503a(0x214)],'configCode':_0x401eb3[_0xd7503a(0x1ef)]??null,'configName':_0x401eb3[_0xd7503a(0x1c0)],'channelType':_0x401eb3['channelType'],'endpointUrl':redactSensitive(_0x401eb3[_0xd7503a(0x1ac)]),'channelConfig':redactSensitive(_0x401eb3[_0xd7503a(0x1c2)]),'description':_0x401eb3['description']??null,'connectTimeout':_0x401eb3['connectTimeout']??null,'readTimeout':_0x401eb3[_0xd7503a(0x216)]??null};}export function notificationSelector(_0x5eaf08){const _0x159f45=a140_0x3c8ca0;return{'appCode':_0x5eaf08[_0x159f45(0x214)],'id':_0x5eaf08['id'],'configCode':_0x5eaf08['configCode'],'configName':_0x5eaf08['configName'],'channelType':_0x5eaf08['channelType']};}export function createMutationInput(_0x25abef,_0x3ecb00){const _0x5b2fe5=a140_0x3c8ca0;return{'appCode':_0x25abef,'configName':_0x3ecb00[_0x5b2fe5(0x1c0)],'channelType':_0x3ecb00[_0x5b2fe5(0x222)],...hasOwn(_0x3ecb00,_0x5b2fe5(0x1ac))?{'endpointUrl':_0x3ecb00[_0x5b2fe5(0x1ac)]}:{},...hasOwn(_0x3ecb00,'channelConfig')?{'channelConfig':serializeChannelConfig(_0x3ecb00[_0x5b2fe5(0x1c2)])}:{},...hasOwn(_0x3ecb00,_0x5b2fe5(0x1cd))?{'description':_0x3ecb00[_0x5b2fe5(0x1cd)]}:{},...hasOwn(_0x3ecb00,_0x5b2fe5(0x21d))?{'connectTimeout':_0x3ecb00['connectTimeout']}:{},...hasOwn(_0x3ecb00,_0x5b2fe5(0x216))?{'readTimeout':_0x3ecb00['readTimeout']}:{}};}export function mergeUpdateInput(_0xc54431,_0x3aeeed){const _0x5688b1=a140_0x3c8ca0;return{'id':_0xc54431['id'],'appCode':_0xc54431[_0x5688b1(0x214)],'configName':_0x3aeeed[_0x5688b1(0x1c0)]??_0xc54431[_0x5688b1(0x1c0)],'channelType':_0x3aeeed[_0x5688b1(0x222)]??_0xc54431[_0x5688b1(0x222)],'endpointUrl':hasOwn(_0x3aeeed,_0x5688b1(0x1ac))?_0x3aeeed['endpointUrl']:_0xc54431[_0x5688b1(0x21f)],'channelConfig':hasOwn(_0x3aeeed,_0x5688b1(0x1c2))?serializeChannelConfig(_0x3aeeed['channelConfig']):_0xc54431[_0x5688b1(0x1b4)],'description':hasOwn(_0x3aeeed,'description')?_0x3aeeed[_0x5688b1(0x1cd)]:_0xc54431[_0x5688b1(0x1cd)],'connectTimeout':hasOwn(_0x3aeeed,_0x5688b1(0x21d))?_0x3aeeed[_0x5688b1(0x21d)]:_0xc54431[_0x5688b1(0x21d)],'readTimeout':hasOwn(_0x3aeeed,'readTimeout')?_0x3aeeed[_0x5688b1(0x216)]:_0xc54431['readTimeout']};}export function plannedUpdateProjection(_0x4d2e7a,_0x46ec32){const _0x4a837e=a140_0x3c8ca0;return projectNotificationConfig({'id':_0x4d2e7a['id'],'appCode':_0x4d2e7a['appCode'],'configCode':_0x4d2e7a[_0x4a837e(0x1ef)],'configName':_0x46ec32[_0x4a837e(0x1c0)]??_0x4d2e7a[_0x4a837e(0x1c0)],'channelType':_0x46ec32[_0x4a837e(0x222)]??_0x4d2e7a[_0x4a837e(0x222)],'endpointUrl':hasOwn(_0x46ec32,'endpointUrl')?_0x46ec32[_0x4a837e(0x1ac)]:_0x4d2e7a['endpointUrlRaw'],'channelConfig':hasOwn(_0x46ec32,'channelConfig')?_0x46ec32[_0x4a837e(0x1c2)]:_0x4d2e7a[_0x4a837e(0x1b4)],'description':hasOwn(_0x46ec32,'description')?_0x46ec32['description']:_0x4d2e7a['description'],'connectTimeout':hasOwn(_0x46ec32,_0x4a837e(0x21d))?_0x46ec32['connectTimeout']??DEFAULT_NOTIFICATION_CONNECT_TIMEOUT:_0x4d2e7a[_0x4a837e(0x21d)],'readTimeout':hasOwn(_0x46ec32,'readTimeout')?_0x46ec32[_0x4a837e(0x216)]??DEFAULT_NOTIFICATION_READ_TIMEOUT:_0x4d2e7a[_0x4a837e(0x216)]});}function a140_0x19a2(_0x5c4180,_0x33f39a){_0x5c4180=_0x5c4180-0x1a7;const _0x2f325b=a140_0x2f32();let _0x19a214=_0x2f325b[_0x5c4180];return _0x19a214;}export function requestedSafeFieldsMatch(_0x2a5518,_0xb488fd,_0x44e81f){const _0x44c94d=a140_0x3c8ca0,_0x53aa64=[],_0x5e82ae=[],_0x3f01da=[];for(const _0x41c3fc of[_0x44c94d(0x1c0),_0x44c94d(0x222),'description']){if(!hasOwn(_0x44e81f,_0x41c3fc))continue;_0x3f01da[_0x44c94d(0x1bd)](_0x41c3fc),_0x53aa64[_0x44c94d(0x1bd)](_0xb488fd[_0x41c3fc]===_0x44e81f[_0x41c3fc]),_0x5e82ae[_0x44c94d(0x1bd)](_0x2a5518[_0x41c3fc]!==_0x44e81f[_0x41c3fc]&&_0xb488fd[_0x41c3fc]===_0x44e81f[_0x41c3fc]);}for(const _0x830647 of[_0x44c94d(0x21d),_0x44c94d(0x216)]){if(!hasOwn(_0x44e81f,_0x830647))continue;const _0x1ea4e7=_0x44e81f[_0x830647]??(_0x830647===_0x44c94d(0x21d)?DEFAULT_NOTIFICATION_CONNECT_TIMEOUT:DEFAULT_NOTIFICATION_READ_TIMEOUT);_0x3f01da[_0x44c94d(0x1bd)](_0x830647),_0x53aa64[_0x44c94d(0x1bd)](_0xb488fd[_0x830647]===_0x1ea4e7),_0x5e82ae[_0x44c94d(0x1bd)](_0x2a5518[_0x830647]!==_0x1ea4e7&&_0xb488fd[_0x830647]===_0x1ea4e7);}return hasOwn(_0x44e81f,'endpointUrl')&&_0x44e81f[_0x44c94d(0x1ac)]===null&&(_0x3f01da[_0x44c94d(0x1bd)](_0x44c94d(0x1f0)),_0x53aa64[_0x44c94d(0x1bd)](_0xb488fd[_0x44c94d(0x21f)]===null||_0xb488fd[_0x44c94d(0x21f)]===''),_0x5e82ae[_0x44c94d(0x1bd)](_0x2a5518[_0x44c94d(0x21f)]!==null&&_0x2a5518[_0x44c94d(0x21f)]!==''&&(_0xb488fd['endpointUrlRaw']===null||_0xb488fd[_0x44c94d(0x21f)]===''))),{'allMatch':_0x53aa64['every'](Boolean),'provesChange':_0x5e82ae[_0x44c94d(0x20b)](Boolean),'verifiedFields':_0x3f01da};}export function validateNotificationDeleteReadback(_0x81448b,_0x46e504,_0x2b0de2){const _0x2c2970=a140_0x3c8ca0;for(const [_0x29be5e,_0x4a4f5b]of _0x81448b[_0x2c2970(0x219)]()){if(!Number['isSafeInteger'](_0x4a4f5b['id'])||_0x4a4f5b['id']<=0x0)throw notificationError(_0x2c2970(0x20d),_0x2c2970(0x21a)+(_0x29be5e+0x1)+_0x2c2970(0x1d7));if(_0x4a4f5b[_0x2c2970(0x214)]!==_0x46e504)throw notificationError('notification_config_response_invalid',_0x2c2970(0x21a)+(_0x29be5e+0x1)+_0x2c2970(0x1b0));if(_0x4a4f5b[_0x2c2970(0x222)]!==_0x2b0de2)throw notificationError('notification_config_response_invalid','Notification\x20config\x20list\x20item\x20'+(_0x29be5e+0x1)+_0x2c2970(0x1db));}}export function safeApiFailure(_0x441c6e,_0x4707a0,_0x144fb7){const _0x93d661=a140_0x3c8ca0;return notificationError(_0x93d661(0x1fb)+_0x441c6e+'_'+(_0x4707a0===_0x93d661(0x1f9)?_0x93d661(0x1e3):_0x4707a0+_0x93d661(0x1f1)),_0x93d661(0x1e5)+_0x441c6e+'\x20'+_0x4707a0+'\x20failed.',_0x144fb7);}export function notificationLookupCommand(_0xda5bdb,_0x1f9210){const _0x4e9160=a140_0x3c8ca0;return _0x4e9160(0x208)+_0xda5bdb+_0x4e9160(0x1da)+_0x1f9210+_0x4e9160(0x1d2);}function validateNotificationDocument(_0x5e4c6d,_0x404756){const _0x1d7a66=a140_0x3c8ca0;for(const _0x2ff412 of Object['keys'](_0x5e4c6d)){if(FORBIDDEN_IDENTITY_FIELDS[_0x1d7a66(0x213)](_0x2ff412))throw notificationError(_0x1d7a66(0x205),'Notification\x20JSON\x20field\x20\x22'+_0x2ff412+_0x1d7a66(0x217));if(!ALLOWED_INPUT_FIELDS[_0x1d7a66(0x213)](_0x2ff412))throw notificationError(_0x1d7a66(0x1dd),_0x1d7a66(0x1aa)+_0x2ff412+'\x22.');}if(_0x404756===_0x1d7a66(0x1ad)&&Object['keys'](_0x5e4c6d)[_0x1d7a66(0x202)]===0x0)throw notificationError(_0x1d7a66(0x20e),'Update\x20JSON\x20must\x20contain\x20at\x20least\x20one\x20allowed\x20field.');const _0x179742={};if(hasOwn(_0x5e4c6d,_0x1d7a66(0x1c0)))_0x179742[_0x1d7a66(0x1c0)]=validateRequiredString(_0x5e4c6d['configName'],_0x1d7a66(0x1c0),0x80);else{if(_0x404756==='create')throw notificationError(_0x1d7a66(0x1d4),_0x1d7a66(0x212)+_0x1d7a66(0x1c4));}if(hasOwn(_0x5e4c6d,_0x1d7a66(0x222))){if(typeof _0x5e4c6d[_0x1d7a66(0x222)]!=='string')throw invalidFieldType(_0x1d7a66(0x222),_0x1d7a66(0x1e2));const _0x2d5586=_0x5e4c6d[_0x1d7a66(0x222)]['trim']();if(!NOTIFICATION_CHANNEL_TYPES[_0x1d7a66(0x200)](_0x2d5586))throw notificationError(_0x1d7a66(0x1e6),_0x1d7a66(0x1ee),_0x1d7a66(0x1bf)+NOTIFICATION_CHANNEL_TYPES[_0x1d7a66(0x1c9)](',\x20')+'.');_0x179742['channelType']=_0x2d5586;}else{if(_0x404756===_0x1d7a66(0x210))throw notificationError(_0x1d7a66(0x1d4),_0x1d7a66(0x212)+'\x22channelType\x22.');}for(const [_0x3b243a,_0x535b06]of[[_0x1d7a66(0x1ac),0x200],[_0x1d7a66(0x1cd),0x100]]){if(!hasOwn(_0x5e4c6d,_0x3b243a))continue;const _0x6567b=_0x5e4c6d[_0x3b243a];if(_0x6567b!==null&&typeof _0x6567b!==_0x1d7a66(0x1cb))throw invalidFieldType(_0x3b243a,_0x1d7a66(0x1c7));if(typeof _0x6567b===_0x1d7a66(0x1cb)&&_0x6567b[_0x1d7a66(0x202)]>_0x535b06)throw notificationError(_0x1d7a66(0x1e6),'Notification\x20JSON\x20field\x20\x22'+_0x3b243a+_0x1d7a66(0x1fa)+_0x535b06+_0x1d7a66(0x1dc));_0x179742[_0x3b243a]=_0x6567b;}if(hasOwn(_0x5e4c6d,_0x1d7a66(0x1c2))){const _0x5d6259=_0x5e4c6d[_0x1d7a66(0x1c2)];if(_0x5d6259===null&&_0x404756===_0x1d7a66(0x210))throw invalidFieldType('channelConfig',_0x1d7a66(0x1e0));if(_0x5d6259!==null&&!isJsonObject(_0x5d6259))throw invalidFieldType('channelConfig',_0x404756===_0x1d7a66(0x1ad)?_0x1d7a66(0x1ff):_0x1d7a66(0x1e0));_0x5d6259!==null&&validateChannelConfigFields(_0x179742[_0x1d7a66(0x222)],_0x5d6259),_0x179742[_0x1d7a66(0x1c2)]=_0x5d6259;}for(const _0x5627c8 of[_0x1d7a66(0x21d),_0x1d7a66(0x216)]){if(!hasOwn(_0x5e4c6d,_0x5627c8))continue;const _0x3e9acc=_0x5e4c6d[_0x5627c8];if(_0x3e9acc!==null&&(!Number[_0x1d7a66(0x1d8)](_0x3e9acc)||_0x3e9acc<0x0))throw notificationError(_0x1d7a66(0x1e6),_0x1d7a66(0x20c)+_0x5627c8+_0x1d7a66(0x1ec));_0x179742[_0x5627c8]=_0x3e9acc;}return _0x179742;}function validateRequiredString(_0x423926,_0x5d642b,_0x368d08){const _0xb86a76=a140_0x3c8ca0;if(typeof _0x423926!==_0xb86a76(0x1cb))throw invalidFieldType(_0x5d642b,_0xb86a76(0x221));const _0x5f1bd3=_0x423926[_0xb86a76(0x1c8)]();if(!_0x5f1bd3)throw notificationError(_0xb86a76(0x1e6),_0xb86a76(0x20c)+_0x5d642b+_0xb86a76(0x1a8));if(_0x5f1bd3[_0xb86a76(0x202)]>_0x368d08)throw notificationError(_0xb86a76(0x1e6),_0xb86a76(0x20c)+_0x5d642b+_0xb86a76(0x1fa)+_0x368d08+'\x20characters.');return _0x5f1bd3;}function validateChannelConfigFields(_0x29c73a,_0x168a82){const _0x5bbca2=a140_0x3c8ca0;if(hasOwn(_0x168a82,_0x5bbca2(0x224)))throw forbiddenChannelConfigField(_0x5bbca2(0x224));if(_0x29c73a===_0x5bbca2(0x1ea))for(const _0x654cab of EMAIL_RECIPIENT_FIELDS){if(hasOwn(_0x168a82,_0x654cab))throw forbiddenChannelConfigField(_0x654cab);}}function forbiddenChannelConfigField(_0x9dd557){const _0x526556=a140_0x3c8ca0;return notificationError('notification_config_channel_field_forbidden',_0x526556(0x1ed)+_0x9dd557+'\x22\x20is\x20forbidden.');}function invalidFieldType(_0x1979c6,_0x5f5b34){const _0x6fb4e4=a140_0x3c8ca0;return notificationError(_0x6fb4e4(0x1e6),_0x6fb4e4(0x20c)+_0x1979c6+'\x22\x20must\x20be\x20'+_0x5f5b34+'.');}function a140_0x2f32(){const _0x3ceae4=['notification_config_response_invalid','notification_config_update_empty','num','create','dry-run','Create\x20JSON\x20requires\x20field\x20','has','appCode','bool','readTimeout','\x22\x20is\x20controlled\x20by\x20the\x20CLI\x20or\x20server\x20and\x20is\x20forbidden.','apiError','entries','Notification\x20config\x20list\x20item\x20','stdin','5802MaCuOw','connectTimeout','4315frzKVo','endpointUrlRaw','notification_config_source_unavailable','a\x20non-empty\x20string','channelType','notification_config_json_invalid','messageTemplate','prototype','\x20must\x20be\x20an\x20object.','\x22\x20must\x20be\x20a\x20non-empty\x20string.','preflight','Unknown\x20notification\x20JSON\x20field\x20\x22','path','endpointUrl','update','Read\x20the\x20notification\x20JSON\x20document\x20from\x20a\x20named\x20environment\x20variable','Notification\x20JSON\x20from\x20','\x20has\x20an\x20invalid\x20appCode.','Provide\x20one\x20valid\x20JSON\x20object;\x20source\x20contents\x20are\x20not\x20included\x20in\x20errors.','call','WEBHOOK','channelConfigRaw','env','Unable\x20to\x20read\x20notification\x20JSON\x20from\x20','Missing\x20notification\x20JSON\x20source.','from-env','\x20has\x20invalid\x20field\x20\x22','name','1603802Xscipb','updateTime','push','DINGTALK','Allowed\x20values:\x20','configName','stringify','channelConfig','This\x20notification\x20config\x20mutation\x20requires\x20explicit\x20--yes.','\x22configName\x22.','validation','14bHXQgW','a\x20string\x20or\x20null','trim','join','7634079dtlRGd','string','\x20has\x20an\x20unsupported\x20channelType.','description','Item\x20','channelCode','Notification\x20JSON\x20environment\x20variable\x20is\x20not\x20set:\x20','emailTargets','\x20--format\x20compress','isArray','notification_config_field_required','number','4835096LgewJU','\x20has\x20an\x20invalid\x20id.','isSafeInteger','kind','\x20--type\x20','\x20has\x20an\x20invalid\x20channelType.','\x20characters.','notification_config_field_unknown','file','\x20--type\x20<CHANNEL_TYPE>\x20--format\x20compress;\x20no\x20mutation\x20was\x20submitted.','a\x20JSON\x20object','203334SQpKPf','a\x20supported\x20string','failed','file\x20','Notification\x20config\x20','notification_config_field_invalid','str','Inspect\x20with\x20rabetbase\x20notification\x20config-list\x20--appcode\x20','Read\x20the\x20notification\x20JSON\x20document\x20from\x20stdin','EMAIL','Run\x20the\x20command\x20with\x20--dry-run\x20first,\x20then\x20add\x20--yes\x20after\x20reviewing\x20the\x20plan.','\x22\x20must\x20be\x20a\x20non-negative\x20safe\x20integer\x20or\x20null.','Notification\x20JSON\x20channelConfig\x20field\x20\x22','Notification\x20JSON\x20field\x20\x22channelType\x22\x20is\x20unsupported.','configCode','endpointUrl:null','_unavailable','replyTo','environment\x20variable\x20','2586688FjxmpE','Application-level\x20notification\x20config\x20ID','notification_config_id_invalid','notification_config_confirmation_required','Read\x20the\x20notification\x20JSON\x20document\x20from\x20a\x20UTF-8\x20file','mutation','\x22\x20cannot\x20exceed\x20','notification_config_','Invalid\x20notification\x20config\x20response.','Invalid\x20--','1895588XInIym','a\x20JSON\x20object\x20or\x20null','includes','\x20is\x20missing\x20required\x20field\x20\x22','length','\x20is\x20invalid.','--id\x20must\x20be\x20a\x20positive\x20safe\x20integer.','notification_config_field_forbidden','setEncoding','subjectPrefix','rabetbase\x20notification\x20config-list\x20--appcode\x20','hasOwnProperty','yes','some','Notification\x20JSON\x20field\x20\x22'];a140_0x2f32=function(){return _0x3ceae4;};return a140_0x2f32();}function serializeChannelConfig(_0xd756c4){const _0xb9a460=a140_0x3c8ca0;return _0xd756c4===null||_0xd756c4===undefined?null:JSON[_0xb9a460(0x1c1)](_0xd756c4);}function redactSensitive(_0x13fee5){return _0x13fee5===null||_0x13fee5===undefined||_0x13fee5===''?null:'<redacted>';}function requireResponseString(_0x4315f4,_0x44f43f,_0x292fdc){const _0x4fcaf9=a140_0x3c8ca0;if(typeof _0x4315f4!==_0x4fcaf9(0x1cb)||_0x4315f4[_0x4fcaf9(0x1c8)]()==='')throw CliErrors[_0x4fcaf9(0x218)](_0x4fcaf9(0x1fc),_0x4fcaf9(0x1ce)+(_0x292fdc+0x1)+'\x20is\x20missing\x20required\x20field\x20\x22'+_0x44f43f+'\x22.');return _0x4315f4[_0x4fcaf9(0x1c8)]();}function requireExactString(_0x479e8e,_0x4e17d8,_0x21a0b4){const _0x5e18ca=a140_0x3c8ca0;if(typeof _0x479e8e!==_0x5e18ca(0x1cb)||_0x479e8e[_0x5e18ca(0x1c8)]()==='')throw notificationError('notification_config_response_invalid',_0x5e18ca(0x1e5)+_0x21a0b4+_0x5e18ca(0x201)+_0x4e17d8+'\x22.');return _0x479e8e['trim']();}function responseNullableString(_0x5d744d,_0x12953c,_0x37b3fc){const _0x1b83c5=a140_0x3c8ca0;if(_0x5d744d===undefined||_0x5d744d===null)return null;if(typeof _0x5d744d!==_0x1b83c5(0x1cb))throw notificationError(_0x1b83c5(0x20d),_0x1b83c5(0x1e5)+_0x37b3fc+_0x1b83c5(0x1b9)+_0x12953c+'\x22.');return _0x5d744d;}function responseNullableTimeout(_0x54acad,_0x2feada,_0x1677c6){const _0x1a9382=a140_0x3c8ca0;if(_0x54acad===undefined||_0x54acad===null)return null;if(!Number[_0x1a9382(0x1d8)](_0x54acad)||_0x54acad<0x0)throw notificationError('notification_config_response_invalid',_0x1a9382(0x1e5)+_0x1677c6+'\x20has\x20invalid\x20field\x20\x22'+_0x2feada+'\x22.');return _0x54acad;}function normalizeNullableString(_0x456170){const _0x59d54d=a140_0x3c8ca0;return typeof _0x456170===_0x59d54d(0x1cb)?_0x456170:null;}function isJsonObject(_0x1b3127){const _0x557630=a140_0x3c8ca0;return _0x1b3127!==null&&typeof _0x1b3127==='object'&&!Array[_0x557630(0x1d3)](_0x1b3127);}function hasOwn(_0x59e067,_0x541253){const _0x2a65ac=a140_0x3c8ca0;return Object[_0x2a65ac(0x225)][_0x2a65ac(0x209)][_0x2a65ac(0x1b2)](_0x59e067,_0x541253);}async function readStdin(){const _0x3e03a7=a140_0x3c8ca0;let _0x54a308='';process[_0x3e03a7(0x21b)][_0x3e03a7(0x206)]('utf8');for await(const _0x2a721b of process['stdin'])_0x54a308+=_0x2a721b;return _0x54a308;}
1
+ const a141_0x274552=a141_0x3bb8;(function(_0x2d6fc1,_0x265e82){const _0x12d3b2=a141_0x3bb8,_0xe7093c=_0x2d6fc1();while(!![]){try{const _0x1a0b46=-parseInt(_0x12d3b2(0x239))/0x1*(-parseInt(_0x12d3b2(0x20d))/0x2)+-parseInt(_0x12d3b2(0x258))/0x3*(-parseInt(_0x12d3b2(0x225))/0x4)+parseInt(_0x12d3b2(0x22c))/0x5+-parseInt(_0x12d3b2(0x201))/0x6*(-parseInt(_0x12d3b2(0x230))/0x7)+parseInt(_0x12d3b2(0x249))/0x8*(-parseInt(_0x12d3b2(0x21e))/0x9)+parseInt(_0x12d3b2(0x203))/0xa+-parseInt(_0x12d3b2(0x267))/0xb;if(_0x1a0b46===_0x265e82)break;else _0xe7093c['push'](_0xe7093c['shift']());}catch(_0x5ced1a){_0xe7093c['push'](_0xe7093c['shift']());}}}(a141_0x20d3,0x1fe17));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','FEISHU',a141_0x274552(0x218),'WECOM',a141_0x274552(0x22a)];function a141_0x3bb8(_0x20f447,_0xf5e5f0){_0x20f447=_0x20f447-0x1e7;const _0x20d3f6=a141_0x20d3();let _0x3bb86b=_0x20d3f6[_0x20f447];return _0x3bb86b;}export const DEFAULT_NOTIFICATION_CONNECT_TIMEOUT=0x1388;export const DEFAULT_NOTIFICATION_READ_TIMEOUT=0x2710;const ALLOWED_INPUT_FIELDS=new Set([a141_0x274552(0x243),'channelType',a141_0x274552(0x242),a141_0x274552(0x215),a141_0x274552(0x266),a141_0x274552(0x256),a141_0x274552(0x1fd)]),FORBIDDEN_IDENTITY_FIELDS=new Set(['id',a141_0x274552(0x1f6),'configCode',a141_0x274552(0x223)]),EMAIL_RECIPIENT_FIELDS=new Set([a141_0x274552(0x21a),a141_0x274552(0x268),a141_0x274552(0x219),'bccList',a141_0x274552(0x208),a141_0x274552(0x235),a141_0x274552(0x214),'to','cc']);export const NOTIFICATION_INPUT_FLAGS=[{'name':a141_0x274552(0x1f8),'type':'string','required':![],'description':'Read\x20the\x20notification\x20JSON\x20document\x20from\x20a\x20UTF-8\x20file'},{'name':a141_0x274552(0x24d),'type':a141_0x274552(0x200),'required':![],'default':![],'description':a141_0x274552(0x23c)},{'name':a141_0x274552(0x264),'type':a141_0x274552(0x21d),'required':![],'description':a141_0x274552(0x1f5)}];export const NOTIFICATION_ID_FLAG={'name':'id','type':a141_0x274552(0x206),'required':!![],'description':a141_0x274552(0x227)};export const NOTIFICATION_APP_FLAG=APPCODE_FLAG_OPTIONAL;export function notificationError(_0x54423b,_0x2c7658,_0x570458){return new CliError(_0x54423b,0x1,_0x2c7658,_0x570458);}export function readNotificationId(_0xcd10f7){const _0x53d498=a141_0x274552,_0x520324=_0xcd10f7[_0x53d498(0x25a)]('id');if(!Number[_0x53d498(0x24a)](_0x520324)||_0x520324<=0x0)throw notificationError(_0x53d498(0x1eb),_0x53d498(0x1e8));return _0x520324;}export function requireNotificationExplicitYes(_0x3b9f79){const _0x50bcd9=a141_0x274552;if(_0x3b9f79[_0x50bcd9(0x24c)](_0x50bcd9(0x23e))||_0x3b9f79['bool'](_0x50bcd9(0x24b)))return;throw notificationError(_0x50bcd9(0x1fb),_0x50bcd9(0x1f9),'Run\x20the\x20command\x20with\x20--dry-run\x20first,\x20then\x20add\x20--yes\x20after\x20reviewing\x20the\x20plan.');}export function readNotificationChannelType(_0x379889,_0x47a10f=a141_0x274552(0x23d),_0x3067f3=a141_0x274552(0x20e)){const _0x5e7ea8=a141_0x274552,_0x343a69=_0x379889['str'](_0x47a10f)[_0x5e7ea8(0x220)]()||_0x3067f3;if(!NOTIFICATION_CHANNEL_TYPES[_0x5e7ea8(0x262)](_0x343a69))throw CliErrors[_0x5e7ea8(0x1e9)](_0x5e7ea8(0x263)+_0x47a10f+':\x20'+_0x343a69,_0x5e7ea8(0x269)+NOTIFICATION_CHANNEL_TYPES[_0x5e7ea8(0x204)](',\x20')+'.');return _0x343a69;}export function assertSingleNotificationSource(_0x246358){const _0x5e5b08=a141_0x274552,_0x2ed888=[],_0x444428=_0x246358[_0x5e5b08(0x22e)](_0x5e5b08(0x1f8))[_0x5e5b08(0x220)]();if(_0x444428)_0x2ed888['push']({'kind':'file','path':_0x444428});if(_0x246358[_0x5e5b08(0x24c)]('stdin'))_0x2ed888[_0x5e5b08(0x254)]({'kind':_0x5e5b08(0x24d)});const _0x2c86b9=_0x246358[_0x5e5b08(0x22e)](_0x5e5b08(0x264))[_0x5e5b08(0x220)]();if(_0x2c86b9)_0x2ed888[_0x5e5b08(0x254)]({'kind':_0x5e5b08(0x22d),'name':_0x2c86b9});if(_0x2ed888[_0x5e5b08(0x247)]===0x0)throw CliErrors[_0x5e5b08(0x1e9)](_0x5e5b08(0x1f7),_0x5e5b08(0x213));if(_0x2ed888['length']>0x1)throw CliErrors[_0x5e5b08(0x1e9)]('Notification\x20JSON\x20source\x20is\x20ambiguous.',_0x5e5b08(0x213));return _0x2ed888[0x0];}export async function readNotificationDocument(_0x53c7fd,_0x16145e){const _0x40d091=a141_0x274552,_0x3c3e14=assertSingleNotificationSource(_0x53c7fd),_0x43a485=_0x3c3e14[_0x40d091(0x22f)]===_0x40d091(0x1f8)?_0x40d091(0x238)+_0x3c3e14[_0x40d091(0x212)]:_0x3c3e14[_0x40d091(0x22f)]===_0x40d091(0x22d)?_0x40d091(0x240)+_0x3c3e14[_0x40d091(0x233)]:_0x40d091(0x24d);let _0x1abea3;try{if(_0x3c3e14[_0x40d091(0x22f)]===_0x40d091(0x1f8))_0x1abea3=await readFile(_0x3c3e14['path'],_0x40d091(0x26b));else{if(_0x3c3e14[_0x40d091(0x22f)]==='env'){if(!(_0x3c3e14['name']in process.env))throw notificationError(_0x40d091(0x23b),_0x40d091(0x1f3)+_0x3c3e14[_0x40d091(0x233)]);_0x1abea3=process.env[_0x3c3e14.name]??'';}else _0x1abea3=await readStdin();}}catch(_0x36f20c){if(_0x36f20c instanceof CliError)throw _0x36f20c;throw notificationError(_0x40d091(0x23b),_0x40d091(0x250)+_0x43a485+'.');}let _0x141d20;try{_0x141d20=JSON['parse'](_0x1abea3);}catch{throw notificationError(_0x40d091(0x1fc),_0x40d091(0x209)+_0x43a485+_0x40d091(0x221),'Provide\x20one\x20valid\x20JSON\x20object;\x20source\x20contents\x20are\x20not\x20included\x20in\x20errors.');}if(!isJsonObject(_0x141d20))throw notificationError(_0x40d091(0x1fc),_0x40d091(0x209)+_0x43a485+_0x40d091(0x25c));return validateNotificationDocument(_0x141d20,_0x16145e);}export function projectNotificationListConfig(_0xf9c8d,_0x24794d){const _0x532537=a141_0x274552;return{'id':typeof _0xf9c8d['id']===_0x532537(0x206)?_0xf9c8d['id']:null,'configCode':requireResponseString(_0xf9c8d['configCode'],_0x532537(0x20f),_0x24794d),'configName':requireResponseString(_0xf9c8d[_0x532537(0x243)],_0x532537(0x243),_0x24794d),'channelType':requireResponseString(_0xf9c8d[_0x532537(0x23a)],'channelType',_0x24794d),'description':normalizeNullableString(_0xf9c8d[_0x532537(0x266)]),'createTime':normalizeNullableString(_0xf9c8d[_0x532537(0x253)]),'updateTime':normalizeNullableString(_0xf9c8d['updateTime'])};}export function normalizeExactNotificationConfig(_0x4e42f1,_0x181796,_0xdab5d9){const _0xe28703=a141_0x274552;if(!Number['isSafeInteger'](_0x4e42f1['id'])||_0x4e42f1['id']!==_0x181796)throw notificationError(_0xe28703(0x226),_0xe28703(0x241)+_0x181796+'.');if(_0x4e42f1[_0xe28703(0x1f6)]!==_0xdab5d9)throw notificationError(_0xe28703(0x226),_0xe28703(0x205)+_0x181796+_0xe28703(0x251));const _0xee193e=requireExactString(_0x4e42f1['configName'],_0xe28703(0x243),_0x181796),_0x5f584a=requireExactString(_0x4e42f1['configCode'],_0xe28703(0x20f),_0x181796),_0x53f49e=requireExactString(_0x4e42f1['channelType'],'channelType',_0x181796);if(!NOTIFICATION_CHANNEL_TYPES['includes'](_0x53f49e))throw notificationError(_0xe28703(0x226),_0xe28703(0x205)+_0x181796+_0xe28703(0x229));const _0x3e9a2f=responseNullableString(_0x4e42f1[_0xe28703(0x242)],_0xe28703(0x242),_0x181796),_0x1ac6cc=responseNullableString(_0x4e42f1[_0xe28703(0x215)],_0xe28703(0x215),_0x181796),_0x415aca=responseNullableString(_0x4e42f1['description'],_0xe28703(0x266),_0x181796),_0x1eefb5=responseNullableTimeout(_0x4e42f1[_0xe28703(0x256)],_0xe28703(0x256),_0x181796),_0x8e75f4=responseNullableTimeout(_0x4e42f1[_0xe28703(0x1fd)],_0xe28703(0x1fd),_0x181796);return{'id':_0x181796,'appCode':_0xdab5d9,'configCode':_0x5f584a,'configName':_0xee193e,'channelType':_0x53f49e,'endpointUrl':redactSensitive(_0x3e9a2f),'channelConfig':redactSensitive(_0x1ac6cc),'description':_0x415aca,'connectTimeout':_0x1eefb5,'readTimeout':_0x8e75f4,'endpointUrlRaw':_0x3e9a2f,'channelConfigRaw':_0x1ac6cc};}export async function requireExactNotificationConfig(_0x5b665d,_0x553644,_0x5715c5){const _0x55dad2=a141_0x274552;let _0x3ed064;try{_0x3ed064=await getNotificationChannelConfig(_0x553644,_0x5b665d);}catch{throw safeApiFailure(_0x5715c5,_0x55dad2(0x210),_0x55dad2(0x20a)+_0x5b665d+_0x55dad2(0x21c));}return normalizeExactNotificationConfig(_0x3ed064,_0x553644,_0x5b665d);}export function projectNotificationConfig(_0x5a1943){const _0x33383b=a141_0x274552;return{'id':_0x5a1943['id']??null,'appCode':_0x5a1943[_0x33383b(0x1f6)],'configCode':_0x5a1943[_0x33383b(0x20f)]??null,'configName':_0x5a1943[_0x33383b(0x243)],'channelType':_0x5a1943['channelType'],'endpointUrl':redactSensitive(_0x5a1943[_0x33383b(0x242)]),'channelConfig':redactSensitive(_0x5a1943[_0x33383b(0x215)]),'description':_0x5a1943[_0x33383b(0x266)]??null,'connectTimeout':_0x5a1943[_0x33383b(0x256)]??null,'readTimeout':_0x5a1943['readTimeout']??null};}export function notificationSelector(_0x4c4662){const _0xa162f8=a141_0x274552;return{'appCode':_0x4c4662[_0xa162f8(0x1f6)],'id':_0x4c4662['id'],'configCode':_0x4c4662[_0xa162f8(0x20f)],'configName':_0x4c4662['configName'],'channelType':_0x4c4662[_0xa162f8(0x23a)]};}export function createMutationInput(_0x1c79b0,_0x3fed9b){const _0x55322e=a141_0x274552;return{'appCode':_0x1c79b0,'configName':_0x3fed9b[_0x55322e(0x243)],'channelType':_0x3fed9b[_0x55322e(0x23a)],...hasOwn(_0x3fed9b,_0x55322e(0x242))?{'endpointUrl':_0x3fed9b[_0x55322e(0x242)]}:{},...hasOwn(_0x3fed9b,'channelConfig')?{'channelConfig':serializeChannelConfig(_0x3fed9b[_0x55322e(0x215)])}:{},...hasOwn(_0x3fed9b,_0x55322e(0x266))?{'description':_0x3fed9b[_0x55322e(0x266)]}:{},...hasOwn(_0x3fed9b,_0x55322e(0x256))?{'connectTimeout':_0x3fed9b['connectTimeout']}:{},...hasOwn(_0x3fed9b,_0x55322e(0x1fd))?{'readTimeout':_0x3fed9b[_0x55322e(0x1fd)]}:{}};}export function mergeUpdateInput(_0x1e4038,_0x4f761b){const _0x2edf81=a141_0x274552;return{'id':_0x1e4038['id'],'appCode':_0x1e4038[_0x2edf81(0x1f6)],'configName':_0x4f761b[_0x2edf81(0x243)]??_0x1e4038[_0x2edf81(0x243)],'channelType':_0x4f761b[_0x2edf81(0x23a)]??_0x1e4038['channelType'],'endpointUrl':hasOwn(_0x4f761b,_0x2edf81(0x242))?_0x4f761b[_0x2edf81(0x242)]:_0x1e4038[_0x2edf81(0x248)],'channelConfig':hasOwn(_0x4f761b,_0x2edf81(0x215))?serializeChannelConfig(_0x4f761b[_0x2edf81(0x215)]):_0x1e4038[_0x2edf81(0x22b)],'description':hasOwn(_0x4f761b,_0x2edf81(0x266))?_0x4f761b[_0x2edf81(0x266)]:_0x1e4038[_0x2edf81(0x266)],'connectTimeout':hasOwn(_0x4f761b,_0x2edf81(0x256))?_0x4f761b[_0x2edf81(0x256)]:_0x1e4038[_0x2edf81(0x256)],'readTimeout':hasOwn(_0x4f761b,_0x2edf81(0x1fd))?_0x4f761b['readTimeout']:_0x1e4038['readTimeout']};}export function plannedUpdateProjection(_0x3dde8e,_0x5b6734){const _0x1e6c94=a141_0x274552;return projectNotificationConfig({'id':_0x3dde8e['id'],'appCode':_0x3dde8e['appCode'],'configCode':_0x3dde8e[_0x1e6c94(0x20f)],'configName':_0x5b6734[_0x1e6c94(0x243)]??_0x3dde8e[_0x1e6c94(0x243)],'channelType':_0x5b6734[_0x1e6c94(0x23a)]??_0x3dde8e[_0x1e6c94(0x23a)],'endpointUrl':hasOwn(_0x5b6734,_0x1e6c94(0x242))?_0x5b6734[_0x1e6c94(0x242)]:_0x3dde8e['endpointUrlRaw'],'channelConfig':hasOwn(_0x5b6734,_0x1e6c94(0x215))?_0x5b6734[_0x1e6c94(0x215)]:_0x3dde8e[_0x1e6c94(0x22b)],'description':hasOwn(_0x5b6734,_0x1e6c94(0x266))?_0x5b6734[_0x1e6c94(0x266)]:_0x3dde8e[_0x1e6c94(0x266)],'connectTimeout':hasOwn(_0x5b6734,_0x1e6c94(0x256))?_0x5b6734[_0x1e6c94(0x256)]??DEFAULT_NOTIFICATION_CONNECT_TIMEOUT:_0x3dde8e[_0x1e6c94(0x256)],'readTimeout':hasOwn(_0x5b6734,_0x1e6c94(0x1fd))?_0x5b6734['readTimeout']??DEFAULT_NOTIFICATION_READ_TIMEOUT:_0x3dde8e['readTimeout']});}export function requestedSafeFieldsMatch(_0x3b4bf0,_0x45daf9,_0x166162){const _0x4e3b6f=a141_0x274552,_0x2828da=[],_0x34ca6e=[],_0x55cffa=[];for(const _0x2ff133 of['configName','channelType',_0x4e3b6f(0x266)]){if(!hasOwn(_0x166162,_0x2ff133))continue;_0x55cffa[_0x4e3b6f(0x254)](_0x2ff133),_0x2828da['push'](_0x45daf9[_0x2ff133]===_0x166162[_0x2ff133]),_0x34ca6e[_0x4e3b6f(0x254)](_0x3b4bf0[_0x2ff133]!==_0x166162[_0x2ff133]&&_0x45daf9[_0x2ff133]===_0x166162[_0x2ff133]);}for(const _0x34e9a8 of[_0x4e3b6f(0x256),_0x4e3b6f(0x1fd)]){if(!hasOwn(_0x166162,_0x34e9a8))continue;const _0x37d222=_0x166162[_0x34e9a8]??(_0x34e9a8===_0x4e3b6f(0x256)?DEFAULT_NOTIFICATION_CONNECT_TIMEOUT:DEFAULT_NOTIFICATION_READ_TIMEOUT);_0x55cffa[_0x4e3b6f(0x254)](_0x34e9a8),_0x2828da[_0x4e3b6f(0x254)](_0x45daf9[_0x34e9a8]===_0x37d222),_0x34ca6e[_0x4e3b6f(0x254)](_0x3b4bf0[_0x34e9a8]!==_0x37d222&&_0x45daf9[_0x34e9a8]===_0x37d222);}return hasOwn(_0x166162,'endpointUrl')&&_0x166162[_0x4e3b6f(0x242)]===null&&(_0x55cffa[_0x4e3b6f(0x254)](_0x4e3b6f(0x246)),_0x2828da[_0x4e3b6f(0x254)](_0x45daf9['endpointUrlRaw']===null||_0x45daf9[_0x4e3b6f(0x248)]===''),_0x34ca6e[_0x4e3b6f(0x254)](_0x3b4bf0[_0x4e3b6f(0x248)]!==null&&_0x3b4bf0['endpointUrlRaw']!==''&&(_0x45daf9['endpointUrlRaw']===null||_0x45daf9[_0x4e3b6f(0x248)]===''))),{'allMatch':_0x2828da[_0x4e3b6f(0x1f1)](Boolean),'provesChange':_0x34ca6e['some'](Boolean),'verifiedFields':_0x55cffa};}export function validateNotificationDeleteReadback(_0x541f08,_0x37bb20,_0xe45c07){const _0x4b9548=a141_0x274552;for(const [_0x19ab2d,_0x2fd21f]of _0x541f08[_0x4b9548(0x1ea)]()){if(!Number[_0x4b9548(0x24a)](_0x2fd21f['id'])||_0x2fd21f['id']<=0x0)throw notificationError(_0x4b9548(0x226),_0x4b9548(0x202)+(_0x19ab2d+0x1)+'\x20has\x20an\x20invalid\x20id.');if(_0x2fd21f[_0x4b9548(0x1f6)]!==_0x37bb20)throw notificationError(_0x4b9548(0x226),_0x4b9548(0x202)+(_0x19ab2d+0x1)+'\x20has\x20an\x20invalid\x20appCode.');if(_0x2fd21f[_0x4b9548(0x23a)]!==_0xe45c07)throw notificationError(_0x4b9548(0x226),_0x4b9548(0x202)+(_0x19ab2d+0x1)+_0x4b9548(0x24f));}}export function safeApiFailure(_0x4cb77a,_0x1bac69,_0x3e9fe5){const _0x288e24=a141_0x274552;return notificationError(_0x288e24(0x1ec)+_0x4cb77a+'_'+(_0x1bac69==='mutation'?_0x288e24(0x236):_0x1bac69+_0x288e24(0x26a)),'Notification\x20config\x20'+_0x4cb77a+'\x20'+_0x1bac69+'\x20failed.',_0x3e9fe5);}export function notificationLookupCommand(_0xbdf2c0,_0x434f33){const _0x7bf213=a141_0x274552;return _0x7bf213(0x23f)+_0xbdf2c0+_0x7bf213(0x257)+_0x434f33+'\x20--format\x20compress';}function validateNotificationDocument(_0x587e6a,_0x9794bb){const _0x6e2a43=a141_0x274552;for(const _0x2ba866 of Object['keys'](_0x587e6a)){if(FORBIDDEN_IDENTITY_FIELDS[_0x6e2a43(0x21f)](_0x2ba866))throw notificationError(_0x6e2a43(0x1fa),_0x6e2a43(0x25f)+_0x2ba866+'\x22\x20is\x20controlled\x20by\x20the\x20CLI\x20or\x20server\x20and\x20is\x20forbidden.');if(!ALLOWED_INPUT_FIELDS[_0x6e2a43(0x21f)](_0x2ba866))throw notificationError(_0x6e2a43(0x20b),_0x6e2a43(0x1fe)+_0x2ba866+'\x22.');}if(_0x9794bb==='update'&&Object[_0x6e2a43(0x224)](_0x587e6a)[_0x6e2a43(0x247)]===0x0)throw notificationError(_0x6e2a43(0x1ed),_0x6e2a43(0x261));const _0x1dcc81={};if(hasOwn(_0x587e6a,_0x6e2a43(0x243)))_0x1dcc81[_0x6e2a43(0x243)]=validateRequiredString(_0x587e6a[_0x6e2a43(0x243)],_0x6e2a43(0x243),0x80);else{if(_0x9794bb===_0x6e2a43(0x1f2))throw notificationError(_0x6e2a43(0x237),_0x6e2a43(0x25b)+_0x6e2a43(0x234));}if(hasOwn(_0x587e6a,_0x6e2a43(0x23a))){if(typeof _0x587e6a[_0x6e2a43(0x23a)]!==_0x6e2a43(0x21d))throw invalidFieldType(_0x6e2a43(0x23a),_0x6e2a43(0x1f4));const _0x333334=_0x587e6a['channelType'][_0x6e2a43(0x220)]();if(!NOTIFICATION_CHANNEL_TYPES[_0x6e2a43(0x262)](_0x333334))throw notificationError(_0x6e2a43(0x1e7),_0x6e2a43(0x20c),_0x6e2a43(0x269)+NOTIFICATION_CHANNEL_TYPES[_0x6e2a43(0x204)](',\x20')+'.');_0x1dcc81[_0x6e2a43(0x23a)]=_0x333334;}else{if(_0x9794bb===_0x6e2a43(0x1f2))throw notificationError(_0x6e2a43(0x237),'Create\x20JSON\x20requires\x20field\x20'+_0x6e2a43(0x1f0));}for(const [_0x4194ac,_0x40d85d]of[[_0x6e2a43(0x242),0x200],[_0x6e2a43(0x266),0x100]]){if(!hasOwn(_0x587e6a,_0x4194ac))continue;const _0x322db7=_0x587e6a[_0x4194ac];if(_0x322db7!==null&&typeof _0x322db7!==_0x6e2a43(0x21d))throw invalidFieldType(_0x4194ac,_0x6e2a43(0x217));if(typeof _0x322db7==='string'&&_0x322db7[_0x6e2a43(0x247)]>_0x40d85d)throw notificationError(_0x6e2a43(0x1e7),'Notification\x20JSON\x20field\x20\x22'+_0x4194ac+_0x6e2a43(0x255)+_0x40d85d+'\x20characters.');_0x1dcc81[_0x4194ac]=_0x322db7;}if(hasOwn(_0x587e6a,_0x6e2a43(0x215))){const _0x223001=_0x587e6a[_0x6e2a43(0x215)];if(_0x223001===null&&_0x9794bb==='create')throw invalidFieldType(_0x6e2a43(0x215),_0x6e2a43(0x244));if(_0x223001!==null&&!isJsonObject(_0x223001))throw invalidFieldType(_0x6e2a43(0x215),_0x9794bb==='update'?_0x6e2a43(0x245):'a\x20JSON\x20object');_0x223001!==null&&validateChannelConfigFields(_0x1dcc81[_0x6e2a43(0x23a)],_0x223001),_0x1dcc81[_0x6e2a43(0x215)]=_0x223001;}for(const _0x31ffbe of['connectTimeout',_0x6e2a43(0x1fd)]){if(!hasOwn(_0x587e6a,_0x31ffbe))continue;const _0x4b7927=_0x587e6a[_0x31ffbe];if(_0x4b7927!==null&&(!Number[_0x6e2a43(0x24a)](_0x4b7927)||_0x4b7927<0x0))throw notificationError('notification_config_field_invalid',_0x6e2a43(0x25f)+_0x31ffbe+_0x6e2a43(0x21b));_0x1dcc81[_0x31ffbe]=_0x4b7927;}return _0x1dcc81;}function validateRequiredString(_0x2d2d7e,_0x248219,_0x472a75){const _0x433527=a141_0x274552;if(typeof _0x2d2d7e!==_0x433527(0x21d))throw invalidFieldType(_0x248219,'a\x20non-empty\x20string');const _0x501d26=_0x2d2d7e[_0x433527(0x220)]();if(!_0x501d26)throw notificationError(_0x433527(0x1e7),'Notification\x20JSON\x20field\x20\x22'+_0x248219+_0x433527(0x222));if(_0x501d26[_0x433527(0x247)]>_0x472a75)throw notificationError('notification_config_field_invalid',_0x433527(0x25f)+_0x248219+_0x433527(0x255)+_0x472a75+_0x433527(0x265));return _0x501d26;}function validateChannelConfigFields(_0x10a2df,_0x4e174a){const _0x332080=a141_0x274552;if(hasOwn(_0x4e174a,_0x332080(0x207)))throw forbiddenChannelConfigField(_0x332080(0x207));if(_0x10a2df==='EMAIL')for(const _0xa1495e of EMAIL_RECIPIENT_FIELDS){if(hasOwn(_0x4e174a,_0xa1495e))throw forbiddenChannelConfigField(_0xa1495e);}}function forbiddenChannelConfigField(_0x5322f7){const _0x1210e5=a141_0x274552;return notificationError(_0x1210e5(0x211),_0x1210e5(0x1ee)+_0x5322f7+'\x22\x20is\x20forbidden.');}function invalidFieldType(_0x4827f4,_0x20c143){const _0x528a35=a141_0x274552;return notificationError(_0x528a35(0x1e7),_0x528a35(0x25f)+_0x4827f4+_0x528a35(0x231)+_0x20c143+'.');}function serializeChannelConfig(_0x5734af){const _0x5bcaac=a141_0x274552;return _0x5734af===null||_0x5734af===undefined?null:JSON[_0x5bcaac(0x25e)](_0x5734af);}function redactSensitive(_0x471bae){const _0x503668=a141_0x274552;return _0x471bae===null||_0x471bae===undefined||_0x471bae===''?null:_0x503668(0x228);}function requireResponseString(_0x19833a,_0x57dc8d,_0x357974){const _0x3b8021=a141_0x274552;if(typeof _0x19833a!==_0x3b8021(0x21d)||_0x19833a[_0x3b8021(0x220)]()==='')throw CliErrors['apiError'](_0x3b8021(0x252),_0x3b8021(0x259)+(_0x357974+0x1)+_0x3b8021(0x216)+_0x57dc8d+'\x22.');return _0x19833a[_0x3b8021(0x220)]();}function requireExactString(_0x5d40fa,_0x565054,_0x1cac90){const _0x1a9573=a141_0x274552;if(typeof _0x5d40fa!=='string'||_0x5d40fa[_0x1a9573(0x220)]()==='')throw notificationError(_0x1a9573(0x226),_0x1a9573(0x205)+_0x1cac90+'\x20is\x20missing\x20required\x20field\x20\x22'+_0x565054+'\x22.');return _0x5d40fa[_0x1a9573(0x220)]();}function responseNullableString(_0x33faee,_0x304e13,_0x260183){const _0x55cfc3=a141_0x274552;if(_0x33faee===undefined||_0x33faee===null)return null;if(typeof _0x33faee!==_0x55cfc3(0x21d))throw notificationError(_0x55cfc3(0x226),'Notification\x20config\x20'+_0x260183+_0x55cfc3(0x232)+_0x304e13+'\x22.');return _0x33faee;}function a141_0x20d3(){const _0xde3274=['notification_config_id_invalid','notification_config_','notification_config_update_empty','Notification\x20JSON\x20channelConfig\x20field\x20\x22','call','\x22channelType\x22.','every','create','Notification\x20JSON\x20environment\x20variable\x20is\x20not\x20set:\x20','a\x20supported\x20string','Read\x20the\x20notification\x20JSON\x20document\x20from\x20a\x20named\x20environment\x20variable','appCode','Missing\x20notification\x20JSON\x20source.','file','This\x20notification\x20config\x20mutation\x20requires\x20explicit\x20--yes.','notification_config_field_forbidden','notification_config_confirmation_required','notification_config_json_invalid','readTimeout','Unknown\x20notification\x20JSON\x20field\x20\x22','prototype','boolean','96CFrGDQ','Notification\x20config\x20list\x20item\x20','1747230JNytKq','join','Notification\x20config\x20','number','messageTemplate','replyTo','Notification\x20JSON\x20from\x20','Inspect\x20with\x20rabetbase\x20notification\x20config-list\x20--appcode\x20','notification_config_field_unknown','Notification\x20JSON\x20field\x20\x22channelType\x22\x20is\x20unsupported.','28698iPFUFU','EMAIL','configCode','preflight','notification_config_channel_field_forbidden','path','Use\x20exactly\x20one\x20of\x20--file\x20<path>,\x20--stdin,\x20or\x20--from-env\x20<NAME>.','fromName','channelConfig','\x20is\x20missing\x20required\x20field\x20\x22','a\x20string\x20or\x20null','DINGTALK','ccList','emailTargets','\x22\x20must\x20be\x20a\x20non-negative\x20safe\x20integer\x20or\x20null.','\x20--type\x20<CHANNEL_TYPE>\x20--format\x20compress;\x20no\x20mutation\x20was\x20submitted.','string','9LjwjDo','has','trim','\x20is\x20invalid.','\x22\x20must\x20be\x20a\x20non-empty\x20string.','channelCode','keys','7532fPoavZ','notification_config_response_invalid','Application-level\x20notification\x20config\x20ID','<redacted>','\x20has\x20an\x20unsupported\x20channelType.','WEBHOOK','channelConfigRaw','866045tqlJQW','env','str','kind','54110yoNKtv','\x22\x20must\x20be\x20','\x20has\x20invalid\x20field\x20\x22','name','\x22configName\x22.','subjectPrefix','failed','notification_config_field_required','file\x20','10TNdIxV','channelType','notification_config_source_unavailable','Read\x20the\x20notification\x20JSON\x20document\x20from\x20stdin','type','dry-run','rabetbase\x20notification\x20config-list\x20--appcode\x20','environment\x20variable\x20','Notification\x20config\x20detail\x20did\x20not\x20contain\x20the\x20requested\x20ID\x20','endpointUrl','configName','a\x20JSON\x20object','a\x20JSON\x20object\x20or\x20null','endpointUrl:null','length','endpointUrlRaw','1238560ChcGnV','isSafeInteger','yes','bool','stdin','object','\x20has\x20an\x20invalid\x20channelType.','Unable\x20to\x20read\x20notification\x20JSON\x20from\x20','\x20does\x20not\x20belong\x20to\x20the\x20resolved\x20app.','Invalid\x20notification\x20config\x20response.','createTime','push','\x22\x20cannot\x20exceed\x20','connectTimeout','\x20--type\x20','318RIOEnw','Item\x20','num','Create\x20JSON\x20requires\x20field\x20','\x20must\x20be\x20an\x20object.','setEncoding','stringify','Notification\x20JSON\x20field\x20\x22','isArray','Update\x20JSON\x20must\x20contain\x20at\x20least\x20one\x20allowed\x20field.','includes','Invalid\x20--','from-env','\x20characters.','description','5822267epRpQf','recipients','Allowed\x20values:\x20','_unavailable','utf8','notification_config_field_invalid','--id\x20must\x20be\x20a\x20positive\x20safe\x20integer.','validation','entries'];a141_0x20d3=function(){return _0xde3274;};return a141_0x20d3();}function responseNullableTimeout(_0x397c4d,_0x51aeaa,_0x285a2f){const _0x1e185c=a141_0x274552;if(_0x397c4d===undefined||_0x397c4d===null)return null;if(!Number['isSafeInteger'](_0x397c4d)||_0x397c4d<0x0)throw notificationError(_0x1e185c(0x226),_0x1e185c(0x205)+_0x285a2f+_0x1e185c(0x232)+_0x51aeaa+'\x22.');return _0x397c4d;}function normalizeNullableString(_0x3c24d5){const _0x1ab84e=a141_0x274552;return typeof _0x3c24d5===_0x1ab84e(0x21d)?_0x3c24d5:null;}function isJsonObject(_0x405c87){const _0x105826=a141_0x274552;return _0x405c87!==null&&typeof _0x405c87===_0x105826(0x24e)&&!Array[_0x105826(0x260)](_0x405c87);}function hasOwn(_0x38fa28,_0x217549){const _0x30a421=a141_0x274552;return Object[_0x30a421(0x1ff)]['hasOwnProperty'][_0x30a421(0x1ef)](_0x38fa28,_0x217549);}async function readStdin(){const _0x1a2ce5=a141_0x274552;let _0x406b2d='';process['stdin'][_0x1a2ce5(0x25d)](_0x1a2ce5(0x26b));for await(const _0x3832ba of process[_0x1a2ce5(0x24d)])_0x406b2d+=_0x3832ba;return _0x406b2d;}
@@ -1 +1 @@
1
- const a141_0x38a5b6=a141_0xee05;(function(_0x111e06,_0x1b02e9){const _0x4837fd=a141_0xee05,_0x476ffe=_0x111e06();while(!![]){try{const _0x4e3fd8=parseInt(_0x4837fd(0x1a5))/0x1+parseInt(_0x4837fd(0x185))/0x2*(-parseInt(_0x4837fd(0x1b1))/0x3)+parseInt(_0x4837fd(0x192))/0x4+parseInt(_0x4837fd(0x1b0))/0x5*(parseInt(_0x4837fd(0x18f))/0x6)+parseInt(_0x4837fd(0x1a2))/0x7+-parseInt(_0x4837fd(0x18a))/0x8+-parseInt(_0x4837fd(0x18c))/0x9;if(_0x4e3fd8===_0x1b02e9)break;else _0x476ffe['push'](_0x476ffe['shift']());}catch(_0x1a04a0){_0x476ffe['push'](_0x476ffe['shift']());}}}(a141_0x807a,0x8e510));import{requireDevelopmentUploadFile}from'../../commands/common/local-file.js';function a141_0xee05(_0xdd97ce,_0x3e8c75){_0xdd97ce=_0xdd97ce-0x17d;const _0x807a88=a141_0x807a();let _0xee054=_0x807a88[_0xdd97ce];return _0xee054;}import{queryDevelopmentFileUrl,recognizeDevelopmentOcr,uploadDevelopmentFile}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';const SUPPORTED_SCENES=['invoice',a141_0x38a5b6(0x183),'form','idCard'],SCENE_TO_LEGACY_TYPE={'invoice':a141_0x38a5b6(0x1aa),'general':a141_0x38a5b6(0x184),'form':'Table','idCard':a141_0x38a5b6(0x1ac)},SCENE_FLAG={'name':a141_0x38a5b6(0x1a7),'type':a141_0x38a5b6(0x1a8),'required':!![],'enum':[...SUPPORTED_SCENES],'description':a141_0x38a5b6(0x17e)},IMAGE_FILE_FLAG={'name':a141_0x38a5b6(0x19f),'type':'string','description':a141_0x38a5b6(0x198)},IMAGE_URL_FLAG={'name':a141_0x38a5b6(0x17f),'type':a141_0x38a5b6(0x1a8),'description':a141_0x38a5b6(0x1a0)};function normalizeScene(_0x17b56a){const _0x2ba0f3=a141_0x38a5b6,_0x47c1f5=_0x17b56a[_0x2ba0f3(0x196)]()[_0x2ba0f3(0x190)]();if(_0x47c1f5===_0x2ba0f3(0x187))return _0x2ba0f3(0x19a);if(_0x47c1f5===_0x2ba0f3(0x19e)||_0x47c1f5===_0x2ba0f3(0x183)||_0x47c1f5==='form')return _0x47c1f5;throw CliErrors[_0x2ba0f3(0x188)](_0x2ba0f3(0x1a4)+_0x17b56a+_0x2ba0f3(0x191)+SUPPORTED_SCENES['join'](',\x20'));}function selectedInputs(_0x269230){const _0x124edf=a141_0x38a5b6,_0xba3ad5=_0x269230[_0x124edf(0x1b2)](_0x124edf(0x19f))[_0x124edf(0x196)](),_0x560e70=_0x269230['str']('image-url')['trim']();return{'imageFile':_0xba3ad5,'imageUrl':_0x560e70,'count':[_0xba3ad5,_0x560e70][_0x124edf(0x181)](Boolean)['length']};}function validateInputSelection(_0x16b32e){const _0x40c70c=a141_0x38a5b6,_0x14ae74=selectedInputs(_0x16b32e);if(_0x14ae74['count']!==0x1)throw CliErrors[_0x40c70c(0x188)](_0x40c70c(0x193));return _0x14ae74;}function withScene(_0x57d006,_0x8b7346,_0x8fe4d1){const _0x562225=a141_0x38a5b6;return{..._0x57d006,'scene':_0x8b7346,..._0x8fe4d1?{'sourceFile':{'fileName':_0x8fe4d1[_0x562225(0x1a1)],'filePath':_0x8fe4d1[_0x562225(0x1ab)]}}:{}};}function a141_0x807a(){const _0x5ad930=['File\x20URL\x20response\x20missing\x20fileUrl.','GET','invoice','image-file','Publicly\x20accessible\x20image\x20or\x20file\x20URL','fileName','4793936LJYJwW','appCode','Unsupported\x20OCR\x20scene:\x20','398417HGYYFQ','recognize','scene','string','apiError','Invoice','filePath','IdCard','path','imageUrl','Preview:\x20recognize\x20','9005FwLZNB','1501611iHAeVt','str','/smartapi/common/uploadFile','OCR\x20scene:\x20invoice,\x20general,\x20form,\x20or\x20idCard','image-url','\x20OCR\x20from\x20URL','filter','/smartapi/common/queryFileUrl','general','General','2pTHwbE','/smartapi/ocr/recognize-text?','idcard','validation','fileUrl','3061024yltXeU','<fileUrl\x20returned\x20by\x20/smartapi/common/queryFileUrl>','4521069pPGezy','ocr','Preview:\x20upload\x20local\x20file,\x20query\x20temporary\x20URL,\x20then\x20recognize\x20','942mpnuRV','toLowerCase','.\x20Supported\x20scenes:\x20','2409648dgNWwP','Choose\x20exactly\x20one\x20OCR\x20input:\x20--image-file\x20or\x20--image-url.','POST','imageFile','trim','read','Local\x20image\x20or\x20PDF\x20file;\x20uses\x20upload\x20->\x20query-url\x20->\x20OCR','File\x20upload\x20response\x20missing\x20filePath.','idCard','<filePath\x20returned\x20by\x20/smartapi/common/uploadFile>'];a141_0x807a=function(){return _0x5ad930;};return a141_0x807a();}const ocrRecognize={'service':a141_0x38a5b6(0x18d),'command':a141_0x38a5b6(0x1a6),'description':'使用研发态\x20OCR\x20服务识别\x20URL\x20或本地文件中的文字','risk':a141_0x38a5b6(0x197),'flags':[SCENE_FLAG,IMAGE_FILE_FLAG,IMAGE_URL_FLAG],async 'dryRun'(_0x3adad4){const _0x36b166=a141_0x38a5b6,_0x2e280c=normalizeScene(_0x3adad4[_0x36b166(0x1b2)](_0x36b166(0x1a7))),_0x25b30f=SCENE_TO_LEGACY_TYPE[_0x2e280c],_0x2279b9=validateInputSelection(_0x3adad4);if(_0x2279b9[_0x36b166(0x1ae)]){const _0x3c5655=new URLSearchParams({'url':_0x2279b9[_0x36b166(0x1ae)],'type':_0x25b30f,'appCode':_0x3adad4[_0x36b166(0x1a3)]});return{'method':_0x36b166(0x19d),'url':_0x36b166(0x186)+_0x3c5655['toString'](),'description':_0x36b166(0x1af)+_0x2e280c+_0x36b166(0x180)};}const _0xb7ea83=requireDevelopmentUploadFile(_0x2279b9[_0x36b166(0x195)],_0x36b166(0x19f));return{'method':'POST','url':_0x36b166(0x17d),'body':{'steps':[{'method':_0x36b166(0x194),'url':_0x36b166(0x17d),'body':{'appCode':_0x3adad4[_0x36b166(0x1a3)],'multipart':{'file':_0xb7ea83}}},{'method':_0x36b166(0x194),'url':_0x36b166(0x182),'body':{'filePath':_0x36b166(0x19b),'downloadFlag':![]}},{'method':_0x36b166(0x19d),'url':'/smartapi/ocr/recognize-text','query':{'appCode':_0x3adad4[_0x36b166(0x1a3)],'url':_0x36b166(0x18b),'type':_0x25b30f}}]},'description':_0x36b166(0x18e)+_0x2e280c+'\x20OCR'};},async 'execute'(_0x43607d){const _0x3db6fb=a141_0x38a5b6,_0x20617b=normalizeScene(_0x43607d['str'](_0x3db6fb(0x1a7))),_0x84b241=SCENE_TO_LEGACY_TYPE[_0x20617b],_0x269c7e=validateInputSelection(_0x43607d);if(_0x269c7e[_0x3db6fb(0x1ae)]){const _0xf3b707=await recognizeDevelopmentOcr(_0x43607d['appCode'],{'url':_0x269c7e[_0x3db6fb(0x1ae)],'type':_0x84b241});return{'ok':!![],'data':withScene(_0xf3b707,_0x20617b)};}const _0x39171b=requireDevelopmentUploadFile(_0x269c7e[_0x3db6fb(0x195)],_0x3db6fb(0x19f)),_0x1ccc63=await uploadDevelopmentFile(_0x43607d[_0x3db6fb(0x1a3)],_0x39171b[_0x3db6fb(0x1ad)]);if(!_0x1ccc63[_0x3db6fb(0x1ab)])throw CliErrors['apiError'](_0x3db6fb(0x199));const _0x588276=await queryDevelopmentFileUrl(_0x1ccc63['filePath'],{'download':![]});if(!_0x588276[_0x3db6fb(0x189)])throw CliErrors[_0x3db6fb(0x1a9)](_0x3db6fb(0x19c));const _0x1f8e64=await recognizeDevelopmentOcr(_0x43607d[_0x3db6fb(0x1a3)],{'url':_0x588276['fileUrl'],'type':_0x84b241});return{'ok':!![],'data':withScene(_0x1f8e64,_0x20617b,_0x1ccc63)};}};export const ocrDefinitions=[ocrRecognize];
1
+ const a142_0x6b1f56=a142_0x304f;(function(_0xb14028,_0x349a0b){const _0x158a2e=a142_0x304f,_0x13e2f0=_0xb14028();while(!![]){try{const _0x33a976=-parseInt(_0x158a2e(0x72))/0x1*(parseInt(_0x158a2e(0xa3))/0x2)+-parseInt(_0x158a2e(0x74))/0x3+parseInt(_0x158a2e(0x85))/0x4*(parseInt(_0x158a2e(0x7c))/0x5)+-parseInt(_0x158a2e(0x76))/0x6*(parseInt(_0x158a2e(0x70))/0x7)+-parseInt(_0x158a2e(0x9f))/0x8+-parseInt(_0x158a2e(0x6e))/0x9*(parseInt(_0x158a2e(0xa4))/0xa)+parseInt(_0x158a2e(0x8c))/0xb*(parseInt(_0x158a2e(0x98))/0xc);if(_0x33a976===_0x349a0b)break;else _0x13e2f0['push'](_0x13e2f0['shift']());}catch(_0x1a6ae4){_0x13e2f0['push'](_0x13e2f0['shift']());}}}(a142_0x3937,0x3f067));function a142_0x304f(_0x3aee1e,_0x312c53){_0x3aee1e=_0x3aee1e-0x6a;const _0x39370f=a142_0x3937();let _0x304fb0=_0x39370f[_0x3aee1e];return _0x304fb0;}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=[a142_0x6b1f56(0x75),'general',a142_0x6b1f56(0x77),a142_0x6b1f56(0x73)],SCENE_TO_LEGACY_TYPE={'invoice':a142_0x6b1f56(0x7d),'general':a142_0x6b1f56(0x7f),'form':a142_0x6b1f56(0x8d),'idCard':a142_0x6b1f56(0x7e)},SCENE_FLAG={'name':a142_0x6b1f56(0x7b),'type':a142_0x6b1f56(0x7a),'required':!![],'enum':[...SUPPORTED_SCENES],'description':'OCR\x20scene:\x20invoice,\x20general,\x20form,\x20or\x20idCard'},IMAGE_FILE_FLAG={'name':a142_0x6b1f56(0x9a),'type':a142_0x6b1f56(0x7a),'description':'Local\x20image\x20or\x20PDF\x20file;\x20uses\x20upload\x20->\x20query-url\x20->\x20OCR'},IMAGE_URL_FLAG={'name':'image-url','type':a142_0x6b1f56(0x7a),'description':a142_0x6b1f56(0x6a)};function normalizeScene(_0x500544){const _0x3d8cfc=a142_0x6b1f56,_0x3cedbb=_0x500544[_0x3d8cfc(0x99)]()['toLowerCase']();if(_0x3cedbb===_0x3d8cfc(0x8e))return _0x3d8cfc(0x73);if(_0x3cedbb===_0x3d8cfc(0x75)||_0x3cedbb===_0x3d8cfc(0xa0)||_0x3cedbb==='form')return _0x3cedbb;throw CliErrors[_0x3d8cfc(0x97)](_0x3d8cfc(0x9e)+_0x500544+_0x3d8cfc(0x91)+SUPPORTED_SCENES[_0x3d8cfc(0x83)](',\x20'));}function selectedInputs(_0x160688){const _0x1e72dd=a142_0x6b1f56,_0x1eabf6=_0x160688[_0x1e72dd(0x87)](_0x1e72dd(0x9a))[_0x1e72dd(0x99)](),_0xe055ec=_0x160688['str']('image-url')[_0x1e72dd(0x99)]();return{'imageFile':_0x1eabf6,'imageUrl':_0xe055ec,'count':[_0x1eabf6,_0xe055ec][_0x1e72dd(0x82)](Boolean)[_0x1e72dd(0xa1)]};}function validateInputSelection(_0x560e77){const _0x5422a7=a142_0x6b1f56,_0x206089=selectedInputs(_0x560e77);if(_0x206089[_0x5422a7(0x6c)]!==0x1)throw CliErrors[_0x5422a7(0x97)](_0x5422a7(0x9d));return _0x206089;}function withScene(_0xeceae4,_0x102016,_0x7a596f){const _0x46ad80=a142_0x6b1f56;return{..._0xeceae4,'scene':_0x102016,..._0x7a596f?{'sourceFile':{'fileName':_0x7a596f[_0x46ad80(0x8b)],'filePath':_0x7a596f[_0x46ad80(0x79)]}}:{}};}const ocrRecognize={'service':a142_0x6b1f56(0xa2),'command':a142_0x6b1f56(0x78),'description':a142_0x6b1f56(0x92),'risk':a142_0x6b1f56(0x9b),'flags':[SCENE_FLAG,IMAGE_FILE_FLAG,IMAGE_URL_FLAG],async 'dryRun'(_0x8c2961){const _0x24189e=a142_0x6b1f56,_0x5005d3=normalizeScene(_0x8c2961['str'](_0x24189e(0x7b))),_0x357a8f=SCENE_TO_LEGACY_TYPE[_0x5005d3],_0x7ec32f=validateInputSelection(_0x8c2961);if(_0x7ec32f['imageUrl']){const _0x9d5c06=new URLSearchParams({'url':_0x7ec32f['imageUrl'],'type':_0x357a8f,'appCode':_0x8c2961[_0x24189e(0x88)]});return{'method':_0x24189e(0x93),'url':_0x24189e(0x90)+_0x9d5c06['toString'](),'description':_0x24189e(0x96)+_0x5005d3+_0x24189e(0x95)};}const _0x2b8c22=requireDevelopmentUploadFile(_0x7ec32f[_0x24189e(0x8a)],_0x24189e(0x9a));return{'method':_0x24189e(0x71),'url':'/smartapi/common/uploadFile','body':{'steps':[{'method':'POST','url':'/smartapi/common/uploadFile','body':{'appCode':_0x8c2961[_0x24189e(0x88)],'multipart':{'file':_0x2b8c22}}},{'method':_0x24189e(0x71),'url':_0x24189e(0x8f),'body':{'filePath':_0x24189e(0x80),'downloadFlag':![]}},{'method':_0x24189e(0x93),'url':_0x24189e(0x86),'query':{'appCode':_0x8c2961[_0x24189e(0x88)],'url':_0x24189e(0x6f),'type':_0x357a8f}}]},'description':_0x24189e(0x89)+_0x5005d3+'\x20OCR'};},async 'execute'(_0x2efbc4){const _0xb67014=a142_0x6b1f56,_0x16e40c=normalizeScene(_0x2efbc4[_0xb67014(0x87)](_0xb67014(0x7b))),_0x5f4ce5=SCENE_TO_LEGACY_TYPE[_0x16e40c],_0x4cb32e=validateInputSelection(_0x2efbc4);if(_0x4cb32e[_0xb67014(0x9c)]){const _0x4d37c9=await recognizeDevelopmentOcr(_0x2efbc4['appCode'],{'url':_0x4cb32e[_0xb67014(0x9c)],'type':_0x5f4ce5});return{'ok':!![],'data':withScene(_0x4d37c9,_0x16e40c)};}const _0x450088=requireDevelopmentUploadFile(_0x4cb32e[_0xb67014(0x8a)],'image-file'),_0x1cab87=await uploadDevelopmentFile(_0x2efbc4['appCode'],_0x450088[_0xb67014(0x94)]);if(!_0x1cab87[_0xb67014(0x79)])throw CliErrors[_0xb67014(0x6b)](_0xb67014(0x6d));const _0xc33a5f=await queryDevelopmentFileUrl(_0x1cab87[_0xb67014(0x79)],{'download':![]});if(!_0xc33a5f['fileUrl'])throw CliErrors[_0xb67014(0x6b)](_0xb67014(0x84));const _0x157047=await recognizeDevelopmentOcr(_0x2efbc4['appCode'],{'url':_0xc33a5f[_0xb67014(0x81)],'type':_0x5f4ce5});return{'ok':!![],'data':withScene(_0x157047,_0x16e40c,_0x1cab87)};}};function a142_0x3937(){const _0x18a346=['3082328EQjgKd','general','length','ocr','48814dGwLlS','4635460sPHlbC','Publicly\x20accessible\x20image\x20or\x20file\x20URL','apiError','count','File\x20upload\x20response\x20missing\x20filePath.','9HpbrQI','<fileUrl\x20returned\x20by\x20/smartapi/common/queryFileUrl>','96719vCyqLK','POST','5opqNlr','idCard','410346vAOSnf','invoice','168rPWKpM','form','recognize','filePath','string','scene','1440015COzFTU','Invoice','IdCard','General','<filePath\x20returned\x20by\x20/smartapi/common/uploadFile>','fileUrl','filter','join','File\x20URL\x20response\x20missing\x20fileUrl.','4sEqeER','/smartapi/ocr/recognize-text','str','appCode','Preview:\x20upload\x20local\x20file,\x20query\x20temporary\x20URL,\x20then\x20recognize\x20','imageFile','fileName','99zQyhyz','Table','idcard','/smartapi/common/queryFileUrl','/smartapi/ocr/recognize-text?','.\x20Supported\x20scenes:\x20','使用研发态\x20OCR\x20服务识别\x20URL\x20或本地文件中的文字','GET','path','\x20OCR\x20from\x20URL','Preview:\x20recognize\x20','validation','1952904CIMetV','trim','image-file','read','imageUrl','Choose\x20exactly\x20one\x20OCR\x20input:\x20--image-file\x20or\x20--image-url.','Unsupported\x20OCR\x20scene:\x20'];a142_0x3937=function(){return _0x18a346;};return a142_0x3937();}export const ocrDefinitions=[ocrRecognize];
@@ -1 +1 @@
1
- const a142_0x1f4bb7=a142_0x1b26;(function(_0x2c10b1,_0x473edb){const _0x56e948=a142_0x1b26,_0x47133f=_0x2c10b1();while(!![]){try{const _0x34b5d2=parseInt(_0x56e948(0xb5))/0x1*(-parseInt(_0x56e948(0x7d))/0x2)+-parseInt(_0x56e948(0x7f))/0x3+parseInt(_0x56e948(0xac))/0x4+parseInt(_0x56e948(0xb3))/0x5+-parseInt(_0x56e948(0x79))/0x6*(-parseInt(_0x56e948(0x8f))/0x7)+parseInt(_0x56e948(0x9e))/0x8+parseInt(_0x56e948(0x97))/0x9*(-parseInt(_0x56e948(0x7a))/0xa);if(_0x34b5d2===_0x473edb)break;else _0x47133f['push'](_0x47133f['shift']());}catch(_0x1f5024){_0x47133f['push'](_0x47133f['shift']());}}}(a142_0x2fd0,0x3bd0c));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=[a142_0x1f4bb7(0xab),a142_0x1f4bb7(0x9f)];export const pageCreate={'service':a142_0x1f4bb7(0x83),'command':a142_0x1f4bb7(0x85),'description':a142_0x1f4bb7(0x78),'risk':a142_0x1f4bb7(0x94),'defaultOutputFormat':'compress','structuredErrors':!![],'rejectedFlags':[{'name':a142_0x1f4bb7(0xad),'message':a142_0x1f4bb7(0xa7),'hint':'This\x20command\x20always\x20creates\x20a\x20CUSTOM\x20JSX\x20page;\x20use\x20--page-pattern\x20BLANK\x20or\x20--page-content.'}],'flags':[{'name':a142_0x1f4bb7(0x87),'type':a142_0x1f4bb7(0xa0),'description':'Optional\x20Custom\x20Page\x20name\x20(1-100\x20characters)'},{'name':'parent-menu-id','type':a142_0x1f4bb7(0x86),'description':a142_0x1f4bb7(0x9b)},{'name':a142_0x1f4bb7(0x8b),'type':a142_0x1f4bb7(0xa0),'description':a142_0x1f4bb7(0x98),'enum':[a142_0x1f4bb7(0x8a)]},{'name':a142_0x1f4bb7(0x7e),'type':'string','description':a142_0x1f4bb7(0xb4)},APPCODE_FLAG],async 'validate'(_0x33e5bc){const _0x497b9b=a142_0x1f4bb7,_0xfb79a5=readPagePattern(_0x33e5bc);await validateCustomPageContent(readInput(_0x33e5bc,DEFAULT_CUSTOM_PAGE_LANGUAGES,_0xfb79a5)[_0x497b9b(0x80)]);},async 'dryRun'(_0xe76fbc){const _0x2b3877=a142_0x1f4bb7,{input:_0xbf9bb4}=await prepare(_0xe76fbc);return{'method':_0x2b3877(0x8d),'url':_0x2b3877(0xb2),'body':{'appCode':_0xbf9bb4[_0x2b3877(0x84)],'pageName':_0xbf9bb4[_0x2b3877(0xa6)],..._0xbf9bb4[_0x2b3877(0x99)]!=null?{'parentMenuId':_0xbf9bb4[_0x2b3877(0x99)]}:{},'createMenu':_0xbf9bb4['createMenu'],'codeContent':_0xbf9bb4[_0x2b3877(0x80)]},'description':_0x2b3877(0x95)+JSON[_0x2b3877(0xa4)](_0xbf9bb4[_0x2b3877(0xa6)])+_0x2b3877(0x8c)};},async 'execute'(_0xfccd46){const _0x39147f=a142_0x1f4bb7,_0x28f292=await prepare(_0xfccd46),_0x44bff2=await createCustomPage(_0x28f292[_0x39147f(0xb0)]);if(!Number[_0x39147f(0xa3)](_0x44bff2[_0x39147f(0x81)])||_0x44bff2[_0x39147f(0x81)]<=0x0)throw CliErrors['apiError'](_0x39147f(0x89));return{'ok':!![],'data':buildMutationData(_0x28f292,_0x44bff2),'message':_0x39147f(0x9d)+_0x44bff2['pageId']+'.'};}};async function prepare(_0xdff2b8){const _0x4bcddd=a142_0x1f4bb7,_0x21a8d5=readPagePattern(_0xdff2b8);if(_0x21a8d5===null)return{'input':readInput(_0xdff2b8,DEFAULT_CUSTOM_PAGE_LANGUAGES,_0x21a8d5),'warnings':[],'pagePattern':_0x21a8d5};let _0x2f6eee=DEFAULT_CUSTOM_PAGE_LANGUAGES,_0x372eec=[];try{const _0x4d77bc=await getI18nInfo(_0xdff2b8[_0x4bcddd(0x84)]);_0x4d77bc[_0x4bcddd(0xa5)]&&_0x4d77bc[_0x4bcddd(0x92)]?.[_0x4bcddd(0x91)]&&(_0x2f6eee=_0x4d77bc[_0x4bcddd(0x92)]);}catch{_0x372eec=[_0x4bcddd(0xa1)];}return{'input':readInput(_0xdff2b8,_0x2f6eee,_0x21a8d5),'warnings':_0x372eec,'pagePattern':_0x21a8d5};}function readPagePattern(_0x57d988){const _0x13f067=a142_0x1f4bb7,_0x4be23f=_0x57d988[_0x13f067(0x82)](_0x13f067(0x8b))['trim'](),_0x4d386c=_0x57d988['str']('page-content')[_0x13f067(0xae)]()[_0x13f067(0x91)]>0x0;if(_0x4be23f&&_0x4d386c)throw CliErrors[_0x13f067(0x7c)](_0x13f067(0x9a));if(_0x4d386c)return null;if(!_0x4be23f)throw CliErrors[_0x13f067(0x7c)](_0x13f067(0xaf));if(_0x4be23f!==_0x13f067(0x8a))throw CliErrors[_0x13f067(0x7c)](_0x13f067(0x9c));return _0x4be23f;}function readInput(_0x463f44,_0x5eea43=DEFAULT_CUSTOM_PAGE_LANGUAGES,_0x40cedd=readPagePattern(_0x463f44)){const _0x36a08d=a142_0x1f4bb7,_0x44d1a4=_0x463f44[_0x36a08d(0x82)](_0x36a08d(0x87))[_0x36a08d(0xae)]()||_0x36a08d(0xb6)+Date[_0x36a08d(0x8e)]();if(_0x44d1a4[_0x36a08d(0x91)]>0x64)throw CliErrors[_0x36a08d(0x7c)]('pageName\x20cannot\x20exceed\x20100\x20characters.');const _0x18ab1a=_0x463f44[_0x36a08d(0x7b)](_0x36a08d(0xa8),NaN),_0x1ea454=!Number['isNaN'](_0x18ab1a);if(_0x1ea454&&(!Number['isInteger'](_0x18ab1a)||_0x18ab1a<=0x0))throw CliErrors[_0x36a08d(0x7c)](_0x36a08d(0x88));return{'appCode':_0x463f44['appCode'],'pageName':_0x44d1a4,..._0x1ea454?{'parentMenuId':_0x18ab1a}:{},'createMenu':!![],'files':_0x40cedd===null?parseCustomPageContent(_0x463f44[_0x36a08d(0x82)](_0x36a08d(0x7e))):buildInitialFiles(_0x44d1a4,_0x5eea43)};}function a142_0x2fd0(){const _0x2eaaaa=['Provide\x20--page-pattern\x20BLANK\x20or\x20--page-content.','input','Custom\x20Page\x20was\x20created,\x20but\x20a\x20link\x20to\x20its\x20latest\x20saved\x20content\x20could\x20not\x20be\x20generated.','/smartapi/webcode/page/create','2374265qGrTBY','Complete\x20page\x20files\x20as\x20JSON\x20(conflicts\x20with\x20--page-pattern)','172091gQUFEJ','自定义页面_','Create\x20a\x20JSX\x20Custom\x20Page\x20from\x20a\x20released\x20pattern\x20or\x20complete\x20files','6tlTAdD','5230BZRNsQ','num','validation','4JOIhZa','page-content','1122855GraqTc','files','pageId','str','page','appCode','create','number','name','--parent-menu-id\x20must\x20be\x20a\x20positive\x20integer.','Custom\x20Page\x20creation\x20did\x20not\x20return\x20a\x20valid\x20pageId.','BLANK','page-pattern','\x20and\x20its\x20menu\x20entry.','POST','now','3361239QpZzOa','page.create','length','langs','CUSTOM','write','Would\x20create\x20Custom\x20Page\x20','warnings','11727xoqzhx','Custom\x20Page\x20pattern\x20(currently\x20BLANK;\x20conflicts\x20with\x20--page-content)','parentMenuId','--page-pattern\x20and\x20--page-content\x20cannot\x20be\x20used\x20together.','Optional\x20parent\x20menu\x20id\x20when\x20creating\x20a\x20menu\x20entry','--page-pattern\x20currently\x20supports\x20only\x20BLANK.','Created\x20Custom\x20Page\x20','2796648FoLVzu','en-US','string','Application\x20language\x20settings\x20could\x20not\x20be\x20read;\x20default\x20Chinese\x20and\x20English\x20language\x20files\x20were\x20generated.','pagePattern','isInteger','stringify','enableI18n','pageName','page\x20create\x20does\x20not\x20accept\x20--page-type.','parent-menu-id','menuId','menuPath','zh-CN','1361316KGzdte','page-type','trim'];a142_0x2fd0=function(){return _0x2eaaaa;};return a142_0x2fd0();}function a142_0x1b26(_0xc36752,_0x56a908){_0xc36752=_0xc36752-0x78;const _0x2fd081=a142_0x2fd0();let _0x1b2620=_0x2fd081[_0xc36752];return _0x1b2620;}function buildMutationData(_0x515c3c,_0x27d303){const _0x38c98a=a142_0x1f4bb7,{input:_0x4d9bb4}=_0x515c3c,_0x41e936=_0x27d303&&buildCustomPageDevelopmentUrl(_0x4d9bb4[_0x38c98a(0x84)],_0x27d303[_0x38c98a(0xaa)]),_0x399cb3=_0x27d303&&buildCustomPageEditUrl(_0x4d9bb4[_0x38c98a(0x84)],_0x27d303['pageId']);return{'operation':_0x38c98a(0x90),'pageType':_0x38c98a(0x93),'pagePattern':_0x515c3c[_0x38c98a(0xa2)],'selector':{'appCode':_0x4d9bb4[_0x38c98a(0x84)],'pageName':_0x4d9bb4[_0x38c98a(0xa6)]},'before':null,'after':{'pageId':_0x27d303?.[_0x38c98a(0x81)]??null,'pageName':_0x27d303?.[_0x38c98a(0xa6)]??_0x4d9bb4[_0x38c98a(0xa6)],'appCode':_0x27d303?.[_0x38c98a(0x84)]??_0x4d9bb4[_0x38c98a(0x84)],'version':_0x27d303?.['version']??null,'menuId':_0x27d303?.[_0x38c98a(0xa9)]??null,'menuPath':_0x27d303?.[_0x38c98a(0xaa)]??null,'files':_0x27d303?.[_0x38c98a(0x80)]??Object['keys'](_0x4d9bb4['files'])},'dryRun':_0x27d303===undefined,'request':_0x4d9bb4,..._0x41e936?{'pageUrl':_0x41e936}:{},..._0x399cb3?{'editPageUrl':_0x399cb3}:{},'warnings':[..._0x515c3c[_0x38c98a(0x96)],..._0x27d303&&!_0x41e936?[_0x38c98a(0xb1)]:[]]};}
1
+ const a143_0x8406e7=a143_0x9310;(function(_0x4e1dce,_0x2df879){const _0x3780b5=a143_0x9310,_0x5f0a7e=_0x4e1dce();while(!![]){try{const _0x529df0=-parseInt(_0x3780b5(0xec))/0x1*(-parseInt(_0x3780b5(0xc4))/0x2)+parseInt(_0x3780b5(0xc7))/0x3+parseInt(_0x3780b5(0xb9))/0x4+-parseInt(_0x3780b5(0xed))/0x5*(parseInt(_0x3780b5(0xf4))/0x6)+-parseInt(_0x3780b5(0xbb))/0x7*(parseInt(_0x3780b5(0xbd))/0x8)+parseInt(_0x3780b5(0xc2))/0x9*(parseInt(_0x3780b5(0xc0))/0xa)+parseInt(_0x3780b5(0xd1))/0xb;if(_0x529df0===_0x2df879)break;else _0x5f0a7e['push'](_0x5f0a7e['shift']());}catch(_0x5ec539){_0x5f0a7e['push'](_0x5f0a7e['shift']());}}}(a143_0x4225,0x5669a));import{APPCODE_FLAG}from'../../commands/common/flags.js';function a143_0x4225(){const _0x45a86b=['--parent-menu-id\x20must\x20be\x20a\x20positive\x20integer.','name','langs','3691402uqLIhf','Optional\x20Custom\x20Page\x20name\x20(1-100\x20characters)','isInteger','parentMenuId','createMenu','Create\x20a\x20JSX\x20Custom\x20Page\x20from\x20a\x20released\x20pattern\x20or\x20complete\x20files','Application\x20language\x20settings\x20could\x20not\x20be\x20read;\x20default\x20Chinese\x20and\x20English\x20language\x20files\x20were\x20generated.','pageId','version','自定义页面_','isNaN','Would\x20create\x20Custom\x20Page\x20','page-content','page.create','zh-CN','now','string','number','en-US','parent-menu-id','write','str','pageName','Custom\x20Page\x20pattern\x20(currently\x20BLANK;\x20conflicts\x20with\x20--page-content)','warnings','Custom\x20Page\x20was\x20created,\x20but\x20a\x20link\x20to\x20its\x20latest\x20saved\x20content\x20could\x20not\x20be\x20generated.','\x20and\x20its\x20menu\x20entry.','238366PXOwrv','310quvuAS','CUSTOM','page\x20create\x20does\x20not\x20accept\x20--page-type.','validation','Optional\x20parent\x20menu\x20id\x20when\x20creating\x20a\x20menu\x20entry','files','Complete\x20page\x20files\x20as\x20JSON\x20(conflicts\x20with\x20--page-pattern)','57786KVRLrv','page-pattern','page','--page-pattern\x20and\x20--page-content\x20cannot\x20be\x20used\x20together.','trim','1096996tcRfpL','appCode','388654VTbvRM','menuPath','40mYNEma','POST','Provide\x20--page-pattern\x20BLANK\x20or\x20--page-content.','4780OFJLqq','compress','1548zSfVml','BLANK','4fbzWwg','enableI18n','--page-pattern\x20currently\x20supports\x20only\x20BLANK.','179697LDnRnb','menuId','Custom\x20Page\x20creation\x20did\x20not\x20return\x20a\x20valid\x20pageId.','input','stringify','length','num'];a143_0x4225=function(){return _0x45a86b;};return a143_0x4225();}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=[a143_0x8406e7(0xdf),a143_0x8406e7(0xe3)];export const pageCreate={'service':a143_0x8406e7(0xf6),'command':'create','description':a143_0x8406e7(0xd6),'risk':a143_0x8406e7(0xe5),'defaultOutputFormat':a143_0x8406e7(0xc1),'structuredErrors':!![],'rejectedFlags':[{'name':'page-type','message':a143_0x8406e7(0xef),'hint':'This\x20command\x20always\x20creates\x20a\x20CUSTOM\x20JSX\x20page;\x20use\x20--page-pattern\x20BLANK\x20or\x20--page-content.'}],'flags':[{'name':'name','type':a143_0x8406e7(0xe1),'description':a143_0x8406e7(0xd2)},{'name':'parent-menu-id','type':a143_0x8406e7(0xe2),'description':a143_0x8406e7(0xf1)},{'name':a143_0x8406e7(0xf5),'type':a143_0x8406e7(0xe1),'description':a143_0x8406e7(0xe8),'enum':[a143_0x8406e7(0xc3)]},{'name':a143_0x8406e7(0xdd),'type':'string','description':a143_0x8406e7(0xf3)},APPCODE_FLAG],async 'validate'(_0x522ea8){const _0x40f1c2=a143_0x8406e7,_0x3dda9f=readPagePattern(_0x522ea8);await validateCustomPageContent(readInput(_0x522ea8,DEFAULT_CUSTOM_PAGE_LANGUAGES,_0x3dda9f)[_0x40f1c2(0xf2)]);},async 'dryRun'(_0x5bc5bd){const _0x179ecd=a143_0x8406e7,{input:_0x3fb08b}=await prepare(_0x5bc5bd);return{'method':_0x179ecd(0xbe),'url':'/smartapi/webcode/page/create','body':{'appCode':_0x3fb08b[_0x179ecd(0xba)],'pageName':_0x3fb08b[_0x179ecd(0xe7)],..._0x3fb08b['parentMenuId']!=null?{'parentMenuId':_0x3fb08b[_0x179ecd(0xd4)]}:{},'createMenu':_0x3fb08b[_0x179ecd(0xd5)],'codeContent':_0x3fb08b[_0x179ecd(0xf2)]},'description':_0x179ecd(0xdc)+JSON[_0x179ecd(0xcb)](_0x3fb08b[_0x179ecd(0xe7)])+_0x179ecd(0xeb)};},async 'execute'(_0x53f345){const _0x50a116=a143_0x8406e7,_0x5dfe80=await prepare(_0x53f345),_0x532ca6=await createCustomPage(_0x5dfe80[_0x50a116(0xca)]);if(!Number['isInteger'](_0x532ca6[_0x50a116(0xd8)])||_0x532ca6[_0x50a116(0xd8)]<=0x0)throw CliErrors['apiError'](_0x50a116(0xc9));return{'ok':!![],'data':buildMutationData(_0x5dfe80,_0x532ca6),'message':'Created\x20Custom\x20Page\x20'+_0x532ca6['pageId']+'.'};}};async function prepare(_0x255ac2){const _0x54d293=a143_0x8406e7,_0x6ce603=readPagePattern(_0x255ac2);if(_0x6ce603===null)return{'input':readInput(_0x255ac2,DEFAULT_CUSTOM_PAGE_LANGUAGES,_0x6ce603),'warnings':[],'pagePattern':_0x6ce603};let _0x13dd6b=DEFAULT_CUSTOM_PAGE_LANGUAGES,_0x284e60=[];try{const _0x55becb=await getI18nInfo(_0x255ac2['appCode']);_0x55becb[_0x54d293(0xc5)]&&_0x55becb[_0x54d293(0xd0)]?.[_0x54d293(0xcc)]&&(_0x13dd6b=_0x55becb[_0x54d293(0xd0)]);}catch{_0x284e60=[_0x54d293(0xd7)];}return{'input':readInput(_0x255ac2,_0x13dd6b,_0x6ce603),'warnings':_0x284e60,'pagePattern':_0x6ce603};}function readPagePattern(_0x2dbcf3){const _0x4e0d60=a143_0x8406e7,_0x2fe67a=_0x2dbcf3[_0x4e0d60(0xe6)](_0x4e0d60(0xf5))[_0x4e0d60(0xf8)](),_0x5bfc87=_0x2dbcf3[_0x4e0d60(0xe6)](_0x4e0d60(0xdd))['trim']()['length']>0x0;if(_0x2fe67a&&_0x5bfc87)throw CliErrors[_0x4e0d60(0xf0)](_0x4e0d60(0xf7));if(_0x5bfc87)return null;if(!_0x2fe67a)throw CliErrors[_0x4e0d60(0xf0)](_0x4e0d60(0xbf));if(_0x2fe67a!=='BLANK')throw CliErrors[_0x4e0d60(0xf0)](_0x4e0d60(0xc6));return _0x2fe67a;}function readInput(_0x10ecc7,_0x573c2a=DEFAULT_CUSTOM_PAGE_LANGUAGES,_0x4a169e=readPagePattern(_0x10ecc7)){const _0x4b5d6e=a143_0x8406e7,_0x320540=_0x10ecc7[_0x4b5d6e(0xe6)](_0x4b5d6e(0xcf))[_0x4b5d6e(0xf8)]()||_0x4b5d6e(0xda)+Date[_0x4b5d6e(0xe0)]();if(_0x320540[_0x4b5d6e(0xcc)]>0x64)throw CliErrors['validation']('pageName\x20cannot\x20exceed\x20100\x20characters.');const _0x542827=_0x10ecc7[_0x4b5d6e(0xcd)](_0x4b5d6e(0xe4),NaN),_0x5ee75d=!Number[_0x4b5d6e(0xdb)](_0x542827);if(_0x5ee75d&&(!Number[_0x4b5d6e(0xd3)](_0x542827)||_0x542827<=0x0))throw CliErrors[_0x4b5d6e(0xf0)](_0x4b5d6e(0xce));return{'appCode':_0x10ecc7[_0x4b5d6e(0xba)],'pageName':_0x320540,..._0x5ee75d?{'parentMenuId':_0x542827}:{},'createMenu':!![],'files':_0x4a169e===null?parseCustomPageContent(_0x10ecc7['str'](_0x4b5d6e(0xdd))):buildInitialFiles(_0x320540,_0x573c2a)};}function a143_0x9310(_0x59b1c7,_0x38f6af){_0x59b1c7=_0x59b1c7-0xb9;const _0x4225a6=a143_0x4225();let _0x9310b0=_0x4225a6[_0x59b1c7];return _0x9310b0;}function buildMutationData(_0x5dbedf,_0x3a6bdd){const _0x428262=a143_0x8406e7,{input:_0x17aaa5}=_0x5dbedf,_0x967761=_0x3a6bdd&&buildCustomPageDevelopmentUrl(_0x17aaa5['appCode'],_0x3a6bdd[_0x428262(0xbc)]),_0x5f472a=_0x3a6bdd&&buildCustomPageEditUrl(_0x17aaa5['appCode'],_0x3a6bdd[_0x428262(0xd8)]);return{'operation':_0x428262(0xde),'pageType':_0x428262(0xee),'pagePattern':_0x5dbedf['pagePattern'],'selector':{'appCode':_0x17aaa5[_0x428262(0xba)],'pageName':_0x17aaa5[_0x428262(0xe7)]},'before':null,'after':{'pageId':_0x3a6bdd?.[_0x428262(0xd8)]??null,'pageName':_0x3a6bdd?.['pageName']??_0x17aaa5[_0x428262(0xe7)],'appCode':_0x3a6bdd?.[_0x428262(0xba)]??_0x17aaa5[_0x428262(0xba)],'version':_0x3a6bdd?.[_0x428262(0xd9)]??null,'menuId':_0x3a6bdd?.[_0x428262(0xc8)]??null,'menuPath':_0x3a6bdd?.[_0x428262(0xbc)]??null,'files':_0x3a6bdd?.[_0x428262(0xf2)]??Object['keys'](_0x17aaa5[_0x428262(0xf2)])},'dryRun':_0x3a6bdd===undefined,'request':_0x17aaa5,..._0x967761?{'pageUrl':_0x967761}:{},..._0x5f472a?{'editPageUrl':_0x5f472a}:{},'warnings':[..._0x5dbedf[_0x428262(0xe9)],..._0x3a6bdd&&!_0x967761?[_0x428262(0xea)]:[]]};}
@@ -1 +1 @@
1
- const a143_0x4e64f8=a143_0x2cfe;(function(_0x2ea529,_0x4698bf){const _0x5e9e94=a143_0x2cfe,_0x557a1a=_0x2ea529();while(!![]){try{const _0x48ac9f=parseInt(_0x5e9e94(0x1c8))/0x1*(-parseInt(_0x5e9e94(0x1b7))/0x2)+parseInt(_0x5e9e94(0x1c1))/0x3+-parseInt(_0x5e9e94(0x1b9))/0x4*(parseInt(_0x5e9e94(0x1ce))/0x5)+-parseInt(_0x5e9e94(0x1b5))/0x6+parseInt(_0x5e9e94(0x1c0))/0x7*(parseInt(_0x5e9e94(0x1bf))/0x8)+parseInt(_0x5e9e94(0x1b6))/0x9+-parseInt(_0x5e9e94(0x1bd))/0xa*(-parseInt(_0x5e9e94(0x1c6))/0xb);if(_0x48ac9f===_0x4698bf)break;else _0x557a1a['push'](_0x557a1a['shift']());}catch(_0x4ccf79){_0x557a1a['push'](_0x557a1a['shift']());}}}(a143_0x1925,0x66645));import{getCustomPageSource}from'../../../core/api-client.js';import{buildCustomPageEditUrl,buildCustomPageRuntimeUrl,readCustomPageId,CUSTOM_PAGE_APPCODE_FLAG_OPTIONAL,resolveCustomPageDevelopmentUrl}from'./shared.js';export const pageCustomDetail={'service':a143_0x4e64f8(0x1bc),'command':a143_0x4e64f8(0x1cc),'description':a143_0x4e64f8(0x1c2),'risk':a143_0x4e64f8(0x1ca),'defaultOutputFormat':a143_0x4e64f8(0x1cf),'structuredErrors':!![],'requiresAppCode':![],'flags':[{'name':'id','type':a143_0x4e64f8(0x1cd),'required':!![],'description':'Custom\x20Page\x20ID'},CUSTOM_PAGE_APPCODE_FLAG_OPTIONAL],async 'validate'(_0x1ec64a){readCustomPageId(_0x1ec64a);},async 'execute'(_0x16c32b){const _0x3dfe11=a143_0x4e64f8,_0x50c48b=readCustomPageId(_0x16c32b),_0x1957d7=await getCustomPageSource(_0x50c48b),{bundle:_0x3cc1e4,createTime:_0x3dcb2e,updateTime:_0xeaee15,..._0xc707f4}=_0x1957d7,_0x2f4b07=_0x1957d7['id']??_0x50c48b,_0x5c7f94=_0x1957d7[_0x3dfe11(0x1b8)]?.['trim']()||_0x16c32b[_0x3dfe11(0x1be)]('appcode')['trim'](),_0x384825=buildCustomPageRuntimeUrl(_0x5c7f94,_0x1957d7[_0x3dfe11(0x1cb)]),_0x1b8fc7=buildCustomPageEditUrl(_0x5c7f94,_0x2f4b07),_0x2c5b67=await resolveCustomPageDevelopmentUrl(_0x5c7f94,_0x2f4b07,_0x16c32b['cookie']);return{'ok':!![],'data':{..._0xc707f4,..._0x384825?{'runtimePageUrl':_0x384825}:{},..._0x2c5b67?{'pageUrl':_0x2c5b67}:{},..._0x1b8fc7?{'editPageUrl':_0x1b8fc7}:{},..._0x3dcb2e==null?{}:{'createTime':formatTime(_0x3dcb2e)},..._0xeaee15==null?{}:{'updateTime':formatTime(_0xeaee15)}},'message':_0x3dfe11(0x1c7)+_0x50c48b+'.'};}};function a143_0x1925(){const _0x50e7d9=['4962744xjqFXJ','3480219mTwNLC','800302xmrHKD','appCode','4jqGKcy','isNaN','getMinutes','page','402870kkxXIG','str','3188872NHSOGX','7fsNokN','1374555oChXdG','Show\x20a\x20Custom\x20Page\x20and\x20all\x20of\x20its\x20files','join','getTime','padStart','242QbPzGd','Retrieved\x20Custom\x20Page\x20','1FAQcOH','getFullYear','read','pageCode','custom-detail','number','2415635CohKsT','compress'];a143_0x1925=function(){return _0x50e7d9;};return a143_0x1925();}function a143_0x2cfe(_0x505184,_0x54441a){_0x505184=_0x505184-0x1b5;const _0x1925cd=a143_0x1925();let _0x2cfe7c=_0x1925cd[_0x505184];return _0x2cfe7c;}function formatTime(_0x235da6){const _0x56ac04=a143_0x4e64f8,_0x3aec81=new Date(_0x235da6);if(Number[_0x56ac04(0x1ba)](_0x3aec81[_0x56ac04(0x1c4)]()))return String(_0x235da6);const _0x190338=[_0x3aec81[_0x56ac04(0x1c9)](),String(_0x3aec81['getMonth']()+0x1)[_0x56ac04(0x1c5)](0x2,'0'),String(_0x3aec81['getDate']())[_0x56ac04(0x1c5)](0x2,'0')]['join']('-'),_0x31eb10=[String(_0x3aec81['getHours']())['padStart'](0x2,'0'),String(_0x3aec81[_0x56ac04(0x1bb)]())[_0x56ac04(0x1c5)](0x2,'0'),String(_0x3aec81['getSeconds']())[_0x56ac04(0x1c5)](0x2,'0')][_0x56ac04(0x1c3)](':');return _0x190338+'\x20'+_0x31eb10;}
1
+ const a144_0x577e1d=a144_0x2212;(function(_0x1c11bc,_0x161cfd){const _0x341b83=a144_0x2212,_0x116dd1=_0x1c11bc();while(!![]){try{const _0xe77d67=-parseInt(_0x341b83(0x1e3))/0x1*(parseInt(_0x341b83(0x1e6))/0x2)+-parseInt(_0x341b83(0x1eb))/0x3*(-parseInt(_0x341b83(0x1e9))/0x4)+parseInt(_0x341b83(0x1f3))/0x5+parseInt(_0x341b83(0x1f6))/0x6*(-parseInt(_0x341b83(0x1fc))/0x7)+-parseInt(_0x341b83(0x1fd))/0x8*(parseInt(_0x341b83(0x1ed))/0x9)+-parseInt(_0x341b83(0x201))/0xa*(-parseInt(_0x341b83(0x1f9))/0xb)+-parseInt(_0x341b83(0x200))/0xc*(-parseInt(_0x341b83(0x1f0))/0xd);if(_0xe77d67===_0x161cfd)break;else _0x116dd1['push'](_0x116dd1['shift']());}catch(_0x3b0890){_0x116dd1['push'](_0x116dd1['shift']());}}}(a144_0x13fa,0x5b488));import{getCustomPageSource}from'../../../core/api-client.js';import{buildCustomPageEditUrl,buildCustomPageRuntimeUrl,readCustomPageId,CUSTOM_PAGE_APPCODE_FLAG_OPTIONAL,resolveCustomPageDevelopmentUrl}from'./shared.js';export const pageCustomDetail={'service':a144_0x577e1d(0x1f8),'command':'custom-detail','description':a144_0x577e1d(0x1ee),'risk':'read','defaultOutputFormat':a144_0x577e1d(0x1fe),'structuredErrors':!![],'requiresAppCode':![],'flags':[{'name':'id','type':a144_0x577e1d(0x1e8),'required':!![],'description':a144_0x577e1d(0x1e7)},CUSTOM_PAGE_APPCODE_FLAG_OPTIONAL],async 'validate'(_0x92c793){readCustomPageId(_0x92c793);},async 'execute'(_0x5065ff){const _0xf7654=a144_0x577e1d,_0x1c39a2=readCustomPageId(_0x5065ff),_0x226ced=await getCustomPageSource(_0x1c39a2),{bundle:_0x134431,createTime:_0x4fb41b,updateTime:_0x40aedb,..._0x1e9af1}=_0x226ced,_0x65cf99=_0x226ced['id']??_0x1c39a2,_0x3d522d=_0x226ced['appCode']?.[_0xf7654(0x1ff)]()||_0x5065ff[_0xf7654(0x1fa)](_0xf7654(0x1f1))[_0xf7654(0x1ff)](),_0x5d034c=buildCustomPageRuntimeUrl(_0x3d522d,_0x226ced[_0xf7654(0x1e2)]),_0x5f0495=buildCustomPageEditUrl(_0x3d522d,_0x65cf99),_0x4cfc8c=await resolveCustomPageDevelopmentUrl(_0x3d522d,_0x65cf99,_0x5065ff[_0xf7654(0x1e5)]);return{'ok':!![],'data':{..._0x1e9af1,..._0x5d034c?{'runtimePageUrl':_0x5d034c}:{},..._0x4cfc8c?{'pageUrl':_0x4cfc8c}:{},..._0x5f0495?{'editPageUrl':_0x5f0495}:{},..._0x4fb41b==null?{}:{'createTime':formatTime(_0x4fb41b)},..._0x40aedb==null?{}:{'updateTime':formatTime(_0x40aedb)}},'message':_0xf7654(0x1e4)+_0x1c39a2+'.'};}};function a144_0x2212(_0x292546,_0x430de0){_0x292546=_0x292546-0x1e2;const _0x13fa65=a144_0x13fa();let _0x2212a1=_0x13fa65[_0x292546];return _0x2212a1;}function formatTime(_0x1406df){const _0x47b5f3=a144_0x577e1d,_0x101cfb=new Date(_0x1406df);if(Number['isNaN'](_0x101cfb[_0x47b5f3(0x1f5)]()))return String(_0x1406df);const _0x2f23b1=[_0x101cfb['getFullYear'](),String(_0x101cfb[_0x47b5f3(0x1ec)]()+0x1)[_0x47b5f3(0x1ef)](0x2,'0'),String(_0x101cfb[_0x47b5f3(0x1ea)]())[_0x47b5f3(0x1ef)](0x2,'0')]['join']('-'),_0x1b4be3=[String(_0x101cfb[_0x47b5f3(0x1f4)]())[_0x47b5f3(0x1ef)](0x2,'0'),String(_0x101cfb[_0x47b5f3(0x1f2)]())[_0x47b5f3(0x1ef)](0x2,'0'),String(_0x101cfb[_0x47b5f3(0x1fb)]())[_0x47b5f3(0x1ef)](0x2,'0')][_0x47b5f3(0x1f7)](':');return _0x2f23b1+'\x20'+_0x1b4be3;}function a144_0x13fa(){const _0x5d1644=['40953WpxBOH','str','getSeconds','35FzqHwO','103736ebrApR','compress','trim','12yMwkLh','210hHdGaD','pageCode','327647HSZtLY','Retrieved\x20Custom\x20Page\x20','cookie','4yGVxOz','Custom\x20Page\x20ID','number','4mFLEqM','getDate','1599882iYZYaF','getMonth','450XRAEim','Show\x20a\x20Custom\x20Page\x20and\x20all\x20of\x20its\x20files','padStart','15697149YxMbkd','appcode','getMinutes','2568925ESNbWl','getHours','getTime','786234goLXEn','join','page'];a144_0x13fa=function(){return _0x5d1644;};return a144_0x13fa();}
@@ -1 +1 @@
1
- const a144_0x2b28e2=a144_0x5138;(function(_0x444570,_0x228af2){const _0x3c3d7f=a144_0x5138,_0x4ce8ab=_0x444570();while(!![]){try{const _0x2f8547=parseInt(_0x3c3d7f(0x7e))/0x1+parseInt(_0x3c3d7f(0x75))/0x2+-parseInt(_0x3c3d7f(0x89))/0x3+-parseInt(_0x3c3d7f(0x84))/0x4+-parseInt(_0x3c3d7f(0x7b))/0x5+parseInt(_0x3c3d7f(0x7f))/0x6*(parseInt(_0x3c3d7f(0x82))/0x7)+-parseInt(_0x3c3d7f(0x8b))/0x8;if(_0x2f8547===_0x228af2)break;else _0x4ce8ab['push'](_0x4ce8ab['shift']());}catch(_0x3b597f){_0x4ce8ab['push'](_0x4ce8ab['shift']());}}}(a144_0x248e,0x88483));import{APPCODE_FLAG}from'../../../commands/common/flags.js';import{fetchMenuSnapshot}from'../../../commands/menu/shared/facts.js';import{buildCustomPageDevelopmentUrl,buildCustomPageEditUrl}from'./shared.js';function a144_0x5138(_0x412b50,_0x3ba6da){_0x412b50=_0x412b50-0x75;const _0x248ef4=a144_0x248e();let _0x5138e0=_0x248ef4[_0x412b50];return _0x5138e0;}export const pageCustomList={'service':a144_0x2b28e2(0x86),'command':a144_0x2b28e2(0x78),'description':'List\x20Custom\x20Pages\x20in\x20the\x20current\x20app','risk':a144_0x2b28e2(0x79),'defaultOutputFormat':a144_0x2b28e2(0x88),'structuredErrors':!![],'flags':[APPCODE_FLAG],async 'execute'(_0x1dc427){const _0x50a16b=a144_0x2b28e2,_0x1f5ae4=(await fetchMenuSnapshot(_0x1dc427[_0x50a16b(0x87)],_0x1dc427[_0x50a16b(0x80)]))['menus'][_0x50a16b(0x7d)](_0x342e7a=>{const _0x451735=_0x50a16b;if(_0x342e7a['type']!==_0x451735(0x8a)||_0x342e7a[_0x451735(0x81)]==null)return[];const _0x198ffb=buildCustomPageDevelopmentUrl(_0x1dc427['appCode'],_0x342e7a[_0x451735(0x7c)]),_0x4cedcc=buildCustomPageEditUrl(_0x1dc427[_0x451735(0x87)],_0x342e7a['pageId']);return[{'pageId':_0x342e7a[_0x451735(0x81)],'label':_0x342e7a[_0x451735(0x77)],..._0x198ffb?{'pageUrl':_0x198ffb}:{},..._0x4cedcc?{'editPageUrl':_0x4cedcc}:{}}];});return{'ok':!![],'data':{'pages':_0x1f5ae4},'message':_0x1f5ae4[_0x50a16b(0x7a)]===0x0?_0x50a16b(0x76):_0x50a16b(0x85)+_0x1f5ae4[_0x50a16b(0x7a)]+_0x50a16b(0x83)};}};function a144_0x248e(){const _0x4814b4=['No\x20Custom\x20Pages\x20found.','label','custom-list','read','length','1419185GftfWJ','path','flatMap','279315NuPZqP','408LpuSab','cookie','pageId','110194uNgfZh','\x20Custom\x20Page(s).','277000CYkAJW','Found\x20','page','appCode','compress','1505214wAKzZU','react','7306384GKRHRs','1953126rhYkoV'];a144_0x248e=function(){return _0x4814b4;};return a144_0x248e();}
1
+ const a145_0x3969a1=a145_0x44e2;(function(_0x67c17e,_0x18ec4b){const _0x4f6882=a145_0x44e2,_0x18a8d7=_0x67c17e();while(!![]){try{const _0x467be4=-parseInt(_0x4f6882(0x122))/0x1+-parseInt(_0x4f6882(0x11f))/0x2+-parseInt(_0x4f6882(0x111))/0x3+-parseInt(_0x4f6882(0x116))/0x4+-parseInt(_0x4f6882(0x119))/0x5*(-parseInt(_0x4f6882(0x11d))/0x6)+-parseInt(_0x4f6882(0x11b))/0x7+parseInt(_0x4f6882(0x120))/0x8;if(_0x467be4===_0x18ec4b)break;else _0x18a8d7['push'](_0x18a8d7['shift']());}catch(_0x8e7a52){_0x18a8d7['push'](_0x18a8d7['shift']());}}}(a145_0x45f5,0x79d80));import{APPCODE_FLAG}from'../../../commands/common/flags.js';import{fetchMenuSnapshot}from'../../../commands/menu/shared/facts.js';function a145_0x45f5(){const _0x132a23=['menus','5KPeBPT','path','4133423YZBkCa','Found\x20','1596462hSlYPT','length','729068wXDQYK','24384096sDRsDu','compress','706299nRFsAt','appCode','custom-list','List\x20Custom\x20Pages\x20in\x20the\x20current\x20app','flatMap','2715264mBLIVR','read','page','type','No\x20Custom\x20Pages\x20found.','994428HcLnXW','pageId'];a145_0x45f5=function(){return _0x132a23;};return a145_0x45f5();}import{buildCustomPageDevelopmentUrl,buildCustomPageEditUrl}from'./shared.js';function a145_0x44e2(_0x4ed5b9,_0x8609){_0x4ed5b9=_0x4ed5b9-0x110;const _0x45f54a=a145_0x45f5();let _0x44e2fd=_0x45f54a[_0x4ed5b9];return _0x44e2fd;}export const pageCustomList={'service':a145_0x3969a1(0x113),'command':a145_0x3969a1(0x124),'description':a145_0x3969a1(0x125),'risk':a145_0x3969a1(0x112),'defaultOutputFormat':a145_0x3969a1(0x121),'structuredErrors':!![],'flags':[APPCODE_FLAG],async 'execute'(_0x27bce7){const _0x2b89f3=a145_0x3969a1,_0x5705d4=(await fetchMenuSnapshot(_0x27bce7['appCode'],_0x27bce7['cookie']))[_0x2b89f3(0x118)][_0x2b89f3(0x110)](_0x390c7d=>{const _0xb8e6b=_0x2b89f3;if(_0x390c7d[_0xb8e6b(0x114)]!=='react'||_0x390c7d[_0xb8e6b(0x117)]==null)return[];const _0x4a8b7b=buildCustomPageDevelopmentUrl(_0x27bce7[_0xb8e6b(0x123)],_0x390c7d[_0xb8e6b(0x11a)]),_0x1dca89=buildCustomPageEditUrl(_0x27bce7[_0xb8e6b(0x123)],_0x390c7d[_0xb8e6b(0x117)]);return[{'pageId':_0x390c7d[_0xb8e6b(0x117)],'label':_0x390c7d['label'],..._0x4a8b7b?{'pageUrl':_0x4a8b7b}:{},..._0x1dca89?{'editPageUrl':_0x1dca89}:{}}];});return{'ok':!![],'data':{'pages':_0x5705d4},'message':_0x5705d4[_0x2b89f3(0x11e)]===0x0?_0x2b89f3(0x115):_0x2b89f3(0x11c)+_0x5705d4[_0x2b89f3(0x11e)]+'\x20Custom\x20Page(s).'};}};
@@ -1 +1 @@
1
- function a145_0x27c7(_0x558aa1,_0x1889b2){_0x558aa1=_0x558aa1-0xa3;const _0x198fed=a145_0x198f();let _0x27c70a=_0x198fed[_0x558aa1];return _0x27c70a;}const a145_0xe612b=a145_0x27c7;(function(_0x52b165,_0x3d3c6b){const _0x5236ed=a145_0x27c7,_0x5a4b0c=_0x52b165();while(!![]){try{const _0x33a098=parseInt(_0x5236ed(0xaf))/0x1*(parseInt(_0x5236ed(0xad))/0x2)+parseInt(_0x5236ed(0xb2))/0x3*(parseInt(_0x5236ed(0xa8))/0x4)+parseInt(_0x5236ed(0xae))/0x5+parseInt(_0x5236ed(0xb6))/0x6+-parseInt(_0x5236ed(0xb0))/0x7*(parseInt(_0x5236ed(0xc9))/0x8)+-parseInt(_0x5236ed(0xc0))/0x9*(parseInt(_0x5236ed(0xbe))/0xa)+-parseInt(_0x5236ed(0xbb))/0xb*(parseInt(_0x5236ed(0xac))/0xc);if(_0x33a098===_0x3d3c6b)break;else _0x5a4b0c['push'](_0x5a4b0c['shift']());}catch(_0x5e0a39){_0x5a4b0c['push'](_0x5a4b0c['shift']());}}}(a145_0x198f,0x42726));import{getCustomPageSource,publishCustomPage}from'../../../core/api-client.js';function a145_0x198f(){const _0x4a030d=['Published\x20successfully,\x20but\x20a\x20link\x20to\x20the\x20published\x20page\x20could\x20not\x20be\x20generated.','FORMAL','20AFUXWX','Publish\x20the\x20latest\x20saved\x20content\x20of\x20a\x20Custom\x20Page','number','status','1644FsCpiW','2Oudehn','1127370VyNjmw','106627CfsRVu','77VtGBoc','/smartapi/webcode/file/publish','115881JxlLXq','remark','page','Published\x20Custom\x20Page\x20','1956198pfeKJj','Custom\x20Page\x20publish\x20did\x20not\x20return\x20the\x20expected\x20page\x20ID.','Published\x20successfully,\x20but\x20a\x20link\x20to\x20the\x20latest\x20saved\x20content\x20could\x20not\x20be\x20generated.','Custom\x20Page\x20publish\x20did\x20not\x20reach\x20published\x20status:\x20','push','14267cHuChs','write','pageId','55270LOuvoX','str','63TzEKIR','Custom\x20Page\x20ID','custom-publish','appCode','POST','warnings','Optional\x20publish\x20remark','runtimePageUrl','page.custom-publish','263800MbSZLY','unknown','trim','isInteger'];a145_0x198f=function(){return _0x4a030d;};return a145_0x198f();}import{CliErrors}from'../../../errors.js';import{buildCustomPageEditUrl,buildCustomPageRuntimeUrl,readCustomPageId,resolveCustomPageDevelopmentUrl}from'./shared.js';export const pageCustomPublish={'service':a145_0xe612b(0xb4),'command':a145_0xe612b(0xc2),'description':a145_0xe612b(0xa9),'risk':a145_0xe612b(0xbc),'defaultOutputFormat':'compress','structuredErrors':!![],'requiresAppCode':![],'flags':[{'name':'id','type':a145_0xe612b(0xaa),'required':!![],'description':a145_0xe612b(0xc1)},{'name':'remark','type':'string','description':a145_0xe612b(0xc6)}],async 'validate'(_0x1d7806){readCustomPageId(_0x1d7806);},async 'dryRun'(_0x2fdab3){const _0x379923=a145_0xe612b,_0x5222e5=readInput(_0x2fdab3);return{'method':_0x379923(0xc4),'url':_0x379923(0xb1),'body':{'id':_0x5222e5[_0x379923(0xbd)],..._0x5222e5[_0x379923(0xb3)]?{'remark':_0x5222e5[_0x379923(0xb3)]}:{}},'description':'Would\x20publish\x20Custom\x20Page\x20'+_0x5222e5[_0x379923(0xbd)]+'.'};},async 'execute'(_0x4626ce){const _0x511d33=a145_0xe612b,_0x2bbc0a=readInput(_0x4626ce);await getCustomPageSource(_0x2bbc0a['pageId']);const _0x2dba47=await publishCustomPage(_0x2bbc0a);if(!Number[_0x511d33(0xa5)](_0x2dba47)||_0x2dba47!==_0x2bbc0a['pageId'])throw CliErrors['apiError'](_0x511d33(0xb7));const _0x4ce62e=await getCustomPageSource(_0x2bbc0a[_0x511d33(0xbd)]);if(_0x4ce62e[_0x511d33(0xab)]!==_0x511d33(0xa7))throw CliErrors['apiError'](_0x511d33(0xb9)+(_0x4ce62e[_0x511d33(0xab)]??_0x511d33(0xa3))+'.');const _0x248fe8=_0x4ce62e[_0x511d33(0xc3)]?.[_0x511d33(0xa4)](),_0x39eb7e=buildCustomPageEditUrl(_0x248fe8,_0x2bbc0a['pageId']),_0x4155df=await resolveCustomPageDevelopmentUrl(_0x248fe8,_0x2bbc0a[_0x511d33(0xbd)],_0x4626ce['cookie']),_0x17d096=buildMutationData(_0x2bbc0a,!![],_0x4155df,_0x39eb7e);_0x248fe8&&!_0x4155df&&_0x17d096['warnings'][_0x511d33(0xba)](_0x511d33(0xb8));const _0x22d028=buildCustomPageRuntimeUrl(_0x4ce62e['appCode'],_0x4ce62e['pageCode']);return _0x22d028?_0x17d096[_0x511d33(0xc7)]=_0x22d028:_0x17d096[_0x511d33(0xc5)][_0x511d33(0xba)](_0x511d33(0xa6)),{'ok':!![],'data':_0x17d096,'message':_0x511d33(0xb5)+_0x2bbc0a['pageId']+'.'};}};function readInput(_0x53e45a){const _0x6f6715=a145_0xe612b,_0x4ee244=readCustomPageId(_0x53e45a),_0x5660f3=_0x53e45a[_0x6f6715(0xbf)](_0x6f6715(0xb3))['trim']();return{'pageId':_0x4ee244,..._0x5660f3?{'remark':_0x5660f3}:{}};}function buildMutationData(_0x282227,_0x2e85cf=![],_0x4b2fcd,_0x23c059){const _0x23f183=a145_0xe612b;return{'operation':_0x23f183(0xc8),'selector':{'pageId':_0x282227[_0x23f183(0xbd)]},'before':null,'after':{'pageId':_0x282227['pageId'],'status':_0x23f183(0xa7)},'dryRun':!_0x2e85cf,'request':_0x282227,..._0x4b2fcd?{'pageUrl':_0x4b2fcd}:{},..._0x23c059?{'editPageUrl':_0x23c059}:{},'warnings':[]};}
1
+ const a146_0x1b1835=a146_0x1091;(function(_0x3bdace,_0x5b5d5a){const _0x3b37ca=a146_0x1091,_0x497b76=_0x3bdace();while(!![]){try{const _0x74759a=parseInt(_0x3b37ca(0x8b))/0x1+parseInt(_0x3b37ca(0x82))/0x2+-parseInt(_0x3b37ca(0x8c))/0x3*(-parseInt(_0x3b37ca(0x7b))/0x4)+parseInt(_0x3b37ca(0x79))/0x5+parseInt(_0x3b37ca(0x81))/0x6+parseInt(_0x3b37ca(0x74))/0x7+parseInt(_0x3b37ca(0x78))/0x8*(-parseInt(_0x3b37ca(0x92))/0x9);if(_0x74759a===_0x5b5d5a)break;else _0x497b76['push'](_0x497b76['shift']());}catch(_0x305cf2){_0x497b76['push'](_0x497b76['shift']());}}}(a146_0x3a9e,0x84bb8));function a146_0x1091(_0x30002c,_0x33dcec){_0x30002c=_0x30002c-0x6f;const _0x3a9e58=a146_0x3a9e();let _0x109161=_0x3a9e58[_0x30002c];return _0x109161;}import{getCustomPageSource,publishCustomPage}from'../../../core/api-client.js';function a146_0x3a9e(){const _0x285a06=['appCode','apiError','5542453oLNzZj','cookie','FORMAL','remark','16ndXpoh','2083985KJlJCX','POST','118848lQpUML','unknown','status','trim','Custom\x20Page\x20publish\x20did\x20not\x20reach\x20published\x20status:\x20','warnings','3460440uJaefd','1186784NcpisZ','/smartapi/webcode/file/publish','push','write','number','compress','Custom\x20Page\x20publish\x20did\x20not\x20return\x20the\x20expected\x20page\x20ID.','pageId','string','208054ONcPwv','12ubkbic','Published\x20Custom\x20Page\x20','page','Would\x20publish\x20Custom\x20Page\x20','Custom\x20Page\x20ID','pageCode','9728721ApZNnJ','Optional\x20publish\x20remark','isInteger','Published\x20successfully,\x20but\x20a\x20link\x20to\x20the\x20latest\x20saved\x20content\x20could\x20not\x20be\x20generated.'];a146_0x3a9e=function(){return _0x285a06;};return a146_0x3a9e();}import{CliErrors}from'../../../errors.js';import{buildCustomPageEditUrl,buildCustomPageRuntimeUrl,readCustomPageId,resolveCustomPageDevelopmentUrl}from'./shared.js';export const pageCustomPublish={'service':a146_0x1b1835(0x8e),'command':'custom-publish','description':'Publish\x20the\x20latest\x20saved\x20content\x20of\x20a\x20Custom\x20Page','risk':a146_0x1b1835(0x85),'defaultOutputFormat':a146_0x1b1835(0x87),'structuredErrors':!![],'requiresAppCode':![],'flags':[{'name':'id','type':a146_0x1b1835(0x86),'required':!![],'description':a146_0x1b1835(0x90)},{'name':'remark','type':a146_0x1b1835(0x8a),'description':a146_0x1b1835(0x6f)}],async 'validate'(_0x32d299){readCustomPageId(_0x32d299);},async 'dryRun'(_0x262d51){const _0x4f665d=a146_0x1b1835,_0x40e417=readInput(_0x262d51);return{'method':_0x4f665d(0x7a),'url':_0x4f665d(0x83),'body':{'id':_0x40e417[_0x4f665d(0x89)],..._0x40e417[_0x4f665d(0x77)]?{'remark':_0x40e417[_0x4f665d(0x77)]}:{}},'description':_0x4f665d(0x8f)+_0x40e417[_0x4f665d(0x89)]+'.'};},async 'execute'(_0x112273){const _0x102bdd=a146_0x1b1835,_0x4cfbf2=readInput(_0x112273);await getCustomPageSource(_0x4cfbf2[_0x102bdd(0x89)]);const _0x4fb710=await publishCustomPage(_0x4cfbf2);if(!Number[_0x102bdd(0x70)](_0x4fb710)||_0x4fb710!==_0x4cfbf2[_0x102bdd(0x89)])throw CliErrors[_0x102bdd(0x73)](_0x102bdd(0x88));const _0x11e75d=await getCustomPageSource(_0x4cfbf2[_0x102bdd(0x89)]);if(_0x11e75d[_0x102bdd(0x7d)]!==_0x102bdd(0x76))throw CliErrors['apiError'](_0x102bdd(0x7f)+(_0x11e75d['status']??_0x102bdd(0x7c))+'.');const _0x3ddb90=_0x11e75d[_0x102bdd(0x72)]?.[_0x102bdd(0x7e)](),_0xbd3f16=buildCustomPageEditUrl(_0x3ddb90,_0x4cfbf2[_0x102bdd(0x89)]),_0x4d0012=await resolveCustomPageDevelopmentUrl(_0x3ddb90,_0x4cfbf2[_0x102bdd(0x89)],_0x112273[_0x102bdd(0x75)]),_0x443c81=buildMutationData(_0x4cfbf2,!![],_0x4d0012,_0xbd3f16);_0x3ddb90&&!_0x4d0012&&_0x443c81[_0x102bdd(0x80)]['push'](_0x102bdd(0x71));const _0x21d583=buildCustomPageRuntimeUrl(_0x11e75d[_0x102bdd(0x72)],_0x11e75d[_0x102bdd(0x91)]);return _0x21d583?_0x443c81['runtimePageUrl']=_0x21d583:_0x443c81[_0x102bdd(0x80)][_0x102bdd(0x84)]('Published\x20successfully,\x20but\x20a\x20link\x20to\x20the\x20published\x20page\x20could\x20not\x20be\x20generated.'),{'ok':!![],'data':_0x443c81,'message':_0x102bdd(0x8d)+_0x4cfbf2['pageId']+'.'};}};function readInput(_0x2ba573){const _0x1df63e=a146_0x1b1835,_0x151855=readCustomPageId(_0x2ba573),_0x45d892=_0x2ba573['str'](_0x1df63e(0x77))[_0x1df63e(0x7e)]();return{'pageId':_0x151855,..._0x45d892?{'remark':_0x45d892}:{}};}function buildMutationData(_0x3cf5a0,_0x13fa5c=![],_0x198550,_0x530598){const _0x1bbd04=a146_0x1b1835;return{'operation':'page.custom-publish','selector':{'pageId':_0x3cf5a0[_0x1bbd04(0x89)]},'before':null,'after':{'pageId':_0x3cf5a0[_0x1bbd04(0x89)],'status':_0x1bbd04(0x76)},'dryRun':!_0x13fa5c,'request':_0x3cf5a0,..._0x198550?{'pageUrl':_0x198550}:{},..._0x530598?{'editPageUrl':_0x530598}:{},'warnings':[]};}
@@ -1 +1 @@
1
- const a146_0x5a50c6=a146_0x4f68;(function(_0x5e301b,_0x4a839a){const _0x2d780f=a146_0x4f68,_0x47ab51=_0x5e301b();while(!![]){try{const _0x38269f=-parseInt(_0x2d780f(0xa6))/0x1*(-parseInt(_0x2d780f(0x9a))/0x2)+parseInt(_0x2d780f(0xac))/0x3*(-parseInt(_0x2d780f(0x9d))/0x4)+-parseInt(_0x2d780f(0xa1))/0x5*(parseInt(_0x2d780f(0x9b))/0x6)+parseInt(_0x2d780f(0xbe))/0x7+-parseInt(_0x2d780f(0xb1))/0x8+-parseInt(_0x2d780f(0xa9))/0x9+parseInt(_0x2d780f(0xba))/0xa*(parseInt(_0x2d780f(0xbc))/0xb);if(_0x38269f===_0x4a839a)break;else _0x47ab51['push'](_0x47ab51['shift']());}catch(_0x20d397){_0x47ab51['push'](_0x47ab51['shift']());}}}(a146_0x1c2c,0xb460d));import{APPCODE_FLAG_OPTIONAL}from'../../../commands/common/flags.js';import{fetchMenuSnapshot}from'../../../commands/menu/shared/facts.js';import{getEnv,isProduction}from'../../../constant/env.js';import{getAppBaseUrl}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':a146_0x5a50c6(0xbb)};function trimOptional(_0x75e1be){const _0x305b14=a146_0x5a50c6;return _0x75e1be?.[_0x305b14(0xae)]()||undefined;}export function buildCustomPageRuntimeUrl(_0x21247a,_0xb176cf){const _0x55f286=a146_0x5a50c6,_0x15459b=trimOptional(_0x21247a),_0x58cb1e=trimOptional(_0xb176cf);if(!_0x15459b||!_0x58cb1e)return undefined;const _0x3a1e0f=isProduction(getEnv())?_0x15459b+'.app.lovrabet.com':_0x15459b+_0x55f286(0x99);return _0x55f286(0xb7)+_0x3a1e0f+'/'+encodeURIComponent(_0x58cb1e);}export function buildCustomPageDevelopmentUrl(_0x593192,_0x3f7992){const _0x2c70f8=trimOptional(_0x593192),_0x27a12c=trimOptional(_0x3f7992);if(!_0x2c70f8||!_0x27a12c)return undefined;return getAppBaseUrl(_0x2c70f8)+'/pages/'+encodeURIComponent(_0x27a12c);}export async function resolveCustomPageDevelopmentUrl(_0x335064,_0x247bd4,_0x1f3710){const _0x29e2fc=a146_0x5a50c6,_0x43286e=trimOptional(_0x335064);if(!_0x43286e)return undefined;try{const _0x16888a=(await fetchMenuSnapshot(_0x43286e,_0x1f3710))['menus'][_0x29e2fc(0xa2)](_0x81b9c5=>_0x81b9c5[_0x29e2fc(0xa8)]===_0x29e2fc(0xb4)&&_0x81b9c5[_0x29e2fc(0xbd)]===_0x247bd4);return buildCustomPageDevelopmentUrl(_0x43286e,_0x16888a?.[_0x29e2fc(0xb3)]);}catch{return undefined;}}export function buildCustomPageEditUrl(_0x3a093f,_0x5e69e8){const _0x5584fd=a146_0x5a50c6,_0x15cf43=trimOptional(_0x3a093f);if(!_0x15cf43)return;const _0x1a8ef3=trimOptional(_0x5e69e8==null?undefined:String(_0x5e69e8));if(!_0x1a8ef3)return;const _0x496f18=isProduction(getEnv())?_0x5584fd(0xb5):'/web-app/app',_0x432115=isProduction(getEnv())?_0x5584fd(0x97):_0x5584fd(0xa0);return''+_0x432115+_0x496f18+'/'+encodeURIComponent(_0x15cf43)+_0x5584fd(0x95)+encodeURIComponent(_0x1a8ef3);}export function parseCustomPageContent(_0x5b71db){const _0x483a5a=a146_0x5a50c6;if(!_0x5b71db[_0x483a5a(0xae)]())throw CliErrors['flagMissing'](_0x483a5a(0x98));let _0x2b29ab;try{_0x2b29ab=JSON[_0x483a5a(0xa3)](_0x5b71db);}catch{throw CliErrors['validation'](_0x483a5a(0xb8));}if(typeof _0x2b29ab!==_0x483a5a(0xab)||_0x2b29ab===null||Array[_0x483a5a(0xb6)](_0x2b29ab)||Object[_0x483a5a(0xb2)](_0x2b29ab)[_0x483a5a(0x9f)](_0x57e3eb=>typeof _0x57e3eb!==_0x483a5a(0xa5)))throw CliErrors[_0x483a5a(0xa4)](_0x483a5a(0x96));return _0x2b29ab;}function a146_0x1c2c(){const _0x1ea0e6=['5QCmWaO','find','parse','validation','string','1GpdpYH','--id\x20must\x20be\x20a\x20positive\x20integer.','type','11297493xXedbx','file','object','50703HSrLEs','isInteger','trim','num','join','11567696lkwJSH','values','path','react','/app','isArray','https://','--page-content\x20must\x20be\x20valid\x20JSON.','message','200CUpyBQ','Optional\x20app\x20code\x20resolved\x20from\x20page\x20ID\x20when\x20omitted','2471678qbAUWY','pageId','5713778gxCnDY','/ide/','--page-content\x20must\x20be\x20a\x20JSON\x20object\x20whose\x20values\x20are\x20file\x20content\x20strings.','https://app.lovrabet.com','page-content','.daily.lovrabet.com','1297276mGCOSg','8217096tGoeIq','length','272bxLihv','map','some','https://daily.lovrabet.com'];a146_0x1c2c=function(){return _0x1ea0e6;};return a146_0x1c2c();}export async function validateCustomPageContent(_0x5e53da){const _0x4003fa=a146_0x5a50c6,_0x2448f8=await validateCustomPageSourceFiles(_0x5e53da);if(_0x2448f8[_0x4003fa(0x9c)]>0x0)throw CliErrors[_0x4003fa(0xa4)]('Invalid\x20Custom\x20Page\x20content:\x20'+_0x2448f8[_0x4003fa(0x9e)](_0x421a59=>_0x421a59[_0x4003fa(0xaa)]+':\x20'+_0x421a59[_0x4003fa(0xb9)])[_0x4003fa(0xb0)](';\x20'));}function a146_0x4f68(_0xa51697,_0x13bb2f){_0xa51697=_0xa51697-0x95;const _0x1c2c1b=a146_0x1c2c();let _0x4f68b6=_0x1c2c1b[_0xa51697];return _0x4f68b6;}export function readCustomPageId(_0x1fae64){const _0x13c05d=a146_0x5a50c6,_0x449ac7=_0x1fae64[_0x13c05d(0xaf)]('id');if(!Number[_0x13c05d(0xad)](_0x449ac7)||_0x449ac7<=0x0)throw CliErrors[_0x13c05d(0xa4)](_0x13c05d(0xa7));return _0x449ac7;}
1
+ function a147_0x1661(_0x39fe97,_0xe26a42){_0x39fe97=_0x39fe97-0xff;const _0x27e313=a147_0x27e3();let _0x1661a0=_0x27e313[_0x39fe97];return _0x1661a0;}const a147_0x40faaf=a147_0x1661;(function(_0x29e8d2,_0x480b88){const _0x50acdd=a147_0x1661,_0x1f91aa=_0x29e8d2();while(!![]){try{const _0x23af6d=-parseInt(_0x50acdd(0x119))/0x1*(parseInt(_0x50acdd(0x122))/0x2)+parseInt(_0x50acdd(0x118))/0x3*(parseInt(_0x50acdd(0x113))/0x4)+-parseInt(_0x50acdd(0x107))/0x5+-parseInt(_0x50acdd(0x10a))/0x6*(-parseInt(_0x50acdd(0x124))/0x7)+parseInt(_0x50acdd(0x115))/0x8+parseInt(_0x50acdd(0x111))/0x9*(-parseInt(_0x50acdd(0x10d))/0xa)+parseInt(_0x50acdd(0x11c))/0xb*(parseInt(_0x50acdd(0x102))/0xc);if(_0x23af6d===_0x480b88)break;else _0x1f91aa['push'](_0x1f91aa['shift']());}catch(_0xfbc78b){_0x1f91aa['push'](_0x1f91aa['shift']());}}}(a147_0x27e3,0xcf282));import{APPCODE_FLAG_OPTIONAL}from'../../../commands/common/flags.js';import{fetchMenuSnapshot}from'../../../commands/menu/shared/facts.js';import{getEnv,isProduction}from'../../../constant/env.js';import{getAppBaseUrl}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':a147_0x40faaf(0x11e)};function a147_0x27e3(){const _0xc6ed5a=['validation','https://','.app.lovrabet.com','9zZrNPG','https://app.lovrabet.com','127452qGrjKp','pageId','2205248jpkgPB','values','some','111jMnaxE','799566qONgiP','isInteger','flagMissing','24182301UoqygC','length','Optional\x20app\x20code\x20resolved\x20from\x20page\x20ID\x20when\x20omitted','trim','/ide/','object','4qMdTEO','path','2219YiMydH','menus','--page-content\x20must\x20be\x20valid\x20JSON.','/pages/','file','find','/app','parse','12tFwBCU','--page-content\x20must\x20be\x20a\x20JSON\x20object\x20whose\x20values\x20are\x20file\x20content\x20strings.','isArray','map','join','5528825NjHMFE','num','--id\x20must\x20be\x20a\x20positive\x20integer.','1212NXDkEG','/web-app/app','page-content','1636010nVjAGM'];a147_0x27e3=function(){return _0xc6ed5a;};return a147_0x27e3();}function trimOptional(_0x39a7a0){const _0x3c4c7d=a147_0x40faaf;return _0x39a7a0?.[_0x3c4c7d(0x11f)]()||undefined;}export function buildCustomPageRuntimeUrl(_0x7fa122,_0x1dec8a){const _0x63db93=a147_0x40faaf,_0x300a0e=trimOptional(_0x7fa122),_0x55ef21=trimOptional(_0x1dec8a);if(!_0x300a0e||!_0x55ef21)return undefined;const _0x2cbd74=isProduction(getEnv())?_0x300a0e+_0x63db93(0x110):_0x300a0e+'.daily.lovrabet.com';return _0x63db93(0x10f)+_0x2cbd74+'/'+encodeURIComponent(_0x55ef21);}export function buildCustomPageDevelopmentUrl(_0x46e227,_0x2febab){const _0x507264=a147_0x40faaf,_0x579efc=trimOptional(_0x46e227),_0xd10eed=trimOptional(_0x2febab);if(!_0x579efc||!_0xd10eed)return undefined;return getAppBaseUrl(_0x579efc)+_0x507264(0x127)+encodeURIComponent(_0xd10eed);}export async function resolveCustomPageDevelopmentUrl(_0x2b64d1,_0x48dd9a,_0x218458){const _0x238e5c=a147_0x40faaf,_0x239e2d=trimOptional(_0x2b64d1);if(!_0x239e2d)return undefined;try{const _0x3681f2=(await fetchMenuSnapshot(_0x239e2d,_0x218458))[_0x238e5c(0x125)][_0x238e5c(0xff)](_0x4b6ec0=>_0x4b6ec0['type']==='react'&&_0x4b6ec0[_0x238e5c(0x114)]===_0x48dd9a);return buildCustomPageDevelopmentUrl(_0x239e2d,_0x3681f2?.[_0x238e5c(0x123)]);}catch{return undefined;}}export function buildCustomPageEditUrl(_0x45d7f9,_0x1868cb){const _0x5a8eec=a147_0x40faaf,_0x11cb9f=trimOptional(_0x45d7f9);if(!_0x11cb9f)return;const _0x168035=trimOptional(_0x1868cb==null?undefined:String(_0x1868cb));if(!_0x168035)return;const _0x3fb243=isProduction(getEnv())?_0x5a8eec(0x100):_0x5a8eec(0x10b),_0x2d6e6e=isProduction(getEnv())?_0x5a8eec(0x112):'https://daily.lovrabet.com';return''+_0x2d6e6e+_0x3fb243+'/'+encodeURIComponent(_0x11cb9f)+_0x5a8eec(0x120)+encodeURIComponent(_0x168035);}export function parseCustomPageContent(_0x22f997){const _0x17b7aa=a147_0x40faaf;if(!_0x22f997[_0x17b7aa(0x11f)]())throw CliErrors[_0x17b7aa(0x11b)](_0x17b7aa(0x10c));let _0xfbbb49;try{_0xfbbb49=JSON[_0x17b7aa(0x101)](_0x22f997);}catch{throw CliErrors[_0x17b7aa(0x10e)](_0x17b7aa(0x126));}if(typeof _0xfbbb49!==_0x17b7aa(0x121)||_0xfbbb49===null||Array[_0x17b7aa(0x104)](_0xfbbb49)||Object[_0x17b7aa(0x116)](_0xfbbb49)[_0x17b7aa(0x117)](_0x1838b0=>typeof _0x1838b0!=='string'))throw CliErrors[_0x17b7aa(0x10e)](_0x17b7aa(0x103));return _0xfbbb49;}export async function validateCustomPageContent(_0x4bb38a){const _0x849c1=a147_0x40faaf,_0xe7b1ca=await validateCustomPageSourceFiles(_0x4bb38a);if(_0xe7b1ca[_0x849c1(0x11d)]>0x0)throw CliErrors['validation']('Invalid\x20Custom\x20Page\x20content:\x20'+_0xe7b1ca[_0x849c1(0x105)](_0xd2524d=>_0xd2524d[_0x849c1(0x128)]+':\x20'+_0xd2524d['message'])[_0x849c1(0x106)](';\x20'));}export function readCustomPageId(_0x25b333){const _0x4f09ce=a147_0x40faaf,_0x5e5c16=_0x25b333[_0x4f09ce(0x108)]('id');if(!Number[_0x4f09ce(0x11a)](_0x5e5c16)||_0x5e5c16<=0x0)throw CliErrors['validation'](_0x4f09ce(0x109));return _0x5e5c16;}
@@ -1 +1 @@
1
- const a147_0x5194ff=a147_0xa4cb;(function(_0x2ab866,_0x4c04d2){const _0x2a8c47=a147_0xa4cb,_0x19bee3=_0x2ab866();while(!![]){try{const _0x1e7b85=-parseInt(_0x2a8c47(0xa1))/0x1+parseInt(_0x2a8c47(0xb1))/0x2*(parseInt(_0x2a8c47(0xab))/0x3)+-parseInt(_0x2a8c47(0xac))/0x4+-parseInt(_0x2a8c47(0xa3))/0x5*(-parseInt(_0x2a8c47(0xa6))/0x6)+-parseInt(_0x2a8c47(0xa5))/0x7+parseInt(_0x2a8c47(0xaf))/0x8+-parseInt(_0x2a8c47(0xa2))/0x9*(-parseInt(_0x2a8c47(0xb3))/0xa);if(_0x1e7b85===_0x4c04d2)break;else _0x19bee3['push'](_0x19bee3['shift']());}catch(_0x3033f4){_0x19bee3['push'](_0x19bee3['shift']());}}}(a147_0x589f,0xad8c2));import{format}from'prettier';const SOURCE_PARSERS={'.js':a147_0x5194ff(0xaa),'.jsx':a147_0x5194ff(0xaa),'.ts':'typescript','.tsx':a147_0x5194ff(0x9e)},CUSTOM_PAGE_EXTENSIONS=[a147_0x5194ff(0xa8),a147_0x5194ff(0xb0)];function a147_0xa4cb(_0x155d8d,_0x2ce31c){_0x155d8d=_0x155d8d-0x9d;const _0x589f29=a147_0x589f();let _0xa4cb03=_0x589f29[_0x155d8d];return _0xa4cb03;}export async function validateCustomPageSourceFiles(_0x3a52ce){const _0x15073d=a147_0x5194ff,_0x5db6b6=Object['entries'](_0x3a52ce)[_0x15073d(0xa0)](([_0x1240cd])=>getParser(_0x1240cd));if(!_0x5db6b6['some'](([_0x4265c0])=>isReactSourceFile(_0x4265c0)))return[{'file':_0x15073d(0xb2),'message':'Missing\x20React\x20source\x20file\x20with\x20extension\x20.jsx\x20or\x20.tsx'}];const _0x577bde=await Promise[_0x15073d(0xae)](_0x5db6b6[_0x15073d(0xa4)](async([_0x210aba,_0x2f5cf3])=>{try{return await format(_0x2f5cf3,{'parser':getParser(_0x210aba)}),undefined;}catch(_0x1d1ccb){return{'file':_0x210aba,'message':_0x1d1ccb instanceof Error?_0x1d1ccb['message']:String(_0x1d1ccb)};}}));return _0x577bde['filter'](_0x67805e=>_0x67805e!==undefined);}function a147_0x589f(){const _0x100c80=['18TqnfPF','find','.jsx','some','babel','3874449unNDsM','5621796HoDjVN','trim','all','5704232jyrnFQ','.tsx','2AnPlCT','page-content','3098740iFwnuK','endsWith','entries','typescript','toLowerCase','filter','1052564ozhETy','63cMRUsj','551275inNZon','map','9348724vQywWR'];a147_0x589f=function(){return _0x100c80;};return a147_0x589f();}function getParser(_0x3f1f67){const _0x36af57=a147_0x5194ff,_0x37eafc=_0x3f1f67[_0x36af57(0xad)]()[_0x36af57(0x9f)]();return Object[_0x36af57(0x9d)](SOURCE_PARSERS)[_0x36af57(0xa7)](([_0x28cd1d])=>_0x37eafc[_0x36af57(0xb4)](_0x28cd1d))?.[0x1];}function isReactSourceFile(_0x174eff){const _0x456fec=a147_0x5194ff,_0x4c1cf2=_0x174eff[_0x456fec(0xad)]()[_0x456fec(0x9f)]();return CUSTOM_PAGE_EXTENSIONS[_0x456fec(0xa9)](_0x541f01=>_0x4c1cf2['endsWith'](_0x541f01));}
1
+ const a148_0x459ff7=a148_0x7a0f;(function(_0x35ec6a,_0x548856){const _0x232464=a148_0x7a0f,_0x365d07=_0x35ec6a();while(!![]){try{const _0x56fed0=parseInt(_0x232464(0x1cd))/0x1*(-parseInt(_0x232464(0x1d8))/0x2)+parseInt(_0x232464(0x1cf))/0x3+-parseInt(_0x232464(0x1c8))/0x4*(-parseInt(_0x232464(0x1c6))/0x5)+parseInt(_0x232464(0x1d7))/0x6+-parseInt(_0x232464(0x1dd))/0x7+-parseInt(_0x232464(0x1ca))/0x8*(parseInt(_0x232464(0x1de))/0x9)+-parseInt(_0x232464(0x1cc))/0xa*(parseInt(_0x232464(0x1d0))/0xb);if(_0x56fed0===_0x548856)break;else _0x365d07['push'](_0x365d07['shift']());}catch(_0x4ac9d2){_0x365d07['push'](_0x365d07['shift']());}}}(a148_0x539b,0xf2718));function a148_0x539b(){const _0x26f535=['.jsx','endsWith','toLowerCase','entries','4207238iHASyQ','18TXCfrP','425mZkdtn','message','72484DzutYp','filter','5680032WYHZrv','typescript','4313080wHRYVA','2106phUwqv','Missing\x20React\x20source\x20file\x20with\x20extension\x20.jsx\x20or\x20.tsx','3828300QBBejy','11vmFmKX','some','all','.tsx','page-content','babel','trim','5303034BwyMgz','242dxRkIj'];a148_0x539b=function(){return _0x26f535;};return a148_0x539b();}import{format}from'prettier';const SOURCE_PARSERS={'.js':a148_0x459ff7(0x1d5),'.jsx':a148_0x459ff7(0x1d5),'.ts':a148_0x459ff7(0x1cb),'.tsx':a148_0x459ff7(0x1cb)},CUSTOM_PAGE_EXTENSIONS=[a148_0x459ff7(0x1d9),a148_0x459ff7(0x1d3)];export async function validateCustomPageSourceFiles(_0x5c00bb){const _0x4da8cf=a148_0x459ff7,_0x34b605=Object[_0x4da8cf(0x1dc)](_0x5c00bb)[_0x4da8cf(0x1c9)](([_0x4e4f3c])=>getParser(_0x4e4f3c));if(!_0x34b605[_0x4da8cf(0x1d1)](([_0x46c252])=>isReactSourceFile(_0x46c252)))return[{'file':_0x4da8cf(0x1d4),'message':_0x4da8cf(0x1ce)}];const _0x31d805=await Promise[_0x4da8cf(0x1d2)](_0x34b605['map'](async([_0x352498,_0x3f86ab])=>{const _0x332e20=_0x4da8cf;try{return await format(_0x3f86ab,{'parser':getParser(_0x352498)}),undefined;}catch(_0x3fa997){return{'file':_0x352498,'message':_0x3fa997 instanceof Error?_0x3fa997[_0x332e20(0x1c7)]:String(_0x3fa997)};}}));return _0x31d805[_0x4da8cf(0x1c9)](_0x502627=>_0x502627!==undefined);}function a148_0x7a0f(_0x3a0753,_0x318dc8){_0x3a0753=_0x3a0753-0x1c6;const _0x539bd7=a148_0x539b();let _0x7a0ffd=_0x539bd7[_0x3a0753];return _0x7a0ffd;}function getParser(_0x55c8d5){const _0x3c93b7=a148_0x459ff7,_0x46885e=_0x55c8d5[_0x3c93b7(0x1d6)]()[_0x3c93b7(0x1db)]();return Object['entries'](SOURCE_PARSERS)['find'](([_0x374fb1])=>_0x46885e[_0x3c93b7(0x1da)](_0x374fb1))?.[0x1];}function isReactSourceFile(_0x1eb9e2){const _0x308aab=a148_0x459ff7,_0x1c2df2=_0x1eb9e2[_0x308aab(0x1d6)]()[_0x308aab(0x1db)]();return CUSTOM_PAGE_EXTENSIONS['some'](_0x51d0e7=>_0x1c2df2['endsWith'](_0x51d0e7));}
@@ -1 +1 @@
1
- function a148_0x255f(){const _0x4d8ad6=['pageDescription','290725NehvDU','export\x20const\x20locales\x20=\x20{\x0a','This\x20is\x20a\x20basic\x20page\x20template,\x20you\x20can\x20develop\x20based\x20on\x20it.','4556904CehUJP','これは基本ページテンプレートです。あなたは、これに基づいて開発できます。','en-US','11496kbZqeD','137AHEamU','18womSQO','326xihGMU','1960448GTDdtD','ja-JP','1701smXLaa','590YQPtAF','Ini\x20adalah\x20sebuah\x20halaman\x20dasar.\x20Anda\x20dapat\x20mengembangkan\x20ini.','Bu\x20bir\x20temel\x20sayfa\x20şablonudur.\x20Bu\x20temaplana\x20dayanarak\x20geliştirilebilir.','\x0a};\x0a','806301QRCtXo','4qACPOZ','join','id-ID','stringify','zh-CN','41239HwKXxh','tr-TR',':\x20{\x0a\x20\x20\x20\x20'];a148_0x255f=function(){return _0x4d8ad6;};return a148_0x255f();}(function(_0x11ec93,_0x493210){const _0x16d5f8=a148_0x5cf3,_0x4805ce=_0x11ec93();while(!![]){try{const _0x2bdbf4=-parseInt(_0x16d5f8(0x101))/0x1*(parseInt(_0x16d5f8(0x103))/0x2)+-parseInt(_0x16d5f8(0xf0))/0x3*(parseInt(_0x16d5f8(0xf1))/0x4)+parseInt(_0x16d5f8(0xfa))/0x5*(-parseInt(_0x16d5f8(0x102))/0x6)+parseInt(_0x16d5f8(0x104))/0x7+-parseInt(_0x16d5f8(0x100))/0x8*(parseInt(_0x16d5f8(0x106))/0x9)+-parseInt(_0x16d5f8(0xec))/0xa*(-parseInt(_0x16d5f8(0xf6))/0xb)+parseInt(_0x16d5f8(0xfd))/0xc;if(_0x2bdbf4===_0x493210)break;else _0x4805ce['push'](_0x4805ce['shift']());}catch(_0x549966){_0x4805ce['push'](_0x4805ce['shift']());}}}(a148_0x255f,0x231ff));function buildIndexFile(_0x13d1ef){return'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}>{'+JSON['stringify'](_0x13d1ef)+'}</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';}function buildStyleFile(){return'.page-container\x20{\x0a\x20\x20padding:\x2024px;\x0a\x20\x20background:\x20#f0f2f5;\x0a\x20\x20min-height:\x20100vh;\x0a}\x0a';}function buildLocalesFile(_0x2d35f3){const _0x9c7016=a148_0x5cf3,_0x22bf2e=_0x2d35f3['map'](_0x5d4e03=>{const _0x5405bd=a148_0x5cf3;let _0x30bd7e='';switch(_0x5d4e03){case _0x5405bd(0xf5):_0x30bd7e='这是一个基础页面模板,你可以在此基础上进行开发。';break;case _0x5405bd(0xff):_0x30bd7e=_0x5405bd(0xfc);break;case _0x5405bd(0x105):_0x30bd7e=_0x5405bd(0xfe);break;case _0x5405bd(0xf7):_0x30bd7e=_0x5405bd(0xee);break;case _0x5405bd(0xf3):_0x30bd7e=_0x5405bd(0xed);break;default:_0x30bd7e=_0x5405bd(0xfc);}return'\x20\x20'+JSON[_0x5405bd(0xf4)](_0x5d4e03)+_0x5405bd(0xf8)+JSON['stringify'](_0x5405bd(0xf9))+':\x20'+JSON[_0x5405bd(0xf4)](_0x30bd7e)+',\x0a\x20\x20}';})[_0x9c7016(0xf2)](',\x0a');return _0x9c7016(0xfb)+_0x22bf2e+_0x9c7016(0xef);}function a148_0x5cf3(_0x4e6b11,_0x2ef961){_0x4e6b11=_0x4e6b11-0xec;const _0x255fd0=a148_0x255f();let _0x5cf352=_0x255fd0[_0x4e6b11];return _0x5cf352;}export function buildInitialFiles(_0x4a3167,_0x1f8672){return{'src/app/index.jsx':buildIndexFile(_0x4a3167),'src/app/index.css':buildStyleFile(),'src/locales/index.js':buildLocalesFile(_0x1f8672)};}
1
+ (function(_0x5de850,_0x2274f1){const _0x66756d=a149_0x1a8e,_0x4c28ab=_0x5de850();while(!![]){try{const _0x388e4d=parseInt(_0x66756d(0x19b))/0x1*(-parseInt(_0x66756d(0x195))/0x2)+-parseInt(_0x66756d(0x1a2))/0x3+parseInt(_0x66756d(0x189))/0x4*(-parseInt(_0x66756d(0x194))/0x5)+parseInt(_0x66756d(0x18b))/0x6+parseInt(_0x66756d(0x19e))/0x7+-parseInt(_0x66756d(0x19a))/0x8*(parseInt(_0x66756d(0x1a1))/0x9)+parseInt(_0x66756d(0x197))/0xa*(parseInt(_0x66756d(0x190))/0xb);if(_0x388e4d===_0x2274f1)break;else _0x4c28ab['push'](_0x4c28ab['shift']());}catch(_0x1f439a){_0x4c28ab['push'](_0x4c28ab['shift']());}}}(a149_0x3297,0xea5c1));function buildIndexFile(_0x2ad6e0){const _0x54b41b=a149_0x1a8e;return'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}>{'+JSON[_0x54b41b(0x196)](_0x2ad6e0)+'}</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';}function buildStyleFile(){const _0x4b1227=a149_0x1a8e;return _0x4b1227(0x1a4);}function a149_0x1a8e(_0x386b55,_0x4b615d){_0x386b55=_0x386b55-0x189;const _0x32973f=a149_0x3297();let _0x1a8e39=_0x32973f[_0x386b55];return _0x1a8e39;}function buildLocalesFile(_0x75ff7a){const _0xa03f4a=a149_0x1a8e,_0x407da0=_0x75ff7a[_0xa03f4a(0x1a3)](_0x123c1a=>{const _0x24245c=_0xa03f4a;let _0x5e8eb8='';switch(_0x123c1a){case _0x24245c(0x19f):_0x5e8eb8=_0x24245c(0x18f);break;case _0x24245c(0x192):_0x5e8eb8=_0x24245c(0x199);break;case _0x24245c(0x18d):_0x5e8eb8=_0x24245c(0x19d);break;case _0x24245c(0x19c):_0x5e8eb8='Bu\x20bir\x20temel\x20sayfa\x20şablonudur.\x20Bu\x20temaplana\x20dayanarak\x20geliştirilebilir.';break;case _0x24245c(0x191):_0x5e8eb8='Ini\x20adalah\x20sebuah\x20halaman\x20dasar.\x20Anda\x20dapat\x20mengembangkan\x20ini.';break;default:_0x5e8eb8=_0x24245c(0x199);}return'\x20\x20'+JSON[_0x24245c(0x196)](_0x123c1a)+_0x24245c(0x198)+JSON[_0x24245c(0x196)](_0x24245c(0x18a))+':\x20'+JSON['stringify'](_0x5e8eb8)+_0x24245c(0x1a0);})[_0xa03f4a(0x18e)](',\x0a');return _0xa03f4a(0x193)+_0x407da0+_0xa03f4a(0x18c);}function a149_0x3297(){const _0x403ccf=['stringify','20NrSGni',':\x20{\x0a\x20\x20\x20\x20','This\x20is\x20a\x20basic\x20page\x20template,\x20you\x20can\x20develop\x20based\x20on\x20it.','8Zukwur','4153oLnEJW','tr-TR','これは基本ページテンプレートです。あなたは、これに基づいて開発できます。','3159982vunAZj','zh-CN',',\x0a\x20\x20}','11012193JsRZRf','1108932zZBRkm','map','.page-container\x20{\x0a\x20\x20padding:\x2024px;\x0a\x20\x20background:\x20#f0f2f5;\x0a\x20\x20min-height:\x20100vh;\x0a}\x0a','760724INWRLw','pageDescription','7528170aoXeWx','\x0a};\x0a','ja-JP','join','这是一个基础页面模板,你可以在此基础上进行开发。','15169055POmhIH','id-ID','en-US','export\x20const\x20locales\x20=\x20{\x0a','45BjLTjN','96HEZYNr'];a149_0x3297=function(){return _0x403ccf;};return a149_0x3297();}export function buildInitialFiles(_0x1aa1da,_0x58e9ea){return{'src/app/index.jsx':buildIndexFile(_0x1aa1da),'src/app/index.css':buildStyleFile(),'src/locales/index.js':buildLocalesFile(_0x58e9ea)};}
@@ -1 +1 @@
1
- const a149_0x557bbf=a149_0x23cc;(function(_0x1d0253,_0x230f8b){const _0x24f8bb=a149_0x23cc,_0x37ceb2=_0x1d0253();while(!![]){try{const _0x3fbab4=-parseInt(_0x24f8bb(0x183))/0x1*(parseInt(_0x24f8bb(0x170))/0x2)+-parseInt(_0x24f8bb(0x16f))/0x3+parseInt(_0x24f8bb(0x179))/0x4+-parseInt(_0x24f8bb(0x16b))/0x5*(-parseInt(_0x24f8bb(0x167))/0x6)+-parseInt(_0x24f8bb(0x174))/0x7+parseInt(_0x24f8bb(0x184))/0x8*(parseInt(_0x24f8bb(0x180))/0x9)+-parseInt(_0x24f8bb(0x165))/0xa*(parseInt(_0x24f8bb(0x164))/0xb);if(_0x3fbab4===_0x230f8b)break;else _0x37ceb2['push'](_0x37ceb2['shift']());}catch(_0x4bfc1b){_0x37ceb2['push'](_0x37ceb2['shift']());}}}(a149_0x4d40,0xd78d1));import{getCustomPageSource,updateCustomPageContent}from'../../../core/api-client.js';function a149_0x4d40(){const _0x4b2404=['Cannot\x20determine\x20the\x20appCode\x20for\x20Custom\x20Page\x20','Save\x20all\x20files\x20of\x20a\x20Custom\x20Page','pageContent','number','45nLigWc','POST','Custom\x20Page\x20update\x20did\x20not\x20create\x20a\x20new\x20version.','17cUhwAW','529264JVjKCS','str','887557bLMJqw','80EVMOAu','Custom\x20Page\x20was\x20updated,\x20but\x20a\x20link\x20to\x20its\x20latest\x20saved\x20content\x20could\x20not\x20be\x20generated.','6KffDEf','apiError','Custom\x20Page\x20ID','custom-update','4003715AmHpzD','trim','Updated\x20Custom\x20Page\x20','appCode','114654WjRSju','48tYcUkZ','pageId','/smartapi/webcode/page/update/content','string','2322922pQMwtr','cookie','validation','appcode','page-content','3069328AZhyoP','Complete\x20page\x20files\x20as\x20JSON','write'];a149_0x4d40=function(){return _0x4b2404;};return a149_0x4d40();}import{CliErrors}from'../../../errors.js';function a149_0x23cc(_0x135567,_0x43ea0e){_0x135567=_0x135567-0x163;const _0x4d4096=a149_0x4d40();let _0x23cc5d=_0x4d4096[_0x135567];return _0x23cc5d;}import{buildCustomPageEditUrl,parseCustomPageContent,resolveCustomPageDevelopmentUrl,readCustomPageId,CUSTOM_PAGE_APPCODE_FLAG_OPTIONAL,validateCustomPageContent}from'./shared.js';export const pageCustomUpdate={'service':'page','command':a149_0x557bbf(0x16a),'description':a149_0x557bbf(0x17d),'risk':a149_0x557bbf(0x17b),'defaultOutputFormat':'compress','structuredErrors':!![],'requiresAppCode':![],'flags':[{'name':'id','type':a149_0x557bbf(0x17f),'required':!![],'description':a149_0x557bbf(0x169)},{'name':a149_0x557bbf(0x178),'type':a149_0x557bbf(0x173),'required':!![],'description':a149_0x557bbf(0x17a)},CUSTOM_PAGE_APPCODE_FLAG_OPTIONAL],async 'validate'(_0x5a1541){const _0x5c134c=a149_0x557bbf;readCustomPageId(_0x5a1541),await validateCustomPageContent(parseCustomPageContent(_0x5a1541[_0x5c134c(0x163)]('page-content')));},async 'dryRun'(_0x5e998c){const _0x38a3f6=a149_0x557bbf,_0x5ebb62=await readInput(_0x5e998c);return{'method':_0x38a3f6(0x181),'url':_0x38a3f6(0x172),'body':{'id':_0x5ebb62[_0x38a3f6(0x171)],'codeContent':_0x5ebb62[_0x38a3f6(0x17e)]},'description':'Would\x20save\x20all\x20files\x20of\x20Custom\x20Page\x20'+_0x5ebb62[_0x38a3f6(0x171)]+'.'};},async 'execute'(_0x3bf417){const _0x2550ff=a149_0x557bbf,_0x360fef=await readInput(_0x3bf417),_0x340a6c=await updateCustomPageContent({'pageId':_0x360fef['pageId'],'pageContent':_0x360fef[_0x2550ff(0x17e)]});if(!Number['isInteger'](_0x340a6c['newVersion'])||_0x340a6c['newVersion']<=0x0)throw CliErrors[_0x2550ff(0x168)](_0x2550ff(0x182));const _0x14f5b5=buildCustomPageEditUrl(_0x360fef['appCode'],_0x360fef[_0x2550ff(0x171)]),_0x1d18b6=await resolveCustomPageDevelopmentUrl(_0x360fef['appCode'],_0x360fef[_0x2550ff(0x171)],_0x3bf417[_0x2550ff(0x175)]);return{'ok':!![],'data':buildMutationData(_0x360fef,_0x340a6c,_0x1d18b6,_0x14f5b5,_0x1d18b6?[]:[_0x2550ff(0x166)]),'message':_0x2550ff(0x16d)+_0x360fef[_0x2550ff(0x171)]+'.'};}};async function readInput(_0x16a367){const _0x531de3=a149_0x557bbf,_0x44054d=readCustomPageId(_0x16a367),_0x4ce430=_0x16a367[_0x531de3(0x163)](_0x531de3(0x177))[_0x531de3(0x16c)]()||(await getCustomPageSource(_0x44054d))[_0x531de3(0x16e)]?.[_0x531de3(0x16c)]();if(!_0x4ce430)throw CliErrors[_0x531de3(0x176)](_0x531de3(0x17c)+_0x44054d+'.');return{'appCode':_0x4ce430,'pageId':_0x44054d,'pageContent':parseCustomPageContent(_0x16a367['str'](_0x531de3(0x178)))};}function buildMutationData(_0x476a15,_0x3c2f17,_0x196957,_0x331aa8,_0x188109=[]){const _0x483062=a149_0x557bbf;return{'operation':'page.custom-update','selector':{'appCode':_0x476a15[_0x483062(0x16e)],'pageId':_0x476a15[_0x483062(0x171)]},'before':null,'after':{'pageId':_0x3c2f17?.[_0x483062(0x171)]??_0x476a15[_0x483062(0x171)],'version':_0x3c2f17?.['newVersion']??null,'pageContent':_0x476a15[_0x483062(0x17e)]},'dryRun':_0x3c2f17===undefined,'request':_0x476a15,..._0x196957?{'pageUrl':_0x196957}:{},..._0x331aa8?{'editPageUrl':_0x331aa8}:{},'warnings':_0x188109};}
1
+ const a150_0xc519d1=a150_0x504c;(function(_0x13b109,_0x298b37){const _0x410c01=a150_0x504c,_0x524d32=_0x13b109();while(!![]){try{const _0x26d848=-parseInt(_0x410c01(0x161))/0x1+-parseInt(_0x410c01(0x154))/0x2+parseInt(_0x410c01(0x15d))/0x3*(parseInt(_0x410c01(0x147))/0x4)+-parseInt(_0x410c01(0x144))/0x5+parseInt(_0x410c01(0x148))/0x6+-parseInt(_0x410c01(0x15b))/0x7+parseInt(_0x410c01(0x150))/0x8*(parseInt(_0x410c01(0x160))/0x9);if(_0x26d848===_0x298b37)break;else _0x524d32['push'](_0x524d32['shift']());}catch(_0x35f4d5){_0x524d32['push'](_0x524d32['shift']());}}}(a150_0x4a11,0x54b06));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';export const pageCustomUpdate={'service':a150_0xc519d1(0x156),'command':a150_0xc519d1(0x15f),'description':'Save\x20all\x20files\x20of\x20a\x20Custom\x20Page','risk':a150_0xc519d1(0x158),'defaultOutputFormat':a150_0xc519d1(0x157),'structuredErrors':!![],'requiresAppCode':![],'flags':[{'name':'id','type':a150_0xc519d1(0x145),'required':!![],'description':a150_0xc519d1(0x15a)},{'name':a150_0xc519d1(0x149),'type':a150_0xc519d1(0x152),'required':!![],'description':a150_0xc519d1(0x159)},CUSTOM_PAGE_APPCODE_FLAG_OPTIONAL],async 'validate'(_0x221f5c){const _0x4dc065=a150_0xc519d1;readCustomPageId(_0x221f5c),await validateCustomPageContent(parseCustomPageContent(_0x221f5c[_0x4dc065(0x146)](_0x4dc065(0x149))));},async 'dryRun'(_0x388828){const _0x44b43d=a150_0xc519d1,_0x4987ff=await readInput(_0x388828);return{'method':_0x44b43d(0x14c),'url':_0x44b43d(0x153),'body':{'id':_0x4987ff[_0x44b43d(0x14f)],'codeContent':_0x4987ff['pageContent']},'description':'Would\x20save\x20all\x20files\x20of\x20Custom\x20Page\x20'+_0x4987ff[_0x44b43d(0x14f)]+'.'};},async 'execute'(_0x3f7415){const _0x5a9b9d=a150_0xc519d1,_0xc07ca6=await readInput(_0x3f7415),_0x5b4e9b=await updateCustomPageContent({'pageId':_0xc07ca6[_0x5a9b9d(0x14f)],'pageContent':_0xc07ca6[_0x5a9b9d(0x155)]});if(!Number[_0x5a9b9d(0x14e)](_0x5b4e9b['newVersion'])||_0x5b4e9b[_0x5a9b9d(0x15e)]<=0x0)throw CliErrors[_0x5a9b9d(0x163)]('Custom\x20Page\x20update\x20did\x20not\x20create\x20a\x20new\x20version.');const _0x5cefd2=buildCustomPageEditUrl(_0xc07ca6[_0x5a9b9d(0x14b)],_0xc07ca6[_0x5a9b9d(0x14f)]),_0x2034b4=await resolveCustomPageDevelopmentUrl(_0xc07ca6['appCode'],_0xc07ca6[_0x5a9b9d(0x14f)],_0x3f7415[_0x5a9b9d(0x151)]);return{'ok':!![],'data':buildMutationData(_0xc07ca6,_0x5b4e9b,_0x2034b4,_0x5cefd2,_0x2034b4?[]:[_0x5a9b9d(0x162)]),'message':'Updated\x20Custom\x20Page\x20'+_0xc07ca6[_0x5a9b9d(0x14f)]+'.'};}};async function readInput(_0x1b96d2){const _0x59a8f6=a150_0xc519d1,_0x2da16d=readCustomPageId(_0x1b96d2),_0xa1ae82=_0x1b96d2[_0x59a8f6(0x146)]('appcode')[_0x59a8f6(0x15c)]()||(await getCustomPageSource(_0x2da16d))[_0x59a8f6(0x14b)]?.[_0x59a8f6(0x15c)]();if(!_0xa1ae82)throw CliErrors['validation'](_0x59a8f6(0x14d)+_0x2da16d+'.');return{'appCode':_0xa1ae82,'pageId':_0x2da16d,'pageContent':parseCustomPageContent(_0x1b96d2['str'](_0x59a8f6(0x149)))};}function buildMutationData(_0x1120f5,_0x45f26a,_0xa8cfe9,_0x780e64,_0x1d8ed2=[]){const _0xa7c5a5=a150_0xc519d1;return{'operation':_0xa7c5a5(0x14a),'selector':{'appCode':_0x1120f5[_0xa7c5a5(0x14b)],'pageId':_0x1120f5[_0xa7c5a5(0x14f)]},'before':null,'after':{'pageId':_0x45f26a?.[_0xa7c5a5(0x14f)]??_0x1120f5['pageId'],'version':_0x45f26a?.[_0xa7c5a5(0x15e)]??null,'pageContent':_0x1120f5['pageContent']},'dryRun':_0x45f26a===undefined,'request':_0x1120f5,..._0xa8cfe9?{'pageUrl':_0xa8cfe9}:{},..._0x780e64?{'editPageUrl':_0x780e64}:{},'warnings':_0x1d8ed2};}function a150_0x504c(_0x39b47a,_0x4baca6){_0x39b47a=_0x39b47a-0x144;const _0x4a1190=a150_0x4a11();let _0x504c5c=_0x4a1190[_0x39b47a];return _0x504c5c;}function a150_0x4a11(){const _0x347ecc=['cookie','string','/smartapi/webcode/page/update/content','92674YyKuvQ','pageContent','page','compress','write','Complete\x20page\x20files\x20as\x20JSON','Custom\x20Page\x20ID','282338YXSXHq','trim','115557heMAhv','newVersion','custom-update','148698hKbwpD','588058qVlMLh','Custom\x20Page\x20was\x20updated,\x20but\x20a\x20link\x20to\x20its\x20latest\x20saved\x20content\x20could\x20not\x20be\x20generated.','apiError','2929450FyUxsE','number','str','20TmyOCu','2442408sIlcLp','page-content','page.custom-update','appCode','POST','Cannot\x20determine\x20the\x20appCode\x20for\x20Custom\x20Page\x20','isInteger','pageId','488nnPpMM'];a150_0x4a11=function(){return _0x347ecc;};return a150_0x4a11();}
@@ -1 +1 @@
1
- function a150_0x486c(_0x468c3f,_0x4129d3){_0x468c3f=_0x468c3f-0x1d1;const _0x3d69a3=a150_0x3d69();let _0x486cba=_0x3d69a3[_0x468c3f];return _0x486cba;}const a150_0x5b2285=a150_0x486c;(function(_0xda236c,_0x12e504){const _0xe1faf1=a150_0x486c,_0x36b0ed=_0xda236c();while(!![]){try{const _0x5b63e4=parseInt(_0xe1faf1(0x1d1))/0x1+-parseInt(_0xe1faf1(0x1e0))/0x2*(parseInt(_0xe1faf1(0x1de))/0x3)+parseInt(_0xe1faf1(0x1e9))/0x4+parseInt(_0xe1faf1(0x1dc))/0x5*(parseInt(_0xe1faf1(0x1df))/0x6)+-parseInt(_0xe1faf1(0x1ea))/0x7+parseInt(_0xe1faf1(0x1d4))/0x8*(-parseInt(_0xe1faf1(0x1e6))/0x9)+-parseInt(_0xe1faf1(0x1d7))/0xa*(-parseInt(_0xe1faf1(0x1e2))/0xb);if(_0x5b63e4===_0x12e504)break;else _0x36b0ed['push'](_0x36b0ed['shift']());}catch(_0x30f1fb){_0x36b0ed['push'](_0x36b0ed['shift']());}}}(a150_0x3d69,0xa1432));function a150_0x3d69(){const _0x56a232=['relatedPages','40BUrFoE','length','code','70ypQMVJ','alias','read','data-list-status','Query\x20Data\x20List\x20Page\x20facts\x20for\x20a\x20dataset','35frKXaC','compress','1493682AKqmIF','234468wibplW','4OiScII','page','1161809ojnowV','source','name','/standard-page-status?appCode=','2185893MZxJHq','Dataset\x20alias\x20from\x20api.ts\x20(resolves\x20to\x20dataset\x20code\x20automatically)','GET','4787252jwngrB','1931895ZfcndZ','936996gRunbw','appCode'];a150_0x3d69=function(){return _0x56a232;};return a150_0x3d69();}import{APPCODE_FLAG_OPTIONAL,DATASETCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{assessDataListPageState,getUndeletedRelatedPages,loadDatasetDetailForPage,loadDataListPageStatusForGenerate,serializeDryRunDescription,validateDatasetSelector}from'../../commands/page/shared.js';export const pageDataListStatus={'service':a150_0x5b2285(0x1e1),'command':a150_0x5b2285(0x1da),'description':a150_0x5b2285(0x1db),'risk':a150_0x5b2285(0x1d9),'defaultOutputFormat':a150_0x5b2285(0x1dd),'flags':[APPCODE_FLAG_OPTIONAL,DATASETCODE_FLAG_OPTIONAL,{'name':a150_0x5b2285(0x1d8),'type':'string','description':a150_0x5b2285(0x1e7)}],async 'validate'(_0x141ce9){validateDatasetSelector(_0x141ce9);},async 'dryRun'(_0xaa919a){const _0x192b4e=a150_0x5b2285,_0x11a8e1=await loadDatasetDetailForPage(_0xaa919a);return{'method':_0x192b4e(0x1e8),'url':'/smartapi/lovrabet/dataset/'+_0x11a8e1['code']+_0x192b4e(0x1e5)+encodeURIComponent(_0xaa919a[_0x192b4e(0x1d2)]),'description':serializeDryRunDescription({'dataset':{'id':_0x11a8e1['id'],'code':_0x11a8e1[_0x192b4e(0x1d6)],'name':_0x11a8e1[_0x192b4e(0x1e4)]},'action':'query-data-list-status'})};},async 'execute'(_0x318b3d){const _0x2ca06e=a150_0x5b2285,_0x43e18b=await loadDatasetDetailForPage(_0x318b3d),_0x15e420=await loadDataListPageStatusForGenerate(_0x318b3d,_0x43e18b[_0x2ca06e(0x1d6)]),_0x4bfedb=getUndeletedRelatedPages(_0x43e18b),_0x39e8a0=assessDataListPageState(_0x43e18b[_0x2ca06e(0x1d6)],_0x15e420,{'fallbackUndeletedPages':_0x4bfedb});return{'ok':!![],'data':{'datasetCode':_0x43e18b['code'],'precheckSource':_0x15e420?.[_0x2ca06e(0x1e3)]??'related-pages-fallback','status':_0x39e8a0['status'],'manualResolutionRequired':_0x39e8a0['manualResolutionRequired'],'nextAction':_0x39e8a0['nextAction'],'dataListPageStatus':_0x15e420,'relatedPages':{'total':_0x43e18b[_0x2ca06e(0x1d3)][_0x2ca06e(0x1d5)],'undeletedCount':_0x4bfedb[_0x2ca06e(0x1d5)]}}};}};
1
+ function a151_0x4219(){const _0x3db283=['name','related-pages-fallback','data-list-status','status','read','string','2029296inDlBB','query-data-list-status','relatedPages','length','87IIrohH','699350ZolwnQ','/standard-page-status?appCode=','Dataset\x20alias\x20from\x20api.ts\x20(resolves\x20to\x20dataset\x20code\x20automatically)','3506100Uqiyhe','1085554qzUoeF','Query\x20Data\x20List\x20Page\x20facts\x20for\x20a\x20dataset','143960rXXKkk','GET','manualResolutionRequired','page','78956JgRjsf','100NRmWTq','1111491gMhtFc','14tzrkOu','appCode','alias','code'];a151_0x4219=function(){return _0x3db283;};return a151_0x4219();}const a151_0x5c29e5=a151_0x2109;(function(_0x5915d5,_0x26d88d){const _0x243f7f=a151_0x2109,_0x50bbee=_0x5915d5();while(!![]){try{const _0x21c5a4=-parseInt(_0x243f7f(0x18a))/0x1+-parseInt(_0x243f7f(0x18e))/0x2+-parseInt(_0x243f7f(0x189))/0x3*(parseInt(_0x243f7f(0x194))/0x4)+parseInt(_0x243f7f(0x18d))/0x5+parseInt(_0x243f7f(0x185))/0x6+-parseInt(_0x243f7f(0x17b))/0x7*(parseInt(_0x243f7f(0x190))/0x8)+parseInt(_0x243f7f(0x196))/0x9*(parseInt(_0x243f7f(0x195))/0xa);if(_0x21c5a4===_0x26d88d)break;else _0x50bbee['push'](_0x50bbee['shift']());}catch(_0x2f08fa){_0x50bbee['push'](_0x50bbee['shift']());}}}(a151_0x4219,0x677c6));import{APPCODE_FLAG_OPTIONAL,DATASETCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function a151_0x2109(_0x87310c,_0x1b5a0a){_0x87310c=_0x87310c-0x17b;const _0x4219c4=a151_0x4219();let _0x210992=_0x4219c4[_0x87310c];return _0x210992;}import{assessDataListPageState,getUndeletedRelatedPages,loadDatasetDetailForPage,loadDataListPageStatusForGenerate,serializeDryRunDescription,validateDatasetSelector}from'../../commands/page/shared.js';export const pageDataListStatus={'service':a151_0x5c29e5(0x193),'command':a151_0x5c29e5(0x181),'description':a151_0x5c29e5(0x18f),'risk':a151_0x5c29e5(0x183),'defaultOutputFormat':'compress','flags':[APPCODE_FLAG_OPTIONAL,DATASETCODE_FLAG_OPTIONAL,{'name':a151_0x5c29e5(0x17d),'type':a151_0x5c29e5(0x184),'description':a151_0x5c29e5(0x18c)}],async 'validate'(_0x489d44){validateDatasetSelector(_0x489d44);},async 'dryRun'(_0x4519fd){const _0x1fb9d0=a151_0x5c29e5,_0xb56a00=await loadDatasetDetailForPage(_0x4519fd);return{'method':_0x1fb9d0(0x191),'url':'/smartapi/lovrabet/dataset/'+_0xb56a00['code']+_0x1fb9d0(0x18b)+encodeURIComponent(_0x4519fd[_0x1fb9d0(0x17c)]),'description':serializeDryRunDescription({'dataset':{'id':_0xb56a00['id'],'code':_0xb56a00['code'],'name':_0xb56a00[_0x1fb9d0(0x17f)]},'action':_0x1fb9d0(0x186)})};},async 'execute'(_0xd3643c){const _0x441bbe=a151_0x5c29e5,_0x2f1143=await loadDatasetDetailForPage(_0xd3643c),_0x1e1ff3=await loadDataListPageStatusForGenerate(_0xd3643c,_0x2f1143[_0x441bbe(0x17e)]),_0x5a23b8=getUndeletedRelatedPages(_0x2f1143),_0x54bba9=assessDataListPageState(_0x2f1143[_0x441bbe(0x17e)],_0x1e1ff3,{'fallbackUndeletedPages':_0x5a23b8});return{'ok':!![],'data':{'datasetCode':_0x2f1143[_0x441bbe(0x17e)],'precheckSource':_0x1e1ff3?.['source']??_0x441bbe(0x180),'status':_0x54bba9[_0x441bbe(0x182)],'manualResolutionRequired':_0x54bba9[_0x441bbe(0x192)],'nextAction':_0x54bba9['nextAction'],'dataListPageStatus':_0x1e1ff3,'relatedPages':{'total':_0x2f1143[_0x441bbe(0x187)][_0x441bbe(0x188)],'undeletedCount':_0x5a23b8[_0x441bbe(0x188)]}}};}};
@@ -1 +1 @@
1
- const a151_0x5843cf=a151_0x1bb7;(function(_0x456f4e,_0x2a69c1){const _0x48d228=a151_0x1bb7,_0x516bbf=_0x456f4e();while(!![]){try{const _0x52448c=-parseInt(_0x48d228(0xf6))/0x1+parseInt(_0x48d228(0xd9))/0x2*(parseInt(_0x48d228(0xf0))/0x3)+parseInt(_0x48d228(0xdf))/0x4+-parseInt(_0x48d228(0xe7))/0x5*(-parseInt(_0x48d228(0xf5))/0x6)+-parseInt(_0x48d228(0xdd))/0x7+-parseInt(_0x48d228(0xf3))/0x8+parseInt(_0x48d228(0xd4))/0x9;if(_0x52448c===_0x2a69c1)break;else _0x516bbf['push'](_0x516bbf['shift']());}catch(_0x452543){_0x516bbf['push'](_0x516bbf['shift']());}}}(a151_0x188c,0x66583));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 a151_0x1bb7(_0x580745,_0x3385f3){_0x580745=_0x580745-0xc8;const _0x188ca4=a151_0x188c();let _0x1bb7a4=_0x188ca4[_0x580745];return _0x1bb7a4;}function a151_0x188c(){const _0x363bb9=['复用已有生成任务','dataset','page\x20generate-start\x20does\x20not\x20accept\x20--page-type.','Start\x20async\x20Data\x20List\x20Page\x20generation\x20from\x20a\x20dataset','2uqqSbN','Dataset\x20alias\x20from\x20api.ts\x20(resolves\x20to\x20dataset\x20code\x20automatically)','appCode','code','3862516eigSFQ','message','875736CVmVSk','/generate-standard-pages/start','name','compress','boolean','Actually\x20execute\x20the\x20generation.\x20Without\x20this\x20flag,\x20only\x20a\x20dry-run\x20preview\x20is\x20shown.','related-pages-fallback','alias','54210tBOvFL','status','precheck','write','apply','page-type','POST','fieldCount','dryRun','1648683VJUgQo','SUCCESS','Dry-run\x20preview\x20(pass\x20--apply\x20to\x20execute\x20the\x20generation)','2366184KrZlmx','progressRate','342UCZJvE','406089BuUAFI','nextAction','bool','DATA_LIST\x20currently\x20has\x20one\x20fixed\x20pattern:\x20CRUD_PAGE_SET.','CRUD_PAGE_SET','taskId','allowGenerate','This\x20command\x20always\x20generates\x20a\x20DATA_LIST\x20page\x20from\x20a\x20dataset.','operationId','generate-start','clientOperationId','page','page\x20generate-start\x20does\x20not\x20accept\x20--page-pattern.','PARTIAL_SUCCESS','source','reused','DATA_LIST','dataListPageStatus','currentStep','2577276szSSWA'];a151_0x188c=function(){return _0x363bb9;};return a151_0x188c();}import{startGenerateDataListPages}from'../../core/api-client.js';export const pageGenerateStart={'service':a151_0x5843cf(0xcc),'command':a151_0x5843cf(0xca),'description':a151_0x5843cf(0xd8),'risk':a151_0x5843cf(0xea),'defaultOutputFormat':a151_0x5843cf(0xe2),'rejectedFlags':[{'name':a151_0x5843cf(0xec),'message':a151_0x5843cf(0xd7),'hint':a151_0x5843cf(0xc8)},{'name':'page-pattern','message':a151_0x5843cf(0xcd),'hint':a151_0x5843cf(0xf9)}],'flags':[APPCODE_FLAG_OPTIONAL,DATASETCODE_FLAG_OPTIONAL,{'name':a151_0x5843cf(0xe6),'type':'string','description':a151_0x5843cf(0xda)},{'name':a151_0x5843cf(0xeb),'type':a151_0x5843cf(0xe3),'description':a151_0x5843cf(0xe4)}],async 'validate'(_0x5d4133){validateDatasetSelector(_0x5d4133);},async 'dryRun'(_0x3c3011){const _0x5096f8=a151_0x5843cf,_0x2fbfc3=await prepare(_0x3c3011);return{'method':_0x5096f8(0xed),'url':'/smartapi/lovrabet/dataset/'+_0x2fbfc3[_0x5096f8(0xd6)][_0x5096f8(0xdc)]+_0x5096f8(0xe0),'body':{'appCode':_0x3c3011[_0x5096f8(0xdb)],'clientOperationId':_0x2fbfc3[_0x5096f8(0xcb)]},'description':serializeDryRunDescription({'dataset':{'id':_0x2fbfc3['dataset']['id'],'code':_0x2fbfc3[_0x5096f8(0xd6)][_0x5096f8(0xdc)],'name':_0x2fbfc3[_0x5096f8(0xd6)][_0x5096f8(0xe1)],'fieldCount':_0x2fbfc3[_0x5096f8(0xd6)][_0x5096f8(0xee)]},'precheckSource':_0x2fbfc3[_0x5096f8(0xd2)]?.[_0x5096f8(0xcf)]??'related-pages-fallback','action':'generate-start','clientOperationId':_0x2fbfc3[_0x5096f8(0xcb)],'plannedStatus':_0x2fbfc3[_0x5096f8(0xe9)]['status'],'reason':_0x2fbfc3[_0x5096f8(0xe9)]['message']})};},async 'execute'(_0x5c762f){const _0x327dfc=a151_0x5843cf;if(!_0x5c762f[_0x327dfc(0xf8)](_0x327dfc(0xeb))){const _0x1da5ef=await pageGenerateStart[_0x327dfc(0xef)](_0x5c762f);return{'ok':!![],'message':_0x327dfc(0xf2),'data':_0x1da5ef};}const _0x1af70e=await prepare(_0x5c762f);if(!_0x1af70e[_0x327dfc(0xe9)][_0x327dfc(0xfc)])return{'ok':![],'message':_0x1af70e[_0x327dfc(0xe9)][_0x327dfc(0xde)],'data':{'datasetCode':_0x1af70e[_0x327dfc(0xd6)][_0x327dfc(0xdc)],'pageType':_0x327dfc(0xd1),'pagePattern':_0x327dfc(0xfa),'clientOperationId':_0x1af70e[_0x327dfc(0xcb)],'precheckSource':_0x1af70e[_0x327dfc(0xd2)]?.['source']??_0x327dfc(0xe5),'status':_0x1af70e['precheck'][_0x327dfc(0xe8)],'manualResolutionRequired':_0x1af70e['precheck']['manualResolutionRequired'],'nextAction':_0x1af70e[_0x327dfc(0xe9)][_0x327dfc(0xf7)],'query':{'command':buildDataListPageStatusQueryCommand(_0x1af70e[_0x327dfc(0xd6)][_0x327dfc(0xdc)],_0x5c762f[_0x327dfc(0xdb)])},'dataListPageStatus':_0x1af70e['dataListPageStatus']}};const _0x3c420f=await startGenerateDataListPages(_0x5c762f[_0x327dfc(0xdb)],_0x1af70e[_0x327dfc(0xd6)][_0x327dfc(0xdc)],{'clientOperationId':_0x1af70e['clientOperationId']}),_0x2742f4=_0x3c420f[_0x327dfc(0xe8)]===_0x327dfc(0xf1)||_0x3c420f['status']===_0x327dfc(0xce)?await loadDataListPageStatusForGenerate(_0x5c762f,_0x1af70e[_0x327dfc(0xd6)][_0x327dfc(0xdc)]):null,_0x1dd985=assessGenerateOperationState(_0x1af70e[_0x327dfc(0xd6)][_0x327dfc(0xdc)],_0x3c420f[_0x327dfc(0xe8)],_0x2742f4);return{'ok':!![],'message':_0x3c420f[_0x327dfc(0xd0)]?_0x327dfc(0xd5):'已提交生成任务','data':{'datasetCode':_0x1af70e['dataset'][_0x327dfc(0xdc)],'appCode':_0x5c762f[_0x327dfc(0xdb)],'pageType':_0x327dfc(0xd1),'pagePattern':_0x327dfc(0xfa),'taskId':_0x3c420f[_0x327dfc(0xfb)]??null,'operationId':_0x3c420f['operationId']??null,'clientOperationId':_0x1af70e[_0x327dfc(0xcb)],'jobStatus':_0x3c420f[_0x327dfc(0xe8)]??null,'progressRate':typeof _0x3c420f['progressRate']==='number'?_0x3c420f[_0x327dfc(0xf4)]:null,'currentStep':_0x3c420f[_0x327dfc(0xd3)]??null,'reused':_0x3c420f[_0x327dfc(0xd0)]===!![],'status':_0x1dd985[_0x327dfc(0xe8)],'manualResolutionRequired':_0x1dd985['manualResolutionRequired'],'nextAction':_0x1dd985[_0x327dfc(0xf7)],'query':{'command':buildPageGenerateOperationStatusQueryCommand(_0x1af70e[_0x327dfc(0xd6)][_0x327dfc(0xdc)],{'appCode':_0x5c762f[_0x327dfc(0xdb)],'taskId':_0x3c420f[_0x327dfc(0xfb)],'operationId':_0x3c420f[_0x327dfc(0xc9)],'clientOperationId':_0x1af70e[_0x327dfc(0xcb)]})},'dataListPageStatus':_0x2742f4}};}};async function prepare(_0x248ab0){const _0x31b0d5=a151_0x5843cf,_0x5e2bdc=await loadDatasetDetailForPage(_0x248ab0),_0x33d8b6=await loadDataListPageStatusForGenerate(_0x248ab0,_0x5e2bdc['code']),_0x18b553=getUndeletedRelatedPages(_0x5e2bdc);return{'dataset':_0x5e2bdc,'dataListPageStatus':_0x33d8b6,'clientOperationId':createPageGenerateClientOperationId(),'precheck':assessDataListPageState(_0x5e2bdc[_0x31b0d5(0xdc)],_0x33d8b6,{'fallbackUndeletedPages':_0x18b553})};}
1
+ const a152_0x1a1b2b=a152_0x1568;(function(_0x5b70aa,_0x1ae36f){const _0x50a663=a152_0x1568,_0x5ea9e3=_0x5b70aa();while(!![]){try{const _0x1c8cbc=-parseInt(_0x50a663(0x1e2))/0x1*(parseInt(_0x50a663(0x1d5))/0x2)+parseInt(_0x50a663(0x1cd))/0x3*(-parseInt(_0x50a663(0x1fc))/0x4)+-parseInt(_0x50a663(0x1d3))/0x5*(-parseInt(_0x50a663(0x1eb))/0x6)+parseInt(_0x50a663(0x1e9))/0x7*(parseInt(_0x50a663(0x1d1))/0x8)+-parseInt(_0x50a663(0x1ea))/0x9*(-parseInt(_0x50a663(0x1d0))/0xa)+parseInt(_0x50a663(0x1e3))/0xb+parseInt(_0x50a663(0x1d4))/0xc*(-parseInt(_0x50a663(0x1ed))/0xd);if(_0x1c8cbc===_0x1ae36f)break;else _0x5ea9e3['push'](_0x5ea9e3['shift']());}catch(_0xe63f9b){_0x5ea9e3['push'](_0x5ea9e3['shift']());}}}(a152_0x8a72,0x506b3));function a152_0x1568(_0x4997b9,_0x152a47){_0x4997b9=_0x4997b9-0x1cb;const _0x8a726a=a152_0x8a72();let _0x1568f3=_0x8a726a[_0x4997b9];return _0x1568f3;}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 a152_0x8a72(){const _0x508f5b=['number','1614aDOfJp','/generate-standard-pages/start','Actually\x20execute\x20the\x20generation.\x20Without\x20this\x20flag,\x20only\x20a\x20dry-run\x20preview\x20is\x20shown.','843740pCAeWi','11624CqBSuC','Dataset\x20alias\x20from\x20api.ts\x20(resolves\x20to\x20dataset\x20code\x20automatically)','5dJDqbw','173172yuqPNH','10322ZgUGBv','appCode','dataset','source','compress','dataListPageStatus','DATA_LIST','precheck','taskId','page','message','DATA_LIST\x20currently\x20has\x20one\x20fixed\x20pattern:\x20CRUD_PAGE_SET.','page\x20generate-start\x20does\x20not\x20accept\x20--page-pattern.','37dvtjqv','1957780rjlTid','apply','dryRun','progressRate','name','page-pattern','2807REgZhA','27wVEBgT','3214734fKAonT','manualResolutionRequired','442EhQAba','related-pages-fallback','/smartapi/lovrabet/dataset/','currentStep','operationId','已提交生成任务','Dry-run\x20preview\x20(pass\x20--apply\x20to\x20execute\x20the\x20generation)','clientOperationId','status','reused','generate-start','nextAction','code','bool','CRUD_PAGE_SET','4004gfgEPc','page\x20generate-start\x20does\x20not\x20accept\x20--page-type.','write','page-type','PARTIAL_SUCCESS'];a152_0x8a72=function(){return _0x508f5b;};return a152_0x8a72();}import{startGenerateDataListPages}from'../../core/api-client.js';export const pageGenerateStart={'service':a152_0x1a1b2b(0x1de),'command':'generate-start','description':'Start\x20async\x20Data\x20List\x20Page\x20generation\x20from\x20a\x20dataset','risk':a152_0x1a1b2b(0x1fe),'defaultOutputFormat':a152_0x1a1b2b(0x1d9),'rejectedFlags':[{'name':a152_0x1a1b2b(0x1ff),'message':a152_0x1a1b2b(0x1fd),'hint':'This\x20command\x20always\x20generates\x20a\x20DATA_LIST\x20page\x20from\x20a\x20dataset.'},{'name':a152_0x1a1b2b(0x1e8),'message':a152_0x1a1b2b(0x1e1),'hint':a152_0x1a1b2b(0x1e0)}],'flags':[APPCODE_FLAG_OPTIONAL,DATASETCODE_FLAG_OPTIONAL,{'name':'alias','type':'string','description':a152_0x1a1b2b(0x1d2)},{'name':a152_0x1a1b2b(0x1e4),'type':'boolean','description':a152_0x1a1b2b(0x1cf)}],async 'validate'(_0x3dec78){validateDatasetSelector(_0x3dec78);},async 'dryRun'(_0x3f5a82){const _0x3440c2=a152_0x1a1b2b,_0x111376=await prepare(_0x3f5a82);return{'method':'POST','url':_0x3440c2(0x1ef)+_0x111376['dataset'][_0x3440c2(0x1f9)]+_0x3440c2(0x1ce),'body':{'appCode':_0x3f5a82[_0x3440c2(0x1d6)],'clientOperationId':_0x111376[_0x3440c2(0x1f4)]},'description':serializeDryRunDescription({'dataset':{'id':_0x111376[_0x3440c2(0x1d7)]['id'],'code':_0x111376['dataset'][_0x3440c2(0x1f9)],'name':_0x111376[_0x3440c2(0x1d7)][_0x3440c2(0x1e7)],'fieldCount':_0x111376[_0x3440c2(0x1d7)]['fieldCount']},'precheckSource':_0x111376['dataListPageStatus']?.[_0x3440c2(0x1d8)]??_0x3440c2(0x1ee),'action':_0x3440c2(0x1f7),'clientOperationId':_0x111376[_0x3440c2(0x1f4)],'plannedStatus':_0x111376['precheck']['status'],'reason':_0x111376[_0x3440c2(0x1dc)][_0x3440c2(0x1df)]})};},async 'execute'(_0x490d75){const _0x1fbe04=a152_0x1a1b2b;if(!_0x490d75[_0x1fbe04(0x1fa)](_0x1fbe04(0x1e4))){const _0x392c3d=await pageGenerateStart[_0x1fbe04(0x1e5)](_0x490d75);return{'ok':!![],'message':_0x1fbe04(0x1f3),'data':_0x392c3d};}const _0x425c2f=await prepare(_0x490d75);if(!_0x425c2f[_0x1fbe04(0x1dc)]['allowGenerate'])return{'ok':![],'message':_0x425c2f['precheck'][_0x1fbe04(0x1df)],'data':{'datasetCode':_0x425c2f[_0x1fbe04(0x1d7)][_0x1fbe04(0x1f9)],'pageType':_0x1fbe04(0x1db),'pagePattern':_0x1fbe04(0x1fb),'clientOperationId':_0x425c2f[_0x1fbe04(0x1f4)],'precheckSource':_0x425c2f[_0x1fbe04(0x1da)]?.[_0x1fbe04(0x1d8)]??'related-pages-fallback','status':_0x425c2f['precheck']['status'],'manualResolutionRequired':_0x425c2f[_0x1fbe04(0x1dc)][_0x1fbe04(0x1ec)],'nextAction':_0x425c2f[_0x1fbe04(0x1dc)][_0x1fbe04(0x1f8)],'query':{'command':buildDataListPageStatusQueryCommand(_0x425c2f[_0x1fbe04(0x1d7)]['code'],_0x490d75[_0x1fbe04(0x1d6)])},'dataListPageStatus':_0x425c2f[_0x1fbe04(0x1da)]}};const _0x7df8a8=await startGenerateDataListPages(_0x490d75[_0x1fbe04(0x1d6)],_0x425c2f[_0x1fbe04(0x1d7)]['code'],{'clientOperationId':_0x425c2f[_0x1fbe04(0x1f4)]}),_0x5984aa=_0x7df8a8['status']==='SUCCESS'||_0x7df8a8[_0x1fbe04(0x1f5)]===_0x1fbe04(0x1cb)?await loadDataListPageStatusForGenerate(_0x490d75,_0x425c2f[_0x1fbe04(0x1d7)][_0x1fbe04(0x1f9)]):null,_0xec04ec=assessGenerateOperationState(_0x425c2f[_0x1fbe04(0x1d7)]['code'],_0x7df8a8[_0x1fbe04(0x1f5)],_0x5984aa);return{'ok':!![],'message':_0x7df8a8['reused']?'复用已有生成任务':_0x1fbe04(0x1f2),'data':{'datasetCode':_0x425c2f[_0x1fbe04(0x1d7)]['code'],'appCode':_0x490d75[_0x1fbe04(0x1d6)],'pageType':_0x1fbe04(0x1db),'pagePattern':'CRUD_PAGE_SET','taskId':_0x7df8a8[_0x1fbe04(0x1dd)]??null,'operationId':_0x7df8a8[_0x1fbe04(0x1f1)]??null,'clientOperationId':_0x425c2f[_0x1fbe04(0x1f4)],'jobStatus':_0x7df8a8[_0x1fbe04(0x1f5)]??null,'progressRate':typeof _0x7df8a8[_0x1fbe04(0x1e6)]===_0x1fbe04(0x1cc)?_0x7df8a8[_0x1fbe04(0x1e6)]:null,'currentStep':_0x7df8a8[_0x1fbe04(0x1f0)]??null,'reused':_0x7df8a8[_0x1fbe04(0x1f6)]===!![],'status':_0xec04ec['status'],'manualResolutionRequired':_0xec04ec[_0x1fbe04(0x1ec)],'nextAction':_0xec04ec[_0x1fbe04(0x1f8)],'query':{'command':buildPageGenerateOperationStatusQueryCommand(_0x425c2f['dataset']['code'],{'appCode':_0x490d75[_0x1fbe04(0x1d6)],'taskId':_0x7df8a8[_0x1fbe04(0x1dd)],'operationId':_0x7df8a8['operationId'],'clientOperationId':_0x425c2f[_0x1fbe04(0x1f4)]})},'dataListPageStatus':_0x5984aa}};}};async function prepare(_0x4479dd){const _0x42299f=a152_0x1a1b2b,_0x1efb33=await loadDatasetDetailForPage(_0x4479dd),_0x1e48ed=await loadDataListPageStatusForGenerate(_0x4479dd,_0x1efb33['code']),_0x5e8d34=getUndeletedRelatedPages(_0x1efb33);return{'dataset':_0x1efb33,'dataListPageStatus':_0x1e48ed,'clientOperationId':createPageGenerateClientOperationId(),'precheck':assessDataListPageState(_0x1efb33[_0x42299f(0x1f9)],_0x1e48ed,{'fallbackUndeletedPages':_0x5e8d34})};}