@vectoriox/iox-ui 5.197.0 → 5.199.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (73) hide show
  1. package/actions-core/index.d.ts +7 -1
  2. package/composite-core/index.d.ts +16 -2
  3. package/data-core/index.d.ts +11 -3
  4. package/design-core/index.d.ts +185 -28
  5. package/fesm2022/vectoriox-iox-ui-actions-core.mjs +6 -1
  6. package/fesm2022/vectoriox-iox-ui-actions-core.mjs.map +1 -1
  7. package/fesm2022/vectoriox-iox-ui-composite-core.mjs +34 -2
  8. package/fesm2022/vectoriox-iox-ui-composite-core.mjs.map +1 -1
  9. package/fesm2022/vectoriox-iox-ui-data-core.mjs +30 -4
  10. package/fesm2022/vectoriox-iox-ui-data-core.mjs.map +1 -1
  11. package/fesm2022/vectoriox-iox-ui-design-core.mjs +323 -72
  12. package/fesm2022/vectoriox-iox-ui-design-core.mjs.map +1 -1
  13. package/fesm2022/vectoriox-iox-ui-generation-core.mjs +17351 -15175
  14. package/fesm2022/vectoriox-iox-ui-generation-core.mjs.map +1 -1
  15. package/fesm2022/vectoriox-iox-ui-harness-core.mjs +243 -38
  16. package/fesm2022/vectoriox-iox-ui-harness-core.mjs.map +1 -1
  17. package/fesm2022/vectoriox-iox-ui.mjs +2 -2
  18. package/fesm2022/vectoriox-iox-ui.mjs.map +1 -1
  19. package/generation-core/index.d.ts +1703 -264
  20. package/harness-core/index.d.ts +93 -6
  21. package/package.json +1 -1
  22. package/src/actions-core/element-actions.ts +6 -0
  23. package/src/composite-core/header.ts +34 -1
  24. package/src/data-core/placeholder-rows.ts +29 -4
  25. package/src/design-core/brand.ts +58 -5
  26. package/src/design-core/contrast-audit.ts +49 -22
  27. package/src/design-core/design-apply.ts +34 -3
  28. package/src/design-core/flavor-fixtures.generated.ts +123 -123
  29. package/src/design-core/flavor-spec.generated.ts +44 -4
  30. package/src/design-core/flavor-tokens.ts +1 -1
  31. package/src/design-core/header-behaviour.ts +72 -13
  32. package/src/design-core/menu-look.ts +23 -0
  33. package/src/design-core/motion-language.ts +5 -14
  34. package/src/design-core/node-classes.ts +39 -0
  35. package/src/design-core/preloader.ts +4 -5
  36. package/src/generation-core/body-mix.ts +40 -102
  37. package/src/generation-core/check-free.ts +22 -11
  38. package/src/generation-core/check-layout.ts +10 -4
  39. package/src/generation-core/check-list.ts +3 -25
  40. package/src/generation-core/colour-mix.ts +296 -0
  41. package/src/generation-core/compose-free.ts +47 -20
  42. package/src/generation-core/compose-site.ts +259 -59
  43. package/src/generation-core/footer-mix.ts +258 -64
  44. package/src/generation-core/free-fallback.ts +6 -4
  45. package/src/generation-core/free-opening.ts +13 -2
  46. package/src/generation-core/free-parts.ts +87 -0
  47. package/src/generation-core/free-slot-words.ts +30 -0
  48. package/src/generation-core/free-wire.ts +8 -0
  49. package/src/generation-core/generation-tier.ts +6 -17
  50. package/src/generation-core/header-mix.ts +73 -3
  51. package/src/generation-core/layout-drawers.ts +3 -2
  52. package/src/generation-core/layout-wire.ts +10 -16
  53. package/src/generation-core/legal.ts +24 -0
  54. package/src/generation-core/list-panel.ts +3 -3
  55. package/src/generation-core/list-table.ts +5 -14
  56. package/src/generation-core/list-words.ts +2 -1
  57. package/src/generation-core/menu-shelves.ts +138 -0
  58. package/src/generation-core/nav-shape.ts +138 -15
  59. package/src/generation-core/node-baselines.generated.ts +1 -0
  60. package/src/generation-core/opening-mix.ts +7 -34
  61. package/src/generation-core/part-tier.ts +14 -0
  62. package/src/generation-core/patterns.ts +7 -0
  63. package/src/generation-core/plan-wire.ts +32 -43
  64. package/src/generation-core/public-api.ts +3 -0
  65. package/src/generation-core/site-build-run.ts +8 -0
  66. package/src/generation-core/site-plan.model.ts +3 -0
  67. package/src/generation-core/site-spec.generated.ts +1383 -189
  68. package/src/generation-core/validate-site-plan.ts +6 -5
  69. package/src/harness-core/business-types.ts +4 -0
  70. package/src/harness-core/harness-spec.generated.ts +189 -30
  71. package/src/harness-core/popup-stance.ts +56 -3
  72. package/src/harness-core/run-compose-context.ts +25 -5
  73. package/styles/iox-design.css +162 -3
