
        (() => {
            window.__OT_WIDGET_ENTRY_TRANSLATION__ = "";
            window.__OT_WIDGET_TLD__ = "com.mx";
            const currentScript = document.currentScript;
            const injectJS = () => {
                "use strict";function y(e,t){let o=(e.stack||"").split(`
`).slice(1),r=(o[0]||"").match(/\s\(?(\S+):(\d+):(\d+)/),i=r?r[1]:void 0,s=parseInt(r?r[2]:"",10);return Number.isNaN(s)&&(s=void 0),{"call-stack-message":e.message,message:e.message,"call-stack-trace":o.join(`
`),"call-stack-file":i,"call-stack-line-number":s,...t}}var O=["error"],N=e=>{let t={};return Object.assign(t,"reservation-widget"),e&&Object.assign(t,e),t["related-url"]=window.location.href||void 0,t["header-user-agent"]=navigator.userAgent||void 0,t["header-referer"]=document.referrer||void 0,t},b=(e,t)=>{let n=window?.__OT_WIDGET_TLD__??"com",o={method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify([e,N(t)])};return fetch(`https://www.opentable.${n}/dapi/fe/log`,o).then(()=>null).then(()=>Promise.resolve())},_=O.reduce((e,t)=>(e[t]=b.bind(null,t),e),{log:b}),w={standard:{standard:{width:224,height:301},tall:{width:288,height:490},wide:{width:840,height:350}},button:{standard:{width:210,height:113}},waitlist:{standard:{width:224,height:203},wide:{width:840,height:350}},multi:{standard:{width:224,height:358},tall:{width:288,height:547},wide:{width:872,height:350}}},L=(e,t,n)=>`
    <oc-component>
        <link rel="stylesheet" href="${e}" />
        ${n?`
                <link rel="preload" href=${n} as="script" crossOrigin="anonymous" />
                `:""}
        <div id="ot-reservation-widget" class="parent-widget-type-${t}"></div>
    </oc-component>
`,$=(e,t,n,o)=>`
    <iframe data-test="reservation-widget-iframe" src="${e}" width="${n}" height="${t}" frameborder="0" scrolling="no" name="opentable-make-reservation-widget" title="${o}"></iframe>
`;function A(e,t){Object.keys(t).forEach(o=>{let d=String(t[o]);e.setAttribute(`data-ot-${o}`,d)})}var v=(e,t)=>{for(let n=0;n<e.length;n+=1)if(t===e[n]||!t?.parentNode&&t?.src===e[n]?.src)return n;return 0};function I(e,t,n,o,d,r){try{let i=r,s=document.getElementsByTagName("script"),c=v(s,r),a=o+c;if(r?.parentNode||(i=s[c]),i){let{lang:u,type:p,colorCustomization:f,font:T,colorThemeId:E}=e;window.__OT_BUILD_LOCALE__=u;let g=document.createElement("div");g.id=`ot-widget-container${c}`,g.setAttribute("data-r3uid",a),g.innerHTML=L(n,p,d),i.parentNode?.insertBefore(g,i);let h=g.querySelector("#ot-reservation-widget");h.setAttribute("data-ot-id",a),f&&E===8&&h.classList.add(T),A(h,e);let l=document.createElement("script");l.src=d??"",l.type="module",l.async=!0,l.setAttribute("data-ot-uuid",a),l.setAttribute("charset","utf-8"),l.setAttribute("crossorigin","anonymous"),h.after(l);let m=document.createElement("script");m.src=`${t}?uuid=${a}`,m.async=!0,m.type="module",m.setAttribute("data-ot-uuid",a),h.after(m)}return a}catch(i){return _.error(y(i,{context:"client-javascript",pageGroup:"reservation-widget",pageType:"reservation-widget"})),"NO_CONTAINER_CREATION"}}function M(e){let{width:t}=e?w.multi.wide:w.standard.wide;return window&&window?.matchMedia(`(min-width: ${t}px)`).matches}function S(e,t){let n=e==="wide",d=n&&M(t==="multi")?"wide":"standard",r=n?d:e,{height:i,width:s}=w[t]?.[r]??w[t].standard;return{height:i,width:s,theme:r}}function W(e,t,n,o,d,r){try{let i=r,s=document.getElementsByTagName("script"),c=v(s,r),a=t+c;if(r?.parentNode||(i=s[c]),i){let u=document.createElement("div");u.id=`ot-widget-container${c}`,u.setAttribute("data-r3uid",a);let{height:p,width:f,theme:T}=S(o,d);u.innerHTML=$(`${e}&uuid=${a}&theme=${T}`,p,f,n),i.parentNode?.insertBefore(u,i)}return a}catch(i){return _.error(y(i,{context:"client-javascript",pageGroup:"reservation-widget",pageType:"reservation-widget"})),"NO_CONTAINER_CREATION"}}window.__OT_WIDGET__={...window.__OT_WIDGET__,injectLoaderFromScript:I,injectMuralFromScript:W,clientLogger:_,getDetailsFromError:y};

                const createdRWContainerId = window.__OT_WIDGET__.injectMuralFromScript("https://www.opentable.com.mx/widget/reservation/mural?rid=1227349&type=button&color=1&dark=false&iframe=true&domain=commx&lang=en-US&newtab=true&ot_source=Restaurant website&cfe=true", "56b8b36f-3305-4504-8f54-e1f05479f0bf", "OpenTable make reservation widget", "standard", "button",  currentScript);
                
            };

            if (!currentScript?.parentNode) {
                if (document.readyState === 'complete') {
                    injectJS();
                } else {
                    document.addEventListener("readystatechange", (event) => {
                        if (document.readyState === "complete") {
                            injectJS();
                        }
                    });
                }
            } else {
                injectJS();
            }
        })();
        