update commit message
This commit is contained in:
+16
-3
@@ -37,6 +37,10 @@
|
||||
cubePlacementBySignId: new Map()
|
||||
};
|
||||
|
||||
function hasTarotAccess() {
|
||||
return window.TarotAppConfig?.hasTarotAccess?.() === true;
|
||||
}
|
||||
|
||||
// ── Elements ──────────────────────────────────────────────────────────
|
||||
function getElements() {
|
||||
return {
|
||||
@@ -184,12 +188,14 @@
|
||||
}
|
||||
|
||||
// ── Kabbalah Path + Trump ─────────────────────────────────────────
|
||||
const tarotAccessEnabled = hasTarotAccess();
|
||||
|
||||
if (kabPath) {
|
||||
const hl = kabPath.hebrewLetter || {};
|
||||
const hebrewLetterId = normalizeHebrewLetterId(hl.transliteration);
|
||||
const hebrewLetterLabel = hl.transliteration || hl.char || "";
|
||||
sections.push(`<div class="planet-meta-card">
|
||||
<strong>Kabbalah & Major Arcana</strong>
|
||||
<strong>${tarotAccessEnabled ? "Kabbalah & Major Arcana" : "Kabbalah Path"}</strong>
|
||||
<div class="planet-text">
|
||||
<div style="display:flex;align-items:center;gap:12px;margin-bottom:8px">
|
||||
<span class="zod-hebrew-glyph">${hl.char || ""}</span>
|
||||
@@ -199,7 +205,7 @@
|
||||
</div>
|
||||
</div>
|
||||
<dl class="alpha-dl">
|
||||
<dt>Trump Card</dt><dd>${kabPath.tarot?.card ? `<button class="detail-inline-link" data-nav="trump" data-trump-number="${kabPath.tarot?.trumpNumber}">${kabPath.tarot.card}</button>` : "—"}</dd>
|
||||
${tarotAccessEnabled ? `<dt>Trump Card</dt><dd>${kabPath.tarot?.card ? `<button class="detail-inline-link" data-nav="trump" data-trump-number="${kabPath.tarot?.trumpNumber}">${kabPath.tarot.card}</button>` : "—"}</dd>` : ""}
|
||||
<dt>Intelligence</dt><dd>${kabPath.intelligence || "—"}</dd>
|
||||
</dl>
|
||||
</div>
|
||||
@@ -211,6 +217,13 @@
|
||||
const decanRows = decans.map((d) => {
|
||||
const ord = ["1st","2nd","3rd"][d.index - 1] || d.index;
|
||||
const sym = PLANET_SYMBOLS[d.rulerPlanetId] || "";
|
||||
if (!tarotAccessEnabled) {
|
||||
return `<div class="zod-decan-row">
|
||||
<span class="zod-decan-ord">${ord}</span>
|
||||
<span class="zod-decan-planet">${sym ? `${sym} ` : ""}<button class="detail-inline-link" data-nav="planet" data-planet-id="${d.rulerPlanetId}">${cap(d.rulerPlanetId)}</button></span>
|
||||
</div>`;
|
||||
}
|
||||
|
||||
return `<div class="zod-decan-row">
|
||||
<span class="zod-decan-ord">${ord}</span>
|
||||
<span class="zod-decan-planet">${sym ? `${sym} ` : ""}<button class="detail-inline-link" data-nav="planet" data-planet-id="${d.rulerPlanetId}">${cap(d.rulerPlanetId)}</button></span>
|
||||
@@ -220,7 +233,7 @@
|
||||
</div>`;
|
||||
}).join("");
|
||||
sections.push(`<div class="planet-meta-card">
|
||||
<strong>Decans & Minor Arcana</strong>
|
||||
<strong>${tarotAccessEnabled ? "Decans & Minor Arcana" : "Decans"}</strong>
|
||||
<div class="planet-text">${decanRows}</div>
|
||||
</div>`);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user