@realtek/core-theme-live 0.0.468 → 0.0.470

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (28) hide show
  1. package/dist-lib/FileField-4PXE0gsb.cjs +3 -0
  2. package/dist-lib/FileField-4PXE0gsb.cjs.map +1 -0
  3. package/dist-lib/{FileField-Cg2Td9Sh.js → FileField-B0RTUe9w.js} +309 -303
  4. package/dist-lib/FileField-B0RTUe9w.js.map +1 -0
  5. package/dist-lib/{LinkedRecordFileField-jRHmSRqf.cjs → LinkedRecordFileField-BK4NXb-9.cjs} +3 -3
  6. package/dist-lib/{LinkedRecordFileField-jRHmSRqf.cjs.map → LinkedRecordFileField-BK4NXb-9.cjs.map} +1 -1
  7. package/dist-lib/{LinkedRecordFileField-DL2sYGls.js → LinkedRecordFileField-CXaGgEV-.js} +523 -523
  8. package/dist-lib/{LinkedRecordFileField-DL2sYGls.js.map → LinkedRecordFileField-CXaGgEV-.js.map} +1 -1
  9. package/dist-lib/addFormApi-BRS25Cs3.cjs +2 -0
  10. package/dist-lib/addFormApi-BRS25Cs3.cjs.map +1 -0
  11. package/dist-lib/{addFormApi-I9d4EURy.js → addFormApi-DqLKDoHk.js} +4 -4
  12. package/dist-lib/addFormApi-DqLKDoHk.js.map +1 -0
  13. package/dist-lib/{dropdownApi-B8SIWhB8.js → dropdownApi-BLfaVpEW.js} +96 -92
  14. package/dist-lib/{dropdownApi-B8SIWhB8.js.map → dropdownApi-BLfaVpEW.js.map} +1 -1
  15. package/dist-lib/dropdownApi-BfOmJvJU.cjs +2 -0
  16. package/dist-lib/{dropdownApi-DfT698AK.cjs.map → dropdownApi-BfOmJvJU.cjs.map} +1 -1
  17. package/dist-lib/index.cjs +7 -7
  18. package/dist-lib/index.cjs.map +1 -1
  19. package/dist-lib/index.js +8938 -8804
  20. package/dist-lib/index.js.map +1 -1
  21. package/package.json +1 -1
  22. package/dist-lib/FileField-Cg2Td9Sh.js.map +0 -1
  23. package/dist-lib/FileField-y0EqgEXq.cjs +0 -3
  24. package/dist-lib/FileField-y0EqgEXq.cjs.map +0 -1
  25. package/dist-lib/addFormApi-Ct_ihgxs.cjs +0 -2
  26. package/dist-lib/addFormApi-Ct_ihgxs.cjs.map +0 -1
  27. package/dist-lib/addFormApi-I9d4EURy.js.map +0 -1
  28. package/dist-lib/dropdownApi-DfT698AK.cjs +0 -2
