PageSourceSearch

https://jaranda.kr/_next/static/chunks/pages/parent/childgrowth/family/share/[uuid]/report-a09ddef11d3bfe04.js

js jaranda.kr collected 2026-09-24 10:48:26 UTC 10,925 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[26159],{64822:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/parent/childgrowth/family/share/[uuid]/report",function(){return n(4542)}])},4542:function(e,t,n){"use strict";n.r(t);var r=n(97458),i=n(52983),s=n(15603),a=n(97271),o=n(29219),l=n(1136),c=n(47076),d=n(47764),u=n(6557),p=n(85545),h=n(32531),m=n(33735),f=n(41844),g=n(78803),v=n(17623),x=n(15303),j=n(76071),y=n(66164),b=n(33014),C=n(63471),_=n(73101),O=n(898),N=n(42532),R=n(83851),S=n(68),P=n(35890),T=n(75005);let E=(0,a.ZP)(),A=(0,o.Z)(),Z=[{id:"child",name:"아이 기질"},{id:"parent",name:"부모 기질"},{id:"harmony",name:"기질 조화"},{id:"finish",name:"마무리하기"}];t.default=(0,T.X)((e,t)=>{let{uuid:n}=(0,s.VY)().query,[a,o]=(0,i.useState)(),[T,w]=(0,i.useState)(""),[k,I]=(0,i.useState)(!1),[G,B]=(0,i.useState)(!1),[z,D]=(0,i.useState)({isNumber:!1,isEnglish:!1,isMinimumLength:!1}),H=Object.values(z).every(e=>!0===e),[M,J]=(0,i.useState)(),[L,W]=(0,i.useState)("child"),V=(0,i.useRef)([]),F=null==M?void 0:M.results.find(e=>e.relation===v.vWO.AppPersonType.CHILD),Y=(null==M?void 0:M.results.filter(e=>e.relation!==v.vWO.AppPersonType.CHILD))||[],X=e=>{E.create(t=>(0,r.jsx)(S.Z,{alert:t,defaultBlock:e})).open()},K=e=>{let t=/\d/.test(e),n=/[A-Za-z]/.test(e),r=e.length>=8;w(e),D({isNumber:t,isEnglish:n,isMinimumLength:r})},U=async e=>{e.preventDefault();try{let e=await A.loginShareResult(n,T);o(e);let t=await A.getShareResult(n,e);B(!1),J(t)}catch(e){B(!0),console.error(e)}};return a&&M?(0,r.jsx)(h.o,{hideTitle:!0,hideMenu:!0,header:(0,r.jsx)(g.Z,{tabs:Z,selectedId:L,onClickTab:(e,t)=>{var n;W(e.id),null===(n=V.current[t])||void 0===n||n.scrollIntoView({behavior:"smooth"})}}),children:M&&(0,r.jsxs)(l.Z,{className:"max-w-[100vw]",children:[(0,r.jsx)(l.Z,{ref:e=>null===e?"":(V.current[0]=e,V),children:(0,r.jsx)(x.Z,{name:M.counselor.name,thumbnail:M.counselor.thumbnail_url,isPc:!0})}),(0,r.jsx)(j.i,{variant:"bold"}),M.members.filter(e=>e.relation===v.vWO.AppPersonType.CHILD).map(e=>{var t,n,s,a,o;return(0,r.jsxs)(i.Fragment,{children:[(0,r.jsx)(y.Z,{mainTitle:"우리 아이는 어떤 아이일까?",mainDescription:"아이는 보통 다섯 가지 기질적 특성을 다 조금씩은 가지고 있어요. 다만 어떤 종류의 기질을 더 의미있게 ‘많이' 혹은 ‘적게’ 가졌는지에 따라 아이의 특성이 달라진답니다.",personName:e.name,relation:e.relation,majors:null==M?void 0:null===(t=M.results.find(t=>t.member_id===e.id))||void 0===t?void 0:t.majors,details:null==M?void 0:null===(n=M.results.find(t=>t.member_id===e.id))||void 0===n?void 0:n.details,onMajorTemperament:X}),(0,r.jsx)(j.i,{variant:"bold"}),(0,r.jsx)(b.Z,{childName:e.name,nursingContent:null==M?void 0:null===(s=M.contents.find(t=>t.member_id===e.id&&t.code===v.vWO.ContentParagraphCodeType.BABY_PROFILE_NURSING_PROPOSSOR))||void 0===s?void 0:s.content,trainingContent:null==M?void 0:null===(a=M.contents.find(t=>t.member_id===e.id&&t.code===v.vWO.ContentParagraphCodeType.BABY_TRAINING_PROPOSSOR))||void 0===a?void 0:a.content,playTalkContent:null==M?void 0:null===(o=M.contents.find(t=>t.member_id===e.id&&t.code===v.vWO.ContentParagraphCodeType.BABY_PLAY_TALK_PROPOSSOR))||void 0===o?void 0:o.content}),(0,r.jsx)(j.i,{variant:"bold"})]},"member-group-".concat(e.id))}),M.members.filter(e=>e.relation!==v.vWO.AppPersonType.CHILD).map((e,t)=>{var n,s,a,o;return(0,r.jsxs)(i.Fragment,{children:[(0,r.jsx)(l.Z,{ref:e=>null===e||0!==t?"":(V.current[1]=e,V),children:(0,r.jsx)(C.Z,{relation:e.relation})}),(0,r.jsx)(j.i,{variant:"bold"}),(0,r.jsx)(y.Z,{personName:v.vWO.APPPersonTypeDescription[e.relation].description,relation:e.relation,majors:null==M?void 0:null===(n=M.results.find(t=>t.member_id===e.id))||void 0===n?void 0:n.majors,details:null==M?void 0:null===(s=M.results.find(t=>t.member_id===e.id))||void 0===s?void 0:s.details,onMajorTemperament:X}),(0,r.jsx)(j.i,{variant:"bold"}),(0,r.jsx)(_.Z,{parentName:v.vWO.APPPersonTypeDescription[e.relation].description,childName:null==M?void 0:M.child_name,strengthContent:null==M?void 0:null===(a=M.contents.find(t=>t.member_id===e.id&&t.code===v.vWO.ContentParagraphCodeType.PARENT_STRENGTH))||void 0===a?void 0:a.content,cautionContent:null==M?void 0:null===(o=M.contents.find(t=>t.member_id===e.id&&t.code===v.vWO.ContentParagraphCodeType.PARENT_CAUTION))||void 0===o?void 0:o.content}),(0,r.jsx)(j.i,{variant:"bold"})]},"member-group-".concat(e.id))}),Object.entries(f.eJ.BlockDescription).map((e,t)=>
1{let[n,s]=e;return(0,r.jsxs)(i.Fragment,{children:[(0,r.jsx)(l.Z,{ref:e=>null===e||0!==t?"":(V.current[2]=e,V),children:(0,r.jsx)(O.Z,{block:n,childName:null==M?void 0:M.child_name,childGender:M.child_gender,child:F,parent1:Y.length>=1?Y[0]:void 0,parent2:Y.length>=2?Y[1]:void 0})}),(0,r.jsx)(j.i,{variant:"bold"})]},"harmony-".concat(n))}),(0,r.jsx)(N.Z,{}),(0,r.jsx)(j.i,{variant:"bold"}),(0,r.jsx)(l.Z,{ref:e=>null===e?"":(V.current[3]=e,V),children:(0,r.jsx)(R.Z,{})})]})}):(0,r.jsxs)(m.W.Flex,{direction:"column",gap:"48",className:"h-full justify-center items-center",children:[(0,r.jsxs)(l.Z,{className:"flex flex-col gap-ds-48 w-[40rem]",children:[(0,r.jsxs)(l.Z,{className:"flex flex-col items-center gap-ds-24",children:[(0,r.jsx)("img",{src:"logos/logo.png",width:"115",alt:"logo"}),(0,r.jsxs)(u.D,{typography:"Title1/Bold 150",normalColor:"Gray-900",className:"text-center",children:["공유한 검사 결과를 조회할 수 있는",(0,r.jsx)("br",{}),"비밀번호를 입력해 주세요"]})]}),(0,r.jsxs)("form",{className:"flex flex-col gap-ds-24",onSubmit:U,children:[(0,r.jsxs)(l.Z,{className:"flex flex-col gap-ds-4",children:[(0,r.jsx)(c.PM,{type:k?"text":"password",placeholder:"비밀번호를 입력해 주세요",right:(0,r.jsx)(d.AsB,{icon:k?"EyeOnIcon":"EyeOffIcon",size:20,color:k?"Gray-900":"Gray-400",onClick:()=>I(e=>!e)}),value:T,onChange:e=>K(e.target.value)}),G?(0,r.jsxs)(l.Z,{className:"flex items-center gap-ds-2",children:[(0,r.jsx)(d.AsB,{icon:"InfoOutlineIcon",size:16,color:"J-Coral-500"}),(0,r.jsx)(u.D,{typography:"Caption1/Regular 150",normalColor:"J-Coral-500",children:"비밀번호가 일치하지 않습니다."})]}):(0,r.jsxs)(l.Z,{className:"flex gap-ds-12",children:[(0,r.jsxs)(l.Z,{className:"flex items-center gap-ds-2",children:[(0,r.jsx)(d.AsB,{icon:"CheckIcon",size:16,color:z.isNumber?"J-Green-500":"Gray-400"}),(0,r.jsx)(u.D,{typography:"Caption1/Regular 150",normalColor:z.isNumber?"J-Green-500":"Gray-400",children:"숫자"})]}),(0,r.jsxs)(l.Z,{className:"flex items-center gap-ds-2",children:[(0,r.jsx)(d.AsB,{icon:"CheckIcon",size:16,color:z.isEnglish?"J-Green-500":"Gray-400"}),(0,r.jsx)(u.D,{typography:"Caption1/Regular 150",normalColor:z.isEnglish?"J-Green-500":"Gray-400",children:"영문"})]}),(0,r.jsxs)(l.Z,{className:"flex items-center gap-ds-2",children:[(0,r.jsx)(d.AsB,{icon:"CheckIcon",size:16,color:z.isMinimumLength?"J-Green-500":"Gray-400"}),(0,r.jsx)(u.D,{typography:"Caption1/Regular 150",normalColor:z.isMinimumLength?"J-Green-500":"Gray-400",children:"8자리 이상"})]})]})]}),(0,r.jsx)(p.gg,{scope:P.sX.PARENT,variant:"primary",size:"lg",disabled:!H,children:"조회하기"})]})]}),(0,r.jsx)(l.Z,{className:"flex flex-col gap-ds-32 py-ds-8 px-ds-20"})]})})},29219:function(e,t,n){"use strict";n.d(t,{Z:function(){return p}});var r,i,s=n(43112),a=n(23231),o=n(87561),l=n(63769),c=n(55138);(r=i||(i={})).makeAuthorizationHeader=e=>{let t={},n=r.makeAuthorization(e);return n&&(t.Authorization=n),t},r.makeAuthorization=e=>{if("string"==typeof e)return"Bearer ".concat(e)};class d{loginShareResult(e,t){return this.apiService.postJson({target:{url:"".concat(this.japiHost,"/parent-app/v1/inspection-family-share/").concat(e,"/login")},config:{fetch:{body:{password:t}},config:{showProgress:!0}}})}sendShareResultEmail(e,t,n){let r=i.makeAuthorizationHeader(null==n?void 0:n.share_token);return this.apiService.postJson({target:{url:"".concat(this.japiHost,"/parent-app/v1/inspection-family-share/").concat(e,"/send-mail")},config:{fetch:{headers:r,body:{email:t}},bypassTransform:!0}})}getShareResult(e,t){let n=i.makeAuthorizationHeader(null==t?void 0:t.share_token);return this.apiService.get({target:{url:"".concat(this.japiHost,"/parent-app/v1/inspection-family-share/").concat(e,"/report")},config:{fetch:{headers:n},config:{showProgress:!0}}})}constructor(e){this.apiService=e,this.japiHost=l.vc.getConfig(l.AY.JAPI_HOST)}}d=(0,s.gn)([(0,a.b2)(),(0,a.ri)(),(0,s.fM)(0,(0,a.f3)(c.sM.SERVICE_TOKEN)),(0,s.w6)("design:type",Function),(0,s.w6)("design:paramtypes",[void 0===c.sM?Object:c.sM])],d);class u{loginShareResult(e,t){return this.repository.loginShareResult(e,t)}sendShareResultEmail(e,t,n){return this.repository.sendShareResultEmail(e,t,n)}getShareResult(e,t){return this.repository.getShareResult(e,t)}constructor(e,t){this.repository=e,this.storageService=t}}u=(0,s.gn)([(0,a.ri)(),(0,a.b2)(),(0,s.fM)(0,(0,a.f3)(d)),(0,s.fM)(1,(0,a.f3)(o.V1.SERVICE_TOKEN)),(0,s.w6)("design:type",Function),(0,s.w6)("design:paramtypes",[void 0===d?Object:d,void 0===o.V1?Object:o.V1])],u);var p=()=>a.nC.resolve(u)},88068:function(e,t,n){"use strict";n.d(t,{xz:function(){return u}});var r,i,s=n(52983),a=n(79818);let o="label";function l(e,t){"function"==typeof e?e(t):e&&(e.current=t)}function c(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:o,r=[];e.datasets=t.map(t=>{let i=e.datasets.find(e=>e[n]===t[n]);return!i||!t.data||r.includes(i)?{...t}
1:(r.push(i),Object.assign(i,t),i)})}let d=(0,s.forwardRef)(function(e,t){let{height:n=150,width:r=300,redraw:i=!1,datasetIdKey:d,type:u,data:p,options:h,plugins:m=[],fallbackContent:f,updateMode:g,...v}=e,x=(0,s.useRef)(null),j=(0,s.useRef)(),y=()=>{x.current&&(j.current=new a.kL(x.current,{type:u,data:function(e){var t;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o,r={labels:[],datasets:[]};return t=e.labels,r.labels=t,c(r,e.datasets,n),r}(p,d),options:h&&{...h},plugins:m}),l(t,j.current))},b=()=>{l(t,null),j.current&&(j.current.destroy(),j.current=null)};return(0,s.useEffect)(()=>{!i&&j.current&&h&&function(e,t){let n=e.options;n&&t&&Object.assign(n,t)}(j.current,h)},[i,h]),(0,s.useEffect)(()=>{if(!i&&j.current){var e,t;e=j.current.config.data,t=p.labels,e.labels=t}},[i,p.labels]),(0,s.useEffect)(()=>{!i&&j.current&&p.datasets&&c(j.current.config.data,p.datasets,d)},[i,p.datasets]),(0,s.useEffect)(()=>{j.current&&(i?(b(),setTimeout(y)):j.current.update(g))},[i,h,p.labels,p.datasets,g]),(0,s.useEffect)(()=>{j.current&&(b(),setTimeout(y))},[u]),(0,s.useEffect)(()=>(y(),()=>b()),[]),s.createElement("canvas",Object.assign({ref:x,role:"img",height:n,width:r},v),f)}),u=(r="polarArea",i=a.CV,a.kL.register(i),(0,s.forwardRef)((e,t)=>s.createElement(d,Object.assign({},e,{ref:t,type:r}))))}},function(e){e.O(0,[34019,51752,19143,64978,84885,92888,49774,40179],function(){return e(e.s=64822)}),_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.