1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[839],{7708:function(e,r,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/clear",function(){return t(8971)}])},7182:function(e,r,t){"use strict";t.d(r,{Z:function(){return E}});var n=t(2729),a=t(3366),i=t(7462),s=t(7294),o=t(512),c=t(4780),l=t(917),u=t(6643),d=t(4001),h=t(7527),f=t(1588),m=t(4867);function x(e){return(0,m.ZP)("MuiCircularProgress",e)}(0,f.Z)("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);var v=t(5893);function g(){let e=(0,n._)(["\n 0% {\n transform: rotate(0deg);\n }\n\n 100% {\n transform: rotate(360deg);\n }\n"]);return g=function(){return e},e}function p(){let e=(0,n._)(["\n 0% {\n stroke-dasharray: 1px, 200px;\n stroke-dashoffset: 0;\n }\n\n 50% {\n stroke-dasharray: 100px, 200px;\n stroke-dashoffset: -15px;\n }\n\n 100% {\n stroke-dasharray: 100px, 200px;\n stroke-dashoffset: -125px;\n }\n"]);return p=function(){return e},e}function D(){let e=(0,n._)(["\n animation: "," 1.4s linear infinite;\n "]);return D=function(){return e},e}function S(){let e=(0,n._)(["\n animation: "," 1.4s ease-in-out infinite;\n "]);return S=function(){return e},e}let k=["className","color","disableShrink","size","style","thickness","value","variant"],Z=e=>e,_,y,C,b,j=(0,l.F4)(_||(_=Z(g()))),w=(0,l.F4)(y||(y=Z(p()))),I=e=>{let{classes:r,variant:t,color:n,disableShrink:a}=e,i={root:["root",t,"color".concat((0,u.Z)(n))],svg:["svg"],circle:["circle","circle".concat((0,u.Z)(t)),a&&"circleDisableShrink"]};return(0,c.Z)(i,x,r)},P=(0,h.ZP)("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,r)=>{let{ownerState:t}=e;return[r.root,r[t.variant],r["color".concat((0,u.Z)(t.color))]]}})(e=>{let{ownerState:r,theme:t}=e;return(0,i.Z)({display:"inline-block"},"determinate"===r.variant&&{transition:t.transitions.create("transform")},"inherit"!==r.color&&{color:(t.vars||t).palette[r.color].main})},e=>{let{ownerState:r}=e;return"indeterminate"===r.variant&&(0,l.iv)(C||(C=Z(D(),0)),j)}),R=(0,h.ZP)("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,r)=>r.svg})({display:"block"}),N=(0,h.ZP)("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,r)=>{let{ownerState:t}=e;return[r.circle,r["circle".concat((0,u.Z)(t.variant))],t.disableShrink&&r.circleDisableShrink]}})(e=>{let{ownerState:r,theme:t}=e;return(0,i.Z)({stroke:"currentColor"},"determinate"===r.variant&&{transition:t.transitions.create("stroke-dashoffset")},"indeterminate"===r.variant&&{strokeDasharray:"80px, 200px",strokeDashoffset:0})},e=>{let{ownerState:r}=e;return"indeterminate"===r.variant&&!r.disableShrink&&(0,l.iv)(b||(b=Z(S(),0)),w)});var E=s.forwardRef(function(e,r){let t=(0,d.i)({props:e,name:"MuiCircularProgress"}),{className:n,color:s="primary",disableShrink:c=!1,size:l=40,style:u,thickness:h=3.6,value:f=0,variant:m="indeterminate"}=t,x=(0,a.Z)(t,k),g=(0,i.Z)({},t,{color:s,disableShrink:c,size:l,thickness:h,value:f,variant:m}),p=I(g),D={},S={},Z={};if("determinate"===m){let e=2*Math.PI*((44-h)/2);D.strokeDasharray=e.toFixed(3),Z["aria-valuenow"]=Math.round(f),D.strokeDashoffset="".concat(((100-f)/100*e).toFixed(3),"px"),S.transform="rotate(-90deg)"}return(0,v.jsx)(P,(0,i.Z)({className:(0,o.Z)(p.root,n),style:(0,i.Z)({width:l,height:l},S,u),ownerState:g,ref:r,role:"progressbar"},Z,x,{children:(0,v.jsx)(R,{className:p.svg,ownerState:g,viewBox:"".concat(22," ").concat(22," ").concat(44," ").concat(44),children:(0,v.jsx)(N,{className:p.circle,style:D,ownerState:g,cx:44,cy:44,r:(44-h)/2,fill:"none",strokeWidth:h})})}))})},8971:function(e,r,t){"use strict";t.r(r),t.d(r,{default:function(){return f}});var n=t(5893),a=t(7294),i=t(9008),s=t.n(i),o=t(990),c=t(6788),l=t(7182),u=(0,t(139).Z)((0,n.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m-2 15-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8z"}),"CheckCircle"),d=t(1163),h=t(7770),f=()=>{let e=(0,d.useRouter)(),[r,t]=(0,a.useState)(!1);return(0,a.useEffect)(()=>{(async()=>
1{if(!sessionStorage.getItem("DASHDISH_CLEARING_IN_PROGRESS")){sessionStorage.setItem("DASHDISH_CLEARING_IN_PROGRESS","true");try{h.D.pause(),await h.D.flush(),await h.D.purge();try{var r,n;for(let e of await (null===(r=(n=indexedDB).databases)||void 0===r?void 0:r.call(n))||[])e.name&&(e.name.includes("Dashdish")||e.name.includes("dashdish")||"DashdishTimeTravelDB"===e.name)&&indexedDB.deleteDatabase(e.name)}catch(e){console.warn("IndexedDB clearing failed:",e)}localStorage.removeItem("persist:dashdish-root"),sessionStorage.removeItem("DASHDISH_CLEARING_IN_PROGRESS"),t(!0),setTimeout(()=>{e.push("/")},3e3)}catch(r){console.error("Error during DashDish data clearing:",r),setTimeout(()=>{e.push("/")},3e3)}}})()},[e]),(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(s(),{children:(0,n.jsx)("title",{children:"Clear DashDish Data"})}),(0,n.jsx)(o.Z,{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",minHeight:"100vh",sx:{backgroundColor:"#f5f5f5",textAlign:"center",px:3},children:r?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(u,{color:"success",sx:{fontSize:64,mb:2}}),(0,n.jsx)(c.Z,{variant:"h5",gutterBottom:!0,children:"DashDish data cleared!"}),(0,n.jsx)(c.Z,{variant:"body1",color:"text.secondary",children:"Redirecting to home..."})]}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(l.Z,{size:60,sx:{mb:2}}),(0,n.jsx)(c.Z,{variant:"h5",gutterBottom:!0,children:"Clearing DashDish data..."}),(0,n.jsx)(c.Z,{variant:"body1",color:"text.secondary",children:"Removing restaurant data, cart items, and app preferences."})]})})]})}},9008:function(e,r,t){e.exports=t(3867)},1163:function(e,r,t){e.exports=t(3079)}},function(e){e.O(0,[888,774,179],function(){return e(e.s=7708)}),_N_E=e.O()}]);
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.