1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[86429,91111],{62344:(e,t,s)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/business-instinct",function(){return s(91467)}])},91467:(e,t,s)=>{"use strict";s.r(t),s.d(t,{__N_SSG:()=>f,default:()=>j});var i=s(37876),n=s(18847),a=s.n(n),l=s(72239),r=s.n(l),o=s(14232),c=s(89099),d=s(33004),u=s(39495),p=s(94424),x=s(88509),m=s(34044);let h=a()(()=>Promise.all([s.e(22223),s.e(12866),s.e(50665)]).then(s.bind(s,50665)),{loadableGenerated:{webpack:()=>[50665]},ssr:!1}),g=a()(()=>Promise.all([s.e(22223),s.e(12866),s.e(36098)]).then(s.bind(s,36098)),{loadableGenerated:{webpack:()=>[36098]},ssr:!1}),b=a()(()=>Promise.all([s.e(22223),s.e(12866),s.e(27675),s.e(50665),s.e(3149)]).then(s.bind(s,20646)),{loadableGenerated:{webpack:()=>[20646]},ssr:!1});var f=!0;let j=e=>{let{initialPageContent:t,initialIntroContent:n,initialLoadingContent:a,initialQuestions:l}=e,f=(0,c.useRouter)(),[j,y]=(0,o.useState)(0),[v,T]=(0,o.useState)([]),[w,N]=(0,o.useState)("intro"),[S,k]=(0,o.useState)(null),{userName:D,setUserName:C}=(0,d.vx)({enableGender:!1}),{participantCount:E}=(0,x.q)("business-instinct"),B=f.locale||"ko";(0,u.r)(C,()=>{},e=>N(e),k,T);let P=(0,o.useMemo)(()=>l||[],[l]),_=async e=>{let t=[...v];t[j]=e,T(t);let i=document.activeElement;if(i&&i.blur(),document.querySelectorAll(".optionButton").forEach(e=>e.blur()),j<P.length-1)y(j+1);else{let e=Date.now();N("loading");try{let i;fetch("/api/shared-results",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({testType:"business-instinct"})});let n=await fetch("/api/tests/calculate-business-instinct",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({answers:t,locale:B})});if(!n.ok)throw Error("Failed to calculate results on server");let a=await n.json(),l={resultType:a.resultType,scores:a.scores,swot:a.swot,radarData:a.radarData,feedback:a.feedback,userName:D};try{let{saveSharedResult:e}=await s.e(79563).then(s.bind(s,79563));i=await e({testType:"business-instinct",testName:B?"Business Instinct Test":"ja"===B?"ãã¸ãã¹æ¬è½ãã¹ã":"ko"===B?"ë¹ì¦ëì¤ ë³¸ë¥ í
ì¤í¸":"Business Instinct Test",userName:D,answers:t,result:l},"ko"===B)}catch(e){console.error("ê²°ê³¼ ì ì¥ ì¤í¨:",e),k(l)}fetch("/api/user/test-results",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({testType:"business-instinct",testName:B?"Business Instinct Test":"ë¹ì¦ëì¤ ë³¸ë¥ í
ì¤í¸",result:l,score:10,title:l.resultType})}).catch(e=>console.error(e));let r=Date.now()-e,o=Math.max(0,2e3-r);setTimeout(()=>{i?f.push(`/business-instinct/result/${i}`):(k(l),N("result"))},o)}catch(e){console.error("ì°¸ì¬ ê¸°ë¡ ëë ê²°ê³¼ ê³ì° ì¤í¨:",e),alert("ko"===B?"ìë² íµì ì¤ ì¤ë¥ê° ë°ìíìµëë¤. ì ì í ë¤ì ìëí´ì£¼ì¸ì.":"An error occurred during calculation. Please try again."),N("intro")}}};if("intro"===w)return(0,i.jsx)(m.A,{thumbnail:"/thumbnails/business-instinct.avif",thumbnailSrc:"/thumbnails/business-instinct.avif",locale:B,title:n?.mainTitle,subtitle:n?.subt
1itle,emoji:"\uD83D\uDCBC",tags:n?.tags||[],participants:E,metaTitle:t?.metaTitle,metaDescription:t?.metaDescription,ogImage:"/thumbnails/business-instinct.jpg",onStart:e=>{let t=e?.trim()||D?.trim();if(!t)return void alert({en:"Please enter your name.",ja:"ååãå
¥åãã¦ãã ããã",ko:"ì´ë¦ì ì
ë ¥í´ì£¼ì¸ì.",vi:"Vui l\xf2ng nháºp t\xean cá»§a bạn.",es:"Por favor, introduzca su nombre.","zh-tw":"è«è¼¸å
¥æ¨çååã"}[B]||"ì´ë¦ì ì
ë ¥í´ì£¼ì¸ì.");C(t),N("test")},initialNickname:D,startButtonText:n?.startButton,showGenderInput:!1,nicknamePlaceholder:n?.namePlaceholder||("ko"===B?"ì´ë¦ì ì
ë ¥íì¸ì":B?"Enter your name":"ja"===B?"ååãå
¥åãã¦ãã ãã":"vi"===B?"Nháºp t\xean cá»§a bạn":"es"===B?"Introduzca su nombre":"è«è¼¸å
¥æ¨çåå"),renderChildrenBeforeStartButton:!0,afterButtonContent:(0,i.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:"16px",marginTop:"16px"},children:[(0,i.jsx)(()=>n?.trustMessage?(0,i.jsx)("div",{style:{background:"linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%)",border:"1px solid #bae6fd",borderRadius:"12px",padding:"16px",textAlign:"center",fontSize:"13px",color:"#0369a1",fontWeight:"500"},children:n?.trustMessage}):null,{}),(0,i.jsx)("div",{className:r().powerPreview,style:{margin:0,display:"grid",gridTemplateColumns:"repeat(auto-fit, minmax(100px, 1fr))",gap:"12px"},children:n?.previewCards?.map((e,t)=>(0,i.jsxs)("div",{className:r().powerCard,style:{background:"white",border:"1px solid #e5e7eb",boxShadow:"0 2px 4px rgba(0,0,0,0.05)",borderRadius:"12px",padding:"16px 8px",textAlign:"center",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center"},children:[(0,i.jsx)("div",{className:r().powerEmoji,style:{fontSize:"28px",marginBottom:"8px"},children:e.emoji}),(0,i.jsx)("h3",{style:{color:"#1f2937",fontSize:"13px",margin:"0 0 6px 0",lineHeight:"1.3"},children:e.title}),(0,i.jsx)("p",{style:{color:"#6b7280",fontSize:"12px",margin:0,lineHeight:"1.4"},children:e.desc})]},t))}),(0,i.jsx)(()=>{let e=n?.questionExamples||[];return e&&0!==e.length?(0,i.jsxs)("div",{children:[(0,i.jsx)("div",{style:{fontSize:"13px",color:"#64748b",fontWeight:"600",marginBottom:"12px",textAlign:"center"},children:"ko"===B?"ì§ë¬¸ ìì":B?"Sample Questions":"ja"===B?"ãµã³ãã«è³ªå":"vi"===B?"V\xed dụ C\xe2u há»i":"es"===B?"Preguntas de Ejemplo":"åé¡ç¯ä¾"}),(0,i.jsx)("div",{style:{display:"flex",flexDirection:"column",gap:"8px"},children:e.slice(0,2).map((e,t)=>(0,i.jsxs)("div",{style:{background:"white",border:"1px solid #e2e8f0",borderRadius:"12px",padding:"12px 16px",fontSize:"13px",color:"#475569",position:"relative",boxShadow:"0 1px 2px rgba(0,0,0,0.05)"},children:[(0,i.jsx)("span",{style:{position:"absolute",left:"-8px",top:"50%",transform:"translateY(-50%)",fontSize:"20px"},children:"\uD83D\uDCAD"}),(0,i.jsx)("span",{style:{marginLeft:"16px"},children:e})]},t))})]}):null},{})]})});if("test"===w&&P.length>0){let e=P[j],s=(j+1)/P.length*100;return(0,i.jsxs)("div",{className:r().container,children:[(0,i.jsx)(p.A,{title:t?.metaTitle,description:t?.metaDescription,ogImage:"/thumbnails/business-instinct.jpg"}),(0,i.jsx)("div",{children:(0,i.jsx)(h,{title:t?.headerTitle})}),(0,i.jsx)("main",{className:r().main,children:(0,i.jsxs)("div",{className:r().testContainer,children:[(0,i.jsxs)("p",{className:r().description,children:["\uD83D\uDCBC ","ko"===B?"ê²½ìíì ì¼ë¡ ë¶ì 본ë¥ì ì§ë¨íê³ ììµëë¤":B?"Diagnosing your business instincts":"ja"===B?"ãã¸ãã¹ã»ã³ã¹ãçµå¶å¦çã«è¨ºæãã¦ãã¾ã":"vi"===B?"Äang chẩn Äo\xe1n bản nÄng kinh doanh cá»§a bạn":"es"===B?"Diagnosticando sus instintos empresariales":"æ£å
1¨è¨ºæ·æ¨ç忥æ¬è½"]}),(0,i.jsxs)("div",{className:r().questionContainer,children:[(0,i.jsxs)("div",{className:r().progress,children:[(0,i.jsx)("div",{className:r().progressBar,style:{width:`${s}%`}}),(0,i.jsxs)("div",{className:r().progressText,children:[j+1," / ",P.length," (",Math.round(s),"%)"]})]}),(0,i.jsx)("div",{className:r().questionEmoji,children:"\uD83E\uDD14"}),(0,i.jsx)("h2",{className:r().question,style:{fontSize:"20px",lineHeight:"1.4"},children:e.question}),(0,i.jsx)("div",{className:r().options,children:e.options.map((e,t)=>(0,i.jsxs)("button",{className:`${r().optionButton} ${v[j]===t?r().selected:""}`,onClick:e=>{e.currentTarget.blur(),_(t)},children:[e.text,v[j]===t&&(0,i.jsx)("span",{style:{marginLeft:"auto",color:"#EC4899",fontWeight:"bold"},children:"â"})]},t))}),j>0&&(0,i.jsx)("div",{style:{display:"flex",justifyContent:"flex-end",marginTop:"15px"},children:(0,i.jsx)("button",{className:r().prevButton,onClick:()=>y(j-1),children:"ko"===B?"â ì´ì ì¼ë¡":B?"â Previous":"ja"===B?"â æ»ã":"vi"===B?"â Quay lại":"es"===B?"â Anterior":"â ä¸ä¸æ¥"})})]})]})})]})}if("loading"===w){let e=a?.loadingTitle?a.loadingTitle.replace("ë¹ì ì",`${D}ëì`).replace("Your",`${D}'s`).replace("ããªãã®",`${D}ããã®`).replace("Tu ",`El de ${D} `).replace("Cá»§a bạn",`cá»§a ${D}`).replace("ä½ ç",`${D}ç`):void 0;return(0,i.jsxs)("div",{className:r().container,children:[(0,i.jsx)(p.A,{title:t?.metaTitle,description:t?.metaDescription,ogImage:"/thumbnails/business-instinct.jpg"}),(0,i.jsx)("div",{children:(0,i.jsx)(h,{title:t?.headerTitle})}),(0,i.jsx)("main",{className:r().main,style:{minHeight:"auto",display:"flex",alignItems:"flex-start",justifyContent:"flex-start",paddingTop:"0px",marginTop:"0px",flex:1},children:(0,i.jsx)(g,{title:e||a?.loadingTitle,subtitle:a?.loadingSubtitle,steps:a?.steps,locale:B})})]})}return"result"===w&&S?(0,i.jsx)(b,{result:S,resultData:{userName:D},isEnglish:"en"===B,isJapanese:"ja"===B,locale:B}):null}}},e=>{e.O(0,[48230,9673,57384,94424,4735,36676,32506,34044,40892,38465,90636,46593,38792],()=>e(e.s=62344)),_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.