1"use strict";(self.webpackChunkshop_react_web=self.webpackChunkshop_react_web||[]).push([[5176],{75602:(e,t,i)=>{i.d(t,{A:()=>r});var o=i(23175),s=i(70579);const r=e=>{let{width:t=24,height:i=24,$widthWt:r,$heightWt:n,stroke:a="var(--color-gray-400)"}=e;return(0,s.jsxs)(o.E,{width:t,height:i,$widthWt:r,$heightWt:n,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,s.jsx)("path",{d:"M11.6611 18.275C16.0289 18.275 19.5722 14.727 19.5722 10.3472C19.5722 5.96746 16.0289 2.41943 11.6611 2.41943C7.29327 2.41943 3.75 5.96746 3.75 10.3472C3.75 14.727 7.29327 18.275 11.6611 18.275Z",stroke:a,strokeWidth:"1.5"}),(0,s.jsx)("path",{d:"M16.8779 16.5464L20.9987 21.1696",stroke:a,strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]})}},59776:(e,t,i)=>{i.d(t,{A:()=>u});var o=i(97605),s=i(74567),r=i(40186),n=i(59116),a=i(24858),l=i(85720),d=i(35509),h=i(399),c=i(65043),p=i(7685),x=i(70579);const u=()=>{const{setValue:e,getValues:t,watch:i}=(0,a.xW)(),u=(0,c.useRef)(null),g=2e3,[j,f]=(0,c.useState)(i("memo")),[m,v]=(0,c.useState)(!1);return(0,c.useEffect)((()=>{u.current&&(0,l.Z)(u.current,176,8,16,22)}),[j]),(0,c.useEffect)((()=>{f(i("memo"))}),[i("memo")]),(0,x.jsx)(x.Fragment,{children:(0,x.jsxs)(o.vr,{gap:"4px",padding:"0",onClick:()=>v(!0),children:[(0,x.jsxs)(o.pT,{display:"flex",direction:"column",align:"start",padding:"10px 12px",gap:"4px",children:[(0,x.jsx)(s.A,{}),(0,x.jsx)(r.fs,{ref:u,placeholder:"\ub9e4\ucd9c\uba54\ubaa8\ub97c \uc785\ub825\ud574 \uc8fc\uc138\uc694",value:j,onChange:e=>{const t=e.target.value;f(t.length>g?t.slice(0,g):t),(0,l.Z)(e.target,176,8,16,22)},fontSize:n.$N.size14,color:"var(--color-gray-600)",$lineHeight:n.kj.height22,maxLength:g,padding:"0",height:"22px",$minHeight:"22px",$maxHeight:"176px",border:"none",$focusBorder:"none",radius:"0px"})]}),m&&(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(o.WZ,{}),(0,x.jsxs)(o.pT,{justify:"space-between",padding:"6px 12px",children:[(0,x.jsxs)(h.x$,{children:[null===j||void 0===j?void 0:j.length," / ",(0,p.nm)(g)]}),(0,x.jsxs)(o.pT,{gap:"8px",justify:"end",children:[(0,x.jsx)(d.Wb,{width:"45px",type:"button",color:"var(--color-gray-300)",padding:"3px 12px",fontWeight:n.sO.regular,border:"none",fontSize:n.$N.size12,$lineHeight:n.kj.height20,onClick:e=>{e.stopPropagation(),f(t("memo")),v(!1),u.current&&(0,l.Z)(u.current,176,8,16,22)},children:"\ucde8\uc18c"}),(0,x.jsx)(d.oT,{type:"button",width:"45px",padding:"3px 12px",fontWeight:n.sO.regular,fontSize:n.$N.size12,$lineHeight:n.kj.height20,onClick:t=>{t.stopPropagation(),e("memo",j),v(!1)},children:"\uc800\uc7a5"})]})]})]})]})})}},62087:(e,t,i)=>{i.d(t,{A:()=>W});var o=i(97605),s=i(399),r=i(64983),n=i(59116),a=i(11289),l=i(7685),d=i(11062),h=i(48120),c=i(24858),p=i(65043),x=i(92004),u=i(81365),g=i(71761),j=i(73216),f=i(1281),m=i(42176),v=i(35509),$=i(44342),w=i(56743),y=i(12670),A=i(6263),S=i(23178),T=i(49153),k=i(70579);const W=e=>{const{setReloadCouponListKey:t,reloadCouponListKey:i}=e,W=(0,j.Zp)(),{watch:C,setValue:b}=(0,c.xW)(),{pathname:I,state:M}=(0,j.zy)(),E=null===M||void 0===M?void 0:M.customerId,{hasCouponList:N}=(0,A.A)(),{setToast:z}=(0,S.W)(),F=I.includes("/payments/create/coupon"),H=I.includes("/payments/treatment"),O=I.includes("/payments/coupon"),D=F||O,L=C("customerId"),[R,P]=(0,p.useState)(!1),[V,_]=(0,p.useState)(!1),[Z,B]=(0,p.useState)(w.y9.OVERALL),[K,Q]=(0,p.useState)(!1),{customerDetailInfoData:G,setCustomerId:Y}=(0,u.A)(),{customerTotalPayments:U,setPaymentsTotalParams:q,setIsFetchPaymentTotal:J}=(0,g.A)();(0,p.useEffect)((()=>{!L&&E&&b("customerId",E);const e=L||E;e&&(Y((t=>t!==e?e:t)),q((t=>t.sci!==e?{...t,sci:e}:t)))}),[L,E]),(0,p.useEffect)((()=>{b("customerId",E)}),[E]),(0,p.useEffect)((()=>{J(!0)}),[]);const X=()=>!E&&(H?!(C("couponData").length>0):!O||!O);return(0,k.jsxs)(k.Fragment,{children:[(0,k.jsxs)(o.pT,{direction:"column",gap:"8px",align:"start",flex:"1",children:[(0,k.jsx)(s.ld,{fontSize:n.$N.size18,$fontSizeWt:n.$N.size16,$lineHeight:n.kj.height26,$lineHeightWt:n.kj.height24,$fontWeightWt:n.sO.regular,children:"\uace0\uac1d\uc815\ubcf4"}),(0,k.jsx)(o.vr,{padding:"16px",$maxWidth:"494px",overflow:"hidden",children:L?(0,k.jsxs)(o.pT,{direction:"column",gap:"16px",children:[(0,k.jsxs)(o.pT,{direction:"column",width:"100%",children:[(0,k.jsx)(o.pT,{width:"100%",$minWidth:"0",children:(0,k.jsxs)(o.pT,{width:"100%",justify:"space-between",$flexShrink:"0",children:[(0,k.jsx)(o.pT,{onClick:()=>W("/customer/detail/".concat(L)),children:(0,k.jsx)(T.A,{name:(null===G||void 0===G?void 0:G.name)||"",gender:null===G||void 0===G?void 0:G.gender,isDeleted:!(null===G||void 0===G||!G.isDeleted),$maxWidth:"170px",$maxWidthWt:"160px",showClickableStyle:!0})}),(0,k.jsxs)(o.pT,{gap:"2px",width:"100%",justify:"end",children:[(0,k.jsx)(a.A,{width:24}
1),(0,k.jsxs)(s.x5,{color:"var(--color-gray-600)",$whiteSpace:"pre",children:["\ucd1d ",(0,l.nm)(U),"\uc6d0"]})]})]})}),(0,k.jsxs)(o.pT,{width:"100%",justify:"space-between",children:[(0,k.jsx)(o.pT,{gap:"2px",width:"100%",justify:"start",margin:"0 0 5px",children:(null===G||void 0===G?void 0:G.tel)&&(0,k.jsx)(s.x5,{color:"var(--color-gray-500)",$whiteSpace:"nowrap",children:(0,l.n4)(null===G||void 0===G?void 0:G.tel)})}),X()&&(0,k.jsxs)(o.pT,{height:"32px",$heightWt:"30px",display:"flex",border:"1px solid var(--color-gray-200)",radius:h.A.corner40,padding:"4px 12px",$flexShrink:"0",$hasCursor:!0,onClick:()=>P(!0),children:[(0,k.jsx)(s.x5,{color:"var(--color-gray-600)",children:"\uace0\uac1d\ubcc0\uacbd"}),(0,k.jsx)(d.A,{width:24})]})]})]}),(0,k.jsxs)(o.pT,{width:"100%",align:"start",gap:"16px",children:[(0,k.jsxs)(o.pT,{width:"100%",gap:"12px",direction:"column",padding:"12px",background:"var(--color-gray-50)",radius:h.A.corner12,children:[(0,k.jsxs)(o.pT,{gap:"2px",justify:"space-between",width:"100%",children:[(0,k.jsxs)(o.pT,{gap:"2px",role:"button",$hasCursor:!0,onClick:()=>{null===_||void 0===_||_(!0),B(w.y9.CASH)},children:[(0,k.jsx)(s.x5,{color:"var(--color-gray-400)",children:"\ubcf4\uc720 \uc815\uc561\uad8c"}),(0,k.jsx)(f.A,{width:16,height:16})]}),(0,k.jsxs)(s.x5,{color:"var(--color-gray-600)",fontWeight:n.sO.medium,children:[(0,l.nm)(null===G||void 0===G?void 0:G.cashCoupon),"\uc6d0"]})]}),(0,k.jsxs)(o.pT,{gap:"2px",justify:"space-between",width:"100%",children:[(0,k.jsxs)(o.pT,{gap:"2px",role:"button",$hasCursor:!0,onClick:()=>{null===_||void 0===_||_(!0),B(w.y9.PASS)},children:[(0,k.jsx)(s.x5,{color:"var(--color-gray-400)",children:"\ubcf4\uc720 \ud69f\uc218\uad8c"}),(0,k.jsx)(f.A,{width:16,height:16})]}),(0,k.jsxs)(s.x5,{color:"var(--color-gray-600)",fontWeight:n.sO.medium,children:[(0,l.nm)(null===G||void 0===G?void 0:G.passCoupon),"\ud68c"]})]})]}),!D&&(0,k.jsx)(v.bM,{type:"button",width:"48px",$minWidth:"48px",height:"48px",padding:"12px",radius:h.A.corner12,$flexShrink:"0",$activeTransform:"none",onClick:()=>{N?Q(!0):z("\ud310\ub9e4 \uc911\uc778 \ud68c\uc6d0\uad8c\uc774 \uc5c6\uc5b4\uc694. [\ud68c\uc6d0\uad8c] \uba54\ub274\ub97c \ud655\uc778\ud574 \uc8fc\uc138\uc694.","warning")},children:(0,k.jsx)($.A,{stroke:"var(--color-primary-500-main)"})})]})]}):(0,k.jsxs)(o.pT,{justify:"space-between",children:[(0,k.jsxs)(o.pT,{gap:"16px",justify:"start",children:[(0,k.jsx)(r.A,{type:"unknown",$maxWidth:"64px",$maxHeight:"64px",padding:"12px"}),(0,k.jsx)(s.ld,{color:"var(--color-gray-600)",children:"\ubbf8\uc9c0\uc815"})]}),X()&&(0,k.jsxs)(o.pT,{height:"32px",$heightWt:"30px",display:"flex",border:"1px solid var(--color-gray-200)",radius:h.A.corner40,padding:"4px 12px",$flexShrink:"0",$hasCursor:!0,onClick:()=>P(!0),children:[(0,k.jsx)(s.x5,{color:"var(--color-gray-600)",children:"\uace0\uac1d\ubcc0\uacbd"}),(0,k.jsx)(d.A,{width:24})]})]})})]}),(0,k.jsx)(x.A,{modal:R,setModal:P}),(0,k.jsx)(m.A,{modal:V,setModal:_,totalRemainingAmount:(0,l.nm)(null===G||void 0===G?void 0:G.cashCoupon),totalRemainingCount:(0,l.nm)(null===G||void 0===G?void 0:G.passCoupon),selectedTab:Z,customerId:L,reloadCouponListKey:i}),(0,k.jsx)(y.A,{modal:K,setModal:Q,customerId:L,setReloadCouponListKey:t})]})}},65881:(e,t,i)=>{i.d(t,{A:()=>v});var o=i(97605),s=i(399),r=i(59116),n=i(24925),a=i(39263),l=i(11177),d=i(9625),h=i(7685),c=i(65043),p=i(91358);const x=()=>{const e=sessionStorage.getItem("shopId"),[t,i]=(0,c.useState)([]),[o,s]=(0,c.useState)(!1),{data:r}=(0,p.QC)(e,o);return(0,c.useEffect)((()=>{r&&o&&i(r)}),[r,o]),{shopId:e,staffList:t,setIsStaffDropdown:s}};var u=i(24858),g=i(48120),j=i(70579);const f=e=>{const{modal:t,setModal:i}=e,{getValues:p,setValue:f}=(0,u.xW)(),{setIsFetchStaffPreviewListData:m}=(0,l.A)(),{staffList:v,setIsStaffDropdown:$}=x(),[w,y]=(0,c.useState)(null),A=()=>{i(!1),y(null)};return(0,c.useEffect)((()=>{$(!0),m(!0)}),[]),(0,c.useEffect)((()=>{y(p("staffId"))}),[t,p("staffId")]),(0,j.jsx)(j.Fragment,{children:t&&(0,j.jsx)(a.hE,{onClick:A,children:(0,j.jsxs)(a.lT,{$maxWidth:"560px",padding:"28px 24px 24px",onClick:e=>e.stopPropagation(),children:[(0,j.jsx)(o.pT,{justify:"start",padding:"0 0 8px",children:(0,j.jsx)(a.zC,{children:"\ub2f4\ub2f9\uc790 \uc120\ud0dd"})}),(0,j.jsx)(o.Z6,{$maxHeight:"194px",children:null===v||void 0===v?void 0:v.map(((e,t)=>{var i;const n=w===e.shopStaffId;return(0,j.jsxs)(o.pT,{justify:"space-between",width:"100%",padding:"20px 0",$borderBottom:t===v.length-1?"":"1px solid var(--color-gray-200)",background:n?"var(--color-primary-50)":"",$hasCursor:!0,onClick:()=>{y(e.shopStaffId)},children:[(0,j.jsxs)(o.pT,{gap:"8px",children:[(0,j.jsx)(o.pT,{background:"#".concat(e.shopStaffMainColor),padding:"1px 7px",radius:g.A.corner50,$minWidth:"24px",$minHeight:"24px",children:(0,j.jsx)(s.x5,{color:"var(--color-white)",fontSize:r.$N.size12,fontWeight:r.sO.medium,$lineHeight:r.kj.height20,children:(0,h.Od)(e.nickName)})}),(0,j.jsx)(s.ld,{fontWeight:r.sO.regular,color:"var(--color-gray-600)",children:e.nickName})]}),(0,j.jsx)(s.ld,{fontWeight:r.sO.regular,color:"var(--color-gray-400)",children:null!==(i=d.DF[e.level])&&void 0!==i?i:"STAFF"})]},e.shopStaffId)}))}),(0,j.jsx)(n.A,{isSmallBtn:!0,btnText:"\uc120\ud0dd",padding:"16px 0 0",isDisabled:!w,onSubmit:()=>{f("staffId",w),A()},handleClose:A})]})})})};var m=i(11062);const v=()=>{var e;const{getValues:t}=(0,u.xW)(),[i,n]=(0,c.useState)(!1),{isOneOwnerShop:a,setIsFetchStaffPreviewListData:p}=(0,l.A)(),{staffList:v,setIsStaffDropdown:$}=x(),w=t("staffId"),y=(0,c.useMemo)((()=>v.find((e=>e.shopStaffId===w))),[v,w]);return(0,c.useEffect)((()=>{$(!0),p(!0)}),[]),(0,j.jsxs)(j.Fragment,{children:[(0,j.jsxs)(o.pT,{direction:"column",gap:"8px",align:"start",flex:"1",children:[(0,j.jsx)(s.ld,{fontSize:r.$N.size18,$fontSizeWt:r.$N.size16,$lineHeight:r.kj.height26,$lineHeightWt:r.kj.height24,$fontWeightWt:r.sO.regular,children:"\ub2f4\ub2f9\uc790"}),(0,j.jsx)(o.vr,{padding:"16px",$maxWidth:"494px",$maxHeight:"96px",overflow:"hidden",onClick:()=>{a||n(!0)},children:(0,j.jsxs)(o.pT,{justify:"space-between",children:[(0,j.jsxs)(o.pT,{gap:"16px",$gapWt:"12px",justify:"start",$hasCursor:!0,children:[(0,j.jsx)(o.pT,{background:"#".concat(null===y||void 0===y?void 0:y.shopStaffMainColor),padding:"1px 7px",radius:g.A.corner50,width:"64px",height:"64px",$flexShrink:"1",children:(0,j.jsx)(s.ld,{color:"var(--color-white)",fontSize:r.$N.size32,fontWeight:r.sO.regular,children:(0,h.Od)(null===y||void 0===y?void 0:y.nickName)})}),(0,j.jsxs)(o.pT,{direction:"column",align:"start",children:[(0,j.jsx)(s.ld,{color:"var(--color-gray-600)",children:null===y||void 0===y?void 0:y.nickName}),(0,j.jsx)(s.x5,{color:"var(--color-gray-400)",children:null!==(e=d.DF[null===y||void 0===y?void 0:y.level])&&void 0!==e?e:"STAFF"})]})]}),!a&&(0,j.jsxs)(o.pT,{height:"32px",$heightWt:"30px",border:"1px solid var(--color-gray-200)",radius:g.A.corner40,padding:"4px 12px",$flexShrink:"0",$hasCursor:!0,onClick:()=>n(!0),children:[(0,j.jsx)(s.x5,{color:"var(--color-gray-600)",children:"\ub2f4\ub2f9\uc790\ubcc0\uacbd"}),(0,j.jsx)(m.A,{width:24})]})]})})]}),(0,j.jsx)(f,{modal:i,setModal:n})]})}},88173:(e,t,i)=>{i.d(t,{A:()=>r});var o=i(97605),s=i(70579);const r=e=>{let{children:t}=e;return(0,s.jsx)(o.pT,{display:"block",height:"100vh",$widthMd:"100dvw",$overflowY:"auto",padding:"82px 40px",$paddingWt:"82px 24px 24px",background:"var(--color-gray-50)",children:(0,s.jsx)(o.pT,{$maxWidth:"1456px",$minWidth:"720px",width:"100%",direction:"column",align:"start",margin:"0 auto",children:t})})}},9625:(e,t,i)=>{i.d(t,{$l:()=>a,DF:()=>l,Kg:()=>s,VF:()=>r,eo:()=>n});var o=i(56743);const s=[{value:"SHOP_ADMIN",text:"ADMIN"},{value:"SHOP_MANAGER",text:"MANAGER"},{value:"SHOP_EMPLOYEE",text:"STAFF"}],r=[{value:"M",text:"\ub0a8\uc790"},{value:"W",text:"\uc5ec\uc790"}],n=[{value:"FULL_TIME",text:"\uc815\uc9c1\uc6d0"},{value:"CONTRACT",text:"\uacc4\uc57d\uc9c1"},{value:"PART_TIME",text:"\ud30c\ud2b8\ud0c0\uc784"},{value:"INTERN",text:"\uc778\ud134"},{value:"DISPATCH",text:"\ud30c\uacac\uc9c1"},{value:"FREE",text:"\ud504\ub9ac\ub79c\uc11c"}],a=[{value:"YEAR",text:"\uc5f0"},{value:"MONTH",text:"\uc6d4"}],l={[o.mQ.MASTER]:"MASTER",[o.mQ.ADMIN]:"ADMIN",[o.mQ.MANAGER]:"MANAGER",[o.mQ.STAFF]:"STAFF"}},61158:(e,t,i)=>{i.d(t,{A:()=>d});var o=i(73216),s=i(97605),r=i(399),n=i(8720),a=i(59116),l=i(70579);const d=e=>{const{title:t,hasOnlyTitle:i,backMode:d,setModal:h,onClose:c}=e,p=(0,o.Zp)();
1return(0,l.jsxs)(s.pT,{justify:"start",gap:"8px",children:[!i&&(0,l.jsx)(n.A,{width:"30px",height:"30px",$widthWt:"24px",$heightWt:"24px",handleBack:()=>{c?c():"formBack"===d?null===h||void 0===h||h(!0):p(-1)}}),(0,l.jsx)(r.V9,{fontSize:a.$N.size24,$lineHeight:a.kj.height32,$fontSizeWt:a.$N.size20,$lineHeightWt:a.kj.height28,$whiteSpace:"nowrap",children:t})]})}}}]); 2//# sourceMappingURL=5176.11f35212.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.