Gaming laptops aren't the lumbering heaters they used to be. You get a lot less laptop for your money (in a good way) these days. Plus, you can save a little cash with the ongoing Cyber Monday deals.Check out the best Cyber Monday PC gaming deals or follow us on WhatsAppWe're spending our week (and weekend, wah) looking for deals on gaming laptops this Cyber Monday. At least we're finding some decent savings to talk about, as sitting here on my lonesome on a Sunday without even a penny saved would be pretty sad. I'm not crying, you're crying. Anyways, our team of hardware experts and I spend our entire year testing gaming laptops to make our recommendations. Check 'em out below: fc-author-commerce-widget[data-fcaw-version="1"] { display: block !important; width: 100% !important; min-width: 0 !important; max-width: none !important; isolation: isolate !important; contain: style !important;}fc-author-commerce-widget[data-fcaw-version="1"][data-fcaw-full-bleed="true"]{ width: min( 1200px, var(--fcaw-viewport-width, 100vw) ) !important; max-width: 1200px !important; margin-left: var( --fcaw-full-bleed-offset, calc(50% - min(600px, 50vw)) ) !important; margin-right: 0 !important; position: relative !important;}fc-author-commerce-widget[data-fcaw-version="1"][data-fcaw-full-bleed="true"] #tg-df-spreadsheet-filters { width: min( 1500px, var(--fcaw-viewport-width, 100vw) ) !important; max-width: 1500px !important; margin-left: calc( ( 100% - min(1500px, var(--fcaw-viewport-width, 100vw)) ) / 2 ) !important; margin-right: 0 !important;}fc-author-commerce-widget[data-fcaw-version="1"] .fcaw-v1-fallback,fc-author-commerce-widget[data-fcaw-version="1"] .fcaw-v1-fallback *,fc-author-commerce-widget[data-fcaw-version="1"] .fcaw-v1-fallback *::before,fc-author-commerce-widget[data-fcaw-version="1"] .fcaw-v1-fallback *::after { box-sizing: border-box;} /* --- Shadow DOM Base Reset --- */ *, *::before, *::after { box-sizing: border-box; } img, picture, svg, video { max-width: 100%; height: auto; display: block; } /* 1. Scoped CSS for Tom's Guide Deals Widget All classes are prefixed with 'tg-df-' to prevent CMS style leakage. */ .tg-df-container { user-select: text; -webkit-user-select: text; container-type: inline-size; container-name: tg-df; --tg-df-text: #222222; --tg-df-text-muted: #555555; --tg-df-bg: #ffffff; --tg-df-bg-secondary: #f4f4f4; --tg-df-border: #e2e8f0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; color: var(--tg-df-text); background-color: transparent; width: 100%; max-width: 1200px; margin: 0 auto; padding-bottom: 24px; } .tg-df-container *, .tg-df-container *::before, .tg-df-container *::after { margin: 0; padding: 0; box-sizing: border-box; } .tg-df-widget-host[data-tg-df-full-bleed="true"] { width: min( 1200px, var(--fcaw-viewport-width, 100vw) ) !important; max-width: 1200px !important; margin-left: calc( ( 100% - min(1200px, var(--fcaw-viewport-width, 100vw)) ) / 2 ) !important; margin-right: 0 !important; position: relative !important; } .tg-df-widget-host[data-tg-df-full-bleed="true"] #tg-df-spreadsheet-filters { width: min( 1500px, var(--fcaw-viewport-width, 100vw) ) !important; max-width: 1500px !important; margin-left: calc( ( 100% - min(1500px, var(--fcaw-viewport-width, 100vw)) ) / 2 ) !important; margin-right: 0 !important; } .tg-df-container img { border: none; margin: 0; padding: 0; } .tg-df-container a { text-decoration: none; color: inherit; } /* 2. Search & Filter Bar */ .tg-df-controls { display: flex; flex-direction: column; align-items: center; gap: 20px; margin-bottom: 32px; width: 100%; position: relative; z-index: 20; } .tg-df-top-bar { display: flex; width: 100%; max-width: 760px; gap: 12px; margin: 0 auto; align-items: center; } .tg-df-search-wrapper { position: relative; flex: 1; width: 100%; box-shadow: 0 8px 24px rgba(0,0,0,0.06); border-radius: 40px; background: var(--tg-df-bg); border: 1px solid var(--tg-df-border); z-index: 100; } .tg-df-autocomplete-dropdown { position: absolute; top: calc(100% + 4px); left: 0; right: 0; background: var(--tg-df-bg); border: 1px solid var(--tg-df-border); border-radius: 12px; box-shadow: 0 8px 32px rgba(0,0,0,0.12); max-height: 300px; overflow-y: auto; z-index: 200; display: none; } .tg-df-autocomplete-dropdown.active { display: block; } .tg-df-autocomplete-item { padding: 12px 24px; cursor: pointer; font-size: 14px; color: var(--tg-df-text); transition: background 0.1s ease; } .tg-df-autocomplete-item:hover { background: var(--tg-df-bg-secondary); } .tg-df-search-input { width: 100%; padding: 16px 64px 16px 24px; font-size: 16px; border: 2px solid transparent; border-radius: 40px; outline: none; transition: border-color 0.2s ease, box-shadow 0.2s ease; color: var(--tg-df-text); background: transparent; } .tg-df-search-input:focus { border-color: transparent; box-shadow: 0 0 0 3px rgba(0, 108, 196, 0.15); } .tg-df-search-input::placeholder { color: #999999; } .tg-df-search-btn { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%; background: #222; border: none; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: background 0.2s ease; } .tg-df-search-btn:hover { background: #000; } .tg-df-search-icon { width: 16px; height: 16px; fill: #fff; } .tg-df-settings-wrapper { position: relative; } .tg-df-settings-btn { width: 48px; height: 48px; border-radius: 50%; background: var(--tg-df-bg); border: 1px solid var(--tg-df-border); box-shadow: 0 4px 12px rgba(0,0,0,0.04); display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all 0.2s ease; color: var(--tg-df-text-muted); flex-shrink: 0; } .tg-df-settings-btn:hover { background: var(--tg-df-bg-secondary); border-color: #0000ff; color: var(--tg-df-text); } .tg-df-settings-btn svg { width: 24px; height: 24px; fill: currentColor; } .tg-df-settings-dropdown { position: absolute; top: calc(100% + 8px); right: 0; background: var(--tg-df-bg); border: 1px solid var(--tg-df-border); border-radius: 12px; box-shadow: 0 8px 32px rgba(0,0,0,0.12); width: 280px; padding: 20px; display: none; z-index: 100; flex-direction: column; gap: 20px; } .tg-df-settings-dropdown.active { display: flex; } .tg-df-settings-dropdown-backdrop { display: none; position: fixed; inset: 0; z-index: 99; } .tg-df-settings-dropdown-backdrop.active { display: block; } .tg-df-setting-item { display: flex; flex-direction: column; gap: 10px; } .tg-df-setting-label { font-size: 11px; font-weight: 700; color: var(--tg-df-text-muted); text-transform: uppercase; letter-spacing: 0.5px; } .tg-df-region-select { padding: 10px 12px; border-radius: 8px; border: 1px solid var(--tg-df-border); font-size: 15px; outline: none; background: var(--tg-df-bg-secondary); color: var(--tg-df-text); cursor: pointer; width: 100%; } .tg-df-toggle { position: relative; display: inline-block; width: 44px; height: 24px; flex-shrink: 0; } .tg-df-toggle input { opacity: 0; width: 0; height: 0; } .tg-df-slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: #ccc; transition: .2s; border-radius: 24px; } .tg-df-slider:before { position: absolute; content: ""; height: 18px; width: 18px; left: 3px; bottom: 3px; background-color: white; transition: .2s; border-radius: 50%; } .tg-df-toggle input:checked + .tg-df-slider { background-color: var(--tg-df-blue); } .tg-df-toggle input:checked + .tg-df-slider:before { transform: translateX(20px); } .tg-df-dl-row { flex-direction: row; align-items: center; justify-content: space-between; } .tg-df-dl-row-text { font-size: 14px; font-weight: 600; color: var(--tg-df-text); } .tg-df-dl-row-subtext { font-size: 12px; font-weight: 400; line-height: 1.3; color: var(--tg-df-text-muted); margin-top: 4px; display: block; } .tg-df-filters-container { position: relative; width: 100%; max-width: 42rem; } .tg-df-scroll-btn { display: none; position: absolute; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; background: white; border: 1px solid var(--tg-df-border); border-radius: 50%; align-items: center; justify-content: center; cursor: pointer; z-index: 10; box-shadow: 0 2px 8px rgba(0,0,0,0.1); color: var(--tg-df-text-primary); padding: 0; } .tg-df-scroll-btn svg { width: 16px; height: 16px; } .tg-df-scroll-btn:hover { background: #f4f4f4; } .tg-df-scroll-btn.left { left: 0px; } .tg-df-scroll-btn.right { right: 0px; } .tg-df-filters { display: flex; justify-content: center; width: 100%; gap: 12px; margin: 0 auto; max-width: 42rem; } .tg-df-sort-wrapper { position: relative; display: flex; align-items: center; width: 100%; max-width: 280px; } .tg-df-sort-icon { position: absolute; left: 14px; width: 14px; height: 14px; fill: var(--tg-df-text-muted); pointer-events: none; } .tg-df-sort-select, .tg-df-filter-select { width: 100%; padding: 10px 36px 10px 38px; font-size: 14px; border: 1px solid var(--tg-df-border); border-radius: 100px; outline: none; appearance: none; background-color: var(--tg-df-bg-secondary); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 12 12'%3E%3Cpath fill='%23555555' d='M6 8L1 3h10z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; color: var(--tg-df-text); cursor: pointer; font-weight: 500; transition: all 0.2s ease; } .tg-df-sort-select:hover, .tg-df-filter-select:hover { background-color: #e2e8f0; } .tg-df-multiselect-container { position: relative; } .tg-df-scroll-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; background: white; border: 1px solid var(--tg-df-border); border-radius: 50%; align-items: center; justify-content: center; cursor: pointer; z-index: 10; box-shadow: 0 2px 8px rgba(0,0,0,0.1); color: var(--tg-df-text-primary); padding: 0; } .tg-df-scroll-btn svg { width: 16px; height: 16px; } .tg-df-scroll-btn:hover { background: #f4f4f4; } .tg-df-scroll-btn.left { left: 4px; } .tg-df-scroll-btn.right { right: 4px; } @container tg-df (max-width: 768px) { .tg-df-container { user-select: text; -webkit-user-select: text; border: none !important; border-radius: 0 !important; } .tg-df-filters-container { position: relative; width: 100%; max-width: 42rem; margin: 0 auto; } .tg-df-filters { justify-content: center; width: 100%; margin: 0 auto; margin-bottom: -320px; padding: 0 0 320px 0; display: flex; flex-wrap: nowrap; gap: 8px; overflow-x: auto; overflow-y: hidden; pointer-events: none; scrollbar-width: none; -webkit-overflow-scrolling: touch; } .tg-df-filters::-webkit-scrollbar { display: none; } .tg-df-sort-wrapper { pointer-events: auto; flex: 0 0 auto; width: 175px; min-width: 175px; } } .tg-df-multiselect-trigger { display: block; background: #fff; user-select: none; width: 100%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; } .tg-df-multiselect-dropdown { display: none; position: absolute; top: calc(100% + 4px); left: 0; width: 100%; min-width: 220px; max-height: 300px; overflow-y: auto; background: var(--tg-df-bg); border: 1px solid var(--tg-df-border); border-radius: 8px; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); z-index: 100; padding: 8px 0; } .tg-df-multiselect-dropdown.active { display: block; } .tg-df-ms-option { padding: 8px 16px; display: flex; align-items: center; gap: 8px; cursor: pointer; font-size: 14px; } .tg-df-ms-option:hover { background-color: var(--tg-df-bg-secondary); } .tg-df-ms-option input { cursor: pointer; accent-color: #1f69ff; } .tg-df-sort-select:focus, .tg-df-filter-select:focus { border-color: #0000ff; box-shadow: 0 0 0 3px rgba(0, 0, 255, 0.2); background-color: var(--tg-df-bg); } /* 3. Deal Grid Layout */ .tg-df-grid.tg-df-grid-auto { padding-top: 24px; } .tg-df-grid, .tg-df-grid.layout-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; } .tg-df-grid.layout-row { grid-template-columns: 1fr; gap: 16px; } .tg-df-grid.layout-row .tg-df-card { flex-direction: row; align-items: stretch; height: auto; box-shadow: none; border-bottom: 1px solid var(--tg-df-border); } .tg-df-grid.layout-row .tg-df-card:hover { box-shadow: none; } .tg-df-grid.layout-row .tg-df-card-image-box { width: 140px; min-width: 140px; aspect-ratio: 3/4; border-right: none; padding: 16px 16px 16px 32px; } .tg-df-grid.layout-row .tg-df-card-body { padding: 16px; justify-content: space-between; } .tg-df-grid.layout-row .tg-df-card-title { font-size: 15px; margin-bottom: 16px; } .tg-df-grid.layout-row .tg-df-card-stars { margin-bottom: 8px; } .tg-df-grid.layout-row .tg-df-card-footer { flex-direction: column; align-items: flex-start; gap: 0; } .tg-df-grid.layout-row .tg-df-card-merchant-pill { margin-bottom: 4px; } .tg-df-grid.layout-row .tg-df-card-price-group { margin-bottom: 8px; } .tg-df-grid.layout-row .tg-df-price-group { width: auto; } .tg-df-grid.layout-row .tg-df-card-cta { width: calc(100% + 32px); max-width: none; padding: 10px 24px; font-size: 13px; flex-shrink: 0; text-align: center; justify-content: center; margin: 0 -16px -16px -16px; } /* 4. Deal Card Design */ .tg-df-card { position: relative; display: flex; flex-direction: column; background-color: #ffffff; border-radius: 0; overflow: hidden; transition: transform 0.2s ease, box-shadow 0.2s ease; text-decoration: none; color: inherit; height: 100%; box-shadow: 0 0 16px rgba(0, 0, 0, 0.08); border: 1px solid var(--tg-df-border); } .tg-df-card:hover { box-shadow: 0 0 24px rgba(0, 0, 0, 0.12); } .tg-df-card-image-box { width: 100%; aspect-ratio: 3/4; background-color: #f8f8f8; display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; padding: 32px; flex: 0 0 auto; } .tg-df-card-image { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; mix-blend-mode: multiply; /* Helps white background images blend into secondary bg */ transition: transform 0.3s ease; } .tg-df-card:hover .tg-df-card-image { transform: scale(1.05); /* Zoom in on hover */ } .tg-df-card-discount-badge { position: absolute; top: 12px; left: 12px; background: #dc2626; /* Red */ color: #ffffff; padding: 6px 8px; font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.5px; border-radius: 0; z-index: 10; } .tg-df-buying-guide-badge { left: auto; right: 12px; max-width: calc(100% - 24px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .tg-df-card-merchant-pill { display: block; padding: 0; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; border-radius: 0; color: var(--tg-df-text-muted); margin-bottom: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .tg-df-card-body { padding: 16px; display: flex; flex-direction: column; flex-grow: 1; min-width: 0; } .tg-df-card-badges { position: absolute; bottom: 8px; left: 8px; display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 0; z-index: 10; } .tg-df-tag { display: inline-flex; align-items: center; padding: 4px 6px; font-size: 11px; font-weight: 700; text-transform: uppercase; border-radius: 4px; gap: 4px; } .tg-df-tag-prime { background-color: #00A8E1; color: #fff; } .tg-df-tag-coupons { background-color: #f1f5f9; color: #334155; border: 1px solid #cbd5e1; cursor: pointer; transition: background-color 0.2s; } .tg-df-tag-coupons:hover { background-color: #e2e8f0; } .tg-df-tag-outline { background-color: #f1f5f9; color: #334155; border: 1px solid #cbd5e1; cursor: pointer; transition: background-color 0.2s; } .tg-df-tag-outline:hover { background-color: #e2e8f0; } @keyframes tg-df-spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } } .tg-df-coupon-spinner { border: 2px solid #e2e8f0; border-top: 2px solid #3b82f6; border-radius: 50%; width: 14px; height: 14px; animation: tg-df-spin 1s linear infinite; margin: 4px 8px; display: inline-block; } /* Vouchers Modal */ .tg-df-modal-backdrop { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.5); z-index: 10000; display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity 0.3s; } .tg-df-modal-backdrop.active { opacity: 1; pointer-events: auto; } .tg-df-modal { background: #fff; border-radius: 12px; width: 90%; max-width: 400px; max-height: 80vh; display: flex; flex-direction: column; box-shadow: 0 10px 40px rgba(0,0,0,0.2); transform: translateY(20px); transition: transform 0.3s; } .tg-df-modal-backdrop.active .tg-df-modal { transform: translateY(0); } .tg-df-modal-header { padding: 16px; border-bottom: 1px solid #e2e8f0; display: flex; align-items: center; justify-content: space-between; } .tg-df-modal-title { font-size: 16px; font-weight: 600; margin: 0; } .tg-df-modal-close { background: none; border: none; cursor: pointer; padding: 4px; color: #64748b; } .tg-df-modal-body { padding: 16px; overflow-y: auto; } .tg-df-voucher-item { padding: 12px; border: 1px dashed #cbd5e1; border-radius: 8px; margin-bottom: 10px; background: #f8fafc; display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; transition: background-color 0.2s, border-color 0.2s; } .tg-df-voucher-item:hover { background: #f1f5f9; border-color: #94a3b8; } .tg-df-voucher-item:last-child { margin-bottom: 0; } .tg-df-voucher-logo { width: 48px; height: 48px; object-fit: contain; border-radius: 4px; background: #fff; border: 1px solid #e2e8f0; flex-shrink: 0; } .tg-df-voucher-content { flex: 1; min-width: 0; } .tg-df-voucher-title { font-size: 14px; font-weight: 600; margin: 0 0 4px 0; line-height: 1.3; color: #0f172a; } .tg-df-voucher-expiry { font-size: 12px; color: #64748b; display: flex; align-items: center; gap: 4px; margin-top: 6px; } .tg-df-voucher-code { display: inline-flex; align-items: center; background: #f1f5f9; border: 1px dashed #cbd5e1; padding: 6px 10px; font-family: monospace; font-weight: 700; font-size: 14px; color: #0f172a; border-radius: 4px; margin-top: 8px; cursor: pointer; transition: all 0.2s ease; } .tg-df-voucher-code:hover { background: #e2e8f0; border-color: #94a3b8; } .tg-df-voucher-code.copied { background: #ecfdf5; border-color: #10b981; color: #10b981; } .tg-df-voucher-cta { display: inline-block; margin-top: 8px; font-size: 13px; font-weight: 600; color: #2563eb; text-decoration: none; } .tg-df-card-title { font-size: 15px; font-weight: 400; line-height: 1.4; margin: 0 0 12px 0; color: var(--tg-df-text); } .tg-df-card-footer { margin-top: auto; display: flex; flex-direction: column; width: 100%; } .tg-df-card-price-group { display: flex; flex-direction: row; align-items: center; gap: 8px; margin-bottom: 12px; } .tg-df-card-price { font-size: 16px; font-weight: 700; color: #dc2626; /* Red price */ line-height: 1; } .tg-df-card-msrp { font-size: 13px; color: var(--tg-df-text-muted); text-decoration: line-through; } .tg-df-card-listings { margin: 0 0 12px; } .tg-df-card-listings-title { display: block; color: var(--tg-df-text-muted); font-size: 11px; font-weight: 700; letter-spacing: 0.45px; line-height: 1.2; margin-bottom: 4px; text-transform: uppercase; } .tg-df-card-listings-links { border-top: 1px solid var(--tg-df-border); } .tg-df-container .tg-df-card-listing-link { align-items: center; border-bottom: 1px solid var(--tg-df-border); box-sizing: border-box; color: var(--tg-df-blue); display: flex; font-size: 13px; font-weight: 700; justify-content: space-between; line-height: 1.2; min-height: 34px; padding: 5px 2px; text-decoration: none; } .tg-df-container .tg-df-card-listing-link::after { content: '↗'; font-size: 14px; font-weight: 600; margin-left: 8px; } .tg-df-container .tg-df-card-listing-link:hover, .tg-df-container .tg-df-card-listing-link:focus-visible { background: #f8fafc; color: var(--tg-df-blue); outline: 2px solid var(--tg-df-blue); outline-offset: -2px; text-decoration: none; } .tg-df-container .tg-df-card-cta { display: flex; align-items: center; justify-content: center; width: calc(100% + 32px); max-width: none; box-sizing: border-box; background-color: var(--tg-df-blue); color: #ffffff; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; padding: 12px 16px; border-radius: 0; border: none; cursor: pointer; transition: background-color 0.2s ease; margin: 0 -16px -16px -16px; } .tg-df-card:hover .tg-df-card-cta, .tg-df-card-cta:hover { filter: brightness(0.85); } /* 5. State & Skeleton Styles */ .tg-df-message { grid-column: 1 / -1; text-align: center; padding: 48px 24px; color: var(--tg-df-text-muted); font-size: 16px; background: var(--tg-df-bg); border: 1px solid var(--tg-df-border); border-radius: 8px; } @keyframes tg-df-shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } } .tg-df-skeleton { background: linear-gradient(90deg, var(--tg-df-bg-secondary) 25%, #e2e8f0 50%, var(--tg-df-bg-secondary) 75%); background-size: 200% 100%; animation: tg-df-shimmer 1.5s infinite; border-radius: 4px; } .tg-df-skeleton-img { width: 100%; height: 100%; position: absolute; top: 0; left: 0; } .tg-df-skeleton-text { height: 16px; margin-bottom: 8px; width: 100%; } .tg-df-skeleton-text.short { width: 40%; } .tg-df-skeleton-text.title { height: 20px; margin-bottom: 16px; } /* Editor Floating Bar & Elements */ .tg-df-editor-bar { position: sticky; top: 120px; z-index: 1000; background: #111827; color: #fff; padding: 12px 16px; border-radius: 8px; margin-bottom: 16px; display: flex; align-items: center; justify-content: space-between; box-shadow: 0 4px 12px rgba(0,0,0,0.15); } .tg-df-editor-bar-text { font-weight: 600; font-size: 14px; } .tg-df-editor-copy-btn { background: #10b981; color: #fff; padding: 6px 16px; border: none; border-radius: 4px; font-weight: 600; cursor: pointer; display: flex; align-items: center; font-size: 13px; } .tg-df-editor-copy-btn:hover { background: #059669; } .tg-df-deal-checkbox { position: absolute; top: 12px; right: 12px; z-index: 10; width: 20px; height: 20px; cursor: pointer; pointer-events: auto; } /* Optional mobile 2x2 filter grid */ .tg-df-mobile-2x2-container { display: none; width: 100%; margin: 0 0 16px 0; position: relative; z-index: 30; } .tg-df-mobile-2x2-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); width: 100%; border: 1px solid var(--tg-df-border, #e2e8f0); background: var(--tg-df-bg, #ffffff); } .tg-df-container .tg-df-mobile-grid-cell { appearance: none; display: flex; align-items: center; justify-content: space-between; min-width: 0; padding: 12px 14px; font-family: inherit; font-size: 11px; font-weight: 600; line-height: 1.2; text-transform: uppercase; letter-spacing: 0.5px; text-align: left; color: var(--tg-df-text-muted, #64748b); background: var(--tg-df-bg, #ffffff); border: 0; border-radius: 0; cursor: pointer; box-shadow: none; } .tg-df-mobile-grid-cell > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .tg-df-mobile-grid-cell > svg { flex: 0 0 auto; margin-left: 8px; transition: transform 0.15s ease; } .tg-df-mobile-grid-cell > svg.is-open { transform: rotate(180deg); } .tg-df-mobile-grid-cell { border-bottom: 1px solid var(--tg-df-border, #e2e8f0); } .tg-df-mobile-grid-cell:nth-child(odd) { border-right: 1px solid var(--tg-df-border, #e2e8f0); } .tg-df-mobile-2x2-grid--even .tg-df-mobile-grid-cell:nth-last-child(-n + 2) { border-bottom: 0; } .tg-df-mobile-2x2-grid--odd .tg-df-mobile-grid-cell:last-child { grid-column: 1 / -1; border-right: 0; border-bottom: 0; } .tg-df-container .tg-df-mobile-grid-cell.active, .tg-df-container .tg-df-mobile-grid-cell:hover { background: var(--tg-df-bg-secondary, #f8fafc); color: var(--tg-df-text, #0f172a); } .tg-df-container .tg-df-mobile-grid-cell.has-active-filter { background: var(--tg-df-blue, #1f69ff); color: #ffffff; } .tg-df-mobile-menu-drawer { width: 100%; max-height: 260px; overflow-y: auto; overscroll-behavior: contain; border: 1px solid var(--tg-df-border, #e2e8f0); border-top: 0; background: var(--tg-df-bg, #ffffff); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08); } .tg-df-container .tg-df-mobile-menu-item { appearance: none; display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 42px; padding: 12px 16px; font-family: inherit; font-size: 12px; font-weight: 500; line-height: 1.3; text-align: left; color: var(--tg-df-text, #0f172a); background: var(--tg-df-bg, #ffffff); border: 0; border-bottom: 1px solid #f1f5f9; border-radius: 0; cursor: pointer; box-shadow: none; } .tg-df-container .tg-df-mobile-menu-item:last-child { border-bottom: 0; } .tg-df-container .tg-df-mobile-menu-item.selected { color: var(--tg-df-blue, #1f69ff); background: rgba(31, 105, 255, 0.08); font-weight: 600; } .tg-df-container .tg-df-mobile-menu-item:hover { background: var(--tg-df-bg-secondary, #f8fafc); } .tg-df-mobile-cell-badge { display: inline-flex; align-items: center; justify-content: center; padding: 2px 6px; margin-left: 4px; color: var(--tg-df-blue, #1f69ff); background: rgba(31, 105, 255, 0.1); border-radius: 9999px; font-size: 10px; font-weight: 700; } @container tg-df (max-width: 599px) { .tg-df-widget-host[data-tg-df-mobile-dropdowns="true"] .tg-df-mobile-2x2-container { display: block !important; z-index: 50; background: var(--tg-df-bg, #ffffff); box-shadow: 0 2px 5px rgba(15, 23, 42, 0.08); } .tg-df-widget-host[data-tg-df-mobile-dropdowns="true"][data-tg-df-sticky-mobile-filters="true"] .tg-df-mobile-2x2-container { position: sticky !important; top: var(--fcaw-mobile-sticky-offset, 0px); } .tg-df-widget-host[data-tg-df-mobile-dropdowns="true"] .tg-df-categories-row-container, .tg-df-widget-host[data-tg-df-mobile-dropdowns="true"] .tg-df-freeform-tags-row-container, .tg-df-widget-host[data-tg-df-mobile-dropdowns="true"] .tg-df-brands-row-container, .tg-df-widget-host[data-tg-df-mobile-dropdowns="true"] .tg-df-controls { display: none !important; } } @media (max-width: 599px) { .tg-df-widget-host[data-tg-df-mobile-dropdowns="true"] .tg-df-mobile-2x2-container { display: block !important; z-index: 50; background: var(--tg-df-bg, #ffffff); box-shadow: 0 2px 5px rgba(15, 23, 42, 0.08); } .tg-df-widget-host[data-tg-df-mobile-dropdowns="true"][data-tg-df-sticky-mobile-filters="true"] .tg-df-mobile-2x2-container { position: sticky !important; top: var(--fcaw-mobile-sticky-offset, 0px); } .tg-df-widget-host[data-tg-df-mobile-dropdowns="true"] .tg-df-categories-row-container, .tg-df-widget-host[data-tg-df-mobile-dropdowns="true"] .tg-df-freeform-tags-row-container, .tg-df-widget-host[data-tg-df-mobile-dropdowns="true"] .tg-df-brands-row-container, .tg-df-widget-host[data-tg-df-mobile-dropdowns="true"] .tg-df-controls { display: none !important; } } /* A non-full-bleed desktop embed is constrained to the article column. Reuse the compact filter grid there instead of squeezing the rails. */ @container tg-df (min-width: 600px) { .tg-df-widget-host[data-tg-df-full-bleed="false"] .tg-df-mobile-2x2-container { display: block !important; } .tg-df-widget-host[data-tg-df-full-bleed="false"] .tg-df-categories-row-container, .tg-df-widget-host[data-tg-df-full-bleed="false"] .tg-df-freeform-tags-row-container, .tg-df-widget-host[data-tg-df-full-bleed="false"] .tg-df-brands-row-container, .tg-df-widget-host[data-tg-df-full-bleed="false"] .tg-df-controls { display: none !important; } } @media (min-width: 600px) { .tg-df-widget-host[data-tg-df-full-bleed="false"] .tg-df-mobile-2x2-container { display: block !important; } .tg-df-widget-host[data-tg-df-full-bleed="false"] .tg-df-categories-row-container, .tg-df-widget-host[data-tg-df-full-bleed="false"] .tg-df-freeform-tags-row-container, .tg-df-widget-host[data-tg-df-full-bleed="false"] .tg-df-brands-row-container, .tg-df-widget-host[data-tg-df-full-bleed="false"] .tg-df-controls { display: none !important; } } /* 6. Mobile List View (Stacks into a cleaner horizontal row/list) */ @container tg-df (max-width: 599px) { .tg-df-mobile-authors { gap: 16px !important; } .tg-df-mobile-authors .tg-df-author-row-item { width: 56px !important; } .tg-df-mobile-authors .tg-df-author-img-wrapper { width: 48px !important; height: 48px !important; } .tg-df-mobile-authors .tg-df-author-brand-logo { width: 18px !important; height: 18px !important; bottom: -2px !important; right: -2px !important; } .tg-df-mobile-authors .tg-df-author-row-name { font-size: 11px !important; } .tg-df-mobile-authors .tg-df-author-row-role { font-size: 10px !important; } .tg-df-container { user-select: text; -webkit-user-select: text; border: none !important; border-radius: 0 !important; } .tg-df-controls { padding: 16px 0 8px; } .tg-df-top-bar { width: 100%; } .tg-df-settings-dropdown { position: fixed; top: auto; bottom: 0; left: 0; right: 0; width: 100%; border-radius: 20px 20px 0 0; padding: 24px; box-shadow: 0 -8px 32px rgba(0,0,0,0.15); z-index: 1000; border: none; border-top: 1px solid var(--tg-df-border); } .tg-df-settings-dropdown-backdrop.active { background: rgba(0,0,0,0.4); } .tg-df-search-wrapper { box-shadow: 0 0 16px rgba(0,0,0,0.08); } .tg-df-sort-wrapper.tg-df-price-range-wrapper { flex: 0 0 auto; min-width: max-content; width: auto; } .tg-df-sort-select, .tg-df-filter-select { width: 100%; text-align: left; padding: 10px 24px 10px 32px; background-position: right 8px center; text-overflow: ellipsis; white-space: nowrap; overflow: hidden; } .tg-df-sort-icon { left: 10px; } .tg-df-grid:not(.layout-grid):not(.layout-row), .tg-df-grid.layout-row { grid-template-columns: 1fr; gap: 16px; } .tg-df-grid.tg-df-grid-auto { padding-top: 24px; } .tg-df-grid.tg-df-grid-auto .tg-df-card, .tg-df-grid.layout-row .tg-df-card { flex-direction: row; align-items: stretch; height: auto; box-shadow: none; /* simple line on mobile if preferred, or keep */ border-bottom: 1px solid var(--tg-df-border); } .tg-df-grid.tg-df-grid-auto .tg-df-card:hover, .tg-df-grid.layout-row .tg-df-card:hover { box-shadow: none; } .tg-df-grid.tg-df-grid-auto .tg-df-card-image-box, .tg-df-grid.layout-row .tg-df-card-image-box { width: 120px; min-width: 120px; aspect-ratio: 3/4; border-right: none; padding: 12px; } .tg-df-grid.tg-df-grid-auto .tg-df-card-body, .tg-df-grid.layout-row .tg-df-card-body { padding: 12px; justify-content: space-between; } .tg-df-grid.tg-df-grid-auto .tg-df-card-title, .tg-df-grid.layout-row .tg-df-card-title { font-size: 14px; margin-bottom: 8px; } /* Single column mobile grid override */ .tg-df-grid.layout-grid { grid-template-columns: 1fr; gap: 16px; } .tg-df-grid.layout-grid .tg-df-card-image-box { padding: 12px; } .tg-df-grid.layout-grid .tg-df-card-body { padding: 10px; } .tg-df-grid.layout-grid .tg-df-card-title { font-size: 13px; margin-bottom: 8px; } .tg-df-grid.layout-grid .tg-df-card-price { font-size: 14px; } .tg-df-card-footer { flex-direction: column; align-items: stretch; gap: 0; width: 100%; min-width: 0; } .tg-df-card-merchant-pill { margin-bottom: 4px; } .tg-df-card-price-group { flex: 1 1 auto; margin-bottom: 8px; } .tg-df-card-price { font-size: 16px; } .tg-df-card-msrp { display: block; } .tg-df-grid.layout-row .tg-df-card-cta, .tg-df-container .tg-df-card-cta { width: 100%; max-width: none; min-width: 0; box-sizing: border-box; padding: 5px 12px !important; font-size: 11px !important; height: 30px !important; min-height: 30px !important; border-radius: 0 !important; flex: 0 0 auto; text-align: center; white-space: nowrap; line-height: 1.2; margin: 8px 0 0; } } @media (max-width: 599px) { .tg-df-grid.layout-row .tg-df-card-cta, .tg-df-container .tg-df-card-cta { width: 100%; max-width: none; min-width: 0; box-sizing: border-box; padding: 5px 12px !important; font-size: 11px !important; height: 30px !important; min-height: 30px !important; border-radius: 0 !important; flex: 0 0 auto; text-align: center; white-space: nowrap; line-height: 1.2; margin: 8px 0 0; } } .tg-df-container.is-carousel { min-height: 760px; background-color: #E7F0FF; padding: 0 0 24px 0; border-radius: 24px; width: 100vw; max-width: 1200px; position: relative; left: 50%; transform: translateX(-50%); } .tg-df-container.is-carousel.hide-header-details { min-height: 480px; } /* 7. Carousel View Mode */ .tg-df-container .tg-df-carousel-host { /* Layout is now handled by container wrapper */ } .tg-df-container .tg-df-carousel-eyebrow { color: var(--tg-df-blue); font-weight: 700; font-size: 14px; text-transform: uppercase; letter-spacing: 1px; padding: 24px 16px 0 16px; display: none; } .tg-df-container .tg-df-carousel-query-title { color: #011535; font-size: 28px; font-weight: 600; padding: 0 16px 24px 16px; line-height: 1.2; display: none; } .tg-df-container .tg-df-carousel-blue-box { background-color: transparent; border-radius: 0; padding: 24px 24px 0 24px; margin: 0; color: var(--tg-df-blue); position: relative; overflow: hidden; } .tg-df-container .tg-df-carousel-bg-circle-1 { display: none; } .tg-df-container .tg-df-carousel-bg-circle-2 { display: none; } .tg-df-container .tg-df-carousel-bg-circle-3 { display: none; } .tg-df-container .tg-df-carousel-box-content { position: relative; z-index: 10; } .tg-df-container .tg-df-carousel-box-eyebrow { background-color: transparent; color: var(--tg-df-blue); font-weight: 700; font-size: 14px; text-transform: uppercase; letter-spacing: 1px; display: inline-block; padding: 0; border-radius: 0; } .tg-df-container .tg-df-carousel-box-title { font-size: 28px; font-weight: 600; line-height: 1.2; margin-top: 8px; color: #1e293b; } .tg-df-container .tg-df-countdown-wrapper { position: absolute; top: 0; right: 0; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; transform: scale(0.67); transform-origin: top right; } .tg-df-container .tg-df-countdown-title { font-size: 14px; font-weight: 600; color: #011535; margin: 0; } .tg-df-container .tg-df-countdown-blocks { display: flex; gap: 16px; } .tg-df-container .tg-df-countdown-item { display: flex; flex-direction: column; align-items: center; gap: 4px; } .tg-df-container .tg-df-countdown-box { width: 59px; height: 59px; background: #03FE9E; border-radius: 15px; display: flex; align-items: center; justify-content: center; } .tg-df-container .tg-df-countdown-num { font-family: 'Inter', sans-serif; font-weight: 700; font-size: 20px; line-height: normal; color: #011535; } .tg-df-container .tg-df-countdown-label { font-family: 'Inter', sans-serif; font-weight: 500; font-size: 16px; line-height: normal; color: #1e293b; text-transform: uppercase; } .tg-df-container .tg-df-carousel-box-subtitle { font-size: 16px; margin-top: 8px; font-weight: 300; color: #1e293b; line-height: 24px; } .tg-df-container .tg-df-carousel-roundels-wrapper { position: relative; margin-top: 24px; margin-left: -24px; margin-right: -24px; } .tg-df-container .tg-df-carousel-roundels { display: flex; gap: 16px; overflow-x: auto; scrollbar-width: none; padding-top: 12px; padding-bottom: 24px; padding-left: 24px; padding-right: 24px; margin-left: 0; margin-right: 0; } .tg-df-container .tg-df-carousel-scroll-right, .tg-df-container .tg-df-carousel-scroll-left { position: absolute; top: 50%; transform: translateY(-50%); height: 36px; width: 36px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background-color: rgba(255, 255, 255, 0.4); color: var(--tg-df-blue); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); border: none; cursor: pointer; transition: background-color 0.2s; margin-top: -4px; z-index: 10; } .tg-df-container .tg-df-carousel-scroll-right { right: 0; } .tg-df-container .tg-df-carousel-scroll-left { left: 0; } .tg-df-container .tg-df-carousel-scroll-right:hover, .tg-df-container .tg-df-carousel-scroll-left:hover { background-color: rgba(255, 255, 255, 0.6); } .tg-df-container .tg-df-carousel-filters-outer .tg-df-carousel-scroll-right, .tg-df-container .tg-df-carousel-filters-outer .tg-df-carousel-scroll-left { height: 30px; width: 30px; background-color: rgba(255, 255, 255, 0.8); box-shadow: 0 2px 4px rgba(0,0,0,0.1); margin-top: 0; color: #0f4098; } .tg-df-container .tg-df-carousel-filters-outer .tg-df-carousel-scroll-right:hover, .tg-df-container .tg-df-carousel-filters-outer .tg-df-carousel-scroll-left:hover { background-color: white; } .tg-df-container .tg-df-grid-wrapper { position: relative; } .tg-df-container .tg-df-grid-wrapper .tg-df-carousel-scroll-right, .tg-df-container .tg-df-grid-wrapper .tg-df-carousel-scroll-left { background-color: white; box-shadow: 0 4px 12px rgba(0,0,0,0.15); top: 40%; width: 44px; height: 44px; color: #0f4098; } .tg-df-container .tg-df-carousel-roundels::-webkit-scrollbar { display: none; } .tg-df-container .tg-df-roundel { display: flex; flex-direction: column; align-items: center; gap: 8px; cursor: pointer; min-width: 120px; flex-shrink: 0; } .tg-df-container .tg-df-roundel-img-box { width: 120px; height: 120px; border-radius: 50%; background: white; display: flex; align-items: center; justify-content: center; overflow: hidden; box-shadow: 0px 3px 14px 0px rgba(30, 41, 59, 0.08); transition: box-shadow 0.2s; } .tg-df-container .tg-df-roundel:hover .tg-df-roundel-img-box { box-shadow: 0 0 0 2px #E7F0FF, 0 0 0 4px var(--tg-df-blue); } .tg-df-container .tg-df-roundel.active .tg-df-roundel-img-box { box-shadow: 0 0 0 2px #E7F0FF, 0 0 0 4px var(--tg-df-blue); } .tg-df-container .tg-df-roundel:hover .tg-df-roundel-img-box img { transform: scale(1.08); } .tg-df-container .tg-df-roundel-img-box img { width: 100%; height: 100%; object-fit: contain; padding: 10px; box-sizing: border-box; transition: transform 0.3s ease; } .tg-df-container .tg-df-roundel-label { font-size: 13px; font-weight: 400; color: #1e293b; text-align: center; } .tg-df-container .tg-df-carousel-filters-label { font-size: 16px; font-weight: 400; color: #1e293b; white-space: nowrap; margin-right: 4px; } .tg-df-container .tg-df-carousel-filters-wrap { display: flex; align-items: center; flex-wrap: nowrap; gap: 8px; margin-top: 8px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; padding-bottom: 8px; margin-left: -24px; margin-right: -24px; padding-left: 24px; padding-right: 24px; } .tg-df-container .tg-df-carousel-filters-wrap::-webkit-scrollbar { display: none; } .tg-df-container .tg-df-carousel-filter-btn img, .tg-df-container .tg-df-carousel-filter-btn picture { height: 20px; width: 20px; object-fit: contain; object-position: center; display: inline-flex; align-items: center; justify-content: center; margin-right: 6px; } .tg-df-container .tg-df-carousel-filter-btn picture img { margin-right: 0; height: 100%; width: 100%; } .tg-df-container .tg-df-carousel-filter-btn img.active-img, .tg-df-container .tg-df-carousel-filter-btn picture:has(.active-img) { display: none; } .tg-df-container .tg-df-carousel-filter-btn:hover img.inactive-img, .tg-df-container .tg-df-carousel-filter-btn.active img.inactive-img, .tg-df-container .tg-df-carousel-filter-btn:hover picture:has(.inactive-img), .tg-df-container .tg-df-carousel-filter-btn.active picture:has(.inactive-img) { display: none; } .tg-df-container .tg-df-carousel-filter-btn:hover img.active-img, .tg-df-container .tg-df-carousel-filter-btn.active img.active-img, .tg-df-container .tg-df-carousel-filter-btn:hover picture:has(.active-img), .tg-df-container .tg-df-carousel-filter-btn.active picture:has(.active-img) { display: inline-flex; } .tg-df-container .tg-df-carousel-filter-btn { background: #ffffff; border: 2px solid #1e293b; color: #1e293b; border-radius: 24px; padding: 6px 16px; font-size: 14px; font-weight: 600; cursor: pointer; transition: all 0.2s; flex-shrink: 0; white-space: nowrap; } .tg-df-container .tg-df-carousel-filter-btn svg { margin-right: 6px; } .tg-df-container .tg-df-carousel-filter-btn { display: inline-flex; align-items: center; } .tg-df-container .tg-df-carousel-filter-btn:hover, .tg-df-container .tg-df-carousel-filter-btn.active { background: #1e293b; color: white; border-color: #1e293b; } .tg-df-grid.carousel-compact { display: flex; flex-wrap: nowrap; overflow-x: auto; gap: 16px; padding: 16px 24px; align-items: stretch; scrollbar-width: none; } .tg-df-grid.carousel-compact::-webkit-scrollbar { display: none; } .tg-df-grid.carousel-compact .tg-df-card { flex: 0 0 auto; width: 200px; min-height: auto; height: auto; display: flex; flex-direction: column; border-radius: 15px; border: none; box-shadow: 0 0 16px rgba(0,0,0,0.08); overflow: visible; } .tg-df-grid.carousel-compact .tg-df-card-image-box { padding: 12px; background-color: transparent; border-radius: 15px 15px 0 0; height: 130px; } .tg-df-grid.carousel-compact .tg-df-card-image { mix-blend-mode: normal; } .tg-df-grid.carousel-compact .tg-df-card-discount-badge { border-radius: 0; top: 0px; left: 0px; padding: 4px 8px; font-size: 11px; } .tg-df-grid.carousel-compact .tg-df-card-body { padding: 8px 12px 12px 12px; } .tg-df-grid.carousel-compact .tg-df-card-title { font-size: 14px; font-weight: 400; -webkit-line-clamp: 2; margin-bottom: 8px; color: #011535; } .tg-df-grid.carousel-compact .tg-df-card-body:not(:has(.tg-df-card-stars)):not(:has(.tg-df-tag-prime)):not(:has(.tg-df-coupon-wrapper:not([style*="none"]))) > .tg-df-card-title, .tg-df-grid.carousel-compact .tg-df-card-body:not(:has(.tg-df-card-stars)):has(> .tg-df-card-title:first-child) > .tg-df-card-title { -webkit-line-clamp: 3; } .tg-df-grid.carousel-compact .tg-df-card-cta { width: calc(100% + 24px); border-radius: 0; padding: 8px 10px; margin: auto -12px -12px -12px; background-color: var(--tg-df-blue); } .tg-df-grid.carousel-compact .tg-df-card-price-group { margin-bottom: 2px; } .tg-df-grid.carousel-compact .tg-df-card-merchant-pill { margin-bottom: 2px; } @container tg-df (max-width: 599px) { .tg-df-container .tg-df-carousel-blue-box-title { font-size: 24px; } .tg-df-container .tg-df-countdown-title { display: none; } .tg-df-container .tg-df-countdown-wrapper { position: absolute; top: 0; right: 0; align-items: flex-end; transform: scale(0.40); transform-origin: top right; } .tg-df-container .tg-df-roundel { min-width: 88px; } .tg-df-container .tg-df-roundel-img-box { width: 88px; height: 88px; } } /* REPLICA BLOCK STYLES */ .tg-df-grid.layout-replica-2 { grid-template-columns: repeat(2, 1fr) !important; gap: 20px; } .tg-df-grid.layout-replica-1 { grid-template-columns: 1fr !important; gap: 20px; } .tg-df-container .hawk-deal-widget-container { border-bottom: 1px solid #e5e7eb; display: flex; flex-direction: column; margin: 0; padding: 20px 0; box-sizing: border-box; font-family: inherit; } .tg-df-container .hawk-deal-widget-wrap { display: flex; flex-direction: row; align-items: flex-start; width: 100%; gap: 24px; } .tg-df-container .hawk-deal-widget-image-container { display: flex; flex-shrink: 0; justify-content: center; width: 160px; height: 160px; align-items: center; background: white; margin-bottom: 0px; } .tg-df-container .hawk-deal-widget-title-product-title { color: #111827; font-size: 18px; font-weight: 700; line-height: 1.4; display: inline; } .tg-df-container .hawk-deal-widget-title-price { font-size: 18px; font-weight: 700; line-height: 1.4; white-space: nowrap; color: #2563eb; } .tg-df-container .hawk-deal-widget-title-price-now { font-weight: 700; } .tg-df-container .hawk-deal-widget-title-retailer-price:hover { text-decoration: underline; } .tg-df-container .hawk-deal-widget-title-retailer { font-size: 18px; font-weight: 700; line-height: 1.4; color: #2563eb; } .tg-df-container .hawk-deal-widget-title-was-price { color: #dc2626; font-size: 16px; font-weight: 500; line-height: 1.4; text-decoration: line-through; white-space: nowrap; margin-left: 8px; margin-right: 8px; } .tg-df-container .hawk-deal-widget-text-body-container { position: relative; width: 100%; box-sizing: border-box; } .tg-df-container .hawk-deal-widget-text-body-main { font-size: 16px; width: 100%; margin-bottom: 12px; } .tg-df-container .hawk-deal-widget-text-body-description { display: block; font-size: 15px; margin-top: 12px; color: #4b5563; line-height: 1.6; } .tg-df-container .hawk-deal-widget-text-body-description p { margin: 0; line-height: 1.6; } .tg-df-container .hawk-deal-widget-text-cta-container { display: flex; flex-direction: column; gap: 12px; width: 100%; flex: 1; min-width: 0; box-sizing: border-box; padding-right: 12px; } .tg-df-container .hawk-deal-widget-footer { display: flex; justify-content: flex-end; width: 100%; margin-top: auto; } .tg-df-container .hawk-deal-widget-button-wrapper { display: flex; flex-direction: column; align-items: flex-end; justify-content: flex-end; width: 100%; } .tg-df-container .hawk-deal-widget-preferred-partner-wrapper { display: flex; flex-direction: row; } @container tg-df (min-width: 600px) { .tg-df-mobile-only { display: none !important; } } @media (min-width: 600px) { .tg-df-mobile-only { display: none !important; } } @container tg-df (max-width: 599px) { .tg-df-desktop-only { display: none !important; } .tg-df-grid.layout-replica-2 { grid-template-columns: 1fr !important; } .tg-df-grid.savings-squad-cards { grid-template-columns: 1fr !important; display: flex; flex-direction: column; } .tg-df-container .hawk-deal-widget-title-product-title, .tg-df-container .hawk-deal-widget-title-price, .tg-df-container .hawk-deal-widget-title-retailer { font-size: 14px !important; line-height: 1.35 !important; font-weight: 700 !important; } .tg-df-container .hawk-deal-widget-title-was-price { font-size: 13px !important; line-height: 1.35 !important; } .tg-df-container .hawk-deal-widget-text-body-main { font-size: 14px !important; line-height: 1.35 !important; margin-bottom: 8px !important; } } .tg-df-grid.savings-squad-cards .tg-df-card-title { -webkit-line-clamp: unset !important; display: block !important; overflow: visible !important; } /* BESPOKE AUTHOR HEADER STYLES - MAX ISOLATION PROTECTION */ .tg-df-author-embed { width: 100% !important; font-family: inherit !important; background: transparent !important; margin: 0 !important; padding: 0 !important; border: none !important; } .tg-df-author-section { display: block !important; width: 100% !important; max-width: 100% !important; opacity: 1 !important; overflow: visible !important; background: transparent !important; border: none !important; margin: 0 auto !important; padding: 0 !important; box-shadow: none !important; } .tg-df-author-card { text-align: center !important; padding: 1.75rem 1rem 1.25rem 1rem !important; margin: 0 auto !important; max-width: 48rem !important; background: transparent !important; border: none !important; border-radius: 0 !important; box-sizing: border-box !important; box-shadow: none !important; } .tg-df-author-image { width: 180px !important; height: 180px !important; border-radius: 50% !important; object-fit: cover !important; margin: 0 auto 0.75rem auto !important; display: block !important; border: none !important; box-shadow: none !important; max-width: 100% !important; } .tg-df-author-media-slot { width: 100% !important; height: 180px !important; min-height: 180px !important; margin: 0 auto 0.75rem auto !important; display: flex !important; align-items: center !important; justify-content: center !important; } .tg-df-author-media-slot .tg-df-author-image { margin: 0 auto !important; } .tg-df-author-profile-image-wrapper { position: relative !important; width: 180px !important; height: 180px !important; margin: 0 auto 0.75rem auto !important; flex: 0 0 auto !important; } .tg-df-author-profile-brand-logo { position: absolute !important; right: 12px !important; bottom: 12px !important; width: 42px !important; height: 42px !important; padding: 0 !important; border: 3px solid var(--tg-df-bg, #fff) !important; border-radius: 50% !important; background: #000 !important; object-fit: contain !important; box-sizing: border-box !important; } .tg-df-author-curated-by { font-size: 0.875rem !important; color: #6B7280 !important; font-style: normal !important; margin: 0 0 0.25rem 0 !important; padding: 0 !important; border: none !important; background: none !important; font-family: inherit !important; text-transform: none !important; letter-spacing: normal !important; line-height: 1.4 !important; } .tg-df-author-name { font-size: 2rem !important; font-weight: 300 !important; color: #111827 !important; margin: 0 0 0.25rem 0 !important; padding: 0 !important; line-height: 1.1 !important; letter-spacing: -0.02em !important; border: none !important; background: none !important; font-family: inherit !important; text-transform: none !important; } .tg-df-author-role { font-size: 0.9375rem !important; font-weight: 500 !important; color: var(--tg-df-blue, #1F69FF) !important; margin: 0 0 1.25rem 0 !important; padding: 0 !important; line-height: 1.3 !important; border: none !important; background: none !important; font-family: inherit !important; text-transform: none !important; } .tg-df-author-meta-slot { width: 100% !important; min-height: 88px !important; display: flex !important; flex-direction: column !important; align-items: center !important; justify-content: flex-start !important; } .tg-df-author-meta-slot--site { padding-top: 1rem !important; } .tg-df-author-meta-slot--no-social { min-height: 0 !important; } .tg-df-author-meta-slot--no-social .tg-df-author-role { margin-bottom: 0.5rem !important; } .tg-df-author-social-links { display: flex !important; flex-wrap: wrap !important; align-items: center !important; justify-content: center !important; gap: 1rem !important; margin: 0 auto 1.25rem auto !important; padding: 0 !important; max-width: 42rem !important; width: 100% !important; list-style: none !important; background: none !important; border: none !important; box-shadow: none !important; } .tg-df-author-social-btn { display: inline-flex !important; align-items: center !important; justify-content: center !important; padding: 0 !important; border-radius: 50% !important; background-color: #f2f2f2 !important; color: #111111 !important; font-size: 0.8125rem !important; font-weight: 500 !important; text-decoration: none !important; transition: all 0.2s ease !important; border: 0 !important; line-height: 1 !important; box-shadow: none !important; cursor: pointer !important; outline: none !important; margin: 0 !important; height: 34px !important; width: 34px !important; min-width: 34px !important; box-sizing: border-box !important; } .tg-df-author-social-btn:hover { background-color: #dedede !important; color: #111111 !important; transform: translateY(-1px) !important; } .tg-df-author-social-btn > svg { width: 19px !important; height: 19px !important; flex-shrink: 0 !important; display: block !important; margin: 0 !important; } .tg-df-author-social-btn[data-social-key="facebook"] > svg { transform: scale(1.25) !important; } .tg-df-author-social-btn[data-social-key="pinterest"] > svg, .tg-df-author-social-btn[data-social-key="tiktok"] > svg { transform: scale(1.2) !important; } .tg-df-author-bio { max-width: 42rem !important; margin: 0 auto 1.25rem auto !important; padding: 0 0.5rem !important; color: #4b5563 !important; line-height: 1.6 !important; font-weight: 300 !important; font-size: 0.9375rem !important; text-align: center !important; background: none !important; border: none !important; border-radius: 0 !important; box-shadow: none !important; display: block !important; height: auto !important; overflow: visible !important; } .tg-df-author-bio-shell--stable { width: 100% !important; box-sizing: border-box !important; } .tg-df-author-bio--clamped { min-height: 4.8em !important; height: 4.8em !important; max-height: 4.8em !important; display: -webkit-box !important; -webkit-box-orient: vertical !important; -webkit-line-clamp: 3 !important; overflow: hidden !important; } .tg-df-author-bio--expanded { min-height: 4.8em !important; height: auto !important; max-height: none !important; display: block !important; overflow: visible !important; } .tg-df-author-bio--static, .tg-df-author-bio--static:hover, .tg-df-author-bio--static:focus, .tg-df-author-bio--static:focus-visible { outline: none !important; box-shadow: none !important; cursor: default !important; } .tg-df-author-bio-toggle-slot { height: 28px !important; display: flex !important; align-items: center !important; justify-content: center !important; margin: 0.125rem 0 0 !important; } .tg-df-author-bio-toggle { appearance: none !important; border: 0 !important; border-bottom: 1px solid currentColor !important; border-radius: 0 !important; padding: 0.125rem 0 !important; margin: 0 !important; background: transparent !important; color: #4b5563 !important; box-shadow: none !important; font: inherit !important; font-size: 0.75rem !important; font-weight: 600 !important; line-height: 1.2 !important; text-decoration: none !important; text-transform: none !important; cursor: pointer !important; } .tg-df-author-bio a { color: var(--tg-df-blue, #1F69FF) !important; text-decoration: underline !important; font-weight: 400 !important; background: none !important; border: none !important; padding: 0 !important; margin: 0 !important; border-radius: 0 !important; display: inline !important; box-shadow: none !important; } .tg-df-author-bio p, .tg-df-author-bio div, .tg-df-author-bio span { margin: 0 !important; padding: 0 !important; color: inherit !important; font: inherit !important; line-height: inherit !important; text-align: inherit !important; text-transform: none !important; letter-spacing: normal !important; background: none !important; border: none !important; box-shadow: none !important; } .tg-df-author-bio strong, .tg-df-author-bio b { font-weight: 600 !important; } .tg-df-author-bio em, .tg-df-author-bio i { font-style: italic !important; } @container tg-df (min-width: 600px) { .tg-df-author-image { width: 180px !important; height: 180px !important; } .tg-df-author-name { font-size: 2.5rem !important; } } @media (min-width: 600px) { .tg-df-author-image { width: 180px !important; height: 180px !important; } .tg-df-author-name { font-size: 2.5rem !important; } } @container tg-df (max-width: 768px) { .tg-df-container .hawk-deal-widget-footer { display: flex !important; justify-content: flex-start !important; width: 100% !important; margin-top: auto !important; } .tg-df-container .hawk-deal-widget-button-wrapper { display: flex !important; width: 100% !important; align-items: stretch !important; justify-content: flex-start !important; } .tg-df-container .hawk-deal-widget-button-wrapper .hawk-deal-widget-preferred-partner-wrapper { display: flex !important; width: 100% !important; } .tg-df-container .hawk-deal-widget-button-wrapper .hawk-affiliate-link-deal-button { box-sizing: border-box !important; display: flex !important; align-items: center !important; justify-content: center !important; max-width: none !important; width: 100% !important; min-width: 0 !important; padding: 5px 12px !important; font-size: 11px !important; font-weight: 700 !important; margin: 0 !important; border-radius: 0 !important; height: 30px !important; } .tg-df-container .hawk-deal-widget-text-cta-container { padding-right: 12px !important; } } @media (max-width: 768px) { .tg-df-container .hawk-deal-widget-footer { display: flex !important; justify-content: flex-start !important; width: 100% !important; margin-top: auto !important; } .tg-df-container .hawk-deal-widget-button-wrapper { display: flex !important; width: 100% !important; align-items: stretch !important; justify-content: flex-start !important; } .tg-df-container .hawk-deal-widget-button-wrapper .hawk-deal-widget-preferred-partner-wrapper { display: flex !important; width: 100% !important; } .tg-df-container .hawk-deal-widget-button-wrapper .hawk-affiliate-link-deal-button { box-sizing: border-box !important; display: flex !important; align-items: center !important; justify-content: center !important; max-width: none !important; width: 100% !important; min-width: 0 !important; padding: 5px 12px !important; font-size: 11px !important; font-weight: 700 !important; margin: 0 !important; border-radius: 0 !important; height: 30px !important; } .tg-df-container .hawk-deal-widget-text-cta-container { padding-right: 12px !important; } } @container tg-df (max-width: 500px) { .tg-df-container .hawk-deal-widget-wrap { display: flex !important; flex-direction: row !important; align-items: stretch !important; gap: 12px !important; width: 100% !important; } .tg-df-container .hawk-deal-widget-image-container { display: flex !important; flex-shrink: 0 !important; width: 110px !important; max-width: 110px !important; height: auto !important; align-items: center !important; justify-content: center !important; background: #f8fafc !important; border-radius: 6px !important; padding: 8px !important; margin: 0 !important; float: none !important; box-sizing: border-box !important; } .tg-df-container .hawk-lazy-image-deal-widget { max-height: 120px !important; max-width: 100% !important; height: auto !important; width: auto !important; object-fit: contain !important; } .tg-df-container .hawk-deal-widget-text-cta-container { display: flex !important; flex-direction: column !important; justify-content: space-between !important; flex: 1 !important; min-width: 0 !important; width: auto !important; text-align: left !important; gap: 6px !important; padding-right: 12px !important; } .tg-df-container .hawk-deal-widget-text-body-container { width: 100% !important; } .tg-df-author-line-mobile { padding: 2px 0 4px 0 !important; margin-bottom: 2px !important; } .tg-df-container .hawk-deal-widget-footer { display: flex !important; margin-top: auto !important; clear: none !important; width: 100% !important; } .tg-df-container .hawk-deal-widget-button-wrapper { display: flex !important; width: 100% !important; align-items: stretch !important; } .tg-df-container .hawk-deal-widget-button-wrapper .hawk-deal-widget-preferred-partner-wrapper { display: flex !important; width: 100% !important; } .tg-df-container .hawk-deal-widget-button-wrapper .hawk-affiliate-link-deal-button { box-sizing: border-box !important; display: flex !important; align-items: center !important; justify-content: center !important; max-width: none !important; width: 100% !important; min-width: 0 !important; padding: 5px 12px !important; font-size: 11px !important; font-weight: 700 !important; margin: 0 !important; border-radius: 0 !important; height: 30px !important; } } @media (max-width: 500px) { .tg-df-container .hawk-deal-widget-wrap { display: flex !important; flex-direction: row !important; align-items: stretch !important; gap: 12px !important; width: 100% !important; } .tg-df-container .hawk-deal-widget-image-container { display: flex !important; flex-shrink: 0 !important; width: 110px !important; max-width: 110px !important; height: auto !important; align-items: center !important; justify-content: center !important; background: #f8fafc !important; border-radius: 6px !important; padding: 8px !important; margin: 0 !important; float: none !important; box-sizing: border-box !important; } .tg-df-container .hawk-lazy-image-deal-widget { max-height: 120px !important; max-width: 100% !important; height: auto !important; width: auto !important; object-fit: contain !important; } .tg-df-container .hawk-deal-widget-text-cta-container { display: flex !important; flex-direction: column !important; justify-content: space-between !important; flex: 1 !important; min-width: 0 !important; width: auto !important; text-align: left !important; gap: 6px !important; padding-right: 12px !important; } .tg-df-container .hawk-deal-widget-text-body-container { width: 100% !important; } .tg-df-author-line-mobile { padding: 2px 0 4px 0 !important; margin-bottom: 2px !important; } .tg-df-container .hawk-deal-widget-footer { display: flex !important; margin-top: auto !important; clear: none !important; width: 100% !important; } .tg-df-container .hawk-deal-widget-button-wrapper { display: flex !important; width: 100% !important; align-items: stretch !important; } .tg-df-container .hawk-deal-widget-button-wrapper .hawk-deal-widget-preferred-partner-wrapper { display: flex !important; width: 100% !important; } .tg-df-container .hawk-deal-widget-button-wrapper .hawk-affiliate-link-deal-button { box-sizing: border-box !important; display: flex !important; align-items: center !important; justify-content: center !important; max-width: none !important; width: 100% !important; min-width: 0 !important; padding: 5px 12px !important; font-size: 11px !important; font-weight: 700 !important; margin: 0 !important; border-radius: 0 !important; height: 30px !important; } } .tg-df-container .hawk-deal-widget-button-wrapper .hawk-affiliate-link-deal-button { align-items: center; background-color: var(--tg-df-blue); box-sizing: border-box; color: #ffffff !important; display: flex; font-size: 14px; font-weight: 700; justify-content: center; letter-spacing: 0.5px; line-height: 1; min-width: 160px; padding: 14px 24px; text-align: center; text-decoration: none; text-transform: uppercase; width: 100%; word-break: normal; border-radius: 4px; border: 0; transition: background-color 0.2s; } .tg-df-container .hawk-deal-widget-button-wrapper .hawk-affiliate-link-deal-button:hover { filter: brightness(0.85); text-decoration: none; } .tg-df-container .hawk-lazy-image-deal-widget { display: block; height: auto; margin: auto; max-height: 160px; max-width: 100%; mix-blend-mode: multiply; object-fit: contain; } .tg-df-container .hawk-deal-widget-text-cta-container a { color: #2563eb; text-decoration: none; display: inline; } .tg-df-container .hawk-deal-widget-text-cta-container a:hover { text-decoration: underline; } .tg-df-container .hawk-deal-widget-text-cta-container a:has(.hawk-deal-widget-title-product-title) { color: #111827; } .tg-df-container .hawk-deal-widget-text-cta-container a:hover .hawk-deal-widget-title-product-title, .tg-df-container .hawk-deal-widget-text-cta-container a:hover .hawk-deal-widget-title-retailer-price { text-decoration: underline; } .tg-df-active-badges-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 12px; margin-bottom: 16px; width: 100%; } .tg-df-active-badge { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; background-color: var(--tg-df-blue, #1f69ff); color: #ffffff; border: 1px solid var(--tg-df-blue, #1f69ff); border-radius: 0px; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; line-height: 1; } .tg-df-badge-remove { display: inline-flex; align-items: center; justify-content: center; width: 16px; height: 16px; border-radius: 0px; border: none; background: rgba(255, 255, 255, 0.25); color: #ffffff; cursor: pointer; padding: 0; margin-left: 4px; transition: background-color 0.15s, color 0.15s; } .tg-df-badge-remove:hover { background: rgba(255, 255, 255, 0.45); color: #ffffff; } .tg-df-badge-clear-all { display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; line-height: 1; padding: 8px 14px; color: var(--tg-df-text-muted, #64748b); cursor: pointer; background: #ffffff; border: 1px solid var(--tg-df-border, #e2e8f0); border-radius: 0px; transition: all 0.15s ease; } .tg-df-badge-clear-all:hover { background: var(--tg-df-blue, #1f69ff); color: #ffffff; border-color: var(--tg-df-blue, #1f69ff); } .tg-df-savings-squad-header { margin-bottom: 24px; text-align: center; } .tg-df-banner-img-desktop { display: block; width: 100%; height: auto; margin-bottom: 32px; } .tg-df-banner-img-mobile { display: none; width: 100%; height: auto; margin-bottom: 32px; } @container tg-df (max-width: 600px) { .tg-df-banner-img-desktop { display: none; } .tg-df-banner-img-mobile { display: block; } } .tg-df-header-title { font-size: 28px; font-weight: 700; color: var(--tg-df-text); margin: 32px 0 12px 0; line-height: 1.3; } .tg-df-header-subtitle { font-size: 16px; color: var(--tg-df-text-muted); margin: 0 0 32px 0; line-height: 1.5; } @container tg-df (max-width: 599px) { .tg-df-filters-container { display: none !important; } #tg-df-controls { display: none !important; } .tg-df-grid.tg-df-grid-auto, .tg-df-grid { padding-top: 0px !important; } .tg-df-container .hawk-deal-widget-container:first-child { padding-top: 8px !important; } .tg-df-container .tg-df-card:first-child { margin-top: 0px !important; } } @media (max-width: 599px) { .tg-df-desktop-only { display: none !important; } .tg-df-filters-container { display: none !important; } #tg-df-controls { display: none !important; } .tg-df-grid.tg-df-grid-auto, .tg-df-grid { padding-top: 0px !important; } .tg-df-container .hawk-deal-widget-container:first-child { padding-top: 8px !important; } .tg-df-container .tg-df-card:first-child { margin-top: 0px !important; } } /* Article Intro Content Styling */ .tg-df-article-content { font-size: 1rem; line-height: 1.7; color: #334155; } .tg-df-article-content p { margin-bottom: 1.25rem; line-height: 1.7; font-size: 1rem; color: #334155; } .tg-df-article-content > p:first-of-type::first-letter { font-size: 3.25rem; font-weight: 700; float: left; line-height: 0.85; margin-right: 0.5rem; margin-top: 0.15rem; color: #0f172a; font-family: inherit; } .tg-df-article-content a { color: #0066cc; text-decoration: underline; font-weight: 500; } .tg-df-article-content a:hover { color: #004499; } .tg-df-article-content strong, .tg-df-article-content b { font-weight: 700; color: #0f172a; } .tg-df-article-section-banner { border-bottom: 2px solid #e6007e; margin: 2.25rem 0 1.25rem 0; position: relative; clear: both; } .tg-df-article-section-banner span { background-color: #e6007e; color: #ffffff; padding: 6px 16px; font-weight: 700; font-size: 0.875rem; text-transform: uppercase; letter-spacing: 0.05em; display: inline-block; } Nt(tt(t))).filter(Boolean)}function nv({article:e,articleIdentity:t,authorProfile:n}){let a=Nt($l(e)),l=Nt(G2(e)),i=Rr(e),r=ev(e),o=Nt(tt(e.productverdict));return{id:`airedale-review-${t}`,url:i,image:r,fallbackImage:r,title:l,brand:"",productName:l,merchant:"",rawPrice:0,rawMsrp:0,price:"",msrp:"",currency:"",isoCurrency:"",isCheckPrice:!0,savingLabel:"",savingType:"none",isPrime:!1,starRating:gf({rating:e.productrating}),description:o,text:o,...n,documentUrl:i,modifiedDate:ff(e,!0),isFeatured:!1,isReviewProduct:!0,hawkModelName:a||l,hasCommerceOffer:!1,sourceArticleUrl:i,pros:$0(e.productpros),cons:$0(e.productcons)}}function Nt(e){return typeof e=="string"?te(e):e}function av({article:e,block:t,articleIdentity:n,blockIndex:a,authorProfile:l,currencyString:i,isoCurrency:r,presentation:o,pricing:u}){let c=t.data||{},{isFeatured:s,externalUrl:f,summaryTitle:d,description:h,imageUrl:v,merchantName:b}=o,{rawPrice:A,rawMsrp:m,savingLabel:g}=u;return{id:`airedale-${n}-${a}`,url:f,image:v,fallbackImage:v,title:Nt(d),brand:Nt(c.brand||""),productName:Nt(c.productName||""),merchant:Nt(b),rawPrice:A,rawMsrp:m,price:A>0?A.toString():"",msrp:m>0?m.toString():"",currency:i,isoCurrency:r,isCheckPrice:!A,savingLabel:g,savingType:m>A?"amount":"none",isPrime:!1,starRating:gf(c),description:Nt(h),text:Nt(c.text||""),...l,documentUrl:Rr(e),modifiedDate:ff(e),isFeatured:s,hasCommerceOffer:!!f}}function lv(e,t){let n=t.data||{},a=t.type==="featured-product",l=n.link||{},i=n.image||{};n.brand&&(n.brand=n.brand.replace(/^\d+\.\s*/,"").trim());let r=a?n.url:l.href||null,o=a?n.name||n.brand:n.productName||l.label||(Array.isArray(e.articlename)?e.articlename[0]:e.articlename),u=a?n.strapline||"":n.text||"";if(!a&&!n.productName&&n.text){let f=n.text.split(//i);if(f.length>1)o=f[0].replace(/]+>/g,"").trim(),u=f.slice(1).join(" ").replace(//gi," ").replace(/]*>/gi," ").replace(/]+>/g,"").replace(/\s+/g," ").trim();else{let d=n.text.match(/(.*?)/);d&&(o=d[1].replace(/]+>/g,"").trim(),o.endsWith(":")&&(o=o.slice(0,-1)))}}let c=a?i.mos:i.src||null;c?.startsWith("//")&&(c=`https:${c}`),u=u.replace(//gi," ").replace(/]*>/gi," ").replace(/]+>/g,"").replace(/\s+/g," ").replace(/View Deal$/i,"").trim();let s=n.retailer||"";if(!s&&r)try{s=new URL(r).hostname.replace("www.","").split(".")[0],s=s.charAt(0).toUpperCase()+s.slice(1)}catch{}return s||(s="Retailer"),{isFeatured:a,externalUrl:r,summaryTitle:o,description:u,imageUrl:c,merchantName:s}}function q2(e,t){let n=e.indexOf(t);if(na.cardEligible).map(a=>{let{article:l,block:i,blockIndex:r,kind:o,pageData:u}=a,c=l.id||n(),s=U0(l,t.authorHandle,t.authorName);if(o==="review")return nv({article:l,articleIdentity:c,authorProfile:s});if(!i)throw new Error("Eligible block is missing its source.");return o==="buying-guide"?tv({article:l,block:i,articleIdentity:c,blockIndex:r,authorProfile:s,imageUrl:q2(u,i)}):av({article:l,block:i,articleIdentity:c,blockIndex:r,authorProfile:s,currencyString:a.currencyString,isoCurrency:a.isoCurrency,presentation:lv(l,i),pricing:a.pricing})})}function ei(e,t){return Tr(e,{...t,selectedBrands:[],priceRange:"all",discountAmount:"0"})}function iv(e,t){return Tr(e,t)}function Er(e){return(Array.isArray(e)?e:[e]).filter(n=>typeof n=="string").map(n=>n.trim())}function Xu(e){return e?.trim().toLowerCase()==="freeform"}function hf(e){return!!e&&!/[^\p{L}\p{N}\s]/u.test(e)}function mf(e){let t=Er(e.articletag),n=Er(e.articletaghandle),a=Er(e.articletagtype),l=new Map;t.forEach((o,u)=>{let c=n[u];!Xu(a[u])||!c||!hf(o)||l.set(c.toLowerCase(),{handle:c,label:o,requestValue:o})});let i=Er(e.articletagtypetag),r=Er(e.articletagtypetaghandle);return i.forEach((o,u)=>{let[c,...s]=o.split("|"),[f,...d]=(r[u]||"").split("|"),h=s.join("|").trim(),v=d.join("|").trim();!Xu(c)||!Xu(f)||!v||!hf(h)||l.has(v.toLowerCase())||l.set(v.toLowerCase(),{handle:v,label:h,requestValue:h})}),r.forEach(o=>{let[u,...c]=o.split("|"),s=c.join("|").trim();!Xu(u)||!s||!hf(s)||l.has(s.toLowerCase())||l.set(s.toLowerCase(),{handle:s,label:s})}),[...l.values()]}function rv(e,t){if(t)return e.find(n=>n.handle.toLowerCase()===t.toLowerCase())?.requestValue}function ti(e,t){let n=(Array.isArray(t)?t:[t]).filter(a=>typeof a=="string").map(a=>a.trim().toLowerCase()).filter(Boolean);return n.length===0?e:e.filter(a=>mf(a).some(l=>n.includes(l.handle.toLowerCase())))}function F2(e){let t=new Map;return Array.isArray(e.articlecategory)?(e.articlecategory.forEach(n=>{if(typeof n!="string")return;let a=n.trim();a===a.toLowerCase()&&(a=a.replace(/\b\w/g,l=>l.toUpperCase())),a&&!t.has(a.toLowerCase())&&t.set(a.toLowerCase(),{handle:a,label:a})}),[...t.values()]):[]}function ov(e,t,n){let a={},l={},i={};Jl(e,t).forEach(u=>{n(u.article).forEach(c=>{let s=c.handle.toLowerCase(),f=Object.keys(a).find(d=>d.toLowerCase()===s);f||(f=c.handle,a[f]=new Set,l[f]=c.label,i[f]=c.requestValue),a[f].add(u.identity)})});let r={};return Object.keys(a).forEach(u=>{r[u]=a[u].size}),{tags:Object.keys(r).map(u=>({handle:u,label:l[u]||u,requestValue:i[u]})).sort((u,c)=>r[c.handle]-r[u.handle]),tagCounts:r}}function Qu(e,t){let{tags:n,tagCounts:a}=ov(e,t,F2);return{tags:n.map(l=>l.label),tagCounts:a}}function Ku(e,t){let{tags:n,tagCounts:a}=ov(e,t,mf);return{tags:n,tagCounts:a}}function j2(e,t){return e.documentUrl||e.sourceArticleUrl||e.articleId||`deal-${t}`}function en(e,t,n){if(t!=="mix"||n!=="date_desc")return e;let a=new Map;e.forEach((o,u)=>{let c=j2(o,u),s=a.get(c)||[];s.push(o),a.set(c,s)});let l=[],i=0,r=!0;for(;r;)r=!1,a.forEach(o=>{let u=o[i];u&&(l.push(u),r=!0)}),i+=1;return l}var uv="compact-v1",V2={brand:"",currency:"",hasCommerceOffer:!1,isoCurrency:"",isCheckPrice:!0,isFeatured:!1,isPrime:!1,merchant:"",merchantId:"",msrp:"",price:"",rawMsrp:0,rawPrice:0,savingLabel:"",savingType:"none"},Y2={hasCommerceOffer:!0,hawkPricePending:!1,rawMsrp:0,rawPrice:0};function cv(e){return e.map(t=>{if(!t.isReviewProduct)return t;let n=String(t.sourceArticleUrl||t.documentUrl||t.url||""),a=t.fallbackImage??t.image??"",l={...V2,...t,fallbackImage:a,image:t.image??a,sourceArticleUrl:n,documentUrl:t.documentUrl??n,url:t.url??n,title:t.title??t.productName??"",text:t.text??t.description??"",hawkPricePending:t.hawkPricePending??!!t.hawkModelName,pros:t.pros??[],cons:t.cons??[]};return t.hawkRegionalCommerce&&(l.hawkRegionalCommerce=Object.fromEntries(Object.entries(t.hawkRegionalCommerce).map(([i,r])=>{let o=r,u=o.productName??l.productName,c=o.rawPrice??0,s=o.rawMsrp??0;return[i,{...Y2,...o,fallbackImage:o.fallbackImage??a,image:o.image??a,productName:u,title:o.title??u??l.title,price:o.price??(c?String(c):""),msrp:o.msrp??(s?String(s):"")}]}))),l})}function Iu(e,t,n=100){let a=new Set(e.slice(0,t).map((i,r)=>i.id||`visible-${r}`)),l=e.slice(0,t).filter(i=>i.isReviewProduct).length;return e.filter((i,r)=>{let o=i.id||`visible-${r}`;return a.has(o)?!0:i.isReviewProduct?(l+=1,l[a.id||`enriched-${l}`,a]));return e.map((a,l)=>n.get(a.id||`enriched-${l}`)||a)}var X2=new Set(["deal","featured-product","gallery","buying-guide","text","section"]);function Zu(e){return!!e&&typeof e=="object"}function dv(e){if(typeof e!="string")return e;try{return JSON.parse(e)}catch{return e}}function fv(e){try{let t=dv(e);if(!Array.isArray(t)||!t[0])return;let n=t[0],a=typeof n=="string"?dv(n):Array.isArray(n)?n:Zu(n)&&"type"in n?t:n;if(!Array.isArray(a))return;let l=a.filter(i=>Zu(i)&&X2.has(i.type)).map(i=>i.type==="text"&&i.data?{type:"text",data:{paragraphs:Array.isArray(i.data.paragraphs)?i.data.paragraphs.slice(0,3):void 0,text:typeof i.data.text=="string"?i.data.text.slice(0,500):void 0}}:i.type==="section"&&i.data?{type:"section",data:{text:i.data.text,heading:i.data.heading,title:i.data.title}}:i);return l.length>0?[JSON.stringify(l)]:void 0}catch{return}}function gv(e){if(!Array.isArray(e))return[];let t=!1;return e.map(n=>{if(!Zu(n))return n;let a=n.articlepage?fv(n.articlepage):void 0,l=!!(n.articleauthormedia||n.articleauthorrole),i=!!(!t&&(n.articleauthorbio||n.articleauthorlongbio||n.articleauthorsocialnetworks));return i&&(t=!0),{id:n.id,articlename:n.articlename,documentname:n.documentname,documentnametext:n.documentnametext,documenthandle:n.documenthandle,articlecategory:n.articlecategory,articletag:n.articletag,articletaghandle:n.articletaghandle,articletagtype:n.articletagtype,articletagtypetag:n.articletagtypetag,articletagtypetaghandle:n.articletagtypetaghandle,articlecontroltag:n.articlecontroltag,articletype:n.articletype,articleauthor:n.articleauthor,articleauthorhandle:n.articleauthorhandle,articleauthortext:n.articleauthortext,...l?{articleauthorrole:n.articleauthorrole,articleauthormedia:n.articleauthormedia}:{},articlestrapline:n.articlestrapline,articlesocialtitle:n.articlesocialtitle,documenturl:n.documenturl,articlemedia:n.articlemedia,articlehawkmodels:n.articlehawkmodels,productrating:n.productrating,productpros:n.productpros,productcons:n.productcons,productverdict:n.productverdict,contentmodifieddate:n.contentmodifieddate,modifieddate:n.modifieddate,createddate:n.createddate,datepublished:n.datepublished,publisheddate:n.publisheddate,...i?{articleauthorbio:n.articleauthorbio,articleauthorlongbio:n.articleauthorlongbio,articleauthorsocialnetworks:n.articleauthorsocialnetworks}:{},...a?{articlepage:a}:{}}})}function hv(e){return Array.isArray(e)?e.map(t=>{if(!Zu(t))return t;let n=t.articlepage?fv(t.articlepage):void 0;return{id:t.id,articleid:t.articleid,articlename:t.articlename,documentname:t.documentname,documentnametext:t.documentnametext,documenthandle:t.documenthandle,articleauthor:t.articleauthor,articleauthorhandle:t.articleauthorhandle,articleauthortext:t.articleauthortext,articleauthorrole:t.articleauthorrole,articleauthormedia:t.articleauthormedia,articleauthorbio:t.articleauthorbio,articleauthorlongbio:t.articleauthorlongbio,articleauthorsocialnetworks:t.articleauthorsocialnetworks,articlecategory:t.articlecategory,articletag:t.articletag,articletaghandle:t.articletaghandle,articletagtype:t.articletagtype,articletagtypetag:t.articletagtypetag,articletagtypetaghandle:t.articletagtypetaghandle,articlecontroltag:t.articlecontroltag,articletype:t.articletype,articlestrapline:t.articlestrapline,articlesocialtitle:t.articlesocialtitle,documenturl:t.documenturl,articlemedia:t.articlemedia,articlehawkmodels:t.articlehawkmodels,productrating:t.productrating,productpros:t.productpros,productcons:t.productcons,productverdict:t.productverdict,url:t.url,contentmodifieddate:t.contentmodifieddate,modifieddate:t.modifieddate,createddate:t.createddate,datepublished:t.datepublished,publisheddate:t.publisheddate,content:t.content,dek:t.dek,image_thumbnail:t.image_thumbnail,intro:t.intro,paragraphs:t.paragraphs,strapline:t.strapline,subtitle:t.subtitle,title:t.title,...n?{articlepage:n}:{}}}):[]}function ni(e){if(!e?.modifiedDate)return 0;let t=Array.isArray(e.modifiedDate)?e.modifiedDate[0]:e.modifiedDate,n=new Date(t).getTime();return Number.isNaN(n)?0:n}function Ya(e){return e?.hasCommerceOffer===!0?!0:e?.hasCommerceOffer===!1?!1:!!(!e?.isBuyingGuideProduct&&!e?.isReviewProduct&&e?.url)}function Xt(e,t,n=!0){let a=!0;t==="date_desc"?e.sort((l,i)=>ni(i)-ni(l)):t==="price_asc"?e.sort((l,i)=>l.rawPrice-i.rawPrice):t==="price_desc"?e.sort((l,i)=>i.rawPrice-l.rawPrice):t==="discount_desc"?e.sort((l,i)=>{let r=l.rawMsrp>l.rawPrice?l.rawMsrp-l.rawPrice:0;return(i.rawMsrp>i.rawPrice?i.rawMsrp-i.rawPrice:0)-r}):t==="rating_desc"?e.sort((l,i)=>{let r=Number(l.starRating)||0;return(Number(i.starRating)||0)-r||ni(i)-ni(l)}):t==="scored_first"?e.sort((l,i)=>{let r=Number(l.starRating)>0?1:0;return(Number(i.starRating)>0?1:0)-r||ni(i)-ni(l)}):a=!1,a&&n&&e.sort((l,i)=>Number(Ya(i))-Number(Ya(l)))}function mv(e,t,n){let a=e;if(!a&&t){let l=n.find(i=>i.toLowerCase()===t?.toLowerCase());l&&(a=l)}return a}function xr(e,t){if(!t)return e;let n=t.toLowerCase();return e.filter(a=>a.articlecategory&&Array.isArray(a.articlecategory)&&a.articlecategory.some(l=>{if(!l||typeof l!="string")return!1;let i=l.toLowerCase(),r=i.split(":::");return i===n||r[0]===n||i.includes(n)}))}function yv(e){let t=ut(e.region);return{activeRegionCode:t,targetIso:$t(t)}}function ya(e,t,{discountAmount:n,priceRange:a}={}){let l=!!(a&&a!=="all"),i=!!(n&&n!=="0"&&n!=="all");return!t?.length&&!l&&!i?e:e.filter(r=>!r.isBuyingGuideProduct&&!r.isReviewProduct?!0:t?.length&&!zu({brand:r.brand},t)||l&&(!Number(r.rawPrice)||!Uu(Number(r.rawPrice),a))?!1:Pu(Number(r.rawPrice)||0,Number(r.rawMsrp)||0,n))}function Q2(e,t){let n=e.articleauthorhandle||[],a=e.articleauthor||[],l=e.articleauthortext||[],i=new Set([t.handle.toLowerCase(),t.fullName.toLowerCase(),t.name.toLowerCase()]);return[...n,...a,...l].some(r=>i.has(String(r||"").toLowerCase()))}function yf(e,t,n){let a=Object.fromEntries(e.map(l=>[l.handle,0]));return t.forEach(l=>{let i=ei([l],n).length;i!==0&&e.forEach(r=>{Q2(l,r)&&(a[r.handle]+=i)})}),a}function Wu(e,t){let n=Lu(e,t.authorHandle,t.authorName),a=t.selectedArticleId?n.filter(b=>b.id===t.selectedArticleId):n,{activeRegionCode:l,targetIso:i}=yv(t),{tags:r,tagCounts:o}=Qu(a,{activeRegionCode:l,targetIso:i,priceRange:t.priceRange,discountAmount:t.discountAmount,editorialMaxAgeMonths:t.editorialMaxAgeMonths,selectedBrands:t.selectedBrands,includeBuyingGuideProducts:t.includeBuyingGuideProducts,includeCollections:t.includeCollections,includeDeals:t.includeDeals,includeReviewProducts:t.includeReviewProducts,website:t.website}),u=mv(t.activeDealTag,t.query,r),c=xr(a,u),{tags:s,tagCounts:f}=Ku(c,{activeRegionCode:l,targetIso:i,priceRange:t.priceRange,discountAmount:t.discountAmount,editorialMaxAgeMonths:t.editorialMaxAgeMonths,selectedBrands:t.selectedBrands,includeBuyingGuideProducts:t.includeBuyingGuideProducts,includeCollections:t.includeCollections,includeDeals:t.includeDeals,includeReviewProducts:t.includeReviewProducts,website:t.website}),d=t.activeFreeformTags?.length?t.activeFreeformTags:t.activeFreeformTag?[t.activeFreeformTag]:[],h=d.flatMap(b=>{let A=s.find(m=>m.handle.toLowerCase()===b.toLowerCase());return A?[A.handle]:[]}),v=t.preserveFreeformTagSelection?d:h;return{activeDealTag:u,activeFreeformTag:v[0]||null,activeFreeformTags:v,activeRegionCode:l,authorArticles:n,freeformTagCounts:f,freeformTags:s,tagCounts:o,tags:r,targetArticles:ti(c,v),targetIso:i}}function Dr(e,t,n,a){let l=Vu(e,{activeRegionCode:n,targetIso:a,priceRange:t.priceRange,discountAmount:t.discountAmount,editorialMaxAgeMonths:t.editorialMaxAgeMonths,includeBuyingGuideProducts:t.includeBuyingGuideProducts,includeCollections:t.includeCollections,includeDeals:t.includeDeals,website:t.website}),i=Tr(e,{activeRegionCode:n,targetIso:a,selectedBrands:t.selectedBrands,priceRange:t.priceRange,discountAmount:t.discountAmount,editorialMaxAgeMonths:t.editorialMaxAgeMonths,authorHandle:t.authorHandle,authorName:t.authorName,includeBuyingGuideProducts:t.includeBuyingGuideProducts,includeCollections:t.includeCollections,includeDeals:t.includeDeals,includeReviewProducts:t.includeReviewProducts,website:t.website});Xt(i,t.sort,t.prioritiseCommercialProducts);let r=en(ya(i,t.selectedBrands,{discountAmount:t.discountAmount,priceRange:t.priceRange}),t.productSelection,t.sort).map(o=>(o.isBuyingGuideProduct||o.isReviewProduct)&&o.hawkModelName?{...o,hawkPricePending:!0}:o);return{brands:l,displayedDeals:r,extractedDeals:i}}function pv(e,t){let{activeRegionCode:n,targetIso:a}=yv(t),l=wr(e,t.website||"tomsguide"),i=e.filter(o=>ei([o],{activeRegionCode:n,targetIso:a,editorialMaxAgeMonths:t.editorialMaxAgeMonths,includeBuyingGuideProducts:t.includeBuyingGuideProducts,includeCollections:t.includeCollections,includeDeals:t.includeDeals,includeReviewProducts:t.includeReviewProducts,website:t.website}).length>0),r=ya(Tr(e,{activeRegionCode:n,targetIso:a,selectedBrands:t.selectedBrands,priceRange:t.priceRange,discountAmount:t.discountAmount,editorialMaxAgeMonths:t.editorialMaxAgeMonths,authorHandle:t.authorHandle,authorName:t.authorName,includeBuyingGuideProducts:t.includeBuyingGuideProducts,includeCollections:t.includeCollections,includeDeals:t.includeDeals,includeReviewProducts:t.includeReviewProducts,website:t.website}),t.selectedBrands,{discountAmount:t.discountAmount,priceRange:t.priceRange});return{authorCount:Ar(l,i).length,deals:r}}function vv({allArticles:e,authorArticles:t,inventoryArticles:n,bakeReviewInventory:a,brands:l,couponMap:i,currentDealTag:r,currentFreeformTags:o,displayedDeals:u,options:c,resultCount:s,tagCounts:f,tags:d,freeformTagCounts:h,freeformTags:v,totalAuthorCount:b,totalDealCount:A}){let m=wr(e,c.website||"tomsguide"),g=yf(m,n,{activeRegionCode:ut(c.region),targetIso:$t(ut(c.region)),selectedBrands:c.selectedBrands,priceRange:c.priceRange,discountAmount:c.discountAmount,editorialMaxAgeMonths:c.editorialMaxAgeMonths,includeBuyingGuideProducts:c.includeBuyingGuideProducts,includeCollections:c.includeCollections,includeDeals:c.includeDeals,includeReviewProducts:c.includeReviewProducts,website:c.website}),y=Ar(m,e.filter(C=>ei([C],{activeRegionCode:ut(c.region),targetIso:$t(ut(c.region)),editorialMaxAgeMonths:c.editorialMaxAgeMonths,includeBuyingGuideProducts:c.includeBuyingGuideProducts,includeCollections:c.includeCollections,includeDeals:c.includeDeals,includeReviewProducts:c.includeReviewProducts,website:c.website}).length>0)),p=Number(s)||12;return{activeDealTag:r,activeFreeformTag:o[0]||null,activeFreeformTags:o,allDeals:a?Iu(u,p):u,authorArticles:gv(t),authors:Ou(y,g),brands:l,couponMap:i,deals:u.slice(0,p),reviewInventoryBaked:a,tagCounts:f,tags:d,freeformTagCounts:h,freeformTags:v,totalAuthorCount:b,totalDealCount:A}}function bv(e,t){return{activeDealTag:t.activeDealTag,activeFreeformTag:t.activeFreeformTags[0]||null,activeFreeformTags:t.activeFreeformTags,preserveFreeformTagSelection:!!(e.compactEmbed&&t.activeFreeformTags.length),authorHandle:t.authorHandle,authorName:t.authorName,discountAmount:e.discountAmount,editorialMaxAgeMonths:Number(e.editorialMaxAgeMonths)||0,includeBuyingGuideProducts:e.includeBuyingGuideProducts,includeCollections:e.includeCollections,includeDeals:e.includeDeals,includeReviewProducts:e.includeReviewProducts,priceRange:e.priceRange,prioritiseCommercialProducts:t.prioritiseCommercialProducts,productSelection:t.productSelection,query:e.query,region:e.region,selectedArticleId:t.selectedArticleId,selectedBrands:e.selectedBrands,sort:t.sort,website:e.website}}function Av({compactEmbed:e,currentDealTag:t,currentFreeformTags:n,freeformTagCounts:a,freeformTags:l,initialFreeformTags:i,requestedDealTag:r,requestedFreeformTags:o,tagCounts:u,tags:c}){let s=e&&r&&!t?r:t,f=e&&o.length>0&&n.length===0?o:n;return{activeDealTag:s,activeFreeformTags:f,tags:c.length>0?c:s?[s]:c,freeformTags:l.length>0?l:f.length>0?i?.filter(d=>f.includes(d.handle))||[]:l,tagCounts:{...u,...s&&!t?{[s]:0}:{}},freeformTagCounts:{...a,...Object.fromEntries(n.length===0?f.map(d=>[d,0]):[])}}}function wv({authorKey:e,regionCode:t,activeDealTag:n,activeFreeformTags:a,props:l}){return JSON.stringify({authorKey:e,regionCode:t,activeDealTag:n,activeFreeformTags:a,selectedBrands:l.selectedBrands,priceRange:l.priceRange,discountAmount:l.discountAmount,includeBuyingGuideProducts:l.includeBuyingGuideProducts,includeReviewProducts:l.includeReviewProducts,includeDeals:l.includeDeals,includeCollections:l.includeCollections,editorialMaxAgeMonths:l.editorialMaxAgeMonths})}function K2(e){return e&&e.widget&&e.widget.data&&Array.isArray(e.widget.data.offers)?e.widget.data.offers:e&&e.data&&Array.isArray(e.data.offers)?e.data.offers:Array.isArray(e)?e:e&&Array.isArray(e.offers)?e.offers:e&&e.offers&&Array.isArray(e.offers.offer)?e.offers.offer:e&&Array.isArray(e.data)?e.data:[]}function Sv(e,t,n){let a={...n},l=new Set;return K2(e).forEach(r=>{let o="";r.merchant_name?o=r.merchant_name:r.merchant&&r.merchant[0]&&r.merchant[0].name?o=r.merchant[0].name:r.merchant&&r.merchant.name?o=r.merchant.name:r.retailer&&(o=r.retailer),o&&l.add(o.toLowerCase())}),t.forEach(r=>{a[r]=l.has(r.toLowerCase())?"has":"none"}),a}function Cv(e){let t=[];return e?.widget?.data?.offers?t=e.widget.data.offers:e?.data?.offers?t=e.data.offers:Array.isArray(e)?t=e:e?.offers?.offer?t=Array.isArray(e.offers.offer)?e.offers.offer:[e.offers.offer]:e?.offers&&(t=Array.isArray(e.offers)?e.offers:[e.offers]),t}async function Rv({couponMap:e,couponUrl:t,fetcher:n=fetch,merchants:a}){if(!t)return e;try{let l=await n(t.toString());return Sv(await l.json(),a,e)}catch{let l={...e};return a.forEach(i=>{l[i]="none"}),l}}function Tv(e,t){let n=Array.from(new Set(e.map(i=>i.merchant).filter(Boolean))),a={};if(n.forEach(i=>{a[i]="loading"}),n.length===0)return{merchants:n,couponMap:a,couponUrl:null};let l=new URL("https://search-api.fie.future.net.uk/widget.php");return l.searchParams.append("model_name","Everything"),l.searchParams.append("filter_merchant_name",n.join(",")),l.searchParams.append("filter_product_types","vouchers,offer_deals,newsletter"),l.searchParams.append("sort","voucher"),l.searchParams.append("rows","120"),l.searchParams.append("origin","widgets-clientside"),l.searchParams.append("combine_product_types","1"),l.searchParams.append("language","en-GB"),l.searchParams.append("all_filters","false"),l.searchParams.append("exclude_unlabelled","false"),l.searchParams.append("include_specs","false"),t&&t!=="auto"&&l.searchParams.append("area",t),{merchants:n,couponMap:a,couponUrl:l}}function Ev(e,t){let n=new URL("https://search-api.fie.future.net.uk/widget.php");return n.searchParams.append("model_name","Everything"),n.searchParams.append("language","en-GB"),t&&t!=="auto"&&n.searchParams.append("area",t),n.searchParams.append("combine_product_types","1"),n.searchParams.append("filter_merchant_name",e),n.searchParams.append("all_filters","false"),n.searchParams.append("exclude_unlabelled","false"),n.searchParams.append("include_specs","false"),n.searchParams.append("sort","voucher"),n.searchParams.append("distinct_merchants","natural"),n.searchParams.append("filter_product_types","vouchers,offer_deals,newsletter"),n.searchParams.append("rows","50"),n.searchParams.append("origin","widgets-clientside"),n}function pf(e,t){let n=e.shipping?.prime===!0,a=e.merchant?.name||e.merchant_name||e.retailer||"Retailer";typeof e.merchant=="string"&&(a=e.merchant);let l=null,i=0,r=String(e.model_id||e.id||"");if(r&&t)if(t[r]&&t[r].score!=null)l=parseFloat(t[r].score);else{let o=Object.values(t).find(u=>String(u.model_id)===r||String(u.id)===r);o&&o.score!=null&&(l=parseFloat(o.score))}return l!=null&&(i=Math.round((l>10?l/20:l/2)*2)/2),{isPrime:n,merchant:a,starRating:i>0?i:null}}function vf(e){let t=String(e.price||e.current_price||"0"),n=String(e.was_price||e.msrp||e.original_price||"0"),a=parseFloat(t.replace(/[^0-9.]/g,""))||0,l=parseFloat(n.replace(/[^0-9.]/g,""))||0,i=a===0||t==="0.00"||t==="0",r=e.currency&&typeof e.currency=="string"?e.currency:e.currency_symbol&&typeof e.currency_symbol=="string"?e.currency_symbol:"$",o=te(e.percentage_saving_label||"");!o&&l>a&&a>0&&(o=Math.round((l-a)/l*100)+"% OFF");let u=r;return u.includes("&")&&(u.includes("36")?u="$":u.includes("163")||u.includes("pound")?u="\xA3":(u.includes("8364")||u.includes("euro"))&&(u="\u20AC")),{rawPrice:a,rawMsrp:l,currency:u,isCheckPrice:i,savingLabel:o}}function xv({query:e,region:t,retailer:n,selectedBrands:a,offerType:l,priceRange:i,discountAmount:r,resultCount:o}){let u=new URL("https://search-api.fie.future.net.uk/widget.php");if(u.searchParams.append("model_name",e),t&&t!=="auto"&&u.searchParams.append("area",t),n&&u.searchParams.append("filter_merchant_name",n),a&&a.length>0&&u.searchParams.append("filter_label[text_brand]",a.join(",")),l&&u.searchParams.append("offer",l),i&&i!=="all"){if(i==="under50")u.searchParams.append("filter_max_price","50");else if(i==="over50")u.searchParams.append("filter_min_price","50");else if(i==="over30")u.searchParams.append("filter_min_price","30");else if(i==="over500")u.searchParams.append("filter_min_price","500");else if(i.includes("_")){let[c,s]=i.split("_");c&&u.searchParams.append("filter_min_price",c),s&&u.searchParams.append("filter_max_price",s)}}if(r&&r!=="0"){let c=(100-parseInt(r))/100;u.searchParams.append("min_discount_ratio",c.toString())}return u.searchParams.append("filter_product_types","deals"),u.searchParams.append("rows",String(o||"12")),u}function Dv(e){return e?.widget?.data?.offers?e.widget.data.offers:e?.data?.offers?e.data.offers:Array.isArray(e)?e:e?.offers?.offer?Array.isArray(e.offers.offer)?e.offers.offer:[e.offers.offer]:e?.offers?Array.isArray(e.offers)?e.offers:[e.offers]:[]}function Mv(e){let t=[];return e.forEach(n=>{let a=[];Array.isArray(n.offers)?a=n.offers:Array.isArray(n.offer)?a=n.offer:n.offers&&typeof n.offers=="object"?a=[n.offers]:n.offer&&typeof n.offer=="object"&&(a=[n.offer]),a.length>0?a.forEach(l=>{t.push({...n,...l})}):t.push(n)}),t}function Bv(e){return e?.widget?.data?.model_info?e.widget.data.model_info:e?.data?.model_info?e.data.model_info:{}}var bf=new Map,I2=3e3,Z2=["GB","US"],_v=6,W2=["brand","currency","fallbackImage","hasCommerceOffer","hawkPricePending","hawkListings","image","isCheckPrice","merchant","merchantId","modelId","msrp","price","productKey","productName","rawMsrp","rawPrice","savingLabel","title","url"];function Af(e){return String(e||"").trim().toLowerCase()}function Lv(e){return e==="UK"?"GB":e}function Hv(e,t){let n=String(t||"").trim().toUpperCase(),l={AU:["A$","AUD"],CA:["CA$","CAD"],DE:["\u20AC","EUR"],ES:["\u20AC","EUR"],FR:["\u20AC","EUR"],GB:["\xA3","GBP","GB\xA3"],IT:["\u20AC","EUR"],NL:["\u20AC","EUR"],US:["$","USD","US$"]}[e];return!l||l.includes(n)}function Nv(e,t){return String(e.id||`hawk-deal-${t}`)}function J2(e){return e.map(t=>({...t,hasCommerceOffer:!1,hawkPricePending:!!t.hawkModelName,hawkListings:[],image:t.fallbackImage||t.image||"",isCheckPrice:!0,merchant:"",merchantId:"",msrp:"",price:"",productKey:"",rawMsrp:0,rawPrice:0,savingLabel:"",url:t.sourceArticleUrl||t.documentUrl||t.url}))}function $2(e){return W2.reduce((t,n)=>(n in e&&(t[n]=e[n]),t),{})}function zv(e){return!!((e.isBuyingGuideProduct||e.isReviewProduct)&&e.hawkModelName)}function eS(e){return e.model_image_url||e.model_image||e.product_image||e.image_url||e.image||""}function Uv(e){return e.link||e.url||e.offer_link||""}function tS(e,t){let n=String(t.model_id||t.id||"");return n&&e[n]?e[n]:Object.values(e).find(a=>String(a?.model_id||a?.id||"")===n)||{}}function nS(e,t,n){let a=e.map(i=>{let r=vf(i),o=pf(i,t),u=Uv(i),c=te(String(o.merchant||"")).trim();return!u||!c||r.rawPricei!==null).sort((i,r)=>i.rawPrice-r.rawPrice||i.merchant.localeCompare(r.merchant)),l=new Set;return a.filter(i=>{let r=i.merchant.toLocaleLowerCase();return l.has(r)?!1:(l.add(r),!0)}).slice(0,4)}async function Ov(e,t,n){let a=`${t}|${Af(e)}`;return bf.has(a)||bf.set(a,(async()=>{let l;try{let i=new AbortController;l=setTimeout(()=>i.abort(),I2);let r=await n(xv({query:e,region:t,resultCount:12}).toString(),{signal:i.signal});if(!r.ok)return null;let o=await r.json(),u=Mv(Dv(o)),c=Af(e),s=u.filter(b=>Af(b.model_name||b.model)===c),f=s.length?s:u,d=f[0]||null;if(!d)return null;let h=Bv(o),v=tS(h,d);return{brand:String(v?.brand||d.brand||"").trim(),modelInfo:h,offer:d,offers:f}}catch{return null}finally{l&&clearTimeout(l)}})()),bf.get(a)}function kv(e,t,n){return e.map(a=>{let l=String(a.hawkModelName);if(!zv(a)||!t.has(l))return a;let i=t.get(l);if(!i)return{...a,hawkPricePending:!1};let{offer:r}=i.lookup,o=vf(r),u=pf(r,i.lookup.modelInfo),c=eS(r),s=Uv(r),f=te(String(r.model_name||r.model||a.hawkModelName||a.productName||a.title||"").trim()),d=!!(i.region===n&&s&&Hv(n,o.currency)),h=i.region===n?nS(i.lookup.offers,i.lookup.modelInfo,n).map(({offer:v,...b})=>b):[];return d?{...a,brand:i.lookup.brand||r.brand||a.brand,currency:o.currency||a.currency,fallbackImage:c?a.image:a.fallbackImage,hasCommerceOffer:!0,hawkPricePending:!1,hawkListings:h,image:c||a.image,isCheckPrice:o.isCheckPrice,merchant:u.merchant||a.merchant,merchantId:typeof r.merchant=="object"&&r.merchant?.id||"",modelId:r.model_id||"",msrp:o.rawMsrp>0?String(o.rawMsrp):"",price:o.rawPrice>0?String(o.rawPrice):"",productKey:r.product_key||"",productName:f||a.productName,rawMsrp:o.rawMsrp,rawPrice:o.rawPrice,savingLabel:o.savingLabel,title:f||a.title,url:s||a.url}:{...a,brand:i.lookup.brand||a.brand,fallbackImage:c?a.image:a.fallbackImage,hawkPricePending:!1,image:c||a.image,productName:f||a.productName,title:f||a.title}})}async function Xa(e,t,n=fetch,a,l=[],i){let r=Lv(t),o=new Map,u=e.filter(zv).map(f=>String(f.hawkModelName)),c=new Set(u),s=Array.from(new Set([...l.filter(f=>c.has(f)),...u])).slice(0,a);for(let f=0;f{let h=await Ov(d,r,n),v=h||r==="GB"?null:await Ov(d,"GB",n);o.set(d,h?{lookup:h,region:r}:v?{lookup:v,region:"GB"}:null),i?.(kv(e,o,r))}));return kv(e,o,r)}async function Pv(e,t=fetch){let n=J2(e),a=await Promise.all(Z2.map(async i=>[i,await Xa(n,i,t)])),l=new Map;return a.forEach(([i,r])=>{r.forEach((o,u)=>{if(!o.hasCommerceOffer)return;let c=Nv(o,u),s=l.get(c)||{};s[i]=$2(o),l.set(c,s)})}),e.map((i,r)=>{let o=l.get(Nv(i,r));return o?{...i,hawkRegionalCommerce:o}:i})}function Ju(e,t){let n=Lv(t);return e.map(a=>{let l=a.hawkRegionalCommerce?.[n];return l?{...a,...l,hawkPricePending:!1}:a})}function $u(e,t,n=!0){if(!e?.length)return e||[];if(t==="date_desc"&&!n)return e;let a=[...e];return Xt(a,t,n),a}function Mr(e,t,n,a=!0){if(n!=="date_desc"||!e?.length)return t;let l=(c,s)=>String(c.id||s),i=new Map(t.map((c,s)=>[l(c,s),c])),r=new Set,o=e.flatMap((c,s)=>{let f=l(c,s);r.add(f);let d=i.get(f);return d?[d]:[]}),u=t.filter((c,s)=>!r.has(l(c,s)));return a?[...o.filter(Ya),...u.filter(Ya),...o.filter(c=>!Ya(c)),...u.filter(c=>!Ya(c))]:[...o,...u]}function Gv({deals:e,region:t,isCurrent:n,onResolved:a}){let{merchants:l,couponMap:i,couponUrl:r}=Tv(e,t);return Rv({couponMap:i,couponUrl:r,merchants:l}).then(o=>{n()&&a(o)}),i}function wf(e){return e.some(t=>(t.isBuyingGuideProduct||t.isReviewProduct)&&t.hawkModelName)}function qv({initialData:e,props:t,displayCount:n,hasActiveCommerceFilter:a,sort:l,prioritiseCommercialProducts:i,productSelection:r}){let o=ut(t.region),u=Ju(e.allDeals||e.deals||[],o);if(o==="unavailable"){let v=u.map(b=>(b.isBuyingGuideProduct||b.isReviewProduct)&&b.hawkModelName?{...b,hawkPricePending:!1}:b);return Xt(v,l,i),{activeRegionCode:o,regionNeutralDeals:en(v,r,l),sourceDeals:u,toEnrich:[]}}let c=ya(u,t.selectedBrands),s=Number(t.resultCount)||12,f=typeof navigator>"u"?void 0:navigator.connection,d=!f?.saveData&&!f?.effectiveType?.includes("2g")&&(!t.compactEmbed||!!t.warmInventory),h=a?c:e.reviewInventoryBaked?c.slice(0,n+(d?s:0)):u;return{activeRegionCode:o,sourceDeals:u,toEnrich:h,regionNeutralDeals:null}}async function Fv(e,{initialData:t,props:n,sort:a,prioritiseCommercialProducts:l,productSelection:i}){let r=await Xa(e.toEnrich,e.activeRegionCode),o=t.reviewInventoryBaked?sv(e.sourceDeals,r):r,u=ya(o,n.selectedBrands,{discountAmount:n.discountAmount,priceRange:n.priceRange}).map(c=>(c.isBuyingGuideProduct||c.isReviewProduct)&&c.hawkModelName?{...c,hawkPricePending:!1}:c);return Xt(u,a,l),{deals:en(u,i,a),enrichedDeals:r}}function jv(e,t){Xa(e,t)}async function Vv({activeRegionCode:e,bakeInitialReviewCommerce:t,brands:n,buildPreload:a,compactEmbed:l,discountAmount:i,extractedDeals:r,hasActiveCommerceFilter:o,includeReviewProducts:u,initialDisplayedDeals:c,initialReviewCommerceLimit:s,openingDeals:f,preloadReviewInventory:d,priceRange:h,prioritiseCommercialProducts:v,productSelection:b,resultCount:A,selectedBrands:m,sort:g,visibleDealCount:y,onProgress:p}){let C=t?r.filter(N=>N.isReviewProduct&&N.hawkModelName).slice(0,s).map(N=>String(N.hawkModelName)):[],T=c.filter(N=>(N.isBuyingGuideProduct||N.isReviewProduct)&&N.hawkModelName).map(N=>String(N.hawkModelName)),R=await Xa(r,e,void 0,o?void 0:u?t?s:y:void 0,[...C,...T],p),M=ya(R,m,{discountAmount:i,priceRange:h}).map(N=>(N.isBuyingGuideProduct||N.isReviewProduct)&&N.hawkModelName?{...N,hawkPricePending:!1}:N);Xt(M,g,v);let S=en(M,b,g),x=Mr(f,S,g,v),L=ju(n,R),I=d&&!l?Iu(x,Number(A)||12):t?x.slice(0,s):x;return{bakedDeals:a?I:[],bakeInitialReviewCommerce:t,enrichedBrands:L,hawkDeals:M,stableHawkDeals:x,visibleDeals:x.slice(0,y)}}async function Yv(e){return e.bakeInitialReviewCommerce?Pv(e.bakedDeals):e.bakedDeals}function Xv({enrichingBuyingGuides:e,error:t,loading:n,loadingMore:a,refreshingFeed:l}){return t?"error":a?"loading_more":n?"loading_inventory":l?"refreshing_inventory":e?"enriching_visible_cards":"ready"}function Qv(e,t){let n=Lu(Va(e,void 0,t.editorialMaxAgeMonths||0),t.authorHandle,t.authorName),a=ut(t.region),l=$t(a),{tags:i,tagCounts:r}=Qu(n,{activeRegionCode:a,targetIso:l,priceRange:t.priceRange,discountAmount:t.discountAmount,editorialMaxAgeMonths:t.editorialMaxAgeMonths,selectedBrands:t.selectedBrands,includeBuyingGuideProducts:t.includeBuyingGuideProducts,includeCollections:t.includeCollections,includeDeals:t.includeDeals,includeReviewProducts:t.includeReviewProducts,website:t.website}),o=Vu(n,{activeRegionCode:a,targetIso:l,priceRange:t.priceRange,discountAmount:t.discountAmount,editorialMaxAgeMonths:t.editorialMaxAgeMonths,includeBuyingGuideProducts:t.includeBuyingGuideProducts,includeCollections:t.includeCollections,includeDeals:t.includeDeals,website:t.website}),{tags:u,tagCounts:c}=Ku(n,{activeRegionCode:a,targetIso:l,priceRange:t.priceRange,discountAmount:t.discountAmount,editorialMaxAgeMonths:t.editorialMaxAgeMonths,selectedBrands:t.selectedBrands,includeBuyingGuideProducts:t.includeBuyingGuideProducts,includeCollections:t.includeCollections,includeDeals:t.includeDeals,includeReviewProducts:t.includeReviewProducts,website:t.website}),s=iv(n,{activeRegionCode:a,targetIso:l,selectedBrands:t.selectedBrands,priceRange:t.priceRange,discountAmount:t.discountAmount,editorialMaxAgeMonths:t.editorialMaxAgeMonths,authorHandle:t.authorHandle,authorName:t.authorName,includeBuyingGuideProducts:t.includeBuyingGuideProducts,includeCollections:t.includeCollections,includeDeals:t.includeDeals,includeReviewProducts:t.includeReviewProducts,website:t.website});Xt(s,t.sort,t.prioritiseCommercialProducts);let f=en(s,t.productSelection,t.sort);return{authorArticles:n,brands:o,deals:f,tagCounts:r,tags:i,freeformTagCounts:c,freeformTags:u}}var aS="fc-author-commerce-widget",hn="airedale-feeds";var ec=null;function Kv(e){return new Promise((t,n)=>{e.onsuccess=()=>t(e.result),e.onerror=()=>n(e.error)})}function Sf(e){return new Promise((t,n)=>{e.oncomplete=()=>t(),e.onerror=()=>n(e.error),e.onabort=()=>n(e.error)})}function Cf(){return ec||(typeof window>"u"||typeof window.indexedDB>"u"?Promise.resolve(null):(ec=new Promise(e=>{let t=window.indexedDB.open(aS,15);t.onupgradeneeded=()=>{let n=t.result;n.objectStoreNames.contains(hn)||n.createObjectStore(hn,{keyPath:"key"})},t.onsuccess=()=>e(t.result),t.onerror=()=>e(null),t.onblocked=()=>e(null)}),ec))}function Iv({authorHandle:e,authorName:t,includeBuyingGuideProducts:n,includeCollections:a,includeDeals:l,includeReviewProducts:i,articleCategory:r,articleTag:o,pageStarts:u,reviewPageStarts:c,loadAllReviewPages:s,website:f}){return["v15",f||"tomsguide",e||"",t||"",n?"buying-guides":"",a===!1?"no-collections":"collections",l===!1?"no-deals":"deals",i?"reviews":"",r||"",o||"",u?.join(",")||"",c?.join(",")||"",s===!1?"review-pages-partial":""].map(d=>encodeURIComponent(d)).join("|")}async function lS(e){let t=await Cf();if(!t)return;let n=t.transaction(hn,"readwrite"),a=Sf(n);n.objectStore(hn).delete(e),await a}async function Zv(e,t=Date.now()){try{let n=await Cf();if(!n)return null;let a=n.transaction(hn,"readonly"),l=await Kv(a.objectStore(hn).get(e));if(!l||l.schemaVersion!==15||!Array.isArray(l.articles)||l.articles.length===0)return null;let i=Math.max(0,t-l.cachedAt);return i>864e5?(lS(e),null):{articles:l.articles,cachedAt:l.cachedAt,isFresh:ir.cachedAt-i.cachedAt).slice(10).forEach(i=>a.delete(i.key)),await n}async function Wv(e,t,n=Date.now()){if(t.length!==0)try{let a=await Cf();if(!a)return;let l=a.transaction(hn,"readwrite"),i=Sf(l);l.objectStore(hn).put({articles:t,cachedAt:n,key:e,schemaVersion:15}),await i,await iS(a)}catch{}}var Rf=[];var xf=[],Tf=0;function Jv(){for(;Tf0;){let e=xf.shift();if(!e)return;Tf+=1,e.run().then(e.resolve,e.reject).finally(()=>{Tf-=1,Jv()})}}function rS(e){return new Promise((t,n)=>{xf.push({reject:n,resolve:t,run:e}),Jv()})}function Ef(e){Rf.push(e),Rf.length>100&&Rf.shift()}async function tc(e,t,n=4){let a=new Array(e.length),l=0,i=Math.min(Math.max(1,n),e.length);return await Promise.all(Array.from({length:i},async()=>{for(;l{let n=t.fetcher||fetch,a=Date.now(),l=new AbortController,i=!1,r=()=>l.abort();if(t.signal?.aborted)return Ef({durationMs:0,outcome:"aborted",source:t.source,startedAt:a}),{data:null,response:null};t.signal?.addEventListener("abort",r,{once:!0});let o=setTimeout(()=>{i=!0,l.abort()},8e3);try{let u=await n(e,{signal:l.signal}),c=u.ok?await u.json():null;return Ef({durationMs:Date.now()-a,outcome:u.ok?"succeeded":"failed",source:t.source,startedAt:a}),{data:c,response:u}}catch{return Ef({durationMs:Date.now()-a,outcome:i?"timed_out":t.signal?.aborted?"aborted":"failed",source:t.source,startedAt:a}),{data:null,response:null}}finally{clearTimeout(o),t.signal?.removeEventListener("abort",r)}})}var Mf="https://airedale.futurecdn.net/feeds/feed_1786707986217.json",oS="https://airedale.futurecdn.net/feeds/feed_1786702796175.json",uS="https://airedale.futurecdn.net/feeds/feed_1787582137748.json",cS=2,Df=new Map,$v=new Map;function eb(e){let t=new URL(e),n=String(t.searchParams.get("articleType")||"").trim().toLowerCase(),a=String(t.searchParams.get("articleControlTag")||"").replace(/[\s-]+/g,"_").toLowerCase();return n!=="deals"&&a!=="type_deal"?null:(t.searchParams.delete("start"),t.toString())}function sS(e){return!e.response?.ok||e.articles.lengthof(t)&&!Sr(t))}function dS(e){return!e.parameter||!e.value?"":`&${e.parameter}=${encodeURIComponent(e.value)}`}function fS(e,t="",n=!1,a,l,{includeCollections:i=!0,includeDeals:r=!0}={},o){let u=Fu(e,{includeBuyingGuideProducts:n,includeCollections:i,includeDeals:r}),c=a?`&articleCategory=${encodeURIComponent(a)}`:"",s=o?`&articleTag=${encodeURIComponent(o)}`:"";return u.scopes.flatMap(f=>(l||u.pageStarts).map(d=>`${Mf}?site=${e}&limit=${50}&start=${d}${dS(f)}${t}${c}${s}`))}function tb(e,t="",n,a=0,l){let i=e==="pcgamer"?"&articleControlTag=channel_gaming_hardware":"",r=n?`&articleCategory=${encodeURIComponent(n)}`:"",o=l?`&articleTag=${encodeURIComponent(l)}`:"";return`${oS}?site=${encodeURIComponent(e)}&articleType=review&limit=${50}&start=${a}${i}${t}${r}${o}`}function gS(e,t){return t!=="pcgamer"?e:e.map(n=>{let a=Array.isArray(n.articlecontroltag)?n.articlecontroltag:[];return a.some(l=>String(l).replace(/[^a-z0-9]/gi,"").toLowerCase()==="channelgaminghardware")?n:{...n,articlecontroltag:[...a,"channel_gaming_hardware"]}})}function hS(e,t){return`${uS}?site=${encodeURIComponent(e)}&documentHandle=${encodeURIComponent(t)}&limit=1`}async function mS(e,t){let n=`${e}|${t}`,a=$v.get(n);if(a)return a;let l=ai(hS(e,t),{source:"review-model-resolver"}).then(({data:i})=>i?cf(i)[0]:null).then(i=>i?$l(i):"").catch(()=>"");return $v.set(n,l),l}async function nc(e,t,n,a="date_desc"){let l=o=>{let u=[o.datepublished,o.publisheddate,o.createddate,o.contentmodifieddate,o.modifieddate].find(s=>s!=null&&String(s).trim()),c=new Date(Array.isArray(u)?u[0]:u).getTime();return Number.isFinite(c)?c:0},i=o=>{let u=Array.isArray(o.productrating)?o.productrating[0]:o.productrating;return Number(u)||0},r=e.filter(o=>gn(o)==="review"&&!$l(o)&&typeof o.documenthandle=="string"&&o.documenthandle.trim()).sort((o,u)=>{let c=i(o),s=i(u);return a==="rating_desc"?s-c||l(u)-l(o):a==="scored_first"&&+(s>0)-+(c>0)||l(u)-l(o)}).slice(0,n);return await Promise.all(r.map(async o=>{let u=await mS(t,o.documenthandle);u&&(o.articlehawkmodels=[u])})),e}function lb(e,t){let n=()=>{Wv(e,hv(t))};if(typeof windowW0(S,A,a,r,l,i),T=()=>I0(g).map(S=>{let x=$l(S);return x&&!String(S.articlehawkmodels||"").trim()?{...S,articlehawkmodels:[x]}:S}).filter(C),R=()=>{let S=T();S.length>0&&o?.(S)};try{let S=fS(A,m,a,u,s,{includeCollections:l,includeDeals:i},c),x=[];r&&(f||[0]).forEach(Q=>{let se=tb(A,m,u,Q,c);x.push(se),S.push(se)});let L=async(Q,se=x.includes(Q)?"review-feed":"author-feed")=>{let $e=await ai(Q,{signal:h,source:se});for(let Nr=0;Nr0&&g.push(...W),Pn},ge=S.filter(Q=>Number(new URL(Q).searchParams.get("start")||0)===0),I=S.filter(Q=>!ge.includes(Q)),N=await tc(ge,Q=>L(Q));R();let Le=new Map(ge.flatMap((Q,se)=>{let $e=eb(Q);return $e?[[$e,N[se]]]:[]})),He=new Map,bt=[];I.forEach(Q=>{let se=eb(Q);if(!se){bt.push(Q);return}He.set(se,[...He.get(se)||[],Q])});let[We,tn]=await Promise.all([tc(bt,Q=>L(Q)),Promise.all([...He.entries()].map(async([Q,se])=>{let $e=[],Z=Le.get(Q);for(let D of se){if(!Z||!sS(Z))break;let F=await L(D);$e.push(F),Z=F}return $e}))]),Be=[...We,...tn.flat()],Je=[...N,...Be];y=Je.length>0&&Je.every(Q=>!Q.response?.ok);let nt=Je.find(Q=>Q.reviewTotalCount!==null)?.reviewTotalCount;if(d!==!1&&f&&nt&&nt>f.length*50){let Q=new Set(f),se=[];for(let Z=0;Zawait L(tb(A,m,u,Z,c),"review-feed-page"));Je.push(...$e)}p=Je.every(Q=>Q.response?.ok)}catch(S){p=!1}if(v&&y)throw new Error("The author feed could not be loaded");let M=T();if(M.length===0&&pS({authorParameter:m,articleCategory:u,articleTag:c}))try{let S=await ai(`${Mf}?site=${A}&limit=150${m}`,{signal:h,source:"author-feed-fallback"});if(!S.response?.ok&&n&&(S=await ai(`${Mf}?site=${A}&limit=150&articleAuthor=${encodeURIComponent(n)}`,{signal:h,source:"author-feed-fallback"})),S.data){let x=S.data,L=Array.isArray(x)?x:x.data||[];L.length>0&&(M=L.slice(0,150))}}catch(S){}return{articles:M.filter(C),complete:!h?.aborted&&p}}function nb(e,t){let n=Df.get(e);if(n)return n;let a=ib(t).then(l=>(l.complete&&l.articles.length>0&&lb(e,l.articles),l)).finally(()=>{Df.delete(e)});return Df.set(e,a),a}async function ab(e,t){let n=await ib(t);return n.complete&&n.articles.length>0&&lb(e,n.articles),n}async function rb({onBackgroundRefresh:e,onProgress:t,...n}){let a=Iv(n),l=await Zv(a);if(l)return t?.(l.articles),l.isFresh||(n.signal?ab(a,n):nb(a,n)).then(({articles:o,complete:u})=>{u&&o.length>0&&e?.(o)}),l.articles;let i=await(n.signal?ab(a,{...n,onProgress:t}):nb(a,{...n,onProgress:t}));if(n.requireCompleteFeed&&!i.complete)throw new Error("The author feed could not be loaded completely");return i.articles}var Bf=[0,50,100,150,200,250,300,350,400,450];async function ob({props:e,authorHandle:t,authorName:n,activeDealTag:a,activeFreeformTagRequestValue:l,compactInventoryExplored:i,hasCompactInitialDeals:r,lightweightReviewPageStarts:o,usingIncrementalLightweightReviewFetch:u,signal:c,onProgress:s,onBackgroundRefresh:f}){let d=Number(e.editorialMaxAgeMonths)||0,h=b=>Va(b,void 0,d),v=await rb({authorHandle:t,authorName:n,fallbackAuthorName:e.authorName,includeBuyingGuideProducts:e.includeBuyingGuideProducts,includeCollections:e.includeCollections,includeDeals:e.includeDeals,includeReviewProducts:e.includeReviewProducts,articleCategory:e.compactEmbed&&a||void 0,articleTag:e.compactEmbed?l:void 0,pageStarts:e.compactEmbed&&r&&!e.warmInventory&&!i?[0]:void 0,reviewPageStarts:e.includeReviewProducts?u?o:!e.compactEmbed||i?Bf:void 0:void 0,loadAllReviewPages:!u,requireCompleteFeed:!0,onBackgroundRefresh:b=>f(h(b)),onProgress:b=>s(h(b)),signal:c,website:e.website});return h(v)}var _f=4;function ub({articles:e,displayCount:t,effectiveSort:n,includeReviewProducts:a,isCurrent:l,isFullInventoryPublished:i,onCards:r,onHawkProgress:o,options:u,website:c}){if(!l()||e.length===0)return;let s=Wu(e,u),f=Dr(s.targetArticles,u,s.activeRegionCode,s.targetIso);f.displayedDeals.length!==0&&(r(f.displayedDeals),a&&nc(s.targetArticles,c,Math.min(t,_f),n).then(()=>{if(!l()||i())return;let d=Dr(s.targetArticles,u,s.activeRegionCode,s.targetIso);r(d.displayedDeals);let h=d.displayedDeals.filter(v=>v.isReviewProduct&&v.hawkModelName).slice(0,_f).map(v=>String(v.hawkModelName));Xa(d.extractedDeals,s.activeRegionCode,void 0,_f,h,o)}))}function cb({activeDealTag:e,activeFreeformTag:t,clickedAuthorOverride:n,compactEmbed:a,compactInventoryExplored:l,compactLoadRequested:i,initialActiveDealTag:r,initialActiveFreeformTag:o,reviewInventoryBaked:u}){return!!(a&&u&&!n&&!i&&!l&&(!e||e===r)&&(!t||t===o))}function sb(e,t){return JSON.stringify({website:e.website||"tomsguide",authorHandle:t.authorHandle,authorName:t.authorName,authorBioLength:e.authorBioLength,query:e.query,region:e.region,selectedBrands:e.selectedBrands,priceRange:e.priceRange,discountAmount:e.discountAmount,sort:t.effectiveSort,resultCount:e.resultCount,productSelection:e.productSelection,prioritiseCommercialProducts:t.effectivePrioritiseCommercialProducts,includeDeals:e.includeDeals,includeCollections:e.includeCollections,includeBuyingGuideProducts:e.includeBuyingGuideProducts,includeReviewProducts:e.includeReviewProducts,preloadReviewInventory:e.preloadReviewInventory,lightweightReviewDelivery:t.lightweightReviewDelivery,editorialMaxAgeMonths:e.editorialMaxAgeMonths,compactEmbed:e.compactEmbed,warmInventory:e.warmInventory,refreshDealsOnViewport:e.refreshDealsOnViewport,...t})}function db(e,t,n=!1){return e.identity===t&&!n?e:{identity:t,epoch:e.epoch+1}}function Nf(e,t,n,a){return n&&!a?.aborted&&e.identity===t.identity&&e.epoch===t.epoch}function fb(e){return(Array.isArray(e)?e:[e]).reduce((n,a)=>{if(typeof a!="string"||!a.trim())return n;let l=a.trim();return n.some(i=>i.toLowerCase()===l.toLowerCase())?n:[...n,l]},[])}function bS(e,t){return e.length===t.length&&e.every((n,a)=>n===t[a])}function Of(e){return e.map(t=>t.trim().toLowerCase()).sort().join("|")}function kf(e){let t=e.initialData,n=Bu(e),a=!!(e.preloadReviewInventory&&!n),l=!!(e.preloadReviewInventory&&e.includeReviewProducts&&!e.compactEmbed),i=n?Number(e.resultCount)||12:100,r=n?!1:e.prioritiseCommercialProducts,o=ut(e.region),u=Ju(t?.allDeals||t?.deals||[],o).filter(k=>Y0(k,o)),c=ma(n?"date_desc":e.sort,!br(e)),s=!!(e.priceRange&&e.priceRange!=="all")||!!(e.discountAmount&&e.discountAmount!=="0"&&e.discountAmount!=="all"),f=Va(t?.authorArticles||[],void 0,Number(e.editorialMaxAgeMonths)||0),d=Va(t?.authorInteractionArticles||[],void 0,Number(e.editorialMaxAgeMonths)||0),[h,v]=(0,_.useState)(()=>$u(u,c,r)),[b,A]=(0,_.useState)(t?.totalDealCount??t?.allDeals?.length??t?.deals?.length??0),[m,g]=(0,_.useState)(t?.totalAuthorCount??t?.authors?.length??0),[y,p]=(0,_.useState)(!t),[C,T]=(0,_.useState)(!1),[R,M]=(0,_.useState)(!1),[S,x]=(0,_.useState)(!1),[L,ge]=(0,_.useState)(t?.couponMap||{}),[I,N]=(0,_.useState)(f),[Le,He]=(0,_.useState)(f),[bt,We]=(0,_.useState)(t?.tags||[]),[tn,Be]=(0,_.useState)(t?.tagCounts||{}),[Je,nt]=(0,_.useState)(t?.freeformTags||[]),[Q,se]=(0,_.useState)(t?.freeformTagCounts||{}),[$e,Z]=(0,_.useState)(t?.brands||[]),[D,F]=(0,_.useState)(()=>{let k=t?.activeDealTag||e.query;return k&&k.toLowerCase()!=="everything"?k:null}),[W,Pn]=(0,_.useState)(()=>fb(t?.activeFreeformTags||t?.activeFreeformTag)),[Nr,li]=(0,_.useState)(f),[ii,Qa]=(0,_.useState)(t?.selectedArticleId||null),[je,Or]=(0,_.useState)(!1),[pa,kr]=(0,_.useState)(""),[va,Lr]=(0,_.useState)(""),[Pf,Mb]=(0,_.useState)(0),[kt,lc]=(0,_.useState)(e.resultCount?parseInt(e.resultCount):12),[Gf,ic]=(0,_.useState)(!1),[Bb,Hr]=(0,_.useState)(null),[zr,_b]=(0,_.useState)(!1),[Ur,Nb]=(0,_.useState)([0]),Pr=(0,_.useRef)(t?`${e.website||"tomsguide"}|${e.authorHandle||""}|${e.authorName||""}|${e.includeBuyingGuideProducts?"buying-guides":""}|${e.includeReviewProducts?"reviews":""}|${e.includeDeals===!1?"no-deals":"deals"}|${e.includeCollections===!1?"no-collections":"collections"}`:""),rc=(0,_.useRef)(t?`${e.website||"tomsguide"}|${e.authorHandle||""}|${e.authorName||""}|${e.includeBuyingGuideProducts?"buying-guides":""}|${e.includeReviewProducts?"reviews":""}|${e.includeDeals===!1?"no-deals":"deals"}|${e.includeCollections===!1?"no-collections":"collections"}|age-${e.editorialMaxAgeMonths||"none"}`:""),qf=(0,_.useRef)(e.website||"tomsguide"),oc=(0,_.useRef)(e.website||"tomsguide"),Ff=(0,_.useRef)(u.length>0),jf=(0,_.useRef)(null),Ka=(0,_.useRef)(new Map),Ob=(0,_.useRef)({activeDealTag:String(D||"").trim().toLowerCase(),freeformTags:Of(fb(t?.activeFreeformTags||t?.activeFreeformTag)),discountAmount:e.discountAmount,priceRange:e.priceRange}),Gn=(0,_.useRef)(!1),Te=(0,_.useRef)(!1),ri=(0,_.useRef)(!1),Gr=(0,_.useRef)({identity:"",epoch:0}),Vf=(0,_.useRef)(t),kb=sb(e,{activeDealTag:D,activeFreeformTags:W,authorHandle:je?pa:e.authorHandle,authorName:je?va:e.authorName,compactInventoryExplored:Te.current,compactLoadRequested:zr,displayCount:kt,effectiveSort:c,effectivePrioritiseCommercialProducts:r,feedRevision:Pf,lightweightReviewDelivery:n,lightweightReviewPageStarts:Ur,selectedArticleId:ii}),qr=db(Gr.current,kb,Vf.current!==t);(0,_.useLayoutEffect)(()=>{Gr.current=qr,Vf.current=t},[qr,t]);let Yf=(k,de,U=je?pa:e.authorHandle,oe=je?va:e.authorName)=>[e.website||"tomsguide",U||"",oe||"",ut(e.region),String(k||"").trim().toLowerCase(),Of(de),e.priceRange,e.discountAmount,e.includeBuyingGuideProducts?"guides":"",e.includeReviewProducts?"reviews":"",e.includeDeals===!1?"no-deals":"deals",e.includeCollections===!1?"no-collections":"collections"].join("|"),Xf=(k,de)=>{let U=Ob.current;return!!(e.compactEmbed&&t?.brands?.length&&String(k||"").trim().toLowerCase()===U.activeDealTag&&Of(de)===U.freeformTags&&e.priceRange===U.priceRange&&e.discountAmount===U.discountAmount)},Fr=(k,de)=>{let U=Ka.current.get(Yf(k,de));if(U){Z(U);return}if(Xf(k,de)){Z(t?.brands||[]);return}},Ia=()=>Gn.current||n?void 0:e.productSelection;(0,_.useEffect)(()=>{Qa(null)},[e.authorName,e.authorHandle]),(0,_.useLayoutEffect)(()=>{let k=e.website||"tomsguide";oc.current!==k&&(oc.current=k,v(()=>[]),N(()=>[]),He(()=>[]),li(()=>[]),We(()=>[]),Be({}),nt(()=>[]),se({}),Z(()=>[]),Ka.current.clear(),ge({}),Or(!1),kr(""),Lr(""),Qa(null),F(null),Pn([]),g(0),A(0),M(!1),ic(!1),Hr(null),ri.current=!1,T(!0),p(!0))},[e.website]),(0,_.useEffect)(()=>{e.compactEmbed||typeof document>"u"||setTimeout(()=>{document.dispatchEvent(new CustomEvent("processArticle"))},100)},[h,kt,e.query,D,W]),(0,_.useEffect)(()=>{e.resultCount&&(lc(parseInt(e.resultCount,10)||12),Hr(null))},[e.resultCount]),(0,_.useEffect)(()=>{Hr(null)},[D,W,e.authorHandle,e.authorName,e.discountAmount,e.includeBuyingGuideProducts,e.includeCollections,e.includeDeals,e.includeReviewProducts,e.priceRange,e.region,e.selectedBrands,e.sort]),(0,_.useEffect)(()=>{if(!t||!e.includeBuyingGuideProducts&&!e.includeReviewProducts||e.compactEmbed&&(Te.current||e.refreshDealsOnViewport))return;let k=qv({initialData:t,props:e,displayCount:kt,hasActiveCommerceFilter:s,sort:c,prioritiseCommercialProducts:r,productSelection:Ia()});if(k.regionNeutralDeals){v(k.regionNeutralDeals);return}if(!wf(k.toEnrich))return;let de=!0,U=()=>Nf(Gr.current,qr,de);return M(!0),Fv(k,{initialData:t,props:e,sort:c,prioritiseCommercialProducts:r,productSelection:Ia()}).then(({deals:oe,enrichedDeals:Wa})=>{U()&&(v(oe),Z(ui=>t?.brands?.length?ui:ju(ui,Wa)))}).catch(()=>{}).finally(()=>{U()&&M(!1)}),()=>{de=!1}},[t,e.includeBuyingGuideProducts,e.includeCollections,e.includeDeals,e.includeReviewProducts,e.region,e.selectedBrands,e.discountAmount,e.priceRange,c,e.productSelection,kt,e.resultCount,e.compactEmbed,e.warmInventory,e.refreshDealsOnViewport,D,W]),(0,_.useEffect)(()=>{let k=!0,de=new AbortController,U=()=>Nf(Gr.current,qr,k,de.signal),oe=ri.current,Wa=!e.refreshDealsOnViewport&&cb({activeDealTag:D,activeFreeformTag:W[0]||null,clickedAuthorOverride:je,compactEmbed:e.compactEmbed,compactInventoryExplored:Te.current,compactLoadRequested:zr,initialActiveDealTag:t?.activeDealTag,initialActiveFreeformTag:t?.activeFreeformTag,reviewInventoryBaked:t?.reviewInventoryBaked}),ui=u.length>0,Vr=!!(n&&e.compactEmbed&&!Te.current),If=!!(Vr&&e.warmInventory&&I.length===0&&h.length>0),Zf=!!(Wa||e.compactEmbed&&ui&&I.length===0&&!je&&!zr&&!Te.current&&!e.refreshDealsOnViewport&&(!n||!e.warmInventory));return!Zf&&!oe&&!If&&(T(!0),e.compactEmbed&&Te.current&&v([])),(async()=>{x(!1),M(!1);let Wf=h.length>0||bt.length>0||Je.length>0||$e.length>0,e1=Zf;try{if(!e.authorName&&!e.authorHandle){v([]),N([]),li([]),We([]),nt([]),Z([]),Qa(null),F(null),Pn([]),p(!0);return}let Aa=je?pa:e.authorHandle,Ja=je?va:e.authorName,Yr=`${e.website||"tomsguide"}|${Aa||""}|${Ja||""}|${e.includeBuyingGuideProducts?"buying-guides":""}|${e.includeReviewProducts?"reviews":""}|${e.includeDeals===!1?"no-deals":"deals"}|${e.includeCollections===!1?"no-collections":"collections"}`,uc=`${Yr}|${e.compactEmbed&&D||""}|${e.compactEmbed?W.join(","):""}|${e.compactEmbed&&Te.current?"expanded":e.refreshDealsOnViewport?"viewport-refresh":"initial"}|lightweight-pages-${Vr?Ur.join(","):"all"}|age-${e.editorialMaxAgeMonths||"none"}`,Qt=I,Jf=bt,t1=rv(Je,W.length===1?W[0]:null),$f=()=>bv(e,{activeDealTag:D,activeFreeformTags:W,authorHandle:Aa,authorName:Ja,prioritiseCommercialProducts:r,productSelection:Ia(),selectedArticleId:ii,sort:c}),eg=rc.current!==uc||Qt.length===0,ci=[],cc=!1,tg=(Ee,At=!1)=>{if(!U()||At&&cc)return;let nn=ya(Ee,e.selectedBrands,{discountAmount:e.discountAmount,priceRange:e.priceRange});Xt(nn,c,r);let at=en(nn,Ia(),c);v(Mr(ci,at,c,r))};if(e1){p(!1),T(!1);return}if(eg){let Ee=Pr.current.split("|")[0],At=e.website||"tomsguide",nn=!!(Pr.current&&Ee!==At);!oe&&!If&&T(!!e.compactEmbed||!Wf),nn&&(Qt=[],Jf=[],v(()=>[]),N(()=>[]),He(()=>[]),li(()=>[]),We(()=>[]),Be({}),nt(()=>[]),se({}),Z(()=>[]),ge({}),Or(!1),kr(""),Lr(""),p(!0));let at=Ff.current&&Pr.current===Yr&&Qt.length===0&&!Te.current;Ff.current=!1,!at&&!Wf&&p(!0);let mc=wa=>{ub({articles:wa,displayCount:kt,effectiveSort:c,includeReviewProducts:e.includeReviewProducts,isCurrent:U,isFullInventoryPublished:()=>cc,onCards:hi=>{ci=hi,v(ci),p(!1)},onHawkProgress:hi=>tg(hi,!0),options:$f(),website:e.website||"tomsguide"})};if(Qt=await ob({props:e,authorHandle:Aa,authorName:Ja,activeDealTag:D,activeFreeformTagRequestValue:t1,compactInventoryExplored:Te.current,hasCompactInitialDeals:ui,lightweightReviewPageStarts:Ur,usingIncrementalLightweightReviewFetch:Vr,onBackgroundRefresh:wa=>{!U()||rc.current!==uc||(N(wa),je||He(wa),Mb(hi=>hi+1))},onProgress:mc,signal:de.signal}),!U())return;if(Pr.current=Yr,rc.current=uc,at&&Qt.length===0){p(!1);return}U()&&(N(Qt),je||He(Qt),T(!1))}let Xr=$f(),n1=Wu(Qt,Xr),{activeDealTag:si,activeRegionCode:di,authorArticles:ng,activeFreeformTags:fi,freeformTagCounts:ag,freeformTags:lg,tagCounts:ig,tags:sc,targetArticles:gi,targetIso:a1}=n1,$a=Av({compactEmbed:e.compactEmbed,currentDealTag:si,currentFreeformTags:fi,freeformTagCounts:ag,freeformTags:lg,initialFreeformTags:t?.freeformTags,requestedDealTag:D,requestedFreeformTags:W,tagCounts:ig,tags:sc}),l1=$a.activeDealTag,rg=$a.activeFreeformTags,i1=$a.tags,r1=$a.freeformTags,o1=$a.tagCounts,u1=$a.freeformTagCounts,Qr=Yf(si,fi,Aa,Ja),og=wv({authorKey:Yr,regionCode:di,activeDealTag:si,activeFreeformTags:fi,props:e}),el=null,tl=null;if(!je){let Ee=jf.current;if(Ee?.key===og&&Ee.sourceArticles===Qt)el=Ee.deals.length,tl=Ee.authorCount;else{let At=pv(gi,Xr);el=At.deals.length,tl=At.authorCount,jf.current={authorCount:tl,deals:At.deals,key:og,sourceArticles:Qt}}}Jf=sc;let Kt;if(U()&&(We(i1),Be(o1),nt(r1),se(u1)),e.includeReviewProducts&&(await nc(gi,e.website||"tomsguide",l?Math.min(gi.length,i):kt,c),!U()))return;let{brands:dc,displayedDeals:fc,extractedDeals:gc}=Dr(gi,Xr,di,a1),c1=Ee=>{!U()||!Kt||(Kt={...Kt,couponMap:Ee},e.onDataLoaded&&e.onDataLoaded(Kt))},hc={},ug=Gv({deals:fc,region:e.region,isCurrent:U,onResolved:Ee=>{hc=Ee,ge(Ee),c1(Ee)}});if(hc=ug,U()&&ge(ug),U()){eg&&F(l1),bS(W,rg)||Pn(rg),li(ng);let Ee=Mr(ci,fc,c,r);if(cc=!0,v(Ee),el!==null){let At=t?.totalDealCount||0,nn=Vr&&At>el;A(nn?At:el),g(nn?Math.max(t?.totalAuthorCount||0,tl||0):tl||0)}!Ka.current.has(Qr)&&Xf(si,fi)&&Ka.current.set(Qr,t?.brands||[]),Z(Ka.current.get(Qr)||dc),p(!1),Kt={...vv({allArticles:Qt,authorArticles:ng,bakeReviewInventory:a&&!e.compactEmbed,brands:dc,couponMap:hc,currentDealTag:si,currentFreeformTags:fi,displayedDeals:Ee,inventoryArticles:gi,options:Xr,resultCount:e.resultCount,tagCounts:ig,tags:sc,freeformTagCounts:ag,freeformTags:lg,totalAuthorCount:tl??m,totalDealCount:el??b}),activeAuthorHandle:Aa,activeAuthorName:Ja,selectedArticleId:ii},e.onDataLoaded&&e.onDataLoaded(Kt)}if((e.includeBuyingGuideProducts||e.includeReviewProducts)&&di!=="unavailable"){let Ee=kt;wf(gc)&&M(!0);let At=Vv({activeRegionCode:di,bakeInitialReviewCommerce:l,brands:dc,buildPreload:!!Kt,compactEmbed:e.compactEmbed,discountAmount:e.discountAmount,extractedDeals:gc,hasActiveCommerceFilter:s,includeReviewProducts:e.includeReviewProducts,initialDisplayedDeals:fc,initialReviewCommerceLimit:i,openingDeals:ci,preloadReviewInventory:a,priceRange:e.priceRange,prioritiseCommercialProducts:r,productSelection:Ia(),resultCount:e.resultCount,selectedBrands:e.selectedBrands,sort:c,visibleDealCount:Ee,onProgress:tg}).then(async at=>{if(U()&&(Ka.current.set(Qr,at.enrichedBrands),v(at.stableHawkDeals),Z(at.enrichedBrands),s&&A(at.hawkDeals.length),Kt)){let mc=await Yv(at);if(!U())return;let wa={...Kt,allDeals:mc,deals:at.visibleDeals,brands:at.enrichedBrands,totalDealCount:s?at.hawkDeals.length:Kt.totalDealCount};Kt=wa,e.onDataLoaded&&e.onDataLoaded(wa)}}).catch(()=>{}).finally(()=>{U()&&M(!1)}),nn=gc.slice(Ee,Ee+(Number(e.resultCount)||12));e.includeReviewProducts&&e.warmInventory&&!s&&!oe&&nn.some(at=>at.hawkModelName)&&At.then(()=>{U()&&jv(nn,di)}),oe&&await At}}catch(Aa){U()&&(!!(e.compactEmbed&&!Te.current&&t&&u.length>0&&qf.current===(e.website||"tomsguide"))?(v($u(u,c,r)),x(!1)):x(!0))}finally{U()&&(p(!1),T(!1),ic(!1),ri.current=!1)}})(),()=>{k=!1,de.abort()}},[t,e.query,e.region,e.selectedBrands,e.website,e.resultCount,kt,c,e.priceRange,e.discountAmount,D,W,e.authorName,e.authorHandle,e.website,e.authorBioLength,e.includeBuyingGuideProducts,e.includeCollections,e.includeDeals,e.includeReviewProducts,s,a,l,i,r,n,Ur,e.productSelection,e.compactEmbed,e.warmInventory,e.refreshDealsOnViewport,e.editorialMaxAgeMonths,e.preloadReviewInventory,ii,je,pa,va,Pf,zr]);let jr=e.website||"tomsguide",ct=oc.current!==jr,ba=(0,_.useMemo)(()=>ct?[]:qf.current===jr&&t?.authors?t.authors:wr(Le.length>0?Le:I,jr),[I,jr,Le,t?.authors,ct]),Lb=je?pa:e.authorHandle,Hb=je?va:e.authorName,zb=ba.find(k=>k.handle===Lb||k.fullName===Hb),Za=Le.length>0?Le:I,Qf=(0,_.useMemo)(()=>{if(Za.length===0)return ba;let k=ut(e.region),de=$t(k),U=ti(xr(Za,D),W),oe=yf(ba,U,{activeRegionCode:k,targetIso:de,selectedBrands:e.selectedBrands,priceRange:e.priceRange,discountAmount:e.discountAmount,editorialMaxAgeMonths:Number(e.editorialMaxAgeMonths)||0,includeBuyingGuideProducts:e.includeBuyingGuideProducts,includeCollections:e.includeCollections,includeDeals:e.includeDeals,includeReviewProducts:e.includeReviewProducts,website:e.website});return Ou(ba,oe)},[D,W,ba,Za,e.discountAmount,e.editorialMaxAgeMonths,e.includeBuyingGuideProducts,e.includeCollections,e.includeDeals,e.includeReviewProducts,e.priceRange,e.region,e.selectedBrands]),Ub=(0,_.useMemo)(()=>{if(ct)return[];if(Za.length===0&&t?.authors?.length||e.compactEmbed&&!D&&W.length===0&&t?.authors?.length)return ba;let k=ut(e.region),de=$t(k),U=ti(xr(Za,D),W).filter(oe=>ei([oe],{activeRegionCode:k,targetIso:de,editorialMaxAgeMonths:Number(e.editorialMaxAgeMonths)||0,includeBuyingGuideProducts:e.includeBuyingGuideProducts,includeCollections:e.includeCollections,includeDeals:e.includeDeals,includeReviewProducts:e.includeReviewProducts,website:e.website}).length>0);return Ar(Qf,U)},[D,W,Za,ct,je,t?.authors?.length,e.compactEmbed,e.editorialMaxAgeMonths,e.includeBuyingGuideProducts,e.includeCollections,e.includeDeals,e.includeReviewProducts,e.region,Qf,e.website]),Kf=(k,de)=>{let U=Le.length>0?Le:I.length>0?I:d;if(U.length===0)return;let oe=Qv(U,{authorHandle:k,authorName:de,discountAmount:e.discountAmount,editorialMaxAgeMonths:Number(e.editorialMaxAgeMonths)||0,priceRange:e.priceRange,region:e.region,selectedBrands:e.selectedBrands,sort:c,includeBuyingGuideProducts:e.includeBuyingGuideProducts,includeCollections:e.includeCollections,includeDeals:e.includeDeals,includeReviewProducts:e.includeReviewProducts,prioritiseCommercialProducts:r,website:e.website,productSelection:void 0});Qa(null),F(null),Pn([]),li(oe.authorArticles),We(oe.tags),Be(oe.tagCounts),nt(oe.freeformTags),se(oe.freeformTagCounts),Z(oe.brands),v(oe.deals),p(!1)},Pb=()=>{!e.compactEmbed||!t||(v(en($u(t.deals||t.allDeals||[],c,r),Ia(),c)),We(t.tags||[]),Be(t.tagCounts||{}),nt(t.freeformTags||[]),se(t.freeformTagCounts||{}),Z(t.brands||[]),ge(t.couponMap||{}),g(t.totalAuthorCount??t.authors?.length??0),A(t.totalDealCount??t.deals?.length??t.allDeals?.length??0))},Gb=k=>{Gn.current=!0,Te.current=!0,T(!0),je&&(pa===k.handle||va===k.fullName)?(e.compactEmbed&&t?Pb():Kf(e.authorHandle,e.authorName),Or(!1),kr(""),Lr("")):(Kf(k.handle,k.fullName),Or(!0),kr(k.handle),Lr(k.fullName)),e.onQueryChange?.("")},qb=k=>{Gn.current=!0,Te.current=!0,T(!0);let de=D===k?null:k;Fr(de,W),F(de),e.onQueryChange?.("")},Fb=()=>{Gn.current=!0,Te.current=!0,T(!0)},jb=()=>{Gn.current=!0,Te.current=!0,T(!0),Fr(null,W),F(null),e.onQueryChange?.("")},Vb=k=>{Gn.current=!0,Te.current=!0,T(!0);let de=W.some(U=>U.toLowerCase()===k.toLowerCase())?W.filter(U=>U.toLowerCase()!==k.toLowerCase()):[...W,k];Fr(D,de),Pn(de)},Yb=()=>{Gn.current=!0,Te.current=!0,T(!0),Fr(D,[]),Pn([])},Xb=k=>{Gn.current=!0,Te.current=!0,T(!0),Qa(k)},Qb=()=>{if(ri.current)return;ri.current=!0,ic(!0);let k=kt+(e.resultCount?parseInt(e.resultCount,10):12);!!(n&&e.compactEmbed&&!Te.current)&&I.length>0&&h.length{let Wa=Bf[oe.length];return Wa===void 0?oe:[...oe,Wa]}),lc(oe=>(Hr(oe),oe+(e.resultCount?parseInt(e.resultCount,10):12)));let U=!!(t?.reviewInventoryBaked&&h.length>kt);e.compactEmbed&&I.length===0&&!U&&(T(!0),_b(!0))},oi=e.compactEmbed&&!e.refreshDealsOnViewport,Kb=oi&&t?.tags?.length?t.tags:bt,Ib=oi&&t?.tags?.length?t.tagCounts||{}:tn,Zb=oi&&!Te.current&&t?.brands?.length?t.brands:$e,Wb=oi&&t?.freeformTags?.length&&(!Te.current||W.length===1)?t.freeformTags:Je,Jb=oi&&t?.freeformTags?.length&&(!Te.current||W.length===1)?t.freeformTagCounts||{}:Q,$b=Xv({enrichingBuyingGuides:R,error:S,loading:y,loadingMore:Gf,refreshingFeed:C});return{activeDealTag:D,activeFreeformTags:W,airedaleBrands:ct?[]:Zb,airedaleTagCounts:ct?{}:Ib,airedaleTags:ct?[]:Kb,airedaleFreeformTagCounts:ct?{}:Jb,airedaleFreeformTags:ct?[]:Wb,allAuthorsList:Ub,authorArticlesList:ct?[]:Nr,clickedAuthorOverride:je,couponMap:L,deals:ct?[]:h,displayCount:kt,error:S,enrichingBuyingGuides:R,effectiveAuthorProfile:ct?void 0:zb,loading:y,loadingMore:Gf,loadMoreStartCount:Bb,markProductSelectionInteracted:Fb,hasMore:h.length>kt||!!e.compactEmbed&&b>h.length,loadMore:Qb,refreshingFeed:C,overriddenAuthorHandle:pa,overriddenAuthorName:va,selectedArticleId:ii,setActiveDealTag:F,clearDealTag:jb,clearFreeformTags:Yb,selectArticle:Xb,setDisplayCount:lc,setSelectedArticleId:Qa,status:$b,toggleAuthorOverride:Gb,toggleDealTag:qb,toggleFreeformTag:Vb,totalAuthorCount:ct?0:m,totalDealCount:ct?0:b}}var AS=B(st(),1);var _r=B(st(),1);function gb(e){let[t,n]=(0,_r.useState)(null),[a,l]=(0,_r.useState)([]),[i,r]=(0,_r.useState)(!1),[o,u]=(0,_r.useState)(!1);return{close:()=>n(null),error:o,loading:i,merchant:t,open:async f=>{n(f),r(!0),u(!1),l([]);try{let d=Ev(f,e),h=await fetch(d.toString());if(!h.ok)throw new Error("API Error");l(Cv(await h.json()))}catch(d){u(!0)}finally{r(!1)}},vouchers:a}}var Fe=B(O(),1);function wS(e){return new Set(e.map(t=>Array.isArray(t.authorName)?t.authorName[0]:t.authorName).map(t=>String(t||"").trim().toLowerCase()).filter(Boolean)).size}var SS=new Map,CS=()=>{};function mb({data:e,editorBar:t,editorMode:n=!1,props:a,selectedDeals:l=SS,setSelectedDeals:i=CS}){let r=gb(a.region),[o,u]=(0,hb.useState)(new Set),c=y0[a.website||""]||"#1F69FF",s=a.backgroundColor?a.backgroundColor==="white"?"#ffffff":a.backgroundColor==="transparent"?"transparent":a.backgroundColor==="light_blue"?"#E7F0FF":void 0:void 0,f=ku(a.authorHandle,a.authorName),d=br(a),h=Bu(a),v=ma(h?"date_desc":a.sort,!d),b=!!(a.showReviewSort&&a.includeReviewProducts),A=a.showPriceDiscountFilters!==!1||b,m=!a.authorFullBleed,g=!e.clickedAuthorOverride,y=e.totalDealCount||e.deals.length,p=e.totalAuthorCount||wS(e.deals),C=e.status==="loading_inventory"||e.status==="refreshing_inventory"||e.status==="enriching_visible_cards",T=e.status==="loading_inventory"||(e.status==="refreshing_inventory"||e.status==="enriching_visible_cards")&&e.deals.length===0,M=!!(a.showReviewSort&&a.includeReviewProducts&&(e.status==="refreshing_inventory"||e.status==="enriching_visible_cards"))?"Loading and sorting available review products":e.status==="enriching_visible_cards"?"Adding live product images and prices":e.status==="refreshing_inventory"?"Updating products":`Loading ${a.website||"site"} authors and products`,S=N=>{e.markProductSelectionInteracted(),a.onBrandToggle?.(N)},x=N=>{e.markProductSelectionInteracted(),a.onBrandSelect?.(N)},L=N=>{e.markProductSelectionInteracted(),a.onPriceRangeChange?.(N)},ge=N=>{e.markProductSelectionInteracted(),a.onDiscountAmountChange?.(N)},I=N=>{e.markProductSelectionInteracted(),a.onSortChange?.(N)};return(0,Fe.jsx)("div",{className:"tg-df-widget-host","data-fcaw-export-view-identity":z0(a),"data-fcaw-inventory-status":e.status,"data-fcaw-active-author-handle":e.clickedAuthorOverride?e.overriddenAuthorHandle||"":a.authorHandle||"","data-fcaw-active-author-name":e.clickedAuthorOverride?e.overriddenAuthorName||"":a.authorName||"","data-fcaw-active-deal-tag":e.activeDealTag||"","data-fcaw-active-freeform-tags":JSON.stringify(e.activeFreeformTags),"data-fcaw-selected-article-id":e.selectedArticleId||"",style:{"--tg-df-blue":c.toUpperCase()==="#FFFFFF"?"#000000":c},"data-vizualizer-embed":"true","data-tg-df-full-bleed":a.authorFullBleed?"true":"false","data-tg-df-mobile-dropdowns":a.mobileDropdowns?"true":"false","data-tg-df-sticky-mobile-filters":a.stickyMobileFilters===!1?"false":"true",children:(0,Fe.jsxs)("div",{className:"tg-df-container article-body",style:a.backgroundColor?{backgroundColor:s}:void 0,children:[(a.showAuthorIdentity!==!1||a.showAuthorBio!==!1)&&(0,Fe.jsx)("div",{className:"tg-df-author-embed",style:{width:"100%",fontFamily:"inherit"},children:(0,Fe.jsx)("div",{className:"tg-df-author-section",style:{display:"block",opacity:1,overflow:"visible",background:"transparent",border:"none"},children:(0,Fe.jsx)(q0,{authorArticlesList:e.authorArticlesList,authorBioLength:a.authorBioLength,customBio:g?a.customBio:void 0,customHeaderKicker:a.customHeaderKicker,customHeaderTitle:a.customHeaderTitle,effectiveAuthorHandle:e.clickedAuthorOverride?e.overriddenAuthorHandle:a.authorHandle,effectiveAuthorName:e.clickedAuthorOverride?e.overriddenAuthorName:a.authorName,isReviewWidget:d,onBioChange:g?a.onBioChange:void 0,onHeaderKickerChange:a.onHeaderKickerChange,onHeaderTitleChange:a.onHeaderTitleChange,selectedProfile:e.effectiveAuthorProfile,showAuthorBio:a.showAuthorBio,showAuthorIdentity:a.showAuthorIdentity,showSocialButtons:a.showSocialButtons,stabilizeBio:f,authorCount:p,totalDealCount:y,website:a.website})})}),t,a.showCollectionsDropdown&&(0,Fe.jsx)(r0,{articles:e.authorArticlesList,authorHandle:a.authorHandle,authorName:a.authorName||a.author,onChange:e.selectArticle,selectedArticleId:e.selectedArticleId,shortenedHeadlines:a.shortenedHeadlines}),C&&(0,Fe.jsxs)("div",{role:"status","aria-live":"polite","aria-label":M,style:{alignItems:"center",display:"flex",justifyContent:"center",marginBottom:"16px",minHeight:"72px"},children:[(0,Fe.jsx)("span",{className:"tg-df-coupon-spinner","aria-hidden":"true",style:{borderWidth:"3px",height:"24px",width:"24px"}}),(0,Fe.jsxs)("span",{style:{color:"#4B5563",fontSize:"14px",marginLeft:"10px"},children:[M,"\u2026"]})]}),(0,Fe.jsx)(B0,{activeDealTag:e.activeDealTag,activeFreeformTags:e.activeFreeformTags,airedaleBrands:e.airedaleBrands,airedaleTagCounts:e.airedaleTagCounts,airedaleTags:e.airedaleTags,freeformTagCounts:e.airedaleFreeformTagCounts,freeformTags:e.airedaleFreeformTags,allAuthorsList:e.allAuthorsList,brands:a.brands,clickedAuthorOverride:e.clickedAuthorOverride,loading:e.loading,refreshing:e.refreshingFeed,onAuthorClick:e.toggleAuthorOverride,onBrandToggle:S,onFreeformTagClick:e.toggleFreeformTag,onTagClick:e.toggleDealTag,overriddenAuthorHandle:e.overriddenAuthorHandle,overriddenAuthorName:e.overriddenAuthorName,selectedBrands:a.selectedBrands,showAuthorRail:f&&a.showAuthorRail!==!1,showAuthorCounters:a.showAuthorCounters,showBrandRail:a.showBrandRail,showCategoryRail:a.showCategoryRail,showFreeformTagRail:a.showFreeformTagRail,website:a.website}),(0,Fe.jsx)(k0,{activeDealTag:e.activeDealTag,activeFreeformTags:e.activeFreeformTags,airedaleBrands:e.airedaleBrands,airedaleTagCounts:e.airedaleTagCounts,airedaleTags:e.airedaleTags,brands:a.brands,discountAmount:a.discountAmount,enabled:a.mobileDropdowns||m,freeformTagCounts:e.airedaleFreeformTagCounts,freeformTags:e.airedaleFreeformTags,onBrandSelect:x,onBrandToggle:S,onDiscountAmountChange:ge,onFreeformTagClear:e.clearFreeformTags,onFreeformTagToggle:e.toggleFreeformTag,onPriceRangeChange:L,onReviewSortChange:I,onTagClear:e.clearDealTag,onTagClick:e.toggleDealTag,priceRange:a.priceRange,reviewSort:v,selectedBrands:a.selectedBrands||[],showCounters:a.showAuthorCounters,showBrandRail:a.showBrandRail,showCategoryRail:a.showCategoryRail,showFreeformTagRail:a.showFreeformTagRail,showPriceDiscountFilters:a.showPriceDiscountFilters,showReviewSort:b,includeScoredFirst:!d}),A&&(0,Fe.jsx)(L0,{airedaleBrands:e.airedaleBrands,airedaleTags:e.airedaleTags,discountAmount:a.discountAmount,hidden:!!e.selectedArticleId,onDiscountAmountChange:ge,onPriceRangeChange:L,onReviewSortChange:I,priceRange:a.priceRange,reviewSort:v,showPriceDiscountFilters:a.showPriceDiscountFilters,showReviewSort:b,includeScoredFirst:!d}),(0,Fe.jsx)(i0,{articles:e.authorArticlesList,selectedArticleId:e.selectedArticleId}),(a.showCategoryRail!==!1||a.showFreeformTagRail!==!1||a.showBrandRail!==!1)&&(0,Fe.jsx)(a0,{activeDealTag:e.activeDealTag,activeFreeformTags:e.activeFreeformTags,airedaleTags:e.airedaleTags,freeformTags:e.airedaleFreeformTags,discountAmount:a.discountAmount,onBrandSelect:x,onBrandToggle:S,onDiscountAmountChange:ge,onPriceRangeChange:L,onTagClear:e.clearDealTag,onFreeformTagClear:e.clearFreeformTags,onFreeformTagToggle:e.toggleFreeformTag,priceRange:a.priceRange,selectedBrands:a.selectedBrands||[]}),(0,Fe.jsx)(w0,{activeDealTag:e.activeDealTag,activeFreeformTags:e.activeFreeformTags,couponMap:e.couponMap,deals:e.deals,displayCount:e.displayCount,editorMode:n,error:e.error,expandedDealIds:o,hasMore:e.hasMore,hideHawkPrices:a.hideHawkPrices,loading:T,loadingMore:e.loadingMore,loadMoreStartCount:e.loadMoreStartCount,onDescriptionToggle:N=>u(Le=>{let He=new Set(Le);return He.has(N)?He.delete(N):He.add(N),He}),onLoadMore:e.loadMore,onOpenVouchers:r.open,query:a.query,recentDealsOnly:!!(a.includeDeals&&!a.includeCollections&&!a.includeBuyingGuideProducts&&!a.includeReviewProducts),selectedBrands:a.selectedBrands,selectedDeals:l,setSelectedDeals:i,website:a.website}),(0,Fe.jsx)(F0,{error:r.error,loading:r.loading,merchant:r.merchant,onClose:r.close,vouchers:r.vouchers})]})})}var pb=B(O(),1),yb=e=>{let t={...e,editorMode:!1},n=kf(t);return(0,pb.jsx)(mb,{data:n,props:t})};function vb(e,t){try{window.hawk?.analytics?.freyr?.push({name:e,data:t}),window.dispatchEvent(new CustomEvent("hawk-analytics-update")),window.freyr?.cmd.push(()=>{window.freyr?.pushAndUpdate?.(e,t)})}catch{}}function bb(){window.dataLayer=window.dataLayer||[],window.googletag=window.googletag||{},window.googletag.cmd=window.googletag.cmd||[],window.hawk=window.hawk||{},window.hawk.analytics=window.hawk.analytics||{},window.hawk.analytics.freyr=window.hawk.analytics.freyr||[],window.freyr=window.freyr||{cmd:[]},window.freyr.cmd=window.freyr.cmd||[];let e="https://freyr.futurecdn.net/freyr.js",t=window.location.hostname;if(!(window.navigator.webdriver||window.navigator.userAgent.includes("Headless"))&&!!t&&t!=="localhost"&&t!=="127.0.0.1"&&!t.includes("run.app")&&!document.querySelector(`script[src="${e}"]`)){let l=document.createElement("script");l.src=e,l.async=!0,document.head.appendChild(l)}}function RS(e){let t=Number.parseFloat(e.rawPrice||e.price)||null,n=Number.parseFloat(e.rawMsrp||e.msrp)||null;return{product:{primary:{id:e.externalProductId||e.id||e.matchId||null,name:e.productName||e.title||"",type:"deal",price:t,previousPrice:n,currency:e.isoCurrencyCode||e.currency||"USD",preorder:!1,labels:e.modelBrand||e.brand?[{type:"brand",value:e.modelBrand||e.brand}]:[],link:e.url||null,originalLink:e.originalLink||e.url||null,revenueId:e.revenueId||null,startTime:null,endTime:null,voucherCode:null,voucherAudience:null,voucherPercentageSaving:n&&t&&n>t?Math.round((1-t/n)*100):null,voucherMoneySaving:null,voucherType:null,offerExclusive:!1,offerScope:null,globalId:e.productKey||null,inStock:e.inStock!==!1,contractProvider:null,contractMinutes:null,contractTexts:null,contractData:null,contractLength:null,contractMonthlyPrice:null,contractCurrency:e.isoCurrencyCode||e.currency||"USD"}},merchant:{id:e.merchantId||null,name:e.merchant||"Retailer",url:e.merchantUrl||null,network:e.merchantNetwork||null},model:{id:e.modelId||null,brand:e.modelBrand||e.brand||null,name:e.productName||e.title||"",parent:e.modelParent||null}}}var TS=new Set(["subid1","ascsubtag","clickref","u1"]);function ES(e){return e.match(/(?:^|[-_])(\d{10,})(?=$|[-_])/)?.[1]||null}function xS(e){let t=new Set,n=a=>{if(!a||t.has(a))return null;t.add(a);let l;try{l=new URL(a)}catch{return null}for(let[i,r]of l.searchParams)if(TS.has(i.toLowerCase())){let o=ES(r);if(o)return o}for(let i of l.searchParams.values())if(/^https?:\/\//i.test(i)){let r=n(i);if(r)return r}return null};return n(e)}function Ab({areaClicked:e,clickType:t,deals:n,index:a,queryName:l}){let i={event:"hawkEvent",category:"Affiliates",affiliate:{action:{type:t,id:"author-widget",event:t==="appeared"?"viewed":"Click from",timestamp:Date.now()},component:{flag:"Editor",product:"deals",category:"Signal Deal Finder Author widget",type:t==="appeared"?"review":"signal product",label:l||n[0]?.productName||n[0]?.title||"",index:a??-1,linkCount:n.length,blockLayout:"",areaClicked:e}},products:n.slice(0,20).map(RS),reviews:[],_clear:!0,"gtm.uniqueEventId":Date.now()%1e4};vb("hawkEvent",i)}function wb(e,t){e.length&&Ab({areaClicked:"",clickType:"appeared",deals:e,index:null,queryName:t})}function Sb(e,t){if(e?.deals?.length)return e.deals;let n=Number(t)||12;return e?.allDeals?.slice(0,n)||[]}function Cb(e){e.addEventListener("click",t=>{let n=t.target;if(!(n instanceof Element))return;let a=n.closest("a[data-fcaw-affiliate-link][href], a.hawk-affiliate-link-deal-widget[href], a.hawk-affiliate-link-container[href], a.hawk-affiliate-link-deal-button[href]"),l=n.closest(".tg-df-card"),i=!!(!a?.dataset.fcawRevenueId&&(a?.hasAttribute("data-hl-processed")||a?.hasAttribute("data-fcaw-hawklinks-requested")));a&&l&&!i&&Ab({areaClicked:"Signal Product Card",clickType:"retailer",deals:[{brand:l.dataset.brand,currency:l.dataset.currency,id:l.dataset.dealId,merchant:a.dataset.merchant||l.dataset.merchant,merchantId:a.dataset.merchantId||l.dataset.merchantId,modelId:a.dataset.modelId||l.dataset.modelId,productKey:a.dataset.productKey||l.dataset.productKey,rawMsrp:l.dataset.previousPrice,rawPrice:l.dataset.price,originalLink:a.dataset.fcawOriginalLink||a.href,revenueId:a.dataset.fcawRevenueId||xS(a.href),title:l.dataset.productName,url:a.href}],index:Array.from(e.querySelectorAll(".tg-df-card")).indexOf(l)});let r=n.closest('button, select, [role="button"]');r&&vb("elementInteraction",{element:{action:"click",id:r.id||void 0,class:r.className||void 0,name:r.getAttribute("name")||r.getAttribute("aria-label")||void 0,text:r.textContent?.trim()||void 0,label:r.getAttribute("aria-label")||void 0}})})}function Rb(e,t){let n=Hu.find(l=>l===t),a=n?e?.regionalDealManifests?.[n]:void 0;return a?{...e,allDeals:void 0,deals:a,...e?.regionalDealRailData?.[n]}:e}var Uf=B(O(),1),DS='fc-author-commerce-widget[data-fcaw-version="1"]',MS="(max-width: 599px)",BS=600,_S='[class*="membership-expandable-banner"]',NS=/^jump\s+to\b/i,Hf="data-fcaw-jump-navigation-suppressed",OS=50,kS=1e4,LS=["[data-sticky-header]","[data-header-sticky]",'[role="banner"]',".navigation__container",".site-header",".main-header",".header__container",'[class*="membership-expandable-banner"] [class*="skinny-banner"]','[class*="membership-expandable-banner"] [id="skinnyBanner"]',"nav","header"].join(","),HS=` :host { display: block !important; width: 100% !important; min-width: 0 !important; max-width: none !important; isolation: isolate !important; contain: style !important; } :host([data-fcaw-full-bleed="true"]) { width: min( 1200px, var(--fcaw-viewport-width, 100vw) ) !important; max-width: 1200px !important; margin-left: var( --fcaw-full-bleed-offset, calc(50% - min(600px, 50vw)) ) !important; margin-right: 0 !important; position: relative !important; } :host([data-fcaw-full-bleed="true"]) #tg-df-spreadsheet-filters { width: min( 1500px, var(--fcaw-viewport-width, 100vw) ) !important; max-width: 1500px !important; margin-left: calc( ( 100% - min(1500px, var(--fcaw-viewport-width, 100vw)) ) / 2 ) !important; margin-right: 0 !important; } :host, :host *, :host *::before, :host *::after { box-sizing: border-box; }`,Lf=new WeakMap;function zS(){if(document.querySelector("style[data-fcaw-jump-navigation-protection]"))return;let e=document.createElement("style");e.setAttribute("data-fcaw-jump-navigation-protection",""),e.textContent=` [${Hf}="true"] { opacity: 0 !important; pointer-events: none !important; visibility: hidden !important; } `,document.head.appendChild(e)}function US(){let e=Array.from(document.querySelectorAll("span, p, div, strong, b")).filter(n=>n.childElementCount===0&&NS.test(n.textContent?.trim()||"")),t=new Set;for(let n of e)for(let a=n.parentElement;a&&a!==document.body;a=a.parentElement)if(getComputedStyle(a).position==="sticky"){t.add(a);break}return[...t]}function PS(e,t,n){let a=Lf.get(e)||new Set;n?a.add(t):a.delete(t),a.size>0?(Lf.set(e,a),e.setAttribute(Hf,"true")):(Lf.delete(e),e.removeAttribute(Hf))}function GS(e){if(e.dataset.fcawFullBleed!=="true"||typeof IntersectionObserver>"u")return;let t=US().filter(a=>!a.contains(e));if(t.length===0)return;zS(),new IntersectionObserver(([a])=>{t.forEach(l=>PS(l,e,a.isIntersecting))},{threshold:0}).observe(e)}function qS({host:e,initialData:t,initialProps:n}){let[a]=(0,Ot.useState)(Db),l=Rb(t,a),[i,r]=(0,Ot.useState)(n.query),[o,u]=(0,Ot.useState)(n.selectedBrands),[c,s]=(0,Ot.useState)(n.priceRange),[f,d]=(0,Ot.useState)(n.discountAmount),[h,v]=(0,Ot.useState)(n.sort),[b,A]=(0,Ot.useState)(!1),m=!!(b&&n.compactEmbed&&n.includeDeals!==!1),g=(0,Ot.useRef)(!1);return(0,Ot.useEffect)(()=>{let y=()=>{g.current||(g.current=!0,wb(Sb(l,n.resultCount),n.query))};if(typeof IntersectionObserver>"u"){y();return}let p=new IntersectionObserver(([C])=>{C?.isIntersecting&&(y(),p.disconnect())},{threshold:.1});return p.observe(e),()=>p.disconnect()},[e,l,n.query]),(0,Ot.useEffect)(()=>{if(typeof IntersectionObserver>"u"){A(!0);return}let y=new IntersectionObserver(([p])=>{p?.isIntersecting&&(A(!0),y.disconnect())},{rootMargin:"800px 0px"});return y.observe(e),()=>y.disconnect()},[e]),(0,Uf.jsx)(yb,{...n,region:a||"unavailable",initialData:l,warmInventory:b,refreshDealsOnViewport:m,query:i,selectedBrands:o,priceRange:c,discountAmount:f,sort:h,editorMode:!1,onQueryChange:r,onBrandSelect:u,onBrandToggle:y=>u(p=>p.includes(y)?p.filter(C=>C!==y):[...p,y]),onPriceRangeChange:s,onDiscountAmountChange:d,onSortChange:v})}function FS(e){try{let t=document.cookie.match(new RegExp(`(?:^|;\\s*)${e}=([^;]*)`));return t?decodeURIComponent(t[1]):void 0}catch{return}}function ac(e){let n=String(e||"").trim().toUpperCase().replace("_","-").split("-").at(-1);return n==="UK"?"GB":Hu.includes(n||"")?n:void 0}function Db(){let e=new URLSearchParams(window.location.search).get("area");return ac(e)||ac(FS("FTR_Country_Code"))||ac(document.documentElement.getAttribute("data-locale"))||ac(window.navigator.language)}function Tb(e,t){let n=e.querySelector(t);if(n?.textContent)try{return JSON.parse(n.textContent)}catch(a){console.warn("Author widget configuration could not be parsed.",a);return}}function jS(e){return e?.reviewInventoryFormat!==uv||!e.allDeals?e:{...e,allDeals:cv(e.allDeals)}}function Eb(e){e.querySelectorAll("a[href]").forEach(t=>{(t.hasAttribute("data-fcaw-affiliate-link")||t.classList.contains("hawk-affiliate-link-deal-widget")||t.classList.contains("hawk-affiliate-link-container")||t.classList.contains("hawk-affiliate-link-deal-button"))&&(t.rel="sponsored nofollow noopener")})}function VS(e){let t=e.closest(".tg-df-card"),n=t?.dataset.fcawRevenueId||e.dataset.fcawRevenueId;if(n)return n;let a=[window.location.href,t?.dataset.productName||"",t?.dataset.merchant||"",t?.dataset.modelId||"",new Date().toDateString(),"tomsguide"].join("|"),l=0;for(let r=0;r{o.disconnect(),n&&window.clearTimeout(n)}}function KS(e){if(e.dataset.fcawFullBleed!=="true")return;let t=()=>{let n=document.documentElement.clientWidth||window.innerWidth,a=Math.min(1200,n),l=Math.max(0,(n-a)/2),i=e.parentElement?.getBoundingClientRect().left||0;e.style.setProperty("--fcaw-full-bleed-offset",`${l-i}px`),e.style.setProperty("--fcaw-viewport-width",`${n}px`)};t(),window.addEventListener("resize",t,{passive:!0}),typeof ResizeObservert.matches||e.getBoundingClientRect().width{n||(n=!0,window.requestAnimationFrame(s))},u=()=>{if(typeof MutationObserver>"u")return;let f=new Set(Array.from(document.querySelectorAll(_S)));l.forEach((d,h)=>{f.has(h)&&h.isConnected||(d.disconnect(),l.delete(h))}),f.forEach(d=>{if(l.has(d))return;let h=new MutationObserver(o);h.observe(d,{attributes:!0,attributeFilter:["class","style"],childList:!0,subtree:!0}),l.set(d,h)})},c=f=>{let d=new Set(f);a.forEach(h=>{d.has(h)||(i?.unobserve(h),h.removeEventListener("transitionend",o),a.delete(h))}),f.forEach(h=>{a.has(h)||(i?.observe(h),h.addEventListener("transitionend",o),a.add(h))})},s=()=>{if(n=!1,u(),!r()){c([]),e.style.removeProperty("--fcaw-mobile-sticky-offset");return}let f=Number.parseFloat(getComputedStyle(e).getPropertyValue("--fcaw-publisher-sticky-offset"));if(Number.isFinite(f)&&f>=0){c([]),e.style.setProperty("--fcaw-mobile-sticky-offset",`${f}px`);return}let d=Array.from(document.querySelectorAll(LS)).filter(v=>{if(v.contains(e))return!1;let b=getComputedStyle(v).position;return b==="fixed"||b==="sticky"});c(d);let h=d.reduce((v,b)=>{let A=b.getBoundingClientRect();return A.top>2||A.bottomf.removeEventListener("transitionend",o)),a.clear(),l.forEach(f=>f.disconnect()),l.clear()}}function ZS(e){if(e.dataset.fcawEnhanced==="true")return;let t=Tb(e,"script[data-fcaw-config]");if(!t)return;let n={...H0(Nu(t),{brands:t.brands,shortenedHeadlines:t.shortenedHeadlines}),compactEmbed:t.compactEmbed,editorMode:!1,warmInventory:t.warmInventory},a=Tb(e,"script[data-fcaw-preload]"),l=jS(a),i=e.querySelector("[data-fcaw-fallback]");if(!i)return;KS(e),GS(e),n.stickyMobileFilters!==!1&&IS(e),Eb(i);let r=e.shadowRoot||e.attachShadow({mode:"open"}),o=e.querySelector(":scope > style[data-fcaw-host-protection]");if(o&&r.appendChild(o),!r.querySelector("style[data-fcaw-shadow-protection]")){let c=document.createElement("style");c.setAttribute("data-fcaw-shadow-protection",""),c.textContent=HS,r.appendChild(c)}i.querySelectorAll(":scope > style").forEach(c=>{r.appendChild(c)});let u=document.createElement("div");for(u.setAttribute("data-fcaw-mount","");i.firstChild;)u.appendChild(i.firstChild);i.remove(),r.appendChild(u),e.dataset.fcawEnhanced="true",bb(),e.dataset.fcawAnalyticsReady="true",Cb(r),QS(r),(0,xb.createRoot)(u).render((0,Uf.jsx)(qS,{host:e,initialData:l,initialProps:n})),window.setTimeout(()=>Eb(r),0)}function zf(){document.querySelectorAll(DS).forEach(ZS)}document.readyState==="loading"?document.addEventListener("DOMContentLoaded",zf,{once:!0}):zf();new MutationObserver(zf).observe(document.documentElement,{childList:!0,subtree:!0});})();/*! Bundled license information:react/cjs/react.production.js: (** * @license React * react.production.js * * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. *)scheduler/cjs/scheduler.production.js: (** * @license React * scheduler.production.js * * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. *)react-dom/cjs/react-dom.production.js: (** * @license React * react-dom.production.js * * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. *)react-dom/cjs/react-dom-client.production.js: (** * @license React * react-dom-client.production.js * * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. *)react/cjs/react-jsx-runtime.production.js: (** * @license React * react-jsx-runtime.production.js * * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. *)*/