PageSourceSearch

https://careerpark.jp/app-packs/chunk.3453.a7990b8e61ffbc1a2f6b.js

js careerpark.jp collected 2026-10-02 14:39:33 UTC 6,621 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunkchai_app=self.webpackChunkchai_app||[]).push([[3453],{38879(e,t,r){r.r(t),r.d(t,{default:()=>o});var n=r(43402),i=r(50264);const o=()=>{(0,i.pcRegisterComponent)("js_LineLiffAuthRedirectUrlLiff",n.M)}},39789(e,t,r){r.d(t,{u:()=>i,z:()=>n});const n={debug:"debug",info:"info",notice:"notice",warning:"warning",error:"error",critical:"critical",alert:"alert",emergency:"emergency"},{airbrake:i}=window},43402(e,t,r){r.d(t,{M:()=>y});var n=r(74848),i=r(54999),o=r(53321),a=r(96540),s=r(39789),c=r(44244),l=r(56238);const d={authenticity_token:"",id_token:"",inflow_url:"",inflow_source:"",login_type:"",provider:"",user_id:"",lp_id:"",target_url:""},u=({liffId:e,redirectUrl:t,requestUrl:r,credential:i})=>{const{isInitialized:o,isLoggedIn:u,getIDToken:f,login:g,logout:h}=(0,l.x)(e);return(0,a.useEffect)((()=>{o&&async function(){try{if(!u){const e=new URL(t),r=new URLSearchParams({...i});return e.search=r.toString(),g(e.href),0}const e=f(),n=document.head.querySelector("meta[name=csrf-token]");if(null===n||null===e)return;((e,t)=>{const r=document.createElement("form");r.method="post",r.action=e,Object.keys(t).filter((e=>Object.keys(d).includes(e))).forEach((e=>{const n=document.createElement("input");n.type="hidden",n.name=e,n.value=t[e],r.appendChild(n)})),document.body.appendChild(r),r.submit()})(r,{authenticity_token:n.getAttribute("content"),id_token:e,...i}),h()}catch(e){s.u?.notify({error:e,context:{severity:s.z.notice}})}await(0,c.y)(3e3)}()}),[o]),(0,n.jsx)("div",{})},f=({liffId:e,redirectUrl:t,targetUrl:r,isOpenExternalDefaultBrowser:i})=>{const{isLoggedIn:o,isInClient:d,getIDToken:u,login:f,logout:g,closeWindow:h,openWindow:m,isInitialized:p}=(0,l.x)(e);return(0,a.useEffect)((()=>{p&&async function(){try{if(!o){const e=new URL(t),n=new URLSearchParams(e.search);return n.set("target_url",r),n.set("is_open_external_default_browser",i.toString()),e.search=n.toString(),f(e.href),0}const e=u();if(null===document.head.querySelector("meta[name=csrf-token]")||null===e)return;const n=new URL(r),a=new URLSearchParams(n.search);a.set("id_token",e),n.search=a.toString(),d?(m({url:n.toString(),external:!0}),h()):window.location.assign(n.href),g()}catch(e){s.u?.notify({error:e,context:{severity:s.z.notice}})}await(0,c.y)(3e3)}()}),[p]),(0,n.jsx)("div",{})},g={wrapper:"wrapper-wag91",box:"box-VlXpN",watingText:"watingText-7nFep",boxImage:"boxImage-UnObw"},h={animate:{opacity:1,transition:{ease:"easeOut",duration:.25,delay:.2}},exit:{opacity:0,transition:{duration:.25,ease:"easeOut"}},initial:{opacity:0}
1},m=r.p+"url_redirector-liff-hero-ee8a81a6.png";var p=r(15823),x=r(26281);const w=()=>(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(p.R,{style:{top:"35%"}}),(0,n.jsxs)("div",{className:g.box,children:[(0,n.jsx)(x.EY,{fontSize:"6",fontWeight:"bold",m:0,textAlign:"center",children:"ログイン中"}),(0,n.jsxs)(x.EY,{className:g.waitingText,color:"grey",fontSize:"bodyTextArticle",lineHeight:"lead",m:0,marginBottom:"32px",textAlign:"center",children:["このまましばらくお待ちください",(0,n.jsx)("br",{})]}),(0,n.jsx)("div",{className:g.boxImage,children:(0,n.jsx)("img",{alt:"",loading:"lazy",src:m})})]})]}),y=({liffId:e,redirectUrl:t,requestUrl:r,targetUrl:a,isOpenExternalDefaultBrowser:s})=>(0,n.jsxs)(n.Fragment,{children:[s?(0,n.jsx)(f,{isOpenExternalDefaultBrowser:s,liffId:e,redirectUrl:t,targetUrl:a}):(0,n.jsx)(u,{credential:{target_url:a},liffId:e,redirectUrl:t,requestUrl:r}),(0,n.jsx)(i.N,{children:(0,n.jsx)(o.P.div,{animate:{opacity:1},className:g.wrapper,exit:{opacity:0},children:(0,n.jsx)(i.N,{exitBeforeEnter:!0,children:(0,n.jsx)(o.P.div,{animate:"animate",exit:"exit",initial:"initial",variants:h,children:(0,n.jsx)(w,{})},"line")})})})]})},44244(e,t,r){r.d(t,{y:()=>n});const n=e=>new Promise((t=>setTimeout(t,e)))},56238(e,t,r){r.d(t,{x:()=>c});var n=r(74356),i=r(96540),o=r(39789),a=r(99830),s=r(83102);function c(e){const[t,r]=(0,i.useState)(!1),[c,l]=(0,i.useState)(!1),[d,u]=(0,i.useState)(!1),[f,g]=(0,i.useState)(!1),[h,m]=(0,i.useState)(null),p=(0,i.useRef)(!1);(0,i.useEffect)((()=>{try{(0,s.f)(e)}catch(e){o.u?.notify({error:e,context:{severity:o.z.notice}})}(async()=>{await(async()=>{p.current||(p.current=!0,g(n.M.isInClient()),await n.M.init({liffId:e}).then((()=>{u(n.M.isLoggedIn()),l(!0)})).catch((e=>{o.u?.notify({error:(0,a.m)(e),context:{severity:o.z.notice}}),r(!0)})))})(),await(async()=>{if(n.M.isLoggedIn())try{const e=await n.M.getProfile(),t=n.M.getDecodedIDToken();m({...e,email:t?.email,phoneNumber:t?.phone_number})}catch{}})()})()}),[e]);const x=(0,i.useCallback)((e=>{c&&!d&&n.M.login({redirectUri:e})}),[c,d]),w=(0,i.useCallback)((()=>{c&&d&&n.M.logout()}),[c,d]),y=(0,i.useCallback)((e=>{c&&(n.M.logout(),n.M.login({redirectUri:e}))}),[c]),k=(0,i.useCallback)((({url:e,external:t=!1})=>{f&&n.M.openWindow({url:e,external:t})}),[f]),I=(0,i.useCallback)((()=>{f&&n.M.closeWindow()}),[f]),b=(0,i.useCallback)((()=>c&&d?n.M.getIDToken():null),[c,d]),_=(0,i.useCallback)((async()=>{if(!c)throw new Error("LIFFが初期化されていません");if(!d)throw new Error("ログインが必要です");return await n.M.getFriendship().catch((e=>{const t=(0,a.m)(e);if(o.u?.notify({error:t,context:{severity:o.z.notice}}),t.name===a.n.authorization)throw t;return{friendFlag:void 0}}))}),[c,d]);return{liff:n.M,isError:t,isInitialized:c,isLoggedIn:d,isInClient:f,profile:h,login:x,logout:w,reauthorize:y,openWindow:k,closeWindow:I,getIDToken:b,getFriendship:_}}},83102(e,t,r){r.d(t,{f:()=>n});const n=e=>{const t=`LIFF_STORE:${e}:`,r=`${t}decodedIDToken`,n=localStorage?localStorage.getItem(r):null;if(null===n)return;const i=JSON.parse(n);if((new Date).getTime()>1e3*i.exp){(e=>{const t=[];for(let r=0;r<localStorage.length;r++){const n=localStorage.key(r);0===n?.indexOf(e)&&t.push(n)}return t})(t).forEach((function(e){localStorage.removeItem(e)}))}}},99830(e,t,r){r.d(t,{m:()=>a,n:()=>n});const n={network:"LiffNetworkError",authorization:"LiffAuthorizationError",init:"LiffInitError"},i=[{code:"invalid_request",message:/The access token revoked/},{code:"UNAUTHORIZED",message:/Need access_token for api call/}],o=(e,t)=>{const r=new Error(t);return r.name=e,r},a=e=>{const t=`code: ${e.code}, message: ${e.message}`;return(e=>void 0===e.code&&e instanceof TypeError)(e)?o(n.network,`ネットワークエラーが発生しました。${t}`):(e=>i.some((({code:t,message:r})=>t===e.code&&r.test(e.message??""))))(e)?o(n.authorization,`権限エラーが発生しました。${t}`):o(n.init,`liff.initに失敗しました。${t}`)}}}]);
2//# sourceMappingURL=chunk.3453.a7990b8e61ffbc1a2f6b.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.