PageSourceSearch

https://nolbal.com/_next/static/chunks/pages/mypage/purchases/activity/[pk]/cancel-b1a6df7fd8a47ae1.js

js nolbal.com collected 2026-09-24 12:39:01 UTC 24,142 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7893],{20909:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/mypage/purchases/activity/[pk]/cancel",function(){return n(59334)}])},59334:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return ei}});var i=n(85893),o=n(5152),r=n.n(o),c=n(34243),l=n(67294),a=n(19521),s=n(11163),d=n(19133),u=n(39113),p=n(3608),h=n(22730),f=n(20823),g=n(86458),x=n(40317),m=n(52790),b=n(66005);function v(e){let{thumbnailImg:t,contentName:n,totalAmount:o}=e;return(0,i.jsxs)(w,{children:[(0,i.jsx)(j,{src:t,alt:"상품 이미지"}),(0,i.jsxs)(Z,{children:[(0,i.jsx)(k,{children:n}),(0,i.jsxs)("div",{children:[(0,i.jsx)(y,{children:"총 결제 금액"}),(0,i.jsx)(k,{children:"".concat(o.toLocaleString(),"원")})]})]})]})}let w=a.ZP.section.withConfig({componentId:"sc-ef1b9125-0"})(["display:flex;width:100%;padding:16px 20px 32px 20px;"]),j=a.ZP.img.withConfig({componentId:"sc-ef1b9125-1"})(["width:102px;height:136px;border-radius:8px;margin-right:16px;object-fit:cover;"]),Z=a.ZP.div.withConfig({componentId:"sc-ef1b9125-2"})(["display:flex;flex-direction:column;justify-content:space-between;"]),k=a.ZP.div.withConfig({componentId:"sc-ef1b9125-3"})(["font-size:16px;font-weight:800;line-height:26px;"]),y=a.ZP.div.withConfig({componentId:"sc-ef1b9125-4"})(["margin-bottom:8px;color:",";font-size:12px;line-height:16px;font-weight:400;"],b.ZP.gray03);var _=n(5495),P=n(33155);function C(e){let{isPreReservation:t,isVoucher:n}=e,{options:o,allSelected:r,handleCheckboxClick:c,handleAllCheckboxClick:l}=function(){let e=(0,d.T)(),{options:t,totalNum:n,totalMaxNum:i,totalAmount:o,totalMaxAmount:r}=(0,d.C)(e=>{let{reservationInfo:t}=e;return t}),c=n===i,l=e=>null==t?null:t.map(t=>({...t,selected:t.isCancelAvailable?e:t.selected}));return{options:t,allSelected:c,handleCheckboxClick:(i,r)=>{if(null==t||!1===r)return;let c=t.findIndex(e=>e.pk===i),l=t[c],a=t.map(e=>({...e,selected:e.pk===i?!e.selected:e.selected}));e((0,p.Rk)(a)),e((0,p.qK)(l.selected?n-1:n+1)),e((0,p.LG)(l.selected?o-l.option_price:o+l.option_price))},handleAllCheckboxClick:()=>{null!=t&&(c?(e((0,p.Rk)(l(!1))),e((0,p.qK)(0)),e((0,p.LG)(0))):(e((0,p.Rk)(l(!0))),e((0,p.qK)(i)),e((0,p.LG)(r))))}}}();return(0,i.jsxs)(T,{children:[(0,i.jsx)(S,{children:(0,i.jsx)(_.Z,{id:"checkbox-all",fontSize:"12px",isActive:r,labelText:"전체 선택",onToggle:l})}),(0,i.jsx)(I,{children:null==o?void 0:o.map(e=>(0,i.jsxs)(A,{children:[(0,i.jsx)(_.Z,{id:"checkbox-ticket-all-".concat(e.pk),fontSize:"12px",isActive:e.selected,isDisabled:!e.isCancelAvailable,onToggle:()=>c(e.pk,e.isCancelAvailable)}),(0,i.jsx)(P.Z,{contentName:e.ticket_name,optionName:e.option_name,resvState:e.product_state,isPreReservation:t,price:e.option_price,isStay:e.is_stay,checkInAt:e.check_in_at||e.desired_check_in_at,checkOutAt:e.check_out_at||e.desired_check_out_at,isReservationDateFixed:null!==e.check_in_at,cancelDueDate:e.cancel_due_date,classDate:e.class_date,availablePeriod:e.available_period,isVoucher:n,voucherReservationDateText:e.voucher_reservation_date_text,onToggle:()=>c(e.pk,e.isCancelAvailable)})]},e.pk))})]})}let I=a.ZP.div.withConfig({componentId:"sc-8fc1e2df-0"})(["padding:20px;border:1px solid ",";border-radius:8px;background-color:",";"],b.ZP.gray08,b.ZP.gray08),A=a.ZP.li.withConfig({componentId:"sc-8fc1e2df-1"})(["width:100%;","{background-color:",";}& > div{margin-bottom:8px;}&:not(:last-child){border-bottom:1px solid ",";padding-bottom:20px;}"],P.j,b.ZP.gray07,b.ZP.gray07),T=a.ZP.section.withConfig({componentId:"sc-8fc1e2df-2"})(["display:flex;flex-direction:column;width:100%;padding:20px;"," + ","{margin-top:16px;}"],A,A),S=a.ZP.div.withConfig({componentId:"sc-8fc1e2df-3"})(["width:100%;margin-bottom:24px;& label{color:",";font-size:16px;font-weight:800;}"],b.ZP.white);var R=n(90245),M=n(74292),N=n(48726),z=n(35123),D=n(76847),O=n(41703),q=n(4713),F=n(10357);function L(e){var t;let{onCancelSuccess:n}=e,{totalNum:o,info:r,tickets:c,cancelInfo:a}=(0,D.Z)(),{modalText:u,modalOpen:p,toggleModal:f,errorModalOpen:g,errorModalText:x,toggleErrorModal:b,goToLeisurePurchasesList:v,isCancelLoading:w,onCancelClick:j}=function(){let{onCancelSuccess:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=(0,d.T)(),n=(0,s.useRouter)(),{info:i,options:o,cancelDatas:r,refundMethod:c}=(0,d.C)(e=>e.reservationInfo),[a,u]=(0,l.useState)(!1),[p,f]=(0,l.useState)(!1),[g,x]=(0,l.useState)(!1),[b,v]=(0,l.useState)("");if(null==o)return{modalText:"",modalOpen:!1,toggleModal:()=>
1void 0,errorModalOpen:!1,errorModalText:"",toggleErrorModal:()=>void 0,goToLeisurePurchasesList:()=>void 0,isCancelLoading:!1,onCancelClick:()=>void 0};let w=(null==r?void 0:r.cancel_info.is_coupon_refunded)===!1?"구매 취소 시 사용한 쿠폰이 반환되지 않습니다.\n구매 취소를 요청하시겠습니까?":"구매 취소를 요청하시겠습니까?",j=()=>u(e=>!e),Z=()=>x(e=>!e),k=(o,r)=>{f(!0),(0,N.FO)(o,r,c).then(o=>{if(null==o?void 0:o.data){let{code:r,message:c}=o.data;if("S000"===r){if(t((0,M.v)()),(null==i?void 0:i.content.content_type)==="C"){n.push(m.pM);return}t((0,h.zn)()),null==e||e();return}v(null!=c?c:"취소에 실패하였습니다(".concat(r,")")),Z()}}).catch(e=>{var t,n;if(422===e.response.status){v("".concat(e.response.data.data,"\n").concat(e.response.data.message)),x(!0);return}v("취소에 실패하였습니다(".concat(null==e?void 0:null===(n=e.response)||void 0===n?void 0:null===(t=n.data)||void 0===t?void 0:t.code,")")),Z()}).finally(()=>{f(!1),j()})};return{modalText:w,modalOpen:a,toggleModal:j,errorModalOpen:g,errorModalText:b,toggleErrorModal:Z,goToLeisurePurchasesList:()=>{x(!1),t((0,h.zn)()),n.push({pathname:m.pM,query:{target:"ACTIVITY"}})},isCancelLoading:p,onCancelClick:()=>{if(!i)return;let e=o.filter(e=>e.selected).reduce((e,t)=>"".concat(e).concat(""!==e?",":"").concat(t.pk),"");k(i.reservation_number,e),i&&o&&r&&(0,z.ao)({transactionId:i.transaction.merchant_uid,totalValue:String(r.cancel_info.total_cancel_amount),currency:"KRW",totalQuantity:o.length,couponAmount:String(r.cancel_info.coupon_cancel_amount)})}}}({onCancelSuccess:n});return(0,i.jsxs)(B,{children:[(0,i.jsx)(E,{children:"환불 상세 정보"}),(0,i.jsxs)(G,{children:[(0,i.jsx)(V,{children:"취소 티켓 정보"}),(0,i.jsx)(K,{}),c&&c.map(e=>(0,i.jsxs)(U,{children:[(0,i.jsx)(Q,{children:e.ticket_name}),(0,i.jsx)(Y,{children:e.options.map(e=>(0,i.jsxs)(J,{children:[(0,i.jsx)(W,{children:e.option_name}),(0,i.jsxs)("b",{children:[e.count,"개"]})]},e.pk))})]},e.ticket_name))]}),a&&a.total_cancel_amount>0&&(0,i.jsx)(q.Z,{isFromCancelRequest:!0,totalAmount:a.total_cancel_amount,cancelAmount:a.cancel_amount,pointCancelAmount:a.point_cancel_amount,pPointCancelAmount:a.p_point.cancel_amount,wjtbpointType:a.p_point.wjtbpoint_type,couponCancelAmount:a.coupon_cancel_amount,isCouponRefunded:a.is_coupon_refunded||!1,totalRefundedAmount:a.total_refunded_amount,refundPayMethod:null==r?void 0:null===(t=r.cancel_info)||void 0===t?void 0:t.p_point.ppoint_refund_pay_method,paymentMethod:(null==r?void 0:r.transaction.transaction_type)||"-",isCanceledPpointOrder:null==r?void 0:r.is_canceled_ppoint_order}),(0,i.jsx)(X,{children:(0,i.jsx)(F.Z,{title:"취소 및 환불 규정 안내",policy:(null==r?void 0:r.content.content_cancel_policy)||"",btnText:"취소 요청하기",btnAction:()=>{o>0&&f()}})}),p&&(0,i.jsx)(O.Z,{title:"구매 취소",description:u,leftButtonText:"닫기",leftButtonDisabled:w,leftButtonAction:f,rightButtonText:"요청하기",rightButtonDisabled:w,rightButtonAction:j}),g&&(0,i.jsx)(O.Z,{title:"취소 불가",description:x,leftButtonText:"확인",leftButtonAction:b,rightButtonText:"구매 목록으로",rightButtonAction:v})]})}let B=a.ZP.section.withConfig({componentId:"sc-2969397c-0"})(["display:flex;flex-direction:column;width:100%;padding:20px;"]),E=a.ZP.div.withConfig({componentId:"sc-2969397c-1"})(["width:100%;margin-bottom:24px;color:",";font-size:16px;font-weight:800;"],R.w.white),G=a.ZP.div.withConfig({componentId:"sc-2969397c-2"})(["padding:20px;background-color:",";border-radius:4px;"],R.w.gray08),K=a.ZP.div.withConfig({componentId:"sc-2969397c-3"})(["padding-top:20px;border-top:1px solid ",";"],R.w.gray07),V=a.ZP.div.withConfig({componentId:"sc-2969397c-4"})(["padding-bottom:20px;",""],R.Z.title6),Q=a.ZP.div.withConfig({componentId:"sc-2969397c-5"})(["display:-webkit-box;width:100%;margin-bottom:14px;color:",";"," overflow:hidden;text-overflow:ellipsis;-webkit-line-clamp:1;-webkit-box-orient:vertical;word-break:break-all;"],R.w.gray03,R.Z.title6),U=a.ZP.div.withConfig({componentId:"sc-2969397c-6"})(["&:not(:last-child){margin-bottom:20px;}"]),Y=a.ZP.div.withConfig({componentId:"sc-2969397c-7"})(["padding:20px;border-radius:4px;background-color:",";"],R.w.gray07),J=a.ZP.div.withConfig({componentId:"sc-2969397c-8"})(["display:flex;justify-content:space-between;align-items:center;margin-bottom:20px;&:last-child{margin-bottom:0;}"]),W=a.ZP.span.withConfig({componentId:"sc-2969397c-9"})(["display:-webkit-box;width:80%;overflow:hidden;text-overflow:ellipsis;-webkit-line-clamp:2;-webkit-box-orient:vertical;word-break:break-all;"]),X=a.ZP.div.withConfig({componentId:"sc-2969397c-10"})(["margin-top:8px;& div:first-child{margin-bottom:0;}"]);var H=n(97648);function $(){let e=(0,d.T)(),t=(0,s.useRouter)(),{info:n,totalNum:o,options:r,allSelected:a,cancelDatas:b,cancelError:w}=function(){let e=(0,s.useRouter)(),{pk:t}=e.query,n=Number(t),i=(0,d.T)(),o=(0,d.C)(e=>e.reservationInfo.info),r=(0,d.C)(e=>e.reservationInfo.totalNum),c=(0,d.C)(e=>e.reservationInfo.totalMaxNum),a=(0,d.C)(e=>e.reservationInfo.options),h=(0,d.C)(e=>e.reservationInfo.cancelDatas),f=(0,d.C)(e=>e.reservationInfo.cancelError);return(0,l.useEffect)(()=>{e.isReady&&(null==o||n!==(null==o?void 0:o.pk))&&i((0,u.Q)(n))},[i,o,n,e.isReady]),(0,l.useEffect)(()=>()=>{i((0,p.Rk)(null)),i((0,p.qK)(0)),i((0,p.LG)(0)),i((0,p.zn)())},[i]),{info:o,totalNum:r,allSelected:r===c,options:a,cancelDatas:h,cancelError:f}}(),[j,Z]=(0,l.useState)(!1),[k,y]=(0,l.useState)(""),[_,P]=(0,l.useState)(!1),I=(0,l.useCallback)(()=>{P(!0)},[]),A=(0,l.useCallback)(()=>{P(!1)},[]),T=(0,l.useCallback)(()=>{A(),t.push(m.pM)},[A,t]),S=(0,l.useCallback)(()=>{A(),t.push(m.Ql)},[A,t]);if(null==n)return null;let R=()=>
1{if(!r)return;let t=r.filter(e=>e.selected).reduce((e,t)=>"".concat(e).concat(""!==e?",":"").concat(t.pk),"");e((0,u.n)({reservationPk:n.reservation_number,productPks:t}))};return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(H.EJ,{children:[(0,i.jsx)(H.Gq,{children:(0,i.jsx)(v,{thumbnailImg:n.content.content_thumbnail,contentName:n.content.content_name,totalAmount:n.transaction.amount})}),(0,i.jsx)(H.Gq,{children:(0,i.jsx)(C,{isPreReservation:n.content.is_pre_reservation,isVoucher:n.is_voucher})}),(0,i.jsx)(et,{children:(0,i.jsx)(ee,{type:"button",active:!0,disabled:0===o,onClick:()=>{if(n.is_canceled_ppoint_order&&a){R();return}if(!n.is_ppoint_refundable){y("해당 결제 건은 부분 취소가 불가합니다."),Z(!0);return}if(!n.is_partial_refundable&&!a){y("해당 결제 건은 부분 취소가 불가합니다.\n 부분 취소를 원하시는 경우 전체 취소 후 다시 구매해주세요."),Z(!0);return}R()},children:"다음으로"})}),b&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(c.bo,{title:"환불 정보 확인",setIsModalOn:()=>e((0,h.zn)()),children:(0,i.jsx)(H.Gq,{children:(0,i.jsx)(L,{onCancelSuccess:I})})}),(0,i.jsx)(f.Z,{})]})]}),(0,i.jsx)(x.Z,{isVisible:_,cancelledInventory:"leisure",categoryId:n.category_id,onClose:T,onGoHome:S}),j&&(0,i.jsx)(g.ZP,{title:"취소 불가",description:k,buttonText:"확인",buttonAction:()=>Z(!1)}),w&&(0,i.jsx)(g.ZP,{title:"취소 불가",description:w,buttonText:"확인",buttonAction:()=>e((0,h.zn)())})]})}let ee=a.ZP.button.withConfig({componentId:"sc-cbb24986-0"})(["display:flex;align-items:center;justify-content:center;width:100%;height:50px;border-radius:8px;color:",";font-size:16px;font-weight:800;"," &:disabled{border-color:",";background-color:",";color:",";cursor:default;}"],b.ZP.gray01,e=>e.active&&(0,a.iv)(["border:1px solid ",";background-color:",";color:",";"],b.ZP.primary,b.ZP.primary,b.ZP.black),b.ZP.gray06,b.ZP.gray06,b.ZP.gray04),et=a.ZP.div.withConfig({componentId:"sc-cbb24986-1"})(["padding:0 20px 20px 20px;background-color:",";"],b.ZP.black);function en(){return(0,i.jsx)(c.YS,{title:"취소 티켓 선택",children:(0,i.jsx)($,{})})}var ei=r()(()=>Promise.resolve(en),{ssr:!1})},34243:function(e,t,n){"use strict";n.d(t,{bo:function(){return _},Jy:function(){return a},YS:function(){return m}});var i=n(85893),o=n(19521),r=n(66005),c=n(86838),l=n(74556);function a(e){let{children:t}=e;return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(s,{children:t}),(0,i.jsx)(l.Z,{})]})}let s=o.ZP.div.withConfig({componentId:"sc-87bcc7ba-0"})(["position:relative;width:100%;min-height:100vh;padding-bottom:",";background-color:",";"],c.V1,r.ZP.black);var d=n(97167),u=n(72504),p=n(54847),h=n(90441),f=n(5276);let g=(0,o.ZP)(f.qF).withConfig({componentId:"sc-422bec45-0"})(["",""],e=>e.appear?(0,o.iv)(["animation:"," 0.25s forwards;"],p.Z.fadeIn):(0,o.iv)(["animation:"," 0.25s forwards;"],p.Z.fadeOut));var x=function(e){let{title:t}=e,n=(0,h.Z)({height:64});return n?(0,i.jsx)(g,{appear:n,children:t}):null};function m(e){let{children:t,headerRightItem:n,title:o,hideTitle:r,isSettings:c,hideButton:l=!1,backgroundColor:a,onBackButtonClick:s}=e;return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(d.h4,{fixed:!0,children:(0,i.jsxs)(d.cU,{children:[!l&&(0,i.jsx)(d.wU,{children:(0,i.jsx)(u.x,{isSettings:c,onClick:s})}),r?(0,i.jsx)(x,{title:o}):(0,i.jsx)(d.qF,{children:(0,i.jsx)(d.KC,{children:o})}),(0,i.jsx)(d.lk,{children:n})]})}),(0,i.jsx)(d.Sv,{backgroundColor:a,children:t})]})}var b=n(64179),v=n(96147);n(67294);var w=n(48862),j=n(11163),Z=n(52790),k=n(2183),y=n(19133);function _(e){let{children:t,title:n,setIsModalOn:o,onClickBackIcon:r,headerFixed:c=!1}=e,l=(0,j.useRouter)(),a=(0,y.T)(),{query:s,back:u}=l;return(0,i.jsx)(P,{children:(0,i.jsxs)(C,{children:[(0,i.jsx)(d.h4,{fixed:c,children:(0,i.jsxs)(d.cU,{children:[(0,i.jsx)(d.wU,{children:(0,i.jsx)(I,{onClick:()=>{if(r){r();return}if((null==s?void 0:s.prev)==="home"){l.push(Z.Ql);return}if((null==s?void 0:s.code)&&(null==s?void 0:s.name)){a({type:k.gV,payload:!1}),a({type:k.Y3,payload:{code:0,name:""}}),u();return}o(!1)}})}),(0,i.jsx)(d.qF,{children:(0,i.jsx)(d.KC,{children:n})}),(0,i.jsx)(d.lk,{})]})}),(0,i.jsx)(d.Sv,{children:t})]})})}let P=o.ZP.div.withConfig({componentId:"sc-19cf371-0"})(["position:fixed;z-index:",";top:0;left:0;width:100%;height:100%;overflow-y:auto;height:100%;
1background-image:url(/images/layoutBackgroundLight.png);background-repeat:no-repeat;background-position:center;background-attachment:fixed;"],w.Z.templateModal),C=o.ZP.div.withConfig({componentId:"sc-19cf371-1"})(["width:100%;margin:0 auto;background-color:",";@media ","{width:500px;}"],r.ZP.black,b.A.mobileL),I=(0,o.ZP)(v.wy).withConfig({componentId:"sc-19cf371-2"})(["color:",";stroke-width:1.5;"],r.ZP.white)},72504:function(e,t,n){"use strict";n.d(t,{x:function(){return i.Z}});var i=n(38733)},5495:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var i=n(85893),o=n(19521),r=n(96147),c=n(66005);function l(e){let{id:t,isActive:n,labelText:o,fontSize:r,isRequiredCheck:c,isDisabled:l=!1,onToggle:h}=e;return(0,i.jsx)(s,{fontSize:r,haslabeltext:!!o,children:(0,i.jsxs)(d,{htmlFor:t,isDisabled:l,children:[(0,i.jsx)(u,{type:"checkbox",id:t,defaultChecked:n,disabled:l,onClick:h}),(0,i.jsx)(a,{active:n.toString()||void 0,isDisabled:l}),o,c&&(0,i.jsx)(p,{children:" (필수)"})]})})}let a=(0,o.ZP)(r.kD).withConfig({componentId:"sc-d39366bd-0"})(["position:relative;top:0;right:1px;circle{fill:",";stroke:",";}path{stroke:",";}"],e=>{let{active:t,isDisabled:n}=e;return n?c.ZP.gray06:"true"===t?c.ZP.primary:c.ZP.black},e=>{let{active:t,isDisabled:n}=e;return n?c.ZP.gray06:"true"===t?c.ZP.primary:c.ZP.gray05},e=>{let{active:t,isDisabled:n}=e;return n?c.ZP.gray05:"true"===t?c.ZP.black:c.ZP.gray05}),s=o.ZP.div.withConfig({componentId:"sc-d39366bd-1"})(["display:flex;align-items:center;gap:",";font-size:",";font-weight:800;","{margin-right:",";}"],e=>{let{haslabeltext:t}=e;return t?"8px":"0px"},e=>{let{fontSize:t}=e;return t||"16px"},a,e=>{let{haslabeltext:t}=e;return t?"8px":"0px"}),d=o.ZP.label.withConfig({componentId:"sc-d39366bd-2"})(["display:flex;align-items:center;font-weight:700;cursor:",";"],e=>{let{isDisabled:t}=e;return t?"default":"pointer"}),u=o.ZP.input.withConfig({componentId:"sc-d39366bd-3"})(["position:relative;width:0;height:0;"]),p=o.ZP.span.withConfig({componentId:"sc-d39366bd-4"})(["color:",";"],c.ZP.primary)},40317:function(e,t,n){"use strict";n.d(t,{Z:function(){return v}});var i=n(85893),o=n(19521),r=n(96147),c=n(74762),l=n(90245),a=n(11163),s=n(70944),d=n(80052),u=n(67959),p=n(52790);let h=o.ZP.section.withConfig({componentId:"sc-e1df6a2d-0"})([""]),f=o.ZP.h3.withConfig({componentId:"sc-e1df6a2d-1"})(["margin:0 0 8px;color:",";",""],l.w.gray01,l.Z.label1),g=o.ZP.div.withConfig({componentId:"sc-e1df6a2d-2"})(["display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 8px;width:100%;padding-bottom:16px;"]);var x=function(e){var t,n;let{categoryId:o}=e,r=(0,a.useRouter)(),{data:c,isLoading:l}=(0,u.Z)({sort:"priority-desc",size:10,sub_cat:o,is_coupon_price:!0},{enabled:null!=o});return l||(null==c?void 0:null===(t=c.data.contents)||void 0===t?void 0:t.length)!==0?(0,i.jsxs)(h,{children:[(0,i.jsx)(f,{children:"이런 곳도 발견 했어요!"}),(0,i.jsx)(g,{children:l?Array.from({length:4},(e,t)=>(0,i.jsx)(d.Z,{},"cancel-complete-leisure-skeleton-".concat(t))):null==c?void 0:null===(n=c.data.contents)||void 0===n?void 0:n.map(e=>{let{pk:t,name:n,short_address:o,price:c,images:l,labels:a}=e;return(0,i.jsx)(s.Z,{title:n,region:o,price:c||{percent:0,discount:0,original:0},labels:a,image:l.thumb_main,onClickCard:()=>{r.push("".concat(p.OW,"/").concat(t))}},t)})})]}):null},m=n(64998),b=function(e){var t,n,o;let{typeId:r}=e,c=(0,a.useRouter)(),{data:l,isFetching:u}=(0,m.Z)({type:String(r),size:10,sort:"priority-desc"}),x=null==l?void 0:null===(n=l.pages[0])||void 0===n?void 0:null===(t=n.data.data.accommodations)||void 0===t?void 0:t.slice(0,10);return u||(null!==(o=null==x?void 0:x.length)&&void 0!==o?o:0)!==0?(0,i.jsxs)(h,{children:[(0,i.jsx)(f,{children:"이런 곳도 발견 했어요!"}),(0,i.jsx)(g,{children:u?Array.from({length:4},(e,t)=>(0,i.jsx)(d.Z,{},"cancel-complete-stay-skeleton-".concat(t))):null==x?void 0:x.map(e=>{let{id:t,name:n,short_address:o,price:r,images:l,labels:a}=e;return(0,i.jsx)(s.Z,{isStay:!0,title:n,region:o,price:r||{percent:0,discount:0,original:0},labels:a,image:l,onClickCard:()=>{c.push("".concat(p.MO,"/").concat(t))}},t)})})]}):null};function v(e){let{isVisible:t,onClose:n,onGoHome:o,cancelledInventory:a}=e;return(0,i.jsx)(c.Z,{closeModal:()=>{n()},isVisible:t,isAnimate:!0,backgroundColor:l.w.bg02,children:(0,i.jsxs)(w,{children:[(0,i.jsxs)(j,{children:[(0,i.jsxs)(Z,{children:[(0,i.jsx)(k,{children:"취소 완료"}),(0,i.jsx)(y,{type:"button",onClick:n,"aria-label":"닫기",children:(0,i.jsx)(r.aM,{})})]}),"leisure"===a&&(0,i.jsx)(x,{categoryId:e.categoryId}),"stay"===a&&(0,i.jsx)(b,{typeId:e.typeId}),(0,i.jsx)(_,{})]}),(0,i.jsx)(P,{children:(0,i.jsx)(I,{type:"button",onClick:o,children:"홈으로 가기"})})]})})}let w=o.ZP.div.withConfig({componentId:"sc-414948f7-0"})(["display:flex;flex-direction:column;width:100%;max-height:calc( 85vh - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 40px );max-height:calc( 85dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 40px );"]),j=o.ZP.div.withConfig({componentId:"sc-414948f7-1"})(["flex:1;min-height:0;overflow-x:hidden;overflow-y:auto;-webkit-overflow-scrolling:touch;scrollbar-width:none;-ms-overflow-style:none;&::-webkit-scrollbar{display:none;}"]),Z=o.ZP.div.withConfig({componentId:"sc-414948f7-2"})(["position:relative;display:flex;justify-content:center;width:100%;margin-bottom:24px;"]),k=o.ZP.p.withConfig({componentId:"sc-414948f7-3"})(["margin:0;color:",";text-align:center;",""],l.w.gray01,l.Z.largeTitle7),y=o.ZP.button.withConfig({componentId:"sc-414948f7-4"})(["position:absolute;top:0;right:0;display:flex;padding:0;border:none;background:transparent;cursor:pointer;svg{width:20px;height:20px;color:",";}"],l.w.gray04),_=o.ZP.div.withConfig({componentId:"sc-414948f7-5"}
1)(["height:8px;"]),P=o.ZP.div.withConfig({componentId:"sc-414948f7-6"})(["flex-shrink:0;display:flex;gap:8px;padding-top:12px;"]),C=(0,o.iv)(["flex:1;min-width:0;height:48px;border-radius:8px;cursor:pointer;",""],l.Z.largeTitle5);o.ZP.button.withConfig({componentId:"sc-414948f7-7"})([""," border:1px solid ",";background:",";color:",";"],C,l.w.gray08,l.w.black,l.w.white);let I=o.ZP.button.withConfig({componentId:"sc-414948f7-8"})([""," border:none;background:",";color:",";"],C,l.w.primary,l.w.black)},64998:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});var i=n(59403),o=n(70063);function r(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{size:n=20,...r}=e;return(0,i.N)({queryKey:c(e),queryFn:e=>{let{pageParam:t=0}=e;return(0,o.dO)({...r,size:n,index:t})},getNextPageParam:(e,t)=>{let i=e.data.data.accommodations;if(i&&!(i.length<n))return t.length*n},...t})}let c=e=>["stayContents",e.coupon_pk,e.district_id,e.recommend_district_id,e.type,e.sort,e.size,e.check_in,e.check_out,e.adults,e.children];r.extractKey=c},35123:function(e,t,n){"use strict";n.d(t,{Qj:function(){return r},ao:function(){return c},jU:function(){return o}});var i=n(14757);let o=e=>{let{productId:t,productName:n,categoryId:o,categoryName:r}=e;i.Z.events.send("airbridge.initiateCheckout",{action:n,semanticAttributes:{products:[{productID:t,name:n,categoryID:o,categoryName:r}]}})},r=e=>{var t;let{productName:n,transactionId:o,transactionType:r,totalValue:c,currency:l,categoryId:a,categoryName:s,options:d,couponName:u,couponAmount:p}=e,h=null!==(t=null==d?void 0:d.map(e=>{let{optionId:t,optionName:n,price:i,quantity:o}=e;return{productID:t,name:n,price:i,quantity:o}}))&&void 0!==t?t:[];i.Z.events.send("airbridge.ecommerce.order.completed",{action:n,label:u,value:Number(c),semanticAttributes:{transactionID:o,transactionType:r,products:[{totalValue:c,currency:l,categoryID:a,categoryName:s},...h]},customAttributes:{couponName:u,couponAmount:p}})},c=e=>{let{transactionId:t,totalValue:n,currency:o,totalQuantity:r,couponAmount:c}=e;i.Z.events.send("airbridge.ecommerce.order.canceled",{action:t,label:String(r),value:Number(n),semanticAttributes:{transactionID:t,products:[{transactionID:t,totalValue:n,currency:o,totalQuantity:r}]},customAttributes:{couponAmount:c}})}},59403:function(e,t,n){"use strict";n.d(t,{N:function(){return a}});var i=n(32161),o=n(52924),r=n(9499);class c extends o.z{constructor(e,t){super(e,t)}bindMethods(){super.bindMethods(),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)}setOptions(e,t){super.setOptions({...e,behavior:(0,r.Gm)()},t)}getOptimisticResult(e){return e.behavior=(0,r.Gm)(),super.getOptimisticResult(e)}fetchNextPage({pageParam:e,...t}={}){return this.fetch({...t,meta:{fetchMore:{direction:"forward",pageParam:e}}})}fetchPreviousPage({pageParam:e,...t}={}){return this.fetch({...t,meta:{fetchMore:{direction:"backward",pageParam:e}}})}createResult(e,t){var n,i,o,c,l,a;let{state:s}=e,d=super.createResult(e,t),{isFetching:u,isRefetching:p}=d,h=u&&(null==(n=s.fetchMeta)?void 0:null==(i=n.fetchMore)?void 0:i.direction)==="forward",f=u&&(null==(o=s.fetchMeta)?void 0:null==(c=o.fetchMore)?void 0:c.direction)==="backward";return{...d,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:(0,r.Qy)(t,null==(l=s.data)?void 0:l.pages),hasPreviousPage:(0,r.ZF)(t,null==(a=s.data)?void 0:a.pages),isFetchingNextPage:h,isFetchingPreviousPage:f,isRefetching:p&&!h&&!f}}}var l=n(7687);function a(e,t,n){let o=(0,i._v)(e,t,n);return(0,l.r)(o,c)}}},function(e){e.O(0,[6492,7528,5675,4556,9411,3223,2888,9774,179],function(){return e(e.s=20909)}),_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.