// `--ext-*` resolves once at the scope root, so setting it here reaches nothing.
const BAR_SURFACE = {
	main: '--color-design-main',
	text: '--color-design-text',
};

// No partner color behind the card, so it has no `--color-*` alias to set.
const CARD_SURFACE = {
	main: '--ext-notification-card-main',
	text: '--ext-notification-card-text',
};

const buttonMap = (main, text) => ({
	'button-main': main,
	'button-text': text,
	'button-hover-main': '--ext-notification-button-hover-main',
	'button-hover-text': '--ext-notification-button-hover-text',
});

const BANNER_BUTTON = buttonMap('--color-banner-main', '--color-banner-text');
const DESIGN_BUTTON = buttonMap('--color-design-main', '--color-design-text');

const variablesFrom = (map, colors) =>
	Object.fromEntries(
		Object.entries(colors)
			.filter(([key, value]) => map[key] && typeof value === 'string')
			.map(([key, value]) => [map[key], value]),
	);

export const colorsOf = (notification) => notification?.colors ?? {};

export const barVariables = (colors) => variablesFrom(BAR_SURFACE, colors);

export const cardVariables = (colors) => variablesFrom(CARD_SURFACE, colors);

export const bannerButtonVariables = (colors) =>
	variablesFrom(BANNER_BUTTON, colors);

export const designButtonVariables = (colors) =>
	variablesFrom(DESIGN_BUTTON, colors);

export const buttonHoverClasses = (colors) => ({
	'hover:bg-[var(--ext-notification-button-hover-main)]': Boolean(
		colors['button-hover-main'],
	),
	'hover:text-[var(--ext-notification-button-hover-text)]': Boolean(
		colors['button-hover-text'],
	),
	// A supplied hover color has to land exactly, not dimmed.
	'hover:opacity-90':
		!colors['button-hover-main'] && !colors['button-hover-text'],
});
{"translation-revision-date":"2023-10-17 14:46:05+0000","generator":"WP-CLI\/2.12.0","source":"src\/Agent\/workflows\/settings\/edit-wp-setting.js","domain":"messages","locale_data":{"messages":{"":{"domain":"messages","lang":"fr_BE","plural-forms":"nplurals=2; plural=n > 1;"},"Change website title":["Modifier le titre du site web"],"What would you like your new website title to be?":["Quel titre souhaitez-vous donner \u00e0 votre nouveau site web ?"]}}}<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="https://skiniquebeautyacademy.com/sitemap-stylesheet.xsl"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9 http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd" xmlns:image="http://www.google.com/schemas/sitemap-image/1.1">
  <url>
    <loc>https://skiniquebeautyacademy.com/corgibet-casino-une-plateforme-en-constante-evolution/</loc>
    <lastmod>2026-07-05T03:38:09+00:00</lastmod>
  </url>
  <url>
    <loc>https://skiniquebeautyacademy.com/chk-deecd7fd/</loc>
    <lastmod>2026-10-25T22:23:25+00:00</lastmod>
  </url>
  <url>
    <loc>https://skiniquebeautyacademy.com/spotlight-on-nail-trends-whats-buzzing-in-the-industry/</loc>
    <lastmod>2026-09-24T12:28:10+00:00</lastmod>
  </url>
  <url>
    <loc>https://skiniquebeautyacademy.com/signature-style-custom-nail-designs-for-every-personality/</loc>
    <lastmod>2026-09-24T12:28:40+00:00</lastmod>
  </url>
  <url>
    <loc>https://skiniquebeautyacademy.com/nail-care-in-winter-protecting-your-nails-from-the-cold/</loc>
    <lastmod>2026-09-24T12:29:09+00:00</lastmod>
  </url>
  <url>
    <loc>https://skiniquebeautyacademy.com/the-perfect-pair-matching-manicures-and-pedicures/</loc>
    <lastmod>2026-08-16T11:02:09+00:00</lastmod>
    <image:image>
      <image:loc>https://skiniquebeautyacademy.com/wp-content/uploads/2024/05/Post-2.jpg</image:loc>
    </image:image>
  </url>
  <url>
    <loc>https://skiniquebeautyacademy.com/gel-polish-guide-long-lasting-colors-for-every-season/</loc>
    <lastmod>2026-08-16T11:02:21+00:00</lastmod>
  </url>
  <url>
    <loc>https://skiniquebeautyacademy.com/the-art-of-nail-sculpting-a-masterclass-in-acrylic-extensions/</loc>
    <lastmod>2026-08-16T11:02:33+00:00</lastmod>
  </url>
</urlset>
