PageSourceSearch

https://app.sourcehr.ai/chunk-EA4FPPOR.js

js sourcehr.ai collected 2026-10-05 14:43:54 UTC 11,626 bytes, 1 lines download raw bytes

1import{a as G}from"./chunk-JJVE2CBW.js";import{a as K}from"./chunk-LZOYNIL4.js";import{a as U}from"./chunk-SLH3S6HL.js";import"./chunk-JSWI7OU4.js";import"./chunk-ZHND4JXO.js";import"./chunk-ZNC4IUJ3.js";import{I as q,c as D,f as W,k as B,v as H}from"./chunk-5KAM2ZNB.js";import{$a as j,Aa as I,Ba as J,Bb as Q,Ca as C,Fa as v,Ga as d,J as S,N as A,O as y,Pb as $,Qa as m,Rb as R,Sa as P,T as u,U as f,Va as T,Wa as V,Xa as N,ga as a,ha as b,pa as x,ra as g,rb as E,sb as F,tb as z,xa as l,y as L,ya as s,za as M}from"./chunk-HBVT2ZLF.js";import{a as k,b as w}from"./chunk-AS3XJPEZ.js";var ee=i=>({active:i});function te(i,_){i&1&&(l(0,"div",9)(1,"div",10)(2,"span",11),m(3,"Loading..."),s()()())}function ne(i,_){if(i&1){let e=C();l(0,"label")(1,"input",29),v("change",function(n){let o=u(e).$implicit,r=d(2).$implicit,c=d(2);return f(c.onCheckboxChange(r.region_slug,o.slug,n))}),s(),m(2),s()}if(i&2){let e=_.$implicit,t=d(2).$implicit,n=d(2);a(),g("checked",n.isLocationSelected(t.region_slug,e.slug)),a(),P(" ",e.name," ")}}function ie(i,_){if(i&1){let e=C();l(0,"div",24)(1,"div",25),M(2,"img",26),l(3,"input",27),N("ngModelChange",function(n){u(e);let o=d().$implicit;return V(o.searchQuery,n)||(o.searchQuery=n),f(n)}),s()(),l(4,"div",28),x(5,ne,3,2,"label",12),s()()}if(i&2){let e=d().$implicit,t=d(2);a(3),T("ngModel",e.searchQuery),a(2),g("ngForOf",t.getFilteredLocations(e.locations,e.searchQuery))}}function oe(i,_){if(i&1){let e=C();l(0,"div")(1,"div",18)(2,"button",19),v("click",function(){let n=u(e).index,o=d(2);return f(o.toggleAccordion(n))}),m(3),s(),l(4,"div",20),v("click",function(n){return u(e),f(n.stopPropagation())}),l(5,"input",21),v("click",function(n){return u(e),f(n.stopPropagation())})("change",function(){let n=u(e).$implicit,o=d(2);return f(o.selectAllLocations(n.region_slug))}),s(),l(6,"label",22),m(7," Select All "),s()()(),x(8,ie,6,2,"div",23),s()}if(i&2){let e=_.$implicit,t=_.index,n=d(2);a(2),g("ngClass",j(8,ee,e.isActive)),a(),P(" ",e.region_name," "),a(2),g("id","selectAll-location-"+t)("checked",n.isAllLocationsSelected(e.region_slug))("disabled",((e.locations==null?null:e.locations.length)||0)===0)("title",n.isAllLocationsSelected(e.region_slug)?"Deselect All":"Select All"),a(),g("for","selectAll-location-"+t),a(2),g("ngIf",e.isActive)}}function re(i,_){i&1&&(l(0,"div",30)(1,"span",11),m(2,"Loading..."),s()())}function ce(i,_){if(i&1){let e=C();I(0),x(1,oe,9,10,"div",12),l(2,"div",13)(3,"div",14)(4,"button",15),v("click",function(){u(e);let n=d();return f(n.next())}),x(5,re,3,0,"div",16),m(6," Next "),M(7,"img",17),s()()(),J()}if(i&2){let e=d();a(),g("ngForOf",e.accordions),a(3),g("disabled",e.loading),a(),g("ngIf",e.loading)}}var Y=(()=>{class i{constructor(e,t,n,o,r){this.router=e,this.toastService=t,this.profileService=n,this.onboardingStateService=o,this.analyticsService=r,this.selectedLocations={},this.searchQuery="",this.loading=!1,this.apiLoading=!1,this.accordions=[],this.allRegions=[]}ngOnInit(){this.scrollToTop();let e=JSON.parse(localStorage.getItem("selectedLocations")||"[]");this.selectedLocations=e,this.getAllAccordions()}scrollToTop(){window.scrollTo({top:0,behavior:"smooth"})}getAllAccordions(){this.apiLoading=!0,this.onboardingStateService.getLocations().pipe(L(()=>this.apiLoading=!1)).subscribe({next:e=>{this.allRegions=e?.data||[],this.accordions=this.allRegions.map((t,n)=>({region_name:t.region_name,region_slug:t.region_slug,locations:t.locations,searchQuery:"",isActive:n===0}))},error:e=>{this.toastService.error("Failed to load location data."),console.error(e)}})}toggleAccordion(e){this.accordions=this.accordions.map((t,n)=>n===e?w(k({},t),{isActive:!t.isActive}):w(k({},t),{isActive:!1}))}next(){if(!JSON.parse(localStorage.getItem("selectedLocations")||"[]").some(n=>n.locations&&n.locations.length>0)){this.toastService.error("Please select at least one location to proceed further.");return}this.loading=!0,this.analyticsService.track("onboarding_locations_completed",{onboarding_step:1}),this.profileService.saveOnboardingStep(1).pipe(L(()=>{this.loading=!1})).subscribe(()=>{this.router.navigate(["/onboard-select-location-regions"])})}getFilteredLocations(e,t){return t?e.filter(n=>n.name.toLowerCase().includes(t.toLowerCase())):e}isLocationSelected(e,t){let o=JSON.parse(localStorage.getItem("selectedLocations")||"[]").find(r=>
1r.region_slug===e);return o?o.locations.some(r=>r.slug===t):!1}onCheckboxChange(e,t,n){let o=n.target.checked,r=JSON.parse(localStorage.getItem("selectedLocations")||"[]"),c=this.allRegions.find(p=>p.region_slug===e),O=c?.locations?.find(p=>p.slug===t)||null,h=r.find(p=>p.region_slug===e);o?h?h.locations.some(p=>p.slug===t)||h.locations.push(O):r.push({region_name:c.region_name,region_slug:c.region_slug,locations:[O]}):h&&(h.locations=h.locations.filter(p=>p.slug!==t),h.locations.length===0&&(r=r.filter(p=>p.region_slug!==e))),localStorage.setItem("selectedLocations",JSON.stringify(r))}isAllLocationsSelected(e){let n=this.allRegions.find(c=>c.region_slug===e)?.locations||[];if(n.length===0)return!1;let r=JSON.parse(localStorage.getItem("selectedLocations")||"[]").find(c=>c.region_slug===e);return r?n.every(c=>r.locations.some(O=>O.slug===c.slug)):!1}selectAllLocations(e){let t=this.allRegions.find(c=>c.region_slug===e),n=t?.locations||[];if(n.length===0)return;let o=JSON.parse(localStorage.getItem("selectedLocations")||"[]");this.isAllLocationsSelected(e)?o=o.filter(c=>c.region_slug!==e):(o=o.filter(c=>c.region_slug!==e),o.push({region_name:t.region_name,region_slug:t.region_slug,locations:n})),localStorage.setItem("selectedLocations",JSON.stringify(o))}static{this.\u0275fac=function(t){return new(t||i)(b($),b(q),b(K),b(G),b(U))}}static{this.\u0275cmp=A({type:i,selectors:[["app-onboard-select-jurisdiction-regions"]],decls:12,vars:3,consts:[[1,"body-content"],[1,"container","align-items-center","justify-content-between"],[1,"col-9","left-section"],[1,"template-title"],[1,"template-subtitle"],["class","mt-5 d-flex justify-content-center",4,"ngIf"],[4,"ngIf"],[1,"right-section","col-3"],["src","assets/sourceHR_images/location.png","alt","",1,"img"],[1,"mt-5","d-flex","justify-content-center"],["role","status",1,"spinner-border"],[1,"visually-hidden"],[4,"ngFor","ngForOf"],[1,"accordion-footer"],[1,""],[1,"next-btn",3,"click","disabled"],["class","spinner-border spinner-border-sm","role","status",4,"ngIf"],["src","assets/icons/arrow_to_right.svg",1,"icon"],[2,"position","relative"],[1,"accordion-button","accordion",3,"click","ngClass"],[1,"form-check","select-all-checkbox",3,"click"],["type","checkbox",1,"form-check-input",3,"click","change","id","checked","disabled","title"],[1,"form-check-label",3,"for"],["class","panel main-search-area","style","display: block;",4,"ngIf"],[1,"panel","main-search-area",2,"display","block"],[1,"mt","form-group","position-relative"],["src","assets/images/icon/search-icon.svg",1,"search-icon"],["type","text","placeholder","Search states",3,"ngModelChange","ngModel"],[1,"checkbox-group"],["type","checkbox",3,"change","checked"],["role","status",1,"spinner-border","spinner-border-sm"]],template:function(t,n){t&1&&(l(0,"div",0)(1,"div",1)(2,"div",2)(3,"h2",3),m(4,"Pick the locations that you want in your compliance dashboard"),s(),l(5,"p",4),m(6,"Select the states or countries where your organization has employees, so we can deliver the most relevant legal updates and compliance guidance tailored to your regions."),s(),x(7,te,4,0,"div",5),m(8),x(9,ce,8,3,"ng-container",6),s(),l(10,"div",7),M(11,"img",8),s()()()),t&2&&(a(7),g("ngIf",n.apiLoading),a(),P(" ",n.searchQuery," "),a(),g("ngIf",!n.apiLoading))},dependencies:[E,F,z,D,W,B],styles:['@charset "UTF-8";.body-content[_ngcontent-%COMP%]{background:#fff;overflow-y:auto;overflow-x:hidden}.accordion[_ngcontent-%COMP%]{background-color:#103533;color:#fff;cursor:pointer;padding:15px;width:100%;border:none;text-align:left;outline:none;font-size:18px;transition:background-color .3s ease;margin-top:10px;border-radius:5px}.accordion[_ngcontent-%COMP%]:hover{background-color:#103533}.panel[_ngcontent-%COMP%]{padding:0 15px;display:none;background-color:#fff;overflow:hidden;border:1px solid #ccc;border-top:none}.checkbox-group[_ngcontent-%COMP%]{padding:10px 0;display:flex;flex-wrap:wrap}label[_ngcontent-%COMP%]{display:inline-flex;padding:8px 16px;color:#333;gap:8px;font-size:14px}.img[_ngcontent-%COMP%]{object-fit:cover;width:100%;height:100vh}.left-section[_ngcontent-%COMP%]{padding:50px 0;min-height:100vh}.right-section[_ngcontent-%COMP%]{position:fixed;height:100vh;
1top:0;right:0}.accordion-button[_ngcontent-%COMP%]:after{background-image:none!important;content:"+";color:#fff;font-size:20px;font-weight:700;margin-left:auto;margin-top:10px;transition:content .3s ease}.accordion-button.active[_ngcontent-%COMP%]:after{content:"\\2212"}.accordion-button.active[_ngcontent-%COMP%]{border-bottom-right-radius:0;border-bottom-left-radius:0}.accordion-footer[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;margin-top:20px}.next-btn[_ngcontent-%COMP%]{background-color:#0cafff;color:#fff;border:none;padding:5px 10px!important;border-radius:50px;font-size:15px!important;cursor:pointer;transition:background-color .3s ease;display:flex!important;align-items:center!important}.main-search-area[_ngcontent-%COMP%]   .iielevenlabs-bar[_ngcontent-%COMP%]   select[_ngcontent-%COMP%]{font-size:14px;font-weight:400;background:#fff0;appearance:none;padding:10px 15px;border-radius:10px;color:#344054}.main-search-area[_ngcontent-%COMP%]   .iielevenlabs-bar[_ngcontent-%COMP%]   select[_ngcontent-%COMP%]   option[_ngcontent-%COMP%]{color:#000}.main-search-area[_ngcontent-%COMP%]   .iielevenlabs-bar[_ngcontent-%COMP%]   svg[_ngcontent-%COMP%]{position:absolute;right:10px}.main-search-area[_ngcontent-%COMP%]   .form-group[_ngcontent-%COMP%]{display:flex;gap:10px;margin-bottom:0}.main-search-area[_ngcontent-%COMP%]   .form-group[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{height:44px;padding:15px 15px 15px 35px;position:relative;font-size:14px;width:100%;border-radius:10px;border:1px solid #d0d5dd}.main-search-area[_ngcontent-%COMP%]   .form-group[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{width:auto;padding:10px 24px}.search-icon[_ngcontent-%COMP%]{position:absolute;z-index:9;left:16px;top:18px;width:12px}.mt[_ngcontent-%COMP%]{margin-top:1rem}input[type=checkbox][_ngcontent-%COMP%]{accent-color:#103533}.fixed-bottom-right[_ngcontent-%COMP%]{position:fixed;bottom:20px;right:530px;z-index:999}.next-btn[_ngcontent-%COMP%]{background-color:#0cafff;color:#fff;border:none;padding:10px 20px 8px 30px;border-radius:50px;font-size:20px;cursor:pointer;transition:background-color .3s ease}.next-btn[_ngcontent-%COMP%]:hover{background-color:#0056b3}.next-btn[_ngcontent-%COMP%]   .icon[_ngcontent-%COMP%]{margin-left:8px}.select-all-checkbox[_ngcontent-%COMP%]{position:absolute;right:60px;top:12px;display:flex;align-items:center;gap:10px;z-index:9}.select-all-checkbox[_ngcontent-%COMP%]   .form-check-input[_ngcontent-%COMP%]{width:16px;height:16px;border-radius:5px;margin-top:0}.select-all-checkbox[_ngcontent-%COMP%]   .form-check-label[_ngcontent-%COMP%]{color:#fff;padding:8px 0}']})}}return i})();var ae=[{path:"",component:Y}],Z=(()=>{class i{static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275mod=y({type:i})}static{this.\u0275inj=S({imports:[R.forChild(ae),R]})}}return i})();var Pe=(()=>{class i{static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275mod=y({type:i})}static{this.\u0275inj=S({imports:[Q,Z,H]})}}return i})();export{Pe as OnboardSelectJurisdictionRegionsModule};

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.