@hublo/mstaff-client-sdk 0.2.18 → 0.2.19

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.
Files changed (3) hide show
  1. package/dist/core.cjs +1 -1
  2. package/dist/core.js +232 -230
  3. package/package.json +1 -1
package/dist/core.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";var ue=Object.defineProperty;var le=(e,t,s)=>t in e?ue(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s;var I=(e,t,s)=>(le(e,typeof t!="symbol"?t+"":t,s),s);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const x=require("vue"),de=require("axios"),me=require("pinia"),fe=require("@vueuse/core");var V={expireTimes:"1d",path:"; path=/",domain:"",secure:!1,sameSite:"; SameSite=Lax"},pe=function(){function e(){this.current_default_config=V}return e.prototype.config=function(t){for(var s in this.current_default_config)this.current_default_config[s]=t[s]?t[s]:V[s]},e.prototype.get=function(t){var s=decodeURIComponent(document.cookie.replace(new RegExp("(?:(?:^|.*;)\\s*"+encodeURIComponent(t).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=\\s*([^;]*).*$)|^.*$"),"$1"))||null;if(s&&s.substring(0,1)==="{"&&s.substring(s.length-1,s.length)==="}")try{s=JSON.parse(s)}catch{return s}return s},e.prototype.set=function(t,s,n,r,a,d,p){if(t){if(/^(?:expires|max-age|path|domain|secure|SameSite)$/i.test(t))throw new Error('Cookie name illegality. Cannot be set to ["expires","max-age","path","domain","secure","SameSite"] current key name: '+t)}else throw new Error("Cookie name is not found in the first argument.");s&&s.constructor===Object&&(s=JSON.stringify(s));var u="";if(n==null&&(n=this.current_default_config.expireTimes?this.current_default_config.expireTimes:""),n&&n!=0)switch(n.constructor){case Number:n===1/0||n===-1?u="; expires=Fri, 31 Dec 9999 23:59:59 GMT":u="; max-age="+n;break;case String:if(/^(?:\d+(y|m|d|h|min|s))$/i.test(n)){var i=n.replace(/^(\d+)(?:y|m|d|h|min|s)$/i,"$1");switch(n.replace(/^(?:\d+)(y|m|d|h|min|s)$/i,"$1").toLowerCase()){case"m":u="; max-age="+ +i*2592e3;break;case"d":u="; max-age="+ +i*86400;break;case"h":u="; max-age="+ +i*3600;break;case"min":u="; max-age="+ +i*60;break;case"s":u="; max-age="+i;break;case"y":u="; max-age="+ +i*31104e3;break}}else u="; expires="+n;break;case Date:u="; expires="+n.toUTCString();break}return document.cookie=encodeURIComponent(t)+"="+encodeURIComponent(s)+u+(a?"; domain="+a:this.current_default_config.domain?this.current_default_config.domain:"")+(r?"; path="+r:this.current_default_config.path?this.current_default_config.path:"; path=/")+(d==null?this.current_default_config.secure?"; Secure":"":d?"; Secure":"")+(p==null?this.current_default_config.sameSite?"; SameSute="+this.current_default_config.sameSite:"":p?"; SameSite="+p:""),this},e.prototype.remove=function(t,s,n){return!t||!this.isKey(t)?!1:(document.cookie=encodeURIComponent(t)+"=; expires=Thu, 01 Jan 1970 00:00:00 GMT"+(n?"; domain="+n:this.current_default_config.domain?this.current_default_config.domain:"")+(s?"; path="+s:this.current_default_config.path?this.current_default_config.path:"; path=/")+"; SameSite=Lax",!0)},e.prototype.isKey=function(t){return new RegExp("(?:^|;\\s*)"+encodeURIComponent(t).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=").test(document.cookie)},e.prototype.keys=function(){if(!document.cookie)return[];for(var t=document.cookie.replace(/((?:^|\s*;)[^\=]+)(?=;|$)|^\s*|\s*(?:\=[^;]*)?(?:\1|$)/g,"").split(/\s*(?:\=[^;]*)?;\s*/),s=0;s<t.length;s++)t[s]=decodeURIComponent(t[s]);return t},e}(),j=null;function he(){j==null&&(j=new pe);var e=x.reactive(j);return{cookies:e}}function ye(){const{cookies:e}=he();function t(a){return e.get(a)}function s(a,d){return e.set(a,d)}function n(a){return e.remove(a)}function r(){e.keys().forEach(a=>n(a))}return{getItem:t,setItem:s,removeItem:n,clear:r}}let T=null;function O(e={auth:"token",refresh:"refresh_token",expiration:"token_expiration_date"},t=ye()){if(T)return T;function s(){return t.getItem(e.auth)}function n(){return t.getItem(e.refresh)}function r(){return t.getItem(e.expiration)}function a(m,f){const h=o(m);if(!h.exp)throw new Error("Invalid JWT token.");t.setItem(e.auth,m),t.setItem(e.refresh,f),t.setItem(e.expiration,((h.exp-60)*1e3).toString())}function d(){t.removeItem(e.auth),t.removeItem(e.refresh),t.removeItem(e.expiration)}function p(){return u()&&!i()}function u(){return!!s()}function i(){const m=r();return m?new Date(m)<new Date:!0}function o(m){return JSON.parse(atob(m.split(".")[1]))}function l(){return t}return T={keys:e,getAuthToken:s,getRefreshToken:n,getExpiration:r,authenticate:a,clear:d,isAuthenticated:p,hasAuth:u,isExpired:i,getStorage:l},T}function ge(e){let t={"Content-Type":"application/json"};e&&s(e);function s(h,b=!1){return t=b?h:{...t,...h},this}function n(){return t}function r(h,b){return t[h]=b,this}function a(h){return t[h]}function d(h){return t[h]&&delete t[h],this}function p(h){return r("Authorization","Bearer "+h),this}function u(){return d("Authorization"),this}function i(){return!!a("Authorization")}function o(){return r("Content-Type","multipart/form-data"),this}function l(){return r("Content-Type","application/json"),this}function m(){return a("Content-Type")==="multipart/form-data"}function f(){return a("Content-Type")==="application/json"}return{setHeaders:s,getHeaders:n,setHeader:r,getHeader:a,removeHeader:d,setAuthorization:p,removeAuthorization:u,hasAuthorization:i,setFormData:o,setJson:l,isFormData:m,isJson:f}}function be(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 Re(e,t,s){let n=null;s&&r(s);function r(i){if(!["post","put","patch"].includes(e.getMethod()))throw new Error("Payload can only be set for POST, PUT and PATCH requests.");return i instanceof FormData?t.setFormData():d(i)&&(i=p(i),t.setFormData()),t.isFormData()&&e.getMethod()==="put"&&(e.setMethod("post"),i.append("_method","PUT")),n=i,this}function a(){return n}function d(i){for(const o in i){const l=i[o];if(u(l))return!0;if(typeof l=="object"&&d(l))return!0}return!1}function p(i,o=null,l=0){const m=!o;m&&(o=new FormData);for(const f in i){const h=i[f];u(h)?(i[f]="<<FileIndex:"+l+">>",o.append(l,h,h.name),l++):typeof h=="object"&&(i[f]=p(i[f],o,l))}return m?(o.append("payload",JSON.stringify(i)),o):i}function u(i){return typeof File<"u"&&i instanceof File||typeof Blob<"u"&&i instanceof Blob}return{setPayload:r,getPayload:a}}const v=class v{constructor(t={}){I(this,"level",2);I(this,"logger");I(this,"prefix");this.logger=t.logger||console,this.prefix=t.prefix||""}setLevel(t){this.level=t}debug(...t){this.level<=v.LEVEL_DEBUG&&D(this.logger.debug,this.prefix,t)}info(...t){this.level<=v.LEVEL_INFO&&D(this.logger.info,this.prefix,t)}warn(...t){this.level<=v.LEVEL_WARN&&D(this.logger.warn,this.prefix,t)}error(...t){this.level<=v.LEVEL_ERROR&&D(this.logger.error,this.prefix,t)}};I(v,"LEVEL_DEBUG",0),I(v,"LEVEL_INFO",1),I(v,"LEVEL_WARN",2),I(v,"LEVEL_ERROR",3),I(v,"LEVEL_OFF",4);let N=v;const D=(e,t,s)=>{t?e(t,...s):e(...s)},E=new N({prefix:"[SDK]"});let Z=null,X=null,Y=null,ee="/",te=null;const we=()=>Z,Ae=e=>{if(E.info("[Config] Environment:",e),!e)throw new Error("Invalid environment.");Z=e},Pe=()=>X,ve=e=>{if(E.info("[Config] API Host:",e),!e)throw new Error("Invalid API host.");X=e},Ie=()=>te,Ee=e=>{te=e},Se=()=>Y,Ce=e=>{if(E.info("[Config] Main App Host:",e),!e)throw new Error("Invalid main app host.");Y=e},ke=e=>{E.info("[Config] Base Assets Urls:",e),ee=e},$e=()=>ee,C={getEnvironment:we,getApiHost:Pe,getErrorHandler:Ie,setEnvironment:Ae,setApiHost:ve,setErrorHandler:Ee,getMainAppHost:Se,setMainAppHost:Ce,setBaseAssetsUrl:ke,getBaseAssetsUrl:$e};function Le(e){const t=C.getApiHost().replace(/\/$/g,"");let s=null,n={},r={};e&&p(e);function a(){return t+u()+f()}function d(){return u(!0,!0)}function p(c){return s="/"+c.replace(/^\//g,""),this}function u(c=!0,w=!1){return c?s.replace(/:(\w+)/g,(A,S)=>w?"*":r[S]||":"+S):s}function i(c){return n=c,this}function o(c,w){return n[c]=w,this}function l(c){return n[c]&&delete n[c],this}function m(){return Object.keys(n).length>0}function f(c=!0){if(!m())return"";let w="";for(const A in n)if(Array.isArray(n[A]))for(const S of n[A])w+=(w.length?"&":"")+`${A}[]=`+S;else w+=(w.length?"&":"")+A+"="+n[A];return(c?"?":"")+w}function h(c){return r=c,this}function b(c,w){return r[c]=w,this}function $(c){return r[c]&&delete r[c],this}return{setPath:p,getPath:u,getUri:a,getMockUri:d,setQueryParams:i,setQueryParam:o,removeQueryParam:l,hasQuery:m,getQueryString:f,setRouteParams:h,setRouteParam:b,removeRouteParam:$}}function Me(e){let t=[];function s(){return t=i(arguments),d(),this}function n(){return t.length>0}function r(o){return t.includes(o.trim())?this:(t.push(o.trim()),d(),this)}function a(o){const l=t.indexOf(o.trim());return l===-1?this:(t.splice(l,1),d(),this)}function d(){t.length?e.setQueryParam("groups",u(t)):e.removeQueryParam("groups")}function p(o){return o.split(",").map(l=>l.trim())}function u(o){return o.join(",")}function i(o){let l=[];return o.length===1?typeof o[0]=="string"?l=p(o[0]):Array.isArray(o[0])&&(l=o[0]):l=Array.from(o),l}return{setGroups:s,hasGroups:n,addGroup:r,removeGroup:a}}function Oe(e){let t=!1,s=!1,n=1,r=10;function a(){return t=!0,d(),this}function d(){s=!0;const f=m(arguments);return i(f.page||1,!1),o(f.perPage||r,!1),l(),this}function p(){return s=!1,l(),this}function u(){return s}function i(f,h=!0){return t=!0,s=!0,n=f,h&&l(),this}function o(f,h=!0){return t=!0,s=!0,r=f,h&&l(),this}function l(){t?u()?(e.removeQueryParam("pagination"),e.setQueryParam("page",n),e.setQueryParam("nbResultPerPage",r)):(e.removeQueryParam("page"),e.removeQueryParam("nbResultPerPage"),e.setQueryParam("pagination","false")):(e.removeQueryParam("page"),e.removeQueryParam("nbResultPerPage"),e.removeQueryParam("pagination"))}function m(f){if(f.length===1&&typeof f[0]=="object")return f[0];const h={};return f.length>=1&&(h.page=f[0]),f.length>=2&&(h.perPage=f[1]),h}return{isList:a,paginate:d,disablePagination:p,hasPagination:u,setPage:i,setPerPage:o}}function Te(e){let t=!1,s="id",n="ASC";function r(){t=!0;const o=i(arguments);return o.orderBy&&d(o.orderBy,!1),o.orderDir&&p(o.orderDir,!1),u(),this}function a(){return t}function d(o,l=!0){return t=!0,s=o,l&&u(),this}function p(o,l=!0){if(o=o.toUpperCase(),["ASC","DESC"].indexOf(o)===-1)throw new Error("Invalid order direction");return t=!0,n=o,l&&u(),this}function u(){a()&&(e.setQueryParam("orderBy",s),e.setQueryParam("orderDirection",n))}function i(o){if(o.length===1&&typeof o[0]=="object")return o[0];const l={};return o.length>=1&&(l.orderBy=o[0]),o.length>=2&&(l.orderDir=o[1]),l}return{setOrder:r,hasOrder:a,setOrderBy:d,setOrderDir:p}}function De(){let e=!1;function t(){return e=!0,this}function s(){return e}return{setSilent:t,isSilent:s}}function _e(){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 xe(e){function t(){return e}function s(){return e.data}function n(){return e.data}return{getResponse:t,getData:s,getPayload:n}}function Ne(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 je(e){function t(){return e}function s(){return e.data}function n(){return e.data}function r(){return e.data["@type"]==="hydra:Collection"}function a(){return r()?e.data["hydra:member"]:null}function d(){return r()?e.data["hydra:totalItems"]:null}function p(){return r()?e.data["hydra:view"]&&e.data["hydra:view"]["hydra:last"]:!1}function u(){return!r()||!p()?null:parseInt(e.data["hydra:view"]["@id"].match(/page=(\d+)/)[1])}function i(){return!r()||!p()?null:parseInt(e.data["hydra:view"]["hydra:last"].match(/page=(\d+)/)[1])}return{getResponse:t,getData:s,getPayload:n,isCollection:r,getCollection:a,getTotal:d,hasPagination:p,getPage:u,getPages:i}}function qe(e,t,s,n,r,a){async function d(){const u=s.getMethod(),i=t.getUri(),o=e.getHeaders(),l=n.getPayload(),m=[i];["post","put","patch"].includes(u)&&m.push(l||{}),m.push({headers:o,responseType:a.getResponseType()}),E.info("[Request] Sending request:",`[${u.toUpperCase()}]`,i);try{const f=await de[u](...m);return p(f)}catch(f){throw Ne(f,r.isSilent())}}function p(u){if(u.headers){const i=Object.keys(u.headers),o=i.map(l=>l.toLowerCase()).indexOf("content-type");if(o!==-1&&u.headers[i[o]].includes("application/ld+json"))return je(u)}return xe(u)}return{send:d}}function R(e,t="get",s=null){const n=ge(),r=Le(e),a=be(t),d=Re(a,n,s),p=Me(r),u=Oe(r),i=Te(r),o=De(),l=_e(),m=qe(n,r,a,d,o,l);return{...n,...r,...a,...d,...p,...u,...i,...o,...l,...m}}function y(e,t="get",s=null){const n=R(e,t,s),r=O();r.isAuthenticated()&&n.setAuthorization(r.getAuthToken());const a=n.send;return n.send=async function(){if(!n.hasAuthorization())throw new Error("::SDK Request:: Request cannot be sent, missing authorization header.");return a()},n}const ze=(e,t)=>y("/v2/activity/candidate/:candidateId/establishment/:establishmentId").setRouteParams({candidateId:e,establishmentId:t}),Fe=()=>({listByCandidateAndEstablishment:ze}),Ue=(e,t,s)=>y("/candidate/:candidateId/share/establishment/:establishmentId").setMethod("post").setRouteParams({candidateId:e,establishmentId:t}).setPayload(s),Be=(e,t)=>y("/candidate/:candidateId/archive/establishment/:establishmentId").setRouteParams({candidateId:e,establishmentId:t}),Qe=(e,t)=>y("/candidate/:candidateId/archive/establishment/:establishmentId").setMethod("post").setRouteParams({candidateId:e,establishmentId:t}),He=(e,t)=>y("/candidate/:candidateId/archive/establishment/:establishmentId").setMethod("delete").setRouteParams({candidateId:e,establishmentId:t}),Ve=e=>y("/v2/candidates/lookup/email").setQueryParam("email",e),Ge=()=>({share:Ue,isArchived:Be,archive:Qe,unarchive:He,lookupCandidate:Ve}),Ke=(e,t)=>y("/comment/establishment/:establishmentId/candidate/:userId").setRouteParams({establishmentId:e,userId:t}),Je=(e,t,s)=>y("/comment/establishment/:establishmentId/candidate/:userId").setRouteParams({establishmentId:e,userId:t}).setMethod("post").setPayload(s),We=(e,t)=>y("/comment/:commentId").setRouteParams({commentId:e}).setMethod("put").setPayload(t),Ze=e=>y("/comment/:commentId").setRouteParams({commentId:e}).setMethod("delete"),Xe=()=>({getForEstablishmentCandidate:Ke,postForEstablishmentCandidate:Je,update:We,remove:Ze}),Ye=()=>R("contractType").isList().addGroup("Term:id").addGroup("Term:name"),et=()=>({list:Ye}),tt=e=>y("/v2/talents").isList().setQueryParam("establishment-id",e),nt=()=>({list:tt}),st=(e,t,s)=>y("/cvtheque/establishment/:establishmentId/candidate/:candidateId/label/synchronize").setRouteParams({establishmentId:e,candidateId:t}).setMethod("post").setPayload(s),rt=()=>({syncCandidateLabels:st}),it=()=>R("diploma").isList().addGroup("Term:id").addGroup("Term:name"),ot=()=>({list:it}),at=e=>y("document/candidate/:candidateId").setRouteParams({candidateId:e}).isList().disablePagination(),ct=(e,t)=>y("document/candidate/:candidateId/establishment/:establishmentId/recruiter").setRouteParams({candidateId:e,establishmentId:t}).isList().disablePagination(),ut=(e,t)=>y("document/candidate/:candidateId/establishment/:establishmentId/candidate").setRouteParams({candidateId:e,establishmentId:t}).isList().disablePagination(),lt=e=>y("document/recruiter").setMethod("post").setPayload(e),dt=e=>y("document/:documentId").setRouteParams({documentId:e}).setMethod("delete"),mt=()=>({listByCandidate:at,listByCandidateAndEstablishmentFromRecruiter:ct,listByCandidateAndEstablishmentFromCandidate:ut,addFromRecruiter:lt,remove:dt}),ft=(e,t)=>y("/v2/establishments/:establishmentId/email-history").setRouteParams({establishmentId:t}).setQueryParam("receiverId",e).isList().disablePagination(),pt=()=>({listByCandidateAndEstablishment:ft}),ht=(e,t)=>y("/email/candidate/:candidateId").setMethod("post").setRouteParams({candidateId:e}).setPayload(t),yt=(e,t)=>y("/v2/emails/send").setMethod("post").setFormData().setPayload({recipientIds:e,...t}),gt=()=>({sendToCandidate:ht,sendToRecipients:yt}),bt=(e,t=!0)=>{const s=y("/v2/establishments/:establishmentId/email-templates").setRouteParams({establishmentId:e}).isList().disablePagination();return t&&s.setQueryParam("global",!0),s},Rt=()=>y("/v2/self/email-templates").isList().disablePagination(),wt=()=>({listByEstablishment:bt,listSelf:Rt}),At=(e,t)=>y("establishment-career/:establishmentId/:versionId").setRouteParams({establishmentId:e,versionId:t}),Pt=(e,t="published")=>y("establishment-career/:establishmentId/state/:state").setRouteParams({establishmentId:e,state:t}),vt=(e,t,s=null)=>{const n=s!==null?y("establishment-career/:establishmentId/:versionId").setRouteParams({establishmentId:e,versionId:s}):y("establishment-career/:establishmentId").setRouteParams({establishmentId:e});return n.setMethod("post").setPayload(t),n},It=(e,t)=>y("establishment-career/:establishmentId/logo-banner").setMethod("post").setRouteParams({establishmentId:e}).setPayload(t),Et=(e,t,s)=>y("establishment-career/:establishmentId/publish/:versionId").setMethod("post").setRouteParams({establishmentId:e,versionId:t}).setPayload(s),St=()=>({readById:At,readByState:Pt,upsert:vt,uploadLogoAndBanner:It,publish:Et}),Ct=e=>R("establishment/:establishmentId").setRouteParams({establishmentId:e}),kt=e=>y("establishment/:establishmentId/authorizations").setRouteParams({establishmentId:e}),B=()=>({read:Ct,authorizations:kt}),$t=e=>R("feature-flag/maintenance").setMethod("post").setPayload(e),Lt=(e,t)=>R("feature-flag/establishment").setMethod("post").setPayload({establishment:e,flagName:t}),Mt=()=>({maintenanceModeEnabled:$t,forEstablishment:Lt}),Ot=()=>R("job").isList().addGroup("Term:id").addGroup("Term:name"),Tt=()=>({list:Ot}),Dt=e=>y("/label/establishment/:establishmentId").isList().setRouteParams({establishmentId:e}),_t=(e,t)=>y("/label/establishment/:establishmentId").setMethod("post").setRouteParams({establishmentId:e}).setPayload(t),xt=(e,t)=>y("/label/:labelId").setMethod("put").setRouteParams({labelId:e}).setPayload(t),Nt=e=>y("/label/:labelId").setMethod("delete").setRouteParams({labelId:e}),jt=(e,t,s)=>y("/label/establishment/:establishmentId/candidate/:candidateId/synchronize").setMethod("post").setPayload(s).setRouteParams({establishmentId:e,candidateId:t}),qt=()=>({listByEstablishment:Dt,addToEstablishment:_t,update:xt,remove:Nt,syncForCandidate:jt}),zt=e=>R("offer/:offerId").setRouteParams({offerId:e}),Ft=()=>({read:zt}),Ut=(e,t=!1)=>{const s=y("/recruiter/establishment/:establishmentId").isList().setRouteParams({establishmentId:e});return t&&s.setQueryParam("exclude-me",1),s},Bt=()=>({listByEstablishment:Ut}),Qt=e=>y("/recruitment/establishment/:establishmentId/mine").isList().setRouteParams({establishmentId:e}),Ht=(e,t)=>y("/recruitment/mine/establishment/:establishmentId/has-not/candidate/:candidateId").isList().setRouteParams({establishmentId:e,candidateId:t}),Vt=(e,t)=>y("/recruitment/mine/establishment/:establishmentId/has/candidate/:candidateId").isList().setRouteParams({establishmentId:e,candidateId:t}),Gt=(e,t)=>y("/recruitment/establishment/:establishmentId/has/candidate/:candidateId").isList().setRouteParams({establishmentId:e,candidateId:t}),Kt=(e,t)=>y("/recruitment/:recruitmentId/candidate").setMethod("put").setRouteParams({recruitmentId:e}).setPayload(t),Jt=(e,t)=>y("/recruitment/:recruitmentId/candidate/:candidateId").setMethod("delete").setRouteParams({recruitmentId:e,candidateId:t}),Wt=()=>({mineByEstablishment:Qt,mineWithoutCandidate:Ht,mineWithCandidate:Vt,withCandidate:Gt,addCandidates:Kt,removeCandidate:Jt}),Zt=(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},Xt=(e,t)=>R("candidate/register/update/:token").setMethod("post").setRouteParams({token:e}).setPayload(t),Yt=e=>R("candidate/register/read/:token").setRouteParams({token:e}),en=e=>R("candidate/register/close/:token").setMethod("post").setRouteParams({token:e}),tn=()=>({open:Zt,update:Xt,read:Yt,close:en}),nn=(e,t)=>y("/v2/registrations/lookup/candidate/establishment").setQueryParam("candidate-id",e).setQueryParam("establishment-id",t),sn=()=>({lookupEstablishment:nn}),rn=()=>R("speciality").isList().addGroup("Term:id").addGroup("Term:name"),on=()=>({list:rn}),an=e=>y("/tag/public/establishment/:establishmentId").isList().setRouteParams({establishmentId:e}),cn=()=>({listByEstablishment:an}),un=(e,t)=>y("/v2/talents/lookup").setQueryParam("candidate-id",e).setQueryParam("establishment-id",t),ln=()=>({lookupTalent:un}),dn=e=>R("user/email/isset/:email").setRouteParams({email:e}),mn=()=>y("user/self").addGroup("user:self"),fn=e=>y("/user/:uuid").setRouteParams({uuid:e}),pn=e=>R("/user/:uuid").setRouteParams({uuid:e}),Q=()=>({emailExists:dn,self:mn,byUuidPrivate:fn,byUuid:pn});let _;function ne(){if(_)return _;const e={user:void 0,roles:[],establishments:{}},t=async()=>{if(!O().isAuthenticated())throw new Error("::SDK Authorization:: User not authenticated");const i=(await Q().self().send()).getData();e.user={id:i.id,email:i.email,firstName:i.firstName,lastName:i.lastName,avatar:i.avatar},e.roles=i.roles},s=async i=>{if(!O().isAuthenticated())throw new Error("::SDK Authorization:: User not authenticated");e.establishments[i]=(await B().authorizations(i).send()).getData()},n=i=>{if(e.user===void 0)throw new Error("::SDK Authorization:: User not fetched");return e.roles.includes(i)};return _={fetchSelf:t,fetchPermission:s,hasRole:n,hasRoleRH:()=>n("ROLE_RH"),hasRoleCandidate:()=>n("ROLE_CANDIDATE"),hasRoleAdmin:()=>n("ROLE_ADMIN"),hasPermission:(i,...o)=>{const l=e.establishments[i];if(l===void 0)throw new Error(`::SDK Authorization:: Permissions not fetched for establishment ${i}`);return o.every(m=>l[m]===!0)},clear:()=>{e.user=void 0,e.roles=[],e.establishments={}}},_}async function hn(e,...t){if(!O().isAuthenticated())throw"ERR_NOT_AUTHENTICATED";const n=ne();await Promise.all([n.fetchSelf(),n.fetchPermission(e)]);for(let r=0;r<t.length;r++){const a=t[r];if(!n.hasPermission(e,a))throw"ERR_MISSING_PERMISSION"}}const yn=me.defineStore("authorization",{state:()=>({user:void 0,establishments:{}}),getters:{roles:e=>e.user.roles??[],isRH(){return this.roles.includes("ROLE_RH")},isCandidate(){return this.roles.includes("ROLE_CANDIDATE")},isAdmin(){return this.roles.includes("ROLE_ADMIN")}},actions:{async fetchSelf(e){if(this.user===void 0||e){const t=await Q().self().send();this.user=t.getData()}},async fetchPermission(e,t){if(!this.establishments[e]||t){const s=await B().authorizations(e).send();this.establishments[e]=s.getData()}},hasPermission(e,...t){const s=this.establishments[e];return s===void 0?!1:t.every(n=>s[n]===!0)}}}),k=(e,t,s)=>{const n=typeof t=="string"?t.split("."):[t];let r=e;for(const[a,d]of n.entries()){if(a===n.length-1)return r[d]!==void 0?r[d]:s;if(!(d in r)||typeof r[d]!="object")return s;r=r[d]}return s},z=(e,t,s)=>{const n=typeof t=="string"?t.split("."):[t],r=p=>typeof p=="number"||/^\d$/g.test(p),a=p=>parseInt(p,10);let d=e;return n.forEach((p,u)=>{if(u===n.length-1)d[p]=s;else{const i=r(n[u+1])?[]:{};p=r(p)?a(p):p,d[p]=d[p]??i,d=d[p]}}),e},se=e=>{if(typeof e=="object"){if(Array.isArray(e))return[...e];if(Object(e)===e)return{...e}}return e},H=(e,t)=>{const s={...e};for(const[n,r]of Object.entries(t))n in s&&typeof s[n]=="object"&&typeof r=="object"?s[n]=H(s[n],r):s[n]=se(r);return s};let L=null;function g(){if(L)return L;const e=C.getEnvironment(),t=(()=>e==="prod"||e==="production"?"pPROC7dPoJ7XdxHrwsTQNXCGX79MJjhp":e==="staging"?"823rqOTwVk1ZCWVyBAdLInZ77TcFF0CF":"TMZX6evFnu87JrBHV5qLwHsld5C6hilZ")(),s=!!t,n=e!=="prod"&&e!=="production";let r=null;function a(){return s}function d(){const m=window.analytics=window.analytics||[];if(!m.initialize&&m.invoked)E.error("Segment snippet included twice.");else{m.invoked=!0,m.methods=["trackSubmit","trackClick","trackLink","trackForm","pageview","identify","reset","group","track","ready","alias","debug","page","once","off","on","addSourceMiddleware","addIntegrationMiddleware","setAnonymousId","addDestinationMiddleware"],m.factory=function(f){return function(){if(window.analytics.initialized)return window.analytics[f].apply(window.analytics,arguments);const h=Array.prototype.slice.call(arguments);return h.unshift(f),m.push(h),m}};for(let f=0;f<m.methods.length;f++){const h=m.methods[f];m[h]=m.factory(h)}m.load=function(f,h){const b=document.createElement("script");b.id="analytics-script",b.type="text/javascript",b.async=!0,b.src="https://cdn.segment.com/analytics.js/v1/"+f+"/analytics.min.js",b.onerror=()=>window.dispatchEvent(new Event("analytics-error"));const $=document.getElementsByTagName("script")[0];$.parentNode.insertBefore(b,$),m._loadOptions=h},m._writeKey=t,m.SNIPPET_VERSION="4.16.1",m.load(t),m.page(),m.ready(()=>window.dispatchEvent(new Event("analytics-ready")))}}async function p(){return r!==null||(r=new Promise((m,f)=>{if(!a())return l("Analytics is disabled."),m();if(window.addEventListener("analytics-ready",()=>{l("Analytics script loaded successfully."),m()}),window.addEventListener("analytics-error",()=>{l("Analytics script failed to load. Consider disabling your AdBlocker.",null,"error"),f()}),l("Loading Analytics script."),window.analytics)return m();d()})),r}async function u(m,f){try{if(await this.analyticsScriptReady(),l("[identify]",[m,f]),a())return window.analytics.identify(m,f)}catch{l("[identify]",[m,f],"error")}}async function i(m,f,h){typeof h!="object"&&(h={});try{if(await this.analyticsScriptReady(),l("[page]",[m,f,h]),a())return window.analytics.page(m,{category:f,...h})}catch{l("[page]",[m,f,h],"error")}}async function o(m,f,h){typeof h!="object"&&(h={});try{if(await this.analyticsScriptReady(),l("[track]",[m,f,h]),a())return window.analytics.track(m,{category:f,...h})}catch{l("[track]",[m,f,h],"error")}}function l(m,f=[],h="info"){f||(f=[]),n&&E[h](`%cⒶ%c ::SDK Analytics:: ${m}`,"color: green;","color: inherit;",...f)}return L={analyticsScriptReady:p,isEnabled:a,identify:u,page:i,track:o,consoleMessage:l},L}g.destroy=()=>L=null;function re(){const e="Hubler Application";function t(i){var l;if(!i)throw new Error(`Missing arguments for domain "${e}"`);const o=!!i.offerId;if(o&&!i.recruitmentId)throw new Error(`Missing argument "recruitmentId" for domain "${e}"`);return{companyId:(l=i.establishmentId)==null?void 0:l.toString(),jobOfferId:o?i.offerId.toString():null,recruitmentId:o?i.recruitmentId.toString():null,selections:[o?"Application":"Spontaneous Application"]}}async function s(i){return g().page("Application Authentication Viewed",e,t(i))}async function n(i){return g().page("Application Magic Link Viewed",e,t(i))}async function r(i){return g().page("Application Job Viewed",e,t(i))}async function a(i){return g().page("Application Information Viewed",e,t(i))}async function d(i){return g().page("Application Document Viewed",e,t(i))}async function p(i){return g().page("Application Success Viewed",e,t(i))}async function u(i){if(!i.error)throw new Error(`Missing argument "error" for domain "${e}", event "Application Form Failed"`);return g().track("Application Form Failed",e,{...t(i),error:i.error})}return{applicationAuthenticationViewed:s,applicationMagicLinkViewed:n,applicationJobViewed:r,applicationInformationViewed:a,applicationDocumentViewed:d,applicationSuccessViewed:p,applicationFormFailed:u}}function ie(){const e="Profile";function t(c,w){var S;if(!c)throw new Error(`Missing arguments for domain "${e}"`);const A={companyId:c.companyId?c.companyId.toString():null,hublerId:(S=c.hublerId)==null?void 0:S.toString()};return w&&(A.productId=c.companyId?c.companyId+"_2":null),c.recruitmentId&&(A.recruitmentId=c.recruitmentId.toString()),c.selections&&(A.selections=c.selections),c.institutionId&&(A.institutionId=c.institutionId.map(String)),A}async function s(c){return g().track(c.name,e,t(c.properties),!0)}async function n(c){return g().track(c.name,e,t(c.properties,!0))}async function r(c){return g().track(c.name,e,t(c.properties,!0))}async function a(c){return g().track(c.name,e,t(c.properties,!0))}async function d(c){return g().track(c.name,e,t(c.properties,!0))}async function p(c){return g().track(c.name,e,t(c.properties,!0))}async function u(c){return g().track(c.name,e,t(c.properties,!0))}async function i(c){return g().track(c.name,e,t(c.properties,!0))}async function o(c){return g().track(c.name,e,t(c.properties,!0))}async function l(c){return g().track(c.name,e,t(c.properties,!0))}async function m(c){return g().track(c.name,e,t(c.properties,!0))}async function f(c){return g().track(c.name,e,t(c.properties,!0))}async function h(c){return g().track(c.name,e,t(c.properties,!0))}async function b(c){return g().page(c.name,c.properties.category,t(c.properties,!1))}async function $(c){return g().track(c.name,e,t(c.properties,!1))}return{profileDocumentDeleted:s,profileLabelAdded:n,profileLabelRemoved:r,profileShared:a,profileArchived:d,profileCandidateAdded:p,profileCommentAdded:u,profileDocumentAdded:i,profileDocumentDownloaded:o,profileDocumentRequested:l,profileRecruitmentAdded:m,profileRecruitmentRemoved:f,profileTabSelected:h,profileViewed:b,profileEmailSent:$}}const G=Object.freeze(Object.defineProperty({__proto__:null,useAnalyticsHublerApplication:re,useAnalyticsProfile:ie},Symbol.toStringTag,{value:"Module"}));function gn(){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 bn="AIzaSyDicyRD6rvVdnicp1tgV0ElazASNGbyyTs",oe=()=>new Promise(e=>{window.google&&window.google.maps?e():(window.addEventListener("gmap-ready",()=>e()),An())}),Rn=(e,t)=>oe().then(()=>wn(e,t)),wn=(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(n)})},An=()=>{window.onGmapScriptReady=function(){};const e=document.createElement("script");e.src="https://maps.googleapis.com/maps/api/js?key="+bn+"&libraries=places&callback=onGmapScriptReady",e.async=!0,e.defer=!0,e.onload=()=>window.dispatchEvent(new Event("gmap-ready")),document.body.appendChild(e)},Pn={scriptReady:oe,autocompleteInput:Rn},vn={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"}},In={fr:vn};let F=null;const ae=()=>F,En=(e={})=>{let t=e.locale||"fr";const s=u=>t=u,n=()=>t,r=H(In,(e==null?void 0:e.messages)||{}),a=(u,i)=>{const o=k(r,`${t}.${u}`);return o?i?Sn(o,i):o:u},d=(u,i)=>{const o=k(r,`${t}.${u}`);return o?Cn(o,i):u};return F={t:a,tNode:d,setLocale:s,getLocale:n,install:u=>{u.config.globalProperties.$t=a,u.config.globalProperties.$tNode=d}},F},Sn=(e,t)=>e?e.replace(/{{ ?([a-zA-Z_.]+) ?}}/g,(s,n)=>k(t,n)):null,Cn=(e,t)=>{if(!e)return null;const s=e.split(/(\{[{%]+[^{}]*[%}]+})/g).filter(n=>n!=="").map(n=>{const r=n.startsWith("{%")&&n.endsWith("%}")?"slot":n.startsWith("{{")&&n.endsWith("}}")?"variable":"text";if(r==="text")return()=>K.text(n);n=n.replace(/[{}%]/g,"").trim();const a=n.match(/^[a-zA-Z_.]+/)[0];n=n.replace(a,"").trim();const d={};return n!==""&&([...n.matchAll(/([a-zA-Z_.]+)(=([a-zA-Z_.]+))?/g)].reduce((i,o)=>(o[3]===void 0?z(i,o[1],k(t,o[1])):z(i,o[1],k(t,o[3])),i),d),[...n.matchAll(/([a-zA-Z_.]+)="([^"]+)"/g)].reduce((i,o)=>{let l=o[2];return new RegExp(/^[0-9]*$/).exec(o[2])?l=parseInt(o[2]):new RegExp(/^(true|false)$/).exec(o[2])&&(l=o[2]==="true"),i[o[1]]=l,i},d)),p=>K[r](a,t,p,d)});return{setup:(n,{slots:r})=>()=>s.map(a=>a(r))}},K={slot:(e,t,s,n)=>x.h("span",{class:"node node--slot"},s[e.trim()](n)),variable:(e,t)=>x.h("span",{class:"node node--variable"},k(t,e.trim())),text:e=>x.h("span",{class:"node node--text"},e)};function kn(e){const{t}=ae(),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 fe.useTimeAgo(e,{fullDateFormatter:n=>n.toLocaleDateString(),messages:s})}function $n(){let e=null;function t(){return e}function s(){return e.controller}function n(){return"use"+e.controller.charAt(0).toUpperCase()+e.controller.slice(1)+"QSController"}function r(){return e.action}function a(){return e.arguments}function d(){return!!(e&&e.controller&&e.action)}function p(){window.location.search.length!==0&&(e=window.location.search.substring(1).split("&").reduce((u,i)=>{const o=i.split("=");return o[0]==="controller"||o[0]==="action"?u[o[0]]=decodeURIComponent(o[1]):u.arguments[o[0]]=decodeURIComponent(o[1]),u},{controller:null,action:null,arguments:{}}))}return p(),{getParams:t,getController:s,getControllerComposableName:n,getAction:r,getArguments:a,hasAction:d}}function Ln(){async function e({domain:n,event:r,...a}){const d="useAnalytics"+n.charAt(0).toUpperCase()+n.slice(1);if(!t(d))throw new Error(`Domain ${n} is not defined`);const p=G[d]();if(!s(p,r))throw new Error(`Event ${r} is not defined in domain ${n}`);return p[r](a)}function t(n){return!!G[n]}function s(n,r){return!!n[r]}return{call:e}}const J=Object.freeze(Object.defineProperty({__proto__:null,useAnalyticsQSController:Ln},Symbol.toStringTag,{value:"Module"}));function Mn(e){if(!e.hasAction())throw new Error("No action found in router");function t(){if(!s())throw new Error(`Controller ${e.getController()} not found`);const r=J[e.getControllerComposableName()]();if(!n(r))throw new Error(`Action ${e.getAction()} not found in controller ${e.getController()}`);return r[e.getAction()](e.getArguments())}function s(){return e.getControllerComposableName()in J}function n(r){return e.getAction()in r}return{dispatch:t}}function On(){let e=!1;function t(r,a,d){n(),d()}function s(r,a,d){if(!e)return e=!0,t(r,a,d);d()}function n(){const r=$n();if(!r.hasAction())return;Mn(r).dispatch()}return{vueRouterBeforeEach:t,vueRouterBeforeFirst:s,handle:n}}const Tn=()=>({getAssetUrl:t=>`${C.getBaseAssetsUrl()}${t}`}),P=()=>C.getMainAppHost(),Dn=()=>`${P()}/rh/establishments`,_n=e=>`${P()}/rh/establishment/${e}`,xn=e=>e&&typeof e=="object"&&e.urls&&e.urls.display?e.urls.display:"",Nn=e=>`${P()}/rh/establishment/${e}/cvtheque/`,jn=(e,t)=>`${P()}/user-profile/establishment/${e}/user/${t}`,qn=(e,t)=>`${P()}/rh/establishment/${e}/recruitment/${t}`,zn=(e,t)=>`${P()}/rh/establishment/${e}/recruitment/${t}/kanban`,Fn=e=>`${P()}/rh/establishment/${e}/career-configuration`,Un=(e,t=null)=>t?`${P()}/career-website/${e}/${t}`:`${P()}/career-website/${e}`,Bn=(e,t)=>`${P()}/career-website-preview/${e}/${t}`,Qn=(e,t=null)=>{const s=P().replace("://",`://${e}.`);return t?`${s}?_version=${t}`:`${s}`};function Hn(){return{root:P,establishments:Dn,establishment:_n,img:xn,cvtheque:Nn,userProfile:jn,recruitment:qn,recruitmentKanban:zn,career:Fn,careerConfig:Un,careerPreview:Bn,careerWebsite:Qn}}const W=new Set;let M,U={ignore:e=>e.startsWith("Ui")};const q=e=>{if(e!=null&&e.classList){e._cssChecked=!0;for(const t of e.classList)M.has(t)||W.has(t)||U.ignore(t)||(W.add(t),E.error(`Undefined CSS class: ${t}`))}},ce=e=>{var t;for(const s of e)if(s!=null&&s.cssRules&&(s==null?void 0:s.cssRules.length)>0)ce(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))}},Vn=(e={})=>{if(M)return M;M=new Set,U={...U,...e},ce(document.styleSheets),new MutationObserver(s=>{for(const n of s)if(n.type==="childList"&&(n!=null&&n.addedNodes)){for(const r of n.addedNodes)if(!(r.nodeType===3||r.nodeType===8)){q(r);for(const a of r.querySelectorAll("*"))q(a)}}else(n==null?void 0:n.attributeName)==="class"&&q(n.target)}).observe(document,{attributes:!0,childList:!0,subtree:!0})},Gn="0.2.17";exports.BaseLogger=N;exports.Gmap=Pn;exports.SDKConfig=C;exports.SDKLogger=E;exports.VERSION=Gn;exports._clone=se;exports._get=k;exports._merge=H;exports._set=z;exports.createI18n=En;exports.useActivityRepository=Fe;exports.useAnalyticsHublerApplication=re;exports.useAnalyticsIdentify=gn;exports.useAnalyticsProfile=ie;exports.useAssetUrls=Tn;exports.useAuthentication=O;exports.useAuthorization=ne;exports.useAuthorizationStore=yn;exports.useCanAccessEstablishmentMiddleware=hn;exports.useCandidateRepository=Ge;exports.useCommentRepository=Xe;exports.useContractTypeRepository=et;exports.useCvbankRepository=nt;exports.useCvthequeRepository=rt;exports.useDiplomaRepository=ot;exports.useDocumentRepository=mt;exports.useDomainUrls=Hn;exports.useEmailHistoryRepository=pt;exports.useEmailRepository=gt;exports.useEmailTemplateRepository=wt;exports.useEstablishmentCareerRepository=St;exports.useEstablishmentRepository=B;exports.useFeatureFlagRepository=Mt;exports.useI18n=ae;exports.useJobRepository=Tt;exports.useLabelRepository=qt;exports.useLocaleTimeAgo=kn;exports.useOfferRepository=Ft;exports.usePrivateRequest=y;exports.useQSAction=On;exports.useRecruiterRepository=Bt;exports.useRecruitmentRepository=Wt;exports.useRegisterRepository=tn;exports.useRegistrationRepository=sn;exports.useRequest=R;exports.useSpecialityRepository=on;exports.useTagRepository=cn;exports.useTalentRepository=ln;exports.useUndefinedCssClasses=Vn;exports.useUserRepository=Q;
1
+ "use strict";var le=Object.defineProperty;var de=(e,t,s)=>t in e?le(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s;var I=(e,t,s)=>(de(e,typeof t!="symbol"?t+"":t,s),s);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const x=require("vue"),me=require("axios"),fe=require("pinia"),pe=require("@vueuse/core");var V={expireTimes:"1d",path:"; path=/",domain:"",secure:!1,sameSite:"; SameSite=Lax"},he=function(){function e(){this.current_default_config=V}return e.prototype.config=function(t){for(var s in this.current_default_config)this.current_default_config[s]=t[s]?t[s]:V[s]},e.prototype.get=function(t){var s=decodeURIComponent(document.cookie.replace(new RegExp("(?:(?:^|.*;)\\s*"+encodeURIComponent(t).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=\\s*([^;]*).*$)|^.*$"),"$1"))||null;if(s&&s.substring(0,1)==="{"&&s.substring(s.length-1,s.length)==="}")try{s=JSON.parse(s)}catch{return s}return s},e.prototype.set=function(t,s,n,r,a,d,p){if(t){if(/^(?:expires|max-age|path|domain|secure|SameSite)$/i.test(t))throw new Error('Cookie name illegality. Cannot be set to ["expires","max-age","path","domain","secure","SameSite"] current key name: '+t)}else throw new Error("Cookie name is not found in the first argument.");s&&s.constructor===Object&&(s=JSON.stringify(s));var u="";if(n==null&&(n=this.current_default_config.expireTimes?this.current_default_config.expireTimes:""),n&&n!=0)switch(n.constructor){case Number:n===1/0||n===-1?u="; expires=Fri, 31 Dec 9999 23:59:59 GMT":u="; max-age="+n;break;case String:if(/^(?:\d+(y|m|d|h|min|s))$/i.test(n)){var i=n.replace(/^(\d+)(?:y|m|d|h|min|s)$/i,"$1");switch(n.replace(/^(?:\d+)(y|m|d|h|min|s)$/i,"$1").toLowerCase()){case"m":u="; max-age="+ +i*2592e3;break;case"d":u="; max-age="+ +i*86400;break;case"h":u="; max-age="+ +i*3600;break;case"min":u="; max-age="+ +i*60;break;case"s":u="; max-age="+i;break;case"y":u="; max-age="+ +i*31104e3;break}}else u="; expires="+n;break;case Date:u="; expires="+n.toUTCString();break}return document.cookie=encodeURIComponent(t)+"="+encodeURIComponent(s)+u+(a?"; domain="+a:this.current_default_config.domain?this.current_default_config.domain:"")+(r?"; path="+r:this.current_default_config.path?this.current_default_config.path:"; path=/")+(d==null?this.current_default_config.secure?"; Secure":"":d?"; Secure":"")+(p==null?this.current_default_config.sameSite?"; SameSute="+this.current_default_config.sameSite:"":p?"; SameSite="+p:""),this},e.prototype.remove=function(t,s,n){return!t||!this.isKey(t)?!1:(document.cookie=encodeURIComponent(t)+"=; expires=Thu, 01 Jan 1970 00:00:00 GMT"+(n?"; domain="+n:this.current_default_config.domain?this.current_default_config.domain:"")+(s?"; path="+s:this.current_default_config.path?this.current_default_config.path:"; path=/")+"; SameSite=Lax",!0)},e.prototype.isKey=function(t){return new RegExp("(?:^|;\\s*)"+encodeURIComponent(t).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=").test(document.cookie)},e.prototype.keys=function(){if(!document.cookie)return[];for(var t=document.cookie.replace(/((?:^|\s*;)[^\=]+)(?=;|$)|^\s*|\s*(?:\=[^;]*)?(?:\1|$)/g,"").split(/\s*(?:\=[^;]*)?;\s*/),s=0;s<t.length;s++)t[s]=decodeURIComponent(t[s]);return t},e}(),j=null;function ye(){j==null&&(j=new he);var e=x.reactive(j);return{cookies:e}}function ge(){const{cookies:e}=ye();function t(a){return e.get(a)}function s(a,d){return e.set(a,d)}function n(a){return e.remove(a)}function r(){e.keys().forEach(a=>n(a))}return{getItem:t,setItem:s,removeItem:n,clear:r}}let T=null;function O(e={auth:"token",refresh:"refresh_token",expiration:"token_expiration_date"},t=ge()){if(T)return T;function s(){return t.getItem(e.auth)}function n(){return t.getItem(e.refresh)}function r(){return t.getItem(e.expiration)}function a(m,f){const h=o(m);if(!h.exp)throw new Error("Invalid JWT token.");t.setItem(e.auth,m),t.setItem(e.refresh,f),t.setItem(e.expiration,((h.exp-60)*1e3).toString())}function d(){t.removeItem(e.auth),t.removeItem(e.refresh),t.removeItem(e.expiration)}function p(){return u()&&!i()}function u(){return!!s()}function i(){const m=r();return m?new Date(m)<new Date:!0}function o(m){return JSON.parse(atob(m.split(".")[1]))}function l(){return t}return T={keys:e,getAuthToken:s,getRefreshToken:n,getExpiration:r,authenticate:a,clear:d,isAuthenticated:p,hasAuth:u,isExpired:i,getStorage:l},T}function be(e){let t={"Content-Type":"application/json"};e&&s(e);function s(h,b=!1){return t=b?h:{...t,...h},this}function n(){return t}function r(h,b){return t[h]=b,this}function a(h){return t[h]}function d(h){return t[h]&&delete t[h],this}function p(h){return r("Authorization","Bearer "+h),this}function u(){return d("Authorization"),this}function i(){return!!a("Authorization")}function o(){return r("Content-Type","multipart/form-data"),this}function l(){return r("Content-Type","application/json"),this}function m(){return a("Content-Type")==="multipart/form-data"}function f(){return a("Content-Type")==="application/json"}return{setHeaders:s,getHeaders:n,setHeader:r,getHeader:a,removeHeader:d,setAuthorization:p,removeAuthorization:u,hasAuthorization:i,setFormData:o,setJson:l,isFormData:m,isJson:f}}function Re(e){let t=null;e&&s(e);function s(r){if(r=r.toLowerCase(),!["get","post","put","patch","delete"].includes(r))throw new Error("Invalid method.");return t=r,this}function n(){return t}return{setMethod:s,getMethod:n}}function we(e,t,s){let n=null;s&&r(s);function r(i){if(!["post","put","patch"].includes(e.getMethod()))throw new Error("Payload can only be set for POST, PUT and PATCH requests.");return i instanceof FormData?t.setFormData():d(i)&&(i=p(i),t.setFormData()),t.isFormData()&&e.getMethod()==="put"&&(e.setMethod("post"),i.append("_method","PUT")),n=i,this}function a(){return n}function d(i){for(const o in i){const l=i[o];if(u(l))return!0;if(typeof l=="object"&&d(l))return!0}return!1}function p(i,o=null,l=0){const m=!o;m&&(o=new FormData);for(const f in i){const h=i[f];u(h)?(i[f]="<<FileIndex:"+l+">>",o.append(l,h,h.name),l++):typeof h=="object"&&(i[f]=p(i[f],o,l))}return m?(o.append("payload",JSON.stringify(i)),o):i}function u(i){return typeof File<"u"&&i instanceof File||typeof Blob<"u"&&i instanceof Blob}return{setPayload:r,getPayload:a}}const v=class v{constructor(t={}){I(this,"level",2);I(this,"logger");I(this,"prefix");this.logger=t.logger||console,this.prefix=t.prefix||""}setLevel(t){this.level=t}debug(...t){this.level<=v.LEVEL_DEBUG&&D(this.logger.debug,this.prefix,t)}info(...t){this.level<=v.LEVEL_INFO&&D(this.logger.info,this.prefix,t)}warn(...t){this.level<=v.LEVEL_WARN&&D(this.logger.warn,this.prefix,t)}error(...t){this.level<=v.LEVEL_ERROR&&D(this.logger.error,this.prefix,t)}};I(v,"LEVEL_DEBUG",0),I(v,"LEVEL_INFO",1),I(v,"LEVEL_WARN",2),I(v,"LEVEL_ERROR",3),I(v,"LEVEL_OFF",4);let N=v;const D=(e,t,s)=>{t?e(t,...s):e(...s)},E=new N({prefix:"[SDK]"});let Z=null,X=null,Y=null,ee="/",te=null;const Ae=()=>Z,Pe=e=>{if(E.info("[Config] Environment:",e),!e)throw new Error("Invalid environment.");Z=e},ve=()=>X,Ie=e=>{if(E.info("[Config] API Host:",e),!e)throw new Error("Invalid API host.");X=e},Ee=()=>te,Se=e=>{te=e},Ce=()=>Y,ke=e=>{if(E.info("[Config] Main App Host:",e),!e)throw new Error("Invalid main app host.");Y=e},$e=e=>{E.info("[Config] Base Assets Urls:",e),ee=e},Le=()=>ee,C={getEnvironment:Ae,getApiHost:ve,getErrorHandler:Ee,setEnvironment:Pe,setApiHost:Ie,setErrorHandler:Se,getMainAppHost:Ce,setMainAppHost:ke,setBaseAssetsUrl:$e,getBaseAssetsUrl:Le};function Me(e){const t=C.getApiHost().replace(/\/$/g,"");let s=null,n={},r={};e&&p(e);function a(){return t+u()+f()}function d(){return u(!0,!0)}function p(c){return s="/"+c.replace(/^\//g,""),this}function u(c=!0,w=!1){return c?s.replace(/:(\w+)/g,(A,S)=>w?"*":r[S]||":"+S):s}function i(c){return n=c,this}function o(c,w){return n[c]=w,this}function l(c){return n[c]&&delete n[c],this}function m(){return Object.keys(n).length>0}function f(c=!0){if(!m())return"";let w="";for(const A in n)if(Array.isArray(n[A]))for(const S of n[A])w+=(w.length?"&":"")+`${A}[]=`+S;else w+=(w.length?"&":"")+A+"="+n[A];return(c?"?":"")+w}function h(c){return r=c,this}function b(c,w){return r[c]=w,this}function $(c){return r[c]&&delete r[c],this}return{setPath:p,getPath:u,getUri:a,getMockUri:d,setQueryParams:i,setQueryParam:o,removeQueryParam:l,hasQuery:m,getQueryString:f,setRouteParams:h,setRouteParam:b,removeRouteParam:$}}function Oe(e){let t=[];function s(){return t=i(arguments),d(),this}function n(){return t.length>0}function r(o){return t.includes(o.trim())?this:(t.push(o.trim()),d(),this)}function a(o){const l=t.indexOf(o.trim());return l===-1?this:(t.splice(l,1),d(),this)}function d(){t.length?e.setQueryParam("groups",u(t)):e.removeQueryParam("groups")}function p(o){return o.split(",").map(l=>l.trim())}function u(o){return o.join(",")}function i(o){let l=[];return o.length===1?typeof o[0]=="string"?l=p(o[0]):Array.isArray(o[0])&&(l=o[0]):l=Array.from(o),l}return{setGroups:s,hasGroups:n,addGroup:r,removeGroup:a}}function Te(e){let t=!1,s=!1,n=1,r=10;function a(){return t=!0,d(),this}function d(){s=!0;const f=m(arguments);return i(f.page||1,!1),o(f.perPage||r,!1),l(),this}function p(){return s=!1,l(),this}function u(){return s}function i(f,h=!0){return t=!0,s=!0,n=f,h&&l(),this}function o(f,h=!0){return t=!0,s=!0,r=f,h&&l(),this}function l(){t?u()?(e.removeQueryParam("pagination"),e.setQueryParam("page",n),e.setQueryParam("nbResultPerPage",r)):(e.removeQueryParam("page"),e.removeQueryParam("nbResultPerPage"),e.setQueryParam("pagination","false")):(e.removeQueryParam("page"),e.removeQueryParam("nbResultPerPage"),e.removeQueryParam("pagination"))}function m(f){if(f.length===1&&typeof f[0]=="object")return f[0];const h={};return f.length>=1&&(h.page=f[0]),f.length>=2&&(h.perPage=f[1]),h}return{isList:a,paginate:d,disablePagination:p,hasPagination:u,setPage:i,setPerPage:o}}function De(e){let t=!1,s="id",n="ASC";function r(){t=!0;const o=i(arguments);return o.orderBy&&d(o.orderBy,!1),o.orderDir&&p(o.orderDir,!1),u(),this}function a(){return t}function d(o,l=!0){return t=!0,s=o,l&&u(),this}function p(o,l=!0){if(o=o.toUpperCase(),["ASC","DESC"].indexOf(o)===-1)throw new Error("Invalid order direction");return t=!0,n=o,l&&u(),this}function u(){a()&&(e.setQueryParam("orderBy",s),e.setQueryParam("orderDirection",n))}function i(o){if(o.length===1&&typeof o[0]=="object")return o[0];const l={};return o.length>=1&&(l.orderBy=o[0]),o.length>=2&&(l.orderDir=o[1]),l}return{setOrder:r,hasOrder:a,setOrderBy:d,setOrderDir:p}}function _e(){let e=!1;function t(){return e=!0,this}function s(){return e}return{setSilent:t,isSilent:s}}function xe(){let e="json";function t(n="json"){if(["arraybuffer","document","json","text","stream","blob"].indexOf(n)===-1)throw new Error("Invalid response type");return e=n,this}function s(){return e}return{setResponseType:t,getResponseType:s}}function Ne(e){function t(){return e}function s(){return e.data}function n(){return e.data}return{getResponse:t,getData:s,getPayload:n}}function je(e,t=!1){let s=!1,n=!1;return e.response?(s=!0,n=!0):e.request&&(s=!0),!t&&C.getErrorHandler()&&C.getErrorHandler()(e),{sent:s,responded:n,error:e}}function qe(e){function t(){return e}function s(){return e.data}function n(){return e.data}function r(){return e.data["@type"]==="hydra:Collection"}function a(){return r()?e.data["hydra:member"]:null}function d(){return r()?e.data["hydra:totalItems"]:null}function p(){return r()?e.data["hydra:view"]&&e.data["hydra:view"]["hydra:last"]:!1}function u(){return!r()||!p()?null:parseInt(e.data["hydra:view"]["@id"].match(/page=(\d+)/)[1])}function i(){return!r()||!p()?null:parseInt(e.data["hydra:view"]["hydra:last"].match(/page=(\d+)/)[1])}return{getResponse:t,getData:s,getPayload:n,isCollection:r,getCollection:a,getTotal:d,hasPagination:p,getPage:u,getPages:i}}function ze(e,t,s,n,r,a){async function d(){const u=s.getMethod(),i=t.getUri(),o=e.getHeaders(),l=n.getPayload(),m=[i];["post","put","patch"].includes(u)&&m.push(l||{}),m.push({headers:o,responseType:a.getResponseType()}),E.info("[Request] Sending request:",`[${u.toUpperCase()}]`,i);try{const f=await me[u](...m);return p(f)}catch(f){throw je(f,r.isSilent())}}function p(u){if(u.headers){const i=Object.keys(u.headers),o=i.map(l=>l.toLowerCase()).indexOf("content-type");if(o!==-1&&u.headers[i[o]].includes("application/ld+json"))return qe(u)}return Ne(u)}return{send:d}}function R(e,t="get",s=null){const n=be(),r=Me(e),a=Re(t),d=we(a,n,s),p=Oe(r),u=Te(r),i=De(r),o=_e(),l=xe(),m=ze(n,r,a,d,o,l);return{...n,...r,...a,...d,...p,...u,...i,...o,...l,...m}}function y(e,t="get",s=null){const n=R(e,t,s),r=O();r.isAuthenticated()&&n.setAuthorization(r.getAuthToken());const a=n.send;return n.send=async function(){if(!n.hasAuthorization())throw new Error("::SDK Request:: Request cannot be sent, missing authorization header.");return a()},n}const Fe=(e,t)=>y("/v2/activity/candidate/:candidateId/establishment/:establishmentId").setRouteParams({candidateId:e,establishmentId:t}),Ue=()=>({listByCandidateAndEstablishment:Fe}),Be=(e,t,s)=>y("/candidate/:candidateId/share/establishment/:establishmentId").setMethod("post").setRouteParams({candidateId:e,establishmentId:t}).setPayload(s),Qe=(e,t)=>y("/candidate/:candidateId/archive/establishment/:establishmentId").setRouteParams({candidateId:e,establishmentId:t}),He=(e,t)=>y("/candidate/:candidateId/archive/establishment/:establishmentId").setMethod("post").setRouteParams({candidateId:e,establishmentId:t}),Ve=(e,t)=>y("/candidate/:candidateId/archive/establishment/:establishmentId").setMethod("delete").setRouteParams({candidateId:e,establishmentId:t}),Ge=e=>y("/v2/candidates/lookup/email").setQueryParam("email",e),Ke=()=>({share:Be,isArchived:Qe,archive:He,unarchive:Ve,lookupCandidate:Ge}),Je=(e,t)=>y("/comment/establishment/:establishmentId/candidate/:userId").setRouteParams({establishmentId:e,userId:t}),We=(e,t,s)=>y("/comment/establishment/:establishmentId/candidate/:userId").setRouteParams({establishmentId:e,userId:t}).setMethod("post").setPayload(s),Ze=(e,t)=>y("/comment/:commentId").setRouteParams({commentId:e}).setMethod("put").setPayload(t),Xe=e=>y("/comment/:commentId").setRouteParams({commentId:e}).setMethod("delete"),Ye=()=>({getForEstablishmentCandidate:Je,postForEstablishmentCandidate:We,update:Ze,remove:Xe}),et=()=>R("contractType").isList().addGroup("Term:id").addGroup("Term:name"),tt=()=>({list:et}),nt=e=>y("/v2/talents").isList().setQueryParam("establishment-id",e),st=()=>({list:nt}),rt=(e,t,s)=>y("/cvtheque/establishment/:establishmentId/candidate/:candidateId/label/synchronize").setRouteParams({establishmentId:e,candidateId:t}).setMethod("post").setPayload(s),it=()=>({syncCandidateLabels:rt}),ot=()=>R("diploma").isList().addGroup("Term:id").addGroup("Term:name"),at=()=>({list:ot}),ct=e=>y("document/candidate/:candidateId").setRouteParams({candidateId:e}).isList().disablePagination(),ut=(e,t)=>y("document/candidate/:candidateId/establishment/:establishmentId/recruiter").setRouteParams({candidateId:e,establishmentId:t}).isList().disablePagination(),lt=(e,t)=>y("document/candidate/:candidateId/establishment/:establishmentId/candidate").setRouteParams({candidateId:e,establishmentId:t}).isList().disablePagination(),dt=e=>y("document/recruiter").setMethod("post").setPayload(e),mt=e=>y("document/:documentId").setRouteParams({documentId:e}).setMethod("delete"),ft=()=>({listByCandidate:ct,listByCandidateAndEstablishmentFromRecruiter:ut,listByCandidateAndEstablishmentFromCandidate:lt,addFromRecruiter:dt,remove:mt}),pt=(e,t)=>y("/v2/establishments/:establishmentId/email-history").setRouteParams({establishmentId:t}).setQueryParam("receiverId",e).isList().disablePagination(),ht=()=>({listByCandidateAndEstablishment:pt}),yt=(e,t)=>y("/email/candidate/:candidateId").setMethod("post").setRouteParams({candidateId:e}).setPayload(t),gt=(e,t)=>y("/v2/emails/send").setMethod("post").setFormData().setPayload({recipientIds:e,...t}),bt=()=>({sendToCandidate:yt,sendToRecipients:gt}),Rt=(e,t=!0)=>{const s=y("/v2/establishments/:establishmentId/email-templates").setRouteParams({establishmentId:e}).isList().disablePagination();return t&&s.setQueryParam("global",!0),s},wt=()=>y("/v2/self/email-templates").isList().disablePagination(),At=()=>({listByEstablishment:Rt,listSelf:wt}),Pt=(e,t)=>y("establishment-career/:establishmentId/:versionId").setRouteParams({establishmentId:e,versionId:t}),vt=(e,t="published")=>y("establishment-career/:establishmentId/state/:state").setRouteParams({establishmentId:e,state:t}),It=(e,t,s=null)=>{const n=s!==null?y("establishment-career/:establishmentId/:versionId").setRouteParams({establishmentId:e,versionId:s}):y("establishment-career/:establishmentId").setRouteParams({establishmentId:e});return n.setMethod("post").setPayload(t),n},Et=(e,t)=>y("establishment-career/:establishmentId/logo-banner").setMethod("post").setRouteParams({establishmentId:e}).setPayload(t),St=(e,t,s)=>y("establishment-career/:establishmentId/publish/:versionId").setMethod("post").setRouteParams({establishmentId:e,versionId:t}).setPayload(s),Ct=()=>({readById:Pt,readByState:vt,upsert:It,uploadLogoAndBanner:Et,publish:St}),kt=e=>R("establishment/:establishmentId").setRouteParams({establishmentId:e}),$t=e=>y("establishment/:establishmentId/authorizations").setRouteParams({establishmentId:e}),B=()=>({read:kt,authorizations:$t}),Lt=e=>R("feature-flag/maintenance").setMethod("post").setPayload(e),Mt=(e,t)=>R("feature-flag/establishment").setMethod("post").setPayload({establishment:e,flagName:t}),Ot=()=>({maintenanceModeEnabled:Lt,forEstablishment:Mt}),Tt=()=>R("job").isList().addGroup("Term:id").addGroup("Term:name"),Dt=()=>({list:Tt}),_t=e=>y("/label/establishment/:establishmentId").isList().setRouteParams({establishmentId:e}),xt=(e,t)=>y("/label/establishment/:establishmentId").setMethod("post").setRouteParams({establishmentId:e}).setPayload(t),Nt=(e,t)=>y("/label/:labelId").setMethod("put").setRouteParams({labelId:e}).setPayload(t),jt=e=>y("/label/:labelId").setMethod("delete").setRouteParams({labelId:e}),qt=(e,t,s)=>y("/label/establishment/:establishmentId/candidate/:candidateId/synchronize").setMethod("post").setPayload(s).setRouteParams({establishmentId:e,candidateId:t}),zt=()=>({listByEstablishment:_t,addToEstablishment:xt,update:Nt,remove:jt,syncForCandidate:qt}),Ft=e=>R("offer/:offerId").setRouteParams({offerId:e}),Ut=()=>({read:Ft}),Bt=(e,t=!1)=>{const s=y("/recruiter/establishment/:establishmentId").isList().setRouteParams({establishmentId:e});return t&&s.setQueryParam("exclude-me",1),s},Qt=()=>({listByEstablishment:Bt}),Ht=e=>y("/recruitment/establishment/:establishmentId/mine").isList().setRouteParams({establishmentId:e}),Vt=(e,t)=>y("/recruitment/mine/establishment/:establishmentId/has-not/candidate/:candidateId").isList().setRouteParams({establishmentId:e,candidateId:t}),Gt=(e,t)=>y("/recruitment/mine/establishment/:establishmentId/has/candidate/:candidateId").isList().setRouteParams({establishmentId:e,candidateId:t}),Kt=(e,t)=>y("/recruitment/establishment/:establishmentId/has/candidate/:candidateId").isList().setRouteParams({establishmentId:e,candidateId:t}),Jt=(e,t)=>y("/recruitment/:recruitmentId/candidate").setMethod("put").setRouteParams({recruitmentId:e}).setPayload(t),Wt=(e,t)=>y("/recruitment/:recruitmentId/candidate/:candidateId").setMethod("delete").setRouteParams({recruitmentId:e,candidateId:t}),Zt=()=>({mineByEstablishment:Ht,mineWithoutCandidate:Vt,mineWithCandidate:Gt,withCandidate:Kt,addCandidates:Jt,removeCandidate:Wt}),Xt=(e,t,s,n=null)=>{const r=R("candidate/register/open").setMethod("post"),a={email:e};return t==="establishment"&&(a.establishmentId=s),t==="offer"&&(a.offerId=s),n&&(a.referer=n),r.setPayload(a),r},Yt=(e,t)=>R("candidate/register/update/:token").setMethod("post").setRouteParams({token:e}).setPayload(t),en=e=>R("candidate/register/read/:token").setRouteParams({token:e}),tn=e=>R("candidate/register/close/:token").setMethod("post").setRouteParams({token:e}),nn=()=>({open:Xt,update:Yt,read:en,close:tn}),sn=(e,t)=>y("/v2/registrations/lookup/candidate/establishment").setQueryParam("candidate-id",e).setQueryParam("establishment-id",t),rn=()=>({lookupEstablishment:sn}),on=()=>R("speciality").isList().addGroup("Term:id").addGroup("Term:name"),an=()=>({list:on}),cn=e=>y("/tag/public/establishment/:establishmentId").isList().setRouteParams({establishmentId:e}),un=()=>({listByEstablishment:cn}),ln=(e,t)=>y("/v2/talents/lookup").setQueryParam("candidate-id",e).setQueryParam("establishment-id",t),dn=()=>({lookupTalent:ln}),mn=e=>R("user/email/isset/:email").setRouteParams({email:e}),fn=()=>y("user/self").addGroup("user:self"),pn=e=>y("/user/:uuid").setRouteParams({uuid:e}),hn=e=>R("/user/:uuid").setRouteParams({uuid:e}),Q=()=>({emailExists:mn,self:fn,byUuidPrivate:pn,byUuid:hn});let _;function ne(){if(_)return _;const e={user:void 0,roles:[],establishments:{}},t=async()=>{if(!O().isAuthenticated())throw new Error("::SDK Authorization:: User not authenticated");const i=(await Q().self().send()).getData();e.user={id:i.id,email:i.email,firstName:i.firstName,lastName:i.lastName,avatar:i.avatar},e.roles=i.roles},s=async i=>{if(!O().isAuthenticated())throw new Error("::SDK Authorization:: User not authenticated");e.establishments[i]=(await B().authorizations(i).send()).getData()},n=i=>{if(e.user===void 0)throw new Error("::SDK Authorization:: User not fetched");return e.roles.includes(i)};return _={fetchSelf:t,fetchPermission:s,hasRole:n,hasRoleRH:()=>n("ROLE_RH"),hasRoleCandidate:()=>n("ROLE_CANDIDATE"),hasRoleAdmin:()=>n("ROLE_ADMIN"),hasPermission:(i,...o)=>{const l=e.establishments[i];if(l===void 0)throw new Error(`::SDK Authorization:: Permissions not fetched for establishment ${i}`);return o.every(m=>l[m]===!0)},clear:()=>{e.user=void 0,e.roles=[],e.establishments={}}},_}async function yn(e,...t){if(!O().isAuthenticated())throw"ERR_NOT_AUTHENTICATED";const n=ne();await Promise.all([n.fetchSelf(),n.fetchPermission(e)]);for(let r=0;r<t.length;r++){const a=t[r];if(!n.hasPermission(e,a))throw"ERR_MISSING_PERMISSION"}}const gn=fe.defineStore("authorization",{state:()=>({user:void 0,establishments:{}}),getters:{roles:e=>e.user.roles??[],isRH(){return this.roles.includes("ROLE_RH")},isCandidate(){return this.roles.includes("ROLE_CANDIDATE")},isAdmin(){return this.roles.includes("ROLE_ADMIN")}},actions:{async fetchSelf(e){if(this.user===void 0||e){const t=await Q().self().send();this.user=t.getData()}},async fetchPermission(e,t){if(!this.establishments[e]||t){const s=await B().authorizations(e).send();this.establishments[e]=s.getData()}},hasPermission(e,...t){const s=this.establishments[e];return s===void 0?!1:t.every(n=>s[n]===!0)}}}),k=(e,t,s)=>{const n=typeof t=="string"?t.split("."):[t];let r=e;for(const[a,d]of n.entries()){if(a===n.length-1)return r[d]!==void 0?r[d]:s;if(!(d in r)||typeof r[d]!="object")return s;r=r[d]}return s},z=(e,t,s)=>{const n=typeof t=="string"?t.split("."):[t],r=p=>typeof p=="number"||/^\d$/g.test(p),a=p=>parseInt(p,10);let d=e;return n.forEach((p,u)=>{if(u===n.length-1)d[p]=s;else{const i=r(n[u+1])?[]:{};p=r(p)?a(p):p,d[p]=d[p]??i,d=d[p]}}),e},se=e=>{if(typeof e=="object"){if(Array.isArray(e))return[...e];if(Object(e)===e)return{...e}}return e},H=(e,t)=>{const s={...e};for(const[n,r]of Object.entries(t))n in s&&typeof s[n]=="object"&&typeof r=="object"?s[n]=H(s[n],r):s[n]=se(r);return s};let L=null;function g(){if(L)return L;const e=C.getEnvironment(),t=(()=>e==="prod"||e==="production"?"pPROC7dPoJ7XdxHrwsTQNXCGX79MJjhp":e==="staging"?"823rqOTwVk1ZCWVyBAdLInZ77TcFF0CF":"TMZX6evFnu87JrBHV5qLwHsld5C6hilZ")(),s=!!t,n=e!=="prod"&&e!=="production";let r=null;function a(){return s}function d(){const m=window.analytics=window.analytics||[];if(!m.initialize&&m.invoked)E.error("Segment snippet included twice.");else{m.invoked=!0,m.methods=["trackSubmit","trackClick","trackLink","trackForm","pageview","identify","reset","group","track","ready","alias","debug","page","once","off","on","addSourceMiddleware","addIntegrationMiddleware","setAnonymousId","addDestinationMiddleware"],m.factory=function(f){return function(){if(window.analytics.initialized)return window.analytics[f].apply(window.analytics,arguments);const h=Array.prototype.slice.call(arguments);return h.unshift(f),m.push(h),m}};for(let f=0;f<m.methods.length;f++){const h=m.methods[f];m[h]=m.factory(h)}m.load=function(f,h){const b=document.createElement("script");b.id="analytics-script",b.type="text/javascript",b.async=!0,b.src="https://cdn.segment.com/analytics.js/v1/"+f+"/analytics.min.js",b.onerror=()=>window.dispatchEvent(new Event("analytics-error"));const $=document.getElementsByTagName("script")[0];$.parentNode.insertBefore(b,$),m._loadOptions=h},m._writeKey=t,m.SNIPPET_VERSION="4.16.1",m.load(t),m.page(),m.ready(()=>window.dispatchEvent(new Event("analytics-ready")))}}async function p(){return r!==null||(r=new Promise((m,f)=>{if(!a())return l("Analytics is disabled."),m();if(window.addEventListener("analytics-ready",()=>{l("Analytics script loaded successfully."),m()}),window.addEventListener("analytics-error",()=>{l("Analytics script failed to load. Consider disabling your AdBlocker.",null,"error"),f()}),l("Loading Analytics script."),window.analytics)return m();d()})),r}async function u(m,f){try{if(await this.analyticsScriptReady(),l("[identify]",[m,f]),a())return window.analytics.identify(m,f)}catch{l("[identify]",[m,f],"error")}}async function i(m,f,h){typeof h!="object"&&(h={});try{if(await this.analyticsScriptReady(),l("[page]",[m,f,h]),a())return window.analytics.page(m,{category:f,...h})}catch{l("[page]",[m,f,h],"error")}}async function o(m,f,h){typeof h!="object"&&(h={});try{if(await this.analyticsScriptReady(),l("[track]",[m,f,h]),a())return window.analytics.track(m,{category:f,...h})}catch{l("[track]",[m,f,h],"error")}}function l(m,f=[],h="info"){f||(f=[]),n&&E[h](`%cⒶ%c ::SDK Analytics:: ${m}`,"color: green;","color: inherit;",...f)}return L={analyticsScriptReady:p,isEnabled:a,identify:u,page:i,track:o,consoleMessage:l},L}g.destroy=()=>L=null;function re(){const e="Hubler Application";function t(i){var l;if(!i)throw new Error(`Missing arguments for domain "${e}"`);const o=!!i.offerId;if(o&&!i.recruitmentId)throw new Error(`Missing argument "recruitmentId" for domain "${e}"`);return{companyId:(l=i.establishmentId)==null?void 0:l.toString(),jobOfferId:o?i.offerId.toString():null,recruitmentId:o?i.recruitmentId.toString():null,selections:[o?"Application":"Spontaneous Application"]}}async function s(i){return g().page("Application Authentication Viewed",e,t(i))}async function n(i){return g().page("Application Magic Link Viewed",e,t(i))}async function r(i){return g().page("Application Job Viewed",e,t(i))}async function a(i){return g().page("Application Information Viewed",e,t(i))}async function d(i){return g().page("Application Document Viewed",e,t(i))}async function p(i){return g().page("Application Success Viewed",e,t(i))}async function u(i){if(!i.error)throw new Error(`Missing argument "error" for domain "${e}", event "Application Form Failed"`);return g().track("Application Form Failed",e,{...t(i),error:i.error})}return{applicationAuthenticationViewed:s,applicationMagicLinkViewed:n,applicationJobViewed:r,applicationInformationViewed:a,applicationDocumentViewed:d,applicationSuccessViewed:p,applicationFormFailed:u}}function ie(){const e="Profile";function t(c,w){var S;if(!c)throw new Error(`Missing arguments for domain "${e}"`);const A={companyId:c.companyId?c.companyId.toString():null,hublerId:(S=c.hublerId)==null?void 0:S.toString()};return w&&(A.productId=c.companyId?c.companyId+"_2":null),c.recruitmentId&&(A.recruitmentId=c.recruitmentId.toString()),c.selections&&(A.selections=c.selections),c.institutionId&&(A.institutionId=c.institutionId.map(String)),A}async function s(c){return g().track(c.name,e,t(c.properties),!0)}async function n(c){return g().track(c.name,e,t(c.properties,!0))}async function r(c){return g().track(c.name,e,t(c.properties,!0))}async function a(c){return g().track(c.name,e,t(c.properties,!0))}async function d(c){return g().track(c.name,e,t(c.properties,!0))}async function p(c){return g().track(c.name,e,t(c.properties,!0))}async function u(c){return g().track(c.name,e,t(c.properties,!0))}async function i(c){return g().track(c.name,e,t(c.properties,!0))}async function o(c){return g().track(c.name,e,t(c.properties,!0))}async function l(c){return g().track(c.name,e,t(c.properties,!0))}async function m(c){return g().track(c.name,e,t(c.properties,!0))}async function f(c){return g().track(c.name,e,t(c.properties,!0))}async function h(c){return g().track(c.name,e,t(c.properties,!0))}async function b(c){return g().page(c.name,c.properties.category,t(c.properties,!1))}async function $(c){return g().track(c.name,e,t(c.properties,!1))}return{profileDocumentDeleted:s,profileLabelAdded:n,profileLabelRemoved:r,profileShared:a,profileArchived:d,profileCandidateAdded:p,profileCommentAdded:u,profileDocumentAdded:i,profileDocumentDownloaded:o,profileDocumentRequested:l,profileRecruitmentAdded:m,profileRecruitmentRemoved:f,profileTabSelected:h,profileViewed:b,profileEmailSent:$}}const G=Object.freeze(Object.defineProperty({__proto__:null,useAnalyticsHublerApplication:re,useAnalyticsProfile:ie},Symbol.toStringTag,{value:"Module"}));function bn(){function e(s){return g().identify(s.id,{email:s.email,firstName:s.firstname,lastName:s.lastname,createdAt:s.createdAt,type:"Hubler",lang:"fr",medium:t()?"MOBILE_DEVICE":"WEB_BROWSER"})}function t(){let s=!1;return function(n){(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i.test(n)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(n.substr(0,4)))&&(s=!0)}(navigator.userAgent||navigator.vendor||window.opera),s}return{identifyCandidate:e}}const Rn="AIzaSyDicyRD6rvVdnicp1tgV0ElazASNGbyyTs";let oe=!1;const ae=()=>new Promise(e=>{oe||window.google&&window.google.maps?e():(window.addEventListener("gmap-ready",()=>e()),Pn())}),wn=(e,t)=>ae().then(()=>An(e,t)),An=(e,t)=>{const s=new window.google.maps.places.Autocomplete(e,{componentRestrictions:{country:["fr","re","yt","gp","mq"]}});window.google.maps.event.addListener(s,"place_changed",()=>{const n=s.getPlace();n.formatted_address&&t&&t(n.formatted_address,n)})},Pn=()=>{window.onGmapScriptReady=function(){};const e=document.createElement("script");e.src="https://maps.googleapis.com/maps/api/js?key="+Rn+"&libraries=places&callback=onGmapScriptReady",e.async=!0,e.defer=!0,e.onload=()=>window.dispatchEvent(new Event("gmap-ready")),document.body.appendChild(e),oe=!0},vn={scriptReady:ae,autocompleteInput:wn},In={common:{the:"le",from:"de"},timeAgo:{"just-now":"à l'instant",ago:"il y a {0}",in:"dans {0}","last-month":"le mois dernier","next-month":"le mois prochain",month:"mois | mois","last-year":"l'année dernière","next-year":"l'année prochaine",year:"an | ans",yesterday:"hier",tomorrow:"demain",day:"jour | jours","last-week":"la semaine dernière","next-week":"la semaine prochaine",week:"semaine | semaines",hour:"heure | heures",minute:"minute | minutes",second:"seconde | secondes"}},En={fr:In};let F=null;const ce=()=>F,Sn=(e={})=>{let t=e.locale||"fr";const s=u=>t=u,n=()=>t,r=H(En,(e==null?void 0:e.messages)||{}),a=(u,i)=>{const o=k(r,`${t}.${u}`);return o?i?Cn(o,i):o:u},d=(u,i)=>{const o=k(r,`${t}.${u}`);return o?kn(o,i):u};return F={t:a,tNode:d,setLocale:s,getLocale:n,install:u=>{u.config.globalProperties.$t=a,u.config.globalProperties.$tNode=d}},F},Cn=(e,t)=>e?e.replace(/{{ ?([a-zA-Z_.]+) ?}}/g,(s,n)=>k(t,n)):null,kn=(e,t)=>{if(!e)return null;const s=e.split(/(\{[{%]+[^{}]*[%}]+})/g).filter(n=>n!=="").map(n=>{const r=n.startsWith("{%")&&n.endsWith("%}")?"slot":n.startsWith("{{")&&n.endsWith("}}")?"variable":"text";if(r==="text")return()=>K.text(n);n=n.replace(/[{}%]/g,"").trim();const a=n.match(/^[a-zA-Z_.]+/)[0];n=n.replace(a,"").trim();const d={};return n!==""&&([...n.matchAll(/([a-zA-Z_.]+)(=([a-zA-Z_.]+))?/g)].reduce((i,o)=>(o[3]===void 0?z(i,o[1],k(t,o[1])):z(i,o[1],k(t,o[3])),i),d),[...n.matchAll(/([a-zA-Z_.]+)="([^"]+)"/g)].reduce((i,o)=>{let l=o[2];return new RegExp(/^[0-9]*$/).exec(o[2])?l=parseInt(o[2]):new RegExp(/^(true|false)$/).exec(o[2])&&(l=o[2]==="true"),i[o[1]]=l,i},d)),p=>K[r](a,t,p,d)});return{setup:(n,{slots:r})=>()=>s.map(a=>a(r))}},K={slot:(e,t,s,n)=>x.h("span",{class:"node node--slot"},s[e.trim()](n)),variable:(e,t)=>x.h("span",{class:"node node--variable"},k(t,e.trim())),text:e=>x.h("span",{class:"node node--text"},e)};function $n(e){const{t}=ce(),s={justNow:t("timeAgo.just-now"),past:n=>n.match(/\d/)?t("timeAgo.ago",[n]):n,future:n=>n.match(/\d/)?t("timeAgo.in",[n]):n,month:(n,r)=>n===1?t(r?"timeAgo.last-month":"timeAgo.next-month"):`${n} ${t("timeAgo.month",n)}`,year:(n,r)=>n===1?t(r?"timeAgo.last-year":"timeAgo.next-year"):`${n} ${t("timeAgo.year",n)}`,day:(n,r)=>n===1?t(r?"timeAgo.yesterday":"timeAgo.tomorrow"):`${n} ${t("timeAgo.day",n)}`,week:(n,r)=>n===1?t(r?"timeAgo.last-week":"timeAgo.next-week"):`${n} ${t("timeAgo.week",n)}`,hour:n=>`${n} ${t("timeAgo.hour",n)}`,minute:n=>`${n} ${t("timeAgo.minute",n)}`,second:n=>`${n} ${t("timeAgo.second",n)}`,invalid:""};return pe.useTimeAgo(e,{fullDateFormatter:n=>n.toLocaleDateString(),messages:s})}function Ln(){let e=null;function t(){return e}function s(){return e.controller}function n(){return"use"+e.controller.charAt(0).toUpperCase()+e.controller.slice(1)+"QSController"}function r(){return e.action}function a(){return e.arguments}function d(){return!!(e&&e.controller&&e.action)}function p(){window.location.search.length!==0&&(e=window.location.search.substring(1).split("&").reduce((u,i)=>{const o=i.split("=");return o[0]==="controller"||o[0]==="action"?u[o[0]]=decodeURIComponent(o[1]):u.arguments[o[0]]=decodeURIComponent(o[1]),u},{controller:null,action:null,arguments:{}}))}return p(),{getParams:t,getController:s,getControllerComposableName:n,getAction:r,getArguments:a,hasAction:d}}function Mn(){async function e({domain:n,event:r,...a}){const d="useAnalytics"+n.charAt(0).toUpperCase()+n.slice(1);if(!t(d))throw new Error(`Domain ${n} is not defined`);const p=G[d]();if(!s(p,r))throw new Error(`Event ${r} is not defined in domain ${n}`);return p[r](a)}function t(n){return!!G[n]}function s(n,r){return!!n[r]}return{call:e}}const J=Object.freeze(Object.defineProperty({__proto__:null,useAnalyticsQSController:Mn},Symbol.toStringTag,{value:"Module"}));function On(e){if(!e.hasAction())throw new Error("No action found in router");function t(){if(!s())throw new Error(`Controller ${e.getController()} not found`);const r=J[e.getControllerComposableName()]();if(!n(r))throw new Error(`Action ${e.getAction()} not found in controller ${e.getController()}`);return r[e.getAction()](e.getArguments())}function s(){return e.getControllerComposableName()in J}function n(r){return e.getAction()in r}return{dispatch:t}}function Tn(){let e=!1;function t(r,a,d){n(),d()}function s(r,a,d){if(!e)return e=!0,t(r,a,d);d()}function n(){const r=Ln();if(!r.hasAction())return;On(r).dispatch()}return{vueRouterBeforeEach:t,vueRouterBeforeFirst:s,handle:n}}const Dn=()=>({getAssetUrl:t=>`${C.getBaseAssetsUrl()}${t}`}),P=()=>C.getMainAppHost(),_n=()=>`${P()}/rh/establishments`,xn=e=>`${P()}/rh/establishment/${e}`,Nn=e=>e&&typeof e=="object"&&e.urls&&e.urls.display?e.urls.display:"",jn=e=>`${P()}/rh/establishment/${e}/cvtheque/`,qn=(e,t)=>`${P()}/user-profile/establishment/${e}/user/${t}`,zn=(e,t)=>`${P()}/rh/establishment/${e}/recruitment/${t}`,Fn=(e,t)=>`${P()}/rh/establishment/${e}/recruitment/${t}/kanban`,Un=e=>`${P()}/rh/establishment/${e}/career-configuration`,Bn=(e,t=null)=>t?`${P()}/career-website/${e}/${t}`:`${P()}/career-website/${e}`,Qn=(e,t)=>`${P()}/career-website-preview/${e}/${t}`,Hn=(e,t=null)=>{const s=P().replace("://",`://${e}.`);return t?`${s}?_version=${t}`:`${s}`};function Vn(){return{root:P,establishments:_n,establishment:xn,img:Nn,cvtheque:jn,userProfile:qn,recruitment:zn,recruitmentKanban:Fn,career:Un,careerConfig:Bn,careerPreview:Qn,careerWebsite:Hn}}const W=new Set;let M,U={ignore:e=>e.startsWith("Ui")};const q=e=>{if(e!=null&&e.classList){e._cssChecked=!0;for(const t of e.classList)M.has(t)||W.has(t)||U.ignore(t)||(W.add(t),E.error(`Undefined CSS class: ${t}`))}},ue=e=>{var t;for(const s of e)if(s!=null&&s.cssRules&&(s==null?void 0:s.cssRules.length)>0)ue(s.cssRules);else if(s.selectorText){const n=(t=s.selectorText)==null?void 0:t.match(/\.[\w-]+/g);if(n)for(const r of n)M.add(r.substr(1))}},Gn=(e={})=>{if(M)return M;M=new Set,U={...U,...e},ue(document.styleSheets),new MutationObserver(s=>{for(const n of s)if(n.type==="childList"&&(n!=null&&n.addedNodes)){for(const r of n.addedNodes)if(!(r.nodeType===3||r.nodeType===8)){q(r);for(const a of r.querySelectorAll("*"))q(a)}}else(n==null?void 0:n.attributeName)==="class"&&q(n.target)}).observe(document,{attributes:!0,childList:!0,subtree:!0})},Kn="0.2.18";exports.BaseLogger=N;exports.Gmap=vn;exports.SDKConfig=C;exports.SDKLogger=E;exports.VERSION=Kn;exports._clone=se;exports._get=k;exports._merge=H;exports._set=z;exports.createI18n=Sn;exports.useActivityRepository=Ue;exports.useAnalyticsHublerApplication=re;exports.useAnalyticsIdentify=bn;exports.useAnalyticsProfile=ie;exports.useAssetUrls=Dn;exports.useAuthentication=O;exports.useAuthorization=ne;exports.useAuthorizationStore=gn;exports.useCanAccessEstablishmentMiddleware=yn;exports.useCandidateRepository=Ke;exports.useCommentRepository=Ye;exports.useContractTypeRepository=tt;exports.useCvbankRepository=st;exports.useCvthequeRepository=it;exports.useDiplomaRepository=at;exports.useDocumentRepository=ft;exports.useDomainUrls=Vn;exports.useEmailHistoryRepository=ht;exports.useEmailRepository=bt;exports.useEmailTemplateRepository=At;exports.useEstablishmentCareerRepository=Ct;exports.useEstablishmentRepository=B;exports.useFeatureFlagRepository=Ot;exports.useI18n=ce;exports.useJobRepository=Dt;exports.useLabelRepository=zt;exports.useLocaleTimeAgo=$n;exports.useOfferRepository=Ut;exports.usePrivateRequest=y;exports.useQSAction=Tn;exports.useRecruiterRepository=Qt;exports.useRecruitmentRepository=Zt;exports.useRegisterRepository=nn;exports.useRegistrationRepository=rn;exports.useRequest=R;exports.useSpecialityRepository=an;exports.useTagRepository=un;exports.useTalentRepository=dn;exports.useUndefinedCssClasses=Gn;exports.useUserRepository=Q;
package/dist/core.js CHANGED
@@ -1,17 +1,17 @@
1
- var se = Object.defineProperty;
2
- var ie = (e, t, r) => t in e ? se(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
3
- var v = (e, t, r) => (ie(e, typeof t != "symbol" ? t + "" : t, r), r);
4
- import { reactive as oe, h as x } from "vue";
5
- import ae from "axios";
6
- import { defineStore as ce } from "pinia";
7
- import { useTimeAgo as ue } from "@vueuse/core";
1
+ var ie = Object.defineProperty;
2
+ var oe = (e, t, r) => t in e ? ie(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
3
+ var v = (e, t, r) => (oe(e, typeof t != "symbol" ? t + "" : t, r), r);
4
+ import { reactive as ae, h as x } from "vue";
5
+ import ce from "axios";
6
+ import { defineStore as ue } from "pinia";
7
+ import { useTimeAgo as le } from "@vueuse/core";
8
8
  var B = {
9
9
  expireTimes: "1d",
10
10
  path: "; path=/",
11
11
  domain: "",
12
12
  secure: !1,
13
13
  sameSite: "; SameSite=Lax"
14
- }, le = (
14
+ }, de = (
15
15
  /** @class */
16
16
  function() {
17
17
  function e() {
@@ -86,13 +86,13 @@ var B = {
86
86
  }, e;
87
87
  }()
88
88
  ), N = null;
89
- function de() {
90
- N == null && (N = new le());
91
- var e = oe(N);
89
+ function fe() {
90
+ N == null && (N = new de());
91
+ var e = ae(N);
92
92
  return { cookies: e };
93
93
  }
94
- function fe() {
95
- const { cookies: e } = de();
94
+ function me() {
95
+ const { cookies: e } = fe();
96
96
  function t(a) {
97
97
  return e.get(a);
98
98
  }
@@ -117,7 +117,7 @@ function _(e = {
117
117
  auth: "token",
118
118
  refresh: "refresh_token",
119
119
  expiration: "token_expiration_date"
120
- }, t = fe()) {
120
+ }, t = me()) {
121
121
  if (O)
122
122
  return O;
123
123
  function r() {
@@ -167,7 +167,7 @@ function _(e = {
167
167
  getStorage: l
168
168
  }, O;
169
169
  }
170
- function me(e) {
170
+ function pe(e) {
171
171
  let t = {
172
172
  "Content-Type": "application/json"
173
173
  };
@@ -223,7 +223,7 @@ function me(e) {
223
223
  isJson: m
224
224
  };
225
225
  }
226
- function pe(e) {
226
+ function he(e) {
227
227
  let t = null;
228
228
  e && r(e);
229
229
  function r(s) {
@@ -239,7 +239,7 @@ function pe(e) {
239
239
  getMethod: n
240
240
  };
241
241
  }
242
- function he(e, t, r) {
242
+ function ye(e, t, r) {
243
243
  let n = null;
244
244
  r && s(r);
245
245
  function s(i) {
@@ -323,35 +323,35 @@ const D = (e, t, r) => {
323
323
  prefix: "[SDK]"
324
324
  });
325
325
  let K = null, J = null, W = null, Z = "/", X = null;
326
- const ye = () => K, ge = (e) => {
326
+ const ge = () => K, be = (e) => {
327
327
  if (E.info("[Config] Environment:", e), !e)
328
328
  throw new Error("Invalid environment.");
329
329
  K = e;
330
- }, be = () => J, we = (e) => {
330
+ }, we = () => J, Re = (e) => {
331
331
  if (E.info("[Config] API Host:", e), !e)
332
332
  throw new Error("Invalid API host.");
333
333
  J = e;
334
- }, Re = () => X, Ae = (e) => {
334
+ }, Ae = () => X, Pe = (e) => {
335
335
  X = e;
336
- }, Pe = () => W, Ie = (e) => {
336
+ }, Ie = () => W, ve = (e) => {
337
337
  if (E.info("[Config] Main App Host:", e), !e)
338
338
  throw new Error("Invalid main app host.");
339
339
  W = e;
340
- }, ve = (e) => {
340
+ }, Ee = (e) => {
341
341
  E.info("[Config] Base Assets Urls:", e), Z = e;
342
- }, Ee = () => Z, k = {
343
- getEnvironment: ye,
344
- getApiHost: be,
345
- getErrorHandler: Re,
346
- setEnvironment: ge,
347
- setApiHost: we,
348
- setErrorHandler: Ae,
349
- getMainAppHost: Pe,
350
- setMainAppHost: Ie,
351
- setBaseAssetsUrl: ve,
352
- getBaseAssetsUrl: Ee
342
+ }, Se = () => Z, k = {
343
+ getEnvironment: ge,
344
+ getApiHost: we,
345
+ getErrorHandler: Ae,
346
+ setEnvironment: be,
347
+ setApiHost: Re,
348
+ setErrorHandler: Pe,
349
+ getMainAppHost: Ie,
350
+ setMainAppHost: ve,
351
+ setBaseAssetsUrl: Ee,
352
+ getBaseAssetsUrl: Se
353
353
  };
354
- function Se(e) {
354
+ function Ce(e) {
355
355
  const t = k.getApiHost().replace(/\/$/g, "");
356
356
  let r = null, n = {}, s = {};
357
357
  e && p(e);
@@ -415,7 +415,7 @@ function Se(e) {
415
415
  removeRouteParam: C
416
416
  };
417
417
  }
418
- function Ce(e) {
418
+ function ke(e) {
419
419
  let t = [];
420
420
  function r() {
421
421
  return t = i(arguments), d(), this;
@@ -450,7 +450,7 @@ function Ce(e) {
450
450
  removeGroup: a
451
451
  };
452
452
  }
453
- function ke(e) {
453
+ function $e(e) {
454
454
  let t = !1, r = !1, n = 1, s = 10;
455
455
  function a() {
456
456
  return t = !0, d(), this;
@@ -490,7 +490,7 @@ function ke(e) {
490
490
  setPerPage: o
491
491
  };
492
492
  }
493
- function $e(e) {
493
+ function Le(e) {
494
494
  let t = !1, r = "id", n = "ASC";
495
495
  function s() {
496
496
  t = !0;
@@ -524,7 +524,7 @@ function $e(e) {
524
524
  setOrderDir: p
525
525
  };
526
526
  }
527
- function Le() {
527
+ function Me() {
528
528
  let e = !1;
529
529
  function t() {
530
530
  return e = !0, this;
@@ -537,7 +537,7 @@ function Le() {
537
537
  isSilent: r
538
538
  };
539
539
  }
540
- function Me() {
540
+ function Oe() {
541
541
  let e = "json";
542
542
  function t(n = "json") {
543
543
  if (["arraybuffer", "document", "json", "text", "stream", "blob"].indexOf(n) === -1)
@@ -552,7 +552,7 @@ function Me() {
552
552
  getResponseType: r
553
553
  };
554
554
  }
555
- function Oe(e) {
555
+ function De(e) {
556
556
  function t() {
557
557
  return e;
558
558
  }
@@ -568,7 +568,7 @@ function Oe(e) {
568
568
  getPayload: n
569
569
  };
570
570
  }
571
- function De(e, t = !1) {
571
+ function Te(e, t = !1) {
572
572
  let r = !1, n = !1;
573
573
  return e.response ? (r = !0, n = !0) : e.request && (r = !0), !t && k.getErrorHandler() && k.getErrorHandler()(e), {
574
574
  sent: r,
@@ -576,7 +576,7 @@ function De(e, t = !1) {
576
576
  error: e
577
577
  };
578
578
  }
579
- function Te(e) {
579
+ function _e(e) {
580
580
  function t() {
581
581
  return e;
582
582
  }
@@ -616,7 +616,7 @@ function Te(e) {
616
616
  getPages: i
617
617
  };
618
618
  }
619
- function _e(e, t, r, n, s, a) {
619
+ function xe(e, t, r, n, s, a) {
620
620
  async function d() {
621
621
  const u = r.getMethod(), i = t.getUri(), o = e.getHeaders(), l = n.getPayload(), f = [i];
622
622
  ["post", "put", "patch"].includes(u) && f.push(l || {}), f.push({
@@ -624,26 +624,26 @@ function _e(e, t, r, n, s, a) {
624
624
  responseType: a.getResponseType()
625
625
  }), E.info("[Request] Sending request:", `[${u.toUpperCase()}]`, i);
626
626
  try {
627
- const m = await ae[u](...f);
627
+ const m = await ce[u](...f);
628
628
  return p(m);
629
629
  } catch (m) {
630
- throw De(m, s.isSilent());
630
+ throw Te(m, s.isSilent());
631
631
  }
632
632
  }
633
633
  function p(u) {
634
634
  if (u.headers) {
635
635
  const i = Object.keys(u.headers), o = i.map((l) => l.toLowerCase()).indexOf("content-type");
636
636
  if (o !== -1 && u.headers[i[o]].includes("application/ld+json"))
637
- return Te(u);
637
+ return _e(u);
638
638
  }
639
- return Oe(u);
639
+ return De(u);
640
640
  }
641
641
  return {
642
642
  send: d
643
643
  };
644
644
  }
645
645
  function w(e, t = "get", r = null) {
646
- const n = me(), s = Se(e), a = pe(t), d = he(a, n, r), p = Ce(s), u = ke(s), i = $e(s), o = Le(), l = Me(), f = _e(n, s, a, d, o, l);
646
+ const n = pe(), s = Ce(e), a = he(t), d = ye(a, n, r), p = ke(s), u = $e(s), i = Le(s), o = Me(), l = Oe(), f = xe(n, s, a, d, o, l);
647
647
  return {
648
648
  ...n,
649
649
  ...s,
@@ -667,105 +667,105 @@ function y(e, t = "get", r = null) {
667
667
  return a();
668
668
  }, n;
669
669
  }
670
- const xe = (e, t) => y("/v2/activity/candidate/:candidateId/establishment/:establishmentId").setRouteParams({ candidateId: e, establishmentId: t }), Rn = () => ({
671
- listByCandidateAndEstablishment: xe
672
- }), Ne = (e, t, r) => y("/candidate/:candidateId/share/establishment/:establishmentId").setMethod("post").setRouteParams({ candidateId: e, establishmentId: t }).setPayload(r), je = (e, t) => y("/candidate/:candidateId/archive/establishment/:establishmentId").setRouteParams({ candidateId: e, establishmentId: t }), ze = (e, t) => y("/candidate/:candidateId/archive/establishment/:establishmentId").setMethod("post").setRouteParams({ candidateId: e, establishmentId: t }), Fe = (e, t) => y("/candidate/:candidateId/archive/establishment/:establishmentId").setMethod("delete").setRouteParams({ candidateId: e, establishmentId: t }), Ue = (e) => y("/v2/candidates/lookup/email").setQueryParam("email", e), An = () => ({
673
- share: Ne,
674
- isArchived: je,
675
- archive: ze,
676
- unarchive: Fe,
677
- lookupCandidate: Ue
678
- }), Be = (e, t) => y("/comment/establishment/:establishmentId/candidate/:userId").setRouteParams({ establishmentId: e, userId: t }), qe = (e, t, r) => y("/comment/establishment/:establishmentId/candidate/:userId").setRouteParams({ establishmentId: e, userId: t }).setMethod("post").setPayload(r), Qe = (e, t) => y("/comment/:commentId").setRouteParams({ commentId: e }).setMethod("put").setPayload(t), He = (e) => y("/comment/:commentId").setRouteParams({ commentId: e }).setMethod("delete"), Pn = () => ({
679
- getForEstablishmentCandidate: Be,
680
- postForEstablishmentCandidate: qe,
681
- update: Qe,
682
- remove: He
683
- }), Ve = () => w("contractType").isList().addGroup("Term:id").addGroup("Term:name"), In = () => ({
684
- list: Ve
685
- }), Ge = (e) => y("/v2/talents").isList().setQueryParam("establishment-id", e), vn = () => ({
670
+ const Ne = (e, t) => y("/v2/activity/candidate/:candidateId/establishment/:establishmentId").setRouteParams({ candidateId: e, establishmentId: t }), An = () => ({
671
+ listByCandidateAndEstablishment: Ne
672
+ }), je = (e, t, r) => y("/candidate/:candidateId/share/establishment/:establishmentId").setMethod("post").setRouteParams({ candidateId: e, establishmentId: t }).setPayload(r), ze = (e, t) => y("/candidate/:candidateId/archive/establishment/:establishmentId").setRouteParams({ candidateId: e, establishmentId: t }), Fe = (e, t) => y("/candidate/:candidateId/archive/establishment/:establishmentId").setMethod("post").setRouteParams({ candidateId: e, establishmentId: t }), Ue = (e, t) => y("/candidate/:candidateId/archive/establishment/:establishmentId").setMethod("delete").setRouteParams({ candidateId: e, establishmentId: t }), Be = (e) => y("/v2/candidates/lookup/email").setQueryParam("email", e), Pn = () => ({
673
+ share: je,
674
+ isArchived: ze,
675
+ archive: Fe,
676
+ unarchive: Ue,
677
+ lookupCandidate: Be
678
+ }), qe = (e, t) => y("/comment/establishment/:establishmentId/candidate/:userId").setRouteParams({ establishmentId: e, userId: t }), Qe = (e, t, r) => y("/comment/establishment/:establishmentId/candidate/:userId").setRouteParams({ establishmentId: e, userId: t }).setMethod("post").setPayload(r), He = (e, t) => y("/comment/:commentId").setRouteParams({ commentId: e }).setMethod("put").setPayload(t), Ve = (e) => y("/comment/:commentId").setRouteParams({ commentId: e }).setMethod("delete"), In = () => ({
679
+ getForEstablishmentCandidate: qe,
680
+ postForEstablishmentCandidate: Qe,
681
+ update: He,
682
+ remove: Ve
683
+ }), Ge = () => w("contractType").isList().addGroup("Term:id").addGroup("Term:name"), vn = () => ({
686
684
  list: Ge
687
- }), Ke = (e, t, r) => y("/cvtheque/establishment/:establishmentId/candidate/:candidateId/label/synchronize").setRouteParams({ establishmentId: e, candidateId: t }).setMethod("post").setPayload(r), En = () => ({
688
- syncCandidateLabels: Ke
689
- }), Je = () => w("diploma").isList().addGroup("Term:id").addGroup("Term:name"), Sn = () => ({
690
- list: Je
691
- }), We = (e) => y("document/candidate/:candidateId").setRouteParams({ candidateId: e }).isList().disablePagination(), Ze = (e, t) => y("document/candidate/:candidateId/establishment/:establishmentId/recruiter").setRouteParams({ candidateId: e, establishmentId: t }).isList().disablePagination(), Xe = (e, t) => y("document/candidate/:candidateId/establishment/:establishmentId/candidate").setRouteParams({ candidateId: e, establishmentId: t }).isList().disablePagination(), Ye = (e) => y("document/recruiter").setMethod("post").setPayload(e), et = (e) => y("document/:documentId").setRouteParams({ documentId: e }).setMethod("delete"), Cn = () => ({
692
- listByCandidate: We,
693
- listByCandidateAndEstablishmentFromRecruiter: Ze,
694
- listByCandidateAndEstablishmentFromCandidate: Xe,
695
- addFromRecruiter: Ye,
696
- remove: et
697
- }), tt = (e, t) => y("/v2/establishments/:establishmentId/email-history").setRouteParams({ establishmentId: t }).setQueryParam("receiverId", e).isList().disablePagination(), kn = () => ({
698
- listByCandidateAndEstablishment: tt
699
- }), nt = (e, t) => y("/email/candidate/:candidateId").setMethod("post").setRouteParams({ candidateId: e }).setPayload(t), rt = (e, t) => y("/v2/emails/send").setMethod("post").setFormData().setPayload({ recipientIds: e, ...t }), $n = () => ({
700
- sendToCandidate: nt,
701
- sendToRecipients: rt
702
- }), st = (e, t = !0) => {
685
+ }), Ke = (e) => y("/v2/talents").isList().setQueryParam("establishment-id", e), En = () => ({
686
+ list: Ke
687
+ }), Je = (e, t, r) => y("/cvtheque/establishment/:establishmentId/candidate/:candidateId/label/synchronize").setRouteParams({ establishmentId: e, candidateId: t }).setMethod("post").setPayload(r), Sn = () => ({
688
+ syncCandidateLabels: Je
689
+ }), We = () => w("diploma").isList().addGroup("Term:id").addGroup("Term:name"), Cn = () => ({
690
+ list: We
691
+ }), Ze = (e) => y("document/candidate/:candidateId").setRouteParams({ candidateId: e }).isList().disablePagination(), Xe = (e, t) => y("document/candidate/:candidateId/establishment/:establishmentId/recruiter").setRouteParams({ candidateId: e, establishmentId: t }).isList().disablePagination(), Ye = (e, t) => y("document/candidate/:candidateId/establishment/:establishmentId/candidate").setRouteParams({ candidateId: e, establishmentId: t }).isList().disablePagination(), et = (e) => y("document/recruiter").setMethod("post").setPayload(e), tt = (e) => y("document/:documentId").setRouteParams({ documentId: e }).setMethod("delete"), kn = () => ({
692
+ listByCandidate: Ze,
693
+ listByCandidateAndEstablishmentFromRecruiter: Xe,
694
+ listByCandidateAndEstablishmentFromCandidate: Ye,
695
+ addFromRecruiter: et,
696
+ remove: tt
697
+ }), nt = (e, t) => y("/v2/establishments/:establishmentId/email-history").setRouteParams({ establishmentId: t }).setQueryParam("receiverId", e).isList().disablePagination(), $n = () => ({
698
+ listByCandidateAndEstablishment: nt
699
+ }), rt = (e, t) => y("/email/candidate/:candidateId").setMethod("post").setRouteParams({ candidateId: e }).setPayload(t), st = (e, t) => y("/v2/emails/send").setMethod("post").setFormData().setPayload({ recipientIds: e, ...t }), Ln = () => ({
700
+ sendToCandidate: rt,
701
+ sendToRecipients: st
702
+ }), it = (e, t = !0) => {
703
703
  const r = y("/v2/establishments/:establishmentId/email-templates").setRouteParams({ establishmentId: e }).isList().disablePagination();
704
704
  return t && r.setQueryParam("global", !0), r;
705
- }, it = () => y("/v2/self/email-templates").isList().disablePagination(), Ln = () => ({
706
- listByEstablishment: st,
707
- listSelf: it
708
- }), ot = (e, t) => y("establishment-career/:establishmentId/:versionId").setRouteParams({ establishmentId: e, versionId: t }), at = (e, t = "published") => y("establishment-career/:establishmentId/state/:state").setRouteParams({ establishmentId: e, state: t }), ct = (e, t, r = null) => {
705
+ }, ot = () => y("/v2/self/email-templates").isList().disablePagination(), Mn = () => ({
706
+ listByEstablishment: it,
707
+ listSelf: ot
708
+ }), at = (e, t) => y("establishment-career/:establishmentId/:versionId").setRouteParams({ establishmentId: e, versionId: t }), ct = (e, t = "published") => y("establishment-career/:establishmentId/state/:state").setRouteParams({ establishmentId: e, state: t }), ut = (e, t, r = null) => {
709
709
  const n = r !== null ? y("establishment-career/:establishmentId/:versionId").setRouteParams({ establishmentId: e, versionId: r }) : y("establishment-career/:establishmentId").setRouteParams({ establishmentId: e });
710
710
  return n.setMethod("post").setPayload(t), n;
711
- }, ut = (e, t) => y("establishment-career/:establishmentId/logo-banner").setMethod("post").setRouteParams({ establishmentId: e }).setPayload(t), lt = (e, t, r) => y("establishment-career/:establishmentId/publish/:versionId").setMethod("post").setRouteParams({ establishmentId: e, versionId: t }).setPayload(r), Mn = () => ({
712
- readById: ot,
713
- readByState: at,
714
- upsert: ct,
715
- uploadLogoAndBanner: ut,
716
- publish: lt
717
- }), dt = (e) => w("establishment/:establishmentId").setRouteParams({ establishmentId: e }), ft = (e) => y("establishment/:establishmentId/authorizations").setRouteParams({ establishmentId: e }), Y = () => ({
718
- read: dt,
719
- authorizations: ft
720
- }), mt = (e) => w("feature-flag/maintenance").setMethod("post").setPayload(e), pt = (e, t) => w("feature-flag/establishment").setMethod("post").setPayload({ establishment: e, flagName: t }), On = () => ({
721
- maintenanceModeEnabled: mt,
722
- forEstablishment: pt
723
- }), ht = () => w("job").isList().addGroup("Term:id").addGroup("Term:name"), Dn = () => ({
724
- list: ht
725
- }), yt = (e) => y("/label/establishment/:establishmentId").isList().setRouteParams({ establishmentId: e }), gt = (e, t) => y("/label/establishment/:establishmentId").setMethod("post").setRouteParams({ establishmentId: e }).setPayload(t), bt = (e, t) => y("/label/:labelId").setMethod("put").setRouteParams({ labelId: e }).setPayload(t), wt = (e) => y("/label/:labelId").setMethod("delete").setRouteParams({ labelId: e }), Rt = (e, t, r) => y("/label/establishment/:establishmentId/candidate/:candidateId/synchronize").setMethod("post").setPayload(r).setRouteParams({ establishmentId: e, candidateId: t }), Tn = () => ({
726
- listByEstablishment: yt,
727
- addToEstablishment: gt,
728
- update: bt,
729
- remove: wt,
730
- syncForCandidate: Rt
731
- }), At = (e) => w("offer/:offerId").setRouteParams({ offerId: e }), _n = () => ({
732
- read: At
733
- }), Pt = (e, t = !1) => {
711
+ }, lt = (e, t) => y("establishment-career/:establishmentId/logo-banner").setMethod("post").setRouteParams({ establishmentId: e }).setPayload(t), dt = (e, t, r) => y("establishment-career/:establishmentId/publish/:versionId").setMethod("post").setRouteParams({ establishmentId: e, versionId: t }).setPayload(r), On = () => ({
712
+ readById: at,
713
+ readByState: ct,
714
+ upsert: ut,
715
+ uploadLogoAndBanner: lt,
716
+ publish: dt
717
+ }), ft = (e) => w("establishment/:establishmentId").setRouteParams({ establishmentId: e }), mt = (e) => y("establishment/:establishmentId/authorizations").setRouteParams({ establishmentId: e }), Y = () => ({
718
+ read: ft,
719
+ authorizations: mt
720
+ }), pt = (e) => w("feature-flag/maintenance").setMethod("post").setPayload(e), ht = (e, t) => w("feature-flag/establishment").setMethod("post").setPayload({ establishment: e, flagName: t }), Dn = () => ({
721
+ maintenanceModeEnabled: pt,
722
+ forEstablishment: ht
723
+ }), yt = () => w("job").isList().addGroup("Term:id").addGroup("Term:name"), Tn = () => ({
724
+ list: yt
725
+ }), gt = (e) => y("/label/establishment/:establishmentId").isList().setRouteParams({ establishmentId: e }), bt = (e, t) => y("/label/establishment/:establishmentId").setMethod("post").setRouteParams({ establishmentId: e }).setPayload(t), wt = (e, t) => y("/label/:labelId").setMethod("put").setRouteParams({ labelId: e }).setPayload(t), Rt = (e) => y("/label/:labelId").setMethod("delete").setRouteParams({ labelId: e }), At = (e, t, r) => y("/label/establishment/:establishmentId/candidate/:candidateId/synchronize").setMethod("post").setPayload(r).setRouteParams({ establishmentId: e, candidateId: t }), _n = () => ({
726
+ listByEstablishment: gt,
727
+ addToEstablishment: bt,
728
+ update: wt,
729
+ remove: Rt,
730
+ syncForCandidate: At
731
+ }), Pt = (e) => w("offer/:offerId").setRouteParams({ offerId: e }), xn = () => ({
732
+ read: Pt
733
+ }), It = (e, t = !1) => {
734
734
  const r = y("/recruiter/establishment/:establishmentId").isList().setRouteParams({ establishmentId: e });
735
735
  return t && r.setQueryParam("exclude-me", 1), r;
736
- }, xn = () => ({
737
- listByEstablishment: Pt
738
- }), It = (e) => y("/recruitment/establishment/:establishmentId/mine").isList().setRouteParams({ establishmentId: e }), vt = (e, t) => y("/recruitment/mine/establishment/:establishmentId/has-not/candidate/:candidateId").isList().setRouteParams({ establishmentId: e, candidateId: t }), Et = (e, t) => y("/recruitment/mine/establishment/:establishmentId/has/candidate/:candidateId").isList().setRouteParams({ establishmentId: e, candidateId: t }), St = (e, t) => y("/recruitment/establishment/:establishmentId/has/candidate/:candidateId").isList().setRouteParams({ establishmentId: e, candidateId: t }), Ct = (e, t) => y("/recruitment/:recruitmentId/candidate").setMethod("put").setRouteParams({ recruitmentId: e }).setPayload(t), kt = (e, t) => y("/recruitment/:recruitmentId/candidate/:candidateId").setMethod("delete").setRouteParams({ recruitmentId: e, candidateId: t }), Nn = () => ({
739
- mineByEstablishment: It,
740
- mineWithoutCandidate: vt,
741
- mineWithCandidate: Et,
742
- withCandidate: St,
743
- addCandidates: Ct,
744
- removeCandidate: kt
745
- }), $t = (e, t, r, n = null) => {
736
+ }, Nn = () => ({
737
+ listByEstablishment: It
738
+ }), vt = (e) => y("/recruitment/establishment/:establishmentId/mine").isList().setRouteParams({ establishmentId: e }), Et = (e, t) => y("/recruitment/mine/establishment/:establishmentId/has-not/candidate/:candidateId").isList().setRouteParams({ establishmentId: e, candidateId: t }), St = (e, t) => y("/recruitment/mine/establishment/:establishmentId/has/candidate/:candidateId").isList().setRouteParams({ establishmentId: e, candidateId: t }), Ct = (e, t) => y("/recruitment/establishment/:establishmentId/has/candidate/:candidateId").isList().setRouteParams({ establishmentId: e, candidateId: t }), kt = (e, t) => y("/recruitment/:recruitmentId/candidate").setMethod("put").setRouteParams({ recruitmentId: e }).setPayload(t), $t = (e, t) => y("/recruitment/:recruitmentId/candidate/:candidateId").setMethod("delete").setRouteParams({ recruitmentId: e, candidateId: t }), jn = () => ({
739
+ mineByEstablishment: vt,
740
+ mineWithoutCandidate: Et,
741
+ mineWithCandidate: St,
742
+ withCandidate: Ct,
743
+ addCandidates: kt,
744
+ removeCandidate: $t
745
+ }), Lt = (e, t, r, n = null) => {
746
746
  const s = w("candidate/register/open").setMethod("post"), a = { email: e };
747
747
  return t === "establishment" && (a.establishmentId = r), t === "offer" && (a.offerId = r), n && (a.referer = n), s.setPayload(a), s;
748
- }, Lt = (e, t) => w("candidate/register/update/:token").setMethod("post").setRouteParams({ token: e }).setPayload(t), Mt = (e) => w("candidate/register/read/:token").setRouteParams({ token: e }), Ot = (e) => w("candidate/register/close/:token").setMethod("post").setRouteParams({ token: e }), jn = () => ({
749
- open: $t,
750
- update: Lt,
751
- read: Mt,
752
- close: Ot
753
- }), Dt = (e, t) => y("/v2/registrations/lookup/candidate/establishment").setQueryParam("candidate-id", e).setQueryParam("establishment-id", t), zn = () => ({
754
- lookupEstablishment: Dt
755
- }), Tt = () => w("speciality").isList().addGroup("Term:id").addGroup("Term:name"), Fn = () => ({
756
- list: Tt
757
- }), _t = (e) => y("/tag/public/establishment/:establishmentId").isList().setRouteParams({ establishmentId: e }), Un = () => ({
758
- listByEstablishment: _t
759
- }), xt = (e, t) => y("/v2/talents/lookup").setQueryParam("candidate-id", e).setQueryParam("establishment-id", t), Bn = () => ({
760
- lookupTalent: xt
761
- }), Nt = (e) => w("user/email/isset/:email").setRouteParams({ email: e }), jt = () => y("user/self").addGroup("user:self"), zt = (e) => y("/user/:uuid").setRouteParams({ uuid: e }), Ft = (e) => w("/user/:uuid").setRouteParams({ uuid: e }), ee = () => ({
762
- emailExists: Nt,
763
- self: jt,
764
- byUuidPrivate: zt,
765
- byUuid: Ft
748
+ }, Mt = (e, t) => w("candidate/register/update/:token").setMethod("post").setRouteParams({ token: e }).setPayload(t), Ot = (e) => w("candidate/register/read/:token").setRouteParams({ token: e }), Dt = (e) => w("candidate/register/close/:token").setMethod("post").setRouteParams({ token: e }), zn = () => ({
749
+ open: Lt,
750
+ update: Mt,
751
+ read: Ot,
752
+ close: Dt
753
+ }), Tt = (e, t) => y("/v2/registrations/lookup/candidate/establishment").setQueryParam("candidate-id", e).setQueryParam("establishment-id", t), Fn = () => ({
754
+ lookupEstablishment: Tt
755
+ }), _t = () => w("speciality").isList().addGroup("Term:id").addGroup("Term:name"), Un = () => ({
756
+ list: _t
757
+ }), xt = (e) => y("/tag/public/establishment/:establishmentId").isList().setRouteParams({ establishmentId: e }), Bn = () => ({
758
+ listByEstablishment: xt
759
+ }), Nt = (e, t) => y("/v2/talents/lookup").setQueryParam("candidate-id", e).setQueryParam("establishment-id", t), qn = () => ({
760
+ lookupTalent: Nt
761
+ }), jt = (e) => w("user/email/isset/:email").setRouteParams({ email: e }), zt = () => y("user/self").addGroup("user:self"), Ft = (e) => y("/user/:uuid").setRouteParams({ uuid: e }), Ut = (e) => w("/user/:uuid").setRouteParams({ uuid: e }), ee = () => ({
762
+ emailExists: jt,
763
+ self: zt,
764
+ byUuidPrivate: Ft,
765
+ byUuid: Ut
766
766
  });
767
767
  let T;
768
- function Ut() {
768
+ function Bt() {
769
769
  if (T)
770
770
  return T;
771
771
  const e = {
@@ -810,10 +810,10 @@ function Ut() {
810
810
  }
811
811
  }, T;
812
812
  }
813
- async function qn(e, ...t) {
813
+ async function Qn(e, ...t) {
814
814
  if (!_().isAuthenticated())
815
815
  throw "ERR_NOT_AUTHENTICATED";
816
- const n = Ut();
816
+ const n = Bt();
817
817
  await Promise.all([
818
818
  n.fetchSelf(),
819
819
  n.fetchPermission(e)
@@ -824,7 +824,7 @@ async function qn(e, ...t) {
824
824
  throw "ERR_MISSING_PERMISSION";
825
825
  }
826
826
  }
827
- const Qn = ce("authorization", {
827
+ const Hn = ue("authorization", {
828
828
  state: () => ({
829
829
  user: void 0,
830
830
  establishments: {}
@@ -881,7 +881,7 @@ const Qn = ce("authorization", {
881
881
  p = s(p) ? a(p) : p, d[p] = d[p] ?? i, d = d[p];
882
882
  }
883
883
  }), e;
884
- }, Bt = (e) => {
884
+ }, qt = (e) => {
885
885
  if (typeof e == "object") {
886
886
  if (Array.isArray(e))
887
887
  return [...e];
@@ -892,7 +892,7 @@ const Qn = ce("authorization", {
892
892
  }, te = (e, t) => {
893
893
  const r = { ...e };
894
894
  for (const [n, s] of Object.entries(t))
895
- n in r && typeof r[n] == "object" && typeof s == "object" ? r[n] = te(r[n], s) : r[n] = Bt(s);
895
+ n in r && typeof r[n] == "object" && typeof s == "object" ? r[n] = te(r[n], s) : r[n] = qt(s);
896
896
  return r;
897
897
  };
898
898
  let L = null;
@@ -987,7 +987,7 @@ function g() {
987
987
  }, L;
988
988
  }
989
989
  g.destroy = () => L = null;
990
- function qt() {
990
+ function Qt() {
991
991
  const e = "Hubler Application";
992
992
  function t(i) {
993
993
  var l;
@@ -1036,7 +1036,7 @@ function qt() {
1036
1036
  applicationFormFailed: u
1037
1037
  };
1038
1038
  }
1039
- function Qt() {
1039
+ function Ht() {
1040
1040
  const e = "Profile";
1041
1041
  function t(c, R) {
1042
1042
  var S;
@@ -1113,10 +1113,10 @@ function Qt() {
1113
1113
  }
1114
1114
  const Q = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1115
1115
  __proto__: null,
1116
- useAnalyticsHublerApplication: qt,
1117
- useAnalyticsProfile: Qt
1116
+ useAnalyticsHublerApplication: Qt,
1117
+ useAnalyticsProfile: Ht
1118
1118
  }, Symbol.toStringTag, { value: "Module" }));
1119
- function Hn() {
1119
+ function Vn() {
1120
1120
  function e(r) {
1121
1121
  return g().identify(r.id, {
1122
1122
  email: r.email,
@@ -1138,23 +1138,25 @@ function Hn() {
1138
1138
  identifyCandidate: e
1139
1139
  };
1140
1140
  }
1141
- const Ht = "AIzaSyDicyRD6rvVdnicp1tgV0ElazASNGbyyTs", ne = () => new Promise((e) => {
1142
- window.google && window.google.maps ? e() : (window.addEventListener("gmap-ready", () => e()), Kt());
1143
- }), Vt = (e, t) => ne().then(() => Gt(e, t)), Gt = (e, t) => {
1141
+ const Vt = "AIzaSyDicyRD6rvVdnicp1tgV0ElazASNGbyyTs";
1142
+ let ne = !1;
1143
+ const re = () => new Promise((e) => {
1144
+ ne || window.google && window.google.maps ? e() : (window.addEventListener("gmap-ready", () => e()), Jt());
1145
+ }), Gt = (e, t) => re().then(() => Kt(e, t)), Kt = (e, t) => {
1144
1146
  const r = new window.google.maps.places.Autocomplete(e, { componentRestrictions: { country: ["fr", "re", "yt", "gp", "mq"] } });
1145
1147
  window.google.maps.event.addListener(r, "place_changed", () => {
1146
1148
  const n = r.getPlace();
1147
- n.formatted_address && t(n);
1149
+ n.formatted_address && t && t(n.formatted_address, n);
1148
1150
  });
1149
- }, Kt = () => {
1151
+ }, Jt = () => {
1150
1152
  window.onGmapScriptReady = function() {
1151
1153
  };
1152
1154
  const e = document.createElement("script");
1153
- e.src = "https://maps.googleapis.com/maps/api/js?key=" + Ht + "&libraries=places&callback=onGmapScriptReady", e.async = !0, e.defer = !0, e.onload = () => window.dispatchEvent(new Event("gmap-ready")), document.body.appendChild(e);
1154
- }, Vn = {
1155
- scriptReady: ne,
1156
- autocompleteInput: Vt
1157
- }, Jt = {
1155
+ e.src = "https://maps.googleapis.com/maps/api/js?key=" + Vt + "&libraries=places&callback=onGmapScriptReady", e.async = !0, e.defer = !0, e.onload = () => window.dispatchEvent(new Event("gmap-ready")), document.body.appendChild(e), ne = !0;
1156
+ }, Gn = {
1157
+ scriptReady: re,
1158
+ autocompleteInput: Gt
1159
+ }, Wt = {
1158
1160
  common: {
1159
1161
  the: "le",
1160
1162
  from: "de"
@@ -1179,18 +1181,18 @@ const Ht = "AIzaSyDicyRD6rvVdnicp1tgV0ElazASNGbyyTs", ne = () => new Promise((e)
1179
1181
  minute: "minute | minutes",
1180
1182
  second: "seconde | secondes"
1181
1183
  }
1182
- }, Wt = {
1183
- fr: Jt
1184
+ }, Zt = {
1185
+ fr: Wt
1184
1186
  };
1185
1187
  let F = null;
1186
- const Zt = () => F, Gn = (e = {}) => {
1188
+ const Xt = () => F, Kn = (e = {}) => {
1187
1189
  let t = e.locale || "fr";
1188
- const r = (u) => t = u, n = () => t, s = te(Wt, (e == null ? void 0 : e.messages) || {}), a = (u, i) => {
1190
+ const r = (u) => t = u, n = () => t, s = te(Zt, (e == null ? void 0 : e.messages) || {}), a = (u, i) => {
1189
1191
  const o = $(s, `${t}.${u}`);
1190
- return o ? i ? Xt(o, i) : o : u;
1192
+ return o ? i ? Yt(o, i) : o : u;
1191
1193
  }, d = (u, i) => {
1192
1194
  const o = $(s, `${t}.${u}`);
1193
- return o ? Yt(o, i) : u;
1195
+ return o ? en(o, i) : u;
1194
1196
  };
1195
1197
  return F = {
1196
1198
  t: a,
@@ -1201,7 +1203,7 @@ const Zt = () => F, Gn = (e = {}) => {
1201
1203
  u.config.globalProperties.$t = a, u.config.globalProperties.$tNode = d;
1202
1204
  }
1203
1205
  }, F;
1204
- }, Xt = (e, t) => e ? e.replace(/{{ ?([a-zA-Z_.]+) ?}}/g, (r, n) => $(t, n)) : null, Yt = (e, t) => {
1206
+ }, Yt = (e, t) => e ? e.replace(/{{ ?([a-zA-Z_.]+) ?}}/g, (r, n) => $(t, n)) : null, en = (e, t) => {
1205
1207
  if (!e)
1206
1208
  return null;
1207
1209
  const r = e.split(/(\{[{%]+[^{}]*[%}]+})/g).filter((n) => n !== "").map((n) => {
@@ -1223,8 +1225,8 @@ const Zt = () => F, Gn = (e = {}) => {
1223
1225
  variable: (e, t) => x("span", { class: "node node--variable" }, $(t, e.trim())),
1224
1226
  text: (e) => x("span", { class: "node node--text" }, e)
1225
1227
  };
1226
- function Kn(e) {
1227
- const { t } = Zt(), r = {
1228
+ function Jn(e) {
1229
+ const { t } = Xt(), r = {
1228
1230
  justNow: t("timeAgo.just-now"),
1229
1231
  past: (n) => n.match(/\d/) ? t("timeAgo.ago", [n]) : n,
1230
1232
  future: (n) => n.match(/\d/) ? t("timeAgo.in", [n]) : n,
@@ -1237,12 +1239,12 @@ function Kn(e) {
1237
1239
  second: (n) => `${n} ${t("timeAgo.second", n)}`,
1238
1240
  invalid: ""
1239
1241
  };
1240
- return ue(e, {
1242
+ return le(e, {
1241
1243
  fullDateFormatter: (n) => n.toLocaleDateString(),
1242
1244
  messages: r
1243
1245
  });
1244
1246
  }
1245
- function en() {
1247
+ function tn() {
1246
1248
  let e = null;
1247
1249
  function t() {
1248
1250
  return e;
@@ -1277,7 +1279,7 @@ function en() {
1277
1279
  hasAction: d
1278
1280
  };
1279
1281
  }
1280
- function tn() {
1282
+ function nn() {
1281
1283
  async function e({ domain: n, event: s, ...a }) {
1282
1284
  const d = "useAnalytics" + n.charAt(0).toUpperCase() + n.slice(1);
1283
1285
  if (!t(d))
@@ -1299,9 +1301,9 @@ function tn() {
1299
1301
  }
1300
1302
  const V = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1301
1303
  __proto__: null,
1302
- useAnalyticsQSController: tn
1304
+ useAnalyticsQSController: nn
1303
1305
  }, Symbol.toStringTag, { value: "Module" }));
1304
- function nn(e) {
1306
+ function rn(e) {
1305
1307
  if (!e.hasAction())
1306
1308
  throw new Error("No action found in router");
1307
1309
  function t() {
@@ -1322,7 +1324,7 @@ function nn(e) {
1322
1324
  dispatch: t
1323
1325
  };
1324
1326
  }
1325
- function Jn() {
1327
+ function Wn() {
1326
1328
  let e = !1;
1327
1329
  function t(s, a, d) {
1328
1330
  n(), d();
@@ -1333,10 +1335,10 @@ function Jn() {
1333
1335
  d();
1334
1336
  }
1335
1337
  function n() {
1336
- const s = en();
1338
+ const s = tn();
1337
1339
  if (!s.hasAction())
1338
1340
  return;
1339
- nn(s).dispatch();
1341
+ rn(s).dispatch();
1340
1342
  }
1341
1343
  return {
1342
1344
  vueRouterBeforeEach: t,
@@ -1344,24 +1346,24 @@ function Jn() {
1344
1346
  handle: n
1345
1347
  };
1346
1348
  }
1347
- const Wn = () => ({ getAssetUrl: (t) => `${k.getBaseAssetsUrl()}${t}` }), P = () => k.getMainAppHost(), rn = () => `${P()}/rh/establishments`, sn = (e) => `${P()}/rh/establishment/${e}`, on = (e) => e && typeof e == "object" && e.urls && e.urls.display ? e.urls.display : "", an = (e) => `${P()}/rh/establishment/${e}/cvtheque/`, cn = (e, t) => `${P()}/user-profile/establishment/${e}/user/${t}`, un = (e, t) => `${P()}/rh/establishment/${e}/recruitment/${t}`, ln = (e, t) => `${P()}/rh/establishment/${e}/recruitment/${t}/kanban`, dn = (e) => `${P()}/rh/establishment/${e}/career-configuration`, fn = (e, t = null) => t ? `${P()}/career-website/${e}/${t}` : `${P()}/career-website/${e}`, mn = (e, t) => `${P()}/career-website-preview/${e}/${t}`, pn = (e, t = null) => {
1349
+ const Zn = () => ({ getAssetUrl: (t) => `${k.getBaseAssetsUrl()}${t}` }), P = () => k.getMainAppHost(), sn = () => `${P()}/rh/establishments`, on = (e) => `${P()}/rh/establishment/${e}`, an = (e) => e && typeof e == "object" && e.urls && e.urls.display ? e.urls.display : "", cn = (e) => `${P()}/rh/establishment/${e}/cvtheque/`, un = (e, t) => `${P()}/user-profile/establishment/${e}/user/${t}`, ln = (e, t) => `${P()}/rh/establishment/${e}/recruitment/${t}`, dn = (e, t) => `${P()}/rh/establishment/${e}/recruitment/${t}/kanban`, fn = (e) => `${P()}/rh/establishment/${e}/career-configuration`, mn = (e, t = null) => t ? `${P()}/career-website/${e}/${t}` : `${P()}/career-website/${e}`, pn = (e, t) => `${P()}/career-website-preview/${e}/${t}`, hn = (e, t = null) => {
1348
1350
  const r = P().replace("://", `://${e}.`);
1349
1351
  return t ? `${r}?_version=${t}` : `${r}`;
1350
1352
  };
1351
- function Zn() {
1353
+ function Xn() {
1352
1354
  return {
1353
1355
  root: P,
1354
- establishments: rn,
1355
- establishment: sn,
1356
- img: on,
1357
- cvtheque: an,
1358
- userProfile: cn,
1359
- recruitment: un,
1360
- recruitmentKanban: ln,
1361
- career: dn,
1362
- careerConfig: fn,
1363
- careerPreview: mn,
1364
- careerWebsite: pn
1356
+ establishments: sn,
1357
+ establishment: on,
1358
+ img: an,
1359
+ cvtheque: cn,
1360
+ userProfile: un,
1361
+ recruitment: ln,
1362
+ recruitmentKanban: dn,
1363
+ career: fn,
1364
+ careerConfig: mn,
1365
+ careerPreview: pn,
1366
+ careerWebsite: hn
1365
1367
  };
1366
1368
  }
1367
1369
  const G = /* @__PURE__ */ new Set();
@@ -1374,21 +1376,21 @@ const j = (e) => {
1374
1376
  for (const t of e.classList)
1375
1377
  M.has(t) || G.has(t) || U.ignore(t) || (G.add(t), E.error(`Undefined CSS class: ${t}`));
1376
1378
  }
1377
- }, re = (e) => {
1379
+ }, se = (e) => {
1378
1380
  var t;
1379
1381
  for (const r of e)
1380
1382
  if (r != null && r.cssRules && (r == null ? void 0 : r.cssRules.length) > 0)
1381
- re(r.cssRules);
1383
+ se(r.cssRules);
1382
1384
  else if (r.selectorText) {
1383
1385
  const n = (t = r.selectorText) == null ? void 0 : t.match(/\.[\w-]+/g);
1384
1386
  if (n)
1385
1387
  for (const s of n)
1386
1388
  M.add(s.substr(1));
1387
1389
  }
1388
- }, Xn = (e = {}) => {
1390
+ }, Yn = (e = {}) => {
1389
1391
  if (M)
1390
1392
  return M;
1391
- M = /* @__PURE__ */ new Set(), U = { ...U, ...e }, re(document.styleSheets), new MutationObserver((r) => {
1393
+ M = /* @__PURE__ */ new Set(), U = { ...U, ...e }, se(document.styleSheets), new MutationObserver((r) => {
1392
1394
  for (const n of r)
1393
1395
  if (n.type === "childList" && (n != null && n.addedNodes)) {
1394
1396
  for (const s of n.addedNodes)
@@ -1404,56 +1406,56 @@ const j = (e) => {
1404
1406
  childList: !0,
1405
1407
  subtree: !0
1406
1408
  });
1407
- }, Yn = "0.2.17";
1409
+ }, er = "0.2.18";
1408
1410
  export {
1409
1411
  z as BaseLogger,
1410
- Vn as Gmap,
1412
+ Gn as Gmap,
1411
1413
  k as SDKConfig,
1412
1414
  E as SDKLogger,
1413
- Yn as VERSION,
1414
- Bt as _clone,
1415
+ er as VERSION,
1416
+ qt as _clone,
1415
1417
  $ as _get,
1416
1418
  te as _merge,
1417
1419
  q as _set,
1418
- Gn as createI18n,
1419
- Rn as useActivityRepository,
1420
- qt as useAnalyticsHublerApplication,
1421
- Hn as useAnalyticsIdentify,
1422
- Qt as useAnalyticsProfile,
1423
- Wn as useAssetUrls,
1420
+ Kn as createI18n,
1421
+ An as useActivityRepository,
1422
+ Qt as useAnalyticsHublerApplication,
1423
+ Vn as useAnalyticsIdentify,
1424
+ Ht as useAnalyticsProfile,
1425
+ Zn as useAssetUrls,
1424
1426
  _ as useAuthentication,
1425
- Ut as useAuthorization,
1426
- Qn as useAuthorizationStore,
1427
- qn as useCanAccessEstablishmentMiddleware,
1428
- An as useCandidateRepository,
1429
- Pn as useCommentRepository,
1430
- In as useContractTypeRepository,
1431
- vn as useCvbankRepository,
1432
- En as useCvthequeRepository,
1433
- Sn as useDiplomaRepository,
1434
- Cn as useDocumentRepository,
1435
- Zn as useDomainUrls,
1436
- kn as useEmailHistoryRepository,
1437
- $n as useEmailRepository,
1438
- Ln as useEmailTemplateRepository,
1439
- Mn as useEstablishmentCareerRepository,
1427
+ Bt as useAuthorization,
1428
+ Hn as useAuthorizationStore,
1429
+ Qn as useCanAccessEstablishmentMiddleware,
1430
+ Pn as useCandidateRepository,
1431
+ In as useCommentRepository,
1432
+ vn as useContractTypeRepository,
1433
+ En as useCvbankRepository,
1434
+ Sn as useCvthequeRepository,
1435
+ Cn as useDiplomaRepository,
1436
+ kn as useDocumentRepository,
1437
+ Xn as useDomainUrls,
1438
+ $n as useEmailHistoryRepository,
1439
+ Ln as useEmailRepository,
1440
+ Mn as useEmailTemplateRepository,
1441
+ On as useEstablishmentCareerRepository,
1440
1442
  Y as useEstablishmentRepository,
1441
- On as useFeatureFlagRepository,
1442
- Zt as useI18n,
1443
- Dn as useJobRepository,
1444
- Tn as useLabelRepository,
1445
- Kn as useLocaleTimeAgo,
1446
- _n as useOfferRepository,
1443
+ Dn as useFeatureFlagRepository,
1444
+ Xt as useI18n,
1445
+ Tn as useJobRepository,
1446
+ _n as useLabelRepository,
1447
+ Jn as useLocaleTimeAgo,
1448
+ xn as useOfferRepository,
1447
1449
  y as usePrivateRequest,
1448
- Jn as useQSAction,
1449
- xn as useRecruiterRepository,
1450
- Nn as useRecruitmentRepository,
1451
- jn as useRegisterRepository,
1452
- zn as useRegistrationRepository,
1450
+ Wn as useQSAction,
1451
+ Nn as useRecruiterRepository,
1452
+ jn as useRecruitmentRepository,
1453
+ zn as useRegisterRepository,
1454
+ Fn as useRegistrationRepository,
1453
1455
  w as useRequest,
1454
- Fn as useSpecialityRepository,
1455
- Un as useTagRepository,
1456
- Bn as useTalentRepository,
1457
- Xn as useUndefinedCssClasses,
1456
+ Un as useSpecialityRepository,
1457
+ Bn as useTagRepository,
1458
+ qn as useTalentRepository,
1459
+ Yn as useUndefinedCssClasses,
1458
1460
  ee as useUserRepository
1459
1461
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hublo/mstaff-client-sdk",
3
- "version": "0.2.18",
3
+ "version": "0.2.19",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist"