/* eslint-disable */
(function () {
    let source, isMicroSite, activationStatus, enterpriseNumber;
    let secondIframeLoaded = false,
        onceClickedOnSecFrame = false,
        windowIframeBody;

    try {
        if (
            window &&
            window.parent &&
            window.parent.__INITIAL_STATE__ &&
            window.parent.__INITIAL_STATE__.homeReducer &&
            window.parent.__INITIAL_STATE__.homeReducer.data
        ) {
            let homeReducerData =
                window.parent.__INITIAL_STATE__.homeReducer.data;
            isMicroSite = true; //ask microsite
            enterpriseNumber = homeReducerData.enterpriseInfo
                ? homeReducerData.enterpriseInfo.businessNumber
                : homeReducerData.businessNumber;
            source = 6;
            activationStatus = homeReducerData.activationStatus;
            //var businessName = homeReducerData.name;
        }
    } catch (e) {
        log(e);
    }

    if (!document.getElementsByClassName) {
        document.getElementsByClassName = function (className) {
            return this.querySelectorAll("." + className);
        };
        Element.prototype.getElementsByClassName =
            document.getElementsByClassName;
    }

    const CONSIDER_MIN_WIDTH = {
        "https://grabercustomstructures.com" : true
    }

    let bfi;
    let totalWidth =
        window.innerWidth ||
        document.documentElement.clientWidth ||
        document.body.clientWidth;
    
    if (CONSIDER_MIN_WIDTH[window?.origin]) {
        let widths = [
            window.innerWidth,
            document.documentElement?.clientWidth,
            document.body?.clientWidth
        ].filter(Boolean); // Removes undefined or falsy values
        totalWidth = Math.min(...widths);
    }
    
    let totalHeight =
        window.innerHeight ||
        document.documentElement.clientHeight ||
        document.body.clientHeight;
    let parentTitle = document.title;
    let newTitle = isMicroSite ? document.title : "(1) New Message!";
    let titleChangeInterval;
    let titleFlag = 0;
    let tries = 1;
    let extensionInterval;
    let env;
    let windowIframe;
    window.be_webchat = null;

    function playBubbleSound() {
        let context,
            source =
                "https://d3cnqzq0ivprch.cloudfront.net/prod/media/notification-sound.mp3";
        try {
            window.AudioContext =
                window.AudioContext || window.webkitAudioContext;
            context = new AudioContext();
            let request = new XMLHttpRequest();
            request.open("GET", source, true);
            request.responseType = "arraybuffer";
            request.onload = function () {
                context.decodeAudioData(
                    request.response,
                    function (buffer) {
                        let source = context.createBufferSource();
                        source.buffer = buffer;
                        source.connect(context.destination);
                        source.start(0);
                        context.resume();
                    },
                    function (e) {
                        console.log("error", e);
                    }
                );
            };
            request.send();
        } catch (e) {
            if (/Edge\/|Trident\/|MSIE /.test(navigator.userAgent)) {
                let audio = document.createElement("audio");
                audio.autoplay = true;
                audio.src = source;
                audio.play();
            }
        }
    }

    function checkIsAgentPreview (isPreview, widgetAgent) {
        return (isPreview === 1 || isPreview === "1") && widgetAgent.length > 0;
    };


    function getGoodBot(type) {
        const goodBots = [
            "facebookexternalhit",
            "Facebot",
            "Googlebot",
            "Google",
            "LinkedInBot",
        ];
        const ua = navigator.userAgent;
        let isGoodBots = false;
        let botName = "";

        for (let i = 0; i < goodBots.length; i++) {
            const bot = goodBots[i];
            if (ua.indexOf(bot) > -1) {
                isGoodBots = true;
                botName = bot.toLowerCase();
                break;
            }
        }
        if (type == "isGoodBot") {
            return isGoodBots;
        } else {
            botName = botName != "" ? botName : "facebook";
            botName = botName.indexOf("face") > -1 ? "facebook" : botName;
            botName = botName.indexOf("linked") > -1 ? "linked-in" : botName;
            return botName;
        }
    }

    function initIframe() {
        let bfdiv =
            document.getElementById("bf-revz-widget-" + window.wid) ||
            document.getElementById("bf-revz-widget-" + "0" + window.wid);
        if (!bfdiv) {
            tries++;
            if (tries > 50) {
                return false;
            }
            setTimeout(initIframe, 500);
            return;
        }

        if (!bfdiv.firstChild) {
            bfdiv.appendChild(bfi);
        } else if (bfdiv.firstChild && bfdiv.firstChild.nodeName != "IFRAME") {
            bfdiv.insertBefore(bfi, bfdiv.firstChild);
        }
    }

    let winHeight = 100;
    let winWidth = "431px";
    if (window.innerHeight < 100) {
        winHeight = window.innerHeight;
    }

    if (CONSIDER_MIN_WIDTH[window?.origin]) {
        if (totalWidth < 500) {
            winWidth = "100%";
        }
    } else {
        if (window.innerWidth < 500) {
            winWidth = "100%";
        }
    }

    window.addEventListener("resize", function () {
        if (window.innerHeight < 727) {
            winHeight = window.innerHeight;
        } else {
            winHeight = 773;
        }
    });

    const openWebchatFromOutside = (objFromClient) => {
        const firstIframe = document.getElementById("bewebchat");
        const secondIframe = document.getElementById("window-iframe");
        firstIframe.contentWindow.postMessage(
            {
                type: "post-message-from-outside",
                clientObj: objFromClient,
                beWebchatWindowObj: JSON.stringify(window.be_webchat),
                isWidgetAlignLeft: window.isWidgetAlignLeft,
                mFullView: window.mFullView,
                isPreview: window.isPreview,
                widgetAgent: JSON.stringify(window.widgetAgent)
            },
            "*"
        );
        secondIframe.contentWindow.postMessage(
            {
                type: "post-message-from-outside-chat",
                clientObj: objFromClient,
                beWebchatWindowObj: JSON.stringify(window.be_webchat),
                isWidgetAlignLeft: window.isWidgetAlignLeft,
                locale: window.locale,
                mFullView: window.mFullView,
                isPreview: window.isPreview,
                widgetAgent: JSON.stringify(window.widgetAgent)
            },
            "*"
        );
    };

    window.onmessage = function (e) {
        if (e.data && e.data.split) {
            const isAgentPreview = checkIsAgentPreview(window.isPreview, window.widgetAgent);
            let dataReceivedSplit = e.data.split("***");
            let dataReceived = dataReceivedSplit[0];
            let widthReceived = dataReceivedSplit[1];
            if (totalWidth < 960) {
                widthReceived = "drawer";
            }

            if (dataReceived == "icon-clicked") {
                if (!secondIframeLoaded) {
                    if (!onceClickedOnSecFrame) {
                        loadNewIframe();
                    }
                }
                document.getElementById("bewebchat").style.height = isAgentPreview ? "70px" : "80px";
                document.getElementById("bewebchat").style.width = isAgentPreview ? "200px" : "70px";
                if (widthReceived == "floating") {
                    document
                        .getElementById("window-iframe")
                        .setAttribute(
                            "style",
                            `-webkit-overflow-scrolling: touch; visibility: visible; opacity: 1; ${window.isWidgetAlignLeft ? "left:20px" : "right:20px"}; bottom:${isAgentPreview ? "0" : "20px"}; position:fixed; overflow:hidden; width:${winWidth}; z-index:9999998; border: 0; height: ${(isAgentPreview ? 90 : winHeight) + "%"}; `
                        );
                } else {
                    document
                        .getElementById("window-iframe")
                        .setAttribute(
                            "style",
                            `-webkit-overflow-scrolling: touch; visibility: visible; opacity: 1; z-index: 9999999; ${window.isWidgetAlignLeft ? "left:0px" : "right:0px"}; bottom:0px; position:fixed; overflow:hidden; width:${winWidth}; height: 100%; border: 0;`
                        );
                }

                if (titleChangeInterval) {
                    clearInterval(titleChangeInterval);
                }
                document.title = parentTitle;

                window.be_webchat = {
                    ...window.be_webchat,
                    windowOpened: true,
                };
                if(isAgentPreview) {
                    window.dispatchEvent(new CustomEvent("webchat:opened", { detail: true }));
                }
            } else if (dataReceived == "icon-closed") {
                let wid = "20px";
                if (totalWidth < 960) {
                    wid = "20px";
                }

                let element = document.getElementById("window-iframe");
                element.style.height = 0;

                secondIframeLoaded = false;

                window.be_webchat = {
                    ...window.be_webchat,
                    windowOpened: false,
                };
                if(isAgentPreview){
                    window.dispatchEvent(new CustomEvent("webchat:closed", { detail: false }));
                }
            } else if (dataReceived == "getwidth") {
                e.source.postMessage(
                    {
                        width: totalWidth,
                        height: totalHeight,
                        src: "birdeye",
                        updateValFromParent: window.update,
                    },
                    "*"
                );
            } else if (dataReceived == "show-bubble") {
                bfi.setAttribute(
                    "style",
                    `-webkit-overflow-scrolling: touch; visibility: ${isAgentPreview ? "hidden" : "visible"}; opacity: 1; z-index: 9999999; ${window.isWidgetAlignLeft ? "left:20px" : "right:20px"}; bottom:20px; position:fixed; overflow:hidden; ${isAgentPreview ? "width:200px" : "width:340px"}; ${isAgentPreview ? "height:70px" : "height:227px"}; border: 0;`
                );

                if (!getGoodBot("isGoodBot")) {
                    if (window.bizDataResp && window.bizDataResp.businessId) {
                        if (
                            !checkIfBusinessWantToDisableTitle(
                                window.bizDataResp.businessId
                            )
                        ) {
                            titleChangeInterval = setInterval(function () {
                                document.title = titleFlag
                                    ? parentTitle
                                    : newTitle;
                                titleFlag = !titleFlag;
                            }, 2500);
                        } else {
                            if (titleChangeInterval) {
                                clearInterval(titleChangeInterval);
                            }
                        }
                    } else {
                        titleChangeInterval = setInterval(function () {
                            document.title = titleFlag ? parentTitle : newTitle;
                            titleFlag = !titleFlag;
                        }, 2500);
                    }
                }
            } else if (dataReceived == "hide-bubble") {
                bfi.setAttribute(
                    "style",
                    `-webkit-overflow-scrolling: touch; visibility: ${isAgentPreview ? "hidden" : "visible"}; opacity: 1; z-index: 9999999; ${window.isWidgetAlignLeft ? "left:20px" : "right:20px"}; bottom:20px; position:fixed; overflow:hidden; ${isAgentPreview ? "width:200px" : "width:70px"}; ${isAgentPreview ? "height:70px" : "height:80px"}; border: 0;`
                );

                if (titleChangeInterval) {
                    clearInterval(titleChangeInterval);
                }
                document.title = parentTitle;
            } else if (dataReceived == "get-parent-url") {
                if (!window.be_webchat) {
                    window.be_webchat = {
                        open: openWebchatFromOutside,
                    };
                }
                e.source.postMessage(
                    {
                        type: "put-parent-url",
                        url: document.location.href,
                        hostname: document.location.hostname,
                        href: document.location.origin,
                        src: "birdeye",
                        isMicroSite: isMicroSite ? isMicroSite : false,
                        frmMicrosite: frmMicrosite ? frmMicrosite : false,
                        isWidgetAlignLeft: window.isWidgetAlignLeft
                            ? window.isWidgetAlignLeft
                            : false,
                        mFullView: window.mFullView ? window.mFullView : false,
                        enterpriseNumber: isMicroSite ? enterpriseNumber : null,
                        width: totalWidth,
                        height: totalHeight,
                        src: "birdeye",
                        updateValFromParent: window.update,
                        bizDataResp: window.bizDataResp,
                        beWebchatWindowObj: JSON.stringify(window.be_webchat),
                        updatedBizData: true,
                        locale: window.locale,
                        isPreview: window.isPreview ? window.isPreview : 0,
                        widgetAgent: window.widgetAgent ? window.widgetAgent : ""
                    },
                    "*"
                );
            } else if (
                dataReceived == "push-datalayer" &&
                window &&
                typeof window.dataLayer !== "undefined"
            ) {
                window.dataLayer.push(JSON.parse(dataReceivedSplit[1]));
            } else if (
                dataReceived == "push-avbDatalayer" &&
                window &&
                typeof window.avbData !== "undefined"
            ) {
                window.avbData.push(JSON.parse(dataReceivedSplit[1]));
            } else if (dataReceived == "push-analytics") {
                try {
                    try {
                        const config = JSON.parse(dataReceivedSplit[1]);

                        switch (config.googleAnalyticsVersion) {
                            case "UA":
                                if (ga && typeof ga == "function") {
                                    const nonInteractionObj =
                                        config.nonInteraction
                                            ? { nonInteraction: 1 }
                                            : null;

                                    ga(
                                        "send",
                                        "event",
                                        "webchat",
                                        config.action,
                                        config.actionLabel,
                                        nonInteractionObj
                                    );
                                } else {
                                    console.warn(
                                        "Webchat Analytics ReferenceError: ga is not defined"
                                    );
                                }
                                break;
                            case "GST":
                                if (gtag && typeof gtag == "function") {
                                    const nonInteractionObj =
                                        config.nonInteraction
                                            ? { non_interaction: true }
                                            : {};

                                    gtag("event", config.action, {
                                        event_category: "webchat",
                                        event_label: config.actionLabel.trim(),
                                        value: 1,
                                        ...nonInteractionObj,
                                    });
                                } else {
                                    console.warn(
                                        "Webchat Analytics ReferenceError: gtag is not defined"
                                    );
                                }
                                break;
                        }
                    } catch (e) {
                        console.warn("Webchat Analytics", e);
                    }
                } catch (e) {
                    console.warn("Webchat Analytics", e);
                }
            } else if (dataReceived == "be-custom-event-fire") {
                const customEventData = JSON.parse(dataReceivedSplit[1]);
                const be_event = new CustomEvent("beWebchatCustomEvent", {
                    detail: customEventData,
                });
                window.parent.document.dispatchEvent(be_event);
            } else if (dataReceived == "bubble-icon-sound") {
                playBubbleSound();
            }
        }
    };

    if (document.readyState === "complete") {
        extensionInterval = setInterval(function () {
            env = window.envObj ? window.envObj : {};
            const bizResp = window.bizDataResp ? window.bizDataResp : {};
            const locationListLen = bizResp
                ? bizResp["businessLocations"] &&
                  bizResp["businessLocations"].length
                : 0;

            if (Object.keys(env).length && locationListLen > 0) {
                getFirstIframeAndInit(env);
            }
        }, 100);
    } else {
        if (window.addEventListener) {
            // DOM2 standard
            window.addEventListener("load", windowOnloadHandler, false);
        } else if (window.attachEvent) {
            // Microsoft's precursor to it, IE8 and earlier
            window.attachEvent("onload", windowOnloadHandler);
        } else {
            // Some pre-1999 browser
            window.onload = windowOnloadHandler;
        }

        function windowOnloadHandler() {
            env = window.envObj ? window.envObj : {};
            const bizResp = window.bizDataResp ? window.bizDataResp : {};
            const locationListLen = bizResp
                ? bizResp["businessLocations"] &&
                  bizResp["businessLocations"].length
                : 0;

            if (locationListLen > 0) {
                getFirstIframeAndInit(env);
            }
        }
    }

    function getFirstIframeAndInit(env) {
        extensionInterval && clearInterval(extensionInterval);
        const isAgentPreview = checkIsAgentPreview(window.isPreview, window.widgetAgent);
        bfi = document.createElement("iframe");
        bfi.name = "bfiframe";
        bfi.id = "bewebchat";
        bfi.loading = "lazy";
        bfi.title = "Webchat widget";
        bfi.src =
            env.protocol +
            env.domain +
            `/getBubbleContent?update=${window.update}&source=${window.source}&bNum=${window.bNum}&apikey=${window.apikey}&widgetApiVersion=${window.widgetApiVersion}&isWidgetAlignLeft=${window.isWidgetAlignLeft}&mFullView=${window.mFullView}&isPreview=${window.isPreview}&widgetAgent=${window.widgetAgent}`;
        bfi.setAttribute(
            "style",
            `-webkit-overflow-scrolling: touch; visibility: ${isAgentPreview ? "hidden" : "visible"}; opacity: 1; z-index: 9999999; ${window.isWidgetAlignLeft ? "left:20px" : "right:20px"}; bottom:20px; position:fixed; overflow:hidden; ${isAgentPreview ? "width:200px" : "width:70px"}; ${isAgentPreview ? "height:70px" : "height:80px"}; border:0`
        );
        initIframe();
        bfi.onload = loadNewIframe.bind(this);
        const firstIframeEl = document.getElementById("bewebchat");
        firstIframeEl.style.colorScheme = "light";
    }

    function appendSecondIframe() {
        secondIframeLoaded = true;
        onceClickedOnSecFrame = true;
        let bfdiv =
            document.getElementById("bf-revz-widget-" + window.wid) ||
            document.getElementById("bf-revz-widget-" + "0" + window.wid);

        bfdiv.appendChild(windowIframe);

        const bodyEl =
            document.querySelector("#window-iframe").parentElement
                .parentElement;
        windowIframeBody = document.querySelector("#window-iframe")
            .contentDocument
            ? document.querySelector("#window-iframe").contentDocument.body
            : null;

        bodyEl.addEventListener("click", function (e) {
            let emojiEl =
                windowIframeBody &&
                windowIframeBody.querySelector(".emoji-wrap");

            if (
                emojiEl &&
                e.target !== document.querySelector("#window-iframe")
            ) {
                emojiEl.classList.add("hide-emoji");
                emojiEl.style.display = "none";
            }
        });
        const secondIframeEl = document.getElementById("window-iframe");
        secondIframeEl.style.colorScheme = "light";
    }

    function loadNewIframe() {
        windowIframe = document.createElement("iframe");
        windowIframe.name = "wciframe";
        windowIframe.id = "window-iframe";
        windowIframe.loading = "lazy";
        windowIframe.title = "Webchat widget";
        windowIframe.src =
            env.protocol +
            env.domain +
            `/getChatWindowContent?emailRequired=${window.emailRequired}&bNum=${window.bNum}&mobileRequired=${window.mobileRequired}&defaultCountryCode=${window.defaultCountryCode}&apikey=${window.apikey}&widgetApiVersion=${window.widgetApiVersion}&isMicroSite=${window.isMicroSite}&activationStatus=${window.activationStatus}&isWidgetAlignLeft=${window.isWidgetAlignLeft}&mFullView=${window.mFullView}&isPreview=${window.isPreview}&widgetAgent=${window.widgetAgent}`;
        windowIframe.setAttribute(
            "style",
            `-webkit-overflow-scrolling: touch; visibility: visible; opacity: 1; ${window.isWidgetAlignLeft ? "left:20px" : "right:20px"}; bottom:20px; position:fixed; overflow:hidden; width:346px; z-index:9999998; border: 0; height: 0px;`
        );
        appendSecondIframe();
    }

    const TITLE_DISABLED_BUSINESS_LIST = {
        171382964878276: true,
        170715410331273: true,
        162237675486307: true,
        174310764402517: true
    };

    function checkIfBusinessWantToDisableTitle(bId) {
        const isAgentPreview = checkIsAgentPreview(window.isPreview, window.widgetAgent);
        if(isAgentPreview) return true;
        return TITLE_DISABLED_BUSINESS_LIST[bId];
    }
})();

 
    var wid = 598698528; 
    var update = 0; 
    var soundOff = 1; 
    var envObj = {"domain":"webchat.birdeye.com","protocol":"https://","isWidgetAlignLeft":false,"mFullView":false,"isPreview":0,"widgetAgent":""};
    var emailRequired = 0;
    var isPreview = 0;
    var widgetAgent = "";
    var defaultCountryCode = 0;
    var mobileRequired = 1;
    var apikey = "37130fd01a7dfa278997ca72049ae740a6ee12e1934c3124";
    var widgetApiVersion = 2;
    var bNum = 153019917948817;
    var update = 0;
    var isMicroSite = false;
    var frmMicrosite = false;
    var isWidgetAlignLeft = false;
    var mFullView = false;
    var activationStatus = false;
    var source = false;
    var bizDataResp = {"businessId":153019917948817,"chatTheme":"floating","chatIcon":"twocolored","chatIconValue":null,"bannerColor":"#f7fbfe","bannerTextColor":"#000000","btnColor":"#062f7f","btnTxtColor":"#FFFFFF","enableReplyInBusinessHr":1,"enableReplyPostBusinessHr":1,"autoReplyTxt":"Thank you for contacting Miguel Delgado, MD! Someone from our team will reach out shortly.","replyTextPostBusinessHr":"Thank you for contacting the offices of Dr. Miguel Delgado! Our offices are currently closed however our Patient Coordinator will contact you ASAP. ","headerHeadline":"We will text you!","headerDescription":"Hello! Our team is here to help. Enter your message below and we will will text back you shortly.","thankyouMsgHeadline":null,"thankyouMsgDescription":null,"webChatOnlineClosingMessageHeader":"We will text you !","webChatOnlineClosingMessageBody":"We will follow up with you soon. You can always text us at [Business Texting Number] ","apiKey":null,"businessDomain":null,"onlineClosingMessageBody":null,"onlineWelcomeMessageHeader":null,"smb":false,"popupInterval":15,"microsite":0,"userProfile":[{"userProfileName":"","userProfileImage":""}],"businessLocations":[{"businessId":175855836416104,"location":"Novato, CA","businessSMSPhoneNumber":"(415) 301-2176","countryCode":"US","zipcode":"94945","address1":"165 Rowland Way","address2":"Suite 300","chatEnabled":true,"shortBusinessId":460868,"businessAlias":"Miguel Delgado, Novato","businessName":"Miguel Delgado, M.D.","name":"Miguel Delgado, M.D.","city":"Novato","state":"CA","locationName":"Miguel Delgado, M.D.","latitude":38.098851,"longitude":-122.56042,"emailId":"info@dr-delgado.com","phone":"(415) 898-4161"},{"businessId":175949806418714,"location":"Rollup ","businessSMSPhoneNumber":"(415) 949-7013","countryCode":"US","zipcode":"94945","chatEnabled":true,"shortBusinessId":1672463,"businessName":"Rollup ","name":"Rollup ","locationName":"Rollup ","phone":"(415) 898-4161"},{"businessId":175892507869786,"location":"San Francisco, CA","businessSMSPhoneNumber":"(415) 993-4543","countryCode":"US","zipcode":"94108","address1":"450 Sutter St","address2":"#2433","chatEnabled":true,"shortBusinessId":1668310,"businessAlias":"Miguel Delgado, SF","businessName":"Miguel Delgado, M.D.","name":"Miguel Delgado, M.D.","city":"San Francisco","state":"CA","locationName":"Miguel Delgado, M.D.","latitude":37.78968729,"longitude":-122.4078464,"emailId":"info@dr-delgado.com","phone":"(415) 989-2221"}],"chatBubble":"Questions? Click here or text us at  (415) 301-2176.","enableChatBubble":1,"enableChatBubbleSound":1,"chatIconColor":"#455B76","chatIconForeColor":"#FFFFFF","supportedCountryCodes":["US","PR","VI","MX","CA"],"businessName":"Miguel Delgado, M.D.","widgetName":null,"enabled":1,"widgetConfigId":743,"businessSMSPhoneNumber":null,"teams":null,"isLiveChatEnabled":false,"isChatbotEnabled":false,"enableGoogleAnalytics":true,"googleAnalyticsVersion":"GST","googleTrackingId":"UA-52215188-1","webChatOfflineClosingMessageHeader":"We will text you !","webChatOfflineClosingMessageBody":"We will follow up with you soon. You can always text us at [Business Texting Number].","liveChatOfflineClosingMessageHeader":"We'll text you!","liveChatOfflineClosingMessageBody":"We'll follow up with you soon. You can always text us at [Business Texting Number].","liveChatOnlineClosingMessageHeader":"Text us!","liveChatOnlineClosingMessageBody":"The best way to get ahold of us is to text us [Business Texting Number].","liveChatOfflineWelcomeMessage":"We're closed right now but we got your message. We'll text you on your number when we're back!","liveChatOnlineWelcomeMessage":"Give us a moment while we look for someone available to help you.","installed":1,"websites":["http%3A//dr-delgado.com","http%3A//petalumabotox.com","http%3A//www.breastrevisionsanfrancisco.com","http%3A//www.dr-delgado.com","https%3A//breastrevisionsanfrancisco.com","https%3A//es.dr-delgado.com","https%3A//manboobs.org","https%3A//petalumabotox.com","https%3A//topsurgerysanfrancisco.com","https%3A//www-dr--delgado-com.translate.goog","https%3A//www.dr-delgado.com"],"statusUpdateOn":"2025-11-06T03:01:09.000+00:00","liveChatOnlineTextMessage":"Thank you for contacting Miguel Delgado, MD! Someone from our team will reach out shortly.","liveChatOfflineTextMessage":"Thank you for contacting Miguel Delgado, MD! We are currently closed, but we'll text you when we're back!","locationHierarchy":null,"externalId":153019917948817,"allLocationDisabled":0,"emailMandatory":false,"customFields":null,"disclaimer":"By sending this message, you expressly consent to receive communications from us. You may opt out at any time.","autoDetectLocationEnabled":false,"disclaimerSelectionStatus":0,"robinInsideBusinessHours":null,"robinOutsideBusinessHours":null,"enablePrechatForm":1,"prechatFormInsideBusinessHours":1,"prechatFormOutsideBusinessHours":1,"chatbotHours":null,"timerDisplay":1,"timerSeconds":180,"mobileView":"fullView","widgetAgent":[],"fallbackMessage":null,"accountType":1,"businessOpen":false,"locale":null,"fields":null,"bubbleBGColor":"#F7FBFE"};
    var locale = "en";
    