PageSourceSearch

https://skiplyn.com/_next/static/chunks/pages/customer/order/confirmed/[token]-d60eeb66847f462e.js

js skiplyn.com collected 2026-10-02 00:33:31 UTC 13,830 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3130],{94184:function(e,t){var r;!function(){"use strict";var n={}.hasOwnProperty;function o(){for(var e=[],t=0;t<arguments.length;t++){var r=arguments[t];if(r){var a=typeof r;if("string"===a||"number"===a)e.push(r);else if(Array.isArray(r)){if(r.length){var i=o.apply(null,r);i&&e.push(i)}}else if("object"===a){if(r.toString!==Object.prototype.toString&&!r.toString.toString().includes("[native code]")){e.push(r.toString());continue}for(var s in r)n.call(r,s)&&r[s]&&e.push(s)}}}return e.join(" ")}e.exports?(o.default=o,e.exports=o):void 0===(r=function(){return o}.apply(t,[]))||(e.exports=r)}()},57944:function(e,t,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/customer/order/confirmed/[token]",function(){return r(73380)}])},73380:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return z}});var n=r(85893),o=r(34727),a=r(70655),i=r(67294),s=r(14416),c=r(89583),u=r(41120),l=(0,u.Z)({container:{textAlign:"center",margin:"0",position:"absolute",top:"50%",msTransform:"translateY(-50%)",transform:"translateY(-50%)",width:"100%",color:"green",fontFamily:"SF Pro Text, Myriad Set Pro, SF Pro Icons, Helvetica Neue, Helvetica, Arial, sans-serif"},restaurantInfoBox:{padding:"1em"},numberLabelHeader:{fontSize:"1.4em"},thankYou:{fontSize:"1.3em"},restaurantName:{fontSize:"1.9em"},restaurantAddress:{fontSize:"1em"},restaurantPhone:{marginLeft:"1em"},numberLabel:{fontSize:"1.2em"},progressBar:{width:"90%",margin:"auto"},number:{fontWeight:900,fontSize:"60px",marginBottom:"20px"},progress:{height:"2rem",fontSize:"1rem",backgroundColor:"white"},orderNotFound:{fontSize:"18px",color:"green"}},{name:"co-OrderStatus"}),d=r(70344),f=r(54705),p=r(11163),m=r(87462),b=r(4942),h=r(63366),y=r(45697),v=r.n(y),g=r(94184),x=r.n(g),j=r(23663),O=["children","className","barClassName","cssModule","value","min","max","animated","striped","color","bar","multi","tag","style","barStyle","barAriaValueText","barAriaLabelledBy"];function w(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function N(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?w(Object(r),!0).forEach((function(t){(0,b.Z)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):w(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var S={children:v().node,bar:v().bool,multi:v().bool,tag:j.iC,value:v().oneOfType([v().string,v().number]),min:v().oneOfType([v().string,v().number]),max:v().oneOfType([v().string,v().number]),animated:v().bool,striped:v().bool,color:v().string,className:v().string,barClassName:v().string,cssModule:v().object,style:v().object,barStyle:v().object,barAriaValueText:v().string,barAriaLabelledBy:v().string},E=function(e){var t=e.children,r=e.className,n=e.barClassName,o=e.cssModule,a=e.value,s=e.min,c=e.max,u=e.animated,l=e.striped,d=e.color,f=e.bar,p=e.multi,b=e.tag,y=e.style,v=e.barStyle,g=e.barAriaValueText,w=e.barAriaLabelledBy,S=(0,h.Z)(e,O),E=(0,j.He)(a)/(0,j.He)(c)*100,T=(0,j.mx)(x()(r,"progress"),o),P={className:(0,j.mx)(x()("progress-bar",f&&r||n,u?"progress-bar-animated":null,d?"bg-"+d:null,l||u?"progress-bar-striped":null),o),style:N(N(N({},f?y:{}),v),{},{width:E+"%"}),role:"progressbar","aria-valuenow":a,"aria-valuemin":s,"aria-valuemax":c,"aria-valuetext":g,"aria-labelledby":w,children:t};return f?i.createElement(b,(0,m.Z)({},S,P)):i.createElement(b,(0,m.Z)({},S,{style:y,className:T}),p?t:i.createElement("div",P))};E.propTypes=S,E.defaultProps={tag:"div",value:0,min:0,max:100,style:{},barStyle:{}};var T=E,P=r(37399),_=(0,u.Z)({progress:{height:"2rem",fontSize:"1rem",backgroundColor:"white"},statusDeclined:{color:"red",fontSize:"1.1em"},statusUnknown:{color:"coral",fontSize:"1.1em"}},{name:"co-OrderStatusProgressBar"}),k="accepted",C="ready",A="declined";function I(e){var t=e.status,r=e.serving,o=_();return"received"===t?(0,n.jsx)(T,{multi:!0,className:o.progress,children:(0,n.jsx)(T,{bar:!0,animated:!0,color:"warning",value:"30",children:"Received"})}):t===k?(0,n.jsx)(T,{multi:!0,className:o.progress,children:(0,n.jsx)(T,{bar:!0,animated:!0,color:"info",value:"75",children:"Accepted and preparing..."})}):t===C?(0,n.jsx)(T,{multi:!0,className:o.progress,children:(0,n.jsx)(T,{bar:!0,color:"success",value:"100",children:r===P.BF?"Ready for pickup":"Out for delivery"})}):t===A?(0,n.jsx)("div",{className:o.statusDeclined,children:"Sorry, Your order has been declined"}):(0,n.jsx)("div",{className:o.orderStatusUnknown,children:"Please contact your restaurant for an order status"})}function F(){var e=(0,p.useRouter)(),t=(0,i.useState)(!0),r=t[0],u=t[1],m=(0,i.useState)({}),b=m[0],h=m[1],y=(0,i.useState)(""),v=y[0],g=y[1],x=(0,i.useState)(!1),j=x[0],O=x[1],w=(0,i.useState)(null),N=w[0],S=w[1],E=(0,i.useState)(""),T=E[0],_=E[1],F=(0,i.useState)(""),z=F[0],R=F[1],B=(0,s.I0)(),D=l();return(0,i.useEffect)((function(){var t;function r(){return r=(0,o.Z)((function(){var r,n,i,s,c,l;return(0,a.__generator)(this,(function(p){switch(p.label){case 0:return p.trys.push([0,4,,5]),r=e.query.token,[4,(0,d.Ko)({body:{token:r},dispatch:B})];case 1:return n=p.sent(),h(n.data),n.data.serving!==P.BF&&n.data.serving!==P._C?[3,3]:[4,(0,d.VK)({body:n.data,dispatch:B})];case 2:i=p.sent(),s=i.data.status,R(s),s!==C&&s!==A&&r&&!T&&(t=setInterval((0,o.Z)((function(){var e,r,o,i;return(0,a.__generator)(this,(function(a){switch(a.label){case 0:return a.trys.push([0,2,,3]),[4,(0,d.VK)({body:n.data,dispatch:B})];case 1:return e=a.sent(),r=e.data,(o=r.status)===k?R(k):o===C?(R(C),clearInterval(t)):o===A?(R(A),clearInterval(t)):R(o),[3,3];case 2:return i=a.sent(),"jwt expired"===(0,f.S3)(i)&&(O(!1),clearInterval(t)),[3,3];case 3:return[2]}}
1))})),1e4)),p.label=3;case 3:return g(n.data.orderNumber),S(n.data.serving),O(!0),u(!1),[3,5];case 4:return c=p.sent(),l=(0,f.S3)(c),console.log(l),_("jwt expired"===l?"Your order has already been served.":"Oops! Something is not right ..."),u(!1),[3,5];case 5:return[2]}}))})),r.apply(this,arguments)}return e.isReady&&function(){r.apply(this,arguments)}(),function(){return t&&clearInterval(t)}}),[B,e]),r?(0,n.jsx)("div",{children:"Loading ..."}):j?(0,n.jsx)("div",{className:D.container,children:N===P.BF||N===P._C?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("div",{className:D.restaurantInfoBox,children:[(0,n.jsx)("div",{className:D.restaurantName,children:b.restaurantName}),(0,n.jsx)("div",{className:D.restaurantAddress,children:b.restaurantAddress}),(0,n.jsx)(c.DNl,{}),(0,n.jsx)("span",{className:D.restaurantPhone,children:(0,n.jsxs)("a",{href:"tel:"+b.phone,rel:"noopener noreferrer",children:[" ",(0,f.ni)(b.phone.toString())]})})]}),z!==A&&N!==P._C&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{className:D.numberLabel,children:"TICKET #"}),(0,n.jsx)("div",{className:D.number,children:v})]}),(0,n.jsx)("div",{className:D.progressBar,children:(0,n.jsx)(I,{status:z,serving:N})})]}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{className:D.numberLabelHeader,children:"You have successfully paid."}),(0,n.jsx)("div",{className:D.thankYou,children:"Thank You!"})]})}):(0,n.jsxs)("div",{className:D.container,children:[(0,n.jsx)("div",{children:T}),(0,n.jsx)("div",{children:"Thank You!"})]})}function z(){return(0,n.jsx)(F,{})}},92703:function(e,t,r){"use strict";var n=r(50414);function o(){}function a(){}a.resetWarningCache=o,e.exports=function(){function e(e,t,r,o,a,i){if(i!==n){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var r={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:a,resetWarningCache:o};return r.PropTypes=r,r}},45697:function(e,t,r){e.exports=r(92703)()},50414:function(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},88357:function(e,t,r){"use strict";r.d(t,{w_:function(){return u},Pd:function(){return a}});var n=r(67294),o={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},a=n.createContext&&n.createContext(o),i=function(){return i=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i.apply(this,arguments)},s=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&(r[n[o]]=e[n[o]])}return r};function c(e){return e&&e.map((function(e,t){return n.createElement(e.tag,i({key:t},e.attr),c(e.child))}))}function u(e){return function(t){return n.createElement(l,i({attr:i({},e.attr)},t),c(e.child))}}function l(e){var t=function(t){var r,o=e.size||t.size||"1em";t.className&&(r=t.className),e.className&&(r=(r?r+" ":"")+e.className);var a=e.attr,c=e.title,u=s(e,["attr","title"]);return n.createElement("svg",i({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},t.attr,a,u,{className:r,style:i({color:e.color||t.color},t.style,e.style),height:o,width:o,xmlns:"http://www.w3.org/2000/svg"}),c&&n.createElement("title",null,c),e.children)};return void 0!==a?n.createElement(a.Consumer,null,(function(e){return t(e)})):t(o)}},23663:function(e,t,r){"use strict";r.d(t,{CE:function(){return l},Do:function(){return x},E5:function(){return g},He:function(){return w},Kn:function(){return N},Nq:function(){return j},O4:function(){return p},Rf:function(){return c},U9:function(){return T},X9:function(){return s},ei:function(){return d},iC:function(){return h},ku:function(){return P},mx:function(){return u},pp:function(){return i},qW:function(){return b},rb:function(){return v},wF:function(){return y}});var n,o=r(45697),a=r.n(o);function i(e){document.body.style.paddingRight=e>0?e+"px":null}function s(){var e=window.getComputedStyle(document.body,null);return parseInt(e&&e.getPropertyValue("padding-right")||0,10)}function c(){var e=function(){var e=document.createElement("div");e.style.position="absolute",e.style.top="-9999px",e.style.width="50px",e.
1style.height="50px",e.style.overflow="scroll",document.body.appendChild(e);var t=e.offsetWidth-e.clientWidth;return document.body.removeChild(e),t}(),t=document.querySelectorAll(".fixed-top, .fixed-bottom, .is-fixed, .sticky-top")[0],r=t?parseInt(t.style.paddingRight||0,10):0;document.body.clientWidth<window.innerWidth&&i(r+e)}function u(e,t){return void 0===e&&(e=""),void 0===t&&(t=n),t?e.split(" ").map((function(e){return t[e]||e})).join(" "):e}function l(e,t){var r={};return Object.keys(e).forEach((function(n){-1===t.indexOf(n)&&(r[n]=e[n])})),r}function d(e,t){for(var r,n=Array.isArray(t)?t:[t],o=n.length,a={};o>0;)a[r=n[o-=1]]=e[r];return a}var f={};function p(e){f[e]||("undefined"!==typeof console&&console.error(e),f[e]=!0)}var m="object"===typeof window&&window.Element||function(){};var b=a().oneOfType([a().string,a().func,function(e,t,r){if(!(e[t]instanceof m))return new Error("Invalid prop `"+t+"` supplied to `"+r+"`. Expected prop to be an instance of Element. Validation failed.")},a().shape({current:a().any})]),h=a().oneOfType([a().func,a().string,a().shape({$$typeof:a().symbol,render:a().func}),a().arrayOf(a().oneOfType([a().func,a().string,a().shape({$$typeof:a().symbol,render:a().func})]))]),y={Fade:150,Collapse:350,Modal:300,Carousel:600},v=["in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","onEnter","onEntering","onEntered","onExit","onExiting","onExited"],g={ENTERING:"entering",ENTERED:"entered",EXITING:"exiting",EXITED:"exited"},x={esc:27,space:32,enter:13,tab:9,up:38,down:40,home:36,end:35,n:78,p:80},j=!("undefined"===typeof window||!window.document||!window.document.createElement);function O(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}function w(e){var t=typeof e;if("number"===t)return e;if("symbol"===t||"object"===t&&"[object Symbol]"===O(e))return NaN;if(N(e)){var r="function"===typeof e.valueOf?e.valueOf():e;e=N(r)?""+r:r}if("string"!==t)return 0===e?e:+e;e=e.replace(/^\s+|\s+$/g,"");var n=/^0b[01]+$/i.test(e);return n||/^0o[0-7]+$/i.test(e)?parseInt(e.slice(2),n?2:8):/^[-+]0x[0-9a-f]+$/i.test(e)?NaN:+e}function N(e){var t=typeof e;return null!=e&&("object"===t||"function"===t)}function S(e){if(function(e){return!(!e||"object"!==typeof e)&&"current"in e}(e))return e.current;if(function(e){if(!N(e))return!1;var t=O(e);return"[object Function]"===t||"[object AsyncFunction]"===t||"[object GeneratorFunction]"===t||"[object Proxy]"===t}(e))return e();if("string"===typeof e&&j){var t=document.querySelectorAll(e);if(t.length||(t=document.querySelectorAll("#"+e)),!t.length)throw new Error("The target '"+e+"' could not be identified in the dom, tip: check spelling");return t}return e}function E(e){return null!==e&&(Array.isArray(e)||j&&"number"===typeof e.length)}function T(e,t){var r=S(e);return t?E(r)?r:null===r?[]:[r]:E(r)?r[0]:r}var P=["a[href]","area[href]","input:not([disabled]):not([type=hidden])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","object","embed","[tabindex]:not(.modal)","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])']}},function(e){e.O(0,[5445,1120,9774,2888,179],(function(){return t=57944,e(e.s=t);var t}));var t=e.O();_N_E=t}]);

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.