twenty-sdk 2.37.0 → 2.38.0

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 (48) hide show
  1. package/dist/billing/index.cjs +3 -3
  2. package/dist/billing/index.cjs.map +1 -1
  3. package/dist/billing/index.d.ts +25 -4
  4. package/dist/billing/index.mjs +495 -464
  5. package/dist/billing/index.mjs.map +1 -1
  6. package/dist/catalog-sync-DB_oIbry.js +1 -0
  7. package/dist/{catalog-sync-mAO3vmdp.mjs → catalog-sync-TFrxc_Y6.mjs} +4 -4
  8. package/dist/cli/commands/dev/dev-once.d.ts +1 -0
  9. package/dist/cli/commands/dev/dev.d.ts +1 -0
  10. package/dist/cli/operations/dev-once.d.ts +1 -0
  11. package/dist/cli/utilities/api/api-service.d.ts +1 -0
  12. package/dist/cli/utilities/api/application-api.d.ts +1 -0
  13. package/dist/cli/utilities/dev/orchestrator/dev-mode-orchestrator.d.ts +1 -0
  14. package/dist/cli/utilities/dev/orchestrator/steps/format-sync-actions-plan.d.ts +8 -1
  15. package/dist/cli/utilities/dev/orchestrator/steps/sync-application-orchestrator-step.d.ts +3 -1
  16. package/dist/cli/utilities/entity/entity-view-template.d.ts +1 -1
  17. package/dist/cli/utilities/error/parse-server-error.d.ts +1 -0
  18. package/dist/cli.cjs +30 -30
  19. package/dist/cli.mjs +5447 -5427
  20. package/dist/define/index.cjs +14 -14
  21. package/dist/define/index.cjs.map +1 -1
  22. package/dist/define/index.d.ts +82 -14
  23. package/dist/define/index.mjs +5717 -5690
  24. package/dist/define/index.mjs.map +1 -1
  25. package/dist/front-component/index.cjs +1 -1
  26. package/dist/front-component/index.cjs.map +1 -1
  27. package/dist/front-component/index.d.ts +23 -6
  28. package/dist/front-component/index.mjs +2 -2
  29. package/dist/front-component/index.mjs.map +1 -1
  30. package/dist/front-component-renderer/build.cjs +1 -1
  31. package/dist/front-component-renderer/build.mjs +1 -1
  32. package/dist/{get-front-component-build-plugins-WU9ATS3e.mjs → get-front-component-build-plugins-Bed7hCGi.mjs} +46 -38
  33. package/dist/{get-front-component-build-plugins-DZIleilT.js → get-front-component-build-plugins-o8cM1FFZ.js} +8 -8
  34. package/dist/{get-function-input-schema-GNk3NRLJ-DKoJBhuO.js → get-function-input-schema-GNk3NRLJ-A3CmF1qq.js} +1 -1
  35. package/dist/{get-function-input-schema-GNk3NRLJ-H7iWzfXn.mjs → get-function-input-schema-GNk3NRLJ-BPeB4a-_.mjs} +1 -1
  36. package/dist/logic-function/index.cjs +4 -4
  37. package/dist/logic-function/index.cjs.map +1 -1
  38. package/dist/logic-function/index.d.ts +23 -3
  39. package/dist/logic-function/index.mjs +26 -12
  40. package/dist/logic-function/index.mjs.map +1 -1
  41. package/dist/{login-4PI5lTOa.js → login-2yrPIORt.js} +59 -66
  42. package/dist/{login-CNByz3vi.mjs → login-QYv7vAbh.mjs} +5348 -5303
  43. package/dist/operations.cjs +1 -1
  44. package/dist/operations.mjs +4 -4
  45. package/dist/utils/index.cjs.map +1 -1
  46. package/dist/utils/index.mjs.map +1 -1
  47. package/package.json +2 -2
  48. package/dist/catalog-sync-Szx_4267.js +0 -1
@@ -36,5 +36,5 @@ Please compile your catalog first.
36
36
  newResult[${r}] = ${n}.value;
37
37
  }
38
38
 
