1"use strict";(self.webpackChunkshop_react_web=self.webpackChunkshop_react_web||[]).push([[622],{40622:(t,e,n)=>{n.r(e),n.d(e,{default:()=>b});var o=n(65043),s=n(46655),a=n(60441),i=n(23178),r=n(34020),c=n(83243),d=n(3018),l=n(97605),u=n(35509),p=n(28568),h=n(28463),f=n(33196),v=n(7685),I=n(59116),m=n(843),x=n(45717),g=n(9140),y=n(399),S=n(54080),j=n(17188),T=n(70579);const b=()=>{const[t,e]=(0,o.useState)(!1),{userData:n}=(0,x.A)(),{fetchAndSaveShopToken:b}=(0,f.y)(),{setToast:k}=(0,i.W)((0,s.k)((t=>({setToast:t.setToast})))),{storedInvitationInfo:$,setInvitationInfo:A,resetInvitationInfo:w}=(0,r.A)((0,s.k)((t=>({storedInvitationInfo:t.storedInvitationInfo,setInvitationInfo:t.setInvitationInfo,resetInvitationInfo:t.resetInvitationInfo})))),{invitationInfo:W,deleteInviteStaff:B,postInviteAccept:C}=(0,c.A)(),{loginSuccess:F}=(0,f.y)(),M=async()=>{a.A.invalidateQueries(m.jn.fetchStaffInfo(sessionStorage.getItem("shopId"))),await(0,h.nB)($.shopId),await b($.shopId),k("\uc9c1\uc6d0 \ub4f1\ub85d\uc774 \uc644\ub8cc\ub418\uc5c8\uc5b4\uc694.","success"),localStorage.removeItem("selectedStaffCheckList"),window.location.replace("/reservation")},D=()=>{e(!1),k("\ucd08\ub300\uac00 \uac70\uc808\ub418\uc5c8\uc5b4\uc694.","success"),F()},E=()=>{C((null===n||void 0===n?void 0:n.name)||"",$.shopId,M)};return(0,o.useEffect)((()=>{if(W&&W.length>0){const t=W.find((t=>t.isInvited));t?A(t):F()}}),[W]),(0,o.useEffect)((()=>()=>{w()}),[]),(0,T.jsxs)(T.Fragment,{children:[(0,T.jsx)(d.Z$,{$maxWidth:"1112px",$maxWidthMd:"360px",children:(0,T.jsxs)(d.ff,{margin:"217px auto",$minWidth:"360px",$marginMd:"156px auto",children:[(0,T.jsxs)(l.pT,{direction:"column",gap:"24px",children:[(0,T.jsx)(l.pT,{width:"240px",height:"240px",$widthMd:"180px",$heightMd:"180px",children:(0,T.jsx)("img",{src:g.A,alt:"\ucd08\ub300\uc7a5"})}),(0,T.jsxs)(l.pT,{direction:"column",gap:"16px",children:[(0,T.jsx)(y.V9,{fontWeight:I.sO.medium,align:"center",children:"[".concat((0,v.PR)($.shopName,10),"]\uc5d0\uc11c \ucd08\ub300\uc7a5\uc774 \ub3c4\ucc29\ud588\uc5b4\uc694!")}),(0,T.jsxs)(y.ld,{color:"var(--color-gray-500)",align:"center",children:["\uc548\ub155\ud558\uc138\uc694, ","[".concat((0,v.PR)((null===n||void 0===n?void 0:n.name)||"-",10),"]"),"\ub2d8!","\n","\ucd08\ub300\uc5d0 \uc218\ub77d\ud558\uace0 ",(0,T.jsx)(S.Q9,{display:"none",$displayMd:"block"})," ","[".concat((0,v.PR)($.shopName,10),"]"),"\uc758 \uc0c8\ub85c\uc6b4 \uc77c\uc6d0\uc774 \ub418\uc5b4\ubcf4\uc138\uc694."]})]})]}),(0,T.jsxs)(l.pT,{direction:"column",gap:"12px",margin:"40px auto 0",$maxWidth:"360px",$displayMd:"none",children:[(0,T.jsx)(u.GI,{type:"button",onClick:E,children:"\uc218\ub77d\ud558\uae30"}),(0,T.jsx)(u.Ts,{type:"button",color:"var(--color-gray-400)",$hoverColor:"var(--color-gray-500)",$activeColor:"var(--color-gray-500)",$hoverBackground:"var(--color-gray-200)",$activeBackground:"var(--color-gray-200)",fontWeight:I.sO.regular,onClick:()=>e(!0),children:"\uac70\uc808\ud558\uae30"})]}),(0,T.jsx)(j.A,{btnText:"\uc218\ub77d\ud558\uae30",onSubmit:E,subBtnText:"\uac70\uc808\ud558\uae30",subBtnType:"Gray100Btn",onSubBtnSubmit:()=>e(!0)})]})}),(0,T.jsx)(p.A,{modal:t,setModal:e,onSubmit:()=>{B(D,"refuse",$.tel,$.shopId)},description:"\ucd08\ub300\ub97c \uac70\uc808\ud558\uc2dc\uaca0\uc5b4\uc694?",caption:"\uac70\uc808 \uc2dc \ub418\ub3cc\ub9b4 \uc218 \uc5c6\uc5b4\uc694."})]})}},45717:(t,e,n)=>{n.d(e,{A:()=>d});var o=n(29553),s=n(65043),a=n(48479),i=n(23178),r=n(46655),c=n(12011);const d=()=>{const{setToast:t}=(0,i.W)((0,r.k)((t=>({setToast:t.setToast})))),e=(0,a.Pt)(c.T9),[n,d]=(0,s.useState)(),{data:l,refetch:u}=(0,o.ZS)(e),{mutate:p}=(0,o.DK)();return(0,s.useEffect)((()=>{l&&d(l)}),[l]),{userData:n,refetchUserInfo:u,putUserName:(e,n)=>{p({name:e},{onSuccess:()=>{n(),t("\uc774\ub984\uc774 \ubcc0\uacbd\ub418\uc5c8\uc5b4\uc694.","success")}})}}}},29553:(t,e,n)=>{n.d(e,{AE:()=>l,DK:()=>u,ZS:()=>i,a1:()=>d,ep:()=>r,gr:()=>c});var o=n(93747),s=n(47097),a=n(13241);const i=t=>(0,o.I)({queryKey:["userInfo","getUserInfo",t],queryFn:a.me}),r=()=>(0,s.n)({mutationFn:t=>(0,a.p7)(t)}),c=()=>(0,s.n)({mutationFn:t=>(0,a.JH)(t)}),d=()=>(0,s.n)({mutationFn:t=>(0,a.Lv)(t)}),l=()=>(0,s.n)({mutationFn:a.R7}),u=()=>(0,s.n)({mutationFn:t=>(0,a.Aw)(t)})}}]); 2//# sourceMappingURL=622.b673da4a.chunk.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.