@hublo/mstaff-client-sdk 0.2.6 → 0.2.7
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 +268 -264
- package/package.json +1 -1
package/dist/main.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var re=Object.defineProperty;var ie=(e,t,r)=>t in e?re(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var v=(e,t,r)=>(ie(e,typeof t!="symbol"?t+"":t,r),r);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const T=require("vue"),oe=require("axios"),se=require("pinia"),ae=require("@vueuse/core");var H={expireTimes:"1d",path:"; path=/",domain:"",secure:!1,sameSite:"; SameSite=Lax"},ce=function(){function e(){this.current_default_config=H}return e.prototype.config=function(t){for(var r in this.current_default_config)this.current_default_config[r]=t[r]?t[r]:H[r]},e.prototype.get=function(t){var r=decodeURIComponent(document.cookie.replace(new RegExp("(?:(?:^|.*;)\\s*"+encodeURIComponent(t).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=\\s*([^;]*).*$)|^.*$"),"$1"))||null;if(r&&r.substring(0,1)==="{"&&r.substring(r.length-1,r.length)==="}")try{r=JSON.parse(r)}catch{return r}return r},e.prototype.set=function(t,r,n,i,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.");r&&r.constructor===Object&&(r=JSON.stringify(r));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 o=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="+ +o*2592e3;break;case"d":u="; max-age="+ +o*86400;break;case"h":u="; max-age="+ +o*3600;break;case"min":u="; max-age="+ +o*60;break;case"s":u="; max-age="+o;break;case"y":u="; max-age="+ +o*31104e3;break}}else u="; expires="+n;break;case Date:u="; expires="+n.toUTCString();break}return document.cookie=encodeURIComponent(t)+"="+encodeURIComponent(r)+u+(c?"; domain="+c:this.current_default_config.domain?this.current_default_config.domain:"")+(i?"; path="+i: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,r,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:"")+(r?"; path="+r: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*/),r=0;r<t.length;r++)t[r]=decodeURIComponent(t[r]);return t},e}(),j=null;function ue(){j==null&&(j=new ce);var e=T.reactive(j);return{cookies:e}}function le(){const{cookies:e}=ue();function t(c){return e.get(c)}function r(c,d){return e.set(c,d)}function n(c){return e.remove(c)}function i(){e.keys().forEach(c=>n(c))}return{getItem:t,setItem:r,removeItem:n,clear:i}}let O=null;function L(e={auth:"token",refresh:"refresh_token",expiration:"token_expiration_date"},t=le()){if(O)return O;function r(){return t.getItem(e.auth)}function n(){return t.getItem(e.refresh)}function i(){return t.getItem(e.expiration)}function c(m,f){const h=s(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()&&!o()}function u(){return!!r()}function o(){const m=i();return m?new Date(m)<new Date:!0}function s(m){return JSON.parse(atob(m.split(".")[1]))}function l(){return t}return O={keys:e,getAuthToken:r,getRefreshToken:n,getExpiration:i,authenticate:c,clear:d,isAuthenticated:p,hasAuth:u,isExpired:o,getStorage:l},O}function de(e){let t={"Content-Type":"application/json"};e&&r(e);function r(h,b=!1){return t=b?h:{...t,...h},this}function n(){return t}function i(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 i("Authorization","Bearer "+h),this}function u(){return d("Authorization"),this}function o(){return!!c("Authorization")}function s(){return i("Content-Type","multipart/form-data"),this}function l(){return i("Content-Type","application/json"),this}function m(){return c("Content-Type")==="multipart/form-data"}function f(){return c("Content-Type")==="application/json"}return{setHeaders:r,getHeaders:n,setHeader:i,getHeader:c,removeHeader:d,setAuthorization:p,removeAuthorization:u,hasAuthorization:o,setFormData:s,setJson:l,isFormData:m,isJson:f}}function me(e){let t=null;e&&r(e);function r(i){if(i=i.toLowerCase(),!["get","post","put","patch","delete"].includes(i))throw new Error("Invalid method.");return t=i,this}function n(){return t}return{setMethod:r,getMethod:n}}function fe(e,t,r){let n=null;r&&i(r);function i(o){if(!["post","put","patch"].includes(e.getMethod()))throw new Error("Payload can only be set for POST, PUT and PATCH requests.");return o instanceof FormData?t.setFormData():d(o)&&(o=p(o),t.setFormData()),t.isFormData()&&e.getMethod()==="put"&&(e.setMethod("post"),o.append("_method","PUT")),n=o,this}function c(){return n}function d(o){for(const s in o){const l=o[s];if(u(l))return!0;if(typeof l=="object"&&d(l))return!0}return!1}function p(o,s=null,l=0){const m=!s;m&&(s=new FormData);for(const f in o){const h=o[f];u(h)?(o[f]="<<FileIndex:"+l+">>",s.append(l,h,h.name),l++):typeof h=="object"&&(o[f]=p(o[f],s,l))}return m?(s.append("payload",JSON.stringify(o)),s):o}function u(o){return typeof File<"u"&&o instanceof File||typeof Blob<"u"&&o instanceof Blob}return{setPayload:i,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&&D(this.logger.debug,this.prefix,t)}info(...t){this.level<=P.LEVEL_INFO&&D(this.logger.info,this.prefix,t)}warn(...t){this.level<=P.LEVEL_WARN&&D(this.logger.warn,this.prefix,t)}error(...t){this.level<=P.LEVEL_ERROR&&D(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 x=P;const D=(e,t,r)=>{t?e(t,...r):e(...r)},M=new x({prefix:"[SDK]"});let G=null,K=null,J=null,W=null;const pe=()=>G,he=e=>{if(M.info("[Config] Environment:",e),!e)throw new Error("Invalid environment.");G=e},ye=()=>K,ge=e=>{if(M.info("[Config] API Host:",e),!e)throw new Error("Invalid API host.");K=e},be=()=>W,we=e=>{W=e},Re=()=>J,Ae=e=>{if(M.info("[Config] Main App Host:",e),!e)throw new Error("Invalid main app host.");J=e},k={getEnvironment:pe,getApiHost:ye,getErrorHandler:be,setEnvironment:he,setApiHost:ge,setErrorHandler:we,getMainAppHost:Re,setMainAppHost:Ae};function Pe(e){const t=k.getApiHost().replace(/\/$/g,"");let r=null,n={},i={};e&&p(e);function c(){return t+u()+f()}function d(){return u(!0,!0)}function p(a){return r="/"+a.replace(/^\//g,""),this}function u(a=!0,R=!1){return a?r.replace(/:(\w+)/g,(A,E)=>R?"*":i[E]||":"+E):r}function o(a){return n=a,this}function s(a,R){return n[a]=R,this}function l(a){return n[a]&&delete n[a],this}function m(){return Object.keys(n).length>0}function f(a=!0){if(!m())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 i=a,this}function b(a,R){return i[a]=R,this}function C(a){return i[a]&&delete i[a],this}return{setPath:p,getPath:u,getUri:c,getMockUri:d,setQueryParams:o,setQueryParam:s,removeQueryParam:l,hasQuery:m,getQueryString:f,setRouteParams:h,setRouteParam:b,removeRouteParam:C}}function Ie(e){let t=[];function r(){return t=o(arguments),d(),this}function n(){return t.length>0}function i(s){return t.includes(s.trim())?this:(t.push(s.trim()),d(),this)}function c(s){const l=t.indexOf(s.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(s){return s.split(",").map(l=>l.trim())}function u(s){return s.join(",")}function o(s){let l=[];return s.length===1?typeof s[0]=="string"?l=p(s[0]):Array.isArray(s[0])&&(l=s[0]):l=Array.from(s),l}return{setGroups:r,hasGroups:n,addGroup:i,removeGroup:c}}function ve(e){let t=!1,r=!1,n=1,i=10;function c(){return t=!0,d(),this}function d(){r=!0;const f=m(arguments);return o(f.page||1,!1),s(f.perPage||i,!1),l(),this}function p(){return r=!1,l(),this}function u(){return r}function o(f,h=!0){return t=!0,r=!0,n=f,h&&l(),this}function s(f,h=!0){return t=!0,r=!0,i=f,h&&l(),this}function l(){t?u()?(e.removeQueryParam("pagination"),e.setQueryParam("page",n),e.setQueryParam("nbResultPerPage",i)):(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:c,paginate:d,disablePagination:p,hasPagination:u,setPage:o,setPerPage:s}}function Ee(e){let t=!1,r="id",n="ASC";function i(){t=!0;const s=o(arguments);return s.orderBy&&d(s.orderBy,!1),s.orderDir&&p(s.orderDir,!1),u(),this}function c(){return t}function d(s,l=!0){return t=!0,r=s,l&&u(),this}function p(s,l=!0){if(s=s.toUpperCase(),["ASC","DESC"].indexOf(s)===-1)throw new Error("Invalid order direction");return t=!0,n=s,l&&u(),this}function u(){c()&&(e.setQueryParam("orderBy",r),e.setQueryParam("orderDirection",n))}function o(s){if(s.length===1&&typeof s[0]=="object")return s[0];const l={};return s.length>=1&&(l.orderBy=s[0]),s.length>=2&&(l.orderDir=s[1]),l}return{setOrder:i,hasOrder:c,setOrderBy:d,setOrderDir:p}}function Se(){let e=!1;function t(){return e=!0,this}function r(){return e}return{setSilent:t,isSilent:r}}function Ce(){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 r(){return e}return{setResponseType:t,getResponseType:r}}function ke(e){function t(){return e}function r(){return e.data}function n(){return e.data}return{getResponse:t,getData:r,getPayload:n}}function $e(e,t=!1){let r=!1,n=!1;return e.response?(r=!0,n=!0):e.request&&(r=!0),!t&&k.getErrorHandler()&&k.getErrorHandler()(e),{sent:r,responded:n,error:e}}function Le(e){function t(){return e}function r(){return e.data}function n(){return e.data}function i(){return e.data["@type"]==="hydra:Collection"}function c(){return i()?e.data["hydra:member"]:null}function d(){return i()?e.data["hydra:totalItems"]:null}function p(){return i()?e.data["hydra:view"]&&e.data["hydra:view"]["hydra:last"]:!1}function u(){return!i()||!p()?null:parseInt(e.data["hydra:view"]["@id"].match(/page=(\d+)/)[1])}function o(){return!i()||!p()?null:parseInt(e.data["hydra:view"]["hydra:last"].match(/page=(\d+)/)[1])}return{getResponse:t,getData:r,getPayload:n,isCollection:i,getCollection:c,getTotal:d,hasPagination:p,getPage:u,getPages:o}}function Me(e,t,r,n,i,c){async function d(){const u=r.getMethod(),o=t.getUri(),s=e.getHeaders(),l=n.getPayload(),m=[o];["post","put","patch"].includes(u)&&m.push(l||{}),m.push({headers:s,responseType:c.getResponseType()}),M.info("[Request] Sending request:",`[${u.toUpperCase()}]`,o);try{const f=await oe[u](...m);return p(f)}catch(f){throw $e(f,i.isSilent())}}function p(u){if(u.headers){const o=Object.keys(u.headers),s=o.map(l=>l.toLowerCase()).indexOf("content-type");if(s!==-1&&u.headers[o[s]].includes("application/ld+json"))return Le(u)}return ke(u)}return{send:d}}function w(e,t="get",r=null){const n=de(),i=Pe(e),c=me(t),d=fe(c,n,r),p=Ie(i),u=ve(i),o=Ee(i),s=Se(),l=Ce(),m=Me(n,i,c,d,s,l);return{...n,...i,...c,...d,...p,...u,...o,...s,...l,...m}}function y(e,t="get",r=null){const n=w(e,t,r),i=L();i.isAuthenticated()&&n.setAuthorization(i.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 Oe=(e,t)=>y("/v2/activity/candidate/:candidateId/establishment/:establishmentId").setRouteParams({candidateId:e,establishmentId:t}),De=()=>({listByCandidateAndEstablishment:Oe}),_e=(e,t,r)=>y("/candidate/:candidateId/share/establishment/:establishmentId").setMethod("post").setRouteParams({candidateId:e,establishmentId:t}).setPayload(r),Te=(e,t)=>y("/candidate/:candidateId/archive/establishment/:establishmentId").setRouteParams({candidateId:e,establishmentId:t}),xe=(e,t)=>y("/candidate/:candidateId/archive/establishment/:establishmentId").setMethod("post").setRouteParams({candidateId:e,establishmentId:t}),je=(e,t)=>y("/candidate/:candidateId/archive/establishment/:establishmentId").setMethod("delete").setRouteParams({candidateId:e,establishmentId:t}),Ne=()=>({share:_e,isArchived:Te,archive:xe,unarchive:je}),ze=(e,t)=>y("/comment/establishment/:establishmentId/candidate/:userId").setRouteParams({establishmentId:e,userId:t}),Fe=(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),Be=e=>y("/comment/:commentId").setRouteParams({commentId:e}).setMethod("delete"),He=()=>({getForEstablishmentCandidate:ze,postForEstablishmentCandidate:Fe,update:qe,remove:Be}),Ve=()=>w("contractType").isList().addGroup("Term:id").addGroup("Term:name"),Qe=()=>({list:Ve}),Ue=e=>y("/v2/talents").isList().setQueryParam("establishment-id",e),Ge=()=>({list:Ue}),Ke=(e,t,r)=>y("/cvtheque/establishment/:establishmentId/candidate/:candidateId/label/synchronize").setRouteParams({establishmentId:e,candidateId:t}).setMethod("post").setPayload(r),Je=()=>({syncCandidateLabels:Ke}),We=()=>w("diploma").isList().addGroup("Term:id").addGroup("Term:name"),Ze=()=>({list:We}),Xe=e=>y("document/candidate/:candidateId").setRouteParams({candidateId:e}).isList().disablePagination(),Ye=(e,t)=>y("document/candidate/:candidateId/establishment/:establishmentId/recruiter").setRouteParams({candidateId:e,establishmentId:t}).isList().disablePagination(),et=(e,t)=>y("document/candidate/:candidateId/establishment/:establishmentId/candidate").setRouteParams({candidateId:e,establishmentId:t}).isList().disablePagination(),tt=e=>y("document/recruiter").setMethod("post").setPayload(e),nt=e=>y("document/:documentId").setRouteParams({documentId:e}).setMethod("delete"),rt=()=>({listByCandidate:Xe,listByCandidateAndEstablishmentFromRecruiter:Ye,listByCandidateAndEstablishmentFromCandidate:et,addFromRecruiter:tt,remove:nt}),it=(e,t)=>y("/v2/establishments/:establishmentId/email-history").setRouteParams({establishmentId:t}).setQueryParam("receiverId",e).isList().disablePagination(),ot=()=>({listByCandidateAndEstablishment:it}),st=(e,t)=>y("/email/candidate/:candidateId").setMethod("post").setRouteParams({candidateId:e}).setPayload(t),at=(e,t)=>y("/v2/emails/send").setMethod("post").setFormData().setPayload({recipientIds:e,...t}),ct=()=>({sendToCandidate:st,sendToRecipients:at}),ut=(e,t=!0)=>{const r=y("/v2/establishments/:establishmentId/email-templates").setRouteParams({establishmentId:e}).isList().disablePagination();return t&&r.setQueryParam("global",!0),r},lt=()=>y("/v2/self/email-templates").isList().disablePagination(),dt=()=>({listByEstablishment:ut,listSelf:lt}),mt=(e,t)=>y("establishment-career/:establishmentId/:versionId").setRouteParams({establishmentId:e,versionId:t}),ft=(e,t="published")=>y("establishment-career/:establishmentId/state/:state").setRouteParams({establishmentId:e,state:t}),pt=(e,t,r=null)=>{const n=r!==null?y("establishment-career/:establishmentId/:versionId").setRouteParams({establishmentId:e,versionId:r}):y("establishment-career/:establishmentId").setRouteParams({establishmentId:e});return n.setMethod("post").setPayload(t),n},ht=(e,t)=>y("establishment-career/:establishmentId/logo-banner").setMethod("post").setRouteParams({establishmentId:e}).setPayload(t),yt=(e,t,r)=>y("establishment-career/:establishmentId/publish/:versionId").setMethod("post").setRouteParams({establishmentId:e,versionId:t}).setPayload(r),gt=()=>({readById:mt,readByState:ft,upsert:pt,uploadLogoAndBanner:ht,publish:yt}),bt=e=>w("establishment/:establishmentId").setRouteParams({establishmentId:e}),wt=e=>y("establishment/:establishmentId/authorizations").setRouteParams({establishmentId:e}),F=()=>({read:bt,authorizations:wt}),Rt=e=>w("feature-flag/maintenance").setMethod("post").setPayload(e),At=(e,t)=>w("feature-flag/establishment").setMethod("post").setPayload({establishment:e,flagName:t}),Pt=()=>({maintenanceModeEnabled:Rt,forEstablishment:At}),It=()=>w("job").isList().addGroup("Term:id").addGroup("Term:name"),vt=()=>({list:It}),Et=e=>y("/label/establishment/:establishmentId").isList().setRouteParams({establishmentId:e}),St=(e,t)=>y("/label/establishment/:establishmentId").setMethod("post").setRouteParams({establishmentId:e}).setPayload(t),Ct=(e,t)=>y("/label/:labelId").setMethod("put").setRouteParams({labelId:e}).setPayload(t),kt=e=>y("/label/:labelId").setMethod("delete").setRouteParams({labelId:e}),$t=(e,t,r)=>y("/label/establishment/:establishmentId/candidate/:candidateId/synchronize").setMethod("post").setPayload(r).setRouteParams({establishmentId:e,candidateId:t}),Lt=()=>({listByEstablishment:Et,addToEstablishment:St,update:Ct,remove:kt,syncForCandidate:$t}),Mt=e=>w("offer/:offerId").setRouteParams({offerId:e}),Ot=()=>({read:Mt}),Dt=(e,t=!1)=>{const r=y("/recruiter/establishment/:establishmentId").isList().setRouteParams({establishmentId:e});return t&&r.setQueryParam("exclude-me",1),r},_t=()=>({listByEstablishment:Dt}),Tt=e=>y("/recruitment/establishment/:establishmentId/mine").isList().setRouteParams({establishmentId:e}),xt=(e,t)=>y("/recruitment/mine/establishment/:establishmentId/has-not/candidate/:candidateId").isList().setRouteParams({establishmentId:e,candidateId:t}),jt=(e,t)=>y("/recruitment/mine/establishment/:establishmentId/has/candidate/:candidateId").isList().setRouteParams({establishmentId:e,candidateId:t}),Nt=(e,t)=>y("/recruitment/establishment/:establishmentId/has/candidate/:candidateId").isList().setRouteParams({establishmentId:e,candidateId:t}),zt=(e,t)=>y("/recruitment/:recruitmentId/candidate").setMethod("put").setRouteParams({recruitmentId:e}).setPayload(t),Ft=(e,t)=>y("/recruitment/:recruitmentId/candidate/:candidateId").setMethod("delete").setRouteParams({recruitmentId:e,candidateId:t}),qt=()=>({mineByEstablishment:Tt,mineWithoutCandidate:xt,mineWithCandidate:jt,withCandidate:Nt,addCandidates:zt,removeCandidate:Ft}),Bt=(e,t,r,n=null)=>{const i=w("candidate/register/open").setMethod("post"),c={email:e};return t==="establishment"&&(c.establishmentId=r),t==="offer"&&(c.offerId=r),n&&(c.referer=n),i.setPayload(c),i},Ht=(e,t)=>w("candidate/register/update/:token").setMethod("post").setRouteParams({token:e}).setPayload(t),Vt=e=>w("candidate/register/read/:token").setRouteParams({token:e}),Qt=e=>w("candidate/register/close/:token").setMethod("post").setRouteParams({token:e}),Ut=()=>({open:Bt,update:Ht,read:Vt,close:Qt}),Gt=()=>w("speciality").isList().addGroup("Term:id").addGroup("Term:name"),Kt=()=>({list:Gt}),Jt=e=>y("/tag/public/establishment/:establishmentId").isList().setRouteParams({establishmentId:e}),Wt=()=>({listByEstablishment:Jt}),Zt=e=>w("user/email/isset/:email").setRouteParams({email:e}),Xt=()=>y("user/self").addGroup("user:self"),Yt=e=>y("/user/:uuid").setRouteParams({uuid:e}),en=e=>w("/user/:uuid").setRouteParams({uuid:e}),q=()=>({emailExists:Zt,self:Xt,byUuidPrivate:Yt,byUuid:en});let _;function Z(){if(_)return _;const e={user:void 0,roles:[],establishments:{}},t=async()=>{if(!L().isAuthenticated())throw new Error("::SDK Authorization:: User not authenticated");const o=(await q().self().send()).getData();e.user={id:o.id,email:o.email,firstName:o.firstName,lastName:o.lastName,avatar:o.avatar},e.roles=o.roles},r=async o=>{if(!L().isAuthenticated())throw new Error("::SDK Authorization:: User not authenticated");e.establishments[o]=(await F().authorizations(o).send()).getData()},n=o=>{if(e.user===void 0)throw new Error("::SDK Authorization:: User not fetched");return e.roles.includes(o)};return _={fetchSelf:t,fetchPermission:r,hasRole:n,hasRoleRH:()=>n("ROLE_RH"),hasRoleCandidate:()=>n("ROLE_CANDIDATE"),hasRoleAdmin:()=>n("ROLE_ADMIN"),hasPermission:(o,...s)=>{const l=e.establishments[o];if(l===void 0)throw new Error(`::SDK Authorization:: Permissions not fetched for establishment ${o}`);return s.every(m=>l[m]===!0)},clear:()=>{e.user=void 0,e.roles=[],e.establishments={}}},_}async function tn(e,...t){if(!L().isAuthenticated())throw"ERR_NOT_AUTHENTICATED";const n=Z();await Promise.all([n.fetchSelf(),n.fetchPermission(e)]);for(let i=0;i<t.length;i++){const c=t[i];if(!n.hasPermission(e,c))throw"ERR_MISSING_PERMISSION"}}const nn=se.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 r=await F().authorizations(e).send();this.establishments[e]=r.getData()}},hasPermission(e,...t){const r=this.establishments[e];return r===void 0?!1:t.every(n=>r[n]===!0)}}}),S=(e,t,r)=>{const n=typeof t=="string"?t.split("."):[t];let i=e;for(const[c,d]of n.entries()){if(c===n.length-1)return i[d]!==void 0?i[d]:r;if(!(d in i)||typeof i[d]!="object")return r;i=i[d]}return r},N=(e,t,r)=>{const n=typeof t=="string"?t.split("."):[t],i=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]=r;else{const o=i(n[u+1])?[]:{};p=i(p)?c(p):p,d[p]=d[p]??o,d=d[p]}}),e},X=e=>{if(typeof e=="object"){if(Array.isArray(e))return[...e];if(Object(e)===e)return{...e}}return e},B=(e,t)=>{const r={...e};for(const[n,i]of Object.entries(t))n in r&&typeof r[n]=="object"&&typeof i=="object"?r[n]=B(r[n],i):r[n]=X(i);return r};let $=null;function g(){if($)return $;const e=k.getEnvironment(),t=(()=>e==="prod"||e==="production"?"pPROC7dPoJ7XdxHrwsTQNXCGX79MJjhp":e==="staging"?"823rqOTwVk1ZCWVyBAdLInZ77TcFF0CF":"TMZX6evFnu87JrBHV5qLwHsld5C6hilZ")(),r=!!t,n=e!=="prod"&&e!=="production";let i=null;function c(){return r}function d(){const m=window.analytics=window.analytics||[];if(!m.initialize)if(m.invoked)window.console&&console.error&&console.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 C=document.getElementsByTagName("script")[0];C.parentNode.insertBefore(b,C),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 i!==null||(i=new Promise((m,f)=>{if(!c())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()})),i}async function u(m,f){try{if(await this.analyticsScriptReady(),l("[identify]",[m,f]),c())return window.analytics.identify(m,f)}catch{l("[identify]",[m,f],"error")}}async function o(m,f,h){typeof h!="object"&&(h={});try{if(await this.analyticsScriptReady(),l("[page]",[m,f,h]),c())return window.analytics.page(m,{category:f,...h})}catch{l("[page]",[m,f,h],"error")}}async function s(m,f,h){typeof h!="object"&&(h={});try{if(await this.analyticsScriptReady(),l("[track]",[m,f,h]),c())return window.analytics.track(m,{category:f,...h})}catch{l("[track]",[m,f,h],"error")}}function l(m,f=[],h="log"){f||(f=[]),n&&console[h](`%cⒶ%c ::SDK Analytics:: ${m}`,"color: green;","color: inherit;",...f)}return $={analyticsScriptReady:p,isEnabled:c,identify:u,page:o,track:s,consoleMessage:l},$}g.destroy=()=>$=null;function Y(){const e="Hubler Application";function t(o){var l;if(!o)throw new Error(`Missing arguments for domain "${e}"`);const s=!!o.offerId;if(s&&!o.recruitmentId)throw new Error(`Missing argument "recruitmentId" for domain "${e}"`);return{companyId:(l=o.establishmentId)==null?void 0:l.toString(),jobOfferId:s?o.offerId.toString():null,recruitmentId:s?o.recruitmentId.toString():null,selections:[s?"Application":"Spontaneous Application"]}}async function r(o){return g().page("Application Authentication Viewed",e,t(o))}async function n(o){return g().page("Application Magic Link Viewed",e,t(o))}async function i(o){return g().page("Application Job Viewed",e,t(o))}async function c(o){return g().page("Application Information Viewed",e,t(o))}async function d(o){return g().page("Application Document Viewed",e,t(o))}async function p(o){return g().page("Application Success Viewed",e,t(o))}async function u(o){if(!o.error)throw new Error(`Missing argument "error" for domain "${e}", event "Application Form Failed"`);return g().track("Application Form Failed",e,{...t(o),error:o.error})}return{applicationAuthenticationViewed:r,applicationMagicLinkViewed:n,applicationJobViewed:i,applicationInformationViewed:c,applicationDocumentViewed:d,applicationSuccessViewed:p,applicationFormFailed:u}}function ee(){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 r(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 i(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 o(a){return g().track(a.name,e,t(a.properties,!0))}async function s(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 m(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 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 C(a){return g().track(a.name,e,t(a.properties,!1))}return{profileDocumentDeleted:r,profileLabelAdded:n,profileLabelRemoved:i,profileShared:c,profileArchived:d,profileCandidateAdded:p,profileCommentAdded:u,profileDocumentAdded:o,profileDocumentDownloaded:s,profileDocumentRequested:l,profileRecruitmentAdded:m,profileRecruitmentRemoved:f,profileTabSelected:h,profileViewed:b,profileEmailSent:C}}const V=Object.freeze(Object.defineProperty({__proto__:null,useAnalyticsHublerApplication:Y,useAnalyticsProfile:ee},Symbol.toStringTag,{value:"Module"}));function rn(){function e(r){return g().identify(r.id,{email:r.email,firstName:r.firstname,lastName:r.lastname,createdAt:r.createdAt,type:"Hubler",lang:"fr",medium:t()?"MOBILE_DEVICE":"WEB_BROWSER"})}function t(){let r=!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)))&&(r=!0)}(navigator.userAgent||navigator.vendor||window.opera),r}return{identifyCandidate:e}}const on="AIzaSyDicyRD6rvVdnicp1tgV0ElazASNGbyyTs",te=()=>new Promise(e=>{window.google&&window.google.maps?e():(window.addEventListener("gmap-ready",()=>e()),cn())}),sn=(e,t)=>te().then(()=>an(e,t)),an=(e,t)=>{const r=new window.google.maps.places.Autocomplete(e,{componentRestrictions:{country:["fr","re","yt","gp","mq"]}});window.google.maps.event.addListener(r,"place_changed",()=>{const n=r.getPlace();n.formatted_address&&t(n)})},cn=()=>{window.onGmapScriptReady=function(){};const e=document.createElement("script");e.src="https://maps.googleapis.com/maps/api/js?key="+on+"&libraries=places&callback=onGmapScriptReady",e.async=!0,e.defer=!0,e.onload=()=>window.dispatchEvent(new Event("gmap-ready")),document.body.appendChild(e)},un={scriptReady:te,autocompleteInput:sn},ln={common:{the:"le",from:"de"},timeAgo:{"just-now":"à l'instant",ago:"il y a {0}",in:"dans {0}","last-month":"le mois dernier","next-month":"le mois prochain",month:"mois | mois","last-year":"l'année dernière","next-year":"l'année prochaine",year:"an | ans",yesterday:"hier",tomorrow:"demain",day:"jour | jours","last-week":"la semaine dernière","next-week":"la semaine prochaine",week:"semaine | semaines",hour:"heure | heures",minute:"minute | minutes",second:"seconde | secondes"}},dn={fr:ln};let z=null;const ne=()=>z,mn=(e={})=>{let t=e.locale||"fr";const r=u=>t=u,n=()=>t,i=B(dn,(e==null?void 0:e.messages)||{}),c=(u,o)=>{const s=S(i,`${t}.${u}`);return s?o?fn(s,o):s:u},d=(u,o)=>{const s=S(i,`${t}.${u}`);return s?pn(s,o):u};return z={t:c,tNode:d,setLocale:r,getLocale:n,install:u=>{u.config.globalProperties.$t=c,u.config.globalProperties.$tNode=d}},z},fn=(e,t)=>e?e.replace(/{{ ?([a-zA-Z_.]+) ?}}/g,(r,n)=>S(t,n)):null,pn=(e,t)=>{if(!e)return null;const r=e.split(/(\{[{%]+[^{}]*[%}]+})/g).filter(n=>n!=="").map(n=>{const i=n.startsWith("{%")&&n.endsWith("%}")?"slot":n.startsWith("{{")&&n.endsWith("}}")?"variable":"text";if(i==="text")return()=>Q.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((o,s)=>(s[3]===void 0?N(o,s[1],S(t,s[1])):N(o,s[1],S(t,s[3])),o),d),[...n.matchAll(/([a-zA-Z_.]+)="([^"]+)"/g)].reduce((o,s)=>{let l=s[2];return new RegExp(/^[0-9]*$/).exec(s[2])?l=parseInt(s[2]):new RegExp(/^(true|false)$/).exec(s[2])&&(l=s[2]==="true"),o[s[1]]=l,o},d)),p=>Q[i](c,t,p,d)});return{setup:(n,{slots:i})=>()=>r.map(c=>c(i))}},Q={slot:(e,t,r,n)=>T.h("span",{class:"node node--slot"},r[e.trim()](n)),variable:(e,t)=>T.h("span",{class:"node node--variable"},S(t,e.trim())),text:e=>T.h("span",{class:"node node--text"},e)};function hn(e){const{t}=ne(),r={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,i)=>n===1?t(i?"timeAgo.last-month":"timeAgo.next-month"):`${n} ${t("timeAgo.month",n)}`,year:(n,i)=>n===1?t(i?"timeAgo.last-year":"timeAgo.next-year"):`${n} ${t("timeAgo.year",n)}`,day:(n,i)=>n===1?t(i?"timeAgo.yesterday":"timeAgo.tomorrow"):`${n} ${t("timeAgo.day",n)}`,week:(n,i)=>n===1?t(i?"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 ae.useTimeAgo(e,{fullDateFormatter:n=>n.toLocaleDateString(),messages:r})}function yn(){let e=null;function t(){return e}function r(){return e.controller}function n(){return"use"+e.controller.charAt(0).toUpperCase()+e.controller.slice(1)+"QSController"}function i(){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,o)=>{const s=o.split("=");return s[0]==="controller"||s[0]==="action"?u[s[0]]=decodeURIComponent(s[1]):u.arguments[s[0]]=decodeURIComponent(s[1]),u},{controller:null,action:null,arguments:{}}))}return p(),{getParams:t,getController:r,getControllerComposableName:n,getAction:i,getArguments:c,hasAction:d}}function gn(){async function e({domain:n,event:i,...c}){const d="useAnalytics"+n.charAt(0).toUpperCase()+n.slice(1);if(!t(d))throw new Error(`Domain ${n} is not defined`);const p=V[d]();if(!r(p,i))throw new Error(`Event ${i} is not defined in domain ${n}`);return p[i](c)}function t(n){return!!V[n]}function r(n,i){return!!n[i]}return{call:e}}const U=Object.freeze(Object.defineProperty({__proto__:null,useAnalyticsQSController:gn},Symbol.toStringTag,{value:"Module"}));function bn(e){if(!e.hasAction())throw new Error("No action found in router");function t(){if(!r())throw new Error(`Controller ${e.getController()} not found`);const i=U[e.getControllerComposableName()]();if(!n(i))throw new Error(`Action ${e.getAction()} not found in controller ${e.getController()}`);return i[e.getAction()](e.getArguments())}function r(){return e.getControllerComposableName()in U}function n(i){return e.getAction()in i}return{dispatch:t}}function wn(){let e=!1;function t(i,c,d){n(),d()}function r(i,c,d){if(!e)return e=!0,t(i,c,d);d()}function n(){const i=yn();if(!i.hasAction())return;bn(i).dispatch()}return{vueRouterBeforeEach:t,vueRouterBeforeFirst:r,handle:n}}const I=()=>k.getMainAppHost(),Rn=()=>`${I()}/rh/establishments`,An=e=>`${I()}/rh/establishment/${e}`,Pn=e=>e&&typeof e=="object"&&e.urls&&e.urls.display?e.urls.display:"",In=e=>`${I()}/rh/establishment/${e}/cvtheque/`,vn=(e,t)=>`${I()}/rh/establishment/${e}/recruitment/${t}`,En=(e,t)=>`${I()}/rh/establishment/${e}/recruitment/${t}/kanban`,Sn=e=>`${I()}/rh/establishment/${e}/career-configuration`,Cn=(e,t=null)=>t?`${I()}/career-website/${e}/${t}`:`${I()}/career-website/${e}`,kn=(e,t)=>`${I()}/career-website-preview/${e}/${t}`,$n=(e,t=null)=>{const r=I().replace("://",`://${e}.`);return t?`${r}?_version=${t}`:`${r}`};function Ln(){return{root:I,establishments:Rn,establishment:An,img:Pn,cvtheque:In,recruitment:vn,recruitmentKanban:En,career:Sn,careerConfig:Cn,careerPreview:kn,careerWebsite:$n}}const Mn="0.2.5";exports.BaseLogger=x;exports.Gmap=un;exports.SDKConfig=k;exports.SDKLogger=M;exports.VERSION=Mn;exports._clone=X;exports._get=S;exports._merge=B;exports._set=N;exports.createI18n=mn;exports.useActivityRepository=De;exports.useAnalyticsHublerApplication=Y;exports.useAnalyticsIdentify=rn;exports.useAnalyticsProfile=ee;exports.useAuthentication=L;exports.useAuthorization=Z;exports.useAuthorizationStore=nn;exports.useCanAccessEstablishmentMiddleware=tn;exports.useCandidateRepository=Ne;exports.useCommentRepository=He;exports.useContractTypeRepository=Qe;exports.useCvbankRepository=Ge;exports.useCvthequeRepository=Je;exports.useDiplomaRepository=Ze;exports.useDocumentRepository=rt;exports.useDomainUrls=Ln;exports.useEmailHistoryRepository=ot;exports.useEmailRepository=ct;exports.useEmailTemplateRepository=dt;exports.useEstablishmentCareerRepository=gt;exports.useEstablishmentRepository=F;exports.useFeatureFlagRepository=Pt;exports.useI18n=ne;exports.useJobRepository=vt;exports.useLabelRepository=Lt;exports.useLocaleTimeAgo=hn;exports.useOfferRepository=Ot;exports.usePrivateRequest=y;exports.useQSAction=wn;exports.useRecruiterRepository=_t;exports.useRecruitmentRepository=qt;exports.useRegisterRepository=Ut;exports.useRequest=w;exports.useSpecialityRepository=Kt;exports.useTagRepository=Wt;exports.useUserRepository=q;
|
|
1
|
+
"use strict";var ie=Object.defineProperty;var oe=(e,t,r)=>t in e?ie(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var v=(e,t,r)=>(oe(e,typeof t!="symbol"?t+"":t,r),r);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const T=require("vue"),se=require("axios"),ae=require("pinia"),ce=require("@vueuse/core");var U={expireTimes:"1d",path:"; path=/",domain:"",secure:!1,sameSite:"; SameSite=Lax"},ue=function(){function e(){this.current_default_config=U}return e.prototype.config=function(t){for(var r in this.current_default_config)this.current_default_config[r]=t[r]?t[r]:U[r]},e.prototype.get=function(t){var r=decodeURIComponent(document.cookie.replace(new RegExp("(?:(?:^|.*;)\\s*"+encodeURIComponent(t).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=\\s*([^;]*).*$)|^.*$"),"$1"))||null;if(r&&r.substring(0,1)==="{"&&r.substring(r.length-1,r.length)==="}")try{r=JSON.parse(r)}catch{return r}return r},e.prototype.set=function(t,r,n,i,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.");r&&r.constructor===Object&&(r=JSON.stringify(r));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 o=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="+ +o*2592e3;break;case"d":u="; max-age="+ +o*86400;break;case"h":u="; max-age="+ +o*3600;break;case"min":u="; max-age="+ +o*60;break;case"s":u="; max-age="+o;break;case"y":u="; max-age="+ +o*31104e3;break}}else u="; expires="+n;break;case Date:u="; expires="+n.toUTCString();break}return document.cookie=encodeURIComponent(t)+"="+encodeURIComponent(r)+u+(c?"; domain="+c:this.current_default_config.domain?this.current_default_config.domain:"")+(i?"; path="+i: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,r,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:"")+(r?"; path="+r: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*/),r=0;r<t.length;r++)t[r]=decodeURIComponent(t[r]);return t},e}(),j=null;function le(){j==null&&(j=new ue);var e=T.reactive(j);return{cookies:e}}function de(){const{cookies:e}=le();function t(c){return e.get(c)}function r(c,d){return e.set(c,d)}function n(c){return e.remove(c)}function i(){e.keys().forEach(c=>n(c))}return{getItem:t,setItem:r,removeItem:n,clear:i}}let O=null;function M(e={auth:"token",refresh:"refresh_token",expiration:"token_expiration_date"},t=de()){if(O)return O;function r(){return t.getItem(e.auth)}function n(){return t.getItem(e.refresh)}function i(){return t.getItem(e.expiration)}function c(m,f){const h=s(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()&&!o()}function u(){return!!r()}function o(){const m=i();return m?new Date(m)<new Date:!0}function s(m){return JSON.parse(atob(m.split(".")[1]))}function l(){return t}return O={keys:e,getAuthToken:r,getRefreshToken:n,getExpiration:i,authenticate:c,clear:d,isAuthenticated:p,hasAuth:u,isExpired:o,getStorage:l},O}function me(e){let t={"Content-Type":"application/json"};e&&r(e);function r(h,b=!1){return t=b?h:{...t,...h},this}function n(){return t}function i(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 i("Authorization","Bearer "+h),this}function u(){return d("Authorization"),this}function o(){return!!c("Authorization")}function s(){return i("Content-Type","multipart/form-data"),this}function l(){return i("Content-Type","application/json"),this}function m(){return c("Content-Type")==="multipart/form-data"}function f(){return c("Content-Type")==="application/json"}return{setHeaders:r,getHeaders:n,setHeader:i,getHeader:c,removeHeader:d,setAuthorization:p,removeAuthorization:u,hasAuthorization:o,setFormData:s,setJson:l,isFormData:m,isJson:f}}function fe(e){let t=null;e&&r(e);function r(i){if(i=i.toLowerCase(),!["get","post","put","patch","delete"].includes(i))throw new Error("Invalid method.");return t=i,this}function n(){return t}return{setMethod:r,getMethod:n}}function pe(e,t,r){let n=null;r&&i(r);function i(o){if(!["post","put","patch"].includes(e.getMethod()))throw new Error("Payload can only be set for POST, PUT and PATCH requests.");return o instanceof FormData?t.setFormData():d(o)&&(o=p(o),t.setFormData()),t.isFormData()&&e.getMethod()==="put"&&(e.setMethod("post"),o.append("_method","PUT")),n=o,this}function c(){return n}function d(o){for(const s in o){const l=o[s];if(u(l))return!0;if(typeof l=="object"&&d(l))return!0}return!1}function p(o,s=null,l=0){const m=!s;m&&(s=new FormData);for(const f in o){const h=o[f];u(h)?(o[f]="<<FileIndex:"+l+">>",s.append(l,h,h.name),l++):typeof h=="object"&&(o[f]=p(o[f],s,l))}return m?(s.append("payload",JSON.stringify(o)),s):o}function u(o){return typeof File<"u"&&o instanceof File||typeof Blob<"u"&&o instanceof Blob}return{setPayload:i,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&&D(this.logger.debug,this.prefix,t)}info(...t){this.level<=P.LEVEL_INFO&&D(this.logger.info,this.prefix,t)}warn(...t){this.level<=P.LEVEL_WARN&&D(this.logger.warn,this.prefix,t)}error(...t){this.level<=P.LEVEL_ERROR&&D(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 x=P;const D=(e,t,r)=>{t?e(t,...r):e(...r)},$=new x({prefix:"[SDK]"});let G=null,K=null,J=null,W="/",Z=null;const he=()=>G,ye=e=>{if($.info("[Config] Environment:",e),!e)throw new Error("Invalid environment.");G=e},ge=()=>K,be=e=>{if($.info("[Config] API Host:",e),!e)throw new Error("Invalid API host.");K=e},we=()=>Z,Re=e=>{Z=e},Ae=()=>J,Pe=e=>{if($.info("[Config] Main App Host:",e),!e)throw new Error("Invalid main app host.");J=e},Ie=e=>{$.info("[Config] Base Assets Urls:",e),W=e},ve=()=>W,k={getEnvironment:he,getApiHost:ge,getErrorHandler:we,setEnvironment:ye,setApiHost:be,setErrorHandler:Re,getMainAppHost:Ae,setMainAppHost:Pe,setBaseAssetsUrl:Ie,getBaseAssetsUrl:ve};function Ee(e){const t=k.getApiHost().replace(/\/$/g,"");let r=null,n={},i={};e&&p(e);function c(){return t+u()+f()}function d(){return u(!0,!0)}function p(a){return r="/"+a.replace(/^\//g,""),this}function u(a=!0,R=!1){return a?r.replace(/:(\w+)/g,(A,E)=>R?"*":i[E]||":"+E):r}function o(a){return n=a,this}function s(a,R){return n[a]=R,this}function l(a){return n[a]&&delete n[a],this}function m(){return Object.keys(n).length>0}function f(a=!0){if(!m())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 i=a,this}function b(a,R){return i[a]=R,this}function C(a){return i[a]&&delete i[a],this}return{setPath:p,getPath:u,getUri:c,getMockUri:d,setQueryParams:o,setQueryParam:s,removeQueryParam:l,hasQuery:m,getQueryString:f,setRouteParams:h,setRouteParam:b,removeRouteParam:C}}function Se(e){let t=[];function r(){return t=o(arguments),d(),this}function n(){return t.length>0}function i(s){return t.includes(s.trim())?this:(t.push(s.trim()),d(),this)}function c(s){const l=t.indexOf(s.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(s){return s.split(",").map(l=>l.trim())}function u(s){return s.join(",")}function o(s){let l=[];return s.length===1?typeof s[0]=="string"?l=p(s[0]):Array.isArray(s[0])&&(l=s[0]):l=Array.from(s),l}return{setGroups:r,hasGroups:n,addGroup:i,removeGroup:c}}function Ce(e){let t=!1,r=!1,n=1,i=10;function c(){return t=!0,d(),this}function d(){r=!0;const f=m(arguments);return o(f.page||1,!1),s(f.perPage||i,!1),l(),this}function p(){return r=!1,l(),this}function u(){return r}function o(f,h=!0){return t=!0,r=!0,n=f,h&&l(),this}function s(f,h=!0){return t=!0,r=!0,i=f,h&&l(),this}function l(){t?u()?(e.removeQueryParam("pagination"),e.setQueryParam("page",n),e.setQueryParam("nbResultPerPage",i)):(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:c,paginate:d,disablePagination:p,hasPagination:u,setPage:o,setPerPage:s}}function ke(e){let t=!1,r="id",n="ASC";function i(){t=!0;const s=o(arguments);return s.orderBy&&d(s.orderBy,!1),s.orderDir&&p(s.orderDir,!1),u(),this}function c(){return t}function d(s,l=!0){return t=!0,r=s,l&&u(),this}function p(s,l=!0){if(s=s.toUpperCase(),["ASC","DESC"].indexOf(s)===-1)throw new Error("Invalid order direction");return t=!0,n=s,l&&u(),this}function u(){c()&&(e.setQueryParam("orderBy",r),e.setQueryParam("orderDirection",n))}function o(s){if(s.length===1&&typeof s[0]=="object")return s[0];const l={};return s.length>=1&&(l.orderBy=s[0]),s.length>=2&&(l.orderDir=s[1]),l}return{setOrder:i,hasOrder:c,setOrderBy:d,setOrderDir:p}}function $e(){let e=!1;function t(){return e=!0,this}function r(){return e}return{setSilent:t,isSilent:r}}function Le(){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 r(){return e}return{setResponseType:t,getResponseType:r}}function Me(e){function t(){return e}function r(){return e.data}function n(){return e.data}return{getResponse:t,getData:r,getPayload:n}}function Oe(e,t=!1){let r=!1,n=!1;return e.response?(r=!0,n=!0):e.request&&(r=!0),!t&&k.getErrorHandler()&&k.getErrorHandler()(e),{sent:r,responded:n,error:e}}function De(e){function t(){return e}function r(){return e.data}function n(){return e.data}function i(){return e.data["@type"]==="hydra:Collection"}function c(){return i()?e.data["hydra:member"]:null}function d(){return i()?e.data["hydra:totalItems"]:null}function p(){return i()?e.data["hydra:view"]&&e.data["hydra:view"]["hydra:last"]:!1}function u(){return!i()||!p()?null:parseInt(e.data["hydra:view"]["@id"].match(/page=(\d+)/)[1])}function o(){return!i()||!p()?null:parseInt(e.data["hydra:view"]["hydra:last"].match(/page=(\d+)/)[1])}return{getResponse:t,getData:r,getPayload:n,isCollection:i,getCollection:c,getTotal:d,hasPagination:p,getPage:u,getPages:o}}function _e(e,t,r,n,i,c){async function d(){const u=r.getMethod(),o=t.getUri(),s=e.getHeaders(),l=n.getPayload(),m=[o];["post","put","patch"].includes(u)&&m.push(l||{}),m.push({headers:s,responseType:c.getResponseType()}),$.info("[Request] Sending request:",`[${u.toUpperCase()}]`,o);try{const f=await se[u](...m);return p(f)}catch(f){throw Oe(f,i.isSilent())}}function p(u){if(u.headers){const o=Object.keys(u.headers),s=o.map(l=>l.toLowerCase()).indexOf("content-type");if(s!==-1&&u.headers[o[s]].includes("application/ld+json"))return De(u)}return Me(u)}return{send:d}}function w(e,t="get",r=null){const n=me(),i=Ee(e),c=fe(t),d=pe(c,n,r),p=Se(i),u=Ce(i),o=ke(i),s=$e(),l=Le(),m=_e(n,i,c,d,s,l);return{...n,...i,...c,...d,...p,...u,...o,...s,...l,...m}}function y(e,t="get",r=null){const n=w(e,t,r),i=M();i.isAuthenticated()&&n.setAuthorization(i.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 Te=(e,t)=>y("/v2/activity/candidate/:candidateId/establishment/:establishmentId").setRouteParams({candidateId:e,establishmentId:t}),xe=()=>({listByCandidateAndEstablishment:Te}),je=(e,t,r)=>y("/candidate/:candidateId/share/establishment/:establishmentId").setMethod("post").setRouteParams({candidateId:e,establishmentId:t}).setPayload(r),Ne=(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}),qe=()=>({share:je,isArchived:Ne,archive:ze,unarchive:Fe}),Be=(e,t)=>y("/comment/establishment/:establishmentId/candidate/:userId").setRouteParams({establishmentId:e,userId:t}),Ue=(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"),Qe=()=>({getForEstablishmentCandidate:Be,postForEstablishmentCandidate:Ue,update:He,remove:Ve}),Ge=()=>w("contractType").isList().addGroup("Term:id").addGroup("Term:name"),Ke=()=>({list:Ge}),Je=e=>y("/v2/talents").isList().setQueryParam("establishment-id",e),We=()=>({list:Je}),Ze=(e,t,r)=>y("/cvtheque/establishment/:establishmentId/candidate/:candidateId/label/synchronize").setRouteParams({establishmentId:e,candidateId:t}).setMethod("post").setPayload(r),Xe=()=>({syncCandidateLabels:Ze}),Ye=()=>w("diploma").isList().addGroup("Term:id").addGroup("Term:name"),et=()=>({list:Ye}),tt=e=>y("document/candidate/:candidateId").setRouteParams({candidateId:e}).isList().disablePagination(),nt=(e,t)=>y("document/candidate/:candidateId/establishment/:establishmentId/recruiter").setRouteParams({candidateId:e,establishmentId:t}).isList().disablePagination(),rt=(e,t)=>y("document/candidate/:candidateId/establishment/:establishmentId/candidate").setRouteParams({candidateId:e,establishmentId:t}).isList().disablePagination(),it=e=>y("document/recruiter").setMethod("post").setPayload(e),ot=e=>y("document/:documentId").setRouteParams({documentId:e}).setMethod("delete"),st=()=>({listByCandidate:tt,listByCandidateAndEstablishmentFromRecruiter:nt,listByCandidateAndEstablishmentFromCandidate:rt,addFromRecruiter:it,remove:ot}),at=(e,t)=>y("/v2/establishments/:establishmentId/email-history").setRouteParams({establishmentId:t}).setQueryParam("receiverId",e).isList().disablePagination(),ct=()=>({listByCandidateAndEstablishment:at}),ut=(e,t)=>y("/email/candidate/:candidateId").setMethod("post").setRouteParams({candidateId:e}).setPayload(t),lt=(e,t)=>y("/v2/emails/send").setMethod("post").setFormData().setPayload({recipientIds:e,...t}),dt=()=>({sendToCandidate:ut,sendToRecipients:lt}),mt=(e,t=!0)=>{const r=y("/v2/establishments/:establishmentId/email-templates").setRouteParams({establishmentId:e}).isList().disablePagination();return t&&r.setQueryParam("global",!0),r},ft=()=>y("/v2/self/email-templates").isList().disablePagination(),pt=()=>({listByEstablishment:mt,listSelf:ft}),ht=(e,t)=>y("establishment-career/:establishmentId/:versionId").setRouteParams({establishmentId:e,versionId:t}),yt=(e,t="published")=>y("establishment-career/:establishmentId/state/:state").setRouteParams({establishmentId:e,state:t}),gt=(e,t,r=null)=>{const n=r!==null?y("establishment-career/:establishmentId/:versionId").setRouteParams({establishmentId:e,versionId:r}):y("establishment-career/:establishmentId").setRouteParams({establishmentId:e});return n.setMethod("post").setPayload(t),n},bt=(e,t)=>y("establishment-career/:establishmentId/logo-banner").setMethod("post").setRouteParams({establishmentId:e}).setPayload(t),wt=(e,t,r)=>y("establishment-career/:establishmentId/publish/:versionId").setMethod("post").setRouteParams({establishmentId:e,versionId:t}).setPayload(r),Rt=()=>({readById:ht,readByState:yt,upsert:gt,uploadLogoAndBanner:bt,publish:wt}),At=e=>w("establishment/:establishmentId").setRouteParams({establishmentId:e}),Pt=e=>y("establishment/:establishmentId/authorizations").setRouteParams({establishmentId:e}),F=()=>({read:At,authorizations:Pt}),It=e=>w("feature-flag/maintenance").setMethod("post").setPayload(e),vt=(e,t)=>w("feature-flag/establishment").setMethod("post").setPayload({establishment:e,flagName:t}),Et=()=>({maintenanceModeEnabled:It,forEstablishment:vt}),St=()=>w("job").isList().addGroup("Term:id").addGroup("Term:name"),Ct=()=>({list:St}),kt=e=>y("/label/establishment/:establishmentId").isList().setRouteParams({establishmentId:e}),$t=(e,t)=>y("/label/establishment/:establishmentId").setMethod("post").setRouteParams({establishmentId:e}).setPayload(t),Lt=(e,t)=>y("/label/:labelId").setMethod("put").setRouteParams({labelId:e}).setPayload(t),Mt=e=>y("/label/:labelId").setMethod("delete").setRouteParams({labelId:e}),Ot=(e,t,r)=>y("/label/establishment/:establishmentId/candidate/:candidateId/synchronize").setMethod("post").setPayload(r).setRouteParams({establishmentId:e,candidateId:t}),Dt=()=>({listByEstablishment:kt,addToEstablishment:$t,update:Lt,remove:Mt,syncForCandidate:Ot}),_t=e=>w("offer/:offerId").setRouteParams({offerId:e}),Tt=()=>({read:_t}),xt=(e,t=!1)=>{const r=y("/recruiter/establishment/:establishmentId").isList().setRouteParams({establishmentId:e});return t&&r.setQueryParam("exclude-me",1),r},jt=()=>({listByEstablishment:xt}),Nt=e=>y("/recruitment/establishment/:establishmentId/mine").isList().setRouteParams({establishmentId:e}),zt=(e,t)=>y("/recruitment/mine/establishment/:establishmentId/has-not/candidate/:candidateId").isList().setRouteParams({establishmentId:e,candidateId:t}),Ft=(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}),Bt=(e,t)=>y("/recruitment/:recruitmentId/candidate").setMethod("put").setRouteParams({recruitmentId:e}).setPayload(t),Ut=(e,t)=>y("/recruitment/:recruitmentId/candidate/:candidateId").setMethod("delete").setRouteParams({recruitmentId:e,candidateId:t}),Ht=()=>({mineByEstablishment:Nt,mineWithoutCandidate:zt,mineWithCandidate:Ft,withCandidate:qt,addCandidates:Bt,removeCandidate:Ut}),Vt=(e,t,r,n=null)=>{const i=w("candidate/register/open").setMethod("post"),c={email:e};return t==="establishment"&&(c.establishmentId=r),t==="offer"&&(c.offerId=r),n&&(c.referer=n),i.setPayload(c),i},Qt=(e,t)=>w("candidate/register/update/:token").setMethod("post").setRouteParams({token:e}).setPayload(t),Gt=e=>w("candidate/register/read/:token").setRouteParams({token:e}),Kt=e=>w("candidate/register/close/:token").setMethod("post").setRouteParams({token:e}),Jt=()=>({open:Vt,update:Qt,read:Gt,close:Kt}),Wt=()=>w("speciality").isList().addGroup("Term:id").addGroup("Term:name"),Zt=()=>({list:Wt}),Xt=e=>y("/tag/public/establishment/:establishmentId").isList().setRouteParams({establishmentId:e}),Yt=()=>({listByEstablishment:Xt}),en=e=>w("user/email/isset/:email").setRouteParams({email:e}),tn=()=>y("user/self").addGroup("user:self"),nn=e=>y("/user/:uuid").setRouteParams({uuid:e}),rn=e=>w("/user/:uuid").setRouteParams({uuid:e}),q=()=>({emailExists:en,self:tn,byUuidPrivate:nn,byUuid:rn});let _;function X(){if(_)return _;const e={user:void 0,roles:[],establishments:{}},t=async()=>{if(!M().isAuthenticated())throw new Error("::SDK Authorization:: User not authenticated");const o=(await q().self().send()).getData();e.user={id:o.id,email:o.email,firstName:o.firstName,lastName:o.lastName,avatar:o.avatar},e.roles=o.roles},r=async o=>{if(!M().isAuthenticated())throw new Error("::SDK Authorization:: User not authenticated");e.establishments[o]=(await F().authorizations(o).send()).getData()},n=o=>{if(e.user===void 0)throw new Error("::SDK Authorization:: User not fetched");return e.roles.includes(o)};return _={fetchSelf:t,fetchPermission:r,hasRole:n,hasRoleRH:()=>n("ROLE_RH"),hasRoleCandidate:()=>n("ROLE_CANDIDATE"),hasRoleAdmin:()=>n("ROLE_ADMIN"),hasPermission:(o,...s)=>{const l=e.establishments[o];if(l===void 0)throw new Error(`::SDK Authorization:: Permissions not fetched for establishment ${o}`);return s.every(m=>l[m]===!0)},clear:()=>{e.user=void 0,e.roles=[],e.establishments={}}},_}async function on(e,...t){if(!M().isAuthenticated())throw"ERR_NOT_AUTHENTICATED";const n=X();await Promise.all([n.fetchSelf(),n.fetchPermission(e)]);for(let i=0;i<t.length;i++){const c=t[i];if(!n.hasPermission(e,c))throw"ERR_MISSING_PERMISSION"}}const sn=ae.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 r=await F().authorizations(e).send();this.establishments[e]=r.getData()}},hasPermission(e,...t){const r=this.establishments[e];return r===void 0?!1:t.every(n=>r[n]===!0)}}}),S=(e,t,r)=>{const n=typeof t=="string"?t.split("."):[t];let i=e;for(const[c,d]of n.entries()){if(c===n.length-1)return i[d]!==void 0?i[d]:r;if(!(d in i)||typeof i[d]!="object")return r;i=i[d]}return r},N=(e,t,r)=>{const n=typeof t=="string"?t.split("."):[t],i=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]=r;else{const o=i(n[u+1])?[]:{};p=i(p)?c(p):p,d[p]=d[p]??o,d=d[p]}}),e},Y=e=>{if(typeof e=="object"){if(Array.isArray(e))return[...e];if(Object(e)===e)return{...e}}return e},B=(e,t)=>{const r={...e};for(const[n,i]of Object.entries(t))n in r&&typeof r[n]=="object"&&typeof i=="object"?r[n]=B(r[n],i):r[n]=Y(i);return r};let L=null;function g(){if(L)return L;const e=k.getEnvironment(),t=(()=>e==="prod"||e==="production"?"pPROC7dPoJ7XdxHrwsTQNXCGX79MJjhp":e==="staging"?"823rqOTwVk1ZCWVyBAdLInZ77TcFF0CF":"TMZX6evFnu87JrBHV5qLwHsld5C6hilZ")(),r=!!t,n=e!=="prod"&&e!=="production";let i=null;function c(){return r}function d(){const m=window.analytics=window.analytics||[];if(!m.initialize)if(m.invoked)window.console&&console.error&&console.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 C=document.getElementsByTagName("script")[0];C.parentNode.insertBefore(b,C),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 i!==null||(i=new Promise((m,f)=>{if(!c())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()})),i}async function u(m,f){try{if(await this.analyticsScriptReady(),l("[identify]",[m,f]),c())return window.analytics.identify(m,f)}catch{l("[identify]",[m,f],"error")}}async function o(m,f,h){typeof h!="object"&&(h={});try{if(await this.analyticsScriptReady(),l("[page]",[m,f,h]),c())return window.analytics.page(m,{category:f,...h})}catch{l("[page]",[m,f,h],"error")}}async function s(m,f,h){typeof h!="object"&&(h={});try{if(await this.analyticsScriptReady(),l("[track]",[m,f,h]),c())return window.analytics.track(m,{category:f,...h})}catch{l("[track]",[m,f,h],"error")}}function l(m,f=[],h="log"){f||(f=[]),n&&console[h](`%cⒶ%c ::SDK Analytics:: ${m}`,"color: green;","color: inherit;",...f)}return L={analyticsScriptReady:p,isEnabled:c,identify:u,page:o,track:s,consoleMessage:l},L}g.destroy=()=>L=null;function ee(){const e="Hubler Application";function t(o){var l;if(!o)throw new Error(`Missing arguments for domain "${e}"`);const s=!!o.offerId;if(s&&!o.recruitmentId)throw new Error(`Missing argument "recruitmentId" for domain "${e}"`);return{companyId:(l=o.establishmentId)==null?void 0:l.toString(),jobOfferId:s?o.offerId.toString():null,recruitmentId:s?o.recruitmentId.toString():null,selections:[s?"Application":"Spontaneous Application"]}}async function r(o){return g().page("Application Authentication Viewed",e,t(o))}async function n(o){return g().page("Application Magic Link Viewed",e,t(o))}async function i(o){return g().page("Application Job Viewed",e,t(o))}async function c(o){return g().page("Application Information Viewed",e,t(o))}async function d(o){return g().page("Application Document Viewed",e,t(o))}async function p(o){return g().page("Application Success Viewed",e,t(o))}async function u(o){if(!o.error)throw new Error(`Missing argument "error" for domain "${e}", event "Application Form Failed"`);return g().track("Application Form Failed",e,{...t(o),error:o.error})}return{applicationAuthenticationViewed:r,applicationMagicLinkViewed:n,applicationJobViewed:i,applicationInformationViewed:c,applicationDocumentViewed:d,applicationSuccessViewed:p,applicationFormFailed:u}}function te(){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 r(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 i(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 o(a){return g().track(a.name,e,t(a.properties,!0))}async function s(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 m(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 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 C(a){return g().track(a.name,e,t(a.properties,!1))}return{profileDocumentDeleted:r,profileLabelAdded:n,profileLabelRemoved:i,profileShared:c,profileArchived:d,profileCandidateAdded:p,profileCommentAdded:u,profileDocumentAdded:o,profileDocumentDownloaded:s,profileDocumentRequested:l,profileRecruitmentAdded:m,profileRecruitmentRemoved:f,profileTabSelected:h,profileViewed:b,profileEmailSent:C}}const H=Object.freeze(Object.defineProperty({__proto__:null,useAnalyticsHublerApplication:ee,useAnalyticsProfile:te},Symbol.toStringTag,{value:"Module"}));function an(){function e(r){return g().identify(r.id,{email:r.email,firstName:r.firstname,lastName:r.lastname,createdAt:r.createdAt,type:"Hubler",lang:"fr",medium:t()?"MOBILE_DEVICE":"WEB_BROWSER"})}function t(){let r=!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)))&&(r=!0)}(navigator.userAgent||navigator.vendor||window.opera),r}return{identifyCandidate:e}}const cn="AIzaSyDicyRD6rvVdnicp1tgV0ElazASNGbyyTs",ne=()=>new Promise(e=>{window.google&&window.google.maps?e():(window.addEventListener("gmap-ready",()=>e()),dn())}),un=(e,t)=>ne().then(()=>ln(e,t)),ln=(e,t)=>{const r=new window.google.maps.places.Autocomplete(e,{componentRestrictions:{country:["fr","re","yt","gp","mq"]}});window.google.maps.event.addListener(r,"place_changed",()=>{const n=r.getPlace();n.formatted_address&&t(n)})},dn=()=>{window.onGmapScriptReady=function(){};const e=document.createElement("script");e.src="https://maps.googleapis.com/maps/api/js?key="+cn+"&libraries=places&callback=onGmapScriptReady",e.async=!0,e.defer=!0,e.onload=()=>window.dispatchEvent(new Event("gmap-ready")),document.body.appendChild(e)},mn={scriptReady:ne,autocompleteInput:un},fn={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"}},pn={fr:fn};let z=null;const re=()=>z,hn=(e={})=>{let t=e.locale||"fr";const r=u=>t=u,n=()=>t,i=B(pn,(e==null?void 0:e.messages)||{}),c=(u,o)=>{const s=S(i,`${t}.${u}`);return s?o?yn(s,o):s:u},d=(u,o)=>{const s=S(i,`${t}.${u}`);return s?gn(s,o):u};return z={t:c,tNode:d,setLocale:r,getLocale:n,install:u=>{u.config.globalProperties.$t=c,u.config.globalProperties.$tNode=d}},z},yn=(e,t)=>e?e.replace(/{{ ?([a-zA-Z_.]+) ?}}/g,(r,n)=>S(t,n)):null,gn=(e,t)=>{if(!e)return null;const r=e.split(/(\{[{%]+[^{}]*[%}]+})/g).filter(n=>n!=="").map(n=>{const i=n.startsWith("{%")&&n.endsWith("%}")?"slot":n.startsWith("{{")&&n.endsWith("}}")?"variable":"text";if(i==="text")return()=>V.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((o,s)=>(s[3]===void 0?N(o,s[1],S(t,s[1])):N(o,s[1],S(t,s[3])),o),d),[...n.matchAll(/([a-zA-Z_.]+)="([^"]+)"/g)].reduce((o,s)=>{let l=s[2];return new RegExp(/^[0-9]*$/).exec(s[2])?l=parseInt(s[2]):new RegExp(/^(true|false)$/).exec(s[2])&&(l=s[2]==="true"),o[s[1]]=l,o},d)),p=>V[i](c,t,p,d)});return{setup:(n,{slots:i})=>()=>r.map(c=>c(i))}},V={slot:(e,t,r,n)=>T.h("span",{class:"node node--slot"},r[e.trim()](n)),variable:(e,t)=>T.h("span",{class:"node node--variable"},S(t,e.trim())),text:e=>T.h("span",{class:"node node--text"},e)};function bn(e){const{t}=re(),r={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,i)=>n===1?t(i?"timeAgo.last-month":"timeAgo.next-month"):`${n} ${t("timeAgo.month",n)}`,year:(n,i)=>n===1?t(i?"timeAgo.last-year":"timeAgo.next-year"):`${n} ${t("timeAgo.year",n)}`,day:(n,i)=>n===1?t(i?"timeAgo.yesterday":"timeAgo.tomorrow"):`${n} ${t("timeAgo.day",n)}`,week:(n,i)=>n===1?t(i?"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 ce.useTimeAgo(e,{fullDateFormatter:n=>n.toLocaleDateString(),messages:r})}function wn(){let e=null;function t(){return e}function r(){return e.controller}function n(){return"use"+e.controller.charAt(0).toUpperCase()+e.controller.slice(1)+"QSController"}function i(){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,o)=>{const s=o.split("=");return s[0]==="controller"||s[0]==="action"?u[s[0]]=decodeURIComponent(s[1]):u.arguments[s[0]]=decodeURIComponent(s[1]),u},{controller:null,action:null,arguments:{}}))}return p(),{getParams:t,getController:r,getControllerComposableName:n,getAction:i,getArguments:c,hasAction:d}}function Rn(){async function e({domain:n,event:i,...c}){const d="useAnalytics"+n.charAt(0).toUpperCase()+n.slice(1);if(!t(d))throw new Error(`Domain ${n} is not defined`);const p=H[d]();if(!r(p,i))throw new Error(`Event ${i} is not defined in domain ${n}`);return p[i](c)}function t(n){return!!H[n]}function r(n,i){return!!n[i]}return{call:e}}const Q=Object.freeze(Object.defineProperty({__proto__:null,useAnalyticsQSController:Rn},Symbol.toStringTag,{value:"Module"}));function An(e){if(!e.hasAction())throw new Error("No action found in router");function t(){if(!r())throw new Error(`Controller ${e.getController()} not found`);const i=Q[e.getControllerComposableName()]();if(!n(i))throw new Error(`Action ${e.getAction()} not found in controller ${e.getController()}`);return i[e.getAction()](e.getArguments())}function r(){return e.getControllerComposableName()in Q}function n(i){return e.getAction()in i}return{dispatch:t}}function Pn(){let e=!1;function t(i,c,d){n(),d()}function r(i,c,d){if(!e)return e=!0,t(i,c,d);d()}function n(){const i=wn();if(!i.hasAction())return;An(i).dispatch()}return{vueRouterBeforeEach:t,vueRouterBeforeFirst:r,handle:n}}const I=()=>k.getMainAppHost(),In=()=>`${I()}/rh/establishments`,vn=e=>`${I()}/rh/establishment/${e}`,En=e=>e&&typeof e=="object"&&e.urls&&e.urls.display?e.urls.display:"",Sn=e=>`${I()}/rh/establishment/${e}/cvtheque/`,Cn=(e,t)=>`${I()}/rh/establishment/${e}/recruitment/${t}`,kn=(e,t)=>`${I()}/rh/establishment/${e}/recruitment/${t}/kanban`,$n=e=>`${I()}/rh/establishment/${e}/career-configuration`,Ln=(e,t=null)=>t?`${I()}/career-website/${e}/${t}`:`${I()}/career-website/${e}`,Mn=(e,t)=>`${I()}/career-website-preview/${e}/${t}`,On=(e,t=null)=>{const r=I().replace("://",`://${e}.`);return t?`${r}?_version=${t}`:`${r}`};function Dn(){return{root:I,establishments:In,establishment:vn,img:En,cvtheque:Sn,recruitment:Cn,recruitmentKanban:kn,career:$n,careerConfig:Ln,careerPreview:Mn,careerWebsite:On}}const _n="0.2.6";exports.BaseLogger=x;exports.Gmap=mn;exports.SDKConfig=k;exports.SDKLogger=$;exports.VERSION=_n;exports._clone=Y;exports._get=S;exports._merge=B;exports._set=N;exports.createI18n=hn;exports.useActivityRepository=xe;exports.useAnalyticsHublerApplication=ee;exports.useAnalyticsIdentify=an;exports.useAnalyticsProfile=te;exports.useAuthentication=M;exports.useAuthorization=X;exports.useAuthorizationStore=sn;exports.useCanAccessEstablishmentMiddleware=on;exports.useCandidateRepository=qe;exports.useCommentRepository=Qe;exports.useContractTypeRepository=Ke;exports.useCvbankRepository=We;exports.useCvthequeRepository=Xe;exports.useDiplomaRepository=et;exports.useDocumentRepository=st;exports.useDomainUrls=Dn;exports.useEmailHistoryRepository=ct;exports.useEmailRepository=dt;exports.useEmailTemplateRepository=pt;exports.useEstablishmentCareerRepository=Rt;exports.useEstablishmentRepository=F;exports.useFeatureFlagRepository=Et;exports.useI18n=re;exports.useJobRepository=Ct;exports.useLabelRepository=Dt;exports.useLocaleTimeAgo=bn;exports.useOfferRepository=Tt;exports.usePrivateRequest=y;exports.useQSAction=Pn;exports.useRecruiterRepository=jt;exports.useRecruitmentRepository=Ht;exports.useRegisterRepository=Jt;exports.useRequest=w;exports.useSpecialityRepository=Zt;exports.useTagRepository=Yt;exports.useUserRepository=q;
|
package/dist/main.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var v = (e, t, r) => (
|
|
4
|
-
import { reactive as
|
|
5
|
-
import
|
|
6
|
-
import { defineStore as
|
|
7
|
-
import { useTimeAgo as
|
|
1
|
+
var Y = Object.defineProperty;
|
|
2
|
+
var ee = (e, t, r) => t in e ? Y(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
|
|
3
|
+
var v = (e, t, r) => (ee(e, typeof t != "symbol" ? t + "" : t, r), r);
|
|
4
|
+
import { reactive as te, h as x } from "vue";
|
|
5
|
+
import ne from "axios";
|
|
6
|
+
import { defineStore as re } from "pinia";
|
|
7
|
+
import { useTimeAgo as ie } from "@vueuse/core";
|
|
8
8
|
var z = {
|
|
9
9
|
expireTimes: "1d",
|
|
10
10
|
path: "; path=/",
|
|
11
11
|
domain: "",
|
|
12
12
|
secure: !1,
|
|
13
13
|
sameSite: "; SameSite=Lax"
|
|
14
|
-
},
|
|
14
|
+
}, oe = (
|
|
15
15
|
/** @class */
|
|
16
16
|
function() {
|
|
17
17
|
function e() {
|
|
@@ -86,13 +86,13 @@ var z = {
|
|
|
86
86
|
}, e;
|
|
87
87
|
}()
|
|
88
88
|
), T = null;
|
|
89
|
-
function
|
|
90
|
-
T == null && (T = new
|
|
91
|
-
var e =
|
|
89
|
+
function se() {
|
|
90
|
+
T == null && (T = new oe());
|
|
91
|
+
var e = te(T);
|
|
92
92
|
return { cookies: e };
|
|
93
93
|
}
|
|
94
|
-
function
|
|
95
|
-
const { cookies: e } =
|
|
94
|
+
function ae() {
|
|
95
|
+
const { cookies: e } = se();
|
|
96
96
|
function t(c) {
|
|
97
97
|
return e.get(c);
|
|
98
98
|
}
|
|
@@ -112,14 +112,14 @@ function se() {
|
|
|
112
112
|
clear: i
|
|
113
113
|
};
|
|
114
114
|
}
|
|
115
|
-
let
|
|
116
|
-
function
|
|
115
|
+
let M = null;
|
|
116
|
+
function _(e = {
|
|
117
117
|
auth: "token",
|
|
118
118
|
refresh: "refresh_token",
|
|
119
119
|
expiration: "token_expiration_date"
|
|
120
|
-
}, t =
|
|
121
|
-
if (
|
|
122
|
-
return
|
|
120
|
+
}, t = ae()) {
|
|
121
|
+
if (M)
|
|
122
|
+
return M;
|
|
123
123
|
function r() {
|
|
124
124
|
return t.getItem(e.auth);
|
|
125
125
|
}
|
|
@@ -154,7 +154,7 @@ function D(e = {
|
|
|
154
154
|
function l() {
|
|
155
155
|
return t;
|
|
156
156
|
}
|
|
157
|
-
return
|
|
157
|
+
return M = {
|
|
158
158
|
keys: e,
|
|
159
159
|
getAuthToken: r,
|
|
160
160
|
getRefreshToken: n,
|
|
@@ -165,9 +165,9 @@ function D(e = {
|
|
|
165
165
|
hasAuth: u,
|
|
166
166
|
isExpired: o,
|
|
167
167
|
getStorage: l
|
|
168
|
-
},
|
|
168
|
+
}, M;
|
|
169
169
|
}
|
|
170
|
-
function
|
|
170
|
+
function ce(e) {
|
|
171
171
|
let t = {
|
|
172
172
|
"Content-Type": "application/json"
|
|
173
173
|
};
|
|
@@ -223,7 +223,7 @@ function ae(e) {
|
|
|
223
223
|
isJson: f
|
|
224
224
|
};
|
|
225
225
|
}
|
|
226
|
-
function
|
|
226
|
+
function ue(e) {
|
|
227
227
|
let t = null;
|
|
228
228
|
e && r(e);
|
|
229
229
|
function r(i) {
|
|
@@ -239,7 +239,7 @@ function ce(e) {
|
|
|
239
239
|
getMethod: n
|
|
240
240
|
};
|
|
241
241
|
}
|
|
242
|
-
function
|
|
242
|
+
function le(e, t, r) {
|
|
243
243
|
let n = null;
|
|
244
244
|
r && i(r);
|
|
245
245
|
function i(o) {
|
|
@@ -299,55 +299,59 @@ const P = class P {
|
|
|
299
299
|
}
|
|
300
300
|
/** debug display messages only if level is DEBUG or less */
|
|
301
301
|
debug(...t) {
|
|
302
|
-
this.level <= P.LEVEL_DEBUG &&
|
|
302
|
+
this.level <= P.LEVEL_DEBUG && O(this.logger.debug, this.prefix, t);
|
|
303
303
|
}
|
|
304
304
|
/** info display messages only if level is INFO or less */
|
|
305
305
|
info(...t) {
|
|
306
|
-
this.level <= P.LEVEL_INFO &&
|
|
306
|
+
this.level <= P.LEVEL_INFO && O(this.logger.info, this.prefix, t);
|
|
307
307
|
}
|
|
308
308
|
/** warn display messages only if level is WARN or less */
|
|
309
309
|
warn(...t) {
|
|
310
|
-
this.level <= P.LEVEL_WARN &&
|
|
310
|
+
this.level <= P.LEVEL_WARN && O(this.logger.warn, this.prefix, t);
|
|
311
311
|
}
|
|
312
312
|
/** error display messages only if level is ERROR or less */
|
|
313
313
|
error(...t) {
|
|
314
|
-
this.level <= P.LEVEL_ERROR &&
|
|
314
|
+
this.level <= P.LEVEL_ERROR && O(this.logger.error, this.prefix, t);
|
|
315
315
|
}
|
|
316
316
|
};
|
|
317
317
|
/** Possible logging level by order of verbosity (more verbose first) */
|
|
318
318
|
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);
|
|
319
319
|
let j = P;
|
|
320
|
-
const
|
|
320
|
+
const O = (e, t, r) => {
|
|
321
321
|
t ? e(t, ...r) : e(...r);
|
|
322
|
-
},
|
|
322
|
+
}, L = new j({
|
|
323
323
|
prefix: "[SDK]"
|
|
324
324
|
});
|
|
325
|
-
let V = null, Q = null, G =
|
|
326
|
-
const
|
|
327
|
-
if (
|
|
325
|
+
let H = null, V = null, Q = null, G = "/", K = null;
|
|
326
|
+
const de = () => H, me = (e) => {
|
|
327
|
+
if (L.info("[Config] Environment:", e), !e)
|
|
328
328
|
throw new Error("Invalid environment.");
|
|
329
|
-
|
|
330
|
-
},
|
|
331
|
-
if (
|
|
329
|
+
H = e;
|
|
330
|
+
}, fe = () => V, pe = (e) => {
|
|
331
|
+
if (L.info("[Config] API Host:", e), !e)
|
|
332
332
|
throw new Error("Invalid API host.");
|
|
333
|
-
|
|
334
|
-
},
|
|
335
|
-
|
|
336
|
-
},
|
|
337
|
-
if (
|
|
333
|
+
V = e;
|
|
334
|
+
}, he = () => K, ye = (e) => {
|
|
335
|
+
K = e;
|
|
336
|
+
}, ge = () => Q, be = (e) => {
|
|
337
|
+
if (L.info("[Config] Main App Host:", e), !e)
|
|
338
338
|
throw new Error("Invalid main app host.");
|
|
339
|
-
|
|
340
|
-
},
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
339
|
+
Q = e;
|
|
340
|
+
}, we = (e) => {
|
|
341
|
+
L.info("[Config] Base Assets Urls:", e), G = e;
|
|
342
|
+
}, Re = () => G, $ = {
|
|
343
|
+
getEnvironment: de,
|
|
344
|
+
getApiHost: fe,
|
|
345
|
+
getErrorHandler: he,
|
|
346
|
+
setEnvironment: me,
|
|
347
|
+
setApiHost: pe,
|
|
348
|
+
setErrorHandler: ye,
|
|
349
|
+
getMainAppHost: ge,
|
|
350
|
+
setMainAppHost: be,
|
|
351
|
+
setBaseAssetsUrl: we,
|
|
352
|
+
getBaseAssetsUrl: Re
|
|
349
353
|
};
|
|
350
|
-
function
|
|
354
|
+
function Ae(e) {
|
|
351
355
|
const t = $.getApiHost().replace(/\/$/g, "");
|
|
352
356
|
let r = null, n = {}, i = {};
|
|
353
357
|
e && p(e);
|
|
@@ -411,7 +415,7 @@ function be(e) {
|
|
|
411
415
|
removeRouteParam: S
|
|
412
416
|
};
|
|
413
417
|
}
|
|
414
|
-
function
|
|
418
|
+
function Pe(e) {
|
|
415
419
|
let t = [];
|
|
416
420
|
function r() {
|
|
417
421
|
return t = o(arguments), d(), this;
|
|
@@ -446,7 +450,7 @@ function we(e) {
|
|
|
446
450
|
removeGroup: c
|
|
447
451
|
};
|
|
448
452
|
}
|
|
449
|
-
function
|
|
453
|
+
function Ie(e) {
|
|
450
454
|
let t = !1, r = !1, n = 1, i = 10;
|
|
451
455
|
function c() {
|
|
452
456
|
return t = !0, d(), this;
|
|
@@ -486,7 +490,7 @@ function Re(e) {
|
|
|
486
490
|
setPerPage: s
|
|
487
491
|
};
|
|
488
492
|
}
|
|
489
|
-
function
|
|
493
|
+
function ve(e) {
|
|
490
494
|
let t = !1, r = "id", n = "ASC";
|
|
491
495
|
function i() {
|
|
492
496
|
t = !0;
|
|
@@ -520,7 +524,7 @@ function Ae(e) {
|
|
|
520
524
|
setOrderDir: p
|
|
521
525
|
};
|
|
522
526
|
}
|
|
523
|
-
function
|
|
527
|
+
function Ee() {
|
|
524
528
|
let e = !1;
|
|
525
529
|
function t() {
|
|
526
530
|
return e = !0, this;
|
|
@@ -533,7 +537,7 @@ function Pe() {
|
|
|
533
537
|
isSilent: r
|
|
534
538
|
};
|
|
535
539
|
}
|
|
536
|
-
function
|
|
540
|
+
function Se() {
|
|
537
541
|
let e = "json";
|
|
538
542
|
function t(n = "json") {
|
|
539
543
|
if (["arraybuffer", "document", "json", "text", "stream", "blob"].indexOf(n) === -1)
|
|
@@ -548,7 +552,7 @@ function Ie() {
|
|
|
548
552
|
getResponseType: r
|
|
549
553
|
};
|
|
550
554
|
}
|
|
551
|
-
function
|
|
555
|
+
function Ce(e) {
|
|
552
556
|
function t() {
|
|
553
557
|
return e;
|
|
554
558
|
}
|
|
@@ -564,7 +568,7 @@ function ve(e) {
|
|
|
564
568
|
getPayload: n
|
|
565
569
|
};
|
|
566
570
|
}
|
|
567
|
-
function
|
|
571
|
+
function ke(e, t = !1) {
|
|
568
572
|
let r = !1, n = !1;
|
|
569
573
|
return e.response ? (r = !0, n = !0) : e.request && (r = !0), !t && $.getErrorHandler() && $.getErrorHandler()(e), {
|
|
570
574
|
sent: r,
|
|
@@ -572,7 +576,7 @@ function Ee(e, t = !1) {
|
|
|
572
576
|
error: e
|
|
573
577
|
};
|
|
574
578
|
}
|
|
575
|
-
function
|
|
579
|
+
function $e(e) {
|
|
576
580
|
function t() {
|
|
577
581
|
return e;
|
|
578
582
|
}
|
|
@@ -612,34 +616,34 @@ function Se(e) {
|
|
|
612
616
|
getPages: o
|
|
613
617
|
};
|
|
614
618
|
}
|
|
615
|
-
function
|
|
619
|
+
function Le(e, t, r, n, i, c) {
|
|
616
620
|
async function d() {
|
|
617
621
|
const u = r.getMethod(), o = t.getUri(), s = e.getHeaders(), l = n.getPayload(), m = [o];
|
|
618
622
|
["post", "put", "patch"].includes(u) && m.push(l || {}), m.push({
|
|
619
623
|
headers: s,
|
|
620
624
|
responseType: c.getResponseType()
|
|
621
|
-
}),
|
|
625
|
+
}), L.info("[Request] Sending request:", `[${u.toUpperCase()}]`, o);
|
|
622
626
|
try {
|
|
623
|
-
const f = await
|
|
627
|
+
const f = await ne[u](...m);
|
|
624
628
|
return p(f);
|
|
625
629
|
} catch (f) {
|
|
626
|
-
throw
|
|
630
|
+
throw ke(f, i.isSilent());
|
|
627
631
|
}
|
|
628
632
|
}
|
|
629
633
|
function p(u) {
|
|
630
634
|
if (u.headers) {
|
|
631
635
|
const o = Object.keys(u.headers), s = o.map((l) => l.toLowerCase()).indexOf("content-type");
|
|
632
636
|
if (s !== -1 && u.headers[o[s]].includes("application/ld+json"))
|
|
633
|
-
return
|
|
637
|
+
return $e(u);
|
|
634
638
|
}
|
|
635
|
-
return
|
|
639
|
+
return Ce(u);
|
|
636
640
|
}
|
|
637
641
|
return {
|
|
638
642
|
send: d
|
|
639
643
|
};
|
|
640
644
|
}
|
|
641
645
|
function w(e, t = "get", r = null) {
|
|
642
|
-
const n =
|
|
646
|
+
const n = ce(), i = Ae(e), c = ue(t), d = le(c, n, r), p = Pe(i), u = Ie(i), o = ve(i), s = Ee(), l = Se(), m = Le(n, i, c, d, s, l);
|
|
643
647
|
return {
|
|
644
648
|
...n,
|
|
645
649
|
...i,
|
|
@@ -654,7 +658,7 @@ function w(e, t = "get", r = null) {
|
|
|
654
658
|
};
|
|
655
659
|
}
|
|
656
660
|
function y(e, t = "get", r = null) {
|
|
657
|
-
const n = w(e, t, r), i =
|
|
661
|
+
const n = w(e, t, r), i = _();
|
|
658
662
|
i.isAuthenticated() && n.setAuthorization(i.getAuthToken());
|
|
659
663
|
const c = n.send;
|
|
660
664
|
return n.send = async function() {
|
|
@@ -663,110 +667,110 @@ function y(e, t = "get", r = null) {
|
|
|
663
667
|
return c();
|
|
664
668
|
}, n;
|
|
665
669
|
}
|
|
666
|
-
const
|
|
667
|
-
listByCandidateAndEstablishment:
|
|
668
|
-
}),
|
|
669
|
-
share:
|
|
670
|
-
isArchived:
|
|
671
|
-
archive:
|
|
672
|
-
unarchive:
|
|
673
|
-
}),
|
|
674
|
-
getForEstablishmentCandidate:
|
|
675
|
-
postForEstablishmentCandidate:
|
|
676
|
-
update:
|
|
677
|
-
remove:
|
|
678
|
-
}),
|
|
679
|
-
list: je
|
|
680
|
-
}), Ne = (e) => y("/v2/talents").isList().setQueryParam("establishment-id", e), mn = () => ({
|
|
681
|
-
list: Ne
|
|
682
|
-
}), ze = (e, t, r) => y("/cvtheque/establishment/:establishmentId/candidate/:candidateId/label/synchronize").setRouteParams({ establishmentId: e, candidateId: t }).setMethod("post").setPayload(r), fn = () => ({
|
|
683
|
-
syncCandidateLabels: ze
|
|
684
|
-
}), Fe = () => w("diploma").isList().addGroup("Term:id").addGroup("Term:name"), pn = () => ({
|
|
670
|
+
const Me = (e, t) => y("/v2/activity/candidate/:candidateId/establishment/:establishmentId").setRouteParams({ candidateId: e, establishmentId: t }), dn = () => ({
|
|
671
|
+
listByCandidateAndEstablishment: Me
|
|
672
|
+
}), Oe = (e, t, r) => y("/candidate/:candidateId/share/establishment/:establishmentId").setMethod("post").setRouteParams({ candidateId: e, establishmentId: t }).setPayload(r), De = (e, t) => y("/candidate/:candidateId/archive/establishment/:establishmentId").setRouteParams({ candidateId: e, establishmentId: t }), _e = (e, t) => y("/candidate/:candidateId/archive/establishment/:establishmentId").setMethod("post").setRouteParams({ candidateId: e, establishmentId: t }), xe = (e, t) => y("/candidate/:candidateId/archive/establishment/:establishmentId").setMethod("delete").setRouteParams({ candidateId: e, establishmentId: t }), mn = () => ({
|
|
673
|
+
share: Oe,
|
|
674
|
+
isArchived: De,
|
|
675
|
+
archive: _e,
|
|
676
|
+
unarchive: xe
|
|
677
|
+
}), Te = (e, t) => y("/comment/establishment/:establishmentId/candidate/:userId").setRouteParams({ establishmentId: e, userId: t }), je = (e, t, r) => y("/comment/establishment/:establishmentId/candidate/:userId").setRouteParams({ establishmentId: e, userId: t }).setMethod("post").setPayload(r), Ne = (e, t) => y("/comment/:commentId").setRouteParams({ commentId: e }).setMethod("put").setPayload(t), ze = (e) => y("/comment/:commentId").setRouteParams({ commentId: e }).setMethod("delete"), fn = () => ({
|
|
678
|
+
getForEstablishmentCandidate: Te,
|
|
679
|
+
postForEstablishmentCandidate: je,
|
|
680
|
+
update: Ne,
|
|
681
|
+
remove: ze
|
|
682
|
+
}), Fe = () => w("contractType").isList().addGroup("Term:id").addGroup("Term:name"), pn = () => ({
|
|
685
683
|
list: Fe
|
|
686
|
-
}),
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
}),
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
684
|
+
}), Be = (e) => y("/v2/talents").isList().setQueryParam("establishment-id", e), hn = () => ({
|
|
685
|
+
list: Be
|
|
686
|
+
}), qe = (e, t, r) => y("/cvtheque/establishment/:establishmentId/candidate/:candidateId/label/synchronize").setRouteParams({ establishmentId: e, candidateId: t }).setMethod("post").setPayload(r), yn = () => ({
|
|
687
|
+
syncCandidateLabels: qe
|
|
688
|
+
}), Ue = () => w("diploma").isList().addGroup("Term:id").addGroup("Term:name"), gn = () => ({
|
|
689
|
+
list: Ue
|
|
690
|
+
}), He = (e) => y("document/candidate/:candidateId").setRouteParams({ candidateId: e }).isList().disablePagination(), Ve = (e, t) => y("document/candidate/:candidateId/establishment/:establishmentId/recruiter").setRouteParams({ candidateId: e, establishmentId: t }).isList().disablePagination(), Qe = (e, t) => y("document/candidate/:candidateId/establishment/:establishmentId/candidate").setRouteParams({ candidateId: e, establishmentId: t }).isList().disablePagination(), Ge = (e) => y("document/recruiter").setMethod("post").setPayload(e), Ke = (e) => y("document/:documentId").setRouteParams({ documentId: e }).setMethod("delete"), bn = () => ({
|
|
691
|
+
listByCandidate: He,
|
|
692
|
+
listByCandidateAndEstablishmentFromRecruiter: Ve,
|
|
693
|
+
listByCandidateAndEstablishmentFromCandidate: Qe,
|
|
694
|
+
addFromRecruiter: Ge,
|
|
695
|
+
remove: Ke
|
|
696
|
+
}), Je = (e, t) => y("/v2/establishments/:establishmentId/email-history").setRouteParams({ establishmentId: t }).setQueryParam("receiverId", e).isList().disablePagination(), wn = () => ({
|
|
697
|
+
listByCandidateAndEstablishment: Je
|
|
698
|
+
}), We = (e, t) => y("/email/candidate/:candidateId").setMethod("post").setRouteParams({ candidateId: e }).setPayload(t), Ze = (e, t) => y("/v2/emails/send").setMethod("post").setFormData().setPayload({ recipientIds: e, ...t }), Rn = () => ({
|
|
699
|
+
sendToCandidate: We,
|
|
700
|
+
sendToRecipients: Ze
|
|
701
|
+
}), Xe = (e, t = !0) => {
|
|
698
702
|
const r = y("/v2/establishments/:establishmentId/email-templates").setRouteParams({ establishmentId: e }).isList().disablePagination();
|
|
699
703
|
return t && r.setQueryParam("global", !0), r;
|
|
700
|
-
},
|
|
701
|
-
listByEstablishment:
|
|
702
|
-
listSelf:
|
|
703
|
-
}),
|
|
704
|
+
}, Ye = () => y("/v2/self/email-templates").isList().disablePagination(), An = () => ({
|
|
705
|
+
listByEstablishment: Xe,
|
|
706
|
+
listSelf: Ye
|
|
707
|
+
}), et = (e, t) => y("establishment-career/:establishmentId/:versionId").setRouteParams({ establishmentId: e, versionId: t }), tt = (e, t = "published") => y("establishment-career/:establishmentId/state/:state").setRouteParams({ establishmentId: e, state: t }), nt = (e, t, r = null) => {
|
|
704
708
|
const n = r !== null ? y("establishment-career/:establishmentId/:versionId").setRouteParams({ establishmentId: e, versionId: r }) : y("establishment-career/:establishmentId").setRouteParams({ establishmentId: e });
|
|
705
709
|
return n.setMethod("post").setPayload(t), n;
|
|
706
|
-
},
|
|
707
|
-
readById:
|
|
708
|
-
readByState:
|
|
709
|
-
upsert:
|
|
710
|
-
uploadLogoAndBanner:
|
|
711
|
-
publish:
|
|
712
|
-
}),
|
|
713
|
-
read:
|
|
714
|
-
authorizations:
|
|
715
|
-
}),
|
|
716
|
-
maintenanceModeEnabled:
|
|
717
|
-
forEstablishment:
|
|
718
|
-
}),
|
|
719
|
-
list:
|
|
720
|
-
}),
|
|
721
|
-
listByEstablishment:
|
|
722
|
-
addToEstablishment:
|
|
723
|
-
update:
|
|
724
|
-
remove:
|
|
725
|
-
syncForCandidate:
|
|
726
|
-
}),
|
|
727
|
-
read:
|
|
728
|
-
}),
|
|
710
|
+
}, rt = (e, t) => y("establishment-career/:establishmentId/logo-banner").setMethod("post").setRouteParams({ establishmentId: e }).setPayload(t), it = (e, t, r) => y("establishment-career/:establishmentId/publish/:versionId").setMethod("post").setRouteParams({ establishmentId: e, versionId: t }).setPayload(r), Pn = () => ({
|
|
711
|
+
readById: et,
|
|
712
|
+
readByState: tt,
|
|
713
|
+
upsert: nt,
|
|
714
|
+
uploadLogoAndBanner: rt,
|
|
715
|
+
publish: it
|
|
716
|
+
}), ot = (e) => w("establishment/:establishmentId").setRouteParams({ establishmentId: e }), st = (e) => y("establishment/:establishmentId/authorizations").setRouteParams({ establishmentId: e }), J = () => ({
|
|
717
|
+
read: ot,
|
|
718
|
+
authorizations: st
|
|
719
|
+
}), at = (e) => w("feature-flag/maintenance").setMethod("post").setPayload(e), ct = (e, t) => w("feature-flag/establishment").setMethod("post").setPayload({ establishment: e, flagName: t }), In = () => ({
|
|
720
|
+
maintenanceModeEnabled: at,
|
|
721
|
+
forEstablishment: ct
|
|
722
|
+
}), ut = () => w("job").isList().addGroup("Term:id").addGroup("Term:name"), vn = () => ({
|
|
723
|
+
list: ut
|
|
724
|
+
}), lt = (e) => y("/label/establishment/:establishmentId").isList().setRouteParams({ establishmentId: e }), dt = (e, t) => y("/label/establishment/:establishmentId").setMethod("post").setRouteParams({ establishmentId: e }).setPayload(t), mt = (e, t) => y("/label/:labelId").setMethod("put").setRouteParams({ labelId: e }).setPayload(t), ft = (e) => y("/label/:labelId").setMethod("delete").setRouteParams({ labelId: e }), pt = (e, t, r) => y("/label/establishment/:establishmentId/candidate/:candidateId/synchronize").setMethod("post").setPayload(r).setRouteParams({ establishmentId: e, candidateId: t }), En = () => ({
|
|
725
|
+
listByEstablishment: lt,
|
|
726
|
+
addToEstablishment: dt,
|
|
727
|
+
update: mt,
|
|
728
|
+
remove: ft,
|
|
729
|
+
syncForCandidate: pt
|
|
730
|
+
}), ht = (e) => w("offer/:offerId").setRouteParams({ offerId: e }), Sn = () => ({
|
|
731
|
+
read: ht
|
|
732
|
+
}), yt = (e, t = !1) => {
|
|
729
733
|
const r = y("/recruiter/establishment/:establishmentId").isList().setRouteParams({ establishmentId: e });
|
|
730
734
|
return t && r.setQueryParam("exclude-me", 1), r;
|
|
731
|
-
},
|
|
732
|
-
listByEstablishment:
|
|
733
|
-
}),
|
|
734
|
-
mineByEstablishment:
|
|
735
|
-
mineWithoutCandidate:
|
|
736
|
-
mineWithCandidate:
|
|
737
|
-
withCandidate:
|
|
738
|
-
addCandidates:
|
|
739
|
-
removeCandidate:
|
|
740
|
-
}),
|
|
735
|
+
}, Cn = () => ({
|
|
736
|
+
listByEstablishment: yt
|
|
737
|
+
}), gt = (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 }), wt = (e, t) => y("/recruitment/mine/establishment/:establishmentId/has/candidate/:candidateId").isList().setRouteParams({ establishmentId: e, candidateId: t }), Rt = (e, t) => y("/recruitment/establishment/:establishmentId/has/candidate/:candidateId").isList().setRouteParams({ establishmentId: e, candidateId: t }), At = (e, t) => y("/recruitment/:recruitmentId/candidate").setMethod("put").setRouteParams({ recruitmentId: e }).setPayload(t), Pt = (e, t) => y("/recruitment/:recruitmentId/candidate/:candidateId").setMethod("delete").setRouteParams({ recruitmentId: e, candidateId: t }), kn = () => ({
|
|
738
|
+
mineByEstablishment: gt,
|
|
739
|
+
mineWithoutCandidate: bt,
|
|
740
|
+
mineWithCandidate: wt,
|
|
741
|
+
withCandidate: Rt,
|
|
742
|
+
addCandidates: At,
|
|
743
|
+
removeCandidate: Pt
|
|
744
|
+
}), It = (e, t, r, n = null) => {
|
|
741
745
|
const i = w("candidate/register/open").setMethod("post"), c = { email: e };
|
|
742
746
|
return t === "establishment" && (c.establishmentId = r), t === "offer" && (c.offerId = r), n && (c.referer = n), i.setPayload(c), i;
|
|
743
|
-
},
|
|
744
|
-
open:
|
|
745
|
-
update:
|
|
746
|
-
read:
|
|
747
|
-
close:
|
|
748
|
-
}),
|
|
749
|
-
list:
|
|
750
|
-
}),
|
|
751
|
-
listByEstablishment:
|
|
752
|
-
}),
|
|
753
|
-
emailExists:
|
|
754
|
-
self:
|
|
755
|
-
byUuidPrivate:
|
|
756
|
-
byUuid:
|
|
747
|
+
}, vt = (e, t) => w("candidate/register/update/:token").setMethod("post").setRouteParams({ token: e }).setPayload(t), Et = (e) => w("candidate/register/read/:token").setRouteParams({ token: e }), St = (e) => w("candidate/register/close/:token").setMethod("post").setRouteParams({ token: e }), $n = () => ({
|
|
748
|
+
open: It,
|
|
749
|
+
update: vt,
|
|
750
|
+
read: Et,
|
|
751
|
+
close: St
|
|
752
|
+
}), Ct = () => w("speciality").isList().addGroup("Term:id").addGroup("Term:name"), Ln = () => ({
|
|
753
|
+
list: Ct
|
|
754
|
+
}), kt = (e) => y("/tag/public/establishment/:establishmentId").isList().setRouteParams({ establishmentId: e }), Mn = () => ({
|
|
755
|
+
listByEstablishment: kt
|
|
756
|
+
}), $t = (e) => w("user/email/isset/:email").setRouteParams({ email: e }), Lt = () => y("user/self").addGroup("user:self"), Mt = (e) => y("/user/:uuid").setRouteParams({ uuid: e }), Ot = (e) => w("/user/:uuid").setRouteParams({ uuid: e }), W = () => ({
|
|
757
|
+
emailExists: $t,
|
|
758
|
+
self: Lt,
|
|
759
|
+
byUuidPrivate: Mt,
|
|
760
|
+
byUuid: Ot
|
|
757
761
|
});
|
|
758
|
-
let
|
|
759
|
-
function
|
|
760
|
-
if (
|
|
761
|
-
return
|
|
762
|
+
let D;
|
|
763
|
+
function Dt() {
|
|
764
|
+
if (D)
|
|
765
|
+
return D;
|
|
762
766
|
const e = {
|
|
763
767
|
user: void 0,
|
|
764
768
|
roles: [],
|
|
765
769
|
establishments: {}
|
|
766
770
|
}, t = async () => {
|
|
767
|
-
if (!
|
|
771
|
+
if (!_().isAuthenticated())
|
|
768
772
|
throw new Error("::SDK Authorization:: User not authenticated");
|
|
769
|
-
const o = (await
|
|
773
|
+
const o = (await W().self().send()).getData();
|
|
770
774
|
e.user = {
|
|
771
775
|
id: o.id,
|
|
772
776
|
email: o.email,
|
|
@@ -775,15 +779,15 @@ function Lt() {
|
|
|
775
779
|
avatar: o.avatar
|
|
776
780
|
}, e.roles = o.roles;
|
|
777
781
|
}, r = async (o) => {
|
|
778
|
-
if (!
|
|
782
|
+
if (!_().isAuthenticated())
|
|
779
783
|
throw new Error("::SDK Authorization:: User not authenticated");
|
|
780
|
-
e.establishments[o] = (await
|
|
784
|
+
e.establishments[o] = (await J().authorizations(o).send()).getData();
|
|
781
785
|
}, n = (o) => {
|
|
782
786
|
if (e.user === void 0)
|
|
783
787
|
throw new Error("::SDK Authorization:: User not fetched");
|
|
784
788
|
return e.roles.includes(o);
|
|
785
789
|
};
|
|
786
|
-
return
|
|
790
|
+
return D = {
|
|
787
791
|
fetchSelf: t,
|
|
788
792
|
fetchPermission: r,
|
|
789
793
|
hasRole: n,
|
|
@@ -799,12 +803,12 @@ function Lt() {
|
|
|
799
803
|
clear: () => {
|
|
800
804
|
e.user = void 0, e.roles = [], e.establishments = {};
|
|
801
805
|
}
|
|
802
|
-
},
|
|
806
|
+
}, D;
|
|
803
807
|
}
|
|
804
|
-
async function
|
|
805
|
-
if (!
|
|
808
|
+
async function On(e, ...t) {
|
|
809
|
+
if (!_().isAuthenticated())
|
|
806
810
|
throw "ERR_NOT_AUTHENTICATED";
|
|
807
|
-
const n =
|
|
811
|
+
const n = Dt();
|
|
808
812
|
await Promise.all([
|
|
809
813
|
n.fetchSelf(),
|
|
810
814
|
n.fetchPermission(e)
|
|
@@ -815,7 +819,7 @@ async function $n(e, ...t) {
|
|
|
815
819
|
throw "ERR_MISSING_PERMISSION";
|
|
816
820
|
}
|
|
817
821
|
}
|
|
818
|
-
const
|
|
822
|
+
const Dn = re("authorization", {
|
|
819
823
|
state: () => ({
|
|
820
824
|
user: void 0,
|
|
821
825
|
establishments: {}
|
|
@@ -835,13 +839,13 @@ const Ln = ne("authorization", {
|
|
|
835
839
|
actions: {
|
|
836
840
|
async fetchSelf(e) {
|
|
837
841
|
if (this.user === void 0 || e) {
|
|
838
|
-
const t = await
|
|
842
|
+
const t = await W().self().send();
|
|
839
843
|
this.user = t.getData();
|
|
840
844
|
}
|
|
841
845
|
},
|
|
842
846
|
async fetchPermission(e, t) {
|
|
843
847
|
if (!this.establishments[e] || t) {
|
|
844
|
-
const r = await
|
|
848
|
+
const r = await J().authorizations(e).send();
|
|
845
849
|
this.establishments[e] = r.getData();
|
|
846
850
|
}
|
|
847
851
|
},
|
|
@@ -872,7 +876,7 @@ const Ln = ne("authorization", {
|
|
|
872
876
|
p = i(p) ? c(p) : p, d[p] = d[p] ?? o, d = d[p];
|
|
873
877
|
}
|
|
874
878
|
}), e;
|
|
875
|
-
},
|
|
879
|
+
}, _t = (e) => {
|
|
876
880
|
if (typeof e == "object") {
|
|
877
881
|
if (Array.isArray(e))
|
|
878
882
|
return [...e];
|
|
@@ -880,10 +884,10 @@ const Ln = ne("authorization", {
|
|
|
880
884
|
return { ...e };
|
|
881
885
|
}
|
|
882
886
|
return e;
|
|
883
|
-
},
|
|
887
|
+
}, Z = (e, t) => {
|
|
884
888
|
const r = { ...e };
|
|
885
889
|
for (const [n, i] of Object.entries(t))
|
|
886
|
-
n in r && typeof r[n] == "object" && typeof i == "object" ? r[n] =
|
|
890
|
+
n in r && typeof r[n] == "object" && typeof i == "object" ? r[n] = Z(r[n], i) : r[n] = _t(i);
|
|
887
891
|
return r;
|
|
888
892
|
};
|
|
889
893
|
let k = null;
|
|
@@ -979,7 +983,7 @@ function g() {
|
|
|
979
983
|
}, k;
|
|
980
984
|
}
|
|
981
985
|
g.destroy = () => k = null;
|
|
982
|
-
function
|
|
986
|
+
function xt() {
|
|
983
987
|
const e = "Hubler Application";
|
|
984
988
|
function t(o) {
|
|
985
989
|
var l;
|
|
@@ -1028,7 +1032,7 @@ function Ot() {
|
|
|
1028
1032
|
applicationFormFailed: u
|
|
1029
1033
|
};
|
|
1030
1034
|
}
|
|
1031
|
-
function
|
|
1035
|
+
function Tt() {
|
|
1032
1036
|
const e = "Profile";
|
|
1033
1037
|
function t(a, R) {
|
|
1034
1038
|
var E;
|
|
@@ -1103,12 +1107,12 @@ function Dt() {
|
|
|
1103
1107
|
profileEmailSent: S
|
|
1104
1108
|
};
|
|
1105
1109
|
}
|
|
1106
|
-
const
|
|
1110
|
+
const B = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1107
1111
|
__proto__: null,
|
|
1108
|
-
useAnalyticsHublerApplication:
|
|
1109
|
-
useAnalyticsProfile:
|
|
1112
|
+
useAnalyticsHublerApplication: xt,
|
|
1113
|
+
useAnalyticsProfile: Tt
|
|
1110
1114
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
1111
|
-
function
|
|
1115
|
+
function _n() {
|
|
1112
1116
|
function e(r) {
|
|
1113
1117
|
return g().identify(r.id, {
|
|
1114
1118
|
email: r.email,
|
|
@@ -1130,23 +1134,23 @@ function Mn() {
|
|
|
1130
1134
|
identifyCandidate: e
|
|
1131
1135
|
};
|
|
1132
1136
|
}
|
|
1133
|
-
const
|
|
1134
|
-
window.google && window.google.maps ? e() : (window.addEventListener("gmap-ready", () => e()),
|
|
1135
|
-
}),
|
|
1137
|
+
const jt = "AIzaSyDicyRD6rvVdnicp1tgV0ElazASNGbyyTs", X = () => new Promise((e) => {
|
|
1138
|
+
window.google && window.google.maps ? e() : (window.addEventListener("gmap-ready", () => e()), Ft());
|
|
1139
|
+
}), Nt = (e, t) => X().then(() => zt(e, t)), zt = (e, t) => {
|
|
1136
1140
|
const r = new window.google.maps.places.Autocomplete(e, { componentRestrictions: { country: ["fr", "re", "yt", "gp", "mq"] } });
|
|
1137
1141
|
window.google.maps.event.addListener(r, "place_changed", () => {
|
|
1138
1142
|
const n = r.getPlace();
|
|
1139
1143
|
n.formatted_address && t(n);
|
|
1140
1144
|
});
|
|
1141
|
-
},
|
|
1145
|
+
}, Ft = () => {
|
|
1142
1146
|
window.onGmapScriptReady = function() {
|
|
1143
1147
|
};
|
|
1144
1148
|
const e = document.createElement("script");
|
|
1145
|
-
e.src = "https://maps.googleapis.com/maps/api/js?key=" +
|
|
1146
|
-
},
|
|
1147
|
-
scriptReady:
|
|
1148
|
-
autocompleteInput:
|
|
1149
|
-
},
|
|
1149
|
+
e.src = "https://maps.googleapis.com/maps/api/js?key=" + jt + "&libraries=places&callback=onGmapScriptReady", e.async = !0, e.defer = !0, e.onload = () => window.dispatchEvent(new Event("gmap-ready")), document.body.appendChild(e);
|
|
1150
|
+
}, xn = {
|
|
1151
|
+
scriptReady: X,
|
|
1152
|
+
autocompleteInput: Nt
|
|
1153
|
+
}, Bt = {
|
|
1150
1154
|
common: {
|
|
1151
1155
|
the: "le",
|
|
1152
1156
|
from: "de"
|
|
@@ -1171,18 +1175,18 @@ const xt = "AIzaSyDicyRD6rvVdnicp1tgV0ElazASNGbyyTs", Z = () => new Promise((e)
|
|
|
1171
1175
|
minute: "minute | minutes",
|
|
1172
1176
|
second: "seconde | secondes"
|
|
1173
1177
|
}
|
|
1174
|
-
},
|
|
1175
|
-
fr:
|
|
1178
|
+
}, qt = {
|
|
1179
|
+
fr: Bt
|
|
1176
1180
|
};
|
|
1177
1181
|
let N = null;
|
|
1178
|
-
const
|
|
1182
|
+
const Ut = () => N, Tn = (e = {}) => {
|
|
1179
1183
|
let t = e.locale || "fr";
|
|
1180
|
-
const r = (u) => t = u, n = () => t, i =
|
|
1184
|
+
const r = (u) => t = u, n = () => t, i = Z(qt, (e == null ? void 0 : e.messages) || {}), c = (u, o) => {
|
|
1181
1185
|
const s = C(i, `${t}.${u}`);
|
|
1182
|
-
return s ? o ?
|
|
1186
|
+
return s ? o ? Ht(s, o) : s : u;
|
|
1183
1187
|
}, d = (u, o) => {
|
|
1184
1188
|
const s = C(i, `${t}.${u}`);
|
|
1185
|
-
return s ?
|
|
1189
|
+
return s ? Vt(s, o) : u;
|
|
1186
1190
|
};
|
|
1187
1191
|
return N = {
|
|
1188
1192
|
t: c,
|
|
@@ -1193,13 +1197,13 @@ const Ft = () => N, Dn = (e = {}) => {
|
|
|
1193
1197
|
u.config.globalProperties.$t = c, u.config.globalProperties.$tNode = d;
|
|
1194
1198
|
}
|
|
1195
1199
|
}, N;
|
|
1196
|
-
},
|
|
1200
|
+
}, Ht = (e, t) => e ? e.replace(/{{ ?([a-zA-Z_.]+) ?}}/g, (r, n) => C(t, n)) : null, Vt = (e, t) => {
|
|
1197
1201
|
if (!e)
|
|
1198
1202
|
return null;
|
|
1199
1203
|
const r = e.split(/(\{[{%]+[^{}]*[%}]+})/g).filter((n) => n !== "").map((n) => {
|
|
1200
1204
|
const i = n.startsWith("{%") && n.endsWith("%}") ? "slot" : n.startsWith("{{") && n.endsWith("}}") ? "variable" : "text";
|
|
1201
1205
|
if (i === "text")
|
|
1202
|
-
return () =>
|
|
1206
|
+
return () => q.text(n);
|
|
1203
1207
|
n = n.replace(/[{}%]/g, "").trim();
|
|
1204
1208
|
const c = n.match(/^[a-zA-Z_.]+/)[0];
|
|
1205
1209
|
n = n.replace(c, "").trim();
|
|
@@ -1207,16 +1211,16 @@ const Ft = () => N, Dn = (e = {}) => {
|
|
|
1207
1211
|
return n !== "" && ([...n.matchAll(/([a-zA-Z_.]+)(=([a-zA-Z_.]+))?/g)].reduce((o, s) => (s[3] === void 0 ? F(o, s[1], C(t, s[1])) : F(o, s[1], C(t, s[3])), o), d), [...n.matchAll(/([a-zA-Z_.]+)="([^"]+)"/g)].reduce((o, s) => {
|
|
1208
1212
|
let l = s[2];
|
|
1209
1213
|
return new RegExp(/^[0-9]*$/).exec(s[2]) ? l = parseInt(s[2]) : new RegExp(/^(true|false)$/).exec(s[2]) && (l = s[2] === "true"), o[s[1]] = l, o;
|
|
1210
|
-
}, d)), (p) =>
|
|
1214
|
+
}, d)), (p) => q[i](c, t, p, d);
|
|
1211
1215
|
});
|
|
1212
1216
|
return { setup: (n, { slots: i }) => () => r.map((c) => c(i)) };
|
|
1213
|
-
},
|
|
1214
|
-
slot: (e, t, r, n) =>
|
|
1215
|
-
variable: (e, t) =>
|
|
1216
|
-
text: (e) =>
|
|
1217
|
+
}, q = {
|
|
1218
|
+
slot: (e, t, r, n) => x("span", { class: "node node--slot" }, r[e.trim()](n)),
|
|
1219
|
+
variable: (e, t) => x("span", { class: "node node--variable" }, C(t, e.trim())),
|
|
1220
|
+
text: (e) => x("span", { class: "node node--text" }, e)
|
|
1217
1221
|
};
|
|
1218
|
-
function
|
|
1219
|
-
const { t } =
|
|
1222
|
+
function jn(e) {
|
|
1223
|
+
const { t } = Ut(), r = {
|
|
1220
1224
|
justNow: t("timeAgo.just-now"),
|
|
1221
1225
|
past: (n) => n.match(/\d/) ? t("timeAgo.ago", [n]) : n,
|
|
1222
1226
|
future: (n) => n.match(/\d/) ? t("timeAgo.in", [n]) : n,
|
|
@@ -1229,12 +1233,12 @@ function xn(e) {
|
|
|
1229
1233
|
second: (n) => `${n} ${t("timeAgo.second", n)}`,
|
|
1230
1234
|
invalid: ""
|
|
1231
1235
|
};
|
|
1232
|
-
return
|
|
1236
|
+
return ie(e, {
|
|
1233
1237
|
fullDateFormatter: (n) => n.toLocaleDateString(),
|
|
1234
1238
|
messages: r
|
|
1235
1239
|
});
|
|
1236
1240
|
}
|
|
1237
|
-
function
|
|
1241
|
+
function Qt() {
|
|
1238
1242
|
let e = null;
|
|
1239
1243
|
function t() {
|
|
1240
1244
|
return e;
|
|
@@ -1269,18 +1273,18 @@ function Ht() {
|
|
|
1269
1273
|
hasAction: d
|
|
1270
1274
|
};
|
|
1271
1275
|
}
|
|
1272
|
-
function
|
|
1276
|
+
function Gt() {
|
|
1273
1277
|
async function e({ domain: n, event: i, ...c }) {
|
|
1274
1278
|
const d = "useAnalytics" + n.charAt(0).toUpperCase() + n.slice(1);
|
|
1275
1279
|
if (!t(d))
|
|
1276
1280
|
throw new Error(`Domain ${n} is not defined`);
|
|
1277
|
-
const p =
|
|
1281
|
+
const p = B[d]();
|
|
1278
1282
|
if (!r(p, i))
|
|
1279
1283
|
throw new Error(`Event ${i} is not defined in domain ${n}`);
|
|
1280
1284
|
return p[i](c);
|
|
1281
1285
|
}
|
|
1282
1286
|
function t(n) {
|
|
1283
|
-
return !!
|
|
1287
|
+
return !!B[n];
|
|
1284
1288
|
}
|
|
1285
1289
|
function r(n, i) {
|
|
1286
1290
|
return !!n[i];
|
|
@@ -1289,23 +1293,23 @@ function Vt() {
|
|
|
1289
1293
|
call: e
|
|
1290
1294
|
};
|
|
1291
1295
|
}
|
|
1292
|
-
const
|
|
1296
|
+
const U = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1293
1297
|
__proto__: null,
|
|
1294
|
-
useAnalyticsQSController:
|
|
1298
|
+
useAnalyticsQSController: Gt
|
|
1295
1299
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
1296
|
-
function
|
|
1300
|
+
function Kt(e) {
|
|
1297
1301
|
if (!e.hasAction())
|
|
1298
1302
|
throw new Error("No action found in router");
|
|
1299
1303
|
function t() {
|
|
1300
1304
|
if (!r())
|
|
1301
1305
|
throw new Error(`Controller ${e.getController()} not found`);
|
|
1302
|
-
const i =
|
|
1306
|
+
const i = U[e.getControllerComposableName()]();
|
|
1303
1307
|
if (!n(i))
|
|
1304
1308
|
throw new Error(`Action ${e.getAction()} not found in controller ${e.getController()}`);
|
|
1305
1309
|
return i[e.getAction()](e.getArguments());
|
|
1306
1310
|
}
|
|
1307
1311
|
function r() {
|
|
1308
|
-
return e.getControllerComposableName() in
|
|
1312
|
+
return e.getControllerComposableName() in U;
|
|
1309
1313
|
}
|
|
1310
1314
|
function n(i) {
|
|
1311
1315
|
return e.getAction() in i;
|
|
@@ -1314,7 +1318,7 @@ function Qt(e) {
|
|
|
1314
1318
|
dispatch: t
|
|
1315
1319
|
};
|
|
1316
1320
|
}
|
|
1317
|
-
function
|
|
1321
|
+
function Nn() {
|
|
1318
1322
|
let e = !1;
|
|
1319
1323
|
function t(i, c, d) {
|
|
1320
1324
|
n(), d();
|
|
@@ -1325,10 +1329,10 @@ function _n() {
|
|
|
1325
1329
|
d();
|
|
1326
1330
|
}
|
|
1327
1331
|
function n() {
|
|
1328
|
-
const i =
|
|
1332
|
+
const i = Qt();
|
|
1329
1333
|
if (!i.hasAction())
|
|
1330
1334
|
return;
|
|
1331
|
-
|
|
1335
|
+
Kt(i).dispatch();
|
|
1332
1336
|
}
|
|
1333
1337
|
return {
|
|
1334
1338
|
vueRouterBeforeEach: t,
|
|
@@ -1336,71 +1340,71 @@ function _n() {
|
|
|
1336
1340
|
handle: n
|
|
1337
1341
|
};
|
|
1338
1342
|
}
|
|
1339
|
-
const I = () => $.getMainAppHost(),
|
|
1343
|
+
const I = () => $.getMainAppHost(), Jt = () => `${I()}/rh/establishments`, Wt = (e) => `${I()}/rh/establishment/${e}`, Zt = (e) => e && typeof e == "object" && e.urls && e.urls.display ? e.urls.display : "", Xt = (e) => `${I()}/rh/establishment/${e}/cvtheque/`, Yt = (e, t) => `${I()}/rh/establishment/${e}/recruitment/${t}`, en = (e, t) => `${I()}/rh/establishment/${e}/recruitment/${t}/kanban`, tn = (e) => `${I()}/rh/establishment/${e}/career-configuration`, nn = (e, t = null) => t ? `${I()}/career-website/${e}/${t}` : `${I()}/career-website/${e}`, rn = (e, t) => `${I()}/career-website-preview/${e}/${t}`, on = (e, t = null) => {
|
|
1340
1344
|
const r = I().replace("://", `://${e}.`);
|
|
1341
1345
|
return t ? `${r}?_version=${t}` : `${r}`;
|
|
1342
1346
|
};
|
|
1343
|
-
function
|
|
1347
|
+
function zn() {
|
|
1344
1348
|
return {
|
|
1345
1349
|
root: I,
|
|
1346
|
-
establishments:
|
|
1347
|
-
establishment:
|
|
1348
|
-
img:
|
|
1349
|
-
cvtheque:
|
|
1350
|
-
recruitment:
|
|
1351
|
-
recruitmentKanban:
|
|
1352
|
-
career:
|
|
1353
|
-
careerConfig:
|
|
1354
|
-
careerPreview:
|
|
1355
|
-
careerWebsite:
|
|
1350
|
+
establishments: Jt,
|
|
1351
|
+
establishment: Wt,
|
|
1352
|
+
img: Zt,
|
|
1353
|
+
cvtheque: Xt,
|
|
1354
|
+
recruitment: Yt,
|
|
1355
|
+
recruitmentKanban: en,
|
|
1356
|
+
career: tn,
|
|
1357
|
+
careerConfig: nn,
|
|
1358
|
+
careerPreview: rn,
|
|
1359
|
+
careerWebsite: on
|
|
1356
1360
|
};
|
|
1357
1361
|
}
|
|
1358
|
-
const
|
|
1362
|
+
const Fn = "0.2.6";
|
|
1359
1363
|
export {
|
|
1360
1364
|
j as BaseLogger,
|
|
1361
|
-
|
|
1365
|
+
xn as Gmap,
|
|
1362
1366
|
$ as SDKConfig,
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
|
|
1367
|
+
L as SDKLogger,
|
|
1368
|
+
Fn as VERSION,
|
|
1369
|
+
_t as _clone,
|
|
1366
1370
|
C as _get,
|
|
1367
|
-
|
|
1371
|
+
Z as _merge,
|
|
1368
1372
|
F as _set,
|
|
1369
|
-
|
|
1370
|
-
|
|
1371
|
-
|
|
1372
|
-
|
|
1373
|
-
|
|
1374
|
-
|
|
1375
|
-
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
-
|
|
1379
|
-
|
|
1380
|
-
|
|
1381
|
-
|
|
1382
|
-
|
|
1383
|
-
|
|
1384
|
-
|
|
1385
|
-
|
|
1386
|
-
|
|
1387
|
-
|
|
1388
|
-
|
|
1389
|
-
|
|
1390
|
-
|
|
1391
|
-
|
|
1392
|
-
|
|
1393
|
-
|
|
1394
|
-
|
|
1395
|
-
|
|
1396
|
-
|
|
1373
|
+
Tn as createI18n,
|
|
1374
|
+
dn as useActivityRepository,
|
|
1375
|
+
xt as useAnalyticsHublerApplication,
|
|
1376
|
+
_n as useAnalyticsIdentify,
|
|
1377
|
+
Tt as useAnalyticsProfile,
|
|
1378
|
+
_ as useAuthentication,
|
|
1379
|
+
Dt as useAuthorization,
|
|
1380
|
+
Dn as useAuthorizationStore,
|
|
1381
|
+
On as useCanAccessEstablishmentMiddleware,
|
|
1382
|
+
mn as useCandidateRepository,
|
|
1383
|
+
fn as useCommentRepository,
|
|
1384
|
+
pn as useContractTypeRepository,
|
|
1385
|
+
hn as useCvbankRepository,
|
|
1386
|
+
yn as useCvthequeRepository,
|
|
1387
|
+
gn as useDiplomaRepository,
|
|
1388
|
+
bn as useDocumentRepository,
|
|
1389
|
+
zn as useDomainUrls,
|
|
1390
|
+
wn as useEmailHistoryRepository,
|
|
1391
|
+
Rn as useEmailRepository,
|
|
1392
|
+
An as useEmailTemplateRepository,
|
|
1393
|
+
Pn as useEstablishmentCareerRepository,
|
|
1394
|
+
J as useEstablishmentRepository,
|
|
1395
|
+
In as useFeatureFlagRepository,
|
|
1396
|
+
Ut as useI18n,
|
|
1397
|
+
vn as useJobRepository,
|
|
1398
|
+
En as useLabelRepository,
|
|
1399
|
+
jn as useLocaleTimeAgo,
|
|
1400
|
+
Sn as useOfferRepository,
|
|
1397
1401
|
y as usePrivateRequest,
|
|
1398
|
-
|
|
1399
|
-
|
|
1400
|
-
|
|
1401
|
-
|
|
1402
|
+
Nn as useQSAction,
|
|
1403
|
+
Cn as useRecruiterRepository,
|
|
1404
|
+
kn as useRecruitmentRepository,
|
|
1405
|
+
$n as useRegisterRepository,
|
|
1402
1406
|
w as useRequest,
|
|
1403
|
-
|
|
1404
|
-
|
|
1405
|
-
|
|
1407
|
+
Ln as useSpecialityRepository,
|
|
1408
|
+
Mn as useTagRepository,
|
|
1409
|
+
W as useUserRepository
|
|
1406
1410
|
};
|