1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8485],{4167:(e,n,o)=>{"use strict";o.d(n,{A:()=>s});var t=o(95155),r=o(88661),i=o.n(r);o(12115);var a=o(77544),l=o.n(a);let s=e=>{let{loading:n,children:o,overlayText:r="Loading...",overlayClassName:a="",spinnerSize:s="medium",overlayStyle:_={},zIndex:d=9999,fullscreen:c=!0}=e,m=()=>{switch(s){case"small":return"20px";case"large":return"40px";default:return"30px"}},p={position:c?"fixed":"absolute",width:c?"100vw":"auto",height:c?"100vh":"auto",top:0,left:0,right:0,bottom:0,backgroundColor:"rgba(255, 255, 255, 0.8)",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",zIndex:d,pointerEvents:"all",..._},u={width:m(),height:m(),border:"3px solid #f3f3f3",borderTop:"3px solid #3498db",borderRadius:"50%",animation:"spin 1s linear infinite",marginBottom:"10px"};return(0,t.jsxs)("div",{style:{position:"relative",width:"100%",height:"100%"},className:"jsx-44c6c384c94b6b72",children:[o,n&&(0,t.jsxs)("div",{style:p,onClick:e=>e.stopPropagation(),onMouseDown:e=>e.stopPropagation(),onMouseUp:e=>e.stopPropagation(),onTouchStart:e=>e.stopPropagation(),onTouchEnd:e=>e.stopPropagation(),className:"jsx-44c6c384c94b6b72 "+"".concat(l().loadingOverlay," ").concat(a),children:[(0,t.jsx)("div",{style:u,className:"jsx-44c6c384c94b6b72"}),r&&(0,t.jsx)("div",{style:{color:"#333",fontSize:"14px",fontWeight:"500",textAlign:"center"},className:"jsx-44c6c384c94b6b72",children:r})]}),(0,t.jsx)(i(),{id:"44c6c384c94b6b72",children:"@keyframes spin{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}"})]})}},17688:e=>{e.exports={floatingButton:"DevelopmentPanel_floatingButton__bGIxA",actionButton:"DevelopmentPanel_actionButton__R_f7F",floatingPanel:"DevelopmentPanel_floatingPanel__A22gA",panelHeader:"DevelopmentPanel_panelHeader__UsF8U",panelTitle:"DevelopmentPanel_panelTitle__oQydW",closeButton:"DevelopmentPanel_closeButton__aTxol",panelBody:"DevelopmentPanel_panelBody__aCBjA",description:"DevelopmentPanel_description___TQah",divider:"DevelopmentPanel_divider__v76Rb",sectionTitle:"DevelopmentPanel_sectionTitle__6hxfU",actionsList:"DevelopmentPanel_actionsList__cGwU8",button:"DevelopmentPanel_button__PJ66U",buttonContent:"DevelopmentPanel_buttonContent__Gvk0c",buttonText:"DevelopmentPanel_buttonText__a9ls0",buttonTitle:"DevelopmentPanel_buttonTitle__ODN9H",buttonDescription:"DevelopmentPanel_buttonDescription__cpLRB"}},38485:(e,n,o)=>{"use strict";o.r(n),o.d(n,{default:()=>N});var t=o(95155),r=o(12115),i=o(77544),a=o.n(i),l=o(2305),s=o(4167),_=o(45636),d=o(20063),c=o(72470),m=o.n(c),p=o(71957);let u=(0,l.Tp)(m()),j=(0,l.Tp)(a());function h(e){let{completed:n,name:o,index:r,preview_url:i,available:a,setCurrentModule:l,res:s}=e;return(0,t.jsx)("div",{className:j("moduleButton",{completed:n,available:a,disabled:!a}),onClick:()=>{a&&l()},children:(0,t.jsx)("div",{className:j("moduleButtonContent"),children:(0,t.jsxs)("div",{className:j("moduleInfo"),children:[i&&(0,t.jsx)("div",{className:j("modulePreview"),children:(0,t.jsx)("img",{src:i,alt:o,className:j("previewImage",{grayImage:n})})}),(0,t.jsx)("h3",{className:j("moduleTitle"),children:o}),(0,t.jsx)("div",{className:j("moduleStatus"),children:(0,t.jsxs)("button",{className:u("btn styledButton buttonText link"),style:{...!a?{pointerEvents:"none",cursor:"not-allowed"}:{color:"#211F1D"},textDecoration:"underline"},children:[(0,t.jsx)("span",{className:u("link"),children:s(n?"completed":a?"lanuch_module":"locked")}),(0,t.jsx)("span",{className:u("linkbuttonArrow"),children:(0,t.jsx)(p.RightCircleArrow,{})})]})})]})})})}let F=(0,l.Tp)(m()),x=(0,l.Tp)(a()),b=function(e){let{scormModules:n,setCurrentModule:o,item:r,providerId:i}=e,{languageData:a}=r.fields,l=e=>(null!=a?a:{})[e]||e,s=(0,d.useRouter)();return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:x("modulesGrid"),children:null==n?void 0:n.map((e,r)=>(0,t.jsx)(h,{...e,index:r,setCurrentModule:()=>o(e),available:0===r||n[r-1].completed,res:l},e.id))}),(0,t.jsx)("div",{className:x("nextButtonContainer"),children:(0,t.jsx)("button",{onClick:()=>{s.replace("?id=".concat(i,"&status=quiz"))},className:F("btn styledButton buttonText primary"),disabled:!!(null==n?void 0:n.find(e=>!e.completed)),style:{"--btnHeight":"var(--btnHeight-md)","--btnPadding":"var(--btnPadding-md)","--btnFontSize":"var(--btnFontSize-md)","--btnColor":"var(--btnColor-heritage-blue)","--btnHoverColor":"var(--btnHoverColor-heritage-blue)",width:"initial",...(null==n?void 0:n.find(e=>!e.completed))?{pointerEvents:"none",cursor:"not-allowed"}:{}},children:l("next")})})]})};var v=o(9735),g=o(65442);let f=(0,l.Tp)(a());function C(e){let{currentModule:n,completeModule:o,closeModal:i,res:a}=e,[l,s]=(0,r.useState)(!0),_=e=>{e.data.module&&o(parseInt(e.data.module,10)-1)},d=()=>{i(),setTimeout(()=>{s(!0)},200)};return(0,r.useEffect)(()=>(window&&window.addEventListener("message",_),()=>{window&&window.removeEventListener("message",_)}),[]),(0,t.jsxs)(v.A,{show:!!n,onHide:d,size:"xl",backdrop:"static",keyboard:!1,className:f("modal"),children:[(0,t.jsxs)(v.A.Header,{className:f("modalHeader"),children:[(0,t.jsx)(v.A.Title,{className:f("modalTitle"),children:a("do_not_close")}),(0,t.jsx)("button",{type:"button",className:f("closeButton"),onClick:d,"aria-label":"Close",children:"\xd7"})]}),(0,t.jsx)(v.A.Body,{className:f("modalBody"),children:(0,t.jsxs)("div",{className:f("moduleContent"),children:[l&&(0,t.jsx)("div",{className:f("loadingOverlay"),children:(0,t.jsx)(g.A,{animation:"border",role:"status",children:(0,t.jsx)("span",{className:"visually-hidden",children:"Loading..."})})}),n&&(0,t.jsx)("iframe",{title:"Scorm module",src:n.url,frameBorder:0,marginHeight:0,marginWidth:0,height:"100%",width:"100%",onLoad:()=>s(!1)})]})})]})}var k=o(88947),w=o(48315),y=o(56649);
1function L(e){let{completeModule:n,modules:o,enableDevelopmentPanel:r}=e;return(0,t.jsx)(w.E,{enableDevelopmentPanel:r,actions:[{title:"Complete scorm modules",description:"Finish all scorm modules to continue to quiz",icon:y.rc,action:()=>o.forEach((e,o)=>n(o,!0))}]})}var T=o(48212);let B=(0,l.Tp)(a()),N=e=>{let{item:n,pageResult:o,env:i}=e,{CLIENT_API_PREFIX:a=""}=i||{},{urlParams:l}=o||{};(0,_.sW)(a);let{languageData:d,enableDevelopmentPanel:c}=n.fields,[m,p]=(0,r.useState)(),[u,j]=(0,r.useState)(),[h,F]=(0,r.useState)(null),[x,v]=(0,r.useState)(!1),[g,f]=(0,r.useState)(!1),[w,y]=(0,r.useState)(null),N=e=>(null!=d?d:{})[e]||e,I=(null==l?void 0:l.id)||"",P=(0,r.useCallback)(async function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];e?f(!0):v(!0),y(null);try{let e=await (0,T.i6)({providerId:I},a);if(e&&e.providerDetails){p(e.providerDetails);let n=await (0,T.AZ)({providerId:e.providerDetails.id},a);j(n)}else throw Error("Failed to fetch provider details")}catch(e){y(e instanceof Error?e.message:"Failed to fetch data"),console.error("Error fetching data:",e)}finally{v(!1),f(!1)}},[I]);(0,r.useEffect)(()=>{window.scrollTo(0,0),I&&P()},[I,P]);let S=(0,r.useCallback)(async()=>{await P(!0)},[P]),D=async(e,n)=>{if("number"==typeof e){let o=null==u?void 0:u[e];F(null),o&&o.id&&(v(!0),k.A.gtmTrack("ModuleComplete",{moduleName:o.name}),(0,T.Mq)({id:o.id.toString(),provider_id:I},a).then(async()=>{!n||n&&e===u.length-1?await S().then(()=>{n?e===u.length-1&&v(!1):v(!1)}).catch(()=>v(!1)):v(!1)}).catch(()=>v(!1)))}};return(0,t.jsxs)(s.A,{loading:g||x,children:[(0,t.jsx)(L,{completeModule:D,modules:u||[],enableDevelopmentPanel:c}),(0,t.jsxs)("div",{className:B("scromModuleContainer",g||x?"dataLoading":""),children:[(0,t.jsxs)("div",{className:B("npjFormHeadingSection"),children:[(0,t.jsx)("h2",{className:B("npjFormHeading"),children:N("scorm_module_heading2")}),(0,t.jsx)("p",{className:B("npjFormSubheading"),children:N("once_you_launch")})]}),h&&(0,t.jsx)(C,{currentModule:h,closeModal:()=>F(null),completeModule:D,res:N}),w&&(0,t.jsxs)("p",{style:{color:"red"},children:["Error: ",w]}),u&&u.length>0&&(0,t.jsx)(b,{scormModules:u,setCurrentModule:F,item:n,providerId:I})]})]})}},48315:(e,n,o)=>{"use strict";o.d(n,{E:()=>_});var t=o(95155),r=o(12115),i=o(4915),a=o(17688),l=o.n(a),s=o(56649);function _(e){let{actions:n,children:o,enableDevelopmentPanel:a}=e,[_,d]=(0,r.useState)(!1),[c,m]=(0,r.useState)(!1),p=(0,r.useRef)(null);(0,r.useEffect)(()=>{d(a||!1)},[]),(0,r.useEffect)(()=>{let e=e=>{p.current&&!p.current.contains(e.target)&&m(!1)};return c&&document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}},[c]);let u=n.map(e=>{let n=e.icon||s.AW;return(0,t.jsx)("button",{onClick:e.action,className:l().button,children:(0,t.jsxs)("div",{className:l().buttonContent,children:[(0,t.jsx)(n,{size:24,color:"#0067AC"}),(0,t.jsxs)("div",{className:l().buttonText,children:[(0,t.jsx)("div",{className:l().buttonTitle,children:e.title}),(0,t.jsx)("div",{className:l().buttonDescription,children:e.description})]})]})},e.title)});return _?(0,t.jsxs)("div",{children:[!c&&(0,t.jsx)("div",{className:l().floatingButton,children:(0,t.jsx)(i.A,{variant:"dark",size:"lg",onClick:()=>m(!0),className:l().actionButton,children:(0,t.jsx)(s.AW,{size:24,color:"white"})})}),c&&(0,t.jsxs)("div",{ref:p,className:l().floatingPanel,children:[(0,t.jsxs)("div",{className:l().panelHeader,children:[(0,t.jsx)("h5",{className:l().panelTitle,children:"Development panel"}),(0,t.jsx)("button",{onClick:()=>m(!1),className:l().closeButton,children:"\xd7"})]}),(0,t.jsxs)("div",{className:l().panelBody,children:[(0,t.jsx)("p",{className:l().description,children:"Development panel is used to fill in mock data in forms and perform repetitive actions during testing. If you have opened it by mistake, close it with the close button in the right corner."}),(0,t.jsx)("hr",{className:l().divider}),(0,t.jsx)("h6",{className:l().sectionTitle,children:"Actions available on this page:"}),(0,t.jsx)("div",{className:l().actionsList,children:u}),o]})]})]}):null}},56649:(e,n,o)=>{"use strict";o.d(n,{AW:()=>a,pA:()=>r,rc:()=>i});var t=o(95155);function r(e){let{size:n=24,color:o="#0067AC"}=e;return(0,t.jsxs)("svg",{width:n,height:n,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,t.jsx)("circle",{cx:"12",cy:"12",r:"10",stroke:o,strokeWidth:"2"}),(0,t.jsx)("path",{d:"M4.93 4.93L19.07 19.07",stroke:o,strokeWidth:"2",strokeLinecap:"round"})]})}function i(e){let{size:n=24,color:o="#0067AC"}=e;return(0,t.jsxs)("svg",{width:n,height:n,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,t.jsx)("path",{d:"M14 2H6C5.46957 2 4.96086 2.21071 4.58579 2.58579C4.21071 2.96086 4 3.46957 4 4V20C4 20.5304 4.21071 21.0391 4.58579 21.4142C4.96086 21.7893 5.46957 22 6 22H18C18.5304 22 19.0391 21.7893 19.4142 21.4142C19.7893 21.0391 20 20.5304 20 20V8L14 2Z",stroke:o,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),(0,t.jsx)("path",{d:"M14 2V8H20",stroke:o,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),(0,t.jsx)("path",{d:"M16 13H8",stroke:o,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),(0,t.jsx)("path",{d:"M16 17H8",stroke:o,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),(0,t.jsx)("path",{d:"M10 9H9H8",stroke:o,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]})}function a(e){let{size:n=24,color:o="#0067AC"}=e;return(0,t.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:n,height:n,fill:o,className:"bi bi-magic",viewBox:"0 0 16 16",children:(0,t.jsx)("path",{d:"M9.5 2.672a.5.5 0 1 0 1 0V.843a.5.5 0 0 0-1 0zm4.5.035A.5.5 0 0 0 13.293 2L12 3.293a.5.5 0 1 0 .707.707zM7.293 4A.5.5 0 1 0 8 3.293L6.707 2A.5.5 0 0 0 6 2.707zm-.621 2.5a.5.5 0 1 0 0-1H4.843a.5.5 0 1 0 0 1zm8.485 0a.5.5 0 1 0 0-1h-1.829a.5.5 0 0 0 0 1zM13.293 10A.5.5 0 1 0 14 9.293L12.707 8a.5.5 0 1 0-.707.707zM9.5 11.157a.5.5 0 0 0 1 0V9.328a.5.5 0 0 0-1 0zm1.854-5.097a.5.5 0 0 0 0-.706l-.708-.708a.5.5 0 0 0-.707 0L8.646 5.94a.5.5 0 0 0 0 .707l.708.708a.5.5 0 0 0 .707 0l1.293-1.293Zm-3 3a.5.5 0 0 0 0-.706l-.708-.708a.5.5 0 0 0-.707 0L.646 13.94a.5.5 0 0 0 0 .707l.708.708a.5.5 0 0 0 .707 0z"})})}o(12115)},77544:e=>{e.exports={npjFormHeadingSection:"npjForm_npjFormHeadingSection__b5Rqm",npjFormHeading:"npjForm_npjFormHeading__LVHiN",npjFormSubheading:"npjForm_npjFormSubheading__JVBN0",errorMessage:"npjForm_errorMessage__d6hD2",accordionContainer:"npjForm_accordionContainer__abmzt",accordionItem:"npjForm_accordionItem__SwdFn",accordionHeader:"npjForm_accordionHeader__2SvAb",expanded:"npjForm_expanded__XvLW6",accordionHeaderContent:"npjForm_accordionHeaderContent__mcVTD",accordionIndicator:"npjForm_accordionIndicator__1VdYh",accordionTitle:"npjForm_accordionTitle___uk2q",accordionIcon:"npjForm_accordionIcon__hHIYY",accordionContent:"npjForm_accordionContent__Y_Pjk",accordionContentInner:"npjForm_accordionContentInner__AyckX",orderSummary:"npjForm_orderSummary__VzcD_",card:"npjForm_card__U0MBt",title:"npjForm_title__ZYtqa",npjFormDivider:"npjForm_npjFormDivider__YDzIc",small:"npjForm_small__Dx
1Ido",section:"npjForm_section__evuns",sectionTitle:"npjForm_sectionTitle__XgwBt",orderItem:"npjForm_orderItem__tjj8Q",total:"npjForm_total__5FQui",itemLabel:"npjForm_itemLabel__20ebe",totalMain:"npjForm_totalMain__TZYcx",itemPrice:"npjForm_itemPrice__8f8Kt",itemPrice1:"npjForm_itemPrice1__Cf7bn",itemPrice1Currency:"npjForm_itemPrice1Currency__cdrmq",subItem:"npjForm_subItem___YYpc",subItemLabel:"npjForm_subItemLabel__X5_kD",estimated:"npjForm_estimated__XakzZ",subItemPrice:"npjForm_subItemPrice__dZXst",savings:"npjForm_savings__u50UQ",couponField:"npjForm_couponField__4ZntS",addedItem:"npjForm_addedItem__AFFzx",addedBanner:"npjForm_addedBanner__iVtpC",checkmark:"npjForm_checkmark__DZZgD",addedText:"npjForm_addedText__NclmK",removeLink:"npjForm_removeLink__bb9UV",orderTotal:"npjForm_orderTotal__QRLbd",totalLabel:"npjForm_totalLabel__ARa2v",totalPrice:"npjForm_totalPrice___1AeH",paymentSection:"npjForm_paymentSection__FuPYH",formGroup:"npjForm_formGroup__kBgx5",formRow:"npjForm_formRow__o2YPb",label:"npjForm_label__VTJac",addressSection:"npjForm_addressSection__ShG0O",address:"npjForm_address__SlfOe",changeLink:"npjForm_changeLink__SXnLM",termsSection:"npjForm_termsSection__fUB5W",checkboxLabel:"npjForm_checkboxLabel__KAme4",checkbox:"npjForm_checkbox__W_OtU",checkboxText:"npjForm_checkboxText__f6CE8",termsLink:"npjForm_termsLink__FcjMe",errorBox:"npjForm_errorBox__bf85d",error:"npjForm_error__0pzB_",errorContent:"npjForm_errorContent__XXTaJ",errorIcon:"npjForm_errorIcon__kE0_L",purchaseButton:"npjForm_purchaseButton__gLezw",couponInput:"npjForm_couponInput__t5b_m",applyButton:"npjForm_applyButton__V6Y7H",cartContainer:"npjForm_cartContainer__NKiRd",dataLoading:"npjForm_dataLoading__MGsSX",cartContainerLeft:"npjForm_cartContainerLeft__RRPPq",cartContainerRight:"npjForm_cartContainerRight__1sUAM",userInfoTitle:"npjForm_userInfoTitle__p5BJO",infoSection:"npjForm_infoSection__HXTnY",editLinkText:"npjForm_editLinkText__Cwx__",courseInfoContainer:"npjForm_courseInfoContainer__fwl22",courseTitle:"npjForm_courseTitle__RbBc_",courseSubtitle:"npjForm_courseSubtitle__3_mgZ",black:"npjForm_black__Of4Fa",invisalign:"npjForm_invisalign__2gRyi",size16:"npjForm_size16__tyoVP",size18:"npjForm_size18__iVAWx",bulletList:"npjForm_bulletList__ac_BF",featuringText:"npjForm_featuringText__cXrIF",courseList:"npjForm_courseList__ut3r6",alink:"npjForm_alink__FNHNv","payment-info-wrap":"npjForm_payment-info-wrap__6ze_c","label-name":"npjForm_label-name__cnsFg","input-name":"npjForm_input-name__FJ2NH",invalidCouponMessage:"npjForm_invalidCouponMessage__RrQ9o",root:"npjForm_root__QOY8f",preview:"npjForm_preview__gnbVa",addressText:"npjForm_addressText__uexHR",editButton:"npjForm_editButton__mELOl",formContainer:"npjForm_formContainer__d3USu",subTitle:"npjForm_subTitle__Z6KHj",half:"npjForm_half__QfVzZ",input:"npjForm_input__bKz8Y",billingAddressFormContainer:"npjForm_billingAddressFormContainer__IIs2k",inputLabelSelector:"npjForm_inputLabelSelector__5mRbq",modulesGrid:"npjForm_modulesGrid__qGgTn",moduleButton:"npjForm_moduleButton__wkcvJ",completed:"npjForm_completed__E8VPQ",disabled:"npjForm_disabled__I9_pa",moduleButtonContent:"npjForm_moduleButtonContent__7oQmg",moduleNumber:"npjForm_moduleNumber__YD5bo",moduleInfo:"npjForm_moduleInfo__Ix5F_",moduleTitle:"npjForm_moduleTitle__YxiAF",moduleStatus:"npjForm_moduleStatus__9MDMx",modulePreview:"npjForm_modulePreview__tHyll",previewImage:"npjForm_previewImage__MkUFI",grayImage:"npjForm_grayImage__uJ6dB",nextButtonContainer:"npjForm_nextButtonContainer__7Yhjy",nextButton:"npjForm_nextButton__Bxpld",confirmationContainer:"npjForm_confirmationContainer__sgXXw",loaderSpinner:"npjForm_loaderSpinner__bOJXH",spin:"npjForm_spin__1cDep",resumeProgressContainer:"npjForm_resumeProgressContainer__8Ztt3",copyContainer:"npjForm_copyContainer__90MHZ",copyButton:"npjForm_copyButton__xCroE",copied:"npjForm_copied__gVUWV",copyText:"npjForm_copyText__7i_2f",copyIconWrap:"npjForm_copyIconWrap__r4jJk",copyIcon:"npjForm_copyIcon__E9Xt6",moduleContent:"npjForm_moduleContent__Lz6P4",modalBody:"npjForm_modalBody__EGkdu",modalHeader:"npjForm_modalHeader__c_XF1",closeButton:"npjForm_closeButton__se3qc",loadingOverlay:"npjForm_loadingOverlay__5wXDh","button-container":"npjForm_button-container__osqJF",quizModuleContainer:"npjForm_quizModuleContainer__3vOjl",quizContainer:"npjForm_quizContainer__9nE3v"}}}]);
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.