@lovrabet/rabetbase-cli 2.5.4-beta.5 → 2.5.5-beta.1
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.
- package/lib/api/api-doc.js +1 -1
- package/lib/api/api-group.js +1 -1
- package/lib/api/fetch-model-list.js +1 -1
- package/lib/api/generate-api-file.js +1 -1
- package/lib/api/generate-sdk-config-file.js +1 -1
- package/lib/api/legacy-api-file.js +1 -1
- package/lib/api/model-registry-file.js +1 -1
- package/lib/api/model-registry-scaffold.js +1 -1
- package/lib/api/model-source.js +1 -1
- package/lib/auth/auth-server-ui.js +1 -1
- package/lib/auth/auth-server.js +1 -1
- package/lib/auth/constant.js +1 -1
- package/lib/auth/get-cookie.js +1 -1
- package/lib/auth/get-session-user.js +1 -1
- package/lib/auth/is-session-valid.js +1 -1
- package/lib/auth/login-success-html.js +1 -1
- package/lib/auth/logout.js +1 -1
- package/lib/cli-flags.js +1 -1
- package/lib/cli.js +1 -1
- package/lib/commands/api/generate.js +1 -1
- package/lib/commands/api/index.js +1 -1
- package/lib/commands/api/list.js +1 -1
- package/lib/commands/api/pull.js +1 -1
- package/lib/commands/api/shared.js +1 -1
- package/lib/commands/app/detail.js +1 -1
- package/lib/commands/app/index.js +1 -1
- package/lib/commands/app/list.js +1 -1
- package/lib/commands/app/members-list.js +1 -1
- package/lib/commands/app/remote-directory.js +1 -1
- package/lib/commands/app/shared.js +1 -1
- package/lib/commands/app-config/delete.js +1 -1
- package/lib/commands/app-config/get.js +1 -1
- package/lib/commands/app-config/index.js +1 -1
- package/lib/commands/app-config/list.js +1 -1
- package/lib/commands/app-config/set.js +1 -1
- package/lib/commands/app-config/shared.js +1 -1
- package/lib/commands/auth/index.js +1 -1
- package/lib/commands/bff/create.js +1 -1
- package/lib/commands/bff/delete.js +1 -1
- package/lib/commands/bff/detail.js +1 -1
- package/lib/commands/bff/index.js +1 -1
- package/lib/commands/bff/list.js +1 -1
- package/lib/commands/bff/logs.js +1 -1
- package/lib/commands/bff/pull.js +1 -1
- package/lib/commands/bff/push.js +1 -1
- package/lib/commands/bff/status.js +1 -1
- package/lib/commands/cli-skill/index.js +1 -1
- package/lib/commands/cli-update.js +1 -1
- package/lib/commands/codegen/index.js +1 -1
- package/lib/commands/codegen/sdk.js +1 -1
- package/lib/commands/codegen/sql.js +1 -1
- package/lib/commands/common/app-registry.js +1 -1
- package/lib/commands/common/app-selector.js +1 -1
- package/lib/commands/common/async-task.js +1 -1
- package/lib/commands/common/dry-run.js +1 -1
- package/lib/commands/common/flags.js +1 -1
- package/lib/commands/common/local-file.js +1 -1
- package/lib/commands/common/validate.js +1 -1
- package/lib/commands/config/delete.js +1 -1
- package/lib/commands/config/get.js +1 -1
- package/lib/commands/config/index.js +1 -1
- package/lib/commands/config/init.js +1 -1
- package/lib/commands/config/list.js +1 -1
- package/lib/commands/config/set.js +1 -1
- package/lib/commands/config/shared.js +1 -1
- package/lib/commands/dataset/batch-design.js +1 -1
- package/lib/commands/dataset/business-group-update.js +1 -1
- package/lib/commands/dataset/business-groups.js +1 -1
- package/lib/commands/dataset/capability.js +1 -1
- package/lib/commands/dataset/cross-relation-create.js +1 -1
- package/lib/commands/dataset/cross-relation-delete.js +1 -1
- package/lib/commands/dataset/cross-relation-list.js +1 -1
- package/lib/commands/dataset/cross-relation-shared.js +1 -1
- package/lib/commands/dataset/cross-relation-update.js +1 -1
- package/lib/commands/dataset/delete.js +1 -1
- package/lib/commands/dataset/detail.js +1 -1
- package/lib/commands/dataset/extend-update.js +1 -1
- package/lib/commands/dataset/field-restore.js +1 -1
- package/lib/commands/dataset/field-update.js +1 -1
- package/lib/commands/dataset/generate.js +1 -1
- package/lib/commands/dataset/index.js +1 -1
- package/lib/commands/dataset/list.js +1 -1
- package/lib/commands/dataset/operations.js +1 -1
- package/lib/commands/dataset/relation-audit.js +1 -1
- package/lib/commands/dataset/relation-create.js +1 -1
- package/lib/commands/dataset/relation-delete.js +1 -1
- package/lib/commands/dataset/relation-shared.js +1 -1
- package/lib/commands/dataset/relation-update.js +1 -1
- package/lib/commands/dataset/relations.js +1 -1
- package/lib/commands/dataset/rename.js +1 -1
- package/lib/commands/dataset/restore.js +1 -1
- package/lib/commands/dataset/user-deleted-field-list.js +1 -1
- package/lib/commands/db/analysis-batching.js +1 -1
- package/lib/commands/db/analyze-batch-plan.js +1 -1
- package/lib/commands/db/analyze-cancel.js +1 -1
- package/lib/commands/db/analyze-start.js +1 -1
- package/lib/commands/db/analyze-status.js +1 -1
- package/lib/commands/db/create.js +1 -1
- package/lib/commands/db/delete.js +1 -1
- package/lib/commands/db/detail.js +1 -1
- package/lib/commands/db/diff-refresh-start.js +1 -1
- package/lib/commands/db/diff-refresh-status.js +1 -1
- package/lib/commands/db/diff.js +1 -1
- package/lib/commands/db/index.js +1 -1
- package/lib/commands/db/list.js +1 -1
- package/lib/commands/db/shared.js +1 -1
- package/lib/commands/db/table-diff-shared.js +1 -1
- package/lib/commands/db/tables.js +1 -1
- package/lib/commands/db/test.js +1 -1
- package/lib/commands/db/update.js +1 -1
- package/lib/commands/deployment/index.js +1 -1
- package/lib/commands/deployment/sync-all.js +1 -1
- package/lib/commands/deployment/sync-jobs.js +1 -1
- package/lib/commands/deployment/sync-status.js +1 -1
- package/lib/commands/doctor.js +1 -1
- package/lib/commands/file/index.js +1 -1
- package/lib/commands/flow/create.js +1 -1
- package/lib/commands/flow/detail.js +1 -1
- package/lib/commands/flow/index.js +1 -1
- package/lib/commands/flow/list.js +1 -1
- package/lib/commands/flow/publish.js +1 -1
- package/lib/commands/flow/runtime-resources-shared.js +1 -1
- package/lib/commands/flow/runtime-role-list.js +1 -1
- package/lib/commands/flow/runtime-role-user-list.js +1 -1
- package/lib/commands/flow/runtime-user-search.js +1 -1
- package/lib/commands/flow/shared.js +1 -1
- package/lib/commands/flow/update.js +1 -1
- package/lib/commands/flow/validate.js +1 -1
- package/lib/commands/instant-api-policy/current.js +1 -1
- package/lib/commands/instant-api-policy/index.js +1 -1
- package/lib/commands/instant-api-policy/init.js +1 -1
- package/lib/commands/instant-api-policy/publish.js +1 -1
- package/lib/commands/instant-api-policy/pull.js +1 -1
- package/lib/commands/instant-api-policy/revision.js +1 -1
- package/lib/commands/instant-api-policy/revisions.js +1 -1
- package/lib/commands/instant-api-policy/rollback.js +1 -1
- package/lib/commands/instant-api-policy/shared.js +1 -1
- package/lib/commands/instant-api-policy/validate.js +1 -1
- package/lib/commands/issue/index.js +1 -1
- package/lib/commands/issue/nudge.js +1 -1
- package/lib/commands/issue/report.js +1 -1
- package/lib/commands/issue/shared.js +1 -1
- package/lib/commands/kb/create.js +1 -1
- package/lib/commands/kb/delete.js +1 -1
- package/lib/commands/kb/detail.js +1 -1
- package/lib/commands/kb/index.js +1 -1
- package/lib/commands/kb/list.js +1 -1
- package/lib/commands/kb/search.js +1 -1
- package/lib/commands/kb/shared.js +1 -1
- package/lib/commands/kb/update.js +1 -1
- package/lib/commands/logs/index.js +1 -1
- package/lib/commands/menu/asset-update.js +1 -1
- package/lib/commands/menu/delete.js +1 -1
- package/lib/commands/menu/external-link-create.js +1 -1
- package/lib/commands/menu/external-link-update.js +1 -1
- package/lib/commands/menu/group-create.js +1 -1
- package/lib/commands/menu/group-update.js +1 -1
- package/lib/commands/menu/index.js +1 -1
- package/lib/commands/menu/list.js +1 -1
- package/lib/commands/menu/move.js +1 -1
- package/lib/commands/menu/regroup-start.js +1 -1
- package/lib/commands/menu/rename.js +1 -1
- package/lib/commands/menu/shared/compare-table.js +1 -1
- package/lib/commands/menu/shared/delete-plan.js +1 -1
- package/lib/commands/menu/shared/facts.js +1 -1
- package/lib/commands/menu/shared/index.js +1 -1
- package/lib/commands/menu/shared/inquirer.js +1 -1
- package/lib/commands/menu/shared/local-pages.js +1 -1
- package/lib/commands/menu/shared/logic.js +1 -1
- package/lib/commands/menu/shared/mutations.js +1 -1
- package/lib/commands/menu/shared/path.js +1 -1
- package/lib/commands/menu/shared/service.js +1 -1
- package/lib/commands/menu/shared/subapp-assets.js +1 -1
- package/lib/commands/menu/shared/sync-core.js +1 -1
- package/lib/commands/menu/shared/update-core.js +1 -1
- package/lib/commands/menu/shared/valid-url.js +1 -1
- package/lib/commands/menu/subapp-assets-status.js +1 -1
- package/lib/commands/menu/subapp-assets-update.js +1 -1
- package/lib/commands/menu/sync.js +1 -1
- package/lib/commands/menu/visibility-update.js +1 -1
- package/lib/commands/notification/config-create.js +1 -1
- package/lib/commands/notification/config-delete.js +1 -1
- package/lib/commands/notification/config-list.js +1 -1
- package/lib/commands/notification/config-update.js +1 -1
- package/lib/commands/notification/index.js +1 -1
- package/lib/commands/notification/shared.js +1 -1
- package/lib/commands/ocr/index.js +1 -1
- package/lib/commands/page/create.js +1 -1
- package/lib/commands/page/custom/detail.js +1 -1
- package/lib/commands/page/custom/list.js +1 -1
- package/lib/commands/page/custom/publish.js +1 -1
- package/lib/commands/page/custom/shared.js +1 -1
- package/lib/commands/page/custom/syntax.js +1 -1
- package/lib/commands/page/custom/update.js +1 -1
- package/lib/commands/page/data-list-status.js +1 -1
- package/lib/commands/page/generate-start.js +1 -1
- package/lib/commands/page/generate-status.js +1 -1
- package/lib/commands/page/index.js +1 -1
- package/lib/commands/page/pull.js +1 -1
- package/lib/commands/page/push.js +1 -1
- package/lib/commands/page/relation-audit.js +1 -1
- package/lib/commands/page/restore.js +1 -1
- package/lib/commands/page/shared.js +1 -1
- package/lib/commands/page/sync.js +1 -1
- package/lib/commands/project/api-architecture-upgrade.js +1 -1
- package/lib/commands/project/create/enhanced-guided-create.js +1 -1
- package/lib/commands/project/create/format-elapsed.js +1 -1
- package/lib/commands/project/create/main.js +1 -1
- package/lib/commands/project/create/materialize-project-template.js +1 -1
- package/lib/commands/project/create/project-name.js +1 -1
- package/lib/commands/project/create/project-template-archive.js +1 -1
- package/lib/commands/project/create/project-template-path.js +1 -1
- package/lib/commands/project/create/use-copy-project-template.js +1 -1
- package/lib/commands/project/create/use-format-code.js +1 -1
- package/lib/commands/project/create/use-install-dependencies.js +1 -1
- package/lib/commands/project/domain-routing-sync.js +1 -1
- package/lib/commands/project/index.js +1 -1
- package/lib/commands/project/upgrade.js +1 -1
- package/lib/commands/registry.js +1 -1
- package/lib/commands/role/delete.js +1 -1
- package/lib/commands/role/detail.js +1 -1
- package/lib/commands/role/index.js +1 -1
- package/lib/commands/role/list.js +1 -1
- package/lib/commands/role/shared.js +1 -1
- package/lib/commands/role/update.js +1 -1
- package/lib/commands/role/user-add.js +1 -1
- package/lib/commands/role/user-remove.js +1 -1
- package/lib/commands/role/user-resolve.js +1 -1
- package/lib/commands/rule/get.js +1 -1
- package/lib/commands/rule/index.js +1 -1
- package/lib/commands/rule/list.js +1 -1
- package/lib/commands/rule/set.js +1 -1
- package/lib/commands/rule/shared.js +1 -1
- package/lib/commands/run/index.js +1 -1
- package/lib/commands/schema.js +1 -1
- package/lib/commands/sql/create.js +1 -1
- package/lib/commands/sql/delete.js +1 -1
- package/lib/commands/sql/detail.js +1 -1
- package/lib/commands/sql/exec.js +1 -1
- package/lib/commands/sql/index.js +1 -1
- package/lib/commands/sql/list.js +1 -1
- package/lib/commands/sql/pull.js +1 -1
- package/lib/commands/sql/push.js +1 -1
- package/lib/commands/sql/shared.js +1 -1
- package/lib/commands/sql/status.js +1 -1
- package/lib/commands/sql/validate.js +1 -1
- package/lib/commands/task/index.js +1 -1
- package/lib/commands/task/status.js +1 -1
- package/lib/commands/tenant/index.js +1 -1
- package/lib/commands/tenant/members-list.js +1 -1
- package/lib/commands/tenant/shared.js +1 -1
- package/lib/commands/user-account/dingding-sandbox-bind.js +1 -1
- package/lib/commands/user-account/feishu-bind.js +1 -1
- package/lib/commands/user-account/index.js +1 -1
- package/lib/commands/workspace/add.js +1 -1
- package/lib/commands/workspace/index.js +1 -1
- package/lib/commands/workspace/remove.js +1 -1
- package/lib/config/domain-config.js +1 -1
- package/lib/config/project-domain-routing.js +1 -1
- package/lib/config/region-config.js +1 -1
- package/lib/config/schema.js +1 -1
- package/lib/constant/cdn.js +1 -1
- package/lib/constant/cli.js +1 -1
- package/lib/constant/defaults.js +1 -1
- package/lib/constant/domain.js +1 -1
- package/lib/constant/env.js +1 -1
- package/lib/constant/output.js +1 -1
- package/lib/constant/paths.js +1 -1
- package/lib/constant/region.js +1 -1
- package/lib/constant/risk.js +1 -1
- package/lib/constant/routing-profile.js +1 -1
- package/lib/context/app-resolver.js +1 -1
- package/lib/context/auth-resolver.js +1 -1
- package/lib/context/config-loader.js +1 -1
- package/lib/context.js +1 -1
- package/lib/core/alias-resolver.js +1 -1
- package/lib/core/api-client.js +1 -1
- package/lib/core/bff/config.js +1 -1
- package/lib/core/bff/file-system.js +1 -1
- package/lib/core/bff/hash.js +1 -1
- package/lib/core/bff/hook-directory.js +1 -1
- package/lib/core/bff/lock.js +1 -1
- package/lib/core/bff/utils.js +1 -1
- package/lib/core/cross-db-relation.js +1 -1
- package/lib/core/db-resolver.js +1 -1
- package/lib/core/flow-config.js +1 -1
- package/lib/core/instant-api-policy/config.js +1 -1
- package/lib/core/kb-search-client.js +1 -1
- package/lib/core/page/file-system.js +1 -1
- package/lib/core/page/hash.js +1 -1
- package/lib/core/page/lock.js +1 -1
- package/lib/core/page/lr-smart-jsx.js +1 -1
- package/lib/core/sql-index-auditor.js +1 -1
- package/lib/core/sql-sync/config.js +1 -1
- package/lib/core/sql-sync/file-system.js +1 -1
- package/lib/core/sql-sync/hash.js +1 -1
- package/lib/core/sql-sync/lock.js +1 -1
- package/lib/core/sql-sync/utils.js +1 -1
- package/lib/core/sql-validator.js +1 -1
- package/lib/errors.js +1 -1
- package/lib/framework/build-all-flags.js +1 -1
- package/lib/framework/error-output.js +1 -1
- package/lib/framework/explicit-yes.js +1 -1
- package/lib/framework/flags.js +1 -1
- package/lib/framework/help.js +1 -1
- package/lib/framework/index.js +1 -1
- package/lib/framework/output.js +1 -1
- package/lib/framework/response.js +1 -1
- package/lib/framework/runner-alias.js +1 -1
- package/lib/framework/runner.js +1 -1
- package/lib/framework/schema-export.js +1 -1
- package/lib/framework/supported-flags.js +1 -1
- package/lib/framework/types.js +1 -1
- package/lib/generated/build-info.d.ts +4 -4
- package/lib/generated/build-info.js +1 -1
- package/lib/generated/official-routing.js +1 -1
- package/lib/generated/routing-contract.js +1 -1
- package/lib/help.js +1 -1
- package/lib/postinstall.js +1 -1
- package/lib/runtime/confirmation.js +1 -1
- package/lib/runtime/event.js +1 -1
- package/lib/runtime/index.js +1 -1
- package/lib/runtime/queue.js +1 -1
- package/lib/runtime/resolve.js +1 -1
- package/lib/skills/builtin-skill.js +1 -1
- package/lib/skills/main.js +1 -1
- package/lib/skills/npx-skills-add.js +1 -1
- package/lib/skills/skill-presence.js +1 -1
- package/lib/telemetry/cli-command-trace.js +1 -1
- package/lib/telemetry/cli-help-trace.js +1 -1
- package/lib/telemetry/ensure-cli-otel-config.js +1 -1
- package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
- package/lib/telemetry/send-cli-trace-log.js +1 -1
- package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
- package/lib/utils/ai_config.js +1 -1
- package/lib/utils/apply-jq-filter.js +1 -1
- package/lib/utils/cdn-config.js +1 -1
- package/lib/utils/check-sdk-version.js +1 -1
- package/lib/utils/cli-version-check.js +1 -1
- package/lib/utils/cli-version-policy.js +1 -1
- package/lib/utils/config.js +1 -1
- package/lib/utils/entity-with-id.js +1 -1
- package/lib/utils/file-utils.js +1 -1
- package/lib/utils/guides-cdn.js +1 -1
- package/lib/utils/http-client.js +1 -1
- package/lib/utils/is-non-interactive.js +1 -1
- package/lib/utils/logger.js +1 -1
- package/lib/utils/params.js +1 -1
- package/lib/utils/platform.js +1 -1
- package/lib/utils/sleep.js +1 -1
- package/lib/utils/template-replacer.js +1 -1
- package/lib/utils/update-notice.js +1 -1
- package/lib/utils/version.js +1 -1
- package/lib/utils/with-active-cookie.js +1 -1
- package/lib/utils/write-cli-side-channel.js +1 -1
- package/package.json +2 -1
- package/skills/rabetbase/SKILL.md +1 -1
- package/skills/rabetbase-page-generation/SKILL.md +35 -0
- package/skills/rabetbase-page-generation/references/component-baseline.md +18 -0
- package/skills/rabetbase-page-generation/references/generation.md +77 -0
- package/skills/rabetbase-page-generation/templates/onepage/build.mjs +63 -0
- package/skills/rabetbase-page-generation/templates/onepage/create/README.md +20 -0
- package/skills/rabetbase-page-generation/templates/onepage/create/index.jsx +4 -0
- package/skills/rabetbase-page-generation/templates/onepage/create/preview.png +0 -0
- package/skills/rabetbase-page-generation/templates/onepage/detail/README.md +20 -0
- package/skills/rabetbase-page-generation/templates/onepage/detail/index.jsx +194 -0
- package/skills/rabetbase-page-generation/templates/onepage/detail/preview.png +0 -0
- package/skills/rabetbase-page-generation/templates/onepage/list/README.md +20 -0
- package/skills/rabetbase-page-generation/templates/onepage/list/index.jsx +717 -0
- package/skills/rabetbase-page-generation/templates/onepage/list/preview.png +0 -0
- package/skills/rabetbase-page-generation/templates/onepage/shared/editor.jsx +395 -0
- package/skills/rabetbase-page-generation/templates/onepage/shared/model.js +141 -0
- package/skills/rabetbase-page-generation/templates/onepage/shared/page.css +377 -0
- package/skills/rabetbase-page-generation/templates/onepage/shared/record-layout.jsx +90 -0
- package/skills/rabetbase-page-generation/templates/onepage/shared/responsive.jsx +70 -0
- package/skills/rabetbase-page-generation/templates/onepage/update/README.md +21 -0
- package/skills/rabetbase-page-generation/templates/onepage/update/index.jsx +4 -0
- package/skills/rabetbase-page-generation/templates/onepage/update/preview.png +0 -0
- package/skills/rabetbase.manifest.json +3 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a172_0x3ca490=a172_0x3e83;(function(_0x204b15,_0xdee488){const _0x5a1416=a172_0x3e83,_0x25ccf5=_0x204b15();while(!![]){try{const _0x1920ea=parseInt(_0x5a1416(0x16c))/0x1+-parseInt(_0x5a1416(0x14f))/0x2+-parseInt(_0x5a1416(0x15f))/0x3*(parseInt(_0x5a1416(0x153))/0x4)+parseInt(_0x5a1416(0x15e))/0x5*(parseInt(_0x5a1416(0x16d))/0x6)+parseInt(_0x5a1416(0x15a))/0x7+parseInt(_0x5a1416(0x176))/0x8+parseInt(_0x5a1416(0x16b))/0x9;if(_0x1920ea===_0xdee488)break;else _0x25ccf5['push'](_0x25ccf5['shift']());}catch(_0x3b3514){_0x25ccf5['push'](_0x25ccf5['shift']());}}}(a172_0x2c4b,0x95157));import{getSmartAppRecord}from'../../../core/api-client.js';import{APPCODE_FLAG}from'../../../commands/common/flags.js';function a172_0x2c4b(){const _0x2c9b3e=['appName','\x20must\x20be\x20a\x20JSON\x20object.','trim','filter','app.extend.assets\x20must\x20be\x20an\x20array.','map','1645238ssrVmC','string','app','menu\x20','59510jmMpsD','3UcJwRv','validation','menu','\x20contains\x20invalid\x20JSON.','sharedConfigured','resources','app-name','Menu\x20host\x20app\x20code;\x20overrides\x20the\x20selected\x20workspace\x20app','sharedResources','\x20resources','basename','assets','2681973NuawYK','656591eEYoFf','6MWmnaB','app.extend','--app-name\x20is\x20required.','appCode','Duplicate\x20subapp\x20records\x20for\x20','\x20must\x20be\x20a\x20JSON\x20string\x20of\x20URLs.','extend','Explicit\x20frontend\x20subapp\x20appName\x20matching\x20host\x20assets\x20and\x20menu\x20bindings;\x20not\x20inferred\x20from\x20package\x20name\x20or\x20app\x20code','length','7091424mjATOc','object','app.extend.assets[','message','stringify','814932oYjqFW','subapp.resources','path','isArray','4279356PkMeDQ'];a172_0x2c4b=function(){return _0x2c9b3e;};return a172_0x2c4b();}import{CliErrors}from'../../../errors.js';function objectValue(_0x2f02a0,_0x2dc56a){const _0x5a1129=a172_0x3e83,_0x5f261f=typeof _0x2f02a0===_0x5a1129(0x15b)?parseJson(_0x2f02a0,_0x2dc56a):_0x2f02a0;if(!_0x5f261f||typeof _0x5f261f!==_0x5a1129(0x177)||Array['isArray'](_0x5f261f))throw CliErrors[_0x5a1129(0x160)](_0x2dc56a+_0x5a1129(0x155));return _0x5f261f;}function parseJson(_0x24d3e8,_0x1f29a0){const _0x369878=a172_0x3e83;try{return JSON['parse'](_0x24d3e8);}catch{throw CliErrors[_0x369878(0x160)](_0x1f29a0+_0x369878(0x162));}}function a172_0x3e83(_0x3a7ab5,_0x434e98){_0x3a7ab5=_0x3a7ab5-0x14c;const _0x2c4bad=a172_0x2c4b();let _0x3e8369=_0x2c4bad[_0x3a7ab5];return _0x3e8369;}function resourceList(_0x2175d2,_0x3c6f66){const _0x349826=a172_0x3e83;if(typeof _0x2175d2!=='string')throw CliErrors[_0x349826(0x160)](_0x3c6f66+_0x349826(0x172));const _0x4f291d=parseJson(_0x2175d2,_0x3c6f66);if(!Array['isArray'](_0x4f291d)||_0x4f291d['some'](_0x361c94=>typeof _0x361c94!==_0x349826(0x15b)))throw CliErrors[_0x349826(0x160)](_0x3c6f66+'\x20must\x20be\x20an\x20array\x20of\x20URLs.');return _0x4f291d;}export function buildSubappAssetsStatus(_0xc32bd7,_0x55203a,_0x4371d4){const _0x35898b=a172_0x3e83,_0x189c1c=_0xc32bd7[_0x35898b(0x173)]==null?{}:objectValue(_0xc32bd7[_0x35898b(0x173)],_0x35898b(0x16e)),_0x18abb9=_0x189c1c['assets']==null?[]:typeof _0x189c1c['assets']===_0x35898b(0x15b)?parseJson(_0x189c1c[_0x35898b(0x16a)],'app.extend.assets'):_0x189c1c[_0x35898b(0x16a)];if(!Array[_0x35898b(0x152)](_0x18abb9))throw CliErrors[_0x35898b(0x160)](_0x35898b(0x158));const _0x486e3d=_0x18abb9[_0x35898b(0x159)]((_0x1d19de,_0x3ab9f7)=>objectValue(_0x1d19de,_0x35898b(0x14c)+_0x3ab9f7+']')),_0x3183c0=_0x486e3d[_0x35898b(0x157)](_0x500bfa=>_0x500bfa[_0x35898b(0x154)]===_0x4371d4);if(_0x3183c0[_0x35898b(0x175)]>0x1)throw CliErrors[_0x35898b(0x160)](_0x35898b(0x171)+_0x4371d4+'.');const _0x3a11fc=_0x3183c0[0x0],_0x372d6b=_0x3a11fc?.[_0x35898b(0x164)]==null?[]:resourceList(_0x3a11fc['resources'],_0x35898b(0x150)),_0x3f6eab=_0x55203a[_0x35898b(0x157)](_0x31f64b=>_0x31f64b[_0x35898b(0x173)]?.[_0x35898b(0x154)]===_0x4371d4),_0x4435ee=_0x3f6eab[_0x35898b(0x159)](_0x313081=>{const _0x35fd3a=_0x35898b;let _0x2a35dc=null,_0xd2f8ac=null;try{_0x2a35dc=_0x313081[_0x35fd3a(0x173)]?.[_0x35fd3a(0x164)]==null?_0x313081['resources']:resourceList(_0x313081['extend'][_0x35fd3a(0x164)],_0x35fd3a(0x15d)+_0x313081['id']+_0x35fd3a(0x168));}catch(_0x42627e){_0xd2f8ac=_0x42627e instanceof Error?_0x42627e[_0x35fd3a(0x14d)]:String(_0x42627e);}const _0x39f724=_0x372d6b[_0x35fd3a(0x175)]>0x0?_0x35fd3a(0x15c):_0x35fd3a(0x161),_0x573473=_0x39f724==='app'?_0x372d6b:_0x2a35dc;return{'id':_0x313081['id'],'path':_0x313081[_0x35fd3a(0x151)],'preferredSourceIfSupported':_0x39f724,'preferredResourcesIfSupported':_0x573473,'menuFallbackResources':_0x2a35dc,'menuFallbackError':_0xd2f8ac,'fallbackDiffers':_0x2a35dc===null?null:_0x39f724===_0x35fd3a(0x15c)&&_0x2a35dc[_0x35fd3a(0x175)]>0x0&&JSON[_0x35fd3a(0x14e)](_0x2a35dc)!==JSON[_0x35fd3a(0x14e)](_0x573473)};});return{'appName':_0x4371d4,'hostCapabilityVerified':![],'sharedConfigured':Boolean(_0x3a11fc),'sharedResources':_0x372d6b,'loadScriptMode':_0x3a11fc?.['loadScriptMode']??null,'basename':_0x3a11fc?.[_0x35898b(0x169)]??null,'boundMenus':_0x4435ee[_0x35898b(0x175)],'staleMenuFallbacks':_0x4435ee['filter'](_0x37dfc8=>_0x37dfc8['fallbackDiffers'])[_0x35898b(0x175)],'menus':_0x4435ee};}export async function assertSharedResourcesConfigured(_0x193ecb,_0x1b9100,_0x7557b7){const _0x3c7a69=a172_0x3e83,_0x5624d1=await getSmartAppRecord(_0x193ecb,_0x1b9100),_0x1a9e9f=buildSubappAssetsStatus(_0x5624d1,[],_0x7557b7);if(!_0x1a9e9f[_0x3c7a69(0x163)]||_0x1a9e9f[_0x3c7a69(0x167)][_0x3c7a69(0x175)]===0x0)throw CliErrors[_0x3c7a69(0x160)]('No\x20shared\x20resources\x20configured\x20for\x20'+_0x7557b7+'.');}export const SUBAPP_ASSET_SELECTOR_FLAGS=[{...APPCODE_FLAG,'required':![],'description':a172_0x3ca490(0x166)},{'name':'app-name','type':a172_0x3ca490(0x15b),'required':!![],'description':a172_0x3ca490(0x174)}];export function getSubappSelector(_0x16a2c2){const _0x28bd26=a172_0x3ca490,_0x10c8de=_0x16a2c2[_0x28bd26(0x170)],_0x49955e=_0x16a2c2['str'](_0x28bd26(0x165))[_0x28bd26(0x156)]();if(!_0x49955e)throw CliErrors[_0x28bd26(0x160)](_0x28bd26(0x16f));return{'appCode':_0x10c8de,'appName':_0x49955e};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a173_0x97141b=a173_0x32e5;function a173_0x49f9(){const _0x27fb6=['get','cwd','isInteger','JS\x20URL\x20is\x20unreachable:\x20','No\x20local\x20pages\x20matched\x20paths:\x20','pages','340WfPtof','number','CSS\x20URL\x20is\x20unreachable:\x20','order','2653ZpOaCV','Invalid\x20--params:\x20','label','has','folder','import','length','Invalid\x20--params.','CSS\x20URL\x20must\x20be\x20a\x20valid\x20https://...css\x20URL','object','parentId','\x20must\x20be\x20an\x20existing\x20folder\x20in\x20the\x20selected\x20menu\x20host.','JS\x20URL\x20must\x20be\x20a\x20valid\x20https://...js\x20URL','dryRun','\x22\x20for\x20','isArray','map','Invalid\x20--params\x20fields:\x20','visible','392IcsDvR','33478wjxEPz','push','hasOwn','group','cssUrl','filter','message','procode','Start\x20non-interactive\x20menu\x20sync','parse','31206VHkzKY','appName',';\x20found\x20','info','trim','join','setLogPath','string',':\x20expected\x20a\x20non-empty\x20string.','245680QCPdyF','menu-sync','35780EgrZdE','field','2954727KCoRzf','boolean','Invalid\x20--params.visible:\x20expected\x20a\x20boolean.','Invalid\x20--params.parentId:\x20expected\x20a\x20non-negative\x20integer.','30wCEQHn','--params.','keys','jsUrl','Local\x20page\x20paths\x20are\x20already\x20on\x20the\x20platform:\x20','Invalid\x20--params:\x20expected\x20a\x20JSON\x20object.','path','Menu\x20sync\x20completed','436310WWbeAn','\x0a\x20\x20Available\x20local\x20paths:\x20','type'];a173_0x49f9=function(){return _0x27fb6;};return a173_0x49f9();}function a173_0x32e5(_0x23e7ef,_0x3c1158){_0x23e7ef=_0x23e7ef-0x1a8;const _0x49f997=a173_0x49f9();let _0x32e511=_0x49f997[_0x23e7ef];return _0x32e511;}(function(_0x238753,_0x467fa3){const _0x365343=a173_0x32e5,_0x12ba6c=_0x238753();while(!![]){try{const _0xff489e=parseInt(_0x365343(0x1db))/0x1+-parseInt(_0x365343(0x1ac))/0x2*(-parseInt(_0x365343(0x1b2))/0x3)+-parseInt(_0x365343(0x1aa))/0x4+parseInt(_0x365343(0x1c3))/0x5*(parseInt(_0x365343(0x1e5))/0x6)+-parseInt(_0x365343(0x1c7))/0x7*(-parseInt(_0x365343(0x1da))/0x8)+-parseInt(_0x365343(0x1ae))/0x9+parseInt(_0x365343(0x1ba))/0xa;if(_0xff489e===_0x467fa3)break;else _0x12ba6c['push'](_0x12ba6c['shift']());}catch(_0x546823){_0x12ba6c['push'](_0x12ba6c['shift']());}}}(a173_0x49f9,0x3a3bd));import{getLocalPages}from'../../../commands/menu/shared/local-pages.js';import{getOnlineMenuList,createMenus}from'../../../commands/menu/shared/service.js';import{isUrlReachable,isValidCssHttpsUrl,isValidJsHttpsUrl}from'../../../commands/menu/shared/valid-url.js';import{menuPathKey}from'../../../commands/menu/shared/path.js';import{logger}from'../../../utils/logger.js';import{assertSharedResourcesConfigured}from'../../../commands/menu/shared/subapp-assets.js';const MENU_SYNC_PARAM_KEYS=new Set([a173_0x97141b(0x1b5),a173_0x97141b(0x1df),'appName',a173_0x97141b(0x1d9),'parentId']);export function resolvePage(_0x3b0a95,_0x297478,_0x276cea){const _0x548bbc=a173_0x97141b;let _0x575fb4=_0x297478['parentId']??_0x3b0a95[_0x548bbc(0x1d1)];if(_0x575fb4===undefined&&_0x3b0a95[_0x548bbc(0x1de)]){const _0x16b440=_0x276cea[_0x548bbc(0x1e0)](_0x42d8d0=>_0x42d8d0[_0x548bbc(0x1bc)]==='folder'&&_0x42d8d0['label']===_0x3b0a95['group']);if(_0x16b440['length']!==0x1)throw new Error('Expected\x20one\x20folder\x20named\x20\x22'+_0x3b0a95[_0x548bbc(0x1de)]+_0x548bbc(0x1d5)+_0x3b0a95[_0x548bbc(0x1b8)]+_0x548bbc(0x1e7)+_0x16b440['length']);_0x575fb4=_0x16b440[0x0]['id'];}if(_0x575fb4!==undefined&&_0x575fb4!==0x0&&_0x276cea[_0x548bbc(0x1e0)](_0x3b573f=>_0x3b573f['id']===_0x575fb4&&_0x3b573f[_0x548bbc(0x1bc)]===_0x548bbc(0x1cb))['length']!==0x1)throw new Error('Parent\x20'+_0x575fb4+_0x548bbc(0x1d2));return{..._0x3b0a95,..._0x575fb4===undefined?{}:{'parentId':_0x575fb4},..._0x297478['visible']===undefined?{}:{'visible':_0x297478['visible']}};}function validateParams(_0x2d75d0){const _0x259e45=a173_0x97141b,_0x39b127=[];return _0x2d75d0[_0x259e45(0x1b5)]&&!isValidJsHttpsUrl(_0x2d75d0[_0x259e45(0x1b5)])&&_0x39b127[_0x259e45(0x1dc)]({'field':'jsUrl','message':_0x259e45(0x1d3)}),_0x2d75d0[_0x259e45(0x1df)]&&!isValidCssHttpsUrl(_0x2d75d0[_0x259e45(0x1df)])&&_0x39b127[_0x259e45(0x1dc)]({'field':_0x259e45(0x1df),'message':_0x259e45(0x1cf)}),_0x39b127;}export async function runMenuSyncCore(_0x8bc673,_0x5b4a08,_0x392d03=[],_0x342a6a,_0x594081={}){const _0x42c6f4=a173_0x97141b,_0x11be51=parseMenuSyncParams(_0x342a6a),_0xe05642=[...new Set(_0x392d03[_0x42c6f4(0x1d7)](_0x4553d9=>_0x4553d9[_0x42c6f4(0x1e9)]())[_0x42c6f4(0x1e0)](Boolean)[_0x42c6f4(0x1d7)](menuPathKey))],_0x63b328=_0x11be51[_0x42c6f4(0x1b5)],_0xde714f=_0x11be51[_0x42c6f4(0x1df)],_0x549b2=[];if(_0x63b328)_0x549b2['push'](_0x63b328);if(_0xde714f)_0x549b2[_0x42c6f4(0x1dc)](_0xde714f);const _0x4f891a=validateParams(_0x11be51);if(_0x4f891a[_0x42c6f4(0x1cd)]>0x0){const _0x222b74=_0x4f891a[_0x42c6f4(0x1d7)](_0x38b9cb=>_0x42c6f4(0x1b3)+_0x38b9cb[_0x42c6f4(0x1ad)]+':\x20'+_0x38b9cb[_0x42c6f4(0x1e1)])[_0x42c6f4(0x1ea)](';\x20');throw new Error(_0x42c6f4(0x1c8)+_0x222b74);}logger[_0x42c6f4(0x1eb)](process[_0x42c6f4(0x1be)]()),logger[_0x42c6f4(0x1e8)](_0x42c6f4(0x1ab),_0x42c6f4(0x1e3),{'appCode':_0x8bc673,'selectedCount':_0xe05642['length'],'jsUrl':_0x63b328,'cssUrl':_0xde714f});if(_0x63b328){const _0x39ca0c=await isUrlReachable(_0x63b328);if(!_0x39ca0c)throw new Error(_0x42c6f4(0x1c0)+_0x63b328);}if(_0xde714f){const _0x291fbc=await isUrlReachable(_0xde714f);if(!_0x291fbc)throw new Error(_0x42c6f4(0x1c5)+_0xde714f);}const _0x437586=getLocalPages();if(_0x437586[_0x42c6f4(0x1cd)]===0x0){if(_0xe05642['length']>0x0)throw new Error(_0x42c6f4(0x1c1)+_0xe05642['join'](',\x20'));return{'created':0x0,'skipped':!![],'dryRun':_0x594081[_0x42c6f4(0x1d4)]===!![],'targetPages':[],'plannedMenus':[]};}const _0x387932=await getOnlineMenuList(_0x8bc673,_0x5b4a08),_0x5f20c6=new Set(_0x387932[_0x42c6f4(0x1d7)](_0x4b1865=>menuPathKey(_0x4b1865[_0x42c6f4(0x1b8)])));let _0x2d3330;if(_0xe05642[_0x42c6f4(0x1cd)]>0x0){const _0x402a05=new Map(_0x437586['map'](_0x28eddc=>[menuPathKey(_0x28eddc['path']),_0x28eddc])),_0x50e492=_0xe05642[_0x42c6f4(0x1e0)](_0x26ff93=>!_0x402a05[_0x42c6f4(0x1ca)](_0x26ff93));if(_0x50e492[_0x42c6f4(0x1cd)]>0x0){const _0x994f22=_0x437586[_0x42c6f4(0x1d7)](_0x1efaec=>_0x1efaec[_0x42c6f4(0x1b8)])['join'](',\x20');throw new Error(_0x42c6f4(0x1c1)+_0x50e492[_0x42c6f4(0x1ea)](',\x20')+_0x42c6f4(0x1bb)+_0x994f22);}const _0x51b926=_0xe05642[_0x42c6f4(0x1e0)](_0x43a56b=>_0x5f20c6[_0x42c6f4(0x1ca)](_0x43a56b));if(_0x51b926[_0x42c6f4(0x1cd)]>0x0)throw new Error(_0x42c6f4(0x1b6)+_0x51b926['join'](',\x20'));_0x2d3330=_0xe05642[_0x42c6f4(0x1d7)](_0x1bafca=>_0x402a05[_0x42c6f4(0x1bd)](_0x1bafca));}else _0x2d3330=_0x437586[_0x42c6f4(0x1e0)](_0x5f1111=>!_0x5f20c6[_0x42c6f4(0x1ca)](menuPathKey(_0x5f1111[_0x42c6f4(0x1b8)])));if(_0x2d3330[_0x42c6f4(0x1cd)]===0x0)return{'created':0x0,'skipped':!![],'dryRun':_0x594081[_0x42c6f4(0x1d4)]===!![],'targetPages':[],'plannedMenus':[]};_0x2d3330=_0x2d3330[_0x42c6f4(0x1d7)](_0x4e0176=>resolvePage(_0x4e0176,_0x11be51,_0x387932));_0x11be51['appName']&&_0x549b2[_0x42c6f4(0x1cd)]===0x0&&await assertSharedResourcesConfigured(_0x8bc673,_0x5b4a08,_0x11be51[_0x42c6f4(0x1e6)]);const _0x1fef77=_0x2d3330[_0x42c6f4(0x1d7)](_0x13452f=>({'type':_0x42c6f4(0x1e2),'path':_0x13452f['path'],'label':_0x13452f[_0x42c6f4(0x1c9)],'loadScriptMode':_0x42c6f4(0x1cc),'resources':[..._0x549b2],..._0x13452f[_0x42c6f4(0x1d9)]===undefined?{}:{'visible':_0x13452f[_0x42c6f4(0x1d9)]},..._0x13452f[_0x42c6f4(0x1d1)]===undefined?{}:{'parentId':_0x13452f[_0x42c6f4(0x1d1)]},..._0x13452f[_0x42c6f4(0x1c6)]===undefined?{}:{'sort':_0x13452f[_0x42c6f4(0x1c6)]},..._0x11be51[_0x42c6f4(0x1e6)]===undefined?{}:{'appName':_0x11be51[_0x42c6f4(0x1e6)]}}));if(_0x594081[_0x42c6f4(0x1d4)])return{'created':0x0,'skipped':![],'dryRun':!![],'targetPages':_0x2d3330,'plannedMenus':_0x1fef77};const _0x1aa0a7=_0x11be51[_0x42c6f4(0x1e6)]?await createMenus(_0x8bc673,_0x5b4a08,_0x2d3330,_0x549b2[_0x42c6f4(0x1cd)]>0x0?_0x549b2:undefined,{'appName':_0x11be51[_0x42c6f4(0x1e6)]}):await createMenus(_0x8bc673,_0x5b4a08,_0x2d3330,_0x549b2[_0x42c6f4(0x1cd)]>0x0?_0x549b2:undefined);return logger[_0x42c6f4(0x1e8)]('menu-sync',_0x42c6f4(0x1b9),{'count':_0x2d3330[_0x42c6f4(0x1cd)],'resources':_0x549b2}),{'created':_0x1aa0a7['length'],'skipped':![],'dryRun':![],'targetPages':_0x2d3330,'plannedMenus':_0x1fef77,'menus':_0x1aa0a7};}export function parseMenuSyncParams(_0x588f31){const _0x459b2f=a173_0x97141b;if(!_0x588f31||typeof _0x588f31!==_0x459b2f(0x1a8))return{};let _0xe31b37;try{_0xe31b37=JSON[_0x459b2f(0x1e4)](_0x588f31);}catch{throw new Error('Invalid\x20--params\x20JSON.');}if(typeof _0xe31b37!==_0x459b2f(0x1d0)||_0xe31b37===null||Array[_0x459b2f(0x1d6)](_0xe31b37))throw new Error(_0x459b2f(0x1b7));const _0x52be9e=_0xe31b37;if(Object[_0x459b2f(0x1dd)](_0x52be9e,_0x459b2f(0x1c2)))throw new Error('--params.pages\x20is\x20no\x20longer\x20supported.\x20Use\x20--paths\x20with\x20exact\x20local\x20page\x20paths.');const _0x3d59e3=Object[_0x459b2f(0x1b4)](_0x52be9e)[_0x459b2f(0x1e0)](_0x46959f=>!MENU_SYNC_PARAM_KEYS[_0x459b2f(0x1ca)](_0x46959f));if(_0x3d59e3[_0x459b2f(0x1cd)]>0x0)throw new Error(_0x459b2f(0x1d8)+_0x3d59e3[_0x459b2f(0x1ea)](',\x20')+'.');for(const _0x1ec9fe of[_0x459b2f(0x1b5),_0x459b2f(0x1df),_0x459b2f(0x1e6)]){const _0x149129=_0x52be9e[_0x1ec9fe];if(_0x149129!==undefined&&(typeof _0x149129!==_0x459b2f(0x1a8)||_0x149129[_0x459b2f(0x1e9)]()===''))throw new Error(_0x459b2f(0x1ce)+_0x1ec9fe+_0x459b2f(0x1a9));}if(_0x52be9e[_0x459b2f(0x1d9)]!==undefined&&typeof _0x52be9e[_0x459b2f(0x1d9)]!==_0x459b2f(0x1af))throw new Error(_0x459b2f(0x1b0));if(_0x52be9e['parentId']!==undefined&&(!Number[_0x459b2f(0x1bf)](_0x52be9e[_0x459b2f(0x1d1)])||_0x52be9e[_0x459b2f(0x1d1)]<0x0))throw new Error(_0x459b2f(0x1b1));return{'jsUrl':typeof _0x52be9e[_0x459b2f(0x1b5)]===_0x459b2f(0x1a8)?_0x52be9e[_0x459b2f(0x1b5)]['trim']():undefined,'cssUrl':typeof _0x52be9e[_0x459b2f(0x1df)]===_0x459b2f(0x1a8)?_0x52be9e['cssUrl'][_0x459b2f(0x1e9)]():undefined,'appName':typeof _0x52be9e[_0x459b2f(0x1e6)]===_0x459b2f(0x1a8)?_0x52be9e[_0x459b2f(0x1e6)][_0x459b2f(0x1e9)]():undefined,'visible':typeof _0x52be9e[_0x459b2f(0x1d9)]===_0x459b2f(0x1af)?_0x52be9e[_0x459b2f(0x1d9)]:undefined,'parentId':typeof _0x52be9e[_0x459b2f(0x1d1)]===_0x459b2f(0x1c4)?_0x52be9e[_0x459b2f(0x1d1)]:undefined};}
|
|
1
|
+
const a173_0x58f940=a173_0x9770;(function(_0x45a2e1,_0x2da662){const _0x2f21a1=a173_0x9770,_0x425de4=_0x45a2e1();while(!![]){try{const _0x44cf2b=-parseInt(_0x2f21a1(0x9e))/0x1+parseInt(_0x2f21a1(0x99))/0x2+parseInt(_0x2f21a1(0xa9))/0x3*(parseInt(_0x2f21a1(0xb9))/0x4)+-parseInt(_0x2f21a1(0xbf))/0x5*(-parseInt(_0x2f21a1(0xc1))/0x6)+-parseInt(_0x2f21a1(0x96))/0x7+parseInt(_0x2f21a1(0x91))/0x8*(-parseInt(_0x2f21a1(0xab))/0x9)+parseInt(_0x2f21a1(0x98))/0xa;if(_0x44cf2b===_0x2da662)break;else _0x425de4['push'](_0x425de4['shift']());}catch(_0x4db163){_0x425de4['push'](_0x425de4['shift']());}}}(a173_0x590f,0x91ae8));import{getLocalPages}from'../../../commands/menu/shared/local-pages.js';import{getOnlineMenuList,createMenus}from'../../../commands/menu/shared/service.js';function a173_0x590f(){const _0x123d76=['Invalid\x20--params.parentId:\x20expected\x20a\x20non-negative\x20integer.','visible','cssUrl','5goJdin','\x0a\x20\x20Available\x20local\x20paths:\x20','5478chEwTB','isArray','get','jsUrl','filter','CSS\x20URL\x20must\x20be\x20a\x20valid\x20https://...css\x20URL','No\x20local\x20pages\x20matched\x20paths:\x20','Menu\x20sync\x20completed','order','folder','push','menu-sync','8lquvhg','Expected\x20one\x20folder\x20named\x20\x22','\x20must\x20be\x20an\x20existing\x20folder\x20in\x20the\x20selected\x20menu\x20host.','type','message','1010933erZFbU','--params.','18426520oEJGWA','328036wMlRST','field','number','join','Invalid\x20--params:\x20','993172LdsWBQ','length','boolean','Start\x20non-interactive\x20menu\x20sync','cwd','dryRun','setLogPath','import','trim','label','string','538527SlJqNs','object','7306263pWymgW','appName',';\x20found\x20','path','info','Invalid\x20--params.','Invalid\x20--params\x20JSON.','map','group','parse','Parent\x20','has','\x22\x20for\x20','procode','12lUXWNJ','parentId','hasOwn'];a173_0x590f=function(){return _0x123d76;};return a173_0x590f();}import{isUrlReachable,isValidCssHttpsUrl,isValidJsHttpsUrl}from'../../../commands/menu/shared/valid-url.js';import{menuPathKey}from'../../../commands/menu/shared/path.js';import{logger}from'../../../utils/logger.js';import{assertSharedResourcesConfigured}from'../../../commands/menu/shared/subapp-assets.js';function a173_0x9770(_0x3c227c,_0x55a491){_0x3c227c=_0x3c227c-0x8c;const _0x590fb3=a173_0x590f();let _0x9770a6=_0x590fb3[_0x3c227c];return _0x9770a6;}const MENU_SYNC_PARAM_KEYS=new Set([a173_0x58f940(0xc4),a173_0x58f940(0xbe),a173_0x58f940(0xac),'visible','parentId']);export function resolvePage(_0x3c9da5,_0x55936d,_0x272c7e){const _0x41ef89=a173_0x58f940;let _0x1fe1d0=_0x55936d[_0x41ef89(0xba)]??_0x3c9da5[_0x41ef89(0xba)];if(_0x1fe1d0===undefined&&_0x3c9da5[_0x41ef89(0xb3)]){const _0x1d1ba9=_0x272c7e['filter'](_0x5aeca4=>_0x5aeca4[_0x41ef89(0x94)]===_0x41ef89(0x8e)&&_0x5aeca4[_0x41ef89(0xa7)]===_0x3c9da5[_0x41ef89(0xb3)]);if(_0x1d1ba9[_0x41ef89(0x9f)]!==0x1)throw new Error(_0x41ef89(0x92)+_0x3c9da5[_0x41ef89(0xb3)]+_0x41ef89(0xb7)+_0x3c9da5['path']+_0x41ef89(0xad)+_0x1d1ba9[_0x41ef89(0x9f)]);_0x1fe1d0=_0x1d1ba9[0x0]['id'];}if(_0x1fe1d0!==undefined&&_0x1fe1d0!==0x0&&_0x272c7e[_0x41ef89(0xc5)](_0x44464c=>_0x44464c['id']===_0x1fe1d0&&_0x44464c[_0x41ef89(0x94)]===_0x41ef89(0x8e))[_0x41ef89(0x9f)]!==0x1)throw new Error(_0x41ef89(0xb5)+_0x1fe1d0+_0x41ef89(0x93));return{..._0x3c9da5,..._0x1fe1d0===undefined?{}:{'parentId':_0x1fe1d0},..._0x55936d[_0x41ef89(0xbd)]===undefined?{}:{'visible':_0x55936d['visible']}};}function validateParams(_0x34000e){const _0x4623bd=a173_0x58f940,_0x25b41c=[];return _0x34000e[_0x4623bd(0xc4)]&&!isValidJsHttpsUrl(_0x34000e[_0x4623bd(0xc4)])&&_0x25b41c[_0x4623bd(0x8f)]({'field':'jsUrl','message':'JS\x20URL\x20must\x20be\x20a\x20valid\x20https://...js\x20URL'}),_0x34000e[_0x4623bd(0xbe)]&&!isValidCssHttpsUrl(_0x34000e['cssUrl'])&&_0x25b41c[_0x4623bd(0x8f)]({'field':_0x4623bd(0xbe),'message':_0x4623bd(0xc6)}),_0x25b41c;}export async function runMenuSyncCore(_0x1f012f,_0x1b7ff3,_0x112c68=[],_0x153898,_0x26463f={}){const _0x566f65=a173_0x58f940,_0x7dea0e=parseMenuSyncParams(_0x153898),_0x3b75b0=[...new Set(_0x112c68[_0x566f65(0xb2)](_0x255ece=>_0x255ece['trim']())[_0x566f65(0xc5)](Boolean)[_0x566f65(0xb2)](menuPathKey))],_0x5bbda2=_0x7dea0e['jsUrl'],_0x2f5d20=_0x7dea0e['cssUrl'],_0x141c75=[];if(_0x5bbda2)_0x141c75['push'](_0x5bbda2);if(_0x2f5d20)_0x141c75['push'](_0x2f5d20);const _0x1c3950=validateParams(_0x7dea0e);if(_0x1c3950[_0x566f65(0x9f)]>0x0){const _0x183db9=_0x1c3950[_0x566f65(0xb2)](_0x3041bf=>_0x566f65(0x97)+_0x3041bf[_0x566f65(0x9a)]+':\x20'+_0x3041bf[_0x566f65(0x95)])[_0x566f65(0x9c)](';\x20');throw new Error(_0x566f65(0x9d)+_0x183db9);}logger[_0x566f65(0xa4)](process[_0x566f65(0xa2)]()),logger['info']('menu-sync',_0x566f65(0xa1),{'appCode':_0x1f012f,'selectedCount':_0x3b75b0[_0x566f65(0x9f)],'jsUrl':_0x5bbda2,'cssUrl':_0x2f5d20});if(_0x5bbda2){const _0x39cd04=await isUrlReachable(_0x5bbda2);if(!_0x39cd04)throw new Error('JS\x20URL\x20is\x20unreachable:\x20'+_0x5bbda2);}if(_0x2f5d20){const _0x4fd237=await isUrlReachable(_0x2f5d20);if(!_0x4fd237)throw new Error('CSS\x20URL\x20is\x20unreachable:\x20'+_0x2f5d20);}const _0x54d9aa=getLocalPages();if(_0x54d9aa['length']===0x0){if(_0x3b75b0[_0x566f65(0x9f)]>0x0)throw new Error(_0x566f65(0xc7)+_0x3b75b0['join'](',\x20'));return{'created':0x0,'skipped':!![],'dryRun':_0x26463f[_0x566f65(0xa3)]===!![],'targetPages':[],'plannedMenus':[]};}const _0x319442=await getOnlineMenuList(_0x1f012f,_0x1b7ff3),_0x240206=new Set(_0x319442[_0x566f65(0xb2)](_0x210425=>menuPathKey(_0x210425[_0x566f65(0xae)])));let _0x2cf348;if(_0x3b75b0[_0x566f65(0x9f)]>0x0){const _0x590c38=new Map(_0x54d9aa[_0x566f65(0xb2)](_0x4774fc=>[menuPathKey(_0x4774fc['path']),_0x4774fc])),_0x514e6b=_0x3b75b0[_0x566f65(0xc5)](_0x2be184=>!_0x590c38[_0x566f65(0xb6)](_0x2be184));if(_0x514e6b[_0x566f65(0x9f)]>0x0){const _0x342805=_0x54d9aa['map'](_0x11cb30=>_0x11cb30['path'])[_0x566f65(0x9c)](',\x20');throw new Error('No\x20local\x20pages\x20matched\x20paths:\x20'+_0x514e6b['join'](',\x20')+_0x566f65(0xc0)+_0x342805);}const _0xb489bd=_0x3b75b0[_0x566f65(0xc5)](_0xabb53=>_0x240206[_0x566f65(0xb6)](_0xabb53));if(_0xb489bd[_0x566f65(0x9f)]>0x0)throw new Error('Local\x20page\x20paths\x20are\x20already\x20on\x20the\x20platform:\x20'+_0xb489bd[_0x566f65(0x9c)](',\x20'));_0x2cf348=_0x3b75b0[_0x566f65(0xb2)](_0x23cd4d=>_0x590c38[_0x566f65(0xc3)](_0x23cd4d));}else _0x2cf348=_0x54d9aa[_0x566f65(0xc5)](_0x5dd5ca=>!_0x240206['has'](menuPathKey(_0x5dd5ca['path'])));if(_0x2cf348['length']===0x0)return{'created':0x0,'skipped':!![],'dryRun':_0x26463f[_0x566f65(0xa3)]===!![],'targetPages':[],'plannedMenus':[]};_0x2cf348=_0x2cf348['map'](_0x5470f9=>resolvePage(_0x5470f9,_0x7dea0e,_0x319442));_0x7dea0e[_0x566f65(0xac)]&&_0x141c75[_0x566f65(0x9f)]===0x0&&await assertSharedResourcesConfigured(_0x1f012f,_0x1b7ff3,_0x7dea0e['appName']);const _0x23d935=_0x2cf348[_0x566f65(0xb2)](_0x57b6fa=>({'type':_0x566f65(0xb8),'path':_0x57b6fa[_0x566f65(0xae)],'label':_0x57b6fa[_0x566f65(0xa7)],'loadScriptMode':_0x566f65(0xa5),'resources':[..._0x141c75],..._0x57b6fa[_0x566f65(0xbd)]===undefined?{}:{'visible':_0x57b6fa[_0x566f65(0xbd)]},..._0x57b6fa[_0x566f65(0xba)]===undefined?{}:{'parentId':_0x57b6fa[_0x566f65(0xba)]},..._0x57b6fa[_0x566f65(0x8d)]===undefined?{}:{'sort':_0x57b6fa[_0x566f65(0x8d)]},..._0x7dea0e['appName']===undefined?{}:{'appName':_0x7dea0e['appName']}}));if(_0x26463f[_0x566f65(0xa3)])return{'created':0x0,'skipped':![],'dryRun':!![],'targetPages':_0x2cf348,'plannedMenus':_0x23d935};const _0x44fb06=_0x7dea0e[_0x566f65(0xac)]?await createMenus(_0x1f012f,_0x1b7ff3,_0x2cf348,_0x141c75[_0x566f65(0x9f)]>0x0?_0x141c75:undefined,{'appName':_0x7dea0e[_0x566f65(0xac)]}):await createMenus(_0x1f012f,_0x1b7ff3,_0x2cf348,_0x141c75['length']>0x0?_0x141c75:undefined);return logger[_0x566f65(0xaf)](_0x566f65(0x90),_0x566f65(0x8c),{'count':_0x2cf348[_0x566f65(0x9f)],'resources':_0x141c75}),{'created':_0x44fb06[_0x566f65(0x9f)],'skipped':![],'dryRun':![],'targetPages':_0x2cf348,'plannedMenus':_0x23d935,'menus':_0x44fb06};}export function parseMenuSyncParams(_0x48579a){const _0x30b787=a173_0x58f940;if(!_0x48579a||typeof _0x48579a!==_0x30b787(0xa8))return{};let _0x1bca6b;try{_0x1bca6b=JSON[_0x30b787(0xb4)](_0x48579a);}catch{throw new Error(_0x30b787(0xb1));}if(typeof _0x1bca6b!==_0x30b787(0xaa)||_0x1bca6b===null||Array[_0x30b787(0xc2)](_0x1bca6b))throw new Error('Invalid\x20--params:\x20expected\x20a\x20JSON\x20object.');const _0x4d26a5=_0x1bca6b;if(Object[_0x30b787(0xbb)](_0x4d26a5,'pages'))throw new Error('--params.pages\x20is\x20no\x20longer\x20supported.\x20Use\x20--paths\x20with\x20exact\x20local\x20page\x20paths.');const _0x50f48f=Object['keys'](_0x4d26a5)[_0x30b787(0xc5)](_0x19d2ac=>!MENU_SYNC_PARAM_KEYS[_0x30b787(0xb6)](_0x19d2ac));if(_0x50f48f[_0x30b787(0x9f)]>0x0)throw new Error('Invalid\x20--params\x20fields:\x20'+_0x50f48f[_0x30b787(0x9c)](',\x20')+'.');for(const _0x188b70 of['jsUrl',_0x30b787(0xbe),_0x30b787(0xac)]){const _0x4a45f4=_0x4d26a5[_0x188b70];if(_0x4a45f4!==undefined&&(typeof _0x4a45f4!=='string'||_0x4a45f4['trim']()===''))throw new Error(_0x30b787(0xb0)+_0x188b70+':\x20expected\x20a\x20non-empty\x20string.');}if(_0x4d26a5['visible']!==undefined&&typeof _0x4d26a5[_0x30b787(0xbd)]!==_0x30b787(0xa0))throw new Error('Invalid\x20--params.visible:\x20expected\x20a\x20boolean.');if(_0x4d26a5[_0x30b787(0xba)]!==undefined&&(!Number['isInteger'](_0x4d26a5['parentId'])||_0x4d26a5[_0x30b787(0xba)]<0x0))throw new Error(_0x30b787(0xbc));return{'jsUrl':typeof _0x4d26a5[_0x30b787(0xc4)]===_0x30b787(0xa8)?_0x4d26a5[_0x30b787(0xc4)][_0x30b787(0xa6)]():undefined,'cssUrl':typeof _0x4d26a5['cssUrl']==='string'?_0x4d26a5[_0x30b787(0xbe)][_0x30b787(0xa6)]():undefined,'appName':typeof _0x4d26a5[_0x30b787(0xac)]===_0x30b787(0xa8)?_0x4d26a5[_0x30b787(0xac)][_0x30b787(0xa6)]():undefined,'visible':typeof _0x4d26a5[_0x30b787(0xbd)]==='boolean'?_0x4d26a5['visible']:undefined,'parentId':typeof _0x4d26a5[_0x30b787(0xba)]===_0x30b787(0x9b)?_0x4d26a5[_0x30b787(0xba)]:undefined};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0x272418,_0x415038){const _0x33b423=a175_0x583c,_0x584e6a=_0x272418();while(!![]){try{const _0x2d41b5=parseInt(_0x33b423(0x11e))/0x1+-parseInt(_0x33b423(0x10d))/0x2*(-parseInt(_0x33b423(0x100))/0x3)+parseInt(_0x33b423(0xef))/0x4+-parseInt(_0x33b423(0x11a))/0x5*(parseInt(_0x33b423(0xfa))/0x6)+-parseInt(_0x33b423(0xe8))/0x7+-parseInt(_0x33b423(0xea))/0x8+-parseInt(_0x33b423(0x112))/0x9*(-parseInt(_0x33b423(0x127))/0xa);if(_0x2d41b5===_0x415038)break;else _0x584e6a['push'](_0x584e6a['shift']());}catch(_0x4535e7){_0x584e6a['push'](_0x584e6a['shift']());}}}(a175_0x1e89,0x3a338));import{updateMenuCdnUrl,getOnlineMenuList}from'../../../commands/menu/shared/service.js';import{isUrlReachable,isValidCssHttpsUrl,isValidJsHttpsUrl}from'../../../commands/menu/shared/valid-url.js';import{logger}from'../../../utils/logger.js';function validateParams(_0x4526fc){const _0x4cb5cd=a175_0x583c,_0x535835=[];return _0x4526fc[_0x4cb5cd(0x115)]&&!isValidJsHttpsUrl(_0x4526fc[_0x4cb5cd(0x115)])&&_0x535835[_0x4cb5cd(0xe4)]({'field':'jsUrl','message':_0x4cb5cd(0xf5)}),_0x4526fc['cssUrl']&&!isValidCssHttpsUrl(_0x4526fc[_0x4cb5cd(0xe7)])&&_0x535835[_0x4cb5cd(0xe4)]({'field':_0x4cb5cd(0xe7),'message':_0x4cb5cd(0x111)}),_0x535835;}export async function runMenuUpdateCore(_0x33326d,_0x3b1993,_0x32fc97,_0x4feb59={}){const _0x5d6328=a175_0x583c,_0x15da02=parseUpdateParamsFlag(_0x32fc97),_0x45e1ee=normalizeMode(_0x4feb59[_0x5d6328(0xf3)]);validateSelection(_0x4feb59[_0x5d6328(0x118)]);const _0x39503d=[];if(_0x15da02['jsUrl'])_0x39503d['push'](_0x15da02[_0x5d6328(0x115)]);if(_0x15da02[_0x5d6328(0xe7)])_0x39503d[_0x5d6328(0xe4)](_0x15da02['cssUrl']);const _0x133693=validateParams(_0x15da02);if(_0x133693['length']>0x0){const _0x107616=_0x133693[_0x5d6328(0x110)](_0x11214d=>'--params.'+_0x11214d[_0x5d6328(0xf9)]+':\x20'+_0x11214d[_0x5d6328(0xe2)])[_0x5d6328(0x102)](';\x20');throw new Error(_0x5d6328(0xe3)+_0x107616);}if(_0x39503d['length']===0x0)throw new Error(_0x5d6328(0x108)+_0x5d6328(0x116));logger[_0x5d6328(0x101)](process['cwd']()),logger[_0x5d6328(0xfb)]('menu-asset-update',_0x5d6328(0xfc),{'appCode':_0x33326d,'jsUrl':_0x15da02[_0x5d6328(0x115)],'cssUrl':_0x15da02['cssUrl'],'mode':_0x45e1ee,'dryRun':_0x4feb59['dryRun']===!![]});if(_0x15da02[_0x5d6328(0x115)]){const _0x42fc13=await isUrlReachable(_0x15da02[_0x5d6328(0x115)]);if(!_0x42fc13)throw new Error(_0x5d6328(0x106)+_0x15da02['jsUrl']);}if(_0x15da02[_0x5d6328(0xe7)]){const _0x150b88=await isUrlReachable(_0x15da02['cssUrl']);if(!_0x150b88)throw new Error(_0x5d6328(0x123)+_0x15da02['cssUrl']);}const _0x276183=await getOnlineMenuList(_0x33326d,_0x3b1993),_0x1e1f1a=_0x276183[_0x5d6328(0x119)](_0x566858=>_0x566858[_0x5d6328(0x120)][_0x5d6328(0x124)]>0x0),_0x1883a1=selectMenusForUpdate(_0x1e1f1a,_0x4feb59[_0x5d6328(0x118)]);if(_0x1883a1[_0x5d6328(0x124)]===0x0)return{'updated':0x0,'failed':0x0,'skipped':!![],'dryRun':_0x4feb59[_0x5d6328(0xf4)]===!![]};const _0x442cb4=_0x1883a1['map'](_0x8cadbd=>buildMenuUpdateDiff(_0x8cadbd,_0x15da02,_0x45e1ee,_0x4feb59[_0x5d6328(0xe6)]===!![],_0x4feb59[_0x5d6328(0x129)]));if(_0x4feb59[_0x5d6328(0xf4)])return{'updated':0x0,'failed':0x0,'skipped':![],'dryRun':!![],'diffs':_0x442cb4};const _0x467c63=await Promise[_0x5d6328(0x10e)](_0x1883a1['map']((_0x559944,_0x162e18)=>updateMenuCdnUrl(_0x33326d,_0x3b1993,{'id':_0x559944['id'],'label':_0x559944[_0x5d6328(0x122)],'path':_0x559944['path'],'resources':_0x442cb4[_0x162e18][_0x5d6328(0xf8)]['resources'],'extend':_0x559944['extend']??null,'loadScriptMode':_0x4feb59['loadScriptMode']}))),_0x38aed3=_0x467c63[_0x5d6328(0x119)](_0x5b7094=>_0x5b7094[_0x5d6328(0xed)]===_0x5d6328(0x10f))[_0x5d6328(0x110)](_0x4e6784=>_0x4e6784[_0x5d6328(0x103)]),_0x2c82e2=_0x467c63[_0x5d6328(0x119)](_0x58af88=>_0x58af88[_0x5d6328(0xed)]==='rejected')['length'];return logger[_0x5d6328(0xfb)](_0x5d6328(0xe5),'Menu\x20asset\x20update\x20completed',{'count':_0x1883a1[_0x5d6328(0x124)],'resources':_0x39503d}),{'updated':_0x38aed3[_0x5d6328(0x124)],'failed':_0x2c82e2,'skipped':![],'menus':_0x38aed3};}function validateSelection(_0x3496ee){const _0x4de3f3=a175_0x583c;if(!_0x3496ee)throw new Error(_0x4de3f3(0x11b));if(_0x3496ee[_0x4de3f3(0xee)]&&(_0x3496ee[_0x4de3f3(0x11d)][_0x4de3f3(0x124)]>0x0||_0x3496ee[_0x4de3f3(0x126)][_0x4de3f3(0x124)]>0x0))throw new Error(_0x4de3f3(0x105));if(!_0x3496ee[_0x4de3f3(0xee)]&&_0x3496ee[_0x4de3f3(0x11d)]['length']===0x0&&_0x3496ee[_0x4de3f3(0x126)][_0x4de3f3(0x124)]===0x0)throw new Error(_0x4de3f3(0x11b));}export function selectMenusForUpdate(_0x1a12ef,_0x32cf68){const _0x4027fe=a175_0x583c;validateSelection(_0x32cf68);if(_0x32cf68['all'])return _0x1a12ef;const _0x1fc634=new Set(_0x1a12ef[_0x4027fe(0x110)](_0x53ea2a=>_0x53ea2a['id'])),_0x45fed8=new Set(_0x1a12ef[_0x4027fe(0x110)](_0x533b13=>_0x533b13[_0x4027fe(0xfd)])),_0x165f9f=_0x32cf68[_0x4027fe(0x11d)][_0x4027fe(0x119)](_0x4009b7=>!_0x1fc634[_0x4027fe(0x125)](_0x4009b7)),_0x37ebe8=_0x32cf68['paths'][_0x4027fe(0x119)](_0x1853ef=>!_0x45fed8[_0x4027fe(0x125)](_0x1853ef));if(_0x165f9f[_0x4027fe(0x124)]>0x0||_0x37ebe8['length']>0x0){const _0x4a1a4d=[..._0x165f9f[_0x4027fe(0x110)](_0x38f880=>String(_0x38f880)),..._0x37ebe8][_0x4027fe(0x102)](',\x20');throw new Error(_0x4027fe(0x113)+_0x4a1a4d);}const _0x1c4596=new Set(_0x32cf68[_0x4027fe(0x11d)]),_0xea66a8=new Set(_0x32cf68[_0x4027fe(0x126)]);return _0x1a12ef[_0x4027fe(0x119)](_0x1af1d9=>_0x1c4596[_0x4027fe(0x125)](_0x1af1d9['id'])||_0xea66a8[_0x4027fe(0x125)](_0x1af1d9[_0x4027fe(0xfd)]));}function normalizeMode(_0x499e19){const _0x2602b3=a175_0x583c;if(!_0x499e19)return _0x2602b3(0xf2);if(_0x499e19===_0x2602b3(0xec)||_0x499e19==='patch')return _0x499e19;throw new Error(_0x2602b3(0x121)+_0x499e19+_0x2602b3(0x114));}function a175_0x583c(_0x418dd1,_0xe7f998){_0x418dd1=_0x418dd1-0xe2;const _0x1e89c7=a175_0x1e89();let _0x583cab=_0x1e89c7[_0x418dd1];return _0x583cab;}function buildMenuUpdateDiff(_0x3d6687,_0x2343b3,_0x5c3e28,_0x38682f,_0x55bb1a){const _0x12ec82=a175_0x583c,_0x2452dc=[..._0x3d6687['resources']];_0x5c3e28===_0x12ec82(0xf2)&&assertUnambiguousPatchResources(_0x3d6687,_0x2452dc,_0x2343b3);const _0x3487ac=_0x5c3e28==='patch'?patchResources(_0x2452dc,_0x2343b3):replaceResources(_0x2343b3),_0x5e95b2=[],_0x2166be=_0x2452dc[_0x12ec82(0x10a)](isJsResource),_0x1b7b5d=_0x3487ac[_0x12ec82(0x10a)](isJsResource);if(_0x2166be&&!_0x1b7b5d){const _0x5f5d8a=_0x12ec82(0xf0)+_0x3d6687[_0x12ec82(0x122)]+_0x12ec82(0xeb)+_0x3d6687[_0x12ec82(0xfd)]+_0x12ec82(0x12a)+_0x12ec82(0x10b);if(!_0x38682f)throw new Error(_0x5f5d8a);_0x5e95b2[_0x12ec82(0xe4)](_0x5f5d8a);}const _0x1c68c5=_0x2452dc[_0x12ec82(0x10a)](isCssResource),_0x536f47=_0x3487ac['some'](isCssResource);_0x1c68c5&&!_0x536f47&&_0x5e95b2[_0x12ec82(0xe4)](_0x12ec82(0x109)+_0x3d6687['label']+'\x22\x20('+_0x3d6687[_0x12ec82(0xfd)]+').');const _0x51028b=typeof _0x3d6687[_0x12ec82(0x107)]?.[_0x12ec82(0x129)]===_0x12ec82(0x10c)?_0x3d6687[_0x12ec82(0x107)][_0x12ec82(0x129)]:null,_0x3128ef=_0x55bb1a?{'loadScriptMode':_0x51028b}:{},_0x555f11=_0x55bb1a?{'loadScriptMode':_0x55bb1a}:{};return{'id':_0x3d6687['id'],'label':_0x3d6687['label'],'path':_0x3d6687[_0x12ec82(0xfd)],'mode':_0x5c3e28,'before':{'resources':_0x2452dc,..._0x3128ef},'after':{'resources':_0x3487ac,..._0x555f11},'warnings':_0x5e95b2};}function replaceResources(_0x40b42f){const _0x46ed6a=a175_0x583c;return[_0x40b42f[_0x46ed6a(0x115)],_0x40b42f[_0x46ed6a(0xe7)]][_0x46ed6a(0x119)](_0x5a588d=>!!_0x5a588d);}function assertUnambiguousPatchResources(_0x509c74,_0x255147,_0x18d3c8){const _0x4df893=a175_0x583c,_0x49b7db=_0x255147[_0x4df893(0x119)](isJsResource)[_0x4df893(0x124)];if(_0x18d3c8[_0x4df893(0x115)]&&_0x49b7db>0x1)throw new Error(_0x4df893(0x11c)+_0x49b7db+_0x4df893(0xff)+_0x509c74[_0x4df893(0x122)]+_0x4df893(0xeb)+_0x509c74[_0x4df893(0xfd)]+')\x20'+_0x4df893(0xf7));const _0x11e2e6=_0x255147[_0x4df893(0x119)](isCssResource)['length'];if(_0x18d3c8[_0x4df893(0xe7)]&&_0x11e2e6>0x1)throw new Error(_0x4df893(0x11c)+_0x11e2e6+'\x20existing\x20CSS\x20resources\x20for\x20\x22'+_0x509c74[_0x4df893(0x122)]+_0x4df893(0xeb)+_0x509c74[_0x4df893(0xfd)]+')\x20'+'with\x20a\x20single\x20cssUrl.\x20Review\x20a\x20dry-run\x20and\x20use\x20--mode\x20replace\x20only\x20when\x20intentionally\x20rewriting\x20the\x20complete\x20resource\x20set.');}function patchResources(_0x583e25,_0x273bc7){const _0x34fb31=a175_0x583c;let _0x10e540=![],_0x523758=![];const _0x690275=[];for(const _0x1ba53a of _0x583e25){if(isJsResource(_0x1ba53a)){if(_0x273bc7[_0x34fb31(0x115)]&&!_0x10e540)_0x690275[_0x34fb31(0xe4)](_0x273bc7[_0x34fb31(0x115)]),_0x10e540=!![];else!_0x273bc7[_0x34fb31(0x115)]&&_0x690275['push'](_0x1ba53a);continue;}if(isCssResource(_0x1ba53a)){if(_0x273bc7[_0x34fb31(0xe7)]&&!_0x523758)_0x690275[_0x34fb31(0xe4)](_0x273bc7[_0x34fb31(0xe7)]),_0x523758=!![];else!_0x273bc7[_0x34fb31(0xe7)]&&_0x690275[_0x34fb31(0xe4)](_0x1ba53a);continue;}_0x690275[_0x34fb31(0xe4)](_0x1ba53a);}return _0x273bc7['jsUrl']&&!_0x10e540&&_0x690275[_0x34fb31(0xf1)](_0x273bc7[_0x34fb31(0x115)]),_0x273bc7[_0x34fb31(0xe7)]&&!_0x523758&&_0x690275[_0x34fb31(0xe4)](_0x273bc7[_0x34fb31(0xe7)]),_0x690275;}function isJsResource(_0x146669){const _0x44daca=a175_0x583c;return stripQuery(_0x146669)[_0x44daca(0xe9)]()['endsWith']('.js');}function isCssResource(_0x61653d){const _0x4b988e=a175_0x583c;return stripQuery(_0x61653d)['toLowerCase']()[_0x4b988e(0xfe)](_0x4b988e(0x104));}function stripQuery(_0x1396b6){return _0x1396b6['split']('?')[0x0]??_0x1396b6;}function parseUpdateParamsFlag(_0x36265e){const _0x740f7f=a175_0x583c;if(!_0x36265e||typeof _0x36265e!=='string')return{};try{const _0x3584ea=JSON[_0x740f7f(0x117)](_0x36265e);if(typeof _0x3584ea!==_0x740f7f(0x11f)||_0x3584ea===null||Array[_0x740f7f(0x128)](_0x3584ea))return{};return{'jsUrl':typeof _0x3584ea[_0x740f7f(0x115)]===_0x740f7f(0x10c)?_0x3584ea[_0x740f7f(0x115)]['trim']():undefined,'cssUrl':typeof _0x3584ea[_0x740f7f(0xe7)]==='string'?_0x3584ea[_0x740f7f(0xe7)][_0x740f7f(0xf6)]():undefined};}catch{return{};}}function a175_0x1e89(){const _0x5953f9=['Invalid\x20--params:\x20menu\x20asset-update\x20requires\x20at\x20least\x20one\x20explicit\x20JS/CSS\x20URL.\x20','menu\x20asset-update\x20will\x20remove\x20existing\x20CSS\x20resource\x20for\x20\x22','some','Use\x20--mode\x20patch\x20to\x20preserve\x20it,\x20pass\x20jsUrl,\x20or\x20add\x20--force\x20for\x20an\x20intentional\x20removal.','string','6080XxVuGR','allSettled','fulfilled','map','CSS\x20URL\x20must\x20be\x20a\x20valid\x20https://...css\x20URL','42966PmYVOe','menu\x20asset-update\x20selectors\x20did\x20not\x20match\x20resource-bearing\x20menus:\x20','.\x20Allowed\x20values:\x20replace,\x20patch','jsUrl','Pass\x20--params\x20\x27{\x22jsUrl\x22:\x22https://...js\x22,\x22cssUrl\x22:\x22https://...css\x22}\x27\x20to\x20update\x20assets.','parse','selection','filter','15UdBBGk','menu\x20asset-update\x20requires\x20an\x20explicit\x20target:\x20pass\x20--all,\x20--menu-ids,\x20or\x20--paths.','menu\x20asset-update\x20cannot\x20patch\x20','menuIds','147264gKDZtE','object','resources','Invalid\x20--mode:\x20','label','CSS\x20URL\x20is\x20unreachable:\x20','length','has','paths','1850GntQgJ','isArray','loadScriptMode',').\x20','message','Invalid\x20--params:\x20','push','menu-asset-update','force','cssUrl','2894101qRCWkB','toLowerCase','2956784kHeOgH','\x22\x20(','replace','status','all','676016VLsyfU','menu\x20asset-update\x20would\x20remove\x20existing\x20JS\x20resource\x20for\x20\x22','unshift','patch','mode','dryRun','JS\x20URL\x20must\x20be\x20a\x20valid\x20https://...js\x20URL','trim','with\x20a\x20single\x20jsUrl.\x20Review\x20a\x20dry-run\x20and\x20use\x20--mode\x20replace\x20only\x20when\x20intentionally\x20rewriting\x20the\x20complete\x20resource\x20set.','after','field','854610WLZCSk','info','Start\x20non-interactive\x20menu\x20asset\x20update','path','endsWith','\x20existing\x20JS\x20resources\x20for\x20\x22','246jeDmHX','setLogPath','join','value','.css','--all\x20cannot\x20be\x20combined\x20with\x20--menu-ids\x20or\x20--paths.','JS\x20URL\x20is\x20unreachable:\x20','extend'];a175_0x1e89=function(){return _0x5953f9;};return a175_0x1e89();}
|
|
1
|
+
(function(_0x622895,_0x5f0fb1){const _0x26797e=a175_0x3c91,_0x371b1f=_0x622895();while(!![]){try{const _0x1e9e1d=parseInt(_0x26797e(0xd8))/0x1+-parseInt(_0x26797e(0xbd))/0x2+parseInt(_0x26797e(0xdb))/0x3*(parseInt(_0x26797e(0xcb))/0x4)+parseInt(_0x26797e(0xd0))/0x5+-parseInt(_0x26797e(0xb7))/0x6*(parseInt(_0x26797e(0xa8))/0x7)+-parseInt(_0x26797e(0xd4))/0x8+-parseInt(_0x26797e(0x9d))/0x9*(-parseInt(_0x26797e(0xdd))/0xa);if(_0x1e9e1d===_0x5f0fb1)break;else _0x371b1f['push'](_0x371b1f['shift']());}catch(_0x59bf39){_0x371b1f['push'](_0x371b1f['shift']());}}}(a175_0x2131,0x50c17));import{updateMenuCdnUrl,getOnlineMenuList}from'../../../commands/menu/shared/service.js';import{isUrlReachable,isValidCssHttpsUrl,isValidJsHttpsUrl}from'../../../commands/menu/shared/valid-url.js';function a175_0x3c91(_0x30d078,_0x1b4bf4){_0x30d078=_0x30d078-0x92;const _0x2131a3=a175_0x2131();let _0x3c9140=_0x2131a3[_0x30d078];return _0x3c9140;}import{logger}from'../../../utils/logger.js';function validateParams(_0x171e7a){const _0x1063bb=a175_0x3c91,_0x1f4590=[];return _0x171e7a[_0x1063bb(0xad)]&&!isValidJsHttpsUrl(_0x171e7a[_0x1063bb(0xad)])&&_0x1f4590['push']({'field':_0x1063bb(0xad),'message':_0x1063bb(0xc5)}),_0x171e7a[_0x1063bb(0x9a)]&&!isValidCssHttpsUrl(_0x171e7a[_0x1063bb(0x9a)])&&_0x1f4590['push']({'field':_0x1063bb(0x9a),'message':_0x1063bb(0x95)}),_0x1f4590;}export async function runMenuUpdateCore(_0x121469,_0x216fa1,_0x50ab57,_0x780f53={}){const _0x51aa1c=a175_0x3c91,_0x1c5a82=parseUpdateParamsFlag(_0x50ab57),_0x39babd=normalizeMode(_0x780f53[_0x51aa1c(0xa0)]);validateSelection(_0x780f53[_0x51aa1c(0xbc)]);const _0x2e4cbc=[];if(_0x1c5a82[_0x51aa1c(0xad)])_0x2e4cbc['push'](_0x1c5a82['jsUrl']);if(_0x1c5a82['cssUrl'])_0x2e4cbc[_0x51aa1c(0xa6)](_0x1c5a82[_0x51aa1c(0x9a)]);const _0x145d8d=validateParams(_0x1c5a82);if(_0x145d8d[_0x51aa1c(0xa3)]>0x0){const _0xaa9560=_0x145d8d[_0x51aa1c(0x9e)](_0x4682dd=>_0x51aa1c(0xac)+_0x4682dd[_0x51aa1c(0xce)]+':\x20'+_0x4682dd['message'])[_0x51aa1c(0xc1)](';\x20');throw new Error('Invalid\x20--params:\x20'+_0xaa9560);}if(_0x2e4cbc[_0x51aa1c(0xa3)]===0x0)throw new Error(_0x51aa1c(0xc4)+_0x51aa1c(0x99));logger[_0x51aa1c(0xc9)](process[_0x51aa1c(0xb5)]()),logger['info'](_0x51aa1c(0xa9),_0x51aa1c(0xba),{'appCode':_0x121469,'jsUrl':_0x1c5a82[_0x51aa1c(0xad)],'cssUrl':_0x1c5a82[_0x51aa1c(0x9a)],'mode':_0x39babd,'dryRun':_0x780f53[_0x51aa1c(0xb3)]===!![]});if(_0x1c5a82['jsUrl']){const _0x2b4b6c=await isUrlReachable(_0x1c5a82[_0x51aa1c(0xad)]);if(!_0x2b4b6c)throw new Error(_0x51aa1c(0xcf)+_0x1c5a82[_0x51aa1c(0xad)]);}if(_0x1c5a82[_0x51aa1c(0x9a)]){const _0x4b61a7=await isUrlReachable(_0x1c5a82[_0x51aa1c(0x9a)]);if(!_0x4b61a7)throw new Error(_0x51aa1c(0xb2)+_0x1c5a82['cssUrl']);}const _0x33af67=await getOnlineMenuList(_0x121469,_0x216fa1),_0x19cf28=_0x33af67[_0x51aa1c(0xaf)](_0x1e359e=>_0x1e359e['resources'][_0x51aa1c(0xa3)]>0x0),_0x30a169=selectMenusForUpdate(_0x19cf28,_0x780f53[_0x51aa1c(0xbc)]);if(_0x30a169[_0x51aa1c(0xa3)]===0x0)return{'updated':0x0,'failed':0x0,'skipped':!![],'dryRun':_0x780f53[_0x51aa1c(0xb3)]===!![]};const _0x1f50ea=_0x30a169['map'](_0x546a5e=>buildMenuUpdateDiff(_0x546a5e,_0x1c5a82,_0x39babd,_0x780f53[_0x51aa1c(0xd9)]===!![],_0x780f53[_0x51aa1c(0xaa)]));if(_0x780f53[_0x51aa1c(0xb3)])return{'updated':0x0,'failed':0x0,'skipped':![],'dryRun':!![],'diffs':_0x1f50ea};const _0x32f728=await Promise[_0x51aa1c(0xc6)](_0x30a169[_0x51aa1c(0x9e)]((_0x3183c8,_0x708c34)=>updateMenuCdnUrl(_0x121469,_0x216fa1,{'id':_0x3183c8['id'],'label':_0x3183c8[_0x51aa1c(0xa7)],'path':_0x3183c8['path'],'resources':_0x1f50ea[_0x708c34][_0x51aa1c(0xab)][_0x51aa1c(0xb9)],'extend':_0x3183c8[_0x51aa1c(0xa5)]??null,'loadScriptMode':_0x780f53[_0x51aa1c(0xaa)]}))),_0x5c01fa=_0x32f728[_0x51aa1c(0xaf)](_0x11e494=>_0x11e494[_0x51aa1c(0xc3)]===_0x51aa1c(0xd2))[_0x51aa1c(0x9e)](_0x5023b4=>_0x5023b4[_0x51aa1c(0xae)]),_0x5c7739=_0x32f728[_0x51aa1c(0xaf)](_0x3b3edc=>_0x3b3edc[_0x51aa1c(0xc3)]===_0x51aa1c(0x97))[_0x51aa1c(0xa3)];return logger[_0x51aa1c(0xc2)](_0x51aa1c(0xa9),_0x51aa1c(0xbf),{'count':_0x30a169[_0x51aa1c(0xa3)],'resources':_0x2e4cbc}),{'updated':_0x5c01fa['length'],'failed':_0x5c7739,'skipped':![],'menus':_0x5c01fa};}function validateSelection(_0xb8fba1){const _0x124c24=a175_0x3c91;if(!_0xb8fba1)throw new Error(_0x124c24(0x96));if(_0xb8fba1[_0x124c24(0xd3)]&&(_0xb8fba1[_0x124c24(0xa4)][_0x124c24(0xa3)]>0x0||_0xb8fba1[_0x124c24(0xb4)][_0x124c24(0xa3)]>0x0))throw new Error('--all\x20cannot\x20be\x20combined\x20with\x20--menu-ids\x20or\x20--paths.');if(!_0xb8fba1[_0x124c24(0xd3)]&&_0xb8fba1['menuIds']['length']===0x0&&_0xb8fba1[_0x124c24(0xb4)]['length']===0x0)throw new Error(_0x124c24(0x96));}export function selectMenusForUpdate(_0x23348f,_0x46c2bf){const _0x4828b1=a175_0x3c91;validateSelection(_0x46c2bf);if(_0x46c2bf[_0x4828b1(0xd3)])return _0x23348f;const _0x1710da=new Set(_0x23348f[_0x4828b1(0x9e)](_0x582d56=>_0x582d56['id'])),_0x4e30c2=new Set(_0x23348f['map'](_0x220d50=>_0x220d50[_0x4828b1(0xdc)])),_0xd31332=_0x46c2bf['menuIds'][_0x4828b1(0xaf)](_0x408186=>!_0x1710da[_0x4828b1(0xa2)](_0x408186)),_0x1510c2=_0x46c2bf[_0x4828b1(0xb4)]['filter'](_0x2100bf=>!_0x4e30c2[_0x4828b1(0xa2)](_0x2100bf));if(_0xd31332[_0x4828b1(0xa3)]>0x0||_0x1510c2[_0x4828b1(0xa3)]>0x0){const _0x4806df=[..._0xd31332['map'](_0x552d24=>String(_0x552d24)),..._0x1510c2][_0x4828b1(0xc1)](',\x20');throw new Error('menu\x20asset-update\x20selectors\x20did\x20not\x20match\x20resource-bearing\x20menus:\x20'+_0x4806df);}const _0x52c11c=new Set(_0x46c2bf['menuIds']),_0x55453b=new Set(_0x46c2bf[_0x4828b1(0xb4)]);return _0x23348f[_0x4828b1(0xaf)](_0xc44a3e=>_0x52c11c[_0x4828b1(0xa2)](_0xc44a3e['id'])||_0x55453b[_0x4828b1(0xa2)](_0xc44a3e[_0x4828b1(0xdc)]));}function normalizeMode(_0xc6fb3b){const _0x416d26=a175_0x3c91;if(!_0xc6fb3b)return _0x416d26(0xcd);if(_0xc6fb3b===_0x416d26(0xa1)||_0xc6fb3b===_0x416d26(0xcd))return _0xc6fb3b;throw new Error(_0x416d26(0x93)+_0xc6fb3b+_0x416d26(0xc0));}function buildMenuUpdateDiff(_0x29defb,_0x49d6a0,_0x594dd9,_0x31bfa1,_0x11e595){const _0x439aaa=a175_0x3c91,_0x51912b=[..._0x29defb[_0x439aaa(0xb9)]];_0x594dd9===_0x439aaa(0xcd)&&assertUnambiguousPatchResources(_0x29defb,_0x51912b,_0x49d6a0);const _0x4bb5a2=_0x594dd9===_0x439aaa(0xcd)?patchResources(_0x51912b,_0x49d6a0):replaceResources(_0x49d6a0),_0x22c74a=[],_0x1df8e9=_0x51912b[_0x439aaa(0x9c)](isJsResource),_0x4edb35=_0x4bb5a2[_0x439aaa(0x9c)](isJsResource);if(_0x1df8e9&&!_0x4edb35){const _0x3ad2f5=_0x439aaa(0xbb)+_0x29defb[_0x439aaa(0xa7)]+_0x439aaa(0x92)+_0x29defb[_0x439aaa(0xdc)]+_0x439aaa(0x9b)+_0x439aaa(0xb6);if(!_0x31bfa1)throw new Error(_0x3ad2f5);_0x22c74a[_0x439aaa(0xa6)](_0x3ad2f5);}const _0x2af8e1=_0x51912b[_0x439aaa(0x9c)](isCssResource),_0x45e6c9=_0x4bb5a2[_0x439aaa(0x9c)](isCssResource);_0x2af8e1&&!_0x45e6c9&&_0x22c74a[_0x439aaa(0xa6)](_0x439aaa(0xbe)+_0x29defb[_0x439aaa(0xa7)]+_0x439aaa(0x92)+_0x29defb[_0x439aaa(0xdc)]+').');const _0x57974a=typeof _0x29defb[_0x439aaa(0xa5)]?.[_0x439aaa(0xaa)]===_0x439aaa(0xca)?_0x29defb[_0x439aaa(0xa5)][_0x439aaa(0xaa)]:null,_0x2828eb=_0x11e595?{'loadScriptMode':_0x57974a}:{},_0x386f4f=_0x11e595?{'loadScriptMode':_0x11e595}:{};return{'id':_0x29defb['id'],'label':_0x29defb['label'],'path':_0x29defb[_0x439aaa(0xdc)],'mode':_0x594dd9,'before':{'resources':_0x51912b,..._0x2828eb},'after':{'resources':_0x4bb5a2,..._0x386f4f},'warnings':_0x22c74a};}function replaceResources(_0x2c010d){const _0x4eafa1=a175_0x3c91;return[_0x2c010d['jsUrl'],_0x2c010d[_0x4eafa1(0x9a)]][_0x4eafa1(0xaf)](_0x366613=>!!_0x366613);}function assertUnambiguousPatchResources(_0x415d10,_0x426e65,_0x510468){const _0x26813f=a175_0x3c91,_0x1ed715=_0x426e65[_0x26813f(0xaf)](isJsResource)[_0x26813f(0xa3)];if(_0x510468[_0x26813f(0xad)]&&_0x1ed715>0x1)throw new Error('menu\x20asset-update\x20cannot\x20patch\x20'+_0x1ed715+_0x26813f(0xd5)+_0x415d10['label']+'\x22\x20('+_0x415d10['path']+')\x20'+_0x26813f(0xc7));const _0xd733e0=_0x426e65['filter'](isCssResource)[_0x26813f(0xa3)];if(_0x510468[_0x26813f(0x9a)]&&_0xd733e0>0x1)throw new Error(_0x26813f(0xd6)+_0xd733e0+_0x26813f(0xb8)+_0x415d10[_0x26813f(0xa7)]+'\x22\x20('+_0x415d10[_0x26813f(0xdc)]+')\x20'+_0x26813f(0xd7));}function patchResources(_0xf877d1,_0x554718){const _0x330e06=a175_0x3c91;let _0x34ad3c=![],_0x4bf76c=![];const _0x41bc52=[];for(const _0x84b43f of _0xf877d1){if(isJsResource(_0x84b43f)){if(_0x554718[_0x330e06(0xad)]&&!_0x34ad3c)_0x41bc52['push'](_0x554718['jsUrl']),_0x34ad3c=!![];else!_0x554718['jsUrl']&&_0x41bc52['push'](_0x84b43f);continue;}if(isCssResource(_0x84b43f)){if(_0x554718[_0x330e06(0x9a)]&&!_0x4bf76c)_0x41bc52[_0x330e06(0xa6)](_0x554718['cssUrl']),_0x4bf76c=!![];else!_0x554718[_0x330e06(0x9a)]&&_0x41bc52[_0x330e06(0xa6)](_0x84b43f);continue;}_0x41bc52[_0x330e06(0xa6)](_0x84b43f);}return _0x554718[_0x330e06(0xad)]&&!_0x34ad3c&&_0x41bc52[_0x330e06(0xda)](_0x554718[_0x330e06(0xad)]),_0x554718[_0x330e06(0x9a)]&&!_0x4bf76c&&_0x41bc52[_0x330e06(0xa6)](_0x554718[_0x330e06(0x9a)]),_0x41bc52;}function isJsResource(_0x2bc64e){const _0xcdb221=a175_0x3c91;return stripQuery(_0x2bc64e)[_0xcdb221(0x94)]()['endsWith'](_0xcdb221(0xd1));}function isCssResource(_0x508ed9){const _0x459a54=a175_0x3c91;return stripQuery(_0x508ed9)[_0x459a54(0x94)]()[_0x459a54(0x9f)](_0x459a54(0xc8));}function stripQuery(_0x3809d5){const _0x50b0d2=a175_0x3c91;return _0x3809d5[_0x50b0d2(0xcc)]('?')[0x0]??_0x3809d5;}function parseUpdateParamsFlag(_0x1016c4){const _0x495dc7=a175_0x3c91;if(!_0x1016c4||typeof _0x1016c4!==_0x495dc7(0xca))return{};try{const _0x22199d=JSON['parse'](_0x1016c4);if(typeof _0x22199d!==_0x495dc7(0x98)||_0x22199d===null||Array[_0x495dc7(0xb0)](_0x22199d))return{};return{'jsUrl':typeof _0x22199d[_0x495dc7(0xad)]===_0x495dc7(0xca)?_0x22199d['jsUrl'][_0x495dc7(0xb1)]():undefined,'cssUrl':typeof _0x22199d[_0x495dc7(0x9a)]===_0x495dc7(0xca)?_0x22199d[_0x495dc7(0x9a)][_0x495dc7(0xb1)]():undefined};}catch{return{};}}function a175_0x2131(){const _0x2e15c8=['toLowerCase','CSS\x20URL\x20must\x20be\x20a\x20valid\x20https://...css\x20URL','menu\x20asset-update\x20requires\x20an\x20explicit\x20target:\x20pass\x20--all,\x20--menu-ids,\x20or\x20--paths.','rejected','object','Pass\x20--params\x20\x27{\x22jsUrl\x22:\x22https://...js\x22,\x22cssUrl\x22:\x22https://...css\x22}\x27\x20to\x20update\x20assets.','cssUrl',').\x20','some','186381WnsheY','map','endsWith','mode','replace','has','length','menuIds','extend','push','label','763AxmosM','menu-asset-update','loadScriptMode','after','--params.','jsUrl','value','filter','isArray','trim','CSS\x20URL\x20is\x20unreachable:\x20','dryRun','paths','cwd','Use\x20--mode\x20patch\x20to\x20preserve\x20it,\x20pass\x20jsUrl,\x20or\x20add\x20--force\x20for\x20an\x20intentional\x20removal.','21498ioCEmR','\x20existing\x20CSS\x20resources\x20for\x20\x22','resources','Start\x20non-interactive\x20menu\x20asset\x20update','menu\x20asset-update\x20would\x20remove\x20existing\x20JS\x20resource\x20for\x20\x22','selection','904948zRjTHM','menu\x20asset-update\x20will\x20remove\x20existing\x20CSS\x20resource\x20for\x20\x22','Menu\x20asset\x20update\x20completed','.\x20Allowed\x20values:\x20replace,\x20patch','join','info','status','Invalid\x20--params:\x20menu\x20asset-update\x20requires\x20at\x20least\x20one\x20explicit\x20JS/CSS\x20URL.\x20','JS\x20URL\x20must\x20be\x20a\x20valid\x20https://...js\x20URL','allSettled','with\x20a\x20single\x20jsUrl.\x20Review\x20a\x20dry-run\x20and\x20use\x20--mode\x20replace\x20only\x20when\x20intentionally\x20rewriting\x20the\x20complete\x20resource\x20set.','.css','setLogPath','string','251848OQAyoZ','split','patch','field','JS\x20URL\x20is\x20unreachable:\x20','2612820DrYXlk','.js','fulfilled','all','4593432EaDedJ','\x20existing\x20JS\x20resources\x20for\x20\x22','menu\x20asset-update\x20cannot\x20patch\x20','with\x20a\x20single\x20cssUrl.\x20Review\x20a\x20dry-run\x20and\x20use\x20--mode\x20replace\x20only\x20when\x20intentionally\x20rewriting\x20the\x20complete\x20resource\x20set.','390371llAJyV','force','unshift','24MYMGVl','path','160posHyJ','\x22\x20(','Invalid\x20--mode:\x20'];a175_0x2131=function(){return _0x2e15c8;};return a175_0x2131();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a176_0x3e8f(){const _0x4a6eb7=['body','trim','2058296VtngHx','997352YTaecY','6852132QqzNlL','10405764dNVOgT','HEAD','8682gAMsHN','test','cancel','6UnDIEs','4371785NCrIDN','159OOLrFX','10403904ZPuGdG'];a176_0x3e8f=function(){return _0x4a6eb7;};return a176_0x3e8f();}(function(_0x261fab,_0x381604){const _0x535d4d=a176_0xcd7b,_0x5a4f66=_0x261fab();while(!![]){try{const _0x383746=parseInt(_0x535d4d(0x1fa))/0x1+-parseInt(_0x535d4d(0x1f0))/0x2*(-parseInt(_0x535d4d(0x1f5))/0x3)+-parseInt(_0x535d4d(0x1f9))/0x4+-parseInt(_0x535d4d(0x1f4))/0x5+-parseInt(_0x535d4d(0x1f3))/0x6*(-parseInt(_0x535d4d(0x1ed))/0x7)+-parseInt(_0x535d4d(0x1f6))/0x8+parseInt(_0x535d4d(0x1ee))/0x9;if(_0x383746===_0x381604)break;else _0x5a4f66['push'](_0x5a4f66['shift']());}catch(_0x51a453){_0x5a4f66['push'](_0x5a4f66['shift']());}}}(a176_0x3e8f,0xa4536));export function isValidJsHttpsUrl(_0x5805cd){const _0x34b77f=a176_0xcd7b;return/^https:\/\/.+\.js(\?.*)?$/[_0x34b77f(0x1f1)](_0x5805cd[_0x34b77f(0x1f8)]());}function a176_0xcd7b(_0x9fe90e,_0x2be701){_0x9fe90e=_0x9fe90e-0x1ed;const _0x3e8f43=a176_0x3e8f();let _0xcd7b19=_0x3e8f43[_0x9fe90e];return _0xcd7b19;}export function isValidCssHttpsUrl(_0x167958){const _0x33ae4d=a176_0xcd7b;return/^https:\/\/.+\.css(\?.*)?$/[_0x33ae4d(0x1f1)](_0x167958['trim']());}export async function isUrlReachable(_0x17dba8){const _0x2273bf=a176_0xcd7b;try{const _0x3cd96a=await fetch(_0x17dba8,{'method':_0x2273bf(0x1ef)});if(_0x3cd96a['ok'])return!![];}catch{}try{const _0x53d9a1=await fetch(_0x17dba8,{'method':'GET','headers':{'Range':'bytes=0-0'}}),_0x3bca5e=_0x53d9a1['ok'];try{await _0x53d9a1[_0x2273bf(0x1f7)]?.[_0x2273bf(0x1f2)]();}catch{}return _0x3bca5e;}catch{return![];}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a177_0x354f(_0x28c793,_0x519af6){_0x28c793=_0x28c793-0x12d;const _0x19ecfc=a177_0x19ec();let _0x354f57=_0x19ecfc[_0x28c793];return _0x354f57;}const a177_0xc959f6=a177_0x354f;(function(_0x3e2aa7,_0x597f26){const _0x158d2e=a177_0x354f,_0x53cf93=_0x3e2aa7();while(!![]){try{const _0x3cee7f=-parseInt(_0x158d2e(0x135))/0x1+-parseInt(_0x158d2e(0x134))/0x2*(parseInt(_0x158d2e(0x13b))/0x3)+parseInt(_0x158d2e(0x130))/0x4+-parseInt(_0x158d2e(0x13d))/0x5+-parseInt(_0x158d2e(0x138))/0x6+parseInt(_0x158d2e(0x12e))/0x7+parseInt(_0x158d2e(0x133))/0x8;if(_0x3cee7f===_0x597f26)break;else _0x53cf93['push'](_0x53cf93['shift']());}catch(_0x54328e){_0x53cf93['push'](_0x53cf93['shift']());}}}(a177_0x19ec,0xabf6b));import{getSmartAppRecord}from'../../core/api-client.js';import{getOnlineMenuList}from'../../commands/menu/shared/service.js';function a177_0x19ec(){const _0x4e3ca3=['8190912kznHFc','all','Inspect\x20shared\x20frontend\x20subapp\x20resources\x20and\x20menu\x20fallbacks\x20in\x20the\x20selected\x20menu\x20host','303LTUKky','\x20in\x20menu\x20host\x20','4540780teMgeP','read','6104063NfPUiM','Inspected\x20','925460oWBqmr','boundMenus','subapp-assets-status','18988240UcNfgP','1142JzRPtU','441562uicYET','\x20menu(s)\x20for\x20','cookie'];a177_0x19ec=function(){return _0x4e3ca3;};return a177_0x19ec();}import{buildSubappAssetsStatus,getSubappSelector,SUBAPP_ASSET_SELECTOR_FLAGS}from'../../commands/menu/shared/subapp-assets.js';export const menuSubappAssetsStatus={'service':'menu','command':a177_0xc959f6(0x132),'description':a177_0xc959f6(0x13a),'risk':a177_0xc959f6(0x12d),'strictFlags':!![],'flags':SUBAPP_ASSET_SELECTOR_FLAGS,async 'validate'(_0x2772d5){getSubappSelector(_0x2772d5);},async 'execute'(_0x340396){const _0x416e38=a177_0xc959f6,{appCode:_0x96ebf8,appName:_0x5d9701}=getSubappSelector(_0x340396),[_0xcc2add,_0x2e91ca]=await Promise[_0x416e38(0x139)]([getSmartAppRecord(_0x96ebf8,_0x340396[_0x416e38(0x137)]),getOnlineMenuList(_0x96ebf8,_0x340396['cookie'])]),_0x19d00e={'appCode':_0x96ebf8,...buildSubappAssetsStatus(_0xcc2add,_0x2e91ca,_0x5d9701)};return{'ok':!![],'data':_0x19d00e,'message':_0x416e38(0x12f)+_0x19d00e[_0x416e38(0x131)]+_0x416e38(0x136)+_0x5d9701+_0x416e38(0x13c)+_0x96ebf8+'.'};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a178_0x3fdbc3=a178_0x4d5e;(function(_0x1bec6a,_0x5f548e){const _0x1e1d18=a178_0x4d5e,_0x297503=_0x1bec6a();while(!![]){try{const _0x4bed1f=-parseInt(_0x1e1d18(0x1cd))/0x1*(-parseInt(_0x1e1d18(0x1d9))/0x2)+parseInt(_0x1e1d18(0x1b0))/0x3*(parseInt(_0x1e1d18(0x1d1))/0x4)+parseInt(_0x1e1d18(0x1b4))/0x5*(parseInt(_0x1e1d18(0x1c7))/0x6)+parseInt(_0x1e1d18(0x1e2))/0x7+parseInt(_0x1e1d18(0x1b1))/0x8+-parseInt(_0x1e1d18(0x1cc))/0x9+-parseInt(_0x1e1d18(0x19a))/0xa*(parseInt(_0x1e1d18(0x1b8))/0xb);if(_0x4bed1f===_0x5f548e)break;else _0x297503['push'](_0x297503['shift']());}catch(_0x3bb00b){_0x297503['push'](_0x297503['shift']());}}}(a178_0x7d1b,0x6cd1f));import{createHash}from'node:crypto';import{isDeepStrictEqual}from'node:util';import{getSmartAppRecord,updateSmartAppRecord}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';function a178_0x7d1b(){const _0x13d8cf=['--resources\x20is\x20required.','Existing\x20subapp.resources\x20contains\x20invalid\x20JSON.','--resources\x20must\x20be\x20a\x20JSON\x20array\x20of\x20HTTPS\x20URLs.','expected-hash','Unknown\x20app.extend\x20fields:\x20','string','assets','Shared\x20assets\x20already\x20match\x20the\x20requested\x20URLs.','--expected-hash\x20from\x20a\x20dry-run\x20is\x20required.',';\x20independent\x20deployment\x20not\x20verified.','\x20in\x20menu\x20host\x20','https:','protocol','resources','app.extend.assets\x20must\x20be\x20a\x20JSON\x20string;\x20refusing\x20update.','Existing\x20subapp.resources\x20must\x20be\x20an\x20array\x20of\x20URLs.','object','tenantColumn','resources[','test','326271BMJPhm','6642456NNyVzJ','entries','isArray','355uPTCPu','apiError','not\x20HTTPS','parse','9783400qfhjgr',']\x20must\x20be\x20a\x20URL\x20string.','length','Update\x20one\x20frontend\x20subapp\x20resource\x20URL\x20set\x20in\x20the\x20selected\x20menu\x20host','filter','stringify','App\x20assets\x20or\x20update\x20target\x20changed\x20since\x20preview;\x20the\x20fingerprint\x20does\x20not\x20match.\x20Run\x20a\x20new\x20dry-run.','str','extend','some','app.extend.assets','cookie','Would\x20update\x20shared\x20assets\x20for\x20','directDbEnabled',']\x20must\x20be\x20an\x20absolute\x20HTTPS\x20URL.','56802uhpcqn','join','Preview\x20fingerprint\x20binding\x20the\x20host,\x20subapp,\x20resource\x20URLs\x20and\x20current\x20config;\x20required\x20for\x20writes','expectedHash','vipDeploy','2571912nCdprh','1udAxcj','appName','/smartapi/app/update','accessKey','4VSDLPU','\x20contains\x20invalid\x20JSON.','size','trim','sha256','enableAutoSync','appPublishStatus','appCode','17734sjjTun','.\x20Refusing\x20update.','Existing\x20subapp.resources\x20must\x20be\x20a\x20JSON\x20string.','keys','enableOpenApi','App\x20ID\x20or\x20publish\x20status\x20is\x20missing;\x20refusing\x20a\x20generic\x20app\x20update.','has','map','validation','5649WRMZUd','Management\x20app\x20assets\x20already\x20match;\x20independent\x20deployment\x20not\x20verified.','nextExtend','hex','unchanged','10raAeTg','Updated\x20shared\x20resources\x20for\x20'];a178_0x7d1b=function(){return _0x13d8cf;};return a178_0x7d1b();}import{getSubappSelector,SUBAPP_ASSET_SELECTOR_FLAGS}from'../../commands/menu/shared/subapp-assets.js';const KNOWN_EXTEND_KEYS=new Set(['skinColor',a178_0x3fdbc3(0x1dd),a178_0x3fdbc3(0x1d0),a178_0x3fdbc3(0x1a2),a178_0x3fdbc3(0x1ad),'enableSample',a178_0x3fdbc3(0x1cb),a178_0x3fdbc3(0x1d6),'directDbId',a178_0x3fdbc3(0x1c5)]);function a178_0x4d5e(_0x65258,_0x296655){_0x65258=_0x65258-0x199;const _0x7d1b06=a178_0x7d1b();let _0x4d5e12=_0x7d1b06[_0x65258];return _0x4d5e12;}function parseObject(_0x15660b,_0x261f0b){const _0x4034f9=a178_0x3fdbc3;let _0xef56d=_0x15660b;if(typeof _0x15660b===_0x4034f9(0x1a1))try{_0xef56d=JSON[_0x4034f9(0x1b7)](_0x15660b);}catch{throw CliErrors[_0x4034f9(0x1e1)](_0x261f0b+_0x4034f9(0x1d2));}if(!_0xef56d||typeof _0xef56d!==_0x4034f9(0x1ac)||Array[_0x4034f9(0x1b3)](_0xef56d))throw CliErrors[_0x4034f9(0x1e1)](_0x261f0b+'\x20must\x20be\x20a\x20JSON\x20object.');return _0xef56d;}function parseArray(_0x19a1e9,_0xa92694){const _0x5c1be9=a178_0x3fdbc3;let _0x4c99f4;try{_0x4c99f4=JSON[_0x5c1be9(0x1b7)](_0x19a1e9);}catch{throw CliErrors[_0x5c1be9(0x1e1)](_0xa92694+_0x5c1be9(0x1d2));}if(!Array['isArray'](_0x4c99f4))throw CliErrors['validation'](_0xa92694+'\x20must\x20be\x20a\x20JSON\x20array.');return _0x4c99f4[_0x5c1be9(0x1e0)]((_0x38334c,_0x102301)=>parseObject(_0x38334c,_0xa92694+'['+_0x102301+']'));}function validateResources(_0x2cdc5b){const _0x2a27ae=a178_0x3fdbc3;if(_0x2cdc5b[_0x2a27ae(0x1ba)]===0x0)throw CliErrors[_0x2a27ae(0x1e1)]('At\x20least\x20one\x20resource\x20URL\x20is\x20required.');for(const [_0x296377,_0x22388e]of _0x2cdc5b[_0x2a27ae(0x1b2)]()){if(typeof _0x22388e!=='string')throw CliErrors[_0x2a27ae(0x1e1)](_0x2a27ae(0x1ae)+_0x296377+_0x2a27ae(0x1b9));try{if(new URL(_0x22388e)[_0x2a27ae(0x1a8)]!==_0x2a27ae(0x1a7))throw new Error(_0x2a27ae(0x1b6));}catch{throw CliErrors['validation'](_0x2a27ae(0x1ae)+_0x296377+_0x2a27ae(0x1c6));}}if(new Set(_0x2cdc5b)[_0x2a27ae(0x1d3)]!==_0x2cdc5b['length']||!_0x2cdc5b[_0x2a27ae(0x1c1)](_0x4f96ff=>/\.m?js(?:[?#]|$)/i[_0x2a27ae(0x1af)](_0x4f96ff)))throw CliErrors[_0x2a27ae(0x1e1)]('Resources\x20need\x20one\x20JS\x20entry\x20and\x20no\x20duplicate\x20URLs.');return _0x2cdc5b;}function prepare(_0xa4cca8,_0x2a6e9b,_0x17b9ae){const _0x1ffb3e=a178_0x3fdbc3;if(!Number['isSafeInteger'](_0xa4cca8['id'])||(_0xa4cca8['id']??0x0)<=0x0||typeof _0xa4cca8[_0x1ffb3e(0x1d7)]!==_0x1ffb3e(0x1a1)||!_0xa4cca8[_0x1ffb3e(0x1d7)])throw CliErrors[_0x1ffb3e(0x1e1)](_0x1ffb3e(0x1de));const _0x3a735c=parseObject(_0xa4cca8[_0x1ffb3e(0x1c0)],'app.extend'),_0x814478=Object[_0x1ffb3e(0x1dc)](_0x3a735c)[_0x1ffb3e(0x1bc)](_0x5f2a64=>!KNOWN_EXTEND_KEYS[_0x1ffb3e(0x1df)](_0x5f2a64));if(_0x814478[_0x1ffb3e(0x1ba)])throw CliErrors[_0x1ffb3e(0x1e1)](_0x1ffb3e(0x1a0)+_0x814478[_0x1ffb3e(0x1c8)](',\x20')+_0x1ffb3e(0x1da));if(typeof _0x3a735c['assets']!==_0x1ffb3e(0x1a1))throw CliErrors[_0x1ffb3e(0x1e1)](_0x1ffb3e(0x1aa));const _0x2ee6bf=parseArray(_0x3a735c[_0x1ffb3e(0x1a2)],_0x1ffb3e(0x1c2)),_0x112a39=_0x2ee6bf[_0x1ffb3e(0x1bc)](_0x128060=>_0x128060[_0x1ffb3e(0x1ce)]===_0x2a6e9b);if(_0x112a39[_0x1ffb3e(0x1ba)]!==0x1)throw CliErrors[_0x1ffb3e(0x1e1)]('Expected\x20exactly\x20one\x20existing\x20subapp\x20entry\x20for\x20'+_0x2a6e9b+';\x20found\x20'+_0x112a39[_0x1ffb3e(0x1ba)]+'.');const _0x5b4a3b=_0x112a39[0x0];if(typeof _0x5b4a3b[_0x1ffb3e(0x1a9)]!==_0x1ffb3e(0x1a1))throw CliErrors[_0x1ffb3e(0x1e1)](_0x1ffb3e(0x1db));let _0x4d437e;try{_0x4d437e=JSON[_0x1ffb3e(0x1b7)](_0x5b4a3b[_0x1ffb3e(0x1a9)]);}catch{throw CliErrors[_0x1ffb3e(0x1e1)](_0x1ffb3e(0x19d));}if(!Array['isArray'](_0x4d437e)||_0x4d437e[_0x1ffb3e(0x1c1)](_0x534477=>typeof _0x534477!==_0x1ffb3e(0x1a1)))throw CliErrors[_0x1ffb3e(0x1e1)](_0x1ffb3e(0x1ab));const _0x181e0b=_0x2ee6bf[_0x1ffb3e(0x1e0)](_0x33061f=>_0x33061f===_0x5b4a3b?{..._0x33061f,'resources':JSON[_0x1ffb3e(0x1bd)](_0x17b9ae)}:_0x33061f),_0x966818={..._0x3a735c,'assets':JSON[_0x1ffb3e(0x1bd)](_0x181e0b)},_0x216b31=createHash(_0x1ffb3e(0x1d5))['update'](JSON[_0x1ffb3e(0x1bd)]({'appCode':_0xa4cca8[_0x1ffb3e(0x1d8)],'id':_0xa4cca8['id'],'appPublishStatus':_0xa4cca8['appPublishStatus'],'extend':_0x3a735c,'appName':_0x2a6e9b,'resources':_0x17b9ae}))['digest'](_0x1ffb3e(0x1e5));return{'before':_0x4d437e,'nextExtend':_0x966818,'expectedHash':_0x216b31,'unchanged':isDeepStrictEqual(_0x4d437e,_0x17b9ae)};}function flags(_0x2f855b){const _0x5179e6=a178_0x3fdbc3,{appCode:_0x3ece58,appName:_0x2e8a28}=getSubappSelector(_0x2f855b),_0x5cad73=_0x2f855b[_0x5179e6(0x1bf)](_0x5179e6(0x1a9))[_0x5179e6(0x1d4)]();if(!_0x5cad73)throw CliErrors['validation'](_0x5179e6(0x19c));let _0x471bc1;try{_0x471bc1=JSON['parse'](_0x5cad73);}catch{throw CliErrors[_0x5179e6(0x1e1)](_0x5179e6(0x19e));}if(!Array[_0x5179e6(0x1b3)](_0x471bc1))throw CliErrors[_0x5179e6(0x1e1)]('--resources\x20must\x20be\x20a\x20JSON\x20array\x20of\x20HTTPS\x20URLs.');return{'appCode':_0x3ece58,'appName':_0x2e8a28,'resources':validateResources(_0x471bc1)};}export const menuSubappAssetsUpdate={'service':'menu','command':'subapp-assets-update','description':a178_0x3fdbc3(0x1bb),'risk':'write','strictFlags':!![],'flags':[...SUBAPP_ASSET_SELECTOR_FLAGS,{'name':a178_0x3fdbc3(0x1a9),'type':a178_0x3fdbc3(0x1a1),'required':!![],'description':'JSON\x20array\x20of\x20HTTPS\x20resource\x20URLs'},{'name':'expected-hash','type':a178_0x3fdbc3(0x1a1),'description':a178_0x3fdbc3(0x1c9)}],async 'validate'(_0x5d1c20){flags(_0x5d1c20);},async 'dryRun'(_0x578b23){const _0x3ffaef=a178_0x3fdbc3,{appCode:_0x378e68,appName:_0x433a14,resources:_0x4e32dc}=flags(_0x578b23),_0x3660c7=await getSmartAppRecord(_0x378e68,_0x578b23['cookie']),_0x43c0eb=prepare(_0x3660c7,_0x433a14,_0x4e32dc);return{'method':'POST','url':_0x3ffaef(0x1cf),'body':{'preview':{'appCode':_0x378e68,'appName':_0x433a14,'before':_0x43c0eb['before'],'after':_0x4e32dc,'expectedHash':_0x43c0eb['expectedHash'],'unchanged':_0x43c0eb[_0x3ffaef(0x199)],'remoteContentVerified':![],'independentDeploymentVerified':![]}},'description':_0x43c0eb[_0x3ffaef(0x199)]?_0x3ffaef(0x1a3):_0x3ffaef(0x1c4)+_0x433a14+'.'};},async 'execute'(_0x5064d7){const _0x141371=a178_0x3fdbc3,{appCode:_0x2ad1ca,appName:_0x129c27,resources:_0x382c95}=flags(_0x5064d7),_0x188695=_0x5064d7[_0x141371(0x1bf)](_0x141371(0x19f))['trim']();if(!/^[a-f0-9]{64}$/i[_0x141371(0x1af)](_0x188695))throw CliErrors[_0x141371(0x1e1)](_0x141371(0x1a4));const _0x22e729=await getSmartAppRecord(_0x2ad1ca,_0x5064d7[_0x141371(0x1c3)]),_0x5c5fc5=prepare(_0x22e729,_0x129c27,_0x382c95);if(_0x188695!==_0x5c5fc5[_0x141371(0x1ca)])throw CliErrors[_0x141371(0x1e1)](_0x141371(0x1be));if(_0x5c5fc5['unchanged'])return{'ok':!![],'data':{'appCode':_0x2ad1ca,'appName':_0x129c27,'updated':![],'managementConfirmed':!![],'independentDeploymentVerified':![],'remoteContentVerified':![]},'message':_0x141371(0x1e3)};await updateSmartAppRecord({'id':_0x22e729['id'],'appCode':_0x2ad1ca,'appPublishStatus':_0x22e729[_0x141371(0x1d7)],'extend':_0x5c5fc5['nextExtend']},_0x5064d7[_0x141371(0x1c3)]);const _0x5551e2=await getSmartAppRecord(_0x2ad1ca,_0x5064d7['cookie']),_0x141e1f=parseObject(_0x5551e2[_0x141371(0x1c0)],'verified\x20app.extend');if(_0x5551e2['id']!==_0x22e729['id']||_0x5551e2[_0x141371(0x1d7)]!==_0x22e729[_0x141371(0x1d7)]||!isDeepStrictEqual(_0x141e1f,_0x5c5fc5[_0x141371(0x1e4)]))throw CliErrors[_0x141371(0x1b5)]('App\x20asset\x20update\x20verification\x20failed;\x20inspect\x20the\x20app\x20before\x20retrying.');return{'ok':!![],'data':{'appCode':_0x2ad1ca,'appName':_0x129c27,'updated':!![],'resources':_0x382c95,'managementConfirmed':!![],'independentDeploymentVerified':![],'remoteContentVerified':![]},'message':_0x141371(0x19b)+_0x129c27+_0x141371(0x1a6)+_0x2ad1ca+_0x141371(0x1a5)};}};
|
|
1
|
+
function a178_0x4dd8(){const _0x18aaa4=['isSafeInteger','assets','\x20contains\x20invalid\x20JSON.','--resources\x20is\x20required.','string','Management\x20app\x20assets\x20already\x20match;\x20independent\x20deployment\x20not\x20verified.','App\x20ID\x20or\x20publish\x20status\x20is\x20missing;\x20refusing\x20a\x20generic\x20app\x20update.',';\x20found\x20','4142636YqIpQw','entries','3027447uoNlsH',';\x20independent\x20deployment\x20not\x20verified.',']\x20must\x20be\x20an\x20absolute\x20HTTPS\x20URL.','Update\x20one\x20frontend\x20subapp\x20resource\x20URL\x20set\x20in\x20the\x20selected\x20menu\x20host','directDbEnabled','109034STJfiV','protocol','nextExtend','object','\x20must\x20be\x20a\x20JSON\x20array.','extend','apiError','hex','write','skinColor','Shared\x20assets\x20already\x20match\x20the\x20requested\x20URLs.','5510520NgMGYP','Expected\x20exactly\x20one\x20existing\x20subapp\x20entry\x20for\x20','cookie','App\x20asset\x20update\x20verification\x20failed;\x20inspect\x20the\x20app\x20before\x20retrying.','menu','map','str','appCode','validation','/smartapi/app/update','not\x20HTTPS','--expected-hash\x20from\x20a\x20dry-run\x20is\x20required.','--resources\x20must\x20be\x20a\x20JSON\x20array\x20of\x20HTTPS\x20URLs.','Resources\x20need\x20one\x20JS\x20entry\x20and\x20no\x20duplicate\x20URLs.','Existing\x20subapp.resources\x20must\x20be\x20an\x20array\x20of\x20URLs.','JSON\x20array\x20of\x20HTTPS\x20resource\x20URLs','2vPruVJ','resources','trim','5eahyVq','has','unchanged','accessKey','isArray','resources[','appPublishStatus','tenantColumn','.\x20Refusing\x20update.','\x20in\x20menu\x20host\x20','4688892oRgaZi','vipDeploy','enableAutoSync',']\x20must\x20be\x20a\x20URL\x20string.','Existing\x20subapp.resources\x20contains\x20invalid\x20JSON.','Unknown\x20app.extend\x20fields:\x20','some','test','subapp-assets-update','sha256','expectedHash','expected-hash','verified\x20app.extend','app.extend.assets\x20must\x20be\x20a\x20JSON\x20string;\x20refusing\x20update.','Updated\x20shared\x20resources\x20for\x20','POST','app.extend.assets','stringify','1029618WYOFht','parse','enableOpenApi','enableSample','length','3124821oYjSzV'];a178_0x4dd8=function(){return _0x18aaa4;};return a178_0x4dd8();}function a178_0x1afb(_0x18c686,_0x399d30){_0x18c686=_0x18c686-0x74;const _0x4dd833=a178_0x4dd8();let _0x1afbe1=_0x4dd833[_0x18c686];return _0x1afbe1;}const a178_0x46b043=a178_0x1afb;(function(_0x5a4489,_0x481bc6){const _0x344d9d=a178_0x1afb,_0x368f43=_0x5a4489();while(!![]){try{const _0x1baa91=parseInt(_0x344d9d(0xbf))/0x1*(-parseInt(_0x344d9d(0xa4))/0x2)+parseInt(_0x344d9d(0x8f))/0x3+parseInt(_0x344d9d(0x9d))/0x4*(parseInt(_0x344d9d(0xc2))/0x5)+-parseInt(_0x344d9d(0x7d))/0x6+parseInt(_0x344d9d(0x94))/0x7+-parseInt(_0x344d9d(0xaf))/0x8+parseInt(_0x344d9d(0x9f))/0x9;if(_0x1baa91===_0x481bc6)break;else _0x368f43['push'](_0x368f43['shift']());}catch(_0x3e5825){_0x368f43['push'](_0x368f43['shift']());}}}(a178_0x4dd8,0x8e2b0));import{createHash}from'node:crypto';import{isDeepStrictEqual}from'node:util';import{getSmartAppRecord,updateSmartAppRecord}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';import{getSubappSelector,SUBAPP_ASSET_SELECTOR_FLAGS}from'../../commands/menu/shared/subapp-assets.js';const KNOWN_EXTEND_KEYS=new Set([a178_0x46b043(0xad),a178_0x46b043(0x91),a178_0x46b043(0x76),a178_0x46b043(0x96),a178_0x46b043(0x7a),a178_0x46b043(0x92),a178_0x46b043(0x7e),a178_0x46b043(0x7f),'directDbId',a178_0x46b043(0xa3)]);function parseObject(_0x5a96ef,_0x42db68){const _0x1f01c1=a178_0x46b043;let _0x5123d8=_0x5a96ef;if(typeof _0x5a96ef===_0x1f01c1(0x99))try{_0x5123d8=JSON['parse'](_0x5a96ef);}catch{throw CliErrors[_0x1f01c1(0xb7)](_0x42db68+_0x1f01c1(0x97));}if(!_0x5123d8||typeof _0x5123d8!==_0x1f01c1(0xa7)||Array[_0x1f01c1(0x77)](_0x5123d8))throw CliErrors[_0x1f01c1(0xb7)](_0x42db68+'\x20must\x20be\x20a\x20JSON\x20object.');return _0x5123d8;}function parseArray(_0x466081,_0x2dcc79){const _0x2a2558=a178_0x46b043;let _0x1f4b38;try{_0x1f4b38=JSON[_0x2a2558(0x90)](_0x466081);}catch{throw CliErrors[_0x2a2558(0xb7)](_0x2dcc79+_0x2a2558(0x97));}if(!Array[_0x2a2558(0x77)](_0x1f4b38))throw CliErrors['validation'](_0x2dcc79+_0x2a2558(0xa8));return _0x1f4b38[_0x2a2558(0xb4)]((_0x352ac1,_0x490ac3)=>parseObject(_0x352ac1,_0x2dcc79+'['+_0x490ac3+']'));}function validateResources(_0x4fefa7){const _0x5533de=a178_0x46b043;if(_0x4fefa7[_0x5533de(0x93)]===0x0)throw CliErrors[_0x5533de(0xb7)]('At\x20least\x20one\x20resource\x20URL\x20is\x20required.');for(const [_0x442c2d,_0x3ce276]of _0x4fefa7[_0x5533de(0x9e)]()){if(typeof _0x3ce276!==_0x5533de(0x99))throw CliErrors[_0x5533de(0xb7)](_0x5533de(0x78)+_0x442c2d+_0x5533de(0x80));try{if(new URL(_0x3ce276)[_0x5533de(0xa5)]!=='https:')throw new Error(_0x5533de(0xb9));}catch{throw CliErrors[_0x5533de(0xb7)](_0x5533de(0x78)+_0x442c2d+_0x5533de(0xa1));}}if(new Set(_0x4fefa7)['size']!==_0x4fefa7[_0x5533de(0x93)]||!_0x4fefa7[_0x5533de(0x83)](_0x284b63=>/\.m?js(?:[?#]|$)/i['test'](_0x284b63)))throw CliErrors[_0x5533de(0xb7)](_0x5533de(0xbc));return _0x4fefa7;}function prepare(_0x79067,_0x27dcc2,_0x1d310d){const _0x3cc091=a178_0x46b043;if(!Number[_0x3cc091(0x95)](_0x79067['id'])||(_0x79067['id']??0x0)<=0x0||typeof _0x79067[_0x3cc091(0x79)]!==_0x3cc091(0x99)||!_0x79067['appPublishStatus'])throw CliErrors[_0x3cc091(0xb7)](_0x3cc091(0x9b));const _0x348cce=parseObject(_0x79067[_0x3cc091(0xa9)],'app.extend'),_0x1f367e=Object['keys'](_0x348cce)['filter'](_0x413c71=>!KNOWN_EXTEND_KEYS[_0x3cc091(0x74)](_0x413c71));if(_0x1f367e[_0x3cc091(0x93)])throw CliErrors['validation'](_0x3cc091(0x82)+_0x1f367e['join'](',\x20')+_0x3cc091(0x7b));if(typeof _0x348cce[_0x3cc091(0x96)]!==_0x3cc091(0x99))throw CliErrors['validation'](_0x3cc091(0x8a));const _0xca74c6=parseArray(_0x348cce[_0x3cc091(0x96)],_0x3cc091(0x8d)),_0x12073f=_0xca74c6['filter'](_0xac129e=>_0xac129e['appName']===_0x27dcc2);if(_0x12073f[_0x3cc091(0x93)]!==0x1)throw CliErrors[_0x3cc091(0xb7)](_0x3cc091(0xb0)+_0x27dcc2+_0x3cc091(0x9c)+_0x12073f['length']+'.');const _0x58338a=_0x12073f[0x0];if(typeof _0x58338a[_0x3cc091(0xc0)]!==_0x3cc091(0x99))throw CliErrors[_0x3cc091(0xb7)]('Existing\x20subapp.resources\x20must\x20be\x20a\x20JSON\x20string.');let _0x2b689c;try{_0x2b689c=JSON[_0x3cc091(0x90)](_0x58338a[_0x3cc091(0xc0)]);}catch{throw CliErrors['validation'](_0x3cc091(0x81));}if(!Array[_0x3cc091(0x77)](_0x2b689c)||_0x2b689c[_0x3cc091(0x83)](_0x4a270f=>typeof _0x4a270f!==_0x3cc091(0x99)))throw CliErrors['validation'](_0x3cc091(0xbd));const _0x3d4026=_0xca74c6[_0x3cc091(0xb4)](_0x4b7949=>_0x4b7949===_0x58338a?{..._0x4b7949,'resources':JSON[_0x3cc091(0x8e)](_0x1d310d)}:_0x4b7949),_0x5f25e4={..._0x348cce,'assets':JSON['stringify'](_0x3d4026)},_0x177579=createHash(_0x3cc091(0x86))['update'](JSON[_0x3cc091(0x8e)]({'appCode':_0x79067[_0x3cc091(0xb6)],'id':_0x79067['id'],'appPublishStatus':_0x79067[_0x3cc091(0x79)],'extend':_0x348cce,'appName':_0x27dcc2,'resources':_0x1d310d}))['digest'](_0x3cc091(0xab));return{'before':_0x2b689c,'nextExtend':_0x5f25e4,'expectedHash':_0x177579,'unchanged':isDeepStrictEqual(_0x2b689c,_0x1d310d)};}function flags(_0x1a5123){const _0x289abc=a178_0x46b043,{appCode:_0x9e2bcf,appName:_0x5c5fc5}=getSubappSelector(_0x1a5123),_0x57092e=_0x1a5123[_0x289abc(0xb5)](_0x289abc(0xc0))[_0x289abc(0xc1)]();if(!_0x57092e)throw CliErrors[_0x289abc(0xb7)](_0x289abc(0x98));let _0x201695;try{_0x201695=JSON[_0x289abc(0x90)](_0x57092e);}catch{throw CliErrors[_0x289abc(0xb7)](_0x289abc(0xbb));}if(!Array[_0x289abc(0x77)](_0x201695))throw CliErrors[_0x289abc(0xb7)]('--resources\x20must\x20be\x20a\x20JSON\x20array\x20of\x20HTTPS\x20URLs.');return{'appCode':_0x9e2bcf,'appName':_0x5c5fc5,'resources':validateResources(_0x201695)};}export const menuSubappAssetsUpdate={'service':a178_0x46b043(0xb3),'command':a178_0x46b043(0x85),'description':a178_0x46b043(0xa2),'risk':a178_0x46b043(0xac),'strictFlags':!![],'flags':[...SUBAPP_ASSET_SELECTOR_FLAGS,{'name':'resources','type':a178_0x46b043(0x99),'required':!![],'description':a178_0x46b043(0xbe)},{'name':a178_0x46b043(0x88),'type':a178_0x46b043(0x99),'description':'Preview\x20fingerprint\x20binding\x20the\x20host,\x20subapp,\x20resource\x20URLs\x20and\x20current\x20config;\x20required\x20for\x20writes'}],async 'validate'(_0x1d8e78){flags(_0x1d8e78);},async 'dryRun'(_0xb46148){const _0x4cbbc5=a178_0x46b043,{appCode:_0x447ccc,appName:_0x359ee6,resources:_0x4052ee}=flags(_0xb46148),_0x55326b=await getSmartAppRecord(_0x447ccc,_0xb46148['cookie']),_0x2ca0a3=prepare(_0x55326b,_0x359ee6,_0x4052ee);return{'method':_0x4cbbc5(0x8c),'url':_0x4cbbc5(0xb8),'body':{'preview':{'appCode':_0x447ccc,'appName':_0x359ee6,'before':_0x2ca0a3['before'],'after':_0x4052ee,'expectedHash':_0x2ca0a3[_0x4cbbc5(0x87)],'unchanged':_0x2ca0a3[_0x4cbbc5(0x75)],'remoteContentVerified':![],'independentDeploymentVerified':![]}},'description':_0x2ca0a3[_0x4cbbc5(0x75)]?_0x4cbbc5(0xae):'Would\x20update\x20shared\x20assets\x20for\x20'+_0x359ee6+'.'};},async 'execute'(_0x4def22){const _0x262c67=a178_0x46b043,{appCode:_0x183be6,appName:_0x40dd9c,resources:_0x38ec2e}=flags(_0x4def22),_0x505d7d=_0x4def22['str'](_0x262c67(0x88))[_0x262c67(0xc1)]();if(!/^[a-f0-9]{64}$/i[_0x262c67(0x84)](_0x505d7d))throw CliErrors[_0x262c67(0xb7)](_0x262c67(0xba));const _0x3e2a02=await getSmartAppRecord(_0x183be6,_0x4def22[_0x262c67(0xb1)]),_0x1c4b2a=prepare(_0x3e2a02,_0x40dd9c,_0x38ec2e);if(_0x505d7d!==_0x1c4b2a[_0x262c67(0x87)])throw CliErrors[_0x262c67(0xb7)]('App\x20assets\x20or\x20update\x20target\x20changed\x20since\x20preview;\x20the\x20fingerprint\x20does\x20not\x20match.\x20Run\x20a\x20new\x20dry-run.');if(_0x1c4b2a[_0x262c67(0x75)])return{'ok':!![],'data':{'appCode':_0x183be6,'appName':_0x40dd9c,'updated':![],'managementConfirmed':!![],'independentDeploymentVerified':![],'remoteContentVerified':![]},'message':_0x262c67(0x9a)};await updateSmartAppRecord({'id':_0x3e2a02['id'],'appCode':_0x183be6,'appPublishStatus':_0x3e2a02[_0x262c67(0x79)],'extend':_0x1c4b2a[_0x262c67(0xa6)]},_0x4def22[_0x262c67(0xb1)]);const _0x3d568f=await getSmartAppRecord(_0x183be6,_0x4def22[_0x262c67(0xb1)]),_0x23a3f0=parseObject(_0x3d568f[_0x262c67(0xa9)],_0x262c67(0x89));if(_0x3d568f['id']!==_0x3e2a02['id']||_0x3d568f['appPublishStatus']!==_0x3e2a02[_0x262c67(0x79)]||!isDeepStrictEqual(_0x23a3f0,_0x1c4b2a[_0x262c67(0xa6)]))throw CliErrors[_0x262c67(0xaa)](_0x262c67(0xb2));return{'ok':!![],'data':{'appCode':_0x183be6,'appName':_0x40dd9c,'updated':!![],'resources':_0x38ec2e,'managementConfirmed':!![],'independentDeploymentVerified':![],'remoteContentVerified':![]},'message':_0x262c67(0x8b)+_0x40dd9c+_0x262c67(0x7c)+_0x183be6+_0x262c67(0xa0)};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a179_0x161e46=a179_0x471a;(function(_0x3558f0,_0x3a00eb){const _0x34073a=a179_0x471a,_0x560ff2=_0x3558f0();while(!![]){try{const _0x539234=parseInt(_0x34073a(0xbb))/0x1+-parseInt(_0x34073a(0xa5))/0x2+parseInt(_0x34073a(0xdf))/0x3+parseInt(_0x34073a(0xe3))/0x4+parseInt(_0x34073a(0xb3))/0x5*(-parseInt(_0x34073a(0xbe))/0x6)+parseInt(_0x34073a(0xe6))/0x7+-parseInt(_0x34073a(0xae))/0x8;if(_0x539234===_0x3a00eb)break;else _0x560ff2['push'](_0x560ff2['shift']());}catch(_0x517d99){_0x560ff2['push'](_0x560ff2['shift']());}}}(a179_0x343d,0x21402));import a179_0x1eba5b from'chalk';import{buildCompareRows,doCreateMenus,fetchMenuData}from'../../commands/menu/shared/logic.js';import{renderCompareTable,renderSyncSummary}from'../../commands/menu/shared/compare-table.js';function a179_0x343d(){const _0x300158=['cssUrl','flag','\x20local\x20microfrontend\x20menu(s).','message','No\x20local\x20microfrontend\x20menus\x20would\x20be\x20created.','validation','gray','write','368022LLPhTc','localPages','trim','rawFlags','544608FCHoNM','\x20created.','Online\x20menu\x20list\x20fetched','302372qwmqzd','onlineMenuList','length','sync','Preview\x20with\x20--dry-run,\x20then\x20reuse\x20the\x20same\x20--paths\x20and\x20--params\x20with\x20--yes.','menu','skipped','Fetching\x20online\x20menu\x20list...','menu\x20sync\x20--paths\x20requires\x20--yes\x20for\x20execution.','\x20\x20Create\x20','315630zkvRmA','Tip:\x20For\x20frontend\x20subapps,\x20prefer\x20Agent-planned\x20menu\x20groups\x20and\x20shared\x20resources.\x20This\x20manual\x20sync\x20workflow\x20remains\x20available\x20as\x20a\x20fallback.','\x20\x20✓\x20Selected:\x20','selectedAppName','\x20created,\x20','jsUrl','\x20menu(s)...','appCode','\x20menu(s)\x20created','216264GyvuoG','Prefer\x20appName\x20for\x20shared\x20subapp\x20resources\x20and\x20parentId\x20for\x20planned\x20groups.\x20','cookie','appcode','\x20failed.','990rBaQLh','Non-interactive\x20menu\x20sync\x20requires\x20--yes.','Confirm\x20non-interactive\x20sync;\x20without\x20--paths,\x20create\x20all\x20missing\x20local\x20pages','filter','\x20page(s)','menu\x20sync\x20requires\x20a\x20project\x20context\x20or\x20explicit\x20--appcode.\x20','yellow','Created\x20','87726UWcoHO','split','cyan','2082enwfYK','string','Menu\x20sync\x20completed:\x20','Register\x20local\x20pages\x20as\x20platform\x20menus','map','created','\x20menu(s)\x20with\x20JS:\x20','onlinePaths','!\x20No\x20local\x20pages\x20found\x20in\x20src/pages','str','size','failed','Menu\x20creation\x20failed','paths','\x20\x20Cancelled.','✓\x20All\x20local\x20pages\x20are\x20already\x20on\x20platform','yes','appName','Creating\x20','JSON:\x20{\x22appName\x22:\x22store-app\x22,\x22parentId\x22:42,\x22visible\x22:false};\x20jsUrl\x20and\x20cssUrl\x20remain\x20available\x20for\x20individual\x20menu\x20resources.','\x20\x20!\x20No\x20local\x20pages\x20found,\x20please\x20create\x20pages\x20first','\x20and\x20CSS:\x20','Failed\x20to\x20fetch\x20online\x20menu\x20list','Exact\x20comma-separated\x20local\x20page\x20paths\x20to\x20sync','\x20menu(s)'];a179_0x343d=function(){return _0x300158;};return a179_0x343d();}import{selectPages,askJsUrl,askCssUrl,askConfirm,startSpinner,stopSpinner,isInteractive,requireInteractive}from'../../commands/menu/shared/inquirer.js';import{CliErrors}from'../../errors.js';import{writeCliSideChannelLine}from'../../utils/write-cli-side-channel.js';function a179_0x471a(_0x4b63c6,_0x287501){_0x4b63c6=_0x4b63c6-0xa4;const _0x343dfe=a179_0x343d();let _0x471ab0=_0x343dfe[_0x4b63c6];return _0x471ab0;}import{parseMenuSyncParams,resolvePage,runMenuSyncCore}from'../../commands/menu/shared/sync-core.js';import{getLocalPages}from'../../commands/menu/shared/local-pages.js';import{isInProject}from'../../context.js';import{assertSharedResourcesConfigured}from'../../commands/menu/shared/subapp-assets.js';export const menuSync={'service':a179_0x161e46(0xeb),'command':a179_0x161e46(0xe9),'description':a179_0x161e46(0xc1),'risk':a179_0x161e46(0xde),'flags':[{'name':'params','type':a179_0x161e46(0xbf),'description':a179_0x161e46(0xaf)+a179_0x161e46(0xd1)},{'name':a179_0x161e46(0xcb),'type':'string','description':a179_0x161e46(0xd5)},{'name':a179_0x161e46(0xce),'type':'boolean','description':a179_0x161e46(0xb5)}],async 'dryRun'(_0x4c716a){const _0x472a52=a179_0x161e46;ensureRunnableContext(_0x4c716a[_0x472a52(0xe2)],_0x4c716a[_0x472a52(0xa8)]);const _0x57a3b2=await runMenuSyncCore(_0x4c716a[_0x472a52(0xac)],_0x4c716a[_0x472a52(0xb0)],parsePaths(_0x4c716a[_0x472a52(0xc7)](_0x472a52(0xcb))),_0x4c716a[_0x472a52(0xc7)]('params'),{'dryRun':!![]});return{'method':'POST','url':'/smartapi/menu/create','body':_0x57a3b2,'description':_0x57a3b2[_0x472a52(0xec)]?_0x472a52(0xdb):'Would\x20create\x20'+_0x57a3b2['targetPages']['length']+_0x472a52(0xd9)};},async 'execute'(_0x4d4de7){const _0x570d89=a179_0x161e46;ensureRunnableContext(_0x4d4de7['rawFlags'],_0x4d4de7[_0x570d89(0xa8)]);const _0x5d008e=_0x4d4de7[_0x570d89(0xd8)]('yes'),_0x138945=_0x4d4de7[_0x570d89(0xc7)]('params'),_0x1738cd=parsePaths(_0x4d4de7[_0x570d89(0xc7)](_0x570d89(0xcb))),_0x5ceb66=parseMenuSyncParams(_0x138945);if(_0x5d008e){const _0x28532b=await runMenuSyncCore(_0x4d4de7[_0x570d89(0xac)],_0x4d4de7[_0x570d89(0xb0)],_0x1738cd,_0x138945);if(_0x28532b[_0x570d89(0xec)]){const _0x4c741f=getLocalPages();_0x4c741f[_0x570d89(0xe8)]===0x0?writeCliSideChannelLine(_0x570d89(0xc6)):writeCliSideChannelLine(_0x570d89(0xcd));}else writeCliSideChannelLine('✓\x20Menu\x20sync\x20completed:\x20'+_0x28532b['created']+_0x570d89(0xad));return{'ok':!![],'data':_0x28532b,'message':_0x28532b['skipped']?'Menu\x20sync\x20skipped':_0x570d89(0xc0)+_0x28532b['created']+_0x570d89(0xe4)};}if(_0x1738cd['length']>0x0)throw CliErrors[_0x570d89(0xdc)](_0x570d89(0xee),_0x570d89(0xea));if(!isInteractive()&&_0x138945)throw CliErrors[_0x570d89(0xdc)](_0x570d89(0xb4),'Preview\x20with\x20--dry-run,\x20then\x20reuse\x20the\x20same\x20--paths\x20and\x20--params\x20with\x20--yes.');requireInteractive(),writeCliSideChannelLine(_0x570d89(0xa6));const _0x5d7c35=startSpinner(_0x570d89(0xed));let _0x1c9492,_0x28a845,_0x3f2a36;try{const _0x58d54d=await fetchMenuData(_0x4d4de7[_0x570d89(0xac)],_0x4d4de7['cookie']);_0x1c9492=_0x58d54d[_0x570d89(0xe0)],_0x28a845=_0x58d54d[_0x570d89(0xc5)],_0x3f2a36=_0x58d54d[_0x570d89(0xe7)],stopSpinner(_0x5d7c35,_0x570d89(0xe5),!![]);}catch(_0x5a29d9){stopSpinner(_0x5d7c35,_0x570d89(0xd4),![]);throw CliErrors[_0x570d89(0xdc)](_0x5a29d9 instanceof Error?_0x5a29d9[_0x570d89(0xda)]:_0x570d89(0xd4));}if(_0x1c9492[_0x570d89(0xe8)]===0x0)return writeCliSideChannelLine(a179_0x1eba5b[_0x570d89(0xb9)](_0x570d89(0xd2))),{'ok':!![]};const _0x3bc086=buildCompareRows(_0x1c9492,_0x28a845);writeCliSideChannelLine(renderCompareTable(_0x3bc086)),writeCliSideChannelLine('');const _0x3ec33d=await selectPages(_0x1c9492,_0x28a845);writeCliSideChannelLine(''),writeCliSideChannelLine(a179_0x1eba5b[_0x570d89(0xbd)](_0x570d89(0xa7)+_0x3ec33d[_0x570d89(0xe8)]+_0x570d89(0xb7)));const _0x5466d9=_0x5ceb66[_0x570d89(0xaa)]&&_0x5ceb66[_0x570d89(0xd7)];if(!_0x5466d9){writeCliSideChannelLine(renderSyncSummary(_0x3ec33d,_0x28a845[_0x570d89(0xc8)]>0x0));const _0x3ee419=await askConfirm('\x20\x20Continue\x20with\x20creation?');if(!_0x3ee419)return writeCliSideChannelLine(a179_0x1eba5b[_0x570d89(0xdd)](_0x570d89(0xcc))),{'ok':!![]};}let _0x507c2c=_0x5ceb66['jsUrl'],_0x3eceaf=_0x5ceb66['cssUrl'];!_0x507c2c&&!_0x5ceb66[_0x570d89(0xcf)]&&(_0x507c2c=await askJsUrl());!_0x3eceaf&&!_0x5ceb66[_0x570d89(0xcf)]&&(_0x3eceaf=await askCssUrl());const _0x3a3227=await askConfirm(_0x5ceb66[_0x570d89(0xcf)]?_0x570d89(0xa4)+_0x3ec33d['length']+'\x20menu(s)\x20bound\x20to\x20'+_0x5ceb66['appName']+'?':'\x20\x20Create\x20'+_0x3ec33d['length']+_0x570d89(0xc4)+_0x507c2c+_0x570d89(0xd3)+_0x3eceaf+'?');if(!_0x3a3227)return writeCliSideChannelLine(a179_0x1eba5b[_0x570d89(0xdd)](_0x570d89(0xcc))),{'ok':!![]};const _0x263729=[_0x507c2c,_0x3eceaf][_0x570d89(0xb6)](_0x1466eb=>Boolean(_0x1466eb));_0x5ceb66[_0x570d89(0xcf)]&&_0x263729[_0x570d89(0xe8)]===0x0&&await assertSharedResourcesConfigured(_0x4d4de7[_0x570d89(0xac)],_0x4d4de7[_0x570d89(0xb0)],_0x5ceb66[_0x570d89(0xcf)]);const _0x4a8e7f=startSpinner(_0x570d89(0xd0)+_0x3ec33d['length']+_0x570d89(0xab));try{const _0x2d2a22=_0x3ec33d[_0x570d89(0xc2)](_0x48b3fd=>resolvePage(_0x48b3fd,_0x5ceb66,_0x3f2a36)),_0xceb727=await doCreateMenus(_0x4d4de7['appCode'],_0x4d4de7[_0x570d89(0xb0)],_0x2d2a22,_0x263729,_0x5ceb66[_0x570d89(0xcf)]?{'appName':_0x5ceb66[_0x570d89(0xcf)]}:undefined);return stopSpinner(_0x4a8e7f,_0x570d89(0xba)+_0xceb727[_0x570d89(0xc3)]+_0x570d89(0xd6),!![]),{'ok':!![],'data':_0xceb727,'message':'Menu\x20sync\x20completed:\x20'+_0xceb727[_0x570d89(0xc3)]+_0x570d89(0xa9)+_0xceb727[_0x570d89(0xc9)]+_0x570d89(0xb2)};}catch(_0x538cc9){stopSpinner(_0x4a8e7f,_0x570d89(0xca),![]);throw CliErrors['validation'](_0x538cc9 instanceof Error?_0x538cc9[_0x570d89(0xda)]:_0x570d89(0xca));}}};function ensureRunnableContext(_0x3e95e7,_0x450f7c){const _0x3338b0=a179_0x161e46,_0x461e90=_0x3e95e7['appcode']?String(_0x3e95e7[_0x3338b0(0xb1)])[_0x3338b0(0xe1)]():'';if(!isInProject()&&!_0x450f7c&&!_0x461e90)throw CliErrors[_0x3338b0(0xdc)](_0x3338b0(0xb8)+'Run\x20inside\x20a\x20directory\x20with\x20.rabetbase.json,\x20or\x20pass\x20--appcode\x20<code>.');}function parsePaths(_0x2ad525){const _0x2d1954=a179_0x161e46;return[...new Set(_0x2ad525[_0x2d1954(0xbc)](',')[_0x2d1954(0xc2)](_0x38f94c=>_0x38f94c[_0x2d1954(0xe1)]())['filter'](Boolean))];}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a180_0x13d0dc=a180_0x80cf;function a180_0x80cf(_0x43932d,_0x1862ff){_0x43932d=_0x43932d-0x159;const _0x2b2722=a180_0x2b27();let _0x80cfaa=_0x2b2722[_0x43932d];return _0x80cfaa;}(function(_0x569779,_0x375f3e){const _0x2e539f=a180_0x80cf,_0x175614=_0x569779();while(!![]){try{const _0x4d461a=parseInt(_0x2e539f(0x172))/0x1*(parseInt(_0x2e539f(0x1c6))/0x2)+-parseInt(_0x2e539f(0x19f))/0x3*(parseInt(_0x2e539f(0x17e))/0x4)+-parseInt(_0x2e539f(0x16d))/0x5*(-parseInt(_0x2e539f(0x170))/0x6)+parseInt(_0x2e539f(0x16c))/0x7+-parseInt(_0x2e539f(0x1c2))/0x8+-parseInt(_0x2e539f(0x1a1))/0x9+-parseInt(_0x2e539f(0x1c8))/0xa;if(_0x4d461a===_0x375f3e)break;else _0x175614['push'](_0x175614['shift']());}catch(_0x14c055){_0x175614['push'](_0x175614['shift']());}}}(a180_0x2b27,0xa28d6));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{fetchMenuSnapshot}from'../../commands/menu/shared/facts.js';import{asVerificationError,assertVerified,describeMenuErrorCause,fetchMutationSnapshot,hasFlag,isMenuResponseLoss,mapMenuApiError,menuDryRunResult,menuError,menuFailure,mutationResult,recheckMutationSnapshot,requireExplicitYes}from'../../commands/menu/shared/mutations.js';import{updateMenuEntity}from'../../commands/menu/shared/service.js';import{CliErrors}from'../../errors.js';const BACKEND=[{'method':a180_0x13d0dc(0x183),'path':a180_0x13d0dc(0x164)}];export const menuVisibilityUpdate={'service':a180_0x13d0dc(0x178),'command':a180_0x13d0dc(0x196),'description':a180_0x13d0dc(0x16e),'risk':'high-risk-write','structuredErrors':!![],'flags':[{'name':a180_0x13d0dc(0x160),'type':a180_0x13d0dc(0x15e),'description':a180_0x13d0dc(0x1c0)},{'name':'paths','type':a180_0x13d0dc(0x15e),'description':'Exact\x20comma-separated\x20menu\x20paths\x20to\x20update'},{'name':a180_0x13d0dc(0x1be),'type':a180_0x13d0dc(0x1c1),'required':!![],'description':a180_0x13d0dc(0x1b4)},{'name':a180_0x13d0dc(0x1cc),'type':a180_0x13d0dc(0x1c1),'description':'Abort\x20unless\x20every\x20selected\x20menu\x20has\x20this\x20visibility'},{'name':'expected-count','type':a180_0x13d0dc(0x19c),'description':a180_0x13d0dc(0x173)},APPCODE_FLAG_OPTIONAL],async 'validate'(_0x226902){parseInput(_0x226902),requireExplicitYes(_0x226902);},async 'dryRun'(_0x2ab56e){const _0x8a0505=a180_0x13d0dc,_0x396022=await buildPlan(_0x2ab56e,!![]),_0x382631=_0x396022['plan'][_0x8a0505(0x1ac)]?.[_0x8a0505(0x188)]??0x0,_0x433246=_0x396022[_0x8a0505(0x190)][_0x8a0505(0x18e)]['length']-_0x382631;return menuDryRunResult(_0x396022[_0x8a0505(0x190)],{'method':'POST','url':_0x8a0505(0x164),'body':{'updates':_0x396022['plan']['plannedActions']?.['map'](_0x25183b=>_0x25183b[_0x8a0505(0x18d)])??[]},'description':_0x8a0505(0x17d)+_0x382631+_0x8a0505(0x166)+_0x433246+'\x20unchanged\x20menu(s).'});},async 'execute'(_0x442f82){const _0xb8be52=a180_0x13d0dc;requireExplicitYes(_0x442f82);const _0x495e4e=await buildPlan(_0x442f82,![]);await recheckMutationSnapshot(_0x442f82,_0x495e4e[_0xb8be52(0x190)],'update\x20menu\x20visibility');const _0x53758d=[],_0x493cb3=[],_0x38c991=[];for(const _0xa861e of _0x495e4e[_0xb8be52(0x190)][_0xb8be52(0x18e)]){if(_0xa861e[_0xb8be52(0x195)][_0xb8be52(0x1be)]===_0x495e4e[_0xb8be52(0x190)]['requestedVisible']){_0x53758d[_0xb8be52(0x1a7)]({'id':_0xa861e['id'],'updated':![],'skipped':!![]});continue;}try{await updateMenuEntity(_0x442f82[_0xb8be52(0x16b)],_0x442f82[_0xb8be52(0x163)],{'id':_0xa861e['id'],'visible':_0x495e4e[_0xb8be52(0x190)]['requestedVisible']}),_0x53758d['push']({'id':_0xa861e['id'],'updated':!![],'skipped':![]});}catch(_0x5d6dba){const _0x38caec=mapMenuApiError(_0x5d6dba,_0xb8be52(0x15b),_0xa861e['id']);if(isMenuResponseLoss(_0x5d6dba)&&_0x38caec[_0xb8be52(0x15d)]!==_0xb8be52(0x1d2)){_0x38c991[_0xb8be52(0x1a7)](_0xa861e['id']);continue;}_0x493cb3['push']({'id':_0xa861e['id'],'stage':_0xb8be52(0x180),'code':_0x38caec[_0xb8be52(0x15d)],'message':_0x38caec[_0xb8be52(0x1ad)]});}}let _0x6b79e6;try{_0x6b79e6=await fetchMenuSnapshot(_0x442f82[_0xb8be52(0x16b)],_0x442f82[_0xb8be52(0x163)]);}catch(_0x5776c5){const _0xc68148=describeMenuErrorCause(_0x5776c5,'verify\x20menu\x20visibility\x20update'),_0x54ec72=_0x38c991[_0xb8be52(0x15f)](_0x4ecc49=>({'id':_0x4ecc49,'stage':_0xb8be52(0x17a),'code':_0xb8be52(0x18b),'message':'Response\x20was\x20lost\x20for\x20menu\x20'+_0x4ecc49+_0xb8be52(0x1d0),'requestedStateConfirmed':![],'recovered':![]})),_0x2fda6e={'stage':_0xb8be52(0x181),'code':_0xb8be52(0x18b),'message':'Final\x20menu\x20visibility\x20readback\x20failed.','targetIds':_0x495e4e['plan'][_0xb8be52(0x18e)][_0xb8be52(0x15f)](_0x48dc99=>_0x48dc99['id']),'requestedStateConfirmed':![],..._0xc68148};throw menuFailure(asVerificationError(_0x5776c5,'Visibility\x20update\x20requests\x20completed\x20but\x20readback\x20could\x20not\x20confirm\x20the\x20requested\x20state'),_0x495e4e[_0xb8be52(0x190)],{'stage':_0xb8be52(0x181),'succeeded':_0x53758d,'failedRecords':[..._0x493cb3,..._0x54ec72,_0x2fda6e],'warnings':[_0xb8be52(0x185)],'verification':{'status':_0xb8be52(0x169),'recoveredCount':0x0,'lookupCommand':_0xb8be52(0x1b8)}});}const _0x4a82c0=[];for(const _0x20f914 of _0x53758d){const _0x269d96=Number(_0x20f914['id']),_0x423c89=_0x495e4e['beforeById'][_0xb8be52(0x1cb)](_0x269d96),_0x1184f5=_0x6b79e6[_0xb8be52(0x15a)]['get'](_0x269d96);try{verifyVisibilityUpdate(_0x423c89,_0x1184f5,_0x495e4e[_0xb8be52(0x190)][_0xb8be52(0x162)]);}catch(_0xaf90b8){const _0x5594bb=asVerificationError(_0xaf90b8,'Menu\x20'+_0x269d96+_0xb8be52(0x1c3));_0x4a82c0[_0xb8be52(0x1a7)]({'id':_0x269d96,'stage':_0xb8be52(0x181),'code':_0x5594bb[_0xb8be52(0x15d)],'message':_0x5594bb[_0xb8be52(0x1ad)],'requestedStateConfirmed':![]});}}for(const _0x56770e of _0x38c991){const _0x551752=_0x495e4e[_0xb8be52(0x1bf)][_0xb8be52(0x1cb)](_0x56770e),_0x2ed03d=_0x6b79e6[_0xb8be52(0x15a)][_0xb8be52(0x1cb)](_0x56770e);try{verifyVisibilityUpdate(_0x551752,_0x2ed03d,_0x495e4e['plan']['requestedVisible']),_0x53758d[_0xb8be52(0x1a7)]({'id':_0x56770e,'updated':!![],'skipped':![],'recovered':!![]});}catch(_0x170bdd){const _0x29f230=asVerificationError(_0x170bdd,_0xb8be52(0x1b9)+_0x56770e+_0xb8be52(0x167));_0x4a82c0[_0xb8be52(0x1a7)]({'id':_0x56770e,'stage':_0xb8be52(0x17a),'code':_0x29f230['code'],'message':_0x29f230[_0xb8be52(0x1ad)],'requestedStateConfirmed':![],'recovered':![]});}}if(_0x4a82c0[_0xb8be52(0x188)]>0x0){const _0x4812f4=_0x4a82c0[_0xb8be52(0x15f)](_0x2a6dc8=>Number(_0x2a6dc8['id'])),_0xa48d05=_0x53758d[_0xb8be52(0x182)](_0x43fe62=>_0x43fe62[_0xb8be52(0x17c)]===!![])[_0xb8be52(0x188)],_0xd1d528=menuError('menu_verification_failed',_0xb8be52(0x1bc)+_0x4812f4[_0xb8be52(0x1c4)](',\x20')+'.',_0xb8be52(0x194));throw menuFailure(_0xd1d528,_0x495e4e['plan'],{'stage':'verification','succeeded':_0x53758d,'failedRecords':[..._0x493cb3,..._0x4a82c0],'warnings':['One\x20or\x20more\x20updates\x20may\x20have\x20changed\x20fields\x20outside\x20visibility;\x20inspect\x20current\x20menu\x20facts\x20before\x20retrying.'],'verification':{'status':_0xb8be52(0x169),..._0x4812f4[_0xb8be52(0x188)]===0x1?{'targetId':_0x4812f4[0x0]}:{'targetIds':_0x4812f4},'recoveredCount':_0xa48d05,'lookupCommand':_0xb8be52(0x1b8)}});}const _0x1ba6a2=_0x53758d[_0xb8be52(0x182)](_0x119749=>_0x119749[_0xb8be52(0x177)]===!![])[_0xb8be52(0x188)],_0x5dd89a=_0x53758d[_0xb8be52(0x188)]-_0x1ba6a2,_0x529789={..._0x495e4e['plan'],'succeeded':_0x53758d,'failed':_0x493cb3,'warnings':_0x493cb3['length']>0x0?[..._0x495e4e[_0xb8be52(0x190)]['warnings'],_0xb8be52(0x18c)]:_0x495e4e[_0xb8be52(0x190)]['warnings'],'verification':{'checkedBy':_0xb8be52(0x1ab),'snapshotHash':_0x6b79e6[_0xb8be52(0x176)],'matchesRequestedState':_0x493cb3[_0xb8be52(0x188)]===0x0,'recoveredCount':_0x38c991[_0xb8be52(0x188)]}};return{'ok':_0x493cb3[_0xb8be52(0x188)]===0x0,'data':_0x529789,'message':_0x493cb3['length']===0x0?'Updated\x20visibility\x20for\x20'+_0x1ba6a2+'\x20menu(s);\x20skipped\x20'+_0x5dd89a+_0xb8be52(0x192):'Menu\x20visibility\x20update\x20completed:\x20'+_0x1ba6a2+_0xb8be52(0x1a2)+_0x5dd89a+'\x20skipped,\x20'+_0x493cb3['length']+_0xb8be52(0x1cf)};}};function parseInput(_0x4ddc4b){const _0x834b47=a180_0x13d0dc,_0x5a6e78=parseMenuIds(_0x4ddc4b[_0x834b47(0x18f)]('menu-ids')),_0x3e7c6b=parseCsv(_0x4ddc4b[_0x834b47(0x18f)](_0x834b47(0x197)));if(_0x5a6e78[_0x834b47(0x188)]===0x0&&_0x3e7c6b[_0x834b47(0x188)]===0x0)throw CliErrors[_0x834b47(0x1af)](_0x834b47(0x161));const _0x5e808f=parseBooleanFlag(_0x4ddc4b,_0x834b47(0x1be),!![]),_0x2f13b9=parseBooleanFlag(_0x4ddc4b,_0x834b47(0x1cc),![]);let _0x473dd3;if(hasFlag(_0x4ddc4b,'expected-count')){_0x473dd3=_0x4ddc4b[_0x834b47(0x1bd)](_0x834b47(0x1d1));if(!Number[_0x834b47(0x1ca)](_0x473dd3)||_0x473dd3<0x0)throw CliErrors[_0x834b47(0x1af)](_0x834b47(0x1c9));}return{'menuIds':_0x5a6e78,'paths':_0x3e7c6b,'visible':_0x5e808f,'expectVisible':_0x2f13b9,'expectedCount':_0x473dd3};}function a180_0x2b27(){const _0xc7ca30=['paths','Menu\x20id\x20selector(s)\x20not\x20found:\x20','pageId','resourcesValid','menuIds','number','label','sort','64542LmuIEa','Every\x20selected\x20menu\x20already\x20has\x20the\x20requested\x20visibility;\x20no\x20write\x20is\x20needed.','223803xMdCBd','\x20updated,\x20','flagMissing','isArray','rawFlags','menu_selector_ambiguous','push','childrenIds','pageType','Selected\x20menu\x20visibility\x20changed\x20for\x20id(s):\x20','menu\x20list','plannedActions','message','menu_state_drift','validation','\x20must\x20be\x20true\x20or\x20false.','trim','Run\x20`rabetbase\x20menu\x20list\x20--format\x20compress`\x20and\x20use\x20an\x20exact\x20current\x20path.','datasetId','Requested\x20menu\x20visibility','\x20menu(s),\x20expected\x20','stringify','childrenCount','rabetbase\x20menu\x20list\x20--format\x20compress','Response\x20was\x20lost\x20and\x20menu\x20','expectVisible','split','Menu\x20visibility\x20update\x20could\x20not\x20be\x20verified\x20for\x20id(s):\x20','num','visible','beforeById','Exact\x20comma-separated\x20menu\x20IDs\x20to\x20update','boolean','2791336IbLfzn','\x20visibility\x20update\x20could\x20not\x20be\x20verified','join','expectedCount','1443082qTBuFv','set','12619770NoApxV','--expected-count\x20must\x20be\x20a\x20non-negative\x20integer.','isSafeInteger','get','expect-visible','menu_expected_count_mismatch','modelType','\x20failed.','\x20and\x20final\x20state\x20could\x20not\x20be\x20read.','expected-count','menu_permission_denied','datasetCode','byId','update\x20visibility\x20for','true','code','string','map','menu-ids','menu\x20visibility-update\x20requires\x20--menu-ids\x20or\x20--paths.','requestedVisible','cookie','/smartapi/menu/update','depth','\x20menu(s);\x20skip\x20','\x20visibility\x20could\x20not\x20be\x20verified\x20safely','Selected\x20','failed','\x20was\x20not\x20found\x20during\x20visibility\x20verification.','appCode','3823211SLjGcM','5aTuDlD','Set\x20exact\x20menus\x20visible\x20or\x20hidden\x20without\x20changing\x20their\x20routes\x20or\x20resources','menus','7106754NcpYOV','--menu-ids\x20must\x20contain\x20positive\x20safe\x20integers.','1bxsMCL','Abort\x20unless\x20the\x20exact\x20number\x20of\x20selected\x20menus\x20matches','path','type','hash','updated','menu','parentId','update-recovery','Run\x20`rabetbase\x20menu\x20list\x20--format\x20compress`\x20and\x20use\x20exact\x20current\x20ids.','recovered','Would\x20update\x20visibility\x20for\x20','28VpweIB','values','update','verification','filter','POST','Menu\x20','The\x20update\x20may\x20have\x20taken\x20effect;\x20inspect\x20the\x20latest\x20menu\x20facts\x20before\x20retrying.','url','Use\x20--menu-ids\x20with\x20one\x20or\x20more\x20of:\x20','length','resources','\x20visible\x20did\x20not\x20match\x20the\x20requested\x20state.','menu_verification_failed','Failed\x20update\x20requests\x20were\x20not\x20retried;\x20inspect\x20current\x20menu\x20facts\x20before\x20retrying.','body','targets','str','plan','false','\x20unchanged\x20menu(s).','Menu\x20path\x20selector\x20matched\x20multiple\x20menus:\x20','Inspect\x20current\x20menu\x20facts\x20before\x20retrying\x20any\x20target.','before','visibility-update'];a180_0x2b27=function(){return _0xc7ca30;};return a180_0x2b27();}async function buildPlan(_0x48052e,_0x17b1eb){const _0x498ed1=a180_0x13d0dc,_0x30fb41=parseInput(_0x48052e),_0x355a6d=await fetchMutationSnapshot(_0x48052e,'update\x20menu\x20visibility'),_0x5c84ce=selectTargets(_0x355a6d[_0x498ed1(0x16f)],_0x30fb41[_0x498ed1(0x19b)],_0x30fb41[_0x498ed1(0x197)]);if(_0x30fb41['expectedCount']!==undefined&&_0x5c84ce[_0x498ed1(0x188)]!==_0x30fb41[_0x498ed1(0x1c5)])throw menuError(_0x498ed1(0x1cd),_0x498ed1(0x168)+_0x5c84ce[_0x498ed1(0x188)]+_0x498ed1(0x1b5)+_0x30fb41[_0x498ed1(0x1c5)]+'.','Run\x20the\x20command\x20with\x20--dry-run\x20again\x20and\x20update\x20--expected-count.');if(_0x30fb41[_0x498ed1(0x1ba)]!==undefined){const _0x43290f=_0x5c84ce[_0x498ed1(0x182)](_0x1f2d85=>_0x1f2d85[_0x498ed1(0x1be)]!==_0x30fb41[_0x498ed1(0x1ba)]);if(_0x43290f[_0x498ed1(0x188)]>0x0)throw menuError(_0x498ed1(0x1ae),_0x498ed1(0x1aa)+_0x43290f[_0x498ed1(0x15f)](_0x5ad5e4=>_0x5ad5e4['id'])[_0x498ed1(0x1c4)](',\x20')+'.','Run\x20the\x20command\x20with\x20--dry-run\x20again\x20and\x20update\x20--expect-visible.');}const _0x38687c=_0x5c84ce[_0x498ed1(0x15f)](_0x4f594b=>({'id':_0x4f594b['id'],'label':_0x4f594b['label'],'path':_0x4f594b[_0x498ed1(0x174)],'before':{'visible':_0x4f594b[_0x498ed1(0x1be)]},'after':{'visible':_0x30fb41[_0x498ed1(0x1be)]}})),_0x2173e6=_0x38687c[_0x498ed1(0x182)](_0x1c18d5=>_0x1c18d5[_0x498ed1(0x195)][_0x498ed1(0x1be)]!==_0x30fb41['visible'])['map'](_0xa13d75=>({'stage':'update-menu-visibility','method':_0x498ed1(0x183),'path':'/smartapi/menu/update','body':{'appCode':_0x48052e[_0x498ed1(0x16b)],'id':_0xa13d75['id'],'visible':_0x30fb41[_0x498ed1(0x1be)]}})),_0x3af1e3=mutationResult({'operation':_0x498ed1(0x196),'selector':{'menuIds':_0x30fb41[_0x498ed1(0x19b)],'paths':_0x30fb41[_0x498ed1(0x197)]},'before':{'menus':_0x5c84ce[_0x498ed1(0x15f)](_0xb25554=>({'id':_0xb25554['id'],'path':_0xb25554[_0x498ed1(0x174)],'visible':_0xb25554[_0x498ed1(0x1be)]}))},'after':{'menus':_0x5c84ce[_0x498ed1(0x15f)](_0x4b0949=>({'id':_0x4b0949['id'],'path':_0x4b0949[_0x498ed1(0x174)],'visible':_0x30fb41[_0x498ed1(0x1be)]}))},'dryRun':_0x17b1eb,'backend':[...BACKEND],'plannedActions':_0x2173e6,'snapshotHash':_0x355a6d[_0x498ed1(0x176)],'warnings':_0x2173e6[_0x498ed1(0x188)]===0x0?[_0x498ed1(0x1a0)]:[]});return{'plan':{..._0x3af1e3,'requestedVisible':_0x30fb41[_0x498ed1(0x1be)],'targets':_0x38687c},'beforeById':new Map(_0x5c84ce['map'](_0x3cf2ca=>[_0x3cf2ca['id'],_0x3cf2ca]))};}function selectTargets(_0xad3a24,_0x519058,_0x5e7c66){const _0xb6149f=a180_0x13d0dc,_0x397bde=new Map(_0xad3a24[_0xb6149f(0x15f)](_0x486fa9=>[_0x486fa9['id'],_0x486fa9])),_0x45be2c=new Map(),_0x4b9d88=_0x519058[_0xb6149f(0x182)](_0xdf4133=>!_0x397bde['has'](_0xdf4133));if(_0x4b9d88[_0xb6149f(0x188)]>0x0)throw menuError('menu_selector_not_found',_0xb6149f(0x198)+_0x4b9d88[_0xb6149f(0x1c4)](',\x20')+'.',_0xb6149f(0x17b));for(const _0xdcb22c of _0x519058){_0x45be2c[_0xb6149f(0x1c7)](_0xdcb22c,_0x397bde['get'](_0xdcb22c));}for(const _0x174437 of _0x5e7c66){const _0x46b03d=_0xad3a24['filter'](_0x283fbf=>_0x283fbf[_0xb6149f(0x174)]===_0x174437);if(_0x46b03d[_0xb6149f(0x188)]===0x0)throw menuError('menu_selector_not_found','Menu\x20path\x20selector\x20not\x20found:\x20'+JSON['stringify'](_0x174437)+'.',_0xb6149f(0x1b2));if(_0x46b03d[_0xb6149f(0x188)]>0x1)throw menuError(_0xb6149f(0x1a6),_0xb6149f(0x193)+JSON['stringify'](_0x174437)+'.',_0xb6149f(0x187)+_0x46b03d['map'](_0x2f5d38=>_0x2f5d38['id'])[_0xb6149f(0x1c4)](',\x20')+'.');const _0x1f4d6a=_0x46b03d[0x0];_0x45be2c['set'](_0x1f4d6a['id'],_0x1f4d6a);}return[..._0x45be2c[_0xb6149f(0x17f)]()];}function parseMenuIds(_0x264c50){const _0x274158=a180_0x13d0dc,_0x167731=parseCsv(_0x264c50),_0x28a211=_0x167731[_0x274158(0x15f)](Number);if(_0x28a211['some'](_0x47b80a=>!Number[_0x274158(0x1ca)](_0x47b80a)||_0x47b80a<=0x0))throw CliErrors[_0x274158(0x1af)](_0x274158(0x171));return[...new Set(_0x28a211)];}function parseCsv(_0x2a1b9b){const _0x155438=a180_0x13d0dc;return[...new Set(_0x2a1b9b[_0x155438(0x1bb)](',')['map'](_0x5ddaa2=>_0x5ddaa2[_0x155438(0x1b1)]())['filter'](Boolean))];}function parseBooleanFlag(_0x5e08e0,_0x1fc338,_0x21878b){const _0x7259e8=a180_0x13d0dc;if(!hasFlag(_0x5e08e0,_0x1fc338)){if(_0x21878b)throw CliErrors[_0x7259e8(0x1a3)](_0x1fc338);return undefined;}const _0x11ecee=_0x5e08e0[_0x7259e8(0x1a5)][_0x1fc338];if(_0x11ecee===!![]||_0x11ecee===![])return _0x11ecee;if(_0x11ecee===_0x7259e8(0x15c))return!![];if(_0x11ecee===_0x7259e8(0x191))return![];throw CliErrors[_0x7259e8(0x1af)]('--'+_0x1fc338+_0x7259e8(0x1b0));}function verifyVisibilityUpdate(_0x186737,_0x433a90,_0x49662a){const _0x5271dd=a180_0x13d0dc;assertVerified(!!_0x433a90,_0x5271dd(0x184)+_0x186737['id']+_0x5271dd(0x16a)),assertVerified(_0x433a90[_0x5271dd(0x1be)]===_0x49662a,_0x5271dd(0x184)+_0x186737['id']+_0x5271dd(0x18a));const _0x3eb4e9=[['id',_0x433a90['id'],_0x186737['id']],[_0x5271dd(0x179),_0x433a90[_0x5271dd(0x179)],_0x186737[_0x5271dd(0x179)]],[_0x5271dd(0x165),_0x433a90[_0x5271dd(0x165)],_0x186737[_0x5271dd(0x165)]],[_0x5271dd(0x19d),_0x433a90[_0x5271dd(0x19d)],_0x186737[_0x5271dd(0x19d)]],[_0x5271dd(0x174),_0x433a90['path'],_0x186737['path']],[_0x5271dd(0x186),_0x433a90[_0x5271dd(0x186)],_0x186737[_0x5271dd(0x186)]],[_0x5271dd(0x175),_0x433a90[_0x5271dd(0x175)],_0x186737[_0x5271dd(0x175)]],[_0x5271dd(0x19e),_0x433a90[_0x5271dd(0x19e)],_0x186737['sort']],['resources',_0x433a90[_0x5271dd(0x189)],_0x186737[_0x5271dd(0x189)]],['resourcesValid',_0x433a90[_0x5271dd(0x19a)],_0x186737[_0x5271dd(0x19a)]],[_0x5271dd(0x1a8),_0x433a90[_0x5271dd(0x1a8)],_0x186737['childrenIds']],[_0x5271dd(0x1b7),_0x433a90['childrenCount'],_0x186737[_0x5271dd(0x1b7)]],['pageId',_0x433a90[_0x5271dd(0x199)],_0x186737[_0x5271dd(0x199)]],[_0x5271dd(0x1a9),_0x433a90[_0x5271dd(0x1a9)],_0x186737[_0x5271dd(0x1a9)]],[_0x5271dd(0x1ce),_0x433a90['modelType'],_0x186737[_0x5271dd(0x1ce)]],[_0x5271dd(0x1b3),_0x433a90[_0x5271dd(0x1b3)],_0x186737[_0x5271dd(0x1b3)]],[_0x5271dd(0x159),_0x433a90[_0x5271dd(0x159)],_0x186737['datasetCode']]];for(const [_0x28b2b3,_0x441b1e,_0x4240f0]of _0x3eb4e9){assertVerified(sameValue(_0x441b1e,_0x4240f0),_0x5271dd(0x184)+_0x186737['id']+'\x20'+_0x28b2b3+'\x20changed\x20unexpectedly.');}}function sameValue(_0x1bd12f,_0x418a09){const _0x32458a=a180_0x13d0dc;if(Array[_0x32458a(0x1a4)](_0x1bd12f)||Array[_0x32458a(0x1a4)](_0x418a09))return JSON[_0x32458a(0x1b6)](_0x1bd12f)===JSON[_0x32458a(0x1b6)](_0x418a09);return _0x1bd12f===_0x418a09;}
|
|
1
|
+
const a180_0x1f637a=a180_0x5c13;(function(_0x48b7c7,_0x5b1859){const _0x1a08fa=a180_0x5c13,_0xc1c05b=_0x48b7c7();while(!![]){try{const _0x1b49af=-parseInt(_0x1a08fa(0x22c))/0x1+-parseInt(_0x1a08fa(0x1bc))/0x2+parseInt(_0x1a08fa(0x1b3))/0x3+parseInt(_0x1a08fa(0x206))/0x4*(parseInt(_0x1a08fa(0x222))/0x5)+-parseInt(_0x1a08fa(0x1f0))/0x6+-parseInt(_0x1a08fa(0x21c))/0x7*(parseInt(_0x1a08fa(0x1fa))/0x8)+parseInt(_0x1a08fa(0x1ff))/0x9;if(_0x1b49af===_0x5b1859)break;else _0xc1c05b['push'](_0xc1c05b['shift']());}catch(_0x111cd8){_0xc1c05b['push'](_0xc1c05b['shift']());}}}(a180_0x5aaf,0x343da));function a180_0x5aaf(){const _0x11d70a=['hash','\x20visibility\x20could\x20not\x20be\x20verified\x20safely','/smartapi/menu/update','depth','\x20changed\x20unexpectedly.','expectedCount','boolean','childrenIds','isSafeInteger','\x20menu(s),\x20expected\x20','\x20menu(s);\x20skipped\x20','warnings','verification','menu_expected_count_mismatch','datasetCode','Abort\x20unless\x20every\x20selected\x20menu\x20has\x20this\x20visibility','Menu\x20path\x20selector\x20not\x20found:\x20','url','modelType','label','Response\x20was\x20lost\x20for\x20menu\x20','\x20and\x20final\x20state\x20could\x20not\x20be\x20read.','visibility-update','expected-count','some','menu\x20list','number','One\x20or\x20more\x20updates\x20may\x20have\x20changed\x20fields\x20outside\x20visibility;\x20inspect\x20current\x20menu\x20facts\x20before\x20retrying.','resources','before','sort','flagMissing','\x20was\x20not\x20found\x20during\x20visibility\x20verification.','parentId','pageId','str','1805556KpvURr','pageType','rabetbase\x20menu\x20list\x20--format\x20compress','Every\x20selected\x20menu\x20already\x20has\x20the\x20requested\x20visibility;\x20no\x20write\x20is\x20needed.','requestedVisible','\x20menu(s);\x20skip\x20','message','Failed\x20update\x20requests\x20were\x20not\x20retried;\x20inspect\x20current\x20menu\x20facts\x20before\x20retrying.','update-recovery','resourcesValid','2120Yjqowr','validation','Final\x20menu\x20visibility\x20readback\x20failed.','appCode','\x20unchanged\x20menu(s).','6969006WpHfEx','expectVisible','set','map','childrenCount','--menu-ids\x20must\x20contain\x20positive\x20safe\x20integers.','The\x20update\x20may\x20have\x20taken\x20effect;\x20inspect\x20the\x20latest\x20menu\x20facts\x20before\x20retrying.','68RlDAOQ','\x20updated,\x20','filter','datasetId','type','high-risk-write','POST','Inspect\x20current\x20menu\x20facts\x20before\x20retrying\x20any\x20target.','--expected-count\x20must\x20be\x20a\x20non-negative\x20integer.','visible','plan','expect-visible','menu_selector_ambiguous','stringify','\x20visibility\x20update\x20could\x20not\x20be\x20verified','body','Run\x20`rabetbase\x20menu\x20list\x20--format\x20compress`\x20and\x20use\x20an\x20exact\x20current\x20path.','join','false','byId','Set\x20exact\x20menus\x20visible\x20or\x20hidden\x20without\x20changing\x20their\x20routes\x20or\x20resources','Menu\x20path\x20selector\x20matched\x20multiple\x20menus:\x20','6580zaGHIg','menus','menu_selector_not_found','Menu\x20','Exact\x20comma-separated\x20menu\x20IDs\x20to\x20update','push','98435jwaNcy','length','beforeById','true','recovered','Selected\x20','\x20skipped,\x20','failed','update-menu-visibility','menuIds','387361EJmlQN','trim','update\x20menu\x20visibility','cookie','\x20must\x20be\x20true\x20or\x20false.','num','1182828rZelsh','get','Selected\x20menu\x20visibility\x20changed\x20for\x20id(s):\x20','Requested\x20menu\x20visibility','path','string','plannedActions','Would\x20update\x20visibility\x20for\x20','Menu\x20visibility\x20update\x20could\x20not\x20be\x20verified\x20for\x20id(s):\x20','703848DmbpNT','menu_verification_failed','has','Run\x20`rabetbase\x20menu\x20list\x20--format\x20compress`\x20and\x20use\x20exact\x20current\x20ids.','Use\x20--menu-ids\x20with\x20one\x20or\x20more\x20of:\x20','isArray','menu-ids','code','paths','Abort\x20unless\x20the\x20exact\x20number\x20of\x20selected\x20menus\x20matches','targets','updated','menu_state_drift','update','Menu\x20visibility\x20update\x20completed:\x20','verify\x20menu\x20visibility\x20update'];a180_0x5aaf=function(){return _0x11d70a;};return a180_0x5aaf();}import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function a180_0x5c13(_0x4f82a2,_0x445fde){_0x4f82a2=_0x4f82a2-0x1af;const _0x5aaf94=a180_0x5aaf();let _0x5c13ae=_0x5aaf94[_0x4f82a2];return _0x5c13ae;}import{fetchMenuSnapshot}from'../../commands/menu/shared/facts.js';import{asVerificationError,assertVerified,describeMenuErrorCause,fetchMutationSnapshot,hasFlag,isMenuResponseLoss,mapMenuApiError,menuDryRunResult,menuError,menuFailure,mutationResult,recheckMutationSnapshot,requireExplicitYes}from'../../commands/menu/shared/mutations.js';import{updateMenuEntity}from'../../commands/menu/shared/service.js';import{CliErrors}from'../../errors.js';const BACKEND=[{'method':'POST','path':a180_0x1f637a(0x1ce)}];export const menuVisibilityUpdate={'service':'menu','command':'visibility-update','description':a180_0x1f637a(0x21a),'risk':a180_0x1f637a(0x20b),'structuredErrors':!![],'flags':[{'name':a180_0x1f637a(0x1c2),'type':a180_0x1f637a(0x1b8),'description':a180_0x1f637a(0x220)},{'name':a180_0x1f637a(0x1c4),'type':a180_0x1f637a(0x1b8),'description':'Exact\x20comma-separated\x20menu\x20paths\x20to\x20update'},{'name':a180_0x1f637a(0x20f),'type':'boolean','required':!![],'description':a180_0x1f637a(0x1b6)},{'name':'expect-visible','type':a180_0x1f637a(0x1d2),'description':a180_0x1f637a(0x1db)},{'name':a180_0x1f637a(0x1e3),'type':a180_0x1f637a(0x1e6),'description':a180_0x1f637a(0x1c5)},APPCODE_FLAG_OPTIONAL],async 'validate'(_0x143d89){parseInput(_0x143d89),requireExplicitYes(_0x143d89);},async 'dryRun'(_0x1a7306){const _0x33990f=a180_0x1f637a,_0x3398a6=await buildPlan(_0x1a7306,!![]),_0x1ea7ba=_0x3398a6[_0x33990f(0x210)][_0x33990f(0x1b9)]?.[_0x33990f(0x223)]??0x0,_0x491680=_0x3398a6[_0x33990f(0x210)][_0x33990f(0x1c6)][_0x33990f(0x223)]-_0x1ea7ba;return menuDryRunResult(_0x3398a6[_0x33990f(0x210)],{'method':_0x33990f(0x20c),'url':_0x33990f(0x1ce),'body':{'updates':_0x3398a6['plan'][_0x33990f(0x1b9)]?.[_0x33990f(0x202)](_0x51e3b2=>_0x51e3b2[_0x33990f(0x215)])??[]},'description':_0x33990f(0x1ba)+_0x1ea7ba+_0x33990f(0x1f5)+_0x491680+_0x33990f(0x1fe)});},async 'execute'(_0x1cd43b){const _0x4ce22a=a180_0x1f637a;requireExplicitYes(_0x1cd43b);const _0xcb6199=await buildPlan(_0x1cd43b,![]);await recheckMutationSnapshot(_0x1cd43b,_0xcb6199[_0x4ce22a(0x210)],_0x4ce22a(0x1af));const _0x537135=[],_0x4289c5=[],_0x3a4e00=[];for(const _0xf9d12 of _0xcb6199[_0x4ce22a(0x210)][_0x4ce22a(0x1c6)]){if(_0xf9d12[_0x4ce22a(0x1e9)][_0x4ce22a(0x20f)]===_0xcb6199[_0x4ce22a(0x210)]['requestedVisible']){_0x537135['push']({'id':_0xf9d12['id'],'updated':![],'skipped':!![]});continue;}try{await updateMenuEntity(_0x1cd43b['appCode'],_0x1cd43b['cookie'],{'id':_0xf9d12['id'],'visible':_0xcb6199[_0x4ce22a(0x210)][_0x4ce22a(0x1f4)]}),_0x537135[_0x4ce22a(0x221)]({'id':_0xf9d12['id'],'updated':!![],'skipped':![]});}catch(_0x2dd787){const _0x4cd82d=mapMenuApiError(_0x2dd787,'update\x20visibility\x20for',_0xf9d12['id']);if(isMenuResponseLoss(_0x2dd787)&&_0x4cd82d[_0x4ce22a(0x1c3)]!=='menu_permission_denied'){_0x3a4e00['push'](_0xf9d12['id']);continue;}_0x4289c5[_0x4ce22a(0x221)]({'id':_0xf9d12['id'],'stage':_0x4ce22a(0x1c9),'code':_0x4cd82d[_0x4ce22a(0x1c3)],'message':_0x4cd82d['message']});}}let _0x4e370e;try{_0x4e370e=await fetchMenuSnapshot(_0x1cd43b[_0x4ce22a(0x1fd)],_0x1cd43b[_0x4ce22a(0x1b0)]);}catch(_0x32a5e5){const _0x1ef263=describeMenuErrorCause(_0x32a5e5,_0x4ce22a(0x1cb)),_0x1aaf81=_0x3a4e00[_0x4ce22a(0x202)](_0x4475e2=>({'id':_0x4475e2,'stage':_0x4ce22a(0x1f8),'code':_0x4ce22a(0x1bd),'message':_0x4ce22a(0x1e0)+_0x4475e2+_0x4ce22a(0x1e1),'requestedStateConfirmed':![],'recovered':![]})),_0x525b25={'stage':_0x4ce22a(0x1d8),'code':'menu_verification_failed','message':_0x4ce22a(0x1fc),'targetIds':_0xcb6199[_0x4ce22a(0x210)][_0x4ce22a(0x1c6)]['map'](_0x4a5055=>_0x4a5055['id']),'requestedStateConfirmed':![],..._0x1ef263};throw menuFailure(asVerificationError(_0x32a5e5,'Visibility\x20update\x20requests\x20completed\x20but\x20readback\x20could\x20not\x20confirm\x20the\x20requested\x20state'),_0xcb6199[_0x4ce22a(0x210)],{'stage':_0x4ce22a(0x1d8),'succeeded':_0x537135,'failedRecords':[..._0x4289c5,..._0x1aaf81,_0x525b25],'warnings':[_0x4ce22a(0x205)],'verification':{'status':_0x4ce22a(0x229),'recoveredCount':0x0,'lookupCommand':'rabetbase\x20menu\x20list\x20--format\x20compress'}});}const _0x2a5d1a=[];for(const _0x17754b of _0x537135){const _0x43c042=Number(_0x17754b['id']),_0x49c4d6=_0xcb6199[_0x4ce22a(0x224)][_0x4ce22a(0x1b4)](_0x43c042),_0x31fd30=_0x4e370e['byId'][_0x4ce22a(0x1b4)](_0x43c042);try{verifyVisibilityUpdate(_0x49c4d6,_0x31fd30,_0xcb6199['plan'][_0x4ce22a(0x1f4)]);}catch(_0x2f4f07){const _0x484758=asVerificationError(_0x2f4f07,'Menu\x20'+_0x43c042+_0x4ce22a(0x214));_0x2a5d1a[_0x4ce22a(0x221)]({'id':_0x43c042,'stage':_0x4ce22a(0x1d8),'code':_0x484758[_0x4ce22a(0x1c3)],'message':_0x484758[_0x4ce22a(0x1f6)],'requestedStateConfirmed':![]});}}for(const _0x56ee2f of _0x3a4e00){const _0x2a9d52=_0xcb6199[_0x4ce22a(0x224)][_0x4ce22a(0x1b4)](_0x56ee2f),_0x171dc3=_0x4e370e[_0x4ce22a(0x219)][_0x4ce22a(0x1b4)](_0x56ee2f);try{verifyVisibilityUpdate(_0x2a9d52,_0x171dc3,_0xcb6199['plan'][_0x4ce22a(0x1f4)]),_0x537135[_0x4ce22a(0x221)]({'id':_0x56ee2f,'updated':!![],'skipped':![],'recovered':!![]});}catch(_0x43501f){const _0x31abe3=asVerificationError(_0x43501f,'Response\x20was\x20lost\x20and\x20menu\x20'+_0x56ee2f+_0x4ce22a(0x1cd));_0x2a5d1a['push']({'id':_0x56ee2f,'stage':'update-recovery','code':_0x31abe3[_0x4ce22a(0x1c3)],'message':_0x31abe3['message'],'requestedStateConfirmed':![],'recovered':![]});}}if(_0x2a5d1a[_0x4ce22a(0x223)]>0x0){const _0x34da62=_0x2a5d1a[_0x4ce22a(0x202)](_0x4909db=>Number(_0x4909db['id'])),_0x14506c=_0x537135[_0x4ce22a(0x208)](_0x5eb946=>_0x5eb946[_0x4ce22a(0x226)]===!![])['length'],_0x1558c3=menuError(_0x4ce22a(0x1bd),_0x4ce22a(0x1bb)+_0x34da62[_0x4ce22a(0x217)](',\x20')+'.',_0x4ce22a(0x20d));throw menuFailure(_0x1558c3,_0xcb6199[_0x4ce22a(0x210)],{'stage':_0x4ce22a(0x1d8),'succeeded':_0x537135,'failedRecords':[..._0x4289c5,..._0x2a5d1a],'warnings':[_0x4ce22a(0x1e7)],'verification':{'status':_0x4ce22a(0x229),..._0x34da62[_0x4ce22a(0x223)]===0x1?{'targetId':_0x34da62[0x0]}:{'targetIds':_0x34da62},'recoveredCount':_0x14506c,'lookupCommand':_0x4ce22a(0x1f2)}});}const _0x1b3b20=_0x537135['filter'](_0x5d8030=>_0x5d8030[_0x4ce22a(0x1c7)]===!![])['length'],_0x2c4d59=_0x537135[_0x4ce22a(0x223)]-_0x1b3b20,_0xaf2ac4={..._0xcb6199[_0x4ce22a(0x210)],'succeeded':_0x537135,'failed':_0x4289c5,'warnings':_0x4289c5['length']>0x0?[..._0xcb6199[_0x4ce22a(0x210)][_0x4ce22a(0x1d7)],_0x4ce22a(0x1f7)]:_0xcb6199[_0x4ce22a(0x210)][_0x4ce22a(0x1d7)],'verification':{'checkedBy':_0x4ce22a(0x1e5),'snapshotHash':_0x4e370e[_0x4ce22a(0x1cc)],'matchesRequestedState':_0x4289c5[_0x4ce22a(0x223)]===0x0,'recoveredCount':_0x3a4e00[_0x4ce22a(0x223)]}};return{'ok':_0x4289c5['length']===0x0,'data':_0xaf2ac4,'message':_0x4289c5[_0x4ce22a(0x223)]===0x0?'Updated\x20visibility\x20for\x20'+_0x1b3b20+_0x4ce22a(0x1d6)+_0x2c4d59+_0x4ce22a(0x1fe):_0x4ce22a(0x1ca)+_0x1b3b20+_0x4ce22a(0x207)+_0x2c4d59+_0x4ce22a(0x228)+_0x4289c5['length']+'\x20failed.'};}};function parseInput(_0x309b8c){const _0x28dc60=a180_0x1f637a,_0x164805=parseMenuIds(_0x309b8c[_0x28dc60(0x1ef)]('menu-ids')),_0x3096b3=parseCsv(_0x309b8c[_0x28dc60(0x1ef)](_0x28dc60(0x1c4)));if(_0x164805[_0x28dc60(0x223)]===0x0&&_0x3096b3['length']===0x0)throw CliErrors['validation']('menu\x20visibility-update\x20requires\x20--menu-ids\x20or\x20--paths.');const _0x47f084=parseBooleanFlag(_0x309b8c,_0x28dc60(0x20f),!![]),_0x217a4b=parseBooleanFlag(_0x309b8c,_0x28dc60(0x211),![]);let _0x2041b7;if(hasFlag(_0x309b8c,'expected-count')){_0x2041b7=_0x309b8c[_0x28dc60(0x1b2)]('expected-count');if(!Number[_0x28dc60(0x1d4)](_0x2041b7)||_0x2041b7<0x0)throw CliErrors[_0x28dc60(0x1fb)](_0x28dc60(0x20e));}return{'menuIds':_0x164805,'paths':_0x3096b3,'visible':_0x47f084,'expectVisible':_0x217a4b,'expectedCount':_0x2041b7};}async function buildPlan(_0xbf6dec,_0x9e69){const _0x29c05a=a180_0x1f637a,_0x3cd18d=parseInput(_0xbf6dec),_0x1ef1c9=await fetchMutationSnapshot(_0xbf6dec,_0x29c05a(0x1af)),_0x4ed217=selectTargets(_0x1ef1c9[_0x29c05a(0x21d)],_0x3cd18d[_0x29c05a(0x22b)],_0x3cd18d[_0x29c05a(0x1c4)]);if(_0x3cd18d[_0x29c05a(0x1d1)]!==undefined&&_0x4ed217[_0x29c05a(0x223)]!==_0x3cd18d[_0x29c05a(0x1d1)])throw menuError(_0x29c05a(0x1d9),_0x29c05a(0x227)+_0x4ed217[_0x29c05a(0x223)]+_0x29c05a(0x1d5)+_0x3cd18d[_0x29c05a(0x1d1)]+'.','Run\x20the\x20command\x20with\x20--dry-run\x20again\x20and\x20update\x20--expected-count.');if(_0x3cd18d[_0x29c05a(0x200)]!==undefined){const _0xedfb57=_0x4ed217[_0x29c05a(0x208)](_0x4f00f3=>_0x4f00f3[_0x29c05a(0x20f)]!==_0x3cd18d[_0x29c05a(0x200)]);if(_0xedfb57[_0x29c05a(0x223)]>0x0)throw menuError(_0x29c05a(0x1c8),_0x29c05a(0x1b5)+_0xedfb57[_0x29c05a(0x202)](_0xb640ef=>_0xb640ef['id'])['join'](',\x20')+'.','Run\x20the\x20command\x20with\x20--dry-run\x20again\x20and\x20update\x20--expect-visible.');}const _0x31776c=_0x4ed217[_0x29c05a(0x202)](_0x14507b=>({'id':_0x14507b['id'],'label':_0x14507b[_0x29c05a(0x1df)],'path':_0x14507b[_0x29c05a(0x1b7)],'before':{'visible':_0x14507b[_0x29c05a(0x20f)]},'after':{'visible':_0x3cd18d[_0x29c05a(0x20f)]}})),_0x28c702=_0x31776c[_0x29c05a(0x208)](_0x52f82d=>_0x52f82d['before'][_0x29c05a(0x20f)]!==_0x3cd18d['visible'])[_0x29c05a(0x202)](_0x1a5313=>({'stage':_0x29c05a(0x22a),'method':_0x29c05a(0x20c),'path':_0x29c05a(0x1ce),'body':{'appCode':_0xbf6dec[_0x29c05a(0x1fd)],'id':_0x1a5313['id'],'visible':_0x3cd18d[_0x29c05a(0x20f)]}})),_0x23d9f1=mutationResult({'operation':_0x29c05a(0x1e2),'selector':{'menuIds':_0x3cd18d['menuIds'],'paths':_0x3cd18d[_0x29c05a(0x1c4)]},'before':{'menus':_0x4ed217[_0x29c05a(0x202)](_0x318d50=>({'id':_0x318d50['id'],'path':_0x318d50[_0x29c05a(0x1b7)],'visible':_0x318d50['visible']}))},'after':{'menus':_0x4ed217[_0x29c05a(0x202)](_0x4c99b8=>({'id':_0x4c99b8['id'],'path':_0x4c99b8[_0x29c05a(0x1b7)],'visible':_0x3cd18d[_0x29c05a(0x20f)]}))},'dryRun':_0x9e69,'backend':[...BACKEND],'plannedActions':_0x28c702,'snapshotHash':_0x1ef1c9['hash'],'warnings':_0x28c702[_0x29c05a(0x223)]===0x0?[_0x29c05a(0x1f3)]:[]});return{'plan':{..._0x23d9f1,'requestedVisible':_0x3cd18d['visible'],'targets':_0x31776c},'beforeById':new Map(_0x4ed217[_0x29c05a(0x202)](_0x1dbcec=>[_0x1dbcec['id'],_0x1dbcec]))};}function selectTargets(_0x31264b,_0x15d188,_0x2ec998){const _0x5c53c6=a180_0x1f637a,_0x2584a4=new Map(_0x31264b[_0x5c53c6(0x202)](_0x39f744=>[_0x39f744['id'],_0x39f744])),_0x3636bf=new Map(),_0x3bac00=_0x15d188['filter'](_0xa3d0e4=>!_0x2584a4[_0x5c53c6(0x1be)](_0xa3d0e4));if(_0x3bac00['length']>0x0)throw menuError(_0x5c53c6(0x21e),'Menu\x20id\x20selector(s)\x20not\x20found:\x20'+_0x3bac00[_0x5c53c6(0x217)](',\x20')+'.',_0x5c53c6(0x1bf));for(const _0x4b71d9 of _0x15d188){_0x3636bf[_0x5c53c6(0x201)](_0x4b71d9,_0x2584a4['get'](_0x4b71d9));}for(const _0x5361da of _0x2ec998){const _0x357df7=_0x31264b[_0x5c53c6(0x208)](_0x15178c=>_0x15178c[_0x5c53c6(0x1b7)]===_0x5361da);if(_0x357df7[_0x5c53c6(0x223)]===0x0)throw menuError(_0x5c53c6(0x21e),_0x5c53c6(0x1dc)+JSON[_0x5c53c6(0x213)](_0x5361da)+'.',_0x5c53c6(0x216));if(_0x357df7[_0x5c53c6(0x223)]>0x1)throw menuError(_0x5c53c6(0x212),_0x5c53c6(0x21b)+JSON[_0x5c53c6(0x213)](_0x5361da)+'.',_0x5c53c6(0x1c0)+_0x357df7[_0x5c53c6(0x202)](_0x2cebb6=>_0x2cebb6['id'])[_0x5c53c6(0x217)](',\x20')+'.');const _0x3d5336=_0x357df7[0x0];_0x3636bf[_0x5c53c6(0x201)](_0x3d5336['id'],_0x3d5336);}return[..._0x3636bf['values']()];}function parseMenuIds(_0x177b25){const _0x2189ee=a180_0x1f637a,_0x52f43f=parseCsv(_0x177b25),_0x4ca8ad=_0x52f43f[_0x2189ee(0x202)](Number);if(_0x4ca8ad[_0x2189ee(0x1e4)](_0x508bc9=>!Number[_0x2189ee(0x1d4)](_0x508bc9)||_0x508bc9<=0x0))throw CliErrors['validation'](_0x2189ee(0x204));return[...new Set(_0x4ca8ad)];}function parseCsv(_0x590ab3){const _0x4e3b36=a180_0x1f637a;return[...new Set(_0x590ab3['split'](',')[_0x4e3b36(0x202)](_0x414bc7=>_0x414bc7[_0x4e3b36(0x22d)]())['filter'](Boolean))];}function parseBooleanFlag(_0xf7f892,_0x413f92,_0x2221d3){const _0x2a336a=a180_0x1f637a;if(!hasFlag(_0xf7f892,_0x413f92)){if(_0x2221d3)throw CliErrors[_0x2a336a(0x1eb)](_0x413f92);return undefined;}const _0x7f07ba=_0xf7f892['rawFlags'][_0x413f92];if(_0x7f07ba===!![]||_0x7f07ba===![])return _0x7f07ba;if(_0x7f07ba===_0x2a336a(0x225))return!![];if(_0x7f07ba===_0x2a336a(0x218))return![];throw CliErrors[_0x2a336a(0x1fb)]('--'+_0x413f92+_0x2a336a(0x1b1));}function verifyVisibilityUpdate(_0x396a7d,_0xa156d6,_0x51f4fe){const _0x439550=a180_0x1f637a;assertVerified(!!_0xa156d6,'Menu\x20'+_0x396a7d['id']+_0x439550(0x1ec)),assertVerified(_0xa156d6[_0x439550(0x20f)]===_0x51f4fe,_0x439550(0x21f)+_0x396a7d['id']+'\x20visible\x20did\x20not\x20match\x20the\x20requested\x20state.');const _0x1b280f=[['id',_0xa156d6['id'],_0x396a7d['id']],['parentId',_0xa156d6['parentId'],_0x396a7d[_0x439550(0x1ed)]],['depth',_0xa156d6[_0x439550(0x1cf)],_0x396a7d['depth']],['label',_0xa156d6[_0x439550(0x1df)],_0x396a7d['label']],[_0x439550(0x1b7),_0xa156d6[_0x439550(0x1b7)],_0x396a7d[_0x439550(0x1b7)]],[_0x439550(0x1dd),_0xa156d6[_0x439550(0x1dd)],_0x396a7d[_0x439550(0x1dd)]],[_0x439550(0x20a),_0xa156d6[_0x439550(0x20a)],_0x396a7d[_0x439550(0x20a)]],['sort',_0xa156d6[_0x439550(0x1ea)],_0x396a7d[_0x439550(0x1ea)]],[_0x439550(0x1e8),_0xa156d6[_0x439550(0x1e8)],_0x396a7d[_0x439550(0x1e8)]],[_0x439550(0x1f9),_0xa156d6[_0x439550(0x1f9)],_0x396a7d[_0x439550(0x1f9)]],[_0x439550(0x1d3),_0xa156d6[_0x439550(0x1d3)],_0x396a7d[_0x439550(0x1d3)]],[_0x439550(0x203),_0xa156d6[_0x439550(0x203)],_0x396a7d['childrenCount']],['pageId',_0xa156d6[_0x439550(0x1ee)],_0x396a7d['pageId']],[_0x439550(0x1f1),_0xa156d6['pageType'],_0x396a7d[_0x439550(0x1f1)]],[_0x439550(0x1de),_0xa156d6[_0x439550(0x1de)],_0x396a7d[_0x439550(0x1de)]],['datasetId',_0xa156d6[_0x439550(0x209)],_0x396a7d['datasetId']],[_0x439550(0x1da),_0xa156d6[_0x439550(0x1da)],_0x396a7d[_0x439550(0x1da)]]];for(const [_0x403a11,_0xad15c5,_0x242b73]of _0x1b280f){assertVerified(sameValue(_0xad15c5,_0x242b73),_0x439550(0x21f)+_0x396a7d['id']+'\x20'+_0x403a11+_0x439550(0x1d0));}}function sameValue(_0x2bacb5,_0x17fb72){const _0xcb5378=a180_0x1f637a;if(Array['isArray'](_0x2bacb5)||Array[_0xcb5378(0x1c1)](_0x17fb72))return JSON[_0xcb5378(0x213)](_0x2bacb5)===JSON['stringify'](_0x17fb72);return _0x2bacb5===_0x17fb72;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a181_0x228e(){const _0x1a6a59=['Notification\x20config\x20create\x20outcome\x20is\x20unknown\x20because\x20no\x20server\x20ID\x20was\x20received.','107056PGGBmp','create','endpointUrl','config-create','notification_config_create_outcome_unknown','Inspect\x20with\x20','write','document','notification','readTimeout','mutation','Notification\x20config\x20create\x20returned\x20no\x20usable\x20server\x20ID.','channelType','14GijOEt','isSafeInteger','2488TcqjKU','277551MAtEcQ','input','10CUVsNL',';\x20no\x20automatic\x20retry\x20was\x20attempted.','planned','102036uyiIan','verified','channelConfig','POST','Create\x20an\x20app-level\x20notification\x20config\x20from\x20a\x20secure\x20JSON\x20source','appCode','310XHhSfl','4457904ROOzHx',';\x20do\x20not\x20resubmit.','verification','configName','942036pjAjdT','Created\x20notification\x20config\x20','889017YUtcMM','48gngZTO'];a181_0x228e=function(){return _0x1a6a59;};return a181_0x228e();}function a181_0x3c8b(_0x353092,_0x424a4d){_0x353092=_0x353092-0xe4;const _0x228e4f=a181_0x228e();let _0x3c8b49=_0x228e4f[_0x353092];return _0x3c8b49;}const a181_0x39169c=a181_0x3c8b;(function(_0x56b121,_0x5e5f42){const _0x1222cd=a181_0x3c8b,_0x1a632d=_0x56b121();while(!![]){try{const _0x14fcac=-parseInt(_0x1222cd(0xe4))/0x1+-parseInt(_0x1222cd(0xf4))/0x2+parseInt(_0x1222cd(0xf1))/0x3+parseInt(_0x1222cd(0x103))/0x4*(-parseInt(_0x1222cd(0xea))/0x5)+parseInt(_0x1222cd(0xef))/0x6*(parseInt(_0x1222cd(0x101))/0x7)+-parseInt(_0x1222cd(0xf2))/0x8*(-parseInt(_0x1222cd(0x104))/0x9)+parseInt(_0x1222cd(0x106))/0xa*(-parseInt(_0x1222cd(0xeb))/0xb);if(_0x14fcac===_0x5e5f42)break;else _0x1a632d['push'](_0x1a632d['shift']());}catch(_0x596512){_0x1a632d['push'](_0x1a632d['shift']());}}}(a181_0x228e,0x2fd99));import{asDryRunResult}from'../../commands/common/dry-run.js';import{createNotificationChannelConfig,getNotificationChannelConfig,isPlatformTransportFailure}from'../../core/api-client.js';import{assertSingleNotificationSource,createMutationInput,DEFAULT_NOTIFICATION_CONNECT_TIMEOUT,DEFAULT_NOTIFICATION_READ_TIMEOUT,normalizeExactNotificationConfig,notificationError,notificationLookupCommand,NOTIFICATION_APP_FLAG,NOTIFICATION_INPUT_FLAGS,projectNotificationConfig,readNotificationDocument,safeApiFailure}from'../../commands/notification/shared.js';const CREATE_PATH='/notification/channel-config/create';async function prepareCreate(_0x1b0472){const _0x177686=a181_0x3c8b,_0x50ccc8=await readNotificationDocument(_0x1b0472,'create'),_0x3affd2=createMutationInput(_0x1b0472[_0x177686(0xe9)],_0x50ccc8);return{'document':_0x50ccc8,'input':_0x3affd2,'planned':projectNotificationConfig({'appCode':_0x1b0472[_0x177686(0xe9)],'configName':_0x50ccc8[_0x177686(0xee)],'channelType':_0x50ccc8[_0x177686(0x100)],'endpointUrl':_0x50ccc8[_0x177686(0xf6)],'channelConfig':_0x50ccc8[_0x177686(0xe6)],'description':_0x50ccc8['description'],'connectTimeout':_0x50ccc8['connectTimeout']??DEFAULT_NOTIFICATION_CONNECT_TIMEOUT,'readTimeout':_0x50ccc8[_0x177686(0xfd)]??DEFAULT_NOTIFICATION_READ_TIMEOUT})};}export const notificationConfigCreate={'service':a181_0x39169c(0xfc),'command':a181_0x39169c(0xf7),'description':a181_0x39169c(0xe8),'risk':a181_0x39169c(0xfa),'requiresAppCode':!![],'structuredErrors':!![],'flags':[...NOTIFICATION_INPUT_FLAGS,NOTIFICATION_APP_FLAG],async 'validate'(_0x249a0b){assertSingleNotificationSource(_0x249a0b);},async 'dryRun'(_0x1f5efd){const _0x3f63db=a181_0x39169c,_0x1da5b7=await prepareCreate(_0x1f5efd),_0x110527=notificationLookupCommand(_0x1f5efd[_0x3f63db(0xe9)],_0x1da5b7['document'][_0x3f63db(0x100)]);return asDryRunResult({'operation':_0x3f63db(0xf5),'selector':{'appCode':_0x1f5efd[_0x3f63db(0xe9)],'configName':_0x1da5b7['document']['configName'],'channelType':_0x1da5b7[_0x3f63db(0xfb)][_0x3f63db(0x100)]},'before':null,'after':_0x1da5b7[_0x3f63db(0x108)],'dryRun':!![],'backend':{'method':_0x3f63db(0xe7),'path':CREATE_PATH},'warnings':[],'verification':{'status':_0x3f63db(0x108),'lookupCommand':_0x110527}},{'method':'POST','url':CREATE_PATH});},async 'execute'(_0x5678f1){const _0x46e190=a181_0x39169c,_0x26c44c=await prepareCreate(_0x5678f1),_0x30aef3=notificationLookupCommand(_0x5678f1[_0x46e190(0xe9)],_0x26c44c[_0x46e190(0xfb)][_0x46e190(0x100)]);let _0x269ac6;try{_0x269ac6=await createNotificationChannelConfig(_0x26c44c[_0x46e190(0x105)]);}catch(_0x5e9af2){if(isPlatformTransportFailure(_0x5e9af2))throw notificationError(_0x46e190(0xf8),_0x46e190(0xf3),_0x46e190(0xf9)+_0x30aef3+_0x46e190(0xec));throw safeApiFailure(_0x46e190(0xf5),_0x46e190(0xfe),_0x46e190(0xf9)+_0x30aef3+_0x46e190(0x107));}if(!Number[_0x46e190(0x102)](_0x269ac6)||_0x269ac6<=0x0)throw notificationError('notification_config_create_outcome_unknown',_0x46e190(0xff),'Inspect\x20with\x20'+_0x30aef3+_0x46e190(0xec));let _0x540e7d;try{const _0x246381=await getNotificationChannelConfig(_0x269ac6,_0x5678f1['appCode']);_0x540e7d=normalizeExactNotificationConfig(_0x246381,_0x269ac6,_0x5678f1[_0x46e190(0xe9)]);}catch{throw safeApiFailure(_0x46e190(0xf5),_0x46e190(0xed),'Inspect\x20with\x20'+_0x30aef3+';\x20do\x20not\x20resubmit\x20automatically.');}return{'ok':!![],'data':{'operation':_0x46e190(0xf5),'selector':{'appCode':_0x540e7d[_0x46e190(0xe9)],'id':_0x540e7d['id'],'configCode':_0x540e7d['configCode'],'configName':_0x540e7d['configName'],'channelType':_0x540e7d[_0x46e190(0x100)]},'before':null,'after':projectNotificationConfig(_0x540e7d),'dryRun':![],'backend':{'method':_0x46e190(0xe7),'path':CREATE_PATH},'warnings':[],'verification':{'status':_0x46e190(0xe5),'lookupCommand':_0x30aef3}},'message':_0x46e190(0xf0)+_0x540e7d['id']};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a182_0xe56ccd=a182_0x535b;(function(_0x1cfdb3,_0x3091de){const _0x1ff7db=a182_0x535b,_0x40ca2d=_0x1cfdb3();while(!![]){try{const _0x4be6f8=-parseInt(_0x1ff7db(0x1df))/0x1+parseInt(_0x1ff7db(0x1e5))/0x2*(-parseInt(_0x1ff7db(0x1eb))/0x3)+-parseInt(_0x1ff7db(0x1f0))/0x4+parseInt(_0x1ff7db(0x1da))/0x5+-parseInt(_0x1ff7db(0x1d8))/0x6+parseInt(_0x1ff7db(0x1dd))/0x7*(-parseInt(_0x1ff7db(0x1e0))/0x8)+parseInt(_0x1ff7db(0x1ed))/0x9*(parseInt(_0x1ff7db(0x1f5))/0xa);if(_0x4be6f8===_0x3091de)break;else _0x40ca2d['push'](_0x40ca2d['shift']());}catch(_0xdc1397){_0x40ca2d['push'](_0x40ca2d['shift']());}}}(a182_0x3c7f,0xc29e4));import{asDryRunResult}from'../../commands/common/dry-run.js';import{deleteNotificationChannelConfig,isPlatformTransportFailure,listNotificationChannelConfigs}from'../../core/api-client.js';import{notificationError,notificationLookupCommand,notificationSelector,NOTIFICATION_APP_FLAG,NOTIFICATION_ID_FLAG,projectNotificationConfig,readNotificationId,requireNotificationExplicitYes,requireExactNotificationConfig,safeApiFailure,validateNotificationDeleteReadback}from'../../commands/notification/shared.js';function a182_0x535b(_0x4c1a9b,_0xd81587){_0x4c1a9b=_0x4c1a9b-0x1d8;const _0x3c7f12=a182_0x3c7f();let _0x535b70=_0x3c7f12[_0x4c1a9b];return _0x535b70;}const DELETE_PATH=a182_0xe56ccd(0x1f1),REFERENCE_WARNING=a182_0xe56ccd(0x1e7);async function prepareDelete(_0x4778e6){const _0xad1be5=a182_0xe56ccd,_0x35dda6=readNotificationId(_0x4778e6),_0x12833b=await requireExactNotificationConfig(_0x4778e6[_0xad1be5(0x1f6)],_0x35dda6,_0xad1be5(0x1e6));return{'id':_0x35dda6,'before':_0x12833b};}export const notificationConfigDelete={'service':'notification','command':a182_0xe56ccd(0x1de),'description':a182_0xe56ccd(0x1ef),'risk':a182_0xe56ccd(0x1f2),'requiresAppCode':!![],'structuredErrors':!![],'flags':[NOTIFICATION_ID_FLAG,NOTIFICATION_APP_FLAG],async 'validate'(_0x412c0a){readNotificationId(_0x412c0a),requireNotificationExplicitYes(_0x412c0a);},async 'dryRun'(_0x1d1833){const _0x370a13=a182_0xe56ccd,_0x550aa3=await prepareDelete(_0x1d1833),_0x59bab6=notificationLookupCommand(_0x1d1833[_0x370a13(0x1f6)],_0x550aa3['before'][_0x370a13(0x1e2)]);return asDryRunResult({'operation':'delete','selector':notificationSelector(_0x550aa3[_0x370a13(0x1dc)]),'before':projectNotificationConfig(_0x550aa3['before']),'after':null,'dryRun':!![],'backend':{'method':_0x370a13(0x1f3),'path':DELETE_PATH},'warnings':[REFERENCE_WARNING],'verification':{'status':_0x370a13(0x1f4),'lookupCommand':_0x59bab6}},{'method':_0x370a13(0x1f3),'url':DELETE_PATH});},async 'execute'(_0x8e4bdc){const _0x46315c=a182_0xe56ccd;requireNotificationExplicitYes(_0x8e4bdc);const _0x194cda=await prepareDelete(_0x8e4bdc),_0x2aad13=notificationLookupCommand(_0x8e4bdc[_0x46315c(0x1f6)],_0x194cda[_0x46315c(0x1dc)][_0x46315c(0x1e2)]);let _0x32b70d=![];try{await deleteNotificationChannelConfig(_0x194cda['id'],_0x8e4bdc[_0x46315c(0x1f6)]);}catch(_0x2f7141){if(!isPlatformTransportFailure(_0x2f7141))throw safeApiFailure('delete',_0x46315c(0x1e9),_0x46315c(0x1d9)+_0x2aad13+';\x20no\x20automatic\x20retry\x20was\x20attempted.');_0x32b70d=!![];}let _0x25b5c3;try{_0x25b5c3=await listNotificationChannelConfigs(_0x8e4bdc['appCode'],_0x194cda[_0x46315c(0x1dc)]['channelType']),validateNotificationDeleteReadback(_0x25b5c3,_0x8e4bdc[_0x46315c(0x1f6)],_0x194cda[_0x46315c(0x1dc)][_0x46315c(0x1e2)]);}catch{throw notificationError(_0x32b70d?_0x46315c(0x1e1):'notification_config_delete_verification_unavailable',_0x46315c(0x1e4)+_0x194cda['id']+_0x46315c(0x1ee),_0x46315c(0x1d9)+_0x2aad13+_0x46315c(0x1e8));}if(_0x25b5c3[_0x46315c(0x1db)](_0x4c9517=>_0x4c9517['id']===_0x194cda['id']))throw notificationError(_0x32b70d?_0x46315c(0x1e1):'notification_config_delete_verification_failed',_0x46315c(0x1e4)+_0x194cda['id']+'\x20remains\x20present\x20after\x20delete.',_0x46315c(0x1d9)+_0x2aad13+_0x46315c(0x1e8));const _0x5f5c8f=[REFERENCE_WARNING];return _0x32b70d&&_0x5f5c8f[_0x46315c(0x1e3)]('Delete\x20response\x20was\x20unavailable;\x20list\x20readback\x20proved\x20ID\x20absence\x20without\x20resubmitting.'),{'ok':!![],'data':{'operation':_0x46315c(0x1e6),'selector':notificationSelector(_0x194cda['before']),'before':projectNotificationConfig(_0x194cda['before']),'after':null,'dryRun':![],'backend':{'method':'POST','path':DELETE_PATH},'warnings':_0x5f5c8f,'verification':{'status':_0x46315c(0x1ec),'absenceConfirmed':!![],'recoveredAfterUnknownResponse':_0x32b70d,'lookupCommand':_0x2aad13}},'message':_0x46315c(0x1ea)+_0x194cda['id']};}};function a182_0x3c7f(){const _0x1ca190=['verified','75024nozbeC','\x20delete\x20could\x20not\x20be\x20verified.','Delete\x20an\x20app-level\x20notification\x20config\x20after\x20exact\x20preflight','2733936IZSkRA','/notification/channel-config/delete','high-risk-write','POST','planned','6260MHbuiP','appCode','4982862bveDsc','Inspect\x20with\x20','132835VrJhFJ','some','before','8551823lWHhsP','config-delete','961713shsqFm','8pLLhcp','notification_config_delete_outcome_unknown','channelType','unshift','Notification\x20config\x20','31266ZgqCcy','delete','Deleting\x20this\x20app-level\x20config\x20may\x20make\x20dataset-level\x20channels\x20that\x20reference\x20it\x20unavailable;\x20dataset\x20references\x20were\x20not\x20verified\x20by\x20the\x20CLI.',';\x20do\x20not\x20resubmit\x20automatically.','mutation','Deleted\x20notification\x20config\x20','144xXXNQh'];a182_0x3c7f=function(){return _0x1ca190;};return a182_0x3c7f();}
|