PageSourceSearch

https://restaurantreview.ai/assets/StickySaveBar-BOt81yLW.js

js restaurantreview.ai collected 2026-10-05 14:09:00 UTC 1,805 bytes, 1 lines download raw bytes

1import{j as e}from"./index-CNRp9eia.js";import{r as o}from"./vendor-B_7C3Dei.js";import{u}from"./i18n-BuzV6AL9.js";import{b as f,a2 as x,F as p}from"./icons-B_pMednx.js";const j=({visible:a,saving:t,onSave:m,onDiscard:r})=>{const{t:s}=u(),[n,c]=o.useState(!1),d=o.useRef(!1);return o.useEffect(()=>{const i=d.current;if(d.current=t,i&&!t&&!a){c(!0);const l=window.setTimeout(()=>c(!1),2500);return()=>window.clearTimeout(l)}},[t,a]),o.useEffect(()=>{if(a)return document.body.dataset.saveBar="1",()=>{delete document.body.dataset.saveBar}},[a]),!a&&!n?null:e.jsx("div",{role:"status",className:"fixed bottom-[calc(4rem_+_env(safe-area-inset-bottom,0px))] lg:bottom-6 left-1/2 -translate-x-1/2 z-40 animate-fade-in",children:n&&!a?e.jsxs("div",{className:"flex items-center gap-2 rounded-full bg-accent-600 text-white text-sm font-medium pl-4 pr-5 py-2.5 shadow-float",children:[e.jsx(f,{className:"w-4 h-4","aria-hidden":!0}),s("common.savedConfirmation")]}):e.jsxs("div",{className:"flex items-center gap-3 rounded-full bg-navy-900 text-white pl-5 pr-2 py-2 shadow-float",children:[e.jsx("span",{className:"text-sm",children:s("common.unsavedChanges")}),r&&e.jsxs("button",{type:"button",onClick:r,disabled:t,className:"flex items-center gap-1.5 text-xs font-medium text-white/70 hover:text-white px-2 py-1.5 rounded-full transition-colors disabled:opacity-50",children:[e.jsx(x,{className:"w-3.5 h-3.5","aria-hidden":!0}),s("common.discardChanges")]}),e.jsxs("button",{type:"button",onClick:m,disabled:t,className:"flex items-center gap-1.5 bg-white text-navy-900 text-sm font-semibold px-4 py-1.5 rounded-full hover:bg-carbon-50 transition-colors disabled:opacity-60",children:[t&&e.jsx(p,{className:"w-4 h-4 animate-spin","aria-hidden":!0}),s(t?"common.saving":"common.save")]})]})})};export{j as S};

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.