PageSourceSearch

https://www.luckymeal.io/_next/static/chunks/app/place/layout-20dd33205b828238.js

js luckymeal.io collected 2026-10-02 00:38:32 UTC 49,622 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3309],{2180:(e,t,n)=>{"use strict";function r(e){if(e&&e.success)return e.data}function i(e){return(null==e?void 0:e.success)?e.data:null}n.d(t,{sE:()=>i,sI:()=>r})},6377:(e,t,n)=>{"use strict";n.d(t,{default:()=>p});var r=n(30573),i=n(13277),o=n(69177),a=n(82256),s=n(57087);let l={fontFamily:"Tossface"},c=[{left:8,size:9,color:"#16CC83",delay:0},{left:18,size:7,color:"#FFC400",delay:.18},{left:27,size:10,color:"#EE9210",delay:.06},{left:36,size:6,color:"#578FFF",delay:.3},{left:44,size:9,color:"#16CC83",delay:.12},{left:52,size:7,color:"#BEEDD3",delay:.42},{left:60,size:10,color:"#FFC400",delay:.24},{left:68,size:8,color:"#16CC83",delay:.36},{left:76,size:6,color:"#EE9210",delay:.1},{left:85,size:9,color:"#578FFF",delay:.48},{left:92,size:7,color:"#16CC83",delay:.28},{left:13,size:6,color:"#FFC400",delay:.56},{left:32,size:8,color:"#BEEDD3",delay:.62},{left:57,size:6,color:"#EE9210",delay:.7},{left:80,size:8,color:"#FFC400",delay:.66}];function u(e){let{total:t,onDone:n}=e;return(0,o.useEffect)(()=>{let e=window.setTimeout(n,2400);return()=>window.clearTimeout(e)},[n]),(0,r.jsxs)("div",{className:"fixed inset-0 z-modal mx-auto flex w-full min-w-[var(--container-min-width)] max-w-[var(--container-max-width)] flex-col items-center justify-center overflow-hidden bg-white",children:[(0,r.jsx)("style",{children:"\n        @keyframes lmFirstStepPop {\n          0% { transform: scale(0.4); opacity: 0; }\n          55% { transform: scale(1.14); }\n          100% { transform: scale(1); opacity: 1; }\n        }\n        @keyframes lmFirstStepRise {\n          0% { transform: translateY(12px); opacity: 0; }\n          100% { transform: translateY(0); opacity: 1; }\n        }\n        @keyframes lmFirstStepFall {\n          0% { transform: translateY(-48px) rotate(0deg); opacity: 0; }\n          12% { opacity: 1; }\n          100% { transform: translateY(520px) rotate(320deg); opacity: 0; }\n        }\n      "}),c.map(e=>(0,r.jsx)("span",{className:"pointer-events-none absolute top-0 rounded-[2px]",style:{left:"".concat(e.left,"%"),width:e.size,height:1.8*e.size,background:e.color,animation:"lmFirstStepFall 1.9s ".concat(e.delay,"s ease-in both")}},"".concat(e.left,"-").concat(e.delay))),(0,r.jsx)("span",{className:"text-[76px] leading-none",style:{...l,animation:"lmFirstStepPop 0.5s cubic-bezier(0.2, 0.8, 0.3, 1.2) both"},children:"\uD83C\uDF89"}),(0,r.jsx)("p",{className:"mt-7 text-[28px] font-bold text-grey-900",style:{animation:"lmFirstStepRise 0.4s 0.25s both"},children:"준비 끝!"}),(0,r.jsxs)("p",{className:"mt-2 text-[16px] text-grey-600",style:{animation:"lmFirstStepRise 0.4s 0.4s both"},children:[t,"가지를 모두 마쳤어요"]})]})}var d=n(92217);function p(){let e=(0,i.useRouter)(),t=(0,i.usePathname)(),{isVisible:n,isAllDone:l,isCelebrated:c,total:p,placeId:h}=(0,d.y)(),{mutate:m}=(0,s.ir)(h),[E,f]=(0,o.useState)(!1);return n&&l&&!c&&!E?(0,r.jsx)(u,{total:p,onDone:()=>{f(!0),m(),t===a.f.PLACE_FIRST_STEP_GUIDE&&e.replace(a.f.PLACE_HOME)}}):null}},13277:(e,t,n)=>{"use strict";var r=n(10857);n.o(r,"notFound")&&n.d(t,{notFound:function(){return r.notFound}}),n.o(r,"redirect")&&n.d(t,{redirect:function(){return r.redirect}}),n.o(r,"useParams")&&n.d(t,{useParams:function(){return r.useParams}}),n.o(r,"usePathname")&&n.d(t,{usePathname:function(){return r.usePathname}}),n.o(r,"useRouter")&&n.d(t,{useRouter:function(){return r.useRouter}}),n.o(r,"useSearchParams")&&n.d(t,{useSearchParams:function(){return r.useSearchParams}})},17163:(e,t,n)=>{"use strict";n.d(t,{xQ:()=>E,qJ:()=>m,Ay:()=>p});var r=n(30573),i=n(69177),o=n(18523),a=n(86647),s=n(24911),l=n(87339),c=n(85484),u=n(90126),d=n(62150);function p(e){let{open:t,placeId:n,orderId:c,onClose:p,onSkipped:m,onReported:E,onUndone:f}=e,[y,g]=(0,i.useState)(!1),[x,C]=(0,i.useState)(new Set),[b,_]=(0,i.useState)(""),[v,S]=(0,i.useState)(null),{mutateAsync:T}=function(){let{fetchWithAuth:e}=(0,d.A)();return(0,u.n)({throwOnError:!1,mutationFn:t=>{let{placeId:n,orderId:r,kinds:i,detail:o}=t;return e("".concat("https://api.luckymeal.io","/api/place/places/").concat(n,"/clover-report"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({orderId:r,kinds:i,...o?{detail:o}:{}})})}})}();(0,i.useEffect)(()=>{t?(C(new Set),_(""),g(!0)):g(!1)},[t]);let A=e=>C(t=>{let n=new Set(t);return n.has(e)?n.delete(e):n.add(e),n}),O=async()=>
1{if(!v)return;let{kinds:e,text:t}=v;S(null),p();try{(await T({placeId:n,orderId:c,kinds:e,detail:t||void 0})).success||((0,s.P0)({iconName:"error",message:"신고 제출에 실패했어요. 다시 시도해주세요."}),null==f||f())}catch(e){(0,s.P0)({iconName:"error",message:"신고 제출에 실패했어요. 다시 시도해주세요."}),null==f||f()}},R=x.size;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(a.Yb,{visible:y,onClose:()=>{g(!1),p()},showIndicator:!1,className:"rounded-t-[20px]",children:(0,r.jsxs)("div",{style:{padding:"10px 20px 28px"},children:[(0,r.jsx)("div",{style:{width:36,height:4,borderRadius:999,background:l.G[100],margin:"0 auto 14px"}}),(0,r.jsx)("h3",{style:{...l.ZN.title,margin:"2px 0 0",fontWeight:l.Xh.bold,color:l.G[900]},children:"어떤 점이 불편했나요?"}),(0,r.jsx)("p",{style:{...l.ZN.callout,margin:"6px 0 14px",color:l.G[500]},children:"손님에게 그대로 보이지 않고, 클로버에 반영돼요."}),(0,r.jsx)("div",{style:{display:"flex",flexDirection:"column",gap:6},children:l.VX.map(e=>{let t=x.has(e);return(0,r.jsxs)("button",{type:"button",onClick:()=>A(e),style:{...l.ZN.callout,width:"100%",display:"flex",alignItems:"center",gap:9,borderRadius:10,border:"1px solid ".concat(t?l.AV:l.G[100]),padding:"10px 12px",fontWeight:l.Xh.medium,color:t?l.jF:l.G[600],background:t?"var(--color-primary-50)":"var(--color-white)",cursor:"pointer",fontFamily:"inherit",textAlign:"left"},children:[(0,r.jsx)("span",{style:{width:17,height:17,flexShrink:0,borderRadius:999,border:t?"none":"1.5px solid ".concat(l.G[100]),background:t?l.AV:"transparent",display:"flex",alignItems:"center",justifyContent:"center"},children:t&&(0,r.jsx)("svg",{width:"10",height:"10",viewBox:"0 0 24 24",fill:"none","aria-hidden":!0,children:(0,r.jsx)("path",{d:"M5 13l4 4L19 7",stroke:"var(--color-white)",strokeWidth:"2.8",strokeLinecap:"round",strokeLinejoin:"round"})})}),l.SZ[e]]},e)})}),(0,r.jsx)("div",{style:{marginTop:12},children:(0,r.jsx)("textarea",{value:b,onChange:e=>_(e.target.value),placeholder:"자세한 내용을 알려주시면 확인에 도움이 돼요 (선택)",rows:3,"aria-hidden":0===R,tabIndex:0===R?-1:0,style:{...l.ZN.callout,width:"100%",boxSizing:"border-box",borderRadius:12,border:"1px solid ".concat(l.G[100]),padding:"12px 14px",color:l.G[700],background:l.G[50],resize:"none",fontFamily:"inherit",outline:"none",opacity:+(R>0),pointerEvents:R>0?"auto":"none",transition:"opacity .22s ease"}})}),R>0?(0,r.jsxs)("button",{type:"button",onClick:()=>{let e=[...x];g(!1),o.p.show({title:"이 손님 클로버에 반영할까요?",description:"".concat(e.map(e=>l.SZ[e]).join(" \xb7 ")," \xb7 손님에겐 사유가 그대로 보이지 않아요."),cancelText:"다시 볼게요",confirmText:"제출하기",onConfirm:()=>{null==E||E(e,b),S({kinds:e,text:b})},onCancel:()=>{g(!0)}})},style:{...l.ZN.body,width:"100%",height:48,marginTop:12,borderRadius:12,border:"none",background:l.AV,fontWeight:l.Xh.bold,color:"var(--color-white)",cursor:"pointer",fontFamily:"inherit"},children:["제출하기 (",R,")"]}):(0,r.jsx)("button",{type:"button",onClick:()=>{g(!1),null==m||m(),p()},style:{...l.ZN.callout,width:"100%",height:48,marginTop:16,borderRadius:12,border:"1px solid ".concat(l.G[100]),background:"var(--color-white)",fontWeight:l.Xh.semiBold,color:l.G[500],cursor:"pointer",fontFamily:"inherit"},children:"건너뛰기"})]})}),v&&(0,r.jsx)(h,{message:"불편 사유를 반영했어요",onUndo:()=>{S(null),null==f||f(),(0,s.GF)("실행취소했어요"),p()},onExpire:()=>{O()}})]})}function h(e){let{message:t,onUndo:n,onExpire:o,duration:a=5e3}=e,s=(0,i.useRef)(!1);return(0,i.useEffect)(()=>{let e=()=>{s.current||(s.current=!0,o())},t=setTimeout(e,a);return()=>{clearTimeout(t),e()}},[]),(0,r.jsxs)("div",{style:{position:"fixed",left:"50%",transform:"translateX(-50%)",bottom:84,zIndex:9999,width:"100%",maxWidth:"var(--container-max-width)",padding:"0 12px",boxSizing:"border-box",pointerEvents:"none"},children:[(0,r.jsx)("style",{children:"@keyframes lm-snack-in{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:translateY(0)}}
1@keyframes lm-snack-bar{from{transform:scaleX(1)}to{transform:scaleX(0)}}"}),(0,r.jsxs)("div",{style:{background:"#26262A",borderRadius:14,padding:"13px 8px 13px 16px",display:"flex",alignItems:"center",gap:10,boxShadow:"0 8px 28px rgba(0,0,0,0.28)",overflow:"hidden",position:"relative",pointerEvents:"auto",animation:"lm-snack-in 260ms cubic-bezier(0.22,1,0.36,1)"},children:[(0,r.jsx)("span",{style:{...l.ZN.callout,flex:1,fontWeight:l.Xh.medium,color:"var(--color-white)"},children:t}),(0,r.jsx)("button",{type:"button",onClick:()=>{s.current=!0,n()},style:{...l.ZN.callout,flexShrink:0,background:"none",border:"none",padding:"6px 12px",fontWeight:l.Xh.bold,color:"#5FE0A6",cursor:"pointer",fontFamily:"inherit"},children:"실행취소"}),(0,r.jsx)("div",{style:{position:"absolute",left:0,bottom:0,height:3,width:"100%",background:"#5FE0A6",transformOrigin:"left",animation:"lm-snack-bar ".concat(a,"ms linear forwards")}})]})]})}function m(e){let{kinds:t,text:n}=e;return(0,r.jsxs)("div",{style:{borderRadius:14,border:"1px solid #FAD9A6",background:"#FDF3E3",padding:"12px 14px"},children:[(0,r.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:6,marginBottom:10},children:[(0,r.jsx)("span",{style:{display:"inline-flex",color:"#854F0B"},children:(0,r.jsx)(c.mp,{dir:"down",size:15})}),(0,r.jsx)("span",{style:{...l.ZN.callout,fontWeight:l.Xh.bold,color:"#854F0B",flex:1},children:"이 손님을 신고했어요"})]}),(0,r.jsx)("div",{style:{display:"flex",flexWrap:"wrap",gap:6},children:t.map(e=>(0,r.jsx)("span",{style:{...l.ZN.footnote,fontWeight:l.Xh.medium,color:"#854F0B",background:"var(--color-white)",border:"1px solid #FAD9A6",borderRadius:999,padding:"4px 10px"},children:l.SZ[e]},e))}),n&&(0,r.jsxs)("p",{style:{...l.ZN.footnote,margin:"10px 0 0",color:"#7A5A2A",lineHeight:1.5},children:["“",n,"”"]}),(0,r.jsx)("p",{style:{...l.ZN.footnote,margin:"10px 0 0",color:"#A98A5A"},children:"제출한 신고는 수정할 수 없어요 \xb7 정정이 필요하면 고객센터로 문의해 주세요"})]})}function E(){return(0,r.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:6,borderRadius:14,border:"1px solid ".concat(l.AV),background:"var(--color-primary-50)",padding:"12px 14px"},children:[(0,r.jsx)("span",{style:{display:"inline-flex",color:l.jF},children:(0,r.jsx)(c.mp,{dir:"up",size:15})}),(0,r.jsx)("span",{style:{...l.ZN.callout,fontWeight:l.Xh.bold,color:l.jF},children:"이 손님을 좋게 평가했어요"})]})}},17366:(e,t,n)=>{"use strict";n.d(t,{q:()=>r});let r=(0,n(1275).F3)("App",{web:()=>n.e(1932).then(n.bind(n,21932)).then(e=>new e.AppWeb)})},19535:(e,t,n)=>{"use strict";n.d(t,{$:()=>s,s:()=>a});var r=n(19212),i=n(39941),o=n(47113),a=class extends i.k{#e;#t;#n;#r;constructor(e){super(),this.#e=e.client,this.mutationId=e.mutationId,this.#n=e.mutationCache,this.#t=[],this.state=e.state||s(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#t.includes(e)||(this.#t.push(e),this.clearGcTimeout(),this.#n.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.#t=this.#t.filter(t=>t!==e),this.scheduleGc(),this.#n.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.#t.length||("pending"===this.state.status?this.scheduleGc():this.#n.remove(this))}continue(){return this.#r?.continue()??this.execute(this.state.variables)}async execute(e){let t=()=>{this.#i({type:"continue"})},n={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#r=(0,o.II)({fn:()=>this.options.mutationFn?this.options.mutationFn(e,n):Promise.reject(Error("No mutationFn found")),onFail:(e,t)=>{this.#i({type:"failed",failureCount:e,error:t})},onPause:()=>{this.#i({type:"pause"})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#n.canRun(this)});let r="pending"===this.state.status,i=!this.#r.canStart();try{if(r)t();else{this.#i({type:"pending",variables:e,isPaused:i}),this.#n.config.onMutate&&await this.#n.config.onMutate(e,this,n);let t=await this.options.onMutate?.(e,n);t!==this.state.context&&this.#i({type:"pending",context:t,variables:e,isPaused:i})}let o=await this.#r.start();return await this.#n.config.onSuccess?.(o,e,this.state.context,this,n),await this.options.onSuccess?.(o,e,this.state.context,n),await this.#n.config.onSettled?.(o,null,this.state.variables,this.state.context,this,n),await this.options.onSettled?.(o,null,e,this.state.context,n),this.#i({type:"success",data:o}),o}catch(t){try{await this.#n.config.onError?.(t,e,this.state.context,this,n)}catch(e){Promise.reject(e)}try{await this.options.onError?.(t,e,this.state.context,n)}catch(e){Promise.reject(e)}try{await this.#n.config.onSettled?.(void 0,t,this.state.variables,this.state.context,this,n)}catch(e){Promise.reject(e)}try{await this.options.onSettled?.(void 0,t,e,this.state.context,n)}catch(e){Promise.reject(e)}throw this.#i({type:"error",error:t}),t}finally{this.#n.runNext(this)}}#i(e){this.state=(t=>{switch(e.type){case"failed":return{...t,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...t,isPaused:!0};case"continue":return{...t,isPaused:!1};
1case"pending":return{...t,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...t,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...t,data:void 0,error:e.error,failureCount:t.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}})(this.state),r.jG.batch(()=>{this.#t.forEach(t=>{t.onMutationUpdate(e)}),this.#n.notify({mutation:this,type:"updated",action:e})})}};function s(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}},21774:(e,t,n)=>{"use strict";n.d(t,{p:()=>r});let r=(0,n(1275).F3)("Device",{web:()=>n.e(6439).then(n.bind(n,88820)).then(e=>new e.DeviceWeb)})},25700:(e,t,n)=>{"use strict";n.d(t,{At:()=>c,E9:()=>s,GC:()=>o,Nb:()=>u,gk:()=>a,kM:()=>l});var r=n(1275),i=(e=>(e[e.TOP=0]="TOP",e[e.BOTTOM=1]="BOTTOM",e))(i||{}),o=(e=>(e[e.PAGE_SHEET=0]="PAGE_SHEET",e[e.FORM_SHEET=1]="FORM_SHEET",e[e.FULL_SCREEN=2]="FULL_SCREEN",e))(o||{}),a=(e=>(e[e.BOTTOM_SHEET=0]="BOTTOM_SHEET",e[e.FULL_SCREEN=1]="FULL_SCREEN",e))(a||{}),s=(e=>(e[e.FLIP_HORIZONTAL=0]="FLIP_HORIZONTAL",e[e.CROSS_DISSOLVE=1]="CROSS_DISSOLVE",e[e.COVER_VERTICAL=2]="COVER_VERTICAL",e))(s||{}),l=(e=>(e[e.FADE_IN=0]="FADE_IN",e[e.FADE_OUT=1]="FADE_OUT",e[e.SLIDE_IN_LEFT=2]="SLIDE_IN_LEFT",e[e.SLIDE_OUT_RIGHT=3]="SLIDE_OUT_RIGHT",e))(l||{}),c=(e=>(e[e.CLOSE=0]="CLOSE",e[e.CANCEL=1]="CANCEL",e[e.DONE=2]="DONE",e))(c||{});o.FULL_SCREEN,s.COVER_VERTICAL;let u=(i.TOP,c.DONE,o.FULL_SCREEN,s.COVER_VERTICAL,a.BOTTOM_SHEET,l.FADE_IN,l.FADE_OUT,(0,r.F3)("InAppBrowser",{web:()=>n.e(4470).then(n.bind(n,34470)).then(e=>new e.InAppBrowserWeb)}))},27896:(e,t,n)=>{"use strict";n.d(t,{i0:()=>r,Nb:()=>a,Kk:()=>i});var r,i,o=n(1275);!function(e){e.WHITE="white",e.BLACK="black"}(r||(r={})),function(e){e.ACTIVITY="activity",e.COMPACT="compact",e.NAVIGATION="navigation",e.BLANK="blank"}(i||(i={}));let a=(0,o.F3)("InAppBrowser",{web:()=>n.e(2310).then(n.bind(n,72310)).then(e=>new e.InAppBrowserWeb)})},31599:(e,t,n)=>{"use strict";n.d(t,{z:()=>o});let r=0,i="";function o(){if("undefined"==typeof document)return()=>{};0===r&&(i=document.body.style.overflow,document.body.style.overflow="hidden"),r+=1;let e=!1;return()=>{!e&&(e=!0,(r-=1)<=0&&(r=0,document.body.style.overflow=i,i=""))}}},54565:(e,t,n)=>{"use strict";n.d(t,{default:()=>T});var r=n(30573),i=n(69177),o=n(79952),a=n(56759),s=n(17163),l=n(94263),c=n(24911),u=n(70316),d=n(85484),p=n(31599);function h(e){let{order:t,getListEl:n,getStickyEl:o,onDone:a,onEvalPick:s}=e,[l,c]=(0,i.useState)(null),h=(0,i.useRef)(null),m=(0,i.useRef)(null),E=(0,i.useRef)(null),f=(0,i.useRef)(null),y=(0,i.useRef)(null),g=(0,i.useRef)(!1),x=(0,i.useRef)(!1),C=(0,i.useRef)([]),b=(0,i.useCallback)((e,t)=>{C.current.push(setTimeout(e,t))},[]),_=(0,i.useCallback)(()=>{var e,r;return null!=(r=null==(e=n())?void 0:e.querySelector('li[data-order-id="'.concat(t.id,'"]')))?r:null},[n,t.id]),v=(0,i.useCallback)(()=>window.matchMedia("(prefers-reduced-motion: reduce)").matches,[]),S=(0,i.useCallback)(e=>{let t=document.body,n=t.scrollTop,r=t.scrollHeight-t.clientHeight,i=n;for(let n=0;n<12;n++){var a,s;t.scrollTop=Math.min(Math.max(i,0),r);let n=null!=(s=null==(a=o())?void 0:a.getBoundingClientRect().bottom)?s:48,l=e.previousElementSibling,c=(null!=l?l:e).getBoundingClientRect().height,u=e.getBoundingClientRect().top-(n+c);if(1>Math.abs(u))break;i=t.scrollTop+u}let l=Math.min(Math.max(i,0),r);return t.scrollTop=n,l},[o]),T=(0,i.useCallback)(()=>{let e=_();if(!e)return null;let t=e.getBoundingClientRect();return{left:0,top:t.top,width:window.innerWidth,height:t.height}},[_]),A=(0,i.useCallback)(()=>{if(x.current||g.current)return;x.current=!0;let e=f.current,n=E.current,r=y.current,i=v(),o=()=>{a(),h.current&&(null==s||s(t,h.current))};(async()=>{var t,a;let s=_();if(s){let e=document.body.scrollTop,n=S(s),r=Math.abs(n-e);await (t=i?0:Math.min(620,Math.max(320,.62*r)),new Promise(e=>{let r=document.body,i=r.scrollTop;if(1>Math.abs(n-i)||t<=0){r.scrollTop=n,e();return}let o=!1,a=()=>{o||(o=!0,r.scrollTop=n,e())},s=null,l=e=>{if(o)return;null===s&&(s=e);let c=Math.min(1,(e-s)/t);r.scrollTop=i+(n-i)*(c<.5?4*c*c*c:1-Math.pow(-2*c+2,3)/2),c<1?requestAnimationFrame(l):a()};requestAnimationFrame(l),setTimeout(a,t+120)}))}if(g.current)return;let l=T();if(!e||!n||!r||!l||i){let e=null==(a=m.current)?void 0:a.animate([{opacity:1},{opacity:0}
1],{duration:200,easing:"ease",fill:"forwards"});e&&(e.onfinish=o),b(o,240);return}let c=e.getBoundingClientRect();e.animate([{left:"".concat(c.left,"px"),top:"".concat(c.top,"px"),width:"".concat(c.width,"px"),height:"".concat(c.height,"px"),borderRadius:"24px",boxShadow:"0 0 40px rgba(0,0,0,0.16)",opacity:1,transform:"scale(1)"},{left:"".concat(l.left,"px"),top:"".concat(l.top,"px"),width:"".concat(l.width,"px"),height:"".concat(l.height,"px"),borderRadius:"14px",boxShadow:"0 2px 10px rgba(2,32,71,0)",opacity:0,transform:"scale(1)"}],{duration:440,easing:"cubic-bezier(0.4, 0, 0.2, 1)",fill:"forwards"}),r.animate([{opacity:1},{opacity:0,offset:.55},{opacity:0}],{duration:440,easing:"ease",fill:"forwards"}),n.animate([{opacity:1},{opacity:0}],{duration:440,easing:"ease",fill:"forwards"}),b(()=>{g.current||o()},450)})()},[_,b,a,s,t,v,T,S]),O=(0,i.useCallback)(e=>{h.current||x.current||(h.current=e,c(e),b(()=>A(),720))},[A,b]);return(0,i.useEffect)(()=>{g.current=!1,x.current=!1;let e=f.current,t=E.current,n=y.current;if(!e||!t||!n)return;(()=>{let r=v(),i=Math.min(312,window.innerWidth-48);e.style.width="".concat(i,"px");let o=e.offsetHeight,a=(window.innerWidth-i)/2,s=Math.max(24,(window.innerHeight-o)/2);if(Object.assign(e.style,{left:"".concat(a,"px"),top:"".concat(s,"px"),height:"".concat(o,"px"),borderRadius:"24px",boxShadow:"0 0 40px rgba(0,0,0,0.16)"}),n.style.opacity="1",r){e.style.opacity="1",t.style.opacity="1";return}t.animate([{opacity:0},{opacity:1}],{duration:240,easing:"ease",fill:"forwards"}),e.animate([{opacity:0,transform:"scale(0.92)"},{opacity:1,transform:"scale(1)"}],{duration:300,easing:"cubic-bezier(0.22, 1, 0.36, 1)",fill:"forwards"})})();let r=(0,p.z)(),i=e=>e.preventDefault();document.addEventListener("wheel",i,{passive:!1}),document.addEventListener("touchmove",i,{passive:!1});let o=C.current;return()=>{g.current=!0,o.forEach(clearTimeout),o.length=0,document.removeEventListener("wheel",i),document.removeEventListener("touchmove",i),r()}},[t.id]),(0,u.createPortal)((0,r.jsxs)("div",{ref:m,className:"no-safe-area fixed inset-0 z-[var(--z-index-modal)]",role:"dialog","aria-modal":"true","aria-label":"픽업 완료 알림",children:[(0,r.jsx)("div",{ref:E,className:"absolute inset-0 bg-black/50 opacity-0",onClick:A,"aria-hidden":!0}),(0,r.jsx)("div",{ref:f,className:"fixed overflow-hidden bg-white opacity-0",style:{left:0,top:0,width:312},children:(0,r.jsxs)("div",{ref:y,className:"px-4 pb-4 pt-6 text-center opacity-0",children:[(0,r.jsx)("style",{children:"@keyframes lm-check-pop{0%{transform:scale(0.4);opacity:0}
160%{transform:scale(1.18)}100%{transform:scale(1);opacity:1}}"}),!l&&(0,r.jsx)("button",{type:"button",onClick:A,"aria-label":"닫기",className:"absolute right-[14px] top-[14px] flex h-[28px] w-[28px] items-center justify-center rounded-full border-none bg-[#F2F4F6]",children:(0,r.jsx)("svg",{width:"15",height:"15",viewBox:"0 0 24 24",fill:"none","aria-hidden":!0,children:(0,r.jsx)("path",{d:"M6 6l12 12M18 6L6 18",stroke:"#4E5968",strokeWidth:"2",strokeLinecap:"round"})})}),(0,r.jsx)("div",{className:"mx-auto mb-3 flex h-[52px] w-[52px] items-center justify-center rounded-full bg-primary-50",children:(0,r.jsx)("svg",{width:"26",height:"26",viewBox:"0 0 24 24",fill:"none","aria-hidden":!0,children:(0,r.jsx)("path",{d:"M5 13l4 4L19 7",stroke:"#0F9E63",strokeWidth:"2.6",strokeLinecap:"round",strokeLinejoin:"round"})})}),(0,r.jsxs)("h3",{className:"text-[20px] font-bold text-[#191F28]",children:[t.code," 픽업 완료"]}),(0,r.jsx)("p",{className:"mt-2 text-[14px] text-[#6B7684]",children:"손님이 픽업을 완료했어요."}),(0,r.jsx)("p",{className:"mb-[10px] mt-[18px] text-[14px] font-semibold text-[#333D4B]",children:"이번 픽업 어땠나요?"}),(0,r.jsx)("div",{className:"flex gap-2",children:[["good","좋았어요","up","#16CC83","#0F9E63"],["bad","불편했어요","down","#EF9F27","#854F0B"]].map(e=>{let[t,n,i,o,a]=e,s=l===t;return(0,r.jsxs)("button",{type:"button",disabled:!!l,onClick:()=>O(t),className:"inline-flex h-[52px] flex-1 items-center justify-center gap-[6px] rounded-[12px] bg-white text-[16px] font-bold",style:{border:"1px solid ".concat(s?o:"#E5E8EB"),color:s?a:"#333D4B",transition:"border-color .2s, color .2s"},children:[s?(0,r.jsx)("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none","aria-hidden":!0,style:{animation:"lm-check-pop .3s cubic-bezier(0.34,1.56,0.64,1) both"},children:(0,r.jsx)("path",{d:"M5 13l4 4L19 7",stroke:a,strokeWidth:"2.8",strokeLinecap:"round",strokeLinejoin:"round"})}):(0,r.jsx)(d.mp,{dir:i,size:18}),n]},t)})})]})})]}),document.body)}var m=n(73502);function E(e){var t;let{placeId:n}=e,o=(0,a.jE)(),u=(0,m.m)(e=>e.queue),d=(0,m.m)(e=>e.done),p=(0,m.m)(e=>e.clearGlow),E=(0,m.m)(e=>e.setEval),f=(0,m.m)(e=>e.removeEval),y=(0,m.m)(e=>e.setReport),g=null!=(t=u[0])?t:null,[x,C]=(0,i.useState)(!0);(0,i.useEffect)(()=>{let e=()=>C("visible"===document.visibilityState);return e(),document.addEventListener("visibilitychange",e),()=>document.removeEventListener("visibilitychange",e)},[]);let[b,_]=(0,i.useState)(null),{mutate:v}=(0,l.A)(),S=()=>{n&&o.invalidateQueries({queryKey:["place",n,"pickup-orders"]})};return n?(0,r.jsxs)(r.Fragment,{children:[g&&x&&(0,r.jsx)(h,{order:g,onEvalPick:(e,t)=>{if(n){if(E(e.id,t),"bad"===t)return void _(e.id);v({placeId:n,orderId:e.id,action:"add"},{onSuccess:t=>{if(!t.success){f(e.id),(0,c.P0)({iconName:"error",message:"저장에 실패했어요. 다시 시도해주세요."});return}f(e.id),S()},onError:()=>{f(e.id),(0,c.P0)({iconName:"error",message:"저장에 실패했어요. 다시 시도해주세요."})}})}},getListEl:()=>document.querySelector("[data-lm-order-list]"),getStickyEl:()=>document.querySelector("[data-lm-order-sticky]"),onDone:()=>{let e=g.id;d(),window.setTimeout(()=>p(e),3400)}},g.id),null!==b&&(0,r.jsx)(s.Ay,{open:!0,placeId:n,orderId:b,onClose:()=>_(e=>e===b?null:e),onSkipped:S,onReported:(e,t)=>{y(b,{kinds:e,text:t}),S()},onUndone:()=>{f(b),y(b,null),S()}},b)]}):null}var f=n(97569),y=n(33266),g=n(13277),x=n(8531),C=n(12038),b=n(11774),_=n(96510),v=n(35866);let S="/place/order";function T(){let e=(0,f.default)(e=>e.isLoggedIn),t=(0,o.usePlaceStore)(e=>e.currentPlaceId),n=e?t:null;return(0,i.useLayoutEffect)(()=>{(0,y.qK)()},[]),!function(e){let{unlocked:t,play:n,stop:r}=(0,v.$)(),o=(0,g.usePathname)(),s=(0,i.useRef)(o);s.current=o,(0,i.useEffect)(()=>{o===S&&r()},[o,r]),!function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=(0,a.jE)(),r=(0,i.useRef)(t.onEvent);r.current=t.onEvent;let o=(0,i.useRef)(t.onConfirmImminent);o.current=t.onConfirmImminent;let s=(0,i.useRef)(t.onPickupComplete);s.current=t.onPickupComplete,(0,i.useEffect)(()=>
1{if(!e||e<=0)return;let t=null,i=null,a=0,l=!1,c=e=>{var t,i,a;let l=(0,x.RA)(e);null==l||l.forEach(e=>{n.invalidateQueries({queryKey:e})});let c=(0,x.$4)(e);c&&(null==(t=r.current)||t.call(r,c));let u=(0,x.xS)(e);u&&(null==(i=s.current)||i.call(s,u));let d=(0,x.gX)(e);d&&(null==(a=o.current)||a.call(o,d))},u=()=>{n.invalidateQueries({queryKey:["place",e]})},d=()=>{i&&(clearTimeout(i),i=null)},p=()=>{l||document.hidden||(d(),i=setTimeout(()=>{h()},function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Math.random;return Math.min(Math.min(1e3*2**e,3e4)+Math.round(1e3*t()),3e4)}(a++)))},h=async()=>{if(l||document.hidden)return;let{accessToken:n}=(0,f.getSessionTokens)();if(!n)return void p();t=new AbortController;try{let r=await fetch("".concat("https://api.luckymeal.io","/api/place/places/").concat(e,"/order-events"),{method:"GET",headers:{Accept:"text/event-stream",place_acc:n},signal:t.signal});if(!r.ok||!r.body)return void p();a=0,u();let i=r.body.getReader(),o=new TextDecoder,s="";for(;!l;){let{value:e,done:t}=await i.read();if(t)break;s+=o.decode(e,{stream:!0});let{events:n,rest:r}=function(e){var t;let n=e.replace(/\r\n/g,"\n").split("\n\n"),r=null!=(t=n.pop())?t:"",i=[];for(let e of n){let t;if(""===e.trim())continue;let n=[];for(let r of e.split("\n")){if(r.startsWith(":"))continue;let e=r.indexOf(":"),i=-1===e?r:r.slice(0,e),o=-1===e?"":r.slice(e+1);o.startsWith(" ")&&(o=o.slice(1)),"event"===i?t=o:"data"===i&&n.push(o)}n.length>0&&i.push({event:t,data:n.join("\n")})}return{events:i,rest:r}}(s);for(let e of(s=r,n))if("ping"!==e.event)try{c(JSON.parse(e.data))}catch(e){}}p()}catch(e){p()}},m=()=>{document.hidden?(d(),null==t||t.abort()):(a=0,h())};return document.addEventListener("visibilitychange",m),h(),()=>{l=!0,document.removeEventListener("visibilitychange",m),d(),null==t||t.abort()}},[e,n])}(e,{onEvent:(0,i.useCallback)(e=>{let t=(0,_.LZ)(e);if(!t)return;let r=(0,y.eA)(),i=(0,y.rA)(e),o=i?r[i]:null;(!o||o.enabled)&&(t.sound&&(!o||o.sound)&&(C.U.setVolume(r.volume),n(t.sound,{repeat:t.repeat,intervalMs:t.intervalMs})),(0,b.b)({title:t.notification.title,body:t.notification.body,tag:e,requireInteraction:t.notification.requireInteraction}))},[n]),onConfirmImminent:(0,i.useCallback)(e=>{let t=_.q$,r=(0,y.eA)().confirmImminent;if(!r.enabled)return;let i=s.current===S&&!document.hidden;t.sound&&r.sound&&(C.U.setVolume((0,y.eA)().volume),n(t.sound,{repeat:i?1:t.repeat,intervalMs:t.intervalMs}));let o=(0,_.j5)(e);(0,b.b)({title:o.title,body:o.body,tag:"CONFIRM_IMMINENT",requireInteraction:o.requireInteraction})},[n]),onPickupComplete:e=>(0,m.N)().enqueue([{id:e.orderId,code:e.orderCode}])})}(n),(0,i.useLayoutEffect)(()=>{(0,m.N)().reset()},[n]),(0,r.jsx)(E,{placeId:n})}},57087:(e,t,n)=>{"use strict";n.d(t,{_Y:()=>u,ir:()=>d,qY:()=>c});var r=n(23458),i=n(56759),o=n(90126),a=n(62150);let s=e=>"".concat("https://api.luckymeal.io","/api/place/places/").concat(e,"/first-step-guide"),l=e=>["place",e,"first-step-guide"];function c(e){let{fetchWithAuth:t}=(0,a.A)();return(0,r.I)({queryKey:l(e),throwOnError:!1,queryFn:()=>t(s(e),{method:"GET",headers:{"Content-Type":"application/json"}}),enabled:!!e})}function u(e){let{fetchWithAuth:t}=(0,a.A)(),n=(0,i.jE)();return(0,o.n)({throwOnError:!1,mutationFn:n=>t("".concat(s(e),"/visit"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({mission:n})}),onSuccess:()=>n.invalidateQueries({queryKey:l(e)})})}function d(e){let{fetchWithAuth:t}=(0,a.A)(),n=(0,i.jE)();return(0,o.n)({throwOnError:!1,mutationFn:()=>t("".concat(s(e),"/celebrate"),{method:"POST",headers:{"Content-Type":"application/json"}}),onSuccess:()=>n.invalidateQueries({queryKey:l(e)})})}},58299:(e,t,n)=>{Promise.resolve().then(n.bind(n,6377)),Promise.resolve().then(n.bind(n,54565)),Promise.resolve().then(n.bind(n,89602))},62150:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r=n(69177),i=n(33067),o=n(33951),a=n(97569);function s(){let{setIsLoggedIn:e,setAccessToken:t,setRefreshToken:n,clearLoginStatus:s,reset:l}=(0,a.default)(),{refreshPushTokenWithToken:c}=(0,o.G)(),u=(0,r.useCallback)(async()=>{let{accessToken:e}=(0,a.getSessionTokens)();e&&c(e,"place")},[c]),{fetch:d,fetchWithAuth:p}=(0,i.A)({getSessionTokens:a.getSessionTokens,getAccountInfo:()=>({accountId:(0,a.getSessionTokens)().accountId,type:"PLACE"}),setIsLoggedIn:t=>e(t),setAccessToken:e=>t(e),setRefreshToken:e=>n(e),clearLoginStatus:s,resetSession:l,buildRenewBody:(e,t)=>({placeAcc:e,placeRfs:t,type:"PLACE"}),buildAuthHeader:e=>({place_acc:e}),renewUrl:"".concat("https://api.luckymeal.io","/api/place/auth/token/renew"),onTokenRefresh:u});return{fetch:d,fetchWithAuth:p}}},67260:(e,t,n)=>{"use strict";n.d(t,{n:()=>a});var r=n(30573);let i={gold:{w:222,h:261},lucky:{w:243,h:270},three:{w:315,h:229},sprout:{w:165,h:260},seed:{w:197,h:228}},o={0:"마른 새싹",1:"씨앗",2:"새싹",3:"클로버",4:"네잎클로버"};function a(e){let{leaves:t,size:n=40,className:a}=e,s=4===t?"gold":3===t?"lucky":2===t?"three":1===t?"sprout":"seed",l=i[s],c=n/261;return(0,r.jsx)("img",{src:"/image/clover/".concat(s,".svg"),alt:o[t],className:a,draggable:!1,width:Math.round(l.w*c*100)/100,height:Math.round(l.h*c*100)/100,style:{display:"block",flexShrink:0}})}}
1,73502:(e,t,n)=>{"use strict";n.d(t,{N:()=>a,m:()=>o});var r=n(8379);let i={queue:[],glowOrderId:null,seen:[],evalByOrderId:{},reportByOrderId:{}},o=(0,r.v)((e,t)=>({...i,enqueue:t=>{0!==t.length&&e(e=>{let n=new Set([...e.queue.map(e=>e.id),...e.seen]),r=t.filter(e=>!n.has(e.id));return 0===r.length?e:{...e,queue:[...e.queue,...r]}})},activeOrder:()=>{var e;return null!=(e=t().queue[0])?e:null},done:()=>{e(e=>{let[t,...n]=e.queue;if(!t)return e;let r=[...e.seen,t.id],i=r.length>200?r.slice(-200):r,o=r.slice(0,r.length-i.length);if(0===o.length)return{...e,queue:n,glowOrderId:t.id,seen:i};let a={...e.evalByOrderId},s={...e.reportByOrderId};return o.forEach(e=>{delete a[e],delete s[e]}),{...e,queue:n,glowOrderId:t.id,seen:i,evalByOrderId:a,reportByOrderId:s}})},clearGlow:t=>{e(e=>e.glowOrderId===t?{...e,glowOrderId:null}:e)},setEval:(t,n)=>{e(e=>({...e,evalByOrderId:{...e.evalByOrderId,[t]:n}}))},removeEval:t=>{e(e=>{if(!(t in e.evalByOrderId))return e;let n={...e.evalByOrderId};return delete n[t],{...e,evalByOrderId:n}})},setReport:(t,n)=>{e(e=>{let r={...e.reportByOrderId};return n?r[t]=n:delete r[t],{...e,reportByOrderId:r}})},reset:()=>e({...i})})),a=()=>o.getState()},82256:(e,t,n)=>{"use strict";n.d(t,{f:()=>r});let r={ROOT:"/",LOGIN:"/login",ABOUT:"/about",STORES:"/stores",BLOG:"/blog",STORE_DETAIL:e=>"/stores/".concat(e),ERROR_UNAUTHORIZED:"/error-unauthorized",CUSTOMER_HOME:"/customer",CUSTOMER_HOME_SEARCH_PLACE:"/customer/search-place",CUSTOMER_AUTH_KAKAO_CALLBACK:"/customer/auth/kakao-callback",CUSTOMER_INITIAL_SETUP:"/customer/initial-setup",CUSTOMER_TUTORIAL:"/customer/tutorial",CUSTOMER_TUTORIAL_PICKUP:"/customer/tutorial/pickup",CUSTOMER_TUTORIAL_DONE:"/customer/tutorial/done",CUSTOMER_ALARM:"/customer/alarm",CUSTOMER_ALARM_SETTING:"/customer/alarm/setting",CUSTOMER_LOCATION:"/customer/location",CUSTOMER_BOOKMARK:"/customer/bookmark",CUSTOMER_PROXY_PICKUP_BASE:"/customer/proxy-pickup",CUSTOMER_PROXY_PICKUP_SHORT:"/pickup",CUSTOMER_PLACE_DETAIL:(e,t)=>null!=t&&""!==t?"/customer?placeId=".concat(e,"&luckyBagId=").concat(t):"/customer?placeId=".concat(e),CUSTOMER_FEED:"/customer/feed",CUSTOMER_FEED_CATEGORY:e=>"/customer/feed/".concat(e),CUSTOMER_ORDER:(e,t,n)=>{let r=[null!=t?"luckyBagId=".concat(t):null,n?"round=".concat(n):null].filter(Boolean);return r.length?"/customer/order/".concat(e,"?").concat(r.join("&")):"/customer/order/".concat(e)},CUSTOMER_ORDER_HISTORY:"/customer/order-history",CUSTOMER_ORDER_HISTORY_DETAIL:e=>"/customer/order-history/".concat(e),CUSTOMER_ORDER_HISTORY_REVIEW:"/customer/order-history/review",CUSTOMER_ORDER_HISTORY_PICKUP_COMPLETE:e=>"/customer/order-history/".concat(e,"/pickup-complete"),CUSTOMER_ORDER_HISTORY_MAP:e=>"/customer/order-history/".concat(e,"/map"),CUSTOMER_SURVEY_PICKUP_COMPLETE:"/customer/survey/pickup-complete",CUSTOMER_PAYMENT:"/customer/payment",CUSTOMER_PAYMENT_PENDING:"/customer/payment/pending",CUSTOMER_PAYMENT_SUCCESS:"/customer/payment/success",CUSTOMER_PAYMENT_FAIL:"/customer/payment/fail",CUSTOMER_REVIEW_BASE:"/customer/review",CUSTOMER_REVIEW_EDIT:e=>"/customer/review/edit/".concat(e),CUSTOMER_REVIEW_APPEAL:e=>"/customer/review/appeal/".concat(e),CUSTOMER_REVIEW_FEED:"/customer/review-feed",CUSTOMER_QUIZ:"/customer/quiz",CUSTOMER_ONBOARDING_GATE:"/customer/onboarding-gate",CUSTOMER_TASTE:"/customer/taste",CUSTOMER_MYPAGE:"/customer/mypage",CUSTOMER_MYPAGE_SETTING:"/customer/mypage/setting",CUSTOMER_MYPAGE_SETTING_PROFILE:"/customer/mypage/setting/profile",CUSTOMER_MYPAGE_GET_COUPON:"/customer/mypage/get-coupon",CUSTOMER_MYPAGE_MY_COUPON:"/customer/mypage/my-coupon",CUSTOMER_MYPAGE_MY_REVIEW:"/customer/mypage/my-review",CUSTOMER_MYPAGE_MY_REVIEW_PENDING:"/customer/mypage/my-review/pending",CUSTOMER_CS:"/customer/cs",CUSTOMER_TERMS:"/customer/terms",CUSTOMER_TERMS_UPDATE:"/customer/terms-update",CUSTOMER_TERMS_DETAIL:e=>"/customer/terms/".concat(e),CUSTOMER_OPEN_SOURCE_LICENSE:"/customer/terms/open-source-license",CUSTOMER_FAQ:"/customer/faq",CUSTOMER_MYPAGE_WITHDRAWAL:"/customer/mypage/withdrawal",CUSTOMER_FEEDBACK:"/customer/feedback",CUSTOMER_FEEDBACK_COMPLETE:"/customer/feedback/complete",PLACE_BASE:"/place",PLACE_HOME:"/place/order",PLACE_SETSELL:"/place/setsell",PLACE_DAY_OFF:"/place/day-off",PLACE_ORDER_HISTORY:(e,t,n,r,i)=>"/place/order-history?date=".concat(e,"&start=").concat(t,"&end=").concat(n).concat(null!=r?"&luckyBag=".concat(r):"").concat(i?"&saleType=".concat(i):""),PLACE_ORDER_CANCEL:(e,t,n,r,i)=>"/place/order-cancel?date=".concat(e,"&start=").concat(t,"&end=").concat(n).concat(null!=r?"&luckyBag=".concat(r):"").concat(i?"&saleType=".concat(i):""),PLACE_ORDER_DETAIL:(e,t,n,r,i,o)=>"/place/order-detail?orderId=".concat(e,"&date=").concat(t,"&start=").concat(n,"&end=").concat(r).concat(null!=i?"&luckyBag=".concat(i):"").concat(o?"&saleType=".concat(o):""),PLACE_MENU:"/place/menu",PLACE_ALARM:"/place/alarm",PLACE_ALARM_SETTING:"/place/alarm-setting",PLACE_DEVICE_ALARM_SETTING:"/place/device-alarm-setting",PLACE_SETTLEMENT:"/place/settlement",PLACE_STATISTICS:"/place/statistics",PLACE_PROMOTION:"/place/promotion",PLACE_POS_INSTALL_GUIDE:"/place/pos-install-guide",PLACE_FEEDBACK:"/place/feedback",PLACE_LOGIN:"/place/login",PLACE_LOGIN_PHONE:"/place/login/phone",PLACE_LOGIN_PIN:"/place/login/pin",PLACE_LOGIN_RESET:"/place/login/reset",PLACE_LOGIN_LOCKED:"/place/login/locked",PLACE_LOGIN_UNLOCK:"/place/login/unlock",PLACE_SIGN_UP:"/place/sign-up",PLACE_SIGN_UP_START:"/place/sign-up/start",PLACE_SIGN_UP_TERMS:"/place/sign-up/terms",PLACE_SIGN_UP_STORE:"/place/sign-up/store",PLACE_SIGN_UP_STORE_DETAIL:"/place/sign-up/store/detail",PLACE_SIGN_UP_STORE_MANUAL:"/place/sign-up/store/manual",PLACE_SIGN_UP_PHONE:"/place/sign-up/phone",PLACE_SIGN_UP_VERIFY:"/place/sign-up/verify",PLACE_SIGN_UP_SUCCESS:"/place/sign-up/success",PLACE_PLACE_BASE:"/place/find-account",PLACE_FIND_ACCOUNT_EMAIL:"/place/find-account/email",PLACE_FIND_ACCOUNT_PASSWORD:"/place/find-account/password",PLACE_RESET_PASSWORD:"/place/reset-password",PLACE_INITIAL_SETUP:"/place/initial-setup",PLACE_FIRST_STEP_GUIDE:"/place/first-step-guide",PLACE_EMPLOYEE_INVITE:"/place/employee-invite",PLACE_EMPLOYEE_MANAGEMENT:"/place/employee-management",PLACE_INVITE_VERIFY:"/place/invite-verify",PLACE_EMPLOYEE_SIGN_UP:"/place/employee-sign-up",PLACE_CREATE_PLACE:"/place/create-place",PLACE_CREATE_PLACE_NEW:"/place/create-place/new",PLACE_CREATE_PLACE_EDIT:e=>"/place/create-place/".concat(e),PLACE_PLACE_SETTING:"/place/place-setting",PLACE_LUCKYBAG_SETTING:"/place/luckybag-setting",PLACE_ACCOUNT_MANAGEMENT:"/place/account-management",PLACE_ACCOUNT_CHANGE:"/place/account-change",PLACE_ACCOUNT_CHANGE_PHONE:"/place/account-management/phone",PLACE_ACCOUNT_CHANGE_PASSWORD:"/place/account-management/password",PLACE_SETTLEMENT_SETTING:"/place/settlement-setting",PLACE_SETTLEMENT_REGISTER:"/place/settlement/register",P
1LACE_SETTLEMENT_EDIT:"/place/settlement/edit",PLACE_SETTLEMENT_KYC_GUIDE:"/place/settlement/kyc-guide",PLACE_SETTLEMENT_HISTORY:"/place/settlement-history",PLACE_VERIFY_GUIDE:"/place/verify-guide",PLACE_REVIEW:"/place/review",PLACE_CS:"/place/cs",PLACE_TERMS:"/place/terms",PLACE_TERMS_DETAIL:e=>"/place/terms/".concat(e)}},85484:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>s,mp:()=>l});var r=n(30573),i=n(87339),o=n(67260);function a(e){let{compact:t}=e;return(0,r.jsxs)("span",{"aria-label":"주의 손님",style:{display:"inline-flex",alignItems:"center",gap:2,borderRadius:999,padding:t?"1px 6px":"2px 8px",background:i.sl.bg,color:i.sl.text,fontSize:t?11:i.ZN.footnote.fontSize,lineHeight:t?"16px":i.ZN.footnote.lineHeight,fontWeight:i.Xh.semiBold,fontFamily:"inherit",whiteSpace:"nowrap",flexShrink:0},children:[(0,r.jsx)("span",{"aria-hidden":!0,style:{fontSize:t?10:11},children:"⚠"}),i.Zj]})}function s(e){var t,n;let{clover:s,onTap:l,symbolOnly:c,symbolSize:u=17}=e,d=(null==(t=s.caution)?void 0:t.show)===!0?(0,r.jsx)(a,{compact:!!c}):null,p=s.isRookie&&!s.isNew,h=s.isNew?"첫 손님":s.tierName,m=s.isNew?i.xz:null!=(n=i.lL[s.tier])?n:i.lL.three,E="pill"in m?m.pill:void 0,f=s.leaves,y=!s.isNew&&s.gold;if(p){let e=!!c,t={display:"inline-flex",alignItems:"center",border:"none",borderRadius:999,padding:e?"1px 6px":"2px 8px",background:i.YP.bg,color:i.YP.text,fontSize:e?11:i.ZN.footnote.fontSize,lineHeight:e?"16px":i.ZN.footnote.lineHeight,fontWeight:i.Xh.semiBold,fontFamily:"inherit",whiteSpace:"nowrap",flexShrink:0,cursor:l?"pointer":"default",pointerEvents:l?"auto":"none"};return l?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("button",{type:"button",onClick:e=>{e.stopPropagation(),l()},"aria-label":"손님 클로버 루키",style:t,children:i.VL}),d]}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("span",{"aria-label":"손님 클로버 루키",style:t,children:i.VL}),d]})}if(c){let e={display:"inline-flex",alignItems:"center",justifyContent:"center",border:"none",borderRadius:999,padding:2.5,background:null!=E?E:"transparent",cursor:l?"pointer":"default",fontFamily:"inherit",flexShrink:0,pointerEvents:l?"auto":"none"},t=(0,r.jsx)(o.n,{leaves:f,gold:y,size:u,leafColor:m.leaf,stemColor:m.stem});return l?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("button",{type:"button",onClick:e=>{e.stopPropagation(),l()},"aria-label":"손님 클로버",style:e,children:t}),d]}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("span",{"aria-label":"손님 클로버",style:e,children:t}),d]})}return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("button",{type:"button",onClick:l?e=>{e.stopPropagation(),l()}:void 0,style:{display:"inline-flex",alignItems:"center",gap:3,borderRadius:999,border:"none",padding:E?"2px 8px 2px 5px":0,background:null!=E?E:"transparent",cursor:l?"pointer":"default",fontFamily:"inherit",flexShrink:0,pointerEvents:l?"auto":"none"},children:[(0,r.jsx)(o.n,{leaves:f,gold:y,size:15,leafColor:m.leaf,stemColor:m.stem}),(0,r.jsx)("span",{style:{...i.ZN.footnote,fontWeight:i.Xh.semiBold,color:m.text,whiteSpace:"nowrap"},children:h})]}),d]})}function l(e){let{dir:t,size:n=16}=e;return"up"===t?(0,r.jsxs)("svg",{width:n,height:n,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,r.jsx)("path",{d:"M7 10v12"}),(0,r.jsx)("path",{d:"M15 5.88 14 10h5.83a2 2 0 0 1 1.92 2.56l-2.33 8A2 2 0 0 1 17.5 22H4a2 2 0 0 1-2-2v-8a2 2 0 0 1 2-2h2.76a2 2 0 0 0 1.79-1.11L12 2a3.13 3.13 0 0 1 3 3.88Z"})]}):(0,r.jsxs)("svg",{width:n,height:n,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,r.jsx)("path",{d:"M17 14V2"}),(0,r.jsx)("path",{d:"M9 18.12 10 14H4.17a2 2 0 0 1-1.92-2.56l2.33-8A2 2 0 0 1 6.5 2H20a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2h-2.76a2 2 0 0 0-1.79 1.11L12 22a3.13 3.13 0 0 1-3-3.88Z"})]})}},87339:(e,t,n)=>{"use strict";n.d(t,{AV:()=>a,G:()=>o,L4:()=>f,SZ:()=>E,VL:()=>p,VX:()=>m,Xh:()=>i,YP:()=>h,ZN:()=>r,Zj:()=>l,jF:()=>s,jf:()=>y,lL:()=>u,sl:()=>c,xz:()=>d});let r={"headline-24":{fontSize:24,lineHeight:"36px",letterSpacing:"-0.24px"},"headline-22":{fontSize:22,lineHeight:"33px",letterSpacing:"-0.22px"},"headline-20":{fontSize:20,lineHeight:"30px",letterSpacing:"-0.2px"},title:{fontSize:18,lineHeight:"27px",letterSpacing:"-0.09px"},body:{fontSize:16,lineHeight:"24px",letterSpacing:0},callout:{fontSize:14,lineHeight:"21px",letterSpacing:0},footnote:{fontSize:12,lineHeight:"18px",letterSpacing:0}},i={normal:400,medium:500,semiBold:600,bold:700},o={900:"#191F28",700:"#333D4B",600:"#4E5968",500:"#6B7684",400:"#8B95A1",300:"#B0B8C1",100:"#E5E8EB",50:"#F2F4F6"},a="var(--color-primary-400)",s="#0F9E63",l="주의",c={bg:"#FDECEC",text:"#
1E5484D"},u={gold:{leaf:"#E0B25A",stem:"#B8860B",text:"#7c5610"},lucky:{leaf:"var(--color-primary-400)",stem:"#0F9E63",text:"#0F9E63"},three:{leaf:"var(--color-primary-400)",stem:"#0F9E63",text:"#6B7684"},sprout:{leaf:"#3ED497",stem:"var(--color-primary-600)",text:"#6B7684"},seed:{leaf:"#8CA697",stem:"#6E8577",text:"#6B7684"}},d={leaf:"#D3D1C7",stem:"#B0B8C1",text:o[400]},p="루키",h={bg:o[50],text:o[500]},m=["early","late","coerce","specificMenu","preCancel"],E={early:"픽업 시간보다 일찍 왔어요",late:"픽업 시간보다 늦게 왔어요",coerce:"다른 시간 수령을 요구해요",specificMenu:"특정 메뉴를 요구했어요",preCancel:"지속적으로 픽업 직전에 취소해요"};function f(e){var t;if(!e)return null;let n=e.kinds.filter(e=>m.includes(e));return 0===n.length?null:{kinds:n,text:null!=(t=e.detail)?t:""}}function y(e,t){return t<new Date("".concat(e,"T00:00:00+09:00")).getTime()+1296e6}},88585:(e,t,n)=>{"use strict";n.d(t,{h:()=>r});let r=(0,n(1275).F3)("PushNotifications",{})},89602:(e,t,n)=>{"use strict";n.d(t,{default:()=>c});var r=n(30573),i=n(69177),o=n(1275),a=n(51710);let s="size-auto w-16 flex-1 rounded-none",l="var(--color-grey-600)";function c(){let[e,t]=(0,i.useState)(!1),[n,c]=(0,i.useState)(!1),[u,d]=(0,i.useState)(!1),[p,h]=(0,i.useState)(!1),m=(0,i.useRef)(null);(0,i.useEffect)(()=>{h(function(){if("undefined"==typeof navigator||o.Capacitor.isNativePlatform())return!1;let e=navigator.userAgent;return!(/Android|iPhone|iPod|iPad|Mobile/i.test(e)||/Macintosh/i.test(e)&&navigator.maxTouchPoints>1)}())},[]);let E=(0,i.useCallback)(()=>{let e=document.body,n=e.scrollHeight-e.clientHeight,r="none"===e.style.pointerEvents||e.hasAttribute("data-scroll-locked");t(n>8&&!r),c(e.scrollTop>8),d(e.scrollTop<n-8)},[]);(0,i.useEffect)(()=>{let e=document.body;E(),e.addEventListener("scroll",E,{passive:!0}),window.addEventListener("resize",E);let t=new MutationObserver(E);return t.observe(e,{attributeFilter:["data-scroll-locked","style"],attributes:!0,childList:!0,subtree:!0}),()=>{e.removeEventListener("scroll",E),window.removeEventListener("resize",E),t.disconnect(),null!==m.current&&cancelAnimationFrame(m.current)}},[E]);let f=e=>{let t=document.body,n=t.scrollTop,r=e*t.clientHeight*.6;if(null!==m.current&&cancelAnimationFrame(m.current),window.matchMedia("(prefers-reduced-motion: reduce)").matches){t.scrollTop=n+r;return}let i=performance.now(),o=e=>{let a=Math.min(1,(e-i)/260);t.scrollTop=n+r*(1-(1-a)**3),m.current=a<1?requestAnimationFrame(o):null};m.current=requestAnimationFrame(o)};return p&&e?(0,r.jsxs)("div",{className:"fixed top-1/2 left-[calc(50%+272px)] z-[var(--z-index-gnb)] ".concat("h-[60svh]"," hidden -translate-y-1/2 flex-col overflow-hidden rounded-2xl border border-grey-300 bg-white md:flex"),"data-testid":"scroll-pager",children:[(0,r.jsx)(a.K,{ariaLabel:"위로",className:s,disabled:!n,iconColor:l,name:"chevron-up",onClick:()=>f(-1),size:"xlarge",variant:"subtle"}),(0,r.jsx)("div",{className:"h-px bg-grey-300"}),(0,r.jsx)(a.K,{ariaLabel:"아래로",className:s,disabled:!u,iconColor:l,name:"chevron-down",onClick:()=>f(1),size:"xlarge",variant:"subtle"})]}):null}},90126:(e,t,n)=>{"use strict";n.d(t,{n:()=>u});var r=n(69177),i=n(19535),o=n(19212),a=n(36285),s=n(42417),l=class extends a.Q{#e;#o=void 0;#a;#s;constructor(e,t){super(),this.#e=e,this.setOptions(t),this.bindMethods(),this.#l()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(e){let t=this.options;this.options=this.#e.defaultMutationOptions(e),(0,s.f8)(this.options,t)||this.#e.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#a,observer:this}),t?.mutationKey&&this.options.mutationKey&&(0,s.EN)(t.mutationKey)!==(0,s.EN)(this.options.mutationKey)?this.reset():this.#a?.state.status==="pending"&&this.#a.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#a?.removeObserver(this)}onMutationUpdate(e){this.#l(),this.#c(e)}getCurrentResult(){return this.#o}reset(){this.#a?.removeObserver(this),this.#a=void 0,this.#l(),this.#c()}mutate(e,t){return this.#s=t,this.#a?.removeObserver(this),this.#a=this.#e.getMutationCache().build(this.#e,this.options),this.#a.addObserver(this),this.#a.execute(e)}#l(){let e=this.#a?.state??(0,i.$)();this.#o={...e,isPending:"pending"===e.status,isSuccess:"success"===e.status,isError:"error"===e.status,isIdle:"idle"===e.status,mutate:this.mutate,reset:this.reset}}#c(e){o.jG.batch(()=>
1{if(this.#s&&this.hasListeners()){let t=this.#o.variables,n=this.#o.context,r={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};if(e?.type==="success"){try{this.#s.onSuccess?.(e.data,t,n,r)}catch(e){Promise.reject(e)}try{this.#s.onSettled?.(e.data,null,t,n,r)}catch(e){Promise.reject(e)}}else if(e?.type==="error"){try{this.#s.onError?.(e.error,t,n,r)}catch(e){Promise.reject(e)}try{this.#s.onSettled?.(void 0,e.error,t,n,r)}catch(e){Promise.reject(e)}}}this.listeners.forEach(e=>{e(this.#o)})})}},c=n(56759);function u(e,t){let n=(0,c.jE)(t),[i]=r.useState(()=>new l(n,e));r.useEffect(()=>{i.setOptions(e)},[i,e]);let a=r.useSyncExternalStore(r.useCallback(e=>i.subscribe(o.jG.batchCalls(e)),[i]),()=>i.getCurrentResult(),()=>i.getCurrentResult()),u=r.useCallback((e,t)=>{i.mutate(e,t).catch(s.lQ)},[i]);if(a.error&&(0,s.GU)(i.options.throwOnError,[a.error]))throw a.error;return{...a,mutate:u,mutateAsync:a.mutate}}},92217:(e,t,n)=>{"use strict";n.d(t,{y:()=>u});var r=n(1275),i=n(69177),o=n(79952),a=n(2180),s=n(57087);let l=[{key:"settlement",emoji:"\uD83D\uDCB0",title:"정산 정보",benefit:"번 돈을 제날짜에 받아요",action:"등록하기"},{key:"employee",emoji:"\uD83D\uDC65",title:"직원 초대",benefit:"직원이 대신 주문을 챙겨요",action:"알아보기"},{key:"app",emoji:"\uD83D\uDCF1",title:"앱 설치",benefit:"편하게 주문을 확인해요",action:"설치하기"},{key:"pos",emoji:"\uD83D\uDDA8️",title:"포스기 설치",benefit:"계산대에서 직원 누구나 주문을 봐요",action:"알아보기"},{key:"place-info",emoji:"\uD83C\uDFEA",title:"가게 자랑",benefit:"우리 가게 매력을 손님이 알아봐요",action:"추가하기"},{key:"luckybag-desc",emoji:"\uD83D\uDCDD",title:"보관\xb7먹는 법",benefit:"손님이 더 맛있게 먹어요",action:"채우기"},{key:"holiday",emoji:"\uD83D\uDCC5",title:"공휴일 설정",benefit:"쉬는 날엔 주문이 안 들어와요",action:"정해두기"}],c={first:"첫 걸음 가이드",more:"한 걸음 더"};function u(){let e=(0,o.usePlaceStore)(e=>e.currentPlaceId),{data:t}=(0,s.qY)(e),n=(0,a.sI)(t);return(0,i.useMemo)(()=>{var t;let i=r.Capacitor.isNativePlatform(),o=null!=(t=null==n?void 0:n.variant)?t:"first",a=l.map(e=>{var t,r;return{...e,isDone:"app"===(r={key:e.key,doneByServer:!!(null==n||null==(t=n.missions)?void 0:t[e.key]),isApp:i}).key&&!!r.isApp||r.doneByServer}}),s=a.filter(e=>e.isDone).length;return{isVisible:!!(null==n?void 0:n.visible),variant:o,name:c[o],placeId:e,missions:a,doneCount:s,total:a.length,isAllDone:a.length>0&&s===a.length,isCelebrated:!!(null==n?void 0:n.celebrated)}},[n,e])}},94263:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(90126),i=n(62150);function o(){let{fetchWithAuth:e}=(0,i.A)();return(0,r.n)({throwOnError:!1,mutationFn:t=>{let{placeId:n,orderId:r,action:i}=t;return e("".concat("https://api.luckymeal.io","/api/place/places/").concat(n,"/clover-praise"),{method:"add"===i?"POST":"DELETE",headers:{"Content-Type":"application/json"},body:JSON.stringify({orderId:r})})}})}}},e=>{var t=t=>e(e.s=t);e.O(0,[6531,6721,23,1275,8600,6214,2952,2377,3619,3452,5161,6808,6787,8954,3268,4426,3834,7358],()=>t(58299)),_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.