@hublo/mstaff-client-sdk 0.2.39 → 0.2.40
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/core.cjs +1 -1
- package/dist/core.js +180 -179
- package/package.json +1 -1
package/dist/core.cjs
CHANGED
|
@@ -3,4 +3,4 @@
|
|
|
3
3
|
* Copyright(c) 2012-2014 Roman Shtylman
|
|
4
4
|
* Copyright(c) 2015 Douglas Christopher Wilson
|
|
5
5
|
* MIT Licensed
|
|
6
|
-
*/var te=xe,J=Be,_e=Object.prototype.toString,_=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;function xe(e,t){if(typeof e!="string")throw new TypeError("argument str must be a string");for(var i={},n=t||{},r=n.decode||Ue,c=0;c<e.length;){var l=e.indexOf("=",c);if(l===-1)break;var f=e.indexOf(";",c);if(f===-1)f=e.length;else if(f<l){c=e.lastIndexOf(";",l-1)+1;continue}var u=e.slice(c,l).trim();if(i[u]===void 0){var s=e.slice(l+1,f).trim();s.charCodeAt(0)===34&&(s=s.slice(1,-1)),i[u]=ze(s,r)}c=f+1}return i}function Be(e,t,i){var n=i||{},r=n.encode||Ve;if(typeof r!="function")throw new TypeError("option encode is invalid");if(!_.test(e))throw new TypeError("argument name is invalid");var c=r(t);if(c&&!_.test(c))throw new TypeError("argument val is invalid");var l=e+"="+c;if(n.maxAge!=null){var f=n.maxAge-0;if(isNaN(f)||!isFinite(f))throw new TypeError("option maxAge is invalid");l+="; Max-Age="+Math.floor(f)}if(n.domain){if(!_.test(n.domain))throw new TypeError("option domain is invalid");l+="; Domain="+n.domain}if(n.path){if(!_.test(n.path))throw new TypeError("option path is invalid");l+="; Path="+n.path}if(n.expires){var u=n.expires;if(!Fe(u)||isNaN(u.valueOf()))throw new TypeError("option expires is invalid");l+="; Expires="+u.toUTCString()}if(n.httpOnly&&(l+="; HttpOnly"),n.secure&&(l+="; Secure"),n.partitioned&&(l+="; Partitioned"),n.priority){var s=typeof n.priority=="string"?n.priority.toLowerCase():n.priority;switch(s){case"low":l+="; Priority=Low";break;case"medium":l+="; Priority=Medium";break;case"high":l+="; Priority=High";break;default:throw new TypeError("option priority is invalid")}}if(n.sameSite){var a=typeof n.sameSite=="string"?n.sameSite.toLowerCase():n.sameSite;switch(a){case!0:l+="; SameSite=Strict";break;case"lax":l+="; SameSite=Lax";break;case"strict":l+="; SameSite=Strict";break;case"none":l+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}}return l}function Ue(e){return e.indexOf("%")!==-1?decodeURIComponent(e):e}function Ve(e){return encodeURIComponent(e)}function Fe(e){return _e.call(e)==="[object Date]"||e instanceof Date}function ze(e,t){try{return t(e)}catch{return e}}function He(){const e=typeof global>"u"?void 0:global.TEST_HAS_DOCUMENT_COOKIE;return typeof e=="boolean"?e:typeof document=="object"&&typeof document.cookie=="string"}function qe(e){return typeof e=="string"?te(e):typeof e=="object"&&e!==null?e:{}}function F(e,t={}){const i=Qe(e);if(!t.doNotParse)try{return JSON.parse(i)}catch{}return e}function Qe(e){return e&&e[0]==="j"&&e[1]===":"?e.substr(2):e}class Ge{constructor(t,i={}){this.changeListeners=[],this.HAS_DOCUMENT_COOKIE=!1,this.update=()=>{if(!this.HAS_DOCUMENT_COOKIE)return;const r=this.cookies;this.cookies=te(document.cookie),this._checkChanges(r)};const n=typeof document>"u"?"":document.cookie;this.cookies=qe(t||n),this.defaultSetOptions=i,this.HAS_DOCUMENT_COOKIE=He()}_emitChange(t){for(let i=0;i<this.changeListeners.length;++i)this.changeListeners[i](t)}_checkChanges(t){new Set(Object.keys(t).concat(Object.keys(this.cookies))).forEach(n=>{t[n]!==this.cookies[n]&&this._emitChange({name:n,value:F(this.cookies[n])})})}_startPolling(){this.pollingInterval=setInterval(this.update,300)}_stopPolling(){this.pollingInterval&&clearInterval(this.pollingInterval)}get(t,i={}){return i.doNotUpdate||this.update(),F(this.cookies[t],i)}getAll(t={}){t.doNotUpdate||this.update();const i={};for(let n in this.cookies)i[n]=F(this.cookies[n],t);return i}set(t,i,n){n?n=Object.assign(Object.assign({},this.defaultSetOptions),n):n=this.defaultSetOptions;const r=typeof i=="string"?i:JSON.stringify(i);this.cookies=Object.assign(Object.assign({},this.cookies),{[t]:r}),this.HAS_DOCUMENT_COOKIE&&(document.cookie=J(t,r,n)),this._emitChange({name:t,value:i,options:n})}remove(t,i){const n=i=Object.assign(Object.assign(Object.assign({},this.defaultSetOptions),i),{expires:new Date(1970,1,1,0,0,1),maxAge:0});this.cookies=Object.assign({},this.cookies),delete this.cookies[t],this.HAS_DOCUMENT_COOKIE&&(document.cookie=J(t,"",n)),this._emitChange({name:t,value:void 0,options:i})}addChangeListener(t){this.changeListeners.push(t),this.HAS_DOCUMENT_COOKIE&&this.changeListeners.length===1&&(typeof window=="object"&&"cookieStore"in window?window.cookieStore.addEventListener("change",this.update):this._startPolling())}removeChangeListener(t){const i=this.changeListeners.indexOf(t);i>=0&&this.changeListeners.splice(i,1),this.HAS_DOCUMENT_COOKIE&&this.changeListeners.length===0&&(typeof window=="object"&&"cookieStore"in window?window.cookieStore.removeEventListener("change",this.update):this._stopPolling())}}function Ke(e,{doNotParse:t=!1,autoUpdateDependencies:i=!1}={},n=new Ge){const r=i?[...e||[]]:e;let c=n.getAll({doNotParse:!0});const l=L.ref(0),f=()=>{const u=n.getAll({doNotParse:!0});We(r||null,u,c)&&l.value++,c=u};return n.addChangeListener(f),je(()=>{n.removeChangeListener(f)}),{get:(...u)=>(i&&r&&!r.includes(u[0])&&r.push(u[0]),l.value,n.get(u[0],{doNotParse:t,...u[1]})),getAll:(...u)=>(l.value,n.getAll({doNotParse:t,...u[0]})),set:(...u)=>n.set(...u),remove:(...u)=>n.remove(...u),addChangeListener:(...u)=>n.addChangeListener(...u),removeChangeListener:(...u)=>n.removeChangeListener(...u)}}function We(e,t,i){if(!e)return!0;for(const n of e)if(t[n]!==i[n])return!0;return!1}const Je=()=>typeof window<"u"&&typeof window.document<"u",$=()=>typeof process<"u"&&process.versions!=null&&process.versions.node!=null,O=(e,t,i)=>{const n=typeof t=="string"?t.split("."):[t];let r=e;const c=f=>f!=null,l=f=>typeof f=="object";for(const[f,u]of n.entries()){if(!c(r))return i;if(f===n.length-1)return c(r[u])?r[u]:i;if(!l(r[u]))return i;r=r[u]}return i},H=(e,t,i)=>{const n=typeof t=="string"?t.split("."):[t],r=f=>typeof f=="number"||/^\d$/g.test(f),c=f=>parseInt(f,10);let l=e;return n.forEach((f,u)=>{if(u===n.length-1)l[f]=i;else{const s=r(n[u+1])?[]:{};f=r(f)?c(f):f,l[f]=l[f]??s,l=l[f]}}),e},ne=e=>{if(typeof e=="object"){if(Array.isArray(e))return[...e];if(Object(e)===e)return{...e}}return e},G=(e,t)=>{const i={...e};for(const[n,r]of Object.entries(t))n in i&&typeof i[n]=="object"&&typeof r=="object"?i[n]=G(i[n],r):i[n]=ne(r);return i};function ie(){const e=Ke();function t(c){return e.get(c)}function i(c,l){return e.set(c,l,$()?void 0:{sameSite:"none",secure:!0})}function n(c){return e.remove(c,$()?void 0:{sameSite:"none",secure:!0})}function r(){Object.keys(e.getAll()).forEach(c=>n(c))}return{getItem:t,setItem:i,removeItem:n,clear:r}}let x=null;function N(e={auth:"token",refresh:"refresh_token",expiration:"token_expiration_date"},t=ie()){if(x)return x;function i(){return t.getItem(e.auth)}function n(){return t.getItem(e.refresh)}function r(){return t.getItem(e.expiration)}function c(p,h){const y=a(p);if(!y.exp)throw new Error("Invalid JWT token.");t.setItem(e.auth,p),t.setItem(e.refresh,h),t.setItem(e.expiration,((y.exp-60)*1e3).toString())}function l(){t.removeItem(e.auth),t.removeItem(e.refresh),t.removeItem(e.expiration)}function f(){return u()&&!s()}function u(){return!!i()}function s(){const p=r();return p?new Date(p)<new Date:!0}function a(p){return JSON.parse(atob(p.split(".")[1]))}function m(){return t}return x={keys:e,getAuthToken:i,getRefreshToken:n,getExpiration:r,authenticate:c,clear:l,isAuthenticated:f,hasAuth:u,isExpired:s,getStorage:m},x}function Ze(e){let t={"Content-Type":"application/json"};e&&i(e);function i(y,w=!1){return t=w?y:{...t,...y},this}function n(){return t}function r(y,w){return t[y]=w,this}function c(y){return t[y]}function l(y){return t[y]&&delete t[y],this}function f(y){return r("Authorization","Bearer "+y),this}function u(){return l("Authorization"),this}function s(){return!!c("Authorization")}function a(){return r("Content-Type","multipart/form-data"),this}function m(){return r("Content-Type","application/json"),this}function p(){return c("Content-Type")==="multipart/form-data"}function h(){return c("Content-Type")==="application/json"}return{setHeaders:i,getHeaders:n,setHeader:r,getHeader:c,removeHeader:l,setAuthorization:f,removeAuthorization:u,hasAuthorization:s,setFormData:a,setJson:m,isFormData:p,isJson:h}}function Xe(e){let t=null;e&&i(e);function i(r){if(r=r.toLowerCase(),!["get","post","put","patch","delete"].includes(r))throw new Error("Invalid method.");return t=r,this}function n(){return t}return{setMethod:i,getMethod:n}}function Ye(e,t,i){let n=null;i&&r(i);function r(s){if(!["post","put","patch"].includes(e.getMethod()))throw new Error("Payload can only be set for POST, PUT and PATCH requests.");return s instanceof FormData?t.setFormData():l(s)&&(s=f(s),t.setFormData()),t.isFormData()&&e.getMethod()==="put"&&(e.setMethod("post"),s.append("_method","PUT")),n=s,this}function c(){return n}function l(s){for(const a in s){const m=s[a];if(u(m))return!0;if(typeof m=="object"&&l(m))return!0}return!1}function f(s,a=null,m=0){const p=!a;p&&(a=new FormData);for(const h in s){const y=s[h];u(y)?(s[h]="<<FileIndex:"+m+">>",a.append(m,y,y.name),m++):typeof y=="object"&&(s[h]=f(s[h],a,m))}return p?(a.append("payload",JSON.stringify(s)),a):s}function u(s){return typeof File<"u"&&s instanceof File||typeof Blob<"u"&&s instanceof Blob}return{setPayload:r,getPayload:c}}const E=class E{constructor(t={}){I(this,"level",3);I(this,"logger");I(this,"prefix");this.logger=t.logger||console,this.prefix=t.prefix||""}setLevel(t){this.level=t}debug(...t){this.level<=E.LEVEL_DEBUG&&B(this.logger.debug,this.prefix,t)}info(...t){this.level<=E.LEVEL_INFO&&B(this.logger.info,this.prefix,t)}warn(...t){this.level<=E.LEVEL_WARN&&B(this.logger.warn,this.prefix,t)}error(...t){this.level<=E.LEVEL_ERROR&&B(this.logger.error,this.prefix,t)}};I(E,"LEVEL_DEBUG",0),I(E,"LEVEL_INFO",1),I(E,"LEVEL_WARN",2),I(E,"LEVEL_ERROR",3),I(E,"LEVEL_OFF",4);let V=E;const B=(e,t,i)=>{t?e(t,...i):e(...i)},S=new V({prefix:"[SDK]"});let re=null,se=null,oe=null,ae="/",ce=null;const et=()=>re,tt=e=>{if(S.info("[Config] Environment:",e),!e)throw new Error("Invalid environment.");re=e},nt=()=>se,it=e=>{if(S.info("[Config] API Host:",e),!e)throw new Error("Invalid API host.");se=e},rt=()=>ce,st=e=>{ce=e},ot=()=>oe,at=e=>{if(S.info("[Config] Main App Host:",e),!e)throw new Error("Invalid main app host.");oe=e},ct=e=>{S.info("[Config] Base Assets Urls:",e),ae=e},ut=()=>ae,T={getEnvironment:et,getApiHost:nt,getErrorHandler:rt,setEnvironment:tt,setApiHost:it,setErrorHandler:st,getMainAppHost:ot,setMainAppHost:at,setBaseAssetsUrl:ct,getBaseAssetsUrl:ut};function lt(e){const t=T.getApiHost().replace(/\/$/g,"");let i=null,n={},r={};e&&f(e);function c(){return t+u()+h()}function l(){return u(!0,!0)}function f(d){return i="/"+d.replace(/^\//g,""),this}function u(d=!0,P=!1){return d?i.replace(/:(\w+)/g,(v,C)=>P?"*":r[C]||":"+C):i}function s(d){return n=d,this}function a(d,P){return n[d]=P,this}function m(d){return n[d]&&delete n[d],this}function p(){return Object.keys(n).length>0}function h(d=!0){if(!p())return"";let P="";for(const v in n)if(Array.isArray(n[v]))for(const C of n[v])P+=(P.length?"&":"")+`${v}[]=`+C;else P+=(P.length?"&":"")+v+"="+n[v];return(d?"?":"")+P}function y(d){return r=d,this}function w(d,P){return r[d]=P,this}function k(d){return r[d]&&delete r[d],this}return{setPath:f,getPath:u,getUri:c,getMockUri:l,setQueryParams:s,setQueryParam:a,removeQueryParam:m,hasQuery:p,getQueryString:h,setRouteParams:y,setRouteParam:w,removeRouteParam:k}}function dt(e){let t=[];function i(){return t=s(arguments),l(),this}function n(){return t.length>0}function r(a){return t.includes(a.trim())?this:(t.push(a.trim()),l(),this)}function c(a){const m=t.indexOf(a.trim());return m===-1?this:(t.splice(m,1),l(),this)}function l(){t.length?e.setQueryParam("groups",u(t)):e.removeQueryParam("groups")}function f(a){return a.split(",").map(m=>m.trim())}function u(a){return a.join(",")}function s(a){let m=[];return a.length===1?typeof a[0]=="string"?m=f(a[0]):Array.isArray(a[0])&&(m=a[0]):m=Array.from(a),m}return{setGroups:i,hasGroups:n,addGroup:r,removeGroup:c}}function ft(e){let t=!1,i=!1,n=1,r=10;function c(){return t=!0,l(),this}function l(){i=!0;const h=p(arguments);return s(h.page||1,!1),a(h.perPage||r,!1),m(),this}function f(){return i=!1,m(),this}function u(){return i}function s(h,y=!0){return t=!0,i=!0,n=h,y&&m(),this}function a(h,y=!0){return t=!0,i=!0,r=h,y&&m(),this}function m(){t?u()?(e.removeQueryParam("pagination"),e.setQueryParam("page",n),e.setQueryParam("nbResultPerPage",r)):(e.removeQueryParam("page"),e.removeQueryParam("nbResultPerPage"),e.setQueryParam("pagination","false")):(e.removeQueryParam("page"),e.removeQueryParam("nbResultPerPage"),e.removeQueryParam("pagination"))}function p(h){if(h.length===1&&typeof h[0]=="object")return h[0];const y={};return h.length>=1&&(y.page=h[0]),h.length>=2&&(y.perPage=h[1]),y}return{isList:c,paginate:l,disablePagination:f,hasPagination:u,setPage:s,setPerPage:a}}function mt(e){let t=!1,i="id",n="ASC";function r(){t=!0;const a=s(arguments);return a.orderBy&&l(a.orderBy,!1),a.orderDir&&f(a.orderDir,!1),u(),this}function c(){return t}function l(a,m=!0){return t=!0,i=a,m&&u(),this}function f(a,m=!0){if(a=a.toUpperCase(),["ASC","DESC"].indexOf(a)===-1)throw new Error("Invalid order direction");return t=!0,n=a,m&&u(),this}function u(){c()&&(e.setQueryParam("orderBy",i),e.setQueryParam("orderDirection",n))}function s(a){if(a.length===1&&typeof a[0]=="object")return a[0];const m={};return a.length>=1&&(m.orderBy=a[0]),a.length>=2&&(m.orderDir=a[1]),m}return{setOrder:r,hasOrder:c,setOrderBy:l,setOrderDir:f}}function pt(){let e=!1;function t(){return e=!0,this}function i(){return e}return{setSilent:t,isSilent:i}}function ht(){let e="json";function t(n="json"){if(["arraybuffer","document","json","text","stream","blob"].indexOf(n)===-1)throw new Error("Invalid response type");return e=n,this}function i(){return e}return{setResponseType:t,getResponseType:i}}function yt(e){function t(){return e}function i(){return e.data}function n(){return e.data}return{getResponse:t,getData:i,getPayload:n}}function gt(e,t=!1){let i=!1,n=!1;return e.response?(i=!0,n=!0):e.request&&(i=!0),!t&&T.getErrorHandler()&&T.getErrorHandler()(e),{sent:i,responded:n,error:e}}function bt(e){function t(){return e}function i(){return e.data}function n(){return e.data}function r(){return e.data["@type"]==="hydra:Collection"}function c(){return r()?e.data["hydra:member"]:null}function l(){return r()?e.data["hydra:totalItems"]:null}function f(){return r()?e.data["hydra:view"]&&e.data["hydra:view"]["hydra:last"]:!1}function u(){return!r()||!f()?null:parseInt(e.data["hydra:view"]["@id"].match(/page=(\d+)/)[1])}function s(){return!r()||!f()?null:parseInt(e.data["hydra:view"]["hydra:last"].match(/page=(\d+)/)[1])}return{getResponse:t,getData:i,getPayload:n,isCollection:r,getCollection:c,getTotal:l,hasPagination:f,getPage:u,getPages:s}}function wt(e,t,i,n,r,c){async function l(){const u=i.getMethod(),s=t.getUri(),a=e.getHeaders(),m=n.getPayload(),p=[s];["post","put","patch"].includes(u)&&p.push(m||{}),p.push({headers:a,responseType:c.getResponseType()}),S.info("[Request] Sending request:",`[${u.toUpperCase()}]`,s);try{const h=await Me[u](...p);return f(h)}catch(h){throw gt(h,r.isSilent())}}function f(u){if(u.headers){const s=Object.keys(u.headers),a=s.map(m=>m.toLowerCase()).indexOf("content-type");if(a!==-1&&u.headers[s[a]].includes("application/ld+json"))return bt(u)}return yt(u)}return{send:l}}function A(e,t="get",i=null){const n=Ze(),r=lt(e),c=Xe(t),l=Ye(c,n,i),f=dt(r),u=ft(r),s=mt(r),a=pt(),m=ht(),p=wt(n,r,c,l,a,m);return{...n,...r,...c,...l,...f,...u,...s,...a,...m,...p}}function b(e,t="get",i=null){const n=A(e,t,i),r=N();r.isAuthenticated()&&n.setAuthorization(r.getAuthToken());const c=n.send;return n.send=async function(){if(!n.hasAuthorization())throw new Error("::SDK Request:: Request cannot be sent, missing authorization header.");return c()},n}const Rt=(e,t)=>b("/v2/activity/candidate/:candidateId/establishment/:establishmentId").setRouteParams({candidateId:e,establishmentId:t}),At=()=>({listByCandidateAndEstablishment:Rt}),Pt=(e,t,i)=>b("/candidate/:candidateId/share/establishment/:establishmentId").setMethod("post").setRouteParams({candidateId:e,establishmentId:t}).setPayload(i),vt=(e,t)=>b("/candidate/:candidateId/archive/establishment/:establishmentId").setRouteParams({candidateId:e,establishmentId:t}),Et=(e,t)=>b("/candidate/:candidateId/archive/establishment/:establishmentId").setMethod("post").setRouteParams({candidateId:e,establishmentId:t}),Ct=(e,t)=>b("/candidate/:candidateId/archive/establishment/:establishmentId").setMethod("delete").setRouteParams({candidateId:e,establishmentId:t}),It=e=>b("/v2/candidates/lookup").setQueryParam("email",e),St=(e,t)=>b("/v2/candidates").setMethod("post").setQueryParam("establishment-id",e).setFormData().setPayload(t),kt=(e,t,i)=>b("/v2/candidates/:candidateId").setQueryParam("establishment-id",t).setRouteParams({candidateId:e}).setMethod("post").setFormData().setPayload(i),Ot=e=>b("/candidate/register/close/:registrationToken").setMethod("post").setRouteParams({registrationToken:e}),Tt=e=>b("/candidate/register/open").setMethod("post").setQueryParam("groups","register:token").setPayload(e),Lt=(e,t)=>b("/establishment/:establishmentId:/candidate/invitation").setRouteParams({establishmentId:e}).setMethod("post").setPayload(t),$t=()=>({share:Pt,isArchived:vt,archive:Et,unarchive:Ct,lookupCandidate:It,createCandidate:St,updateCandidate:kt,closeIncompleteRegistration:Ot,openNewRegistration:Tt,updateInvitation:Lt}),Mt=(e,t)=>b("/comment/establishment/:establishmentId/candidate/:userId").setRouteParams({establishmentId:e,userId:t}),Dt=(e,t,i)=>b("/comment/establishment/:establishmentId/candidate/:userId").setRouteParams({establishmentId:e,userId:t}).setMethod("post").setPayload(i),Nt=(e,t)=>b("/comment/:commentId").setRouteParams({commentId:e}).setMethod("put").setPayload(t),jt=e=>b("/comment/:commentId").setRouteParams({commentId:e}).setMethod("delete"),_t=()=>({getForEstablishmentCandidate:Mt,postForEstablishmentCandidate:Dt,update:Nt,remove:jt}),xt=()=>A("contractType").isList().addGroup("Term:id").addGroup("Term:name"),Bt=()=>({list:xt}),Ut=e=>b("/v2/talents").isList().setQueryParam("establishment-id",e),Vt=()=>({list:Ut}),Ft=(e,t,i)=>b("/cvtheque/establishment/:establishmentId/candidate/:candidateId/label/synchronize").setRouteParams({establishmentId:e,candidateId:t}).setMethod("post").setPayload(i),zt=()=>({syncCandidateLabels:Ft}),Ht=()=>A("diploma").isList().addGroup("Term:id").addGroup("Term:name"),qt=()=>({list:Ht}),Qt=e=>b("document/candidate/:candidateId").setRouteParams({candidateId:e}).isList().disablePagination(),Gt=(e,t)=>b("document/candidate/:candidateId/establishment/:establishmentId/recruiter").setRouteParams({candidateId:e,establishmentId:t}).isList().disablePagination(),Kt=(e,t)=>b("document/candidate/:candidateId/establishment/:establishmentId/candidate").setRouteParams({candidateId:e,establishmentId:t}).isList().disablePagination(),Wt=e=>b("document/recruiter").setMethod("post").setPayload(e),Jt=e=>b("document/:documentId").setRouteParams({documentId:e}).setMethod("delete"),Zt=()=>({listByCandidate:Qt,listByCandidateAndEstablishmentFromRecruiter:Gt,listByCandidateAndEstablishmentFromCandidate:Kt,addFromRecruiter:Wt,remove:Jt}),Xt=(e,t)=>b("/v2/establishments/:establishmentId/email-history").setRouteParams({establishmentId:t}).setQueryParam("receiverId",e).isList().disablePagination(),Yt=()=>({listByCandidateAndEstablishment:Xt}),en=(e,t)=>b("/email/candidate/:candidateId").setMethod("post").setRouteParams({candidateId:e}).setPayload(t),tn=(e,t)=>b("/v2/emails/send").setMethod("post").setFormData().setPayload({recipientIds:e,...t}),nn=()=>({sendToCandidate:en,sendToRecipients:tn}),rn=(e,t=!0)=>{const i=b("/v2/establishments/:establishmentId/email-templates").setRouteParams({establishmentId:e}).isList().disablePagination();return t&&i.setQueryParam("global",!0),i},sn=()=>b("/v2/self/email-templates").isList().disablePagination(),on=()=>({listByEstablishment:rn,listSelf:sn}),an=(e,t)=>b("establishment-career/:establishmentId/:versionId").setRouteParams({establishmentId:e,versionId:t}),cn=(e,t="published")=>b("establishment-career/:establishmentId/state/:state").setRouteParams({establishmentId:e,state:t}),un=(e,t,i=null)=>{const n=i!==null?b("establishment-career/:establishmentId/:versionId").setRouteParams({establishmentId:e,versionId:i}):b("establishment-career/:establishmentId").setRouteParams({establishmentId:e});return n.setMethod("post").setPayload(t),n},ln=(e,t)=>b("establishment-career/:establishmentId/logo-banner").setMethod("post").setRouteParams({establishmentId:e}).setPayload(t),dn=(e,t,i)=>b("establishment-career/:establishmentId/publish/:versionId").setMethod("post").setRouteParams({establishmentId:e,versionId:t}).setPayload(i),fn=()=>({readById:an,readByState:cn,upsert:un,uploadLogoAndBanner:ln,publish:dn}),mn=e=>A("establishment/:establishmentId").setRouteParams({establishmentId:e}),pn=e=>b("establishment/:establishmentId/authorizations").setRouteParams({establishmentId:e}),K=()=>({read:mn,authorizations:pn}),hn=e=>A("feature-flag/maintenance").setMethod("post").setPayload(e),yn=(e,t)=>A("feature-flag/establishment").setMethod("post").setPayload({establishment:e,flagName:t}),gn=()=>({maintenanceModeEnabled:hn,forEstablishment:yn}),bn=()=>A("job").isList().addGroup("Term:id").addGroup("Term:name"),wn=(e,t=!0)=>b("job/establishment/:establishmentId").isList().setRouteParams({establishmentId:e}).setQueryParam("all",t).addGroup("Term:id").addGroup("Term:name"),Rn=()=>({list:bn,listByEstablishment:wn}),An=e=>b("/label/establishment/:establishmentId").isList().setRouteParams({establishmentId:e}),Pn=(e,t)=>b("/label/establishment/:establishmentId").setMethod("post").setRouteParams({establishmentId:e}).setPayload(t),vn=(e,t)=>b("/label/:labelId").setMethod("put").setRouteParams({labelId:e}).setPayload(t),En=e=>b("/label/:labelId").setMethod("delete").setRouteParams({labelId:e}),Cn=(e,t,i)=>b("/label/establishment/:establishmentId/candidate/:candidateId/synchronize").setMethod("post").setPayload(i).setRouteParams({establishmentId:e,candidateId:t}),In=()=>({listByEstablishment:An,addToEstablishment:Pn,update:vn,remove:En,syncForCandidate:Cn}),Sn=e=>A("offer/:offerId").setRouteParams({offerId:e}),kn=()=>({read:Sn}),On=(e,t=!1)=>{const i=b("/recruiter/establishment/:establishmentId").isList().setRouteParams({establishmentId:e});return t&&i.setQueryParam("exclude-me",1),i},Tn=()=>({listByEstablishment:On}),Ln=e=>b("/recruitment/establishment/:establishmentId/mine").isList().setRouteParams({establishmentId:e}),$n=(e,t)=>b("/recruitment/mine/establishment/:establishmentId/has-not/candidate/:candidateId").isList().setRouteParams({establishmentId:e,candidateId:t}),Mn=(e,t)=>b("/recruitment/mine/establishment/:establishmentId/has/candidate/:candidateId").isList().setRouteParams({establishmentId:e,candidateId:t}),Dn=(e,t)=>b("/recruitment/establishment/:establishmentId/has/candidate/:candidateId").isList().setRouteParams({establishmentId:e,candidateId:t}),Nn=(e,t)=>b("/recruitment/:recruitmentId/candidate").setMethod("put").setRouteParams({recruitmentId:e}).setPayload(t),jn=(e,t)=>b("/recruitment/:recruitmentId/candidate/:candidateId").setMethod("delete").setRouteParams({recruitmentId:e,candidateId:t}),_n=()=>({mineByEstablishment:Ln,mineWithoutCandidate:$n,mineWithCandidate:Mn,withCandidate:Dn,addCandidates:Nn,removeCandidate:jn}),xn=(e,t,i,n=null)=>{const r=A("candidate/register/open").setMethod("post"),c={email:e};return t==="establishment"&&(c.establishmentId=i),t==="offer"&&(c.offerId=i),n&&(c.referer=n),r.setPayload(c),r},Bn=(e,t)=>A("candidate/register/update/:token").setMethod("post").setRouteParams({token:e}).setPayload(t),Un=e=>A("candidate/register/read/:token").setRouteParams({token:e}),Vn=e=>A("candidate/register/close/:token").setMethod("post").setRouteParams({token:e}),Fn=()=>({open:xn,update:Bn,read:Un,close:Vn}),zn=(e,t)=>b("/v2/registrations/lookup").setQueryParam("candidate-id",e).setQueryParam("establishment-id",t),Hn=()=>({lookupEstablishment:zn}),qn=()=>A("speciality").isList().addGroup("Term:id").addGroup("Term:name"),Qn=(e,t=!0)=>b("speciality/establishment/:establishmentId").isList().setRouteParams({establishmentId:e}).setQueryParam("all",t).addGroup("Term:id").addGroup("Term:name"),Gn=()=>({list:qn,listByEstablishment:Qn}),Kn=e=>b("/tag/public/establishment/:establishmentId").isList().setRouteParams({establishmentId:e}),Wn=()=>({listByEstablishment:Kn}),Jn=(e,t)=>b("/v2/talents/lookup").setQueryParam("candidate-id",e).setQueryParam("establishment-id",t),Zn=e=>b("/v2/talents/index").setMethod("post").setPayload(e),Xn=()=>({lookupTalent:Jn,addCandidateToTalentPool:Zn}),Yn=e=>A("user/email/isset/:email").setRouteParams({email:e}),ei=()=>b("user/self").addGroup("user:self"),ti=e=>b("/user/:uuid").setRouteParams({uuid:e}),ni=e=>A("/user/:uuid").setRouteParams({uuid:e}),ii=e=>b("/user/:id/uuid").setRouteParams({id:e}),W=()=>({emailExists:Yn,self:ei,byUuidPrivate:ti,byUuid:ni,fetchUuid:ii});let U;function ue(){if(U)return U;const e={user:void 0,roles:[],establishments:{}},t=async()=>{if(!N().isAuthenticated())throw new Error("::SDK Authorization:: User not authenticated");const s=(await W().self().send()).getData();e.user={id:s.id,email:s.email,firstName:s.firstName,lastName:s.lastName,avatar:s.avatar},e.roles=s.roles},i=async s=>{if(!N().isAuthenticated())throw new Error("::SDK Authorization:: User not authenticated");e.establishments[s]=(await K().authorizations(s).send()).getData()},n=s=>{if(e.user===void 0)throw new Error("::SDK Authorization:: User not fetched");return e.roles.includes(s)};return U={fetchSelf:t,fetchPermission:i,hasRole:n,hasRoleRH:()=>n("ROLE_RH"),hasRoleCandidate:()=>n("ROLE_CANDIDATE"),hasRoleAdmin:()=>n("ROLE_ADMIN"),hasPermission:(s,...a)=>{const m=e.establishments[s];if(m===void 0)throw new Error(`::SDK Authorization:: Permissions not fetched for establishment ${s}`);return a.every(p=>m[p]===!0)},clear:()=>{e.user=void 0,e.roles=[],e.establishments={}}},U}async function ri(e,...t){if(!N().isAuthenticated())throw"ERR_NOT_AUTHENTICATED";const n=ue();await Promise.all([n.fetchSelf(),n.fetchPermission(e)]);for(let r=0;r<t.length;r++){const c=t[r];if(!n.hasPermission(e,c))throw"ERR_MISSING_PERMISSION"}}const si=De.defineStore("authorization",{state:()=>({user:void 0,establishments:{}}),getters:{roles:e=>e.user.roles??[],isRH(){return this.roles.includes("ROLE_RH")},isCandidate(){return this.roles.includes("ROLE_CANDIDATE")},isAdmin(){return this.roles.includes("ROLE_ADMIN")}},actions:{async fetchSelf(e){if(this.user===void 0||e){const t=await W().self().send();this.user=t.getData()}},async fetchPermission(e,t){if(!this.establishments[e]||t){const i=await K().authorizations(e).send();this.establishments[e]=i.getData()}},hasPermission(e,...t){const i=this.establishments[e];return i===void 0?!1:t.every(n=>i[n]===!0)}}});let M=null;function g(){if(M)return M;const e=T.getEnvironment(),t=(()=>e==="prod"||e==="production"?"pPROC7dPoJ7XdxHrwsTQNXCGX79MJjhp":e==="staging"?"823rqOTwVk1ZCWVyBAdLInZ77TcFF0CF":"TMZX6evFnu87JrBHV5qLwHsld5C6hilZ")(),i=!!t,n=e!=="prod"&&e!=="production";let r=null;function c(){return i}function l(){const p=window.analytics=window.analytics||[];if(!p.initialize&&p.invoked)S.error("Segment snippet included twice.");else{p.invoked=!0,p.methods=["trackSubmit","trackClick","trackLink","trackForm","pageview","identify","reset","group","track","ready","alias","debug","page","once","off","on","addSourceMiddleware","addIntegrationMiddleware","setAnonymousId","addDestinationMiddleware"],p.factory=function(h){return function(){if(window.analytics.initialized)return window.analytics[h].apply(window.analytics,arguments);const y=Array.prototype.slice.call(arguments);return y.unshift(h),p.push(y),p}};for(let h=0;h<p.methods.length;h++){const y=p.methods[h];p[y]=p.factory(y)}p.load=function(h,y){const w=document.createElement("script");w.id="analytics-script",w.type="text/javascript",w.async=!0,w.src="https://cdn.segment.com/analytics.js/v1/"+h+"/analytics.min.js",w.onerror=()=>window.dispatchEvent(new Event("analytics-error"));const k=document.getElementsByTagName("script")[0];k.parentNode.insertBefore(w,k),p._loadOptions=y},p._writeKey=t,p.SNIPPET_VERSION="4.16.1",p.load(t),p.page(),p.ready(()=>window.dispatchEvent(new Event("analytics-ready")))}}async function f(){return r!==null||(r=new Promise((p,h)=>{if(!c())return m("Analytics is disabled."),p();if(window.addEventListener("analytics-ready",()=>{m("Analytics script loaded successfully."),p()}),window.addEventListener("analytics-error",()=>{m("Analytics script failed to load. Consider disabling your AdBlocker.",null,"error"),h()}),m("Loading Analytics script."),window.analytics)return p();l()})),r}async function u(p,h){if(!$())try{if(await this.analyticsScriptReady(),m("[identify]",[p,h]),c())return window.analytics.identify(p,h)}catch{m("[identify]",[p,h],"error")}}async function s(p,h,y){if(!$()){typeof y!="object"&&(y={});try{if(await this.analyticsScriptReady(),m("[page]",[p,h,y]),c())return window.analytics.page(p,{category:h,...y})}catch(w){console.log(w),m("[page]",[p,h,y],"error")}}}async function a(p,h,y){if(!$()){typeof y!="object"&&(y={});try{if(await this.analyticsScriptReady(),m("[track]",[p,h,y]),c())return window.analytics.track(p,{category:h,...y})}catch{m("[track]",[p,h,y],"error")}}}function m(p,h=[],y="info"){h||(h=[]),n&&S[y](`::SDK Analytics:: ${p}`,...h)}return M={analyticsScriptReady:f,isEnabled:c,identify:u,page:s,track:a,consoleMessage:m},M}g.destroy=()=>M=null;function le(){const e="Hubler Application";function t(s){var m;if(!s)throw new Error(`Missing arguments for domain "${e}"`);const a=!!s.offerId;if(a&&!s.recruitmentId)throw new Error(`Missing argument "recruitmentId" for domain "${e}"`);return{companyId:(m=s.establishmentId)==null?void 0:m.toString(),jobOfferId:a?s.offerId.toString():null,recruitmentId:a?s.recruitmentId.toString():null,selections:[a?"Application":"Spontaneous Application"]}}async function i(s){return g().page("Application Authentication Viewed",e,t(s))}async function n(s){return g().page("Application Magic Link Viewed",e,t(s))}async function r(s){return g().page("Application Job Viewed",e,t(s))}async function c(s){return g().page("Application Information Viewed",e,t(s))}async function l(s){return g().page("Application Document Viewed",e,t(s))}async function f(s){return g().page("Application Success Viewed",e,t(s))}async function u(s){if(!s.error)throw new Error(`Missing argument "error" for domain "${e}", event "Application Form Failed"`);return g().track("Application Form Failed",e,{...t(s),error:s.error})}return{applicationAuthenticationViewed:i,applicationMagicLinkViewed:n,applicationJobViewed:r,applicationInformationViewed:c,applicationDocumentViewed:l,applicationSuccessViewed:f,applicationFormFailed:u}}function de(){const e="Profile";function t(d,P){var C;if(!d)throw new Error(`Missing arguments for domain "${e}"`);const v={companyId:d.companyId?d.companyId.toString():null,hublerId:(C=d.hublerId)==null?void 0:C.toString()};return P&&(v.productId=d.companyId?d.companyId+"_2":null),d.recruitmentId&&(v.recruitmentId=d.recruitmentId.toString()),d.selections&&(v.selections=d.selections),d.institutionId&&(v.institutionId=d.institutionId.map(String)),v}async function i(d){return g().track(d.name,e,t(d.properties),!0)}async function n(d){return g().track(d.name,e,t(d.properties,!0))}async function r(d){return g().track(d.name,e,t(d.properties,!0))}async function c(d){return g().track(d.name,e,t(d.properties,!0))}async function l(d){return g().track(d.name,e,t(d.properties,!0))}async function f(d){return g().track(d.name,e,t(d.properties,!0))}async function u(d){return g().track(d.name,e,t(d.properties,!0))}async function s(d){return g().track(d.name,e,t(d.properties,!0))}async function a(d){return g().track(d.name,e,t(d.properties,!0))}async function m(d){return g().track(d.name,e,t(d.properties,!0))}async function p(d){return g().track(d.name,e,t(d.properties,!0))}async function h(d){return g().track(d.name,e,t(d.properties,!0))}async function y(d){return g().track(d.name,e,t(d.properties,!0))}async function w(d){return g().page(d.name,d.properties.category,t(d.properties,!1))}async function k(d){return g().track(d.name,e,t(d.properties,!1))}return{profileDocumentDeleted:i,profileLabelAdded:n,profileLabelRemoved:r,profileShared:c,profileArchived:l,profileCandidateAdded:f,profileCommentAdded:u,profileDocumentAdded:s,profileDocumentDownloaded:a,profileDocumentRequested:m,profileRecruitmentAdded:p,profileRecruitmentRemoved:h,profileTabSelected:y,profileViewed:w,profileEmailSent:k}}function fe(){const e="Visual Builder";function t(o,Te){if(!o)throw new Error(`Missing arguments for domain "${e}"`);const j={companyId:o.companyId?o.companyId.toString():null};return Te&&(j.productId=o.companyId?o.companyId+"_2":null),o.selections&&(j.selections=o.selections),o.error&&(j.error=o.error),j}async function i(o){return g().page(o.name,e,t(o.properties,!0))}async function n(o){return g().track(o.name,e,t(o.properties),!0)}async function r(o){return g().track(o.name,e,t(o.properties,!0))}async function c(o){return g().page(o.name,e,t(o.properties,!0))}async function l(o){return g().page(o.name,e,t(o.properties,!0))}async function f(o){return g().track(o.name,e,t(o.properties,!0))}async function u(o){return g().page(o.name,e,t(o.properties,!0))}async function s(o){return g().page(o.name,e,t(o.properties,!0))}async function a(o){return g().page(o.name,e,t(o.properties,!0))}async function m(o){return g().track(o.name,e,t(o.properties,!0))}async function p(o){return g().page(o.name,e,t(o.properties,!0))}async function h(o){return g().page(o.name,e,t(o.properties,!0))}async function y(o){return g().track(o.name,e,t(o.properties,!0))}async function w(o){return g().track(o.name,e,t(o.properties,!0))}async function k(o){return g().page(o.name,e,t(o.properties,!0))}async function d(o){return g().page(o.name,e,t(o.properties,!0))}async function P(o){return g().page(o.name,e,t(o.properties,!0))}async function v(o){return g().page(o.name,e,t(o.properties,!0))}async function C(o){return g().page(o.name,e,t(o.properties,!1))}async function ge(o){return g().track(o.name,e,t(o.properties,!0))}async function be(o){return g().track(o.name,e,t(o.properties,!0))}async function we(o){return g().track(o.name,e,t(o.properties,!0))}async function Re(o){return g().track(o.name,e,t(o.properties,!0))}async function Ae(o){return g().track(o.name,e,t(o.properties,!0))}async function Pe(o){return g().track(o.name,e,t(o.properties,!0))}async function ve(o){return g().track(o.name,e,t(o.properties,!0))}async function Ee(o){return g().track(o.name,e,t(o.properties,!0))}async function Ce(o){return g().track(o.name,e,t(o.properties,!0))}async function Ie(o){return g().track(o.name,e,t(o.properties,!0))}async function Se(o){return g().track(o.name,e,t(o.properties,!0))}async function ke(o){return g().track(o.name,e,t(o.properties,!0))}async function Oe(o){return g().track(o.name,e,t(o.properties,!0))}return{careerSitePreviewViewed:i,careerSitePublished:n,setupBenefitCustomAdded:r,setupBenefitViewed:c,setupCandidateInformationViewed:l,setupContactAdded:f,setupContactViewed:u,setupEditionDoneViewed:s,setupExternalLinkViewed:a,setupImageUploaded:m,setupImageViewed:p,setupLocationViewed:h,setupPresentationContentAdded:y,setupPresentationNewTabAdded:w,setupPresentationViewed:k,setupSettingsDoneViewed:d,setupSocialNetworkViewed:P,setupThemeViewed:v,visualBuilderViewed:C,setupImageUploadFailed:ge,fastCopyLinkClicked:be,setupBenefitCustomDeleted:we,setupBenefitCustomEdited:Re,setupContactDeleted:Ae,setupContactEdited:Pe,setupContactNewClicked:ve,setupPresentationContentDeleted:Ee,setupPresentationContentDuplicated:Ce,setupPresentationContentMoved:Ie,setupPresentationTabDeleted:Se,setupPresentationTabEdited:ke,setupPresentationTabMoved:Oe}}const Z=Object.freeze(Object.defineProperty({__proto__:null,useAnalyticsHublerApplication:le,useAnalyticsProfile:de,useAnalyticsVisualBuilder:fe},Symbol.toStringTag,{value:"Module"}));function oi(){function e(i){return g().identify(i.id,{email:i.email,firstName:i.firstname,lastName:i.lastname,createdAt:i.createdAt,type:"Hubler",lang:"fr",medium:t()?"MOBILE_DEVICE":"WEB_BROWSER"})}function t(){let i=!1;return function(n){(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i.test(n)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(n.substr(0,4)))&&(i=!0)}(navigator.userAgent||navigator.vendor||window.opera),i}return{identifyCandidate:e}}const ai="AIzaSyDicyRD6rvVdnicp1tgV0ElazASNGbyyTs";let me=!1;const pe=()=>new Promise(e=>{me||window.google&&window.google.maps?e():(window.addEventListener("gmap-ready",()=>e()),li())}),ci=(e,t)=>pe().then(()=>ui(e,t)),ui=(e,t)=>{const i=new window.google.maps.places.Autocomplete(e,{componentRestrictions:{country:["fr","re","yt","gp","mq"]}});window.google.maps.event.addListener(i,"place_changed",()=>{const n=i.getPlace();n.formatted_address&&t&&t(n.formatted_address,n)})},li=()=>{window.onGmapScriptReady=function(){};const e=document.createElement("script");e.src="https://maps.googleapis.com/maps/api/js?key="+ai+"&libraries=places&callback=onGmapScriptReady",e.async=!0,e.defer=!0,e.onload=()=>window.dispatchEvent(new Event("gmap-ready")),document.body.appendChild(e),me=!0},di={scriptReady:pe,autocompleteInput:ci},fi={common:{the:"le",from:"de"},timeAgo:{"just-now":"à l'instant",ago:"il y a {0}",in:"dans {0}","last-month":"le mois dernier","next-month":"le mois prochain",month:"mois | mois","last-year":"l'année dernière","next-year":"l'année prochaine",year:"an | ans",yesterday:"hier",tomorrow:"demain",day:"jour | jours","last-week":"la semaine dernière","next-week":"la semaine prochaine",week:"semaine | semaines",hour:"heure | heures",minute:"minute | minutes",second:"seconde | secondes"}},mi={fr:fi};let q=null;const he=()=>q,pi=(e={})=>{let t=e.locale||"fr";const i=u=>t=u,n=()=>t,r=G(mi,(e==null?void 0:e.messages)||{}),c=(u,s)=>{const a=O(r,`${t}.${u}`);return a?s?hi(a,s):a:u},l=(u,s)=>{const a=O(r,`${t}.${u}`);return a?yi(a,s):u};return q={t:c,tNode:l,setLocale:i,getLocale:n,install:u=>{u.config.globalProperties.$t=c,u.config.globalProperties.$tNode=l}},q},hi=(e,t)=>e?e.replace(/{{ ?([a-zA-Z_.]+) ?}}/g,(i,n)=>O(t,n)):null,yi=(e,t)=>{if(!e)return null;const i=e.split(/(\{[{%]+[^{}]*[%}]+})/g).filter(n=>n!=="").map(n=>{const r=n.startsWith("{%")&&n.endsWith("%}")?"slot":n.startsWith("{{")&&n.endsWith("}}")?"variable":"text";if(r==="text")return()=>X.text(n);n=n.replace(/[{}%]/g,"").trim();const c=n.match(/^[a-zA-Z_.]+/)[0];n=n.replace(c,"").trim();const l={};return n!==""&&([...n.matchAll(/([a-zA-Z_.]+)(=([a-zA-Z_.]+))?/g)].reduce((s,a)=>(a[3]===void 0?H(s,a[1],O(t,a[1])):H(s,a[1],O(t,a[3])),s),l),[...n.matchAll(/([a-zA-Z_.]+)="([^"]+)"/g)].reduce((s,a)=>{let m=a[2];return new RegExp(/^[0-9]*$/).exec(a[2])?m=parseInt(a[2]):new RegExp(/^(true|false)$/).exec(a[2])&&(m=a[2]==="true"),s[a[1]]=m,s},l)),f=>X[r](c,t,f,l)});return{setup:(n,{slots:r})=>()=>i.map(c=>c(r))}},X={slot:(e,t,i,n)=>L.h("span",{class:"node node--slot"},i[e.trim()](n)),variable:(e,t)=>L.h("span",{class:"node node--variable"},O(t,e.trim())),text:e=>L.h("span",{class:"node node--text"},e)};function gi(e){const{t}=he(),i={justNow:t("timeAgo.just-now"),past:n=>n.match(/\d/)?t("timeAgo.ago",[n]):n,future:n=>n.match(/\d/)?t("timeAgo.in",[n]):n,month:(n,r)=>n===1?t(r?"timeAgo.last-month":"timeAgo.next-month"):`${n} ${t("timeAgo.month",n)}`,year:(n,r)=>n===1?t(r?"timeAgo.last-year":"timeAgo.next-year"):`${n} ${t("timeAgo.year",n)}`,day:(n,r)=>n===1?t(r?"timeAgo.yesterday":"timeAgo.tomorrow"):`${n} ${t("timeAgo.day",n)}`,week:(n,r)=>n===1?t(r?"timeAgo.last-week":"timeAgo.next-week"):`${n} ${t("timeAgo.week",n)}`,hour:n=>`${n} ${t("timeAgo.hour",n)}`,minute:n=>`${n} ${t("timeAgo.minute",n)}`,second:n=>`${n} ${t("timeAgo.second",n)}`,invalid:""};return Ne.useTimeAgo(e,{fullDateFormatter:n=>n.toLocaleDateString(),messages:i})}function bi(){let e=null;function t(){return e}function i(){return e.controller}function n(){return"use"+e.controller.charAt(0).toUpperCase()+e.controller.slice(1)+"QSController"}function r(){return e.action}function c(){return e.arguments}function l(){return!!(e&&e.controller&&e.action)}function f(){window.location.search.length!==0&&(e=window.location.search.substring(1).split("&").reduce((u,s)=>{const a=s.split("=");return a[0]==="controller"||a[0]==="action"?u[a[0]]=decodeURIComponent(a[1]):u.arguments[a[0]]=decodeURIComponent(a[1]),u},{controller:null,action:null,arguments:{}}))}return f(),{getParams:t,getController:i,getControllerComposableName:n,getAction:r,getArguments:c,hasAction:l}}function wi(){async function e({domain:n,event:r,...c}){const l="useAnalytics"+n.charAt(0).toUpperCase()+n.slice(1);if(!t(l))throw new Error(`Domain ${n} is not defined`);const f=Z[l]();if(!i(f,r))throw new Error(`Event ${r} is not defined in domain ${n}`);return f[r](c)}function t(n){return!!Z[n]}function i(n,r){return!!n[r]}return{call:e}}const Y=Object.freeze(Object.defineProperty({__proto__:null,useAnalyticsQSController:wi},Symbol.toStringTag,{value:"Module"}));function Ri(e){if(!e.hasAction())throw new Error("No action found in router");function t(){if(!i())throw new Error(`Controller ${e.getController()} not found`);const r=Y[e.getControllerComposableName()]();if(!n(r))throw new Error(`Action ${e.getAction()} not found in controller ${e.getController()}`);return r[e.getAction()](e.getArguments())}function i(){return e.getControllerComposableName()in Y}function n(r){return e.getAction()in r}return{dispatch:t}}function Ai(){let e=!1;function t(r,c,l){n(),l()}function i(r,c,l){if(!e)return e=!0,t(r,c,l);l()}function n(){const r=bi();if(!r.hasAction())return;Ri(r).dispatch()}return{vueRouterBeforeEach:t,vueRouterBeforeFirst:i,handle:n}}const Pi=()=>({getAssetUrl:t=>`${T.getBaseAssetsUrl()}${t}`}),R=()=>T.getMainAppHost(),vi=()=>`${R()}/rh/establishments`,Ei=e=>`${R()}/rh/establishment/${e}`,Ci=e=>{var t;return typeof e=="string"?e:typeof e=="object"&&((t=e==null?void 0:e.urls)!=null&&t.display)?e.urls.display:null},Ii=e=>`${R()}/candidate-invite/establishment/${e}`,Si=(e,t=!1)=>t?`${R()}/cvbank/${e}/`:`${R()}/rh/establishment/${e}/cvtheque/`,ki=(e,t)=>`${R()}/user-profile/establishment/${e}/user/${t}`,Oi=e=>`${R()}/rh/establishment/${e}/recruitment`,Ti=(e,t)=>`${R()}/rh/establishment/${e}/recruitment/${t}`,Li=(e,t)=>`${R()}/rh/establishment/${e}/recruitment/${t}/kanban`,$i=e=>`${R()}/rh/establishment/${e}/career-configuration`,Mi=(e,t=null)=>t?`${R()}/career-website/${e}/${t}`:`${R()}/career-website/${e}`,Di=(e,t)=>`${R()}/career-website-preview/${e}/${t}`,Ni=(e,t=null)=>{const i=R().replace("://",`://${e}.`);return t?`${i}?_version=${t}`:`${i}`},ji=e=>`${R()}/rh/establishment/${e}/stats`,_i=e=>`${R()}/rh/establishment/${e}/backoffice`,xi=()=>`${R()}/rh/settings/general`;function Bi(){return{root:R,establishments:vi,establishment:Ei,img:Ci,candidateInvite:Ii,cvtheque:Si,userProfile:ki,recruitments:Oi,recruitment:Ti,recruitmentKanban:Li,career:$i,careerConfig:Mi,careerPreview:Di,careerWebsite:Ni,statistics:ji,backoffice:_i,userSettings:xi}}const ee=new Set;let D,Q={ignore:e=>e.startsWith("Ui")};const z=e=>{if(e!=null&&e.classList){e._cssChecked=!0;for(const t of e.classList)D.has(t)||ee.has(t)||Q.ignore(t)||(ee.add(t),S.error(`Undefined CSS class: ${t}`))}},ye=e=>{var t;for(const i of e)if(i!=null&&i.cssRules&&(i==null?void 0:i.cssRules.length)>0)ye(i.cssRules);else if(i.selectorText){const n=(t=i.selectorText)==null?void 0:t.match(/\.[\w-]+/g);if(n)for(const r of n)D.add(r.substr(1))}},Ui=(e={})=>{if(D)return D;D=new Set,Q={...Q,...e},ye(document.styleSheets),new MutationObserver(i=>{for(const n of i)if(n.type==="childList"&&(n!=null&&n.addedNodes)){for(const r of n.addedNodes)if(!(r.nodeType===3||r.nodeType===8)){z(r);for(const c of r.querySelectorAll("*"))z(c)}}else(n==null?void 0:n.attributeName)==="class"&&z(n.target)}).observe(document,{attributes:!0,childList:!0,subtree:!0})},Vi="0.2.38";exports.BaseLogger=V;exports.Gmap=di;exports.SDKConfig=T;exports.SDKLogger=S;exports.VERSION=Vi;exports._clone=ne;exports._get=O;exports._merge=G;exports._set=H;exports.createI18n=pi;exports.inBrowser=Je;exports.inNode=$;exports.useActivityRepository=At;exports.useAnalyticsHublerApplication=le;exports.useAnalyticsIdentify=oi;exports.useAnalyticsProfile=de;exports.useAnalyticsVisualBuilder=fe;exports.useAssetUrls=Pi;exports.useAuthentication=N;exports.useAuthorization=ue;exports.useAuthorizationStore=si;exports.useCanAccessEstablishmentMiddleware=ri;exports.useCandidateRepository=$t;exports.useCommentRepository=_t;exports.useContractTypeRepository=Bt;exports.useCookieStorage=ie;exports.useCvbankRepository=Vt;exports.useCvthequeRepository=zt;exports.useDiplomaRepository=qt;exports.useDocumentRepository=Zt;exports.useDomainUrls=Bi;exports.useEmailHistoryRepository=Yt;exports.useEmailRepository=nn;exports.useEmailTemplateRepository=on;exports.useEstablishmentCareerRepository=fn;exports.useEstablishmentRepository=K;exports.useFeatureFlagRepository=gn;exports.useI18n=he;exports.useJobRepository=Rn;exports.useLabelRepository=In;exports.useLocaleTimeAgo=gi;exports.useOfferRepository=kn;exports.usePrivateRequest=b;exports.useQSAction=Ai;exports.useRecruiterRepository=Tn;exports.useRecruitmentRepository=_n;exports.useRegisterRepository=Fn;exports.useRegistrationRepository=Hn;exports.useRequest=A;exports.useSpecialityRepository=Gn;exports.useTagRepository=Wn;exports.useTalentRepository=Xn;exports.useUndefinedCssClasses=Ui;exports.useUserRepository=W;
|
|
6
|
+
*/var te=xe,J=Be,_e=Object.prototype.toString,_=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;function xe(e,t){if(typeof e!="string")throw new TypeError("argument str must be a string");for(var i={},n=t||{},r=n.decode||Ue,c=0;c<e.length;){var l=e.indexOf("=",c);if(l===-1)break;var m=e.indexOf(";",c);if(m===-1)m=e.length;else if(m<l){c=e.lastIndexOf(";",l-1)+1;continue}var u=e.slice(c,l).trim();if(i[u]===void 0){var s=e.slice(l+1,m).trim();s.charCodeAt(0)===34&&(s=s.slice(1,-1)),i[u]=ze(s,r)}c=m+1}return i}function Be(e,t,i){var n=i||{},r=n.encode||Ve;if(typeof r!="function")throw new TypeError("option encode is invalid");if(!_.test(e))throw new TypeError("argument name is invalid");var c=r(t);if(c&&!_.test(c))throw new TypeError("argument val is invalid");var l=e+"="+c;if(n.maxAge!=null){var m=n.maxAge-0;if(isNaN(m)||!isFinite(m))throw new TypeError("option maxAge is invalid");l+="; Max-Age="+Math.floor(m)}if(n.domain){if(!_.test(n.domain))throw new TypeError("option domain is invalid");l+="; Domain="+n.domain}if(n.path){if(!_.test(n.path))throw new TypeError("option path is invalid");l+="; Path="+n.path}if(n.expires){var u=n.expires;if(!Fe(u)||isNaN(u.valueOf()))throw new TypeError("option expires is invalid");l+="; Expires="+u.toUTCString()}if(n.httpOnly&&(l+="; HttpOnly"),n.secure&&(l+="; Secure"),n.partitioned&&(l+="; Partitioned"),n.priority){var s=typeof n.priority=="string"?n.priority.toLowerCase():n.priority;switch(s){case"low":l+="; Priority=Low";break;case"medium":l+="; Priority=Medium";break;case"high":l+="; Priority=High";break;default:throw new TypeError("option priority is invalid")}}if(n.sameSite){var a=typeof n.sameSite=="string"?n.sameSite.toLowerCase():n.sameSite;switch(a){case!0:l+="; SameSite=Strict";break;case"lax":l+="; SameSite=Lax";break;case"strict":l+="; SameSite=Strict";break;case"none":l+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}}return l}function Ue(e){return e.indexOf("%")!==-1?decodeURIComponent(e):e}function Ve(e){return encodeURIComponent(e)}function Fe(e){return _e.call(e)==="[object Date]"||e instanceof Date}function ze(e,t){try{return t(e)}catch{return e}}function He(){const e=typeof global>"u"?void 0:global.TEST_HAS_DOCUMENT_COOKIE;return typeof e=="boolean"?e:typeof document=="object"&&typeof document.cookie=="string"}function Qe(e){return typeof e=="string"?te(e):typeof e=="object"&&e!==null?e:{}}function F(e,t={}){const i=qe(e);if(!t.doNotParse)try{return JSON.parse(i)}catch{}return e}function qe(e){return e&&e[0]==="j"&&e[1]===":"?e.substr(2):e}class Ge{constructor(t,i={}){this.changeListeners=[],this.HAS_DOCUMENT_COOKIE=!1,this.update=()=>{if(!this.HAS_DOCUMENT_COOKIE)return;const r=this.cookies;this.cookies=te(document.cookie),this._checkChanges(r)};const n=typeof document>"u"?"":document.cookie;this.cookies=Qe(t||n),this.defaultSetOptions=i,this.HAS_DOCUMENT_COOKIE=He()}_emitChange(t){for(let i=0;i<this.changeListeners.length;++i)this.changeListeners[i](t)}_checkChanges(t){new Set(Object.keys(t).concat(Object.keys(this.cookies))).forEach(n=>{t[n]!==this.cookies[n]&&this._emitChange({name:n,value:F(this.cookies[n])})})}_startPolling(){this.pollingInterval=setInterval(this.update,300)}_stopPolling(){this.pollingInterval&&clearInterval(this.pollingInterval)}get(t,i={}){return i.doNotUpdate||this.update(),F(this.cookies[t],i)}getAll(t={}){t.doNotUpdate||this.update();const i={};for(let n in this.cookies)i[n]=F(this.cookies[n],t);return i}set(t,i,n){n?n=Object.assign(Object.assign({},this.defaultSetOptions),n):n=this.defaultSetOptions;const r=typeof i=="string"?i:JSON.stringify(i);this.cookies=Object.assign(Object.assign({},this.cookies),{[t]:r}),this.HAS_DOCUMENT_COOKIE&&(document.cookie=J(t,r,n)),this._emitChange({name:t,value:i,options:n})}remove(t,i){const n=i=Object.assign(Object.assign(Object.assign({},this.defaultSetOptions),i),{expires:new Date(1970,1,1,0,0,1),maxAge:0});this.cookies=Object.assign({},this.cookies),delete this.cookies[t],this.HAS_DOCUMENT_COOKIE&&(document.cookie=J(t,"",n)),this._emitChange({name:t,value:void 0,options:i})}addChangeListener(t){this.changeListeners.push(t),this.HAS_DOCUMENT_COOKIE&&this.changeListeners.length===1&&(typeof window=="object"&&"cookieStore"in window?window.cookieStore.addEventListener("change",this.update):this._startPolling())}removeChangeListener(t){const i=this.changeListeners.indexOf(t);i>=0&&this.changeListeners.splice(i,1),this.HAS_DOCUMENT_COOKIE&&this.changeListeners.length===0&&(typeof window=="object"&&"cookieStore"in window?window.cookieStore.removeEventListener("change",this.update):this._stopPolling())}}function Ke(e,{doNotParse:t=!1,autoUpdateDependencies:i=!1}={},n=new Ge){const r=i?[...e||[]]:e;let c=n.getAll({doNotParse:!0});const l=L.ref(0),m=()=>{const u=n.getAll({doNotParse:!0});We(r||null,u,c)&&l.value++,c=u};return n.addChangeListener(m),je(()=>{n.removeChangeListener(m)}),{get:(...u)=>(i&&r&&!r.includes(u[0])&&r.push(u[0]),l.value,n.get(u[0],{doNotParse:t,...u[1]})),getAll:(...u)=>(l.value,n.getAll({doNotParse:t,...u[0]})),set:(...u)=>n.set(...u),remove:(...u)=>n.remove(...u),addChangeListener:(...u)=>n.addChangeListener(...u),removeChangeListener:(...u)=>n.removeChangeListener(...u)}}function We(e,t,i){if(!e)return!0;for(const n of e)if(t[n]!==i[n])return!0;return!1}const Je=()=>typeof window<"u"&&typeof window.document<"u",$=()=>typeof process<"u"&&process.versions!=null&&process.versions.node!=null,O=(e,t,i)=>{const n=typeof t=="string"?t.split("."):[t];let r=e;const c=m=>m!=null,l=m=>typeof m=="object";for(const[m,u]of n.entries()){if(!c(r))return i;if(m===n.length-1)return c(r[u])?r[u]:i;if(!l(r[u]))return i;r=r[u]}return i},H=(e,t,i)=>{const n=typeof t=="string"?t.split("."):[t],r=m=>typeof m=="number"||/^\d$/g.test(m),c=m=>parseInt(m,10);let l=e;return n.forEach((m,u)=>{if(u===n.length-1)l[m]=i;else{const s=r(n[u+1])?[]:{};m=r(m)?c(m):m,l[m]=l[m]??s,l=l[m]}}),e},ne=e=>{if(typeof e=="object"){if(Array.isArray(e))return[...e];if(Object(e)===e)return{...e}}return e},G=(e,t)=>{const i={...e};for(const[n,r]of Object.entries(t))n in i&&typeof i[n]=="object"&&typeof r=="object"?i[n]=G(i[n],r):i[n]=ne(r);return i};function ie(){const e=Ke();function t(c){return e.get(c)}function i(c,l){return e.set(c,l,$()?void 0:{sameSite:"none",secure:!0})}function n(c){return e.remove(c,$()?void 0:{sameSite:"none",secure:!0})}function r(){Object.keys(e.getAll()).forEach(c=>n(c))}return{getItem:t,setItem:i,removeItem:n,clear:r}}let x=null;function N(e={auth:"token",refresh:"refresh_token",expiration:"token_expiration_date"},t=ie()){if(x)return x;function i(){return t.getItem(e.auth)}function n(){return t.getItem(e.refresh)}function r(){return t.getItem(e.expiration)}function c(p,h){const g=a(p);if(!g.exp)throw new Error("Invalid JWT token.");t.setItem(e.auth,p),t.setItem(e.refresh,h),t.setItem(e.expiration,((g.exp-60)*1e3).toString())}function l(){t.removeItem(e.auth),t.removeItem(e.refresh),t.removeItem(e.expiration)}function m(){return u()&&!s()}function u(){return!!i()}function s(){const p=r();return p?new Date(p)<new Date:!0}function a(p){return JSON.parse(atob(p.split(".")[1]))}function f(){return t}return x={keys:e,getAuthToken:i,getRefreshToken:n,getExpiration:r,authenticate:c,clear:l,isAuthenticated:m,hasAuth:u,isExpired:s,getStorage:f},x}function Ze(e){let t={"Content-Type":"application/json"};e&&i(e);function i(g,w=!1){return t=w?g:{...t,...g},this}function n(){return t}function r(g,w){return t[g]=w,this}function c(g){return t[g]}function l(g){return t[g]&&delete t[g],this}function m(g){return r("Authorization","Bearer "+g),this}function u(){return l("Authorization"),this}function s(){return!!c("Authorization")}function a(){return r("Content-Type","multipart/form-data"),this}function f(){return r("Content-Type","application/json"),this}function p(){return c("Content-Type")==="multipart/form-data"}function h(){return c("Content-Type")==="application/json"}return{setHeaders:i,getHeaders:n,setHeader:r,getHeader:c,removeHeader:l,setAuthorization:m,removeAuthorization:u,hasAuthorization:s,setFormData:a,setJson:f,isFormData:p,isJson:h}}function Xe(e){let t=null;e&&i(e);function i(r){if(r=r.toLowerCase(),!["get","post","put","patch","delete"].includes(r))throw new Error("Invalid method.");return t=r,this}function n(){return t}return{setMethod:i,getMethod:n}}function Ye(e,t,i){let n=null;i&&r(i);function r(s){if(!["post","put","patch"].includes(e.getMethod()))throw new Error("Payload can only be set for POST, PUT and PATCH requests.");return s instanceof FormData?t.setFormData():l(s)&&(s=m(s),t.setFormData()),t.isFormData()&&e.getMethod()==="put"&&(e.setMethod("post"),s.append("_method","PUT")),n=s,this}function c(){return n}function l(s){for(const a in s){const f=s[a];if(u(f))return!0;if(typeof f=="object"&&l(f))return!0}return!1}function m(s,a=null,f=0){const p=!a;p&&(a=new FormData);for(const h in s){const g=s[h];u(g)?(s[h]="<<FileIndex:"+f+">>",a.append(f,g,g.name),f++):typeof g=="object"&&(s[h]=m(s[h],a,f))}return p?(a.append("payload",JSON.stringify(s)),a):s}function u(s){return typeof File<"u"&&s instanceof File||typeof Blob<"u"&&s instanceof Blob}return{setPayload:r,getPayload:c}}const E=class E{constructor(t={}){I(this,"level",3);I(this,"logger");I(this,"prefix");this.logger=t.logger||console,this.prefix=t.prefix||""}setLevel(t){this.level=t}debug(...t){this.level<=E.LEVEL_DEBUG&&B(this.logger.debug,this.prefix,t)}info(...t){this.level<=E.LEVEL_INFO&&B(this.logger.info,this.prefix,t)}warn(...t){this.level<=E.LEVEL_WARN&&B(this.logger.warn,this.prefix,t)}error(...t){this.level<=E.LEVEL_ERROR&&B(this.logger.error,this.prefix,t)}};I(E,"LEVEL_DEBUG",0),I(E,"LEVEL_INFO",1),I(E,"LEVEL_WARN",2),I(E,"LEVEL_ERROR",3),I(E,"LEVEL_OFF",4);let V=E;const B=(e,t,i)=>{t?e(t,...i):e(...i)},S=new V({prefix:"[SDK]"});let re=null,se=null,oe=null,ae="/",ce=null;const et=()=>re,tt=e=>{if(S.info("[Config] Environment:",e),!e)throw new Error("Invalid environment.");re=e},nt=()=>se,it=e=>{if(S.info("[Config] API Host:",e),!e)throw new Error("Invalid API host.");se=e},rt=()=>ce,st=e=>{ce=e},ot=()=>oe,at=e=>{if(S.info("[Config] Main App Host:",e),!e)throw new Error("Invalid main app host.");oe=e},ct=e=>{S.info("[Config] Base Assets Urls:",e),ae=e},ut=()=>ae,T={getEnvironment:et,getApiHost:nt,getErrorHandler:rt,setEnvironment:tt,setApiHost:it,setErrorHandler:st,getMainAppHost:ot,setMainAppHost:at,setBaseAssetsUrl:ct,getBaseAssetsUrl:ut};function lt(e){const t=T.getApiHost().replace(/\/$/g,"");let i=null,n={},r={};e&&m(e);function c(){return t+u()+h()}function l(){return u(!0,!0)}function m(d){return i="/"+d.replace(/^\//g,""),this}function u(d=!0,P=!1){return d?i.replace(/:(\w+)/g,(v,C)=>P?"*":r[C]||":"+C):i}function s(d){return n=d,this}function a(d,P){return n[d]=P,this}function f(d){return n[d]&&delete n[d],this}function p(){return Object.keys(n).length>0}function h(d=!0){if(!p())return"";let P="";for(const v in n)if(Array.isArray(n[v]))for(const C of n[v])P+=(P.length?"&":"")+`${v}[]=`+C;else P+=(P.length?"&":"")+v+"="+n[v];return(d?"?":"")+P}function g(d){return r=d,this}function w(d,P){return r[d]=P,this}function k(d){return r[d]&&delete r[d],this}return{setPath:m,getPath:u,getUri:c,getMockUri:l,setQueryParams:s,setQueryParam:a,removeQueryParam:f,hasQuery:p,getQueryString:h,setRouteParams:g,setRouteParam:w,removeRouteParam:k}}function dt(e){let t=[];function i(){return t=s(arguments),l(),this}function n(){return t.length>0}function r(a){return t.includes(a.trim())?this:(t.push(a.trim()),l(),this)}function c(a){const f=t.indexOf(a.trim());return f===-1?this:(t.splice(f,1),l(),this)}function l(){t.length?e.setQueryParam("groups",u(t)):e.removeQueryParam("groups")}function m(a){return a.split(",").map(f=>f.trim())}function u(a){return a.join(",")}function s(a){let f=[];return a.length===1?typeof a[0]=="string"?f=m(a[0]):Array.isArray(a[0])&&(f=a[0]):f=Array.from(a),f}return{setGroups:i,hasGroups:n,addGroup:r,removeGroup:c}}function mt(e){let t=!1,i=!1,n=1,r=10;function c(){return t=!0,l(),this}function l(){i=!0;const h=p(arguments);return s(h.page||1,!1),a(h.perPage||r,!1),f(),this}function m(){return i=!1,f(),this}function u(){return i}function s(h,g=!0){return t=!0,i=!0,n=h,g&&f(),this}function a(h,g=!0){return t=!0,i=!0,r=h,g&&f(),this}function f(){t?u()?(e.removeQueryParam("pagination"),e.setQueryParam("page",n),e.setQueryParam("nbResultPerPage",r)):(e.removeQueryParam("page"),e.removeQueryParam("nbResultPerPage"),e.setQueryParam("pagination","false")):(e.removeQueryParam("page"),e.removeQueryParam("nbResultPerPage"),e.removeQueryParam("pagination"))}function p(h){if(h.length===1&&typeof h[0]=="object")return h[0];const g={};return h.length>=1&&(g.page=h[0]),h.length>=2&&(g.perPage=h[1]),g}return{isList:c,paginate:l,disablePagination:m,hasPagination:u,setPage:s,setPerPage:a}}function ft(e){let t=!1,i="id",n="ASC";function r(){t=!0;const a=s(arguments);return a.orderBy&&l(a.orderBy,!1),a.orderDir&&m(a.orderDir,!1),u(),this}function c(){return t}function l(a,f=!0){return t=!0,i=a,f&&u(),this}function m(a,f=!0){if(a=a.toUpperCase(),["ASC","DESC"].indexOf(a)===-1)throw new Error("Invalid order direction");return t=!0,n=a,f&&u(),this}function u(){c()&&(e.setQueryParam("orderBy",i),e.setQueryParam("orderDirection",n))}function s(a){if(a.length===1&&typeof a[0]=="object")return a[0];const f={};return a.length>=1&&(f.orderBy=a[0]),a.length>=2&&(f.orderDir=a[1]),f}return{setOrder:r,hasOrder:c,setOrderBy:l,setOrderDir:m}}function pt(){let e=!1;function t(){return e=!0,this}function i(){return e}return{setSilent:t,isSilent:i}}function ht(){let e="json";function t(n="json"){if(["arraybuffer","document","json","text","stream","blob"].indexOf(n)===-1)throw new Error("Invalid response type");return e=n,this}function i(){return e}return{setResponseType:t,getResponseType:i}}function yt(e){function t(){return e}function i(){return e.data}function n(){return e.data}return{getResponse:t,getData:i,getPayload:n}}function gt(e,t=!1){let i=!1,n=!1;return e.response?(i=!0,n=!0):e.request&&(i=!0),!t&&T.getErrorHandler()&&T.getErrorHandler()(e),{sent:i,responded:n,error:e}}function bt(e){function t(){return e}function i(){return e.data}function n(){return e.data}function r(){return e.data["@type"]==="hydra:Collection"}function c(){return r()?e.data["hydra:member"]:null}function l(){return r()?e.data["hydra:totalItems"]:null}function m(){return r()?e.data["hydra:view"]&&e.data["hydra:view"]["hydra:last"]:!1}function u(){return!r()||!m()?null:parseInt(e.data["hydra:view"]["@id"].match(/page=(\d+)/)[1])}function s(){return!r()||!m()?null:parseInt(e.data["hydra:view"]["hydra:last"].match(/page=(\d+)/)[1])}return{getResponse:t,getData:i,getPayload:n,isCollection:r,getCollection:c,getTotal:l,hasPagination:m,getPage:u,getPages:s}}function wt(e,t,i,n,r,c){async function l(){const u=i.getMethod(),s=t.getUri(),a=e.getHeaders(),f=n.getPayload(),p=[s];["post","put","patch"].includes(u)&&p.push(f||{}),p.push({headers:a,responseType:c.getResponseType()}),S.info("[Request] Sending request:",`[${u.toUpperCase()}]`,s);try{const h=await Me[u](...p);return m(h)}catch(h){throw gt(h,r.isSilent())}}function m(u){if(u.headers){const s=Object.keys(u.headers),a=s.map(f=>f.toLowerCase()).indexOf("content-type");if(a!==-1&&u.headers[s[a]].includes("application/ld+json"))return bt(u)}return yt(u)}return{send:l}}function A(e,t="get",i=null){const n=Ze(),r=lt(e),c=Xe(t),l=Ye(c,n,i),m=dt(r),u=mt(r),s=ft(r),a=pt(),f=ht(),p=wt(n,r,c,l,a,f);return{...n,...r,...c,...l,...m,...u,...s,...a,...f,...p}}function y(e,t="get",i=null){const n=A(e,t,i),r=N();r.isAuthenticated()&&n.setAuthorization(r.getAuthToken());const c=n.send;return n.send=async function(){if(!n.hasAuthorization())throw new Error("::SDK Request:: Request cannot be sent, missing authorization header.");return c()},n}const Rt=(e,t)=>y("/v2/activity/candidate/:candidateId/establishment/:establishmentId").setRouteParams({candidateId:e,establishmentId:t}),At=()=>({listByCandidateAndEstablishment:Rt}),Pt=(e,t,i)=>y("/candidate/:candidateId/share/establishment/:establishmentId").setMethod("post").setRouteParams({candidateId:e,establishmentId:t}).setPayload(i),vt=(e,t)=>y("/candidate/:candidateId/archive/establishment/:establishmentId").setRouteParams({candidateId:e,establishmentId:t}),Et=(e,t)=>y("/candidate/:candidateId/archive/establishment/:establishmentId").setMethod("post").setRouteParams({candidateId:e,establishmentId:t}),Ct=(e,t)=>y("/candidate/:candidateId/archive/establishment/:establishmentId").setMethod("delete").setRouteParams({candidateId:e,establishmentId:t}),It=e=>y("/v2/candidates/lookup").setQueryParam("email",e),St=(e,t)=>y("/v2/candidates").setMethod("post").setQueryParam("establishment-id",e).setFormData().setPayload(t),kt=(e,t,i)=>y("/v2/candidates/:candidateId").setQueryParam("establishment-id",t).setRouteParams({candidateId:e}).setMethod("post").setFormData().setPayload(i),Ot=e=>y("/candidate/register/close/:registrationToken").setMethod("post").setRouteParams({registrationToken:e}),Tt=e=>y("/candidate/register/open").setMethod("post").setQueryParam("groups","register:token").setPayload(e),Lt=(e,t)=>y("/establishment/:establishmentId:/candidate/invitation").setRouteParams({establishmentId:e}).setMethod("post").setPayload(t),$t=()=>({share:Pt,isArchived:vt,archive:Et,unarchive:Ct,lookupCandidate:It,createCandidate:St,updateCandidate:kt,closeIncompleteRegistration:Ot,openNewRegistration:Tt,updateInvitation:Lt}),Mt=(e,t)=>y("/comment/establishment/:establishmentId/candidate/:userId").setRouteParams({establishmentId:e,userId:t}),Dt=(e,t,i)=>y("/comment/establishment/:establishmentId/candidate/:userId").setRouteParams({establishmentId:e,userId:t}).setMethod("post").setPayload(i),Nt=(e,t)=>y("/comment/:commentId").setRouteParams({commentId:e}).setMethod("put").setPayload(t),jt=e=>y("/comment/:commentId").setRouteParams({commentId:e}).setMethod("delete"),_t=()=>({getForEstablishmentCandidate:Mt,postForEstablishmentCandidate:Dt,update:Nt,remove:jt}),xt=()=>A("contractType").isList().addGroup("Term:id").addGroup("Term:name"),Bt=(e,t=!0)=>y("contractType/establishment/:establishmentId").isList().setRouteParams({establishmentId:e}).setQueryParam("all",t).addGroup("Term:id").addGroup("Term:name"),Ut=()=>({list:xt,listByEstablishment:Bt}),Vt=e=>y("/v2/talents").isList().setQueryParam("establishment-id",e),Ft=()=>({list:Vt}),zt=(e,t,i)=>y("/cvtheque/establishment/:establishmentId/candidate/:candidateId/label/synchronize").setRouteParams({establishmentId:e,candidateId:t}).setMethod("post").setPayload(i),Ht=()=>({syncCandidateLabels:zt}),Qt=()=>A("diploma").isList().addGroup("Term:id").addGroup("Term:name"),qt=()=>({list:Qt}),Gt=e=>y("document/candidate/:candidateId").setRouteParams({candidateId:e}).isList().disablePagination(),Kt=(e,t)=>y("document/candidate/:candidateId/establishment/:establishmentId/recruiter").setRouteParams({candidateId:e,establishmentId:t}).isList().disablePagination(),Wt=(e,t)=>y("document/candidate/:candidateId/establishment/:establishmentId/candidate").setRouteParams({candidateId:e,establishmentId:t}).isList().disablePagination(),Jt=e=>y("document/recruiter").setMethod("post").setPayload(e),Zt=e=>y("document/:documentId").setRouteParams({documentId:e}).setMethod("delete"),Xt=()=>({listByCandidate:Gt,listByCandidateAndEstablishmentFromRecruiter:Kt,listByCandidateAndEstablishmentFromCandidate:Wt,addFromRecruiter:Jt,remove:Zt}),Yt=(e,t)=>y("/v2/establishments/:establishmentId/email-history").setRouteParams({establishmentId:t}).setQueryParam("receiverId",e).isList().disablePagination(),en=()=>({listByCandidateAndEstablishment:Yt}),tn=(e,t)=>y("/email/candidate/:candidateId").setMethod("post").setRouteParams({candidateId:e}).setPayload(t),nn=(e,t)=>y("/v2/emails/send").setMethod("post").setFormData().setPayload({recipientIds:e,...t}),rn=()=>({sendToCandidate:tn,sendToRecipients:nn}),sn=(e,t=!0)=>{const i=y("/v2/establishments/:establishmentId/email-templates").setRouteParams({establishmentId:e}).isList().disablePagination();return t&&i.setQueryParam("global",!0),i},on=()=>y("/v2/self/email-templates").isList().disablePagination(),an=()=>({listByEstablishment:sn,listSelf:on}),cn=(e,t)=>y("establishment-career/:establishmentId/:versionId").setRouteParams({establishmentId:e,versionId:t}),un=(e,t="published")=>y("establishment-career/:establishmentId/state/:state").setRouteParams({establishmentId:e,state:t}),ln=(e,t,i=null)=>{const n=i!==null?y("establishment-career/:establishmentId/:versionId").setRouteParams({establishmentId:e,versionId:i}):y("establishment-career/:establishmentId").setRouteParams({establishmentId:e});return n.setMethod("post").setPayload(t),n},dn=(e,t)=>y("establishment-career/:establishmentId/logo-banner").setMethod("post").setRouteParams({establishmentId:e}).setPayload(t),mn=(e,t,i)=>y("establishment-career/:establishmentId/publish/:versionId").setMethod("post").setRouteParams({establishmentId:e,versionId:t}).setPayload(i),fn=()=>({readById:cn,readByState:un,upsert:ln,uploadLogoAndBanner:dn,publish:mn}),pn=e=>A("establishment/:establishmentId").setRouteParams({establishmentId:e}),hn=e=>y("establishment/:establishmentId/authorizations").setRouteParams({establishmentId:e}),K=()=>({read:pn,authorizations:hn}),yn=e=>A("feature-flag/maintenance").setMethod("post").setPayload(e),gn=(e,t)=>A("feature-flag/establishment").setMethod("post").setPayload({establishment:e,flagName:t}),bn=()=>({maintenanceModeEnabled:yn,forEstablishment:gn}),wn=()=>A("job").isList().addGroup("Term:id").addGroup("Term:name"),Rn=(e,t=!0)=>y("job/establishment/:establishmentId").isList().setRouteParams({establishmentId:e}).setQueryParam("all",t).addGroup("Term:id").addGroup("Term:name"),An=()=>({list:wn,listByEstablishment:Rn}),Pn=e=>y("/label/establishment/:establishmentId").isList().setRouteParams({establishmentId:e}),vn=(e,t)=>y("/label/establishment/:establishmentId").setMethod("post").setRouteParams({establishmentId:e}).setPayload(t),En=(e,t)=>y("/label/:labelId").setMethod("put").setRouteParams({labelId:e}).setPayload(t),Cn=e=>y("/label/:labelId").setMethod("delete").setRouteParams({labelId:e}),In=(e,t,i)=>y("/label/establishment/:establishmentId/candidate/:candidateId/synchronize").setMethod("post").setPayload(i).setRouteParams({establishmentId:e,candidateId:t}),Sn=()=>({listByEstablishment:Pn,addToEstablishment:vn,update:En,remove:Cn,syncForCandidate:In}),kn=e=>A("offer/:offerId").setRouteParams({offerId:e}),On=()=>({read:kn}),Tn=(e,t=!1)=>{const i=y("/recruiter/establishment/:establishmentId").isList().setRouteParams({establishmentId:e});return t&&i.setQueryParam("exclude-me",1),i},Ln=()=>({listByEstablishment:Tn}),$n=e=>y("/recruitment/establishment/:establishmentId/mine").isList().setRouteParams({establishmentId:e}),Mn=(e,t)=>y("/recruitment/mine/establishment/:establishmentId/has-not/candidate/:candidateId").isList().setRouteParams({establishmentId:e,candidateId:t}),Dn=(e,t)=>y("/recruitment/mine/establishment/:establishmentId/has/candidate/:candidateId").isList().setRouteParams({establishmentId:e,candidateId:t}),Nn=(e,t)=>y("/recruitment/establishment/:establishmentId/has/candidate/:candidateId").isList().setRouteParams({establishmentId:e,candidateId:t}),jn=(e,t)=>y("/recruitment/:recruitmentId/candidate").setMethod("put").setRouteParams({recruitmentId:e}).setPayload(t),_n=(e,t)=>y("/recruitment/:recruitmentId/candidate/:candidateId").setMethod("delete").setRouteParams({recruitmentId:e,candidateId:t}),xn=()=>({mineByEstablishment:$n,mineWithoutCandidate:Mn,mineWithCandidate:Dn,withCandidate:Nn,addCandidates:jn,removeCandidate:_n}),Bn=(e,t,i,n=null)=>{const r=A("candidate/register/open").setMethod("post"),c={email:e};return t==="establishment"&&(c.establishmentId=i),t==="offer"&&(c.offerId=i),n&&(c.referer=n),r.setPayload(c),r},Un=(e,t)=>A("candidate/register/update/:token").setMethod("post").setRouteParams({token:e}).setPayload(t),Vn=e=>A("candidate/register/read/:token").setRouteParams({token:e}),Fn=e=>A("candidate/register/close/:token").setMethod("post").setRouteParams({token:e}),zn=()=>({open:Bn,update:Un,read:Vn,close:Fn}),Hn=(e,t)=>y("/v2/registrations/lookup").setQueryParam("candidate-id",e).setQueryParam("establishment-id",t),Qn=()=>({lookupEstablishment:Hn}),qn=()=>A("speciality").isList().addGroup("Term:id").addGroup("Term:name"),Gn=(e,t=!0)=>y("speciality/establishment/:establishmentId").isList().setRouteParams({establishmentId:e}).setQueryParam("all",t).addGroup("Term:id").addGroup("Term:name"),Kn=()=>({list:qn,listByEstablishment:Gn}),Wn=e=>y("/tag/public/establishment/:establishmentId").isList().setRouteParams({establishmentId:e}),Jn=()=>({listByEstablishment:Wn}),Zn=(e,t)=>y("/v2/talents/lookup").setQueryParam("candidate-id",e).setQueryParam("establishment-id",t),Xn=e=>y("/v2/talents/index").setMethod("post").setPayload(e),Yn=()=>({lookupTalent:Zn,addCandidateToTalentPool:Xn}),ei=e=>A("user/email/isset/:email").setRouteParams({email:e}),ti=()=>y("user/self").addGroup("user:self"),ni=e=>y("/user/:uuid").setRouteParams({uuid:e}),ii=e=>A("/user/:uuid").setRouteParams({uuid:e}),ri=e=>y("/user/:id/uuid").setRouteParams({id:e}),W=()=>({emailExists:ei,self:ti,byUuidPrivate:ni,byUuid:ii,fetchUuid:ri});let U;function ue(){if(U)return U;const e={user:void 0,roles:[],establishments:{}},t=async()=>{if(!N().isAuthenticated())throw new Error("::SDK Authorization:: User not authenticated");const s=(await W().self().send()).getData();e.user={id:s.id,email:s.email,firstName:s.firstName,lastName:s.lastName,avatar:s.avatar},e.roles=s.roles},i=async s=>{if(!N().isAuthenticated())throw new Error("::SDK Authorization:: User not authenticated");e.establishments[s]=(await K().authorizations(s).send()).getData()},n=s=>{if(e.user===void 0)throw new Error("::SDK Authorization:: User not fetched");return e.roles.includes(s)};return U={fetchSelf:t,fetchPermission:i,hasRole:n,hasRoleRH:()=>n("ROLE_RH"),hasRoleCandidate:()=>n("ROLE_CANDIDATE"),hasRoleAdmin:()=>n("ROLE_ADMIN"),hasPermission:(s,...a)=>{const f=e.establishments[s];if(f===void 0)throw new Error(`::SDK Authorization:: Permissions not fetched for establishment ${s}`);return a.every(p=>f[p]===!0)},clear:()=>{e.user=void 0,e.roles=[],e.establishments={}}},U}async function si(e,...t){if(!N().isAuthenticated())throw"ERR_NOT_AUTHENTICATED";const n=ue();await Promise.all([n.fetchSelf(),n.fetchPermission(e)]);for(let r=0;r<t.length;r++){const c=t[r];if(!n.hasPermission(e,c))throw"ERR_MISSING_PERMISSION"}}const oi=De.defineStore("authorization",{state:()=>({user:void 0,establishments:{}}),getters:{roles:e=>e.user.roles??[],isRH(){return this.roles.includes("ROLE_RH")},isCandidate(){return this.roles.includes("ROLE_CANDIDATE")},isAdmin(){return this.roles.includes("ROLE_ADMIN")}},actions:{async fetchSelf(e){if(this.user===void 0||e){const t=await W().self().send();this.user=t.getData()}},async fetchPermission(e,t){if(!this.establishments[e]||t){const i=await K().authorizations(e).send();this.establishments[e]=i.getData()}},hasPermission(e,...t){const i=this.establishments[e];return i===void 0?!1:t.every(n=>i[n]===!0)}}});let M=null;function b(){if(M)return M;const e=T.getEnvironment(),t=(()=>e==="prod"||e==="production"?"pPROC7dPoJ7XdxHrwsTQNXCGX79MJjhp":e==="staging"?"823rqOTwVk1ZCWVyBAdLInZ77TcFF0CF":"TMZX6evFnu87JrBHV5qLwHsld5C6hilZ")(),i=!!t,n=e!=="prod"&&e!=="production";let r=null;function c(){return i}function l(){const p=window.analytics=window.analytics||[];if(!p.initialize&&p.invoked)S.error("Segment snippet included twice.");else{p.invoked=!0,p.methods=["trackSubmit","trackClick","trackLink","trackForm","pageview","identify","reset","group","track","ready","alias","debug","page","once","off","on","addSourceMiddleware","addIntegrationMiddleware","setAnonymousId","addDestinationMiddleware"],p.factory=function(h){return function(){if(window.analytics.initialized)return window.analytics[h].apply(window.analytics,arguments);const g=Array.prototype.slice.call(arguments);return g.unshift(h),p.push(g),p}};for(let h=0;h<p.methods.length;h++){const g=p.methods[h];p[g]=p.factory(g)}p.load=function(h,g){const w=document.createElement("script");w.id="analytics-script",w.type="text/javascript",w.async=!0,w.src="https://cdn.segment.com/analytics.js/v1/"+h+"/analytics.min.js",w.onerror=()=>window.dispatchEvent(new Event("analytics-error"));const k=document.getElementsByTagName("script")[0];k.parentNode.insertBefore(w,k),p._loadOptions=g},p._writeKey=t,p.SNIPPET_VERSION="4.16.1",p.load(t),p.page(),p.ready(()=>window.dispatchEvent(new Event("analytics-ready")))}}async function m(){return r!==null||(r=new Promise((p,h)=>{if(!c())return f("Analytics is disabled."),p();if(window.addEventListener("analytics-ready",()=>{f("Analytics script loaded successfully."),p()}),window.addEventListener("analytics-error",()=>{f("Analytics script failed to load. Consider disabling your AdBlocker.",null,"error"),h()}),f("Loading Analytics script."),window.analytics)return p();l()})),r}async function u(p,h){if(!$())try{if(await this.analyticsScriptReady(),f("[identify]",[p,h]),c())return window.analytics.identify(p,h)}catch{f("[identify]",[p,h],"error")}}async function s(p,h,g){if(!$()){typeof g!="object"&&(g={});try{if(await this.analyticsScriptReady(),f("[page]",[p,h,g]),c())return window.analytics.page(p,{category:h,...g})}catch(w){console.log(w),f("[page]",[p,h,g],"error")}}}async function a(p,h,g){if(!$()){typeof g!="object"&&(g={});try{if(await this.analyticsScriptReady(),f("[track]",[p,h,g]),c())return window.analytics.track(p,{category:h,...g})}catch{f("[track]",[p,h,g],"error")}}}function f(p,h=[],g="info"){h||(h=[]),n&&S[g](`::SDK Analytics:: ${p}`,...h)}return M={analyticsScriptReady:m,isEnabled:c,identify:u,page:s,track:a,consoleMessage:f},M}b.destroy=()=>M=null;function le(){const e="Hubler Application";function t(s){var f;if(!s)throw new Error(`Missing arguments for domain "${e}"`);const a=!!s.offerId;if(a&&!s.recruitmentId)throw new Error(`Missing argument "recruitmentId" for domain "${e}"`);return{companyId:(f=s.establishmentId)==null?void 0:f.toString(),jobOfferId:a?s.offerId.toString():null,recruitmentId:a?s.recruitmentId.toString():null,selections:[a?"Application":"Spontaneous Application"]}}async function i(s){return b().page("Application Authentication Viewed",e,t(s))}async function n(s){return b().page("Application Magic Link Viewed",e,t(s))}async function r(s){return b().page("Application Job Viewed",e,t(s))}async function c(s){return b().page("Application Information Viewed",e,t(s))}async function l(s){return b().page("Application Document Viewed",e,t(s))}async function m(s){return b().page("Application Success Viewed",e,t(s))}async function u(s){if(!s.error)throw new Error(`Missing argument "error" for domain "${e}", event "Application Form Failed"`);return b().track("Application Form Failed",e,{...t(s),error:s.error})}return{applicationAuthenticationViewed:i,applicationMagicLinkViewed:n,applicationJobViewed:r,applicationInformationViewed:c,applicationDocumentViewed:l,applicationSuccessViewed:m,applicationFormFailed:u}}function de(){const e="Profile";function t(d,P){var C;if(!d)throw new Error(`Missing arguments for domain "${e}"`);const v={companyId:d.companyId?d.companyId.toString():null,hublerId:(C=d.hublerId)==null?void 0:C.toString()};return P&&(v.productId=d.companyId?d.companyId+"_2":null),d.recruitmentId&&(v.recruitmentId=d.recruitmentId.toString()),d.selections&&(v.selections=d.selections),d.institutionId&&(v.institutionId=d.institutionId.map(String)),v}async function i(d){return b().track(d.name,e,t(d.properties),!0)}async function n(d){return b().track(d.name,e,t(d.properties,!0))}async function r(d){return b().track(d.name,e,t(d.properties,!0))}async function c(d){return b().track(d.name,e,t(d.properties,!0))}async function l(d){return b().track(d.name,e,t(d.properties,!0))}async function m(d){return b().track(d.name,e,t(d.properties,!0))}async function u(d){return b().track(d.name,e,t(d.properties,!0))}async function s(d){return b().track(d.name,e,t(d.properties,!0))}async function a(d){return b().track(d.name,e,t(d.properties,!0))}async function f(d){return b().track(d.name,e,t(d.properties,!0))}async function p(d){return b().track(d.name,e,t(d.properties,!0))}async function h(d){return b().track(d.name,e,t(d.properties,!0))}async function g(d){return b().track(d.name,e,t(d.properties,!0))}async function w(d){return b().page(d.name,d.properties.category,t(d.properties,!1))}async function k(d){return b().track(d.name,e,t(d.properties,!1))}return{profileDocumentDeleted:i,profileLabelAdded:n,profileLabelRemoved:r,profileShared:c,profileArchived:l,profileCandidateAdded:m,profileCommentAdded:u,profileDocumentAdded:s,profileDocumentDownloaded:a,profileDocumentRequested:f,profileRecruitmentAdded:p,profileRecruitmentRemoved:h,profileTabSelected:g,profileViewed:w,profileEmailSent:k}}function me(){const e="Visual Builder";function t(o,Te){if(!o)throw new Error(`Missing arguments for domain "${e}"`);const j={companyId:o.companyId?o.companyId.toString():null};return Te&&(j.productId=o.companyId?o.companyId+"_2":null),o.selections&&(j.selections=o.selections),o.error&&(j.error=o.error),j}async function i(o){return b().page(o.name,e,t(o.properties,!0))}async function n(o){return b().track(o.name,e,t(o.properties),!0)}async function r(o){return b().track(o.name,e,t(o.properties,!0))}async function c(o){return b().page(o.name,e,t(o.properties,!0))}async function l(o){return b().page(o.name,e,t(o.properties,!0))}async function m(o){return b().track(o.name,e,t(o.properties,!0))}async function u(o){return b().page(o.name,e,t(o.properties,!0))}async function s(o){return b().page(o.name,e,t(o.properties,!0))}async function a(o){return b().page(o.name,e,t(o.properties,!0))}async function f(o){return b().track(o.name,e,t(o.properties,!0))}async function p(o){return b().page(o.name,e,t(o.properties,!0))}async function h(o){return b().page(o.name,e,t(o.properties,!0))}async function g(o){return b().track(o.name,e,t(o.properties,!0))}async function w(o){return b().track(o.name,e,t(o.properties,!0))}async function k(o){return b().page(o.name,e,t(o.properties,!0))}async function d(o){return b().page(o.name,e,t(o.properties,!0))}async function P(o){return b().page(o.name,e,t(o.properties,!0))}async function v(o){return b().page(o.name,e,t(o.properties,!0))}async function C(o){return b().page(o.name,e,t(o.properties,!1))}async function ge(o){return b().track(o.name,e,t(o.properties,!0))}async function be(o){return b().track(o.name,e,t(o.properties,!0))}async function we(o){return b().track(o.name,e,t(o.properties,!0))}async function Re(o){return b().track(o.name,e,t(o.properties,!0))}async function Ae(o){return b().track(o.name,e,t(o.properties,!0))}async function Pe(o){return b().track(o.name,e,t(o.properties,!0))}async function ve(o){return b().track(o.name,e,t(o.properties,!0))}async function Ee(o){return b().track(o.name,e,t(o.properties,!0))}async function Ce(o){return b().track(o.name,e,t(o.properties,!0))}async function Ie(o){return b().track(o.name,e,t(o.properties,!0))}async function Se(o){return b().track(o.name,e,t(o.properties,!0))}async function ke(o){return b().track(o.name,e,t(o.properties,!0))}async function Oe(o){return b().track(o.name,e,t(o.properties,!0))}return{careerSitePreviewViewed:i,careerSitePublished:n,setupBenefitCustomAdded:r,setupBenefitViewed:c,setupCandidateInformationViewed:l,setupContactAdded:m,setupContactViewed:u,setupEditionDoneViewed:s,setupExternalLinkViewed:a,setupImageUploaded:f,setupImageViewed:p,setupLocationViewed:h,setupPresentationContentAdded:g,setupPresentationNewTabAdded:w,setupPresentationViewed:k,setupSettingsDoneViewed:d,setupSocialNetworkViewed:P,setupThemeViewed:v,visualBuilderViewed:C,setupImageUploadFailed:ge,fastCopyLinkClicked:be,setupBenefitCustomDeleted:we,setupBenefitCustomEdited:Re,setupContactDeleted:Ae,setupContactEdited:Pe,setupContactNewClicked:ve,setupPresentationContentDeleted:Ee,setupPresentationContentDuplicated:Ce,setupPresentationContentMoved:Ie,setupPresentationTabDeleted:Se,setupPresentationTabEdited:ke,setupPresentationTabMoved:Oe}}const Z=Object.freeze(Object.defineProperty({__proto__:null,useAnalyticsHublerApplication:le,useAnalyticsProfile:de,useAnalyticsVisualBuilder:me},Symbol.toStringTag,{value:"Module"}));function ai(){function e(i){return b().identify(i.id,{email:i.email,firstName:i.firstname,lastName:i.lastname,createdAt:i.createdAt,type:"Hubler",lang:"fr",medium:t()?"MOBILE_DEVICE":"WEB_BROWSER"})}function t(){let i=!1;return function(n){(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i.test(n)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(n.substr(0,4)))&&(i=!0)}(navigator.userAgent||navigator.vendor||window.opera),i}return{identifyCandidate:e}}const ci="AIzaSyDicyRD6rvVdnicp1tgV0ElazASNGbyyTs";let fe=!1;const pe=()=>new Promise(e=>{fe||window.google&&window.google.maps?e():(window.addEventListener("gmap-ready",()=>e()),di())}),ui=(e,t)=>pe().then(()=>li(e,t)),li=(e,t)=>{const i=new window.google.maps.places.Autocomplete(e,{componentRestrictions:{country:["fr","re","yt","gp","mq"]}});window.google.maps.event.addListener(i,"place_changed",()=>{const n=i.getPlace();n.formatted_address&&t&&t(n.formatted_address,n)})},di=()=>{window.onGmapScriptReady=function(){};const e=document.createElement("script");e.src="https://maps.googleapis.com/maps/api/js?key="+ci+"&libraries=places&callback=onGmapScriptReady",e.async=!0,e.defer=!0,e.onload=()=>window.dispatchEvent(new Event("gmap-ready")),document.body.appendChild(e),fe=!0},mi={scriptReady:pe,autocompleteInput:ui},fi={common:{the:"le",from:"de"},timeAgo:{"just-now":"à l'instant",ago:"il y a {0}",in:"dans {0}","last-month":"le mois dernier","next-month":"le mois prochain",month:"mois | mois","last-year":"l'année dernière","next-year":"l'année prochaine",year:"an | ans",yesterday:"hier",tomorrow:"demain",day:"jour | jours","last-week":"la semaine dernière","next-week":"la semaine prochaine",week:"semaine | semaines",hour:"heure | heures",minute:"minute | minutes",second:"seconde | secondes"}},pi={fr:fi};let Q=null;const he=()=>Q,hi=(e={})=>{let t=e.locale||"fr";const i=u=>t=u,n=()=>t,r=G(pi,(e==null?void 0:e.messages)||{}),c=(u,s)=>{const a=O(r,`${t}.${u}`);return a?s?yi(a,s):a:u},l=(u,s)=>{const a=O(r,`${t}.${u}`);return a?gi(a,s):u};return Q={t:c,tNode:l,setLocale:i,getLocale:n,install:u=>{u.config.globalProperties.$t=c,u.config.globalProperties.$tNode=l}},Q},yi=(e,t)=>e?e.replace(/{{ ?([a-zA-Z_.]+) ?}}/g,(i,n)=>O(t,n)):null,gi=(e,t)=>{if(!e)return null;const i=e.split(/(\{[{%]+[^{}]*[%}]+})/g).filter(n=>n!=="").map(n=>{const r=n.startsWith("{%")&&n.endsWith("%}")?"slot":n.startsWith("{{")&&n.endsWith("}}")?"variable":"text";if(r==="text")return()=>X.text(n);n=n.replace(/[{}%]/g,"").trim();const c=n.match(/^[a-zA-Z_.]+/)[0];n=n.replace(c,"").trim();const l={};return n!==""&&([...n.matchAll(/([a-zA-Z_.]+)(=([a-zA-Z_.]+))?/g)].reduce((s,a)=>(a[3]===void 0?H(s,a[1],O(t,a[1])):H(s,a[1],O(t,a[3])),s),l),[...n.matchAll(/([a-zA-Z_.]+)="([^"]+)"/g)].reduce((s,a)=>{let f=a[2];return new RegExp(/^[0-9]*$/).exec(a[2])?f=parseInt(a[2]):new RegExp(/^(true|false)$/).exec(a[2])&&(f=a[2]==="true"),s[a[1]]=f,s},l)),m=>X[r](c,t,m,l)});return{setup:(n,{slots:r})=>()=>i.map(c=>c(r))}},X={slot:(e,t,i,n)=>L.h("span",{class:"node node--slot"},i[e.trim()](n)),variable:(e,t)=>L.h("span",{class:"node node--variable"},O(t,e.trim())),text:e=>L.h("span",{class:"node node--text"},e)};function bi(e){const{t}=he(),i={justNow:t("timeAgo.just-now"),past:n=>n.match(/\d/)?t("timeAgo.ago",[n]):n,future:n=>n.match(/\d/)?t("timeAgo.in",[n]):n,month:(n,r)=>n===1?t(r?"timeAgo.last-month":"timeAgo.next-month"):`${n} ${t("timeAgo.month",n)}`,year:(n,r)=>n===1?t(r?"timeAgo.last-year":"timeAgo.next-year"):`${n} ${t("timeAgo.year",n)}`,day:(n,r)=>n===1?t(r?"timeAgo.yesterday":"timeAgo.tomorrow"):`${n} ${t("timeAgo.day",n)}`,week:(n,r)=>n===1?t(r?"timeAgo.last-week":"timeAgo.next-week"):`${n} ${t("timeAgo.week",n)}`,hour:n=>`${n} ${t("timeAgo.hour",n)}`,minute:n=>`${n} ${t("timeAgo.minute",n)}`,second:n=>`${n} ${t("timeAgo.second",n)}`,invalid:""};return Ne.useTimeAgo(e,{fullDateFormatter:n=>n.toLocaleDateString(),messages:i})}function wi(){let e=null;function t(){return e}function i(){return e.controller}function n(){return"use"+e.controller.charAt(0).toUpperCase()+e.controller.slice(1)+"QSController"}function r(){return e.action}function c(){return e.arguments}function l(){return!!(e&&e.controller&&e.action)}function m(){window.location.search.length!==0&&(e=window.location.search.substring(1).split("&").reduce((u,s)=>{const a=s.split("=");return a[0]==="controller"||a[0]==="action"?u[a[0]]=decodeURIComponent(a[1]):u.arguments[a[0]]=decodeURIComponent(a[1]),u},{controller:null,action:null,arguments:{}}))}return m(),{getParams:t,getController:i,getControllerComposableName:n,getAction:r,getArguments:c,hasAction:l}}function Ri(){async function e({domain:n,event:r,...c}){const l="useAnalytics"+n.charAt(0).toUpperCase()+n.slice(1);if(!t(l))throw new Error(`Domain ${n} is not defined`);const m=Z[l]();if(!i(m,r))throw new Error(`Event ${r} is not defined in domain ${n}`);return m[r](c)}function t(n){return!!Z[n]}function i(n,r){return!!n[r]}return{call:e}}const Y=Object.freeze(Object.defineProperty({__proto__:null,useAnalyticsQSController:Ri},Symbol.toStringTag,{value:"Module"}));function Ai(e){if(!e.hasAction())throw new Error("No action found in router");function t(){if(!i())throw new Error(`Controller ${e.getController()} not found`);const r=Y[e.getControllerComposableName()]();if(!n(r))throw new Error(`Action ${e.getAction()} not found in controller ${e.getController()}`);return r[e.getAction()](e.getArguments())}function i(){return e.getControllerComposableName()in Y}function n(r){return e.getAction()in r}return{dispatch:t}}function Pi(){let e=!1;function t(r,c,l){n(),l()}function i(r,c,l){if(!e)return e=!0,t(r,c,l);l()}function n(){const r=wi();if(!r.hasAction())return;Ai(r).dispatch()}return{vueRouterBeforeEach:t,vueRouterBeforeFirst:i,handle:n}}const vi=()=>({getAssetUrl:t=>`${T.getBaseAssetsUrl()}${t}`}),R=()=>T.getMainAppHost(),Ei=()=>`${R()}/rh/establishments`,Ci=e=>`${R()}/rh/establishment/${e}`,Ii=e=>{var t;return typeof e=="string"?e:typeof e=="object"&&((t=e==null?void 0:e.urls)!=null&&t.display)?e.urls.display:null},Si=e=>`${R()}/candidate-invite/establishment/${e}`,ki=(e,t=!1)=>t?`${R()}/cvbank/${e}/`:`${R()}/rh/establishment/${e}/cvtheque/`,Oi=(e,t)=>`${R()}/user-profile/establishment/${e}/user/${t}`,Ti=e=>`${R()}/rh/establishment/${e}/recruitment`,Li=(e,t)=>`${R()}/rh/establishment/${e}/recruitment/${t}`,$i=(e,t)=>`${R()}/rh/establishment/${e}/recruitment/${t}/kanban`,Mi=e=>`${R()}/rh/establishment/${e}/career-configuration`,Di=(e,t=null)=>t?`${R()}/career-website/${e}/${t}`:`${R()}/career-website/${e}`,Ni=(e,t)=>`${R()}/career-website-preview/${e}/${t}`,ji=(e,t=null)=>{const i=R().replace("://",`://${e}.`);return t?`${i}?_version=${t}`:`${i}`},_i=e=>`${R()}/rh/establishment/${e}/stats`,xi=e=>`${R()}/rh/establishment/${e}/backoffice`,Bi=()=>`${R()}/rh/settings/general`;function Ui(){return{root:R,establishments:Ei,establishment:Ci,img:Ii,candidateInvite:Si,cvtheque:ki,userProfile:Oi,recruitments:Ti,recruitment:Li,recruitmentKanban:$i,career:Mi,careerConfig:Di,careerPreview:Ni,careerWebsite:ji,statistics:_i,backoffice:xi,userSettings:Bi}}const ee=new Set;let D,q={ignore:e=>e.startsWith("Ui")};const z=e=>{if(e!=null&&e.classList){e._cssChecked=!0;for(const t of e.classList)D.has(t)||ee.has(t)||q.ignore(t)||(ee.add(t),S.error(`Undefined CSS class: ${t}`))}},ye=e=>{var t;for(const i of e)if(i!=null&&i.cssRules&&(i==null?void 0:i.cssRules.length)>0)ye(i.cssRules);else if(i.selectorText){const n=(t=i.selectorText)==null?void 0:t.match(/\.[\w-]+/g);if(n)for(const r of n)D.add(r.substr(1))}},Vi=(e={})=>{if(D)return D;D=new Set,q={...q,...e},ye(document.styleSheets),new MutationObserver(i=>{for(const n of i)if(n.type==="childList"&&(n!=null&&n.addedNodes)){for(const r of n.addedNodes)if(!(r.nodeType===3||r.nodeType===8)){z(r);for(const c of r.querySelectorAll("*"))z(c)}}else(n==null?void 0:n.attributeName)==="class"&&z(n.target)}).observe(document,{attributes:!0,childList:!0,subtree:!0})},Fi="0.2.39";exports.BaseLogger=V;exports.Gmap=mi;exports.SDKConfig=T;exports.SDKLogger=S;exports.VERSION=Fi;exports._clone=ne;exports._get=O;exports._merge=G;exports._set=H;exports.createI18n=hi;exports.inBrowser=Je;exports.inNode=$;exports.useActivityRepository=At;exports.useAnalyticsHublerApplication=le;exports.useAnalyticsIdentify=ai;exports.useAnalyticsProfile=de;exports.useAnalyticsVisualBuilder=me;exports.useAssetUrls=vi;exports.useAuthentication=N;exports.useAuthorization=ue;exports.useAuthorizationStore=oi;exports.useCanAccessEstablishmentMiddleware=si;exports.useCandidateRepository=$t;exports.useCommentRepository=_t;exports.useContractTypeRepository=Ut;exports.useCookieStorage=ie;exports.useCvbankRepository=Ft;exports.useCvthequeRepository=Ht;exports.useDiplomaRepository=qt;exports.useDocumentRepository=Xt;exports.useDomainUrls=Ui;exports.useEmailHistoryRepository=en;exports.useEmailRepository=rn;exports.useEmailTemplateRepository=an;exports.useEstablishmentCareerRepository=fn;exports.useEstablishmentRepository=K;exports.useFeatureFlagRepository=bn;exports.useI18n=he;exports.useJobRepository=An;exports.useLabelRepository=Sn;exports.useLocaleTimeAgo=bi;exports.useOfferRepository=On;exports.usePrivateRequest=y;exports.useQSAction=Pi;exports.useRecruiterRepository=Ln;exports.useRecruitmentRepository=xn;exports.useRegisterRepository=zn;exports.useRegistrationRepository=Qn;exports.useRequest=A;exports.useSpecialityRepository=Kn;exports.useTagRepository=Jn;exports.useTalentRepository=Yn;exports.useUndefinedCssClasses=Vi;exports.useUserRepository=W;
|
package/dist/core.js
CHANGED
|
@@ -235,7 +235,7 @@ function Qe(e, t, i) {
|
|
|
235
235
|
return !0;
|
|
236
236
|
return !1;
|
|
237
237
|
}
|
|
238
|
-
const
|
|
238
|
+
const yi = () => typeof window < "u" && typeof window.document < "u", L = () => typeof process < "u" && process.versions != null && process.versions.node != null, O = (e, t, i) => {
|
|
239
239
|
const n = typeof t == "string" ? t.split(".") : [t];
|
|
240
240
|
let r = e;
|
|
241
241
|
const c = (f) => f != null, l = (f) => typeof f == "object";
|
|
@@ -850,9 +850,9 @@ function b(e, t = "get", i = null) {
|
|
|
850
850
|
return c();
|
|
851
851
|
}, n;
|
|
852
852
|
}
|
|
853
|
-
const gt = (e, t) => b("/v2/activity/candidate/:candidateId/establishment/:establishmentId").setRouteParams({ candidateId: e, establishmentId: t }),
|
|
853
|
+
const gt = (e, t) => b("/v2/activity/candidate/:candidateId/establishment/:establishmentId").setRouteParams({ candidateId: e, establishmentId: t }), gi = () => ({
|
|
854
854
|
listByCandidateAndEstablishment: gt
|
|
855
|
-
}), bt = (e, t, i) => b("/candidate/:candidateId/share/establishment/:establishmentId").setMethod("post").setRouteParams({ candidateId: e, establishmentId: t }).setPayload(i), wt = (e, t) => b("/candidate/:candidateId/archive/establishment/:establishmentId").setRouteParams({ candidateId: e, establishmentId: t }), At = (e, t) => b("/candidate/:candidateId/archive/establishment/:establishmentId").setMethod("post").setRouteParams({ candidateId: e, establishmentId: t }), Pt = (e, t) => b("/candidate/:candidateId/archive/establishment/:establishmentId").setMethod("delete").setRouteParams({ candidateId: e, establishmentId: t }), Rt = (e) => b("/v2/candidates/lookup").setQueryParam("email", e), vt = (e, t) => b("/v2/candidates").setMethod("post").setQueryParam("establishment-id", e).setFormData().setPayload(t), Et = (e, t, i) => b("/v2/candidates/:candidateId").setQueryParam("establishment-id", t).setRouteParams({ candidateId: e }).setMethod("post").setFormData().setPayload(i), It = (e) => b("/candidate/register/close/:registrationToken").setMethod("post").setRouteParams({ registrationToken: e }), Ct = (e) => b("/candidate/register/open").setMethod("post").setQueryParam("groups", "register:token").setPayload(e), St = (e, t) => b("/establishment/:establishmentId:/candidate/invitation").setRouteParams({ establishmentId: e }).setMethod("post").setPayload(t),
|
|
855
|
+
}), bt = (e, t, i) => b("/candidate/:candidateId/share/establishment/:establishmentId").setMethod("post").setRouteParams({ candidateId: e, establishmentId: t }).setPayload(i), wt = (e, t) => b("/candidate/:candidateId/archive/establishment/:establishmentId").setRouteParams({ candidateId: e, establishmentId: t }), At = (e, t) => b("/candidate/:candidateId/archive/establishment/:establishmentId").setMethod("post").setRouteParams({ candidateId: e, establishmentId: t }), Pt = (e, t) => b("/candidate/:candidateId/archive/establishment/:establishmentId").setMethod("delete").setRouteParams({ candidateId: e, establishmentId: t }), Rt = (e) => b("/v2/candidates/lookup").setQueryParam("email", e), vt = (e, t) => b("/v2/candidates").setMethod("post").setQueryParam("establishment-id", e).setFormData().setPayload(t), Et = (e, t, i) => b("/v2/candidates/:candidateId").setQueryParam("establishment-id", t).setRouteParams({ candidateId: e }).setMethod("post").setFormData().setPayload(i), It = (e) => b("/candidate/register/close/:registrationToken").setMethod("post").setRouteParams({ registrationToken: e }), Ct = (e) => b("/candidate/register/open").setMethod("post").setQueryParam("groups", "register:token").setPayload(e), St = (e, t) => b("/establishment/:establishmentId:/candidate/invitation").setRouteParams({ establishmentId: e }).setMethod("post").setPayload(t), bi = () => ({
|
|
856
856
|
share: bt,
|
|
857
857
|
isArchived: wt,
|
|
858
858
|
archive: At,
|
|
@@ -863,101 +863,102 @@ const gt = (e, t) => b("/v2/activity/candidate/:candidateId/establishment/:estab
|
|
|
863
863
|
closeIncompleteRegistration: It,
|
|
864
864
|
openNewRegistration: Ct,
|
|
865
865
|
updateInvitation: St
|
|
866
|
-
}), kt = (e, t) => b("/comment/establishment/:establishmentId/candidate/:userId").setRouteParams({ establishmentId: e, userId: t }), Ot = (e, t, i) => b("/comment/establishment/:establishmentId/candidate/:userId").setRouteParams({ establishmentId: e, userId: t }).setMethod("post").setPayload(i), Tt = (e, t) => b("/comment/:commentId").setRouteParams({ commentId: e }).setMethod("put").setPayload(t), $t = (e) => b("/comment/:commentId").setRouteParams({ commentId: e }).setMethod("delete"),
|
|
866
|
+
}), kt = (e, t) => b("/comment/establishment/:establishmentId/candidate/:userId").setRouteParams({ establishmentId: e, userId: t }), Ot = (e, t, i) => b("/comment/establishment/:establishmentId/candidate/:userId").setRouteParams({ establishmentId: e, userId: t }).setMethod("post").setPayload(i), Tt = (e, t) => b("/comment/:commentId").setRouteParams({ commentId: e }).setMethod("put").setPayload(t), $t = (e) => b("/comment/:commentId").setRouteParams({ commentId: e }).setMethod("delete"), wi = () => ({
|
|
867
867
|
getForEstablishmentCandidate: kt,
|
|
868
868
|
postForEstablishmentCandidate: Ot,
|
|
869
869
|
update: Tt,
|
|
870
870
|
remove: $t
|
|
871
|
-
}), Lt = () => R("contractType").isList().addGroup("Term:id").addGroup("Term:name"),
|
|
872
|
-
list: Lt
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
871
|
+
}), Lt = () => R("contractType").isList().addGroup("Term:id").addGroup("Term:name"), Mt = (e, t = !0) => b("contractType/establishment/:establishmentId").isList().setRouteParams({ establishmentId: e }).setQueryParam("all", t).addGroup("Term:id").addGroup("Term:name"), Ai = () => ({
|
|
872
|
+
list: Lt,
|
|
873
|
+
listByEstablishment: Mt
|
|
874
|
+
}), Dt = (e) => b("/v2/talents").isList().setQueryParam("establishment-id", e), Pi = () => ({
|
|
875
|
+
list: Dt
|
|
876
|
+
}), Nt = (e, t, i) => b("/cvtheque/establishment/:establishmentId/candidate/:candidateId/label/synchronize").setRouteParams({ establishmentId: e, candidateId: t }).setMethod("post").setPayload(i), Ri = () => ({
|
|
877
|
+
syncCandidateLabels: Nt
|
|
878
|
+
}), jt = () => R("diploma").isList().addGroup("Term:id").addGroup("Term:name"), vi = () => ({
|
|
879
|
+
list: jt
|
|
880
|
+
}), xt = (e) => b("document/candidate/:candidateId").setRouteParams({ candidateId: e }).isList().disablePagination(), _t = (e, t) => b("document/candidate/:candidateId/establishment/:establishmentId/recruiter").setRouteParams({ candidateId: e, establishmentId: t }).isList().disablePagination(), Bt = (e, t) => b("document/candidate/:candidateId/establishment/:establishmentId/candidate").setRouteParams({ candidateId: e, establishmentId: t }).isList().disablePagination(), Ut = (e) => b("document/recruiter").setMethod("post").setPayload(e), Vt = (e) => b("document/:documentId").setRouteParams({ documentId: e }).setMethod("delete"), Ei = () => ({
|
|
881
|
+
listByCandidate: xt,
|
|
882
|
+
listByCandidateAndEstablishmentFromRecruiter: _t,
|
|
883
|
+
listByCandidateAndEstablishmentFromCandidate: Bt,
|
|
884
|
+
addFromRecruiter: Ut,
|
|
885
|
+
remove: Vt
|
|
886
|
+
}), Ft = (e, t) => b("/v2/establishments/:establishmentId/email-history").setRouteParams({ establishmentId: t }).setQueryParam("receiverId", e).isList().disablePagination(), Ii = () => ({
|
|
887
|
+
listByCandidateAndEstablishment: Ft
|
|
888
|
+
}), zt = (e, t) => b("/email/candidate/:candidateId").setMethod("post").setRouteParams({ candidateId: e }).setPayload(t), Ht = (e, t) => b("/v2/emails/send").setMethod("post").setFormData().setPayload({ recipientIds: e, ...t }), Ci = () => ({
|
|
889
|
+
sendToCandidate: zt,
|
|
890
|
+
sendToRecipients: Ht
|
|
891
|
+
}), Qt = (e, t = !0) => {
|
|
891
892
|
const i = b("/v2/establishments/:establishmentId/email-templates").setRouteParams({ establishmentId: e }).isList().disablePagination();
|
|
892
893
|
return t && i.setQueryParam("global", !0), i;
|
|
893
|
-
},
|
|
894
|
-
listByEstablishment:
|
|
895
|
-
listSelf:
|
|
896
|
-
}),
|
|
894
|
+
}, qt = () => b("/v2/self/email-templates").isList().disablePagination(), Si = () => ({
|
|
895
|
+
listByEstablishment: Qt,
|
|
896
|
+
listSelf: qt
|
|
897
|
+
}), Gt = (e, t) => b("establishment-career/:establishmentId/:versionId").setRouteParams({ establishmentId: e, versionId: t }), Kt = (e, t = "published") => b("establishment-career/:establishmentId/state/:state").setRouteParams({ establishmentId: e, state: t }), Wt = (e, t, i = null) => {
|
|
897
898
|
const n = i !== null ? b("establishment-career/:establishmentId/:versionId").setRouteParams({ establishmentId: e, versionId: i }) : b("establishment-career/:establishmentId").setRouteParams({ establishmentId: e });
|
|
898
899
|
return n.setMethod("post").setPayload(t), n;
|
|
899
|
-
},
|
|
900
|
-
readById:
|
|
901
|
-
readByState:
|
|
902
|
-
upsert:
|
|
903
|
-
uploadLogoAndBanner:
|
|
904
|
-
publish:
|
|
905
|
-
}),
|
|
906
|
-
read:
|
|
907
|
-
authorizations:
|
|
908
|
-
}),
|
|
909
|
-
maintenanceModeEnabled:
|
|
910
|
-
forEstablishment:
|
|
911
|
-
}),
|
|
912
|
-
list:
|
|
913
|
-
listByEstablishment:
|
|
914
|
-
}),
|
|
915
|
-
listByEstablishment:
|
|
916
|
-
addToEstablishment:
|
|
917
|
-
update:
|
|
918
|
-
remove:
|
|
919
|
-
syncForCandidate:
|
|
920
|
-
}),
|
|
921
|
-
read:
|
|
922
|
-
}),
|
|
900
|
+
}, Jt = (e, t) => b("establishment-career/:establishmentId/logo-banner").setMethod("post").setRouteParams({ establishmentId: e }).setPayload(t), Zt = (e, t, i) => b("establishment-career/:establishmentId/publish/:versionId").setMethod("post").setRouteParams({ establishmentId: e, versionId: t }).setPayload(i), ki = () => ({
|
|
901
|
+
readById: Gt,
|
|
902
|
+
readByState: Kt,
|
|
903
|
+
upsert: Wt,
|
|
904
|
+
uploadLogoAndBanner: Jt,
|
|
905
|
+
publish: Zt
|
|
906
|
+
}), Xt = (e) => R("establishment/:establishmentId").setRouteParams({ establishmentId: e }), Yt = (e) => b("establishment/:establishmentId/authorizations").setRouteParams({ establishmentId: e }), se = () => ({
|
|
907
|
+
read: Xt,
|
|
908
|
+
authorizations: Yt
|
|
909
|
+
}), en = (e) => R("feature-flag/maintenance").setMethod("post").setPayload(e), tn = (e, t) => R("feature-flag/establishment").setMethod("post").setPayload({ establishment: e, flagName: t }), Oi = () => ({
|
|
910
|
+
maintenanceModeEnabled: en,
|
|
911
|
+
forEstablishment: tn
|
|
912
|
+
}), nn = () => R("job").isList().addGroup("Term:id").addGroup("Term:name"), rn = (e, t = !0) => b("job/establishment/:establishmentId").isList().setRouteParams({ establishmentId: e }).setQueryParam("all", t).addGroup("Term:id").addGroup("Term:name"), Ti = () => ({
|
|
913
|
+
list: nn,
|
|
914
|
+
listByEstablishment: rn
|
|
915
|
+
}), sn = (e) => b("/label/establishment/:establishmentId").isList().setRouteParams({ establishmentId: e }), on = (e, t) => b("/label/establishment/:establishmentId").setMethod("post").setRouteParams({ establishmentId: e }).setPayload(t), an = (e, t) => b("/label/:labelId").setMethod("put").setRouteParams({ labelId: e }).setPayload(t), cn = (e) => b("/label/:labelId").setMethod("delete").setRouteParams({ labelId: e }), un = (e, t, i) => b("/label/establishment/:establishmentId/candidate/:candidateId/synchronize").setMethod("post").setPayload(i).setRouteParams({ establishmentId: e, candidateId: t }), $i = () => ({
|
|
916
|
+
listByEstablishment: sn,
|
|
917
|
+
addToEstablishment: on,
|
|
918
|
+
update: an,
|
|
919
|
+
remove: cn,
|
|
920
|
+
syncForCandidate: un
|
|
921
|
+
}), ln = (e) => R("offer/:offerId").setRouteParams({ offerId: e }), Li = () => ({
|
|
922
|
+
read: ln
|
|
923
|
+
}), dn = (e, t = !1) => {
|
|
923
924
|
const i = b("/recruiter/establishment/:establishmentId").isList().setRouteParams({ establishmentId: e });
|
|
924
925
|
return t && i.setQueryParam("exclude-me", 1), i;
|
|
925
|
-
},
|
|
926
|
-
listByEstablishment:
|
|
927
|
-
}),
|
|
928
|
-
mineByEstablishment:
|
|
929
|
-
mineWithoutCandidate:
|
|
930
|
-
mineWithCandidate:
|
|
931
|
-
withCandidate:
|
|
932
|
-
addCandidates:
|
|
933
|
-
removeCandidate:
|
|
934
|
-
}),
|
|
926
|
+
}, Mi = () => ({
|
|
927
|
+
listByEstablishment: dn
|
|
928
|
+
}), fn = (e) => b("/recruitment/establishment/:establishmentId/mine").isList().setRouteParams({ establishmentId: e }), mn = (e, t) => b("/recruitment/mine/establishment/:establishmentId/has-not/candidate/:candidateId").isList().setRouteParams({ establishmentId: e, candidateId: t }), pn = (e, t) => b("/recruitment/mine/establishment/:establishmentId/has/candidate/:candidateId").isList().setRouteParams({ establishmentId: e, candidateId: t }), hn = (e, t) => b("/recruitment/establishment/:establishmentId/has/candidate/:candidateId").isList().setRouteParams({ establishmentId: e, candidateId: t }), yn = (e, t) => b("/recruitment/:recruitmentId/candidate").setMethod("put").setRouteParams({ recruitmentId: e }).setPayload(t), gn = (e, t) => b("/recruitment/:recruitmentId/candidate/:candidateId").setMethod("delete").setRouteParams({ recruitmentId: e, candidateId: t }), Di = () => ({
|
|
929
|
+
mineByEstablishment: fn,
|
|
930
|
+
mineWithoutCandidate: mn,
|
|
931
|
+
mineWithCandidate: pn,
|
|
932
|
+
withCandidate: hn,
|
|
933
|
+
addCandidates: yn,
|
|
934
|
+
removeCandidate: gn
|
|
935
|
+
}), bn = (e, t, i, n = null) => {
|
|
935
936
|
const r = R("candidate/register/open").setMethod("post"), c = { email: e };
|
|
936
937
|
return t === "establishment" && (c.establishmentId = i), t === "offer" && (c.offerId = i), n && (c.referer = n), r.setPayload(c), r;
|
|
937
|
-
},
|
|
938
|
-
open:
|
|
939
|
-
update:
|
|
940
|
-
read:
|
|
941
|
-
close:
|
|
942
|
-
}),
|
|
943
|
-
lookupEstablishment:
|
|
944
|
-
}),
|
|
945
|
-
list:
|
|
946
|
-
listByEstablishment: vn
|
|
947
|
-
}), En = (e) => b("/tag/public/establishment/:establishmentId").isList().setRouteParams({ establishmentId: e }), xi = () => ({
|
|
938
|
+
}, wn = (e, t) => R("candidate/register/update/:token").setMethod("post").setRouteParams({ token: e }).setPayload(t), An = (e) => R("candidate/register/read/:token").setRouteParams({ token: e }), Pn = (e) => R("candidate/register/close/:token").setMethod("post").setRouteParams({ token: e }), Ni = () => ({
|
|
939
|
+
open: bn,
|
|
940
|
+
update: wn,
|
|
941
|
+
read: An,
|
|
942
|
+
close: Pn
|
|
943
|
+
}), Rn = (e, t) => b("/v2/registrations/lookup").setQueryParam("candidate-id", e).setQueryParam("establishment-id", t), ji = () => ({
|
|
944
|
+
lookupEstablishment: Rn
|
|
945
|
+
}), vn = () => R("speciality").isList().addGroup("Term:id").addGroup("Term:name"), En = (e, t = !0) => b("speciality/establishment/:establishmentId").isList().setRouteParams({ establishmentId: e }).setQueryParam("all", t).addGroup("Term:id").addGroup("Term:name"), xi = () => ({
|
|
946
|
+
list: vn,
|
|
948
947
|
listByEstablishment: En
|
|
949
|
-
}), In = (e
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
948
|
+
}), In = (e) => b("/tag/public/establishment/:establishmentId").isList().setRouteParams({ establishmentId: e }), _i = () => ({
|
|
949
|
+
listByEstablishment: In
|
|
950
|
+
}), Cn = (e, t) => b("/v2/talents/lookup").setQueryParam("candidate-id", e).setQueryParam("establishment-id", t), Sn = (e) => b("/v2/talents/index").setMethod("post").setPayload(e), Bi = () => ({
|
|
951
|
+
lookupTalent: Cn,
|
|
952
|
+
addCandidateToTalentPool: Sn
|
|
953
|
+
}), kn = (e) => R("user/email/isset/:email").setRouteParams({ email: e }), On = () => b("user/self").addGroup("user:self"), Tn = (e) => b("/user/:uuid").setRouteParams({ uuid: e }), $n = (e) => R("/user/:uuid").setRouteParams({ uuid: e }), Ln = (e) => b("/user/:id/uuid").setRouteParams({ id: e }), oe = () => ({
|
|
954
|
+
emailExists: kn,
|
|
955
|
+
self: On,
|
|
956
|
+
byUuidPrivate: Tn,
|
|
957
|
+
byUuid: $n,
|
|
958
|
+
fetchUuid: Ln
|
|
958
959
|
});
|
|
959
960
|
let _;
|
|
960
|
-
function
|
|
961
|
+
function Mn() {
|
|
961
962
|
if (_)
|
|
962
963
|
return _;
|
|
963
964
|
const e = {
|
|
@@ -1002,10 +1003,10 @@ function Ln() {
|
|
|
1002
1003
|
}
|
|
1003
1004
|
}, _;
|
|
1004
1005
|
}
|
|
1005
|
-
async function
|
|
1006
|
+
async function Ui(e, ...t) {
|
|
1006
1007
|
if (!B().isAuthenticated())
|
|
1007
1008
|
throw "ERR_NOT_AUTHENTICATED";
|
|
1008
|
-
const n =
|
|
1009
|
+
const n = Mn();
|
|
1009
1010
|
await Promise.all([
|
|
1010
1011
|
n.fetchSelf(),
|
|
1011
1012
|
n.fetchPermission(e)
|
|
@@ -1016,7 +1017,7 @@ async function Bi(e, ...t) {
|
|
|
1016
1017
|
throw "ERR_MISSING_PERMISSION";
|
|
1017
1018
|
}
|
|
1018
1019
|
}
|
|
1019
|
-
const
|
|
1020
|
+
const Vi = Te("authorization", {
|
|
1020
1021
|
state: () => ({
|
|
1021
1022
|
user: void 0,
|
|
1022
1023
|
establishments: {}
|
|
@@ -1149,7 +1150,7 @@ function g() {
|
|
|
1149
1150
|
}, $;
|
|
1150
1151
|
}
|
|
1151
1152
|
g.destroy = () => $ = null;
|
|
1152
|
-
function
|
|
1153
|
+
function Dn() {
|
|
1153
1154
|
const e = "Hubler Application";
|
|
1154
1155
|
function t(s) {
|
|
1155
1156
|
var m;
|
|
@@ -1198,7 +1199,7 @@ function Mn() {
|
|
|
1198
1199
|
applicationFormFailed: u
|
|
1199
1200
|
};
|
|
1200
1201
|
}
|
|
1201
|
-
function
|
|
1202
|
+
function Nn() {
|
|
1202
1203
|
const e = "Profile";
|
|
1203
1204
|
function t(d, P) {
|
|
1204
1205
|
var I;
|
|
@@ -1273,7 +1274,7 @@ function Dn() {
|
|
|
1273
1274
|
profileEmailSent: S
|
|
1274
1275
|
};
|
|
1275
1276
|
}
|
|
1276
|
-
function
|
|
1277
|
+
function jn() {
|
|
1277
1278
|
const e = "Visual Builder";
|
|
1278
1279
|
function t(o, ve) {
|
|
1279
1280
|
if (!o)
|
|
@@ -1416,11 +1417,11 @@ function Nn() {
|
|
|
1416
1417
|
}
|
|
1417
1418
|
const K = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1418
1419
|
__proto__: null,
|
|
1419
|
-
useAnalyticsHublerApplication:
|
|
1420
|
-
useAnalyticsProfile:
|
|
1421
|
-
useAnalyticsVisualBuilder:
|
|
1420
|
+
useAnalyticsHublerApplication: Dn,
|
|
1421
|
+
useAnalyticsProfile: Nn,
|
|
1422
|
+
useAnalyticsVisualBuilder: jn
|
|
1422
1423
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
1423
|
-
function
|
|
1424
|
+
function Fi() {
|
|
1424
1425
|
function e(i) {
|
|
1425
1426
|
return g().identify(i.id, {
|
|
1426
1427
|
email: i.email,
|
|
@@ -1442,25 +1443,25 @@ function Vi() {
|
|
|
1442
1443
|
identifyCandidate: e
|
|
1443
1444
|
};
|
|
1444
1445
|
}
|
|
1445
|
-
const
|
|
1446
|
+
const xn = "AIzaSyDicyRD6rvVdnicp1tgV0ElazASNGbyyTs";
|
|
1446
1447
|
let ae = !1;
|
|
1447
1448
|
const ce = () => new Promise((e) => {
|
|
1448
|
-
ae || window.google && window.google.maps ? e() : (window.addEventListener("gmap-ready", () => e()),
|
|
1449
|
-
}),
|
|
1449
|
+
ae || window.google && window.google.maps ? e() : (window.addEventListener("gmap-ready", () => e()), Un());
|
|
1450
|
+
}), _n = (e, t) => ce().then(() => Bn(e, t)), Bn = (e, t) => {
|
|
1450
1451
|
const i = new window.google.maps.places.Autocomplete(e, { componentRestrictions: { country: ["fr", "re", "yt", "gp", "mq"] } });
|
|
1451
1452
|
window.google.maps.event.addListener(i, "place_changed", () => {
|
|
1452
1453
|
const n = i.getPlace();
|
|
1453
1454
|
n.formatted_address && t && t(n.formatted_address, n);
|
|
1454
1455
|
});
|
|
1455
|
-
},
|
|
1456
|
+
}, Un = () => {
|
|
1456
1457
|
window.onGmapScriptReady = function() {
|
|
1457
1458
|
};
|
|
1458
1459
|
const e = document.createElement("script");
|
|
1459
|
-
e.src = "https://maps.googleapis.com/maps/api/js?key=" +
|
|
1460
|
-
},
|
|
1460
|
+
e.src = "https://maps.googleapis.com/maps/api/js?key=" + xn + "&libraries=places&callback=onGmapScriptReady", e.async = !0, e.defer = !0, e.onload = () => window.dispatchEvent(new Event("gmap-ready")), document.body.appendChild(e), ae = !0;
|
|
1461
|
+
}, zi = {
|
|
1461
1462
|
scriptReady: ce,
|
|
1462
|
-
autocompleteInput:
|
|
1463
|
-
},
|
|
1463
|
+
autocompleteInput: _n
|
|
1464
|
+
}, Vn = {
|
|
1464
1465
|
common: {
|
|
1465
1466
|
the: "le",
|
|
1466
1467
|
from: "de"
|
|
@@ -1485,18 +1486,18 @@ const ce = () => new Promise((e) => {
|
|
|
1485
1486
|
minute: "minute | minutes",
|
|
1486
1487
|
second: "seconde | secondes"
|
|
1487
1488
|
}
|
|
1488
|
-
},
|
|
1489
|
-
fr:
|
|
1489
|
+
}, Fn = {
|
|
1490
|
+
fr: Vn
|
|
1490
1491
|
};
|
|
1491
1492
|
let H = null;
|
|
1492
|
-
const
|
|
1493
|
+
const zn = () => H, Hi = (e = {}) => {
|
|
1493
1494
|
let t = e.locale || "fr";
|
|
1494
|
-
const i = (u) => t = u, n = () => t, r = Y(
|
|
1495
|
+
const i = (u) => t = u, n = () => t, r = Y(Fn, (e == null ? void 0 : e.messages) || {}), c = (u, s) => {
|
|
1495
1496
|
const a = O(r, `${t}.${u}`);
|
|
1496
|
-
return a ? s ?
|
|
1497
|
+
return a ? s ? Hn(a, s) : a : u;
|
|
1497
1498
|
}, l = (u, s) => {
|
|
1498
1499
|
const a = O(r, `${t}.${u}`);
|
|
1499
|
-
return a ?
|
|
1500
|
+
return a ? Qn(a, s) : u;
|
|
1500
1501
|
};
|
|
1501
1502
|
return H = {
|
|
1502
1503
|
t: c,
|
|
@@ -1507,7 +1508,7 @@ const Fn = () => H, zi = (e = {}) => {
|
|
|
1507
1508
|
u.config.globalProperties.$t = c, u.config.globalProperties.$tNode = l;
|
|
1508
1509
|
}
|
|
1509
1510
|
}, H;
|
|
1510
|
-
},
|
|
1511
|
+
}, Hn = (e, t) => e ? e.replace(/{{ ?([a-zA-Z_.]+) ?}}/g, (i, n) => O(t, n)) : null, Qn = (e, t) => {
|
|
1511
1512
|
if (!e)
|
|
1512
1513
|
return null;
|
|
1513
1514
|
const i = e.split(/(\{[{%]+[^{}]*[%}]+})/g).filter((n) => n !== "").map((n) => {
|
|
@@ -1529,8 +1530,8 @@ const Fn = () => H, zi = (e = {}) => {
|
|
|
1529
1530
|
variable: (e, t) => U("span", { class: "node node--variable" }, O(t, e.trim())),
|
|
1530
1531
|
text: (e) => U("span", { class: "node node--text" }, e)
|
|
1531
1532
|
};
|
|
1532
|
-
function
|
|
1533
|
-
const { t } =
|
|
1533
|
+
function Qi(e) {
|
|
1534
|
+
const { t } = zn(), i = {
|
|
1534
1535
|
justNow: t("timeAgo.just-now"),
|
|
1535
1536
|
past: (n) => n.match(/\d/) ? t("timeAgo.ago", [n]) : n,
|
|
1536
1537
|
future: (n) => n.match(/\d/) ? t("timeAgo.in", [n]) : n,
|
|
@@ -1548,7 +1549,7 @@ function Hi(e) {
|
|
|
1548
1549
|
messages: i
|
|
1549
1550
|
});
|
|
1550
1551
|
}
|
|
1551
|
-
function
|
|
1552
|
+
function qn() {
|
|
1552
1553
|
let e = null;
|
|
1553
1554
|
function t() {
|
|
1554
1555
|
return e;
|
|
@@ -1583,7 +1584,7 @@ function Qn() {
|
|
|
1583
1584
|
hasAction: l
|
|
1584
1585
|
};
|
|
1585
1586
|
}
|
|
1586
|
-
function
|
|
1587
|
+
function Gn() {
|
|
1587
1588
|
async function e({ domain: n, event: r, ...c }) {
|
|
1588
1589
|
const l = "useAnalytics" + n.charAt(0).toUpperCase() + n.slice(1);
|
|
1589
1590
|
if (!t(l))
|
|
@@ -1605,9 +1606,9 @@ function qn() {
|
|
|
1605
1606
|
}
|
|
1606
1607
|
const J = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1607
1608
|
__proto__: null,
|
|
1608
|
-
useAnalyticsQSController:
|
|
1609
|
+
useAnalyticsQSController: Gn
|
|
1609
1610
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
1610
|
-
function
|
|
1611
|
+
function Kn(e) {
|
|
1611
1612
|
if (!e.hasAction())
|
|
1612
1613
|
throw new Error("No action found in router");
|
|
1613
1614
|
function t() {
|
|
@@ -1628,7 +1629,7 @@ function Gn(e) {
|
|
|
1628
1629
|
dispatch: t
|
|
1629
1630
|
};
|
|
1630
1631
|
}
|
|
1631
|
-
function
|
|
1632
|
+
function qi() {
|
|
1632
1633
|
let e = !1;
|
|
1633
1634
|
function t(r, c, l) {
|
|
1634
1635
|
n(), l();
|
|
@@ -1639,10 +1640,10 @@ function Qi() {
|
|
|
1639
1640
|
l();
|
|
1640
1641
|
}
|
|
1641
1642
|
function n() {
|
|
1642
|
-
const r =
|
|
1643
|
+
const r = qn();
|
|
1643
1644
|
if (!r.hasAction())
|
|
1644
1645
|
return;
|
|
1645
|
-
|
|
1646
|
+
Kn(r).dispatch();
|
|
1646
1647
|
}
|
|
1647
1648
|
return {
|
|
1648
1649
|
vueRouterBeforeEach: t,
|
|
@@ -1650,32 +1651,32 @@ function Qi() {
|
|
|
1650
1651
|
handle: n
|
|
1651
1652
|
};
|
|
1652
1653
|
}
|
|
1653
|
-
const
|
|
1654
|
+
const Gi = () => ({ getAssetUrl: (t) => `${T.getBaseAssetsUrl()}${t}` }), A = () => T.getMainAppHost(), Wn = () => `${A()}/rh/establishments`, Jn = (e) => `${A()}/rh/establishment/${e}`, Zn = (e) => {
|
|
1654
1655
|
var t;
|
|
1655
1656
|
return typeof e == "string" ? e : typeof e == "object" && ((t = e == null ? void 0 : e.urls) != null && t.display) ? e.urls.display : null;
|
|
1656
|
-
},
|
|
1657
|
+
}, Xn = (e) => `${A()}/candidate-invite/establishment/${e}`, Yn = (e, t = !1) => t ? `${A()}/cvbank/${e}/` : `${A()}/rh/establishment/${e}/cvtheque/`, ei = (e, t) => `${A()}/user-profile/establishment/${e}/user/${t}`, ti = (e) => `${A()}/rh/establishment/${e}/recruitment`, ni = (e, t) => `${A()}/rh/establishment/${e}/recruitment/${t}`, ii = (e, t) => `${A()}/rh/establishment/${e}/recruitment/${t}/kanban`, ri = (e) => `${A()}/rh/establishment/${e}/career-configuration`, si = (e, t = null) => t ? `${A()}/career-website/${e}/${t}` : `${A()}/career-website/${e}`, oi = (e, t) => `${A()}/career-website-preview/${e}/${t}`, ai = (e, t = null) => {
|
|
1657
1658
|
const i = A().replace("://", `://${e}.`);
|
|
1658
1659
|
return t ? `${i}?_version=${t}` : `${i}`;
|
|
1659
|
-
},
|
|
1660
|
-
function
|
|
1660
|
+
}, ci = (e) => `${A()}/rh/establishment/${e}/stats`, ui = (e) => `${A()}/rh/establishment/${e}/backoffice`, li = () => `${A()}/rh/settings/general`;
|
|
1661
|
+
function Ki() {
|
|
1661
1662
|
return {
|
|
1662
1663
|
root: A,
|
|
1663
|
-
establishments:
|
|
1664
|
-
establishment:
|
|
1665
|
-
img:
|
|
1666
|
-
candidateInvite:
|
|
1667
|
-
cvtheque:
|
|
1668
|
-
userProfile:
|
|
1669
|
-
recruitments:
|
|
1670
|
-
recruitment:
|
|
1671
|
-
recruitmentKanban:
|
|
1672
|
-
career:
|
|
1673
|
-
careerConfig:
|
|
1674
|
-
careerPreview:
|
|
1675
|
-
careerWebsite:
|
|
1676
|
-
statistics:
|
|
1677
|
-
backoffice:
|
|
1678
|
-
userSettings:
|
|
1664
|
+
establishments: Wn,
|
|
1665
|
+
establishment: Jn,
|
|
1666
|
+
img: Zn,
|
|
1667
|
+
candidateInvite: Xn,
|
|
1668
|
+
cvtheque: Yn,
|
|
1669
|
+
userProfile: ei,
|
|
1670
|
+
recruitments: ti,
|
|
1671
|
+
recruitment: ni,
|
|
1672
|
+
recruitmentKanban: ii,
|
|
1673
|
+
career: ri,
|
|
1674
|
+
careerConfig: si,
|
|
1675
|
+
careerPreview: oi,
|
|
1676
|
+
careerWebsite: ai,
|
|
1677
|
+
statistics: ci,
|
|
1678
|
+
backoffice: ui,
|
|
1679
|
+
userSettings: li
|
|
1679
1680
|
};
|
|
1680
1681
|
}
|
|
1681
1682
|
const Z = /* @__PURE__ */ new Set();
|
|
@@ -1699,7 +1700,7 @@ const F = (e) => {
|
|
|
1699
1700
|
for (const r of n)
|
|
1700
1701
|
M.add(r.substr(1));
|
|
1701
1702
|
}
|
|
1702
|
-
},
|
|
1703
|
+
}, Wi = (e = {}) => {
|
|
1703
1704
|
if (M)
|
|
1704
1705
|
return M;
|
|
1705
1706
|
M = /* @__PURE__ */ new Set(), Q = { ...Q, ...e }, ue(document.styleSheets), new MutationObserver((i) => {
|
|
@@ -1718,60 +1719,60 @@ const F = (e) => {
|
|
|
1718
1719
|
childList: !0,
|
|
1719
1720
|
subtree: !0
|
|
1720
1721
|
});
|
|
1721
|
-
},
|
|
1722
|
+
}, Ji = "0.2.39";
|
|
1722
1723
|
export {
|
|
1723
1724
|
z as BaseLogger,
|
|
1724
|
-
|
|
1725
|
+
zi as Gmap,
|
|
1725
1726
|
T as SDKConfig,
|
|
1726
1727
|
k as SDKLogger,
|
|
1727
|
-
|
|
1728
|
+
Ji as VERSION,
|
|
1728
1729
|
qe as _clone,
|
|
1729
1730
|
O as _get,
|
|
1730
1731
|
Y as _merge,
|
|
1731
1732
|
G as _set,
|
|
1732
|
-
|
|
1733
|
-
|
|
1733
|
+
Hi as createI18n,
|
|
1734
|
+
yi as inBrowser,
|
|
1734
1735
|
L as inNode,
|
|
1735
|
-
|
|
1736
|
-
|
|
1737
|
-
|
|
1738
|
-
|
|
1739
|
-
|
|
1740
|
-
|
|
1736
|
+
gi as useActivityRepository,
|
|
1737
|
+
Dn as useAnalyticsHublerApplication,
|
|
1738
|
+
Fi as useAnalyticsIdentify,
|
|
1739
|
+
Nn as useAnalyticsProfile,
|
|
1740
|
+
jn as useAnalyticsVisualBuilder,
|
|
1741
|
+
Gi as useAssetUrls,
|
|
1741
1742
|
B as useAuthentication,
|
|
1742
|
-
|
|
1743
|
-
|
|
1744
|
-
|
|
1745
|
-
|
|
1746
|
-
|
|
1747
|
-
|
|
1743
|
+
Mn as useAuthorization,
|
|
1744
|
+
Vi as useAuthorizationStore,
|
|
1745
|
+
Ui as useCanAccessEstablishmentMiddleware,
|
|
1746
|
+
bi as useCandidateRepository,
|
|
1747
|
+
wi as useCommentRepository,
|
|
1748
|
+
Ai as useContractTypeRepository,
|
|
1748
1749
|
Ge as useCookieStorage,
|
|
1749
|
-
|
|
1750
|
-
|
|
1751
|
-
|
|
1752
|
-
|
|
1753
|
-
|
|
1754
|
-
|
|
1755
|
-
|
|
1756
|
-
|
|
1757
|
-
|
|
1750
|
+
Pi as useCvbankRepository,
|
|
1751
|
+
Ri as useCvthequeRepository,
|
|
1752
|
+
vi as useDiplomaRepository,
|
|
1753
|
+
Ei as useDocumentRepository,
|
|
1754
|
+
Ki as useDomainUrls,
|
|
1755
|
+
Ii as useEmailHistoryRepository,
|
|
1756
|
+
Ci as useEmailRepository,
|
|
1757
|
+
Si as useEmailTemplateRepository,
|
|
1758
|
+
ki as useEstablishmentCareerRepository,
|
|
1758
1759
|
se as useEstablishmentRepository,
|
|
1759
|
-
|
|
1760
|
-
|
|
1761
|
-
|
|
1762
|
-
|
|
1763
|
-
|
|
1764
|
-
|
|
1760
|
+
Oi as useFeatureFlagRepository,
|
|
1761
|
+
zn as useI18n,
|
|
1762
|
+
Ti as useJobRepository,
|
|
1763
|
+
$i as useLabelRepository,
|
|
1764
|
+
Qi as useLocaleTimeAgo,
|
|
1765
|
+
Li as useOfferRepository,
|
|
1765
1766
|
b as usePrivateRequest,
|
|
1766
|
-
|
|
1767
|
-
|
|
1768
|
-
|
|
1769
|
-
|
|
1770
|
-
|
|
1767
|
+
qi as useQSAction,
|
|
1768
|
+
Mi as useRecruiterRepository,
|
|
1769
|
+
Di as useRecruitmentRepository,
|
|
1770
|
+
Ni as useRegisterRepository,
|
|
1771
|
+
ji as useRegistrationRepository,
|
|
1771
1772
|
R as useRequest,
|
|
1772
|
-
|
|
1773
|
-
|
|
1774
|
-
|
|
1775
|
-
|
|
1773
|
+
xi as useSpecialityRepository,
|
|
1774
|
+
_i as useTagRepository,
|
|
1775
|
+
Bi as useTalentRepository,
|
|
1776
|
+
Wi as useUndefinedCssClasses,
|
|
1776
1777
|
oe as useUserRepository
|
|
1777
1778
|
};
|