PageSourceSearch

https://www.bonatour.co.kr/_next/static/chunks/22474-97d21c83e17aa963.js

js bonatour.co.kr collected 2026-10-08 07:40:36 UTC 9,020 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[22474],{92869:function(e,t,a){a.d(t,{Z:function(){return f}});var o=a(67194),r=a(80795),n=a(47849),s=a(67294),i=a(8051),c=a(62436),l=a(13695),d=function(){return(0,o.tZ)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"18.462",fill:"#c6c6c6",viewBox:"0 0 20 18.462",sx:{mr:"2px","& .a":{fill:"#c6c6c6"}},children:(0,o.tZ)("path",{d:"M14.5 0A5.916 5.916 0 0010 2.111 5.916 5.916 0 005.5 0 5.437 5.437 0 000 5.534c0 3.822 3.4 6.889 8.548 11.62L10 18.462l1.452-1.308C16.601 12.423 20 9.354 20 5.534A5.437 5.437 0 0014.5 0zm-3.885 15.832l-.2.188-.413.375-.413-.375-.2-.188a61.109 61.109 0 01-5.9-5.865 7.054 7.054 0 01-1.942-4.433 4 4 0 011.136-2.851A3.913 3.913 0 015.5 1.538 4.409 4.409 0 018.825 3.1L10 4.5l1.178-1.4A4.393 4.393 0 0114.5 1.538a3.932 3.932 0 012.825 1.145 4.007 4.007 0 011.139 2.851 7.091 7.091 0 01-1.942 4.433 61.232 61.232 0 01-5.907 5.865z",className:"a"})})},h=function(){return(0,o.tZ)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"17.794",fill:"#ff6767",viewBox:"0 0 20 17.794",sx:{mr:"2px","& .a":{fill:"#FF6767"}},children:(0,o.tZ)("path",{d:"M18.413 1.741a5.378 5.378 0 00-4-1.741 5.031 5.031 0 00-3.143 1.085A6.429 6.429 0 0010 2.411a6.426 6.426 0 00-1.271-1.326A5.031 5.031 0 005.587 0a5.378 5.378 0 00-4 1.741A6.252 6.252 0 000 6.011a7.444 7.444 0 001.984 4.873 42.3 42.3 0 004.966 4.661 231.87 231.87 0 012.278 1.959 1.174 1.174 0 001.546 0c.81-.708 1.59-1.373 2.278-1.96a42.277 42.277 0 004.965-4.66A7.443 7.443 0 0020 6.01a6.251 6.251 0 00-1.587-4.269zm0 0",className:"a"})})},p=a(11163),u=a(91950),x=a(72819),m=a(28677),f=e=>{let{masterInfo:t,agentInfo:a,tourType:f}=e,{t:k}=(0,m.$G)("common"),[w,g]=(0,s.useState)("Y"===t.favorites),[b,C]=(0,s.useState)(!1),[v,{mutate:y}]=(0,c.a)(),{commonStore:_,userStore:Z}=(0,l.oR)(),N=(0,n.oX)(),E=(0,p.useRouter)();(0,s.useEffect)(()=>{function e(e){return!!e.target.classList.contains("share-box")||(B(e,"close"),!0)}return window.fbAsyncInit=()=>{FB.init({appId:a.facebook_app_id,xfbml:!0,version:"v9.0"})},((e,t,a)=>{let o=e.getElementsByTagName(t)[0],r=o;e.getElementById(a)||((r=e.createElement(t)).id=a,r.src="https://connect.facebook.net/en_US/sdk.js",o.parentNode.insertBefore(r,o))})(document,"script","facebook-jssdk"),window.addEventListener("click",e),()=>{window.removeEventListener("click",e)}},[]);let B=(e,t)=>{let a=document.getElementById("shareBox");a&&(""===a.style.display&&void 0===t?(a.style.display="block",setTimeout(()=>{a.style.transform="scale(1)"},10)):(a.style.transform="scale(.5)",setTimeout(()=>{a.style.display=""},80)))},S=e=>{switch(e.target.dataset.type){case"kakao":Kakao.isInitialized()||Kakao.init(a.kakao_javascript_key),Kakao.Link.sendScrap({requestUrl:window.location.href});break;case"facebook":FB.ui({method:"share",href:window.location.href});break;case"link":let t=document.createElement("textarea");t.innerText=window.location.href,document.body.appendChild(t),t.select(),document.execCommand("copy"),t.remove()}B(e,"close")},I=()=>{Z.toGoUrl=window.location.href,E.push({pathname:"/login",query:{from:window.location.href}})};return(0,o.BX)(r.kC,{sx:{justifyContent:"flex-end"},children:[(0,o.BX)(r.xu,{className:"share-box",sx:{cursor:"pointer",variant:"fontSizeType.lv6"},children:[(0,o.tZ)(r.xu,{className:"share-box",onClick:e=>{B(e,void 0)},sx:{width:"40px",height:"40px",border:"1px solid #C6C6C6",cursor:"pointer",borderRadius:"4px"},children:(0,o.tZ)("svg",{className:"share-box",sx:{ml:"11px",mt:"11px"},width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,o.tZ)("path",{className:"share-box",d:"M12 10.72C11.4933 10.72 11.04 10.92 10.6933 11.2334L5.94 8.46671C5.97333 8.31337 6 8.16004 6 8.00004C6 7.84004 5.97333 7.68671 5.94 7.53337L10.64 4.79337C11 5.12671 11.4733 5.33337 12 5.33337C13.1067 5.33337 14 4.44004 14 3.33337C14 2.22671 13.1067 1.33337 12 1.33337C10.8933 1.33337 10 2.22671 10 3.33337C10 3.49337 10.0267 3.64671 10.06 3.80004L5.36 6.54004C5 6.20671 4.52667 6.00004 4 6.00004C2.89333 6.00004 2 6.89337 2 8.00004C2 9.10671 2.89333 10 4 10C4.52667 10 5 9.79337 5.36 9.46004L10.1067 12.2334C10.0733 12.3734 10.0533 12.52 10.
10533 12.6667C10.0533 13.74 10.9267 14.6134 12 14.6134C13.0733 14.6134 13.9467 13.74 13.9467 12.6667C13.9467 11.5934 13.0733 10.72 12 10.72ZM12 2.66671C12.3667 2.66671 12.6667 2.96671 12.6667 3.33337C12.6667 3.70004 12.3667 4.00004 12 4.00004C11.6333 4.00004 11.3333 3.70004 11.3333 3.33337C11.3333 2.96671 11.6333 2.66671 12 2.66671ZM4 8.66671C3.63333 8.66671 3.33333 8.36671 3.33333 8.00004C3.33333 7.63337 3.63333 7.33337 4 7.33337C4.36667 7.33337 4.66667 7.63337 4.66667 8.00004C4.66667 8.36671 4.36667 8.66671 4 8.66671ZM12 13.3467C11.6333 13.3467 11.3333 13.0467 11.3333 12.68C11.3333 12.3134 11.6333 12.0134 12 12.0134C12.3667 12.0134 12.6667 12.3134 12.6667 12.68C12.6667 13.0467 12.3667 13.3467 12 13.3467Z",fill:"#191919"})})}),(0,o.BX)(r.xu,{className:"share-box",id:"shareBox",sx:{display:"none",position:"absolute",right:[16,"unset"],backgroundColor:"background",borderRadius:"2px",boxShadow:"0 0 0 1px rgba(52,58,64,.15), 0 3px 8px 0 rgba(52,58,64,.15)",width:"104px",margin:"-8x 0 0 0px",padding:"10px 0px 10px 8px",transform:"scale(.5)",transformOrigin:"top",transition:"transform .12s ease,opacity .12s ease",color:"text",zIndex:1,".icon-box":{alignItems:"center",mt:"2px",cursor:"pointer"},".icon":{width:"16px",pointerEvents:"none"},".icon-name":{ml:"5px",fontWeight:"normal",pointerEvents:"none"}},children:[(0,o.tZ)(r.kC,{className:"share-box",sx:{alignItems:"center",fontWeight:"600"},children:"공유하기"}),a.kakao_javascript_key&&a.kakao_javascript_key.length>4&&(0,o.tZ)(u.Rf,{type:"share",children:(0,o.BX)(r.kC,{className:"share-box icon-box","data-type":"kakao",onClick:e=>S(e),children:[(0,o.tZ)(r.Ee,{className:"share-box icon",src:"/images/share_kakao.svg",alt:"kakao"}),(0,o.tZ)(r.xv,{as:"div",className:"share-box icon-name",children:"카카오톡"})]})}),a.facebook_app_id&&a.facebook_app_id.length>4&&(0,o.BX)(r.kC,{className:"share-box icon-box","data-type":"facebook",onClick:e=>S(e),children:[(0,o.tZ)(r.Ee,{className:"share-box icon",src:"/images/share_facebook.svg",alt:"facebook"}),(0,o.tZ)(r.xv,{as:"div",className:"share-box icon-name",children:"페이스북"})]}),(0,o.BX)(r.kC,{className:"share-box icon-box","data-type":"link",onClick:e=>{S(e),N.openInfo({title:"링크가 복사되었습니다."})},children:[(0,o.tZ)(r.Ee,{className:"share-box icon",src:"/images/share_link.svg",alt:"link"}),(0,o.tZ)(r.xv,{as:"div",className:"share-box icon-name",children:"LINK"})]})]})]}),![1136].includes(a.id)&&(0,o.tZ)(u.Rf,{type:"addToWishList",wishlistItemId:null==t?void 0:t.id,children:(0,o.tZ)(r.xu,{onClick:()=>{async function e(e,t){if(!b){C(!0);try{let{data:o}=await i.b.postWithTravelAgentWithUser("/favorites/".concat(e,"/").concat(t),a,v);return g(!w),o}catch(e){N.openError({title:"처리중 오류가 발생하였습니다."}),x.Z.error(e)}finally{C(!1)}}}async function o(e,t){if(!b){C(!0);try{let{data:o}=await i.b.deleteWithTravelAgentWithUser("/favorites/".concat(e,"/").concat(t),a,v);return g(!w),o}catch(e){N.openError({title:"처리중 오류가 발생하였습니다."}),x.Z.error(e)}finally{C(!1)}}}if(v.is_logged){let a=null;a="p"===f?0:1,!1===w?e(a,t.id):o(a,t.id)}else try{I()}catch(e){N.openWarning({title:"로그인 해주세요"})}},sx:{display:["block","block","block","".concat(900==a.custom_width?"block":"none")],minHeight:"40px",minWidth:"40px",ml:"8px",border:"1px solid #C6C6C6",borderRadius:"4px",cursor:"pointer"},children:(0,o.tZ)(r.kC,{sx:{variant:"fontSizeType.lv6",color:"text",justifyContent:"center",alignItems:"center",height:"100%"},children:w?(0,o.tZ)(h,{}):(0,o.tZ)(d,{})})})})]})}},49220:function(e,t,a){a.d(t,{D:function(){return l}});var o=a(67294),r=a(11163);let n="@@scroll",s=()=>{let e=window;return e.__popStateFlag||(e.__popStateFlag={current:!1}),e.__popStateFlag};{let e=window;e.__popstateListenerRegistered||(window.addEventListener("popstate",()=>{s().current=!0}),e.__popstateListenerRegistered=!0)}let i=()=>{try{return JSON.parse(sessionStorage.getItem(n)||"{}")}catch(e){return{}}},c=e=>{try{sessionStorage.setItem(n,JSON.stringify(e))}catch(e){}},l=()=>{let e=(0,r.useRouter)(),t=(0,o.useRef)(!1),a=(0,o.useRef)([]),n=(0,o.useCallback)(()=>
1{a.current.forEach(e=>clearTimeout(e)),a.current=[]},[]);return(0,o.useEffect)(()=>{let t=()=>{n();let t=i();t[e.asPath]={x:window.scrollX,y:window.scrollY},c(t)};return e.events.on("routeChangeStart",t),()=>{e.events.off("routeChangeStart",t),n()}},[e,n]),{updateScroll:(0,o.useCallback)(()=>{let o=s();if(t.current)return;if(!o.current){t.current=!0;return}o.current=!1,t.current=!0;let r=i()[e.asPath];if(r){let e=r.y,t=r.x,o=()=>{Math.abs(window.scrollY-e)>10&&window.scrollTo(t,e)};requestAnimationFrame(()=>{window.scrollTo(t,e),a.current.push(setTimeout(o,100)),a.current.push(setTimeout(o,250)),a.current.push(setTimeout(o,500))})}},[e.asPath])}}}}]);

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.