PageSourceSearch

https://employer.workstaff.app/en/chunk-AZELS3VL.js

js workstaff.app collected 2026-10-04 08:42:13 UTC 4,574 bytes, 2 lines download raw bytes

1import{a as B}from"./chunk-LW3DUBF2.js";import{k as E}from"./chunk-2PAIQWCC.js";import{_ as W,i as $}from"./chunk-3C3YCMEG.js";import{C as d}from"./chunk-PHVFNEUP.js";import{k as A}from"./chunk-COPFXLKX.js";import{Md as Q}from"./chunk-6OOFCY6V.js";import{Ab as P,Ba as c,F as b,Jb as R,Jc as k,L as C,Lc as F,P as y,Ra as S,Sb as D,Ub as s,Ui as j,_a as M,ba as w,fl as q,hc as N,ia as v,ic as U,ki as T,mg as I,na as l,qa as _,qb as z,ra as x,sb as L,t as f,u as g,yb as a,za as r,zb as O}from"./chunk-RITPWGYY.js";import{a as m,b as h,i as n}from"./chunk-MAS5D3KG.js";var V={get window(){return window}};function X(o,u,e){let{cello:t,firstName:i,lastName:G,name:H,email:J}=o;return{productId:e,language:u,token:t?.jwt||"",productUserDetails:{firstName:i,lastName:G,fullName:H,email:J}}}var p=(()=>{class o{constructor(){this.config=B.cello,this.celloScriptLoader=new d(`https://${this.config.host}/app/latest/cello.js`,{id:"cello-script",location:"head-start",type:"module"}),this.attributionScriptLoader=new d(`https://${this.config.host}/attribution/latest/cello-attribution.js`,{id:"cello-attr-script",location:"head-start",type:"module"}),this.profileQuery=l(W),this.featureFlagQuery=l($),this.locale=l(k),this.celloReady=r(!1),this.isCelloOpen=q("cello-open"),this.label=r(""),this.openRequested=r(!1),c(()=>{this.isCelloOpen()==="true"&&this.openRequested.set(!0)}),c(()=>n(this,null,function*(){this.celloReady()&&this.openRequested()&&(yield this.openWidget(),this.openRequested.set(!1))}))}initialize(){this.celloScriptLoader.ensureLoaded().subscribe(),this.attributionScriptLoader.ensureLoaded().subscribe(),this.config?.productId&&g([this.profileQuery.profile$,this.featureFlagQuery.selectEnabled$("cello")]).pipe(C(500),b(([e,t])=>!!e&&t),I(),f(([e,t])=>X(e,this.locale.slice(0,2),this.config.productId)),y(j),w(e=>{e.productId&&e.token&&this.dataLayer.cmd.push(t=>n(this,null,function*(){try{if(this.celloReady())yield this.Cello("updateProductUserDetails",e),console.debug("Updated Cello user data",e.productUserDetails);else{console.debug("Booting Cello...",h(m({},e),{token:void 0})),yield t.boot(e),this.celloReady.set(!0);let i=yield this.Cello("getLabels");this.label.set(i.customLauncher),console.debug("Initialized Cello",e.productUserDetails)}}catch(i){throw console.warn("Failed to boot cello:",i),i}}))})).subscribe()}openWidget(){return n(this,null,function*(){yield this.Cello("open")})}shutdown(){return n(this,null,function*(){try{yield this.Cello("shutdown")}catch(e){console.warn("Failed to shutdown cello:",e)}finally{this.celloReady.set(!1)}})}getUcc(){return n(this,null,function*(){return yield window.CelloAttribution("getUcc")})}get dataLayer(){let{window:e}=V;return e.cello=e.cello||{cmd:[]},e.cello}get Cello(){return V.window?.Cello}static{this.\u0275fac=function(t){return new(t||o)}}static{this.\u0275prov=v({token:o,factory:o.\u0275fac,providedIn:"root"})}}return o})();function Y(o,u){if(o&1){let e=R();a(0,"button",1),D("click",function(){_(e);let i=s();return x(i.openWidget())}),P(1,"nz-icon",2),a(2,"span"),N(3),O()()}if(o&2){let e=s();S(3),U(e.label())}}var Z=(()=>{class o{constructor(){this.celloService=l(p),this.localizationService=l(T),this.celloReady=this.celloService.celloReady,this.label=F(()=>{let e=this.celloService.label(),{country:t}=this.localizationService.getLocalization();return t==="US"?e:e.replace("$","US$")})}openWidget(){return n(this,null,function*(){return yield this.celloService.openWidget()})}ngOnDestroy(){return n(this,null,function*(){yield this.celloService.shutdown(),console.debug("Cello disconnected")})}static{this.\u0275fac=function(t){return new(t||o)}}static{this.\u0275cmp=M({type:o,selectors:[["ws-cello-button"]],decls:1,vars:1,consts:[["nz-button","","nzType","text"],["nz-button","","nzType","text",3,"click"],["nzType","gift","nzTheme","outline"]],template:function(t,i){t&1&&z(0,Y,4,1,"button",0),t&2&&L(i.celloReady()?0:-1)},dependencies:[E,A,Q],styles:["[_nghost-%COMP%]   button[_ngcontent-%COMP%]{color:#fff;display:flex;align-items:center}[_nghost-%COMP%]   button[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{color:var(--top-nav-text-color-dimmed)}[_nghost-%COMP%]   button[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]:hover{color:var(--top-nav-text-color-dimmed-hover)}[_nghost-%COMP%]   button[_ngcontent-%COMP%]   nz-icon[_ngcontent-%COMP%]{border-radius:50%;padding:5px;aspect-ratio:1;background:var(--palette-pink);font-size:20px}"],changeDetection:0})}}return o}
1)();export{p as a,Z as b};
2/**i18n:7ef1a3e9228e28c59f26eb443744f92262cf0b3700e461d64d98a932e70e1264*/

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.