1"use strict";(self.webpackChunkshop_react_web=self.webpackChunkshop_react_web||[]).push([[1160],{26708:(t,a,e)=>{e.d(a,{A:()=>n});e(65043);const n=e.p+"static/media/ico_file.ddf48c1f32c7dead15b5d0d33574f12f.svg"},99436:(t,a,e)=>{e.d(a,{A:()=>n});e(65043);const n=e.p+"static/media/img_toast_etc.aa846d0f0b631ef3cff2061603bd20c2.svg"},41342:(t,a,e)=>{e.d(a,{A:()=>l});var n=e(97605),s=(e(65043),e(48120)),i=e(399),o=e(59116),c=e(99436),r=e(30285),d=e(70579);const l=t=>{const{captionTitle:a,iconCaptionTitle:e,captionList:l,margin:u,padding:h,radius:g,onOpenDetail:p,tone:f,$maxWidth:y,hasNoIcon:m,$marginWt:w,$marginMd:A,$paddingWt:S,$paddingMd:$,$titleFontWeight:x,$titleColor:v,$titleFontSizeWt:k,$titleFontSizeMd:T,$titleLineHeightWt:I,$titleLineHeightMd:W,fontSize:M,$fontSizeWt:C,$lineHeight:j,color:z,$titleJustify:E,$bulletTop:b,background:H}=t;return(0,d.jsxs)(n.pT,{margin:u||"32px 0",padding:h||"12px",background:H||("primary"===f?"var(--color-primary-200)":"var(--color-gray-50)"),$maxWidth:y||"",width:"100%",radius:g||s.A.corner12,gap:"4px",$marginWt:w,$marginMd:A,$paddingWt:S,$paddingMd:$,children:[m?"":"primary"===f?(0,d.jsx)(r.A,{stroke:"var(--color-primary-500-main)"}):(0,d.jsx)(r.A,{stroke:"var(--color-gray-400)"}),(0,d.jsxs)(n.pT,{direction:"column",align:"start",gap:"6px",width:"100%",children:[a&&(0,d.jsxs)(n.pT,{gap:"8px",justify:E||"start",width:"100%",children:[(0,d.jsx)(i.x5,{fontWeight:x||o.sO.medium,color:v||"var(--color-gray-700-main)",$fontSizeWt:k,$lineHeightWt:I,$fontSizeMd:T,$lineHeightMd:W,children:a}),p&&(0,d.jsx)(i.tu,{color:"var(--color-gray-300)",$fontSizeWt:k,$lineHeightWt:I,$fontSizeMd:T,$lineHeightMd:W,fontWeight:o.sO.regular,onClick:p,style:{cursor:"pointer"},$textUnderlineOffset:"2px",$hoverColor:"var(--color-gray-500)",$activeColor:"var(--color-gray-500)",fontSize:o.$N.size12,children:"\uc790\uc138\ud788\ubcf4\uae30"})]}),e&&(0,d.jsxs)(n.pT,{gap:"8px",children:[(0,d.jsx)("img",{src:c.A,width:"16px",alt:"\uc8fc\uc758\uc0ac\ud56d"}),(0,d.jsx)(i.x5,{color:"var(--color-gray-600)",fontSize:o.$N.size12,$lineHeight:o.kj.height20,fontWeight:o.sO.regular,children:e})]}),(0,d.jsx)("div",{children:l.map(((t,a)=>(0,d.jsx)(i.cA,{style:{whiteSpace:"pre-wrap"},fontSize:M||o.$N.size12,$fontSizeWt:C,$lineHeight:j||o.kj.height20,fontWeight:o.sO.regular,color:z,$bulletTop:b,children:t},a)))})]})]})}},78127:(t,a,e)=>{e.d(a,{FK:()=>i,ZR:()=>c,xW:()=>o});var n=e(54451),s=e(69835);const i=async t=>{const{data:a}=await s.A.post("/authentication/nice-intc/auth-url",t);return a.data},o=async t=>{const{data:a}=await s.A.post("/authentication/nice-intc/result",t);return a.data},c=async t=>(await n.A.post("/users/apple/authorization",t)).data},79874:(t,a,e)=>{e.d(a,{Ii:()=>n});const n=(t,a)=>e=>{if(e.origin===window.location.origin){const n=e.data;"authSuccess"===n.result?t(n.tel):"authFail"===n.result&&a()}}},65596:(t,a,e)=>{e.d(a,{A:()=>f});var n=e(56743),s=e(62991),i=e(12011),o=e(50578),c=e(18072),r=e(32125),d=e(57377),l=e(33591),u=e(65043),h=e(42040),g=e(23178),p=e(76172);const f=()=>{const t=sessionStorage.getItem("shopId"),{setToast:a}=(0,g.W)((t=>({setToast:t.setToast}))),e=(0,h.A)((t=>t.storedShopWithUserInfo)),{setMessageParams:f}=(0,o.A)(),[y,m]=(0,u.useState)(null),[w,A]=(0,u.useState)(s.CI),[S,$]=(0,u.useState)(c.Ie[0].value),[x,v]=(0,u.useState)(c.B5[0].value),[k,T]=(0,u.useState)(""),[I,W]=(0,u.useState)(""),[M,C]=(0,u.useState)(""),[j,z]=(0,u.useState)(!1),{data:E,isError:b,refetch:H}=(0,r.Td)(t),{mutate:F,isPending:N,isSuccess:D,isError:O,status:K}=(0,r.xU)(),_=(t,e)=>{"success"!=M&&((0,l.xN)(t)+(0,l.Xd)(e)>
190?w!==s.T5&&(A(s.T5),a("LMS\ub85c \ubcc0\uacbd\ub418\uc5c8\uc5b4\uc694","warning")):w!==s.CI&&(A(s.CI),a("SMS\ub85c \ubcc0\uacbd\ub418\uc5c8\uc5b4\uc694","warning")))};return(0,u.useEffect)((()=>{E&&(m(E),W("["+(null===e||void 0===e?void 0:e.shopName)+"]"),z(E.callerTel&&E.applicationStatus!==n.kS.REJECTED))}),[E]),(0,u.useEffect)((()=>{C(K)}),[K]),{callerInfo:y,setCallerInfo:m,isCallerInfoError:b,callerInfoRefetch:H,messageType:S,perPrice:w,contents:I,deliveryType:x,setDeliveryType:v,setDeliveryDateTime:T,onChangeMessageType:t=>{$(t),_(I,t)},setContents:W,onChangeTextArea:t=>{const a=t.target.value;(0,l.xN)(a)+(0,l.Xd)(S)>2e3||(W(a),_(a,S))},sendMessage:(a,e)=>{const n="IMMEDIATE"==x?(0,d.Ad)(new Date):k,s=S===c.Ie[1].value?"(\uad11\uace0)".concat(I,"\n\ubb34\ub8cc\uac70\ubd80 ").concat(i.tc):I,o={messageType:S,deliveryType:x,content:s,customerIds:a.map((t=>t.id)),sendTime:n,shopId:t};F(o,{onSuccess:()=>{e&&(0,p.CV)([{valueName:"m",newValue:"all"===e?"":e},{valueName:"pn",newValue:0}],f)}})},isPendingSending:N,isSuccessSending:D,isErrorSending:O,setMutateStatus:C,setPerPrice:A,isRegistered:j}}},23749:(t,a,e)=>{e.d(a,{CE:()=>T,DA:()=>m,EK:()=>o,FG:()=>y,FH:()=>S,H3:()=>p,KH:()=>g,Kx:()=>v,P8:()=>h,RC:()=>I,SU:()=>i,UI:()=>x,ZO:()=>l,_H:()=>r,ee:()=>u,en:()=>$,ih:()=>k,kE:()=>w,kc:()=>s,kp:()=>c,rE:()=>d,wS:()=>f,xd:()=>A});e(54451);var n=e(69835);const s=async()=>{const{data:t}=await n.A.get("/notifications/message/verification");return t.data},i=async()=>{const{data:t}=await n.A.post("/notifications/message/verification");return t.data},o=async t=>{const{data:a}=await n.A.patch("/notifications/message/verification",{code:t});return a.data},c=async t=>{const{data:a}=await n.A.get("/shops/".concat(t,"/caller-tel"));return a.data},r=async t=>{const{data:a}=await n.A.post("/notifications/message",t);return a},d=async t=>{const{data:a}=await n.A.patch("/shops/".concat(t,"/caller-tel/release"));return a.data},l=async(t,a)=>{const{data:e}=await n.A.post("/shops/".concat(t,"/caller-tel/verification"),a);return e.data},u=async t=>{const{data:a}=await n.A.post("/notifications/re-message?ids=".concat(t));return a.data},h=async()=>{const{data:t}=await n.A.get("/notifications/auto-setting");return t.data},g=async t=>{const{data:a}=await n.A.get("/notifications/auto-setting/".concat(t));return a.data},p=async(t,a)=>{const{data:e}=await n.A.patch("/notifications/auto-setting/".concat(t),a);return e.data},f=async t=>{await n.A.delete("/notifications/auto-setting/".concat(t,"/review"))},y=async t=>{const{data:a}=await n.A.post("/notifications/auto-setting/test",t);return a.data},m=async t=>{const{data:a}=await n.A.get("/shops/".concat(t,"/kakao-channel"));return a.data},w=async(t,a)=>{const{data:e}=await n.A.post("/shops/".concat(t,"/kakao-channel/auth-token"),a);return e.data},A=async(t,a)=>{const{data:e}=await n.A.post("/shops/".concat(t,"/kakao-channel"),a);return e.data},S=async(t,a)=>{const{data:e}=await n.A.post("/shops/".concat(t,"/kakao-channel/test"),a);return e.data},$=async(t,a)=>{const{data:e}=await n.A.delete("/shops/".concat(t,"/kakao-channel?ci=").concat(a));return e.data},x=async(t,a)=>{const{data:e}=await n.A.delete("/shops/".concat(t,"/kakao-channel/test?ci=").concat(a));return e.data},v=async t=>{const{data:a}=await n.A.get("/notifications/message/schedule/revisit",{params:t});return a.data},k=async t=>{const{data:a}=await n.A.get("/notifications/message",{params:t});return a.data},T=async()=>{const{data:t}=await n.A.get("/notifications/message/category");return t.data},I=async t=>{const{data:a}=await n.A.delete("/notifications/message/".concat(t));return a.data}},32125:(t,a,e)=>{e.d(a,{Op:()=>h,Td:()=>r,XD:()=>d,m7:()=>u,q0:()=>c,xU:()=>l});var n=e(93747),s=e(47097),i=e(14365),o=e(23749);const c=(0,i.DY)("basicMessage",{fetchCallerInfo:t=>[t],fetchMessageAuthStatus:()=>["messageAuthStatus"]}),r=t=>(0,n.I)({queryKey:c.fetchCallerInfo(t).queryKey,queryFn:()=>(0,o.kp)(t)}),d=()=>(0,n.I)({queryKey:c.fetchMessageAuthStatus().queryKey,queryFn:()=>(0,o.kc)(),staleTime:0,refetchOnWindowFocus:!0}),l=()=>(0,s.n)({mutationFn:t=>(0,o._H)(t)}),u=()=>(0,s.n)({mutationFn:t=>(0,o.rE)(t)}),h=()=>(0,s.n)({mutationFn:t=>{let{shopId:a,params:e}=t;return(0,o.ZO)(a,e)}})},821:(t,a,e)=>{e.d(a,{A:()=>i});var n=e(78127),s=e(23178);const i=()=>{const t=(0,s.W)((t=>t.setDefaultErrorToast));return{openNiceAuth:async()=>{const a=sessionStorage.getItem("shopId"),e="".concat(window.location.origin,"/nice/redirect");(0,n.FK)({shopId:a,redirectUrl:e}).then((t=>{localStorage.setItem("niceTransactionId",t.transactionId);const a=screen.width/2-250,e=screen.height/2-400,n="status=no, menubar=no, toolbar=no, fullscreen=no, resizable=no, width=500, height=600, left=".concat(a,", top=").concat(e);
1window.open(t.authUrl,"nicePopup",n)})).catch((()=>{t()}))}}}},61158:(t,a,e)=>{e.d(a,{A:()=>d});var n=e(73216),s=e(97605),i=e(399),o=e(8720),c=e(59116),r=e(70579);const d=t=>{const{title:a,hasOnlyTitle:e,backMode:d,setModal:l,onClose:u}=t,h=(0,n.Zp)();return(0,r.jsxs)(s.pT,{justify:"start",gap:"8px",children:[!e&&(0,r.jsx)(o.A,{width:"30px",height:"30px",$widthWt:"24px",$heightWt:"24px",handleBack:()=>{u?u():"formBack"===d?null===l||void 0===l||l(!0):h(-1)}}),(0,r.jsx)(i.V9,{fontSize:c.$N.size24,$lineHeight:c.kj.height32,$fontSizeWt:c.$N.size20,$lineHeightWt:c.kj.height28,$whiteSpace:"nowrap",children:a})]})}}}]); 2//# sourceMappingURL=1160.5c6ca78f.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.