PageSourceSearch

https://www.kitchenno1.online/_next/static/chunks/pages/quickly-order/order-d4f811a244ae0ecf.js

js kitchenno1.online collected 2026-09-24 15:08:50 UTC 23,375 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[80106],{99743:function(t,e,i){(window.__NEXT_P=window.__NEXT_P||[]).push(["/quickly-order/order",function(){return i(66664)}])},60751:function(t,e,i){"use strict";i.d(e,{wI:function(){return s.Z},XC:function(){return o.Z},Gq:function(){return n}});var o=i(64115),l=i(84851),n=(t,e)=>{let i=(0,l.Pi)(t);return(0,o.Z)(i,e)},s=i(64756)},64756:function(t,e,i){"use strict";var o=i(85893),l=i(25142),n=i(24344);let s=t=>{var e,i,s;let{appConfig:r}=(0,n.s6)(),d=(0,n.hU)();return(0,o.jsxs)(l.Ar,{children:[(0,o.jsx)(l.NV,{}),(0,o.jsxs)("div",{style:{paddingTop:(null==d?void 0:d.isMobile)?"calc(var(--m-l-h-height)":"calc(var(--l-h-height)"},children:["   ",t.children]}),(0,o.jsx)(l.q6,{isOpen:!!(null==r?void 0:null===(e=r.app)||void 0===e?void 0:e.drainageImageStatus)&&d.isPc,images:{pc:null==r?void 0:null===(i=r.app)||void 0===i?void 0:i.drainageImageLink,mobile:null==r?void 0:null===(s=r.app)||void 0===s?void 0:s.drainageImageMobileLink}}),(0,o.jsx)(l.Ar.Footer,{})]})},r=t=>{var e;return null!==(e=null==t?void 0:t.getLayout)&&void 0!==e?e:t=>(0,o.jsx)(s,{children:t})};e.Z=(t,e)=>{let i=r(e);return t.getLayout||(t.getLayout=i),t}},19346:function(t,e,i){"use strict";i.d(e,{_:function(){return s}});var o=i(91084);class l extends Error{constructor(t="Unable to synchronize the cart",e,i=!1){super(t),this.name="AiPhoneCartSyncBlockedError",this.cause=e,this.retryableRebuild=i}}let n=t=>"function"==typeof structuredClone?structuredClone(t):JSON.parse(JSON.stringify(t));class s{getStatus(){return this.status}getDesired(){return n(this.desired)}updateDesired(t){var e,i;this.desired=n(t),this.desiredVersion+=1,this.blockedError=null,null===(e=(i=this.options).onDesired)||void 0===e||e.call(i,n(this.desired)),this.activePromise||this.schedule()}setStatus(t){var e,i;this.status=t,null===(e=(i=this.options).onStatus)||void 0===e||e.call(i,t)}schedule(){this.trailingTimer&&clearTimeout(this.trailingTimer),this.trailingTimer=setTimeout(()=>void this.dispatch(!1),this.trailingMs),this.maxTimer||(this.maxTimer=setTimeout(()=>void this.dispatch(!1),this.maxWaitMs)),this.setStatus("SCHEDULED")}clearTimers(){this.trailingTimer&&clearTimeout(this.trailingTimer),this.maxTimer&&clearTimeout(this.maxTimer),this.trailingTimer=null,this.maxTimer=null}async synchronize(t){let e,i=await this.options.getCloudCart();if((0,o.Am)(i,t))return i;let n=(0,o.Lu)(i,t);if(!n.length)return i;try{await this.options.editCloudCart(n)}catch(t){e=t}if(i=await this.options.getCloudCart(),!(0,o.Am)(i,t))throw new l("Cloud cart did not converge; the cart edit was not retried.",e);return i}async rebuild(t){let e;if(!(t.dishList||[]).length&&!(t.comboList||[]).length)return{cart:t,checkout:null,cartEmpty:!0};let i=this.options.retryRebuild?2:1;for(let o=0;o<i;o+=1)try{let e=await this.options.rebuildCheckout();return{cart:t,checkout:e,cartEmpty:!1}}catch(t){e=t}throw new l(this.options.retryRebuild?"Checkout rebuild did not complete after a safe retry.":"Checkout creation result is unknown and was not retried.",e,!0===this.options.retryRebuild)}dispatch(t){if(this.clearTimers(),this.activePromise)return this.activePromise;if(this.blockedError)return Promise.reject(this.blockedError);if(!t&&this.ackVersion===this.desiredVersion)return Promise.resolve(null);let e=n(this.desired),i=this.desiredVersion;this.setStatus("IN_FLIGHT");let s=(async()=>{try{var t,s,r,d;let l=await this.synchronize(e),a=await this.rebuild(l);this.ack=n(l),this.ackVersion=i;let u=this.desiredVersion!==i;return this.desiredVersion===i?this.desired=n(l):this.desired=(0,o.j3)(l,this.desired),this.setStatus("IDLE"),null===(t=(s=this.options).onSuccess)||void 0===t||t.call(s,n(a)),u&&(null===(r=(d=this.options).onDesired)||void 0===r||r.call(d,n(this.desired))),a}catch(e){let t=e instanceof l?e:new l(e instanceof Error?e.message:void 0,e);throw this.blockedError=t,this.setStatus("BLOCKED"),t}})();return this.activePromise=s,s.catch(()=>void 0).finally(()=>{this.activePromise===s&&(this.activePromise=null),!this.blockedError&&this.desiredVersion>this.ackVersion&&this.dispatch(!1)}),s}async flush(){var t;let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];for(this.clearTimers(),(null===(t=this.blockedError)||void 0===t?void 0:t.retryableRebuild)&&(this.blockedError=null,this.setStatus("IDLE"),e=!0);;){if(this.activePromise&&await this.activePromise,this.blockedError)throw this.blockedError;if(!e&&this.ackVersion===this.desiredVersion)return{cart:n(this.ack),checkout:null,cartEmpty:!1};let t=await this.dispatch(e);if(e=!1,t&&this.ackVersion===this.desiredVersion)return t}}destroy(){this.clearTimers()}constructor(t){var e,i;this.desiredVersion=0,this.ackVersion=0,this.trailingTimer=null,this.maxTimer=null,this.activePromise=null,this.blockedError=null,this.status="IDLE",this.options=t,this.trailingMs=null!==(e=t.trailingMs)&&void 0!==e?e:350,this.maxWaitMs=null!==(i=t.maxWaitMs)&&void 0!==i?i:1e3,this.ack=n(t.initialAck),this.desired=n(t.initialAck)}}}
1,66664:function(t,e,i){"use strict";i.r(e),i.d(e,{default:function(){return U}});var o=i(85893),l=i(67294),n=i(5152),s=i.n(n),r=i(25142),d=i(37066),a=i(57633),u=i(54331),c=i(11163),h=i(25312),v=i.n(h),m=i(38711),p=t=>{let{updateState:e}=u.commonStore,i=(0,l.useRef)(null),{diningTypeList:o=[],deliveryConfig:n={},shopClosed:s=!1}=t,{futureEnable:h}=n,{query:p}=(0,c.useRouter)();(0,a.Z)(["diningType","note","sid"]);let[g,_]=(0,l.useState)(!1),[f,S]=(0,l.useState)(null),b=(0,l.useMemo)(()=>(null==o?void 0:o.length)||0,[o]);(0,l.useEffect)(()=>{I()},[p,o,b]);let I=()=>{if(!b)return;let{type:t,diningType:e,note:i}=p;if(e&&i&&[d.uB.PICKUP,d.uB.DINEIN,d.uB.TAKEOUT].includes(Number(e))){N(e);return}if(b>1&&_(!0),t){let e=String((0,d.vw)(t));N((null==o?void 0:o.includes(Number(e)))?e:String(o[0]));return}y()},y=()=>{if(b<=0)return;let t=sessionStorage.getItem("__dining_type");if(t){let e=(null==o?void 0:o.includes(Number(t)))?t:String(o[0]),i=T(e);if(i){E((null==o?void 0:o.includes(Number(t)))?t:String(o[0]));return}let l=String(o[0]);E(l);return}let e=String(o[0]);E(e)},k=()=>{var t,e,o;(null===(t=i.current)||void 0===t?void 0:t.destroy)&&(null===(o=i.current)||void 0===o||null===(e=o.destroy)||void 0===e||e.call(o)),i.current=r.u_.info({className:"".concat(v().overall_situation_modal_tips," overall_situation_modal_tips"),closable:!1,footerProps:{ghost:!1},content:null===m.sv||void 0===m.sv?void 0:m.sv.content})},T=t=>t!==String(d.uB.DELIVERY)||!s||!!h||(k(),!1),E=t=>{S(t),e({diningType:t}),sessionStorage.setItem("__dining_type",t),sessionStorage.setItem("__store_dining_type",t)},N=t=>{let e=T(t);if(e){E(t);return}f||y()};return{onChange:N,types:o,isShow:g,value:f}},g=i(25392),_=i(85416),f=i(76213),S=i(60751),b=i(24344),I=i(88737),y=i(98676),k=i(47638),T=i(85833),E=i(32459),N=i(68949);let C=t=>(null==t||t.forEach(t=>{var e,i;let o=[];null==t||null===(e=t.addOnGroupList)||void 0===e||e.forEach(t=>{t.addOnList&&t.addOnList.length>0&&o.push(...t.addOnList.map(t=>({...t,addOnCount:null==t?void 0:t.count})))});let l=[];null==t||null===(i=t.tasteItemList)||void 0===i||i.forEach(t=>{t.tasteList&&t.tasteList.length>0&&l.push(...t.tasteList)}),t.addOnList=(0,N.ZN)(o),t.tasteList=(0,N.ZN)(l),t.dishCount=(null==t?void 0:t.count)||0,t.notes=null==t?void 0:t.specialInstructions}),t),L=t=>{let e=[];return t.forEach(t=>{var i;null===(i=t.tasteList)||void 0===i||i.forEach(t=>{e.push(t)})}),e},w=t=>{let e=[];return t.forEach(t=>{var i;null===(i=t.addOnList)||void 0===i||i.forEach(t=>{t.addOnCount=t.count,e.push(t)})}),e},P=t=>null==t?void 0:t.map(t=>{var e,i,o,l,n;return{menuId:null==t?void 0:null===(e=t.originDish)||void 0===e?void 0:e.menuId,categoryId:null==t?void 0:null===(i=t.originDish)||void 0===i?void 0:i.categoryId,dishId:null==t?void 0:t.dishId,specificationName:null==t?void 0:null===(o=t.originDish)||void 0===o?void 0:o.specificationName,specificationId:null==t?void 0:t.specificationId,imageUrl:null==t?void 0:null===(l=t.originDish)||void 0===l?void 0:l.imageUrl,dishPrice:null==t?void 0:t.subTotalPrice,tasteList:L(t.tasteItemList),addOnList:w(null==t?void 0:t.addOnGroupList),dishCount:null==t?void 0:t.count,dis
1hName:null==t?void 0:null===(n=t.originDish)||void 0===n?void 0:n.dishName,notes:null==t?void 0:t.specialInstructions}}),x=t=>t?null==t?void 0:t.map(t=>({comboGroupId:t.comboGroupId,comboGroupName:null==t?void 0:t.comboGroupName,dishList:P(null==t?void 0:t.dishList)})):null,O=t=>null==t?void 0:t.map(t=>({comboId:null==t?void 0:t.comboId,menuId:null==t?void 0:t.menuId,comboCount:null==t?void 0:t.count,categoryId:null==t?void 0:t.categoryId,categoryName:null==t?void 0:t.categoryName,comboName:null==t?void 0:t.comboName,price:null==t?void 0:t.comboPrice,imageUrl:t.imageUrl,comboGroupList:x(t.selectCombo)}));var j=i(91084),D=i(19346);let R=s()(()=>Promise.resolve().then(i.bind(i,42374)),{loadableGenerated:{webpack:()=>[42374]}}),G=s()(()=>Promise.resolve().then(i.bind(i,56920)),{loadableGenerated:{webpack:()=>[56920]}});var U=(0,S.Gq)(()=>{var t,e,i,n,s,a,c,h,S;let N=(0,f.Z)(),{storeId:L}=(0,b.oR)(),{appConfig:w}=(0,b.s6)(),{orgId:P}=w,x=(0,b.hU)(),{isLogin:U,diningType:V,memberInfo:A}=u.commonStore,{cartList:M,updateCart:F,updateCartForIndex:Q,deleteCart:q,deleteSpecificDish:Z}=u.orderStore,{comboList:B,addCombo:H,changeComboCount:J,changeCombo:K,deleteSpecificCombo:W}=u.comboStore,[X,z]=(0,l.useState)([]),[Y,$]=(0,l.useState)(!1),[tt,te]=(0,l.useState)(null),[ti,to]=(0,l.useState)(!1),[tl,tn]=(0,l.useState)(!1),[ts,tr]=(0,l.useState)(!1),[td,ta]=(0,l.useState)(null),[tu,tc]=(0,l.useState)(null),[th,tv]=(0,l.useState)(null),[tm,tp]=(0,l.useState)(null),[tg,t_]=(0,l.useState)(!1),[tf,tS]=(0,l.useState)(null),[tb,tI]=(0,l.useState)(null);(0,b.QT)(k.tJ.getCheckoutSetting);let[ty,tk]=(0,l.useState)(!1),tT=(0,b.QT)({method:"post",url:k.Eh.shopDishListV2}),tE=(0,b.QT)(k.Eh.getGoodsDetail),tN=(0,b.QT)(k.Eh.getComboGoodsDetail),tC=(0,b.QT)(k.Eh.getGoodsDetailForUpSell),tL=(0,b.QT)("".concat(k.Eh.shopPromotionList,"/").concat(L)),tw=(0,b.QT)(k.Ae.checkStoreStatus),tP=(0,b.QT)("".concat(k.Eh.shopList,"/").concat(P)),tx=(0,b.QT)({method:"post",url:k.Eh.upsellCheck}),tO=(0,b.QT)("".concat(k.m5.getOrderSetting,"/").concat(L,"/order-setting")),tj=(0,b.QT)({url:k.m5.orderSetting,method:"get"}),tD=(0,b.QT)({url:k.Eh.shopInfo,method:"get"}),tR=(0,b.QT)({url:k.Eh.createCheckout,method:"post"}),tG=(0,b.QT)({url:k.tJ.getCloudCart,isTips:!1}),tU=(0,b.QT)({url:k.tJ.editCloudCart,method:"post",isTips:!1}),tV=(0,b.QT)({url:k.tJ.createCloudCheckout,method:"post",isTips:!1}),[tA,tM]=(0,l.useState)(!0),tF=(0,l.useRef)(null),[tQ,tq]=(0,l.useState)(0),[tZ,tB]=(0,l.useState)(null),[tH,tJ]=(0,l.useState)(null),tK=I.t.getItem("__delivery_address"),[tW,tX]=(0,l.useState)(!0),tz=(0,l.useMemo)(()=>{var t;return(null==tH?void 0:null===(t=tH.diningTypes)||void 0===t?void 0:t.map(t=>d.bK[t]))||[]},[tH]),tY=p({diningTypeList:tz,deliveryConfig:{futureEnable:null==tH?void 0:tH.deliveryFutureEnable},shopClosed:null==tH?void 0:tH.closed}),t$=(0,l.useRef)(!1);(0,l.useRef)(!1);let t0=(0,l.useRef)(null);(0,l.useEffect)(()=>{ts||(tI(null),tS(null))},[ts]),(0,l.useEffect)(()=>{(0,E.gL)("home")},[]),(0,l.useEffect)(()=>{L&&tw.send({shopId:L,orgId:P},{isTips:!1}).then(t=>{t.data?(tn(!0),t1(),tP.send({ownerId:L}),tO.send(),tj.send({shopId:L})):N.replace("/store")}).catch(t=>{N.replace("/store")})},[L]),(0,l.useEffect)(()=>{L&&tl&&tL.send()},[L,U,tl]);let t1=async()=>{try{var t;let[{data:e},i]=await Promise.all([tT.send({shopId:L}),tD.send({shopId:L},{isTips:!1})]);(null==i?void 0:null===(t=i.status)||void 0===t?void 0:t.code)===120001?tX(!1):tJ(i.data)}catch(t){console.warn(t)}tM(!1)},t4=["PICK_UP","DINE_IN","TAKE_OUT","DELIVERY"],t6=async()=>{var t,e;let i=await tG.send({shopId:L});if(0!==Number(null===(t=i.status)||void 0===t?void 0:t.code)||!i.data)throw i.status;return tF.current=(null===(e=i.data)||void 0===e?void 0:e.shoppingCartId)==null?null:String(i.data.shoppingCartId),(0,j.bn)((0,j.ru)(i.data))},t2=(t,e)=>{let i=Error((null==t?void 0:t.msg)||e);return i.status=t,i},t5=t=>{var e;if(!t)return Number.NaN;let i=Number(null==t?void 0:null===(e=t.status)||void 0===e?void 0:e.code);return Number.isNaN(i)?t5(null==t?void 0:t.cause):i},t3=async t=>{var e;let i=await tV.send((0,j.DC)(t,t4[Number(tY.value)]),{isTips:!1});if(0!==Number(null===(e=i.status)||void 0===e?void 0:e.code))throw t2(i.status,"Unable to create AI Phone Checkout");if(!i.data||t.checkoutId&&String(i.data.checkoutId)!==String(t.checkoutId))throw Error("AI Phone Checkout response is invali
1d");return i},t8=(t,e)=>{(0,j.xj)((0,j.oX)(t,e,tF.current))},t9=async t=>{let{cartList:e,comboList:i}=t;if(t&&((null==e?void 0:e.length)||(null==i?void 0:i.length))){tk(!0);try{let t;let s=(0,j.Ui)(),d=(null==s?void 0:s.restoreStatus)==="RESTORED"&&s.checkoutAvailable&&!!s.checkoutId&&s.storeId===String(L)&&s.memberId===String(null==A?void 0:A.id),a=(null==s?void 0:s.restoreStatus)==="RESTORED"&&!s.checkoutAvailable&&s.storeId===String(L)&&s.memberId===String(null==A?void 0:A.id);if(d||a){let e=await t6(),i=(0,j.E8)(u.orderStore.cartList||[],u.comboStore.comboList||[]),o=new D._({initialAck:e,getCloudCart:t6,editCloudCart:async t=>{var e;let i=await tU.send({shopId:L,actionList:t},{isTips:!1});if(0!==Number(null===(e=i.status)||void 0===e?void 0:e.code))throw t2(i.status,"Unable to synchronize cart")},rebuildCheckout:async()=>{let t=await t3(s);return t.data},retryRebuild:d});o.updateDesired(i);try{let e=await o.flush(!0);if(e.cartEmpty||!e.checkout){(0,j.bP)(),u.orderStore.updateCart([]),u.comboStore.updateState({comboList:[]}),tk(!1);return}t={status:{code:0},data:e.checkout},a&&t8(s,e.checkout)}catch(i){let e=t5(i);if(d&&[120012,120014].includes(e)){let e={...s,checkoutId:null,checkoutAvailable:!1};t=await t3(e),t8(e,t.data)}else throw i}}else s&&(0,j.bP)(),t=await tR.send({shopId:L,dishList:e,comboList:i,diningType:t4[Number(tY.value)],addressInfo:tK},{isTips:!1,getLoginReturnFocus:()=>t0.current});let{data:c,status:h,more:v}=t;if(0!==h.code){if(tk(!1),122005===h.code){let t=JSON.parse(v.deleteItemInfo);r.u_.info({title:null===m.Pd||void 0===m.Pd?void 0:m.Pd.title,content:(0,o.jsx)("div",{children:null==h?void 0:h.msg}),className:"overall_situation_modal_tips",closable:!1,footerProps:{ghost:!1},onOkText:null===m.Pd||void 0===m.Pd?void 0:m.Pd.okText,onOk:()=>{et(t.deleteComboIds,t.deleteDishIds)}})}else r.u_.info({title:"Oops!",titleStyle:{color:"var(--color-primary-ink, var(--color-primary))"},content:(0,o.jsx)("div",{dangerouslySetInnerHTML:{__html:(null==h?void 0:h.msg)||""}}),className:"overall_situation_modal_tips",closable:!1,footerProps:{ghost:!1}})}else{var l,n;tk(!1),(null==c?void 0:c.noticeMsg)&&(null==c?void 0:null===(l=c.noticeMsg)||void 0===l?void 0:l.errorCode)===122007?r.u_.info({title:null===m.iV||void 0===m.iV?void 0:m.iV.title,content:(0,o.jsx)("div",{children:null==c?void 0:null===(n=c.noticeMsg)||void 0===n?void 0:n.noticeMsg}),className:"overall_situation_modal_tips",closable:!1,footerProps:{ghost:!1},onOk:()=>t7(c)}):t7(c)}}catch(t){console.error("创建结账请求失败:",t),t instanceof Error&&"Request failed"===t.message&&r.u_.info({afterClose:()=>{var t;(null===(t=t0.current)||void 0===t?void 0:t.isConnected)&&t0.current.focus()},title:m.fF.title,content:m.fF.content,className:"overall_situation_modal_tips",closable:!1,footerProps:{ghost:!1}}),tk(!1)}}},t7=async t=>{I.t.setItem("__checkout_cache",t);let{note:e,diningType:i,sid:o}=N.query,l=e||sessionStorage.getItem("__url_note"),n=i||sessionStorage.getItem("__url_diningType"),s=o||sessionStorage.getItem("__url_sid"),r=new URLSearchParams;r.append("id",null==t?void 0:t.checkoutId);let d=(0,j.Ui)();if(d&&String(d.checkoutId)===String(null==t?void 0:t.checkoutId)&&String(d.storeId)===String(L)){r.append("sid",String(d.storeId)),r.append("source_from_type","AI_PHONE"),await N.push("/checkout?".concat(r.toString())),tk(!1);return}l&&n&&s&&(r.append("note",String(l)),r.append("diningType",String(n)),r.append("sid",String(s))),await N.push("/checkout?".concat(r.toString())),tk(!1)},et=(t,e)=>{t&&t.length>0&&W(t),e&&e.length>0&&Z(e)};(0,l.useEffect)(()=>{var t,e,i;(null===(e=tO.data)||void 0===e?void 0:null===(t=e.notes)||void 0===t?void 0:t.length)&&eh(null===(i=tO.data)||void 0===i?void 0:i.notes)},[null===(t=tO.data)||void 0===t?void 0:t.notes]);let ee=()=>{tc(null),tv(null)},ei=function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"token",{type:i,dataSource:o,value:l,addType:n="add"}=t;(0,E.fe)(n,o,(0,T.p)(n,l,null==o?void 0:o.count),(null==tH?void 0:tH.name)||""),"count"===i&&(l<=0?q(o[e],e):F(o[e],t=>({...t,subTotalPrice:(0,y.HG)((null==t?void 0:t.price)||0,l||1),count:l,dishPrice:null==o?void 0:o.dishPrice}),e)),"add"===i&&F(o[e],r.GoodsDetail.generateState(o))},eo=(0,I.g_)(async()=>{var t,e,i;if(t0.current=document.activeElement instanceof HTMLButtonElement?document.activeElement:null,!(null==M?void 0:M.length)&&(null==B?void 0:B.length)>0){el();return}let o=await tx.send({shopId:L,dishList:C(M)});if((null==M?void 0:M.some(t=>null==t?void 0:t.upSellId))||(null==M?void 0:M.some(t=>null==t?void 0:t.upSellId))){el();return}(null===(t=o.data)||void 0===t?void 0:t.showUpSell)&&(null==o?void 0:null===(i=o.data)||void 0===i?void 0:null===(e=i.upSellList)||void 0===e?void 0:e.length)?(t_(!0),I.t.setItem("__is_up_sell",!0)):el()},{next:"continue"}),el=async()=>
1{tg&&t_(!1),t9({cartList:C(M),comboList:O(B)})},en=async t=>{if(t.dishId){$(!0),te(null!=t&&!!t.imageUrl);try{let e=await tC.send({dishId:null==t?void 0:t.dishId,shopId:L},{isTips:!1});"[object Null]"===Object.prototype.toString.call(e.data)?(tp(null),ed()):tp(e.data),t$.current=!0}catch(t){tp(null),ed(t)}}},es=()=>{$(!1)},er=()=>{tr(!1),to(!1)},ed=t=>{r.u_.info({title:null===m._i||void 0===m._i?void 0:m._i.title,titleStyle:{color:"var(--color-primary-ink, var(--color-primary))"},content:(0,o.jsx)("div",{dangerouslySetInnerHTML:{__html:null===m._i||void 0===m._i?void 0:m._i.content}}),className:"overall_situation_modal_tips",closable:!1,footerProps:{ghost:!1},onOk:()=>{$(!1),te(null),tr(!1),to(!1)}})},ea=t=>{(null==t?void 0:t.comboId)?ec(t):eu(t)},eu=async t=>{var e;let i=null==tD?void 0:null===(e=tD.data)||void 0===e?void 0:e.id;if(tB((null==t?void 0:t.menuId)||null),(0,E.KY)(t,(null==tH?void 0:tH.name)||""),i&&(null==t?void 0:t.upSellId)){t$.current=!0,$(!0),te(null!=t&&!!t.imageUrl);try{let e=await tC.send({dishId:null==t?void 0:t.dishId,shopId:L});"[object Null]"===Object.prototype.toString.call(e.data)?(tp(null),ed()):tp(e.data)}catch(t){tp(null),ed(t)}}else if(i&&!(null==t?void 0:t.upSellId)){$(!0),te(null!=t&&!!t.imageUrl),t$.current=!1;try{let e=await tE.send({dishId:t.dishId,shopId:i},{isTips:!1});"[object Null]"===Object.prototype.toString.call(e.data)?(tp(null),ed()):tp(e.data)}catch(t){tp(null),ed(t)}}},ec=async t=>{tB((null==t?void 0:t.menuId)||null),(0,E.KY)(t,(null==tH?void 0:tH.name)||""),tr(!0),to(null!=t&&!!t.imageUrl),t$.current=!1;try{var e;let i=await tN.send({comboId:t.comboId,shopId:L},{isTips:!1}),o={...i.data,itemGroups:(0,I.Aj)(null===(e=i.data)||void 0===e?void 0:e.itemGroups)};"[object Null]"===Object.prototype.toString.call(i.data)?(ta(null),ed()):ta(o)}catch(t){ta(null),ed(t)}},eh=t=>{let e=[],i=[];null==t||t.forEach(t=>{0===t.type?e.push(t):1===t.type&&i.push(t)}),z(e),I.t.setItem("__order_quick_notes",i)},ev=()=>{te(!1),tp(!1),ee()},em=(0,o.jsx)(o.Fragment,{children:(null==w?void 0:null===(e=w.browserInfo)||void 0===e?void 0:e.tabTitle)&&(0,o.jsx)(r.$4,{title:(0,I.aR)(null==w?void 0:null===(i=w.browserInfo)||void 0===i?void 0:i.tabTitle)})});return tW?(0,o.jsx)(o.Fragment,{children:(0,o.jsxs)("div",{className:v().page_order,children:[em,(0,o.jsxs)("div",{className:"overflow-hidden",children:[(0,o.jsx)("div",{className:v().stores_card,children:(0,o.jsx)(r.p6,{className:v().store_card,isLoading:tA,dataSource:{shopPromotionList:tL.data,shopInfo:tH,shopList:null==tP?void 0:tP.data,shopListLoading:null==tP?void 0:tP.loading,deliveryConfig:null==tH?void 0:tH.delivery},dineSwitchProps:tY})}),!tA&&(null==tj?void 0:null===(n=tj.data)||void 0===n?void 0:n.convenienceDescription)&&(0,o.jsx)("div",{className:v().commission_instructions,children:null==tj?void 0:null===(s=tj.data)||void 0===s?void 0:s.convenienceDescription}),(0,o.jsx)(r.SX,{dataSource:null==tT?void 0:tT.data,isLoading:tA||tT.loading,initialMenuId:N.query.menuId,initialCategoryId:N.query.categoryId,cartList:M,comboList:[...B],onGoodsItem:t=>{ea(t)},isQuickSelect:!1}),(0,o.jsx)(r.hW,{isShow:!!(x.isMobile&&tQ),children:(0,o.jsx)("div",{style:{height:tQ}})})]}),(0,o.jsx)(_.Z,{checkoutButtonRef:t0,getFixedRef:t=>{tq((null==t?void 0:t.offsetHeight)||0)},isLoading:tA,deliveryConfig:null==tH?void 0:tH.delivery,isTakeOut:!0,dataSource:M,comboList:B,onClick:(t,e)=>{let i=M.findIndex(e=>e.token===t.token);i>-1&&(tc(M[i]),tv(e),ea(t))},onChange:t=>{ei(t)},onPlaceOrder:eo,onComboChange:(t,e)=>{J(e,t.value)},onComboClick:(t,e)=>{tS(t),tI(e),ec(t)},isPlaceOrderLoading:tx.loading||tR.loading||tU.loading||tV.loading||ty,isClosed:null==tH?void 0:tH.closed}),(0,o.jsx)(r.GoodsDetail,{isLoading:tE.loading||tC.loading,afterClose:()=>{ev()},isBuy:(null==tm?void 0:tm.itemFormatEnum)!==g.a.NOT_FOR_SALE,destroyOnClose:x.isPc,isOpen:Y,onCart:t=>{if(null!==th&&Y){var e;let i="add",o=(null==M?void 0:null===(e=M[th])||void 0===e?void 0:e.count)||0;Q({index:th,key:t.token},t),i=Number(o)>Number(null==t?void 0:t.count)?"minus":"add",(0,E.fe)(i,{...t,dishId:null==t?void 0:t.id},(0,T.p)(i,t.count,o),(null==tH?void 0:tH.name)||"")}else Y&&(F(t.token,e=>{if(e){let i=Number(e.count)+Number(t.count);return{...e,...t,subTotalPrice:(0,y.HG)((null==e?void 0:e.price)||0,i||1),count:i,upSellId:null==e?void 0:e.upSellId}}return t}),(0,E.yU)("add",{...t,dishId:null==t?void 0:t.id},t.count,(null==tH?void 0:tH.name)||""));es()},havePicture:tt,onCancel:es,onClosed:es,dataSource:tm,select:tu,menuId:tZ,config:{remarks:null==tO?void 0:null===(a=tO.data)||void 0===a?void 0:a.enableItemNotes,quickNotes:X}}),(0,o.jsx)(r.rT,{destroyOnClose:x.isPc,isLoading:tN.loading,isOpen:ts,onCart:t=>{tf&&null!==tb?K(tb,t):H(t),er()},havePicture:ti,onCancel:er,dataSource:td,select:tf,menuId:tZ,config:{remarks:null==tO?void 0:null===(c=tO.data)||void 0===c?void 0:c.enableItemNotes,quickNotes:X}}),(0,o.jsx)(R,{isOpen:tg,title:null===(h=tx.data)||void 0===h?void 0:h.name,goodsList:(null==tx?void 0:tx.loading)?[]:null===(S=tx.data)||void 0===S?void 0:S.upSellList,onNoUpsell:el,onGoodsItem:en,selectGoods:M,onChangeGoods:t=>{ei(t,"dishId")},cartList:u.orderStore.cartList}),(0,o.jsx)(G,{})]})}):(0,o.jsxs)(o.Fragment,{children:[em,(0,o.jsx)(r.SZ,{})]})})},35584:function(t){t.exports={style:{fontFamily:"'__notoSans_59c820', '__notoSans_Fallback_59c820'",fontWeight:400,fontStyle:"normal"},className:"__className_59c820"}},27799:function(t){t.exports={style:{fontFamily:"'__openSans_1a267b', '__openSans_Fallback_1a267b'",fontStyle:"normal"},className:"__className_1a267b"}},25312:function(t){t.exports={page_order:"order_page_order__F8f_E",stores_card:"order_stores_card__rLRtd",overall_situation_modal_tips:"order_overall_situation_modal_tips__WDcsV",commission_instructions:"order_commission_instructions__8Nyum","text-animation":"order_text-animation__JNGR4"}}},function(t){t.O(0,[5634,47689,59495,85416,49774,92888,40179],function(){return t(t.s=99743)}),_N_E=t.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.