@hublo/mstaff-client-sdk 0.2.28 → 0.2.30
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 +226 -225
- package/package.json +1 -1
package/dist/core.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var de=Object.defineProperty;var me=(e,t,s)=>t in e?de(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s;var I=(e,t,s)=>(me(e,typeof t!="symbol"?t+"":t,s),s);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const x=require("vue"),fe=require("axios"),pe=require("pinia"),he=require("@vueuse/core");var V={expireTimes:"1d",path:"; path=/",domain:"",secure:!1,sameSite:"; SameSite=Lax"},ye=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,f,d){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=/")+(f==null?this.current_default_config.secure?"; Secure":"":f?"; Secure":"")+(d==null?this.current_default_config.sameSite?"; SameSute="+this.current_default_config.sameSite:"":d?"; SameSite="+d:""),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}(),B=null;function ge(){B==null&&(B=new ye);var e=x.reactive(B);return{cookies:e}}function be(){const{cookies:e}=ge();function t(a){return e.get(a)}function s(a,f){return e.set(a,f)}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=be()){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,p){const y=o(m);if(!y.exp)throw new Error("Invalid JWT token.");t.setItem(e.auth,m),t.setItem(e.refresh,p),t.setItem(e.expiration,((y.exp-60)*1e3).toString())}function f(){t.removeItem(e.auth),t.removeItem(e.refresh),t.removeItem(e.expiration)}function d(){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:f,isAuthenticated:d,hasAuth:u,isExpired:i,getStorage:l},O}function Re(e){let t={"Content-Type":"application/json"};e&&s(e);function s(y,b=!1){return t=b?y:{...t,...y},this}function n(){return t}function r(y,b){return t[y]=b,this}function a(y){return t[y]}function f(y){return t[y]&&delete t[y],this}function d(y){return r("Authorization","Bearer "+y),this}function u(){return f("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 p(){return a("Content-Type")==="application/json"}return{setHeaders:s,getHeaders:n,setHeader:r,getHeader:a,removeHeader:f,setAuthorization:d,removeAuthorization:u,hasAuthorization:i,setFormData:o,setJson:l,isFormData:m,isJson:p}}function we(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 Ae(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():f(i)&&(i=d(i),t.setFormData()),t.isFormData()&&e.getMethod()==="put"&&(e.setMethod("post"),i.append("_method","PUT")),n=i,this}function a(){return n}function f(i){for(const o in i){const l=i[o];if(u(l))return!0;if(typeof l=="object"&&f(l))return!0}return!1}function d(i,o=null,l=0){const m=!o;m&&(o=new FormData);for(const p in i){const y=i[p];u(y)?(i[p]="<<FileIndex:"+l+">>",o.append(l,y,y.name),l++):typeof y=="object"&&(i[p]=d(i[p],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",3);I(this,"logger");I(this,"prefix");this.logger=t.logger||console,this.prefix=t.prefix||""}setLevel(t){this.level=t}debug(...t){this.level<=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 j=v;const D=(e,t,s)=>{t?e(t,...s):e(...s)},E=new j({prefix:"[SDK]"});let X=null,Y=null,ee=null,te="/",ne=null;const Pe=()=>X,ve=e=>{if(E.info("[Config] Environment:",e),!e)throw new Error("Invalid environment.");X=e},Ie=()=>Y,Ee=e=>{if(E.info("[Config] API Host:",e),!e)throw new Error("Invalid API host.");Y=e},Se=()=>ne,Ce=e=>{ne=e},ke=()=>ee,$e=e=>{if(E.info("[Config] Main App Host:",e),!e)throw new Error("Invalid main app host.");ee=e},Le=e=>{E.info("[Config] Base Assets Urls:",e),te=e},Me=()=>te,C={getEnvironment:Pe,getApiHost:Ie,getErrorHandler:Se,setEnvironment:ve,setApiHost:Ee,setErrorHandler:Ce,getMainAppHost:ke,setMainAppHost:$e,setBaseAssetsUrl:Le,getBaseAssetsUrl:Me};function Te(e){const t=C.getApiHost().replace(/\/$/g,"");let s=null,n={},r={};e&&d(e);function a(){return t+u()+p()}function f(){return u(!0,!0)}function d(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 p(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 y(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:d,getPath:u,getUri:a,getMockUri:f,setQueryParams:i,setQueryParam:o,removeQueryParam:l,hasQuery:m,getQueryString:p,setRouteParams:y,setRouteParam:b,removeRouteParam:$}}function Oe(e){let t=[];function s(){return t=i(arguments),f(),this}function n(){return t.length>0}function r(o){return t.includes(o.trim())?this:(t.push(o.trim()),f(),this)}function a(o){const l=t.indexOf(o.trim());return l===-1?this:(t.splice(l,1),f(),this)}function f(){t.length?e.setQueryParam("groups",u(t)):e.removeQueryParam("groups")}function d(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=d(o[0]):Array.isArray(o[0])&&(l=o[0]):l=Array.from(o),l}return{setGroups:s,hasGroups:n,addGroup:r,removeGroup:a}}function De(e){let t=!1,s=!1,n=1,r=10;function a(){return t=!0,f(),this}function f(){s=!0;const p=m(arguments);return i(p.page||1,!1),o(p.perPage||r,!1),l(),this}function d(){return s=!1,l(),this}function u(){return s}function i(p,y=!0){return t=!0,s=!0,n=p,y&&l(),this}function o(p,y=!0){return t=!0,s=!0,r=p,y&&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(p){if(p.length===1&&typeof p[0]=="object")return p[0];const y={};return p.length>=1&&(y.page=p[0]),p.length>=2&&(y.perPage=p[1]),y}return{isList:a,paginate:f,disablePagination:d,hasPagination:u,setPage:i,setPerPage:o}}function _e(e){let t=!1,s="id",n="ASC";function r(){t=!0;const o=i(arguments);return o.orderBy&&f(o.orderBy,!1),o.orderDir&&d(o.orderDir,!1),u(),this}function a(){return t}function f(o,l=!0){return t=!0,s=o,l&&u(),this}function d(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:f,setOrderDir:d}}function xe(){let e=!1;function t(){return e=!0,this}function s(){return e}return{setSilent:t,isSilent:s}}function Ne(){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 je(e){function t(){return e}function s(){return e.data}function n(){return e.data}return{getResponse:t,getData:s,getPayload:n}}function Be(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 f(){return r()?e.data["hydra:totalItems"]:null}function d(){return r()?e.data["hydra:view"]&&e.data["hydra:view"]["hydra:last"]:!1}function u(){return!r()||!d()?null:parseInt(e.data["hydra:view"]["@id"].match(/page=(\d+)/)[1])}function i(){return!r()||!d()?null:parseInt(e.data["hydra:view"]["hydra:last"].match(/page=(\d+)/)[1])}return{getResponse:t,getData:s,getPayload:n,isCollection:r,getCollection:a,getTotal:f,hasPagination:d,getPage:u,getPages:i}}function Ue(e,t,s,n,r,a){async function f(){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 p=await fe[u](...m);return d(p)}catch(p){throw Be(p,r.isSilent())}}function d(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 je(u)}return{send:f}}function R(e,t="get",s=null){const n=Re(),r=Te(e),a=we(t),f=Ae(a,n,s),d=Oe(r),u=De(r),i=_e(r),o=xe(),l=Ne(),m=Ue(n,r,a,f,o,l);return{...n,...r,...a,...f,...d,...u,...i,...o,...l,...m}}function h(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)=>h("/v2/activity/candidate/:candidateId/establishment/:establishmentId").setRouteParams({candidateId:e,establishmentId:t}),ze=()=>({listByCandidateAndEstablishment:qe}),Qe=(e,t,s)=>h("/candidate/:candidateId/share/establishment/:establishmentId").setMethod("post").setRouteParams({candidateId:e,establishmentId:t}).setPayload(s),Ge=(e,t)=>h("/candidate/:candidateId/archive/establishment/:establishmentId").setRouteParams({candidateId:e,establishmentId:t}),He=(e,t)=>h("/candidate/:candidateId/archive/establishment/:establishmentId").setMethod("post").setRouteParams({candidateId:e,establishmentId:t}),Ve=(e,t)=>h("/candidate/:candidateId/archive/establishment/:establishmentId").setMethod("delete").setRouteParams({candidateId:e,establishmentId:t}),Ke=e=>h("/v2/candidates/lookup").setQueryParam("email",e),Je=(e,t)=>h("/v2/candidates").setMethod("post").setQueryParam("establishment-id",e).setFormData().setPayload(t),We=(e,t,s)=>h("/v2/candidates/:candidateId").setQueryParam("establishment-id",t).setRouteParams({candidateId:e}).setMethod("post").setFormData().setPayload(s),Ze=e=>h("/candidate/register/close/:registrationToken").setMethod("post").setRouteParams({registrationToken:e}),Xe=e=>h("/candidate/register/open").setMethod("post").setQueryParam("groups","register:token").setPayload(e),Ye=()=>({share:Qe,isArchived:Ge,archive:He,unarchive:Ve,lookupCandidate:Ke,createCandidate:Je,updateCandidate:We,closeIncompleteRegistration:Ze,openNewRegistration:Xe}),et=(e,t)=>h("/comment/establishment/:establishmentId/candidate/:userId").setRouteParams({establishmentId:e,userId:t}),tt=(e,t,s)=>h("/comment/establishment/:establishmentId/candidate/:userId").setRouteParams({establishmentId:e,userId:t}).setMethod("post").setPayload(s),nt=(e,t)=>h("/comment/:commentId").setRouteParams({commentId:e}).setMethod("put").setPayload(t),st=e=>h("/comment/:commentId").setRouteParams({commentId:e}).setMethod("delete"),rt=()=>({getForEstablishmentCandidate:et,postForEstablishmentCandidate:tt,update:nt,remove:st}),it=()=>R("contractType").isList().addGroup("Term:id").addGroup("Term:name"),ot=()=>({list:it}),at=e=>h("/v2/talents").isList().setQueryParam("establishment-id",e),ct=()=>({list:at}),ut=(e,t,s)=>h("/cvtheque/establishment/:establishmentId/candidate/:candidateId/label/synchronize").setRouteParams({establishmentId:e,candidateId:t}).setMethod("post").setPayload(s),lt=()=>({syncCandidateLabels:ut}),dt=()=>R("diploma").isList().addGroup("Term:id").addGroup("Term:name"),mt=()=>({list:dt}),ft=e=>h("document/candidate/:candidateId").setRouteParams({candidateId:e}).isList().disablePagination(),pt=(e,t)=>h("document/candidate/:candidateId/establishment/:establishmentId/recruiter").setRouteParams({candidateId:e,establishmentId:t}).isList().disablePagination(),ht=(e,t)=>h("document/candidate/:candidateId/establishment/:establishmentId/candidate").setRouteParams({candidateId:e,establishmentId:t}).isList().disablePagination(),yt=e=>h("document/recruiter").setMethod("post").setPayload(e),gt=e=>h("document/:documentId").setRouteParams({documentId:e}).setMethod("delete"),bt=()=>({listByCandidate:ft,listByCandidateAndEstablishmentFromRecruiter:pt,listByCandidateAndEstablishmentFromCandidate:ht,addFromRecruiter:yt,remove:gt}),Rt=(e,t)=>h("/v2/establishments/:establishmentId/email-history").setRouteParams({establishmentId:t}).setQueryParam("receiverId",e).isList().disablePagination(),wt=()=>({listByCandidateAndEstablishment:Rt}),At=(e,t)=>h("/email/candidate/:candidateId").setMethod("post").setRouteParams({candidateId:e}).setPayload(t),Pt=(e,t)=>h("/v2/emails/send").setMethod("post").setFormData().setPayload({recipientIds:e,...t}),vt=()=>({sendToCandidate:At,sendToRecipients:Pt}),It=(e,t=!0)=>{const s=h("/v2/establishments/:establishmentId/email-templates").setRouteParams({establishmentId:e}).isList().disablePagination();return t&&s.setQueryParam("global",!0),s},Et=()=>h("/v2/self/email-templates").isList().disablePagination(),St=()=>({listByEstablishment:It,listSelf:Et}),Ct=(e,t)=>h("establishment-career/:establishmentId/:versionId").setRouteParams({establishmentId:e,versionId:t}),kt=(e,t="published")=>h("establishment-career/:establishmentId/state/:state").setRouteParams({establishmentId:e,state:t}),$t=(e,t,s=null)=>{const n=s!==null?h("establishment-career/:establishmentId/:versionId").setRouteParams({establishmentId:e,versionId:s}):h("establishment-career/:establishmentId").setRouteParams({establishmentId:e});return n.setMethod("post").setPayload(t),n},Lt=(e,t)=>h("establishment-career/:establishmentId/logo-banner").setMethod("post").setRouteParams({establishmentId:e}).setPayload(t),Mt=(e,t,s)=>h("establishment-career/:establishmentId/publish/:versionId").setMethod("post").setRouteParams({establishmentId:e,versionId:t}).setPayload(s),Tt=()=>({readById:Ct,readByState:kt,upsert:$t,uploadLogoAndBanner:Lt,publish:Mt}),Ot=e=>R("establishment/:establishmentId").setRouteParams({establishmentId:e}),Dt=e=>h("establishment/:establishmentId/authorizations").setRouteParams({establishmentId:e}),Q=()=>({read:Ot,authorizations:Dt}),_t=e=>R("feature-flag/maintenance").setMethod("post").setPayload(e),xt=(e,t)=>R("feature-flag/establishment").setMethod("post").setPayload({establishment:e,flagName:t}),Nt=()=>({maintenanceModeEnabled:_t,forEstablishment:xt}),jt=()=>R("job").isList().addGroup("Term:id").addGroup("Term:name"),Bt=(e,t=!0)=>h("job/establishment/:establishmentId").isList().setRouteParams({establishmentId:e}).setQueryParam("all",t).addGroup("Term:id").addGroup("Term:name"),Ft=()=>({list:jt,listByEstablishment:Bt}),Ut=e=>h("/label/establishment/:establishmentId").isList().setRouteParams({establishmentId:e}),qt=(e,t)=>h("/label/establishment/:establishmentId").setMethod("post").setRouteParams({establishmentId:e}).setPayload(t),zt=(e,t)=>h("/label/:labelId").setMethod("put").setRouteParams({labelId:e}).setPayload(t),Qt=e=>h("/label/:labelId").setMethod("delete").setRouteParams({labelId:e}),Gt=(e,t,s)=>h("/label/establishment/:establishmentId/candidate/:candidateId/synchronize").setMethod("post").setPayload(s).setRouteParams({establishmentId:e,candidateId:t}),Ht=()=>({listByEstablishment:Ut,addToEstablishment:qt,update:zt,remove:Qt,syncForCandidate:Gt}),Vt=e=>R("offer/:offerId").setRouteParams({offerId:e}),Kt=()=>({read:Vt}),Jt=(e,t=!1)=>{const s=h("/recruiter/establishment/:establishmentId").isList().setRouteParams({establishmentId:e});return t&&s.setQueryParam("exclude-me",1),s},Wt=()=>({listByEstablishment:Jt}),Zt=e=>h("/recruitment/establishment/:establishmentId/mine").isList().setRouteParams({establishmentId:e}),Xt=(e,t)=>h("/recruitment/mine/establishment/:establishmentId/has-not/candidate/:candidateId").isList().setRouteParams({establishmentId:e,candidateId:t}),Yt=(e,t)=>h("/recruitment/mine/establishment/:establishmentId/has/candidate/:candidateId").isList().setRouteParams({establishmentId:e,candidateId:t}),en=(e,t)=>h("/recruitment/establishment/:establishmentId/has/candidate/:candidateId").isList().setRouteParams({establishmentId:e,candidateId:t}),tn=(e,t)=>h("/recruitment/:recruitmentId/candidate").setMethod("put").setRouteParams({recruitmentId:e}).setPayload(t),nn=(e,t)=>h("/recruitment/:recruitmentId/candidate/:candidateId").setMethod("delete").setRouteParams({recruitmentId:e,candidateId:t}),sn=()=>({mineByEstablishment:Zt,mineWithoutCandidate:Xt,mineWithCandidate:Yt,withCandidate:en,addCandidates:tn,removeCandidate:nn}),rn=(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},on=(e,t)=>R("candidate/register/update/:token").setMethod("post").setRouteParams({token:e}).setPayload(t),an=e=>R("candidate/register/read/:token").setRouteParams({token:e}),cn=e=>R("candidate/register/close/:token").setMethod("post").setRouteParams({token:e}),un=()=>({open:rn,update:on,read:an,close:cn}),ln=(e,t)=>h("/v2/registrations/lookup").setQueryParam("candidate-id",e).setQueryParam("establishment-id",t),dn=()=>({lookupEstablishment:ln}),mn=()=>R("speciality").isList().addGroup("Term:id").addGroup("Term:name"),fn=(e,t=!0)=>h("speciality/establishment/:establishmentId").isList().setRouteParams({establishmentId:e}).setQueryParam("all",t).addGroup("Term:id").addGroup("Term:name"),pn=()=>({list:mn,listByEstablishment:fn}),hn=e=>h("/tag/public/establishment/:establishmentId").isList().setRouteParams({establishmentId:e}),yn=()=>({listByEstablishment:hn}),gn=(e,t)=>h("/v2/talents/lookup").setQueryParam("candidate-id",e).setQueryParam("establishment-id",t),bn=e=>h("/v2/talents/index").setMethod("post").setPayload(e),Rn=()=>({lookupTalent:gn,addCandidateToTalentPool:bn}),wn=e=>R("user/email/isset/:email").setRouteParams({email:e}),An=()=>h("user/self").addGroup("user:self"),Pn=e=>h("/user/:uuid").setRouteParams({uuid:e}),vn=e=>R("/user/:uuid").setRouteParams({uuid:e}),In=e=>h("/user/:id/uuid").setRouteParams({id:e}),G=()=>({emailExists:wn,self:An,byUuidPrivate:Pn,byUuid:vn,fetchUuid:In});let _;function se(){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 G().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 Q().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 En(e,...t){if(!T().isAuthenticated())throw"ERR_NOT_AUTHENTICATED";const n=se();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 Sn=pe.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 G().self().send();this.user=t.getData()}},async fetchPermission(e,t){if(!this.establishments[e]||t){const s=await Q().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)}}}),Cn=()=>typeof window<"u"&&typeof window.document<"u",N=()=>typeof process<"u"&&process.versions!=null&&process.versions.node!=null,k=(e,t,s)=>{const n=typeof t=="string"?t.split("."):[t];let r=e;const a=d=>d!=null,f=d=>typeof d=="object";for(const[d,u]of n.entries()){if(!a(r))return s;if(d===n.length-1)return a(r[u])?r[u]:s;if(!f(r[u]))return s;r=r[u]}return s},U=(e,t,s)=>{const n=typeof t=="string"?t.split("."):[t],r=d=>typeof d=="number"||/^\d$/g.test(d),a=d=>parseInt(d,10);let f=e;return n.forEach((d,u)=>{if(u===n.length-1)f[d]=s;else{const i=r(n[u+1])?[]:{};d=r(d)?a(d):d,f[d]=f[d]??i,f=f[d]}}),e},re=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]=re(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 f(){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(p){return function(){if(window.analytics.initialized)return window.analytics[p].apply(window.analytics,arguments);const y=Array.prototype.slice.call(arguments);return y.unshift(p),m.push(y),m}};for(let p=0;p<m.methods.length;p++){const y=m.methods[p];m[y]=m.factory(y)}m.load=function(p,y){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/"+p+"/analytics.min.js",b.onerror=()=>window.dispatchEvent(new Event("analytics-error"));const $=document.getElementsByTagName("script")[0];$.parentNode.insertBefore(b,$),m._loadOptions=y},m._writeKey=t,m.SNIPPET_VERSION="4.16.1",m.load(t),m.page(),m.ready(()=>window.dispatchEvent(new Event("analytics-ready")))}}async function d(){return r!==null||(r=new Promise((m,p)=>{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"),p()}),l("Loading Analytics script."),window.analytics)return m();f()})),r}async function u(m,p){if(!N())try{if(await this.analyticsScriptReady(),l("[identify]",[m,p]),a())return window.analytics.identify(m,p)}catch{l("[identify]",[m,p],"error")}}async function i(m,p,y){if(!N()){typeof y!="object"&&(y={});try{if(await this.analyticsScriptReady(),l("[page]",[m,p,y]),a())return window.analytics.page(m,{category:p,...y})}catch(b){console.log(b),l("[page]",[m,p,y],"error")}}}async function o(m,p,y){if(!N()){typeof y!="object"&&(y={});try{if(await this.analyticsScriptReady(),l("[track]",[m,p,y]),a())return window.analytics.track(m,{category:p,...y})}catch{l("[track]",[m,p,y],"error")}}}function l(m,p=[],y="info"){p||(p=[]),n&&E[y](`::SDK Analytics:: ${m}`,...p)}return L={analyticsScriptReady:d,isEnabled:a,identify:u,page:i,track:o,consoleMessage:l},L}g.destroy=()=>L=null;function ie(){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 f(i){return g().page("Application Document Viewed",e,t(i))}async function d(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:f,applicationSuccessViewed:d,applicationFormFailed:u}}function oe(){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 f(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 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 p(c){return g().track(c.name,e,t(c.properties,!0))}async function y(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:f,profileCandidateAdded:d,profileCommentAdded:u,profileDocumentAdded:i,profileDocumentDownloaded:o,profileDocumentRequested:l,profileRecruitmentAdded:m,profileRecruitmentRemoved:p,profileTabSelected:y,profileViewed:b,profileEmailSent:$}}const K=Object.freeze(Object.defineProperty({__proto__:null,useAnalyticsHublerApplication:ie,useAnalyticsProfile:oe},Symbol.toStringTag,{value:"Module"}));function kn(){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 $n="AIzaSyDicyRD6rvVdnicp1tgV0ElazASNGbyyTs";let ae=!1;const ce=()=>new Promise(e=>{ae||window.google&&window.google.maps?e():(window.addEventListener("gmap-ready",()=>e()),Tn())}),Ln=(e,t)=>ce().then(()=>Mn(e,t)),Mn=(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)})},Tn=()=>{window.onGmapScriptReady=function(){};const e=document.createElement("script");e.src="https://maps.googleapis.com/maps/api/js?key="+$n+"&libraries=places&callback=onGmapScriptReady",e.async=!0,e.defer=!0,e.onload=()=>window.dispatchEvent(new Event("gmap-ready")),document.body.appendChild(e),ae=!0},On={scriptReady:ce,autocompleteInput:Ln},Dn={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"}},_n={fr:Dn};let q=null;const ue=()=>q,xn=(e={})=>{let t=e.locale||"fr";const s=u=>t=u,n=()=>t,r=H(_n,(e==null?void 0:e.messages)||{}),a=(u,i)=>{const o=k(r,`${t}.${u}`);return o?i?Nn(o,i):o:u},f=(u,i)=>{const o=k(r,`${t}.${u}`);return o?jn(o,i):u};return q={t:a,tNode:f,setLocale:s,getLocale:n,install:u=>{u.config.globalProperties.$t=a,u.config.globalProperties.$tNode=f}},q},Nn=(e,t)=>e?e.replace(/{{ ?([a-zA-Z_.]+) ?}}/g,(s,n)=>k(t,n)):null,jn=(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()=>J.text(n);n=n.replace(/[{}%]/g,"").trim();const a=n.match(/^[a-zA-Z_.]+/)[0];n=n.replace(a,"").trim();const f={};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),f),[...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},f)),d=>J[r](a,t,d,f)});return{setup:(n,{slots:r})=>()=>s.map(a=>a(r))}},J={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 Bn(e){const{t}=ue(),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 he.useTimeAgo(e,{fullDateFormatter:n=>n.toLocaleDateString(),messages:s})}function Fn(){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 f(){return!!(e&&e.controller&&e.action)}function d(){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 d(),{getParams:t,getController:s,getControllerComposableName:n,getAction:r,getArguments:a,hasAction:f}}function Un(){async function e({domain:n,event:r,...a}){const f="useAnalytics"+n.charAt(0).toUpperCase()+n.slice(1);if(!t(f))throw new Error(`Domain ${n} is not defined`);const d=K[f]();if(!s(d,r))throw new Error(`Event ${r} is not defined in domain ${n}`);return d[r](a)}function t(n){return!!K[n]}function s(n,r){return!!n[r]}return{call:e}}const W=Object.freeze(Object.defineProperty({__proto__:null,useAnalyticsQSController:Un},Symbol.toStringTag,{value:"Module"}));function qn(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=W[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 W}function n(r){return e.getAction()in r}return{dispatch:t}}function zn(){let e=!1;function t(r,a,f){n(),f()}function s(r,a,f){if(!e)return e=!0,t(r,a,f);f()}function n(){const r=Fn();if(!r.hasAction())return;qn(r).dispatch()}return{vueRouterBeforeEach:t,vueRouterBeforeFirst:s,handle:n}}const Qn=()=>({getAssetUrl:t=>`${C.getBaseAssetsUrl()}${t}`}),w=()=>C.getMainAppHost(),Gn=()=>`${w()}/rh/establishments`,Hn=e=>`${w()}/rh/establishment/${e}`,Vn=e=>e&&typeof e=="object"&&e.urls&&e.urls.display?e.urls.display:"",Kn=e=>`${w()}/candidate-invite/establishment/${e}`,Jn=(e,t=!1)=>t?`${w()}/cvbank/${e}/`:`${w()}/rh/establishment/${e}/cvtheque/`,Wn=(e,t)=>`${w()}/user-profile/establishment/${e}/user/${t}`,Zn=(e,t)=>`${w()}/rh/establishment/${e}/recruitment/${t}`,Xn=(e,t)=>`${w()}/rh/establishment/${e}/recruitment/${t}/kanban`,Yn=e=>`${w()}/rh/establishment/${e}/career-configuration`,es=(e,t=null)=>t?`${w()}/career-website/${e}/${t}`:`${w()}/career-website/${e}`,ts=(e,t)=>`${w()}/career-website-preview/${e}/${t}`,ns=(e,t=null)=>{const s=w().replace("://",`://${e}.`);return t?`${s}?_version=${t}`:`${s}`};function ss(){return{root:w,establishments:Gn,establishment:Hn,img:Vn,candidateInvite:Kn,cvtheque:Jn,userProfile:Wn,recruitment:Zn,recruitmentKanban:Xn,career:Yn,careerConfig:es,careerPreview:ts,careerWebsite:ns}}const Z=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)||Z.has(t)||z.ignore(t)||(Z.add(t),E.error(`Undefined CSS class: ${t}`))}},le=e=>{var t;for(const s of e)if(s!=null&&s.cssRules&&(s==null?void 0:s.cssRules.length)>0)le(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))}},rs=(e={})=>{if(M)return M;M=new Set,z={...z,...e},le(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})},is="0.2.27";exports.BaseLogger=j;exports.Gmap=On;exports.SDKConfig=C;exports.SDKLogger=E;exports.VERSION=is;exports._clone=re;exports._get=k;exports._merge=H;exports._set=U;exports.createI18n=xn;exports.inBrowser=Cn;exports.inNode=N;exports.useActivityRepository=ze;exports.useAnalyticsHublerApplication=ie;exports.useAnalyticsIdentify=kn;exports.useAnalyticsProfile=oe;exports.useAssetUrls=Qn;exports.useAuthentication=T;exports.useAuthorization=se;exports.useAuthorizationStore=Sn;exports.useCanAccessEstablishmentMiddleware=En;exports.useCandidateRepository=Ye;exports.useCommentRepository=rt;exports.useContractTypeRepository=ot;exports.useCvbankRepository=ct;exports.useCvthequeRepository=lt;exports.useDiplomaRepository=mt;exports.useDocumentRepository=bt;exports.useDomainUrls=ss;exports.useEmailHistoryRepository=wt;exports.useEmailRepository=vt;exports.useEmailTemplateRepository=St;exports.useEstablishmentCareerRepository=Tt;exports.useEstablishmentRepository=Q;exports.useFeatureFlagRepository=Nt;exports.useI18n=ue;exports.useJobRepository=Ft;exports.useLabelRepository=Ht;exports.useLocaleTimeAgo=Bn;exports.useOfferRepository=Kt;exports.usePrivateRequest=h;exports.useQSAction=zn;exports.useRecruiterRepository=Wt;exports.useRecruitmentRepository=sn;exports.useRegisterRepository=un;exports.useRegistrationRepository=dn;exports.useRequest=R;exports.useSpecialityRepository=pn;exports.useTagRepository=yn;exports.useTalentRepository=Rn;exports.useUndefinedCssClasses=rs;exports.useUserRepository=G;
|
|
1
|
+
"use strict";var de=Object.defineProperty;var me=(e,t,s)=>t in e?de(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s;var I=(e,t,s)=>(me(e,typeof t!="symbol"?t+"":t,s),s);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const x=require("vue"),fe=require("axios"),pe=require("pinia"),he=require("@vueuse/core");var V={expireTimes:"1d",path:"; path=/",domain:"",secure:!1,sameSite:"; SameSite=Lax"},ye=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,f,d){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=/")+(f==null?this.current_default_config.secure?"; Secure":"":f?"; Secure":"")+(d==null?this.current_default_config.sameSite?"; SameSute="+this.current_default_config.sameSite:"":d?"; SameSite="+d:""),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}(),B=null;function ge(){B==null&&(B=new ye);var e=x.reactive(B);return{cookies:e}}function be(){const{cookies:e}=ge();function t(a){return e.get(a)}function s(a,f){return e.set(a,f)}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=be()){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,p){const y=o(m);if(!y.exp)throw new Error("Invalid JWT token.");t.setItem(e.auth,m),t.setItem(e.refresh,p),t.setItem(e.expiration,((y.exp-60)*1e3).toString())}function f(){t.removeItem(e.auth),t.removeItem(e.refresh),t.removeItem(e.expiration)}function d(){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:f,isAuthenticated:d,hasAuth:u,isExpired:i,getStorage:l},O}function Re(e){let t={"Content-Type":"application/json"};e&&s(e);function s(y,b=!1){return t=b?y:{...t,...y},this}function n(){return t}function r(y,b){return t[y]=b,this}function a(y){return t[y]}function f(y){return t[y]&&delete t[y],this}function d(y){return r("Authorization","Bearer "+y),this}function u(){return f("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 p(){return a("Content-Type")==="application/json"}return{setHeaders:s,getHeaders:n,setHeader:r,getHeader:a,removeHeader:f,setAuthorization:d,removeAuthorization:u,hasAuthorization:i,setFormData:o,setJson:l,isFormData:m,isJson:p}}function we(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 Ae(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():f(i)&&(i=d(i),t.setFormData()),t.isFormData()&&e.getMethod()==="put"&&(e.setMethod("post"),i.append("_method","PUT")),n=i,this}function a(){return n}function f(i){for(const o in i){const l=i[o];if(u(l))return!0;if(typeof l=="object"&&f(l))return!0}return!1}function d(i,o=null,l=0){const m=!o;m&&(o=new FormData);for(const p in i){const y=i[p];u(y)?(i[p]="<<FileIndex:"+l+">>",o.append(l,y,y.name),l++):typeof y=="object"&&(i[p]=d(i[p],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",3);I(this,"logger");I(this,"prefix");this.logger=t.logger||console,this.prefix=t.prefix||""}setLevel(t){this.level=t}debug(...t){this.level<=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 j=v;const D=(e,t,s)=>{t?e(t,...s):e(...s)},E=new j({prefix:"[SDK]"});let X=null,Y=null,ee=null,te="/",ne=null;const Pe=()=>X,ve=e=>{if(E.info("[Config] Environment:",e),!e)throw new Error("Invalid environment.");X=e},Ie=()=>Y,Ee=e=>{if(E.info("[Config] API Host:",e),!e)throw new Error("Invalid API host.");Y=e},Se=()=>ne,Ce=e=>{ne=e},ke=()=>ee,$e=e=>{if(E.info("[Config] Main App Host:",e),!e)throw new Error("Invalid main app host.");ee=e},Le=e=>{E.info("[Config] Base Assets Urls:",e),te=e},Me=()=>te,C={getEnvironment:Pe,getApiHost:Ie,getErrorHandler:Se,setEnvironment:ve,setApiHost:Ee,setErrorHandler:Ce,getMainAppHost:ke,setMainAppHost:$e,setBaseAssetsUrl:Le,getBaseAssetsUrl:Me};function Te(e){const t=C.getApiHost().replace(/\/$/g,"");let s=null,n={},r={};e&&d(e);function a(){return t+u()+p()}function f(){return u(!0,!0)}function d(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 p(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 y(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:d,getPath:u,getUri:a,getMockUri:f,setQueryParams:i,setQueryParam:o,removeQueryParam:l,hasQuery:m,getQueryString:p,setRouteParams:y,setRouteParam:b,removeRouteParam:$}}function Oe(e){let t=[];function s(){return t=i(arguments),f(),this}function n(){return t.length>0}function r(o){return t.includes(o.trim())?this:(t.push(o.trim()),f(),this)}function a(o){const l=t.indexOf(o.trim());return l===-1?this:(t.splice(l,1),f(),this)}function f(){t.length?e.setQueryParam("groups",u(t)):e.removeQueryParam("groups")}function d(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=d(o[0]):Array.isArray(o[0])&&(l=o[0]):l=Array.from(o),l}return{setGroups:s,hasGroups:n,addGroup:r,removeGroup:a}}function De(e){let t=!1,s=!1,n=1,r=10;function a(){return t=!0,f(),this}function f(){s=!0;const p=m(arguments);return i(p.page||1,!1),o(p.perPage||r,!1),l(),this}function d(){return s=!1,l(),this}function u(){return s}function i(p,y=!0){return t=!0,s=!0,n=p,y&&l(),this}function o(p,y=!0){return t=!0,s=!0,r=p,y&&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(p){if(p.length===1&&typeof p[0]=="object")return p[0];const y={};return p.length>=1&&(y.page=p[0]),p.length>=2&&(y.perPage=p[1]),y}return{isList:a,paginate:f,disablePagination:d,hasPagination:u,setPage:i,setPerPage:o}}function _e(e){let t=!1,s="id",n="ASC";function r(){t=!0;const o=i(arguments);return o.orderBy&&f(o.orderBy,!1),o.orderDir&&d(o.orderDir,!1),u(),this}function a(){return t}function f(o,l=!0){return t=!0,s=o,l&&u(),this}function d(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:f,setOrderDir:d}}function xe(){let e=!1;function t(){return e=!0,this}function s(){return e}return{setSilent:t,isSilent:s}}function Ne(){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 je(e){function t(){return e}function s(){return e.data}function n(){return e.data}return{getResponse:t,getData:s,getPayload:n}}function Be(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 f(){return r()?e.data["hydra:totalItems"]:null}function d(){return r()?e.data["hydra:view"]&&e.data["hydra:view"]["hydra:last"]:!1}function u(){return!r()||!d()?null:parseInt(e.data["hydra:view"]["@id"].match(/page=(\d+)/)[1])}function i(){return!r()||!d()?null:parseInt(e.data["hydra:view"]["hydra:last"].match(/page=(\d+)/)[1])}return{getResponse:t,getData:s,getPayload:n,isCollection:r,getCollection:a,getTotal:f,hasPagination:d,getPage:u,getPages:i}}function Ue(e,t,s,n,r,a){async function f(){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 p=await fe[u](...m);return d(p)}catch(p){throw Be(p,r.isSilent())}}function d(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 je(u)}return{send:f}}function R(e,t="get",s=null){const n=Re(),r=Te(e),a=we(t),f=Ae(a,n,s),d=Oe(r),u=De(r),i=_e(r),o=xe(),l=Ne(),m=Ue(n,r,a,f,o,l);return{...n,...r,...a,...f,...d,...u,...i,...o,...l,...m}}function h(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)=>h("/v2/activity/candidate/:candidateId/establishment/:establishmentId").setRouteParams({candidateId:e,establishmentId:t}),ze=()=>({listByCandidateAndEstablishment:qe}),Qe=(e,t,s)=>h("/candidate/:candidateId/share/establishment/:establishmentId").setMethod("post").setRouteParams({candidateId:e,establishmentId:t}).setPayload(s),Ge=(e,t)=>h("/candidate/:candidateId/archive/establishment/:establishmentId").setRouteParams({candidateId:e,establishmentId:t}),He=(e,t)=>h("/candidate/:candidateId/archive/establishment/:establishmentId").setMethod("post").setRouteParams({candidateId:e,establishmentId:t}),Ve=(e,t)=>h("/candidate/:candidateId/archive/establishment/:establishmentId").setMethod("delete").setRouteParams({candidateId:e,establishmentId:t}),Ke=e=>h("/v2/candidates/lookup").setQueryParam("email",e),Je=(e,t)=>h("/v2/candidates").setMethod("post").setQueryParam("establishment-id",e).setFormData().setPayload(t),We=(e,t,s)=>h("/v2/candidates/:candidateId").setQueryParam("establishment-id",t).setRouteParams({candidateId:e}).setMethod("post").setFormData().setPayload(s),Ze=e=>h("/candidate/register/close/:registrationToken").setMethod("post").setRouteParams({registrationToken:e}),Xe=e=>h("/candidate/register/open").setMethod("post").setQueryParam("groups","register:token").setPayload(e),Ye=(e,t)=>h("/establishment/:establishmentId:/candidate/invitation").setRouteParams({establishmentId:e}).setMethod("post").setPayload(t),et=()=>({share:Qe,isArchived:Ge,archive:He,unarchive:Ve,lookupCandidate:Ke,createCandidate:Je,updateCandidate:We,closeIncompleteRegistration:Ze,openNewRegistration:Xe,updateInvitation:Ye}),tt=(e,t)=>h("/comment/establishment/:establishmentId/candidate/:userId").setRouteParams({establishmentId:e,userId:t}),nt=(e,t,s)=>h("/comment/establishment/:establishmentId/candidate/:userId").setRouteParams({establishmentId:e,userId:t}).setMethod("post").setPayload(s),st=(e,t)=>h("/comment/:commentId").setRouteParams({commentId:e}).setMethod("put").setPayload(t),rt=e=>h("/comment/:commentId").setRouteParams({commentId:e}).setMethod("delete"),it=()=>({getForEstablishmentCandidate:tt,postForEstablishmentCandidate:nt,update:st,remove:rt}),ot=()=>R("contractType").isList().addGroup("Term:id").addGroup("Term:name"),at=()=>({list:ot}),ct=e=>h("/v2/talents").isList().setQueryParam("establishment-id",e),ut=()=>({list:ct}),lt=(e,t,s)=>h("/cvtheque/establishment/:establishmentId/candidate/:candidateId/label/synchronize").setRouteParams({establishmentId:e,candidateId:t}).setMethod("post").setPayload(s),dt=()=>({syncCandidateLabels:lt}),mt=()=>R("diploma").isList().addGroup("Term:id").addGroup("Term:name"),ft=()=>({list:mt}),pt=e=>h("document/candidate/:candidateId").setRouteParams({candidateId:e}).isList().disablePagination(),ht=(e,t)=>h("document/candidate/:candidateId/establishment/:establishmentId/recruiter").setRouteParams({candidateId:e,establishmentId:t}).isList().disablePagination(),yt=(e,t)=>h("document/candidate/:candidateId/establishment/:establishmentId/candidate").setRouteParams({candidateId:e,establishmentId:t}).isList().disablePagination(),gt=e=>h("document/recruiter").setMethod("post").setPayload(e),bt=e=>h("document/:documentId").setRouteParams({documentId:e}).setMethod("delete"),Rt=()=>({listByCandidate:pt,listByCandidateAndEstablishmentFromRecruiter:ht,listByCandidateAndEstablishmentFromCandidate:yt,addFromRecruiter:gt,remove:bt}),wt=(e,t)=>h("/v2/establishments/:establishmentId/email-history").setRouteParams({establishmentId:t}).setQueryParam("receiverId",e).isList().disablePagination(),At=()=>({listByCandidateAndEstablishment:wt}),Pt=(e,t)=>h("/email/candidate/:candidateId").setMethod("post").setRouteParams({candidateId:e}).setPayload(t),vt=(e,t)=>h("/v2/emails/send").setMethod("post").setFormData().setPayload({recipientIds:e,...t}),It=()=>({sendToCandidate:Pt,sendToRecipients:vt}),Et=(e,t=!0)=>{const s=h("/v2/establishments/:establishmentId/email-templates").setRouteParams({establishmentId:e}).isList().disablePagination();return t&&s.setQueryParam("global",!0),s},St=()=>h("/v2/self/email-templates").isList().disablePagination(),Ct=()=>({listByEstablishment:Et,listSelf:St}),kt=(e,t)=>h("establishment-career/:establishmentId/:versionId").setRouteParams({establishmentId:e,versionId:t}),$t=(e,t="published")=>h("establishment-career/:establishmentId/state/:state").setRouteParams({establishmentId:e,state:t}),Lt=(e,t,s=null)=>{const n=s!==null?h("establishment-career/:establishmentId/:versionId").setRouteParams({establishmentId:e,versionId:s}):h("establishment-career/:establishmentId").setRouteParams({establishmentId:e});return n.setMethod("post").setPayload(t),n},Mt=(e,t)=>h("establishment-career/:establishmentId/logo-banner").setMethod("post").setRouteParams({establishmentId:e}).setPayload(t),Tt=(e,t,s)=>h("establishment-career/:establishmentId/publish/:versionId").setMethod("post").setRouteParams({establishmentId:e,versionId:t}).setPayload(s),Ot=()=>({readById:kt,readByState:$t,upsert:Lt,uploadLogoAndBanner:Mt,publish:Tt}),Dt=e=>R("establishment/:establishmentId").setRouteParams({establishmentId:e}),_t=e=>h("establishment/:establishmentId/authorizations").setRouteParams({establishmentId:e}),Q=()=>({read:Dt,authorizations:_t}),xt=e=>R("feature-flag/maintenance").setMethod("post").setPayload(e),Nt=(e,t)=>R("feature-flag/establishment").setMethod("post").setPayload({establishment:e,flagName:t}),jt=()=>({maintenanceModeEnabled:xt,forEstablishment:Nt}),Bt=()=>R("job").isList().addGroup("Term:id").addGroup("Term:name"),Ft=(e,t=!0)=>h("job/establishment/:establishmentId").isList().setRouteParams({establishmentId:e}).setQueryParam("all",t).addGroup("Term:id").addGroup("Term:name"),Ut=()=>({list:Bt,listByEstablishment:Ft}),qt=e=>h("/label/establishment/:establishmentId").isList().setRouteParams({establishmentId:e}),zt=(e,t)=>h("/label/establishment/:establishmentId").setMethod("post").setRouteParams({establishmentId:e}).setPayload(t),Qt=(e,t)=>h("/label/:labelId").setMethod("put").setRouteParams({labelId:e}).setPayload(t),Gt=e=>h("/label/:labelId").setMethod("delete").setRouteParams({labelId:e}),Ht=(e,t,s)=>h("/label/establishment/:establishmentId/candidate/:candidateId/synchronize").setMethod("post").setPayload(s).setRouteParams({establishmentId:e,candidateId:t}),Vt=()=>({listByEstablishment:qt,addToEstablishment:zt,update:Qt,remove:Gt,syncForCandidate:Ht}),Kt=e=>R("offer/:offerId").setRouteParams({offerId:e}),Jt=()=>({read:Kt}),Wt=(e,t=!1)=>{const s=h("/recruiter/establishment/:establishmentId").isList().setRouteParams({establishmentId:e});return t&&s.setQueryParam("exclude-me",1),s},Zt=()=>({listByEstablishment:Wt}),Xt=e=>h("/recruitment/establishment/:establishmentId/mine").isList().setRouteParams({establishmentId:e}),Yt=(e,t)=>h("/recruitment/mine/establishment/:establishmentId/has-not/candidate/:candidateId").isList().setRouteParams({establishmentId:e,candidateId:t}),en=(e,t)=>h("/recruitment/mine/establishment/:establishmentId/has/candidate/:candidateId").isList().setRouteParams({establishmentId:e,candidateId:t}),tn=(e,t)=>h("/recruitment/establishment/:establishmentId/has/candidate/:candidateId").isList().setRouteParams({establishmentId:e,candidateId:t}),nn=(e,t)=>h("/recruitment/:recruitmentId/candidate").setMethod("put").setRouteParams({recruitmentId:e}).setPayload(t),sn=(e,t)=>h("/recruitment/:recruitmentId/candidate/:candidateId").setMethod("delete").setRouteParams({recruitmentId:e,candidateId:t}),rn=()=>({mineByEstablishment:Xt,mineWithoutCandidate:Yt,mineWithCandidate:en,withCandidate:tn,addCandidates:nn,removeCandidate:sn}),on=(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},an=(e,t)=>R("candidate/register/update/:token").setMethod("post").setRouteParams({token:e}).setPayload(t),cn=e=>R("candidate/register/read/:token").setRouteParams({token:e}),un=e=>R("candidate/register/close/:token").setMethod("post").setRouteParams({token:e}),ln=()=>({open:on,update:an,read:cn,close:un}),dn=(e,t)=>h("/v2/registrations/lookup").setQueryParam("candidate-id",e).setQueryParam("establishment-id",t),mn=()=>({lookupEstablishment:dn}),fn=()=>R("speciality").isList().addGroup("Term:id").addGroup("Term:name"),pn=(e,t=!0)=>h("speciality/establishment/:establishmentId").isList().setRouteParams({establishmentId:e}).setQueryParam("all",t).addGroup("Term:id").addGroup("Term:name"),hn=()=>({list:fn,listByEstablishment:pn}),yn=e=>h("/tag/public/establishment/:establishmentId").isList().setRouteParams({establishmentId:e}),gn=()=>({listByEstablishment:yn}),bn=(e,t)=>h("/v2/talents/lookup").setQueryParam("candidate-id",e).setQueryParam("establishment-id",t),Rn=e=>h("/v2/talents/index").setMethod("post").setPayload(e),wn=()=>({lookupTalent:bn,addCandidateToTalentPool:Rn}),An=e=>R("user/email/isset/:email").setRouteParams({email:e}),Pn=()=>h("user/self").addGroup("user:self"),vn=e=>h("/user/:uuid").setRouteParams({uuid:e}),In=e=>R("/user/:uuid").setRouteParams({uuid:e}),En=e=>h("/user/:id/uuid").setRouteParams({id:e}),G=()=>({emailExists:An,self:Pn,byUuidPrivate:vn,byUuid:In,fetchUuid:En});let _;function se(){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 G().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 Q().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 Sn(e,...t){if(!T().isAuthenticated())throw"ERR_NOT_AUTHENTICATED";const n=se();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 Cn=pe.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 G().self().send();this.user=t.getData()}},async fetchPermission(e,t){if(!this.establishments[e]||t){const s=await Q().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)}}}),kn=()=>typeof window<"u"&&typeof window.document<"u",N=()=>typeof process<"u"&&process.versions!=null&&process.versions.node!=null,k=(e,t,s)=>{const n=typeof t=="string"?t.split("."):[t];let r=e;const a=d=>d!=null,f=d=>typeof d=="object";for(const[d,u]of n.entries()){if(!a(r))return s;if(d===n.length-1)return a(r[u])?r[u]:s;if(!f(r[u]))return s;r=r[u]}return s},U=(e,t,s)=>{const n=typeof t=="string"?t.split("."):[t],r=d=>typeof d=="number"||/^\d$/g.test(d),a=d=>parseInt(d,10);let f=e;return n.forEach((d,u)=>{if(u===n.length-1)f[d]=s;else{const i=r(n[u+1])?[]:{};d=r(d)?a(d):d,f[d]=f[d]??i,f=f[d]}}),e},re=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]=re(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 f(){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(p){return function(){if(window.analytics.initialized)return window.analytics[p].apply(window.analytics,arguments);const y=Array.prototype.slice.call(arguments);return y.unshift(p),m.push(y),m}};for(let p=0;p<m.methods.length;p++){const y=m.methods[p];m[y]=m.factory(y)}m.load=function(p,y){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/"+p+"/analytics.min.js",b.onerror=()=>window.dispatchEvent(new Event("analytics-error"));const $=document.getElementsByTagName("script")[0];$.parentNode.insertBefore(b,$),m._loadOptions=y},m._writeKey=t,m.SNIPPET_VERSION="4.16.1",m.load(t),m.page(),m.ready(()=>window.dispatchEvent(new Event("analytics-ready")))}}async function d(){return r!==null||(r=new Promise((m,p)=>{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"),p()}),l("Loading Analytics script."),window.analytics)return m();f()})),r}async function u(m,p){if(!N())try{if(await this.analyticsScriptReady(),l("[identify]",[m,p]),a())return window.analytics.identify(m,p)}catch{l("[identify]",[m,p],"error")}}async function i(m,p,y){if(!N()){typeof y!="object"&&(y={});try{if(await this.analyticsScriptReady(),l("[page]",[m,p,y]),a())return window.analytics.page(m,{category:p,...y})}catch(b){console.log(b),l("[page]",[m,p,y],"error")}}}async function o(m,p,y){if(!N()){typeof y!="object"&&(y={});try{if(await this.analyticsScriptReady(),l("[track]",[m,p,y]),a())return window.analytics.track(m,{category:p,...y})}catch{l("[track]",[m,p,y],"error")}}}function l(m,p=[],y="info"){p||(p=[]),n&&E[y](`::SDK Analytics:: ${m}`,...p)}return L={analyticsScriptReady:d,isEnabled:a,identify:u,page:i,track:o,consoleMessage:l},L}g.destroy=()=>L=null;function ie(){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 f(i){return g().page("Application Document Viewed",e,t(i))}async function d(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:f,applicationSuccessViewed:d,applicationFormFailed:u}}function oe(){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 f(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 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 p(c){return g().track(c.name,e,t(c.properties,!0))}async function y(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:f,profileCandidateAdded:d,profileCommentAdded:u,profileDocumentAdded:i,profileDocumentDownloaded:o,profileDocumentRequested:l,profileRecruitmentAdded:m,profileRecruitmentRemoved:p,profileTabSelected:y,profileViewed:b,profileEmailSent:$}}const K=Object.freeze(Object.defineProperty({__proto__:null,useAnalyticsHublerApplication:ie,useAnalyticsProfile:oe},Symbol.toStringTag,{value:"Module"}));function $n(){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 Ln="AIzaSyDicyRD6rvVdnicp1tgV0ElazASNGbyyTs";let ae=!1;const ce=()=>new Promise(e=>{ae||window.google&&window.google.maps?e():(window.addEventListener("gmap-ready",()=>e()),On())}),Mn=(e,t)=>ce().then(()=>Tn(e,t)),Tn=(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)})},On=()=>{window.onGmapScriptReady=function(){};const e=document.createElement("script");e.src="https://maps.googleapis.com/maps/api/js?key="+Ln+"&libraries=places&callback=onGmapScriptReady",e.async=!0,e.defer=!0,e.onload=()=>window.dispatchEvent(new Event("gmap-ready")),document.body.appendChild(e),ae=!0},Dn={scriptReady:ce,autocompleteInput:Mn},_n={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"}},xn={fr:_n};let q=null;const ue=()=>q,Nn=(e={})=>{let t=e.locale||"fr";const s=u=>t=u,n=()=>t,r=H(xn,(e==null?void 0:e.messages)||{}),a=(u,i)=>{const o=k(r,`${t}.${u}`);return o?i?jn(o,i):o:u},f=(u,i)=>{const o=k(r,`${t}.${u}`);return o?Bn(o,i):u};return q={t:a,tNode:f,setLocale:s,getLocale:n,install:u=>{u.config.globalProperties.$t=a,u.config.globalProperties.$tNode=f}},q},jn=(e,t)=>e?e.replace(/{{ ?([a-zA-Z_.]+) ?}}/g,(s,n)=>k(t,n)):null,Bn=(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()=>J.text(n);n=n.replace(/[{}%]/g,"").trim();const a=n.match(/^[a-zA-Z_.]+/)[0];n=n.replace(a,"").trim();const f={};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),f),[...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},f)),d=>J[r](a,t,d,f)});return{setup:(n,{slots:r})=>()=>s.map(a=>a(r))}},J={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 Fn(e){const{t}=ue(),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 he.useTimeAgo(e,{fullDateFormatter:n=>n.toLocaleDateString(),messages:s})}function Un(){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 f(){return!!(e&&e.controller&&e.action)}function d(){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 d(),{getParams:t,getController:s,getControllerComposableName:n,getAction:r,getArguments:a,hasAction:f}}function qn(){async function e({domain:n,event:r,...a}){const f="useAnalytics"+n.charAt(0).toUpperCase()+n.slice(1);if(!t(f))throw new Error(`Domain ${n} is not defined`);const d=K[f]();if(!s(d,r))throw new Error(`Event ${r} is not defined in domain ${n}`);return d[r](a)}function t(n){return!!K[n]}function s(n,r){return!!n[r]}return{call:e}}const W=Object.freeze(Object.defineProperty({__proto__:null,useAnalyticsQSController:qn},Symbol.toStringTag,{value:"Module"}));function zn(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=W[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 W}function n(r){return e.getAction()in r}return{dispatch:t}}function Qn(){let e=!1;function t(r,a,f){n(),f()}function s(r,a,f){if(!e)return e=!0,t(r,a,f);f()}function n(){const r=Un();if(!r.hasAction())return;zn(r).dispatch()}return{vueRouterBeforeEach:t,vueRouterBeforeFirst:s,handle:n}}const Gn=()=>({getAssetUrl:t=>`${C.getBaseAssetsUrl()}${t}`}),w=()=>C.getMainAppHost(),Hn=()=>`${w()}/rh/establishments`,Vn=e=>`${w()}/rh/establishment/${e}`,Kn=e=>e&&typeof e=="object"&&e.urls&&e.urls.display?e.urls.display:"",Jn=e=>`${w()}/candidate-invite/establishment/${e}`,Wn=(e,t=!1)=>t?`${w()}/cvbank/${e}/`:`${w()}/rh/establishment/${e}/cvtheque/`,Zn=(e,t)=>`${w()}/user-profile/establishment/${e}/user/${t}`,Xn=(e,t)=>`${w()}/rh/establishment/${e}/recruitment/${t}`,Yn=(e,t)=>`${w()}/rh/establishment/${e}/recruitment/${t}/kanban`,es=e=>`${w()}/rh/establishment/${e}/career-configuration`,ts=(e,t=null)=>t?`${w()}/career-website/${e}/${t}`:`${w()}/career-website/${e}`,ns=(e,t)=>`${w()}/career-website-preview/${e}/${t}`,ss=(e,t=null)=>{const s=w().replace("://",`://${e}.`);return t?`${s}?_version=${t}`:`${s}`};function rs(){return{root:w,establishments:Hn,establishment:Vn,img:Kn,candidateInvite:Jn,cvtheque:Wn,userProfile:Zn,recruitment:Xn,recruitmentKanban:Yn,career:es,careerConfig:ts,careerPreview:ns,careerWebsite:ss}}const Z=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)||Z.has(t)||z.ignore(t)||(Z.add(t),E.error(`Undefined CSS class: ${t}`))}},le=e=>{var t;for(const s of e)if(s!=null&&s.cssRules&&(s==null?void 0:s.cssRules.length)>0)le(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))}},is=(e={})=>{if(M)return M;M=new Set,z={...z,...e},le(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})},os="0.2.29";exports.BaseLogger=j;exports.Gmap=Dn;exports.SDKConfig=C;exports.SDKLogger=E;exports.VERSION=os;exports._clone=re;exports._get=k;exports._merge=H;exports._set=U;exports.createI18n=Nn;exports.inBrowser=kn;exports.inNode=N;exports.useActivityRepository=ze;exports.useAnalyticsHublerApplication=ie;exports.useAnalyticsIdentify=$n;exports.useAnalyticsProfile=oe;exports.useAssetUrls=Gn;exports.useAuthentication=T;exports.useAuthorization=se;exports.useAuthorizationStore=Cn;exports.useCanAccessEstablishmentMiddleware=Sn;exports.useCandidateRepository=et;exports.useCommentRepository=it;exports.useContractTypeRepository=at;exports.useCvbankRepository=ut;exports.useCvthequeRepository=dt;exports.useDiplomaRepository=ft;exports.useDocumentRepository=Rt;exports.useDomainUrls=rs;exports.useEmailHistoryRepository=At;exports.useEmailRepository=It;exports.useEmailTemplateRepository=Ct;exports.useEstablishmentCareerRepository=Ot;exports.useEstablishmentRepository=Q;exports.useFeatureFlagRepository=jt;exports.useI18n=ue;exports.useJobRepository=Ut;exports.useLabelRepository=Vt;exports.useLocaleTimeAgo=Fn;exports.useOfferRepository=Jt;exports.usePrivateRequest=h;exports.useQSAction=Qn;exports.useRecruiterRepository=Zt;exports.useRecruitmentRepository=rn;exports.useRegisterRepository=ln;exports.useRegistrationRepository=mn;exports.useRequest=R;exports.useSpecialityRepository=hn;exports.useTagRepository=gn;exports.useTalentRepository=wn;exports.useUndefinedCssClasses=is;exports.useUserRepository=G;
|
package/dist/core.js
CHANGED
|
@@ -130,10 +130,10 @@ function _(e = {
|
|
|
130
130
|
return t.getItem(e.expiration);
|
|
131
131
|
}
|
|
132
132
|
function a(m, p) {
|
|
133
|
-
const
|
|
134
|
-
if (!
|
|
133
|
+
const y = o(m);
|
|
134
|
+
if (!y.exp)
|
|
135
135
|
throw new Error("Invalid JWT token.");
|
|
136
|
-
t.setItem(e.auth, m), t.setItem(e.refresh, p), t.setItem(e.expiration, ((
|
|
136
|
+
t.setItem(e.auth, m), t.setItem(e.refresh, p), t.setItem(e.expiration, ((y.exp - 60) * 1e3).toString());
|
|
137
137
|
}
|
|
138
138
|
function f() {
|
|
139
139
|
t.removeItem(e.auth), t.removeItem(e.refresh), t.removeItem(e.expiration);
|
|
@@ -172,23 +172,23 @@ function he(e) {
|
|
|
172
172
|
"Content-Type": "application/json"
|
|
173
173
|
};
|
|
174
174
|
e && s(e);
|
|
175
|
-
function s(
|
|
176
|
-
return t = b ?
|
|
175
|
+
function s(y, b = !1) {
|
|
176
|
+
return t = b ? y : { ...t, ...y }, this;
|
|
177
177
|
}
|
|
178
178
|
function n() {
|
|
179
179
|
return t;
|
|
180
180
|
}
|
|
181
|
-
function r(
|
|
182
|
-
return t[
|
|
181
|
+
function r(y, b) {
|
|
182
|
+
return t[y] = b, this;
|
|
183
183
|
}
|
|
184
|
-
function a(
|
|
185
|
-
return t[
|
|
184
|
+
function a(y) {
|
|
185
|
+
return t[y];
|
|
186
186
|
}
|
|
187
|
-
function f(
|
|
188
|
-
return t[
|
|
187
|
+
function f(y) {
|
|
188
|
+
return t[y] && delete t[y], this;
|
|
189
189
|
}
|
|
190
|
-
function d(
|
|
191
|
-
return r("Authorization", "Bearer " +
|
|
190
|
+
function d(y) {
|
|
191
|
+
return r("Authorization", "Bearer " + y), this;
|
|
192
192
|
}
|
|
193
193
|
function u() {
|
|
194
194
|
return f("Authorization"), this;
|
|
@@ -264,8 +264,8 @@ function ge(e, t, s) {
|
|
|
264
264
|
const m = !o;
|
|
265
265
|
m && (o = new FormData());
|
|
266
266
|
for (const p in i) {
|
|
267
|
-
const
|
|
268
|
-
u(
|
|
267
|
+
const y = i[p];
|
|
268
|
+
u(y) ? (i[p] = "<<FileIndex:" + l + ">>", o.append(l, y, y.name), l++) : typeof y == "object" && (i[p] = d(i[p], o, l));
|
|
269
269
|
}
|
|
270
270
|
return m ? (o.append("payload", JSON.stringify(i)), o) : i;
|
|
271
271
|
}
|
|
@@ -391,7 +391,7 @@ function ke(e) {
|
|
|
391
391
|
A += (A.length ? "&" : "") + P + "=" + n[P];
|
|
392
392
|
return (c ? "?" : "") + A;
|
|
393
393
|
}
|
|
394
|
-
function
|
|
394
|
+
function y(c) {
|
|
395
395
|
return r = c, this;
|
|
396
396
|
}
|
|
397
397
|
function b(c, A) {
|
|
@@ -410,7 +410,7 @@ function ke(e) {
|
|
|
410
410
|
removeQueryParam: l,
|
|
411
411
|
hasQuery: m,
|
|
412
412
|
getQueryString: p,
|
|
413
|
-
setRouteParams:
|
|
413
|
+
setRouteParams: y,
|
|
414
414
|
setRouteParam: b,
|
|
415
415
|
removeRouteParam: C
|
|
416
416
|
};
|
|
@@ -466,11 +466,11 @@ function Le(e) {
|
|
|
466
466
|
function u() {
|
|
467
467
|
return s;
|
|
468
468
|
}
|
|
469
|
-
function i(p,
|
|
470
|
-
return t = !0, s = !0, n = p,
|
|
469
|
+
function i(p, y = !0) {
|
|
470
|
+
return t = !0, s = !0, n = p, y && l(), this;
|
|
471
471
|
}
|
|
472
|
-
function o(p,
|
|
473
|
-
return t = !0, s = !0, r = p,
|
|
472
|
+
function o(p, y = !0) {
|
|
473
|
+
return t = !0, s = !0, r = p, y && l(), this;
|
|
474
474
|
}
|
|
475
475
|
function l() {
|
|
476
476
|
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"));
|
|
@@ -478,8 +478,8 @@ function Le(e) {
|
|
|
478
478
|
function m(p) {
|
|
479
479
|
if (p.length === 1 && typeof p[0] == "object")
|
|
480
480
|
return p[0];
|
|
481
|
-
const
|
|
482
|
-
return p.length >= 1 && (
|
|
481
|
+
const y = {};
|
|
482
|
+
return p.length >= 1 && (y.page = p[0]), p.length >= 2 && (y.perPage = p[1]), y;
|
|
483
483
|
}
|
|
484
484
|
return {
|
|
485
485
|
isList: a,
|
|
@@ -657,7 +657,7 @@ function w(e, t = "get", s = null) {
|
|
|
657
657
|
...m
|
|
658
658
|
};
|
|
659
659
|
}
|
|
660
|
-
function
|
|
660
|
+
function h(e, t = "get", s = null) {
|
|
661
661
|
const n = w(e, t, s), r = _();
|
|
662
662
|
r.isAuthenticated() && n.setAuthorization(r.getAuthToken());
|
|
663
663
|
const a = n.send;
|
|
@@ -667,9 +667,9 @@ function y(e, t = "get", s = null) {
|
|
|
667
667
|
return a();
|
|
668
668
|
}, n;
|
|
669
669
|
}
|
|
670
|
-
const je = (e, t) =>
|
|
670
|
+
const je = (e, t) => h("/v2/activity/candidate/:candidateId/establishment/:establishmentId").setRouteParams({ candidateId: e, establishmentId: t }), On = () => ({
|
|
671
671
|
listByCandidateAndEstablishment: je
|
|
672
|
-
}), Be = (e, t, s) =>
|
|
672
|
+
}), Be = (e, t, s) => h("/candidate/:candidateId/share/establishment/:establishmentId").setMethod("post").setRouteParams({ candidateId: e, establishmentId: t }).setPayload(s), Fe = (e, t) => h("/candidate/:candidateId/archive/establishment/:establishmentId").setRouteParams({ candidateId: e, establishmentId: t }), ze = (e, t) => h("/candidate/:candidateId/archive/establishment/:establishmentId").setMethod("post").setRouteParams({ candidateId: e, establishmentId: t }), Ue = (e, t) => h("/candidate/:candidateId/archive/establishment/:establishmentId").setMethod("delete").setRouteParams({ candidateId: e, establishmentId: t }), Qe = (e) => h("/v2/candidates/lookup").setQueryParam("email", e), qe = (e, t) => h("/v2/candidates").setMethod("post").setQueryParam("establishment-id", e).setFormData().setPayload(t), Ge = (e, t, s) => h("/v2/candidates/:candidateId").setQueryParam("establishment-id", t).setRouteParams({ candidateId: e }).setMethod("post").setFormData().setPayload(s), He = (e) => h("/candidate/register/close/:registrationToken").setMethod("post").setRouteParams({ registrationToken: e }), Ve = (e) => h("/candidate/register/open").setMethod("post").setQueryParam("groups", "register:token").setPayload(e), Ke = (e, t) => h("/establishment/:establishmentId:/candidate/invitation").setRouteParams({ establishmentId: e }).setMethod("post").setPayload(t), Tn = () => ({
|
|
673
673
|
share: Be,
|
|
674
674
|
isArchived: Fe,
|
|
675
675
|
archive: ze,
|
|
@@ -678,102 +678,103 @@ const je = (e, t) => y("/v2/activity/candidate/:candidateId/establishment/:estab
|
|
|
678
678
|
createCandidate: qe,
|
|
679
679
|
updateCandidate: Ge,
|
|
680
680
|
closeIncompleteRegistration: He,
|
|
681
|
-
openNewRegistration: Ve
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
}), Ye = (e) => y("/v2/talents").isList().setQueryParam("establishment-id", e), _n = () => ({
|
|
681
|
+
openNewRegistration: Ve,
|
|
682
|
+
updateInvitation: Ke
|
|
683
|
+
}), Je = (e, t) => h("/comment/establishment/:establishmentId/candidate/:userId").setRouteParams({ establishmentId: e, userId: t }), We = (e, t, s) => h("/comment/establishment/:establishmentId/candidate/:userId").setRouteParams({ establishmentId: e, userId: t }).setMethod("post").setPayload(s), Ze = (e, t) => h("/comment/:commentId").setRouteParams({ commentId: e }).setMethod("put").setPayload(t), Xe = (e) => h("/comment/:commentId").setRouteParams({ commentId: e }).setMethod("delete"), Dn = () => ({
|
|
684
|
+
getForEstablishmentCandidate: Je,
|
|
685
|
+
postForEstablishmentCandidate: We,
|
|
686
|
+
update: Ze,
|
|
687
|
+
remove: Xe
|
|
688
|
+
}), Ye = () => w("contractType").isList().addGroup("Term:id").addGroup("Term:name"), _n = () => ({
|
|
690
689
|
list: Ye
|
|
691
|
-
}), et = (e
|
|
692
|
-
|
|
693
|
-
}), tt = () =>
|
|
694
|
-
|
|
695
|
-
}), nt = (
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
}), ct = (e, t) =>
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
690
|
+
}), et = (e) => h("/v2/talents").isList().setQueryParam("establishment-id", e), xn = () => ({
|
|
691
|
+
list: et
|
|
692
|
+
}), tt = (e, t, s) => h("/cvtheque/establishment/:establishmentId/candidate/:candidateId/label/synchronize").setRouteParams({ establishmentId: e, candidateId: t }).setMethod("post").setPayload(s), Nn = () => ({
|
|
693
|
+
syncCandidateLabels: tt
|
|
694
|
+
}), nt = () => w("diploma").isList().addGroup("Term:id").addGroup("Term:name"), jn = () => ({
|
|
695
|
+
list: nt
|
|
696
|
+
}), st = (e) => h("document/candidate/:candidateId").setRouteParams({ candidateId: e }).isList().disablePagination(), rt = (e, t) => h("document/candidate/:candidateId/establishment/:establishmentId/recruiter").setRouteParams({ candidateId: e, establishmentId: t }).isList().disablePagination(), it = (e, t) => h("document/candidate/:candidateId/establishment/:establishmentId/candidate").setRouteParams({ candidateId: e, establishmentId: t }).isList().disablePagination(), ot = (e) => h("document/recruiter").setMethod("post").setPayload(e), at = (e) => h("document/:documentId").setRouteParams({ documentId: e }).setMethod("delete"), Bn = () => ({
|
|
697
|
+
listByCandidate: st,
|
|
698
|
+
listByCandidateAndEstablishmentFromRecruiter: rt,
|
|
699
|
+
listByCandidateAndEstablishmentFromCandidate: it,
|
|
700
|
+
addFromRecruiter: ot,
|
|
701
|
+
remove: at
|
|
702
|
+
}), ct = (e, t) => h("/v2/establishments/:establishmentId/email-history").setRouteParams({ establishmentId: t }).setQueryParam("receiverId", e).isList().disablePagination(), Fn = () => ({
|
|
703
|
+
listByCandidateAndEstablishment: ct
|
|
704
|
+
}), ut = (e, t) => h("/email/candidate/:candidateId").setMethod("post").setRouteParams({ candidateId: e }).setPayload(t), lt = (e, t) => h("/v2/emails/send").setMethod("post").setFormData().setPayload({ recipientIds: e, ...t }), zn = () => ({
|
|
705
|
+
sendToCandidate: ut,
|
|
706
|
+
sendToRecipients: lt
|
|
707
|
+
}), dt = (e, t = !0) => {
|
|
708
|
+
const s = h("/v2/establishments/:establishmentId/email-templates").setRouteParams({ establishmentId: e }).isList().disablePagination();
|
|
708
709
|
return t && s.setQueryParam("global", !0), s;
|
|
709
|
-
},
|
|
710
|
-
listByEstablishment:
|
|
711
|
-
listSelf:
|
|
712
|
-
}),
|
|
713
|
-
const n = s !== null ?
|
|
710
|
+
}, mt = () => h("/v2/self/email-templates").isList().disablePagination(), Un = () => ({
|
|
711
|
+
listByEstablishment: dt,
|
|
712
|
+
listSelf: mt
|
|
713
|
+
}), ft = (e, t) => h("establishment-career/:establishmentId/:versionId").setRouteParams({ establishmentId: e, versionId: t }), pt = (e, t = "published") => h("establishment-career/:establishmentId/state/:state").setRouteParams({ establishmentId: e, state: t }), ht = (e, t, s = null) => {
|
|
714
|
+
const n = s !== null ? h("establishment-career/:establishmentId/:versionId").setRouteParams({ establishmentId: e, versionId: s }) : h("establishment-career/:establishmentId").setRouteParams({ establishmentId: e });
|
|
714
715
|
return n.setMethod("post").setPayload(t), n;
|
|
715
|
-
},
|
|
716
|
-
readById:
|
|
717
|
-
readByState:
|
|
718
|
-
upsert:
|
|
719
|
-
uploadLogoAndBanner:
|
|
720
|
-
publish:
|
|
721
|
-
}),
|
|
722
|
-
read:
|
|
723
|
-
authorizations:
|
|
724
|
-
}),
|
|
725
|
-
maintenanceModeEnabled:
|
|
726
|
-
forEstablishment:
|
|
727
|
-
}),
|
|
728
|
-
list:
|
|
729
|
-
listByEstablishment:
|
|
730
|
-
}),
|
|
731
|
-
listByEstablishment:
|
|
732
|
-
addToEstablishment:
|
|
733
|
-
update:
|
|
734
|
-
remove:
|
|
735
|
-
syncForCandidate:
|
|
736
|
-
}),
|
|
737
|
-
read:
|
|
738
|
-
}),
|
|
739
|
-
const s =
|
|
716
|
+
}, yt = (e, t) => h("establishment-career/:establishmentId/logo-banner").setMethod("post").setRouteParams({ establishmentId: e }).setPayload(t), gt = (e, t, s) => h("establishment-career/:establishmentId/publish/:versionId").setMethod("post").setRouteParams({ establishmentId: e, versionId: t }).setPayload(s), Qn = () => ({
|
|
717
|
+
readById: ft,
|
|
718
|
+
readByState: pt,
|
|
719
|
+
upsert: ht,
|
|
720
|
+
uploadLogoAndBanner: yt,
|
|
721
|
+
publish: gt
|
|
722
|
+
}), bt = (e) => w("establishment/:establishmentId").setRouteParams({ establishmentId: e }), wt = (e) => h("establishment/:establishmentId/authorizations").setRouteParams({ establishmentId: e }), ee = () => ({
|
|
723
|
+
read: bt,
|
|
724
|
+
authorizations: wt
|
|
725
|
+
}), Rt = (e) => w("feature-flag/maintenance").setMethod("post").setPayload(e), At = (e, t) => w("feature-flag/establishment").setMethod("post").setPayload({ establishment: e, flagName: t }), qn = () => ({
|
|
726
|
+
maintenanceModeEnabled: Rt,
|
|
727
|
+
forEstablishment: At
|
|
728
|
+
}), Pt = () => w("job").isList().addGroup("Term:id").addGroup("Term:name"), vt = (e, t = !0) => h("job/establishment/:establishmentId").isList().setRouteParams({ establishmentId: e }).setQueryParam("all", t).addGroup("Term:id").addGroup("Term:name"), Gn = () => ({
|
|
729
|
+
list: Pt,
|
|
730
|
+
listByEstablishment: vt
|
|
731
|
+
}), It = (e) => h("/label/establishment/:establishmentId").isList().setRouteParams({ establishmentId: e }), Et = (e, t) => h("/label/establishment/:establishmentId").setMethod("post").setRouteParams({ establishmentId: e }).setPayload(t), St = (e, t) => h("/label/:labelId").setMethod("put").setRouteParams({ labelId: e }).setPayload(t), Ct = (e) => h("/label/:labelId").setMethod("delete").setRouteParams({ labelId: e }), kt = (e, t, s) => h("/label/establishment/:establishmentId/candidate/:candidateId/synchronize").setMethod("post").setPayload(s).setRouteParams({ establishmentId: e, candidateId: t }), Hn = () => ({
|
|
732
|
+
listByEstablishment: It,
|
|
733
|
+
addToEstablishment: Et,
|
|
734
|
+
update: St,
|
|
735
|
+
remove: Ct,
|
|
736
|
+
syncForCandidate: kt
|
|
737
|
+
}), $t = (e) => w("offer/:offerId").setRouteParams({ offerId: e }), Vn = () => ({
|
|
738
|
+
read: $t
|
|
739
|
+
}), Lt = (e, t = !1) => {
|
|
740
|
+
const s = h("/recruiter/establishment/:establishmentId").isList().setRouteParams({ establishmentId: e });
|
|
740
741
|
return t && s.setQueryParam("exclude-me", 1), s;
|
|
741
|
-
},
|
|
742
|
-
listByEstablishment:
|
|
743
|
-
}),
|
|
744
|
-
mineByEstablishment:
|
|
745
|
-
mineWithoutCandidate:
|
|
746
|
-
mineWithCandidate:
|
|
747
|
-
withCandidate:
|
|
748
|
-
addCandidates:
|
|
749
|
-
removeCandidate:
|
|
750
|
-
}),
|
|
742
|
+
}, Kn = () => ({
|
|
743
|
+
listByEstablishment: Lt
|
|
744
|
+
}), Mt = (e) => h("/recruitment/establishment/:establishmentId/mine").isList().setRouteParams({ establishmentId: e }), Ot = (e, t) => h("/recruitment/mine/establishment/:establishmentId/has-not/candidate/:candidateId").isList().setRouteParams({ establishmentId: e, candidateId: t }), Tt = (e, t) => h("/recruitment/mine/establishment/:establishmentId/has/candidate/:candidateId").isList().setRouteParams({ establishmentId: e, candidateId: t }), Dt = (e, t) => h("/recruitment/establishment/:establishmentId/has/candidate/:candidateId").isList().setRouteParams({ establishmentId: e, candidateId: t }), _t = (e, t) => h("/recruitment/:recruitmentId/candidate").setMethod("put").setRouteParams({ recruitmentId: e }).setPayload(t), xt = (e, t) => h("/recruitment/:recruitmentId/candidate/:candidateId").setMethod("delete").setRouteParams({ recruitmentId: e, candidateId: t }), Jn = () => ({
|
|
745
|
+
mineByEstablishment: Mt,
|
|
746
|
+
mineWithoutCandidate: Ot,
|
|
747
|
+
mineWithCandidate: Tt,
|
|
748
|
+
withCandidate: Dt,
|
|
749
|
+
addCandidates: _t,
|
|
750
|
+
removeCandidate: xt
|
|
751
|
+
}), Nt = (e, t, s, n = null) => {
|
|
751
752
|
const r = w("candidate/register/open").setMethod("post"), a = { email: e };
|
|
752
753
|
return t === "establishment" && (a.establishmentId = s), t === "offer" && (a.offerId = s), n && (a.referer = n), r.setPayload(a), r;
|
|
753
|
-
},
|
|
754
|
-
open:
|
|
755
|
-
update:
|
|
756
|
-
read:
|
|
757
|
-
close:
|
|
758
|
-
}),
|
|
759
|
-
lookupEstablishment:
|
|
760
|
-
}),
|
|
761
|
-
list:
|
|
762
|
-
listByEstablishment: Ut
|
|
763
|
-
}), Qt = (e) => y("/tag/public/establishment/:establishmentId").isList().setRouteParams({ establishmentId: e }), Xn = () => ({
|
|
754
|
+
}, jt = (e, t) => w("candidate/register/update/:token").setMethod("post").setRouteParams({ token: e }).setPayload(t), Bt = (e) => w("candidate/register/read/:token").setRouteParams({ token: e }), Ft = (e) => w("candidate/register/close/:token").setMethod("post").setRouteParams({ token: e }), Wn = () => ({
|
|
755
|
+
open: Nt,
|
|
756
|
+
update: jt,
|
|
757
|
+
read: Bt,
|
|
758
|
+
close: Ft
|
|
759
|
+
}), zt = (e, t) => h("/v2/registrations/lookup").setQueryParam("candidate-id", e).setQueryParam("establishment-id", t), Zn = () => ({
|
|
760
|
+
lookupEstablishment: zt
|
|
761
|
+
}), Ut = () => w("speciality").isList().addGroup("Term:id").addGroup("Term:name"), Qt = (e, t = !0) => h("speciality/establishment/:establishmentId").isList().setRouteParams({ establishmentId: e }).setQueryParam("all", t).addGroup("Term:id").addGroup("Term:name"), Xn = () => ({
|
|
762
|
+
list: Ut,
|
|
764
763
|
listByEstablishment: Qt
|
|
765
|
-
}), qt = (e
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
764
|
+
}), qt = (e) => h("/tag/public/establishment/:establishmentId").isList().setRouteParams({ establishmentId: e }), Yn = () => ({
|
|
765
|
+
listByEstablishment: qt
|
|
766
|
+
}), Gt = (e, t) => h("/v2/talents/lookup").setQueryParam("candidate-id", e).setQueryParam("establishment-id", t), Ht = (e) => h("/v2/talents/index").setMethod("post").setPayload(e), es = () => ({
|
|
767
|
+
lookupTalent: Gt,
|
|
768
|
+
addCandidateToTalentPool: Ht
|
|
769
|
+
}), Vt = (e) => w("user/email/isset/:email").setRouteParams({ email: e }), Kt = () => h("user/self").addGroup("user:self"), Jt = (e) => h("/user/:uuid").setRouteParams({ uuid: e }), Wt = (e) => w("/user/:uuid").setRouteParams({ uuid: e }), Zt = (e) => h("/user/:id/uuid").setRouteParams({ id: e }), te = () => ({
|
|
770
|
+
emailExists: Vt,
|
|
771
|
+
self: Kt,
|
|
772
|
+
byUuidPrivate: Jt,
|
|
773
|
+
byUuid: Wt,
|
|
774
|
+
fetchUuid: Zt
|
|
774
775
|
});
|
|
775
776
|
let D;
|
|
776
|
-
function
|
|
777
|
+
function Xt() {
|
|
777
778
|
if (D)
|
|
778
779
|
return D;
|
|
779
780
|
const e = {
|
|
@@ -818,10 +819,10 @@ function Zt() {
|
|
|
818
819
|
}
|
|
819
820
|
}, D;
|
|
820
821
|
}
|
|
821
|
-
async function
|
|
822
|
+
async function ts(e, ...t) {
|
|
822
823
|
if (!_().isAuthenticated())
|
|
823
824
|
throw "ERR_NOT_AUTHENTICATED";
|
|
824
|
-
const n =
|
|
825
|
+
const n = Xt();
|
|
825
826
|
await Promise.all([
|
|
826
827
|
n.fetchSelf(),
|
|
827
828
|
n.fetchPermission(e)
|
|
@@ -832,7 +833,7 @@ async function es(e, ...t) {
|
|
|
832
833
|
throw "ERR_MISSING_PERMISSION";
|
|
833
834
|
}
|
|
834
835
|
}
|
|
835
|
-
const
|
|
836
|
+
const ns = le("authorization", {
|
|
836
837
|
state: () => ({
|
|
837
838
|
user: void 0,
|
|
838
839
|
establishments: {}
|
|
@@ -867,7 +868,7 @@ const ts = le("authorization", {
|
|
|
867
868
|
return s === void 0 ? !1 : t.every((n) => s[n] === !0);
|
|
868
869
|
}
|
|
869
870
|
}
|
|
870
|
-
}),
|
|
871
|
+
}), ss = () => typeof window < "u" && typeof window.document < "u", j = () => typeof process < "u" && process.versions != null && process.versions.node != null, $ = (e, t, s) => {
|
|
871
872
|
const n = typeof t == "string" ? t.split(".") : [t];
|
|
872
873
|
let r = e;
|
|
873
874
|
const a = (d) => d != null, f = (d) => typeof d == "object";
|
|
@@ -892,7 +893,7 @@ const ts = le("authorization", {
|
|
|
892
893
|
d = r(d) ? a(d) : d, f[d] = f[d] ?? i, f = f[d];
|
|
893
894
|
}
|
|
894
895
|
}), e;
|
|
895
|
-
},
|
|
896
|
+
}, Yt = (e) => {
|
|
896
897
|
if (typeof e == "object") {
|
|
897
898
|
if (Array.isArray(e))
|
|
898
899
|
return [...e];
|
|
@@ -903,7 +904,7 @@ const ts = le("authorization", {
|
|
|
903
904
|
}, ne = (e, t) => {
|
|
904
905
|
const s = { ...e };
|
|
905
906
|
for (const [n, r] of Object.entries(t))
|
|
906
|
-
n in s && typeof s[n] == "object" && typeof r == "object" ? s[n] = ne(s[n], r) : s[n] =
|
|
907
|
+
n in s && typeof s[n] == "object" && typeof r == "object" ? s[n] = ne(s[n], r) : s[n] = Yt(r);
|
|
907
908
|
return s;
|
|
908
909
|
};
|
|
909
910
|
let L = null;
|
|
@@ -924,19 +925,19 @@ function g() {
|
|
|
924
925
|
return function() {
|
|
925
926
|
if (window.analytics.initialized)
|
|
926
927
|
return window.analytics[p].apply(window.analytics, arguments);
|
|
927
|
-
const
|
|
928
|
-
return
|
|
928
|
+
const y = Array.prototype.slice.call(arguments);
|
|
929
|
+
return y.unshift(p), m.push(y), m;
|
|
929
930
|
};
|
|
930
931
|
};
|
|
931
932
|
for (let p = 0; p < m.methods.length; p++) {
|
|
932
|
-
const
|
|
933
|
-
m[
|
|
933
|
+
const y = m.methods[p];
|
|
934
|
+
m[y] = m.factory(y);
|
|
934
935
|
}
|
|
935
|
-
m.load = function(p,
|
|
936
|
+
m.load = function(p, y) {
|
|
936
937
|
const b = document.createElement("script");
|
|
937
938
|
b.id = "analytics-script", b.type = "text/javascript", b.async = !0, b.src = "https://cdn.segment.com/analytics.js/v1/" + p + "/analytics.min.js", b.onerror = () => window.dispatchEvent(new Event("analytics-error"));
|
|
938
939
|
const C = document.getElementsByTagName("script")[0];
|
|
939
|
-
C.parentNode.insertBefore(b, C), m._loadOptions =
|
|
940
|
+
C.parentNode.insertBefore(b, C), m._loadOptions = y;
|
|
940
941
|
}, m._writeKey = t, m.SNIPPET_VERSION = "4.16.1", m.load(t), m.page(), m.ready(() => window.dispatchEvent(new Event("analytics-ready")));
|
|
941
942
|
}
|
|
942
943
|
}
|
|
@@ -962,36 +963,36 @@ function g() {
|
|
|
962
963
|
l("[identify]", [m, p], "error");
|
|
963
964
|
}
|
|
964
965
|
}
|
|
965
|
-
async function i(m, p,
|
|
966
|
+
async function i(m, p, y) {
|
|
966
967
|
if (!j()) {
|
|
967
|
-
typeof
|
|
968
|
+
typeof y != "object" && (y = {});
|
|
968
969
|
try {
|
|
969
|
-
if (await this.analyticsScriptReady(), l("[page]", [m, p,
|
|
970
|
+
if (await this.analyticsScriptReady(), l("[page]", [m, p, y]), a())
|
|
970
971
|
return window.analytics.page(m, {
|
|
971
972
|
category: p,
|
|
972
|
-
...
|
|
973
|
+
...y
|
|
973
974
|
});
|
|
974
975
|
} catch (b) {
|
|
975
|
-
console.log(b), l("[page]", [m, p,
|
|
976
|
+
console.log(b), l("[page]", [m, p, y], "error");
|
|
976
977
|
}
|
|
977
978
|
}
|
|
978
979
|
}
|
|
979
|
-
async function o(m, p,
|
|
980
|
+
async function o(m, p, y) {
|
|
980
981
|
if (!j()) {
|
|
981
|
-
typeof
|
|
982
|
+
typeof y != "object" && (y = {});
|
|
982
983
|
try {
|
|
983
|
-
if (await this.analyticsScriptReady(), l("[track]", [m, p,
|
|
984
|
+
if (await this.analyticsScriptReady(), l("[track]", [m, p, y]), a())
|
|
984
985
|
return window.analytics.track(m, {
|
|
985
986
|
category: p,
|
|
986
|
-
...
|
|
987
|
+
...y
|
|
987
988
|
});
|
|
988
989
|
} catch {
|
|
989
|
-
l("[track]", [m, p,
|
|
990
|
+
l("[track]", [m, p, y], "error");
|
|
990
991
|
}
|
|
991
992
|
}
|
|
992
993
|
}
|
|
993
|
-
function l(m, p = [],
|
|
994
|
-
p || (p = []), n && E[
|
|
994
|
+
function l(m, p = [], y = "info") {
|
|
995
|
+
p || (p = []), n && E[y](`::SDK Analytics:: ${m}`, ...p);
|
|
995
996
|
}
|
|
996
997
|
return L = {
|
|
997
998
|
analyticsScriptReady: d,
|
|
@@ -1003,7 +1004,7 @@ function g() {
|
|
|
1003
1004
|
}, L;
|
|
1004
1005
|
}
|
|
1005
1006
|
g.destroy = () => L = null;
|
|
1006
|
-
function
|
|
1007
|
+
function en() {
|
|
1007
1008
|
const e = "Hubler Application";
|
|
1008
1009
|
function t(i) {
|
|
1009
1010
|
var l;
|
|
@@ -1052,7 +1053,7 @@ function Yt() {
|
|
|
1052
1053
|
applicationFormFailed: u
|
|
1053
1054
|
};
|
|
1054
1055
|
}
|
|
1055
|
-
function
|
|
1056
|
+
function tn() {
|
|
1056
1057
|
const e = "Profile";
|
|
1057
1058
|
function t(c, A) {
|
|
1058
1059
|
var S;
|
|
@@ -1100,7 +1101,7 @@ function en() {
|
|
|
1100
1101
|
async function p(c) {
|
|
1101
1102
|
return g().track(c.name, e, t(c.properties, !0));
|
|
1102
1103
|
}
|
|
1103
|
-
async function
|
|
1104
|
+
async function y(c) {
|
|
1104
1105
|
return g().track(c.name, e, t(c.properties, !0));
|
|
1105
1106
|
}
|
|
1106
1107
|
async function b(c) {
|
|
@@ -1122,17 +1123,17 @@ function en() {
|
|
|
1122
1123
|
profileDocumentRequested: l,
|
|
1123
1124
|
profileRecruitmentAdded: m,
|
|
1124
1125
|
profileRecruitmentRemoved: p,
|
|
1125
|
-
profileTabSelected:
|
|
1126
|
+
profileTabSelected: y,
|
|
1126
1127
|
profileViewed: b,
|
|
1127
1128
|
profileEmailSent: C
|
|
1128
1129
|
};
|
|
1129
1130
|
}
|
|
1130
1131
|
const G = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1131
1132
|
__proto__: null,
|
|
1132
|
-
useAnalyticsHublerApplication:
|
|
1133
|
-
useAnalyticsProfile:
|
|
1133
|
+
useAnalyticsHublerApplication: en,
|
|
1134
|
+
useAnalyticsProfile: tn
|
|
1134
1135
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
1135
|
-
function
|
|
1136
|
+
function rs() {
|
|
1136
1137
|
function e(s) {
|
|
1137
1138
|
return g().identify(s.id, {
|
|
1138
1139
|
email: s.email,
|
|
@@ -1154,25 +1155,25 @@ function ss() {
|
|
|
1154
1155
|
identifyCandidate: e
|
|
1155
1156
|
};
|
|
1156
1157
|
}
|
|
1157
|
-
const
|
|
1158
|
+
const nn = "AIzaSyDicyRD6rvVdnicp1tgV0ElazASNGbyyTs";
|
|
1158
1159
|
let se = !1;
|
|
1159
1160
|
const re = () => new Promise((e) => {
|
|
1160
|
-
se || window.google && window.google.maps ? e() : (window.addEventListener("gmap-ready", () => e()),
|
|
1161
|
-
}),
|
|
1161
|
+
se || window.google && window.google.maps ? e() : (window.addEventListener("gmap-ready", () => e()), on());
|
|
1162
|
+
}), sn = (e, t) => re().then(() => rn(e, t)), rn = (e, t) => {
|
|
1162
1163
|
const s = new window.google.maps.places.Autocomplete(e, { componentRestrictions: { country: ["fr", "re", "yt", "gp", "mq"] } });
|
|
1163
1164
|
window.google.maps.event.addListener(s, "place_changed", () => {
|
|
1164
1165
|
const n = s.getPlace();
|
|
1165
1166
|
n.formatted_address && t && t(n.formatted_address, n);
|
|
1166
1167
|
});
|
|
1167
|
-
},
|
|
1168
|
+
}, on = () => {
|
|
1168
1169
|
window.onGmapScriptReady = function() {
|
|
1169
1170
|
};
|
|
1170
1171
|
const e = document.createElement("script");
|
|
1171
|
-
e.src = "https://maps.googleapis.com/maps/api/js?key=" +
|
|
1172
|
-
},
|
|
1172
|
+
e.src = "https://maps.googleapis.com/maps/api/js?key=" + nn + "&libraries=places&callback=onGmapScriptReady", e.async = !0, e.defer = !0, e.onload = () => window.dispatchEvent(new Event("gmap-ready")), document.body.appendChild(e), se = !0;
|
|
1173
|
+
}, is = {
|
|
1173
1174
|
scriptReady: re,
|
|
1174
|
-
autocompleteInput:
|
|
1175
|
-
},
|
|
1175
|
+
autocompleteInput: sn
|
|
1176
|
+
}, an = {
|
|
1176
1177
|
common: {
|
|
1177
1178
|
the: "le",
|
|
1178
1179
|
from: "de"
|
|
@@ -1197,18 +1198,18 @@ const re = () => new Promise((e) => {
|
|
|
1197
1198
|
minute: "minute | minutes",
|
|
1198
1199
|
second: "seconde | secondes"
|
|
1199
1200
|
}
|
|
1200
|
-
},
|
|
1201
|
-
fr:
|
|
1201
|
+
}, cn = {
|
|
1202
|
+
fr: an
|
|
1202
1203
|
};
|
|
1203
1204
|
let z = null;
|
|
1204
|
-
const
|
|
1205
|
+
const un = () => z, os = (e = {}) => {
|
|
1205
1206
|
let t = e.locale || "fr";
|
|
1206
|
-
const s = (u) => t = u, n = () => t, r = ne(
|
|
1207
|
+
const s = (u) => t = u, n = () => t, r = ne(cn, (e == null ? void 0 : e.messages) || {}), a = (u, i) => {
|
|
1207
1208
|
const o = $(r, `${t}.${u}`);
|
|
1208
|
-
return o ? i ?
|
|
1209
|
+
return o ? i ? ln(o, i) : o : u;
|
|
1209
1210
|
}, f = (u, i) => {
|
|
1210
1211
|
const o = $(r, `${t}.${u}`);
|
|
1211
|
-
return o ?
|
|
1212
|
+
return o ? dn(o, i) : u;
|
|
1212
1213
|
};
|
|
1213
1214
|
return z = {
|
|
1214
1215
|
t: a,
|
|
@@ -1219,7 +1220,7 @@ const cn = () => z, is = (e = {}) => {
|
|
|
1219
1220
|
u.config.globalProperties.$t = a, u.config.globalProperties.$tNode = f;
|
|
1220
1221
|
}
|
|
1221
1222
|
}, z;
|
|
1222
|
-
},
|
|
1223
|
+
}, ln = (e, t) => e ? e.replace(/{{ ?([a-zA-Z_.]+) ?}}/g, (s, n) => $(t, n)) : null, dn = (e, t) => {
|
|
1223
1224
|
if (!e)
|
|
1224
1225
|
return null;
|
|
1225
1226
|
const s = e.split(/(\{[{%]+[^{}]*[%}]+})/g).filter((n) => n !== "").map((n) => {
|
|
@@ -1241,8 +1242,8 @@ const cn = () => z, is = (e = {}) => {
|
|
|
1241
1242
|
variable: (e, t) => x("span", { class: "node node--variable" }, $(t, e.trim())),
|
|
1242
1243
|
text: (e) => x("span", { class: "node node--text" }, e)
|
|
1243
1244
|
};
|
|
1244
|
-
function
|
|
1245
|
-
const { t } =
|
|
1245
|
+
function as(e) {
|
|
1246
|
+
const { t } = un(), s = {
|
|
1246
1247
|
justNow: t("timeAgo.just-now"),
|
|
1247
1248
|
past: (n) => n.match(/\d/) ? t("timeAgo.ago", [n]) : n,
|
|
1248
1249
|
future: (n) => n.match(/\d/) ? t("timeAgo.in", [n]) : n,
|
|
@@ -1260,7 +1261,7 @@ function os(e) {
|
|
|
1260
1261
|
messages: s
|
|
1261
1262
|
});
|
|
1262
1263
|
}
|
|
1263
|
-
function
|
|
1264
|
+
function mn() {
|
|
1264
1265
|
let e = null;
|
|
1265
1266
|
function t() {
|
|
1266
1267
|
return e;
|
|
@@ -1295,7 +1296,7 @@ function dn() {
|
|
|
1295
1296
|
hasAction: f
|
|
1296
1297
|
};
|
|
1297
1298
|
}
|
|
1298
|
-
function
|
|
1299
|
+
function fn() {
|
|
1299
1300
|
async function e({ domain: n, event: r, ...a }) {
|
|
1300
1301
|
const f = "useAnalytics" + n.charAt(0).toUpperCase() + n.slice(1);
|
|
1301
1302
|
if (!t(f))
|
|
@@ -1317,9 +1318,9 @@ function mn() {
|
|
|
1317
1318
|
}
|
|
1318
1319
|
const V = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1319
1320
|
__proto__: null,
|
|
1320
|
-
useAnalyticsQSController:
|
|
1321
|
+
useAnalyticsQSController: fn
|
|
1321
1322
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
1322
|
-
function
|
|
1323
|
+
function pn(e) {
|
|
1323
1324
|
if (!e.hasAction())
|
|
1324
1325
|
throw new Error("No action found in router");
|
|
1325
1326
|
function t() {
|
|
@@ -1340,7 +1341,7 @@ function fn(e) {
|
|
|
1340
1341
|
dispatch: t
|
|
1341
1342
|
};
|
|
1342
1343
|
}
|
|
1343
|
-
function
|
|
1344
|
+
function cs() {
|
|
1344
1345
|
let e = !1;
|
|
1345
1346
|
function t(r, a, f) {
|
|
1346
1347
|
n(), f();
|
|
@@ -1351,10 +1352,10 @@ function as() {
|
|
|
1351
1352
|
f();
|
|
1352
1353
|
}
|
|
1353
1354
|
function n() {
|
|
1354
|
-
const r =
|
|
1355
|
+
const r = mn();
|
|
1355
1356
|
if (!r.hasAction())
|
|
1356
1357
|
return;
|
|
1357
|
-
|
|
1358
|
+
pn(r).dispatch();
|
|
1358
1359
|
}
|
|
1359
1360
|
return {
|
|
1360
1361
|
vueRouterBeforeEach: t,
|
|
@@ -1362,25 +1363,25 @@ function as() {
|
|
|
1362
1363
|
handle: n
|
|
1363
1364
|
};
|
|
1364
1365
|
}
|
|
1365
|
-
const
|
|
1366
|
+
const us = () => ({ getAssetUrl: (t) => `${k.getBaseAssetsUrl()}${t}` }), R = () => k.getMainAppHost(), hn = () => `${R()}/rh/establishments`, yn = (e) => `${R()}/rh/establishment/${e}`, gn = (e) => e && typeof e == "object" && e.urls && e.urls.display ? e.urls.display : "", bn = (e) => `${R()}/candidate-invite/establishment/${e}`, wn = (e, t = !1) => t ? `${R()}/cvbank/${e}/` : `${R()}/rh/establishment/${e}/cvtheque/`, Rn = (e, t) => `${R()}/user-profile/establishment/${e}/user/${t}`, An = (e, t) => `${R()}/rh/establishment/${e}/recruitment/${t}`, Pn = (e, t) => `${R()}/rh/establishment/${e}/recruitment/${t}/kanban`, vn = (e) => `${R()}/rh/establishment/${e}/career-configuration`, In = (e, t = null) => t ? `${R()}/career-website/${e}/${t}` : `${R()}/career-website/${e}`, En = (e, t) => `${R()}/career-website-preview/${e}/${t}`, Sn = (e, t = null) => {
|
|
1366
1367
|
const s = R().replace("://", `://${e}.`);
|
|
1367
1368
|
return t ? `${s}?_version=${t}` : `${s}`;
|
|
1368
1369
|
};
|
|
1369
|
-
function
|
|
1370
|
+
function ls() {
|
|
1370
1371
|
return {
|
|
1371
1372
|
root: R,
|
|
1372
|
-
establishments:
|
|
1373
|
-
establishment:
|
|
1374
|
-
img:
|
|
1375
|
-
candidateInvite:
|
|
1376
|
-
cvtheque:
|
|
1377
|
-
userProfile:
|
|
1378
|
-
recruitment:
|
|
1379
|
-
recruitmentKanban:
|
|
1380
|
-
career:
|
|
1381
|
-
careerConfig:
|
|
1382
|
-
careerPreview:
|
|
1383
|
-
careerWebsite:
|
|
1373
|
+
establishments: hn,
|
|
1374
|
+
establishment: yn,
|
|
1375
|
+
img: gn,
|
|
1376
|
+
candidateInvite: bn,
|
|
1377
|
+
cvtheque: wn,
|
|
1378
|
+
userProfile: Rn,
|
|
1379
|
+
recruitment: An,
|
|
1380
|
+
recruitmentKanban: Pn,
|
|
1381
|
+
career: vn,
|
|
1382
|
+
careerConfig: In,
|
|
1383
|
+
careerPreview: En,
|
|
1384
|
+
careerWebsite: Sn
|
|
1384
1385
|
};
|
|
1385
1386
|
}
|
|
1386
1387
|
const K = /* @__PURE__ */ new Set();
|
|
@@ -1404,7 +1405,7 @@ const B = (e) => {
|
|
|
1404
1405
|
for (const r of n)
|
|
1405
1406
|
M.add(r.substr(1));
|
|
1406
1407
|
}
|
|
1407
|
-
},
|
|
1408
|
+
}, ds = (e = {}) => {
|
|
1408
1409
|
if (M)
|
|
1409
1410
|
return M;
|
|
1410
1411
|
M = /* @__PURE__ */ new Set(), U = { ...U, ...e }, ie(document.styleSheets), new MutationObserver((s) => {
|
|
@@ -1423,58 +1424,58 @@ const B = (e) => {
|
|
|
1423
1424
|
childList: !0,
|
|
1424
1425
|
subtree: !0
|
|
1425
1426
|
});
|
|
1426
|
-
},
|
|
1427
|
+
}, ms = "0.2.29";
|
|
1427
1428
|
export {
|
|
1428
1429
|
F as BaseLogger,
|
|
1429
|
-
|
|
1430
|
+
is as Gmap,
|
|
1430
1431
|
k as SDKConfig,
|
|
1431
1432
|
E as SDKLogger,
|
|
1432
|
-
|
|
1433
|
-
|
|
1433
|
+
ms as VERSION,
|
|
1434
|
+
Yt as _clone,
|
|
1434
1435
|
$ as _get,
|
|
1435
1436
|
ne as _merge,
|
|
1436
1437
|
q as _set,
|
|
1437
|
-
|
|
1438
|
-
|
|
1438
|
+
os as createI18n,
|
|
1439
|
+
ss as inBrowser,
|
|
1439
1440
|
j as inNode,
|
|
1440
|
-
|
|
1441
|
-
|
|
1442
|
-
|
|
1443
|
-
|
|
1444
|
-
|
|
1441
|
+
On as useActivityRepository,
|
|
1442
|
+
en as useAnalyticsHublerApplication,
|
|
1443
|
+
rs as useAnalyticsIdentify,
|
|
1444
|
+
tn as useAnalyticsProfile,
|
|
1445
|
+
us as useAssetUrls,
|
|
1445
1446
|
_ as useAuthentication,
|
|
1446
|
-
|
|
1447
|
-
|
|
1448
|
-
|
|
1449
|
-
|
|
1450
|
-
|
|
1451
|
-
|
|
1452
|
-
|
|
1453
|
-
|
|
1454
|
-
|
|
1455
|
-
|
|
1456
|
-
|
|
1457
|
-
|
|
1458
|
-
|
|
1459
|
-
|
|
1460
|
-
|
|
1447
|
+
Xt as useAuthorization,
|
|
1448
|
+
ns as useAuthorizationStore,
|
|
1449
|
+
ts as useCanAccessEstablishmentMiddleware,
|
|
1450
|
+
Tn as useCandidateRepository,
|
|
1451
|
+
Dn as useCommentRepository,
|
|
1452
|
+
_n as useContractTypeRepository,
|
|
1453
|
+
xn as useCvbankRepository,
|
|
1454
|
+
Nn as useCvthequeRepository,
|
|
1455
|
+
jn as useDiplomaRepository,
|
|
1456
|
+
Bn as useDocumentRepository,
|
|
1457
|
+
ls as useDomainUrls,
|
|
1458
|
+
Fn as useEmailHistoryRepository,
|
|
1459
|
+
zn as useEmailRepository,
|
|
1460
|
+
Un as useEmailTemplateRepository,
|
|
1461
|
+
Qn as useEstablishmentCareerRepository,
|
|
1461
1462
|
ee as useEstablishmentRepository,
|
|
1462
|
-
|
|
1463
|
-
|
|
1464
|
-
|
|
1465
|
-
|
|
1466
|
-
|
|
1467
|
-
|
|
1468
|
-
|
|
1469
|
-
|
|
1470
|
-
|
|
1471
|
-
|
|
1472
|
-
|
|
1473
|
-
|
|
1463
|
+
qn as useFeatureFlagRepository,
|
|
1464
|
+
un as useI18n,
|
|
1465
|
+
Gn as useJobRepository,
|
|
1466
|
+
Hn as useLabelRepository,
|
|
1467
|
+
as as useLocaleTimeAgo,
|
|
1468
|
+
Vn as useOfferRepository,
|
|
1469
|
+
h as usePrivateRequest,
|
|
1470
|
+
cs as useQSAction,
|
|
1471
|
+
Kn as useRecruiterRepository,
|
|
1472
|
+
Jn as useRecruitmentRepository,
|
|
1473
|
+
Wn as useRegisterRepository,
|
|
1474
|
+
Zn as useRegistrationRepository,
|
|
1474
1475
|
w as useRequest,
|
|
1475
|
-
|
|
1476
|
-
|
|
1477
|
-
|
|
1478
|
-
|
|
1476
|
+
Xn as useSpecialityRepository,
|
|
1477
|
+
Yn as useTagRepository,
|
|
1478
|
+
es as useTalentRepository,
|
|
1479
|
+
ds as useUndefinedCssClasses,
|
|
1479
1480
|
te as useUserRepository
|
|
1480
1481
|
};
|