PageSourceSearch

https://www.kitchenno1.online/_next/static/chunks/pages/quickly-order/store-42fdb0f0571c1652.js

js kitchenno1.online collected 2026-09-24 15:08:57 UTC 26,070 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[59614],{70176:function(e,t,i){(window.__NEXT_P=window.__NEXT_P||[]).push(["/quickly-order/store",function(){return i(83339)}])},47541:function(e,t){"use strict";t.Z={getOrderDetail:"/sale/api/order/detail",cancelOrder:"/api/order/cancel",getShopDetail:"/api/shop/shop-info",checkReservationInfo:"/platform-store/manage/shop/web/reservation-api-web/check/channel"}},60751:function(e,t,i){"use strict";i.d(t,{wI:function(){return s.Z},XC:function(){return l.Z},Gq:function(){return o}});var l=i(64115),n=i(84851),o=(e,t)=>{let i=(0,n.Pi)(e);return(0,l.Z)(i,t)},s=i(64756)},64756:function(e,t,i){"use strict";var l=i(85893),n=i(25142),o=i(24344);let s=e=>{var t,i,s;let{appConfig:a}=(0,o.s6)(),d=(0,o.hU)();return(0,l.jsxs)(n.Ar,{children:[(0,l.jsx)(n.NV,{}),(0,l.jsxs)("div",{style:{paddingTop:(null==d?void 0:d.isMobile)?"calc(var(--m-l-h-height)":"calc(var(--l-h-height)"},children:["   ",e.children]}),(0,l.jsx)(n.q6,{isOpen:!!(null==a?void 0:null===(t=a.app)||void 0===t?void 0:t.drainageImageStatus)&&d.isPc,images:{pc:null==a?void 0:null===(i=a.app)||void 0===i?void 0:i.drainageImageLink,mobile:null==a?void 0:null===(s=a.app)||void 0===s?void 0:s.drainageImageMobileLink}}),(0,l.jsx)(n.Ar.Footer,{})]})},a=e=>{var t;return null!==(t=null==e?void 0:e.getLayout)&&void 0!==t?t:e=>(0,l.jsx)(s,{children:e})};t.Z=(e,t)=>{let i=a(t);return e.getLayout||(e.getLayout=i),e}},83339:function(e,t,i){"use strict";i.r(t),i.d(t,{default:function(){return el}});var l=i(85893),n=i(67294),o=i(60751),s=i(24344),a=i(25142),d=i(10367),r=i.n(d),c=i(80814),u=i(93967),_=i.n(u),v=i(24019),m=i.n(v),p=i(37066),g=e=>{let{className:t,types:i,onChange:o,value:s,location:d,onAddress:r,onSelect:c}=e,u=(0,n.useRef)({[String(p.uB.PICKUP)]:"Pickup near",[String(p.uB.DINEIN)]:"Dine in near",[String(p.uB.TAKEOUT)]:"Takeout near",[String(p.uB.DELIVERY)]:"Delivery to"}),v=(0,n.useMemo)(()=>{try{if(!d)return"Select your location";return null==d?void 0:d.address}catch(e){console.warn(e)}},[d,s]);return(0,n.useEffect)(()=>{(null==d?void 0:d.address)&&(null==c||c(d))},[d]),(0,l.jsxs)("div",{className:_()(m().dine,t),children:[(0,l.jsxs)("div",{className:m().nearby_wrap,children:[(0,l.jsx)("div",{className:m().title,children:!!s&&u.current[s]}),(0,l.jsxs)("div",{className:m().address,onClick:r,children:[(0,l.jsx)("span",{className:m().address_label,children:v}),v&&(0,l.jsx)("i",{className:"iconfont icon-arrow-line-right"})]})]}),(0,l.jsx)(a.lQ,{className:m().store_dine_switch,mode:"simplify",onChange:o,value:s,types:i})]})},h=i(15802),f=i.n(h),b=e=>{let{text:t,title:i}=e;return i||t?(0,l.jsxs)("div",{className:f().empty,children:[(0,l.jsx)("div",{className:f().empty_icon}),i&&(0,l.jsx)("div",{className:f().title,children:i}),t&&(0,l.jsx)("div",{className:f().text,children:t})]}):null},x=i(84851),y=i(58571),N=i.n(y);let S="Live location available during open hours",j=e=>String((null==e?void 0:e.gpsDeviceId)||"").trim(),T=e=>(null==e?void 0:e.gpsEnabled)!==!0?"none":j(e)?"live":"truck",E=e=>{let t=T(e);return(null==e?void 0:e.closed)&&"live"===t?"truck":t},k=e=>(null==e?void 0:e.gpsEnabled)===!0,L=e=>k(e)&&(null==e?void 0:e.closed),I=e=>k(e)&&!j(e),w=e=>k(e)&&((null==e?void 0:e.closed)||I(e)),D=e=>null!=e&&""!==String(e).trim(),C=e=>{if(!D(null==e?void 0:e.latitude)||!D(null==e?void 0:e.longitude))return!1;let t=Number(null==e?void 0:e.latitude),i=Number(null==e?void 0:e.longitude);return Number.isFinite(t)&&Number.isFinite(i)},O=e=>!!C(e)&&(!k(e)||!w(e)),M=e=>{let{mode:t}=e;return"live"===t?(0,l.jsxs)("span",{className:N().live_location_tag,children:[(0,l.jsx)("span",{className:N().live_location_dot}),(0,l.jsx)("span",{children:"Live location"})]}):"truck"===t?(0,l.jsxs)("span",{className:N().food_truck_tag,children:[(0,l.jsx)("i",{className:"iconfont icon-ideliver-index ".concat(N().food_truck_icon)}),(0,l.jsx)("span",{children:"Food truck"})]}):null},P=e=>{let{item:t,mode:i,getAddressText:n,staticAddress:o}=e;return"live"===i?(0,l.jsxs)("div",{className:"".concat(N().address," ").concat(N().live_location_address),children:[(0,l.jsx)("i",{className:"iconfont icon-gps ".concat(N().address_icon)}),(0,l.jsx)("span",{className:N().now_at,children:"Now at"}),(0,l.jsx)("span",{children:(null==n?void 0:n(t))||o||(null==t?void 0:t.fullAddress)||(null==t?void 0:t.address)||"-"})]}):"truck"===i?I(t)?null:(0,l.jsxs)("div",{className:"".concat(N().address," ").concat(N().food_truck_address),children:[(0,l.jsx)("i",{className:"iconfont icon-gps ".concat(N().address_icon)}),(0,l.jsx)("span",{children:S})]}):(0,l.jsxs)(l.Fragment,{children:[(null==t?void 0:t.addressDescription)&&(0,l.jsx)("div",{className:N().address,children:t.addressDescription}),(0,l.jsx)("div",{className:N().address,children:(null==n?void 0:n(t))||o||(null==t?void 0:t.address)})]})};var A=(0,x.Pi)(e=>{let{items:t=[],diningType:i,active:o,onSelect:s,getAddressText:a,isLoading:d,onStarMyOrder:r,getCloseText:u,dineProps:v,isShowSelectButton:m,staticStoreList:h}
1=e,[f,x]=(0,n.useState)(!0),y=(0,n.useMemo)(()=>i===String(p.uB.DELIVERY),[i,p.uB]),S=(0,n.useMemo)(()=>d?[{},{},{},{}]:t,[t,d]),j=e=>{var t;return(!y||null==e||!e.closed||!!(null==e?void 0:null===(t=e.delivery)||void 0===t?void 0:t.futureEnable))&&(null==e?void 0:e.id)&&o&&(null==e?void 0:e.id)===o},T=(0,n.useMemo)(()=>{if(!(null==S?void 0:S.length)){let e=y?"No Delivery Available":"No stores",t=y?"No delivery available for this address. Please try another address or change the dining type.":"Currently, there are no available stores to place an order from. Please come back later.";return(0,l.jsx)(b,{text:t,title:e})}return null==S?void 0:S.map((e,t)=>{var i,n,o;let r=E(e),v=w(e)?"-":null==e?void 0:e.distanceDescription;return(0,l.jsx)("div",{className:_()(N().tabs_item,{[N().active]:j(e),[N().tabs_item_close]:e.closed&&y&&!(null===(i=e.delivery)||void 0===i?void 0:i.futureEnable)}),onClick:()=>{var t;(!e.closed||!y||(null===(t=e.delivery)||void 0===t?void 0:t.futureEnable))&&(null==s||s(e))},role:"button",tabIndex:e.closed&&y&&!(null===(n=e.delivery)||void 0===n?void 0:n.futureEnable)?-1:0,"aria-label":"Select ".concat(e.name),"aria-pressed":j(e),"aria-disabled":!!(e.closed&&y&&!(null===(o=e.delivery)||void 0===o?void 0:o.futureEnable)),onKeyDown:t=>{var i;t.target===t.currentTarget&&["Enter"," "].includes(t.key)&&(t.preventDefault(),(!e.closed||!y||(null===(i=e.delivery)||void 0===i?void 0:i.futureEnable))&&(null==s||s(e)))},children:(0,l.jsxs)(c.default,{loading:d,active:!0,paragraph:{rows:2},children:[(0,l.jsxs)("div",{className:N().tabs_title_row,children:[(0,l.jsx)("div",{className:N().tabs_title,children:e.name}),(0,l.jsx)(M,{mode:r})]}),(0,l.jsx)("div",{className:N().tabs_status,children:e.closed?(0,l.jsxs)("span",{className:N().close,children:[(0,l.jsx)("span",{className:N().close_text,children:"CLOSED"}),u(e.nextOpenTime,e.closeTime,null==e?void 0:e.timeZone)]}):(0,l.jsx)("span",{className:N().open,children:"OPEN"})}),(0,l.jsx)(P,{item:e,mode:r,getAddressText:a}),y&&(0,l.jsxs)("div",{className:N().miles,children:[(0,l.jsx)("i",{className:"iconfont icon-ideliver"}),(0,l.jsx)("span",{children:v})]}),j(e)&&(0,l.jsx)("i",{className:"iconfont icon-result-ok"})]})},t)})},[t,d,o,y]),k=(0,n.useMemo)(()=>{if((null==S?void 0:S.length)&&(null==h?void 0:h.length))return null==h?void 0:h.map((e,t)=>{var i,n,o,a;let r=E(e);return(0,l.jsx)("div",{className:_()(N().tabs_item,{[N().active]:j(e),[N().tabs_item_close]:e.closed&&y&&!(null===(i=e.delivery)||void 0===i?void 0:i.futureEnable)}),onClick:()=>{var t;(!e.closed||!y||(null===(t=e.delivery)||void 0===t?void 0:t.futureEnable))&&(null==s||s(e))},role:"button",tabIndex:e.closed&&y&&!(null===(n=e.delivery)||void 0===n?void 0:n.futureEnable)?-1:0,"aria-label":"Select ".concat(e.name),"aria-pressed":j(e),"aria-disabled":!!(e.closed&&y&&!(null===(o=e.delivery)||void 0===o?void 0:o.futureEnable)),onKeyDown:t=>{var i;t.target===t.currentTarget&&["Enter"," "].includes(t.key)&&(t.preventDefault(),(!e.closed||!y||(null===(i=e.delivery)||void 0===i?void 0:i.futureEnable))&&(null==s||s(e)))},children:(0,l.jsxs)(c.default,{loading:d,active:!0,paragraph:{rows:2},children:[(0,l.jsxs)("div",{className:N().tabs_title_row,children:[(0,l.jsx)("div",{className:N().tabs_title,children:e.name}),(0,l.jsx)(M,{mode:r})]}),(0,l.jsx)("div",{className:N().address,style:{lineHeight:"16px"},children:null==e?void 0:null===(a=e.timeList)||void 0===a?void 0:a.map((e,t)=>(0,l.jsx)("div",{children:e},"".concat(e,"-").concat(t)))}),(0,l.jsx)(P,{item:e,mode:r,staticAddress:null==e?void 0:e.address}),j(e)&&(0,l.jsx)("i",{className:"iconfont icon-result-ok"})]})},t)})},[h,S]);return(0,n.useEffect)(()=>{((null==v?void 0:v.types)&&v.types.length>0||!d)&&x(!1)},[v,d]),(0,l.jsxs)("div",{className:N().store_tabs,children:[(0,l.jsx)("div",{className:N().header,children:(0,l.jsxs)(c.default,{className:N().skeleton,loading:f,active:!0,title:!1,paragraph:{rows:2,width:"60%"},children:[(0,l.jsx)("div",{className:N().title,children:"Select Store"}),(0,l.jsx)(g,{className:N().controls_region,onSelect:s,...v})]})}),(0,l.jsxs)("div",{className:N().tabs_content,style:{paddingBottom:m?"calc(115px + env(safe-area-inset-bottom) + env(safe-area-inset-top))":"calc(25px + env(safe-area-inset-bottom) + env(safe-area-inset-top))"},children:[T,k]})]})}),B=i(47541),V=i(89798),R=(e,t,i)=>{if(e){let t=(0,V.Gb)(e,i,"yyyyMMdd"),n=(0,V.Gb)((0,V.rk)(new Date().getTime(),1),i,"yyyyMMdd");return(0,V.JK)(e)?(0,l.jsxs)("span",{children:["- Open at\xa0",(0,l.jsx)("span",{children:(0,V.Gb)(e,i,"h:mm a")})]}):t===n?(0,l.jsxs)("span",{children:["- Open at tomorrow\xa0",(0,l.jsx)("span",{children:(0,V.Gb)(e,i,"h:mm a")})]}):(0,l.jsxs)("span",{children:["- Open at\xa0",(0,l.jsx)("span",{children:(0,V.Gb)(e,i,"EEE h:mm a")})]})}if(t)return(0,l.jsxs)(l.Fragment,{children:["- Closing soon",(0,V.Gb)(t,null,"h:mm a")]})},F=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=null;if(e){let i=[];["street","cityName","stateName","zipCode"].forEach(t=>{let l=e[t];l&&(null==l?void 0:l.length)&&i.push(l)});let l=e.countryName||"USA";i.push(l),t=i.join(", ")}return t},Y=i(88737),Z=i(54331),q=()=>{let{storeDiningType:e}
1=Z.commonStore,[t,i]=(0,n.useState)(!0),[l,o]=(0,n.useState)(null),[s,a]=(0,n.useState)(null),[d,r]=(0,n.useState)(null);(0,n.useEffect)(()=>{u()},[]),(0,n.useEffect)(()=>{c()},[e,s]);let c=()=>{if(i(!0),!e){i(!1);return}if(i(!0),e===String(p.uB.DELIVERY)){let e=Y.t.getItem("__delivery_address");o(e||s)}else o(s);i(!1)},u=async()=>{i(!0);try{let e=await (0,Y.k$)();a(e),e&&o(e)}catch(e){}i(!1)};return{location:l,currentLocation:s,isLoading:t,error:d,onChangeLocation:t=>{o(t),e===String(p.uB.DELIVERY)&&((null==t?void 0:t.addressId)?Y.t.setItem("__delivery_address",t):(Y.t.setItem("__delivery_address",null),Y.t.setItem("__delivery_address_default",null)))},onChangeCurrentLocation:e=>{a(e)}}},J=e=>{let{shopList:t,locationInterface:i,activeStore:l}=e,{appConfig:o}=(0,s.s6)(),[a,d]=(0,n.useState)(null),[r,c]=(0,n.useState)(null);(0,n.useEffect)(()=>{u()},[null==i?void 0:i.location,JSON.stringify(t)]),(0,n.useEffect)(()=>{_()},[JSON.stringify(t),l]);let u=()=>{let{location:e}=i||{},l=null==t?void 0:t.find(O);(null==e?void 0:e.longitude)&&(null==e?void 0:e.latitude)?d({lng:Number(e.longitude),lat:Number(e.latitude)}):l&&!i.loading&&d({lng:Number(l.longitude),lat:Number(l.latitude)})},_=()=>{let e=[...t||[],...(null==o?void 0:o.staticStoreList)||[]],i=[],n=null==e?void 0:e.filter(e=>e.id===(null==l?void 0:l.id)),s=m();if(null==t?void 0:t.length){if((null==l?void 0:l.id)&&(null==n?void 0:n.length)){if(!O(n[0])){(null==r?void 0:r.length)||c(s);return}i=null==n?void 0:n.map(v)}else i=s}c(i)},v=e=>{var t,i;return{lat:Number(e.latitude),lng:Number(e.longitude),icon:e.closed?null==o?void 0:null===(t=o.shop)||void 0===t?void 0:t.closeLogo:null==o?void 0:null===(i=o.shop)||void 0===i?void 0:i.logo,title:e.name,id:e.id,cityName:e.cityName,addressText:w(e)?S:F(e)}},m=()=>{var e,l,n,o;let s=(null==t?void 0:t.filter(O))||[],a=s.map(v);return(null===(e=i.location)||void 0===e?void 0:e.latitude)&&(null===(l=i.location)||void 0===l?void 0:l.longitude)&&a.push({lat:Number(null===(n=i.location)||void 0===n?void 0:n.latitude),lng:Number(null===(o=i.location)||void 0===o?void 0:o.longitude),icon:"/map_position.svg"}),a};return{markerPosition:r,mapCenter:a,onSelectStore:e=>{try{if(!e)return;if(!O(e)){(null==r?void 0:r.length)||c(m());return}let{latitude:t,longitude:i}=e,l=Number(t),n=Number(i),o={...v(e),lat:l,lng:n};c([o]),d({lat:l,lng:n})}catch(e){console.warn(e)}}}},Q=i(47638),U=function(){var e;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{locationInterface:i}=t,{updateState:l,storeDiningType:o}=Z.commonStore,{appConfig:a}=(0,s.s6)(),d=null==a?void 0:a.orgId,r=(null==a?void 0:a.filterShopForIds)||[],c=(0,s.QT)(Q.Ae.getShopList),u=(0,s.QT)({url:Q.Ae.getDeliveryShopList,method:"post",cancelPrevious:!0}),[_,v]=(0,n.useState)(null),[m,g]=(0,n.useState)(!1),h=(0,n.useMemo)(()=>{var e;return null===(e=c.data)||void 0===e?void 0:e.diningTypeShopList.map(e=>({...e,diningType:(0,p.mc)(e.diningType)}))},[null===(e=c.data)||void 0===e?void 0:e.diningTypeShopList]),f=async function(e){arguments.length>1&&void 0!==arguments[1]&&arguments[1];let t=e||_;if(t!==String(p.uB.DELIVERY))return;let{isLoading:l,location:n}=i;if(!l&&n)return await u.send(n)},b=async()=>{let{location:e}=i;if(!d||i.isLoading)return;let t={};(null==e?void 0:e.longitude)&&(null==e?void 0:e.latitude)&&(t.longitude=e.longitude,t.latitude=e.latitude,t.geofenceLimit="1"),g(!0);let{data:l}=await c.send(t);x(y((null==l?void 0:l.diningTypeShopList)||[])),g(!1)};(0,n.useEffect)(()=>{b()},[d,i.isLoading,JSON.stringify(i.location)]),(0,n.useEffect)(()=>{_===String(p.uB.DELIVERY)&&i.location&&f()},[d,i.isLoading,JSON.stringify(i.location),_,o]);let x=e=>{if(!(null==e?void 0:e.length))return;let t=null,i=sessionStorage.getItem("__store_dining_type")||_||sessionStorage.getItem("__dining_type"),n=null==e?void 0:e.find(e=>String(e.diningType)===i);return(t=i&&n?String(n.diningType):String(e[0].diningType))&&(v(t),sessionStorage.setItem("__store_dining_type",t),l({storeDiningType:t})),t},y=e=>null==e?void 0:e.map(e=>({...e,diningType:(0,p.mc)(e.diningType)})),N=e=>null==e?void 0:e.map(e=>{var t;return{...e,diningTypes:null===(t=e.diningTypes)||void 0===t?void 0:t.map(e=>(0,p.mc)(e))}}),S=(0,n.useMemo)(()=>null==h?void 0:h.map(e=>e.diningType),[h]),j=(0,n.useMemo)(()=>
1{if(_===String(p.uB.DELIVERY))return i.location?u.loading?[]:N(null==u?void 0:u.data):[];{var e,t,l,n,o;let i=(null===(t=y(null===(l=c.data)||void 0===l?void 0:l.diningTypeShopList))||void 0===t?void 0:null===(e=t.find(e=>String(e.diningType)===_))||void 0===e?void 0:e.shopIds)||[];return null==c?void 0:null===(o=c.data)||void 0===o?void 0:null===(n=o.shopList)||void 0===n?void 0:n.filter(e=>null==i?void 0:i.includes(e.id))}},[_,u,c,i.location]),T=(0,n.useMemo)(()=>(null==r?void 0:r.length)>0?null==j?void 0:j.filter(e=>null==r?void 0:r.includes(null==e?void 0:e.id)):j,[r,j]);return{dineTypes:S,diningType:_,onChange:e=>{e===String(p.uB.DELIVERY)&&f(e),v(e),l({storeDiningType:e}),sessionStorage.setItem("__store_dining_type",e)},shopList:T,loading:m||u.loading}},G=i(1836),K=i(93659),z=i.n(K),W=()=>{let e=(0,s.QT)({url:Q.Ae.addressCheck,method:"post",isTips:!1}),t=async(t,i)=>{try{var n,o,s,d,r;let c=await e.send({...t});if(null==c?void 0:c.data){let e=Y.t.getItem("__delivery_address");(null==e?void 0:e.addressId)&&Y.t.setItem("__delivery_address_default",e),null==i||null===(n=i.onSuccess)||void 0===n||n.call(i)}else{let e=(null==c?void 0:null===(o=c.status)||void 0===o?void 0:o.code)===91004||(null==c?void 0:null===(s=c.status)||void 0===s?void 0:s.code)===91005||(null==c?void 0:null===(d=c.status)||void 0===d?void 0:d.code)===91002;a.u_.alert({className:"".concat(z().error_modal," ").concat(e?null:z().not_special),title:"Delivery Unavailable",content:(0,l.jsx)("p",{children:e?"Sorry, we can't deliver to your address right now. Please try another store or change your address":null==c?void 0:null===(r=c.status)||void 0===r?void 0:r.msg}),onOk:()=>{var t;e&&(null==i||null===(t=i.onError)||void 0===t||t.call(i))},onOkText:e?"Change Address":"OK"})}}catch(e){console.error(e)}};return{checkDoorDash:t,checkLoading:null==e?void 0:e.loading,getCurLocation:()=>{(0,G.Z)(z().location_permission_modal)},checkToAskLocation:()=>{a.u_.alert({title:"Share your location",content:"This helps us find nearby restaurants and provide a better mobile ordering experience.",onOkText:"Setting",onCancelText:"Not now",onOk:()=>(0,G.Z)(z().location_permission_modal),closable:!1})}}},H=i(56920),X=i(70211),$=i.n(X),ee=i(32459),et=i(38711);let ei="DOORDASH";var el=(0,o.Gq)(()=>{let{appConfig:e}=(0,s.s6)(),t=(0,s.ev)(),i=(0,s.hU)(),{staticStoreList:o}=e||{},d=(0,s.QT)(B.Z.getShopDetail),{selectStore:c}=(0,s.oR)(),u=q(),{dineTypes:_,diningType:v,onChange:m,shopList:g,loading:h}=U({locationInterface:u}),[f,b]=(0,n.useState)(null),[x,y]=(0,n.useState)(!1),[N,j]=(0,n.useState)(!1),{mapCenter:T,markerPosition:E,onSelectStore:k}=J({shopList:g,locationInterface:u,activeStore:f,diningType:v}),{checkDoorDash:I,checkLoading:D,getCurLocation:C,checkToAskLocation:O}=W(),M=(0,n.useMemo)(()=>!!w(f)||null!=f&&!!f.closed&&(!!L(f)||v===String(p.uB.DELIVERY)&&!f.futureEnable),[f,v]),P=function(e){arguments.length>1&&void 0!==arguments[1]&&arguments[1],b(e),k(e)},V=t=>{if(null==t?void 0:t.id){let i=[...g||[],...(null==e?void 0:e.staticStoreList)||[]],l=null==i?void 0:i.find(e=>e.id===t.id);P(l)}},Z=()=>{f&&(d.send({shopId:f.id}),t.open())},Q=()=>{if(!M&&v&&f.id){var e,t,i;if(null==f?void 0:f.url){window.open(null==f?void 0:f.url);return}let l=()=>{sessionStorage.setItem("__dining_type",v),sessionStorage.setItem("__store_dining_type",v),c(f.id),(0,ee.yA)()};if(v===String(p.uB.DELIVERY)&&(null==f?void 0:null===(e=f.delivery)||void 0===e?void 0:e.upstreamType)!==ei){let e=Y.t.getItem("__delivery_address");(null==e?void 0:e.addressId)&&Y.t.setItem("__delivery_address_default",e),l()}else if(v===String(p.uB.DELIVERY)&&(null==f?void 0:null===(t=f.delivery)||void 0===t?void 0:t.upstreamType)===ei)I({...null==u?void 0:u.location,address:(null==u?void 0:null===(i=u.location)||void 0===i?void 0:i.address)+", "+(null==u?void 0:u.location.country),shopId:null==f?void 0:f.id},{onSuccess:l,onError:()=>j(!0)});else{if(null==f?void 0:f.outRange){a.u_.alert({className:"overall_situation_modal_tips modal_title_p5",closable:!1,content:null===et.Ef||void 0===et.Ef?void 0:et.Ef.content,onOkText:null===et.Ef||void 0===et.Ef?void 0:et.Ef.onOkText,closeIcon:!1,onOk:()=>
1{l(),Y.t.setItem("__delivery_address_default",null)}});return}l(),Y.t.setItem("__delivery_address_default",null)}}},G=()=>{y(!0)},K=()=>{j(!0)},z=()=>{v===String(p.uB.DELIVERY)?K():G()},X=function(e){let t=!(arguments.length>1)||void 0===arguments[1]||arguments[1],i=arguments.length>2?arguments[2]:void 0;y(!1),t&&j(!1),u.onChangeLocation(e),i&&u.onChangeCurrentLocation(e)},el=(0,n.useMemo)(()=>g&&!((null==g?void 0:g.length)<=0)&&T?(0,l.jsx)(a.D5,{center:T,markerPosition:E,onMarker:V}):(0,l.jsxs)("div",{className:$().no_position,children:[(0,l.jsx)("i",{className:"iconfont istoreMap"}),(0,l.jsx)("div",{className:"no_position_text",children:"No stores"})]}),[T,E,g]),en=(0,n.useMemo)(()=>w(f)?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("div",{className:$().food_truck_map_overlay}),(0,l.jsxs)("div",{className:$().food_truck_map_hint,children:[(0,l.jsx)("span",{className:$().food_truck_map_icon,children:(0,l.jsx)("i",{className:"iconfont icon-ideliver-index"})}),(0,l.jsx)("span",{children:S})]})]}):null,[f]),eo=(0,n.useMemo)(()=>{if(f&&(null==f?void 0:f.id))return(null==g?void 0:g.find(e=>(null==e?void 0:e.id)===(null==f?void 0:f.id)))||(null==o?void 0:o.find(e=>(null==e?void 0:e.id)===(null==f?void 0:f.id)))},[f,g,o]),es=(0,n.useMemo)(()=>{var e,t,i,l,n,o;let s=d.data;return f?(null==s?void 0:s.id)&&String(s.id)!==String(f.id)?f:{...f,...s,closed:null!==(e=null==f?void 0:f.closed)&&void 0!==e?e:null==s?void 0:s.closed,closeTime:null!==(t=null==f?void 0:f.closeTime)&&void 0!==t?t:null==s?void 0:s.closeTime,nextOpenTime:null!==(i=null==f?void 0:f.nextOpenTime)&&void 0!==i?i:null==s?void 0:s.nextOpenTime,nextOpenTimeDescription:null!==(l=null==f?void 0:f.nextOpenTimeDescription)&&void 0!==l?l:null==s?void 0:s.nextOpenTimeDescription,gpsEnabled:null!==(n=null==f?void 0:f.gpsEnabled)&&void 0!==n?n:null==s?void 0:s.gpsEnabled,gpsDeviceId:null!==(o=null==f?void 0:f.gpsDeviceId)&&void 0!==o?o:null==s?void 0:s.gpsDeviceId}:s},[f,d.data]);return(0,n.useEffect)(()=>{v===String(p.uB.DELIVERY)&&C()},[v]),(0,n.useEffect)(()=>{(0,ee.gL)("choose_store")},[]),(0,l.jsxs)("div",{className:"".concat($().store," ").concat(i.isMobile&&$().store_mobile),children:[(0,l.jsx)(a.$4,{title:(0,Y.aR)("Select Store")}),(0,l.jsx)(a.hW,{isShow:i.isPc,children:(0,l.jsx)(A,{staticStoreList:o,getAddressText:F,items:g,dineProps:{types:_,value:v||void 0,onChange:m,location:u.location,onAddress:z},active:null==f?void 0:f.id,onSelect:e=>P(e,!0),getCloseText:R,diningType:v,isLoading:h||u.isLoading})}),(0,l.jsxs)("div",{className:$().map,children:[el,en,(0,l.jsx)(a.hW,{isShow:!!eo&&i.isPc,children:(0,l.jsxs)("div",{className:$().buttons,children:[(0,l.jsx)(r(),{type:"default",onClick:Z,className:"".concat($().button," ").concat($().button_default),children:"Store Info"}),(0,l.jsx)(r(),{type:"primary",disabled:M,onClick:Q,className:$().button,loading:D,children:"Start my Order"})]})})]}),(0,l.jsx)(a.hW,{isShow:i.isMobile,children:(0,l.jsx)("div",{className:$().mobile_content,children:(0,l.jsx)(A,{staticStoreList:o,getAddressText:F,items:g,dineProps:{types:_,value:v,onChange:m,location:u.location,onNearbyAddress:G,onAddress:z},active:null==f?void 0:f.id,onSelect:e=>P(e,!0),getCloseText:R,diningType:v,isLoading:h||u.isLoading,isShowSelectButton:eo})})}),(0,l.jsx)(a.hW,{isShow:!!eo&&i.isMobile,children:(0,l.jsxs)("div",{className:"".concat($().buttons," ").concat($().mobile_buttons),children:[(0,l.jsx)(r(),{type:"default",onClick:Z,className:$().button,children:"Store Info"}),(0,l.jsx)(r(),{type:"primary",disabled:M,onClick:Q,className:$().button,loading:D,children:"Start my Order"})]})}),(0,l.jsx)(a.lb,{...t,isLoading:d.loading,dataSource:es}),(0,l.jsx)(a.vM,{currentLocation:null==u?void 0:u.currentLocation,isOpen:x,onCancel:()=>{y(!1)},onLocationClick:X}),(0,l.jsx)(a.qo,{currentLocation:null==u?void 0:u.currentLocation,location:u.location,isOpen:N,defaultPage:H.PageType.SelectPage,onCancel:()=>{j(!1)},onLocation:X})]})})},35584:function(e){e.exports={style:{fontFamily:"'__notoSans_59c820', '__notoSans_Fallback_59c820'",fontWeight:400,fontStyle:"normal"},className:"__className_59c820"}},27799:function(e){e.exports={style:{fontFamily:"'__openSans_1a267b', '__openSans_Fallback_1a267b'",fontStyle:"normal"},className:"__className_1a267b"}},93659:function(e){e.exports={error_modal:"hooks_error_modal__ZJwZS",location_permission_modal:"hooks_location_permission_modal__03_LI",not_special:"hooks_not_special__vckS1","text-animation":"hooks_text-animation__JkQp2"}},70211:function(e){e.exports={store:"store_store__b28QF",map:"store_map__weDx5",buttons:"store_buttons__Kcwz9",button:"store_button__9VAe0",active:"store_active__UL_Fm",popupClass:"store_popupClass___UTrA",select_store:"store_select_store__wgCzc",tabs_item_mobile:"store_tabs_item_mobile__2ga6x",tabs_title:"store_tabs_title__zTFrN",tabs_status:"store_tabs_status__6ecU8",open:"store_open__dHRet",close:"store_close__nFQdp",close_text:"store_close_text__IxDve",address:"store_address__Pt6t6",store_mobile:"store_store_mobile__CmvNm",mobile_content:"store_mobile_content__vw0qD",dining:"store_dining__ELC1T",content:"store_content__ldQga",mobile_content_title:"store_mobile_content_title__EZyB_",text:"store_text__H_vQ1",active_mobile:"store_active_mobile__lVcf_",mobile_buttons:"store_mobile_buttons__ORUjb",location_permission_modal:"store_location_permission_modal__3zsBq",no_position:"store_no_position__z91g6",food_truck_map_overlay:"store_food_truck_map_overlay__OT9vD",food_truck_map_hint:"store_food_truck_map_hint__qMN_p",food_truck_map_icon:"store_food_truck_map_icon__96lhq","text-animation":"store_text-animation__zo0Tp"}},24019:function(e){e.exports={dine:"dine_dine__sDcI0",nearby_wrap:"dine_nearby_wrap__VfMfM",title:"dine_title__YTMNE",address:"dine_address__UgB6i",address_label:"dine_address_label__aknuR",store_dine_switch:"dine_store_dine_switch__gVq5r","text-animation":"dine_text-animation__FyJCw"}},15802:function(e){e.exports={empty:"empty_empty__PGCpL",empty_icon:"empty_empty_icon__qBEM5",title:"empty_title__mmyxW",text:"empty_text__7nhxQ","text-animation":"empty_text-animation__ACK6B"}},58571:function(e){e.exports={store_tabs:"storeTabs_store_tabs__SXEvN",header:"storeTabs_header__O3QAe",title:"storeTabs_title__lhIOc",controls_region:"storeTabs_controls_region__WgmCx",tabs_content:"storeTabs_tabs_content__T8a3C",tabs_item:"storeTabs_tabs_item__k7xq_",tabs_title_row:"storeTabs_tabs_title_row__9oGzt",tabs_title:"storeTabs_tabs_title__rW5WN",live_location_tag:"storeTabs_live_location_tag__P_XVJ",food_truck_tag:"storeTabs_food_truck_tag__naIwr",live_location_dot:"storeTabs_live_location_dot__DVPn9","live-location-pulse":"storeTabs_live-location-pulse__P_k_r",food_truck_icon:"storeTabs_food_truck_icon__Pm146",tabs_status:"storeTabs_tabs_status__8xKVG",open:"storeTabs_open__mkAvK",close:"storeTabs_close__tyEiU",close_text:"storeTabs_close_text__8B3Px",address:"storeTabs_address__Jhz_E",live_location_address:"storeTabs_live_location_address__Nix2E",food_truck_address:"storeTabs_food_truck_address__pVZc6",address_icon:"storeTabs_address_icon__b_Jyz",now_at:"storeTabs_now_at__LBIVT",miles:"storeTabs_miles__PjpcA",active:"storeTabs_active__JIi7K",tabs_item_close:"storeTabs_tabs_item_close__Cw8PS",skeleton:"storeTabs_skeleton__6CEyH","text-animation":"storeTabs_text-animation__poZIf"}}},function(e){e.O(0,[5634,47689,59495,49774,92888,40179],function(){return e(e.s=70176)}),_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.