@hublo/mstaff-client-sdk 0.2.21 → 0.2.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/core.cjs +1 -1
- package/dist/core.js +297 -291
- package/package.json +1 -1
package/dist/core.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var le=Object.defineProperty;var de=(e,t,s)=>t in e?le(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s;var I=(e,t,s)=>(de(e,typeof t!="symbol"?t+"":t,s),s);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const x=require("vue"),me=require("axios"),fe=require("pinia"),pe=require("@vueuse/core");var V={expireTimes:"1d",path:"; path=/",domain:"",secure:!1,sameSite:"; SameSite=Lax"},he=function(){function e(){this.current_default_config=V}return e.prototype.config=function(t){for(var s in this.current_default_config)this.current_default_config[s]=t[s]?t[s]:V[s]},e.prototype.get=function(t){var s=decodeURIComponent(document.cookie.replace(new RegExp("(?:(?:^|.*;)\\s*"+encodeURIComponent(t).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=\\s*([^;]*).*$)|^.*$"),"$1"))||null;if(s&&s.substring(0,1)==="{"&&s.substring(s.length-1,s.length)==="}")try{s=JSON.parse(s)}catch{return s}return s},e.prototype.set=function(t,s,n,r,a,d,p){if(t){if(/^(?:expires|max-age|path|domain|secure|SameSite)$/i.test(t))throw new Error('Cookie name illegality. Cannot be set to ["expires","max-age","path","domain","secure","SameSite"] current key name: '+t)}else throw new Error("Cookie name is not found in the first argument.");s&&s.constructor===Object&&(s=JSON.stringify(s));var u="";if(n==null&&(n=this.current_default_config.expireTimes?this.current_default_config.expireTimes:""),n&&n!=0)switch(n.constructor){case Number:n===1/0||n===-1?u="; expires=Fri, 31 Dec 9999 23:59:59 GMT":u="; max-age="+n;break;case String:if(/^(?:\d+(y|m|d|h|min|s))$/i.test(n)){var i=n.replace(/^(\d+)(?:y|m|d|h|min|s)$/i,"$1");switch(n.replace(/^(?:\d+)(y|m|d|h|min|s)$/i,"$1").toLowerCase()){case"m":u="; max-age="+ +i*2592e3;break;case"d":u="; max-age="+ +i*86400;break;case"h":u="; max-age="+ +i*3600;break;case"min":u="; max-age="+ +i*60;break;case"s":u="; max-age="+i;break;case"y":u="; max-age="+ +i*31104e3;break}}else u="; expires="+n;break;case Date:u="; expires="+n.toUTCString();break}return document.cookie=encodeURIComponent(t)+"="+encodeURIComponent(s)+u+(a?"; domain="+a:this.current_default_config.domain?this.current_default_config.domain:"")+(r?"; path="+r:this.current_default_config.path?this.current_default_config.path:"; path=/")+(d==null?this.current_default_config.secure?"; Secure":"":d?"; Secure":"")+(p==null?this.current_default_config.sameSite?"; SameSute="+this.current_default_config.sameSite:"":p?"; SameSite="+p:""),this},e.prototype.remove=function(t,s,n){return!t||!this.isKey(t)?!1:(document.cookie=encodeURIComponent(t)+"=; expires=Thu, 01 Jan 1970 00:00:00 GMT"+(n?"; domain="+n:this.current_default_config.domain?this.current_default_config.domain:"")+(s?"; path="+s:this.current_default_config.path?this.current_default_config.path:"; path=/")+"; SameSite=Lax",!0)},e.prototype.isKey=function(t){return new RegExp("(?:^|;\\s*)"+encodeURIComponent(t).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=").test(document.cookie)},e.prototype.keys=function(){if(!document.cookie)return[];for(var t=document.cookie.replace(/((?:^|\s*;)[^\=]+)(?=;|$)|^\s*|\s*(?:\=[^;]*)?(?:\1|$)/g,"").split(/\s*(?:\=[^;]*)?;\s*/),s=0;s<t.length;s++)t[s]=decodeURIComponent(t[s]);return t},e}(),j=null;function ye(){j==null&&(j=new he);var e=x.reactive(j);return{cookies:e}}function ge(){const{cookies:e}=ye();function t(a){return e.get(a)}function s(a,d){return e.set(a,d)}function n(a){return e.remove(a)}function r(){e.keys().forEach(a=>n(a))}return{getItem:t,setItem:s,removeItem:n,clear:r}}let T=null;function O(e={auth:"token",refresh:"refresh_token",expiration:"token_expiration_date"},t=ge()){if(T)return T;function s(){return t.getItem(e.auth)}function n(){return t.getItem(e.refresh)}function r(){return t.getItem(e.expiration)}function a(m,f){const h=o(m);if(!h.exp)throw new Error("Invalid JWT token.");t.setItem(e.auth,m),t.setItem(e.refresh,f),t.setItem(e.expiration,((h.exp-60)*1e3).toString())}function d(){t.removeItem(e.auth),t.removeItem(e.refresh),t.removeItem(e.expiration)}function p(){return u()&&!i()}function u(){return!!s()}function i(){const m=r();return m?new Date(m)<new Date:!0}function o(m){return JSON.parse(atob(m.split(".")[1]))}function l(){return t}return T={keys:e,getAuthToken:s,getRefreshToken:n,getExpiration:r,authenticate:a,clear:d,isAuthenticated:p,hasAuth:u,isExpired:i,getStorage:l},T}function be(e){let t={"Content-Type":"application/json"};e&&s(e);function s(h,b=!1){return t=b?h:{...t,...h},this}function n(){return t}function r(h,b){return t[h]=b,this}function a(h){return t[h]}function d(h){return t[h]&&delete t[h],this}function p(h){return r("Authorization","Bearer "+h),this}function u(){return d("Authorization"),this}function i(){return!!a("Authorization")}function o(){return r("Content-Type","multipart/form-data"),this}function l(){return r("Content-Type","application/json"),this}function m(){return a("Content-Type")==="multipart/form-data"}function f(){return a("Content-Type")==="application/json"}return{setHeaders:s,getHeaders:n,setHeader:r,getHeader:a,removeHeader:d,setAuthorization:p,removeAuthorization:u,hasAuthorization:i,setFormData:o,setJson:l,isFormData:m,isJson:f}}function Re(e){let t=null;e&&s(e);function s(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:s,getMethod:n}}function we(e,t,s){let n=null;s&&r(s);function r(i){if(!["post","put","patch"].includes(e.getMethod()))throw new Error("Payload can only be set for POST, PUT and PATCH requests.");return i instanceof FormData?t.setFormData():d(i)&&(i=p(i),t.setFormData()),t.isFormData()&&e.getMethod()==="put"&&(e.setMethod("post"),i.append("_method","PUT")),n=i,this}function a(){return n}function d(i){for(const o in i){const l=i[o];if(u(l))return!0;if(typeof l=="object"&&d(l))return!0}return!1}function p(i,o=null,l=0){const m=!o;m&&(o=new FormData);for(const f in i){const h=i[f];u(h)?(i[f]="<<FileIndex:"+l+">>",o.append(l,h,h.name),l++):typeof h=="object"&&(i[f]=p(i[f],o,l))}return m?(o.append("payload",JSON.stringify(i)),o):i}function u(i){return typeof File<"u"&&i instanceof File||typeof Blob<"u"&&i instanceof Blob}return{setPayload:r,getPayload:a}}const v=class v{constructor(t={}){I(this,"level",2);I(this,"logger");I(this,"prefix");this.logger=t.logger||console,this.prefix=t.prefix||""}setLevel(t){this.level=t}debug(...t){this.level<=v.LEVEL_DEBUG&&D(this.logger.debug,this.prefix,t)}info(...t){this.level<=v.LEVEL_INFO&&D(this.logger.info,this.prefix,t)}warn(...t){this.level<=v.LEVEL_WARN&&D(this.logger.warn,this.prefix,t)}error(...t){this.level<=v.LEVEL_ERROR&&D(this.logger.error,this.prefix,t)}};I(v,"LEVEL_DEBUG",0),I(v,"LEVEL_INFO",1),I(v,"LEVEL_WARN",2),I(v,"LEVEL_ERROR",3),I(v,"LEVEL_OFF",4);let N=v;const D=(e,t,s)=>{t?e(t,...s):e(...s)},E=new N({prefix:"[SDK]"});let Z=null,X=null,Y=null,ee="/",te=null;const Ae=()=>Z,Pe=e=>{if(E.info("[Config] Environment:",e),!e)throw new Error("Invalid environment.");Z=e},ve=()=>X,Ie=e=>{if(E.info("[Config] API Host:",e),!e)throw new Error("Invalid API host.");X=e},Ee=()=>te,Se=e=>{te=e},Ce=()=>Y,ke=e=>{if(E.info("[Config] Main App Host:",e),!e)throw new Error("Invalid main app host.");Y=e},$e=e=>{E.info("[Config] Base Assets Urls:",e),ee=e},Le=()=>ee,C={getEnvironment:Ae,getApiHost:ve,getErrorHandler:Ee,setEnvironment:Pe,setApiHost:Ie,setErrorHandler:Se,getMainAppHost:Ce,setMainAppHost:ke,setBaseAssetsUrl:$e,getBaseAssetsUrl:Le};function Me(e){const t=C.getApiHost().replace(/\/$/g,"");let s=null,n={},r={};e&&p(e);function a(){return t+u()+f()}function d(){return u(!0,!0)}function p(c){return s="/"+c.replace(/^\//g,""),this}function u(c=!0,A=!1){return c?s.replace(/:(\w+)/g,(P,S)=>A?"*":r[S]||":"+S):s}function i(c){return n=c,this}function o(c,A){return n[c]=A,this}function l(c){return n[c]&&delete n[c],this}function m(){return Object.keys(n).length>0}function f(c=!0){if(!m())return"";let A="";for(const P in n)if(Array.isArray(n[P]))for(const S of n[P])A+=(A.length?"&":"")+`${P}[]=`+S;else A+=(A.length?"&":"")+P+"="+n[P];return(c?"?":"")+A}function h(c){return r=c,this}function b(c,A){return r[c]=A,this}function $(c){return r[c]&&delete r[c],this}return{setPath:p,getPath:u,getUri:a,getMockUri:d,setQueryParams:i,setQueryParam:o,removeQueryParam:l,hasQuery:m,getQueryString:f,setRouteParams:h,setRouteParam:b,removeRouteParam:$}}function Oe(e){let t=[];function s(){return t=i(arguments),d(),this}function n(){return t.length>0}function r(o){return t.includes(o.trim())?this:(t.push(o.trim()),d(),this)}function a(o){const l=t.indexOf(o.trim());return l===-1?this:(t.splice(l,1),d(),this)}function d(){t.length?e.setQueryParam("groups",u(t)):e.removeQueryParam("groups")}function p(o){return o.split(",").map(l=>l.trim())}function u(o){return o.join(",")}function i(o){let l=[];return o.length===1?typeof o[0]=="string"?l=p(o[0]):Array.isArray(o[0])&&(l=o[0]):l=Array.from(o),l}return{setGroups:s,hasGroups:n,addGroup:r,removeGroup:a}}function Te(e){let t=!1,s=!1,n=1,r=10;function a(){return t=!0,d(),this}function d(){s=!0;const f=m(arguments);return i(f.page||1,!1),o(f.perPage||r,!1),l(),this}function p(){return s=!1,l(),this}function u(){return s}function i(f,h=!0){return t=!0,s=!0,n=f,h&&l(),this}function o(f,h=!0){return t=!0,s=!0,r=f,h&&l(),this}function l(){t?u()?(e.removeQueryParam("pagination"),e.setQueryParam("page",n),e.setQueryParam("nbResultPerPage",r)):(e.removeQueryParam("page"),e.removeQueryParam("nbResultPerPage"),e.setQueryParam("pagination","false")):(e.removeQueryParam("page"),e.removeQueryParam("nbResultPerPage"),e.removeQueryParam("pagination"))}function m(f){if(f.length===1&&typeof f[0]=="object")return f[0];const h={};return f.length>=1&&(h.page=f[0]),f.length>=2&&(h.perPage=f[1]),h}return{isList:a,paginate:d,disablePagination:p,hasPagination:u,setPage:i,setPerPage:o}}function De(e){let t=!1,s="id",n="ASC";function r(){t=!0;const o=i(arguments);return o.orderBy&&d(o.orderBy,!1),o.orderDir&&p(o.orderDir,!1),u(),this}function a(){return t}function d(o,l=!0){return t=!0,s=o,l&&u(),this}function p(o,l=!0){if(o=o.toUpperCase(),["ASC","DESC"].indexOf(o)===-1)throw new Error("Invalid order direction");return t=!0,n=o,l&&u(),this}function u(){a()&&(e.setQueryParam("orderBy",s),e.setQueryParam("orderDirection",n))}function i(o){if(o.length===1&&typeof o[0]=="object")return o[0];const l={};return o.length>=1&&(l.orderBy=o[0]),o.length>=2&&(l.orderDir=o[1]),l}return{setOrder:r,hasOrder:a,setOrderBy:d,setOrderDir:p}}function _e(){let e=!1;function t(){return e=!0,this}function s(){return e}return{setSilent:t,isSilent:s}}function xe(){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 s(){return e}return{setResponseType:t,getResponseType:s}}function Ne(e){function t(){return e}function s(){return e.data}function n(){return e.data}return{getResponse:t,getData:s,getPayload:n}}function je(e,t=!1){let s=!1,n=!1;return e.response?(s=!0,n=!0):e.request&&(s=!0),!t&&C.getErrorHandler()&&C.getErrorHandler()(e),{sent:s,responded:n,error:e}}function qe(e){function t(){return e}function s(){return e.data}function n(){return e.data}function r(){return e.data["@type"]==="hydra:Collection"}function a(){return r()?e.data["hydra:member"]:null}function d(){return r()?e.data["hydra:totalItems"]:null}function p(){return r()?e.data["hydra:view"]&&e.data["hydra:view"]["hydra:last"]:!1}function u(){return!r()||!p()?null:parseInt(e.data["hydra:view"]["@id"].match(/page=(\d+)/)[1])}function i(){return!r()||!p()?null:parseInt(e.data["hydra:view"]["hydra:last"].match(/page=(\d+)/)[1])}return{getResponse:t,getData:s,getPayload:n,isCollection:r,getCollection:a,getTotal:d,hasPagination:p,getPage:u,getPages:i}}function ze(e,t,s,n,r,a){async function d(){const u=s.getMethod(),i=t.getUri(),o=e.getHeaders(),l=n.getPayload(),m=[i];["post","put","patch"].includes(u)&&m.push(l||{}),m.push({headers:o,responseType:a.getResponseType()}),E.info("[Request] Sending request:",`[${u.toUpperCase()}]`,i);try{const f=await me[u](...m);return p(f)}catch(f){throw je(f,r.isSilent())}}function p(u){if(u.headers){const i=Object.keys(u.headers),o=i.map(l=>l.toLowerCase()).indexOf("content-type");if(o!==-1&&u.headers[i[o]].includes("application/ld+json"))return qe(u)}return Ne(u)}return{send:d}}function R(e,t="get",s=null){const n=be(),r=Me(e),a=Re(t),d=we(a,n,s),p=Oe(r),u=Te(r),i=De(r),o=_e(),l=xe(),m=ze(n,r,a,d,o,l);return{...n,...r,...a,...d,...p,...u,...i,...o,...l,...m}}function y(e,t="get",s=null){const n=R(e,t,s),r=O();r.isAuthenticated()&&n.setAuthorization(r.getAuthToken());const a=n.send;return n.send=async function(){if(!n.hasAuthorization())throw new Error("::SDK Request:: Request cannot be sent, missing authorization header.");return a()},n}const Fe=(e,t)=>y("/v2/activity/candidate/:candidateId/establishment/:establishmentId").setRouteParams({candidateId:e,establishmentId:t}),Ue=()=>({listByCandidateAndEstablishment:Fe}),Be=(e,t,s)=>y("/candidate/:candidateId/share/establishment/:establishmentId").setMethod("post").setRouteParams({candidateId:e,establishmentId:t}).setPayload(s),Qe=(e,t)=>y("/candidate/:candidateId/archive/establishment/:establishmentId").setRouteParams({candidateId:e,establishmentId:t}),He=(e,t)=>y("/candidate/:candidateId/archive/establishment/:establishmentId").setMethod("post").setRouteParams({candidateId:e,establishmentId:t}),Ve=(e,t)=>y("/candidate/:candidateId/archive/establishment/:establishmentId").setMethod("delete").setRouteParams({candidateId:e,establishmentId:t}),Ge=e=>y("/v2/candidates/lookup/email").setQueryParam("email",e),Ke=()=>({share:Be,isArchived:Qe,archive:He,unarchive:Ve,lookupCandidate:Ge}),Je=(e,t)=>y("/comment/establishment/:establishmentId/candidate/:userId").setRouteParams({establishmentId:e,userId:t}),We=(e,t,s)=>y("/comment/establishment/:establishmentId/candidate/:userId").setRouteParams({establishmentId:e,userId:t}).setMethod("post").setPayload(s),Ze=(e,t)=>y("/comment/:commentId").setRouteParams({commentId:e}).setMethod("put").setPayload(t),Xe=e=>y("/comment/:commentId").setRouteParams({commentId:e}).setMethod("delete"),Ye=()=>({getForEstablishmentCandidate:Je,postForEstablishmentCandidate:We,update:Ze,remove:Xe}),et=()=>R("contractType").isList().addGroup("Term:id").addGroup("Term:name"),tt=()=>({list:et}),nt=e=>y("/v2/talents").isList().setQueryParam("establishment-id",e),st=()=>({list:nt}),rt=(e,t,s)=>y("/cvtheque/establishment/:establishmentId/candidate/:candidateId/label/synchronize").setRouteParams({establishmentId:e,candidateId:t}).setMethod("post").setPayload(s),it=()=>({syncCandidateLabels:rt}),ot=()=>R("diploma").isList().addGroup("Term:id").addGroup("Term:name"),at=()=>({list:ot}),ct=e=>y("document/candidate/:candidateId").setRouteParams({candidateId:e}).isList().disablePagination(),ut=(e,t)=>y("document/candidate/:candidateId/establishment/:establishmentId/recruiter").setRouteParams({candidateId:e,establishmentId:t}).isList().disablePagination(),lt=(e,t)=>y("document/candidate/:candidateId/establishment/:establishmentId/candidate").setRouteParams({candidateId:e,establishmentId:t}).isList().disablePagination(),dt=e=>y("document/recruiter").setMethod("post").setPayload(e),mt=e=>y("document/:documentId").setRouteParams({documentId:e}).setMethod("delete"),ft=()=>({listByCandidate:ct,listByCandidateAndEstablishmentFromRecruiter:ut,listByCandidateAndEstablishmentFromCandidate:lt,addFromRecruiter:dt,remove:mt}),pt=(e,t)=>y("/v2/establishments/:establishmentId/email-history").setRouteParams({establishmentId:t}).setQueryParam("receiverId",e).isList().disablePagination(),ht=()=>({listByCandidateAndEstablishment:pt}),yt=(e,t)=>y("/email/candidate/:candidateId").setMethod("post").setRouteParams({candidateId:e}).setPayload(t),gt=(e,t)=>y("/v2/emails/send").setMethod("post").setFormData().setPayload({recipientIds:e,...t}),bt=()=>({sendToCandidate:yt,sendToRecipients:gt}),Rt=(e,t=!0)=>{const s=y("/v2/establishments/:establishmentId/email-templates").setRouteParams({establishmentId:e}).isList().disablePagination();return t&&s.setQueryParam("global",!0),s},wt=()=>y("/v2/self/email-templates").isList().disablePagination(),At=()=>({listByEstablishment:Rt,listSelf:wt}),Pt=(e,t)=>y("establishment-career/:establishmentId/:versionId").setRouteParams({establishmentId:e,versionId:t}),vt=(e,t="published")=>y("establishment-career/:establishmentId/state/:state").setRouteParams({establishmentId:e,state:t}),It=(e,t,s=null)=>{const n=s!==null?y("establishment-career/:establishmentId/:versionId").setRouteParams({establishmentId:e,versionId:s}):y("establishment-career/:establishmentId").setRouteParams({establishmentId:e});return n.setMethod("post").setPayload(t),n},Et=(e,t)=>y("establishment-career/:establishmentId/logo-banner").setMethod("post").setRouteParams({establishmentId:e}).setPayload(t),St=(e,t,s)=>y("establishment-career/:establishmentId/publish/:versionId").setMethod("post").setRouteParams({establishmentId:e,versionId:t}).setPayload(s),Ct=()=>({readById:Pt,readByState:vt,upsert:It,uploadLogoAndBanner:Et,publish:St}),kt=e=>R("establishment/:establishmentId").setRouteParams({establishmentId:e}),$t=e=>y("establishment/:establishmentId/authorizations").setRouteParams({establishmentId:e}),B=()=>({read:kt,authorizations:$t}),Lt=e=>R("feature-flag/maintenance").setMethod("post").setPayload(e),Mt=(e,t)=>R("feature-flag/establishment").setMethod("post").setPayload({establishment:e,flagName:t}),Ot=()=>({maintenanceModeEnabled:Lt,forEstablishment:Mt}),Tt=()=>R("job").isList().addGroup("Term:id").addGroup("Term:name"),Dt=()=>({list:Tt}),_t=e=>y("/label/establishment/:establishmentId").isList().setRouteParams({establishmentId:e}),xt=(e,t)=>y("/label/establishment/:establishmentId").setMethod("post").setRouteParams({establishmentId:e}).setPayload(t),Nt=(e,t)=>y("/label/:labelId").setMethod("put").setRouteParams({labelId:e}).setPayload(t),jt=e=>y("/label/:labelId").setMethod("delete").setRouteParams({labelId:e}),qt=(e,t,s)=>y("/label/establishment/:establishmentId/candidate/:candidateId/synchronize").setMethod("post").setPayload(s).setRouteParams({establishmentId:e,candidateId:t}),zt=()=>({listByEstablishment:_t,addToEstablishment:xt,update:Nt,remove:jt,syncForCandidate:qt}),Ft=e=>R("offer/:offerId").setRouteParams({offerId:e}),Ut=()=>({read:Ft}),Bt=(e,t=!1)=>{const s=y("/recruiter/establishment/:establishmentId").isList().setRouteParams({establishmentId:e});return t&&s.setQueryParam("exclude-me",1),s},Qt=()=>({listByEstablishment:Bt}),Ht=e=>y("/recruitment/establishment/:establishmentId/mine").isList().setRouteParams({establishmentId:e}),Vt=(e,t)=>y("/recruitment/mine/establishment/:establishmentId/has-not/candidate/:candidateId").isList().setRouteParams({establishmentId:e,candidateId:t}),Gt=(e,t)=>y("/recruitment/mine/establishment/:establishmentId/has/candidate/:candidateId").isList().setRouteParams({establishmentId:e,candidateId:t}),Kt=(e,t)=>y("/recruitment/establishment/:establishmentId/has/candidate/:candidateId").isList().setRouteParams({establishmentId:e,candidateId:t}),Jt=(e,t)=>y("/recruitment/:recruitmentId/candidate").setMethod("put").setRouteParams({recruitmentId:e}).setPayload(t),Wt=(e,t)=>y("/recruitment/:recruitmentId/candidate/:candidateId").setMethod("delete").setRouteParams({recruitmentId:e,candidateId:t}),Zt=()=>({mineByEstablishment:Ht,mineWithoutCandidate:Vt,mineWithCandidate:Gt,withCandidate:Kt,addCandidates:Jt,removeCandidate:Wt}),Xt=(e,t,s,n=null)=>{const r=R("candidate/register/open").setMethod("post"),a={email:e};return t==="establishment"&&(a.establishmentId=s),t==="offer"&&(a.offerId=s),n&&(a.referer=n),r.setPayload(a),r},Yt=(e,t)=>R("candidate/register/update/:token").setMethod("post").setRouteParams({token:e}).setPayload(t),en=e=>R("candidate/register/read/:token").setRouteParams({token:e}),tn=e=>R("candidate/register/close/:token").setMethod("post").setRouteParams({token:e}),nn=()=>({open:Xt,update:Yt,read:en,close:tn}),sn=(e,t)=>y("/v2/registrations/lookup/candidate/establishment").setQueryParam("candidate-id",e).setQueryParam("establishment-id",t),rn=()=>({lookupEstablishment:sn}),on=()=>R("speciality").isList().addGroup("Term:id").addGroup("Term:name"),an=()=>({list:on}),cn=e=>y("/tag/public/establishment/:establishmentId").isList().setRouteParams({establishmentId:e}),un=()=>({listByEstablishment:cn}),ln=(e,t)=>y("/v2/talents/lookup").setQueryParam("candidate-id",e).setQueryParam("establishment-id",t),dn=()=>({lookupTalent:ln}),mn=e=>R("user/email/isset/:email").setRouteParams({email:e}),fn=()=>y("user/self").addGroup("user:self"),pn=e=>y("/user/:uuid").setRouteParams({uuid:e}),hn=e=>R("/user/:uuid").setRouteParams({uuid:e}),Q=()=>({emailExists:mn,self:fn,byUuidPrivate:pn,byUuid:hn});let _;function ne(){if(_)return _;const e={user:void 0,roles:[],establishments:{}},t=async()=>{if(!O().isAuthenticated())throw new Error("::SDK Authorization:: User not authenticated");const i=(await Q().self().send()).getData();e.user={id:i.id,email:i.email,firstName:i.firstName,lastName:i.lastName,avatar:i.avatar},e.roles=i.roles},s=async i=>{if(!O().isAuthenticated())throw new Error("::SDK Authorization:: User not authenticated");e.establishments[i]=(await B().authorizations(i).send()).getData()},n=i=>{if(e.user===void 0)throw new Error("::SDK Authorization:: User not fetched");return e.roles.includes(i)};return _={fetchSelf:t,fetchPermission:s,hasRole:n,hasRoleRH:()=>n("ROLE_RH"),hasRoleCandidate:()=>n("ROLE_CANDIDATE"),hasRoleAdmin:()=>n("ROLE_ADMIN"),hasPermission:(i,...o)=>{const l=e.establishments[i];if(l===void 0)throw new Error(`::SDK Authorization:: Permissions not fetched for establishment ${i}`);return o.every(m=>l[m]===!0)},clear:()=>{e.user=void 0,e.roles=[],e.establishments={}}},_}async function yn(e,...t){if(!O().isAuthenticated())throw"ERR_NOT_AUTHENTICATED";const n=ne();await Promise.all([n.fetchSelf(),n.fetchPermission(e)]);for(let r=0;r<t.length;r++){const a=t[r];if(!n.hasPermission(e,a))throw"ERR_MISSING_PERMISSION"}}const gn=fe.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 Q().self().send();this.user=t.getData()}},async fetchPermission(e,t){if(!this.establishments[e]||t){const s=await B().authorizations(e).send();this.establishments[e]=s.getData()}},hasPermission(e,...t){const s=this.establishments[e];return s===void 0?!1:t.every(n=>s[n]===!0)}}}),k=(e,t,s)=>{const n=typeof t=="string"?t.split("."):[t];let r=e;for(const[a,d]of n.entries()){if(a===n.length-1)return r[d]!==void 0?r[d]:s;if(!(d in r)||typeof r[d]!="object")return s;r=r[d]}return s},z=(e,t,s)=>{const n=typeof t=="string"?t.split("."):[t],r=p=>typeof p=="number"||/^\d$/g.test(p),a=p=>parseInt(p,10);let d=e;return n.forEach((p,u)=>{if(u===n.length-1)d[p]=s;else{const i=r(n[u+1])?[]:{};p=r(p)?a(p):p,d[p]=d[p]??i,d=d[p]}}),e},se=e=>{if(typeof e=="object"){if(Array.isArray(e))return[...e];if(Object(e)===e)return{...e}}return e},H=(e,t)=>{const s={...e};for(const[n,r]of Object.entries(t))n in s&&typeof s[n]=="object"&&typeof r=="object"?s[n]=H(s[n],r):s[n]=se(r);return s};let L=null;function g(){if(L)return L;const e=C.getEnvironment(),t=(()=>e==="prod"||e==="production"?"pPROC7dPoJ7XdxHrwsTQNXCGX79MJjhp":e==="staging"?"823rqOTwVk1ZCWVyBAdLInZ77TcFF0CF":"TMZX6evFnu87JrBHV5qLwHsld5C6hilZ")(),s=!!t,n=e!=="prod"&&e!=="production";let r=null;function a(){return s}function d(){const m=window.analytics=window.analytics||[];if(!m.initialize&&m.invoked)E.error("Segment snippet included twice.");else{m.invoked=!0,m.methods=["trackSubmit","trackClick","trackLink","trackForm","pageview","identify","reset","group","track","ready","alias","debug","page","once","off","on","addSourceMiddleware","addIntegrationMiddleware","setAnonymousId","addDestinationMiddleware"],m.factory=function(f){return function(){if(window.analytics.initialized)return window.analytics[f].apply(window.analytics,arguments);const h=Array.prototype.slice.call(arguments);return h.unshift(f),m.push(h),m}};for(let f=0;f<m.methods.length;f++){const h=m.methods[f];m[h]=m.factory(h)}m.load=function(f,h){const b=document.createElement("script");b.id="analytics-script",b.type="text/javascript",b.async=!0,b.src="https://cdn.segment.com/analytics.js/v1/"+f+"/analytics.min.js",b.onerror=()=>window.dispatchEvent(new Event("analytics-error"));const $=document.getElementsByTagName("script")[0];$.parentNode.insertBefore(b,$),m._loadOptions=h},m._writeKey=t,m.SNIPPET_VERSION="4.16.1",m.load(t),m.page(),m.ready(()=>window.dispatchEvent(new Event("analytics-ready")))}}async function p(){return r!==null||(r=new Promise((m,f)=>{if(!a())return l("Analytics is disabled."),m();if(window.addEventListener("analytics-ready",()=>{l("Analytics script loaded successfully."),m()}),window.addEventListener("analytics-error",()=>{l("Analytics script failed to load. Consider disabling your AdBlocker.",null,"error"),f()}),l("Loading Analytics script."),window.analytics)return m();d()})),r}async function u(m,f){try{if(await this.analyticsScriptReady(),l("[identify]",[m,f]),a())return window.analytics.identify(m,f)}catch{l("[identify]",[m,f],"error")}}async function i(m,f,h){typeof h!="object"&&(h={});try{if(await this.analyticsScriptReady(),l("[page]",[m,f,h]),a())return window.analytics.page(m,{category:f,...h})}catch{l("[page]",[m,f,h],"error")}}async function o(m,f,h){typeof h!="object"&&(h={});try{if(await this.analyticsScriptReady(),l("[track]",[m,f,h]),a())return window.analytics.track(m,{category:f,...h})}catch{l("[track]",[m,f,h],"error")}}function l(m,f=[],h="info"){f||(f=[]),n&&E[h](`%cⒶ%c ::SDK Analytics:: ${m}`,"color: green;","color: inherit;",...f)}return L={analyticsScriptReady:p,isEnabled:a,identify:u,page:i,track:o,consoleMessage:l},L}g.destroy=()=>L=null;function re(){const e="Hubler Application";function t(i){var l;if(!i)throw new Error(`Missing arguments for domain "${e}"`);const o=!!i.offerId;if(o&&!i.recruitmentId)throw new Error(`Missing argument "recruitmentId" for domain "${e}"`);return{companyId:(l=i.establishmentId)==null?void 0:l.toString(),jobOfferId:o?i.offerId.toString():null,recruitmentId:o?i.recruitmentId.toString():null,selections:[o?"Application":"Spontaneous Application"]}}async function s(i){return g().page("Application Authentication Viewed",e,t(i))}async function n(i){return g().page("Application Magic Link Viewed",e,t(i))}async function r(i){return g().page("Application Job Viewed",e,t(i))}async function a(i){return g().page("Application Information Viewed",e,t(i))}async function d(i){return g().page("Application Document Viewed",e,t(i))}async function p(i){return g().page("Application Success Viewed",e,t(i))}async function u(i){if(!i.error)throw new Error(`Missing argument "error" for domain "${e}", event "Application Form Failed"`);return g().track("Application Form Failed",e,{...t(i),error:i.error})}return{applicationAuthenticationViewed:s,applicationMagicLinkViewed:n,applicationJobViewed:r,applicationInformationViewed:a,applicationDocumentViewed:d,applicationSuccessViewed:p,applicationFormFailed:u}}function ie(){const e="Profile";function t(c,A){var S;if(!c)throw new Error(`Missing arguments for domain "${e}"`);const P={companyId:c.companyId?c.companyId.toString():null,hublerId:(S=c.hublerId)==null?void 0:S.toString()};return A&&(P.productId=c.companyId?c.companyId+"_2":null),c.recruitmentId&&(P.recruitmentId=c.recruitmentId.toString()),c.selections&&(P.selections=c.selections),c.institutionId&&(P.institutionId=c.institutionId.map(String)),P}async function s(c){return g().track(c.name,e,t(c.properties),!0)}async function n(c){return g().track(c.name,e,t(c.properties,!0))}async function r(c){return g().track(c.name,e,t(c.properties,!0))}async function a(c){return g().track(c.name,e,t(c.properties,!0))}async function d(c){return g().track(c.name,e,t(c.properties,!0))}async function p(c){return g().track(c.name,e,t(c.properties,!0))}async function u(c){return g().track(c.name,e,t(c.properties,!0))}async function i(c){return g().track(c.name,e,t(c.properties,!0))}async function o(c){return g().track(c.name,e,t(c.properties,!0))}async function l(c){return g().track(c.name,e,t(c.properties,!0))}async function m(c){return g().track(c.name,e,t(c.properties,!0))}async function f(c){return g().track(c.name,e,t(c.properties,!0))}async function h(c){return g().track(c.name,e,t(c.properties,!0))}async function b(c){return g().page(c.name,c.properties.category,t(c.properties,!1))}async function $(c){return g().track(c.name,e,t(c.properties,!1))}return{profileDocumentDeleted:s,profileLabelAdded:n,profileLabelRemoved:r,profileShared:a,profileArchived:d,profileCandidateAdded:p,profileCommentAdded:u,profileDocumentAdded:i,profileDocumentDownloaded:o,profileDocumentRequested:l,profileRecruitmentAdded:m,profileRecruitmentRemoved:f,profileTabSelected:h,profileViewed:b,profileEmailSent:$}}const G=Object.freeze(Object.defineProperty({__proto__:null,useAnalyticsHublerApplication:re,useAnalyticsProfile:ie},Symbol.toStringTag,{value:"Module"}));function bn(){function e(s){return g().identify(s.id,{email:s.email,firstName:s.firstname,lastName:s.lastname,createdAt:s.createdAt,type:"Hubler",lang:"fr",medium:t()?"MOBILE_DEVICE":"WEB_BROWSER"})}function t(){let s=!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)))&&(s=!0)}(navigator.userAgent||navigator.vendor||window.opera),s}return{identifyCandidate:e}}const Rn="AIzaSyDicyRD6rvVdnicp1tgV0ElazASNGbyyTs";let oe=!1;const ae=()=>new Promise(e=>{oe||window.google&&window.google.maps?e():(window.addEventListener("gmap-ready",()=>e()),Pn())}),wn=(e,t)=>ae().then(()=>An(e,t)),An=(e,t)=>{const s=new window.google.maps.places.Autocomplete(e,{componentRestrictions:{country:["fr","re","yt","gp","mq"]}});window.google.maps.event.addListener(s,"place_changed",()=>{const n=s.getPlace();n.formatted_address&&t&&t(n.formatted_address,n)})},Pn=()=>{window.onGmapScriptReady=function(){};const e=document.createElement("script");e.src="https://maps.googleapis.com/maps/api/js?key="+Rn+"&libraries=places&callback=onGmapScriptReady",e.async=!0,e.defer=!0,e.onload=()=>window.dispatchEvent(new Event("gmap-ready")),document.body.appendChild(e),oe=!0},vn={scriptReady:ae,autocompleteInput:wn},In={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"}},En={fr:In};let F=null;const ce=()=>F,Sn=(e={})=>{let t=e.locale||"fr";const s=u=>t=u,n=()=>t,r=H(En,(e==null?void 0:e.messages)||{}),a=(u,i)=>{const o=k(r,`${t}.${u}`);return o?i?Cn(o,i):o:u},d=(u,i)=>{const o=k(r,`${t}.${u}`);return o?kn(o,i):u};return F={t:a,tNode:d,setLocale:s,getLocale:n,install:u=>{u.config.globalProperties.$t=a,u.config.globalProperties.$tNode=d}},F},Cn=(e,t)=>e?e.replace(/{{ ?([a-zA-Z_.]+) ?}}/g,(s,n)=>k(t,n)):null,kn=(e,t)=>{if(!e)return null;const s=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()=>K.text(n);n=n.replace(/[{}%]/g,"").trim();const a=n.match(/^[a-zA-Z_.]+/)[0];n=n.replace(a,"").trim();const d={};return n!==""&&([...n.matchAll(/([a-zA-Z_.]+)(=([a-zA-Z_.]+))?/g)].reduce((i,o)=>(o[3]===void 0?z(i,o[1],k(t,o[1])):z(i,o[1],k(t,o[3])),i),d),[...n.matchAll(/([a-zA-Z_.]+)="([^"]+)"/g)].reduce((i,o)=>{let l=o[2];return new RegExp(/^[0-9]*$/).exec(o[2])?l=parseInt(o[2]):new RegExp(/^(true|false)$/).exec(o[2])&&(l=o[2]==="true"),i[o[1]]=l,i},d)),p=>K[r](a,t,p,d)});return{setup:(n,{slots:r})=>()=>s.map(a=>a(r))}},K={slot:(e,t,s,n)=>x.h("span",{class:"node node--slot"},s[e.trim()](n)),variable:(e,t)=>x.h("span",{class:"node node--variable"},k(t,e.trim())),text:e=>x.h("span",{class:"node node--text"},e)};function $n(e){const{t}=ce(),s={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 pe.useTimeAgo(e,{fullDateFormatter:n=>n.toLocaleDateString(),messages:s})}function Ln(){let e=null;function t(){return e}function s(){return e.controller}function n(){return"use"+e.controller.charAt(0).toUpperCase()+e.controller.slice(1)+"QSController"}function r(){return e.action}function a(){return e.arguments}function d(){return!!(e&&e.controller&&e.action)}function p(){window.location.search.length!==0&&(e=window.location.search.substring(1).split("&").reduce((u,i)=>{const o=i.split("=");return o[0]==="controller"||o[0]==="action"?u[o[0]]=decodeURIComponent(o[1]):u.arguments[o[0]]=decodeURIComponent(o[1]),u},{controller:null,action:null,arguments:{}}))}return p(),{getParams:t,getController:s,getControllerComposableName:n,getAction:r,getArguments:a,hasAction:d}}function Mn(){async function e({domain:n,event:r,...a}){const d="useAnalytics"+n.charAt(0).toUpperCase()+n.slice(1);if(!t(d))throw new Error(`Domain ${n} is not defined`);const p=G[d]();if(!s(p,r))throw new Error(`Event ${r} is not defined in domain ${n}`);return p[r](a)}function t(n){return!!G[n]}function s(n,r){return!!n[r]}return{call:e}}const J=Object.freeze(Object.defineProperty({__proto__:null,useAnalyticsQSController:Mn},Symbol.toStringTag,{value:"Module"}));function On(e){if(!e.hasAction())throw new Error("No action found in router");function t(){if(!s())throw new Error(`Controller ${e.getController()} not found`);const r=J[e.getControllerComposableName()]();if(!n(r))throw new Error(`Action ${e.getAction()} not found in controller ${e.getController()}`);return r[e.getAction()](e.getArguments())}function s(){return e.getControllerComposableName()in J}function n(r){return e.getAction()in r}return{dispatch:t}}function Tn(){let e=!1;function t(r,a,d){n(),d()}function s(r,a,d){if(!e)return e=!0,t(r,a,d);d()}function n(){const r=Ln();if(!r.hasAction())return;On(r).dispatch()}return{vueRouterBeforeEach:t,vueRouterBeforeFirst:s,handle:n}}const Dn=()=>({getAssetUrl:t=>`${C.getBaseAssetsUrl()}${t}`}),w=()=>C.getMainAppHost(),_n=()=>`${w()}/rh/establishments`,xn=e=>`${w()}/rh/establishment/${e}`,Nn=e=>e&&typeof e=="object"&&e.urls&&e.urls.display?e.urls.display:"",jn=e=>`${w()}/candidate-invite/establishment/${e}`,qn=(e,t=!1)=>t?`${w()}/rh/establishment/${e}/cvtheque/`:`${w()}/cvbank/${e}/`,zn=(e,t)=>`${w()}/user-profile/establishment/${e}/user/${t}`,Fn=(e,t)=>`${w()}/rh/establishment/${e}/recruitment/${t}`,Un=(e,t)=>`${w()}/rh/establishment/${e}/recruitment/${t}/kanban`,Bn=e=>`${w()}/rh/establishment/${e}/career-configuration`,Qn=(e,t=null)=>t?`${w()}/career-website/${e}/${t}`:`${w()}/career-website/${e}`,Hn=(e,t)=>`${w()}/career-website-preview/${e}/${t}`,Vn=(e,t=null)=>{const s=w().replace("://",`://${e}.`);return t?`${s}?_version=${t}`:`${s}`};function Gn(){return{root:w,establishments:_n,establishment:xn,img:Nn,candidateInvite:jn,cvtheque:qn,userProfile:zn,recruitment:Fn,recruitmentKanban:Un,career:Bn,careerConfig:Qn,careerPreview:Hn,careerWebsite:Vn}}const W=new Set;let M,U={ignore:e=>e.startsWith("Ui")};const q=e=>{if(e!=null&&e.classList){e._cssChecked=!0;for(const t of e.classList)M.has(t)||W.has(t)||U.ignore(t)||(W.add(t),E.error(`Undefined CSS class: ${t}`))}},ue=e=>{var t;for(const s of e)if(s!=null&&s.cssRules&&(s==null?void 0:s.cssRules.length)>0)ue(s.cssRules);else if(s.selectorText){const n=(t=s.selectorText)==null?void 0:t.match(/\.[\w-]+/g);if(n)for(const r of n)M.add(r.substr(1))}},Kn=(e={})=>{if(M)return M;M=new Set,U={...U,...e},ue(document.styleSheets),new MutationObserver(s=>{for(const n of s)if(n.type==="childList"&&(n!=null&&n.addedNodes)){for(const r of n.addedNodes)if(!(r.nodeType===3||r.nodeType===8)){q(r);for(const a of r.querySelectorAll("*"))q(a)}}else(n==null?void 0:n.attributeName)==="class"&&q(n.target)}).observe(document,{attributes:!0,childList:!0,subtree:!0})},Jn="0.2.20";exports.BaseLogger=N;exports.Gmap=vn;exports.SDKConfig=C;exports.SDKLogger=E;exports.VERSION=Jn;exports._clone=se;exports._get=k;exports._merge=H;exports._set=z;exports.createI18n=Sn;exports.useActivityRepository=Ue;exports.useAnalyticsHublerApplication=re;exports.useAnalyticsIdentify=bn;exports.useAnalyticsProfile=ie;exports.useAssetUrls=Dn;exports.useAuthentication=O;exports.useAuthorization=ne;exports.useAuthorizationStore=gn;exports.useCanAccessEstablishmentMiddleware=yn;exports.useCandidateRepository=Ke;exports.useCommentRepository=Ye;exports.useContractTypeRepository=tt;exports.useCvbankRepository=st;exports.useCvthequeRepository=it;exports.useDiplomaRepository=at;exports.useDocumentRepository=ft;exports.useDomainUrls=Gn;exports.useEmailHistoryRepository=ht;exports.useEmailRepository=bt;exports.useEmailTemplateRepository=At;exports.useEstablishmentCareerRepository=Ct;exports.useEstablishmentRepository=B;exports.useFeatureFlagRepository=Ot;exports.useI18n=ce;exports.useJobRepository=Dt;exports.useLabelRepository=zt;exports.useLocaleTimeAgo=$n;exports.useOfferRepository=Ut;exports.usePrivateRequest=y;exports.useQSAction=Tn;exports.useRecruiterRepository=Qt;exports.useRecruitmentRepository=Zt;exports.useRegisterRepository=nn;exports.useRegistrationRepository=rn;exports.useRequest=R;exports.useSpecialityRepository=an;exports.useTagRepository=un;exports.useTalentRepository=dn;exports.useUndefinedCssClasses=Kn;exports.useUserRepository=Q;
|
|
1
|
+
"use strict";var le=Object.defineProperty;var de=(e,t,s)=>t in e?le(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s;var I=(e,t,s)=>(de(e,typeof t!="symbol"?t+"":t,s),s);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const x=require("vue"),me=require("axios"),fe=require("pinia"),pe=require("@vueuse/core");var V={expireTimes:"1d",path:"; path=/",domain:"",secure:!1,sameSite:"; SameSite=Lax"},he=function(){function e(){this.current_default_config=V}return e.prototype.config=function(t){for(var s in this.current_default_config)this.current_default_config[s]=t[s]?t[s]:V[s]},e.prototype.get=function(t){var s=decodeURIComponent(document.cookie.replace(new RegExp("(?:(?:^|.*;)\\s*"+encodeURIComponent(t).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=\\s*([^;]*).*$)|^.*$"),"$1"))||null;if(s&&s.substring(0,1)==="{"&&s.substring(s.length-1,s.length)==="}")try{s=JSON.parse(s)}catch{return s}return s},e.prototype.set=function(t,s,n,r,a,d,p){if(t){if(/^(?:expires|max-age|path|domain|secure|SameSite)$/i.test(t))throw new Error('Cookie name illegality. Cannot be set to ["expires","max-age","path","domain","secure","SameSite"] current key name: '+t)}else throw new Error("Cookie name is not found in the first argument.");s&&s.constructor===Object&&(s=JSON.stringify(s));var u="";if(n==null&&(n=this.current_default_config.expireTimes?this.current_default_config.expireTimes:""),n&&n!=0)switch(n.constructor){case Number:n===1/0||n===-1?u="; expires=Fri, 31 Dec 9999 23:59:59 GMT":u="; max-age="+n;break;case String:if(/^(?:\d+(y|m|d|h|min|s))$/i.test(n)){var i=n.replace(/^(\d+)(?:y|m|d|h|min|s)$/i,"$1");switch(n.replace(/^(?:\d+)(y|m|d|h|min|s)$/i,"$1").toLowerCase()){case"m":u="; max-age="+ +i*2592e3;break;case"d":u="; max-age="+ +i*86400;break;case"h":u="; max-age="+ +i*3600;break;case"min":u="; max-age="+ +i*60;break;case"s":u="; max-age="+i;break;case"y":u="; max-age="+ +i*31104e3;break}}else u="; expires="+n;break;case Date:u="; expires="+n.toUTCString();break}return document.cookie=encodeURIComponent(t)+"="+encodeURIComponent(s)+u+(a?"; domain="+a:this.current_default_config.domain?this.current_default_config.domain:"")+(r?"; path="+r:this.current_default_config.path?this.current_default_config.path:"; path=/")+(d==null?this.current_default_config.secure?"; Secure":"":d?"; Secure":"")+(p==null?this.current_default_config.sameSite?"; SameSute="+this.current_default_config.sameSite:"":p?"; SameSite="+p:""),this},e.prototype.remove=function(t,s,n){return!t||!this.isKey(t)?!1:(document.cookie=encodeURIComponent(t)+"=; expires=Thu, 01 Jan 1970 00:00:00 GMT"+(n?"; domain="+n:this.current_default_config.domain?this.current_default_config.domain:"")+(s?"; path="+s:this.current_default_config.path?this.current_default_config.path:"; path=/")+"; SameSite=Lax",!0)},e.prototype.isKey=function(t){return new RegExp("(?:^|;\\s*)"+encodeURIComponent(t).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=").test(document.cookie)},e.prototype.keys=function(){if(!document.cookie)return[];for(var t=document.cookie.replace(/((?:^|\s*;)[^\=]+)(?=;|$)|^\s*|\s*(?:\=[^;]*)?(?:\1|$)/g,"").split(/\s*(?:\=[^;]*)?;\s*/),s=0;s<t.length;s++)t[s]=decodeURIComponent(t[s]);return t},e}(),j=null;function ye(){j==null&&(j=new he);var e=x.reactive(j);return{cookies:e}}function ge(){const{cookies:e}=ye();function t(a){return e.get(a)}function s(a,d){return e.set(a,d)}function n(a){return e.remove(a)}function r(){e.keys().forEach(a=>n(a))}return{getItem:t,setItem:s,removeItem:n,clear:r}}let O=null;function T(e={auth:"token",refresh:"refresh_token",expiration:"token_expiration_date"},t=ge()){if(O)return O;function s(){return t.getItem(e.auth)}function n(){return t.getItem(e.refresh)}function r(){return t.getItem(e.expiration)}function a(m,f){const h=o(m);if(!h.exp)throw new Error("Invalid JWT token.");t.setItem(e.auth,m),t.setItem(e.refresh,f),t.setItem(e.expiration,((h.exp-60)*1e3).toString())}function d(){t.removeItem(e.auth),t.removeItem(e.refresh),t.removeItem(e.expiration)}function p(){return u()&&!i()}function u(){return!!s()}function i(){const m=r();return m?new Date(m)<new Date:!0}function o(m){return JSON.parse(atob(m.split(".")[1]))}function l(){return t}return O={keys:e,getAuthToken:s,getRefreshToken:n,getExpiration:r,authenticate:a,clear:d,isAuthenticated:p,hasAuth:u,isExpired:i,getStorage:l},O}function be(e){let t={"Content-Type":"application/json"};e&&s(e);function s(h,b=!1){return t=b?h:{...t,...h},this}function n(){return t}function r(h,b){return t[h]=b,this}function a(h){return t[h]}function d(h){return t[h]&&delete t[h],this}function p(h){return r("Authorization","Bearer "+h),this}function u(){return d("Authorization"),this}function i(){return!!a("Authorization")}function o(){return r("Content-Type","multipart/form-data"),this}function l(){return r("Content-Type","application/json"),this}function m(){return a("Content-Type")==="multipart/form-data"}function f(){return a("Content-Type")==="application/json"}return{setHeaders:s,getHeaders:n,setHeader:r,getHeader:a,removeHeader:d,setAuthorization:p,removeAuthorization:u,hasAuthorization:i,setFormData:o,setJson:l,isFormData:m,isJson:f}}function Re(e){let t=null;e&&s(e);function s(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:s,getMethod:n}}function we(e,t,s){let n=null;s&&r(s);function r(i){if(!["post","put","patch"].includes(e.getMethod()))throw new Error("Payload can only be set for POST, PUT and PATCH requests.");return i instanceof FormData?t.setFormData():d(i)&&(i=p(i),t.setFormData()),t.isFormData()&&e.getMethod()==="put"&&(e.setMethod("post"),i.append("_method","PUT")),n=i,this}function a(){return n}function d(i){for(const o in i){const l=i[o];if(u(l))return!0;if(typeof l=="object"&&d(l))return!0}return!1}function p(i,o=null,l=0){const m=!o;m&&(o=new FormData);for(const f in i){const h=i[f];u(h)?(i[f]="<<FileIndex:"+l+">>",o.append(l,h,h.name),l++):typeof h=="object"&&(i[f]=p(i[f],o,l))}return m?(o.append("payload",JSON.stringify(i)),o):i}function u(i){return typeof File<"u"&&i instanceof File||typeof Blob<"u"&&i instanceof Blob}return{setPayload:r,getPayload:a}}const v=class v{constructor(t={}){I(this,"level",2);I(this,"logger");I(this,"prefix");this.logger=t.logger||console,this.prefix=t.prefix||""}setLevel(t){this.level=t}debug(...t){this.level<=v.LEVEL_DEBUG&&D(this.logger.debug,this.prefix,t)}info(...t){this.level<=v.LEVEL_INFO&&D(this.logger.info,this.prefix,t)}warn(...t){this.level<=v.LEVEL_WARN&&D(this.logger.warn,this.prefix,t)}error(...t){this.level<=v.LEVEL_ERROR&&D(this.logger.error,this.prefix,t)}};I(v,"LEVEL_DEBUG",0),I(v,"LEVEL_INFO",1),I(v,"LEVEL_WARN",2),I(v,"LEVEL_ERROR",3),I(v,"LEVEL_OFF",4);let N=v;const D=(e,t,s)=>{t?e(t,...s):e(...s)},E=new N({prefix:"[SDK]"});let Z=null,X=null,Y=null,ee="/",te=null;const Ae=()=>Z,Pe=e=>{if(E.info("[Config] Environment:",e),!e)throw new Error("Invalid environment.");Z=e},ve=()=>X,Ie=e=>{if(E.info("[Config] API Host:",e),!e)throw new Error("Invalid API host.");X=e},Ee=()=>te,Se=e=>{te=e},Ce=()=>Y,ke=e=>{if(E.info("[Config] Main App Host:",e),!e)throw new Error("Invalid main app host.");Y=e},$e=e=>{E.info("[Config] Base Assets Urls:",e),ee=e},Le=()=>ee,C={getEnvironment:Ae,getApiHost:ve,getErrorHandler:Ee,setEnvironment:Pe,setApiHost:Ie,setErrorHandler:Se,getMainAppHost:Ce,setMainAppHost:ke,setBaseAssetsUrl:$e,getBaseAssetsUrl:Le};function Me(e){const t=C.getApiHost().replace(/\/$/g,"");let s=null,n={},r={};e&&p(e);function a(){return t+u()+f()}function d(){return u(!0,!0)}function p(c){return s="/"+c.replace(/^\//g,""),this}function u(c=!0,A=!1){return c?s.replace(/:(\w+)/g,(P,S)=>A?"*":r[S]||":"+S):s}function i(c){return n=c,this}function o(c,A){return n[c]=A,this}function l(c){return n[c]&&delete n[c],this}function m(){return Object.keys(n).length>0}function f(c=!0){if(!m())return"";let A="";for(const P in n)if(Array.isArray(n[P]))for(const S of n[P])A+=(A.length?"&":"")+`${P}[]=`+S;else A+=(A.length?"&":"")+P+"="+n[P];return(c?"?":"")+A}function h(c){return r=c,this}function b(c,A){return r[c]=A,this}function $(c){return r[c]&&delete r[c],this}return{setPath:p,getPath:u,getUri:a,getMockUri:d,setQueryParams:i,setQueryParam:o,removeQueryParam:l,hasQuery:m,getQueryString:f,setRouteParams:h,setRouteParam:b,removeRouteParam:$}}function Te(e){let t=[];function s(){return t=i(arguments),d(),this}function n(){return t.length>0}function r(o){return t.includes(o.trim())?this:(t.push(o.trim()),d(),this)}function a(o){const l=t.indexOf(o.trim());return l===-1?this:(t.splice(l,1),d(),this)}function d(){t.length?e.setQueryParam("groups",u(t)):e.removeQueryParam("groups")}function p(o){return o.split(",").map(l=>l.trim())}function u(o){return o.join(",")}function i(o){let l=[];return o.length===1?typeof o[0]=="string"?l=p(o[0]):Array.isArray(o[0])&&(l=o[0]):l=Array.from(o),l}return{setGroups:s,hasGroups:n,addGroup:r,removeGroup:a}}function Oe(e){let t=!1,s=!1,n=1,r=10;function a(){return t=!0,d(),this}function d(){s=!0;const f=m(arguments);return i(f.page||1,!1),o(f.perPage||r,!1),l(),this}function p(){return s=!1,l(),this}function u(){return s}function i(f,h=!0){return t=!0,s=!0,n=f,h&&l(),this}function o(f,h=!0){return t=!0,s=!0,r=f,h&&l(),this}function l(){t?u()?(e.removeQueryParam("pagination"),e.setQueryParam("page",n),e.setQueryParam("nbResultPerPage",r)):(e.removeQueryParam("page"),e.removeQueryParam("nbResultPerPage"),e.setQueryParam("pagination","false")):(e.removeQueryParam("page"),e.removeQueryParam("nbResultPerPage"),e.removeQueryParam("pagination"))}function m(f){if(f.length===1&&typeof f[0]=="object")return f[0];const h={};return f.length>=1&&(h.page=f[0]),f.length>=2&&(h.perPage=f[1]),h}return{isList:a,paginate:d,disablePagination:p,hasPagination:u,setPage:i,setPerPage:o}}function De(e){let t=!1,s="id",n="ASC";function r(){t=!0;const o=i(arguments);return o.orderBy&&d(o.orderBy,!1),o.orderDir&&p(o.orderDir,!1),u(),this}function a(){return t}function d(o,l=!0){return t=!0,s=o,l&&u(),this}function p(o,l=!0){if(o=o.toUpperCase(),["ASC","DESC"].indexOf(o)===-1)throw new Error("Invalid order direction");return t=!0,n=o,l&&u(),this}function u(){a()&&(e.setQueryParam("orderBy",s),e.setQueryParam("orderDirection",n))}function i(o){if(o.length===1&&typeof o[0]=="object")return o[0];const l={};return o.length>=1&&(l.orderBy=o[0]),o.length>=2&&(l.orderDir=o[1]),l}return{setOrder:r,hasOrder:a,setOrderBy:d,setOrderDir:p}}function _e(){let e=!1;function t(){return e=!0,this}function s(){return e}return{setSilent:t,isSilent:s}}function xe(){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 s(){return e}return{setResponseType:t,getResponseType:s}}function Ne(e){function t(){return e}function s(){return e.data}function n(){return e.data}return{getResponse:t,getData:s,getPayload:n}}function je(e,t=!1){let s=!1,n=!1;return e.response?(s=!0,n=!0):e.request&&(s=!0),!t&&C.getErrorHandler()&&C.getErrorHandler()(e),{sent:s,responded:n,error:e}}function Fe(e){function t(){return e}function s(){return e.data}function n(){return e.data}function r(){return e.data["@type"]==="hydra:Collection"}function a(){return r()?e.data["hydra:member"]:null}function d(){return r()?e.data["hydra:totalItems"]:null}function p(){return r()?e.data["hydra:view"]&&e.data["hydra:view"]["hydra:last"]:!1}function u(){return!r()||!p()?null:parseInt(e.data["hydra:view"]["@id"].match(/page=(\d+)/)[1])}function i(){return!r()||!p()?null:parseInt(e.data["hydra:view"]["hydra:last"].match(/page=(\d+)/)[1])}return{getResponse:t,getData:s,getPayload:n,isCollection:r,getCollection:a,getTotal:d,hasPagination:p,getPage:u,getPages:i}}function Ue(e,t,s,n,r,a){async function d(){const u=s.getMethod(),i=t.getUri(),o=e.getHeaders(),l=n.getPayload(),m=[i];["post","put","patch"].includes(u)&&m.push(l||{}),m.push({headers:o,responseType:a.getResponseType()}),E.info("[Request] Sending request:",`[${u.toUpperCase()}]`,i);try{const f=await me[u](...m);return p(f)}catch(f){throw je(f,r.isSilent())}}function p(u){if(u.headers){const i=Object.keys(u.headers),o=i.map(l=>l.toLowerCase()).indexOf("content-type");if(o!==-1&&u.headers[i[o]].includes("application/ld+json"))return Fe(u)}return Ne(u)}return{send:d}}function R(e,t="get",s=null){const n=be(),r=Me(e),a=Re(t),d=we(a,n,s),p=Te(r),u=Oe(r),i=De(r),o=_e(),l=xe(),m=Ue(n,r,a,d,o,l);return{...n,...r,...a,...d,...p,...u,...i,...o,...l,...m}}function y(e,t="get",s=null){const n=R(e,t,s),r=T();r.isAuthenticated()&&n.setAuthorization(r.getAuthToken());const a=n.send;return n.send=async function(){if(!n.hasAuthorization())throw new Error("::SDK Request:: Request cannot be sent, missing authorization header.");return a()},n}const qe=(e,t)=>y("/v2/activity/candidate/:candidateId/establishment/:establishmentId").setRouteParams({candidateId:e,establishmentId:t}),ze=()=>({listByCandidateAndEstablishment:qe}),Be=(e,t,s)=>y("/candidate/:candidateId/share/establishment/:establishmentId").setMethod("post").setRouteParams({candidateId:e,establishmentId:t}).setPayload(s),Qe=(e,t)=>y("/candidate/:candidateId/archive/establishment/:establishmentId").setRouteParams({candidateId:e,establishmentId:t}),He=(e,t)=>y("/candidate/:candidateId/archive/establishment/:establishmentId").setMethod("post").setRouteParams({candidateId:e,establishmentId:t}),Ve=(e,t)=>y("/candidate/:candidateId/archive/establishment/:establishmentId").setMethod("delete").setRouteParams({candidateId:e,establishmentId:t}),Ge=e=>y("/v2/candidates/lookup").setQueryParam("email",e),Ke=(e,t)=>y("/v2/candidates").setMethod("post").setQueryParam("establishment-id",e).setFormData().setPayload(t),Je=(e,t,s)=>y("/v2/candidates/:candidateId").setQueryParam("establishment-id",t).setRouteParams({candidateId:e}).setMethod("post").setFormData().setPayload(s),We=e=>y("/candidate/register/close/:registrationToken").setMethod("post").setRouteParams({registrationToken:e}),Ze=e=>y("/candidate/register/open").setMethod("post").setQueryParam("groups","register:token").setPayload(e),Xe=()=>({share:Be,isArchived:Qe,archive:He,unarchive:Ve,lookupCandidate:Ge,createCandidate:Ke,updateCandidate:Je,closeIncompleteRegistration:We,openNewRegistration:Ze}),Ye=(e,t)=>y("/comment/establishment/:establishmentId/candidate/:userId").setRouteParams({establishmentId:e,userId:t}),et=(e,t,s)=>y("/comment/establishment/:establishmentId/candidate/:userId").setRouteParams({establishmentId:e,userId:t}).setMethod("post").setPayload(s),tt=(e,t)=>y("/comment/:commentId").setRouteParams({commentId:e}).setMethod("put").setPayload(t),nt=e=>y("/comment/:commentId").setRouteParams({commentId:e}).setMethod("delete"),st=()=>({getForEstablishmentCandidate:Ye,postForEstablishmentCandidate:et,update:tt,remove:nt}),rt=()=>R("contractType").isList().addGroup("Term:id").addGroup("Term:name"),it=()=>({list:rt}),ot=e=>y("/v2/talents").isList().setQueryParam("establishment-id",e),at=()=>({list:ot}),ct=(e,t,s)=>y("/cvtheque/establishment/:establishmentId/candidate/:candidateId/label/synchronize").setRouteParams({establishmentId:e,candidateId:t}).setMethod("post").setPayload(s),ut=()=>({syncCandidateLabels:ct}),lt=()=>R("diploma").isList().addGroup("Term:id").addGroup("Term:name"),dt=()=>({list:lt}),mt=e=>y("document/candidate/:candidateId").setRouteParams({candidateId:e}).isList().disablePagination(),ft=(e,t)=>y("document/candidate/:candidateId/establishment/:establishmentId/recruiter").setRouteParams({candidateId:e,establishmentId:t}).isList().disablePagination(),pt=(e,t)=>y("document/candidate/:candidateId/establishment/:establishmentId/candidate").setRouteParams({candidateId:e,establishmentId:t}).isList().disablePagination(),ht=e=>y("document/recruiter").setMethod("post").setPayload(e),yt=e=>y("document/:documentId").setRouteParams({documentId:e}).setMethod("delete"),gt=()=>({listByCandidate:mt,listByCandidateAndEstablishmentFromRecruiter:ft,listByCandidateAndEstablishmentFromCandidate:pt,addFromRecruiter:ht,remove:yt}),bt=(e,t)=>y("/v2/establishments/:establishmentId/email-history").setRouteParams({establishmentId:t}).setQueryParam("receiverId",e).isList().disablePagination(),Rt=()=>({listByCandidateAndEstablishment:bt}),wt=(e,t)=>y("/email/candidate/:candidateId").setMethod("post").setRouteParams({candidateId:e}).setPayload(t),At=(e,t)=>y("/v2/emails/send").setMethod("post").setFormData().setPayload({recipientIds:e,...t}),Pt=()=>({sendToCandidate:wt,sendToRecipients:At}),vt=(e,t=!0)=>{const s=y("/v2/establishments/:establishmentId/email-templates").setRouteParams({establishmentId:e}).isList().disablePagination();return t&&s.setQueryParam("global",!0),s},It=()=>y("/v2/self/email-templates").isList().disablePagination(),Et=()=>({listByEstablishment:vt,listSelf:It}),St=(e,t)=>y("establishment-career/:establishmentId/:versionId").setRouteParams({establishmentId:e,versionId:t}),Ct=(e,t="published")=>y("establishment-career/:establishmentId/state/:state").setRouteParams({establishmentId:e,state:t}),kt=(e,t,s=null)=>{const n=s!==null?y("establishment-career/:establishmentId/:versionId").setRouteParams({establishmentId:e,versionId:s}):y("establishment-career/:establishmentId").setRouteParams({establishmentId:e});return n.setMethod("post").setPayload(t),n},$t=(e,t)=>y("establishment-career/:establishmentId/logo-banner").setMethod("post").setRouteParams({establishmentId:e}).setPayload(t),Lt=(e,t,s)=>y("establishment-career/:establishmentId/publish/:versionId").setMethod("post").setRouteParams({establishmentId:e,versionId:t}).setPayload(s),Mt=()=>({readById:St,readByState:Ct,upsert:kt,uploadLogoAndBanner:$t,publish:Lt}),Tt=e=>R("establishment/:establishmentId").setRouteParams({establishmentId:e}),Ot=e=>y("establishment/:establishmentId/authorizations").setRouteParams({establishmentId:e}),B=()=>({read:Tt,authorizations:Ot}),Dt=e=>R("feature-flag/maintenance").setMethod("post").setPayload(e),_t=(e,t)=>R("feature-flag/establishment").setMethod("post").setPayload({establishment:e,flagName:t}),xt=()=>({maintenanceModeEnabled:Dt,forEstablishment:_t}),Nt=()=>R("job").isList().addGroup("Term:id").addGroup("Term:name"),jt=()=>({list:Nt}),Ft=e=>y("/label/establishment/:establishmentId").isList().setRouteParams({establishmentId:e}),Ut=(e,t)=>y("/label/establishment/:establishmentId").setMethod("post").setRouteParams({establishmentId:e}).setPayload(t),qt=(e,t)=>y("/label/:labelId").setMethod("put").setRouteParams({labelId:e}).setPayload(t),zt=e=>y("/label/:labelId").setMethod("delete").setRouteParams({labelId:e}),Bt=(e,t,s)=>y("/label/establishment/:establishmentId/candidate/:candidateId/synchronize").setMethod("post").setPayload(s).setRouteParams({establishmentId:e,candidateId:t}),Qt=()=>({listByEstablishment:Ft,addToEstablishment:Ut,update:qt,remove:zt,syncForCandidate:Bt}),Ht=e=>R("offer/:offerId").setRouteParams({offerId:e}),Vt=()=>({read:Ht}),Gt=(e,t=!1)=>{const s=y("/recruiter/establishment/:establishmentId").isList().setRouteParams({establishmentId:e});return t&&s.setQueryParam("exclude-me",1),s},Kt=()=>({listByEstablishment:Gt}),Jt=e=>y("/recruitment/establishment/:establishmentId/mine").isList().setRouteParams({establishmentId:e}),Wt=(e,t)=>y("/recruitment/mine/establishment/:establishmentId/has-not/candidate/:candidateId").isList().setRouteParams({establishmentId:e,candidateId:t}),Zt=(e,t)=>y("/recruitment/mine/establishment/:establishmentId/has/candidate/:candidateId").isList().setRouteParams({establishmentId:e,candidateId:t}),Xt=(e,t)=>y("/recruitment/establishment/:establishmentId/has/candidate/:candidateId").isList().setRouteParams({establishmentId:e,candidateId:t}),Yt=(e,t)=>y("/recruitment/:recruitmentId/candidate").setMethod("put").setRouteParams({recruitmentId:e}).setPayload(t),en=(e,t)=>y("/recruitment/:recruitmentId/candidate/:candidateId").setMethod("delete").setRouteParams({recruitmentId:e,candidateId:t}),tn=()=>({mineByEstablishment:Jt,mineWithoutCandidate:Wt,mineWithCandidate:Zt,withCandidate:Xt,addCandidates:Yt,removeCandidate:en}),nn=(e,t,s,n=null)=>{const r=R("candidate/register/open").setMethod("post"),a={email:e};return t==="establishment"&&(a.establishmentId=s),t==="offer"&&(a.offerId=s),n&&(a.referer=n),r.setPayload(a),r},sn=(e,t)=>R("candidate/register/update/:token").setMethod("post").setRouteParams({token:e}).setPayload(t),rn=e=>R("candidate/register/read/:token").setRouteParams({token:e}),on=e=>R("candidate/register/close/:token").setMethod("post").setRouteParams({token:e}),an=()=>({open:nn,update:sn,read:rn,close:on}),cn=(e,t)=>y("/v2/registrations/lookup").setQueryParam("candidate-id",e).setQueryParam("establishment-id",t),un=()=>({lookupEstablishment:cn}),ln=()=>R("speciality").isList().addGroup("Term:id").addGroup("Term:name"),dn=()=>({list:ln}),mn=e=>y("/tag/public/establishment/:establishmentId").isList().setRouteParams({establishmentId:e}),fn=()=>({listByEstablishment:mn}),pn=(e,t)=>y("/v2/talents/lookup").setQueryParam("candidate-id",e).setQueryParam("establishment-id",t),hn=e=>y("/v2/talents/index").setMethod("post").setPayload(e),yn=()=>({lookupTalent:pn,addCandidateToTalentPool:hn}),gn=e=>R("user/email/isset/:email").setRouteParams({email:e}),bn=()=>y("user/self").addGroup("user:self"),Rn=e=>y("/user/:uuid").setRouteParams({uuid:e}),wn=e=>R("/user/:uuid").setRouteParams({uuid:e}),An=e=>y("/user/:id/uuid").setRouteParams({id:e}),Q=()=>({emailExists:gn,self:bn,byUuidPrivate:Rn,byUuid:wn,fetchUuid:An});let _;function ne(){if(_)return _;const e={user:void 0,roles:[],establishments:{}},t=async()=>{if(!T().isAuthenticated())throw new Error("::SDK Authorization:: User not authenticated");const i=(await Q().self().send()).getData();e.user={id:i.id,email:i.email,firstName:i.firstName,lastName:i.lastName,avatar:i.avatar},e.roles=i.roles},s=async i=>{if(!T().isAuthenticated())throw new Error("::SDK Authorization:: User not authenticated");e.establishments[i]=(await B().authorizations(i).send()).getData()},n=i=>{if(e.user===void 0)throw new Error("::SDK Authorization:: User not fetched");return e.roles.includes(i)};return _={fetchSelf:t,fetchPermission:s,hasRole:n,hasRoleRH:()=>n("ROLE_RH"),hasRoleCandidate:()=>n("ROLE_CANDIDATE"),hasRoleAdmin:()=>n("ROLE_ADMIN"),hasPermission:(i,...o)=>{const l=e.establishments[i];if(l===void 0)throw new Error(`::SDK Authorization:: Permissions not fetched for establishment ${i}`);return o.every(m=>l[m]===!0)},clear:()=>{e.user=void 0,e.roles=[],e.establishments={}}},_}async function Pn(e,...t){if(!T().isAuthenticated())throw"ERR_NOT_AUTHENTICATED";const n=ne();await Promise.all([n.fetchSelf(),n.fetchPermission(e)]);for(let r=0;r<t.length;r++){const a=t[r];if(!n.hasPermission(e,a))throw"ERR_MISSING_PERMISSION"}}const vn=fe.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 Q().self().send();this.user=t.getData()}},async fetchPermission(e,t){if(!this.establishments[e]||t){const s=await B().authorizations(e).send();this.establishments[e]=s.getData()}},hasPermission(e,...t){const s=this.establishments[e];return s===void 0?!1:t.every(n=>s[n]===!0)}}}),k=(e,t,s)=>{const n=typeof t=="string"?t.split("."):[t];let r=e;for(const[a,d]of n.entries()){if(a===n.length-1)return r[d]!==void 0?r[d]:s;if(!(d in r)||typeof r[d]!="object")return s;r=r[d]}return s},U=(e,t,s)=>{const n=typeof t=="string"?t.split("."):[t],r=p=>typeof p=="number"||/^\d$/g.test(p),a=p=>parseInt(p,10);let d=e;return n.forEach((p,u)=>{if(u===n.length-1)d[p]=s;else{const i=r(n[u+1])?[]:{};p=r(p)?a(p):p,d[p]=d[p]??i,d=d[p]}}),e},se=e=>{if(typeof e=="object"){if(Array.isArray(e))return[...e];if(Object(e)===e)return{...e}}return e},H=(e,t)=>{const s={...e};for(const[n,r]of Object.entries(t))n in s&&typeof s[n]=="object"&&typeof r=="object"?s[n]=H(s[n],r):s[n]=se(r);return s};let L=null;function g(){if(L)return L;const e=C.getEnvironment(),t=(()=>e==="prod"||e==="production"?"pPROC7dPoJ7XdxHrwsTQNXCGX79MJjhp":e==="staging"?"823rqOTwVk1ZCWVyBAdLInZ77TcFF0CF":"TMZX6evFnu87JrBHV5qLwHsld5C6hilZ")(),s=!!t,n=e!=="prod"&&e!=="production";let r=null;function a(){return s}function d(){const m=window.analytics=window.analytics||[];if(!m.initialize&&m.invoked)E.error("Segment snippet included twice.");else{m.invoked=!0,m.methods=["trackSubmit","trackClick","trackLink","trackForm","pageview","identify","reset","group","track","ready","alias","debug","page","once","off","on","addSourceMiddleware","addIntegrationMiddleware","setAnonymousId","addDestinationMiddleware"],m.factory=function(f){return function(){if(window.analytics.initialized)return window.analytics[f].apply(window.analytics,arguments);const h=Array.prototype.slice.call(arguments);return h.unshift(f),m.push(h),m}};for(let f=0;f<m.methods.length;f++){const h=m.methods[f];m[h]=m.factory(h)}m.load=function(f,h){const b=document.createElement("script");b.id="analytics-script",b.type="text/javascript",b.async=!0,b.src="https://cdn.segment.com/analytics.js/v1/"+f+"/analytics.min.js",b.onerror=()=>window.dispatchEvent(new Event("analytics-error"));const $=document.getElementsByTagName("script")[0];$.parentNode.insertBefore(b,$),m._loadOptions=h},m._writeKey=t,m.SNIPPET_VERSION="4.16.1",m.load(t),m.page(),m.ready(()=>window.dispatchEvent(new Event("analytics-ready")))}}async function p(){return r!==null||(r=new Promise((m,f)=>{if(!a())return l("Analytics is disabled."),m();if(window.addEventListener("analytics-ready",()=>{l("Analytics script loaded successfully."),m()}),window.addEventListener("analytics-error",()=>{l("Analytics script failed to load. Consider disabling your AdBlocker.",null,"error"),f()}),l("Loading Analytics script."),window.analytics)return m();d()})),r}async function u(m,f){try{if(await this.analyticsScriptReady(),l("[identify]",[m,f]),a())return window.analytics.identify(m,f)}catch{l("[identify]",[m,f],"error")}}async function i(m,f,h){typeof h!="object"&&(h={});try{if(await this.analyticsScriptReady(),l("[page]",[m,f,h]),a())return window.analytics.page(m,{category:f,...h})}catch{l("[page]",[m,f,h],"error")}}async function o(m,f,h){typeof h!="object"&&(h={});try{if(await this.analyticsScriptReady(),l("[track]",[m,f,h]),a())return window.analytics.track(m,{category:f,...h})}catch{l("[track]",[m,f,h],"error")}}function l(m,f=[],h="info"){f||(f=[]),n&&E[h](`%cⒶ%c ::SDK Analytics:: ${m}`,"color: green;","color: inherit;",...f)}return L={analyticsScriptReady:p,isEnabled:a,identify:u,page:i,track:o,consoleMessage:l},L}g.destroy=()=>L=null;function re(){const e="Hubler Application";function t(i){var l;if(!i)throw new Error(`Missing arguments for domain "${e}"`);const o=!!i.offerId;if(o&&!i.recruitmentId)throw new Error(`Missing argument "recruitmentId" for domain "${e}"`);return{companyId:(l=i.establishmentId)==null?void 0:l.toString(),jobOfferId:o?i.offerId.toString():null,recruitmentId:o?i.recruitmentId.toString():null,selections:[o?"Application":"Spontaneous Application"]}}async function s(i){return g().page("Application Authentication Viewed",e,t(i))}async function n(i){return g().page("Application Magic Link Viewed",e,t(i))}async function r(i){return g().page("Application Job Viewed",e,t(i))}async function a(i){return g().page("Application Information Viewed",e,t(i))}async function d(i){return g().page("Application Document Viewed",e,t(i))}async function p(i){return g().page("Application Success Viewed",e,t(i))}async function u(i){if(!i.error)throw new Error(`Missing argument "error" for domain "${e}", event "Application Form Failed"`);return g().track("Application Form Failed",e,{...t(i),error:i.error})}return{applicationAuthenticationViewed:s,applicationMagicLinkViewed:n,applicationJobViewed:r,applicationInformationViewed:a,applicationDocumentViewed:d,applicationSuccessViewed:p,applicationFormFailed:u}}function ie(){const e="Profile";function t(c,A){var S;if(!c)throw new Error(`Missing arguments for domain "${e}"`);const P={companyId:c.companyId?c.companyId.toString():null,hublerId:(S=c.hublerId)==null?void 0:S.toString()};return A&&(P.productId=c.companyId?c.companyId+"_2":null),c.recruitmentId&&(P.recruitmentId=c.recruitmentId.toString()),c.selections&&(P.selections=c.selections),c.institutionId&&(P.institutionId=c.institutionId.map(String)),P}async function s(c){return g().track(c.name,e,t(c.properties),!0)}async function n(c){return g().track(c.name,e,t(c.properties,!0))}async function r(c){return g().track(c.name,e,t(c.properties,!0))}async function a(c){return g().track(c.name,e,t(c.properties,!0))}async function d(c){return g().track(c.name,e,t(c.properties,!0))}async function p(c){return g().track(c.name,e,t(c.properties,!0))}async function u(c){return g().track(c.name,e,t(c.properties,!0))}async function i(c){return g().track(c.name,e,t(c.properties,!0))}async function o(c){return g().track(c.name,e,t(c.properties,!0))}async function l(c){return g().track(c.name,e,t(c.properties,!0))}async function m(c){return g().track(c.name,e,t(c.properties,!0))}async function f(c){return g().track(c.name,e,t(c.properties,!0))}async function h(c){return g().track(c.name,e,t(c.properties,!0))}async function b(c){return g().page(c.name,c.properties.category,t(c.properties,!1))}async function $(c){return g().track(c.name,e,t(c.properties,!1))}return{profileDocumentDeleted:s,profileLabelAdded:n,profileLabelRemoved:r,profileShared:a,profileArchived:d,profileCandidateAdded:p,profileCommentAdded:u,profileDocumentAdded:i,profileDocumentDownloaded:o,profileDocumentRequested:l,profileRecruitmentAdded:m,profileRecruitmentRemoved:f,profileTabSelected:h,profileViewed:b,profileEmailSent:$}}const G=Object.freeze(Object.defineProperty({__proto__:null,useAnalyticsHublerApplication:re,useAnalyticsProfile:ie},Symbol.toStringTag,{value:"Module"}));function In(){function e(s){return g().identify(s.id,{email:s.email,firstName:s.firstname,lastName:s.lastname,createdAt:s.createdAt,type:"Hubler",lang:"fr",medium:t()?"MOBILE_DEVICE":"WEB_BROWSER"})}function t(){let s=!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)))&&(s=!0)}(navigator.userAgent||navigator.vendor||window.opera),s}return{identifyCandidate:e}}const En="AIzaSyDicyRD6rvVdnicp1tgV0ElazASNGbyyTs";let oe=!1;const ae=()=>new Promise(e=>{oe||window.google&&window.google.maps?e():(window.addEventListener("gmap-ready",()=>e()),kn())}),Sn=(e,t)=>ae().then(()=>Cn(e,t)),Cn=(e,t)=>{const s=new window.google.maps.places.Autocomplete(e,{componentRestrictions:{country:["fr","re","yt","gp","mq"]}});window.google.maps.event.addListener(s,"place_changed",()=>{const n=s.getPlace();n.formatted_address&&t&&t(n.formatted_address,n)})},kn=()=>{window.onGmapScriptReady=function(){};const e=document.createElement("script");e.src="https://maps.googleapis.com/maps/api/js?key="+En+"&libraries=places&callback=onGmapScriptReady",e.async=!0,e.defer=!0,e.onload=()=>window.dispatchEvent(new Event("gmap-ready")),document.body.appendChild(e),oe=!0},$n={scriptReady:ae,autocompleteInput:Sn},Ln={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"}},Mn={fr:Ln};let q=null;const ce=()=>q,Tn=(e={})=>{let t=e.locale||"fr";const s=u=>t=u,n=()=>t,r=H(Mn,(e==null?void 0:e.messages)||{}),a=(u,i)=>{const o=k(r,`${t}.${u}`);return o?i?On(o,i):o:u},d=(u,i)=>{const o=k(r,`${t}.${u}`);return o?Dn(o,i):u};return q={t:a,tNode:d,setLocale:s,getLocale:n,install:u=>{u.config.globalProperties.$t=a,u.config.globalProperties.$tNode=d}},q},On=(e,t)=>e?e.replace(/{{ ?([a-zA-Z_.]+) ?}}/g,(s,n)=>k(t,n)):null,Dn=(e,t)=>{if(!e)return null;const s=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()=>K.text(n);n=n.replace(/[{}%]/g,"").trim();const a=n.match(/^[a-zA-Z_.]+/)[0];n=n.replace(a,"").trim();const d={};return n!==""&&([...n.matchAll(/([a-zA-Z_.]+)(=([a-zA-Z_.]+))?/g)].reduce((i,o)=>(o[3]===void 0?U(i,o[1],k(t,o[1])):U(i,o[1],k(t,o[3])),i),d),[...n.matchAll(/([a-zA-Z_.]+)="([^"]+)"/g)].reduce((i,o)=>{let l=o[2];return new RegExp(/^[0-9]*$/).exec(o[2])?l=parseInt(o[2]):new RegExp(/^(true|false)$/).exec(o[2])&&(l=o[2]==="true"),i[o[1]]=l,i},d)),p=>K[r](a,t,p,d)});return{setup:(n,{slots:r})=>()=>s.map(a=>a(r))}},K={slot:(e,t,s,n)=>x.h("span",{class:"node node--slot"},s[e.trim()](n)),variable:(e,t)=>x.h("span",{class:"node node--variable"},k(t,e.trim())),text:e=>x.h("span",{class:"node node--text"},e)};function _n(e){const{t}=ce(),s={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 pe.useTimeAgo(e,{fullDateFormatter:n=>n.toLocaleDateString(),messages:s})}function xn(){let e=null;function t(){return e}function s(){return e.controller}function n(){return"use"+e.controller.charAt(0).toUpperCase()+e.controller.slice(1)+"QSController"}function r(){return e.action}function a(){return e.arguments}function d(){return!!(e&&e.controller&&e.action)}function p(){window.location.search.length!==0&&(e=window.location.search.substring(1).split("&").reduce((u,i)=>{const o=i.split("=");return o[0]==="controller"||o[0]==="action"?u[o[0]]=decodeURIComponent(o[1]):u.arguments[o[0]]=decodeURIComponent(o[1]),u},{controller:null,action:null,arguments:{}}))}return p(),{getParams:t,getController:s,getControllerComposableName:n,getAction:r,getArguments:a,hasAction:d}}function Nn(){async function e({domain:n,event:r,...a}){const d="useAnalytics"+n.charAt(0).toUpperCase()+n.slice(1);if(!t(d))throw new Error(`Domain ${n} is not defined`);const p=G[d]();if(!s(p,r))throw new Error(`Event ${r} is not defined in domain ${n}`);return p[r](a)}function t(n){return!!G[n]}function s(n,r){return!!n[r]}return{call:e}}const J=Object.freeze(Object.defineProperty({__proto__:null,useAnalyticsQSController:Nn},Symbol.toStringTag,{value:"Module"}));function jn(e){if(!e.hasAction())throw new Error("No action found in router");function t(){if(!s())throw new Error(`Controller ${e.getController()} not found`);const r=J[e.getControllerComposableName()]();if(!n(r))throw new Error(`Action ${e.getAction()} not found in controller ${e.getController()}`);return r[e.getAction()](e.getArguments())}function s(){return e.getControllerComposableName()in J}function n(r){return e.getAction()in r}return{dispatch:t}}function Fn(){let e=!1;function t(r,a,d){n(),d()}function s(r,a,d){if(!e)return e=!0,t(r,a,d);d()}function n(){const r=xn();if(!r.hasAction())return;jn(r).dispatch()}return{vueRouterBeforeEach:t,vueRouterBeforeFirst:s,handle:n}}const Un=()=>({getAssetUrl:t=>`${C.getBaseAssetsUrl()}${t}`}),w=()=>C.getMainAppHost(),qn=()=>`${w()}/rh/establishments`,zn=e=>`${w()}/rh/establishment/${e}`,Bn=e=>e&&typeof e=="object"&&e.urls&&e.urls.display?e.urls.display:"",Qn=e=>`${w()}/candidate-invite/establishment/${e}`,Hn=(e,t=!1)=>t?`${w()}/cvbank/${e}/`:`${w()}/rh/establishment/${e}/cvtheque/`,Vn=(e,t)=>`${w()}/user-profile/establishment/${e}/user/${t}`,Gn=(e,t)=>`${w()}/rh/establishment/${e}/recruitment/${t}`,Kn=(e,t)=>`${w()}/rh/establishment/${e}/recruitment/${t}/kanban`,Jn=e=>`${w()}/rh/establishment/${e}/career-configuration`,Wn=(e,t=null)=>t?`${w()}/career-website/${e}/${t}`:`${w()}/career-website/${e}`,Zn=(e,t)=>`${w()}/career-website-preview/${e}/${t}`,Xn=(e,t=null)=>{const s=w().replace("://",`://${e}.`);return t?`${s}?_version=${t}`:`${s}`};function Yn(){return{root:w,establishments:qn,establishment:zn,img:Bn,candidateInvite:Qn,cvtheque:Hn,userProfile:Vn,recruitment:Gn,recruitmentKanban:Kn,career:Jn,careerConfig:Wn,careerPreview:Zn,careerWebsite:Xn}}const W=new Set;let M,z={ignore:e=>e.startsWith("Ui")};const F=e=>{if(e!=null&&e.classList){e._cssChecked=!0;for(const t of e.classList)M.has(t)||W.has(t)||z.ignore(t)||(W.add(t),E.error(`Undefined CSS class: ${t}`))}},ue=e=>{var t;for(const s of e)if(s!=null&&s.cssRules&&(s==null?void 0:s.cssRules.length)>0)ue(s.cssRules);else if(s.selectorText){const n=(t=s.selectorText)==null?void 0:t.match(/\.[\w-]+/g);if(n)for(const r of n)M.add(r.substr(1))}},es=(e={})=>{if(M)return M;M=new Set,z={...z,...e},ue(document.styleSheets),new MutationObserver(s=>{for(const n of s)if(n.type==="childList"&&(n!=null&&n.addedNodes)){for(const r of n.addedNodes)if(!(r.nodeType===3||r.nodeType===8)){F(r);for(const a of r.querySelectorAll("*"))F(a)}}else(n==null?void 0:n.attributeName)==="class"&&F(n.target)}).observe(document,{attributes:!0,childList:!0,subtree:!0})},ts="0.2.22";exports.BaseLogger=N;exports.Gmap=$n;exports.SDKConfig=C;exports.SDKLogger=E;exports.VERSION=ts;exports._clone=se;exports._get=k;exports._merge=H;exports._set=U;exports.createI18n=Tn;exports.useActivityRepository=ze;exports.useAnalyticsHublerApplication=re;exports.useAnalyticsIdentify=In;exports.useAnalyticsProfile=ie;exports.useAssetUrls=Un;exports.useAuthentication=T;exports.useAuthorization=ne;exports.useAuthorizationStore=vn;exports.useCanAccessEstablishmentMiddleware=Pn;exports.useCandidateRepository=Xe;exports.useCommentRepository=st;exports.useContractTypeRepository=it;exports.useCvbankRepository=at;exports.useCvthequeRepository=ut;exports.useDiplomaRepository=dt;exports.useDocumentRepository=gt;exports.useDomainUrls=Yn;exports.useEmailHistoryRepository=Rt;exports.useEmailRepository=Pt;exports.useEmailTemplateRepository=Et;exports.useEstablishmentCareerRepository=Mt;exports.useEstablishmentRepository=B;exports.useFeatureFlagRepository=xt;exports.useI18n=ce;exports.useJobRepository=jt;exports.useLabelRepository=Qt;exports.useLocaleTimeAgo=_n;exports.useOfferRepository=Vt;exports.usePrivateRequest=y;exports.useQSAction=Fn;exports.useRecruiterRepository=Kt;exports.useRecruitmentRepository=tn;exports.useRegisterRepository=an;exports.useRegistrationRepository=un;exports.useRequest=R;exports.useSpecialityRepository=dn;exports.useTagRepository=fn;exports.useTalentRepository=yn;exports.useUndefinedCssClasses=es;exports.useUserRepository=Q;
|
package/dist/core.js
CHANGED
|
@@ -86,13 +86,13 @@ var B = {
|
|
|
86
86
|
}, e;
|
|
87
87
|
}()
|
|
88
88
|
), N = null;
|
|
89
|
-
function
|
|
89
|
+
function me() {
|
|
90
90
|
N == null && (N = new de());
|
|
91
91
|
var e = ae(N);
|
|
92
92
|
return { cookies: e };
|
|
93
93
|
}
|
|
94
|
-
function
|
|
95
|
-
const { cookies: e } =
|
|
94
|
+
function fe() {
|
|
95
|
+
const { cookies: e } = me();
|
|
96
96
|
function t(a) {
|
|
97
97
|
return e.get(a);
|
|
98
98
|
}
|
|
@@ -117,7 +117,7 @@ function _(e = {
|
|
|
117
117
|
auth: "token",
|
|
118
118
|
refresh: "refresh_token",
|
|
119
119
|
expiration: "token_expiration_date"
|
|
120
|
-
}, t =
|
|
120
|
+
}, t = fe()) {
|
|
121
121
|
if (O)
|
|
122
122
|
return O;
|
|
123
123
|
function r() {
|
|
@@ -129,11 +129,11 @@ function _(e = {
|
|
|
129
129
|
function s() {
|
|
130
130
|
return t.getItem(e.expiration);
|
|
131
131
|
}
|
|
132
|
-
function a(
|
|
133
|
-
const h = o(
|
|
132
|
+
function a(m, f) {
|
|
133
|
+
const h = o(m);
|
|
134
134
|
if (!h.exp)
|
|
135
135
|
throw new Error("Invalid JWT token.");
|
|
136
|
-
t.setItem(e.auth,
|
|
136
|
+
t.setItem(e.auth, m), t.setItem(e.refresh, f), t.setItem(e.expiration, ((h.exp - 60) * 1e3).toString());
|
|
137
137
|
}
|
|
138
138
|
function d() {
|
|
139
139
|
t.removeItem(e.auth), t.removeItem(e.refresh), t.removeItem(e.expiration);
|
|
@@ -145,11 +145,11 @@ function _(e = {
|
|
|
145
145
|
return !!r();
|
|
146
146
|
}
|
|
147
147
|
function i() {
|
|
148
|
-
const
|
|
149
|
-
return
|
|
148
|
+
const m = s();
|
|
149
|
+
return m ? new Date(m) < /* @__PURE__ */ new Date() : !0;
|
|
150
150
|
}
|
|
151
|
-
function o(
|
|
152
|
-
return JSON.parse(atob(
|
|
151
|
+
function o(m) {
|
|
152
|
+
return JSON.parse(atob(m.split(".")[1]));
|
|
153
153
|
}
|
|
154
154
|
function l() {
|
|
155
155
|
return t;
|
|
@@ -202,10 +202,10 @@ function pe(e) {
|
|
|
202
202
|
function l() {
|
|
203
203
|
return s("Content-Type", "application/json"), this;
|
|
204
204
|
}
|
|
205
|
-
function
|
|
205
|
+
function m() {
|
|
206
206
|
return a("Content-Type") === "multipart/form-data";
|
|
207
207
|
}
|
|
208
|
-
function
|
|
208
|
+
function f() {
|
|
209
209
|
return a("Content-Type") === "application/json";
|
|
210
210
|
}
|
|
211
211
|
return {
|
|
@@ -219,8 +219,8 @@ function pe(e) {
|
|
|
219
219
|
hasAuthorization: i,
|
|
220
220
|
setFormData: o,
|
|
221
221
|
setJson: l,
|
|
222
|
-
isFormData:
|
|
223
|
-
isJson:
|
|
222
|
+
isFormData: m,
|
|
223
|
+
isJson: f
|
|
224
224
|
};
|
|
225
225
|
}
|
|
226
226
|
function he(e) {
|
|
@@ -261,13 +261,13 @@ function ye(e, t, r) {
|
|
|
261
261
|
return !1;
|
|
262
262
|
}
|
|
263
263
|
function p(i, o = null, l = 0) {
|
|
264
|
-
const
|
|
265
|
-
|
|
266
|
-
for (const
|
|
267
|
-
const h = i[
|
|
268
|
-
u(h) ? (i[
|
|
264
|
+
const m = !o;
|
|
265
|
+
m && (o = new FormData());
|
|
266
|
+
for (const f in i) {
|
|
267
|
+
const h = i[f];
|
|
268
|
+
u(h) ? (i[f] = "<<FileIndex:" + l + ">>", o.append(l, h, h.name), l++) : typeof h == "object" && (i[f] = p(i[f], o, l));
|
|
269
269
|
}
|
|
270
|
-
return
|
|
270
|
+
return m ? (o.append("payload", JSON.stringify(i)), o) : i;
|
|
271
271
|
}
|
|
272
272
|
function u(i) {
|
|
273
273
|
return typeof File < "u" && i instanceof File || typeof Blob < "u" && i instanceof Blob;
|
|
@@ -299,27 +299,27 @@ const v = class v {
|
|
|
299
299
|
}
|
|
300
300
|
/** debug display messages only if level is DEBUG or less */
|
|
301
301
|
debug(...t) {
|
|
302
|
-
this.level <= v.LEVEL_DEBUG &&
|
|
302
|
+
this.level <= v.LEVEL_DEBUG && T(this.logger.debug, this.prefix, t);
|
|
303
303
|
}
|
|
304
304
|
/** info display messages only if level is INFO or less */
|
|
305
305
|
info(...t) {
|
|
306
|
-
this.level <= v.LEVEL_INFO &&
|
|
306
|
+
this.level <= v.LEVEL_INFO && T(this.logger.info, this.prefix, t);
|
|
307
307
|
}
|
|
308
308
|
/** warn display messages only if level is WARN or less */
|
|
309
309
|
warn(...t) {
|
|
310
|
-
this.level <= v.LEVEL_WARN &&
|
|
310
|
+
this.level <= v.LEVEL_WARN && T(this.logger.warn, this.prefix, t);
|
|
311
311
|
}
|
|
312
312
|
/** error display messages only if level is ERROR or less */
|
|
313
313
|
error(...t) {
|
|
314
|
-
this.level <= v.LEVEL_ERROR &&
|
|
314
|
+
this.level <= v.LEVEL_ERROR && T(this.logger.error, this.prefix, t);
|
|
315
315
|
}
|
|
316
316
|
};
|
|
317
317
|
/** Possible logging level by order of verbosity (more verbose first) */
|
|
318
318
|
I(v, "LEVEL_DEBUG", 0), I(v, "LEVEL_INFO", 1), I(v, "LEVEL_WARN", 2), I(v, "LEVEL_ERROR", 3), I(v, "LEVEL_OFF", 4);
|
|
319
|
-
let
|
|
320
|
-
const
|
|
319
|
+
let F = v;
|
|
320
|
+
const T = (e, t, r) => {
|
|
321
321
|
t ? e(t, ...r) : e(...r);
|
|
322
|
-
}, E = new
|
|
322
|
+
}, E = new F({
|
|
323
323
|
prefix: "[SDK]"
|
|
324
324
|
});
|
|
325
325
|
let K = null, J = null, W = null, Z = "/", X = null;
|
|
@@ -356,7 +356,7 @@ function Ce(e) {
|
|
|
356
356
|
let r = null, n = {}, s = {};
|
|
357
357
|
e && p(e);
|
|
358
358
|
function a() {
|
|
359
|
-
return t + u() +
|
|
359
|
+
return t + u() + f();
|
|
360
360
|
}
|
|
361
361
|
function d() {
|
|
362
362
|
return u(!0, !0);
|
|
@@ -376,11 +376,11 @@ function Ce(e) {
|
|
|
376
376
|
function l(c) {
|
|
377
377
|
return n[c] && delete n[c], this;
|
|
378
378
|
}
|
|
379
|
-
function
|
|
379
|
+
function m() {
|
|
380
380
|
return Object.keys(n).length > 0;
|
|
381
381
|
}
|
|
382
|
-
function
|
|
383
|
-
if (!
|
|
382
|
+
function f(c = !0) {
|
|
383
|
+
if (!m())
|
|
384
384
|
return "";
|
|
385
385
|
let A = "";
|
|
386
386
|
for (const P in n)
|
|
@@ -408,8 +408,8 @@ function Ce(e) {
|
|
|
408
408
|
setQueryParams: i,
|
|
409
409
|
setQueryParam: o,
|
|
410
410
|
removeQueryParam: l,
|
|
411
|
-
hasQuery:
|
|
412
|
-
getQueryString:
|
|
411
|
+
hasQuery: m,
|
|
412
|
+
getQueryString: f,
|
|
413
413
|
setRouteParams: h,
|
|
414
414
|
setRouteParam: b,
|
|
415
415
|
removeRouteParam: C
|
|
@@ -457,8 +457,8 @@ function $e(e) {
|
|
|
457
457
|
}
|
|
458
458
|
function d() {
|
|
459
459
|
r = !0;
|
|
460
|
-
const
|
|
461
|
-
return i(
|
|
460
|
+
const f = m(arguments);
|
|
461
|
+
return i(f.page || 1, !1), o(f.perPage || s, !1), l(), this;
|
|
462
462
|
}
|
|
463
463
|
function p() {
|
|
464
464
|
return r = !1, l(), this;
|
|
@@ -466,20 +466,20 @@ function $e(e) {
|
|
|
466
466
|
function u() {
|
|
467
467
|
return r;
|
|
468
468
|
}
|
|
469
|
-
function i(
|
|
470
|
-
return t = !0, r = !0, n =
|
|
469
|
+
function i(f, h = !0) {
|
|
470
|
+
return t = !0, r = !0, n = f, h && l(), this;
|
|
471
471
|
}
|
|
472
|
-
function o(
|
|
473
|
-
return t = !0, r = !0, s =
|
|
472
|
+
function o(f, h = !0) {
|
|
473
|
+
return t = !0, r = !0, s = f, h && l(), this;
|
|
474
474
|
}
|
|
475
475
|
function l() {
|
|
476
476
|
t ? u() ? (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"));
|
|
477
477
|
}
|
|
478
|
-
function f
|
|
479
|
-
if (
|
|
480
|
-
return
|
|
478
|
+
function m(f) {
|
|
479
|
+
if (f.length === 1 && typeof f[0] == "object")
|
|
480
|
+
return f[0];
|
|
481
481
|
const h = {};
|
|
482
|
-
return
|
|
482
|
+
return f.length >= 1 && (h.page = f[0]), f.length >= 2 && (h.perPage = f[1]), h;
|
|
483
483
|
}
|
|
484
484
|
return {
|
|
485
485
|
isList: a,
|
|
@@ -490,7 +490,7 @@ function $e(e) {
|
|
|
490
490
|
setPerPage: o
|
|
491
491
|
};
|
|
492
492
|
}
|
|
493
|
-
function
|
|
493
|
+
function Me(e) {
|
|
494
494
|
let t = !1, r = "id", n = "ASC";
|
|
495
495
|
function s() {
|
|
496
496
|
t = !0;
|
|
@@ -524,7 +524,7 @@ function Le(e) {
|
|
|
524
524
|
setOrderDir: p
|
|
525
525
|
};
|
|
526
526
|
}
|
|
527
|
-
function
|
|
527
|
+
function Le() {
|
|
528
528
|
let e = !1;
|
|
529
529
|
function t() {
|
|
530
530
|
return e = !0, this;
|
|
@@ -552,7 +552,7 @@ function Oe() {
|
|
|
552
552
|
getResponseType: r
|
|
553
553
|
};
|
|
554
554
|
}
|
|
555
|
-
function
|
|
555
|
+
function Te(e) {
|
|
556
556
|
function t() {
|
|
557
557
|
return e;
|
|
558
558
|
}
|
|
@@ -568,7 +568,7 @@ function De(e) {
|
|
|
568
568
|
getPayload: n
|
|
569
569
|
};
|
|
570
570
|
}
|
|
571
|
-
function
|
|
571
|
+
function De(e, t = !1) {
|
|
572
572
|
let r = !1, n = !1;
|
|
573
573
|
return e.response ? (r = !0, n = !0) : e.request && (r = !0), !t && k.getErrorHandler() && k.getErrorHandler()(e), {
|
|
574
574
|
sent: r,
|
|
@@ -618,16 +618,16 @@ function _e(e) {
|
|
|
618
618
|
}
|
|
619
619
|
function xe(e, t, r, n, s, a) {
|
|
620
620
|
async function d() {
|
|
621
|
-
const u = r.getMethod(), i = t.getUri(), o = e.getHeaders(), l = n.getPayload(),
|
|
622
|
-
["post", "put", "patch"].includes(u) &&
|
|
621
|
+
const u = r.getMethod(), i = t.getUri(), o = e.getHeaders(), l = n.getPayload(), m = [i];
|
|
622
|
+
["post", "put", "patch"].includes(u) && m.push(l || {}), m.push({
|
|
623
623
|
headers: o,
|
|
624
624
|
responseType: a.getResponseType()
|
|
625
625
|
}), E.info("[Request] Sending request:", `[${u.toUpperCase()}]`, i);
|
|
626
626
|
try {
|
|
627
|
-
const
|
|
628
|
-
return p(
|
|
629
|
-
} catch (
|
|
630
|
-
throw
|
|
627
|
+
const f = await ce[u](...m);
|
|
628
|
+
return p(f);
|
|
629
|
+
} catch (f) {
|
|
630
|
+
throw De(f, s.isSilent());
|
|
631
631
|
}
|
|
632
632
|
}
|
|
633
633
|
function p(u) {
|
|
@@ -636,14 +636,14 @@ function xe(e, t, r, n, s, a) {
|
|
|
636
636
|
if (o !== -1 && u.headers[i[o]].includes("application/ld+json"))
|
|
637
637
|
return _e(u);
|
|
638
638
|
}
|
|
639
|
-
return
|
|
639
|
+
return Te(u);
|
|
640
640
|
}
|
|
641
641
|
return {
|
|
642
642
|
send: d
|
|
643
643
|
};
|
|
644
644
|
}
|
|
645
645
|
function w(e, t = "get", r = null) {
|
|
646
|
-
const n = pe(), s = Ce(e), a = he(t), d = ye(a, n, r), p = ke(s), u = $e(s), i =
|
|
646
|
+
const n = pe(), s = Ce(e), a = he(t), d = ye(a, n, r), p = ke(s), u = $e(s), i = Me(s), o = Le(), l = Oe(), m = xe(n, s, a, d, o, l);
|
|
647
647
|
return {
|
|
648
648
|
...n,
|
|
649
649
|
...s,
|
|
@@ -654,7 +654,7 @@ function w(e, t = "get", r = null) {
|
|
|
654
654
|
...i,
|
|
655
655
|
...o,
|
|
656
656
|
...l,
|
|
657
|
-
...
|
|
657
|
+
...m
|
|
658
658
|
};
|
|
659
659
|
}
|
|
660
660
|
function y(e, t = "get", r = null) {
|
|
@@ -667,107 +667,113 @@ function y(e, t = "get", r = null) {
|
|
|
667
667
|
return a();
|
|
668
668
|
}, n;
|
|
669
669
|
}
|
|
670
|
-
const Ne = (e, t) => y("/v2/activity/candidate/:candidateId/establishment/:establishmentId").setRouteParams({ candidateId: e, establishmentId: t }),
|
|
670
|
+
const Ne = (e, t) => y("/v2/activity/candidate/:candidateId/establishment/:establishmentId").setRouteParams({ candidateId: e, establishmentId: t }), kn = () => ({
|
|
671
671
|
listByCandidateAndEstablishment: Ne
|
|
672
|
-
}), je = (e, t, r) => y("/candidate/:candidateId/share/establishment/:establishmentId").setMethod("post").setRouteParams({ candidateId: e, establishmentId: t }).setPayload(r),
|
|
672
|
+
}), je = (e, t, r) => y("/candidate/:candidateId/share/establishment/:establishmentId").setMethod("post").setRouteParams({ candidateId: e, establishmentId: t }).setPayload(r), Fe = (e, t) => y("/candidate/:candidateId/archive/establishment/:establishmentId").setRouteParams({ candidateId: e, establishmentId: t }), ze = (e, t) => y("/candidate/:candidateId/archive/establishment/:establishmentId").setMethod("post").setRouteParams({ candidateId: e, establishmentId: t }), Ue = (e, t) => y("/candidate/:candidateId/archive/establishment/:establishmentId").setMethod("delete").setRouteParams({ candidateId: e, establishmentId: t }), Be = (e) => y("/v2/candidates/lookup").setQueryParam("email", e), qe = (e, t) => y("/v2/candidates").setMethod("post").setQueryParam("establishment-id", e).setFormData().setPayload(t), Qe = (e, t, r) => y("/v2/candidates/:candidateId").setQueryParam("establishment-id", t).setRouteParams({ candidateId: e }).setMethod("post").setFormData().setPayload(r), He = (e) => y("/candidate/register/close/:registrationToken").setMethod("post").setRouteParams({ registrationToken: e }), Ve = (e) => y("/candidate/register/open").setMethod("post").setQueryParam("groups", "register:token").setPayload(e), $n = () => ({
|
|
673
673
|
share: je,
|
|
674
|
-
isArchived:
|
|
675
|
-
archive:
|
|
674
|
+
isArchived: Fe,
|
|
675
|
+
archive: ze,
|
|
676
676
|
unarchive: Ue,
|
|
677
|
-
lookupCandidate: Be
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
}),
|
|
688
|
-
|
|
689
|
-
}),
|
|
690
|
-
list:
|
|
691
|
-
}),
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
677
|
+
lookupCandidate: Be,
|
|
678
|
+
createCandidate: qe,
|
|
679
|
+
updateCandidate: Qe,
|
|
680
|
+
closeIncompleteRegistration: He,
|
|
681
|
+
openNewRegistration: Ve
|
|
682
|
+
}), Ge = (e, t) => y("/comment/establishment/:establishmentId/candidate/:userId").setRouteParams({ establishmentId: e, userId: t }), Ke = (e, t, r) => y("/comment/establishment/:establishmentId/candidate/:userId").setRouteParams({ establishmentId: e, userId: t }).setMethod("post").setPayload(r), Je = (e, t) => y("/comment/:commentId").setRouteParams({ commentId: e }).setMethod("put").setPayload(t), We = (e) => y("/comment/:commentId").setRouteParams({ commentId: e }).setMethod("delete"), Mn = () => ({
|
|
683
|
+
getForEstablishmentCandidate: Ge,
|
|
684
|
+
postForEstablishmentCandidate: Ke,
|
|
685
|
+
update: Je,
|
|
686
|
+
remove: We
|
|
687
|
+
}), Ze = () => w("contractType").isList().addGroup("Term:id").addGroup("Term:name"), Ln = () => ({
|
|
688
|
+
list: Ze
|
|
689
|
+
}), Xe = (e) => y("/v2/talents").isList().setQueryParam("establishment-id", e), On = () => ({
|
|
690
|
+
list: Xe
|
|
691
|
+
}), Ye = (e, t, r) => y("/cvtheque/establishment/:establishmentId/candidate/:candidateId/label/synchronize").setRouteParams({ establishmentId: e, candidateId: t }).setMethod("post").setPayload(r), Tn = () => ({
|
|
692
|
+
syncCandidateLabels: Ye
|
|
693
|
+
}), et = () => w("diploma").isList().addGroup("Term:id").addGroup("Term:name"), Dn = () => ({
|
|
694
|
+
list: et
|
|
695
|
+
}), tt = (e) => y("document/candidate/:candidateId").setRouteParams({ candidateId: e }).isList().disablePagination(), nt = (e, t) => y("document/candidate/:candidateId/establishment/:establishmentId/recruiter").setRouteParams({ candidateId: e, establishmentId: t }).isList().disablePagination(), rt = (e, t) => y("document/candidate/:candidateId/establishment/:establishmentId/candidate").setRouteParams({ candidateId: e, establishmentId: t }).isList().disablePagination(), st = (e) => y("document/recruiter").setMethod("post").setPayload(e), it = (e) => y("document/:documentId").setRouteParams({ documentId: e }).setMethod("delete"), _n = () => ({
|
|
696
|
+
listByCandidate: tt,
|
|
697
|
+
listByCandidateAndEstablishmentFromRecruiter: nt,
|
|
698
|
+
listByCandidateAndEstablishmentFromCandidate: rt,
|
|
699
|
+
addFromRecruiter: st,
|
|
700
|
+
remove: it
|
|
701
|
+
}), ot = (e, t) => y("/v2/establishments/:establishmentId/email-history").setRouteParams({ establishmentId: t }).setQueryParam("receiverId", e).isList().disablePagination(), xn = () => ({
|
|
702
|
+
listByCandidateAndEstablishment: ot
|
|
703
|
+
}), at = (e, t) => y("/email/candidate/:candidateId").setMethod("post").setRouteParams({ candidateId: e }).setPayload(t), ct = (e, t) => y("/v2/emails/send").setMethod("post").setFormData().setPayload({ recipientIds: e, ...t }), Nn = () => ({
|
|
704
|
+
sendToCandidate: at,
|
|
705
|
+
sendToRecipients: ct
|
|
706
|
+
}), ut = (e, t = !0) => {
|
|
703
707
|
const r = y("/v2/establishments/:establishmentId/email-templates").setRouteParams({ establishmentId: e }).isList().disablePagination();
|
|
704
708
|
return t && r.setQueryParam("global", !0), r;
|
|
705
|
-
},
|
|
706
|
-
listByEstablishment:
|
|
707
|
-
listSelf:
|
|
708
|
-
}),
|
|
709
|
+
}, lt = () => y("/v2/self/email-templates").isList().disablePagination(), jn = () => ({
|
|
710
|
+
listByEstablishment: ut,
|
|
711
|
+
listSelf: lt
|
|
712
|
+
}), dt = (e, t) => y("establishment-career/:establishmentId/:versionId").setRouteParams({ establishmentId: e, versionId: t }), mt = (e, t = "published") => y("establishment-career/:establishmentId/state/:state").setRouteParams({ establishmentId: e, state: t }), ft = (e, t, r = null) => {
|
|
709
713
|
const n = r !== null ? y("establishment-career/:establishmentId/:versionId").setRouteParams({ establishmentId: e, versionId: r }) : y("establishment-career/:establishmentId").setRouteParams({ establishmentId: e });
|
|
710
714
|
return n.setMethod("post").setPayload(t), n;
|
|
711
|
-
},
|
|
712
|
-
readById:
|
|
713
|
-
readByState:
|
|
714
|
-
upsert:
|
|
715
|
-
uploadLogoAndBanner:
|
|
716
|
-
publish:
|
|
717
|
-
}),
|
|
718
|
-
read:
|
|
719
|
-
authorizations:
|
|
720
|
-
}),
|
|
721
|
-
maintenanceModeEnabled:
|
|
722
|
-
forEstablishment:
|
|
723
|
-
}),
|
|
724
|
-
list:
|
|
725
|
-
}),
|
|
726
|
-
listByEstablishment:
|
|
727
|
-
addToEstablishment:
|
|
728
|
-
update:
|
|
729
|
-
remove:
|
|
730
|
-
syncForCandidate:
|
|
731
|
-
}),
|
|
732
|
-
read:
|
|
733
|
-
}),
|
|
715
|
+
}, pt = (e, t) => y("establishment-career/:establishmentId/logo-banner").setMethod("post").setRouteParams({ establishmentId: e }).setPayload(t), ht = (e, t, r) => y("establishment-career/:establishmentId/publish/:versionId").setMethod("post").setRouteParams({ establishmentId: e, versionId: t }).setPayload(r), Fn = () => ({
|
|
716
|
+
readById: dt,
|
|
717
|
+
readByState: mt,
|
|
718
|
+
upsert: ft,
|
|
719
|
+
uploadLogoAndBanner: pt,
|
|
720
|
+
publish: ht
|
|
721
|
+
}), yt = (e) => w("establishment/:establishmentId").setRouteParams({ establishmentId: e }), gt = (e) => y("establishment/:establishmentId/authorizations").setRouteParams({ establishmentId: e }), Y = () => ({
|
|
722
|
+
read: yt,
|
|
723
|
+
authorizations: gt
|
|
724
|
+
}), bt = (e) => w("feature-flag/maintenance").setMethod("post").setPayload(e), wt = (e, t) => w("feature-flag/establishment").setMethod("post").setPayload({ establishment: e, flagName: t }), zn = () => ({
|
|
725
|
+
maintenanceModeEnabled: bt,
|
|
726
|
+
forEstablishment: wt
|
|
727
|
+
}), Rt = () => w("job").isList().addGroup("Term:id").addGroup("Term:name"), Un = () => ({
|
|
728
|
+
list: Rt
|
|
729
|
+
}), At = (e) => y("/label/establishment/:establishmentId").isList().setRouteParams({ establishmentId: e }), Pt = (e, t) => y("/label/establishment/:establishmentId").setMethod("post").setRouteParams({ establishmentId: e }).setPayload(t), vt = (e, t) => y("/label/:labelId").setMethod("put").setRouteParams({ labelId: e }).setPayload(t), It = (e) => y("/label/:labelId").setMethod("delete").setRouteParams({ labelId: e }), Et = (e, t, r) => y("/label/establishment/:establishmentId/candidate/:candidateId/synchronize").setMethod("post").setPayload(r).setRouteParams({ establishmentId: e, candidateId: t }), Bn = () => ({
|
|
730
|
+
listByEstablishment: At,
|
|
731
|
+
addToEstablishment: Pt,
|
|
732
|
+
update: vt,
|
|
733
|
+
remove: It,
|
|
734
|
+
syncForCandidate: Et
|
|
735
|
+
}), St = (e) => w("offer/:offerId").setRouteParams({ offerId: e }), qn = () => ({
|
|
736
|
+
read: St
|
|
737
|
+
}), Ct = (e, t = !1) => {
|
|
734
738
|
const r = y("/recruiter/establishment/:establishmentId").isList().setRouteParams({ establishmentId: e });
|
|
735
739
|
return t && r.setQueryParam("exclude-me", 1), r;
|
|
736
|
-
},
|
|
737
|
-
listByEstablishment:
|
|
738
|
-
}),
|
|
739
|
-
mineByEstablishment:
|
|
740
|
-
mineWithoutCandidate:
|
|
741
|
-
mineWithCandidate:
|
|
742
|
-
withCandidate:
|
|
743
|
-
addCandidates:
|
|
744
|
-
removeCandidate:
|
|
745
|
-
}),
|
|
740
|
+
}, Qn = () => ({
|
|
741
|
+
listByEstablishment: Ct
|
|
742
|
+
}), kt = (e) => y("/recruitment/establishment/:establishmentId/mine").isList().setRouteParams({ establishmentId: e }), $t = (e, t) => y("/recruitment/mine/establishment/:establishmentId/has-not/candidate/:candidateId").isList().setRouteParams({ establishmentId: e, candidateId: t }), Mt = (e, t) => y("/recruitment/mine/establishment/:establishmentId/has/candidate/:candidateId").isList().setRouteParams({ establishmentId: e, candidateId: t }), Lt = (e, t) => y("/recruitment/establishment/:establishmentId/has/candidate/:candidateId").isList().setRouteParams({ establishmentId: e, candidateId: t }), Ot = (e, t) => y("/recruitment/:recruitmentId/candidate").setMethod("put").setRouteParams({ recruitmentId: e }).setPayload(t), Tt = (e, t) => y("/recruitment/:recruitmentId/candidate/:candidateId").setMethod("delete").setRouteParams({ recruitmentId: e, candidateId: t }), Hn = () => ({
|
|
743
|
+
mineByEstablishment: kt,
|
|
744
|
+
mineWithoutCandidate: $t,
|
|
745
|
+
mineWithCandidate: Mt,
|
|
746
|
+
withCandidate: Lt,
|
|
747
|
+
addCandidates: Ot,
|
|
748
|
+
removeCandidate: Tt
|
|
749
|
+
}), Dt = (e, t, r, n = null) => {
|
|
746
750
|
const s = w("candidate/register/open").setMethod("post"), a = { email: e };
|
|
747
751
|
return t === "establishment" && (a.establishmentId = r), t === "offer" && (a.offerId = r), n && (a.referer = n), s.setPayload(a), s;
|
|
748
|
-
},
|
|
749
|
-
open:
|
|
750
|
-
update:
|
|
751
|
-
read:
|
|
752
|
-
close:
|
|
753
|
-
}),
|
|
754
|
-
lookupEstablishment:
|
|
755
|
-
}),
|
|
756
|
-
list:
|
|
757
|
-
}),
|
|
758
|
-
listByEstablishment:
|
|
759
|
-
}),
|
|
760
|
-
lookupTalent:
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
752
|
+
}, _t = (e, t) => w("candidate/register/update/:token").setMethod("post").setRouteParams({ token: e }).setPayload(t), xt = (e) => w("candidate/register/read/:token").setRouteParams({ token: e }), Nt = (e) => w("candidate/register/close/:token").setMethod("post").setRouteParams({ token: e }), Vn = () => ({
|
|
753
|
+
open: Dt,
|
|
754
|
+
update: _t,
|
|
755
|
+
read: xt,
|
|
756
|
+
close: Nt
|
|
757
|
+
}), jt = (e, t) => y("/v2/registrations/lookup").setQueryParam("candidate-id", e).setQueryParam("establishment-id", t), Gn = () => ({
|
|
758
|
+
lookupEstablishment: jt
|
|
759
|
+
}), Ft = () => w("speciality").isList().addGroup("Term:id").addGroup("Term:name"), Kn = () => ({
|
|
760
|
+
list: Ft
|
|
761
|
+
}), zt = (e) => y("/tag/public/establishment/:establishmentId").isList().setRouteParams({ establishmentId: e }), Jn = () => ({
|
|
762
|
+
listByEstablishment: zt
|
|
763
|
+
}), Ut = (e, t) => y("/v2/talents/lookup").setQueryParam("candidate-id", e).setQueryParam("establishment-id", t), Bt = (e) => y("/v2/talents/index").setMethod("post").setPayload(e), Wn = () => ({
|
|
764
|
+
lookupTalent: Ut,
|
|
765
|
+
addCandidateToTalentPool: Bt
|
|
766
|
+
}), qt = (e) => w("user/email/isset/:email").setRouteParams({ email: e }), Qt = () => y("user/self").addGroup("user:self"), Ht = (e) => y("/user/:uuid").setRouteParams({ uuid: e }), Vt = (e) => w("/user/:uuid").setRouteParams({ uuid: e }), Gt = (e) => y("/user/:id/uuid").setRouteParams({ id: e }), ee = () => ({
|
|
767
|
+
emailExists: qt,
|
|
768
|
+
self: Qt,
|
|
769
|
+
byUuidPrivate: Ht,
|
|
770
|
+
byUuid: Vt,
|
|
771
|
+
fetchUuid: Gt
|
|
766
772
|
});
|
|
767
|
-
let
|
|
768
|
-
function
|
|
769
|
-
if (
|
|
770
|
-
return
|
|
773
|
+
let D;
|
|
774
|
+
function Kt() {
|
|
775
|
+
if (D)
|
|
776
|
+
return D;
|
|
771
777
|
const e = {
|
|
772
778
|
user: void 0,
|
|
773
779
|
roles: [],
|
|
@@ -792,7 +798,7 @@ function Bt() {
|
|
|
792
798
|
throw new Error("::SDK Authorization:: User not fetched");
|
|
793
799
|
return e.roles.includes(i);
|
|
794
800
|
};
|
|
795
|
-
return
|
|
801
|
+
return D = {
|
|
796
802
|
fetchSelf: t,
|
|
797
803
|
fetchPermission: r,
|
|
798
804
|
hasRole: n,
|
|
@@ -803,17 +809,17 @@ function Bt() {
|
|
|
803
809
|
const l = e.establishments[i];
|
|
804
810
|
if (l === void 0)
|
|
805
811
|
throw new Error(`::SDK Authorization:: Permissions not fetched for establishment ${i}`);
|
|
806
|
-
return o.every((
|
|
812
|
+
return o.every((m) => l[m] === !0);
|
|
807
813
|
},
|
|
808
814
|
clear: () => {
|
|
809
815
|
e.user = void 0, e.roles = [], e.establishments = {};
|
|
810
816
|
}
|
|
811
|
-
},
|
|
817
|
+
}, D;
|
|
812
818
|
}
|
|
813
|
-
async function
|
|
819
|
+
async function Zn(e, ...t) {
|
|
814
820
|
if (!_().isAuthenticated())
|
|
815
821
|
throw "ERR_NOT_AUTHENTICATED";
|
|
816
|
-
const n =
|
|
822
|
+
const n = Kt();
|
|
817
823
|
await Promise.all([
|
|
818
824
|
n.fetchSelf(),
|
|
819
825
|
n.fetchPermission(e)
|
|
@@ -824,7 +830,7 @@ async function Hn(e, ...t) {
|
|
|
824
830
|
throw "ERR_MISSING_PERMISSION";
|
|
825
831
|
}
|
|
826
832
|
}
|
|
827
|
-
const
|
|
833
|
+
const Xn = ue("authorization", {
|
|
828
834
|
state: () => ({
|
|
829
835
|
user: void 0,
|
|
830
836
|
establishments: {}
|
|
@@ -881,7 +887,7 @@ const Vn = ue("authorization", {
|
|
|
881
887
|
p = s(p) ? a(p) : p, d[p] = d[p] ?? i, d = d[p];
|
|
882
888
|
}
|
|
883
889
|
}), e;
|
|
884
|
-
},
|
|
890
|
+
}, Jt = (e) => {
|
|
885
891
|
if (typeof e == "object") {
|
|
886
892
|
if (Array.isArray(e))
|
|
887
893
|
return [...e];
|
|
@@ -892,102 +898,102 @@ const Vn = ue("authorization", {
|
|
|
892
898
|
}, te = (e, t) => {
|
|
893
899
|
const r = { ...e };
|
|
894
900
|
for (const [n, s] of Object.entries(t))
|
|
895
|
-
n in r && typeof r[n] == "object" && typeof s == "object" ? r[n] = te(r[n], s) : r[n] =
|
|
901
|
+
n in r && typeof r[n] == "object" && typeof s == "object" ? r[n] = te(r[n], s) : r[n] = Jt(s);
|
|
896
902
|
return r;
|
|
897
903
|
};
|
|
898
|
-
let
|
|
904
|
+
let M = null;
|
|
899
905
|
function g() {
|
|
900
|
-
if (
|
|
901
|
-
return
|
|
906
|
+
if (M)
|
|
907
|
+
return M;
|
|
902
908
|
const e = k.getEnvironment(), t = (() => e === "prod" || e === "production" ? "pPROC7dPoJ7XdxHrwsTQNXCGX79MJjhp" : e === "staging" ? "823rqOTwVk1ZCWVyBAdLInZ77TcFF0CF" : "TMZX6evFnu87JrBHV5qLwHsld5C6hilZ")(), r = !!t, n = e !== "prod" && e !== "production";
|
|
903
909
|
let s = null;
|
|
904
910
|
function a() {
|
|
905
911
|
return r;
|
|
906
912
|
}
|
|
907
913
|
function d() {
|
|
908
|
-
const
|
|
909
|
-
if (!
|
|
914
|
+
const m = window.analytics = window.analytics || [];
|
|
915
|
+
if (!m.initialize && m.invoked)
|
|
910
916
|
E.error("Segment snippet included twice.");
|
|
911
917
|
else {
|
|
912
|
-
|
|
918
|
+
m.invoked = !0, m.methods = ["trackSubmit", "trackClick", "trackLink", "trackForm", "pageview", "identify", "reset", "group", "track", "ready", "alias", "debug", "page", "once", "off", "on", "addSourceMiddleware", "addIntegrationMiddleware", "setAnonymousId", "addDestinationMiddleware"], m.factory = function(f) {
|
|
913
919
|
return function() {
|
|
914
920
|
if (window.analytics.initialized)
|
|
915
|
-
return window.analytics[
|
|
921
|
+
return window.analytics[f].apply(window.analytics, arguments);
|
|
916
922
|
const h = Array.prototype.slice.call(arguments);
|
|
917
|
-
return h.unshift(
|
|
923
|
+
return h.unshift(f), m.push(h), m;
|
|
918
924
|
};
|
|
919
925
|
};
|
|
920
|
-
for (let
|
|
921
|
-
const h =
|
|
922
|
-
|
|
926
|
+
for (let f = 0; f < m.methods.length; f++) {
|
|
927
|
+
const h = m.methods[f];
|
|
928
|
+
m[h] = m.factory(h);
|
|
923
929
|
}
|
|
924
|
-
|
|
930
|
+
m.load = function(f, h) {
|
|
925
931
|
const b = document.createElement("script");
|
|
926
|
-
b.id = "analytics-script", b.type = "text/javascript", b.async = !0, b.src = "https://cdn.segment.com/analytics.js/v1/" +
|
|
932
|
+
b.id = "analytics-script", b.type = "text/javascript", b.async = !0, b.src = "https://cdn.segment.com/analytics.js/v1/" + f + "/analytics.min.js", b.onerror = () => window.dispatchEvent(new Event("analytics-error"));
|
|
927
933
|
const C = document.getElementsByTagName("script")[0];
|
|
928
|
-
C.parentNode.insertBefore(b, C),
|
|
929
|
-
},
|
|
934
|
+
C.parentNode.insertBefore(b, C), m._loadOptions = h;
|
|
935
|
+
}, m._writeKey = t, m.SNIPPET_VERSION = "4.16.1", m.load(t), m.page(), m.ready(() => window.dispatchEvent(new Event("analytics-ready")));
|
|
930
936
|
}
|
|
931
937
|
}
|
|
932
938
|
async function p() {
|
|
933
|
-
return s !== null || (s = new Promise((
|
|
939
|
+
return s !== null || (s = new Promise((m, f) => {
|
|
934
940
|
if (!a())
|
|
935
|
-
return l("Analytics is disabled."),
|
|
941
|
+
return l("Analytics is disabled."), m();
|
|
936
942
|
if (window.addEventListener("analytics-ready", () => {
|
|
937
|
-
l("Analytics script loaded successfully."),
|
|
943
|
+
l("Analytics script loaded successfully."), m();
|
|
938
944
|
}), window.addEventListener("analytics-error", () => {
|
|
939
|
-
l("Analytics script failed to load. Consider disabling your AdBlocker.", null, "error"),
|
|
945
|
+
l("Analytics script failed to load. Consider disabling your AdBlocker.", null, "error"), f();
|
|
940
946
|
}), l("Loading Analytics script."), window.analytics)
|
|
941
|
-
return
|
|
947
|
+
return m();
|
|
942
948
|
d();
|
|
943
949
|
})), s;
|
|
944
950
|
}
|
|
945
|
-
async function u(
|
|
951
|
+
async function u(m, f) {
|
|
946
952
|
try {
|
|
947
|
-
if (await this.analyticsScriptReady(), l("[identify]", [
|
|
948
|
-
return window.analytics.identify(
|
|
953
|
+
if (await this.analyticsScriptReady(), l("[identify]", [m, f]), a())
|
|
954
|
+
return window.analytics.identify(m, f);
|
|
949
955
|
} catch {
|
|
950
|
-
l("[identify]", [
|
|
956
|
+
l("[identify]", [m, f], "error");
|
|
951
957
|
}
|
|
952
958
|
}
|
|
953
|
-
async function i(
|
|
959
|
+
async function i(m, f, h) {
|
|
954
960
|
typeof h != "object" && (h = {});
|
|
955
961
|
try {
|
|
956
|
-
if (await this.analyticsScriptReady(), l("[page]", [
|
|
957
|
-
return window.analytics.page(
|
|
958
|
-
category:
|
|
962
|
+
if (await this.analyticsScriptReady(), l("[page]", [m, f, h]), a())
|
|
963
|
+
return window.analytics.page(m, {
|
|
964
|
+
category: f,
|
|
959
965
|
...h
|
|
960
966
|
});
|
|
961
967
|
} catch {
|
|
962
|
-
l("[page]", [
|
|
968
|
+
l("[page]", [m, f, h], "error");
|
|
963
969
|
}
|
|
964
970
|
}
|
|
965
|
-
async function o(
|
|
971
|
+
async function o(m, f, h) {
|
|
966
972
|
typeof h != "object" && (h = {});
|
|
967
973
|
try {
|
|
968
|
-
if (await this.analyticsScriptReady(), l("[track]", [
|
|
969
|
-
return window.analytics.track(
|
|
970
|
-
category:
|
|
974
|
+
if (await this.analyticsScriptReady(), l("[track]", [m, f, h]), a())
|
|
975
|
+
return window.analytics.track(m, {
|
|
976
|
+
category: f,
|
|
971
977
|
...h
|
|
972
978
|
});
|
|
973
979
|
} catch {
|
|
974
|
-
l("[track]", [
|
|
980
|
+
l("[track]", [m, f, h], "error");
|
|
975
981
|
}
|
|
976
982
|
}
|
|
977
|
-
function l(
|
|
978
|
-
|
|
983
|
+
function l(m, f = [], h = "info") {
|
|
984
|
+
f || (f = []), n && E[h](`%cⒶ%c ::SDK Analytics:: ${m}`, "color: green;", "color: inherit;", ...f);
|
|
979
985
|
}
|
|
980
|
-
return
|
|
986
|
+
return M = {
|
|
981
987
|
analyticsScriptReady: p,
|
|
982
988
|
isEnabled: a,
|
|
983
989
|
identify: u,
|
|
984
990
|
page: i,
|
|
985
991
|
track: o,
|
|
986
992
|
consoleMessage: l
|
|
987
|
-
},
|
|
993
|
+
}, M;
|
|
988
994
|
}
|
|
989
|
-
g.destroy = () =>
|
|
990
|
-
function
|
|
995
|
+
g.destroy = () => M = null;
|
|
996
|
+
function Wt() {
|
|
991
997
|
const e = "Hubler Application";
|
|
992
998
|
function t(i) {
|
|
993
999
|
var l;
|
|
@@ -1036,7 +1042,7 @@ function Qt() {
|
|
|
1036
1042
|
applicationFormFailed: u
|
|
1037
1043
|
};
|
|
1038
1044
|
}
|
|
1039
|
-
function
|
|
1045
|
+
function Zt() {
|
|
1040
1046
|
const e = "Profile";
|
|
1041
1047
|
function t(c, A) {
|
|
1042
1048
|
var S;
|
|
@@ -1078,10 +1084,10 @@ function Ht() {
|
|
|
1078
1084
|
async function l(c) {
|
|
1079
1085
|
return g().track(c.name, e, t(c.properties, !0));
|
|
1080
1086
|
}
|
|
1081
|
-
async function
|
|
1087
|
+
async function m(c) {
|
|
1082
1088
|
return g().track(c.name, e, t(c.properties, !0));
|
|
1083
1089
|
}
|
|
1084
|
-
async function
|
|
1090
|
+
async function f(c) {
|
|
1085
1091
|
return g().track(c.name, e, t(c.properties, !0));
|
|
1086
1092
|
}
|
|
1087
1093
|
async function h(c) {
|
|
@@ -1104,8 +1110,8 @@ function Ht() {
|
|
|
1104
1110
|
profileDocumentAdded: i,
|
|
1105
1111
|
profileDocumentDownloaded: o,
|
|
1106
1112
|
profileDocumentRequested: l,
|
|
1107
|
-
profileRecruitmentAdded:
|
|
1108
|
-
profileRecruitmentRemoved:
|
|
1113
|
+
profileRecruitmentAdded: m,
|
|
1114
|
+
profileRecruitmentRemoved: f,
|
|
1109
1115
|
profileTabSelected: h,
|
|
1110
1116
|
profileViewed: b,
|
|
1111
1117
|
profileEmailSent: C
|
|
@@ -1113,10 +1119,10 @@ function Ht() {
|
|
|
1113
1119
|
}
|
|
1114
1120
|
const Q = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1115
1121
|
__proto__: null,
|
|
1116
|
-
useAnalyticsHublerApplication:
|
|
1117
|
-
useAnalyticsProfile:
|
|
1122
|
+
useAnalyticsHublerApplication: Wt,
|
|
1123
|
+
useAnalyticsProfile: Zt
|
|
1118
1124
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
1119
|
-
function
|
|
1125
|
+
function Yn() {
|
|
1120
1126
|
function e(r) {
|
|
1121
1127
|
return g().identify(r.id, {
|
|
1122
1128
|
email: r.email,
|
|
@@ -1138,25 +1144,25 @@ function Gn() {
|
|
|
1138
1144
|
identifyCandidate: e
|
|
1139
1145
|
};
|
|
1140
1146
|
}
|
|
1141
|
-
const
|
|
1147
|
+
const Xt = "AIzaSyDicyRD6rvVdnicp1tgV0ElazASNGbyyTs";
|
|
1142
1148
|
let ne = !1;
|
|
1143
1149
|
const re = () => new Promise((e) => {
|
|
1144
|
-
ne || window.google && window.google.maps ? e() : (window.addEventListener("gmap-ready", () => e()),
|
|
1145
|
-
}),
|
|
1150
|
+
ne || window.google && window.google.maps ? e() : (window.addEventListener("gmap-ready", () => e()), tn());
|
|
1151
|
+
}), Yt = (e, t) => re().then(() => en(e, t)), en = (e, t) => {
|
|
1146
1152
|
const r = new window.google.maps.places.Autocomplete(e, { componentRestrictions: { country: ["fr", "re", "yt", "gp", "mq"] } });
|
|
1147
1153
|
window.google.maps.event.addListener(r, "place_changed", () => {
|
|
1148
1154
|
const n = r.getPlace();
|
|
1149
1155
|
n.formatted_address && t && t(n.formatted_address, n);
|
|
1150
1156
|
});
|
|
1151
|
-
},
|
|
1157
|
+
}, tn = () => {
|
|
1152
1158
|
window.onGmapScriptReady = function() {
|
|
1153
1159
|
};
|
|
1154
1160
|
const e = document.createElement("script");
|
|
1155
|
-
e.src = "https://maps.googleapis.com/maps/api/js?key=" +
|
|
1156
|
-
},
|
|
1161
|
+
e.src = "https://maps.googleapis.com/maps/api/js?key=" + Xt + "&libraries=places&callback=onGmapScriptReady", e.async = !0, e.defer = !0, e.onload = () => window.dispatchEvent(new Event("gmap-ready")), document.body.appendChild(e), ne = !0;
|
|
1162
|
+
}, er = {
|
|
1157
1163
|
scriptReady: re,
|
|
1158
|
-
autocompleteInput:
|
|
1159
|
-
},
|
|
1164
|
+
autocompleteInput: Yt
|
|
1165
|
+
}, nn = {
|
|
1160
1166
|
common: {
|
|
1161
1167
|
the: "le",
|
|
1162
1168
|
from: "de"
|
|
@@ -1181,20 +1187,20 @@ const re = () => new Promise((e) => {
|
|
|
1181
1187
|
minute: "minute | minutes",
|
|
1182
1188
|
second: "seconde | secondes"
|
|
1183
1189
|
}
|
|
1184
|
-
},
|
|
1185
|
-
fr:
|
|
1190
|
+
}, rn = {
|
|
1191
|
+
fr: nn
|
|
1186
1192
|
};
|
|
1187
|
-
let
|
|
1188
|
-
const
|
|
1193
|
+
let z = null;
|
|
1194
|
+
const sn = () => z, tr = (e = {}) => {
|
|
1189
1195
|
let t = e.locale || "fr";
|
|
1190
|
-
const r = (u) => t = u, n = () => t, s = te(
|
|
1196
|
+
const r = (u) => t = u, n = () => t, s = te(rn, (e == null ? void 0 : e.messages) || {}), a = (u, i) => {
|
|
1191
1197
|
const o = $(s, `${t}.${u}`);
|
|
1192
|
-
return o ? i ?
|
|
1198
|
+
return o ? i ? on(o, i) : o : u;
|
|
1193
1199
|
}, d = (u, i) => {
|
|
1194
1200
|
const o = $(s, `${t}.${u}`);
|
|
1195
|
-
return o ?
|
|
1201
|
+
return o ? an(o, i) : u;
|
|
1196
1202
|
};
|
|
1197
|
-
return
|
|
1203
|
+
return z = {
|
|
1198
1204
|
t: a,
|
|
1199
1205
|
tNode: d,
|
|
1200
1206
|
setLocale: r,
|
|
@@ -1202,8 +1208,8 @@ const Xt = () => F, Jn = (e = {}) => {
|
|
|
1202
1208
|
install: (u) => {
|
|
1203
1209
|
u.config.globalProperties.$t = a, u.config.globalProperties.$tNode = d;
|
|
1204
1210
|
}
|
|
1205
|
-
},
|
|
1206
|
-
},
|
|
1211
|
+
}, z;
|
|
1212
|
+
}, on = (e, t) => e ? e.replace(/{{ ?([a-zA-Z_.]+) ?}}/g, (r, n) => $(t, n)) : null, an = (e, t) => {
|
|
1207
1213
|
if (!e)
|
|
1208
1214
|
return null;
|
|
1209
1215
|
const r = e.split(/(\{[{%]+[^{}]*[%}]+})/g).filter((n) => n !== "").map((n) => {
|
|
@@ -1225,8 +1231,8 @@ const Xt = () => F, Jn = (e = {}) => {
|
|
|
1225
1231
|
variable: (e, t) => x("span", { class: "node node--variable" }, $(t, e.trim())),
|
|
1226
1232
|
text: (e) => x("span", { class: "node node--text" }, e)
|
|
1227
1233
|
};
|
|
1228
|
-
function
|
|
1229
|
-
const { t } =
|
|
1234
|
+
function nr(e) {
|
|
1235
|
+
const { t } = sn(), r = {
|
|
1230
1236
|
justNow: t("timeAgo.just-now"),
|
|
1231
1237
|
past: (n) => n.match(/\d/) ? t("timeAgo.ago", [n]) : n,
|
|
1232
1238
|
future: (n) => n.match(/\d/) ? t("timeAgo.in", [n]) : n,
|
|
@@ -1244,7 +1250,7 @@ function Wn(e) {
|
|
|
1244
1250
|
messages: r
|
|
1245
1251
|
});
|
|
1246
1252
|
}
|
|
1247
|
-
function
|
|
1253
|
+
function cn() {
|
|
1248
1254
|
let e = null;
|
|
1249
1255
|
function t() {
|
|
1250
1256
|
return e;
|
|
@@ -1279,7 +1285,7 @@ function tn() {
|
|
|
1279
1285
|
hasAction: d
|
|
1280
1286
|
};
|
|
1281
1287
|
}
|
|
1282
|
-
function
|
|
1288
|
+
function un() {
|
|
1283
1289
|
async function e({ domain: n, event: s, ...a }) {
|
|
1284
1290
|
const d = "useAnalytics" + n.charAt(0).toUpperCase() + n.slice(1);
|
|
1285
1291
|
if (!t(d))
|
|
@@ -1301,9 +1307,9 @@ function nn() {
|
|
|
1301
1307
|
}
|
|
1302
1308
|
const V = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1303
1309
|
__proto__: null,
|
|
1304
|
-
useAnalyticsQSController:
|
|
1310
|
+
useAnalyticsQSController: un
|
|
1305
1311
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
1306
|
-
function
|
|
1312
|
+
function ln(e) {
|
|
1307
1313
|
if (!e.hasAction())
|
|
1308
1314
|
throw new Error("No action found in router");
|
|
1309
1315
|
function t() {
|
|
@@ -1324,7 +1330,7 @@ function rn(e) {
|
|
|
1324
1330
|
dispatch: t
|
|
1325
1331
|
};
|
|
1326
1332
|
}
|
|
1327
|
-
function
|
|
1333
|
+
function rr() {
|
|
1328
1334
|
let e = !1;
|
|
1329
1335
|
function t(s, a, d) {
|
|
1330
1336
|
n(), d();
|
|
@@ -1335,10 +1341,10 @@ function Zn() {
|
|
|
1335
1341
|
d();
|
|
1336
1342
|
}
|
|
1337
1343
|
function n() {
|
|
1338
|
-
const s =
|
|
1344
|
+
const s = cn();
|
|
1339
1345
|
if (!s.hasAction())
|
|
1340
1346
|
return;
|
|
1341
|
-
|
|
1347
|
+
ln(s).dispatch();
|
|
1342
1348
|
}
|
|
1343
1349
|
return {
|
|
1344
1350
|
vueRouterBeforeEach: t,
|
|
@@ -1346,36 +1352,36 @@ function Zn() {
|
|
|
1346
1352
|
handle: n
|
|
1347
1353
|
};
|
|
1348
1354
|
}
|
|
1349
|
-
const
|
|
1355
|
+
const sr = () => ({ getAssetUrl: (t) => `${k.getBaseAssetsUrl()}${t}` }), R = () => k.getMainAppHost(), dn = () => `${R()}/rh/establishments`, mn = (e) => `${R()}/rh/establishment/${e}`, fn = (e) => e && typeof e == "object" && e.urls && e.urls.display ? e.urls.display : "", pn = (e) => `${R()}/candidate-invite/establishment/${e}`, hn = (e, t = !1) => t ? `${R()}/cvbank/${e}/` : `${R()}/rh/establishment/${e}/cvtheque/`, yn = (e, t) => `${R()}/user-profile/establishment/${e}/user/${t}`, gn = (e, t) => `${R()}/rh/establishment/${e}/recruitment/${t}`, bn = (e, t) => `${R()}/rh/establishment/${e}/recruitment/${t}/kanban`, wn = (e) => `${R()}/rh/establishment/${e}/career-configuration`, Rn = (e, t = null) => t ? `${R()}/career-website/${e}/${t}` : `${R()}/career-website/${e}`, An = (e, t) => `${R()}/career-website-preview/${e}/${t}`, Pn = (e, t = null) => {
|
|
1350
1356
|
const r = R().replace("://", `://${e}.`);
|
|
1351
1357
|
return t ? `${r}?_version=${t}` : `${r}`;
|
|
1352
1358
|
};
|
|
1353
|
-
function
|
|
1359
|
+
function ir() {
|
|
1354
1360
|
return {
|
|
1355
1361
|
root: R,
|
|
1356
|
-
establishments:
|
|
1357
|
-
establishment:
|
|
1358
|
-
img:
|
|
1359
|
-
candidateInvite:
|
|
1360
|
-
cvtheque:
|
|
1361
|
-
userProfile:
|
|
1362
|
-
recruitment:
|
|
1363
|
-
recruitmentKanban:
|
|
1364
|
-
career:
|
|
1365
|
-
careerConfig:
|
|
1366
|
-
careerPreview:
|
|
1367
|
-
careerWebsite:
|
|
1362
|
+
establishments: dn,
|
|
1363
|
+
establishment: mn,
|
|
1364
|
+
img: fn,
|
|
1365
|
+
candidateInvite: pn,
|
|
1366
|
+
cvtheque: hn,
|
|
1367
|
+
userProfile: yn,
|
|
1368
|
+
recruitment: gn,
|
|
1369
|
+
recruitmentKanban: bn,
|
|
1370
|
+
career: wn,
|
|
1371
|
+
careerConfig: Rn,
|
|
1372
|
+
careerPreview: An,
|
|
1373
|
+
careerWebsite: Pn
|
|
1368
1374
|
};
|
|
1369
1375
|
}
|
|
1370
1376
|
const G = /* @__PURE__ */ new Set();
|
|
1371
|
-
let
|
|
1377
|
+
let L, U = {
|
|
1372
1378
|
ignore: (e) => e.startsWith("Ui")
|
|
1373
1379
|
};
|
|
1374
1380
|
const j = (e) => {
|
|
1375
1381
|
if (e != null && e.classList) {
|
|
1376
1382
|
e._cssChecked = !0;
|
|
1377
1383
|
for (const t of e.classList)
|
|
1378
|
-
|
|
1384
|
+
L.has(t) || G.has(t) || U.ignore(t) || (G.add(t), E.error(`Undefined CSS class: ${t}`));
|
|
1379
1385
|
}
|
|
1380
1386
|
}, se = (e) => {
|
|
1381
1387
|
var t;
|
|
@@ -1386,12 +1392,12 @@ const j = (e) => {
|
|
|
1386
1392
|
const n = (t = r.selectorText) == null ? void 0 : t.match(/\.[\w-]+/g);
|
|
1387
1393
|
if (n)
|
|
1388
1394
|
for (const s of n)
|
|
1389
|
-
|
|
1395
|
+
L.add(s.substr(1));
|
|
1390
1396
|
}
|
|
1391
|
-
},
|
|
1392
|
-
if (
|
|
1393
|
-
return
|
|
1394
|
-
|
|
1397
|
+
}, or = (e = {}) => {
|
|
1398
|
+
if (L)
|
|
1399
|
+
return L;
|
|
1400
|
+
L = /* @__PURE__ */ new Set(), U = { ...U, ...e }, se(document.styleSheets), new MutationObserver((r) => {
|
|
1395
1401
|
for (const n of r)
|
|
1396
1402
|
if (n.type === "childList" && (n != null && n.addedNodes)) {
|
|
1397
1403
|
for (const s of n.addedNodes)
|
|
@@ -1407,56 +1413,56 @@ const j = (e) => {
|
|
|
1407
1413
|
childList: !0,
|
|
1408
1414
|
subtree: !0
|
|
1409
1415
|
});
|
|
1410
|
-
},
|
|
1416
|
+
}, ar = "0.2.22";
|
|
1411
1417
|
export {
|
|
1412
|
-
|
|
1413
|
-
|
|
1418
|
+
F as BaseLogger,
|
|
1419
|
+
er as Gmap,
|
|
1414
1420
|
k as SDKConfig,
|
|
1415
1421
|
E as SDKLogger,
|
|
1416
|
-
|
|
1417
|
-
|
|
1422
|
+
ar as VERSION,
|
|
1423
|
+
Jt as _clone,
|
|
1418
1424
|
$ as _get,
|
|
1419
1425
|
te as _merge,
|
|
1420
1426
|
q as _set,
|
|
1421
|
-
|
|
1422
|
-
|
|
1423
|
-
|
|
1424
|
-
|
|
1425
|
-
|
|
1426
|
-
|
|
1427
|
+
tr as createI18n,
|
|
1428
|
+
kn as useActivityRepository,
|
|
1429
|
+
Wt as useAnalyticsHublerApplication,
|
|
1430
|
+
Yn as useAnalyticsIdentify,
|
|
1431
|
+
Zt as useAnalyticsProfile,
|
|
1432
|
+
sr as useAssetUrls,
|
|
1427
1433
|
_ as useAuthentication,
|
|
1428
|
-
|
|
1429
|
-
|
|
1430
|
-
|
|
1431
|
-
|
|
1432
|
-
|
|
1433
|
-
|
|
1434
|
-
|
|
1435
|
-
|
|
1436
|
-
|
|
1437
|
-
|
|
1438
|
-
|
|
1439
|
-
|
|
1440
|
-
|
|
1441
|
-
|
|
1442
|
-
|
|
1434
|
+
Kt as useAuthorization,
|
|
1435
|
+
Xn as useAuthorizationStore,
|
|
1436
|
+
Zn as useCanAccessEstablishmentMiddleware,
|
|
1437
|
+
$n as useCandidateRepository,
|
|
1438
|
+
Mn as useCommentRepository,
|
|
1439
|
+
Ln as useContractTypeRepository,
|
|
1440
|
+
On as useCvbankRepository,
|
|
1441
|
+
Tn as useCvthequeRepository,
|
|
1442
|
+
Dn as useDiplomaRepository,
|
|
1443
|
+
_n as useDocumentRepository,
|
|
1444
|
+
ir as useDomainUrls,
|
|
1445
|
+
xn as useEmailHistoryRepository,
|
|
1446
|
+
Nn as useEmailRepository,
|
|
1447
|
+
jn as useEmailTemplateRepository,
|
|
1448
|
+
Fn as useEstablishmentCareerRepository,
|
|
1443
1449
|
Y as useEstablishmentRepository,
|
|
1444
|
-
|
|
1445
|
-
|
|
1446
|
-
|
|
1447
|
-
|
|
1448
|
-
|
|
1449
|
-
|
|
1450
|
+
zn as useFeatureFlagRepository,
|
|
1451
|
+
sn as useI18n,
|
|
1452
|
+
Un as useJobRepository,
|
|
1453
|
+
Bn as useLabelRepository,
|
|
1454
|
+
nr as useLocaleTimeAgo,
|
|
1455
|
+
qn as useOfferRepository,
|
|
1450
1456
|
y as usePrivateRequest,
|
|
1451
|
-
|
|
1452
|
-
|
|
1453
|
-
|
|
1454
|
-
|
|
1455
|
-
|
|
1457
|
+
rr as useQSAction,
|
|
1458
|
+
Qn as useRecruiterRepository,
|
|
1459
|
+
Hn as useRecruitmentRepository,
|
|
1460
|
+
Vn as useRegisterRepository,
|
|
1461
|
+
Gn as useRegistrationRepository,
|
|
1456
1462
|
w as useRequest,
|
|
1457
|
-
|
|
1458
|
-
|
|
1459
|
-
|
|
1460
|
-
|
|
1463
|
+
Kn as useSpecialityRepository,
|
|
1464
|
+
Jn as useTagRepository,
|
|
1465
|
+
Wn as useTalentRepository,
|
|
1466
|
+
or as useUndefinedCssClasses,
|
|
1461
1467
|
ee as useUserRepository
|
|
1462
1468
|
};
|