1"use strict";(self["webpackChunklunchbox_storefront"]=self["webpackChunklunchbox_storefront"]||[]).push([[808],{14745:function(t,e,a){a.r(e),a.d(e,{default:function(){return E}});var s=a(56768);const o={class:"checkIn"};function r(t,e,a,r,d,i){const n=(0,s.g2)("LoaderView");return(0,s.uX)(),(0,s.CE)("div",o,[d.loading?((0,s.uX)(),(0,s.Wv)(n,{key:0})):(0,s.Q3)("",!0)])}a(44114);var d=a(45354),i=a(18325),n=a(5771),c=a(60782),l={data(){return{loading:!0}},components:{LoaderView:d.A},methods:{...(0,c.PY)(["SET_CUSTOMER_DATA","SET_COOKIES","SET_ORDER_DATA","SET_LOGGED_IN","SET_TOASTER"]),async loginWithSecurityCode(t){let e={security_code:t};try{const t=await i.A.loginWithSecurityCode(e);this.SET_COOKIES(t.data.cookies);const s=t?.data?.data?.auth_cookie;if(s)try{localStorage.setItem("auth","Basic "+s)}catch(a){}return t.data.data}catch(s){console.log(s),this.$router.push({name:"HomeView"});let t={show:!0,message:"Something went wrong, please try again later"};this.SET_TOASTER(t)}},async getCustomerData(t){try{const e=await i.A.getCustomerInfo(t);return this.SET_CUSTOMER_DATA(e.data.data),this.SET_COOKIES(e.data.cookies),this.SET_LOGGED_IN(!0),localStorage.setItem("customerId",t),e.data.data}catch(e){this.$router.push({name:"HomeView"}),console.log(e)}},async getOrderData(t){try{const e=await n.A.getOrder(t);return this.SET_ORDER_DATA(e.data.data),this.SET_COOKIES(e.data.cookies),localStorage.setItem("orderId",t),e.data.data}catch(e){this.$router.push({name:"HomeView"}),console.log(e)}}},async mounted(){localStorage.clear();const{t:t,order_id:e}=this.$route.query,a=await this.loginWithSecurityCode(t);await this.getCustomerData(a.customer_id);const s=await this.getOrderData(e);this.$router.push({name:"ConfirmationView",params:{orderId:s.order.order_id}}),setTimeout(()=>{this.loading=!1},500)}},u=a(71241);const h=(0,u.A)(l,[["render",r]]);var E=h},72028:function(t,e,a){a.r(e),a.d(e,{default:function(){return g}});var s=a(56768);const o={class:"orderQuote"};function r(t,e,a,r,d,i){const n=(0,s.g2)("LoaderView");return(0,s.uX)(),(0,s.CE)("div",o,[d.loading?((0,s.uX)(),(0,s.Wv)(n,{key:0})):(0,s.Q3)("",!0)])}a(44114),a(18111),a(20116),a(33110);var d=a(45354),i=a(18325),n=a(5771),c=a(31006),l=a(60782),u=a(49148),h=a.n(u),E=a(79634),S={data(){return{loading:!0}},components:{LoaderView:d.A},methods:{...(0,l.PY)(["SET_CUSTOMER_DATA","SET_COOKIES","SET_ORDER_DATA","SET_SELECTED_STORE","SET_SELECTED_SERVICE","SET_SELECTED_DAY","SET_SELECTED_HOUR","SET_LOGGED_IN","SET_TOASTER","SET_DAY_AND_TIME_SELECTED","PURGE_STALE_DATA"]),async loginWithSecurityCode(t){let e={security_code:t};try{const t=await i.A.loginWithSecurityCode(e);this.SET_COOKIES(t.data.cookies);const s=t?.data?.data?.auth_cookie;if(s)try{localStorage.setItem("auth","Basic "+s)}catch(a){}return t.data.data}catch(s){console.log(s),this.$router.push({name:"HomeView"});let t={show:!0,message:"The order quote link is expired or invalid. Please contact the restaurant to get a new quote."};this.SET_TOASTER(t)}},async getCustomerData(t){try{const e=await i.A.getCustomerInfo(t);return this.SET_CUSTOMER_DATA(e.data.data),this.SET_COOKIES(e.data.cookies),this.SET_LOGGED_IN(!0),localStorage.setItem("customerId",t),e.data.data}catch(e){this.$router.push({name:"HomeView"}),console.log(e)}},async getOrderData(t){try{const e=await n.A.getOrder(t);return this.SET_ORDER_DATA(e.data.data),this.SET_COOKIES(e.data.cookies),localStorage.setItem("orderId",t),e.data.data}catch(e){this.$router.push({name:"HomeView"}),console.log(e)}},async getStoreData(t,e){try{const a=await c.A.getStore(t);this.SET_SELECTED_STORE(a.data.data),this.SET_COOKIES(a.data.cookies),localStorage.setItem("selectedStoreId",t),localStorage.setItem("timeZoneOffset",a.data.data.timezone_offset_mins),localStorage.setItem("selectedStoreId",e.restaurant.store_id);const s=a.data.data.services.find(t=>t.service_type_id===e.order.service_type_id);return this.SET_SELECTED_SERVICE(s),localStorage.setItem("selectedServiceId",s.service_type_id),a.data.data}catch(a){this.$router.push({name:"HomeView"}),console.log(a)}},async getCustomerAddress(t,e){try{const a=await i.A.getSingleAddress(t,{address_id:e});return this.SET_COOKIES(a.data.cookies),localStorage.setItem("selectedAddress",JSON.stringify(a.data.data[0])),a.data.data}catch(a){this.$router.push({name:"HomeView"}),console.log(a)}},getOrderDateAndTime(t,e){const a=t.order.dp_stamp;let s=a.split(" ")[0],o=a.split(" ")[1],r={date:s,formatted:s==h()(e.today,"MM/DD/YYYY").format("YYYY-MM-DD")?"TODAY":s==h()(e.today,"MM/DD/YYYY").add(1,"days").format("YYYY-MM-DD")?"TOMORROW":(0,E.kn)(h()(s,"YYYY-MM-DD"))};this.SET_SELECTED_DAY(r),localStorage.setItem("selectedDay",JSON.stringify(r));let d={formatted:(0,E.Wk)(h()(o,"HH:mm:ss")),hour:o.split(":")[0]+":"+
1o.split(":")[1]};this.SET_SELECTED_HOUR(d),localStorage.setItem("selectedHour",JSON.stringify(d)),this.SET_DAY_AND_TIME_SELECTED(!0),localStorage.setItem("dayAndTimeSelected",!0)},async getDeliveryInfo(t,e,a){let s={service_schedule:!0,service_type_id:localStorage.getItem("selectedServiceId"),latitude:t,longitude:e,store_id:a};try{const t=await c.A.getStore(null,s);localStorage.setItem("deliveryInfo",JSON.stringify(t.data.data[0].delivery_info))}catch(o){console.log(o)}}},async mounted(){try{["auth","loggedIn","customerId","userEmail"].forEach(t=>localStorage.removeItem(t))}catch(r){}this.PURGE_STALE_DATA();try{localStorage.setItem("last_api_request",String(Date.now()))}catch(r){}const{t:t,o:e}=this.$route.query,a=await this.loginWithSecurityCode(t);await this.getCustomerData(a.customer_id);const s=await this.getOrderData(e),o=await this.getStoreData(s.restaurant.store_id,s);s.customer_location&&(await this.getCustomerAddress(a.customer_id.toString(),s.customer_location.customer_location_id),await this.getDeliveryInfo(s.customer_location.latitude,s.customer_location.longitude,s.restaurant.store_id)),this.getOrderDateAndTime(s,o),this.$router.push({name:"CheckoutView",params:{storeId:s.restaurant.store_id}}),setTimeout(()=>{this.loading=!1},500)}},_=a(71241);const T=(0,_.A)(S,[["render",r]]);var g=T},35335:function(t,e,a){a.r(e),a.d(e,{default:function(){return A}});var s=a(56768),o=a(45130),r=a(24232);const d={class:"changePassword"},i={class:"wrapper"},n={class:"inputWrapper"},c=["type"],l={key:0,class:"validation"},u={key:1,class:"validation"},h=["src"],E={key:0,class:"feedback error"},S=["disabled"],_={key:0,class:"loader buttonLoader"};function T(t,e,a,T,g,w){const m=(0,s.g2)("PasswordValidator");return(0,s.uX)(),(0,s.CE)("div",d,[(0,s.Lk)("div",i,[e[5]||(e[5]=(0,s.Lk)("h2",null,"Change Password",-1)),e[6]||(e[6]=(0,s.Lk)("p",null,"Please enter a new password for your account.",-1)),(0,s.Lk)("div",n,[e[4]||(e[4]=(0,s.Lk)("label",{for:"password"},"Password",-1)),(0,s.bo)((0,s.Lk)("input",{onKeyup:e[0]||(e[0]=(0,o.jR)((...t)=>w.resetPassword&&w.resetPassword(...t),["enter"])),"onUpdate:modelValue":e[1]||(e[1]=t=>g.password=t),type:g.passwordInputType,placeholder:"Your Password",id:"password",class:"rr-mask"},null,40,c),[[o.hp,g.password]]),!0===T.v$.password.$error?((0,s.uX)(),(0,s.CE)("p",l,"Please enter your password")):(0,s.Q3)("",!0),!1===g.passwordIsValid?((0,s.uX)(),(0,s.CE)("p",u,"Please enter a valid password")):(0,s.Q3)("",!0),(0,s.Lk)("a",{onClick:e[2]||(e[2]=(...t)=>w.togglePassword&&w.togglePassword(...t)),class:"passwordToggle",href:"javascript:;"},[(0,s.Lk)("img",{src:g.passwordIconPath,alt:"password"},null,8,h)]),(0,s.bF)(m,{password:g.password,onValid:w.checkIfPasswordValid},null,8,["password","onValid"])]),g.error.status?((0,s.uX)(),(0,s.CE)("p",E,(0,r.v_)(g.error.message),1)):(0,s.Q3)("",!0),(0,s.Lk)("button",{onClick:e[3]||(e[3]=(...t)=>w.resetPassword&&w.resetPassword(...t)),disabled:t.buttonLoader},[t.buttonLoader?((0,s.uX)(),(0,s.CE)("div",_)):(0,s.Q3)("",!0),t.buttonLoader?(0,s.Q3)("",!0):((0,s.uX)(),(0,s.CE)(s.FK,{key:1},[(0,s.eW)("CHANGE PASSWORD")],64))],8,S)])])}a(44114);var g=a(60782),w=a(17760),m=a(99428),p=a(18325),I=a(99964),y={setup(){return{v$:(0,w.Ay)()}},data(){return{password:"",passwordInputType:"password",passwordIconPath:a(20175),token:"",error:{status:!1,message:""},passwordIsValid:null}},validations(){return{password:{required:m.mw}}},computed:{...(0,g.aH)(["buttonLoader","cookies"])},methods:{...(0,g.PY)(["SET_BUTTON_LOADER","SET_TOASTER","SET_COOKIES"]),checkIfPasswordValid(t){this.passwordIsValid=t},resetPassword(){if(this.v$.$touch(),this.checkIfPasswordValid(this.passwordIsValid),this.v$.$error||null===this.passwordIsValid||!1===this.passwordIsValid)return;this.error.status=!1,this.error.message="",this.SET_BUTTON_LOADER(!0);let t={new_password:this.password,token:this.token,reset:!1};p.A.changePassword(t).then(t=>{if(t.data.data.ok){let t={show:!0,message:"Password changed"};this.SET_TOASTER(t),this.$router.push({name:"HomeView"})}else this.error.status=!0,this.error.message=t.data.data.error;this.SET_COOKIES(t.data.cookies),this.SET_BUTTON_LOADER(!1)}).catch(t=>{this.SET_BUTTON_LOADER(!1),this.error.status=!0,this.error.message=t?.response?.data?.data?.error||"Something went wrong. Please try again"})},togglePassword(){"password"==this.passwordInputType?(this.passwordInputType="text",this.passwordIconPath=a(92284)):(this.passwordInputType="password",this.passwordIconPath=a(20175))}},created(){this.token=this.$route.query.t},components:{PasswordValidator:I.A}},O=a(71241);const D=(0,O.A)(y,[["render",T],["__scopeId","data-v-027e4e7e"]]);var A=D}}]); 2//# sourceMappingURL=password_reset.4a5c38ff.js.map
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.