(this.webpackJsonpapp=this.webpackJsonpapp||[]).push([[13],{139:function(e,t,n){},140:function(e,t,n){},141:function(e,t,n){},142:function(e,t,n){},146:function(e,t,n){"use strict";n.r(t);var a=n(0),o=n.n(a),s=n(12),r=n.n(s),i=(n(77),n(7)),c=n(9),l=n(18),d=n(35),u=n(29),p=n(23),g=n(39),h=n(24),m=n(17),f=n(28),_=n(21),x=n(3),b=n.n(x),y=n(16),v=n(5),w=n(33),j=n(22);const O={textsetList:{data:[]}},k=()=>async e=>{try{const t=await Object(j.g)();if(!t.valid)return console.error(t.msg),void e({type:"SET_TEXTSET",payload:{data:[]}});const n=[];for(let e=0;e+e));let i;for(let e=0;et.text_idx===+a[e])),i&&(o+=i.text_level_changed,s++);let c="\ubcf5\ud569";1===r.length&&(c=i.text_domain);const l=+(o/(s||1)).toFixed(1);let d="";d=l<7?"\ubbf8\ucde8\ud559":l<9?"\ucd08\ub4f1 1 ~ 2":l<11?"\ucd08\ub4f1 3 ~ 4":l<13?"\ucd08\ub4f1 5 ~ 6":l<15?"\uc911\ub4f1 1 ~ 2":l<17?"\uc911\ub4f1 3 ~ \uace0\ub4f1 1":"\uace02 \uc774\uc0c1",n.push({...t.results[0][e],avgLevel:l,levelText:d,text_idx_arr:r,domain:c})}n.sort(((e,t)=>e.avgLevel-t.avgLevel)),e({type:"SET_TEXTSET",payload:{data:n}})}catch(t){console.error(t),alert("refreshTextsetList Error")}};var S=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:O,t=arguments.length>1?arguments[1]:void 0;const{type:n,payload:a}=t;switch(n){case"LOGOUT":return console.log("\ub85c\uadf8\uc544\uc6c3 TextSetList"),{textsetList:{data:[]}};case"SET_TEXTSET":return{...e,textsetList:{data:a.data}};default:return e}};function E(e){return new Promise(((t,n)=>{const a=new Image;a.onload=function(){t(a)},a.onerror=a.onabort=function(){n(e)},a.src=e}))}var D,P,Y=e=>{const[t,n]=Object(a.useState)(!1);return Object(a.useEffect)((()=>{if(!e||0===e.length)return;let t=!1;return async function(){if(t)return;const a=[];for(const t of e)a.push(E(t));await Promise.all(a),t||n(!0)}(),()=>{t=!0}}),[e]),{imagesPreloaded:t}};n(139);function C(){return C=Object.assign?Object.assign.bind():function(e){for(var t=1;tObject(X.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"60",height:"60",viewBox:"0 0 24 24",children:Object(X.jsx)("path",{d:"M15.41,16.58,10.83,12l4.58-4.58L14,6l-6,6,6,6Z"})});var K=()=>Object(X.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"60",height:"60",viewBox:"0 0 24 24",children:Object(X.jsx)("path",{d:"M10,6L8.59,7.41,13.17,12l-4.58,4.59L10,18l6-6Z"})});const Q=e=>{let{imagesPreloaded:t,src:n}=e;return t?Object(X.jsx)("img",{src:n,alt:"img"}):Object(X.jsx)("div",{style:{height:100},children:Object(X.jsx)(Z.a,{})})};var ee=e=>{const{onClickLikeOrUnlike:t,imagesPreloaded:n,onModalClose:a,tipData:o,currTip:s,filteredDomainList:r,settingCurrTip:i}=e;return Object(X.jsx)("div",{id:"tipModalWrapper",children:Object(X.jsxs)("div",{className:"tipModal",children:[Object(X.jsxs)("div",{className:"__content",children:[Object(X.jsxs)("div",{className:"__image",children:[Object(X.jsx)(Q,{imagesPreloaded:n,src:o[s.domain].data[s.no].tip_img_s3url}),Object(X.jsx)("button",{className:"__close",onClick:a,children:Object(X.jsx)("i",{className:"fa fa-times","aria-hidden":"true"})})]}),Object(X.jsxs)("div",{className:"__texture",children:[Object(X.jsxs)("div",{className:"texture__title",children:[Object(X.jsx)("div",{className:"title__text",children:o[s.domain].data[s.no].tip_title}),Object(X.jsxs)("div",{className:"title__detail",children:[Object(X.jsx)("div",{onClick:()=>t("like"),style:{cursor:"pointer"},children:1===s.likeState?Object(X.jsx)(A,{style:{width:30,height:30,fill:"#145894"}}):Object(X.jsx)(T,{style:{width:30,height:30}})}),Object(X.jsx)("div",{onClick:()=>t("unlike"),style:{cursor:"pointer"},children:2===s.likeState?Object(X.jsx)(V,{style:{width:30,height:30,fill:"#dc3545"}}):Object(X.jsx)(W,{style:{width:30,height:30}})}),o[s.domain].data[s.no].tip_link&&Object(X.jsx)("div",{children:Object(X.jsx)("button",{className:"btn btn-link",onClick:()=>{const e=document.createElement("a");e.target="_blank",e.href=o[s.domain].data[s.no].tip_link,e.rel="noreferrer",e.click()},children:"\uc790\uc138\ud788"})})]})]}),Object(X.jsx)("div",{className:"texture__text",children:o[s.domain].data[s.no].tip_text.split("\n").map(((e,t)=>Object(X.jsx)("div",{dangerouslySetInnerHTML:{__html:e}},"tip_".concat(t))))})]})]}),Object(X.jsxs)("div",{className:"texture__btns",children:[Object(X.jsx)("div",{children:Object(X.jsx)("button",{disabled:0===s.no,onClick:()=>{i({type:"prev"})},children:Object(X.jsx)($,{})})}),Object(X.jsx)("div",{children:Object(X.jsxs)("select",{className:"domainSelector",value:s.domain,onChange:e=>{e.target.value!==s.domain&&i({domain:e.target.value,no:0})},children:[Object(X.jsx)("option",{value:s.domain,children:"".concat(s.domain,"(").concat(s.no+1,"/").concat(o[s.domain].max,")")}),r.filter((e=>e!==s.domain)).map(((e,t)=>Object(X.jsx)("option",{value:e,children:e},"opt_".concat(t+1))))]})}),Object(X.jsx)("div",{children:Object(X.jsx)("button",{disabled:o[s.domain].max===s.no+1,onClick:()=>{i({type:"next"})},children:Object(X.jsx)(K,{})})})]})]})})},te=n(34);b.a.tz.setDefault("Asia/Seoul");const ne=e=>{const{setShowTipModal:t,userinform:n}=e,o=Object(c.c)(),{tipData:s,domainList:r}=Object(c.d)((e=>e.tip)),i=Object(a.useRef)({like:[],unlike:[]}),[l,d]=Object(a.useState)(null),u=Object(a.useMemo)((()=>{if(!s||!l)return[];const{domain:e,no:t}=l,{max:n,data:a}=s[e],o=[];return o.push(a[t].tip_img_s3url),t-1>=0&&o.push(a[t-1].tip_img_s3url),t+1()=>{const e=(null===i||void 0===i?void 0:i.current)||[];0===e.like.length&&0===e.unlike.length||Object(te.c)(e).catch((e=>{console.error("Error updating likes and unlikes:",e)}))}),[]),Object(a.useEffect)((()=>{s||o((e=>new Promise((async t=>{try{const n=await Object(te.b)();if(n.valid){const a=0===n.results.length,o=n.results.map((e=>e.tip_domain)),s=[...new Set(o)].sort(),r=function(e){const t={};for(const n of e){const e=n.tip_domain;t[e]?(t[e].max++,t[e].data.push(n)):t[e]={max:1,data:[n]}}return t}(n.results);e({type:"SET_TIP",isAllDeactive:a,tips:r,domain:s}),t({valid:!0,isAllDeactive:a,tips:r,domain:s})}else console.log("res",n),t({valid:!1,msg:n.msg,err:n.err})}catch(n){console.log("err",n),t({valid:!1,err:n})}})))).then((e=>{e.valid&&e.isAllDeactive&&t(!1)}))}),[s,o,t]),Object(a.useEffect)((()=>{function e(e,t){return e.filter((e=>e!==t))}l&&(i.current=function(t,n){const a={...t},{likeState:o,idx:s}=n;return a.like=e(a.like,s),a.unlike=e(a.unlike,s),1===o?(a.like=[...a.like,s],a.unlike=e(a.unlike,s)):2===o&&(a.like=e(a.like,s),a.unlike=[...a.unlike,s]),a}(i.current,l))}),[l]);const g=Object(a.useCallback)((e=>{if(!s)return;const{domain:t,no:n,type:a,likeState:o}=e;d((e=>{const r={...e};t&&(r.domain=t),"number"===typeof n&&(r.no=n),"prev"===a?r.no=r.no-1<=0?0:r.no-1:"next"===a&&(r.no=r.no+1>=s[r.domain].max?s[r.domain].max-1:r.no+1);const c=s[r.domain].data[r.no].tip_idx;return"number"===typeof o?r.likeState=o:i.current.like.includes(c)?r.likeState=1:i.current.unlike.includes(c)?r.likeState=2:r.likeState=0,r.idx=c,r}))}),[s]);Object(a.useEffect)((()=>{if(!r||!s||0===Object.keys(s).length)return;const e=Math.floor(Math.random()*r.length),t=r[e],n=Math.floor(Math.random()*s[t].max);g({domain:t,no:n})}),[r,s,g]);const h=Object(a.useCallback)((()=>{const e=b()().format("YYYY-MM-DD");localStorage.setItem("tips",JSON.stringify({aid:n.agency_idx,ls:e})),t(!1)}),[t,n]),m=Object(a.useCallback)((e=>{const t={likeState:0};"like"===e?1===l.likeState||(t.likeState=1):2===l.likeState||(t.likeState=2),g(t)}),[l,g]);return s&&0!==Object.keys(s).length&&l&&0!==r.length?Object(X.jsx)(_.a,{children:Object(X.jsx)(ee,{...e,onModalClose:h,imagesPreloaded:p,filteredDomainList:r,tipData:s,currTip:l,settingCurrTip:g,onClickLikeOrUnlike:m})}):Object(X.jsx)(X.Fragment,{})};var ae=Object(a.memo)(ne);n(72),n(141),n(142);var oe=function(e,t,n){const[o,s]=Object(a.useState)(),r=Object(c.c)();return Object(a.useEffect)((()=>{const t=localStorage.getItem("d_lang");t?s(t):(localStorage.setItem("d_lang",e),s(e))}),[e]),Object(a.useEffect)((()=>{o&&n&&(localStorage.setItem("d_lang",o),"testee"!==n&&Object(m.C)(o).then((e=>{e.valid,r(Object(y.c)())})))}),[o,t,r,n]),[o,s]},se=n(30);b.a.tz.setDefault("Asia/Seoul"),d.a.initialize("UA-175658309-2",{debug:!1,titleCase:!1,gaOptions:{userId:"bnrsurvey"}});const re=Object(v.a)((()=>n.e(56).then(n.bind(null,649))));re.preload();const ie=Object(a.lazy)((()=>n.e(41).then(n.bind(null,650)))),ce=Object(a.lazy)((()=>n.e(52).then(n.bind(null,651)))),le=Object(a.lazy)((()=>n.e(45).then(n.bind(null,652)))),de=Object(a.lazy)((()=>n.e(36).then(n.bind(null,672)))),ue=Object(a.lazy)((()=>n.e(44).then(n.bind(null,653)))),pe=Object(a.lazy)((()=>n.e(38).then(n.bind(null,654)))),ge=Object(a.lazy)((()=>Promise.all([n.e(4),n.e(49)]).then(n.bind(null,673)))),he=Object(a.lazy)((()=>Promise.all([n.e(4),n.e(3),n.e(55)]).then(n.bind(null,669)))),me="4.7.8",fe=()=>Object(X.jsxs)(u.f,{className:"UpdateModal",style:{width:"380px",maxWidth:"90vw",maxHeight:"90vh"},children:[Object(X.jsx)("div",{className:"title",children:"\uc5c5\ub370\uc774\ud2b8"}),Object(X.jsx)("div",{className:"contents",children:Object(X.jsx)("button",{className:"btn",onClick:()=>{window.location.reload(!0)},children:"\uc5c5\ub370\uc774\ud2b8 \uc2dc\uc791"})}),Object(X.jsxs)("div",{className:"flexcc",style:{fontSize:"0.9em",textAlign:"center",marginBottom:8},children:["\uc774 \ucc3d\uc774 \ubc18\ubcf5\ub418\uc11c \ub098\uc62c \uacbd\uc6b0",Object(X.jsx)("br",{}),"Ctrl + Shift + R\uc744 \ub20c\ub7ec \uac15\ub825 \uc0c8\ub85c\uace0\uce68\uc744 \ud574\uc8fc\uc138\uc694."]})]});var _e=Object(l.c)(i.h,Object(c.b)((e=>e),{set_userinform:p.b,set_subscriptioninform:g.b,del_subscriptioninform:g.a,logout:p.a}))((function(e){let{history:t,...n}=e;const{logout:s}=n,r=Object(c.c)(),l=Object(f.c)();n.alert=l;const u=n.subscriptioninform,g=n.set_subscriptioninform,x=n.del_subscriptioninform,j=n.userinform,{user_type:O,tip_display_cycle:S}=j,[E,D]=o.a.useState(0),[P,Y]=o.a.useState(!1),[C,L]=o.a.useState(!1);n.set_loading=L;const[T,M]=o.a.useState("start");n.set_popupList=M;const[I,N]=o.a.useState(null);n.orginform=I,n.set_orginform=N;const[R,A]=o.a.useState(!1);n.smtech=R,o.a.useEffect((()=>{var e,t;"https://app.readersdoctor.com"===(null===(e=window)||void 0===e||null===(t=e.location)||void 0===t?void 0:t.origin)?A(!0):A(!1)}),[]);const H=Object(a.useCallback)((()=>new Promise((function(e){Object(m.v)().then((n=>{if(I)if(j.agency_mainorgidx){if(M&&M("start"),j.agency_mainorgidx){let n=!1,a=null;for(let e=0;e{n?(t.push("/customlogin?token=".concat(a)),e(!0)):(t.push("/login"),e(!0))}))}}else s().then((n=>{t.push("/login"),e(!0)}));else s().then((n=>{t.push("/login"),e(!0)}))}))}))),[t,s,I,j]);window.customlogout=H;const[F,z]=oe("\ud55c\uad6d\uc5b4",s,O);n.language=F,n.set_language=z,o.a.useEffect((()=>{"agency"===O&&r(Object(w.b)())}),[O,r]),o.a.useEffect((()=>{O&&"testee"!==O&&r(k())}),[O,r]),o.a.useEffect((()=>{"agency"===O||"subagency"===O?(r(Object(y.b)()),V("0px")):"testee"===O&&V("260px")}),[O,r]);const B=o.a.useCallback((()=>{Object(m.g)().then((function(e){e.valid?g(e.body):(x().then((e=>{g(e.body)})),e.redirect||j&&"agency"!==j.user_type&&s())}))}),[j,s,g,x]);n.refreshSubscriptionInform=B;const W=o.a.useMemo((()=>{if(I&&j){return I.find((e=>e.organization_idx===j.agency_mainorgidx))||null}}),[I,j]);n.myActiveOrg=W,o.a.useEffect((()=>{"start"===T&&j.agency_ID&&void 0!==W&&(M("ing"),Object(m.q)(W).then((function(e){!0===e.valid?M(e.body):M("fail")})))}),[T,j,W]),o.a.useEffect((()=>{(async e=>new Promise((function(t){const n=e=>new Promise((function(t,n){const a=new Image;a.src=e,a.onload=t(),a.onerror=n()}));let a=[];for(let o in e)a[a.length]=n(e[o]);Promise.all(a).then((function(){t()}))})))({backgroundImg:"/images/background.jpg",logoimg:"/images/logo_readerseye.png",loginleftimg:"/images/readerseye_login.png",errorimg:"/images/errorimg.png",settingimg:"/images/setting_img.png"}).then((function(){Y(!0)}))}),[]),o.a.useEffect((()=>{t.listen((e=>{d.a.set({page:e.pathname}),d.a.pageview(e.pathname)}))}),[t]),o.a.useEffect((()=>{if(n.userinform.agency_logo_buffer_data&&n.userinform.agency_logo_extension_check&&!n.userinform.agencyLogoURL){let t=new Blob([new Uint8Array(n.userinform.agency_logo_buffer_data.data,{type:"image/"+n.userinform.agency_logo_extension_check})]),a=window.URL.createObjectURL(t);var e=new FileReader;e.readAsDataURL(t),e.onloadend=function(){var t=e.result;n.set_userinform({AgencyLogoBase64:t})},n.set_userinform({agencyLogoURL:a})}}),[n]);const[U,G]=o.a.useState(!1),q=o.a.useRef(!1);o.a.useEffect((()=>{const e=Object.keys(j).length,t=Object.keys(u).length;e>0&&0===t&&!q.current&&(q.current=!0,Object(m.g)().then((function(e){e.valid&&g(e.body)})).finally((()=>{q.current=!1})))}),[j,g,u]),o.a.useEffect((()=>{n.userinform.sessionID||0!==E||(D(1),Object(m.O)().then((e=>{e&&e.VERSION===me?Object(m.I)().then((async function(e){if(D(2),!0===e.valid){delete e.valid,delete e.msg;try{let t=localStorage.getItem("logo");t&&(t=JSON.parse(t),t.agency_ID===e.agency_ID&&(e.agency_logo_buffer_data=t.agency_logo_buffer_data,e.agency_logo_extension_check=t.agency_logo_extension_check))}catch(t){console.error(t)}const a=e.orginform||[];let o=null;for(let t=0;t{const e=()=>{window.innerWidth<600?$(!0):$(!1)};return e(),window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}}),[]);const K=o.a.useMemo((()=>{if(!j)return{plan:!0,org:!0,faq:!0,board:!0,screening:!0,pathway:!0,kiosk:!0,quiz:!0,tip:!0};const e=j.agency_mainorgidx;let t=!1,n=!1,a=!1,o=!1,s=!1,r=!1,i=!1,c=!0,l=!1;if(e&&I&&I.length>0){let d=b()().format("YYYY-MM-DD HH:mm:ss");for(let u=0;u{if(Q||!O||"testee"===O)return;if(!j)return;if(!K)return;if(ee(!0),K.tip)return;const e=localStorage.getItem("tips");let t=!1;if(e){const n=JSON.parse(e)||{};if(!n.aid||!n.ls)return localStorage.removeItem("tips"),void ne(!0);const{agency_idx:a}=j;if(n.aid!==a)return localStorage.removeItem("tips"),void ne(!0);const o=b()(),s=b()(n.ls);0===S?t=o.format("YYYY-MM-DD")!==s.format("YYYY-MM-DD"):1===S?t=o.isoWeek()!==s.isoWeek():2===S&&(t=o.month()!==s.month())}e&&!t||ne(!0)}),[Q,O,j,S,K]);const{testeeList:_e}=Object(c.d)((e=>e.testee)),[xe,be]=Object(a.useState)(!1);Object(a.useEffect)((()=>{var e,t;const n=JSON.parse(localStorage.getItem("srr"));j&&_e&&!_e.loading&&_e.data&&1===_e.data.length?n&&n.includes(j.agency_idx)?be(!1):be("sample"===(null===(e=_e.data)||void 0===e||null===(t=e[0])||void 0===t?void 0:t.user_ID)||!1):be(!1)}),[_e,j]),n.isRRBlink=xe,n.setIsRRBlink=be;const[ye,ve]=o.a.useState(!1);return o.a.useEffect((()=>{!ye&&O&&"agency"===O&&(ve(!0),B())}),[B,O,ye]),!n.userinform.agency_ID&&2!==E||!1===P?Object(X.jsxs)(X.Fragment,{children:[Object(X.jsx)("div",{className:"App",style:{backgroundColor:"rgb(230,230,240)"},children:Object(X.jsx)(le,{})}),U&&Object(X.jsx)(_.a,{children:Object(X.jsx)(fe,{})})]}):n.userinform.agency_ID?Object(X.jsxs)(X.Fragment,{children:[Object(X.jsxs)("div",{className:"App",style:{backgroundColor:"rgb(230,230,240)"},children:[Object(X.jsx)(i.c,{history:t,children:Object(X.jsxs)(i.d,{children:["/"!==n.location.pathname&&/\/$/.test(n.location.pathname)&&Object(X.jsx)(i.a,{to:n.location.pathname.slice(0,-1)}),Object(X.jsx)(i.b,{path:["/login","/signup","/verification","/customlogin"],render:e=>Object(X.jsx)(i.a,{to:"/"})}),Object(X.jsx)(i.b,{exact:!0,path:["/reading","/training","/screening","/pathway","/pathwaymanage","/board","/board/:id","/testeeboard","/testeeboard/:id","/notice","/notice/:id","/subagency","/text","/subscribe","/setting","/setting/:id","/","/dashboard","/users","/usermanage","/usermanage/:tabname","/test"],render:e=>Object(X.jsxs)("div",{id:"AAAA",className:"AAAA",style:{display:"flex",width:"100%",height:"100%",backgroundColor:"rgb(230,230,240)"},children:[Object(X.jsx)(ge,{orginform:I,leftBarSize:!1===Z?J:"0px",set_leftBarSize:V,history:t,...n}),Object(X.jsx)(he,{VERSION:me,isSmallWidth:Z,leftBarSize:J,set_leftBarSize:V,history:t,...n,orghideoptions:K}),Object(X.jsx)("div",{style:{width:J,display:!1===Z?"block":"none",height:"100%"}}),Object(X.jsxs)("div",{className:"RightPage",style:{width:!1===Z?"calc(100% - "+J+")":"100%",height:"100%",position:"relative"},children:[Object(X.jsx)("div",{style:{width:"100%",height:"80px"}}),Object(X.jsx)("div",{id:"pageWrapper",style:{width:"100%"},children:Object(X.jsx)(re,{...n,history:t})}),Object(X.jsx)("div",{className:"footer",id:"footer",style:{width:"100%",height:"80px",backgroundColor:"rgb(230,230,240)",textAlign:"center",boxSizing:"border-box",paddingLeft:"15px",fontSize:"14px",display:"block"},children:(()=>{if(n.userinform&&n.userinform.agency_mainorgidx&&I&&I.length>0){let e,t=!1,a=b()().format("YYYY-MM-DD HH:mm:ss");for(let o=0;oObject(X.jsx)("div",{children:e},"footer-".concat(t))))})})}}return Object(X.jsxs)(X.Fragment,{children:[Object(X.jsxs)("div",{children:["\uc8fc\uc2dd\ud68c\uc0ac \ub9ac\ub354\uc2a4\uc544\uc774\ub7a9",Object(X.jsx)("span",{className:"blank",children:"\xa0|\xa0"}),"\uc11c\uc6b8\uc2dc \uac15\ub3d9\uad6c \uc591\uc7ac\ub300\ub85c 1457 \ubd80\uc5d0\ub178\ube4c\ub529 513\ud638",Object(X.jsx)("span",{className:"blank",children:"\xa0|\xa0"}),"\uc0ac\uc5c5\uc790\ub4f1\ub85d\ubc88\ud638 : 192-81-03061",Object(X.jsx)("span",{className:"blank",children:"\xa0|\xa0"}),"\ud1b5\uc2e0\ud310\ub9e4\uc5c5\uc2e0\uace0\ubc88\ud638 : 2023-\uc11c\uc6b8\uac15\ub3d9-2191"]}),Object(X.jsxs)("div",{children:["\ub300\ud45c : \ub958\uae30\uc815, \ubc15\uc815\ubbfc",Object(X.jsx)("span",{className:"blank",children:"\xa0|\xa0"}),"Tel: 02-571-9260",Object(X.jsx)("span",{className:"blank",children:"\xa0|\xa0"}),"Mail: rei@readerseye.com"]}),Object(X.jsxs)("div",{children:[Object(X.jsx)("span",{className:"alink",onClick:()=>window.open("https://docs.readerseye.com/","_blank"),children:"\uc628\ub77c\uc778 \uc124\uba85\uc11c"}),Object(X.jsx)("span",{className:"blank",children:"\xa0|\xa0"}),Object(X.jsx)("span",{className:"alink",onClick:()=>window.open("https://docs.readerseye.com/terms","_blank"),children:"\uc774\uc6a9\uc57d\uad00"}),Object(X.jsx)("span",{className:"blank",children:"\xa0|\xa0"}),Object(X.jsx)("span",{className:"alink",onClick:()=>window.open("https://docs.readerseye.com/per","_blank"),children:"\uac1c\uc778\uc815\ubcf4\ucde8\uae09\ubc29\uce68"}),Object(X.jsx)("span",{className:"blank",children:"\xa0|\xa0"}),Object(X.jsx)("span",{className:"alink",onClick:()=>window.open("https://docs.readerseye.com/policy","_blank"),children:"\ubc30\uc1a1, \uad50\ud658 \ubc0f \ud658\ubd88 \uc815\ucc45"}),Object(X.jsx)("span",{className:"blank",children:"\xa0|\xa0"}),Object(X.jsx)("span",{className:"alink",onClick:()=>window.open("https://www.ftc.go.kr/bizCommPop.do?wrkr_no=1928103061","bizCommPop","width=750, height=700;"),children:"\uc0ac\uc5c5\uc790\uc815\ubcf4\ud655\uc778"}),Object(X.jsxs)("span",{style:{fontSize:"12px",color:"midnightblue"},children:["\xa0Version : ","4.7.8"]})]})]})})()})]})]})}),Object(X.jsx)(i.b,{render:e=>Object(X.jsx)(ce,{...e})})]})}),!0===C&&Object(X.jsx)("div",{id:"loadingWrapper",style:{position:"fixed",display:"flex",justifyContent:"center",alignItems:"center",width:"100%",height:"100%",backgroundColor:"rgba(0,0,0,0.7)",top:0,left:0,zIndex:"20000"},children:Object(X.jsx)(h.Ring,{color:"#145894"})}),!K.faq&&"start"!==T&&Array.isArray(T)&&T.map(((e,a)=>{let o=!0,s=b()().tz("Asia/Seoul").format("YYYY-MM-DD HH:mm:ss");if(!T[a].notice_popup_active)return null;let r=localStorage.getItem("popupData");if(r){r=JSON.parse(r);for(let e=0;e=T[a].notice_popup_start_date_time&&s<=T[a].notice_popup_end_date_time||(o=!1);let i="agency"===n.userinform.user_type||"subagency"===n.userinform.user_type;if(1!==T[a].notice_showexcept_testee||i||(o=!1),T[a].organization_idx&&K&&K.org&&(o=!1),!o)return null;let c=T[a].notice_popup_image_size.width,d=T[a].notice_popup_image_size.height;return Object(X.jsxs)("div",{className:"onePOPUP no-drag",style:{position:"fixed",top:"50%",left:"50%",boxShadow:"0px 4px 25px 0px rgb(0 0 0 / 30%)",transform:"translate(-50%,-50%)",maxWidth:"min(80vw ,".concat(c,"px)"),maxHeight:"min(calc(80vh + 30px) , calc(".concat(d,"px + 30px) )"),zIndex:"9999",background:"rgba(81,72,168,0.3)",boxSizing:"border-box"},children:[Object(X.jsx)("div",{style:{boxSizing:"border-box",maxWidth:"min(80vw ,".concat(c,"px)"),maxHeight:"min(80vh,".concat(d,"px)"),display:"flex",justifyContent:"center",alignItems:"center"},children:Object(X.jsx)("img",{alt:"",src:e.notice_popup_image_URL+"?timestamp=".concat((new Date).getTime()),style:{maxWidth:"min(80vw ,".concat(c,"px)"),maxHeight:"min(80vh,".concat(d,"px)"),cursor:"pointer",objectFit:"contain"},onClick:()=>{"agency"===n.userinform.user_type?T[a].organization_idx?t.push("/usermanage/org?ai=1¬ice_idx="+T[a].notice_idx):t.push("/usermanage/faq?ai=1¬ice_idx="+T[a].notice_idx):"testee"===n.userinform.user_type&&t.push("/notice/"+T[a].notice_idx),T[a].notice_popup_active=!1,M(JSON.parse(JSON.stringify(T)))}})}),Object(X.jsxs)("div",{style:{height:"30px",backgroundColor:"gray",background:"linear-gradient(118deg,#145894,rgb(81,72,168))",position:"relative",boxSizing:"border-box",color:"white",display:"flex"},children:[1===T[a].notice_popup_7days?Object(X.jsxs)("label",{className:"checkbox2 bounce",style:{display:"flex",width:"calc(100% - 30px)",height:"100%",paddingLeft:"5px",boxSizing:"border-box"},children:[Object(X.jsx)("input",{type:"checkbox",style:{minWidth:"21px"},checked:!!T[a].checked,onChange:e=>{T[a].checked?T[a].checked=!1:T[a].checked=!0,M(JSON.parse(JSON.stringify(T)))}}),Object(X.jsx)("svg",{viewBox:"0 0 21 21",children:Object(X.jsx)("polyline",{points:"5 10.75 8.5 14.25 16 6"})}),Object(X.jsx)("div",{style:{width:"calc(100% - 30px)",overflow:"hidden",height:"30px",textOverflow:"ellipsis",whiteSpace:"nowrap",textAlign:"left",lineHeight:"30px"},children:"\xa0\xa0\uc77c\uc8fc\uc77c\ub3d9\uc548 \uc5f4\uc9c0\uc54a\uae30"})]}):null,Object(X.jsx)("button",{className:"btn-close-popup",style:{width:"30px",height:"100%",display:"flex",justifyContent:"center",alignItems:"center"},onClick:()=>{if(T&&T.length){if(T[a].checked){let e=!1;for(let t=0;tObject(X.jsx)(i.a,{to:"/login"})}),Object(X.jsx)(i.b,{exact:!0,path:"/login",render:e=>Object(X.jsx)(ie,{history:t,set_userinform:p.b,...n})}),Object(X.jsx)(i.b,{exact:!0,path:"/signup",render:e=>Object(X.jsx)(de,{history:t,...n})}),Object(X.jsx)(i.b,{path:["/verification"],render:e=>Object(X.jsx)(ue,{history:t,set_userinform:p.b,...n})}),Object(X.jsx)(i.b,{path:["/customlogin"],render:e=>Object(X.jsx)(pe,{history:t,set_userinform:p.b,...n})}),Object(X.jsx)(i.b,{render:e=>Object(X.jsx)(ce,{history:t,...n})})]})}),!0===C&&Object(X.jsx)("div",{id:"loadingWrapper",style:{position:"fixed",display:"flex",justifyContent:"center",alignItems:"center",width:"100%",height:"100%",backgroundColor:"rgba(0,0,0,0.7)",top:0,left:0,zIndex:"20000"},children:Object(X.jsx)(h.Ring,{color:"#145894"})})]}),U&&Object(X.jsx)(_.a,{children:Object(X.jsx)(fe,{})})]})}));var xe=e=>{e&&e instanceof Function&&n.e(57).then(n.bind(null,655)).then((t=>{let{getCLS:n,getFID:a,getFCP:o,getLCP:s,getTTFB:r}=t;n(e),a(e),o(e),s(e),r(e)}))},be=n(38),ye=n(61),ve=n(67),we=n.n(ve),je=n(68);const Oe={};const ke={};const Se={isAllDeactive:!1,tipData:null,domainList:null};var Ee=Object(l.b)({userinform:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Oe,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"LOGOUT":return console.log("\ub85c\uadf8\uc544\uc6c3userinform"),e={},e;case"SET_USERINFORM":let n={...e};for(let e in t.inform)n[e]=t.inform[e];return n;default:return e}},subscriptioninform:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ke,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"LOGOUT":return console.log("\ub85c\uadf8\uc544\uc6c3 subscription"),e={},e;case"SET_SUBSCRIPTIONINFORM":let n={...e};for(let e in t.inform)n[e]=t.inform[e];return n;case"DEL_SUBSCRIPTIONINFORM":return e={},e;default:return e}},testee:y.a,subagency:w.a,textset:S,tip:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Se,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"LOGOUT":return console.log("\ub85c\uadf8\uc544\uc6c3 tips"),e={tipData:null,domainList:null},e;case"SET_TIP":return{...e,isAllDeactive:t.isAllDeactive,tipData:{...t.tips},domainList:[...t.domain]};default:return e}}});const De=[je.a,we()()],Pe=window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__||l.c,Ye=Object(l.d)(Ee,{},Pe(Object(l.a)(...De)));var Ce=n(69),Le=n.n(Ce),Te=n(70),Me=n.n(Te),Ie=n(62);const Ne={timeout:2e3,position:f.b.TOP_CENTER,containerStyle:{zIndex:2e3}},Re=Me()(Le.a);let Ae=!1;const He=Re.mixin({didOpen:()=>{Ae=document.body.style.overflow,document.body.style.overflow="hidden",window.parent.postMessage({type:"MODAL_OPEN"},"*")},didDestroy:()=>{"unset"===Ae&&(document.body.style.overflow="unset");window.parent.postMessage({type:"MODAL_CLOSE"},"*")}});r.a.render(Object(X.jsx)(be.a,{children:Object(X.jsx)(a.Suspense,{fallback:Object(X.jsx)("div",{className:"App",style:{backgroundColor:"rgb(230,230,240)",display:"flex",justifyContent:"center",alignItems:"center",width:"100%",height:"100%",minHeight:"100vh"},children:Object(X.jsx)(h.Ring,{color:"#145894"})}),children:Object(X.jsx)(c.a,{store:Ye,children:Object(X.jsx)(f.a,{template:u.a,...Ne,children:Object(X.jsxs)(ye.a,{children:[" ",Object(X.jsx)(Ie.a,{children:Object(X.jsx)(_e,{Swal:He})})]})})})})}),document.getElementById("root")),xe()},16:function(e,t,n){"use strict";n.d(t,"c",(function(){return S})),n.d(t,"d",(function(){return E})),n.d(t,"b",(function(){return D}));var a=n(26),o=n(66),s=n.n(o),r=n(3),i=n.n(r);const c=[{showindex:1,name:"\ubc88\uac1c\uac19\uc740 \ud1a0\ub07c",reading_speed:1.8273,fixation_ratio:.3484,right_saccade_ratio:-1.2267,read_line_ratio:-1.1955,m_task_duration:-.6857,m_task_correct_ratio:.0755,focus_score:5e-4,diff:null},{showindex:2,name:"\ub290\ub9bf\ub290\ub9bf \uac70\ubd81\uc774",reading_speed:-.7849,fixation_ratio:-.2933,right_saccade_ratio:.5308,read_line_ratio:.2087,m_task_duration:2.8746,m_task_correct_ratio:-.3368,focus_score:-.5394,diff:null},{showindex:3,name:"\ubc14\ub78c\uc9c1\ud55c \ub3c5\uc11c\uac00",reading_speed:-.0768,fixation_ratio:.386,right_saccade_ratio:.371,read_line_ratio:.4182,m_task_duration:-.284,m_task_correct_ratio:.6295,focus_score:.1625,diff:null},{showindex:4,name:"\uae30\uacc4\uc801\uc778 \ubc18\ubcf5\uc790",reading_speed:-.1784,fixation_ratio:.2455,right_saccade_ratio:.2584,read_line_ratio:.2679,m_task_duration:.0251,m_task_correct_ratio:-1.3588,focus_score:.2871,diff:null},{showindex:5,name:"\uccb4\ub825\uc57d\ud55c \ud558\ub8e8\uc0b4\uc774",reading_speed:-.3859,fixation_ratio:-2.1279,right_saccade_ratio:-.7457,read_line_ratio:-.9526,m_task_duration:.0571,m_task_correct_ratio:-.1593,focus_score:-3.0765,diff:null},{showindex:6,name:"\ub9c8\uc774\uc6e8\uc774 \ud0d0\uc0c9\uac00",reading_speed:-.6541,fixation_ratio:-1.7433,right_saccade_ratio:-1.1054,read_line_ratio:-1.064,m_task_duration:.1794,m_task_correct_ratio:.218,focus_score:.6119,diff:null}];var l=n(50);const d="TESTEE/REFRESH_TESTEE_LIST_PENDING",u="TESTEE/REFRESH_TESTEE_LIST_SUCCESS",p="TESTEE/REFRESH_TESTEE_LIST_FAILURE",g="TESTEE/SET_TESTEE_LIST_PENDING",h="TESTEE/SET_TESTEE_LIST_SUCCESS",m="TESTEE/SET_TESTEE_LIST_FAILURE",f="TESTEE/REFRESH_TESTEE_GROUP_LIST_PENDING",_="TESTEE/REFRESH_TESTEE_GROUP_LIST_SUCCESS",x="TESTEE/REFRESH_TESTEE_GROUP_LIST_FAILURE",b="DASHBOARD/SET_TRAINING_TESTEE",y=[{type:"Reading",names:["Sentence Mask","Word Ordering","Keyword Finding","Category Finding","RSVP"]},{type:"Cognitive",names:["Visual Span","Visual Counting","TMT","Stroop"]},{type:"Tracking",names:["Saccade Tracking","Pursuit Tracking","Anti Tracking","Sentence Tracking"]},{type:"Exercise",names:["Horizontal Jump","Vertical Jump","Horizontal Saccade","Vertical Saccade"]}].reduce(((e,t)=>e.concat(t.names.map((e=>e.split(" ").join(""))))),[]),v={testeeList:{loading:!1,data:null,error:!1},testeeGroupList:{loading:!1,data:null,error:!1},scores:null,groupData:null,trainingSelectTestee:null,screeningGroupData:null},w=async e=>{try{const t=await Object(a.a)({language:e});if(!t.valid)throw new Error(t.msg);if(!t.groupData||0===t.groupData.length)throw new Error("groupData \uac00\uc838\uc624\uae30 \uc2e4\ud328");if(!t.scores||0===Object.keys(t.scores).length)throw new Error("scores \uac00\uc838\uc624\uae30 \uc2e4\ud328");const n=t.readingList,o=(e,n)=>{const a=Math.floor(n),o=t.groupData.filter((t=>t.group_language===e));if(n<7)return o[0];if(n>=20)return o[o.length-2];for(let t=1;t{const c=+e[n],l={avg:t["avg_".concat(n)],std:t["std_".concat(n)]?t["std_".concat(n)]:t["avg_".concat(n)]/10};let d=+(100*(1-s()(l.avg,l.std*l.std).cdf(c))).toFixed(4);o&&(d=100-d),r&&(c*a===100?d=o?100:0:c*a===0&&(d=o?0:100)),"aoi_first_arrival_time"===n&&0===c&&(d=100),"aoi_spend_ratio"===n&&c*a===0&&(d=100);const u={group:t["avg_".concat(n)]*a,value:c*a,percent:d};return d<=10?(u.text="\ucd5c\uc6b0\uc218",u.idx=1):d<=25?(u.text="\uc6b0\uc218",u.idx=2):d<=75?(u.text="\uc591\ud638",u.idx=3):d<=90?(u.text="\ubbf8\ud761",u.idx=4):(u.text="\uc8fc\uc758",u.idx=5),i&&(c*a<=100?(u.text="\uc8fc\uc758",u.idx=5):c*a>100&&c*a<=130&&(u.text="\ubbf8\ud761",u.idx=4)),u},l=(e,t,n)=>({text:"\uc54c\uc218\uc5c6\uc74c",percent:0,value:0,group:e["avg_".concat(t)]*n}),d=i()().add(-3,"M");for(let a=0;a=d,n[a].score=r(n[a],t,"reading_score",1,0),n[a].speed=r(n[a],t,"reading_speed",1,0),n[a].taskDuration=r(n[a],t,"m_task_duration",1,1),n[a].characterPerSaccade=r(n[a],t,"charactor_per_saccade",1,0),n[a].regress=r(n[a],t,"regress_ratio",100,1,!0),n[a].questionDwellRatio=r(n[a],t,"question_dwell_ratio",100,0,!0),n[a].aoiFirstArrivalTime=r(n[a],t,"aoi_first_arrival_time",1,1),n[a].aoiSpendRatio=r(n[a],t,"aoi_spend_ratio",100,0,!0),n[a].taskCorrectRatio=r(n[a],t,"m_task_correct_ratio",100,0,!0),n[a].fixationDuration=r(n[a],t,"m_fixation_duration",1e3,1,null,!0);const u=(n[a].reading_speed-t.avg_reading_speed)/t.std_reading_speed,p=(n[a].fixation_ratio-t.avg_fixation_ratio)/t.std_fixation_ratio,g=(n[a].right_saccade_ratio-t.avg_right_saccade_ratio)/t.std_right_saccade_ratio,h=(n[a].read_line_ratio-t.avg_read_line_ratio)/t.std_read_line_ratio,m=(n[a].m_task_duration-t.avg_m_task_duration)/t.std_m_task_duration,f=(n[a].m_task_correct_ratio-t.avg_m_task_correct_ratio)/t.std_m_task_correct_ratio,_=(n[a].focus_score-t.avg_focus_score)/t.std_focus_score;let x=null,b=2e11,y=null;if(n[a].read_line_ratio<=.5)x=null;else for(let e=0;e=x&&(b=x,y=e);"\ubbf8\ud761"===n[a].score.text||"\uc8fc\uc758"===n[a].score.text||null===y?n[a].readersType="\uc720\ud615\ubd84\ub958 \ubd88\uac00":n[a].readersType=c[y].name,n[a].score=r(n[a],t,"reading_score",1,0),n[a].speed=r(n[a],t,"reading_speed",1,0),n[a].taskDuration=r(n[a],t,"m_task_duration",1,1),n[a].characterPerSaccade=r(n[a],t,"charactor_per_saccade",1,0),n[a].regress=r(n[a],t,"regress_ratio",100,1,!0),n[a].questionDwellRatio=r(n[a],t,"question_dwell_ratio",100,0,!0),n[a].aoiFirstArrivalTime=r(n[a],t,"aoi_first_arrival_time",1,1),n[a].aoiSpendRatio=r(n[a],t,"aoi_spend_ratio",100,0,!0),n[a].taskCorrectRatio=r(n[a],t,"m_task_correct_ratio",100,0,!0),n[a].fixationDuration=r(n[a],t,"m_fixation_duration",1e3,1,null,!0)}return t}catch(t){console.log("err",t)}},j=async()=>{try{const e=await Object(a.e)();if(!e.valid)throw new Error(e.err);const t=[];for(let n=0;ne.testee_idx===a.testee_idx)),s={testee_task_idx:a.testee_task_idx,trainingtask_idx:a.trainingtask_idx,task_name:a.task_name,task_type:a.task_type,level:a.level,dayofweek:a.dayofweek,language:a.language,reculsivecount:a.reculsivecount,level_update_duration:a.level_update_duration,isactive:a.isactive};if(o)o.testeeTaskIdxList.push({idx:a.testee_task_idx,listIdx:o.testeeTaskIdxList.length}),o.taskList.push(s);else{let n=e.results[1].filter((e=>e.testee_idx===a.testee_idx)).reduce(((e,t)=>({...e,[t.task_name]:{level:t.level,avg_score:t.avg_score,performed_count:t.performed_count,reculsive_count:t.reculsivecount,total_duration:t.total_duration}})),null);for(let t=0;te.testee_idx===a.testee_idx&&e.task_name===o));s&&(1===s.isactive&&(n||(n={}),n[o]||(n[o]={level:s.level,avg_score:0,performed_count:0,reculsive_count:s.reculsivecount,total_duration:0})))}const o=e.results[2].filter((e=>e.testee_idx===a.testee_idx)).reduce(((e,t)=>({...e,[t.task_name]:{level:t.level,avg_score:t.avg_score,performed_count:t.performed_count,reculsive_count:t.reculsive_count,total_duration:t.total_duration}})),null);if(o){let e=0,t=0,n=0,a=0;for(const s in o)n+=o[s].performed_count,a+=o[s].reculsive_count,e+=o[s].avg_score,t+=o[s].total_duration;o.performedCount=n,o.reculsiveCount=a,o.avgScore=+(e/(n||1)).toFixed(1),o.totalDuration=+t.toFixed(1),o.performedRatio=+(n/(a||1)*100).toFixed(1)}t.push({testee_idx:a.testee_idx,tts_totalscore:a.tts_totalscore||null,tts_monthscore:a.tts_monthscore||null,tts_firstscore:a.tts_firstscore||null,tts_firstscore_resetdate:a.tts_firstscore_resetdate,tts_secondscore:a.tts_secondscore||null,tts_secondscore_resetdate:a.tts_secondscore_resetdate,tier:a.tier,today:n,yesterday:o,week:{avg_level:"number"===typeof a.avg_level?+a.avg_level.toFixed(1):null,avg_daily_duration:"number"===typeof a.avg_daily_duration?+a.avg_daily_duration.toFixed(1):null,avg_performed_ratio:"number"===typeof a.avg_performed_ratio?+a.avg_performed_ratio.toFixed(1):null,avg_total_score:"number"===typeof a.avg_total_score?+a.avg_total_score.toFixed(1):null,avg_performed_ratio_wt:"number"===typeof a.avg_performed_ratio_wt?+a.avg_performed_ratio_wt.toFixed(1):null,avg_performed_ratio_et:"number"===typeof a.avg_performed_ratio_et?+a.avg_performed_ratio_et.toFixed(1):null},taskList:[s],testeeTaskIdxList:[{idx:a.testee_task_idx,listIdx:0}]})}}for(let n=0;n{try{const e=await Object(a.c)();if(!e.valid)throw new Error(e.err);return e.results[0].map(((t,n)=>{const a=[e.results[0][n],e.results[1].find((e=>e.testee_idx===t.testee_idx)),e.results[2].find((e=>e.testee_idx===t.testee_idx))].filter((e=>e.savetime)).map((e=>({...e})));for(let e=0;e{const n=i()(t.savetime),a=t.hasOwnProperty("scr_antisaccade_idx")?"\uc2dc\uac01\ubc18\uc751 \ud1b5\uc81c":t.hasOwnProperty("scr_pursuit_idx")?"\ucd94\uc801 \uc548\uad6c\uc6b4\ub3d9":t.hasOwnProperty("scr_pursuit_idx")?"\ub3c4\uc57d \uc548\uad6c\uc6b4\ub3d9":"";return e?e.momentTime=i()(new Date).add(-1,"year"),type:a}:e:{...t,momentTime:n,isDoneWithinOneYear:n>=i()(new Date).add(-1,"year"),type:a}}),null);return{isPerformed:0===a.length?null:a,recent:o,testee_age:t.testee_age,testee_birthday:t.testee_birthday,testee_nickname:t.testee_nickname,testee_idx:t.testee_idx,user_ID:t.user_ID}}))}catch(e){}},k=async()=>{try{const e=await Object(l.b)();if(!e.valid)throw new Error(e.err);return e.groupData}catch(e){}},S=()=>async e=>{try{e({type:d});const t=localStorage.getItem("d_lang"),n=t||"\ud55c\uad6d\uc5b4",[{readingList:a,scores:o,groupData:s},r,i,c]=await Promise.all([w(n),j(),O(),k()]),l=a.map((e=>({testee_age:e.testee_age,testee_agreement:e.testee_agreement,testee_birthday:e.testee_birthday,testee_class:e.testee_class,testee_idx:e.testee_idx,testee_nickname:e.testee_nickname,testee_sex:e.testee_sex,testee_email:e.testee_email,testee_phone:e.testee_phone,testee_attending:e.testee_attending,testee_imsi:e.testee_imsi,testee_agreement_datetime:e.testee_agreement_datetime,testee_issample:e.testee_issample,user_inform:e.user_inform,user_ID:e.user_ID,user_PW:e.user_PW,user_join_date:e.user_join_date,testee_group_idx:e.testee_group_idx,testee_reading_level_offset:e.testee_reading_level_offset,reading:{textset_language:e.textset_language,didThreeMonthsAgo:e.didThreeMonthsAgo,score:e.score,speed:e.speed,taskDuration:e.taskDuration,regress:e.regress,questionDwellRatio:e.questionDwellRatio,aoiFirstArrivalTime:e.aoiFirstArrivalTime,aoiSpendRatio:e.aoiSpendRatio,taskCorrectRatio:e.taskCorrectRatio,characterPerSaccade:e.characterPerSaccade,fixationDuration:e.fixationDuration,auto_marking:e.auto_marking,m_reading_score:e.m_reading_score,savetime:e.savetime,readersType:e.readersType,testee_moment_age:(1*e.testee_moment_age).toFixed(1)}})));for(let e=0;ee.testee_idx===t.testee_idx)),a=i.find((e=>e.testee_idx===t.testee_idx));t.training=n?{tts_totalscore:n.tts_totalscore,tts_monthscore:n.tts_monthscore,tts_firstscore:n.tts_firstscore,tts_firstscore_resetdate:n.tts_firstscore_resetdate,tts_secondscore:n.tts_secondscore,tts_secondscore_resetdate:n.tts_secondscore_resetdate,tier:n.tier,yesterday:n.yesterday,today:n.today,week:n.week,taskList:n.taskList}:null,t.screening=a?{isPerformed:a.isPerformed,recent:a.recent}:null}return new Promise((t=>{e({type:u,payload:{results:{testeeList:l,scores:o,groupData:s,screeningGroupData:c}}}),t({valid:!0,testeeList:l})}))}catch(t){return console.log("err",t),alert("\ud559\uc0dd \ubd88\ub7ec\uc624\uae30 \uc624\ub958, \uc7a0\uc2dc \ud6c4 \ub2e4\uc2dc \uc2dc\ub3c4\ud574\uc8fc\uc138\uc694."),new Promise((n=>{e({type:p,err:t}),n({valid:!1})}))}},E=e=>async t=>{try{return t({type:g}),new Promise((n=>{t({type:h,payload:{results:{testeeList:e}}}),n({valid:!0,testeeList:e})}))}catch(n){return console.log("err",n),new Promise((e=>{t({type:m,err:n}),e({valid:!1})}))}},D=()=>async e=>{try{e({type:f});const t=await(async()=>{const e=await Object(a.d)();if(!e.valid)throw new Error(e.err||e.msg);return e})();return new Promise((n=>{t.valid?(e({type:_,payload:{results:{testeeGroupList:t}}}),n({valid:!0,testeeGroupList:t})):(e({type:x}),n({valid:!1}))}))}catch(t){return console.log("err",t),new Promise((n=>{e({type:x,err:t}),n({valid:!1})}))}};t.a=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:v,t=arguments.length>1?arguments[1]:void 0;const{type:n,payload:a}=t;switch(n){case"LOGOUT":return console.log("\ub85c\uadf8\uc544\uc6c3 testeeList"),{testeeList:{loading:!1,data:null,error:!1},scores:null,groupData:null};case d:return{...e,testeeList:{loading:!0,data:null,error:!1},scores:null,groupData:null};case u:return{...e,testeeList:{loading:!1,data:a.results.testeeList,error:!1},scores:a.results.scores,groupData:a.results.groupData,screeningGroupData:a.results.screeningGroupData};case p:return{...e,testeeList:{data:null,loading:!1,error:!0},scores:null,groupData:null};case g:return{...e,testeeList:{loading:!0,data:null,error:!1}};case h:return{...e,testeeList:{loading:!1,data:a.results.testeeList,error:!1}};case m:return{...e,testeeList:{data:null,loading:!1,error:!0}};case b:return{...e,trainingSelectTestee:a.testeeIdx};case f:return{...e,testeeGroupList:{loading:!0,data:null,error:!1}};case _:return{...e,testeeGroupList:{loading:!1,data:a.results.testeeGroupList.results,error:!1}};case x:return{...e,testeeGroupList:{data:null,loading:!1,error:!0}};default:return e}}},17:function(e,t,n){"use strict";n.d(t,"C",(function(){return l})),n.d(t,"j",(function(){return d})),n.d(t,"J",(function(){return u})),n.d(t,"h",(function(){return p})),n.d(t,"A",(function(){return g})),n.d(t,"K",(function(){return h})),n.d(t,"m",(function(){return m})),n.d(t,"n",(function(){return f})),n.d(t,"N",(function(){return _})),n.d(t,"f",(function(){return x})),n.d(t,"t",(function(){return b})),n.d(t,"i",(function(){return y})),n.d(t,"c",(function(){return v})),n.d(t,"a",(function(){return w})),n.d(t,"p",(function(){return j})),n.d(t,"o",(function(){return O})),n.d(t,"l",(function(){return k})),n.d(t,"q",(function(){return S})),n.d(t,"O",(function(){return E})),n.d(t,"I",(function(){return D})),n.d(t,"u",(function(){return P})),n.d(t,"v",(function(){return Y})),n.d(t,"s",(function(){return C})),n.d(t,"r",(function(){return L})),n.d(t,"L",(function(){return T})),n.d(t,"M",(function(){return M})),n.d(t,"k",(function(){return I})),n.d(t,"B",(function(){return N})),n.d(t,"F",(function(){return R})),n.d(t,"x",(function(){return A})),n.d(t,"E",(function(){return H})),n.d(t,"w",(function(){return F})),n.d(t,"e",(function(){return z})),n.d(t,"H",(function(){return B})),n.d(t,"z",(function(){return W})),n.d(t,"G",(function(){return U})),n.d(t,"y",(function(){return G})),n.d(t,"D",(function(){return q})),n.d(t,"d",(function(){return J})),n.d(t,"b",(function(){return V})),n.d(t,"g",(function(){return Z}));var a=n(5),o=n(2),s=n(3),r=n.n(s);r.a.tz.setDefault("Asia/Seoul");const i=!0;window.console.log("auth\uac1c\ubc1c log \uc0c1\ud0dc:"+i);const c=e=>{window.console.log(e)},l=e=>new Promise((function(t,n){o.a.post("https://api-app.readerseye.com/api/v1/auth/savedefaultlanguage",{language:e}).then((e=>{c("<>"),t(e.data)})).catch((function(e){t({valid:!1,msg:e})}))})),d=e=>new Promise((function(t,n){o.a.post("https://api-app.readerseye.com/api/v1/auth/delmainorganization",e).then((e=>{c("<>"),t(e.data)})).catch((function(e){t({valid:!1,msg:e})}))})),u=e=>new Promise((function(t,n){o.a.post("https://api-app.readerseye.com/api/v1/auth/setmainorganization",e).then((e=>{c("<>"),t(e.data)})).catch((function(e){t({valid:!1,msg:e})}))})),p=e=>new Promise((function(t,n){o.a.post("https://api-app.readerseye.com/api/v1/auth/deactivemainorg",e).then((e=>{c("<>"),t(e.data)})).catch((function(e){t({valid:!1,msg:e})}))})),g=e=>new Promise((function(t,n){o.a.post("https://api-app.readerseye.com/api/v1/auth/refreshsessionorg",e).then((e=>{if(c("<>"),e.data.valid){let t=e.data.results;for(let e=0;enew Promise((function(t,n){o.a.post("https://api-app.readerseye.com/api/v1/auth/setwaitlist",e).then((e=>{c("<>"),t(e.data)})).catch((function(e){t({valid:!1,msg:e})}))})),m=e=>new Promise((function(t,n){o.a.post("https://api-app.readerseye.com/api/v1/auth/getorginformbyorgcode",e).then((e=>{c("<>"),t(e.data)})).catch((function(e){t({valid:!1,msg:e})}))})),f=()=>new Promise((function(e,t){o.a.post("https://api-app.readerseye.com/api/v1/auth/getorganizationwaitlist").then((t=>{if(c("<>"),t.data.valid){let e=t.data.results;for(let t=0;tnew Promise((function(t,n){o.a.post("https://api-app.readerseye.com/api/v1/auth/tokencheck",e,{},!0).then((e=>{if(c("<>"),e.data.valid){let t=e.data.results;t.org_startdate&&t.org_enddate&&(t.org_startdate=r()(t.org_startdate).utc().format("YYYY-MM-DD HH:mm:ss"),t.org_enddate=r()(t.org_enddate).utc().format("YYYY-MM-DD HH:mm:ss"))}t(e.data)})).catch((function(e){t({valid:!1,msg:e})}))})),x=e=>new Promise((function(t,n){o.a.post("https://api-app.readerseye.com/api/v1/auth/checkregistrationfee",e).then((e=>{c("<>"),t(e.data)})).catch((function(e){t({valid:!1,msg:e})}))})),b=e=>new Promise((function(t,n){o.a.post("https://api-app.readerseye.com/api/v1/auth/checksignupcode",e).then((e=>{c("<>"),t(e.data)})).catch((function(e){t({valid:!1,msg:e})}))})),y=e=>new Promise((function(t,n){o.a.post("https://api-app.readerseye.com/api/v1/payment/delcard",e).then((e=>{c("<>"),t(e.data)})).catch((function(e){t({valid:!1,msg:e})}))})),v=e=>new Promise((function(t,n){o.a.post("https://api-app.readerseye.com/api/v1/payment/changeactivecard",e).then((e=>{c("<>"),t(e.data)})).catch((function(e){t({valid:!1,msg:e})}))})),w=e=>new Promise((function(t,n){o.a.post("https://api-app.readerseye.com/api/v1/payment/addcard",e).then((e=>{c("<>"),t(e.data)})).catch((function(e){t({valid:!1,msg:e})}))})),j=e=>new Promise((function(t,n){o.a.post("https://api-app.readerseye.com/api/v1/payment/getpaylogdetail",e).then((e=>{if(c("<>"),e.data.valid){let t=e.data.results;for(let e=0;enew Promise((function(e,t){o.a.post("https://api-app.readerseye.com/api/v1/payment/getpaylog").then((t=>{if(c("<>"),t.data.valid){let e=t.data.results;for(let t=0;tnew Promise((function(e,t){o.a.post("https://api-app.readerseye.com/api/v1/auth/getcardlist").then((t=>{c("<>"),e(t.data)})).catch((function(t){e({valid:!1,msg:t})}))})),S=e=>new Promise((function(t,n){o.a.post("https://api-app.readerseye.com/api/v1/auth/getpopuplist",{}).then((n=>{if(c("<>"),!0===n.data.valid){let t=n.data.body;if(t){for(let e=0;er()(a).utc()&&(n.data.body=t.filter((e=>null===e.organization_idx)))}}}t(n.data)})).catch((function(e){t({valid:!1,msg:e})}))})),E=e=>new Promise((function(t,n){o.a.post("https://api-app.readerseye.com/api/v1/auth/versioncheck",e).then((e=>{c("<>"),t(e.data)})).catch((function(e){t({valid:!1,msg:e})}))})),D=e=>new Promise((function(t,n){o.a.post("https://api-app.readerseye.com/api/v1/auth/sessioncheck",e,{},!0).then((e=>{c("<>"),t(e.data)})).catch((function(e){t({valid:!1,msg:e})}))})),P=e=>new Promise((function(t,n){o.a.post("https://api-app.readerseye.com/api/v1/auth/login",e).then((e=>{c("<>"),t(e.data)})).catch((function(e){t({valid:!1,msg:e})}))})),Y=()=>new Promise((function(e,t){o.a.post("https://api-app.readerseye.com/api/v1/auth/logout",{logout:!0},{},!0).then((t=>{c("<>"),c(t),e(t.data)})).catch((function(t){c("<>"),c(t),e({valid:!1,msg:t})}))})),C=e=>new Promise((function(t,n){o.a.post("https://api-app.readerseye.com/api/v1/auth/isdupid",{agency_ID:e}).then((e=>{c("<>"),c(e),t(e.data)})).catch((function(e){c(e),t({valid:!1,msg:e})}))})),L=e=>new Promise((function(t,n){o.a.post("https://api-app.readerseye.com/api/v2/auth/isdupemail",{agency_email:e}).then((e=>{c("<>"),c(e),t(e.data)})).catch((function(e){c(e),t({valid:!1,msg:e})}))})),T=e=>new Promise((function(t,n){let a="https://api-app.readerseye.com/api/v2/auth/signup";c(a+"\ub85c \uc694\uccad"),o.a.post(a,e).then((e=>{c("<>"),c(e),t(e.data)})).catch((function(e){c(e),t({valid:!1,msg:e})}))})),M=e=>new Promise((function(t,n){let a="https://api-app.readerseye.com/api/v2/auth/smtechsignup";c(a+"\ub85c \uc694\uccad"),o.a.post(a,e).then((e=>{c("<>"),c(e),t(e.data)})).catch((function(e){c(e),t({valid:!1,msg:e})}))})),I=e=>new Promise((function(t,n){let a="https://api-app.readerseye.com/api/v2/auth/emailverification";c(a+"\ub85c \uc694\uccad"),o.a.post(a,e).then((e=>{c("<>"),c(e),t(e.data)})).catch((function(e){c(e),t({valid:!1,msg:e})}))})),N=e=>new Promise((function(t,n){let a="https://api-app.readerseye.com/api/v2/auth/resendemail";c(a+"\ub85c \uc694\uccad"),o.a.post(a,e).then((e=>{c("<>"),c(e),t(e.data)})).catch((function(e){c(e),t({valid:!1,msg:e})}))})),R=e=>new Promise((function(t,n){o.a.post("https://api-app.readerseye.com/api/v1/auth/sendfiptoken",e).then((e=>{c("<>"),c(e),t(e.data)})).catch((function(e){c(e),t({valid:!1,msg:e})}))})),A=e=>new Promise((function(t,n){o.a.post("https://api-app.readerseye.com/api/v1/auth/matchfiptoken",e).then((e=>{c("<>"),c(e),t(e.data)})).catch((function(e){c(e),t({valid:!1,msg:e})}))})),H=e=>new Promise((function(t,n){o.a.post("https://api-app.readerseye.com/api/v2/auth/sendfietoken",e).then((e=>{c("<>"),c(e),t(e.data)})).catch((function(e){c(e),t({valid:!1,msg:e})}))})),F=e=>new Promise((function(t,n){o.a.post("https://api-app.readerseye.com/api/v2/auth/matchfietoken",e).then((e=>{c("<>"),c(e),t(e.data)})).catch((function(e){c(e),t({valid:!1,msg:e})}))})),z=e=>new Promise((function(t,n){o.a.post("https://api-app.readerseye.com/api/v1/auth/checkidvalid",e).then((e=>{c("<>"),c(e),t(e.data)})).catch((function(e){c(e),t({valid:!1,msg:e})}))})),B=e=>new Promise((function(t,n){o.a.post("https://api-app.readerseye.com/api/v1/auth/sendfpptoken",e).then((e=>{c("<>"),c(e),t(e.data)})).catch((function(e){c(e),t({valid:!1,msg:e})}))})),W=e=>new Promise((function(t,n){o.a.post("https://api-app.readerseye.com/api/v1/auth/matchfpptoken",e).then((e=>{c("<>"),c(e),t(e.data)})).catch((function(e){c(e),t({valid:!1,msg:e})}))})),U=e=>new Promise((function(t,n){o.a.post("https://api-app.readerseye.com/api/v2/auth/sendfpetoken",e).then((e=>{c("<>"),c(e),t(e.data)})).catch((function(e){c(e),t({valid:!1,msg:e})}))})),G=e=>new Promise((function(t,n){o.a.post("https://api-app.readerseye.com/api/v2/auth/matchfpetoken",e).then((e=>{c("<>"),c(e),t(e.data)})).catch((function(e){c(e),t({valid:!1,msg:e})}))})),q=e=>new Promise((function(t,n){o.a.post("https://api-app.readerseye.com/api/v2/auth/sendceetoken",e).then((e=>{t(e.data)})).catch((function(e){c(e),t({valid:!1,msg:e})}))})),J=e=>new Promise((function(t,n){o.a.post("https://api-app.readerseye.com/api/v1/auth/changeagencyinform",e,{headers:{"Content-Type":"multipart/form-data"}}).then((e=>{c("<>"),c(e),t(e.data)})).catch((function(e){c(e),t({valid:!1,msg:e})}))})),V=e=>new Promise((function(t,n){o.a.post("https://api-app.readerseye.com/api/v1/auth/agencypwchange",e).then((e=>{t(e.data)})).catch((function(e){c(e),t({valid:!1,msg:e})}))})),Z=()=>new Promise((function(e,t){o.a.post("https://api-app.readerseye.com/api/v1/auth/checksubscription",{nothing:!0}).then((t=>{c("<>"),!0===t.data.valid?(t.data.body.now=r()(t.data.body.now).utc().format("YYYY-MM-DD HH:mm:ss"),t.data.body.pay_end_date=r()(t.data.body.pay_end_date).utc().format("YYYY-MM-DD HH:mm:ss")):t.data.body.pay_end_date&&(t.data.body.pay_end_date=Object(a.c)(t.data.body.pay_end_date,"time")),e(t.data)})).catch((function(t){c(t),e({valid:!1,msg:t})}))}))},19:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));const a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789/",o="zp6bYU8WfJv7ZaQK/2VOLsqIGXRDg9djCBi0Tk1lFShy45woxHNuEe3nPcrAtMmB";function s(e,t,n){return e.split("").map((e=>{const a=t.indexOf(e);return-1!==a?n[a]:e})).join("")}const r=e=>s(e,a,o)},2:function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"c",(function(){return c}));var a=n(20),o=n.n(a);const s=o.a.CancelToken;let r=s.source();o.a.defaults.withCredentials=!0;let i=!1;function c(){r=s.source()}const l={post:async(e,t,n,a)=>{try{a||(n={...n,cancelToken:r.token});let c=await o.a.post(e,t,n);return c.data.redirect&&(!1===i?(i=!0,r.cancel(e+"\uc5d0\uc11c\uc758 cancel!!"),window.customlogout().then((e=>{r=s.source(),i=!1}))):(r.cancel(e+"\uc5d0\uc11c\uc758 cancel!!"),r=s.source())),new Promise((function(e){e(c)}))}catch(c){return o.a.isCancel(c)?(console.log("post req cancel",e,c),new Promise((e=>e({data:{valid:!1,msg:c.message}})))):(console.log(c),new Promise((e=>e({data:{valid:!1,msg:c}}))))}},get:async(e,t,n)=>{try{n||(t={...t,cancelToken:r.token});let a=await o.a.get(e,t);return a.data.redirect&&(!1===i?(i=!0,r.cancel(e+"\uc5d0\uc11c\uc758 cancel!!"),window.customlogout().then((e=>{r=s.source(),i=!1}))):(r.cancel(e+"\uc5d0\uc11c\uc758 cancel!!"),r=s.source())),new Promise((function(e){e(a)}))}catch(a){return o.a.isCancel(a)?(console.log("get req cancel",e,a),new Promise((e=>e({data:{valid:!1,msg:a.message}})))):(console.log(a),new Promise((e=>e({data:{valid:!1,msg:a}}))))}}};t.a=l},21:function(e,t,n){"use strict";var a=n(12),o=n.n(a);t.a=e=>{let{children:t}=e;const n=document.getElementById("modal");return o.a.createPortal(t,n)}},22:function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"i",(function(){return i})),n.d(t,"j",(function(){return c})),n.d(t,"h",(function(){return l})),n.d(t,"c",(function(){return d})),n.d(t,"a",(function(){return u})),n.d(t,"e",(function(){return p})),n.d(t,"d",(function(){return g})),n.d(t,"g",(function(){return h})),n.d(t,"f",(function(){return m}));var a=n(3),o=n.n(a),s=(n(5),n(2));window.console.log("reading\uac1c\ubc1c log \uc0c1\ud0dc:"+!0),o.a.tz.setDefault("Asia/Seoul");const r=e=>new Promise((function(t,n){s.a.post("https://api-app.readerseye.com/api/v1/reading/getbesttsr",e).then((e=>{console.log("<>"),t(e.data)})).catch((function(e){throw console.log(e),n(e),e}))})),i=e=>new Promise((function(t,n){s.a.post("https://api-app.readerseye.com/api/v1/reading/fixtesteeemail",e).then((e=>{console.log("<>"),t(e.data)})).catch((function(e){throw console.log(e),n(e),e}))})),c=e=>new Promise((function(t,n){s.a.post("https://api-app.readerseye.com/api/v1/reading/fixtesteephone",e).then((e=>{console.log("<>"),t(e.data)})).catch((function(e){throw console.log(e),n(e),e}))})),l=e=>new Promise((function(t,n){s.a.post("https://api-app.readerseye.com/api/v1/reading/setclinicdata",e).then((e=>{console.log("<>"),t(e.data)})).catch((function(e){throw console.log(e),n(e),e}))})),d=e=>new Promise((function(t,n){s.a.post("https://api-app.readerseye.com/api/v1/reading/getgroupdata",e).then((e=>{console.log("<>"),t(e.data)})).catch((function(e){throw console.log(e),n(e),e}))})),u=e=>new Promise((function(t,n){s.a.post("https://api-app.readerseye.com/api/v1/reading/deletetextsetresult",e).then((e=>{console.log("<>"),t(e.data)})).catch((function(e){throw console.log(e),n(e),e}))})),p=e=>new Promise((function(t,n){s.a.post("https://api-app.readerseye.com/api/v1/reading/getreadingresult",e).then((e=>{console.log("<>"),t(e.data)})).catch((function(e){throw console.log(e),n(e),e}))})),g=e=>new Promise((function(t,n){s.a.post("https://api-app.readerseye.com/api/v1/reading/getreadinggroupresult",e).then((e=>{console.log("<>"),t(e.data)})).catch((function(e){throw console.log(e),n(e),e}))})),h=e=>new Promise((function(t,n){s.a.post("https://api-app.readerseye.com/api/v1/reading/gettextsetlist",e).then((e=>{console.log("<>"),t(e.data)})).catch((function(e){throw console.log(e),n(e),e}))})),m=e=>new Promise((function(t,n){s.a.post("https://api-app.readerseye.com/api/v1/reading/gettextlist",e).then((e=>{console.log("<>"),t(e.data)})).catch((function(e){throw console.log(e),n(e),e}))}))},23:function(e,t,n){"use strict";n.d(t,"b",(function(){return a})),n.d(t,"a",(function(){return o}));const a=e=>t=>new Promise((function(n){t({type:"SET_USERINFORM",inform:e}),n({valid:!0,msg:"\uc138\uc158\ubc14\ub01c"})})),o=()=>e=>new Promise((function(t){e({type:"LOGOUT"}),t({valid:!0,msg:"\ub9ac\ub355\uc2a4\ucd08\uae30\ud654"})}))},26:function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"e",(function(){return c})),n.d(t,"c",(function(){return l})),n.d(t,"d",(function(){return d})),n.d(t,"b",(function(){return u}));var a=n(3),o=n.n(a),s=n(5),r=n(2);const i=e=>new Promise((function(t,n){r.a.post("https://api-app.readerseye.com/api/v1/dashboard/getreadinguserlist",e).then((e=>{if(console.log("<>"),e.data.valid){const t=e.data.readingList;for(let e=0;enew Promise((function(t,n){r.a.post("https://api-app.readerseye.com/api/v2/training/gettraininguserlistv2",e).then((e=>{console.log("<>"),t(e.data)})).catch((function(e){throw console.log(e),n(e),e}))})),l=e=>new Promise((function(t,n){r.a.post("https://api-app.readerseye.com/api/v1/dashboard/getscreeninguserlist",e).then((e=>{if(console.log("<>"),e.data.valid)for(let t=0;tnew Promise((function(t,n){r.a.post("https://api-app.readerseye.com/api/v1/dashboard/gettesteegrouplist",e).then((e=>{console.log("<>"),t(e.data)})).catch((function(e){throw console.log(e),n(e),e}))})),u=e=>new Promise((function(t,n){r.a.post("https://api-app.readerseye.com/api/v1/dashboard/getsmslist",e).then((e=>{if(console.log("<>"),e.data.valid)for(let t=0;t{let{option:t,disabled:n,...a}=e;const r=o.a.useMemo((()=>{let e={width:"auto"};return t&&(e={},t.bubbleWidth&&(e.width=t.bubbleWidth,e.minWidth=t.bubbleWidth),t.bubbleFontWeight&&(e.fontWeight=t.bubbleFontWeight)),e}),[t]),i=o.a.useMemo((()=>{let e=null;return t&&t.SsogiTooltipWidth&&(e={},e.width=t.SsogiTooltipWidth),e}),[t]),[c,l]=o.a.useState(!1);let d=a.message,u=a.position,p=a.className?a.className+" stooltip":"stooltip",g="-"+u;"custom"!==a.position&&(g="");const h=o.a.useRef();o.a.useEffect((()=>{let e=h.current;const n=()=>{l(!1)},a=function(e){!e.target.contains(e.relatedTarget)&&l(!1)};return"clickShow"!==t.type?e&&e.addEventListener("mouseleave",n):e.addEventListener("focusout",a),()=>{"clickShow"!==t.type?e&&e.removeEventListener("mouseleave",n):e&&e.removeEventListener("focusout",a)}}),[h,t]);let m="custom1"===a.position?"stooltip-message-custom1":"stooltip-message";return"bottomleft"===a.position&&(m="stooltip-message-bottomleft"),Object(s.jsxs)("div",{className:p,style:null!==i?i:{width:"auto"},ref:h,onMouseEnter:()=>{"clickShow"!==t.type&&l(!0)},onClick:()=>{"clickShow"===t.type&&l(!0)},tabIndex:"0",children:[c&&null!==r&&!0!==n&&Object(s.jsx)("div",{className:"stooltip-bubble".concat(g," stooltip-").concat(u),style:r,children:Object(s.jsx)("div",{className:m,style:{backgroundColor:t.bubbleBackgroundColor?t.bubbleBackgroundColor:""},dangerouslySetInnerHTML:{__html:d}})}),Object(s.jsx)("span",{className:"stooltip-trigger",children:a.children})]})};n(85);var i=e=>{let{className:t,style:n,value:a,placeholder:r,onChange:i,onBlur:c,useNotKorean:l,...d}=e;const{disabled:u,alert:p}=d;let g=n,h=t?t+" InputPW":"InputPW";const[m,f]=o.a.useState(!1),_=o.a.useCallback((e=>{const t=new RegExp(/[\u3131-\ud7a3]/g);l&&t.exec(e.target.value)&&p.error("\ud55c\uae00\uc740 \uc785\ub825\ud560 \uc218 \uc5c6\uc2b5\ub2c8\ub2e4."),e.target.value=e.target.value.replace(t,""),i(e)}),[i,l,p]);return Object(s.jsxs)("div",{className:h,style:g||{width:"100%"},children:[Object(s.jsx)("input",{className:"i",type:"text",autoComplete:"off",disabled:u,style:{WebkitTextSecurity:!0===m?"none":"disc"},placeholder:r,value:a,onChange:_,onBlur:c}),Object(s.jsx)("span",{className:"eye",style:{fontSize:"24px",position:"absolute",right:"0px",cursor:"pointer",color:"#145894",outline:"none",userSelect:"none",height:"100%",display:"flex",justifyContent:"center",alignItems:"center",backgroundColor:"transparents",width:"40px"},onClick:()=>f(!m),children:!0===m?Object(s.jsx)("i",{className:"fa fa-eye","aria-hidden":"true"}):Object(s.jsx)("i",{className:"fa fa-eye-slash","aria-hidden":"true"})})]})},c=n(48),l=(n(87),function(e){var t=e.color,n=e.pushRight,a=void 0===n||n,s=e.children;return o.a.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",style:{marginRight:a?"20px":"0",minWidth:24}},s)}),d=function(){return o.a.createElement(l,{color:"white"},o.a.createElement("circle",{cx:"12",cy:"12",r:"10"}),o.a.createElement("line",{x1:"12",y1:"16",x2:"12",y2:"12"}),o.a.createElement("line",{x1:"12",y1:"8",x2:"12",y2:"8"}))},u=function(){return o.a.createElement(l,{color:"white"},o.a.createElement("path",{d:"M22 11.08V12a10 10 0 1 1-5.93-9.14"}),o.a.createElement("polyline",{points:"22 4 12 14.01 9 11.01"}))},p=function(){return o.a.createElement(l,{color:"#FF0040"},o.a.createElement("circle",{cx:"12",cy:"12",r:"10"}),o.a.createElement("line",{x1:"12",y1:"8",x2:"12",y2:"12"}),o.a.createElement("line",{x1:"12",y1:"16",x2:"12",y2:"16"}))},g=function(){return o.a.createElement(l,{color:"#FFFFFF",pushRight:!1},o.a.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),o.a.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"}))},h=Object.assign||function(e){for(var t=1;t{if(e){let t=(e+="").split("\n"),n=[];for(let e=0;e{let{className:t,onClick:n,style:a,...r}=e,i=a,c="SsogiModal";t&&(c+=" "+t);let l={width:"300px",maxWidth:"90vw",backgroundColor:"white",borderRadius:"8px",height:"auto",margin:"auto"};if(i)for(let o in i)l[o]=i[o];const d=o.a.useRef();return o.a.useEffect((()=>{document.body.style.overflow="hidden";return window.parent.postMessage({type:"MODAL_OPEN"},"*"),()=>{document.body.style.overflow="unset";window.parent.postMessage({type:"MODAL_CLOSE"},"*")}}),[]),Object(s.jsx)("div",{ref:d,className:c,onClick:()=>{n&&n()},style:{position:"fixed",display:"flex",justifyContent:"center",width:"100%",height:"100%",backgroundColor:"rgba(0,0,0,0.7)",left:0,top:0,zIndex:1e3},children:Object(s.jsx)("div",{style:l,children:r.children})})};n(88);var b=o.a.forwardRef(((e,t)=>{let{title:n,style:a,hideCard:r,...i}=e,c={width:"calc(100% - 30px)",backgroundColor:"white",marginTop:"15px",marginBottom:"15px",marginLeft:"15px",borderRadius:"12px",boxShadow:"0 4px 25px 0 rgba(0,0,0,.1)",padding:"1.5rem",boxSizing:"border-box",position:"relative"};for(let o in a)c[o]=a[o];const[l,d]=o.a.useState((()=>r||!1));return Object(s.jsx)("div",{className:"BigCard",ref:t,children:Object(s.jsxs)("div",{style:c,children:[Object(s.jsx)("div",{className:"hidecontents",style:{position:"absolute",top:"1.5rem",right:"1.5rem"},onClick:()=>{d(!l)},children:Object(s.jsx)("svg",{version:"1.1",id:"Capa_1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",style:{height:"25px",cursor:"pointer",transform:l?"rotate(180deg)":"",transition:"transform .2s ease-in-out"},fill:"currentColor",viewBox:"0 0 284.929 284.929",xmlSpace:"preserve",children:Object(s.jsx)("g",{children:Object(s.jsx)("path",{d:"M282.082,76.511l-14.274-14.273c-1.902-1.906-4.093-2.856-6.57-2.856c-2.471,0-4.661,0.95-6.563,2.856L142.466,174.441\r L30.262,62.241c-1.903-1.906-4.093-2.856-6.567-2.856c-2.475,0-4.665,0.95-6.567,2.856L2.856,76.515C0.95,78.417,0,80.607,0,83.082\r c0,2.473,0.953,4.663,2.856,6.565l133.043,133.046c1.902,1.903,4.093,2.854,6.567,2.854s4.661-0.951,6.562-2.854L282.082,89.647\r c1.902-1.903,2.847-4.093,2.847-6.565C284.929,80.607,283.984,78.417,282.082,76.511z"})})})}),n&&Object(s.jsx)("div",{style:{width:"100%",textAlign:"left",fontSize:"20px",color:"#333"},children:n()}),Object(s.jsx)("div",{style:{display:l?"none":"block",width:"100%"},children:i.children})]})})})),y=n(49)},30:function(e,t,n){"use strict";n.d(t,"a",(function(){return s})),n.d(t,"e",(function(){return r})),n.d(t,"d",(function(){return i})),n.d(t,"c",(function(){return c})),n.d(t,"b",(function(){return l}));var a=n(3),o=n.n(a);n(119);o.a.tz.setDefault("Asia/Seoul"),o.a.locale("ko");const s=(e,t)=>o()(e).utc().format("".concat("date"===t?"YYYY-MM-DD":"short"===t?"YY-MM-DD":"YYYY-MM-DD HH:mm:ss")),r=()=>o()(),i=e=>e?o()(e):r(),c=e=>o()(e).daysInMonth(),l=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:10;const a=[],s=t.diff(e,"day");if(s>10){const s=t.diff(e)/(n-1);for(let t=0;tnew Promise((function(t,n){a.a.post("https://api-app.readerseye.com/api/v2/training/gettesteetrainingtask",e).then((e=>{console.log("<>"),t(e.data)})).catch((function(e){throw console.log(e),n(e),e}))})),s=e=>new Promise((function(t,n){let o="".concat("https://api-app.readerseye.com","/api/v2/training/gettrainingresult");a.a.post(o,e).then((e=>{console.log("gettrainingresult response"),t(e.data)})).catch((function(e){throw console.log(e),n(e),e}))})),r=e=>new Promise((function(t,n){let o="".concat("https://api-app.readerseye.com","/api/v2/training/toggletaskactive");a.a.post(o,e).then((e=>{console.log("toggleTaskActive response"),t(e.data)})).catch((function(e){throw console.log(e),n(e),e}))})),i=e=>new Promise((function(t,n){let o="".concat("https://api-app.readerseye.com","/api/v2/training/fixtask");a.a.post(o,e).then((e=>{console.log("fixTask response"),t(e.data)})).catch((function(e){throw console.log(e),n(e),e}))})),c=e=>new Promise((function(t,n){let o="".concat("https://api-app.readerseye.com","/api/v2/training/gettraininggroupresult");a.a.post(o,e).then((e=>{console.log("gettraininggroupresult response"),t(e.data)})).catch((function(e){throw console.log(e),n(e),e}))})),l=e=>new Promise((function(t,n){let o="".concat("https://api-app.readerseye.com","/api/v2/training/toggleautolevelupdate");a.a.post(o,e).then((e=>{console.log("toggleautolevelupdate response"),t(e.data)})).catch((function(e){throw console.log(e),n(e),e}))})),d=e=>new Promise((function(t,n){let o="".concat("https://api-app.readerseye.com","/api/v2/training/forcelevelupdate");a.a.post(o,e).then((e=>{console.log("forcelevelupdate response"),t(e.data)})).catch((function(e){throw console.log(e),n(e),e}))})),u=e=>new Promise((function(t,n){a.a.post("https://api-app.readerseye.com/api/v2/training/sendtrainingreporttextmsg",e).then((e=>{console.log("<>"),t(e.data)})).catch((function(e){throw console.log(e),n(e),e}))})),p=e=>new Promise((function(t,n){a.a.post("https://api-app.readerseye.com/api/v2/training/sendtrainingreportemail",e).then((e=>{console.log("<>"),t(e.data)})).catch((function(e){throw console.log(e),n(e),e}))})),g=e=>new Promise((function(t,n){let o="".concat("https://api-app.readerseye.com","/api/v2/training/gettesteelevelscorechartdata");a.a.post(o,e).then((e=>{console.log("gettesteelevelscorechartdata response"),t(e.data)})).catch((function(e){throw console.log(e),n(e),e}))})),h=e=>new Promise((function(t,n){a.a.post("https://api-app.readerseye.com/api/v2/training/batchchangetrainingv2",e).then((e=>{console.log("<>"),t(e.data)})).catch((function(e){throw console.log(e),n(e),e}))}))},32:function(e,t,n){"use strict";n.d(t,"a",(function(){return o})),n.d(t,"d",(function(){return s})),n.d(t,"c",(function(){return r})),n.d(t,"b",(function(){return i}));var a=n(2);window.console.log("reading\uac1c\ubc1c log \uc0c1\ud0dc:"+!0);const o=e=>new Promise((function(t,n){a.a.post("https://api-app.readerseye.com/api/v2/reading/checkrange",e).then((e=>{console.log("<>"),t(e.data)})).catch((function(e){throw console.log(e),n(e),e}))})),s=e=>new Promise((function(t,n){a.a.post("https://api-app.readerseye.com/api/v2/reading/sendtextmsg",e).then((e=>{console.log("<>"),t(e.data)})).catch((function(e){throw console.log(e),n(e),e}))})),r=e=>new Promise((function(t,n){a.a.post("https://api-app.readerseye.com/api/v2/reading/rrsendemail",e).then((e=>{console.log("<>"),t(e.data)})).catch((function(e){throw console.log(e),n(e),e}))})),i=e=>new Promise((function(t,n){a.a.post("https://api-app.readerseye.com/api/v2/reading/fixgroupreadinglevel",e).then((e=>{console.log("<>"),t(e.data)})).catch((function(e){throw console.log(e),n(e),e}))}))},33:function(e,t,n){"use strict";n.d(t,"b",(function(){return s}));var a=n(47);const o={subagencyList:{data:[]}},s=()=>async e=>{const t=await Object(a.e)();if(t.valid)return new Promise((n=>{e({type:"SET_SUBAGENCY",payload:{data:t.body}}),n({valid:!0,data:t.body})}))};t.a=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:o,t=arguments.length>1?arguments[1]:void 0;const{type:n,payload:a}=t;switch(n){case"LOGOUT":return console.log("\ub85c\uadf8\uc544\uc6c3 subagencyList"),{subagencyList:{data:[]}};case"SET_SUBAGENCY":return{...e,subagencyList:{data:a.data}};default:return e}}},34:function(e,t,n){"use strict";n.d(t,"b",(function(){return c})),n.d(t,"c",(function(){return l})),n.d(t,"a",(function(){return d}));var a=n(5),o=n(2),s=n(3);n.n(s).a.tz.setDefault("Asia/Seoul");const r=!0;window.console.log("tip\uac1c\ubc1c log \uc0c1\ud0dc:"+r);const i=e=>{window.console.log(e)},c=e=>new Promise((function(t,n){o.a.post("https://api-app.readerseye.com/api/v1/tip/alllist",e).then((e=>{i("<>");const n=e.data,o=n.results;if(n.valid)for(let t=0;tnew Promise((function(t,n){o.a.post("https://api-app.readerseye.com/api/v1/tip/updatelike",e).then((e=>{i("<>"),t(e.data)})).catch((function(e){throw i(e),n(e),e}))})),d=e=>new Promise((function(t,n){o.a.post("https://api-app.readerseye.com/api/v1/tip/fixtipperiod",e).then((e=>{i("<>"),t(e.data)})).catch((function(e){throw i(e),n(e),e}))}))},39:function(e,t,n){"use strict";n.d(t,"b",(function(){return a})),n.d(t,"a",(function(){return o}));const a=e=>t=>new Promise((function(n){t({type:"SET_SUBSCRIPTIONINFORM",inform:e}),n({valid:!0,msg:"subscription\uc815\ubcf4 \uc5c5\ub370\uc774\ud2b8"})})),o=()=>e=>new Promise((function(t){e({type:"DEL_SUBSCRIPTIONINFORM"}),t({valid:!0,msg:"subscription\uc0ad\uc81c\uc644\ub8cc"})}))},47:function(e,t,n){"use strict";n.d(t,"e",(function(){return r})),n.d(t,"a",(function(){return i})),n.d(t,"d",(function(){return c})),n.d(t,"c",(function(){return l})),n.d(t,"b",(function(){return d})),n.d(t,"g",(function(){return u})),n.d(t,"f",(function(){return p}));var a=n(2);const o=!0;window.console.log("subagency\uac1c\ubc1c log \uc0c1\ud0dc:"+o);const s=e=>{window.console.log(e)},r=e=>new Promise((function(t,n){a.a.post("https://api-app.readerseye.com/api/v1/subagency/list",e).then((e=>{if(s("<>"),e.data.valid){let t=e.data.body;for(let e=0;enew Promise((function(t,n){a.a.post("https://api-app.readerseye.com/api/v1/subagency/add",e).then((e=>{s("<>"),t(e.data)})).catch((function(e){t({valid:!1,msg:e}),alert(e)}))})),c=e=>new Promise((function(t,n){a.a.post("https://api-app.readerseye.com/api/v1/subagency/fix",e).then((e=>{s("<>"),t(e.data)})).catch((function(e){t({valid:!1,msg:e}),alert(e)}))})),l=e=>new Promise((function(t,n){a.a.post("https://api-app.readerseye.com/api/v1/subagency/del",e).then((e=>{s("<>"),t(e.data)})).catch((function(e){t({valid:!1,msg:e}),alert(e)}))})),d=e=>new Promise((function(t,n){a.a.post("https://api-app.readerseye.com/api/v1/subagency/delall",e).then((e=>{s("<>"),t(e.data)})).catch((function(e){t({valid:!1,msg:e}),alert(e)}))})),u=e=>new Promise((function(t,n){a.a.post("https://api-app.readerseye.com/api/v1/subagency/subagencyregistrationbatch",e).then((e=>{s("<>"),t(e.data)})).catch((function(e){t({valid:!1,msg:e})}))})),p=e=>new Promise((function(t,n){a.a.post("https://api-app.readerseye.com/api/v1/subagency/subagencylistdownload",e,{responseType:"blob"}).then((e=>{s("<>"),t(e.data)})).catch((function(e){t({valid:!1,msg:e})}))}))},48:function(e,t,n){"use strict";n(0),n(86);var a=n(65),o=n.n(a),s=n(1);t.a=e=>{let{cursor:t,disabled:n,id:a,name:r,className:i,label:c,checked:l,onClick:d,defaultChecked:u,...p}=e;const g=a||o.a.uniqueId();return Object(s.jsxs)("div",{className:"CheckBox bounce ".concat(i||""),...p,children:[Object(s.jsx)("input",{id:g,className:"".concat(n?"disabled":""),name:r,type:"checkbox",defaultChecked:u,checked:l,disabled:n,onChange:()=>{},onClick:d,style:{cursor:t||"pointer"}}),Object(s.jsx)("svg",{viewBox:"0 0 21 21",children:Object(s.jsx)("polyline",{points:"5 10.75 8.5 14.25 16 6"})}),c&&Object(s.jsx)("label",{htmlFor:g,className:"".concat(n?"disabled":""),style:{cursor:t||"pointer"},onClick:()=>{},children:c})]})}},49:function(e,t,n){"use strict";n(0);var a=n(1);t.a=e=>{let{...t}=e;const{name:n,checked:o,onClick:s,label:r}=t;return Object(a.jsxs)("label",{...t,onClick:e=>{e.preventDefault(),s()},children:[Object(a.jsx)("input",{type:"radio",name:n,checked:o,onChange:()=>{}}),Object(a.jsx)("span",{className:"radio"}),Object(a.jsx)("span",{children:r})]})}},5:function(e,t,n){"use strict";n.d(t,"c",(function(){return l})),n.d(t,"g",(function(){return d})),n.d(t,"a",(function(){return u})),n.d(t,"d",(function(){return p})),n.d(t,"i",(function(){return g})),n.d(t,"h",(function(){return h})),n.d(t,"b",(function(){return m})),n.d(t,"f",(function(){return f})),n.d(t,"e",(function(){return _}));var a=n(3),o=n.n(a),s=n(0),r=n.n(s),i=n(30),c=n(19);const l=(e,t)=>o()(e).utc().format("".concat("date"===t?"YYYY-MM-DD":"short"===t?"YY-MM-DD":"YYYY-MM-DD HH:mm:ss")),d=e=>e>8e4?"\ub2e4\uc774\uc544\ubaac\ub4dc":e>4e4?"\ud50c\ub798\ud2f0\ub118":e>15e3?"\uace8\ub4dc":e>5e3?"\uc2e4\ubc84":"\ube0c\ub860\uc988",u=e=>{const t=r.a.lazy(e);return t.preload=e,t},p=e=>{const t=e.split(","),n={"\uc77c":0,"\uc6d4":1,"\ud654":2,"\uc218":3,"\ubaa9":4,"\uae08":5,"\ud1a0":6},a=Array(7).fill(!1);for(let o=0;onew Promise((t=>{window.childApp?(clearInterval(window.childVerify),window.childApp.close(),delete window.childApp,window.childApp=window.open(e),window.childVerify=setInterval((()=>{window.childApp.closed&&(clearInterval(window.childVerify),t())}),500)):(window.childApp=window.open(e),window.childVerify=setInterval((()=>{window.childApp.closed&&(clearInterval(window.childVerify),t())}),500))})),h=e=>new Promise(((t,n)=>{let a=new Image;a.onload=()=>{var e;let n=document.createElement("canvas");n.width=a.naturalWidth,n.height=a.naturalHeight,null===(e=n.getContext("2d"))||void 0===e||e.drawImage(a,0,0);let o=n.toDataURL();t(o)},a.crossOrigin="Anonymous",a.src=e})),m=(e,t)=>{const n=e.split(","),a=n[0].match(/:(.*?);/)[1],o=atob(n[1]);let s=o.length;const r=new Uint8Array(s);for(;s--;)r[s]=o.charCodeAt(s);return new File([r],t,{type:a})},f=e=>{const t=o()(e).format("YYYY-MM"),n=o()(e).format("YYYY-MM-DD");let a=0,s=null;if("Invalid date"===n)s=!0;else{const e=o()(new Date).format("YYYY-MM-DD");a=+(o()(e,"YYYY-MM-DD").diff(o()(n,"YYYY-MM-DD"))/31556952e3).toFixed(2),a<=7?a=7:a>=30&&(a=30)}return{error:s,showBirth:t,birthday:n,level:a}},_=(e,t)=>{if(!e||!["reading","training","screening","pathway","rsu"].includes(e)||!t)return"".concat("https://eyeresult.com","/");let n="".concat("https://eyeresult.com"),a="";const o=Object(i.d)().add(36,"month").format("YYMMDD");if("reading"===e){const{hide:s,pdf:r,textsetresult_idx:i,pw:l,agency_idx:d}=t;n+="/".concat(e,"?tc="),a="".concat(s?1:0,"/").concat(r?1:0,"/").concat(o,"/").concat(i),l&&(a+="/".concat(l)),a=Object(c.a)(a),d&&(a+="&ai=".concat(d))}else if("training"===e){const{agency_idx:s,language:r,testee_idx:i,pw:l,startDate:d,endDate:u,mode:p,year:g,unit:h,period:m}=t;n+="/".concat(e,"/");const f=1===p?"".concat(p).concat(g).concat(h).concat(m):"0",_=d.replace(/-/g,"").slice(2),x=u.replace(/-/g,"").slice(2);a="".concat(s,"/").concat(i,"/").concat(_,"/").concat(x,"/").concat(f,"/").concat(r,"/").concat(o),l&&(a+="/".concat(l)),a=Object(c.a)(a)}else if("screening"===e){const{selRows:s,testee_idx:r,hide:i,pw:l}=t;n+="/".concat(e,"?tc="),a="".concat(r,"/").concat(i?1:0,"/").concat(o),l&&(a+="/".concat(l)),a=Object(c.a)(a);const d=s.map((e=>{let t="";const n=e.type;return"\ub3c4\uc57d\uc548\uad6c\uc6b4\ub3d9"===n||"saccade"===n?t="s"+e.scr_saccade_idx:"\ucd94\uc801\uc548\uad6c\uc6b4\ub3d9"===n||"pursuit"===n?t="p"+e.scr_pursuit_idx:"\uc2dc\uac01\ubc18\uc751\ud1b5\uc81c"!==n&&"antisaccade"!==n||(t="a"+e.scr_antisaccade_idx),t})).join("/");a+="&ia=".concat(Object(c.a)(d))}else if("pathway"===e){const{pathwaypdf_result_idx:s,pw:r}=t;n+="/".concat(e,"?tc="),a="".concat(o,"/").concat(s),r&&(a+="/".concat(r)),a=Object(c.a)(a)}else if("rsu"===e){const{testee_idx:e,startDate:s,endDate:r,mode:i,year:l,unit:d,period:u,language:p,hexValue:g,hide:h,pw:m}=t;n+="/reading/summary/user?tc=",a="".concat(o,"/").concat(e,"/").concat(s,"/").concat(r,"/").concat(p,"/").concat(g,"/").concat(i).concat(l).concat(d).concat(u,"/").concat(h?1:0),m&&(a+="/".concat(m)),a=Object(c.a)(a)}return n+a}},50:function(e,t,n){"use strict";n.d(t,"a",(function(){return l})),n.d(t,"d",(function(){return d})),n.d(t,"f",(function(){return u})),n.d(t,"b",(function(){return p})),n.d(t,"c",(function(){return g})),n.d(t,"e",(function(){return h})),n.d(t,"g",(function(){return m}));var a=n(2),o=n(3),s=n.n(o);const r=!0;window.console.log("screening\uac1c\ubc1c log \uc0c1\ud0dc:"+r);const i=e=>{window.console.log(e)},c=e=>{let t=e.gazeData,n=e.gazeProperty,a=[];for(let o=0;onew Promise((function(t,n){a.a.post("https://api-app.readerseye.com/api/v1/testee/deletescreeningdata",e).then((e=>{i("<>"),t(e.data)})).catch((function(e){throw i(e),n(e),e}))})),d=e=>new Promise((function(t,n){a.a.post("https://api-app.readerseye.com/api/v1/testee/testeescreeninglist",e).then((e=>{if(i("<>"),e.data.valid){let t=e.data.body,n=[];for(let e=0;enew Promise((function(t,n){a.a.post("https://api-app.readerseye.com/api/v1/screening/getmultiplesr",e).then((e=>{if(i("<>"),e.data.valid)for(let t=0;tnew Promise((function(t,n){a.a.post("https://api-app.readerseye.com/api/v1/screening/groupdata",e).then((e=>{if(i("<>"),e.data.valid){let t=e.data.groupData;for(let e=0;enew Promise((function(t,n){a.a.post("https://api-app.readerseye.com/api/v1/screening/getscreeningresult",e).then((e=>{i("<>"),t(e.data)})).catch((function(e){throw i(e),n(e),e}))})),h=e=>new Promise((function(t,n){a.a.post("https://api-app.readerseye.com/api/v1/testee/testeescreeninglist",e).then((e=>{if(i("<>"),e.data.valid){let t=e.data.body,n=[];for(let e=0;enew Date(t.savetime)-new Date(e.savetime))).slice(0,3)}t(e.data)})).catch((function(e){throw i(e),n(e),e}))})),m=e=>new Promise((function(t,n){a.a.post("https://api-app.readerseye.com/api/v1/screening/setclinicdata",e).then((e=>{i("<>"),t(e.data)})).catch((function(e){throw i(e),n(e),e}))}))},60:function(e,t,n){"use strict";n(140);var a=n(1);t.a=()=>Object(a.jsxs)("div",{className:"dotLoading",children:[Object(a.jsx)("div",{className:"dot dot1"}),Object(a.jsx)("div",{className:"dot dot2"}),Object(a.jsx)("div",{className:"dot dot3"})]})},61:function(e,t,n){"use strict";n.d(t,"a",(function(){return u})),n.d(t,"b",(function(){return p}));var a=n(0),o=n(22),s=n(32),r=n(9),i=n(16),c=n(31),l=n(1);const d=Object(a.createContext)(),u=e=>{let{children:t}=e;const[n,u]=Object(a.useState)(!1),p=Object(r.c)(),{testeeList:g}=Object(r.d)((e=>e.testee)),h={sendEmail:async e=>new Promise((async(t,n)=>{u(!0);try{let n=await Object(s.c)(e);u(!1),t(n)}catch(a){console.error("\uc774\uba54\uc77c \ubcf4\ub0b4\uae30 \uc2e4\ud328:",a.message),u(!1),n(a)}})),updateTesteeEmail:e=>new Promise((async(t,n)=>{u(!0);try{let n=await Object(o.i)(e);u(!1),t(n)}catch(a){console.error("\uc774\uba54\uc77c \uc5c5\ub370\uc774\ud2b8 \uc2e4\ud328:",a.message),u(!1),n(a)}})),changeTesteeEmailWithoutAPIcall:Object(a.useCallback)((e=>{let{testee_idx:t,email:n}=e;const a=g.data.findIndex((e=>e.testee_idx===t));-1!==a&&(g.data[a].testee_email=n,p(Object(i.d)(JSON.parse(JSON.stringify(g.data)))))}),[g,p]),pending:n,sendTrainingEmail:async e=>new Promise((async(t,n)=>{u(!0);try{let n=await Object(c.h)(e);u(!1),t(n)}catch(a){console.error("\uc774\uba54\uc77c \ubcf4\ub0b4\uae30 \uc2e4\ud328:",a.message),u(!1),n(a)}}))};return Object(l.jsx)(d.Provider,{value:h,children:t})},p=()=>Object(a.useContext)(d)},62:function(e,t,n){"use strict";n.d(t,"a",(function(){return u})),n.d(t,"b",(function(){return p}));var a=n(0),o=n(22),s=n(32),r=n(9),i=n(16),c=n(31),l=n(1);const d=Object(a.createContext)(),u=e=>{let{children:t}=e;const[n,u]=Object(a.useState)(!1),p=Object(r.c)(),{testeeList:g}=Object(r.d)((e=>e.testee)),h={changeTesteePhoneWithoutAPIcall:Object(a.useCallback)((e=>{let{testee_idx:t,newphone:n}=e;const a=g.data.findIndex((e=>e.testee_idx===t));-1!==a&&(g.data[a].testee_phone=n,p(Object(i.d)(JSON.parse(JSON.stringify(g.data)))))}),[g,p]),updateTesteePhone:e=>new Promise((async(t,n)=>{u(!0);try{let n=await Object(o.j)(e);u(!1),t(n)}catch(a){console.error("\ud578\ub4dc\ud3f0 \ubc88\ud638 \uc5c5\ub370\uc774\ud2b8 \uc2e4\ud328:",a.message),u(!1),n(a)}})),sendMsgPhone:async e=>new Promise((async(t,n)=>{u(!0);try{let n=await Object(s.d)(e);u(!1),t(n)}catch(a){console.error("SMS \ubcf4\ub0b4\uae30 \uc2e4\ud328:",a.message),u(!1),n(a)}})),sendTrainingMsgPhone:async e=>new Promise((async(t,n)=>{u(!0);try{let n=await Object(c.i)(e);u(!1),t(n)}catch(a){console.error("SMS \ubcf4\ub0b4\uae30 \uc2e4\ud328:",a.message),u(!1),n(a)}})),pending:n};return Object(l.jsx)(d.Provider,{value:h,children:t})},p=()=>Object(a.useContext)(d)},77:function(e,t,n){},83:function(e,t,n){},85:function(e,t,n){},86:function(e,t,n){},87:function(e,t,n){},88:function(e,t,n){}},[[146,14,15]]]);