1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5855],{38599:function(o,l,t){"use strict";t.d(l,{default:function(){return i}});var s=t(57437),e=t(2265),a=t(27526),r=t(83444);function i(o){let{appleLoginEnabled:l=!1,preferAppleFirst:t=!1}=o,i=window.location.href,[c,n]=(0,e.useState)(!1),_=(0,e.useMemo)(()=>{let o={id:"google",label:"Googleë¡ ê³ìí기",icon:(0,s.jsx)(r._8,{})},e=l?{id:"apple",label:"Appleë¡ ê³ìí기",icon:(0,s.jsx)(r.qw,{})}:null;return e?t?[e,o]:[o,e]:[o]},[l,t]),h=[{id:"naver",label:"Naverë¡ ê³ìí기",icon:(0,s.jsx)(r.bg,{})},{id:"kakao",label:"Kakaoë¡ ê³ìí기",icon:(0,s.jsx)(r.Pv,{})}],d="w-full h-[46px] rounded-xl bg-white hover:bg-zinc-50 dark:bg-[#27272a] dark:hover:bg-[#3f3f46] border border-zinc-200 dark:border-zinc-700 flex items-center justify-center gap-3 text-zinc-700 dark:text-white transition text-sm font-medium";return(0,s.jsxs)("div",{className:"space-y-2.5",children:[_.map(o=>(0,s.jsxs)("button",{type:"button","data-testid":"oauth-login-".concat(o.id),onClick:()=>(0,a.zB)(o.id,{callbackUrl:i}),className:d,children:[o.icon,o.label]},o.id)),(0,s.jsx)("button",{type:"button","data-testid":"oauth-more-methods","aria-expanded":c,onClick:()=>n(o=>!o),className:"w-full h-10 text-sm text-zinc-500 dark:text-zinc-400 underline underline-offset-2",children:"ë¤ë¥¸ ë°©ë²ì¼ë¡ ë¡ê·¸ì¸"}),c&&h.map(o=>(0,s.jsxs)("button",{type:"button","data-testid":"oauth-login-".concat(o.id),onClick:()=>(0,a.zB)(o.id,{callbackUrl:i}),className:d,children:[o.icon,o.label]},o.id))]})}},75855:function(o,l,t){"use strict";t.d(l,{default:function(){return p}});var s=t(57437),e=t(2265),a=t(27526),r=t(36950),i=t(31235),c=t(71719),n=t(40291),_=t(38599),h=t(45007),d=t(50647),b=t.n(d),g=t(77261),u=t.
1n(g);function p(o){var l,t,d;let{fromLink:g=!1,appleLoginEnabled:p=!1}=o,{status:m,data:f}=(0,a.kP)(),[y,v]=(0,e.useState)(""),[w,x]=(0,e.useState)(null),[S,j]=(0,e.useState)(!1),[C,k]=(0,e.useState)(""),[N,F]=(0,e.useState)(!1),[R,L]=(0,e.useState)(0),E=(0,e.useRef)(0),O=(0,e.useRef)(!1),z=(0,c.q)(y),I=/^[A-Z0-9-]*$/.test(y)&&y.replace(/-/g,"").length<12;(0,e.useEffect)(()=>{g&&v((0,c.q)(window.location.href))},[g]),(0,e.useEffect)(()=>{let o=++E.current;return(x(null),k(""),F(!1),"authenticated"===m&&z)?(F(!0),(0,r.F)({action:"preview-invite",token:z}).then(l=>{o!==E.current||(l.success&&!Array.isArray(l.data)&&"invitationPreview"in l.data?x(l.data.invitationPreview):l.success||k(l.error))}).catch(()=>{o===E.current&&k("ì´ë를 íì¸íì§ ëª»íìµëë¤. ì°ê²°ì íì¸í ë¤ ë¤ì ìëí´ ì£¼ì¸ì.")}).finally(()=>{o===E.current&&F(!1)}),()=>{E.current++}):void 0},[z,m,null==f?void 0:null===(l=f.user)||void 0===l?void 0:l.id,R]);let P=async()=>{if(w&&z&&!O.current){O.current=!0,F(!0),k("");try{let l=await (0,r.F)({action:"join",token:z});if(!l.success){k(l.error);return}if(!Array.isArray(l.data)&&"spaceId"in l.data){try{var o;sessionStorage.setItem("school-collaboration:navigation:".concat(null==f?void 0:null===(o=f.user)||void 0===o?void 0:o.id),JSON.stringify({spaceId:l.data.spaceId,tab:"start"}))}catch(o){}j(!0)}}catch(o){k("ì°¸ì¬íì§ ëª»íìµëë¤. ì°ê²°ì íì¸í ë¤ ë¤ì ìëí´ ì£¼ì¸ì.")}finally{O.current=!1,F(!1)}}};if(S){let o=null==w?void 0:w.roles.map(o=>(0,i.S4)(o,w)).join(" \xb7 ");return(0,s.jsxs)("section",{className:b().celebrate,role:"status",children:[(0,s.jsx)(h.w,{src:"/lordicons/collaboration-confetti.json",size:112,trigger:"in",originalColors:!0}),(0,s.jsx)("h2",{children:"íêµì ì°ê²°ëììµëë¤"}),(0,s.jsxs)("p",{children:[(0,s.jsx)("strong",{children:null==w?void 0:w.schoolName}),o?" \xb7 ".concat(o):""]}),(0,s.jsxs)("div",{className:b().actions,children:[(0,s.jsx)("a",{className:b().primary,href:"/#student-management",children:"íì ê´ë¦¬ë¡ ì´ë"}),(0,s.jsx)("a",{className:b().secondary,href:"/school-collaboration",children:"íêµ íì
보기"})]})]})}return(0,s.jsxs)("section",{className:u().acceptInvitation,"aria-busy":N,children:[!g&&(0,s.jsxs)("label",{children:["ì´ë ì½ë",(0,s.jsx)("input",{autoComplete:"off",spellCheck:!1,value:y,disabled:O.current,onChange:o=>v((0,n.HL)(o.target.value)),placeholder:"ì: K7QM-3FXP-9RTA ëë ì´ë ë§í¬"})]}),!g&&(0,s.jsx)("small",{className:b().note,children:"ê¸ìë§ ì
ë ¥íë©´ íì´í(-)ì ìëì¼ë¡ ë¤ì´ê°ëë¤."}),!g&&y.trim()&&!z&&!I&&(0,s.jsx)("p",{className:b().note,role:"status",children:"ì´ë ì½ë íìì´ ìëëë¤. íêµ ê´ë¦¬ììê² ë°ì 12ì리 ì½ë(ì: K7QM-3FXP-9RTA) ëë ì´ë ë§í¬ë¥¼ íì¸í´ 주ì¸ì."}),!g&&!y.trim()&&"authenticated"===m&&(0,s.jsx)("p",{className:b().note,children:"ì½ë를 ë¶ì¬ ë£ì¼ë©´ íêµì ë§¡ì ìí ì´ íìëê³ , íì¸ í ì°¸ì¬í ì ììµëë¤."}),g&&!z&&(0,s.jsx)("p",{role:"alert",children:"ì´ë ë§í¬ë¥¼ íì¸í´ 주ì¸ì. ì ë¬ë°ì ë§í¬ ì 체를 ì´ì´ì¼ í©ëë¤."}),"unauthenticated"===m?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("p",{children:"ë¡ê·¸ì¸íë©´ íêµì ë§¡ì ìí ì íì¸í ì ììµëë¤."}),(0,s.jsx)(_.default,{appleLoginEnabled:p})]}):(0,s.jsxs)(s.Fragment,{children:[N&&!w&&(0,s.jsx)("p",{role:"status",children:"ì´ë를 íì¸íê³ ììµëë¤."}),w&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("h2",{children:w.schoolName}),(0,s.jsxs)("p",{children:[w.academicYear,"íë
ë \xb7 ",(0,i.cM)(w.office)]}),(0,s.jsxs)("dl",{children:[(0,s.jsx)("dt",{children:"ë´ ê³ì "}),(0,s.jsx)("dd",{children:(null==f?void 0:null===(t=f.user)||void 0===t?void 0:t.email)||(null==f?void 0:null===(d=f.user)||void 0===d?void 0:d.name)}),(0,s.jsx)("dt",{children:"ë§¡ì ìí "}),(0,s.jsx)("dd",{children:w.roles.length?w.roles.map((o,l)=>(0,s.jsxs)("span",{children:[(0,i.S4)(o,w),o.viewScope&&(0,s.jsxs)("small",{children:["ì¡°í: ","school"===o.viewScope?"íêµ ì ì²´":"none"===o.viewScope?"ì¡°í ìì":o.viewScope.startsWith("grade:")?"".concat(o.viewScope.slice(6),"íë
ì ì²´"):(()=>{let l=w.classes.find(l=>"class:".concat(l.id)===o.viewScope);return l?"".concat(l.grade,"íë
").concat(l.classNum,"ë°"):"ì§ì íê¸"})()]})]},l)):"ì°¸ì¬ í ë°°ì "})]}),(0,s.jsx)("p",{children:"ì°¸ì¬íë©´ ë§¡ì ìí ì ë§ë íì ìë£ë¥¼ í¨ê» ë³¼ ì ììµëë¤."}),(0,s.jsx)("button",{className:b().primary,disabled:N,onClick:()=>void P(),children:N?"ì°¸ì¬íë ì¤â¦":"íêµ ì°¸ì¬í기"})]})]}),C&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("p",{className:b().error,role:"alert",children:C}),z&&!N&&(0,s.jsx)("button",{className:b().secondary,onClick:()=>L(o=>o+1),children:"ì´ë ë¤ì íì¸"})]})]})}},50647:function(o){o.exports={page:"school-collaboration_page__ysbiE",header:"school-collaboration_header__FfOpN",note:"school-collaboration_note__2Ivdz",primary:"school-collaboration_primary__seN2J",secondary:"school-collaboration_secondary__t7UJs",link:"school-collaboration_link__0qKo3",iconButton:"school-collaboration_iconButton__2wQsT",dangerLink:"school-collaboration_dangerLink__6hwgt",section:"school-collaboration_section__xGjoz",start:"school-collaboration_start__N2cK1",actions:"school-collaboration_actions__UZ_lw",celebrate:"school-collaboration_celebrate__SZzQB",list:"school-collaboration_list__C2zVm",schoolRow:"school-collaboration_schoolRow__RGnDF",memberRow:"school-collaboration_memberRow__Z8sC0",form:"school-collaboration_form__FKHxY",search:"school-collaboration_search__dPC3d",combo:"school-collaboration_combo___dahN",dropdown:"school-collaboration_dropdown__lmsp_",option:"school-collaboration_option__Jz023",optionHint:"school-collaboration_optionHint__pMMBh",confirm:"school-collaboration_confirm___8pTA",error:"school-collaboration_error___qvPa",notice:"school-collaboration_notice__gwUHQ",empty:"school-collaboration_empty__yecN6",tabs:"school-collaboration_tabs__uqf_3",steps:"school-collaboration_steps__lOsQ_",inlineForm:"school-collaboration_inlineForm__y2_n_",classLayout:"school-collaboration_classLayout__oY16t",classList:"school-collaboration_classList__PF28b",table:"school-collaboration_table__ERcFW",pending:"school-collaboration_pending__rc6qZ",subheading:"school-collaboration_subheading__Fe3X6",roleEditor:"school-collaboration_roleEditor__iwnNC",fields:"school-collaboration_fields__zIE1e",checkbox:"school-collaboration_checkbox__CgcA8",scope:"school-collaboration_scope__s2W2Q",statHeading:"school-collaboration_statHeading__YdiGy",tableScroll:"school-collaboration_tableScroll__1NSOj",tableCaption:"school-collaboration_tableCaption__anUPk",statCount:"school-collaboration_statCount__LEApt",uploadFields:"school-collaboration_uploadFields__JxnpO",orgHeading:"school-collaboration_orgHeading__BqZyY",orgSummary:"school-collaboration_orgSummary__sF8sl",orgToolbar:"school-collaboration_orgToolbar__uGCq_",orgViewSwitch:"school-collaboration_orgViewSwitch__hLDko",orgRoot:"school-collaboration_orgRoot__mrzGz",orgBranches:"school-collaboration_orgBranches__z53fS",orgOffice:"school-collaboration_orgOffice__LoWyW",orgPerson:"school-collaboration_orgPerson__Pl1_m",orgBadge:"school-collaboration_orgBadge__nrCAW",orgClassStrip:"school-collaboration_orgClassStrip__w9ReJ",orgEmpty:"school-collaboration_orgEmpty__GC17k",orgRowActions:"school-collaboration_orgRowActions__4tL1C",orgEditor:"school-collaboration_orgEditor__75Idu",orgInvite:"school-collaboration_orgInvite__40SUQ",yearSection:"school-collaboration_yearSection__KLH2f",yearReview:"school-collaboration_yearReview__Y04BW",yearExcluded:"school-collaboration_yearExcluded___JGXG",historyList:"school-collaboration_historyList__boTPB"}},77261:function(o){o.exports={sharedHeader:"school-collaboration_header__FfOpN",sharedSection:"school-collaboration_section__xGjoz",sharedStart:"school-collaboration_start__N2cK1",sharedPrimary:"school-collaboration_primary__seN2J",sharedSecondary:"school-collaboration_secondary__t7UJs",sharedLink:"school-collaboration_link__0qKo3",sharedIconButton:"school-collaboration_iconButton__2wQsT",sharedDangerLink:"school-collaboration_dangerLink__6hwgt",sharedTabs:"school-collaboration_tabs__uqf_3",sharedNote:"school-collaboration_note__2Ivdz",sharedForm:"school-collaboration_form__FKHxY",sharedFields:"school-collaboration_fields__zIE1e",sharedActions:"school-collaboration_actions__UZ_lw",sharedList:"school-collaboration_list__C2zVm",sharedSchoolRow:"school-collaboration_schoolRow__RGnDF",sharedMemberRow:"school-collaboration_memberRow__Z8sC0",sharedSearch:"school-collaboration_search__dPC3d",sharedConfirm:"school-collaboration_confirm___8pTA",sharedError:"school-collaboration_error___qvPa",sharedNotice:"school-collaboration_notice__gwUHQ",sharedEmpty:"school-collaboration_empty__yecN6",
1sharedSteps:"school-collaboration_steps__lOsQ_",sharedInlineForm:"school-collaboration_inlineForm__y2_n_",sharedClassLayout:"school-collaboration_classLayout__oY16t",sharedClassList:"school-collaboration_classList__PF28b",sharedTable:"school-collaboration_table__ERcFW",sharedTableScroll:"school-collaboration_tableScroll__1NSOj",sharedTableCaption:"school-collaboration_tableCaption__anUPk",sharedPending:"school-collaboration_pending__rc6qZ",sharedRoleEditor:"school-collaboration_roleEditor__iwnNC",sharedCheckbox:"school-collaboration_checkbox__CgcA8",sharedScope:"school-collaboration_scope__s2W2Q",sharedUploadFields:"school-collaboration_uploadFields__JxnpO",sharedOrgHeading:"school-collaboration_orgHeading__BqZyY",sharedOrgSummary:"school-collaboration_orgSummary__sF8sl",sharedOrgToolbar:"school-collaboration_orgToolbar__uGCq_",sharedOrgViewSwitch:"school-collaboration_orgViewSwitch__hLDko",sharedOrgRoot:"school-collaboration_orgRoot__mrzGz",sharedOrgBranches:"school-collaboration_orgBranches__z53fS",sharedOrgOffice:"school-collaboration_orgOffice__LoWyW",sharedOrgPerson:"school-collaboration_orgPerson__Pl1_m",sharedOrgBadge:"school-collaboration_orgBadge__nrCAW",sharedOrgClassStrip:"school-collaboration_orgClassStrip__w9ReJ",sharedOrgEmpty:"school-collaboration_orgEmpty__GC17k",sharedOrgRowActions:"school-collaboration_orgRowActions__4tL1C",sharedOrgEditor:"school-collaboration_orgEditor__75Idu",sharedOrgInvite:"school-collaboration_orgInvite__40SUQ",sharedYearSection:"school-collaboration_yearSection__KLH2f",sharedHistoryList:"school-collaboration_historyList__boTPB",identity:"school-settings_identity__lSsXg",avatar:"school-settings_avatar__duBLQ",memberName:"school-settings_memberName___1XaW",status:"school-settings_status__VyF6N",counts:"school-settings_counts__KMARJ",directory:"school-settings_directory___az3k",roleLines:"school-settings_roleLines__KIoVp",schoolTitle:"school-settings_schoolTitle__fqEeV",schoolMark:"school-settings_schoolMark__bjozJ",welcomeCopy:"school-settings_welcomeCopy__ZRN8J",welcomeActions:"school-settings_welcomeActions__nkVz9",formIntro:"school-settings_formIntro__0RlNO",panelHeading:"school-settings_panelHeading__pfeg9",returnLink:"school-settings_returnLink__76KiH",entrySection:"school-settings_entrySection__sOJQ6",surface:"school-settings_surface__qXgd8",dragHandle:"school-settings_dragHandle__0EKqt",draggablePerson:"school-settings_draggablePerson__pnBdp",dragHelp:"school-settings_dragHelp__zwN3k",moveNotice:"school-settings_moveNotice__sxu4T",dragPreview:"school-settings_dragPreview__NM9gd",selfLabel:"school-settings_selfLabel__ObyyN",muted:"school-settings_muted__3gnv0",invitedIdentity:"school-settings_invitedIdentity__ZWelh",inviteAvatar:"school-settings_inviteAvatar__lZVaD",rowIcon:"school-settings_rowIcon__zeuBh",officeHeading:"school-settings_officeHeading__lJfpn",groupCount:"school-settings_groupCount__r6ehN",officeGroup:"school-settings_officeGroup__FxGDL",emptyGroup:"school-settings_emptyGroup__jmsVd",account:"school-settings_account__5pfBC",srOnly:"school-settings_srOnly__17m9i",editorRow:"school-settings_editorRow__q4vUn",inline
1Editor:"school-settings_inlineEditor__0jbxD",memberForm:"school-settings_memberForm__b6Sxm",editorFields:"school-settings_editorFields__WIZXi",editorGrid:"school-settings_editorGrid__jHiI3",editorOptions:"school-settings_editorOptions__C4znI",editorFooter:"school-settings_editorFooter__lrwG9",leaveButton:"school-settings_leaveButton__bKj4K",roleRows:"school-settings_roleRows__wqHZZ",roleRow:"school-settings_roleRow__h0tS1",addRole:"school-settings_addRole__r4a_p",officeInvite:"school-settings_officeInvite__t0r2a",invitationForm:"school-settings_invitationForm__EuCIL",invitationEmail:"school-settings_invitationEmail__tzHGt",invitationFooter:"school-settings_invitationFooter__t38T9",shareActions:"school-settings_shareActions__9C2Zy",invitationShare:"school-settings_invitationShare__liumg",acceptInvitation:"school-settings_acceptInvitation__fqZPV",taskFilters:"school-settings_taskFilters__J_5P_",preparedShare:"school-settings_preparedShare__Y4ZEu",rosterTasks:"school-settings_rosterTasks__cPwF7",batchCount:"school-settings_batchCount__rKzPS",nextStep:"school-settings_nextStep__PTY1I"}}}]);
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.