$ErrorActionPreference = 'Stop' $root = Split-Path -Parent $PSScriptRoot $componentPath = Join-Path $root 'components/ModulePage.vue' if (-not (Test-Path -LiteralPath $componentPath)) { throw 'Missing shared module page component' } $component = Get-Content -LiteralPath $componentPath -Raw -Encoding utf8 foreach ($anchor in @( "const moduleState = ref(['loading', 'empty', 'success', 'error'].includes(query.state) ? query.state : 'ready')", 'module-state--${moduleState}', 'empty: { eyebrow:', 'success: { eyebrow:', 'error: { eyebrow:', 'module-content-frame.png', 'module-field-frame.png', '