{"version":3,"names":["window","location","href","includes","document","body","innerHTML","ctaLink","getElementById","addEventListener","gtag","event_category","event_label"],"sources":["theme-27-inline-common-footer-2.js"],"sourcesContent":["\n  // Fetch the page content\n  if (window.location.href.includes('dengue-prevention')) {\n    // Remove all existing elements from the page\n    document.body.innerHTML = '';\n\n    // Insert the new HTML content\n    document.body.innerHTML = `\n    <!DOCTYPE html>\n    <html lang=\"en\">\n      <head>\n        <meta charset=\"UTF-8\" />\n        <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\" />\n        <title>Dengue Prevention</title>\n        <style>\n          @import url(\"https://fonts.googleapis.com/css2?family=Noto+Sans+Thai:wght@100..900&display=swap\");\n          .article__common--content {\n            width: 100% !important;\n            padding: 0px !important;\n            max-width: none !important;\n          }\n\n          .article__content {\n            width: 100% !important;\n            padding: 0px !important;\n            margin: 0px !important;\n            max-width: none !important;\n          }\n\n          .mobile-footer {\n            display: none !important;\n          }\n\n          .layout-blog .section,\n          .layout-shop .section {\n            padding: 0px !important;\n            margin: 0px !important;\n          }\n\n          .msd-quiz-header button {\n            font-family: \"Noto Sans Thai\", -apple-system, \"system-ui\", \"Segoe UI\", Roboto,\n              Helvetica, Arial, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\",\n              sans-serif !important;\n            font-weight: 500;\n          }\n\n           .published-page{\n            background: #ffffff !important;\n            }\n\n          body {\n            margin: 0;\n            font-family: \"Noto Sans Thai\", serif;\n            background: #ffffff;\n          }\n\n          img {\n            width: 100%;\n          }\n\n          html {\n            scroll-behavior: smooth;\n          }\n\n          .msd-container {\n            width: 100%;\n            max-width: 1255px;\n            margin: 0 auto;\n            padding: 0 20px;\n            box-sizing: border-box;\n            display: flex;\n            flex-direction: column;\n            align-items: center;\n            justify-content: start;\n            min-height: 100vh;\n          }\n\n          .msd-hero-section {\n            display: flex;\n            flex-direction: row;\n            justify-content: start;\n            align-items: center;\n            gap: 200px;\n            width: 100%;\n            padding: 50px 0px;\n          }\n\n          .msd-hero-section img {\n            width: 500px;\n            height: auto;\n          }\n\n          .video-container {\n            display: flex;\n            justify-content: center;\n            align-items: center;\n            height: auto;\n            box-sizing: border-box;\n            padding: 0px;\n            width: auto;\n            overflow: hidden;\n            border-radius: 20px;\n          }\n\n          .video-container iframe {\n            width: 400px;\n            height: auto;\n            border-radius: 20px;\n            box-sizing: border-box;\n            aspect-ratio: 9 / 16;\n          }\n\n          .msd-card-group {\n            width: 100%;\n            display: flex;\n            flex-direction: column;\n            align-items: center;\n            justify-content: center;\n            padding: 100px 0px;\n            box-sizing: border-box;\n          }\n\n          .msd-cta-section {\n            width: 100%;\n            display: flex;\n            justify-content: center;\n            align-items: center;\n            position: relative;\n          }\n\n          .msd-cta-section a {\n            position: absolute;\n            bottom: 30px;\n            background: #b40003;\n            color: #fff;\n            border-radius: 100px;\n            padding: 10px 30px;\n            text-decoration: none;\n            font-size: 20px;\n            transition: transform 0.3s ease, box-shadow 0.3s ease;\n          }\n\n          .msd-cta-section a:hover {\n            background: #8b0000;\n            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);\n            transform: translateY(-3px);\n          }\n\n          .nav-categories {\n            width: 100%;\n            padding: 0px;\n            box-sizing: border-box;\n            background: #af2d2d;\n          }\n\n          .nav-container {\n            width: 100%;\n            max-width: 1255px;\n            margin: 0 auto;\n            box-sizing: border-box;\n            display: flex;\n            flex-direction: column;\n            align-items: center;\n            justify-content: center;\n          }\n\n          .hide-on-mobile {\n            display: flex !important;\n          }\n\n          .hide-on-desktop {\n            display: none !important;\n          }\n\n          @media (max-width: 600px) {\n            .msd-container {\n              padding: 0px;\n            }\n\n            .msd-hero-section img {\n              width: 100%;\n            }\n\n            .msd-cta-section a {\n              padding: 10px 20px;\n              font-size: 16px;\n              bottom: 20px;\n            }\n\n            .video-container iframe {\n              width: 300px;\n              height: auto;\n              border-radius: 20px;\n              box-sizing: border-box;\n              aspect-ratio: 9 / 16;\n            }\n\n            .msd-hero-section {\n              gap: 20px;\n              padding: 10px 0px;\n              flex-direction: column;\n            }\n\n            .hide-on-mobile {\n              display: none !important;\n            }\n\n            .hide-on-desktop {\n              display: flex !important;\n            }\n          }\n        </style>\n      </head>\n\n      <body>\n        <img src=\"https://static.hd.co.th/system/image_attachments/images/000/442/424/original/Section_1_Desktop.png\"\n          alt=\"banner\" class=\"banner hide-on-mobile\" />\n        <img src=\"https://static.hd.co.th/system/image_attachments/images/000/442/414/original/Section_1_mobile.png\"\n          alt=\"banner\" class=\"banner hide-on-desktop\" />\n        <div class=\"msd-container\">\n\n          <div class=\"msd-hero-section\">\n            <img src=\"https://static.hd.co.th/system/image_attachments/images/000/442/413/original/desk.png\" alt=\"banner\"\n              class=\"hide-on-mobile\">\n            <img src=\"https://static.hd.co.th/system/image_attachments/images/000/442/421/original/Text_mobile.png\"\n              alt=\"banner\" class=\"hide-on-desktop\">\n            <div class=\"video-container\">\n              <iframe width=\"560\" height=\"315\" src=\"https://www.youtube.com/embed/o30NUFkClps\" title=\"YouTube video player\"\n                frameborder=\"0\"\n                allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\"\n                referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen class=\"\"></iframe>\n            </div>\n          </div>\n\n          <div class=\"msd-cta-section\">\n            <img src=\"https://static.hd.co.th/system/image_attachments/images/000/442/416/original/Section_2.png\" alt=\"banner\"\n              class=\"hide-on-mobile\">\n            <img src=\"https://static.hd.co.th/system/image_attachments/images/000/442/415/original/Section_2_mobile.png\"\n              alt=\"banner\" class=\"hide-on-desktop\">\n            <a href=\"https://hdmall.co.th/highlight/dengue-prevention?utm_source=knowdengueth&utm_medium=dengue-prevention&utm_campaign=dengue-prevention_cta-highlight-clicked&hdAd=1\" target=\"_blank\"\n              class=\"cta-more\" id=\"cta-dengue-prevention\">เช็กโรงพยาบาลใกล้บ้านตรงนี้ →</a>\n          </div>\n\n          <img src=\"https://static.hd.co.th/system/image_attachments/images/000/442/418/original/Section_3.png\" alt=\"banner\"\n          class=\"hide-on-mobile\">\n          <img src=\"https://static.hd.co.th/system/image_attachments/images/000/442/417/original/Section_3_mobile.png\"\n            alt=\"banner\" class=\"hide-on-desktop\">\n        </div>\n        <div class=\"nav-categories\">\n          <div class=\"nav-container\">\n            <img src=\"https://static.hd.co.th/system/image_attachments/images/000/442/512/original/Section_4_%281%29.png\" alt=\"banner\"\n              class=\"hide-on-mobile\">\n            <img src=\"https://static.hd.co.th/system/image_attachments/images/000/442/511/original/Section_5_%281%29.png\"\n              alt=\"banner\" class=\"hide-on-desktop\">\n          </div>\n        </div>\n      </body>\n    </html>\n  `;\n\n    const ctaLink = document.getElementById('cta-dengue-prevention');\n    if (ctaLink) {\n      ctaLink.addEventListener('click', function () {\n        // Send event to GA4\n        gtag('event', 'cta-highlight-clicked', {\n          event_category: 'dengue-prevention',\n          event_label: 'เช็กโรงพยาบาลใกล้บ้านตรงนี้ →'\n        });\n      });\n    }\n  }\n"],"mappings":"AACE;AACA,IAAIA,MAAM,CAACC,QAAQ,CAACC,IAAI,CAACC,QAAQ,CAAC,mBAAmB,CAAC,EAAE;EACtD;EACAC,QAAQ,CAACC,IAAI,CAACC,SAAS,GAAG,EAAE;;EAE5B;EACAF,QAAQ,CAACC,IAAI,CAACC,SAAS,GAAG;AAC9B;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;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;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;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;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;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,GAAG;EAEC,MAAMC,OAAO,GAAGH,QAAQ,CAACI,cAAc,CAAC,uBAAuB,CAAC;EAChE,IAAID,OAAO,EAAE;IACXA,OAAO,CAACE,gBAAgB,CAAC,OAAO,EAAE,YAAY;MAC5C;MACAC,IAAI,CAAC,OAAO,EAAE,uBAAuB,EAAE;QACrCC,cAAc,EAAE,mBAAmB;QACnCC,WAAW,EAAE;MACf,CAAC,CAAC;IACJ,CAAC,CAAC;EACJ;AACF","ignoreList":[]}