br data-v-05762449=\"\"\u003eHerrmans H-Black MR5-E, 140 Lumen, 40 Lux, LED, headlight\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr data-v-05762449=\"\"\u003e\n\u003cth data-v-05762449=\"\" rowspan=\"1\" scope=\"row\"\u003eKickstand\u003c\/th\u003e\n\u003ctd data-v-05762449=\"\"\u003ePletscher Comp 18\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr data-v-05762449=\"\"\u003e\n\u003cth data-v-05762449=\"\" rowspan=\"1\" scope=\"row\"\u003eCargo rack\u003c\/th\u003e\n\u003ctd data-v-05762449=\"\"\u003e\u003ca data-v-05762449=\"\" href=\"https:\/\/www.trekbikes.com\/gb\/en_GB\/p\/W5284844\"\u003eMIK-compatible alloy rear rack, maximum load 25 kg\u003c\/a\u003e\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr data-v-05762449=\"\"\u003e\n\u003cth data-v-05762449=\"\" rowspan=\"2\" scope=\"row\"\u003e*Mudguard\u003c\/th\u003e\n\u003ctd data-v-05762449=\"\"\u003e\n\u003cspan data-v-05762449=\"\"\u003eSize:\u003c\/span\u003e\u003cspan\u003e \u003c\/span\u003eS, M, L\u003cbr data-v-05762449=\"\"\u003e\u003ca data-v-05762449=\"003e\u003cspan\u003e \u003c\/span\u003eM, L, XL, XXL\u003cbr data-v-05762449=\"\"\u003e\u003ca data-v-05762449=\"\" href=\"https:\/\/www.trekbikes.com\/gb\/en_GB\/p\/W5251035\"\u003eSKS plastic, front\u003c\/a\u003e\n\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003c\/tbody\u003e\n\u003c\/table\u003e\n\u003c\/div\u003e\n\u003c\/div\u003e\n\u003c\/div\u003e\n\u003cdiv data-v-5bd42f3c=\"\" data-v-05762449=\"\" id=\"pdl-collapse-item-qkr7sk\" name=\"303\" class=\"pdl-collapse-item is-active\"\u003e\n\u003cdiv data-v-5bd42f3c=\"\" role=\"tab\" aria-controls=\"pdl-collapse-content-qkr7sk\" aria-describedby=\"pdl-collapse-content-qkr7sk\" class=\"\" aria-expanded=\"true\" qaid=\"\"\u003e\n\u003cdiv data-v-5bd42f3c=\"\" class=\"flex items-center flex-grow\"\u003eWeight\u003c\/div\u003e\n\u003cbutton data-v-5bd42f3c=\"\" id=\"pdl-collapse-head-qkr7sk\" type=\"button\" class=\"pdl-collapse-item__header is-active flex-row-reverse items-center\" tabindex=\"0\"\u003e\u003csvg data-v-1e7396ba=\"\" data-v-5bd42f3c=\"\" xmlns=\"ht
Please get in touch with a member of the team either by phone (div\u003e\n\u003cbutton data-v-5bd42f3c=\"\" id=\"pdl-collapse-head-tqz86\" type=\"button\" class=\"pdl-collapse-item__header is-active flex-row-reverse items-center\" tabindex=\"0\"\u003e\u003csvg data-v-1e7396ba=\"\" data-v-5bd42f3c=\"\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewbox=\"0 0 24 24\" width=\"24px\" height=\"24px\" fill=\"currentcolor\" aria-hidden=\"true\" role=\"presentation\" class=\"pdl-collapse-item__icon pdl-icon pdl-icon--size-24 is-active\" qaid=\"\"\u003e\u003cpath d=\"M0 0h24v24H0z\" fill=\"none\"\u003e\u003c\/path\u003e\u003cpath d=\"M12 8l-6 6 1.41 1.41L12 10.83l4.59 4.58L18 14z\"\u003e\u003c\/path\u003e\u003c\/svg\u003e\u003c\/button\u003e\n\u003c\/div\u003e\n\u003cdiv data-v-5bd42f3c=\"\" id=\"pdl-collapse-content-tqz86\" role=\"tabpanel\" aria-labelledby=\"pdl-collapse-head-tqz86\" class=\"pdl-collapse-item__wrap\" data-old-padding-top=\"\" data-old-padding-bottom=\"\" data-old-overflow=\"\"\u003e\n\u003cdiv data-v-5bd42f3c=\"\" class=\"pdl-collapse-item__content\"\u003e\n\u003003ctd data-v-05762449=\"\"\u003eL - 15.00 kg \/ 33.07 lbs\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr data-v-05762449=\"\"\u003e\n\u003cth data-v-05762449=\"\" scope=\"row\"\u003eWeight limit\u003c\/th\u003e\n\u003ctd data-v-05762449=\"\"\u003eThis bike has a maximum total weight limit (combined weight of bicycle, rider and cargo) of 136 kg (300 lb).\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003c\/tbody\u003e\n\u003c\/table\u003e\n\u003c\/div\u003e\n\u003c\/div\u003e\n\u003c\/div\u003e\n\u003c\/div\u003e\n\u003cdiv class=\"mb-1\"\u003e\n\u003cp\u003eWe reserve the right to make changes to the product information contained on this site at any time without notice, including with respect to equipment, specifications, models, colours, materials and pricing. Due to supply chain issues, compatible parts may be substituted at any time without notice. The prices shown are the manufacturer's suggested retail prices.\u003c\/p\u003e\n\u003c\/div\u003e\n\u003cdiv class=\"mb-1\"\u003e\n\u003cp\u003eBike and frame weights are
01313745324ain issues, compatible parts may be substituted at any time without notice. The prices shown are the manufacturer's suggested retail prices.\u003c\/p\u003e\n\u003c\/div\u003e\n\u003cdiv class=\"mb-1\"\u003e\n\u003cp\u003eBike and frame weights are based on pre-production painted frames at time of publication. Weights may vary in final production.\u003c\/p\u003e\n\u003c\/div\u003e\n\u003c\/section\u003e\n\u003c\/div\u003e\n\u003c\/div\u003e\n\u003c\/div\u003e\n\u003c\/div\u003e\n\u003c\/div\u003e\n\u003c\/section\u003e\n\u003c\/main\u003e\n\u003cdiv\u003e\u003cfooter class=\"yCmsContentSlot footer\"\u003e\n\u003cdiv class=\"grid-container\"\u003e\n\u003cdiv id=\"lightbox-inline-form-641e4d89-c50f-4333-a93a-8155282d70b0\"\u003e\u003c\/div\u003e\n\u003c\/div\u003e\n\u003c\/footer\u003e\u003c\/div\u003e\n\u003c!----\u003e","published_at":"2024-10-10T15:19:04+01:00","created_at":"2024-08-17T20:44:00+01:00","vendor":"Trek","type":"bike","tags":["Verve"],"price":180000,"price_min":180000,"price_max":180000,"availabl638583010 : parseInt(""),46041328058594 : parseInt(""),46041328091362 : parseInt(""),};
window._RestockRocketConfig.variantsPreorderCountForMarket = {46041328025826 : null,45824638583010 : null,46041328058594 : null,46041328091362 : null,};
window._RestockRocketConfig.variantsPreorderMaxCount = {46041328025826 : parseInt(""),45824638583010 : parseInt(""),46041328058594 : parseInt(""),46041328091362 : parseInt(""),};
window._RestockRocketConfig.variantsPreorderMaxCountForMarket = {46041328025826 : null,45824638583010 : null,46041328058594 : null,46041328091362 : null,};
window._RestockRocketConfig.variantsShippingText = {46041328025826 : "",45824638583010 : "",46041328058594 : "",46041328091362 : "",};
window._RestockRocketConfig.variantsShippingTextForMarket = {46041328025826 : null,45824638583010 : null,46041328058594 : null,46041328091362 : null,};
window._RestockRocketConfig.selected_variant_id = 45824638583010;
window._RestockRocketConfig.selected_variant_available = window._Re
e":true,"price_varies":false,"compare_at_price":null,"compare_at_price_min":0,"compare_at_price_max":0,"compare_at_price_varies":false,"variants":[{"id":45824504889570,"title":"Gray \/ Small","option1":"Gray","option2":"Small","option3":null,"sku":"5291652","requires_shipping":true,"taxable":true,"featured_image":null,"available":false,"name":"trek Verve+ 1 Lowstep LT - Gray \/ Small","public_title":"Gray \/ Small","options":["Gray","Small"],"price":180000,"weight":0,"compare_at_price":null,"inventory_management":"shopify","barcode":"","requires_selling_plan":false,"selling_plan_allocations":[]},{"id":45824504922338,"title":"Gray \/ Medium","option1":"Gray","option2":"Medium","option3":null,"sku":"5291653","requires_shipping":true,"taxable":true,"featured_image":null,"available":true,"name":"trek Verve+ 1 Lowstep LT - Gray \/ Medium","public_title":"Gray \/ Medium","options":["Gray","Medium"],"price":180000,"weight":0,"compare_at_price":null,"inventory_management":"shopify","barcode":"","requires_selling_planstockRocketConfig.product.variants.find(function(variant) { return variant.id == window._RestockRocketConfig.selected_variant_id }).available;window._RestockRocketConfig.scriptUrlProduct = 'https://cdn.shopify.com/extensions/019af0d1-c518-7a22-bdbf-9ceff49063ad/restockrocket-1-402/assets/restockrocket-product.js'
window._RestockRocketConfig.scriptUrlCollection = 'https://cdn.shopify.com/extensions/019af0d1-c518-7a22-bdbf-9ceff49063ad/restockrocket-1-402/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
function checkSettingsExpiry(settings) {
try {
if (!settings || !settings.updated_at) {
console.debug('STOQ - Invalid settings data structure');
return null;
}
if (!sett<) or email (ings.cache) {
console.debug('STOQ - settings caching disabled');
return null;
}
// Check if translations are enabled but missing from cache
// This handles the backfill period where DB has translations but metafield doesn't
if (settings.multi_language_enabled) {
if (!settings.translations) {
// Translations enabled but no translation data in metafield
// Metafield hasn't been backfilled yet - force refresh
console.debug('STOQ - multi-language enabled but no translation data in cache, fetching fresh');
return null;
}
// Translations object exists in metafield - cache is valid
// If current locale isn't translated, applyTranslations will gracefully use default locale from base fields
if (window._RestockRocketConfig.normalizedLocale &&
!Object.prototype.hasOwnProperty.call(settings.translations, window._RestockRocketConfig.normalizedLocale)) {
console.debug('STOQ - local":false,"selling_plan_allocations":[]},{"id":45824504955106,"title":"Gray \/ Large","option1":"Gray","option2":"Large","option3":null,"sku":"5291654","requires_shipping":true,"taxable":true,"featured_image":null,"available":true,"name":"trek Verve+ 1 Lowstep LT - Gray \/ Large","public_title":"Gray \/ Large","options":["Gray","Large"],"price":180000,"weight":0,"compare_at_price":null,"inventory_management":"shopify","barcode":"","requires_selling_plan":false,"selling_plan_allocations":[]},{"id":45824504987874,"title":"Yellow \/ Small","option1":"Yellow","option2":"Small","option3":null,"sku":"5291656","requires_shipping":true,"taxable":true,"featured_image":null,"available":false,"name":"trek Verve+ 1 Lowstep LT - Yellow \/ Small","public_title":"Yellow \/ Small","options":["Yellow","Small"],"price":180000,"weight":0,"compare_at_price":null,"inventory_management":"shopify","barcode":"","requires_selling_plan":false,"selling_plan_allocations":[]},{"id":45824505020642,"title":"Yellow \/ Medium","option1":"Yelloa class="product__media product__media--featured"
href="/products/hire-ortlieb-40l-pannier-bags"
title="Hire Ortlieb 40L Pannier Bags"
aria-label="Hire Ortlieb 40L Pannier Bags"
style="background-image: url(//projektride.co.uk/cdn/shop/files/resize_width_1000_600x.jpg?v=1741085512)">
e not explicitly translated, will use default language from cache');
}
// Don't return null - continue using cache even for untranslated locales
}
const updatedAt = new Date(settings.updated_at);
if (isNaN(updatedAt.getTime())) {
console.debug('STOQ - Invalid updated_at date format in settings');
return null;
}
const age = Date.now() - updatedAt.getTime();
if (age w","option2":"Medium","option3":null,"sku":"5291657","requires_shipping":true,"taxable":true,"featured_image":null,"available":true,"name":"trek Verve+ 1 Lowstep LT - Yellow \/ Medium","public_title":"Yellow \/ Medium","options":["Yellow","Medium"],"price":180000,"weight":0,"compare_at_price":null,"inventory_management":"shopify","barcode":"","requires_selling_plan":false,"selling_plan_allocations":[]},{"id":45824505053410,"title":"Yellow \/ Large","option1":"Yellow","option2":"Large","option3":null,"sku":"5291658","requires_shipping":true,"taxable":true,"featured_image":null,"available":true,"name":"trek Verve+ 1 Lowstep LT - Yellow \/ Large","public_title":"Yellow \/ Large","options":["Yellow","Large"],"price":180000,"weight":0,"compare_at_price":null,"inventory_management":"shopify","barcode":"","requires_selling_plan":false,"selling_plan_allocations":[]},{"id":45824505086178,"title":"Red \/ Small","option1":"Red","option2":"Small","option3":null,"sku":"5304119","requires_shipping":true,"taxable":true,"fea<<[email protected]tured_image":null,"available":false,"name":"trek Verve+ 1 Lowstep LT - Red \/ Small","public_title":"Red \/ Small","options":["Red","Small"],"price":180000,"weight":0,"compare_at_price":null,"inventory_management":"shopify","barcode":"","requires_selling_plan":false,"selling_plan_allocations":[]},{"id":45824505118946,"title":"Red \/ Medium","option1":"Red","option2":"Medium","option3":null,"sku":"5304120","requires_shipping":true,"taxable":true,"featured_image":null,"available":true,"name":"trek Verve+ 1 Lowstep LT - Red \/ Medium","public_title":"Red \/ Medium","options":["Red","Medium"],"price":180000,"weight":0,"compare_at_price":null,"inventory_management":"shopify","barcode":"","requires_selling_plan":false,"selling_plan_allocations":[]},{"id":45824505151714,"title":"Red \/ Large","option1":"Red","option2":"Large","option3":null,"sku":"5304121","requires_shipping":true,"taxable":true,"featured_image":null,"available":true,"name":"trek Verve+ 1 Lowstep LT - Red \/ Large","public_title":"Red \/ Large","opt SETTINGS_CACHE_DURATION) {
console.debug('STOQ - settings changed recently, skipping cache');
return null;
}
return settings;
} catch (error) {
console.debug('STOQ - Error checking settings cache:', error);
return null;
}
}
function createRestockRocketContainer() {
const restockRocketContainer = document.createElement('div');
restockRocketContainer.id = 'restock-rocket';
document.body.appendChild(restockRocketContainer);
}
function createRestockRocketScript(scriptUrl) {
const restockRocketScriptElement = document.createElement('script');
restockRocketScriptElement.setAttribute('defer', 'defer');
restockRocketScriptElement.src = scriptUrl;
document.body.appendChild(restockRocketScriptElement);
}
createRestockRocketContainer()
console.debug('STOQ - extension activated')
function applyTranslations(settings) {
try {
// Skip translation logic entirely if multi-language is not enabled
if (!settings || span class="visually-hidden">Hire Ortlieb 40L Pannier Bagsions":["Red","Large"],"price":180000,"weight":0,"compare_at_price":null,"inventory_management":"shopify","barcode":"","requires_selling_plan":false,"selling_plan_allocations":[]}],"images":["\/\/projektride.co.uk\/cdn\/shop\/files\/VervePlus1LowstepLTUS-24-40990-A-Primary.webp?v=1723923732","\/\/projektride.co.uk\/cdn\/shop\/files\/VervePlus1LowstepLTUS-24-40990-C-Primary.webp?v=1723923732","\/\/projektride.co.uk\/cdn\/shop\/files\/VervePlus1LowstepLTUS-24-40990-B-Primary.webp?v=1723923732","\/\/projektride.co.uk\/cdn\/shop\/files\/VervePlus1LowstepLTUS-24-40990-A-Accessory1.webp?v=1723923732","\/\/projektride.co.uk\/cdn\/shop\/files\/VervePlus1LowstepLTUS-24-40990-A-Alt1.webp?v=1723923731","\/\/projektride.co.uk\/cdn\/shop\/files\/VervePlus1LowstepLTUS-24-40990-A-Alt2.webp?v=1723923732","\/\/projektride.co.uk\/cdn\/shop\/files\/VervePlus1LowstepLTUS-24-40990-A-Alt3.webp?v=1723923732","\/\/projektride.co.uk\/cdn\/shop\/files\/VervePlus1LowstepLTUS-24-40990-A-Alt7.webp?v=1723923732","\/\/projektride.co.uk\/cdn!settings.multi_language_enabled) {
return settings;
}
if (!settings.translations) {
console.debug('STOQ - No translations found, skipping translation');
return settings;
}
const normalizedLocale = window._RestockRocketConfig.normalizedLocale;
const translations = settings.translations;
if (!normalizedLocale) {
// No matching locale has translations; drop payload to save memory
console.debug('STOQ - No matching locale for translations. Available:', Object.keys(translations || {}));
delete settings.translations;
return settings;
}
console.debug(`STOQ - Applying translations for normalized locale: ${normalizedLocale} (original: ${window._RestockRocketConfig.locale})`);
const translatedFields = translations[normalizedLocale];
if (translatedFields && typeof translatedFields === 'object') {
Object.keys(translatedFields).forEach(function(key) {
const value = translatedFields[key
C-Primary.webp?v=1723923732"},"aspect_ratio":1.333,"height":1440,"media_type":"image","src":"\/\/projektride.co.uk\/cdn\/shop\/files\/VervePlus1LowstepLTUS-24-40990-C-Primary.webp?v=1723923732","width":1920},{"alt":null,"id":34472354611426,"position":3,"preview_image":{"aspect_ratio":1.333,"height":1440,"width":1920,"src":"\/\/projektride.co.uk\/cdn\/shop\/files\/VervePlus1LowstepLTUS-24-40990-B-Primary.webp?v=1723923732"},"aspect_ratio":1.333,"height":1440,"media_type":"image","src":"\/\/projektride.co.uk\/cdn\/shop\/files\/VervePlus1LowstepLTUS-24-40990-B-Primary.webp?v=1723923732","width":1920},{"alt":null,"id":34472354349282,"position":4,"preview_image":{"aspect_ratio":1.333,"height":1440,"width":1920,"src":"\/\/projektride.co.uk\/cdn\/shop\/files\/VervePlus1LowstepLTUS-24-40990-A-Accessory1.webp?v=1723923732"},"aspect_ratio":1.333,"height":1440,"media_type":"image","src":"\/\/projektride.co.uk\/cdn\/shop\/files\/VervePlus1LowstepLTUS-24-40990-A-Accessory1.webp?v=1723923732","width":1920},{"alt":null,"id"achedSettings ? checkSettingsExpiry(cachedSettings) : null;
if (validCachedSettings) {
console.debug('STOQ - using cached settings');
initializeScripts(validCachedSettings);
} else {
console.debug('STOQ - fetching fresh settings');
const headers = {
'X-Shopify-Shop-Domain': window._RestockRocketConfig.shop || window.Shopify.shop,
'ngrok-skip-browser-warning': 'skip'
};
if (window.Shopify?.theme?.role === 'main') {
headers['X-Shopify-Theme-Schema-Name'] = window.Shopify.theme.schema_name;
headers['X-Shopify-Theme-Schema-Version'] = window.Shopify.theme.schema_version;
headers['X-Shopify-Theme-Store-Id'] = window.Shopify.theme.theme_store_id;
}
fetch(
`${window._RestockRocketConfig.host}/api/v1/setting.json?translation_locale=${window._RestockRocketConfig.normalizedLocale}`,
{ headers }
)
.then(function(response) {
if (!response.ok) {
throw new Error('Network response was not ok');
}
return respons
dth":1920,"src":"\/\/projektride.co.uk\/cdn\/shop\/files\/VervePlus1LowstepLTUS-24-40990-B-Portrait.webp?v=1723923732"},"aspect_ratio":1.333,"height":1440,"media_type":"image","src":"\/\/projektride.co.uk\/cdn\/shop\/files\/VervePlus1LowstepLTUS-24-40990-B-Portrait.webp?v=1723923732","width":1920},{"alt":null,"id":34472354644194,"position":11,"preview_image":{"aspect_ratio":1.333,"height":1440,"width":1920,"src":"\/\/projektride.co.uk\/cdn\/shop\/files\/VervePlus1LowstepLTUS-24-40990-C-Portrait.webp?v=1723923732"},"aspect_ratio":1.333,"height":1440,"media_type":"image","src":"\/\/projektride.co.uk\/cdn\/shop\/files\/VervePlus1LowstepLTUS-24-40990-C-Portrait.webp?v=1723923732","width":1920}],"requires_selling_plan":false,"selling_plan_groups":[],"content":"\u003cp\u003e\u003cmeta charset=\"utf-8\"\u003e\u003cspan\u003eThe Verve+ 1 Lowstep LT is a lightweight electric city bike that will help you ride more and feel better doing it. Your daily cruises, commutes and workouts get just enough boost from the light-dcketConfig.scriptUrlProduct);
} else if(hijackIntegration) {
createRestockRocketScript(window._RestockRocketConfig.scriptUrlCollection);
} else {
console.debug(`STOQ - no scripts enabled for ${window._RestockRocketConfig.pageType}`);
}
// Check and update cart selling plans after scripts are loaded
if (settings.preorder_enabled) {
updateCartSellingPlans();
}
// Dispatch custom event when app is loaded
const appLoadedEvent = new CustomEvent('stoq:loaded', {
detail: {
pageType: window._RestockRocketConfig.pageType,
enabled: settings.enable_app,
settings: settings
}
});
console.debug('STOQ - dispatching app loaded event');
window.dispatchEvent(appLoadedEvent);
}
}
function updateCartSellingPlans() {
// Wait for the API to be available with retries
const maxRetries = 10;
const retryDelay = 500;
function attemptCartCheck(attempt = 1) {
if (window.