{"appVersion":"1.0.0","version":8638661313168,"accountId":218272114,"experiences":[],"segments":[{"id":751,"title":"Already known visitors","account_id":218272114,"rules":[{"id":792,"operation":"AND","rules":[{"id":1008,"type":"HAS_VISITED_PAGE","qualifier":"LIFETIME","url":{"subject":"URL","predicate":"CONTAINS","paths":["/thank_you","/orders","/account","utm_medium=email","utm_source=email","utm_medium=sms","utm_source=sms","utm_medium=text","utm_source=text"]},"occurrencesMode":"MORE_THAN","occurrencesCount":0}],"type":"RULESET"}]},{"id":752,"title":"Anonymous Visitors","account_id":218272114,"rules":[{"id":818,"operation":"AND","rules":[{"id":1042,"type":"SEGMENT_DOES_NOT_MATCH","segmentId":751},{"id":1043,"type":"DATA_CAPTURED","dataType":"EMAIL_ADDRESS","capturedByExperience":"ANY","occurrencesMode":"ZERO","occurrencesCount":0,"qualifier":"LIFETIME"},{"id":1044,"type":"KLAVIYO_IDENTITY_KNOWN","predicate":false}],"type":"RULESET"}]},{"id":753,"title":"All visitors","account_id":218272114,"rules":[{"id":794,"operation":"AND","rules":[{"id":1011,"type":"CURRENTLY_VIEWING_PAGE","subject":"URL","predicate":"CONTAINS","paths":["/"]}],"type":"RULESET"}]},{"id":754,"title":"Has Placed an Order","account_id":218272114,"rules":[{"id":795,"operation":"AND","rules":[{"id":1012,"type":"HAS_VISITED_PAGE","qualifier":"LIFETIME","url":{"subject":"URL","predicate":"CONTAINS","paths":["/orders/","/thank_you"]},"occurrencesMode":"MORE_THAN","occurrencesCount":0}],"type":"RULESET"}]},{"id":4484,"title":"Slideout Cart Visible","account_id":218272114,"rules":[{"id":4716,"operation":"AND","rules":[{"id":6351,"type":"CUSTOM_JS_CODE","code":"let slideOutIsVisible = false;\n\nif (window.mailchimpFormsCustom && window.mailchimpFormsCustom.isRendered) {\n    if (window.mailchimpFormsCustom.isRendered('.menu-drawer, .drawer.active') || window.mailchimpFormsCustom.isRendered('.mcforms_container')) {\n        slideOutIsVisible = true;\n    }\n}\n\nreturn slideOutIsVisible;","label":"Returns true if slide out cart is visible"}],"type":"RULESET"}]}],"analyticsEndpointURL":"https://eventcollector.mcf-prod.a.intuit.com/collect","geoLocationServiceURL":"https://geolocation.mcf-prod.a.intuit.com/geolocation","integrationConfig":{"klaviyo":{"autoSendDiscountCode":true,"autoSendDiscountCodeName":"Amped - Discount Code"},"attentive":{},"blackcrowai":{}},"enabledIntegrations":["KLAVIYO","ATTENTIVE","BLACKCROWAI"],"onLoadCodeExtensions":[{"id":11,"title":"Is client element visible?","description":"Will return true if client's element is visible","code":"\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.isRendered = void 0;\nvar isPartiallyVisible = function (el) {\n    var box = el.getBoundingClientRect();\n    var screenWidth = window.innerWidth || document.documentElement.clientWidth;\n    var screenHeight = window.innerHeight || document.documentElement.clientHeight;\n    var isOutsideViewport = (\n    // left\n    box.right <= 0\n        ||\n            // right\n            box.left >= screenWidth\n        ||\n            // Bottom\n            box.top >= screenHeight\n        ||\n            // top\n            box.bottom <= 0);\n    return !isOutsideViewport && box.width !== 0 && box.height != 0;\n};\nvar isRendered = function (query) {\n    var elements = window.document.querySelectorAll(query);\n    for (var i = 0; i < elements.length; i++) {\n        if (isPartiallyVisible(elements[i])) {\n            return true;\n        }\n    }\n    return false;\n};\nexports.isRendered = isRendered;\nresolve(); // using resolve(); tells your ad to continue. Othwerwise the account will not load\n"},{"id":22,"title":"Hide own element when client element is visible","description":"","code":"\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.hideIfPresent = void 0;\nvar hideIfPresent = function (ourSelector, theirSelector) {\n    var get_mcforms_element = function (selector) {\n        try {\n            var mcformsWrappers = window.document.querySelectorAll('.mcforms-wrapper');\n            for (var k = 0; k < mcformsWrappers.length; k++) {\n                var steps = mcformsWrappers[k].shadowRoot.querySelectorAll('.step.visible');\n                for (var j = 0; j < steps.length; j++) {\n                    if (steps && steps[j]) {\n                        if (steps[j].querySelectorAll(selector).length > 0) {\n                            var el = steps[j].querySelector(selector);\n                            return el;\n                        }\n                    }\n                }\n            }\n        }\n        catch (err) {\n            console.log('MCForms: ' + err.message);\n        }\n    };\n    var isPartiallyVisible = function (el) {\n        var box = el.getBoundingClientRect();\n        var screenWidth = window.innerWidth || document.documentElement.clientWidth;\n        var screenHeight = window.innerHeight || document.documentElement.clientHeight;\n        var isOutsideViewport = (\n        // left\n        box.right <= 0\n            ||\n                // right\n                box.left >= screenWidth\n            ||\n                // Bottom\n                box.top >= screenHeight\n            ||\n                // top\n                box.bottom <= 0);\n        return !isOutsideViewport && box.width !== 0 && box.height != 0;\n    };\n    var isRendered = function (query) {\n        var elements = window.document.querySelectorAll(query);\n        for (var i = 0; i < elements.length; i++) {\n            if (isPartiallyVisible(elements[i])) {\n                return true;\n            }\n        }\n        return false;\n    };\n    var element = get_mcforms_element(ourSelector);\n    // const elementDisplayStyle = element.style.display;\n    var elementDisplayStyle = window.getComputedStyle(element).display;\n    setInterval(function () {\n        if (isRendered(theirSelector) && window.getComputedStyle(element).display !== 'none') {\n            element.style.setProperty('display', 'none', 'important');\n        }\n        else if (!isRendered(theirSelector)) {\n            // if (!isRendered(theirSelector) && window.getComputedStyle(element).display !== elementDisplayStyle){\n            //   element.style.setProperty('display', elementDisplayStyle, 'important');\n            //   elementDisplayStyle = window.getComputedStyle(element).display;\n            // }\n            element.style.setProperty('display', 'flex', 'important');\n        }\n    }, 500);\n};\nexports.hideIfPresent = hideIfPresent;\nresolve(); // using resolve(); tells your ad to continue. Othwerwise the account will not load\n"}]}