@hublo/mstaff-client-sdk 0.2.46 → 0.2.48
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 +2 -2
- package/dist/core.js +90 -89
- package/package.json +1 -1
package/dist/core.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
"use strict";var De=Object.defineProperty;var Me=(e,t,i)=>t in e?De(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i;var I=(e,t,i)=>(Me(e,typeof t!="symbol"?t+"":t,i),i);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";var De=Object.defineProperty;var Me=(e,t,i)=>t in e?De(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i;var I=(e,t,i)=>(Me(e,typeof t!="symbol"?t+"":t,i),i);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const L=require("vue"),Ne=require("axios"),je=require("pinia"),_e=require("@vueuse/core");function xe(e){return L.getCurrentScope()?(L.onScopeDispose(e),!0):!1}typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;/*!
|
|
2
2
|
* cookie
|
|
3
3
|
* Copyright(c) 2012-2014 Roman Shtylman
|
|
4
4
|
* Copyright(c) 2015 Douglas Christopher Wilson
|
|
5
5
|
* MIT Licensed
|
|
6
|
-
*/var ie=Ue,Z=Ve,Be=Object.prototype.toString,_=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;function Ue(e,t){if(typeof e!="string")throw new TypeError("argument str must be a string");for(var i={},n=t||{},r=n.decode||Fe,c=0;c<e.length;){var u=e.indexOf("=",c);if(u===-1)break;var m=e.indexOf(";",c);if(m===-1)m=e.length;else if(m<u){c=e.lastIndexOf(";",u-1)+1;continue}var l=e.slice(c,u).trim();if(i[l]===void 0){var s=e.slice(u+1,m).trim();s.charCodeAt(0)===34&&(s=s.slice(1,-1)),i[l]=Qe(s,r)}c=m+1}return i}function Ve(e,t,i){var n=i||{},r=n.encode||ze;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 u=e+"="+c;if(n.maxAge!=null){var m=n.maxAge-0;if(isNaN(m)||!isFinite(m))throw new TypeError("option maxAge is invalid");u+="; Max-Age="+Math.floor(m)}if(n.domain){if(!_.test(n.domain))throw new TypeError("option domain is invalid");u+="; Domain="+n.domain}if(n.path){if(!_.test(n.path))throw new TypeError("option path is invalid");u+="; Path="+n.path}if(n.expires){var l=n.expires;if(!He(l)||isNaN(l.valueOf()))throw new TypeError("option expires is invalid");u+="; Expires="+l.toUTCString()}if(n.httpOnly&&(u+="; HttpOnly"),n.secure&&(u+="; Secure"),n.partitioned&&(u+="; Partitioned"),n.priority){var s=typeof n.priority=="string"?n.priority.toLowerCase():n.priority;switch(s){case"low":u+="; Priority=Low";break;case"medium":u+="; Priority=Medium";break;case"high":u+="; 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:u+="; SameSite=Strict";break;case"lax":u+="; SameSite=Lax";break;case"strict":u+="; SameSite=Strict";break;case"none":u+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}}return u}function Fe(e){return e.indexOf("%")!==-1?decodeURIComponent(e):e}function ze(e){return encodeURIComponent(e)}function He(e){return Be.call(e)==="[object Date]"||e instanceof Date}function Qe(e,t){try{return t(e)}catch{return e}}function qe(){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 Ge(e){return typeof e=="string"?ie(e):typeof e=="object"&&e!==null?e:{}}function F(e,t={}){const i=Ke(e);if(!t.doNotParse)try{return JSON.parse(i)}catch{}return e}function Ke(e){return e&&e[0]==="j"&&e[1]===":"?e.substr(2):e}class We{constructor(t,i={}){this.changeListeners=[],this.HAS_DOCUMENT_COOKIE=!1,this.update=()=>{if(!this.HAS_DOCUMENT_COOKIE)return;const r=this.cookies;this.cookies=ie(document.cookie),this._checkChanges(r)};const n=typeof document>"u"?"":document.cookie;this.cookies=Ge(t||n),this.defaultSetOptions=i,this.HAS_DOCUMENT_COOKIE=qe()}_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=Z(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=Z(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 Je(e,{doNotParse:t=!1,autoUpdateDependencies:i=!1}={},n=new We){const r=i?[...e||[]]:e;let c=n.getAll({doNotParse:!0});const u=$.ref(0),m=()=>{const l=n.getAll({doNotParse:!0});Ze(r||null,l,c)&&u.value++,c=l};return n.addChangeListener(m),xe(()=>{n.removeChangeListener(m)}),{get:(...l)=>(i&&r&&!r.includes(l[0])&&r.push(l[0]),u.value,n.get(l[0],{doNotParse:t,...l[1]})),getAll:(...l)=>(u.value,n.getAll({doNotParse:t,...l[0]})),set:(...l)=>n.set(...l),remove:(...l)=>n.remove(...l),addChangeListener:(...l)=>n.addChangeListener(...l),removeChangeListener:(...l)=>n.removeChangeListener(...l)}}function Ze(e,t,i){if(!e)return!0;for(const n of e)if(t[n]!==i[n])return!0;return!1}const Xe=()=>typeof window<"u"&&typeof window.document<"u",O=()=>typeof process<"u"&&process.versions!=null&&process.versions.node!=null,T=(e,t,i)=>{const n=typeof t=="string"?t.split("."):[t];let r=e;const c=m=>m!=null,u=m=>typeof m=="object";for(const[m,l]of n.entries()){if(!c(r))return i;if(m===n.length-1)return c(r[l])?r[l]:i;if(!u(r[l]))return i;r=r[l]}return i},Q=(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 u=e;return n.forEach((m,l)=>{if(l===n.length-1)u[m]=i;else{const s=r(n[l+1])?[]:{};m=r(m)?c(m):m,u[m]=u[m]??s,u=u[m]}}),e},re=e=>{if(typeof e=="object"){if(Array.isArray(e))return[...e];if(Object(e)===e)return{...e}}return e},K=(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]=K(i[n],r):i[n]=re(r);return i},X=()=>typeof window<"u"&&(window!=null&&window.location)?new URL(window.location).host:void 0,z=e=>O()||e.startsWith(".localhost")?void 0:{path:"/",domain:e,sameSite:"none",secure:!0};function se(){const e=Je();function t(c){return e.get(c)}function i(c,u){const m=X();return e.set(c,u,z(m?`.${m}`:void 0))}function n(c){const u=X();u?(e.remove(c,z(u)),e.remove(c,z(`.${u}`))):e.remove(c)}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=se()){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 u(){t.removeItem(e.auth),t.removeItem(e.refresh),t.removeItem(e.expiration)}function m(){return l()&&!s()}function l(){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:u,isAuthenticated:m,hasAuth:l,isExpired:s,getStorage:f},x}function Ye(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 u(g){return t[g]&&delete t[g],this}function m(g){return r("Authorization","Bearer "+g),this}function l(){return u("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:u,setAuthorization:m,removeAuthorization:l,hasAuthorization:s,setFormData:a,setJson:f,isFormData:p,isJson:h}}function et(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 tt(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():u(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 u(s){for(const a in s){const f=s[a];if(l(f))return!0;if(typeof f=="object"&&u(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];l(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 l(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 oe=null,ae=null,ce=null,ue="/",le=null;const nt=()=>oe,it=e=>{if(S.info("[Config] Environment:",e),!e)throw new Error("Invalid environment.");oe=e},rt=()=>ae,st=e=>{if(S.info("[Config] API Host:",e),!e)throw new Error("Invalid API host.");ae=e},ot=()=>le,at=e=>{le=e},ct=()=>ce,ut=e=>{if(S.info("[Config] Main App Host:",e),!e)throw new Error("Invalid main app host.");ce=e},lt=e=>{S.info("[Config] Base Assets Urls:",e),ue=e},dt=()=>ue,L={getEnvironment:nt,getApiHost:rt,getErrorHandler:ot,setEnvironment:it,setApiHost:st,setErrorHandler:at,getMainAppHost:ct,setMainAppHost:ut,setBaseAssetsUrl:lt,getBaseAssetsUrl:dt};function mt(e){const t=L.getApiHost().replace(/\/$/g,"");let i=null,n={},r={};e&&m(e);function c(){return t+l()+h()}function u(){return l(!0,!0)}function m(d){return i="/"+d.replace(/^\//g,""),this}function l(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:l,getUri:c,getMockUri:u,setQueryParams:s,setQueryParam:a,removeQueryParam:f,hasQuery:p,getQueryString:h,setRouteParams:g,setRouteParam:w,removeRouteParam:k}}function ft(e){let t=[];function i(){return t=s(arguments),u(),this}function n(){return t.length>0}function r(a){return t.includes(a.trim())?this:(t.push(a.trim()),u(),this)}function c(a){const f=t.indexOf(a.trim());return f===-1?this:(t.splice(f,1),u(),this)}function u(){t.length?e.setQueryParam("groups",l(t)):e.removeQueryParam("groups")}function m(a){return a.split(",").map(f=>f.trim())}function l(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 pt(e){let t=!1,i=!1,n=1,r=10;function c(){return t=!0,u(),this}function u(){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 l(){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?l()?(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:u,disablePagination:m,hasPagination:l,setPage:s,setPerPage:a}}function ht(e){let t=!1,i="id",n="ASC";function r(){t=!0;const a=s(arguments);return a.orderBy&&u(a.orderBy,!1),a.orderDir&&m(a.orderDir,!1),l(),this}function c(){return t}function u(a,f=!0){return t=!0,i=a,f&&l(),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&&l(),this}function l(){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:u,setOrderDir:m}}function yt(){let e=!1;function t(){return e=!0,this}function i(){return e}return{setSilent:t,isSilent:i}}function gt(){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 bt(e){function t(){return e}function i(){return e.data}function n(){return e.data}return{getResponse:t,getData:i,getPayload:n}}function wt(e,t=!1){let i=!1,n=!1;return e.response?(i=!0,n=!0):e.request&&(i=!0),!t&&L.getErrorHandler()&&L.getErrorHandler()(e),{sent:i,responded:n,error:e}}function Rt(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 u(){return r()?e.data["hydra:totalItems"]:null}function m(){return r()?e.data["hydra:view"]&&e.data["hydra:view"]["hydra:last"]:!1}function l(){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:u,hasPagination:m,getPage:l,getPages:s}}function At(e,t,i,n,r,c){async function u(){const l=i.getMethod(),s=t.getUri(),a=e.getHeaders(),f=n.getPayload(),p=[s];["post","put","patch"].includes(l)&&p.push(f||{}),p.push({headers:a,responseType:c.getResponseType()}),S.info("[Request] Sending request:",`[${l.toUpperCase()}]`,s);try{const h=await Ne[l](...p);return m(h)}catch(h){throw wt(h,r.isSilent())}}function m(l){if(l.headers){const s=Object.keys(l.headers),a=s.map(f=>f.toLowerCase()).indexOf("content-type");if(a!==-1&&l.headers[s[a]].includes("application/ld+json"))return Rt(l)}return bt(l)}return{send:u}}function A(e,t="get",i=null){const n=Ye(),r=mt(e),c=et(t),u=tt(c,n,i),m=ft(r),l=pt(r),s=ht(r),a=yt(),f=gt(),p=At(n,r,c,u,a,f);return{...n,...r,...c,...u,...m,...l,...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 Pt=(e,t)=>y("/v2/activity/candidate/:candidateId/establishment/:establishmentId").setRouteParams({candidateId:e,establishmentId:t}),vt=()=>({listByCandidateAndEstablishment:Pt}),Et=(e,t,i)=>y("/candidate/:candidateId/share/establishment/:establishmentId").setMethod("post").setRouteParams({candidateId:e,establishmentId:t}).setPayload(i),Ct=(e,t)=>y("/candidate/:candidateId/archive/establishment/:establishmentId").setRouteParams({candidateId:e,establishmentId:t}),It=(e,t)=>y("/candidate/:candidateId/archive/establishment/:establishmentId").setMethod("post").setRouteParams({candidateId:e,establishmentId:t}),St=(e,t)=>y("/candidate/:candidateId/archive/establishment/:establishmentId").setMethod("delete").setRouteParams({candidateId:e,establishmentId:t}),kt=e=>y("/v2/candidates/lookup").setQueryParam("email",e),Ot=(e,t)=>y("/v2/candidates").setMethod("post").setQueryParam("establishment-id",e).setFormData().setPayload(t),Tt=(e,t,i)=>y("/v2/candidates/:candidateId").setQueryParam("establishment-id",t).setRouteParams({candidateId:e}).setMethod("post").setFormData().setPayload(i),Lt=e=>y("/candidate/register/close/:registrationToken").setMethod("post").setRouteParams({registrationToken:e}),$t=e=>y("/candidate/register/open").setMethod("post").setQueryParam("groups","register:token").setPayload(e),Dt=(e,t)=>y("/establishment/:establishmentId:/candidate/invitation").setRouteParams({establishmentId:e}).setMethod("post").setPayload(t),Mt=()=>({share:Et,isArchived:Ct,archive:It,unarchive:St,lookupCandidate:kt,createCandidate:Ot,updateCandidate:Tt,closeIncompleteRegistration:Lt,openNewRegistration:$t,updateInvitation:Dt}),Nt=(e,t)=>y("/comment/establishment/:establishmentId/candidate/:userId").setRouteParams({establishmentId:e,userId:t}),jt=(e,t,i)=>y("/comment/establishment/:establishmentId/candidate/:userId").setRouteParams({establishmentId:e,userId:t}).setMethod("post").setPayload(i),_t=(e,t)=>y("/comment/:commentId").setRouteParams({commentId:e}).setMethod("put").setPayload(t),xt=e=>y("/comment/:commentId").setRouteParams({commentId:e}).setMethod("delete"),Bt=()=>({getForEstablishmentCandidate:Nt,postForEstablishmentCandidate:jt,update:_t,remove:xt}),Ut=()=>A("contractType").isList().addGroup("Term:id").addGroup("Term:name"),Vt=(e,t=!0)=>y("contractType/establishment/:establishmentId").isList().setRouteParams({establishmentId:e}).setQueryParam("all",t).addGroup("Term:id").addGroup("Term:name"),Ft=()=>({list:Ut,listByEstablishment:Vt}),zt=e=>y("/v2/talents").isList().setQueryParam("establishment-id",e),Ht=()=>({list:zt}),Qt=(e,t,i)=>y("/cvtheque/establishment/:establishmentId/candidate/:candidateId/label/synchronize").setRouteParams({establishmentId:e,candidateId:t}).setMethod("post").setPayload(i),qt=()=>({syncCandidateLabels:Qt}),Gt=()=>A("diploma").isList().addGroup("Term:id").addGroup("Term:name"),Kt=()=>({list:Gt}),Wt=e=>y("document/candidate/:candidateId").setRouteParams({candidateId:e}).isList().disablePagination(),Jt=(e,t)=>y("document/candidate/:candidateId/establishment/:establishmentId/recruiter").setRouteParams({candidateId:e,establishmentId:t}).isList().disablePagination(),Zt=(e,t)=>y("document/candidate/:candidateId/establishment/:establishmentId/candidate").setRouteParams({candidateId:e,establishmentId:t}).isList().disablePagination(),Xt=e=>y("document/recruiter").setMethod("post").setPayload(e),Yt=e=>y("document/:documentId").setRouteParams({documentId:e}).setMethod("delete"),en=()=>({listByCandidate:Wt,listByCandidateAndEstablishmentFromRecruiter:Jt,listByCandidateAndEstablishmentFromCandidate:Zt,addFromRecruiter:Xt,remove:Yt}),tn=(e,t)=>y("/v2/establishments/:establishmentId/email-history").setRouteParams({establishmentId:t}).setQueryParam("receiverId",e).isList().disablePagination(),nn=()=>({listByCandidateAndEstablishment:tn}),rn=(e,t)=>y("/email/candidate/:candidateId").setMethod("post").setRouteParams({candidateId:e}).setPayload(t),sn=(e,t)=>y("/v2/emails/send").setMethod("post").setFormData().setPayload({recipientIds:e,...t}),on=()=>({sendToCandidate:rn,sendToRecipients:sn}),an=(e,t=!0)=>{const i=y("/v2/establishments/:establishmentId/email-templates").setRouteParams({establishmentId:e}).isList().disablePagination();return t&&i.setQueryParam("global",!0),i},cn=()=>y("/v2/self/email-templates").isList().disablePagination(),un=()=>({listByEstablishment:an,listSelf:cn}),ln=(e,t)=>y("establishment-career/:establishmentId/:versionId").setRouteParams({establishmentId:e,versionId:t}),dn=(e,t="published")=>y("establishment-career/:establishmentId/state/:state").setRouteParams({establishmentId:e,state:t}),mn=(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},fn=(e,t)=>y("establishment-career/:establishmentId/logo-banner").setMethod("post").setRouteParams({establishmentId:e}).setPayload(t),pn=(e,t,i)=>y("establishment-career/:establishmentId/publish/:versionId").setMethod("post").setRouteParams({establishmentId:e,versionId:t}).setPayload(i),hn=()=>({readById:ln,readByState:dn,upsert:mn,uploadLogoAndBanner:fn,publish:pn}),yn=e=>A("establishment/:establishmentId").setRouteParams({establishmentId:e}),gn=e=>y("establishment/:establishmentId/authorizations").setRouteParams({establishmentId:e}),W=()=>({read:yn,authorizations:gn}),bn=e=>A("feature-flag/maintenance").setMethod("post").setPayload(e),wn=(e,t)=>A("feature-flag/establishment").setMethod("post").setPayload({establishment:e,flagName:t}),Rn=()=>({maintenanceModeEnabled:bn,forEstablishment:wn}),An=()=>A("job").isList().addGroup("Term:id").addGroup("Term:name"),Pn=(e,t=!0)=>y("job/establishment/:establishmentId").isList().setRouteParams({establishmentId:e}).setQueryParam("all",t).addGroup("Term:id").addGroup("Term:name"),vn=()=>({list:An,listByEstablishment:Pn}),En=e=>y("/label/establishment/:establishmentId").isList().setRouteParams({establishmentId:e}),Cn=(e,t)=>y("/label/establishment/:establishmentId").setMethod("post").setRouteParams({establishmentId:e}).setPayload(t),In=(e,t)=>y("/label/:labelId").setMethod("put").setRouteParams({labelId:e}).setPayload(t),Sn=e=>y("/label/:labelId").setMethod("delete").setRouteParams({labelId:e}),kn=(e,t,i)=>y("/label/establishment/:establishmentId/candidate/:candidateId/synchronize").setMethod("post").setPayload(i).setRouteParams({establishmentId:e,candidateId:t}),On=()=>({listByEstablishment:En,addToEstablishment:Cn,update:In,remove:Sn,syncForCandidate:kn}),Tn=e=>A("offer/:offerId").setRouteParams({offerId:e}),Ln=()=>({read:Tn}),$n=(e,t=!1)=>{const i=y("/recruiter/establishment/:establishmentId").isList().setRouteParams({establishmentId:e});return t&&i.setQueryParam("exclude-me",1),i},Dn=()=>({listByEstablishment:$n}),Mn=e=>y("/recruitment/establishment/:establishmentId/mine").isList().setRouteParams({establishmentId:e}),Nn=(e,t)=>y("/recruitment/mine/establishment/:establishmentId/has-not/candidate/:candidateId").isList().setRouteParams({establishmentId:e,candidateId:t}),jn=(e,t)=>y("/recruitment/mine/establishment/:establishmentId/has/candidate/:candidateId").isList().setRouteParams({establishmentId:e,candidateId:t}),_n=(e,t)=>y("/recruitment/establishment/:establishmentId/has/candidate/:candidateId").isList().setRouteParams({establishmentId:e,candidateId:t}),xn=(e,t)=>y("/recruitment/:recruitmentId/candidate").setMethod("put").setRouteParams({recruitmentId:e}).setPayload(t),Bn=(e,t)=>y("/recruitment/:recruitmentId/candidate/:candidateId").setMethod("delete").setRouteParams({recruitmentId:e,candidateId:t}),Un=()=>({mineByEstablishment:Mn,mineWithoutCandidate:Nn,mineWithCandidate:jn,withCandidate:_n,addCandidates:xn,removeCandidate:Bn}),Vn=(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},Fn=(e,t)=>A("candidate/register/update/:token").setMethod("post").setRouteParams({token:e}).setPayload(t),zn=e=>A("candidate/register/read/:token").setRouteParams({token:e}),Hn=e=>A("candidate/register/close/:token").setMethod("post").setRouteParams({token:e}),Qn=()=>({open:Vn,update:Fn,read:zn,close:Hn}),qn=(e,t)=>y("/v2/registrations/lookup").setQueryParam("candidate-id",e).setQueryParam("establishment-id",t),Gn=()=>({lookupEstablishment:qn}),Kn=()=>A("speciality").isList().addGroup("Term:id").addGroup("Term:name"),Wn=(e,t=!0)=>y("speciality/establishment/:establishmentId").isList().setRouteParams({establishmentId:e}).setQueryParam("all",t).addGroup("Term:id").addGroup("Term:name"),Jn=()=>({list:Kn,listByEstablishment:Wn}),Zn=e=>y("/tag/public/establishment/:establishmentId").isList().setRouteParams({establishmentId:e}),Xn=()=>({listByEstablishment:Zn}),Yn=(e,t)=>y("/v2/talents/lookup").setQueryParam("candidate-id",e).setQueryParam("establishment-id",t),ei=e=>y("/v2/talents/index").setMethod("post").setPayload(e),ti=()=>({lookupTalent:Yn,addCandidateToTalentPool:ei}),ni=e=>A("user/email/isset/:email").setRouteParams({email:e}),ii=()=>y("user/self").addGroup("user:self"),ri=e=>y("/user/:uuid").setRouteParams({uuid:e}),si=e=>A("/user/:uuid").setRouteParams({uuid:e}),oi=e=>y("/user/:id/uuid").setRouteParams({id:e}),J=()=>({emailExists:ni,self:ii,byUuidPrivate:ri,byUuid:si,fetchUuid:oi});let U;function de(){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 J().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 W().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 ai(e,...t){if(!N().isAuthenticated())throw"ERR_NOT_AUTHENTICATED";const n=de();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 ci=je.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 J().self().send();this.user=t.getData()}},async fetchPermission(e,t){if(!this.establishments[e]||t){const i=await W().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 D=null;function b(){if(D)return D;const e=L.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 u(){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();u()})),r}async function l(p,h){if(!O())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(!O()){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(!O()){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 D={analyticsScriptReady:m,isEnabled:c,identify:l,page:s,track:a,consoleMessage:f},D}b.destroy=()=>D=null;function me(){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 u(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 l(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:u,applicationSuccessViewed:m,applicationFormFailed:l}}function fe(){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 u(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 l(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:u,profileCandidateAdded:m,profileCommentAdded:l,profileDocumentAdded:s,profileDocumentDownloaded:a,profileDocumentRequested:f,profileRecruitmentAdded:p,profileRecruitmentRemoved:h,profileTabSelected:g,profileViewed:w,profileEmailSent:k}}function pe(){const e="Visual Builder";function t(o,$e){if(!o)throw new Error(`Missing arguments for domain "${e}"`);const j={companyId:o.companyId?o.companyId.toString():null};return $e&&(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 u(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 l(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 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))}async function Te(o){return b().track(o.name,e,t(o.properties,!0))}async function Le(o){return b().track(o.name,e,t(o.properties,!0))}return{careerSitePreviewViewed:i,careerSitePublished:n,setupBenefitCustomAdded:r,setupBenefitViewed:c,setupCandidateInformationViewed:u,setupContactAdded:m,setupContactViewed:l,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:we,fastCopyLinkClicked:Re,setupBenefitCustomDeleted:Ae,setupBenefitCustomEdited:Pe,setupContactDeleted:ve,setupContactEdited:Ee,setupContactNewClicked:Ce,setupPresentationContentDeleted:Ie,setupPresentationContentDuplicated:Se,setupPresentationContentMoved:ke,setupPresentationTabDeleted:Oe,setupPresentationTabEdited:Te,setupPresentationTabMoved:Le}}const Y=Object.freeze(Object.defineProperty({__proto__:null,useAnalyticsHublerApplication:me,useAnalyticsProfile:fe,useAnalyticsVisualBuilder:pe},Symbol.toStringTag,{value:"Module"}));function ui(){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 li="AIzaSyDicyRD6rvVdnicp1tgV0ElazASNGbyyTs";let he=!1;const ye=()=>new Promise(e=>{O()||he||window.google&&window.google.maps?e():(window.addEventListener("gmap-ready",()=>e()),fi())}),di=(e,t)=>ye().then(()=>{O()||mi(e,t)}),mi=(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)})},fi=()=>{window.onGmapScriptReady=()=>{};const e=document.createElement("script");e.src="https://maps.googleapis.com/maps/api/js?key="+li+"&libraries=places&callback=onGmapScriptReady",e.async=!0,e.defer=!0,e.onload=()=>window.dispatchEvent(new Event("gmap-ready")),document.body.appendChild(e),he=!0},pi={scriptReady:ye,autocompleteInput:di},hi={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"}},yi={fr:hi};let q=null;const ge=()=>q,gi=(e={})=>{let t=e.locale||"fr";const i=l=>t=l,n=()=>t,r=K(yi,(e==null?void 0:e.messages)||{}),c=(l,s)=>{const a=T(r,`${t}.${l}`);return a?s?bi(a,s):a:l},u=(l,s)=>{const a=T(r,`${t}.${l}`);return a?wi(a,s):l};return q={t:c,tNode:u,setLocale:i,getLocale:n,install:l=>{l.config.globalProperties.$t=c,l.config.globalProperties.$tNode=u}},q},bi=(e,t)=>e?e.replace(/{{ ?([a-zA-Z_.]+) ?}}/g,(i,n)=>T(t,n)):null,wi=(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()=>ee.text(n);n=n.replace(/[{}%]/g,"").trim();const c=n.match(/^[a-zA-Z_.]+/)[0];n=n.replace(c,"").trim();const u={};return n!==""&&([...n.matchAll(/([a-zA-Z_.]+)(=([a-zA-Z_.]+))?/g)].reduce((s,a)=>(a[3]===void 0?Q(s,a[1],T(t,a[1])):Q(s,a[1],T(t,a[3])),s),u),[...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},u)),m=>ee[r](c,t,m,u)});return{setup:(n,{slots:r})=>()=>i.map(c=>c(r))}},ee={slot:(e,t,i,n)=>$.h("span",{class:"node node--slot"},i[e.trim()](n)),variable:(e,t)=>$.h("span",{class:"node node--variable"},T(t,e.trim())),text:e=>$.h("span",{class:"node node--text"},e)};function Ri(e){const{t}=ge(),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 _e.useTimeAgo(e,{fullDateFormatter:n=>n.toLocaleDateString(),messages:i})}function Ai(){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 u(){return!!(e&&e.controller&&e.action)}function m(){window.location.search.length!==0&&(e=window.location.search.substring(1).split("&").reduce((l,s)=>{const a=s.split("=");return a[0]==="controller"||a[0]==="action"?l[a[0]]=decodeURIComponent(a[1]):l.arguments[a[0]]=decodeURIComponent(a[1]),l},{controller:null,action:null,arguments:{}}))}return m(),{getParams:t,getController:i,getControllerComposableName:n,getAction:r,getArguments:c,hasAction:u}}function Pi(){async function e({domain:n,event:r,...c}){const u="useAnalytics"+n.charAt(0).toUpperCase()+n.slice(1);if(!t(u))throw new Error(`Domain ${n} is not defined`);const m=Y[u]();if(!i(m,r))throw new Error(`Event ${r} is not defined in domain ${n}`);return m[r](c)}function t(n){return!!Y[n]}function i(n,r){return!!n[r]}return{call:e}}const te=Object.freeze(Object.defineProperty({__proto__:null,useAnalyticsQSController:Pi},Symbol.toStringTag,{value:"Module"}));function vi(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=te[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 te}function n(r){return e.getAction()in r}return{dispatch:t}}function Ei(){let e=!1;function t(r,c,u){n(),u()}function i(r,c,u){if(!e)return e=!0,t(r,c,u);u()}function n(){const r=Ai();if(!r.hasAction())return;vi(r).dispatch()}return{vueRouterBeforeEach:t,vueRouterBeforeFirst:i,handle:n}}const Ci=()=>({getAssetUrl:t=>`${L.getBaseAssetsUrl()}${t}`}),R=()=>L.getMainAppHost(),Ii=()=>`${R()}/rh/establishments`,Si=e=>`${R()}/rh/establishment/${e}`,ki=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},Oi=e=>`${R()}/candidate-invite/establishment/${e}`,Ti=(e,t=!1)=>t?`${R()}/cvbank/${e}/`:`${R()}/rh/establishment/${e}/cvtheque/`,Li=(e,t)=>`${R()}/user-profile/establishment/${e}/user/${t}`,$i=e=>`${R()}/rh/establishment/${e}/recruitment`,Di=(e,t)=>`${R()}/rh/establishment/${e}/recruitment/${t}`,Mi=(e,t)=>`${R()}/rh/establishment/${e}/recruitment/${t}/kanban`,Ni=e=>`${R()}/rh/establishment/${e}/career-configuration`,ji=(e,t=null)=>t?`${R()}/career-website/${e}/${t}`:`${R()}/career-website/${e}`,_i=(e,t)=>`${R()}/career-website-preview/${e}/${t}`,xi=(e,t=null)=>{const i=R().replace("://",`://${e}.`);return t?`${i}?_version=${t}`:`${i}`},Bi=e=>`${R()}/rh/establishment/${e}/stats`,Ui=e=>`${R()}/rh/establishment/${e}/backoffice`,Vi=()=>`${R()}/rh/settings/general`;function Fi(){return{root:R,establishments:Ii,establishment:Si,img:ki,candidateInvite:Oi,cvtheque:Ti,userProfile:Li,recruitments:$i,recruitment:Di,recruitmentKanban:Mi,career:Ni,careerConfig:ji,careerPreview:_i,careerWebsite:xi,statistics:Bi,backoffice:Ui,userSettings:Vi}}const ne=new Set;let M,G={ignore:e=>e.startsWith("Ui")};const H=e=>{if(e!=null&&e.classList){e._cssChecked=!0;for(const t of e.classList)M.has(t)||ne.has(t)||G.ignore(t)||(ne.add(t),S.error(`Undefined CSS class: ${t}`))}},be=e=>{var t;for(const i of e)if(i!=null&&i.cssRules&&(i==null?void 0:i.cssRules.length)>0)be(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)M.add(r.substr(1))}},zi=(e={})=>{if(M)return M;M=new Set,G={...G,...e},be(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)){H(r);for(const c of r.querySelectorAll("*"))H(c)}}else(n==null?void 0:n.attributeName)==="class"&&H(n.target)}).observe(document,{attributes:!0,childList:!0,subtree:!0})},Hi="0.2.45";exports.BaseLogger=V;exports.Gmap=pi;exports.SDKConfig=L;exports.SDKLogger=S;exports.VERSION=Hi;exports._clone=re;exports._get=T;exports._merge=K;exports._set=Q;exports.createI18n=gi;exports.inBrowser=Xe;exports.inNode=O;exports.useActivityRepository=vt;exports.useAnalyticsHublerApplication=me;exports.useAnalyticsIdentify=ui;exports.useAnalyticsProfile=fe;exports.useAnalyticsVisualBuilder=pe;exports.useAssetUrls=Ci;exports.useAuthentication=N;exports.useAuthorization=de;exports.useAuthorizationStore=ci;exports.useCanAccessEstablishmentMiddleware=ai;exports.useCandidateRepository=Mt;exports.useCommentRepository=Bt;exports.useContractTypeRepository=Ft;exports.useCookieStorage=se;exports.useCvbankRepository=Ht;exports.useCvthequeRepository=qt;exports.useDiplomaRepository=Kt;exports.useDocumentRepository=en;exports.useDomainUrls=Fi;exports.useEmailHistoryRepository=nn;exports.useEmailRepository=on;exports.useEmailTemplateRepository=un;exports.useEstablishmentCareerRepository=hn;exports.useEstablishmentRepository=W;exports.useFeatureFlagRepository=Rn;exports.useI18n=ge;exports.useJobRepository=vn;exports.useLabelRepository=On;exports.useLocaleTimeAgo=Ri;exports.useOfferRepository=Ln;exports.usePrivateRequest=y;exports.useQSAction=Ei;exports.useRecruiterRepository=Dn;exports.useRecruitmentRepository=Un;exports.useRegisterRepository=Qn;exports.useRegistrationRepository=Gn;exports.useRequest=A;exports.useSpecialityRepository=Jn;exports.useTagRepository=Xn;exports.useTalentRepository=ti;exports.useUndefinedCssClasses=zi;exports.useUserRepository=J;
|
|
6
|
+
*/var ie=Ue,Z=Ve,Be=Object.prototype.toString,_=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;function Ue(e,t){if(typeof e!="string")throw new TypeError("argument str must be a string");for(var i={},n=t||{},s=n.decode||Fe,c=0;c<e.length;){var u=e.indexOf("=",c);if(u===-1)break;var m=e.indexOf(";",c);if(m===-1)m=e.length;else if(m<u){c=e.lastIndexOf(";",u-1)+1;continue}var l=e.slice(c,u).trim();if(i[l]===void 0){var r=e.slice(u+1,m).trim();r.charCodeAt(0)===34&&(r=r.slice(1,-1)),i[l]=Qe(r,s)}c=m+1}return i}function Ve(e,t,i){var n=i||{},s=n.encode||ze;if(typeof s!="function")throw new TypeError("option encode is invalid");if(!_.test(e))throw new TypeError("argument name is invalid");var c=s(t);if(c&&!_.test(c))throw new TypeError("argument val is invalid");var u=e+"="+c;if(n.maxAge!=null){var m=n.maxAge-0;if(isNaN(m)||!isFinite(m))throw new TypeError("option maxAge is invalid");u+="; Max-Age="+Math.floor(m)}if(n.domain){if(!_.test(n.domain))throw new TypeError("option domain is invalid");u+="; Domain="+n.domain}if(n.path){if(!_.test(n.path))throw new TypeError("option path is invalid");u+="; Path="+n.path}if(n.expires){var l=n.expires;if(!He(l)||isNaN(l.valueOf()))throw new TypeError("option expires is invalid");u+="; Expires="+l.toUTCString()}if(n.httpOnly&&(u+="; HttpOnly"),n.secure&&(u+="; Secure"),n.partitioned&&(u+="; Partitioned"),n.priority){var r=typeof n.priority=="string"?n.priority.toLowerCase():n.priority;switch(r){case"low":u+="; Priority=Low";break;case"medium":u+="; Priority=Medium";break;case"high":u+="; 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:u+="; SameSite=Strict";break;case"lax":u+="; SameSite=Lax";break;case"strict":u+="; SameSite=Strict";break;case"none":u+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}}return u}function Fe(e){return e.indexOf("%")!==-1?decodeURIComponent(e):e}function ze(e){return encodeURIComponent(e)}function He(e){return Be.call(e)==="[object Date]"||e instanceof Date}function Qe(e,t){try{return t(e)}catch{return e}}function qe(){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 Ge(e){return typeof e=="string"?ie(e):typeof e=="object"&&e!==null?e:{}}function F(e,t={}){const i=Ke(e);if(!t.doNotParse)try{return JSON.parse(i)}catch{}return e}function Ke(e){return e&&e[0]==="j"&&e[1]===":"?e.substr(2):e}class We{constructor(t,i={}){this.changeListeners=[],this.HAS_DOCUMENT_COOKIE=!1,this.update=()=>{if(!this.HAS_DOCUMENT_COOKIE)return;const s=this.cookies;this.cookies=ie(document.cookie),this._checkChanges(s)};const n=typeof document>"u"?"":document.cookie;this.cookies=Ge(t||n),this.defaultSetOptions=i,this.HAS_DOCUMENT_COOKIE=qe()}_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 s=typeof i=="string"?i:JSON.stringify(i);this.cookies=Object.assign(Object.assign({},this.cookies),{[t]:s}),this.HAS_DOCUMENT_COOKIE&&(document.cookie=Z(t,s,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=Z(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 Je(e,{doNotParse:t=!1,autoUpdateDependencies:i=!1}={},n=new We){const s=i?[...e||[]]:e;let c=n.getAll({doNotParse:!0});const u=L.ref(0),m=()=>{const l=n.getAll({doNotParse:!0});Ze(s||null,l,c)&&u.value++,c=l};return n.addChangeListener(m),xe(()=>{n.removeChangeListener(m)}),{get:(...l)=>(i&&s&&!s.includes(l[0])&&s.push(l[0]),u.value,n.get(l[0],{doNotParse:t,...l[1]})),getAll:(...l)=>(u.value,n.getAll({doNotParse:t,...l[0]})),set:(...l)=>n.set(...l),remove:(...l)=>n.remove(...l),addChangeListener:(...l)=>n.addChangeListener(...l),removeChangeListener:(...l)=>n.removeChangeListener(...l)}}function Ze(e,t,i){if(!e)return!0;for(const n of e)if(t[n]!==i[n])return!0;return!1}const Xe=()=>typeof window<"u"&&typeof window.document<"u",O=()=>typeof process<"u"&&process.versions!=null&&process.versions.node!=null,T=(e,t,i)=>{const n=typeof t=="string"?t.split("."):[t];let s=e;const c=m=>m!=null,u=m=>typeof m=="object";for(const[m,l]of n.entries()){if(!c(s))return i;if(m===n.length-1)return c(s[l])?s[l]:i;if(!u(s[l]))return i;s=s[l]}return i},Q=(e,t,i)=>{const n=typeof t=="string"?t.split("."):[t],s=m=>typeof m=="number"||/^\d$/g.test(m),c=m=>parseInt(m,10);let u=e;return n.forEach((m,l)=>{if(l===n.length-1)u[m]=i;else{const r=s(n[l+1])?[]:{};m=s(m)?c(m):m,u[m]=u[m]??r,u=u[m]}}),e},se=e=>{if(typeof e=="object"){if(Array.isArray(e))return[...e];if(Object(e)===e)return{...e}}return e},K=(e,t)=>{const i={...e};for(const[n,s]of Object.entries(t))n in i&&typeof i[n]=="object"&&typeof s=="object"?i[n]=K(i[n],s):i[n]=se(s);return i},X=()=>typeof window<"u"&&(window!=null&&window.location)?new URL(window.location).host:void 0,z=e=>O()?void 0:{path:"/",domain:e.startsWith(".localhost")?"localhost":e,sameSite:"none",secure:!e.startsWith(".localhost")};function re(){const e=Je();function t(c){return e.get(c)}function i(c,u){const m=X();return e.set(c,u,z(m?`.${m}`:""))}function n(c){const u=X();u?(e.remove(c,z(u)),e.remove(c,z(`.${u}`))):e.remove(c)}function s(){Object.keys(e.getAll()).forEach(c=>n(c))}return{getItem:t,setItem:i,removeItem:n,clear:s}}let x=null;function N(e={auth:"token",refresh:"refresh_token",expiration:"token_expiration_date"},t=re()){if(x)return x;function i(){return t.getItem(e.auth)}function n(){return t.getItem(e.refresh)}function s(){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 u(){t.removeItem(e.auth),t.removeItem(e.refresh),t.removeItem(e.expiration)}function m(){return l()&&!r()}function l(){return!!i()}function r(){const p=s();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:s,authenticate:c,clear:u,isAuthenticated:m,hasAuth:l,isExpired:r,getStorage:f},x}function Ye(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 s(g,w){return t[g]=w,this}function c(g){return t[g]}function u(g){return t[g]&&delete t[g],this}function m(g){return s("Authorization","Bearer "+g),this}function l(){return u("Authorization"),this}function r(){return!!c("Authorization")}function a(){return s("Content-Type","multipart/form-data"),this}function f(){return s("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:s,getHeader:c,removeHeader:u,setAuthorization:m,removeAuthorization:l,hasAuthorization:r,setFormData:a,setJson:f,isFormData:p,isJson:h}}function et(e){let t=null;e&&i(e);function i(s){if(s=s.toLowerCase(),!["get","post","put","patch","delete"].includes(s))throw new Error("Invalid method.");return t=s,this}function n(){return t}return{setMethod:i,getMethod:n}}function tt(e,t,i){let n=null;i&&s(i);function s(r){if(!["post","put","patch"].includes(e.getMethod()))throw new Error("Payload can only be set for POST, PUT and PATCH requests.");return r instanceof FormData?t.setFormData():u(r)&&(r=m(r),t.setFormData()),t.isFormData()&&e.getMethod()==="put"&&(e.setMethod("post"),r.append("_method","PUT")),n=r,this}function c(){return n}function u(r){for(const a in r){const f=r[a];if(l(f))return!0;if(typeof f=="object"&&u(f))return!0}return!1}function m(r,a=null,f=0){const p=!a;p&&(a=new FormData);for(const h in r){const g=r[h];l(g)?(r[h]="<<FileIndex:"+f+">>",a.append(f,g,g.name),f++):typeof g=="object"&&(r[h]=m(r[h],a,f))}return p?(a.append("payload",JSON.stringify(r)),a):r}function l(r){return typeof File<"u"&&r instanceof File||typeof Blob<"u"&&r instanceof Blob}return{setPayload:s,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 oe=null,ae=null,ce=null,ue="/",le=null;const nt=()=>oe,it=e=>{if(S.info("[Config] Environment:",e),!e)throw new Error("Invalid environment.");oe=e},st=()=>ae,rt=e=>{if(S.info("[Config] API Host:",e),!e)throw new Error("Invalid API host.");ae=e},ot=()=>le,at=e=>{le=e},ct=()=>ce,ut=e=>{if(S.info("[Config] Main App Host:",e),!e)throw new Error("Invalid main app host.");ce=e},lt=e=>{S.info("[Config] Base Assets Urls:",e),ue=e},dt=()=>ue,$={getEnvironment:nt,getApiHost:st,getErrorHandler:ot,setEnvironment:it,setApiHost:rt,setErrorHandler:at,getMainAppHost:ct,setMainAppHost:ut,setBaseAssetsUrl:lt,getBaseAssetsUrl:dt};function mt(e){const t=$.getApiHost().replace(/\/$/g,"");let i=null,n={},s={};e&&m(e);function c(){return t+l()+h()}function u(){return l(!0,!0)}function m(d){return i="/"+d.replace(/^\//g,""),this}function l(d=!0,P=!1){return d?i.replace(/:(\w+)/g,(v,C)=>P?"*":s[C]||":"+C):i}function r(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 s=d,this}function w(d,P){return s[d]=P,this}function k(d){return s[d]&&delete s[d],this}return{setPath:m,getPath:l,getUri:c,getMockUri:u,setQueryParams:r,setQueryParam:a,removeQueryParam:f,hasQuery:p,getQueryString:h,setRouteParams:g,setRouteParam:w,removeRouteParam:k}}function ft(e){let t=[];function i(){return t=r(arguments),u(),this}function n(){return t.length>0}function s(a){return t.includes(a.trim())?this:(t.push(a.trim()),u(),this)}function c(a){const f=t.indexOf(a.trim());return f===-1?this:(t.splice(f,1),u(),this)}function u(){t.length?e.setQueryParam("groups",l(t)):e.removeQueryParam("groups")}function m(a){return a.split(",").map(f=>f.trim())}function l(a){return a.join(",")}function r(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:s,removeGroup:c}}function pt(e){let t=!1,i=!1,n=1,s=10;function c(){return t=!0,u(),this}function u(){i=!0;const h=p(arguments);return r(h.page||1,!1),a(h.perPage||s,!1),f(),this}function m(){return i=!1,f(),this}function l(){return i}function r(h,g=!0){return t=!0,i=!0,n=h,g&&f(),this}function a(h,g=!0){return t=!0,i=!0,s=h,g&&f(),this}function f(){t?l()?(e.removeQueryParam("pagination"),e.setQueryParam("page",n),e.setQueryParam("nbResultPerPage",s)):(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:u,disablePagination:m,hasPagination:l,setPage:r,setPerPage:a}}function ht(e){let t=!1,i="id",n="ASC";function s(){t=!0;const a=r(arguments);return a.orderBy&&u(a.orderBy,!1),a.orderDir&&m(a.orderDir,!1),l(),this}function c(){return t}function u(a,f=!0){return t=!0,i=a,f&&l(),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&&l(),this}function l(){c()&&(e.setQueryParam("orderBy",i),e.setQueryParam("orderDirection",n))}function r(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:s,hasOrder:c,setOrderBy:u,setOrderDir:m}}function yt(){let e=!1;function t(){return e=!0,this}function i(){return e}return{setSilent:t,isSilent:i}}function gt(){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 bt(e){function t(){return e}function i(){return e.data}function n(){return e.data}return{getResponse:t,getData:i,getPayload:n}}function wt(e,t=!1){let i=!1,n=!1;return e.response?(i=!0,n=!0):e.request&&(i=!0),!t&&$.getErrorHandler()&&$.getErrorHandler()(e),{sent:i,responded:n,error:e}}function Rt(e){function t(){return e}function i(){return e.data}function n(){return e.data}function s(){return e.data["@type"]==="hydra:Collection"}function c(){return s()?e.data["hydra:member"]:null}function u(){return s()?e.data["hydra:totalItems"]:null}function m(){return s()?e.data["hydra:view"]&&e.data["hydra:view"]["hydra:last"]:!1}function l(){return!s()||!m()?null:parseInt(e.data["hydra:view"]["@id"].match(/page=(\d+)/)[1])}function r(){return!s()||!m()?null:parseInt(e.data["hydra:view"]["hydra:last"].match(/page=(\d+)/)[1])}return{getResponse:t,getData:i,getPayload:n,isCollection:s,getCollection:c,getTotal:u,hasPagination:m,getPage:l,getPages:r}}function At(e,t,i,n,s,c){async function u(){const l=i.getMethod(),r=t.getUri(),a=e.getHeaders(),f=n.getPayload(),p=[r];["post","put","patch"].includes(l)&&p.push(f||{}),p.push({headers:a,responseType:c.getResponseType()}),S.info("[Request] Sending request:",`[${l.toUpperCase()}]`,r);try{const h=await Ne[l](...p);return m(h)}catch(h){throw wt(h,s.isSilent())}}function m(l){if(l.headers){const r=Object.keys(l.headers),a=r.map(f=>f.toLowerCase()).indexOf("content-type");if(a!==-1&&l.headers[r[a]].includes("application/ld+json"))return Rt(l)}return bt(l)}return{send:u}}function A(e,t="get",i=null){const n=Ye(),s=mt(e),c=et(t),u=tt(c,n,i),m=ft(s),l=pt(s),r=ht(s),a=yt(),f=gt(),p=At(n,s,c,u,a,f);return{...n,...s,...c,...u,...m,...l,...r,...a,...f,...p}}function y(e,t="get",i=null){const n=A(e,t,i),s=N();s.isAuthenticated()&&n.setAuthorization(s.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 Pt=(e,t)=>y("/v2/activity/candidate/:candidateId/establishment/:establishmentId").setRouteParams({candidateId:e,establishmentId:t}),vt=()=>({listByCandidateAndEstablishment:Pt}),Et=(e,t,i)=>y("/candidate/:candidateId/share/establishment/:establishmentId").setMethod("post").setRouteParams({candidateId:e,establishmentId:t}).setPayload(i),Ct=(e,t)=>y("/candidate/:candidateId/archive/establishment/:establishmentId").setRouteParams({candidateId:e,establishmentId:t}),It=(e,t)=>y("/candidate/:candidateId/archive/establishment/:establishmentId").setMethod("post").setRouteParams({candidateId:e,establishmentId:t}),St=(e,t)=>y("/candidate/:candidateId/archive/establishment/:establishmentId").setMethod("delete").setRouteParams({candidateId:e,establishmentId:t}),kt=e=>y("/v2/candidates/lookup").setQueryParam("email",e),Ot=(e,t)=>y("/v2/candidates").setMethod("post").setQueryParam("establishment-id",e).setFormData().setPayload(t),Tt=(e,t,i)=>y("/v2/candidates/:candidateId").setQueryParam("establishment-id",t).setRouteParams({candidateId:e}).setMethod("post").setFormData().setPayload(i),$t=e=>y("/candidate/register/close/:registrationToken").setMethod("post").setRouteParams({registrationToken:e}),Lt=e=>y("/candidate/register/open").setMethod("post").setQueryParam("groups","register:token").setPayload(e),Dt=(e,t)=>y("/establishment/:establishmentId:/candidate/invitation").setRouteParams({establishmentId:e}).setMethod("post").setPayload(t),Mt=()=>({share:Et,isArchived:Ct,archive:It,unarchive:St,lookupCandidate:kt,createCandidate:Ot,updateCandidate:Tt,closeIncompleteRegistration:$t,openNewRegistration:Lt,updateInvitation:Dt}),Nt=(e,t)=>y("/comment/establishment/:establishmentId/candidate/:userId").setRouteParams({establishmentId:e,userId:t}),jt=(e,t,i)=>y("/comment/establishment/:establishmentId/candidate/:userId").setRouteParams({establishmentId:e,userId:t}).setMethod("post").setPayload(i),_t=(e,t)=>y("/comment/:commentId").setRouteParams({commentId:e}).setMethod("put").setPayload(t),xt=e=>y("/comment/:commentId").setRouteParams({commentId:e}).setMethod("delete"),Bt=()=>({getForEstablishmentCandidate:Nt,postForEstablishmentCandidate:jt,update:_t,remove:xt}),Ut=()=>A("contractType").isList().addGroup("Term:id").addGroup("Term:name"),Vt=(e,t=!0)=>y("contractType/establishment/:establishmentId").isList().setRouteParams({establishmentId:e}).setQueryParam("all",t).addGroup("Term:id").addGroup("Term:name"),Ft=()=>({list:Ut,listByEstablishment:Vt}),zt=e=>y("/v2/talents").isList().setQueryParam("establishment-id",e),Ht=()=>({list:zt}),Qt=(e,t,i)=>y("/cvtheque/establishment/:establishmentId/candidate/:candidateId/label/synchronize").setRouteParams({establishmentId:e,candidateId:t}).setMethod("post").setPayload(i),qt=()=>({syncCandidateLabels:Qt}),Gt=()=>A("diploma").isList().addGroup("Term:id").addGroup("Term:name"),Kt=()=>({list:Gt}),Wt=e=>y("document/candidate/:candidateId").setRouteParams({candidateId:e}).isList().disablePagination(),Jt=(e,t)=>y("document/candidate/:candidateId/establishment/:establishmentId/recruiter").setRouteParams({candidateId:e,establishmentId:t}).isList().disablePagination(),Zt=(e,t)=>y("document/candidate/:candidateId/establishment/:establishmentId/candidate").setRouteParams({candidateId:e,establishmentId:t}).isList().disablePagination(),Xt=e=>y("document/recruiter").setMethod("post").setPayload(e),Yt=e=>y("document/:documentId").setRouteParams({documentId:e}).setMethod("delete"),en=()=>({listByCandidate:Wt,listByCandidateAndEstablishmentFromRecruiter:Jt,listByCandidateAndEstablishmentFromCandidate:Zt,addFromRecruiter:Xt,remove:Yt}),tn=(e,t)=>y("/v2/establishments/:establishmentId/email-history").setRouteParams({establishmentId:t}).setQueryParam("receiverId",e).isList().disablePagination(),nn=()=>({listByCandidateAndEstablishment:tn}),sn=(e,t)=>y("/email/candidate/:candidateId").setMethod("post").setRouteParams({candidateId:e}).setPayload(t),rn=(e,t)=>y("/v2/emails/send").setMethod("post").setFormData().setPayload({recipientIds:e,...t}),on=()=>({sendToCandidate:sn,sendToRecipients:rn}),an=(e,t=!0)=>{const i=y("/v2/establishments/:establishmentId/email-templates").setRouteParams({establishmentId:e}).isList().disablePagination();return t&&i.setQueryParam("global",!0),i},cn=()=>y("/v2/self/email-templates").isList().disablePagination(),un=()=>({listByEstablishment:an,listSelf:cn}),ln=(e,t)=>y("establishment-career/:establishmentId/:versionId").setRouteParams({establishmentId:e,versionId:t}),dn=(e,t="published")=>y("establishment-career/:establishmentId/state/:state").setRouteParams({establishmentId:e,state:t}),mn=(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},fn=(e,t)=>y("establishment-career/:establishmentId/logo-banner").setMethod("post").setRouteParams({establishmentId:e}).setPayload(t),pn=(e,t,i)=>y("establishment-career/:establishmentId/publish/:versionId").setMethod("post").setRouteParams({establishmentId:e,versionId:t}).setPayload(i),hn=()=>({readById:ln,readByState:dn,upsert:mn,uploadLogoAndBanner:fn,publish:pn}),yn=e=>A("establishment/:establishmentId").setRouteParams({establishmentId:e}),gn=e=>y("establishment/:establishmentId/authorizations").setRouteParams({establishmentId:e}),W=()=>({read:yn,authorizations:gn}),bn=e=>A("feature-flag/maintenance").setMethod("post").setPayload(e),wn=(e,t)=>A("feature-flag/establishment").setMethod("post").setPayload({establishment:e,flagName:t}),Rn=()=>({maintenanceModeEnabled:bn,forEstablishment:wn}),An=()=>A("job").isList().addGroup("Term:id").addGroup("Term:name"),Pn=(e,t=!0)=>y("job/establishment/:establishmentId").isList().setRouteParams({establishmentId:e}).setQueryParam("all",t).addGroup("Term:id").addGroup("Term:name"),vn=()=>({list:An,listByEstablishment:Pn}),En=e=>y("/label/establishment/:establishmentId").isList().setRouteParams({establishmentId:e}),Cn=(e,t)=>y("/label/establishment/:establishmentId").setMethod("post").setRouteParams({establishmentId:e}).setPayload(t),In=(e,t)=>y("/label/:labelId").setMethod("put").setRouteParams({labelId:e}).setPayload(t),Sn=e=>y("/label/:labelId").setMethod("delete").setRouteParams({labelId:e}),kn=(e,t,i)=>y("/label/establishment/:establishmentId/candidate/:candidateId/synchronize").setMethod("post").setPayload(i).setRouteParams({establishmentId:e,candidateId:t}),On=()=>({listByEstablishment:En,addToEstablishment:Cn,update:In,remove:Sn,syncForCandidate:kn}),Tn=e=>A("offer/:offerId").setRouteParams({offerId:e}),$n=()=>({read:Tn}),Ln=(e,t=!1)=>{const i=y("/recruiter/establishment/:establishmentId").isList().setRouteParams({establishmentId:e});return t&&i.setQueryParam("exclude-me",1),i},Dn=()=>({listByEstablishment:Ln}),Mn=e=>y("/recruitment/establishment/:establishmentId/mine").isList().setRouteParams({establishmentId:e}),Nn=(e,t)=>y("/recruitment/mine/establishment/:establishmentId/has-not/candidate/:candidateId").isList().setRouteParams({establishmentId:e,candidateId:t}),jn=(e,t)=>y("/recruitment/mine/establishment/:establishmentId/has/candidate/:candidateId").isList().setRouteParams({establishmentId:e,candidateId:t}),_n=(e,t)=>y("/recruitment/establishment/:establishmentId/has/candidate/:candidateId").isList().setRouteParams({establishmentId:e,candidateId:t}),xn=(e,t)=>y("/recruitment/:recruitmentId/candidate").setMethod("put").setRouteParams({recruitmentId:e}).setPayload(t),Bn=(e,t)=>y("/recruitment/:recruitmentId/candidate/:candidateId").setMethod("delete").setRouteParams({recruitmentId:e,candidateId:t}),Un=()=>({mineByEstablishment:Mn,mineWithoutCandidate:Nn,mineWithCandidate:jn,withCandidate:_n,addCandidates:xn,removeCandidate:Bn}),Vn=(e,t,i,n=null)=>{const s=A("candidate/register/open").setMethod("post"),c={email:e};return t==="establishment"&&(c.establishmentId=i),t==="offer"&&(c.offerId=i),n&&(c.referer=n),s.setPayload(c),s},Fn=(e,t)=>A("candidate/register/update/:token").setMethod("post").setRouteParams({token:e}).setPayload(t),zn=e=>A("candidate/register/read/:token").setRouteParams({token:e}),Hn=e=>A("candidate/register/close/:token").setMethod("post").setRouteParams({token:e}),Qn=()=>({open:Vn,update:Fn,read:zn,close:Hn}),qn=(e,t)=>y("/v2/registrations/lookup").setQueryParam("candidate-id",e).setQueryParam("establishment-id",t),Gn=()=>({lookupEstablishment:qn}),Kn=()=>A("speciality").isList().addGroup("Term:id").addGroup("Term:name"),Wn=(e,t=!0)=>y("speciality/establishment/:establishmentId").isList().setRouteParams({establishmentId:e}).setQueryParam("all",t).addGroup("Term:id").addGroup("Term:name"),Jn=()=>({list:Kn,listByEstablishment:Wn}),Zn=e=>y("/tag/public/establishment/:establishmentId").isList().setRouteParams({establishmentId:e}),Xn=()=>({listByEstablishment:Zn}),Yn=(e,t)=>y("/v2/talents/lookup").setQueryParam("candidate-id",e).setQueryParam("establishment-id",t),ei=e=>y("/v2/talents/index").setMethod("post").setPayload(e),ti=()=>({lookupTalent:Yn,addCandidateToTalentPool:ei}),ni=e=>A("user/email/isset/:email").setRouteParams({email:e}),ii=()=>y("user/self").addGroup("user:self"),si=e=>y("/user/:uuid").setRouteParams({uuid:e}),ri=e=>A("/user/:uuid").setRouteParams({uuid:e}),oi=e=>y("/user/:id/uuid").setRouteParams({id:e}),J=()=>({emailExists:ni,self:ii,byUuidPrivate:si,byUuid:ri,fetchUuid:oi});let U;function de(){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 r=(await J().self().send()).getData();e.user={id:r.id,email:r.email,firstName:r.firstName,lastName:r.lastName,avatar:r.avatar},e.roles=r.roles},i=async r=>{if(!N().isAuthenticated())throw new Error("::SDK Authorization:: User not authenticated");e.establishments[r]=(await W().authorizations(r).send()).getData()},n=r=>{if(e.user===void 0)throw new Error("::SDK Authorization:: User not fetched");return e.roles.includes(r)};return U={fetchSelf:t,fetchPermission:i,hasRole:n,hasRoleRH:()=>n("ROLE_RH"),hasRoleCandidate:()=>n("ROLE_CANDIDATE"),hasRoleAdmin:()=>n("ROLE_ADMIN"),hasPermission:(r,...a)=>{const f=e.establishments[r];if(f===void 0)throw new Error(`::SDK Authorization:: Permissions not fetched for establishment ${r}`);return a.every(p=>f[p]===!0)},clear:()=>{e.user=void 0,e.roles=[],e.establishments={}}},U}async function ai(e,...t){if(!N().isAuthenticated())throw"ERR_NOT_AUTHENTICATED";const n=de();await Promise.all([n.fetchSelf(),n.fetchPermission(e)]);for(let s=0;s<t.length;s++){const c=t[s];if(!n.hasPermission(e,c))throw"ERR_MISSING_PERMISSION"}}const ci=je.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 J().self().send();this.user=t.getData()}},async fetchPermission(e,t){if(!this.establishments[e]||t){const i=await W().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 D=null;function b(){if(D)return D;const e=$.getEnvironment(),t=(()=>e==="prod"||e==="production"?"pPROC7dPoJ7XdxHrwsTQNXCGX79MJjhp":e==="staging"?"823rqOTwVk1ZCWVyBAdLInZ77TcFF0CF":"TMZX6evFnu87JrBHV5qLwHsld5C6hilZ")(),i=!!t,n=e!=="prod"&&e!=="production";let s=null;function c(){return i}function u(){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 s!==null||(s=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();u()})),s}async function l(p,h){if(!O())try{if(await this.analyticsScriptReady(),f("[identify]",[p,h]),c())return window.analytics.identify(p,h)}catch{f("[identify]",[p,h],"error")}}async function r(p,h,g){if(!O()){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(!O()){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 D={analyticsScriptReady:m,isEnabled:c,identify:l,page:r,track:a,consoleMessage:f},D}b.destroy=()=>D=null;function me(){const e="Hubler Application";function t(r){var f;if(!r)throw new Error(`Missing arguments for domain "${e}"`);const a=!!r.offerId;if(a&&!r.recruitmentId)throw new Error(`Missing argument "recruitmentId" for domain "${e}"`);return{companyId:(f=r.establishmentId)==null?void 0:f.toString(),jobOfferId:a?r.offerId.toString():null,recruitmentId:a?r.recruitmentId.toString():null,selections:[a?"Application":"Spontaneous Application"]}}async function i(r){return b().page("Application Authentication Viewed",e,t(r))}async function n(r){return b().page("Application Magic Link Viewed",e,t(r))}async function s(r){return b().page("Application Job Viewed",e,t(r))}async function c(r){return b().page("Application Information Viewed",e,t(r))}async function u(r){return b().page("Application Document Viewed",e,t(r))}async function m(r){return b().page("Application Success Viewed",e,t(r))}async function l(r){if(!r.error)throw new Error(`Missing argument "error" for domain "${e}", event "Application Form Failed"`);return b().track("Application Form Failed",e,{...t(r),error:r.error})}return{applicationAuthenticationViewed:i,applicationMagicLinkViewed:n,applicationJobViewed:s,applicationInformationViewed:c,applicationDocumentViewed:u,applicationSuccessViewed:m,applicationFormFailed:l}}function fe(){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 s(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 u(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 l(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 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:s,profileShared:c,profileArchived:u,profileCandidateAdded:m,profileCommentAdded:l,profileDocumentAdded:r,profileDocumentDownloaded:a,profileDocumentRequested:f,profileRecruitmentAdded:p,profileRecruitmentRemoved:h,profileTabSelected:g,profileViewed:w,profileEmailSent:k}}function pe(){const e="Visual Builder";function t(o,Le){if(!o)throw new Error(`Missing arguments for domain "${e}"`);const j={companyId:o.companyId?o.companyId.toString():null};return Le&&(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 s(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 u(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 l(o){return b().page(o.name,e,t(o.properties,!0))}async function r(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 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))}async function Te(o){return b().track(o.name,e,t(o.properties,!0))}async function $e(o){return b().track(o.name,e,t(o.properties,!0))}return{careerSitePreviewViewed:i,careerSitePublished:n,setupBenefitCustomAdded:s,setupBenefitViewed:c,setupCandidateInformationViewed:u,setupContactAdded:m,setupContactViewed:l,setupEditionDoneViewed:r,setupExternalLinkViewed:a,setupImageUploaded:f,setupImageViewed:p,setupLocationViewed:h,setupPresentationContentAdded:g,setupPresentationNewTabAdded:w,setupPresentationViewed:k,setupSettingsDoneViewed:d,setupSocialNetworkViewed:P,setupThemeViewed:v,visualBuilderViewed:C,setupImageUploadFailed:we,fastCopyLinkClicked:Re,setupBenefitCustomDeleted:Ae,setupBenefitCustomEdited:Pe,setupContactDeleted:ve,setupContactEdited:Ee,setupContactNewClicked:Ce,setupPresentationContentDeleted:Ie,setupPresentationContentDuplicated:Se,setupPresentationContentMoved:ke,setupPresentationTabDeleted:Oe,setupPresentationTabEdited:Te,setupPresentationTabMoved:$e}}const Y=Object.freeze(Object.defineProperty({__proto__:null,useAnalyticsHublerApplication:me,useAnalyticsProfile:fe,useAnalyticsVisualBuilder:pe},Symbol.toStringTag,{value:"Module"}));function ui(){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 li="AIzaSyDicyRD6rvVdnicp1tgV0ElazASNGbyyTs";let he=!1;const ye=()=>new Promise(e=>{O()||he||window.google&&window.google.maps?e():(window.addEventListener("gmap-ready",()=>e()),fi())}),di=(e,t)=>ye().then(()=>{O()||mi(e,t)}),mi=(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)})},fi=()=>{window.onGmapScriptReady=()=>{};const e=document.createElement("script");e.src="https://maps.googleapis.com/maps/api/js?key="+li+"&libraries=places&callback=onGmapScriptReady",e.async=!0,e.defer=!0,e.onload=()=>window.dispatchEvent(new Event("gmap-ready")),document.body.appendChild(e),he=!0},pi={scriptReady:ye,autocompleteInput:di},hi={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"}},yi={fr:hi};let q=null;const ge=()=>q,gi=(e={})=>{let t=e.locale||"fr";const i=l=>t=l,n=()=>t,s=K(yi,(e==null?void 0:e.messages)||{}),c=(l,r)=>{const a=T(s,`${t}.${l}`);return a?r?bi(a,r):a:l},u=(l,r)=>{const a=T(s,`${t}.${l}`);return a?wi(a,r):l};return q={t:c,tNode:u,setLocale:i,getLocale:n,install:l=>{l.config.globalProperties.$t=c,l.config.globalProperties.$tNode=u}},q},bi=(e,t)=>e?e.replace(/{{ ?([a-zA-Z_.]+) ?}}/g,(i,n)=>T(t,n)):null,wi=(e,t)=>{if(!e)return null;const i=e.split(/(\{[{%]+[^{}]*[%}]+})/g).filter(n=>n!=="").map(n=>{const s=n.startsWith("{%")&&n.endsWith("%}")?"slot":n.startsWith("{{")&&n.endsWith("}}")?"variable":"text";if(s==="text")return()=>ee.text(n);n=n.replace(/[{}%]/g,"").trim();const c=n.match(/^[a-zA-Z_.]+/)[0];n=n.replace(c,"").trim();const u={};return n!==""&&([...n.matchAll(/([a-zA-Z_.]+)(=([a-zA-Z_.]+))?/g)].reduce((r,a)=>(a[3]===void 0?Q(r,a[1],T(t,a[1])):Q(r,a[1],T(t,a[3])),r),u),[...n.matchAll(/([a-zA-Z_.]+)="([^"]+)"/g)].reduce((r,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"),r[a[1]]=f,r},u)),m=>ee[s](c,t,m,u)});return{setup:(n,{slots:s})=>()=>i.map(c=>c(s))}},ee={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"},T(t,e.trim())),text:e=>L.h("span",{class:"node node--text"},e)};function Ri(e){const{t}=ge(),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,s)=>n===1?t(s?"timeAgo.last-month":"timeAgo.next-month"):`${n} ${t("timeAgo.month",n)}`,year:(n,s)=>n===1?t(s?"timeAgo.last-year":"timeAgo.next-year"):`${n} ${t("timeAgo.year",n)}`,day:(n,s)=>n===1?t(s?"timeAgo.yesterday":"timeAgo.tomorrow"):`${n} ${t("timeAgo.day",n)}`,week:(n,s)=>n===1?t(s?"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 _e.useTimeAgo(e,{fullDateFormatter:n=>n.toLocaleDateString(),messages:i})}function Ai(){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 s(){return e.action}function c(){return e.arguments}function u(){return!!(e&&e.controller&&e.action)}function m(){window.location.search.length!==0&&(e=window.location.search.substring(1).split("&").reduce((l,r)=>{const a=r.split("=");return a[0]==="controller"||a[0]==="action"?l[a[0]]=decodeURIComponent(a[1]):l.arguments[a[0]]=decodeURIComponent(a[1]),l},{controller:null,action:null,arguments:{}}))}return m(),{getParams:t,getController:i,getControllerComposableName:n,getAction:s,getArguments:c,hasAction:u}}function Pi(){async function e({domain:n,event:s,...c}){const u="useAnalytics"+n.charAt(0).toUpperCase()+n.slice(1);if(!t(u))throw new Error(`Domain ${n} is not defined`);const m=Y[u]();if(!i(m,s))throw new Error(`Event ${s} is not defined in domain ${n}`);return m[s](c)}function t(n){return!!Y[n]}function i(n,s){return!!n[s]}return{call:e}}const te=Object.freeze(Object.defineProperty({__proto__:null,useAnalyticsQSController:Pi},Symbol.toStringTag,{value:"Module"}));function vi(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 s=te[e.getControllerComposableName()]();if(!n(s))throw new Error(`Action ${e.getAction()} not found in controller ${e.getController()}`);return s[e.getAction()](e.getArguments())}function i(){return e.getControllerComposableName()in te}function n(s){return e.getAction()in s}return{dispatch:t}}function Ei(){let e=!1;function t(s,c,u){n(),u()}function i(s,c,u){if(!e)return e=!0,t(s,c,u);u()}function n(){const s=Ai();if(!s.hasAction())return;vi(s).dispatch()}return{vueRouterBeforeEach:t,vueRouterBeforeFirst:i,handle:n}}const Ci=()=>({getAssetUrl:t=>`${$.getBaseAssetsUrl()}${t}`}),R=()=>$.getMainAppHost(),Ii=()=>`${R()}/rh/establishments`,Si=e=>`${R()}/rh/establishment/${e}`,ki=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},Oi=()=>`${R()}/rh/dashboard`,Ti=e=>`${R()}/candidate-invite/establishment/${e}`,$i=(e,t=!1)=>t?`${R()}/cvbank/${e}/`:`${R()}/rh/establishment/${e}/cvtheque/`,Li=(e,t)=>`${R()}/user-profile/establishment/${e}/user/${t}`,Di=e=>`${R()}/rh/establishment/${e}/recruitment`,Mi=(e,t)=>`${R()}/rh/establishment/${e}/recruitment/${t}`,Ni=(e,t)=>`${R()}/rh/establishment/${e}/recruitment/${t}/kanban`,ji=e=>`${R()}/rh/establishment/${e}/career-configuration`,_i=(e,t=null)=>t?`${R()}/career-website/${e}/${t}`:`${R()}/career-website/${e}`,xi=(e,t)=>`${R()}/career-website-preview/${e}/${t}`,Bi=(e,t=null)=>{const i=R().replace("://",`://${e}.`);return t?`${i}?_version=${t}`:`${i}`},Ui=e=>`${R()}/rh/establishment/${e}/stats`,Vi=e=>`${R()}/rh/establishment/${e}/backoffice`,Fi=()=>`${R()}/rh/settings/general`;function zi(){return{root:R,establishments:Ii,establishment:Si,img:ki,dashboard:Oi,candidateInvite:Ti,cvtheque:$i,userProfile:Li,recruitments:Di,recruitment:Mi,recruitmentKanban:Ni,career:ji,careerConfig:_i,careerPreview:xi,careerWebsite:Bi,statistics:Ui,backoffice:Vi,userSettings:Fi}}const ne=new Set;let M,G={ignore:e=>e.startsWith("Ui")};const H=e=>{if(e!=null&&e.classList){e._cssChecked=!0;for(const t of e.classList)M.has(t)||ne.has(t)||G.ignore(t)||(ne.add(t),S.error(`Undefined CSS class: ${t}`))}},be=e=>{var t;for(const i of e)if(i!=null&&i.cssRules&&(i==null?void 0:i.cssRules.length)>0)be(i.cssRules);else if(i.selectorText){const n=(t=i.selectorText)==null?void 0:t.match(/\.[\w-]+/g);if(n)for(const s of n)M.add(s.substr(1))}},Hi=(e={})=>{if(M)return M;M=new Set,G={...G,...e},be(document.styleSheets),new MutationObserver(i=>{for(const n of i)if(n.type==="childList"&&(n!=null&&n.addedNodes)){for(const s of n.addedNodes)if(!(s.nodeType===3||s.nodeType===8)){H(s);for(const c of s.querySelectorAll("*"))H(c)}}else(n==null?void 0:n.attributeName)==="class"&&H(n.target)}).observe(document,{attributes:!0,childList:!0,subtree:!0})},Qi="0.2.47";exports.BaseLogger=V;exports.Gmap=pi;exports.SDKConfig=$;exports.SDKLogger=S;exports.VERSION=Qi;exports._clone=se;exports._get=T;exports._merge=K;exports._set=Q;exports.createI18n=gi;exports.inBrowser=Xe;exports.inNode=O;exports.useActivityRepository=vt;exports.useAnalyticsHublerApplication=me;exports.useAnalyticsIdentify=ui;exports.useAnalyticsProfile=fe;exports.useAnalyticsVisualBuilder=pe;exports.useAssetUrls=Ci;exports.useAuthentication=N;exports.useAuthorization=de;exports.useAuthorizationStore=ci;exports.useCanAccessEstablishmentMiddleware=ai;exports.useCandidateRepository=Mt;exports.useCommentRepository=Bt;exports.useContractTypeRepository=Ft;exports.useCookieStorage=re;exports.useCvbankRepository=Ht;exports.useCvthequeRepository=qt;exports.useDiplomaRepository=Kt;exports.useDocumentRepository=en;exports.useDomainUrls=zi;exports.useEmailHistoryRepository=nn;exports.useEmailRepository=on;exports.useEmailTemplateRepository=un;exports.useEstablishmentCareerRepository=hn;exports.useEstablishmentRepository=W;exports.useFeatureFlagRepository=Rn;exports.useI18n=ge;exports.useJobRepository=vn;exports.useLabelRepository=On;exports.useLocaleTimeAgo=Ri;exports.useOfferRepository=$n;exports.usePrivateRequest=y;exports.useQSAction=Ei;exports.useRecruiterRepository=Dn;exports.useRecruitmentRepository=Un;exports.useRegisterRepository=Qn;exports.useRegistrationRepository=Gn;exports.useRequest=A;exports.useSpecialityRepository=Jn;exports.useTagRepository=Xn;exports.useTalentRepository=ti;exports.useUndefinedCssClasses=Hi;exports.useUserRepository=J;
|
package/dist/core.js
CHANGED
|
@@ -235,7 +235,7 @@ function Ge(e, t, i) {
|
|
|
235
235
|
return !0;
|
|
236
236
|
return !1;
|
|
237
237
|
}
|
|
238
|
-
const
|
|
238
|
+
const wi = () => typeof window < "u" && typeof window.document < "u", O = () => typeof process < "u" && process.versions != null && process.versions.node != null, T = (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, u = (f) => typeof f == "object";
|
|
@@ -273,11 +273,11 @@ const bi = () => typeof window < "u" && typeof window.document < "u", O = () =>
|
|
|
273
273
|
for (const [n, r] of Object.entries(t))
|
|
274
274
|
n in i && typeof i[n] == "object" && typeof r == "object" ? i[n] = te(i[n], r) : i[n] = Ke(r);
|
|
275
275
|
return i;
|
|
276
|
-
}, W = () => typeof window < "u" && (window != null && window.location) ? new URL(window.location).host : void 0, F = (e) => O()
|
|
276
|
+
}, W = () => typeof window < "u" && (window != null && window.location) ? new URL(window.location).host : void 0, F = (e) => O() ? void 0 : {
|
|
277
277
|
path: "/",
|
|
278
|
-
domain: e,
|
|
278
|
+
domain: e.startsWith(".localhost") ? "localhost" : e,
|
|
279
279
|
sameSite: "none",
|
|
280
|
-
secure: !
|
|
280
|
+
secure: !e.startsWith(".localhost")
|
|
281
281
|
};
|
|
282
282
|
function We() {
|
|
283
283
|
const e = qe();
|
|
@@ -286,7 +286,7 @@ function We() {
|
|
|
286
286
|
}
|
|
287
287
|
function i(c, u) {
|
|
288
288
|
const f = W();
|
|
289
|
-
return e.set(c, u, F(f ? `.${f}` :
|
|
289
|
+
return e.set(c, u, F(f ? `.${f}` : ""));
|
|
290
290
|
}
|
|
291
291
|
function n(c) {
|
|
292
292
|
const u = W();
|
|
@@ -857,9 +857,9 @@ function b(e, t = "get", i = null) {
|
|
|
857
857
|
return c();
|
|
858
858
|
}, n;
|
|
859
859
|
}
|
|
860
|
-
const wt = (e, t) => b("/v2/activity/candidate/:candidateId/establishment/:establishmentId").setRouteParams({ candidateId: e, establishmentId: t }),
|
|
860
|
+
const wt = (e, t) => b("/v2/activity/candidate/:candidateId/establishment/:establishmentId").setRouteParams({ candidateId: e, establishmentId: t }), Ai = () => ({
|
|
861
861
|
listByCandidateAndEstablishment: wt
|
|
862
|
-
}), At = (e, t, i) => b("/candidate/:candidateId/share/establishment/:establishmentId").setMethod("post").setRouteParams({ candidateId: e, establishmentId: t }).setPayload(i), Pt = (e, t) => b("/candidate/:candidateId/archive/establishment/:establishmentId").setRouteParams({ candidateId: e, establishmentId: t }), Rt = (e, t) => b("/candidate/:candidateId/archive/establishment/:establishmentId").setMethod("post").setRouteParams({ candidateId: e, establishmentId: t }), vt = (e, t) => b("/candidate/:candidateId/archive/establishment/:establishmentId").setMethod("delete").setRouteParams({ candidateId: e, establishmentId: t }), Et = (e) => b("/v2/candidates/lookup").setQueryParam("email", e), It = (e, t) => b("/v2/candidates").setMethod("post").setQueryParam("establishment-id", e).setFormData().setPayload(t), Ct = (e, t, i) => b("/v2/candidates/:candidateId").setQueryParam("establishment-id", t).setRouteParams({ candidateId: e }).setMethod("post").setFormData().setPayload(i), St = (e) => b("/candidate/register/close/:registrationToken").setMethod("post").setRouteParams({ registrationToken: e }), kt = (e) => b("/candidate/register/open").setMethod("post").setQueryParam("groups", "register:token").setPayload(e), Ot = (e, t) => b("/establishment/:establishmentId:/candidate/invitation").setRouteParams({ establishmentId: e }).setMethod("post").setPayload(t),
|
|
862
|
+
}), At = (e, t, i) => b("/candidate/:candidateId/share/establishment/:establishmentId").setMethod("post").setRouteParams({ candidateId: e, establishmentId: t }).setPayload(i), Pt = (e, t) => b("/candidate/:candidateId/archive/establishment/:establishmentId").setRouteParams({ candidateId: e, establishmentId: t }), Rt = (e, t) => b("/candidate/:candidateId/archive/establishment/:establishmentId").setMethod("post").setRouteParams({ candidateId: e, establishmentId: t }), vt = (e, t) => b("/candidate/:candidateId/archive/establishment/:establishmentId").setMethod("delete").setRouteParams({ candidateId: e, establishmentId: t }), Et = (e) => b("/v2/candidates/lookup").setQueryParam("email", e), It = (e, t) => b("/v2/candidates").setMethod("post").setQueryParam("establishment-id", e).setFormData().setPayload(t), Ct = (e, t, i) => b("/v2/candidates/:candidateId").setQueryParam("establishment-id", t).setRouteParams({ candidateId: e }).setMethod("post").setFormData().setPayload(i), St = (e) => b("/candidate/register/close/:registrationToken").setMethod("post").setRouteParams({ registrationToken: e }), kt = (e) => b("/candidate/register/open").setMethod("post").setQueryParam("groups", "register:token").setPayload(e), Ot = (e, t) => b("/establishment/:establishmentId:/candidate/invitation").setRouteParams({ establishmentId: e }).setMethod("post").setPayload(t), Pi = () => ({
|
|
863
863
|
share: At,
|
|
864
864
|
isArchived: Pt,
|
|
865
865
|
archive: Rt,
|
|
@@ -870,41 +870,41 @@ const wt = (e, t) => b("/v2/activity/candidate/:candidateId/establishment/:estab
|
|
|
870
870
|
closeIncompleteRegistration: St,
|
|
871
871
|
openNewRegistration: kt,
|
|
872
872
|
updateInvitation: Ot
|
|
873
|
-
}), Tt = (e, t) => b("/comment/establishment/:establishmentId/candidate/:userId").setRouteParams({ establishmentId: e, userId: t }), $t = (e, t, i) => b("/comment/establishment/:establishmentId/candidate/:userId").setRouteParams({ establishmentId: e, userId: t }).setMethod("post").setPayload(i), Lt = (e, t) => b("/comment/:commentId").setRouteParams({ commentId: e }).setMethod("put").setPayload(t), Mt = (e) => b("/comment/:commentId").setRouteParams({ commentId: e }).setMethod("delete"),
|
|
873
|
+
}), Tt = (e, t) => b("/comment/establishment/:establishmentId/candidate/:userId").setRouteParams({ establishmentId: e, userId: t }), $t = (e, t, i) => b("/comment/establishment/:establishmentId/candidate/:userId").setRouteParams({ establishmentId: e, userId: t }).setMethod("post").setPayload(i), Lt = (e, t) => b("/comment/:commentId").setRouteParams({ commentId: e }).setMethod("put").setPayload(t), Mt = (e) => b("/comment/:commentId").setRouteParams({ commentId: e }).setMethod("delete"), Ri = () => ({
|
|
874
874
|
getForEstablishmentCandidate: Tt,
|
|
875
875
|
postForEstablishmentCandidate: $t,
|
|
876
876
|
update: Lt,
|
|
877
877
|
remove: Mt
|
|
878
|
-
}), Dt = () => R("contractType").isList().addGroup("Term:id").addGroup("Term:name"), Nt = (e, t = !0) => b("contractType/establishment/:establishmentId").isList().setRouteParams({ establishmentId: e }).setQueryParam("all", t).addGroup("Term:id").addGroup("Term:name"),
|
|
878
|
+
}), Dt = () => R("contractType").isList().addGroup("Term:id").addGroup("Term:name"), Nt = (e, t = !0) => b("contractType/establishment/:establishmentId").isList().setRouteParams({ establishmentId: e }).setQueryParam("all", t).addGroup("Term:id").addGroup("Term:name"), vi = () => ({
|
|
879
879
|
list: Dt,
|
|
880
880
|
listByEstablishment: Nt
|
|
881
|
-
}), jt = (e) => b("/v2/talents").isList().setQueryParam("establishment-id", e),
|
|
881
|
+
}), jt = (e) => b("/v2/talents").isList().setQueryParam("establishment-id", e), Ei = () => ({
|
|
882
882
|
list: jt
|
|
883
|
-
}), xt = (e, t, i) => b("/cvtheque/establishment/:establishmentId/candidate/:candidateId/label/synchronize").setRouteParams({ establishmentId: e, candidateId: t }).setMethod("post").setPayload(i),
|
|
883
|
+
}), xt = (e, t, i) => b("/cvtheque/establishment/:establishmentId/candidate/:candidateId/label/synchronize").setRouteParams({ establishmentId: e, candidateId: t }).setMethod("post").setPayload(i), Ii = () => ({
|
|
884
884
|
syncCandidateLabels: xt
|
|
885
|
-
}), _t = () => R("diploma").isList().addGroup("Term:id").addGroup("Term:name"),
|
|
885
|
+
}), _t = () => R("diploma").isList().addGroup("Term:id").addGroup("Term:name"), Ci = () => ({
|
|
886
886
|
list: _t
|
|
887
|
-
}), Bt = (e) => b("document/candidate/:candidateId").setRouteParams({ candidateId: e }).isList().disablePagination(), Ut = (e, t) => b("document/candidate/:candidateId/establishment/:establishmentId/recruiter").setRouteParams({ candidateId: e, establishmentId: t }).isList().disablePagination(), Vt = (e, t) => b("document/candidate/:candidateId/establishment/:establishmentId/candidate").setRouteParams({ candidateId: e, establishmentId: t }).isList().disablePagination(), Ft = (e) => b("document/recruiter").setMethod("post").setPayload(e), zt = (e) => b("document/:documentId").setRouteParams({ documentId: e }).setMethod("delete"),
|
|
887
|
+
}), Bt = (e) => b("document/candidate/:candidateId").setRouteParams({ candidateId: e }).isList().disablePagination(), Ut = (e, t) => b("document/candidate/:candidateId/establishment/:establishmentId/recruiter").setRouteParams({ candidateId: e, establishmentId: t }).isList().disablePagination(), Vt = (e, t) => b("document/candidate/:candidateId/establishment/:establishmentId/candidate").setRouteParams({ candidateId: e, establishmentId: t }).isList().disablePagination(), Ft = (e) => b("document/recruiter").setMethod("post").setPayload(e), zt = (e) => b("document/:documentId").setRouteParams({ documentId: e }).setMethod("delete"), Si = () => ({
|
|
888
888
|
listByCandidate: Bt,
|
|
889
889
|
listByCandidateAndEstablishmentFromRecruiter: Ut,
|
|
890
890
|
listByCandidateAndEstablishmentFromCandidate: Vt,
|
|
891
891
|
addFromRecruiter: Ft,
|
|
892
892
|
remove: zt
|
|
893
|
-
}), Ht = (e, t) => b("/v2/establishments/:establishmentId/email-history").setRouteParams({ establishmentId: t }).setQueryParam("receiverId", e).isList().disablePagination(),
|
|
893
|
+
}), Ht = (e, t) => b("/v2/establishments/:establishmentId/email-history").setRouteParams({ establishmentId: t }).setQueryParam("receiverId", e).isList().disablePagination(), ki = () => ({
|
|
894
894
|
listByCandidateAndEstablishment: Ht
|
|
895
|
-
}), Qt = (e, t) => b("/email/candidate/:candidateId").setMethod("post").setRouteParams({ candidateId: e }).setPayload(t), qt = (e, t) => b("/v2/emails/send").setMethod("post").setFormData().setPayload({ recipientIds: e, ...t }),
|
|
895
|
+
}), Qt = (e, t) => b("/email/candidate/:candidateId").setMethod("post").setRouteParams({ candidateId: e }).setPayload(t), qt = (e, t) => b("/v2/emails/send").setMethod("post").setFormData().setPayload({ recipientIds: e, ...t }), Oi = () => ({
|
|
896
896
|
sendToCandidate: Qt,
|
|
897
897
|
sendToRecipients: qt
|
|
898
898
|
}), Gt = (e, t = !0) => {
|
|
899
899
|
const i = b("/v2/establishments/:establishmentId/email-templates").setRouteParams({ establishmentId: e }).isList().disablePagination();
|
|
900
900
|
return t && i.setQueryParam("global", !0), i;
|
|
901
|
-
}, Kt = () => b("/v2/self/email-templates").isList().disablePagination(),
|
|
901
|
+
}, Kt = () => b("/v2/self/email-templates").isList().disablePagination(), Ti = () => ({
|
|
902
902
|
listByEstablishment: Gt,
|
|
903
903
|
listSelf: Kt
|
|
904
904
|
}), Wt = (e, t) => b("establishment-career/:establishmentId/:versionId").setRouteParams({ establishmentId: e, versionId: t }), Jt = (e, t = "published") => b("establishment-career/:establishmentId/state/:state").setRouteParams({ establishmentId: e, state: t }), Zt = (e, t, i = null) => {
|
|
905
905
|
const n = i !== null ? b("establishment-career/:establishmentId/:versionId").setRouteParams({ establishmentId: e, versionId: i }) : b("establishment-career/:establishmentId").setRouteParams({ establishmentId: e });
|
|
906
906
|
return n.setMethod("post").setPayload(t), n;
|
|
907
|
-
}, Xt = (e, t) => b("establishment-career/:establishmentId/logo-banner").setMethod("post").setRouteParams({ establishmentId: e }).setPayload(t), Yt = (e, t, i) => b("establishment-career/:establishmentId/publish/:versionId").setMethod("post").setRouteParams({ establishmentId: e, versionId: t }).setPayload(i),
|
|
907
|
+
}, Xt = (e, t) => b("establishment-career/:establishmentId/logo-banner").setMethod("post").setRouteParams({ establishmentId: e }).setPayload(t), Yt = (e, t, i) => b("establishment-career/:establishmentId/publish/:versionId").setMethod("post").setRouteParams({ establishmentId: e, versionId: t }).setPayload(i), $i = () => ({
|
|
908
908
|
readById: Wt,
|
|
909
909
|
readByState: Jt,
|
|
910
910
|
upsert: Zt,
|
|
@@ -913,26 +913,26 @@ const wt = (e, t) => b("/v2/activity/candidate/:candidateId/establishment/:estab
|
|
|
913
913
|
}), en = (e) => R("establishment/:establishmentId").setRouteParams({ establishmentId: e }), tn = (e) => b("establishment/:establishmentId/authorizations").setRouteParams({ establishmentId: e }), ae = () => ({
|
|
914
914
|
read: en,
|
|
915
915
|
authorizations: tn
|
|
916
|
-
}), nn = (e) => R("feature-flag/maintenance").setMethod("post").setPayload(e), rn = (e, t) => R("feature-flag/establishment").setMethod("post").setPayload({ establishment: e, flagName: t }),
|
|
916
|
+
}), nn = (e) => R("feature-flag/maintenance").setMethod("post").setPayload(e), rn = (e, t) => R("feature-flag/establishment").setMethod("post").setPayload({ establishment: e, flagName: t }), Li = () => ({
|
|
917
917
|
maintenanceModeEnabled: nn,
|
|
918
918
|
forEstablishment: rn
|
|
919
|
-
}), sn = () => R("job").isList().addGroup("Term:id").addGroup("Term:name"), on = (e, t = !0) => b("job/establishment/:establishmentId").isList().setRouteParams({ establishmentId: e }).setQueryParam("all", t).addGroup("Term:id").addGroup("Term:name"),
|
|
919
|
+
}), sn = () => R("job").isList().addGroup("Term:id").addGroup("Term:name"), on = (e, t = !0) => b("job/establishment/:establishmentId").isList().setRouteParams({ establishmentId: e }).setQueryParam("all", t).addGroup("Term:id").addGroup("Term:name"), Mi = () => ({
|
|
920
920
|
list: sn,
|
|
921
921
|
listByEstablishment: on
|
|
922
|
-
}), an = (e) => b("/label/establishment/:establishmentId").isList().setRouteParams({ establishmentId: e }), cn = (e, t) => b("/label/establishment/:establishmentId").setMethod("post").setRouteParams({ establishmentId: e }).setPayload(t), un = (e, t) => b("/label/:labelId").setMethod("put").setRouteParams({ labelId: e }).setPayload(t), ln = (e) => b("/label/:labelId").setMethod("delete").setRouteParams({ labelId: e }), dn = (e, t, i) => b("/label/establishment/:establishmentId/candidate/:candidateId/synchronize").setMethod("post").setPayload(i).setRouteParams({ establishmentId: e, candidateId: t }),
|
|
922
|
+
}), an = (e) => b("/label/establishment/:establishmentId").isList().setRouteParams({ establishmentId: e }), cn = (e, t) => b("/label/establishment/:establishmentId").setMethod("post").setRouteParams({ establishmentId: e }).setPayload(t), un = (e, t) => b("/label/:labelId").setMethod("put").setRouteParams({ labelId: e }).setPayload(t), ln = (e) => b("/label/:labelId").setMethod("delete").setRouteParams({ labelId: e }), dn = (e, t, i) => b("/label/establishment/:establishmentId/candidate/:candidateId/synchronize").setMethod("post").setPayload(i).setRouteParams({ establishmentId: e, candidateId: t }), Di = () => ({
|
|
923
923
|
listByEstablishment: an,
|
|
924
924
|
addToEstablishment: cn,
|
|
925
925
|
update: un,
|
|
926
926
|
remove: ln,
|
|
927
927
|
syncForCandidate: dn
|
|
928
|
-
}), fn = (e) => R("offer/:offerId").setRouteParams({ offerId: e }),
|
|
928
|
+
}), fn = (e) => R("offer/:offerId").setRouteParams({ offerId: e }), Ni = () => ({
|
|
929
929
|
read: fn
|
|
930
930
|
}), mn = (e, t = !1) => {
|
|
931
931
|
const i = b("/recruiter/establishment/:establishmentId").isList().setRouteParams({ establishmentId: e });
|
|
932
932
|
return t && i.setQueryParam("exclude-me", 1), i;
|
|
933
|
-
},
|
|
933
|
+
}, ji = () => ({
|
|
934
934
|
listByEstablishment: mn
|
|
935
|
-
}), pn = (e) => b("/recruitment/establishment/:establishmentId/mine").isList().setRouteParams({ establishmentId: e }), hn = (e, t) => b("/recruitment/mine/establishment/:establishmentId/has-not/candidate/:candidateId").isList().setRouteParams({ establishmentId: e, candidateId: t }), yn = (e, t) => b("/recruitment/mine/establishment/:establishmentId/has/candidate/:candidateId").isList().setRouteParams({ establishmentId: e, candidateId: t }), gn = (e, t) => b("/recruitment/establishment/:establishmentId/has/candidate/:candidateId").isList().setRouteParams({ establishmentId: e, candidateId: t }), bn = (e, t) => b("/recruitment/:recruitmentId/candidate").setMethod("put").setRouteParams({ recruitmentId: e }).setPayload(t), wn = (e, t) => b("/recruitment/:recruitmentId/candidate/:candidateId").setMethod("delete").setRouteParams({ recruitmentId: e, candidateId: t }),
|
|
935
|
+
}), pn = (e) => b("/recruitment/establishment/:establishmentId/mine").isList().setRouteParams({ establishmentId: e }), hn = (e, t) => b("/recruitment/mine/establishment/:establishmentId/has-not/candidate/:candidateId").isList().setRouteParams({ establishmentId: e, candidateId: t }), yn = (e, t) => b("/recruitment/mine/establishment/:establishmentId/has/candidate/:candidateId").isList().setRouteParams({ establishmentId: e, candidateId: t }), gn = (e, t) => b("/recruitment/establishment/:establishmentId/has/candidate/:candidateId").isList().setRouteParams({ establishmentId: e, candidateId: t }), bn = (e, t) => b("/recruitment/:recruitmentId/candidate").setMethod("put").setRouteParams({ recruitmentId: e }).setPayload(t), wn = (e, t) => b("/recruitment/:recruitmentId/candidate/:candidateId").setMethod("delete").setRouteParams({ recruitmentId: e, candidateId: t }), xi = () => ({
|
|
936
936
|
mineByEstablishment: pn,
|
|
937
937
|
mineWithoutCandidate: hn,
|
|
938
938
|
mineWithCandidate: yn,
|
|
@@ -942,19 +942,19 @@ const wt = (e, t) => b("/v2/activity/candidate/:candidateId/establishment/:estab
|
|
|
942
942
|
}), An = (e, t, i, n = null) => {
|
|
943
943
|
const r = R("candidate/register/open").setMethod("post"), c = { email: e };
|
|
944
944
|
return t === "establishment" && (c.establishmentId = i), t === "offer" && (c.offerId = i), n && (c.referer = n), r.setPayload(c), r;
|
|
945
|
-
}, Pn = (e, t) => R("candidate/register/update/:token").setMethod("post").setRouteParams({ token: e }).setPayload(t), Rn = (e) => R("candidate/register/read/:token").setRouteParams({ token: e }), vn = (e) => R("candidate/register/close/:token").setMethod("post").setRouteParams({ token: e }),
|
|
945
|
+
}, Pn = (e, t) => R("candidate/register/update/:token").setMethod("post").setRouteParams({ token: e }).setPayload(t), Rn = (e) => R("candidate/register/read/:token").setRouteParams({ token: e }), vn = (e) => R("candidate/register/close/:token").setMethod("post").setRouteParams({ token: e }), _i = () => ({
|
|
946
946
|
open: An,
|
|
947
947
|
update: Pn,
|
|
948
948
|
read: Rn,
|
|
949
949
|
close: vn
|
|
950
|
-
}), En = (e, t) => b("/v2/registrations/lookup").setQueryParam("candidate-id", e).setQueryParam("establishment-id", t),
|
|
950
|
+
}), En = (e, t) => b("/v2/registrations/lookup").setQueryParam("candidate-id", e).setQueryParam("establishment-id", t), Bi = () => ({
|
|
951
951
|
lookupEstablishment: En
|
|
952
|
-
}), In = () => R("speciality").isList().addGroup("Term:id").addGroup("Term:name"), Cn = (e, t = !0) => b("speciality/establishment/:establishmentId").isList().setRouteParams({ establishmentId: e }).setQueryParam("all", t).addGroup("Term:id").addGroup("Term:name"),
|
|
952
|
+
}), In = () => R("speciality").isList().addGroup("Term:id").addGroup("Term:name"), Cn = (e, t = !0) => b("speciality/establishment/:establishmentId").isList().setRouteParams({ establishmentId: e }).setQueryParam("all", t).addGroup("Term:id").addGroup("Term:name"), Ui = () => ({
|
|
953
953
|
list: In,
|
|
954
954
|
listByEstablishment: Cn
|
|
955
|
-
}), Sn = (e) => b("/tag/public/establishment/:establishmentId").isList().setRouteParams({ establishmentId: e }),
|
|
955
|
+
}), Sn = (e) => b("/tag/public/establishment/:establishmentId").isList().setRouteParams({ establishmentId: e }), Vi = () => ({
|
|
956
956
|
listByEstablishment: Sn
|
|
957
|
-
}), kn = (e, t) => b("/v2/talents/lookup").setQueryParam("candidate-id", e).setQueryParam("establishment-id", t), On = (e) => b("/v2/talents/index").setMethod("post").setPayload(e),
|
|
957
|
+
}), kn = (e, t) => b("/v2/talents/lookup").setQueryParam("candidate-id", e).setQueryParam("establishment-id", t), On = (e) => b("/v2/talents/index").setMethod("post").setPayload(e), Fi = () => ({
|
|
958
958
|
lookupTalent: kn,
|
|
959
959
|
addCandidateToTalentPool: On
|
|
960
960
|
}), Tn = (e) => R("user/email/isset/:email").setRouteParams({ email: e }), $n = () => b("user/self").addGroup("user:self"), Ln = (e) => b("/user/:uuid").setRouteParams({ uuid: e }), Mn = (e) => R("/user/:uuid").setRouteParams({ uuid: e }), Dn = (e) => b("/user/:id/uuid").setRouteParams({ id: e }), ce = () => ({
|
|
@@ -1010,7 +1010,7 @@ function Nn() {
|
|
|
1010
1010
|
}
|
|
1011
1011
|
}, _;
|
|
1012
1012
|
}
|
|
1013
|
-
async function
|
|
1013
|
+
async function zi(e, ...t) {
|
|
1014
1014
|
if (!B().isAuthenticated())
|
|
1015
1015
|
throw "ERR_NOT_AUTHENTICATED";
|
|
1016
1016
|
const n = Nn();
|
|
@@ -1024,7 +1024,7 @@ async function Fi(e, ...t) {
|
|
|
1024
1024
|
throw "ERR_MISSING_PERMISSION";
|
|
1025
1025
|
}
|
|
1026
1026
|
}
|
|
1027
|
-
const
|
|
1027
|
+
const Hi = Le("authorization", {
|
|
1028
1028
|
state: () => ({
|
|
1029
1029
|
user: void 0,
|
|
1030
1030
|
establishments: {}
|
|
@@ -1428,7 +1428,7 @@ const J = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
1428
1428
|
useAnalyticsProfile: xn,
|
|
1429
1429
|
useAnalyticsVisualBuilder: _n
|
|
1430
1430
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
1431
|
-
function
|
|
1431
|
+
function Qi() {
|
|
1432
1432
|
function e(i) {
|
|
1433
1433
|
return g().identify(i.id, {
|
|
1434
1434
|
email: i.email,
|
|
@@ -1467,7 +1467,7 @@ const le = () => new Promise((e) => {
|
|
|
1467
1467
|
};
|
|
1468
1468
|
const e = document.createElement("script");
|
|
1469
1469
|
e.src = "https://maps.googleapis.com/maps/api/js?key=" + Bn + "&libraries=places&callback=onGmapScriptReady", e.async = !0, e.defer = !0, e.onload = () => window.dispatchEvent(new Event("gmap-ready")), document.body.appendChild(e), ue = !0;
|
|
1470
|
-
},
|
|
1470
|
+
}, qi = {
|
|
1471
1471
|
scriptReady: le,
|
|
1472
1472
|
autocompleteInput: Un
|
|
1473
1473
|
}, zn = {
|
|
@@ -1499,7 +1499,7 @@ const le = () => new Promise((e) => {
|
|
|
1499
1499
|
fr: zn
|
|
1500
1500
|
};
|
|
1501
1501
|
let Q = null;
|
|
1502
|
-
const Qn = () => Q,
|
|
1502
|
+
const Qn = () => Q, Gi = (e = {}) => {
|
|
1503
1503
|
let t = e.locale || "fr";
|
|
1504
1504
|
const i = (l) => t = l, n = () => t, r = te(Hn, (e == null ? void 0 : e.messages) || {}), c = (l, s) => {
|
|
1505
1505
|
const a = T(r, `${t}.${l}`);
|
|
@@ -1539,7 +1539,7 @@ const Qn = () => Q, qi = (e = {}) => {
|
|
|
1539
1539
|
variable: (e, t) => U("span", { class: "node node--variable" }, T(t, e.trim())),
|
|
1540
1540
|
text: (e) => U("span", { class: "node node--text" }, e)
|
|
1541
1541
|
};
|
|
1542
|
-
function
|
|
1542
|
+
function Ki(e) {
|
|
1543
1543
|
const { t } = Qn(), i = {
|
|
1544
1544
|
justNow: t("timeAgo.just-now"),
|
|
1545
1545
|
past: (n) => n.match(/\d/) ? t("timeAgo.ago", [n]) : n,
|
|
@@ -1638,7 +1638,7 @@ function Jn(e) {
|
|
|
1638
1638
|
dispatch: t
|
|
1639
1639
|
};
|
|
1640
1640
|
}
|
|
1641
|
-
function
|
|
1641
|
+
function Wi() {
|
|
1642
1642
|
let e = !1;
|
|
1643
1643
|
function t(r, c, u) {
|
|
1644
1644
|
n(), u();
|
|
@@ -1660,32 +1660,33 @@ function Ki() {
|
|
|
1660
1660
|
handle: n
|
|
1661
1661
|
};
|
|
1662
1662
|
}
|
|
1663
|
-
const
|
|
1663
|
+
const Ji = () => ({ getAssetUrl: (t) => `${$.getBaseAssetsUrl()}${t}` }), A = () => $.getMainAppHost(), Zn = () => `${A()}/rh/establishments`, Xn = (e) => `${A()}/rh/establishment/${e}`, Yn = (e) => {
|
|
1664
1664
|
var t;
|
|
1665
1665
|
return typeof e == "string" ? e : typeof e == "object" && ((t = e == null ? void 0 : e.urls) != null && t.display) ? e.urls.display : null;
|
|
1666
|
-
}, ei = (e) => `${A()}/candidate-invite/establishment/${e}`,
|
|
1666
|
+
}, ei = () => `${A()}/rh/dashboard`, ti = (e) => `${A()}/candidate-invite/establishment/${e}`, ni = (e, t = !1) => t ? `${A()}/cvbank/${e}/` : `${A()}/rh/establishment/${e}/cvtheque/`, ii = (e, t) => `${A()}/user-profile/establishment/${e}/user/${t}`, ri = (e) => `${A()}/rh/establishment/${e}/recruitment`, si = (e, t) => `${A()}/rh/establishment/${e}/recruitment/${t}`, oi = (e, t) => `${A()}/rh/establishment/${e}/recruitment/${t}/kanban`, ai = (e) => `${A()}/rh/establishment/${e}/career-configuration`, ci = (e, t = null) => t ? `${A()}/career-website/${e}/${t}` : `${A()}/career-website/${e}`, ui = (e, t) => `${A()}/career-website-preview/${e}/${t}`, li = (e, t = null) => {
|
|
1667
1667
|
const i = A().replace("://", `://${e}.`);
|
|
1668
1668
|
return t ? `${i}?_version=${t}` : `${i}`;
|
|
1669
|
-
},
|
|
1670
|
-
function
|
|
1669
|
+
}, di = (e) => `${A()}/rh/establishment/${e}/stats`, fi = (e) => `${A()}/rh/establishment/${e}/backoffice`, mi = () => `${A()}/rh/settings/general`;
|
|
1670
|
+
function Zi() {
|
|
1671
1671
|
return {
|
|
1672
1672
|
root: A,
|
|
1673
1673
|
establishments: Zn,
|
|
1674
1674
|
establishment: Xn,
|
|
1675
1675
|
img: Yn,
|
|
1676
|
-
|
|
1677
|
-
|
|
1678
|
-
|
|
1679
|
-
|
|
1680
|
-
|
|
1681
|
-
|
|
1682
|
-
|
|
1683
|
-
|
|
1684
|
-
|
|
1685
|
-
|
|
1686
|
-
|
|
1687
|
-
|
|
1688
|
-
|
|
1676
|
+
dashboard: ei,
|
|
1677
|
+
candidateInvite: ti,
|
|
1678
|
+
cvtheque: ni,
|
|
1679
|
+
userProfile: ii,
|
|
1680
|
+
recruitments: ri,
|
|
1681
|
+
recruitment: si,
|
|
1682
|
+
recruitmentKanban: oi,
|
|
1683
|
+
career: ai,
|
|
1684
|
+
careerConfig: ci,
|
|
1685
|
+
careerPreview: ui,
|
|
1686
|
+
careerWebsite: li,
|
|
1687
|
+
statistics: di,
|
|
1688
|
+
backoffice: fi,
|
|
1689
|
+
userSettings: mi
|
|
1689
1690
|
};
|
|
1690
1691
|
}
|
|
1691
1692
|
const Y = /* @__PURE__ */ new Set();
|
|
@@ -1709,7 +1710,7 @@ const z = (e) => {
|
|
|
1709
1710
|
for (const r of n)
|
|
1710
1711
|
M.add(r.substr(1));
|
|
1711
1712
|
}
|
|
1712
|
-
},
|
|
1713
|
+
}, Xi = (e = {}) => {
|
|
1713
1714
|
if (M)
|
|
1714
1715
|
return M;
|
|
1715
1716
|
M = /* @__PURE__ */ new Set(), q = { ...q, ...e }, de(document.styleSheets), new MutationObserver((i) => {
|
|
@@ -1728,60 +1729,60 @@ const z = (e) => {
|
|
|
1728
1729
|
childList: !0,
|
|
1729
1730
|
subtree: !0
|
|
1730
1731
|
});
|
|
1731
|
-
},
|
|
1732
|
+
}, Yi = "0.2.47";
|
|
1732
1733
|
export {
|
|
1733
1734
|
H as BaseLogger,
|
|
1734
|
-
|
|
1735
|
+
qi as Gmap,
|
|
1735
1736
|
$ as SDKConfig,
|
|
1736
1737
|
k as SDKLogger,
|
|
1737
|
-
|
|
1738
|
+
Yi as VERSION,
|
|
1738
1739
|
Ke as _clone,
|
|
1739
1740
|
T as _get,
|
|
1740
1741
|
te as _merge,
|
|
1741
1742
|
K as _set,
|
|
1742
|
-
|
|
1743
|
-
|
|
1743
|
+
Gi as createI18n,
|
|
1744
|
+
wi as inBrowser,
|
|
1744
1745
|
O as inNode,
|
|
1745
|
-
|
|
1746
|
+
Ai as useActivityRepository,
|
|
1746
1747
|
jn as useAnalyticsHublerApplication,
|
|
1747
|
-
|
|
1748
|
+
Qi as useAnalyticsIdentify,
|
|
1748
1749
|
xn as useAnalyticsProfile,
|
|
1749
1750
|
_n as useAnalyticsVisualBuilder,
|
|
1750
|
-
|
|
1751
|
+
Ji as useAssetUrls,
|
|
1751
1752
|
B as useAuthentication,
|
|
1752
1753
|
Nn as useAuthorization,
|
|
1753
|
-
|
|
1754
|
-
|
|
1755
|
-
|
|
1756
|
-
|
|
1757
|
-
|
|
1754
|
+
Hi as useAuthorizationStore,
|
|
1755
|
+
zi as useCanAccessEstablishmentMiddleware,
|
|
1756
|
+
Pi as useCandidateRepository,
|
|
1757
|
+
Ri as useCommentRepository,
|
|
1758
|
+
vi as useContractTypeRepository,
|
|
1758
1759
|
We as useCookieStorage,
|
|
1759
|
-
|
|
1760
|
-
|
|
1761
|
-
|
|
1762
|
-
|
|
1763
|
-
|
|
1764
|
-
|
|
1765
|
-
|
|
1766
|
-
|
|
1767
|
-
|
|
1760
|
+
Ei as useCvbankRepository,
|
|
1761
|
+
Ii as useCvthequeRepository,
|
|
1762
|
+
Ci as useDiplomaRepository,
|
|
1763
|
+
Si as useDocumentRepository,
|
|
1764
|
+
Zi as useDomainUrls,
|
|
1765
|
+
ki as useEmailHistoryRepository,
|
|
1766
|
+
Oi as useEmailRepository,
|
|
1767
|
+
Ti as useEmailTemplateRepository,
|
|
1768
|
+
$i as useEstablishmentCareerRepository,
|
|
1768
1769
|
ae as useEstablishmentRepository,
|
|
1769
|
-
|
|
1770
|
+
Li as useFeatureFlagRepository,
|
|
1770
1771
|
Qn as useI18n,
|
|
1771
|
-
|
|
1772
|
-
|
|
1773
|
-
|
|
1774
|
-
|
|
1772
|
+
Mi as useJobRepository,
|
|
1773
|
+
Di as useLabelRepository,
|
|
1774
|
+
Ki as useLocaleTimeAgo,
|
|
1775
|
+
Ni as useOfferRepository,
|
|
1775
1776
|
b as usePrivateRequest,
|
|
1776
|
-
|
|
1777
|
-
|
|
1778
|
-
|
|
1779
|
-
|
|
1780
|
-
|
|
1777
|
+
Wi as useQSAction,
|
|
1778
|
+
ji as useRecruiterRepository,
|
|
1779
|
+
xi as useRecruitmentRepository,
|
|
1780
|
+
_i as useRegisterRepository,
|
|
1781
|
+
Bi as useRegistrationRepository,
|
|
1781
1782
|
R as useRequest,
|
|
1782
|
-
|
|
1783
|
-
|
|
1784
|
-
|
|
1785
|
-
|
|
1783
|
+
Ui as useSpecialityRepository,
|
|
1784
|
+
Vi as useTagRepository,
|
|
1785
|
+
Fi as useTalentRepository,
|
|
1786
|
+
Xi as useUndefinedCssClasses,
|
|
1786
1787
|
ce as useUserRepository
|
|
1787
1788
|
};
|