1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[182702],{243554:(e,t,s)=>{"use strict";s.d(t,{A:()=>i});var o=s(308706);let i={Basic:o.HT([{name:"password",type:o.Ty,opt:{msg:"ìë
ìì¼ì ì«ì 6ìë¦¬ë¡ ì
ë ¥í´ ì£¼ì¸ì."}}]),Corp:o.HT([{name:"password",type:o.dL,opt:{msg:"ì¬ì
ìë²í¸ë¥¼ ì«ì 10ìë¦¬ë¡ ì
ë ¥í´ ì£¼ì¸ì."}}])}},399928:(e,t,s)=>{"use strict";s.d(t,{A:()=>p});var o=s(262544),i=s(36068),r=s(106567),n=s(830951),a=s(51788),c=s(142988);let l="/api/v1/document/policy";class d{async checkSecret(e){try{let{data:t,status:s}=await (0,c.RK)({url:`${l}/files/check-secret/`,method:"POST",params:e,isEnc:!1});if(400===s||200!==s)throw{message:t.message,code:t.code};return{isSuccess:!0,payload:t}}catch(e){return{isSuccess:!1,errMsg:e.message||"ìë¹ì¤ ì¤ë¹ì¤ì
ëë¤.",code:e.code||""}}}async getDocumentInfo(e){try{let{data:t,status:s}=await (0,c.RK)({url:`${l}/${e}/`,method:"GET",isEnc:!1});if(200!==s)throw{message:t.message,code:t.code};return{isSuccess:!0,payload:"string"==typeof t?{}:t}}catch(e){return{isSuccess:!1,errMsg:e.message||"ìë¹ì¤ ì¤ë¹ì¤ì
ëë¤.",code:e.code||""}}}}var m=s(379495),u=s(243554),h=s(639189);let p=()=>{let[e,t]=(0,o.useState)(!1),{documentPolicyStore:s}=(0,a.useStores)(),{openSystemModal:l}=(0,o.useContext)(n.N),p=new d,y=(0,i.useRouter)(),f=(0,o.useMemo)(()=>void 0!==y.query.page?y.query.page:"PasswordCheck",[y.query]);(0,o.useEffect)(()=>{f&&logger.debug("page",f)},[f]);let g=e=>{let t={...m.parse(location.search),page:e},s=m.stringify(t),o=`/common/document/policy?${s}`;y.push(o,o,{shallow:!0})};function P(){t((0,h.A)((0,c.nQ)(s.basicInformation,s.isPersonal?u.A.Basic:u.A.Corp)))}async function b(){try{let e=m.parse(location.search).key??"";s.setLinkKey(e),(0,r.dR)();let t={linkKey:s.linkKey,password:s.basicInformation.password};logger.debug(t);let{isSuccess:o,errMsg:i,payload:n}=await p.checkSecret(t);if(!o)throw Error(i);s.setPolicyNumber(n),g("List")}catch(e){l({msg:e.message})}finally{(0,r.GH)()}}async function k(){try{(0,r.dR)();let{isSuccess:e,errMsg:t,payload:o}=await p.getDocumentInfo(s.linkKey);if(!e)throw Error(t);s.setDocumentInfo(o),s.setIsPersonal(o.linkInfo.isPersonal);let i=s.documentInfo.linkInfo.commonTermsFileName.split("_");if(3===i.length){let e=(0,c.cz)({gdCd:i[0],period:i[1]});s.setTermsFilePath(e)}else if(4===i.length){let e=i[0].indexOf("CA")>-1?"car":"general";if("car"===e){let e=(0,c.cz)({gdCd:i[0],period:i[1],number:"01_02"});s.setTermsFilePath(e)}else{let e=(0,c.cz)({gdCd:i[0],period:i[1]});s.setTermsFilePath(e.replace("01.pdf","01_cut.pdf"))}}}catch(e){l({msg:e.message})}finally{(0,r.GH)()}}async function C(){try{let e=s.documentInfo.linkInfo.isExpired;logger.debug("ë§í¬ ë§ë£ì¬ë¶",e),e&&g("TimeLimit")}catch(e){logger.error(e)}}return{page:f,init:async function(){let e=m.parse(location.search).key??"";s.setLinkKey(e),await k(),await C(),P()},active:e,handleChange:async function(e){let{name:t,value:o}=e.target||e.currentTarget;return s.setBasicInformation({...s.basicInformation,[t]:o}),P(),s.basicInformation},checkSecret:b,back:()=>{y.back()}}}},497423:(e,t,s)=>{"use strict";let o;s.r(t),s.d(t,{default:()=>P});var i=s(710940),r=s(262544),n=s(780926),a=s.n(n),c=s(851585),l=s(843893),d=s(798426),m=s(781768),u=s(399928),h=s(980594),p=s(61561),y=s(935664);class f extends y.A{constructor(){super(),this.linkKey="",this.isPersonal=!1,this.policyNumber="",this.termsFilePath="",this.basicInformation={password:""},this.documentInfo={},this.resetStore=e=>{e?this[e]=o[e]:Object.keys(o).map(e=>{this[e]=o[e]})},(0,p.makeObservable)(this),o=(0,p.toJS)(this)}setBasicInformation(e){this.basicInformation=e}setLinkKey(e){this.linkKey=e}setIsPersonal(e){this.isPersonal=e}setDocumentInfo(e){this.documentInfo=e}setPolicyNumber(e){this.policyNumber=e}setTermsFilePath(e){this.termsFilePath=e}}(0,h.Cg)([p.observable],f.prototype,"linkKey",void 0),(0,h.Cg)([p.observable],f.prototype,"isPersonal",void 0),(0,h.Cg)([p.observable],f.prototype,"policyNumber",void 0),(0,h.Cg)([p.observable],f.prototype,"termsFilePath",void 0),(0,h.Cg)([p.observable],f.prototype,"basicInformation",void 0),(0,h.Cg)([p.observable],f.prototype,"documentInfo",void 0),(0,h.Cg)([p.action],f.prototype,"resetStore",void 0),(0,h.Cg)([p.action],f.prototype,"setBasicInformation",null),(0,h.Cg)([p.action],f.prototype,"setLinkKey",null),(0,h.Cg)([p.action],f.prototype,"setIsPersonal",null),(0,h.Cg)([p.action],f.prototype,"setDocumentInfo",null),(0,h.Cg)([p.action],f.prototype,"setPolicyNumber",null),(0,h.Cg)([p.action],f.prototype,"setTermsFilePath",null);let g=new f,P=function(){let{page:e}=(0,u.A)();(0,r.useEffect)(()=>g.resetStore(),[]);let t=(0,r.useMemo)(()=>a()(()=>s(606169)(`./${e}`)),[e]);return(0,i.jsx)(c.Provider,{documentPolicyStore:g,children:"PC"===l.A.getChannel()?(0,i.jsx)(d.A,{title:"",footer:!1,children:(0,i.jsx)(t,{})}):"APP"===l.A.getChannel()||"MOBILE"===l.A.getChannel()?(0,i.jsx)(m.A,{main:!0,title:!1,footer:!1,children:(0,i.jsx)(t,{})}):null})}},529668:(e,t,s)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/common/document/policy",function(){return s(497423)}])},606169:(e,t,s)=>{var o={"./List":[869726,869726],"./List/":[869726,869726],"./List/List.styled":[623093,623093],"./List/List.styled.js":[623093,623093],"./List/index":[869726,869726],"./List/index.jsx":[869726,869726],"./PasswordCheck":[553197,553197],"./PasswordCheck/":[553197,553197],"./PasswordCheck/PasswordCheck.styled":[310435,310435
1],"./PasswordCheck/PasswordCheck.styled.js":[310435,310435],"./PasswordCheck/index":[553197,553197],"./PasswordCheck/index.jsx":[553197,553197],"./TimeLimit":[681456,681456],"./TimeLimit/":[681456,681456],"./TimeLimit/TimeLimit.styled":[422475,422475],"./TimeLimit/TimeLimit.styled.js":[422475,422475],"./TimeLimit/index":[681456,681456],"./TimeLimit/index.jsx":[681456,681456]};function i(e){if(!s.o(o,e))return Promise.resolve().then(()=>{var t=Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t});var t=o[e],i=t[0];return s.e(t[1]).then(()=>s(i))}i.keys=()=>Object.keys(o),i.id=606169,e.exports=i}},e=>{e.O(0,[916872,778165,910461,894035,804186,941804,692037,377714,863866,348106,781768,140114,3439,461018,973300,708347,941448,970270,289085,206421,851591,890636,746593,470001,138792],()=>e(e.s=529668)),_N_E=e.O()}]);
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.