{"version":3,"names":[],"sources":["theme-121-inline-common-head_tag.js"],"sourcesContent":["\n(() => {\n    const eventCardSelector = \".fc-popover, .event-preview, .discourse-post-event\";\n\n    // Injected CSS for a clean and modern look\n    const style = document.createElement(\"style\");\n    style.innerHTML = `\n    .custom-topic-info-wrapper {\n        margin-top: 16px;\n        padding-top: 16px;\n        border-top: 1px solid var(--primary-low); /* Subtle separator line */\n        width: 100%;\n        display: flex;\n        justify-content: center;\n    }\n\n    .custom-topic-info-btn {\n        display: flex !important;\n        align-items: center;\n        justify-content: center;\n        width: 100%;\n        box-sizing: border-box;\n        padding: 8px 16px;\n        \n        /* Elegant Outline style */\n        background-color: transparent !important;\n        color: var(--tertiary) !important;\n        border: 1px solid var(--tertiary) !important;\n        \n        border-radius: 6px;\n        font-weight: 600;\n        text-decoration: none !important;\n        transition: all 0.2s ease;\n        cursor: pointer;\n    }\n\n    /* Hover effect: button fills with color */\n    .custom-topic-info-btn:hover {\n        background-color: var(--tertiary) !important;\n        color: var(--secondary) !important;\n        border-color: var(--tertiary) !important;\n    }\n\n    /* Align the info icon */\n    .custom-topic-info-btn .btn-icon-svg {\n        margin-right: 8px;\n        width: 16px;\n        height: 16px;\n        fill: currentColor;\n    }\n    `;\n    document.head.appendChild(style);\n\n    const findTopicLink = (container) => {\n        if (!container) return null;\n        const links = [...container.querySelectorAll('a[href*=\"/t/\"]')];\n        if (links.length) return links[0].href;\n        return null;\n    };\n\n    const createTopicInfoButton = () => {\n        const cards = document.querySelectorAll(eventCardSelector);\n        \n        cards.forEach(card => {\n            if (card.querySelector(\".custom-topic-info-btn\")) return;\n\n            const topicUrl = findTopicLink(card);\n            if (!topicUrl) return;\n\n            const wrapper = document.createElement(\"div\");\n            wrapper.className = \"custom-topic-info-wrapper\";\n\n            const button = document.createElement(\"a\");\n            button.className = \"btn custom-topic-info-btn\";\n            button.title = \"View full topic\";\n            button.href = topicUrl;\n            \n            // \"i\" Info icon + New actionable text\n            button.innerHTML = `\n                <svg class=\"btn-icon-svg\" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 512 512\">\n                    <path d=\"M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM216 336h24V240h-24c-13.3 0-24-10.7-24-24s10.7-24 24-24h40c13.3 0 24 10.7 24 24v120h24c13.3 0 24 10.7 24 24s-10.7 24-24 24H216c-13.3 0-24-10.7-24-24s10.7-24 24-24zm40-144a32 32 0 1 1 0-64 32 32 0 1 1 0 64z\"/>\n                </svg>\n                <span class=\"d-button-label\">Plus d'info sur la convention</span>\n            `;\n\n            wrapper.appendChild(button);\n\n            // Position above the response options (Going, etc.)\n            const actionsContainer = card.querySelector(\".status-and-options, .event-actions\");\n            const infoContainer = card.querySelector(\".event-info\");\n            \n            if (actionsContainer && actionsContainer.parentNode) {\n                actionsContainer.parentNode.insertBefore(wrapper, actionsContainer);\n            } else if (infoContainer) {\n                infoContainer.appendChild(wrapper);\n            } else {\n                card.appendChild(wrapper);\n            }\n        });\n    };\n\n    const observer = new MutationObserver(() => createTopicInfoButton());\n    observer.observe(document.body, { childList: true, subtree: true });\n\n    createTopicInfoButton();\n})();\n"],"mappings":"AACA,CAAC,MAAM;EACH,MAAM,iBAAiB,GAAG,oDAAoD;;EAE9E;EACA,MAAM,KAAK,GAAG,QAAQ,CAAC,aAAa,CAAC,OAAO,CAAC;EAC7C,KAAK,CAAC,SAAS,GAAG;AACtB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;EACD,QAAQ,CAAC,IAAI,CAAC,WAAW,CAAC,KAAK,CAAC;EAEhC,MAAM,aAAa,GAAI,SAAS,IAAK;IACjC,IAAI,CAAC,SAAS,EAAE,OAAO,IAAI;IAC3B,MAAM,KAAK,G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