@crockery/fellowship-components 0.3.0 → 0.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (108) hide show
  1. package/README.md +12 -10
  2. package/RELEASING.md +15 -14
  3. package/dist/chunks/data-source-XbksqUrw.js +7 -0
  4. package/dist/chunks/decorate-B_ZTN9li.js +0 -2
  5. package/dist/chunks/{dungeon-cast-browser-Cyh519NI.js → dungeon-cast-browser-CSnu3gC5.js} +54 -56
  6. package/dist/chunks/{dungeon-map-xFaPasVr.js → dungeon-map-CutIcCVP.js} +89 -92
  7. package/dist/chunks/{talent-calculator-CIPNbqK5.js → talent-calculator-Dxuc2dZ8.js} +88 -90
  8. package/dist/chunks/tooltip-DoQVSnOn.js +0 -2
  9. package/dist/data/cast-data-source.d.ts +0 -1
  10. package/dist/data/data-source.d.ts +3 -2
  11. package/dist/data/package-cast-data-source.d.ts +0 -1
  12. package/dist/data/package-data-source.d.ts +0 -1
  13. package/dist/data/package-talent-data-source.d.ts +0 -1
  14. package/dist/data/talent-data-source.d.ts +0 -1
  15. package/dist/dungeon-cast-browser/dungeon-cast-browser.d.ts +0 -1
  16. package/dist/dungeon-cast-browser/dungeon-cast-browser.styles.d.ts +0 -1
  17. package/dist/dungeon-cast-browser/index.d.ts +0 -1
  18. package/dist/dungeon-cast-browser/render-model.d.ts +0 -1
  19. package/dist/dungeon-cast-browser/types.d.ts +0 -1
  20. package/dist/dungeon-cast-browser.js +1 -3
  21. package/dist/dungeon-map/dungeon-map.d.ts +0 -1
  22. package/dist/dungeon-map/dungeon-map.styles.d.ts +0 -1
  23. package/dist/dungeon-map/index.d.ts +0 -1
  24. package/dist/dungeon-map/layout.d.ts +0 -1
  25. package/dist/dungeon-map/render-model.d.ts +0 -1
  26. package/dist/dungeon-map/types.d.ts +0 -1
  27. package/dist/dungeon-map/viewport-controller.d.ts +0 -1
  28. package/dist/dungeon-map.js +1 -3
  29. package/dist/index.d.ts +0 -1
  30. package/dist/index.js +4 -4
  31. package/dist/react/dungeon-cast-browser.d.ts +0 -1
  32. package/dist/react/dungeon-cast-browser.js +1 -3
  33. package/dist/react/dungeon-map.d.ts +0 -1
  34. package/dist/react/dungeon-map.js +1 -3
  35. package/dist/react/index.d.ts +0 -1
  36. package/dist/react/talent-calculator.d.ts +0 -1
  37. package/dist/react/talent-calculator.js +1 -3
  38. package/dist/react/tooltip.d.ts +0 -1
  39. package/dist/react/tooltip.js +0 -2
  40. package/dist/styles/field-manual-fonts.d.ts +0 -1
  41. package/dist/styles/field-manual.styles.d.ts +0 -1
  42. package/dist/talent-calculator/index.d.ts +0 -1
  43. package/dist/talent-calculator/render-model.d.ts +0 -1
  44. package/dist/talent-calculator/selection-state.d.ts +0 -1
  45. package/dist/talent-calculator/talent-calculator.d.ts +0 -1
  46. package/dist/talent-calculator/talent-calculator.styles.d.ts +0 -1
  47. package/dist/talent-calculator/types.d.ts +0 -1
  48. package/dist/talent-calculator.js +1 -3
  49. package/dist/tooltip/index.d.ts +0 -1
  50. package/dist/tooltip/positioning.d.ts +0 -1
  51. package/dist/tooltip/rich-text.d.ts +0 -1
  52. package/dist/tooltip/tooltip.d.ts +0 -1
  53. package/dist/tooltip/tooltip.styles.d.ts +0 -1
  54. package/dist/tooltip/types.d.ts +0 -1
  55. package/dist/tooltip.js +0 -2
  56. package/package.json +8 -15
  57. package/dist/chunks/data-source-C-Gs7kRl.js +0 -2
  58. package/dist/chunks/decorate-B_ZTN9li.js.map +0 -1
  59. package/dist/chunks/dungeon-cast-browser-Cyh519NI.js.map +0 -1
  60. package/dist/chunks/dungeon-map-xFaPasVr.js.map +0 -1
  61. package/dist/chunks/talent-calculator-CIPNbqK5.js.map +0 -1
  62. package/dist/chunks/tooltip-DoQVSnOn.js.map +0 -1
  63. package/dist/data/cast-data-source.d.ts.map +0 -1
  64. package/dist/data/data-source.d.ts.map +0 -1
  65. package/dist/data/package-cast-data-source.d.ts.map +0 -1
  66. package/dist/data/package-data-source.d.ts.map +0 -1
  67. package/dist/data/package-talent-data-source.d.ts.map +0 -1
  68. package/dist/data/talent-data-source.d.ts.map +0 -1
  69. package/dist/dungeon-cast-browser/dungeon-cast-browser.d.ts.map +0 -1
  70. package/dist/dungeon-cast-browser/dungeon-cast-browser.styles.d.ts.map +0 -1
  71. package/dist/dungeon-cast-browser/index.d.ts.map +0 -1
  72. package/dist/dungeon-cast-browser/render-model.d.ts.map +0 -1
  73. package/dist/dungeon-cast-browser/types.d.ts.map +0 -1
  74. package/dist/dungeon-cast-browser.js.map +0 -1
  75. package/dist/dungeon-map/dungeon-map.d.ts.map +0 -1
  76. package/dist/dungeon-map/dungeon-map.styles.d.ts.map +0 -1
  77. package/dist/dungeon-map/index.d.ts.map +0 -1
  78. package/dist/dungeon-map/layout.d.ts.map +0 -1
  79. package/dist/dungeon-map/render-model.d.ts.map +0 -1
  80. package/dist/dungeon-map/types.d.ts.map +0 -1
  81. package/dist/dungeon-map/viewport-controller.d.ts.map +0 -1
  82. package/dist/dungeon-map.js.map +0 -1
  83. package/dist/index.d.ts.map +0 -1
  84. package/dist/react/dungeon-cast-browser.d.ts.map +0 -1
  85. package/dist/react/dungeon-cast-browser.js.map +0 -1
  86. package/dist/react/dungeon-map.d.ts.map +0 -1
  87. package/dist/react/dungeon-map.js.map +0 -1
  88. package/dist/react/index.d.ts.map +0 -1
  89. package/dist/react/talent-calculator.d.ts.map +0 -1
  90. package/dist/react/talent-calculator.js.map +0 -1
  91. package/dist/react/tooltip.d.ts.map +0 -1
  92. package/dist/react/tooltip.js.map +0 -1
  93. package/dist/styles/field-manual-fonts.d.ts.map +0 -1
  94. package/dist/styles/field-manual.styles.d.ts.map +0 -1
  95. package/dist/talent-calculator/index.d.ts.map +0 -1
  96. package/dist/talent-calculator/render-model.d.ts.map +0 -1
  97. package/dist/talent-calculator/selection-state.d.ts.map +0 -1
  98. package/dist/talent-calculator/talent-calculator.d.ts.map +0 -1
  99. package/dist/talent-calculator/talent-calculator.styles.d.ts.map +0 -1
  100. package/dist/talent-calculator/types.d.ts.map +0 -1
  101. package/dist/talent-calculator.js.map +0 -1
  102. package/dist/tooltip/index.d.ts.map +0 -1
  103. package/dist/tooltip/positioning.d.ts.map +0 -1
  104. package/dist/tooltip/rich-text.d.ts.map +0 -1
  105. package/dist/tooltip/tooltip.d.ts.map +0 -1
  106. package/dist/tooltip/tooltip.styles.d.ts.map +0 -1
  107. package/dist/tooltip/types.d.ts.map +0 -1
  108. package/dist/tooltip.js.map +0 -1
