1"use strict";(self.webpackChunkchai_app=self.webpackChunkchai_app||[]).push([[2405],{29290(e,n,i){i.d(n,{I:()=>z});var t=i(74848),o=i(54999),r=i(53321),a=i(96540),l=i(34666),s=i(93905),c=i(56238),d=i(48551);var u=i(68369),g=i(15823),f=i(26281),h=i(55774),p=i(39789),w=i(99830);const m={box:"box-430iP",boxImage:"boxImage-ok4zq"},x={box:"box-UlsRz",boxImage:"boxImage-n+GDi"},I=({autoLogin:e,userDescription:n,inflowUrl:i,isInitialized:o,isLoggedIn:r,isInClient:l,login:s,reauthorize:c,getIDToken:d,getFriendship:I,openWindow:k,closeWindow:L,oauthLinkUrl:b,oauthLoginUrl:y})=>{const z=(0,h.GO)(m,x),{target:U}=(0,h.Y0)();return(0,a.useEffect)((()=>{if(!o)return;(async()=>{if(!r)return s(window.location.href),0;const n=d(),t=await I(),o=void 0===t.friendFlag?"missing":t.friendFlag?"follow":"unfollow",a=e?new URL(y):new URL(b),c=new URLSearchParams(a.search);c.set("id_token",null!==n?n.toString():""),c.set("inflow_url",i),c.set("friendship_status",o),a.search=c.toString(),l?(k({url:a.toString(),external:!0}),L()):window.location.assign(a.toString())})().catch((e=>{e.name===w.n.authorization?c(window.location.href):p.u?.notify(e)}))}),[o]),(0,t.jsxs)("div",{className:z.box,children:[(0,t.jsx)(f.EY,{as:"h3",fontSize:"bodyLarge",fontWeight:"bold",m:0,pt:8,px:8,textAlign:"center",width:"100%",children:n??"LINEã¨ãã£ãªã¢ãã¼ã¯ã¢ã«ã¦ã³ãã飿ºãã¦ãã¾ã"}),(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(f.EY,{as:"h1",fontSize:"bodyTextArticle",lineHeight:"lead",m:0,textAlign:"center",children:["ãã°ãããå¾
ã¡ãã ãã",(0,t.jsx)("br",{})]}),(0,t.jsxs)("div",{className:z.boxImage,children:[(0,t.jsx)("img",{alt:"",height:"520",loading:"lazy",src:u,width:"1080"}),(0,t.jsx)(g.R,{})]}),!e&&(0,t.jsx)(f.az,{p:"sp"===U?6:8,pt:0,children:(0,t.jsx)(f.EY,{as:"h1",fontSize:"bodyTextArticle",lineHeight:"lead",m:0,children:"LINEä¸ã§ããã£ã³ãã¼ã³æ
å ±ãæä¾ãã¦ãã¾ãã®ã§ãã¡ããã覧ãã ããã"})})]})]})},k={modalBackGround:"modalBackGround-qfZe+",wrapper:"wrapper-x6v3E",wrapperInner:"wrapperInner-mn6+W"},L={modalBackGround:"modalBackGround-Cx+z+",wrapper:"wrapper-CeF21",wrapperInner:"wrapperInner-eDfWq"},b={animate:{opacity:1,transition:{ease:"easeOut",duration:.25,delay:.2}},exit:{opacity:0,transition:{duration:.25,ease:"easeOut"}},initial:{opacity:0}
1},y=({inflowUrl:e,liffId:n,oauthLinkUrl:i,oauthLoginUrl:a,autoLogin:d})=>{const u=(0,s.GO)(k,L),{isInitialized:g,isLoggedIn:f,isInClient:h,login:p,reauthorize:w,getIDToken:m,getFriendship:x,openWindow:y,closeWindow:z}=(0,c.x)(n);return(0,t.jsx)(o.N,{children:(0,t.jsx)(r.P.div,{animate:{opacity:1},className:u.wrapper,exit:{opacity:0},children:(0,t.jsxs)(o.N,{exitBeforeEnter:!0,children:[(0,t.jsx)(l.kM,{}),(0,t.jsx)(r.P.div,{animate:"animate",className:u.wrapperInner,exit:"exit",initial:"initial",variants:b,children:(0,t.jsx)(I,{autoLogin:d,closeWindow:z,getFriendship:x,getIDToken:m,inflowUrl:e,isInClient:h,isInitialized:g,isLoggedIn:f,login:p,oauthLinkUrl:i,oauthLoginUrl:a,openWindow:y,reauthorize:w,userDescription:d?"LINEã¢ã«ã¦ã³ãã§ãã£ãªã¢ãã¼ã¯ã«ãã°ã¤ã³ãã¦ãã¾ã":null},"line")},"line")]})})})},z=({inflow_url:e,liff_id:n,oauth_link_url:i,oauth_login_url:o,auto_login:r,return_url:l,is_liff_oauth2_error:c})=>{const u=(0,s.GO)(k,L),[g,f]=(0,a.useState)(!0);return c?(window.location.assign(function({returnUrl:e}){return e&&/^\/(?![/\\])/.test(e)?e:d.bw.TopIndex}({returnUrl:l})),null):(0,t.jsx)(t.Fragment,{children:g&&(0,t.jsx)("div",{className:u.modalBackGround,children:(0,t.jsx)(y,{autoLogin:r,inflowUrl:e,liffId:n,oauthLinkUrl:i,oauthLoginUrl:o,stateOpenModal:f})})})}},36384(e,n,i){i.r(n),i.d(n,{default:()=>r});var t=i(29290),o=i(50264);const r=()=>{(0,o.spRegisterComponent)("js_OauthLinkAccountLiff",t.I)}},39789(e,n,i){i.d(n,{u:()=>o,z:()=>t});const t={debug:"debug",info:"info",notice:"notice",warning:"warning",error:"error",critical:"critical",alert:"alert",emergency:"emergency"},{airbrake:o}=window},56238(e,n,i){i.d(n,{x:()=>s});var t=i(74356),o=i(96540),r=i(39789),a=i(99830),l=i(83102);function s(e){const[n,i]=(0,o.useState)(!1),[s,c]=(0,o.useState)(!1),[d,u]=(0,o.useState)(!1),[g,f]=(0,o.useState)(!1),[h,p]=(0,o.useState)(null),w=(0,o.useRef)(!1);(0,o.useEffect)((()=>{try{(0,l.f)(e)}catch(e){r.u?.notify({error:e,context:{severity:r.z.notice}})}(async()=>{await(async()=>{w.current||(w.current=!0,f(t.M.isInClient()),await t.M.init({liffId:e}).then((()=>{u(t.M.isLoggedIn()),c(!0)})).catch((e=>{r.u?.notify({error:(0,a.m)(e),context:{severity:r.z.notice}}),i(!0)})))})(),await(async()=>{if(t.M.isLoggedIn())try{const e=await t.M.getProfile(),n=t.M.getDecodedIDToken();p({...e,email:n?.email,phoneNumber:n?.phone_number})}catch{}})()})()}),[e]);const m=(0,o.useCallback)((e=>{s&&!d&&t.M.login({redirectUri:e})}),[s,d]),x=(0,o.useCallback)((()=>{s&&d&&t.M.logout()}),[s,d]),I=(0,o.useCallback)((e=>{s&&(t.M.logout(),t.M.login({redirectUri:e}))}),[s]),k=(0,o.useCallback)((({url:e,external:n=!1})=>{g&&t.M.openWindow({url:e,external:n})}),[g]),L=(0,o.useCallback)((()=>{g&&t.M.closeWindow()}),[g]),b=(0,o.useCallback)((()=>s&&d?t.M.getIDToken():null),[s,d]),y=(0,o.useCallback)((async()=>{if(!s)throw new Error("LIFFãåæåããã¦ãã¾ãã");if(!d)throw new Error("ãã°ã¤ã³ãå¿ è¦ã§ã");return await t.M.getFriendship().catch((e=>{const n=(0,a.m)(e);if(r.u?.notify({error:n,context:{severity:r.z.notice}}),n.name===a.n.authorization)throw n;return{friendFlag:void 0}}))}),[s,d]);return{liff:t.M,isError:n,isInitialized:s,isLoggedIn:d,isInClient:g,profile:h,login:m,logout:x,reauthorize:I,openWindow:k,closeWindow:L,getIDToken:b,getFriendship:y}}},68369(e,n,i){e.exports=i.p+"modal_line-372694b4.png"},83102(e,n,i){i.d(n,{f:()=>t});const t=e=>{const n=`LIFF_STORE:${e}:`,i=`${n}decodedIDToken`,t=localStorage?localStorage.getItem(i):null;if(null===t)return;const o=JSON.parse(t);if((new Date).getTime()>1e3*o.exp){(e=>{const n=[];for(let i=0;i<localStorage.length;i++){const t=localStorage.key(i);0===t?.indexOf(e)&&n.push(t)}return n})(n).forEach((function(e){localStorage.removeItem(e)}))}}},99830(e,n,i){i.d(n,{m:()=>a,n:()=>t});const t={network:"LiffNetworkError",authorization:"LiffAuthorizationError",init:"LiffInitError"},o=[{code:"invalid_request",message:/The access token revoked/},{code:"UNAUTHORIZED",message:/Need access_token for api call/}],r=(e,n)=>{const i=new Error(n);return i.name=e,i},a=e=>{const n=`code: ${e.code}, message: ${e.message}`;return(e=>void 0===e.code&&e instanceof TypeError)(e)?r(t.network,`ãããã¯ã¼ã¯ã¨ã©ã¼ãçºçãã¾ããã${n}`):(e=>o.some((({code:n,message:i})=>n===e.code&&i.test(e.message??""))))(e)?r(t.authorization,`権éã¨ã©ã¼ãçºçãã¾ããã${n}`):r(t.init,`liff.initã«å¤±æãã¾ããã${n}`)}}}]); 2//# sourceMappingURL=chunk.2405.e02b87af6ff76e82ac2d.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.