{"webLayers":[{"_id":"67338e95a9b34dd6f9afb41d","date_filter":{"enabled":false,"from_date":1732528800,"to_date":1732626000},"trigger":{"include_pages":[{"type":"any"}],"exclude_pages":[{"url":"shop.newcastleunited.com","type":"contains"},{"url":"official store","type":"contains"}]},"smart_trigger":null,"device_target":{"type":"mobile"},"frequency":"once_per_visit","uses_personalization":true,"data":"","variables_target":null,"page_vars":[]},{"_id":"673477157e75ce0912fe1add","date_filter":{"enabled":true,"from_date":1733220000,"to_date":1733295600},"trigger":{"include_pages":[{"url":"https://shop.newcastleunited.com/collections/mens-clothing","type":"contains"},{"url":"https://shop.newcastleunited.com/collections/clothing","type":"contains"},{"url":"https://shop.newcastleunited.com/collections/gifts","type":"contains"},{"url":"https://shop.newcastleunited.com/collections/mens-sweats-hoodies","type":"contains"},{"url":"https://shop.newcastleunited.com/collections/new-in","type":"contains"},{"url":"https://shop.newcastleunited.com/collections/mens-outerwear","type":"contains"},{"url":"https://shop.newcastleunited.com/collections/kit","type":"contains"},{"url":"https://shop.newcastleunited.com/collections/mens-home-kit","type":"contains"},{"url":"https://shop.newcastleunited.com/collections/mens-training","type":"contains"},{"url":"https://shop.newcastleunited.com/collections/mens-training-tops","type":"contains"},{"url":"https://shop.newcastleunited.com/collections/kids-clothing","type":"contains"},{"url":"https://shop.newcastleunited.com/collections/players-24-25-range","type":"contains"},{"url":"https://shop.newcastleunited.com/collections/mens-t-shirts","type":"contains"},{"url":"https://shop.newcastleunited.com/collections/mens-training-hoodies","type":"contains"},{"url":"https://shop.newcastleunited.com/collections/kids-home-kit","type":"contains"},{"url":"https://shop.newcastleunited.com/collections/mens-training-outerwear","type":"contains"},{"url":"https://shop.newcastleunited.com/collections/newcastle-united-x-new-era","type":"contains"},{"url":"https://shop.newcastleunited.com/collections/pre-match-24-25-range","type":"contains"},{"url":"https://shop.newcastleunited.com/collections/new-mens-24-25-away-kit","type":"contains"},{"url":"https://shop.newcastleunited.com/collections/all-24-25-away-kits","type":"contains"},{"url":"https://shop.newcastleunited.com/collections/kids-training","type":"contains"},{"url":"https://shop.newcastleunited.com/collections/womens-clothing","type":"contains"},{"url":"https://shop.newcastleunited.com/collections/all-24-25-kit","type":"contains"},{"url":"https://shop.newcastleunited.com/collections/training","type":"contains"},{"url":"https://www.newcastleunited.com/en/newcastle-united-official-club-store","type":"contains"}],"exclude_pages":null},"smart_trigger":null,"device_target":{"type":"any"},"frequency":"until_visitor_interacts","uses_personalization":true,"data":"","variables_target":null,"page_vars":[]},{"_id":"675acbed947a9ffed9064d38","date_filter":{"enabled":true,"from_date":1733961600,"to_date":1734652799},"trigger":{"include_pages":[{"url":"https://shop.newcastleunited.com/collections/mens-clothing","type":"contains"},{"url":"https://shop.newcastleunited.com/collections/clothing","type":"contains"},{"url":"https://shop.newcastleunited.com/collections/gifts","type":"contains"},{"url":"https://shop.newcastleunited.com/collections/mens-sweats-hoodies","type":"contains"},{"url":"https://shop.newcastleunited.com/collections/new-in","type":"contains"},{"url":"https://shop.newcastleunited.com/collections/mens-outerwear","type":"contains"},{"url":"https://shop.newcastleunited.com/collections/kit","type":"contains"},{"url":"https://shop.newcastleunited.com/collections/mens-home-kit","type":"contains"},{"url":"https://shop.newcastleunited.com/collections/mens-training","type":"contains"},{"url":"https://shop.newcastleunited.com/collections/mens-training-tops","type":"contains"},{"url":"https://shop.newcastleunited.com/collections/kids-clothing","type":"contains"},{"url":"https://shop.newcastleunited.com/collections/players-24-25-range","type":"contains"},{"url":"https://shop.newcastleunited.com/collections/mens-t-shirts","type":"contains"},{"url":"https://shop.newcastleunited.com/collections/mens-training-hoodies","type":"contains"},{"url":"https://shop.newcastleunited.com/collections/kids-home-kit","type":"contains"},{"url":"https://shop.newcastleunited.com/collections/mens-training-outerwear","type":"contains"},{"url":"https://shop.newcastleunited.com/collections/newcastle-united-x-new-era","type":"contains"},{"url":"https://shop.newcastleunited.com/collections/pre-match-24-25-range","type":"contains"},{"url":"https://shop.newcastleunited.com/collections/new-mens-24-25-away-kit","type":"contains"},{"url":"https://shop.newcastleunited.com/collections/all-24-25-away-kits","type":"contains"},{"url":"https://shop.newcastleunited.com/collections/kids-training","type":"contains"},{"url":"https://shop.newcastleunited.com/collections/womens-clothing","type":"contains"},{"url":"https://shop.newcastleunited.com/collections/all-24-25-kit","type":"contains"},{"url":"https://shop.newcastleunited.com/collections/training","type":"contains"},{"url":"https://www.newcastleunited.com/en/newcastle-united-official-club-store","type":"contains"}],"exclude_pages":null},"smart_trigger":null,"device_target":{"type":"any"},"frequency":"until_visitor_interacts","uses_personalization":true,"data":"","variables_target":null,"page_vars":[]},{"_id":"67d1aeabf6ab35fee5552c96","date_filter":{"enabled":true,"from_date":null,"to_date":1742142600},"trigger":{"include_pages":[{"type":"any"}],"exclude_pages":[{"url":"shop.newcastleunited.com","type":"contains"},{"url":"newcastle-united-mobile-app","type":"contains"}]},"smart_trigger":null,"device_target":{"type":"any"},"frequency":"until_visitor_interacts","uses_personalization":true,"data":"","variables_target":null,"page_vars":[]},{"_id":"67dbefec88306797836ba7e0","date_filter":{"enabled":true,"from_date":null,"to_date":1742774399},"trigger":{"include_pages":[{"url":"https://www.newcastleunited.com/en/matches/womens-team/fixtures","type":"exact"},{"url":"https://www.newcastleunited.com/en/matches/mens-team/fixtures","type":"exact"},{"url":"https://www.newcastleunited.com/en/matches/U21/fixtures","type":"exact"},{"url":"https://www.newcastleunited.com/en/matches/U18/fixtures","type":"exact"},{"url":"https://www.newcastleunited.com/en/tickets","type":"exact"},{"url":"https://www.newcastleunited.com/en/teams/womens-team","type":"exact"},{"url":"https://www.newcastleunited.com/en/st-james-park","type":"exact"},{"url":"https://www.newcastleunited.com/en","type":"exact"},{"url":"https://www.newcastleunited.com/en/news/listing/womens-news","type":"exact"}],"exclude_pages":[{"url":"shop.newcastleunited.com","type":"contains"}]},"smart_trigger":null,"device_target":{"type":"any"},"frequency":"until_visitor_interacts","uses_personalization":true,"data":"","variables_target":null,"page_vars":[]},{"_id":"681e195ded2bc3aadea7b0bd","date_filter":{"enabled":true,"from_date":1746658800,"to_date":1753484399},"trigger":{"include_pages":[{"url":"https://www.newcastleunited.com/en/pre-season-tour-2025","type":"exact"}],"exclude_pages":[{"url":"shop.newcastleunited.com","type":"contains"}]},"smart_trigger":null,"device_target":{"type":"any"},"frequency":"only_once","uses_personalization":true,"data":"","variables_target":null,"page_vars":[]},{"_id":"683d8e98839cb6d445439d59","date_filter":{"enabled":true,"from_date":1748818800,"to_date":1750114799},"trigger":{"include_pages":[{"url":"https://www.newcastleunited.com/en","type":"exact"},{"url":"https://www.newcastleunited.com/en/matches/mens-team/fixtures","type":"exact"},{"url":"https://www.newcastleunited.com/en/teams/mens-team","type":"exact"},{"url":"https://www.newcastleunited.com/en/news","type":"exact"}],"exclude_pages":[{"url":"shop.newcastleunited.com","type":"contains"}]},"smart_trigger":null,"device_target":{"type":"any"},"frequency":"once_per_visit","uses_personalization":true,"data":"","variables_target":null,"page_vars":[]},{"_id":"68f8f889d973a9b14bd6001e","date_filter":{"enabled":true,"from_date":null,"to_date":1761303540},"trigger":{"include_pages":[{"type":"any"}],"exclude_pages":[{"url":"shop","type":"contains"}]},"smart_trigger":null,"device_target":{"type":"any"},"frequency":"until_visitor_interacts","uses_personalization":true,"data":"","variables_target":null,"page_vars":[]},{"_id":"690487937cac5b524485faa2","date_filter":{"enabled":true,"from_date":null,"to_date":1761955199},"trigger":{"include_pages":[{"url":"https://www.newcastleunited.com/en/st-james-park","type":"exact"},{"url":"https://www.newcastleunited.com/en/tickets","type":"exact"},{"url":"https://www.newcastleunited.com/en/st-james-park/stadium-tours","type":"exact"},{"url":"https://www.newcastleunited.com/en/st-james-park/whats-on","type":"exact"}],"exclude_pages":[{"url":"shop","type":"contains"},{"url":"official store","type":"contains"}]},"smart_trigger":null,"device_target":{"type":"any"},"frequency":"until_visitor_interacts","uses_personalization":true,"data":"","variables_target":null,"page_vars":[]},{"_id":"692d99d8aa2d4014d4b5c6c0","date_filter":{"enabled":true,"from_date":1764720000,"to_date":1765929599},"trigger":{"include_pages":[{"url":"https://shop.newcastleunited.com/collections/all-25-26-away-kit","type":"exact"},{"url":"https://shop.newcastleunited.com/collections/new-in","type":"exact"},{"url":"https://shop.newcastleunited.com/collections/kit","type":"exact"},{"url":"https://shop.newcastleunited.com/collections/all-25-26-third-kit","type":"exact"},{"url":"https://shop.newcastleunited.com/collections/sale","type":"exact"},{"url":"https://shop.newcastleunited.com/collections/mens-25-26-home-kit","type":"exact"},{"url":"https://shop.newcastleunited.com/collections/training","type":"exact"},{"url":"https://shop.newcastleunited.com/collections/mens-clothing ","type":"exact"},{"url":"https://shop.newcastleunited.com/collections/mens-sweats-hoodies","type":"exact"},{"url":"https://shop.newcastleunited.com/collections/mens-25-26-away-kit","type":"exact"},{"url":"https://shop.newcastleunited.com/collections/northern-explorer","type":"exact"},{"url":"https://shop.newcastleunited.com/collections/memorabilia","type":"exact"},{"url":"https://shop.newcastleunited.com/collections/mens-25-26-third-kit","type":"exact"},{"url":"https://shop.newcastleunited.com/collections/mens-training-tops","type":"exact"},{"url":"https://shop.newcastleunited.com/collections/retro","type":"exact"},{"url":"https://shop.newcastleunited.com/collections/gifts","type":"exact"},{"url":"https://shop.newcastleunited.com/collections/kids-25-26-home-kit","type":"exact"},{"url":"https://shop.newcastleunited.com/collections/mens-outerwear","type":"exact"},{"url":"https://shop.newcastleunited.com/collections/whos-that-team","type":"exact"},{"url":"https://shop.newcastleunited.com/collections/carabao-cup-winners-2025","type":"exact"},{"url":"https://shop.newcastleunited.com/collections/mens-t-shirts","type":"exact"},{"url":"https://shop.newcastleunited.com/collections/clothing","type":"exact"},{"url":"https://shop.newcastleunited.com/collections/accessories","type":"exact"},{"url":"https://shop.newcastleunited.com/collections/baby-clothing","type":"exact"},{"url":"https://shop.newcastleunited.com/collections/all-25-26-goalkeeper-home-kits","type":"exact"},{"url":"https://shop.newcastleunited.com/collections/mens-training","type":"exact"},{"url":"https://shop.newcastleunited.com/collections/mens-training-outerwear","type":"exact"},{"url":"https://shop.newcastleunited.com/collections/kids-25-26-away-kit","type":"exact"},{"url":"https://shop.newcastleunited.com/collections/mens-polo-shirts","type":"exact"}],"exclude_pages":null},"smart_trigger":null,"device_target":{"type":"any"},"frequency":"only_once","uses_personalization":true,"data":"","variables_target":null,"page_vars":[]},{"_id":"6973a1a78d1033d3da4b823e","date_filter":{"enabled":true,"from_date":null,"to_date":1770595199},"trigger":{"include_pages":[{"url":"https://shop.newcastleunited.com/collections/new-in","type":"exact"},{"url":"https://shop.newcastleunited.com/collections/all-25-26-home-kit","type":"exact"},{"url":"https://shop.newcastleunited.com/collections/retro","type":"exact"},{"url":"https://shop.newcastleunited.com/collections/all-25-26-third-kit","type":"exact"},{"url":"https://shop.newcastleunited.com/collections/all-25-26-away-kit","type":"exact"},{"url":"https://shop.newcastleunited.com/collections/kit","type":"exact"},{"url":"https://shop.newcastleunited.com/collections/mens-sweats-hoodies","type":"exact"},{"url":"https://shop.newcastleunited.com/collections/sale","type":"exact"},{"url":"https://shop.newcastleunited.com/collections/mens-25-26-home-kit","type":"exact"},{"url":"https://shop.newcastleunited.com/collections/mens-clothing","type":"exact"},{"url":"https://shop.newcastleunited.com/collections/training","type":"exact"},{"url":"https://shop.newcastleunited.com/collections/clothing","type":"exact"},{"url":"https://shop.newcastleunited.com/collections/memorabilia","type":"exact"},{"url":"https://shop.newcastleunited.com/collections/mens-outerwear","type":"exact"},{"url":"https://shop.newcastleunited.com","type":"exact"}],"exclude_pages":null},"smart_trigger":null,"device_target":{"type":"any"},"frequency":"once_per_visit","uses_personalization":true,"data":"","variables_target":null,"page_vars":[]},{"_id":"698ef1ccc742b143ad3ff952","date_filter":{"enabled":true,"from_date":null,"to_date":1771804799},"trigger":{"include_pages":[{"url":"https://www.newcastleunited.com/en/tickets","type":"exact"},{"url":"https://www.newcastleunited.com/en/tickets/matchday-hospitality","type":"exact"},{"url":"https://www.newcastleunited.com/en/tickets/matchday-hospitality/spaces-and-packages","type":"exact"},{"url":"https://www.newcastleunited.com/en/st-james-park","type":"exact"},{"url":"https://www.newcastleunited.com/en/tickets/ticket-information","type":"exact"},{"url":"https://www.newcastleunited.com/en/matches/mens-team/fixtures ","type":"exact"},{"url":"https://www.newcastleunited.com/en/tickets/ticket-information/on-sale-dates","type":"exact"}],"exclude_pages":[{"url":"shop","type":"contains"},{"url":"official store","type":"contains"}]},"smart_trigger":null,"device_target":{"type":"any"},"frequency":"only_once","uses_personalization":true,"data":"","variables_target":null,"page_vars":[]},{"_id":"6995da1551c8fc362b4927a6","date_filter":{"enabled":true,"from_date":null,"to_date":1772841599},"trigger":{"include_pages":[{"url":"https://shop.newcastleunited.com/collections/new-in","type":"exact"},{"url":"https://shop.newcastleunited.com/collections/all-25-26-home-kit","type":"exact"},{"url":"https://shop.newcastleunited.com/collections/retro","type":"exact"},{"url":"https://shop.newcastleunited.com/collections/all-25-26-third-kit","type":"exact"},{"url":"https://shop.newcastleunited.com/collections/all-25-26-away-kit","type":"exact"},{"url":"https://shop.newcastleunited.com/collections/kit","type":"exact"},{"url":"https://shop.newcastleunited.com/collections/mens-sweats-hoodies","type":"exact"},{"url":"https://shop.newcastleunited.com/collections/sale","type":"exact"},{"url":"https://shop.newcastleunited.com/collections/mens-25-26-home-kit","type":"exact"},{"url":"https://shop.newcastleunited.com/collections/mens-clothing","type":"exact"},{"url":"https://shop.newcastleunited.com/collections/training","type":"exact"},{"url":"https://shop.newcastleunited.com/collections/clothing","type":"exact"},{"url":"https://shop.newcastleunited.com/collections/memorabilia","type":"exact"},{"url":"https://shop.newcastleunited.com/collections/mens-outerwear","type":"exact"}],"exclude_pages":null},"smart_trigger":null,"device_target":{"type":"any"},"frequency":"once_per_visit","uses_personalization":true,"data":"","variables_target":null,"page_vars":[]},{"_id":"699c8b5b4f8628f7c35df2ea","date_filter":{"enabled":true,"from_date":null,"to_date":1772841599},"trigger":{"include_pages":[{"url":"https://www.newcastleunited.com/en/tickets","type":"exact"},{"url":"https://www.newcastleunited.com/en/tickets/matchday-hospitality","type":"exact"},{"url":"https://www.newcastleunited.com/en/tickets/matchday-hospitality/spaces-and-packages","type":"exact"},{"url":"https://www.newcastleunited.com/en/st-james-park","type":"exact"},{"url":"https://www.newcastleunited.com/en/tickets/ticket-information","type":"exact"},{"url":"https://www.newcastleunited.com/en/matches/mens-team/fixtures","type":"exact"},{"url":"https://www.newcastleunited.com/en/tickets/ticket-information/on-sale-dates","type":"exact"}],"exclude_pages":[{"url":"shop","type":"contains"},{"url":"official store","type":"contains"}]},"smart_trigger":null,"device_target":{"type":"any"},"frequency":"only_once","uses_personalization":true,"data":"","variables_target":null,"page_vars":[]},{"_id":"6a101d2c69f8c10d80004dff","date_filter":{"enabled":false,"from_date":1744347600,"to_date":null},"trigger":{"include_pages":[{"url":"https://shop.newcastleunited.com/pages/newcastle-united-26-27-sign-up","type":"exact"},{"url":"https://shop.newcastleunited.com/pages/newcastle-united-26-27-sign-up?","type":"contains"}],"exclude_pages":null},"smart_trigger":null,"device_target":{"type":"any"},"frequency":"always","uses_personalization":true,"data":"","variables_target":null,"page_vars":[]},{"_id":"6a2be2cf41c8d21bcb0f0dca","date_filter":{"enabled":true,"from_date":null,"to_date":1782860399},"trigger":{"include_pages":[{"url":"women","type":"contains"},{"url":"nuw","type":"contains"}],"exclude_pages":[{"url":"shop.newcastleunited.com","type":"contains"}]},"smart_trigger":null,"device_target":{"type":"any"},"frequency":"once_per_visit","uses_personalization":true,"data":"","variables_target":null,"page_vars":[]},{"_id":"6accb537ddb30b87da65f99e","date_filter":{"enabled":false,"from_date":null,"to_date":null},"trigger":{"include_pages":[{"url":"https://www.newcastleunited.com/en/win-with-inpost","type":"contains"}],"exclude_pages":null},"smart_trigger":null,"device_target":{"type":"any"},"frequency":"always","uses_personalization":false,"data":"return (function insertBanner(data) {\ninsertBanner.inPreview = false;\ninsertBanner.sdk = window.exponea;\ninsertBanner.data = data;\ninsertBanner.html = \"\u003cdiv id=\\\"exponea-greyout\\\"\u003e\\n    \u003cdiv class=\\\"banner-item weblayer--box-subscription\\\"\u003e\\n        \u003cbutton aria-label=\\\"Close\\\" class=\\\"close-icon close\\\"\u003e\\n            \u003csvg class=\\\"close-icon-svg\\\" width=\\\"16\\\" height=\\\"16\\\" viewBox=\\\"0 0 16 16\\\" fill=\\\"none\\\" xmlns=\\\"http://www.w3.org/2000/svg\\\"\u003e\\n                \u003cpath d=\\\"M2.99867 13L12.998 3\\\" stroke=\\\"rgba(255,255,255,0.7)\\\" stroke-width=\\\"1.5\\\" stroke-linecap=\\\"round\\\" stroke-linejoin=\\\"round\\\"/\u003e\\n                \u003cpath d=\\\"M12.9987 13L2.998 3\\\" stroke=\\\"rgba(255,255,255,0.7)\\\" stroke-width=\\\"1.5\\\" stroke-linecap=\\\"round\\\" stroke-linejoin=\\\"round\\\"/\u003e\\n            \u003c/svg\u003e\\n        \u003c/button\u003e\\n\\n        \u003cdiv class=\\\"inner step-one\\\"\u003e\\n            \u003cdiv class=\\\"image-surround step-one-image-surround\\\"\u003e\\n                \u003cimg class=\\\"main-image\\\" src=\\\"\\\" alt=\\\"\\\"/\u003e\\n            \u003c/div\u003e\\n            \u003cdiv class=\\\"form-inner\\\"\u003e\\n                \u003cp class=\\\"text line-one\\\"\u003e\u003c/p\u003e\\n                \u003ch6 class=\\\"heading\\\"\u003e\u003c/h6\u003e\\n                \u003cp class=\\\"text line-two\\\"\u003e\u003c/p\u003e\\n\\n                \u003cform id=\\\"exponea-form\\\"\u003e\\n                    \u003cdiv id=\\\"exponea-main-fieldsets\\\"\u003e\\n                        \u003cfieldset class=\\\"firstname_fieldset\\\"\u003e\\n                            \u003clabel for=\\\"first_name\\\" class=\\\"input-label firstname-label\\\"\u003e\u003c/label\u003e\\n                            \u003cinput name=\\\"first_name\\\" id=\\\"first_name\\\" type=\\\"text\\\" required class=\\\"first_name\\\"\u003e\\n                        \u003c/fieldset\u003e\\n                        \u003cfieldset class=\\\"lastname_fieldset\\\"\u003e\\n                            \u003clabel for=\\\"last_name\\\" class=\\\"input-label lastname-label\\\"\u003e\u003c/label\u003e\\n                            \u003cinput name=\\\"last_name\\\" id=\\\"last_name\\\" type=\\\"text\\\" required class=\\\"last_name\\\"\u003e\\n                        \u003c/fieldset\u003e\\n                        \u003cfieldset class=\\\"email_fieldset\\\"\u003e\\n                            \u003clabel for=\\\"email\\\" class=\\\"input-label email-label\\\"\u003e\u003c/label\u003e\\n                            \u003cinput name=\\\"email\\\" id=\\\"email\\\" type=\\\"email\\\" required class=\\\"email\\\"\u003e\\n                        \u003c/fieldset\u003e\\n\\n                        \u003cdiv class=\\\"exponea-consents\\\"\u003e\\n                            \u003cfieldset class=\\\"fieldset\\\"\u003e\\n                                \u003clabel for=\\\"consent_newcastle\\\" class=\\\"checkbox-label\\\"\u003e\\n                                    \u003cinput type=\\\"checkbox\\\" name=\\\"consent_newcastle\\\" id=\\\"consent_newcastle\\\" value=\\\"true\\\" class=\\\"consent_newcastle\\\"\u003e\\n                                    \u003cp class=\\\"consent-text\\\"\u003e\\n                                        \u003cspan class=\\\"consent-text-inner newcastle-consent-text\\\"\u003e\u003c/span\u003e\\n                                        \u003ca href=\\\"https://www.newcastleunited.com/en/privacy-policy\\\" target=\\\"_blank\\\" rel=\\\"noopener\\\" class=\\\"link consent-link newcastle-consent-link\\\"\u003e\u003c/a\u003e\\n                                    \u003c/p\u003e\\n                                \u003c/label\u003e\\n                            \u003c/fieldset\u003e\\n                            \u003cfieldset class=\\\"fieldset\\\"\u003e\\n                                \u003clabel for=\\\"consent_InPost\\\" class=\\\"checkbox-label\\\"\u003e\\n                                    \u003cinput type=\\\"checkbox\\\" name=\\\"consent_InPost\\\" id=\\\"consent_InPost\\\" value=\\\"true\\\" class=\\\"consent_InPost\\\"\u003e\\n                                    \u003cp class=\\\"consent-text\\\"\u003e\\n                                        \u003cspan class=\\\"consent-text-inner InPost-consent-text\\\"\u003e\u003c/span\u003e\\n                                        \u003ca href=\\\"https://inpost.co.uk/privacy-policy\\\" target=\\\"_blank\\\" rel=\\\"noopener\\\" class=\\\"link consent-link InPost-consent-link\\\"\u003e\u003c/a\u003e\\n                                    \u003c/p\u003e\\n                                \u003c/label\u003e\\n                            \u003c/fieldset\u003e\\n                        \u003c/div\u003e\\n                    \u003c/div\u003e\\n                    \u003cbutton type=\\\"submit\\\" class=\\\"button submit\\\"\u003e\u003c/button\u003e\\n                \u003c/form\u003e\\n\\n                \u003cbutton id=\\\"noThanksButton\\\" class=\\\"button close\\\"\u003e\u003c/button\u003e\\n\\n                \u003cp class=\\\"conditions\\\"\u003e\\n                    \u003cspan class=\\\"conditions-text\\\"\u003e\u003c/span\u003e\\n                    \u003ca href=\\\"#\\\" class=\\\"link conditions-link\\\"\u003e\u003c/a\u003e\\n                \u003c/p\u003e\\n            \u003c/div\u003e\\n        \u003c/div\u003e\\n\\n        \u003cdiv class=\\\"inner step-two\\\" style=\\\"display: none;\\\"\u003e\\n            \u003cdiv class=\\\"image-surround step-two-image-surround\\\"\u003e\\n                \u003cimg class=\\\"thank-you-image\\\" src=\\\"\\\" alt=\\\"\\\"/\u003e\\n            \u003c/div\u003e\\n            \u003cdiv class=\\\"form-inner\\\"\u003e\\n                \u003cp class=\\\"heading thank-you-heading\\\"\u003e\u003c/p\u003e\\n                \u003cp class=\\\"text thank-you-message\\\"\u003e\u003c/p\u003e\\n                \u003cp id=\\\"exponea-voucher\\\"\u003e\u003c/p\u003e\\n                \u003cbutton id=\\\"thankYouButton\\\" class=\\\"button close\\\"\u003e\u003c/button\u003e\\n            \u003c/div\u003e\\n        \u003c/div\u003e\\n    \u003c/div\u003e\\n\u003c/div\u003e\\n\";\ninsertBanner.style = \"#exponea-greyout {\\n  position: fixed;\\n  top: 0;\\n  left: 0;\\n  right: 0;\\n  bottom: 0;\\n  z-index: 2147482999;\\n  background-color: var(--greyout-color, rgba(0, 0, 0, 0.45));\\n}\\n\\n#exponea-greyout.is-inline {\\n  position: static;\\n  pointer-events: none;\\n  background-color: transparent;\\n}\\n\\n#exponea-greyout.no-greyout {\\n  pointer-events: none;\\n}\\n\\n.weblayer--box-subscription {\\n  display: flex;\\n  box-sizing: border-box;\\n  font-size: 1rem;\\n  line-height: normal;\\n  text-decoration: inherit;\\n  cursor: default;\\n  max-width: var(--box-width, 320px);\\n  max-height: 100vh;\\n  z-index: 2147483000;\\n  pointer-events: auto;\\n  width: var(--box-width, 320px);\\n  position: fixed;\\n  box-shadow: 0 0.25em 0.5em rgba(0, 0, 0, 0.4);\\n  border-radius: var(--box-border-radius, 8px);\\n  font-family: var(--font-family, Arial, Helvetica, sans-serif);\\n  background-color: var(--background-color, rgba(0, 0, 0, 0.2));\\n  background-image: var(--background-image, none);\\n  background-position: center center;\\n  background-repeat: no-repeat;\\n  background-size: cover;\\n  margin: var(--edge-offset, 10px);\\n}\\n\\n#exponea-greyout.is-inline .weblayer--box-subscription {\\n  position: relative;\\n  box-shadow: none;\\n}\\n\\n@media only screen and (max-width: 780px) {\\n  .weblayer--box-subscription {\\n    width: var(--box-width-mobile, 95%);\\n    margin: 0px;\\n  }\\n\\n  .weblayer--box-subscription.hide-image-mobile .image-surround {\\n    display: none;\\n  }\\n}\\n\\n.weblayer--box-subscription * {\\n  box-sizing: border-box;\\n  outline: none;\\n}\\n\\n.weblayer--box-subscription .inner {\\n  flex-wrap: nowrap;\\n  display: flex;\\n  width: 100%;\\n  margin: 0 auto;\\n  flex-direction: var(--image-direction, column);\\n  align-items: center;\\n  justify-content: center;\\n  padding: var(--inner-padding, 20px);\\n}\\n\\n.form-inner {\\n  padding: var(--inner-form-padding, 0px);\\n}\\n\\n.weblayer--box-subscription #exponea-form {\\n  width: 100%;\\n}\\n\\n.weblayer--box-subscription #exponea-form \u003e * {\\n  width: 100%;\\n}\\n\\n.weblayer--box-subscription p,\\n.weblayer--box-subscription h6 {\\n  text-align: var(--text-alignment, center);\\n}\\n\\n.weblayer--box-subscription .text.line-one {\\n  font-size: var(--text-line-one-size, 14px);\\n  font-weight: var(--text-line-one-weight, bold);\\n  line-height: 1.3;\\n  color: var(--text-line-one-color, #F84CAC);\\n  margin: 0;\\n  padding: 0 0 var(--text-line-one-spacing, 10px);\\n}\\n\\n.weblayer--box-subscription .heading {\\n  font-size: var(--heading-size, 14px);\\n  font-weight: var(--heading-weight, bold);\\n  line-height: 1.3;\\n  color: var(--heading-color, #FFFFFF);\\n  margin: 0;\\n  padding: 0 0 var(--heading-spacing, 10px);\\n}\\n\\n.weblayer--box-subscription .text.line-two {\\n  font-size: var(--main-text-size, 14px);\\n  font-weight: var(--main-text-weight, bold);\\n  line-height: 1.3;\\n  color: var(--main-text-color, #FFFFFF);\\n  margin: 0;\\n  padding: 0 0 var(--main-text-spacing, 10px);\\n}\\n\\n.weblayer--box-subscription .inner.step-one .conditions {\\n  width: 100%;\\n  line-height: 1.3;\\n  font-size: var(--conditions-size, 14px);\\n  font-weight: var(--conditions-weight, bold);\\n  color: var(--conditions-color, #FFFFFF);\\n  margin: 1.5em 0;\\n}\\n\\n.weblayer--box-subscription .inner.step-one .conditions \u003e .link {\\n  color: var(--conditions-link-color, #F84CAC);\\n  text-decoration: underline;\\n}\\n\\n.weblayer--box-subscription .inner.step-one .conditions \u003e .link:hover {\\n  filter: brightness(96%);\\n}\\n\\n.weblayer--box-subscription .inner.step-one .conditions \u003e .link:focus {\\n  outline: none;\\n}\\n\\n.weblayer--box-subscription .inner.step-two .heading {\\n  font-size: var(--thank-you-heading-size, 14px);\\n  font-weight: var(--thank-you-heading-weight, bold);\\n  line-height: 1.3;\\n  color: var(--thank-you-heading-color, #FFFFFF);\\n  margin: 0;\\n  padding: 0 0 var(--thank-you-heading-spacing, 10px);\\n}\\n\\n.weblayer--box-subscription .inner.step-two .text {\\n  font-size: var(--thank-you-message-size, 14px);\\n  font-weight: var(--thank-you-message-weight, bold);\\n  line-height: 1.3;\\n  color: var(--thank-you-message-color, #FFFFFF);\\n  margin: 0;\\n  padding: 0 0 var(--thank-you-message-spacing, 10px);\\n}\\n\\n.weblayer--box-subscription .image-surround {\\n  width: 100%;\\n}\\n\\n.weblayer--box-subscription .image-surround img {\\n  width: var(--image-width, 100%);\\n}\\n\\n.weblayer--box-subscription .image-surround img[src=\\\"\\\"] {\\n  display: none;\\n}\\n\\n.weblayer--box-subscription.hide-step-two-image .inner.step-two .image-surround {\\n  display: none;\\n}\\n\\n.input-label {\\n  display: var(--input-label-display, none);\\n  padding-bottom: 5px;\\n  font-size: var(--input-text-size, 14px);\\n  color: var(--main-text-color, #FFFFFF);\\n}\\n\\n#exponea-form fieldset {\\n  border: 0px;\\n  padding: 0px;\\n  margin: 0px 0px 10px;\\n}\\n\\n.weblayer--box-subscription #exponea-form input:not([type='checkbox']) {\\n  font-size: var(--input-text-size, 14px);\\n  font-weight: normal;\\n  text-align: left;\\n  line-height: 1.3;\\n  font-family: inherit;\\n  box-shadow: none;\\n  outline: none;\\n  width: 100%;\\n  min-height: auto;\\n  max-width: 100%;\\n  resize: vertical;\\n  margin: 0px;\\n  cursor: text;\\n  background-color: #FFFFFF;\\n  border-width: 1px;\\n  border-style: solid;\\n  border-color: var(--input-border-color, #FFFFFF);\\n  border-radius: var(--input-border-radius, 0px);\\n  padding: 0.5em 1em;\\n}\\n\\n.exponea-consents {\\n  display: flex;\\n  flex-direction: column;\\n  gap: 8px;\\n  margin: 1em 0 1em;\\n}\\n\\n.exponea-consents .fieldset {\\n  width: 100%;\\n  margin: 0;\\n}\\n\\n.exponea-consents .checkbox-label {\\n  width: 100%;\\n  display: flex;\\n  flex-direction: row;\\n  align-items: flex-start;\\n  justify-content: start;\\n  cursor: pointer;\\n}\\n\\n.exponea-consents .checkbox-label input {\\n  width: 18px !important;\\n  min-width: 18px;\\n  margin-top: 3px;\\n  cursor: pointer;\\n}\\n\\n.exponea-consents .consent-text {\\n  padding-left: 8px;\\n  font-size: var(--conditions-size, 14px);\\n  font-weight: var(--conditions-weight, bold);\\n  color: var(--conditions-color, #FFFFFF);\\n  line-height: 1.3;\\n  margin: 0;\\n  text-align: left;\\n}\\n\\n.exponea-consents .consent-link {\\n  color: var(--conditions-link-color, #F84CAC);\\n  text-decoration: underline;\\n}\\n\\n.exponea-consents .consent-link:hover {\\n  filter: brightness(96%);\\n}\\n\\n.weblayer--box-subscription .button {\\n  width: 100%;\\n  font-weight: bold;\\n  line-height: 1.3;\\n  font-family: inherit;\\n  border: none;\\n  text-decoration: none;\\n  margin: 0;\\n  user-select: none;\\n  outline: none;\\n  height: var(--button-height, 30px);\\n}\\n\\n.weblayer--box-subscription .button.submit,\\n.weblayer--box-subscription .step-two .button {\\n  border-style: solid;\\n  font-size: var(--button-text-size, 14px);\\n  color: var(--button-text-color, #FFFFFF);\\n  background: var(--button-background-color, #59CE72);\\n  border-width: var(--button-border-width, 0px);\\n  border-color: var(--button-border-color, rgba(0, 0, 0, 0));\\n  border-radius: var(--button-border-radius, 0px);\\n  cursor: pointer;\\n}\\n\\n.weblayer--box-subscription .step-one .button.close {\\n  border-style: solid;\\n  font-size: var(--no-thanks-text-size, 12px);\\n  color: var(--no-thanks-text-color, #FFFFFF);\\n  background: var(--no-thanks-background-color, rgba(0, 0, 0, 0));\\n  border-width: var(--no-thanks-border-width, 0px);\\n  border-color: var(--no-thanks-border-color, rgba(0, 0, 0, 0));\\n  border-radius: var(--no-thanks-border-radius, 0px);\\n  cursor: pointer;\\n  margin-top: 1em;\\n}\\n\\n.weblayer--box-subscription .button:hover {\\n  filter: brightness(105%);\\n}\\n\\n.weblayer--box-subscription .button:focus {\\n  outline: none;\\n  filter: brightness(95%);\\n}\\n\\n.weblayer--box-subscription #exponea-voucher {\\n  font-size: var(--heading-size, 14px);\\n  font-weight: bold;\\n  line-height: 1.3;\\n  color: var(--heading-color, #FFFFFF);\\n  text-align: center;\\n  margin: 10px auto;\\n  display: flex;\\n  flex-direction: row;\\n  align-items: center;\\n  justify-content: center;\\n}\\n\\n.weblayer--box-subscription #exponea-voucher i {\\n  display: inline-flex;\\n  flex-direction: row;\\n  align-items: center;\\n  padding-left: 5px;\\n}\\n\\n.weblayer--box-subscription .close-icon {\\n  font-size: inherit;\\n  line-height: 1px;\\n  color: transparent;\\n  background-color: transparent;\\n  top: 0;\\n  right: 0;\\n  padding: 0.5em;\\n  border: 0;\\n  position: absolute;\\n  z-index: 2147483001;\\n}\\n\\n.weblayer--box-subscription \u003e .close:hover {\\n  cursor: pointer;\\n}\\n\\n.weblayer--box-subscription \u003e .close:focus {\\n  outline: none;\\n}\\n\\n.weblayer--box-subscription.enter-fade {\\n  animation: fadeIn ease-in 0.2s;\\n}\\n\\n@keyframes fadeIn {\\n  0% { opacity: 0; }\\n  100% { opacity: 1; }\\n}\\n\\n.weblayer--box-subscription.vertical-top.horizontal-left.enter-slide-left { animation: slideInLeftVT cubic-bezier(0.56, 0.01, 0.42, 1.04) 0.75s; }\\n@keyframes slideInLeftVT { 0% { opacity: 0; transform: translateX(-100%); } 100% { opacity: 1; transform: translateX(0); } }\\n.weblayer--box-subscription.vertical-top.horizontal-center.enter-slide-up { animation: slideInUpVT cubic-bezier(0.56, 0.01, 0.42, 1.04) 0.75s; }\\n@keyframes slideInUpVT { 0% { opacity: 0; transform: translate(-50%, -100%); } 100% { opacity: 1; transform: translate(-50%, 0); } }\\n.weblayer--box-subscription.vertical-top.horizontal-right.enter-slide-right { animation: slideInRightVT cubic-bezier(0.56, 0.01, 0.42, 1.04) 0.75s; }\\n@keyframes slideInRightVT { 0% { opacity: 0; transform: translateX(100%); } 100% { opacity: 1; transform: translateX(0); } }\\n.weblayer--box-subscription.vertical-center.horizontal-left.enter-slide-left { animation: slideInLeftVC cubic-bezier(0.56, 0.01, 0.42, 1.04) 0.75s; }\\n@keyframes slideInLeftVC { 0% { opacity: 0; transform: translate(-100%, -50%); } 100% { opacity: 1; transform: translate(0, -50%); } }\\n.weblayer--box-subscription.vertical-center.horizontal-center.enter-slide-up { animation: slideInTopVC cubic-bezier(0.56, 0.01, 0.42, 1.04) 0.75s; }\\n@keyframes slideInTopVC { 0% { opacity: 0; transform: translate(-50%, -100%); } 100% { opacity: 1; transform: translate(-50%, -50%); } }\\n.weblayer--box-subscription.vertical-center.horizontal-right.enter-slide-right { animation: slideInRightVC cubic-bezier(0.56, 0.01, 0.42, 1.04) 0.75s; }\\n@keyframes slideInRightVC { 0% { opacity: 0; transform: translate(100%, -50%); } 100% { opacity: 1; transform: translate(0, -50%); } }\\n.weblayer--box-subscription.vertical-bottom.horizontal-left.enter-slide-left { animation: slideInLeftVB cubic-bezier(0.56, 0.01, 0.42, 1.04) 0.75s; }\\n@keyframes slideInLeftVB { 0% { opacity: 0; transform: translateX(-100%); } 100% { opacity: 1; transform: translateX(0); } }\\n.weblayer--box-subscription.vertical-bottom.horizontal-center.enter-slide-down { animation: slideInDownVB cubic-bezier(0.56, 0.01, 0.42, 1.04) 0.75s; }\\n@keyframes slideInDownVB { 0% { opacity: 0; transform: translate(-50%, 100%); } 100% { opacity: 1; transform: translate(-50%, 0); } }\\n.weblayer--box-subscription.vertical-bottom.horizontal-right.enter-slide-right { animation: slideInRightVB cubic-bezier(0.56, 0.01, 0.42, 1.04) 0.25s; }\\n@keyframes slideInRightVB { 0% { opacity: 0; transform: translateX(100%); } 100% { opacity: 1; transform: translateX(0); } }\\n\\n.weblayer--box-subscription.horizontal-left { left: 0; }\\n.weblayer--box-subscription.horizontal-right { right: 0; }\\n.weblayer--box-subscription.horizontal-center { left: 50%; transform: translateX(-50%); }\\n.weblayer--box-subscription.vertical-top { top: 0; }\\n.weblayer--box-subscription.vertical-bottom { bottom: 0; }\\n.weblayer--box-subscription.vertical-center { top: 50%; transform: translateY(-50%); }\\n.weblayer--box-subscription.vertical-center.horizontal-center { transform: translate(-50%, -50%); }\\n\";\ninsertBanner.script = function() { // DEFAULT SETUP PARAMS\nvar PARAM_source = \"InPost Competition\";\nvar PARAM_newcastleConsentCategories = \"News,Tickets,Events,Store,Hospitality,WomensTeam\";\nvar PARAM_InPostConsentPropertyName = \"InPost_hydrate_marketing_consent\";\nvar PARAM_identifyIdName = \"email_id\";\n\n// CTA PARAMS\nvar PARAM_enableNoThanks = \"no\";\nvar PARAM_enableThankYou = \"no\";\n\n// POSITION PARAMS\nvar PARAM_isInline = \"true\";\nvar PARAM_parentElement = \"section.v3-headerBlock__headerBlock\";\nvar PARAM_insertPosition = \"after\";\nvar PARAM_positionVertical = \"Bottom\";\nvar PARAM_positionHorizontal = \"Right\";\nvar PARAM_enterAnimation = \"None\";\n\n// LAYOUT PARAMS\nvar PARAM_boxWidth = \"100%\";\nvar PARAM_boxWidthMobile = \"100%\";\nvar PARAM_edgeOffset = \"0px\";\nvar PARAM_innerPadding = \"0px\";\nvar PARAM_innerFormPadding = \"20px\";\nvar PARAM_boxBorderRadius = \"0px\";\nvar PARAM_image = \"\";\nvar PARAM_imageWidth = \"100%\";\nvar PARAM_imagePosition = \"Vertical\";\nvar PARAM_imageStepTwo = \"false\";\nvar PARAM_imageMobile = \"false\";\n\n// BACKGROUND PARAMS\nvar PARAM_backgroundColor = \"#000000\";\nvar PARAM_backgroundImage = \"\";\nvar PARAM_greyout = \"rgba(0,0,0,0.29)\";\n\n// TRIGGERING PARAMS\nvar PARAM_showAfter = parseInt(\"0\", 10);\nvar PARAM_removeAfter = parseInt(\"0\", 10);\nvar PARAM_trigger = \"On entry\";\nvar PARAM_inactivityDelay = parseInt(\"0\", 10);\nvar PARAM_scrollSpeedThreshold = parseFloat(\"0\");\nvar PARAM_scrollDistanceThreshold = parseInt(\"0\", 10);\nvar PARAM_triggerAfterPage = 0;\n\n// COPYWRITING PARAMS\nvar PARAM_textLineOne = \"\";\nvar PARAM_heading = \"Win two hospitality tickets with InPost\";\nvar PARAM_textLineTwo = \"InPost are giving one lucky Mags member the chance to win a pair of Wings hospitality tickets for Newcastle United v Arsenal.\";\nvar PARAM_buttonText = \"Enter now\";\nvar PARAM_noThanksText = \"No Thanks\";\nvar PARAM_conditionsText = \"The competition will run from 11am Wednesday 21 October until 5pm Sunday 25 October. One winner will receive two Wings hospitality Tickets to the Newcastle United v Arsenal match on Saturday 21st November. Full Terms and Conditions can be found\";\nvar PARAM_conditionsLink = \"https://www.newcastleunited.com/en/privacy-policy\";\nvar PARAM_conditionsLinkText = \"here.\";\nvar PARAM_firstNameLabel = \"First Name\";\nvar PARAM_lastNameLabel = \"Last Name\";\nvar PARAM_emailInputPlaceholder = \"Email\";\nvar PARAM_invalidEmailMessage = \"Enter a valid email\";\nvar PARAM_thankYouHeading = \"You're in!\";\nvar PARAM_thankYouMessage = \"Thanks for entering and good luck. We'll be in touch if you're the lucky winner.\";\nvar PARAM_thankYouButtonText = \"Continue Shopping\";\nvar PARAM_consentNewcastleText = \"I want to receive updates from Newcastle United about news, tickets, retail offers and competitions. Please see Newcastle United's\";\nvar PARAM_consentNewcastleLinkText = \"privacy policy\";\nvar PARAM_consentInPostText = \"I want to receive marketing from InPost and understand that Newcastle United will share my details with them. Please see InPost's\";\nvar PARAM_consentInPostLinkText = \"privacy policy\";\n\n// TYPOGRAPHY PARAMS\nvar PARAM_textAlignment = \"center\";\nvar PARAM_textLineOneSize = \"16px\";\nvar PARAM_textLineOneWeight = \"normal\";\nvar PARAM_textLineOneSpacing = \"0px\";\nvar PARAM_textLineOneColor = \"#00ffaa\";\nvar PARAM_headingSize = \"20px\";\nvar PARAM_headingWeight = \"bold\";\nvar PARAM_headingSpacing = \"5px\";\nvar PARAM_headingColor = \"#ffffff\";\nvar PARAM_mainTextSize = \"16px\";\nvar PARAM_mainTextWeight = \"normal\";\nvar PARAM_mainTextSpacing = \"20px\";\nvar PARAM_mainTextColor = \"#FFFFFF\";\nvar PARAM_conditionsSize = \"16px\";\nvar PARAM_conditionsWeight = \"normal\";\nvar PARAM_conditionsColor = \"#ffffff\";\nvar PARAM_conditionsLinkColor = \"#ffffff\";\nvar PARAM_thankYouHeadingSize = \"22px\";\nvar PARAM_thankYouHeadingWeight = \"bold\";\nvar PARAM_thankYouHeadingColor = \"#ffffff\";\nvar PARAM_thankYouHeadingSpacing = \"10px\";\nvar PARAM_thankYouMessageSize = \"16px\";\nvar PARAM_thankYouMessageWeight = \"normal\";\nvar PARAM_thankYouMessageColor = \"#ffffff\";\nvar PARAM_thankYouMessageSpacing = \"10px\";\nvar PARAM_fontType = \"inherit\";\n\n// FORM STYLING PARAMS\nvar PARAM_showLabels = \"no\";\nvar PARAM_inputTextSize = \"14px\";\nvar PARAM_inputBorderColor = \"rgba(0,0,0,0)\";\nvar PARAM_inputBorderRadius = \"0px\";\nvar PARAM_buttonHeight = \"40px\";\nvar PARAM_buttonTextSize = \"14px\";\nvar PARAM_buttonTextColor = \"#ffffff\";\nvar PARAM_buttonBackgroundColor = \"#0000ff\";\nvar PARAM_buttonBorderWidth = \"0px\";\nvar PARAM_buttonBorderColor = \"rgba(255,255,255,0)\";\nvar PARAM_buttonBorderRadius = \"20px\";\nvar PARAM_noThanksTextSize = \"12px\";\nvar PARAM_noThanksTextColor = \"#ffffff\";\nvar PARAM_noThanksBackgroundColor = \"rgba(255,255,255,0)\";\nvar PARAM_noThanksBorderWidth = \"0px\";\nvar PARAM_noThanksBorderColor = \"#ffffff\";\nvar PARAM_noThanksBorderRadius = \"0px\";\nvar PARAM_closeIconColor = \"#000000\";\nvar PARAM_closeIconSize = parseInt(\"16\", 10);\n\n// ADVANCED PARAMS\nvar PARAM_enableVoucherCopyIcon = \"false\";\nvar PARAM_thankYouAutoHideDelay = parseInt(\"0\", 10);\nvar PARAM_nextWeblayerId = \"\";\nvar PARAM_isFinalWeblayer = \"No\";\nvar PARAM_disableShowEvent = \"false\";\nvar PARAM_voucherCode = \"\";\n\nvar CONFIG = {\n    setup: {\n        signupSource: PARAM_source,\n        newcastleConsentCategories: PARAM_newcastleConsentCategories,\n        InPostConsentPropertyName: PARAM_InPostConsentPropertyName,\n        identifyIdsToUpdate: PARAM_identifyIdName\n    },\n    position: {\n        displayInline: PARAM_isInline === 'true',\n        parentElement: PARAM_parentElement,\n        insertPosition: PARAM_insertPosition,\n        vertical: PARAM_positionVertical,\n        horizontal: PARAM_positionHorizontal,\n        enterAnimation: PARAM_enterAnimation\n    },\n    layout: {\n        boxWidth: PARAM_boxWidth,\n        boxWidthMobile: PARAM_boxWidthMobile,\n        edgeOffset: PARAM_edgeOffset,\n        innerOffset: PARAM_innerPadding,\n        formOffset: PARAM_innerFormPadding,\n        boxBorderRadius: PARAM_boxBorderRadius,\n        image: PARAM_image,\n        imageWidth: PARAM_imageWidth,\n        imagePosition: PARAM_imagePosition,\n        showImageOnThankYou: PARAM_imageStepTwo === 'true',\n        showImageOnMobile: PARAM_imageMobile === 'true'\n    },\n    background: {\n        backgroundColor: PARAM_backgroundColor,\n        backgroundImage: PARAM_backgroundImage,\n        backgroundOverlayColour: PARAM_greyout\n    },\n    copywriting: {\n        textLineOne: PARAM_textLineOne,\n        heading: PARAM_heading,\n        textLineTwo: PARAM_textLineTwo,\n        firstNameLabel: PARAM_firstNameLabel,\n        lastNameLabel: PARAM_lastNameLabel,\n        emailInputPlaceholder: PARAM_emailInputPlaceholder,\n        buttonText: PARAM_buttonText,\n        noThanksText: PARAM_noThanksText,\n        conditionsText: PARAM_conditionsText,\n        conditionsLink: PARAM_conditionsLink,\n        conditionsLinkText: PARAM_conditionsLinkText,\n        invalidEmailMessage: PARAM_invalidEmailMessage,\n        thankYouHeading: PARAM_thankYouHeading,\n        thankYouMessage: PARAM_thankYouMessage,\n        thankYouButtonText: PARAM_thankYouButtonText,\n        voucherCode: PARAM_voucherCode,\n        newcastleConsentText: PARAM_consentNewcastleText,\n        newcastleConsentLinkText: PARAM_consentNewcastleLinkText,\n        InPostConsentText: PARAM_consentInPostText,\n        InPostConsentLinkText: PARAM_consentInPostLinkText\n    },\n    typography: {\n        textAlignment: PARAM_textAlignment,\n        textLineOneSize: PARAM_textLineOneSize,\n        textLineOneWeight: PARAM_textLineOneWeight,\n        textLineOneBottomSpacing: PARAM_textLineOneSpacing,\n        textLineOneColor: PARAM_textLineOneColor,\n        headingSize: PARAM_headingSize,\n        headingWeight: PARAM_headingWeight,\n        headingBottomSpacing: PARAM_headingSpacing,\n        headingColor: PARAM_headingColor,\n        mainTextSize: PARAM_mainTextSize,\n        mainTextWeight: PARAM_mainTextWeight,\n        mainTextBottomSpacing: PARAM_mainTextSpacing,\n        mainTextColor: PARAM_mainTextColor,\n        conditionsSize: PARAM_conditionsSize,\n        conditionsWeight: PARAM_conditionsWeight,\n        conditionsColor: PARAM_conditionsColor,\n        conditionsLinkColor: PARAM_conditionsLinkColor,\n        thankYouHeadingSize: PARAM_thankYouHeadingSize,\n        thankYouHeadingWeight: PARAM_thankYouHeadingWeight,\n        thankYouHeadingColor: PARAM_thankYouHeadingColor,\n        thankYouHeadingSpacing: PARAM_thankYouHeadingSpacing,\n        thankYouMessageSize: PARAM_thankYouMessageSize,\n        thankYouMessageWeight: PARAM_thankYouMessageWeight,\n        thankYouMessageColor: PARAM_thankYouMessageColor,\n        thankYouMessageSpacing: PARAM_thankYouMessageSpacing,\n        font: PARAM_fontType\n    },\n    formStyling: {\n        showInputLabels: PARAM_showLabels,\n        inputTextSize: PARAM_inputTextSize,\n        inputBorderColor: PARAM_inputBorderColor,\n        inputBorderRadius: PARAM_inputBorderRadius,\n        buttonHeight: PARAM_buttonHeight,\n        submitButtonTextSize: PARAM_buttonTextSize,\n        submitButtonTextColor: PARAM_buttonTextColor,\n        submitButtonBackgroundColor: PARAM_buttonBackgroundColor,\n        submitButtonBorderWidth: PARAM_buttonBorderWidth,\n        submitButtonBorderColor: PARAM_buttonBorderColor,\n        submitButtonBorderRadius: PARAM_buttonBorderRadius,\n        noThanksTextSize: PARAM_noThanksTextSize,\n        noThanksTextColor: PARAM_noThanksTextColor,\n        noThanksBackgroundColor: PARAM_noThanksBackgroundColor,\n        noThanksBorderWidth: PARAM_noThanksBorderWidth,\n        noThanksBorderColor: PARAM_noThanksBorderColor,\n        noThanksBorderRadius: PARAM_noThanksBorderRadius,\n        closeIconSize: PARAM_closeIconSize,\n        closeIconColor: PARAM_closeIconColor\n    },\n    formContents: {\n        enableNoThanksButton: PARAM_enableNoThanks,\n        enableThankYouButton: PARAM_enableThankYou\n    },\n    triggering: {\n        showAfter: PARAM_showAfter,\n        removeAfter: PARAM_removeAfter,\n        trigger: PARAM_trigger,\n        exitIntentInactivityDelay: PARAM_inactivityDelay,\n        exitIntentScrollSpeedThreshold: PARAM_scrollSpeedThreshold,\n        exitIntentScrollDistanceThreshold: PARAM_scrollDistanceThreshold,\n        triggerAfterPage: PARAM_triggerAfterPage\n    },\n    advanced: {\n        enableVoucherCopyIcon: PARAM_enableVoucherCopyIcon === 'true',\n        autoHideDelay: PARAM_thankYouAutoHideDelay,\n        nextStepWeblayerID: PARAM_nextWeblayerId,\n        forceShowThankYouPage: PARAM_isFinalWeblayer,\n        disableShowEventTracking: PARAM_disableShowEvent === 'true'\n    }\n};\n\nvar self = this;\nvar bannerSemiId = Math.random().toString(36).substring(5);\nvar positions = {\n    before: 'beforebegin',\n    'first child': 'afterbegin',\n    'last child': 'beforeend',\n    after: 'afterend'\n};\nvar insertPosition = positions[CONFIG.position.insertPosition] || 'afterbegin';\n\nwindow['__exp_triggered-' + bannerSemiId] = false;\n\nif (self.inPreview) {\n    CONFIG.triggering.showAfter = 0;\n    CONFIG.position.parentElement = 'body';\n    CONFIG.triggering.trigger = 'On entry';\n}\n\nfunction registerStartTrigger() {\n    if (CONFIG.triggering.trigger === 'On exit') {\n        setTimeout(function () {\n            desktopExit();\n            inactivityTime();\n            if (window.matchMedia('(max-width: 768px)').matches) {\n                detectFastScrollUp(CONFIG.triggering.exitIntentScrollSpeedThreshold, CONFIG.triggering.exitIntentScrollDistanceThreshold, function() {\n                    if (!window['__exp_triggered-' + bannerSemiId]) {\n                        window['__exp_triggered-' + bannerSemiId] = true;\n                        scheduleShowBanner();\n                    }\n                });\n            }\n        }, CONFIG.triggering.showAfter);\n    } else if (CONFIG.triggering.trigger === 'On scroll') {\n        window.addEventListener('scroll', scheduleShowBanner);\n    } else {\n        scheduleShowBanner();\n    }\n}\n\nfunction scheduleShowBanner() {\n    window.removeEventListener('scroll', scheduleShowBanner);\n    setTimeout(function() {\n        if (!CONFIG.advanced.disableShowEventTracking) {\n            trackEvent('show', false);\n        }\n        requestAnimationFrame(createBanner);\n        if (CONFIG.triggering.removeAfter \u003e 0) {\n            setTimeout(removeBanner, CONFIG.triggering.removeAfter);\n        }\n    }, CONFIG.triggering.showAfter);\n}\n\nfunction createBanner() {\n    var parentElement = document.querySelector(CONFIG.position.parentElement);\n    parentElement.insertAdjacentHTML('afterbegin', self.html);\n    self.banner = parentElement.firstElementChild;\n\n    applyConfigToBanner(self.banner);\n\n    self.banner.querySelectorAll('.close').forEach(function(input) {\n        input.onclick = handleCloseButtonClick;\n    });\n\n    if (CONFIG.formContents.enableNoThanksButton === 'no' \u0026\u0026 self.banner.querySelector('#noThanksButton')) {\n        self.banner.querySelector('#noThanksButton').remove();\n    }\n    if (CONFIG.formContents.enableThankYouButton === 'no' \u0026\u0026 self.banner.querySelector('#thankYouButton')) {\n        self.banner.querySelector('#thankYouButton').remove();\n    }\n\n    self.banner.querySelector('.banner-item').className += ' ' + getPositionAndAnimationClasses();\n    self.banner.insertAdjacentHTML('afterbegin', '\u003cstyle\u003e' + self.style + '\u003c/style\u003e');\n\n    var links = self.banner.querySelectorAll('a');\n    for (var i = 0; i \u003c links.length; i++) {\n        trackLink(links[i], 'click', true);\n    }\n\n    if (window.getComputedStyle(self.banner).getPropertyValue('background-color').replaceAll(' ', '').split(',')[3] === '0)') {\n        self.banner.classList.add('no-greyout');\n    } else {\n        self.banner.onclick = handleCloseBackgroundClick;\n    }\n\n    if (CONFIG.advanced.forceShowThankYouPage === 'Yes') {\n        showThankYou(self.banner);\n    }\n\n    initializeForm(self.banner);\n    attachBannerToDom(self.banner);\n}\n\nfunction applyConfigToBanner(banner) {\n    var root = banner;\n    var box = banner.querySelector('.weblayer--box-subscription');\n    var closeSvg = banner.querySelector('.close-icon-svg');\n    var closePaths = banner.querySelectorAll('.close-icon-svg path');\n\n    setCssVar(root, '--box-width', CONFIG.layout.boxWidth);\n    setCssVar(root, '--box-width-mobile', CONFIG.layout.boxWidthMobile);\n    setCssVar(root, '--edge-offset', CONFIG.layout.edgeOffset);\n    setCssVar(root, '--inner-padding', CONFIG.layout.innerOffset);\n    setCssVar(root, '--inner-form-padding', CONFIG.layout.formOffset);\n    setCssVar(root, '--box-border-radius', CONFIG.layout.boxBorderRadius);\n    setCssVar(root, '--greyout-color', CONFIG.background.backgroundOverlayColour);\n    setCssVar(root, '--background-color', CONFIG.background.backgroundColor);\n    setCssVar(root, '--background-image', CONFIG.background.backgroundImage ? 'url(\"' + CONFIG.background.backgroundImage + '\")' : 'none');\n    setCssVar(root, '--image-width', CONFIG.layout.imageWidth);\n    setCssVar(root, '--image-direction', CONFIG.layout.imagePosition === 'Horizontal' ? 'row' : 'column');\n    setCssVar(root, '--font-family', CONFIG.typography.font);\n    setCssVar(root, '--text-alignment', CONFIG.typography.textAlignment);\n    setCssVar(root, '--text-line-one-size', CONFIG.typography.textLineOneSize);\n    setCssVar(root, '--text-line-one-weight', CONFIG.typography.textLineOneWeight);\n    setCssVar(root, '--text-line-one-spacing', CONFIG.typography.textLineOneBottomSpacing);\n    setCssVar(root, '--text-line-one-color', CONFIG.typography.textLineOneColor);\n    setCssVar(root, '--heading-size', CONFIG.typography.headingSize);\n    setCssVar(root, '--heading-weight', CONFIG.typography.headingWeight);\n    setCssVar(root, '--heading-spacing', CONFIG.typography.headingBottomSpacing);\n    setCssVar(root, '--heading-color', CONFIG.typography.headingColor);\n    setCssVar(root, '--main-text-size', CONFIG.typography.mainTextSize);\n    setCssVar(root, '--main-text-weight', CONFIG.typography.mainTextWeight);\n    setCssVar(root, '--main-text-spacing', CONFIG.typography.mainTextBottomSpacing);\n    setCssVar(root, '--main-text-color', CONFIG.typography.mainTextColor);\n    setCssVar(root, '--conditions-size', CONFIG.typography.conditionsSize);\n    setCssVar(root, '--conditions-weight', CONFIG.typography.conditionsWeight);\n    setCssVar(root, '--conditions-color', CONFIG.typography.conditionsColor);\n    setCssVar(root, '--conditions-link-color', CONFIG.typography.conditionsLinkColor);\n    setCssVar(root, '--thank-you-heading-size', CONFIG.typography.thankYouHeadingSize);\n    setCssVar(root, '--thank-you-heading-weight', CONFIG.typography.thankYouHeadingWeight);\n    setCssVar(root, '--thank-you-heading-color', CONFIG.typography.thankYouHeadingColor);\n    setCssVar(root, '--thank-you-heading-spacing', CONFIG.typography.thankYouHeadingSpacing);\n    setCssVar(root, '--thank-you-message-size', CONFIG.typography.thankYouMessageSize);\n    setCssVar(root, '--thank-you-message-weight', CONFIG.typography.thankYouMessageWeight);\n    setCssVar(root, '--thank-you-message-color', CONFIG.typography.thankYouMessageColor);\n    setCssVar(root, '--thank-you-message-spacing', CONFIG.typography.thankYouMessageSpacing);\n    setCssVar(root, '--input-label-display', CONFIG.formStyling.showInputLabels === 'yes' ? 'block' : 'none');\n    setCssVar(root, '--input-text-size', CONFIG.formStyling.inputTextSize);\n    setCssVar(root, '--input-border-color', CONFIG.formStyling.inputBorderColor);\n    setCssVar(root, '--input-border-radius', CONFIG.formStyling.inputBorderRadius);\n    setCssVar(root, '--button-height', CONFIG.formStyling.buttonHeight);\n    setCssVar(root, '--button-text-size', CONFIG.formStyling.submitButtonTextSize);\n    setCssVar(root, '--button-text-color', CONFIG.formStyling.submitButtonTextColor);\n    setCssVar(root, '--button-background-color', CONFIG.formStyling.submitButtonBackgroundColor);\n    setCssVar(root, '--button-border-width', CONFIG.formStyling.submitButtonBorderWidth);\n    setCssVar(root, '--button-border-color', CONFIG.formStyling.submitButtonBorderColor);\n    setCssVar(root, '--button-border-radius', CONFIG.formStyling.submitButtonBorderRadius);\n    setCssVar(root, '--no-thanks-text-size', CONFIG.formStyling.noThanksTextSize);\n    setCssVar(root, '--no-thanks-text-color', CONFIG.formStyling.noThanksTextColor);\n    setCssVar(root, '--no-thanks-background-color', CONFIG.formStyling.noThanksBackgroundColor);\n    setCssVar(root, '--no-thanks-border-width', CONFIG.formStyling.noThanksBorderWidth);\n    setCssVar(root, '--no-thanks-border-color', CONFIG.formStyling.noThanksBorderColor);\n    setCssVar(root, '--no-thanks-border-radius', CONFIG.formStyling.noThanksBorderRadius);\n\n    setText(banner, '.text.line-one', CONFIG.copywriting.textLineOne);\n    setText(banner, '.heading', CONFIG.copywriting.heading);\n    setText(banner, '.text.line-two', CONFIG.copywriting.textLineTwo);\n    setText(banner, '.firstname-label', CONFIG.copywriting.firstNameLabel);\n    setText(banner, '.lastname-label', CONFIG.copywriting.lastNameLabel);\n    setText(banner, '.email-label', CONFIG.copywriting.emailInputPlaceholder);\n    setText(banner, '.button.submit', CONFIG.copywriting.buttonText);\n    setText(banner, '#noThanksButton', CONFIG.copywriting.noThanksText);\n    setText(banner, '.conditions-text', CONFIG.copywriting.conditionsText + ' ');\n    setText(banner, '.conditions-link', CONFIG.copywriting.conditionsLinkText);\n    setText(banner, '.thank-you-heading', CONFIG.copywriting.thankYouHeading);\n    setText(banner, '.thank-you-message', CONFIG.copywriting.thankYouMessage);\n    setText(banner, '#thankYouButton', CONFIG.copywriting.thankYouButtonText);\n    setText(banner, '#exponea-voucher', CONFIG.copywriting.voucherCode);\n    setText(banner, '.newcastle-consent-text', CONFIG.copywriting.newcastleConsentText + ' ');\n    setText(banner, '.newcastle-consent-link', CONFIG.copywriting.newcastleConsentLinkText);\n    setText(banner, '.InPost-consent-text', CONFIG.copywriting.InPostConsentText + ' ');\n    setText(banner, '.InPost-consent-link', CONFIG.copywriting.InPostConsentLinkText);\n\n    setAttribute(banner, '.first_name', 'placeholder', CONFIG.copywriting.firstNameLabel);\n    setAttribute(banner, '.last_name', 'placeholder', CONFIG.copywriting.lastNameLabel);\n    setAttribute(banner, '.email', 'placeholder', CONFIG.copywriting.emailInputPlaceholder);\n    setAttribute(banner, '.conditions-link', 'href', CONFIG.copywriting.conditionsLink);\n    setAttribute(banner, '.main-image', 'src', CONFIG.layout.image);\n    setAttribute(banner, '.thank-you-image', 'src', CONFIG.layout.image);\n\n    if (closeSvg) {\n        closeSvg.setAttribute('width', CONFIG.formStyling.closeIconSize);\n        closeSvg.setAttribute('height', CONFIG.formStyling.closeIconSize);\n    }\n    closePaths.forEach(function(path) {\n        path.setAttribute('stroke', CONFIG.formStyling.closeIconColor);\n    });\n\n    if (CONFIG.position.displayInline) {\n        banner.classList.add('is-inline');\n    }\n    if (!CONFIG.layout.showImageOnThankYou \u0026\u0026 box) {\n        box.classList.add('hide-step-two-image');\n    }\n    if (!CONFIG.layout.showImageOnMobile \u0026\u0026 box) {\n        box.classList.add('hide-image-mobile');\n    }\n}\n\nfunction setCssVar(element, name, value) {\n    element.style.setProperty(name, value);\n}\n\nfunction setText(parent, selector, value) {\n    var element = parent.querySelector(selector);\n    if (element) {\n        element.textContent = value || '';\n    }\n}\n\nfunction setAttribute(parent, selector, attribute, value) {\n    var element = parent.querySelector(selector);\n    if (element) {\n        element.setAttribute(attribute, value || '');\n    }\n}\n\nfunction attachBannerToDom(banner) {\n    var parentElement = document.querySelector(CONFIG.position.parentElement);\n    parentElement.insertAdjacentElement(insertPosition, banner);\n    self.banner = banner;\n}\n\nfunction removeBanner() {\n    if (self.banner \u0026\u0026 self.banner.parentNode) {\n        self.banner.parentNode.removeChild(self.banner);\n    }\n}\n\nfunction handleCloseButtonClick(event) {\n    removeBanner();\n    trackEvent('close', true);\n    event.preventDefault();\n    if (event.stopPropagation) {\n        event.stopPropagation();\n    } else {\n        event.cancelBubble = true;\n    }\n    return false;\n}\n\nfunction handleCloseBackgroundClick(event) {\n    if (event.target !== event.currentTarget) {\n        return;\n    }\n    removeBanner();\n    trackEvent('close', true);\n    event.preventDefault();\n    if (event.stopPropagation) {\n        event.stopPropagation();\n    } else {\n        event.cancelBubble = true;\n    }\n    return false;\n}\n\nfunction trackEvent(action, interactive) {\n    if (!self.sdk || !self.sdk.track) {\n        return;\n    }\n    self.sdk.track('banner', getEventProperties(action, interactive));\n}\n\nfunction trackLink(link, action, interactive) {\n    if (!self.sdk || !self.sdk.trackLink) {\n        return;\n    }\n    var eventData = getEventProperties(action, interactive);\n    eventData.link = link.href;\n    self.sdk.trackLink(link, 'banner', eventData);\n}\n\nfunction getEventProperties(action, interactive) {\n    return {\n        action: action,\n        banner_id: self.data.banner_id,\n        banner_name: self.data.banner_name,\n        banner_type: self.data.banner_type,\n        variant_id: self.data.variant_id,\n        variant_name: self.data.variant_name,\n        variant_origin: self.data.contextual_personalization != null ? 'contextual personalisation' : 'ABtest',\n        interaction: interactive !== false\n    };\n}\n\nfunction getPositionAndAnimationClasses() {\n    var verticalClass = {\n        Top: 'vertical-top',\n        Center: 'vertical-center',\n        Bottom: 'vertical-bottom'\n    }[CONFIG.position.vertical] || '';\n\n    var horizontalClass = {\n        Left: 'horizontal-left',\n        Center: 'horizontal-center',\n        Right: 'horizontal-right'\n    }[CONFIG.position.horizontal] || '';\n\n    var enterAnimationClass = {\n        'Fade in': 'enter-fade',\n        'Slide in': {\n            Top: {\n                Left: 'enter-slide-left',\n                Center: 'enter-slide-up',\n                Right: 'enter-slide-right'\n            }[CONFIG.position.horizontal],\n            Center: {\n                Left: 'enter-slide-left',\n                Center: 'enter-slide-up',\n                Right: 'enter-slide-right'\n            }[CONFIG.position.horizontal],\n            Bottom: {\n                Left: 'enter-slide-left',\n                Center: 'enter-slide-down',\n                Right: 'enter-slide-right'\n            }[CONFIG.position.horizontal]\n        }[CONFIG.position.vertical]\n    }[CONFIG.position.enterAnimation] || '';\n\n    return verticalClass + ' ' + horizontalClass + ' ' + enterAnimationClass;\n}\n\nfunction getExponeaTarget() {\n    if (window.exponea \u0026\u0026 window.exponea.configuration \u0026\u0026 window.exponea.configuration.target) {\n        return String(window.exponea.configuration.target).replace(/\\/$/, '');\n    }\n    if (self.sdk \u0026\u0026 self.sdk.configuration \u0026\u0026 self.sdk.configuration.target) {\n        return String(self.sdk.configuration.target).replace(/\\/$/, '');\n    }\n    return null;\n}\n\nfunction getExponeaToken() {\n    if (window.exponea \u0026\u0026 window.exponea.configuration \u0026\u0026 window.exponea.configuration.token) {\n        return window.exponea.configuration.token;\n    }\n    if (self.sdk \u0026\u0026 self.sdk.configuration \u0026\u0026 self.sdk.configuration.token) {\n        return self.sdk.configuration.token;\n    }\n    return null;\n}\n\nfunction getConfiguredEmailIdName() {\n    var idNames = stringToArray(CONFIG.setup.identifyIdsToUpdate);\n    return idNames[0] || 'email_id';\n}\n\nfunction sendFormViaBulk(eventProperties, customerProperties, customerIds) {\n    var target = getExponeaTarget();\n    var token = getExponeaToken();\n\n    if (!target || !token) {\n        console.error('Exponea target/token unavailable, form submit aborted.');\n        return Promise.reject(new Error('Missing Exponea configuration'));\n    }\n\n    var commands = [\n        {\n            name: 'crm/events',\n            data: {\n                customer_ids: customerIds,\n                company_id: token,\n                type: 'banner',\n                properties: eventProperties\n            }\n        }\n    ];\n\n    if (Object.keys(customerIds).length || Object.keys(customerProperties).length) {\n        commands.push({\n            name: 'crm/customers',\n            data: {\n                customer_ids: customerIds,\n                company_id: token,\n                properties: customerProperties\n            }\n        });\n    }\n\n    var payload = {\n        sdk: 'js-client',\n        sdk_snippet_version: self.sdk \u0026\u0026 self.sdk.snippetVersion ? self.sdk.snippetVersion : undefined,\n        commands: commands\n    };\n\n    return fetch(target + '/bulk', {\n        method: 'POST',\n        headers: {\n            'Content-Type': 'application/json'\n        },\n        body: JSON.stringify(payload)\n    }).then(function(response) {\n        if (!response.ok) {\n            return response.text().then(function(text) {\n                throw new Error('Bulk submit failed: ' + response.status + ' ' + response.statusText + ' :: ' + text);\n            });\n        }\n        return response;\n    }).catch(function(error) {\n        console.error('Error sending form via /bulk:', error);\n        throw error;\n    });\n}\n\nfunction initializeForm(banner) {\n    var emailInput = banner.querySelector('input[name=\"email\"]') || undefined;\n    var firstNameInput = banner.querySelector('input[name=\"first_name\"]') || undefined;\n    var lastNameInput = banner.querySelector('input[name=\"last_name\"]') || undefined;\n    var newcastleConsentInput = banner.querySelector('input[name=\"consent_newcastle\"]') || undefined;\n    var InPostConsentInput = banner.querySelector('input[name=\"consent_InPost\"]') || undefined;\n\n    if (typeof emailInput !== 'undefined') {\n        emailInput.oninput = function() {\n            toggleInvalidState(false, banner, emailInput);\n        };\n    }\n\n    var form = banner.querySelector('#exponea-form');\n\n    form.onsubmit = function(event) {\n        event.preventDefault();\n\n        var email = String((emailInput \u0026\u0026 emailInput.value) || '').trim().toLowerCase();\n        if (!validateEmail(email)) {\n            toggleInvalidState(true, banner, emailInput, CONFIG.copywriting.invalidEmailMessage);\n            return false;\n        }\n\n        var firstName = String((firstNameInput \u0026\u0026 firstNameInput.value) || '').trim();\n        var lastName = String((lastNameInput \u0026\u0026 lastNameInput.value) || '').trim();\n        var newcastleConsent = !!(newcastleConsentInput \u0026\u0026 newcastleConsentInput.checked);\n        var InPostConsent = !!(InPostConsentInput \u0026\u0026 InPostConsentInput.checked);\n\n        var emailIdName = getConfiguredEmailIdName();\n        var customerIds = {};\n        customerIds[emailIdName] = email;\n\n        var eventProperties = getEventProperties('subscribe', true);\n        eventProperties.sign_up_source = CONFIG.setup.signupSource || self.data.banner_name;\n        eventProperties.email = email;\n        eventProperties.email_submitted = true;\n\n        if (firstName) {\n            eventProperties.first_name = firstName;\n        }\n        if (lastName) {\n            eventProperties.last_name = lastName;\n        }\n\n        // Newcastle tick box only: feeds consent_category so the existing\n        // consent Scenario (same pattern as home/away kit) creates the\n        // real consent event.\n        var newcastleCategories = stringToArray(CONFIG.setup.newcastleConsentCategories);\n        if (newcastleConsent \u0026\u0026 newcastleCategories.length) {\n            eventProperties.consent_category = newcastleCategories;\n        }\n        \n        eventProperties.newcastle_marketing_opt_in = newcastleConsent;\n\n        // InPost tick box: identification/export only, no consent event.\n        eventProperties.InPost_marketing_opt_in = InPostConsent;\n\n        var customerProperties = {\n            email: email\n        };\n        customerProperties[emailIdName] = email;\n        if (firstName) {\n            customerProperties.first_name = firstName;\n        }\n        if (lastName) {\n            customerProperties.last_name = lastName;\n        }\n        if (InPostConsent) {\n            customerProperties[CONFIG.setup.InPostConsentPropertyName || 'InPost_hydrate_marketing_consent'] = true;\n        }\n\n        var submitButton = form.querySelector('button[type=\"submit\"]');\n        if (submitButton) {\n            submitButton.disabled = true;\n        }\n\n        sendFormViaBulk(eventProperties, customerProperties, customerIds)\n            .then(function() {\n                if (CONFIG.advanced.nextStepWeblayerID \u0026\u0026 CONFIG.advanced.nextStepWeblayerID !== 'None') {\n                    if (self.sdk \u0026\u0026 self.sdk.showBanner) {\n                        self.sdk.showBanner(CONFIG.advanced.nextStepWeblayerID, {}, true, function() {\n                            removeBanner();\n                        });\n                    } else {\n                        showThankYou(banner);\n                    }\n                } else {\n                    showThankYou(banner);\n                }\n            })\n            .catch(function(error) {\n                console.error('Bulk submit failed', error);\n            })\n            .finally(function() {\n                if (submitButton) {\n                    submitButton.disabled = false;\n                }\n            });\n\n        return false;\n    };\n}\n\nfunction showThankYou(banner) {\n    var stepOne = banner.querySelector('.step-one');\n    var stepTwo = banner.querySelector('.step-two');\n    stepOne.style.display = 'none';\n    stepTwo.style.display = 'block';\n\n    var autoHideDelay = CONFIG.advanced.autoHideDelay === 0 ? 999999 : CONFIG.advanced.autoHideDelay;\n\n    if (CONFIG.advanced.enableVoucherCopyIcon) {\n        var textDisplay = banner.querySelector('.step-two #exponea-voucher');\n        if (!textDisplay || !textDisplay.textContent.trim()) {\n            setTimeout(removeBanner, autoHideDelay);\n            return;\n        }\n        var copyIcon = document.createElement('i');\n        copyIcon.innerHTML = '\u003c?xml version=\"1.0\" ?\u003e\u003csvg class=\"feather feather-copy\" fill=\"none\" height=\"20\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" viewBox=\"0 0 24 24\" width=\"20\" xmlns=\"http://www.w3.org/2000/svg\"\u003e\u003crect height=\"13\" rx=\"2\" ry=\"2\" width=\"13\" x=\"9\" y=\"9\"/\u003e\u003cpath d=\"M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1\"/\u003e\u003c/svg\u003e';\n        textDisplay.appendChild(copyIcon);\n        banner.querySelector('#exponea-voucher').addEventListener('click', function(e) {\n            e.preventDefault();\n            copyTextToClipboard(banner.querySelector('#exponea-voucher').textContent);\n            copyIcon.innerHTML = '\u003c?xml version=\"1.0\" ?\u003e\u003csvg class=\"feather feather-check\" fill=\"none\" height=\"20\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" viewBox=\"0 0 24 24\" width=\"20\" xmlns=\"http://www.w3.org/2000/svg\"\u003e\u003cpolyline points=\"20 6 9 17 4 12\"/\u003e\u003c/svg\u003e';\n            window.setTimeout(function() {\n                copyIcon.innerHTML = '\u003c?xml version=\"1.0\" ?\u003e\u003csvg class=\"feather feather-copy\" fill=\"none\" height=\"20\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" viewBox=\"0 0 24 24\" width=\"20\" xmlns=\"http://www.w3.org/2000/svg\"\u003e\u003crect height=\"13\" rx=\"2\" ry=\"2\" width=\"13\" x=\"9\" y=\"9\"/\u003e\u003cpath d=\"M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1\"/\u003e\u003c/svg\u003e';\n            }, 1500);\n        });\n    }\n\n    setTimeout(removeBanner, autoHideDelay);\n}\n\nfunction fallbackCopyTextToClipboard(text) {\n    var textArea = document.createElement('textarea');\n    textArea.value = text;\n    textArea.style.top = '0';\n    textArea.style.left = '0';\n    textArea.style.position = 'fixed';\n    document.body.appendChild(textArea);\n    textArea.focus();\n    textArea.select();\n    try {\n        document.execCommand('copy');\n    } catch (err) {}\n    document.body.removeChild(textArea);\n}\n\nfunction copyTextToClipboard(text) {\n    if (!navigator.clipboard) {\n        fallbackCopyTextToClipboard(text);\n        return;\n    }\n    navigator.clipboard.writeText(text);\n}\n\nfunction toggleInvalidState(invalid, banner, input, message) {\n    input.setCustomValidity(invalid ? message : '');\n    input.reportValidity();\n}\n\nfunction detectFastScrollUp(scrollSpeedThreshold, scrollDistanceThreshold, callback) {\n    var lastScrollY = window.scrollY;\n    var lastTimestamp = performance.now();\n    var scrollingUp = false;\n    function handleScroll() {\n        var currentTimestamp = performance.now();\n        var timePassed = currentTimestamp - lastTimestamp;\n        if (timePassed \u003e 0) {\n            var currentScrollY = window.scrollY;\n            var scrollDistance = currentScrollY - lastScrollY;\n            var scrollSpeed = Math.abs(scrollDistance / timePassed);\n            scrollingUp = scrollDistance \u003c 0;\n            if (scrollSpeed \u003e scrollSpeedThreshold \u0026\u0026 scrollingUp \u0026\u0026 Math.abs(scrollDistance) \u003e scrollDistanceThreshold) {\n                callback();\n            }\n            lastScrollY = currentScrollY;\n            lastTimestamp = currentTimestamp;\n        }\n    }\n    window.addEventListener('scroll', handleScroll);\n}\n\nfunction inactivityTime() {\n    var t;\n    resetTimer();\n    document.addEventListener('mousemove', resetTimer);\n    document.addEventListener('keypress', resetTimer);\n    document.addEventListener('touch', resetTimer);\n    document.addEventListener('scroll', resetTimer);\n    window.addEventListener('focus', resetTimer);\n\n    function exitIntentDetected() {\n        if (!window['__exp_inactive_trigger-' + bannerSemiId]) {\n            window['__exp_inactive_trigger-' + bannerSemiId] = true;\n        }\n    }\n\n    function resetTimer() {\n        clearTimeout(t);\n        t = setTimeout(exitIntentDetected, CONFIG.triggering.exitIntentInactivityDelay);\n        if (!window['__exp_triggered-' + bannerSemiId] \u0026\u0026 window['__exp_inactive_trigger-' + bannerSemiId]) {\n            window['__exp_triggered-' + bannerSemiId] = true;\n            scheduleShowBanner();\n        }\n        window['__exp_inactive_trigger-' + bannerSemiId] = false;\n    }\n}\n\nfunction desktopExit() {\n    document.body.addEventListener('mouseout', function(e) {\n        e = e || window.event;\n        var vpWidth = Math.max(document.documentElement.clientWidth, window.innerWidth || 0);\n        if (e.clientX \u003e= vpWidth) {\n            return;\n        }\n        if (e.clientY \u003e= 50) {\n            return;\n        }\n        var from = e.relatedTarget || e.toElement;\n        if (!from \u0026\u0026 !window['__exp_triggered-' + bannerSemiId]) {\n            window['__exp_triggered-' + bannerSemiId] = true;\n            scheduleShowBanner();\n        }\n    });\n}\n\nfunction validateEmail(email) {\n    return email \u0026\u0026 /^\\S+@\\S+\\.\\S+$/.test(email);\n}\n\nfunction stringToArray(string) {\n    return (string || '').split(',').map(function(item) {\n        return item.trim();\n    }).filter(function(item) {\n        return !!item;\n    });\n}\n\nregisterStartTrigger();\nreturn {\n    remove: removeBanner\n};\n };\ninsertBanner.remove = (insertBanner.script.call(insertBanner) || {} ).remove;\ninsertBanner.contextual_personalization = {};\nreturn insertBanner;\n})({\"banner_id\": \"6accb537ddb30b87da65f99e\", \"banner_name\": null, \"banner_type\": \"medium_rectangle\", \"banner_group\": \"\", \"variant_id\": 0, \"variant_name\": \"Variant A\"});","variables_target":null,"page_vars":[]},{"_id":"6ad8b11793bfaecb6230253a","date_filter":{"enabled":false,"from_date":null,"to_date":null},"trigger":{"include_pages":[{"url":"https://www.newcastleunited.com/","type":"contains"}],"exclude_pages":null},"smart_trigger":null,"device_target":{"type":"any"},"frequency":"always","uses_personalization":false,"data":"return (function insertBanner(data) {\ninsertBanner.inPreview = false;\ninsertBanner.sdk = window.exponea;\ninsertBanner.data = data;\ninsertBanner.html = \"\u003csection id=\\\"exponea-footer-signup\\\" class=\\\"weblayer--footer-signup\\\" aria-label=\\\"Stay up to date with Newcastle United\\\"\u003e\\n    \u003cdiv class=\\\"exp-fs-container\\\"\u003e\\n        \u003c!-- Step one --\u003e\\n        \u003cdiv class=\\\"exp-fs-inner step-one\\\"\u003e\\n            \u003cdiv class=\\\"exp-fs-copy\\\"\u003e\\n                \u003cp class=\\\"text line-one\\\"\u003e\\n                     \\n                \u003c/p\u003e\\n                \u003ch2 class=\\\"heading\\\"\u003e\\n                    Stay up to date with Newcastle United\\n                \u003c/h2\u003e\\n                \u003cp class=\\\"text line-two\\\"\u003e\\n                     \\n                \u003c/p\u003e\\n            \u003c/div\u003e\\n            \u003cdiv class=\\\"exp-fs-form-wrap\\\"\u003e\\n                \u003cform id=\\\"exponea-form\\\" novalidate\u003e\\n                    \u003cdiv id=\\\"exponea-name-fieldsets\\\" class=\\\"exp-fs-row\\\"\u003e\\n                        \u003cfieldset class=\\\"first_name_fieldset\\\"\u003e\\n                            \u003clabel for=\\\"exp-fs-first-name\\\" class=\\\"input-label\\\"\u003eFirst name\u003c/label\u003e\\n                            \u003cinput name=\\\"first_name\\\" id=\\\"exp-fs-first-name\\\" type=\\\"text\\\" autocomplete=\\\"given-name\\\" placeholder=\\\"First name\\\" class=\\\"first-name\\\"\u003e\\n                        \u003c/fieldset\u003e\\n                        \u003cfieldset class=\\\"last_name_fieldset\\\"\u003e\\n                            \u003clabel for=\\\"exp-fs-last-name\\\" class=\\\"input-label\\\"\u003eLast name\u003c/label\u003e\\n                            \u003cinput name=\\\"last_name\\\" id=\\\"exp-fs-last-name\\\" type=\\\"text\\\" autocomplete=\\\"family-name\\\" placeholder=\\\"Last name\\\" class=\\\"last-name\\\"\u003e\\n                        \u003c/fieldset\u003e\\n                    \u003c/div\u003e\\n                    \u003cdiv class=\\\"exp-fs-row exp-fs-main-row\\\"\u003e\\n                        \u003cdiv id=\\\"exponea-main-fieldsets\\\"\u003e\\n                            \u003cfieldset class=\\\"email_fieldset\\\"\u003e\\n                                \u003clabel for=\\\"exp-fs-email\\\" class=\\\"input-label\\\"\u003eEnter your email address\u003c/label\u003e\\n                                \u003cinput name=\\\"email\\\" id=\\\"exp-fs-email\\\" type=\\\"email\\\" autocomplete=\\\"email\\\" placeholder=\\\"Enter your email address\\\" required class=\\\"email\\\"\u003e\\n                            \u003c/fieldset\u003e\\n                            \u003cfieldset class=\\\"phone_fieldset\\\"\u003e\\n                                \u003clabel for=\\\"exp-fs-phone\\\" class=\\\"input-label\\\"\u003eEnter your phone number\u003c/label\u003e\\n                                \u003cinput name=\\\"phone\\\" id=\\\"exp-fs-phone\\\" type=\\\"tel\\\" autocomplete=\\\"tel\\\" placeholder=\\\"Enter your phone number\\\" required class=\\\"phone\\\"\u003e\\n                            \u003c/fieldset\u003e\\n                        \u003c/div\u003e\\n                        \u003cbutton type=\\\"submit\\\" class=\\\"button submit\\\"\u003e\\n                            Sign up\\n                        \u003c/button\u003e\\n                    \u003c/div\u003e\\n                    \u003cp class=\\\"exp-fs-error\\\" role=\\\"alert\\\" aria-live=\\\"polite\\\"\u003e\u003c/p\u003e\\n                \u003c/form\u003e\\n                \u003cp class=\\\"conditions\\\"\u003e\\n                    By signing up you are opting in to receive updates from Newcastle United about news, tickets, retail offers and competitions. For more information, please see our \\n                    \u003ca href=\\\"https://www.newcastleunited.com/en/privacy-policy\\\" class=\\\"link\\\" target=\\\"_blank\\\" rel=\\\"noopener\\\"\u003ePrivacy Policy.\u003c/a\u003e\\n                \u003c/p\u003e\\n            \u003c/div\u003e\\n        \u003c/div\u003e\\n        \u003c!-- Step two --\u003e\\n        \u003cdiv class=\\\"exp-fs-inner step-two\\\" style=\\\"display: none;\\\" aria-live=\\\"polite\\\"\u003e\\n            \u003cdiv class=\\\"exp-fs-copy\\\"\u003e\\n                \u003ch2 class=\\\"heading\\\"\u003e\\n                    You're signed up\\n                \u003c/h2\u003e\\n                \u003cp class=\\\"text\\\"\u003e\\n                    Thanks for joining. Keep an eye on your inbox for the latest from St. James' Park.\\n                \u003c/p\u003e\\n            \u003c/div\u003e\\n            \u003cdiv class=\\\"exp-fs-thanks-actions\\\"\u003e\\n                \u003cp id=\\\"exponea-voucher\\\"\u003e\u003c/p\u003e\\n                \u003ca id=\\\"thankYouButton\\\" class=\\\"button\\\" href=\\\"https://www.newcastleunited.com/en\\\"\u003e\\n                    Continue\\n                \u003c/a\u003e\\n            \u003c/div\u003e\\n        \u003c/div\u003e\\n    \u003c/div\u003e\\n\u003c/section\u003e\\n\";\ninsertBanner.style = \"/*\\n * Params are set once as custom properties and used throughout.\\n * Non-personalised weblayers cannot use Jinja, so layout switches are applied as classes in the script.\\n */\\n#exponea-footer-signup {\\n  /* LAYOUT */\\n  --exp-fs-max-width: 1440px;\\n  --exp-fs-padding: 64px 88px;\\n  --exp-fs-padding-mobile: 40px 16px;\\n  --exp-fs-gap: 64px;\\n  --exp-fs-form-max-width: 760px;\\n\\n  /* BACKGROUND */\\n  --exp-fs-bg: #000000;\\n  --exp-fs-divider: rgba(255, 255, 255, 0.2);\\n\\n  /* TYPOGRAPHY */\\n  --exp-fs-font: inherit;\\n  --exp-fs-text-align: left;\\n  --exp-fs-line-one-size: 16px;\\n  --exp-fs-line-one-weight: normal;\\n  --exp-fs-line-one-spacing: 12px;\\n  --exp-fs-line-one-color: #808080;\\n  --exp-fs-heading-size: 36px;\\n  --exp-fs-heading-size-mobile: 28px;\\n  --exp-fs-heading-weight: 700;\\n  --exp-fs-heading-transform: none;\\n  --exp-fs-heading-spacing: 12px;\\n  --exp-fs-heading-color: #FFFFFF;\\n  --exp-fs-text-size: 16px;\\n  --exp-fs-text-weight: normal;\\n  --exp-fs-text-color: rgba(255, 255, 255, 0.8);\\n  --exp-fs-conditions-size: 13px;\\n  --exp-fs-conditions-color: #808080;\\n  --exp-fs-conditions-link-color: #FFFFFF;\\n  --exp-fs-error-color: #FF6B6B;\\n\\n  /* FORM STYLING */\\n  --exp-fs-input-height: 64px;\\n  --exp-fs-input-text-size: 18px;\\n  --exp-fs-input-bg: rgba(255, 255, 255, 0.06);\\n  --exp-fs-input-color: #FFFFFF;\\n  --exp-fs-placeholder-color: rgba(255, 255, 255, 0.55);\\n  --exp-fs-input-border: rgba(255, 255, 255, 0.4);\\n  --exp-fs-input-focus: #FFFFFF;\\n  --exp-fs-input-radius: 4px;\\n  --exp-fs-button-width: 200px;\\n  --exp-fs-button-text-size: 18px;\\n  --exp-fs-button-color: #000000;\\n  --exp-fs-button-bg: #00ffaa;\\n  --exp-fs-button-border-width: 0px;\\n  --exp-fs-button-border-color: rgba(0, 0, 0, 0);\\n  --exp-fs-button-radius: 40px;\\n\\n  /* POP-UP - only used when displayMode is Pop-up */\\n  --exp-fs-popup-width: 560px;\\n  --exp-fs-popup-offset: 16px;\\n  --exp-fs-popup-padding: 48px 32px 32px;\\n  --exp-fs-popup-radius: 8px;\\n  --exp-fs-close-color: #FFFFFF;\\n}\\n\\n/* Weblayer Container Styling */\\n#exponea-footer-signup {\\n  display: block;\\n  box-sizing: border-box;\\n  position: relative;\\n  width: 100%;\\n  margin: 0;\\n  font-family: var(--exp-fs-font);\\n  font-size: 16px; /* to prevent inheriting fs of element it's appended to */\\n  line-height: normal;\\n  text-align: left;\\n  background-color: var(--exp-fs-bg);\\n  background-position: center center;\\n  background-repeat: no-repeat;\\n  background-size: cover;\\n  border-bottom: 1px solid var(--exp-fs-divider);\\n}\\n\\n/* The background colour sits over the background image as an overlay */\\n#exponea-footer-signup.exp-fs--has-image::before {\\n  content: '';\\n  position: absolute;\\n  inset: 0;\\n  background-color: var(--exp-fs-bg);\\n}\\n\\n#exponea-footer-signup *,\\n#exponea-footer-signup *::before,\\n#exponea-footer-signup *::after {\\n  box-sizing: border-box;\\n}\\n\\n#exponea-footer-signup .exp-fs-container {\\n  position: relative;\\n  max-width: var(--exp-fs-max-width);\\n  margin: 0 auto;\\n  padding: var(--exp-fs-padding);\\n}\\n\\n/* Copy to the left of the form by default */\\n#exponea-footer-signup .exp-fs-inner {\\n  display: grid;\\n  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);\\n  align-items: center;\\n  column-gap: var(--exp-fs-gap);\\n  row-gap: 24px;\\n}\\n\\n#exponea-footer-signup .exp-fs-form-wrap,\\n#exponea-footer-signup .exp-fs-thanks-actions {\\n  width: 100%;\\n  max-width: var(--exp-fs-form-max-width);\\n  justify-self: end;\\n}\\n\\n/* Copy above the form */\\n#exponea-footer-signup.exp-fs--copy-above .exp-fs-inner {\\n  grid-template-columns: minmax(0, 1fr);\\n}\\n\\n#exponea-footer-signup.exp-fs--copy-above .exp-fs-form-wrap,\\n#exponea-footer-signup.exp-fs--copy-above .exp-fs-thanks-actions {\\n  justify-self: start;\\n}\\n\\n/* Typography Styling */\\n#exponea-footer-signup .exp-fs-copy {\\n  text-align: var(--exp-fs-text-align);\\n}\\n\\n#exponea-footer-signup p,\\n#exponea-footer-signup h2 {\\n  margin: 0;\\n  padding: 0;\\n  font-family: inherit;\\n  letter-spacing: normal;\\n}\\n\\n#exponea-footer-signup .text.line-one {\\n  font-size: var(--exp-fs-line-one-size);\\n  font-weight: var(--exp-fs-line-one-weight);\\n  line-height: 1.3;\\n  color: var(--exp-fs-line-one-color);\\n  padding-bottom: var(--exp-fs-line-one-spacing);\\n}\\n\\n#exponea-footer-signup .heading {\\n  font-size: var(--exp-fs-heading-size);\\n  font-weight: var(--exp-fs-heading-weight);\\n  text-transform: var(--exp-fs-heading-transform);\\n  line-height: 1.1;\\n  color: var(--exp-fs-heading-color);\\n  padding-bottom: var(--exp-fs-heading-spacing);\\n}\\n\\n#exponea-footer-signup .exp-fs-copy .text:not(.line-one) {\\n  font-size: var(--exp-fs-text-size);\\n  font-weight: var(--exp-fs-text-weight);\\n  line-height: 1.5;\\n  color: var(--exp-fs-text-color);\\n}\\n\\n#exponea-footer-signup .exp-fs-copy \u003e :last-child {\\n  padding-bottom: 0;\\n}\\n\\n#exponea-footer-signup .conditions {\\n  font-size: var(--exp-fs-conditions-size);\\n  line-height: 1.5;\\n  color: var(--exp-fs-conditions-color);\\n  margin-top: 16px;\\n}\\n\\n#exponea-footer-signup .conditions \u003e .link {\\n  color: var(--exp-fs-conditions-link-color);\\n  text-decoration: underline;\\n  text-underline-offset: 2px;\\n}\\n\\n#exponea-footer-signup .exp-fs-error {\\n  display: none;\\n  font-size: 14px;\\n  line-height: 1.4;\\n  color: var(--exp-fs-error-color);\\n  margin-top: 12px;\\n}\\n\\n#exponea-footer-signup .exp-fs-error.visible {\\n  display: block;\\n}\\n\\n/* FORM STYLING */\\n#exponea-footer-signup #exponea-form {\\n  display: flex;\\n  flex-direction: column;\\n  gap: 12px;\\n  width: 100%;\\n  margin: 0;\\n}\\n\\n#exponea-footer-signup #exponea-form fieldset {\\n  border: 0;\\n  padding: 0;\\n  margin: 0;\\n  min-width: 0;\\n}\\n\\n#exponea-footer-signup .exp-fs-row {\\n  display: flex;\\n  flex-direction: row;\\n  align-items: flex-end;\\n  gap: 12px;\\n}\\n\\n/* First and last name share a row, phone gets its own row when email is the bottom row */\\n#exponea-footer-signup #exponea-name-fieldsets \u003e fieldset,\\n#exponea-footer-signup .exp-fs-phone-row \u003e fieldset {\\n  flex: 1 1 0;\\n}\\n\\n/* Email (and phone) fill the row, the button sits to the right */\\n#exponea-footer-signup #exponea-main-fieldsets {\\n  flex: 1 1 auto;\\n  display: flex;\\n  gap: 12px;\\n  min-width: 0;\\n}\\n\\n#exponea-footer-signup #exponea-main-fieldsets \u003e fieldset {\\n  flex: 1 1 0;\\n}\\n\\n/* Labels stay available to screen readers when hidden */\\n#exponea-footer-signup .input-label {\\n  position: absolute;\\n  width: 1px;\\n  height: 1px;\\n  overflow: hidden;\\n  clip: rect(0 0 0 0);\\n  white-space: nowrap;\\n}\\n\\n#exponea-footer-signup.exp-fs--show-labels .input-label,\\n#exponea-footer-signup .optional-input-label {\\n  position: static;\\n  width: auto;\\n  height: auto;\\n  overflow: visible;\\n  clip: auto;\\n  white-space: normal;\\n  display: block;\\n  padding-bottom: 8px;\\n  font-size: 14px;\\n  color: var(--exp-fs-text-color);\\n  text-align: left;\\n}\\n\\n#exponea-footer-signup #exponea-form input:not([type='checkbox']),\\n#exponea-footer-signup #exponea-form select {\\n  display: block;\\n  width: 100%;\\n  max-width: 100%;\\n  height: var(--exp-fs-input-height);\\n  min-height: 0;\\n  margin: 0;\\n  padding: 0 20px;\\n  font-family: inherit;\\n  font-size: var(--exp-fs-input-text-size);\\n  font-weight: normal;\\n  line-height: normal;\\n  text-align: left;\\n  color: var(--exp-fs-input-color);\\n  background-color: var(--exp-fs-input-bg);\\n  border: 1px solid var(--exp-fs-input-border);\\n  border-radius: var(--exp-fs-input-radius);\\n  box-shadow: none;\\n  outline: none;\\n  appearance: none;\\n  -webkit-appearance: none;\\n  transition: border-color 0.15s ease, box-shadow 0.15s ease;\\n}\\n\\n#exponea-footer-signup #exponea-form select {\\n  appearance: auto;\\n  -webkit-appearance: auto;\\n  cursor: pointer;\\n}\\n\\n#exponea-footer-signup #exponea-form select option {\\n  color: #000000;\\n}\\n\\n#exponea-footer-signup #exponea-form input::placeholder {\\n  color: var(--exp-fs-placeholder-color);\\n  opacity: 1;\\n}\\n\\n#exponea-footer-signup #exponea-form input:not([type='checkbox']):focus,\\n#exponea-footer-signup #exponea-form select:focus {\\n  border-color: var(--exp-fs-input-focus);\\n  box-shadow: 0 0 0 1px var(--exp-fs-input-focus);\\n}\\n\\n#exponea-footer-signup #exponea-form fieldset.invalid input,\\n#exponea-footer-signup #exponea-form fieldset.invalid select {\\n  border-color: var(--exp-fs-error-color);\\n  box-shadow: 0 0 0 1px var(--exp-fs-error-color);\\n}\\n\\n/* Keep autofilled inputs on the dark background.\\n * The browser paints its own autofill background, so it is covered with an inset shadow.\\n * These selectors outrank the focus rule above, which would otherwise replace the shadow\\n * and let the light autofill background show through when the input is clicked */\\n#exponea-footer-signup #exponea-form input:not([type='checkbox']):-webkit-autofill {\\n  -webkit-text-fill-color: var(--exp-fs-input-color);\\n  -webkit-box-shadow: 0 0 0 1000px var(--exp-fs-bg) inset;\\n  box-shadow: 0 0 0 1000px var(--exp-fs-bg) inset;\\n  caret-color: var(--exp-fs-input-color);\\n}\\n\\n#exponea-footer-signup #exponea-form input:not([type='checkbox']):-webkit-autofill:focus {\\n  -webkit-box-shadow: 0 0 0 1000px var(--exp-fs-bg) inset, 0 0 0 1px var(--exp-fs-input-focus);\\n  box-shadow: 0 0 0 1000px var(--exp-fs-bg) inset, 0 0 0 1px var(--exp-fs-input-focus);\\n}\\n\\n/* PHONE INPUT STYLING */\\n#exponea-footer-signup .iti {\\n  display: block;\\n  width: 100%;\\n}\\n\\n#exponea-footer-signup #exponea-form .iti--allow-dropdown input.phone {\\n  padding-left: 60px;\\n}\\n\\n#exponea-footer-signup .iti__selected-flag {\\n  padding: 0 8px 0 20px;\\n}\\n\\n#exponea-footer-signup .iti__country-list {\\n  color: #000000;\\n  white-space: normal;\\n  max-width: 320px;\\n}\\n\\n#exponea-footer-signup .iti__flag-container {\\n  z-index: 10;\\n}\\n\\n/* OPTIONAL INPUTS */\\n#exponea-footer-signup .exponea-optional-inputs {\\n  display: flex;\\n  flex-direction: row;\\n  flex-wrap: wrap;\\n  align-items: flex-end; /* half width inputs line up whether or not they have a label */\\n  gap: 12px;\\n}\\n\\n#exponea-footer-signup .exponea-optional-inputs fieldset {\\n  display: flex;\\n  flex-direction: column;\\n  align-items: stretch;\\n}\\n\\n/* Width of each optional input, set by its own Width param */\\n#exponea-footer-signup .exponea-optional-inputs fieldset.optional-input-full {\\n  width: 100%;\\n}\\n\\n#exponea-footer-signup .exponea-optional-inputs fieldset.optional-input-half {\\n  width: calc(50% - 6px);\\n}\\n\\n#exponea-footer-signup .exponea-optional-inputs label.checkbox-label {\\n  width: 100%;\\n  display: flex;\\n  flex-direction: row;\\n  align-items: flex-start;\\n  gap: 10px;\\n  cursor: pointer;\\n}\\n\\n#exponea-footer-signup .exponea-optional-inputs label.checkbox-label input {\\n  flex: 0 0 auto;\\n  width: 18px;\\n  height: 18px;\\n  margin: 1px 0 0;\\n  accent-color: var(--exp-fs-button-bg);\\n  cursor: pointer;\\n}\\n\\n#exponea-footer-signup .exponea-optional-inputs label.checkbox-label p {\\n  font-size: 14px;\\n  line-height: 1.4;\\n  color: var(--exp-fs-text-color);\\n  text-align: left;\\n}\\n\\n/* CTA STYLING */\\n#exponea-footer-signup .button {\\n  display: inline-flex;\\n  align-items: center;\\n  justify-content: center;\\n  flex: 0 0 auto;\\n  min-width: var(--exp-fs-button-width);\\n  height: var(--exp-fs-input-height);\\n  margin: 0;\\n  padding: 0 32px;\\n  font-family: inherit;\\n  font-size: var(--exp-fs-button-text-size);\\n  font-weight: 700;\\n  line-height: 1;\\n  white-space: nowrap;\\n  text-decoration: none;\\n  color: var(--exp-fs-button-color);\\n  background: var(--exp-fs-button-bg);\\n  border-style: solid;\\n  border-width: var(--exp-fs-button-border-width);\\n  border-color: var(--exp-fs-button-border-color);\\n  border-radius: var(--exp-fs-button-radius);\\n  cursor: pointer;\\n  user-select: none;\\n  transition: opacity 0.15s ease, transform 0.15s ease;\\n}\\n\\n#exponea-footer-signup .button:hover {\\n  opacity: 0.88;\\n}\\n\\n#exponea-footer-signup .button:active {\\n  transform: translateY(1px);\\n}\\n\\n#exponea-footer-signup .button:focus-visible {\\n  outline: 2px solid var(--exp-fs-input-focus);\\n  outline-offset: 3px;\\n}\\n\\n#exponea-footer-signup .button:disabled {\\n  opacity: 0.6;\\n  cursor: progress;\\n}\\n\\n/* THANK YOU STEP */\\n#exponea-footer-signup .step-two .exp-fs-thanks-actions {\\n  display: flex;\\n  flex-wrap: wrap;\\n  align-items: center;\\n  gap: 16px;\\n}\\n\\n#exponea-footer-signup .exp-fs-inner.exp-fs-inner--single {\\n  grid-template-columns: minmax(0, 1fr);\\n}\\n\\n/* VOUCHER STYLING */\\n#exponea-footer-signup #exponea-voucher {\\n  display: inline-flex;\\n  align-items: center;\\n  gap: 10px;\\n  height: var(--exp-fs-input-height);\\n  padding: 0 24px;\\n  font-size: var(--exp-fs-input-text-size);\\n  font-weight: 700;\\n  letter-spacing: 0.08em;\\n  color: var(--exp-fs-heading-color);\\n  border: 1px dashed var(--exp-fs-input-border);\\n  border-radius: var(--exp-fs-input-radius);\\n  cursor: pointer;\\n}\\n\\n#exponea-footer-signup #exponea-voucher i {\\n  display: inline-flex;\\n  align-items: center;\\n}\\n\\n.iti--container {\\n  z-index: 2147483002 !important;\\n}\\n\\n/* POP-UP - only applies when displayMode is Pop-up */\\n.exp-fs-overlay {\\n  position: fixed;\\n  inset: 0;\\n  z-index: 2147482999; /* close to the highest possible z-index */\\n}\\n\\n/* A fully transparent overlay is hidden, so the page behind stays clickable */\\n.exp-fs-overlay--clear {\\n  pointer-events: none;\\n}\\n\\n#exponea-footer-signup.exp-fs--popup {\\n  position: fixed;\\n  z-index: 2147483000;\\n  width: var(--exp-fs-popup-width);\\n  max-width: calc(100vw - (2 * var(--exp-fs-popup-offset)));\\n  max-height: calc(100vh - (2 * var(--exp-fs-popup-offset)));\\n  overflow-y: auto;\\n  border-bottom: 0;\\n  border-radius: var(--exp-fs-popup-radius);\\n  box-shadow: 0 0.25em 1em rgba(0, 0, 0, 0.4);\\n  pointer-events: auto;\\n}\\n\\n#exponea-footer-signup.exp-fs--v-top {\\n  top: var(--exp-fs-popup-offset);\\n}\\n\\n#exponea-footer-signup.exp-fs--v-bottom {\\n  bottom: var(--exp-fs-popup-offset);\\n}\\n\\n#exponea-footer-signup.exp-fs--v-center {\\n  top: 50%;\\n  transform: translateY(-50%);\\n}\\n\\n#exponea-footer-signup.exp-fs--h-left {\\n  left: var(--exp-fs-popup-offset);\\n}\\n\\n#exponea-footer-signup.exp-fs--h-right {\\n  right: var(--exp-fs-popup-offset);\\n}\\n\\n#exponea-footer-signup.exp-fs--h-center {\\n  left: 50%;\\n  transform: translateX(-50%);\\n}\\n\\n#exponea-footer-signup.exp-fs--v-center.exp-fs--h-center {\\n  transform: translate(-50%, -50%);\\n}\\n\\n/* In a pop-up the copy always sits above the form */\\n#exponea-footer-signup.exp-fs--popup .exp-fs-container {\\n  max-width: none;\\n  padding: var(--exp-fs-popup-padding);\\n}\\n\\n#exponea-footer-signup.exp-fs--popup .exp-fs-inner {\\n  grid-template-columns: minmax(0, 1fr);\\n}\\n\\n#exponea-footer-signup.exp-fs--popup .exp-fs-form-wrap,\\n#exponea-footer-signup.exp-fs--popup .exp-fs-thanks-actions {\\n  max-width: none;\\n  justify-self: stretch;\\n}\\n\\n#exponea-footer-signup .exp-fs-close {\\n  position: absolute;\\n  top: 8px;\\n  right: 8px;\\n  z-index: 1;\\n  width: 40px;\\n  height: 40px;\\n  margin: 0;\\n  padding: 0;\\n  font-family: inherit;\\n  font-size: 28px;\\n  line-height: 1;\\n  color: var(--exp-fs-close-color);\\n  background: transparent;\\n  border: 0;\\n  cursor: pointer;\\n}\\n\\n#exponea-footer-signup .exp-fs-close:focus-visible {\\n  outline: 2px solid var(--exp-fs-input-focus);\\n  outline-offset: 2px;\\n}\\n\\n#exponea-footer-signup.exp-fs--fade {\\n  animation: exp-fs-fade-in 0.2s ease-in;\\n}\\n\\n@keyframes exp-fs-fade-in {\\n  from {\\n    opacity: 0;\\n  }\\n  to {\\n    opacity: 1;\\n  }\\n}\\n\\n@media (prefers-reduced-motion: reduce) {\\n  #exponea-footer-signup.exp-fs--fade {\\n    animation: none;\\n  }\\n}\\n\\n/* TABLET - copy stacks above the form */\\n@media only screen and (max-width: 1023px) {\\n  #exponea-footer-signup .exp-fs-inner {\\n    grid-template-columns: minmax(0, 1fr);\\n  }\\n\\n  #exponea-footer-signup .exp-fs-form-wrap,\\n  #exponea-footer-signup .exp-fs-thanks-actions {\\n    justify-self: start;\\n  }\\n}\\n\\n/* MOBILE */\\n@media only screen and (max-width: 640px) {\\n  #exponea-footer-signup .exp-fs-container {\\n    padding: var(--exp-fs-padding-mobile);\\n  }\\n\\n  #exponea-footer-signup .heading {\\n    font-size: var(--exp-fs-heading-size-mobile);\\n  }\\n\\n  /* Button drops beneath the email input and fills the width */\\n  #exponea-footer-signup .exp-fs-main-row,\\n  #exponea-footer-signup #exponea-main-fieldsets {\\n    flex-direction: column;\\n    align-items: stretch;\\n  }\\n\\n  #exponea-footer-signup .exp-fs-main-row .button,\\n  #exponea-footer-signup .step-two .button {\\n    width: 100%;\\n    min-width: 0;\\n  }\\n\\n  #exponea-footer-signup .exponea-optional-inputs fieldset.optional-input-half {\\n    width: 100%;\\n  }\\n}\\n\\n/* Very narrow screens - names stack too */\\n@media only screen and (max-width: 340px) {\\n  #exponea-footer-signup #exponea-name-fieldsets {\\n    flex-direction: column;\\n    align-items: stretch;\\n  }\\n}\\n\\n/* MOBILE POP-UP */\\n@media only screen and (max-width: 640px) {\\n  #exponea-footer-signup.exp-fs--popup .exp-fs-container {\\n    padding: var(--exp-fs-padding-mobile);\\n    padding-top: 48px; /* room for the close icon */\\n  }\\n}\";\ninsertBanner.script = function() { // API PARAMS - sign ups are sent to the Bloomreach Engagement public API, not through the SDK\nvar PARAM_apiBaseUrl = \"https://api.uk.exponea.com\";\nvar PARAM_projectToken = \"8239ddb6-f687-11ee-a211-f217ee5e7c05\";\nvar PARAM_publicApiToken = \"739ridoezm3mi27qghh4xq4c3d0gy4tzsu3lwqop9drb9rcognvgux664zdqudmx\";\nvar PARAM_subscribeEventType = \"banner\";\n\n// DEFAULT SETUP PARAMS\nvar PARAM_source = \"NUFC Website Footer (Non Personalised)\";\nvar PARAM_consentCategories = \"News,Tickets,Events,Store,Hospitality,WomensTeam\";\nvar PARAM_consentScenario = \"Scenario Created\";\nvar PARAM_updateCustomer  = \"yes\";\nvar PARAM_identifyInput = \"email\";\nvar PARAM_identifyIdName = \"email_id\";\nvar PARAM_mergeWithCookie = \"yes\";\n\n// FORM STRUCTURE PARAMS\nvar PARAM_includeEmail=\"yes\";\nvar PARAM_includeFirstName=\"yes\";\nvar PARAM_includeLastName=\"yes\";\nvar PARAM_namesRequired=\"yes\";\nvar PARAM_firstNameAttribute=\"first_name\";\nvar PARAM_lastNameAttribute=\"last_name\";\nvar PARAM_includePhone=\"no\";\nvar PARAM_initialCountry = \"gb\";\nvar PARAM_preferredCountries = \"\";\nvar PARAM_onlyCountries = \"\";\nvar PARAM_enableThankYou=\"no\";\n\n// COPYWRITING PARAMS\nvar PARAM_invalidEmailMessage=\"Enter a valid email address\";\nvar PARAM_invalidNumberMessage=\"Enter a valid phone number\";\nvar PARAM_requiredMessage=\"Please fill in this field\";\nvar PARAM_submitErrorMessage=\"Something went wrong, please try again.\";\n\n// FORM POSITION PARAMS\nvar PARAM_parentElement = \"footer [class*=footerBlock_content]\";\nvar PARAM_insertPosition = \"first child\";\nvar PARAM_parentWaitTimeout = parseInt(\"10000\", 10);\n\n// POP-UP PARAMS - displayMode switches the form between embedded in the page and a pop-up over it\nvar PARAM_displayMode = \"Embedded\";\nvar PARAM_popupVertical = \"Center\";\nvar PARAM_popupHorizontal = \"Center\";\nvar PARAM_popupOverlayColor = \"rgba(0, 0, 0, 0.6)\";\nvar PARAM_popupFadeIn = \"yes\";\nvar PARAM_popupRememberClose = \"For the session\";\n\n// CONSENT HAND-OVER PARAM\nvar PARAM_hideWhenConsented = \"yes\";\nvar PARAM_consentGroupId = \"\";\n\n// ADVANCED PARAMS\nvar PARAM_enableVoucherCopyIcon = \"true\";\nvar PARAM_thankYouResetDelay = \"0\";\nvar PARAM_nextWeblayerId = \"\";\nvar PARAM_isFinalWeblayer = \"No\";\nvar PARAM_disableShowEvent=\"false\";\nvar PARAM_inputOne=\"none\";\nvar PARAM_inputOneName=\"\";\nvar PARAM_inputOneLabel=\"\";\nvar PARAM_inputOneText=\"\";\nvar PARAM_inputOneRequired=\"false\";\nvar PARAM_inputOneWidth=\"Half Width\";\nvar PARAM_inputTwo=\"none\";\nvar PARAM_inputTwoName=\"\";\nvar PARAM_inputTwoLabel=\"\";\nvar PARAM_inputTwoText=\"\";\nvar PARAM_inputTwoRequired=\"false\";\nvar PARAM_inputTwoWidth=\"Half Width\";\nvar PARAM_inputThree=\"none\";\nvar PARAM_inputThreeName=\"\";\nvar PARAM_inputThreeLabel=\"\";\nvar PARAM_inputThreeText=\"\";\nvar PARAM_inputThreeRequired=\"false\";\nvar PARAM_inputThreeWidth=\"Full Width\";\nvar PARAM_inputFour=\"none\";\nvar PARAM_inputFourName=\"\";\nvar PARAM_inputFourLabel=\"\";\nvar PARAM_inputFourText=\"\";\nvar PARAM_inputFourRequired=\"false\";\nvar PARAM_inputFourWidth=\"Full Width\";\n\n// LAYOUT PARAMS - applied as classes because non-personalised weblayers cannot use Jinja in the CSS\nvar PARAM_copyPosition = \"Left of form\";\nvar PARAM_showLabels = \"no\";\nvar PARAM_backgroundImage = \"\";\n\n// Collected config for each of the optional inputs, rendered in this order\nvar PARAM_optionalInputs = [\n    { type: PARAM_inputOne, name: PARAM_inputOneName, label: PARAM_inputOneLabel, text: PARAM_inputOneText, required: PARAM_inputOneRequired, width: PARAM_inputOneWidth },\n    { type: PARAM_inputTwo, name: PARAM_inputTwoName, label: PARAM_inputTwoLabel, text: PARAM_inputTwoText, required: PARAM_inputTwoRequired, width: PARAM_inputTwoWidth },\n    { type: PARAM_inputThree, name: PARAM_inputThreeName, label: PARAM_inputThreeLabel, text: PARAM_inputThreeText, required: PARAM_inputThreeRequired, width: PARAM_inputThreeWidth },\n    { type: PARAM_inputFour, name: PARAM_inputFourName, label: PARAM_inputFourLabel, text: PARAM_inputFourText, required: PARAM_inputFourRequired, width: PARAM_inputFourWidth }\n];\n\n// POSITION VARIABLES\nvar positions = {\n    \"before\": \"beforebegin\",\n    \"first child\": \"afterbegin\",\n    \"last child\": \"beforeend\",\n    \"after\":\"afterend\"\n};\n\n/**\n * Initialization\n */\nvar self = this;\n\nvar webLayerID = self.data.banner_id;\nvar WEB_LAYER_EVENT_STORAGE_KEY_PREFIX = \"__exponea_banner_event__\";\nvar localStorageEnabled = false;\ntry {\n    if (!window.localStorage) {\n        localStorageEnabled = false;\n    } else {\n        var key = \"__\" + webLayerID + \"_storage_test__\";\n        window.localStorage.setItem(key, key);\n        window.localStorage.removeItem(key);\n        localStorageEnabled = true;\n    }\n} catch (e) {\n    localStorageEnabled = false;\n}\n\n// Helper Id used to identify the banner on the website, not actual ID of the banner\nvar bannerSemiId = Math.random().toString(36).substring(5);\n\n// Stamped on every sign up event, so the consent scenarios pick up any weblayer built from this template, including copies, without listing banner IDs\nvar SIGN_UP_TEMPLATE = 'nufc_signup';\n\n// Each instance gets its own root ID, so two forms from this template on one page (e.g. footer and pop-up) keep their own styles\nvar ROOT_ID = 'exponea-footer-signup-' + bannerSemiId;\n\n// If the page removes the form while it is still loading, it is put back, for this long and up to this many times\nvar REATTACH_WINDOW = 15000;\nvar REATTACH_LIMIT = 5;\n\n// Session storage key used by popupRememberClose, shared by every cookieless sign up weblayer,\n// so closing any cookieless pop-up or signing up through any cookieless form hides them all for the session\nvar POPUP_CLOSED_KEY = '__exp_fs_hide_popups';\n\n// Resetting some of the parameters while previewing the banner in the app to easily see its appearance\nif (self.inPreview) {\n    // always append the banner to the body itself\n    PARAM_parentElement = 'body';\n    PARAM_insertPosition = 'first child';\n}\n\nvar insertPosition = positions[PARAM_insertPosition] || 'afterbegin';\n\n/**\n * Basic functions\n */\n\n/**\n * Function used to register listener for the trigger that will display the banner\n * The form is embedded, so it is shown as soon as its parent element exists\n */\nfunction registerStartTrigger() {\n    // Visitors who have accepted cookies get the Personalised version instead, when one is live in the same place\n    if (!self.inPreview \u0026\u0026 PARAM_hideWhenConsented == 'yes' \u0026\u0026 hasTrackingConsent()) {\n        console.info('Exponea: cookieless sign up not shown, the visitor has accepted cookies so the Personalised version is used');\n        return;\n    }\n\n    // A pop-up the visitor has already closed or signed up through this session is not shown again\n    if (!self.inPreview \u0026\u0026 popupClosedThisSession()) {\n        return;\n    }\n\n    var loadPromise = Promise.resolve();\n\n    // Load scripts for Phone Input only when the phone input is used\n    if (PARAM_includePhone == 'yes') {\n        loadPromise = Promise.all([\n            loadStylesheet('https://cdnjs.cloudflare.com/ajax/libs/intl-tel-input/17.0.13/css/intlTelInput.css'),\n            loadScript('https://cdnjs.cloudflare.com/ajax/libs/intl-tel-input/17.0.13/js/intlTelInput.min.js')\n        ]);\n    }\n\n    // A pop-up is added straight to the page body, so it does not wait for a parent element.\n    // When it appears is set with smart triggering in the weblayer settings, not in this code\n    if (isPopup()) {\n        loadPromise.then(function() {\n            showBanner(document.body);\n        }).catch(function(error) {\n            console.warn('Exponea: sign up pop-up not shown. ' + error.message);\n        });\n        return;\n    }\n\n    Promise.all([loadPromise, waitForElement(PARAM_parentElement, PARAM_parentWaitTimeout)]).then(function(results) {\n        showBanner(results[1]);\n    }).catch(function(error) {\n        console.warn('Exponea: footer sign up not shown. ' + error.message);\n    });\n}\n\n/**\n * Resolves with the first element matching the selector, waiting for it to be rendered if needed\n * @param selector - string\n * @param timeout - time in milliseconds to wait before rejecting\n * @returns {Promise\u003cElement\u003e}\n */\nfunction waitForElement(selector, timeout) {\n    return new Promise(function(resolve, reject) {\n        var element = document.querySelector(selector);\n        if (element) {\n            return resolve(element);\n        }\n\n        var observer = new MutationObserver(function() {\n            var element = document.querySelector(selector);\n            if (element) {\n                observer.disconnect();\n                clearTimeout(timer);\n                resolve(element);\n            }\n        });\n        observer.observe(document.documentElement, { childList: true, subtree: true });\n\n        var timer = setTimeout(function() {\n            observer.disconnect();\n            reject(new Error('No element found matching parent element \"' + selector + '\"'));\n        }, timeout \u003e 0 ? timeout : 10000);\n    });\n}\n\n/**\n * This function displays the banner\n * @param parentElement - element the banner is embedded in\n */\nfunction showBanner(parentElement) {\n    // Track show event\n    if(PARAM_disableShowEvent !== 'true') {\n        trackEvent('show', false);\n    }\n\n    // Create and display the banner\n    requestAnimationFrame(function() {\n        createBanner(parentElement);\n    });\n}\n\n/**\n * Function used to escape values coming from the banner parameters before they are\n * written into the form markup\n * @param value - string\n * @returns string\n */\nfunction escapeHtml(value) {\n    return (value || '').toString()\n        .replace(/\u0026/g, '\u0026amp;')\n        .replace(/\u003c/g, '\u0026lt;')\n        .replace(/\u003e/g, '\u0026gt;')\n        .replace(/\"/g, '\u0026quot;')\n        .replace(/'/g, '\u0026#39;');\n}\n\n/**\n * Function used to build the markup of a single optional input\n * @param config - object holding the type, name, label and text of the input\n * @returns string - the fieldset markup, empty string when the input is not in use\n */\nfunction getOptionalInputHtml(config) {\n    var type = (config.type || '').trim();\n    var name = (config.name || '').trim();\n\n    if (type === '' || type === 'none' || name === '') {\n        return '';\n    }\n\n    var text = config.text || '';\n    var label = (config.label || '').trim();\n\n    // A date input ignores its placeholder, so fall back to the text param for its label\n    if (label === '' \u0026\u0026 type === 'date') {\n        label = text.trim();\n    }\n\n    var required = config.required == 'true' ? 'required' : '';\n    var safeName = escapeHtml(name);\n    var labelHtml = label !== '' ? '\u003clabel for=\"' + safeName + '\" class=\"optional-input-label\"\u003e' + escapeHtml(label) + '\u003c/label\u003e' : '';\n    var field;\n\n    if (type === 'checkbox') {\n        field = '\u003clabel for=\"' + safeName + '\" class=\"checkbox-label\"\u003e\u003cinput type=\"checkbox\" name=\"' + safeName + '\" id=\"' + safeName + '\" value=\"true\" class=\"' + safeName + '\" ' + required + '\u003e\u003cp\u003e' + escapeHtml(text) + '\u003c/p\u003e\u003c/label\u003e';\n    } else if (type === 'dropdown') {\n        // The text param holds a comma separated list of the values to offer\n        var options = stringToArray(text).map(function(option) {\n            return '\u003coption value=\"' + escapeHtml(option) + '\"\u003e' + escapeHtml(option) + '\u003c/option\u003e';\n        }).join('');\n\n        field = '\u003cselect name=\"' + safeName + '\" id=\"' + safeName + '\" class=\"' + safeName + '\" ' + required + '\u003e\u003coption value=\"\" disabled selected hidden\u003e' + escapeHtml(label) + '\u003c/option\u003e' + options + '\u003c/select\u003e';\n\n        // The label is the placeholder option of a dropdown, so it is not repeated above it\n        labelHtml = '';\n    } else {\n        field = '\u003cinput type=\"' + escapeHtml(type) + '\" name=\"' + safeName + '\" id=\"' + safeName + '\" placeholder=\"' + escapeHtml(text) + '\" ' + required + ' class=\"' + safeName + '\"\u003e';\n    }\n\n    var widthClass = config.width === 'Half Width' ? 'optional-input-half' : 'optional-input-full';\n\n    return '\u003cfieldset class=\"fieldset ' + widthClass + '\"\u003e' + labelHtml + field + '\u003c/fieldset\u003e';\n}\n\n/**\n * Function used to insert the banner contents into the HTML and adding basic functionality\n * @param parentElement - element the banner is embedded in\n */\nfunction createBanner(parentElement) {\n    var placeholder = document.createElement('div');\n    placeholder.insertAdjacentHTML('afterbegin', self.html);\n\n    // get the banner reference\n    var banner = placeholder.firstElementChild;\n\n    // Own root ID for scoped styles, and markers so the Personalised version can replace the cookieless one in the same place\n    banner.id = ROOT_ID;\n    banner.setAttribute('data-exp-signup', 'cookieless');\n    banner.setAttribute('data-exp-signup-slot', getPlacementSlot());\n\n    // Run custom form structure creation\n    if(PARAM_includeEmail == 'no') {\n        banner.querySelector(\".email_fieldset\").remove();\n    }\n    if(PARAM_includePhone == 'no') {\n        banner.querySelector(\".phone_fieldset\").remove();\n    }\n    if(PARAM_includeFirstName == 'no') {\n        banner.querySelector(\".first_name_fieldset\").remove();\n    }\n    if(PARAM_includeLastName == 'no') {\n        banner.querySelector(\".last_name_fieldset\").remove();\n    }\n\n    // Name inputs are stored against the configured attribute names\n    banner.querySelectorAll('#exponea-name-fieldsets input').forEach(function(input) {\n        input.name = (input.name === 'first_name' ? PARAM_firstNameAttribute : PARAM_lastNameAttribute).trim() || input.name;\n        input.required = PARAM_namesRequired == 'yes';\n    });\n\n    var nameFieldsets = banner.querySelector('#exponea-name-fieldsets');\n    if (nameFieldsets.children.length === 0) {\n        nameFieldsets.remove();\n    }\n\n    // The bottom row is always one input and the button, so with both email and phone the phone moves up a row\n    var mainRow = banner.querySelector('.exp-fs-main-row');\n    var emailFieldset = banner.querySelector('.email_fieldset');\n    var phoneFieldset = banner.querySelector('.phone_fieldset');\n\n    if (emailFieldset \u0026\u0026 phoneFieldset) {\n        var phoneRow = document.createElement('div');\n        phoneRow.className = 'exp-fs-row exp-fs-phone-row';\n        phoneRow.appendChild(phoneFieldset);\n        mainRow.insertAdjacentElement('beforebegin', phoneRow);\n    }\n\n    // Optional inputs sit above the bottom row\n    var optionalInputsHtml = PARAM_optionalInputs.map(getOptionalInputHtml).join('');\n\n    if(optionalInputsHtml !== '') {\n        var optionalParent = document.createElement(\"div\");\n        optionalParent.className = 'exponea-optional-inputs';\n        optionalParent.innerHTML = optionalInputsHtml;\n        mainRow.insertAdjacentElement('beforebegin', optionalParent);\n    }\n\n    // Customise Thank You Page\n    if(PARAM_enableThankYou == 'no') {\n        banner.querySelector(\"#thankYouButton\").remove();\n    }\n\n    var voucher = banner.querySelector('#exponea-voucher');\n    if (voucher.textContent.trim() === '') {\n        voucher.remove();\n    }\n\n    // With no voucher or button the thank you copy takes the full width\n    var thanksActions = banner.querySelector('.exp-fs-thanks-actions');\n    if (thanksActions.children.length === 0) {\n        thanksActions.remove();\n        banner.querySelector('.step-two').classList.add('exp-fs-inner--single');\n    }\n\n    // Layout options normally handled with Jinja are applied as classes\n    if (PARAM_copyPosition === 'Above form') {\n        banner.classList.add('exp-fs--copy-above');\n    }\n    if (PARAM_showLabels === 'yes') {\n        banner.classList.add('exp-fs--show-labels');\n    }\n    if (PARAM_backgroundImage.trim() !== '') {\n        banner.style.backgroundImage = 'url(\"' + PARAM_backgroundImage.trim() + '\")';\n        banner.classList.add('exp-fs--has-image');\n    }\n\n    // Copy lines left empty are removed so they do not add spacing\n    banner.querySelectorAll('.exp-fs-copy \u003e *').forEach(function(element) {\n        if (element.textContent.trim() === '') {\n            element.remove();\n        }\n    });\n\n    // Pop-up position, overlay classes and close button\n    if (isPopup()) {\n        setUpPopup(banner);\n    }\n\n    // insert banner CSS into the website, scoped to this instance's root ID\n    banner.insertAdjacentHTML('afterbegin', '\u003cstyle\u003e' + self.style.split('#exponea-footer-signup').join('#' + ROOT_ID) + '\u003c/style\u003e');\n\n    // track clicking on \u003ca\u003e in the banner\n    var links = banner.querySelectorAll('a');\n    for (var i = 0; i \u003c links.length; i++) {\n        trackLink(links[i], 'click', true);\n    }\n\n    attachBannerToDom(banner, parentElement);\n\n    // intl-tel-input needs the input to be in the DOM to measure the flag container\n    var phoneInputField = banner.querySelector(\".phone\");\n\n    if(phoneInputField) {\n        var onlyCountries = stringToArray(PARAM_onlyCountries);\n        var preferredCountries = stringToArray(PARAM_preferredCountries);\n\n        var options = {\n            initialCountry: PARAM_initialCountry,\n            utilsScript:\n                \"https://cdnjs.cloudflare.com/ajax/libs/intl-tel-input/17.0.13/js/utils.min.js\",\n        };\n\n        if (onlyCountries.length \u003e 0) {\n            options.onlyCountries = onlyCountries;\n        }\n\n        if (preferredCountries.length \u003e 0) {\n            options.preferredCountries = preferredCountries;\n        }\n\n        banner.phoneInput = window.intlTelInput(phoneInputField, options);\n    }\n\n    if(PARAM_isFinalWeblayer == 'Yes') {\n        showThankYou(banner);\n    }\n\n    initializeForm(banner);\n}\n\n/**\n * Function used to insert the banner HTML to the DOM\n * @param banner - html content of the banner\n * @param parentElement - element the banner is embedded in\n */\nfunction attachBannerToDom(banner, parentElement) {\n    // A pop-up sits in its own overlay at the end of the body\n    if (isPopup()) {\n        var overlay = document.createElement('div');\n        overlay.className = 'exp-fs-overlay';\n        overlay.style.backgroundColor = PARAM_popupOverlayColor;\n\n        if (isTransparentColor(PARAM_popupOverlayColor)) {\n            // No visible overlay, so the page behind stays clickable\n            overlay.classList.add('exp-fs-overlay--clear');\n        } else {\n            overlay.addEventListener('click', function(event) {\n                if (event.target === overlay) {\n                    closePopup(event);\n                }\n            });\n        }\n\n        overlay.appendChild(banner);\n        document.body.appendChild(overlay);\n        document.addEventListener('keydown', handleEscapeKey);\n\n        self.banner = banner;\n        self.container = overlay;\n        watchForRemoval();\n        return;\n    }\n\n    insertEmbedded(banner, parentElement);\n    self.banner = banner;\n    self.container = banner;\n    watchForRemoval();\n}\n\n/**\n * Inserts an embedded form relative to its parent element\n * @param banner - the banner element\n * @param parentElement - element the banner is embedded in\n */\nfunction insertEmbedded(banner, parentElement) {\n    // Body only supports inserting inside it\n    var position = parentElement === document.body \u0026\u0026 (insertPosition === 'beforebegin' || insertPosition === 'afterend') ? 'afterbegin' : insertPosition;\n\n    parentElement.insertAdjacentElement(position, banner);\n}\n\n/**\n * Puts the form back if the page removes it while the page is still loading. Sites built with\n * frameworks such as Next.js can redraw parts of the page once their own scripts load, which drops\n * anything a weblayer added. This only runs for a short time after the form appears, a limited number\n * of times, and never for a form that was closed, used to move on, or replaced on purpose\n */\nfunction watchForRemoval() {\n    var attempts = 0;\n    var observer = new MutationObserver(function() {\n        var container = self.container;\n\n        if (!container || self.removedOnPurpose || (self.banner \u0026\u0026 self.banner.getAttribute('data-exp-replaced') === 'true') || document.contains(container)) {\n            return;\n        }\n\n        if (attempts \u003e= REATTACH_LIMIT) {\n            observer.disconnect();\n            return;\n        }\n\n        if (isPopup()) {\n            attempts++;\n            document.body.appendChild(container);\n            return;\n        }\n\n        // The parent may have been redrawn too, so it is looked up again\n        var parentElement = document.querySelector(PARAM_parentElement);\n        if (parentElement) {\n            attempts++;\n            insertEmbedded(container, parentElement);\n        }\n    });\n\n    observer.observe(document.documentElement, { childList: true, subtree: true });\n\n    setTimeout(function() {\n        observer.disconnect();\n    }, REATTACH_WINDOW);\n}\n\n/**\n * Function used to remove the banner from the website\n */\nfunction removeBanner() {\n    // Marks the removal as intended, so the form is not put back\n    self.removedOnPurpose = true;\n\n    // In pop-up mode the overlay is removed along with the form\n    var container = self.container || self.banner;\n    if (container \u0026\u0026 container.parentNode) {\n        container.parentNode.removeChild(container);\n    }\n    document.removeEventListener('keydown', handleEscapeKey);\n}\n\n/**\n * Pop-up and placement functions\n */\n\n/**\n * Whether this weblayer is set to show as a pop-up\n * @returns boolean\n */\nfunction isPopup() {\n    return PARAM_displayMode === 'Pop-up';\n}\n\n/**\n * Where the form sits on the page, used to match the cookieless and Personalised versions of the same placement\n * @returns string\n */\nfunction getPlacementSlot() {\n    return isPopup() ? 'pop-up' : PARAM_parentElement.trim() + '|' + PARAM_insertPosition;\n}\n\n/**\n * Adds the pop-up position classes and the close button\n * @param banner - the banner element\n */\nfunction setUpPopup(banner) {\n    var vertical = { Top: 'top', Center: 'center', Bottom: 'bottom' }[PARAM_popupVertical] || 'center';\n    var horizontal = { Left: 'left', Center: 'center', Right: 'right' }[PARAM_popupHorizontal] || 'center';\n\n    banner.classList.add('exp-fs--popup', 'exp-fs--v-' + vertical, 'exp-fs--h-' + horizontal);\n    if (PARAM_popupFadeIn === 'yes') {\n        banner.classList.add('exp-fs--fade');\n    }\n    banner.setAttribute('role', 'dialog');\n\n    var closeButton = document.createElement('button');\n    closeButton.type = 'button';\n    closeButton.className = 'exp-fs-close';\n    closeButton.setAttribute('aria-label', 'Close');\n    closeButton.innerHTML = '\u0026times;';\n    closeButton.addEventListener('click', closePopup);\n    banner.insertAdjacentElement('afterbegin', closeButton);\n}\n\n/**\n * Closes the pop-up and tracks the close\n * @param event - browser event\n */\nfunction closePopup(event) {\n    if (event) {\n        event.preventDefault();\n        event.stopPropagation();\n    }\n    removeBanner();\n    trackEvent('close', true);\n    rememberPopupClosed();\n}\n\n/**\n * Closes the pop-up when Escape is pressed\n * @param event - keyboard event\n */\nfunction handleEscapeKey(event) {\n    if (event.key === 'Escape' || event.key === 'Esc') {\n        closePopup(event);\n    }\n}\n\n/**\n * Whether a colour param is fully transparent\n * @param color - colour from the param\n * @returns boolean\n */\nfunction isTransparentColor(color) {\n    var value = (color || '').replace(/\\s/g, '').toLowerCase();\n    return value === '' || value === 'transparent' || /^rgba\\(.*,0(\\.0*)?\\)$/.test(value) || /^#[0-9a-f]{6}00$/.test(value) || /^#[0-9a-f]{3}0$/.test(value);\n}\n\n/**\n * Whether the visitor has already closed a cookieless pop-up or signed up through a cookieless form in this browser session\n * @returns boolean\n */\nfunction popupClosedThisSession() {\n    if (!isPopup() || PARAM_popupRememberClose !== 'For the session') {\n        return false;\n    }\n    try {\n        return window.sessionStorage.getItem(POPUP_CLOSED_KEY) === '1';\n    } catch (e) {\n        return false;\n    }\n}\n\n/**\n * Remembers for this browser session that a pop-up was closed or a sign up was made, when popupRememberClose is set.\n * Embedded forms set it too, so a footer sign up stops the pop-ups\n */\nfunction rememberPopupClosed() {\n    if (PARAM_popupRememberClose !== 'For the session') {\n        return;\n    }\n    try {\n        window.sessionStorage.setItem(POPUP_CLOSED_KEY, '1');\n    } catch (e) {\n        // Session storage unavailable, so the pop-up can show again\n    }\n}\n\n/**\n * Function used to track single action\n * @param action - string\n * @param interactive - boolean\n */\nfunction trackEvent(action, interactive) {\n    if (action === 'show') {\n        trackAction('last_show');\n    }\n\n    if (interactive) {\n        trackAction('last_interaction')\n    }\n\n    self.sdk.track('banner', getEventProperties(action, interactive));\n}\n\n/**\n * Function used to add action tracking to element\n * @param link - element\n * @param action - string\n * @param interactive - boolean\n */\nfunction trackLink(link, action, interactive) {\n    var linkClickHandler = function() {\n        if (interactive) {\n            trackAction('last_interaction');\n        }\n    }\n    link.addEventListener('click', linkClickHandler);\n\n    var eventData = getEventProperties(action, interactive);\n    eventData.link = link.href;\n    self.sdk.trackLink(link, 'banner', eventData);\n}\n\n/**\n * Default attributes tracked with every banner event\n * @param action - string\n * @param interactive - boolean\n * @returns object - object to be tracked\n */\nfunction getEventProperties(action, interactive) {\n    return {\n        action: action,\n        action_id: self.data.node_id,\n        banner_id: self.data.banner_id,\n        banner_name: self.data.banner_name,\n        banner_type: self.data.banner_type,\n        campaign_id: self.data.campaign_id,\n        variant_id: self.data.variant_id,\n        variant_name: self.data.variant_name,\n        variant_origin: self.data.contextual_personalization != null ? 'contextual personalisation' : 'ABtest',\n        interaction: interactive !== false,\n    };\n}\n\n/**\n * Track an action with current time into localStorage if localStorage exists.\n * @param action - action name\n */\nfunction trackAction(action) {\n    if (!localStorageEnabled) {\n        return;\n    }\n\n    var actionKey = WEB_LAYER_EVENT_STORAGE_KEY_PREFIX + webLayerID + '_' + action;\n    window.localStorage.setItem(actionKey, new Date().valueOf().toString());\n}\n\n/**\n * Public API functions\n */\n\n/**\n * Returns the API base URL and project token, falling back to the SDK configuration on the page\n * @returns object\n */\nfunction getApiConfig() {\n    var sdkConfig = (window.exponea \u0026\u0026 window.exponea.configuration) || {};\n\n    return {\n        baseUrl: (PARAM_apiBaseUrl.trim() || sdkConfig.target || 'https://api.exponea.com').replace(/\\/+$/, ''),\n        projectToken: PARAM_projectToken.trim() || sdkConfig.token || '',\n        apiToken: PARAM_publicApiToken.trim()\n    };\n}\n\n/**\n * Returns the cookie soft ID the SDK stores in the first-party __exponea_etc__ cookie\n * https://documentation.bloomreach.com/engagement/docs/cookies-storage\n * @returns string - empty when the SDK has not set the cookie, e.g. before tracking consent\n */\nfunction getSdkCookieId() {\n    var match = document.cookie.match(/(?:^|;\\s*)__exponea_etc__=([^;]*)/);\n\n    if (!match) {\n        return '';\n    }\n\n    try {\n        return decodeURIComponent(match[1]).trim();\n    } catch (e) {\n        return match[1].trim();\n    }\n}\n\n/**\n * Whether the visitor has accepted cookies right now. Uses the OneTrust consent cookie, which updates as soon as\n * the visitor accepts or rejects, so a Bloomreach cookie left in the browser after rejecting is ignored.\n * With consentGroupId set, that exact category must be accepted. Without it, any accepted optional category counts.\n * If OneTrust has not recorded a choice at all, it falls back to the Bloomreach cookie existing\n * @returns boolean\n */\nfunction hasTrackingConsent() {\n    var group = PARAM_consentGroupId.trim();\n    var choices = getOneTrustChoices();\n\n    if (group) {\n        return !!choices \u0026\u0026 choices.indexOf(group + ':1') !== -1;\n    }\n\n    if (choices) {\n        // C0001 is OneTrust's strictly necessary category, which is always on, so it does not count as consent\n        var acceptedOptional = choices.some(function(entry) {\n            return /:1$/.test(entry) \u0026\u0026 entry.indexOf('C0001:') !== 0;\n        });\n        return acceptedOptional \u0026\u0026 !!getSdkCookieId();\n    }\n\n    return !!getSdkCookieId();\n}\n\n/**\n * Reads the visitor's choices from the OneTrust consent cookie, e.g. ['C0001:1', 'C0004:0']\n * @returns array, or null when OneTrust has not recorded a choice\n */\nfunction getOneTrustChoices() {\n    var cookie = document.cookie.match(/(?:^|;\\s*)OptanonConsent=([^;]*)/);\n    if (!cookie) {\n        return null;\n    }\n\n    var groups = (cookie[1].match(/(?:^|\u0026)groups=([^\u0026]*)/) || [])[1];\n    if (!groups) {\n        return null;\n    }\n\n    try {\n        groups = decodeURIComponent(groups);\n    } catch (e) {\n        // Leave the value as it is\n    }\n\n    return groups.split(',').map(function(entry) {\n        return entry.trim();\n    }).filter(function(entry) {\n        return !!entry;\n    });\n}\n\n/**\n * Sends the commands to the batch endpoint of the public API\n * https://documentation.bloomreach.com/engagement/reference/batch-commands-2\n * @param commands - array of batch commands\n * @returns {Promise\u003cobject\u003e} - resolves with the API response, rejects on failure\n */\nfunction sendBatch(commands) {\n    var config = getApiConfig();\n\n    if (!config.projectToken) {\n        return Promise.reject(new Error('No project token set and none found on the page SDK'));\n    }\n\n    var headers = { 'Content-Type': 'application/json' };\n    if (config.apiToken) {\n        headers['Authorization'] = 'Token ' + config.apiToken;\n    } else {\n        console.warn('Exponea: no public API token set, sending the sign up without authorization');\n    }\n\n    return fetch(config.baseUrl + '/track/v2/projects/' + encodeURIComponent(config.projectToken) + '/batch', {\n        method: 'POST',\n        headers: headers,\n        body: JSON.stringify({ commands: commands })\n    }).then(function(response) {\n        return response.json().catch(function() {\n            return {};\n        }).then(function(body) {\n            if (!response.ok || body.success === false) {\n                throw new Error('API responded with ' + response.status + ' ' + JSON.stringify(body));\n            }\n\n            // A successful batch can still contain failed commands, these are logged but do not block the sign up\n            (body.results || []).forEach(function(result) {\n                if (!result.success) {\n                    console.error('Exponea: command ' + result.command_id + ' failed', result.errors);\n                }\n            });\n\n            return body;\n        });\n    });\n}\n\n/**\n * Builds the batch commands for a sign up\n * @param customerIds - object of customer IDs\n * @param attributes - customer attributes from the form\n * @param eventProperties - properties of the sign up event\n * @param consents - array of consent categories\n * @param signupSource - string\n * @returns array\n */\nfunction buildSignUpCommands(customerIds, attributes, eventProperties, consents, signupSource) {\n    var timestamp = Date.now() / 1000;\n    var commands = [];\n\n    if (PARAM_updateCustomer == 'yes' \u0026\u0026 Object.keys(attributes).length \u003e 0) {\n        commands.push({\n            name: 'customers',\n            command_id: 'update_customer',\n            data: {\n                customer_ids: customerIds,\n                properties: attributes,\n                update_timestamp: timestamp\n            }\n        });\n    }\n\n    commands.push({\n        name: 'customers/events',\n        command_id: 'sign_up',\n        data: {\n            customer_ids: customerIds,\n            event_type: PARAM_subscribeEventType.trim() || 'banner',\n            timestamp: timestamp,\n            properties: eventProperties\n        }\n    });\n\n    // Send consent events alongside the sign up if \"Using Public API\" is set\n    if (PARAM_consentScenario == 'Using Public API') {\n        consents.forEach(function(category) {\n            commands.push({\n                name: 'customers/events',\n                command_id: 'consent_' + category,\n                data: {\n                    customer_ids: customerIds,\n                    event_type: 'consent',\n                    timestamp: timestamp,\n                    properties: {\n                        action: 'accept',\n                        category: category,\n                        valid_until: 'unlimited',\n                        message: signupSource,\n                        location: window.location.href\n                    }\n                }\n            });\n        });\n    }\n\n    return commands;\n}\n\n/**\n * Template specific functions\n */\n\n/**\n * Method used to dynamically load new stylesheet into the page\n * @param href\n * @returns {Promise\u003cboolean\u003e}\n */\nfunction loadStylesheet(href) {\n    return new Promise(function (resolve) {\n        if (document.querySelector('link[href=\"' + href + '\"]')) {\n            return resolve(true);\n        }\n        var l = document.createElement('link');\n        l.rel = 'stylesheet';\n        l.href = href;\n        document.head.appendChild(l);\n        resolve(true);\n    });\n}\n\n/**\n * Converts string in format \"us, gb\" to array [\"us\", \"gb\"]\n * @param string\n */\nfunction stringToArray(string) {\n    return (string || '').split(',').map(function(item) {\n        return item.trim();\n    }).filter(function(item) {\n        return !!item\n    });\n}\n\n/**\n * Method used to dynamically load new javascript into the page\n * @param src\n * @returns {Promise\u003cboolean\u003e}\n */\nfunction loadScript(src) {\n    return new Promise(function(resolve) {\n        setTimeout(function() {\n            var el = document.querySelector(`body \u003e script[src='${src}']`);\n            if (el) {\n                return el['loaded'] || window.intlTelInput ? resolve(true) : attachLoadListener(el);\n            }\n            var script = document.createElement('script');\n            script.src = src;\n            script.defer = true;\n            script['loaded'] = false;\n            attachLoadListener(script);\n            document.body.appendChild(script);\n\n            function attachLoadListener(element) {\n                element.addEventListener('load', function() {\n                    element['loaded'] = true;\n                    resolve(true);\n                });\n            }\n        });\n    });\n}\n\n/**\n * Initialize the banner form submit button\n */\nfunction initializeForm(banner) {\n    var phoneInput = banner.querySelector('input[name=\"phone\"]');\n    var emailInput = banner.querySelector('input[name=\"email\"]');\n    var form = banner.querySelector('#exponea-form');\n    var submitButton = banner.querySelector('.button.submit');\n\n    form.querySelectorAll('input, select').forEach(function(input) {\n        input.addEventListener('input', function () {\n            toggleInvalidState(false, banner, input);\n        });\n    });\n\n    form.onsubmit = function (event) {\n        event.preventDefault();\n\n        if (submitButton.disabled) {\n            return false;\n        }\n\n        var eventProperties = getEventProperties('subscribe');\n        var signupSource = PARAM_source !== 'banner.name' \u0026\u0026 PARAM_source !== '' ? PARAM_source : self.data.banner_name;\n        var attributes = {};\n        // Selects are included so that dropdown optional inputs are stored and tracked too\n        var attributeInputs = banner.querySelectorAll('form input[name]:not([name=\"\"]), form select[name]:not([name=\"\"])');\n\n        // Required inputs are checked in form order so the first empty one gets the message\n        var missing = Array.prototype.find.call(attributeInputs, function(input) {\n            return input.required \u0026\u0026 (input.type == 'checkbox' ? !input.checked : input.value.trim() === '');\n        });\n        if (missing) {\n            toggleInvalidState(true, banner, missing, PARAM_requiredMessage);\n            return false;\n        }\n\n        // email validation if input exists\n        if(emailInput) {\n            if (!validateEmail(emailInput.value.trim().toLowerCase())) {\n                toggleInvalidState(true, banner, emailInput, PARAM_invalidEmailMessage);\n                return false;\n            }\n        }\n\n        // Phone number validation if input exists\n        if(phoneInput) {\n            if (!banner.phoneInput.isValidNumber()) {\n                toggleInvalidState(true, banner, phoneInput, PARAM_invalidNumberMessage);\n                return false;\n            }\n\n            // Check if selected country is in onlyCountries\n            var onlyCountries = stringToArray(PARAM_onlyCountries);\n            var selectedCountry = banner.phoneInput.getSelectedCountryData();\n            if (onlyCountries.length \u003e 0 \u0026\u0026 (!selectedCountry || !selectedCountry.iso2 || !onlyCountries.includes(selectedCountry.iso2))) {\n                toggleInvalidState(true, banner, phoneInput, PARAM_invalidNumberMessage);\n                return false;\n            }\n        }\n\n        attributeInputs.forEach(function(input) {\n            var value;\n\n            if(input.name == 'phone') {\n                value = banner.phoneInput.getNumber();\n            } else if(input.name == 'email') {\n                value = input.value.trim().toLowerCase();\n            } else if (input.tagName == 'SELECT') {\n                // Skip the placeholder option so an unanswered dropdown is not stored\n                if (input.value === '') {\n                    return;\n                }\n                value = input.value;\n            } else if (input.type == 'checkbox') {\n                value = input.checked ? input.value : false;\n            } else if (input.type == 'date') {\n                // Skip an empty date rather than storing NaN\n                if (input.value === '') {\n                    return;\n                }\n                value = new Date(input.value).getTime() / 1000;\n            } else {\n                value = input.value.trim();\n                // Skip empty optional text inputs so they do not blank existing attributes\n                if (value === '') {\n                    return;\n                }\n            }\n\n            attributes[input.name] = value;\n            eventProperties[input.name] = value;\n        });\n\n        // Customer IDs for the API call, mapped from the configured inputs\n        var identifyIds = stringToArray(PARAM_identifyIdName);\n        var identifyInputs = PARAM_identifyInput == 'both' ? ['email', 'phone'] : [PARAM_identifyInput];\n        var customerIds = {};\n\n        identifyIds.forEach(function(iid, i) {\n            var inputName = identifyInputs[i];\n            if (inputName \u0026\u0026 attributes[inputName]) {\n                customerIds[iid] = attributes[inputName];\n            } else if (inputName) {\n                console.warn(\"Exponea: No form input found matching your identification input, \" + inputName + \". Skipping this identification.\");\n            }\n        });\n\n        if (Object.keys(customerIds).length === 0) {\n            console.error('Exponea: no customer ID could be built from the form, check identifyFormInput and identifyIdsToUpdate');\n            showSubmitError(banner, PARAM_submitErrorMessage);\n            return false;\n        }\n\n        // Link the browser's anonymous profile, only added alongside a form ID so a sign up is never cookie only,\n        // and only while the visitor has accepted cookies, so an old cookie left after rejecting is never used\n        if (PARAM_mergeWithCookie == 'yes' \u0026\u0026 hasTrackingConsent()) {\n            var cookieId = getSdkCookieId();\n            if (cookieId) {\n                customerIds.cookie = cookieId;\n            }\n        }\n\n        var consents = stringToArray(PARAM_consentCategories);\n\n        if (PARAM_consentScenario != 'Using Public API' \u0026\u0026 consents.length \u003e 0) {\n            eventProperties.consent_category = consents;\n        }\n\n        eventProperties.sign_up_source = signupSource;\n        eventProperties.signup_template = SIGN_UP_TEMPLATE;\n        eventProperties.location = window.location.href;\n\n        var commands = buildSignUpCommands(customerIds, attributes, eventProperties, consents, signupSource);\n\n        // Never send real sign ups from the editor preview\n        if (self.inPreview) {\n            console.info('Exponea: preview mode, sign up not sent. Commands:', commands);\n            completeSignUp(banner);\n            return false;\n        }\n\n        setSubmitting(banner, true);\n\n        sendBatch(commands).then(function() {\n            trackAction('last_interaction');\n            rememberPopupClosed();\n            completeSignUp(banner);\n        }).catch(function(error) {\n            console.error('Exponea: sign up failed. ' + error.message);\n            showSubmitError(banner, PARAM_submitErrorMessage);\n        }).then(function() {\n            setSubmitting(banner, false);\n        });\n\n        return false;\n    };\n}\n\n/**\n * Moves on to the next weblayer or the thank you step once the sign up has been sent\n */\nfunction completeSignUp(banner) {\n    if(PARAM_nextWeblayerId !== 'None' \u0026\u0026 PARAM_nextWeblayerId.length \u003e 0) {\n        self.sdk.showBanner(PARAM_nextWeblayerId, {}, true, function() {\n            removeBanner();\n        });\n    } else {\n        showThankYou(banner);\n    }\n}\n\n/**\n * Disables the submit button while the API call is in flight\n */\nfunction setSubmitting(banner, submitting) {\n    var submitButton = banner.querySelector('.button.submit');\n    submitButton.disabled = submitting;\n    submitButton.setAttribute('aria-busy', submitting ? 'true' : 'false');\n    banner.classList.toggle('exp-fs--submitting', submitting);\n\n    if (submitting) {\n        showSubmitError(banner, '');\n    }\n}\n\n/**\n * Shows an error message beneath the form, pass an empty message to clear it\n */\nfunction showSubmitError(banner, message) {\n    var error = banner.querySelector('.exp-fs-error');\n    error.textContent = message;\n    error.classList.toggle('visible', message !== '');\n}\n\n/**\n * Move to Thank you step after submitting the form\n */\nfunction showThankYou(banner) {\n    var stepOne = banner.querySelector('.step-one');\n    var stepTwo = banner.querySelector('.step-two');\n    stepOne.style.display = 'none';\n    stepTwo.style.display = '';\n\n    var textDisplay = banner.querySelector('.step-two #exponea-voucher');\n\n    if(PARAM_enableVoucherCopyIcon == 'true' \u0026\u0026 textDisplay \u0026\u0026 !textDisplay.querySelector('i')) {\n        // Create the copy icon element\n        var copyIcon = document.createElement('i');\n        copyIcon.innerHTML = '\u003csvg class=\"feather feather-copy\" fill=\"none\" height=\"20\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" viewBox=\"0 0 24 24\" width=\"20\" xmlns=\"http://www.w3.org/2000/svg\"\u003e\u003crect height=\"13\" rx=\"2\" ry=\"2\" width=\"13\" x=\"9\" y=\"9\"/\u003e\u003cpath d=\"M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1\"/\u003e\u003c/svg\u003e';\n\n        textDisplay.appendChild(copyIcon);\n\n        // add copy listener\n        textDisplay.addEventListener(\"click\", function(e) {\n            e.preventDefault();\n            copyTextToClipboard(textDisplay.textContent.trim());\n            copyIcon.innerHTML = '\u003csvg class=\"feather feather-check\" fill=\"none\" height=\"20\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" viewBox=\"0 0 24 24\" width=\"20\" xmlns=\"http://www.w3.org/2000/svg\"\u003e\u003cpolyline points=\"20 6 9 17 4 12\"/\u003e\u003c/svg\u003e';\n            window.setTimeout(function() {\n                copyIcon.innerHTML = '\u003csvg class=\"feather feather-copy\" fill=\"none\" height=\"20\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" viewBox=\"0 0 24 24\" width=\"20\" xmlns=\"http://www.w3.org/2000/svg\"\u003e\u003crect height=\"13\" rx=\"2\" ry=\"2\" width=\"13\" x=\"9\" y=\"9\"/\u003e\u003cpath d=\"M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1\"/\u003e\u003c/svg\u003e';\n            }, 1500);\n        });\n    }\n\n    // An embedded form goes back to an empty form after the delay, a pop-up closes instead\n    var resetDelay = parseInt(PARAM_thankYouResetDelay, 10);\n    if (resetDelay \u003e 0) {\n        setTimeout(function() {\n            if (isPopup()) {\n                removeBanner();\n                return;\n            }\n            banner.querySelector('#exponea-form').reset();\n            stepTwo.style.display = 'none';\n            stepOne.style.display = '';\n        }, resetDelay);\n    }\n}\n\n\n/**\n * Fallback copy option\n */\nfunction fallbackCopyTextToClipboard(text) {\n  var textArea = document.createElement(\"textarea\");\n  textArea.value = text;\n\n  // Avoid scrolling to bottom\n  textArea.style.top = \"0\";\n  textArea.style.left = \"0\";\n  textArea.style.position = \"fixed\";\n\n  document.body.appendChild(textArea);\n  textArea.focus();\n  textArea.select();\n\n  try {\n    var successful = document.execCommand('copy');\n    var msg = successful ? 'successful' : 'unsuccessful';\n    console.log('Fallback: Copying text command was ' + msg);\n  } catch (err) {\n    console.error('Fallback: Oops, unable to copy', err);\n  }\n\n  document.body.removeChild(textArea);\n}\n\n/**\n * Copy text to clipboard\n */\nfunction copyTextToClipboard(text) {\n  if (!navigator.clipboard) {\n    fallbackCopyTextToClipboard(text);\n    return;\n  }\n  navigator.clipboard.writeText(text).then(function() {\n    console.log('Async: Copying to clipboard was successful!');\n  }, function(err) {\n    console.error('Async: Could not copy text: ', err);\n  });\n}\n\n/**\n * Shows or hides invalid state for an input, with the message beneath the form\n */\nfunction toggleInvalidState(invalid, banner, input, message = '') {\n    var fieldset = input.closest('fieldset');\n\n    if (invalid) {\n        input.setAttribute('aria-invalid', 'true');\n        if (fieldset) {\n            fieldset.classList.add('invalid');\n        }\n        showSubmitError(banner, message);\n        input.focus();\n    } else {\n        input.removeAttribute('aria-invalid');\n        if (fieldset) {\n            fieldset.classList.remove('invalid');\n        }\n        showSubmitError(banner, '');\n    }\n}\n\n/**\n * Validates if provided email is valid\n */\nfunction validateEmail(email) {\n    return email \u0026\u0026 /^\\S+@\\S+\\.\\S+$/.test(email);\n}\n\n/**\n * Register the start trigger and return required removal function\n */\n\nregisterStartTrigger();\nreturn {\n    remove: removeBanner,\n}; };\ninsertBanner.remove = (insertBanner.script.call(insertBanner) || {} ).remove;\ninsertBanner.contextual_personalization = {};\nreturn insertBanner;\n})({\"banner_id\": \"6ad8b11793bfaecb6230253a\", \"banner_name\": \"Sign Up Footer (Non-Personalised)\", \"banner_type\": \"medium_rectangle\", \"banner_group\": \"\", \"variant_id\": 0, \"variant_name\": \"Variant A\"});","variables_target":null,"page_vars":[]},{"_id":"6aeb22131f9e4b468a43b0a9","date_filter":{"enabled":false,"from_date":null,"to_date":null},"trigger":{"include_pages":[{"url":"https://www.newcastleunited.com/","type":"contains"}],"exclude_pages":null},"smart_trigger":null,"device_target":{"type":"any"},"frequency":"always","uses_personalization":true,"data":"","variables_target":null,"page_vars":[]},{"_id":"6af197aa86486601830578c6","date_filter":{"enabled":false,"from_date":null,"to_date":null},"trigger":{"include_pages":[{"url":"https://shop.newcastleunited.com/pages/scan-the-stripes","type":"contains"}],"exclude_pages":null},"smart_trigger":null,"device_target":{"type":"any"},"frequency":"always","uses_personalization":false,"data":"return (function insertBanner(data) {\ninsertBanner.inPreview = false;\ninsertBanner.sdk = window.exponea;\ninsertBanner.data = data;\ninsertBanner.html = \"\u003cdiv id=\\\"exponea-greyout\\\"\u003e\\n    \u003cdiv class=\\\"banner-item weblayer--box-subscription\\\"\u003e\\n        \u003cbutton aria-label=\\\"Close\\\" class=\\\"close-icon close\\\"\u003e\\n            \u003csvg class=\\\"close-icon-svg\\\" width=\\\"16\\\" height=\\\"16\\\" viewBox=\\\"0 0 16 16\\\" fill=\\\"none\\\" xmlns=\\\"http://www.w3.org/2000/svg\\\"\u003e\\n                \u003cpath d=\\\"M2.99867 13L12.998 3\\\" stroke=\\\"rgba(255,255,255,0.7)\\\" stroke-width=\\\"1.5\\\" stroke-linecap=\\\"round\\\" stroke-linejoin=\\\"round\\\"/\u003e\\n                \u003cpath d=\\\"M12.9987 13L2.998 3\\\" stroke=\\\"rgba(255,255,255,0.7)\\\" stroke-width=\\\"1.5\\\" stroke-linecap=\\\"round\\\" stroke-linejoin=\\\"round\\\"/\u003e\\n            \u003c/svg\u003e\\n        \u003c/button\u003e\\n\\n        \u003cdiv class=\\\"inner step-one\\\"\u003e\\n            \u003cdiv class=\\\"image-surround step-one-image-surround\\\"\u003e\\n                \u003cimg class=\\\"main-image\\\" src=\\\"\\\" alt=\\\"\\\"/\u003e\\n            \u003c/div\u003e\\n            \u003cdiv class=\\\"form-inner\\\"\u003e\\n                \u003cp class=\\\"text line-one\\\"\u003e\u003c/p\u003e\\n                \u003ch6 class=\\\"heading\\\"\u003e\u003c/h6\u003e\\n                \u003cp class=\\\"text line-two\\\"\u003e\u003c/p\u003e\\n\\n                \u003cform id=\\\"exponea-form\\\"\u003e\\n                    \u003cdiv id=\\\"exponea-main-fieldsets\\\"\u003e\\n                        \u003cfieldset class=\\\"firstname_fieldset\\\"\u003e\\n                            \u003clabel for=\\\"first_name\\\" class=\\\"input-label firstname-label\\\"\u003e\u003c/label\u003e\\n                            \u003cinput name=\\\"first_name\\\" id=\\\"first_name\\\" type=\\\"text\\\" required class=\\\"first_name\\\"\u003e\\n                        \u003c/fieldset\u003e\\n                        \u003cfieldset class=\\\"lastname_fieldset\\\"\u003e\\n                            \u003clabel for=\\\"last_name\\\" class=\\\"input-label lastname-label\\\"\u003e\u003c/label\u003e\\n                            \u003cinput name=\\\"last_name\\\" id=\\\"last_name\\\" type=\\\"text\\\" required class=\\\"last_name\\\"\u003e\\n                        \u003c/fieldset\u003e\\n                        \u003cfieldset class=\\\"email_fieldset\\\"\u003e\\n                            \u003clabel for=\\\"email\\\" class=\\\"input-label email-label\\\"\u003e\u003c/label\u003e\\n                            \u003cinput name=\\\"email\\\" id=\\\"email\\\" type=\\\"email\\\" required class=\\\"email\\\"\u003e\\n                        \u003c/fieldset\u003e\\n\\n                        \u003cdiv class=\\\"exponea-consents\\\"\u003e\\n                            \u003cfieldset class=\\\"fieldset\\\"\u003e\\n                                \u003clabel for=\\\"consent_newcastle\\\" class=\\\"checkbox-label\\\"\u003e\\n                                    \u003cinput type=\\\"checkbox\\\" name=\\\"consent_newcastle\\\" id=\\\"consent_newcastle\\\" value=\\\"true\\\" class=\\\"consent_newcastle\\\"\u003e\\n                                    \u003cp class=\\\"consent-text\\\"\u003e\\n                                        \u003cspan class=\\\"consent-text-inner newcastle-consent-text\\\"\u003e\u003c/span\u003e\\n                                        \u003ca href=\\\"https://www.newcastleunited.com/en/privacy-policy\\\" target=\\\"_blank\\\" rel=\\\"noopener\\\" class=\\\"link consent-link newcastle-consent-link\\\"\u003e\u003c/a\u003e\\n                                    \u003c/p\u003e\\n                                \u003c/label\u003e\\n                            \\n                        \u003c/div\u003e\\n                    \u003c/div\u003e\\n                    \u003cbutton type=\\\"submit\\\" class=\\\"button submit\\\"\u003e\u003c/button\u003e\\n                \u003c/form\u003e\\n\\n                \u003cbutton id=\\\"noThanksButton\\\" class=\\\"button close\\\"\u003e\u003c/button\u003e\\n\\n                \u003cp class=\\\"conditions\\\"\u003e\\n                    \u003cspan class=\\\"conditions-text\\\"\u003e\u003c/span\u003e\\n                    \u003ca href=\\\"#\\\" class=\\\"link conditions-link\\\"\u003e\u003c/a\u003e\\n                \u003c/p\u003e\\n            \u003c/div\u003e\\n        \u003c/div\u003e\\n\\n        \u003cdiv class=\\\"inner step-two\\\" style=\\\"display: none;\\\"\u003e\\n            \u003cdiv class=\\\"image-surround step-two-image-surround\\\"\u003e\\n                \u003cimg class=\\\"thank-you-image\\\" src=\\\"\\\" alt=\\\"\\\"/\u003e\\n            \u003c/div\u003e\\n            \u003cdiv class=\\\"form-inner\\\"\u003e\\n                \u003cp class=\\\"heading thank-you-heading\\\"\u003e\u003c/p\u003e\\n                \u003cp class=\\\"text thank-you-message\\\"\u003e\u003c/p\u003e\\n                \u003cp id=\\\"exponea-voucher\\\"\u003e\u003c/p\u003e\\n                \u003ca\\n    id=\\\"thankYouButton\\\"\\n    class=\\\"button\\\"\\n    href=\\\"\\\"\\n    target=\\\"_blank\\\"\\n    rel=\\\"noopener noreferrer\\\"\\n\u003e\u003c/a\u003e\\n            \u003c/div\u003e\\n        \u003c/div\u003e\\n    \u003c/div\u003e\\n\u003c/div\u003e\\n\";\ninsertBanner.style = \"#exponea-greyout {\\n  position: fixed;\\n  top: 0;\\n  left: 0;\\n  right: 0;\\n  bottom: 0;\\n  z-index: 2147482999;\\n  background-color: var(--greyout-color, rgba(0, 0, 0, 0.45));\\n}\\n\\n#exponea-greyout.is-inline {\\n  position: static;\\n  pointer-events: none;\\n  background-color: transparent;\\n}\\n\\n#exponea-greyout.no-greyout {\\n  pointer-events: none;\\n}\\n\\n.weblayer--box-subscription {\\n  display: flex;\\n  box-sizing: border-box;\\n  font-size: 1rem;\\n  line-height: normal;\\n  text-decoration: inherit;\\n  cursor: default;\\n  max-width: var(--box-width, 320px);\\n  max-height: 100vh;\\n  z-index: 2147483000;\\n  pointer-events: auto;\\n  width: var(--box-width, 320px);\\n  position: fixed;\\n  box-shadow: 0 0.25em 0.5em rgba(0, 0, 0, 0.4);\\n  border-radius: var(--box-border-radius, 8px);\\n  font-family: var(--font-family, Arial, Helvetica, sans-serif);\\n  background-color: var(--background-color, rgba(0, 0, 0, 0.2));\\n  background-image: var(--background-image, none);\\n  background-position: center center;\\n  background-repeat: no-repeat;\\n  background-size: cover;\\n  margin: var(--edge-offset, 10px);\\n}\\n\\n#exponea-greyout.is-inline .weblayer--box-subscription {\\n  position: relative;\\n  box-shadow: none;\\n}\\n\\n@media only screen and (max-width: 780px) {\\n  .weblayer--box-subscription {\\n    width: var(--box-width-mobile, 95%);\\n    margin: 0px;\\n  }\\n\\n  .weblayer--box-subscription.hide-image-mobile .image-surround {\\n    display: none;\\n  }\\n}\\n\\n.weblayer--box-subscription * {\\n  box-sizing: border-box;\\n  outline: none;\\n}\\n\\n.weblayer--box-subscription .inner {\\n  flex-wrap: nowrap;\\n  display: flex;\\n  width: 100%;\\n  margin: 0 auto;\\n  flex-direction: var(--image-direction, column);\\n  align-items: center;\\n  justify-content: center;\\n  padding: var(--inner-padding, 20px);\\n}\\n\\n.form-inner {\\n  padding: var(--inner-form-padding, 0px);\\n}\\n\\n.weblayer--box-subscription #exponea-form {\\n  width: 100%;\\n}\\n\\n.weblayer--box-subscription #exponea-form \u003e * {\\n  width: 100%;\\n}\\n\\n.weblayer--box-subscription p,\\n.weblayer--box-subscription h6 {\\n  text-align: var(--text-alignment, center);\\n}\\n\\n.weblayer--box-subscription .text.line-one {\\n  font-size: var(--text-line-one-size, 14px);\\n  font-weight: var(--text-line-one-weight, bold);\\n  line-height: 1.3;\\n  color: var(--text-line-one-color, #F84CAC);\\n  margin: 0;\\n  padding: 0 0 var(--text-line-one-spacing, 10px);\\n}\\n\\n.weblayer--box-subscription .heading {\\n  font-size: var(--heading-size, 14px);\\n  font-weight: var(--heading-weight, bold);\\n  line-height: 1.3;\\n  color: var(--heading-color, #FFFFFF);\\n  margin: 0;\\n  padding: 0 0 var(--heading-spacing, 10px);\\n}\\n\\n.weblayer--box-subscription .text.line-two {\\n  font-size: var(--main-text-size, 14px);\\n  font-weight: var(--main-text-weight, bold);\\n  line-height: 1.3;\\n  color: var(--main-text-color, #FFFFFF);\\n  margin: 0;\\n  padding: 0 0 var(--main-text-spacing, 10px);\\n}\\n\\n.weblayer--box-subscription .inner.step-one .conditions {\\n  width: 100%;\\n  line-height: 1.3;\\n  font-size: var(--conditions-size, 14px);\\n  font-weight: var(--conditions-weight, bold);\\n  color: var(--conditions-color, #FFFFFF);\\n  margin: 1.5em 0;\\n}\\n\\n.weblayer--box-subscription .inner.step-one .conditions \u003e .link {\\n  color: var(--conditions-link-color, #F84CAC);\\n  text-decoration: underline;\\n}\\n\\n.weblayer--box-subscription .inner.step-one .conditions \u003e .link:hover {\\n  filter: brightness(96%);\\n}\\n\\n.weblayer--box-subscription .inner.step-one .conditions \u003e .link:focus {\\n  outline: none;\\n}\\n\\n.weblayer--box-subscription .inner.step-two .heading {\\n  font-size: var(--thank-you-heading-size, 14px);\\n  font-weight: var(--thank-you-heading-weight, bold);\\n  line-height: 1.3;\\n  color: var(--thank-you-heading-color, #FFFFFF);\\n  margin: 0;\\n  padding: 0 0 var(--thank-you-heading-spacing, 10px);\\n}\\n\\n.weblayer--box-subscription .inner.step-two .text {\\n  font-size: var(--thank-you-message-size, 14px);\\n  font-weight: var(--thank-you-message-weight, bold);\\n  line-height: 1.3;\\n  color: var(--thank-you-message-color, #FFFFFF);\\n  margin: 0;\\n  padding: 0 0 var(--thank-you-message-spacing, 10px);\\n}\\n\\n.weblayer--box-subscription .image-surround {\\n  width: 100%;\\n}\\n\\n.weblayer--box-subscription .image-surround img {\\n  width: var(--image-width, 100%);\\n}\\n\\n.weblayer--box-subscription .image-surround img[src=\\\"\\\"] {\\n  display: none;\\n}\\n\\n.weblayer--box-subscription.hide-step-two-image .inner.step-two .image-surround {\\n  display: none;\\n}\\n\\n.input-label {\\n  display: var(--input-label-display, none);\\n  padding-bottom: 5px;\\n  font-size: var(--input-text-size, 14px);\\n  color: var(--main-text-color, #FFFFFF);\\n}\\n\\n#exponea-form fieldset {\\n  border: 0px;\\n  padding: 0px;\\n  margin: 0px 0px 10px;\\n}\\n\\n.weblayer--box-subscription #exponea-form input:not([type='checkbox']) {\\n  font-size: var(--input-text-size, 14px);\\n  font-weight: normal;\\n  text-align: left;\\n  line-height: 1.3;\\n  font-family: inherit;\\n  box-shadow: none;\\n  outline: none;\\n  width: 100%;\\n  min-height: auto;\\n  max-width: 100%;\\n  resize: vertical;\\n  margin: 0px;\\n  cursor: text;\\n  background-color: #FFFFFF;\\n  border-width: 1px;\\n  border-style: solid;\\n  border-color: var(--input-border-color, #FFFFFF);\\n  border-radius: var(--input-border-radius, 0px);\\n  padding: 0.5em 1em;\\n}\\n\\n.exponea-consents {\\n  display: flex;\\n  flex-direction: column;\\n  gap: 8px;\\n  margin: 1em 0 1em;\\n}\\n\\n.exponea-consents .fieldset {\\n  width: 100%;\\n  margin: 0;\\n}\\n\\n.exponea-consents .checkbox-label {\\n  width: 100%;\\n  display: flex;\\n  flex-direction: row;\\n  align-items: flex-start;\\n  justify-content: start;\\n  cursor: pointer;\\n}\\n\\n.exponea-consents .checkbox-label input {\\n  width: 18px !important;\\n  min-width: 18px;\\n  margin-top: 3px;\\n  cursor: pointer;\\n}\\n\\n.exponea-consents .consent-text {\\n  padding-left: 8px;\\n  font-size: var(--conditions-size, 14px);\\n  font-weight: var(--conditions-weight, bold);\\n  color: var(--conditions-color, #FFFFFF);\\n  line-height: 1.3;\\n  margin: 0;\\n  text-align: left;\\n}\\n\\n.exponea-consents .consent-link {\\n  color: var(--conditions-link-color, #F84CAC);\\n  text-decoration: underline;\\n}\\n\\n.exponea-consents .consent-link:hover {\\n  filter: brightness(96%);\\n}\\n\\n.weblayer--box-subscription .button {\\n  width: 100%;\\n  font-weight: bold;\\n  line-height: 1.3;\\n  font-family: inherit;\\n  border: none;\\n  text-decoration: none;\\n  margin: 0;\\n  user-select: none;\\n  outline: none;\\n  height: var(--button-height, 30px);\\n}\\n\\n.weblayer--box-subscription .button.submit,\\n.weblayer--box-subscription .step-two .button {\\n  border-style: solid;\\n  font-size: var(--button-text-size, 14px);\\n  color: var(--button-text-color, #FFFFFF);\\n  background: var(--button-background-color, #59CE72);\\n  border-width: var(--button-border-width, 0px);\\n  border-color: var(--button-border-color, rgba(0, 0, 0, 0));\\n  border-radius: var(--button-border-radius, 0px);\\n  cursor: pointer;\\n}\\n\\n.weblayer--box-subscription .step-one .button.close {\\n  border-style: solid;\\n  font-size: var(--no-thanks-text-size, 12px);\\n  color: var(--no-thanks-text-color, #FFFFFF);\\n  background: var(--no-thanks-background-color, rgba(0, 0, 0, 0));\\n  border-width: var(--no-thanks-border-width, 0px);\\n  border-color: var(--no-thanks-border-color, rgba(0, 0, 0, 0));\\n  border-radius: var(--no-thanks-border-radius, 0px);\\n  cursor: pointer;\\n  margin-top: 1em;\\n}\\n\\n.weblayer--box-subscription .button:hover {\\n  filter: brightness(105%);\\n}\\n\\n.weblayer--box-subscription .button:focus {\\n  outline: none;\\n  filter: brightness(95%);\\n}\\n\\n.weblayer--box-subscription #exponea-voucher {\\n  font-size: var(--heading-size, 14px);\\n  font-weight: bold;\\n  line-height: 1.3;\\n  color: var(--heading-color, #FFFFFF);\\n  text-align: center;\\n  margin: 10px auto;\\n  display: flex;\\n  flex-direction: row;\\n  align-items: center;\\n  justify-content: center;\\n}\\n\\n.weblayer--box-subscription #exponea-voucher i {\\n  display: inline-flex;\\n  flex-direction: row;\\n  align-items: center;\\n  padding-left: 5px;\\n}\\n\\n.weblayer--box-subscription .close-icon {\\n  font-size: inherit;\\n  line-height: 1px;\\n  color: transparent;\\n  background-color: transparent;\\n  top: 0;\\n  right: 0;\\n  padding: 0.5em;\\n  border: 0;\\n  position: absolute;\\n  z-index: 2147483001;\\n}\\n\\n.weblayer--box-subscription \u003e .close:hover {\\n  cursor: pointer;\\n}\\n\\n.weblayer--box-subscription \u003e .close:focus {\\n  outline: none;\\n}\\n\\n.weblayer--box-subscription.enter-fade {\\n  animation: fadeIn ease-in 0.2s;\\n}\\n\\n@keyframes fadeIn {\\n  0% { opacity: 0; }\\n  100% { opacity: 1; }\\n}\\n\\n.weblayer--box-subscription.vertical-top.horizontal-left.enter-slide-left { animation: slideInLeftVT cubic-bezier(0.56, 0.01, 0.42, 1.04) 0.75s; }\\n@keyframes slideInLeftVT { 0% { opacity: 0; transform: translateX(-100%); } 100% { opacity: 1; transform: translateX(0); } }\\n.weblayer--box-subscription.vertical-top.horizontal-center.enter-slide-up { animation: slideInUpVT cubic-bezier(0.56, 0.01, 0.42, 1.04) 0.75s; }\\n@keyframes slideInUpVT { 0% { opacity: 0; transform: translate(-50%, -100%); } 100% { opacity: 1; transform: translate(-50%, 0); } }\\n.weblayer--box-subscription.vertical-top.horizontal-right.enter-slide-right { animation: slideInRightVT cubic-bezier(0.56, 0.01, 0.42, 1.04) 0.75s; }\\n@keyframes slideInRightVT { 0% { opacity: 0; transform: translateX(100%); } 100% { opacity: 1; transform: translateX(0); } }\\n.weblayer--box-subscription.vertical-center.horizontal-left.enter-slide-left { animation: slideInLeftVC cubic-bezier(0.56, 0.01, 0.42, 1.04) 0.75s; }\\n@keyframes slideInLeftVC { 0% { opacity: 0; transform: translate(-100%, -50%); } 100% { opacity: 1; transform: translate(0, -50%); } }\\n.weblayer--box-subscription.vertical-center.horizontal-center.enter-slide-up { animation: slideInTopVC cubic-bezier(0.56, 0.01, 0.42, 1.04) 0.75s; }\\n@keyframes slideInTopVC { 0% { opacity: 0; transform: translate(-50%, -100%); } 100% { opacity: 1; transform: translate(-50%, -50%); } }\\n.weblayer--box-subscription.vertical-center.horizontal-right.enter-slide-right { animation: slideInRightVC cubic-bezier(0.56, 0.01, 0.42, 1.04) 0.75s; }\\n@keyframes slideInRightVC { 0% { opacity: 0; transform: translate(100%, -50%); } 100% { opacity: 1; transform: translate(0, -50%); } }\\n.weblayer--box-subscription.vertical-bottom.horizontal-left.enter-slide-left { animation: slideInLeftVB cubic-bezier(0.56, 0.01, 0.42, 1.04) 0.75s; }\\n@keyframes slideInLeftVB { 0% { opacity: 0; transform: translateX(-100%); } 100% { opacity: 1; transform: translateX(0); } }\\n.weblayer--box-subscription.vertical-bottom.horizontal-center.enter-slide-down { animation: slideInDownVB cubic-bezier(0.56, 0.01, 0.42, 1.04) 0.75s; }\\n@keyframes slideInDownVB { 0% { opacity: 0; transform: translate(-50%, 100%); } 100% { opacity: 1; transform: translate(-50%, 0); } }\\n.weblayer--box-subscription.vertical-bottom.horizontal-right.enter-slide-right { animation: slideInRightVB cubic-bezier(0.56, 0.01, 0.42, 1.04) 0.25s; }\\n@keyframes slideInRightVB { 0% { opacity: 0; transform: translateX(100%); } 100% { opacity: 1; transform: translateX(0); } }\\n\\n.weblayer--box-subscription.horizontal-left { left: 0; }\\n.weblayer--box-subscription.horizontal-right { right: 0; }\\n.weblayer--box-subscription.horizontal-center { left: 50%; transform: translateX(-50%); }\\n.weblayer--box-subscription.vertical-top { top: 0; }\\n.weblayer--box-subscription.vertical-bottom { bottom: 0; }\\n.weblayer--box-subscription.vertical-center { top: 50%; transform: translateY(-50%); }\\n.weblayer--box-subscription.vertical-center.horizontal-center { transform: translate(-50%, -50%); }\\n\\n.weblayer--box-subscription #thankYouButton {\\n  display: flex;\\n  align-items: center;\\n  justify-content: center;\\n}\\n\";\ninsertBanner.script = function() { // DEFAULT SETUP PARAMS\nvar PARAM_source = \"Scan_the_stripes_BF_Competition\";\nvar PARAM_newcastleConsentCategories = \"News,Tickets,Events,Store,Hospitality,WomensTeam\";\nvar PARAM_identifyIdName = \"email_id\";\n\n// CTA PARAMS\nvar PARAM_enableNoThanks = \"no\";\nvar PARAM_enableThankYou = \"yes\";\n\n// POSITION PARAMS\nvar PARAM_isInline = \"true\";\nvar PARAM_parentElement = \"#shopify-section-template--30193446060414__slideshow_bpCqXK\";\nvar PARAM_insertPosition = \"after\";\nvar PARAM_positionVertical = \"Bottom\";\nvar PARAM_positionHorizontal = \"Right\";\nvar PARAM_enterAnimation = \"None\";\n\n// LAYOUT PARAMS\nvar PARAM_boxWidth = \"100%\";\nvar PARAM_boxWidthMobile = \"100%\";\nvar PARAM_edgeOffset = \"0px\";\nvar PARAM_innerPadding = \"0px\";\nvar PARAM_innerFormPadding = \"20px\";\nvar PARAM_boxBorderRadius = \"0px\";\nvar PARAM_image = \"\";\nvar PARAM_imageWidth = \"100%\";\nvar PARAM_imagePosition = \"Vertical\";\nvar PARAM_imageStepTwo = \"false\";\nvar PARAM_imageMobile = \"false\";\n\n// BACKGROUND PARAMS\nvar PARAM_backgroundColor = \"#000000\";\nvar PARAM_backgroundImage = \"\";\nvar PARAM_greyout = \"rgba(0,0,0,0.29)\";\n\n// TRIGGERING PARAMS\nvar PARAM_showAfter = parseInt(\"0\", 10);\nvar PARAM_removeAfter = parseInt(\"0\", 10);\nvar PARAM_trigger = \"On entry\";\nvar PARAM_inactivityDelay = parseInt(\"0\", 10);\nvar PARAM_scrollSpeedThreshold = parseFloat(\"0\");\nvar PARAM_scrollDistanceThreshold = parseInt(\"0\", 10);\nvar PARAM_triggerAfterPage = 0;\n\n// COPYWRITING PARAMS\nvar PARAM_textLineOne = \"\";\nvar PARAM_heading = \"Sign up to enter into a prize draw for a chance to meet Newcastle United First Team players. \";\nvar PARAM_textLineTwo = \"To enter, complete the form and you will be added to the prize draw. \";\nvar PARAM_buttonText = \"Enter now\";\nvar PARAM_noThanksText = \"No Thanks\";\nvar PARAM_conditionsText = \"The prize draw opens at 09:00am GMT on 20 November 2026 and closes at 23:59pm GMT on 1 December 2026. Any entries following this date will not be submitted. Winners will be selected at random and notified via email on 4 December 2026. There will be 50 winners selected. Due to demand, unsuccessful winners will not be notified. Only one entry is permitted per person. All entrants must be aged 18 or over and must be UK residents only. The prize is a Meet \u0026 Greet with First Team players and is non-transferable. Any winners who are unable to attend the Meet \u0026 Greet on the date notified to them will forfeit their prize. The promoter of this prize draw is Newcastle United Football Company Limited. Please direct any queries to: supporter.services@nufc.co.uk. Full Competition Terms and Conditions can be found\";\nvar PARAM_conditionsLink = \"https://www.newcastleunited.com/en/privacy-policy\";\nvar PARAM_conditionsLinkText = \"here.\";\nvar PARAM_firstNameLabel = \"First Name\";\nvar PARAM_lastNameLabel = \"Last Name\";\nvar PARAM_emailInputPlaceholder = \"Email\";\nvar PARAM_invalidEmailMessage = \"Enter a valid email\";\nvar PARAM_thankYouHeading = \"You're in! Thanks for entering and good luck.\";\nvar PARAM_thankYouMessage = \"We’ll contact the winners via email on 4 December 2026. While you wait, shop our Black Friday sale.\";\nvar PARAM_thankYouButtonText = \"Black Friday Sale\";\nvar PARAM_thankYouButtonLink = \"https://shop.newcastleunited.com/collections/black-friday\";\nvar PARAM_consentNewcastleText = \"I want to receive updates from Newcastle United about news, tickets, retail offers and competitions. Please see Newcastle United's\";\nvar PARAM_consentNewcastleLinkText = \"privacy policy\";\n\n// TYPOGRAPHY PARAMS\nvar PARAM_textAlignment = \"center\";\nvar PARAM_textLineOneSize = \"14px\";\nvar PARAM_textLineOneWeight = \"bold\";\nvar PARAM_textLineOneSpacing = \"0px\";\nvar PARAM_textLineOneColor = \"#00ffaa\";\nvar PARAM_headingSize = \"20px\";\nvar PARAM_headingWeight = \"bold\";\nvar PARAM_headingSpacing = \"5px\";\nvar PARAM_headingColor = \"#00ffad\";\nvar PARAM_mainTextSize = \"14px\";\nvar PARAM_mainTextWeight = \"bold\";\nvar PARAM_mainTextSpacing = \"20px\";\nvar PARAM_mainTextColor = \"#FFFFFF\";\nvar PARAM_conditionsSize = \"16px\";\nvar PARAM_conditionsWeight = \"normal\";\nvar PARAM_conditionsColor = \"#ffffff\";\nvar PARAM_conditionsLinkColor = \"#ffffff\";\nvar PARAM_thankYouHeadingSize = \"22px\";\nvar PARAM_thankYouHeadingWeight = \"bold\";\nvar PARAM_thankYouHeadingColor = \"#ffffff\";\nvar PARAM_thankYouHeadingSpacing = \"10px\";\nvar PARAM_thankYouMessageSize = \"16px\";\nvar PARAM_thankYouMessageWeight = \"normal\";\nvar PARAM_thankYouMessageColor = \"#ffffff\";\nvar PARAM_thankYouMessageSpacing = \"10px\";\nvar PARAM_fontType = \"inherit\";\n\n// FORM STYLING PARAMS\nvar PARAM_showLabels = \"no\";\nvar PARAM_inputTextSize = \"14px\";\nvar PARAM_inputBorderColor = \"rgba(0,0,0,0)\";\nvar PARAM_inputBorderRadius = \"0px\";\nvar PARAM_buttonHeight = \"40px\";\nvar PARAM_buttonTextSize = \"14px\";\nvar PARAM_buttonTextColor = \"#00ffad\";\nvar PARAM_buttonBackgroundColor = \"#00ffad\";\nvar PARAM_buttonBorderWidth = \"0px\";\nvar PARAM_buttonBorderColor = \"rgba(255,255,255,0)\";\nvar PARAM_buttonBorderRadius = \"20px\";\nvar PARAM_noThanksTextSize = \"12px\";\nvar PARAM_noThanksTextColor = \"#ffffff\";\nvar PARAM_noThanksBackgroundColor = \"rgba(255,255,255,0)\";\nvar PARAM_noThanksBorderWidth = \"0px\";\nvar PARAM_noThanksBorderColor = \"#ffffff\";\nvar PARAM_noThanksBorderRadius = \"0px\";\nvar PARAM_closeIconColor = \"#000000\";\nvar PARAM_closeIconSize = parseInt(\"16\", 10);\n\n// ADVANCED PARAMS\nvar PARAM_enableVoucherCopyIcon = \"false\";\nvar PARAM_thankYouAutoHideDelay = parseInt(\"0\", 10);\nvar PARAM_nextWeblayerId = \"\";\nvar PARAM_isFinalWeblayer = \"No\";\nvar PARAM_disableShowEvent = \"false\";\nvar PARAM_voucherCode = \"\";\n\nvar CONFIG = {\n    setup: {\n        signupSource: PARAM_source,\n        newcastleConsentCategories: PARAM_newcastleConsentCategories,\n        identifyIdsToUpdate: PARAM_identifyIdName\n    },\n    position: {\n        displayInline: PARAM_isInline === 'true',\n        parentElement: PARAM_parentElement,\n        insertPosition: PARAM_insertPosition,\n        vertical: PARAM_positionVertical,\n        horizontal: PARAM_positionHorizontal,\n        enterAnimation: PARAM_enterAnimation\n    },\n    layout: {\n        boxWidth: PARAM_boxWidth,\n        boxWidthMobile: PARAM_boxWidthMobile,\n        edgeOffset: PARAM_edgeOffset,\n        innerOffset: PARAM_innerPadding,\n        formOffset: PARAM_innerFormPadding,\n        boxBorderRadius: PARAM_boxBorderRadius,\n        image: PARAM_image,\n        imageWidth: PARAM_imageWidth,\n        imagePosition: PARAM_imagePosition,\n        showImageOnThankYou: PARAM_imageStepTwo === 'true',\n        showImageOnMobile: PARAM_imageMobile === 'true'\n    },\n    background: {\n        backgroundColor: PARAM_backgroundColor,\n        backgroundImage: PARAM_backgroundImage,\n        backgroundOverlayColour: PARAM_greyout\n    },\n    copywriting: {\n        textLineOne: PARAM_textLineOne,\n        heading: PARAM_heading,\n        textLineTwo: PARAM_textLineTwo,\n        firstNameLabel: PARAM_firstNameLabel,\n        lastNameLabel: PARAM_lastNameLabel,\n        emailInputPlaceholder: PARAM_emailInputPlaceholder,\n        buttonText: PARAM_buttonText,\n        noThanksText: PARAM_noThanksText,\n        conditionsText: PARAM_conditionsText,\n        conditionsLink: PARAM_conditionsLink,\n        conditionsLinkText: PARAM_conditionsLinkText,\n        invalidEmailMessage: PARAM_invalidEmailMessage,\n        thankYouHeading: PARAM_thankYouHeading,\n        thankYouMessage: PARAM_thankYouMessage,\n        thankYouButtonText: PARAM_thankYouButtonText,\n        thankYouButtonLink: PARAM_thankYouButtonLink,\n        voucherCode: PARAM_voucherCode,\n        newcastleConsentText: PARAM_consentNewcastleText,\n        newcastleConsentLinkText: PARAM_consentNewcastleLinkText,\n        \n    },\n    typography: {\n        textAlignment: PARAM_textAlignment,\n        textLineOneSize: PARAM_textLineOneSize,\n        textLineOneWeight: PARAM_textLineOneWeight,\n        textLineOneBottomSpacing: PARAM_textLineOneSpacing,\n        textLineOneColor: PARAM_textLineOneColor,\n        headingSize: PARAM_headingSize,\n        headingWeight: PARAM_headingWeight,\n        headingBottomSpacing: PARAM_headingSpacing,\n        headingColor: PARAM_headingColor,\n        mainTextSize: PARAM_mainTextSize,\n        mainTextWeight: PARAM_mainTextWeight,\n        mainTextBottomSpacing: PARAM_mainTextSpacing,\n        mainTextColor: PARAM_mainTextColor,\n        conditionsSize: PARAM_conditionsSize,\n        conditionsWeight: PARAM_conditionsWeight,\n        conditionsColor: PARAM_conditionsColor,\n        conditionsLinkColor: PARAM_conditionsLinkColor,\n        thankYouHeadingSize: PARAM_thankYouHeadingSize,\n        thankYouHeadingWeight: PARAM_thankYouHeadingWeight,\n        thankYouHeadingColor: PARAM_thankYouHeadingColor,\n        thankYouHeadingSpacing: PARAM_thankYouHeadingSpacing,\n        thankYouMessageSize: PARAM_thankYouMessageSize,\n        thankYouMessageWeight: PARAM_thankYouMessageWeight,\n        thankYouMessageColor: PARAM_thankYouMessageColor,\n        thankYouMessageSpacing: PARAM_thankYouMessageSpacing,\n        font: PARAM_fontType\n    },\n    formStyling: {\n        showInputLabels: PARAM_showLabels,\n        inputTextSize: PARAM_inputTextSize,\n        inputBorderColor: PARAM_inputBorderColor,\n        inputBorderRadius: PARAM_inputBorderRadius,\n        buttonHeight: PARAM_buttonHeight,\n        submitButtonTextSize: PARAM_buttonTextSize,\n        submitButtonTextColor: PARAM_buttonTextColor,\n        submitButtonBackgroundColor: PARAM_buttonBackgroundColor,\n        submitButtonBorderWidth: PARAM_buttonBorderWidth,\n        submitButtonBorderColor: PARAM_buttonBorderColor,\n        submitButtonBorderRadius: PARAM_buttonBorderRadius,\n        noThanksTextSize: PARAM_noThanksTextSize,\n        noThanksTextColor: PARAM_noThanksTextColor,\n        noThanksBackgroundColor: PARAM_noThanksBackgroundColor,\n        noThanksBorderWidth: PARAM_noThanksBorderWidth,\n        noThanksBorderColor: PARAM_noThanksBorderColor,\n        noThanksBorderRadius: PARAM_noThanksBorderRadius,\n        closeIconSize: PARAM_closeIconSize,\n        closeIconColor: PARAM_closeIconColor\n    },\n    formContents: {\n        enableNoThanksButton: PARAM_enableNoThanks,\n        enableThankYouButton: PARAM_enableThankYou\n    },\n    triggering: {\n        showAfter: PARAM_showAfter,\n        removeAfter: PARAM_removeAfter,\n        trigger: PARAM_trigger,\n        exitIntentInactivityDelay: PARAM_inactivityDelay,\n        exitIntentScrollSpeedThreshold: PARAM_scrollSpeedThreshold,\n        exitIntentScrollDistanceThreshold: PARAM_scrollDistanceThreshold,\n        triggerAfterPage: PARAM_triggerAfterPage\n    },\n    advanced: {\n        enableVoucherCopyIcon: PARAM_enableVoucherCopyIcon === 'true',\n        autoHideDelay: PARAM_thankYouAutoHideDelay,\n        nextStepWeblayerID: PARAM_nextWeblayerId,\n        forceShowThankYouPage: PARAM_isFinalWeblayer,\n        disableShowEventTracking: PARAM_disableShowEvent === 'true'\n    }\n};\n\nvar self = this;\nvar bannerSemiId = Math.random().toString(36).substring(5);\nvar positions = {\n    before: 'beforebegin',\n    'first child': 'afterbegin',\n    'last child': 'beforeend',\n    after: 'afterend'\n};\nvar insertPosition = positions[CONFIG.position.insertPosition] || 'afterbegin';\n\nwindow['__exp_triggered-' + bannerSemiId] = false;\n\nif (self.inPreview) {\n    CONFIG.triggering.showAfter = 0;\n    CONFIG.position.parentElement = 'body';\n    CONFIG.triggering.trigger = 'On entry';\n}\n\nfunction registerStartTrigger() {\n    if (CONFIG.triggering.trigger === 'On exit') {\n        setTimeout(function () {\n            desktopExit();\n            inactivityTime();\n            if (window.matchMedia('(max-width: 768px)').matches) {\n                detectFastScrollUp(CONFIG.triggering.exitIntentScrollSpeedThreshold, CONFIG.triggering.exitIntentScrollDistanceThreshold, function() {\n                    if (!window['__exp_triggered-' + bannerSemiId]) {\n                        window['__exp_triggered-' + bannerSemiId] = true;\n                        scheduleShowBanner();\n                    }\n                });\n            }\n        }, CONFIG.triggering.showAfter);\n    } else if (CONFIG.triggering.trigger === 'On scroll') {\n        window.addEventListener('scroll', scheduleShowBanner);\n    } else {\n        scheduleShowBanner();\n    }\n}\n\nfunction scheduleShowBanner() {\n    window.removeEventListener('scroll', scheduleShowBanner);\n    setTimeout(function() {\n        if (!CONFIG.advanced.disableShowEventTracking) {\n            trackEvent('show', false);\n        }\n        requestAnimationFrame(createBanner);\n        if (CONFIG.triggering.removeAfter \u003e 0) {\n            setTimeout(removeBanner, CONFIG.triggering.removeAfter);\n        }\n    }, CONFIG.triggering.showAfter);\n}\n\nfunction createBanner() {\n    var parentElement = document.querySelector(CONFIG.position.parentElement);\n    parentElement.insertAdjacentHTML('afterbegin', self.html);\n    self.banner = parentElement.firstElementChild;\n\n    applyConfigToBanner(self.banner);\n\n    self.banner.querySelectorAll('.close').forEach(function(input) {\n        input.onclick = handleCloseButtonClick;\n    });\n\n    if (CONFIG.formContents.enableNoThanksButton === 'no' \u0026\u0026 self.banner.querySelector('#noThanksButton')) {\n        self.banner.querySelector('#noThanksButton').remove();\n    }\n    if (CONFIG.formContents.enableThankYouButton === 'no' \u0026\u0026 self.banner.querySelector('#thankYouButton')) {\n        self.banner.querySelector('#thankYouButton').remove();\n    }\n\nvar thankYouLink = self.banner.querySelector('#thankYouButton');\n\nif (thankYouLink) {\n    thankYouLink.addEventListener('click', function(event) {\n        event.stopPropagation();\n\n        window.setTimeout(function() {\n            removeBanner();\n        }, 100);\n    });\n}\n    self.banner.querySelector('.banner-item').className += ' ' + getPositionAndAnimationClasses();\n    self.banner.insertAdjacentHTML('afterbegin', '\u003cstyle\u003e' + self.style + '\u003c/style\u003e');\n\n    var links = self.banner.querySelectorAll('a');\n    for (var i = 0; i \u003c links.length; i++) {\n        trackLink(links[i], 'click', true);\n    }\n\n    if (\n    window\n        .getComputedStyle(self.banner)\n        .getPropertyValue('background-color')\n        .replaceAll(' ', '')\n        .split(',')[3] === '0)'\n) {\n    } else {\n        self.banner.onclick = handleCloseBackgroundClick;\n    }\n\n    if (CONFIG.advanced.forceShowThankYouPage === 'Yes') {\n        showThankYou(self.banner);\n    }\n\n    initializeForm(self.banner);\n    attachBannerToDom(self.banner);\n}\n\nfunction applyConfigToBanner(banner) {\n    var root = banner;\n    var box = banner.querySelector('.weblayer--box-subscription');\n    var closeSvg = banner.querySelector('.close-icon-svg');\n    var closePaths = banner.querySelectorAll('.close-icon-svg path');\n\n    setCssVar(root, '--box-width', CONFIG.layout.boxWidth);\n    setCssVar(root, '--box-width-mobile', CONFIG.layout.boxWidthMobile);\n    setCssVar(root, '--edge-offset', CONFIG.layout.edgeOffset);\n    setCssVar(root, '--inner-padding', CONFIG.layout.innerOffset);\n    setCssVar(root, '--inner-form-padding', CONFIG.layout.formOffset);\n    setCssVar(root, '--box-border-radius', CONFIG.layout.boxBorderRadius);\n    setCssVar(root, '--greyout-color', CONFIG.background.backgroundOverlayColour);\n    setCssVar(root, '--background-color', CONFIG.background.backgroundColor);\n    setCssVar(root, '--background-image', CONFIG.background.backgroundImage ? 'url(\"' + CONFIG.background.backgroundImage + '\")' : 'none');\n    setCssVar(root, '--image-width', CONFIG.layout.imageWidth);\n    setCssVar(root, '--image-direction', CONFIG.layout.imagePosition === 'Horizontal' ? 'row' : 'column');\n    setCssVar(root, '--font-family', CONFIG.typography.font);\n    setCssVar(root, '--text-alignment', CONFIG.typography.textAlignment);\n    setCssVar(root, '--text-line-one-size', CONFIG.typography.textLineOneSize);\n    setCssVar(root, '--text-line-one-weight', CONFIG.typography.textLineOneWeight);\n    setCssVar(root, '--text-line-one-spacing', CONFIG.typography.textLineOneBottomSpacing);\n    setCssVar(root, '--text-line-one-color', CONFIG.typography.textLineOneColor);\n    setCssVar(root, '--heading-size', CONFIG.typography.headingSize);\n    setCssVar(root, '--heading-weight', CONFIG.typography.headingWeight);\n    setCssVar(root, '--heading-spacing', CONFIG.typography.headingBottomSpacing);\n    setCssVar(root, '--heading-color', CONFIG.typography.headingColor);\n    setCssVar(root, '--main-text-size', CONFIG.typography.mainTextSize);\n    setCssVar(root, '--main-text-weight', CONFIG.typography.mainTextWeight);\n    setCssVar(root, '--main-text-spacing', CONFIG.typography.mainTextBottomSpacing);\n    setCssVar(root, '--main-text-color', CONFIG.typography.mainTextColor);\n    setCssVar(root, '--conditions-size', CONFIG.typography.conditionsSize);\n    setCssVar(root, '--conditions-weight', CONFIG.typography.conditionsWeight);\n    setCssVar(root, '--conditions-color', CONFIG.typography.conditionsColor);\n    setCssVar(root, '--conditions-link-color', CONFIG.typography.conditionsLinkColor);\n    setCssVar(root, '--thank-you-heading-size', CONFIG.typography.thankYouHeadingSize);\n    setCssVar(root, '--thank-you-heading-weight', CONFIG.typography.thankYouHeadingWeight);\n    setCssVar(root, '--thank-you-heading-color', CONFIG.typography.thankYouHeadingColor);\n    setCssVar(root, '--thank-you-heading-spacing', CONFIG.typography.thankYouHeadingSpacing);\n    setCssVar(root, '--thank-you-message-size', CONFIG.typography.thankYouMessageSize);\n    setCssVar(root, '--thank-you-message-weight', CONFIG.typography.thankYouMessageWeight);\n    setCssVar(root, '--thank-you-message-color', CONFIG.typography.thankYouMessageColor);\n    setCssVar(root, '--thank-you-message-spacing', CONFIG.typography.thankYouMessageSpacing);\n    setCssVar(root, '--input-label-display', CONFIG.formStyling.showInputLabels === 'yes' ? 'block' : 'none');\n    setCssVar(root, '--input-text-size', CONFIG.formStyling.inputTextSize);\n    setCssVar(root, '--input-border-color', CONFIG.formStyling.inputBorderColor);\n    setCssVar(root, '--input-border-radius', CONFIG.formStyling.inputBorderRadius);\n    setCssVar(root, '--button-height', CONFIG.formStyling.buttonHeight);\n    setCssVar(root, '--button-text-size', CONFIG.formStyling.submitButtonTextSize);\n    setCssVar(root, '--button-text-color', CONFIG.formStyling.submitButtonTextColor);\n    setCssVar(root, '--button-background-color', CONFIG.formStyling.submitButtonBackgroundColor);\n    setCssVar(root, '--button-border-width', CONFIG.formStyling.submitButtonBorderWidth);\n    setCssVar(root, '--button-border-color', CONFIG.formStyling.submitButtonBorderColor);\n    setCssVar(root, '--button-border-radius', CONFIG.formStyling.submitButtonBorderRadius);\n    setCssVar(root, '--no-thanks-text-size', CONFIG.formStyling.noThanksTextSize);\n    setCssVar(root, '--no-thanks-text-color', CONFIG.formStyling.noThanksTextColor);\n    setCssVar(root, '--no-thanks-background-color', CONFIG.formStyling.noThanksBackgroundColor);\n    setCssVar(root, '--no-thanks-border-width', CONFIG.formStyling.noThanksBorderWidth);\n    setCssVar(root, '--no-thanks-border-color', CONFIG.formStyling.noThanksBorderColor);\n    setCssVar(root, '--no-thanks-border-radius', CONFIG.formStyling.noThanksBorderRadius);\n\n    setText(banner, '.text.line-one', CONFIG.copywriting.textLineOne);\n    setText(banner, '.heading', CONFIG.copywriting.heading);\n    setText(banner, '.text.line-two', CONFIG.copywriting.textLineTwo);\n    setText(banner, '.firstname-label', CONFIG.copywriting.firstNameLabel);\n    setText(banner, '.lastname-label', CONFIG.copywriting.lastNameLabel);\n    setText(banner, '.email-label', CONFIG.copywriting.emailInputPlaceholder);\n    setText(banner, '.button.submit', CONFIG.copywriting.buttonText);\n    setText(banner, '#noThanksButton', CONFIG.copywriting.noThanksText);\n    setText(banner, '.conditions-text', CONFIG.copywriting.conditionsText + ' ');\n    setText(banner, '.conditions-link', CONFIG.copywriting.conditionsLinkText);\n    setText(banner, '.thank-you-heading', CONFIG.copywriting.thankYouHeading);\n    setText(banner, '.thank-you-message', CONFIG.copywriting.thankYouMessage);\n    setText(banner, '#thankYouButton', CONFIG.copywriting.thankYouButtonText);\n    setText(banner, '#exponea-voucher', CONFIG.copywriting.voucherCode);\n    setText(banner, '.newcastle-consent-text', CONFIG.copywriting.newcastleConsentText + ' ');\n    setText(banner, '.newcastle-consent-link', CONFIG.copywriting.newcastleConsentLinkText);\n    \n\n    setAttribute(banner, '.first_name', 'placeholder', CONFIG.copywriting.firstNameLabel);\n    setAttribute(banner, '.last_name', 'placeholder', CONFIG.copywriting.lastNameLabel);\n    setAttribute(banner, '.email', 'placeholder', CONFIG.copywriting.emailInputPlaceholder);\n    setAttribute(banner, '.conditions-link', 'href', CONFIG.copywriting.conditionsLink);\n    setAttribute(banner, '#thankYouButton', 'href', CONFIG.copywriting.thankYouButtonLink);\n    setAttribute(banner, '.main-image', 'src', CONFIG.layout.image);\n    setAttribute(banner, '.thank-you-image', 'src', CONFIG.layout.image);\n\n    if (closeSvg) {\n        closeSvg.setAttribute('width', CONFIG.formStyling.closeIconSize);\n        closeSvg.setAttribute('height', CONFIG.formStyling.closeIconSize);\n    }\n    closePaths.forEach(function(path) {\n        path.setAttribute('stroke', CONFIG.formStyling.closeIconColor);\n    });\n\n    if (CONFIG.position.displayInline) {\n        banner.classList.add('is-inline');\n    }\n    if (!CONFIG.layout.showImageOnThankYou \u0026\u0026 box) {\n        box.classList.add('hide-step-two-image');\n    }\n    if (!CONFIG.layout.showImageOnMobile \u0026\u0026 box) {\n        box.classList.add('hide-image-mobile');\n    }\n}\n\nfunction setCssVar(element, name, value) {\n    element.style.setProperty(name, value);\n}\n\nfunction setText(parent, selector, value) {\n    var element = parent.querySelector(selector);\n    if (element) {\n        element.textContent = value || '';\n    }\n}\n\nfunction setAttribute(parent, selector, attribute, value) {\n    var element = parent.querySelector(selector);\n    if (element) {\n        element.setAttribute(attribute, value || '');\n    }\n}\n\nfunction attachBannerToDom(banner) {\n    var parentElement = document.querySelector(CONFIG.position.parentElement);\n    parentElement.insertAdjacentElement(insertPosition, banner);\n    self.banner = banner;\n}\n\nfunction removeBanner() {\n    if (self.banner \u0026\u0026 self.banner.parentNode) {\n        self.banner.parentNode.removeChild(self.banner);\n    }\n}\n\nfunction handleCloseButtonClick(event) {\n    removeBanner();\n    trackEvent('close', true);\n    event.preventDefault();\n    if (event.stopPropagation) {\n        event.stopPropagation();\n    } else {\n        event.cancelBubble = true;\n    }\n    return false;\n}\n\nfunction handleCloseBackgroundClick(event) {\n    if (event.target !== event.currentTarget) {\n        return;\n    }\n    removeBanner();\n    trackEvent('close', true);\n    event.preventDefault();\n    if (event.stopPropagation) {\n        event.stopPropagation();\n    } else {\n        event.cancelBubble = true;\n    }\n    return false;\n}\n\nfunction trackEvent(action, interactive) {\n    if (!self.sdk || !self.sdk.track) {\n        return;\n    }\n    self.sdk.track('banner', getEventProperties(action, interactive));\n}\n\nfunction trackLink(link, action, interactive) {\n    if (!self.sdk || !self.sdk.trackLink) {\n        return;\n    }\n    var eventData = getEventProperties(action, interactive);\n    eventData.link = link.href;\n    self.sdk.trackLink(link, 'banner', eventData);\n}\n\nfunction getEventProperties(action, interactive) {\n    return {\n        action: action,\n        banner_id: self.data.banner_id,\n        banner_name: self.data.banner_name,\n        banner_type: self.data.banner_type,\n        variant_id: self.data.variant_id,\n        variant_name: self.data.variant_name,\n        variant_origin: self.data.contextual_personalization != null ? 'contextual personalisation' : 'ABtest',\n        interaction: interactive !== false\n    };\n}\n\nfunction getPositionAndAnimationClasses() {\n    var verticalClass = {\n        Top: 'vertical-top',\n        Center: 'vertical-center',\n        Bottom: 'vertical-bottom'\n    }[CONFIG.position.vertical] || '';\n\n    var horizontalClass = {\n        Left: 'horizontal-left',\n        Center: 'horizontal-center',\n        Right: 'horizontal-right'\n    }[CONFIG.position.horizontal] || '';\n\n    var enterAnimationClass = {\n        'Fade in': 'enter-fade',\n        'Slide in': {\n            Top: {\n                Left: 'enter-slide-left',\n                Center: 'enter-slide-up',\n                Right: 'enter-slide-right'\n            }[CONFIG.position.horizontal],\n            Center: {\n                Left: 'enter-slide-left',\n                Center: 'enter-slide-up',\n                Right: 'enter-slide-right'\n            }[CONFIG.position.horizontal],\n            Bottom: {\n                Left: 'enter-slide-left',\n                Center: 'enter-slide-down',\n                Right: 'enter-slide-right'\n            }[CONFIG.position.horizontal]\n        }[CONFIG.position.vertical]\n    }[CONFIG.position.enterAnimation] || '';\n\n    return verticalClass + ' ' + horizontalClass + ' ' + enterAnimationClass;\n}\n\nfunction getExponeaTarget() {\n    if (window.exponea \u0026\u0026 window.exponea.configuration \u0026\u0026 window.exponea.configuration.target) {\n        return String(window.exponea.configuration.target).replace(/\\/$/, '');\n    }\n    if (self.sdk \u0026\u0026 self.sdk.configuration \u0026\u0026 self.sdk.configuration.target) {\n        return String(self.sdk.configuration.target).replace(/\\/$/, '');\n    }\n    return null;\n}\n\nfunction getExponeaToken() {\n    if (window.exponea \u0026\u0026 window.exponea.configuration \u0026\u0026 window.exponea.configuration.token) {\n        return window.exponea.configuration.token;\n    }\n    if (self.sdk \u0026\u0026 self.sdk.configuration \u0026\u0026 self.sdk.configuration.token) {\n        return self.sdk.configuration.token;\n    }\n    return null;\n}\n\nfunction getConfiguredEmailIdName() {\n    var idNames = stringToArray(CONFIG.setup.identifyIdsToUpdate);\n    return idNames[0] || 'email_id';\n}\n\nfunction sendFormViaBulk(eventProperties, customerProperties, customerIds) {\n    var target = getExponeaTarget();\n    var token = getExponeaToken();\n\n    if (!target || !token) {\n        console.error('Exponea target/token unavailable, form submit aborted.');\n        return Promise.reject(new Error('Missing Exponea configuration'));\n    }\n\n    var commands = [\n        {\n            name: 'crm/events',\n            data: {\n                customer_ids: customerIds,\n                company_id: token,\n                type: 'banner',\n                properties: eventProperties\n            }\n        }\n    ];\n\n    if (Object.keys(customerIds).length || Object.keys(customerProperties).length) {\n        commands.push({\n            name: 'crm/customers',\n            data: {\n                customer_ids: customerIds,\n                company_id: token,\n                properties: customerProperties\n            }\n        });\n    }\n\n    var payload = {\n        sdk: 'js-client',\n        sdk_snippet_version: self.sdk \u0026\u0026 self.sdk.snippetVersion ? self.sdk.snippetVersion : undefined,\n        commands: commands\n    };\n\n    return fetch(target + '/bulk', {\n        method: 'POST',\n        headers: {\n            'Content-Type': 'application/json'\n        },\n        body: JSON.stringify(payload)\n    }).then(function(response) {\n        if (!response.ok) {\n            return response.text().then(function(text) {\n                throw new Error('Bulk submit failed: ' + response.status + ' ' + response.statusText + ' :: ' + text);\n            });\n        }\n        return response;\n    }).catch(function(error) {\n        console.error('Error sending form via /bulk:', error);\n        throw error;\n    });\n}\n\nfunction initializeForm(banner) {\n    var emailInput = banner.querySelector('input[name=\"email\"]') || undefined;\n    var firstNameInput = banner.querySelector('input[name=\"first_name\"]') || undefined;\n    var lastNameInput = banner.querySelector('input[name=\"last_name\"]') || undefined;\n    var newcastleConsentInput = banner.querySelector('input[name=\"consent_newcastle\"]') || undefined;\n    \n\n    if (typeof emailInput !== 'undefined') {\n        emailInput.oninput = function() {\n            toggleInvalidState(false, banner, emailInput);\n        };\n    }\n\n    var form = banner.querySelector('#exponea-form');\n\n    form.onsubmit = function(event) {\n        event.preventDefault();\n\n        var email = String((emailInput \u0026\u0026 emailInput.value) || '').trim().toLowerCase();\n        if (!validateEmail(email)) {\n            toggleInvalidState(true, banner, emailInput, CONFIG.copywriting.invalidEmailMessage);\n            return false;\n        }\n\n        var firstName = String((firstNameInput \u0026\u0026 firstNameInput.value) || '').trim();\n        var lastName = String((lastNameInput \u0026\u0026 lastNameInput.value) || '').trim();\n        var newcastleConsent = !!(newcastleConsentInput \u0026\u0026 newcastleConsentInput.checked);\n        \n\n        var emailIdName = getConfiguredEmailIdName();\n        var customerIds = {};\n        customerIds[emailIdName] = email;\n\n        var eventProperties = getEventProperties('subscribe', true);\n        eventProperties.sign_up_source = CONFIG.setup.signupSource || self.data.banner_name;\n        eventProperties.email = email;\n        eventProperties.email_submitted = true;\n\n        if (firstName) {\n            eventProperties.first_name = firstName;\n        }\n        if (lastName) {\n            eventProperties.last_name = lastName;\n        }\n\n        // Newcastle tick box only: feeds consent_category so the existing\n        // consent Scenario (same pattern as home/away kit) creates the\n        // real consent event.\n        var newcastleCategories = stringToArray(CONFIG.setup.newcastleConsentCategories);\n        if (newcastleConsent \u0026\u0026 newcastleCategories.length) {\n            eventProperties.consent_category = newcastleCategories;\n        }\n        \n        eventProperties.newcastle_marketing_opt_in = newcastleConsent;\n\n  \n\n        var customerProperties = {\n            email: email\n        };\n        customerProperties[emailIdName] = email;\n        if (firstName) {\n            customerProperties.first_name = firstName;\n        }\n        if (lastName) {\n            customerProperties.last_name = lastName;\n        }\n        \n\n        var submitButton = form.querySelector('button[type=\"submit\"]');\n        if (submitButton) {\n            submitButton.disabled = true;\n        }\n\n        sendFormViaBulk(eventProperties, customerProperties, customerIds)\n            .then(function() {\n                if (CONFIG.advanced.nextStepWeblayerID \u0026\u0026 CONFIG.advanced.nextStepWeblayerID !== 'None') {\n                    if (self.sdk \u0026\u0026 self.sdk.showBanner) {\n                        self.sdk.showBanner(CONFIG.advanced.nextStepWeblayerID, {}, true, function() {\n                            removeBanner();\n                        });\n                    } else {\n                        showThankYou(banner);\n                    }\n                } else {\n                    showThankYou(banner);\n                }\n            })\n            .catch(function(error) {\n                console.error('Bulk submit failed', error);\n            })\n            .finally(function() {\n                if (submitButton) {\n                    submitButton.disabled = false;\n                }\n            });\n\n        return false;\n    };\n}\n\nfunction showThankYou(banner) {\n    var stepOne = banner.querySelector('.step-one');\n    var stepTwo = banner.querySelector('.step-two');\n    stepOne.style.display = 'none';\n    stepTwo.style.display = 'block';\n\n    var autoHideDelay = CONFIG.advanced.autoHideDelay === 0 ? 999999 : CONFIG.advanced.autoHideDelay;\n\n    if (CONFIG.advanced.enableVoucherCopyIcon) {\n        var textDisplay = banner.querySelector('.step-two #exponea-voucher');\n        if (!textDisplay || !textDisplay.textContent.trim()) {\n            setTimeout(removeBanner, autoHideDelay);\n            return;\n        }\n        var copyIcon = document.createElement('i');\n        copyIcon.innerHTML = '\u003c?xml version=\"1.0\" ?\u003e\u003csvg class=\"feather feather-copy\" fill=\"none\" height=\"20\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" viewBox=\"0 0 24 24\" width=\"20\" xmlns=\"http://www.w3.org/2000/svg\"\u003e\u003crect height=\"13\" rx=\"2\" ry=\"2\" width=\"13\" x=\"9\" y=\"9\"/\u003e\u003cpath d=\"M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1\"/\u003e\u003c/svg\u003e';\n        textDisplay.appendChild(copyIcon);\n        banner.querySelector('#exponea-voucher').addEventListener('click', function(e) {\n            e.preventDefault();\n            copyTextToClipboard(banner.querySelector('#exponea-voucher').textContent);\n            copyIcon.innerHTML = '\u003c?xml version=\"1.0\" ?\u003e\u003csvg class=\"feather feather-check\" fill=\"none\" height=\"20\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" viewBox=\"0 0 24 24\" width=\"20\" xmlns=\"http://www.w3.org/2000/svg\"\u003e\u003cpolyline points=\"20 6 9 17 4 12\"/\u003e\u003c/svg\u003e';\n            window.setTimeout(function() {\n                copyIcon.innerHTML = '\u003c?xml version=\"1.0\" ?\u003e\u003csvg class=\"feather feather-copy\" fill=\"none\" height=\"20\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" viewBox=\"0 0 24 24\" width=\"20\" xmlns=\"http://www.w3.org/2000/svg\"\u003e\u003crect height=\"13\" rx=\"2\" ry=\"2\" width=\"13\" x=\"9\" y=\"9\"/\u003e\u003cpath d=\"M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1\"/\u003e\u003c/svg\u003e';\n            }, 1500);\n        });\n    }\n\n    setTimeout(removeBanner, autoHideDelay);\n}\n\nfunction fallbackCopyTextToClipboard(text) {\n    var textArea = document.createElement('textarea');\n    textArea.value = text;\n    textArea.style.top = '0';\n    textArea.style.left = '0';\n    textArea.style.position = 'fixed';\n    document.body.appendChild(textArea);\n    textArea.focus();\n    textArea.select();\n    try {\n        document.execCommand('copy');\n    } catch (err) {}\n    document.body.removeChild(textArea);\n}\n\nfunction copyTextToClipboard(text) {\n    if (!navigator.clipboard) {\n        fallbackCopyTextToClipboard(text);\n        return;\n    }\n    navigator.clipboard.writeText(text);\n}\n\nfunction toggleInvalidState(invalid, banner, input, message) {\n    input.setCustomValidity(invalid ? message : '');\n    input.reportValidity();\n}\n\nfunction detectFastScrollUp(scrollSpeedThreshold, scrollDistanceThreshold, callback) {\n    var lastScrollY = window.scrollY;\n    var lastTimestamp = performance.now();\n    var scrollingUp = false;\n    function handleScroll() {\n        var currentTimestamp = performance.now();\n        var timePassed = currentTimestamp - lastTimestamp;\n        if (timePassed \u003e 0) {\n            var currentScrollY = window.scrollY;\n            var scrollDistance = currentScrollY - lastScrollY;\n            var scrollSpeed = Math.abs(scrollDistance / timePassed);\n            scrollingUp = scrollDistance \u003c 0;\n            if (scrollSpeed \u003e scrollSpeedThreshold \u0026\u0026 scrollingUp \u0026\u0026 Math.abs(scrollDistance) \u003e scrollDistanceThreshold) {\n                callback();\n            }\n            lastScrollY = currentScrollY;\n            lastTimestamp = currentTimestamp;\n        }\n    }\n    window.addEventListener('scroll', handleScroll);\n}\n\nfunction inactivityTime() {\n    var t;\n    resetTimer();\n    document.addEventListener('mousemove', resetTimer);\n    document.addEventListener('keypress', resetTimer);\n    document.addEventListener('touch', resetTimer);\n    document.addEventListener('scroll', resetTimer);\n    window.addEventListener('focus', resetTimer);\n\n    function exitIntentDetected() {\n        if (!window['__exp_inactive_trigger-' + bannerSemiId]) {\n            window['__exp_inactive_trigger-' + bannerSemiId] = true;\n        }\n    }\n\n    function resetTimer() {\n        clearTimeout(t);\n        t = setTimeout(exitIntentDetected, CONFIG.triggering.exitIntentInactivityDelay);\n        if (!window['__exp_triggered-' + bannerSemiId] \u0026\u0026 window['__exp_inactive_trigger-' + bannerSemiId]) {\n            window['__exp_triggered-' + bannerSemiId] = true;\n            scheduleShowBanner();\n        }\n        window['__exp_inactive_trigger-' + bannerSemiId] = false;\n    }\n}\n\nfunction desktopExit() {\n    document.body.addEventListener('mouseout', function(e) {\n        e = e || window.event;\n        var vpWidth = Math.max(document.documentElement.clientWidth, window.innerWidth || 0);\n        if (e.clientX \u003e= vpWidth) {\n            return;\n        }\n        if (e.clientY \u003e= 50) {\n            return;\n        }\n        var from = e.relatedTarget || e.toElement;\n        if (!from \u0026\u0026 !window['__exp_triggered-' + bannerSemiId]) {\n            window['__exp_triggered-' + bannerSemiId] = true;\n            scheduleShowBanner();\n        }\n    });\n}\n\nfunction validateEmail(email) {\n    return email \u0026\u0026 /^\\S+@\\S+\\.\\S+$/.test(email);\n}\n\nfunction stringToArray(string) {\n    return (string || '').split(',').map(function(item) {\n        return item.trim();\n    }).filter(function(item) {\n        return !!item;\n    });\n}\n\nregisterStartTrigger();\nreturn {\n    remove: removeBanner\n};\n };\ninsertBanner.remove = (insertBanner.script.call(insertBanner) || {} ).remove;\ninsertBanner.contextual_personalization = {};\nreturn insertBanner;\n})({\"banner_id\": \"6af197aa86486601830578c6\", \"banner_name\": \"Cookieless - Scan The Stripes Competition with tickbox for consent\", \"banner_type\": \"medium_rectangle\", \"banner_group\": \"\", \"variant_id\": 0, \"variant_name\": \"Variant A\"});","variables_target":null,"page_vars":[]}],"experiments":[],"constantManagedTags":[],"vars":{"data":[]}}