@@ -0,0 +1,2 @@
1
+ const e=require("./rolldown-runtime-Chgba0Kb.cjs"),t=require("./authApi-DiRtkJl2.cjs"),n=require("./formGroupsCache-Bbz-28ws.cjs");var r=e.t({createModuleRecord:()=>c,fetchFormGroupsPayload:()=>o,getFormGroups:()=>s});function i(e){let t=e?.data??e;return Array.isArray(t)?t:Array.isArray(t?.groups)?Object.assign(t.groups,{recordMeta:t.recordMeta??{}}):Array.isArray(e?.groups)?Object.assign(e.groups,{recordMeta:e.recordMeta??{}}):[]}function a({module:e,id:n,action:r,clientId:i,region:a,group:o,view:s,candidateVersionId:c,storedValues:l}={}){let u=new URLSearchParams({module:e});return n&&u.set(`id`,n),r&&u.set(`action`,r),i&&u.set(`clientId`,i),a&&u.set(`region`,a),o&&u.set(`group`,o),s&&u.set(`view`,s),c&&u.set(`candidateVersionId`,c),l&&u.set(`storedValues`,`true`),`${t.x}/admin/form-groups?${u.toString()}`}async function o(e={}){if(!e.module)throw Error(`module is required to fetch form groups`);let r=a(e);return n.t(r,async()=>{let e=await t.a(),n=await fetch(r,{method:`GET`,headers:{"Content-Type":`application/json`,Authorization:`Bearer ${e}`}});if(!n.ok){let e=Error(`API ${n.status}: ${n.statusText}`);throw e.status=n.status,e}return n.json()})}async function s(e={}){return i(await o(e))}async function c(e,r){let i=await t.a(),a;try{a=await fetch(`${t.x}/module/create?module=${encodeURIComponent(e)}`,{method:`POST`,headers:{Authorization:`Bearer ${i}`},body:r})}catch(e){let t=Error(`Unable to connect to the server. Please check your network connection.`);throw t.originalError=e,t}let{logout:o}=await Promise.resolve().then(()=>require("./authApi-DiRtkJl2.cjs")).then(e=>e.n);a.status===401&&o(),n.r();let s=(a.headers.get(`content-type`)||``).includes(`application/json`)?await a.json():await a.text();if(!a.ok){let e=(typeof s==`object`?s?.error||s?.message:s)||`Server returned status ${a.status}`,t=Error(e);throw t.status=a.status,t.data=s,t}return s}Object.defineProperty(exports,"n",{enumerable:!0,get:function(){return c}}),Object.defineProperty(exports,"r",{enumerable:!0,get:function(){return s}}),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return r}});
2
+ //# sourceMappingURL=addFormApi-BRS25Cs3.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"addFormApi-BRS25Cs3.cjs","names":[],"sources":["../src/services/addFormApi.js"],"sourcesContent":["import { ensureToken, fetchJsonWithAuth } from './authApi';\nimport { AUTH_URL, JOBS_URL } from './apiConfig';\nimport { fetchFormGroupsCached, invalidateFormGroupsCache } from './formGroupsCache';\n\n// ── Form Groups ───────────────────────────────────────────────────────────────\n\nfunction extractFormGroups(json) {\n const payload = json?.data ?? json;\n if (Array.isArray(payload)) return payload;\n if (Array.isArray(payload?.groups)) {\n return Object.assign(payload.groups, {\n recordMeta: payload.recordMeta ?? {},\n });\n }\n if (Array.isArray(json?.groups)) {\n return Object.assign(json.groups, {\n recordMeta: json.recordMeta ?? {},\n });\n }\n return [];\n}\n\n/**\n * formGroupsUrl — the canonical URL for one form-groups query. Built in a fixed\n * parameter order so two callers asking the same question produce the same\n * string, which is what makes them shareable (see formGroupsCache).\n */\nfunction formGroupsUrl({ module, id, action, clientId, region, group, view, candidateVersionId, storedValues } = {}) {\n const params = new URLSearchParams({ module });\n if (id) params.set('id', id);\n if (action) params.set('action', action);\n if (clientId) params.set('clientId', clientId);\n if (region) params.set('region', region);\n if (group) params.set('group', group);\n if (view) params.set('view', view);\n if (candidateVersionId) params.set('candidateVersionId', candidateVersionId);\n if (storedValues) params.set('storedValues', 'true');\n return `${AUTH_URL}/admin/form-groups?${params.toString()}`;\n}\n\n/**\n * fetchFormGroupsPayload — the RAW payload for one query, shared between every\n * caller that asks for it (see formGroupsCache for why). Returns the whole\n * envelope, so a caller that needs `recordMeta` and one that needs only the\n * groups array still cost ONE request between them.\n */\nexport async function fetchFormGroupsPayload(options = {}) {\n if (!options.module) throw new Error('module is required to fetch form groups');\n const url = formGroupsUrl(options);\n return fetchFormGroupsCached(url, async () => {\n const token = await ensureToken();\n const res = await fetch(url, {\n method: 'GET',\n headers: { 'Content-Type': 'application/json', Authorization: `Bearer ${token}` },\n });\n if (!res.ok) {\n // `.status` is what isRecordUnavailableError (detail/recordAccess.js)\n // reads, via EditFormV1's getFormGroups call, to decide whether a\n // fetch failure means \"you cannot see this record\" and should render\n // the centered unavailable-record page instead of a raw error. A bare\n // `new Error(...)` here left `.status` undefined, so EditFormV1's\n // \"record not available\" page was never actually reachable despite\n // being wired up — the same bug DetailViewV1 had via dropdownApi.js.\n const error = new Error(`API ${res.status}: ${res.statusText}`);\n error.status = res.status;\n throw error;\n }\n return res.json();\n });\n}\n\nexport async function getFormGroups(options = {}) {\n return extractFormGroups(await fetchFormGroupsPayload(options));\n}\n\nexport async function getCandidateFormGroups(options = {}) {\n return getFormGroups({ module: 'candidates', ...options });\n}\n\nexport async function getMentionUsers(search = '') {\n const { apiGetWithAuth } = await import('./authApi');\n const params = search ? `?search=${encodeURIComponent(search)}` : '';\n return apiGetWithAuth(JOBS_URL, `/users/any${params}`);\n}\n\n// ── Create Records ────────────────────────────────────────────────────────────\n// Routes through the Auth gateway which injects tenant context from JWT\n// and proxies to the correct downstream service based on module name.\n\nexport async function createModuleRecord(moduleName, formData) {\n // ensureToken (not getStoredToken) so a missing/expired session throws a\n // clear \"Authentication required\" error instead of silently sending the\n // request with no Authorization header (which the gateway rejects as 401).\n // NOTE: do NOT set Content-Type here — the browser must add the multipart\n // boundary itself. Only the Authorization header is set manually.\n const token = await ensureToken();\n\n let res;\n try {\n res = await fetch(\n `${AUTH_URL}/module/create?module=${encodeURIComponent(moduleName)}`,\n { method: 'POST', headers: { Authorization: `Bearer ${token}` }, body: formData },\n );\n } catch (netErr) {\n const error = new Error('Unable to connect to the server. Please check your network connection.');\n error.originalError = netErr;\n throw error;\n }\n\n const { logout } = await import('./authApi');\n if (res.status === 401) logout();\n\n // A save is exactly the moment a cached form-groups payload stops describing\n // the record — invalidate before the caller can navigate and read one back.\n invalidateFormGroupsCache();\n\n const contentType = res.headers.get('content-type') || '';\n const data = contentType.includes('application/json') ? await res.json() : await res.text();\n\n if (!res.ok) {\n const errorMsg = (typeof data === 'object' ? (data?.error || data?.message) : data) || `Server returned status ${res.status}`;\n const error = new Error(errorMsg);\n error.status = res.status;\n error.data = data;\n throw error;\n }\n\n return data;\n}\n"],"mappings":"0NAMA,SAAS,EAAkB,EAAM,CAC/B,IAAM,EAAU,GAAM,MAAQ,EAY9B,OAXI,MAAM,QAAQ,CAAO,EAAU,EAC/B,MAAM,QAAQ,GAAS,MAAM,EACxB,OAAO,OAAO,EAAQ,OAAQ,CACnC,WAAY,EAAQ,YAAc,CAAC,CACrC,CAAC,EAEC,MAAM,QAAQ,GAAM,MAAM,EACrB,OAAO,OAAO,EAAK,OAAQ,CAChC,WAAY,EAAK,YAAc,CAAC,CAClC,CAAC,EAEI,CAAC,CACV,CAOA,SAAS,EAAc,CAAE,SAAQ,KAAI,SAAQ,WAAU,SAAQ,QAAO,OAAM,qBAAoB,gBAAiB,CAAC,EAAG,CACnH,IAAM,EAAS,IAAI,gBAAgB,CAAE,QAAO,CAAC,EAS7C,OARI,GAAI,EAAO,IAAI,KAAM,CAAE,EACvB,GAAQ,EAAO,IAAI,SAAU,CAAM,EACnC,GAAU,EAAO,IAAI,WAAY,CAAQ,EACzC,GAAQ,EAAO,IAAI,SAAU,CAAM,EACnC,GAAO,EAAO,IAAI,QAAS,CAAK,EAChC,GAAM,EAAO,IAAI,OAAQ,CAAI,EAC7B,GAAoB,EAAO,IAAI,qBAAsB,CAAkB,EACvE,GAAc,EAAO,IAAI,eAAgB,MAAM,EAC5C,GAAG,EAAA,EAAS,qBAAqB,EAAO,SAAS,GAC1D,CAQA,eAAsB,EAAuB,EAAU,CAAC,EAAG,CACzD,GAAI,CAAC,EAAQ,OAAQ,MAAU,MAAM,yCAAyC,EAC9E,IAAM,EAAM,EAAc,CAAO,EACjC,OAAO,EAAA,EAAsB,EAAK,SAAY,CAC5C,IAAM,EAAQ,MAAM,EAAA,EAAY,EAC1B,EAAM,MAAM,MAAM,EAAK,CAC3B,OAAQ,MACR,QAAS,CAAE,eAAgB,mBAAoB,cAAe,UAAU,GAAQ,CAClF,CAAC,EACD,GAAI,CAAC,EAAI,GAAI,CAQX,IAAM,EAAY,MAAM,OAAO,EAAI,OAAO,IAAI,EAAI,YAAY,EAE9D,KADA,GAAM,OAAS,EAAI,OACb,CACR,CACA,OAAO,EAAI,KAAK,CAClB,CAAC,CACH,CAEA,eAAsB,EAAc,EAAU,CAAC,EAAG,CAChD,OAAO,EAAkB,MAAM,EAAuB,CAAO,CAAC,CAChE,CAgBA,eAAsB,EAAmB,EAAY,EAAU,CAM7D,IAAM,EAAQ,MAAM,EAAA,EAAY,EAE5B,EACJ,GAAI,CACF,EAAM,MAAM,MACV,GAAG,EAAA,EAAS,wBAAwB,mBAAmB,CAAU,IACjE,CAAE,OAAQ,OAAQ,QAAS,CAAE,cAAe,UAAU,GAAQ,EAAG,KAAM,CAAS,CAClF,CACF,OAAS,EAAQ,CACf,IAAM,EAAY,MAAM,wEAAwE,EAEhG,KADA,GAAM,cAAgB,EAChB,CACR,CAEA,GAAM,CAAE,UAAW,MAAA,QAAA,QAAA,CAAA,CAAA,SAAA,QAAM,wBAAA,CAAA,CAAA,CAAA,KAAA,GAAA,EAAA,CAAA,EACrB,EAAI,SAAW,KAAK,EAAO,EAI/B,EAAA,EAA0B,EAG1B,IAAM,GADc,EAAI,QAAQ,IAAI,cAAc,GAAK,GAAA,CAC9B,SAAS,kBAAkB,EAAI,MAAM,EAAI,KAAK,EAAI,MAAM,EAAI,KAAK,EAE1F,GAAI,CAAC,EAAI,GAAI,CACX,IAAM,GAAY,OAAO,GAAS,SAAY,GAAM,OAAS,GAAM,QAAW,IAAS,0BAA0B,EAAI,SAC/G,EAAY,MAAM,CAAQ,EAGhC,KAFA,GAAM,OAAS,EAAI,OACnB,EAAM,KAAO,EACP,CACR,CAEA,OAAO,CACT"}
@@ -11,9 +11,9 @@ function o(e) {
11
11
  let t = e?.data ?? e;
12
12
  return Array.isArray(t) ? t : Array.isArray(t?.groups) ? Object.assign(t.groups, { recordMeta: t.recordMeta ?? {} }) : Array.isArray(e?.groups) ? Object.assign(e.groups, { recordMeta: e.recordMeta ?? {} }) : [];
13
13
  }
