1"use strict";(self.webpackChunkshop_react_web=self.webpackChunkshop_react_web||[]).push([[3110],{3845:(e,t,n)=>{n.d(t,{A:()=>i});n(65043);const i=n.p+"static/media/ico_next_default_gray_32.20d5a44edb23b0d0a6bcc8c995ddfbf6.svg"},79741:(e,t,n)=>{n.d(t,{A:()=>i});n(65043);const i=n.p+"static/media/ico_prev_default_gray_32.613a4f56dc1f9aa2caa7580b6f125080.svg"},37990:(e,t,n)=>{n.d(t,{A:()=>r});var i=n(23175),o=n(70579);const r=e=>{let{width:t=24,height:n=24,$widthWt:r,$heightWt:l,bgColor:a="var(--color-gray-500)"}=e;return(0,o.jsx)(i.E,{xmlns:"http://www.w3.org/2000/svg",width:t,height:n,$widthWt:r,$heightWt:l,viewBox:"0 0 24 24",fill:"none",children:(0,o.jsxs)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,o.jsxs)("g",{clipPath:"url(#clip0_5244_28098)",children:[(0,o.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12ZM7.93511 7.93513C8.16943 7.70081 8.54932 7.70081 8.78364 7.93513L11.9297 11.0812L15.0757 7.93513C15.3101 7.70081 15.6899 7.70081 15.9243 7.93513C16.1586 8.16944 16.1586 8.54934 15.9243 8.78366L12.7782 11.9297L15.9242 15.0757C16.1586 15.31 16.1586 15.6899 15.9242 15.9243C15.6899 16.1586 15.31 16.1586 15.0757 15.9243L11.9297 12.7782L8.78366 15.9243C8.54935 16.1586 8.16945 16.1586 7.93513 15.9243C7.70082 15.6899 7.70082 15.31 7.93513 15.0757L11.0812 11.9297L7.93511 8.78366C7.7008 8.54934 7.7008 8.16944 7.93511 7.93513Z",fill:a}),(0,o.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.0812 11.9297L7.93511 8.78366C7.7008 8.54934 7.7008 8.16944 7.93511 7.93513C8.16943 7.70081 8.54932 7.70081 8.78364 7.93513L11.9297 11.0812L15.0757 7.93513C15.3101 7.70081 15.6899 7.70081 15.9243 7.93513C16.1586 8.16944 16.1586 8.54934 15.9243 8.78366L12.7782 11.9297L15.9242 15.0757C16.1586 15.31 16.1586 15.6899 15.9242 15.9243C15.6899 16.1586 15.31 16.1586 15.0757 15.9243L11.9297 12.7782L8.78366 15.9243C8.54935 16.1586 8.16945 16.1586 7.93513 15.9243C7.70082 15.6899 7.70082 15.31 7.93513 15.0757L11.0812 11.9297ZM23.5 12C23.5 18.3513 18.3513 23.5 12 23.5C5.64873 23.5 0.5 18.3513 0.5 12C0.5 5.64873 5.64873 0.5 12 0.5C18.3513 0.5 23.5 5.64873 23.5 12ZM12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22Z",fill:"white"})]}),(0,o.jsx)("defs",{children:(0,o.jsx)("clipPath",{id:"clip0_5244_28098",children:(0,o.jsx)("rect",{width:"24",height:"24",fill:"white"})})})]})})}},44342:(e,t,n)=>{n.d(t,{A:()=>r});var i=n(23175),o=n(70579);const r=e=>{let{width:t=24,height:n=24,$widthWt:r,$heightWt:l,stroke:a="var(--color-gray-500)"}=e;const s=t/20;return(0,o.jsxs)(i.E,{width:t,height:n,$widthWt:r,$heightWt:l,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,o.jsx)("path",{d:"M7 12H17",stroke:a,strokeWidth:s,strokeLinecap:"round"}),(0,o.jsx)("path",{d:"M12 7V17",stroke:a,strokeWidth:s,strokeLinecap:"round"})]})}},39914:(e,t,n)=>{n.d(t,{A:()=>r});var i=n(23175),o=n(70579);const r=e=>{let{hasNoSpace:t,width:n=(t?20:48),height:r=(t?20:48),$widthWt:l,$heightWt:a}=e;return(0,o.jsx)(i.E,{width:n,height:r,$widthWt:l,$heightWt:a,viewBox:"0 0 ".concat(t?20:48," ").concat(t?20:48),fill:"none",xmlns:"http://www.w3.org/2000/svg",children:t?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.65658 4.34301C5.50638 4.49321 5.26285 4.49321 5.11265 4.34301L4.72849 3.95884C4.65636 3.88671 4.55853 3.84619 4.45652 3.84619H2.30769C1.03319 3.84619 0 4.87938 0 6.15389V13.8462C0 15.1207 1.03319 16.1539 2.30769 16.1539H4.45562C4.55763 16.1539 4.65546 16.1134 4.72758 16.0412L5.11265 15.6562C5.26285 15.506 5.50638 15.506 5.65658 15.6562L6.04165 16.0412C6.11378 16.1134 6.2116 16.1539 6.31361 16.1539H17.6923C18.9668 16.1539 20 15.1207 20 13.8462V6.15388C20 4.87938 18.9668 3.84619 17.6923 3.84619H6.31271C6.2107 3.84619 6.11287 3.88671 6.04074 3.95884L5.65658 4.34301Z",fill:"#A48FFC"}),(0,o.jsx)("path",{d:"M5.38281 5.3833L5.38281 14.6141",stroke:"#8D6FFC",strokeWidth:"0.769231",strokeLinecap:"round",strokeDasharray:"1.15 1.54"}),(0,o.jsx)("path",{d:"M12.1267 6.64024C12.1887 6.47281 12.4255 6.47281 12.4874 6.64024
1L12.8549 7.63328C13.1666 8.47549 13.8306 9.13952 14.6728 9.45117L15.6658 9.81863C15.8333 9.88058 15.8333 10.1174 15.6658 10.1793L14.6728 10.5468C13.8306 10.8584 13.1666 11.5225 12.8549 12.3647L12.4874 13.3577C12.4255 13.5252 12.1887 13.5252 12.1267 13.3577L11.7593 12.3647C11.4476 11.5225 10.7836 10.8584 9.94138 10.5468L8.94834 10.1793C8.78092 10.1174 8.78092 9.88058 8.94834 9.81863L9.94138 9.45117C10.7836 9.13952 11.4476 8.47549 11.7593 7.63328L12.1267 6.64024Z",fill:"#F5F2FE"})]}):(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17.2228 15.1761C16.9885 15.4104 16.6086 15.4104 16.3743 15.1761L15.7743 14.5761C15.6618 14.4636 15.5092 14.4004 15.35 14.4004H11.9984C10.0102 14.4004 8.39844 16.0122 8.39844 18.0004V30.0004C8.39844 31.9886 10.0102 33.6004 11.9984 33.6004H15.35C15.5091 33.6004 15.6617 33.5372 15.7742 33.4247L16.3743 32.8246C16.6086 32.5903 16.9885 32.5903 17.2228 32.8246L17.8228 33.4247C17.9353 33.5372 18.088 33.6004 18.2471 33.6004H35.9984C37.9867 33.6004 39.5984 31.9886 39.5984 30.0004V18.0004C39.5984 16.0122 37.9867 14.4004 35.9984 14.4004H18.247C18.0879 14.4004 17.9353 14.4636 17.8228 14.5761L17.2228 15.1761Z",fill:"#A48FFC"}),(0,o.jsx)("path",{d:"M16.8008 16.7998L16.8008 31.1998",stroke:"#8D6FFC",strokeWidth:"1.2",strokeLinecap:"round",strokeDasharray:"1.8 2.4"}),(0,o.jsx)("path",{d:"M27.3202 18.7604C27.4169 18.4992 27.7863 18.4992 27.8829 18.7604L28.4562 20.3095C28.9423 21.6233 29.9782 22.6592 31.2921 23.1454L32.8412 23.7186C33.1024 23.8153 33.1024 24.1847 32.8412 24.2814L31.2921 24.8546C29.9782 25.3408 28.9423 26.3767 28.4562 27.6905L27.8829 29.2396C27.7863 29.5008 27.4169 29.5008 27.3202 29.2396L26.747 27.6905C26.2608 26.3767 25.2249 25.3408 23.9111 24.8546L22.3619 24.2814C22.1007 24.1847 22.1007 23.8153 22.3619 23.7186L23.9111 23.1454C25.2249 22.6592 26.2608 21.6233 26.747 20.3095L27.3202 18.7604Z",fill:"#F5F2FE"})]})})}},96367:(e,t,n)=>{n.d(t,{A:()=>a});n(65043);var i=n(97605),o=n(399),r=n(48120),l=n(70579);const a=e=>{let{isHovered:t,count:n}=e;return(0,l.jsx)(i.pT,{width:"24px",height:"24px",background:"var(--color-white)",padding:"2px 8px",radius:r.A.corner12,children:(0,l.jsx)(o.x5,{color:t?"var(--color-primary-300)":"var(--color-primary-500-main)",$whiteSpace:"nowrap",$userSelect:"none",children:n})})}},67687:(e,t,n)=>{n.d(t,{A:()=>x});var i=n(19966),o=n(65043),r=n(24858),l=n(97605),a=n(48120),s=n(399),d=n(39914),c=n(7685),h=n(59116),u=n(33591),p=n(96367),C=n(2),g=n(70579);const v=e=>{var t,n;const{isSelected:i,isUnassigned:v,shopServe:x,isCouponAvailable:m,totalCnt:L,remainingCnt:w,append:f,update:j,remove:S,setTreatmentUnassigned:y,mode:k="APPEND",isFromShopLink:$}=e,{watch:b}=(0,r.xW)(),A=null!==(t=b("tempTreatmentList"))&&void 0!==t?t:[],E=A.find((e=>e.id===(null===x||void 0===x?void 0:x.id))),W=null!==(n=null===E||void 0===E?void 0:E.count)&&void 0!==n?n:1,[F,M]=(0,o.useState)(!1),T=()=>{if(x)return x.discount?(0,u.MO)({discount:x.discount,amount:x.amount}):x.amount};return(0,g.jsxs)(l.pT,{role:"button","aria-label":v?"\uc2dc\uc220 \ubbf8\uc9c0\uc815":"",$hasCursor:!0,border:i?"1px solid transparent":"1px solid var(--color-gray-200)",background:F?"var(--color-primary-300)":i?"var(--color-primary-400)":"",radius:a.A.corner12,justify:"space-between",align:"flex-start",padding:"8px 12px",gap:"8px",height:"110px",onMouseEnter:()=>M(!0),onMouseLeave:()=>M(!1),onClick:()=>{if(v&&S)return S(),void(null===y||void 0===y||y(!0));if(!x)return;const e=A.findIndex((e=>e.id===x.id));if($)-1!==e?null===S||void 0===S||S(e):null===f||void 0===f||f({id:x.id,name:x.name,count:1,duration:x.duration,amount:(0,c.nm)(T()||0),originalAmount:T()||0,originalDuration:x.duration});else if("SELECT"!==k)if(-1!==e){const t={...A[e],count:A[e].count+1,amount:(0,c.nm)((T()||0)*(A[e].count+1)),duration:x.duration*(A[e].count+1)};null===j||void 0===j||j(e,t)}else null===f||void 0===f||f({id:x.id,name:x.name,count:x.count,duration:x.duration,amount:(0,c.nm)(T()||0),originalAmount:T()||0,originalDuration:x.duration});else-1!==e?null===S||void 0===S||S(e):(A.length>0&&(null===S||void 0===S||S()),null===f||void 0===f||f({id:x.id,name:x.name,count:1,duration:x.duration,amount:(0,
1c.nm)(T()||0),originalAmount:T()||0,originalDuration:x.duration}))},children:[(0,g.jsxs)(l.pT,{height:"100%",direction:"column",justify:"space-between",align:"flex-start",children:[(0,g.jsxs)(l.pT,{direction:"column",align:"flex-start",children:[(0,g.jsx)(s.x5,{className:"ellipsis-two-line",color:i||F?"var(--color-white)":"var(--color-gray-600)",fontWeight:h.sO.medium,$userSelect:"none",children:v?"\uc2dc\uc220 \ubbf8\uc9c0\uc815":null===x||void 0===x?void 0:x.name}),!v&&(0,g.jsx)(s.x5,{color:i||F?"var(--color-white)":"var(--color-gray-500)",fontSize:h.$N.size12,$lineHeight:h.kj.height20,$userSelect:"none",children:(0,c.Sk)((null===x||void 0===x?void 0:x.duration)||0)})]}),(0,g.jsxs)(s.x5,{color:i||F?"var(--color-white)":"var(--color-gray-400)",$userSelect:"none",children:[v?0:(0,c.nm)(T()||0),"\uc6d0"]})]}),i?"SELECT"===k?(0,g.jsx)(C.A,{width:16,height:16,stroke:"var(--color-primary-400)",bgColor:"var(--color-white)"}):(0,g.jsx)(p.A,{isHovered:F,count:W}):m&&(0,g.jsxs)(l.pT,{height:"100%",direction:"column",justify:"space-between",align:"flex-end",children:[(0,g.jsx)(d.A,{hasNoSpace:!0}),(0,g.jsxs)(s.x5,{color:"var(--color-gray-300)",fontSize:h.$N.size12,$lineHeight:h.kj.height20,$whiteSpace:"nowrap",$userSelect:"none",children:[w,"/",L]})]})]})},x=e=>{const{selectedCategoryId:t,filteredCategory:n,customerHasCouponForShopServeList:r,fields:l,append:a,update:s,remove:d,treatmentUnassigned:c,setTreatmentUnassigned:h,isFromPayments:u,isFromShopLink:p,mode:C="APPEND",isAllServe:x=!1}=e,m=(0,o.useMemo)((()=>{if(!r)return new Map;const e=new Map;return r.forEach((t=>{const n=e.get(t.shopServeId)||{totalCnt:0,remainingCnt:0};e.set(t.shopServeId,{totalCnt:n.totalCnt+t.totalCnt,remainingCnt:n.remainingCnt+t.remainingCnt})})),e}),[r]),L="SELECT"!==C||p;return(0,g.jsxs)(i.ux,{isThreeColumnLayout:L,children:[null===t&&!u&&!p&&"SELECT"!==C&&(0,g.jsx)(v,{isSelected:c,setTreatmentUnassigned:h,isUnassigned:!0,remove:d}),n.flatMap((e=>(x?e.shopServeList:e.shopServeList.filter((e=>e.active))).map((e=>{const{totalCnt:t,remainingCnt:n}=(e=>{var t;return null!==(t=m.get(e))&&void 0!==t?t:{totalCnt:0,remainingCnt:0}})(e.id),i=new Set(l.map((e=>e.id)));return(0,g.jsx)(v,{shopServe:e,isSelected:i.has(e.id),isCouponAvailable:!!n,..."SELECT"===C?{remove:d}:{},totalCnt:t,remainingCnt:n,append:a,update:s,mode:C,isFromShopLink:p},e.id)}))))]})}},84068:(e,t,n)=>{n.d(t,{A:()=>c});var i=n(65043),o=n(97605),r=n(35509),l=n(19966),a=n(79741),s=n(3845),d=n(70579);const c=e=>{const{selectedCategoryId:t,setSelectedCategoryId:n,sortedGroupData:c,setSelectedCategoryName:h,padding:u}=e,p=(0,i.useRef)(null),[C,g]=(0,i.useState)(!0),[v,x]=(0,i.useState)(!1),m=e=>{if(!p.current)return;p.current.scrollBy({left:"next"===e?200:-200,behavior:"smooth"})},L=()=>
1{if(!p.current)return;const{scrollLeft:e,scrollWidth:t,clientWidth:n}=p.current;g(e<=0),x(e+n>=t-1)};return(0,i.useEffect)((()=>{const e=p.current;if(e)return L(),e.addEventListener("scroll",L),()=>{e.removeEventListener("scroll",L)}}),[c]),(0,d.jsxs)(o.pT,{gap:"8px",width:"100%",margin:"16px 0",padding:null!==u&&void 0!==u?u:"0 24px 0 0",children:[(0,d.jsxs)(l.RI,{ref:p,children:[(0,d.jsx)(l.zC,{type:"button",className:null===t?"selected":"",onClick:()=>{n(null),null===h||void 0===h||h("\uc804\uccb4")},flex:c.length>3?"0 0 40%":"1",$maxWidth:c.length>3?"".concat(133.2,"px"):"unset",children:"\uc804\uccb4"}),c.map((e=>{const i=e.shopServeList.every((e=>!e.active));return(0,d.jsx)(l.zC,{type:"button",className:t===e.id?"selected":"",onClick:()=>{n(e.id),null===h||void 0===h||h(e.name)},disabled:i,flex:c.length>3?"0 0 40%":"1",$maxWidth:c.length>3?"".concat(133.2,"px"):"unset",children:e.name},e.id)}))]}),(0,d.jsxs)(o.pT,{gap:"8px",children:[(0,d.jsx)(r.Oi,{type:"button",width:"42px",height:"42px",onClick:()=>m("prev"),opacity:C?.5:1,$hasNotCursor:C,children:(0,d.jsx)("img",{src:a.A,alt:"\uc774\uc804"})}),(0,d.jsx)(r.Oi,{type:"button",width:"42px",height:"42px",onClick:()=>m("next"),opacity:v?.5:1,$hasNotCursor:v,children:(0,d.jsx)("img",{src:s.A,alt:"\ub2e4\uc74c"})})]})]})}}}]); 2//# sourceMappingURL=3110.aaf23b3f.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.