39
- `)}t.write(`payload.value = newResult;`),t.write(`return payload;`);let s=t.compile();return(t,n)=>s(e,t,n)},a,o=Tt,s=!gt.jitless,c=s&&Et.value,l=t.catchall,u;e._zod.parse=(d,f)=>{u??=r.value;let p=d.value;return o(p)?s&&c&&f?.async===!1&&f.jitless!==!0?(a||=i(t.shape),d=a(d,f),l?Er([],p,d,f,u,e):d):n(d,f):(d.issues.push({expected:`object`,code:`invalid_type`,input:p,inst:e}),d)}});function kr(e,t,n,r){for(let n of e)if(n.issues.length===0)return t.value=n.value,t;let i=e.filter(e=>!B(e));return i.length===1?(t.value=i[0].value,i[0]):(t.issues.push({code:`invalid_union`,input:t.value,inst:n,errors:e.map(e=>e.issues.map(e=>V(e,r,M())))}),t)}var Ar=A(`$ZodUnion`,(e,t)=>{W.init(e,t),N(e._zod,`optin`,()=>t.options.some(e=>e._zod.optin===`optional`)?`optional`:void 0),N(e._zod,`optout`,()=>t.options.some(e=>e._zod.optout===`optional`)?`optional`:void 0),N(e._zod,`values`,()=>{if(t.options.every(e=>e._zod.values))return new Set(t.options.flatMap(e=>Array.from(e._zod.values)))}),N(e._zod,`pattern`,()=>{if(t.options.every(e=>e._zod.pattern)){let e=t.options.map(e=>e._zod.pattern);return RegExp(`^(${e.map(e=>xt(e.source)).join(`|`)})$`)}});let n=t.options.length===1,r=t.options[0]._zod.run;e._zod.parse=(i,a)=>{if(n)return r(i,a);let o=!1,s=[];for(let e of t.options){let t=e._zod.run({value:i.value,issues:[]},a);if(t instanceof Promise)s.push(t),o=!0;else{if(t.issues.length===0)return t;s.push(t)}}return o?Promise.all(s).then(t=>kr(t,i,e,a)):kr(s,i,e,a)}}),jr=A(`$ZodIntersection`,(e,t)=>{W.init(e,t),e._zod.parse=(e,n)=>{let r=e.value,i=t.left._zod.run({value:r,issues:[]},n),a=t.right._zod.run({value:r,issues:[]},n);return i instanceof Promise||a instanceof Promise?Promise.all([i,a]).then(([t,n])=>Nr(e,t,n)):Nr(e,i,a)}});function Mr(e,t){if(e===t||e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(I(e)&&I(t)){let n=Object.keys(t),r=Object.keys(e).filter(e=>n.indexOf(e)!==-1),i={...e,...t};for(let n of r){let r=Mr(e[n],t[n]);if(!r.valid)return{valid:!1,mergeErrorPath:[n,...r.mergeErrorPath]};i[n]=r.data}return{valid:!0,data:i}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};let n=[];for(let r=0;r<e.length;r++){let i=e[r],a=t[r],o=Mr(i,a);if(!o.valid)return{valid:!1,mergeErrorPath:[r,...o.mergeErrorPath]};n.push(o.data)}return{valid:!0,data:n}}return{valid:!1,mergeErrorPath:[]}}function Nr(e,t,n){if(t.issues.length&&e.issues.push(...t.issues),n.issues.length&&e.issues.push(...n.issues),B(e))return e;let r=Mr(t.value,n.value);if(!r.valid)throw Error(`Unmergable intersection. Error path: ${JSON.stringify(r.mergeErrorPath)}`);return e.value=r.data,e}var Pr=A(`$ZodEnum`,(e,t)=>{W.init(e,t);let n=_t(t.entries),r=new Set(n);e._zod.values=r,e._zod.pattern=RegExp(`^(${n.filter(e=>Ot.has(typeof e)).map(e=>typeof e==`string`?L(e):e.toString()).join(`|`)})$`),e._zod.parse=(t,i)=>{let a=t.value;return r.has(a)||t.issues.push({code:`invalid_value`,values:n,input:a,inst:e}),t}}),Fr=A(`$ZodTransform`,(e,t)=>{W.init(e,t),e._zod.parse=(n,r)=>{if(r.direction===`backward`)throw new ht(e.constructor.name);let i=t.transform(n.value,n);if(r.async)return(i instanceof Promise?i:Promise.resolve(i)).then(e=>(n.value=e,n));if(i instanceof Promise)throw new j;return n.value=i,n}});function Ir(e,t){return e.issues.length&&t===void 0?{issues:[],value:void 0}:e}var Lr=A(`$ZodOptional`,(e,t)=>{W.init(e,t),e._zod.optin=`optional`,e._zod.optout=`optional`,N(e._zod,`values`,()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),N(e._zod,`pattern`,()=>{let e=t.innerType._zod.pattern;return e?RegExp(`^(${xt(e.source)})?$`):void 0}),e._zod.parse=(e,n)=>{if(t.innerType._zod.optin===`optional`){let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(t=>Ir(t,e.value)):Ir(r,e.value)}return e.value===void 0?e:t.innerType._zod.run(e,n)}}),Rr=A(`$ZodNullable`,(e,t)=>{W.init(e,t),N(e._zod,`optin`,()=>t.innerType._zod.optin),N(e._zod,`optout`,()=>t.innerType._zod.optout),N(e._zod,`pattern`,()=>{let e=t.innerType._zod.pattern;return e?RegExp(`^(${xt(e.source)}|null)$`):void 0}),N(e._zod,`values`,()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(e,n)=>e.value===null?e:t.innerType._zod.run(e,n)}),zr=A(`$ZodDefault`,(e,t)=>{W.init(e,t),e._zod.optin=`optional`,N(e._zod,`values`,()=>t.innerType._zod.values),e._zod.parse=(e,n)=>{if(n.direction===`backward`)return t.innerType._zod.run(e,n);if(e.value===void 0)return e.value=t.defaultValue,e;let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(e=>Br(e,t)):Br(r,t)}});function Br(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}var Vr=A(`$ZodPrefault`,(e,t)=>{W.init(e,t),e._zod.optin=`optional`,N(e._zod,`values`,()=>t.innerType._zod.values),e._zod.parse=(e,n)=>(n.direction===`backward`||e.value===void 0&&(e.value=t.defaultValue),t.innerType._zod.run(e,n))}),Hr=A(`$ZodNonOptional`,(e,t)=>{W.init(e,t),N(e._zod,`values`,()=>{let e=t.innerType._zod.values;return e?new Set([...e].filter(e=>e!==void 0)):void 0}),e._zod.parse=(n,r)=>{let i=t.innerType._zod.run(n,r);return i instanceof Promise?i.then(t=>Ur(t,e)):Ur(i,e)}});function Ur(e,t){return!e.issues.length&&e.value===void 0&&e.issues.push({code:`invalid_type`,expected:`nonoptional`,input:e.value,inst:t}),e}var Wr=A(`$ZodCatch`,(e,t)=>{W.init(e,t),N(e._zod,`optin`,()=>t.innerType._zod.optin),N(e._zod,`optout`,()=>t.innerType._zod.optout),N(e._zod,`values`,()=>t.innerType._zod.values),e._zod.parse=(e,n)=>{if(n.direction===`backward`)return t.innerType._zod.run(e,n);let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(r=>(e.value=r.value,r.issues.length&&(e.value=t.catchValue({...e,error:{issues:r.issues.map(e=>V(e,n,M()))},input:e.value}),e.issues=[]),e)):(e.value=r.value,r.issues.length&&(e.value=t.catchValue({...e,error:{issues:r.issues.map(e=>V(e,n,M()))},input:e.value}),e.issues=[]),e)}}),Gr=A(`$ZodPipe`,(e,t)=>{W.init(e,t),N(e._zod,`values`,()=>t.in._zod.values),N(e._zod,`optin`,()=>t.in._zod.optin),N(e._zod,`optout`,()=>t.out._zod.optout),N(e._zod,`propValues`,()=>t.in._zod.propValues),e._zod.parse=(e,n)=>{if(n.direction===`backward`){let r=t.out._zod.run(e,n);return r instanceof Promise?r.then(e=>Kr(e,t.in,n)):Kr(r,t.in,n)}let r=t.in._zod.run(e,n);return r instanceof Promise?r.then(e=>Kr(e,t.out,n)):Kr(r,t.out,n)}});function Kr(e,t,n){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues},n)}var qr=A(`$ZodReadonly`,(e,t)=>{W.init(e,t),N(e._zod,`propValues`,()=>t.innerType._zod.propValues),N(e._zod,`values`,()=>t.innerType._zod.values),N(e._zod,`optin`,()=>t.innerType._zod.optin),N(e._zod,`optout`,()=>t.innerType._zod.optout),e._zod.parse=(e,n)=>{if(n.direction===`backward`)return t.innerType._zod.run(e,n);let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(Jr):Jr(r)}});function Jr(e){return e.value=Object.freeze(e.value),e}var Yr=A(`$ZodCustom`,(e,t)=>{U.init(e,t),W.init(e,t),e._zod.parse=(e,t)=>e,e._zod.check=n=>{let r=n.value,i=t.fn(r);if(i instanceof Promise)return i.then(t=>Xr(t,n,r,e));Xr(i,n,r,e)}});function Xr(e,t,n,r){if(!e){let e={code:`custom`,input:n,inst:r,path:[...r._zod.def.path??[]],continue:!r._zod.def.abort};r._zod.def.params&&(e.params=r._zod.def.params),t.issues.push(H(e))}}var Zr=class{constructor(){this._map=new WeakMap,this._idmap=new Map}add(e,...t){let n=t[0];if(this._map.set(e,n),n&&typeof n==`object`&&`id`in n){if(this._idmap.has(n.id))throw Error(`ID ${n.id} already exists in the registry`);this._idmap.set(n.id,e)}return this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(e){let t=this._map.get(e);return t&&typeof t==`object`&&`id`in t&&this._idmap.delete(t.id),this._map.delete(e),this}get(e){let t=e._zod.parent;if(t){let n={...this.get(t)??{}};delete n.id;let r={...n,...this._map.get(e)};return Object.keys(r).length?r:void 0}return this._map.get(e)}has(e){return this._map.has(e)}};function Qr(){return new Zr}var $r=Qr();function ei(e,t){return new e({type:`string`,...z(t)})}function ti(e,t){return new e({type:`string`,format:`email`,check:`string_format`,abort:!1,...z(t)})}function ni(e,t){return new e({type:`string`,format:`guid`,check:`string_format`,abort:!1,...z(t)})}function ri(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,...z(t)})}function ii(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v4`,...z(t)})}function ai(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v6`,...z(t)})}function oi(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v7`,...z(t)})}function si(e,t){return new e({type:`string`,format:`url`,check:`string_format`,abort:!1,...z(t)})}function ci(e,t){return new e({type:`string`,format:`emoji`,check:`string_format`,abort:!1,...z(t)})}function li(e,t){return new e({type:`string`,format:`nanoid`,check:`string_format`,abort:!1,...z(t)})}function ui(e,t){return new e({type:`string`,format:`cuid`,check:`string_format`,abort:!1,...z(t)})}function di(e,t){return new e({type:`string`,format:`cuid2`,check:`string_format`,abort:!1,...z(t)})}function fi(e,t){return new e({type:`string`,format:`ulid`,check:`string_format`,abort:!1,...z(t)})}function pi(e,t){return new e({type:`string`,format:`xid`,check:`string_format`,abort:!1,...z(t)})}function mi(e,t){return new e({type:`string`,format:`ksuid`,check:`string_format`,abort:!1,...z(t)})}function hi(e,t){return new e({type:`string`,format:`ipv4`,check:`string_format`,abort:!1,...z(t)})}function gi(e,t){return new e({type:`string`,format:`ipv6`,check:`string_format`,abort:!1,...z(t)})}function _i(e,t){return new e({type:`string`,format:`cidrv4`,check:`string_format`,abort:!1,...z(t)})}function vi(e,t){return new e({type:`string`,format:`cidrv6`,check:`string_format`,abort:!1,...z(t)})}function yi(e,t){return new e({type:`string`,format:`base64`,check:`string_format`,abort:!1,...z(t)})}function bi(e,t){return new e({type:`string`,format:`base64url`,check:`string_format`,abort:!1,...z(t)})}function xi(e,t){return new e({type:`string`,format:`e164`,check:`string_format`,abort:!1,...z(t)})}function Si(e,t){return new e({type:`string`,format:`jwt`,check:`string_format`,abort:!1,...z(t)})}function Ci(e,t){return new e({type:`string`,format:`datetime`,check:`string_format`,offset:!1,local:!1,precision:null,...z(t)})}function wi(e,t){return new e({type:`string`,format:`date`,check:`string_format`,...z(t)})}function Ti(e,t){return new e({type:`string`,format:`time`,check:`string_format`,precision:null,...z(t)})}function Ei(e,t){return new e({type:`string`,format:`duration`,check:`string_format`,...z(t)})}function Di(e){return new e({type:`unknown`})}function Oi(e,t){return new e({type:`never`,...z(t)})}function ki(e,t){return new Pn({check:`max_length`,...z(t),maximum:e})}function Ai(e,t){return new Fn({check:`min_length`,...z(t),minimum:e})}function ji(e,t){return new In({check:`length_equals`,...z(t),length:e})}function Mi(e,t){return new Rn({check:`string_format`,format:`regex`,...z(t),pattern:e})}function Ni(e){return new zn({check:`string_format`,format:`lowercase`,...z(e)})}function Pi(e){return new Bn({check:`string_format`,format:`uppercase`,...z(e)})}function Fi(e,t){return new Vn({check:`string_format`,format:`includes`,...z(t),includes:e})}function Ii(e,t){return new Hn({check:`string_format`,format:`starts_with`,...z(t),prefix:e})}function Li(e,t){return new Un({check:`string_format`,format:`ends_with`,...z(t),suffix:e})}function K(e){return new Wn({check:`overwrite`,tx:e})}function Ri(e){return K(t=>t.normalize(e))}function zi(){return K(e=>e.trim())}function Bi(){return K(e=>e.toLowerCase())}function Vi(){return K(e=>e.toUpperCase())}function Hi(e,t,n){return new e({type:`array`,element:t,...z(n)})}function Ui(e,t,n){return new e({type:`custom`,check:`custom`,fn:t,...z(n)})}function Wi(e){let t=Gi(n=>(n.addIssue=e=>{if(typeof e==`string`)n.issues.push(H(e,n.value,t._zod.def));else{let r=e;r.fatal&&(r.continue=!1),r.code??=`custom`,r.input??=n.value,r.inst??=t,r.continue??=!t._zod.def.abort,n.issues.push(H(r))}},e(n.value,n)));return t}function Gi(e,t){let n=new U({check:`custom`,...z(t)});return n._zod.check=e,n}var Ki=A(`ZodISODateTime`,(e,t)=>{ar.init(e,t),Y.init(e,t)});function qi(e){return Ci(Ki,e)}var Ji=A(`ZodISODate`,(e,t)=>{or.init(e,t),Y.init(e,t)});function Yi(e){return wi(Ji,e)}var Xi=A(`ZodISOTime`,(e,t)=>{sr.init(e,t),Y.init(e,t)});function Zi(e){return Ti(Xi,e)}var Qi=A(`ZodISODuration`,(e,t)=>{cr.init(e,t),Y.init(e,t)});function $i(e){return Ei(Qi,e)}var ea=(e,t)=>{Vt.init(e,t),e.name=`ZodError`,Object.defineProperties(e,{format:{value:t=>Wt(e,t)},flatten:{value:t=>Ut(e,t)},addIssue:{value:t=>{e.issues.push(t),e.message=JSON.stringify(e.issues,vt,2)}},addIssues:{value:t=>{e.issues.push(...t),e.message=JSON.stringify(e.issues,vt,2)}},isEmpty:{get(){return e.issues.length===0}}})};A(`ZodError`,ea);var q=A(`ZodError`,ea,{Parent:Error}),ta=Gt(q),na=Kt(q),ra=qt(q),ia=Yt(q),aa=Zt(q),oa=Qt(q),sa=$t(q),ca=en(q),la=tn(q),ua=nn(q),da=rn(q),fa=an(q),J=A(`ZodType`,(e,t)=>(W.init(e,t),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.check=(...n)=>e.clone(F(t,{checks:[...t.checks??[],...n.map(e=>typeof e==`function`?{_zod:{check:e,def:{check:`custom`},onattach:[]}}:e)]})),e.clone=(t,n)=>R(e,t,n),e.brand=()=>e,e.register=((t,n)=>(t.add(e,n),e)),e.parse=(t,n)=>ta(e,t,n,{callee:e.parse}),e.safeParse=(t,n)=>ra(e,t,n),e.parseAsync=async(t,n)=>na(e,t,n,{callee:e.parseAsync}),e.safeParseAsync=async(t,n)=>ia(e,t,n),e.spa=e.safeParseAsync,e.encode=(t,n)=>aa(e,t,n),e.decode=(t,n)=>oa(e,t,n),e.encodeAsync=async(t,n)=>sa(e,t,n),e.decodeAsync=async(t,n)=>ca(e,t,n),e.safeEncode=(t,n)=>la(e,t,n),e.safeDecode=(t,n)=>ua(e,t,n),e.safeEncodeAsync=async(t,n)=>da(e,t,n),e.safeDecodeAsync=async(t,n)=>fa(e,t,n),e.refine=(t,n)=>e.check(ho(t,n)),e.superRefine=t=>e.check(go(t)),e.overwrite=t=>e.check(K(t)),e.optional=()=>Qa(e),e.nullable=()=>eo(e),e.nullish=()=>Qa(eo(e)),e.nonoptional=t=>oo(e,t),e.array=()=>Ba(e),e.or=t=>Wa([e,t]),e.and=t=>Ka(e,t),e.transform=t=>uo(e,Xa(t)),e.default=t=>no(e,t),e.prefault=t=>io(e,t),e.catch=t=>co(e,t),e.pipe=t=>uo(e,t),e.readonly=()=>po(e),e.describe=t=>{let n=e.clone();return $r.add(n,{description:t}),n},Object.defineProperty(e,"description",{get(){return $r.get(e)?.description},configurable:!0}),e.meta=(...t)=>{if(t.length===0)return $r.get(e);let n=e.clone();return $r.add(n,t[0]),n},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e)),pa=A(`_ZodString`,(e,t)=>{qn.init(e,t),J.init(e,t);let n=e._zod.bag;e.format=n.format??null,e.minLength=n.minimum??null,e.maxLength=n.maximum??null,e.regex=(...t)=>e.check(Mi(...t)),e.includes=(...t)=>e.check(Fi(...t)),e.startsWith=(...t)=>e.check(Ii(...t)),e.endsWith=(...t)=>e.check(Li(...t)),e.min=(...t)=>e.check(Ai(...t)),e.max=(...t)=>e.check(ki(...t)),e.length=(...t)=>e.check(ji(...t)),e.nonempty=(...t)=>e.check(Ai(1,...t)),e.lowercase=t=>e.check(Ni(t)),e.uppercase=t=>e.check(Pi(t)),e.trim=()=>e.check(zi()),e.normalize=(...t)=>e.check(Ri(...t)),e.toLowerCase=()=>e.check(Bi()),e.toUpperCase=()=>e.check(Vi())}),ma=A(`ZodString`,(e,t)=>{qn.init(e,t),pa.init(e,t),e.email=t=>e.check(ti(ga,t)),e.url=t=>e.check(si(ya,t)),e.jwt=t=>e.check(Si(Pa,t)),e.emoji=t=>e.check(ci(ba,t)),e.guid=t=>e.check(ni(_a,t)),e.uuid=t=>e.check(ri(va,t)),e.uuidv4=t=>e.check(ii(va,t)),e.uuidv6=t=>e.check(ai(va,t)),e.uuidv7=t=>e.check(oi(va,t)),e.nanoid=t=>e.check(li(xa,t)),e.guid=t=>e.check(ni(_a,t)),e.cuid=t=>e.check(ui(Sa,t)),e.cuid2=t=>e.check(di(Ca,t)),e.ulid=t=>e.check(fi(wa,t)),e.base64=t=>e.check(yi(ja,t)),e.base64url=t=>e.check(bi(Ma,t)),e.xid=t=>e.check(pi(Ta,t)),e.ksuid=t=>e.check(mi(Ea,t)),e.ipv4=t=>e.check(hi(Da,t)),e.ipv6=t=>e.check(gi(Oa,t)),e.cidrv4=t=>e.check(_i(ka,t)),e.cidrv6=t=>e.check(vi(Aa,t)),e.e164=t=>e.check(xi(Na,t)),e.datetime=t=>e.check(qi(t)),e.date=t=>e.check(Yi(t)),e.time=t=>e.check(Zi(t)),e.duration=t=>e.check($i(t))});function ha(e){return ei(ma,e)}var Y=A(`ZodStringFormat`,(e,t)=>{G.init(e,t),pa.init(e,t)}),ga=A(`ZodEmail`,(e,t)=>{Xn.init(e,t),Y.init(e,t)}),_a=A(`ZodGUID`,(e,t)=>{Jn.init(e,t),Y.init(e,t)}),va=A(`ZodUUID`,(e,t)=>{Yn.init(e,t),Y.init(e,t)}),ya=A(`ZodURL`,(e,t)=>{Zn.init(e,t),Y.init(e,t)}),ba=A(`ZodEmoji`,(e,t)=>{Qn.init(e,t),Y.init(e,t)}),xa=A(`ZodNanoID`,(e,t)=>{$n.init(e,t),Y.init(e,t)}),Sa=A(`ZodCUID`,(e,t)=>{er.init(e,t),Y.init(e,t)}),Ca=A(`ZodCUID2`,(e,t)=>{tr.init(e,t),Y.init(e,t)}),wa=A(`ZodULID`,(e,t)=>{nr.init(e,t),Y.init(e,t)}),Ta=A(`ZodXID`,(e,t)=>{rr.init(e,t),Y.init(e,t)}),Ea=A(`ZodKSUID`,(e,t)=>{ir.init(e,t),Y.init(e,t)}),Da=A(`ZodIPv4`,(e,t)=>{lr.init(e,t),Y.init(e,t)}),Oa=A(`ZodIPv6`,(e,t)=>{ur.init(e,t),Y.init(e,t)}),ka=A(`ZodCIDRv4`,(e,t)=>{dr.init(e,t),Y.init(e,t)}),Aa=A(`ZodCIDRv6`,(e,t)=>{fr.init(e,t),Y.init(e,t)}),ja=A(`ZodBase64`,(e,t)=>{mr.init(e,t),Y.init(e,t)}),Ma=A(`ZodBase64URL`,(e,t)=>{gr.init(e,t),Y.init(e,t)}),Na=A(`ZodE164`,(e,t)=>{_r.init(e,t),Y.init(e,t)}),Pa=A(`ZodJWT`,(e,t)=>{yr.init(e,t),Y.init(e,t)}),Fa=A(`ZodUnknown`,(e,t)=>{br.init(e,t),J.init(e,t)});function Ia(){return Di(Fa)}var La=A(`ZodNever`,(e,t)=>{xr.init(e,t),J.init(e,t)});function Ra(e){return Oi(La,e)}var za=A(`ZodArray`,(e,t)=>{Cr.init(e,t),J.init(e,t),e.element=t.element,e.min=(t,n)=>e.check(Ai(t,n)),e.nonempty=t=>e.check(Ai(1,t)),e.max=(t,n)=>e.check(ki(t,n)),e.length=(t,n)=>e.check(ji(t,n)),e.unwrap=()=>e.element});function Ba(e,t){return Hi(za,e,t)}var Va=A(`ZodObject`,(e,t)=>{Or.init(e,t),J.init(e,t),N(e,`shape`,()=>t.shape),e.keyof=()=>Ja(Object.keys(e._zod.def.shape)),e.catchall=t=>e.clone({...e._zod.def,catchall:t}),e.passthrough=()=>e.clone({...e._zod.def,catchall:Ia()}),e.loose=()=>e.clone({...e._zod.def,catchall:Ia()}),e.strict=()=>e.clone({...e._zod.def,catchall:Ra()}),e.strip=()=>e.clone({...e._zod.def,catchall:void 0}),e.extend=t=>Mt(e,t),e.safeExtend=t=>Nt(e,t),e.merge=t=>Pt(e,t),e.pick=t=>At(e,t),e.omit=t=>jt(e,t),e.partial=(...t)=>Ft(Za,e,t[0]),e.required=(...t)=>It(ao,e,t[0])});function Ha(e,t){return new Va({type:`object`,shape:e??{},...z(t)})}var Ua=A(`ZodUnion`,(e,t)=>{Ar.init(e,t),J.init(e,t),e.options=t.options});function Wa(e,t){return new Ua({type:`union`,options:e,...z(t)})}var Ga=A(`ZodIntersection`,(e,t)=>{jr.init(e,t),J.init(e,t)});function Ka(e,t){return new Ga({type:`intersection`,left:e,right:t})}var qa=A(`ZodEnum`,(e,t)=>{Pr.init(e,t),J.init(e,t),e.enum=t.entries,e.options=Object.values(t.entries);let n=new Set(Object.keys(t.entries));e.extract=(e,r)=>{let i={};for(let r of e)if(n.has(r))i[r]=t.entries[r];else throw Error(`Key ${r} not found in enum`);return new qa({...t,checks:[],...z(r),entries:i})},e.exclude=(e,r)=>{let i={...t.entries};for(let t of e)if(n.has(t))delete i[t];else throw Error(`Key ${t} not found in enum`);return new qa({...t,checks:[],...z(r),entries:i})}});function Ja(e,t){return new qa({type:`enum`,entries:Array.isArray(e)?Object.fromEntries(e.map(e=>[e,e])):e,...z(t)})}var Ya=A(`ZodTransform`,(e,t)=>{Fr.init(e,t),J.init(e,t),e._zod.parse=(n,r)=>{if(r.direction===`backward`)throw new ht(e.constructor.name);n.addIssue=r=>{if(typeof r==`string`)n.issues.push(H(r,n.value,t));else{let t=r;t.fatal&&(t.continue=!1),t.code??=`custom`,t.input??=n.value,t.inst??=e,n.issues.push(H(t))}};let i=t.transform(n.value,n);return i instanceof Promise?i.then(e=>(n.value=e,n)):(n.value=i,n)}});function Xa(e){return new Ya({type:`transform`,transform:e})}var Za=A(`ZodOptional`,(e,t)=>{Lr.init(e,t),J.init(e,t),e.unwrap=()=>e._zod.def.innerType});function Qa(e){return new Za({type:`optional`,innerType:e})}var $a=A(`ZodNullable`,(e,t)=>{Rr.init(e,t),J.init(e,t),e.unwrap=()=>e._zod.def.innerType});function eo(e){return new $a({type:`nullable`,innerType:e})}var to=A(`ZodDefault`,(e,t)=>{zr.init(e,t),J.init(e,t),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function no(e,t){return new to({type:`default`,innerType:e,get defaultValue(){return typeof t==`function`?t():Dt(t)}})}var ro=A(`ZodPrefault`,(e,t)=>{Vr.init(e,t),J.init(e,t),e.unwrap=()=>e._zod.def.innerType});function io(e,t){return new ro({type:`prefault`,innerType:e,get defaultValue(){return typeof t==`function`?t():Dt(t)}})}var ao=A(`ZodNonOptional`,(e,t)=>{Hr.init(e,t),J.init(e,t),e.unwrap=()=>e._zod.def.innerType});function oo(e,t){return new ao({type:`nonoptional`,innerType:e,...z(t)})}var so=A(`ZodCatch`,(e,t)=>{Wr.init(e,t),J.init(e,t),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function co(e,t){return new so({type:`catch`,innerType:e,catchValue:typeof t==`function`?t:()=>t})}var lo=A(`ZodPipe`,(e,t)=>{Gr.init(e,t),J.init(e,t),e.in=t.in,e.out=t.out});function uo(e,t){return new lo({type:`pipe`,in:e,out:t})}var fo=A(`ZodReadonly`,(e,t)=>{qr.init(e,t),J.init(e,t),e.unwrap=()=>e._zod.def.innerType});function po(e){return new fo({type:`readonly`,innerType:e})}var mo=A(`ZodCustom`,(e,t)=>{Yr.init(e,t),J.init(e,t)});function ho(e,t={}){return Ui(mo,e,t)}function go(e){return Wi(e)}var _o=function(){function e(e){this.groups=[],this.each=!1,this.context=void 0,this.type=e.type,this.name=e.name,this.target=e.target,this.propertyName=e.propertyName,this.constraints=e?.constraints,this.constraintCls=e.constraintCls,this.validationTypeOptions=e.validationTypeOptions,e.validationOptions&&(this.message=e.validationOptions.message,this.groups=e.validationOptions.groups,this.always=e.validationOptions.always,this.each=e.validationOptions.each,this.context=e.validationOptions.context)}return e}(),vo=function(){function e(){}return e.prototype.transform=function(e){var t=[];return Object.keys(e.properties).forEach(function(n){e.properties[n].forEach(function(r){var i={message:r.message,groups:r.groups,always:r.always,each:r.each},a={type:r.type,name:r.name,target:e.name,propertyName:n,constraints:r.constraints,validationTypeOptions:r.options,validationOptions:i};t.push(new _o(a))})}),t},e}(),yo=function(e){var t=typeof Symbol==`function`&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length==`number`)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?`Object is not iterable.`:`Symbol.iterator is not defined.`)},bo=function(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a},xo=function(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||=Array.prototype.slice.call(t,0,r),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))};(function(){function e(){this.validationMetadatas=new Map,this.constraintMetadatas=new Map}return Object.defineProperty(e.prototype,"hasValidationMetaData",{get:function(){return!!this.validationMetadatas.size},enumerable:!1,configurable:!0}),e.prototype.addValidationSchema=function(e){var t=this;new vo().transform(e).forEach(function(e){return t.addValidationMetadata(e)})},e.prototype.addValidationMetadata=function(e){var t=this.validationMetadatas.get(e.target);t?t.push(e):this.validationMetadatas.set(e.target,[e])},e.prototype.addConstraintMetadata=function(e){var t=this.constraintMetadatas.get(e.target);t?t.push(e):this.constraintMetadatas.set(e.target,[e])},e.prototype.groupByPropertyName=function(e){var t={};return e.forEach(function(e){t[e.propertyName]||(t[e.propertyName]=[]),t[e.propertyName].push(e)}),t},e.prototype.getTargetValidationMetadatas=function(e,t,n,r,i){var a,o,s=function(e){return e.always===void 0?e.groups&&e.groups.length?!1:n:e.always},c=function(e){return!!(r&&(!i||!i.length)&&e.groups&&e.groups.length)},l=(this.validationMetadatas.get(e)||[]).filter(function(n){return n.target!==e&&n.target!==t?!1:s(n)?!0:c(n)?!1:i&&i.length>0?n.groups&&!!n.groups.find(function(e){return i.indexOf(e)!==-1}):!0}),u=[];try{for(var d=yo(this.validationMetadatas.entries()),f=d.next();!f.done;f=d.next()){var p=bo(f.value,2),m=p[0],h=p[1];e.prototype instanceof m&&u.push.apply(u,xo([],bo(h),!1))}}catch(e){a={error:e}}finally{try{f&&!f.done&&(o=d.return)&&o.call(d)}finally{if(a)throw a.error}}var g=u.filter(function(t){return typeof t.target==`string`||t.target===e||t.target instanceof Function&&!(e.prototype instanceof t.target)?!1:s(t)?!0:c(t)?!1:i&&i.length>0?t.groups&&!!t.groups.find(function(e){return i.indexOf(e)!==-1}):!0}).filter(function(e){return!l.find(function(t){return t.propertyName===e.propertyName&&t.type===e.type})});return l.concat(g)},e.prototype.getTargetValidatorConstraints=function(e){return this.constraintMetadatas.get(e)||[]},e})(),function(){function e(){}return e.isValid=function(e){var t=this;return e!==`isValid`&&e!==`getMessage`&&Object.keys(this).map(function(e){return t[e]}).indexOf(e)!==-1},e.CUSTOM_VALIDATION=`customValidation`,e.NESTED_VALIDATION=`nestedValidation`,e.PROMISE_VALIDATION=`promiseValidation`,e.CONDITIONAL_VALIDATION=`conditionalValidation`,e.WHITELIST=`whitelistValidation`,e.IS_DEFINED=`isDefined`,e}();var So=new(function(){function e(){this.instances=[]}return e.prototype.get=function(e){var t=this.instances.find(function(t){return t.type===e});return t||(t={type:e,object:new e},this.instances.push(t)),t.object},e}()),Co,wo;function To(e){if(Co)try{var t=Co.get(e);if(t||!wo||!wo.fallback)return t}catch(e){if(!wo||!wo.fallbackOnErrors)throw e}return So.get(e)}(function(){function e(e,t,n){n===void 0&&(n=!1),this.target=e,this.name=t,this.async=n}return Object.defineProperty(e.prototype,"instance",{get:function(){return To(this.target)},enumerable:!1,configurable:!0}),e})();var X=function(e){return e.ACTOR=`ACTOR`,e.ADDRESS=`ADDRESS`,e.ARRAY=`ARRAY`,e.BOOLEAN=`BOOLEAN`,e.CURRENCY=`CURRENCY`,e.DATE=`DATE`,e.DATE_TIME=`DATE_TIME`,e.EMAILS=`EMAILS`,e.FILES=`FILES`,e.FULL_NAME=`FULL_NAME`,e.LINKS=`LINKS`,e.MORPH_RELATION=`MORPH_RELATION`,e.MULTI_SELECT=`MULTI_SELECT`,e.NUMBER=`NUMBER`,e.NUMERIC=`NUMERIC`,e.PHONES=`PHONES`,e.POSITION=`POSITION`,e.RATING=`RATING`,e.RAW_JSON=`RAW_JSON`,e.RELATION=`RELATION`,e.RICH_TEXT=`RICH_TEXT`,e.SELECT=`SELECT`,e.TEXT=`TEXT`,e.TS_VECTOR=`TS_VECTOR`,e.UUID=`UUID`,e}({}),Eo=function(e){return e.Verify=`/verify`,e.VerifyEmail=`/verify-email`,e.SignInUp=`/welcome`,e.Invite=`/invite/:workspaceInviteHash`,e.ResetPassword=`/reset-password/:passwordResetToken`,e.WorkspaceActivation=`/workspace-activation`,e.CreateProfile=`/create/profile`,e.SyncEmails=`/sync/emails`,e.InstallApps=`/install-apps`,e.InviteTeam=`/invite-team`,e.PlanRequired=`/plan-required`,e.PlanRequiredSuccess=`/plan-required/payment-success`,e.BookCall=`/book-call`,e.AiChat=`/chat/:threadId?`,e.Index=`/`,e.Home=`/home`,e.TasksPage=`/objects/tasks`,e.OpportunitiesPage=`/objects/opportunities`,e.RecordIndexPage=`/objects/:objectNamePlural`,e.RecordShowPage=`/object/:objectNameSingular/:objectRecordId`,e.PageLayoutPage=`/page/:pageLayoutId`,e.WorkflowCoreIndexPage=`/workflow-core`,e.Settings=`settings`,e.SettingsCatchAll=`/settings/*`,e.Developers=`developers`,e.DevelopersCatchAll=`/developers/*`,e.Authorize=`/authorize`,e.Dpa=`/dpa`,e.NotFoundWildcard=`*`,e.NotFound=`/not-found`,e}({}),Do=function(e){return e.EMAIL=`EMAIL`,e.CALENDAR=`CALENDAR`,e.WORKFLOW=`WORKFLOW`,e.AGENT=`AGENT`,e.API=`API`,e.IMPORT=`IMPORT`,e.MANUAL=`MANUAL`,e.SYSTEM=`SYSTEM`,e.WEBHOOK=`WEBHOOK`,e.APPLICATION=`APPLICATION`,e}({}),Oo={type:X.ACTOR,properties:[{name:`source`,type:X.SELECT,hidden:!1,isRequired:!0,options:Object.keys(Do).map((e,t)=>({id:(0,n.v4)(),label:`${Do[e].toLowerCase()}`,value:e,position:t}))},{name:`workspaceMemberId`,type:X.UUID,hidden:`input`,isRequired:!1},{name:`name`,type:X.TEXT,hidden:`input`,isRequired:!0},{name:`context`,type:X.RAW_JSON,hidden:!1,isRequired:!1}]},ko={type:X.ADDRESS,properties:[{name:`addressStreet1`,type:X.TEXT,hidden:!1,isRequired:!1},{name:`addressStreet2`,type:X.TEXT,hidden:!1,isRequired:!1},{name:`addressCity`,type:X.TEXT,hidden:!1,isRequired:!1},{name:`addressPostcode`,type:X.TEXT,hidden:!1,isRequired:!1},{name:`addressState`,type:X.TEXT,hidden:!1,isRequired:!1},{name:`addressCountry`,type:X.TEXT,hidden:!1,isRequired:!1},{name:`addressLat`,type:X.NUMERIC,hidden:!1,isRequired:!1},{name:`addressLng`,type:X.NUMERIC,hidden:!1,isRequired:!1}]},Ao={type:X.CURRENCY,properties:[{name:`amountMicros`,type:X.NUMERIC,hidden:!1,isRequired:!1},{name:`currencyCode`,type:X.TEXT,hidden:!1,isRequired:!1}]},jo={type:X.EMAILS,properties:[{name:`primaryEmail`,type:X.TEXT,hidden:!1,isRequired:!1,isIncludedInUniqueConstraint:!0},{name:`additionalEmails`,type:X.RAW_JSON,hidden:!1,isRequired:!1}]},Mo={type:X.FULL_NAME,properties:[{name:`firstName`,type:X.TEXT,hidden:!1,isRequired:!1,isIncludedInUniqueConstraint:!1},{name:`lastName`,type:X.TEXT,hidden:!1,isRequired:!1,isIncludedInUniqueConstraint:!1}]},No={type:X.LINKS,properties:[{name:`primaryLinkLabel`,type:X.TEXT,hidden:!1,isRequired:!1},{name:`primaryLinkUrl`,type:X.TEXT,hidden:!1,isRequired:!1,isIncludedInUniqueConstraint:!0},{name:`secondaryLinks`,type:X.RAW_JSON,hidden:!1,isRequired:!1}]},Po={type:X.PHONES,properties:[{name:`primaryPhoneNumber`,type:X.TEXT,hidden:!1,isRequired:!1,isIncludedInUniqueConstraint:!0},{name:`primaryPhoneCountryCode`,type:X.TEXT,hidden:!1,isRequired:!1,isIncludedInUniqueConstraint:!0},{name:`primaryPhoneCallingCode`,type:X.TEXT,hidden:!1,isRequired:!1,isIncludedInUniqueConstraint:!0},{name:`additionalPhones`,type:X.RAW_JSON,hidden:!1,isRequired:!1}]},Fo={type:X.RICH_TEXT,properties:[{name:`blocknote`,type:X.TEXT,hidden:!1,isRequired:!1},{name:`markdown`,type:X.TEXT,hidden:!1,isRequired:!1}]};Ha({blocknote:ha().nullable().optional(),markdown:ha().nullable()}),new Map([[X.LINKS,No],[X.CURRENCY,Ao],[X.FULL_NAME,Mo],[X.ADDRESS,ko],[X.ACTOR,Oo],[X.EMAILS,jo],[X.PHONES,Po],[X.RICH_TEXT,Fo]]),X.RELATION,X.MORPH_RELATION,X.FILES,X.TS_VECTOR;var Io=function(e){return e.CommandMenuDisplay=`command-menu-display`,e.ViewRecord=`view-record`,e.ViewRecords=`view-records`,e.MergeRecords=`merge-records`,e.UpdateRecords=`update-records`,e.EditRichText=`edit-rich-text`,e.Copilot=`copilot`,e.WorkflowTriggerSelectType=`workflow-trigger-select-type`,e.WorkflowStepCreate=`workflow-step-create`,e.WorkflowStepEditType=`workflow-step-edit-type`,e.WorkflowStepView=`workflow-step-view`,e.WorkflowStepEdit=`workflow-step-edit`,e.WorkflowRunStepView=`workflow-run-step-view`,e.SearchRecords=`search-records`,e.AskAI=`ask-ai`,e.PageLayoutDashboardWidgetTypeSelect=`page-layout-dashboard-widget-type-select`,e.PageLayoutTabSettings=`page-layout-tab-settings`,e.PageLayoutWidgetSettings=`page-layout-widget-settings`,e.DashboardChartSettings=`dashboard-chart-settings`,e.DashboardIframeSettings=`dashboard-iframe-settings`,e.DashboardRecordTableSettings=`dashboard-record-table-settings`,e.RecordPageFieldsSettings=`record-page-fields-settings`,e.RecordPageFieldSettings=`record-page-field-settings`,e.ViewFrontComponent=`view-front-component`,e.NavigationMenuItemEdit=`navigation-menu-item-edit`,e.NavigationMenuAddItem=`navigation-menu-add-item`,e.CommandMenuEdit=`command-menu-edit`,e.PageLayoutRecordPageWidgetTypeSelect=`page-layout-record-page-widget-type-select`,e.ComposeEmail=`compose-email`,e.ComposeCalendarEvent=`compose-calendar-event`,e.CreateRelatedRecord=`create-related-record`,e.SendCampaignTest=`send-campaign-test`,e.EmailBlockSettings=`email-block-settings`,e.SettingsMetadataTranslations=`settings-metadata-translations`,e}({}),Lo=`frontComponentHostCommunicationApi`;globalThis[Lo]??={};var Z=globalThis.frontComponentHostCommunicationApi,Ro=()=>{let e=Z.closeSidePanel;if(!m(e))throw Error(`closeSidePanelFunction is not set`);return e()},zo=e=>{let t=Z.copyToClipboard;if(!m(t))throw Error(`copyToClipboardFunction is not set`);return t(e)},Bo=e=>{let t=process.env.applicationVariables;if(t)return JSON.parse(t)[e]},Vo=e=>{let t=Z.enqueueSnackbar;if(!m(t))throw Error(`enqueueSnackbarFunction is not set`);return t(e)},Ho=(e,t,n,r)=>{let i=Z.navigate;if(!m(i))throw Error(`navigateFunction is not set`);return i(e,t,n,r)},Uo=e=>{let t=Z.openCommandConfirmationModal;if(!m(t))throw Error(`openCommandConfirmationModalFunction is not set`);return t(e)},Wo=e=>{let t=Z.openSidePanelPage;if(!m(t))throw Error(`openSidePanelPageFunction is not set`);return t(e)},Q=()=>{let e=Z.unmountFrontComponent;if(!m(e))throw Error(`unmountFrontComponentFunction is not set`);return e()},Go=e=>{let t=Z.updateProgress;if(!m(t))throw Error(`updateProgressFunction is not set`);return t(e)},Ko=(e,t)=>{let n=Z.uploadFile;if(!m(n))throw Error(`uploadFileFunction is not set`);return n(e,t)},qo=e=>e.colorScheme,Jo=()=>l(qo),Yo=e=>e.frontComponentId,$=()=>l(Yo),Xo=()=>{let t=d();return{locale:t,t:(0,e.useCallback)((e,n)=>ft(e,n,t),[t])}},Zo=e=>e.selectedRecordIds.length===1?e.selectedRecordIds[0]:null,Qo=()=>l(Zo),$o=e=>e.selectedRecordIds,es=()=>l($o),ts=()=>l(e=>e.timelineActivityId),ns=e=>e.userId,rs=()=>l(ns),is=e=>f(e),as=()=>o()?.locale??`en`,os=(e,t)=>ft(e,t,as()),ss=e=>`${e}-command-error`,cs=({execute:t})=>{let[n,r]=(0,e.useState)(!1);return(0,e.useEffect)(()=>{n||(r(!0),(async()=>{await t(),await Q()})())},[t,n,$()]),null},ls=({to:t,params:n,queryParams:r,options:i})=>{let[a,o]=(0,e.useState)(!1);return(0,e.useEffect)(()=>{a||(o(!0),(async()=>{await Ho(t,n,r,i),await Q()})())},[t,n,r,i,a,$()]),null},us=t=>{let[n,r]=(0,e.useState)(!1);return(0,e.useEffect)(()=>{n||(r(!0),(async()=>{await Wo(t),await Q()})())},[t,n,$()]),null},ds=({title:t,subtitle:n,execute:r,confirmButtonText:i,confirmButtonAccent:a})=>{let[o,s]=(0,e.useState)(!1);return(0,e.useEffect)(()=>{o||(s(!0),(async()=>{await Uo({title:t,subtitle:n,confirmButtonText:i,confirmButtonAccent:a})===`confirm`&&await r(),await Q()})())},[t,n,r,i,a,o,$()]),null};exports.AppPath=Eo,exports.Command=cs,exports.CommandLink=ls,exports.CommandModal=ds,exports.CommandOpenSidePanelPage=us,exports.SidePanelPages=Io,exports.Trans=mt,exports.closeSidePanel=Ro,exports.copyToClipboard=zo,exports.enqueueSnackbar=Vo,exports.getApplicationVariable=Bo,exports.getFrontComponentCommandErrorDedupeKey=ss,exports.msg=is,exports.navigate=Ho,exports.openCommandConfirmationModal=Uo,exports.openSidePanelPage=Wo,exports.t=os,exports.unmountFrontComponent=Q,exports.updateProgress=Go,exports.uploadFile=Ko,exports.useColorScheme=Jo,exports.useFrontComponentExecutionContext=l,exports.useFrontComponentId=$,exports.useLocale=d,exports.useRecordId=Qo,exports.useSelectedRecordIds=es,exports.useTimelineActivityId=ts,exports.useTranslate=Xo,exports.useUserId=rs;
39
+ `)}t.write(`payload.value = newResult;`),t.write(`return payload;`);let s=t.compile();return(t,n)=>s(e,t,n)},a,o=Tt,s=!gt.jitless,c=s&&Et.value,l=t.catchall,u;e._zod.parse=(d,f)=>{u??=r.value;let p=d.value;return o(p)?s&&c&&f?.async===!1&&f.jitless!==!0?(a||=i(t.shape),d=a(d,f),l?Er([],p,d,f,u,e):d):n(d,f):(d.issues.push({expected:`object`,code:`invalid_type`,input:p,inst:e}),d)}});function kr(e,t,n,r){for(let n of e)if(n.issues.length===0)return t.value=n.value,t;let i=e.filter(e=>!B(e));return i.length===1?(t.value=i[0].value,i[0]):(t.issues.push({code:`invalid_union`,input:t.value,inst:n,errors:e.map(e=>e.issues.map(e=>V(e,r,M())))}),t)}var Ar=A(`$ZodUnion`,(e,t)=>{W.init(e,t),N(e._zod,`optin`,()=>t.options.some(e=>e._zod.optin===`optional`)?`optional`:void 0),N(e._zod,`optout`,()=>t.options.some(e=>e._zod.optout===`optional`)?`optional`:void 0),N(e._zod,`values`,()=>{if(t.options.every(e=>e._zod.values))return new Set(t.options.flatMap(e=>Array.from(e._zod.values)))}),N(e._zod,`pattern`,()=>{if(t.options.every(e=>e._zod.pattern)){let e=t.options.map(e=>e._zod.pattern);return RegExp(`^(${e.map(e=>xt(e.source)).join(`|`)})$`)}});let n=t.options.length===1,r=t.options[0]._zod.run;e._zod.parse=(i,a)=>{if(n)return r(i,a);let o=!1,s=[];for(let e of t.options){let t=e._zod.run({value:i.value,issues:[]},a);if(t instanceof Promise)s.push(t),o=!0;else{if(t.issues.length===0)return t;s.push(t)}}return o?Promise.all(s).then(t=>kr(t,i,e,a)):kr(s,i,e,a)}}),jr=A(`$ZodIntersection`,(e,t)=>{W.init(e,t),e._zod.parse=(e,n)=>{let r=e.value,i=t.left._zod.run({value:r,issues:[]},n),a=t.right._zod.run({value:r,issues:[]},n);return i instanceof Promise||a instanceof Promise?Promise.all([i,a]).then(([t,n])=>Nr(e,t,n)):Nr(e,i,a)}});function Mr(e,t){if(e===t||e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(I(e)&&I(t)){let n=Object.keys(t),r=Object.keys(e).filter(e=>n.indexOf(e)!==-1),i={...e,...t};for(let n of r){let r=Mr(e[n],t[n]);if(!r.valid)return{valid:!1,mergeErrorPath:[n,...r.mergeErrorPath]};i[n]=r.data}return{valid:!0,data:i}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};let n=[];for(let r=0;r<e.length;r++){let i=e[r],a=t[r],o=Mr(i,a);if(!o.valid)return{valid:!1,mergeErrorPath:[r,...o.mergeErrorPath]};n.push(o.data)}return{valid:!0,data:n}}return{valid:!1,mergeErrorPath:[]}}function Nr(e,t,n){if(t.issues.length&&e.issues.push(...t.issues),n.issues.length&&e.issues.push(...n.issues),B(e))return e;let r=Mr(t.value,n.value);if(!r.valid)throw Error(`Unmergable intersection. Error path: ${JSON.stringify(r.mergeErrorPath)}`);return e.value=r.data,e}var Pr=A(`$ZodEnum`,(e,t)=>{W.init(e,t);let n=_t(t.entries),r=new Set(n);e._zod.values=r,e._zod.pattern=RegExp(`^(${n.filter(e=>Ot.has(typeof e)).map(e=>typeof e==`string`?L(e):e.toString()).join(`|`)})$`),e._zod.parse=(t,i)=>{let a=t.value;return r.has(a)||t.issues.push({code:`invalid_value`,values:n,input:a,inst:e}),t}}),Fr=A(`$ZodTransform`,(e,t)=>{W.init(e,t),e._zod.parse=(n,r)=>{if(r.direction===`backward`)throw new ht(e.constructor.name);let i=t.transform(n.value,n);if(r.async)return(i instanceof Promise?i:Promise.resolve(i)).then(e=>(n.value=e,n));if(i instanceof Promise)throw new j;return n.value=i,n}});function Ir(e,t){return e.issues.length&&t===void 0?{issues:[],value:void 0}:e}var Lr=A(`$ZodOptional`,(e,t)=>{W.init(e,t),e._zod.optin=`optional`,e._zod.optout=`optional`,N(e._zod,`values`,()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),N(e._zod,`pattern`,()=>{let e=t.innerType._zod.pattern;return e?RegExp(`^(${xt(e.source)})?$`):void 0}),e._zod.parse=(e,n)=>{if(t.innerType._zod.optin===`optional`){let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(t=>Ir(t,e.value)):Ir(r,e.value)}return e.value===void 0?e:t.innerType._zod.run(e,n)}}),Rr=A(`$ZodNullable`,(e,t)=>{W.init(e,t),N(e._zod,`optin`,()=>t.innerType._zod.optin),N(e._zod,`optout`,()=>t.innerType._zod.optout),N(e._zod,`pattern`,()=>{let e=t.innerType._zod.pattern;return e?RegExp(`^(${xt(e.source)}|null)$`):void 0}),N(e._zod,`values`,()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(e,n)=>e.value===null?e:t.innerType._zod.run(e,n)}),zr=A(`$ZodDefault`,(e,t)=>{W.init(e,t),e._zod.optin=`optional`,N(e._zod,`values`,()=>t.innerType._zod.values),e._zod.parse=(e,n)=>{if(n.direction===`backward`)return t.innerType._zod.run(e,n);if(e.value===void 0)return e.value=t.defaultValue,e;let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(e=>Br(e,t)):Br(r,t)}});function Br(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}var Vr=A(`$ZodPrefault`,(e,t)=>{W.init(e,t),e._zod.optin=`optional`,N(e._zod,`values`,()=>t.innerType._zod.values),e._zod.parse=(e,n)=>(n.direction===`backward`||e.value===void 0&&(e.value=t.defaultValue),t.innerType._zod.run(e,n))}),Hr=A(`$ZodNonOptional`,(e,t)=>{W.init(e,t),N(e._zod,`values`,()=>{let e=t.innerType._zod.values;return e?new Set([...e].filter(e=>e!==void 0)):void 0}),e._zod.parse=(n,r)=>{let i=t.innerType._zod.run(n,r);return i instanceof Promise?i.then(t=>Ur(t,e)):Ur(i,e)}});function Ur(e,t){return!e.issues.length&&e.value===void 0&&e.issues.push({code:`invalid_type`,expected:`nonoptional`,input:e.value,inst:t}),e}var Wr=A(`$ZodCatch`,(e,t)=>{W.init(e,t),N(e._zod,`optin`,()=>t.innerType._zod.optin),N(e._zod,`optout`,()=>t.innerType._zod.optout),N(e._zod,`values`,()=>t.innerType._zod.values),e._zod.parse=(e,n)=>{if(n.direction===`backward`)return t.innerType._zod.run(e,n);let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(r=>(e.value=r.value,r.issues.length&&(e.value=t.catchValue({...e,error:{issues:r.issues.map(e=>V(e,n,M()))},input:e.value}),e.issues=[]),e)):(e.value=r.value,r.issues.length&&(e.value=t.catchValue({...e,error:{issues:r.issues.map(e=>V(e,n,M()))},input:e.value}),e.issues=[]),e)}}),Gr=A(`$ZodPipe`,(e,t)=>{W.init(e,t),N(e._zod,`values`,()=>t.in._zod.values),N(e._zod,`optin`,()=>t.in._zod.optin),N(e._zod,`optout`,()=>t.out._zod.optout),N(e._zod,`propValues`,()=>t.in._zod.propValues),e._zod.parse=(e,n)=>{if(n.direction===`backward`){let r=t.out._zod.run(e,n);return r instanceof Promise?r.then(e=>Kr(e,t.in,n)):Kr(r,t.in,n)}let r=t.in._zod.run(e,n);return r instanceof Promise?r.then(e=>Kr(e,t.out,n)):Kr(r,t.out,n)}});function Kr(e,t,n){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues},n)}var qr=A(`$ZodReadonly`,(e,t)=>{W.init(e,t),N(e._zod,`propValues`,()=>t.innerType._zod.propValues),N(e._zod,`values`,()=>t.innerType._zod.values),N(e._zod,`optin`,()=>t.innerType._zod.optin),N(e._zod,`optout`,()=>t.innerType._zod.optout),e._zod.parse=(e,n)=>{if(n.direction===`backward`)return t.innerType._zod.run(e,n);let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(Jr):Jr(r)}});function Jr(e){return e.value=Object.freeze(e.value),e}var Yr=A(`$ZodCustom`,(e,t)=>{U.init(e,t),W.init(e,t),e._zod.parse=(e,t)=>e,e._zod.check=n=>{let r=n.value,i=t.fn(r);if(i instanceof Promise)return i.then(t=>Xr(t,n,r,e));Xr(i,n,r,e)}});function Xr(e,t,n,r){if(!e){let e={code:`custom`,input:n,inst:r,path:[...r._zod.def.path??[]],continue:!r._zod.def.abort};r._zod.def.params&&(e.params=r._zod.def.params),t.issues.push(H(e))}}var Zr=class{constructor(){this._map=new WeakMap,this._idmap=new Map}add(e,...t){let n=t[0];if(this._map.set(e,n),n&&typeof n==`object`&&`id`in n){if(this._idmap.has(n.id))throw Error(`ID ${n.id} already exists in the registry`);this._idmap.set(n.id,e)}return this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(e){let t=this._map.get(e);return t&&typeof t==`object`&&`id`in t&&this._idmap.delete(t.id),this._map.delete(e),this}get(e){let t=e._zod.parent;if(t){let n={...this.get(t)??{}};delete n.id;let r={...n,...this._map.get(e)};return Object.keys(r).length?r:void 0}return this._map.get(e)}has(e){return this._map.has(e)}};function Qr(){return new Zr}var $r=Qr();function ei(e,t){return new e({type:`string`,...z(t)})}function ti(e,t){return new e({type:`string`,format:`email`,check:`string_format`,abort:!1,...z(t)})}function ni(e,t){return new e({type:`string`,format:`guid`,check:`string_format`,abort:!1,...z(t)})}function ri(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,...z(t)})}function ii(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v4`,...z(t)})}function ai(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v6`,...z(t)})}function oi(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v7`,...z(t)})}function si(e,t){return new e({type:`string`,format:`url`,check:`string_format`,abort:!1,...z(t)})}function ci(e,t){return new e({type:`string`,format:`emoji`,check:`string_format`,abort:!1,...z(t)})}function li(e,t){return new e({type:`string`,format:`nanoid`,check:`string_format`,abort:!1,...z(t)})}function ui(e,t){return new e({type:`string`,format:`cuid`,check:`string_format`,abort:!1,...z(t)})}function di(e,t){return new e({type:`string`,format:`cuid2`,check:`string_format`,abort:!1,...z(t)})}function fi(e,t){return new e({type:`string`,format:`ulid`,check:`string_format`,abort:!1,...z(t)})}function pi(e,t){return new e({type:`string`,format:`xid`,check:`string_format`,abort:!1,...z(t)})}function mi(e,t){return new e({type:`string`,format:`ksuid`,check:`string_format`,abort:!1,...z(t)})}function hi(e,t){return new e({type:`string`,format:`ipv4`,check:`string_format`,abort:!1,...z(t)})}function gi(e,t){return new e({type:`string`,format:`ipv6`,check:`string_format`,abort:!1,...z(t)})}function _i(e,t){return new e({type:`string`,format:`cidrv4`,check:`string_format`,abort:!1,...z(t)})}function vi(e,t){return new e({type:`string`,format:`cidrv6`,check:`string_format`,abort:!1,...z(t)})}function yi(e,t){return new e({type:`string`,format:`base64`,check:`string_format`,abort:!1,...z(t)})}function bi(e,t){return new e({type:`string`,format:`base64url`,check:`string_format`,abort:!1,...z(t)})}function xi(e,t){return new e({type:`string`,format:`e164`,check:`string_format`,abort:!1,...z(t)})}function Si(e,t){return new e({type:`string`,format:`jwt`,check:`string_format`,abort:!1,...z(t)})}function Ci(e,t){return new e({type:`string`,format:`datetime`,check:`string_format`,offset:!1,local:!1,precision:null,...z(t)})}function wi(e,t){return new e({type:`string`,format:`date`,check:`string_format`,...z(t)})}function Ti(e,t){return new e({type:`string`,format:`time`,check:`string_format`,precision:null,...z(t)})}function Ei(e,t){return new e({type:`string`,format:`duration`,check:`string_format`,...z(t)})}function Di(e){return new e({type:`unknown`})}function Oi(e,t){return new e({type:`never`,...z(t)})}function ki(e,t){return new Pn({check:`max_length`,...z(t),maximum:e})}function Ai(e,t){return new Fn({check:`min_length`,...z(t),minimum:e})}function ji(e,t){return new In({check:`length_equals`,...z(t),length:e})}function Mi(e,t){return new Rn({check:`string_format`,format:`regex`,...z(t),pattern:e})}function Ni(e){return new zn({check:`string_format`,format:`lowercase`,...z(e)})}function Pi(e){return new Bn({check:`string_format`,format:`uppercase`,...z(e)})}function Fi(e,t){return new Vn({check:`string_format`,format:`includes`,...z(t),includes:e})}function Ii(e,t){return new Hn({check:`string_format`,format:`starts_with`,...z(t),prefix:e})}function Li(e,t){return new Un({check:`string_format`,format:`ends_with`,...z(t),suffix:e})}function K(e){return new Wn({check:`overwrite`,tx:e})}function Ri(e){return K(t=>t.normalize(e))}function zi(){return K(e=>e.trim())}function Bi(){return K(e=>e.toLowerCase())}function Vi(){return K(e=>e.toUpperCase())}function Hi(e,t,n){return new e({type:`array`,element:t,...z(n)})}function Ui(e,t,n){return new e({type:`custom`,check:`custom`,fn:t,...z(n)})}function Wi(e){let t=Gi(n=>(n.addIssue=e=>{if(typeof e==`string`)n.issues.push(H(e,n.value,t._zod.def));else{let r=e;r.fatal&&(r.continue=!1),r.code??=`custom`,r.input??=n.value,r.inst??=t,r.continue??=!t._zod.def.abort,n.issues.push(H(r))}},e(n.value,n)));return t}function Gi(e,t){let n=new U({check:`custom`,...z(t)});return n._zod.check=e,n}var Ki=A(`ZodISODateTime`,(e,t)=>{ar.init(e,t),Y.init(e,t)});function qi(e){return Ci(Ki,e)}var Ji=A(`ZodISODate`,(e,t)=>{or.init(e,t),Y.init(e,t)});function Yi(e){return wi(Ji,e)}var Xi=A(`ZodISOTime`,(e,t)=>{sr.init(e,t),Y.init(e,t)});function Zi(e){return Ti(Xi,e)}var Qi=A(`ZodISODuration`,(e,t)=>{cr.init(e,t),Y.init(e,t)});function $i(e){return Ei(Qi,e)}var ea=(e,t)=>{Vt.init(e,t),e.name=`ZodError`,Object.defineProperties(e,{format:{value:t=>Wt(e,t)},flatten:{value:t=>Ut(e,t)},addIssue:{value:t=>{e.issues.push(t),e.message=JSON.stringify(e.issues,vt,2)}},addIssues:{value:t=>{e.issues.push(...t),e.message=JSON.stringify(e.issues,vt,2)}},isEmpty:{get(){return e.issues.length===0}}})};A(`ZodError`,ea);var q=A(`ZodError`,ea,{Parent:Error}),ta=Gt(q),na=Kt(q),ra=qt(q),ia=Yt(q),aa=Zt(q),oa=Qt(q),sa=$t(q),ca=en(q),la=tn(q),ua=nn(q),da=rn(q),fa=an(q),J=A(`ZodType`,(e,t)=>(W.init(e,t),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.check=(...n)=>e.clone(F(t,{checks:[...t.checks??[],...n.map(e=>typeof e==`function`?{_zod:{check:e,def:{check:`custom`},onattach:[]}}:e)]})),e.clone=(t,n)=>R(e,t,n),e.brand=()=>e,e.register=((t,n)=>(t.add(e,n),e)),e.parse=(t,n)=>ta(e,t,n,{callee:e.parse}),e.safeParse=(t,n)=>ra(e,t,n),e.parseAsync=async(t,n)=>na(e,t,n,{callee:e.parseAsync}),e.safeParseAsync=async(t,n)=>ia(e,t,n),e.spa=e.safeParseAsync,e.encode=(t,n)=>aa(e,t,n),e.decode=(t,n)=>oa(e,t,n),e.encodeAsync=async(t,n)=>sa(e,t,n),e.decodeAsync=async(t,n)=>ca(e,t,n),e.safeEncode=(t,n)=>la(e,t,n),e.safeDecode=(t,n)=>ua(e,t,n),e.safeEncodeAsync=async(t,n)=>da(e,t,n),e.safeDecodeAsync=async(t,n)=>fa(e,t,n),e.refine=(t,n)=>e.check(ho(t,n)),e.superRefine=t=>e.check(go(t)),e.overwrite=t=>e.check(K(t)),e.optional=()=>Qa(e),e.nullable=()=>eo(e),e.nullish=()=>Qa(eo(e)),e.nonoptional=t=>oo(e,t),e.array=()=>Ba(e),e.or=t=>Wa([e,t]),e.and=t=>Ka(e,t),e.transform=t=>uo(e,Xa(t)),e.default=t=>no(e,t),e.prefault=t=>io(e,t),e.catch=t=>co(e,t),e.pipe=t=>uo(e,t),e.readonly=()=>po(e),e.describe=t=>{let n=e.clone();return $r.add(n,{description:t}),n},Object.defineProperty(e,"description",{get(){return $r.get(e)?.description},configurable:!0}),e.meta=(...t)=>{if(t.length===0)return $r.get(e);let n=e.clone();return $r.add(n,t[0]),n},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e)),pa=A(`_ZodString`,(e,t)=>{qn.init(e,t),J.init(e,t);let n=e._zod.bag;e.format=n.format??null,e.minLength=n.minimum??null,e.maxLength=n.maximum??null,e.regex=(...t)=>e.check(Mi(...t)),e.includes=(...t)=>e.check(Fi(...t)),e.startsWith=(...t)=>e.check(Ii(...t)),e.endsWith=(...t)=>e.check(Li(...t)),e.min=(...t)=>e.check(Ai(...t)),e.max=(...t)=>e.check(ki(...t)),e.length=(...t)=>e.check(ji(...t)),e.nonempty=(...t)=>e.check(Ai(1,...t)),e.lowercase=t=>e.check(Ni(t)),e.uppercase=t=>e.check(Pi(t)),e.trim=()=>e.check(zi()),e.normalize=(...t)=>e.check(Ri(...t)),e.toLowerCase=()=>e.check(Bi()),e.toUpperCase=()=>e.check(Vi())}),ma=A(`ZodString`,(e,t)=>{qn.init(e,t),pa.init(e,t),e.email=t=>e.check(ti(ga,t)),e.url=t=>e.check(si(ya,t)),e.jwt=t=>e.check(Si(Pa,t)),e.emoji=t=>e.check(ci(ba,t)),e.guid=t=>e.check(ni(_a,t)),e.uuid=t=>e.check(ri(va,t)),e.uuidv4=t=>e.check(ii(va,t)),e.uuidv6=t=>e.check(ai(va,t)),e.uuidv7=t=>e.check(oi(va,t)),e.nanoid=t=>e.check(li(xa,t)),e.guid=t=>e.check(ni(_a,t)),e.cuid=t=>e.check(ui(Sa,t)),e.cuid2=t=>e.check(di(Ca,t)),e.ulid=t=>e.check(fi(wa,t)),e.base64=t=>e.check(yi(ja,t)),e.base64url=t=>e.check(bi(Ma,t)),e.xid=t=>e.check(pi(Ta,t)),e.ksuid=t=>e.check(mi(Ea,t)),e.ipv4=t=>e.check(hi(Da,t)),e.ipv6=t=>e.check(gi(Oa,t)),e.cidrv4=t=>e.check(_i(ka,t)),e.cidrv6=t=>e.check(vi(Aa,t)),e.e164=t=>e.check(xi(Na,t)),e.datetime=t=>e.check(qi(t)),e.date=t=>e.check(Yi(t)),e.time=t=>e.check(Zi(t)),e.duration=t=>e.check($i(t))});function ha(e){return ei(ma,e)}var Y=A(`ZodStringFormat`,(e,t)=>{G.init(e,t),pa.init(e,t)}),ga=A(`ZodEmail`,(e,t)=>{Xn.init(e,t),Y.init(e,t)}),_a=A(`ZodGUID`,(e,t)=>{Jn.init(e,t),Y.init(e,t)}),va=A(`ZodUUID`,(e,t)=>{Yn.init(e,t),Y.init(e,t)}),ya=A(`ZodURL`,(e,t)=>{Zn.init(e,t),Y.init(e,t)}),ba=A(`ZodEmoji`,(e,t)=>{Qn.init(e,t),Y.init(e,t)}),xa=A(`ZodNanoID`,(e,t)=>{$n.init(e,t),Y.init(e,t)}),Sa=A(`ZodCUID`,(e,t)=>{er.init(e,t),Y.init(e,t)}),Ca=A(`ZodCUID2`,(e,t)=>{tr.init(e,t),Y.init(e,t)}),wa=A(`ZodULID`,(e,t)=>{nr.init(e,t),Y.init(e,t)}),Ta=A(`ZodXID`,(e,t)=>{rr.init(e,t),Y.init(e,t)}),Ea=A(`ZodKSUID`,(e,t)=>{ir.init(e,t),Y.init(e,t)}),Da=A(`ZodIPv4`,(e,t)=>{lr.init(e,t),Y.init(e,t)}),Oa=A(`ZodIPv6`,(e,t)=>{ur.init(e,t),Y.init(e,t)}),ka=A(`ZodCIDRv4`,(e,t)=>{dr.init(e,t),Y.init(e,t)}),Aa=A(`ZodCIDRv6`,(e,t)=>{fr.init(e,t),Y.init(e,t)}),ja=A(`ZodBase64`,(e,t)=>{mr.init(e,t),Y.init(e,t)}),Ma=A(`ZodBase64URL`,(e,t)=>{gr.init(e,t),Y.init(e,t)}),Na=A(`ZodE164`,(e,t)=>{_r.init(e,t),Y.init(e,t)}),Pa=A(`ZodJWT`,(e,t)=>{yr.init(e,t),Y.init(e,t)}),Fa=A(`ZodUnknown`,(e,t)=>{br.init(e,t),J.init(e,t)});function Ia(){return Di(Fa)}var La=A(`ZodNever`,(e,t)=>{xr.init(e,t),J.init(e,t)});function Ra(e){return Oi(La,e)}var za=A(`ZodArray`,(e,t)=>{Cr.init(e,t),J.init(e,t),e.element=t.element,e.min=(t,n)=>e.check(Ai(t,n)),e.nonempty=t=>e.check(Ai(1,t)),e.max=(t,n)=>e.check(ki(t,n)),e.length=(t,n)=>e.check(ji(t,n)),e.unwrap=()=>e.element});function Ba(e,t){return Hi(za,e,t)}var Va=A(`ZodObject`,(e,t)=>{Or.init(e,t),J.init(e,t),N(e,`shape`,()=>t.shape),e.keyof=()=>Ja(Object.keys(e._zod.def.shape)),e.catchall=t=>e.clone({...e._zod.def,catchall:t}),e.passthrough=()=>e.clone({...e._zod.def,catchall:Ia()}),e.loose=()=>e.clone({...e._zod.def,catchall:Ia()}),e.strict=()=>e.clone({...e._zod.def,catchall:Ra()}),e.strip=()=>e.clone({...e._zod.def,catchall:void 0}),e.extend=t=>Mt(e,t),e.safeExtend=t=>Nt(e,t),e.merge=t=>Pt(e,t),e.pick=t=>At(e,t),e.omit=t=>jt(e,t),e.partial=(...t)=>Ft(Za,e,t[0]),e.required=(...t)=>It(ao,e,t[0])});function Ha(e,t){return new Va({type:`object`,shape:e??{},...z(t)})}var Ua=A(`ZodUnion`,(e,t)=>{Ar.init(e,t),J.init(e,t),e.options=t.options});function Wa(e,t){return new Ua({type:`union`,options:e,...z(t)})}var Ga=A(`ZodIntersection`,(e,t)=>{jr.init(e,t),J.init(e,t)});function Ka(e,t){return new Ga({type:`intersection`,left:e,right:t})}var qa=A(`ZodEnum`,(e,t)=>{Pr.init(e,t),J.init(e,t),e.enum=t.entries,e.options=Object.values(t.entries);let n=new Set(Object.keys(t.entries));e.extract=(e,r)=>{let i={};for(let r of e)if(n.has(r))i[r]=t.entries[r];else throw Error(`Key ${r} not found in enum`);return new qa({...t,checks:[],...z(r),entries:i})},e.exclude=(e,r)=>{let i={...t.entries};for(let t of e)if(n.has(t))delete i[t];else throw Error(`Key ${t} not found in enum`);return new qa({...t,checks:[],...z(r),entries:i})}});function Ja(e,t){return new qa({type:`enum`,entries:Array.isArray(e)?Object.fromEntries(e.map(e=>[e,e])):e,...z(t)})}var Ya=A(`ZodTransform`,(e,t)=>{Fr.init(e,t),J.init(e,t),e._zod.parse=(n,r)=>{if(r.direction===`backward`)throw new ht(e.constructor.name);n.addIssue=r=>{if(typeof r==`string`)n.issues.push(H(r,n.value,t));else{let t=r;t.fatal&&(t.continue=!1),t.code??=`custom`,t.input??=n.value,t.inst??=e,n.issues.push(H(t))}};let i=t.transform(n.value,n);return i instanceof Promise?i.then(e=>(n.value=e,n)):(n.value=i,n)}});function Xa(e){return new Ya({type:`transform`,transform:e})}var Za=A(`ZodOptional`,(e,t)=>{Lr.init(e,t),J.init(e,t),e.unwrap=()=>e._zod.def.innerType});function Qa(e){return new Za({type:`optional`,innerType:e})}var $a=A(`ZodNullable`,(e,t)=>{Rr.init(e,t),J.init(e,t),e.unwrap=()=>e._zod.def.innerType});function eo(e){return new $a({type:`nullable`,innerType:e})}var to=A(`ZodDefault`,(e,t)=>{zr.init(e,t),J.init(e,t),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function no(e,t){return new to({type:`default`,innerType:e,get defaultValue(){return typeof t==`function`?t():Dt(t)}})}var ro=A(`ZodPrefault`,(e,t)=>{Vr.init(e,t),J.init(e,t),e.unwrap=()=>e._zod.def.innerType});function io(e,t){return new ro({type:`prefault`,innerType:e,get defaultValue(){return typeof t==`function`?t():Dt(t)}})}var ao=A(`ZodNonOptional`,(e,t)=>{Hr.init(e,t),J.init(e,t),e.unwrap=()=>e._zod.def.innerType});function oo(e,t){return new ao({type:`nonoptional`,innerType:e,...z(t)})}var so=A(`ZodCatch`,(e,t)=>{Wr.init(e,t),J.init(e,t),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function co(e,t){return new so({type:`catch`,innerType:e,catchValue:typeof t==`function`?t:()=>t})}var lo=A(`ZodPipe`,(e,t)=>{Gr.init(e,t),J.init(e,t),e.in=t.in,e.out=t.out});function uo(e,t){return new lo({type:`pipe`,in:e,out:t})}var fo=A(`ZodReadonly`,(e,t)=>{qr.init(e,t),J.init(e,t),e.unwrap=()=>e._zod.def.innerType});function po(e){return new fo({type:`readonly`,innerType:e})}var mo=A(`ZodCustom`,(e,t)=>{Yr.init(e,t),J.init(e,t)});function ho(e,t={}){return Ui(mo,e,t)}function go(e){return Wi(e)}var _o=function(){function e(e){this.groups=[],this.each=!1,this.context=void 0,this.type=e.type,this.name=e.name,this.target=e.target,this.propertyName=e.propertyName,this.constraints=e?.constraints,this.constraintCls=e.constraintCls,this.validationTypeOptions=e.validationTypeOptions,e.validationOptions&&(this.message=e.validationOptions.message,this.groups=e.validationOptions.groups,this.always=e.validationOptions.always,this.each=e.validationOptions.each,this.context=e.validationOptions.context)}return e}(),vo=function(){function e(){}return e.prototype.transform=function(e){var t=[];return Object.keys(e.properties).forEach(function(n){e.properties[n].forEach(function(r){var i={message:r.message,groups:r.groups,always:r.always,each:r.each},a={type:r.type,name:r.name,target:e.name,propertyName:n,constraints:r.constraints,validationTypeOptions:r.options,validationOptions:i};t.push(new _o(a))})}),t},e}(),yo=function(e){var t=typeof Symbol==`function`&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length==`number`)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?`Object is not iterable.`:`Symbol.iterator is not defined.`)},bo=function(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a},xo=function(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||=Array.prototype.slice.call(t,0,r),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))};(function(){function e(){this.validationMetadatas=new Map,this.constraintMetadatas=new Map}return Object.defineProperty(e.prototype,"hasValidationMetaData",{get:function(){return!!this.validationMetadatas.size},enumerable:!1,configurable:!0}),e.prototype.addValidationSchema=function(e){var t=this;new vo().transform(e).forEach(function(e){return t.addValidationMetadata(e)})},e.prototype.addValidationMetadata=function(e){var t=this.validationMetadatas.get(e.target);t?t.push(e):this.validationMetadatas.set(e.target,[e])},e.prototype.addConstraintMetadata=function(e){var t=this.constraintMetadatas.get(e.target);t?t.push(e):this.constraintMetadatas.set(e.target,[e])},e.prototype.groupByPropertyName=function(e){var t={};return e.forEach(function(e){t[e.propertyName]||(t[e.propertyName]=[]),t[e.propertyName].push(e)}),t},e.prototype.getTargetValidationMetadatas=function(e,t,n,r,i){var a,o,s=function(e){return e.always===void 0?e.groups&&e.groups.length?!1:n:e.always},c=function(e){return!!(r&&(!i||!i.length)&&e.groups&&e.groups.length)},l=(this.validationMetadatas.get(e)||[]).filter(function(n){return n.target!==e&&n.target!==t?!1:s(n)?!0:c(n)?!1:i&&i.length>0?n.groups&&!!n.groups.find(function(e){return i.indexOf(e)!==-1}):!0}),u=[];try{for(var d=yo(this.validationMetadatas.entries()),f=d.next();!f.done;f=d.next()){var p=bo(f.value,2),m=p[0],h=p[1];e.prototype instanceof m&&u.push.apply(u,xo([],bo(h),!1))}}catch(e){a={error:e}}finally{try{f&&!f.done&&(o=d.return)&&o.call(d)}finally{if(a)throw a.error}}var g=u.filter(function(t){return typeof t.target==`string`||t.target===e||t.target instanceof Function&&!(e.prototype instanceof t.target)?!1:s(t)?!0:c(t)?!1:i&&i.length>0?t.groups&&!!t.groups.find(function(e){return i.indexOf(e)!==-1}):!0}).filter(function(e){return!l.find(function(t){return t.propertyName===e.propertyName&&t.type===e.type})});return l.concat(g)},e.prototype.getTargetValidatorConstraints=function(e){return this.constraintMetadatas.get(e)||[]},e})(),function(){function e(){}return e.isValid=function(e){var t=this;return e!==`isValid`&&e!==`getMessage`&&Object.keys(this).map(function(e){return t[e]}).indexOf(e)!==-1},e.CUSTOM_VALIDATION=`customValidation`,e.NESTED_VALIDATION=`nestedValidation`,e.PROMISE_VALIDATION=`promiseValidation`,e.CONDITIONAL_VALIDATION=`conditionalValidation`,e.WHITELIST=`whitelistValidation`,e.IS_DEFINED=`isDefined`,e}();var So=new(function(){function e(){this.instances=[]}return e.prototype.get=function(e){var t=this.instances.find(function(t){return t.type===e});return t||(t={type:e,object:new e},this.instances.push(t)),t.object},e}()),Co,wo;function To(e){if(Co)try{var t=Co.get(e);if(t||!wo||!wo.fallback)return t}catch(e){if(!wo||!wo.fallbackOnErrors)throw e}return So.get(e)}(function(){function e(e,t,n){n===void 0&&(n=!1),this.target=e,this.name=t,this.async=n}return Object.defineProperty(e.prototype,"instance",{get:function(){return To(this.target)},enumerable:!1,configurable:!0}),e})();var X=function(e){return e.ACTOR=`ACTOR`,e.ADDRESS=`ADDRESS`,e.ARRAY=`ARRAY`,e.BOOLEAN=`BOOLEAN`,e.CURRENCY=`CURRENCY`,e.DATE=`DATE`,e.DATE_TIME=`DATE_TIME`,e.EMAILS=`EMAILS`,e.FILES=`FILES`,e.FULL_NAME=`FULL_NAME`,e.LINKS=`LINKS`,e.MORPH_RELATION=`MORPH_RELATION`,e.MULTI_SELECT=`MULTI_SELECT`,e.NUMBER=`NUMBER`,e.NUMERIC=`NUMERIC`,e.PHONES=`PHONES`,e.POSITION=`POSITION`,e.RATING=`RATING`,e.RAW_JSON=`RAW_JSON`,e.RELATION=`RELATION`,e.RICH_TEXT=`RICH_TEXT`,e.SELECT=`SELECT`,e.TEXT=`TEXT`,e.TS_VECTOR=`TS_VECTOR`,e.UUID=`UUID`,e}({}),Eo=function(e){return e.Verify=`/verify`,e.VerifyEmail=`/verify-email`,e.SignInUp=`/welcome`,e.Invite=`/invite/:workspaceInviteHash`,e.ResetPassword=`/reset-password/:passwordResetToken`,e.WorkspaceActivation=`/workspace-activation`,e.CreateProfile=`/create/profile`,e.SyncEmails=`/sync/emails`,e.InstallApps=`/install-apps`,e.InviteTeam=`/invite-team`,e.PlanRequired=`/plan-required`,e.PlanRequiredSuccess=`/plan-required/payment-success`,e.BookCall=`/book-call`,e.AiChat=`/chat/:threadId?`,e.Index=`/`,e.Home=`/home`,e.TasksPage=`/objects/tasks`,e.OpportunitiesPage=`/objects/opportunities`,e.RecordIndexPage=`/objects/:objectNamePlural`,e.RecordShowPage=`/object/:objectNameSingular/:objectRecordId`,e.PageLayoutPage=`/page/:pageLayoutId`,e.WorkflowCoreIndexPage=`/workflow-core`,e.Settings=`settings`,e.SettingsCatchAll=`/settings/*`,e.Developers=`developers`,e.DevelopersCatchAll=`/developers/*`,e.Authorize=`/authorize`,e.Dpa=`/dpa`,e.NotFoundWildcard=`*`,e.NotFound=`/not-found`,e}({}),Do=function(e){return e.EMAIL=`EMAIL`,e.CALENDAR=`CALENDAR`,e.WORKFLOW=`WORKFLOW`,e.AGENT=`AGENT`,e.API=`API`,e.IMPORT=`IMPORT`,e.MANUAL=`MANUAL`,e.SYSTEM=`SYSTEM`,e.WEBHOOK=`WEBHOOK`,e.APPLICATION=`APPLICATION`,e}({}),Oo={type:X.ACTOR,properties:[{name:`source`,type:X.SELECT,hidden:!1,isRequired:!0,options:Object.keys(Do).map((e,t)=>({id:(0,n.v4)(),label:`${Do[e].toLowerCase()}`,value:e,position:t}))},{name:`workspaceMemberId`,type:X.UUID,hidden:`input`,isRequired:!1},{name:`name`,type:X.TEXT,hidden:`input`,isRequired:!0},{name:`context`,type:X.RAW_JSON,hidden:!1,isRequired:!1}]},ko={type:X.ADDRESS,properties:[{name:`addressStreet1`,type:X.TEXT,hidden:!1,isRequired:!1},{name:`addressStreet2`,type:X.TEXT,hidden:!1,isRequired:!1},{name:`addressCity`,type:X.TEXT,hidden:!1,isRequired:!1},{name:`addressPostcode`,type:X.TEXT,hidden:!1,isRequired:!1},{name:`addressState`,type:X.TEXT,hidden:!1,isRequired:!1},{name:`addressCountry`,type:X.TEXT,hidden:!1,isRequired:!1},{name:`addressLat`,type:X.NUMERIC,hidden:!1,isRequired:!1},{name:`addressLng`,type:X.NUMERIC,hidden:!1,isRequired:!1}]},Ao={type:X.CURRENCY,properties:[{name:`amountMicros`,type:X.NUMERIC,hidden:!1,isRequired:!1},{name:`currencyCode`,type:X.TEXT,hidden:!1,isRequired:!1}]},jo={type:X.EMAILS,properties:[{name:`primaryEmail`,type:X.TEXT,hidden:!1,isRequired:!1,isIncludedInUniqueConstraint:!0},{name:`additionalEmails`,type:X.RAW_JSON,hidden:!1,isRequired:!1}]},Mo={type:X.FULL_NAME,properties:[{name:`firstName`,type:X.TEXT,hidden:!1,isRequired:!1,isIncludedInUniqueConstraint:!1},{name:`lastName`,type:X.TEXT,hidden:!1,isRequired:!1,isIncludedInUniqueConstraint:!1}]},No={type:X.LINKS,properties:[{name:`primaryLinkLabel`,type:X.TEXT,hidden:!1,isRequired:!1},{name:`primaryLinkUrl`,type:X.TEXT,hidden:!1,isRequired:!1,isIncludedInUniqueConstraint:!0},{name:`secondaryLinks`,type:X.RAW_JSON,hidden:!1,isRequired:!1}]},Po={type:X.PHONES,properties:[{name:`primaryPhoneNumber`,type:X.TEXT,hidden:!1,isRequired:!1,isIncludedInUniqueConstraint:!0},{name:`primaryPhoneCountryCode`,type:X.TEXT,hidden:!1,isRequired:!1,isIncludedInUniqueConstraint:!0},{name:`primaryPhoneCallingCode`,type:X.TEXT,hidden:!1,isRequired:!1,isIncludedInUniqueConstraint:!0},{name:`additionalPhones`,type:X.RAW_JSON,hidden:!1,isRequired:!1}]},Fo={type:X.RICH_TEXT,properties:[{name:`blocknote`,type:X.TEXT,hidden:!1,isRequired:!1},{name:`markdown`,type:X.TEXT,hidden:!1,isRequired:!1}]};Ha({blocknote:ha().nullable().optional(),markdown:ha().nullable()}),new Map([[X.LINKS,No],[X.CURRENCY,Ao],[X.FULL_NAME,Mo],[X.ADDRESS,ko],[X.ACTOR,Oo],[X.EMAILS,jo],[X.PHONES,Po],[X.RICH_TEXT,Fo]]),X.RELATION,X.MORPH_RELATION,X.FILES,X.TS_VECTOR;var Io=function(e){return e.CommandMenuDisplay=`command-menu-display`,e.ViewRecord=`view-record`,e.ViewRecords=`view-records`,e.MergeRecords=`merge-records`,e.UpdateRecords=`update-records`,e.EditRichText=`edit-rich-text`,e.Copilot=`copilot`,e.WorkflowTriggerSelectType=`workflow-trigger-select-type`,e.WorkflowStepCreate=`workflow-step-create`,e.WorkflowStepEditType=`workflow-step-edit-type`,e.WorkflowStepView=`workflow-step-view`,e.WorkflowStepEdit=`workflow-step-edit`,e.WorkflowRunStepView=`workflow-run-step-view`,e.SearchRecords=`search-records`,e.AskAI=`ask-ai`,e.PageLayoutDashboardWidgetTypeSelect=`page-layout-dashboard-widget-type-select`,e.PageLayoutTabSettings=`page-layout-tab-settings`,e.PageLayoutWidgetSettings=`page-layout-widget-settings`,e.DashboardChartSettings=`dashboard-chart-settings`,e.DashboardIframeSettings=`dashboard-iframe-settings`,e.DashboardRecordTableSettings=`dashboard-record-table-settings`,e.RecordPageFieldsSettings=`record-page-fields-settings`,e.RecordPageFieldSettings=`record-page-field-settings`,e.ViewFrontComponent=`view-front-component`,e.NavigationMenuItemEdit=`navigation-menu-item-edit`,e.NavigationMenuAddItem=`navigation-menu-add-item`,e.CommandMenuEdit=`command-menu-edit`,e.PageLayoutRecordPageWidgetTypeSelect=`page-layout-record-page-widget-type-select`,e.ComposeEmail=`compose-email`,e.ComposeCalendarEvent=`compose-calendar-event`,e.CreateRelatedRecord=`create-related-record`,e.SendCampaignTest=`send-campaign-test`,e.WorkflowVersions=`workflow-versions`,e.WorkflowVersion=`workflow-version`,e.EmailBlockSettings=`email-block-settings`,e.SettingsMetadataTranslations=`settings-metadata-translations`,e.RoutedPage=`routed-page`,e.WorkflowCoreFilters=`workflow-core-filters`,e}({}),Lo=`frontComponentHostCommunicationApi`;globalThis[Lo]??={};var Z=globalThis.frontComponentHostCommunicationApi,Ro=()=>{let e=Z.closeSidePanel;if(!m(e))throw Error(`closeSidePanelFunction is not set`);return e()},zo=e=>{let t=Z.copyToClipboard;if(!m(t))throw Error(`copyToClipboardFunction is not set`);return t(e)},Bo=e=>{let t=process.env.applicationVariables;if(t)return JSON.parse(t)[e]},Vo=e=>{let t=Z.enqueueSnackbar;if(!m(t))throw Error(`enqueueSnackbarFunction is not set`);return t(e)},Ho=(e,t,n,r)=>{let i=Z.navigate;if(!m(i))throw Error(`navigateFunction is not set`);return i(e,t,n,r)},Uo=e=>{let t=Z.openCommandConfirmationModal;if(!m(t))throw Error(`openCommandConfirmationModalFunction is not set`);return t(e)},Wo=e=>{let t=Z.openSidePanelPage;if(!m(t))throw Error(`openSidePanelPageFunction is not set`);return t(e)},Q=()=>{let e=Z.unmountFrontComponent;if(!m(e))throw Error(`unmountFrontComponentFunction is not set`);return e()},Go=e=>{let t=Z.updateProgress;if(!m(t))throw Error(`updateProgressFunction is not set`);return t(e)},Ko=(e,t)=>{let n=Z.uploadFile;if(!m(n))throw Error(`uploadFileFunction is not set`);return n(e,t)},qo=e=>e.colorScheme,Jo=()=>l(qo),Yo=e=>e.frontComponentId,$=()=>l(Yo),Xo=()=>{let t=d();return{locale:t,t:(0,e.useCallback)((e,n)=>ft(e,n,t),[t])}},Zo=e=>e.selectedRecordIds.length===1?e.selectedRecordIds[0]:null,Qo=()=>l(Zo),$o=e=>e.selectedRecordIds,es=()=>l($o),ts=()=>l(e=>e.timelineActivityId),ns=e=>e.userId,rs=()=>l(ns),is=e=>f(e),as=()=>o()?.locale??`en`,os=(e,t)=>ft(e,t,as()),ss=e=>`${e}-command-error`,cs=({execute:t})=>{let[n,r]=(0,e.useState)(!1);return(0,e.useEffect)(()=>{n||(r(!0),(async()=>{await t(),await Q()})())},[t,n,$()]),null},ls=({to:t,params:n,queryParams:r,options:i})=>{let[a,o]=(0,e.useState)(!1);return(0,e.useEffect)(()=>{a||(o(!0),(async()=>{await Ho(t,n,r,i),await Q()})())},[t,n,r,i,a,$()]),null},us=t=>{let[n,r]=(0,e.useState)(!1);return(0,e.useEffect)(()=>{n||(r(!0),(async()=>{await Wo(t),await Q()})())},[t,n,$()]),null},ds=({title:t,subtitle:n,execute:r,confirmButtonText:i,confirmButtonAccent:a})=>{let[o,s]=(0,e.useState)(!1);return(0,e.useEffect)(()=>{o||(s(!0),(async()=>{await Uo({title:t,subtitle:n,confirmButtonText:i,confirmButtonAccent:a})===`confirm`&&await r(),await Q()})())},[t,n,r,i,a,o,$()]),null};exports.AppPath=Eo,exports.Command=cs,exports.CommandLink=ls,exports.CommandModal=ds,exports.CommandOpenSidePanelPage=us,exports.SidePanelPages=Io,exports.Trans=mt,exports.closeSidePanel=Ro,exports.copyToClipboard=zo,exports.enqueueSnackbar=Vo,exports.getApplicationVariable=Bo,exports.getFrontComponentCommandErrorDedupeKey=ss,exports.msg=is,exports.navigate=Ho,exports.openCommandConfirmationModal=Uo,exports.openSidePanelPage=Wo,exports.t=os,exports.unmountFrontComponent=Q,exports.updateProgress=Go,exports.uploadFile=Ko,exports.useColorScheme=Jo,exports.useFrontComponentExecutionContext=l,exports.useFrontComponentId=$,exports.useLocale=d,exports.useRecordId=Qo,exports.useSelectedRecordIds=es,exports.useTimelineActivityId=ts,exports.useTranslate=Xo,exports.useUserId=rs;
40
40
  //# sourceMappingURL=index.cjs.map