PageSourceSearch

https://www.kibo.or.kr/portal/_next/static/chunks/5630-17982bb39d7f1fc5.js

js kibo.or.kr collected 2026-10-03 19:56:44 UTC 9,905 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5630],{25016:(e,t,r)=>{r.d(t,{$9:()=>j,Ay:()=>h,Nr:()=>R,O_:()=>w,P4:()=>p,RB:()=>S,Ts:()=>g,Yf:()=>k,ay:()=>m,cn:()=>i,gc:()=>d,hv:()=>u,lH:()=>c,od:()=>E,rS:()=>b,vd:()=>x,z$:()=>f,zu:()=>v});var o=r(2821),n=r(75889),l=r(46276),a=r(34334),s=r(86835);function i(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return(0,n.QP)((0,o.$)(t))}function u(e){return e?"".concat("https://ts.kibo.or.kr","/common/login/oauth2/setup.do?callbackUrl=").concat(e):"".concat("https://ts.kibo.or.kr","/common/login/oauth2/setup.do")}function c(e){return e?"".concat("https://tb.kibo.or.kr","/login/oauth/kiboOneOAuthLogin.do?callbackUrl=").concat(e):"".concat("https://tb.kibo.or.kr","/login/oauth/kiboOneOAuthLogin.do")}function d(e){return e?"".concat("https://www.kibo.or.kr","/member/oauthLogin.do?callbackUrl=").concat(e):"".concat("https://www.kibo.or.kr","/member/oauthLogin.do")}function h(e){let t="/portal";return e.startsWith("/")?"".concat(t).concat(e):"".concat(t,"/").concat(e)}function m(e){return new Date(Number(e.slice(0,4)),Number(e.slice(4,6))-1,Number(e.slice(6,8)))}function f(e,t){return Math.ceil((e.getTime()-t.getTime())/864e5)}let p=e=>{let t=Number(e.slice(3,5));return t>80&&t<89},g=(e,t,r)=>{if(r){if(!t)return void e.resetField("cmpFolnm",{defaultValue:""});if("CORPORATION"===r)return void e.resetField("cmpFolnm",{defaultValue:"(주)"+t});if("LIMITED_PARTNERSHIP"===r)return void e.resetField("cmpFolnm",{defaultValue:"(합자)"+t});if("LIMITED"===r)return void e.resetField("cmpFolnm",{defaultValue:"(유한)"+t});if("PARTNERSHIP"===r)return void e.resetField("cmpFolnm",{defaultValue:"(합명)"+t});if("LIMITED_LIABILITY_COMPANY"===r)return void e.resetField("cmpFolnm",{defaultValue:"(유한책임)"+t});if("LIMITED_PARTNERSHIP_ASSOCIATION"===r)return void e.resetField("cmpFolnm",{defaultValue:"(합자조합)"+t});e.resetField("cmpFolnm",{defaultValue:t})}},b=(e,t,r)=>{let o=e.target.value;isNaN(Number(o.replaceAll("amount"===r?",":"-","")))&&l.default.error("숫자만 입력 가능 합니다.");let n=o.replace(/\D/g,"");t.resetField(e.target.name,{defaultValue:n?v(n,r):""})},v=(e,t)=>"amount"===t?BigInt(e).toLocaleString():"bzrnum"===t?e.slice(0,3)+(e.length>3?"-"+e.slice(3,5):"")+(e.length>5?"-"+e.slice(5,10):""):"rconum"===t?e.slice(0,6)+(e.length>6?"-"+e.slice(6,13):""):"date"===t?e.slice(0,4)+(e.length>4?"-"+e.slice(4,6):"")+(e.length>6?"-"+e.slice(6,8):""):N(e),x=e=>{let t=(0,a.qg)(e,"yyyy-MM-dd",new Date);return(0,s.f)(t)},N=e=>{let t=e.replace(/\D/g,"");return t.length<=4?t:t.length<=8?t.replace(/(\d{4})(?=\d)/,"$1-"):t.length<=9?t.replace(/(\d{2})(\d{3})(?=\d)/,"$1-$2-"):t.length<=10&&t.startsWith("02")?t.replace(/(\d{2})(\d{4})(?=\d)/,"$1-$2-"):t.length<=10&&!t.startsWith("02")?t.replace(/(\d{3})(\d{3})(?=\d)/,"$1-$2-"):t.slice(0,11).replace(/(\d{3})(\d{4})(\d{4})/,"$1-$2-$3")},w=()=>!0,k=e=>{var t,r,o,n,l;console.warn(e);let a=null==e||null==(r=e.response)||null==(t=r.data)?void 0:t.error,s=JSON.stringify(null!=(o=null==a?void 0:a.data)?o:{}),i=null!=(n=null==a?void 0:a.message)?n:"오류가 발생했습니다.";return"[".concat(null!=(l=null==a?void 0:a.code)?l:"ERROR","] ").concat("{}"===s?i:i+" "+s)},y=[{type:"DBRANCH",koreanNm:"디지털지점"},{type:"TECH_SAFE",koreanNm:"테크세이프"},{type:"IPMAS",koreanNm:"지식재산공제"},{type:"SOCIAL_VENTURE",koreanNm:"소셜벤처스퀘어"},{type:"TECH_BRIDGE",koreanNm:"스마트테크브릿지"}],j=e=>{var t,r;return null!=(r=null==(t=y.find(t=>t.type===e))?void 0:t.koreanNm)?r:""},E=e=>Object.fromEntries(Object.entries(e).map(e=>{let[t,r]=e;return["bzrnum","rconum","estymd","brtymd"].includes(t)&&"string"==typeof r?[t,r.replaceAll("-","")]:""===r?[t,void 0]:[t,r]})),S=()=>{let e=globalThis.crypto;if(!(null==e?void 0:e.getRandomValues))throw Error("crypto.getRandomValues is required to create UUIDs.");let t=new Uint8Array(16);e.getRandomValues(t),t[6]=t[6]%16+64,t[8]=t[8]%64+128;let r=Array.from(t,e=>e.toString(16).padStart(2,"0"));return[r.slice(0,4).join(""),r.slice(4,6).join(""),r.slice(6,8).join(""),r.slice(8,10).join(""),r.slice(10,16).join("")].join("-")},R="cs_60"},31856:(e,t,r)=>{r.d(t,{Q:()=>p,Sheet:()=>s,SheetClose:()=>u,SheetContent:()=>h,SheetHeader:()=>m,SheetTitle:()=>f,SheetTrigger:()=>i});var o=r(95155);r(12115);var n=r(89511),l=r(65229),a=r(25016);function s(e){let{...t}=e;return(0,o.jsx)(n.bL,{"data-slot":"sheet",...t})}function i(e){let{...t}=e;return(0,o.jsx)(n.l9,{"data-slot":"sheet-trigger",...t})}function u(e){let{...t}=e;return(0,o.jsx)(n.bm,{"data-slot":"sheet-close",...t})}function c(e){let{...t}=e;return(0,o.jsx)(n.ZL,{"data-slot":"sheet-portal",...t})}function d(e){let{className:t,...r}=e;return(0,o.jsx)(n.hJ,{"data-slot":"sheet-overlay",className:(0,a.cn)("fixed inset-0 z-50 bg-black/50 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:animate-in data-[state=open]:fade-in-0",t),...r})}function h(e){let{className:t,children:r,side:s="right",...i}=e;return(0,o.jsxs)(c,{children:[(0,o.jsx)(d,{}),(0,o.jsxs)(n.UC,{"data-slot":"sheet-content",className:(0,a.cn)("fixed z-50 flex flex-col gap-4 bg-background shadow-lg transition ease-in-out data-[state=closed]:animate-out data-[state=closed]:duration-300 data-[state=open]:animate-in data-[state=open]:duration-500","right"===s&&"inset-y-0 right-0 h-full w-9/10 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm","left"===s&&"inset-y-0 left-0 h-full w-9/10 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm","top"===s&&"inset-x-0 top-0 h-auto border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top","bottom"===s&&"inset-x-0 bottom-0 h-auto border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",t),...i,children:[r,(0,o.jsxs)(n.bm,{className:"absolute top-5 right-3 rounded-xs opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:ring-2 focus:ring-ring focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none data-[state=open]:bg-secondary max-sm:right-5",children:[(0,o.jsx)(l.A,{className:"size-6"}),(0,o.jsx)("span",{className:"sr-only",children:"Close"})]})]})]})}function m(e){let{className:t,...r}=e;return(0,o.jsx)("div",{"data-slot":"sheet-header",className:(0,a.cn)("flex flex-col gap-1.5 p-4",t),...r})}function f(e){let{className:t,...r}=e;return(0,o.jsx)(n.hE,{"data-slot":"sheet-title",className:(0,a.cn)("font-semibold text-foreground",t),...r})}function p(e){let{className:t,...r}=e;
1return(0,o.jsx)(n.VY,{"data-slot":"sheet-description",className:(0,a.cn)("text-sm text-muted-foreground",t),...r})}},46276:(e,t,r)=>{r.d(t,{default:()=>l});var o=r(18720);let n=(e,t)=>{let r={classNames:{title:"font-extrabold",icon:"w-4 h-4"},richColors:!1,position:"top-center",...t};return(0,o.oR)(e,r)};n.success=(e,t)=>{let r={classNames:{title:"font-extrabold",icon:"w-4 h-4 text-green-600"},richColors:!1,position:"top-center",...t};return o.oR.success(e,r)},n.warning=(e,t)=>{let r={classNames:{title:"font-extrabold",icon:"w-4 h-4 text-yellow-500"},richColors:!1,position:"top-center",...t};return o.oR.warning(e,r)},n.error=(e,t)=>{let r={classNames:{title:"font-extrabold",icon:"w-4 h-4 text-red-500"},richColors:!1,position:"top-center",...t};return o.oR.error(e,r)},n.info=(e,t)=>{let r={classNames:{title:"font-extrabold",icon:"w-4 h-4 text-blue-500"},richColors:!1,position:"top-center",...t};return o.oR.info(e,r)};let l=n},68122:(e,t,r)=>{r.d(t,{E:()=>l});var o=r(95155),n=r(25016);function l(e){let{className:t,...r}=e;return(0,o.jsx)("div",{"data-slot":"skeleton",className:(0,n.cn)("animate-pulse rounded-md bg-muted",t),...r})}},87926:(e,t,r)=>{r.d(t,{SessionProvider:()=>h,w:()=>m});var o=r(95155),n=r(12115),l=r(20063),a=r(96199);let s=r(12870).A.create({baseURL:"https://www.kibo.or.kr/oauth-be",withCredentials:!0,timeout:5e3}),i=async()=>{try{let e=await s.get("/api/v1/session/check",{headers:{"Cache-Control":"no-store"},validateStatus:()=>!0});if(200===e.status||204===e.status)return;return Promise.reject(Error("OAUTH_SESSION_NOT_FOUND"))}catch(e){return Promise.reject(e)}},u="RefreshAccessTokenError",c=(0,n.createContext)(void 0),d=e=>{var t;let{children:r}=e,{data:l,status:s,update:i}=(0,a.wV)(),d=null!=l?l:null,h=(0,n.useRef)(i);return(0,n.useEffect)(()=>{h.current=i},[i]),(0,n.useEffect)(()=>{var e;let t;if(!(null==d||null==(e=d.user)?void 0:e.expires)||d.error===u)return;let r=d.user.expires,o=r-Date.now()-6e4,n=!1,l=setTimeout(()=>{(async()=>{var e;let o=await h.current();if(n||(null==o||null==(e=o.user)?void 0:e.expires)&&o.user.expires>r)return;let l=r-Date.now();if(l<=0)return(0,a.Jv)("spring-oauth");t=setTimeout(()=>{(async()=>{var e;let t=await h.current();!n&&(!(null==t||null==(e=t.user)?void 0:e.expires)||t.user.expires<=Date.now())&&(0,a.Jv)("spring-oauth")})()},l)})()},o);return()=>{n=!0,clearTimeout(l),t&&clearTimeout(t)}},[null==d?void 0:d.error,null==d||null==(t=d.user)?void 0:t.expires]),(0,n.useEffect)(()=>{(null==d?void 0:d.error)===u&&(0,a.Jv)("spring-oauth")},[null==d?void 0:d.error]),(0,o.jsx)(c.Provider,{value:{session:d,status:s,isLoading:"loading"===s,isAuthenticated:"authenticated"===s,isUnauthenticated:"unauthenticated"===s},children:r})},h=e=>{let{session:t,children:r}=e,s=(0,l.usePathname)(),[u,c]=(0,n.useState)(null);return(0,n.useEffect)(()=>{(0,a.Ht)().then(e=>{if(null==e)c(null),i().then(()=>{(0,a.Jv)("spring-oauth")}).catch(()=>{});else{var t;c(null==e||null==(t=e.user)?void 0:t.id)}}).catch(()=>{c(null)})},[s]),(0,o.jsx)(a.CP,{session:t,basePath:"".concat("/portal","/api/auth"),children:(0,o.jsx)(d,{children:r})},null!=u?u:"no-user")},m=()=>{let e=(0,n.useContext)(c);if(!e)throw Error("useSession은 SessionProvider 안에서만 사용해야 합니다.");return e}}}]);

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.