}
return max;
}, '')
: null;
// Use cached if old array is empty/has no timestamps, or cached is newer
// Parse dates for comparison to handle format differences (+00:00 vs .000Z)
const cachedDate = new Date(cachedData.cached_at);
const maxDate = maxUpdatedAt ? new Date(maxUpdatedAt) : null;
const useCached = !maxUpdatedAt || (cachedDate && !isNaN(cachedDate) && (!maxDate || cachedDate > maxDate));
if (useCached) {
if (Array.isArray(cachedData.plans)) {
window._RestockRocketConfig.sellingPlans = cachedData.plans;
// Only use disabled_plan_ids when using cached plans
window._RestockRocketConfig.disabledSellingPlanIds = cachedData.disabled_plan_ids || [];
console.debug('[RR] Using selling plans from cachedSellingPlans (cached_at: ' + cachedData.cached_at + ')');
}
} else {
// When using old format (stale cache), don't trust disabt) : null;
const useCached = !maxUpdatedAt || (cachedDate && !isNaN(cachedDate) && (!maxDate || cachedDate > maxDate));
if (useCached) {
if (Array.isArray(cachedData.plans)) {
window._RestockRocketConfig.sellingPlans = cachedData.plans;
// Only use disabled_plan_ids when using cached plans
window._RestockRocketConfig.disabledSellingPlanIds = cachedData.disabled_plan_ids || [];
console.debug('[RR] Using selling plans from cachedSellingPlans (cached_at: ' + cachedData.cached_at + ')');
}
} else {
// When using old format (stale cache), don't trust disabled_plan_ids
window._RestockRocketConfig.disabledSellingPlanIds = [];
console.debug('[RR] Using selling plans from old format (max updated_at: ' + maxUpdatedAt + ')');
}
}
})();window._RestockRocketConfig.integrations = [{"id":"15c94526-b6b8-4de1-9bc1-23b1ca52ddb0","shop_id":38436,"enabled":true,"page_types":["product","coll"preorder_progress_bar_border_radius":4,"preorder_progress_bar_show_percentage":false}];(function() {
const cachedData = {"plans":[{"shopify_selling_plan_group_id":98590196095,"shopify_selling_plan_id":713071886719,"enabled":true,"variant_ids":[55569712382335,55569712415103,55569712480639,55570017616255,55570017550719,55569712447871,55570017583487],"product_variants_source":"custom","name":"Preorder","preorder_button_text":"Preorder","preorder_button_description":"Note: This is a preorder. Items will ship based on the estimated delivery date.","preorder_button_description_background_color":"#ebebeb","preorder_button_description_text_color":"#000000","preorder_button_description_border_radius":10,"preorder_button_description_show_quantity_limit":false,"preorder_button_description_quantity_limit_suffix":" units available for preorder","preorder_button_description_shipping_text_prefix":"Shipping: ","delivery_exact_time":null,"delivery_after_n_intervals":null,"delivery_at":"2025-07-26T09:20:18.169Z","delive>e Seeker X20 is a premium 20\" hardtail bike built for young riders aged 6–8 who are ready to push their trail riding further. Equipped with 100mm RST F1RST air suspension forks and a lightweight, trail-optimized frame that is dropper post ready. The Seeker X20 offers outstanding control, comfort, and confidence on rough terrain. Sealed bearing wheels with bolt-thru axles deliver strength and smooth, consistent rolling, while wide Schwalbe Smart Sam 2.35\" tires ensure superior grip across mixed surfaces. The refined chain-driven drivetrain features a new 110mm chainset and a Shimano CUES 9 Speed drivetrain for improved pedal efficiency. Making the Seeker X20 the perfect choice for ambitious young trail riders.\u003c\/p\u003e"};
window._RestockRocketConfig.variantsInventoryPolicy = {56393239101823 : "deny",};
window._RestockRocketConfig.variantsInventoryQuantity = {56393239101823 : parseInt("0"),};
window._RestockRocketConfig.variantsPreorderCount = {56393239101823 : parseInt(""),};
window._
led_plan_ids
window._RestockRocketConfig.disabledSellingPlanIds = [];
console.debug('[RR] Using selling plans from old format (max updated_at: ' + maxUpdatedAt + ')');
}
}
})();window._RestockRocketConfig.integrations = [{"id":"15c94526-b6b8-4de1-9bc1-23b1ca52ddb0","shop_id":38436,"enabled":true,"page_types":["product","collection","index","search","page","cart","list-collections","article","blog"],"configuration":{"toastDuration":10000,"toastPosition":"bottom-right","enableXHRHijack":true,"enableFetchHijack":true,"quantityLimitDisabled":false},"type":"hijack","css_config":null,"js_config":null,"created_at":"2025-07-26T09:16:04.076Z","updated_at":"2025-07-26T09:16:04.076Z"}];window._RestockRocketConfig.obfuscateInventoryQuantity = false;window._RestockRocketConfig.product = {"id":15398336037247,"title":"Early Rider Seeker X24 Brushed Aluminium","handle":"early-rider-seeker-x24-brushed-aluminium","description":"\u003cp\u003eThe Seeker X24 is a trail-ready 24\" hardtail buiection","index","search","page","cart","list-collections","article","blog"],"configuration":{"toastDuration":10000,"toastPosition":"bottom-right","enableXHRHijack":true,"enableFetchHijack":true,"quantityLimitDisabled":false},"type":"hijack","css_config":null,"js_config":null,"created_at":"2025-07-26T09:16:04.076Z","updated_at":"2025-07-26T09:16:04.076Z"}];window._RestockRocketConfig.obfuscateInventoryQuantity = false;window._RestockRocketConfig.product = {"id":15398335938943,"title":"Early Rider Seeker X20 Electric Purple","handle":"early-rider-seeker-x20-electric-purple","description":"\u003cp\u003eThe Seeker X20 is a premium 20\" hardtail bike built for young riders aged 6–8 who are ready to push their trail riding further. Equipped with 100mm RST F1RST air suspension forks and a lightweight, trail-optimized frame that is dropper post ready. The Seeker X20 offers outstanding control, comfort, and confidence on rough terrain. Sealed bearing wheels with bolt-thru axles deliver strength and smooth, consistenry_type":"asap","quantity_limit_text":"{{ quantity }} units available for preorder","preorder_button_description_show_shipping":true,"preorder_button_description_icons_enabled":true,"preorder_shipping_text":"Shipping: {{ date }}","shipping_applies_to_all_products":true,"shipping_text":"Estimated to ship within 2 months","payment_type":"full","billing_checkout_charge_type":"percentage","billing_checkout_charge_amount":null,"billing_checkout_charge_percentage":"100.0","pricing_type":"no_discount","pricing_amount":null,"pricing_percentage":null,"discount_text":"Save {{ discount }}","billing_title":"Full payment","billing_description":null,"enable_billing_widget":false,"inventory_provider":"stoq","preorder_badge_enabled":false,"preorder_badge_text":"Preorder","preorder_badge_text_color":"#FFFFFF","preorder_badge_background_color":"#000000","preorder_discounted_price_enabled":null,"payment_line_item_property_enabled":false,"shipping_line_item_property_enabled":true,"custom_line_item_property_text":null,"preorder_b
t rolling, while wide Schwalbe Smart Sam 2.35\" tires ensure superior grip across mixed surfaces. The refined chain-driven drivetrain features a new 110mm chainset and a Shimano CUES 9 Speed drivetrain for improved pedal efficiency. Making the Seeker X20 the perfect choice for ambitious young trail riders.\u003c\/p\u003e","published_at":"2025-11-13T16:40:41+00:00","created_at":"2025-11-13T16:40:41+00:00","vendor":"Early Rider","type":"Bike","tags":["Early Rider","spo-cs-disabled","spo-default","spo-disabled","spo-notify-me-disabled"],"price":129900,"price_min":129900,"price_max":129900,"available":false,"price_varies":false,"compare_at_price":null,"compare_at_price_min":0,"compare_at_price_max":0,"compare_at_price_varies":false,"variants":[{"id":56393239298431,"title":"Default Title","option1":"Default Title","option2":null,"option3":null,"sku":"SX20-EP-1-IC","requires_shipping":true,"taxable":true,"featured_image":null,"available":false,"name":"Early Rider Seeker X20 Electric Purple","public_title":null,"optutton_text_color":"#ffffff","preorder_button_background_color":"#565557","preorder_button_colors_enabled":true,"markets_enabled":false,"market_id":13779632354,"shopify_market_ids":[],"use_shopify_selling_plan":true,"use_simplified_shipping_text":false,"translations":{},"payment_options":[{"billing_type":"no_remaining_balance","billing_checkout_charge_type":"percentage","billing_checkout_charge_amount":null,"billing_checkout_charge_percentage":"100.0","billing_at":"2025-07-26T09:20:38.472Z","billing_after_n_intervals":7,"billing_after_interval_type":"day","pricing_type":"no_discount","pricing_amount":null,"pricing_percentage":null,"billing_title":"Full payment","billing_description":null,"discount_text":"Save {{ discount }}","shopify_selling_plan_id":713071886719,"is_default":true,"type":"full","translations":{}}],"require_preorder_acknowledgement":false,"preorder_acknowledgement_text":"I acknowledge and agree to the preorder terms and conditions for this product.","disable_button_until_acknowledged":false,"pr>
{{/if}}
estock-rocket-shopify-464/assets/restockrocket-collection.js'
window._RestockRocketConfig.scriptHost = window._RestockRocketConfig.scriptUrlProduct.substring(0, window._RestockRocketConfig.scriptUrlProduct.lastIndexOf('/') + 1)
window._RestockRocketConfig.host = 'https://app.restockrocket.io'
const SETTINGS_CACHE_DURATION = 15 * 60 * 1000; // 15 minutes in milliseconds
const LIQUID_CACHE_MAX_AGE = 2 * 60 * 60; // 2 hours in seconds
// Calculate Liquid cache freshness once at initialization
const liquidRenderedAt = window._RestockRocketConfig.liquidRenderedAt;
// Validate timestamp and calculate cache age
if (!liquidRenderedAt || typeof liquidRenderedAt !== 'number' || isNaN(liquidRenderedAt)) {
console.debug('STOQ - Invalid or missing liquidRenderedAt timestamp, assuming fresh');
window._RestockRocketConfig.isLiquidCacheFresh = true;
} else {
const now = Math.floor(Date.now() / 1000); // Current time in seconds
const liquidCacheAge = now - liquidRenderedAt; // Age in seconlse,"price_varies":false,"compare_at_price":null,"compare_at_price_min":0,"compare_at_price_max":0,"compare_at_price_varies":false,"variants":[{"id":56393239396735,"title":"Default Title","option1":"Default Title","option2":null,"option3":null,"sku":"SX24-BR-1-IC","requires_shipping":true,"taxable":true,"featured_image":null,"available":false,"name":"Early Rider Seeker X24 Brushed Aluminium","public_title":null,"options":["Default Title"],"price":149900,"weight":0,"compare_at_price":null,"inventory_management":"shopify","barcode":null,"requires_selling_plan":false,"selling_plan_allocations":[]}],"images":["\/\/projektride.co.uk\/cdn\/shop\/files\/SeekerX24_1753974603.jpg?v=1763052048"],"featured_image":"\/\/projektride.co.uk\/cdn\/shop\/files\/SeekerX24_1753974603.jpg?v=1763052048","options":["Title"],"media":[{"alt":null,"id":68666766623103,"position":1,"preview_image":{"aspect_ratio":1.5,"height":1667,"width":2500,"src":"\/\/projektride.co.uk\/cdn\/shop\/files\/SeekerX24_1753974603.jpg?v=1763052048"},"aspecBlackions":["Default Title"],"price":129900,"weight":0,"compare_at_price":null,"inventory_management":"shopify","barcode":null,"requires_selling_plan":false,"selling_plan_allocations":[]}],"images":["\/\/projektride.co.uk\/cdn\/shop\/files\/SX20_Purple.jpg?v=1763052046"],"featured_image":"\/\/projektride.co.uk\/cdn\/shop\/files\/SX20_Purple.jpg?v=1763052046","options":["Title"],"media":[{"alt":null,"id":68666766360959,"position":1,"preview_image":{"aspect_ratio":1.112,"height":2339,"width":2600,"src":"\/\/projektride.co.uk\/cdn\/shop\/files\/SX20_Purple.jpg?v=1763052046"},"aspect_ratio":1.112,"height":2339,"media_type":"image","src":"\/\/projektride.co.uk\/cdn\/shop\/files\/SX20_Purple.jpg?v=1763052046","width":2600}],"requires_selling_plan":false,"selling_plan_groups":[],"content":"\u003cp\u003eThe Seeker X20 is a premium 20\" hardtail bike built for young riders aged 6–8 who are ready to push their trail riding further. Equipped with 100mm RST F1RST air suspension forks and a lightweight, trail-optimized frameeorder_min_quantity":null,"preorder_max_quantity":null,"countdown_timer_enabled":false,"countdown_timer_style":"text","countdown_timer_text_color":"#000000","countdown_timer_background_color":"#f5f5f5","countdown_timer_border_radius":8,"countdown_timer_format":"DHMS","countdown_timer_use_schedule_dates":true,"countdown_timer_custom_start_date":null,"countdown_timer_custom_end_date":null,"countdown_timer_starts_text":null,"countdown_timer_ends_text":null,"schedule_offer":false,"schedule_start_date":null,"schedule_end_date":null,"updated_at":"2025-08-19T10:05:43.042Z","allow_mixed_cart":true,"mixed_cart_error_message":"Preorders must be purchased separately from regular items. Please complete your current order first, or clear your cart to continue.","b2b_enabled":true,"preorder_progress_bar_enabled":false,"preorder_progress_bar_text":"{{ sold }} of {{ total }} claimed","preorder_progress_bar_fill_color":"#000000","preorder_progress_bar_background_color":"#e5e5e5","preorder_progress_bar_text_color":"#FFFFFF","p