@@ -1 +1 @@
1
- {"version":3,"file":"vectoriox-iox-ui-actions-core.mjs","sources":["../../../projects/iox-ui/src/actions-core/action.model.ts","../../../projects/iox-ui/src/actions-core/availability.ts","../../../projects/iox-ui/src/actions-core/dialog-opener.ts","../../../projects/iox-ui/src/actions-core/popover-opener.ts","../../../projects/iox-ui/src/actions-core/element-actions.ts","../../../projects/iox-ui/src/actions-core/dialog-motion.ts","../../../projects/iox-ui/src/actions-core/reveal-origin.ts","../../../projects/iox-ui/src/actions-core/popup-arrival.ts","../../../projects/iox-ui/src/actions-core/public-api.ts","../../../projects/iox-ui/src/actions-core/vectoriox-iox-ui-actions-core.ts"],"sourcesContent":["/**\n * The ONE descriptor shape for everything an author can put in an ordered action list —\n * a form's after-submit steps today, element behaviour actions (A1) next. Promoted out of\n * `forms-core` because a button action importing from the forms module would be a lie; the\n * forms catalog lives here now and `forms-core` re-exports it unchanged.\n * See iox-ai-guidance `architecture/builder/actions-framework-plan.md` §4 (A0).\n */\n\n/** How a step executes — decides which editor fields appear (timing only for `animated`). */\nexport type ActionKind = 'animated' | 'instant' | 'server';\n\n/** Picker grouping. Flat lists die at ~10 entries; the group is data, never a second list. */\nexport type ActionGroup =\n | 'motion' | 'visibility' | 'navigate' | 'dialog' | 'popover' | 'notice' | 'item' | 'form' | 'data' | 'consent' | 'shop' | 'account' | 'service';\n\n/**\n * What a step does inside the live builder canvas (the canvas RUNS interactions):\n * `run` for real (open the dialog), `simulate` announce-only (navigate), `inert` with a\n * \"runs on the live site\" note (anything server-side or costing money).\n */\nexport type BuilderBehaviour = 'run' | 'simulate' | 'inert';\n\n/** A configurable parameter, same shape ComponentMethodDef.params already uses. */\nexport interface ActionParamSpec {\n name: string;\n type: 'number' | 'string' | 'boolean' | 'page' | 'node' | 'form';\n label: string;\n /** Closed value set — the editor renders a select instead of a free text input. */\n options?: readonly { value: string; labelKey: string }[];\n}\n\n/** Does this action point at another node — and may it be any node, or only certain types / composite roles? */\nexport interface ActionTargetSpec {\n required: boolean;\n types?: string[];\n /** Only nodes playing one of these composite roles (`openItem` targets an accordion item or a disclosure). */\n roles?: string[];\n}\n\n/**\n * One row of an action catalog. Every field beyond `type`/`labelKey` is optional so the\n * pre-A0 forms descriptors remain valid verbatim.\n */\nexport interface ActionDescriptor {\n type: string;\n labelKey: string;\n kind?: ActionKind;\n group?: ActionGroup;\n builderBehaviour?: BuilderBehaviour;\n target?: ActionTargetSpec;\n params?: ActionParamSpec[];\n /** The connector that must be configured & healthy before this action is offerable. */\n connector?: string;\n /** Plan-entitlement key (AI plan D5). Absent = never gated by plan. */\n entitlement?: string;\n /** Always present in the list and not removable (forms: `store`). */\n locked?: boolean;\n /** Not offered yet — shown greyed with a \"coming soon\" note, so the roadmap is visible. */\n planned?: boolean;\n /** The only triggers it is offered under (premium M6): a count waits for its number to be seen, a depth and a reading\n * bar are the scroll's. Absent = every trigger. `actionOfferedUnder` reads it; so do the runtimes. */\n triggers?: ReadonlyArray<string>;\n}\n\n/**\n * The FORM after-submit catalog (moved verbatim from forms-core; `forms-core` re-exports it\n * under its old name `ACTION_DESCRIPTORS`). A1's element catalog is a SEPARATE constant —\n * the two lists share this shape, never one bucket.\n */\nexport const FORM_SUBMIT_ACTION_DESCRIPTORS: readonly ActionDescriptor[] = Object.freeze([\n { type: 'store', labelKey: 'forms.actions.store', locked: true, kind: 'server', group: 'data', builderBehaviour: 'inert' },\n { type: 'email', labelKey: 'forms.actions.email', kind: 'server', group: 'service', builderBehaviour: 'inert', connector: 'mailer' },\n { type: 'redirect', labelKey: 'forms.actions.redirect', kind: 'instant', group: 'navigate', builderBehaviour: 'simulate' },\n { type: 'createItem', labelKey: 'forms.actions.createItem', planned: true, kind: 'server', group: 'data', builderBehaviour: 'inert' },\n { type: 'webhook', labelKey: 'forms.actions.webhook', planned: true, kind: 'server', group: 'service', builderBehaviour: 'inert' },\n { type: 'autoReply', labelKey: 'forms.actions.autoReply', planned: true, kind: 'server', group: 'service', builderBehaviour: 'inert', connector: 'mailer' },\n]);\n\n/** Steps that can still be added to a list — each at most once, and never a planned one. */\nexport function addableActions(\n existing: readonly { type: string }[] = [],\n catalog: readonly ActionDescriptor[] = FORM_SUBMIT_ACTION_DESCRIPTORS,\n): ActionDescriptor[] {\n const used = new Set(existing.map(action => action.type));\n return catalog.filter(action => !action.locked && !action.planned && !used.has(action.type));\n}\n","import { ActionDescriptor } from './action.model';\n\n/**\n * K4 of the actions plan: four different reasons a catalog row is unavailable, four different\n * sentences — *coming soon* · *always on* · *connect X first* · *upgrade*. One resolver feeds\n * the picker AND the AI composer's validation, so they can never disagree.\n */\nexport type ActionAvailabilityState =\n | 'available'\n | 'planned' // not built yet — greyed, \"coming soon\"\n | 'locked' // always present, not addable/removable\n | 'connector-missing' // the named connector is not configured/healthy\n | 'entitlement-missing'; // the plan does not include it\n\nexport interface ActionAvailability {\n state: ActionAvailabilityState;\n /** Set when state is connector-missing / entitlement-missing — what to name in the message. */\n connector?: string;\n entitlement?: string;\n}\n\nexport interface ActionAvailabilityContext {\n /** Connector health by name. An absent map, or an absent key, means \"not known\" → allowed. */\n connectors?: Partial<Record<string, boolean>>;\n /**\n * Plan entitlements by key. `Plan.entitlements` does not exist yet anywhere (the known gap),\n * so an ABSENT map means \"no gating\" and every entitlement passes — the hook is live the day\n * the control plane starts sending them.\n */\n entitlements?: Partial<Record<string, boolean>>;\n}\n\nexport function resolveActionAvailability(\n descriptor: ActionDescriptor,\n ctx: ActionAvailabilityContext = {},\n): ActionAvailability {\n if (descriptor.planned) return { state: 'planned' };\n if (descriptor.locked) return { state: 'locked' };\n if (descriptor.connector && ctx.connectors && ctx.connectors[descriptor.connector] === false) {\n return { state: 'connector-missing', connector: descriptor.connector };\n }\n if (descriptor.entitlement && ctx.entitlements && ctx.entitlements[descriptor.entitlement] === false) {\n return { state: 'entitlement-missing', entitlement: descriptor.entitlement };\n }\n return { state: 'available' };\n}\n","/**\n * What an element that OPENS a dialog says about itself (CC1, N3 — APG disclosure/dialog pattern).\n * The element whose click runs `openDialog` / `toggleDialog` (a menu button, a bottom bar's More) is\n * announced as one: `aria-haspopup=\"dialog\"`, `aria-controls` = the dialog's DOM id, and\n * `aria-expanded` — `false` in the server render, kept in step on open and close by each runtime.\n *\n * ONE decision for every renderer (the builder canvas, the engine's component path and its string\n * path), framework-free so iox-cms can read it too. The dialog's DOM id comes from `dialogDomId`, the\n * one place that names it, so an opener and its dialog can never disagree.\n */\n\n/** The interaction trigger that opens a dialog from an element. */\nexport const DIALOG_OPENER_TRIGGER = 'click';\n\n/** The actions that make an element a dialog OPENER (close-only actions do not). */\nexport const DIALOG_OPENER_ACTION_TYPES: ReadonlySet<string> = new Set(['openDialog', 'toggleDialog', 'openConsentPreferences']);\n\n/** Every action that opens, closes or toggles a dialog — what a runtime watches to sync `aria-expanded`. */\nexport const DIALOG_ACTION_TYPE_SET: ReadonlySet<string> = new Set(['openDialog', 'closeDialog', 'toggleDialog']);\n\n/** The selector of every dialog a renderer emits (the live `<dialog data-iox-dialog>`). */\nexport const DIALOG_SELECTOR = 'dialog[data-iox-dialog]';\n\nconst DIALOG_ID_PREFIX = 'iox-dialog-';\n\n/** The DOM id of a Dialog node's `<dialog>` — what an opener's `aria-controls` names. */\nexport function dialogDomId(nodeId: string): string {\n return `${DIALOG_ID_PREFIX}${nodeId}`;\n}\n\n/** The node id a dialog DOM id names, or null. */\nexport function nodeIdOfDialogDomId(domId: string | null | undefined): string | null {\n return domId && domId.startsWith(DIALOG_ID_PREFIX) ? domId.slice(DIALOG_ID_PREFIX.length) : null;\n}\n\nexport enum OpenerAttribute {\n HasPopup = 'aria-haspopup',\n Expanded = 'aria-expanded',\n Controls = 'aria-controls',\n}\n\nexport interface OpenerActionLike {\n type?: string;\n target?: string;\n disabled?: boolean;\n}\n\nexport interface OpenerInteractionLike {\n trigger?: string;\n actions?: ReadonlyArray<OpenerActionLike> | null;\n}\n\nexport interface OpenerNodeLike {\n interactions?: ReadonlyArray<OpenerInteractionLike> | null;\n}\n\nconst SELF = 'self';\n\n/** The node id the element's click opens through one of `openerTypes` (its first enabled such action), or null —\n * the ONE reading every opener kind shares (a dialog's, a popover's). */\nexport function openedTargetId(node: OpenerNodeLike | null | undefined, openerTypes: ReadonlySet<string>): string | null {\n for (const ix of node?.interactions ?? []) {\n if (ix?.trigger !== DIALOG_OPENER_TRIGGER) continue;\n for (const action of ix.actions ?? []) {\n if (!action || action.disabled === true || !openerTypes.has(String(action.type))) continue;\n if (action.target && action.target !== SELF) return action.target;\n }\n }\n return null;\n}\n\n/** The Dialog node id the element's click opens (its first enabled opener action), or null. */\nexport function openedDialogId(node: OpenerNodeLike | null | undefined): string | null {\n return openedTargetId(node, DIALOG_OPENER_ACTION_TYPES);\n}\n\n/**\n * The opener attributes for a node: `{}` when its click opens no dialog, else\n * `aria-haspopup=\"dialog\"`, `aria-controls=\"iox-dialog-<id>\"` and `aria-expanded` (`false` unless\n * `open` says the dialog is open right now).\n */\nexport function dialogOpenerAttributes(node: OpenerNodeLike | null | undefined, open = false): Record<string, string> {\n const dialogId = openedDialogId(node);\n if (!dialogId) return {};\n return {\n [OpenerAttribute.HasPopup]: 'dialog',\n [OpenerAttribute.Controls]: dialogDomId(dialogId),\n [OpenerAttribute.Expanded]: open ? 'true' : 'false',\n };\n}\n\n/** The selector of every opener of one dialog (by its DOM id) — what a runtime updates on open/close. */\nexport function dialogOpenersSelector(dialogDomIdValue: string): string {\n return `[${OpenerAttribute.Controls}=\"${dialogDomIdValue}\"][${OpenerAttribute.HasPopup}=\"dialog\"]`;\n}\n","import { OpenerAttribute, OpenerNodeLike, openedTargetId } from './dialog-opener';\n\n/**\n * What an element that OPENS a popover says about itself (premium components M5, N4 — the APG disclosure pattern over a\n * non-modal dialog): `aria-haspopup=\"dialog\"`, `aria-controls` = the popover's DOM id, and `aria-expanded` — `false` in\n * the server render, kept in step by the runtime. ONE decision for every renderer, read the way a dialog opener is\n * (`openedTargetId`); the popover's DOM id comes from `popoverDomId`, the one place that names it.\n */\n\n/** The Popover node type. */\nexport const POPOVER_NODE_TYPE = 'Popover';\n\n/** The actions that open a popover (close-only actions do not make an opener). */\nexport const POPOVER_OPENER_ACTION_TYPES: ReadonlySet<string> = new Set(['openPopover', 'togglePopover']);\n\n/** Every action that opens, closes or toggles a popover — what the engines dispatch. */\nexport const POPOVER_ACTION_TYPE_SET: ReadonlySet<string> = new Set(['openPopover', 'closePopover', 'togglePopover']);\n\nconst POPOVER_ID_PREFIX = 'iox-popover-';\n\n/** The DOM id of a Popover node's panel — what an opener's `aria-controls` names. */\nexport function popoverDomId(nodeId: string): string {\n return `${POPOVER_ID_PREFIX}${nodeId}`;\n}\n\n/** The node id a popover DOM id names, or null. */\nexport function nodeIdOfPopoverDomId(domId: string | null | undefined): string | null {\n return domId && domId.startsWith(POPOVER_ID_PREFIX) ? domId.slice(POPOVER_ID_PREFIX.length) : null;\n}\n\n/** The Popover node id the element's click opens, or null. */\nexport function openedPopoverId(node: OpenerNodeLike | null | undefined): string | null {\n return openedTargetId(node, POPOVER_OPENER_ACTION_TYPES);\n}\n\n/** The opener attributes for a node: `{}` when its click opens no popover. */\nexport function popoverOpenerAttributes(node: OpenerNodeLike | null | undefined, open = false): Record<string, string> {\n const popoverId = openedPopoverId(node);\n if (!popoverId) return {};\n return {\n [OpenerAttribute.HasPopup]: 'dialog',\n [OpenerAttribute.Controls]: popoverDomId(popoverId),\n [OpenerAttribute.Expanded]: open ? 'true' : 'false',\n };\n}\n\n/** The selector of every opener of one popover (by its DOM id). */\nexport function popoverOpenersSelector(popoverDomIdValue: string): string {\n return `[${OpenerAttribute.Controls}=\"${popoverDomIdValue}\"]`;\n}\n","import { AccordionRole, CompositeItemAction, DisclosureRole, SegmentedRole, SLIDE_TO_ROW, TabsRole } from '@vectoriox/iox-ui/composite-core';\n\nimport { ActionDescriptor } from './action.model';\nimport { POPOVER_NODE_TYPE } from './popover-opener';\n\n/** The items an item action may target: an accordion's item, or a disclosure (its own one item). */\nconst ITEM_TARGET_ROLES = [AccordionRole.Item, DisclosureRole.Disclosure];\n/** Open also takes a TAB (CC4a) and a Segmented control's OPTION (CC4b, \"Turn on\"): it turns it on. Both always show\n * one, so Close and Toggle never aim at either. */\nconst OPEN_TARGET_ROLES = [...ITEM_TARGET_ROLES, TabsRole.Trigger, SegmentedRole.Option];\n\n/**\n * The ELEMENT action catalog (actions plan A1) — what a node can DO, as data. One list feeds the\n * grouped picker, the two interaction engines, and the AI composer's validation (§9: the model\n * picks actions BY NAME from this catalog and can never invent behaviour).\n *\n * Shipped rows (motion/visibility/context/swiper) are listed so the catalog is the WHOLE truth;\n * their `kind`/`builderBehaviour` make the long-standing implicit rules explicit — the canvas is\n * a live runtime (feedback_builder_live_runtime), navigate must SIMULATE, services are INERT.\n * Selling (E1c) and a buyer's account (E3a) went live once their subsystems existed; until then they shipped greyed with\n * the honest reason (D-A5).\n */\n/** The trigger whose actions the scroll plays (premium M6, N7). */\nexport const SCROLL_PROGRESS_TRIGGER = 'scrollProgress';\nconst SCROLL_ONLY: ReadonlyArray<string> = Object.freeze([SCROLL_PROGRESS_TRIGGER]);\n\n/**\n * The triggers a count waits on (premium M6, N5, D4): it plays the first time its number is seen, so only a trigger that\n * fires on its own — when it comes into view, or with the page in the first screen behind an entrance. Under a click or a\n * hover it would stand at its start value until pressed; it is never armed there, and never offered.\n */\n/** The plan feature selling sits behind (C-D18: the control plane's `features.shop`). */\nexport const SHOP_ENTITLEMENT = 'shop';\n\nexport const COUNT_UP_TRIGGERS: ReadonlyArray<string> = Object.freeze(['viewportEnter', 'pageLoad']);\n\n/**\n * AW9 (award plan \"Reddottours\", the dissolve): an element grows and fades as the scroll carries its range — `params.grow`\n * (its last scale, > 1), `params.hold` (it stays where it stands on screen while its range passes: the opening's picture,\n * walked through). Played by the scroll only; transform and opacity only (no blur — RT-D3).\n */\nexport const DISSOLVE_ACTION = 'dissolve';\n\nexport const ELEMENT_ACTION_DESCRIPTORS: readonly ActionDescriptor[] = Object.freeze([\n // ── Motion (shipped WAAPI actions — timing row applies) ──────────────────\n { type: 'fadeIn', labelKey: 'builder.actions.fadeIn', kind: 'animated', group: 'motion', builderBehaviour: 'run' },\n { type: 'fadeOut', labelKey: 'builder.actions.fadeOut', kind: 'animated', group: 'motion', builderBehaviour: 'run' },\n { type: 'moveUp', labelKey: 'builder.actions.moveUp', kind: 'animated', group: 'motion', builderBehaviour: 'run' },\n { type: 'moveDown', labelKey: 'builder.actions.moveDown', kind: 'animated', group: 'motion', builderBehaviour: 'run' },\n { type: 'moveLeft', labelKey: 'builder.actions.moveLeft', kind: 'animated', group: 'motion', builderBehaviour: 'run' },\n { type: 'moveRight',labelKey: 'builder.actions.moveRight',kind: 'animated', group: 'motion', builderBehaviour: 'run' },\n { type: 'scaleIn', labelKey: 'builder.actions.scaleIn', kind: 'animated', group: 'motion', builderBehaviour: 'run' },\n { type: 'scaleOut', labelKey: 'builder.actions.scaleOut', kind: 'animated', group: 'motion', builderBehaviour: 'run' },\n { type: 'rotate', labelKey: 'builder.actions.rotate', kind: 'animated', group: 'motion', builderBehaviour: 'run',\n params: [{ name: 'degrees', type: 'number', label: 'Degrees' }] },\n // SC3: the reveals. Each opens from where the author says and rests as the element itself.\n { type: 'clipReveal', labelKey: 'builder.actions.clipReveal', kind: 'animated', group: 'motion', builderBehaviour: 'run',\n params: [{ name: 'from', type: 'string', label: 'builder.actions.params.revealFrom', options: [\n { value: 'bottom', labelKey: 'builder.scene.from.bottom' },\n { value: 'top', labelKey: 'builder.scene.from.top' },\n { value: 'start', labelKey: 'builder.scene.from.start' },\n { value: 'end', labelKey: 'builder.scene.from.end' },\n { value: 'centre', labelKey: 'builder.scene.from.centre' },\n ] }] },\n { type: 'zoomOut', labelKey: 'builder.actions.zoomOut', kind: 'animated', group: 'motion', builderBehaviour: 'run' },\n // AW10 (AW10-D1…D4): letter by letter is a third way it comes in (a display line; joined scripts and long lines fall to\n // words, said in the panel); the Look is how each piece arrives — Rise travels up out of its mask, Light comes up from\n // dim and nothing travels (the Scene words track's dim).\n { type: 'revealText', labelKey: 'builder.actions.revealText', kind: 'animated', group: 'motion', builderBehaviour: 'run',\n params: [\n { name: 'by', type: 'string', label: 'builder.actions.params.revealBy', options: [\n { value: 'line', labelKey: 'builder.actions.params.byLine' },\n { value: 'word', labelKey: 'builder.actions.params.byWord' },\n { value: 'letter', labelKey: 'builder.actions.params.byLetter' },\n ] },\n { name: 'look', type: 'string', label: 'builder.actions.params.revealLook', options: [\n { value: 'rise', labelKey: 'builder.actions.params.lookRise' },\n { value: 'light', labelKey: 'builder.actions.params.lookLight' },\n ] },\n ] },\n // AW3 (Motion board, E5): a heading comes from a small blur into focus — the look's `blur-in` move; reduced → the fade.\n { type: 'blurIn', labelKey: 'builder.actions.blurIn', kind: 'animated', group: 'motion', builderBehaviour: 'run' },\n // Premium M6 (N5): a number that counts up ONCE, the first time it comes into view (D4); its final value is always the\n // node's own text, so it is what the page sends. Offered only where it can wait unseen for that moment.\n { type: 'countUp', labelKey: 'builder.actions.countUp', kind: 'animated', group: 'motion', builderBehaviour: 'run', triggers: COUNT_UP_TRIGGERS,\n params: [{ name: 'from', type: 'number', label: 'builder.actions.params.countFrom' }] },\n // Premium M6 (N7): what the SCROLL plays — a layer at a depth (round three's trio) and a reading bar. Offered under a\n // `scrollProgress` trigger only; the scroll also plays every entrance above.\n { type: 'parallax', labelKey: 'builder.actions.parallax', kind: 'animated', group: 'motion', builderBehaviour: 'run', triggers: SCROLL_ONLY,\n params: [{ name: 'depth', type: 'string', label: 'builder.actions.params.depth', options: [\n { value: 'back', labelKey: 'builder.actions.params.depthBack' },\n { value: 'front', labelKey: 'builder.actions.params.depthFront' },\n ] }] },\n { type: 'progressBar', labelKey: 'builder.actions.progressBar', kind: 'animated', group: 'motion', builderBehaviour: 'run', triggers: SCROLL_ONLY },\n // AW9: the opening's dissolve — what the scroll grows and fades as the first screen leaves (OPENING `motion.dissolve`).\n { type: DISSOLVE_ACTION, labelKey: 'builder.actions.dissolve', kind: 'animated', group: 'motion', builderBehaviour: 'run', triggers: SCROLL_ONLY },\n\n // ── Visibility (shipped) ─────────────────────────────────────────────────\n { type: 'show', labelKey: 'builder.actions.show', kind: 'instant', group: 'visibility', builderBehaviour: 'run' },\n { type: 'hide', labelKey: 'builder.actions.hide', kind: 'instant', group: 'visibility', builderBehaviour: 'run' },\n { type: 'toggleVisibility', labelKey: 'builder.actions.toggleVisibility', kind: 'instant', group: 'visibility', builderBehaviour: 'run' },\n\n // ── Navigate (A1 — Tier A) ───────────────────────────────────────────────\n { type: 'navigate', labelKey: 'builder.actions.navigate', kind: 'instant', group: 'navigate', builderBehaviour: 'simulate',\n params: [\n { name: 'navigateTo', type: 'string', label: 'Destination' }, // 'page' | 'url' | 'back'\n { name: 'page', type: 'page', label: 'Page' },\n { name: 'url', type: 'string', label: 'URL' },\n ] },\n { type: 'scrollTo', labelKey: 'builder.actions.scrollTo', kind: 'instant', group: 'navigate', builderBehaviour: 'run',\n target: { required: false } },\n\n // ── Dialog (A1 — needs the Dialog component, A1b) ───────────────────────\n // CC3 (board 6): \"Open at the clicked item\" — `slideTo: 'row'` opens a lightbox at the clicked thumbnail's slide.\n { type: 'openDialog', labelKey: 'builder.actions.openDialog', kind: 'instant', group: 'dialog', builderBehaviour: 'run',\n target: { required: true, types: ['Dialog'] },\n params: [{ name: 'slideTo', type: 'string', label: 'builder.actions.params.slideTo', options: [{ value: SLIDE_TO_ROW, labelKey: 'builder.actions.params.slideToRow' }] }] },\n { type: 'closeDialog', labelKey: 'builder.actions.closeDialog', kind: 'instant', group: 'dialog', builderBehaviour: 'run',\n target: { required: true, types: ['Dialog'] } },\n { type: 'toggleDialog', labelKey: 'builder.actions.toggleDialog', kind: 'instant', group: 'dialog', builderBehaviour: 'run',\n target: { required: true, types: ['Dialog'] } },\n\n // ── Popover (premium M5, N4): an anchored, NON-modal panel beside the element that opens it. The canvas RUNS them,\n // like the dialog actions — a popover you cannot open from its button is a popover you cannot design.\n { type: 'openPopover', labelKey: 'builder.actions.openPopover', kind: 'instant', group: 'popover', builderBehaviour: 'run',\n target: { required: true, types: [POPOVER_NODE_TYPE] } },\n { type: 'closePopover', labelKey: 'builder.actions.closePopover', kind: 'instant', group: 'popover', builderBehaviour: 'run',\n target: { required: true, types: [POPOVER_NODE_TYPE] } },\n { type: 'togglePopover', labelKey: 'builder.actions.togglePopover', kind: 'instant', group: 'popover', builderBehaviour: 'run',\n target: { required: true, types: [POPOVER_NODE_TYPE] } },\n\n // ── Notice (premium M5, N3): a toast at an edge of the screen — the author's words, never the visitor's. The canvas\n // RUNS it inside the page's frame.\n { type: 'showToast', labelKey: 'builder.actions.showToast', kind: 'instant', group: 'notice', builderBehaviour: 'run',\n params: [\n { name: 'text', type: 'string', label: 'builder.actions.params.toastText' },\n { name: 'edge', type: 'string', label: 'builder.actions.params.toastEdge', options: [\n { value: 'bottom', labelKey: 'builder.actions.params.toastBottom' },\n { value: 'top', labelKey: 'builder.actions.params.toastTop' },\n ] },\n ] },\n\n // ── Item (CC2.1 — composite T14): drive an accordion item or a disclosure from anywhere (\"See shipping\"\n // opens FAQ item 3). The canvas RUNS them, like the dialog actions: it is the same runtime, and an item you\n // cannot open from the button is a button you cannot design.\n { type: 'openItem', labelKey: 'builder.actions.openItem', kind: 'instant', group: 'item', builderBehaviour: 'run',\n target: { required: true, roles: OPEN_TARGET_ROLES } },\n { type: 'closeItem', labelKey: 'builder.actions.closeItem', kind: 'instant', group: 'item', builderBehaviour: 'run',\n target: { required: true, roles: ITEM_TARGET_ROLES } },\n { type: 'toggleItem', labelKey: 'builder.actions.toggleItem', kind: 'instant', group: 'item', builderBehaviour: 'run',\n target: { required: true, roles: ITEM_TARGET_ROLES } },\n\n // ── Form (A1 — Tier A; the submit transport is the forms module's, I7 of its plan) ──\n // simulate in the CANVAS: the builder's Form is a container twin with no real <form>,\n // so there is nothing honest to run — the live engine requestSubmit()s the real one.\n { type: 'submitForm', labelKey: 'builder.actions.submitForm', kind: 'instant', group: 'form', builderBehaviour: 'simulate',\n target: { required: true, types: ['Form'] } },\n\n // ── Data (shipped context actions + the one trivial newcomer) ───────────\n { type: 'setContext', labelKey: 'builder.actions.setContext', kind: 'instant', group: 'data', builderBehaviour: 'run' },\n { type: 'clearContext', labelKey: 'builder.actions.clearContext', kind: 'instant', group: 'data', builderBehaviour: 'run' },\n { type: 'copyToClipboard', labelKey: 'builder.actions.copyToClipboard', kind: 'instant', group: 'data', builderBehaviour: 'run',\n params: [{ name: 'text', type: 'string', label: 'Text' }] },\n\n // ── Consent (C3 — the banner's vocabulary; all pure writes of the consent cookie) ──\n // The canvas SIMULATES the recording ones: the builder runs in the ADMIN's browser, and an\n // admin's cookie is not a visitor's decision. Opening the preferences dialog is honest to run.\n { type: 'grantConsent', labelKey: 'builder.actions.grantConsent', kind: 'instant', group: 'consent', builderBehaviour: 'simulate' },\n { type: 'denyConsent', labelKey: 'builder.actions.denyConsent', kind: 'instant', group: 'consent', builderBehaviour: 'simulate' },\n { type: 'setConsentCategory', labelKey: 'builder.actions.setConsentCategory', kind: 'instant', group: 'consent', builderBehaviour: 'simulate',\n params: [\n { name: 'category', type: 'string', label: 'Category', options: [\n { value: 'analytics', labelKey: 'builder.actions.params.categoryAnalytics' },\n { value: 'marketing', labelKey: 'builder.actions.params.categoryMarketing' },\n ] },\n { name: 'granted', type: 'boolean', label: 'Granted' },\n ] },\n { type: 'openConsentPreferences', labelKey: 'builder.actions.openConsentPreferences', kind: 'instant', group: 'consent', builderBehaviour: 'run',\n target: { required: true, types: ['Dialog'] } },\n\n // ── Server actions (A2 — Tier B): the canvas SIMULATES, the LIVE site POSTs the node's\n // identity to ONE public route and the server re-derives the spec from the SAVED page.\n // The author's saved params are the whole spec — a visitor contributes only the click.\n { type: 'sendEmail', labelKey: 'builder.actions.sendEmail', kind: 'server', group: 'service', builderBehaviour: 'simulate',\n connector: 'mailer',\n params: [\n { name: 'to', type: 'string', label: 'To' },\n { name: 'subject', type: 'string', label: 'Subject' },\n { name: 'message', type: 'string', label: 'Message' },\n ] },\n { type: 'callWebhook', labelKey: 'builder.actions.callWebhook', kind: 'server', group: 'service', builderBehaviour: 'simulate',\n params: [\n { name: 'url', type: 'string', label: 'URL' }, // non-secret config (K2); the server SSRF-guards it\n ] },\n { type: 'createItem', labelKey: 'builder.actions.createItem', kind: 'server', group: 'data', builderBehaviour: 'simulate',\n params: [\n { name: 'contentType', type: 'string', label: 'Content type' },\n { name: 'values', type: 'string', label: 'Field values (JSON)' },\n ] },\n\n // ── Shop (commerce E1c, C-D16): the shop parts' behaviour, run by composite-core's shop runtime through the host's\n // cart transport (forms' transport rule — the part owns no HTTP). Add to cart SIMULATES on the canvas: the drawer opens\n // with a sample line and no cart is written (T8). Buy now is INERT there — it must never take anyone to a payment.\n // Gated by the ONE plan feature `features.shop` (C-D18); a manual payment method needs no payment connector (E1).\n { type: 'addToCart', labelKey: 'builder.actions.addToCart', kind: 'server', group: 'shop', builderBehaviour: 'simulate',\n entitlement: SHOP_ENTITLEMENT },\n { type: 'startCheckout', labelKey: 'builder.actions.startCheckout', kind: 'server', group: 'shop', builderBehaviour: 'inert',\n entitlement: SHOP_ENTITLEMENT },\n\n // ── Account (commerce E3a, C-D5/C-D6): a buyer signs in by an email code or Google and out again, through the\n // host's site-auth transport (composite-core `AccountRuntime`, the part owns no HTTP). The canvas SIMULATES both:\n // Sign in opens the page's sign-in dialog over a simulated transport (a sample customer, no session — the ADMIN's\n // browser is never a buyer), Sign out returns the parts to signed out. Behind the ONE plan feature `features.shop`\n // (\"Shop and customer sign-in\", C-D18). No target: the runtime opens the page's ONE sign-in dialog.\n { type: 'signIn', labelKey: 'builder.actions.signIn', kind: 'server', group: 'account', builderBehaviour: 'simulate',\n entitlement: SHOP_ENTITLEMENT },\n { type: 'signOut', labelKey: 'builder.actions.signOut', kind: 'server', group: 'account', builderBehaviour: 'simulate',\n entitlement: SHOP_ENTITLEMENT },\n]);\n\n/** The account actions' dispatch set (commerce E3a) — the engines branch on it beside SHOP and hand the action to\n * composite-core `runAccountAction`. */\nexport const ACCOUNT_ACTION_TYPES: ReadonlySet<string> = new Set(['signIn', 'signOut']);\n\n/** The shop actions' dispatch set (commerce E1c) — the engines branch on it beside DIALOG / BEHAVIOUR and hand the action\n * to composite-core `runShopAction`, which reads the product, the variant and the quantity around the element. */\nexport const SHOP_ACTION_TYPES: ReadonlySet<string> = new Set(['addToCart', 'startCheckout']);\n\n/** The A2 server executors' dispatch set — the live engine POSTs these to the public actions\n * route; the canvas simulates them (a server action never runs from the ADMIN's browser). */\nexport const SERVER_ELEMENT_ACTION_TYPES: ReadonlySet<string> =\n new Set(['sendEmail', 'callWebhook', 'createItem']);\n\n/** The Tier-A behaviour executors' dispatch set (A1c) — the engines branch on it beside\n * DIALOG/SWIPER. Dialog actions have their own set; context/visibility stay in the legacy path. */\nexport const BEHAVIOUR_ACTION_TYPES: ReadonlySet<string> =\n new Set(['navigate', 'scrollTo', 'submitForm', 'copyToClipboard']);\n\n/** The toast action's dispatch set (premium M5) — the engines branch on it beside DIALOG / POPOVER. */\nexport const TOAST_ACTION_TYPES: ReadonlySet<string> = new Set(['showToast']);\n\n/** The item actions' dispatch set (T14) and what each does to its item — the engines branch on it beside\n * DIALOG/BEHAVIOUR, and composite-core `runCompositeItemAction` runs it on the target item's own runtime. */\nexport const ITEM_ACTION_TYPES: Readonly<Record<string, CompositeItemAction>> = Object.freeze({\n openItem: CompositeItemAction.Open,\n closeItem: CompositeItemAction.Close,\n toggleItem: CompositeItemAction.Toggle,\n});\n\n/** The item action an action type runs, or null when it is not one. */\n/** True when an `openDialog` action opens its dialog at the clicked row's slide (CC3 \"Open at the clicked item\"). */\nexport function opensAtClickedItem(action: { type?: string; params?: Record<string, unknown> | null } | null | undefined): boolean {\n return action?.type === 'openDialog' && action.params?.['slideTo'] === SLIDE_TO_ROW;\n}\n\nexport function itemActionOf(type: string | null | undefined): CompositeItemAction | null {\n return (type && ITEM_ACTION_TYPES[type]) || null;\n}\n\n/** The consent actions' dispatch set (C3) — the engines branch on it beside DIALOG/BEHAVIOUR.\n * `openConsentPreferences` is dialog-opening by nature and included so ONE branch owns consent. */\nexport const CONSENT_ACTION_TYPES: ReadonlySet<string> =\n new Set(['grantConsent', 'denyConsent', 'setConsentCategory', 'openConsentPreferences']);\n\n/** Picker order — most-used groups first, services last (they are the shop window, not the shop). */\nexport const ELEMENT_ACTION_GROUP_ORDER: readonly string[] =\n Object.freeze(['motion', 'visibility', 'navigate', 'dialog', 'popover', 'notice', 'item', 'form', 'data', 'consent', 'shop', 'account', 'service']);\n\n/** True when `d` is offered under `trigger` (its `triggers`, else every trigger) — the picker's rule and the runtimes'. */\nexport function actionOfferedUnder(d: Pick<ActionDescriptor, 'triggers'>, trigger: string | null | undefined): boolean {\n return !d.triggers || (!!trigger && d.triggers.includes(trigger));\n}\n\n/** The catalog, grouped and ordered for the picker — one derivation, no hand-kept second list. `keep` narrows it (the\n * picker keeps what its trigger offers — `actionOfferedUnder` — and, under `scrollProgress`, what the scroll can play). */\nexport function groupedElementActions(keep: (d: ActionDescriptor) => boolean = () => true): ReadonlyArray<{ group: string; actions: ActionDescriptor[] }> {\n return ELEMENT_ACTION_GROUP_ORDER\n .map(group => ({ group, actions: ELEMENT_ACTION_DESCRIPTORS.filter(d => d.group === group && keep(d)) }))\n .filter(g => g.actions.length > 0);\n}\n","/**\n * How a dialog LEAVES (CC1 follow-up — the drawer that vanished). Opening is pure CSS (`@starting-style`\n * in the shared `iox-design.css`); closing needs one beat of script, because `dialog.close()` drops the\n * top layer at once and only some browsers can hold it for a transition (`overlay … allow-discrete`).\n *\n * The ONE exit every renderer runs: mark the element closing (`data-iox-closing` — the shared CSS gives it\n * its closed look: the drawer back off its edge, the scrim clear), wait for the transitions that started,\n * then finish. Reduced motion (or a stub with no animations) finishes now. Framework-free: the engine's\n * every close path (actions, the X, the backdrop, Esc, the close-above watcher) and the builder canvas's\n * stage share it.\n */\n\nexport const DIALOG_CLOSING_ATTRIBUTE = 'data-iox-closing';\n\n/** Longest an exit may hold the element before it finishes anyway — a transition that never ends (a\n * value that did not change, a tab in the background) must not leave a dialog half-closed. */\nexport const DIALOG_EXIT_TIMEOUT_MS = 700;\n\nexport interface ExitAnimationLike {\n finished: Promise<unknown>;\n /** A DOM `Animation`'s effect — `endTime` is a CSSNumberish there (a number for every time-based animation). */\n effect?: { getComputedTiming?: () => { endTime?: unknown } } | null;\n}\n\nexport interface ExitMotionElement {\n setAttribute(name: string, value: string): void;\n removeAttribute(name: string): void;\n hasAttribute(name: string): boolean;\n getAnimations?: (options?: { subtree?: boolean }) => ExitAnimationLike[];\n}\n\nexport interface DialogElementLike extends ExitMotionElement {\n open: boolean;\n close(): void;\n}\n\nexport interface ExitMotionOptions {\n /** False under reduced motion: finish at once (the caller asks `motionAllowed()`). */\n animate: boolean;\n timeoutMs?: number;\n}\n\n/** True while an exit is running on the element (a second close waits on it; an open cancels it). */\nexport function isExiting(el: ExitMotionElement | null | undefined): boolean {\n return !!el?.hasAttribute(DIALOG_CLOSING_ATTRIBUTE);\n}\n\n/** Stop an exit that is running (the dialog was opened again mid-close): it stays open. */\nexport function cancelExit(el: ExitMotionElement | null | undefined): void {\n el?.removeAttribute(DIALOG_CLOSING_ATTRIBUTE);\n}\n\nconst finite = (a: ExitAnimationLike) => {\n const end = a.effect?.getComputedTiming?.().endTime;\n return typeof end !== 'number' || Number.isFinite(end);\n};\n\n/**\n * Run the exit: mark the element, wait for its finite animations (its subtree's too — the drawer's links,\n * the `::backdrop`) or the timeout. Resolves TRUE when the exit completed and the caller should finish\n * (close / remove), FALSE when it was cancelled meanwhile. The mark stays on until the caller finishes.\n */\nexport async function runExitMotion(el: ExitMotionElement, options: ExitMotionOptions): Promise<boolean> {\n el.setAttribute(DIALOG_CLOSING_ATTRIBUTE, '');\n if (!options.animate) return true;\n // Reading the animations flushes style, so the transitions the mark just started are in the list.\n const running = (el.getAnimations?.({ subtree: true }) ?? []).filter(finite);\n if (running.length) {\n const timeout = options.timeoutMs ?? DIALOG_EXIT_TIMEOUT_MS;\n let timer: ReturnType<typeof setTimeout> | undefined;\n await Promise.race([\n Promise.all(running.map(a => a.finished.catch(() => undefined))),\n new Promise<void>(resolve => { timer = setTimeout(resolve, timeout); }),\n ]);\n if (timer !== undefined) clearTimeout(timer);\n }\n return isExiting(el);\n}\n\nconst pending = new WeakMap<object, Promise<void>>();\n\n/**\n * Close a live `<dialog>` with its exit motion. A second call while it is closing joins the first; an open\n * in between (`cancelExit`) keeps it open. The dialog's own `close` event still fires once, after the\n * motion — so whatever a runtime does on close (restart the page scroll, sync the openers, return focus)\n * happens when the dialog is really gone.\n */\nexport function closeDialogAnimated(el: DialogElementLike, options: ExitMotionOptions): Promise<void> {\n if (!el.open) return Promise.resolve();\n const running = pending.get(el);\n if (running && isExiting(el)) return running;\n const done = runExitMotion(el, options).then(finish => {\n pending.delete(el);\n if (!finish) return;\n if (el.open) el.close();\n cancelExit(el);\n });\n pending.set(el, done);\n return done;\n}\n\n/** True when a toggle should CLOSE the dialog: it is open and not already on its way out. */\nexport function dialogTogglesClosed(el: Pick<DialogElementLike, 'open' | 'hasAttribute'>): boolean {\n return el.open && !el.hasAttribute(DIALOG_CLOSING_ATTRIBUTE);\n}\n\n/** The element-style marker a styled dialog carries (design-core ELEMENT_STYLE_MARKER_CLASS — actions-core does not\n * import design-core). */\nconst STYLED_DIALOG_CLASS = 'iox-es';\n\nexport interface FocusableSheet {\n classList: { contains(token: string): boolean };\n querySelector(selector: string): unknown;\n hasAttribute(name: string): boolean;\n setAttribute(name: string, value: string): void;\n focus(options?: FocusOptions): void;\n}\n\n/**\n * A styled dialog a visitor just opened takes focus on its SHEET (premium components M4 — M1.1's carry-over). A bare\n * `showModal()` focuses its first control, and a phone can ring it after a tap; the sheet never rings (iox-design.css) and\n * the first Tab moves to that control, with its ring. A dialog with an author's `[autofocus]` keeps it; a dialog saved\n * before element styles keeps the browser's behaviour. True when the sheet took focus.\n */\nexport function focusDialogSheet(dialog: FocusableSheet | null | undefined): boolean {\n if (!dialog || !dialog.classList.contains(STYLED_DIALOG_CLASS) || dialog.querySelector('[autofocus]')) return false;\n if (!dialog.hasAttribute('tabindex')) dialog.setAttribute('tabindex', '-1');\n dialog.focus({ preventScroll: true });\n return true;\n}\n","import { dialogOpenersSelector } from './dialog-opener';\nimport { DIALOG_CLOSING_ATTRIBUTE } from './dialog-motion';\n\n/**\n * Where a menu's REVEAL grows from (header-ingredients HI2a; header-builder board 2: \"origin = the opener's centre\"). A\n * zoom scales about it, a circle and the torn edge open from it — so the menu reads as coming OUT of the button that opened\n * it. The reveals themselves are CSS transitions in the shared `iox-design.css` (Emil: a menu toggles, so it must reverse\n * from its live value — a transition, never keyframes); the one beat of script is this: put the opener's centre, in the\n * menu's own box, into two custom properties when the menu opens. ONE function for the live page and the builder canvas\n * (each passes its own box measure). Framework-free.\n */\n\nexport enum RevealOriginProperty {\n X = '--reveal-x',\n Y = '--reveal-y',\n /** How far the reveal must grow to cover the menu: the distance to its farthest corner (a circle of this radius,\n * centred on the origin, covers the whole box — so the reveal spends its time ON the menu, not past it). */\n R = '--reveal-r',\n}\n\nexport interface RevealOriginPoint {\n x: number;\n y: number;\n r: number;\n}\n\nexport interface RevealRect {\n left: number;\n top: number;\n width: number;\n height: number;\n}\n\nexport interface RevealOriginOptions {\n /** Opener space → the menu's CSS px (the builder canvas is zoomed: its rects are scaled). Default 1. */\n scale?: number;\n /** With no opener, the menu's top-LEFT corner (a start-side menu in LTR, an end-side one in RTL); else top-right. */\n atLeft?: boolean;\n}\n\n/**\n * The reveal origin in the menu's own box (CSS px, from its top-left border edge): the opener's centre, or — opened by\n * anything else (a link, an action on another element) — the menu's top corner on its side. `box` is the menu's\n * UNTRANSFORMED box, in the same space as the opener's rect. Pure.\n */\nexport function revealOrigin(opener: RevealRect | null | undefined, box: RevealRect, options: RevealOriginOptions = {}): RevealOriginPoint {\n const scale = options.scale && options.scale > 0 ? options.scale : 1;\n const width = box.width / scale;\n const height = box.height / scale;\n const at = !opener || !(opener.width > 0 || opener.height > 0)\n ? { x: Math.round(options.atLeft ? 0 : width), y: 0 }\n : { x: Math.round(((opener.left + opener.width / 2) - box.left) / scale), y: Math.round(((opener.top + opener.height / 2) - box.top) / scale) };\n const r = Math.ceil(Math.max(...[[0, 0], [width, 0], [0, height], [width, height]].map(([cx, cy]) => Math.hypot(cx - at.x, cy - at.y))));\n return { ...at, r };\n}\n\n/** The custom properties for an origin. */\nexport function revealOriginStyle(origin: RevealOriginPoint): Record<RevealOriginProperty, string> {\n return { [RevealOriginProperty.X]: `${origin.x}px`, [RevealOriginProperty.Y]: `${origin.y}px`, [RevealOriginProperty.R]: `${origin.r}px` };\n}\n\n/** An element whose inline style a hold may switch (structural). */\nexport interface RevealStyled {\n style: { getPropertyValue(name: string): string; setProperty(name: string, value: string): void; removeProperty(name: string): string };\n}\n\n/** The element whose `data-iox-closing` puts the menu in its closed shape (the live `<dialog>` itself; the canvas's stage). */\nexport interface RevealClosingMarker {\n hasAttribute(name: string): boolean;\n setAttribute(name: string, value: string): void;\n removeAttribute(name: string): void;\n}\n\n/**\n * Write a reveal's origin with the menu HELD in its closed shape — marked closing, its own transitions off — then let it go,\n * so its opening transition starts from the closed shape AT the new origin. Without the hold, the first style the browser\n * computes after the menu shows (showModal, a focus, the measure itself) starts the transition from the CSS default\n * corner, and a circle opened from a start-side button sweeps across the bar from the far corner before it grows. `flush`\n * reads a computed style (the closed shape at the new origin, at once); a transition already running is dropped by it.\n * ONE rule for the live page (`revealFrom`) and the builder canvas.\n */\nexport function holdClosedWhile(menu: RevealStyled, marker: RevealClosingMarker, write: () => void, flush: () => void): void {\n const marked = marker.hasAttribute(DIALOG_CLOSING_ATTRIBUTE);\n const inline = menu.style.getPropertyValue('transition');\n menu.style.setProperty('transition', 'none');\n if (!marked) marker.setAttribute(DIALOG_CLOSING_ATTRIBUTE, '');\n try {\n write();\n flush();\n } finally {\n if (!marked) marker.removeAttribute(DIALOG_CLOSING_ATTRIBUTE);\n if (inline) menu.style.setProperty('transition', inline);\n else menu.style.removeProperty('transition');\n }\n}\n\n/** What `revealFrom` needs of a live `<dialog>` (structural, so the spec drives it without a DOM). */\nexport interface RevealDialogLike extends RevealStyled, RevealClosingMarker {\n id: string;\n offsetWidth: number;\n offsetHeight: number;\n getAttribute(name: string): string | null;\n ownerDocument: {\n defaultView: {\n getComputedStyle(el: unknown): { marginLeft: string; marginTop: string; direction: string; getPropertyValue(name: string): string };\n } | null;\n querySelectorAll(selector: string): ArrayLike<RevealOpenerLike>;\n } | null;\n}\n\nexport interface RevealOpenerLike {\n getBoundingClientRect(): RevealRect;\n getClientRects?(): ArrayLike<unknown>;\n}\n\nconst rendered = (el: RevealOpenerLike | null | undefined): el is RevealOpenerLike => {\n if (!el) return false;\n if (el.getClientRects && !el.getClientRects().length) return false;\n const r = el.getBoundingClientRect();\n return r.width > 0 || r.height > 0;\n};\n\n/**\n * Set a just-opened live `<dialog>`'s reveal origin from the element that opened it (`opener`), else from the first of its\n * openers that is on screen (`aria-controls` — the menu button at its width), else its top corner — held in its closed\n * shape while it is written (`holdClosedWhile`). Call it right after `showModal()`, before anything else reads a style. A top-layer dialog is fixed at `inset: 0`, so its untransformed box starts at its USED margins — a\n * reveal's starting scale or translate never moves a margin, whereas `getBoundingClientRect` would read it.\n */\nexport function revealFrom(dialog: RevealDialogLike | null | undefined, opener?: RevealOpenerLike | null): void {\n const view = dialog?.ownerDocument?.defaultView;\n if (!dialog || !view) return;\n holdClosedWhile(dialog, dialog, () => {\n const cs = view.getComputedStyle(dialog);\n const box = { left: parseFloat(cs.marginLeft) || 0, top: parseFloat(cs.marginTop) || 0, width: dialog.offsetWidth, height: dialog.offsetHeight };\n const from = rendered(opener) ? opener\n : dialog.id ? Array.from(dialog.ownerDocument!.querySelectorAll(dialogOpenersSelector(dialog.id))).find(rendered) ?? null : null;\n const atLeft = (dialog.getAttribute('data-iox-dialog-placement') === 'start') !== (cs.direction === 'rtl');\n const origin = revealOrigin(from ? from.getBoundingClientRect() : null, box, { atLeft });\n for (const [name, value] of Object.entries(revealOriginStyle(origin))) dialog.style.setProperty(name, value);\n }, () => { view.getComputedStyle(dialog).getPropertyValue('clip-path'); });\n}\n","import { CHECKOUT_PATH } from '@vectoriox/iox-ui/commerce-core';\nimport {\n POPUP_KIND_ARRIVAL, POPUP_KIND_MIX, PopupAgain, PopupArrive, PopupForm, popupFormOf, PopupKind, PopupTrait,\n} from '@vectoriox/iox-ui/composite-core';\nimport { ACCOUNT_PATH } from '@vectoriox/iox-ui/identity-core';\n\n/**\n * WHEN A SELF-ARRIVING OVERLAY MAY SHOW (popups-plan.md §4–§5, PU-D4…PU-D9, PU-D17) — the ONE planner. The engine's runtime\n * only reports state and obeys; the builder's canvas never asks it (a popup never arrives on the canvas, PU-D14).\n *\n * overlayTurn(state) → 'preloader' | 'consent' | 'popup:<id>' | 'none'\n * 1. a first visit's preloader is showing → nothing else\n * 2. the consent debt is unpaid → the banner only (a popup never opens over or before it)\n * 3. any dialog, drawer, cart, sign-in or lightbox is open → wait\n * 4. the route is quiet → no popup\n * 5. a popup already arrived in this page view → no second one\n * 6. otherwise the first DUE popup (page before global, then tree order) → its clock starts NOW\n *\n * A popup's clock starts when its TURN starts — `time` counts from then, `scroll` needs a scroll after it. The consent\n * banner's own arrival (AW2 `arrive.delay`: the first scroll or 6 s) is planned here too (`planConsentArrival`), so every\n * self-arriving overlay has one arrival rule. Memory (PU-D6/PU-D7): localStorage, no identifier, never sent — Necessary.\n * Pure and framework-free: no DOM, no clock (`now` is passed in).\n *\n * The numbers are the contract's (layout.mjs POPUP `rules`; generation-core's popup spec holds them equal).\n */\n\n/** POPUP `rules` — mirrored, held equal to the contract by generation-core's spec. */\nexport const POPUP_RULES = Object.freeze({\n minSeconds: 3,\n scrollScreens: 0.5,\n timeSeconds: 8,\n leavingAfterSeconds: 10,\n phoneLeavingSeconds: 25,\n phoneMaxHeight: 0.3,\n memoryDays: 30,\n reducedFadeMs: 200,\n exitRatio: 0.55,\n durationByAnimated: Object.freeze({ still: 200, subtle: 350, standard: 450, lively: 550, expressive: 600 }),\n quietRoutes: Object.freeze(['checkout', 'order', 'account', 'sign-in', 'legal', 'not-found', 'recover', 'unsubscribe']),\n});\n\n/** AW2 (CONSENT `rules.delayMs`): the banner's `arrive.delay` — the first scroll, or this many ms. */\nexport const CONSENT_DELAY_MS = 6000;\n\n// ── the order ─────────────────────────────────────────────────────────────────────────────────────────────────────────\n\nexport enum OverlayTurnKind {\n Preloader = 'preloader',\n Consent = 'consent',\n None = 'none',\n}\n\n/** `popup:<id>` — the popup whose clock runs now. */\nexport type OverlayTurn = OverlayTurnKind | `popup:${string}`;\n\nexport const POPUP_TURN_PREFIX = 'popup:';\n\nexport interface OverlayState {\n /** A first visit's preloader is on screen (AW5). */\n preloaderShowing: boolean;\n /** The consent banner is owed (consent-core `needsPrompt`) — paid by the visitor's decision. */\n consentOwed: boolean;\n /** A dialog, drawer, cart, sign-in or lightbox is open (a popup never opens over it). */\n otherOverlayOpen: boolean;\n /** The page is a quiet route (`isQuietRoute`). */\n quietRoute: boolean;\n /** A popup already arrived in this page view. */\n popupArrivedThisView: boolean;\n /** The popups that are DUE (`popupDue`), page popups first, then globals, each in tree order. */\n due: ReadonlyArray<string>;\n}\n\n/** Whose turn it is (§4b). */\nexport function overlayTurn(state: OverlayState): OverlayTurn {\n if (state.preloaderShowing) return OverlayTurnKind.Preloader;\n if (state.consentOwed) return OverlayTurnKind.Consent;\n if (state.otherOverlayOpen || state.quietRoute || state.popupArrivedThisView) return OverlayTurnKind.None;\n const first = state.due[0];\n return first ? `${POPUP_TURN_PREFIX}${first}` : OverlayTurnKind.None;\n}\n\n/** The popup id of a turn, or null. */\nexport function popupOfTurn(turn: OverlayTurn): string | null {\n return turn.startsWith(POPUP_TURN_PREFIX) ? turn.slice(POPUP_TURN_PREFIX.length) : null;\n}\n\n// ── quiet routes ──────────────────────────────────────────────────────────────────────────────────────────────────────\n\nexport interface RouteInfo {\n /** The page's app path, without the org label (`/checkout/r/abc`, `/menu`). */\n path: string;\n /** The page is a stamped legal page (LEGAL kinds — found by its kind). */\n legal?: boolean;\n /** The 404 page. */\n notFound?: boolean;\n}\n\n/** The first path segments that are quiet: commerce's fixed checkout (its order, recover and unsubscribe links live under\n * it) and the buyer's account (where a buyer signs in). */\nconst QUIET_SEGMENTS: ReadonlyArray<string> = [CHECKOUT_PATH, ACCOUNT_PATH];\n\n/** PU-D9: a popup never arrives here. */\nexport function isQuietRoute(route: RouteInfo): boolean {\n if (route.legal || route.notFound) return true;\n const first = (route.path ?? '').split('?')[0].split('#')[0].split('/').filter(Boolean)[0] ?? '';\n return QUIET_SEGMENTS.includes(first.toLowerCase());\n}\n\n// ── arrival ───────────────────────────────────────────────────────────────────────────────────────────────────────────\n\n/** The trigger a planned arrival waits on. `now` = at once (the consent banner's `arrive.load`); `never` = only a button. */\nexport enum ArrivalTrigger {\n Now = 'now',\n Scroll = 'scroll',\n Time = 'time',\n ScrollOrTime = 'scrollOrTime',\n /** PU2b: a laptop's mouse leaves through the top of the window, after `seconds` on the page. */\n Leaving = 'leaving',\n Never = 'never',\n}\n\nexport interface ArrivalPlan {\n trigger: ArrivalTrigger;\n /** A share of the FIRST screen the visitor scrolls (0 = any real scroll). */\n screens: number | null;\n /** A share of the whole PAGE scrolled, instead of screens. */\n pageShare: number | null;\n /** Visible seconds on the page, counted from the turn's start. */\n seconds: number | null;\n}\n\n/** What the runtime measures, from the moment the turn started. */\nexport interface ArrivalProgress {\n /** The visitor's own scroll since the turn started, px (a programmatic scroll is never counted). */\n scrolledPx: number;\n /** The page's current scroll position, px — for a page share. */\n scrollY: number;\n viewportHeight: number;\n pageHeight: number;\n /** Seconds the tab was visible since the turn started. */\n visibleSeconds: number;\n /** PU2b: the visible seconds at the visitor's LATEST exit through the top of the window (a fine pointer's), or none.\n * An exit before the planned seconds does not count; the next one after them does. */\n leftTopAtSeconds?: number | null;\n}\n\nexport interface ArrivalEnv {\n /** `(hover: hover) and (pointer: fine)` — a laptop's mouse. */\n finePointer: boolean;\n}\n\nconst num = (v: unknown): number | null => {\n const n = typeof v === 'number' ? v : typeof v === 'string' && v.trim() ? Number(v) : NaN;\n return Number.isFinite(n) && n >= 0 ? n : null;\n};\n\n/**\n * A popup's arrival from its traits (PU-D5): its kind's defaults where a trait is unset; `time` never under 3 s; `leaving`\n * reads a laptop's mouse leaving through the top after `leavingAfterSeconds` (PU2b) — anything without a fine pointer has\n * no honest leaving signal and gets the time instead (`phoneLeavingSeconds`); `button` never arrives by itself.\n */\nexport function planPopupArrival(get: (name: string) => unknown, env: ArrivalEnv): ArrivalPlan {\n const kind = (Object.values(PopupKind) as string[]).includes(String(get(PopupTrait.Kind))) ? get(PopupTrait.Kind) as PopupKind : PopupKind.Offer;\n const defaults = POPUP_KIND_ARRIVAL[kind];\n const asked = String(get(PopupTrait.Arrive) ?? '');\n const arrive = (Object.values(PopupArrive) as string[]).includes(asked) ? asked as PopupArrive : POPUP_KIND_MIX[kind].arrive;\n const pageShare = num(get(PopupTrait.PageShare)) ?? (num(get(PopupTrait.Screens)) === null ? defaults.pageShare ?? null : null);\n const screens = pageShare !== null ? null : num(get(PopupTrait.Screens)) ?? defaults.screens ?? POPUP_RULES.scrollScreens;\n const seconds = (fallback: number) => Math.max(POPUP_RULES.minSeconds, num(get(PopupTrait.Seconds)) ?? defaults.seconds ?? fallback);\n switch (arrive) {\n case PopupArrive.Button: return { trigger: ArrivalTrigger.Never, screens: null, pageShare: null, seconds: null };\n case PopupArrive.Scroll: return { trigger: ArrivalTrigger.Scroll, screens, pageShare, seconds: null };\n case PopupArrive.Time: return { trigger: ArrivalTrigger.Time, screens: null, pageShare: null, seconds: seconds(POPUP_RULES.timeSeconds) };\n // A phone (any coarse pointer) never reads leaving — no Back-button trap, no scroll-up guess: it arrives by time.\n case PopupArrive.Leaving: return env.finePointer\n ? { trigger: ArrivalTrigger.Leaving, screens: null, pageShare: null, seconds: Math.max(POPUP_RULES.minSeconds, POPUP_RULES.leavingAfterSeconds) }\n : { trigger: ArrivalTrigger.Time, screens: null, pageShare: null, seconds: Math.max(POPUP_RULES.minSeconds, POPUP_RULES.phoneLeavingSeconds) };\n default: return { trigger: ArrivalTrigger.ScrollOrTime, screens, pageShare, seconds: seconds(POPUP_RULES.timeSeconds) };\n }\n}\n\n/** AW2 / PU-D17: the consent banner's arrival — `load` at once, `delay` on the first real scroll or after 6 s. */\nexport function planConsentArrival(arrive: 'load' | 'delay' | string | null | undefined): ArrivalPlan {\n return arrive === 'delay'\n ? { trigger: ArrivalTrigger.ScrollOrTime, screens: 0, pageShare: null, seconds: CONSENT_DELAY_MS / 1000 }\n : { trigger: ArrivalTrigger.Now, screens: null, pageShare: null, seconds: null };\n}\n\nfunction scrolledEnough(plan: ArrivalPlan, p: ArrivalProgress): boolean {\n if (!(p.scrolledPx > 0)) return false; // a real scroll, after the turn started\n if (plan.pageShare !== null) {\n const room = p.pageHeight - p.viewportHeight;\n return room <= 0 || p.scrollY / room >= plan.pageShare;\n }\n return p.scrolledPx >= (plan.screens ?? 0) * p.viewportHeight;\n}\n\n/** True once the planned arrival has happened. */\nexport function arrivalFired(plan: ArrivalPlan, p: ArrivalProgress): boolean {\n switch (plan.trigger) {\n case ArrivalTrigger.Now: return true;\n case ArrivalTrigger.Never: return false;\n case ArrivalTrigger.Scroll: return scrolledEnough(plan, p);\n case ArrivalTrigger.Time: return p.visibleSeconds >= (plan.seconds ?? Infinity);\n case ArrivalTrigger.Leaving: return p.leftTopAtSeconds != null && p.leftTopAtSeconds >= (plan.seconds ?? Infinity);\n default: return scrolledEnough(plan, p) || p.visibleSeconds >= (plan.seconds ?? Infinity);\n }\n}\n\n// ── memory (PU-D6, PU-D7) ─────────────────────────────────────────────────────────────────────────────────────────────\n\n/** What a browser remembers of one popup. `v` the popup's version when it was closed; `acted` = followed or sent. */\nexport interface PopupMemory {\n v: number;\n closedAt: number;\n acted: boolean;\n}\n\nexport const POPUP_MEMORY_PREFIX = 'iox-popup';\n\n/** `iox-popup:<site scope>:<popup node id>` — no identifier of the visitor. */\nexport function popupMemoryKey(scope: string, popupId: string): string {\n return `${POPUP_MEMORY_PREFIX}:${scope || '-'}:${popupId}`;\n}\n\n/** Where it is kept: `visit` → the tab's session; `days` / `once` → the browser. The runtime falls back to the session,\n * then to this page view, when one is refused. */\nexport enum PopupMemoryStore {\n Local = 'local',\n Session = 'session',\n}\n\nexport function popupMemoryStore(again: unknown): PopupMemoryStore {\n return again === PopupAgain.Visit ? PopupMemoryStore.Session : PopupMemoryStore.Local;\n}\n\nexport function encodePopupMemory(memory: PopupMemory): string {\n return JSON.stringify({ v: memory.v, closedAt: memory.closedAt, acted: memory.acted });\n}\n\n/** Tolerant: anything that is not a well-formed memory reads as none (a browser holding garbage still gets the popup). */\nexport function decodePopupMemory(raw: string | null | undefined): PopupMemory | null {\n if (!raw) return null;\n try {\n const o = JSON.parse(raw) as Partial<PopupMemory> | null;\n if (!o || typeof o !== 'object') return null;\n const v = Number(o.v), closedAt = Number(o.closedAt);\n if (!Number.isFinite(v) || !Number.isFinite(closedAt) || closedAt < 0) return null;\n return { v, closedAt, acted: o.acted === true };\n } catch {\n return null;\n }\n}\n\n/** A popup's version (`popupVersion`, default 1). */\nexport function popupVersionOf(get: (name: string) => unknown): number {\n const n = num(get(PopupTrait.Version));\n return n !== null && n >= 1 ? Math.floor(n) : 1;\n}\n\nconst DAY_MS = 86_400_000;\n\n/** True while a remembered close keeps the popup away (any version older than the popup's is forgotten). */\nexport function memoryKeepsAway(memory: PopupMemory | null, get: (name: string) => unknown, now: number): boolean {\n if (!memory || memory.v < popupVersionOf(get)) return false;\n if (memory.acted) return true; // never again after the visitor acts — until the owner changes it\n const again = String(get(PopupTrait.Again) ?? '') || POPUP_KIND_MIX[(get(PopupTrait.Kind) as PopupKind) ?? PopupKind.Offer]?.again;\n if (again === PopupAgain.Once || again === PopupAgain.Visit) return true; // a visit's memory dies with the session\n const days = num(get(PopupTrait.Days)) ?? POPUP_RULES.memoryDays;\n return now - memory.closedAt < days * DAY_MS;\n}\n\n// ── dates (PU-D18) ────────────────────────────────────────────────────────────────────────────────────────────────────\n\n/** The visitor's day, `YYYY-MM-DD`, on THEIR clock (never UTC — a popup \"until 30 November\" ends at their midnight). */\nexport function visitorDay(now: Date): string {\n const p = (n: number) => String(n).padStart(2, '0');\n return `${now.getFullYear()}-${p(now.getMonth() + 1)}-${p(now.getDate())}`;\n}\n\nconst DAY_RE = /^\\d{4}-\\d{2}-\\d{2}$/;\n\n/** Inside its dates (whole days, both ends included); no dates = always. A malformed date is ignored. */\nexport function popupWithinDates(get: (name: string) => unknown, now: Date): boolean {\n const day = visitorDay(now);\n const from = String(get(PopupTrait.ShowFrom) ?? '').trim(), until = String(get(PopupTrait.ShowUntil) ?? '').trim();\n if (DAY_RE.test(from) && day < from) return false;\n if (DAY_RE.test(until) && day > until) return false;\n return true;\n}\n\n/** Ended: its last day is past (the engine leaves it out of the raw SSR; Home warns). Days compare on the given clock. */\nexport function popupEnded(get: (name: string) => unknown, now: Date): boolean {\n const until = String(get(PopupTrait.ShowUntil) ?? '').trim();\n return DAY_RE.test(until) && visitorDay(now) > until;\n}\n\n// ── due ───────────────────────────────────────────────────────────────────────────────────────────────────────────────\n\nexport enum PopupNotDue {\n /** Only a button opens it. */\n Button = 'button',\n /** Outside its dates. */\n Dates = 'dates',\n /** A remembered close (or the visitor acted). */\n Memory = 'memory',\n}\n\n/** May this popup arrive by itself now? null = due; else why not. */\nexport function popupDue(get: (name: string) => unknown, memory: PopupMemory | null, now: Date): PopupNotDue | null {\n if (String(get(PopupTrait.Arrive) ?? '') === PopupArrive.Button) return PopupNotDue.Button;\n if (!popupWithinDates(get, now)) return PopupNotDue.Dates;\n if (memoryKeepsAway(memory, get, now.getTime())) return PopupNotDue.Memory;\n return null;\n}\n\n// ── presentation ──────────────────────────────────────────────────────────────────────────────────────────────────────\n\n/** How it opens on THIS device (PU-D2, PU-D10): `centred` is a modal on a laptop only — on a phone it is the corner card. */\nexport function popupFormOn(get: (name: string) => unknown, env: { phone: boolean }): PopupForm {\n const form = popupFormOf(get(PopupTrait.Kind), get(PopupTrait.Form));\n return env.phone && form === PopupForm.Centred ? PopupForm.Corner : form;\n}\n\n/** The How animated levels (the look's `animate`), stillest first. */\nexport type AnimateLevel = keyof typeof POPUP_RULES.durationByAnimated;\n\n/** §6: the factor the `popup-dur-*` tokens are scaled by for the look's How animated (the token holds Standard). */\nexport function popupMotionScale(level: string | null | undefined): number {\n const table = POPUP_RULES.durationByAnimated as Readonly<Record<string, number>>;\n return Math.round(((table[level ?? ''] ?? table['standard']) / table['standard']) * 1000) / 1000;\n}\n\n/** Still moves nothing: the popup fades (§6). */\nexport function popupFadesOnly(level: string | null | undefined): boolean {\n return level === 'still';\n}\n","/**\n * @vectoriox/iox-ui/actions-core — the shared, FRAMEWORK-FREE action vocabulary.\n *\n * One `ActionDescriptor` shape for every ordered action list in the product: the forms\n * after-submit steps (whose catalog moved here; `forms-core` re-exports it unchanged) and\n * the element behaviour actions of A1. Framework-free for the same reason as `forms-core`\n * and `seo-core`: `iox-cms` consumes it under plain Node.\n * ⚠️ Consumers wire the usual trio — ng-package raw-ts assets, jest moduleNameMapper, and\n * tsconfig paths — or `nest start` dies with ERR_REQUIRE_ESM while jest and build pass.\n */\nexport * from './action.model';\nexport * from './availability';\nexport * from './element-actions';\nexport * from './dialog-opener';\nexport * from './popover-opener';\nexport * from './dialog-motion';\nexport * from './reveal-origin';\nexport * from './popup-arrival';\n// The close word lives in design-core (composite-core's Lightbox recipe stamps it, and composite-core cannot import\n// actions-core — actions-core imports composite-core); re-exported here for the overlays that already read it here.\nexport { CLOSE_WORDS, closeWord } from '@vectoriox/iox-ui/design-core';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;AAAA;;;;;;AAMG;AA0DH;;;;AAIG;AACI,MAAM,8BAA8B,GAAgC,MAAM,CAAC,MAAM,CAAC;IACrF,EAAE,IAAI,EAAE,OAAO,EAAO,QAAQ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B;;AChVA;;;;;;;;;AASG;;ACTH;;AAEG;;;;"}
1
+ {"version":3,"file":"vectoriox-iox-ui-actions-core.mjs","sources":["../../../projects/iox-ui/src/actions-core/action.model.ts","../../../projects/iox-ui/src/actions-core/availability.ts","../../../projects/iox-ui/src/actions-core/dialog-opener.ts","../../../projects/iox-ui/src/actions-core/popover-opener.ts","../../../projects/iox-ui/src/actions-core/element-actions.ts","../../../projects/iox-ui/src/actions-core/dialog-motion.ts","../../../projects/iox-ui/src/actions-core/reveal-origin.ts","../../../projects/iox-ui/src/actions-core/popup-arrival.ts","../../../projects/iox-ui/src/actions-core/public-api.ts","../../../projects/iox-ui/src/actions-core/vectoriox-iox-ui-actions-core.ts"],"sourcesContent":["/**\n * The ONE descriptor shape for everything an author can put in an ordered action list —\n * a form's after-submit steps today, element behaviour actions (A1) next. Promoted out of\n * `forms-core` because a button action importing from the forms module would be a lie; the\n * forms catalog lives here now and `forms-core` re-exports it unchanged.\n * See iox-ai-guidance `architecture/builder/actions-framework-plan.md` §4 (A0).\n */\n\n/** How a step executes — decides which editor fields appear (timing only for `animated`). */\nexport type ActionKind = 'animated' | 'instant' | 'server';\n\n/** Picker grouping. Flat lists die at ~10 entries; the group is data, never a second list. */\nexport type ActionGroup =\n | 'motion' | 'visibility' | 'navigate' | 'dialog' | 'popover' | 'notice' | 'item' | 'form' | 'data' | 'consent' | 'shop' | 'account' | 'service';\n\n/**\n * What a step does inside the live builder canvas (the canvas RUNS interactions):\n * `run` for real (open the dialog), `simulate` announce-only (navigate), `inert` with a\n * \"runs on the live site\" note (anything server-side or costing money).\n */\nexport type BuilderBehaviour = 'run' | 'simulate' | 'inert';\n\n/** A configurable parameter, same shape ComponentMethodDef.params already uses. */\nexport interface ActionParamSpec {\n name: string;\n type: 'number' | 'string' | 'boolean' | 'page' | 'node' | 'form';\n label: string;\n /** Closed value set — the editor renders a select instead of a free text input. */\n options?: readonly { value: string; labelKey: string }[];\n}\n\n/** Does this action point at another node — and may it be any node, or only certain types / composite roles? */\nexport interface ActionTargetSpec {\n required: boolean;\n types?: string[];\n /** Only nodes playing one of these composite roles (`openItem` targets an accordion item or a disclosure). */\n roles?: string[];\n}\n\n/**\n * One row of an action catalog. Every field beyond `type`/`labelKey` is optional so the\n * pre-A0 forms descriptors remain valid verbatim.\n */\nexport interface ActionDescriptor {\n type: string;\n labelKey: string;\n kind?: ActionKind;\n group?: ActionGroup;\n builderBehaviour?: BuilderBehaviour;\n target?: ActionTargetSpec;\n params?: ActionParamSpec[];\n /** The connector that must be configured & healthy before this action is offerable. */\n connector?: string;\n /** Plan-entitlement key (AI plan D5). Absent = never gated by plan. */\n entitlement?: string;\n /** Always present in the list and not removable (forms: `store`). */\n locked?: boolean;\n /** Not offered yet — shown greyed with a \"coming soon\" note, so the roadmap is visible. */\n planned?: boolean;\n /** The only triggers it is offered under (premium M6): a count waits for its number to be seen, a depth and a reading\n * bar are the scroll's. Absent = every trigger. `actionOfferedUnder` reads it; so do the runtimes. */\n triggers?: ReadonlyArray<string>;\n}\n\n/**\n * The FORM after-submit catalog (moved verbatim from forms-core; `forms-core` re-exports it\n * under its old name `ACTION_DESCRIPTORS`). A1's element catalog is a SEPARATE constant —\n * the two lists share this shape, never one bucket.\n */\nexport const FORM_SUBMIT_ACTION_DESCRIPTORS: readonly ActionDescriptor[] = Object.freeze([\n { type: 'store', labelKey: 'forms.actions.store', locked: true, kind: 'server', group: 'data', builderBehaviour: 'inert' },\n { type: 'email', labelKey: 'forms.actions.email', kind: 'server', group: 'service', builderBehaviour: 'inert', connector: 'mailer' },\n { type: 'redirect', labelKey: 'forms.actions.redirect', kind: 'instant', group: 'navigate', builderBehaviour: 'simulate' },\n { type: 'createItem', labelKey: 'forms.actions.createItem', planned: true, kind: 'server', group: 'data', builderBehaviour: 'inert' },\n { type: 'webhook', labelKey: 'forms.actions.webhook', planned: true, kind: 'server', group: 'service', builderBehaviour: 'inert' },\n { type: 'autoReply', labelKey: 'forms.actions.autoReply', planned: true, kind: 'server', group: 'service', builderBehaviour: 'inert', connector: 'mailer' },\n]);\n\n/** Steps that can still be added to a list — each at most once, and never a planned one. */\nexport function addableActions(\n existing: readonly { type: string }[] = [],\n catalog: readonly ActionDescriptor[] = FORM_SUBMIT_ACTION_DESCRIPTORS,\n): ActionDescriptor[] {\n const used = new Set(existing.map(action => action.type));\n return catalog.filter(action => !action.locked && !action.planned && !used.has(action.type));\n}\n","import { ActionDescriptor } from './action.model';\n\n/**\n * K4 of the actions plan: four different reasons a catalog row is unavailable, four different\n * sentences — *coming soon* · *always on* · *connect X first* · *upgrade*. One resolver feeds\n * the picker AND the AI composer's validation, so they can never disagree.\n */\nexport type ActionAvailabilityState =\n | 'available'\n | 'planned' // not built yet — greyed, \"coming soon\"\n | 'locked' // always present, not addable/removable\n | 'connector-missing' // the named connector is not configured/healthy\n | 'entitlement-missing'; // the plan does not include it\n\nexport interface ActionAvailability {\n state: ActionAvailabilityState;\n /** Set when state is connector-missing / entitlement-missing — what to name in the message. */\n connector?: string;\n entitlement?: string;\n}\n\nexport interface ActionAvailabilityContext {\n /** Connector health by name. An absent map, or an absent key, means \"not known\" → allowed. */\n connectors?: Partial<Record<string, boolean>>;\n /**\n * Plan entitlements by key. `Plan.entitlements` does not exist yet anywhere (the known gap),\n * so an ABSENT map means \"no gating\" and every entitlement passes — the hook is live the day\n * the control plane starts sending them.\n */\n entitlements?: Partial<Record<string, boolean>>;\n}\n\nexport function resolveActionAvailability(\n descriptor: ActionDescriptor,\n ctx: ActionAvailabilityContext = {},\n): ActionAvailability {\n if (descriptor.planned) return { state: 'planned' };\n if (descriptor.locked) return { state: 'locked' };\n if (descriptor.connector && ctx.connectors && ctx.connectors[descriptor.connector] === false) {\n return { state: 'connector-missing', connector: descriptor.connector };\n }\n if (descriptor.entitlement && ctx.entitlements && ctx.entitlements[descriptor.entitlement] === false) {\n return { state: 'entitlement-missing', entitlement: descriptor.entitlement };\n }\n return { state: 'available' };\n}\n","/**\n * What an element that OPENS a dialog says about itself (CC1, N3 — APG disclosure/dialog pattern).\n * The element whose click runs `openDialog` / `toggleDialog` (a menu button, a bottom bar's More) is\n * announced as one: `aria-haspopup=\"dialog\"`, `aria-controls` = the dialog's DOM id, and\n * `aria-expanded` — `false` in the server render, kept in step on open and close by each runtime.\n *\n * ONE decision for every renderer (the builder canvas, the engine's component path and its string\n * path), framework-free so iox-cms can read it too. The dialog's DOM id comes from `dialogDomId`, the\n * one place that names it, so an opener and its dialog can never disagree.\n */\n\n/** The interaction trigger that opens a dialog from an element. */\nexport const DIALOG_OPENER_TRIGGER = 'click';\n\n/** The actions that make an element a dialog OPENER (close-only actions do not). */\nexport const DIALOG_OPENER_ACTION_TYPES: ReadonlySet<string> = new Set(['openDialog', 'toggleDialog', 'openConsentPreferences']);\n\n/** Every action that opens, closes or toggles a dialog — what a runtime watches to sync `aria-expanded`. */\nexport const DIALOG_ACTION_TYPE_SET: ReadonlySet<string> = new Set(['openDialog', 'closeDialog', 'toggleDialog']);\n\n/** The selector of every dialog a renderer emits (the live `<dialog data-iox-dialog>`). */\nexport const DIALOG_SELECTOR = 'dialog[data-iox-dialog]';\n\nconst DIALOG_ID_PREFIX = 'iox-dialog-';\n\n/** The DOM id of a Dialog node's `<dialog>` — what an opener's `aria-controls` names. */\nexport function dialogDomId(nodeId: string): string {\n return `${DIALOG_ID_PREFIX}${nodeId}`;\n}\n\n/** The node id a dialog DOM id names, or null. */\nexport function nodeIdOfDialogDomId(domId: string | null | undefined): string | null {\n return domId && domId.startsWith(DIALOG_ID_PREFIX) ? domId.slice(DIALOG_ID_PREFIX.length) : null;\n}\n\nexport enum OpenerAttribute {\n HasPopup = 'aria-haspopup',\n Expanded = 'aria-expanded',\n Controls = 'aria-controls',\n}\n\nexport interface OpenerActionLike {\n type?: string;\n target?: string;\n disabled?: boolean;\n}\n\nexport interface OpenerInteractionLike {\n trigger?: string;\n actions?: ReadonlyArray<OpenerActionLike> | null;\n}\n\nexport interface OpenerNodeLike {\n interactions?: ReadonlyArray<OpenerInteractionLike> | null;\n}\n\nconst SELF = 'self';\n\n/** The node id the element's click opens through one of `openerTypes` (its first enabled such action), or null —\n * the ONE reading every opener kind shares (a dialog's, a popover's). */\nexport function openedTargetId(node: OpenerNodeLike | null | undefined, openerTypes: ReadonlySet<string>): string | null {\n for (const ix of node?.interactions ?? []) {\n if (ix?.trigger !== DIALOG_OPENER_TRIGGER) continue;\n for (const action of ix.actions ?? []) {\n if (!action || action.disabled === true || !openerTypes.has(String(action.type))) continue;\n if (action.target && action.target !== SELF) return action.target;\n }\n }\n return null;\n}\n\n/** The Dialog node id the element's click opens (its first enabled opener action), or null. */\nexport function openedDialogId(node: OpenerNodeLike | null | undefined): string | null {\n return openedTargetId(node, DIALOG_OPENER_ACTION_TYPES);\n}\n\n/**\n * The opener attributes for a node: `{}` when its click opens no dialog, else\n * `aria-haspopup=\"dialog\"`, `aria-controls=\"iox-dialog-<id>\"` and `aria-expanded` (`false` unless\n * `open` says the dialog is open right now).\n */\nexport function dialogOpenerAttributes(node: OpenerNodeLike | null | undefined, open = false): Record<string, string> {\n const dialogId = openedDialogId(node);\n if (!dialogId) return {};\n return {\n [OpenerAttribute.HasPopup]: 'dialog',\n [OpenerAttribute.Controls]: dialogDomId(dialogId),\n [OpenerAttribute.Expanded]: open ? 'true' : 'false',\n };\n}\n\n/** The selector of every opener of one dialog (by its DOM id) — what a runtime updates on open/close. */\nexport function dialogOpenersSelector(dialogDomIdValue: string): string {\n return `[${OpenerAttribute.Controls}=\"${dialogDomIdValue}\"][${OpenerAttribute.HasPopup}=\"dialog\"]`;\n}\n","import { OpenerAttribute, OpenerNodeLike, openedTargetId } from './dialog-opener';\n\n/**\n * What an element that OPENS a popover says about itself (premium components M5, N4 — the APG disclosure pattern over a\n * non-modal dialog): `aria-haspopup=\"dialog\"`, `aria-controls` = the popover's DOM id, and `aria-expanded` — `false` in\n * the server render, kept in step by the runtime. ONE decision for every renderer, read the way a dialog opener is\n * (`openedTargetId`); the popover's DOM id comes from `popoverDomId`, the one place that names it.\n */\n\n/** The Popover node type. */\nexport const POPOVER_NODE_TYPE = 'Popover';\n\n/** The actions that open a popover (close-only actions do not make an opener). */\nexport const POPOVER_OPENER_ACTION_TYPES: ReadonlySet<string> = new Set(['openPopover', 'togglePopover']);\n\n/** Every action that opens, closes or toggles a popover — what the engines dispatch. */\nexport const POPOVER_ACTION_TYPE_SET: ReadonlySet<string> = new Set(['openPopover', 'closePopover', 'togglePopover']);\n\nconst POPOVER_ID_PREFIX = 'iox-popover-';\n\n/** The DOM id of a Popover node's panel — what an opener's `aria-controls` names. */\nexport function popoverDomId(nodeId: string): string {\n return `${POPOVER_ID_PREFIX}${nodeId}`;\n}\n\n/** The node id a popover DOM id names, or null. */\nexport function nodeIdOfPopoverDomId(domId: string | null | undefined): string | null {\n return domId && domId.startsWith(POPOVER_ID_PREFIX) ? domId.slice(POPOVER_ID_PREFIX.length) : null;\n}\n\n/** The Popover node id the element's click opens, or null. */\nexport function openedPopoverId(node: OpenerNodeLike | null | undefined): string | null {\n return openedTargetId(node, POPOVER_OPENER_ACTION_TYPES);\n}\n\n/** The opener attributes for a node: `{}` when its click opens no popover. */\nexport function popoverOpenerAttributes(node: OpenerNodeLike | null | undefined, open = false): Record<string, string> {\n const popoverId = openedPopoverId(node);\n if (!popoverId) return {};\n return {\n [OpenerAttribute.HasPopup]: 'dialog',\n [OpenerAttribute.Controls]: popoverDomId(popoverId),\n [OpenerAttribute.Expanded]: open ? 'true' : 'false',\n };\n}\n\n/** The selector of every opener of one popover (by its DOM id). */\nexport function popoverOpenersSelector(popoverDomIdValue: string): string {\n return `[${OpenerAttribute.Controls}=\"${popoverDomIdValue}\"]`;\n}\n","import { AccordionRole, CompositeItemAction, DisclosureRole, SegmentedRole, SLIDE_TO_ROW, TabsRole } from '@vectoriox/iox-ui/composite-core';\n\nimport { ActionDescriptor } from './action.model';\nimport { POPOVER_NODE_TYPE } from './popover-opener';\n\n/** The items an item action may target: an accordion's item, or a disclosure (its own one item). */\nconst ITEM_TARGET_ROLES = [AccordionRole.Item, DisclosureRole.Disclosure];\n/** Open also takes a TAB (CC4a) and a Segmented control's OPTION (CC4b, \"Turn on\"): it turns it on. Both always show\n * one, so Close and Toggle never aim at either. */\nconst OPEN_TARGET_ROLES = [...ITEM_TARGET_ROLES, TabsRole.Trigger, SegmentedRole.Option];\n\n/**\n * The ELEMENT action catalog (actions plan A1) — what a node can DO, as data. One list feeds the\n * grouped picker, the two interaction engines, and the AI composer's validation (§9: the model\n * picks actions BY NAME from this catalog and can never invent behaviour).\n *\n * Shipped rows (motion/visibility/context/swiper) are listed so the catalog is the WHOLE truth;\n * their `kind`/`builderBehaviour` make the long-standing implicit rules explicit — the canvas is\n * a live runtime (feedback_builder_live_runtime), navigate must SIMULATE, services are INERT.\n * Selling (E1c) and a buyer's account (E3a) went live once their subsystems existed; until then they shipped greyed with\n * the honest reason (D-A5).\n */\n/** The trigger whose actions the scroll plays (premium M6, N7). */\nexport const SCROLL_PROGRESS_TRIGGER = 'scrollProgress';\nconst SCROLL_ONLY: ReadonlyArray<string> = Object.freeze([SCROLL_PROGRESS_TRIGGER]);\n\n/**\n * The triggers a count waits on (premium M6, N5, D4): it plays the first time its number is seen, so only a trigger that\n * fires on its own — when it comes into view, or with the page in the first screen behind an entrance. Under a click or a\n * hover it would stand at its start value until pressed; it is never armed there, and never offered.\n */\n/** The plan feature selling sits behind (C-D18: the control plane's `features.shop`). */\nexport const SHOP_ENTITLEMENT = 'shop';\n\nexport const COUNT_UP_TRIGGERS: ReadonlyArray<string> = Object.freeze(['viewportEnter', 'pageLoad']);\n\n/**\n * AW9 (award plan \"Reddottours\", the dissolve): an element grows and fades as the scroll carries its range — `params.grow`\n * (its last scale, > 1), `params.hold` (it stays where it stands on screen while its range passes: the opening's picture,\n * walked through). Played by the scroll only; transform and opacity only (no blur — RT-D3).\n */\nexport const DISSOLVE_ACTION = 'dissolve';\n\nexport const ELEMENT_ACTION_DESCRIPTORS: readonly ActionDescriptor[] = Object.freeze([\n // ── Motion (shipped WAAPI actions — timing row applies) ──────────────────\n { type: 'fadeIn', labelKey: 'builder.actions.fadeIn', kind: 'animated', group: 'motion', builderBehaviour: 'run' },\n { type: 'fadeOut', labelKey: 'builder.actions.fadeOut', kind: 'animated', group: 'motion', builderBehaviour: 'run' },\n { type: 'moveUp', labelKey: 'builder.actions.moveUp', kind: 'animated', group: 'motion', builderBehaviour: 'run' },\n { type: 'moveDown', labelKey: 'builder.actions.moveDown', kind: 'animated', group: 'motion', builderBehaviour: 'run' },\n { type: 'moveLeft', labelKey: 'builder.actions.moveLeft', kind: 'animated', group: 'motion', builderBehaviour: 'run' },\n { type: 'moveRight',labelKey: 'builder.actions.moveRight',kind: 'animated', group: 'motion', builderBehaviour: 'run' },\n { type: 'scaleIn', labelKey: 'builder.actions.scaleIn', kind: 'animated', group: 'motion', builderBehaviour: 'run' },\n { type: 'scaleOut', labelKey: 'builder.actions.scaleOut', kind: 'animated', group: 'motion', builderBehaviour: 'run' },\n { type: 'rotate', labelKey: 'builder.actions.rotate', kind: 'animated', group: 'motion', builderBehaviour: 'run',\n params: [{ name: 'degrees', type: 'number', label: 'Degrees' }] },\n // SC3: the reveals. Each opens from where the author says and rests as the element itself.\n { type: 'clipReveal', labelKey: 'builder.actions.clipReveal', kind: 'animated', group: 'motion', builderBehaviour: 'run',\n params: [{ name: 'from', type: 'string', label: 'builder.actions.params.revealFrom', options: [\n { value: 'bottom', labelKey: 'builder.scene.from.bottom' },\n { value: 'top', labelKey: 'builder.scene.from.top' },\n { value: 'start', labelKey: 'builder.scene.from.start' },\n { value: 'end', labelKey: 'builder.scene.from.end' },\n { value: 'centre', labelKey: 'builder.scene.from.centre' },\n ] }] },\n { type: 'zoomOut', labelKey: 'builder.actions.zoomOut', kind: 'animated', group: 'motion', builderBehaviour: 'run' },\n // AW10 (AW10-D1…D4): letter by letter is a third way it comes in (a display line; joined scripts and long lines fall to\n // words, said in the panel); the Look is how each piece arrives — Rise travels up out of its mask, Light comes up from\n // dim and nothing travels (the Scene words track's dim).\n { type: 'revealText', labelKey: 'builder.actions.revealText', kind: 'animated', group: 'motion', builderBehaviour: 'run',\n params: [\n { name: 'by', type: 'string', label: 'builder.actions.params.revealBy', options: [\n { value: 'line', labelKey: 'builder.actions.params.byLine' },\n { value: 'word', labelKey: 'builder.actions.params.byWord' },\n { value: 'letter', labelKey: 'builder.actions.params.byLetter' },\n ] },\n { name: 'look', type: 'string', label: 'builder.actions.params.revealLook', options: [\n { value: 'rise', labelKey: 'builder.actions.params.lookRise' },\n { value: 'light', labelKey: 'builder.actions.params.lookLight' },\n ] },\n ] },\n // AW3 (Motion board, E5): a heading comes from a small blur into focus — the look's `blur-in` move; reduced → the fade.\n { type: 'blurIn', labelKey: 'builder.actions.blurIn', kind: 'animated', group: 'motion', builderBehaviour: 'run' },\n // Premium M6 (N5): a number that counts up ONCE, the first time it comes into view (D4); its final value is always the\n // node's own text, so it is what the page sends. Offered only where it can wait unseen for that moment.\n { type: 'countUp', labelKey: 'builder.actions.countUp', kind: 'animated', group: 'motion', builderBehaviour: 'run', triggers: COUNT_UP_TRIGGERS,\n params: [{ name: 'from', type: 'number', label: 'builder.actions.params.countFrom' }] },\n // Premium M6 (N7): what the SCROLL plays — a layer at a depth (round three's trio) and a reading bar. Offered under a\n // `scrollProgress` trigger only; the scroll also plays every entrance above.\n { type: 'parallax', labelKey: 'builder.actions.parallax', kind: 'animated', group: 'motion', builderBehaviour: 'run', triggers: SCROLL_ONLY,\n params: [{ name: 'depth', type: 'string', label: 'builder.actions.params.depth', options: [\n { value: 'back', labelKey: 'builder.actions.params.depthBack' },\n { value: 'front', labelKey: 'builder.actions.params.depthFront' },\n ] }] },\n { type: 'progressBar', labelKey: 'builder.actions.progressBar', kind: 'animated', group: 'motion', builderBehaviour: 'run', triggers: SCROLL_ONLY },\n // AW9: the opening's dissolve — what the scroll grows and fades as the first screen leaves (OPENING `motion.dissolve`).\n { type: DISSOLVE_ACTION, labelKey: 'builder.actions.dissolve', kind: 'animated', group: 'motion', builderBehaviour: 'run', triggers: SCROLL_ONLY },\n\n // ── Visibility (shipped) ─────────────────────────────────────────────────\n { type: 'show', labelKey: 'builder.actions.show', kind: 'instant', group: 'visibility', builderBehaviour: 'run' },\n { type: 'hide', labelKey: 'builder.actions.hide', kind: 'instant', group: 'visibility', builderBehaviour: 'run' },\n { type: 'toggleVisibility', labelKey: 'builder.actions.toggleVisibility', kind: 'instant', group: 'visibility', builderBehaviour: 'run' },\n\n // ── Navigate (A1 — Tier A) ───────────────────────────────────────────────\n { type: 'navigate', labelKey: 'builder.actions.navigate', kind: 'instant', group: 'navigate', builderBehaviour: 'simulate',\n params: [\n { name: 'navigateTo', type: 'string', label: 'Destination' }, // 'page' | 'url' | 'back'\n { name: 'page', type: 'page', label: 'Page' },\n { name: 'url', type: 'string', label: 'URL' },\n ] },\n { type: 'scrollTo', labelKey: 'builder.actions.scrollTo', kind: 'instant', group: 'navigate', builderBehaviour: 'run',\n target: { required: false } },\n\n // ── Dialog (A1 — needs the Dialog component, A1b) ───────────────────────\n // CC3 (board 6): \"Open at the clicked item\" — `slideTo: 'row'` opens a lightbox at the clicked thumbnail's slide.\n { type: 'openDialog', labelKey: 'builder.actions.openDialog', kind: 'instant', group: 'dialog', builderBehaviour: 'run',\n target: { required: true, types: ['Dialog'] },\n params: [{ name: 'slideTo', type: 'string', label: 'builder.actions.params.slideTo', options: [{ value: SLIDE_TO_ROW, labelKey: 'builder.actions.params.slideToRow' }] }] },\n { type: 'closeDialog', labelKey: 'builder.actions.closeDialog', kind: 'instant', group: 'dialog', builderBehaviour: 'run',\n target: { required: true, types: ['Dialog'] } },\n { type: 'toggleDialog', labelKey: 'builder.actions.toggleDialog', kind: 'instant', group: 'dialog', builderBehaviour: 'run',\n target: { required: true, types: ['Dialog'] } },\n\n // ── Popover (premium M5, N4): an anchored, NON-modal panel beside the element that opens it. The canvas RUNS them,\n // like the dialog actions — a popover you cannot open from its button is a popover you cannot design.\n { type: 'openPopover', labelKey: 'builder.actions.openPopover', kind: 'instant', group: 'popover', builderBehaviour: 'run',\n target: { required: true, types: [POPOVER_NODE_TYPE] } },\n { type: 'closePopover', labelKey: 'builder.actions.closePopover', kind: 'instant', group: 'popover', builderBehaviour: 'run',\n target: { required: true, types: [POPOVER_NODE_TYPE] } },\n { type: 'togglePopover', labelKey: 'builder.actions.togglePopover', kind: 'instant', group: 'popover', builderBehaviour: 'run',\n target: { required: true, types: [POPOVER_NODE_TYPE] } },\n\n // ── Notice (premium M5, N3): a toast at an edge of the screen — the author's words, never the visitor's. The canvas\n // RUNS it inside the page's frame.\n { type: 'showToast', labelKey: 'builder.actions.showToast', kind: 'instant', group: 'notice', builderBehaviour: 'run',\n params: [\n { name: 'text', type: 'string', label: 'builder.actions.params.toastText' },\n { name: 'edge', type: 'string', label: 'builder.actions.params.toastEdge', options: [\n { value: 'bottom', labelKey: 'builder.actions.params.toastBottom' },\n { value: 'top', labelKey: 'builder.actions.params.toastTop' },\n ] },\n ] },\n\n // ── Item (CC2.1 — composite T14): drive an accordion item or a disclosure from anywhere (\"See shipping\"\n // opens FAQ item 3). The canvas RUNS them, like the dialog actions: it is the same runtime, and an item you\n // cannot open from the button is a button you cannot design.\n { type: 'openItem', labelKey: 'builder.actions.openItem', kind: 'instant', group: 'item', builderBehaviour: 'run',\n target: { required: true, roles: OPEN_TARGET_ROLES } },\n { type: 'closeItem', labelKey: 'builder.actions.closeItem', kind: 'instant', group: 'item', builderBehaviour: 'run',\n target: { required: true, roles: ITEM_TARGET_ROLES } },\n { type: 'toggleItem', labelKey: 'builder.actions.toggleItem', kind: 'instant', group: 'item', builderBehaviour: 'run',\n target: { required: true, roles: ITEM_TARGET_ROLES } },\n\n // ── Form (A1 — Tier A; the submit transport is the forms module's, I7 of its plan) ──\n // simulate in the CANVAS: the builder's Form is a container twin with no real <form>,\n // so there is nothing honest to run — the live engine requestSubmit()s the real one.\n { type: 'submitForm', labelKey: 'builder.actions.submitForm', kind: 'instant', group: 'form', builderBehaviour: 'simulate',\n target: { required: true, types: ['Form'] } },\n\n // ── Data (shipped context actions + the one trivial newcomer) ───────────\n { type: 'setContext', labelKey: 'builder.actions.setContext', kind: 'instant', group: 'data', builderBehaviour: 'run' },\n { type: 'clearContext', labelKey: 'builder.actions.clearContext', kind: 'instant', group: 'data', builderBehaviour: 'run' },\n { type: 'copyToClipboard', labelKey: 'builder.actions.copyToClipboard', kind: 'instant', group: 'data', builderBehaviour: 'run',\n params: [{ name: 'text', type: 'string', label: 'Text' }] },\n\n // ── Consent (C3 — the banner's vocabulary; all pure writes of the consent cookie) ──\n // The canvas SIMULATES the recording ones: the builder runs in the ADMIN's browser, and an\n // admin's cookie is not a visitor's decision. Opening the preferences dialog is honest to run.\n { type: 'grantConsent', labelKey: 'builder.actions.grantConsent', kind: 'instant', group: 'consent', builderBehaviour: 'simulate' },\n { type: 'denyConsent', labelKey: 'builder.actions.denyConsent', kind: 'instant', group: 'consent', builderBehaviour: 'simulate' },\n { type: 'setConsentCategory', labelKey: 'builder.actions.setConsentCategory', kind: 'instant', group: 'consent', builderBehaviour: 'simulate',\n params: [\n { name: 'category', type: 'string', label: 'Category', options: [\n { value: 'analytics', labelKey: 'builder.actions.params.categoryAnalytics' },\n { value: 'marketing', labelKey: 'builder.actions.params.categoryMarketing' },\n ] },\n { name: 'granted', type: 'boolean', label: 'Granted' },\n ] },\n { type: 'openConsentPreferences', labelKey: 'builder.actions.openConsentPreferences', kind: 'instant', group: 'consent', builderBehaviour: 'run',\n target: { required: true, types: ['Dialog'] } },\n\n // ── Server actions (A2 — Tier B): the canvas SIMULATES, the LIVE site POSTs the node's\n // identity to ONE public route and the server re-derives the spec from the SAVED page.\n // The author's saved params are the whole spec — a visitor contributes only the click.\n { type: 'sendEmail', labelKey: 'builder.actions.sendEmail', kind: 'server', group: 'service', builderBehaviour: 'simulate',\n connector: 'mailer',\n params: [\n { name: 'to', type: 'string', label: 'To' },\n { name: 'subject', type: 'string', label: 'Subject' },\n { name: 'message', type: 'string', label: 'Message' },\n ] },\n { type: 'callWebhook', labelKey: 'builder.actions.callWebhook', kind: 'server', group: 'service', builderBehaviour: 'simulate',\n params: [\n { name: 'url', type: 'string', label: 'URL' }, // non-secret config (K2); the server SSRF-guards it\n ] },\n { type: 'createItem', labelKey: 'builder.actions.createItem', kind: 'server', group: 'data', builderBehaviour: 'simulate',\n params: [\n { name: 'contentType', type: 'string', label: 'Content type' },\n { name: 'values', type: 'string', label: 'Field values (JSON)' },\n ] },\n\n // ── Shop (commerce E1c, C-D16): the shop parts' behaviour, run by composite-core's shop runtime through the host's\n // cart transport (forms' transport rule — the part owns no HTTP). Add to cart SIMULATES on the canvas: the drawer opens\n // with a sample line and no cart is written (T8). Buy now is INERT there — it must never take anyone to a payment.\n // Gated by the ONE plan feature `features.shop` (C-D18); a manual payment method needs no payment connector (E1).\n { type: 'addToCart', labelKey: 'builder.actions.addToCart', kind: 'server', group: 'shop', builderBehaviour: 'simulate',\n entitlement: SHOP_ENTITLEMENT },\n { type: 'startCheckout', labelKey: 'builder.actions.startCheckout', kind: 'server', group: 'shop', builderBehaviour: 'inert',\n entitlement: SHOP_ENTITLEMENT },\n\n // ── Account (commerce E3a, C-D5/C-D6): a buyer signs in by an email code or Google and out again, through the\n // host's site-auth transport (composite-core `AccountRuntime`, the part owns no HTTP). The canvas SIMULATES both:\n // Sign in opens the page's sign-in dialog over a simulated transport (a sample customer, no session — the ADMIN's\n // browser is never a buyer), Sign out returns the parts to signed out. Behind the ONE plan feature `features.shop`\n // (\"Shop and customer sign-in\", C-D18). No target: the runtime opens the page's ONE sign-in dialog.\n { type: 'signIn', labelKey: 'builder.actions.signIn', kind: 'server', group: 'account', builderBehaviour: 'simulate',\n entitlement: SHOP_ENTITLEMENT },\n { type: 'signOut', labelKey: 'builder.actions.signOut', kind: 'server', group: 'account', builderBehaviour: 'simulate',\n entitlement: SHOP_ENTITLEMENT },\n]);\n\n/** The account actions' dispatch set (commerce E3a) — the engines branch on it beside SHOP and hand the action to\n * composite-core `runAccountAction`. */\nexport const ACCOUNT_ACTION_TYPES: ReadonlySet<string> = new Set(['signIn', 'signOut']);\n\n/** The shop actions' dispatch set (commerce E1c) — the engines branch on it beside DIALOG / BEHAVIOUR and hand the action\n * to composite-core `runShopAction`, which reads the product, the variant and the quantity around the element. */\nexport const SHOP_ACTION_TYPES: ReadonlySet<string> = new Set(['addToCart', 'startCheckout']);\n\n/** The A2 server executors' dispatch set — the live engine POSTs these to the public actions\n * route; the canvas simulates them (a server action never runs from the ADMIN's browser). */\nexport const SERVER_ELEMENT_ACTION_TYPES: ReadonlySet<string> =\n new Set(['sendEmail', 'callWebhook', 'createItem']);\n\n/** The Tier-A behaviour executors' dispatch set (A1c) — the engines branch on it beside\n * DIALOG/SWIPER. Dialog actions have their own set; context/visibility stay in the legacy path. */\nexport const BEHAVIOUR_ACTION_TYPES: ReadonlySet<string> =\n new Set(['navigate', 'scrollTo', 'submitForm', 'copyToClipboard']);\n\n/** FV1b (footer `holds.top`): a `scrollTo` with no target — or `self` — scrolls the PAGE to its top. The live engine's\n * rule since A1c; ONE rule both renderers ask (the canvas joins once it builds against this version). */\nexport function scrollsToPageTop(action: { readonly type: string; readonly target?: string | null }): boolean {\n return action.type === 'scrollTo' && (!action.target || action.target === 'self');\n}\n\n/** The toast action's dispatch set (premium M5) — the engines branch on it beside DIALOG / POPOVER. */\nexport const TOAST_ACTION_TYPES: ReadonlySet<string> = new Set(['showToast']);\n\n/** The item actions' dispatch set (T14) and what each does to its item — the engines branch on it beside\n * DIALOG/BEHAVIOUR, and composite-core `runCompositeItemAction` runs it on the target item's own runtime. */\nexport const ITEM_ACTION_TYPES: Readonly<Record<string, CompositeItemAction>> = Object.freeze({\n openItem: CompositeItemAction.Open,\n closeItem: CompositeItemAction.Close,\n toggleItem: CompositeItemAction.Toggle,\n});\n\n/** The item action an action type runs, or null when it is not one. */\n/** True when an `openDialog` action opens its dialog at the clicked row's slide (CC3 \"Open at the clicked item\"). */\nexport function opensAtClickedItem(action: { type?: string; params?: Record<string, unknown> | null } | null | undefined): boolean {\n return action?.type === 'openDialog' && action.params?.['slideTo'] === SLIDE_TO_ROW;\n}\n\nexport function itemActionOf(type: string | null | undefined): CompositeItemAction | null {\n return (type && ITEM_ACTION_TYPES[type]) || null;\n}\n\n/** The consent actions' dispatch set (C3) — the engines branch on it beside DIALOG/BEHAVIOUR.\n * `openConsentPreferences` is dialog-opening by nature and included so ONE branch owns consent. */\nexport const CONSENT_ACTION_TYPES: ReadonlySet<string> =\n new Set(['grantConsent', 'denyConsent', 'setConsentCategory', 'openConsentPreferences']);\n\n/** Picker order — most-used groups first, services last (they are the shop window, not the shop). */\nexport const ELEMENT_ACTION_GROUP_ORDER: readonly string[] =\n Object.freeze(['motion', 'visibility', 'navigate', 'dialog', 'popover', 'notice', 'item', 'form', 'data', 'consent', 'shop', 'account', 'service']);\n\n/** True when `d` is offered under `trigger` (its `triggers`, else every trigger) — the picker's rule and the runtimes'. */\nexport function actionOfferedUnder(d: Pick<ActionDescriptor, 'triggers'>, trigger: string | null | undefined): boolean {\n return !d.triggers || (!!trigger && d.triggers.includes(trigger));\n}\n\n/** The catalog, grouped and ordered for the picker — one derivation, no hand-kept second list. `keep` narrows it (the\n * picker keeps what its trigger offers — `actionOfferedUnder` — and, under `scrollProgress`, what the scroll can play). */\nexport function groupedElementActions(keep: (d: ActionDescriptor) => boolean = () => true): ReadonlyArray<{ group: string; actions: ActionDescriptor[] }> {\n return ELEMENT_ACTION_GROUP_ORDER\n .map(group => ({ group, actions: ELEMENT_ACTION_DESCRIPTORS.filter(d => d.group === group && keep(d)) }))\n .filter(g => g.actions.length > 0);\n}\n","/**\n * How a dialog LEAVES (CC1 follow-up — the drawer that vanished). Opening is pure CSS (`@starting-style`\n * in the shared `iox-design.css`); closing needs one beat of script, because `dialog.close()` drops the\n * top layer at once and only some browsers can hold it for a transition (`overlay … allow-discrete`).\n *\n * The ONE exit every renderer runs: mark the element closing (`data-iox-closing` — the shared CSS gives it\n * its closed look: the drawer back off its edge, the scrim clear), wait for the transitions that started,\n * then finish. Reduced motion (or a stub with no animations) finishes now. Framework-free: the engine's\n * every close path (actions, the X, the backdrop, Esc, the close-above watcher) and the builder canvas's\n * stage share it.\n */\n\nexport const DIALOG_CLOSING_ATTRIBUTE = 'data-iox-closing';\n\n/** Longest an exit may hold the element before it finishes anyway — a transition that never ends (a\n * value that did not change, a tab in the background) must not leave a dialog half-closed. */\nexport const DIALOG_EXIT_TIMEOUT_MS = 700;\n\nexport interface ExitAnimationLike {\n finished: Promise<unknown>;\n /** A DOM `Animation`'s effect — `endTime` is a CSSNumberish there (a number for every time-based animation). */\n effect?: { getComputedTiming?: () => { endTime?: unknown } } | null;\n}\n\nexport interface ExitMotionElement {\n setAttribute(name: string, value: string): void;\n removeAttribute(name: string): void;\n hasAttribute(name: string): boolean;\n getAnimations?: (options?: { subtree?: boolean }) => ExitAnimationLike[];\n}\n\nexport interface DialogElementLike extends ExitMotionElement {\n open: boolean;\n close(): void;\n}\n\nexport interface ExitMotionOptions {\n /** False under reduced motion: finish at once (the caller asks `motionAllowed()`). */\n animate: boolean;\n timeoutMs?: number;\n}\n\n/** True while an exit is running on the element (a second close waits on it; an open cancels it). */\nexport function isExiting(el: ExitMotionElement | null | undefined): boolean {\n return !!el?.hasAttribute(DIALOG_CLOSING_ATTRIBUTE);\n}\n\n/** Stop an exit that is running (the dialog was opened again mid-close): it stays open. */\nexport function cancelExit(el: ExitMotionElement | null | undefined): void {\n el?.removeAttribute(DIALOG_CLOSING_ATTRIBUTE);\n}\n\nconst finite = (a: ExitAnimationLike) => {\n const end = a.effect?.getComputedTiming?.().endTime;\n return typeof end !== 'number' || Number.isFinite(end);\n};\n\n/**\n * Run the exit: mark the element, wait for its finite animations (its subtree's too — the drawer's links,\n * the `::backdrop`) or the timeout. Resolves TRUE when the exit completed and the caller should finish\n * (close / remove), FALSE when it was cancelled meanwhile. The mark stays on until the caller finishes.\n */\nexport async function runExitMotion(el: ExitMotionElement, options: ExitMotionOptions): Promise<boolean> {\n el.setAttribute(DIALOG_CLOSING_ATTRIBUTE, '');\n if (!options.animate) return true;\n // Reading the animations flushes style, so the transitions the mark just started are in the list.\n const running = (el.getAnimations?.({ subtree: true }) ?? []).filter(finite);\n if (running.length) {\n const timeout = options.timeoutMs ?? DIALOG_EXIT_TIMEOUT_MS;\n let timer: ReturnType<typeof setTimeout> | undefined;\n await Promise.race([\n Promise.all(running.map(a => a.finished.catch(() => undefined))),\n new Promise<void>(resolve => { timer = setTimeout(resolve, timeout); }),\n ]);\n if (timer !== undefined) clearTimeout(timer);\n }\n return isExiting(el);\n}\n\nconst pending = new WeakMap<object, Promise<void>>();\n\n/**\n * Close a live `<dialog>` with its exit motion. A second call while it is closing joins the first; an open\n * in between (`cancelExit`) keeps it open. The dialog's own `close` event still fires once, after the\n * motion — so whatever a runtime does on close (restart the page scroll, sync the openers, return focus)\n * happens when the dialog is really gone.\n */\nexport function closeDialogAnimated(el: DialogElementLike, options: ExitMotionOptions): Promise<void> {\n if (!el.open) return Promise.resolve();\n const running = pending.get(el);\n if (running && isExiting(el)) return running;\n const done = runExitMotion(el, options).then(finish => {\n pending.delete(el);\n if (!finish) return;\n if (el.open) el.close();\n cancelExit(el);\n });\n pending.set(el, done);\n return done;\n}\n\n/** True when a toggle should CLOSE the dialog: it is open and not already on its way out. */\nexport function dialogTogglesClosed(el: Pick<DialogElementLike, 'open' | 'hasAttribute'>): boolean {\n return el.open && !el.hasAttribute(DIALOG_CLOSING_ATTRIBUTE);\n}\n\n/** The element-style marker a styled dialog carries (design-core ELEMENT_STYLE_MARKER_CLASS — actions-core does not\n * import design-core). */\nconst STYLED_DIALOG_CLASS = 'iox-es';\n\nexport interface FocusableSheet {\n classList: { contains(token: string): boolean };\n querySelector(selector: string): unknown;\n hasAttribute(name: string): boolean;\n setAttribute(name: string, value: string): void;\n focus(options?: FocusOptions): void;\n}\n\n/**\n * A styled dialog a visitor just opened takes focus on its SHEET (premium components M4 — M1.1's carry-over). A bare\n * `showModal()` focuses its first control, and a phone can ring it after a tap; the sheet never rings (iox-design.css) and\n * the first Tab moves to that control, with its ring. A dialog with an author's `[autofocus]` keeps it; a dialog saved\n * before element styles keeps the browser's behaviour. True when the sheet took focus.\n */\nexport function focusDialogSheet(dialog: FocusableSheet | null | undefined): boolean {\n if (!dialog || !dialog.classList.contains(STYLED_DIALOG_CLASS) || dialog.querySelector('[autofocus]')) return false;\n if (!dialog.hasAttribute('tabindex')) dialog.setAttribute('tabindex', '-1');\n dialog.focus({ preventScroll: true });\n return true;\n}\n","import { dialogOpenersSelector } from './dialog-opener';\nimport { DIALOG_CLOSING_ATTRIBUTE } from './dialog-motion';\n\n/**\n * Where a menu's REVEAL grows from (header-ingredients HI2a; header-builder board 2: \"origin = the opener's centre\"). A\n * zoom scales about it, a circle and the torn edge open from it — so the menu reads as coming OUT of the button that opened\n * it. The reveals themselves are CSS transitions in the shared `iox-design.css` (Emil: a menu toggles, so it must reverse\n * from its live value — a transition, never keyframes); the one beat of script is this: put the opener's centre, in the\n * menu's own box, into two custom properties when the menu opens. ONE function for the live page and the builder canvas\n * (each passes its own box measure). Framework-free.\n */\n\nexport enum RevealOriginProperty {\n X = '--reveal-x',\n Y = '--reveal-y',\n /** How far the reveal must grow to cover the menu: the distance to its farthest corner (a circle of this radius,\n * centred on the origin, covers the whole box — so the reveal spends its time ON the menu, not past it). */\n R = '--reveal-r',\n}\n\nexport interface RevealOriginPoint {\n x: number;\n y: number;\n r: number;\n}\n\nexport interface RevealRect {\n left: number;\n top: number;\n width: number;\n height: number;\n}\n\nexport interface RevealOriginOptions {\n /** Opener space → the menu's CSS px (the builder canvas is zoomed: its rects are scaled). Default 1. */\n scale?: number;\n /** With no opener, the menu's top-LEFT corner (a start-side menu in LTR, an end-side one in RTL); else top-right. */\n atLeft?: boolean;\n}\n\n/**\n * The reveal origin in the menu's own box (CSS px, from its top-left border edge): the opener's centre, or — opened by\n * anything else (a link, an action on another element) — the menu's top corner on its side. `box` is the menu's\n * UNTRANSFORMED box, in the same space as the opener's rect. Pure.\n */\nexport function revealOrigin(opener: RevealRect | null | undefined, box: RevealRect, options: RevealOriginOptions = {}): RevealOriginPoint {\n const scale = options.scale && options.scale > 0 ? options.scale : 1;\n const width = box.width / scale;\n const height = box.height / scale;\n const at = !opener || !(opener.width > 0 || opener.height > 0)\n ? { x: Math.round(options.atLeft ? 0 : width), y: 0 }\n : { x: Math.round(((opener.left + opener.width / 2) - box.left) / scale), y: Math.round(((opener.top + opener.height / 2) - box.top) / scale) };\n const r = Math.ceil(Math.max(...[[0, 0], [width, 0], [0, height], [width, height]].map(([cx, cy]) => Math.hypot(cx - at.x, cy - at.y))));\n return { ...at, r };\n}\n\n/** The custom properties for an origin. */\nexport function revealOriginStyle(origin: RevealOriginPoint): Record<RevealOriginProperty, string> {\n return { [RevealOriginProperty.X]: `${origin.x}px`, [RevealOriginProperty.Y]: `${origin.y}px`, [RevealOriginProperty.R]: `${origin.r}px` };\n}\n\n/** An element whose inline style a hold may switch (structural). */\nexport interface RevealStyled {\n style: { getPropertyValue(name: string): string; setProperty(name: string, value: string): void; removeProperty(name: string): string };\n}\n\n/** The element whose `data-iox-closing` puts the menu in its closed shape (the live `<dialog>` itself; the canvas's stage). */\nexport interface RevealClosingMarker {\n hasAttribute(name: string): boolean;\n setAttribute(name: string, value: string): void;\n removeAttribute(name: string): void;\n}\n\n/**\n * Write a reveal's origin with the menu HELD in its closed shape — marked closing, its own transitions off — then let it go,\n * so its opening transition starts from the closed shape AT the new origin. Without the hold, the first style the browser\n * computes after the menu shows (showModal, a focus, the measure itself) starts the transition from the CSS default\n * corner, and a circle opened from a start-side button sweeps across the bar from the far corner before it grows. `flush`\n * reads a computed style (the closed shape at the new origin, at once); a transition already running is dropped by it.\n * ONE rule for the live page (`revealFrom`) and the builder canvas.\n */\nexport function holdClosedWhile(menu: RevealStyled, marker: RevealClosingMarker, write: () => void, flush: () => void): void {\n const marked = marker.hasAttribute(DIALOG_CLOSING_ATTRIBUTE);\n const inline = menu.style.getPropertyValue('transition');\n menu.style.setProperty('transition', 'none');\n if (!marked) marker.setAttribute(DIALOG_CLOSING_ATTRIBUTE, '');\n try {\n write();\n flush();\n } finally {\n if (!marked) marker.removeAttribute(DIALOG_CLOSING_ATTRIBUTE);\n if (inline) menu.style.setProperty('transition', inline);\n else menu.style.removeProperty('transition');\n }\n}\n\n/** What `revealFrom` needs of a live `<dialog>` (structural, so the spec drives it without a DOM). */\nexport interface RevealDialogLike extends RevealStyled, RevealClosingMarker {\n id: string;\n offsetWidth: number;\n offsetHeight: number;\n getAttribute(name: string): string | null;\n ownerDocument: {\n defaultView: {\n getComputedStyle(el: unknown): { marginLeft: string; marginTop: string; direction: string; getPropertyValue(name: string): string };\n } | null;\n querySelectorAll(selector: string): ArrayLike<RevealOpenerLike>;\n } | null;\n}\n\nexport interface RevealOpenerLike {\n getBoundingClientRect(): RevealRect;\n getClientRects?(): ArrayLike<unknown>;\n}\n\nconst rendered = (el: RevealOpenerLike | null | undefined): el is RevealOpenerLike => {\n if (!el) return false;\n if (el.getClientRects && !el.getClientRects().length) return false;\n const r = el.getBoundingClientRect();\n return r.width > 0 || r.height > 0;\n};\n\n/**\n * Set a just-opened live `<dialog>`'s reveal origin from the element that opened it (`opener`), else from the first of its\n * openers that is on screen (`aria-controls` — the menu button at its width), else its top corner — held in its closed\n * shape while it is written (`holdClosedWhile`). Call it right after `showModal()`, before anything else reads a style. A top-layer dialog is fixed at `inset: 0`, so its untransformed box starts at its USED margins — a\n * reveal's starting scale or translate never moves a margin, whereas `getBoundingClientRect` would read it.\n */\nexport function revealFrom(dialog: RevealDialogLike | null | undefined, opener?: RevealOpenerLike | null): void {\n const view = dialog?.ownerDocument?.defaultView;\n if (!dialog || !view) return;\n holdClosedWhile(dialog, dialog, () => {\n const cs = view.getComputedStyle(dialog);\n const box = { left: parseFloat(cs.marginLeft) || 0, top: parseFloat(cs.marginTop) || 0, width: dialog.offsetWidth, height: dialog.offsetHeight };\n const from = rendered(opener) ? opener\n : dialog.id ? Array.from(dialog.ownerDocument!.querySelectorAll(dialogOpenersSelector(dialog.id))).find(rendered) ?? null : null;\n const atLeft = (dialog.getAttribute('data-iox-dialog-placement') === 'start') !== (cs.direction === 'rtl');\n const origin = revealOrigin(from ? from.getBoundingClientRect() : null, box, { atLeft });\n for (const [name, value] of Object.entries(revealOriginStyle(origin))) dialog.style.setProperty(name, value);\n }, () => { view.getComputedStyle(dialog).getPropertyValue('clip-path'); });\n}\n","import { CHECKOUT_PATH } from '@vectoriox/iox-ui/commerce-core';\nimport {\n POPUP_KIND_ARRIVAL, POPUP_KIND_MIX, PopupAgain, PopupArrive, PopupForm, popupFormOf, PopupKind, PopupTrait,\n} from '@vectoriox/iox-ui/composite-core';\nimport { ACCOUNT_PATH } from '@vectoriox/iox-ui/identity-core';\n\n/**\n * WHEN A SELF-ARRIVING OVERLAY MAY SHOW (popups-plan.md §4–§5, PU-D4…PU-D9, PU-D17) — the ONE planner. The engine's runtime\n * only reports state and obeys; the builder's canvas never asks it (a popup never arrives on the canvas, PU-D14).\n *\n * overlayTurn(state) → 'preloader' | 'consent' | 'popup:<id>' | 'none'\n * 1. a first visit's preloader is showing → nothing else\n * 2. the consent debt is unpaid → the banner only (a popup never opens over or before it)\n * 3. any dialog, drawer, cart, sign-in or lightbox is open → wait\n * 4. the route is quiet → no popup\n * 5. a popup already arrived in this page view → no second one\n * 6. otherwise the first DUE popup (page before global, then tree order) → its clock starts NOW\n *\n * A popup's clock starts when its TURN starts — `time` counts from then, `scroll` needs a scroll after it. The consent\n * banner's own arrival (AW2 `arrive.delay`: the first scroll or 6 s) is planned here too (`planConsentArrival`), so every\n * self-arriving overlay has one arrival rule. Memory (PU-D6/PU-D7): localStorage, no identifier, never sent — Necessary.\n * Pure and framework-free: no DOM, no clock (`now` is passed in).\n *\n * The numbers are the contract's (layout.mjs POPUP `rules`; generation-core's popup spec holds them equal).\n */\n\n/** POPUP `rules` — mirrored, held equal to the contract by generation-core's spec. */\nexport const POPUP_RULES = Object.freeze({\n minSeconds: 3,\n scrollScreens: 0.5,\n timeSeconds: 8,\n leavingAfterSeconds: 10,\n phoneLeavingSeconds: 25,\n phoneMaxHeight: 0.3,\n memoryDays: 30,\n reducedFadeMs: 200,\n exitRatio: 0.55,\n durationByAnimated: Object.freeze({ still: 200, subtle: 350, standard: 450, lively: 550, expressive: 600 }),\n quietRoutes: Object.freeze(['checkout', 'order', 'account', 'sign-in', 'legal', 'not-found', 'recover', 'unsubscribe']),\n});\n\n/** AW2 (CONSENT `rules.delayMs`): the banner's `arrive.delay` — the first scroll, or this many ms. */\nexport const CONSENT_DELAY_MS = 6000;\n\n// ── the order ─────────────────────────────────────────────────────────────────────────────────────────────────────────\n\nexport enum OverlayTurnKind {\n Preloader = 'preloader',\n Consent = 'consent',\n None = 'none',\n}\n\n/** `popup:<id>` — the popup whose clock runs now. */\nexport type OverlayTurn = OverlayTurnKind | `popup:${string}`;\n\nexport const POPUP_TURN_PREFIX = 'popup:';\n\nexport interface OverlayState {\n /** A first visit's preloader is on screen (AW5). */\n preloaderShowing: boolean;\n /** The consent banner is owed (consent-core `needsPrompt`) — paid by the visitor's decision. */\n consentOwed: boolean;\n /** A dialog, drawer, cart, sign-in or lightbox is open (a popup never opens over it). */\n otherOverlayOpen: boolean;\n /** The page is a quiet route (`isQuietRoute`). */\n quietRoute: boolean;\n /** A popup already arrived in this page view. */\n popupArrivedThisView: boolean;\n /** The popups that are DUE (`popupDue`), page popups first, then globals, each in tree order. */\n due: ReadonlyArray<string>;\n}\n\n/** Whose turn it is (§4b). */\nexport function overlayTurn(state: OverlayState): OverlayTurn {\n if (state.preloaderShowing) return OverlayTurnKind.Preloader;\n if (state.consentOwed) return OverlayTurnKind.Consent;\n if (state.otherOverlayOpen || state.quietRoute || state.popupArrivedThisView) return OverlayTurnKind.None;\n const first = state.due[0];\n return first ? `${POPUP_TURN_PREFIX}${first}` : OverlayTurnKind.None;\n}\n\n/** The popup id of a turn, or null. */\nexport function popupOfTurn(turn: OverlayTurn): string | null {\n return turn.startsWith(POPUP_TURN_PREFIX) ? turn.slice(POPUP_TURN_PREFIX.length) : null;\n}\n\n// ── quiet routes ──────────────────────────────────────────────────────────────────────────────────────────────────────\n\nexport interface RouteInfo {\n /** The page's app path, without the org label (`/checkout/r/abc`, `/menu`). */\n path: string;\n /** The page is a stamped legal page (LEGAL kinds — found by its kind). */\n legal?: boolean;\n /** The 404 page. */\n notFound?: boolean;\n}\n\n/** The first path segments that are quiet: commerce's fixed checkout (its order, recover and unsubscribe links live under\n * it) and the buyer's account (where a buyer signs in). */\nconst QUIET_SEGMENTS: ReadonlyArray<string> = [CHECKOUT_PATH, ACCOUNT_PATH];\n\n/** PU-D9: a popup never arrives here. */\nexport function isQuietRoute(route: RouteInfo): boolean {\n if (route.legal || route.notFound) return true;\n const first = (route.path ?? '').split('?')[0].split('#')[0].split('/').filter(Boolean)[0] ?? '';\n return QUIET_SEGMENTS.includes(first.toLowerCase());\n}\n\n// ── arrival ───────────────────────────────────────────────────────────────────────────────────────────────────────────\n\n/** The trigger a planned arrival waits on. `now` = at once (the consent banner's `arrive.load`); `never` = only a button. */\nexport enum ArrivalTrigger {\n Now = 'now',\n Scroll = 'scroll',\n Time = 'time',\n ScrollOrTime = 'scrollOrTime',\n /** PU2b: a laptop's mouse leaves through the top of the window, after `seconds` on the page. */\n Leaving = 'leaving',\n Never = 'never',\n}\n\nexport interface ArrivalPlan {\n trigger: ArrivalTrigger;\n /** A share of the FIRST screen the visitor scrolls (0 = any real scroll). */\n screens: number | null;\n /** A share of the whole PAGE scrolled, instead of screens. */\n pageShare: number | null;\n /** Visible seconds on the page, counted from the turn's start. */\n seconds: number | null;\n}\n\n/** What the runtime measures, from the moment the turn started. */\nexport interface ArrivalProgress {\n /** The visitor's own scroll since the turn started, px (a programmatic scroll is never counted). */\n scrolledPx: number;\n /** The page's current scroll position, px — for a page share. */\n scrollY: number;\n viewportHeight: number;\n pageHeight: number;\n /** Seconds the tab was visible since the turn started. */\n visibleSeconds: number;\n /** PU2b: the visible seconds at the visitor's LATEST exit through the top of the window (a fine pointer's), or none.\n * An exit before the planned seconds does not count; the next one after them does. */\n leftTopAtSeconds?: number | null;\n}\n\nexport interface ArrivalEnv {\n /** `(hover: hover) and (pointer: fine)` — a laptop's mouse. */\n finePointer: boolean;\n}\n\nconst num = (v: unknown): number | null => {\n const n = typeof v === 'number' ? v : typeof v === 'string' && v.trim() ? Number(v) : NaN;\n return Number.isFinite(n) && n >= 0 ? n : null;\n};\n\n/**\n * A popup's arrival from its traits (PU-D5): its kind's defaults where a trait is unset; `time` never under 3 s; `leaving`\n * reads a laptop's mouse leaving through the top after `leavingAfterSeconds` (PU2b) — anything without a fine pointer has\n * no honest leaving signal and gets the time instead (`phoneLeavingSeconds`); `button` never arrives by itself.\n */\nexport function planPopupArrival(get: (name: string) => unknown, env: ArrivalEnv): ArrivalPlan {\n const kind = (Object.values(PopupKind) as string[]).includes(String(get(PopupTrait.Kind))) ? get(PopupTrait.Kind) as PopupKind : PopupKind.Offer;\n const defaults = POPUP_KIND_ARRIVAL[kind];\n const asked = String(get(PopupTrait.Arrive) ?? '');\n const arrive = (Object.values(PopupArrive) as string[]).includes(asked) ? asked as PopupArrive : POPUP_KIND_MIX[kind].arrive;\n const pageShare = num(get(PopupTrait.PageShare)) ?? (num(get(PopupTrait.Screens)) === null ? defaults.pageShare ?? null : null);\n const screens = pageShare !== null ? null : num(get(PopupTrait.Screens)) ?? defaults.screens ?? POPUP_RULES.scrollScreens;\n const seconds = (fallback: number) => Math.max(POPUP_RULES.minSeconds, num(get(PopupTrait.Seconds)) ?? defaults.seconds ?? fallback);\n switch (arrive) {\n case PopupArrive.Button: return { trigger: ArrivalTrigger.Never, screens: null, pageShare: null, seconds: null };\n case PopupArrive.Scroll: return { trigger: ArrivalTrigger.Scroll, screens, pageShare, seconds: null };\n case PopupArrive.Time: return { trigger: ArrivalTrigger.Time, screens: null, pageShare: null, seconds: seconds(POPUP_RULES.timeSeconds) };\n // A phone (any coarse pointer) never reads leaving — no Back-button trap, no scroll-up guess: it arrives by time.\n case PopupArrive.Leaving: return env.finePointer\n ? { trigger: ArrivalTrigger.Leaving, screens: null, pageShare: null, seconds: Math.max(POPUP_RULES.minSeconds, POPUP_RULES.leavingAfterSeconds) }\n : { trigger: ArrivalTrigger.Time, screens: null, pageShare: null, seconds: Math.max(POPUP_RULES.minSeconds, POPUP_RULES.phoneLeavingSeconds) };\n default: return { trigger: ArrivalTrigger.ScrollOrTime, screens, pageShare, seconds: seconds(POPUP_RULES.timeSeconds) };\n }\n}\n\n/** AW2 / PU-D17: the consent banner's arrival — `load` at once, `delay` on the first real scroll or after 6 s. */\nexport function planConsentArrival(arrive: 'load' | 'delay' | string | null | undefined): ArrivalPlan {\n return arrive === 'delay'\n ? { trigger: ArrivalTrigger.ScrollOrTime, screens: 0, pageShare: null, seconds: CONSENT_DELAY_MS / 1000 }\n : { trigger: ArrivalTrigger.Now, screens: null, pageShare: null, seconds: null };\n}\n\nfunction scrolledEnough(plan: ArrivalPlan, p: ArrivalProgress): boolean {\n if (!(p.scrolledPx > 0)) return false; // a real scroll, after the turn started\n if (plan.pageShare !== null) {\n const room = p.pageHeight - p.viewportHeight;\n return room <= 0 || p.scrollY / room >= plan.pageShare;\n }\n return p.scrolledPx >= (plan.screens ?? 0) * p.viewportHeight;\n}\n\n/** True once the planned arrival has happened. */\nexport function arrivalFired(plan: ArrivalPlan, p: ArrivalProgress): boolean {\n switch (plan.trigger) {\n case ArrivalTrigger.Now: return true;\n case ArrivalTrigger.Never: return false;\n case ArrivalTrigger.Scroll: return scrolledEnough(plan, p);\n case ArrivalTrigger.Time: return p.visibleSeconds >= (plan.seconds ?? Infinity);\n case ArrivalTrigger.Leaving: return p.leftTopAtSeconds != null && p.leftTopAtSeconds >= (plan.seconds ?? Infinity);\n default: return scrolledEnough(plan, p) || p.visibleSeconds >= (plan.seconds ?? Infinity);\n }\n}\n\n// ── memory (PU-D6, PU-D7) ─────────────────────────────────────────────────────────────────────────────────────────────\n\n/** What a browser remembers of one popup. `v` the popup's version when it was closed; `acted` = followed or sent. */\nexport interface PopupMemory {\n v: number;\n closedAt: number;\n acted: boolean;\n}\n\nexport const POPUP_MEMORY_PREFIX = 'iox-popup';\n\n/** `iox-popup:<site scope>:<popup node id>` — no identifier of the visitor. */\nexport function popupMemoryKey(scope: string, popupId: string): string {\n return `${POPUP_MEMORY_PREFIX}:${scope || '-'}:${popupId}`;\n}\n\n/** Where it is kept: `visit` → the tab's session; `days` / `once` → the browser. The runtime falls back to the session,\n * then to this page view, when one is refused. */\nexport enum PopupMemoryStore {\n Local = 'local',\n Session = 'session',\n}\n\nexport function popupMemoryStore(again: unknown): PopupMemoryStore {\n return again === PopupAgain.Visit ? PopupMemoryStore.Session : PopupMemoryStore.Local;\n}\n\nexport function encodePopupMemory(memory: PopupMemory): string {\n return JSON.stringify({ v: memory.v, closedAt: memory.closedAt, acted: memory.acted });\n}\n\n/** Tolerant: anything that is not a well-formed memory reads as none (a browser holding garbage still gets the popup). */\nexport function decodePopupMemory(raw: string | null | undefined): PopupMemory | null {\n if (!raw) return null;\n try {\n const o = JSON.parse(raw) as Partial<PopupMemory> | null;\n if (!o || typeof o !== 'object') return null;\n const v = Number(o.v), closedAt = Number(o.closedAt);\n if (!Number.isFinite(v) || !Number.isFinite(closedAt) || closedAt < 0) return null;\n return { v, closedAt, acted: o.acted === true };\n } catch {\n return null;\n }\n}\n\n/** A popup's version (`popupVersion`, default 1). */\nexport function popupVersionOf(get: (name: string) => unknown): number {\n const n = num(get(PopupTrait.Version));\n return n !== null && n >= 1 ? Math.floor(n) : 1;\n}\n\nconst DAY_MS = 86_400_000;\n\n/** True while a remembered close keeps the popup away (any version older than the popup's is forgotten). */\nexport function memoryKeepsAway(memory: PopupMemory | null, get: (name: string) => unknown, now: number): boolean {\n if (!memory || memory.v < popupVersionOf(get)) return false;\n if (memory.acted) return true; // never again after the visitor acts — until the owner changes it\n const again = String(get(PopupTrait.Again) ?? '') || POPUP_KIND_MIX[(get(PopupTrait.Kind) as PopupKind) ?? PopupKind.Offer]?.again;\n if (again === PopupAgain.Once || again === PopupAgain.Visit) return true; // a visit's memory dies with the session\n const days = num(get(PopupTrait.Days)) ?? POPUP_RULES.memoryDays;\n return now - memory.closedAt < days * DAY_MS;\n}\n\n// ── dates (PU-D18) ────────────────────────────────────────────────────────────────────────────────────────────────────\n\n/** The visitor's day, `YYYY-MM-DD`, on THEIR clock (never UTC — a popup \"until 30 November\" ends at their midnight). */\nexport function visitorDay(now: Date): string {\n const p = (n: number) => String(n).padStart(2, '0');\n return `${now.getFullYear()}-${p(now.getMonth() + 1)}-${p(now.getDate())}`;\n}\n\nconst DAY_RE = /^\\d{4}-\\d{2}-\\d{2}$/;\n\n/** Inside its dates (whole days, both ends included); no dates = always. A malformed date is ignored. */\nexport function popupWithinDates(get: (name: string) => unknown, now: Date): boolean {\n const day = visitorDay(now);\n const from = String(get(PopupTrait.ShowFrom) ?? '').trim(), until = String(get(PopupTrait.ShowUntil) ?? '').trim();\n if (DAY_RE.test(from) && day < from) return false;\n if (DAY_RE.test(until) && day > until) return false;\n return true;\n}\n\n/** Ended: its last day is past (the engine leaves it out of the raw SSR; Home warns). Days compare on the given clock. */\nexport function popupEnded(get: (name: string) => unknown, now: Date): boolean {\n const until = String(get(PopupTrait.ShowUntil) ?? '').trim();\n return DAY_RE.test(until) && visitorDay(now) > until;\n}\n\n// ── due ───────────────────────────────────────────────────────────────────────────────────────────────────────────────\n\nexport enum PopupNotDue {\n /** Only a button opens it. */\n Button = 'button',\n /** Outside its dates. */\n Dates = 'dates',\n /** A remembered close (or the visitor acted). */\n Memory = 'memory',\n}\n\n/** May this popup arrive by itself now? null = due; else why not. */\nexport function popupDue(get: (name: string) => unknown, memory: PopupMemory | null, now: Date): PopupNotDue | null {\n if (String(get(PopupTrait.Arrive) ?? '') === PopupArrive.Button) return PopupNotDue.Button;\n if (!popupWithinDates(get, now)) return PopupNotDue.Dates;\n if (memoryKeepsAway(memory, get, now.getTime())) return PopupNotDue.Memory;\n return null;\n}\n\n// ── presentation ──────────────────────────────────────────────────────────────────────────────────────────────────────\n\n/** How it opens on THIS device (PU-D2, PU-D10): `centred` is a modal on a laptop only — on a phone it is the corner card. */\nexport function popupFormOn(get: (name: string) => unknown, env: { phone: boolean }): PopupForm {\n const form = popupFormOf(get(PopupTrait.Kind), get(PopupTrait.Form));\n return env.phone && form === PopupForm.Centred ? PopupForm.Corner : form;\n}\n\n/** The How animated levels (the look's `animate`), stillest first. */\nexport type AnimateLevel = keyof typeof POPUP_RULES.durationByAnimated;\n\n/** §6: the factor the `popup-dur-*` tokens are scaled by for the look's How animated (the token holds Standard). */\nexport function popupMotionScale(level: string | null | undefined): number {\n const table = POPUP_RULES.durationByAnimated as Readonly<Record<string, number>>;\n return Math.round(((table[level ?? ''] ?? table['standard']) / table['standard']) * 1000) / 1000;\n}\n\n/** Still moves nothing: the popup fades (§6). */\nexport function popupFadesOnly(level: string | null | undefined): boolean {\n return level === 'still';\n}\n","/**\n * @vectoriox/iox-ui/actions-core — the shared, FRAMEWORK-FREE action vocabulary.\n *\n * One `ActionDescriptor` shape for every ordered action list in the product: the forms\n * after-submit steps (whose catalog moved here; `forms-core` re-exports it unchanged) and\n * the element behaviour actions of A1. Framework-free for the same reason as `forms-core`\n * and `seo-core`: `iox-cms` consumes it under plain Node.\n * ⚠️ Consumers wire the usual trio — ng-package raw-ts assets, jest moduleNameMapper, and\n * tsconfig paths — or `nest start` dies with ERR_REQUIRE_ESM while jest and build pass.\n */\nexport * from './action.model';\nexport * from './availability';\nexport * from './element-actions';\nexport * from './dialog-opener';\nexport * from './popover-opener';\nexport * from './dialog-motion';\nexport * from './reveal-origin';\nexport * from './popup-arrival';\n// The close word lives in design-core (composite-core's Lightbox recipe stamps it, and composite-core cannot import\n// actions-core — actions-core imports composite-core); re-exported here for the overlays that already read it here.\nexport { CLOSE_WORDS, closeWord } from '@vectoriox/iox-ui/design-core';\n","/**\n * Generated bundle index. Do not ed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