1import{r as e}from"./rolldown-runtime-C60lm6uB.js";import{i as t,r as n}from"./framework-D_rUT4EX.js";var r=e(t(),1),i=n(),a=`https://www.opentable.co.uk/widget/reservation/loader?rid=187083&type=standard&theme=tall&color=1&dark=false&iframe=true&domain=couk&lang=en-GB&newtab=false&ot_source=Restaurant%20website&cfe=true`;function o({chinese:e=!1}){let t=(0,r.useRef)(null),[n,o]=(0,r.useState)(!1);return(0,r.useEffect)(()=>{if(!t.current)return;let e=document.createElement(`script`);return e.type=`text/javascript`,e.src=a,e.async=!0,e.onerror=()=>o(!0),t.current.appendChild(e),()=>{e.onerror=null,e.remove()}},[]),(0,i.jsxs)(`div`,{className:`booking-widget`,children:[(0,i.jsx)(`div`,{ref:t}),n&&(0,i.jsx)(`p`,{children:e?`é¢çº¦è¡¨åææ¶æ æ³å è½½ã`:`The booking form could not load.`})]})}export{o as BookingWidget};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.