// Set the value of 'text_color' in a global object window.MuleWidget = window.MuleWidget || {}; const tempDiv = document.createElement('div'); window.MuleWidget.enableWarningModal = false; window.MuleWidget.customUI = { warningModal: `
Are you sure you don’t want to protect your order?
You will be liable for loss, theft and damage We takes no responsibility for lost, stolen or damaged items if you do not purchase shipping protection
` }; window.MuleWidget.customModal = ``; window.MuleWidget.widgetDescriptionText = `Protect your package from loss, damage and theft with fast resolution.`; window.MuleWidget.widgetWarningMessage = ``; window.MuleWidget.autoOptInOnCartUpdate = `false`; window.MuleWidget.widgetBootDelay = 0; // This option is because sometimes it takes time for xhr to make the request // And We have to make a delay to wait until update has been done on the cart window.MuleWidget.widgetXHRCartUpdateDelay = 200; window.MuleWidget.customSelectors = [ '.cart-notification__links', '.drawer__footer', '.cart__blocks', ].reduce((acc, value) => (value ? [...acc, value] : acc), []); window.MuleWidget.customSelectors.push(...[ '.cart-notification__links', '.drawer__footer', '.cart__blocks' ]) window.MuleWidget.checkoutButtonSelectors = [ { selector: 'button[name="checkout"][type="submit"]', clone: true, delay: 0 }, { selector: 'button[name="checkout"]', clone: true, delay: 0 }, { selector: '', clone: true, delay: 0 }, { selector: '', clone: true, delay: 0 }, { selector: '', clone: true, delay: 0 }, { selector: '', clone: true, delay: 0, } ].reduce((acc, value) => (value.selector ? [...acc, value] : acc), []); window.MuleWidget.cartSubtotalSelectors = [ 'p.totals__subtotal-value > span.money', '', '', ].reduce((acc, value) => (value ? [...acc, value] : acc), []); window.MuleWidget.enableWidgetB = false; window.MuleWidget.shouldKeepToggleState = false; window.MuleWidget.shouldKeepVariantInCart = false; window.MuleWidget.cartItemSelectors = []; window.MuleWidget.cartSelectors = []; window.MuleWidget.cartSelectors = ['cart-drawer-items', '.cart-items']; window.MuleWidget.cartItemSelectors = ['.upcart-product-item', '.cart-item']; window.MuleWidget.shouldKeepToggleState = true;