1import{c as i,m as d}from"./vendor-mui-C1Ues8wz.js";import{u as k,a as p,b as D,c as v}from"./index-Cq3p5cmz.js";import"./vendor-date-fns-BnpE0Ung.js";import"./vendor-axios-BjtuyMK1.js";import"./vendor-lodash-BARWvCnB.js";function y(){const c=i.useRef(!0),{token:e}=k(),{updateDataLayer:r}=p(),t=D(),{kitchenId:s,siteId:n,reservationId:l,isReservationFlow:m,restartDinerSessionParams:o}=v();let a=s?`/diners/kitchens/${s}`:n&&!m&&e?`/diners/sites/${n}`:"/diners/landing";const u=d.useRef(!1),{insertDinerTrack:f}=p();return i.useEffect(()=>{c.current===!0&&(o(),c.current=!1)},[o]),d.useEffect(()=>{const g=async()=>{u.current=!0,await f({action:"land",subAction:"pre-registration-page"}),e&&t(a,{replace:!0})};u.current||g()},[n,s,l,r,f,e,a,t]),i.useEffect(()=>{e||(r("registration"),t(a,{replace:!0}))},[e,t,r]),null}export{y as default};
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.