1 2!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="8f5a627a-5374-5d29-b463-d5ebee817f50")}catch(e){}}(); 3!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="1f63c76e-96d9-40e3-9ee6-06170ebbe9b7",e._sentryDebugIdIdentifier="sentry-dbid-1f63c76e-96d9-40e3-9ee6-06170ebbe9b7")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[60443],{13336:(e,n,t)=>{"use strict";t.d(n,{A:()=>y});var i=t(86739),r=t(14146),o=t(33415),a=t(98277),u=t(61117);function l(){let e=(0,i._)(["\n mutation issueOnlineCouponAfterSignup($id: ID!) {\n issueOnlineCouponForUser(id: $id) {\n id\n }\n}\n "]);return l=function(){return e},e}let s={},c=(0,o.J1)(l());var d=t(72427);let f={ENGLISH:"839",TAIWAN:"840",JAPANESE:"841",HONGKONG:"842",VIETNAMESE:"843",THAI:"844",FRENCH:"845",SPANISH:"846",CHINESE:"847",GERMAN:"848",ITALIAN:"849",RUSSIAN:"850",INDONESIAN:"851",MONGOLIAN:"852"};var g=t(21867),p=t(53351),A=t(68344),I=t(49907);function w(){let e=(0,i._)(["\n mutation issueOnlineCouponAfterSignup($id: ID!) {\n issueOnlineCouponForUser(id: $id) {\n id\n }\n }\n"]);return w=function(){return e},e}function y(){let e=(0,I.A)(),{t:n}=(0,p.A)(),{checkI18nKey:t}=(0,g.A)(),[i]=function(e){let n={...s,...void 0};return u.n(c,n)}(),o=async()=>new Promise(e=>{a.A.success(()=>({content:n("onlinecoupon.issue-completed"),onConfirm:e,allowCloseWhenMaskClicked:!1}))}),l=async e=>{let n=e instanceof r.K4?(0,A.bG)(e):"unknown";(0,d.gH)({message:"íìê°ì ì¿ í° ë°ê¸ ì¤í¨",level:"warning",extra:{errorCode:n,errorMessage:e instanceof Error?e.message:String(e),errorStack:e instanceof Error?e.stack:void 0},tags:{errorType:"signup-coupon-issue-failed"}})},w=e=>!!(null==e?void 0:e.includes("/stays")),y=()=>f[e];return{issueOnlineCouponAfterSignup:async e=>{let{id:n,afterIssueCouponSuccess:t,afterIssueCouponError:r}=e;try{await i({variables:{id:n}}),await o(),t()}catch(e){await l(e),r()}},getIssueOnlineCouponId:e=>w(e)?y():null,issueOnlineCoupon:async e=>{await i({variables:{id:e}})},checkNeedIssueOnlineCoupon:w,getStayOnlineCouponIdAfterSignup:y,notifyIssueOnlineCouponSuccess:o,notifyIssueOnlineCouponError:l}}(0,o.J1)(w())},15552:(e,n,t)=>{"use strict";t.d(n,{A:()=>a});var i=t(82104),r=t(68185),o=t(12558);let a=()=>{let e=(0,i.wA)();return async n=>(o.A.set(n),new Promise(n=>{setTimeout(()=>{e((0,r.Tp)(!0)),n()},300)}))}},33252:(e,n,t)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/auth/line",function(){return t(96285)}])},43134:(e,n,t)=>{"use strict";t.d(n,{A:()=>u});var i=t(68386),r=t(98277),o=t(95090),a=t(53351);function u(){let{push:e}=(0,i.useRouter)(),{t:n}=(0,a.A)();return()=>{r.A.warning(()=>({content:n("general.error"),onConfirm:()=>e(o.i.AUTH.LOGIN.getURL()),allowCloseWhenMaskClicked:!1}))}}},43873:(e,n,t)=>{"use strict";t.d(n,{A:()=>f});var i=t(86739),r=t(53239),o=t(33415),a=t(56036);function u(){let e=(0,i._)(["\n query myAccountEmail {\n myInfo {\n id\n email\n }\n}\n "]);return u=function(){return e},e}let l={},s=(0,o.J1)(u());var c=t(38547);function d(){let e=(0,i._)(["\n query myAccountEmail {\n myInfo {\n id\n email\n }\n }\n"]);return d=function(){return e},e}let f=()=>{let e=(0,r.useRef)(),[n]=function(e){let n={...l,...void 0};return a._(s,n)}(),{socialTypes:t,getIntegrationSocialTypes:i}=(0,c.A)(),o=(0,r.useRef)({url:"",locale:void 0}),u=async()=>{let{data:t}=await n();return e.current=null==t?void 0:t.myInfo.email,(await i(null==t?void 0:t.myInfo.email)).length>1};return{email:e.current,socialTypes:t,afterRedirectUrl:o.current.url,afterRedirectLocale:o.current.locale,setAfterSignupInfo:(e,n)=>{o.current.url=e,o.current.locale=n},checkIntegrationModal:u}};(0,o.J1)(d())},66538:(e,n,t)=>{"use strict";function i(e,n){var t;let i=[e.indexOf("?"),e.indexOf("#")].filter(e=>e>=0).sort((e,n)=>e-n).at(0);if(null!=i)return null!=(t=new URLSearchParams(e.slice(i+1).replace("#","&")).get(n))?t:void 0}function r(e,n,t){if(!e)return{locale:void 0,redirectUrl:t};let i=e.indexOf(n);return i<0?{locale:e||void 0,redirectUrl:t}:{locale:e.slice(0,i)||void 0,redirectUrl:e.slice(i+n.length)||t}}t.d(n,{b:()=>i,v:()=>r})},96285:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>U});var i=t(86739),r=t(80263),o=t(33415),a=t(27360),u=t(95090),l=t(26529),s=t(60717),c=t(43134),d=t(58460),f=t(13336),g=t(17045),p=t(15552),A=t(74746),I=t(33146),w=t(58882),y=t(57084),v=t(66538),E=t(43873),_=t(83724),C=t(61117);function m(){let e=(0,i._)(["\n mutation lineLogin($token: String!, $language: LanguageType!) {\n signInWithSocial(input: {type: LINE, token: $token, language: $language}) {\n accessToken\n isCreated\n }\n}\n "]);return m=function(){return e},e}let S={},h=(0,o.J1)(m());var N=t(34561),b=t(71010),k=t(68386),L=t(55906),O=t(27963),T=t(41458);function R(){let e=(0,i._)(["\n mutation lineLogin($token: String!, $language: LanguageType!) {\n sign
3InWithSocial(input: { type: LINE, token: $token, language: $language }) {\n accessToken\n isCreated\n }\n }\n"]);return R=function(){return e},e}let U=(0,l.A)(function(){let e=(0,k.useRouter)(),n=(0,p.A)(),[t]=function(e){let n={...S,...void 0};return C.n(h,n)}(),{sendGrowthEventAfterAuth:i}=(0,N.A)(),{saveLastLoginMethod:o}=(0,g.A)(),l=(0,s.v)(),{issueOnlineCouponAfterSignup:m,getIssueOnlineCouponId:R}=(0,f.A)(),{email:U,socialTypes:H,afterRedirectUrl:P,afterRedirectLocale:$,setAfterSignupInfo:G,checkIntegrationModal:D}=(0,E.A)(),W=(0,c.A)(),x=(0,a.h)(),{claimAndRedirect:J}=(0,I.Ay)(),M=async()=>{let n=await (0,y.f)(P,l),t=R(P);if(t)return void await m({id:t,afterIssueCouponSuccess:()=>(0,w.EH)(e,n,{locale:$}),afterIssueCouponError:()=>(0,w.EH)(e,n,{locale:$})});(0,w.EH)(e,n,{locale:$})};return((0,d.A)("TypeError"),(0,b.A)(()=>{let r=(0,v.b)(e.asPath,"state"),{locale:a,redirectUrl:s}=(0,v.v)(r,A.e,u.i.HOME.getURL()),c=(0,T.b)(a);!async function(){try{let r=(0,v.b)(e.asPath,"code");if(!r)return void W();let{data:a}=await L.LV.post("https://api.line.me/oauth2/v2.1/token",new URLSearchParams({grant_type:"authorization_code",code:r,redirect_uri:"".concat(window.location.origin).concat(u.i.SOCIAL_LOGIN.REDIRECT.LINE.getURL()),client_id:"1654098651",client_secret:"7886f0df03277dabfcc4b4544b39f799"}),{headers:{"Content-Type":"application/x-www-form-urlencoded"}});if(!a.id_token)return void W();let{data:d}=await t({variables:{token:a.id_token,language:(0,O.e6)(c)}});if(!d)return void W();if(await n(d.signInWithSocial.accessToken),o(g.x.Line),!d.signInWithSocial.isCreated){await i({platform:"line",authType:"signIn"});let e=await (0,y.f)(s,l);await J(e,{locale:c});return}await i({platform:"line",authType:"signUp",isLogin:!0,signupStep:"socialverified"});let f=u.i.SOCIAL_LOGIN.AFTER_SIGN_UP.getURL({query:{redirectUrl:s}}),p=()=>void e.push(f,f,{locale:c});if(G(f,c),await D())return void x.open();let A=R(s);if(A)return void await m({id:A,afterIssueCouponSuccess:p,afterIssueCouponError:p});p()}catch(e){W()}}()},[e.asPath]),x.isOpen&&U)?(0,r.jsx)(_.A,{onClickWebViewButton:x.close,onSuccessCreatripAccountIntegration:x.close,onConfirmCreatripAccountIntegration:M,email:U,socialTypes:H,onClose:M}):null});(0,o.J1)(R())}},e=>{e.O(0,[18314,72527,82559,72398,24887,91225,16838,90810,31533,9542,57240,90636,46593,38792],()=>e(e.s=33252)),_N_E=e.O()}]); 4//# debugId=8f5a627a-5374-5d29-b463-d5ebee817f50
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.