@hublo/mstaff-client-sdk 0.2.13 → 0.2.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/main.cjs +1 -1
- package/dist/main.js +514 -512
- package/package.json +1 -1
package/dist/main.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var ce=Object.defineProperty;var ue=(e,t,s)=>t in e?ce(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s;var v=(e,t,s)=>(ue(e,typeof t!="symbol"?t+"":t,s),s);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const x=require("vue"),le=require("axios"),de=require("pinia"),fe=require("@vueuse/core");var V={expireTimes:"1d",path:"; path=/",domain:"",secure:!1,sameSite:"; SameSite=Lax"},me=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,c,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+(c?"; domain="+c: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 pe(){j==null&&(j=new me);var e=x.reactive(j);return{cookies:e}}function he(){const{cookies:e}=pe();function t(c){return e.get(c)}function s(c,d){return e.set(c,d)}function n(c){return e.remove(c)}function r(){e.keys().forEach(c=>n(c))}return{getItem:t,setItem:s,removeItem:n,clear:r}}let D=null;function O(e={auth:"token",refresh:"refresh_token",expiration:"token_expiration_date"},t=he()){if(D)return D;function s(){return t.getItem(e.auth)}function n(){return t.getItem(e.refresh)}function r(){return t.getItem(e.expiration)}function c(f,m){const h=o(f);if(!h.exp)throw new Error("Invalid JWT token.");t.setItem(e.auth,f),t.setItem(e.refresh,m),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 f=r();return f?new Date(f)<new Date:!0}function o(f){return JSON.parse(atob(f.split(".")[1]))}function l(){return t}return D={keys:e,getAuthToken:s,getRefreshToken:n,getExpiration:r,authenticate:c,clear:d,isAuthenticated:p,hasAuth:u,isExpired:i,getStorage:l},D}function ye(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 c(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!!c("Authorization")}function o(){return r("Content-Type","multipart/form-data"),this}function l(){return r("Content-Type","application/json"),this}function f(){return c("Content-Type")==="multipart/form-data"}function m(){return c("Content-Type")==="application/json"}return{setHeaders:s,getHeaders:n,setHeader:r,getHeader:c,removeHeader:d,setAuthorization:p,removeAuthorization:u,hasAuthorization:i,setFormData:o,setJson:l,isFormData:f,isJson:m}}function ge(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 be(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 c(){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 f=!o;f&&(o=new FormData);for(const m in i){const h=i[m];u(h)?(i[m]="<<FileIndex:"+l+">>",o.append(l,h,h.name),l++):typeof h=="object"&&(i[m]=p(i[m],o,l))}return f?(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:c}}const P=class P{constructor(t={}){v(this,"level",3);v(this,"logger");v(this,"prefix");this.logger=t.logger||console,this.prefix=t.prefix||""}setLevel(t){this.level=t}debug(...t){this.level<=P.LEVEL_DEBUG&&T(this.logger.debug,this.prefix,t)}info(...t){this.level<=P.LEVEL_INFO&&T(this.logger.info,this.prefix,t)}warn(...t){this.level<=P.LEVEL_WARN&&T(this.logger.warn,this.prefix,t)}error(...t){this.level<=P.LEVEL_ERROR&&T(this.logger.error,this.prefix,t)}};v(P,"LEVEL_DEBUG",0),v(P,"LEVEL_INFO",1),v(P,"LEVEL_WARN",2),v(P,"LEVEL_ERROR",3),v(P,"LEVEL_OFF",4);let N=P;const T=(e,t,s)=>{t?e(t,...s):e(...s)},$=new N({prefix:"[SDK]"});let W=null,Z=null,X=null,Y="/",ee=null;const we=()=>W,Re=e=>{if($.info("[Config] Environment:",e),!e)throw new Error("Invalid environment.");W=e},Ae=()=>Z,Pe=e=>{if($.info("[Config] API Host:",e),!e)throw new Error("Invalid API host.");Z=e},Ie=()=>ee,ve=e=>{ee=e},Ee=()=>X,Se=e=>{if($.info("[Config] Main App Host:",e),!e)throw new Error("Invalid main app host.");X=e},Ce=e=>{$.info("[Config] Base Assets Urls:",e),Y=e},ke=()=>Y,S={getEnvironment:we,getApiHost:Ae,getErrorHandler:Ie,setEnvironment:Re,setApiHost:Pe,setErrorHandler:ve,getMainAppHost:Ee,setMainAppHost:Se,setBaseAssetsUrl:Ce,getBaseAssetsUrl:ke};function $e(e){const t=S.getApiHost().replace(/\/$/g,"");let s=null,n={},r={};e&&p(e);function c(){return t+u()+m()}function d(){return u(!0,!0)}function p(a){return s="/"+a.replace(/^\//g,""),this}function u(a=!0,R=!1){return a?s.replace(/:(\w+)/g,(A,E)=>R?"*":r[E]||":"+E):s}function i(a){return n=a,this}function o(a,R){return n[a]=R,this}function l(a){return n[a]&&delete n[a],this}function f(){return Object.keys(n).length>0}function m(a=!0){if(!f())return"";let R="";for(const A in n)if(Array.isArray(n[A]))for(const E of n[A])R+=(R.length?"&":"")+`${A}[]=`+E;else R+=(R.length?"&":"")+A+"="+n[A];return(a?"?":"")+R}function h(a){return r=a,this}function b(a,R){return r[a]=R,this}function k(a){return r[a]&&delete r[a],this}return{setPath:p,getPath:u,getUri:c,getMockUri:d,setQueryParams:i,setQueryParam:o,removeQueryParam:l,hasQuery:f,getQueryString:m,setRouteParams:h,setRouteParam:b,removeRouteParam:k}}function Le(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 c(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:c}}function Me(e){let t=!1,s=!1,n=1,r=10;function c(){return t=!0,d(),this}function d(){s=!0;const m=f(arguments);return i(m.page||1,!1),o(m.perPage||r,!1),l(),this}function p(){return s=!1,l(),this}function u(){return s}function i(m,h=!0){return t=!0,s=!0,n=m,h&&l(),this}function o(m,h=!0){return t=!0,s=!0,r=m,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 f(m){if(m.length===1&&typeof m[0]=="object")return m[0];const h={};return m.length>=1&&(h.page=m[0]),m.length>=2&&(h.perPage=m[1]),h}return{isList:c,paginate:d,disablePagination:p,hasPagination:u,setPage:i,setPerPage:o}}function Oe(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 c(){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(){c()&&(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:c,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 Te(){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 _e(e){function t(){return e}function s(){return e.data}function n(){return e.data}return{getResponse:t,getData:s,getPayload:n}}function xe(e,t=!1){let s=!1,n=!1;return e.response?(s=!0,n=!0):e.request&&(s=!0),!t&&S.getErrorHandler()&&S.getErrorHandler()(e),{sent:s,responded:n,error:e}}function Ne(e){function t(){return e}function s(){return e.data}function n(){return e.data}function r(){return e.data["@type"]==="hydra:Collection"}function c(){return r()?e.data["hydra:member"]:null}function 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:c,getTotal:d,hasPagination:p,getPage:u,getPages:i}}function je(e,t,s,n,r,c){async function d(){const u=s.getMethod(),i=t.getUri(),o=e.getHeaders(),l=n.getPayload(),f=[i];["post","put","patch"].includes(u)&&f.push(l||{}),f.push({headers:o,responseType:c.getResponseType()}),$.info("[Request] Sending request:",`[${u.toUpperCase()}]`,i);try{const m=await le[u](...f);return p(m)}catch(m){throw xe(m,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 Ne(u)}return _e(u)}return{send:d}}function w(e,t="get",s=null){const n=ye(),r=$e(e),c=ge(t),d=be(c,n,s),p=Le(r),u=Me(r),i=Oe(r),o=De(),l=Te(),f=je(n,r,c,d,o,l);return{...n,...r,...c,...d,...p,...u,...i,...o,...l,...f}}function y(e,t="get",s=null){const n=w(e,t,s),r=O();r.isAuthenticated()&&n.setAuthorization(r.getAuthToken());const c=n.send;return n.send=async function(){if(!n.hasAuthorization())throw new Error("::SDK Request:: Request cannot be sent, missing authorization header.");return c()},n}const qe=(e,t)=>y("/v2/activity/candidate/:candidateId/establishment/:establishmentId").setRouteParams({candidateId:e,establishmentId:t}),ze=()=>({listByCandidateAndEstablishment:qe}),Fe=(e,t,s)=>y("/candidate/:candidateId/share/establishment/:establishmentId").setMethod("post").setRouteParams({candidateId:e,establishmentId:t}).setPayload(s),Ue=(e,t)=>y("/candidate/:candidateId/archive/establishment/:establishmentId").setRouteParams({candidateId:e,establishmentId:t}),Be=(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=()=>({share:Fe,isArchived:Ue,archive:Be,unarchive:He}),Qe=(e,t)=>y("/comment/establishment/:establishmentId/candidate/:userId").setRouteParams({establishmentId:e,userId:t}),Ge=(e,t,s)=>y("/comment/establishment/:establishmentId/candidate/:userId").setRouteParams({establishmentId:e,userId:t}).setMethod("post").setPayload(s),Ke=(e,t)=>y("/comment/:commentId").setRouteParams({commentId:e}).setMethod("put").setPayload(t),Je=e=>y("/comment/:commentId").setRouteParams({commentId:e}).setMethod("delete"),We=()=>({getForEstablishmentCandidate:Qe,postForEstablishmentCandidate:Ge,update:Ke,remove:Je}),Ze=()=>w("contractType").isList().addGroup("Term:id").addGroup("Term:name"),Xe=()=>({list:Ze}),Ye=e=>y("/v2/talents").isList().setQueryParam("establishment-id",e),et=()=>({list:Ye}),tt=(e,t,s)=>y("/cvtheque/establishment/:establishmentId/candidate/:candidateId/label/synchronize").setRouteParams({establishmentId:e,candidateId:t}).setMethod("post").setPayload(s),nt=()=>({syncCandidateLabels:tt}),st=()=>w("diploma").isList().addGroup("Term:id").addGroup("Term:name"),rt=()=>({list:st}),it=e=>y("document/candidate/:candidateId").setRouteParams({candidateId:e}).isList().disablePagination(),ot=(e,t)=>y("document/candidate/:candidateId/establishment/:establishmentId/recruiter").setRouteParams({candidateId:e,establishmentId:t}).isList().disablePagination(),at=(e,t)=>y("document/candidate/:candidateId/establishment/:establishmentId/candidate").setRouteParams({candidateId:e,establishmentId:t}).isList().disablePagination(),ct=e=>y("document/recruiter").setMethod("post").setPayload(e),ut=e=>y("document/:documentId").setRouteParams({documentId:e}).setMethod("delete"),lt=()=>({listByCandidate:it,listByCandidateAndEstablishmentFromRecruiter:ot,listByCandidateAndEstablishmentFromCandidate:at,addFromRecruiter:ct,remove:ut}),dt=(e,t)=>y("/v2/establishments/:establishmentId/email-history").setRouteParams({establishmentId:t}).setQueryParam("receiverId",e).isList().disablePagination(),ft=()=>({listByCandidateAndEstablishment:dt}),mt=(e,t)=>y("/email/candidate/:candidateId").setMethod("post").setRouteParams({candidateId:e}).setPayload(t),pt=(e,t)=>y("/v2/emails/send").setMethod("post").setFormData().setPayload({recipientIds:e,...t}),ht=()=>({sendToCandidate:mt,sendToRecipients:pt}),yt=(e,t=!0)=>{const s=y("/v2/establishments/:establishmentId/email-templates").setRouteParams({establishmentId:e}).isList().disablePagination();return t&&s.setQueryParam("global",!0),s},gt=()=>y("/v2/self/email-templates").isList().disablePagination(),bt=()=>({listByEstablishment:yt,listSelf:gt}),wt=(e,t)=>y("establishment-career/:establishmentId/:versionId").setRouteParams({establishmentId:e,versionId:t}),Rt=(e,t="published")=>y("establishment-career/:establishmentId/state/:state").setRouteParams({establishmentId:e,state:t}),At=(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},Pt=(e,t)=>y("establishment-career/:establishmentId/logo-banner").setMethod("post").setRouteParams({establishmentId:e}).setPayload(t),It=(e,t,s)=>y("establishment-career/:establishmentId/publish/:versionId").setMethod("post").setRouteParams({establishmentId:e,versionId:t}).setPayload(s),vt=()=>({readById:wt,readByState:Rt,upsert:At,uploadLogoAndBanner:Pt,publish:It}),Et=e=>w("establishment/:establishmentId").setRouteParams({establishmentId:e}),St=e=>y("establishment/:establishmentId/authorizations").setRouteParams({establishmentId:e}),U=()=>({read:Et,authorizations:St}),Ct=e=>w("feature-flag/maintenance").setMethod("post").setPayload(e),kt=(e,t)=>w("feature-flag/establishment").setMethod("post").setPayload({establishment:e,flagName:t}),$t=()=>({maintenanceModeEnabled:Ct,forEstablishment:kt}),Lt=()=>w("job").isList().addGroup("Term:id").addGroup("Term:name"),Mt=()=>({list:Lt}),Ot=e=>y("/label/establishment/:establishmentId").isList().setRouteParams({establishmentId:e}),Dt=(e,t)=>y("/label/establishment/:establishmentId").setMethod("post").setRouteParams({establishmentId:e}).setPayload(t),Tt=(e,t)=>y("/label/:labelId").setMethod("put").setRouteParams({labelId:e}).setPayload(t),_t=e=>y("/label/:labelId").setMethod("delete").setRouteParams({labelId:e}),xt=(e,t,s)=>y("/label/establishment/:establishmentId/candidate/:candidateId/synchronize").setMethod("post").setPayload(s).setRouteParams({establishmentId:e,candidateId:t}),Nt=()=>({listByEstablishment:Ot,addToEstablishment:Dt,update:Tt,remove:_t,syncForCandidate:xt}),jt=e=>w("offer/:offerId").setRouteParams({offerId:e}),qt=()=>({read:jt}),zt=(e,t=!1)=>{const s=y("/recruiter/establishment/:establishmentId").isList().setRouteParams({establishmentId:e});return t&&s.setQueryParam("exclude-me",1),s},Ft=()=>({listByEstablishment:zt}),Ut=e=>y("/recruitment/establishment/:establishmentId/mine").isList().setRouteParams({establishmentId:e}),Bt=(e,t)=>y("/recruitment/mine/establishment/:establishmentId/has-not/candidate/:candidateId").isList().setRouteParams({establishmentId:e,candidateId:t}),Ht=(e,t)=>y("/recruitment/mine/establishment/:establishmentId/has/candidate/:candidateId").isList().setRouteParams({establishmentId:e,candidateId:t}),Vt=(e,t)=>y("/recruitment/establishment/:establishmentId/has/candidate/:candidateId").isList().setRouteParams({establishmentId:e,candidateId:t}),Qt=(e,t)=>y("/recruitment/:recruitmentId/candidate").setMethod("put").setRouteParams({recruitmentId:e}).setPayload(t),Gt=(e,t)=>y("/recruitment/:recruitmentId/candidate/:candidateId").setMethod("delete").setRouteParams({recruitmentId:e,candidateId:t}),Kt=()=>({mineByEstablishment:Ut,mineWithoutCandidate:Bt,mineWithCandidate:Ht,withCandidate:Vt,addCandidates:Qt,removeCandidate:Gt}),Jt=(e,t,s,n=null)=>{const r=w("candidate/register/open").setMethod("post"),c={email:e};return t==="establishment"&&(c.establishmentId=s),t==="offer"&&(c.offerId=s),n&&(c.referer=n),r.setPayload(c),r},Wt=(e,t)=>w("candidate/register/update/:token").setMethod("post").setRouteParams({token:e}).setPayload(t),Zt=e=>w("candidate/register/read/:token").setRouteParams({token:e}),Xt=e=>w("candidate/register/close/:token").setMethod("post").setRouteParams({token:e}),Yt=()=>({open:Jt,update:Wt,read:Zt,close:Xt}),en=()=>w("speciality").isList().addGroup("Term:id").addGroup("Term:name"),tn=()=>({list:en}),nn=e=>y("/tag/public/establishment/:establishmentId").isList().setRouteParams({establishmentId:e}),sn=()=>({listByEstablishment:nn}),rn=e=>w("user/email/isset/:email").setRouteParams({email:e}),on=()=>y("user/self").addGroup("user:self"),an=e=>y("/user/:uuid").setRouteParams({uuid:e}),cn=e=>w("/user/:uuid").setRouteParams({uuid:e}),B=()=>({emailExists:rn,self:on,byUuidPrivate:an,byUuid:cn});let _;function te(){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 B().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 U().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(f=>l[f]===!0)},clear:()=>{e.user=void 0,e.roles=[],e.establishments={}}},_}async function un(e,...t){if(!O().isAuthenticated())throw"ERR_NOT_AUTHENTICATED";const n=te();await Promise.all([n.fetchSelf(),n.fetchPermission(e)]);for(let r=0;r<t.length;r++){const c=t[r];if(!n.hasPermission(e,c))throw"ERR_MISSING_PERMISSION"}}const ln=de.defineStore("authorization",{state:()=>({user:void 0,establishments:{}}),getters:{roles:e=>e.user.roles??[],isRH(){return this.roles.includes("ROLE_RH")},isCandidate(){return this.roles.includes("ROLE_CANDIDATE")},isAdmin(){return this.roles.includes("ROLE_ADMIN")}},actions:{async fetchSelf(e){if(this.user===void 0||e){const t=await B().self().send();this.user=t.getData()}},async fetchPermission(e,t){if(!this.establishments[e]||t){const s=await U().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)}}}),C=(e,t,s)=>{const n=typeof t=="string"?t.split("."):[t];let r=e;for(const[c,d]of n.entries()){if(c===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),c=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)?c(p):p,d[p]=d[p]??i,d=d[p]}}),e},ne=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]=ne(r);return s};let L=null;function g(){if(L)return L;const e=S.getEnvironment(),t=(()=>e==="prod"||e==="production"?"pPROC7dPoJ7XdxHrwsTQNXCGX79MJjhp":e==="staging"?"823rqOTwVk1ZCWVyBAdLInZ77TcFF0CF":"TMZX6evFnu87JrBHV5qLwHsld5C6hilZ")(),s=!!t,n=e!=="prod"&&e!=="production";let r=null;function c(){return s}function d(){const f=window.analytics=window.analytics||[];if(!f.initialize)if(f.invoked)window.console&&console.error&&console.error("Segment snippet included twice.");else{f.invoked=!0,f.methods=["trackSubmit","trackClick","trackLink","trackForm","pageview","identify","reset","group","track","ready","alias","debug","page","once","off","on","addSourceMiddleware","addIntegrationMiddleware","setAnonymousId","addDestinationMiddleware"],f.factory=function(m){return function(){if(window.analytics.initialized)return window.analytics[m].apply(window.analytics,arguments);const h=Array.prototype.slice.call(arguments);return h.unshift(m),f.push(h),f}};for(let m=0;m<f.methods.length;m++){const h=f.methods[m];f[h]=f.factory(h)}f.load=function(m,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/"+m+"/analytics.min.js",b.onerror=()=>window.dispatchEvent(new Event("analytics-error"));const k=document.getElementsByTagName("script")[0];k.parentNode.insertBefore(b,k),f._loadOptions=h},f._writeKey=t,f.SNIPPET_VERSION="4.16.1",f.load(t),f.page(),f.ready(()=>window.dispatchEvent(new Event("analytics-ready")))}}async function p(){return r!==null||(r=new Promise((f,m)=>{if(!c())return l("Analytics is disabled."),f();if(window.addEventListener("analytics-ready",()=>{l("Analytics script loaded successfully."),f()}),window.addEventListener("analytics-error",()=>{l("Analytics script failed to load. Consider disabling your AdBlocker.",null,"error"),m()}),l("Loading Analytics script."),window.analytics)return f();d()})),r}async function u(f,m){try{if(await this.analyticsScriptReady(),l("[identify]",[f,m]),c())return window.analytics.identify(f,m)}catch{l("[identify]",[f,m],"error")}}async function i(f,m,h){typeof h!="object"&&(h={});try{if(await this.analyticsScriptReady(),l("[page]",[f,m,h]),c())return window.analytics.page(f,{category:m,...h})}catch{l("[page]",[f,m,h],"error")}}async function o(f,m,h){typeof h!="object"&&(h={});try{if(await this.analyticsScriptReady(),l("[track]",[f,m,h]),c())return window.analytics.track(f,{category:m,...h})}catch{l("[track]",[f,m,h],"error")}}function l(f,m=[],h="log"){m||(m=[]),n&&console[h](`%cⒶ%c ::SDK Analytics:: ${f}`,"color: green;","color: inherit;",...m)}return L={analyticsScriptReady:p,isEnabled:c,identify:u,page:i,track:o,consoleMessage:l},L}g.destroy=()=>L=null;function se(){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 c(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:c,applicationDocumentViewed:d,applicationSuccessViewed:p,applicationFormFailed:u}}function re(){const e="Profile";function t(a,R){var E;if(!a)throw new Error(`Missing arguments for domain "${e}"`);const A={companyId:a.companyId?a.companyId.toString():null,hublerId:(E=a.hublerId)==null?void 0:E.toString()};return R&&(A.productId=a.companyId?a.companyId+"_2":null),a.recruitmentId&&(A.recruitmentId=a.recruitmentId.toString()),a.selections&&(A.selections=a.selections),a.institutionId&&(A.institutionId=a.institutionId.map(String)),A}async function s(a){return g().track(a.name,e,t(a.properties),!0)}async function n(a){return g().track(a.name,e,t(a.properties,!0))}async function r(a){return g().track(a.name,e,t(a.properties,!0))}async function c(a){return g().track(a.name,e,t(a.properties,!0))}async function d(a){return g().track(a.name,e,t(a.properties,!0))}async function p(a){return g().track(a.name,e,t(a.properties,!0))}async function u(a){return g().track(a.name,e,t(a.properties,!0))}async function i(a){return g().track(a.name,e,t(a.properties,!0))}async function o(a){return g().track(a.name,e,t(a.properties,!0))}async function l(a){return g().track(a.name,e,t(a.properties,!0))}async function f(a){return g().track(a.name,e,t(a.properties,!0))}async function m(a){return g().track(a.name,e,t(a.properties,!0))}async function h(a){return g().track(a.name,e,t(a.properties,!0))}async function b(a){return g().page(a.name,a.properties.category,t(a.properties,!1))}async function k(a){return g().track(a.name,e,t(a.properties,!1))}return{profileDocumentDeleted:s,profileLabelAdded:n,profileLabelRemoved:r,profileShared:c,profileArchived:d,profileCandidateAdded:p,profileCommentAdded:u,profileDocumentAdded:i,profileDocumentDownloaded:o,profileDocumentRequested:l,profileRecruitmentAdded:f,profileRecruitmentRemoved:m,profileTabSelected:h,profileViewed:b,profileEmailSent:k}}const Q=Object.freeze(Object.defineProperty({__proto__:null,useAnalyticsHublerApplication:se,useAnalyticsProfile:re},Symbol.toStringTag,{value:"Module"}));function dn(){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 fn="AIzaSyDicyRD6rvVdnicp1tgV0ElazASNGbyyTs",ie=()=>new Promise(e=>{window.google&&window.google.maps?e():(window.addEventListener("gmap-ready",()=>e()),hn())}),mn=(e,t)=>ie().then(()=>pn(e,t)),pn=(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)})},hn=()=>{window.onGmapScriptReady=function(){};const e=document.createElement("script");e.src="https://maps.googleapis.com/maps/api/js?key="+fn+"&libraries=places&callback=onGmapScriptReady",e.async=!0,e.defer=!0,e.onload=()=>window.dispatchEvent(new Event("gmap-ready")),document.body.appendChild(e)},yn={scriptReady:ie,autocompleteInput:mn},gn={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"}},bn={fr:gn};let F=null;const oe=()=>F,wn=(e={})=>{let t=e.locale||"fr";const s=u=>t=u,n=()=>t,r=H(bn,(e==null?void 0:e.messages)||{}),c=(u,i)=>{const o=C(r,`${t}.${u}`);return o?i?Rn(o,i):o:u},d=(u,i)=>{const o=C(r,`${t}.${u}`);return o?An(o,i):u};return F={t:c,tNode:d,setLocale:s,getLocale:n,install:u=>{u.config.globalProperties.$t=c,u.config.globalProperties.$tNode=d}},F},Rn=(e,t)=>e?e.replace(/{{ ?([a-zA-Z_.]+) ?}}/g,(s,n)=>C(t,n)):null,An=(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()=>G.text(n);n=n.replace(/[{}%]/g,"").trim();const c=n.match(/^[a-zA-Z_.]+/)[0];n=n.replace(c,"").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],C(t,o[1])):z(i,o[1],C(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=>G[r](c,t,p,d)});return{setup:(n,{slots:r})=>()=>s.map(c=>c(r))}},G={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"},C(t,e.trim())),text:e=>x.h("span",{class:"node node--text"},e)};function Pn(e){const{t}=oe(),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 In(){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 c(){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:c,hasAction:d}}function vn(){async function e({domain:n,event:r,...c}){const d="useAnalytics"+n.charAt(0).toUpperCase()+n.slice(1);if(!t(d))throw new Error(`Domain ${n} is not defined`);const p=Q[d]();if(!s(p,r))throw new Error(`Event ${r} is not defined in domain ${n}`);return p[r](c)}function t(n){return!!Q[n]}function s(n,r){return!!n[r]}return{call:e}}const K=Object.freeze(Object.defineProperty({__proto__:null,useAnalyticsQSController:vn},Symbol.toStringTag,{value:"Module"}));function En(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=K[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 K}function n(r){return e.getAction()in r}return{dispatch:t}}function Sn(){let e=!1;function t(r,c,d){n(),d()}function s(r,c,d){if(!e)return e=!0,t(r,c,d);d()}function n(){const r=In();if(!r.hasAction())return;En(r).dispatch()}return{vueRouterBeforeEach:t,vueRouterBeforeFirst:s,handle:n}}const Cn=()=>({getAssetUrl:t=>`${S.getBaseAssetsUrl()}${t}`}),I=()=>S.getMainAppHost(),kn=()=>`${I()}/rh/establishments`,$n=e=>`${I()}/rh/establishment/${e}`,Ln=e=>e&&typeof e=="object"&&e.urls&&e.urls.display?e.urls.display:"",Mn=e=>`${I()}/rh/establishment/${e}/cvtheque/`,On=(e,t)=>`${I()}/rh/establishment/${e}/recruitment/${t}`,Dn=(e,t)=>`${I()}/rh/establishment/${e}/recruitment/${t}/kanban`,Tn=e=>`${I()}/rh/establishment/${e}/career-configuration`,_n=(e,t=null)=>t?`${I()}/career-website/${e}/${t}`:`${I()}/career-website/${e}`,xn=(e,t)=>`${I()}/career-website-preview/${e}/${t}`,Nn=(e,t=null)=>{const s=I().replace("://",`://${e}.`);return t?`${s}?_version=${t}`:`${s}`};function jn(){return{root:I,establishments:kn,establishment:$n,img:Ln,cvtheque:Mn,recruitment:On,recruitmentKanban:Dn,career:Tn,careerConfig:_n,careerPreview:xn,careerWebsite:Nn}}const J=new Set;let M;const q=e=>{if(e!=null&&e.classList){e._cssChecked=!0;for(const t of e.classList)M.has(t)||J.has(t)||(J.add(t),console.warn(`Undefined CSS class: ${t}`))}},ae=e=>{var t;for(const s of e)if(s!=null&&s.cssRules&&(s==null?void 0:s.cssRules.length)>0)ae(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))}},qn=()=>{if(M)return M;M=new Set,ae(document.styleSheets),new MutationObserver(t=>{for(const s of t)if(s.type==="childList"&&(s!=null&&s.addedNodes)){for(const n of s.addedNodes)if(!(n.nodeType===3||n.nodeType===8)){q(n);for(const r of n.querySelectorAll("*"))q(r)}}else(s==null?void 0:s.attributeName)==="class"&&q(s.target)}).observe(document,{attributes:!0,childList:!0,subtree:!0})},zn="0.2.12";exports.BaseLogger=N;exports.Gmap=yn;exports.SDKConfig=S;exports.SDKLogger=$;exports.VERSION=zn;exports._clone=ne;exports._get=C;exports._merge=H;exports._set=z;exports.createI18n=wn;exports.useActivityRepository=ze;exports.useAnalyticsHublerApplication=se;exports.useAnalyticsIdentify=dn;exports.useAnalyticsProfile=re;exports.useAssetUrls=Cn;exports.useAuthentication=O;exports.useAuthorization=te;exports.useAuthorizationStore=ln;exports.useCanAccessEstablishmentMiddleware=un;exports.useCandidateRepository=Ve;exports.useCommentRepository=We;exports.useContractTypeRepository=Xe;exports.useCvbankRepository=et;exports.useCvthequeRepository=nt;exports.useDiplomaRepository=rt;exports.useDocumentRepository=lt;exports.useDomainUrls=jn;exports.useEmailHistoryRepository=ft;exports.useEmailRepository=ht;exports.useEmailTemplateRepository=bt;exports.useEstablishmentCareerRepository=vt;exports.useEstablishmentRepository=U;exports.useFeatureFlagRepository=$t;exports.useI18n=oe;exports.useJobRepository=Mt;exports.useLabelRepository=Nt;exports.useLocaleTimeAgo=Pn;exports.useOfferRepository=qt;exports.usePrivateRequest=y;exports.useQSAction=Sn;exports.useRecruiterRepository=Ft;exports.useRecruitmentRepository=Kt;exports.useRegisterRepository=Yt;exports.useRequest=w;exports.useSpecialityRepository=tn;exports.useTagRepository=sn;exports.useUndefinedCssClasses=qn;exports.useUserRepository=B;
|
|
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 v=(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"),fe=require("pinia"),me=require("@vueuse/core");var Q={expireTimes:"1d",path:"; path=/",domain:"",secure:!1,sameSite:"; SameSite=Lax"},pe=function(){function e(){this.current_default_config=Q}return e.prototype.config=function(t){for(var s in this.current_default_config)this.current_default_config[s]=t[s]?t[s]:Q[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 D=null;function O(e={auth:"token",refresh:"refresh_token",expiration:"token_expiration_date"},t=ye()){if(D)return D;function s(){return t.getItem(e.auth)}function n(){return t.getItem(e.refresh)}function r(){return t.getItem(e.expiration)}function a(f,m){const h=o(f);if(!h.exp)throw new Error("Invalid JWT token.");t.setItem(e.auth,f),t.setItem(e.refresh,m),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 f=r();return f?new Date(f)<new Date:!0}function o(f){return JSON.parse(atob(f.split(".")[1]))}function l(){return t}return D={keys:e,getAuthToken:s,getRefreshToken:n,getExpiration:r,authenticate:a,clear:d,isAuthenticated:p,hasAuth:u,isExpired:i,getStorage:l},D}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 f(){return a("Content-Type")==="multipart/form-data"}function m(){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:f,isJson:m}}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 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 f=!o;f&&(o=new FormData);for(const m in i){const h=i[m];u(h)?(i[m]="<<FileIndex:"+l+">>",o.append(l,h,h.name),l++):typeof h=="object"&&(i[m]=p(i[m],o,l))}return f?(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 P=class P{constructor(t={}){v(this,"level",3);v(this,"logger");v(this,"prefix");this.logger=t.logger||console,this.prefix=t.prefix||""}setLevel(t){this.level=t}debug(...t){this.level<=P.LEVEL_DEBUG&&T(this.logger.debug,this.prefix,t)}info(...t){this.level<=P.LEVEL_INFO&&T(this.logger.info,this.prefix,t)}warn(...t){this.level<=P.LEVEL_WARN&&T(this.logger.warn,this.prefix,t)}error(...t){this.level<=P.LEVEL_ERROR&&T(this.logger.error,this.prefix,t)}};v(P,"LEVEL_DEBUG",0),v(P,"LEVEL_INFO",1),v(P,"LEVEL_WARN",2),v(P,"LEVEL_ERROR",3),v(P,"LEVEL_OFF",4);let N=P;const T=(e,t,s)=>{t?e(t,...s):e(...s)},$=new N({prefix:"[SDK]"});let Z=null,X=null,Y=null,ee="/",te=null;const Re=()=>Z,Ae=e=>{if($.info("[Config] Environment:",e),!e)throw new Error("Invalid environment.");Z=e},Pe=()=>X,Ie=e=>{if($.info("[Config] API Host:",e),!e)throw new Error("Invalid API host.");X=e},ve=()=>te,Ee=e=>{te=e},Se=()=>Y,Ce=e=>{if($.info("[Config] Main App Host:",e),!e)throw new Error("Invalid main app host.");Y=e},ke=e=>{$.info("[Config] Base Assets Urls:",e),ee=e},$e=()=>ee,S={getEnvironment:Re,getApiHost:Pe,getErrorHandler:ve,setEnvironment:Ae,setApiHost:Ie,setErrorHandler:Ee,getMainAppHost:Se,setMainAppHost:Ce,setBaseAssetsUrl:ke,getBaseAssetsUrl:$e};function Le(e){const t=S.getApiHost().replace(/\/$/g,"");let s=null,n={},r={};e&&p(e);function a(){return t+u()+m()}function d(){return u(!0,!0)}function p(c){return s="/"+c.replace(/^\//g,""),this}function u(c=!0,R=!1){return c?s.replace(/:(\w+)/g,(A,E)=>R?"*":r[E]||":"+E):s}function i(c){return n=c,this}function o(c,R){return n[c]=R,this}function l(c){return n[c]&&delete n[c],this}function f(){return Object.keys(n).length>0}function m(c=!0){if(!f())return"";let R="";for(const A in n)if(Array.isArray(n[A]))for(const E of n[A])R+=(R.length?"&":"")+`${A}[]=`+E;else R+=(R.length?"&":"")+A+"="+n[A];return(c?"?":"")+R}function h(c){return r=c,this}function b(c,R){return r[c]=R,this}function k(c){return r[c]&&delete r[c],this}return{setPath:p,getPath:u,getUri:a,getMockUri:d,setQueryParams:i,setQueryParam:o,removeQueryParam:l,hasQuery:f,getQueryString:m,setRouteParams:h,setRouteParam:b,removeRouteParam:k}}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 m=f(arguments);return i(m.page||1,!1),o(m.perPage||r,!1),l(),this}function p(){return s=!1,l(),this}function u(){return s}function i(m,h=!0){return t=!0,s=!0,n=m,h&&l(),this}function o(m,h=!0){return t=!0,s=!0,r=m,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 f(m){if(m.length===1&&typeof m[0]=="object")return m[0];const h={};return m.length>=1&&(h.page=m[0]),m.length>=2&&(h.perPage=m[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 Te(){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&&S.getErrorHandler()&&S.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(),f=[i];["post","put","patch"].includes(u)&&f.push(l||{}),f.push({headers:o,responseType:a.getResponseType()}),$.info("[Request] Sending request:",`[${u.toUpperCase()}]`,i);try{const m=await de[u](...f);return p(m)}catch(m){throw Ne(m,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 w(e,t="get",s=null){const n=ge(),r=Le(e),a=be(t),d=we(a,n,s),p=Me(r),u=Oe(r),i=De(r),o=Te(),l=_e(),f=qe(n,r,a,d,o,l);return{...n,...r,...a,...d,...p,...u,...i,...o,...l,...f}}function y(e,t="get",s=null){const n=w(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}),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}),Qe=()=>({share:Ue,isArchived:Be,archive:He,unarchive:Ve}),Ge=(e,t)=>y("/comment/establishment/:establishmentId/candidate/:userId").setRouteParams({establishmentId:e,userId:t}),Ke=(e,t,s)=>y("/comment/establishment/:establishmentId/candidate/:userId").setRouteParams({establishmentId:e,userId:t}).setMethod("post").setPayload(s),Je=(e,t)=>y("/comment/:commentId").setRouteParams({commentId:e}).setMethod("put").setPayload(t),We=e=>y("/comment/:commentId").setRouteParams({commentId:e}).setMethod("delete"),Ze=()=>({getForEstablishmentCandidate:Ge,postForEstablishmentCandidate:Ke,update:Je,remove:We}),Xe=()=>w("contractType").isList().addGroup("Term:id").addGroup("Term:name"),Ye=()=>({list:Xe}),et=e=>y("/v2/talents").isList().setQueryParam("establishment-id",e),tt=()=>({list:et}),nt=(e,t,s)=>y("/cvtheque/establishment/:establishmentId/candidate/:candidateId/label/synchronize").setRouteParams({establishmentId:e,candidateId:t}).setMethod("post").setPayload(s),st=()=>({syncCandidateLabels:nt}),rt=()=>w("diploma").isList().addGroup("Term:id").addGroup("Term:name"),it=()=>({list:rt}),ot=e=>y("document/candidate/:candidateId").setRouteParams({candidateId:e}).isList().disablePagination(),at=(e,t)=>y("document/candidate/:candidateId/establishment/:establishmentId/recruiter").setRouteParams({candidateId:e,establishmentId:t}).isList().disablePagination(),ct=(e,t)=>y("document/candidate/:candidateId/establishment/:establishmentId/candidate").setRouteParams({candidateId:e,establishmentId:t}).isList().disablePagination(),ut=e=>y("document/recruiter").setMethod("post").setPayload(e),lt=e=>y("document/:documentId").setRouteParams({documentId:e}).setMethod("delete"),dt=()=>({listByCandidate:ot,listByCandidateAndEstablishmentFromRecruiter:at,listByCandidateAndEstablishmentFromCandidate:ct,addFromRecruiter:ut,remove:lt}),ft=(e,t)=>y("/v2/establishments/:establishmentId/email-history").setRouteParams({establishmentId:t}).setQueryParam("receiverId",e).isList().disablePagination(),mt=()=>({listByCandidateAndEstablishment:ft}),pt=(e,t)=>y("/email/candidate/:candidateId").setMethod("post").setRouteParams({candidateId:e}).setPayload(t),ht=(e,t)=>y("/v2/emails/send").setMethod("post").setFormData().setPayload({recipientIds:e,...t}),yt=()=>({sendToCandidate:pt,sendToRecipients:ht}),gt=(e,t=!0)=>{const s=y("/v2/establishments/:establishmentId/email-templates").setRouteParams({establishmentId:e}).isList().disablePagination();return t&&s.setQueryParam("global",!0),s},bt=()=>y("/v2/self/email-templates").isList().disablePagination(),wt=()=>({listByEstablishment:gt,listSelf:bt}),Rt=(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}),Pt=(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),vt=(e,t,s)=>y("establishment-career/:establishmentId/publish/:versionId").setMethod("post").setRouteParams({establishmentId:e,versionId:t}).setPayload(s),Et=()=>({readById:Rt,readByState:At,upsert:Pt,uploadLogoAndBanner:It,publish:vt}),St=e=>w("establishment/:establishmentId").setRouteParams({establishmentId:e}),Ct=e=>y("establishment/:establishmentId/authorizations").setRouteParams({establishmentId:e}),B=()=>({read:St,authorizations:Ct}),kt=e=>w("feature-flag/maintenance").setMethod("post").setPayload(e),$t=(e,t)=>w("feature-flag/establishment").setMethod("post").setPayload({establishment:e,flagName:t}),Lt=()=>({maintenanceModeEnabled:kt,forEstablishment:$t}),Mt=()=>w("job").isList().addGroup("Term:id").addGroup("Term:name"),Ot=()=>({list:Mt}),Dt=e=>y("/label/establishment/:establishmentId").isList().setRouteParams({establishmentId:e}),Tt=(e,t)=>y("/label/establishment/:establishmentId").setMethod("post").setRouteParams({establishmentId:e}).setPayload(t),_t=(e,t)=>y("/label/:labelId").setMethod("put").setRouteParams({labelId:e}).setPayload(t),xt=e=>y("/label/:labelId").setMethod("delete").setRouteParams({labelId:e}),Nt=(e,t,s)=>y("/label/establishment/:establishmentId/candidate/:candidateId/synchronize").setMethod("post").setPayload(s).setRouteParams({establishmentId:e,candidateId:t}),jt=()=>({listByEstablishment:Dt,addToEstablishment:Tt,update:_t,remove:xt,syncForCandidate:Nt}),qt=e=>w("offer/:offerId").setRouteParams({offerId:e}),zt=()=>({read:qt}),Ft=(e,t=!1)=>{const s=y("/recruiter/establishment/:establishmentId").isList().setRouteParams({establishmentId:e});return t&&s.setQueryParam("exclude-me",1),s},Ut=()=>({listByEstablishment:Ft}),Bt=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}),Qt=(e,t)=>y("/recruitment/establishment/:establishmentId/has/candidate/:candidateId").isList().setRouteParams({establishmentId:e,candidateId:t}),Gt=(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}),Jt=()=>({mineByEstablishment:Bt,mineWithoutCandidate:Ht,mineWithCandidate:Vt,withCandidate:Qt,addCandidates:Gt,removeCandidate:Kt}),Wt=(e,t,s,n=null)=>{const r=w("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},Zt=(e,t)=>w("candidate/register/update/:token").setMethod("post").setRouteParams({token:e}).setPayload(t),Xt=e=>w("candidate/register/read/:token").setRouteParams({token:e}),Yt=e=>w("candidate/register/close/:token").setMethod("post").setRouteParams({token:e}),en=()=>({open:Wt,update:Zt,read:Xt,close:Yt}),tn=()=>w("speciality").isList().addGroup("Term:id").addGroup("Term:name"),nn=()=>({list:tn}),sn=e=>y("/tag/public/establishment/:establishmentId").isList().setRouteParams({establishmentId:e}),rn=()=>({listByEstablishment:sn}),on=e=>w("user/email/isset/:email").setRouteParams({email:e}),an=()=>y("user/self").addGroup("user:self"),cn=e=>y("/user/:uuid").setRouteParams({uuid:e}),un=e=>w("/user/:uuid").setRouteParams({uuid:e}),H=()=>({emailExists:on,self:an,byUuidPrivate:cn,byUuid:un});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 H().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(f=>l[f]===!0)},clear:()=>{e.user=void 0,e.roles=[],e.establishments={}}},_}async function ln(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 dn=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 H().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)}}}),C=(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},V=(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]=V(s[n],r):s[n]=se(r);return s};let L=null;function g(){if(L)return L;const e=S.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 f=window.analytics=window.analytics||[];if(!f.initialize)if(f.invoked)window.console&&console.error&&console.error("Segment snippet included twice.");else{f.invoked=!0,f.methods=["trackSubmit","trackClick","trackLink","trackForm","pageview","identify","reset","group","track","ready","alias","debug","page","once","off","on","addSourceMiddleware","addIntegrationMiddleware","setAnonymousId","addDestinationMiddleware"],f.factory=function(m){return function(){if(window.analytics.initialized)return window.analytics[m].apply(window.analytics,arguments);const h=Array.prototype.slice.call(arguments);return h.unshift(m),f.push(h),f}};for(let m=0;m<f.methods.length;m++){const h=f.methods[m];f[h]=f.factory(h)}f.load=function(m,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/"+m+"/analytics.min.js",b.onerror=()=>window.dispatchEvent(new Event("analytics-error"));const k=document.getElementsByTagName("script")[0];k.parentNode.insertBefore(b,k),f._loadOptions=h},f._writeKey=t,f.SNIPPET_VERSION="4.16.1",f.load(t),f.page(),f.ready(()=>window.dispatchEvent(new Event("analytics-ready")))}}async function p(){return r!==null||(r=new Promise((f,m)=>{if(!a())return l("Analytics is disabled."),f();if(window.addEventListener("analytics-ready",()=>{l("Analytics script loaded successfully."),f()}),window.addEventListener("analytics-error",()=>{l("Analytics script failed to load. Consider disabling your AdBlocker.",null,"error"),m()}),l("Loading Analytics script."),window.analytics)return f();d()})),r}async function u(f,m){try{if(await this.analyticsScriptReady(),l("[identify]",[f,m]),a())return window.analytics.identify(f,m)}catch{l("[identify]",[f,m],"error")}}async function i(f,m,h){typeof h!="object"&&(h={});try{if(await this.analyticsScriptReady(),l("[page]",[f,m,h]),a())return window.analytics.page(f,{category:m,...h})}catch{l("[page]",[f,m,h],"error")}}async function o(f,m,h){typeof h!="object"&&(h={});try{if(await this.analyticsScriptReady(),l("[track]",[f,m,h]),a())return window.analytics.track(f,{category:m,...h})}catch{l("[track]",[f,m,h],"error")}}function l(f,m=[],h="log"){m||(m=[]),n&&console[h](`%cⒶ%c ::SDK Analytics:: ${f}`,"color: green;","color: inherit;",...m)}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,R){var E;if(!c)throw new Error(`Missing arguments for domain "${e}"`);const A={companyId:c.companyId?c.companyId.toString():null,hublerId:(E=c.hublerId)==null?void 0:E.toString()};return R&&(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 f(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 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 k(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:f,profileRecruitmentRemoved:m,profileTabSelected:h,profileViewed:b,profileEmailSent:k}}const G=Object.freeze(Object.defineProperty({__proto__:null,useAnalyticsHublerApplication:re,useAnalyticsProfile:ie},Symbol.toStringTag,{value:"Module"}));function fn(){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 mn="AIzaSyDicyRD6rvVdnicp1tgV0ElazASNGbyyTs",oe=()=>new Promise(e=>{window.google&&window.google.maps?e():(window.addEventListener("gmap-ready",()=>e()),yn())}),pn=(e,t)=>oe().then(()=>hn(e,t)),hn=(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)})},yn=()=>{window.onGmapScriptReady=function(){};const e=document.createElement("script");e.src="https://maps.googleapis.com/maps/api/js?key="+mn+"&libraries=places&callback=onGmapScriptReady",e.async=!0,e.defer=!0,e.onload=()=>window.dispatchEvent(new Event("gmap-ready")),document.body.appendChild(e)},gn={scriptReady:oe,autocompleteInput:pn},bn={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"}},wn={fr:bn};let F=null;const ae=()=>F,Rn=(e={})=>{let t=e.locale||"fr";const s=u=>t=u,n=()=>t,r=V(wn,(e==null?void 0:e.messages)||{}),a=(u,i)=>{const o=C(r,`${t}.${u}`);return o?i?An(o,i):o:u},d=(u,i)=>{const o=C(r,`${t}.${u}`);return o?Pn(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},An=(e,t)=>e?e.replace(/{{ ?([a-zA-Z_.]+) ?}}/g,(s,n)=>C(t,n)):null,Pn=(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],C(t,o[1])):z(i,o[1],C(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"},C(t,e.trim())),text:e=>x.h("span",{class:"node node--text"},e)};function In(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 me.useTimeAgo(e,{fullDateFormatter:n=>n.toLocaleDateString(),messages:s})}function vn(){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 En(){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:En},Symbol.toStringTag,{value:"Module"}));function Sn(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 Cn(){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=vn();if(!r.hasAction())return;Sn(r).dispatch()}return{vueRouterBeforeEach:t,vueRouterBeforeFirst:s,handle:n}}const kn=()=>({getAssetUrl:t=>`${S.getBaseAssetsUrl()}${t}`}),I=()=>S.getMainAppHost(),$n=()=>`${I()}/rh/establishments`,Ln=e=>`${I()}/rh/establishment/${e}`,Mn=e=>e&&typeof e=="object"&&e.urls&&e.urls.display?e.urls.display:"",On=e=>`${I()}/rh/establishment/${e}/cvtheque/`,Dn=(e,t)=>`${I()}/rh/establishment/${e}/recruitment/${t}`,Tn=(e,t)=>`${I()}/rh/establishment/${e}/recruitment/${t}/kanban`,_n=e=>`${I()}/rh/establishment/${e}/career-configuration`,xn=(e,t=null)=>t?`${I()}/career-website/${e}/${t}`:`${I()}/career-website/${e}`,Nn=(e,t)=>`${I()}/career-website-preview/${e}/${t}`,jn=(e,t=null)=>{const s=I().replace("://",`://${e}.`);return t?`${s}?_version=${t}`:`${s}`};function qn(){return{root:I,establishments:$n,establishment:Ln,img:Mn,cvtheque:On,recruitment:Dn,recruitmentKanban:Tn,career:_n,careerConfig:xn,careerPreview:Nn,careerWebsite:jn}}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),console.warn(`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))}},zn=(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})},Fn="0.2.13";exports.BaseLogger=N;exports.Gmap=gn;exports.SDKConfig=S;exports.SDKLogger=$;exports.VERSION=Fn;exports._clone=se;exports._get=C;exports._merge=V;exports._set=z;exports.createI18n=Rn;exports.useActivityRepository=Fe;exports.useAnalyticsHublerApplication=re;exports.useAnalyticsIdentify=fn;exports.useAnalyticsProfile=ie;exports.useAssetUrls=kn;exports.useAuthentication=O;exports.useAuthorization=ne;exports.useAuthorizationStore=dn;exports.useCanAccessEstablishmentMiddleware=ln;exports.useCandidateRepository=Qe;exports.useCommentRepository=Ze;exports.useContractTypeRepository=Ye;exports.useCvbankRepository=tt;exports.useCvthequeRepository=st;exports.useDiplomaRepository=it;exports.useDocumentRepository=dt;exports.useDomainUrls=qn;exports.useEmailHistoryRepository=mt;exports.useEmailRepository=yt;exports.useEmailTemplateRepository=wt;exports.useEstablishmentCareerRepository=Et;exports.useEstablishmentRepository=B;exports.useFeatureFlagRepository=Lt;exports.useI18n=ae;exports.useJobRepository=Ot;exports.useLabelRepository=jt;exports.useLocaleTimeAgo=In;exports.useOfferRepository=zt;exports.usePrivateRequest=y;exports.useQSAction=Cn;exports.useRecruiterRepository=Ut;exports.useRecruitmentRepository=Jt;exports.useRegisterRepository=en;exports.useRequest=w;exports.useSpecialityRepository=nn;exports.useTagRepository=rn;exports.useUndefinedCssClasses=zn;exports.useUserRepository=H;
|