1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[30902,79563],{14176:(e,t,s)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/disc-behavior",function(){return s(72366)}])},20835:e=>{e.exports={likertContainer:"Mbti64_likertContainer__d743z",likertLine:"Mbti64_likertLine__CENOn",circleBtn:"Mbti64_circleBtn___hbdG",size_3:"Mbti64_size_3__edjoP",size_2:"Mbti64_size_2__vYnAa",size_1:"Mbti64_size_1__GU9w9",size_0:"Mbti64_size_0__AsFPl",size_minus1:"Mbti64_size_minus1__PYUBD",size_minus2:"Mbti64_size_minus2__SEpjH",size_minus3:"Mbti64_size_minus3__oTDxD",selected:"Mbti64_selected__4OGc8",likertLabels:"Mbti64_likertLabels__Rcq2x",labelAgree:"Mbti64_labelAgree__ZtE_w",labelDisagree:"Mbti64_labelDisagree__ftsX2"}},72366:(e,t,s)=>{"use strict";s.r(t),s.d(t,{__N_SSG:()=>w,default:()=>_});var a=s(37876),i=s(18847),n=s.n(i),r=s(72239),o=s.n(r),l=s(20835),c=s.n(l),d=s(14232),u=s(89099),h=s(58238),m=s(33004),p=s(88509),y=s(85718),g=s(79563),b=s(94424);let f=n()(()=>Promise.all([s.e(22223),s.e(12866),s.e(50665)]).then(s.bind(s,50665)),{loadableGenerated:{webpack:()=>[50665]},ssr:!1}),x=n()(()=>Promise.all([s.e(22223),s.e(12866),s.e(36098)]).then(s.bind(s,36098)),{loadableGenerated:{webpack:()=>[36098]},ssr:!1}),v=n()(()=>Promise.all([s.e(22223),s.e(12866),s.e(27675),s.e(50665),s.e(90583)]).then(s.bind(s,90583)),{loadableGenerated:{webpack:()=>[90583]},ssr:!1});var w=!0;let _=e=>{let{initialPageContent:t,initialIntroContent:s,initialExtendedIntroContent:i,initialLoadingContent:n,initialQuestions:r,initialTypeDetails:l}=e,w=(0,u.useRouter)(),[_,j]=(0,d.useState)(0),[T,k]=(0,d.useState)([]),[N,S]=(0,d.useState)("intro"),[C,z]=(0,d.useState)([]),[I,M]=(0,d.useState)(null),[E,D]=(0,d.useState)(null),P=w.locale||"ko",{userName:$,setUserName:A,userGender:O,setUserGender:G,representsMale:W,representsFemale:B}=(0,m.v)({enableGender:!0,testType:"disc-behavior"}),{participantCount:R}=(0,p.q)(),{loadSavedResult:L,isLoadingResult:q}=(0,y.X)(),[F,H]=(0,d.useState)(r||[]);(0,d.useEffect)(()=>{r&&r.length>0&&H(r)},[r]),(0,d.useEffect)(()=>{w.isReady&&"true"===w.query.showResult&&w.query.resultId&&(async()=>{let e=await L(w.query.resultId);e&&(A(e.userName||""),G(e.userGender||""),e.answers?k(e.answers):e.result&&e.result?.answers&&k(e.result?.answers),S("result"))})()},[w.isReady,w.query.showResult,w.query.resultId,L,A,G]),(0,d.useEffect)(()=>{F.length>0&&z([...F].sort(()=>Math.random()-.5))},[F]);let J=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:T,t=0,s=0,a=0,i=0;e.forEach((e,n)=>{let r=C[n];if(!r)return void console.warn(`â ï¸ Question not found at index ${n}`);let o=Number(e)||3,l=r.type;switch(l){case"D":t+=o;break;case"I":s+=o;break;case"S":a+=o;break;case"C":i+=o;break;default:console.warn(`Unknown type: ${l}`)}});let n=Math.max(0,Math.min(100,Math.round((t-10)/40*100))),r=Math.max(0,Math.min(100,Math.round((s-10)/40*100))),o=Math.max(0,Math.min(100,Math.round((a-10)/40*100))),c=Math.max(0,Math.min(100,Math.round((i-10)/40*100))),d=[{type:"D",score:t},{type:"I",score:s},{type:"S",score:a},{type:"C",score:i}],u=[...d].sort((e,t)=>{if(t.score!==e.score)return t.score-e.score;let s={D:4,I:3,S:2,C:1};return s[t.type]-s[e.type]}),h=u[0].type,m=u[1].type,p=`${h}${m}`,y=[...d].sort((e,t)=>{if(e.score!==t.score)return e.score-t.score;let s={C:4,S:3,I:2,D:1};return s[e.type]-s[t.type]})[0].type,g=`low${y}`,b=l?.[h]||{};return{discType:`${h} - ${b.name}`,type:h,nickname:b.nickname,emoji:b.emoji,description:b.description,personality:b.personality,color:b.color,strengths:b.strengths,weaknesses:b.weaknesses,workStyle:b.workStyle,communicationStyle:b.communicationStyle,leadershipStyle:b.leadershipStyle,stressFactors:b.stressFactors,idealEnvironment:b.idealEnvironment,careerFit:b.careerFit,developmentTips:b.developmentTips,scores:{dominance:n,influence:r,steadiness:o,conscientiousness:c},combinationType:p,lowScoreType:g}},X=async e=>{document.activeElement&&document.activeElement instanceof HTMLElement&&document.activeElement.blur();let t=[...T];t[_]=e,k(t),_<C.length-1?j(_+1):await U(t)},U=async e=>{S("loading");try{fetch("/api/shared-results",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({testType:"disc-behavior"})});let s=J(e);M(s);let a=await (0,g.saveSharedResult)({testType:"disc-behavior",testName:t?.title,userName:$,userGender:O||"미ì¤ì ",result:s},"ko"!==P&&"ja"!==P);"string"==typeof a||a?.sharedId||a?.id;let i="D"===s.type?"dominance":"I"===s.type?"influence":"S"===s.type?"steadiness":"conscientiousness";fetch("/api/user/test-results",{method:"POST",headers:{"Content-Type":"application/json",Authorization:localStorage.getItem("authToken")?`Bearer ${localStorage.getItem("authToken")}`:""},body:JSON.stringify({testType:"disc-behavior",testName:t?.title,result:s,score:s.scores?.[i]||50,title:s.discType})}).catch(e=>console.error("â ê²ìí API í¸ì¶ ì¤ë¥:",e)),setTimeout(()=>{if(a){let e="ko"===P?"":`/${P}`;w.push(`${e}/disc-behavior/result/${a}`)}else D({userName:$,userGender:O,answers:e}),S("result")},1e3)}catch(e){console.error("í
ì¤í¸ ìë£ ì²ë¦¬ ì¤ ì¤ë¥:",e),setTimeout(()=>{let e={ko:"ì¤ë¥ê° ë°ìíìµëë¤. ë¤ì ìëí´ ì£¼ì¸ì.",en:"An error occurred. Please try again.",ja:"ã¨ã©ã¼ãçºçãã¾ãããããä¸åº¦ã試ããã ããã",es:"Ocurri\xf3 un error. Por favor int\xe9ntelo de nuevo.",vi:"C\xf3 lá»i xảy ra. Vui l\xf2ng thá» lại.","zh-tw":"ç¼çé¯èª¤ãè«é試ã"};alert(e[P]||e.ko),S("intro")},2e3)}};if(q)return(0,a.jsxs)("div",{className:o().container,children:[(0,a.jsx)("div",{children:(0,a.jsx)(f,{title:t?.headerTitle})}),(0,a.jsx)("main",{className:o().main,style:{minHeight:"auto",display:"flex",alignItems:"flex-start",justifyContent:"flex-start",paddingTop:"0px",marginTop:"0px",flex:1},children:(0,a.jsx)(x,{message:n.pleaseWait})})]});
1if("intro"===N)return(0,a.jsx)(h.A,{thumbnail:"/thumbnails/disc-behavior.avif",thumbnailSrc:"/thumbnails/disc-behavior.avif",locale:P,title:i.mainTitle,subtitle:i.subtitle,emoji:"\uD83D\uDCCA",tags:i.tags,participants:R,metaTitle:t?.metaTitle,metaDescription:t?.metaDescription,keywords:"DISC, íëì í, ì±ê²©ë¶ì, 리ëì, ìíµì¤íì¼, ë§ìë¤ì´ë¸",structuredData:{"@context":"https://schema.org","@type":"WebApplication",name:t?.title,description:t?.description,url:`https://www.maumdive.com/${"ja"===P?"ja/":"en"===P?"en/":""}disc-behavior`,applicationCategory:"HealthApplication"},ogImage:"/thumbnails/disc-behavior.jpg",onStart:(e,t)=>{let s=e?.trim()||$?.trim();if(!s){let e={ko:"ì´ë¦ì ì
ë ¥í´ì£¼ì¸ì.",en:"Please enter your name.",ja:"ååãå
¥åãã¦ãã ããã",es:"Por favor, introduzca su nombre.",vi:"Vui l\xf2ng nháºp t\xean cá»§a bạn.","zh-tw":"è«è¼¸å
¥æ¨çååã"};alert(e[P]||e.ko);return}A(s),t&&G("male"===t?"ë¨ì±":"ì¬ì±"),S("test")},showNicknameInput:!0,showGenderInput:!0,initialNickname:$,initialGender:W?"male":B?"female":"",onGenderChange:e=>{G("male"===e?"ë¨ì±":"female"===e?"ì¬ì±":"")},startButtonText:i.startButton,nicknamePlaceholder:i.namePlaceholder,testDuration:i.timeBadge,testAccuracy:s?.badge4});if("test"===N){let e=C[_],i=(_+1)/C.length*100;return e?(0,a.jsxs)("div",{className:o().container,children:[(0,a.jsx)(b.A,{title:`${t?.title} - ë§ìë¤ì´ë¸`,description:t?.description,ogImage:"/thumbnails/disc-behavior.jpg"}),(0,a.jsx)("div",{children:(0,a.jsx)(f,{title:`ð ${t?.headerTitle}`})}),(0,a.jsx)("main",{className:o().main,children:(0,a.jsxs)("div",{className:o().testContainer,children:[(0,a.jsx)("p",{className:o().description,children:s?.subtitle}),(0,a.jsxs)("div",{className:o().questionContainer,children:[(0,a.jsxs)("div",{className:o().progress,children:[(0,a.jsx)("div",{className:o().progressBar,style:{width:`${i}%`}}),(0,a.jsxs)("div",{className:o().progressText,children:[_+1," / ",C.length," (",Math.round(i),"%)"]})]}),(0,a.jsx)("div",{className:o().questionEmoji,children:e.emoji}),(0,a.jsxs)("h2",{className:o().question,children:["Q",_+1,". ",e.question]}),(()=>{let e={ko:"íì¤í ë§ì",en:"Totally Agree",ja:"確å®ã«ãã",es:"Totalmente de acuerdo",vi:"Ho\xe0n to\xe0n Äá»ng \xfd","zh-tw":"å®å
¨åæ"},t={ko:"íì¤í ìë",en:"Totally Disagree",ja:"確å®ã«éã",es:"Totalmente en desacuerdo",vi:"Ho\xe0n to\xe0n kh\xf4ng Äá»ng \xfd","zh-tw":"å®å
¨ä¸åæ"},s={ko:"ë³´íµ",en:"Neutral",ja:"æ®é",es:"Neutral",vi:"B\xecnh thưá»ng","zh-tw":"æ®é"};return(0,a.jsxs)("div",{style:{marginTop:"40px",marginBottom:"30px"},children:[(0,a.jsxs)("div",{className:c().likertContainer,children:[(0,a.jsx)("div",{className:c().likertLine}),[5,4,3,2,1].map(e=>{let t=T[_]===e,s=5===e?c().size_3:4===e?c().size_2:3===e?c().size_0:2===e?c().size_minus2:c().size_minus3;return(0,a.jsx)("div",{className:`${c().circleBtn} ${s} ${t?c().selected:""}`,onClick:()=>X(e),role:"button","aria-label":`Select score ${e}`},e)})]}),(0,a.jsxs)("div",{className:c().likertLabels,style:{position:"relative"},children:[(0,a.jsx)("span",{className:c().labelAgree,children:e[P]||e.ko}),(0,a.jsx)("span",{style:{position:"absolute",left:"50%",transform:"translateX(-50%)",color:"#94a3b8",fontSize:"12px",fontWeight:"500"},children:s[P]||s.ko}),(0,a.jsx)("span",{className:c().labelDisagree,children:t[P]||t.ko})]})]})})(),_>0&&(0,a.jsx)("div",{style:{display:"flex",justifyContent:"flex-end",marginTop:"15px"},children:(0,a.jsx)("button",{onClick:()=>{j(_-1)},style:{background:"rgba(255, 255, 255, 0.9)",border:"2px solid #e0e0e0",borderRadius:"10px",padding:"8px 16px",fontSize:"14px",color:"#333",fontWeight:"bold",cursor:"pointer",transition:"all 0.3s ease"},onMouseEnter:e=>{e.currentTarget.style.borderColor="#FF69B4",e.currentTarget.style.background="#f0f8ff"},onMouseLeave:e=>{e.currentTarget.style.borderColor="#e0e0e0",e.currentTarget.style.background="rgba(255, 255, 255, 0.9)"},children:"en"===P?"â Previous":"ja"===P?"â åã¸":"es"===P?"â Anterior":"vi"===P?"â Quay lại":"zh-tw"===P?"â ä¸ä¸æ¥":"â ì´ì ì¼ë¡"})})]})]})})]}):null}return"loading"===N?(0,a.jsxs)("div",{className:o().container,children:[(0,a.jsx)(b.A,{title:`${t?.title}
1 - ë§ìë¤ì´ë¸`,description:t?.description,ogImage:"/thumbnails/disc-behavior.jpg"}),(0,a.jsx)("div",{children:(0,a.jsx)(f,{title:`ð ${t?.headerTitle}`})}),(0,a.jsx)("main",{className:o().main,style:{minHeight:"auto",display:"flex",alignItems:"flex-start",justifyContent:"flex-start",paddingTop:"0px",marginTop:"0px",flex:1},children:(0,a.jsx)(x,{language:P,title:"en"===P?"\uD83D\uDCCA Analyzing DISC Behavior Type...":"ja"===P?"\uD83D\uDCCA DISCè¡åã¿ã¤ãåæä¸...":"es"===P?"\uD83D\uDCCA Analizando Tipo de Comportamiento DISC...":"vi"===P?"\uD83D\uDCCA Äang ph\xe2n t\xedch loại h\xe0nh vi DISC...":"zh-tw"===P?"\uD83D\uDCCA æ£å¨åæ DISC è¡çºé¡å...":"\uD83D\uDCCA DISC íëì í ë¶ì ì¤...",subtitle:"en"===P?"Precisely analyzing your behavior style with scientific model":"ja"===P?"ç§å¦çã¢ãã«ã§ããªãã®è¡åã¹ã¿ã¤ã«ãç²¾å¯åæãã¦ãã¾ã":"es"===P?"Analizando con precisi\xf3n su estilo de comportamiento con un modelo cient\xedfico":"vi"===P?"Ph\xe2n t\xedch ch\xednh x\xe1c phong c\xe1ch h\xe0nh vi cá»§a bạn vá»i m\xf4 h\xecnh khoa há»c":"zh-tw"===P?"使ç¨ç§å¸æ¨¡åç²¾ç¢ºåææ¨çè¡çºé¢¨æ ¼":"ê³¼íì 모ë¸ë¡ ë¹ì ì íë ì¤íì¼ì ì ë° ë¶ìíê³ ìì´ì",steps:"en"===P||"es"===P||"vi"===P||"zh-tw"===P?"es"===P?["Midiendo el \xcdndice de Dominancia","Analizando Patrones de Influencia","Calculando Valores de Estabilidad","Evaluando Estilo de Conciencia"]:"vi"===P?["Äo chá» sá» Thá»ng trá»","Ph\xe2n t\xedch m\xf4 h\xecnh Ảnh hưá»ng","T\xednh to\xe1n gi\xe1 trá» Ki\xean Äá»nh","Ä\xe1nh gi\xe1 phong c\xe1ch Tu\xe2n thá»§"]:"zh-tw"===P?["測é䏻尿§ææ¸","åæå½±é¿å模å¼","è¨ç®ç©©å®æ§æ¸å¼","è©ä¼°è¬¹æ æ§é¢¨æ ¼"]:["Measuring Dominance Index","Analyzing Influence Patterns","Calculating Steadiness Values","Evaluating Conscientiousness Style"]:"ja"===P?["䏻尿§ææ°æ¸¬å®","社交æ§ãã¿ã¼ã³åæ","å®å®æ§æ°å¤è¨ç®","æ éæ§ã¹ã¿ã¤ã«è©ä¾¡"]:["주ëì± ì§ì 측ì ","ì¬êµì± í¨í´ ë¶ì","ìì ì± ìì¹ ê³ì°","ì ì¤ì± ì¤íì¼ íê°"]})})]}):"result"===N&&I&&E?(0,a.jsx)(v,{result:I,resultData:E,isEnglish:"en"===P,isJapanese:"ja"===P,language:P}):null}},79563:(e,t,s)=>{"use strict";s.d(t,{L:()=>i,saveSharedResult:()=>a});let a=async(e,t)=>{try{if(!e.testType||!e.userName)throw Error("íì ì ë³´ê° ëë½ëììµëë¤.");let s=e.userGender||"",a={testType:e.testType,testName:e.testName,userName:e.userName,userGender:s,answers:e.answers||[],result:e.result?JSON.parse(JSON.stringify(e.result)):null,...e.mbtiResult&&{mbtiResult:e.mbtiResult},...e.enneagramType&&{enneagramType:e.enneagramType},...e.attachmentType&&{attachmentType:e.attachmentType},...e.intelligenceScores&&{intelligenceScores:e.intelligenceScores}},i="ko";{let e=window.location.pathname;e.startsWith("/en")?i="en":e.startsWith("/es")?i="es":e.startsWith("/vi")?i="vi":e.startsWith("/zh-tw")?i="zh-tw":e.startsWith("/ja")&&(i="ja")}void 0!==t&&("string"==typeof t?i=t:"boolean"==typeof t&&!0===t&&(i="en"));let n={testType:e.testType,testName:e.testName||e.testType,resultData:a,userName:e.userName,userGender:s,language:i},r=await fetch("/api/shared-results",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(n)});if(!r.ok){let e=await r.text();throw console.error("API ìëµ ì¤ë¥:",r.status,e),Error(`ê²°ê³¼ ì ì¥ì ì¤í¨íìµëë¤. (${r.status})`)}let o=r.headers.get("content-type");if(!o||!o.includes("application/json")){let e=await r.text();throw console.error("ê³µì ê²°ê³¼ ì ì¥: JSONì´ ìë ìëµ ë°ì",e.substring(0,200)),Error("ìë²ìì ì못ë íìì ìëµì ë°ììµëë¤.")}let l=await r.json();if(e.result)try{let t="";if(e.result.type?t=e.result.type:e.mbtiResult&&(t=e.mbtiResult),t){let s={testId:e.testType,result:t,nickname:e.userName,timestamp:Date.now()};localStorage.setItem(`mymd_result_${e.testType}`,JSON.stringify(s))}}catch(e){console.error("ë¡ì»¬ ì ì¥ ì¤í¨:",e)}return l.sharedId}catch(e){throw console.error("ê³µì ê²°ê³¼ ì ì¥ ì¤ë¥:",e),e}},i=async e=>{try{if(!e||!e.testType||!e.userName)throw Error("ê³µì í ë°ì´í°ê° ë¶ì¡±í©ëë¤.");let t=window.location.pathname.startsWith("/en"),s={...e,testName:e.testName||e.testType,result:e.result||{}},i=await a(s,t),n=((e,t,s)=>{let a="ko";{let e=window.location.pathname;e.startsWith("/en")?a="en":e.startsWith("/es")?a="es":e.startsWith("/vi")?a="vi":e.startsWith("/zh-tw")?a="zh-tw":e.startsWith("/ja")&&(a="ja")}void 0!==s&&("string"==typeof s?a=s:"boolean"==typeof s&&!0===s&&(a="en"));let i="ko"===a?"":`/${a}`;return`https://www.maumdive.com${i}/${e}/result/${t}`})(e.testType,i,t);if(!document.getElementById("share-notification-styles")){let e=document.createElement("style");e.id="share-notification-styles",e.textContent=` 2 @keyframes slideIn { 3 from { 4 opacity: 0; 5 transform: translate(-50%, -60%); 6 } 7 to { 8 opacity: 1; 9 transform: translate(-50%, -50%); 10 } 11 } 12 @keyframes slideOut { 13 from { 14 opacity: 1; 15 transform: translate(-50%, -50%); 16 } 17 to { 18 opacity: 0; 19 transform: translate(-50%, -40%); 20 } 21 } 22 `,document.head.appendChild(e)}try{await navigator.clipboard.writeText(n);let e=document.createElement("div");e.style.cssText=` 23 position: fixed; 24 top: 50%; 25 left: 50%; 26 transform: translate(-50%, -50%); 27 background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); 28 color: white; 29 padding: 20px 30px; 30 border-radius: 15px; 31 box-shadow: 0 10px 30px rgba(0,0,0,0.3); 32 z-index: 10000; 33 font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; 34 font-size: 16px; 35 text-align: center; 36 animation: slideIn 0.3s ease-out; 37 `,e.innerHTML=t?'\uD83C\uDF89 Link copied!<br><small style="opacity: 0.8;">Share it with your friends~</small>':'\uD83C\uDF89 ë§í¬ê° ë³µì¬ëìì´ì!<br><small style="opacity: 0.8;">ì¹êµ¬ë¤ìê² ë°ë¡ ê³µì í´ë³´ì¸ì~</small>',document.body.appendChild(e),setTimeout(()=>{e.style.animation="slideOut 0.3s ease-in forwards",setTimeout(()=>{e.parentNode&&document.body.removeChild(e)},300)},2e3)}catch(s){let e=document.createElement("textarea");e.value=n,e.style.position="fixed",e.style.opacity="0",document.body.appendChild(e),e.focus(),e.select();try{document.execCommand("copy");let e=t?"\uD83C\uDF89 Link copied!\nShare it with your friends!":"\uD83C\uDF89 ë§í¬ê° ë³µì¬ëìì´ì!\nì¹êµ¬ë¤ìê² ê³µì í´ë³´ì¸ì!";alert(e)}catch(s){let e=t?"Copy function is not available. Please copy the link directly:\n"+n:"ë³µì¬ ê¸°ë¥ì ì¬ì©í ì ììµëë¤. ë§í¬ë¥¼ ì§ì ë³µì¬í´ì£¼ì¸ì:\n"+n;alert(e)}document.body.removeChild(e)}}catch(e){console.error("â ê³µì ì¤ë¥:",e),alert(window.location.pathname.startsWith("/en")?"An error occurred while sharing the result. Please try again later.":"ê²°ê³¼ ê³µì ì¤ ì¤ë¥ê° ë°ìíìµëë¤. ì ì í ë¤ì ìëí´ì£¼ì¸ì.")}}}},e=>{e.O(0,[48230,9673,57384,94424,4735,36676,58238,40892,34245,1686,90636,46593,38792],()=>e(e.s=14176)),_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.