1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8473],{71520:function(e,t,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/show-assessment-result",function(){return s(75155)}])},23162:function(e,t,s){"use strict";var r=s(85893),n=s(25675),a=s.n(n),i=s(67294);t.Z=({deliveryTypes:e})=>{if(!e)return null;if(Array.isArray(e)&&e?.length>0){let t=e?.filter(e=>"Virtual Instructor-Led Training"===e.name||"e-Learning"===e.name),s=t?.some(e=>e?.name==="Virtual Instructor-Led Training"),[n,...l]=s?[t.find(e=>e?.name==="Virtual Instructor-Led Training"),...t.filter(e=>e?.name!=="Virtual Instructor-Led Training")]:t,o=e=>"Virtual Instructor-Led Training"===e&&window.innerWidth<=767?"vILT":e;if(0===t.length)return;return(0,r.jsxs)("div",{className:"item",children:[(0,r.jsx)(a(),{src:"/icons/delivery-method-icon.webp",width:22,height:22,alt:"Skill level"}),(0,r.jsxs)("span",{className:"info-information",children:[n?.name?o(n?.name):o(n),l.length>0&&(0,r.jsxs)(r.Fragment,{children:[", ",l.map((e,t)=>(0,r.jsxs)(i.Fragment,{children:[e?.name?o(e?.name):o(e),t<l.length-1?", ":""]},t))]})]})]})}if("object"==typeof e){let t=e?.name?e?.name:"";return(0,r.jsx)(r.Fragment,{children:t&&(0,r.jsxs)("div",{className:"item",children:[(0,r.jsx)(a(),{src:"/icons/delivery-method-icon.webp",width:22,height:22,alt:"Skill level"}),(0,r.jsx)("span",{className:"info-information",children:t})]})})}return"string"==typeof e||"number"==typeof e?(0,r.jsxs)("div",{className:"item",children:[(0,r.jsx)(a(),{src:"/icons/delivery-method-icon.webp",width:22,height:22,alt:"Skill level"}),(0,r.jsx)("span",{className:"info-information",children:e})]}):null}},28462:function(e,t,s){"use strict";var r=s(85893),n=s(25675),a=s.n(n),i=s(12553);t.Z=(e,t)=>e?(0,r.jsxs)("div",{className:"item",children:[(0,r.jsx)(a(),{src:"/icons/duration-icon.webp",width:22,height:22,alt:"Course duration"}),(0,r.jsx)("span",{className:"info-information",children:(0,i.LU)(t,e)})]}):null},70875:function(e,t,s){"use strict";var r=s(85893),n=s(62443),a=s(25675),i=s.n(a);t.Z=({skillLevel:e})=>{if(!e)return null;if(Array.isArray(e)&&e.length>0){let[t,...s]=e;return(0,r.jsxs)("div",{className:"item",children:[(0,r.jsx)(i(),{src:"/icons/level-icon-thin.webp",width:22,height:22,alt:"Skill level"}),(0,r.jsx)("span",{className:"info-information",children:t?.name??t}),s.length>0&&(0,r.jsx)(n.Z,{content:(0,r.jsx)("div",{className:"cards-popover-content",children:s.map((e,t)=>(0,r.jsx)("p",{className:"des-2",children:e?.name??e},t))}),trigger:"click",children:(0,r.jsxs)("span",{className:"info-information more-items",children:["+",s.length," more"]})})]})}if("object"==typeof e){let t=e?.name??"";return(0,r.jsx)(r.Fragment,{children:t&&(0,r.jsxs)("div",{className:"item",children:[(0,r.jsx)(i(),{src:"/icons/level-icon-thin.webp",width:22,height:22,alt:"Skill level"}),(0,r.jsx)("span",{className:"info-information",children:t})]})})}return"string"==typeof e||"number"==typeof e?(0,r.jsxs)("div",{className:"item",children:[(0,r.jsx)(i(),{src:"/icons/level-icon-thin.webp",width:22,height:22,alt:"Skill level"}),(0,r.jsx)("span",{className:"info-information",children:e})]}):null}},19460:function(e,t,s){"use strict";s.d(t,{Z:function(){return w}});var r=s(85893),n=s(46066),a=s(67294),i=s(70302),l=s(41664),o=s.n(l),c=s(32265),u=({item:e})=>(0,r.jsx)(i.Z,{className:"related-resources",children:(0,r.jsxs)(o(),{href:`${(0,c.EW)(e?.resource_tool_name,e?.resource?.resource_type,e?.resource?.slug,e?.resource?.documents_file)}`,className:"unstyled-link",target:"_blank",children:[(0,r.jsxs)("p",{className:"card-tag mb-0",children:[(0,c.qv)(e),(0,r.jsx)("span",{className:"des-1",children:(0,c.B_)(e)})]}),(0,r.jsxs)("div",{className:"card-info",children:[(0,r.jsxs)("h4",{children:[" ",e?.resource?.title??e?.resource?.name]}),e?.resource?.card_description?(0,r.jsx)("p",{className:"des-2",dangerouslySetInnerHTML:{__html:e?.resource?.card_description}}):(0,r.jsx)("p",{className:"des-2",children:"\xa0"}),(0,r.jsx)("button",{className:"button ghost large arrow ps-0",children:(0,c.Lv)(e)})]})]})}),d=s(30741);function m({resources:e}){let t=(0,c.aB)(e),s=(0,d.Z)(),i=(0,a.useRef)(null),[l,o]=(0,a.useState)(0),m=3;"mobile"===s&&(m=1);let w=t?.length||0,h=w>m,f=e=>{i.current.slickGoTo(e)},p={dots:!1,infinite:h,speed:500,arrows:!1,slidesToShow:m,slidesToScroll:1,beforeChange:(e,t)=>
1{o(t)},responsive:[{breakpoint:767,settings:{slidesToShow:m,slidesToScroll:1}}]};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(n.Z,{...p,ref:i,children:t?.map(e=>r.jsx(a.Fragment,{children:r.jsx(u,{item:e})},e?.id))}),h&&(0,r.jsxs)("div",{className:"slider-controls",children:[(0,r.jsx)("button",{onClick:()=>i.current.slickPrev(),className:"carousel-button carousel-prev"}),(0,r.jsx)("div",{className:"custom-dots",children:Array.from({length:t?.length||0},(e,t)=>(0,r.jsx)("div",{className:`dot ${t===l?"active":""}`,onClick:()=>f(t)},t))}),(0,r.jsx)("button",{onClick:()=>i.current.slickNext(),className:"carousel-button carousel-next"})]})]})}var w=e=>{let t=e?.sectionData?.button_title,s=e?.sectionData?.button_url,n=t||"Explore all resources",a=s||"/resource-catalog";return e?.resources&&e?.resources?.length!==0?(0,r.jsx)("div",{id:e?.sectionId||"related-resources",className:`section special-vendor-resources ${e?.isGrey?"section-bg-f5f5f5":""}`,name:"related-resources",children:(0,r.jsxs)("div",{className:"safe-area",children:[(0,r.jsx)("h2",{className:"section-title text-center",children:e?.sectionData?.section_title??"Related Resources"}),(0,r.jsx)(m,{resources:e?.resources}),(0,r.jsxs)("div",{className:"text-center related-resource-btn",children:[(0,r.jsx)(o(),{href:a,class:"d-none d-md-block",target:"_blank",children:(0,r.jsx)("button",{className:"button primary medium",children:n})}),(0,r.jsx)(o(),{href:a,className:"d-block d-md-none",target:"_blank",children:(0,r.jsx)("button",{className:"button link large ghost arrow",children:n})})]})]})}):(0,r.jsx)(r.Fragment,{})}},75155:function(e,t,s){"use strict";s.r(t),s.d(t,{default:function(){return v}});var r=s(85893),n=s(11163),a=s(67294),i=s(75012),l=s(70256),o=s(66692);s(19460);var c=s(28462),u=s(70875),d=s(23162),m=s(41664),w=s.n(m),h=s(54144);function f(...e){return e.filter(Boolean).join(" ")}function p({children:e,tone:t="slate"}){return(0,r.jsx)("span",{className:f("tw-inline-flex tw-items-center tw-rounded-full tw-border tw-px-2.5 tw-py-0.5 tw-text-xs tw-font-semibold",{slate:"tw-border-slate-200 tw-bg-slate-50 tw-text-slate-700",green:"tw-border-emerald-200 tw-bg-emerald-50 tw-text-emerald-700",red:"tw-border-red-200 tw-bg-red-50 tw-text-red-700"}[t]),children:e})}function x({children:e,className:t}){return(0,r.jsx)("div",{className:f("tw-rounded-2xl tw-border tw-border-slate-200 tw-bg-white tw-shadow-sm",t),children:e})}function g({children:e,className:t}){return(0,r.jsx)("div",{className:f("tw-p-6",t),children:e})}function j(){return(0,r.jsx)("div",{className:"tw-flex tw-items-center",children:(0,r.jsx)("div",{"aria-hidden":"true",className:"tw-w-full tw-border-t tw-border-gray-300"})})}function b({className:e}){return(0,r.jsx)("div",{className:f("tw-bg-gray-300 tw-animate-pulse",e)})}function y({width:e="tw-w-24"}){return(0,r.jsx)(b,{className:f("tw-h-4 tw-rounded-md",e)})}function _(){return(0,r.jsx)(b,{className:"tw-h-6 tw-w-24 tw-rounded-full"})}function v(){let e=(0,n.useRouter)(),{examId:t,client_id:s,forwarding_info:m}=e.query,[v,N]=(0,a.useState)(null);(0,a.useEffect)(()=>{e.isReady&&N(function(e){if(!e)return null;try{let t=decodeURIComponent(e);return JSON.parse(t)}catch(t){return console.error("forwarding_info decode error",t),{_decodeError:!0,raw:e}}}(m))},[e.isReady,m]);let k=(0,a.useMemo)(()=>{let t=e?.query?.ssc_courseid;if(t)return String(t);let s=v?.ssc_courseid;if(s)return String(s);let r=v?.ssc_formurl;if(r&&"string"==typeof r)try{let e=new URL(r),t=e.searchParams.get("courseId");if(t)return String(t)}catch(e){}return null},[e?.query?.ssc_courseid,v?.ssc_courseid,v?.ssc_formurl]),[S,$]=(0,a.useState)(null),[F,D]=(0,a.useState)(null),[R,T]=(0,a.useState)(null),[E,P]=(0,a.useState)(!1),[A,z]=(0,a.useState)(null),[I,C]=(0,a.useState)(null),[L,M]=(0,a.useState)(!1),[q,Z]=(0,a.useState)(null),[U,O]=(0,a.useState)(null),B=(0,h.Z)(360,767);(0,a.useEffect)(()=>{(async function(){if(e.isReady&&s&&t){P(!0),z(null);try{let e=`/api/get-proctoring-score?client_id=${encodeURIComponent(s)}&exam_id=${encodeURIComponent(t)}`,r=await fetch(e,{cache:"no-store"});if(!r.ok){let e=await r.text().catch(()=>"");throw Error(e||`HTTP ${r.status}`)}let n=await r.json();$(n?.assessmentStats||null),D(n?.assessmentStats||n?.firstRow||null),T(n?.examInfo||null)}catch(e){z(e.message||"Failed to fetch assessment score")}finally{P(!1)}}})()},[e.isReady,s,t]),(0,a.useEffect)(()=>{(async function(){if(e.isReady&&k){M(!0),Z(null);try{let e=`https://cms.netcomlearning.com/api/v1/proctoring365/api/proctoring/get-course/${encodeURIComponent(k)}/`,t=await fetch(e,{cache:"no-store"});if(!t.ok){let e=await t.text().catch(()=>"");throw Error(e||`HTTP ${t.status}`)}let s=await t.json();O({course_details:s?.course_details||null,duration_details:s?.duration_details||null,skill_levels:Array.isArray(s?.skill_levels)?s.skill_levels:[],delivery_type:Array.isArray(s?.delivery_type)?s.delivery_type:[]})}catch(e){Z(e?.message||"Failed to load related resources"),C([]),O(null)}finally{M(!1)}}})()},[e.isReady,k]);let{correct:H,total:W}=(0,a.useMemo)(()=>(function(e){if("number"==typeof e)return{correct:e,total:void 0};if("string"!=typeof e)return{correct:void 0,total:void 0};let t=e.match(/^(\d+)\s*\/\s*(\d+)$/);return t?{correct:Number(t[1]),total:Number(t[2])}:{correct:void 0,total:void 0}})(F?.candidateScore),[F?.candidateScore]),V=(0,a.useMemo)(()=>"number"==typeof S?.attempted_count?S.attempted_count:"number"==typeof H?H:void 0,[S?.attempted_count,H]),Y="number"==typeof H&&"number"==typeof W?Math.max(W-H,0):void 0,Q=(0,a.useMemo)(()=>"number"==typeof F?.percentage?F.percentage:"number"==typeof H&&"number"==typeof W&&W>0?Math.round(H/W*100):void 0,[F?.percentage,H,W]),X=F?.isPass===!0,G=F?.isPass===!1,J=E&&!A,K=(0,a.useMemo)(()=>X?(0,r.jsxs)(p,{tone:"green",children:[(0,r.jsx)(i.Z,{className:"tw-mr-1 tw-h-4 tw-w-4"})," Passed"]}):G?(0,r.jsxs)(p,{tone:"red",children:[(0,r.jsx)(l.Z,{className:"tw-mr-1 tw-h-4 tw-w-4"})," Failed"]}):null,[X,G]),[ee,et]=(0,a.useState)(!1),[es,er]=(0,a.useState)(null),[en,ea]=(0,a.useState)(null),ei=(0,a.useRef)(!1),el=e=>{if(!e||"string"!=typeof e)return null;let t=e.match(/^(\d{2})\/(\d{2})\/(\d{4})$/);if(!t)return null;let[s,r,n,a]=t,i=new Date(`${a}-${n}-${r}T00:00:00Z`);return isNaN(i.getTime())?null:i.toISOString()};async function eo(){if(!v)return;let e={assessmentName:R?.title??v?.quiz_name??null,assessmentScore:"number"==typeof Q?Q:null,assessmentURL:R?.redirect_url??window.location.href,assessmentSubmissionDate:el(S?.submit_time)??null,raw:{candidateScore:F?.candidateScore??null,start_time:S?.start_time??null,submit_time_raw:S?.submit_time??null,exam_id:t??null,client_id:s??null,student_email:S?.student_email??null}};et(!0),er(null),ea(null);try{let t=await fetch("/api/send-data-to-marketo",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({forwarding_info:v,assessment_activity:e})}),s=await t.json().catch(()=>null);if(!t.ok||!s)throw Error(s?.message||`HTTP ${t.status}`);ea(s)}catch(e){er(e.message||"Failed to send data to Marketo")}finally{et(!1)}}let ec=!!v&&!!v?.email;(0,a.useEffect)(()=>
1{if(ei.current)return;let t="number"==typeof Q||"number"==typeof F?.candidateScore||"number"==typeof H&&"number"==typeof W;e.isReady&&ec&&t&&(ei.current=!0,eo())},[e.isReady,ec,Q,F?.candidateScore,H,W]);let eu=S?.candidate_name||v?.full_name||v?.first_name||v?.name||v?.email||"Candidate",ed=R?.title||v?.quiz_name||v?.course_name||"Assessment Quiz",em=R?.passing_score!=null?`${R.passing_score}%`:"-",ew="number"==typeof W?W:R?.question_count??"-",eh=({label:e,value:t})=>(0,r.jsxs)("div",{className:"tw-flex tw-items-center tw-justify-between",children:[(0,r.jsx)("span",{className:"tw-text-slate-600",children:e}),(0,r.jsx)("span",{className:"tw-text-slate-900",children:t??"-"})]}),ef=!!(t&&s);return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("div",{className:"tw-mx-auto tw-max-w-2xl tw-px-4 tw-py-8","aria-busy":J,children:[(0,r.jsx)("div",{className:"tw-mb-6 tw-flex tw-justify-center",children:(0,r.jsx)("div",{className:"tw-relative",children:(0,r.jsx)("div",{className:"tw-flex tw-h-12 tw-w-12 tw-items-center tw-justify-center tw-rounded-full",children:J?(0,r.jsx)(b,{className:"tw-h-12 tw-w-12 tw-rounded-full"}):X?(0,r.jsx)(i.Z,{className:"tw-h-12 tw-w-12 tw-text-blue-600"}):G?(0,r.jsx)(l.Z,{className:"tw-h-12 tw-w-12 tw-text-red-600"}):(0,r.jsx)(o.Z,{className:"tw-h-12 tw-w-12 text-slate-600"})})})}),(0,r.jsx)("div",{className:"tw-mb-8 tw-text-center",children:J?(0,r.jsx)("div",{className:"tw-flex tw-justify-center",children:(0,r.jsx)(y,{width:"tw-w-56"})}):(0,r.jsxs)("p",{className:"tw-text-slate-700",children:["Thank you, ",eu,", for completing the assessment quiz!"]})}),(0,r.jsx)("div",{className:"tw-mb-8 tw-text-center",children:J?(0,r.jsx)("div",{className:"tw-flex tw-justify-center",children:(0,r.jsx)(y,{width:"tw-w-56"})}):(0,r.jsx)("h1",{className:"tw-text-xl tw-font-semibold tw-text-slate-900",children:ed})}),(0,r.jsx)(x,{className:"tw-mb-6",children:(0,r.jsxs)(g,{children:[(0,r.jsxs)("div",{className:"tw-flex tw-flex-col sm:tw-flex-row sm:tw-items-center sm:tw-justify-between tw-gap-4",children:[(0,r.jsxs)("div",{className:"tw-flex tw-items-center tw-gap-2",children:[(0,r.jsx)("span",{className:"tw-text-slate-900",children:"Your Score:"}),J?(0,r.jsx)(y,{width:"tw-w-16"}):(0,r.jsx)("span",{className:"tw-text-slate-900",children:"number"==typeof Q?`${Q}%`:"-"})]}),J?(0,r.jsx)(_,{}):K]}),A&&(0,r.jsx)("p",{className:"tw-mt-4 tw-rounded-md tw-border tw-border-red-200 tw-bg-red-50 tw-p-3 tw-text-sm tw-text-red-700",children:A})]})}),(0,r.jsx)(x,{className:"tw-mb-8",children:(0,r.jsxs)(g,{children:[(0,r.jsx)("h2",{className:"tw-mb-6 tw-text-base tw-font-semibold tw-text-slate-900",children:"Assessment Result"}),J?(0,r.jsxs)("div",{className:"tw-space-y-4",children:[(0,r.jsxs)("div",{className:"tw-flex tw-items-center tw-justify-between",children:[(0,r.jsx)(y,{width:"tw-w-40"}),(0,r.jsx)(y,{width:"tw-w-16"})]}),(0,r.jsxs)("div",{className:"tw-flex tw-items-center tw-justify-between",children:[(0,r.jsx)(y,{width:"tw-w-56"}),(0,r.jsx)(y,{width:"tw-w-24"})]}),(0,r.jsx)(j,{}),Array.from({length:3}).map((e,t)=>(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("div",{className:"tw-flex tw-items-center tw-justify-between",children:[(0,r.jsx)(y,{width:"tw-w-40"}),(0,r.jsx)(y,{width:"tw-w-16"})]},t),(0,r.jsxs)("div",{className:"tw-flex tw-items-center tw-justify-between",children:[(0,r.jsx)(y,{width:"tw-w-56"}),(0,r.jsx)(y,{width:"tw-w-24"})]})]})),(0,r.jsx)(j,{}),(0,r.jsxs)("div",{className:"tw-flex tw-items-center tw-justify-between",children:[(0,r.jsx)(y,{width:"tw-w-28"}),(0,r.jsx)(y,{width:"tw-w-12"})]})]}):(0,r.jsxs)("div",{className:"tw-space-y-4",children:[(0,r.jsx)(eh,{label:"Time allotted",value:S?.exam_info?.test_duration!=null?`${S.exam_info.test_duration}m`:"-"}),(0,r.jsx)(eh,{label:"Time taken to complete the quiz",value:S?.time_taken||"-"}),(0,r.jsx)(j,{}),(0,r.jsx)(eh,{label:"Total questions",value:ew}),(0,r.jsx)(eh,{label:"Questions attempted",value:"number"==typeof V?V:"-"}),(0,r.jsx)(eh,{label:"Correct answers",value:"number"==typeof H?String(H).padStart(2,"0"):"-"}),(0,r.jsx)(eh,{label:"Incorrect answers",value:"number"==typeof Y?Y:"-"}),(0,r.jsx)(eh,{label:"Passing Score (%)",value:em}),(0,r.jsx)(j,{}),(0,r.jsxs)("div",{className:"tw-flex tw-items-center tw-justify-between",children:[(0,r.jsx)("span",{className:"tw-font-medium tw-text-slate-900",children:"Total score"}),(0,r.jsx)("span",{className:"tw-text-slate-900",children:"number"==typeof Q?String(Q).padStart(2,"0"):"-"})]})]})]})}),(0,r.jsx)("div",{className:"tw-flex tw-justify-center",children:(0,r.jsx)("button",{type:"button",onClick:()=>
1{if(!ef)return;let e=`/show-detailed-assessment-report?exam_id=${encodeURIComponent(t)}&client_id=${encodeURIComponent(s)}`;window.open(e,"_blank","noopener,noreferrer")},disabled:!ef,className:f("tw-inline-flex tw-items-center tw-rounded-lg tw-bg-blue-600 tw-px-4 tw-py-2 tw-text-sm tw-font-medium tw-text-white hover:tw-bg-blue-700 focus:tw-outline-none focus:tw-ring-2 focus:tw-ring-blue-500 disabled:tw-cursor-not-allowed disabled:tw-opacity-50"),children:"View detailed report"})})]}),U&&!B&&(0,r.jsx)("div",{className:"assessment-summary",children:(0,r.jsx)("div",{className:"related-courses",style:{marginTop:0},children:(0,r.jsx)("div",{className:"section section-bg-f5f5f5 ",children:(0,r.jsxs)("div",{className:"safe-area",children:[(0,r.jsx)("h2",{className:"section-title text-center",children:"Explore Related Course"}),(0,r.jsx)("div",{className:"course-cards card-hover-effect",children:(0,r.jsx)("div",{className:"d-flex flex-column flex-md-row justify-content-between",children:(0,r.jsxs)("div",{className:"mb-2 me-2 mb-md-0 pb-2 pb-md-0 ",children:[(0,r.jsx)(w(),{href:`/course/${U?.course_details?.slug}`,target:"_blank",children:(0,r.jsx)("h4",{children:U?.course_details?.name})}),(0,r.jsxs)("div",{className:"d-flex course-card-info align-items-end",children:[(0,c.Z)(U?.duration_details?.duration,U?.duration_details?.duration_type),(0,r.jsx)(u.Z,{skillLevel:U?.skill_levels}),(0,r.jsx)(d.Z,{deliveryTypes:U?.delivery_type})]})]})})})]})})})}),q&&(0,r.jsx)("div",{className:"tw-mt-4 tw-text-center tw-text-sm tw-text-red-600",children:q})]})}},32265:function(e,t,s){"use strict";s.d(t,{kB:function(){return b},Lv:function(){return x},aB:function(){return y},EW:function(){return p},qv:function(){return j},B_:function(){return f}});var r=s(85893),n=s(25675),a=s.n(n),i=s(67294),l=s(27484),o=s.n(l),c=s(70178),u=s.n(c),d=s(29387),m=s.n(d);o().extend(u()),o().extend(m());var w=({start_date_time_utc:e})=>{let[t,s]=(0,i.useState)(n());function n(){if(!e)return"Register Now";let t=o()().tz("America/New_York"),s=o().utc(e).tz("America/New_York");return s.isAfter(t)?"Register Now":"Watch Now"}return((0,i.useEffect)(()=>{let e=setInterval(()=>{s(n())},1e3);return()=>clearInterval(e)},[e]),e)?(0,r.jsx)(r.Fragment,{children:t}):(0,r.jsx)(r.Fragment,{children:"Register Now"})};let h={Roadmap:"/Roadmap.jpg",Poster:"/Poster.jpg",Brochure:"/Brochure.jpg",Infographics:"/infographics.jpg",quizzes:"/Assessment.jpg",proctoring365:"/Assessment.jpg"},f=e=>{let t=e?.resource_tool_name,s=e?.resource?.resource_type;switch(t){case"webinar":return"Webinar";case"ebookwhitepaper":if("ebook"===s)return"E-Book";if("whitepaper"===s)return"Whitepaper";break;case"case_study":return"Case Study";case"press_release":return"Press Release";case"bundle_package":return"Bundle Package";case"blog":return"Article";case"quizzes":case"proctoring365":return"Assessment";case"imagegallery":if(e.resource?.document_type)return e.resource?.document_type;return"Handout"}return null},p=(e,t,s,r)=>{switch(e){case"webinar":return`/webinar/${s}`;case"ebookwhitepaper":return"ebook"===t?`/ebook/${s}`:`/whitepaper/${s}`;case"case_study":return`/casestudy/${s}`;case"bundle_package":return`/bundles/${s}`;case"press_release":return`/press-release/${s}`;case"blog":case"proctoring365":return`/${s}`;case"quizzes":return s?.includes("start-assessment")?`/${s}`:`/assessment/${s}`;case"imagegallery":return`https://docs.netcomlearning.com/${r}`;default:return"/"}},x=e=>{let t=e?.resource_tool_name,s=e?.resource?.resource_type;if("webinar"===t)return(0,r.jsx)(w,{start_date_time_utc:e?.resource?.start_date_time});if("ebookwhitepaper"===t){if("ebook"===s)return"Download e-book";if("whitepaper"===s)return"Download whitepaper"}return"case_study"===t||"press_release"===t?"Read now":"blog"===t?"Read more":"quizzes"===t||"proctoring365"===t?"Take quiz":"imagegallery"===t?"View now":"bundle_package"===t?"Explore bundle":null},g={webinar:"/icons/webinar.svg",ebookwhitepaper:"/icons/e-book.svg",case_study:"/icons/casestudy.svg",press_release:"/icons/media.svg",blog:"/icons/blog.svg",quizzes:"/icons/assignment.png",imagegallery:"/icons/handout.png",bundle_package:"/bundle-resource-icon.svg",proctoring365:"/icons/assignment.png"},j=e=>{let{resource_tool_name:t,resource:s}=e||{},n=g[t];if(!n)return null;let i=t.replace("_"," ");
1if("ebookwhitepaper"!==t)return(0,r.jsx)(a(),{src:n,width:24,height:24,alt:i});{let e=s?.resource_type;if("ebook"===e||"whitepaper"===e)return(0,r.jsx)(a(),{src:n,width:24,height:24,alt:i})}return null},b=({item:e})=>{let{resource_tool_name:t,resource:s}=e||{};return"imagegallery"===t&&h[s.document_type]?(0,r.jsx)(r.Fragment,{children:(0,r.jsx)(a(),{src:h[s.document_type],alt:"image",layout:"fill",loader:({src:e})=>`${e}`,onError:e=>{e.target.style.display="none"}})}):"imagegallery"!==t||h[t.document_type]?"quizzes"===t||"proctoring365"===t?(0,r.jsx)(r.Fragment,{children:(0,r.jsx)(a(),{src:"/Assessment.jpg",alt:"image",layout:"fill",loader:({src:e})=>`${e}`,onError:e=>{e.target.style.display="none"}})}):(0,r.jsx)(r.Fragment,{children:e?.resource?.card_image?(0,r.jsx)(a(),{src:e?.resource?.card_image,alt:"image",layout:"fill",loader:({src:e})=>`${e}`,onError:e=>{e.target.style.display="none"}}):null}):(0,r.jsx)(r.Fragment,{})};function y(e){let t=new Date,s={webinarUpcoming:[],assessment:[],proctoring365:[],caseStudy:[],blog:[],webinarOnDemand:[],ebooks:[],roadmapPDF:[],brochurePDF:[],posterPDF:[],media:[],infographicsPDF:[],others:[]};if(!Array.isArray(e))return[];e.forEach(e=>{let{resource:r,resource_tool_name:n}=e;r&&("webinar"===n&&r.start_date_time&&new Date(r.start_date_time)>t?s.webinarUpcoming.push(e):"webinar"===n&&r.start_date_time&&new Date(r.start_date_time)<=t?s.webinarOnDemand.push(e):"quizzes"===n?s.assessment.push(e):"proctoring365"===n?s.assessment.push(e):"case_study"===n?s.caseStudy.push(e):"blog"===n?s.blog.push(e):"ebook"===r.resource_type?s.ebooks.push(e):"Roadmap"===r.document_type?s.roadmapPDF.push(e):"Brochure"===r.document_type?s.brochurePDF.push(e):"Poster"===r.document_type?s.posterPDF.push(e):"press_release"===n?s.media.push(e):"Infographics"===r.document_type?s.infographicsPDF.push(e):s.others.push(e))});let r=["webinarUpcoming","assessment","proctoring365","caseStudy","blog","webinarOnDemand","ebooks","roadmapPDF","brochurePDF","posterPDF","media","infographicsPDF","others"].reduce((e,t)=>(s[t].length>0&&e.push(...s[t]),e),[]);return r}},12553:function(e,t,s){"use strict";s.d(t,{Eb:function(){return n},Ew:function(){return i},LU:function(){return c},Xb:function(){return a},YI:function(){return d},by:function(){return r},ei:function(){return m},ph:function(){return o},vi:function(){return l},yH:function(){return u}});let r=(e,t)=>t?.label?.toLowerCase()?.trim()?.includes(e?.toLowerCase()?.trim()),n=(e,t,s,r,n,a,i,l,o,c)=>{let u={search_query:e?e.trim():void 0,sort_order:t||void 0,page_size:s||void 0,page:r||void 0};return i&&(u.is_learning_method=!0),n&&(u.vendor=n),a&&(u.product=a),c&&(u.industry=c),l&&(u.city=l),o&&(u.resource_name=o),Object.fromEntries(Object.entries(u).filter(([e,t])=>void 0!==t&&t))},a=e=>Object.entries(e).filter(([e,t])=>Array.isArray(t)&&t.length>0).map(([e,t])=>t.map(t=>`${t.tool_name??e}=${String(t.value).replace(/&/g,"%26").replace(/\+/g,"%2B").replace(/-/g,"%2D").replace(/\//g,"%2F")}`).join("&")).join("&");function i(e){let t=e.charAt(0).toUpperCase()+e.slice(1),s=t.replace(/_/g," ");return s}let l=(e,t)=>e?.map(e=>({value:"object"==typeof e?e?.id:e,label:"object"==typeof e?e?.name:!1===e?"False":!0===e?"True":e?.title?e?.title:e,key:e.id,tool_name:e?.tool_name?e?.tool_name:t,field_name:e?.name?"name":"title"})),o=e=>Object.entries(e).filter(([e,t])=>Array.isArray(t)&&t.length>0).map(([e,t])=>({key:e,values:t})),c=(e,t)=>{let s,r;if(!e||!t)return"";if("hours"===e){if(t<4)return`${0>=Math.floor(t)?parseFloat(t).toFixed(1):Math.floor(t)} ${Math.floor(t)>1?"Hours":"Hour"}`;s=t?`${t/8%1==0?t/8:(t/8).toFixed(1)} ${t/8>1?"Days":"Day"}`:null,r=t?`${0>=Math.floor(t)?parseFloat(t).toFixed(1):Math.floor(t)} ${Math.floor(t)>1?"Hours":"Hour"}`:null}else if("days"===e){let e=8*t;s=`${Math.floor(t)} ${Math.floor(t)>1?"Days":"Day"}`,r=t?`${Math.floor(e)} ${Math.floor(e)>1?"Hours":"Hour"}`:null}return`${s} (${r})`},u=(e,t)=>`${Number(t)?.toLocaleString("en-US",{maximumFractionDigits:0})} ${e}${t>1?"s":""}`,d=(e,t)=>`${Number(t)?.toLocaleString("en-US",{maximumFractionDigits:0})} ${e}${t>1?"s":""}`,m=e=>
1e?Number(e)?.toLocaleString("en-US",{maximumFractionDigits:0}):0},54144:function(e,t,s){"use strict";var r=s(67294);t.Z=(e,t)=>{let s=(e,t)=>null!=e&&null!=t?`(min-width: ${e}px) and (max-width: ${t}px)`:null!=e?`(min-width: ${e}px)`:null!=t?`(max-width: ${t}px)`:"",[n,a]=(0,r.useState)(()=>{let r=s(e,t);return!!r&&window.matchMedia(r).matches});return(0,r.useEffect)(()=>{let r=s(e,t);if(!r){console.warn("useMediaQuery: At least one of minWidth or maxWidth should be provided.");return}let n=window.matchMedia(r),i=()=>a(n.matches);return a(n.matches),n.addEventListener("change",i),()=>n.removeEventListener("change",i)},[e,t]),n}}},function(e){e.O(0,[1033,811,4055,3361,6066,1350,302,1222,9774,2888,179],function(){return e(e.s=71520)}),_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.