@hublo/mstaff-client-sdk 0.2.73 → 0.2.74
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/core.cjs +1 -1
- package/dist/core.js +118 -118
- 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 me=st,re=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"?me(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=me(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=re(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=re(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,fe=(e,t)=>(console.log(t),console.log(Z(t)),H(e,Z(t))),H=(e,t)=>{const i={};return oe(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)))&&oe(i).every(n=>i[n].$valid),i},Z=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)),ne(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),oe=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)=>fe(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},te=(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]=te(i[n],s):i[n]=be(s);return i},ne=(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(...ne(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,ae=()=>{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(ae())),n=c=>{e.remove(c),e.remove(c,W(we())),e.remove(c,W(ae()))};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}),ie=()=>({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}),se=()=>({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 se().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 ie().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 se().self().send();this.user=t.getData()}},async fetchPermission(e,t){if(!this.establishments[e]||t){const i=await ie().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 ce=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])}},X=()=>{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=X(),e.SNIPPET_VERSION="4.16.1",e.load(X()),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:X,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 Y=null;const Me=()=>Y,rs=(e={})=>{let t=e.locale||"fr";const i=l=>t=l,n=()=>t,s=te(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 Y={t:c,tNode:u,setLocale:i,getLocale:n,install:l=>{l.config.globalProperties.$t=c,l.config.globalProperties.$tNode=u}},Y},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()=>ue.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=>ue[s](c,t,m,u)});return{setup:(n,{slots:s})=>()=>i.map(c=>c(s))}},ue={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=ce[u]();if(!i(m,s))throw new Error(`Event ${s} is not defined in domain ${n}`);return m[s](c)}function t(n){return!!ce[n]}function i(n,s){return!!n[s]}return{call:e}}const le=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=le[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 le}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 de=new Set;let x,ee={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)||de.has(t)||ee.ignore(t)||(de.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,ee={...ee,...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.72";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=te;exports._pathList=ne;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=Z;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=ie;exports.useFeatureFlagRepository=ii;exports.useI18n=Me;exports.useJobRepository=oi;exports.useLabelRepository=mi;exports.useLocaleTimeAgo=cs;exports.useObjectValidation=fe;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=se;
|
|
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;
|
package/dist/core.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var C = (e, t, i) => (
|
|
4
|
-
import { getCurrentScope as
|
|
5
|
-
import
|
|
6
|
-
import { defineStore as
|
|
7
|
-
import { useTimeAgo as
|
|
8
|
-
function
|
|
9
|
-
return
|
|
1
|
+
var _e = Object.defineProperty;
|
|
2
|
+
var je = (e, t, i) => t in e ? _e(e, t, { enumerable: !0, configurable: !0, writable: !0, value: i }) : e[t] = i;
|
|
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";
|
|
5
|
+
import Ue from "axios";
|
|
6
|
+
import { defineStore as Fe } from "pinia";
|
|
7
|
+
import { useTimeAgo as He } from "@vueuse/core";
|
|
8
|
+
function Qe(e) {
|
|
9
|
+
return Be() ? (ze(e), !0) : !1;
|
|
10
10
|
}
|
|
11
11
|
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
|
12
12
|
/*!
|
|
@@ -15,11 +15,11 @@ typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
|
|
15
15
|
* Copyright(c) 2015 Douglas Christopher Wilson
|
|
16
16
|
* MIT Licensed
|
|
17
17
|
*/
|
|
18
|
-
var
|
|
19
|
-
function
|
|
18
|
+
var ae = Ge, ee = Ke, qe = Object.prototype.toString, x = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;
|
|
19
|
+
function Ge(e, t) {
|
|
20
20
|
if (typeof e != "string")
|
|
21
21
|
throw new TypeError("argument str must be a string");
|
|
22
|
-
for (var i = {}, n = t || {}, r = n.decode ||
|
|
22
|
+
for (var i = {}, n = t || {}, r = n.decode || We, c = 0; c < e.length; ) {
|
|
23
23
|
var u = e.indexOf("=", c);
|
|
24
24
|
if (u === -1)
|
|
25
25
|
break;
|
|
@@ -33,14 +33,14 @@ function Ke(e, t) {
|
|
|
33
33
|
var d = e.slice(c, u).trim();
|
|
34
34
|
if (i[d] === void 0) {
|
|
35
35
|
var s = e.slice(u + 1, m).trim();
|
|
36
|
-
s.charCodeAt(0) === 34 && (s = s.slice(1, -1)), i[d] =
|
|
36
|
+
s.charCodeAt(0) === 34 && (s = s.slice(1, -1)), i[d] = Xe(s, r);
|
|
37
37
|
}
|
|
38
38
|
c = m + 1;
|
|
39
39
|
}
|
|
40
40
|
return i;
|
|
41
41
|
}
|
|
42
|
-
function
|
|
43
|
-
var n = i || {}, r = n.encode ||
|
|
42
|
+
function Ke(e, t, i) {
|
|
43
|
+
var n = i || {}, r = n.encode || Je;
|
|
44
44
|
if (typeof r != "function")
|
|
45
45
|
throw new TypeError("option encode is invalid");
|
|
46
46
|
if (!x.test(e))
|
|
@@ -67,7 +67,7 @@ function We(e, t, i) {
|
|
|
67
67
|
}
|
|
68
68
|
if (n.expires) {
|
|
69
69
|
var d = n.expires;
|
|
70
|
-
if (!
|
|
70
|
+
if (!Ze(d) || isNaN(d.valueOf()))
|
|
71
71
|
throw new TypeError("option expires is invalid");
|
|
72
72
|
u += "; Expires=" + d.toUTCString();
|
|
73
73
|
}
|
|
@@ -108,31 +108,31 @@ function We(e, t, i) {
|
|
|
108
108
|
}
|
|
109
109
|
return u;
|
|
110
110
|
}
|
|
111
|
-
function
|
|
111
|
+
function We(e) {
|
|
112
112
|
return e.indexOf("%") !== -1 ? decodeURIComponent(e) : e;
|
|
113
113
|
}
|
|
114
|
-
function
|
|
114
|
+
function Je(e) {
|
|
115
115
|
return encodeURIComponent(e);
|
|
116
116
|
}
|
|
117
|
-
function
|
|
118
|
-
return
|
|
117
|
+
function Ze(e) {
|
|
118
|
+
return qe.call(e) === "[object Date]" || e instanceof Date;
|
|
119
119
|
}
|
|
120
|
-
function
|
|
120
|
+
function Xe(e, t) {
|
|
121
121
|
try {
|
|
122
122
|
return t(e);
|
|
123
123
|
} catch {
|
|
124
124
|
return e;
|
|
125
125
|
}
|
|
126
126
|
}
|
|
127
|
-
function
|
|
127
|
+
function Ye() {
|
|
128
128
|
const e = typeof global > "u" ? void 0 : global.TEST_HAS_DOCUMENT_COOKIE;
|
|
129
129
|
return typeof e == "boolean" ? e : typeof document == "object" && typeof document.cookie == "string";
|
|
130
130
|
}
|
|
131
|
-
function
|
|
132
|
-
return typeof e == "string" ?
|
|
131
|
+
function et(e) {
|
|
132
|
+
return typeof e == "string" ? ae(e) : typeof e == "object" && e !== null ? e : {};
|
|
133
133
|
}
|
|
134
134
|
function Q(e, t = {}) {
|
|
135
|
-
const i =
|
|
135
|
+
const i = tt(e);
|
|
136
136
|
if (!t.doNotParse)
|
|
137
137
|
try {
|
|
138
138
|
return JSON.parse(i);
|
|
@@ -140,19 +140,19 @@ function Q(e, t = {}) {
|
|
|
140
140
|
}
|
|
141
141
|
return e;
|
|
142
142
|
}
|
|
143
|
-
function
|
|
143
|
+
function tt(e) {
|
|
144
144
|
return e && e[0] === "j" && e[1] === ":" ? e.substr(2) : e;
|
|
145
145
|
}
|
|
146
|
-
class
|
|
146
|
+
class nt {
|
|
147
147
|
constructor(t, i = {}) {
|
|
148
148
|
this.changeListeners = [], this.HAS_DOCUMENT_COOKIE = !1, this.update = () => {
|
|
149
149
|
if (!this.HAS_DOCUMENT_COOKIE)
|
|
150
150
|
return;
|
|
151
151
|
const r = this.cookies;
|
|
152
|
-
this.cookies =
|
|
152
|
+
this.cookies = ae(document.cookie), this._checkChanges(r);
|
|
153
153
|
};
|
|
154
154
|
const n = typeof document > "u" ? "" : document.cookie;
|
|
155
|
-
this.cookies =
|
|
155
|
+
this.cookies = et(t || n), this.defaultSetOptions = i, this.HAS_DOCUMENT_COOKIE = Ye();
|
|
156
156
|
}
|
|
157
157
|
_emitChange(t) {
|
|
158
158
|
for (let i = 0; i < this.changeListeners.length; ++i)
|
|
@@ -199,18 +199,18 @@ class it {
|
|
|
199
199
|
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());
|
|
200
200
|
}
|
|
201
201
|
}
|
|
202
|
-
function
|
|
202
|
+
function it(e, { doNotParse: t = !1, autoUpdateDependencies: i = !1 } = {}, n = new nt()) {
|
|
203
203
|
const r = i ? [...e || []] : e;
|
|
204
204
|
let c = n.getAll({ doNotParse: !0 });
|
|
205
|
-
const u =
|
|
205
|
+
const u = Ve(0), m = () => {
|
|
206
206
|
const d = n.getAll({ doNotParse: !0 });
|
|
207
|
-
|
|
207
|
+
rt(
|
|
208
208
|
r || null,
|
|
209
209
|
d,
|
|
210
210
|
c
|
|
211
211
|
) && u.value++, c = d;
|
|
212
212
|
};
|
|
213
|
-
return n.addChangeListener(m),
|
|
213
|
+
return n.addChangeListener(m), Qe(() => {
|
|
214
214
|
n.removeChangeListener(m);
|
|
215
215
|
}), {
|
|
216
216
|
/**
|
|
@@ -227,7 +227,7 @@ function rt(e, { doNotParse: t = !1, autoUpdateDependencies: i = !1 } = {}, n =
|
|
|
227
227
|
removeChangeListener: (...d) => n.removeChangeListener(...d)
|
|
228
228
|
};
|
|
229
229
|
}
|
|
230
|
-
function
|
|
230
|
+
function rt(e, t, i) {
|
|
231
231
|
if (!e)
|
|
232
232
|
return !0;
|
|
233
233
|
for (const n of e)
|
|
@@ -240,15 +240,15 @@ 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,
|
|
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) => {
|
|
244
244
|
const i = {};
|
|
245
|
-
return
|
|
246
|
-
},
|
|
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;
|
|
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)),
|
|
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),
|
|
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) => {
|
|
252
252
|
const n = typeof t == "string" ? t.split(".") : [t];
|
|
253
253
|
let r = e;
|
|
254
254
|
const c = (m) => m != null, u = (m) => typeof m == "object";
|
|
@@ -291,20 +291,20 @@ const Hi = () => {
|
|
|
291
291
|
return { ...e };
|
|
292
292
|
}
|
|
293
293
|
return e;
|
|
294
|
-
},
|
|
294
|
+
}, ce = (e, t) => {
|
|
295
295
|
const i = { ...e };
|
|
296
296
|
for (const [n, r] of Object.entries(t))
|
|
297
|
-
n in i && typeof i[n] == "object" && typeof r == "object" ? i[n] =
|
|
297
|
+
n in i && typeof i[n] == "object" && typeof r == "object" ? i[n] = ce(i[n], r) : i[n] = lt(r);
|
|
298
298
|
return i;
|
|
299
|
-
},
|
|
299
|
+
}, ue = (e, t = () => !0, i = "") => {
|
|
300
300
|
const n = [];
|
|
301
301
|
for (const r in e) {
|
|
302
302
|
const c = e[r], u = i ? `${i}.${r}` : r;
|
|
303
|
-
t(r, u, c) && (n.push(u), (U(c) || Y(c)) && n.push(...
|
|
303
|
+
t(r, u, c) && (n.push(u), (U(c) || Y(c)) && n.push(...ue(c, t, u)));
|
|
304
304
|
}
|
|
305
305
|
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}`,
|
|
307
|
-
const e =
|
|
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 = () => {
|
|
307
|
+
const e = de();
|
|
308
308
|
return !e || e === "localhost" ? e : `.${e}`;
|
|
309
309
|
}, mt = () => ({ path: "/" }), ft = (e) => ({
|
|
310
310
|
path: "/",
|
|
@@ -316,12 +316,12 @@ const Hi = () => {
|
|
|
316
316
|
return e.startsWith("localhost") ? mt() : ft(e);
|
|
317
317
|
};
|
|
318
318
|
function pt() {
|
|
319
|
-
const e =
|
|
319
|
+
const e = it(), t = (c) => e.get(c), i = (c, u) => e.set(
|
|
320
320
|
c,
|
|
321
321
|
u,
|
|
322
|
-
q(
|
|
322
|
+
q(ne())
|
|
323
323
|
), n = (c) => {
|
|
324
|
-
e.remove(c), e.remove(c, q(
|
|
324
|
+
e.remove(c), e.remove(c, q(de())), e.remove(c, q(ne()));
|
|
325
325
|
};
|
|
326
326
|
return {
|
|
327
327
|
getItem: t,
|
|
@@ -540,24 +540,24 @@ const j = (e, t, i) => {
|
|
|
540
540
|
}, A = new W({
|
|
541
541
|
prefix: "[SDK]"
|
|
542
542
|
});
|
|
543
|
-
let
|
|
544
|
-
const wt = () =>
|
|
543
|
+
let le = null, me = null, fe = null, pe = "/", he = null;
|
|
544
|
+
const wt = () => le, bt = (e) => {
|
|
545
545
|
if (A.info("[Config] Environment:", e), !e)
|
|
546
546
|
throw new Error("Invalid environment.");
|
|
547
|
-
|
|
548
|
-
}, vt = () =>
|
|
547
|
+
le = e;
|
|
548
|
+
}, vt = () => me, At = (e) => {
|
|
549
549
|
if (A.info("[Config] API Host:", e), !e)
|
|
550
550
|
throw new Error("Invalid API host.");
|
|
551
|
-
|
|
552
|
-
}, Pt = () =>
|
|
553
|
-
|
|
554
|
-
}, Rt = () =>
|
|
551
|
+
me = e;
|
|
552
|
+
}, Pt = () => he, kt = (e) => {
|
|
553
|
+
he = e;
|
|
554
|
+
}, Rt = () => fe, Et = (e) => {
|
|
555
555
|
if (A.info("[Config] Main App Host:", e), !e)
|
|
556
556
|
throw new Error("Invalid main app host.");
|
|
557
|
-
|
|
557
|
+
fe = e;
|
|
558
558
|
}, It = (e) => {
|
|
559
|
-
A.info("[Config] Base Assets Urls:", e),
|
|
560
|
-
}, Ct = () =>
|
|
559
|
+
A.info("[Config] Base Assets Urls:", e), pe = e;
|
|
560
|
+
}, Ct = () => pe, $ = {
|
|
561
561
|
getEnvironment: wt,
|
|
562
562
|
getApiHost: vt,
|
|
563
563
|
getErrorHandler: Pt,
|
|
@@ -842,7 +842,7 @@ function _t(e, t, i, n, r, c) {
|
|
|
842
842
|
responseType: c.getResponseType()
|
|
843
843
|
}), A.info("[Request] Sending request:", `[${d.toUpperCase()}]`, s);
|
|
844
844
|
try {
|
|
845
|
-
const h = await
|
|
845
|
+
const h = await Ue[d](...p);
|
|
846
846
|
return m(h);
|
|
847
847
|
} catch (h) {
|
|
848
848
|
throw Dt(h, r.isSilent());
|
|
@@ -939,7 +939,7 @@ const jt = (e, t) => g("/v2/activity/candidate/:candidateId/establishment/:estab
|
|
|
939
939
|
upsert: wn,
|
|
940
940
|
uploadLogoAndBanner: bn,
|
|
941
941
|
publish: vn
|
|
942
|
-
}), An = (e) => k("establishment/:establishmentId").setRouteParams({ establishmentId: e }), Pn = (e) => g("establishment/:establishmentId/authorizations").setRouteParams({ establishmentId: e }),
|
|
942
|
+
}), An = (e) => k("establishment/:establishmentId").setRouteParams({ establishmentId: e }), Pn = (e) => g("establishment/:establishmentId/authorizations").setRouteParams({ establishmentId: e }), ye = () => ({
|
|
943
943
|
read: An,
|
|
944
944
|
authorizations: Pn
|
|
945
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 = () => ({
|
|
@@ -987,7 +987,7 @@ const jt = (e, t) => g("/v2/activity/candidate/:candidateId/establishment/:estab
|
|
|
987
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 = () => ({
|
|
988
988
|
lookupTalent: Wn,
|
|
989
989
|
addCandidateToTalentPool: Jn
|
|
990
|
-
}), 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 }),
|
|
990
|
+
}), 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 = () => ({
|
|
991
991
|
emailExists: Zn,
|
|
992
992
|
self: Xn,
|
|
993
993
|
byUuidPrivate: Yn,
|
|
@@ -1005,7 +1005,7 @@ function ni() {
|
|
|
1005
1005
|
}, t = async () => {
|
|
1006
1006
|
if (!V().isAuthenticated())
|
|
1007
1007
|
throw new Error("::SDK Authorization:: User not authenticated");
|
|
1008
|
-
const s = (await
|
|
1008
|
+
const s = (await ge().self().send()).getData();
|
|
1009
1009
|
e.user = {
|
|
1010
1010
|
id: s.id,
|
|
1011
1011
|
email: s.email,
|
|
@@ -1016,7 +1016,7 @@ function ni() {
|
|
|
1016
1016
|
}, i = async (s) => {
|
|
1017
1017
|
if (!V().isAuthenticated())
|
|
1018
1018
|
throw new Error("::SDK Authorization:: User not authenticated");
|
|
1019
|
-
e.establishments[s] = (await
|
|
1019
|
+
e.establishments[s] = (await ye().authorizations(s).send()).getData();
|
|
1020
1020
|
}, n = (s) => {
|
|
1021
1021
|
if (e.user === void 0)
|
|
1022
1022
|
throw new Error("::SDK Authorization:: User not fetched");
|
|
@@ -1054,7 +1054,7 @@ async function $r(e, ...t) {
|
|
|
1054
1054
|
throw "ERR_MISSING_PERMISSION";
|
|
1055
1055
|
}
|
|
1056
1056
|
}
|
|
1057
|
-
const Tr =
|
|
1057
|
+
const Tr = Fe("authorization", {
|
|
1058
1058
|
state: () => ({
|
|
1059
1059
|
user: void 0,
|
|
1060
1060
|
establishments: {}
|
|
@@ -1074,13 +1074,13 @@ const Tr = He("authorization", {
|
|
|
1074
1074
|
actions: {
|
|
1075
1075
|
async fetchSelf(e) {
|
|
1076
1076
|
if (this.user === void 0 || e) {
|
|
1077
|
-
const t = await
|
|
1077
|
+
const t = await ge().self().send();
|
|
1078
1078
|
this.user = t.getData();
|
|
1079
1079
|
}
|
|
1080
1080
|
},
|
|
1081
1081
|
async fetchPermission(e, t) {
|
|
1082
1082
|
if (!this.establishments[e] || t) {
|
|
1083
|
-
const i = await
|
|
1083
|
+
const i = await ye().authorizations(e).send();
|
|
1084
1084
|
this.establishments[e] = i.getData();
|
|
1085
1085
|
}
|
|
1086
1086
|
},
|
|
@@ -1329,13 +1329,13 @@ function si() {
|
|
|
1329
1329
|
}
|
|
1330
1330
|
function oi() {
|
|
1331
1331
|
const e = "Visual Builder";
|
|
1332
|
-
function t(o,
|
|
1332
|
+
function t(o, xe) {
|
|
1333
1333
|
if (!o)
|
|
1334
1334
|
throw new Error(`Missing arguments for domain "${e}"`);
|
|
1335
1335
|
const L = {
|
|
1336
1336
|
companyId: o.companyId ? o.companyId.toString() : null
|
|
1337
1337
|
};
|
|
1338
|
-
return
|
|
1338
|
+
return xe && (L.productId = o.companyId ? o.companyId + "_2" : null), o.selections && (L.selections = o.selections), o.error && (L.error = o.error), o.institutionId && (L.institutionId = [o.institutionId.toString()]), L;
|
|
1339
1339
|
}
|
|
1340
1340
|
async function i(o) {
|
|
1341
1341
|
return y().page(o.name, e, t(o.properties, !0));
|
|
@@ -1394,6 +1394,9 @@ function oi() {
|
|
|
1394
1394
|
async function I(o) {
|
|
1395
1395
|
return y().page(o.name, e, t(o.properties, !1));
|
|
1396
1396
|
}
|
|
1397
|
+
async function Pe(o) {
|
|
1398
|
+
return y().track(o.name, e, t(o.properties, !0));
|
|
1399
|
+
}
|
|
1397
1400
|
async function ke(o) {
|
|
1398
1401
|
return y().track(o.name, e, t(o.properties, !0));
|
|
1399
1402
|
}
|
|
@@ -1431,9 +1434,6 @@ function oi() {
|
|
|
1431
1434
|
return y().track(o.name, e, t(o.properties, !0));
|
|
1432
1435
|
}
|
|
1433
1436
|
async function De(o) {
|
|
1434
|
-
return y().track(o.name, e, t(o.properties, !0));
|
|
1435
|
-
}
|
|
1436
|
-
async function xe(o) {
|
|
1437
1437
|
return y().page(o.name, e, t(o.properties, !1));
|
|
1438
1438
|
}
|
|
1439
1439
|
return {
|
|
@@ -1456,23 +1456,23 @@ function oi() {
|
|
|
1456
1456
|
setupSocialNetworkViewed: P,
|
|
1457
1457
|
setupThemeViewed: R,
|
|
1458
1458
|
visualBuilderViewed: I,
|
|
1459
|
-
setupImageUploadFailed:
|
|
1460
|
-
fastCopyLinkClicked:
|
|
1461
|
-
setupBenefitCustomDeleted:
|
|
1462
|
-
setupBenefitCustomEdited:
|
|
1463
|
-
setupContactDeleted:
|
|
1464
|
-
setupContactEdited:
|
|
1465
|
-
setupContactNewClicked:
|
|
1466
|
-
setupPresentationContentDeleted:
|
|
1467
|
-
setupPresentationContentDuplicated:
|
|
1468
|
-
setupPresentationContentMoved:
|
|
1469
|
-
setupPresentationTabDeleted:
|
|
1470
|
-
setupPresentationTabEdited:
|
|
1471
|
-
setupPresentationTabMoved:
|
|
1472
|
-
setupSEOViewed:
|
|
1459
|
+
setupImageUploadFailed: Pe,
|
|
1460
|
+
fastCopyLinkClicked: ke,
|
|
1461
|
+
setupBenefitCustomDeleted: Re,
|
|
1462
|
+
setupBenefitCustomEdited: Ee,
|
|
1463
|
+
setupContactDeleted: Ie,
|
|
1464
|
+
setupContactEdited: Ce,
|
|
1465
|
+
setupContactNewClicked: Se,
|
|
1466
|
+
setupPresentationContentDeleted: Oe,
|
|
1467
|
+
setupPresentationContentDuplicated: $e,
|
|
1468
|
+
setupPresentationContentMoved: Te,
|
|
1469
|
+
setupPresentationTabDeleted: Le,
|
|
1470
|
+
setupPresentationTabEdited: Me,
|
|
1471
|
+
setupPresentationTabMoved: Ne,
|
|
1472
|
+
setupSEOViewed: De
|
|
1473
1473
|
};
|
|
1474
1474
|
}
|
|
1475
|
-
const
|
|
1475
|
+
const ie = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1476
1476
|
__proto__: null,
|
|
1477
1477
|
useAnalyticsHublerApplication: ii,
|
|
1478
1478
|
useAnalyticsProfile: ri,
|
|
@@ -1531,7 +1531,7 @@ const ai = async (e, t) => {
|
|
|
1531
1531
|
}, J = () => {
|
|
1532
1532
|
const e = $.getEnvironment();
|
|
1533
1533
|
return e === "prod" || e === "production" ? "pPROC7dPoJ7XdxHrwsTQNXCGX79MJjhp" : e === "staging" ? "823rqOTwVk1ZCWVyBAdLInZ77TcFF0CF" : "TMZX6evFnu87JrBHV5qLwHsld5C6hilZ";
|
|
1534
|
-
},
|
|
1534
|
+
}, we = () => {
|
|
1535
1535
|
const e = window.analytics = window.analytics || [];
|
|
1536
1536
|
if (!e.initialize && e.invoked)
|
|
1537
1537
|
A.error("Segment snippet included twice.");
|
|
@@ -1562,19 +1562,19 @@ const ai = async (e, t) => {
|
|
|
1562
1562
|
A.error("Analytics script failed to load. Consider disabling your AdBlocker."), t();
|
|
1563
1563
|
}), A.info("Loading Analytics script."), window.analytics)
|
|
1564
1564
|
return e();
|
|
1565
|
-
|
|
1565
|
+
we();
|
|
1566
1566
|
})), z), Mr = {
|
|
1567
1567
|
key: J,
|
|
1568
|
-
appendScript:
|
|
1568
|
+
appendScript: we,
|
|
1569
1569
|
ready: F,
|
|
1570
1570
|
identify: ai,
|
|
1571
1571
|
page: ci,
|
|
1572
1572
|
track: ui
|
|
1573
1573
|
}, di = "AIzaSyDicyRD6rvVdnicp1tgV0ElazASNGbyyTs";
|
|
1574
|
-
let
|
|
1575
|
-
const
|
|
1576
|
-
T() ||
|
|
1577
|
-
}), li = (e, t) =>
|
|
1574
|
+
let be = !1;
|
|
1575
|
+
const ve = () => new Promise((e) => {
|
|
1576
|
+
T() || be || window.google && window.google.maps ? e() : (window.addEventListener("gmap-ready", () => e()), fi());
|
|
1577
|
+
}), li = (e, t) => ve().then(() => {
|
|
1578
1578
|
T() || mi(e, t);
|
|
1579
1579
|
}), mi = (e, t) => {
|
|
1580
1580
|
const i = new window.google.maps.places.Autocomplete(e, { componentRestrictions: { country: ["fr", "re", "yt", "gp", "mq"] } });
|
|
@@ -1586,9 +1586,9 @@ const Ae = () => new Promise((e) => {
|
|
|
1586
1586
|
window.onGmapScriptReady = () => {
|
|
1587
1587
|
};
|
|
1588
1588
|
const e = document.createElement("script");
|
|
1589
|
-
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),
|
|
1589
|
+
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
1590
|
}, Nr = {
|
|
1591
|
-
scriptReady:
|
|
1591
|
+
scriptReady: ve,
|
|
1592
1592
|
autocompleteInput: li
|
|
1593
1593
|
}, pi = {
|
|
1594
1594
|
common: {
|
|
@@ -1621,7 +1621,7 @@ const Ae = () => new Promise((e) => {
|
|
|
1621
1621
|
let Z = null;
|
|
1622
1622
|
const yi = () => Z, Dr = (e = {}) => {
|
|
1623
1623
|
let t = e.locale || "fr";
|
|
1624
|
-
const i = (d) => t = d, n = () => t, r =
|
|
1624
|
+
const i = (d) => t = d, n = () => t, r = ce(hi, (e == null ? void 0 : e.messages) || {}), c = (d, s) => {
|
|
1625
1625
|
const a = O(r, `${t}.${d}`);
|
|
1626
1626
|
return a ? s ? gi(a, s) : a : d;
|
|
1627
1627
|
}, u = (d, s) => {
|
|
@@ -1643,7 +1643,7 @@ const yi = () => Z, Dr = (e = {}) => {
|
|
|
1643
1643
|
const i = e.split(/(\{[{%]+[^{}]*[%}]+})/g).filter((n) => n !== "").map((n) => {
|
|
1644
1644
|
const r = n.startsWith("{%") && n.endsWith("%}") ? "slot" : n.startsWith("{{") && n.endsWith("}}") ? "variable" : "text";
|
|
1645
1645
|
if (r === "text")
|
|
1646
|
-
return () =>
|
|
1646
|
+
return () => re.text(n);
|
|
1647
1647
|
n = n.replace(/[{}%]/g, "").trim();
|
|
1648
1648
|
const c = n.match(/^[a-zA-Z_.]+/)[0];
|
|
1649
1649
|
n = n.replace(c, "").trim();
|
|
@@ -1651,10 +1651,10 @@ const yi = () => Z, Dr = (e = {}) => {
|
|
|
1651
1651
|
return n !== "" && ([...n.matchAll(/([a-zA-Z_.]+)(=([a-zA-Z_.]+))?/g)].reduce((s, a) => (a[3] === void 0 ? D(s, a[1], O(t, a[1])) : D(s, a[1], O(t, a[3])), s), u), [...n.matchAll(/([a-zA-Z_.]+)="([^"]+)"/g)].reduce((s, a) => {
|
|
1652
1652
|
let f = a[2];
|
|
1653
1653
|
return new RegExp(/^[0-9]*$/).exec(a[2]) ? f = parseInt(a[2]) : new RegExp(/^(true|false)$/).exec(a[2]) && (f = a[2] === "true"), s[a[1]] = f, s;
|
|
1654
|
-
}, u)), (m) =>
|
|
1654
|
+
}, u)), (m) => re[r](c, t, m, u);
|
|
1655
1655
|
});
|
|
1656
1656
|
return { setup: (n, { slots: r }) => () => i.map((c) => c(r)) };
|
|
1657
|
-
},
|
|
1657
|
+
}, re = {
|
|
1658
1658
|
slot: (e, t, i, n) => H("span", { class: "node node--slot" }, i[e.trim()](n)),
|
|
1659
1659
|
variable: (e, t) => H("span", { class: "node node--variable" }, O(t, e.trim())),
|
|
1660
1660
|
text: (e) => H("span", { class: "node node--text" }, e)
|
|
@@ -1673,7 +1673,7 @@ function xr(e) {
|
|
|
1673
1673
|
second: (n) => `${n} ${t("timeAgo.second", n)}`,
|
|
1674
1674
|
invalid: ""
|
|
1675
1675
|
};
|
|
1676
|
-
return
|
|
1676
|
+
return He(e, {
|
|
1677
1677
|
fullDateFormatter: (n) => n.toLocaleDateString(),
|
|
1678
1678
|
messages: i
|
|
1679
1679
|
});
|
|
@@ -1718,13 +1718,13 @@ function vi() {
|
|
|
1718
1718
|
const u = "useAnalytics" + n.charAt(0).toUpperCase() + n.slice(1);
|
|
1719
1719
|
if (!t(u))
|
|
1720
1720
|
throw new Error(`Domain ${n} is not defined`);
|
|
1721
|
-
const m =
|
|
1721
|
+
const m = ie[u]();
|
|
1722
1722
|
if (!i(m, r))
|
|
1723
1723
|
throw new Error(`Event ${r} is not defined in domain ${n}`);
|
|
1724
1724
|
return m[r](c);
|
|
1725
1725
|
}
|
|
1726
1726
|
function t(n) {
|
|
1727
|
-
return !!
|
|
1727
|
+
return !!ie[n];
|
|
1728
1728
|
}
|
|
1729
1729
|
function i(n, r) {
|
|
1730
1730
|
return !!n[r];
|
|
@@ -1733,7 +1733,7 @@ function vi() {
|
|
|
1733
1733
|
call: e
|
|
1734
1734
|
};
|
|
1735
1735
|
}
|
|
1736
|
-
const
|
|
1736
|
+
const se = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1737
1737
|
__proto__: null,
|
|
1738
1738
|
useAnalyticsQSController: vi
|
|
1739
1739
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
@@ -1743,13 +1743,13 @@ function Ai(e) {
|
|
|
1743
1743
|
function t() {
|
|
1744
1744
|
if (!i())
|
|
1745
1745
|
throw new Error(`Controller ${e.getController()} not found`);
|
|
1746
|
-
const r =
|
|
1746
|
+
const r = se[e.getControllerComposableName()]();
|
|
1747
1747
|
if (!n(r))
|
|
1748
1748
|
throw new Error(`Action ${e.getAction()} not found in controller ${e.getController()}`);
|
|
1749
1749
|
return r[e.getAction()](e.getArguments());
|
|
1750
1750
|
}
|
|
1751
1751
|
function i() {
|
|
1752
|
-
return e.getControllerComposableName() in
|
|
1752
|
+
return e.getControllerComposableName() in se;
|
|
1753
1753
|
}
|
|
1754
1754
|
function n(r) {
|
|
1755
1755
|
return e.getAction() in r;
|
|
@@ -1809,7 +1809,7 @@ function Br() {
|
|
|
1809
1809
|
userSettings: ji
|
|
1810
1810
|
};
|
|
1811
1811
|
}
|
|
1812
|
-
const
|
|
1812
|
+
const oe = /* @__PURE__ */ new Set();
|
|
1813
1813
|
let N, X = {
|
|
1814
1814
|
ignore: (e) => e.startsWith("Ui")
|
|
1815
1815
|
};
|
|
@@ -1817,13 +1817,13 @@ const G = (e) => {
|
|
|
1817
1817
|
if (e != null && e.classList) {
|
|
1818
1818
|
e._cssChecked = !0;
|
|
1819
1819
|
for (const t of e.classList)
|
|
1820
|
-
N.has(t) ||
|
|
1820
|
+
N.has(t) || oe.has(t) || X.ignore(t) || (oe.add(t), A.error(`Undefined CSS class: ${t}`));
|
|
1821
1821
|
}
|
|
1822
|
-
},
|
|
1822
|
+
}, Ae = (e) => {
|
|
1823
1823
|
var t;
|
|
1824
1824
|
for (const i of e)
|
|
1825
1825
|
if (i != null && i.cssRules && (i == null ? void 0 : i.cssRules.length) > 0)
|
|
1826
|
-
|
|
1826
|
+
Ae(i.cssRules);
|
|
1827
1827
|
else if (i.selectorText) {
|
|
1828
1828
|
const n = (t = i.selectorText) == null ? void 0 : t.match(/\.[\w-]+/g);
|
|
1829
1829
|
if (n)
|
|
@@ -1833,7 +1833,7 @@ const G = (e) => {
|
|
|
1833
1833
|
}, zr = (e = {}) => {
|
|
1834
1834
|
if (N)
|
|
1835
1835
|
return N;
|
|
1836
|
-
N = /* @__PURE__ */ new Set(), X = { ...X, ...e },
|
|
1836
|
+
N = /* @__PURE__ */ new Set(), X = { ...X, ...e }, Ae(document.styleSheets), new MutationObserver((i) => {
|
|
1837
1837
|
for (const n of i)
|
|
1838
1838
|
if (n.type === "childList" && (n != null && n.addedNodes)) {
|
|
1839
1839
|
for (const r of n.addedNodes)
|
|
@@ -1849,7 +1849,7 @@ const G = (e) => {
|
|
|
1849
1849
|
childList: !0,
|
|
1850
1850
|
subtree: !0
|
|
1851
1851
|
});
|
|
1852
|
-
}, Vr = "0.2.
|
|
1852
|
+
}, Vr = "0.2.73";
|
|
1853
1853
|
export {
|
|
1854
1854
|
Mr as Analytics,
|
|
1855
1855
|
W as BaseLogger,
|
|
@@ -1860,8 +1860,8 @@ export {
|
|
|
1860
1860
|
lt as _clone,
|
|
1861
1861
|
O as _get,
|
|
1862
1862
|
rr as _map,
|
|
1863
|
-
|
|
1864
|
-
|
|
1863
|
+
ce as _merge,
|
|
1864
|
+
ue as _pathList,
|
|
1865
1865
|
D as _set,
|
|
1866
1866
|
dt as _setMany,
|
|
1867
1867
|
K as buildObjectValidation,
|
|
@@ -1888,7 +1888,7 @@ export {
|
|
|
1888
1888
|
ct as isUndefined,
|
|
1889
1889
|
qi as sanitizeObject,
|
|
1890
1890
|
sr as secureScheme,
|
|
1891
|
-
|
|
1891
|
+
ot as transpileAsserts,
|
|
1892
1892
|
ar as useActivityRepository,
|
|
1893
1893
|
ii as useAnalyticsHublerApplication,
|
|
1894
1894
|
Lr as useAnalyticsIdentify,
|
|
@@ -1913,13 +1913,13 @@ export {
|
|
|
1913
1913
|
yr as useEmailRepository,
|
|
1914
1914
|
gr as useEmailTemplateRepository,
|
|
1915
1915
|
wr as useEstablishmentCareerRepository,
|
|
1916
|
-
|
|
1916
|
+
ye as useEstablishmentRepository,
|
|
1917
1917
|
br as useFeatureFlagRepository,
|
|
1918
1918
|
yi as useI18n,
|
|
1919
1919
|
vr as useJobRepository,
|
|
1920
1920
|
Ar as useLabelRepository,
|
|
1921
1921
|
xr as useLocaleTimeAgo,
|
|
1922
|
-
|
|
1922
|
+
st as useObjectValidation,
|
|
1923
1923
|
Pr as useOfferRepository,
|
|
1924
1924
|
g as usePrivateRequest,
|
|
1925
1925
|
_r as useQSAction,
|
|
@@ -1932,5 +1932,5 @@ export {
|
|
|
1932
1932
|
Sr as useTagRepository,
|
|
1933
1933
|
Or as useTalentRepository,
|
|
1934
1934
|
zr as useUndefinedCssClasses,
|
|
1935
|
-
|
|
1935
|
+
ge as useUserRepository
|
|
1936
1936
|
};
|