@hublo/mstaff-client-sdk 0.2.74 → 0.2.76

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/dist/core.cjs +1 -1
  2. package/dist/core.js +166 -156
  3. package/package.json +1 -1
package/dist/core.cjs CHANGED
@@ -3,4 +3,4 @@
3
3
  * Copyright(c) 2012-2014 Roman Shtylman
4
4
  * Copyright(c) 2015 Douglas Christopher Wilson
5
5
  * MIT Licensed
6
- */var de=st,se=rt,it=Object.prototype.toString,B=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;function st(e,t){if(typeof e!="string")throw new TypeError("argument str must be a string");for(var i={},n=t||{},s=n.decode||ot,c=0;c<e.length;){var u=e.indexOf("=",c);if(u===-1)break;var m=e.indexOf(";",c);if(m===-1)m=e.length;else if(m<u){c=e.lastIndexOf(";",u-1)+1;continue}var l=e.slice(c,u).trim();if(i[l]===void 0){var r=e.slice(u+1,m).trim();r.charCodeAt(0)===34&&(r=r.slice(1,-1)),i[l]=ut(r,s)}c=m+1}return i}function rt(e,t,i){var n=i||{},s=n.encode||at;if(typeof s!="function")throw new TypeError("option encode is invalid");if(!B.test(e))throw new TypeError("argument name is invalid");var c=s(t);if(c&&!B.test(c))throw new TypeError("argument val is invalid");var u=e+"="+c;if(n.maxAge!=null){var m=n.maxAge-0;if(isNaN(m)||!isFinite(m))throw new TypeError("option maxAge is invalid");u+="; Max-Age="+Math.floor(m)}if(n.domain){if(!B.test(n.domain))throw new TypeError("option domain is invalid");u+="; Domain="+n.domain}if(n.path){if(!B.test(n.path))throw new TypeError("option path is invalid");u+="; Path="+n.path}if(n.expires){var l=n.expires;if(!ct(l)||isNaN(l.valueOf()))throw new TypeError("option expires is invalid");u+="; Expires="+l.toUTCString()}if(n.httpOnly&&(u+="; HttpOnly"),n.secure&&(u+="; Secure"),n.partitioned&&(u+="; Partitioned"),n.priority){var r=typeof n.priority=="string"?n.priority.toLowerCase():n.priority;switch(r){case"low":u+="; Priority=Low";break;case"medium":u+="; Priority=Medium";break;case"high":u+="; Priority=High";break;default:throw new TypeError("option priority is invalid")}}if(n.sameSite){var a=typeof n.sameSite=="string"?n.sameSite.toLowerCase():n.sameSite;switch(a){case!0:u+="; SameSite=Strict";break;case"lax":u+="; SameSite=Lax";break;case"strict":u+="; SameSite=Strict";break;case"none":u+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}}return u}function ot(e){return e.indexOf("%")!==-1?decodeURIComponent(e):e}function at(e){return encodeURIComponent(e)}function ct(e){return it.call(e)==="[object Date]"||e instanceof Date}function ut(e,t){try{return t(e)}catch{return e}}function lt(){const e=typeof global>"u"?void 0:global.TEST_HAS_DOCUMENT_COOKIE;return typeof e=="boolean"?e:typeof document=="object"&&typeof document.cookie=="string"}function dt(e){return typeof e=="string"?de(e):typeof e=="object"&&e!==null?e:{}}function K(e,t={}){const i=mt(e);if(!t.doNotParse)try{return JSON.parse(i)}catch{}return e}function mt(e){return e&&e[0]==="j"&&e[1]===":"?e.substr(2):e}class ft{constructor(t,i={}){this.changeListeners=[],this.HAS_DOCUMENT_COOKIE=!1,this.update=()=>{if(!this.HAS_DOCUMENT_COOKIE)return;const s=this.cookies;this.cookies=de(document.cookie),this._checkChanges(s)};const n=typeof document>"u"?"":document.cookie;this.cookies=dt(t||n),this.defaultSetOptions=i,this.HAS_DOCUMENT_COOKIE=lt()}_emitChange(t){for(let i=0;i<this.changeListeners.length;++i)this.changeListeners[i](t)}_checkChanges(t){new Set(Object.keys(t).concat(Object.keys(this.cookies))).forEach(n=>{t[n]!==this.cookies[n]&&this._emitChange({name:n,value:K(this.cookies[n])})})}_startPolling(){this.pollingInterval=setInterval(this.update,300)}_stopPolling(){this.pollingInterval&&clearInterval(this.pollingInterval)}get(t,i={}){return i.doNotUpdate||this.update(),K(this.cookies[t],i)}getAll(t={}){t.doNotUpdate||this.update();const i={};for(let n in this.cookies)i[n]=K(this.cookies[n],t);return i}set(t,i,n){n?n=Object.assign(Object.assign({},this.defaultSetOptions),n):n=this.defaultSetOptions;const s=typeof i=="string"?i:JSON.stringify(i);this.cookies=Object.assign(Object.assign({},this.cookies),{[t]:s}),this.HAS_DOCUMENT_COOKIE&&(document.cookie=se(t,s,n)),this._emitChange({name:t,value:i,options:n})}remove(t,i){const n=i=Object.assign(Object.assign(Object.assign({},this.defaultSetOptions),i),{expires:new Date(1970,1,1,0,0,1),maxAge:0});this.cookies=Object.assign({},this.cookies),delete this.cookies[t],this.HAS_DOCUMENT_COOKIE&&(document.cookie=se(t,"",n)),this._emitChange({name:t,value:void 0,options:i})}addChangeListener(t){this.changeListeners.push(t),this.HAS_DOCUMENT_COOKIE&&this.changeListeners.length===1&&(typeof window=="object"&&"cookieStore"in window?window.cookieStore.addEventListener("change",this.update):this._startPolling())}removeChangeListener(t){const i=this.changeListeners.indexOf(t);i>=0&&this.changeListeners.splice(i,1),this.HAS_DOCUMENT_COOKIE&&this.changeListeners.length===0&&(typeof window=="object"&&"cookieStore"in window?window.cookieStore.removeEventListener("change",this.update):this._stopPolling())}}function pt(e,{doNotParse:t=!1,autoUpdateDependencies:i=!1}={},n=new ft){const s=i?[...e||[]]:e;let c=n.getAll({doNotParse:!0});const u=L.ref(0),m=()=>{const l=n.getAll({doNotParse:!0});ht(s||null,l,c)&&u.value++,c=l};return n.addChangeListener(m),nt(()=>{n.removeChangeListener(m)}),{get:(...l)=>(i&&s&&!s.includes(l[0])&&s.push(l[0]),u.value,n.get(l[0],{doNotParse:t,...l[1]})),getAll:(...l)=>(u.value,n.getAll({doNotParse:t,...l[0]})),set:(...l)=>n.set(...l),remove:(...l)=>n.remove(...l),addChangeListener:(...l)=>n.addChangeListener(...l),removeChangeListener:(...l)=>n.removeChangeListener(...l)}}function ht(e,t,i){if(!e)return!0;for(const n of e)if(t[n]!==i[n])return!0;return!1}const yt=()=>{let e=!1;return function(t){(/(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(t)||/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(t.substr(0,4)))&&(e=!0)}(navigator.userAgent||navigator.vendor||window.opera),e},gt=()=>typeof window<"u"&&typeof window.document<"u",T=()=>typeof process<"u"&&process.versions!=null&&process.versions.node!=null,me=(e,t)=>H(e,fe(t)),H=(e,t)=>{const i={};return re(t).forEach(n=>i[n]=H(e==null?void 0:e[n],t[n])),"$item"in t&&(e==null||e.forEach((n,s)=>i[s]=H(n,t.$item))),i.$valid=(!t.$asserts||t.$asserts.every(n=>n(e)))&&re(i).every(n=>i[n].$valid),i},fe=e=>ge(Object.entries(e).reduce((t,[i,n])=>(t[`${i.replaceAll(".[]",".$item")}${i.length?".":""}$asserts`]=Array.isArray(n)?n:[n],t),{})),bt=(e,t,i)=>(e=JSON.parse(JSON.stringify(e)),te(e).forEach(s=>{const c=s.replace(/\.[0-9]+/g,".[]");O(t,`${s}.$valid`)===!1&&i[c]!==void 0&&N(e,s,i[c])}),e),re=e=>Object.keys(e).filter(t=>!t.startsWith("$")),wt=e=>typeof e=="boolean",At=e=>typeof e=="number",vt=e=>typeof e=="string",Q=e=>Array.isArray(e),j=e=>typeof e=="object"&&!Q(e)&&e!==null,Rt=e=>e instanceof Date,Pt=e=>typeof e=="function",pe=e=>e===null,he=e=>e===void 0,ye=e=>pe(e)||he(e),Et=e=>!ye(e),kt=e=>!!e,It=e=>!e,Ct=(e,t)=>Q(e)&&e.every(i=>t(i)),St=(e,t)=>j(e)&&Object.values(e).every(i=>t(i)),Ot=(e,t)=>me(e,t).$valid,O=(e,t,i)=>{const n=typeof t=="string"?t.split("."):[t];let s=e;const c=m=>m!=null,u=m=>typeof m=="object";for(const[m,l]of n.entries()){if(!c(s))return i;if(m===n.length-1)return c(s[l])?s[l]:i;if(!u(s[l]))return i;s=s[l]}return i},N=(e,t,i)=>{const n=typeof t=="string"?t.split("."):[t],s=m=>typeof m=="number"||/^\d$/g.test(m),c=m=>parseInt(m,10);let u=e;return n.forEach((m,l)=>{if(l===n.length-1)u[m]=i;else{const r=s(n[l+1])?[]:{};m=s(m)?c(m):m,u[m]=u[m]??r,u=u[m]}}),e},ge=(e,t={})=>{const i=j(e)?Object.entries(e):e;for(const[n,s]of i)N(t,n,s);return t},$t=(e,t={})=>{const i=j(e)?Object.entries(e):e;for(const[n,s]of i)N(t,n,s(t,n));return t},be=e=>{if(typeof e=="object"){if(Array.isArray(e))return[...e];if(Object(e)===e)return{...e}}return e},ee=(e,t)=>{const i={...e};for(const[n,s]of Object.entries(t))n in i&&typeof i[n]=="object"&&typeof s=="object"?i[n]=ee(i[n],s):i[n]=be(s);return i},te=(e,t=()=>!0,i="")=>{const n=[];for(const s in e){const c=e[s],u=i?`${i}.${s}`:s;t(s,u,c)&&(n.push(u),(j(c)||Q(c))&&n.push(...te(c,t,u)))}return n},Tt=e=>e.startsWith("http:")?e.replace("http:","https:"):e,Lt=(e,t=!1)=>e.startsWith("http:")||e.startsWith("https:")?e:t?`https://${e}`:`http://${e}`,we=()=>typeof window<"u"&&(window!=null&&window.location)?new URL(window.location).hostname:void 0,oe=()=>{const e=we();return!e||e==="localhost"?e:`.${e}`},Nt=()=>({path:"/"}),Mt=e=>({path:"/",domain:e,sameSite:"none",secure:!0}),W=e=>{if(!(T()||!e))return e.startsWith("localhost")?Nt():Mt(e)};function Ae(){const e=pt(),t=c=>e.get(c),i=(c,u)=>e.set(c,u,W(oe())),n=c=>{e.remove(c),e.remove(c,W(we())),e.remove(c,W(oe()))};return{getItem:t,setItem:i,removeItem:n,clear:()=>Object.keys(e.getAll()).forEach(c=>n(c))}}let z=null;function _(e={auth:"token",refresh:"refresh_token",expiration:"token_expiration_date"},t=Ae()){if(z)return z;function i(){return t.getItem(e.auth)}function n(){return t.getItem(e.refresh)}function s(){return t.getItem(e.expiration)}function c(p,h){const b=a(p);if(!b.exp)throw new Error("Invalid JWT token.");t.setItem(e.auth,p),t.setItem(e.refresh,h),t.setItem(e.expiration,((b.exp-60)*1e3).toString())}function u(){t.removeItem(e.auth),t.removeItem(e.refresh),t.removeItem(e.expiration)}function m(){return l()&&!r()}function l(){return!!i()}function r(){const p=s();return p?new Date(p)<new Date:!0}function a(p){return JSON.parse(atob(p.split(".")[1]))}function f(){return t}return z={keys:e,getAuthToken:i,getRefreshToken:n,getExpiration:s,authenticate:c,clear:u,isAuthenticated:m,hasAuth:l,isExpired:r,getStorage:f},z}function Dt(e){let t={"Content-Type":"application/json"};e&&i(e);function i(b,w=!1){return t=w?b:{...t,...b},this}function n(){return t}function s(b,w){return t[b]=w,this}function c(b){return t[b]}function u(b){return t[b]&&delete t[b],this}function m(b){return s("Authorization","Bearer "+b),this}function l(){return u("Authorization"),this}function r(){return!!c("Authorization")}function a(){return s("Content-Type","multipart/form-data"),this}function f(){return s("Content-Type","application/json"),this}function p(){return c("Content-Type")==="multipart/form-data"}function h(){return c("Content-Type")==="application/json"}return{setHeaders:i,getHeaders:n,setHeader:s,getHeader:c,removeHeader:u,setAuthorization:m,removeAuthorization:l,hasAuthorization:r,setFormData:a,setJson:f,isFormData:p,isJson:h}}function xt(e){let t=null;e&&i(e);function i(s){if(s=s.toLowerCase(),!["get","post","put","patch","delete"].includes(s))throw new Error("Invalid method.");return t=s,this}function n(){return t}return{setMethod:i,getMethod:n}}function _t(e,t,i){let n=null;i&&s(i);function s(r){if(!["post","put","patch"].includes(e.getMethod()))throw new Error("Payload can only be set for POST, PUT and PATCH requests.");return r instanceof FormData?t.setFormData():u(r)&&(r=m(r),t.setFormData()),t.isFormData()&&e.getMethod()==="put"&&(e.setMethod("post"),r.append("_method","PUT")),n=r,this}function c(){return n}function u(r){for(const a in r){const f=r[a];if(l(f))return!0;if(typeof f=="object"&&u(f))return!0}return!1}function m(r,a=null,f=0){const p=!a;p&&(a=new FormData);for(const h in r){const b=r[h];l(b)?(r[h]="<<FileIndex:"+f+">>",a.append(f,b,b.name),f++):typeof b=="object"&&(r[h]=m(r[h],a,f))}return p?(a.append("payload",JSON.stringify(r)),a):r}function l(r){return typeof File<"u"&&r instanceof File||typeof Blob<"u"&&r instanceof Blob}return{setPayload:s,getPayload:c}}const k=class k{constructor(t={}){C(this,"level",3);C(this,"logger");C(this,"prefix");this.logger=t.logger||console,this.prefix=t.prefix||""}setLevel(t){this.level=t}debug(...t){this.level<=k.LEVEL_DEBUG&&U(this.logger.debug,this.prefix,t)}info(...t){this.level<=k.LEVEL_INFO&&U(this.logger.info,this.prefix,t)}warn(...t){this.level<=k.LEVEL_WARN&&U(this.logger.warn,this.prefix,t)}error(...t){this.level<=k.LEVEL_ERROR&&U(this.logger.error,this.prefix,t)}};C(k,"LEVEL_DEBUG",0),C(k,"LEVEL_INFO",1),C(k,"LEVEL_WARN",2),C(k,"LEVEL_ERROR",3),C(k,"LEVEL_OFF",4);let q=k;const U=(e,t,i)=>{t?e(t,...i):e(...i)},A=new q({prefix:"[SDK]"});let ve=null,Re=null,Pe=null,Ee="/",ke=null;const jt=()=>ve,Bt=e=>{if(A.info("[Config] Environment:",e),!e)throw new Error("Invalid environment.");ve=e},zt=()=>Re,Ut=e=>{if(A.info("[Config] API Host:",e),!e)throw new Error("Invalid API host.");Re=e},Vt=()=>ke,Ft=e=>{ke=e},Ht=()=>Pe,qt=e=>{if(A.info("[Config] Main App Host:",e),!e)throw new Error("Invalid main app host.");Pe=e},Qt=e=>{A.info("[Config] Base Assets Urls:",e),Ee=e},Gt=()=>Ee,$={getEnvironment:jt,getApiHost:zt,getErrorHandler:Vt,setEnvironment:Bt,setApiHost:Ut,setErrorHandler:Ft,getMainAppHost:Ht,setMainAppHost:qt,setBaseAssetsUrl:Qt,getBaseAssetsUrl:Gt};function Kt(e){const t=$.getApiHost().replace(/\/$/g,"");let i=null,n={},s={};e&&m(e);function c(){return t+l()+h()}function u(){return l(!0,!0)}function m(d){return i="/"+d.replace(/^\//g,""),this}function l(d=!0,P=!1){return d?i.replace(/:(\w+)/g,(E,I)=>P?"*":s[I]||":"+I):i}function r(d){return n=d,this}function a(d,P){return n[d]=P,this}function f(d){return n[d]&&delete n[d],this}function p(){return Object.keys(n).length>0}function h(d=!0){if(!p())return"";let P="";for(const E in n)if(Array.isArray(n[E]))for(const I of n[E])P+=(P.length?"&":"")+`${E}[]=`+I;else P+=(P.length?"&":"")+E+"="+n[E];return(d?"?":"")+P}function b(d){return s=d,this}function w(d,P){return s[d]=P,this}function S(d){return s[d]&&delete s[d],this}return{setPath:m,getPath:l,getUri:c,getMockUri:u,setQueryParams:r,setQueryParam:a,removeQueryParam:f,hasQuery:p,getQueryString:h,setRouteParams:b,setRouteParam:w,removeRouteParam:S}}function Wt(e){let t=[];function i(){return t=r(arguments),u(),this}function n(){return t.length>0}function s(a){return t.includes(a.trim())?this:(t.push(a.trim()),u(),this)}function c(a){const f=t.indexOf(a.trim());return f===-1?this:(t.splice(f,1),u(),this)}function u(){t.length?e.setQueryParam("groups",l(t)):e.removeQueryParam("groups")}function m(a){return a.split(",").map(f=>f.trim())}function l(a){return a.join(",")}function r(a){let f=[];return a.length===1?typeof a[0]=="string"?f=m(a[0]):Array.isArray(a[0])&&(f=a[0]):f=Array.from(a),f}return{setGroups:i,hasGroups:n,addGroup:s,removeGroup:c}}function Jt(e){let t=!1,i=!1,n=1,s=10;function c(){return t=!0,u(),this}function u(){i=!0;const h=p(arguments);return r(h.page||1,!1),a(h.perPage||s,!1),f(),this}function m(){return i=!1,f(),this}function l(){return i}function r(h,b=!0){return t=!0,i=!0,n=h,b&&f(),this}function a(h,b=!0){return t=!0,i=!0,s=h,b&&f(),this}function f(){t?l()?(e.removeQueryParam("pagination"),e.setQueryParam("page",n),e.setQueryParam("nbResultPerPage",s)):(e.removeQueryParam("page"),e.removeQueryParam("nbResultPerPage"),e.setQueryParam("pagination","false")):(e.removeQueryParam("page"),e.removeQueryParam("nbResultPerPage"),e.removeQueryParam("pagination"))}function p(h){if(h.length===1&&typeof h[0]=="object")return h[0];const b={};return h.length>=1&&(b.page=h[0]),h.length>=2&&(b.perPage=h[1]),b}return{isList:c,paginate:u,disablePagination:m,hasPagination:l,setPage:r,setPerPage:a}}function Zt(e){let t=!1,i="id",n="ASC";function s(){t=!0;const a=r(arguments);return a.orderBy&&u(a.orderBy,!1),a.orderDir&&m(a.orderDir,!1),l(),this}function c(){return t}function u(a,f=!0){return t=!0,i=a,f&&l(),this}function m(a,f=!0){if(a=a.toUpperCase(),["ASC","DESC"].indexOf(a)===-1)throw new Error("Invalid order direction");return t=!0,n=a,f&&l(),this}function l(){c()&&(e.setQueryParam("orderBy",i),e.setQueryParam("orderDirection",n))}function r(a){if(a.length===1&&typeof a[0]=="object")return a[0];const f={};return a.length>=1&&(f.orderBy=a[0]),a.length>=2&&(f.orderDir=a[1]),f}return{setOrder:s,hasOrder:c,setOrderBy:u,setOrderDir:m}}function Xt(){let e=!1;function t(){return e=!0,this}function i(){return e}return{setSilent:t,isSilent:i}}function Yt(){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 i(){return e}return{setResponseType:t,getResponseType:i}}function en(e){function t(){return e}function i(){return e.data}function n(){return e.data}return{getResponse:t,getData:i,getPayload:n}}function tn(e,t=!1){let i=!1,n=!1;return e.response?(i=!0,n=!0):e.request&&(i=!0),!t&&$.getErrorHandler()&&$.getErrorHandler()(e),{sent:i,responded:n,error:e}}function nn(e){function t(){return e}function i(){return e.data}function n(){return e.data}function s(){return e.data["@type"]==="hydra:Collection"}function c(){return s()?e.data["hydra:member"]:null}function u(){return s()?e.data["hydra:totalItems"]:null}function m(){return s()?e.data["hydra:view"]&&e.data["hydra:view"]["hydra:last"]:!1}function l(){return!s()||!m()?null:parseInt(e.data["hydra:view"]["@id"].match(/page=(\d+)/)[1])}function r(){return!s()||!m()?null:parseInt(e.data["hydra:view"]["hydra:last"].match(/page=(\d+)/)[1])}return{getResponse:t,getData:i,getPayload:n,isCollection:s,getCollection:c,getTotal:u,hasPagination:m,getPage:l,getPages:r}}function sn(e,t,i,n,s,c){async function u(){const l=i.getMethod(),r=t.getUri(),a=e.getHeaders(),f=n.getPayload(),p=[r];["post","put","patch"].includes(l)&&p.push(f||{}),p.push({headers:a,responseType:c.getResponseType()}),A.info("[Request] Sending request:",`[${l.toUpperCase()}]`,r);try{const h=await Ye[l](...p);return m(h)}catch(h){throw tn(h,s.isSilent())}}function m(l){if(l.headers){const r=Object.keys(l.headers),a=r.map(f=>f.toLowerCase()).indexOf("content-type");if(a!==-1&&l.headers[r[a]].includes("application/ld+json"))return nn(l)}return en(l)}return{send:u}}function R(e,t="get",i=null){const n=Dt(),s=Kt(e),c=xt(t),u=_t(c,n,i),m=Wt(s),l=Jt(s),r=Zt(s),a=Xt(),f=Yt(),p=sn(n,s,c,u,a,f);return{...n,...s,...c,...u,...m,...l,...r,...a,...f,...p}}function y(e,t="get",i=null){const n=R(e,t,i),s=_();s.isAuthenticated()&&n.setAuthorization(s.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 rn=(e,t)=>y("/v2/activity/candidate/:candidateId/establishment/:establishmentId").setRouteParams({candidateId:e,establishmentId:t}),on=()=>({listByCandidateAndEstablishment:rn}),an=(e,t,i)=>y("/candidate/:candidateId/share/establishment/:establishmentId").setMethod("post").setRouteParams({candidateId:e,establishmentId:t}).setPayload(i),cn=(e,t)=>y("/candidate/:candidateId/archive/establishment/:establishmentId").setRouteParams({candidateId:e,establishmentId:t}),un=(e,t)=>y("/candidate/:candidateId/archive/establishment/:establishmentId").setMethod("post").setRouteParams({candidateId:e,establishmentId:t}),ln=(e,t)=>y("/candidate/:candidateId/archive/establishment/:establishmentId").setMethod("delete").setRouteParams({candidateId:e,establishmentId:t}),dn=(e,t)=>y("/v2/candidates/lookup").setQueryParam("email",e).setQueryParam("establishment-id",t),mn=(e,t)=>y("/v2/candidates").setMethod("post").setQueryParam("establishment-id",e).setPayload(t),fn=(e,t,i)=>y("/v2/candidates/:candidateId").setQueryParam("establishment-id",t).setRouteParams({candidateId:e}).setMethod("put").setPayload(i),pn=e=>y("/candidate/register/close/:registrationToken").setMethod("post").setRouteParams({registrationToken:e}),hn=e=>y("/candidate/register/open").setMethod("post").setQueryParam("groups","register:token").setPayload(e),yn=(e,t)=>y("/establishment/:establishmentId:/candidate/invitation").setRouteParams({establishmentId:e}).setMethod("post").setPayload(t),gn=()=>({share:an,isArchived:cn,archive:un,unarchive:ln,lookupCandidate:dn,createCandidate:mn,updateCandidate:fn,closeIncompleteRegistration:pn,openNewRegistration:hn,updateInvitation:yn}),bn=(e,t)=>y("/comment/establishment/:establishmentId/candidate/:userId").setRouteParams({establishmentId:e,userId:t}),wn=(e,t,i)=>y("/comment/establishment/:establishmentId/candidate/:userId").setRouteParams({establishmentId:e,userId:t}).setMethod("post").setPayload(i),An=(e,t)=>y("/comment/:commentId").setRouteParams({commentId:e}).setMethod("put").setPayload(t),vn=e=>y("/comment/:commentId").setRouteParams({commentId:e}).setMethod("delete"),Rn=()=>({getForEstablishmentCandidate:bn,postForEstablishmentCandidate:wn,update:An,remove:vn}),Pn=()=>R("contractType").isList().addGroup("Term:id").addGroup("Term:name"),En=(e,t=!0)=>y("contractType/establishment/:establishmentId").isList().setRouteParams({establishmentId:e}).setQueryParam("all",t).addGroup("Term:id").addGroup("Term:name"),kn=()=>({list:Pn,listByEstablishment:En}),In=e=>y("/v2/talents").isList().setQueryParam("establishment-id",e),Cn=e=>y("/v2/talent/mark-as-seen/:talentId").setRouteParams({talentId:e}).setMethod("post"),Sn=()=>({list:In,markAsSeen:Cn}),On=(e,t,i)=>y("/cvtheque/establishment/:establishmentId/candidate/:candidateId/label/synchronize").setRouteParams({establishmentId:e,candidateId:t}).setMethod("post").setPayload(i),$n=()=>({syncCandidateLabels:On}),Tn=()=>R("diploma").isList().addGroup("Term:id").addGroup("Term:name"),Ln=()=>({list:Tn}),Nn=e=>y("document/candidate/:candidateId").setRouteParams({candidateId:e}).isList().disablePagination(),Mn=(e,t)=>y("document/candidate/:candidateId/establishment/:establishmentId/recruiter").setRouteParams({candidateId:e,establishmentId:t}).isList().disablePagination(),Dn=(e,t)=>y("document/candidate/:candidateId/establishment/:establishmentId/candidate").setRouteParams({candidateId:e,establishmentId:t}).isList().disablePagination(),xn=e=>y("document/recruiter").setMethod("post").setPayload(e),_n=e=>y("document/:documentId").setRouteParams({documentId:e}).setMethod("delete"),jn=()=>({listByCandidate:Nn,listByCandidateAndEstablishmentFromRecruiter:Mn,listByCandidateAndEstablishmentFromCandidate:Dn,addFromRecruiter:xn,remove:_n}),Bn=(e,t)=>y("/v2/establishments/:establishmentId/email-history").setRouteParams({establishmentId:t}).setQueryParam("receiverId",e).isList().disablePagination(),zn=()=>({listByCandidateAndEstablishment:Bn}),Un=(e,t)=>y("/email/candidate/:candidateId").setMethod("post").setRouteParams({candidateId:e}).setPayload(t),Vn=(e,t)=>y("/v2/emails/send").setMethod("post").setPayload({recipientIds:e,...t}),Fn=()=>({sendToCandidate:Un,sendToRecipients:Vn}),Hn=(e,t=!0)=>{const i=y("/v2/establishments/:establishmentId/email-templates").setRouteParams({establishmentId:e}).isList().disablePagination();return t&&i.setQueryParam("global",!0),i},qn=()=>y("/v2/self/email-templates").isList().disablePagination(),Qn=()=>({listByEstablishment:Hn,listSelf:qn}),Gn=(e,t)=>y("establishment-career/:establishmentId/:versionId").setRouteParams({establishmentId:e,versionId:t}),Kn=(e,t="published")=>y("establishment-career/:establishmentId/state/:state").setRouteParams({establishmentId:e,state:t}),Wn=(e,t,i=null)=>{const n=i!==null?y("establishment-career/:establishmentId/:versionId").setRouteParams({establishmentId:e,versionId:i}):y("establishment-career/:establishmentId").setRouteParams({establishmentId:e});return n.setMethod("post").setPayload(t),n},Jn=(e,t)=>y("establishment-career/:establishmentId/logo-banner").setMethod("post").setRouteParams({establishmentId:e}).setPayload(t),Zn=(e,t,i)=>y("establishment-career/:establishmentId/publish/:versionId").setMethod("post").setRouteParams({establishmentId:e,versionId:t}).setPayload(i),Xn=()=>({readById:Gn,readByState:Kn,upsert:Wn,uploadLogoAndBanner:Jn,publish:Zn}),Yn=e=>R("establishment/:establishmentId").setRouteParams({establishmentId:e}),ei=e=>y("establishment/:establishmentId/authorizations").setRouteParams({establishmentId:e}),ne=()=>({read:Yn,authorizations:ei}),ti=e=>R("feature-flag/maintenance").setMethod("post").setPayload(e),ni=(e,t)=>R("feature-flag/establishment").setMethod("post").setPayload({establishment:e,flagName:t}),ii=()=>({maintenanceModeEnabled:ti,forEstablishment:ni}),si=()=>R("job").isList().addGroup("Term:id").addGroup("Term:name"),ri=(e,t=!0)=>y("job/establishment/:establishmentId").isList().setRouteParams({establishmentId:e}).setQueryParam("all",t).addGroup("Term:id").addGroup("Term:name"),oi=()=>({list:si,listByEstablishment:ri}),ai=e=>y("/label/establishment/:establishmentId").isList().setRouteParams({establishmentId:e}),ci=(e,t)=>y("/label/establishment/:establishmentId").setMethod("post").setRouteParams({establishmentId:e}).setPayload(t),ui=(e,t)=>y("/label/:labelId").setMethod("put").setRouteParams({labelId:e}).setPayload(t),li=e=>y("/label/:labelId").setMethod("delete").setRouteParams({labelId:e}),di=(e,t,i)=>y("/label/establishment/:establishmentId/candidate/:candidateId/synchronize").setMethod("post").setPayload(i).setRouteParams({establishmentId:e,candidateId:t}),mi=()=>({listByEstablishment:ai,addToEstablishment:ci,update:ui,remove:li,syncForCandidate:di}),fi=e=>R("offer/:offerId").setRouteParams({offerId:e}),pi=()=>({read:fi}),hi=(e,t=!1)=>{const i=y("/recruiter/establishment/:establishmentId").isList().setRouteParams({establishmentId:e});return t&&i.setQueryParam("exclude-me",1),i},yi=()=>({listByEstablishment:hi}),gi=e=>y("/recruitment/:recruitmentId").setRouteParams({recruitmentId:e}),bi=e=>y("/recruitment/mine/establishment/:establishmentId").isList().setRouteParams({establishmentId:e}),wi=(e,t)=>y("/recruitment/mine/establishment/:establishmentId/has-not/candidate/:candidateId").isList().setRouteParams({establishmentId:e,candidateId:t}),Ai=(e,t)=>y("/recruitment/mine/establishment/:establishmentId/has/candidate/:candidateId").isList().setRouteParams({establishmentId:e,candidateId:t}),vi=(e,t)=>y("/recruitment/establishment/:establishmentId/has/candidate/:candidateId").isList().setRouteParams({establishmentId:e,candidateId:t}),Ri=(e,t)=>y("/recruitment/:recruitmentId/candidate").setMethod("put").setRouteParams({recruitmentId:e}).setPayload(t),Pi=(e,t)=>y("/recruitment/:recruitmentId/candidate/:candidateId").setMethod("delete").setRouteParams({recruitmentId:e,candidateId:t}),Ei=()=>({read:gi,mineByEstablishment:bi,mineWithoutCandidate:wi,mineWithCandidate:Ai,withCandidate:vi,addCandidates:Ri,removeCandidate:Pi}),ki=(e,t,i,n=null)=>{const s=R("candidate/register/open").setMethod("post"),c={email:e};return t==="establishment"&&(c.establishmentId=i),t==="offer"&&(c.offerId=i),n&&(c.referer=n),s.setPayload(c),s},Ii=(e,t)=>R("candidate/register/update/:token").setMethod("post").setRouteParams({token:e}).setPayload(t),Ci=e=>R("candidate/register/read/:token").setRouteParams({token:e}),Si=e=>R("candidate/register/close/:token").setMethod("post").setRouteParams({token:e}),Oi=()=>({open:ki,update:Ii,read:Ci,close:Si}),$i=(e,t)=>y("/v2/registrations/lookup").setQueryParam("candidate-id",e).setQueryParam("establishment-id",t),Ti=()=>({lookupEstablishment:$i}),Li=()=>R("speciality").isList().addGroup("Term:id").addGroup("Term:name"),Ni=(e,t=!0)=>y("speciality/establishment/:establishmentId").isList().setRouteParams({establishmentId:e}).setQueryParam("all",t).addGroup("Term:id").addGroup("Term:name"),Mi=()=>({list:Li,listByEstablishment:Ni}),Di=e=>y("/tag/public/establishment/:establishmentId").isList().setRouteParams({establishmentId:e}),xi=()=>({listByEstablishment:Di}),_i=(e,t)=>y("/v2/talents/lookup").setQueryParam("candidate-id",e).setQueryParam("establishment-id",t),ji=e=>y("/v2/talents/index").setMethod("post").setPayload(e),Bi=()=>({lookupTalent:_i,addCandidateToTalentPool:ji}),zi=e=>R("user/email/isset/:email").setRouteParams({email:e}),Ui=()=>y("user/self").addGroup("user:self"),Vi=e=>y("/user/:uuid").setRouteParams({uuid:e}),Fi=e=>R("/user/:uuid").setRouteParams({uuid:e}),Hi=e=>y("/user/:id/uuid").setRouteParams({id:e}),ie=()=>({emailExists:zi,self:Ui,byUuidPrivate:Vi,byUuid:Fi,fetchUuid:Hi});let V;function Ie(){if(V)return V;const e={user:void 0,roles:[],establishments:{}},t=async()=>{if(!_().isAuthenticated())throw new Error("::SDK Authorization:: User not authenticated");const r=(await ie().self().send()).getData();e.user={id:r.id,email:r.email,firstName:r.firstName,lastName:r.lastName,avatar:r.avatar},e.roles=r.roles},i=async r=>{if(!_().isAuthenticated())throw new Error("::SDK Authorization:: User not authenticated");e.establishments[r]=(await ne().authorizations(r).send()).getData()},n=r=>{if(e.user===void 0)throw new Error("::SDK Authorization:: User not fetched");return e.roles.includes(r)};return V={fetchSelf:t,fetchPermission:i,hasRole:n,hasRoleRH:()=>n("ROLE_RH"),hasRoleCandidate:()=>n("ROLE_CANDIDATE"),hasRoleAdmin:()=>n("ROLE_ADMIN"),hasPermission:(r,...a)=>{const f=e.establishments[r];if(f===void 0)throw new Error(`::SDK Authorization:: Permissions not fetched for establishment ${r}`);return a.every(p=>f[p]===!0)},clear:()=>{e.user=void 0,e.roles=[],e.establishments={}}},V}async function qi(e,...t){if(!_().isAuthenticated())throw"ERR_NOT_AUTHENTICATED";const n=Ie();await Promise.all([n.fetchSelf(),n.fetchPermission(e)]);for(let s=0;s<t.length;s++){const c=t[s];if(!n.hasPermission(e,c))throw"ERR_MISSING_PERMISSION"}}const Qi=et.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 ie().self().send();this.user=t.getData()}},async fetchPermission(e,t){if(!this.establishments[e]||t){const i=await ne().authorizations(e).send();this.establishments[e]=i.getData()}},hasPermission(e,...t){const i=this.establishments[e];return i===void 0?!1:t.every(n=>i[n]===!0)}}});let D=null;function g(){if(D)return D;const e=$.getEnvironment(),t=(()=>e==="prod"||e==="production"?"pPROC7dPoJ7XdxHrwsTQNXCGX79MJjhp":e==="staging"?"823rqOTwVk1ZCWVyBAdLInZ77TcFF0CF":"TMZX6evFnu87JrBHV5qLwHsld5C6hilZ")(),i=!!t,n=e!=="prod"&&e!=="production";let s=null;function c(){return i}function u(){const p=window.analytics=window.analytics||[];if(!p.initialize&&p.invoked)A.error("Segment snippet included twice.");else{p.invoked=!0,p.methods=["trackSubmit","trackClick","trackLink","trackForm","pageview","identify","reset","group","track","ready","alias","debug","page","once","off","on","addSourceMiddleware","addIntegrationMiddleware","setAnonymousId","addDestinationMiddleware"],p.factory=function(h){return function(){if(window.analytics.initialized)return window.analytics[h].apply(window.analytics,arguments);const b=Array.prototype.slice.call(arguments);return b.unshift(h),p.push(b),p}};for(let h=0;h<p.methods.length;h++){const b=p.methods[h];p[b]=p.factory(b)}p.load=function(h,b){const w=document.createElement("script");w.id="analytics-script",w.type="text/javascript",w.async=!0,w.src="https://cdn.segment.com/analytics.js/v1/"+h+"/analytics.min.js",w.onerror=()=>window.dispatchEvent(new Event("analytics-error"));const S=document.getElementsByTagName("script")[0];S.parentNode.insertBefore(w,S),p._loadOptions=b},p._writeKey=t,p.SNIPPET_VERSION="4.16.1",p.load(t),p.page(),p.ready(()=>window.dispatchEvent(new Event("analytics-ready")))}}async function m(){return s!==null||(s=new Promise((p,h)=>{if(!c())return f("Analytics is disabled."),p();if(window.addEventListener("analytics-ready",()=>{f("Analytics script loaded successfully."),p()}),window.addEventListener("analytics-error",()=>{f("Analytics script failed to load. Consider disabling your AdBlocker.",null,"error"),h()}),f("Loading Analytics script."),window.analytics)return p();u()})),s}async function l(p,h){if(!T())try{if(await this.analyticsScriptReady(),f("[identify]",[p,h]),c())return window.analytics.identify(p,h)}catch{f("[identify]",[p,h],"error")}}async function r(p,h,b){if(!T()){typeof b!="object"&&(b={});try{if(await this.analyticsScriptReady(),f("[page]",[p,h,b]),c())return window.analytics.page(p,{category:h,...b})}catch(w){console.log(w),f("[page]",[p,h,b],"error")}}}async function a(p,h,b){if(!T()){typeof b!="object"&&(b={});try{if(await this.analyticsScriptReady(),f("[track]",[p,h,b]),c())return window.analytics.track(p,{category:h,...b})}catch{f("[track]",[p,h,b],"error")}}}function f(p,h=[],b="info"){h||(h=[]),n&&A[b](`::SDK Analytics:: ${p}`,...h)}return D={analyticsScriptReady:m,isEnabled:c,identify:l,page:r,track:a,consoleMessage:f},D}g.destroy=()=>D=null;function Ce(){const e="Hubler Application";function t(r){if(!r)throw new Error(`Missing arguments for domain "${e}"`);const a=!!r.offerId;if(a&&!r.recruitmentId)throw new Error(`Missing argument "recruitmentId" for domain "${e}"`);return{companyId:r.establishmentId?r.establishmentId.toString():null,jobOfferId:a?r.offerId.toString():null,recruitmentId:a?r.recruitmentId.toString():null,selections:[a?"Application":"Spontaneous Application"]}}async function i(r){return g().page("Application Authentication Viewed",e,t(r))}async function n(r){return g().page("Application Magic Link Viewed",e,t(r))}async function s(r){return g().page("Application Job Viewed",e,t(r))}async function c(r){return g().page("Application Information Viewed",e,t(r))}async function u(r){return g().page("Application Document Viewed",e,t(r))}async function m(r){return g().page("Application Success Viewed",e,t(r))}async function l(r){if(!r.error)throw new Error(`Missing argument "error" for domain "${e}", event "Application Form Failed"`);return g().track("Application Form Failed",e,{...t(r),error:r.error})}return{applicationAuthenticationViewed:i,applicationMagicLinkViewed:n,applicationJobViewed:s,applicationInformationViewed:c,applicationDocumentViewed:u,applicationSuccessViewed:m,applicationFormFailed:l}}function Se(){const e="Profile";function t(d,P){var I;if(!d)throw new Error(`Missing arguments for domain "${e}"`);const E={companyId:d.companyId?d.companyId.toString():null,hublerId:(I=d.hublerId)==null?void 0:I.toString()};return P&&(E.productId=d.companyId?d.companyId+"_2":null),d.recruitmentId&&(E.recruitmentId=d.recruitmentId.toString()),d.selections&&(E.selections=d.selections),d.institutionId&&(E.institutionId=d.institutionId.map(String)),E}async function i(d){return g().track(d.name,e,t(d.properties),!0)}async function n(d){return g().track(d.name,e,t(d.properties,!0))}async function s(d){return g().track(d.name,e,t(d.properties,!0))}async function c(d){return g().track(d.name,e,t(d.properties,!0))}async function u(d){return g().track(d.name,e,t(d.properties,!0))}async function m(d){return g().track(d.name,e,t(d.properties,!0))}async function l(d){return g().track(d.name,e,t(d.properties,!0))}async function r(d){return g().track(d.name,e,t(d.properties,!0))}async function a(d){return g().track(d.name,e,t(d.properties,!0))}async function f(d){return g().track(d.name,e,t(d.properties,!0))}async function p(d){return g().track(d.name,e,t(d.properties,!0))}async function h(d){return g().track(d.name,e,t(d.properties,!0))}async function b(d){return g().track(d.name,e,t(d.properties,!0))}async function w(d){return g().page(d.name,d.properties.category,t(d.properties,!1))}async function S(d){return g().track(d.name,e,t(d.properties,!1))}return{profileDocumentDeleted:i,profileLabelAdded:n,profileLabelRemoved:s,profileShared:c,profileArchived:u,profileCandidateAdded:m,profileCommentAdded:l,profileDocumentAdded:r,profileDocumentDownloaded:a,profileDocumentRequested:f,profileRecruitmentAdded:p,profileRecruitmentRemoved:h,profileTabSelected:b,profileViewed:w,profileEmailSent:S}}function Oe(){const e="Recruitment";function t(n){if(!n)throw new Error(`Missing arguments for domain "${e}"`);const s={companyId:n.companyId?n.companyId.toString():null};return n.institutionId&&(s.institutionId=[n.institutionId.toString()]),n.origin&&(s.origin=n.origin.toString()),s}async function i(n){return g().track(n.name,e,{...t(n),recruitmentId:n.recruitmentId.toString(),count:parseInt(n.count)})}return{candidateAdded:i}}function $e(){const e="Visual Builder";function t(o,Je){if(!o)throw new Error(`Missing arguments for domain "${e}"`);const M={companyId:o.companyId?o.companyId.toString():null};return Je&&(M.productId=o.companyId?o.companyId+"_2":null),o.selections&&(M.selections=o.selections),o.error&&(M.error=o.error),o.institutionId&&(M.institutionId=[o.institutionId.toString()]),M}async function i(o){return g().page(o.name,e,t(o.properties,!0))}async function n(o){return g().track(o.name,e,t(o.properties),!0)}async function s(o){return g().track(o.name,e,t(o.properties,!0))}async function c(o){return g().page(o.name,e,t(o.properties,!0))}async function u(o){return g().page(o.name,e,t(o.properties,!0))}async function m(o){return g().track(o.name,e,t(o.properties,!0))}async function l(o){return g().page(o.name,e,t(o.properties,!0))}async function r(o){return g().page(o.name,e,t(o.properties,!0))}async function a(o){return g().page(o.name,e,t(o.properties,!0))}async function f(o){return g().track(o.name,e,t(o.properties,!0))}async function p(o){return g().page(o.name,e,t(o.properties,!0))}async function h(o){return g().page(o.name,e,t(o.properties,!0))}async function b(o){return g().track(o.name,e,t(o.properties,!0))}async function w(o){return g().track(o.name,e,t(o.properties,!0))}async function S(o){return g().page(o.name,e,t(o.properties,!0))}async function d(o){return g().page(o.name,e,t(o.properties,!0))}async function P(o){return g().page(o.name,e,t(o.properties,!0))}async function E(o){return g().page(o.name,e,t(o.properties,!0))}async function I(o){return g().page(o.name,e,t(o.properties,!1))}async function xe(o){return g().track(o.name,e,t(o.properties,!0))}async function _e(o){return g().track(o.name,e,t(o.properties,!0))}async function je(o){return g().track(o.name,e,t(o.properties,!0))}async function Be(o){return g().track(o.name,e,t(o.properties,!0))}async function ze(o){return g().track(o.name,e,t(o.properties,!0))}async function Ue(o){return g().track(o.name,e,t(o.properties,!0))}async function Ve(o){return g().track(o.name,e,t(o.properties,!0))}async function Fe(o){return g().track(o.name,e,t(o.properties,!0))}async function He(o){return g().track(o.name,e,t(o.properties,!0))}async function qe(o){return g().track(o.name,e,t(o.properties,!0))}async function Qe(o){return g().track(o.name,e,t(o.properties,!0))}async function Ge(o){return g().track(o.name,e,t(o.properties,!0))}async function Ke(o){return g().track(o.name,e,t(o.properties,!0))}async function We(o){return g().page(o.name,e,t(o.properties,!1))}return{careerSitePreviewViewed:i,careerSitePublished:n,setupBenefitCustomAdded:s,setupBenefitViewed:c,setupCandidateInformationViewed:u,setupContactAdded:m,setupContactViewed:l,setupEditionDoneViewed:r,setupExternalLinkViewed:a,setupImageUploaded:f,setupImageViewed:p,setupLocationViewed:h,setupPresentationContentAdded:b,setupPresentationNewTabAdded:w,setupPresentationViewed:S,setupSettingsDoneViewed:d,setupSocialNetworkViewed:P,setupThemeViewed:E,visualBuilderViewed:I,setupImageUploadFailed:xe,fastCopyLinkClicked:_e,setupBenefitCustomDeleted:je,setupBenefitCustomEdited:Be,setupContactDeleted:ze,setupContactEdited:Ue,setupContactNewClicked:Ve,setupPresentationContentDeleted:Fe,setupPresentationContentDuplicated:He,setupPresentationContentMoved:qe,setupPresentationTabDeleted:Qe,setupPresentationTabEdited:Ge,setupPresentationTabMoved:Ke,setupSEOViewed:We}}const ae=Object.freeze(Object.defineProperty({__proto__:null,useAnalyticsHublerApplication:Ce,useAnalyticsProfile:Se,useAnalyticsRecruitment:Oe,useAnalyticsVisualBuilder:$e},Symbol.toStringTag,{value:"Module"}));function Gi(){function e(i){return g().identify(i.id,{email:i.email,firstName:i.firstname,lastName:i.lastname,createdAt:i.createdAt,type:"Hubler",lang:"fr",medium:t()?"MOBILE_DEVICE":"WEB_BROWSER"})}function t(){let i=!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)))&&(i=!0)}(navigator.userAgent||navigator.vendor||window.opera),i}return{identifyCandidate:e}}let F=null;const Ki=async(e,t)=>{try{return await G(),A.info("[identify]",[e,t]),window.analytics.identify(e,t)}catch{A.error("[identify]",[e,t])}},Wi=async(e,t,i)=>{typeof i!="object"&&(i={});try{return await G(),A.info("[page]",[e,t,i]),window.analytics.page(e,{category:t,...i})}catch{A.error("[page]",[e,t,i])}},Ji=async(e,t,i)=>{typeof i!="object"&&(i={});try{return await G(),A.info("[track]",[e,t,i]),window.analytics.track(e,{category:t,...i})}catch{A.error("[track]",[e,t,i])}},Z=()=>{const e=$.getEnvironment();return e==="prod"||e==="production"?"pPROC7dPoJ7XdxHrwsTQNXCGX79MJjhp":e==="staging"?"823rqOTwVk1ZCWVyBAdLInZ77TcFF0CF":"TMZX6evFnu87JrBHV5qLwHsld5C6hilZ"},Te=()=>{const e=window.analytics=window.analytics||[];if(!e.initialize&&e.invoked)A.error("Segment snippet included twice.");else{e.invoked=!0,e.methods=["trackSubmit","trackClick","trackLink","trackForm","pageview","identify","reset","group","track","ready","alias","debug","page","once","off","on","addSourceMiddleware","addIntegrationMiddleware","setAnonymousId","addDestinationMiddleware"],e.factory=function(t){return function(){if(window.analytics.initialized)return window.analytics[t].apply(window.analytics,arguments);const i=Array.prototype.slice.call(arguments);return i.unshift(t),e.push(i),e}};for(let t=0;t<e.methods.length;t++){const i=e.methods[t];e[i]=e.factory(i)}e.load=function(t,i){const n=document.createElement("script");n.id="analytics-script",n.type="text/javascript",n.async=!0,n.src="https://cdn.segment.com/analytics.js/v1/"+t+"/analytics.min.js",n.onerror=()=>window.dispatchEvent(new Event("analytics-error"));const s=document.getElementsByTagName("script")[0];s.parentNode.insertBefore(n,s),e._loadOptions=i},e._writeKey=Z(),e.SNIPPET_VERSION="4.16.1",e.load(Z()),e.page(),e.ready(()=>window.dispatchEvent(new Event("analytics-ready")))}},G=()=>(F!==null||(F=new Promise((e,t)=>{if(window.addEventListener("analytics-ready",()=>{A.info("Analytics script loaded successfully."),e()}),window.addEventListener("analytics-error",()=>{A.error("Analytics script failed to load. Consider disabling your AdBlocker."),t()}),A.info("Loading Analytics script."),window.analytics)return e();Te()})),F),Zi={key:Z,appendScript:Te,ready:G,identify:Ki,page:Wi,track:Ji},Xi="AIzaSyDicyRD6rvVdnicp1tgV0ElazASNGbyyTs";let Le=!1;const Ne=()=>new Promise(e=>{T()||Le||window.google&&window.google.maps?e():(window.addEventListener("gmap-ready",()=>e()),ts())}),Yi=(e,t)=>Ne().then(()=>{T()||es(e,t)}),es=(e,t)=>{const i=new window.google.maps.places.Autocomplete(e,{componentRestrictions:{country:["fr","re","yt","gp","mq"]}});window.google.maps.event.addListener(i,"place_changed",()=>{const n=i.getPlace();n.formatted_address&&t&&t(n.formatted_address,n)})},ts=()=>{window.onGmapScriptReady=()=>{};const e=document.createElement("script");e.src="https://maps.googleapis.com/maps/api/js?key="+Xi+"&libraries=places&callback=onGmapScriptReady",e.async=!0,e.defer=!0,e.onload=()=>window.dispatchEvent(new Event("gmap-ready")),document.body.appendChild(e),Le=!0},ns={scriptReady:Ne,autocompleteInput:Yi},is={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"}},ss={fr:is};let X=null;const Me=()=>X,rs=(e={})=>{let t=e.locale||"fr";const i=l=>t=l,n=()=>t,s=ee(ss,(e==null?void 0:e.messages)||{}),c=(l,r)=>{const a=O(s,`${t}.${l}`);return a?r?os(a,r):a:l},u=(l,r)=>{const a=O(s,`${t}.${l}`);return a?as(a,r):l};return X={t:c,tNode:u,setLocale:i,getLocale:n,install:l=>{l.config.globalProperties.$t=c,l.config.globalProperties.$tNode=u}},X},os=(e,t)=>e?e.replace(/{{ ?([a-zA-Z_.]+) ?}}/g,(i,n)=>O(t,n)):null,as=(e,t)=>{if(!e)return null;const i=e.split(/(\{[{%]+[^{}]*[%}]+})/g).filter(n=>n!=="").map(n=>{const s=n.startsWith("{%")&&n.endsWith("%}")?"slot":n.startsWith("{{")&&n.endsWith("}}")?"variable":"text";if(s==="text")return()=>ce.text(n);n=n.replace(/[{}%]/g,"").trim();const c=n.match(/^[a-zA-Z_.]+/)[0];n=n.replace(c,"").trim();const u={};return n!==""&&([...n.matchAll(/([a-zA-Z_.]+)(=([a-zA-Z_.]+))?/g)].reduce((r,a)=>(a[3]===void 0?N(r,a[1],O(t,a[1])):N(r,a[1],O(t,a[3])),r),u),[...n.matchAll(/([a-zA-Z_.]+)="([^"]+)"/g)].reduce((r,a)=>{let f=a[2];return new RegExp(/^[0-9]*$/).exec(a[2])?f=parseInt(a[2]):new RegExp(/^(true|false)$/).exec(a[2])&&(f=a[2]==="true"),r[a[1]]=f,r},u)),m=>ce[s](c,t,m,u)});return{setup:(n,{slots:s})=>()=>i.map(c=>c(s))}},ce={slot:(e,t,i,n)=>L.h("span",{class:"node node--slot"},i[e.trim()](n)),variable:(e,t)=>L.h("span",{class:"node node--variable"},O(t,e.trim())),text:e=>L.h("span",{class:"node node--text"},e)};function cs(e){const{t}=Me(),i={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,s)=>n===1?t(s?"timeAgo.last-month":"timeAgo.next-month"):`${n} ${t("timeAgo.month",n)}`,year:(n,s)=>n===1?t(s?"timeAgo.last-year":"timeAgo.next-year"):`${n} ${t("timeAgo.year",n)}`,day:(n,s)=>n===1?t(s?"timeAgo.yesterday":"timeAgo.tomorrow"):`${n} ${t("timeAgo.day",n)}`,week:(n,s)=>n===1?t(s?"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 tt.useTimeAgo(e,{fullDateFormatter:n=>n.toLocaleDateString(),messages:i})}function us(){let e=null;function t(){return e}function i(){return e.controller}function n(){return"use"+e.controller.charAt(0).toUpperCase()+e.controller.slice(1)+"QSController"}function s(){return e.action}function c(){return e.arguments}function u(){return!!(e&&e.controller&&e.action)}function m(){window.location.search.length!==0&&(e=window.location.search.substring(1).split("&").reduce((l,r)=>{const a=r.split("=");return a[0]==="controller"||a[0]==="action"?l[a[0]]=decodeURIComponent(a[1]):l.arguments[a[0]]=decodeURIComponent(a[1]),l},{controller:null,action:null,arguments:{}}))}return m(),{getParams:t,getController:i,getControllerComposableName:n,getAction:s,getArguments:c,hasAction:u}}function ls(){async function e({domain:n,event:s,...c}){const u="useAnalytics"+n.charAt(0).toUpperCase()+n.slice(1);if(!t(u))throw new Error(`Domain ${n} is not defined`);const m=ae[u]();if(!i(m,s))throw new Error(`Event ${s} is not defined in domain ${n}`);return m[s](c)}function t(n){return!!ae[n]}function i(n,s){return!!n[s]}return{call:e}}const ue=Object.freeze(Object.defineProperty({__proto__:null,useAnalyticsQSController:ls},Symbol.toStringTag,{value:"Module"}));function ds(e){if(!e.hasAction())throw new Error("No action found in router");function t(){if(!i())throw new Error(`Controller ${e.getController()} not found`);const s=ue[e.getControllerComposableName()]();if(!n(s))throw new Error(`Action ${e.getAction()} not found in controller ${e.getController()}`);return s[e.getAction()](e.getArguments())}function i(){return e.getControllerComposableName()in ue}function n(s){return e.getAction()in s}return{dispatch:t}}function ms(){let e=!1;function t(s,c,u){n(),u()}function i(s,c,u){if(!e)return e=!0,t(s,c,u);u()}function n(){const s=us();if(!s.hasAction())return;ds(s).dispatch()}return{vueRouterBeforeEach:t,vueRouterBeforeFirst:i,handle:n}}const fs=()=>({getAssetUrl:t=>`${$.getBaseAssetsUrl()}${t}`}),v=()=>$.getMainAppHost(),ps=()=>`${v()}/rh/establishments`,hs=e=>`${v()}/rh/establishment/${e}`,ys=e=>{var t;return typeof e=="string"?e:typeof e=="object"&&((t=e==null?void 0:e.urls)!=null&&t.display)?e.urls.display:null},gs=()=>`${v()}/rh/dashboard`,bs=e=>`${v()}/candidate-invite/establishment/${e}`,ws=(e,t=!1)=>t?`${v()}/cvbank/${e}`:`${v()}/rh/establishment/${e}/cvtheque`,As=(e,t)=>`${v()}/user-profile/establishment/${e}/user/${t}`,vs=e=>`${v()}/rh/establishment/${e}/recruitment`,Rs=(e,t)=>`${v()}/rh/establishment/${e}/recruitment/${t}`,Ps=(e,t)=>`${v()}/rh/establishment/${e}/recruitment/${t}/kanban`,Es=e=>`${v()}/rh/establishment/${e}/career-configuration`,ks=(e,t=null)=>t?`${v()}/career-website/${e}/${t}`:`${v()}/career-website/${e}`,Is=(e,t)=>`${v()}/career-website-preview/${e}/${t}`,Cs=(e,t=null)=>{const i=v().replace("://",`://${e}.`);return t?`${i}?_version=${t}`:`${i}`},Ss=e=>`${v()}/rh/establishment/${e}/stats`,Os=e=>`${v()}/rh/establishment/${e}/backoffice`,$s=()=>`${v()}/rh/settings/general`;function Ts(){return{root:v,establishments:ps,establishment:hs,img:ys,dashboard:gs,candidateInvite:bs,cvtheque:ws,userProfile:As,recruitments:vs,recruitment:Rs,recruitmentKanban:Ps,career:Es,careerConfig:ks,careerPreview:Is,careerWebsite:Cs,statistics:Ss,backoffice:Os,userSettings:$s}}const le=new Set;let x,Y={ignore:e=>e.startsWith("Ui")};const J=e=>{if(e!=null&&e.classList){e._cssChecked=!0;for(const t of e.classList)x.has(t)||le.has(t)||Y.ignore(t)||(le.add(t),A.error(`Undefined CSS class: ${t}`))}},De=e=>{var t;for(const i of e)if(i!=null&&i.cssRules&&(i==null?void 0:i.cssRules.length)>0)De(i.cssRules);else if(i.selectorText){const n=(t=i.selectorText)==null?void 0:t.match(/\.[\w-]+/g);if(n)for(const s of n)x.add(s.substr(1))}},Ls=(e={})=>{if(x)return x;x=new Set,Y={...Y,...e},De(document.styleSheets),new MutationObserver(i=>{for(const n of i)if(n.type==="childList"&&(n!=null&&n.addedNodes)){for(const s of n.addedNodes)if(!(s.nodeType===3||s.nodeType===8)){J(s);for(const c of s.querySelectorAll("*"))J(c)}}else(n==null?void 0:n.attributeName)==="class"&&J(n.target)}).observe(document,{attributes:!0,childList:!0,subtree:!0})},Ns="0.2.73";exports.Analytics=Zi;exports.BaseLogger=q;exports.Gmap=ns;exports.SDKConfig=$;exports.SDKLogger=A;exports.VERSION=Ns;exports._clone=be;exports._get=O;exports._map=$t;exports._merge=ee;exports._pathList=te;exports._set=N;exports._setMany=ge;exports.buildObjectValidation=H;exports.createI18n=rs;exports.ensureScheme=Lt;exports.inBrowser=gt;exports.inNode=T;exports.isArray=Q;exports.isArrayOf=Ct;exports.isBoolean=wt;exports.isDate=Rt;exports.isFalsy=It;exports.isFunction=Pt;exports.isMobile=yt;exports.isNotNullOrUndefined=Et;exports.isNull=pe;exports.isNullOrUndefined=ye;exports.isNumber=At;exports.isObject=j;exports.isObjectOf=St;exports.isObjectValid=Ot;exports.isString=vt;exports.isTruthy=kt;exports.isUndefined=he;exports.sanitizeObject=bt;exports.secureScheme=Tt;exports.transpileAsserts=fe;exports.useActivityRepository=on;exports.useAnalyticsHublerApplication=Ce;exports.useAnalyticsIdentify=Gi;exports.useAnalyticsProfile=Se;exports.useAnalyticsRecruitment=Oe;exports.useAnalyticsVisualBuilder=$e;exports.useAssetUrls=fs;exports.useAuthentication=_;exports.useAuthorization=Ie;exports.useAuthorizationStore=Qi;exports.useCanAccessEstablishmentMiddleware=qi;exports.useCandidateRepository=gn;exports.useCommentRepository=Rn;exports.useContractTypeRepository=kn;exports.useCookieStorage=Ae;exports.useCvbankRepository=Sn;exports.useCvthequeRepository=$n;exports.useDiplomaRepository=Ln;exports.useDocumentRepository=jn;exports.useDomainUrls=Ts;exports.useEmailHistoryRepository=zn;exports.useEmailRepository=Fn;exports.useEmailTemplateRepository=Qn;exports.useEstablishmentCareerRepository=Xn;exports.useEstablishmentRepository=ne;exports.useFeatureFlagRepository=ii;exports.useI18n=Me;exports.useJobRepository=oi;exports.useLabelRepository=mi;exports.useLocaleTimeAgo=cs;exports.useObjectValidation=me;exports.useOfferRepository=pi;exports.usePrivateRequest=y;exports.useQSAction=ms;exports.useRecruiterRepository=yi;exports.useRecruitmentRepository=Ei;exports.useRegisterRepository=Oi;exports.useRegistrationRepository=Ti;exports.useRequest=R;exports.useSpecialityRepository=Mi;exports.useTagRepository=xi;exports.useTalentRepository=Bi;exports.useUndefinedCssClasses=Ls;exports.useUserRepository=ie;
6
+ */var de=st,se=rt,it=Object.prototype.toString,z=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;function st(e,t){if(typeof e!="string")throw new TypeError("argument str must be a string");for(var i={},n=t||{},s=n.decode||ot,c=0;c<e.length;){var u=e.indexOf("=",c);if(u===-1)break;var m=e.indexOf(";",c);if(m===-1)m=e.length;else if(m<u){c=e.lastIndexOf(";",u-1)+1;continue}var l=e.slice(c,u).trim();if(i[l]===void 0){var r=e.slice(u+1,m).trim();r.charCodeAt(0)===34&&(r=r.slice(1,-1)),i[l]=ut(r,s)}c=m+1}return i}function rt(e,t,i){var n=i||{},s=n.encode||at;if(typeof s!="function")throw new TypeError("option encode is invalid");if(!z.test(e))throw new TypeError("argument name is invalid");var c=s(t);if(c&&!z.test(c))throw new TypeError("argument val is invalid");var u=e+"="+c;if(n.maxAge!=null){var m=n.maxAge-0;if(isNaN(m)||!isFinite(m))throw new TypeError("option maxAge is invalid");u+="; Max-Age="+Math.floor(m)}if(n.domain){if(!z.test(n.domain))throw new TypeError("option domain is invalid");u+="; Domain="+n.domain}if(n.path){if(!z.test(n.path))throw new TypeError("option path is invalid");u+="; Path="+n.path}if(n.expires){var l=n.expires;if(!ct(l)||isNaN(l.valueOf()))throw new TypeError("option expires is invalid");u+="; Expires="+l.toUTCString()}if(n.httpOnly&&(u+="; HttpOnly"),n.secure&&(u+="; Secure"),n.partitioned&&(u+="; Partitioned"),n.priority){var r=typeof n.priority=="string"?n.priority.toLowerCase():n.priority;switch(r){case"low":u+="; Priority=Low";break;case"medium":u+="; Priority=Medium";break;case"high":u+="; Priority=High";break;default:throw new TypeError("option priority is invalid")}}if(n.sameSite){var a=typeof n.sameSite=="string"?n.sameSite.toLowerCase():n.sameSite;switch(a){case!0:u+="; SameSite=Strict";break;case"lax":u+="; SameSite=Lax";break;case"strict":u+="; SameSite=Strict";break;case"none":u+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}}return u}function ot(e){return e.indexOf("%")!==-1?decodeURIComponent(e):e}function at(e){return encodeURIComponent(e)}function ct(e){return it.call(e)==="[object Date]"||e instanceof Date}function ut(e,t){try{return t(e)}catch{return e}}function lt(){const e=typeof global>"u"?void 0:global.TEST_HAS_DOCUMENT_COOKIE;return typeof e=="boolean"?e:typeof document=="object"&&typeof document.cookie=="string"}function dt(e){return typeof e=="string"?de(e):typeof e=="object"&&e!==null?e:{}}function K(e,t={}){const i=mt(e);if(!t.doNotParse)try{return JSON.parse(i)}catch{}return e}function mt(e){return e&&e[0]==="j"&&e[1]===":"?e.substr(2):e}class ft{constructor(t,i={}){this.changeListeners=[],this.HAS_DOCUMENT_COOKIE=!1,this.update=()=>{if(!this.HAS_DOCUMENT_COOKIE)return;const s=this.cookies;this.cookies=de(document.cookie),this._checkChanges(s)};const n=typeof document>"u"?"":document.cookie;this.cookies=dt(t||n),this.defaultSetOptions=i,this.HAS_DOCUMENT_COOKIE=lt()}_emitChange(t){for(let i=0;i<this.changeListeners.length;++i)this.changeListeners[i](t)}_checkChanges(t){new Set(Object.keys(t).concat(Object.keys(this.cookies))).forEach(n=>{t[n]!==this.cookies[n]&&this._emitChange({name:n,value:K(this.cookies[n])})})}_startPolling(){this.pollingInterval=setInterval(this.update,300)}_stopPolling(){this.pollingInterval&&clearInterval(this.pollingInterval)}get(t,i={}){return i.doNotUpdate||this.update(),K(this.cookies[t],i)}getAll(t={}){t.doNotUpdate||this.update();const i={};for(let n in this.cookies)i[n]=K(this.cookies[n],t);return i}set(t,i,n){n?n=Object.assign(Object.assign({},this.defaultSetOptions),n):n=this.defaultSetOptions;const s=typeof i=="string"?i:JSON.stringify(i);this.cookies=Object.assign(Object.assign({},this.cookies),{[t]:s}),this.HAS_DOCUMENT_COOKIE&&(document.cookie=se(t,s,n)),this._emitChange({name:t,value:i,options:n})}remove(t,i){const n=i=Object.assign(Object.assign(Object.assign({},this.defaultSetOptions),i),{expires:new Date(1970,1,1,0,0,1),maxAge:0});this.cookies=Object.assign({},this.cookies),delete this.cookies[t],this.HAS_DOCUMENT_COOKIE&&(document.cookie=se(t,"",n)),this._emitChange({name:t,value:void 0,options:i})}addChangeListener(t){this.changeListeners.push(t),this.HAS_DOCUMENT_COOKIE&&this.changeListeners.length===1&&(typeof window=="object"&&"cookieStore"in window?window.cookieStore.addEventListener("change",this.update):this._startPolling())}removeChangeListener(t){const i=this.changeListeners.indexOf(t);i>=0&&this.changeListeners.splice(i,1),this.HAS_DOCUMENT_COOKIE&&this.changeListeners.length===0&&(typeof window=="object"&&"cookieStore"in window?window.cookieStore.removeEventListener("change",this.update):this._stopPolling())}}function pt(e,{doNotParse:t=!1,autoUpdateDependencies:i=!1}={},n=new ft){const s=i?[...e||[]]:e;let c=n.getAll({doNotParse:!0});const u=L.ref(0),m=()=>{const l=n.getAll({doNotParse:!0});ht(s||null,l,c)&&u.value++,c=l};return n.addChangeListener(m),nt(()=>{n.removeChangeListener(m)}),{get:(...l)=>(i&&s&&!s.includes(l[0])&&s.push(l[0]),u.value,n.get(l[0],{doNotParse:t,...l[1]})),getAll:(...l)=>(u.value,n.getAll({doNotParse:t,...l[0]})),set:(...l)=>n.set(...l),remove:(...l)=>n.remove(...l),addChangeListener:(...l)=>n.addChangeListener(...l),removeChangeListener:(...l)=>n.removeChangeListener(...l)}}function ht(e,t,i){if(!e)return!0;for(const n of e)if(t[n]!==i[n])return!0;return!1}const yt=()=>{let e=!1;return function(t){(/(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(t)||/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(t.substr(0,4)))&&(e=!0)}(navigator.userAgent||navigator.vendor||window.opera),e},me=(e,t)=>q(e,fe(t)),q=(e,t)=>{const i={};return re(t).forEach(n=>i[n]=q(e==null?void 0:e[n],t[n])),"$item"in t&&(e==null||e.forEach((n,s)=>i[s]=q(n,t.$item))),i.$valid=(!t.$asserts||t.$asserts.every(n=>n(e)))&&re(i).every(n=>i[n].$valid),i},fe=e=>ge(Object.entries(e).reduce((t,[i,n])=>(t[`${i.replaceAll(".[]",".$item")}${i.length?".":""}$asserts`]=Array.isArray(n)?n:[n],t),{})),gt=(e,t,i)=>(e=JSON.parse(JSON.stringify(e)),te(e).forEach(s=>{const c=s.replace(/\.[0-9]+/g,".[]");O(t,`${s}.$valid`)===!1&&i[c]!==void 0&&N(e,s,i[c])}),e),re=e=>Object.keys(e).filter(t=>!t.startsWith("$")),bt=e=>typeof e=="boolean",wt=e=>typeof e=="number",At=e=>typeof e=="string",j=e=>Array.isArray(e),B=e=>typeof e=="object"&&!j(e)&&e!==null,vt=e=>e instanceof Date,Rt=e=>typeof e=="function",pe=e=>e===null,he=e=>e===void 0,ye=e=>pe(e)||he(e),Pt=e=>!ye(e),Et=e=>!!e,kt=e=>!e,It=(e,t)=>j(e)&&e.every(i=>t(i)),Ct=(e,t)=>B(e)&&Object.values(e).every(i=>t(i)),St=(e,t)=>me(e,t).$valid,Ot=(e,t,i=!1)=>{j(t)||(t=[t]);let n=e;for(;n;){if(n.classList&&t[i?"every":"some"](s=>n.classList.contains(s)))return!0;n=n.parentElement}return!1},$t=()=>typeof window<"u"&&typeof window.document<"u",T=()=>typeof process<"u"&&process.versions!=null&&process.versions.node!=null,O=(e,t,i)=>{const n=typeof t=="string"?t.split("."):[t];let s=e;const c=m=>m!=null,u=m=>typeof m=="object";for(const[m,l]of n.entries()){if(!c(s))return i;if(m===n.length-1)return c(s[l])?s[l]:i;if(!u(s[l]))return i;s=s[l]}return i},N=(e,t,i)=>{const n=typeof t=="string"?t.split("."):[t],s=m=>typeof m=="number"||/^\d$/g.test(m),c=m=>parseInt(m,10);let u=e;return n.forEach((m,l)=>{if(l===n.length-1)u[m]=i;else{const r=s(n[l+1])?[]:{};m=s(m)?c(m):m,u[m]=u[m]??r,u=u[m]}}),e},ge=(e,t={})=>{const i=B(e)?Object.entries(e):e;for(const[n,s]of i)N(t,n,s);return t},Tt=(e,t={})=>{const i=B(e)?Object.entries(e):e;for(const[n,s]of i)N(t,n,s(t,n));return t},be=e=>{if(typeof e=="object"){if(Array.isArray(e))return[...e];if(Object(e)===e)return{...e}}return e},ee=(e,t)=>{const i={...e};for(const[n,s]of Object.entries(t))n in i&&typeof i[n]=="object"&&typeof s=="object"?i[n]=ee(i[n],s):i[n]=be(s);return i},te=(e,t=()=>!0,i="")=>{const n=[];for(const s in e){const c=e[s],u=i?`${i}.${s}`:s;t(s,u,c)&&(n.push(u),(B(c)||j(c))&&n.push(...te(c,t,u)))}return n},Lt=e=>e.startsWith("http:")?e.replace("http:","https:"):e,Nt=(e,t=!1)=>e.startsWith("http:")||e.startsWith("https:")?e:t?`https://${e}`:`http://${e}`,we=()=>typeof window<"u"&&(window!=null&&window.location)?new URL(window.location).hostname:void 0,oe=()=>{const e=we();return!e||e==="localhost"?e:`.${e}`},Mt=()=>({path:"/"}),Dt=e=>({path:"/",domain:e,sameSite:"none",secure:!0}),W=e=>{if(!(T()||!e))return e.startsWith("localhost")?Mt():Dt(e)};function Ae(){const e=pt(),t=c=>e.get(c),i=(c,u)=>e.set(c,u,W(oe())),n=c=>{e.remove(c),e.remove(c,W(we())),e.remove(c,W(oe()))};return{getItem:t,setItem:i,removeItem:n,clear:()=>Object.keys(e.getAll()).forEach(c=>n(c))}}let U=null;function _(e={auth:"token",refresh:"refresh_token",expiration:"token_expiration_date"},t=Ae()){if(U)return U;function i(){return t.getItem(e.auth)}function n(){return t.getItem(e.refresh)}function s(){return t.getItem(e.expiration)}function c(p,h){const b=a(p);if(!b.exp)throw new Error("Invalid JWT token.");t.setItem(e.auth,p),t.setItem(e.refresh,h),t.setItem(e.expiration,((b.exp-60)*1e3).toString())}function u(){t.removeItem(e.auth),t.removeItem(e.refresh),t.removeItem(e.expiration)}function m(){return l()&&!r()}function l(){return!!i()}function r(){const p=s();return p?new Date(p)<new Date:!0}function a(p){return JSON.parse(atob(p.split(".")[1]))}function f(){return t}return U={keys:e,getAuthToken:i,getRefreshToken:n,getExpiration:s,authenticate:c,clear:u,isAuthenticated:m,hasAuth:l,isExpired:r,getStorage:f},U}function xt(e){let t={"Content-Type":"application/json"};e&&i(e);function i(b,w=!1){return t=w?b:{...t,...b},this}function n(){return t}function s(b,w){return t[b]=w,this}function c(b){return t[b]}function u(b){return t[b]&&delete t[b],this}function m(b){return s("Authorization","Bearer "+b),this}function l(){return u("Authorization"),this}function r(){return!!c("Authorization")}function a(){return s("Content-Type","multipart/form-data"),this}function f(){return s("Content-Type","application/json"),this}function p(){return c("Content-Type")==="multipart/form-data"}function h(){return c("Content-Type")==="application/json"}return{setHeaders:i,getHeaders:n,setHeader:s,getHeader:c,removeHeader:u,setAuthorization:m,removeAuthorization:l,hasAuthorization:r,setFormData:a,setJson:f,isFormData:p,isJson:h}}function _t(e){let t=null;e&&i(e);function i(s){if(s=s.toLowerCase(),!["get","post","put","patch","delete"].includes(s))throw new Error("Invalid method.");return t=s,this}function n(){return t}return{setMethod:i,getMethod:n}}function jt(e,t,i){let n=null;i&&s(i);function s(r){if(!["post","put","patch"].includes(e.getMethod()))throw new Error("Payload can only be set for POST, PUT and PATCH requests.");return r instanceof FormData?t.setFormData():u(r)&&(r=m(r),t.setFormData()),t.isFormData()&&e.getMethod()==="put"&&(e.setMethod("post"),r.append("_method","PUT")),n=r,this}function c(){return n}function u(r){for(const a in r){const f=r[a];if(l(f))return!0;if(typeof f=="object"&&u(f))return!0}return!1}function m(r,a=null,f=0){const p=!a;p&&(a=new FormData);for(const h in r){const b=r[h];l(b)?(r[h]="<<FileIndex:"+f+">>",a.append(f,b,b.name),f++):typeof b=="object"&&(r[h]=m(r[h],a,f))}return p?(a.append("payload",JSON.stringify(r)),a):r}function l(r){return typeof File<"u"&&r instanceof File||typeof Blob<"u"&&r instanceof Blob}return{setPayload:s,getPayload:c}}const k=class k{constructor(t={}){C(this,"level",3);C(this,"logger");C(this,"prefix");this.logger=t.logger||console,this.prefix=t.prefix||""}setLevel(t){this.level=t}debug(...t){this.level<=k.LEVEL_DEBUG&&V(this.logger.debug,this.prefix,t)}info(...t){this.level<=k.LEVEL_INFO&&V(this.logger.info,this.prefix,t)}warn(...t){this.level<=k.LEVEL_WARN&&V(this.logger.warn,this.prefix,t)}error(...t){this.level<=k.LEVEL_ERROR&&V(this.logger.error,this.prefix,t)}};C(k,"LEVEL_DEBUG",0),C(k,"LEVEL_INFO",1),C(k,"LEVEL_WARN",2),C(k,"LEVEL_ERROR",3),C(k,"LEVEL_OFF",4);let Q=k;const V=(e,t,i)=>{t?e(t,...i):e(...i)},A=new Q({prefix:"[SDK]"});let ve=null,Re=null,Pe=null,Ee="/",ke=null;const Bt=()=>ve,zt=e=>{if(A.info("[Config] Environment:",e),!e)throw new Error("Invalid environment.");ve=e},Ut=()=>Re,Vt=e=>{if(A.info("[Config] API Host:",e),!e)throw new Error("Invalid API host.");Re=e},Ft=()=>ke,Ht=e=>{ke=e},qt=()=>Pe,Qt=e=>{if(A.info("[Config] Main App Host:",e),!e)throw new Error("Invalid main app host.");Pe=e},Gt=e=>{A.info("[Config] Base Assets Urls:",e),Ee=e},Kt=()=>Ee,$={getEnvironment:Bt,getApiHost:Ut,getErrorHandler:Ft,setEnvironment:zt,setApiHost:Vt,setErrorHandler:Ht,getMainAppHost:qt,setMainAppHost:Qt,setBaseAssetsUrl:Gt,getBaseAssetsUrl:Kt};function Wt(e){const t=$.getApiHost().replace(/\/$/g,"");let i=null,n={},s={};e&&m(e);function c(){return t+l()+h()}function u(){return l(!0,!0)}function m(d){return i="/"+d.replace(/^\//g,""),this}function l(d=!0,P=!1){return d?i.replace(/:(\w+)/g,(E,I)=>P?"*":s[I]||":"+I):i}function r(d){return n=d,this}function a(d,P){return n[d]=P,this}function f(d){return n[d]&&delete n[d],this}function p(){return Object.keys(n).length>0}function h(d=!0){if(!p())return"";let P="";for(const E in n)if(Array.isArray(n[E]))for(const I of n[E])P+=(P.length?"&":"")+`${E}[]=`+I;else P+=(P.length?"&":"")+E+"="+n[E];return(d?"?":"")+P}function b(d){return s=d,this}function w(d,P){return s[d]=P,this}function S(d){return s[d]&&delete s[d],this}return{setPath:m,getPath:l,getUri:c,getMockUri:u,setQueryParams:r,setQueryParam:a,removeQueryParam:f,hasQuery:p,getQueryString:h,setRouteParams:b,setRouteParam:w,removeRouteParam:S}}function Jt(e){let t=[];function i(){return t=r(arguments),u(),this}function n(){return t.length>0}function s(a){return t.includes(a.trim())?this:(t.push(a.trim()),u(),this)}function c(a){const f=t.indexOf(a.trim());return f===-1?this:(t.splice(f,1),u(),this)}function u(){t.length?e.setQueryParam("groups",l(t)):e.removeQueryParam("groups")}function m(a){return a.split(",").map(f=>f.trim())}function l(a){return a.join(",")}function r(a){let f=[];return a.length===1?typeof a[0]=="string"?f=m(a[0]):Array.isArray(a[0])&&(f=a[0]):f=Array.from(a),f}return{setGroups:i,hasGroups:n,addGroup:s,removeGroup:c}}function Zt(e){let t=!1,i=!1,n=1,s=10;function c(){return t=!0,u(),this}function u(){i=!0;const h=p(arguments);return r(h.page||1,!1),a(h.perPage||s,!1),f(),this}function m(){return i=!1,f(),this}function l(){return i}function r(h,b=!0){return t=!0,i=!0,n=h,b&&f(),this}function a(h,b=!0){return t=!0,i=!0,s=h,b&&f(),this}function f(){t?l()?(e.removeQueryParam("pagination"),e.setQueryParam("page",n),e.setQueryParam("nbResultPerPage",s)):(e.removeQueryParam("page"),e.removeQueryParam("nbResultPerPage"),e.setQueryParam("pagination","false")):(e.removeQueryParam("page"),e.removeQueryParam("nbResultPerPage"),e.removeQueryParam("pagination"))}function p(h){if(h.length===1&&typeof h[0]=="object")return h[0];const b={};return h.length>=1&&(b.page=h[0]),h.length>=2&&(b.perPage=h[1]),b}return{isList:c,paginate:u,disablePagination:m,hasPagination:l,setPage:r,setPerPage:a}}function Xt(e){let t=!1,i="id",n="ASC";function s(){t=!0;const a=r(arguments);return a.orderBy&&u(a.orderBy,!1),a.orderDir&&m(a.orderDir,!1),l(),this}function c(){return t}function u(a,f=!0){return t=!0,i=a,f&&l(),this}function m(a,f=!0){if(a=a.toUpperCase(),["ASC","DESC"].indexOf(a)===-1)throw new Error("Invalid order direction");return t=!0,n=a,f&&l(),this}function l(){c()&&(e.setQueryParam("orderBy",i),e.setQueryParam("orderDirection",n))}function r(a){if(a.length===1&&typeof a[0]=="object")return a[0];const f={};return a.length>=1&&(f.orderBy=a[0]),a.length>=2&&(f.orderDir=a[1]),f}return{setOrder:s,hasOrder:c,setOrderBy:u,setOrderDir:m}}function Yt(){let e=!1;function t(){return e=!0,this}function i(){return e}return{setSilent:t,isSilent:i}}function en(){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 i(){return e}return{setResponseType:t,getResponseType:i}}function tn(e){function t(){return e}function i(){return e.data}function n(){return e.data}return{getResponse:t,getData:i,getPayload:n}}function nn(e,t=!1){let i=!1,n=!1;return e.response?(i=!0,n=!0):e.request&&(i=!0),!t&&$.getErrorHandler()&&$.getErrorHandler()(e),{sent:i,responded:n,error:e}}function sn(e){function t(){return e}function i(){return e.data}function n(){return e.data}function s(){return e.data["@type"]==="hydra:Collection"}function c(){return s()?e.data["hydra:member"]:null}function u(){return s()?e.data["hydra:totalItems"]:null}function m(){return s()?e.data["hydra:view"]&&e.data["hydra:view"]["hydra:last"]:!1}function l(){return!s()||!m()?null:parseInt(e.data["hydra:view"]["@id"].match(/page=(\d+)/)[1])}function r(){return!s()||!m()?null:parseInt(e.data["hydra:view"]["hydra:last"].match(/page=(\d+)/)[1])}return{getResponse:t,getData:i,getPayload:n,isCollection:s,getCollection:c,getTotal:u,hasPagination:m,getPage:l,getPages:r}}function rn(e,t,i,n,s,c){async function u(){const l=i.getMethod(),r=t.getUri(),a=e.getHeaders(),f=n.getPayload(),p=[r];["post","put","patch"].includes(l)&&p.push(f||{}),p.push({headers:a,responseType:c.getResponseType()}),A.info("[Request] Sending request:",`[${l.toUpperCase()}]`,r);try{const h=await Ye[l](...p);return m(h)}catch(h){throw nn(h,s.isSilent())}}function m(l){if(l.headers){const r=Object.keys(l.headers),a=r.map(f=>f.toLowerCase()).indexOf("content-type");if(a!==-1&&l.headers[r[a]].includes("application/ld+json"))return sn(l)}return tn(l)}return{send:u}}function R(e,t="get",i=null){const n=xt(),s=Wt(e),c=_t(t),u=jt(c,n,i),m=Jt(s),l=Zt(s),r=Xt(s),a=Yt(),f=en(),p=rn(n,s,c,u,a,f);return{...n,...s,...c,...u,...m,...l,...r,...a,...f,...p}}function y(e,t="get",i=null){const n=R(e,t,i),s=_();s.isAuthenticated()&&n.setAuthorization(s.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 on=(e,t)=>y("/v2/activity/candidate/:candidateId/establishment/:establishmentId").setRouteParams({candidateId:e,establishmentId:t}),an=()=>({listByCandidateAndEstablishment:on}),cn=(e,t,i)=>y("/candidate/:candidateId/share/establishment/:establishmentId").setMethod("post").setRouteParams({candidateId:e,establishmentId:t}).setPayload(i),un=(e,t)=>y("/candidate/:candidateId/archive/establishment/:establishmentId").setRouteParams({candidateId:e,establishmentId:t}),ln=(e,t)=>y("/candidate/:candidateId/archive/establishment/:establishmentId").setMethod("post").setRouteParams({candidateId:e,establishmentId:t}),dn=(e,t)=>y("/candidate/:candidateId/archive/establishment/:establishmentId").setMethod("delete").setRouteParams({candidateId:e,establishmentId:t}),mn=(e,t)=>y("/v2/candidates/lookup").setQueryParam("email",e).setQueryParam("establishment-id",t),fn=(e,t)=>y("/v2/candidates").setMethod("post").setQueryParam("establishment-id",e).setPayload(t),pn=(e,t,i)=>y("/v2/candidates/:candidateId").setQueryParam("establishment-id",t).setRouteParams({candidateId:e}).setMethod("put").setPayload(i),hn=e=>y("/candidate/register/close/:registrationToken").setMethod("post").setRouteParams({registrationToken:e}),yn=e=>y("/candidate/register/open").setMethod("post").setQueryParam("groups","register:token").setPayload(e),gn=(e,t)=>y("/establishment/:establishmentId:/candidate/invitation").setRouteParams({establishmentId:e}).setMethod("post").setPayload(t),bn=()=>({share:cn,isArchived:un,archive:ln,unarchive:dn,lookupCandidate:mn,createCandidate:fn,updateCandidate:pn,closeIncompleteRegistration:hn,openNewRegistration:yn,updateInvitation:gn}),wn=(e,t)=>y("/comment/establishment/:establishmentId/candidate/:userId").setRouteParams({establishmentId:e,userId:t}),An=(e,t,i)=>y("/comment/establishment/:establishmentId/candidate/:userId").setRouteParams({establishmentId:e,userId:t}).setMethod("post").setPayload(i),vn=(e,t)=>y("/comment/:commentId").setRouteParams({commentId:e}).setMethod("put").setPayload(t),Rn=e=>y("/comment/:commentId").setRouteParams({commentId:e}).setMethod("delete"),Pn=()=>({getForEstablishmentCandidate:wn,postForEstablishmentCandidate:An,update:vn,remove:Rn}),En=()=>R("contractType").isList().addGroup("Term:id").addGroup("Term:name"),kn=(e,t=!0)=>y("contractType/establishment/:establishmentId").isList().setRouteParams({establishmentId:e}).setQueryParam("all",t).addGroup("Term:id").addGroup("Term:name"),In=()=>({list:En,listByEstablishment:kn}),Cn=e=>y("/v2/talents").isList().setQueryParam("establishment-id",e),Sn=e=>y("/v2/talent/mark-as-seen/:talentId").setRouteParams({talentId:e}).setMethod("post"),On=()=>({list:Cn,markAsSeen:Sn}),$n=(e,t,i)=>y("/cvtheque/establishment/:establishmentId/candidate/:candidateId/label/synchronize").setRouteParams({establishmentId:e,candidateId:t}).setMethod("post").setPayload(i),Tn=()=>({syncCandidateLabels:$n}),Ln=()=>R("diploma").isList().addGroup("Term:id").addGroup("Term:name"),Nn=()=>({list:Ln}),Mn=e=>y("document/candidate/:candidateId").setRouteParams({candidateId:e}).isList().disablePagination(),Dn=(e,t)=>y("document/candidate/:candidateId/establishment/:establishmentId/recruiter").setRouteParams({candidateId:e,establishmentId:t}).isList().disablePagination(),xn=(e,t)=>y("document/candidate/:candidateId/establishment/:establishmentId/candidate").setRouteParams({candidateId:e,establishmentId:t}).isList().disablePagination(),_n=e=>y("document/recruiter").setMethod("post").setPayload(e),jn=e=>y("document/:documentId").setRouteParams({documentId:e}).setMethod("delete"),Bn=()=>({listByCandidate:Mn,listByCandidateAndEstablishmentFromRecruiter:Dn,listByCandidateAndEstablishmentFromCandidate:xn,addFromRecruiter:_n,remove:jn}),zn=(e,t)=>y("/v2/establishments/:establishmentId/email-history").setRouteParams({establishmentId:t}).setQueryParam("receiverId",e).isList().disablePagination(),Un=()=>({listByCandidateAndEstablishment:zn}),Vn=(e,t)=>y("/email/candidate/:candidateId").setMethod("post").setRouteParams({candidateId:e}).setPayload(t),Fn=(e,t)=>y("/v2/emails/send").setMethod("post").setPayload({recipientIds:e,...t}),Hn=()=>({sendToCandidate:Vn,sendToRecipients:Fn}),qn=(e,t=!0)=>{const i=y("/v2/establishments/:establishmentId/email-templates").setRouteParams({establishmentId:e}).isList().disablePagination();return t&&i.setQueryParam("global",!0),i},Qn=()=>y("/v2/self/email-templates").isList().disablePagination(),Gn=()=>({listByEstablishment:qn,listSelf:Qn}),Kn=(e,t)=>y("establishment-career/:establishmentId/:versionId").setRouteParams({establishmentId:e,versionId:t}),Wn=(e,t="published")=>y("establishment-career/:establishmentId/state/:state").setRouteParams({establishmentId:e,state:t}),Jn=(e,t,i=null)=>{const n=i!==null?y("establishment-career/:establishmentId/:versionId").setRouteParams({establishmentId:e,versionId:i}):y("establishment-career/:establishmentId").setRouteParams({establishmentId:e});return n.setMethod("post").setPayload(t),n},Zn=(e,t)=>y("establishment-career/:establishmentId/logo-banner").setMethod("post").setRouteParams({establishmentId:e}).setPayload(t),Xn=(e,t,i)=>y("establishment-career/:establishmentId/publish/:versionId").setMethod("post").setRouteParams({establishmentId:e,versionId:t}).setPayload(i),Yn=()=>({readById:Kn,readByState:Wn,upsert:Jn,uploadLogoAndBanner:Zn,publish:Xn}),ei=e=>R("establishment/:establishmentId").setRouteParams({establishmentId:e}),ti=e=>y("establishment/:establishmentId/authorizations").setRouteParams({establishmentId:e}),ne=()=>({read:ei,authorizations:ti}),ni=e=>R("feature-flag/maintenance").setMethod("post").setPayload(e),ii=(e,t)=>R("feature-flag/establishment").setMethod("post").setPayload({establishment:e,flagName:t}),si=()=>({maintenanceModeEnabled:ni,forEstablishment:ii}),ri=()=>R("job").isList().addGroup("Term:id").addGroup("Term:name"),oi=(e,t=!0)=>y("job/establishment/:establishmentId").isList().setRouteParams({establishmentId:e}).setQueryParam("all",t).addGroup("Term:id").addGroup("Term:name"),ai=()=>({list:ri,listByEstablishment:oi}),ci=e=>y("/label/establishment/:establishmentId").isList().setRouteParams({establishmentId:e}),ui=(e,t)=>y("/label/establishment/:establishmentId").setMethod("post").setRouteParams({establishmentId:e}).setPayload(t),li=(e,t)=>y("/label/:labelId").setMethod("put").setRouteParams({labelId:e}).setPayload(t),di=e=>y("/label/:labelId").setMethod("delete").setRouteParams({labelId:e}),mi=(e,t,i)=>y("/label/establishment/:establishmentId/candidate/:candidateId/synchronize").setMethod("post").setPayload(i).setRouteParams({establishmentId:e,candidateId:t}),fi=()=>({listByEstablishment:ci,addToEstablishment:ui,update:li,remove:di,syncForCandidate:mi}),pi=e=>R("offer/:offerId").setRouteParams({offerId:e}),hi=()=>({read:pi}),yi=(e,t=!1)=>{const i=y("/recruiter/establishment/:establishmentId").isList().setRouteParams({establishmentId:e});return t&&i.setQueryParam("exclude-me",1),i},gi=()=>({listByEstablishment:yi}),bi=e=>y("/recruitment/:recruitmentId").setRouteParams({recruitmentId:e}),wi=e=>y("/recruitment/mine/establishment/:establishmentId").isList().setRouteParams({establishmentId:e}),Ai=(e,t)=>y("/recruitment/mine/establishment/:establishmentId/has-not/candidate/:candidateId").isList().setRouteParams({establishmentId:e,candidateId:t}),vi=(e,t)=>y("/recruitment/mine/establishment/:establishmentId/has/candidate/:candidateId").isList().setRouteParams({establishmentId:e,candidateId:t}),Ri=(e,t)=>y("/recruitment/establishment/:establishmentId/has/candidate/:candidateId").isList().setRouteParams({establishmentId:e,candidateId:t}),Pi=(e,t)=>y("/recruitment/:recruitmentId/candidate").setMethod("put").setRouteParams({recruitmentId:e}).setPayload(t),Ei=(e,t)=>y("/recruitment/:recruitmentId/candidate/:candidateId").setMethod("delete").setRouteParams({recruitmentId:e,candidateId:t}),ki=()=>({read:bi,mineByEstablishment:wi,mineWithoutCandidate:Ai,mineWithCandidate:vi,withCandidate:Ri,addCandidates:Pi,removeCandidate:Ei}),Ii=(e,t,i,n=null)=>{const s=R("candidate/register/open").setMethod("post"),c={email:e};return t==="establishment"&&(c.establishmentId=i),t==="offer"&&(c.offerId=i),n&&(c.referer=n),s.setPayload(c),s},Ci=(e,t)=>R("candidate/register/update/:token").setMethod("post").setRouteParams({token:e}).setPayload(t),Si=e=>R("candidate/register/read/:token").setRouteParams({token:e}),Oi=e=>R("candidate/register/close/:token").setMethod("post").setRouteParams({token:e}),$i=()=>({open:Ii,update:Ci,read:Si,close:Oi}),Ti=(e,t)=>y("/v2/registrations/lookup").setQueryParam("candidate-id",e).setQueryParam("establishment-id",t),Li=()=>({lookupEstablishment:Ti}),Ni=()=>R("speciality").isList().addGroup("Term:id").addGroup("Term:name"),Mi=(e,t=!0)=>y("speciality/establishment/:establishmentId").isList().setRouteParams({establishmentId:e}).setQueryParam("all",t).addGroup("Term:id").addGroup("Term:name"),Di=()=>({list:Ni,listByEstablishment:Mi}),xi=e=>y("/tag/public/establishment/:establishmentId").isList().setRouteParams({establishmentId:e}),_i=()=>({listByEstablishment:xi}),ji=(e,t)=>y("/v2/talents/lookup").setQueryParam("candidate-id",e).setQueryParam("establishment-id",t),Bi=e=>y("/v2/talents/index").setMethod("post").setPayload(e),zi=()=>({lookupTalent:ji,addCandidateToTalentPool:Bi}),Ui=e=>R("user/email/isset/:email").setRouteParams({email:e}),Vi=()=>y("user/self").addGroup("user:self"),Fi=e=>y("/user/:uuid").setRouteParams({uuid:e}),Hi=e=>R("/user/:uuid").setRouteParams({uuid:e}),qi=e=>y("/user/:id/uuid").setRouteParams({id:e}),ie=()=>({emailExists:Ui,self:Vi,byUuidPrivate:Fi,byUuid:Hi,fetchUuid:qi});let F;function Ie(){if(F)return F;const e={user:void 0,roles:[],establishments:{}},t=async()=>{if(!_().isAuthenticated())throw new Error("::SDK Authorization:: User not authenticated");const r=(await ie().self().send()).getData();e.user={id:r.id,email:r.email,firstName:r.firstName,lastName:r.lastName,avatar:r.avatar},e.roles=r.roles},i=async r=>{if(!_().isAuthenticated())throw new Error("::SDK Authorization:: User not authenticated");e.establishments[r]=(await ne().authorizations(r).send()).getData()},n=r=>{if(e.user===void 0)throw new Error("::SDK Authorization:: User not fetched");return e.roles.includes(r)};return F={fetchSelf:t,fetchPermission:i,hasRole:n,hasRoleRH:()=>n("ROLE_RH"),hasRoleCandidate:()=>n("ROLE_CANDIDATE"),hasRoleAdmin:()=>n("ROLE_ADMIN"),hasPermission:(r,...a)=>{const f=e.establishments[r];if(f===void 0)throw new Error(`::SDK Authorization:: Permissions not fetched for establishment ${r}`);return a.every(p=>f[p]===!0)},clear:()=>{e.user=void 0,e.roles=[],e.establishments={}}},F}async function Qi(e,...t){if(!_().isAuthenticated())throw"ERR_NOT_AUTHENTICATED";const n=Ie();await Promise.all([n.fetchSelf(),n.fetchPermission(e)]);for(let s=0;s<t.length;s++){const c=t[s];if(!n.hasPermission(e,c))throw"ERR_MISSING_PERMISSION"}}const Gi=et.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 ie().self().send();this.user=t.getData()}},async fetchPermission(e,t){if(!this.establishments[e]||t){const i=await ne().authorizations(e).send();this.establishments[e]=i.getData()}},hasPermission(e,...t){const i=this.establishments[e];return i===void 0?!1:t.every(n=>i[n]===!0)}}});let D=null;function g(){if(D)return D;const e=$.getEnvironment(),t=(()=>e==="prod"||e==="production"?"pPROC7dPoJ7XdxHrwsTQNXCGX79MJjhp":e==="staging"?"823rqOTwVk1ZCWVyBAdLInZ77TcFF0CF":"TMZX6evFnu87JrBHV5qLwHsld5C6hilZ")(),i=!!t,n=e!=="prod"&&e!=="production";let s=null;function c(){return i}function u(){const p=window.analytics=window.analytics||[];if(!p.initialize&&p.invoked)A.error("Segment snippet included twice.");else{p.invoked=!0,p.methods=["trackSubmit","trackClick","trackLink","trackForm","pageview","identify","reset","group","track","ready","alias","debug","page","once","off","on","addSourceMiddleware","addIntegrationMiddleware","setAnonymousId","addDestinationMiddleware"],p.factory=function(h){return function(){if(window.analytics.initialized)return window.analytics[h].apply(window.analytics,arguments);const b=Array.prototype.slice.call(arguments);return b.unshift(h),p.push(b),p}};for(let h=0;h<p.methods.length;h++){const b=p.methods[h];p[b]=p.factory(b)}p.load=function(h,b){const w=document.createElement("script");w.id="analytics-script",w.type="text/javascript",w.async=!0,w.src="https://cdn.segment.com/analytics.js/v1/"+h+"/analytics.min.js",w.onerror=()=>window.dispatchEvent(new Event("analytics-error"));const S=document.getElementsByTagName("script")[0];S.parentNode.insertBefore(w,S),p._loadOptions=b},p._writeKey=t,p.SNIPPET_VERSION="4.16.1",p.load(t),p.page(),p.ready(()=>window.dispatchEvent(new Event("analytics-ready")))}}async function m(){return s!==null||(s=new Promise((p,h)=>{if(!c())return f("Analytics is disabled."),p();if(window.addEventListener("analytics-ready",()=>{f("Analytics script loaded successfully."),p()}),window.addEventListener("analytics-error",()=>{f("Analytics script failed to load. Consider disabling your AdBlocker.",null,"error"),h()}),f("Loading Analytics script."),window.analytics)return p();u()})),s}async function l(p,h){if(!T())try{if(await this.analyticsScriptReady(),f("[identify]",[p,h]),c())return window.analytics.identify(p,h)}catch{f("[identify]",[p,h],"error")}}async function r(p,h,b){if(!T()){typeof b!="object"&&(b={});try{if(await this.analyticsScriptReady(),f("[page]",[p,h,b]),c())return window.analytics.page(p,{category:h,...b})}catch(w){console.log(w),f("[page]",[p,h,b],"error")}}}async function a(p,h,b){if(!T()){typeof b!="object"&&(b={});try{if(await this.analyticsScriptReady(),f("[track]",[p,h,b]),c())return window.analytics.track(p,{category:h,...b})}catch{f("[track]",[p,h,b],"error")}}}function f(p,h=[],b="info"){h||(h=[]),n&&A[b](`::SDK Analytics:: ${p}`,...h)}return D={analyticsScriptReady:m,isEnabled:c,identify:l,page:r,track:a,consoleMessage:f},D}g.destroy=()=>D=null;function Ce(){const e="Hubler Application";function t(r){if(!r)throw new Error(`Missing arguments for domain "${e}"`);const a=!!r.offerId;if(a&&!r.recruitmentId)throw new Error(`Missing argument "recruitmentId" for domain "${e}"`);return{companyId:r.establishmentId?r.establishmentId.toString():null,jobOfferId:a?r.offerId.toString():null,recruitmentId:a?r.recruitmentId.toString():null,selections:[a?"Application":"Spontaneous Application"]}}async function i(r){return g().page("Application Authentication Viewed",e,t(r))}async function n(r){return g().page("Application Magic Link Viewed",e,t(r))}async function s(r){return g().page("Application Job Viewed",e,t(r))}async function c(r){return g().page("Application Information Viewed",e,t(r))}async function u(r){return g().page("Application Document Viewed",e,t(r))}async function m(r){return g().page("Application Success Viewed",e,t(r))}async function l(r){if(!r.error)throw new Error(`Missing argument "error" for domain "${e}", event "Application Form Failed"`);return g().track("Application Form Failed",e,{...t(r),error:r.error})}return{applicationAuthenticationViewed:i,applicationMagicLinkViewed:n,applicationJobViewed:s,applicationInformationViewed:c,applicationDocumentViewed:u,applicationSuccessViewed:m,applicationFormFailed:l}}function Se(){const e="Profile";function t(d,P){var I;if(!d)throw new Error(`Missing arguments for domain "${e}"`);const E={companyId:d.companyId?d.companyId.toString():null,hublerId:(I=d.hublerId)==null?void 0:I.toString()};return P&&(E.productId=d.companyId?d.companyId+"_2":null),d.recruitmentId&&(E.recruitmentId=d.recruitmentId.toString()),d.selections&&(E.selections=d.selections),d.institutionId&&(E.institutionId=d.institutionId.map(String)),E}async function i(d){return g().track(d.name,e,t(d.properties),!0)}async function n(d){return g().track(d.name,e,t(d.properties,!0))}async function s(d){return g().track(d.name,e,t(d.properties,!0))}async function c(d){return g().track(d.name,e,t(d.properties,!0))}async function u(d){return g().track(d.name,e,t(d.properties,!0))}async function m(d){return g().track(d.name,e,t(d.properties,!0))}async function l(d){return g().track(d.name,e,t(d.properties,!0))}async function r(d){return g().track(d.name,e,t(d.properties,!0))}async function a(d){return g().track(d.name,e,t(d.properties,!0))}async function f(d){return g().track(d.name,e,t(d.properties,!0))}async function p(d){return g().track(d.name,e,t(d.properties,!0))}async function h(d){return g().track(d.name,e,t(d.properties,!0))}async function b(d){return g().track(d.name,e,t(d.properties,!0))}async function w(d){return g().page(d.name,d.properties.category,t(d.properties,!1))}async function S(d){return g().track(d.name,e,t(d.properties,!1))}return{profileDocumentDeleted:i,profileLabelAdded:n,profileLabelRemoved:s,profileShared:c,profileArchived:u,profileCandidateAdded:m,profileCommentAdded:l,profileDocumentAdded:r,profileDocumentDownloaded:a,profileDocumentRequested:f,profileRecruitmentAdded:p,profileRecruitmentRemoved:h,profileTabSelected:b,profileViewed:w,profileEmailSent:S}}function Oe(){const e="Recruitment";function t(n){if(!n)throw new Error(`Missing arguments for domain "${e}"`);const s={companyId:n.companyId?n.companyId.toString():null};return n.institutionId&&(s.institutionId=[n.institutionId.toString()]),n.origin&&(s.origin=n.origin.toString()),s}async function i(n){return g().track(n.name,e,{...t(n),recruitmentId:n.recruitmentId.toString(),count:parseInt(n.count)})}return{candidateAdded:i}}function $e(){const e="Visual Builder";function t(o,Je){if(!o)throw new Error(`Missing arguments for domain "${e}"`);const M={companyId:o.companyId?o.companyId.toString():null};return Je&&(M.productId=o.companyId?o.companyId+"_2":null),o.selections&&(M.selections=o.selections),o.error&&(M.error=o.error),o.institutionId&&(M.institutionId=[o.institutionId.toString()]),M}async function i(o){return g().page(o.name,e,t(o.properties,!0))}async function n(o){return g().track(o.name,e,t(o.properties),!0)}async function s(o){return g().track(o.name,e,t(o.properties,!0))}async function c(o){return g().page(o.name,e,t(o.properties,!0))}async function u(o){return g().page(o.name,e,t(o.properties,!0))}async function m(o){return g().track(o.name,e,t(o.properties,!0))}async function l(o){return g().page(o.name,e,t(o.properties,!0))}async function r(o){return g().page(o.name,e,t(o.properties,!0))}async function a(o){return g().page(o.name,e,t(o.properties,!0))}async function f(o){return g().track(o.name,e,t(o.properties,!0))}async function p(o){return g().page(o.name,e,t(o.properties,!0))}async function h(o){return g().page(o.name,e,t(o.properties,!0))}async function b(o){return g().track(o.name,e,t(o.properties,!0))}async function w(o){return g().track(o.name,e,t(o.properties,!0))}async function S(o){return g().page(o.name,e,t(o.properties,!0))}async function d(o){return g().page(o.name,e,t(o.properties,!0))}async function P(o){return g().page(o.name,e,t(o.properties,!0))}async function E(o){return g().page(o.name,e,t(o.properties,!0))}async function I(o){return g().page(o.name,e,t(o.properties,!1))}async function xe(o){return g().track(o.name,e,t(o.properties,!0))}async function _e(o){return g().track(o.name,e,t(o.properties,!0))}async function je(o){return g().track(o.name,e,t(o.properties,!0))}async function Be(o){return g().track(o.name,e,t(o.properties,!0))}async function ze(o){return g().track(o.name,e,t(o.properties,!0))}async function Ue(o){return g().track(o.name,e,t(o.properties,!0))}async function Ve(o){return g().track(o.name,e,t(o.properties,!0))}async function Fe(o){return g().track(o.name,e,t(o.properties,!0))}async function He(o){return g().track(o.name,e,t(o.properties,!0))}async function qe(o){return g().track(o.name,e,t(o.properties,!0))}async function Qe(o){return g().track(o.name,e,t(o.properties,!0))}async function Ge(o){return g().track(o.name,e,t(o.properties,!0))}async function Ke(o){return g().track(o.name,e,t(o.properties,!0))}async function We(o){return g().page(o.name,e,t(o.properties,!1))}return{careerSitePreviewViewed:i,careerSitePublished:n,setupBenefitCustomAdded:s,setupBenefitViewed:c,setupCandidateInformationViewed:u,setupContactAdded:m,setupContactViewed:l,setupEditionDoneViewed:r,setupExternalLinkViewed:a,setupImageUploaded:f,setupImageViewed:p,setupLocationViewed:h,setupPresentationContentAdded:b,setupPresentationNewTabAdded:w,setupPresentationViewed:S,setupSettingsDoneViewed:d,setupSocialNetworkViewed:P,setupThemeViewed:E,visualBuilderViewed:I,setupImageUploadFailed:xe,fastCopyLinkClicked:_e,setupBenefitCustomDeleted:je,setupBenefitCustomEdited:Be,setupContactDeleted:ze,setupContactEdited:Ue,setupContactNewClicked:Ve,setupPresentationContentDeleted:Fe,setupPresentationContentDuplicated:He,setupPresentationContentMoved:qe,setupPresentationTabDeleted:Qe,setupPresentationTabEdited:Ge,setupPresentationTabMoved:Ke,setupSEOViewed:We}}const ae=Object.freeze(Object.defineProperty({__proto__:null,useAnalyticsHublerApplication:Ce,useAnalyticsProfile:Se,useAnalyticsRecruitment:Oe,useAnalyticsVisualBuilder:$e},Symbol.toStringTag,{value:"Module"}));function Ki(){function e(i){return g().identify(i.id,{email:i.email,firstName:i.firstname,lastName:i.lastname,createdAt:i.createdAt,type:"Hubler",lang:"fr",medium:t()?"MOBILE_DEVICE":"WEB_BROWSER"})}function t(){let i=!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)))&&(i=!0)}(navigator.userAgent||navigator.vendor||window.opera),i}return{identifyCandidate:e}}let H=null;const Wi=async(e,t)=>{try{return await G(),A.info("[identify]",[e,t]),window.analytics.identify(e,t)}catch{A.error("[identify]",[e,t])}},Ji=async(e,t,i)=>{typeof i!="object"&&(i={});try{return await G(),A.info("[page]",[e,t,i]),window.analytics.page(e,{category:t,...i})}catch{A.error("[page]",[e,t,i])}},Zi=async(e,t,i)=>{typeof i!="object"&&(i={});try{return await G(),A.info("[track]",[e,t,i]),window.analytics.track(e,{category:t,...i})}catch{A.error("[track]",[e,t,i])}},Z=()=>{const e=$.getEnvironment();return e==="prod"||e==="production"?"pPROC7dPoJ7XdxHrwsTQNXCGX79MJjhp":e==="staging"?"823rqOTwVk1ZCWVyBAdLInZ77TcFF0CF":"TMZX6evFnu87JrBHV5qLwHsld5C6hilZ"},Te=()=>{const e=window.analytics=window.analytics||[];if(!e.initialize&&e.invoked)A.error("Segment snippet included twice.");else{e.invoked=!0,e.methods=["trackSubmit","trackClick","trackLink","trackForm","pageview","identify","reset","group","track","ready","alias","debug","page","once","off","on","addSourceMiddleware","addIntegrationMiddleware","setAnonymousId","addDestinationMiddleware"],e.factory=function(t){return function(){if(window.analytics.initialized)return window.analytics[t].apply(window.analytics,arguments);const i=Array.prototype.slice.call(arguments);return i.unshift(t),e.push(i),e}};for(let t=0;t<e.methods.length;t++){const i=e.methods[t];e[i]=e.factory(i)}e.load=function(t,i){const n=document.createElement("script");n.id="analytics-script",n.type="text/javascript",n.async=!0,n.src="https://cdn.segment.com/analytics.js/v1/"+t+"/analytics.min.js",n.onerror=()=>window.dispatchEvent(new Event("analytics-error"));const s=document.getElementsByTagName("script")[0];s.parentNode.insertBefore(n,s),e._loadOptions=i},e._writeKey=Z(),e.SNIPPET_VERSION="4.16.1",e.load(Z()),e.page(),e.ready(()=>window.dispatchEvent(new Event("analytics-ready")))}},G=()=>(H!==null||(H=new Promise((e,t)=>{if(window.addEventListener("analytics-ready",()=>{A.info("Analytics script loaded successfully."),e()}),window.addEventListener("analytics-error",()=>{A.error("Analytics script failed to load. Consider disabling your AdBlocker."),t()}),A.info("Loading Analytics script."),window.analytics)return e();Te()})),H),Xi={key:Z,appendScript:Te,ready:G,identify:Wi,page:Ji,track:Zi},Yi="AIzaSyDicyRD6rvVdnicp1tgV0ElazASNGbyyTs";let Le=!1;const Ne=()=>new Promise(e=>{T()||Le||window.google&&window.google.maps?e():(window.addEventListener("gmap-ready",()=>e()),ns())}),es=(e,t)=>Ne().then(()=>{T()||ts(e,t)}),ts=(e,t)=>{const i=new window.google.maps.places.Autocomplete(e,{componentRestrictions:{country:["fr","re","yt","gp","mq"]}});window.google.maps.event.addListener(i,"place_changed",()=>{const n=i.getPlace();n.formatted_address&&t&&t(n.formatted_address,n)})},ns=()=>{window.onGmapScriptReady=()=>{};const e=document.createElement("script");e.src="https://maps.googleapis.com/maps/api/js?key="+Yi+"&libraries=places&callback=onGmapScriptReady",e.async=!0,e.defer=!0,e.onload=()=>window.dispatchEvent(new Event("gmap-ready")),document.body.appendChild(e),Le=!0},is={scriptReady:Ne,autocompleteInput:es},ss={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"}},rs={fr:ss};let X=null;const Me=()=>X,os=(e={})=>{let t=e.locale||"fr";const i=l=>t=l,n=()=>t,s=ee(rs,(e==null?void 0:e.messages)||{}),c=(l,r)=>{const a=O(s,`${t}.${l}`);return a?r?as(a,r):a:l},u=(l,r)=>{const a=O(s,`${t}.${l}`);return a?cs(a,r):l};return X={t:c,tNode:u,setLocale:i,getLocale:n,install:l=>{l.config.globalProperties.$t=c,l.config.globalProperties.$tNode=u}},X},as=(e,t)=>e?e.replace(/{{ ?([a-zA-Z_.]+) ?}}/g,(i,n)=>O(t,n)):null,cs=(e,t)=>{if(!e)return null;const i=e.split(/(\{[{%]+[^{}]*[%}]+})/g).filter(n=>n!=="").map(n=>{const s=n.startsWith("{%")&&n.endsWith("%}")?"slot":n.startsWith("{{")&&n.endsWith("}}")?"variable":"text";if(s==="text")return()=>ce.text(n);n=n.replace(/[{}%]/g,"").trim();const c=n.match(/^[a-zA-Z_.]+/)[0];n=n.replace(c,"").trim();const u={};return n!==""&&([...n.matchAll(/([a-zA-Z_.]+)(=([a-zA-Z_.]+))?/g)].reduce((r,a)=>(a[3]===void 0?N(r,a[1],O(t,a[1])):N(r,a[1],O(t,a[3])),r),u),[...n.matchAll(/([a-zA-Z_.]+)="([^"]+)"/g)].reduce((r,a)=>{let f=a[2];return new RegExp(/^[0-9]*$/).exec(a[2])?f=parseInt(a[2]):new RegExp(/^(true|false)$/).exec(a[2])&&(f=a[2]==="true"),r[a[1]]=f,r},u)),m=>ce[s](c,t,m,u)});return{setup:(n,{slots:s})=>()=>i.map(c=>c(s))}},ce={slot:(e,t,i,n)=>L.h("span",{class:"node node--slot"},i[e.trim()](n)),variable:(e,t)=>L.h("span",{class:"node node--variable"},O(t,e.trim())),text:e=>L.h("span",{class:"node node--text"},e)};function us(e){const{t}=Me(),i={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,s)=>n===1?t(s?"timeAgo.last-month":"timeAgo.next-month"):`${n} ${t("timeAgo.month",n)}`,year:(n,s)=>n===1?t(s?"timeAgo.last-year":"timeAgo.next-year"):`${n} ${t("timeAgo.year",n)}`,day:(n,s)=>n===1?t(s?"timeAgo.yesterday":"timeAgo.tomorrow"):`${n} ${t("timeAgo.day",n)}`,week:(n,s)=>n===1?t(s?"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 tt.useTimeAgo(e,{fullDateFormatter:n=>n.toLocaleDateString(),messages:i})}function ls(){let e=null;function t(){return e}function i(){return e.controller}function n(){return"use"+e.controller.charAt(0).toUpperCase()+e.controller.slice(1)+"QSController"}function s(){return e.action}function c(){return e.arguments}function u(){return!!(e&&e.controller&&e.action)}function m(){window.location.search.length!==0&&(e=window.location.search.substring(1).split("&").reduce((l,r)=>{const a=r.split("=");return a[0]==="controller"||a[0]==="action"?l[a[0]]=decodeURIComponent(a[1]):l.arguments[a[0]]=decodeURIComponent(a[1]),l},{controller:null,action:null,arguments:{}}))}return m(),{getParams:t,getController:i,getControllerComposableName:n,getAction:s,getArguments:c,hasAction:u}}function ds(){async function e({domain:n,event:s,...c}){const u="useAnalytics"+n.charAt(0).toUpperCase()+n.slice(1);if(!t(u))throw new Error(`Domain ${n} is not defined`);const m=ae[u]();if(!i(m,s))throw new Error(`Event ${s} is not defined in domain ${n}`);return m[s](c)}function t(n){return!!ae[n]}function i(n,s){return!!n[s]}return{call:e}}const ue=Object.freeze(Object.defineProperty({__proto__:null,useAnalyticsQSController:ds},Symbol.toStringTag,{value:"Module"}));function ms(e){if(!e.hasAction())throw new Error("No action found in router");function t(){if(!i())throw new Error(`Controller ${e.getController()} not found`);const s=ue[e.getControllerComposableName()]();if(!n(s))throw new Error(`Action ${e.getAction()} not found in controller ${e.getController()}`);return s[e.getAction()](e.getArguments())}function i(){return e.getControllerComposableName()in ue}function n(s){return e.getAction()in s}return{dispatch:t}}function fs(){let e=!1;function t(s,c,u){n(),u()}function i(s,c,u){if(!e)return e=!0,t(s,c,u);u()}function n(){const s=ls();if(!s.hasAction())return;ms(s).dispatch()}return{vueRouterBeforeEach:t,vueRouterBeforeFirst:i,handle:n}}const ps=()=>({getAssetUrl:t=>`${$.getBaseAssetsUrl()}${t}`}),v=()=>$.getMainAppHost(),hs=()=>`${v()}/rh/establishments`,ys=e=>`${v()}/rh/establishment/${e}`,gs=e=>{var t;return typeof e=="string"?e:typeof e=="object"&&((t=e==null?void 0:e.urls)!=null&&t.display)?e.urls.display:null},bs=()=>`${v()}/rh/dashboard`,ws=e=>`${v()}/candidate-invite/establishment/${e}`,As=(e,t=!1)=>t?`${v()}/cvbank/${e}`:`${v()}/rh/establishment/${e}/cvtheque`,vs=(e,t)=>`${v()}/user-profile/establishment/${e}/user/${t}`,Rs=e=>`${v()}/rh/establishment/${e}/recruitment`,Ps=(e,t)=>`${v()}/rh/establishment/${e}/recruitment/${t}`,Es=(e,t)=>`${v()}/rh/establishment/${e}/recruitment/${t}/kanban`,ks=e=>`${v()}/rh/establishment/${e}/career-configuration`,Is=(e,t=null)=>t?`${v()}/career-website/${e}/${t}`:`${v()}/career-website/${e}`,Cs=(e,t)=>`${v()}/career-website-preview/${e}/${t}`,Ss=(e,t=null)=>{const i=v().replace("://",`://${e}.`);return t?`${i}?_version=${t}`:`${i}`},Os=e=>`${v()}/rh/establishment/${e}/stats`,$s=e=>`${v()}/rh/establishment/${e}/backoffice`,Ts=()=>`${v()}/rh/settings/general`;function Ls(){return{root:v,establishments:hs,establishment:ys,img:gs,dashboard:bs,candidateInvite:ws,cvtheque:As,userProfile:vs,recruitments:Rs,recruitment:Ps,recruitmentKanban:Es,career:ks,careerConfig:Is,careerPreview:Cs,careerWebsite:Ss,statistics:Os,backoffice:$s,userSettings:Ts}}const le=new Set;let x,Y={ignore:e=>e.startsWith("Ui")};const J=e=>{if(e!=null&&e.classList){e._cssChecked=!0;for(const t of e.classList)x.has(t)||le.has(t)||Y.ignore(t)||(le.add(t),A.error(`Undefined CSS class: ${t}`))}},De=e=>{var t;for(const i of e)if(i!=null&&i.cssRules&&(i==null?void 0:i.cssRules.length)>0)De(i.cssRules);else if(i.selectorText){const n=(t=i.selectorText)==null?void 0:t.match(/\.[\w-]+/g);if(n)for(const s of n)x.add(s.substr(1))}},Ns=(e={})=>{if(x)return x;x=new Set,Y={...Y,...e},De(document.styleSheets),new MutationObserver(i=>{for(const n of i)if(n.type==="childList"&&(n!=null&&n.addedNodes)){for(const s of n.addedNodes)if(!(s.nodeType===3||s.nodeType===8)){J(s);for(const c of s.querySelectorAll("*"))J(c)}}else(n==null?void 0:n.attributeName)==="class"&&J(n.target)}).observe(document,{attributes:!0,childList:!0,subtree:!0})},Ms="0.2.75";exports.Analytics=Xi;exports.BaseLogger=Q;exports.Gmap=is;exports.SDKConfig=$;exports.SDKLogger=A;exports.VERSION=Ms;exports._clone=be;exports._get=O;exports._map=Tt;exports._merge=ee;exports._pathList=te;exports._set=N;exports._setMany=ge;exports.buildObjectValidation=q;exports.createI18n=os;exports.ensureScheme=Nt;exports.hasOrIsInClass=Ot;exports.inBrowser=$t;exports.inNode=T;exports.isArray=j;exports.isArrayOf=It;exports.isBoolean=bt;exports.isDate=vt;exports.isFalsy=kt;exports.isFunction=Rt;exports.isMobile=yt;exports.isNotNullOrUndefined=Pt;exports.isNull=pe;exports.isNullOrUndefined=ye;exports.isNumber=wt;exports.isObject=B;exports.isObjectOf=Ct;exports.isObjectValid=St;exports.isString=At;exports.isTruthy=Et;exports.isUndefined=he;exports.sanitizeObject=gt;exports.secureScheme=Lt;exports.transpileAsserts=fe;exports.useActivityRepository=an;exports.useAnalyticsHublerApplication=Ce;exports.useAnalyticsIdentify=Ki;exports.useAnalyticsProfile=Se;exports.useAnalyticsRecruitment=Oe;exports.useAnalyticsVisualBuilder=$e;exports.useAssetUrls=ps;exports.useAuthentication=_;exports.useAuthorization=Ie;exports.useAuthorizationStore=Gi;exports.useCanAccessEstablishmentMiddleware=Qi;exports.useCandidateRepository=bn;exports.useCommentRepository=Pn;exports.useContractTypeRepository=In;exports.useCookieStorage=Ae;exports.useCvbankRepository=On;exports.useCvthequeRepository=Tn;exports.useDiplomaRepository=Nn;exports.useDocumentRepository=Bn;exports.useDomainUrls=Ls;exports.useEmailHistoryRepository=Un;exports.useEmailRepository=Hn;exports.useEmailTemplateRepository=Gn;exports.useEstablishmentCareerRepository=Yn;exports.useEstablishmentRepository=ne;exports.useFeatureFlagRepository=si;exports.useI18n=Me;exports.useJobRepository=ai;exports.useLabelRepository=fi;exports.useLocaleTimeAgo=us;exports.useObjectValidation=me;exports.useOfferRepository=hi;exports.usePrivateRequest=y;exports.useQSAction=fs;exports.useRecruiterRepository=gi;exports.useRecruitmentRepository=ki;exports.useRegisterRepository=$i;exports.useRegistrationRepository=Li;exports.useRequest=R;exports.useSpecialityRepository=Di;exports.useTagRepository=_i;exports.useTalentRepository=zi;exports.useUndefinedCssClasses=Ns;exports.useUserRepository=ie;
package/dist/core.js CHANGED
@@ -1,7 +1,7 @@
1
1
  var _e = Object.defineProperty;
2
2
  var je = (e, t, i) => t in e ? _e(e, t, { enumerable: !0, configurable: !0, writable: !0, value: i }) : e[t] = i;
3
3
  var C = (e, t, i) => (je(e, typeof t != "symbol" ? t + "" : t, i), i);
4
- import { getCurrentScope as Be, onScopeDispose as ze, ref as Ve, h as H } from "vue";
4
+ import { getCurrentScope as Be, onScopeDispose as ze, ref as Ve, h as Q } from "vue";
5
5
  import Ue from "axios";
6
6
  import { defineStore as Fe } from "pinia";
7
7
  import { useTimeAgo as He } from "@vueuse/core";
@@ -131,7 +131,7 @@ function Ye() {
131
131
  function et(e) {
132
132
  return typeof e == "string" ? ae(e) : typeof e == "object" && e !== null ? e : {};
133
133
  }
134
- function Q(e, t = {}) {
134
+ function q(e, t = {}) {
135
135
  const i = tt(e);
136
136
  if (!t.doNotParse)
137
137
  try {
@@ -162,7 +162,7 @@ class nt {
162
162
  new Set(Object.keys(t).concat(Object.keys(this.cookies))).forEach((n) => {
163
163
  t[n] !== this.cookies[n] && this._emitChange({
164
164
  name: n,
165
- value: Q(this.cookies[n])
165
+ value: q(this.cookies[n])
166
166
  });
167
167
  });
168
168
  }
@@ -173,13 +173,13 @@ class nt {
173
173
  this.pollingInterval && clearInterval(this.pollingInterval);
174
174
  }
175
175
  get(t, i = {}) {
176
- return i.doNotUpdate || this.update(), Q(this.cookies[t], i);
176
+ return i.doNotUpdate || this.update(), q(this.cookies[t], i);
177
177
  }
178
178
  getAll(t = {}) {
179
179
  t.doNotUpdate || this.update();
180
180
  const i = {};
181
181
  for (let n in this.cookies)
182
- i[n] = Q(this.cookies[n], t);
182
+ i[n] = q(this.cookies[n], t);
183
183
  return i;
184
184
  }
185
185
  set(t, i, n) {
@@ -240,15 +240,24 @@ const Hi = () => {
240
240
  return function(t) {
241
241
  (/(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(t) || /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(t.substr(0, 4))) && (e = !0);
242
242
  }(navigator.userAgent || navigator.vendor || window.opera), e;
243
- }, Qi = () => typeof window < "u" && typeof window.document < "u", T = () => typeof process < "u" && process.versions != null && process.versions.node != null, st = (e, t) => K(e, ot(t)), K = (e, t) => {
243
+ }, st = (e, t) => W(e, ot(t)), W = (e, t) => {
244
244
  const i = {};
245
- return te(t).forEach((n) => i[n] = K(e == null ? void 0 : e[n], t[n])), "$item" in t && (e == null || e.forEach((n, r) => i[r] = K(n, t.$item))), i.$valid = (!t.$asserts || t.$asserts.every((n) => n(e))) && te(i).every((n) => i[n].$valid), i;
245
+ return te(t).forEach((n) => i[n] = W(e == null ? void 0 : e[n], t[n])), "$item" in t && (e == null || e.forEach((n, r) => i[r] = W(n, t.$item))), i.$valid = (!t.$asserts || t.$asserts.every((n) => n(e))) && te(i).every((n) => i[n].$valid), i;
246
246
  }, ot = (e) => dt(
247
247
  Object.entries(e).reduce((t, [i, n]) => (t[`${i.replaceAll(".[]", ".$item")}${i.length ? "." : ""}$asserts`] = Array.isArray(n) ? n : [n], t), {})
248
- ), qi = (e, t, i) => (e = JSON.parse(JSON.stringify(e)), ue(e).forEach((r) => {
248
+ ), Qi = (e, t, i) => (e = JSON.parse(JSON.stringify(e)), ue(e).forEach((r) => {
249
249
  const c = r.replace(/\.[0-9]+/g, ".[]");
250
250
  O(t, `${r}.$valid`) === !1 && i[c] !== void 0 && D(e, r, i[c]);
251
- }), e), te = (e) => Object.keys(e).filter((t) => !t.startsWith("$")), Gi = (e) => typeof e == "boolean", Ki = (e) => typeof e == "number", Wi = (e) => typeof e == "string", Y = (e) => Array.isArray(e), U = (e) => typeof e == "object" && !Y(e) && e !== null, Ji = (e) => e instanceof Date, Zi = (e) => typeof e == "function", at = (e) => e === null, ct = (e) => e === void 0, ut = (e) => at(e) || ct(e), Xi = (e) => !ut(e), Yi = (e) => !!e, er = (e) => !e, tr = (e, t) => Y(e) && e.every((i) => t(i)), nr = (e, t) => U(e) && Object.values(e).every((i) => t(i)), ir = (e, t) => st(e, t).$valid, O = (e, t, i) => {
251
+ }), e), te = (e) => Object.keys(e).filter((t) => !t.startsWith("$")), qi = (e) => typeof e == "boolean", Gi = (e) => typeof e == "number", Ki = (e) => typeof e == "string", U = (e) => Array.isArray(e), F = (e) => typeof e == "object" && !U(e) && e !== null, Wi = (e) => e instanceof Date, Ji = (e) => typeof e == "function", at = (e) => e === null, ct = (e) => e === void 0, ut = (e) => at(e) || ct(e), Zi = (e) => !ut(e), Xi = (e) => !!e, Yi = (e) => !e, er = (e, t) => U(e) && e.every((i) => t(i)), tr = (e, t) => F(e) && Object.values(e).every((i) => t(i)), nr = (e, t) => st(e, t).$valid, ir = (e, t, i = !1) => {
252
+ U(t) || (t = [t]);
253
+ let n = e;
254
+ for (; n; ) {
255
+ if (n.classList && t[i ? "every" : "some"]((r) => n.classList.contains(r)))
256
+ return !0;
257
+ n = n.parentElement;
258
+ }
259
+ return !1;
260
+ }, rr = () => typeof window < "u" && typeof window.document < "u", T = () => typeof process < "u" && process.versions != null && process.versions.node != null, O = (e, t, i) => {
252
261
  const n = typeof t == "string" ? t.split(".") : [t];
253
262
  let r = e;
254
263
  const c = (m) => m != null, u = (m) => typeof m == "object";
@@ -274,12 +283,12 @@ const Hi = () => {
274
283
  }
275
284
  }), e;
276
285
  }, dt = (e, t = {}) => {
277
- const i = U(e) ? Object.entries(e) : e;
286
+ const i = F(e) ? Object.entries(e) : e;
278
287
  for (const [n, r] of i)
279
288
  D(t, n, r);
280
289
  return t;
281
- }, rr = (e, t = {}) => {
282
- const i = U(e) ? Object.entries(e) : e;
290
+ }, sr = (e, t = {}) => {
291
+ const i = F(e) ? Object.entries(e) : e;
283
292
  for (const [n, r] of i)
284
293
  D(t, n, r(t, n));
285
294
  return t;
@@ -300,10 +309,10 @@ const Hi = () => {
300
309
  const n = [];
301
310
  for (const r in e) {
302
311
  const c = e[r], u = i ? `${i}.${r}` : r;
303
- t(r, u, c) && (n.push(u), (U(c) || Y(c)) && n.push(...ue(c, t, u)));
312
+ t(r, u, c) && (n.push(u), (F(c) || U(c)) && n.push(...ue(c, t, u)));
304
313
  }
305
314
  return n;
306
- }, sr = (e) => e.startsWith("http:") ? e.replace("http:", "https:") : e, or = (e, t = !1) => e.startsWith("http:") || e.startsWith("https:") ? e : t ? `https://${e}` : `http://${e}`, de = () => typeof window < "u" && (window != null && window.location) ? new URL(window.location).hostname : void 0, ne = () => {
315
+ }, or = (e) => e.startsWith("http:") ? e.replace("http:", "https:") : e, ar = (e, t = !1) => e.startsWith("http:") || e.startsWith("https:") ? e : t ? `https://${e}` : `http://${e}`, de = () => typeof window < "u" && (window != null && window.location) ? new URL(window.location).hostname : void 0, ne = () => {
307
316
  const e = de();
308
317
  return !e || e === "localhost" ? e : `.${e}`;
309
318
  }, mt = () => ({ path: "/" }), ft = (e) => ({
@@ -311,7 +320,7 @@ const Hi = () => {
311
320
  domain: e,
312
321
  sameSite: "none",
313
322
  secure: !0
314
- }), q = (e) => {
323
+ }), G = (e) => {
315
324
  if (!(T() || !e))
316
325
  return e.startsWith("localhost") ? mt() : ft(e);
317
326
  };
@@ -319,9 +328,9 @@ function pt() {
319
328
  const e = it(), t = (c) => e.get(c), i = (c, u) => e.set(
320
329
  c,
321
330
  u,
322
- q(ne())
331
+ G(ne())
323
332
  ), n = (c) => {
324
- e.remove(c), e.remove(c, q(de())), e.remove(c, q(ne()));
333
+ e.remove(c), e.remove(c, G(de())), e.remove(c, G(ne()));
325
334
  };
326
335
  return {
327
336
  getItem: t,
@@ -495,7 +504,7 @@ function gt(e, t, i) {
495
504
  getPayload: c
496
505
  };
497
506
  }
498
- const E = class E {
507
+ const R = class R {
499
508
  /**
500
509
  * Construct the class with the provided sub logger.
501
510
  */
@@ -517,27 +526,27 @@ const E = class E {
517
526
  }
518
527
  /** debug display messages only if level is DEBUG or less */
519
528
  debug(...t) {
520
- this.level <= E.LEVEL_DEBUG && j(this.logger.debug, this.prefix, t);
529
+ this.level <= R.LEVEL_DEBUG && j(this.logger.debug, this.prefix, t);
521
530
  }
522
531
  /** info display messages only if level is INFO or less */
523
532
  info(...t) {
524
- this.level <= E.LEVEL_INFO && j(this.logger.info, this.prefix, t);
533
+ this.level <= R.LEVEL_INFO && j(this.logger.info, this.prefix, t);
525
534
  }
526
535
  /** warn display messages only if level is WARN or less */
527
536
  warn(...t) {
528
- this.level <= E.LEVEL_WARN && j(this.logger.warn, this.prefix, t);
537
+ this.level <= R.LEVEL_WARN && j(this.logger.warn, this.prefix, t);
529
538
  }
530
539
  /** error display messages only if level is ERROR or less */
531
540
  error(...t) {
532
- this.level <= E.LEVEL_ERROR && j(this.logger.error, this.prefix, t);
541
+ this.level <= R.LEVEL_ERROR && j(this.logger.error, this.prefix, t);
533
542
  }
534
543
  };
535
544
  /** Possible logging level by order of verbosity (more verbose first) */
536
- C(E, "LEVEL_DEBUG", 0), C(E, "LEVEL_INFO", 1), C(E, "LEVEL_WARN", 2), C(E, "LEVEL_ERROR", 3), C(E, "LEVEL_OFF", 4);
537
- let W = E;
545
+ C(R, "LEVEL_DEBUG", 0), C(R, "LEVEL_INFO", 1), C(R, "LEVEL_WARN", 2), C(R, "LEVEL_ERROR", 3), C(R, "LEVEL_OFF", 4);
546
+ let J = R;
538
547
  const j = (e, t, i) => {
539
548
  t ? e(t, ...i) : e(...i);
540
- }, A = new W({
549
+ }, A = new J({
541
550
  prefix: "[SDK]"
542
551
  });
543
552
  let le = null, me = null, fe = null, pe = "/", he = null;
@@ -551,7 +560,7 @@ const wt = () => le, bt = (e) => {
551
560
  me = e;
552
561
  }, Pt = () => he, kt = (e) => {
553
562
  he = e;
554
- }, Rt = () => fe, Et = (e) => {
563
+ }, Et = () => fe, Rt = (e) => {
555
564
  if (A.info("[Config] Main App Host:", e), !e)
556
565
  throw new Error("Invalid main app host.");
557
566
  fe = e;
@@ -564,8 +573,8 @@ const wt = () => le, bt = (e) => {
564
573
  setEnvironment: bt,
565
574
  setApiHost: At,
566
575
  setErrorHandler: kt,
567
- getMainAppHost: Rt,
568
- setMainAppHost: Et,
576
+ getMainAppHost: Et,
577
+ setMainAppHost: Rt,
569
578
  setBaseAssetsUrl: It,
570
579
  getBaseAssetsUrl: Ct
571
580
  };
@@ -583,7 +592,7 @@ function St(e) {
583
592
  return i = "/" + l.replace(/^\//g, ""), this;
584
593
  }
585
594
  function d(l = !0, P = !1) {
586
- return l ? i.replace(/:(\w+)/g, (R, I) => P ? "*" : r[I] || ":" + I) : i;
595
+ return l ? i.replace(/:(\w+)/g, (E, I) => P ? "*" : r[I] || ":" + I) : i;
587
596
  }
588
597
  function s(l) {
589
598
  return n = l, this;
@@ -601,12 +610,12 @@ function St(e) {
601
610
  if (!p())
602
611
  return "";
603
612
  let P = "";
604
- for (const R in n)
605
- if (Array.isArray(n[R]))
606
- for (const I of n[R])
607
- P += (P.length ? "&" : "") + `${R}[]=` + I;
613
+ for (const E in n)
614
+ if (Array.isArray(n[E]))
615
+ for (const I of n[E])
616
+ P += (P.length ? "&" : "") + `${E}[]=` + I;
608
617
  else
609
- P += (P.length ? "&" : "") + R + "=" + n[R];
618
+ P += (P.length ? "&" : "") + E + "=" + n[E];
610
619
  return (l ? "?" : "") + P;
611
620
  }
612
621
  function w(l) {
@@ -885,9 +894,9 @@ function g(e, t = "get", i = null) {
885
894
  return c();
886
895
  }, n;
887
896
  }
888
- const jt = (e, t) => g("/v2/activity/candidate/:candidateId/establishment/:establishmentId").setRouteParams({ candidateId: e, establishmentId: t }), ar = () => ({
897
+ const jt = (e, t) => g("/v2/activity/candidate/:candidateId/establishment/:establishmentId").setRouteParams({ candidateId: e, establishmentId: t }), cr = () => ({
889
898
  listByCandidateAndEstablishment: jt
890
- }), Bt = (e, t, i) => g("/candidate/:candidateId/share/establishment/:establishmentId").setMethod("post").setRouteParams({ candidateId: e, establishmentId: t }).setPayload(i), zt = (e, t) => g("/candidate/:candidateId/archive/establishment/:establishmentId").setRouteParams({ candidateId: e, establishmentId: t }), Vt = (e, t) => g("/candidate/:candidateId/archive/establishment/:establishmentId").setMethod("post").setRouteParams({ candidateId: e, establishmentId: t }), Ut = (e, t) => g("/candidate/:candidateId/archive/establishment/:establishmentId").setMethod("delete").setRouteParams({ candidateId: e, establishmentId: t }), Ft = (e, t) => g("/v2/candidates/lookup").setQueryParam("email", e).setQueryParam("establishment-id", t), Ht = (e, t) => g("/v2/candidates").setMethod("post").setQueryParam("establishment-id", e).setPayload(t), Qt = (e, t, i) => g("/v2/candidates/:candidateId").setQueryParam("establishment-id", t).setRouteParams({ candidateId: e }).setMethod("put").setPayload(i), qt = (e) => g("/candidate/register/close/:registrationToken").setMethod("post").setRouteParams({ registrationToken: e }), Gt = (e) => g("/candidate/register/open").setMethod("post").setQueryParam("groups", "register:token").setPayload(e), Kt = (e, t) => g("/establishment/:establishmentId:/candidate/invitation").setRouteParams({ establishmentId: e }).setMethod("post").setPayload(t), cr = () => ({
899
+ }), Bt = (e, t, i) => g("/candidate/:candidateId/share/establishment/:establishmentId").setMethod("post").setRouteParams({ candidateId: e, establishmentId: t }).setPayload(i), zt = (e, t) => g("/candidate/:candidateId/archive/establishment/:establishmentId").setRouteParams({ candidateId: e, establishmentId: t }), Vt = (e, t) => g("/candidate/:candidateId/archive/establishment/:establishmentId").setMethod("post").setRouteParams({ candidateId: e, establishmentId: t }), Ut = (e, t) => g("/candidate/:candidateId/archive/establishment/:establishmentId").setMethod("delete").setRouteParams({ candidateId: e, establishmentId: t }), Ft = (e, t) => g("/v2/candidates/lookup").setQueryParam("email", e).setQueryParam("establishment-id", t), Ht = (e, t) => g("/v2/candidates").setMethod("post").setQueryParam("establishment-id", e).setPayload(t), Qt = (e, t, i) => g("/v2/candidates/:candidateId").setQueryParam("establishment-id", t).setRouteParams({ candidateId: e }).setMethod("put").setPayload(i), qt = (e) => g("/candidate/register/close/:registrationToken").setMethod("post").setRouteParams({ registrationToken: e }), Gt = (e) => g("/candidate/register/open").setMethod("post").setQueryParam("groups", "register:token").setPayload(e), Kt = (e, t) => g("/establishment/:establishmentId:/candidate/invitation").setRouteParams({ establishmentId: e }).setMethod("post").setPayload(t), ur = () => ({
891
900
  share: Bt,
892
901
  isArchived: zt,
893
902
  archive: Vt,
@@ -898,42 +907,42 @@ const jt = (e, t) => g("/v2/activity/candidate/:candidateId/establishment/:estab
898
907
  closeIncompleteRegistration: qt,
899
908
  openNewRegistration: Gt,
900
909
  updateInvitation: Kt
901
- }), Wt = (e, t) => g("/comment/establishment/:establishmentId/candidate/:userId").setRouteParams({ establishmentId: e, userId: t }), Jt = (e, t, i) => g("/comment/establishment/:establishmentId/candidate/:userId").setRouteParams({ establishmentId: e, userId: t }).setMethod("post").setPayload(i), Zt = (e, t) => g("/comment/:commentId").setRouteParams({ commentId: e }).setMethod("put").setPayload(t), Xt = (e) => g("/comment/:commentId").setRouteParams({ commentId: e }).setMethod("delete"), ur = () => ({
910
+ }), Wt = (e, t) => g("/comment/establishment/:establishmentId/candidate/:userId").setRouteParams({ establishmentId: e, userId: t }), Jt = (e, t, i) => g("/comment/establishment/:establishmentId/candidate/:userId").setRouteParams({ establishmentId: e, userId: t }).setMethod("post").setPayload(i), Zt = (e, t) => g("/comment/:commentId").setRouteParams({ commentId: e }).setMethod("put").setPayload(t), Xt = (e) => g("/comment/:commentId").setRouteParams({ commentId: e }).setMethod("delete"), dr = () => ({
902
911
  getForEstablishmentCandidate: Wt,
903
912
  postForEstablishmentCandidate: Jt,
904
913
  update: Zt,
905
914
  remove: Xt
906
- }), Yt = () => k("contractType").isList().addGroup("Term:id").addGroup("Term:name"), en = (e, t = !0) => g("contractType/establishment/:establishmentId").isList().setRouteParams({ establishmentId: e }).setQueryParam("all", t).addGroup("Term:id").addGroup("Term:name"), dr = () => ({
915
+ }), Yt = () => k("contractType").isList().addGroup("Term:id").addGroup("Term:name"), en = (e, t = !0) => g("contractType/establishment/:establishmentId").isList().setRouteParams({ establishmentId: e }).setQueryParam("all", t).addGroup("Term:id").addGroup("Term:name"), lr = () => ({
907
916
  list: Yt,
908
917
  listByEstablishment: en
909
- }), tn = (e) => g("/v2/talents").isList().setQueryParam("establishment-id", e), nn = (e) => g("/v2/talent/mark-as-seen/:talentId").setRouteParams({ talentId: e }).setMethod("post"), lr = () => ({
918
+ }), tn = (e) => g("/v2/talents").isList().setQueryParam("establishment-id", e), nn = (e) => g("/v2/talent/mark-as-seen/:talentId").setRouteParams({ talentId: e }).setMethod("post"), mr = () => ({
910
919
  list: tn,
911
920
  markAsSeen: nn
912
- }), rn = (e, t, i) => g("/cvtheque/establishment/:establishmentId/candidate/:candidateId/label/synchronize").setRouteParams({ establishmentId: e, candidateId: t }).setMethod("post").setPayload(i), mr = () => ({
921
+ }), rn = (e, t, i) => g("/cvtheque/establishment/:establishmentId/candidate/:candidateId/label/synchronize").setRouteParams({ establishmentId: e, candidateId: t }).setMethod("post").setPayload(i), fr = () => ({
913
922
  syncCandidateLabels: rn
914
- }), sn = () => k("diploma").isList().addGroup("Term:id").addGroup("Term:name"), fr = () => ({
923
+ }), sn = () => k("diploma").isList().addGroup("Term:id").addGroup("Term:name"), pr = () => ({
915
924
  list: sn
916
- }), on = (e) => g("document/candidate/:candidateId").setRouteParams({ candidateId: e }).isList().disablePagination(), an = (e, t) => g("document/candidate/:candidateId/establishment/:establishmentId/recruiter").setRouteParams({ candidateId: e, establishmentId: t }).isList().disablePagination(), cn = (e, t) => g("document/candidate/:candidateId/establishment/:establishmentId/candidate").setRouteParams({ candidateId: e, establishmentId: t }).isList().disablePagination(), un = (e) => g("document/recruiter").setMethod("post").setPayload(e), dn = (e) => g("document/:documentId").setRouteParams({ documentId: e }).setMethod("delete"), pr = () => ({
925
+ }), on = (e) => g("document/candidate/:candidateId").setRouteParams({ candidateId: e }).isList().disablePagination(), an = (e, t) => g("document/candidate/:candidateId/establishment/:establishmentId/recruiter").setRouteParams({ candidateId: e, establishmentId: t }).isList().disablePagination(), cn = (e, t) => g("document/candidate/:candidateId/establishment/:establishmentId/candidate").setRouteParams({ candidateId: e, establishmentId: t }).isList().disablePagination(), un = (e) => g("document/recruiter").setMethod("post").setPayload(e), dn = (e) => g("document/:documentId").setRouteParams({ documentId: e }).setMethod("delete"), hr = () => ({
917
926
  listByCandidate: on,
918
927
  listByCandidateAndEstablishmentFromRecruiter: an,
919
928
  listByCandidateAndEstablishmentFromCandidate: cn,
920
929
  addFromRecruiter: un,
921
930
  remove: dn
922
- }), ln = (e, t) => g("/v2/establishments/:establishmentId/email-history").setRouteParams({ establishmentId: t }).setQueryParam("receiverId", e).isList().disablePagination(), hr = () => ({
931
+ }), ln = (e, t) => g("/v2/establishments/:establishmentId/email-history").setRouteParams({ establishmentId: t }).setQueryParam("receiverId", e).isList().disablePagination(), yr = () => ({
923
932
  listByCandidateAndEstablishment: ln
924
- }), mn = (e, t) => g("/email/candidate/:candidateId").setMethod("post").setRouteParams({ candidateId: e }).setPayload(t), fn = (e, t) => g("/v2/emails/send").setMethod("post").setPayload({ recipientIds: e, ...t }), yr = () => ({
933
+ }), mn = (e, t) => g("/email/candidate/:candidateId").setMethod("post").setRouteParams({ candidateId: e }).setPayload(t), fn = (e, t) => g("/v2/emails/send").setMethod("post").setPayload({ recipientIds: e, ...t }), gr = () => ({
925
934
  sendToCandidate: mn,
926
935
  sendToRecipients: fn
927
936
  }), pn = (e, t = !0) => {
928
937
  const i = g("/v2/establishments/:establishmentId/email-templates").setRouteParams({ establishmentId: e }).isList().disablePagination();
929
938
  return t && i.setQueryParam("global", !0), i;
930
- }, hn = () => g("/v2/self/email-templates").isList().disablePagination(), gr = () => ({
939
+ }, hn = () => g("/v2/self/email-templates").isList().disablePagination(), wr = () => ({
931
940
  listByEstablishment: pn,
932
941
  listSelf: hn
933
942
  }), yn = (e, t) => g("establishment-career/:establishmentId/:versionId").setRouteParams({ establishmentId: e, versionId: t }), gn = (e, t = "published") => g("establishment-career/:establishmentId/state/:state").setRouteParams({ establishmentId: e, state: t }), wn = (e, t, i = null) => {
934
943
  const n = i !== null ? g("establishment-career/:establishmentId/:versionId").setRouteParams({ establishmentId: e, versionId: i }) : g("establishment-career/:establishmentId").setRouteParams({ establishmentId: e });
935
944
  return n.setMethod("post").setPayload(t), n;
936
- }, bn = (e, t) => g("establishment-career/:establishmentId/logo-banner").setMethod("post").setRouteParams({ establishmentId: e }).setPayload(t), vn = (e, t, i) => g("establishment-career/:establishmentId/publish/:versionId").setMethod("post").setRouteParams({ establishmentId: e, versionId: t }).setPayload(i), wr = () => ({
945
+ }, bn = (e, t) => g("establishment-career/:establishmentId/logo-banner").setMethod("post").setRouteParams({ establishmentId: e }).setPayload(t), vn = (e, t, i) => g("establishment-career/:establishmentId/publish/:versionId").setMethod("post").setRouteParams({ establishmentId: e, versionId: t }).setPayload(i), br = () => ({
937
946
  readById: yn,
938
947
  readByState: gn,
939
948
  upsert: wn,
@@ -942,24 +951,24 @@ const jt = (e, t) => g("/v2/activity/candidate/:candidateId/establishment/:estab
942
951
  }), An = (e) => k("establishment/:establishmentId").setRouteParams({ establishmentId: e }), Pn = (e) => g("establishment/:establishmentId/authorizations").setRouteParams({ establishmentId: e }), ye = () => ({
943
952
  read: An,
944
953
  authorizations: Pn
945
- }), kn = (e) => k("feature-flag/maintenance").setMethod("post").setPayload(e), Rn = (e, t) => k("feature-flag/establishment").setMethod("post").setPayload({ establishment: e, flagName: t }), br = () => ({
954
+ }), kn = (e) => k("feature-flag/maintenance").setMethod("post").setPayload(e), En = (e, t) => k("feature-flag/establishment").setMethod("post").setPayload({ establishment: e, flagName: t }), vr = () => ({
946
955
  maintenanceModeEnabled: kn,
947
- forEstablishment: Rn
948
- }), En = () => k("job").isList().addGroup("Term:id").addGroup("Term:name"), In = (e, t = !0) => g("job/establishment/:establishmentId").isList().setRouteParams({ establishmentId: e }).setQueryParam("all", t).addGroup("Term:id").addGroup("Term:name"), vr = () => ({
949
- list: En,
956
+ forEstablishment: En
957
+ }), Rn = () => k("job").isList().addGroup("Term:id").addGroup("Term:name"), In = (e, t = !0) => g("job/establishment/:establishmentId").isList().setRouteParams({ establishmentId: e }).setQueryParam("all", t).addGroup("Term:id").addGroup("Term:name"), Ar = () => ({
958
+ list: Rn,
950
959
  listByEstablishment: In
951
- }), Cn = (e) => g("/label/establishment/:establishmentId").isList().setRouteParams({ establishmentId: e }), Sn = (e, t) => g("/label/establishment/:establishmentId").setMethod("post").setRouteParams({ establishmentId: e }).setPayload(t), On = (e, t) => g("/label/:labelId").setMethod("put").setRouteParams({ labelId: e }).setPayload(t), $n = (e) => g("/label/:labelId").setMethod("delete").setRouteParams({ labelId: e }), Tn = (e, t, i) => g("/label/establishment/:establishmentId/candidate/:candidateId/synchronize").setMethod("post").setPayload(i).setRouteParams({ establishmentId: e, candidateId: t }), Ar = () => ({
960
+ }), Cn = (e) => g("/label/establishment/:establishmentId").isList().setRouteParams({ establishmentId: e }), Sn = (e, t) => g("/label/establishment/:establishmentId").setMethod("post").setRouteParams({ establishmentId: e }).setPayload(t), On = (e, t) => g("/label/:labelId").setMethod("put").setRouteParams({ labelId: e }).setPayload(t), $n = (e) => g("/label/:labelId").setMethod("delete").setRouteParams({ labelId: e }), Tn = (e, t, i) => g("/label/establishment/:establishmentId/candidate/:candidateId/synchronize").setMethod("post").setPayload(i).setRouteParams({ establishmentId: e, candidateId: t }), Pr = () => ({
952
961
  listByEstablishment: Cn,
953
962
  addToEstablishment: Sn,
954
963
  update: On,
955
964
  remove: $n,
956
965
  syncForCandidate: Tn
957
- }), Ln = (e) => k("offer/:offerId").setRouteParams({ offerId: e }), Pr = () => ({
966
+ }), Ln = (e) => k("offer/:offerId").setRouteParams({ offerId: e }), kr = () => ({
958
967
  read: Ln
959
968
  }), Mn = (e, t = !1) => {
960
969
  const i = g("/recruiter/establishment/:establishmentId").isList().setRouteParams({ establishmentId: e });
961
970
  return t && i.setQueryParam("exclude-me", 1), i;
962
- }, kr = () => ({
971
+ }, Er = () => ({
963
972
  listByEstablishment: Mn
964
973
  }), Nn = (e) => g("/recruitment/:recruitmentId").setRouteParams({ recruitmentId: e }), Dn = (e) => g("/recruitment/mine/establishment/:establishmentId").isList().setRouteParams({ establishmentId: e }), xn = (e, t) => g("/recruitment/mine/establishment/:establishmentId/has-not/candidate/:candidateId").isList().setRouteParams({ establishmentId: e, candidateId: t }), _n = (e, t) => g("/recruitment/mine/establishment/:establishmentId/has/candidate/:candidateId").isList().setRouteParams({ establishmentId: e, candidateId: t }), jn = (e, t) => g("/recruitment/establishment/:establishmentId/has/candidate/:candidateId").isList().setRouteParams({ establishmentId: e, candidateId: t }), Bn = (e, t) => g("/recruitment/:recruitmentId/candidate").setMethod("put").setRouteParams({ recruitmentId: e }).setPayload(t), zn = (e, t) => g("/recruitment/:recruitmentId/candidate/:candidateId").setMethod("delete").setRouteParams({ recruitmentId: e, candidateId: t }), Rr = () => ({
965
974
  read: Nn,
@@ -972,19 +981,19 @@ const jt = (e, t) => g("/v2/activity/candidate/:candidateId/establishment/:estab
972
981
  }), Vn = (e, t, i, n = null) => {
973
982
  const r = k("candidate/register/open").setMethod("post"), c = { email: e };
974
983
  return t === "establishment" && (c.establishmentId = i), t === "offer" && (c.offerId = i), n && (c.referer = n), r.setPayload(c), r;
975
- }, Un = (e, t) => k("candidate/register/update/:token").setMethod("post").setRouteParams({ token: e }).setPayload(t), Fn = (e) => k("candidate/register/read/:token").setRouteParams({ token: e }), Hn = (e) => k("candidate/register/close/:token").setMethod("post").setRouteParams({ token: e }), Er = () => ({
984
+ }, Un = (e, t) => k("candidate/register/update/:token").setMethod("post").setRouteParams({ token: e }).setPayload(t), Fn = (e) => k("candidate/register/read/:token").setRouteParams({ token: e }), Hn = (e) => k("candidate/register/close/:token").setMethod("post").setRouteParams({ token: e }), Ir = () => ({
976
985
  open: Vn,
977
986
  update: Un,
978
987
  read: Fn,
979
988
  close: Hn
980
- }), Qn = (e, t) => g("/v2/registrations/lookup").setQueryParam("candidate-id", e).setQueryParam("establishment-id", t), Ir = () => ({
989
+ }), Qn = (e, t) => g("/v2/registrations/lookup").setQueryParam("candidate-id", e).setQueryParam("establishment-id", t), Cr = () => ({
981
990
  lookupEstablishment: Qn
982
- }), qn = () => k("speciality").isList().addGroup("Term:id").addGroup("Term:name"), Gn = (e, t = !0) => g("speciality/establishment/:establishmentId").isList().setRouteParams({ establishmentId: e }).setQueryParam("all", t).addGroup("Term:id").addGroup("Term:name"), Cr = () => ({
991
+ }), qn = () => k("speciality").isList().addGroup("Term:id").addGroup("Term:name"), Gn = (e, t = !0) => g("speciality/establishment/:establishmentId").isList().setRouteParams({ establishmentId: e }).setQueryParam("all", t).addGroup("Term:id").addGroup("Term:name"), Sr = () => ({
983
992
  list: qn,
984
993
  listByEstablishment: Gn
985
- }), Kn = (e) => g("/tag/public/establishment/:establishmentId").isList().setRouteParams({ establishmentId: e }), Sr = () => ({
994
+ }), Kn = (e) => g("/tag/public/establishment/:establishmentId").isList().setRouteParams({ establishmentId: e }), Or = () => ({
986
995
  listByEstablishment: Kn
987
- }), Wn = (e, t) => g("/v2/talents/lookup").setQueryParam("candidate-id", e).setQueryParam("establishment-id", t), Jn = (e) => g("/v2/talents/index").setMethod("post").setPayload(e), Or = () => ({
996
+ }), Wn = (e, t) => g("/v2/talents/lookup").setQueryParam("candidate-id", e).setQueryParam("establishment-id", t), Jn = (e) => g("/v2/talents/index").setMethod("post").setPayload(e), $r = () => ({
988
997
  lookupTalent: Wn,
989
998
  addCandidateToTalentPool: Jn
990
999
  }), Zn = (e) => k("user/email/isset/:email").setRouteParams({ email: e }), Xn = () => g("user/self").addGroup("user:self"), Yn = (e) => g("/user/:uuid").setRouteParams({ uuid: e }), ei = (e) => k("/user/:uuid").setRouteParams({ uuid: e }), ti = (e) => g("/user/:id/uuid").setRouteParams({ id: e }), ge = () => ({
@@ -1040,7 +1049,7 @@ function ni() {
1040
1049
  }
1041
1050
  }, B;
1042
1051
  }
1043
- async function $r(e, ...t) {
1052
+ async function Tr(e, ...t) {
1044
1053
  if (!V().isAuthenticated())
1045
1054
  throw "ERR_NOT_AUTHENTICATED";
1046
1055
  const n = ni();
@@ -1054,7 +1063,7 @@ async function $r(e, ...t) {
1054
1063
  throw "ERR_MISSING_PERMISSION";
1055
1064
  }
1056
1065
  }
1057
- const Tr = Fe("authorization", {
1066
+ const Lr = Fe("authorization", {
1058
1067
  state: () => ({
1059
1068
  user: void 0,
1060
1069
  establishments: {}
@@ -1241,11 +1250,11 @@ function ri() {
1241
1250
  var I;
1242
1251
  if (!l)
1243
1252
  throw new Error(`Missing arguments for domain "${e}"`);
1244
- const R = {
1253
+ const E = {
1245
1254
  companyId: l.companyId ? l.companyId.toString() : null,
1246
1255
  hublerId: (I = l.hublerId) == null ? void 0 : I.toString()
1247
1256
  };
1248
- return P && (R.productId = l.companyId ? l.companyId + "_2" : null), l.recruitmentId && (R.recruitmentId = l.recruitmentId.toString()), l.selections && (R.selections = l.selections), l.institutionId && (R.institutionId = l.institutionId.map(String)), R;
1257
+ return P && (E.productId = l.companyId ? l.companyId + "_2" : null), l.recruitmentId && (E.recruitmentId = l.recruitmentId.toString()), l.selections && (E.selections = l.selections), l.institutionId && (E.institutionId = l.institutionId.map(String)), E;
1249
1258
  }
1250
1259
  async function i(l) {
1251
1260
  return y().track(l.name, e, t(l.properties), !0);
@@ -1388,7 +1397,7 @@ function oi() {
1388
1397
  async function P(o) {
1389
1398
  return y().page(o.name, e, t(o.properties, !0));
1390
1399
  }
1391
- async function R(o) {
1400
+ async function E(o) {
1392
1401
  return y().page(o.name, e, t(o.properties, !0));
1393
1402
  }
1394
1403
  async function I(o) {
@@ -1400,10 +1409,10 @@ function oi() {
1400
1409
  async function ke(o) {
1401
1410
  return y().track(o.name, e, t(o.properties, !0));
1402
1411
  }
1403
- async function Re(o) {
1412
+ async function Ee(o) {
1404
1413
  return y().track(o.name, e, t(o.properties, !0));
1405
1414
  }
1406
- async function Ee(o) {
1415
+ async function Re(o) {
1407
1416
  return y().track(o.name, e, t(o.properties, !0));
1408
1417
  }
1409
1418
  async function Ie(o) {
@@ -1454,12 +1463,12 @@ function oi() {
1454
1463
  setupPresentationViewed: S,
1455
1464
  setupSettingsDoneViewed: l,
1456
1465
  setupSocialNetworkViewed: P,
1457
- setupThemeViewed: R,
1466
+ setupThemeViewed: E,
1458
1467
  visualBuilderViewed: I,
1459
1468
  setupImageUploadFailed: Pe,
1460
1469
  fastCopyLinkClicked: ke,
1461
- setupBenefitCustomDeleted: Re,
1462
- setupBenefitCustomEdited: Ee,
1470
+ setupBenefitCustomDeleted: Ee,
1471
+ setupBenefitCustomEdited: Re,
1463
1472
  setupContactDeleted: Ie,
1464
1473
  setupContactEdited: Ce,
1465
1474
  setupContactNewClicked: Se,
@@ -1479,7 +1488,7 @@ const ie = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1479
1488
  useAnalyticsRecruitment: si,
1480
1489
  useAnalyticsVisualBuilder: oi
1481
1490
  }, Symbol.toStringTag, { value: "Module" }));
1482
- function Lr() {
1491
+ function Mr() {
1483
1492
  function e(i) {
1484
1493
  return y().identify(i.id, {
1485
1494
  email: i.email,
@@ -1504,14 +1513,14 @@ function Lr() {
1504
1513
  let z = null;
1505
1514
  const ai = async (e, t) => {
1506
1515
  try {
1507
- return await F(), A.info("[identify]", [e, t]), window.analytics.identify(e, t);
1516
+ return await H(), A.info("[identify]", [e, t]), window.analytics.identify(e, t);
1508
1517
  } catch {
1509
1518
  A.error("[identify]", [e, t]);
1510
1519
  }
1511
1520
  }, ci = async (e, t, i) => {
1512
1521
  typeof i != "object" && (i = {});
1513
1522
  try {
1514
- return await F(), A.info("[page]", [e, t, i]), window.analytics.page(e, {
1523
+ return await H(), A.info("[page]", [e, t, i]), window.analytics.page(e, {
1515
1524
  category: t,
1516
1525
  ...i
1517
1526
  });
@@ -1521,14 +1530,14 @@ const ai = async (e, t) => {
1521
1530
  }, ui = async (e, t, i) => {
1522
1531
  typeof i != "object" && (i = {});
1523
1532
  try {
1524
- return await F(), A.info("[track]", [e, t, i]), window.analytics.track(e, {
1533
+ return await H(), A.info("[track]", [e, t, i]), window.analytics.track(e, {
1525
1534
  category: t,
1526
1535
  ...i
1527
1536
  });
1528
1537
  } catch {
1529
1538
  A.error("[track]", [e, t, i]);
1530
1539
  }
1531
- }, J = () => {
1540
+ }, Z = () => {
1532
1541
  const e = $.getEnvironment();
1533
1542
  return e === "prod" || e === "production" ? "pPROC7dPoJ7XdxHrwsTQNXCGX79MJjhp" : e === "staging" ? "823rqOTwVk1ZCWVyBAdLInZ77TcFF0CF" : "TMZX6evFnu87JrBHV5qLwHsld5C6hilZ";
1534
1543
  }, we = () => {
@@ -1553,9 +1562,9 @@ const ai = async (e, t) => {
1553
1562
  n.id = "analytics-script", n.type = "text/javascript", n.async = !0, n.src = "https://cdn.segment.com/analytics.js/v1/" + t + "/analytics.min.js", n.onerror = () => window.dispatchEvent(new Event("analytics-error"));
1554
1563
  const r = document.getElementsByTagName("script")[0];
1555
1564
  r.parentNode.insertBefore(n, r), e._loadOptions = i;
1556
- }, e._writeKey = J(), e.SNIPPET_VERSION = "4.16.1", e.load(J()), e.page(), e.ready(() => window.dispatchEvent(new Event("analytics-ready")));
1565
+ }, e._writeKey = Z(), e.SNIPPET_VERSION = "4.16.1", e.load(Z()), e.page(), e.ready(() => window.dispatchEvent(new Event("analytics-ready")));
1557
1566
  }
1558
- }, F = () => (z !== null || (z = new Promise((e, t) => {
1567
+ }, H = () => (z !== null || (z = new Promise((e, t) => {
1559
1568
  if (window.addEventListener("analytics-ready", () => {
1560
1569
  A.info("Analytics script loaded successfully."), e();
1561
1570
  }), window.addEventListener("analytics-error", () => {
@@ -1563,10 +1572,10 @@ const ai = async (e, t) => {
1563
1572
  }), A.info("Loading Analytics script."), window.analytics)
1564
1573
  return e();
1565
1574
  we();
1566
- })), z), Mr = {
1567
- key: J,
1575
+ })), z), Nr = {
1576
+ key: Z,
1568
1577
  appendScript: we,
1569
- ready: F,
1578
+ ready: H,
1570
1579
  identify: ai,
1571
1580
  page: ci,
1572
1581
  track: ui
@@ -1587,7 +1596,7 @@ const ve = () => new Promise((e) => {
1587
1596
  };
1588
1597
  const e = document.createElement("script");
1589
1598
  e.src = "https://maps.googleapis.com/maps/api/js?key=" + di + "&libraries=places&callback=onGmapScriptReady", e.async = !0, e.defer = !0, e.onload = () => window.dispatchEvent(new Event("gmap-ready")), document.body.appendChild(e), be = !0;
1590
- }, Nr = {
1599
+ }, Dr = {
1591
1600
  scriptReady: ve,
1592
1601
  autocompleteInput: li
1593
1602
  }, pi = {
@@ -1618,8 +1627,8 @@ const ve = () => new Promise((e) => {
1618
1627
  }, hi = {
1619
1628
  fr: pi
1620
1629
  };
1621
- let Z = null;
1622
- const yi = () => Z, Dr = (e = {}) => {
1630
+ let X = null;
1631
+ const yi = () => X, xr = (e = {}) => {
1623
1632
  let t = e.locale || "fr";
1624
1633
  const i = (d) => t = d, n = () => t, r = ce(hi, (e == null ? void 0 : e.messages) || {}), c = (d, s) => {
1625
1634
  const a = O(r, `${t}.${d}`);
@@ -1628,7 +1637,7 @@ const yi = () => Z, Dr = (e = {}) => {
1628
1637
  const a = O(r, `${t}.${d}`);
1629
1638
  return a ? wi(a, s) : d;
1630
1639
  };
1631
- return Z = {
1640
+ return X = {
1632
1641
  t: c,
1633
1642
  tNode: u,
1634
1643
  setLocale: i,
@@ -1636,7 +1645,7 @@ const yi = () => Z, Dr = (e = {}) => {
1636
1645
  install: (d) => {
1637
1646
  d.config.globalProperties.$t = c, d.config.globalProperties.$tNode = u;
1638
1647
  }
1639
- }, Z;
1648
+ }, X;
1640
1649
  }, gi = (e, t) => e ? e.replace(/{{ ?([a-zA-Z_.]+) ?}}/g, (i, n) => O(t, n)) : null, wi = (e, t) => {
1641
1650
  if (!e)
1642
1651
  return null;
@@ -1655,11 +1664,11 @@ const yi = () => Z, Dr = (e = {}) => {
1655
1664
  });
1656
1665
  return { setup: (n, { slots: r }) => () => i.map((c) => c(r)) };
1657
1666
  }, re = {
1658
- slot: (e, t, i, n) => H("span", { class: "node node--slot" }, i[e.trim()](n)),
1659
- variable: (e, t) => H("span", { class: "node node--variable" }, O(t, e.trim())),
1660
- text: (e) => H("span", { class: "node node--text" }, e)
1667
+ slot: (e, t, i, n) => Q("span", { class: "node node--slot" }, i[e.trim()](n)),
1668
+ variable: (e, t) => Q("span", { class: "node node--variable" }, O(t, e.trim())),
1669
+ text: (e) => Q("span", { class: "node node--text" }, e)
1661
1670
  };
1662
- function xr(e) {
1671
+ function _r(e) {
1663
1672
  const { t } = yi(), i = {
1664
1673
  justNow: t("timeAgo.just-now"),
1665
1674
  past: (n) => n.match(/\d/) ? t("timeAgo.ago", [n]) : n,
@@ -1758,7 +1767,7 @@ function Ai(e) {
1758
1767
  dispatch: t
1759
1768
  };
1760
1769
  }
1761
- function _r() {
1770
+ function jr() {
1762
1771
  let e = !1;
1763
1772
  function t(r, c, u) {
1764
1773
  n(), u();
@@ -1780,20 +1789,20 @@ function _r() {
1780
1789
  handle: n
1781
1790
  };
1782
1791
  }
1783
- const jr = () => ({ getAssetUrl: (t) => `${$.getBaseAssetsUrl()}${t}` }), v = () => $.getMainAppHost(), Pi = () => `${v()}/rh/establishments`, ki = (e) => `${v()}/rh/establishment/${e}`, Ri = (e) => {
1792
+ const Br = () => ({ getAssetUrl: (t) => `${$.getBaseAssetsUrl()}${t}` }), v = () => $.getMainAppHost(), Pi = () => `${v()}/rh/establishments`, ki = (e) => `${v()}/rh/establishment/${e}`, Ei = (e) => {
1784
1793
  var t;
1785
1794
  return typeof e == "string" ? e : typeof e == "object" && ((t = e == null ? void 0 : e.urls) != null && t.display) ? e.urls.display : null;
1786
- }, Ei = () => `${v()}/rh/dashboard`, Ii = (e) => `${v()}/candidate-invite/establishment/${e}`, Ci = (e, t = !1) => t ? `${v()}/cvbank/${e}` : `${v()}/rh/establishment/${e}/cvtheque`, Si = (e, t) => `${v()}/user-profile/establishment/${e}/user/${t}`, Oi = (e) => `${v()}/rh/establishment/${e}/recruitment`, $i = (e, t) => `${v()}/rh/establishment/${e}/recruitment/${t}`, Ti = (e, t) => `${v()}/rh/establishment/${e}/recruitment/${t}/kanban`, Li = (e) => `${v()}/rh/establishment/${e}/career-configuration`, Mi = (e, t = null) => t ? `${v()}/career-website/${e}/${t}` : `${v()}/career-website/${e}`, Ni = (e, t) => `${v()}/career-website-preview/${e}/${t}`, Di = (e, t = null) => {
1795
+ }, Ri = () => `${v()}/rh/dashboard`, Ii = (e) => `${v()}/candidate-invite/establishment/${e}`, Ci = (e, t = !1) => t ? `${v()}/cvbank/${e}` : `${v()}/rh/establishment/${e}/cvtheque`, Si = (e, t) => `${v()}/user-profile/establishment/${e}/user/${t}`, Oi = (e) => `${v()}/rh/establishment/${e}/recruitment`, $i = (e, t) => `${v()}/rh/establishment/${e}/recruitment/${t}`, Ti = (e, t) => `${v()}/rh/establishment/${e}/recruitment/${t}/kanban`, Li = (e) => `${v()}/rh/establishment/${e}/career-configuration`, Mi = (e, t = null) => t ? `${v()}/career-website/${e}/${t}` : `${v()}/career-website/${e}`, Ni = (e, t) => `${v()}/career-website-preview/${e}/${t}`, Di = (e, t = null) => {
1787
1796
  const i = v().replace("://", `://${e}.`);
1788
1797
  return t ? `${i}?_version=${t}` : `${i}`;
1789
1798
  }, xi = (e) => `${v()}/rh/establishment/${e}/stats`, _i = (e) => `${v()}/rh/establishment/${e}/backoffice`, ji = () => `${v()}/rh/settings/general`;
1790
- function Br() {
1799
+ function zr() {
1791
1800
  return {
1792
1801
  root: v,
1793
1802
  establishments: Pi,
1794
1803
  establishment: ki,
1795
- img: Ri,
1796
- dashboard: Ei,
1804
+ img: Ei,
1805
+ dashboard: Ri,
1797
1806
  candidateInvite: Ii,
1798
1807
  cvtheque: Ci,
1799
1808
  userProfile: Si,
@@ -1810,14 +1819,14 @@ function Br() {
1810
1819
  };
1811
1820
  }
1812
1821
  const oe = /* @__PURE__ */ new Set();
1813
- let N, X = {
1822
+ let N, Y = {
1814
1823
  ignore: (e) => e.startsWith("Ui")
1815
1824
  };
1816
- const G = (e) => {
1825
+ const K = (e) => {
1817
1826
  if (e != null && e.classList) {
1818
1827
  e._cssChecked = !0;
1819
1828
  for (const t of e.classList)
1820
- N.has(t) || oe.has(t) || X.ignore(t) || (oe.add(t), A.error(`Undefined CSS class: ${t}`));
1829
+ N.has(t) || oe.has(t) || Y.ignore(t) || (oe.add(t), A.error(`Undefined CSS class: ${t}`));
1821
1830
  }
1822
1831
  }, Ae = (e) => {
1823
1832
  var t;
@@ -1830,107 +1839,108 @@ const G = (e) => {
1830
1839
  for (const r of n)
1831
1840
  N.add(r.substr(1));
1832
1841
  }
1833
- }, zr = (e = {}) => {
1842
+ }, Vr = (e = {}) => {
1834
1843
  if (N)
1835
1844
  return N;
1836
- N = /* @__PURE__ */ new Set(), X = { ...X, ...e }, Ae(document.styleSheets), new MutationObserver((i) => {
1845
+ N = /* @__PURE__ */ new Set(), Y = { ...Y, ...e }, Ae(document.styleSheets), new MutationObserver((i) => {
1837
1846
  for (const n of i)
1838
1847
  if (n.type === "childList" && (n != null && n.addedNodes)) {
1839
1848
  for (const r of n.addedNodes)
1840
1849
  if (!(r.nodeType === 3 || r.nodeType === 8)) {
1841
- G(r);
1850
+ K(r);
1842
1851
  for (const c of r.querySelectorAll("*"))
1843
- G(c);
1852
+ K(c);
1844
1853
  }
1845
1854
  } else
1846
- (n == null ? void 0 : n.attributeName) === "class" && G(n.target);
1855
+ (n == null ? void 0 : n.attributeName) === "class" && K(n.target);
1847
1856
  }).observe(document, {
1848
1857
  attributes: !0,
1849
1858
  childList: !0,
1850
1859
  subtree: !0
1851
1860
  });
1852
- }, Vr = "0.2.73";
1861
+ }, Ur = "0.2.75";
1853
1862
  export {
1854
- Mr as Analytics,
1855
- W as BaseLogger,
1856
- Nr as Gmap,
1863
+ Nr as Analytics,
1864
+ J as BaseLogger,
1865
+ Dr as Gmap,
1857
1866
  $ as SDKConfig,
1858
1867
  A as SDKLogger,
1859
- Vr as VERSION,
1868
+ Ur as VERSION,
1860
1869
  lt as _clone,
1861
1870
  O as _get,
1862
- rr as _map,
1871
+ sr as _map,
1863
1872
  ce as _merge,
1864
1873
  ue as _pathList,
1865
1874
  D as _set,
1866
1875
  dt as _setMany,
1867
- K as buildObjectValidation,
1868
- Dr as createI18n,
1869
- or as ensureScheme,
1870
- Qi as inBrowser,
1876
+ W as buildObjectValidation,
1877
+ xr as createI18n,
1878
+ ar as ensureScheme,
1879
+ ir as hasOrIsInClass,
1880
+ rr as inBrowser,
1871
1881
  T as inNode,
1872
- Y as isArray,
1873
- tr as isArrayOf,
1874
- Gi as isBoolean,
1875
- Ji as isDate,
1876
- er as isFalsy,
1877
- Zi as isFunction,
1882
+ U as isArray,
1883
+ er as isArrayOf,
1884
+ qi as isBoolean,
1885
+ Wi as isDate,
1886
+ Yi as isFalsy,
1887
+ Ji as isFunction,
1878
1888
  Hi as isMobile,
1879
- Xi as isNotNullOrUndefined,
1889
+ Zi as isNotNullOrUndefined,
1880
1890
  at as isNull,
1881
1891
  ut as isNullOrUndefined,
1882
- Ki as isNumber,
1883
- U as isObject,
1884
- nr as isObjectOf,
1885
- ir as isObjectValid,
1886
- Wi as isString,
1887
- Yi as isTruthy,
1892
+ Gi as isNumber,
1893
+ F as isObject,
1894
+ tr as isObjectOf,
1895
+ nr as isObjectValid,
1896
+ Ki as isString,
1897
+ Xi as isTruthy,
1888
1898
  ct as isUndefined,
1889
- qi as sanitizeObject,
1890
- sr as secureScheme,
1899
+ Qi as sanitizeObject,
1900
+ or as secureScheme,
1891
1901
  ot as transpileAsserts,
1892
- ar as useActivityRepository,
1902
+ cr as useActivityRepository,
1893
1903
  ii as useAnalyticsHublerApplication,
1894
- Lr as useAnalyticsIdentify,
1904
+ Mr as useAnalyticsIdentify,
1895
1905
  ri as useAnalyticsProfile,
1896
1906
  si as useAnalyticsRecruitment,
1897
1907
  oi as useAnalyticsVisualBuilder,
1898
- jr as useAssetUrls,
1908
+ Br as useAssetUrls,
1899
1909
  V as useAuthentication,
1900
1910
  ni as useAuthorization,
1901
- Tr as useAuthorizationStore,
1902
- $r as useCanAccessEstablishmentMiddleware,
1903
- cr as useCandidateRepository,
1904
- ur as useCommentRepository,
1905
- dr as useContractTypeRepository,
1911
+ Lr as useAuthorizationStore,
1912
+ Tr as useCanAccessEstablishmentMiddleware,
1913
+ ur as useCandidateRepository,
1914
+ dr as useCommentRepository,
1915
+ lr as useContractTypeRepository,
1906
1916
  pt as useCookieStorage,
1907
- lr as useCvbankRepository,
1908
- mr as useCvthequeRepository,
1909
- fr as useDiplomaRepository,
1910
- pr as useDocumentRepository,
1911
- Br as useDomainUrls,
1912
- hr as useEmailHistoryRepository,
1913
- yr as useEmailRepository,
1914
- gr as useEmailTemplateRepository,
1915
- wr as useEstablishmentCareerRepository,
1917
+ mr as useCvbankRepository,
1918
+ fr as useCvthequeRepository,
1919
+ pr as useDiplomaRepository,
1920
+ hr as useDocumentRepository,
1921
+ zr as useDomainUrls,
1922
+ yr as useEmailHistoryRepository,
1923
+ gr as useEmailRepository,
1924
+ wr as useEmailTemplateRepository,
1925
+ br as useEstablishmentCareerRepository,
1916
1926
  ye as useEstablishmentRepository,
1917
- br as useFeatureFlagRepository,
1927
+ vr as useFeatureFlagRepository,
1918
1928
  yi as useI18n,
1919
- vr as useJobRepository,
1920
- Ar as useLabelRepository,
1921
- xr as useLocaleTimeAgo,
1929
+ Ar as useJobRepository,
1930
+ Pr as useLabelRepository,
1931
+ _r as useLocaleTimeAgo,
1922
1932
  st as useObjectValidation,
1923
- Pr as useOfferRepository,
1933
+ kr as useOfferRepository,
1924
1934
  g as usePrivateRequest,
1925
- _r as useQSAction,
1926
- kr as useRecruiterRepository,
1935
+ jr as useQSAction,
1936
+ Er as useRecruiterRepository,
1927
1937
  Rr as useRecruitmentRepository,
1928
- Er as useRegisterRepository,
1929
- Ir as useRegistrationRepository,
1938
+ Ir as useRegisterRepository,
1939
+ Cr as useRegistrationRepository,
1930
1940
  k as useRequest,
1931
- Cr as useSpecialityRepository,
1932
- Sr as useTagRepository,
1933
- Or as useTalentRepository,
1934
- zr as useUndefinedCssClasses,
1941
+ Sr as useSpecialityRepository,
1942
+ Or as useTagRepository,
1943
+ $r as useTalentRepository,
1944
+ Vr as useUndefinedCssClasses,
1935
1945
  ge as useUserRepository
1936
1946
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hublo/mstaff-client-sdk",
3
- "version": "0.2.74",
3
+ "version": "0.2.76",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist"