twenty-sdk 2.35.1 → 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 (52) 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-C82Xfr2f.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 +3 -0
  12. package/dist/cli/utilities/api/application-api.d.ts +1 -0
  13. package/dist/cli/utilities/api/file-api.d.ts +41 -0
  14. package/dist/cli/utilities/dev/orchestrator/dev-mode-orchestrator.d.ts +1 -0
  15. package/dist/cli/utilities/dev/orchestrator/steps/format-sync-actions-plan.d.ts +8 -1
  16. package/dist/cli/utilities/dev/orchestrator/steps/sync-application-orchestrator-step.d.ts +3 -1
  17. package/dist/cli/utilities/dev/orchestrator/steps/upload-files-orchestrator-step.d.ts +1 -0
  18. package/dist/cli/utilities/entity/entity-view-template.d.ts +1 -1
  19. package/dist/cli/utilities/error/parse-server-error.d.ts +1 -0
  20. package/dist/cli/utilities/file/file-uploader.d.ts +13 -4
  21. package/dist/cli/utilities/file/put-file-to-upload-url.d.ts +5 -0
  22. package/dist/cli.cjs +30 -30
  23. package/dist/cli.mjs +5455 -5421
  24. package/dist/define/index.cjs +14 -14
  25. package/dist/define/index.cjs.map +1 -1
  26. package/dist/define/index.d.ts +340 -26
  27. package/dist/define/index.mjs +6104 -5955
  28. package/dist/define/index.mjs.map +1 -1
  29. package/dist/front-component/index.cjs +1 -1
  30. package/dist/front-component/index.cjs.map +1 -1
  31. package/dist/front-component/index.d.ts +23 -6
  32. package/dist/front-component/index.mjs +2 -2
  33. package/dist/front-component/index.mjs.map +1 -1
  34. package/dist/front-component-renderer/build.cjs +1 -1
  35. package/dist/front-component-renderer/build.mjs +1 -1
  36. package/dist/{get-front-component-build-plugins-D9VJQHw7.mjs → get-front-component-build-plugins-Bed7hCGi.mjs} +105 -91
  37. package/dist/{get-front-component-build-plugins-CcV3Cown.js → get-front-component-build-plugins-o8cM1FFZ.js} +8 -8
  38. package/dist/{get-function-input-schema-GNk3NRLJ-Byssjp8I.js → get-function-input-schema-GNk3NRLJ-A3CmF1qq.js} +1 -1
  39. package/dist/{get-function-input-schema-GNk3NRLJ-Dm0Ljlg4.mjs → get-function-input-schema-GNk3NRLJ-BPeB4a-_.mjs} +1 -1
  40. package/dist/logic-function/index.cjs +6 -4
  41. package/dist/logic-function/index.cjs.map +1 -1
  42. package/dist/logic-function/index.d.ts +24 -3
  43. package/dist/logic-function/index.mjs +28 -14
  44. package/dist/logic-function/index.mjs.map +1 -1
  45. package/dist/{login-cG7hCrTK.js → login-2yrPIORt.js} +89 -66
  46. package/dist/{login-BsiMC4oB.mjs → login-QYv7vAbh.mjs} +5011 -4705
  47. package/dist/operations.cjs +1 -1
  48. package/dist/operations.mjs +4 -4
  49. package/dist/utils/index.cjs.map +1 -1
  50. package/dist/utils/index.mjs.map +1 -1
  51. package/package.json +2 -2
  52. package/dist/catalog-sync-Bs-X2ChV.js +0 -1
@@ -1 +1 @@
1
- Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});const e=require("../get-front-component-build-plugins-CcV3Cown.js");exports.getFrontComponentBuildPlugins=e.t;
1
+ Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});const e=require("../get-front-component-build-plugins-o8cM1FFZ.js");exports.getFrontComponentBuildPlugins=e.t;
@@ -2,5 +2,5 @@ import { createRequire as e } from "node:module";
2
2
  import { fileURLToPath as t } from "node:url";
3
3
  import { dirname as n } from "node:path";
4
4
  e(import.meta.url), n(t(import.meta.url));
5
- import { t as r } from "../get-front-component-build-plugins-D9VJQHw7.mjs";
5
+ import { t as r } from "../get-front-component-build-plugins-Bed7hCGi.mjs";
6
6
  export { r as getFrontComponentBuildPlugins };
@@ -9366,8 +9366,10 @@ var Q = /* @__PURE__ */ function(e) {
9366
9366
  }({}), kf = /* @__PURE__ */ function(e) {
9367
9367
  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;
9368
9368
  }({}), Af = /* @__PURE__ */ function(e) {
9369
+ return e.GLOBAL = "GLOBAL", e.GLOBAL_OBJECT_CONTEXT = "GLOBAL_OBJECT_CONTEXT", e.RECORD_SELECTION = "RECORD_SELECTION", e.FALLBACK = "FALLBACK", e;
9370
+ }({}), jf = /* @__PURE__ */ function(e) {
9369
9371
  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;
9370
- }({}), jf = {
9372
+ }({}), Mf = {
9371
9373
  type: Q.ACTOR,
9372
9374
  properties: [
9373
9375
  {
@@ -9375,9 +9377,9 @@ var Q = /* @__PURE__ */ function(e) {
9375
9377
  type: Q.SELECT,
9376
9378
  hidden: !1,
9377
9379
  isRequired: !0,
9378
- options: Object.keys(Af).map((e, t) => ({
9380
+ options: Object.keys(jf).map((e, t) => ({
9379
9381
  id: l(),
9380
- label: `${Af[e].toLowerCase()}`,
9382
+ label: `${jf[e].toLowerCase()}`,
9381
9383
  value: e,
9382
9384
  position: t
9383
9385
  }))
@@ -9401,7 +9403,7 @@ var Q = /* @__PURE__ */ function(e) {
9401
9403
  isRequired: !1
9402
9404
  }
9403
9405
  ]
9404
- }, Mf = {
9406
+ }, Nf = {
9405
9407
  type: Q.ADDRESS,
9406
9408
  properties: [
9407
9409
  {
@@ -9453,7 +9455,7 @@ var Q = /* @__PURE__ */ function(e) {
9453
9455
  isRequired: !1
9454
9456
  }
9455
9457
  ]
9456
- }, Nf = {
9458
+ }, Pf = {
9457
9459
  type: Q.CURRENCY,
9458
9460
  properties: [{
9459
9461
  name: "amountMicros",
@@ -9466,7 +9468,7 @@ var Q = /* @__PURE__ */ function(e) {
9466
9468
  hidden: !1,
9467
9469
  isRequired: !1
9468
9470
  }]
9469
- }, Pf = {
9471
+ }, Ff = {
9470
9472
  type: Q.EMAILS,
9471
9473
  properties: [{
9472
9474
  name: "primaryEmail",
@@ -9480,7 +9482,7 @@ var Q = /* @__PURE__ */ function(e) {
9480
9482
  hidden: !1,
9481
9483
  isRequired: !1
9482
9484
  }]
9483
- }, Ff = {
9485
+ }, If = {
9484
9486
  type: Q.FULL_NAME,
9485
9487
  properties: [{
9486
9488
  name: "firstName",
@@ -9495,7 +9497,7 @@ var Q = /* @__PURE__ */ function(e) {
9495
9497
  isRequired: !1,
9496
9498
  isIncludedInUniqueConstraint: !1
9497
9499
  }]
9498
- }, If = {
9500
+ }, Lf = {
9499
9501
  type: Q.LINKS,
9500
9502
  properties: [
9501
9503
  {
@@ -9518,7 +9520,7 @@ var Q = /* @__PURE__ */ function(e) {
9518
9520
  isRequired: !1
9519
9521
  }
9520
9522
  ]
9521
- }, Lf = {
9523
+ }, Rf = {
9522
9524
  type: Q.PHONES,
9523
9525
  properties: [
9524
9526
  {
@@ -9549,7 +9551,7 @@ var Q = /* @__PURE__ */ function(e) {
9549
9551
  isRequired: !1
9550
9552
  }
9551
9553
  ]
9552
- }, Rf = {
9554
+ }, zf = {
9553
9555
  type: Q.RICH_TEXT,
9554
9556
  properties: [{
9555
9557
  name: "blocknote",
@@ -9567,119 +9569,123 @@ qu({
9567
9569
  blocknote: q().nullable().optional(),
9568
9570
  markdown: q().nullable()
9569
9571
  }), new Map([
9570
- [Q.LINKS, If],
9571
- [Q.CURRENCY, Nf],
9572
- [Q.FULL_NAME, Ff],
9573
- [Q.ADDRESS, Mf],
9574
- [Q.ACTOR, jf],
9575
- [Q.EMAILS, Pf],
9576
- [Q.PHONES, Lf],
9577
- [Q.RICH_TEXT, Rf]
9572
+ [Q.LINKS, Lf],
9573
+ [Q.CURRENCY, Pf],
9574
+ [Q.FULL_NAME, If],
9575
+ [Q.ADDRESS, Nf],
9576
+ [Q.ACTOR, Mf],
9577
+ [Q.EMAILS, Ff],
9578
+ [Q.PHONES, Rf],
9579
+ [Q.RICH_TEXT, zf]
9578
9580
  ]);
9579
9581
  //#endregion
9580
- //#region ../twenty-shared/dist/types-DIAIg-DD.mjs
9581
- var zf = {
9582
+ //#region ../twenty-shared/dist/types-BPwZbSNY.mjs
9583
+ var Bf = {
9582
9584
  UUID: "uuid",
9583
9585
  NOW: "now"
9584
9586
  };
9585
9587
  Q.RELATION, Q.MORPH_RELATION, Q.FILES, Q.TS_VECTOR;
9586
- var Bf = /* @__PURE__ */ function(e) {
9588
+ var Vf = /* @__PURE__ */ function(e) {
9587
9589
  return e.COPY = "COPY", e.OPEN_LINK = "OPEN_LINK", e.OPEN_IN_APP = "OPEN_IN_APP", e;
9588
- }({}), Vf = /* @__PURE__ */ function(e) {
9589
- return e.FLOAT = "float", e.INT = "int", e.BIGINT = "bigint", e;
9590
9590
  }({}), Hf = /* @__PURE__ */ function(e) {
9591
- return e.RELATIVE = "RELATIVE", e.USER_SETTINGS = "USER_SETTINGS", e.CUSTOM = "CUSTOM", e;
9591
+ return e.FLOAT = "float", e.INT = "int", e.BIGINT = "bigint", e;
9592
9592
  }({}), Uf = /* @__PURE__ */ function(e) {
9593
- return e.CorePicture = "core-picture", e.AgentChat = "agent-chat", e.BuiltLogicFunction = "built-logic-function", e.BuiltFrontComponent = "built-front-component", e.PublicAsset = "public-asset", e.Source = "source", e.FilesField = "files-field", e.Dependencies = "dependencies", e.Workflow = "workflow", e.EmailAttachment = "email-attachment", e.EmailImage = "email-image", e.AppTarball = "app-tarball", e.GeneratedSdkClient = "generated-sdk-client", e.Dpa = "dpa", e;
9593
+ return e.RELATIVE = "RELATIVE", e.USER_SETTINGS = "USER_SETTINGS", e.CUSTOM = "CUSTOM", e;
9594
9594
  }({}), Wf = /* @__PURE__ */ function(e) {
9595
- return e.MONDAY = "MONDAY", e.SUNDAY = "SUNDAY", e.SATURDAY = "SATURDAY", e;
9595
+ return e.CorePicture = "core-picture", e.AgentChat = "agent-chat", e.BuiltLogicFunction = "built-logic-function", e.BuiltFrontComponent = "built-front-component", e.PublicAsset = "public-asset", e.Source = "source", e.FilesField = "files-field", e.Dependencies = "dependencies", e.Workflow = "workflow", e.EmailAttachment = "email-attachment", e.EmailImage = "email-image", e.AppTarball = "app-tarball", e.GeneratedSdkClient = "generated-sdk-client", e.Dpa = "dpa", e;
9596
9596
  }({}), Gf = /* @__PURE__ */ function(e) {
9597
- return e.GET = "GET", e.POST = "POST", e.PUT = "PUT", e.PATCH = "PATCH", e.DELETE = "DELETE", e;
9597
+ return e.MONDAY = "MONDAY", e.SUNDAY = "SUNDAY", e.SATURDAY = "SATURDAY", e;
9598
9598
  }({}), Kf = /* @__PURE__ */ function(e) {
9599
- return e.OPEN = "OPEN", e.APPLICATION = "APPLICATION", e.SYSTEM = "SYSTEM", e;
9599
+ return e.GET = "GET", e.POST = "POST", e.PUT = "PUT", e.PATCH = "PATCH", e.DELETE = "DELETE", e;
9600
9600
  }({}), qf = /* @__PURE__ */ function(e) {
9601
- return e.VIEW = "VIEW", e.FOLDER = "FOLDER", e.LINK = "LINK", e.OBJECT = "OBJECT", e.RECORD = "RECORD", e.PAGE_LAYOUT = "PAGE_LAYOUT", e;
9601
+ return e.BTREE = "BTREE", e.GIN = "GIN", e;
9602
9602
  }({}), Jf = /* @__PURE__ */ function(e) {
9603
- return e.SIDE_PANEL = "SIDE_PANEL", e.RECORD_PAGE = "RECORD_PAGE", e.USER_CHOICE = "USER_CHOICE", e;
9603
+ return e.OPEN = "OPEN", e.APPLICATION = "APPLICATION", e.SYSTEM = "SYSTEM", e;
9604
9604
  }({}), Yf = /* @__PURE__ */ function(e) {
9605
+ return e.VIEW = "VIEW", e.FOLDER = "FOLDER", e.LINK = "LINK", e.OBJECT = "OBJECT", e.RECORD = "RECORD", e.PAGE_LAYOUT = "PAGE_LAYOUT", e;
9606
+ }({}), Xf = /* @__PURE__ */ function(e) {
9607
+ return e.SIDE_PANEL = "SIDE_PANEL", e.RECORD_PAGE = "RECORD_PAGE", e.USER_CHOICE = "USER_CHOICE", e;
9608
+ }({}), Zf = /* @__PURE__ */ function(e) {
9605
9609
  return e.DAY = "DAY", e.MONTH = "MONTH", e.QUARTER = "QUARTER", e.YEAR = "YEAR", e.WEEK = "WEEK", e.DAY_OF_THE_WEEK = "DAY_OF_THE_WEEK", e.MONTH_OF_THE_YEAR = "MONTH_OF_THE_YEAR", e.QUARTER_OF_THE_YEAR = "QUARTER_OF_THE_YEAR", e.NONE = "NONE", e;
9606
- }({}), Xf = [
9610
+ }({}), Qf = [
9607
9611
  "AGGREGATE_CHART",
9608
9612
  "PIE_CHART",
9609
9613
  "BAR_CHART",
9610
9614
  "LINE_CHART"
9611
- ], Zf = /* @__PURE__ */ function(e) {
9615
+ ], $f = /* @__PURE__ */ function(e) {
9612
9616
  return e.GRID = "GRID", e.VERTICAL_LIST = "VERTICAL_LIST", e.CANVAS = "CANVAS", e;
9613
- }({}), Qf = /* @__PURE__ */ function(e) {
9614
- return e.RECORD_INDEX = "RECORD_INDEX", e.RECORD_PAGE = "RECORD_PAGE", e.DASHBOARD = "DASHBOARD", e.STANDALONE_PAGE = "STANDALONE_PAGE", e;
9615
- }({}), $f = /* @__PURE__ */ function(e) {
9616
- return e.AND = "AND", e.OR = "OR", e;
9617
9617
  }({}), ep = /* @__PURE__ */ function(e) {
9618
- return e.CASCADE = "CASCADE", e.RESTRICT = "RESTRICT", e.SET_NULL = "SET_NULL", e.NO_ACTION = "NO_ACTION", e;
9618
+ return e.RECORD_INDEX = "RECORD_INDEX", e.RECORD_PAGE = "RECORD_PAGE", e.DASHBOARD = "DASHBOARD", e.STANDALONE_PAGE = "STANDALONE_PAGE", e.RECORD_FORM = "RECORD_FORM", e;
9619
9619
  }({}), tp = /* @__PURE__ */ function(e) {
9620
- return e.MANY_TO_ONE = "MANY_TO_ONE", e.ONE_TO_MANY = "ONE_TO_MANY", e;
9620
+ return e.VIEW = "VIEW", e.IFRAME = "IFRAME", e.FIELD = "FIELD", e.FIELDS = "FIELDS", e.GRAPH = "GRAPH", e.STANDALONE_RICH_TEXT = "STANDALONE_RICH_TEXT", e.TIMELINE = "TIMELINE", e.TASKS = "TASKS", e.NOTES = "NOTES", e.FILES = "FILES", e.EMAILS = "EMAILS", e.CALENDAR = "CALENDAR", e.FIELD_RICH_TEXT = "FIELD_RICH_TEXT", e.WORKFLOW = "WORKFLOW", e.WORKFLOW_VERSION = "WORKFLOW_VERSION", e.WORKFLOW_RUN = "WORKFLOW_RUN", e.FRONT_COMPONENT = "FRONT_COMPONENT", e.RECORD_TABLE = "RECORD_TABLE", e.EMAIL_THREAD = "EMAIL_THREAD", e.CALL_RECORDING_SUMMARY = "CALL_RECORDING_SUMMARY", e.CALL_RECORDING_TRANSCRIPT = "CALL_RECORDING_TRANSCRIPT", e.MESSAGE_CAMPAIGN_BODY = "MESSAGE_CAMPAIGN_BODY", e.MESSAGE_CAMPAIGN_DETAILS = "MESSAGE_CAMPAIGN_DETAILS", e.FORM_FIELD = "FORM_FIELD", e;
9621
9621
  }({}), np = /* @__PURE__ */ function(e) {
9622
9622
  return e.AND = "AND", e.OR = "OR", e;
9623
9623
  }({}), rp = /* @__PURE__ */ function(e) {
9624
- return e.IS = "IS", e.IS_NOT_NULL = "IS_NOT_NULL", e.IS_NOT = "IS_NOT", e.LESS_THAN_OR_EQUAL = "LESS_THAN_OR_EQUAL", e.GREATER_THAN_OR_EQUAL = "GREATER_THAN_OR_EQUAL", e.IS_BEFORE = "IS_BEFORE", e.IS_AFTER = "IS_AFTER", e.CONTAINS = "CONTAINS", e.DOES_NOT_CONTAIN = "DOES_NOT_CONTAIN", e.IS_EMPTY = "IS_EMPTY", e.IS_NOT_EMPTY = "IS_NOT_EMPTY", e.IS_RELATIVE = "IS_RELATIVE", e.IS_IN_PAST = "IS_IN_PAST", e.IS_IN_FUTURE = "IS_IN_FUTURE", e.IS_TODAY = "IS_TODAY", e.VECTOR_SEARCH = "VECTOR_SEARCH", e;
9624
+ return e.CASCADE = "CASCADE", e.RESTRICT = "RESTRICT", e.SET_NULL = "SET_NULL", e.NO_ACTION = "NO_ACTION", e;
9625
9625
  }({}), ip = /* @__PURE__ */ function(e) {
9626
- return e.DAY = "DAY", e.WEEK = "WEEK", e.MONTH = "MONTH", e;
9626
+ return e.MANY_TO_ONE = "MANY_TO_ONE", e.ONE_TO_MANY = "ONE_TO_MANY", e;
9627
9627
  }({}), ap = /* @__PURE__ */ function(e) {
9628
- return e.AND = "AND", e.OR = "OR", e.NOT = "NOT", e;
9628
+ return e.AND = "AND", e.OR = "OR", e;
9629
9629
  }({}), op = /* @__PURE__ */ function(e) {
9630
9630
  return e.IS = "IS", e.IS_NOT_NULL = "IS_NOT_NULL", e.IS_NOT = "IS_NOT", e.LESS_THAN_OR_EQUAL = "LESS_THAN_OR_EQUAL", e.GREATER_THAN_OR_EQUAL = "GREATER_THAN_OR_EQUAL", e.IS_BEFORE = "IS_BEFORE", e.IS_AFTER = "IS_AFTER", e.CONTAINS = "CONTAINS", e.DOES_NOT_CONTAIN = "DOES_NOT_CONTAIN", e.IS_EMPTY = "IS_EMPTY", e.IS_NOT_EMPTY = "IS_NOT_EMPTY", e.IS_RELATIVE = "IS_RELATIVE", e.IS_IN_PAST = "IS_IN_PAST", e.IS_IN_FUTURE = "IS_IN_FUTURE", e.IS_TODAY = "IS_TODAY", e.VECTOR_SEARCH = "VECTOR_SEARCH", e;
9631
9631
  }({}), sp = /* @__PURE__ */ function(e) {
9632
- return e.Is = "is", e.IsNotNull = "isNotNull", e.IsNot = "isNot", e.LessThanOrEqual = "lessThan", e.GreaterThanOrEqual = "greaterThan", e.IsBefore = "isBefore", e.IsAfter = "isAfter", e.Contains = "contains", e.DoesNotContain = "doesNotContain", e.IsEmpty = "isEmpty", e.IsNotEmpty = "isNotEmpty", e.IsRelative = "isRelative", e.IsInPast = "isInPast", e.IsInFuture = "isInFuture", e.IsToday = "isToday", e;
9632
+ return e.DAY = "DAY", e.WEEK = "WEEK", e.MONTH = "MONTH", e;
9633
9633
  }({}), cp = /* @__PURE__ */ function(e) {
9634
- return e.INDEX = "INDEX", e;
9634
+ return e.AND = "AND", e.OR = "OR", e.NOT = "NOT", e;
9635
9635
  }({}), lp = /* @__PURE__ */ function(e) {
9636
- return e.SIDE_PANEL = "SIDE_PANEL", e.RECORD_PAGE = "RECORD_PAGE", e;
9636
+ return e.IS = "IS", e.IS_NOT_NULL = "IS_NOT_NULL", e.IS_NOT = "IS_NOT", e.LESS_THAN_OR_EQUAL = "LESS_THAN_OR_EQUAL", e.GREATER_THAN_OR_EQUAL = "GREATER_THAN_OR_EQUAL", e.IS_BEFORE = "IS_BEFORE", e.IS_AFTER = "IS_AFTER", e.CONTAINS = "CONTAINS", e.DOES_NOT_CONTAIN = "DOES_NOT_CONTAIN", e.IS_EMPTY = "IS_EMPTY", e.IS_NOT_EMPTY = "IS_NOT_EMPTY", e.IS_RELATIVE = "IS_RELATIVE", e.IS_IN_PAST = "IS_IN_PAST", e.IS_IN_FUTURE = "IS_IN_FUTURE", e.IS_TODAY = "IS_TODAY", e.VECTOR_SEARCH = "VECTOR_SEARCH", e;
9637
9637
  }({}), up = /* @__PURE__ */ function(e) {
9638
- return e.ASC = "ASC", e.DESC = "DESC", e;
9638
+ return e.Is = "is", e.IsNotNull = "isNotNull", e.IsNot = "isNot", e.LessThanOrEqual = "lessThan", e.GreaterThanOrEqual = "greaterThan", e.IsBefore = "isBefore", e.IsAfter = "isAfter", e.Contains = "contains", e.DoesNotContain = "doesNotContain", e.IsEmpty = "isEmpty", e.IsNotEmpty = "isNotEmpty", e.IsRelative = "isRelative", e.IsInPast = "isInPast", e.IsInFuture = "isInFuture", e.IsToday = "isToday", e;
9639
9639
  }({}), dp = /* @__PURE__ */ function(e) {
9640
- return e.TABLE = "TABLE", e.KANBAN = "KANBAN", e.CALENDAR = "CALENDAR", e.LIST = "LIST", e.FIELDS_WIDGET = "FIELDS_WIDGET", e.TABLE_WIDGET = "TABLE_WIDGET", e.KANBAN_WIDGET = "KANBAN_WIDGET", e.LIST_WIDGET = "LIST_WIDGET", e.CALENDAR_WIDGET = "CALENDAR_WIDGET", e;
9640
+ return e.INDEX = "INDEX", e;
9641
9641
  }({}), fp = /* @__PURE__ */ function(e) {
9642
+ return e.SIDE_PANEL = "SIDE_PANEL", e.RECORD_PAGE = "RECORD_PAGE", e;
9643
+ }({}), pp = /* @__PURE__ */ function(e) {
9644
+ return e.ASC = "ASC", e.DESC = "DESC", e;
9645
+ }({}), mp = /* @__PURE__ */ function(e) {
9646
+ return e.TABLE = "TABLE", e.KANBAN = "KANBAN", e.CALENDAR = "CALENDAR", e.LIST = "LIST", e.FIELDS_WIDGET = "FIELDS_WIDGET", e.TABLE_WIDGET = "TABLE_WIDGET", e.KANBAN_WIDGET = "KANBAN_WIDGET", e.LIST_WIDGET = "LIST_WIDGET", e.CALENDAR_WIDGET = "CALENDAR_WIDGET", e;
9647
+ }({}), hp = /* @__PURE__ */ function(e) {
9642
9648
  return e.WORKSPACE = "WORKSPACE", e.UNLISTED = "UNLISTED", e;
9643
- }({}), pp = "20202020-64aa-4b6f-b003-9c74b97cee20", $ = ({ entityNamespace: e, value: t, applicationUniversalIdentifier: n }) => u(`${e}:${t}`, n), mp = ({ applicationUniversalIdentifier: e, objectUniversalIdentifier: t, name: n }) => $({
9649
+ }({}), gp = "20202020-64aa-4b6f-b003-9c74b97cee20", $ = ({ entityNamespace: e, value: t, applicationUniversalIdentifier: n }) => u(`${e}:${t}`, n), _p = ({ applicationUniversalIdentifier: e, objectUniversalIdentifier: t, name: n }) => $({
9644
9650
  entityNamespace: "fieldMetadata",
9645
9651
  value: `${t}:${n}`,
9646
9652
  applicationUniversalIdentifier: e
9647
- }), hp = ({ applicationUniversalIdentifier: e, objectUniversalIdentifier: t, name: n }) => $({
9653
+ }), vp = ({ applicationUniversalIdentifier: e, objectUniversalIdentifier: t, name: n }) => $({
9648
9654
  entityNamespace: "pageLayout",
9649
9655
  value: t ? `${t}:${n}` : n,
9650
9656
  applicationUniversalIdentifier: e
9651
- }), gp = ({ objectMetadataApplicationUniversalIdentifier: e, pageLayoutUniversalIdentifier: t, title: n }) => $({
9657
+ }), yp = ({ objectMetadataApplicationUniversalIdentifier: e, pageLayoutUniversalIdentifier: t, title: n }) => $({
9652
9658
  entityNamespace: "pageLayoutTab",
9653
9659
  value: `${t}:${n}`,
9654
9660
  applicationUniversalIdentifier: e
9655
- }), _p = ({ objectMetadataApplicationUniversalIdentifier: e, pageLayoutTabUniversalIdentifier: t, title: n }) => $({
9661
+ }), bp = ({ objectMetadataApplicationUniversalIdentifier: e, pageLayoutTabUniversalIdentifier: t, title: n }) => $({
9656
9662
  entityNamespace: "pageLayoutWidget",
9657
9663
  value: `${t}:${n}`,
9658
9664
  applicationUniversalIdentifier: e
9659
- }), vp = ({ objectMetadataApplicationUniversalIdentifier: e, objectUniversalIdentifier: t }) => hp({
9665
+ }), xp = ({ objectMetadataApplicationUniversalIdentifier: e, objectUniversalIdentifier: t }) => vp({
9660
9666
  applicationUniversalIdentifier: e,
9661
9667
  objectUniversalIdentifier: t,
9662
- name: Qf.RECORD_PAGE
9663
- }), yp = ({ applicationUniversalIdentifier: e, objectUniversalIdentifier: t, relationTargetObjectUniversalIdentifier: n }) => $({
9668
+ name: ep.RECORD_PAGE
9669
+ }), Sp = ({ applicationUniversalIdentifier: e, objectUniversalIdentifier: t, relationTargetObjectUniversalIdentifier: n }) => $({
9664
9670
  entityNamespace: "fieldMetadata",
9665
9671
  value: `${t}:systemRelation:${n}`,
9666
9672
  applicationUniversalIdentifier: e
9667
- }), bp = ({ objectMetadataApplicationUniversalIdentifier: e, viewUniversalIdentifier: t, name: n }) => $({
9673
+ }), Cp = ({ objectMetadataApplicationUniversalIdentifier: e, viewUniversalIdentifier: t, name: n }) => $({
9668
9674
  entityNamespace: "viewFieldGroup",
9669
9675
  value: `${t}:${n}`,
9670
9676
  applicationUniversalIdentifier: e
9671
- }), xp = ({ fieldMetadataApplicationUniversalIdentifier: e, viewUniversalIdentifier: t, fieldMetadataUniversalIdentifier: n }) => $({
9677
+ }), wp = ({ fieldMetadataApplicationUniversalIdentifier: e, viewUniversalIdentifier: t, fieldMetadataUniversalIdentifier: n }) => $({
9672
9678
  entityNamespace: "viewField",
9673
9679
  value: `${t}:${n}`,
9674
9680
  applicationUniversalIdentifier: e
9675
- }), Sp = {
9681
+ }), Tp = {
9676
9682
  INDEX: "INDEX",
9677
9683
  FIELDS_WIDGET: "FIELDS_WIDGET"
9678
- }, Cp = ({ objectMetadataApplicationUniversalIdentifier: e, objectUniversalIdentifier: t, viewKey: n }) => $({
9684
+ }, Ep = ({ objectMetadataApplicationUniversalIdentifier: e, objectUniversalIdentifier: t, viewKey: n }) => $({
9679
9685
  entityNamespace: "view",
9680
9686
  value: `${t}:${n}`,
9681
9687
  applicationUniversalIdentifier: e
9682
- }), wp = [
9688
+ }), Dp = ["MONTH"], Op = (e) => Dp.includes(e), kp = ["WORKSPACE_MEMBER"], Ap = (e) => kp.includes(e), jp = 1e8, Mp = [
9683
9689
  "Communication",
9684
9690
  "Productivity",
9685
9691
  "Product management",
@@ -9689,32 +9695,40 @@ var Bf = /* @__PURE__ */ function(e) {
9689
9695
  "Data",
9690
9696
  "Search",
9691
9697
  "Other"
9692
- ], Tp = (e) => wp.includes(e);
9698
+ ], Np = (e) => Mp.includes(e);
9693
9699
  Q.TEXT, Q.ARRAY, Q.BOOLEAN, Q.DATE, Q.DATE_TIME, Q.NUMBER, Q.NUMERIC, Q.RAW_JSON, Q.RICH_TEXT, Q.SELECT, Q.MULTI_SELECT;
9694
9700
  //#endregion
9695
9701
  //#region ../twenty-shared/dist/application.mjs
9696
- var Ep = "public", Dp = "front-component-shared-dependencies.mjs", Op = "twenty:front-component-shared-dependencies", kp = { js: "import { createRequire as __createRequire } from 'module';\nconst require = __createRequire(import.meta.url);" }, Ap = ".twenty/output", jp = /* @__PURE__ */ function(e) {
9702
+ var Pp = "public", Fp = "front-component-shared-dependencies.mjs", Ip = "twenty:front-component-shared-dependencies", Lp = { js: "import { createRequire as __createRequire } from 'module';\nconst require = __createRequire(import.meta.url);" }, Rp = ".twenty/output", zp = /* @__PURE__ */ function(e) {
9697
9703
  return e.Object = "object", e.Field = "field", e.LogicFunction = "logicFunction", e.FrontComponent = "frontComponent", e.Role = "role", e.Skill = "skill", e.Agent = "agent", e.ConnectionProvider = "connectionProvider", e.View = "view", e.ViewField = "viewField", e.NavigationMenuItem = "navigationMenuItem", e.PageLayout = "pageLayout", e.PageLayoutTab = "pageLayoutTab", e.CommandMenuItem = "commandMenuItem", e.TimelineActivityType = "timelineActivityType", e;
9698
- }({}), Mp = (e) => `__shared_dependencies_${e.replace(/[^A-Za-z0-9]/g, "_")}__`, Np = ({ specifier: e, exportNames: t }) => {
9699
- let n = Mp(e), r = [`import { ${n} } from ${JSON.stringify(Op)};`];
9704
+ }({}), Bp = [
9705
+ "AI_CHAT_TOKEN",
9706
+ "AI_WORKFLOW_TOKEN",
9707
+ "WORKFLOW_EXECUTION",
9708
+ "CODE_EXECUTION",
9709
+ "WEB_SEARCH",
9710
+ "CALL_RECORDING",
9711
+ "EMAIL_SEND"
9712
+ ], Vp = (e) => Bp.includes(e), Hp = (e) => `__shared_dependencies_${e.replace(/[^A-Za-z0-9]/g, "_")}__`, Up = ({ specifier: e, exportNames: t }) => {
9713
+ let n = Hp(e), r = [`import { ${n} } from ${JSON.stringify(Ip)};`];
9700
9714
  for (let [e, i] of t.namedExports.entries()) r.push(`const __sharedDependenciesExport${e} = ${n}[${JSON.stringify(i)}];`, `export { __sharedDependenciesExport${e} as ${JSON.stringify(i)} };`);
9701
9715
  return t.hasDefaultExport && r.push(`export default ${n}.default;`), r.join("\n");
9702
- }, Pp = "twenty-shared-dependencies-shim", Fp = (e) => ({
9716
+ }, Wp = "twenty-shared-dependencies-shim", Gp = (e) => ({
9703
9717
  name: "twenty-shared-dependencies-shim",
9704
9718
  setup: (t) => {
9705
9719
  t.onResolve({ filter: /.*/ }, ({ path: t }) => {
9706
9720
  let n = e();
9707
9721
  if (se(n) && n.exportNamesBySpecifier.has(t)) return {
9708
9722
  path: t,
9709
- namespace: Pp
9723
+ namespace: Wp
9710
9724
  };
9711
9725
  }), t.onLoad({
9712
9726
  filter: /.*/,
9713
- namespace: Pp
9727
+ namespace: Wp
9714
9728
  }, ({ path: t }) => {
9715
9729
  let n = e()?.exportNamesBySpecifier.get(t);
9716
9730
  if (se(n)) return {
9717
- contents: Np({
9731
+ contents: Up({
9718
9732
  specifier: t,
9719
9733
  exportNames: n
9720
9734
  }),
@@ -9722,19 +9736,19 @@ var Ep = "public", Dp = "front-component-shared-dependencies.mjs", Op = "twenty:
9722
9736
  };
9723
9737
  });
9724
9738
  }
9725
- }), Ip = (e) => `if (typeof document !== 'undefined') {
9739
+ }), Kp = (e) => `if (typeof document !== 'undefined') {
9726
9740
  const styleElement = document.createElement('style');
9727
9741
  document.head.appendChild(styleElement);
9728
9742
  styleElement.textContent = ${JSON.stringify(e)};
9729
- }`, Lp = {
9743
+ }`, qp = {
9730
9744
  name: "css-injection",
9731
9745
  setup: (e) => {
9732
9746
  e.onLoad({ filter: /\.css$/ }, async ({ path: e }) => ({
9733
- contents: Ip(await a(e, "utf8")),
9747
+ contents: Kp(await a(e, "utf8")),
9734
9748
  loader: "js"
9735
9749
  }));
9736
9750
  }
9737
- }, Rp = "export var customElementMap = globalThis.__HTML_TAG_TO_CUSTOM_ELEMENT_TAG__ || {};\n\nvar _injectedStyleKeys = {};\n\nexport function injectStyleViaHead(cssText) {\n if (!cssText) return;\n var hash = 0;\n for (var i = 0; i < cssText.length; i++) {\n hash = ((hash << 5) - hash + cssText.charCodeAt(i)) | 0;\n }\n var key = 'jsx-style-' + hash;\n if (_injectedStyleKeys[key]) return;\n _injectedStyleKeys[key] = true;\n var el = document.createElement('style');\n el.setAttribute('data-jsx-style', key);\n el.textContent = cssText;\n document.head.appendChild(el);\n}\n\nexport function extractCssText(children) {\n if (typeof children === 'string') return children;\n if (Array.isArray(children))\n return children\n .filter(function (c) { return typeof c === 'string'; })\n .join('');\n return '';\n}\n\nvar _reactToDomEvent = {\n ondoubleclick: 'ondblclick',\n};\n\nfunction _isEventProp(name) {\n return (\n name.length > 2 &&\n name.charCodeAt(0) === 111 &&\n name.charCodeAt(1) === 110 &&\n name.charCodeAt(2) >= 65 &&\n name.charCodeAt(2) <= 90\n );\n}\n\nexport function splitEventProps(props) {\n if (!props) return { cleanProps: props, events: null };\n var events = null;\n var cleanProps = null;\n for (var k in props) {\n if (_isEventProp(k) && typeof props[k] === 'function') {\n if (!events) {\n events = {};\n cleanProps = {};\n for (var j in props) {\n if (j === k) break;\n cleanProps[j] = props[j];\n }\n }\n events[k] = props[k];\n } else if (events) {\n cleanProps[k] = props[k];\n }\n }\n return { cleanProps: cleanProps || props, events: events };\n}\n\nexport function makeEventRef(events, userRef) {\n return function(el) {\n if (el) {\n for (var name in events) {\n var domName = _reactToDomEvent[name.toLowerCase()] || name.toLowerCase();\n el[domName] = events[name];\n }\n }\n if (typeof userRef === 'function') userRef(el);\n else if (userRef != null && typeof userRef === 'object') userRef.current = el;\n };\n}", zp = "import {\n jsx as _originalJsx,\n jsxs as _originalJsxs,\n Fragment,\n} from '__real_react_jsx_runtime__';\n\nimport {\n customElementMap,\n injectStyleViaHead,\n extractCssText,\n splitEventProps,\n makeEventRef,\n} from '__jsx_shared_helpers__';\n\nfunction _wrapJsxFactory(originalFactory) {\n return function wrappedJsx(type, props, key) {\n if (typeof type === 'string') {\n if (type === 'style') {\n var css =\n props && props.dangerouslySetInnerHTML\n ? props.dangerouslySetInnerHTML.__html || ''\n : extractCssText(props && props.children);\n injectStyleViaHead(css);\n return null;\n }\n\n var customTag = customElementMap[type];\n if (customTag) {\n var split = splitEventProps(props);\n if (split.events) {\n var cp = split.cleanProps;\n cp.ref = makeEventRef(split.events, cp.ref);\n return originalFactory(customTag, cp, key);\n }\n return originalFactory(customTag, props, key);\n }\n }\n return originalFactory(type, props, key);\n };\n}\n\nexport var jsx = _wrapJsxFactory(_originalJsx);\nexport var jsxs = _wrapJsxFactory(_originalJsxs);\nexport { Fragment };", Bp = "export * from '__real_react__';\nimport _React from '__real_react__';\n\nimport {\n customElementMap,\n injectStyleViaHead,\n extractCssText,\n splitEventProps,\n makeEventRef,\n} from '__jsx_shared_helpers__';\n\nvar _originalCreateElement = _React.createElement;\n\nfunction createElement(type) {\n var args = arguments;\n if (typeof type === 'string') {\n if (type === 'style') {\n var props = args.length > 1 ? args[1] : null;\n if (props) {\n var css = props.dangerouslySetInnerHTML\n ? props.dangerouslySetInnerHTML.__html || ''\n : extractCssText(props.children);\n injectStyleViaHead(css);\n }\n return null;\n }\n\n var customTag = customElementMap[type];\n if (customTag) {\n var ceProps = args.length > 1 ? args[1] : null;\n var split = splitEventProps(ceProps);\n if (split.events) {\n var cp = split.cleanProps || {};\n cp.ref = makeEventRef(split.events, cp.ref);\n var newArgs = [customTag, cp];\n for (var i = 2; i < args.length; i++) newArgs.push(args[i]);\n return _originalCreateElement.apply(null, newArgs);\n }\n var newArgs2 = [customTag];\n for (var i2 = 1; i2 < args.length; i2++) newArgs2.push(args[i2]);\n return _originalCreateElement.apply(null, newArgs2);\n }\n }\n return _originalCreateElement.apply(null, args);\n}\n\nexport { createElement };\nexport default Object.assign({}, _React, { createElement: createElement });", Vp = (e) => {
9751
+ }, Jp = "export var customElementMap = globalThis.__HTML_TAG_TO_CUSTOM_ELEMENT_TAG__ || {};\n\nvar _injectedStyleKeys = {};\n\nexport function injectStyleViaHead(cssText) {\n if (!cssText) return;\n var hash = 0;\n for (var i = 0; i < cssText.length; i++) {\n hash = ((hash << 5) - hash + cssText.charCodeAt(i)) | 0;\n }\n var key = 'jsx-style-' + hash;\n if (_injectedStyleKeys[key]) return;\n _injectedStyleKeys[key] = true;\n var el = document.createElement('style');\n el.setAttribute('data-jsx-style', key);\n el.textContent = cssText;\n document.head.appendChild(el);\n}\n\nexport function extractCssText(children) {\n if (typeof children === 'string') return children;\n if (Array.isArray(children))\n return children\n .filter(function (c) { return typeof c === 'string'; })\n .join('');\n return '';\n}\n\nvar _reactToDomEvent = {\n ondoubleclick: 'ondblclick',\n};\n\nfunction _isEventProp(name) {\n return (\n name.length > 2 &&\n name.charCodeAt(0) === 111 &&\n name.charCodeAt(1) === 110 &&\n name.charCodeAt(2) >= 65 &&\n name.charCodeAt(2) <= 90\n );\n}\n\nexport function splitEventProps(props) {\n if (!props) return { cleanProps: props, events: null };\n var events = null;\n var cleanProps = null;\n for (var k in props) {\n if (_isEventProp(k) && typeof props[k] === 'function') {\n if (!events) {\n events = {};\n cleanProps = {};\n for (var j in props) {\n if (j === k) break;\n cleanProps[j] = props[j];\n }\n }\n events[k] = props[k];\n } else if (events) {\n cleanProps[k] = props[k];\n }\n }\n return { cleanProps: cleanProps || props, events: events };\n}\n\nexport function makeEventRef(events, userRef) {\n return function(el) {\n if (el) {\n for (var name in events) {\n var domName = _reactToDomEvent[name.toLowerCase()] || name.toLowerCase();\n el[domName] = events[name];\n }\n }\n if (typeof userRef === 'function') userRef(el);\n else if (userRef != null && typeof userRef === 'object') userRef.current = el;\n };\n}", Yp = "import {\n jsx as _originalJsx,\n jsxs as _originalJsxs,\n Fragment,\n} from '__real_react_jsx_runtime__';\n\nimport {\n customElementMap,\n injectStyleViaHead,\n extractCssText,\n splitEventProps,\n makeEventRef,\n} from '__jsx_shared_helpers__';\n\nfunction _wrapJsxFactory(originalFactory) {\n return function wrappedJsx(type, props, key) {\n if (typeof type === 'string') {\n if (type === 'style') {\n var css =\n props && props.dangerouslySetInnerHTML\n ? props.dangerouslySetInnerHTML.__html || ''\n : extractCssText(props && props.children);\n injectStyleViaHead(css);\n return null;\n }\n\n var customTag = customElementMap[type];\n if (customTag) {\n var split = splitEventProps(props);\n if (split.events) {\n var cp = split.cleanProps;\n cp.ref = makeEventRef(split.events, cp.ref);\n return originalFactory(customTag, cp, key);\n }\n return originalFactory(customTag, props, key);\n }\n }\n return originalFactory(type, props, key);\n };\n}\n\nexport var jsx = _wrapJsxFactory(_originalJsx);\nexport var jsxs = _wrapJsxFactory(_originalJsxs);\nexport { Fragment };", Xp = "export * from '__real_react__';\nimport _React from '__real_react__';\n\nimport {\n customElementMap,\n injectStyleViaHead,\n extractCssText,\n splitEventProps,\n makeEventRef,\n} from '__jsx_shared_helpers__';\n\nvar _originalCreateElement = _React.createElement;\n\nfunction createElement(type) {\n var args = arguments;\n if (typeof type === 'string') {\n if (type === 'style') {\n var props = args.length > 1 ? args[1] : null;\n if (props) {\n var css = props.dangerouslySetInnerHTML\n ? props.dangerouslySetInnerHTML.__html || ''\n : extractCssText(props.children);\n injectStyleViaHead(css);\n }\n return null;\n }\n\n var customTag = customElementMap[type];\n if (customTag) {\n var ceProps = args.length > 1 ? args[1] : null;\n var split = splitEventProps(ceProps);\n if (split.events) {\n var cp = split.cleanProps || {};\n cp.ref = makeEventRef(split.events, cp.ref);\n var newArgs = [customTag, cp];\n for (var i = 2; i < args.length; i++) newArgs.push(args[i]);\n return _originalCreateElement.apply(null, newArgs);\n }\n var newArgs2 = [customTag];\n for (var i2 = 1; i2 < args.length; i2++) newArgs2.push(args[i2]);\n return _originalCreateElement.apply(null, newArgs2);\n }\n }\n return _originalCreateElement.apply(null, args);\n}\n\nexport { createElement };\nexport default Object.assign({}, _React, { createElement: createElement });", Zp = (e) => {
9738
9752
  let t = e?.usePreact ?? !1, n = t ? "preact/jsx-runtime" : "react/jsx-runtime", r = t ? "preact/compat" : "react";
9739
9753
  return {
9740
9754
  name: "jsx-runtime-remote-wrapper",
@@ -9747,7 +9761,7 @@ var Ep = "public", Dp = "front-component-shared-dependencies.mjs", Op = "twenty:
9747
9761
  filter: /.*/,
9748
9762
  namespace: "jsx-shared-helpers"
9749
9763
  }, () => ({
9750
- contents: Rp,
9764
+ contents: Jp,
9751
9765
  loader: "js"
9752
9766
  })), e.onResolve({ filter: /^react\/jsx-runtime$/ }, async (r) => {
9753
9767
  if (!r.pluginData?.skipJsxWrapper) return t ||= (await e.resolve(n, {
@@ -9765,7 +9779,7 @@ var Ep = "public", Dp = "front-component-shared-dependencies.mjs", Op = "twenty:
9765
9779
  filter: /.*/,
9766
9780
  namespace: "jsx-runtime-wrapper"
9767
9781
  }, () => ({
9768
- contents: zp,
9782
+ contents: Yp,
9769
9783
  loader: "js"
9770
9784
  })), e.onResolve({ filter: /^react$/ }, async (t) => {
9771
9785
  if (!t.pluginData?.skipJsxWrapper) return i ||= (await e.resolve(r, {
@@ -9783,28 +9797,28 @@ var Ep = "public", Dp = "front-component-shared-dependencies.mjs", Op = "twenty:
9783
9797
  filter: /.*/,
9784
9798
  namespace: "react-wrapper"
9785
9799
  }, () => ({
9786
- contents: Bp,
9800
+ contents: Xp,
9787
9801
  loader: "js"
9788
9802
  }));
9789
9803
  }
9790
9804
  };
9791
- }, Hp = /import\s*\{\s*define(?:Settings)?FrontComponent\s*\}\s*from\s*['"][^'"]+['"];?\n?/g, Up = /export\s+default\s+define(?:Settings)?FrontComponent\s*\(/, Wp = /component\s*:\s*([A-Za-z_$][\w$]*)\s*[,}]/, Gp = "__frontComponentDefinition", Kp = (e) => {
9792
- let t = e.replace(Hp, "");
9793
- if (!Up.test(t)) return t;
9794
- t = t.replace(Up, `const ${Gp} = (`);
9795
- let n = t.match(Wp);
9805
+ }, Qp = /import\s*\{\s*define(?:Settings)?FrontComponent\s*\}\s*from\s*['"][^'"]+['"];?\n?/g, $p = /export\s+default\s+define(?:Settings)?FrontComponent\s*\(/, em = /component\s*:\s*([A-Za-z_$][\w$]*)\s*[,}]/, tm = "__frontComponentDefinition", nm = (e) => {
9806
+ let t = e.replace(Qp, "");
9807
+ if (!$p.test(t)) return t;
9808
+ t = t.replace($p, `const ${tm} = (`);
9809
+ let n = t.match(em);
9796
9810
  if (n) {
9797
9811
  let e = n[1];
9798
9812
  t = t.replace(RegExp(`export\\s+(const|function)\\s+${e}\\b`), `$1 ${e}`);
9799
9813
  }
9800
- return "import { createRoot as __createRoot } from 'react-dom/client';\nimport { jsx as __frontComponentJsx } from 'react/jsx-runtime';\n" + t + `\nexport default function __renderFrontComponent(__container) { __createRoot(__container).render(__frontComponentJsx(${Gp}.component, {})); }\n`;
9801
- }, qp = {
9814
+ return "import { createRoot as __createRoot } from 'react-dom/client';\nimport { jsx as __frontComponentJsx } from 'react/jsx-runtime';\n" + t + `\nexport default function __renderFrontComponent(__container) { __createRoot(__container).render(__frontComponentJsx(${tm}.component, {})); }\n`;
9815
+ }, rm = {
9802
9816
  name: "jsx-transform-to-remote-dom-worker-format-plugin",
9803
9817
  setup: (e) => {
9804
9818
  e.onLoad({ filter: /\.tsx$/ }, async ({ path: e }) => {
9805
9819
  try {
9806
9820
  return {
9807
- contents: Kp(await a(e, "utf8")),
9821
+ contents: nm(await a(e, "utf8")),
9808
9822
  loader: "tsx"
9809
9823
  };
9810
9824
  } catch (t) {
@@ -9815,7 +9829,7 @@ var Ep = "public", Dp = "front-component-shared-dependencies.mjs", Op = "twenty:
9815
9829
  }
9816
9830
  });
9817
9831
  }
9818
- }, Jp = () => ({
9832
+ }, im = () => ({
9819
9833
  name: "preact-alias",
9820
9834
  setup: (e) => {
9821
9835
  let t;
@@ -9827,25 +9841,25 @@ var Ep = "public", Dp = "front-component-shared-dependencies.mjs", Op = "twenty:
9827
9841
  resolveDir: t.resolveDir
9828
9842
  })).path }));
9829
9843
  }
9830
- }), Yp = /^\/\/.*$\n/gm, Xp = {
9844
+ }), am = /^\/\/.*$\n/gm, om = {
9831
9845
  name: "strip-comments",
9832
9846
  setup: (e) => {
9833
9847
  e.onEnd(async (e) => {
9834
9848
  if (e.errors.length > 0) return;
9835
9849
  let t = Object.keys(e.metafile?.outputs ?? {}).filter((e) => e.endsWith(".mjs"));
9836
9850
  for (let e of t) {
9837
- let t = i.resolve(e), n = await a(t, "utf-8"), r = n.replace(Yp, "");
9851
+ let t = i.resolve(e), n = await a(t, "utf-8"), r = n.replace(am, "");
9838
9852
  r !== n && await o(t, r, "utf-8");
9839
9853
  }
9840
9854
  });
9841
9855
  }
9842
- }, Zp = (e) => [
9843
- ...se(e?.getSharedDependenciesBuildContext) ? [Fp(e.getSharedDependenciesBuildContext)] : [],
9844
- Vp(e?.usePreact ? { usePreact: !0 } : void 0),
9845
- ...e?.usePreact ? [Jp()] : [],
9856
+ }, sm = (e) => [
9857
+ ...se(e?.getSharedDependenciesBuildContext) ? [Gp(e.getSharedDependenciesBuildContext)] : [],
9858
+ Zp(e?.usePreact ? { usePreact: !0 } : void 0),
9859
+ ...e?.usePreact ? [im()] : [],
9860
+ rm,
9846
9861
  qp,
9847
- Lp,
9848
- Xp
9862
+ om
9849
9863
  ];
9850
9864
  //#endregion
9851
- export { vf as $, ap as A, tp as B, ip as C, ae as Ct, Bf as D, Hf as E, Of as F, Yf as G, cp as H, Kf as I, qf as J, $f as K, Xf as L, Uf as M, Gf as N, lp as O, np as P, rp as Q, Af as R, Wf as S, oe as St, fp as T, zf as U, ep as V, op as W, Q as X, Qf as Y, Jf as Z, gp as _, $t as _t, Dp as a, Cl as at, bp as b, re as bt, jp as c, hd as ct, vp as d, qu as dt, pf as et, xp as f, of as ft, pp as g, El as gt, yp as h, Zu as ht, Ap as i, $u as it, dp as j, up as k, Tp as l, Yu as lt, mp as m, q as mt, Mp as n, Wu as nt, kp as o, gu as ot, Sp as p, ad as pt, kf as q, Op as r, Su as rt, Ep as s, Kd as st, Zp as t, fd as tt, wp as u, hu as ut, Cp as v, ce as vt, Vf as w, sp as x, m as xt, _p as y, se as yt, Zf as z };
9865
+ export { jf as $, up as A, re as At, pp as B, gp as C, ad as Ct, Cp as D, $t as Dt, bp as E, El as Et, sp as F, ep as G, Gf as H, cp as I, Af as J, rp as K, Vf as L, dp as M, oe as Mt, Hf as N, ae as Nt, hp as O, ce as Ot, fp as P, Jf as Q, lp as R, Sp as S, of as St, Ep as T, Zu as Tt, Wf as U, ap as V, Kf as W, Qf as X, $f as Y, Bf as Z, Mp as _, Kd as _t, Pp as a, tp as at, Tp as b, hu as bt, Np as c, mp as ct, zp as d, fd as dt, kf as et, jp as f, Wu as ft, Vp as g, gu as gt, kp as h, Cl as ht, Ip as i, Yf as it, qf as j, m as jt, op as k, se as kt, Dp as l, vf as lt, Ap as m, $u as mt, Hp as n, Q as nt, Lp as o, ip as ot, Fp as p, Su as pt, Xf as q, Bp as r, Of as rt, Rp as s, np as st, sm as t, Zf as tt, Op as u, pf as ut, xp as v, hd as vt, yp as w, q as wt, _p as x, qu as xt, wp as y, Yu as yt, Uf as z };