@@ -1 +0,0 @@
1
- {"version":3,"file":"talent-calculator-CIPNbqK5.js","names":["#abortController","#flushRendererWarnings","#loadHeroTalents","#skipNextPropertyPointEvent","#emitPointsChange","#normalizeSelections","#reportOverBudget","#rendererFailures","#prepareTalentRenderContent","#emitSelectionChange","#renderHeader","#renderGrid","#renderStatus","#setTalentPoints","#renderTalent","#handleTalentActivation","#renderTalentContent","#pendingRendererWarnings","#renderDefaultTalentIcon","#handleImageError","#loadToken","#lastOverBudgetSignature","#reportWarnings","#setError"],"sources":["../../src/data/package-talent-data-source.ts","../../src/talent-calculator/render-model.ts","../../src/talent-calculator/selection-state.ts","../../src/talent-calculator/talent-calculator.styles.ts","../../src/talent-calculator/talent-calculator.ts"],"sourcesContent":["import { createPackageFellowshipDataClient } from \"@crockery/fellowship-data/client\";\n\nimport type { FellowshipTalentDataSource } from \"./talent-data-source.js\";\n\n/** @deprecated Create a package Fellowship data client instead. */\nexport interface PackageFellowshipTalentDataSourceOptions {\n readonly assetBaseUrl?: string;\n}\n\n/** @deprecated Use `createPackageFellowshipDataClient` from `@crockery/fellowship-data/client`. */\nexport const createPackageFellowshipTalentDataSource = (\n options: PackageFellowshipTalentDataSourceOptions = {},\n): FellowshipTalentDataSource => {\n const client = createPackageFellowshipDataClient(options);\n return {\n loadHeroTalents: (heroId, signal) => client.loadHeroTalents(heroId, signal),\n resolveAssetUrl: (asset) => client.resolveAssetUrl(asset),\n };\n};\n","import { findImage } from \"@crockery/fellowship-data\";\nimport type { Talent } from \"@crockery/fellowship-data\";\n\nimport type {\n FellowshipTalentDataSource,\n TalentCalculatorData,\n} from \"../data/talent-data-source.js\";\nimport type {\n TalentCalculatorRenderModel,\n TalentCalculatorTalentModel,\n TalentCalculatorWarning,\n} from \"./types.js\";\n\nconst romanNumerals = [\"I\", \"II\", \"III\", \"IV\", \"V\", \"VI\"] as const;\n\nexport const talentRowLabel = (row: number): string => romanNumerals[row - 1] ?? String(row);\n\nconst warning = (\n code: TalentCalculatorWarning[\"code\"],\n talent: Talent,\n message: string,\n): TalentCalculatorWarning => ({ code, message, talentId: talent.id });\n\nexport const createTalentCalculatorRenderModel = (\n data: TalentCalculatorData,\n source: FellowshipTalentDataSource,\n): TalentCalculatorRenderModel => {\n const warnings: TalentCalculatorWarning[] = [];\n const occupied = new Set<string>();\n const models: TalentCalculatorTalentModel[] = [];\n\n for (const talent of data.talents) {\n if (talent.row === null && talent.column === null) {\n continue;\n }\n if (\n !Number.isInteger(talent.row) ||\n !Number.isInteger(talent.column) ||\n talent.row === null ||\n talent.column === null ||\n talent.row < 1 ||\n talent.row > 6 ||\n talent.column < 1 ||\n talent.column > 3\n ) {\n warnings.push(\n warning(\n \"invalid-position\",\n talent,\n `Talent “${talent.id}” has an invalid row or column and was skipped.`,\n ),\n );\n continue;\n }\n\n const cell = `${talent.row}:${talent.column}`;\n if (occupied.has(cell)) {\n warnings.push(\n warning(\n \"duplicate-position\",\n talent,\n `Talent “${talent.id}” duplicates row ${talent.row}, column ${talent.column} and was skipped.`,\n ),\n );\n continue;\n }\n occupied.add(cell);\n\n const pointCost =\n Number.isInteger(talent.pointCost) && (talent.pointCost ?? 0) > 0 ? talent.pointCost : null;\n if (pointCost === null) {\n warnings.push(\n warning(\"invalid-cost\", talent, `Talent “${talent.id}” has an invalid point cost.`),\n );\n }\n if (!talent.name) {\n warnings.push(warning(\"missing-name\", talent, `Talent “${talent.id}” has no display name.`));\n }\n if (!talent.description) {\n warnings.push(\n warning(\"missing-description\", talent, `Talent “${talent.id}” has no description.`),\n );\n }\n\n const image =\n findImage(talent.images, { type: \"talent\", size: \"200\" }) ??\n findImage(talent.images, { type: \"talent\", size: \"full\" });\n let imageUrl: string | null = null;\n if (!image) {\n warnings.push(warning(\"missing-image\", talent, `Talent “${talent.id}” has no icon.`));\n } else {\n try {\n imageUrl = source.resolveAssetUrl(image);\n } catch (error: unknown) {\n warnings.push(\n warning(\n \"asset-url-error\",\n talent,\n `The icon URL for talent “${talent.id}” could not be resolved: ${String(error)}.`,\n ),\n );\n }\n }\n\n models.push({\n talent,\n row: talent.row,\n column: talent.column,\n pointCost,\n imageUrl,\n });\n }\n\n models.sort((a, b) => a.row - b.row || a.column - b.column);\n const talentById = new Map(models.map((model) => [model.talent.id, model]));\n const rows = [...new Set(models.map(({ row }) => row))].map((row) => ({\n row,\n label: talentRowLabel(row),\n talents: models.filter((talent) => talent.row === row),\n }));\n\n return { hero: data.hero, rows, talentById, warnings };\n};\n","import type { TalentCalculatorRenderModel, TalentCalculatorSelectionState } from \"./types.js\";\n\nexport const MAX_TALENT_POINTS = 14;\n\nexport const normalizeTalentPoints = (value: number): number =>\n Math.min(\n MAX_TALENT_POINTS,\n Math.max(0, Math.round(Number.isFinite(value) ? value : MAX_TALENT_POINTS)),\n );\n\nexport const normalizeSelectedTalentIds = (\n model: TalentCalculatorRenderModel,\n selectedTalentIds: readonly string[],\n): {\n readonly selectedTalentIds: readonly string[];\n readonly removedTalentIds: readonly string[];\n} => {\n const requested = new Set(selectedTalentIds);\n const selected = [...model.talentById.values()]\n .filter(({ talent }) => requested.has(talent.id))\n .map(({ talent }) => talent.id);\n const selectedSet = new Set(selected);\n const removed = [...new Set(selectedTalentIds)].filter((id) => !selectedSet.has(id));\n return { selectedTalentIds: selected, removedTalentIds: removed };\n};\n\nexport const createTalentCalculatorSelectionState = (\n model: TalentCalculatorRenderModel,\n selectedTalentIds: readonly string[],\n talentPoints: number,\n): TalentCalculatorSelectionState => {\n const selected = new Set(selectedTalentIds);\n const spentPoints = [...model.talentById.values()].reduce(\n (total, talent) =>\n selected.has(talent.talent.id) && talent.pointCost !== null\n ? total + talent.pointCost\n : total,\n 0,\n );\n const remainingPoints = talentPoints - spentPoints;\n return {\n selectedTalentIds: [...model.talentById.values()]\n .filter(({ talent }) => selected.has(talent.id))\n .map(({ talent }) => talent.id),\n spentPoints,\n remainingPoints,\n overBudget: remainingPoints < 0,\n };\n};\n\nexport const canSelectTalent = (\n pointCost: number | null,\n state: TalentCalculatorSelectionState,\n): boolean => pointCost !== null && !state.overBudget && pointCost <= state.remainingPoints;\n","import { css } from \"lit\";\n\nexport const talentCalculatorStyles = css`\n :host {\n --fellowship-talent-background: var(--_fellowship-field-canvas);\n --fellowship-talent-surface: var(--_fellowship-field-surface);\n --fellowship-talent-card-background: var(--_fellowship-field-surface);\n --fellowship-talent-card-selected-background: color-mix(\n in srgb,\n var(--_fellowship-field-surface-raised) 88%,\n var(--_fellowship-field-accent)\n );\n --fellowship-talent-foreground: var(--_fellowship-field-ink);\n --fellowship-talent-muted: var(--_fellowship-field-muted);\n --fellowship-talent-disabled: var(--_fellowship-field-tertiary);\n --fellowship-talent-border: var(--_fellowship-field-border);\n --fellowship-talent-selection: var(--_fellowship-field-accent);\n --fellowship-talent-focus: var(--_fellowship-field-focus);\n --fellowship-talent-points: var(--_fellowship-field-brass);\n --fellowship-talent-danger: var(--_fellowship-field-ember);\n --fellowship-talent-control-surface: var(--_fellowship-field-inset);\n --fellowship-talent-icon-size: 56px;\n --fellowship-talent-font-family: var(--_fellowship-field-font-family);\n --fellowship-talent-tactical-font-family: var(--_fellowship-field-mono-font-family);\n --fellowship-talent-radius: var(--_fellowship-field-radius);\n\n display: block;\n min-width: 0;\n container-type: inline-size;\n color: var(--fellowship-talent-foreground);\n font-family: var(--fellowship-talent-font-family);\n -webkit-font-smoothing: antialiased;\n }\n\n :host([hidden]) {\n display: none;\n }\n\n *,\n *::before,\n *::after {\n box-sizing: border-box;\n }\n\n button {\n font: inherit;\n }\n\n .container {\n min-width: 0;\n padding: 16px;\n border-radius: calc(var(--fellowship-talent-radius) + 2px);\n background: var(--fellowship-talent-background);\n }\n\n .header {\n min-height: 72px;\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: 24px;\n padding: 8px 8px 24px;\n }\n\n .heading {\n margin: 0;\n color: var(--fellowship-talent-muted);\n font-size: 12px;\n font-weight: 600;\n line-height: 16px;\n letter-spacing: 0.12em;\n text-transform: uppercase;\n }\n\n .points-cluster,\n .point-controls {\n display: flex;\n align-items: center;\n }\n\n .points-cluster {\n gap: 16px;\n }\n\n .points {\n display: flex;\n align-items: baseline;\n gap: 4px;\n color: var(--fellowship-talent-foreground);\n font-family: var(--fellowship-talent-tactical-font-family);\n font-size: 32px;\n font-weight: 600;\n line-height: 40px;\n letter-spacing: -0.04em;\n font-variant-numeric: tabular-nums;\n }\n\n .points-spent {\n color: var(--fellowship-talent-points);\n }\n\n .points-separator,\n .points-total {\n color: var(--_fellowship-field-tertiary);\n }\n\n .points-separator {\n font-size: 18px;\n font-weight: 500;\n }\n\n .points[data-invalid=\"true\"],\n .points[data-invalid=\"true\"] .points-spent {\n color: var(--fellowship-talent-danger);\n }\n\n .point-controls {\n gap: 4px;\n padding: 2px;\n border-radius: calc(var(--fellowship-talent-radius) + 2px);\n background: var(--fellowship-talent-control-surface);\n box-shadow: inset 0 0 0 1px var(--fellowship-talent-border);\n }\n\n .point-control {\n width: 40px;\n height: 40px;\n display: inline-grid;\n place-items: center;\n padding: 0;\n border: 0;\n border-radius: 4px;\n background: transparent;\n color: var(--fellowship-talent-muted);\n font-family: var(--fellowship-talent-tactical-font-family);\n font-size: 18px;\n font-weight: 500;\n line-height: 1;\n cursor: pointer;\n transition:\n background-color 120ms cubic-bezier(0.23, 1, 0.32, 1),\n color 120ms cubic-bezier(0.23, 1, 0.32, 1),\n transform 120ms cubic-bezier(0.23, 1, 0.32, 1);\n }\n\n .point-control:active:not(:disabled) {\n transform: scale(0.97);\n }\n\n .point-control:focus-visible,\n .clear-all:focus-visible,\n .talent:focus-visible,\n .retry-button:focus-visible {\n outline: 2px solid var(--fellowship-talent-focus);\n outline-offset: 2px;\n }\n\n .point-control:disabled {\n color: var(--fellowship-talent-disabled);\n cursor: not-allowed;\n opacity: 0.48;\n }\n\n .clear-all {\n min-height: 44px;\n padding: 0 8px;\n border: 0;\n border-radius: 4px;\n background: transparent;\n color: var(--fellowship-talent-muted);\n font-size: 12px;\n font-weight: 600;\n line-height: 1;\n letter-spacing: 0.04em;\n white-space: nowrap;\n cursor: pointer;\n transition:\n background-color 120ms cubic-bezier(0.23, 1, 0.32, 1),\n color 120ms cubic-bezier(0.23, 1, 0.32, 1),\n transform 120ms cubic-bezier(0.23, 1, 0.32, 1);\n }\n\n .clear-all:active:not(:disabled) {\n transform: scale(0.97);\n }\n\n .clear-all:disabled {\n color: var(--fellowship-talent-disabled);\n cursor: not-allowed;\n opacity: 0.42;\n }\n\n .grid {\n display: grid;\n gap: 16px;\n padding: 8px 0 0;\n }\n\n .row {\n min-width: 0;\n min-inline-size: 0;\n width: 100%;\n display: grid;\n grid-template-columns: 48px minmax(0, 1fr);\n align-items: stretch;\n gap: 8px;\n margin: 0;\n padding: 0;\n border: 0;\n }\n\n .row-label {\n position: relative;\n display: flex;\n align-items: flex-start;\n justify-content: center;\n padding-top: 16px;\n color: var(--fellowship-talent-disabled);\n font-family: var(--fellowship-talent-tactical-font-family);\n font-size: 11px;\n font-weight: 600;\n line-height: 16px;\n text-align: center;\n letter-spacing: 0.08em;\n }\n\n .row-label::before {\n position: absolute;\n inset: 0 0 0 auto;\n width: 1px;\n background: var(--fellowship-talent-border);\n content: \"\";\n }\n\n .row-label::after {\n position: absolute;\n top: 23px;\n right: -3px;\n width: 7px;\n height: 1px;\n background: var(--fellowship-talent-selection);\n content: \"\";\n }\n\n .row-talents {\n min-width: 0;\n display: grid;\n grid-template-columns: repeat(3, minmax(0, 1fr));\n gap: 8px;\n }\n\n fellowship-tooltip {\n display: block;\n min-width: 0;\n }\n\n .talent {\n position: relative;\n width: 100%;\n min-width: 0;\n min-height: 88px;\n display: grid;\n grid-template-columns: var(--fellowship-talent-icon-size) minmax(0, 1fr);\n align-items: center;\n gap: 16px;\n padding: 16px 36px 16px 16px;\n overflow: hidden;\n border: 1px solid transparent;\n border-radius: var(--fellowship-talent-radius);\n background: var(--fellowship-talent-card-background);\n color: var(--fellowship-talent-foreground);\n box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--fellowship-talent-border) 64%, transparent);\n text-align: left;\n cursor: pointer;\n transition:\n background-color 140ms cubic-bezier(0.23, 1, 0.32, 1),\n box-shadow 140ms cubic-bezier(0.23, 1, 0.32, 1),\n transform 120ms cubic-bezier(0.23, 1, 0.32, 1),\n opacity 140ms linear;\n }\n\n .talent::before {\n position: absolute;\n top: 16px;\n left: 0;\n width: 2px;\n height: 24px;\n background: transparent;\n content: \"\";\n }\n\n .talent:active:not([aria-disabled=\"true\"]) {\n transform: scale(0.99);\n }\n\n .talent[aria-pressed=\"true\"] {\n background: var(--fellowship-talent-card-selected-background);\n box-shadow: inset 0 0 0 1px\n color-mix(in srgb, var(--fellowship-talent-selection) 32%, transparent);\n }\n\n .talent[aria-pressed=\"true\"]::before {\n background: var(--fellowship-talent-selection);\n }\n\n .talent[aria-disabled=\"true\"] {\n color: var(--fellowship-talent-disabled);\n cursor: not-allowed;\n opacity: 0.46;\n }\n\n .talent-icon,\n .talent-icon-fallback {\n width: var(--fellowship-talent-icon-size);\n height: var(--fellowship-talent-icon-size);\n border-radius: calc(var(--fellowship-talent-radius) - 2px);\n box-shadow: inset 0 0 0 1px var(--fellowship-talent-border);\n }\n\n .talent-icon {\n display: block;\n object-fit: cover;\n }\n\n .talent-icon-fallback {\n display: grid;\n place-items: center;\n background: var(--fellowship-talent-control-surface);\n color: var(--fellowship-talent-muted);\n font-family: var(--fellowship-talent-tactical-font-family);\n font-size: 13px;\n font-weight: 600;\n letter-spacing: 0.08em;\n }\n\n .talent[aria-pressed=\"true\"] .talent-icon,\n .talent[aria-pressed=\"true\"] .talent-icon-fallback {\n box-shadow:\n inset 0 0 0 1px var(--fellowship-talent-border),\n 0 0 0 1px color-mix(in srgb, var(--fellowship-talent-selection) 60%, transparent);\n }\n\n .talent-name {\n min-width: 0;\n overflow: hidden;\n color: currentColor;\n font-size: 16px;\n font-weight: 600;\n line-height: 24px;\n text-overflow: ellipsis;\n text-wrap: balance;\n white-space: nowrap;\n }\n\n .talent-cost {\n position: absolute;\n top: 12px;\n right: 12px;\n color: var(--fellowship-talent-muted);\n font-family: var(--fellowship-talent-tactical-font-family);\n font-size: 11px;\n font-weight: 600;\n line-height: 16px;\n font-variant-numeric: tabular-nums;\n }\n\n .talent[aria-pressed=\"true\"] .talent-cost {\n color: var(--fellowship-talent-focus);\n }\n\n .status {\n min-height: 256px;\n display: grid;\n place-items: center;\n padding: 32px;\n color: var(--fellowship-talent-muted);\n text-align: center;\n }\n\n .status-card {\n max-width: 480px;\n }\n\n .status-mark {\n display: flex;\n width: 40px;\n height: 24px;\n align-items: center;\n justify-content: space-between;\n margin: 0 auto 16px;\n color: var(--fellowship-talent-points);\n font-family: var(--fellowship-talent-tactical-font-family);\n font-size: 16px;\n }\n\n .status-mark::before,\n .status-mark::after {\n width: 8px;\n height: 1px;\n background: var(--fellowship-talent-border);\n content: \"\";\n }\n\n .status-title {\n margin: 0;\n color: var(--fellowship-talent-foreground);\n font-size: 18px;\n font-weight: 600;\n line-height: 24px;\n text-wrap: balance;\n }\n\n .status-copy {\n margin: 8px 0 0;\n font-size: 14px;\n line-height: 24px;\n text-wrap: pretty;\n }\n\n .retry-button {\n min-height: 44px;\n margin-top: 24px;\n padding: 0 16px;\n border: 1px solid var(--fellowship-talent-border);\n border-radius: 4px;\n background: var(--fellowship-talent-control-surface);\n color: var(--fellowship-talent-foreground);\n font-weight: 600;\n cursor: pointer;\n }\n\n .visually-hidden {\n position: absolute;\n width: 1px;\n height: 1px;\n padding: 0;\n margin: -1px;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n white-space: nowrap;\n border: 0;\n }\n\n @media (hover: hover) {\n .point-control:hover:not(:disabled) {\n background: var(--fellowship-talent-surface);\n color: var(--fellowship-talent-foreground);\n }\n\n .clear-all:hover:not(:disabled) {\n background: color-mix(in srgb, var(--fellowship-talent-danger) 8%, transparent);\n color: var(--fellowship-talent-danger);\n }\n\n .talent:hover:not([aria-disabled=\"true\"]) {\n background: var(--_fellowship-field-surface-raised);\n box-shadow: inset 0 0 0 1px var(--fellowship-talent-border);\n }\n }\n\n @container (max-width: 719px) {\n .container {\n padding: 16px 12px;\n }\n\n .header {\n min-height: 80px;\n grid-template-columns: 1fr;\n display: grid;\n gap: 8px;\n padding: 4px 4px 20px;\n }\n\n .heading {\n font-size: 11px;\n }\n\n .points-cluster {\n width: 100%;\n flex-wrap: wrap;\n justify-content: flex-start;\n gap: 8px;\n }\n\n .points {\n font-size: 28px;\n line-height: 36px;\n }\n\n .grid {\n gap: 24px;\n }\n\n .row {\n grid-template-columns: 1fr;\n gap: 8px;\n }\n\n .row-label {\n min-height: 24px;\n align-items: center;\n justify-content: flex-start;\n padding: 0 0 0 16px;\n text-align: left;\n }\n\n .row-label::before {\n inset: 12px auto auto 0;\n width: 8px;\n height: 1px;\n }\n\n .row-label::after {\n top: 9px;\n right: auto;\n left: 0;\n width: 1px;\n height: 7px;\n }\n\n .row-talents {\n grid-template-columns: 1fr;\n gap: 8px;\n }\n\n .talent {\n --fellowship-talent-icon-size: 52px;\n\n min-height: 80px;\n padding-block: 12px;\n }\n }\n\n @media (prefers-reduced-motion: reduce) {\n .point-control,\n .clear-all,\n .talent {\n transition:\n background-color 100ms linear,\n box-shadow 100ms linear,\n color 100ms linear,\n opacity 100ms linear;\n }\n\n .point-control:active:not(:disabled),\n .clear-all:active:not(:disabled),\n .talent:active:not([aria-disabled=\"true\"]) {\n transform: none;\n }\n }\n`;\n","import { html, LitElement, nothing, type PropertyValues, type TemplateResult } from \"lit\";\nimport { customElement, property, state } from \"lit/decorators.js\";\nimport { repeat } from \"lit/directives/repeat.js\";\n\nimport { FellowshipDataError } from \"../data/data-source.js\";\nimport { createPackageFellowshipTalentDataSource } from \"../data/package-talent-data-source.js\";\nimport type { FellowshipTalentDataSource } from \"../data/talent-data-source.js\";\nimport { fieldManualStyles } from \"../styles/field-manual.styles.js\";\nimport { installFieldManualFonts } from \"../styles/field-manual-fonts.js\";\nimport { stripFellowshipRichText } from \"../tooltip/rich-text.js\";\nimport { defineFellowshipTooltip } from \"../tooltip/tooltip.js\";\nimport { createTalentCalculatorRenderModel } from \"./render-model.js\";\nimport {\n canSelectTalent,\n createTalentCalculatorSelectionState,\n MAX_TALENT_POINTS,\n normalizeSelectedTalentIds,\n normalizeTalentPoints,\n} from \"./selection-state.js\";\nimport { talentCalculatorStyles } from \"./talent-calculator.styles.js\";\nimport type {\n FellowshipTalentsErrorDetail,\n FellowshipTalentsReadyDetail,\n FellowshipTalentsWarningDetail,\n LitTalentRenderer,\n TalentCalculatorRenderModel,\n TalentCalculatorSelectionState,\n TalentCalculatorTalentModel,\n TalentCalculatorTalentRenderContext,\n TalentCalculatorWarning,\n TalentPointsChangeDetail,\n TalentPointsChangeSource,\n TalentSelectionChangeDetail,\n TalentSelectionChangeSource,\n} from \"./types.js\";\n\ntype ComponentStatus = \"empty\" | \"loading\" | \"ready\" | \"error\";\n\ninterface TalentPresentation {\n readonly context: TalentCalculatorTalentRenderContext;\n readonly name: string;\n readonly descriptionId: string;\n readonly affordability: string;\n readonly description: string;\n}\n\nconst eventOptions = { bubbles: true, composed: true } as const;\n\nconst stringArrayChanged = (\n value: readonly string[],\n previous: readonly string[] | undefined,\n): boolean =>\n value.length !== previous?.length || value.some((item, index) => item !== previous[index]);\n\nexport const talentSlotName = (talentId: string): string => `talent:${talentId}`;\n\nconst fallbackSelectionState = (talentPoints: number): TalentCalculatorSelectionState => ({\n selectedTalentIds: [],\n spentPoints: 0,\n remainingPoints: talentPoints,\n overBudget: false,\n});\n\nexport { MAX_TALENT_POINTS };\n\n/**\n * @fires fellowship-talents-ready - Fired after talent data is loaded and rendered.\n * @fires fellowship-talents-error - Fired when talent data cannot be loaded.\n * @fires fellowship-talents-warning - Fired for recoverable data and renderer issues.\n * @fires fellowship-talent-selection-change - Fired when selected talents change.\n * @fires fellowship-talent-points-change - Fired when the point budget changes.\n */\n@customElement(\"fellowship-talent-calculator\")\nexport class FellowshipTalentCalculatorElement extends LitElement {\n static override styles = [fieldManualStyles, talentCalculatorStyles];\n\n @property({ type: String, attribute: \"hero-id\" }) heroId = \"\";\n @property({ type: Number, attribute: \"talent-points\" }) talentPoints = MAX_TALENT_POINTS;\n @property({ attribute: false, hasChanged: stringArrayChanged })\n selectedTalentIds: readonly string[] = [];\n @property({ type: String, attribute: \"asset-base-url\" }) assetBaseUrl: string | null = null;\n @property({ attribute: false }) dataSource: FellowshipTalentDataSource | null = null;\n @property({ attribute: false }) renderTalent: LitTalentRenderer | null = null;\n @property({ type: Boolean, attribute: \"show-point-controls\" }) showPointControls = true;\n @property({ type: Boolean, attribute: \"show-tooltips\" }) showTooltips = true;\n\n @state() private _status: ComponentStatus = \"empty\";\n @state() private _error: FellowshipTalentsErrorDetail | null = null;\n @state() private _model: TalentCalculatorRenderModel | null = null;\n @state() private _failedImages = new Set<string>();\n @state() private _announcement = \"\";\n @state() private _renderSelectionState = fallbackSelectionState(MAX_TALENT_POINTS);\n @state() private _talentPresentation = new Map<string, TalentPresentation>();\n @state() private _talentRenderContent = new Map<string, unknown>();\n\n #abortController: AbortController | null = null;\n #loadToken = 0;\n #lastOverBudgetSignature: string | null = null;\n #skipNextPropertyPointEvent = false;\n #rendererFailures = new Set<string>();\n #pendingRendererWarnings: TalentCalculatorWarning[] = [];\n\n override connectedCallback(): void {\n super.connectedCallback();\n installFieldManualFonts(this.ownerDocument);\n }\n\n override disconnectedCallback(): void {\n this.#abortController?.abort();\n super.disconnectedCallback();\n }\n\n protected override updated(changed: PropertyValues<this>): void {\n super.updated(changed);\n this.#flushRendererWarnings();\n\n if (changed.has(\"heroId\") || changed.has(\"dataSource\") || changed.has(\"assetBaseUrl\")) {\n queueMicrotask(() => {\n if (this.isConnected) {\n void this.#loadHeroTalents();\n }\n });\n return;\n }\n\n if (changed.has(\"talentPoints\")) {\n const normalized = normalizeTalentPoints(this.talentPoints);\n if (normalized !== this.talentPoints) {\n this.#skipNextPropertyPointEvent = true;\n this.talentPoints = normalized;\n this.#emitPointsChange(\"normalization\");\n return;\n }\n if (this.#skipNextPropertyPointEvent) {\n this.#skipNextPropertyPointEvent = false;\n } else if (changed.get(\"talentPoints\") !== undefined) {\n this.#emitPointsChange(\"property\");\n }\n }\n\n if (changed.has(\"selectedTalentIds\") && this._model) {\n this.#normalizeSelections(true);\n }\n\n this.#reportOverBudget();\n }\n\n protected override willUpdate(changed: PropertyValues): void {\n super.willUpdate(changed);\n\n const selectionChanged =\n changed.has(\"_model\") || changed.has(\"selectedTalentIds\") || changed.has(\"talentPoints\");\n if (selectionChanged) {\n this._renderSelectionState = this._model\n ? createTalentCalculatorSelectionState(\n this._model,\n this.selectedTalentIds,\n this.talentPoints,\n )\n : fallbackSelectionState(this.talentPoints);\n }\n\n if (changed.has(\"renderTalent\")) {\n this.#rendererFailures.clear();\n }\n if (selectionChanged || changed.has(\"renderTalent\")) {\n this.#prepareTalentRenderContent(this._renderSelectionState);\n }\n }\n\n get renderModel(): TalentCalculatorRenderModel | null {\n return this._model;\n }\n\n get selectionState(): TalentCalculatorSelectionState {\n return this._model\n ? createTalentCalculatorSelectionState(this._model, this.selectedTalentIds, this.talentPoints)\n : fallbackSelectionState(this.talentPoints);\n }\n\n reset(): void {\n if (this.selectedTalentIds.length === 0) {\n return;\n }\n this.selectedTalentIds = [];\n this.#emitSelectionChange(\"reset\");\n }\n\n selectTalent(talentId: string): boolean {\n const model = this._model?.talentById.get(talentId);\n const state = this.selectionState;\n if (\n !model ||\n state.selectedTalentIds.includes(talentId) ||\n !canSelectTalent(model.pointCost, state)\n ) {\n return false;\n }\n this.selectedTalentIds = [...state.selectedTalentIds, talentId];\n this.#emitSelectionChange(\"api\");\n return true;\n }\n\n deselectTalent(talentId: string): boolean {\n if (!this.selectionState.selectedTalentIds.includes(talentId)) {\n return false;\n }\n this.selectedTalentIds = this.selectionState.selectedTalentIds.filter((id) => id !== talentId);\n this.#emitSelectionChange(\"api\");\n return true;\n }\n\n retry(): void {\n void this.#loadHeroTalents();\n }\n\n override render(): TemplateResult {\n const state = this._renderSelectionState;\n const label = this._model?.hero.name ?? this._model?.hero.id ?? \"Fellowship hero\";\n return html`\n <section\n class=\"container\"\n part=\"container\"\n aria-label=${`${label} talent calculator`}\n aria-invalid=${String(state.overBudget)}\n >\n ${this.#renderHeader(state)}\n ${\n this._status === \"ready\" && this._model\n ? this.#renderGrid(this._model)\n : this.#renderStatus()\n }\n <p class=\"visually-hidden\" role=\"status\" aria-live=\"polite\">${this._announcement}</p>\n </section>\n `;\n }\n\n #renderHeader(state: TalentCalculatorSelectionState): TemplateResult {\n return html`\n <header class=\"header\" part=\"header\">\n <h2 class=\"heading\" part=\"heading\">Talent points</h2>\n <div class=\"points-cluster\">\n <div\n class=\"points\"\n part=\"points\"\n data-invalid=${String(state.overBudget)}\n aria-label=${`${state.spentPoints} of ${this.talentPoints} talent points spent`}\n aria-live=\"polite\"\n >\n <span class=\"points-spent\" part=\"points-spent\">${state.spentPoints}</span>\n <span class=\"points-separator\" aria-hidden=\"true\">/</span>\n <span class=\"points-total\" part=\"points-total\">${this.talentPoints}</span>\n </div>\n ${\n this.showPointControls\n ? html`\n <div\n class=\"point-controls\"\n part=\"point-controls\"\n role=\"group\"\n aria-label=\"Talent points\"\n >\n <button\n class=\"point-control\"\n part=\"point-control\"\n type=\"button\"\n aria-label=\"Decrease available talent points\"\n title=\"Decrease available talent points\"\n ?disabled=${this.talentPoints <= state.spentPoints}\n @click=${() => this.#setTalentPoints(this.talentPoints - 1, \"decrement\")}\n >\n −\n </button>\n <button\n class=\"point-control\"\n part=\"point-control\"\n type=\"button\"\n aria-label=\"Increase available talent points\"\n title=\"Increase available talent points\"\n ?disabled=${this.talentPoints >= MAX_TALENT_POINTS}\n @click=${() => this.#setTalentPoints(this.talentPoints + 1, \"increment\")}\n >\n +\n </button>\n </div>\n `\n : nothing\n }\n <button\n class=\"clear-all\"\n part=\"clear-all\"\n type=\"button\"\n ?disabled=${state.selectedTalentIds.length === 0}\n @click=${this.reset}\n >\n Clear All\n </button>\n </div>\n </header>\n `;\n }\n\n #renderGrid(model: TalentCalculatorRenderModel): TemplateResult {\n if (model.rows.length === 0) {\n return html`\n <div class=\"status\" part=\"empty-state\" role=\"status\">\n <div class=\"status-card\">\n <div class=\"status-mark\" aria-hidden=\"true\">◇</div>\n <p class=\"status-title\">No active talents</p>\n <p class=\"status-copy\">\n ${model.hero.name ?? model.hero.id} has no positioned talents.\n </p>\n </div>\n </div>\n `;\n }\n\n return html`\n <div class=\"grid\" part=\"grid\" role=\"group\" aria-label=\"Talent tiers\">\n ${repeat(\n model.rows,\n (row) => row.row,\n (row) => html`\n <fieldset class=\"row\" part=\"row\">\n <legend class=\"visually-hidden\">Talent tier ${row.label}</legend>\n <span class=\"row-label\" part=\"row-label\" aria-hidden=\"true\">${row.label}</span>\n <div class=\"row-talents\">\n ${repeat(\n row.talents,\n (talent) => talent.talent.id,\n (talent) => this.#renderTalent(talent),\n )}\n </div>\n </fieldset>\n `,\n )}\n </div>\n `;\n }\n\n #renderTalent(talent: TalentCalculatorTalentModel): TemplateResult | typeof nothing {\n const presentation = this._talentPresentation.get(talent.talent.id);\n if (!presentation) {\n return nothing;\n }\n const { context, name, descriptionId, affordability, description } = presentation;\n const { selected, disabled } = context;\n const card = html`\n <button\n class=\"talent\"\n part=\"talent\"\n type=\"button\"\n aria-label=${`${name}, ${affordability}`}\n aria-describedby=${descriptionId}\n aria-pressed=${String(selected)}\n aria-disabled=${String(disabled)}\n @click=${() => this.#handleTalentActivation(talent, selected, disabled)}\n >\n ${this.#renderTalentContent(context)}\n <span class=\"talent-cost\" part=\"talent-cost\">${talent.pointCost ?? \"–\"}</span>\n </button>\n `;\n\n return html`\n ${\n this.showTooltips && (talent.talent.description || disabled)\n ? html`\n <fellowship-tooltip\n .heading=${name}\n .text=${talent.talent.description ?? affordability}\n >\n ${card}\n </fellowship-tooltip>\n `\n : card\n }\n <span class=\"visually-hidden\" id=${descriptionId}>${description}</span>\n `;\n }\n\n #prepareTalentRenderContent(state: TalentCalculatorSelectionState): void {\n const renderer = this.renderTalent;\n const model = this._model;\n const content = new Map<string, unknown>();\n const presentations = new Map<string, TalentPresentation>();\n\n if (model) {\n for (const talent of model.talentById.values()) {\n const selected = state.selectedTalentIds.includes(talent.talent.id);\n const affordable = canSelectTalent(talent.pointCost, state);\n const disabled = !selected && !affordable;\n const name = talent.talent.name ?? talent.talent.id;\n const affordability =\n talent.pointCost === null\n ? \"This talent has no valid point cost.\"\n : disabled\n ? `Requires ${talent.pointCost} talent points; ${Math.max(0, state.remainingPoints)} remaining.`\n : `${talent.pointCost} talent ${talent.pointCost === 1 ? \"point\" : \"points\"}.`;\n const context: TalentCalculatorTalentRenderContext = {\n talent,\n hero: model.hero,\n selected,\n affordable,\n disabled,\n spentPoints: state.spentPoints,\n remainingPoints: state.remainingPoints,\n talentPoints: this.talentPoints,\n };\n presentations.set(talent.talent.id, {\n context,\n name,\n descriptionId: `talent-description-${talent.row}-${talent.column}`,\n affordability,\n description: [stripFellowshipRichText(talent.talent.description ?? \"\"), affordability]\n .filter(Boolean)\n .join(\" \"),\n });\n if (!renderer) {\n continue;\n }\n try {\n content.set(talent.talent.id, renderer(context));\n } catch (error: unknown) {\n if (!this.#rendererFailures.has(talent.talent.id)) {\n this.#rendererFailures.add(talent.talent.id);\n this.#pendingRendererWarnings.push({\n code: \"renderer-error\",\n message: `The talent renderer failed for “${talent.talent.id}”: ${String(error)}.`,\n talentId: talent.talent.id,\n });\n }\n }\n }\n }\n\n this._talentPresentation = presentations;\n this._talentRenderContent = content;\n }\n\n #renderTalentContent(context: TalentCalculatorTalentRenderContext): unknown {\n const talent = context.talent;\n const name = talent.talent.name ?? talent.talent.id;\n const content =\n this.renderTalent && this._talentRenderContent.has(talent.talent.id)\n ? this._talentRenderContent.get(talent.talent.id)\n : html`\n <slot name=${talentSlotName(talent.talent.id)}>\n <span class=\"talent-name\" part=\"talent-name\" title=${name}>${name}</span>\n </slot>\n `;\n\n return html`\n ${this.#renderDefaultTalentIcon(talent, name)} ${content}\n `;\n }\n\n #renderDefaultTalentIcon(talent: TalentCalculatorTalentModel, name: string): TemplateResult {\n if (talent.imageUrl && !this._failedImages.has(talent.talent.id)) {\n return html`\n <img\n class=\"talent-icon\"\n part=\"talent-icon\"\n src=${talent.imageUrl}\n alt=\"\"\n draggable=\"false\"\n @error=${() => this.#handleImageError(talent)}\n />\n `;\n }\n const rune = name\n .split(/\\s+/)\n .map((part) => part[0])\n .join(\"\")\n .slice(0, 2)\n .toUpperCase();\n return html`<span class=\"talent-icon-fallback\" part=\"talent-icon-fallback\">${rune}</span>`;\n }\n\n #renderStatus(): TemplateResult {\n const loading = this._status === \"loading\";\n const empty = this._status === \"empty\";\n const title = loading\n ? \"Reading talent codex\"\n : empty\n ? \"Choose a hero\"\n : \"Talents unavailable\";\n const copy = loading\n ? \"Loading the hero and their available talents.\"\n : empty\n ? \"Set the hero-id attribute or heroId property to build a talent loadout.\"\n : (this._error?.message ?? \"An unexpected talent data error occurred.\");\n return html`\n <div\n class=\"status\"\n part=${this._status === \"error\" ? \"error-state\" : \"status\"}\n role=${this._status === \"error\" ? \"alert\" : \"status\"}\n >\n <div class=\"status-card\">\n <div class=\"status-mark\" aria-hidden=\"true\">${loading ? \"…\" : \"✦\"}</div>\n <p class=\"status-title\">${title}</p>\n <p class=\"status-copy\">${copy}</p>\n ${\n this._status === \"error\"\n ? html`<button class=\"retry-button\" type=\"button\" @click=${this.retry}>Retry</button>`\n : nothing\n }\n </div>\n </div>\n `;\n }\n\n async #loadHeroTalents(): Promise<void> {\n const heroId = this.heroId.trim();\n const token = ++this.#loadToken;\n this.#abortController?.abort();\n this.#abortController = new AbortController();\n this._model = null;\n this._error = null;\n this._failedImages = new Set();\n this.#rendererFailures.clear();\n this.#lastOverBudgetSignature = null;\n\n if (!heroId) {\n this._status = \"empty\";\n return;\n }\n\n this._status = \"loading\";\n const source =\n this.dataSource ??\n createPackageFellowshipTalentDataSource(\n this.assetBaseUrl ? { assetBaseUrl: this.assetBaseUrl } : {},\n );\n\n try {\n const data = await source.loadHeroTalents(heroId, this.#abortController.signal);\n if (token !== this.#loadToken || this.#abortController.signal.aborted) {\n return;\n }\n if (data.manifest.schemaVersion !== 1) {\n throw new FellowshipDataError(\n \"unsupported-schema\",\n `Unsupported fellowship-data schema version: ${String(data.manifest.schemaVersion)}.`,\n );\n }\n const model = createTalentCalculatorRenderModel(data, source);\n this._model = model;\n this._status = \"ready\";\n const normalized = this.#normalizeSelections(false);\n await this.updateComplete;\n const selection = this.selectionState;\n this.dispatchEvent(\n new CustomEvent<FellowshipTalentsReadyDetail>(\"fellowship-talents-ready\", {\n ...eventOptions,\n detail: { data, model, selection },\n }),\n );\n if (model.warnings.length > 0) {\n this.#reportWarnings(model.warnings);\n }\n if (normalized) {\n this.#emitSelectionChange(\"normalization\");\n }\n this.#reportOverBudget();\n } catch (error: unknown) {\n if (token !== this.#loadToken || this.#abortController.signal.aborted) {\n return;\n }\n this.#setError(error);\n }\n }\n\n #normalizeSelections(emit: boolean): boolean {\n if (!this._model) {\n return false;\n }\n const normalized = normalizeSelectedTalentIds(this._model, this.selectedTalentIds);\n const changed =\n normalized.selectedTalentIds.length !== this.selectedTalentIds.length ||\n normalized.selectedTalentIds.some((id, index) => id !== this.selectedTalentIds[index]);\n if (!changed) {\n return false;\n }\n this.selectedTalentIds = normalized.selectedTalentIds;\n if (normalized.removedTalentIds.length > 0) {\n this.#reportWarnings([\n {\n code: \"invalid-selection\",\n message: `Removed unavailable talent selections: ${normalized.removedTalentIds.join(\", \")}.`,\n talentId: null,\n },\n ]);\n }\n if (emit) {\n this.#emitSelectionChange(\"normalization\");\n }\n return true;\n }\n\n #handleTalentActivation(\n talent: TalentCalculatorTalentModel,\n selected: boolean,\n disabled: boolean,\n ): void {\n if (selected) {\n this.selectedTalentIds = this.selectionState.selectedTalentIds.filter(\n (id) => id !== talent.talent.id,\n );\n this.#emitSelectionChange(\"user\");\n return;\n }\n if (disabled) {\n this._announcement = this.selectionState.overBudget\n ? \"The current build exceeds the available talent points. Deselect a talent first.\"\n : `Not enough points for ${talent.talent.name ?? talent.talent.id}.`;\n return;\n }\n this.selectedTalentIds = [...this.selectionState.selectedTalentIds, talent.talent.id];\n this.#emitSelectionChange(\"user\");\n }\n\n #setTalentPoints(value: number, source: TalentPointsChangeSource): void {\n const normalized = normalizeTalentPoints(value);\n const state = this.selectionState;\n if (normalized === this.talentPoints || normalized < state.spentPoints) {\n return;\n }\n this.talentPoints = normalized;\n this.#skipNextPropertyPointEvent = true;\n this.#emitPointsChange(source);\n }\n\n #emitSelectionChange(source: TalentSelectionChangeSource): void {\n const state = this._model\n ? createTalentCalculatorSelectionState(this._model, this.selectedTalentIds, this.talentPoints)\n : fallbackSelectionState(this.talentPoints);\n this.dispatchEvent(\n new CustomEvent<TalentSelectionChangeDetail>(\"fellowship-talent-selection-change\", {\n ...eventOptions,\n detail: { ...state, source },\n }),\n );\n }\n\n #emitPointsChange(source: TalentPointsChangeSource): void {\n const state = this.selectionState;\n this.dispatchEvent(\n new CustomEvent<TalentPointsChangeDetail>(\"fellowship-talent-points-change\", {\n ...eventOptions,\n detail: { ...state, talentPoints: this.talentPoints, source },\n }),\n );\n }\n\n #reportOverBudget(): void {\n const state = this.selectionState;\n if (!state.overBudget) {\n this.#lastOverBudgetSignature = null;\n this.removeAttribute(\"aria-invalid\");\n return;\n }\n this.setAttribute(\"aria-invalid\", \"true\");\n const signature = `${this.talentPoints}:${state.selectedTalentIds.join(\",\")}`;\n if (signature === this.#lastOverBudgetSignature) {\n return;\n }\n this.#lastOverBudgetSignature = signature;\n this.#reportWarnings([\n {\n code: \"over-budget\",\n message: `The selected talents cost ${state.spentPoints} points, exceeding the ${this.talentPoints}-point budget.`,\n talentId: null,\n },\n ]);\n }\n\n #handleImageError(talent: TalentCalculatorTalentModel): void {\n if (this._failedImages.has(talent.talent.id)) {\n return;\n }\n this._failedImages = new Set(this._failedImages).add(talent.talent.id);\n this.#reportWarnings([\n {\n code: \"asset-image-error\",\n message: `The icon for talent “${talent.talent.id}” could not be loaded.`,\n talentId: talent.talent.id,\n },\n ]);\n }\n\n #reportWarnings(warnings: readonly TalentCalculatorWarning[]): void {\n this.dispatchEvent(\n new CustomEvent<FellowshipTalentsWarningDetail>(\"fellowship-talents-warning\", {\n ...eventOptions,\n detail: { warnings, model: this._model },\n }),\n );\n }\n\n #flushRendererWarnings(): void {\n if (this.#pendingRendererWarnings.length === 0) {\n return;\n }\n const warnings = this.#pendingRendererWarnings;\n this.#pendingRendererWarnings = [];\n this.#reportWarnings(warnings);\n }\n\n #setError(error: unknown): void {\n const detail: FellowshipTalentsErrorDetail =\n typeof error === \"object\" && error !== null && \"code\" in error && \"message\" in error\n ? {\n code: String(error.code),\n message: String(error.message),\n ...(error instanceof FellowshipDataError && error.cause !== undefined\n ? { cause: error.cause }\n : {}),\n }\n : { code: \"unknown\", message: error instanceof Error ? error.message : String(error) };\n this._error = detail;\n this._status = \"error\";\n this.dispatchEvent(\n new CustomEvent<FellowshipTalentsErrorDetail>(\"fellowship-talents-error\", {\n ...eventOptions,\n detail,\n }),\n );\n }\n}\n\nexport const defineFellowshipTalentCalculator = (): void => {\n defineFellowshipTooltip();\n if (!customElements.get(\"fellowship-talent-calculator\")) {\n customElements.define(\"fellowship-talent-calculator\", FellowshipTalentCalculatorElement);\n }\n};\n\ndeclare global {\n interface HTMLElementTagNameMap {\n \"fellowship-talent-calculator\": FellowshipTalentCalculatorElement;\n }\n}\n"],"mappings":";;;;;;;;;AAUA,IAAa,KACX,IAAoD,CAAC,MACtB;CAC/B,IAAM,IAAS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,WAAA,gBAAA,KAAA,CAAA,MACtD,EAAS,EAAE,WAAW,GAAM,CAAC,CAAA,GAAA,EAAA,WAAA,cAAA,KAAA,CAAA,MAC7B,EAAS,EAAE,WAAW,GAAM,CAAC,CAAA,GAAA,EAAA,WAAA,gBAAA,KAAA,CAAA,MAC7B,EAAS;CAAE,MAAM;CAAS,WAAW;AAAsB,CAAC,CAAA,GAAA,EAAA,WAAA,qBAAA,KAAA,CAAA,MAC5D,EAAS;CAAE,MAAM;CAAS,WAAW;AAAgB,CAAC,CAAA,GAAA,EAAA,WAAA,gBAAA,KAAA,CAAA,MAEtD,EAAM,CAAA,GAAA,EAAA,WAAA,WAAA,KAAA,CAAA,MACN,EAAM,CAAA,GAAA,EAAA,WAAA,UAAA,KAAA,CAAA,MACN,EAAM,CAAA,GAAA,EAAA,WAAA,UAAA,KAAA,CAAA,MACN,EAAM,CAAA,GAAA,EAAA,WAAA,iBAAA,KAAA,CAAA,MACN,EAAM,CAAA,GAAA,EAAA,WAAA,iBAAA,KAAA,CAAA,MACN,EAAM,CAAA,GAAA,EAAA,WAAA,yBAAA,KAAA,CAAA,MACN,EAAM,CAAA,GAAA,EAAA,WAAA,uBAAA,KAAA,CAAA,MACN,EAAM,CAAA,GAAA,EAAA,WAAA,wBAAA,KAAA,CAAA,UArBR,EAAc,8BAA8B,CAAA,GAAA,CAAA;AAkpB7C,IAAa,UAA+C;CAE1D,AADA,EAAwB,GACnB,eAAe,IAAI,8BAA8B,KACpD,eAAe,OAAO,gCAAgC,CAAiC;AAE3F"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"tooltip-DoQVSnOn.js","names":["#trigger","#clearTimer","#timer","#setOpen","#restoreTriggerDescription","#syncTriggerDescription","#resizeObserver","#positionSurface","#stopPositionTracking","#handlePointerEnter","#handlePointerLeave","#handleFocusIn","#handleFocusOut","#handleKeydown","#handleTriggerSlotChange","#startPositionTracking","#hasStoredAriaDescription","#previousAriaDescription"],"sources":["../../src/tooltip/rich-text.ts","../../src/tooltip/positioning.ts","../../src/tooltip/tooltip.styles.ts","../../src/tooltip/tooltip.ts"],"sourcesContent":["import type {\n FellowshipRichTextDocument,\n FellowshipRichTextSegment,\n FellowshipTextTone,\n} from \"./types.js\";\n\nconst toneByTag: Readonly<Record<string, FellowshipTextTone>> = {\n bold: \"strong\",\n \"rt.bold\": \"strong\",\n \"rt.absorb\": \"ability\",\n \"rt.warning\": \"warning\",\n \"rt.effect\": \"effect\",\n \"rt.mana\": \"resource\",\n \"rt.heal\": \"healing\",\n \"rt.meikoability1\": \"meiko-primary\",\n \"rt.meikoability2\": \"meiko-secondary\",\n};\n\nconst appendText = (\n paragraphs: FellowshipRichTextSegment[][],\n text: string,\n tone: FellowshipTextTone,\n): void => {\n const normalized = text.replace(/\\r\\n?/g, \"\\n\");\n const parts = normalized.split(/\\n{2,}/);\n parts.forEach((part, index) => {\n const paragraph = paragraphs.at(-1)!;\n if (part.length > 0) {\n const previous = paragraph.at(-1);\n if (previous?.tone === tone) {\n paragraph[paragraph.length - 1] = { text: `${previous.text}${part}`, tone };\n } else {\n paragraph.push({ text: part, tone });\n }\n }\n if (index < parts.length - 1) {\n paragraphs.push([]);\n }\n });\n};\n\nexport const resolveFellowshipRichText = (value: string): FellowshipRichTextDocument => {\n const paragraphs: FellowshipRichTextSegment[][] = [[]];\n const tones: FellowshipTextTone[] = [\"default\"];\n const tokens = value.split(/(<\\/?[^>]+>|<\\/>)/g);\n\n for (const token of tokens) {\n if (!token) {\n continue;\n }\n if (token === \"</>\") {\n if (tones.length > 1) {\n tones.pop();\n }\n continue;\n }\n const closing = token.match(/^<\\/\\s*([^>\\s]+)\\s*>$/);\n if (closing) {\n if (tones.length > 1) {\n tones.pop();\n }\n continue;\n }\n const opening = token.match(/^<\\s*([^/][^>\\s]*)\\s*>$/);\n if (opening) {\n const tag = opening[1]?.toLowerCase() ?? \"\";\n tones.push(toneByTag[tag] ?? \"default\");\n continue;\n }\n appendText(paragraphs, token, tones.at(-1) ?? \"default\");\n }\n\n return paragraphs;\n};\n\nexport const stripFellowshipRichText = (value: string): string =>\n resolveFellowshipRichText(value)\n .map((paragraph) => paragraph.map(({ text }) => text).join(\"\"))\n .join(\"\\n\\n\")\n .trim();\n","import type { FellowshipTooltipPlacement, ResolvedTooltipPlacement } from \"./types.js\";\n\nexport interface TooltipRect {\n readonly top: number;\n readonly right: number;\n readonly bottom: number;\n readonly left: number;\n readonly width: number;\n readonly height: number;\n}\n\nexport interface TooltipPosition {\n readonly x: number;\n readonly y: number;\n readonly placement: ResolvedTooltipPlacement;\n}\n\nexport interface TooltipPositionOptions {\n readonly placement?: FellowshipTooltipPlacement;\n readonly viewportWidth: number;\n readonly viewportHeight: number;\n readonly gap?: number;\n readonly margin?: number;\n}\n\nconst clamp = (value: number, minimum: number, maximum: number): number =>\n Math.min(Math.max(value, minimum), Math.max(minimum, maximum));\n\nexport const calculateTooltipPosition = (\n trigger: TooltipRect,\n tooltip: Pick<TooltipRect, \"width\" | \"height\">,\n options: TooltipPositionOptions,\n): TooltipPosition => {\n const gap = options.gap ?? 8;\n const margin = options.margin ?? 8;\n const available: Record<ResolvedTooltipPlacement, number> = {\n top: trigger.top - margin,\n bottom: options.viewportHeight - trigger.bottom - margin,\n right: options.viewportWidth - trigger.right - margin,\n left: trigger.left - margin,\n };\n const required: Record<ResolvedTooltipPlacement, number> = {\n top: tooltip.height + gap,\n bottom: tooltip.height + gap,\n right: tooltip.width + gap,\n left: tooltip.width + gap,\n };\n const order: readonly ResolvedTooltipPlacement[] = [\"top\", \"bottom\", \"right\", \"left\"];\n const preferred = options.placement ?? \"auto\";\n const placement =\n preferred === \"auto\"\n ? (order.find((candidate) => available[candidate] >= required[candidate]) ??\n [...order].sort((a, b) => available[b] - available[a])[0]!)\n : preferred;\n\n const centeredX = trigger.left + trigger.width / 2 - tooltip.width / 2;\n const centeredY = trigger.top + trigger.height / 2 - tooltip.height / 2;\n const x =\n placement === \"left\"\n ? trigger.left - tooltip.width - gap\n : placement === \"right\"\n ? trigger.right + gap\n : centeredX;\n const y =\n placement === \"top\"\n ? trigger.top - tooltip.height - gap\n : placement === \"bottom\"\n ? trigger.bottom + gap\n : centeredY;\n\n return {\n placement,\n x: Math.round(clamp(x, margin, options.viewportWidth - tooltip.width - margin)),\n y: Math.round(clamp(y, margin, options.viewportHeight - tooltip.height - margin)),\n };\n};\n","import { css } from \"lit\";\n\nexport const tooltipStyles = css`\n :host {\n --fellowship-tooltip-void: var(--_fellowship-field-surface-raised);\n --fellowship-tooltip-ink: var(--_fellowship-field-ink);\n --fellowship-tooltip-muted-ink: var(--_fellowship-field-muted);\n --fellowship-tooltip-border: var(--_fellowship-field-border-strong);\n --fellowship-tooltip-focus: var(--_fellowship-field-focus);\n --fellowship-tooltip-ability: #76c5d2;\n --fellowship-tooltip-warning: #d4a761;\n --fellowship-tooltip-effect: #afa1ca;\n --fellowship-tooltip-resource: #7cb2c2;\n --fellowship-tooltip-healing: #82b997;\n --fellowship-tooltip-meiko-primary: #c892a0;\n --fellowship-tooltip-meiko-secondary: #8dbab7;\n --fellowship-tooltip-font-family: var(--_fellowship-field-font-family);\n --fellowship-tooltip-radius: var(--_fellowship-field-radius);\n --fellowship-tooltip-max-width: 360px;\n\n display: inline-block;\n min-width: 0;\n color: var(--fellowship-tooltip-ink);\n font-family: var(--fellowship-tooltip-font-family);\n -webkit-font-smoothing: antialiased;\n }\n\n :host([hidden]) {\n display: none;\n }\n\n .trigger {\n display: contents;\n }\n\n .surface {\n position: fixed;\n z-index: 2147483647;\n box-sizing: border-box;\n display: none;\n overflow: visible;\n width: max-content;\n max-width: min(var(--fellowship-tooltip-max-width), calc(100vw - 16px));\n margin: 0;\n padding: 12px 14px 14px;\n border: 1px solid var(--fellowship-tooltip-border);\n border-radius: var(--fellowship-tooltip-radius);\n background: var(--fellowship-tooltip-void);\n color: var(--fellowship-tooltip-ink);\n box-shadow: 0 8px 24px rgb(0 0 0 / 34%);\n opacity: 0;\n transform: translateY(4px) scale(0.98);\n transform-origin: bottom center;\n transition:\n opacity 140ms cubic-bezier(0.23, 1, 0.32, 1),\n transform 140ms cubic-bezier(0.23, 1, 0.32, 1);\n pointer-events: none;\n }\n\n .surface[data-open=\"true\"] {\n display: block;\n opacity: 1;\n transform: translateY(0) scale(1);\n }\n\n .surface[data-placement=\"bottom\"] {\n transform-origin: top center;\n }\n\n .surface[data-placement=\"left\"] {\n transform-origin: center right;\n }\n\n .surface[data-placement=\"right\"] {\n transform-origin: center left;\n }\n\n .heading {\n position: relative;\n margin: 0 0 6px;\n padding-left: 12px;\n color: var(--fellowship-tooltip-ink);\n font-size: 14px;\n font-weight: 600;\n line-height: 20px;\n text-wrap: balance;\n }\n\n .heading::before {\n position: absolute;\n inset: 4px auto 4px 0;\n width: 2px;\n background: var(--_fellowship-field-accent);\n content: \"\";\n }\n\n .content {\n color: var(--fellowship-tooltip-muted-ink);\n font-size: 13px;\n font-weight: 400;\n line-height: 20px;\n text-wrap: pretty;\n }\n\n .paragraph {\n margin: 0;\n white-space: pre-line;\n }\n\n .paragraph + .paragraph {\n margin-top: 8px;\n }\n\n [data-tone=\"strong\"] {\n color: var(--fellowship-tooltip-ink);\n font-weight: 600;\n }\n\n [data-tone=\"ability\"] {\n color: var(--fellowship-tooltip-ability);\n }\n\n [data-tone=\"warning\"] {\n color: var(--fellowship-tooltip-warning);\n }\n\n [data-tone=\"effect\"] {\n color: var(--fellowship-tooltip-effect);\n }\n\n [data-tone=\"resource\"] {\n color: var(--fellowship-tooltip-resource);\n }\n\n [data-tone=\"healing\"] {\n color: var(--fellowship-tooltip-healing);\n }\n\n [data-tone=\"meiko-primary\"] {\n color: var(--fellowship-tooltip-meiko-primary);\n }\n\n [data-tone=\"meiko-secondary\"] {\n color: var(--fellowship-tooltip-meiko-secondary);\n }\n\n .arrow {\n position: absolute;\n width: 8px;\n height: 8px;\n border: solid var(--fellowship-tooltip-border);\n background: var(--fellowship-tooltip-void);\n transform: rotate(45deg);\n }\n\n .surface[data-placement=\"top\"] .arrow {\n bottom: -5px;\n left: calc(50% - 4px);\n border-width: 0 1px 1px 0;\n }\n\n .surface[data-placement=\"bottom\"] .arrow {\n top: -5px;\n left: calc(50% - 4px);\n border-width: 1px 0 0 1px;\n }\n\n .surface[data-placement=\"left\"] .arrow {\n top: calc(50% - 4px);\n right: -5px;\n border-width: 1px 1px 0 0;\n }\n\n .surface[data-placement=\"right\"] .arrow {\n top: calc(50% - 4px);\n left: -5px;\n border-width: 0 0 1px 1px;\n }\n\n @media (prefers-reduced-motion: reduce) {\n .surface {\n transition: opacity 100ms linear;\n transform: none;\n }\n }\n`;\n","import { html, LitElement, nothing, type PropertyValues, type TemplateResult } from \"lit\";\nimport { customElement, property, query, state } from \"lit/decorators.js\";\nimport { repeat } from \"lit/directives/repeat.js\";\nimport { styleMap } from \"lit/directives/style-map.js\";\n\nimport { fieldManualStyles } from \"../styles/field-manual.styles.js\";\nimport { installFieldManualFonts } from \"../styles/field-manual-fonts.js\";\nimport { calculateTooltipPosition } from \"./positioning.js\";\nimport { resolveFellowshipRichText, stripFellowshipRichText } from \"./rich-text.js\";\nimport { tooltipStyles } from \"./tooltip.styles.js\";\nimport type {\n FellowshipTooltipPlacement,\n FellowshipRichTextDocument,\n FellowshipTooltipToggleDetail,\n ResolvedTooltipPlacement,\n} from \"./types.js\";\n\nconst eventOptions = { bubbles: true, composed: true } as const;\n\n/**\n * @fires fellowship-tooltip-toggle - Fired when the tooltip opens or closes.\n */\n@customElement(\"fellowship-tooltip\")\nexport class FellowshipTooltipElement extends LitElement {\n static override styles = [fieldManualStyles, tooltipStyles];\n\n @property({ type: String }) heading: string | null = null;\n @property({ type: String }) text: string | null = null;\n @property({ type: String }) placement: FellowshipTooltipPlacement = \"auto\";\n @property({ type: Number, attribute: \"open-delay\" }) openDelay = 250;\n @property({ type: Boolean, reflect: true }) disabled = false;\n\n @state() private _open = false;\n @state() private _position = { x: 0, y: 0 };\n @state() private _resolvedPlacement: ResolvedTooltipPlacement = \"top\";\n @state() private _paragraphs: FellowshipRichTextDocument = [];\n\n @query(\".surface\") private _surface?: HTMLElement;\n\n #timer: number | null = null;\n #trigger: HTMLElement | null = null;\n #previousAriaDescription: string | null = null;\n #hasStoredAriaDescription = false;\n #resizeObserver: ResizeObserver | null = null;\n\n override connectedCallback(): void {\n super.connectedCallback();\n installFieldManualFonts(this.ownerDocument);\n this.#resizeObserver ??= new ResizeObserver(() => this.#positionSurface());\n }\n\n override disconnectedCallback(): void {\n this.#clearTimer();\n this.#stopPositionTracking();\n this.#restoreTriggerDescription();\n super.disconnectedCallback();\n }\n\n protected override updated(changed: PropertyValues<this>): void {\n super.updated(changed);\n if (changed.has(\"text\") || changed.has(\"heading\")) {\n this.#syncTriggerDescription();\n }\n if (changed.has(\"disabled\") && this.disabled && this._open) {\n this.#setOpen(false, \"disabled\");\n }\n if (changed.has(\"placement\") && this._open) {\n this.#positionSurface();\n }\n }\n\n protected override willUpdate(changed: PropertyValues<this>): void {\n super.willUpdate(changed);\n if (changed.has(\"text\")) {\n this._paragraphs = resolveFellowshipRichText(this.text ?? \"\");\n }\n }\n\n show(): void {\n if (this.disabled || this._open) {\n return;\n }\n this.#setOpen(true, \"programmatic\");\n }\n\n hide(): void {\n this.#clearTimer();\n if (this._open) {\n this.#setOpen(false, \"programmatic\");\n }\n }\n\n override render(): TemplateResult {\n const surfaceStyle = {\n left: `${this._position.x}px`,\n top: `${this._position.y}px`,\n };\n\n return html`\n <span\n class=\"trigger\"\n part=\"trigger\"\n @pointerenter=${this.#handlePointerEnter}\n @pointerleave=${this.#handlePointerLeave}\n @focusin=${this.#handleFocusIn}\n @focusout=${this.#handleFocusOut}\n @keydown=${this.#handleKeydown}\n >\n <slot @slotchange=${this.#handleTriggerSlotChange}></slot>\n </span>\n <div\n class=\"surface\"\n part=\"surface\"\n role=\"tooltip\"\n popover=\"manual\"\n data-open=${String(this._open)}\n data-placement=${this._resolvedPlacement}\n style=${styleMap(surfaceStyle)}\n >\n <span class=\"arrow\" part=\"arrow\" aria-hidden=\"true\"></span>\n <slot name=\"content\">\n ${this.heading ? html`<p class=\"heading\" part=\"heading\">${this.heading}</p>` : nothing}\n <div class=\"content\" part=\"content\">\n ${repeat(\n this._paragraphs,\n (_paragraph, paragraphIndex) => paragraphIndex,\n (paragraph, paragraphIndex) => html`\n <p class=\"paragraph\" part=\"paragraph\">\n ${repeat(\n paragraph,\n (segment, segmentIndex) =>\n `${paragraphIndex}:${segmentIndex}:${segment.tone}:${segment.text}`,\n (segment) => html`<span data-tone=${segment.tone}>${segment.text}</span>`,\n )}\n </p>\n `,\n )}\n </div>\n </slot>\n </div>\n `;\n }\n\n #setOpen(open: boolean, reason: FellowshipTooltipToggleDetail[\"reason\"]): void {\n if (open === this._open) {\n return;\n }\n this._open = open;\n void this.updateComplete.then(() => {\n const surface = this._surface;\n if (!surface) {\n return;\n }\n if (open) {\n if (\"showPopover\" in surface && !surface.matches(\":popover-open\")) {\n surface.showPopover();\n }\n this.#startPositionTracking();\n this.#positionSurface();\n } else {\n if (\"hidePopover\" in surface && surface.matches(\":popover-open\")) {\n surface.hidePopover();\n }\n this.#stopPositionTracking();\n }\n });\n this.dispatchEvent(\n new CustomEvent<FellowshipTooltipToggleDetail>(\"fellowship-tooltip-toggle\", {\n ...eventOptions,\n detail: { open, reason },\n }),\n );\n }\n\n #positionSurface = (): void => {\n if (!this._open || !this.#trigger || !this._surface) {\n return;\n }\n const trigger = this.#trigger.getBoundingClientRect();\n const surface = this._surface.getBoundingClientRect();\n const next = calculateTooltipPosition(trigger, surface, {\n placement: this.placement,\n viewportWidth: window.innerWidth,\n viewportHeight: window.innerHeight,\n });\n if (\n next.x === this._position.x &&\n next.y === this._position.y &&\n next.placement === this._resolvedPlacement\n ) {\n return;\n }\n this._position = { x: next.x, y: next.y };\n this._resolvedPlacement = next.placement;\n };\n\n #startPositionTracking(): void {\n window.addEventListener(\"resize\", this.#positionSurface);\n window.addEventListener(\"scroll\", this.#positionSurface, true);\n if (this.#trigger) {\n this.#resizeObserver?.observe(this.#trigger);\n }\n if (this._surface) {\n this.#resizeObserver?.observe(this._surface);\n }\n }\n\n #stopPositionTracking(): void {\n window.removeEventListener(\"resize\", this.#positionSurface);\n window.removeEventListener(\"scroll\", this.#positionSurface, true);\n this.#resizeObserver?.disconnect();\n }\n\n #handlePointerEnter = (): void => {\n if (this.disabled || this._open) {\n return;\n }\n this.#clearTimer();\n this.#timer = window.setTimeout(\n () => {\n this.#timer = null;\n this.#setOpen(true, \"pointer\");\n },\n Math.max(0, this.openDelay),\n );\n };\n\n #handlePointerLeave = (): void => {\n this.#clearTimer();\n if (this._open) {\n this.#setOpen(false, \"pointer\");\n }\n };\n\n #handleFocusIn = (): void => {\n this.#clearTimer();\n if (!this.disabled && !this._open) {\n this.#setOpen(true, \"focus\");\n }\n };\n\n #handleFocusOut = (event: FocusEvent): void => {\n if (!this.contains(event.relatedTarget as Node | null) && this._open) {\n this.#setOpen(false, \"focus\");\n }\n };\n\n #handleKeydown = (event: KeyboardEvent): void => {\n if (event.key === \"Escape\" && this._open) {\n event.stopPropagation();\n this.#setOpen(false, \"escape\");\n }\n };\n\n #handleTriggerSlotChange = (event: Event): void => {\n const slot = event.currentTarget as HTMLSlotElement;\n const nextTrigger = slot.assignedElements({ flatten: true })[0];\n this.#restoreTriggerDescription();\n this.#trigger = nextTrigger instanceof HTMLElement ? nextTrigger : null;\n this.#syncTriggerDescription();\n };\n\n #syncTriggerDescription(): void {\n if (!this.#trigger) {\n return;\n }\n if (!this.#hasStoredAriaDescription) {\n this.#previousAriaDescription = this.#trigger.getAttribute(\"aria-description\");\n this.#hasStoredAriaDescription = true;\n }\n const description = [this.heading, stripFellowshipRichText(this.text ?? \"\")]\n .filter(Boolean)\n .join(\". \");\n if (description) {\n this.#trigger.setAttribute(\"aria-description\", description);\n } else if (this.#previousAriaDescription === null) {\n this.#trigger.removeAttribute(\"aria-description\");\n }\n }\n\n #restoreTriggerDescription(): void {\n if (!this.#trigger) {\n return;\n }\n if (this.#previousAriaDescription === null) {\n this.#trigger.removeAttribute(\"aria-description\");\n } else {\n this.#trigger.setAttribute(\"aria-description\", this.#previousAriaDescription);\n }\n this.#trigger = null;\n this.#previousAriaDescription = null;\n this.#hasStoredAriaDescription = false;\n }\n\n #clearTimer(): void {\n if (this.#timer !== null) {\n window.clearTimeout(this.#timer);\n this.#timer = null;\n }\n }\n}\n\nexport const defineFellowshipTooltip = (): void => {\n if (!customElements.get(\"fellowship-tooltip\")) {\n customElements.define(\"fellowship-tooltip\", FellowshipTooltipElement);\n }\n};\n\ndeclare global {\n interface HTMLElementTagNameMap {\n \"fellowship-tooltip\": FellowshipTooltipElement;\n }\n}\n"],"mappings":";;;;;;AAMA,IAAM,IAA0D;CAC9D,MAAM;CACN,WAAW;CACX,aAAa;CACb,cAAc;CACd,aAAa;CACb,WAAW;CACX,WAAW;CACX,oBAAoB;CACpB,oBAAoB;AACtB,GAEM,KACJ,GACA,GACA,MACS;CAET,IAAM,IADa,EAAK,QAAQ,UAAU,IAC5B,CAAA,CAAW,MAAM,QAAQ;CACvC,EAAM,SAAS,GAAM,MAAU;EAC7B,IAAM,IAAY,EAAW,GAAG,EAAE;EAClC,IAAI,EAAK,SAAS,GAAG;GACnB,IAAM,IAAW,EAAU,GAAG,EAAE;GAChC,AAAI,GAAU,SAAS,IACrB,EAAU,EAAU,SAAS,KAAK;IAAE,MAAM,GAAG,EAAS,OAAO;IAAQ;GAAK,IAE1E,EAAU,KAAK;IAAE,MAAM;IAAM;GAAK,CAAC;EAEvC;EACA,AAAI,IAAQ,EAAM,SAAS,KACzB,EAAW,KAAK,CAAC,CAAC;CAEtB,CAAC;AACH,GAEa,KAA6B,MAA8C;CACtF,IAAM,IAA4C,CAAC,CAAC,CAAC,GAC/C,IAA8B,CAAC,SAAS,GACxC,IAAS,EAAM,MAAM,oBAAoB;CAE/C,KAAK,IAAM,KAAS,GAAQ;EAC1B,IAAI,CAAC,GACH;EAEF,IAAI,MAAU,OAAO;GACnB,AAAI,EAAM,SAAS,KACjB,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7E,wEAAwE;AACxE,MAAM,MAAM,wBAAwB,GAAG,IAAI,CACzC,oBAAoB,EACpB,kBAAkB,GAAG,iBAAiB,CACvC,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"data-source.d.ts","sourceRoot":"","sources":["../../src/data/data-source.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,kCAAkC,CAAC;AACvE,YAAY,EACV,cAAc,EACd,uBAAuB,GACxB,MAAM,kCAAkC,CAAC;AAE1C,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,kCAAkC,CAAC;AAE7E,wEAAwE;AACxE,MAAM,MAAM,oBAAoB,GAAG,IAAI,CAAC,oBAAoB,EAAE,aAAa,GAAG,iBAAiB,CAAC,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"package-cast-data-source.d.ts","sourceRoot":"","sources":["../../src/data/package-cast-data-source.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,uBAAuB,CAAC;AAEtE,mEAAmE;AACnE,MAAM,WAAW,sCAAsC;IACrD,QAAQ,CAAC,YAAY,CAAC,EAAE,MAAM,CAAC;CAChC;AAED,mGAAmG;AACnG,eAAO,MAAM,qCAAqC,GAChD,UAAS,sCAA2C,KACnD,wBAMF,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"package-data-source.d.ts","sourceRoot":"","sources":["../../src/data/package-data-source.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AAE7D,mEAAmE;AACnE,MAAM,WAAW,kCAAkC;IACjD,QAAQ,CAAC,YAAY,CAAC,EAAE,MAAM,CAAC;CAChC;AAED,mGAAmG;AACnG,eAAO,MAAM,iCAAiC,GAC5C,UAAS,kCAAuC,KAC/C,oBAMF,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"package-talent-data-source.d.ts","sourceRoot":"","sources":["../../src/data/package-talent-data-source.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,yBAAyB,CAAC;AAE1E,mEAAmE;AACnE,MAAM,WAAW,wCAAwC;IACvD,QAAQ,CAAC,YAAY,CAAC,EAAE,MAAM,CAAC;CAChC;AAED,mGAAmG;AACnG,eAAO,MAAM,uCAAuC,GAClD,UAAS,wCAA6C,KACrD,0BAMF,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"talent-data-source.d.ts","sourceRoot":"","sources":["../../src/data/talent-data-source.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,oBAAoB,EAAE,MAAM,kCAAkC,CAAC;AAE7E,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,kCAAkC,CAAC;AAE7E,wEAAwE;AACxE,MAAM,MAAM,0BAA0B,GAAG,IAAI,CAC3C,oBAAoB,EACpB,iBAAiB,GAAG,iBAAiB,CACtC,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"dungeon-cast-browser.d.ts","sourceRoot":"","sources":["../../src/dungeon-cast-browser/dungeon-cast-browser.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,UAAU,EAAW,KAAK,cAAc,EAAE,KAAK,cAAc,EAAE,MAAM,KAAK,CAAC;AAI1F,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,6BAA6B,CAAC;AAO5E,OAAO,KAAK,EACV,oBAAoB,EACpB,uBAAuB,EAKvB,sBAAsB,EAEvB,MAAM,YAAY,CAAC;AAMpB;;;;GAIG;AACH,qBACa,mCAAoC,SAAQ,UAAU;;IACjE,OAAgB,MAAM,4BAAiD;IAElB,SAAS,SAAM;IACpC,YAAY,EAAE,sBAAsB,GAAG,IAAI,CAAQ;IACnD,eAAe,EAAE,SAAS,sBAAsB,EAAE,CAAM;IAExF,gBAAgB,EAAE,oBAAoB,CAAS;IACH,IAAI,UAAS;IACA,YAAY,EAAE,MAAM,GAAG,IAAI,CAAQ;IAC5D,UAAU,EAAE,wBAAwB,GAAG,IAAI,CAAQ;IAE1E,OAAO,CAAC,OAAO,CAA4B;IAC3C,OAAO,CAAC,MAAM,CAAiD;IAC/D,OAAO,CAAC,MAAM,CAAwC;IACtD,OAAO,CAAC,MAAM,CAAM;IAKpB,iBAAiB,IAAI,IAAI;IAKzB,oBAAoB,IAAI,IAAI;cAKlB,OAAO,CAAC,OAAO,EAAE,cAAc,CAAC,IAAI,CAAC,GAAG,IAAI;IAS/D,KAAK,IAAI,IAAI;IAIb,IAAI,WAAW,IAAI,uBAAuB,GAAG,IAAI,CAEhD;IAEQ,MAAM,IAAI,cAAc;CA8SlC;AAED,eAAO,MAAM,kCAAkC,QAAO,IAUrD,CAAC;AAEF,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,iCAAiC,EAAE,mCAAmC,CAAC;KACxE;CACF"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"dungeon-cast-browser.styles.d.ts","sourceRoot":"","sources":["../../src/dungeon-cast-browser/dungeon-cast-browser.styles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,wBAAwB,yBAwapC,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/dungeon-cast-browser/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,kCAAkC,EAClC,mCAAmC,GACpC,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,eAAe,EAAE,6BAA6B,EAAE,MAAM,mBAAmB,CAAC;AACnF,YAAY,EACV,mBAAmB,EACnB,oBAAoB,EACpB,uBAAuB,EACvB,qBAAqB,EACrB,gBAAgB,EAChB,gCAAgC,EAChC,+BAA+B,EAC/B,gCAAgC,EAChC,+BAA+B,EAC/B,sBAAsB,EACtB,4BAA4B,EAC5B,2BAA2B,EAC3B,sCAAsC,GACvC,MAAM,YAAY,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"render-model.d.ts","sourceRoot":"","sources":["../../src/dungeon-cast-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G,IAAI,CAAC;CAC7C;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,mBAAmB;QAC3B,+BAA+B,EAAE,+BAA+B,CAAC;QACjE,+BAA+B,EAAE,+BAA+B,CAAC;QACjE,0BAA0B,EAAE,2BAA2B,CAAC;KACzD;CACF"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"dungeon-cast-browser.js","names":[],"sources":["../src/dungeon-cast-browser/index.ts"],"sourcesContent":["export {\n defineFellowshipDungeonCastBrowser,\n FellowshipDungeonCastBrowserElement,\n} from \"./dungeon-cast-browser.js\";\nexport { castIdentityKey, createDungeonCastBrowserModel } from \"./render-model.js\";\nexport type {\n CastCapabilityLabel,\n ConfiguredCastFilter,\n DungeonCastBrowserModel,\n DungeonCastEnemyModel,\n DungeonCastModel,\n FellowshipCastBrowserErrorDetail,\n FellowshipCastBrowserErrorEvent,\n FellowshipCastBrowserReadyDetail,\n FellowshipCastBrowserReadyEvent,\n FellowshipCastIdentity,\n FellowshipCastSelectedDetail,\n FellowshipCastSelectedEvent,\n FellowshipDungeonCastBrowserProperties,\n} from \"./types.js\";\n\nimport { defineFellowshipDungeonCastBrowser } from \"./dungeon-cast-browser.js\";\n\ndefineFellowshipDungeonCastBrowser();\n"],"mappings":";;AAuBA,EAAmC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"dungeon-map.d.ts","sourceRoot":"","sources":["../../src/dungeon-map/dungeon-map.ts"],"names":[],"mappings":"AACA,OAAO,EAAQ,UAAU,EAAW,KAAK,cAAc,EAAE,KAAK,cAAc,EAAE,MAAM,KAAK,CAAC;AAK1F,OAAO,EAGL,KAAK,oBAAoB,EAC1B,MAAM,wBAAwB,CAAC;AAMhC,OAAO,KAAK,EAGV,qBAAqB,EAMrB,gBAAgB,EAChB,gBAAgB,EAChB,iBAAiB,EAGlB,MAAM,YAAY,CAAC;AAYpB;;;;;;GAMG;AACH,qBACa,2BAA4B,SAAQ,UAAU;;IACzD,OAAgB,MAAM,4BAAyC;IAE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QAAO,IAO7C,CAAC;AAEF,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,wBAAwB,EAAE,2BAA2B,CAAC;KACvD;CACF"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"dungeon-map.styles.d.ts","sourceRoot":"","sources":["../../src/dungeon-map/dungeon-map.styles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,gBAAgB,yBA8b5B,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/dungeon-map/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,2BAA2B,EAAE,0BAA0B,EAAE,MAAM,kBAAkB,CAAC;AAC3F,OAAO,EAAE,2BAA2B,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AAClF,OAAO,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AAC9D,YAAY,EACV,oBAAoB,EACpB,4BAA4B,EAC5B,oBAAoB,EACpB,4BAA4B,EAC5B,qBAAqB,EACrB,iBAAiB,EACjB,8BAA8B,EAC9B,wBAAwB,EACxB,8BAA8B,EAC9B,wBAAwB,EACxB,iCAAiC,EACjC,0BAA0B,EAC1B,gBAAgB,EAChB,gBAAgB,EAChB,iBAAiB,EACjB,cAAc,EACd,aAAa,GACd,MAAM,YAAY,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"layout.d.ts","sourceRoot":"","sources":["../../src/dungeon-map/layout.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,oBAAoB,EAAE,oBAAoB,EAAkB,MAAM,YAAY,CAAC;AAiD7F,eAAO,MAAM,0BAA0B,GACrC,IAAI,MAAM,GAAG,IAAI,EACjB,SAAS,SAAS,oBAAoB,EAAE,KACvC,oBAUF,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"render-model.d.ts","sourceRoot":"","sources":["../../src/dungeon-map/render-model.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,OA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Root":"","sources":["../../src/dungeon-map/viewport-controller.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAKhD,qBAAa,kBAAkB;;IAS7B,OAAO,SAAK;IAEZ,IAAI,KAAK,IAAI,aAAa,CAEzB;IAED,IAAI,KAAK,IAAI,MAAM,CAElB;IAED,IAAI,QAAQ,IAAI,MAAM,CAKrB;IAED,aAAa,CACX,aAAa,EAAE,MAAM,EACrB,cAAc,EAAE,MAAM,EACtB,QAAQ,EAAE,MAAM,EAChB,SAAS,EAAE,MAAM,GAChB,aAAa;IAoBhB,GAAG,IAAI,aAAa;IAOpB,MAAM,CACJ,MAAM,EAAE,MAAM,EACd,MAAM,SAA0B,EAChC,MAAM,SAA2B,GAChC,aAAa;IAWhB,KAAK,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,aAAa;CAoBrD"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"dungeon-map.js","names":[],"sources":["../src/dungeon-map/index.ts"],"sourcesContent":["export { FellowshipDungeonMapElement, defineFellowshipDungeonMap } from \"./dungeon-map.js\";\nexport { createDungeonMapRenderModel, humanizeMapLabel } from \"./render-model.js\";\nexport { ViewportController } from \"./viewport-controller.js\";\nexport type {\n DungeonMapEnemyModel,\n DungeonMapEnemyRenderContext,\n DungeonMapGroupModel,\n DungeonMapGroupRenderContext,\n DungeonMapRenderModel,\n DungeonMapWarning,\n FellowshipDungeonMapProperties,\n FellowshipMapErrorDetail,\n FellowshipMapImageChangeDetail,\n FellowshipMapReadyDetail,\n FellowshipMapViewportChangeDetail,\n FellowshipMapWarningDetail,\n LitEnemyRenderer,\n LitGroupRenderer,\n MapLabelFormatter,\n NormalizedRect,\n ViewportState,\n} from \"./types.js\";\n\nimport { defineFellowshipDungeonMap } from \"./dungeon-map.js\";\n\ndefineFellowshipDungeonMap();\n"],"mappings":";;AAyBA,EAA2B"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,YAAY,EACV,OAAO,EACP,OAAO,EACP,oBAAoB,EACpB,YAAY,EACZ,0BAA0B,EAC1B,SAAS,EACT,KAAK,EACL,OAAO,EACP,sBAAsB,EACtB,IAAI,EACJ,MAAM,EACN,QAAQ,EACR,aAAa,EACb,UAAU,EACV,UAAU,EACV,MAAM,GACP,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,iCAAiC,EAAE,MAAM,kCAAkC,CAAC;AACrF,YAAY,EACV,oBAAoB,EACpB,kCAAkC,GACnC,MAAM,kCAAkC,CAAC;AAE1C,OAAO,EACL,mBAAmB,EACnB,KAAK,cAAc,EACnB,KAAK,uBAAuB,EAC5B,KAAK,oBAAoB,GAC1B,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EACL,iCAAiC,EACjC,KAAK,kCAAkC,GACxC,MAAM,+BAA+B,CAAC;AACvC,YAAY,EAAE,eAAe,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAC;AAC5F,OAAO,EACL,qCAAqC,EACrC,KAAK,sCAAsC,GAC5C,MAAM,oCAAoC,CAAC;AAC5C,OAAO,EACL,uCAAuC,EACvC,KAAK,wCAAwC,GAC9C,MAAM,sCAAsC,CAAC;AAC9C,YAAY,EACV,0BAA0B,EAC1B,oBAAoB,GACrB,MAAM,8BAA8B,CAAC;AACtC,cAAc,wBAAwB,CAAC;AACvC,cAAc,iCAAiC,CAAC;AAChD,cAAc,8BAA8B,CAAC;AAC7C,cAAc,oBAAoB,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"dungeon-cast-browser.d.ts","sourceRoot":"","sources":["../../src/react/dungeon-cast-browser.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAmB,KAAK,SAAS,EAAE,MAAM,YAAY,CAAC;AAC7D,OAAc,EAAE,KAAK,cAAc,EAAE,MAAM,OAAO,CAAC;AAEnD,OAAO,EAEL,mCAAmC,EACpC,MAAM,iDAAiD,CAAC;AACzD,OAAO,KAAK,EACV,+BAA+B,EAC/B,+BAA+B,EAC/B,2BAA2B,EAC5B,MAAM,kCAAkC,CAAC;AAI1C,eAAO,MAAM,kBAAkB;aAKiB,SAAS,CAAC,+BAA+B,CAAC;aAC1C,SAAS,CAAC,+BAA+B,CAAC;oBACxC,SAAS,CAAC,2BAA2B,CAAC;EAEtF,CAAC;AAEH,MAAM,MAAM,uBAAuB,GAAG,cAAc,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAEhF,eAAe,kBAAkB,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"dungeon-cast-browser.js","names":[],"sources":["../../src/react/dungeon-cast-browser.tsx"],"sourcesContent":["import { createComponent, type EventName } from \"@lit/react\";\nimport React, { type ComponentProps } from \"react\";\n\nimport {\n defineFellowshipDungeonCastBrowser,\n FellowshipDungeonCastBrowserElement,\n} from \"../dungeon-cast-browser/dungeon-cast-browser.js\";\nimport type {\n FellowshipCastBrowserErrorEvent,\n FellowshipCastBrowserReadyEvent,\n FellowshipCastSelectedEvent,\n} from \"../dungeon-cast-browser/types.js\";\n\ndefineFellowshipDungeonCastBrowser();\n\nexport const DungeonCastBrowser = createComponent({\n react: React,\n tagName: \"fellowship-dungeon-cast-browser\",\n elementClass: FellowshipDungeonCastBrowserElement,\n events: {\n onReady: \"fellowship-cast-browser-ready\" as EventName<FellowshipCastBrowserReadyEvent>,\n onError: \"fellowship-cast-browser-error\" as EventName<FellowshipCastBrowserErrorEvent>,\n onCastSelected: \"fellowship-cast-selected\" as EventName<FellowshipCastSelectedEvent>,\n },\n});\n\nexport type DungeonCastBrowserProps = ComponentProps<typeof DungeonCastBrowser>;\n\nexport default DungeonCastBrowser;\n"],"mappings":";;;;AAaA,EAAmC;AAEnC,IAAa,IAAqB,EAAgB;CAChD,OAAO;CACP,SAAS;CACT,cAAc;CACd,QAAQ;EACN,SAAS;EACT,SAAS;EACT,gBAAgB;CAClB;AACF,CAAC"}
@@ -1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B,CAAC;AAIF,eAAe,gBAAgB,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"dungeon-map.js","names":[],"sources":["../../src/react/dungeon-map.tsx"],"sourcesContent":["import { createComponent, type EventName } from \"@lit/react\";\nimport React, {\n forwardRef,\n useCallback,\n useEffect,\n useState,\n type ComponentProps,\n type CSSProperties,\n type ReactNode,\n} from \"react\";\n\nimport {\n FellowshipDungeonMapElement,\n defineFellowshipDungeonMap,\n} from \"../dungeon-map/dungeon-map.js\";\nimport type {\n DungeonMapEnemyModel,\n DungeonMapEnemyRenderContext,\n DungeonMapGroupModel,\n DungeonMapGroupRenderContext,\n DungeonMapRenderModel,\n FellowshipMapErrorEvent,\n FellowshipMapImageChangeEvent,\n FellowshipMapReadyEvent,\n FellowshipMapViewportChangeEvent,\n FellowshipMapWarningEvent,\n} from \"../dungeon-map/types.js\";\n\ndefineFellowshipDungeonMap();\n\nconst NativeDungeonMap = createComponent({\n react: React,\n tagName: \"fellowship-dungeon-map\",\n elementClass: FellowshipDungeonMapElement,\n events: {\n onReady: \"fellowship-map-ready\" as EventName<FellowshipMapReadyEvent>,\n onError: \"fellowship-map-error\" as EventName<FellowshipMapErrorEvent>,\n onWarning: \"fellowship-map-warning\" as EventName<FellowshipMapWarningEvent>,\n onMapImageChange: \"fellowship-map-image-change\" as EventName<FellowshipMapImageChangeEvent>,\n onViewportChange:\n \"fellowship-map-viewport-change\" as EventName<FellowshipMapViewportChangeEvent>,\n },\n});\n\ntype NativeDungeonMapProps = ComponentProps<typeof NativeDungeonMap>;\n\nexport type ReactEnemyRenderer = (context: DungeonMapEnemyRenderContext) => ReactNode;\nexport type ReactGroupRenderer = (context: DungeonMapGroupRenderContext<ReactNode>) => ReactNode;\n\nexport interface DungeonMapViewerProps\n extends Omit<\n NativeDungeonMapProps,\n \"children\" | \"externalOverlay\" | \"onReady\" | \"renderEnemy\" | \"renderGroup\"\n > {\n readonly renderEnemy?: ReactEnemyRenderer;\n readonly renderGroup?: ReactGroupRenderer;\n readonly onReady?: (event: FellowshipMapReadyEvent) => void;\n}\n\nconst overlayStyle: CSSProperties = {\n position: \"absolute\",\n inset: 0,\n width: \"100%\",\n height: \"100%\",\n pointerEvents: \"none\",\n};\n\nconst markerStyle: CSSProperties = {\n position: \"relative\",\n display: \"grid\",\n width: \"var(--fellowship-map-enemy-size, 32px)\",\n height: \"var(--fellowship-map-enemy-size, 32px)\",\n placeItems: \"center\",\n overflow: \"hidden\",\n border: \"2px solid var(--fellowship-map-rune, #4bc7de)\",\n borderRadius: \"50%\",\n background: \"#131a22\",\n color: \"var(--fellowship-map-ink, #f2f0e8)\",\n boxShadow: \"0 0 0 1px rgba(0,0,0,.72), 0 2px 6px rgba(0,0,0,.32)\",\n fontFamily: \"var(--fellowship-map-tactical-font-family, ui-monospace, monospace)\",\n fontSize: 10,\n fontWeight: 800,\n};\n\nconst defaultEnemy = (enemy: DungeonMapEnemyModel): ReactNode => {\n const name = enemy.enemy?.name ?? enemy.placement.id;\n const fallback = name\n .split(/\\s+/)\n .map((part) => part[0])\n .join(\"\")\n .slice(0, 2)\n .toUpperCase();\n const bossStyle = enemy.enemy?.isBoss\n ? { borderColor: \"var(--fellowship-map-ember, #ff7a2f)\", width: 36, height: 36 }\n : undefined;\n\n return (\n <span style={{ ...markerStyle, ...bossStyle }}>\n {enemy.imageUrl ? (\n <img\n src={enemy.imageUrl}\n alt=\"\"\n draggable={false}\n style={{ width: \"100%\", height: \"100%\", objectFit: \"cover\" }}\n />\n ) : (\n fallback\n )}\n </span>\n );\n};\n\nconst renderEnemyAnchor = (\n model: DungeonMapRenderModel,\n group: DungeonMapGroupModel,\n enemy: DungeonMapEnemyModel,\n renderEnemy?: ReactEnemyRenderer,\n): ReactNode => {\n const bounds = group.visualBounds;\n const name = enemy.enemy?.name ?? enemy.placement.id;\n const context: DungeonMapEnemyRenderContext = {\n model: enemy,\n group,\n dungeon: model.dungeon,\n mapImage: model.mapImage,\n };\n\n return (\n <div\n key={enemy.instanceId}\n role=\"img\"\n aria-label={name}\n title={name}\n style={{\n position: \"absolute\",\n left: `${((enemy.position.x - bounds.x) / bounds.width) * 100}%`,\n top: `${((enemy.position.y - bounds.y) / bounds.height) * 100}%`,\n width: 0,\n height: 0,\n zIndex: 2,\n pointerEvents: \"auto\",\n }}\n >\n <div\n style={{\n position: \"absolute\",\n transform: \"translate(-50%, -50%) scale(var(--fellowship-map-inverse-scale, 1))\",\n transformOrigin: \"center\",\n }}\n >\n {renderEnemy ? renderEnemy(context) : defaultEnemy(enemy)}\n </div>\n </div>\n );\n};\n\nconst defaultGroup = (group: DungeonMapGroupModel, children: readonly ReactNode[]): ReactNode => {\n const label = `G${group.id ?? \"–\"}${group.dungeonScore === null ? \"\" : ` · ${group.dungeonScore}`}`;\n return (\n <div style={{ position: \"absolute\", inset: 0 }}>\n <div\n aria-hidden=\"true\"\n style={{\n position: \"absolute\",\n inset: 0,\n border:\n \"calc(1px * var(--fellowship-map-inverse-scale, 1)) solid var(--fellowship-map-ember, #ff7a2f)\",\n borderRadius: \"50%\",\n background: \"color-mix(in srgb, var(--fellowship-map-ember, #ff7a2f) 7%, transparent)\",\n opacity: 0.5,\n }}\n />\n <span\n style={{\n position: \"absolute\",\n left: \"50%\",\n top: 0,\n minHeight: 22,\n display: \"inline-flex\",\n alignItems: \"center\",\n padding: \"0 7px\",\n border:\n \"1px solid color-mix(in srgb, var(--fellowship-map-ember, #ff7a2f) 58%, transparent)\",\n borderRadius: 4,\n background: \"var(--fellowship-map-control-surface, rgba(12,17,23,.88))\",\n color: \"var(--fellowship-map-ink, #f2f0e8)\",\n fontFamily: \"var(--fellowship-map-tactical-font-family, ui-monospace, monospace)\",\n fontSize: 11,\n fontWeight: 700,\n whiteSpace: \"nowrap\",\n transform: \"translate(-50%, -45%) scale(var(--fellowship-map-inverse-scale, 1))\",\n transformOrigin: \"center\",\n }}\n >\n {label}\n </span>\n {children}\n </div>\n );\n};\n\nconst renderReactOverlay = (\n model: DungeonMapRenderModel,\n renderEnemy?: ReactEnemyRenderer,\n renderGroup?: ReactGroupRenderer,\n): ReactNode =>\n model.groups.map((group) => {\n const bounds = group.visualBounds;\n const children = group.enemies.map((enemy) =>\n renderEnemyAnchor(model, group, enemy, renderEnemy),\n );\n const content = renderGroup\n ? renderGroup({\n group,\n children,\n dungeon: model.dungeon,\n mapImage: model.mapImage,\n })\n : defaultGroup(group, children);\n\n return (\n <div\n key={`${model.mapImage.id}:${String(group.id)}:${group.enemies[0]?.instanceId ?? \"empty\"}`}\n style={{\n position: \"absolute\",\n left: `${bounds.x * 100}%`,\n top: `${bounds.y * 100}%`,\n width: `${bounds.width * 100}%`,\n height: `${bounds.height * 100}%`,\n pointerEvents: \"none\",\n }}\n >\n {content}\n </div>\n );\n });\n\nexport const DungeonMapViewer = forwardRef<FellowshipDungeonMapElement, DungeonMapViewerProps>(\n function DungeonMapViewer(\n { renderEnemy, renderGroup, onReady, onMapImageChange, mapImageId, ...properties },\n forwardedRef,\n ) {\n const [model, setModel] = useState<DungeonMapRenderModel | null>(null);\n const [selectedMapImageId, setSelectedMapImageId] = useState(mapImageId);\n const usesReactOverlay = Boolean(renderEnemy || renderGroup);\n\n useEffect(() => {\n if (mapImageId !== undefined) {\n setSelectedMapImageId(mapImageId);\n }\n }, [mapImageId]);\n\n const handleReady = useCallback(\n (event: FellowshipMapReadyEvent) => {\n setModel(event.detail.model);\n onReady?.(event);\n },\n [onReady],\n );\n const handleMapImageChange = useCallback(\n (event: FellowshipMapImageChangeEvent) => {\n setSelectedMapImageId(event.detail.mapImageId);\n onMapImageChange?.(event);\n },\n [onMapImageChange],\n );\n\n return (\n <NativeDungeonMap\n {...properties}\n {...(mapImageId === undefined ? {} : { mapImageId: selectedMapImageId })}\n ref={forwardedRef}\n externalOverlay={usesReactOverlay}\n onReady={handleReady}\n onMapImageChange={handleMapImageChange}\n >\n {usesReactOverlay && model ? (\n <div slot=\"overlay\" style={overlayStyle}>\n {renderReactOverlay(model, renderEnemy, renderGroup)}\n </div>\n ) : null}\n </NativeDungeonMap>\n );\n },\n);\n\nDungeonMapViewer.displayName = \"DungeonMapViewer\";\n\nexport default DungeonMapViewer;\n"],"mappings":";;;;;AA4BA,EAA2B;AAE3B,IAAM,IAAmB,EAAgB;CACvC,OAAO;CACP,SAAS;CACT,cAAc;CACd,QAAQ;EACN,SAAS;EACT,SAAS;EACT,WAAW;EACX,kBAAkB;EAClB,kBACE;CACJ;AACF,CAAC,GAiBK,IAA8B;CAClC,UAAU;CACV,OAAO;CACP,OAAO;CACP,QAAQ;CACR,eAAe;AACjB,GAEM,IAA6B;CACjC,UAAU;CACV,SAAS;CACT,OAAO;CACP,QAAQ;CACR,YAAY;CACZ,UAAU;CACV,QAAQ;CACR,cAAc;CACd,YAAY;CACZ,OAAO;CACP,WAAW;CACX,YAAY;CACZ,UAAU;CACV,YAAY;AACd,GAEM,KAAgB,MAA2C;CAE/D,IAAM,KADO,EAAM,OAAO,QAAQ,EAAM,UAAU,GAAA,CAE/C,MAAM,KAAK,CAAC,CACZ,KAAK,MAAS,EAAK,EAAE,CAAC,CACtB,KAAK,EAAE,CAAC,CACR,MAAM,GAAG,CAAC,CAAC,CACX,YAAY,GACT,IAAY,EAAM,OAAO,SAC3B;EAAE,aAAa;EAAwC,OAAO;EAAI,QAAQ;CAAG,IAC7E,KAAA;CAEJ,OACE,kBAAC,QAAD;EAAM,OAAO;GAAE,GAAG;GAAa,GAAG;EAAU;YACzC,EAAM,WACL,kBAAC,OAAD;GACE,KAAK,EAAM;GACX,KAAI;GACJ,WAAW;GACX,OAAO;IAAE,OAAO;IAAQ,QAAQ;IAAQ,WAAW;GAAQ;EAC5D,CAAA,IAED;CAEE,CAAA;AAEV,GAEM,KACJ,GACA,GACA,GACA,MACc;CACd,IAAM,IAAS,EAAM,cACf,IAAO,EAAM,OAAO,QAAQ,EAAM,UAAU,IAC5C,IAAwC;EAC5C,OAAO;EACP;EACA,SAAS,EAAM;EACf,UAAU,EAAM;CAClB;CAEA,OACE,kBAAC,O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AAM,WAAW,qBACf,SAAQ,IAAI,CACV,2BAA2B,EAC3B,UAAU,GAAG,SAAS,GAAG,mBAAmB,GAAG,sBAAsB,GAAG,cAAc,CACvF;IACD,QAAQ,CAAC,YAAY,CAAC,EAAE,mBAAmB,CAAC;IAC5C,QAAQ,CAAC,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,2BAA2B,KAAK,IAAI,CAAC;IAChE,QAAQ,CAAC,iBAAiB,CAAC,EAAE,CAAC,KAAK,EAAE,0BAA0B,KAAK,IAAI,CAAC;IACzE,QAAQ,CAAC,oBAAoB,CAAC,EAAE,CAAC,KAAK,EAAE,uBAAuB,KAAK,IAAI,CAAC;CAC1E;AAED,eAAO,MAAM,gBAAgB,8HA+F3B,CAAC;AAIH,eAAe,gBAAgB,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"talent-calculator.js","names":[],"sources":["../../src/react/talent-calculator.tsx"],"sourcesContent":["import { createComponent, type EventName } from \"@lit/react\";\nimport React, {\n forwardRef,\n useCallback,\n useEffect,\n useMemo,\n useState,\n type ComponentProps,\n type ReactNode,\n} from \"react\";\n\nimport {\n FellowshipTalentCalculatorElement,\n defineFellowshipTalentCalculator,\n talentSlotName,\n} from \"../talent-calculator/talent-calculator.js\";\nimport {\n canSelectTalent,\n createTalentCalculatorSelectionState,\n MAX_TALENT_POINTS,\n} from \"../talent-calculator/selection-state.js\";\nimport type {\n FellowshipTalentsErrorEvent,\n FellowshipTalentsReadyEvent,\n FellowshipTalentsWarningEvent,\n TalentCalculatorRenderModel,\n TalentCalculatorTalentRenderContext,\n TalentPointsChangeEvent,\n TalentSelectionChangeEvent,\n} from \"../talent-calculator/types.js\";\n\ndefineFellowshipTalentCalculator();\n\nconst NativeTalentCalculator = createComponent({\n react: React,\n tagName: \"fellowship-talent-calculator\",\n elementClass: FellowshipTalentCalculatorElement,\n events: {\n onReady: \"fellowship-talents-ready\" as EventName<FellowshipTalentsReadyEvent>,\n onError: \"fellowship-talents-error\" as EventName<FellowshipTalentsErrorEvent>,\n onWarning: \"fellowship-talents-warning\" as EventName<FellowshipTalentsWarningEvent>,\n onSelectionChange:\n \"fellowship-talent-selection-change\" as EventName<TalentSelectionChangeEvent>,\n onTalentPointsChange: \"fellowship-talent-points-change\" as EventName<TalentPointsChangeEvent>,\n },\n});\n\ntype NativeTalentCalculatorProps = ComponentProps<typeof NativeTalentCalculator>;\n\nexport type ReactTalentRenderer = (context: TalentCalculatorTalentRenderContext) => ReactNode;\n\nexport interface TalentCalculatorProps\n extends Omit<\n NativeTalentCalculatorProps,\n \"children\" | \"onReady\" | \"onSelectionChange\" | \"onTalentPointsChange\" | \"renderTalent\"\n > {\n readonly renderTalent?: ReactTalentRenderer;\n readonly onReady?: (event: FellowshipTalentsReadyEvent) => void;\n readonly onSelectionChange?: (event: TalentSelectionChangeEvent) => void;\n readonly onTalentPointsChange?: (event: TalentPointsChangeEvent) => void;\n}\n\nexport const TalentCalculator = forwardRef<\n FellowshipTalentCalculatorElement,\n TalentCalculatorProps\n>(function TalentCalculator(\n {\n renderTalent,\n onReady,\n onSelectionChange,\n onTalentPointsChange,\n selectedTalentIds,\n talentPoints,\n ...properties\n },\n forwardedRef,\n) {\n const [model, setModel] = useState<TalentCalculatorRenderModel | null>(null);\n const [selectionIds, setSelectionIds] = useState<readonly string[]>(selectedTalentIds ?? []);\n const [points, setPoints] = useState(talentPoints ?? MAX_TALENT_POINTS);\n\n useEffect(() => {\n if (selectedTalentIds !== undefined) {\n setSelectionIds(selectedTalentIds);\n }\n }, [selectedTalentIds]);\n\n useEffect(() => {\n if (talentPoints !== undefined) {\n setPoints(talentPoints);\n }\n }, [talentPoints]);\n\n const handleReady = useCallback(\n (event: FellowshipTalentsReadyEvent) => {\n setModel(event.detail.model);\n setSelectionIds(event.detail.selection.selectedTalentIds);\n onReady?.(event);\n },\n [onReady],\n );\n\n const handleSelectionChange = useCallback(\n (event: TalentSelectionChangeEvent) => {\n setSelectionIds(event.detail.selectedTalentIds);\n onSelectionChange?.(event);\n },\n [onSelectionChange],\n );\n\n const handleTalentPointsChange = useCallback(\n (event: TalentPointsChangeEvent) => {\n setPoints(event.detail.talentPoints);\n setSelectionIds(event.detail.selectedTalentIds);\n onTalentPointsChange?.(event);\n },\n [onTalentPointsChange],\n );\n\n const renderedTalents = useMemo(() => {\n if (!renderTalent || !model) {\n return null;\n }\n const state = createTalentCalculatorSelectionState(model, selectionIds, points);\n return [...model.talentById.values()].map((talent) => {\n const selected = state.selectedTalentIds.includes(talent.talent.id);\n const affordable = canSelectTalent(talent.pointCost, state);\n return (\n <span key={talent.talent.id} slot={talentSlotName(talent.talent.id)}>\n {renderTalent({\n talent,\n hero: model.hero,\n selected,\n affordable,\n disabled: !selected && !affordable,\n spentPoints: state.spentPoints,\n remainingPoints: state.remainingPoints,\n talentPoints: points,\n })}\n </span>\n );\n });\n }, [model, points, renderTalent, selectionIds]);\n\n return (\n <NativeTalentCalculator\n {...properties}\n {...(selectedTalentIds === undefined ? {} : { selectedTalentIds })}\n {...(talentPoints === undefined ? {} : { talentPoints })}\n ref={forwardedRef}\n onReady={handleReady}\n onSelectionChange={handleSelectionChange}\n onTalentPointsChange={handleTalentPointsChange}\n >\n {renderedTalents}\n </NativeTalentCalculator>\n );\n});\n\nTalentCalculator.displayName = \"TalentCalculator\";\n\nexport default TalentCalculator;\n"],"mappings":";;;;;AA+BA,EAAiC;AAEjC,IAAM,IAAyB,EAAgB;CAC7C,OAAO;CACP,SAAS;CACT,cAAc;CACd,QAAQ;EACN,SAAS;EACT,SAAS;EACT,WAAW;EACX,mBACE;EACF,sBAAsB;CACxB;AACF,CAAC,GAiBY,IAAmB,EAG9B,SACA,EACE,iBACA,YACA,sBACA,yBACA,sBACA,iBACA,GAAG,KAEL,GACA;CACA,IAAM,CAAC,GAAO,KAAY,EAA6C,IAAI,GACrE,CAAC,GAAc,KAAmB,EAA4B,KAAqB,CAAC,CAAC,GACrF,CAAC,GAAQ,KAAa,EAAS,KAAA,EAAiC;CAQtE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Y,CAAC,IAAI,EAAE,qBAAkB;EAChE,GAAK,MAAiB,KAAA,IAAY,CAAC,IAAI,EAAE,gBAAa;EACtD,KAAK;EACL,SAAS;EACT,mBAAmB;EACnB,sBAAsB;YAErB;CACqB,CAAA;AAE5B,CAAC;AAED,EAAiB,cAAc"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"tooltip.d.ts","sourceRoot":"","sources":["../../src/react/tooltip.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAmB,KAAK,SAAS,EAAE,MAAM,YAAY,CAAC;AAC7D,OAAO,KAAK,EAAE,EAAc,KAAK,cAAc,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAE/E,OAAO,EAAE,wBAAwB,EAA2B,MAAM,uBAAuB,CAAC;AAC1F,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,qBAAqB,CAAC;AAIxE,QAAA,MAAM,aAAa;cAK0B,SAAS,CAAC,4BAA4B,CAAC;EAElF,CAAC;AAEH,KAAK,kBAAkB,GAAG,cAAc,CAAC,OAAO,aAAa,CAAC,CAAC;AAE/D,MAAM,WAAW,YAAa,SAAQ,IAAI,CAAC,kBAAkB,EAAE,UAAU,GAAG,SAAS,CAAC;IACpF,QAAQ,CAAC,QAAQ,CAAC,EAAE,SAAS,CAAC;IAC9B,QAAQ,CAAC,OAAO,CAAC,EAAE,SAAS,CAAC;CAC9B;AAED,eAAO,MAAM,OAAO,4GAUlB,CAAC;AAIH,eAAe,OAAO,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"tooltip.js","names":[],"sources":["../../src/react/tooltip.tsx"],"sourcesContent":["import { createComponent, type EventName } from \"@lit/react\";\nimport React, { forwardRef, type ComponentProps, type ReactNode } from \"react\";\n\nimport { FellowshipTooltipElement, defineFellowshipTooltip } from \"../tooltip/tooltip.js\";\nimport type { FellowshipTooltipToggleEvent } from \"../tooltip/types.js\";\n\ndefineFellowshipTooltip();\n\nconst NativeTooltip = createComponent({\n react: React,\n tagName: \"fellowship-tooltip\",\n elementClass: FellowshipTooltipElement,\n events: {\n onToggle: \"fellowship-tooltip-toggle\" as EventName<FellowshipTooltipToggleEvent>,\n },\n});\n\ntype NativeTooltipProps = ComponentProps<typeof NativeTooltip>;\n\nexport interface TooltipProps extends Omit<NativeTooltipProps, \"children\" | \"content\"> {\n readonly children?: ReactNode;\n readonly content?: ReactNode;\n}\n\nexport const Tooltip = forwardRef<FellowshipTooltipElement, TooltipProps>(function Tooltip(\n { children, content, ...properties },\n forwardedRef,\n) {\n return (\n <NativeTooltip {...properties} ref={forwardedRef}>\n {children}\n {content === undefined ? null : <span slot=\"content\">{content}</span>}\n </NativeTooltip>\n );\n});\n\nTooltip.displayName = \"Tooltip\";\n\nexport default Tooltip;\n"],"mappings":";;;;;AAMA,EAAwB;AAExB,IAAM,IAAgB,EAAgB;CACpC,OAAO;CACP,SAAS;CACT,cAAc;CACd,QAAQ,EACN,UAAU,4BACZ;AACF,CAAC,GASY,IAAU,EAAmD,SACxE,EAAE,aAAU,YAAS,GAAG,KACxB,GACA;CACA,OACE,kBAAC,GAAD;EAAe,GAAI;EAAY,KAAK;YAApC,CACG,GACA,MAAY,KAAA,IAAY,OAAO,kBAAC,QAAD;GAAM,MAAK;aAAW;EAAc,CAAA,CACvD;;AAEnB,CAAC;AAED,EAAQ,cAAc"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"field-manual-fonts.d.ts","sourceRoot":"","sources":["../../src/styles/field-manual-fonts.ts"],"names":[],"mappings":"AAwBA,sFAAsF;AACtF,eAAO,MAAM,uBAAuB,GAAI,UAAU,QAAQ,KAAG,IAsB5D,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"field-manual.styles.d.ts","sourceRoot":"","sources":["../../src/styles/field-manual.styles.ts"],"names":[],"mappings":"AAEA,mFAAmF;AACnF,eAAO,MAAM,iBAAiB,yBAmC7B,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/talent-calculator/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iCAAiC,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACtF,OAAO,EACL,eAAe,EACf,oCAAoC,EACpC,iBAAiB,EACjB,0BAA0B,EAC1B,qBAAqB,GACtB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EACL,iCAAiC,EACjC,gCAAgC,EAChC,cAAc,GACf,MAAM,wBAAwB,CAAC;AAChC,YAAY,EACV,oCAAoC,EACpC,4BAA4B,EAC5B,2BAA2B,EAC3B,4BAA4B,EAC5B,2BAA2B,EAC3B,8BAA8B,EAC9B,6BAA6B,EAC7B,iBAAiB,EACjB,2BAA2B,EAC3B,wBAAwB,EACxB,8BAA8B,EAC9B,2BAA2B,EAC3B,mCAAmC,EACnC,uBAAuB,EACvB,2BAA2B,EAC3B,wBAAwB,EACxB,uBAAuB,EACvB,wBAAwB,EACxB,2BAA2B,EAC3B,0BAA0B,EAC1B,2BAA2B,GAC5B,MAAM,YAAY,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"render-model.d.ts","sourceRoot":"","sources":["../../src/talent-calculator/render-model.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EACV,0BAA0B,EAC1B,oBAAoB,EACrB,MAAM,+BAA+B,CAAC;AACvC,OAAO,KAAK,EACV,2BAA2B,EAG5B,MAAM,YAAY,CAAC;AAIpB,eAAO,MAAM,cAAc,GAAI,KAAK,MAAM,KAAG,MAA+C,CAAC;AAQ7F,eAAO,MAAM,iCAAiC,GAC5C,MAAM,oBAAoB,EAC1B,QAAQ,0BAA0B,KACjC,2BAgGF,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"selection-state.d.ts","sourceRoot":"","sources":["../../src/talent-calculator/selection-state.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,2BAA2B,EAAE,8BAA8B,EAAE,MAAM,YAAY,CAAC;AAE9F,eAAO,MAAM,iBAAiB,KAAK,CAAC;AAEp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,CAAQ;IACrD,YAAY,EAAE,iBAAiB,GAAG,IAAI,CAAQ;IACf,iBAAiB,UAAQ;IAC/B,YAAY,UAAQ;IAEpE,OAAO,CAAC,OAAO,CAA4B;IAC3C,OAAO,CAAC,MAAM,CAA6C;IAC3D,OAAO,CAAC,MAAM,CAA4C;IAC1D,OAAO,CAAC,aAAa,CAAqB;IAC1C,OAAO,CAAC,aAAa,CAAM;IAC3B,OAAO,CAAC,qBAAqB,CAA6C;IAC1E,OAAO,CAAC,mBAAmB,CAAyC;IACpE,OAAO,CAAC,oBAAoB,CAA8B;IAS1D,iBAAiB,IAAI,IAAI;IAKzB,oBAAoB,IAAI,IAAI;cAKlB,OAAO,CAAC,OAAO,EAAE,cAAc,CAAC,IAAI,CAAC,GAAG,IAAI;cAmC5C,UAAU,CAAC,OAAO,EAAE,cAAc,GAAG,IAAI;IAuB5D,IAAI,WAAW,IAAI,2BAA2B,GAAG,IAAI,CAEpD;IAED,IAAI,cAAc,IAAI,8BAA8B,CAInD;IAED,KAAK,IAAI,IAAI;IAQb,YAAY,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO;IAevC,cAAc,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO;IASzC,KAAK,IAAI,IAAI;IAIJ,MAAM,IAAI,cAAc;CAggBlC;AAED,eAAO,MAAM,gCAAgC,QAAO,IAKnD,CAAC;AAEF,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,8BAA8B,EAAE,iCAAiC,CAAC;KACnE;CACF"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"talent-calculator.styles.d.ts","sourceRoot":"","sources":["../../src/talent-calculator/talent-calculator.styles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,sBAAsB,yBAoiBlC,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/talent-calculator/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAA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E,iCAAiC,EAAE,uBAAuB,CAAC;KAC5D;CACF"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"talent-calculator.js","names":[],"sources":["../src/talent-calculator/index.ts"],"sourcesContent":["export { createTalentCalculatorRenderModel, talentRowLabel } from \"./render-model.js\";\nexport {\n canSelectTalent,\n createTalentCalculatorSelectionState,\n MAX_TALENT_POINTS,\n normalizeSelectedTalentIds,\n normalizeTalentPoints,\n} from \"./selection-state.js\";\nexport {\n FellowshipTalentCalculatorElement,\n defineFellowshipTalentCalculator,\n talentSlotName,\n} from \"./talent-calculator.js\";\nexport type {\n FellowshipTalentCalculatorProperties,\n FellowshipTalentsErrorDetail,\n FellowshipTalentsErrorEvent,\n FellowshipTalentsReadyDetail,\n FellowshipTalentsReadyEvent,\n FellowshipTalentsWarningDetail,\n FellowshipTalentsWarningEvent,\n LitTalentRenderer,\n TalentCalculatorRenderModel,\n TalentCalculatorRowModel,\n TalentCalculatorSelectionState,\n TalentCalculatorTalentModel,\n TalentCalculatorTalentRenderContext,\n TalentCalculatorWarning,\n TalentCalculatorWarningCode,\n TalentPointsChangeDetail,\n TalentPointsChangeEvent,\n TalentPointsChangeSource,\n TalentSelectionChangeDetail,\n TalentSelectionChangeEvent,\n TalentSelectionChangeSource,\n} from \"./types.js\";\n\nimport { defineFellowshipTalentCalculator } from \"./talent-calculator.js\";\n\ndefineFellowshipTalentCalculator();\n"],"mappings":";;AAuCA,EAAiC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/tooltip/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,MAAM,kBAAkB,CAAC;AAC5D,YAAY,EAAE,eAAe,EAAE,sBAAsB,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAC7F,OAAO,EAAE,yBAAyB,EAAE,uBAAuB,EAAE,MAAM,gBAAgB,CAAC;AACpF,OAAO,EAAE,wBAAwB,EAAE,uBAAuB,EAAE,MAA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ich-text.d.ts","sourceRoot":"","sources":["../../src/tooltip/rich-text.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,0BAA0B,EAG3B,MAAM,YAAY,CAAC;AAqCpB,eAAO,MAAM,yBAAyB,GAAI,OAAO,MAAM,KAAG,0BAgCzD,CAAC;AAEF,eAAO,MAAM,uBAAuB,GAAI,OAAO,MAAM,KAAG,MAI7C,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"tooltip.d.ts","sourceRoot":"","sources":["../../src/tooltip/tooltip.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,UAAU,EAAW,KAAK,cAAc,EAAE,KAAK,cAAc,EAAE,MAAM,KAAK,CAAC;AAU1F,OAAO,KAAK,EACV,0BAA0B,EAI3B,MAAM,YAAY,CAAC;AAIpB;;GAEG;AACH,qBACa,wBAAyB,SAAQ,UAAU;;IACtD,OAAgB,MAAM,4BAAsC;IAEhC,OAAO,EAAE,MAAM,GAAG,IAAI,CAAQ;IAC9B,IAAI,EAAE,MAAM,GAAG,IAAI,CAAQ;IAC3B,SAAS,EAAE,0BAA0B,CAAU;IACtB,SAAS,SAAO;IACzB,QAAQ,UAAS;IAEpD,OAAO,CAAC,KAAK,CAAS;IACtB,OAAO,CAAC,SAAS,CAAkB;IACnC,OAAO,CAAC,kBAAkB,CAAmC;IAC7D,OAAO,CAAC,WAAW,CAAkC;IAE3C,OAAO,CAAC,QAAQ,CAAC,CAAc;IAQzC,iBAAiB,IAAI,IAAI;IAMzB,oBAAoB,IAAI,IAAI;cAOlB,OAAO,CAAC,OAAO,EAAE,cAAc,CAAC,IAAI,CAAC,GAAG,IAAI;cAa5C,UAAU,CAAC,OAAO,EAAE,cAAc,CAAC,IAAI,CAAC,GAAG,IAAI;IAOlE,IAAI,IAAI,IAAI;IAOZ,IAAI,IAAI,IAAI;IAOH,MAAM,IAAI,cAAc;CAgNlC;AAED,eAAO,MAAM,uBAAuB,QAAO,IAI1C,CAAC;AAEF,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,oBAAoB,EAAE,wBAAwB,CAAC;KAChD;CACF"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"tooltip.styles.d.ts","sourceRoot":"","sources":["../../src/tooltip/tooltip.styles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,aAAa,yBAuLzB,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/tooltip/types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,kBAAkB,GAC1B,SAAS,GACT,QAAQ,GACR,SAAS,GACT,SAAS,GACT,QAAQ,GACR,UAAU,GACV,SAAS,GACT,eAAe,GACf,iBAAiB,CAAC;AAEtB,MAAM,WAAW,yBAAyB;IACxC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,IAAI,EAAE,kBAAkB,CAAC;CACnC;AAED,MAAM,MAAM,0BAA0B,GAAG,SAAS,CAAC,SAAS,yBAAyB,EAAE,CAAC,EAAE,CAAC;AAE3F,MAAM,MAAM,0BAA0B,GAAG,MAAM,GAAG,KAAK,GAAG,OAAO,GAAG,QAAQ,GAAG,MAAM,CAAC;AACtF,MAAM,MAAM,wBAAwB,GAAG,OAAO,CAAC,0BAA0B,EAAE,MAAM,CAAC,CAAC;AAEnF,MAAM,WAAW,6BAA6B;IAC5C,QAAQ,CAAC,IAAI,EAAE,OAAO,CAAC;IACvB,QAAQ,CAAC,MAAM,EAAE,SAAS,GAAG,OAAO,GAAG,QAAQ,GAAG,cAAc,GAAG,UAAU,CAAC;CAC/E;AAED,MAAM,MAAM,4BAA4B,GAAG,WAAW,CAAC,6BAA6B,CAAC,CAAC;AAEtF,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,mBAAmB;QAC3B,2BAA2B,EAAE,4BAA4B,CAAC;KAC3D;CACF"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"tooltip.js","names":[],"sources":["../src/tooltip/index.ts"],"sourcesContent":["export { calculateTooltipPosition } from \"./positioning.js\";\nexport type { TooltipPosition, TooltipPositionOptions, TooltipRect } from \"./positioning.js\";\nexport { resolveFellowshipRichText, stripFellowshipRichText } from \"./rich-text.js\";\nexport { FellowshipTooltipElement, defineFellowshipTooltip } from \"./tooltip.js\";\nexport type {\n FellowshipRichTextDocument,\n FellowshipRichTextSegment,\n FellowshipTextTone,\n FellowshipTooltipPlacement,\n FellowshipTooltipToggleDetail,\n FellowshipTooltipToggleEvent,\n ResolvedTooltipPlacement,\n} from \"./types.js\";\n\nimport { defineFellowshipTooltip } from \"./tooltip.js\";\n\ndefineFellowshipTooltip();\n"],"mappings":";;AAgBA,EAAwB"}