PageSourceSearch

https://www.ditp.go.th/_next/static/chunks/pages/e-survey-from/[id]/[answerID]/result-36ab62f096457ed1.js

js ditp.go.th collected 2026-10-02 04:03:48 UTC 23,074 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6181],{14429:function(e,s,a){(window.__NEXT_P=window.__NEXT_P||[]).push(["/e-survey-from/[id]/[answerID]/result",function(){return a(39497)}])},83754:function(e,s,a){"use strict";a.d(s,{X:function(){return o}});var i=a(85893),t=a(23432),l=a(67294);let o=e=>{let{isLoading:s,className:a,children:o,isRounded:n,disabled:d,delay:r=450,onClick:c=()=>{},...u}=e,v=(0,l.useRef)(),m=(0,l.useMemo)(()=>s||d,[s,d]),x=(0,l.useCallback)(e=>{v.current&&(clearTimeout(v.current),v.current=null),v.current=setTimeout(()=>{c(e)},r)},[c,r]);return(0,i.jsxs)("button",{disabled:m,type:"button",className:"btn  ".concat(a||""," flex justify-content-center gap-1 align-items-center disabled:opacity-70 disabled:cursor-not-allowed !disabled:bg-gray-400"),onClick:x,...u,children:[s&&(0,i.jsx)(t.Z,{size:16,className:"animate-spin"}),o]})}},39497:function(e,s,a){"use strict";a.r(s),a.d(s,{AssessmentResultPage:function(){return A},__N_SSP:function(){return R},default:function(){return C}});var i=a(85893),t=a(66308),l=a(76809),o=a(67294),n=a(20512),d=a(16310),r=a(3632),c=a(68341),u=a.n(c),v=a(41664),m=a.n(v),x=a(99571),p=a(43414),h=a(68258),f=a(82797),y=a(83754),b=a(45149),j=a(68190),g=a(65236),_=a(16215),N=a(23810),w=a(5152);let k=a.n(w)()(()=>Promise.all([a.e(9932),a.e(497)]).then(a.bind(a,50497)),{loadableGenerated:{webpack:()=>[null]},ssr:!1});var E=e=>{let{title:s,categories:a,series:t}=e,l={dataLabels:{enabled:!0,background:{enabled:!0,borderRadius:2},style:{fontSize:"10px"}},chart:{type:"radar",toolbar:{show:!1}},plotOptions:{radar:{size:160,polygons:{strokeColor:"#e8e8e8",fill:{colors:["#f8f8f8","#fff"]}}}},grid:{padding:{top:50,bottom:50,left:50,right:50}},colors:["#67e8f9"],xaxis:{categories:a,labels:{style:{fontSize:"12px",fontWeight:"bold",colors:Array(a.length).fill("#000000")},formatter:function(e){return function(e){let s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:100,a=[],i="";for(let t=0;t<e.length;t++)(i+=e[t]).length>=s&&(a.push(i),i="");return i.length>0&&a.push(i),a}(e)}}},yaxis:{min:0,max:100,tickAmount:5,labels:{style:{fontSize:"10px"},offsetX:0,offsetY:8,formatter:function(e){return 0===e?"":e}}},stroke:{width:2},fill:{opacity:.3},markers:{size:4},tooltip:{x:{formatter:function(e,s){let{dataPointIndex:i}=s;return a[i]||""}}},responsive:[{breakpoint:768,options:{plotOptions:{radar:{size:100}},grid:{padding:{top:30,bottom:30,left:30,right:30}},xaxis:{labels:{style:{fontSize:"10px",fontWeight:"bold"},formatter:e=>e.length>12?e.substring(0,9)+"...":e}},markers:{size:3}}},{breakpoint:480,options:{dataLabels:{style:{fontSize:"8px"}},plotOptions:{radar:{size:70}},grid:{padding:{top:20,bottom:20,left:20,right:20}},xaxis:{labels:{style:{fontSize:"10px",fontWeight:"bold"},formatter:e=>e.length>15?e.substring(0,12)+"...":e}},yaxis:{min:0,max:100,tickAmount:5,labels:{style:{fontSize:"8px"},formatter:function(e){return 0===e?"":e}}},markers:{size:2}}}]};return(0,i.jsx)(k,{options:l,series:t,type:"radar",className:"apexcharts-canvas"})},I=a(14640);p.GV.HIGH,p.Zt.LARGE;let S=d.Ry().shape({email:d.Z_().email("รูปแบบอีเมลไม่ถูกต้อง").required("กรุณากรอกอีเมล"),subscribe_to_news:d.O7(),deep_consultation:d.O7(),checkboxValidation:d.O7().test("at-least-one-checkbox","กรุณาเลือกอย่างน้อย 1 ตัวเลือก",function(){let{subscribe_to_news:e,deep_consultation:s}=this.parent;return e||s})});var R=!0;function A(e){var s,a,d,c,v,w,k,R,A,C,z,F,T,O,G,H,L,D,P,q,Z,V,$,B,M,W,X,Q,U,K,Y,J,ee,es,ea,ei,et,el,eo,en,ed,er,ec;let eu=(0,I.useLocale)(),{ssoAccount:ev}=e,[em,ex]=(0,o.useState)(!1),[ep,eh]=(0,o.useState)(""),[ef,ey]=(0,o.useState)({}),eb=(0,o.useMemo)(()=>{var s;return(0,x.DQ)(null===(s=e.surveysdata)||void 0===s?void 0:s.data)},[e.surveysdata]),ej=(0,o.useMemo)(()=>{var s,a,i;return(null===(i=e.surveysResult)||void 0===i?void 0:null===(a=i.data)||void 0===a?void 0:null===(s=a.answers)||void 0===s?void 0:s.map(e=>{var s;return{...e,subQuestions:(null===(s=e.subQuestions)||void 0===s?void 0:s.sort((e,s)=>e.page!==s.page?e.page-s.page:e.sequence-s.sequence))||[]}}).sort((e,s)=>e.page!==s.page?e.page-s.page:e.sequence-s.sequence))||[]},[null===(a=e.surveysResult)||void 0===a?void 0:null===(s=a.data)||void 0===s?void 0:s.answers]),eg=null==eb?void 0:eb.isAssessment,e_=[{label:e.message.HomePage.home,link:"/"},{label:eg?e.message.survey.export_Readiness:e.message.survey.public_Participation,link:eg?"/e-survey-export-readiness-assessment":"/e-survey-public-participation"},{label:e.surveysdata.data.survey_name}
1],{toPDF:eN,targetRef:ew}=(0,p.Eb)({filename:(null===(c=e.surveysdata)||void 0===c?void 0:null===(d=c.data)||void 0===d?void 0:d.survey_name)?"".concat(null===(w=e.surveysdata)||void 0===w?void 0:null===(v=w.data)||void 0===v?void 0:v.survey_name,".pdf"):"assessment.pdf"}),ek=e=>{ey(s=>({...s,[e]:!s[e]}))};(0,o.useEffect)(()=>{var s,a;if(null===(a=e.surveysResult)||void 0===a?void 0:null===(s=a.data)||void 0===s?void 0:s.answers){let s={};e.surveysResult.data.answers.forEach(e=>{s[e.questionDocumentId]=!0}),ey(s)}},[e.surveysResult]);let eE=()=>{var s,a,i,t,o,n,d,r,c,u;let v=encodeURIComponent("แบบประเมิน: ".concat((null===(a=e.surveysdata)||void 0===a?void 0:null===(s=a.data)||void 0===s?void 0:s.survey_name)||"Export Readiness Assessment")),m=encodeURIComponent("ขอเชิญทำแบบประเมินความพร้อมในการส่งออก: ".concat(window.location.origin,"/e-survey-from/").concat(null===(t=e.surveysdata)||void 0===t?void 0:null===(i=t.data)||void 0===i?void 0:i.documentId,"?isGuest=yes"));"mailto:?subject=".concat(v,"&body=").concat(m),l.hi.saveSurveysFromStat(null===(n=e.surveysdata)||void 0===n?void 0:null===(o=n.data)||void 0===o?void 0:o.documentId,f.a.SHARE_EMAIL_AFTER);let x="แบบประเมิน: ".concat((null===(r=e.surveysdata)||void 0===r?void 0:null===(d=r.data)||void 0===d?void 0:d.survey_name)||"Export Readiness Assessment","\n\nขอเชิญทำแบบประเมินความพร้อมในการส่งออก: ").concat(window.location.origin,"/e-survey-from/").concat(null===(u=e.surveysdata)||void 0===u?void 0:null===(c=u.data)||void 0===c?void 0:c.documentId,"?isGuest=yes");navigator.clipboard.writeText(x).then(()=>{alert("คัดลอกข้อความแล้ว สามารถนำไปแชร์ในอีเมลได้")})};return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(t.Z,{title:(null==e?void 0:null===(R=e.surveysdata)||void 0===R?void 0:null===(k=R.data)||void 0===k?void 0:k.survey_name)||"ผลการประเมิน",description:(null==e?void 0:null===(z=e.surveysResult)||void 0===z?void 0:null===(C=z.data)||void 0===C?void 0:null===(A=C.overall_level_object)||void 0===A?void 0:A.level_name)?"ผลการประเมิน: ".concat(e.surveysResult.data.overall_level_object.level_name):"ผลการประเมิน",breadcrumbs:[{label:e.message.HomePage.home,link:"/"},{label:(null===(T=e.surveysdata)||void 0===T?void 0:null===(F=T.data)||void 0===F?void 0:F.survey_name)||"ผลการประเมิน"}]}),(0,i.jsxs)("div",{className:"pt-16",children:[(0,i.jsx)("div",{className:"sticky top-[60px] bg-white z-10",children:(0,i.jsx)(r.Z,{paths:e_})}),(0,i.jsx)("div",{className:"bg-white min-h-screen",children:(0,i.jsxs)("div",{children:[(0,i.jsxs)("div",{ref:ew,className:"max-w-screen-lg mx-auto p-6",style:{backgroundColor:"#ffffff",backgroundImage:"url('/images/bg.jpg')",backgroundSize:"cover",backgroundPosition:"center",backgroundRepeat:"repeat"},children:[(0,i.jsx)("div",{className:"max-w-[1000px] h-[180px] overflow-hidden rounded-2xl relative bg-center bg-cover",style:{backgroundImage:"url('".concat(null===(G=e.surveysdata)||void 0===G?void 0:null===(O=G.data)||void 0===O?void 0:O.image_cover,"')"),backgroundPosition:"center 80%"},children:(0,i.jsx)("div",{className:"absolute inset-0 bg-[#10143C4D] flex items-center justify-center",children:(0,i.jsx)("p",{className:"text-center text-white text-2xl font-bold",children:(null===(L=e.surveysdata)||void 0===L?void 0:null===(H=L.data)||void 0===H?void 0:H.survey_name)||""})})}),(0,i.jsxs)("div",{className:"text-center mb-8 relative mt-8",children:[(0,i.jsx)("div",{className:"flex justify-center items-center mb-4",children:(0,i.jsx)("img",{src:"/images/verify.svg",alt:"",className:""})}),(0,i.jsx)("h1",{className:"text-[40px] font-bold text-[".concat(null===(q=e.surveysResult)||void 0===q?void 0:null===(P=q.data)||void 0===P?void 0:null===(D=P.overall_level_object)||void 0===D?void 0:D.color,"] mb-2"),children:null===($=e.surveysResult)||void 0===$?void 0:null===(V=$.data)||void 0===V?void 0:null===(Z=V.overall_level_object)||void 0===Z?void 0:Z.level_name}),(0,i.jsxs)("div",{className:"flex flex-col space-x-2 text-center items-center justify-center gap-1 mt-10",children:[(0,i.jsxs)("div",{className:"flex flex-row space-x-2",children:[(0,i.jsx)("p",{children:e.message.survey.Summary}),(0,i.jsx)("img",{src:"/icons/group_login.png",alt:"Profile",className:"w-[20px] h-[20px]"}),(0,i.jsxs)("p",{className:"font-semibold",children:[e.message.survey.you," ",ev?"".concat(ev.nameTh," ").concat(ev.lastnameTh):"Guest"]})]}),(0,i.jsxs)("div",{className:"flex flex-row space-x-2 text-2xl font-bold",children:[(0,i.jsx)("p",{children:e.message.survey.total}),(0,i.jsxs)("p",{children:[null===(M=e.surveysResult)||void 0===M?void 0:null===(B=M.data)||void 0===B?void 0:B.totalScore,"%"]})]})]})]}),(0,i.jsx)(E,{title:"คะแนนรายหมวด",categories:ej.map(e=>e.question),series:[{name:"คะแนน",data:ej.map(e=>e.score)}]}),(0,i.jsx)("div",{className:"rounded-2xl p-1 mb-1 relative",children:(0,i.jsx)("div",{className:"space-y-1",children:ej.map((e,s)=>{var a,t;return(null==e?void 0:null===(a=e.subQuestions)||void 0===a?void 0:a.length)>0?(0,i.jsx)("div",{children:(0,i.jsxs)("div",{className:"text-[#10143C] border-b border-gray-200 mt-4",children:[(0,i.jsxs)("div",{className:"flex justify-between items-center",children:[(0,i.jsxs)("div",{className:"flex space-x-4",children:[(0,i.jsx)("span",{className:"text-[24px] font-semibold text-gradient",children:e.question}),(0,i.jsx)("div",{className:"md:flex hidden items-center space-x-1 text-[#1E40AF] underline cursor-pointer hover:opacity-80",onClick:()=>ek(e.questionDocumentId),children:ef[e.questionDocumentId]?(0,i.jsx)(j.Z,{size:18,color:"#10143C"}):(0,i.jsx)(g.Z,{size:18,color:"#10143C"})})]}),(0,i.jsx)("div",{className:"flex space-x-2",children:(0,i.jsxs)("span",{className:"text-sm text-[#000000]",children:[e.score,"%"]})})]}),ef[e.questionDocumentId]&&(0,i.jsx)("div",{className:"mt-3",children:null==e?void 0:null===(t=e.subQuestions)||void 0===t?void 0:t.map((e,s)=>(0,i.jsx)("div",{className:"pl-3",children:eI(e,!0)},s))})]})},s):eI(e)})})})]}),(0,i.jsxs)("div",{className:"max-w-screen-lg mx-auto p-6",children:[(0,i.jsx)("div",{className:"font-bold",children:e.message.survey.enter_email}),(0,i.jsx)("div",{className:"mt-4",children:(0,i.jsx)(n.J9,{initialValues:{email:(null==ev?void 0:ev.email)||"",subscribe_to_news:!1,deep_consultation:!1,checkboxValidation:!1}
1,validationSchema:S,onSubmit:s=>{!function(s){var a,t,o,n;ex(!0);let d=ev?"".concat(ev.nameTh," ").concat(ev.lastnameTh):"Guest",r={email:s.email,subscribe_to_news:s.subscribe_to_news,deep_consultation:s.deep_consultation,accountName:d};l.hi.sendAnswerEmail(null===(t=e.surveysResult)||void 0===t?void 0:null===(a=t.data)||void 0===a?void 0:a.documentId,r,null===(n=e.surveysResult)||void 0===n?void 0:null===(o=n.data)||void 0===o?void 0:o.locale).then(()=>{var s,a,t,o,n,d,r,c,u,v,x,p;b.W.showModal({showCancelButton:!1,showConfirmButton:!1,allowOutsideClick:!0,html:(0,i.jsx)("div",{className:"text-[#10143C]",children:(0,i.jsxs)("div",{className:"flex flex-col items-center gap-4",children:[(0,i.jsx)("img",{alt:"question-submitted",src:"/icons/checked.png",style:{width:"84px",height:"75px",objectFit:"contain"}}),(0,i.jsx)("div",{className:"font-bold text-2xl",children:e.message.survey.popup_submission_success}),(0,i.jsx)("div",{className:"font-normal text-base",children:e.message.survey.popup_submission_message}),(0,i.jsxs)("div",{className:"flex flex-col md:flex-row justify-center items-center gap-2 my-6",children:[e.message.survey.share_assessment,":",(0,i.jsxs)("div",{className:"flex gap-2",children:[(0,i.jsx)(h.Dk,{onClick:()=>{var s,a;l.hi.saveSurveysFromStat(null===(a=e.surveysdata)||void 0===a?void 0:null===(s=a.data)||void 0===s?void 0:s.documentId,f.a.SHARE_FACEBOOK_BEFORE)},url:"".concat(window.location.origin,"/e-survey-from/").concat(null===(a=e.surveysdata)||void 0===a?void 0:null===(s=a.data)||void 0===s?void 0:s.documentId,"?isGuest=yes"),children:(0,i.jsx)(h.Vq,{size:32,round:!0})}),(0,i.jsx)(h.Ni,{onClick:()=>{var s,a;l.hi.saveSurveysFromStat(null===(a=e.surveysdata)||void 0===a?void 0:null===(s=a.data)||void 0===s?void 0:s.documentId,f.a.SHARE_LINE_AFTER)},url:"".concat(window.location.origin,"/e-survey-from/").concat(null===(o=e.surveysdata)||void 0===o?void 0:null===(t=o.data)||void 0===t?void 0:t.documentId,"?isGuest=yes"),children:(0,i.jsx)(h.zb,{size:32,round:!0})}),(0,i.jsx)(h.B,{onClick:()=>{var s,a;l.hi.saveSurveysFromStat(null===(a=e.surveysdata)||void 0===a?void 0:null===(s=a.data)||void 0===s?void 0:s.documentId,f.a.SHARE_X_AFTER)},url:"".concat(window.location.origin,"/e-survey-from/").concat(null===(d=e.surveysdata)||void 0===d?void 0:null===(n=d.data)||void 0===n?void 0:n.documentId,"?isGuest=yes"),children:(0,i.jsx)(h.b0,{size:32,round:!0})}),(0,i.jsx)(h.r2,{onClick:()=>{var s,a;l.hi.saveSurveysFromStat(null===(a=e.surveysdata)||void 0===a?void 0:null===(s=a.data)||void 0===s?void 0:s.documentId,f.a.SHARE_LINKEDIN_AFTER)},url:"".concat(window.location.origin,"/e-survey-from/").concat(null===(c=e.surveysdata)||void 0===c?void 0:null===(r=c.data)||void 0===r?void 0:r.documentId,"?isGuest=yes"),children:(0,i.jsx)(h.pA,{size:32,round:!0})}),(0,i.jsx)(h.N0,{onClick:()=>{var s,a;l.hi.saveSurveysFromStat(null===(a=e.surveysdata)||void 0===a?void 0:null===(s=a.data)||void 0===s?void 0:s.documentId,f.a.SHARE_WHATSAPP_AFTER)},url:"".concat(window.location.origin,"/e-survey-from/").concat(null===(v=e.surveysdata)||void 0===v?void 0:null===(u=v.data)||void 0===u?void 0:u.documentId,"?isGuest=yes"),children:(0,i.jsx)(h.ud,{size:32,round:!0})}),(0,i.jsx)("button",{onClick:eE,className:"cursor-pointer",children:(0,i.jsx)(h.LQ,{size:32,round:!0})}),(0,i.jsx)(h.tq,{onClick:()=>{var s,a;l.hi.saveSurveysFromStat(null===(a=e.surveysdata)||void 0===a?void 0:null===(s=a.data)||void 0===s?void 0:s.documentId,f.a.SHARE_TELEGRAM_AFTER)},url:"".concat(window.location.origin,"/e-survey-from/").concat(null===(p=e.surveysdata)||void 0===p?void 0:null===(x=p.data)||void 0===x?void 0:x.documentId,"?isGuest=yes"),children:(0,i.jsx)(h.YG,{size:32,round:!0})})]})]}),(0,i.jsx)("div",{className:"flex gap-4 justify-center w-full flex-wrap md:flex-nowrap",children:(0,i.jsx)(m(),{href:"/",target:"_blank",locale:eu,style:{maxWidth:"220px",width:"100%",minHeight:"53px"},className:"font-semibold text-base bg-white rounded-full border-2 border-[#10143C] flex justify-center items-center gap-2",children:(0,i.jsxs)("div",{className:"flex justify-center items-center gap-2",children:[(0,i.jsx)(_.Z,{size:14,color:"#10143C"})," ",e.message.survey.popup_back_to_home]})})})]})}),width:"540px",onClose:()=>{ex(!1)}}),ex(!1)}).catch(()=>{ex(!1)}).finally(()=>{ex(!1)})}(s)},children:s=>{let{errors:a,touched:t,isSubmitting:l,setFieldValue:o,values:d}=s;return(0,i.jsx)(n.l0,{className:"space-y-4",children:(0,i.jsxs)("div",{className:"",children:[(0,i.jsx)("div",{children:(0,i.jsxs)("label",{className:"flex items-center",children:[(0,i.jsx)(n.gN,{name:"subscribe_to_news",type:"checkbox",className:"mr-2"}),(0,i.jsx)("span",{children:e.message.survey.subscribe_info})]})}),(0,i.jsx)("div",{className:"mt-2",children:(0,i.jsxs)("label",{className:"flex items-center",children:[(0,i.jsx)(n.gN,{name:"deep_consultation",type:"checkbox",className:"mr-2"}),(0,i.jsx)("span",{children:e.message.survey.detailed_guidance})]})}),(0,i.jsx)(n.gN,{name:"checkboxValidation",type:"hidden"}),a.checkboxValidation&&(t.subscribe_to_news||t.deep_consultation)&&(0,i.jsx)("div",{className:"text-red-500 text-sm mt-2 text-left",children:a.checkboxValidation}),(0,i.jsxs)("div",{className:"max-w-sm",children:[(0,i.jsxs)("div",{className:"flex  items-center gap-4 relative  mt-3",children:[(0,i.jsx)(n.gN,{className:"w-full border border-gray-200 rounded-full p-2 pl-6 h-[53px]",type:"email",name:"email",placeholder:"[email protected]"}),(0,i.jsx)(y.X,{type:"submit",disabled:!ep,isLoading:em,className:"bg-gradient-to-r from-[#1A1C49] to-[#41B8B9] text-white px-4 py-2 rounded-full absolute right-2 min-w-[100px] flex justify-center items-center",children:e.message.survey.submit_button})]}),a.email&&t.email&&(0,i.jsx)("div",{className:"text-red-500 text-xs mt-1",children:a.email}),(0,i.jsx)("div",{className:"mt-5",children:(0,i.jsx)(N.Z,{onVerify:e=>{eh(e)}})})]})]})})}})}),(0,i.jsxs)("div",{className:"flex flex-col md:flex-row gap-2 my-8",children:[e.message.survey.share_assessment,":",(0,i.jsxs)("div",{className:"flex gap-2",children:[(0,i.jsx)(h.Dk,{onClick:()=>{var s,a;l.hi.saveSurveysFromStat(null===(a=e.surveysdata)||void 0===a?void 0:null===(s=a.data)||void 0===s?void 0:s.documentId,f.a.SHARE_FACEBOOK_AFTER)},url:"".concat(window.location.origin,"/e-survey-from/").concat(null===(X=e.surveysdata)||void 0===X?void 0:null===(W=X.data)||void 0===W?void 0:W.documentId,"?isGuest=yes"),children:(0,i.jsx)(h.Vq,{size:32,round:!0})}),(0,i.jsx)(h.Ni,{onClick:()=>{var s,a;l.hi.saveSurveysFromStat(null===(a=e.surveysdata)||void 0===a?void 0:null===(s=a.data)||void 0===s?void 0:s.documentId,f.a.SHARE_LINE_AFTER)},url:"".concat(window.location.origin,"/e-survey-from/").concat(null===(U=e.surveysdata)||void 0===U?void 0:null===(Q=U.data)||void 0===Q?void 0:Q.documentId,"?isGuest=yes"),children:(0,i.jsx)(h.zb,{size:32,round:!0})}),(0,i.jsx)(h.B,{onClick:()=>{var s,a;l.hi.saveSurveysFromStat(null===(a=e.surveysdata)||void 0===a?void 0:null===(s=a.data)||void 0===s?void 0:s.documentId,f.a.SHARE_X_AFTER)},url:"".concat(window.location.origin,"/e-survey-from/").concat(null===(Y=e.surveysdata)||void 0===Y?void 0:null===(K=Y.data)||void 0===K?void 0:K.documentId,"?isGuest=yes"),children:(0,i.jsx)(h.b0,{size:32,round:!0})}),(0,i.jsx)(h.r2,{onClick:()=>{var s,a;l.hi.saveSurveysFromStat(null===(a=e.surveysdata)||void 0===a?void 0:null===(s=a.data)||void 0===s?void 0:s.documentId,f.a.SHARE_LINKEDIN_AFTER)},url:"".concat(window.location.origin,"/e-survey-from/").concat(null===(ee=e.surveysdata)||void 0===ee?void 0:null===(J=ee.data)||void 0===J?void 0:J.documentId,"?isGuest=yes"),children:(0,i.jsx)(h.pA,{size:32,round:!0})}),(0,i.jsx)(h.N0,{onClick:()=>{var s,a;l.hi.saveSurveysFromStat(null===(a=e.surveysdata)||void 0===a?void 0:null===(s=a.data)||void 0===s?void 0:s.documentId,f.a.SHARE_WHATSAPP_AFTER)},url:"".concat(window.location.origin,"/e-survey-from/").concat(null===(ea=e.surveysdata)||void 0===ea?void 0:null===(es=ea.data)||void 0===es?void 0:es.documentId,"?isGuest=yes"),children:(0,i.jsx)(h.ud,{size:32,round:!0})}),(0,i.jsx)("button",{onClick:eE,className:"cursor-pointer",children:(0,i.jsx)(h.LQ,{size:32,round:!0})}),(0,i.jsx)(h.tq,{onClick:()=>{var s,a;l.hi.saveSurveysFromStat(null===(a=e.surveysdata)||void 0===a?void 0:null===(s=a.data)||void 0===s?void 0:s.documentId,f.a.SHARE_TELEGRAM_AFTER)},url:"".concat(window.location.origin,"/e-survey-from/").concat(null===(et=e.surveysdata)||void 0===et?void 0:null===(ei=et.data)||void 0===ei?void 0:ei.documentId,"?isGuest=yes"),children:(0,i.jsx)(h.YG,{size:32,round:!0})})]})]}),(null===(en=e.surveysResult)||void 0===en?void 0:null===(eo=en.data)||void 0===eo?void 0:null===(el=eo.overall_level_object)||void 0===el?void 0:el.recommended_projects)?u()(null===(ec=e.surveysResult)||void 0===ec?void 0:null===(er=ec.data)||void 0===er?void 0:null===(ed=er.overall_level_object)||void 0===ed?void 0:ed.recommended_projects):null]})]})})]})]});function eI(s,a){return(0,i.jsxs)("div",{className:"border-b border-gray-200 ".concat(a?"mt-2":"pt-4"," pb-2 last:border-b-0"),children:[(0,i.jsxs)("div",{className:"flex md:flex-row flex-col md:items-center justify-between mb-0 gap-3 md:gap-0",children:[(0,i.jsxs)("div",{className:"flex flex-col md:flex-row md:items-center md:space-x-4",children:[(0,i.jsx)("div",{className:"flex flex-col md:flex-row text-start md:items-center space-x-1 text-[#10143C]",children:(0,i.jsx)("span",{className:"font-semibold break-words ".concat(a?"text-[20px]":"text-gradient text-[24px]"),children:s.question})}),!a&&(0,i.jsx)("div",{className:"md:flex hidden items-center space-x-1 text-[#1E40AF] underline cursor-pointer hover:opacity-80",onClick:()=>ek(s.questionDocumentId),children:ef[s.questionDocumentId]?(0,i.jsx)(j.Z,{size:18,color:"#10143C"}):(0,i.jsx)(g.Z,{size:18,color:"#10143C"})})]}),(s.type_field===x.j$.DROPDOWN_OPTION||s.type_field===x.j$.SINGLE_CHOICE||s.type_field===x.j$.MULTIPLE_CHOICE)&&!a&&
1(0,i.jsx)("div",{children:(0,i.jsx)("div",{className:"md:flex hidden items-center space-x-2",children:(0,i.jsxs)("span",{className:"text-sm text-[#000000]",children:[s.score,"%"]})})})]}),(ef[s.questionDocumentId]&&!a||a)&&(0,i.jsx)("div",{className:"p-4 text-sm w-full",children:(0,i.jsxs)("div",{className:"flex gap-2 w-full ",children:[(0,i.jsxs)("div",{className:"font-semibold text-base whitespace-nowrap min-w-[115px]",children:[e.message.survey.your_answer," :"]}),(0,i.jsxs)("div",{className:"break-words w-[calc(100%-115px)]",children:[(s.type_field===x.j$.DROPDOWN_OPTION||s.type_field===x.j$.SINGLE_CHOICE||s.type_field===x.j$.MULTIPLE_CHOICE)&&s.selectedOptionDocumentIds.map((e,a)=>{let t=s.options.find(s=>s.documentId===e),l="";if(t){var o;l=(null===(o=t.answer_option_text)||void 0===o?void 0:o.answer_text)||""}return(0,i.jsxs)("div",{className:"text-base text-[#000000] break-words font-semibold",children:[null==t?void 0:t.option," ",l?"(".concat(l,")"):""]},e)}),s.type_field===x.j$.RATING_SCALE&&(0,i.jsx)("div",{className:"break-words",children:s.answer_rating}),s.type_field===x.j$.TEXT_FIELD&&(0,i.jsx)("div",{className:"break-words",children:s.answer_text}),s.type_field===x.j$.UPLOAD_FILE&&s.answer_file.map((e,s)=>(0,i.jsx)("div",{className:"break-words truncate leading-[2]",children:(0,i.jsx)("a",{href:e.url,target:"_blank",rel:"noopener noreferrer",className:"text-[#1E40AF]  cursor-pointer hover:opacity-80 no-underline",children:e.url})},s)),s.type_field===x.j$.TTC&&(0,i.jsxs)("div",{className:"break-words",children:[s.answer_region||"",s.answer_region?",":"",s.answer_office||""]})]})]})})]},s.questionDocumentId)}}var C=A}},function(e){e.O(0,[2655,7847,5443,8341,6310,512,3349,4237,6308,266,2888,9774,179],function(){return e(e.s=14429)}),_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.