14
- function s({ module: e, id: t, action: r, clientId: i, region: a, group: o, view: s, candidateVersionId: c } = {}) {
15
- let l = new URLSearchParams({ module: e });
16
- return t && l.set("id", t), r && l.set("action", r), i && l.set("clientId", i), a && l.set("region", a), o && l.set("group", o), s && l.set("view", s), c && l.set("candidateVersionId", c), `${n}/admin/form-groups?${l.toString()}`;
14
+ function s({ module: e, id: t, action: r, clientId: i, region: a, group: o, view: s, candidateVersionId: c, storedValues: l } = {}) {
15
+ let u = new URLSearchParams({ module: e });
16
+ return t && u.set("id", t), r && u.set("action", r), i && u.set("clientId", i), a && u.set("region", a), o && u.set("group", o), s && u.set("view", s), c && u.set("candidateVersionId", c), l && u.set("storedValues", "true"), `${n}/admin/form-groups?${u.toString()}`;
17
17
  }
18
18
  async function c(e = {}) {
19
19
  if (!e.module) throw Error("module is required to fetch form groups");
@@ -60,4 +60,4 @@ async function u(e, i) {
60
60
  //#endregion
61
61
  export { u as n, l as r, a as t };
62
62
 
63
- //# sourceMappingURL=addFormApi-I9d4EURy.js.map
63
+ //# sourceMappingURL=addFormApi-DqLKDoHk.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"addFormApi-DqLKDoHk.js","names":[],"sources":["../src/services/addFormApi.js"],"sourcesContent":["import { ensureToken, fetchJsonWithAuth } from './authApi';\nimport { AUTH_URL, JOBS_URL } from './apiConfig';\nimport { fetchFormGroupsCached, invalidateFormGroupsCache } from './formGroupsCache';\n\n// ── Form Groups ───────────────────────────────────────────────────────────────\n\nfunction extractFormGroups(json) {\n const payload = json?.data ?? json;\n if (Array.isArray(payload)) return payload;\n if (Array.isArray(payload?.groups)) {\n return Object.assign(payload.groups, {\n recordMeta: payload.recordMeta ?? {},\n });\n }\n if (Array.isArray(json?.groups)) {\n return Object.assign(json.groups, {\n recordMeta: json.recordMeta ?? {},\n });\n }\n return [];\n}\n\n/**\n * formGroupsUrl — the canonical URL for one form-groups query. Built in a fixed\n * parameter order so two callers asking the same question produce the same\n * string, which is what makes them shareable (see formGroupsCache).\n */\nfunction formGroupsUrl({ module, id, action, clientId, region, group, view, candidateVersionId, storedValues } = {}) {\n const params = new URLSearchParams({ module });\n if (id) params.set('id', id);\n if (action) params.set('action', action);\n if (clientId) params.set('clientId', clientId);\n if (region) params.set('region', region);\n if (group) params.set('group', group);\n if (view) params.set('view', view);\n if (candidateVersionId) params.set('candidateVersionId', candidateVersionId);\n if (storedValues) params.set('storedValues', 'true');\n return `${AUTH_URL}/admin/form-groups?${params.toString()}`;\n}\n\n/**\n * fetchFormGroupsPayload — the RAW payload for one query, shared between every\n * caller that asks for it (see formGroupsCache for why). Returns the whole\n * envelope, so a caller that needs `recordMeta` and one that needs only the\n * groups array still cost ONE request between them.\n */\nexport async function fetchFormGroupsPayload(options = {}) {\n if (!options.module) throw new Error('module is required to fetch form groups');\n const url = formGroupsUrl(options);\n return fetchFormGroupsCached(url, async () => {\n const token = await ensureToken();\n const res = await fetch(url, {\n method: 'GET',\n headers: { 'Content-Type': 'application/json', Authorization: `Bearer ${token}` },\n });\n if (!res.ok) {\n // `.status` is what isRecordUnavailableError (detail/recordAccess.js)\n // reads, via EditFormV1's getFormGroups call, to decide whether a\n // fetch failure means \"you cannot see this record\" and should render\n // the centered unavailable-record page instead of a raw error. A bare\n // `new Error(...)` here left `.status` undefined, so EditFormV1's\n // \"record not available\" page was never actually reachable despite\n // being wired up — the same bug DetailViewV1 had via dropdownApi.js.\n const error = new Error(`API ${res.status}: ${res.statusText}`);\n error.status = res.status;\n throw error;\n }\n return res.json();\n });\n}\n\nexport async function getFormGroups(options = {}) {\n return extractFormGroups(await fetchFormGroupsPayload(options));\n}\n\nexport async function getCandidateFormGroups(options = {}) {\n return getFormGroups({ module: 'candidates', ...options });\n}\n\nexport async function getMentionUsers(search = '') {\n const { apiGetWithAuth } = await import('./authApi');\n const params = search ? `?search=${encodeURIComponent(search)}` : '';\n return apiGetWithAuth(JOBS_URL, `/users/any${params}`);\n}\n\n// ── Create Records ────────────────────────────────────────────────────────────\n// Routes through the Auth gateway which injects tenant context from JWT\n// and proxies to the correct downstream service based on module name.\n\nexport async function createModuleRecord(moduleName, formData) {\n // ensureToken (not getStoredToken) so a missing/expired session throws a\n // clear \"Authentication required\" error instead of silently sending the\n // request with no Authorization header (which the gateway rejects as 401).\n // NOTE: do NOT set Content-Type here — the browser must add the multipart\n // boundary itself. Only the Authorization header is set manually.\n const token = await ensureToken();\n\n let res;\n try {\n res = await fetch(\n `${AUTH_URL}/module/create?module=${encodeURIComponent(moduleName)}`,\n { method: 'POST', headers: { Authorization: `Bearer ${token}` }, body: formData },\n );\n } catch (netErr) {\n const error = new Error('Unable to connect to the server. Please check your network connection.');\n error.originalError = netErr;\n throw error;\n }\n\n const { logout } = await import('./authApi');\n if (res.status === 401) logout();\n\n // A save is exactly the moment a cached form-groups payload stops describing\n // the record — invalidate before the caller can navigate and read one back.\n invalidateFormGroupsCache();\n\n const contentType = res.headers.get('content-type') || '';\n const data = contentType.includes('application/json') ? await res.json() : await res.text();\n\n if (!res.ok) {\n const errorMsg = (typeof data === 'object' ? (data?.error || data?.message) : data) || `Server returned status ${res.status}`;\n const error = new Error(errorMsg);\n error.status = res.status;\n error.data = data;\n throw error;\n }\n\n return data;\n}\n"],"mappings":";;;;;;;;;AAMA,SAAS,EAAkB,GAAM;CAC/B,IAAM,IAAU,GAAM,QAAQ;CAY9B,OAXI,MAAM,QAAQ,CAAO,IAAU,IAC/B,MAAM,QAAQ,GAAS,MAAM,IACxB,OAAO,OAAO,EAAQ,QAAQ,EACnC,YAAY,EAAQ,cAAc,CAAC,EACrC,CAAC,IAEC,MAAM,QAAQ,GAAM,MAAM,IACrB,OAAO,OAAO,EAAK,QAAQ,EAChC,YAAY,EAAK,cAAc,CAAC,EAClC,CAAC,IAEI,CAAC;AACV;AAOA,SAAS,EAAc,EAAE,WAAQ,OAAI,WAAQ,aAAU,WAAQ,UAAO,SAAM,uBAAoB,oBAAiB,CAAC,GAAG;CACnH,IAAM,IAAS,IAAI,gBAAgB,EAAE,UAAO,CAAC;CAS7C,OARI,KAAI,EAAO,IAAI,MAAM,CAAE,GACvB,KAAQ,EAAO,IAAI,UAAU,CAAM,GACnC,KAAU,EAAO,IAAI,YAAY,CAAQ,GACzC,KAAQ,EAAO,IAAI,UAAU,CAAM,GACnC,KAAO,EAAO,IAAI,SAAS,CAAK,GAChC,KAAM,EAAO,IAAI,QAAQ,CAAI,GAC7B,KAAoB,EAAO,IAAI,sBAAsB,CAAkB,GACvE,KAAc,EAAO,IAAI,gBAAgB,MAAM,GAC5C,GAAG,EAAS,qBAAqB,EAAO,SAAS;AAC1D;AAQA,eAAsB,EAAuB,IAAU,CAAC,GAAG;CACzD,IAAI,CAAC,EAAQ,QAAQ,MAAU,MAAM,yCAAyC;CAC9E,IAAM,IAAM,EAAc,CAAO;CACjC,OAAO,EAAsB,GAAK,YAAY;EAC5C,IAAM,IAAQ,MAAM,EAAY,GAC1B,IAAM,MAAM,MAAM,GAAK;GAC3B,QAAQ;GACR,SAAS;IAAE,gBAAgB;IAAoB,eAAe,UAAU;GAAQ;EAClF,CAAC;EACD,IAAI,CAAC,EAAI,IAAI;GAQX,IAAM,IAAQ,gBAAI,MAAM,OAAO,EAAI,OAAO,IAAI,EAAI,YAAY;GAE9D,MADA,EAAM,SAAS,EAAI,QACb;EACR;EACA,OAAO,EAAI,KAAK;CAClB,CAAC;AACH;AAEA,eAAsB,EAAc,IAAU,CAAC,GAAG;CAChD,OAAO,EAAkB,MAAM,EAAuB,CAAO,CAAC;AAChE;AAgBA,eAAsB,EAAmB,GAAY,GAAU;CAM7D,IAAM,IAAQ,MAAM,EAAY,GAE5B;CACJ,IAAI;EACF,IAAM,MAAM,MACV,GAAG,EAAS,wBAAwB,mBAAmB,CAAU,KACjE;GAAE,QAAQ;GAAQ,SAAS,EAAE,eAAe,UAAU,IAAQ;GAAG,MAAM;EAAS,CAClF;CACF,SAAS,GAAQ;EACf,IAAM,IAAQ,gBAAI,MAAM,wEAAwE;EAEhG,MADA,EAAM,gBAAgB,GAChB;CACR;CAEA,IAAM,EAAE,cAAW,MAAM,OAAO,wBAAA,CAAA,MAAA,MAAA,EAAA,CAAA;CAKhC,AAJI,EAAI,WAAW,OAAK,EAAO,GAI/B,EAA0B;CAG1B,IAAM,KADc,EAAI,QAAQ,IAAI,cAAc,KAAK,GAAA,CAC9B,SAAS,kBAAkB,IAAI,MAAM,EAAI,KAAK,IAAI,MAAM,EAAI,KAAK;CAE1F,IAAI,CAAC,EAAI,IAAI;EACX,IAAM,KAAY,OAAO,KAAS,WAAY,GAAM,SAAS,GAAM,UAAW,MAAS,0BAA0B,EAAI,UAC/G,IAAY,MAAM,CAAQ;EAGhC,MAFA,EAAM,SAAS,EAAI,QACnB,EAAM,OAAO,GACP;CACR;CAEA,OAAO;AACT"}
@@ -1,5 +1,5 @@
1
1
  import { D as e, E as t, S as n, T as r, o as i, x as a } from "./authApi-Dsc4NnFr.js";
2
- import { at as o } from "./FileField-Cg2Td9Sh.js";
2
+ import { ot as o } from "./FileField-B0RTUe9w.js";
3
3
  import { t as s } from "./formGroupsCache-JeC59oNe.js";
4
4
  //#region src/services/candidateVersionsApi.js
5
5
  async function c(e) {
@@ -7,9 +7,13 @@ async function c(e) {
7
7
  if (!Array.isArray(n)) throw Error("Candidate versions could not be loaded");
8
8
  return [...n].sort((e, t) => Number(t.profileVersion) - Number(e.profileVersion));
9
9
  }
10
+ async function l(e) {
11
+ let t = await i(a, `/candidate-latest-submission?candidateId=${encodeURIComponent(e)}`);
12
+ return (t?.data ?? t)?.submissionId || "";
13
+ }
10
14
  //#endregion
11
15
  //#region src/services/dropdownApi.js
12
- var l = "authToken", u = "authUser", d = "authLoginSession", f = [
16
+ var u = "authToken", d = "authUser", f = "authLoginSession", p = [
13
17
  "access_token",
14
18
  "refresh_token",
15
19
  "id_token",
@@ -32,7 +36,7 @@ var l = "authToken", u = "authUser", d = "authLoginSession", f = [
32
36
  "activeKey",
33
37
  "ct_project_id",
34
38
  "ct_project_name"
35
- ], p = "test-flows", m = [
39
+ ], m = "test-flows", h = [
36
40
  {
37
41
  value: "module",
38
42
  label: "Module",
@@ -87,7 +91,7 @@ var l = "authToken", u = "authUser", d = "authLoginSession", f = [
87
91
  isVisible: !0,
88
92
  type: "text"
89
93
  }
90
- ], h = "lms-flows", g = [
94
+ ], g = "lms-flows", _ = [
91
95
  {
92
96
  value: "module",
93
97
  label: "Module",
@@ -142,11 +146,11 @@ var l = "authToken", u = "authUser", d = "authLoginSession", f = [
142
146
  isVisible: !0,
143
147
  type: "text"
144
148
  }
145
- ], _ = null;
146
- function v(e) {
149
+ ], v = null;
150
+ function y(e) {
147
151
  return e?.token ?? e?.access_token ?? e?.accessToken ?? e?.jwt ?? e?.data?.token ?? e?.data?.access_token ?? e?.data?.accessToken ?? e?.data?.jwt;
148
152
  }
149
- function y(e) {
153
+ function b(e) {
150
154
  if (!e || typeof e != "string") return null;
151
155
  try {
152
156
  let t = e.split(".")[1];
@@ -157,11 +161,11 @@ function y(e) {
157
161
  return console.error("Unable to decode login token:", e), null;
158
162
  }
159
163
  }
160
- function b() {
161
- return localStorage.getItem(l);
164
+ function x() {
165
+ return localStorage.getItem(u);
162
166
  }
163
- async function x({ jobId: e, limit: t = 10, offset: n = 0, sortBy: i = "new", type: a = "myVendor" }) {
164
- return await P(r, "/vendor/hotlist", {
167
+ async function S({ jobId: e, limit: t = 10, offset: n = 0, sortBy: i = "new", type: a = "myVendor" }) {
168
+ return await F(r, "/vendor/hotlist", {
165
169
  method: "POST",
166
170
  body: JSON.stringify({
167
171
  jobId: e,
@@ -172,29 +176,29 @@ async function x({ jobId: e, limit: t = 10, offset: n = 0, sortBy: i = "new", ty
172
176
  })
173
177
  });
174
178
  }
175
- async function S(e) {
176
- let t = await P(n, `/get-bulkmail-details?jobId=${encodeURIComponent(e)}`);
179
+ async function C(e) {
180
+ let t = await F(n, `/get-bulkmail-details?jobId=${encodeURIComponent(e)}`);
177
181
  return t.data ?? t;
178
182
  }
179
- async function C(e = []) {
183
+ async function w(e = []) {
180
184
  let t = [...new Set((e ?? []).map((e) => String(e ?? "").trim()).filter(Boolean))];
181
185
  if (!t.length) return [];
182
- let r = await P(n, "/candidate-emails", {
186
+ let r = await F(n, "/candidate-emails", {
183
187
  method: "POST",
184
188
  body: JSON.stringify({ candidateIds: t })
185
189
  }), i = r?.data ?? r;
186
190
  return Array.isArray(i) ? i : [];
187
191
  }
188
- async function w(e, t) {
192
+ async function T(e, t) {
189
193
  let n = String(e ?? "").trim(), r = String(t ?? "").trim();
190
194
  if (!n || !r) return null;
191
- let i = await P(a, `/module/list?module=${encodeURIComponent(n)}&id=${encodeURIComponent(r)}`), o = i?.data?.data ?? i?.data ?? [];
195
+ let i = await F(a, `/module/list?module=${encodeURIComponent(n)}&id=${encodeURIComponent(r)}`), o = i?.data?.data ?? i?.data ?? [];
192
196
  return Array.isArray(o) ? o[0] ?? null : null;
193
197
  }
194
- async function T(e, n = "") {
198
+ async function E(e, n = "") {
195
199
  let r = String(e ?? "").trim();
196
200
  if (!r) return "";
197
- let i = await P(t, "/format-mail-content", {
201
+ let i = await F(t, "/format-mail-content", {
198
202
  method: "POST",
199
203
  body: JSON.stringify({
200
204
  contents: r,
@@ -204,7 +208,7 @@ async function T(e, n = "") {
204
208
  if (i?.status === !1) throw Error(i?.error || "Unable to format mail content");
205
209
  return String(i?.html ?? i?.contents ?? i?.data?.html ?? i?.data?.contents ?? "").trim();
206
210
  }
207
- async function E({ jobId: e, toMail: t, ccMail: r, bccMail: i, subject: a, contents: o, attachments: s = [] }) {
211
+ async function D({ jobId: e, toMail: t, ccMail: r, bccMail: i, subject: a, contents: o, attachments: s = [] }) {
208
212
  let c = localStorage.getItem("tenantId") || "93c782a4aa626175e5d11afa", l = localStorage.getItem("businessId") || "83c782a4aa626175e5d11afa", u = localStorage.getItem("businessUnitId") || "63b57588fd768a839dbc0f63", d = new FormData();
209
213
  d.append("json", JSON.stringify({
210
214
  schemaVersion: 1,
@@ -220,35 +224,35 @@ async function E({ jobId: e, toMail: t, ccMail: r, bccMail: i, subject: a, conte
220
224
  })), (s ?? []).forEach((e) => {
221
225
  e instanceof File && e.size > 0 && String(e.name ?? "").trim() && d.append("attachments", e, e.name);
222
226
  });
223
- let { "Content-Type": f, ...p } = await N(), m = await fetch(`${n}/send-bulkmail`, {
227
+ let { "Content-Type": f, ...p } = await P(), m = await fetch(`${n}/send-bulkmail`, {
224
228
  method: "POST",
225
229
  headers: p,
226
230
  body: d
227
231
  });
228
- if (m.status === 401 && D(), !m.ok) throw Error(`API ${m.status}: ${m.statusText}`);
232
+ if (m.status === 401 && O(), !m.ok) throw Error(`API ${m.status}: ${m.statusText}`);
229
233
  let h = await m.text();
230
234
  return h ? JSON.parse(h) : {};
231
235
  }
232
- function D() {
233
- localStorage.removeItem(l), localStorage.removeItem(u), f.forEach((e) => localStorage.removeItem(e)), sessionStorage.removeItem(d), window.dispatchEvent(new Event("auth:logout"));
236
+ function O() {
237
+ localStorage.removeItem(u), localStorage.removeItem(d), p.forEach((e) => localStorage.removeItem(e)), sessionStorage.removeItem(f), window.dispatchEvent(new Event("auth:logout"));
234
238
  }
235
- function O(e = "") {
239
+ function k(e = "") {
236
240
  let t = String(e ?? "").trim();
237
241
  return t === "myJobs" || t === "allJobs" || t === "fulfilled" ? t : "";
238
242
  }
239
- function k(e) {
243
+ function A(e) {
240
244
  let t = String(o(e) ?? "").trim().toLowerCase();
241
245
  return t === "job" || t === "jobs";
242
246
  }
243
- function A(e, t = 30) {
244
- let n = y(e), r = Number(n?.exp);
247
+ function j(e, t = 30) {
248
+ let n = b(e), r = Number(n?.exp);
245
249
  return !Number.isFinite(r) || r <= 0 ? !1 : r * 1e3 <= Date.now() + t * 1e3;
246
250
  }
247
- async function j() {
248
- if (_) return _;
251
+ async function M() {
252
+ if (v) return v;
249
253
  let e = String(localStorage.getItem("refresh_token") ?? "").trim();
250
254
  if (!e) throw Object.assign(/* @__PURE__ */ Error("Session expired"), { status: 401 });
251
- return _ = fetch(`${a}/generate-refresh-token`, {
255
+ return v = fetch(`${a}/generate-refresh-token`, {
252
256
  method: "POST",
253
257
  headers: { "Content-Type": "application/json" },
254
258
  body: JSON.stringify({ refresh_token: e })
@@ -260,32 +264,32 @@ async function j() {
260
264
  n = { error: t };
261
265
  }
262
266
  if (!e.ok) throw Object.assign(Error(n?.error ?? n?.message ?? `Token refresh failed: ${e.status}`), { status: e.status });
263
- let r = v(n);
267
+ let r = y(n);
264
268
  if (!r) throw Object.assign(/* @__PURE__ */ Error("Token refresh response did not contain an access token"), { status: 401 });
265
- return localStorage.setItem(l, r), localStorage.setItem("access_token", r), r;
269
+ return localStorage.setItem(u, r), localStorage.setItem("access_token", r), r;
266
270
  }).finally(() => {
267
- _ = null;
268
- }), _;
271
+ v = null;
272
+ }), v;
269
273
  }
270
- async function M() {
271
- let e = b();
272
- if (e && !A(e)) return e;
274
+ async function N() {
275
+ let e = x();
276
+ if (e && !j(e)) return e;
273
277
  if (localStorage.getItem("refresh_token")) try {
274
- return await j();
278
+ return await M();
275
279
  } catch {}
276
280
  if (e) return e;
277
281
  let t = /* @__PURE__ */ Error("Authentication required");
278
282
  throw t.status = 401, t;
279
283
  }
280
- async function N() {
284
+ async function P() {
281
285
  return {
282
286
  "Content-Type": "application/json",
283
- Authorization: `Bearer ${await M()}`
287
+ Authorization: `Bearer ${await N()}`
284
288
  };
285
289
  }
286
- async function P(e, t, n = {}) {
290
+ async function F(e, t, n = {}) {
287
291
  let r = async () => {
288
- let r = await N();
292
+ let r = await P();
289
293
  return fetch(`${e}${t}`, {
290
294
  ...n,
291
295
  headers: {
@@ -295,9 +299,9 @@ async function P(e, t, n = {}) {
295
299
  });
296
300
  }, i = await r();
297
301
  if (i.status === 401 && localStorage.getItem("refresh_token")) try {
298
- await j(), i = await r();
302
+ await M(), i = await r();
299
303
  } catch {}
300
- i.status === 401 && D();
304
+ i.status === 401 && O();
301
305
  let a = await i.text(), o = {};
302
306
  if (a) try {
303
307
  o = JSON.parse(a);
@@ -310,43 +314,43 @@ async function P(e, t, n = {}) {
310
314
  }
311
315
  return o;
312
316
  }
313
- async function F(e, t) {
314
- let n = await P(e, t);
317
+ async function I(e, t) {
318
+ let n = await F(e, t);
315
319
  return n.data ?? n;
316
320
  }
317
- async function I(t) {
318
- return F(e, t);
319
- }
320
- async function L(e) {
321
- return F(a, e);
321
+ async function L(t) {
322
+ return I(e, t);
322
323
  }
323
324
  async function R(e) {
324
- return e === p ? m : e === h ? g : I(`/filter-dropdown-fields?module=${encodeURIComponent(o(e))}`);
325
+ return I(a, e);
326
+ }
327
+ async function z(e) {
328
+ return e === m ? h : e === g ? _ : L(`/filter-dropdown-fields?module=${encodeURIComponent(o(e))}`);
325
329
  }
326
- async function z(e, { configType: t, userId: n, roleId: r, includeMeta: i = !1 } = {}) {
327
- if (e === p) return m;
328
- if (e === h) return g;
330
+ async function B(e, { configType: t, userId: n, roleId: r, includeMeta: i = !1 } = {}) {
331
+ if (e === m) return h;
332
+ if (e === g) return _;
329
333
  let a = new URLSearchParams({ module: o(e) });
330
- return t && a.set("configType", t), i && a.set("includeMeta", "1"), n != null && a.set("userId", String(n)), r != null && a.set("roleId", String(r)), L(`/admin/field-config?${a}`);
334
+ return t && a.set("configType", t), i && a.set("includeMeta", "1"), n != null && a.set("userId", String(n)), r != null && a.set("roleId", String(r)), R(`/admin/field-config?${a}`);
331
335
  }
332
- async function B({ limit: e = 10, offset: t = 0, search: n = "", module: r = "", keyword: i = "", tags: a = "", active: o } = {}) {
336
+ async function V({ limit: e = 10, offset: t = 0, search: n = "", module: r = "", keyword: i = "", tags: a = "", active: o } = {}) {
333
337
  let s = new URLSearchParams({
334
338
  limit: String(e),
335
339
  offset: String(t)
336
340
  });
337
- return n && s.append("search", n), r && s.append("module", r), i && s.append("keyword", i), a && s.append("tags", a), o != null && o !== "" && s.append("active", String(o)), L(`/test-flows?${s.toString()}`);
341
+ return n && s.append("search", n), r && s.append("module", r), i && s.append("keyword", i), a && s.append("tags", a), o != null && o !== "" && s.append("active", String(o)), R(`/test-flows?${s.toString()}`);
338
342
  }
339
- async function V({ limit: e = 10, offset: t = 0, search: n = "", module: r = "", keyword: i = "", tags: a = "", active: o } = {}) {
343
+ async function H({ limit: e = 10, offset: t = 0, search: n = "", module: r = "", keyword: i = "", tags: a = "", active: o } = {}) {
340
344
  let s = new URLSearchParams({
341
345
  limit: String(e),
342
346
  offset: String(t)
343
347
  });
344
- return n && s.append("search", n), r && s.append("module", r), i && s.append("keyword", i), a && s.append("tags", a), o != null && o !== "" && s.append("active", String(o)), L(`/lms-flows?${s.toString()}`);
348
+ return n && s.append("search", n), r && s.append("module", r), i && s.append("keyword", i), a && s.append("tags", a), o != null && o !== "" && s.append("active", String(o)), R(`/lms-flows?${s.toString()}`);
345
349
  }
346
- async function H(e, t = 10, n = 0, r = {}) {
350
+ async function U(e, t = 10, n = 0, r = {}) {
347
351
  let { scope: i = "", sort: s = "", sortDir: c = "", search: l = "", filters: u = [], queryParams: d = {} } = r;
348
- if (e === p) {
349
- let e = await B({
352
+ if (e === m) {
353
+ let e = await V({
350
354
  limit: t,
351
355
  offset: n
352
356
  }), r = Array.isArray(e?.items) ? e.items : [], i = Number(e?.total) || 0;
@@ -362,8 +366,8 @@ async function H(e, t = 10, n = 0, r = {}) {
362
366
  }]
363
367
  };
364
368
  }
365
- if (e === h) {
366
- let e = await V({
369
+ if (e === g) {
370
+ let e = await H({
367
371
  limit: t,
368
372
  offset: n
369
373
  }), r = Array.isArray(e?.items) ? e.items : [], i = Number(e?.total) || 0;
@@ -383,18 +387,18 @@ async function H(e, t = 10, n = 0, r = {}) {
383
387
  module: o(e),
384
388
  limit: String(t),
385
389
  offset: String(n)
386
- }), m = k(e) ? O(i) : String(i ?? "").trim();
387
- m && f.set("scope", m), s && f.set("sort", s), c && f.set("sortDir", c), String(l ?? "").trim() && f.set("search", String(l).trim());
388
- let g = J(u.filter((e) => e?.field));
389
- g.length && f.set("filters", JSON.stringify(g)), Object.entries(d ?? {}).forEach(([e, t]) => {
390
+ }), p = A(e) ? k(i) : String(i ?? "").trim();
391
+ p && f.set("scope", p), s && f.set("sort", s), c && f.set("sortDir", c), String(l ?? "").trim() && f.set("search", String(l).trim());
392
+ let h = Y(u.filter((e) => e?.field));
393
+ h.length && f.set("filters", JSON.stringify(h)), Object.entries(d ?? {}).forEach(([e, t]) => {
390
394
  t != null && String(t).trim() !== "" && f.set(e, String(t));
391
395
  });
392
- let _ = await P(a, `/module-data-list?${f.toString()}`), v = U(_), y = v.some((e) => K(e)), b = v.some((e) => q(e));
396
+ let _ = await F(a, `/module-data-list?${f.toString()}`), v = W(_), y = v.some((e) => q(e)), b = v.some((e) => J(e));
393
397
  if (y || b) try {
394
398
  let { transformDiceResponseToInternalFormat: e } = await import("./diceCandidateMapper-DqBO4EhL.js").then((e) => e.t), r = e(_, _), i = r?.data?.data ?? [];
395
399
  return {
396
400
  items: i,
397
- total: G(_, m) || G(r, m) || i.length,
401
+ total: K(_, p) || K(r, p) || i.length,
398
402
  limit: t,
399
403
  offset: n,
400
404
  tabs: r?.data?.tabs ?? _?.tabs ?? _?.data?.tabs ?? [],
@@ -409,33 +413,33 @@ async function H(e, t = 10, n = 0, r = {}) {
409
413
  }
410
414
  return _;
411
415
  }
412
- function U(e) {
416
+ function W(e) {
413
417
  let t = e?.data ?? e, n = Array.isArray(t) ? t : t?.rows ?? t?.records ?? t?.items ?? t?.list ?? t?.data ?? e?.items ?? e?.records ?? [];
414
418
  return Array.isArray(n) ? n : [];
415
419
  }
416
- function W(...e) {
420
+ function G(...e) {
417
421
  for (let t of e) {
418
422
  let e = Number(t);
419
423
  if (Number.isFinite(e)) return e;
420
424
  }
421
425
  }
422
- function G(e, t = "") {
423
- let n = e?.data ?? e, r = U(e), i = e?.count, a = n?.count, o = String(t ?? "").trim().toLowerCase();
426
+ function K(e, t = "") {
427
+ let n = e?.data ?? e, r = W(e), i = e?.count, a = n?.count, o = String(t ?? "").trim().toLowerCase();
424
428
  if (i && typeof i == "object") {
425
- let e = W(o ? i[o] : void 0, i.total, i.searchCount, i.count);
429
+ let e = G(o ? i[o] : void 0, i.total, i.searchCount, i.count);
426
430
  if (e !== void 0) return e;
427
431
  }
428
432
  if (a && typeof a == "object") {
429
- let e = W(o ? a[o] : void 0, a.total, a.searchCount, a.count);
433
+ let e = G(o ? a[o] : void 0, a.total, a.searchCount, a.count);
430
434
  if (e !== void 0) return e;
431
435
  }
432
- return W(e?.total, typeof i == "object" ? void 0 : i, e?.totalCount, n?.total, typeof a == "object" ? void 0 : a, n?.totalCount, r.length) ?? 0;
436
+ return G(e?.total, typeof i == "object" ? void 0 : i, e?.totalCount, n?.total, typeof a == "object" ? void 0 : a, n?.totalCount, r.length) ?? 0;
433
437
  }
434
- function K(e) {
438
+ function q(e) {
435
439
  let t = e?.skills ?? e?.technicalSkills ?? e?.primarySkills;
436
440
  return !Array.isArray(t) || t.length === 0 ? !1 : t.some((e) => e && typeof e == "object" && ("skill" in e || "lastUsed" in e));
437
441
  }
438
- function q(e) {
442
+ function J(e) {
439
443
  return [
440
444
  e?.sourceType,
441
445
  e?.profileSource,
@@ -444,7 +448,7 @@ function q(e) {
444
448
  e?.customFields?.profileSource
445
449
  ].flat().some((e) => String(e ?? "").trim().toLowerCase() === "dice") || !!e?.customFields?.diceProfileData;
446
450
  }
447
- function J(e) {
451
+ function Y(e) {
448
452
  let t = [];
449
453
  for (let n of e) {
450
454
  if (!n.field) continue;
@@ -499,7 +503,7 @@ function J(e) {
499
503
  }
500
504
  return t;
501
505
  }
502
- async function Y(e, t, n = "", r = {}) {
506
+ async function X(e, t, n = "", r = {}) {
503
507
  let { limit: i = 50, offset: a = 0, dataSource: s, groupName: c, lookup: l, groupFields: u = [], groupSeparator: d = " ", arrayLabelField: f = "", arrayValueField: p = "", scope: m = "" } = r, h = o(e), g = new URLSearchParams({
504
508
  module: h,
505
509
  field: t,
@@ -507,20 +511,20 @@ async function Y(e, t, n = "", r = {}) {
507
511
  limit: String(i),
508
512
  offset: String(a)
509
513
  });
510
- return s && g.set("dataSource", s), m && g.set("scope", k(e) ? O(m) : m), f && g.set("arrayLabelField", f), p && g.set("arrayValueField", p), Array.isArray(u) && u.length > 1 && (g.set("groupFields", u.join(",")), g.set("groupSeparator", d ?? " ")), s === "group" && c && g.set("groupName", c), s === "lookup" && l?.collection && (g.set("lookupCollection", l.collection), l.displayField && g.set("lookupField", l.displayField)), String(h).trim().toLowerCase() === "sourcecandidates" ? L(`/candidates/filter-dropdown-values?${g}`) : I(`/filter-dropdown-values?${g}`);
514
+ return s && g.set("dataSource", s), m && g.set("scope", A(e) ? k(m) : m), f && g.set("arrayLabelField", f), p && g.set("arrayValueField", p), Array.isArray(u) && u.length > 1 && (g.set("groupFields", u.join(",")), g.set("groupSeparator", d ?? " ")), s === "group" && c && g.set("groupName", c), s === "lookup" && l?.collection && (g.set("lookupCollection", l.collection), l.displayField && g.set("lookupField", l.displayField)), String(h).trim().toLowerCase() === "sourcecandidates" ? R(`/candidates/filter-dropdown-values?${g}`) : L(`/filter-dropdown-values?${g}`);
511
515
  }
512
- function X(e) {
516
+ function Z(e) {
513
517
  let t = e?.data ?? e, n = Array.isArray(t) ? t : Array.isArray(t?.groups) ? t.groups : Array.isArray(e?.groups) ? e.groups : [], r = t?.recordMeta ?? e?.recordMeta;
514
518
  r && typeof r == "object" && (n.recordMeta = r);
515
519
  let i = t?.previewConfig ?? e?.previewConfig;
516
520
  return i && typeof i == "object" && (n.previewConfig = i), n;
517
521
  }
518
- async function Z({ module: e, id: t, view: n, clientId: r, region: i, candidateVersionId: o } = {}) {
522
+ async function Q({ module: e, id: t, view: n, clientId: r, region: i, candidateVersionId: o } = {}) {
519
523
  if (!e) throw Error("module is required to fetch form groups");
520
- let c = await N(), l = new URLSearchParams({ module: e });
524
+ let c = await P(), l = new URLSearchParams({ module: e });
521
525
  t && l.set("id", String(t)), n && l.set("view", String(n)), r && l.set("clientId", String(r)), i && l.set("region", String(i)), o && l.set("candidateVersionId", o);
522
526
  let u = `${a}/admin/form-groups?${l.toString()}`;
523
- return X(await s(u, async () => {
527
+ return Z(await s(u, async () => {
524
528
  let e = await fetch(u, {
525
529
  method: "GET",
526
530
  headers: c
@@ -532,9 +536,9 @@ async function Z({ module: e, id: t, view: n, clientId: r, region: i, candidateV
532
536
  return e.json();
533
537
  }));
534
538
  }
535
- async function Q({ searchQuery: e, candidateId: t }) {
539
+ async function $({ searchQuery: e, candidateId: t }) {
536
540
  let n = localStorage.getItem("tenantId") || "93c782a4aa626175e5d11afa", i = localStorage.getItem("businessId") || "83c782a4aa626175e5d11afa", a = localStorage.getItem("businessUnitId") || "63b57588fd768a839dbc0f63", o = Number(localStorage.getItem("userId")) || 1;
537
- return P(r, "/joblist", {
541
+ return F(r, "/joblist", {
538
542
  method: "POST",
539
543
  body: JSON.stringify({
540
544
  tenantId: n,
@@ -547,6 +551,6 @@ async function Q({ searchQuery: e, candidateId: t }) {
547
551
  });
548
552
  }
549
553
  //#endregion
550
- export { R as a, Z as c, H as d, w as f, C as i, x as l, c as m, T as n, Y as o, E as p, S as r, z as s, P as t, Q as u };
554
+ export { z as a, Q as c, U as d, T as f, l as h, w as i, S as l, c as m, E as n, X as o, D as p, C as r, B as s, F as t, $ as u };
551
555
 
552
- //# sourceMappingURL=dropdownApi-B8SIWhB8.js.map
556
+ //# sourceMappingURL=dropdownApi-BLfaVpEW.js.map