1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[24690],{38113:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/group-buy/list",function(){return n(29356)}])},60992:function(e,t){"use strict";t.Z={reqGroupBuyList:"/api/group-buy/event/list",reqGroupBuySelect:"/api/group-buy/event/get",reqGroupBuySelectPurchase:"/api/order/group-buy/query/event/purchase-record",reqGroupBuyOrderDetail:"/api/order/group-buy/query/detail",reqCancelOrder:"/api/order/group-buy/cancel",reqGetDishList:"/api/group-buy/event/dish/list"}},41707:function(e,t,n){"use strict";n.d(t,{nK:function(){return u},Kl:function(){return h},Ab:function(){return d.default}});var r=n(85893),s=n(97983),a=n(5054),o=n.n(a),i=e=>{let{style:t,handleText:n="My Past Orders",className:s,onChange:a}=e;return(0,r.jsx)("div",{className:o().btn,style:t,children:(0,r.jsx)("div",{className:"".concat(o()._btn," ").concat(s),onClick:a,children:n})})},c=n(93843),l=n.n(c),u=(0,s.X)(e=>{let{children:t,width:n,btnStyle:s,rootStyle:a,handleText:o="My Past Orders",handleClassName:c,onChange:u,rootClassName:d}=e;return(0,r.jsxs)("div",{className:"".concat(l().group," ").concat(d),style:{...a,width:n+"px"},children:[t,(0,r.jsx)(i,{style:s,className:c,handleText:o,onChange:null!=u?u:()=>{}})]})}),d=n(7803),_=n(95943),p=n.n(_),h=()=>(0,r.jsxs)("div",{className:p().notfound,children:[(0,r.jsx)("i",{className:"iconfont icon-result-noresult"}),(0,r.jsx)("p",{children:"No descriptions yet."}),(0,r.jsx)("small",{children:"We'll complete a full description soon."})]})},7803:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return p}});var r=n(85893),s=n(67294),a=n(24344),o=n(60992),i=n(25142),c=n(39872),l=n.n(c),u=n(22044),d=n.n(u),_=e=>{let{rootClassName:t,anmTimer:n=1e3}=e,[a,o]=(0,s.useState)(!0);return(0,s.useEffect)(()=>{let e=setInterval(()=>{o(!a)},n);return()=>{clearInterval(e)}},[a]),(0,r.jsx)(r.Fragment,{children:a&&(0,r.jsx)("div",{style:{left:parseInt("".concat(100*Math.random()))+"%",top:parseInt("".concat(50*Math.random()))+"%"},className:"".concat(d().fw_anm," ").concat(t)})})},p=e=>{var t,n,c;let{name:u,eventId:d,rootClassName:p}=e,[h,m]=(0,s.useState)(0),[x,f]=(0,s.useState)([]),y=(0,s.useRef)(null),v=(0,a.QT)({url:o.Z.reqGroupBuySelectPurchase}),g=(0,s.useCallback)(async()=>{if(d)try{let e=await v.send({eventId:d});f(e.data)}catch(e){console.error(e)}},[d]);return(0,s.useEffect)(()=>{let e=setInterval(()=>{!(x.length<=1)&&(m(h+1),h>=x.length-1?setTimeout(()=>{y.current&&(y.current.style.transition="none",m(0))},500):y.current&&(y.current.style.transition="0.2s"))},5e3);return()=>clearInterval(e)},[h,x.length]),(0,s.useEffect)(()=>{g()},[d]),(0,r.jsxs)("div",{className:"".concat(l().select_top," ").concat(p),style:{height:"110px"},children:[(0,r.jsx)("div",{className:"title",children:u}),x.length>0&&(0,r.jsxs)("div",{className:"anm_box",children:[(0,r.jsx)(_,{anmTimer:1500}),(0,r.jsx)("div",{className:"wrap_recrod",children:(0,r.jsx)("div",{className:"wrap_r",children:(0,r.jsxs)("div",{className:"recrod",ref:y,style:{transform:"translateY(".concat(0-38*h,"px)")},children:[x.map((e,t)=>(0,r.jsxs)("div",{className:"recrod_item",children:[(0,r.jsx)("img",{className:"avatar",src:"/tenant/group-buy/pic/avaDefault_".concat(t,".png"),alt:""}),(0,r.jsx)("span",{children:e.contactFullName}),(0,r.jsxs)("div",{children:["ordered ",e.itemCount," dishes for",(0,r.jsx)(i.tA,{value:e.payAmount})]})]},t)),(0,r.jsxs)("div",{className:"recrod_item",children:[(0,r.jsx)("img",{className:"avatar",src:"/tenant/group-buy/pic/avaDefault_".concat(0,".png"),alt:""}),(0,r.jsx)("span",{children:null===(t=x[0])||void 0===t?void 0:t.contactFullName}),(0,r.jsxs)("div",{children:["ordered ",null===(n=x[0])||void 0===n?void 0:n.itemCount," dishes for",(0,r.jsx)(i.tA,{value:null===(c=x[0])||void 0===c?void 0:c.payAmount})]})]})]})})})]})]})}},97983:function(e,t,n){"use strict";n.d(t,{X:function(){return c}});var r=n(85893),s=n(25142),a=n(24344);let o=e=>{let t=(0,a.hU)(),{appConfig:n}=(0,a.s6)(),{...o}=n;return(0,r.jsxs)(s.Ar,{children:[(0,r.jsx)(s.Ar.Header,{...o}),(0,r.jsx)(s.Ar.Container,{children:e.children}),t.isPc&&(0,r.jsx)(s.Ar.GroupBuyFooter,{})]})},i=e=>{var t;return null!==(t=null==e?void 0:e.getLayout)&&void 0!==t?t:e=>(0,r.jsx)(o,{children:e})};var c=(e,t)=>{let n=i(t);return e.getLayout||(e.getLayout=n),e}},29356:function(e,t,n){"use strict";n.r(t);var r=n(85893),s=n(67294),a=n(24344),o=n(97983),i=n(60992),c=n(41707),l=n(73431),u=n.n(l),d=n(80814);t.default=(0,o.X)(()=>
1{let[e,t]=(0,s.useState)([]),n=(0,a.Rz)(),o=(0,a.QT)({url:i.Z.reqGroupBuyList}),l=(0,s.useCallback)(async()=>{n.query.shopId||n.push("/404");try{let e=await o.send({shopId:n.query.shopId});t(e.data)}catch(e){console.error(e)}},[n.query.shopId]),_=(0,s.useCallback)((e,t)=>{n.push("/group-buy/select?groupBuyId=".concat(t))},[]),p=(0,s.useCallback)(()=>{n.push("/group-buy/recent")},[n.query.shopId]);return(0,s.useEffect)(()=>{l()},[n.query.shopId]),(0,r.jsx)(c.nK,{onChange:p,children:(0,r.jsx)("div",{className:u().shop,children:e.length<=0?(0,r.jsx)(r.Fragment,{children:[void 0,void 0,void 0].map((e,t)=>(0,r.jsx)(d.default,{active:!0,title:!1,className:"".concat(u().shop_item," ").concat(u().skeleton),paragraph:{width:"100%",rows:1}},t))}):(0,r.jsx)(r.Fragment,{children:e.map(e=>{let{id:t,name:n}=e;return(0,r.jsxs)("div",{className:u().shop_item,onClick:e=>_(e,t),children:[(0,r.jsx)("div",{className:u().name,children:n}),(0,r.jsx)("div",{className:"".concat(u().detail," ").concat(u().dn)})]},t)})})})})})},22044:function(e){e.exports={fw_anm:"fireworks_fw_anm__zawK5",fw_anmal:"fireworks_fw_anmal__1hWks",fw_keyframes:"fireworks_fw_keyframes__Lc0Bk","text-animation":"fireworks_text-animation__n_KjD"}},5054:function(e){e.exports={btn:"group-buy-btn_btn__k0n9M",_btn:"group-buy-btn__btn__qOaIh","text-animation":"group-buy-btn_text-animation__QJvG5"}},93843:function(e){e.exports={group:"group-buy-container_group__U0Z3F","text-animation":"group-buy-container_text-animation__vklG1"}},95943:function(e){e.exports={notfound:"not-found_notfound__f_WoE","text-animation":"not-found_text-animation__y6PgA"}},39872:function(e){e.exports={select_top:"select-top_select_top___dFyx","text-animation":"select-top_text-animation__uAuSo"}},73431:function(e){e.exports={shop:"list_shop__n1hxe",shop_item:"list_shop_item__SYGRU",name:"list_name__5pA5Y",detail:"list_detail__TEr5r",skeleton:"list_skeleton__8V8ew",dn:"list_dn__7d6o8","text-animation":"list_text-animation__VB652"}}},function(e){e.O(0,[65785,49774,92888,40179],function(){return e(e.s=38113)}),_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.