PageSourceSearch

https://www.handbooks.io/_next/static/chunks/6329-b6cfa966b1d731bf.js

js handbooks.io collected 2026-10-04 07:00:33 UTC 90,155 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6329],{3319:(e,t,n)=>{n.d(t,{d:()=>d});var r=n(37876),l=n(14232),o=n(97280),i=n(69241);let a={sm:"max-w-sm",md:"max-w-md",lg:"max-w-3xl",xl:"max-w-5xl","2xl":"max-w-7xl"},s={sm:"sm:max-w-sm",md:"sm:max-w-md",lg:"sm:max-w-3xl",xl:"sm:max-w-5xl","2xl":"sm:max-w-7xl"},d=e=>{let{isOpen:t,onClose:n,title:d,children:c,width:u="lg",customWidth:p,customMaxWidth:h,fitContent:x=!1,height:m="fixed",showCloseButton:b=!0,closeOnBackdrop:f=!0,closeOnEscape:v=!0,headerClassName:g="",contentClassName:w="",clipOverflow:y=!0,fullScreenOnMobile:k=!1,lockVerticalPosition:j=!1}=e,C=(0,l.useRef)(null),S=(0,l.useRef)(null),[N,L]=l.useState(null);if((0,l.useEffect)(()=>{if(!v||!t)return;let e=e=>{"Escape"===e.key&&n()};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},[v,t,n]),(0,l.useEffect)(()=>{if(!t)return;let e=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.body.style.overflow=e}},[t]),(0,l.useEffect)(()=>{if(!t||!j)return void L(null);if(null!==N||!C.current||!S.current)return;let e=C.current.getBoundingClientRect(),n=S.current.getBoundingClientRect(),r=Number.parseFloat(window.getComputedStyle(C.current).paddingTop);L(Math.max(0,n.top-e.top-r))},[t,j,N]),!t)return null;let E=p||h;return(0,r.jsxs)("div",{ref:C,className:(0,i.A)("fixed inset-0 z-[9999] flex justify-center",j&&null!==N?"items-start":"items-center",k?"p-0 sm:p-4":"p-4"),onClick:e=>{f&&e.target===e.currentTarget&&n()},children:[(0,r.jsx)("div",{className:"absolute inset-0 bg-black bg-opacity-50 pointer-events-none"}),!d&&b&&(0,r.jsx)("button",{onClick:n,className:(0,i.A)("fixed top-6 right-6 z-[10000] p-2 transition-all hover:scale-110 text-gray-300 hover:text-white",k&&"hidden sm:block"),"aria-label":"Close modal",children:(0,r.jsx)("div",{className:"scale-[1.8]",children:(0,r.jsx)(o.US,{})})}),(0,r.jsxs)("div",{ref:S,className:(0,i.A)("relative bg-white shadow-xl flex flex-col",y&&"overflow-hidden",k?["w-full h-full rounded-none","sm:h-auto sm:max-h-[90vh] sm:rounded-lg",!E&&s[u]]:[x?"w-fit":"w-full","rounded-lg",(()=>{switch(m){case"auto":return"h-auto max-h-[90vh]";case"fit":return"h-fit max-h-[90vh]";default:return"h-[90vh]"}})(),!E&&a[u]]),style:{...p&&{width:p},...h&&{maxWidth:h},...j&&null!==N&&{marginTop:N}},role:"dialog","aria-modal":"true","aria-labelledby":d?"modal-title":void 0,children:[d&&(0,r.jsxs)("div",{className:(0,i.A)("flex items-center justify-between px-6 py-4 border-b border-gray-200 bg-[#4A5568] rounded-t-lg flex-shrink-0",g),children:[(0,r.jsx)("h2",{id:"modal-title",className:"text-xl font-semibold text-white m-0",children:d}),b&&(0,r.jsx)("button",{onClick:n,className:"text-white hover:text-gray-200 transition-colors p-1","aria-label":"Close modal",children:(0,r.jsx)(o.US,{})})]}),(0,r.jsx)("div",{className:w,children:c})]})]})}},6707:(e,t,n)=>{n.d(t,{L:()=>l});var r=n(37876);n(14232);let l=e=>{let{title:t,description:n,className:l="",titleClassName:o="",titleAs:i="p"}=e;return(0,r.jsxs)("div",{className:"flex flex-col items-center gap-3 text-center ".concat(l),children:[(0,r.jsx)(i,{className:"!m-0 mx-auto max-w-lg text-xl font-medium text-text-primary ".concat(o),children:t}),n&&(0,r.jsx)("p",{className:"!m-0 mx-auto max-w-lg text-center text-[17px] font-normal leading-[26px] text-text-secondary",children:n})]})}},8020:(e,t,n)=>{n.d(t,{m:()=>a});var r=n(37876),l=n(14232),o=n(57409),i=n(17163);let a=e=>{var t;let{options:n,value:a,onChange:s,placeholder:d="Select an option",className:c="",disabled:u=!1,position:p="bottom",size:h="md",id:x,ariaLabel:m,ariaDescribedBy:b,invalid:f=!1,triggerClassName:v=""}=e,[g,w]=(0,l.useState)(!1),y=n.find(e=>e.value===a),k=()=>{u||w(!g)},j=e=>{s(e),w(!1)},C=(0,r.jsxs)("button",{id:x,type:"button",onClick:k,onKeyDown:e=>{"Enter"===e.key||" "===e.key?(e.preventDefault(),k()):"Escape"===e.key&&w(!1)},disabled:u,"aria-haspopup":"listbox","aria-expanded":g,"aria-label":m,"aria-describedby":b,className:"\n        w-full text-left bg-transparent rounded-[5px] !border !border-solid\n        ".concat(f?"!border-red-500":g?"!border-brand-blue":"!border-[#ccc]","\n        hover:!border-brand-blue focus:!border-brand-blue focus:outline-none\n        flex items-center justify-between gap-1\n        transition-colors duration-200\n        ").concat("sm"===h?"!px-2.5 !py-1.5 text-sm":"!px-4 !py-3","\n        ").concat(u?"opacity-50 cursor-not-allowed":"cursor-pointer","\n        ").concat(v,"\n      "),children:[(0,r.jsx)("span",{className:y?"text-text-primary":"text-gray-400",children:y?null!=(t=y.shortLabel)?t:y.label:d}),(0,r.jsx)(o.D3,{className:"text-[#212529] transition-transform duration-200 ".concat(g?"rotate-180":""),size:20})]});return(0,r.jsx)(i.z,{isOpen:g,onClose:()=>w(!1),trigger:C,position:p,width:"trigger",containerClassName:"relative ".concat(c),className:"px-0 bg-white border border-gray-200 rounded-lg shadow-lg",children:(0,r.jsx)("ul",{role:"listbox",className:"px-0 m-0 list-none",children:n.map(e=>{let t=e.value===a;return(0,r.jsxs)("li",{role:"option","aria-selected":t,tabIndex:0,onClick:()=>j(e.value),onKeyDown:t=>((e,t)=>{"Enter"===e.key||" "===e.key?(e.preventDefault(),j(t)):"Escape"===e.key&&w(!1)})(t,e.value),className:"\n                !py-1.5 !px-3 cursor-pointer transition-colors duration-150 text-left flex items-center gap-2 ".concat("sm"===h?"text-sm":"text-base","\n                ").concat(t?"text-brand-blue font-medium":"text-text-primary","\n                hover:bg-brand-blue hover:text-white\n              "),children:[(0,r.jsx)("span",{children:e.label}),t&&(0,r.jsx)("span",{className:"flex-shrink-0",children:(0,r.jsx)(o.Sr,{size:14})})]},e.value)})})})}}
1,12714:(e,t,n)=>{n.d(t,{T:()=>d});var r=n(34957),l=n(4319),o=n(54639),i=n(60836),a=n(19588),s=n(29814);let d=(0,r.vt)()((0,l.Zr)((e,t)=>({currentStep:"state",visitedSteps:[],hasConfirmed:!1,pendingHandbookId:null,draftOwnerId:null,handbookData:(0,o.ei)(),currentStepValidationError:"",stepDirection:"forward",updateHandbookData:t=>e(e=>({handbookData:{...e.handbookData,...t},currentStepValidationError:"",validationErrorStepKey:null,validationErrorSubtopicId:null,touchedSections:e.touchedSections.includes(e.activeSectionKey)?e.touchedSections:[...e.touchedSections,e.activeSectionKey]})),goToNextStep:()=>{let n=t(),r=n.isUpdateOnly?o.fE:o.qV,l=r.indexOf(n.currentStep),a=r[l+1];try{var s,d;null==(d=o.dz[n.currentStep])||null==(s=d.validate)||s.call(d,n.handbookData);let t=[...n.visitedSteps];0>t.indexOf(n.currentStep)&&t.push(n.currentStep),(0,i.Jv)({step:n.currentStep,builderMode:n.isUpdateOnly?"update_only":"new",direction:"forward"}),e({currentStep:a,visitedSteps:t,animateClass:"",currentStepValidationError:"",validationErrorStepKey:null,validationErrorSubtopicId:null,stepDirection:"forward"})}catch(t){e({currentStepValidationError:t.message})}},goToPreviousStep:()=>{let n=t(),r=n.isUpdateOnly?o.fE:o.qV,l=r.indexOf(n.currentStep);l<=0||e({currentStep:r[l-1],animateClass:"",currentStepValidationError:"",validationErrorStepKey:null,validationErrorSubtopicId:null,stepDirection:"backward"})},goToStep:n=>{let r=t(),l=r.isUpdateOnly?o.fE:o.qV,i=l.indexOf(r.currentStep),a=l.indexOf(n),s=a<i;if(!s)for(let t of l.slice(i,a))try{var d,c;null==(c=o.dz[t])||null==(d=c.validate)||d.call(c,r.handbookData)}catch(n){e({currentStepValidationError:n.message,currentStep:t,animateClass:""});return}e({currentStep:n,animateClass:"",stepDirection:s?"backward":"forward",currentStepValidationError:"",validationErrorStepKey:null,validationErrorSubtopicId:null})},setHasConfirmed:t=>e({hasConfirmed:t}),setPendingHandbookId:t=>e({pendingHandbookId:t}),synchronizeDraftOwner:n=>{let r=t(),l=(0,s.Vz)(n),o=(0,s.Ft)({draftOwnerId:r.draftOwnerId,uploadedPaths:r.handbookData.existingHandbookFiles,userId:l});if("keep"!==o){if("claim"===o)return void e({draftOwnerId:l});r.reset(),l&&e({draftOwnerId:l})}},isUpdateOnly:!1,setIsUpdateOnly:n=>{let{isUpdateOnly:r,handbookData:l}=t();n!==r&&e({visitedSteps:[],currentStep:"state",activeSectionKey:"state",activeSubtopicId:null,requestedScrollKey:null,isUpdateOnly:n,handbookData:n?(0,o.Kq)(l):(0,o.ei)()})},reset:()=>e(e=>({handbookData:{...(0,o.ei)(),existingHandbook:!!e.isUpdateOnly||null},hasConfirmed:!1,pendingHandbookId:null,draftOwnerId:null,currentStep:"state",visitedSteps:[],currentStepValidationError:"",activeSectionKey:"state",activeSubtopicId:null,touchedSections:[],requestedScrollKey:null,submitAttempted:!1,validationErrorStepKey:null,validationErrorSubtopicId:null})),activeSectionKey:"state",touchedSections:[],setActiveSectionKey:t=>e(e=>e.activeSectionKey===t?e:{activeSectionKey:t,activeSubtopicId:null}),activeSubtopicId:null,setActiveSubtopic:(t,n)=>e({activeSectionKey:t,activeSubtopicId:n}),spyPaused:!1,pauseScrollSpy:()=>e({spyPaused:!0}),resumeScrollSpy:()=>e({spyPaused:!1}),requestedScrollKey:null,requestScrollToStep:t=>e({requestedScrollKey:t}),submitAttempted:!1,validationErrorStepKey:null,validationErrorSubtopicId:null,cmsOptionalPolicies:[],setCmsOptionalPolicies:t=>e({cmsOptionalPolicies:t}),validateAllSteps:()=>{let{isUpdateOnly:n,handbookData:r,cmsOptionalPolicies:l}=t();for(let t of(n?o.fE:o.qV).filter(e=>"confirm"!==e))try{var i,s,d;if(null==(s=o.dz[t])||null==(i=s.validate)||i.call(s,r),n&&"existingHandbook"===t&&(!r.existingHandbook||!(null==(d=r.existingHandbookFiles)?void 0:d.length)))throw Error("Please upload your existing handbook.")}catch(n){return e({submitAttempted:!0,currentStepValidationError:n.message,validationErrorStepKey:t,validationErrorSubtopicId:null,activeSectionKey:t,activeSubtopicId:null,requestedScrollKey:t}),t}let c=(0,a.Sc)(l,r);if(c){let t="".concat(c.policyFieldName,":").concat(c.questionKey);return e({submitAttempted:!0,currentStepValidationError:"Please answer this required question.",validationErrorStepKey:"optionalPolicies",validationErrorSubtopicId:t,activeSectionKey:"optionalPolicies",activeSubtopicId:t,requestedScrollKey:"optionalPolicies"}),"optionalPolicies"}return e({currentStepValidationError:"",validationErrorStepKey:null,validationErrorSubtopicId:null}),null},isUploadingExistingHandbooks:!1,setIsUploadingExistingHandbooks:t=>e({isUploadingExistingHandbooks:t}),onCloseModal:void 0,setOnCloseModal:t=>e({onCloseModal:t})}),{name:"handbookBuilderForm",version:3,migrate:(e,t)=>
1{var n,r,l,i,a;let d=null!=e?e:{},c=null!=(n=d.handbookData)?n:(0,o.ei)();return{handbookData:c,hasConfirmed:!(t<1)&&null!=(r=d.hasConfirmed)&&r,pendingHandbookId:t<2?null:null!=(l=d.pendingHandbookId)?l:null,draftOwnerId:t<3?(0,s.KO)(c.existingHandbookFiles):(0,s.Vz)(d.draftOwnerId),isUpdateOnly:null!=(i=d.isUpdateOnly)&&i,touchedSections:null!=(a=d.touchedSections)?a:[]}},partialize:e=>({handbookData:e.handbookData,hasConfirmed:e.hasConfirmed,pendingHandbookId:e.pendingHandbookId,draftOwnerId:e.draftOwnerId,isUpdateOnly:e.isUpdateOnly,touchedSections:e.touchedSections}),merge:(e,t)=>{var n,r,l,o,i,a;let s=null!=e?e:{};return{...t,hasConfirmed:null!=(n=s.hasConfirmed)?n:t.hasConfirmed,pendingHandbookId:null!=(r=s.pendingHandbookId)?r:t.pendingHandbookId,draftOwnerId:null!=(l=s.draftOwnerId)?l:t.draftOwnerId,isUpdateOnly:null!=(o=s.isUpdateOnly)?o:t.isUpdateOnly,touchedSections:null!=(i=s.touchedSections)?i:t.touchedSections,handbookData:{...t.handbookData,...null!=(a=s.handbookData)?a:{}}}}}))},15639:(e,t,n)=>{n.d(t,{s:()=>l});var r=n(89099);let l=()=>(0,r.useRouter)().pathname.startsWith("/widget")?"/widget":"/dashboard"},17163:(e,t,n)=>{n.d(t,{z:()=>i});var r=n(37876),l=n(14232),o=n(98477);let i=e=>{let{isOpen:t,onClose:n,trigger:i,position:a="bottom",width:s="trigger",className:d="",containerClassName:c="",children:u}=e,p=(0,l.useRef)(null),[h,x]=(0,l.useState)(!1),[m,b]=(0,l.useState)({}),f=(0,l.useCallback)(()=>{if(!p.current)return;let e=p.current.getBoundingClientRect(),t={position:"fixed",zIndex:99999,fontFamily:'var(--font-roboto-slab, "Roboto Slab", serif)'};switch("trigger"===s?t.width=e.width:"auto"!==s&&(t.width=s),a){case"center":t.top="50%",t.left="50%",t.transform="translate(-50%, -50%)",t.maxHeight=window.innerHeight-32,t.maxWidth="calc(100vw - ".concat(32,"px)");break;case"top":t.bottom=window.innerHeight-e.top+4,t.left=e.left,t.maxHeight=e.top-4-16;break;case"bottom":t.top=e.bottom+4,t.left=e.left,t.maxHeight=window.innerHeight-e.bottom-4-16;break;case"bottom-right":t.top=e.bottom+4,t.right=window.innerWidth-e.right,t.maxHeight=window.innerHeight-e.bottom-4-16;break;case"left":t.right=window.innerWidth-e.left+4,t.top=e.top,t.maxHeight=window.innerHeight-e.top-16;break;case"right":t.left=e.right+4,t.top=e.top,t.maxHeight=window.innerHeight-e.top-16}t.overflowY="auto",b(t)},[a,s]);(0,l.useEffect)(()=>{x(!0)},[]),(0,l.useEffect)(()=>{if(!t)return;f();let e=()=>f(),n=()=>f();return window.addEventListener("resize",e),window.addEventListener("scroll",n,!0),()=>{window.removeEventListener("resize",e),window.removeEventListener("scroll",n,!0)}},[t,f]);let v=h&&t&&(0,o.createPortal)((0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{className:"fixed inset-0",style:{zIndex:99998},onClick:n}),(0,r.jsx)("div",{style:m,className:d,children:u})]}),document.body);return(0,r.jsxs)("div",{ref:p,className:c,children:[i,v]})}},19588:(e,t,n)=>{function r(e){return e&&"object"==typeof e?e:{}}function l(e,t){switch(e.type){case"text":return"string"==typeof t&&t.trim().length>0;case"number":return"number"==typeof t&&!Number.isNaN(t);case"single_select":return!!(null==t?void 0:t.value);case"multi_select":var n,r,l;return(null!=(l=null!=(r=null==t?void 0:t.values)?r:null==(n=e.options)?void 0:n.filter(e=>e.default).map(e=>e.value))?l:[]).length>0;case"contact":if("string"==typeof t)return t.split("\n").map(e=>e.trim()).filter(e=>e&&!s.test(e)).length>0;return!!(t&&(t.name||t.email||t.phone||t.designation));default:return!0}}function o(e,t){for(let d of e){var n,o,i,s;if(!d.hasQuestionnaire||!(null==(n=d.questions)?void 0:n.length)||!t[d.fieldName]&&!(null==(o=t.optional_policies)?void 0:o[d.fieldName]))continue;let e=r(null==(i=t.optional_policies)?void 0:i[d.fieldName]);for(let t of d.questions){if(!t.required)continue;let n=t.showWhen;if((null==n||!n.questionKey||null==(s=n.values)||!s.length||a(e[n.questionKey]).some(e=>n.values.includes(e)))&&!l(t,e[t.key]))return{policyFieldName:d.fieldName,questionKey:t.key,label:t.label}}}return null}function i(e){return e.flatMap(e=>{let t=t=>{var n;return!!t[e.fieldName]||!!(null==(n=t.optional_policies)?void 0:n[e.fieldName])},n=t=>{var n;return r(null==(n=t.optional_policies)?void 0:n[e.fieldName])},o=e.hasQuestionnaire&&e.questions||[],i=(e,t)=>{var r;let l=e.showWhen;return null==l||!l.questionKey||null==(r=l.values)||!r.length||a(n(t)[l.questionKey]).some(e=>l.values.includes(e))};
1return[{id:e.fieldName,title:e.title||e.fieldName,isVisible:t,isComplete:e=>t(e)&&o.every(t=>!t.required||!i(t,e)||l(t,n(e)[t.key]))},...o.map(r=>({id:"".concat(e.fieldName,":").concat(r.key),title:r.label,indent:!0,isVisible:e=>t(e)&&i(r,e),isComplete:e=>l(r,n(e)[r.key])}))]})}function a(e){return null==e?[]:"string"==typeof e?e.trim()?[e]:[]:"number"==typeof e?[String(e)]:"value"in e?e.value?[e.value]:[]:"values"in e&&e.values||[]}n.d(t,{Sc:()=>o,YI:()=>a,h$:()=>i});let s=/^(Name|Email|Phone No\.?|Designation)\s*:\s*$/i},24817:(e,t,n)=>{n.d(t,{r:()=>i});var r=n(37876);n(14232);var l=n(97280),o=n(94696);let i=e=>{let{title:t,icon:n,showBackButton:i=!1,showCloseButton:a=!1,onBack:s,onClose:d,className:c="",titleClassName:u="",backButtonClassName:p="",closeButtonClassName:h="",leftAction:x}=e;return(0,r.jsx)("div",{className:"py-2 px-4 border-b border-gray-200 ".concat(c),children:(0,r.jsxs)("div",{className:"flex items-center justify-between gap-1",children:[(0,r.jsx)("div",{className:"flex items-center justify-start w-8 flex-shrink-0",children:x||i&&s&&(0,r.jsx)("button",{type:"button",onClick:s,className:"p-1 transition-colors hover:opacity-70 ".concat(p),"aria-label":"Go back",children:(0,r.jsx)(o.Z,{size:14})})}),(0,r.jsxs)("div",{className:"flex items-center justify-center gap-2 flex-1 min-w-0 ".concat(u),children:[n&&(0,r.jsx)("span",{className:"flex-shrink-0",children:n}),(0,r.jsx)("h2",{className:"text-base font-semibold text-gray-700 m-0 truncate",children:t})]}),(0,r.jsx)("div",{className:"flex items-center justify-end w-8 flex-shrink-0",children:a&&d&&(0,r.jsx)("button",{type:"button",onClick:d,className:"transition-colors hover:opacity-70 ".concat(h),"aria-label":"Close",children:(0,r.jsx)(l.US,{size:18})})})]})})}},29353:(e,t,n)=>{n.d(t,{Dz:()=>l,Jf:()=>o,Rg:()=>r});let r="auth-secondary-control !flex min-h-[50px] w-full !items-center !justify-center gap-2.5 !mt-0 !rounded-md !border !border-gray-200 !bg-white !px-4 !py-3 text-[15px] font-semibold !text-text-primary transition-colors hover:!border-brand-blue hover:!bg-brand-light-blue hover:!text-brand-blue hover:!no-underline focus-visible:!outline-none focus-visible:!ring-2 focus-visible:!ring-brand-blue focus-visible:!ring-offset-2 disabled:!cursor-not-allowed disabled:!opacity-60",l="auth-primary-control w-full !mt-0 !rounded-md !border !border-brand-blue !bg-brand-blue !px-4 !py-3 text-[15px] font-semibold !text-white transition-colors hover:!bg-brand-blue-dark hover:!text-white focus-visible:!outline-none focus-visible:!ring-2 focus-visible:!ring-brand-blue focus-visible:!ring-offset-2 disabled:!cursor-not-allowed disabled:!opacity-60",o="auth-field-control w-full rounded-md border border-gray-200 bg-white px-4 py-3 text-[15px] text-text-default placeholder:text-gray-400 focus:border-brand-blue focus:outline-none focus:ring-1 focus:ring-brand-blue disabled:cursor-not-allowed disabled:bg-gray-50"},29814:(e,t,n)=>{n.d(t,{Ft:()=>i,KO:()=>o,Vz:()=>l});let r=/^\d+_([0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12})_/i,l=e=>(null==e?void 0:e.trim().toLowerCase())||null,o=e=>{if(!(null==e?void 0:e.length))return null;let t=e.map(e=>{var t,n;return null==(n=r.exec(e))||null==(t=n[1])?void 0:t.toLowerCase()}),n=t[0];return n&&t.every(e=>e===n)?n:null},i=e=>{let{draftOwnerId:t,uploadedPaths:n,userId:r}=e,i=l(t),a=l(r);return a?i===a?"keep":i?"reset":(null==n?void 0:n.length)?o(n)===a?"claim":"reset":"claim":i||(null==n?void 0:n.length)?"reset":"keep"}},30143:(e,t,n)=>{n.d(t,{g:()=>eS});var r=n(37876),l=n(14232),o=n(34100),i=n(89099),a=n(12714),s=n(18847),d=n.n(s),c=n(54639);let u={state:(0,r.jsx)(()=>(0,r.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"17",height:"17",viewBox:"0 0 17 17",fill:"none",children:[(0,r.jsx)("path",{d:"M8.92996 11.8958C10.0095 10.9282 12.75 8.22522 12.75 5.66602C12.75 4.53885 12.3022 3.45784 11.5052 2.66081C10.7082 1.86378 9.62717 1.41602 8.5 1.41602C7.37283 1.41602 6.29183 1.86378 5.4948 2.66081C4.69777 3.45784 4.25 4.53885 4.25 5.66602C4.25 8.22522 6.99125 10.9282 8.07004 11.8958C8.19353 11.9901 8.34461 12.0412 8.5 12.0412C8.65539 12.0412 8.80647 11.9901 8.92996 11.8958Z",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round"}),(0,r.jsx)("path",{d:"M8.4987 7.08333C9.2811 7.08333 9.91536 6.44907 9.91536 5.66667C9.91536 4.88426 9.2811 4.25 8.4987 4.25C7.71629 4.25 7.08203 4.88426 7.08203 5.66667C7.08203 6.44907 7.71629 7.08333 8.4987 7.08333Z",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round"}),(0,r.jsx)("path",{d:"M6.17342 9.91602H3.5455C3.39698 9.91608 3.25224 9.96282 3.13174 10.0496C3.01124 10.1365 2.92108 10.2589 2.874 10.3998L1.4545 14.6498C1.41891 14.7563 1.40914 14.8697 1.42599 14.9807C1.44284 15.0917 1.48583 15.1971 1.55142 15.2882C1.617 15.3793 1.7033 15.4535 1.8032 15.5047C1.9031 15.5559 2.01374 15.5826 2.126 15.5827H14.876C14.9882 15.5826 15.0987 15.5559 15.1986 15.5047C15.2984 15.4535 15.3846 15.3794 15.4502 15.2884C15.5158 15.1973 15.5588 15.0921 15.5757 14.9812C15.5926 14.8703 15.5829 14.7569 15.5475 14.6505L14.1308 10.4005C14.0838 10.2594 13.9936 10.1367 13.873 10.0497C13.7523 9.96276 13.6074 9.91598 13.4586 9.91602H10.8293",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round"})]}),{}),company:(0,r.jsx)(()=>(0,r.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"17",height:"17",viewBox:"0 0 17 17",fill:"none",children:[(0,r.jsx)("path",{d:"M7.08203 8.5H9.91536",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round"}),(0,r.jsx)("path",{d:"M7.08203 5.66602H9.91536",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round"}),(0,r.jsx)("path",{d:"M9.91536 14.8757V12.7507C9.91536 12.3749 9.76611 12.0146 9.50043 11.7489C9.23476 11.4832 8.87442 11.334 8.4987 11.334C8.12297 11.334 7.76264 11.4832 7.49696 11.7489C7.23129 12.0146 7.08203 12.3749 7.08203 12.7507V14.8757",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round"}),(0,r.jsx)("path",{d:"M4.2513 7.08398H2.83464C2.45891 7.08398 2.09858 7.23324 1.8329 7.49892C1.56722 7.76459 1.41797 8.12493 1.41797 8.50065V13.459C1.41797 13.8347 1.56722 14.195 1.8329 14.4607C2.09858 14.7264 2.45891 14.8757 2.83464 14.8757H14.168C14.5437 14.8757 14.904 14.7264 15.1697 14.4607C15.4354 14.195 15.5846 13.8347 15.5846 13.459V6.37565C15.5846 5.99993 15.4354 5.63959 15.1697 5.37392C14.904 5.10824 14.5437 4.95898 14.168 4.95898H12.7513",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round"}),(0,r.jsx)("path",{d:"M4.25 14.875V3.54167C4.25 3.16594 4.39926 2.80561 4.66493 2.53993C4.93061 2.27426 5.29094 2.125 5.66667 2.125H11.3333C11.7091 2.125 12.0694 2.27426 12.3351 2.53993C12.6007 2.80561 12.75 3.16594 12.75 3.54167V14.875",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round"})]}),{}),industry:(0,r.jsx)(()=>(0,r.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"17",height:"17",viewBox:"0 0 17 17",fill:"none",children:[(0,r.jsx)("path",{d:"M13.4583 2.125H3.54167C2.75926 2.125 2.125 2.75926 2.125 3.54167V13.4583C2.125 14.2407 2.75926 14.875 3.54167 14.875H13.4583C14.2407 14.875 14.875 14.2407 14.875 13.4583V3.54167C14.875 2.75926 14.2407 2.125 13.4583 2.125Z",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round"}),(0,r.jsx)("path",{d:"M7.79297 2.125V7.79167L9.91797 5.66667L12.043 7.79167V2.125",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round"})]}),{}),trialPeriod:(0,r.jsx)(()=>(0,r.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"17",height:"17",viewBox:"0 0 17 17",fill:"none",children:[(0,r.jsx)("path",{d:"M2.83203 7.79102V2.83269C2.83203 2.45696 2.98129 2.09663 3.24696 1.83095C3.51264 1.56528 3.87297 1.41602 4.2487 1.41602H9.91536C10.1398 1.41547 10.3622 1.45938 10.5696 1.54521C10.777 1.63104 10.9653 1.7571 11.1238 1.9161L13.6653 4.4576C13.8243 4.61604 13.9503 4.80439 14.0362 5.0118C14.122 5.21921 14.1659 5.44156 14.1654 5.66602V14.166C14.1654 14.5417 14.0161 14.9021 13.7504 15.1678C13.4848 15.4334 13.1244 15.5827 12.7487 15.5827H4.2487C3.87297 15.5827 3.51264 15.4334 3.24696 15.1678C2.98129 14.9021 2.83203 14.5417 2.83203 14.166V13.4577",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round"}),(0,r.jsx)("path",{d:"M9.91797 1.41602V4.95768C9.91797 5.14554 9.9926 5.32571 10.1254 5.45855C10.2583 5.59139 10.4384 5.66602 10.6263 5.66602H14.168",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round"}),(0,r.jsx)("path",{d:"M1.41797 10.625H8.5013",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round"}),(0,r.jsx)("path",{d:"M6.375 12.75L8.5 10.625L6.375 8.5",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round"})]}),{}),paidHolidays:(0,r.jsx)(()=>(0,r.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"17",height:"17",viewBox:"0 0 17 17",fill:"none",children:[(0,r.jsx)("path",{d:"M8.85547 7.88672L12.8901 14.8751",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round"}),(0,r.jsx)("path",{d:"M14.4667 3.75394C13.3807 2.54866 11.9139 1.75271 10.3114 1.49916C8.70898 1.24561 7.06806 1.54983 5.663 2.36097C4.25795 3.1721 3.17392 4.44098 2.59216 5.95547C2.0104 7.46996 1.96616 9.13826 2.46684 10.6814C2.59647 11.0802 3.06397 11.2297 3.42663 11.02L14.279 4.75411C14.6417 4.54444 14.7465 4.0649 14.466 3.75324",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round"}),(0,r.jsx)("path",{d:"M14.875 14.875H2.125",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]}),{}),vacationBenefits:(0,r.jsx)(()=>(0,r.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"17",height:"17",viewBox:"0 0 17 17",fill:"none",children:[(0,r.jsx)("path",{d:"M7.79167 10.6243H9.20833C9.58406 10.6243 9.94439 10.4751 10.2101 10.2094C10.4757 9.94374 10.625 9.58341 10.625 9.20768C10.625 8.83196 10.4757 8.47162 10.2101 8.20595C9.94439 7.94027 9.58406 7.79102 9.20833 7.79102H7.08333C6.65833 7.79102 6.30417 7.93268 6.09167 8.21602L2.125 12.041",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round"}),(0,r.jsx)("path",{d:"M4.95703 14.8749L6.09036 13.8833C6.30286 13.5999 6.65703 13.4583 7.08203 13.4583H9.91536C10.6945 13.4583 11.4029 13.1749 11.8987 12.6083L15.157 9.49162C15.4304 9.23331 15.5899 8.87699 15.6005 8.50106C15.6112 8.12513 15.472 7.76037 15.2137 7.48703C14.9554 7.21369 14.5991 7.05416 14.2231 7.04354C13.8472 7.03291 13.4825 7.17206 13.2091 7.43037L10.2341 10.1929",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round"}),(0,r.jsx)("path",{d:"M1.41797 11.334L5.66797 15.584",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round"}),(0,r.jsx)("path",{d:"M11.3315 8.42865C12.466 8.42865 13.3857 7.50896 13.3857 6.37448C13.3857 5.23999 12.466 4.32031 11.3315 4.32031C10.197 4.32031 9.27734 5.23999 9.27734 6.37448C9.27734 7.50896 10.197 8.42865 11.3315 8.42865Z",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round"}),(0,r.jsx)("path",{d:"M4.25 5.66602C5.4236 5.66602 6.375 4.71462 6.375 3.54102C6.375 2.36741 5.4236 1.41602 4.25 1.41602C3.07639 1.41602 2.125 2.36741 2.125 3.54102C2.125 4.71462 3.07639 5.66602 4.25 5.66602Z",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round"})]}),{}),healthInsurance:(0,r.jsx)(()=>(0,r.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"17",height:"17",viewBox:"0 0 17 17",fill:"none",children:[(0,r.jsx)("path",{d:"M7.79955 13.1615L4.52917 14.8814C4.46707 14.9142 4.39699 14.929 4.32691 14.924C4.25682 14.9191 4.18954 14.8945 4.13271 14.8532C4.07589 14.8119 4.0318 14.7554 4.00547 14.6903C3.97914 14.6251 3.97161 14.5539 3.98375 14.4847L4.6078 10.8446C4.64914 10.6042 4.63134 10.3575 4.55594 10.1256C4.48053 9.89369 4.34979 9.68365 4.175 9.51361L1.52867 6.9374C1.47809 6.88855 1.44225 6.82647 1.42523 6.75824C1.40821 6.69001 1.41069 6.61838 1.43239 6.55149C1.4541 6.48461 1.49415 6.42516 1.54799 6.37993C1.60183 6.3347 1.66729 6.30549 1.73692 6.29565L5.39546 5.76086C5.63652 5.72591 5.86545 5.63285 6.06253 5.4897C6.2596 5.34656 6.41889 5.
115762 6.52667 4.93919L8.16221 1.6249C8.19325 1.56218 8.24121 1.50939 8.30066 1.47248C8.36011 1.43557 8.42869 1.41602 8.49867 1.41602C8.56865 1.41602 8.63723 1.43557 8.69668 1.47248C8.75613 1.50939 8.80409 1.56218 8.83513 1.6249L10.4714 4.93919C10.579 5.15744 10.7381 5.34627 10.9349 5.4894C11.1317 5.63254 11.3604 5.72569 11.6012 5.76086L15.2604 6.29636C15.3298 6.3064 15.3949 6.33565 15.4485 6.38079C15.5021 6.42593 15.5419 6.48516 15.5636 6.55179C15.5853 6.61841 15.5879 6.68977 15.5711 6.75779C15.5543 6.82581 15.5188 6.88778 15.4687 6.93669L14.1653 8.14511",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round"}),(0,r.jsx)("path",{d:"M10.625 12.75H14.875",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round"}),(0,r.jsx)("path",{d:"M12.75 10.625V14.875",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round"})]}),{}),payAndHours:(0,r.jsx)(()=>(0,r.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"17",height:"17",viewBox:"0 0 17 17",fill:"none",children:[(0,r.jsx)("path",{d:"M8.5013 12.75H2.83464C2.45891 12.75 2.09858 12.6007 1.8329 12.3351C1.56722 12.0694 1.41797 11.7091 1.41797 11.3333V5.66667C1.41797 5.29094 1.56722 4.93061 1.8329 4.66493C2.09858 4.39926 2.45891 4.25 2.83464 4.25H14.168C14.5437 4.25 14.904 4.39926 15.1697 4.66493C15.4354 4.93061 15.5846 5.29094 15.5846 5.66667V9.20833",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round"}),(0,r.jsx)("path",{d:"M11.332 13.459L13.457 15.584L15.582 13.459",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round"}),(0,r.jsx)("path",{d:"M12.75 8.5H12.7571",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round"}),(0,r.jsx)("path",{d:"M13.457 11.334V15.584",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round"}),(0,r.jsx)("path",{d:"M4.25 8.5H4.25708",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round"}),(0,r.jsx)("path",{d:"M8.4987 9.91732C9.2811 9.91732 9.91536 9.28305 9.91536 8.50065C9.91536 7.71825 9.2811 7.08398 8.4987 7.08398C7.71629 7.08398 7.08203 7.71825 7.08203 8.50065C7.08203 9.28305 7.71629 9.91732 8.4987 9.91732Z",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round"})]}),{}),managers:(0,r.jsx)(()=>(0,r.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"17",height:"17",viewBox:"0 0 17 17",fill:"none",children:[(0,r.jsx)("path",{d:"M11.3693 8.93605C11.4161 8.7925 11.5076 8.66766 11.6303 8.57974C11.7531 8.49182 11.9007 8.44542 12.0517 8.44732C12.2027 8.44922 12.3491 8.49931 12.4696 8.59029C12.5901 8.68127 12.6784 8.80837 12.7215 8.95305L13.2436 9.98155C13.2944 10.0815 13.3682 10.168 13.459 10.2339C13.5497 10.2998 13.6548 10.3432 13.7656 10.3605L14.923 10.5418C15.0721 10.5424 15.2171 10.59 15.3376 10.6778C15.458 10.7656 15.5477 10.8892 15.5938 11.0309C15.64 11.1726 15.6402 11.3253 15.5946 11.4671C15.5489 11.609 15.4597 11.7329 15.3395 11.8211L14.5094 12.6484C14.4299 12.7276 14.3703 12.8244 14.3356 12.9311C14.3009 13.0377 14.292 13.1511 14.3096 13.2618L14.4931 14.4044C14.5436 14.5476 14.5467 14.7032 14.502 14.8483C14.4573 14.9934 14.3672 15.1204 14.2449 15.2103C14.1226 15.3003 13.9746 15.3487 13.8228 15.3482C13.6709 15.3477 13.5233 15.2984 13.4015 15.2076L12.3638 14.6764C12.2639 14.6252 12.1532 14.5985 12.0408 14.5985C11.9285 14.5985 11.8178 14.6252 11.7178 14.6764L10.6801 15.2076C10.5584 15.2977 10.4111 15.3463 10.2597 15.3465C10.1083 15.3467 9.96086 15.2983 9.83895 15.2086C9.71704 15.1188 9.62709 14.9924 9.58229 14.8478C9.53749 14.7032 9.54019 14.548 9.59 14.4051L9.77275 13.2626C9.7904 13.1518 9.78149 13.0384 9.74676 12.9318C9.71204 12.8251 9.65248 12.7283 9.573 12.6491L8.75417 11.8324C8.62997 11.7464 8.53653 11.6229 8.48752 11.48C8.43851 11.337 8.43648 11.1822 8.48174 11.038C8.527 10.8939 8.61717 10.7679 8.73907 10.6787C8.86098 10.5894 9.00824 10.5415 9.15934 10.5418L10.316 10.3605C10.4268 10.3432 10.532 10.2998 10.6227 10.2339C10.7135 10.168 10.7873 10.0815 10.8381 9.98155L11.3693 8.93605Z",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round"}),(0,r.jsx)("path",{d:"M5.66667 10.625H4.95833C4.20689 10.625 3.48
1622 10.9235 2.95486 11.4549C2.42351 11.9862 2.125 12.7069 2.125 13.4583V14.875",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round"}),(0,r.jsx)("path",{d:"M7.08333 7.79167C8.64814 7.79167 9.91667 6.52314 9.91667 4.95833C9.91667 3.39353 8.64814 2.125 7.08333 2.125C5.51853 2.125 4.25 3.39353 4.25 4.95833C4.25 6.52314 5.51853 7.79167 7.08333 7.79167Z",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round"})]}),{}),missionStatement:(0,r.jsx)(()=>(0,r.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"17",height:"17",viewBox:"0 0 17 17",fill:"none",children:[(0,r.jsx)("path",{d:"M8.5 9.20768V1.41602L14.1667 4.24935L8.5 7.08268",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round"}),(0,r.jsx)("path",{d:"M14.5638 7.24122C14.9408 8.40299 14.976 9.64858 14.6654 10.8298C14.3548 12.0111 13.7114 13.0782 12.8118 13.9043C11.9122 14.7304 10.7941 15.2807 9.59078 15.4896C8.3874 15.6986 7.14932 15.5575 6.02384 15.0831C4.89835 14.6087 3.93283 13.821 3.24216 12.8136C2.55149 11.8063 2.16473 10.6217 2.1279 9.40088C2.09107 8.18005 2.40572 6.97434 3.03442 5.92719C3.66311 4.88003 4.57939 4.03553 5.67423 3.49414",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round"}),(0,r.jsx)("path",{d:"M5.66705 7.08203C5.31211 7.55451 5.08103 8.10829 4.99488 8.69292C4.90872 9.27755 4.97022 9.87444 5.17377 10.4292C5.37733 10.984 5.71646 11.479 6.16029 11.8692C6.60411 12.2594 7.13851 12.5323 7.7148 12.6631C8.29109 12.7939 8.89094 12.7784 9.45972 12.6181C10.0285 12.4577 10.5481 12.1576 10.9712 11.745C11.3943 11.3325 11.7075 10.8206 11.8821 10.2561C12.0568 9.69155 12.0874 9.09227 11.9712 8.51286",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round"})]}),{}),optionalPolicies:(0,r.jsx)(()=>(0,r.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"17",height:"17",viewBox:"0 0 17 17",fill:"none",children:[(0,r.jsx)("path",{d:"M8.03828 15.5827H4.2487C3.87297 15.5827 3.51264 15.4334 3.24696 15.1678C2.98129 14.9021 2.83203 14.5417 2.83203 14.166V2.83269C2.83203 2.45696 2.98129 2.09663 3.24696 1.83095C3.51264 1.56528 3.87297 1.41602 4.2487 1.41602H9.91536C10.1398 1.41547 10.3622 1.45938 10.5696 1.54521C10.777 1.63104 10.9653 1.7571 11.1238 1.9161L13.6653 4.4576C13.8243 4.61604 13.9503 4.80439 14.0362 5.0118C14.122 5.21921 14.1659 5.44156 14.1654 5.66602V9.4556",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round"}),(0,r.jsx)("path",{d:"M9.91797 1.41602V4.95768C9.91797 5.14554 9.9926 5.32571 10.1254 5.45855C10.2583 5.59139 10.4384 5.66602 10.6263 5.66602H14.168",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round"}),(0,r.jsx)("path",{d:"M9.91797 13.459H14.168",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round"}),(0,r.jsx)("path",{d:"M12.043 11.334V15.584",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round"})]}),{}),existingHandbook:(0,r.jsx)(()=>(0,r.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"17",height:"17",viewBox:"0 0 17 17",fill:"none",children:[(0,r.jsx)("path",{d:"M9.20703 14.875H14.8737",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round"}),(0,r.jsx)("path",{d:"M10.625 3.54102L13.4583 6.37435",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round"}),(0,r.jsx)("path",{d:"M14.9995 4.82479C15.374 4.45038 15.5844 3.94253 15.5845 3.41297C15.5846 2.88341 15.3743 2.37552 14.9999 2.00101C14.6255 1.62651 14.1176 1.41608 13.588 1.41602C13.0585 1.41595 12.5506 1.62625 12.1761 2.00066L2.72267 11.4562C2.55821 11.6202 2.43659 11.8221 2.36851 12.0441L1.4328 15.1268C1.41449 15.188 1.41311 15.2531 1.4288 15.3151C1.44448 15.3771 1.47666 15.4337 1.5219 15.4788C1.56715 15.524 1.62378 15.5561 1.68578 15.5717C1.74779 15.5873 1.81286 15.5858 1.87409 15.5674L4.95746 14.6324C5.17929 14.5649 5.38117 14.444 5.54538 14.2803L14.9995 4.82479Z",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round"})]}),{}),confirm:(0,r.jsx)(()=>(0,r.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"17",height:"17",viewBox:"0 0 17 17",fill:"none",children:[(0,r.jsx)("path",{d:"M2.125 4.95833V3.54167C2.125 3.16594 2.27426 2.80561 2.53993 2.53993C2.80561 2.27426 3.16594 2.125 3.54167 2.125H4.95833",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round"}),(0,r.jsx)("path",{d:"M12.043 2.125H13.4596C13.8354 2.125 14.1957 2.27426 14.4614 2.53993C14.727 2.80561 14.8763 3.16594 14.8763 3.5416
17V4.95833",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round"}),(0,r.jsx)("path",{d:"M14.8763 12.041V13.4577C14.8763 13.8334 14.727 14.1937 14.4614 14.4594C14.1957 14.7251 13.8354 14.8743 13.4596 14.8743H12.043",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round"}),(0,r.jsx)("path",{d:"M4.95833 14.8743H3.54167C3.16594 14.8743 2.80561 14.7251 2.53993 14.4594C2.27426 14.1937 2.125 13.8334 2.125 13.4577V12.041",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round"}),(0,r.jsx)("path",{d:"M8.5013 9.20768C8.8925 9.20768 9.20964 8.89055 9.20964 8.49935C9.20964 8.10815 8.8925 7.79102 8.5013 7.79102C8.1101 7.79102 7.79297 8.10815 7.79297 8.49935C7.79297 8.89055 8.1101 9.20768 8.5013 9.20768Z",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round"}),(0,r.jsx)("path",{d:"M13.42 8.26611C13.4729 8.41745 13.4729 8.58226 13.42 8.73361C13.0212 9.71081 12.3403 10.5471 11.4643 11.1357C10.5883 11.7244 9.55676 12.0388 8.50132 12.0388C7.44587 12.0388 6.41435 11.7244 5.53832 11.1357C4.66228 10.5471 3.98145 9.71081 3.58265 8.73361C3.52974 8.58226 3.52974 8.41745 3.58265 8.26611C3.98145 7.28891 4.66228 6.45264 5.53832 5.86398C6.41435 5.27
1532 7.44587 4.96094 8.50132 4.96094C9.55676 4.96094 10.5883 5.27532 11.4643 5.86398C12.3403 6.45264 13.0212 7.28891 13.42 8.26611Z",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round"})]}),{})};var p=n(42335),h=n(6707);let x=e=>{let{name:t,label:n,labelClassName:l,description:o,selectedValue:i,onAccept:a,onDecline:s}=e;return(0,r.jsxs)("div",{className:"text-center",children:[(0,r.jsx)(h.L,{title:n,description:o,className:"mb-4",titleClassName:l}),(0,r.jsx)(p.j,{name:t,options:[{label:"Yes",value:"true"},{label:"No",value:"false"}],selectedValue:i,onChange:e=>{"true"===e?a():s()},size:"sm"})]})};var m=n(8020);let b=e=>{let{onChange:t,options:n,label:l,labelClassName:o,description:i,name:a,selectedValue:s,size:d="sm",placeholder:c="Select an option",position:u="bottom"}=e,p=n.map(e=>({value:String(e.value),label:e.text})),x=null===s||""===s?"":String(s);return(0,r.jsxs)("div",{className:"text-center",children:[(0,r.jsx)(h.L,{title:l,description:i,className:"mb-4",titleClassName:o}),(0,r.jsx)("div",{className:"".concat({sm:"w-full max-w-[350px]",md:"w-full max-w-[420px]",lg:"w-full"}[d]," ").concat("lg"!==d?"mx-auto":""),"data-testid":"select_".concat(a),children:(0,r.jsx)(m.m,{options:p,value:x,onChange:e=>{let r=n.find(t=>String(t.value)===e);r?t(r.value):t(e)},placeholder:c,position:u})})]})},f=e=>{let{onChange:t,options:n,label:l,labelClassName:o,description:i,name:a,selectedValues:s}=e;return(0,r.jsxs)("div",{className:"text-center",children:[(0,r.jsx)(h.L,{title:l,description:i,className:"mb-4",titleClassName:o}),(0,r.jsx)("div",{className:"flex flex-col gap-2 max-w-sm mx-auto",children:n.map(e=>{let n=null==s?void 0:s.includes(e.value);return(0,r.jsxs)("button",{type:"button",onClick:()=>t(e.value),"data-testid":"checkbox_".concat(a,"_").concat(e.value),className:"\n                w-full px-4 py-3 rounded-md border text-left flex items-center gap-3\n                transition-all duration-200\n                ".concat(n?"bg-gray-100 border-gray-300":"bg-white border-gray-200 hover:border-gray-300","\n              "),children:[(0,r.jsx)("span",{className:"\n                  w-5 h-5 rounded border flex items-center justify-center flex-shrink-0\n                  ".concat(n?"bg-brand-blue border-brand-blue":"bg-white border-gray-300","\n                "),children:n&&(0,r.jsx)("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",children:(0,r.jsx)("path",{d:"M20 6L9 17L4 12",stroke:"white",strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round"})})}),(0,r.jsx)("span",{className:"text-text-primary",children:e.text})]},e.value)})})]})},v=e=>{let{name:t,value:n,onChange:l,placeholder:o="",className:i="",disabled:a=!1,autoFocus:s=!1}=e;return(0,r.jsx)("input",{type:"text",name:t,value:n,onChange:e=>l(e.target.value),placeholder:o,disabled:a,autoFocus:s,"data-testid":"text_input_".concat(t),className:"\n        w-full px-4 py-3 rounded-md border border-gray-200\n        text-center text-text-secondary placeholder-text-secondary\n        focus:outline-none focus:border-brand-blue focus:ring-1 focus:ring-brand-blue\n        transition-all duration-200\n        disabled:bg-gray-100 disabled:cursor-not-allowed\n        ".concat(i,"\n      ")})},g=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;return Math.round(e*Math.pow(10,t))/Math.pow(10,t)},w=e=>{let{name:t,value:n,onChange:o,min:i=1,max:a=9999,step:s=1,className:d="",disabled:c=!1,placeholder:u=""}=e,[p,h]=(0,l.useState)(null===n?"":String(n));(0,l.useEffect)(()=>{h(null===n?"":String(n))},[n]);let x=null!=n?n:0,m=()=>{let e=g(x-s);e>=i&&o(e)},b=()=>{let e=g((null===n?i-s:x)+s);e<=a&&o(e)};return(0,r.jsxs)("div",{className:"\n        w-full flex justify-between items-center border border-gray-200 rounded-md overflow-hidden\n        ".concat(c?"opacity-50 cursor-not-allowed":"","\n        ").concat(d,"\n      "),children:[(0,r.jsx)("input",{type:"text",name:t,value:p,onChange:e=>{let t=e.target.value;if(""===t)return void h("");let n=t.split(".")[1];if(n&&n.length>2)return;h(t);let r=parseFloat(t);!isNaN(r)&&r>=i&&r<=a&&o(r)},onBlur:()=>{if(""===p)return;let e=parseFloat(p);isNaN(e)||e<i?(o(i),h(String(i))):e>a&&(o(a),h(String(a)))},onKeyDown:e=>{"ArrowUp"===e.key?(e.preventDefault(),b()):"ArrowDown"===e.key&&(e.preventDefault(),m())},disabled:c,placeholder:u,"data-testid":"number_stepper_".concat(t),className:" flex-1 px-4 py-3 text-text-primary text-lg font-medium text-left border-none outline-none bg-transparent placeholder-gray-400 disabled:cursor-not-allowed "}),(0,r.jsxs)("div",{className:"flex items-center",children:[(0,r.jsx)("button",{type:"button",onClick:m,disabled:c||null===n||x<=i,"aria-label":"Decrease value","data-testid":"number_stepper_".concat(t,"_decrement"),className:" pr-3 py-3 text-gray-400 text-xl font-light hover:text-brand-blue transition-colors duration-200 disabled:opacity-50 disabled:cursor-not-allowed disabled:hover:text-gray-400 ",children:"−"}),(0,r.jsx)("span",{className:"w-px h-5 bg-gray-200"}),(0,r.jsx)("button",{type:"button",onClick:b,disabled:c||x>=a,"aria-label":"Increase value","data-testid":"number_stepper_".concat(t,"_increment"),className:" pl-3 pr-4 py-3 text-gray-400 text-xl font-light hover:text-brand-blue transition-colors duration-200 disabled:opacity-50 disabled:cursor-not-allowed disabled:hover:text-gray-400 ",children:"+"})]})]})};var y=n(55093);let k={"minimum_wage.rate":"max","sick_leave.accrual_rate":"max","sick_leave.cap":"max","fulltime_threshold.hours_per_week":"min","fulltime_threshold.hours_per_month":"min","overtime.threshold_hours_per_day":"min","overtime.threshold_hours_per_week":"min","pfml.weekly_benefit_cap":"max","meal_breaks.required_break_minutes":"max"},j=(e,t)=>k["".concat(e,".").concat(t)]||"max",C=(e,t)=>"sick_leave"===e&&"accrual_rate"===t,S=e=>!Number.isFinite(e)||e<=0?0:e<=1?e:1/e,N=e=>Math.round(40*S(e)*100)/100,L=(e,t)=>C(e.category,e.key)?S(t):t,E=function(e,t,n,r){let l=arguments.length>4&&void 0!==arguments[4]?arguments[4]:new Date,o=l.getTime(),i=e.filter(e=>{if(e.stateCode!==t||e.category!==n||e.key!==r)return!1;let l=e.effectiveDate?new Date(e.effectiveDate).getTime():-1/0,i=e.expiresAt?new Date(e.expiresAt).getTime():1/0;return l<=o&&o<=i});return i.length?i.sort((e,t)=>
1{let n=e.effectiveDate?new Date(e.effectiveDate).getTime():0;return(t.effectiveDate?new Date(t.effectiveDate).getTime():0)-n})[0]:null},W=function(e){var t,n,r,l,o;let i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(null!=e.numericValue)return{numericValue:e.numericValue,displayValue:e.displayValue};if(null==(t=e.conditions)?void 0:t.length){for(let t of e.conditions)if("employer_size"===t.type&&null!=i.employerSize){let e=t.criteria,n=null==e.minEmployees||i.employerSize>=e.minEmployees,l=null==e.maxEmployees||i.employerSize<=e.maxEmployees;if(n&&l)return{numericValue:null!=(r=t.numericValue)?r:null,displayValue:t.value}}else if("industry"===t.type&&(null==(n=i.industries)?void 0:n.length)&&(null==(l=t.criteria.industries)?void 0:l.some(e=>i.industries.includes(e))))return{numericValue:null!=(o=t.numericValue)?o:null,displayValue:t.value}}return{numericValue:null,displayValue:e.displayValue}},T=function(e,t,n,r){let l=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:new Date,i=t.map(t=>E(e,t,n,r,o)).filter(e=>!!e).filter(e=>"No statewide mandate"!==e.displayValue).map(e=>({row:e,resolved:W(e,l)})).filter(e=>null!=e.resolved.numericValue);if(!i.length)return null;let a=j(n,r);return i.sort((e,t)=>{var n,r;let l=L(e.row,null!=(n=e.resolved.numericValue)?n:0),o=L(t.row,null!=(r=t.resolved.numericValue)?r:0);return"max"===a?o-l:l-o})[0].row},V=function(e,t,n,r){let l=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:new Date,i=T(e,t,n,r,l,o);return i?W(i,l).numericValue:null},H=async(e,t)=>{if(!e.length)return[];let n=new URLSearchParams;n.set("states",e.join(",")),t&&n.set("category",t);try{let e=await fetch("/api/state-compliance?".concat(n.toString()));if(!e.ok)return[];return(await e.json()).rows||[]}catch(e){return console.error("[state-compliance] fetch failed",e),[]}},M=function(e,t,n,r,l){var o,i;let a,s=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};if(null==l)return{compliant:!0};let d=T(e,t,n,r,s.ctx);if(!d)return{compliant:!0};let c=W(d,null!=(o=s.ctx)?o:{});if(null==c.numericValue)return{compliant:!0};let u=j(n,r),p=c.numericValue,h="sick_leave"===n&&"accrual_rate"===r&&"per40"===s.unit,x=C(n,r)&&!h,m=l,b=p;if(h?(m=l,b=N(p)):x&&(m=S(l),b=S(p)),"max"===(h?"max":u)?m>=b:m<=b)return{compliant:!0,bindingState:d.stateCode,stateValue:p,direction:u};let f=d.stateCode;return a=h?"Below ".concat(f," minimum (").concat(b," hrs)"):"max"===u?"Below ".concat(f," minimum (").concat(p,")"):"Above ".concat(f," maximum (").concat(p,")"),{compliant:!1,bindingState:d.stateCode,stateValue:p,stateDisplayValue:c.displayValue,direction:u,statuteRef:null!=(i=d.statuteRef)?i:void 0,message:a}},_=e=>(0,o.A)(e,["handbookData","updateHandbookData"]),O=()=>{let{handbookData:e,updateHandbookData:t}=(0,a.T)(_),{vacationBenefitType:n,multiStateSelectedStates:o,myState:i,numberOfEmployees:s,industry:d}=e,[u,p]=(0,l.useState)([]),[x,m]=(0,l.useState)({}),b=(0,l.useMemo)(()=>({employerSize:"number"==typeof s?s:void 0,industries:"string"==typeof d&&d?[d]:void 0}),[s,d]),f=(0,l.useMemo)(()=>((null==o?void 0:o.length)?o:i?[i]:[]).map(e=>e.toUpperCase()),[o,i]);if((0,l.useEffect)(()=>{if(!f.length){p([]),m({});return}let e=!1;return H(f,"sick_leave").then(t=>{if(e)return;p(t);let n=V(t,f,"sick_leave","accrual_rate",b),r=V(t,f,"sick_leave","cap",b);m({sickHoursEarned:n?N(n):void 0,maximumSickLeave:null!=r?r:void 0,sourceStates:f})}),()=>{e=!0}},[f,b]),(0,l.useEffect)(()=>{if(n&&c.hz[n]){let e=a.T.getState().handbookData,r={};c.hz[n].inputs.forEach(t=>{let{defaultValue:n,fieldName:l}=t;if(null!=e[l])return;let o=x[l],i=null!=o?o:n;void 0!==i&&(r[l]=i)}),Object.keys(r).length>0&&t(r)}},[n,t,x]),!e.vacationBenefits||!e.vacationBenefitType)return null;let v=c.hz[e.vacationBenefitType];return v?(0,r.jsxs)("div",{children:[(0,r.jsx)("p",{className:"mx-auto max-w-xl text-center !text-sm text-text-secondary !mt-[-32px] !mb-8",children:v.description}),v.inputs.map(n=>{var l;let{label:o,fieldName:i,defaultValue:a}=n,s=n.description,d=e[i]?parseFloat(String(e[i])):a||0,c=x[i],p=null==(l=x.sourceStates)?void 0:l.join(", "),m={sickHoursEarned:{category:"sick_leave",key:"accrual_rate",unit:"per40"},maximumSickLeave:{category:"sick_leave",key:"cap",unit:"native"}}[i],v=m&&u.length?M(u,f,m.category,m.key,d,{ctx:b,unit:m.unit}):{compliant:!0};return(0,r.jsxs)("div",{"data-subtopic-id":i,className:"text-center mb-8 last:!mb-0",children:[(0,r.jsx)(h.L,{title:o,description:s,className:"mb-4"}),(0,r.jsxs)("div",{className:"max-w-[350px] mx-auto",children:[(0,r.jsx)(w,{name:i,value:d,onChange:e=>t({[i]:e}),min:0,max:"maximumSickLeave"===i?999:40,step:"maximumSickLeave"===i?1:.1}),!v.compliant&&v.message?(0,r.jsxs)("p",{className:"text-xs text-amber-700 mt-2 m-0",role:"alert",children:[v.message,void 0!==c&&(0,r.jsxs)(r.Fragment,{children:[" \xb7 ",(0,r.jsxs)("button",{type:"button",onClick:()=>t({[i]:c}),className:"text-amber-700 underline hover:no-underline bg-transparent border-0 p-0 cursor-pointer",children:["Use ",c]})]})]}):void 0!==c?(0,r.jsxs)("p",{className:"text-xs text-gray-500 mt-2 m-0",children:["Suggested by state law",p?" (".concat(p,")"):"",":"," ",(0,r.jsx)("strong",{children:c})]}):null]})]},i)})]}):null},D=d()(()=>Promise.all([n.e(5783),n.e(2799)]).then(n.bind(n,75122)),{loadableGenerated:{webpack:()=>[75122]},ssr:!1}),I=d()(()=>Promise.all([n.e(9002),n.e(1620)]).then(n.bind(n,71620)),{loadableGenerated:{webpack:()=>[71620]},ssr:!1}),z=d()(()=>Promise.all([n.e(9002),n.e(9910)]).then(n.bind(n,39910)),{loadableGenerated:{webpack:()=>[39910]},ssr:!1}),B=d()(()=>n.e(9273).then(n.bind(n,59273)),{loadableGenerated:{webpack:()=>[59273]}
1,ssr:!1}),A=e=>(0,o.A)(e,["updateHandbookData","handbookData","currentStepValidationError","validationErrorStepKey","validationErrorSubtopicId","isUpdateOnly"]),q=e=>{var t,n,l,o,i;let{stepKey:s}=e,{updateHandbookData:d,handbookData:p,currentStepValidationError:m,validationErrorStepKey:g,validationErrorSubtopicId:k,isUpdateOnly:j}=(0,a.T)(A),C=c.dz[s],S=null==C?void 0:C.isRequired,N="existingHandbook"===s&&j,L=N?"Upload Handbook":null==C||null==(t=C.fieldSet)?void 0:t.title,E=null!=(o=null==C||null==(n=C.fieldSet)?void 0:n.optionalSubTitle)?o:"Optional",W=N?[]:null!=(i=null==C||null==(l=C.fieldSet)?void 0:l.toggleSections)?i:[],T=g!==s||"optionalPolicies"===s&&k?"":m,V="state"===s?(0,r.jsx)(D,{}):"optionalPolicies"===s?(0,r.jsx)(z,{}):null,H="vacationBenefits"===s?(0,r.jsx)(O,{}):"industry"===s?(0,r.jsx)(I,{}):"existingHandbook"===s?(0,r.jsx)(B,{}):null;return(0,r.jsxs)("fieldset",{className:"builder-section-content !p-0 flex flex-col gap-8",children:[(0,r.jsxs)("div",{className:"flex flex-col justify-center items-center",children:[(0,r.jsxs)("div",{className:"inline-flex flex-col items-stretch text-text-heading",children:[(0,r.jsxs)("div",{className:"flex items-start gap-2",children:[u[s]&&(0,r.jsx)("span",{className:"mt-1 flex items-center [&>svg]:w-6 [&>svg]:h-6",children:u[s]}),(0,r.jsx)("h2",{className:"text-2xl font-bold mb-0",children:L})]}),(0,r.jsx)("span",{className:"mt-2 h-[3px] w-full rounded-full bg-brand-light-blue"})]}),!S&&(0,r.jsx)("p",{className:"text-center text-base mt-2 mb-0 text-text-primary",children:E}),T&&(0,r.jsxs)("p",{role:"alert","aria-live":"polite",className:"!mb-0 mt-3 inline-flex max-w-lg items-center gap-1.5 rounded-md border border-red-100 bg-red-50 px-3 py-1.5 text-center text-sm font-medium leading-5 text-red-600",children:[(0,r.jsxs)("svg",{viewBox:"0 0 20 20",fill:"none",className:"h-4 w-4 flex-shrink-0","aria-hidden":"true",children:[(0,r.jsx)("circle",{cx:"10",cy:"10",r:"7.5",stroke:"currentColor"}),(0,r.jsx)("path",{d:"M10 6.5v4.25",stroke:"currentColor",strokeLinecap:"round"}),(0,r.jsx)("circle",{cx:"10",cy:"13.5",r:"0.75",fill:"currentColor"})]}),(0,r.jsx)("span",{children:T})]})]}),V,W.map(e=>(0,r.jsxs)("div",{"data-subtopic-id":e.fieldName,children:["radio"===e.type&&(0,r.jsx)(x,{name:"radio_".concat(e.fieldName),label:e.label,labelClassName:e.labelClassName,description:e.description,selectedValue:null===p[e.fieldName]?null:"".concat(p[e.fieldName]),onAccept:()=>{var t;let n={[e.fieldName]:!0};null==(t=e.additionalFieldsToToggle)||t.forEach(e=>{n[e]=!0}),d(n)},onDecline:()=>{var t;let n={[e.fieldName]:!1};null==(t=e.additionalFieldsToToggle)||t.forEach(e=>{n[e]=!1}),d(n)}}),"input"===e.type&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("p",{className:e.labelClassName,children:e.label}),(0,r.jsx)("input",{className:"form-control ".concat(e.inputClassName||"text-input"),name:e.fieldName,type:e.inputType||"text",placeholder:e.placeholder,value:"".concat(p[e.fieldName]),"data-testid":"input_".concat(e.inputType||"text","_").concat(e.fieldName),onChange:t=>d({[e.fieldName]:t.target.value})})]}),"select"===e.type&&(0,r.jsx)(b,{label:e.label,labelClassName:e.labelClassName,description:e.description,name:e.fieldName,selectedValue:p[e.fieldName],options:e.options,onChange:t=>d({[e.fieldName]:t})}),"textInput"===e.type&&(0,r.jsxs)("div",{className:"text-center",children:[(0,r.jsx)(h.L,{title:e.label,description:e.description,className:"mb-4"}),(0,r.jsx)("div",{className:"max-w-[350px] mx-auto",children:(0,r.jsx)(v,{name:e.fieldName,value:String(p[e.fieldName]||""),onChange:t=>d({[e.fieldName]:t}),placeholder:e.placeholder})})]}),"numberStepper"===e.type&&(0,r.jsxs)("div",{className:"text-center",children:[(0,r.jsx)(h.L,{title:e.label,description:e.description,className:"mb-4"}),(0,r.jsx)("div",{className:"max-w-[350px] mx-auto",children:(0,r.jsx)(w,{name:e.fieldName,value:p[e.fieldName]?parseInt(String(p[e.fieldName]),10):null,onChange:t=>d({[e.fieldName]:t}),min:e.min,max:e.max,step:e.step,placeholder:"Enter a number"})})]}),(0,r.jsx)("div",{className:!0===p[e.fieldName]?"fade-enter-active":"fade-exit-active pointer-events-none",children:(0,r.jsxs)("div",{className:"min-h-0 [&>
1*]:mt-8",children:[!!e.selectorToShowWhenEnabled&&(0,r.jsx)("div",{"data-subtopic-id":e.selectorToShowWhenEnabled.fieldName,children:(0,r.jsx)(b,{label:e.selectorToShowWhenEnabled.label,labelClassName:e.selectorToShowWhenEnabled.labelClassName,description:e.selectorToShowWhenEnabled.description,name:e.selectorToShowWhenEnabled.name||e.selectorToShowWhenEnabled.fieldName,selectedValue:p[e.selectorToShowWhenEnabled.fieldName],options:e.selectorToShowWhenEnabled.options,onChange:t=>{var n;return d({[null==(n=e.selectorToShowWhenEnabled)?void 0:n.fieldName]:t})},size:"md"})}),!!e.checkboxesToShowWhenEnabled&&(0,r.jsx)("div",{"data-subtopic-id":e.checkboxesToShowWhenEnabled.fieldName,children:(0,r.jsx)(f,{label:e.checkboxesToShowWhenEnabled.label,labelClassName:e.checkboxesToShowWhenEnabled.labelClassName,description:e.checkboxesToShowWhenEnabled.description,name:e.checkboxesToShowWhenEnabled.name||e.checkboxesToShowWhenEnabled.fieldName,selectedValues:p[e.checkboxesToShowWhenEnabled.fieldName],options:e.checkboxesToShowWhenEnabled.options,onChange:t=>{var n,r;let l=p[e.checkboxesToShowWhenEnabled.fieldName];(null==l?void 0:l.includes(t))?d({[null==(n=e.checkboxesToShowWhenEnabled)?void 0:n.fieldName]:l.filter(e=>e!==t)}):d({[null==(r=e.checkboxesToShowWhenEnabled)?void 0:r.fieldName]:[...l||[],t]})}})}),!!e.inputToShowWhenEnabled&&(0,r.jsxs)("div",{"data-subtopic-id":e.inputToShowWhenEnabled.fieldName,children:[!!e.inputToShowWhenEnabled.label&&(0,r.jsx)("p",{className:e.inputToShowWhenEnabled.labelClassName,children:e.inputToShowWhenEnabled.label}),(0,r.jsx)("input",{className:"form-control small-input",name:e.inputToShowWhenEnabled.fieldName||e.inputToShowWhenEnabled.name,value:p[e.inputToShowWhenEnabled.fieldName],type:e.inputToShowWhenEnabled.inputType,placeholder:e.inputToShowWhenEnabled.placeholder,onChange:t=>{var n;return d({[null==(n=e.inputToShowWhenEnabled)?void 0:n.fieldName]:t.target.value})}})]}),!!e.textAreaToShowWhenEnabled&&(0,r.jsxs)("div",{"data-subtopic-id":e.textAreaToShowWhenEnabled.fieldName,children:[!!e.textAreaToShowWhenEnabled.title&&(0,r.jsx)(h.L,{title:e.textAreaToShowWhenEnabled.title,description:e.textAreaToShowWhenEnabled.description,className:"mb-4"}),(0,r.jsx)("textarea",{cols:28,rows:6,className:"builder-resizable-textarea block !mb-0 !mx-auto text-center",name:e.textAreaToShowWhenEnabled.fieldName,value:p[e.textAreaToShowWhenEnabled.fieldName],onChange:t=>{var n;return d({[null==(n=e.textAreaToShowWhenEnabled)?void 0:n.fieldName]:t.target.value})}})]}),!!e.tagListToShowWhenEnabled&&(0,r.jsxs)("div",{"data-subtopic-id":e.tagListToShowWhenEnabled.fieldName,children:[!!e.tagListToShowWhenEnabled.title&&(0,r.jsx)(h.L,{title:e.tagListToShowWhenEnabled.title,description:e.tagListToShowWhenEnabled.description,className:"mb-4"}),(0,r.jsx)(y.JV,{name:e.tagListToShowWhenEnabled.fieldName,holidays:(0,y.m_)(String(p[e.tagListToShowWhenEnabled.fieldName]||"")),onChange:t=>{var n;return d({[null==(n=e.tagListToShowWhenEnabled)?void 0:n.fieldName]:(0,y.bf)(t)})},placeholder:e.tagListToShowWhenEnabled.placeholder})]})]})})]},e.label)),H]})};var K=n(19588),U=n(97280);let R=e=>{let{state:t}=e;return"complete"===t?(0,r.jsx)("span",{className:"flex h-4 w-4 items-center justify-center rounded-full bg-brand-blue",children:(0,r.jsx)("svg",{viewBox:"0 0 8 6",fill:"none",className:"h-2.5 w-2.5",children:(0,r.jsx)("path",{d:"M2.3535 4.1465L0.707 2.5L0 3.207L2.3535 5.5605L7.207 0.707L6.5 0L2.3535 4.1465Z",fill:"white"})})}):"current"===t?(0,r.jsx)("span",{className:"flex items-center justify-center w-4 h-4 rounded-full border-2 border-brand-blue",children:(0,r.jsx)("span",{className:"w-1.5 h-1.5 rounded-full bg-brand-blue"})}):(0,r.jsx)("span",{className:"block w-4 h-4 rounded-full border-2 border-gray-300"})},P=(e,t)=>{var n,r;return"optionalPolicies"===e?[...null!=(n=c.Gr[e])?n:[],...(0,K.h$)(t)]:null!=(r=c.Gr[e])?r:[]},F=(e,t,n,r)=>{let l=P(e,r).filter(e=>!e.isVisible||e.isVisible(t));return l.length>0&&l.every(e=>e.isComplete(t))?"complete":e===n?"current":"pending"},Z=(e,t)=>{let n=null==e?void 0:e.parentElement;if(!e||!n||!t||"function"!=typeof n.scrollBy)return;let r=n.getBoundingClientRect(),l=t.getBoundingClientRect(),o=l.top+l.height/2-(r.top+r.height/2);Math.abs(o)>.2*r.height&&n.scrollBy({top:o})},J=function(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:320,l=e.scrollTop,o=t-l;if(1>Math.abs(o))return void n();let i=null,a=t=>{null===i&&(i=t);let s=Math.min(1,(t-i)/r);e.scrollTop=l+o*(1-Math.pow(1-s,3)),s<1?requestAnimationFrame(a):n()};requestAnimationFrame(a)},G=e=>{let{state:t,showTop:n,showBottom:l}=e;return(0,r.jsxs)("span",{className:"relative flex w-6 flex-shrink-0 self-stretch",children:[n&&(0,r.jsx)("span",{className:"absolute left-3 top-0 h-[8px] w-px bg-gray-300"}),l&&(0,r.jsx)("span",{className:"absolute left-3 top-[36px] bottom-0 w-px bg-gray-300"}),(0,r.jsx)("span",{className:"absolute left-3 top-3 -translate-x-1/2 z-10 flex h-5 items-center bg-white",children:(0,r.jsx)(R,{state:t})})]})},Q=e=>{let{state:t,nested:n,railBelow:l}=e;return(0,r.jsxs)("span",{className:"relative flex flex-shrink-0 self-stretch ".concat(n?"w-[76px]":"w-12"),children:[(0,r.jsx)("span",{className:"absolute left-3 top-0 bottom-0 w-px bg-gray-300"}),(0,r.jsx)("span",{className:"absolute ".concat(n?"left-10":"left-3"," top-0 h-[17px] w-2 rounded-bl-lg border-b border-l border-gray-300")}),l&&(0,r.jsx)("span",{className:"absolute left-10 ".concat(n?"top-0":"top-[26px]"," bottom-0 w-px bg-gray-300")}),(0,r.jsx)("span",{className:"absolute right-0 top-2 z-10 flex h-[18px] items-center bg-white",children:(0,r.jsx)(R,{state:t})})]})},Y=e=>{let{showTop:t,state:n}=e;return(0,r.jsxs)("span",{className:"relative flex w-6 flex-shrink-0 self-stretch",children:[t&&(0,r.jsx)("span",{className:"absolute left-3 top-0 h-[8px] w-px bg-gray-300"}),(0,r.jsx)("span",{className:"absolute left-3 top-3 -translate-x-1/2 z-10 flex h-5 items-center bg-white",children:(0,r.jsx)(R,{state:n})})]})},$=e=>(0,o.A)(e,["activeSectionKey","activeSubtopicId","handbookData","isUpdateOnly","requestScrollToStep","setActiveSectionKey","setActiveSubtopic","pauseScrollSpy","cmsOptionalPolicies"]),X=function(){let{onNavigate:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{activeSectionKey:t,activeSubtopicId:n,handbookData:o,isUpdateOnly:i,requestScrollToStep:s,setActiveSectionKey:d,setA
1ctiveSubtopic:p,pauseScrollSpy:h,cmsOptionalPolicies:x}=(0,a.T)($),[m,b]=(0,l.useState)({}),f=(0,l.useRef)(null);(0,l.useEffect)(()=>{b(e=>({...e,[t]:!0}))},[t]),(0,l.useEffect)(()=>{let e=f.current;if(!e)return;let r=n&&e.querySelector('[data-subtopic-row="'.concat(t,":").concat(n,'"]'))||e.querySelector('[data-section-row="'.concat(t,'"]'));Z(e,r)},[t,n,m]);let v=(i?c.fE:c.qV).filter(e=>"confirm"!==e),g=e=>{var n;return null!=(n=m[e])?n:e===t},w=(t,n)=>{h(),p(t,n),b(e=>({...e,[t]:!0})),null==e||e(),requestAnimationFrame(()=>{var e;let r=document.querySelector('[data-subtopic-id="'.concat(n,'"]'));if(!r)return void s(t);null==(e=r.querySelector('input:not([type="hidden"]), select, textarea, button'))||e.focus({preventScroll:!0});let l=r.closest("[data-scroll-container]");if(l){let e=l.getBoundingClientRect(),o=r.getBoundingClientRect();if(o.top<e.top||o.bottom>e.bottom){let r=Math.max(0,l.scrollTop+(o.top-e.top)-.22*l.clientHeight);J(l,r,()=>p(t,n))}}})};return(0,r.jsxs)("nav",{ref:f,className:"!py-2 !px-4 text-sm","aria-label":"Handbook sections",children:[v.map((l,i)=>{var a,p;let h=P(l,x),m=l===t,f=g(l),y=i>0&&g(v[i-1]),k=F(l,o,t,x),j=h.findIndex(e=>(!e.isVisible||e.isVisible(o))&&!e.isComplete(o));return(0,r.jsxs)("div",{children:[(0,r.jsxs)("div",{className:"flex items-stretch","data-section-row":l,children:[(0,r.jsxs)("button",{type:"button",onClick:()=>(t=>{let n=P(t,x).find(e=>!e.isVisible||e.isVisible(o));if(n)return void w(t,n.id);d(t),s(t),b(e=>({...e,[t]:!0})),null==e||e()})(l),className:"flex items-stretch flex-1 min-w-0 text-left",children:[(0,r.jsx)(G,{state:k,showTop:i>0&&!y,showBottom:!0}),(0,r.jsxs)("span",{className:"flex-1 flex items-start gap-1 !py-3 !pl-2 min-w-0 ".concat(m?"text-brand-blue":"text-text-primary"),children:[u[l]&&(0,r.jsx)("span",{className:"flex h-[20px] items-center flex-shrink-0",children:u[l]}),(0,r.jsx)("span",{className:"text-lg leading-[20px] ".concat(m?"font-semibold":""),children:null==(p=c.dz[l])||null==(a=p.fieldSet)?void 0:a.title})]})]}),h.length>0&&(0,r.jsx)("button",{type:"button",onClick:()=>b(e=>({...e,[l]:!g(l)})),className:"flex items-center pl-1 text-gray-400 hover:text-gray-600","aria-label":f?"Collapse section":"Expand section",children:(0,r.jsx)("span",{className:"inline-flex transition-transform duration-200 [&>svg]:w-4 [&>svg]:h-4 ".concat(f?"":"-rotate-90"),children:(0,r.jsx)(U.D3,{})})})]}),f&&h.length>0&&(0,r.jsx)("div",{className:"flex flex-col",children:h.map((e,t)=>{let i=!e.isVisible||e.isVisible(o),a=h.slice(t+1).find(e=>!e.isVisible||e.isVisible(o)),s=e.isComplete(o),d=i&&m&&(n?e.id===n:t===j);return(0,r.jsx)("div",{className:i?"fade-enter-active":"fade-exit-active pointer-events-none",children:(0,r.jsx)("div",{className:"min-h-0",children:(0,r.jsxs)("button",{type:"button",onClick:()=>w(l,e.id),"data-subtopic-row":"".concat(l,":").concat(e.id),className:"flex w-full items-stretch text-left text-[15px] min-w-0",children:[(0,r.jsx)(Q,{state:s?"complete":d?"current":"pending",nested:e.indent,railBelow:!!(null==a?void 0:a.indent)}
1),(0,r.jsx)("span",{className:"flex-1 !py-2 !pl-2 !pr-4 min-w-0 leading-[18px]",children:(0,r.jsx)("span",{className:d?"text-brand-blue font-medium":"text-text-primary",children:e.title})})]})})},e.id)})})]},l)}),(0,r.jsxs)("button",{type:"button",onClick:()=>{s("confirm"),null==e||e()},"data-section-row":"confirm",className:"flex items-stretch w-full text-left",children:[(0,r.jsx)(Y,{showTop:v.length>0&&!g(v[v.length-1]),state:"confirm"===t?"current":"pending"}),(0,r.jsxs)("span",{className:"flex-1 flex items-start gap-1 !py-3 !pl-2 min-w-0 ".concat("confirm"===t?"text-brand-blue":"text-text-primary"),children:[u.confirm&&(0,r.jsx)("span",{className:"flex h-[20px] items-center flex-shrink-0",children:u.confirm}),(0,r.jsx)("span",{className:"text-lg leading-[20px] ".concat("confirm"===t?"font-semibold":""),children:"Create your Handbook"})]})]})]})},ee=e=>(0,o.A)(e,["activeSectionKey","handbookData","isUpdateOnly","requestScrollToStep","setActiveSectionKey","cmsOptionalPolicies"]),et=()=>{var e,t;let{activeSectionKey:n,handbookData:o,isUpdateOnly:i,requestScrollToStep:s,setActiveSectionKey:d,cmsOptionalPolicies:p}=(0,a.T)(ee),h=(0,l.useRef)(null),[x,m]=(0,l.useState)(null),b=[...(i?c.fE:c.qV).filter(e=>"confirm"!==e),"confirm"];(0,l.useEffect)(()=>{let e=h.current;e&&Z(e,e.querySelector('[data-rail-row="'.concat(n,'"]')))},[n]);let f=x?"confirm"===x.key?"Create your Handbook":null==(t=c.dz[x.key])||null==(e=t.fieldSet)?void 0:e.title:"",v=x?P(x.key,p).filter(e=>!e.isVisible||e.isVisible(o)).map(e=>({id:e.id,title:e.title,indent:e.indent,complete:e.isComplete(o)}
1)):[];return(0,r.jsxs)("nav",{ref:h,className:"flex flex-col !py-2","aria-label":"Handbook sections",children:[b.map((e,t)=>{var l,i;let a=e===n,h="confirm"===e?a?"current":"pending":F(e,o,n,p);return(0,r.jsxs)("button",{type:"button","data-rail-row":e,onMouseEnter:t=>((e,t)=>{let n=t.currentTarget.getBoundingClientRect();m({key:e,top:n.top,left:n.right+8})})(e,t),onMouseLeave:()=>m(null),onClick:()=>(e=>{d(e),s(e)})(e),className:"relative flex h-11 items-center gap-1.5 px-2","aria-label":"confirm"===e?"Create your Handbook":null==(i=c.dz[e])||null==(l=i.fieldSet)?void 0:l.title,children:[(0,r.jsxs)("span",{className:"relative flex w-5 flex-shrink-0 self-stretch justify-center",children:[t>0&&(0,r.jsx)("span",{className:"absolute left-1/2 top-0 h-1/2 w-px -translate-x-1/2 bg-gray-300"}),t<b.length-1&&(0,r.jsx)("span",{className:"absolute left-1/2 bottom-0 h-1/2 w-px -translate-x-1/2 bg-gray-300"}),(0,r.jsx)("span",{className:"absolute left-1/2 top-1/2 z-10 flex -translate-x-1/2 -translate-y-1/2 bg-white",children:(0,r.jsx)(R,{state:h})})]}),(0,r.jsx)("span",{className:"flex h-[18px] items-center [&>svg]:h-[18px] [&>svg]:w-[18px] ".concat(a?"text-brand-blue":"text-text-primary"),children:u[e]})]},e)}),x&&(0,r.jsxs)("div",{className:"pointer-events-none fixed z-50 w-60 rounded-lg border border-gray-200 bg-white p-3 shadow-lg",style:{top:x.top,left:x.left},children:[(0,r.jsxs)("div",{className:"flex items-center gap-2 text-text-primary",children:[(0,r.jsx)("span",{className:"flex h-[18px] items-center [&>svg]:h-[18px] [&>svg]:w-[18px]",children:u[x.key]}),(0,r.jsx)("span",{className:"text-[15px] font-semibold",children:f})]}),v.length>0&&(0,r.jsx)("div",{className:"mt-2 flex flex-col gap-2 pl-1",children:v.map(e=>(0,r.jsxs)("div",{className:"flex items-start gap-2 text-[13px] text-text-primary ".concat(e.indent?"pl-4":""),children:[(0,r.jsx)("span",{className:"mt-px flex-shrink-0",children:(0,r.jsx)(R,{state:e.complete?"complete":"pending"})}),(0,r.jsx)("span",{className:"leading-[18px]",children:e.title})]},e.id))})]})]})};var en=n(59691),er=n(24817),el=n(76516),eo=n(15639),ei=n(44285),ea=n(60836),es=n(8799),ed=n(19956),ec=n(29353);let eu={new:{title:"Save your progress",description:"Enter your email address and we’ll send you a verification code. Once verified, your answers will stay saved so you can continue where you left off."},update_only:{title:"Sign in to upload your handbook",description:"Enter your email address and we’ll send you a verification code. Once verified, you can securely upload your handbook and continue."}},ep=e=>({activeSectionKey:e.activeSectionKey,isUpdateOnly:e.isUpdateOnly}),eh=c.qV.indexOf("industry"),ex=c.fE.indexOf("existingHandbook"),em=e=>{let t="".concat((null==e?void 0:e.code)||""," ").concat((null==e?void 0:e.message)||"").toUpperCase();return t.includes("OTP_EXPIRED")?"That code has expired. Send a new code to continue.":t.includes("TOO_MANY_ATTEMPTS")?"Too many incorrect attempts. Send a new code to continue.":t.includes("SSO")||(null==e?void 0:e.status)===403?"Your organization requires single sign-on. Please use the standard login page.":"That code is incorrect. Check it and try again."},eb=async e=>{try{let t=await fetch("/api/auth/saml/check/",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:e}),signal:AbortSignal.timeout(3e3)}),n=await t.json();return(null==n?void 0:n.ssoEnabled)&&(null==n?void 0:n.forceSso)?n.initiateUrl||"/login/sso/":null}catch(e){return null}},ef=e=>{let{isOpen:t,onAuthenticated:n,builderMode:o="new"}=e,{reloadUser:i}=(0,el.J)(),[a,s]=(0,l.useState)("email"),[d,c]=(0,l.useState)("idle"),[u,p]=(0,l.useState)(""),[h,x]=(0,l.useState)(""),[m,b]=(0,l.useState)(null),f=(0,l.useRef)(!1),v=eu[o],g=u.trim().toLowerCase(),w="idle"!==d;(0,l.useEffect)(()=>{t&&!f.current&&(f.current=!0,(0,ea.UV)({step:"authentication_checkpoint",builderMode:o,direction:"forward"}))},[o,t]);let y=(0,l.useCallback)(async e=>{if(e.preventDefault(),!g||w)return;b(null),c("sending");let t=await eb(g);if(t){c("redirecting-sso"),window.location.assign(t);return}try{let e=await ed.y.emailOtp.sendVerificationOtp({email:g,type:"sign-in"});if(null==e?void 0:e.error){b((e=>"".concat((null==e?void 0:e.code)||""," ").concat((null==e?void 0:e.message)||"").toUpperCase().includes("SSO")||(null==e?void 0:e.status)===403?"Your organization requires single sign-on. Please use the standard login page.":"We couldn’t send the code. Please try again.")(e.error)),c("idle");return}x(""),s("verification"),c("idle")}catch(e){b("We couldn’t send the code. Please try again."),c("idle")}},[w,g]),k=(0,l.useCallback)(async e=>{if(e.preventDefault(),6===h.length&&!w){b(null),c("verifying");try{var t;let e=await ed.y.signIn.emailOtp({email:g,otp:h});if((null==e?void 0:e.error)||!(null==e||null==(t=e.data)?void 0:t.user)){b(em(null==e?void 0:e.error)),c("idle");return}try{await i();let e=es.M.getState();e.reset(),await e.loadWorkspaces(!0)}catch(e){console.error("Could not immediately hydrate the verified builder account",e)}(0,ea.Jv)({step:"authentication_checkpoint",builderMode:o,direction:"forward"}),n()}catch(e){b(em(e)),c("idle")}}},[o,w,g,n,h,i]);return t?(0,r.jsx)("div",{className:"absolute inset-0 z-[70] flex items-center justify-center overflow-y-auto bg-white/75 p-4 backdrop-blur-[1px] sm:p-8",children:(0,r.jsx)("div",{role:"dialog","aria-modal":"true","aria-labelledby":"builder-auth-checkpoint-title",className:"relative w-full max-w-[466px] rounded-xl bg-white px-6 py-8 shadow-[0_8px_30px_rgba(0,0,0,0.16)] sm:px-12 sm:py-10",children:"email"===a?(0,r.jsxs)("form",{onSubmit:y,children:[(0,r.jsx)("h2",{id:"builder-auth-checkpoint-title",className:"!mb-2 text-center text-2xl font-bold text-text-heading",children:v.title}),(0,r.jsx)("p",{className:"!mb-7 text-center text-sm leading-5 text-text-secondary",children:v.description}),(0,r.jsx)("label",{htmlFor:"builder-checkpoint-email",className:"!mb-2 block text-center text-base font-medium text-text-primary",children:"Email address"}),(0,r.jsx)("input",{id:"builder-checkpoint-email",type:"email",value:u,onChange:e=>{p(e.target.value),b(null)},placeholder:"[email protected]",autoComplete:"email",className:ec.Jf,disabled:w,autoFocus:!0,required:!0}),m?(0,r.jsx)("p",{role:"alert",className:"!mb-0 !mt-3 text-center text-[13px] text-red-600",children:m}):null,(0,r.jsx)(en.WQ,{type:"submit",variant:"primary",disabled:!g||w,className:"!mt-3 w-full !px-4",children:"sending"===d?"Sending code…":"redirecting-sso"===d?"Taking you to SSO…":"Send code"})]}):(0,r.jsxs)("form",{onSubmit:k,children:[(0,r.jsx)("h2",{id:"builder-auth-checkpoint-title",className:"!mb-6 text-center text-2xl font-bold text-text-heading",children:"Verify your email"}),(0,r.jsx)("div",{className:"mx-auto !mb-4 flex h-12 w-12 items-center justify-center rounded-md bg-brand-light-blue text-brand-blue",children:(0,r.jsxs)("svg",{viewBox:"0 0 48 48",fill:"none",className:"h-9 w-9","aria-hidden":"true",children:[(0,r.jsx)("circle",{cx:"24",cy:"24",r:"17",stroke:"currentColor",strokeWidth:"2.5"}),(0,r.jsx)("path",{d:"m17.5 24 4.3 4.3 9-9",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round"})]})}),(0,r.jsxs)("p",{className:"!mb-7 text-center text-base font-semibold leading-6 text-text-heading",children:["We’ve sent a verification code to your email.",(0,r.jsx)("br",{}),"Check your inbox."]}),(0,r.jsx)("label",{htmlFor:"builder-checkpoint-otp",className:"!mb-2 block text-center text-base font-medium text-text-primary",children:"Verification code"}),(0,r.jsx)("input",{id:"builder-checkpoint-otp",type:"text",inputMode:"numeric",pattern:"[0-9]{6}",maxLength:6,autoComplete:"one-time-code",value:h,onChange:e=>{x(e.target.value.replace(/\D/g,"").slice(0,6)),b(null)},placeholder:"Enter 6 digit code",className:"".concat(ec.Jf," text-center text-lg"),disabled:w,autoFocus:!0,required:!0}),m?(0,r.jsx)("p",{role:"alert",className:"!mb-0 !mt-3 text-center text-[13px] text-red-600",children:m}):null,(0,r.jsx)(en.WQ,{type:"submit",variant:"primary",disabled:6!==h.length||w,className:"!mt-3 w-full !px-4",children:"verifying"===d?"Verifying…":"Verify and continue"}),(0,r.jsx)("button",{type:"button",onClick:()=>{s("email"),x(""),b(null)},disabled:w,className:"!mt-3 !block !w-full !border-0 !bg-transparent !p-0 text-center text-sm font-semibold !text-brand-blue hover:!bg-transparent hover:underline disabled:!opacity-60",children:"Use a different email"})]})})}):null},ev=e=>{let{enabled:t=!0}=e,{activeSectionKey:n,isUpdateOnly:o}=(0,a.T)(ep),{user:i,isLoading:s}=(0,el.J)(),d=null==i?void 0:i.id,[u,p]=(0,l.useState)(!1);(0,l.useEffect)(()=>{d||p(!1)},[d]);let h=t&&!s&&!d&&!u&&(o?c.fE.indexOf(n)>=ex:c.qV.indexOf(n)>=eh);return(0,r.jsx)(ef,{isOpen:h,onAuthenticated:()=>p(!0),builderMode:o?"update_only":"new"})},eg=e=>e.activeSectionKey,ew=e=>{let{isUpdateOnly:t}=e,n=(0,a.T)(eg),r=(0,l.useRef)(new Set);return(0,l.useEffect)(()=>{let e="".concat(t?"update_only":"new",":").concat(n);r.current.has(e)||(r.current.add(e),(0,ea.UV)({step:n,builderMode:t?"update_only":"new",direction:"forward"}))},[n,t]),null},ey="builder-section-",ek=e=>(0,o.A)(e,["isUpdateOnly","validateAllSteps","setHasConfirmed","onCloseModal","isUploadingExistingHandbooks"]),ej=()=>{let{isUpdateOnly:e,validateAllSteps:t,setHasConfirmed:n,onCloseModal:l,isUploadingExistingHandbooks:o}=(0,a.T)(ek),s=(0,i.useRouter)(),{user:d}=(0,el.J)(),c=(0,eo.s)();return(0,r.jsxs)("div",{"data-subtopic-id":"confirm",className:"flex flex-col items-center text-center gap-4",children:[(0,r.jsx)("div",{className:"flex flex-col items-center",children:(0,r.jsxs)("div",{className:"inline-flex flex-col items-stretch text-text-heading",children:[(0,r.jsxs)("div",{className:"flex items-start gap-2",children:[(0,r.jsx)("span",{className:"mt-1 flex items-center [&>svg]:w-6 [&>svg]:h-6",children:u.confirm}),(0,r.jsx)("h2",{className:"text-2xl font-bold mb-0",children:e?"Confirm choices for your handbook update":"Review & create your handbook"})]}),(0,r.jsx)("span",{className:"mt-2 h-[3px] w-full rounded-full bg-brand-light-blue"})]})}),(0,r.jsx)(h.L,{title:e?"Ready to confirm your answers to submit your handbook to be updated?":"Ready to confirm your answers to create your handbook?",description:"Review your selections one last time and confirm to generate your finished handbook.",className:"w-full"}),(0,r.jsx)(en.WQ,{variant:"primary",disabled:o,onClick:()=>{t()||(n(!0),null==l||l(),s.push(d?"".concat(c,"/"):"/new-signup/"))},children:e?"Submit Handbook":"Create Handbook"})]})},eC=e=>(0,o.A)(e,["isUpdateOnly","setIsUpdateOnly","setOnCloseModal","setActiveSubtopic","requestedScrollKey","validationErrorSubtopicId","requestScrollToStep","pauseScrollSpy","resumeScrollSpy","synchronizeDraftOwner"]),eS=e=>{let{isUpdateOnly:t=!1,onClose:n,inModal:o=!1}=e,{isUpdateOnly:i,setIsUpdateOnly:s,setOnCloseModal:d,setActiveSubtopic:u,requestedScrollKey:p,validationErrorSubtopicId:h,requestScrollToStep:x,pauseScrollSpy:m,resumeScrollSpy:b,synchronizeDraftOwner:f}=(0,a.T)(eC),{user:v,isLoading:g}=(0,el.J)(),w=(0,l.useRef)(null),y=(0,l.useRef)(null),[k,j]=(0,l.useState)(!1),[C,S]=(0,l.useState)(!1),[N,L]=(0,l.useState)(!1),[E,W]=(0,l.useState)(!1),[T,V]=(0,l.useState)(!1),H=e=>{let t=y.current;t&&t.scrollBy({top:.8*t.clientHeight*("up"===e?-1:1),behavior:"smooth"})};(0,l.useEffect)(()=>{s(t)},[t,s]),(0,l.useEffect)(()=>{d(n)},[n,d]),(0,l.useEffect)(()=>{g||f(null==v?void 0:v.id)},[null==v?void 0:v.id,g,f]);let M=(i?c.fE:c.qV).filter(e=>"confirm"!==e),_=M.join(",");return(0,l.useEffect)(()=>{let e=y.current;if(!e)return;let t=()=>{W(e.scrollTop>5),V(e.scrollTop+e.clientHeight<e.scrollHeight-5)};e.addEventListener("scroll",t,{passive:!0}),window.addEventListener("resize",t);let n="undefined"==typeof ResizeObserver?null:new ResizeObserver(t);return null==n||n.observe(e),e.firstElementChild&&(null==n||n.observe(e.firstElementChild)),t(),()=>{e.removeEventListener("scroll",t),window.removeEventListener("resize",t),null==n||n.disconnect()}},[_]),(0,l.useEffect)(()=>{let e=w.current;if(!e)return;let t=()=>{S(e.scrollTop>5),L(e.scrollTop+e.clientHeight<e.scrollHeight-5)},n=e=>{var t;let n=(e=>{var t,n;return null!=(n=null==(t=e.closest('[id^="'.concat(ey,'"]')))?void 0:t.id.replace(ey,""))?n:null})(e),r=null!=(t=e.dataset.subtopicId)?t:null;if(!n)return;let l=a.T.getState();(l.activeSectionKey!==n||l.activeSubtopicId!==r)&&u(n,r)},r=()=>
1{if(a.T.getState().spyPaused)return;let t=Array.from(e.querySelectorAll("[data-subtopic-id]")).filter(e=>!e.closest(".fade-exit-active"));if(!t.length)return;if(e.scrollHeight-e.scrollTop-e.clientHeight<2)return void n(t[t.length-1]);let r=e.getBoundingClientRect().top+.22*e.clientHeight,l=t[0];for(let e of t)if(e.getBoundingClientRect().top<=r)l=e;else break;n(l)},l=0,o=()=>{l||(l=requestAnimationFrame(()=>{l=0,r(),t()}))};e.addEventListener("scroll",o,{passive:!0});let i=()=>{a.T.getState().spyPaused&&b()};e.addEventListener("wheel",i,{passive:!0}),e.addEventListener("touchmove",i,{passive:!0}),window.addEventListener("resize",t);let s="undefined"==typeof ResizeObserver?null:new ResizeObserver(t);return null==s||s.observe(e),e.firstElementChild&&(null==s||s.observe(e.firstElementChild)),r(),t(),()=>{e.removeEventListener("scroll",o),e.removeEventListener("wheel",i),e.removeEventListener("touchmove",i),window.removeEventListener("resize",t),null==s||s.disconnect(),l&&cancelAnimationFrame(l)}},[_,u,b]),(0,l.useEffect)(()=>{let e=w.current;if(!e)return;let t=e=>{var t,n;let r=e.target,l=null==r?void 0:r.closest('[id^="'.concat(ey,'"]'));if(!l)return;let o=null!=(n=null==r||null==(t=r.closest("[data-subtopic-id]"))?void 0:t.dataset.subtopicId)?n:null;u(l.id.replace(ey,""),o)};return e.addEventListener("focusin",t),()=>e.removeEventListener("focusin",t)},[u]),(0,l.useEffect)(()=>{if(!p)return;let e=document.getElementById("".concat(ey).concat(p));if(x(null),!e)return;let t=h?Array.from(e.querySelectorAll("[data-subtopic-id]")).find(e=>e.dataset.subtopicId===h):null;m(),(t||e).scrollIntoView({behavior:"smooth",block:t?"center":"start"})},[p,h,x,m]),(0,r.jsxs)("div",{className:"msform form-group relative flex flex-col ".concat(o?"in-modal h-full":"h-full"),children:[(0,r.jsx)(er.r,{title:i?"Upload a custom handbook for review":"New Handbook",icon:(0,r.jsx)(U.lg,{}),showCloseButton:!!n,onClose:n,className:"bg-brand-light-blue flex-shrink-0",leftAction:(0,r.jsx)("button",{type:"button",onClick:()=>j(e=>!e),"aria-label":"Toggle sections",className:"md:hidden -ml-1 flex h-8 w-8 items-center justify-center rounded-lg ".concat(k?"bg-brand-blue text-white":"text-text-primary"),children:(0,r.jsx)("svg",{viewBox:"0 0 24 24",fill:"none",className:"h-5 w-5",children:(0,r.jsx)("path",{d:"M4 7h16M4 12h16M4 17h16",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"})})})}),(0,r.jsxs)("div",{className:"relative flex flex-1 min-h-0 ".concat(o?"sm:max-h-[calc(90vh-120px)]":""),children:[(0,r.jsxs)("aside",{className:"relative hidden w-[320px] flex-shrink-0 flex-col overflow-hidden lg:flex",children:[E&&(0,r.jsx)(ei.x,{edge:"top",onClick:()=>H("up"),ariaLabel:"Scroll up through handbook sections"}),(0,r.jsx)("div",{ref:y,className:"min-h-0 flex-1 overflow-y-auto scrollbar-subtle",children:(0,r.jsx)(X,{})}),T&&(0,r.jsx)(ei.x,{edge:"bottom",onClick:()=>H("down"),ariaLabel:"Scroll down through handbook sections"})]}),(0,r.jsx)("aside",{className:"hidden md:flex lg:hidden flex-col w-16 flex-shrink-0 overflow-y-auto scrollbar-hide",children:(0,r.jsx)(et,{})}),(0,r.jsxs)("div",{className:"relative min-w-0 flex-1 overflow-hidden",children:[C&&(0,r.jsx)(ei.x,{edge:"top"}),(0,r.jsx)("div",{ref:w,"data-scroll-container":!0,className:"h-full overflow-y-auto overflow-x-hidden scrollbar-subtle",children:(0,r.jsxs)("form",{id:"handbook-builder-form",className:"flex flex-col",children:[M.map(e=>(0,r.jsx)("section",{id:"".concat(ey).concat(e),className:"builder-section relative !pl-7 !pr-7 !py-[38px] scroll-mt-4 bg-no-repeat bg-bottom bg-[length:480px_1px] bg-[repeating-linear-gradient(to_right,#D1D5DB_0_12px,transparent_12px_20px)]",children:(0,r.jsx)(q,{stepKey:e})},e)),(0,r.jsx)("section",{id:"".concat(ey,"confirm"),className:"builder-section pl-7 pr-6 py-8",children:(0,r.jsx)(ej,{})})]})}),N&&(0,r.jsx)(ei.x,{edge:"bottom"})]}),k&&(0,r.jsxs)("div",{className:"md:hidden absolute inset-0 z-40",children:[(0,r.jsx)("div",{className:"absolute inset-0 bg-black/30",onClick:()=>j(!1)}),(0,r.jsx)("div",{className:"absolute inset-y-0 left-0 flex w-[300px] max-w-[85%] flex-col overflow-y-auto bg-white shadow-xl scrollbar-subtle",children:(0,r.jsx)(X,{onNavigate:()=>j(!1)})})]})]}),(0,r.jsx)(ew,{isUpdateOnly:t}),(0,r.jsx)(ev,{})]})}},34100:(e,t,n)=>{n.d(t,{A:()=>r});function r(e,t){let n={};for(let r of t)r in e&&(n[r]=e[r]);return n}},42335:(e,t,n)=>{n.d(t,{j:()=>o});var r=n(37876);n(14232);let l={xs:{button:"px-2 py-1 text-xs",pill:"inset-y-0.5 left-0.5",pillWidth:"w-[calc(50%-2px)]"},sm:{button:"px-4 py-2 text-base",pill:"inset-y-1 left-1",pillWidth:"w-[calc(50%-4px)]"},md:{button:"px-6 py-2 text-base",pill:"inset-y-1 left-1",pillWidth:"w-[calc(50%-4px)]"},lg:{button:"px-8 py-3 text-base",pill:"inset-y-1 left-1",pillWidth:"w-[calc(50%-4px)]"}},o=e=>{let{name:t,options:n,selectedValue:o,onChange:i,size:a="md",className:s="",disabled:d=!1}=e;n[0].value;
1let c=o===n[1].value;return(0,r.jsxs)("div",{className:"relative inline-grid grid-cols-2 border border-brand-blue rounded-full p-1 select-none ".concat(d?"opacity-50 cursor-not-allowed":"cursor-pointer"," ").concat(s),role:"radiogroup","aria-label":t,children:[(0,r.jsx)("div",{className:"absolute ".concat(l[a].pill," ").concat(l[a].pillWidth," bg-brand-blue rounded-full shadow-sm transition-transform duration-200 ease-out ").concat(null===o||""===o?"opacity-0":"opacity-100"," ").concat(c?"translate-x-full":"translate-x-0")}),n.map((e,n)=>{let s=o===e.value;return(0,r.jsx)("button",{type:"button",role:"radio","aria-checked":s,"data-testid":"toggle_".concat(t,"_").concat(e.value),onClick:()=>!d&&i(e.value),disabled:d,className:"\n              ".concat(l[a].button," relative z-10 font-semibold whitespace-nowrap rounded-full transition-colors duration-200\n              ").concat(s?"text-white":"text-text-default","\n              ").concat(d?"cursor-not-allowed":"","\n            "),children:e.label},"".concat(t,"_").concat(e.value))})]})}},44285:(e,t,n)=>{n.d(t,{x:()=>o});var r=n(37876),l=n(97280);let o=e=>{let{edge:t,onClick:n,ariaLabel:o}=e;return(0,r.jsx)("div",{"aria-hidden":!n||void 0,className:"pointer-events-none absolute left-0 right-0 z-10 flex flex-col items-center ".concat(n?"h-16":"h-8"," ").concat("top"===t?"top-0 justify-start pt-2":"bottom-0 justify-end pb-2"),style:{background:"top"===t?"linear-gradient(to bottom, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.6) 50%, rgba(255, 255, 255, 0) 100%)":"linear-gradient(to top, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.6) 50%, rgba(255, 255, 255, 0) 100%)"},children:n&&(0,r.jsx)("button",{type:"button",onClick:n,className:"pointer-events-auto cursor-pointer text-gray-400 transition-colors hover:text-gray-600 animate-float","aria-label":o||("top"===t?"Scroll to top":"Scroll to bottom"),children:(0,r.jsx)("span",{className:"top"===t?"inline-block rotate-180":"inline-block",children:(0,r.jsx)(l.D3,{})})})})}},55093:(e,t,n)=>{n.d(t,{JV:()=>d,bf:()=>s,m_:()=>a});var r=n(37876),l=n(14232),o=n(69241),i=n(97280);let a=e=>e?e.split(/[,\n]+/).map(e=>e.trim()).filter(Boolean):[],s=e=>e.join(",\n"),d=e=>{let{holidays:t,onChange:n,name:s="paidHolidayNames",placeholder:d="Type a holiday and press Enter",variant:c="builder"}=e,[u,p]=(0,l.useState)(""),h=(0,l.useRef)(null),x=()=>{let e=a(u);if(0===e.length)return;let r=new Set(t.map(e=>e.toLocaleLowerCase())),l=e.filter(e=>{let t=e.toLocaleLowerCase();return!r.has(t)&&(r.add(t),!0)});l.length>0&&n([...t,...l]),p("")},m=e=>{n(t.filter((t,n)=>n!==e))},b=(0,r.jsx)("input",{ref:h,type:"text",name:s,value:u,onChange:e=>p(e.target.value),onKeyDown:e=>{if("Enter"===e.key&&!e.nativeEvent.isComposing){e.preventDefault(),x();return}"Backspace"===e.key&&0===u.length&&t.length>0&&m(t.length-1)},onBlur:x,placeholder:d,autoComplete:"off",className:(0,o.A)("!m-0 !border-0 !bg-transparent !p-0 text-left text-text-primary outline-none placeholder:text-gray-400 focus:!outline-none focus:!ring-0","builder"===c?"w-full !max-w-none text-base":"w-[150px] !max-w-[150px] text-sm"),"data-testid":"holiday_tag_input_".concat(s)}),f=t.map((e,t)=>(0,r.jsxs)("span",{className:"inline-flex items-center justify-center gap-1 rounded-[3px] bg-[#F2F2F2] px-[6px] py-1 text-sm text-text-primary",children:[(0,r.jsx)("span",{children:e}),(0,r.jsx)("button",{type:"button",onClick:()=>m(t),className:"inline-flex flex-shrink-0 items-center justify-center text-gray-600 transition-colors hover:text-red-600 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-brand-blue","aria-label":"Remove ".concat(e),children:(0,r.jsx)(i.US,{size:"builder"===c?15:14})})]},"".concat(e,"-").concat(t)));return"compact"===c?(0,r.jsxs)("div",{className:"flex flex-wrap items-center gap-x-2 gap-y-2.5",children:[f,b]}):(0,r.jsxs)("div",{className:"mx-auto w-full max-w-[420px] cursor-text rounded-md border border-gray-200 bg-white !p-2.5 text-left transition-colors focus-within:border-brand-blue focus-within:ring-1 focus-within:ring-brand-blue",onClick:()=>{var e;return null==(e=h.current)?void 0:e.focus()},children:[b,t.length>0&&(0,r.jsx)("div",{className:"mt-[10px] flex flex-wrap gap-1.5",children:f})]})}},57409:(e,t,n)=>{n.d(t,{C1:()=>i,Sr:()=>a.S,D3:()=>r.D,vK:()=>o}),n(94696);var r=n(76524),l=n(37876);n(14232);let o=e=>{let{className:t="",size:n=20}=e;return(0,l.jsx)("svg",{width:n,height:n,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",className:t,"aria-hidden":"true",children:(0,l.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 5l7 7-7 7"})})},i=e=>{let{className:t="",size:n=16}=e;return(0,l.jsxs)("svg",{width:n,height:n,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",className:t,"aria-hidden":"true",children:[(0,l.jsx)("circle",{cx:"12",cy:"12",r:"10",strokeWidth:1.5}),(0,l.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M8 12l3 3l5-6"})]})};var a=n(58741)},58741:(e,t,n)=>{n.d(t,{S:()=>l});var r=n(37876);n(14232);let l=e=>{let{size:t=24,className:n=""}=e;return(0,r.jsx)("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:n,children:(0,r.jsx)("path",{d:"M20 6L9 17L4 12",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})}},59691:(e,t,n)=>{n.d(t,{$n:()=>c,WQ:()=>p,vx:()=>u});var r=n(37876),l=n(14232),o=n(48230),i=n.n(o);let a={primary:{filled:"bg-yellow-500 border-yellow-500 hover:text-yellow-500",outline:"text-yellow-500 border-yellow-500"},secondary:{filled:"bg-gray-800 border-gray-800 hover:text-gray-800",outline:"text-gray-800 border-gray-800"},accent:{filled:"bg-brand-blue border-brand-blue hover:text-brand-blue",outline:"text-brand-blue border-brand-blue"},warning:{filled:"bg-brown-500 border-brown-500 hover:text-brown-500",outline:"text-brown-500 border-brown-500"},danger:{filled:"bg-red-500 border-red-500 hover:text-red-500",outline:"text-red-500 border-red-500"}},s={sm:"px-3 py-1 text-sm",mid:"px-3.5 py-1.5 text-base",md:"px-4 py-2 text-base",lg:"px-6 py-3 text-lg"},d=(e,t)=>{var n,r;let l=[s[null!=(n=e.size)?n:"md"]],o=a[null!=(r=e.color)?r:"primary"];return"filled"===e.appearance?l.push("text-gray-100 hover:bg-white !border",o.filled):"outline"===e.appearance&&l.push("bg-white !border",o.outline),e.isRounded?l.push("rounded-full"):l.push("rounded-[5px]"),t&&l.push(t),l.join(" ")},c=e=>{let{appearance:t="filled",isRounded:n=!1,color:l="primary",size:o="md",className:i,...a}=e,s=d({appearance:t,isRounded:n,color:l,size:o},i);return(0,r.jsx)("button",{...a,className:s})},u=e=>{let{appearance:t="filled",isRounded:n=!1,color:l="primary",size:o="md",className:a,href:s,children:c,...u}=e,p=d({appearance:t,isRounded:n,color:l,size:o},a);return(0,r.jsx)(i(),{href:s,className:p,...u,children:c})},p=(0,l.forwardRef)((e,t)=>{let{variant:n="primary",children:l,className:o="",disabled:i,...a}=e;return(0,r.jsx)("button",{ref:t,type:"button",disabled:i,className:"".concat("\n      py-[10px] px-12 rounded-md text-lg font-medium\n      transition-colors duration-200\n      disabled:opacity-50 disabled:cursor-not-allowed\n    "," ").concat({primary:"\n        bg-brand-blue text-white\n        hover:opacity-90\n        disabled:hover:opacity-50\n      ",secondary:"\n        bg-white text-text-primary\n        border border-gray-200\n        hover:bg-gray-50\n        disabled:hover:bg-white\n      "}[n]," ").concat(o),...a,children:l})});p.displayName="BuilderButton"},76524:(e,t,n)=>{n.d(t,{D:()=>l});var r=n(37876);n(14232);let l=e=>{let{className:t="",size:n=20}=e;return(0,r.jsx)("svg",{width:n,height:n,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",className:t,"aria-hidden":"true",children:(0,r.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M19 9l-7 7-7-7"})})}},94696:(e,t,n)=>{n.d(t,{Z:()=>l});var r=n(37876);n(14232);let l=e=>{let{size:t=14,className:n="",color:l="#212529"}=e;return(0,r.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:t,viewBox:"0 0 18 18",fill:"none",className:n,children:[(0,r.jsx)("path",{d:"M9 14.25L3.75 9L9 3.75",stroke:l,strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,r.jsx)("path",{d:"M14.25 9H3.75",stroke:"#212529",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]})}}}]);

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.