@livechat/platform-workflows 0.0.71 → 0.0.73

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/dist/index.js +392 -455
  2. package/dist/index.mjs +649 -720
  3. package/package.json +4 -4
package/dist/index.js CHANGED
@@ -262,7 +262,7 @@ var require_react_is_development = __commonJS({
262
262
  var ContextProvider = REACT_PROVIDER_TYPE;
263
263
  var Element = REACT_ELEMENT_TYPE;
264
264
  var ForwardRef = REACT_FORWARD_REF_TYPE;
265
- var Fragment18 = REACT_FRAGMENT_TYPE;
265
+ var Fragment14 = REACT_FRAGMENT_TYPE;
266
266
  var Lazy = REACT_LAZY_TYPE;
267
267
  var Memo = REACT_MEMO_TYPE;
268
268
  var Portal = REACT_PORTAL_TYPE;
@@ -321,7 +321,7 @@ var require_react_is_development = __commonJS({
321
321
  exports2.ContextProvider = ContextProvider;
322
322
  exports2.Element = Element;
323
323
  exports2.ForwardRef = ForwardRef;
324
- exports2.Fragment = Fragment18;
324
+ exports2.Fragment = Fragment14;
325
325
  exports2.Lazy = Lazy;
326
326
  exports2.Memo = Memo;
327
327
  exports2.Portal = Portal;
@@ -1964,22 +1964,11 @@ var WORKFLOW_TRIGGER_OUTPUT_SCHEMA = (body) => ({
1964
1964
  var import_developer_studio_api2 = require("@livechat/developer-studio-api");
1965
1965
 
1966
1966
  // src/constants/products.ts
1967
- var OTHER_PRODUCT_TYPE = {
1968
- OPENAI: "openai"
1969
- };
1970
1967
  var OTHER_TYPES = {
1971
1968
  SYSTEM: "system",
1972
1969
  SCHEDULED: "scheduled",
1973
1970
  MANUAL: "manual"
1974
1971
  };
1975
- var PRODUCT_TYPE = {
1976
- HD: "helpdesk",
1977
- LC: "livechat"
1978
- };
1979
- var PRODUCT_NAMES = {
1980
- [PRODUCT_TYPE.HD]: "HelpDesk",
1981
- [PRODUCT_TYPE.LC]: "LiveChat"
1982
- };
1983
1972
 
1984
1973
  // src/views/Flows/Definitions/Mocks/System/index.ts
1985
1974
  var systemTaskConfigs = () => ({
@@ -2519,7 +2508,6 @@ var bigCommerceTaskConfigs = () => ({
2519
2508
  customization: {
2520
2509
  provider: import_developer_studio_api3.IntegrationNames.BigCommerce,
2521
2510
  product: import_developer_studio_api3.IntegrationDisplayNames.BigCommerce,
2522
- icon: import_developer_studio_api3.IntegrationNames.BigCommerce,
2523
2511
  displayName: "Create blog post",
2524
2512
  shortDescription: "Create blog post",
2525
2513
  description: "Creates a new blog post on your site."
@@ -2644,7 +2632,6 @@ var bigCommerceTaskConfigs = () => ({
2644
2632
  customization: {
2645
2633
  provider: import_developer_studio_api3.IntegrationNames.BigCommerce,
2646
2634
  product: import_developer_studio_api3.IntegrationDisplayNames.BigCommerce,
2647
- icon: import_developer_studio_api3.IntegrationNames.BigCommerce,
2648
2635
  displayName: "Create customer",
2649
2636
  shortDescription: "Create customer",
2650
2637
  description: "Creates a new customer profile in Bigcommerce."
@@ -2679,7 +2666,6 @@ var bigCommerceTaskConfigs = () => ({
2679
2666
  customization: {
2680
2667
  provider: import_developer_studio_api3.IntegrationNames.BigCommerce,
2681
2668
  product: import_developer_studio_api3.IntegrationDisplayNames.BigCommerce,
2682
- icon: import_developer_studio_api3.IntegrationNames.BigCommerce,
2683
2669
  displayName: "Update customer",
2684
2670
  shortDescription: "Update customer",
2685
2671
  description: "Modifies the details of an existing customer in your Bigcommerce."
@@ -2712,7 +2698,6 @@ var bigCommerceTaskConfigs = () => ({
2712
2698
  customization: {
2713
2699
  provider: import_developer_studio_api3.IntegrationNames.BigCommerce,
2714
2700
  product: import_developer_studio_api3.IntegrationDisplayNames.BigCommerce,
2715
- icon: import_developer_studio_api3.IntegrationNames.BigCommerce,
2716
2701
  displayName: "Create product",
2717
2702
  shortDescription: "Create product",
2718
2703
  description: "Adds a new product to your catalog."
@@ -2744,7 +2729,6 @@ var bigCommerceTaskConfigs = () => ({
2744
2729
  customization: {
2745
2730
  provider: import_developer_studio_api3.IntegrationNames.BigCommerce,
2746
2731
  product: import_developer_studio_api3.IntegrationDisplayNames.BigCommerce,
2747
- icon: import_developer_studio_api3.IntegrationNames.BigCommerce,
2748
2732
  displayName: "Create customer address",
2749
2733
  shortDescription: "Create customer address",
2750
2734
  description: "Adds a new address to an existing customer's profile."
@@ -2791,7 +2775,6 @@ var bigCommerceTaskConfigs = () => ({
2791
2775
  customization: {
2792
2776
  provider: import_developer_studio_api3.IntegrationNames.BigCommerce,
2793
2777
  product: import_developer_studio_api3.IntegrationDisplayNames.BigCommerce,
2794
- icon: import_developer_studio_api3.IntegrationNames.BigCommerce,
2795
2778
  displayName: "Find customer",
2796
2779
  shortDescription: "Find customer",
2797
2780
  description: "Searches for an existing customer in your Bigcommerce records."
@@ -2826,7 +2809,6 @@ var bigCommerceTaskConfigs = () => ({
2826
2809
  customization: {
2827
2810
  provider: import_developer_studio_api3.IntegrationNames.BigCommerce,
2828
2811
  product: import_developer_studio_api3.IntegrationDisplayNames.BigCommerce,
2829
- icon: import_developer_studio_api3.IntegrationNames.BigCommerce,
2830
2812
  displayName: "Get customer address",
2831
2813
  shortDescription: "Get customer address",
2832
2814
  description: "Searches for an address of an existing customer."
@@ -2860,7 +2842,6 @@ var bigCommerceTaskConfigs = () => ({
2860
2842
  customization: {
2861
2843
  provider: import_developer_studio_api3.IntegrationNames.BigCommerce,
2862
2844
  product: import_developer_studio_api3.IntegrationDisplayNames.BigCommerce,
2863
- icon: import_developer_studio_api3.IntegrationNames.BigCommerce,
2864
2845
  displayName: "Get products",
2865
2846
  shortDescription: "Get products",
2866
2847
  description: "Lists all products in your store."
@@ -3061,7 +3042,6 @@ var bigcommerceTriggerConfigs = () => ({
3061
3042
  customization: {
3062
3043
  provider: import_developer_studio_api3.IntegrationNames.BigCommerce,
3063
3044
  product: import_developer_studio_api3.IntegrationDisplayNames.BigCommerce,
3064
- icon: import_developer_studio_api3.IntegrationNames.BigCommerce,
3065
3045
  displayName: "Card created",
3066
3046
  shortDescription: "Card created",
3067
3047
  description: "Triggers when a new card is created"
@@ -3087,7 +3067,6 @@ var bigcommerceTriggerConfigs = () => ({
3087
3067
  customization: {
3088
3068
  provider: import_developer_studio_api3.IntegrationNames.BigCommerce,
3089
3069
  product: import_developer_studio_api3.IntegrationDisplayNames.BigCommerce,
3090
- icon: import_developer_studio_api3.IntegrationNames.BigCommerce,
3091
3070
  displayName: "Card updated",
3092
3071
  shortDescription: "Card updated",
3093
3072
  description: "Triggers when a card is updated"
@@ -3113,7 +3092,6 @@ var bigcommerceTriggerConfigs = () => ({
3113
3092
  customization: {
3114
3093
  provider: import_developer_studio_api3.IntegrationNames.BigCommerce,
3115
3094
  product: import_developer_studio_api3.IntegrationDisplayNames.BigCommerce,
3116
- icon: import_developer_studio_api3.IntegrationNames.BigCommerce,
3117
3095
  displayName: "Order created",
3118
3096
  shortDescription: "Order created",
3119
3097
  description: "Triggers when a new order is created"
@@ -3139,7 +3117,6 @@ var bigcommerceTriggerConfigs = () => ({
3139
3117
  customization: {
3140
3118
  provider: import_developer_studio_api3.IntegrationNames.BigCommerce,
3141
3119
  product: import_developer_studio_api3.IntegrationDisplayNames.BigCommerce,
3142
- icon: import_developer_studio_api3.IntegrationNames.BigCommerce,
3143
3120
  displayName: "Order updated",
3144
3121
  shortDescription: "Order updated",
3145
3122
  description: "Triggers when a order is updated"
@@ -3165,7 +3142,6 @@ var bigcommerceTriggerConfigs = () => ({
3165
3142
  customization: {
3166
3143
  provider: import_developer_studio_api3.IntegrationNames.BigCommerce,
3167
3144
  product: import_developer_studio_api3.IntegrationDisplayNames.BigCommerce,
3168
- icon: import_developer_studio_api3.IntegrationNames.BigCommerce,
3169
3145
  displayName: "Product created",
3170
3146
  shortDescription: "Product created",
3171
3147
  description: "Triggers when a new product is created"
@@ -3191,7 +3167,6 @@ var bigcommerceTriggerConfigs = () => ({
3191
3167
  customization: {
3192
3168
  provider: import_developer_studio_api3.IntegrationNames.BigCommerce,
3193
3169
  product: import_developer_studio_api3.IntegrationDisplayNames.BigCommerce,
3194
- icon: import_developer_studio_api3.IntegrationNames.BigCommerce,
3195
3170
  displayName: "Product updated",
3196
3171
  shortDescription: "Product updated",
3197
3172
  description: "Triggers when a product is updated"
@@ -3531,7 +3506,6 @@ var helpdeskTaskConfigs = () => ({
3531
3506
  customization: {
3532
3507
  provider: import_developer_studio_api4.IntegrationNames.HelpDesk,
3533
3508
  product: import_developer_studio_api4.IntegrationDisplayNames.HelpDesk,
3534
- icon: PRODUCT_TYPE.HD,
3535
3509
  displayName: "Add followers to ticket",
3536
3510
  shortDescription: "Add followers to ticket",
3537
3511
  description: "Adds followers to an existing ticket."
@@ -3576,7 +3550,6 @@ var helpdeskTaskConfigs = () => ({
3576
3550
  customization: {
3577
3551
  provider: import_developer_studio_api4.IntegrationNames.HelpDesk,
3578
3552
  product: import_developer_studio_api4.IntegrationDisplayNames.HelpDesk,
3579
- icon: PRODUCT_TYPE.HD,
3580
3553
  displayName: "Add tags to ticket",
3581
3554
  shortDescription: "Add tags to ticket",
3582
3555
  description: "Adds tags to an existing ticket."
@@ -3620,7 +3593,6 @@ var helpdeskTaskConfigs = () => ({
3620
3593
  customization: {
3621
3594
  provider: import_developer_studio_api4.IntegrationNames.HelpDesk,
3622
3595
  product: import_developer_studio_api4.IntegrationDisplayNames.HelpDesk,
3623
- icon: PRODUCT_TYPE.HD,
3624
3596
  displayName: "Create ticket",
3625
3597
  shortDescription: "Create a ticket",
3626
3598
  description: "Creates a new ticket."
@@ -3643,7 +3615,6 @@ var helpdeskTaskConfigs = () => ({
3643
3615
  customization: {
3644
3616
  provider: import_developer_studio_api4.IntegrationNames.HelpDesk,
3645
3617
  product: import_developer_studio_api4.IntegrationDisplayNames.HelpDesk,
3646
- icon: PRODUCT_TYPE.HD,
3647
3618
  displayName: "Create transaction",
3648
3619
  shortDescription: "Creates transaction",
3649
3620
  description: "Task required to allow uploading attachments to a ticket."
@@ -3730,7 +3701,6 @@ var helpdeskTaskConfigs = () => ({
3730
3701
  customization: {
3731
3702
  provider: import_developer_studio_api4.IntegrationNames.HelpDesk,
3732
3703
  product: import_developer_studio_api4.IntegrationDisplayNames.HelpDesk,
3733
- icon: PRODUCT_TYPE.HD,
3734
3704
  displayName: "Find ticket",
3735
3705
  shortDescription: "Find ticket",
3736
3706
  description: "Finds an existing ticket based on a ticket ID."
@@ -3759,7 +3729,6 @@ var helpdeskTaskConfigs = () => ({
3759
3729
  customization: {
3760
3730
  provider: import_developer_studio_api4.IntegrationNames.HelpDesk,
3761
3731
  product: import_developer_studio_api4.IntegrationDisplayNames.HelpDesk,
3762
- icon: PRODUCT_TYPE.HD,
3763
3732
  displayName: "Update ticket",
3764
3733
  shortDescription: "Update ticket",
3765
3734
  description: "Modifies any of the selected ticket properties, such as ticket subject, priority, or tags, and allows for sending replies."
@@ -3923,7 +3892,6 @@ var helpDeskTriggerConfigs = () => ({
3923
3892
  customization: {
3924
3893
  provider: import_developer_studio_api4.IntegrationNames.HelpDesk,
3925
3894
  product: import_developer_studio_api4.IntegrationDisplayNames.HelpDesk,
3926
- icon: PRODUCT_TYPE.HD,
3927
3895
  displayName: "Ticket created",
3928
3896
  shortDescription: "Ticket created",
3929
3897
  description: "Triggers when a new ticket is created."
@@ -3939,7 +3907,6 @@ var helpDeskTriggerConfigs = () => ({
3939
3907
  customization: {
3940
3908
  provider: import_developer_studio_api4.IntegrationNames.HelpDesk,
3941
3909
  product: import_developer_studio_api4.IntegrationDisplayNames.HelpDesk,
3942
- icon: PRODUCT_TYPE.HD,
3943
3910
  displayName: "Ticket updated",
3944
3911
  shortDescription: "Ticket updated",
3945
3912
  description: "Triggers when a ticket is updated."
@@ -3955,7 +3922,6 @@ var helpDeskTriggerConfigs = () => ({
3955
3922
  customization: {
3956
3923
  provider: import_developer_studio_api4.IntegrationNames.HelpDesk,
3957
3924
  product: import_developer_studio_api4.IntegrationDisplayNames.HelpDesk,
3958
- icon: PRODUCT_TYPE.HD,
3959
3925
  displayName: "Ticket status changed",
3960
3926
  shortDescription: "Ticket status changed",
3961
3927
  description: "Triggers when a ticket status has changed."
@@ -3971,7 +3937,6 @@ var helpDeskTriggerConfigs = () => ({
3971
3937
  customization: {
3972
3938
  provider: import_developer_studio_api4.IntegrationNames.HelpDesk,
3973
3939
  product: import_developer_studio_api4.IntegrationDisplayNames.HelpDesk,
3974
- icon: PRODUCT_TYPE.HD,
3975
3940
  displayName: "Ticket priority changed",
3976
3941
  shortDescription: "Ticket priority changed",
3977
3942
  description: "Triggers when a ticket priority has changed."
@@ -3987,7 +3952,6 @@ var helpDeskTriggerConfigs = () => ({
3987
3952
  customization: {
3988
3953
  provider: import_developer_studio_api4.IntegrationNames.HelpDesk,
3989
3954
  product: import_developer_studio_api4.IntegrationDisplayNames.HelpDesk,
3990
- icon: PRODUCT_TYPE.HD,
3991
3955
  displayName: "Ticket tags changed",
3992
3956
  shortDescription: "Ticket tags changed",
3993
3957
  description: "Triggers when a ticket tags has changed."
@@ -4003,7 +3967,6 @@ var helpDeskTriggerConfigs = () => ({
4003
3967
  customization: {
4004
3968
  provider: import_developer_studio_api4.IntegrationNames.HelpDesk,
4005
3969
  product: import_developer_studio_api4.IntegrationDisplayNames.HelpDesk,
4006
- icon: PRODUCT_TYPE.HD,
4007
3970
  displayName: "Ticket followers changed",
4008
3971
  shortDescription: "Ticket followers changed",
4009
3972
  description: "Triggers when a ticket followers has changed."
@@ -4019,7 +3982,6 @@ var helpDeskTriggerConfigs = () => ({
4019
3982
  customization: {
4020
3983
  provider: import_developer_studio_api4.IntegrationNames.HelpDesk,
4021
3984
  product: import_developer_studio_api4.IntegrationDisplayNames.HelpDesk,
4022
- icon: PRODUCT_TYPE.HD,
4023
3985
  displayName: "Ticket assignment changed",
4024
3986
  shortDescription: "Ticket assignment changed",
4025
3987
  description: "Triggers when a ticket assignment has changed."
@@ -4035,7 +3997,6 @@ var helpDeskTriggerConfigs = () => ({
4035
3997
  customization: {
4036
3998
  provider: import_developer_studio_api4.IntegrationNames.HelpDesk,
4037
3999
  product: import_developer_studio_api4.IntegrationDisplayNames.HelpDesk,
4038
- icon: PRODUCT_TYPE.HD,
4039
4000
  displayName: "Ticket message added",
4040
4001
  shortDescription: "Ticket message added",
4041
4002
  description: "Triggers when a messages was added to ticket."
@@ -4189,7 +4150,6 @@ var hubspotTaskConfigs = () => ({
4189
4150
  customization: {
4190
4151
  provider: import_developer_studio_api5.IntegrationNames.HubSpot,
4191
4152
  product: import_developer_studio_api5.IntegrationDisplayNames.HubSpot,
4192
- icon: import_developer_studio_api5.IntegrationNames.HubSpot,
4193
4153
  displayName: "Create contact",
4194
4154
  shortDescription: "Create contact",
4195
4155
  description: "Creates a new HubSpot contact."
@@ -4214,7 +4174,6 @@ var hubspotTaskConfigs = () => ({
4214
4174
  // customization: {
4215
4175
  // provider: IntegrationNames.HubSpot,
4216
4176
  // product: IntegrationDisplayNames.HubSpot,
4217
- // icon: IntegrationNames.HubSpot,
4218
4177
  // displayName: 'Delete contact',
4219
4178
  // shortDescription: 'Delete contact',
4220
4179
  // description: 'Deletes existing HubSpot contact.',
@@ -4239,7 +4198,6 @@ var hubspotTaskConfigs = () => ({
4239
4198
  customization: {
4240
4199
  provider: import_developer_studio_api5.IntegrationNames.HubSpot,
4241
4200
  product: import_developer_studio_api5.IntegrationDisplayNames.HubSpot,
4242
- icon: import_developer_studio_api5.IntegrationNames.HubSpot,
4243
4201
  displayName: "Get contact",
4244
4202
  shortDescription: "Get contact",
4245
4203
  description: "Pulls information about an existing HubSpot contact."
@@ -4270,7 +4228,6 @@ var hubspotTaskConfigs = () => ({
4270
4228
  customization: {
4271
4229
  provider: import_developer_studio_api5.IntegrationNames.HubSpot,
4272
4230
  product: import_developer_studio_api5.IntegrationDisplayNames.HubSpot,
4273
- icon: import_developer_studio_api5.IntegrationNames.HubSpot,
4274
4231
  displayName: "Update contact",
4275
4232
  shortDescription: "Update contact",
4276
4233
  description: "Updates an existing HubSpot contact."
@@ -4393,7 +4350,6 @@ var hubspotTriggerConfigs = () => ({
4393
4350
  customization: {
4394
4351
  provider: import_developer_studio_api5.IntegrationNames.HubSpot,
4395
4352
  product: import_developer_studio_api5.IntegrationDisplayNames.HubSpot,
4396
- icon: import_developer_studio_api5.IntegrationNames.HubSpot,
4397
4353
  displayName: "Contact created",
4398
4354
  shortDescription: "Contact created",
4399
4355
  description: "Triggers when a new contact is created"
@@ -4412,7 +4368,6 @@ var hubspotTriggerConfigs = () => ({
4412
4368
  customization: {
4413
4369
  provider: import_developer_studio_api5.IntegrationNames.HubSpot,
4414
4370
  product: import_developer_studio_api5.IntegrationDisplayNames.HubSpot,
4415
- icon: import_developer_studio_api5.IntegrationNames.HubSpot,
4416
4371
  displayName: "Contact deleted",
4417
4372
  shortDescription: "Contact deleted",
4418
4373
  description: "Triggers when a contact is deleted"
@@ -5032,7 +4987,6 @@ var livechatTaskConfigs = () => ({
5032
4987
  customization: {
5033
4988
  provider: import_developer_studio_api6.IntegrationNames.LiveChat,
5034
4989
  product: import_developer_studio_api6.IntegrationDisplayNames.LiveChat,
5035
- icon: import_developer_studio_api6.IntegrationNames.LiveChat,
5036
4990
  displayName: "Transfer chat",
5037
4991
  shortDescription: "Transfer chat",
5038
4992
  description: "Transfers chat to appropriate agents or groups."
@@ -5075,7 +5029,6 @@ var livechatTaskConfigs = () => ({
5075
5029
  customization: {
5076
5030
  provider: import_developer_studio_api6.IntegrationNames.LiveChat,
5077
5031
  product: import_developer_studio_api6.IntegrationDisplayNames.LiveChat,
5078
- icon: PRODUCT_TYPE.LC,
5079
5032
  displayName: "Tag chat",
5080
5033
  shortDescription: "Tag chat",
5081
5034
  description: "Tags a chat in LiveChat."
@@ -5113,7 +5066,6 @@ var livechatTaskConfigs = () => ({
5113
5066
  customization: {
5114
5067
  provider: import_developer_studio_api6.IntegrationNames.LiveChat,
5115
5068
  product: import_developer_studio_api6.IntegrationDisplayNames.LiveChat,
5116
- icon: PRODUCT_TYPE.LC,
5117
5069
  displayName: "Chat transcript",
5118
5070
  shortDescription: "Get chat transcript",
5119
5071
  description: "Gets the transcript of a chat in LiveChat."
@@ -5164,7 +5116,6 @@ var livechatTaskConfigs = () => ({
5164
5116
  customization: {
5165
5117
  provider: import_developer_studio_api6.IntegrationNames.LiveChat,
5166
5118
  product: import_developer_studio_api6.IntegrationDisplayNames.LiveChat,
5167
- icon: PRODUCT_TYPE.LC,
5168
5119
  displayName: "Send message",
5169
5120
  shortDescription: "Send message",
5170
5121
  description: "Sends a message in a currently ongoing chat."
@@ -5205,7 +5156,6 @@ var livechatTaskConfigs = () => ({
5205
5156
  customization: {
5206
5157
  provider: import_developer_studio_api6.IntegrationNames.LiveChat,
5207
5158
  product: import_developer_studio_api6.IntegrationDisplayNames.LiveChat,
5208
- icon: PRODUCT_TYPE.LC,
5209
5159
  displayName: "Supervise chat",
5210
5160
  shortDescription: "Supervise chat",
5211
5161
  description: "Supervises LiveChat chat. Required to send private messages to agents in the chat."
@@ -5346,7 +5296,6 @@ var livechatTriggerConfigs = () => ({
5346
5296
  customization: {
5347
5297
  provider: import_developer_studio_api6.IntegrationNames.LiveChat,
5348
5298
  product: import_developer_studio_api6.IntegrationDisplayNames.LiveChat,
5349
- icon: PRODUCT_TYPE.LC,
5350
5299
  displayName: "Chat started",
5351
5300
  shortDescription: "Chat started",
5352
5301
  description: "Triggers when a new chat is initiated."
@@ -5362,7 +5311,6 @@ var livechatTriggerConfigs = () => ({
5362
5311
  customization: {
5363
5312
  provider: import_developer_studio_api6.IntegrationNames.LiveChat,
5364
5313
  product: import_developer_studio_api6.IntegrationDisplayNames.LiveChat,
5365
- icon: PRODUCT_TYPE.LC,
5366
5314
  displayName: "Agent assigned",
5367
5315
  shortDescription: "Agent assigned",
5368
5316
  description: "Triggers when an agent is assigned to a specific chat."
@@ -5378,7 +5326,6 @@ var livechatTriggerConfigs = () => ({
5378
5326
  customization: {
5379
5327
  provider: import_developer_studio_api6.IntegrationNames.LiveChat,
5380
5328
  product: import_developer_studio_api6.IntegrationDisplayNames.LiveChat,
5381
- icon: PRODUCT_TYPE.LC,
5382
5329
  displayName: "Chat rated",
5383
5330
  shortDescription: "Chat rated",
5384
5331
  description: "Triggers when a chat receives a selected rating."
@@ -5409,7 +5356,6 @@ var livechatTriggerConfigs = () => ({
5409
5356
  customization: {
5410
5357
  provider: import_developer_studio_api6.IntegrationNames.LiveChat,
5411
5358
  product: import_developer_studio_api6.IntegrationDisplayNames.LiveChat,
5412
- icon: PRODUCT_TYPE.LC,
5413
5359
  displayName: "Specific keywords in chat",
5414
5360
  shortDescription: "Specific keywords in chat",
5415
5361
  description: "Triggers when specific keywords are sent in the chat."
@@ -5426,7 +5372,6 @@ var livechatTriggerConfigs = () => ({
5426
5372
  customization: {
5427
5373
  provider: import_developer_studio_api6.IntegrationNames.LiveChat,
5428
5374
  product: import_developer_studio_api6.IntegrationDisplayNames.LiveChat,
5429
- icon: PRODUCT_TYPE.LC,
5430
5375
  displayName: "Visitor leaves chat",
5431
5376
  shortDescription: "Visitor leaves chat",
5432
5377
  description: "Triggers when a visitor exits a chat before completion."
@@ -5442,7 +5387,6 @@ var livechatTriggerConfigs = () => ({
5442
5387
  customization: {
5443
5388
  provider: import_developer_studio_api6.IntegrationNames.LiveChat,
5444
5389
  product: import_developer_studio_api6.IntegrationDisplayNames.LiveChat,
5445
- icon: PRODUCT_TYPE.LC,
5446
5390
  displayName: "Chat ended",
5447
5391
  shortDescription: "Chat ended",
5448
5392
  description: "Triggers when a chat is finished."
@@ -5458,7 +5402,6 @@ var livechatTriggerConfigs = () => ({
5458
5402
  customization: {
5459
5403
  provider: import_developer_studio_api6.IntegrationNames.LiveChat,
5460
5404
  product: import_developer_studio_api6.IntegrationDisplayNames.LiveChat,
5461
- icon: PRODUCT_TYPE.LC,
5462
5405
  displayName: "Chat transferred",
5463
5406
  shortDescription: "Chat transferred",
5464
5407
  description: "Triggers when a chat is transferred between agents or groups."
@@ -5474,7 +5417,6 @@ var livechatTriggerConfigs = () => ({
5474
5417
  customization: {
5475
5418
  provider: import_developer_studio_api6.IntegrationNames.LiveChat,
5476
5419
  product: import_developer_studio_api6.IntegrationDisplayNames.LiveChat,
5477
- icon: PRODUCT_TYPE.LC,
5478
5420
  displayName: "Chat commented",
5479
5421
  shortDescription: "Chat commented",
5480
5422
  description: "Triggers when a chat is commented."
@@ -5490,7 +5432,6 @@ var livechatTriggerConfigs = () => ({
5490
5432
  customization: {
5491
5433
  provider: import_developer_studio_api6.IntegrationNames.LiveChat,
5492
5434
  product: import_developer_studio_api6.IntegrationDisplayNames.LiveChat,
5493
- icon: PRODUCT_TYPE.LC,
5494
5435
  displayName: "Chat tagged",
5495
5436
  shortDescription: "Chat tagged",
5496
5437
  description: "Triggers when a chat is tagged."
@@ -5810,7 +5751,6 @@ var mailchimpTaskConfigs = () => ({
5810
5751
  customization: {
5811
5752
  provider: import_developer_studio_api7.IntegrationNames.Mailchimp,
5812
5753
  product: import_developer_studio_api7.IntegrationDisplayNames.Mailchimp,
5813
- icon: import_developer_studio_api7.IntegrationNames.Mailchimp,
5814
5754
  displayName: "Add subscriber",
5815
5755
  shortDescription: "Add subscriber",
5816
5756
  description: "Adds a subscriber in Mailchimp."
@@ -5855,7 +5795,6 @@ var mailchimpTaskConfigs = () => ({
5855
5795
  customization: {
5856
5796
  provider: import_developer_studio_api7.IntegrationNames.Mailchimp,
5857
5797
  product: import_developer_studio_api7.IntegrationDisplayNames.Mailchimp,
5858
- icon: import_developer_studio_api7.IntegrationNames.Mailchimp,
5859
5798
  displayName: "Add campaign",
5860
5799
  shortDescription: "Add campaign",
5861
5800
  description: "Creates a new campaign in Mailchimp."
@@ -5902,7 +5841,6 @@ var mailchimpTaskConfigs = () => ({
5902
5841
  customization: {
5903
5842
  provider: import_developer_studio_api7.IntegrationNames.Mailchimp,
5904
5843
  product: import_developer_studio_api7.IntegrationDisplayNames.Mailchimp,
5905
- icon: import_developer_studio_api7.IntegrationNames.Mailchimp,
5906
5844
  displayName: "Send campaign",
5907
5845
  shortDescription: "Send campaign",
5908
5846
  description: "Sends a pre-created campaign in Mailchimp."
@@ -5935,7 +5873,6 @@ var mailchimpTaskConfigs = () => ({
5935
5873
  customization: {
5936
5874
  provider: import_developer_studio_api7.IntegrationNames.Mailchimp,
5937
5875
  product: import_developer_studio_api7.IntegrationDisplayNames.Mailchimp,
5938
- icon: import_developer_studio_api7.IntegrationNames.Mailchimp,
5939
5876
  displayName: "Add or update subscriber",
5940
5877
  shortDescription: "Add or update subscriber",
5941
5878
  description: "Adds or updates a subscriber in Mailchimp."
@@ -5985,7 +5922,6 @@ var mailchimpTaskConfigs = () => ({
5985
5922
  customization: {
5986
5923
  provider: import_developer_studio_api7.IntegrationNames.Mailchimp,
5987
5924
  product: import_developer_studio_api7.IntegrationDisplayNames.Mailchimp,
5988
- icon: import_developer_studio_api7.IntegrationNames.Mailchimp,
5989
5925
  displayName: "Update subscriber",
5990
5926
  shortDescription: "Update subscriber",
5991
5927
  description: "Updates subscriber details in Mailchimp."
@@ -6035,7 +5971,6 @@ var mailchimpTaskConfigs = () => ({
6035
5971
  customization: {
6036
5972
  provider: import_developer_studio_api7.IntegrationNames.Mailchimp,
6037
5973
  product: import_developer_studio_api7.IntegrationDisplayNames.Mailchimp,
6038
- icon: import_developer_studio_api7.IntegrationNames.Mailchimp,
6039
5974
  displayName: "Archive subscriber",
6040
5975
  shortDescription: "Archive subscriber",
6041
5976
  description: "Archives a subscriber in Mailchimp."
@@ -6072,7 +6007,6 @@ var mailchimpTaskConfigs = () => ({
6072
6007
  customization: {
6073
6008
  provider: import_developer_studio_api7.IntegrationNames.Mailchimp,
6074
6009
  product: import_developer_studio_api7.IntegrationDisplayNames.Mailchimp,
6075
- icon: import_developer_studio_api7.IntegrationNames.Mailchimp,
6076
6010
  displayName: "Delete subscriber",
6077
6011
  shortDescription: "Delete subscriber",
6078
6012
  description: "Deletes a subscriber from Mailchimp."
@@ -6109,7 +6043,6 @@ var mailchimpTaskConfigs = () => ({
6109
6043
  customization: {
6110
6044
  provider: import_developer_studio_api7.IntegrationNames.Mailchimp,
6111
6045
  product: import_developer_studio_api7.IntegrationDisplayNames.Mailchimp,
6112
- icon: import_developer_studio_api7.IntegrationNames.Mailchimp,
6113
6046
  displayName: "Add subscriber tag",
6114
6047
  shortDescription: "Add subscriber tag",
6115
6048
  description: "Adds a tag to a subscriber in Mailchimp."
@@ -6151,7 +6084,6 @@ var mailchimpTaskConfigs = () => ({
6151
6084
  customization: {
6152
6085
  provider: import_developer_studio_api7.IntegrationNames.Mailchimp,
6153
6086
  product: import_developer_studio_api7.IntegrationDisplayNames.Mailchimp,
6154
- icon: import_developer_studio_api7.IntegrationNames.Mailchimp,
6155
6087
  displayName: "Add subscriber event",
6156
6088
  shortDescription: "Add subscriber event",
6157
6089
  description: "Adds event to subscriber in Mailchimp."
@@ -6209,7 +6141,6 @@ var mailchimpTaskConfigs = () => ({
6209
6141
  customization: {
6210
6142
  provider: import_developer_studio_api7.IntegrationNames.Mailchimp,
6211
6143
  product: import_developer_studio_api7.IntegrationDisplayNames.Mailchimp,
6212
- icon: import_developer_studio_api7.IntegrationNames.Mailchimp,
6213
6144
  displayName: "Add note to subscriber",
6214
6145
  shortDescription: "Add note to subscriber",
6215
6146
  description: "Adds a custom note to a subscriber in Mailchimp."
@@ -6251,7 +6182,6 @@ var mailchimpTaskConfigs = () => ({
6251
6182
  customization: {
6252
6183
  provider: import_developer_studio_api7.IntegrationNames.Mailchimp,
6253
6184
  product: import_developer_studio_api7.IntegrationDisplayNames.Mailchimp,
6254
- icon: import_developer_studio_api7.IntegrationNames.Mailchimp,
6255
6185
  displayName: "Delete tag from subscriber",
6256
6186
  shortDescription: "Delete tag from subscriber",
6257
6187
  description: "Deletes a subscriber from a tag in Mailchimp."
@@ -6292,7 +6222,6 @@ var mailchimpTaskConfigs = () => ({
6292
6222
  customization: {
6293
6223
  provider: import_developer_studio_api7.IntegrationNames.Mailchimp,
6294
6224
  product: import_developer_studio_api7.IntegrationDisplayNames.Mailchimp,
6295
- icon: import_developer_studio_api7.IntegrationNames.Mailchimp,
6296
6225
  displayName: "Get subscriber's tags",
6297
6226
  shortDescription: "Get subscriber's tags",
6298
6227
  description: "Pulls subscriber's tags from Mailchimp."
@@ -6359,7 +6288,6 @@ var mailchimpTaskConfigs = () => ({
6359
6288
  customization: {
6360
6289
  provider: import_developer_studio_api7.IntegrationNames.Mailchimp,
6361
6290
  product: import_developer_studio_api7.IntegrationDisplayNames.Mailchimp,
6362
- icon: import_developer_studio_api7.IntegrationNames.Mailchimp,
6363
6291
  displayName: "Get subscriber",
6364
6292
  shortDescription: "Get subscriber",
6365
6293
  description: "Pulls subscriber information from Mailchimp."
@@ -6536,7 +6464,6 @@ var mailchimpTaskConfigs = () => ({
6536
6464
  customization: {
6537
6465
  provider: import_developer_studio_api7.IntegrationNames.Mailchimp,
6538
6466
  product: import_developer_studio_api7.IntegrationDisplayNames.Mailchimp,
6539
- icon: import_developer_studio_api7.IntegrationNames.Mailchimp,
6540
6467
  displayName: "Get subscribers",
6541
6468
  shortDescription: "Get subscribers",
6542
6469
  description: "Pulls the subscribers list from a specific Mailchimp audience."
@@ -6714,7 +6641,6 @@ var mailchimpTaskConfigs = () => ({
6714
6641
  customization: {
6715
6642
  provider: import_developer_studio_api7.IntegrationNames.Mailchimp,
6716
6643
  product: import_developer_studio_api7.IntegrationDisplayNames.Mailchimp,
6717
- icon: import_developer_studio_api7.IntegrationNames.Mailchimp,
6718
6644
  displayName: "Find campaign",
6719
6645
  shortDescription: "Find campaign",
6720
6646
  description: "Finds a campaign in Mailchimp based on the campaign ID."
@@ -7190,7 +7116,6 @@ var mailchimpTriggerConfigs = () => ({
7190
7116
  customization: {
7191
7117
  provider: import_developer_studio_api7.IntegrationNames.Mailchimp,
7192
7118
  product: import_developer_studio_api7.IntegrationDisplayNames.Mailchimp,
7193
- icon: import_developer_studio_api7.IntegrationNames.Mailchimp,
7194
7119
  displayName: "New subscriber",
7195
7120
  shortDescription: "New subscriber",
7196
7121
  description: "Triggers when a new subscriber is added in Mailchimp."
@@ -7217,7 +7142,6 @@ var mailchimpTriggerConfigs = () => ({
7217
7142
  customization: {
7218
7143
  provider: import_developer_studio_api7.IntegrationNames.Mailchimp,
7219
7144
  product: import_developer_studio_api7.IntegrationDisplayNames.Mailchimp,
7220
- icon: import_developer_studio_api7.IntegrationNames.Mailchimp,
7221
7145
  displayName: "New unsubscriber",
7222
7146
  shortDescription: "New unsubscriber",
7223
7147
  description: "Triggers when a subscriber unsubscribes in Mailchimp."
@@ -7287,9 +7211,8 @@ var openAiTaskConfigs = () => ({
7287
7211
  "workflowsApiUr"
7288
7212
  )}/functions/extract-order-from-text`,
7289
7213
  customization: {
7290
- provider: OTHER_PRODUCT_TYPE.OPENAI,
7291
- product: "OpenAI",
7292
- icon: OTHER_PRODUCT_TYPE.OPENAI,
7214
+ provider: import_developer_studio_api8.IntegrationNames.OpenAI,
7215
+ product: import_developer_studio_api8.IntegrationDisplayNames.OpenAI,
7293
7216
  displayName: "Extract order",
7294
7217
  shortDescription: "Extract order",
7295
7218
  description: "Extracts order information from the provided text source."
@@ -7378,9 +7301,8 @@ var openAiTaskConfigs = () => ({
7378
7301
  "workflowsApiUr"
7379
7302
  )}/functions/analyze-text-sentiment`,
7380
7303
  customization: {
7381
- provider: OTHER_PRODUCT_TYPE.OPENAI,
7382
- product: "OpenAI",
7383
- icon: OTHER_PRODUCT_TYPE.OPENAI,
7304
+ provider: import_developer_studio_api8.IntegrationNames.OpenAI,
7305
+ product: import_developer_studio_api8.IntegrationDisplayNames.OpenAI,
7384
7306
  displayName: "Text sentiment",
7385
7307
  shortDescription: "Text sentiment",
7386
7308
  description: "Analyzes text for positive, negative, or neutral sentiment."
@@ -7413,9 +7335,8 @@ var openAiTaskConfigs = () => ({
7413
7335
  type: import_developer_studio_api8.WorkflowDefinitionTaskType.http,
7414
7336
  url: `${getWorkflowsEnv("workflowsApiUr")}/functions/summarize-text`,
7415
7337
  customization: {
7416
- provider: OTHER_PRODUCT_TYPE.OPENAI,
7417
- product: "OpenAI",
7418
- icon: OTHER_PRODUCT_TYPE.OPENAI,
7338
+ provider: import_developer_studio_api8.IntegrationNames.OpenAI,
7339
+ product: import_developer_studio_api8.IntegrationDisplayNames.OpenAI,
7419
7340
  displayName: "Summarize text",
7420
7341
  shortDescription: "Summarize text",
7421
7342
  description: "Summarizes long pieces of text into shorter and more concise versions."
@@ -7448,9 +7369,8 @@ var openAiTaskConfigs = () => ({
7448
7369
  type: import_developer_studio_api8.WorkflowDefinitionTaskType.http,
7449
7370
  url: `${getWorkflowsEnv("workflowsApiUr")}/functions/moderate-text`,
7450
7371
  customization: {
7451
- provider: OTHER_PRODUCT_TYPE.OPENAI,
7452
- product: "OpenAI",
7453
- icon: OTHER_PRODUCT_TYPE.OPENAI,
7372
+ provider: import_developer_studio_api8.IntegrationNames.OpenAI,
7373
+ product: import_developer_studio_api8.IntegrationDisplayNames.OpenAI,
7454
7374
  displayName: "Check moderation",
7455
7375
  shortDescription: "Check moderation",
7456
7376
  description: "Uses OpenAI's moderation tool to check for hate speech, self-harm, sexual content, violence, and more."
@@ -7482,9 +7402,8 @@ var openAiTaskConfigs = () => ({
7482
7402
  type: import_developer_studio_api8.WorkflowDefinitionTaskType.http,
7483
7403
  url: `${getWorkflowsEnv("workflowsApiUr")}/functions/categorize-text`,
7484
7404
  customization: {
7485
- provider: OTHER_PRODUCT_TYPE.OPENAI,
7486
- product: "OpenAI",
7487
- icon: OTHER_PRODUCT_TYPE.OPENAI,
7405
+ provider: import_developer_studio_api8.IntegrationNames.OpenAI,
7406
+ product: import_developer_studio_api8.IntegrationDisplayNames.OpenAI,
7488
7407
  displayName: "Categorize text",
7489
7408
  shortDescription: "Categorize text",
7490
7409
  description: "Categorizes provided text into categories predefined by the user."
@@ -8044,7 +7963,6 @@ var shopifyTaskConfigs = () => ({
8044
7963
  customization: {
8045
7964
  provider: import_developer_studio_api9.IntegrationNames.Shopify,
8046
7965
  product: import_developer_studio_api9.IntegrationDisplayNames.Shopify,
8047
- icon: import_developer_studio_api9.IntegrationNames.Shopify,
8048
7966
  displayName: "Create customer",
8049
7967
  shortDescription: "Create customer",
8050
7968
  description: "Creates a new customer in your Shopify account."
@@ -8068,7 +7986,6 @@ var shopifyTaskConfigs = () => ({
8068
7986
  customization: {
8069
7987
  provider: import_developer_studio_api9.IntegrationNames.Shopify,
8070
7988
  product: import_developer_studio_api9.IntegrationDisplayNames.Shopify,
8071
- icon: import_developer_studio_api9.IntegrationNames.Shopify,
8072
7989
  displayName: "Create order",
8073
7990
  shortDescription: "Create order",
8074
7991
  description: "Creates a new order."
@@ -8093,7 +8010,6 @@ var shopifyTaskConfigs = () => ({
8093
8010
  customization: {
8094
8011
  provider: import_developer_studio_api9.IntegrationNames.Shopify,
8095
8012
  product: import_developer_studio_api9.IntegrationDisplayNames.Shopify,
8096
- icon: import_developer_studio_api9.IntegrationNames.Shopify,
8097
8013
  displayName: "Create draft order",
8098
8014
  shortDescription: "Create draft order",
8099
8015
  description: "Creates a new draft order on behalf of the customer."
@@ -8118,7 +8034,6 @@ var shopifyTaskConfigs = () => ({
8118
8034
  customization: {
8119
8035
  provider: import_developer_studio_api9.IntegrationNames.Shopify,
8120
8036
  product: import_developer_studio_api9.IntegrationDisplayNames.Shopify,
8121
- icon: import_developer_studio_api9.IntegrationNames.Shopify,
8122
8037
  displayName: "Create product",
8123
8038
  shortDescription: "Create product",
8124
8039
  description: "Adds a new product to your Shopify catalog."
@@ -8143,7 +8058,6 @@ var shopifyTaskConfigs = () => ({
8143
8058
  customization: {
8144
8059
  provider: import_developer_studio_api9.IntegrationNames.Shopify,
8145
8060
  product: import_developer_studio_api9.IntegrationDisplayNames.Shopify,
8146
- icon: import_developer_studio_api9.IntegrationNames.Shopify,
8147
8061
  displayName: "Create product variant",
8148
8062
  shortDescription: "Create product variant",
8149
8063
  description: "Creates a new variation for an existing product (e.g., different size, color)."
@@ -8166,7 +8080,6 @@ var shopifyTaskConfigs = () => ({
8166
8080
  customization: {
8167
8081
  provider: import_developer_studio_api9.IntegrationNames.Shopify,
8168
8082
  product: import_developer_studio_api9.IntegrationDisplayNames.Shopify,
8169
- icon: import_developer_studio_api9.IntegrationNames.Shopify,
8170
8083
  displayName: "Get customer",
8171
8084
  shortDescription: "Get customer",
8172
8085
  description: "Pulls information about a specific customer by email."
@@ -8197,7 +8110,6 @@ var shopifyTaskConfigs = () => ({
8197
8110
  customization: {
8198
8111
  provider: import_developer_studio_api9.IntegrationNames.Shopify,
8199
8112
  product: import_developer_studio_api9.IntegrationDisplayNames.Shopify,
8200
- icon: import_developer_studio_api9.IntegrationNames.Shopify,
8201
8113
  displayName: "Get customer orders",
8202
8114
  shortDescription: "Get customer orders",
8203
8115
  description: "Pulls customer's orders by email."
@@ -8231,7 +8143,6 @@ var shopifyTaskConfigs = () => ({
8231
8143
  customization: {
8232
8144
  provider: import_developer_studio_api9.IntegrationNames.Shopify,
8233
8145
  product: import_developer_studio_api9.IntegrationDisplayNames.Shopify,
8234
- icon: import_developer_studio_api9.IntegrationNames.Shopify,
8235
8146
  displayName: "Get customer order",
8236
8147
  shortDescription: "Get customer last order",
8237
8148
  description: "Finds the most recent order of a customer."
@@ -8260,7 +8171,6 @@ var shopifyTaskConfigs = () => ({
8260
8171
  customization: {
8261
8172
  provider: import_developer_studio_api9.IntegrationNames.Shopify,
8262
8173
  product: import_developer_studio_api9.IntegrationDisplayNames.Shopify,
8263
- icon: import_developer_studio_api9.IntegrationNames.Shopify,
8264
8174
  displayName: "Get product",
8265
8175
  shortDescription: "Get product",
8266
8176
  description: "Searches for a product by its ID."
@@ -8292,7 +8202,6 @@ var shopifyTaskConfigs = () => ({
8292
8202
  customization: {
8293
8203
  provider: import_developer_studio_api9.IntegrationNames.Shopify,
8294
8204
  product: import_developer_studio_api9.IntegrationDisplayNames.Shopify,
8295
- icon: import_developer_studio_api9.IntegrationNames.Shopify,
8296
8205
  displayName: "Get product variant",
8297
8206
  shortDescription: "Get product variant",
8298
8207
  description: "Searches for a product variant."
@@ -8327,7 +8236,6 @@ var shopifyTaskConfigs = () => ({
8327
8236
  customization: {
8328
8237
  provider: import_developer_studio_api9.IntegrationNames.Shopify,
8329
8238
  product: import_developer_studio_api9.IntegrationDisplayNames.Shopify,
8330
- icon: import_developer_studio_api9.IntegrationNames.Shopify,
8331
8239
  displayName: "Update inventory quantity",
8332
8240
  shortDescription: "Update inventory quantity",
8333
8241
  description: "Adjusts the stock level for a product variant."
@@ -8393,7 +8301,6 @@ var shopifyTaskConfigs = () => ({
8393
8301
  customization: {
8394
8302
  provider: import_developer_studio_api9.IntegrationNames.Shopify,
8395
8303
  product: import_developer_studio_api9.IntegrationDisplayNames.Shopify,
8396
- icon: import_developer_studio_api9.IntegrationNames.Shopify,
8397
8304
  displayName: "Update order",
8398
8305
  shortDescription: "Update order",
8399
8306
  description: "Updates an order."
@@ -8418,7 +8325,6 @@ var shopifyTaskConfigs = () => ({
8418
8325
  customization: {
8419
8326
  provider: import_developer_studio_api9.IntegrationNames.Shopify,
8420
8327
  product: import_developer_studio_api9.IntegrationDisplayNames.Shopify,
8421
- icon: import_developer_studio_api9.IntegrationNames.Shopify,
8422
8328
  displayName: "Update product",
8423
8329
  shortDescription: "Update product",
8424
8330
  description: "Modifies the details of an existing product in your Shopify store."
@@ -8443,7 +8349,6 @@ var shopifyTaskConfigs = () => ({
8443
8349
  customization: {
8444
8350
  provider: import_developer_studio_api9.IntegrationNames.Shopify,
8445
8351
  product: import_developer_studio_api9.IntegrationDisplayNames.Shopify,
8446
- icon: import_developer_studio_api9.IntegrationNames.Shopify,
8447
8352
  displayName: "Update product variant",
8448
8353
  shortDescription: "Update product variant",
8449
8354
  description: "Modifies the details of an existing product variant."
@@ -8468,7 +8373,6 @@ var shopifyTaskConfigs = () => ({
8468
8373
  customization: {
8469
8374
  provider: import_developer_studio_api9.IntegrationNames.Shopify,
8470
8375
  product: import_developer_studio_api9.IntegrationDisplayNames.Shopify,
8471
- icon: import_developer_studio_api9.IntegrationNames.Shopify,
8472
8376
  displayName: "Update customer",
8473
8377
  shortDescription: "Update customer",
8474
8378
  description: "Modifies an existing customer's information."
@@ -8775,7 +8679,6 @@ var shopifyTriggerConfigs = () => ({
8775
8679
  customization: {
8776
8680
  provider: import_developer_studio_api9.IntegrationNames.Shopify,
8777
8681
  product: import_developer_studio_api9.IntegrationDisplayNames.Shopify,
8778
- icon: import_developer_studio_api9.IntegrationNames.Shopify,
8779
8682
  displayName: "Order created",
8780
8683
  shortDescription: "Order created",
8781
8684
  description: "Triggers when a new order is created"
@@ -9659,13 +9562,13 @@ var OneWidgetContext = (0, import_react5.createContext)({
9659
9562
  isOpen: false,
9660
9563
  toggleOneWidget: () => null
9661
9564
  });
9662
- var OneWidgetProvider = ({ children }) => {
9565
+ function OneWidgetProvider({ children }) {
9663
9566
  const [isOpen, setIsOpen] = (0, import_react5.useState)(false);
9664
9567
  const toggleOneWidget = () => {
9665
9568
  setIsOpen((prev2) => !prev2);
9666
9569
  };
9667
9570
  return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(OneWidgetContext.Provider, { value: { isOpen, toggleOneWidget }, children });
9668
- };
9571
+ }
9669
9572
  var useOneWidgetContext = () => {
9670
9573
  const context = (0, import_react5.useContext)(OneWidgetContext);
9671
9574
  if (context === void 0) {
@@ -10309,7 +10212,7 @@ var useUpdateOrganizationProducts = () => {
10309
10212
  }),
10310
10213
  {
10311
10214
  onSuccess: (_) => {
10312
- queryClient.refetchQueries({
10215
+ void queryClient.refetchQueries({
10313
10216
  queryKey: userQueryKeys.accounts.products.getOrganizationProducts
10314
10217
  });
10315
10218
  }
@@ -10361,7 +10264,7 @@ var getWorkflowValidationErrors = (validationErrors) => {
10361
10264
  );
10362
10265
  }
10363
10266
  }
10364
- if (validationErrors) {
10267
+ if (validationErrors.length > 0) {
10365
10268
  validationErrors.forEach((item) => {
10366
10269
  const path = item.instancePath.split("/").filter(Boolean);
10367
10270
  addToErrorSchema(errors, path, item);
@@ -10862,7 +10765,7 @@ function WorkflowContextProviderBase({
10862
10765
  const goToAddTask = (0, import_react8.useCallback)(
10863
10766
  (taskReference) => {
10864
10767
  if (!taskReference) {
10865
- navigate(`${basePath}/add/livechat`, {
10768
+ navigate(`${basePath}/add`, {
10866
10769
  state: {
10867
10770
  index: void 0,
10868
10771
  frame: state.metadata.frames.global
@@ -10874,7 +10777,7 @@ function WorkflowContextProviderBase({
10874
10777
  (x) => x.taskReferenceName === taskReference.taskReferenceName
10875
10778
  ) + (taskReference.mode === "before" ? 0 : 1);
10876
10779
  const targetReference = state.workflow.definition.tasks.at(targetIndex);
10877
- navigate(`${basePath}/add/livechat`, {
10780
+ navigate(`${basePath}/add`, {
10878
10781
  state: {
10879
10782
  index: targetIndex,
10880
10783
  frame: targetReference ? state.metadata.frames.tasks[targetReference.taskReferenceName] : state.metadata.frames.global
@@ -11199,7 +11102,7 @@ function useWorkflowContext() {
11199
11102
  }
11200
11103
 
11201
11104
  // ../../../node_modules/.pnpm/@emotion+styled@11.13.0_@emotion+react@11.13.3_@types+react@18.3.17_react@18.3.1__@types+react@18.3.17_react@18.3.1/node_modules/@emotion/styled/base/dist/emotion-styled-base.esm.js
11202
- var React5 = __toESM(require("react"));
11105
+ var React4 = __toESM(require("react"));
11203
11106
 
11204
11107
  // ../../../node_modules/.pnpm/@emotion+is-prop-valid@1.3.1/node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.esm.js
11205
11108
  var reactPropsRegex = /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/;
@@ -11250,7 +11153,7 @@ var Insertion3 = function Insertion4(_ref) {
11250
11153
  serializedNames += " " + next2.name;
11251
11154
  next2 = next2.next;
11252
11155
  }
11253
- return /* @__PURE__ */ React5.createElement("style", (_ref2 = {}, _ref2["data-emotion"] = cache.key + " " + serializedNames, _ref2.dangerouslySetInnerHTML = {
11156
+ return /* @__PURE__ */ React4.createElement("style", (_ref2 = {}, _ref2["data-emotion"] = cache.key + " " + serializedNames, _ref2.dangerouslySetInnerHTML = {
11254
11157
  __html: rules
11255
11158
  }, _ref2.nonce = cache.sheet.nonce, _ref2));
11256
11159
  }
@@ -11294,7 +11197,7 @@ var createStyled = function createStyled2(tag, options2) {
11294
11197
  for (var key in props) {
11295
11198
  mergedProps[key] = props[key];
11296
11199
  }
11297
- mergedProps.theme = React5.useContext(ThemeContext);
11200
+ mergedProps.theme = React4.useContext(ThemeContext);
11298
11201
  }
11299
11202
  if (typeof props.className === "string") {
11300
11203
  className = getRegisteredStyles(cache.registered, classInterpolations, props.className);
@@ -11319,11 +11222,11 @@ var createStyled = function createStyled2(tag, options2) {
11319
11222
  if (ref) {
11320
11223
  newProps.ref = ref;
11321
11224
  }
11322
- return /* @__PURE__ */ React5.createElement(React5.Fragment, null, /* @__PURE__ */ React5.createElement(Insertion3, {
11225
+ return /* @__PURE__ */ React4.createElement(React4.Fragment, null, /* @__PURE__ */ React4.createElement(Insertion3, {
11323
11226
  cache,
11324
11227
  serialized,
11325
11228
  isStringTag: typeof FinalTag === "string"
11326
- }), /* @__PURE__ */ React5.createElement(FinalTag, newProps));
11229
+ }), /* @__PURE__ */ React4.createElement(FinalTag, newProps));
11327
11230
  });
11328
11231
  Styled.displayName = identifierName !== void 0 ? identifierName : "Styled(" + (typeof baseTag === "string" ? baseTag : baseTag.displayName || baseTag.name || "Component") + ")";
11329
11232
  Styled.defaultProps = tag.defaultProps;
@@ -11510,11 +11413,11 @@ var workflowsBlockAmplitudeJourneyFactory = (email) => ({
11510
11413
  workflow: {
11511
11414
  create: {
11512
11415
  actions: {
11513
- createDraft: (workflow_id) => {
11416
+ createDraft: (workflowId) => {
11514
11417
  logAmplitudeEvent(
11515
11418
  "workflows.workflow.create.click",
11516
11419
  {
11517
- original_workflow_id: workflow_id
11420
+ original_workflow_id: workflowId
11518
11421
  },
11519
11422
  email
11520
11423
  );
@@ -11536,14 +11439,14 @@ var workflowsBlockAmplitudeJourneyFactory = (email) => ({
11536
11439
  },
11537
11440
  delete: {
11538
11441
  actions: {
11539
- click: (source, created_at) => {
11442
+ click: (source, createdAt) => {
11540
11443
  logAmplitudeEvent(
11541
11444
  "workflows.workflow.delete.click",
11542
11445
  __spreadValues({
11543
11446
  source
11544
- }, source === "builder" && created_at && {
11447
+ }, source === "builder" && createdAt && {
11545
11448
  lifetime_duration: Math.floor(
11546
- ((/* @__PURE__ */ new Date()).getTime() - new Date(created_at).getTime()) / (1e3 * 60) % 60
11449
+ ((/* @__PURE__ */ new Date()).getTime() - new Date(createdAt).getTime()) / (1e3 * 60) % 60
11547
11450
  )
11548
11451
  }),
11549
11452
  email
@@ -11555,12 +11458,12 @@ var workflowsBlockAmplitudeJourneyFactory = (email) => ({
11555
11458
  draft: {
11556
11459
  create: {
11557
11460
  actions: {
11558
- click: (source, template_name) => {
11461
+ click: (source, templateName) => {
11559
11462
  logAmplitudeEvent(
11560
11463
  "workflows.draft.create.click",
11561
11464
  __spreadValues({
11562
11465
  source
11563
- }, source === "withTemplate" && { template_name }),
11466
+ }, source === "withTemplate" && { template_name: templateName }),
11564
11467
  email
11565
11468
  );
11566
11469
  }
@@ -11577,22 +11480,22 @@ var workflowsBlockAmplitudeJourneyFactory = (email) => ({
11577
11480
  email
11578
11481
  );
11579
11482
  },
11580
- addTrigger: (trigger_type, trigger_source) => {
11483
+ addTrigger: (triggerType, triggerSource) => {
11581
11484
  logAmplitudeEvent(
11582
11485
  "workflows.draft.edit.addTrigger",
11583
11486
  {
11584
- trigger_type,
11585
- trigger_source
11487
+ trigger_type: triggerType,
11488
+ trigger_source: triggerSource
11586
11489
  },
11587
11490
  email
11588
11491
  );
11589
11492
  },
11590
- addAction: (action_type, action_provider) => {
11493
+ addAction: (actionType, actionProvider) => {
11591
11494
  logAmplitudeEvent(
11592
11495
  "workflows.draft.edit.addAction",
11593
11496
  {
11594
- action_type,
11595
- action_provider
11497
+ action_type: actionType,
11498
+ action_provider: actionProvider
11596
11499
  },
11597
11500
  email
11598
11501
  );
@@ -11601,11 +11504,11 @@ var workflowsBlockAmplitudeJourneyFactory = (email) => ({
11601
11504
  },
11602
11505
  publish: {
11603
11506
  actions: {
11604
- click: (workflow_complexity) => {
11507
+ click: (workflowComplexity) => {
11605
11508
  logAmplitudeEvent(
11606
11509
  "workflows.draft.publish.click",
11607
11510
  {
11608
- workflow_complexity
11511
+ workflow_complexity: workflowComplexity
11609
11512
  },
11610
11513
  email
11611
11514
  );
@@ -11615,7 +11518,7 @@ var workflowsBlockAmplitudeJourneyFactory = (email) => ({
11615
11518
  delete: {
11616
11519
  actions: {
11617
11520
  click: () => {
11618
- logAmplitudeEvent("workflows.draft.delete.click", null, email);
11521
+ logAmplitudeEvent("workflows.draft.delete.click", void 0, email);
11619
11522
  }
11620
11523
  }
11621
11524
  }
@@ -11812,7 +11715,7 @@ function ProductIcon({
11812
11715
  );
11813
11716
  case import_developer_studio_api18.IntegrationNames.HubSpot:
11814
11717
  return /* @__PURE__ */ jsx2(import_design_system_icons2.Hubspot, { css: defaultIconStyle({ disabled, height, width }) });
11815
- case OTHER_PRODUCT_TYPE.OPENAI:
11718
+ case import_developer_studio_api18.IntegrationNames.OpenAI:
11816
11719
  return /* @__PURE__ */ jsx2(
11817
11720
  import_design_system_icons2.Chatgpt,
11818
11721
  {
@@ -11824,14 +11727,16 @@ function ProductIcon({
11824
11727
  })
11825
11728
  }
11826
11729
  );
11827
- case PRODUCT_TYPE.HD:
11730
+ case "helpdesk":
11731
+ case import_developer_studio_api18.IntegrationNames.HelpDesk:
11828
11732
  return /* @__PURE__ */ jsx2(
11829
11733
  import_design_system_icons2.HelpDeskColored,
11830
11734
  {
11831
11735
  css: helpdeskconCss({ disabled, height, width, center })
11832
11736
  }
11833
11737
  );
11834
- case PRODUCT_TYPE.LC:
11738
+ case "livechat":
11739
+ case import_developer_studio_api18.IntegrationNames.LiveChat:
11835
11740
  default:
11836
11741
  return /* @__PURE__ */ jsx2(import_design_system_icons2.LiveChatColored, { css: livechatIconStyle({ disabled, height, width }) });
11837
11742
  }
@@ -11855,7 +11760,7 @@ function WorkflowDetailsInfo({
11855
11760
  workflow,
11856
11761
  workflowExecutions
11857
11762
  }) {
11858
- var _a, _b, _c, _d;
11763
+ var _a, _b, _c;
11859
11764
  const completedCycles = (_a = workflowExecutions.data) == null ? void 0 : _a.filter(
11860
11765
  (execution) => execution.status === "COMPLETED"
11861
11766
  ).length;
@@ -11863,7 +11768,7 @@ function WorkflowDetailsInfo({
11863
11768
  (execution) => execution.status === "FAILED"
11864
11769
  ).length;
11865
11770
  if (!workflow.isSuccess) {
11866
- return /* @__PURE__ */ jsx2(Fragment4, {});
11771
+ return;
11867
11772
  }
11868
11773
  return /* @__PURE__ */ jsxs2(import_developer_studio_ui_react7.Column, { gap: 8, setColumnPadding: "0 2rem 0", children: [
11869
11774
  /* @__PURE__ */ jsxs2("div", { children: [
@@ -11872,7 +11777,7 @@ function WorkflowDetailsInfo({
11872
11777
  ] }),
11873
11778
  /* @__PURE__ */ jsxs2("div", { children: [
11874
11779
  /* @__PURE__ */ jsx2(Label, { children: "Last modified" }),
11875
- /* @__PURE__ */ jsx2(import_design_system_react_components4.Text, { as: "div", bold: true, children: (0, import_developer_studio_ui_react7.formatUSADate)((_c = workflow.data.updated_at) != null ? _c : workflow.data.created_at) })
11780
+ /* @__PURE__ */ jsx2(import_design_system_react_components4.Text, { as: "div", bold: true, children: (0, import_developer_studio_ui_react7.formatUSADate)(workflow.data.updated_at || workflow.data.created_at) })
11876
11781
  ] }),
11877
11782
  /* @__PURE__ */ jsxs2("div", { children: [
11878
11783
  /* @__PURE__ */ jsx2(Label, { children: "Created by" }),
@@ -11888,7 +11793,7 @@ function WorkflowDetailsInfo({
11888
11793
  ] }),
11889
11794
  /* @__PURE__ */ jsxs2("div", { children: [
11890
11795
  /* @__PURE__ */ jsx2(Label, { children: "Tasks" }),
11891
- /* @__PURE__ */ jsx2(import_developer_studio_ui_react7.Row, { gap: 4, notPadded: true, children: (_d = workflow.data.tags) == null ? void 0 : _d.map((tag) => /* @__PURE__ */ jsx2(IconWrapper, { children: /* @__PURE__ */ jsx2(
11796
+ /* @__PURE__ */ jsx2(import_developer_studio_ui_react7.Row, { gap: 4, notPadded: true, children: (_c = workflow.data.tags) == null ? void 0 : _c.map((tag) => /* @__PURE__ */ jsx2(IconWrapper, { children: /* @__PURE__ */ jsx2(
11892
11797
  ProductIcon_default,
11893
11798
  {
11894
11799
  center: true,
@@ -11896,7 +11801,7 @@ function WorkflowDetailsInfo({
11896
11801
  product: tag.toLowerCase(),
11897
11802
  width: 4
11898
11803
  }
11899
- ) })) })
11804
+ ) }, tag)) })
11900
11805
  ] })
11901
11806
  ] });
11902
11807
  }
@@ -11933,7 +11838,7 @@ function WorkflowDetailsPanel({ onClose }) {
11933
11838
  (_b = workflowQuery.data) == null ? void 0 : _b.related_workflow_id
11934
11839
  );
11935
11840
  if (!id) {
11936
- return /* @__PURE__ */ jsx2(Fragment4, {});
11841
+ return;
11937
11842
  }
11938
11843
  const workflow = ((_c = workflowQuery.data) == null ? void 0 : _c.draft) ? relatedWorkflowQuery : workflowQuery;
11939
11844
  const workflowExecutions = ((_d = workflow.data) == null ? void 0 : _d.draft) ? relatedWorkflowExecutionsQuery : workflowExecutionsQuery;
@@ -12903,7 +12808,7 @@ function convertToTreeNode(obj, meta, nodeName, path) {
12903
12808
  type: typeof obj,
12904
12809
  name: (_e = (_d = customization == null ? void 0 : customization.displayName) != null ? _d : currentSpec == null ? void 0 : currentSpec.title) != null ? _e : nodeName,
12905
12810
  description: (_f = customization == null ? void 0 : customization.description) != null ? _f : currentSpec == null ? void 0 : currentSpec.description,
12906
- icon: customization == null ? void 0 : customization.icon,
12811
+ icon: customization == null ? void 0 : customization.provider,
12907
12812
  value: `${meta.basePath ? `${meta.basePath}` : ""}${path ? `.${path}` : ""}`,
12908
12813
  path: `${path != null ? path : ""}`,
12909
12814
  relativePath: meta.baseRelativePath && path && path.startsWith(meta.baseRelativePath) ? path.replace(`${meta.baseRelativePath}.`, "") : "",
@@ -13119,7 +13024,7 @@ var updateCustomTagsInputTagIcon = (tagData) => {
13119
13024
  const iconPlaceholderId = `product-icon-${tagData.__tagId}`;
13120
13025
  const iconPlaceholder = document.getElementById(iconPlaceholderId);
13121
13026
  const tagMeta = tagData.__meta;
13122
- if (!iconPlaceholder || !((_b = (_a = tagMeta.source) == null ? void 0 : _a.customization) == null ? void 0 : _b.icon)) {
13027
+ if (!iconPlaceholder || !((_b = (_a = tagMeta.source) == null ? void 0 : _a.customization) == null ? void 0 : _b.provider)) {
13123
13028
  return;
13124
13029
  }
13125
13030
  const root = (0, import_client.createRoot)(iconPlaceholder);
@@ -13130,7 +13035,7 @@ var updateCustomTagsInputTagIcon = (tagData) => {
13130
13035
  {
13131
13036
  center: true,
13132
13037
  height: 4,
13133
- product: tagMeta.source.customization.icon,
13038
+ product: tagMeta.source.customization.provider,
13134
13039
  width: 4
13135
13040
  }
13136
13041
  )
@@ -13197,7 +13102,7 @@ function CustomTagsInputTagTooltip({
13197
13102
  }) {
13198
13103
  var _a, _b, _c, _d, _e;
13199
13104
  if (!data.visible) {
13200
- return /* @__PURE__ */ jsx2(Fragment4, {});
13105
+ return;
13201
13106
  }
13202
13107
  return /* @__PURE__ */ jsx2(
13203
13108
  import_design_system_react_components12.Tooltip,
@@ -13213,12 +13118,12 @@ function CustomTagsInputTagTooltip({
13213
13118
  triggerRenderer: /* @__PURE__ */ jsx2("span", {}),
13214
13119
  children: /* @__PURE__ */ jsxs2(import_developer_studio_ui_react12.Column, { gap: `var(${import_design_system_react_components12.SpacingToken.Spacing1})`, notPadded: true, children: [
13215
13120
  /* @__PURE__ */ jsxs2(import_developer_studio_ui_react12.Row, { center: true, gap: `var(${import_design_system_react_components12.SpacingToken.Spacing1})`, notPadded: true, children: [
13216
- ((_b = (_a = data.tag.__meta.source) == null ? void 0 : _a.customization) == null ? void 0 : _b.icon) ? /* @__PURE__ */ jsx2(
13121
+ ((_b = (_a = data.tag.__meta.source) == null ? void 0 : _a.customization) == null ? void 0 : _b.provider) ? /* @__PURE__ */ jsx2(
13217
13122
  ProductIcon_default,
13218
13123
  {
13219
13124
  center: true,
13220
13125
  height: 4,
13221
- product: data.tag.__meta.source.customization.icon,
13126
+ product: data.tag.__meta.source.customization.provider,
13222
13127
  width: 4
13223
13128
  }
13224
13129
  ) : null,
@@ -14085,7 +13990,16 @@ var import_utils14 = require("@rjsf/utils");
14085
13990
  var import_design_system_react_components18 = require("@livechat/design-system-react-components");
14086
13991
  var import_developer_studio_ui_react15 = require("@livechat/developer-studio-ui-react");
14087
13992
  function CustomFieldHeader(props) {
14088
- const { id, label, description, required, registry, schema, uiSchema } = props;
13993
+ const {
13994
+ id,
13995
+ label,
13996
+ description,
13997
+ required,
13998
+ registry,
13999
+ schema,
14000
+ uiSchema,
14001
+ hideOptionalBadge
14002
+ } = props;
14089
14003
  const options2 = (0, import_utils14.getUiOptions)(uiSchema);
14090
14004
  const TitleFieldTemplate = (0, import_utils14.getTemplate)(
14091
14005
  "TitleFieldTemplate",
@@ -14128,7 +14042,7 @@ function CustomFieldHeader(props) {
14128
14042
  ]
14129
14043
  }
14130
14044
  ),
14131
- required ? /* @__PURE__ */ jsx2(
14045
+ !required && !hideOptionalBadge ? /* @__PURE__ */ jsx2(
14132
14046
  "div",
14133
14047
  {
14134
14048
  css: css`
@@ -14137,7 +14051,7 @@ function CustomFieldHeader(props) {
14137
14051
  line-height: 16px;
14138
14052
  color: var(${import_design_system_react_components18.DesignToken.ContentBasicSecondary});
14139
14053
  `,
14140
- children: "required"
14054
+ children: "optional"
14141
14055
  }
14142
14056
  ) : null
14143
14057
  ] });
@@ -14323,6 +14237,7 @@ function CustomObjectFieldTemplate(props) {
14323
14237
  CustomFieldHeader,
14324
14238
  {
14325
14239
  description,
14240
+ hideOptionalBadge: true,
14326
14241
  id: idSchema.$id,
14327
14242
  label: title,
14328
14243
  registry,
@@ -14620,12 +14535,12 @@ function CustomToolbar(props) {
14620
14535
  state: { visibility }
14621
14536
  } = useWorkflowContext();
14622
14537
  if (!visibility.handles) {
14623
- return /* @__PURE__ */ jsx2(Fragment4, {});
14538
+ return;
14624
14539
  }
14625
14540
  return /* @__PURE__ */ jsx2(
14626
14541
  import_reactflow4.NodeToolbar,
14627
14542
  {
14628
- align: "start",
14543
+ align: "center",
14629
14544
  isVisible: props.isVisible,
14630
14545
  offset: 0,
14631
14546
  position: import_reactflow4.Position.Right,
@@ -14865,7 +14780,7 @@ function HttpNodeBase({
14865
14780
  } = useWorkflowContext();
14866
14781
  const frame = frames.tasks[data.taskReferenceName];
14867
14782
  const customization = (_b = (_a = frame == null ? void 0 : frame.__meta) == null ? void 0 : _a.config) == null ? void 0 : _b.customization;
14868
- const revertIconColor = getWorkflowsEnv("isHeadless") && ((customization == null ? void 0 : customization.icon) === import_developer_studio_api20.IntegrationNames.OpenAI || (customization == null ? void 0 : customization.icon) === import_developer_studio_api20.IntegrationNames.BigCommerce);
14783
+ const revertIconColor = getWorkflowsEnv("isHeadless") && ((customization == null ? void 0 : customization.provider) === import_developer_studio_api20.IntegrationNames.OpenAI || (customization == null ? void 0 : customization.provider) === import_developer_studio_api20.IntegrationNames.BigCommerce);
14869
14784
  return /* @__PURE__ */ jsxs2(
14870
14785
  Node2,
14871
14786
  {
@@ -14875,13 +14790,13 @@ function HttpNodeBase({
14875
14790
  top,
14876
14791
  toolbar,
14877
14792
  /* @__PURE__ */ jsx2(Header3, { children: /* @__PURE__ */ jsxs2(Title2, { children: [
14878
- (customization == null ? void 0 : customization.icon) ? /* @__PURE__ */ jsx2(
14793
+ (customization == null ? void 0 : customization.provider) ? /* @__PURE__ */ jsx2(
14879
14794
  ProductIcon_default,
14880
14795
  {
14881
14796
  center: true,
14882
14797
  disabled: false,
14883
14798
  height: 10,
14884
- product: customization.icon,
14799
+ product: customization.provider,
14885
14800
  revertColors: revertIconColor,
14886
14801
  width: 10
14887
14802
  }
@@ -15445,7 +15360,7 @@ function SwitchNode({
15445
15360
  }
15446
15361
  }, [node2 == null ? void 0 : node2.source]);
15447
15362
  if (!node2) {
15448
- return /* @__PURE__ */ jsx2(Fragment4, {});
15363
+ return;
15449
15364
  }
15450
15365
  return /* @__PURE__ */ jsx2(
15451
15366
  CustomNodeWrapper,
@@ -15720,7 +15635,7 @@ function TriggerNodeBase({
15720
15635
  } = useWorkflowContext();
15721
15636
  const frame = frames.trigger;
15722
15637
  const customization = (_a = frame == null ? void 0 : frame.__meta) == null ? void 0 : _a.config.customization;
15723
- const revertIconColor = getWorkflowsEnv("isHeadless") && ((customization == null ? void 0 : customization.icon) === import_developer_studio_api22.IntegrationNames.OpenAI || (customization == null ? void 0 : customization.icon) === import_developer_studio_api22.IntegrationNames.BigCommerce);
15638
+ const revertIconColor = getWorkflowsEnv("isHeadless") && ((customization == null ? void 0 : customization.provider) === import_developer_studio_api22.IntegrationNames.OpenAI || (customization == null ? void 0 : customization.provider) === import_developer_studio_api22.IntegrationNames.BigCommerce);
15724
15639
  return /* @__PURE__ */ jsxs2(
15725
15640
  Node5,
15726
15641
  {
@@ -15729,13 +15644,13 @@ function TriggerNodeBase({
15729
15644
  children: [
15730
15645
  toolbar,
15731
15646
  /* @__PURE__ */ jsx2(Header6, { children: /* @__PURE__ */ jsxs2(Title5, { children: [
15732
- (customization == null ? void 0 : customization.icon) ? /* @__PURE__ */ jsx2(
15647
+ (customization == null ? void 0 : customization.provider) ? /* @__PURE__ */ jsx2(
15733
15648
  ProductIcon_default,
15734
15649
  {
15735
15650
  center: true,
15736
15651
  disabled: false,
15737
15652
  height: 10,
15738
- product: customization.icon,
15653
+ product: customization.provider,
15739
15654
  revertColors: revertIconColor,
15740
15655
  width: 10
15741
15656
  }
@@ -15756,7 +15671,7 @@ function TriggerNodeBase({
15756
15671
  font-size: 13px;
15757
15672
  font-weight: 400;
15758
15673
  line-height: 16px;
15759
- width: 110px;
15674
+ width: 100px;
15760
15675
  overflow: hidden;
15761
15676
  text-overflow: ellipsis;
15762
15677
  white-space: nowrap;
@@ -15885,7 +15800,6 @@ function TriggerNodeForm({
15885
15800
  }
15886
15801
  );
15887
15802
  }
15888
- return /* @__PURE__ */ jsx2(Fragment4, {});
15889
15803
  }
15890
15804
  var Form_default6 = TriggerNodeForm;
15891
15805
 
@@ -16009,7 +15923,7 @@ function EditNodeWrapper() {
16009
15923
  frame: void 0
16010
15924
  };
16011
15925
  if (!data) {
16012
- return /* @__PURE__ */ jsx2(Fragment4, {});
15926
+ return;
16013
15927
  }
16014
15928
  const config2 = (_b = frame == null ? void 0 : frame.__meta) == null ? void 0 : _b.config;
16015
15929
  const readonly = !workflow.draft;
@@ -16096,7 +16010,7 @@ function EditNodeWrapper() {
16096
16010
  );
16097
16011
  }
16098
16012
  };
16099
- const revertIconColor = getWorkflowsEnv("isHeadless") && ((config2 == null ? void 0 : config2.customization.icon) === import_developer_studio_api23.IntegrationNames.OpenAI || (config2 == null ? void 0 : config2.customization.icon) === import_developer_studio_api23.IntegrationNames.BigCommerce);
16013
+ const revertIconColor = getWorkflowsEnv("isHeadless") && ((config2 == null ? void 0 : config2.customization.provider) === import_developer_studio_api23.IntegrationNames.OpenAI || (config2 == null ? void 0 : config2.customization.provider) === import_developer_studio_api23.IntegrationNames.BigCommerce);
16100
16014
  return /* @__PURE__ */ jsxs2(Wrapper3, { children: [
16101
16015
  /* @__PURE__ */ jsxs2(import_developer_studio_ui_react20.Row, { center: true, setRowPadding: "12px 24px", spaceBetween: true, children: [
16102
16016
  /* @__PURE__ */ jsx2(
@@ -16112,7 +16026,7 @@ function EditNodeWrapper() {
16112
16026
  center: true,
16113
16027
  disabled: false,
16114
16028
  height: 10,
16115
- product: config2.customization.icon,
16029
+ product: config2.customization.provider,
16116
16030
  revertColors: revertIconColor,
16117
16031
  width: 10
16118
16032
  }
@@ -16239,12 +16153,28 @@ function WorkflowPreviewModal({
16239
16153
  import_design_system_react_components37.Modal,
16240
16154
  {
16241
16155
  footer: /* @__PURE__ */ jsxs2("div", { css: footerStyles, children: [
16242
- /* @__PURE__ */ jsx2(import_design_system_react_components37.Button, { kind: "secondary", onClick: () => {
16243
- handleClose();
16244
- }, size: "medium", children: "Close" }),
16245
- /* @__PURE__ */ jsx2(import_design_system_react_components37.Button, { kind: "primary", onClick: () => {
16246
- handleApply();
16247
- }, size: "medium", children: "Apply workflow" })
16156
+ /* @__PURE__ */ jsx2(
16157
+ import_design_system_react_components37.Button,
16158
+ {
16159
+ kind: "secondary",
16160
+ onClick: () => {
16161
+ handleClose();
16162
+ },
16163
+ size: "medium",
16164
+ children: "Close"
16165
+ }
16166
+ ),
16167
+ /* @__PURE__ */ jsx2(
16168
+ import_design_system_react_components37.Button,
16169
+ {
16170
+ kind: "primary",
16171
+ onClick: () => {
16172
+ handleApply();
16173
+ },
16174
+ size: "medium",
16175
+ children: "Apply workflow"
16176
+ }
16177
+ )
16248
16178
  ] }),
16249
16179
  heading: /* @__PURE__ */ jsx2("div", { css: headerStyles, children: /* @__PURE__ */ jsx2(import_design_system_react_components37.Heading, { size: "md", children: "Workflow preview" }) }),
16250
16180
  onClose: handleClose,
@@ -16296,7 +16226,7 @@ function AddNode({ id }) {
16296
16226
  state: { visibility, workflow }
16297
16227
  } = useWorkflowContext();
16298
16228
  if (!visibility.handles) {
16299
- return /* @__PURE__ */ jsx2(Fragment4, {});
16229
+ return;
16300
16230
  }
16301
16231
  return /* @__PURE__ */ jsxs2(Fragment4, { children: [
16302
16232
  /* @__PURE__ */ jsx2(import_reactflow11.Handle, { isConnectable: false, position: import_reactflow11.Position.Top, type: "target" }),
@@ -16559,7 +16489,7 @@ var messageBoxTip = css`
16559
16489
  `;
16560
16490
 
16561
16491
  // src/views/Flows/Definitions/Common/One/components/StopGenerateButton.tsx
16562
- var StopGenerateButton = () => {
16492
+ function StopGenerateButton() {
16563
16493
  const isOneLoading = false;
16564
16494
  if (!isOneLoading) {
16565
16495
  return null;
@@ -16577,21 +16507,21 @@ var StopGenerateButton = () => {
16577
16507
  children: "Cancel generating"
16578
16508
  }
16579
16509
  );
16580
- };
16510
+ }
16581
16511
 
16582
16512
  // src/views/Flows/Definitions/Common/One/widget/message-box/AskButton.tsx
16583
16513
  var import_react62 = require("react");
16584
16514
  var import_LexicalComposerContext3 = require("@lexical/react/LexicalComposerContext");
16585
16515
  var import_design_system_react_components43 = require("@livechat/design-system-react-components");
16586
16516
 
16587
- // src/views/Flows/Definitions/Common/One/hooks/use-above-character-limit.ts
16517
+ // src/views/Flows/Definitions/Common/One/hooks/useAboveCharacterLimit.ts
16588
16518
  var import_react59 = require("react");
16589
16519
  var import_LexicalComposerContext = require("@lexical/react/LexicalComposerContext");
16590
16520
 
16591
16521
  // src/views/Flows/Definitions/Common/One/widget/message-box/constants.ts
16592
16522
  var ONE_CHARACTER_LIMIT = 1e4;
16593
16523
 
16594
- // src/views/Flows/Definitions/Common/One/hooks/use-above-character-limit.ts
16524
+ // src/views/Flows/Definitions/Common/One/hooks/useAboveCharacterLimit.ts
16595
16525
  var useAboveCharacterLimit = () => {
16596
16526
  const [editor] = (0, import_LexicalComposerContext.useLexicalComposerContext)();
16597
16527
  const [aboveLimit, setAboveLimit] = (0, import_react59.useState)(0);
@@ -16611,7 +16541,7 @@ var useAboveCharacterLimit = () => {
16611
16541
  };
16612
16542
  };
16613
16543
 
16614
- // src/views/Flows/Definitions/Common/One/hooks/use-send-one-message.ts
16544
+ // src/views/Flows/Definitions/Common/One/hooks/useSendOneMessage.ts
16615
16545
  var import_react61 = require("react");
16616
16546
  var import_LexicalComposerContext2 = require("@lexical/react/LexicalComposerContext");
16617
16547
  var import_lexical = require("lexical");
@@ -16710,19 +16640,16 @@ var OneMessagesContext = (0, import_react60.createContext)({
16710
16640
  isError: false,
16711
16641
  groupedEvents: [],
16712
16642
  hasAdditionalEvents: false,
16713
- // eslint-disable-next-line @typescript-eslint/no-empty-function
16714
16643
  sendMessage: () => {
16715
16644
  }
16716
16645
  });
16717
- var OneMessagesProvider = ({
16718
- children
16719
- }) => {
16646
+ function OneMessagesProvider({ children }) {
16720
16647
  const [isError, setIsError] = (0, import_react60.useState)(null);
16721
16648
  const [events, setEvents] = (0, import_react60.useState)([getInitialMessage()]);
16722
16649
  const generateAiResponseMutation = useGenerateAIResponse();
16723
16650
  const { user } = (0, import_developer_studio_ui_react21.useUserContext)();
16724
16651
  const isLoading = generateAiResponseMutation.isLoading;
16725
- const sendMessage = (message) => __async(void 0, null, function* () {
16652
+ const sendMessage = (message) => __async(this, null, function* () {
16726
16653
  setIsError(null);
16727
16654
  setEvents((prevEvents) => [
16728
16655
  ...prevEvents,
@@ -16766,7 +16693,6 @@ var OneMessagesProvider = ({
16766
16693
  ]
16767
16694
  ]);
16768
16695
  } catch (error) {
16769
- console.error(error);
16770
16696
  }
16771
16697
  });
16772
16698
  const eventsGroup = (0, import_react60.useMemo)(
@@ -16790,7 +16716,7 @@ var OneMessagesProvider = ({
16790
16716
  children
16791
16717
  }
16792
16718
  );
16793
- };
16719
+ }
16794
16720
  var useOneMessagesContext = () => {
16795
16721
  const context = (0, import_react60.useContext)(OneMessagesContext);
16796
16722
  if (context === void 0) {
@@ -16799,7 +16725,7 @@ var useOneMessagesContext = () => {
16799
16725
  return context;
16800
16726
  };
16801
16727
 
16802
- // src/views/Flows/Definitions/Common/One/hooks/use-send-one-message.ts
16728
+ // src/views/Flows/Definitions/Common/One/hooks/useSendOneMessage.ts
16803
16729
  var useSendOneMessage = () => {
16804
16730
  const [editor] = (0, import_LexicalComposerContext2.useLexicalComposerContext)();
16805
16731
  const { sendMessage } = (0, import_react61.useContext)(OneMessagesContext);
@@ -16816,8 +16742,8 @@ var useSendOneMessage = () => {
16816
16742
  };
16817
16743
 
16818
16744
  // src/views/Flows/Definitions/Common/One/widget/message-box/AskButton.tsx
16819
- var AskButton = () => {
16820
- const [isDisabled, setDisabled] = (0, import_react62.useState)(true);
16745
+ function AskButton() {
16746
+ const [isDisabled, setIsDisabled] = (0, import_react62.useState)(true);
16821
16747
  const [editor] = (0, import_LexicalComposerContext3.useLexicalComposerContext)();
16822
16748
  const isLoading = false;
16823
16749
  const { isAboveLimit } = useAboveCharacterLimit();
@@ -16825,7 +16751,7 @@ var AskButton = () => {
16825
16751
  (0, import_react62.useEffect)(() => {
16826
16752
  const registerTextContentListener = editor.registerTextContentListener(
16827
16753
  (textContent) => {
16828
- setDisabled(!textContent);
16754
+ setIsDisabled(!textContent);
16829
16755
  }
16830
16756
  );
16831
16757
  return () => {
@@ -16855,7 +16781,7 @@ var AskButton = () => {
16855
16781
  {
16856
16782
  css: sendButtonTooltip,
16857
16783
  theme: "invert",
16858
- triggerRenderer: () => button2,
16784
+ triggerRenderer: button2,
16859
16785
  children: /* @__PURE__ */ jsx2(import_design_system_react_components43.Text, { children: "You can send a message once the reply suggestion is generated" })
16860
16786
  }
16861
16787
  );
@@ -16866,7 +16792,7 @@ var AskButton = () => {
16866
16792
  {
16867
16793
  css: aboveLimitTooltip,
16868
16794
  theme: "invert",
16869
- triggerRenderer: () => button2,
16795
+ triggerRenderer: button2,
16870
16796
  children: /* @__PURE__ */ jsxs2(import_design_system_react_components43.Text, { children: [
16871
16797
  "You can send up to ",
16872
16798
  ONE_CHARACTER_LIMIT.toLocaleString("en-US"),
@@ -16877,16 +16803,16 @@ var AskButton = () => {
16877
16803
  );
16878
16804
  }
16879
16805
  return button2;
16880
- };
16806
+ }
16881
16807
 
16882
16808
  // src/views/Flows/Definitions/Common/One/widget/message-box/OneMessageBoxBottomBar.tsx
16883
- var OneMessageBoxBottomBar = () => {
16809
+ function OneMessageBoxBottomBar() {
16884
16810
  const isOneLoading = false;
16885
16811
  return /* @__PURE__ */ jsxs2(Fragment4, { children: [
16886
16812
  !isOneLoading && /* @__PURE__ */ jsx2(AskButton, {}),
16887
16813
  /* @__PURE__ */ jsx2(StopGenerateButton, {})
16888
16814
  ] });
16889
- };
16815
+ }
16890
16816
 
16891
16817
  // src/views/Flows/Definitions/Common/One/widget/message-box/OneMessageBoxPlugins.tsx
16892
16818
  var import_LexicalClearEditorPlugin = require("@lexical/react/LexicalClearEditorPlugin");
@@ -16898,7 +16824,7 @@ var import_LexicalPlainTextPlugin = require("@lexical/react/LexicalPlainTextPlug
16898
16824
  // src/views/Flows/Definitions/Common/One/widget/message-box/custom-plugins/AutoFocusPlugin.tsx
16899
16825
  var import_react63 = require("react");
16900
16826
  var import_LexicalComposerContext4 = require("@lexical/react/LexicalComposerContext");
16901
- var AutoFocusPlugin = () => {
16827
+ function AutoFocusPlugin() {
16902
16828
  const [editor] = (0, import_LexicalComposerContext4.useLexicalComposerContext)();
16903
16829
  const handleFocus = (0, import_react63.useCallback)(() => {
16904
16830
  editor.focus();
@@ -16907,13 +16833,13 @@ var AutoFocusPlugin = () => {
16907
16833
  handleFocus();
16908
16834
  }, []);
16909
16835
  return null;
16910
- };
16836
+ }
16911
16837
 
16912
16838
  // src/views/Flows/Definitions/Common/One/widget/message-box/custom-plugins/EnterDownPlugin.tsx
16913
16839
  var import_react64 = require("react");
16914
16840
  var import_LexicalComposerContext5 = require("@lexical/react/LexicalComposerContext");
16915
16841
  var import_lexical2 = require("lexical");
16916
- var EnterDownPlugin = ({ isCommandMenuVisibleRef }) => {
16842
+ function EnterDownPlugin({ isCommandMenuVisibleRef }) {
16917
16843
  const [editor] = (0, import_LexicalComposerContext5.useLexicalComposerContext)();
16918
16844
  const isLoading = false;
16919
16845
  const handleSendMessage = useSendOneMessage();
@@ -16938,26 +16864,30 @@ var EnterDownPlugin = ({ isCommandMenuVisibleRef }) => {
16938
16864
  [editor, onEnterDown]
16939
16865
  );
16940
16866
  return null;
16941
- };
16867
+ }
16942
16868
 
16943
16869
  // src/views/Flows/Definitions/Common/One/widget/message-box/Placeholder.tsx
16944
- var Placeholder = ({ className }) => /* @__PURE__ */ jsx2("div", { css: [placeholder, className], children: "Your message" });
16870
+ function Placeholder({ className }) {
16871
+ return /* @__PURE__ */ jsx2("div", { css: [placeholder, className], children: "Your message" });
16872
+ }
16945
16873
 
16946
16874
  // src/views/Flows/Definitions/Common/One/widget/message-box/OneMessageBoxPlugins.tsx
16947
- var OneMessageBoxPlugins = () => /* @__PURE__ */ jsxs2(Fragment4, { children: [
16948
- /* @__PURE__ */ jsx2(
16949
- import_LexicalPlainTextPlugin.PlainTextPlugin,
16950
- {
16951
- ErrorBoundary: import_LexicalErrorBoundary.LexicalErrorBoundary,
16952
- contentEditable: /* @__PURE__ */ jsx2(import_LexicalContentEditable.ContentEditable, { css: contentEditable }),
16953
- placeholder: /* @__PURE__ */ jsx2(Placeholder, { css: placeholder })
16954
- }
16955
- ),
16956
- /* @__PURE__ */ jsx2(import_LexicalHistoryPlugin.HistoryPlugin, {}),
16957
- /* @__PURE__ */ jsx2(AutoFocusPlugin, {}),
16958
- /* @__PURE__ */ jsx2(import_LexicalClearEditorPlugin.ClearEditorPlugin, {}),
16959
- /* @__PURE__ */ jsx2(EnterDownPlugin, {})
16960
- ] });
16875
+ function OneMessageBoxPlugins() {
16876
+ return /* @__PURE__ */ jsxs2(Fragment4, { children: [
16877
+ /* @__PURE__ */ jsx2(
16878
+ import_LexicalPlainTextPlugin.PlainTextPlugin,
16879
+ {
16880
+ ErrorBoundary: import_LexicalErrorBoundary.LexicalErrorBoundary,
16881
+ contentEditable: /* @__PURE__ */ jsx2(import_LexicalContentEditable.ContentEditable, { css: contentEditable }),
16882
+ placeholder: /* @__PURE__ */ jsx2(Placeholder, { css: placeholder })
16883
+ }
16884
+ ),
16885
+ /* @__PURE__ */ jsx2(import_LexicalHistoryPlugin.HistoryPlugin, {}),
16886
+ /* @__PURE__ */ jsx2(AutoFocusPlugin, {}),
16887
+ /* @__PURE__ */ jsx2(import_LexicalClearEditorPlugin.ClearEditorPlugin, {}),
16888
+ /* @__PURE__ */ jsx2(EnterDownPlugin, {})
16889
+ ] });
16890
+ }
16961
16891
 
16962
16892
  // src/views/Flows/Definitions/Common/One/widget/message-box/OneMessageBoxWrapper.tsx
16963
16893
  var import_LexicalComposer = require("@lexical/react/LexicalComposer");
@@ -16967,21 +16897,22 @@ var DEFAULT_CONFIG = {
16967
16897
  throw error;
16968
16898
  }
16969
16899
  };
16970
- var OneMessageBoxWrapper = ({
16971
- children,
16972
- initialConfig
16973
- }) => /* @__PURE__ */ jsx2(import_LexicalComposer.LexicalComposer, { initialConfig: initialConfig != null ? initialConfig : DEFAULT_CONFIG, children: /* @__PURE__ */ jsx2("div", { css: messageBoxWrapper, children }) });
16900
+ function OneMessageBoxWrapper({ children, initialConfig }) {
16901
+ return /* @__PURE__ */ jsx2(import_LexicalComposer.LexicalComposer, { initialConfig: initialConfig != null ? initialConfig : DEFAULT_CONFIG, children: /* @__PURE__ */ jsx2("div", { css: messageBoxWrapper, children }) });
16902
+ }
16974
16903
 
16975
16904
  // src/views/Flows/Definitions/Common/One/widget/message-box/OneMessageBox.tsx
16976
- var OneMessageBox = () => /* @__PURE__ */ jsx2("div", { css: popoverMessageBox, children: /* @__PURE__ */ jsx2(OneMessageBoxWrapper, { children: /* @__PURE__ */ jsxs2(Fragment4, { children: [
16977
- /* @__PURE__ */ jsx2(OneMessageBoxPlugins, {}),
16978
- /* @__PURE__ */ jsx2(OneMessageBoxBottomBar, {})
16979
- ] }) }) });
16905
+ function OneMessageBox() {
16906
+ return /* @__PURE__ */ jsx2("div", { css: popoverMessageBox, children: /* @__PURE__ */ jsx2(OneMessageBoxWrapper, { children: /* @__PURE__ */ jsxs2(Fragment4, { children: [
16907
+ /* @__PURE__ */ jsx2(OneMessageBoxPlugins, {}),
16908
+ /* @__PURE__ */ jsx2(OneMessageBoxBottomBar, {})
16909
+ ] }) }) });
16910
+ }
16980
16911
 
16981
16912
  // src/views/Flows/Definitions/Common/One/widget/OneChatFeedContent.tsx
16982
16913
  var import_react77 = require("react");
16983
16914
 
16984
- // src/views/Flows/Definitions/Common/One/hooks/use-scroll.ts
16915
+ // src/views/Flows/Definitions/Common/One/hooks/useScroll.ts
16985
16916
  var import_react65 = require("react");
16986
16917
  var import_lodash4 = __toESM(require("lodash.debounce"));
16987
16918
  var useScroll = ({
@@ -17564,7 +17495,7 @@ var bottomBar2 = css`
17564
17495
  `;
17565
17496
 
17566
17497
  // src/views/Flows/Definitions/Common/One/widget/events/OneErrorEvent.tsx
17567
- var OneErrorEvent = ({ eventId }) => {
17498
+ function OneErrorEvent({ eventId }) {
17568
17499
  const handleRetry = () => {
17569
17500
  };
17570
17501
  return /* @__PURE__ */ jsx2("div", { className: "bubble-wrapper", children: /* @__PURE__ */ jsx2("div", { css: eventWrapper(false), children: /* @__PURE__ */ jsx2("div", { className: "bubble", css: bubble, children: /* @__PURE__ */ jsxs2("div", { css: errorWrapper, children: [
@@ -17580,7 +17511,7 @@ var OneErrorEvent = ({ eventId }) => {
17580
17511
  }
17581
17512
  )
17582
17513
  ] }) }) }) }, eventId);
17583
- };
17514
+ }
17584
17515
 
17585
17516
  // src/views/Flows/Definitions/Common/One/widget/events/OneImageEvent.tsx
17586
17517
  var import_react69 = require("react");
@@ -17622,28 +17553,30 @@ var skeletonLineTall = css`
17622
17553
  var skeletonLineRemovedMargin = css`
17623
17554
  margin-bottom: 0;
17624
17555
  `;
17625
- var SkeletonLine = ({
17556
+ function SkeletonLine({
17626
17557
  className,
17627
17558
  wide,
17628
17559
  tall,
17629
17560
  loading,
17630
17561
  removeMargin
17631
- }) => /* @__PURE__ */ jsx2(
17632
- "div",
17633
- {
17634
- className,
17635
- css: [
17636
- skeletonLine,
17637
- wide && skeletonLineWide,
17638
- tall && skeletonLineTall,
17639
- removeMargin && skeletonLineRemovedMargin,
17640
- loading && loadingAnimation
17641
- ]
17642
- }
17643
- );
17562
+ }) {
17563
+ return /* @__PURE__ */ jsx2(
17564
+ "div",
17565
+ {
17566
+ className,
17567
+ css: [
17568
+ skeletonLine,
17569
+ wide && skeletonLineWide,
17570
+ tall && skeletonLineTall,
17571
+ removeMargin && skeletonLineRemovedMargin,
17572
+ loading && loadingAnimation
17573
+ ]
17574
+ }
17575
+ );
17576
+ }
17644
17577
 
17645
17578
  // src/views/Flows/Definitions/Common/One/widget/events/OneImageEvent.tsx
17646
- var OneImageEvent = ({ imageUrl }) => {
17579
+ function OneImageEvent({ imageUrl }) {
17647
17580
  const [isLoaded, setIsLoaded] = (0, import_react69.useState)(false);
17648
17581
  (0, import_react69.useEffect)(() => {
17649
17582
  const image = new Image();
@@ -17655,19 +17588,16 @@ var OneImageEvent = ({ imageUrl }) => {
17655
17588
  if (!isLoaded) {
17656
17589
  return /* @__PURE__ */ jsx2(SkeletonLine, { css: imageLoader, loading: true });
17657
17590
  }
17658
- return (
17659
- // eslint-disable-next-line jsx-a11y/img-redundant-alt
17660
- /* @__PURE__ */ jsx2(
17661
- "img",
17662
- {
17663
- alt: "image",
17664
- className: "bubble",
17665
- css: imageEvent,
17666
- src: imageUrl
17667
- }
17668
- )
17591
+ return /* @__PURE__ */ jsx2(
17592
+ "img",
17593
+ {
17594
+ alt: "event",
17595
+ className: "bubble",
17596
+ css: imageEvent,
17597
+ src: imageUrl
17598
+ }
17669
17599
  );
17670
- };
17600
+ }
17671
17601
 
17672
17602
  // src/views/Flows/Definitions/Common/One/components/TypingIndicator.tsx
17673
17603
  var import_react70 = require("react");
@@ -17711,16 +17641,18 @@ var typingIndicator2 = css`
17711
17641
  }
17712
17642
  }
17713
17643
  `;
17714
- var TypingIndicator = (0, import_react70.memo)(() => /* @__PURE__ */ jsxs2("div", { css: typingIndicator2, "data-test": "typing-indicator", children: [
17715
- /* @__PURE__ */ jsx2("span", {}),
17716
- /* @__PURE__ */ jsx2("span", {}),
17717
- /* @__PURE__ */ jsx2("span", {})
17718
- ] }));
17644
+ var TypingIndicator = (0, import_react70.memo)(function TypingIndicatorInner() {
17645
+ return /* @__PURE__ */ jsxs2("div", { css: typingIndicator2, "data-test": "typing-indicator", children: [
17646
+ /* @__PURE__ */ jsx2("span", {}),
17647
+ /* @__PURE__ */ jsx2("span", {}),
17648
+ /* @__PURE__ */ jsx2("span", {})
17649
+ ] });
17650
+ });
17719
17651
 
17720
17652
  // src/views/Flows/Definitions/Common/One/widget/events/OneLoaderEvent.tsx
17721
- var OneLoaderEvent = ({ eventId }) => {
17653
+ function OneLoaderEvent({ eventId }) {
17722
17654
  return /* @__PURE__ */ jsx2("div", { css: loaderBubble, children: /* @__PURE__ */ jsx2(TypingIndicator, {}) }, eventId);
17723
- };
17655
+ }
17724
17656
 
17725
17657
  // src/views/Flows/Definitions/Common/One/widget/events/OneMessageEvent.tsx
17726
17658
  var import_design_system_react_components53 = require("@livechat/design-system-react-components");
@@ -17731,7 +17663,7 @@ var import_react_markdown = __toESM(require("react-markdown"));
17731
17663
  // src/views/Flows/Definitions/Common/One/widget/events/OneLinkWithTooltip.tsx
17732
17664
  var import_react_router_dom6 = require("react-router-dom");
17733
17665
  var import_design_system_react_components49 = require("@livechat/design-system-react-components");
17734
- var OneLinkWithTooltip = ({ children, href }) => {
17666
+ function OneLinkWithTooltip({ children, href }) {
17735
17667
  const trigger = href ? /* @__PURE__ */ jsx2(import_react_router_dom6.Link, { css: linkTrigger, to: href, children }) : /* @__PURE__ */ jsx2("span", { css: linkTrigger, children });
17736
17668
  return /* @__PURE__ */ jsx2(
17737
17669
  import_design_system_react_components49.Tooltip,
@@ -17743,7 +17675,7 @@ var OneLinkWithTooltip = ({ children, href }) => {
17743
17675
  children: /* @__PURE__ */ jsx2(import_design_system_react_components49.Text, { children: href })
17744
17676
  }
17745
17677
  );
17746
- };
17678
+ }
17747
17679
 
17748
17680
  // src/views/Flows/Definitions/Common/One/components/MarkdownEventRenderer.jsx
17749
17681
  var markdownCss = css`
@@ -17807,14 +17739,14 @@ var iconMapping = {
17807
17739
  "arrow-forward": /* @__PURE__ */ jsx2(import_design_system_react_components50.Icon, { source: import_design_system_icons22.ArrowForward }),
17808
17740
  add: /* @__PURE__ */ jsx2(import_design_system_react_components50.Icon, { source: import_design_system_icons22.Add })
17809
17741
  };
17810
- var NavigateButton = ({
17742
+ function NavigateButton({
17811
17743
  url,
17812
17744
  content,
17813
17745
  isExternal,
17814
17746
  icon: icon2,
17815
17747
  kind,
17816
17748
  iconPosition
17817
- }) => {
17749
+ }) {
17818
17750
  const navigate = (0, import_react_router_dom7.useNavigate)();
17819
17751
  const handleButtonClick = () => {
17820
17752
  if (isExternal) {
@@ -17837,7 +17769,7 @@ var NavigateButton = ({
17837
17769
  },
17838
17770
  url
17839
17771
  );
17840
- };
17772
+ }
17841
17773
 
17842
17774
  // src/views/Flows/Definitions/Common/One/widget/events/OneAssistantMessageBottomBar.tsx
17843
17775
  var import_react76 = require("react");
@@ -17853,11 +17785,11 @@ var buttonCss = css`
17853
17785
  margin-right: var(${import_design_system_react_components51.SpacingToken.Spacing2});
17854
17786
  margin-top: var(${import_design_system_react_components51.SpacingToken.Spacing2});
17855
17787
  `;
17856
- var ApplyWorkflowButton = ({
17788
+ function ApplyWorkflowButton({
17857
17789
  event,
17858
17790
  updateWorkflow,
17859
17791
  previewWorkflow
17860
- }) => {
17792
+ }) {
17861
17793
  const [isApplied, setIsApplied] = (0, import_react74.useState)(false);
17862
17794
  const workflowExtraction = extractWorkflowFromEvent(event);
17863
17795
  const isEditingWorkflow = false;
@@ -17898,9 +17830,9 @@ var ApplyWorkflowButton = ({
17898
17830
  }
17899
17831
  )
17900
17832
  ] });
17901
- };
17833
+ }
17902
17834
 
17903
- // src/views/Flows/Definitions/Common/One/hooks/use-message-bottom-bar.ts
17835
+ // src/views/Flows/Definitions/Common/One/hooks/useMessageBottomBar.ts
17904
17836
  var import_developer_studio_ui_react22 = require("@livechat/developer-studio-ui-react");
17905
17837
  var useMessageBottomBar = (event) => {
17906
17838
  const { text: text2, sessionId } = event;
@@ -17915,9 +17847,7 @@ var useMessageBottomBar = (event) => {
17915
17847
  });
17916
17848
  const handleRateMessageClick = () => {
17917
17849
  if (!sessionId) {
17918
- return;
17919
17850
  }
17920
- console.log("handleRateMessageClick");
17921
17851
  };
17922
17852
  return {
17923
17853
  handleCopyClick,
@@ -17926,20 +17856,20 @@ var useMessageBottomBar = (event) => {
17926
17856
  };
17927
17857
 
17928
17858
  // src/views/Flows/Definitions/Common/One/widget/events/OneAssistantMessageBottomBar.tsx
17929
- var OneAssistantMessageBottomBar = ({
17859
+ function OneAssistantMessageBottomBar({
17930
17860
  event,
17931
17861
  updateWorkflow,
17932
17862
  previewWorkflow
17933
- }) => {
17934
- var _a, _b;
17863
+ }) {
17864
+ var _a, _b, _c;
17935
17865
  const [isSourcesVisible, setIsSourcesVisible] = (0, import_react76.useState)(false);
17936
17866
  const toggleIsSourcesVisible = () => {
17937
17867
  setIsSourcesVisible((prev2) => !prev2);
17938
17868
  };
17939
17869
  const eventSources = (_a = event.properties) == null ? void 0 : _a.sources;
17940
- const isWithSources = Boolean(eventSources) && eventSources.length > 0;
17870
+ const isWithSources = Boolean(eventSources) && ((_b = eventSources == null ? void 0 : eventSources.length) != null ? _b : 0) > 0;
17941
17871
  const isWorkflow = isWorkflowEvent(event);
17942
- const isMessageRated = Boolean((_b = event.properties) == null ? void 0 : _b.rated);
17872
+ const isMessageRated = Boolean((_c = event.properties) == null ? void 0 : _c.rated);
17943
17873
  const numberOfSources = (eventSources == null ? void 0 : eventSources.length) || 0;
17944
17874
  const { topSources } = getSources(eventSources);
17945
17875
  const { handleCopyClick, handleRateMessageClick } = useMessageBottomBar(event);
@@ -18039,15 +17969,15 @@ var OneAssistantMessageBottomBar = ({
18039
17969
  /* @__PURE__ */ jsx2("a", { href: url, rel: "noopener noreferrer", target: "_blank", children: name })
18040
17970
  ] }, url)) }) : null
18041
17971
  ] });
18042
- };
17972
+ }
18043
17973
 
18044
17974
  // src/views/Flows/Definitions/Common/One/widget/events/OneMessageEvent.tsx
18045
- var OneMessageEvent = ({
17975
+ function OneMessageEvent({
18046
17976
  event,
18047
17977
  isAgentMessage,
18048
17978
  updateWorkflow,
18049
17979
  previewWorkflow
18050
- }) => {
17980
+ }) {
18051
17981
  var _a, _b, _c;
18052
17982
  const navigateButtons = (_a = event.properties) == null ? void 0 : _a.navigateButtons;
18053
17983
  const isWithNavigateButtons = Boolean(navigateButtons == null ? void 0 : navigateButtons.length);
@@ -18086,19 +18016,17 @@ var OneMessageEvent = ({
18086
18016
  ]
18087
18017
  }
18088
18018
  );
18089
- };
18019
+ }
18090
18020
 
18091
18021
  // src/views/Flows/Definitions/Common/One/widget/events/OneWorkflowEvent.tsx
18092
18022
  var import_design_system_react_components54 = require("@livechat/design-system-react-components");
18093
- var OneWorkflowEvent = ({
18023
+ function OneWorkflowEvent({
18094
18024
  event,
18095
18025
  updateWorkflow,
18096
18026
  previewWorkflow
18097
- }) => {
18027
+ }) {
18098
18028
  const workflowExtraction = extractWorkflowFromEvent(event);
18099
- const triggerSpec = (workflowExtraction == null ? void 0 : workflowExtraction.workflow.trigger) ? workflowBuilderUtils.getTriggerConfig(
18100
- workflowExtraction.workflow.trigger
18101
- ) : void 0;
18029
+ const triggerSpec = (workflowExtraction == null ? void 0 : workflowExtraction.workflow.trigger) ? workflowBuilderUtils.getTriggerConfig(workflowExtraction.workflow.trigger) : void 0;
18102
18030
  return /* @__PURE__ */ jsx2("div", { className: "bubble-wrapper", css: messageEventWrapper(false), children: /* @__PURE__ */ jsxs2("div", { css: eventWrapper(false), children: [
18103
18031
  /* @__PURE__ */ jsxs2("div", { className: "bubble", css: bubble, children: [
18104
18032
  (workflowExtraction == null ? void 0 : workflowExtraction.before) ? /* @__PURE__ */ jsx2(import_design_system_react_components54.Text, { css: [eventText], children: /* @__PURE__ */ jsx2("div", { children: /* @__PURE__ */ jsx2(MarkdownEventRenderer, { children: workflowExtraction.before }) }) }) : null,
@@ -18110,7 +18038,7 @@ var OneWorkflowEvent = ({
18110
18038
  center: false,
18111
18039
  disabled: false,
18112
18040
  height: 4,
18113
- product: (triggerSpec == null ? void 0 : triggerSpec.customization.product) || OTHER_TYPES.SYSTEM,
18041
+ product: (triggerSpec == null ? void 0 : triggerSpec.customization.provider) || OTHER_TYPES.SYSTEM,
18114
18042
  width: 4
18115
18043
  }
18116
18044
  ),
@@ -18129,7 +18057,7 @@ var OneWorkflowEvent = ({
18129
18057
  center: false,
18130
18058
  disabled: false,
18131
18059
  height: 4,
18132
- product: taskSpec.customization.icon.toLowerCase() || OTHER_TYPES.SYSTEM,
18060
+ product: taskSpec.customization.provider || OTHER_TYPES.SYSTEM,
18133
18061
  width: 4
18134
18062
  }
18135
18063
  ),
@@ -18154,15 +18082,15 @@ var OneWorkflowEvent = ({
18154
18082
  }
18155
18083
  )
18156
18084
  ] }) });
18157
- };
18085
+ }
18158
18086
 
18159
18087
  // src/views/Flows/Definitions/Common/One/widget/events/OneEvent.tsx
18160
- var OneEvent = ({
18088
+ function OneEvent({
18161
18089
  event,
18162
18090
  isAgentMessage,
18163
18091
  updateWorkflow,
18164
18092
  previewWorkflow
18165
- }) => {
18093
+ }) {
18166
18094
  switch (event.type) {
18167
18095
  case "text-message": {
18168
18096
  if (isWorkflowEvent(event)) {
@@ -18198,14 +18126,14 @@ var OneEvent = ({
18198
18126
  default:
18199
18127
  return /* @__PURE__ */ jsx2("div", { css: virtuosoEmptyElement });
18200
18128
  }
18201
- };
18129
+ }
18202
18130
 
18203
18131
  // src/views/Flows/Definitions/Common/One/widget/events/OneEventsGroup.tsx
18204
- var OneEventsGroup = ({
18132
+ function OneEventsGroup({
18205
18133
  eventGroup,
18206
18134
  updateWorkflow,
18207
18135
  previewWorkflow
18208
- }) => {
18136
+ }) {
18209
18137
  const [firstEvent] = eventGroup;
18210
18138
  const isAgentMessage = firstEvent.authorType === "agent" /* Agent */;
18211
18139
  return /* @__PURE__ */ jsx2("div", { css: groupedEventsWrapper, children: /* @__PURE__ */ jsx2("div", { css: [eventsWrapper], children: eventGroup.map((event) => {
@@ -18220,10 +18148,12 @@ var OneEventsGroup = ({
18220
18148
  event.eventId
18221
18149
  );
18222
18150
  }) }) });
18223
- };
18151
+ }
18224
18152
 
18225
18153
  // src/views/Flows/Definitions/Common/One/widget/OneChatFeedSkeleton.tsx
18226
- var OneChatFeedSkeleton = () => /* @__PURE__ */ jsx2("div", { css: loaderContainer, children: /* @__PURE__ */ jsx2(SkeletonLine, { css: loaderChatItem, loading: true }) });
18154
+ function OneChatFeedSkeleton() {
18155
+ return /* @__PURE__ */ jsx2("div", { css: loaderContainer, children: /* @__PURE__ */ jsx2(SkeletonLine, { css: loaderChatItem, loading: true }) });
18156
+ }
18227
18157
 
18228
18158
  // src/views/Flows/Definitions/Common/One/widget/OneChatFeedContent.tsx
18229
18159
  function OneChatFeedContent({
@@ -18255,7 +18185,7 @@ function OneChatFeedContent({
18255
18185
  var import_design_system_icons25 = require("@livechat/design-system-icons");
18256
18186
  var import_design_system_react_components55 = require("@livechat/design-system-react-components");
18257
18187
  var import_developer_studio_ui_react24 = require("@livechat/developer-studio-ui-react");
18258
- var OneWidgetHeader = () => {
18188
+ function OneWidgetHeader() {
18259
18189
  const { toggleOneWidget } = useOneWidgetContext();
18260
18190
  return /* @__PURE__ */ jsxs2("div", { css: headerWrapper, children: [
18261
18191
  /* @__PURE__ */ jsxs2("div", { children: [
@@ -18272,13 +18202,10 @@ var OneWidgetHeader = () => {
18272
18202
  }
18273
18203
  ) })
18274
18204
  ] });
18275
- };
18205
+ }
18276
18206
 
18277
18207
  // src/views/Flows/Definitions/Common/One/widget/OneWidget.tsx
18278
- function OneWidget({
18279
- updateWorkflow,
18280
- previewWorkflow
18281
- }) {
18208
+ function OneWidget({ updateWorkflow, previewWorkflow }) {
18282
18209
  return /* @__PURE__ */ jsxs2("div", { css: [container, "lc-dark-theme"], children: [
18283
18210
  /* @__PURE__ */ jsx2(OneWidgetHeader, {}),
18284
18211
  /* @__PURE__ */ jsx2("div", { css: chatContainer, children: /* @__PURE__ */ jsxs2("div", { css: chatBody, children: [
@@ -18498,7 +18425,7 @@ function SwitcherControls({
18498
18425
  }
18499
18426
  };
18500
18427
  if (!visibility.switcher || !isDraft && !hasRelatedWorkflow) {
18501
- return /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(import_jsx_runtime86.Fragment, {});
18428
+ return;
18502
18429
  }
18503
18430
  const handleVersionClick = (id) => {
18504
18431
  if (id === "draft" && isDraft) {
@@ -18899,13 +18826,13 @@ function WorkflowDeleteModal({
18899
18826
  onClick: () => {
18900
18827
  if (version === "draft") {
18901
18828
  amplitudeWorkflowsJourney.draft.delete.actions.click();
18902
- discardDraft();
18829
+ void discardDraft();
18903
18830
  } else {
18904
18831
  amplitudeWorkflowsJourney.workflow.delete.actions.click(
18905
18832
  "builder",
18906
18833
  workflow.created_at
18907
18834
  );
18908
- remove();
18835
+ void remove();
18909
18836
  }
18910
18837
  },
18911
18838
  children: version === "draft" ? `Discard ${version}` : `Delete ${version}`
@@ -18988,7 +18915,7 @@ function WorkflowEditModal({ onClose }) {
18988
18915
  loading: isCreating,
18989
18916
  onClick: () => {
18990
18917
  amplitudeWorkflowsJourney.draft.edit.actions.click("override");
18991
- createDraft({ overrideConfirmed: true });
18918
+ void createDraft({ overrideConfirmed: true });
18992
18919
  },
18993
18920
  children: "Overwrite draft"
18994
18921
  }
@@ -19050,7 +18977,7 @@ function WorkflowPublishModal({
19050
18977
  {
19051
18978
  kind: "primary",
19052
18979
  loading: isPublishing,
19053
- onClick: () => publishDraft({
18980
+ onClick: () => void publishDraft({
19054
18981
  confirmed: true
19055
18982
  }),
19056
18983
  children: "Publish workflow"
@@ -19115,7 +19042,8 @@ function ExecuteWorkflow({ workflow, onClose }) {
19115
19042
  )
19116
19043
  }
19117
19044
  )
19118
- }
19045
+ },
19046
+ parameter
19119
19047
  )),
19120
19048
  /* @__PURE__ */ jsxs2(
19121
19049
  import_design_system_react_components64.FieldGroup,
@@ -19230,7 +19158,8 @@ function AddWorkflowTaskOptions({
19230
19158
  });
19231
19159
  },
19232
19160
  option
19233
- }
19161
+ },
19162
+ option.key
19234
19163
  ))
19235
19164
  ] });
19236
19165
  }
@@ -19238,6 +19167,7 @@ var Options_default = AddWorkflowTaskOptions;
19238
19167
 
19239
19168
  // src/views/Flows/Definitions/Edit/Tasks/Add.tsx
19240
19169
  function AddWorkflowTask({ basePath, onClose }) {
19170
+ var _a;
19241
19171
  const [search, setSearch] = (0, import_react87.useState)("");
19242
19172
  const location = (0, import_react_router_dom12.useLocation)();
19243
19173
  const navigate = (0, import_react_router_dom12.useNavigate)();
@@ -19265,9 +19195,16 @@ function AddWorkflowTask({ basePath, onClose }) {
19265
19195
  // })),
19266
19196
  // },
19267
19197
  {
19268
- name: PRODUCT_TYPE.LC,
19269
- displayName: PRODUCT_NAMES.livechat,
19270
- icon: /* @__PURE__ */ jsx2(ProductIcon_default, { height: 5, product: PRODUCT_TYPE.LC, width: 5 }),
19198
+ name: "livechat",
19199
+ displayName: import_developer_studio_api25.IntegrationDisplayNames.LiveChat,
19200
+ icon: /* @__PURE__ */ jsx2(
19201
+ ProductIcon_default,
19202
+ {
19203
+ height: 5,
19204
+ product: import_developer_studio_api25.IntegrationNames.LiveChat,
19205
+ width: 5
19206
+ }
19207
+ ),
19271
19208
  values: Object.values(livechatTaskConfigs()).map((x) => ({
19272
19209
  key: x.key,
19273
19210
  name: x.customization.displayName,
@@ -19276,9 +19213,17 @@ function AddWorkflowTask({ basePath, onClose }) {
19276
19213
  }))
19277
19214
  },
19278
19215
  {
19279
- name: PRODUCT_TYPE.HD,
19280
- displayName: PRODUCT_NAMES.helpdesk,
19281
- icon: /* @__PURE__ */ jsx2(ProductIcon_default, { center: true, height: 5, product: PRODUCT_TYPE.HD, width: 5 }),
19216
+ name: "helpdesk",
19217
+ displayName: import_developer_studio_api25.IntegrationDisplayNames.HelpDesk,
19218
+ icon: /* @__PURE__ */ jsx2(
19219
+ ProductIcon_default,
19220
+ {
19221
+ center: true,
19222
+ height: 5,
19223
+ product: import_developer_studio_api25.IntegrationNames.HelpDesk,
19224
+ width: 5
19225
+ }
19226
+ ),
19282
19227
  values: Object.values(helpdeskTaskConfigs()).map((x) => ({
19283
19228
  key: x.key,
19284
19229
  name: x.customization.displayName,
@@ -19287,16 +19232,9 @@ function AddWorkflowTask({ basePath, onClose }) {
19287
19232
  }))
19288
19233
  },
19289
19234
  {
19290
- name: OTHER_PRODUCT_TYPE.OPENAI,
19291
- displayName: "OpenAI",
19292
- icon: /* @__PURE__ */ jsx2(
19293
- ProductIcon_default,
19294
- {
19295
- height: 5,
19296
- product: OTHER_PRODUCT_TYPE.OPENAI,
19297
- width: 5
19298
- }
19299
- ),
19235
+ name: import_developer_studio_api25.IntegrationNames.OpenAI,
19236
+ displayName: import_developer_studio_api25.IntegrationDisplayNames.OpenAI,
19237
+ icon: /* @__PURE__ */ jsx2(ProductIcon_default, { height: 5, product: import_developer_studio_api25.IntegrationNames.OpenAI, width: 5 }),
19300
19238
  values: Object.values(openAiTaskConfigs()).map((x) => ({
19301
19239
  key: x.key,
19302
19240
  name: x.customization.displayName,
@@ -19388,10 +19326,11 @@ function AddWorkflowTask({ basePath, onClose }) {
19388
19326
  user == null ? void 0 : user.meta.email
19389
19327
  );
19390
19328
  (0, import_react87.useEffect)(() => {
19391
- var _a, _b, _c, _d, _e, _f;
19329
+ var _a2, _b, _c, _d, _e, _f, _g, _h;
19392
19330
  if (!params.task) {
19393
- const firstTask = (_c = (_b = (_a = config2.find((el) => el.name === params.service)) == null ? void 0 : _a.values.sort((a, b) => a.name.localeCompare(b.name))) == null ? void 0 : _b[0]) == null ? void 0 : _c.key;
19394
- navigate(`${basePath}/${params.service}/${firstTask}`, {
19331
+ const service = (_a2 = params.service) != null ? _a2 : "livechat";
19332
+ const firstTask = (_d = (_c = (_b = config2.find((el) => el.name === service)) == null ? void 0 : _b.values.sort((a, b) => a.name.localeCompare(b.name))) == null ? void 0 : _c[0]) == null ? void 0 : _d.key;
19333
+ navigate(`${basePath}/${service}/${firstTask}`, {
19395
19334
  state: location.state
19396
19335
  });
19397
19336
  }
@@ -19399,13 +19338,13 @@ function AddWorkflowTask({ basePath, onClose }) {
19399
19338
  const tasks = params.service ? templates.tasks[params.service] : void 0;
19400
19339
  const task2 = params.task && tasks ? tasks[params.task] : void 0;
19401
19340
  const suggestions = workflowBuilderUtils.stringifyToObjectKeyArray(
19402
- (_d = location.state.frame) != null ? _d : {},
19341
+ (_f = (_e = location.state) == null ? void 0 : _e.frame) != null ? _f : {},
19403
19342
  {}
19404
19343
  );
19405
19344
  const matches = Object.fromEntries(
19406
- (_f = (_e = workflowBuilderUtils.getMatchesInText(workflowBuilderUtils.stringify(task2), {
19345
+ (_h = (_g = workflowBuilderUtils.getMatchesInText(workflowBuilderUtils.stringify(task2), {
19407
19346
  prefix: "#"
19408
- })) == null ? void 0 : _e.map((match2) => {
19347
+ })) == null ? void 0 : _g.map((match2) => {
19409
19348
  const matchesWithAliases = match2.split("__");
19410
19349
  const path = suggestions.find(
19411
19350
  (x) => matchesWithAliases.some(
@@ -19416,7 +19355,7 @@ function AddWorkflowTask({ basePath, onClose }) {
19416
19355
  return [match2, `\${${path}}`];
19417
19356
  }
19418
19357
  return [match2, null];
19419
- })) != null ? _f : []
19358
+ })) != null ? _h : []
19420
19359
  );
19421
19360
  const newTask = task2 ? workflowBuilderUtils.resolveObjectByContext(task2, matches, {
19422
19361
  prefix: "#"
@@ -19426,7 +19365,7 @@ function AddWorkflowTask({ basePath, onClose }) {
19426
19365
  });
19427
19366
  }, [
19428
19367
  params.task,
19429
- location.state.frame,
19368
+ (_a = location.state) == null ? void 0 : _a.frame,
19430
19369
  params.service,
19431
19370
  navigate,
19432
19371
  basePath,
@@ -19434,13 +19373,14 @@ function AddWorkflowTask({ basePath, onClose }) {
19434
19373
  workflow.trigger
19435
19374
  ]);
19436
19375
  const handleAddTask = (task2) => {
19376
+ var _a2;
19437
19377
  if (task2) {
19438
19378
  amplitudeWorkflowsJourney.draft.edit.actions.addAction(
19439
19379
  task2.type,
19440
19380
  params.service
19441
19381
  );
19442
19382
  addTask(task2, {
19443
- index: location.state.index
19383
+ index: (_a2 = location.state) == null ? void 0 : _a2.index
19444
19384
  });
19445
19385
  }
19446
19386
  onClose();
@@ -19501,7 +19441,7 @@ function AddWorkflowTask({ basePath, onClose }) {
19501
19441
  }
19502
19442
  ),
19503
19443
  config2.map(({ name, displayName, icon: icon2, values }) => {
19504
- const revertIconColor = getWorkflowsEnv("isHeadless") && (name === "openai" || name === import_developer_studio_api25.IntegrationNames.BigCommerce);
19444
+ const revertIconColor = getWorkflowsEnv("isHeadless") && (name === import_developer_studio_api25.IntegrationNames.OpenAI || name === import_developer_studio_api25.IntegrationNames.BigCommerce);
19505
19445
  if (search) {
19506
19446
  if (values.some(
19507
19447
  (el) => el.name.toLowerCase().includes(search.toLowerCase())
@@ -19692,7 +19632,8 @@ function AddWorkflowTriggerOptions({
19692
19632
  });
19693
19633
  },
19694
19634
  option
19695
- }
19635
+ },
19636
+ option.key
19696
19637
  ))
19697
19638
  ] });
19698
19639
  }
@@ -19723,9 +19664,16 @@ function AddWorkflowTrigger({ basePath, onClose }) {
19723
19664
  }))
19724
19665
  },
19725
19666
  {
19726
- name: PRODUCT_TYPE.LC,
19727
- displayName: PRODUCT_NAMES.livechat,
19728
- icon: /* @__PURE__ */ jsx2(ProductIcon_default, { height: 5, product: PRODUCT_TYPE.LC, width: 5 }),
19667
+ name: "livechat",
19668
+ displayName: import_developer_studio_api26.IntegrationDisplayNames.LiveChat,
19669
+ icon: /* @__PURE__ */ jsx2(
19670
+ ProductIcon_default,
19671
+ {
19672
+ height: 5,
19673
+ product: import_developer_studio_api26.IntegrationNames.LiveChat,
19674
+ width: 5
19675
+ }
19676
+ ),
19729
19677
  values: Object.values(livechatTriggerConfigs()).map((x) => ({
19730
19678
  key: x.key,
19731
19679
  name: x.customization.displayName,
@@ -19733,9 +19681,9 @@ function AddWorkflowTrigger({ basePath, onClose }) {
19733
19681
  }))
19734
19682
  },
19735
19683
  // {
19736
- // name: PRODUCT_TYPE.HD,
19737
- // displayName: PRODUCT_NAMES.helpdesk,
19738
- // icon: <ProductIcon height={5} product={PRODUCT_TYPE.HD} width={5} />,
19684
+ // name: "helpdesk",
19685
+ // displayName: IntegrationDisplayNames.HelpDesk,
19686
+ // icon: <ProductIcon height={5} product={IntegrationNames.HelpDesk} width={5} />,
19739
19687
  // values: Object.values(helpDeskTriggerConfigs()).map((x) => ({
19740
19688
  // key: x.key,
19741
19689
  // name: x.customization.displayName,
@@ -20226,7 +20174,7 @@ function WorkflowBuilderNavbar() {
20226
20174
  import_design_system_react_components69.Switch,
20227
20175
  {
20228
20176
  on: workflow.active,
20229
- onChange: activate,
20177
+ onChange: () => void activate(),
20230
20178
  size: "medium",
20231
20179
  state: isActivating ? "loading" : workflow.draft ? "locked" : "regular"
20232
20180
  }
@@ -20263,7 +20211,7 @@ function WorkflowBuilderNavbar() {
20263
20211
  amplitudeWorkflowsJourney.draft.publish.actions.click(
20264
20212
  workflow.definition.tasks.length
20265
20213
  );
20266
- publishDraft();
20214
+ void publishDraft();
20267
20215
  },
20268
20216
  children: "Publish"
20269
20217
  }
@@ -20278,7 +20226,7 @@ function WorkflowBuilderNavbar() {
20278
20226
  workflow.id
20279
20227
  );
20280
20228
  }
20281
- createDraft();
20229
+ void createDraft();
20282
20230
  },
20283
20231
  children: "Edit"
20284
20232
  }
@@ -20315,7 +20263,7 @@ function EditWorkflow() {
20315
20263
  const workflowQuery = useFetchWorkflow(id === "new" ? void 0 : id);
20316
20264
  useFetchWorkflow((_a = workflowQuery.data) == null ? void 0 : _a.related_workflow_id);
20317
20265
  if (!id) {
20318
- return /* @__PURE__ */ jsx2(Fragment4, {});
20266
+ return;
20319
20267
  }
20320
20268
  if (id !== "new" && workflowQuery.isLoading) {
20321
20269
  return /* @__PURE__ */ jsx2(import_developer_studio_ui_react33.Loader, { stretch: true });
@@ -20379,18 +20327,28 @@ function EditWorkflow() {
20379
20327
  /* @__PURE__ */ jsx2(
20380
20328
  import_react_router_dom15.Route,
20381
20329
  {
20382
- element: /* @__PURE__ */ jsx2(WorkflowPublishModal, { onClose: () => {
20383
- navigate(basePath);
20384
- } }),
20330
+ element: /* @__PURE__ */ jsx2(
20331
+ WorkflowPublishModal,
20332
+ {
20333
+ onClose: () => {
20334
+ navigate(basePath);
20335
+ }
20336
+ }
20337
+ ),
20385
20338
  path: "publish"
20386
20339
  }
20387
20340
  ),
20388
20341
  /* @__PURE__ */ jsx2(
20389
20342
  import_react_router_dom15.Route,
20390
20343
  {
20391
- element: /* @__PURE__ */ jsx2(WorkflowEditModal, { onClose: () => {
20392
- navigate(basePath);
20393
- } }),
20344
+ element: /* @__PURE__ */ jsx2(
20345
+ WorkflowEditModal,
20346
+ {
20347
+ onClose: () => {
20348
+ navigate(basePath);
20349
+ }
20350
+ }
20351
+ ),
20394
20352
  path: "edit"
20395
20353
  }
20396
20354
  ),
@@ -21019,7 +20977,7 @@ var getFlowTemplates = () => [
21019
20977
  trigger: {
21020
20978
  type: "webhook",
21021
20979
  webhook: {
21022
- source: "text-livechat",
20980
+ source: import_developer_studio_api27.IntegrationNames.LiveChat,
21023
20981
  event: {
21024
20982
  name: import_developer_studio_api27.TextLivechatEventNames.ChatEnded
21025
20983
  },
@@ -22172,8 +22130,7 @@ function WorkflowTemplatePreviewModal({
22172
22130
  [onClose, navigate]
22173
22131
  );
22174
22132
  const renderProductTags = (products) => {
22175
- var _a;
22176
- const templateIcons = (_a = template.icons) != null ? _a : [];
22133
+ const templateIcons = template.icons;
22177
22134
  return products.map((product, i) => {
22178
22135
  const icon2 = templateIcons[i];
22179
22136
  return /* @__PURE__ */ jsx2(
@@ -22258,14 +22215,14 @@ function WorkflowTemplatePreviewModal({
22258
22215
  /* @__PURE__ */ jsx2(import_design_system_react_components71.Text, { bold: true, size: "md", children: template.name }),
22259
22216
  /* @__PURE__ */ jsx2(import_design_system_react_components71.Text, { size: "md", children: template.workflow.description }),
22260
22217
  /* @__PURE__ */ jsx2(import_design_system_react_components71.Text, { noMargin: true, size: "md", children: "Here's how it works:" }),
22261
- /* @__PURE__ */ jsx2(List, { children: template.list.map((item, i) => /* @__PURE__ */ jsxs2("li", { children: [
22218
+ /* @__PURE__ */ jsx2(List, { children: template.list.map((item) => /* @__PURE__ */ jsxs2("li", { children: [
22262
22219
  /* @__PURE__ */ jsxs2(import_design_system_react_components71.Text, { as: "span", bold: true, noMargin: true, size: "md", children: [
22263
22220
  item.product,
22264
22221
  ":",
22265
22222
  " "
22266
22223
  ] }),
22267
22224
  /* @__PURE__ */ jsx2(import_design_system_react_components71.Text, { as: "span", noMargin: true, size: "md", children: item.description })
22268
- ] }, i)) })
22225
+ ] }, `${item.product}`)) })
22269
22226
  ]
22270
22227
  }
22271
22228
  ),
@@ -22282,7 +22239,7 @@ function WorkflowTemplatePreviewModal({
22282
22239
  children: "Products used:"
22283
22240
  }
22284
22241
  ),
22285
- /* @__PURE__ */ jsx2(import_developer_studio_ui_react35.Row, { gap: `var(${import_design_system_react_components71.SpacingToken.Spacing1})`, notPadded: true, children: template.products ? renderProductTags(template.products) : null })
22242
+ /* @__PURE__ */ jsx2(import_developer_studio_ui_react35.Row, { gap: `var(${import_design_system_react_components71.SpacingToken.Spacing1})`, notPadded: true, children: renderProductTags(template.products) })
22286
22243
  ] })
22287
22244
  ]
22288
22245
  }
@@ -22302,14 +22259,12 @@ function WorkflowTemplatePreview({
22302
22259
  const flowTemplates = (0, import_react96.useMemo)(() => getFlowTemplates(), []);
22303
22260
  const params = (0, import_react_router_dom17.useParams)();
22304
22261
  const template = flowTemplates.find((t) => t.id === params.template);
22305
- if (!workflow) {
22306
- workflow = template == null ? void 0 : template.workflow;
22307
- }
22262
+ const targetWorkflow = workflow || (template == null ? void 0 : template.workflow);
22308
22263
  if (!template) {
22309
- return /* @__PURE__ */ jsx2(Fragment4, {});
22264
+ return;
22310
22265
  }
22311
- if (!workflow) {
22312
- return /* @__PURE__ */ jsx2(Fragment4, {});
22266
+ if (!targetWorkflow) {
22267
+ return;
22313
22268
  }
22314
22269
  return /* @__PURE__ */ jsx2(
22315
22270
  WorkflowContextProvider,
@@ -22325,7 +22280,7 @@ function WorkflowTemplatePreview({
22325
22280
  },
22326
22281
  validation: { hidden: true, strategy: "non-blocking" }
22327
22282
  },
22328
- workflow,
22283
+ workflow: targetWorkflow,
22329
22284
  children: /* @__PURE__ */ jsx2(Modal_default, { onClose, template })
22330
22285
  }
22331
22286
  );
@@ -22557,7 +22512,7 @@ function WorkflowTemplateCard({
22557
22512
  CategoryIcon_default(category),
22558
22513
  /* @__PURE__ */ jsx2(import_design_system_react_components75.Heading, { as: "div", size: "xs", children: name })
22559
22514
  ] }),
22560
- /* @__PURE__ */ jsx2(import_developer_studio_ui_react39.Row, { gap: `var(${import_design_system_react_components75.SpacingToken.Spacing1})`, noWrap: true, notPadded: true, children: icons.map((icon2, i) => /* @__PURE__ */ jsx2(IconWrapper2, { children: /* @__PURE__ */ jsx2(import_design_system_react_components75.Icon, { kind: "primary", size: "medium", source: icon2 }) }, i)) })
22515
+ /* @__PURE__ */ jsx2(import_developer_studio_ui_react39.Row, { gap: `var(${import_design_system_react_components75.SpacingToken.Spacing1})`, noWrap: true, notPadded: true, children: icons.map((icon2, i) => /* @__PURE__ */ jsx2(IconWrapper2, { children: /* @__PURE__ */ jsx2(import_design_system_react_components75.Icon, { kind: "primary", size: "medium", source: icon2 }) }, `${i.toString()}`)) })
22561
22516
  ]
22562
22517
  }
22563
22518
  )
@@ -22573,7 +22528,7 @@ var Grid = newStyled.div`
22573
22528
  width: 100%;
22574
22529
  gap: var(${import_design_system_react_components76.SpacingToken.Spacing3});
22575
22530
  `;
22576
- function WorkflowsHome({ isOnModal, basePath }) {
22531
+ function WorkflowsHome({ isOnModal }) {
22577
22532
  const [product, setProduct] = (0, import_react100.useState)("All");
22578
22533
  const [category, setCategory] = (0, import_react100.useState)("All");
22579
22534
  const flowTemplates = (0, import_react100.useMemo)(() => getFlowTemplates(), []);
@@ -22582,8 +22537,8 @@ function WorkflowsHome({ isOnModal, basePath }) {
22582
22537
  (template) => category === "All" || template.category.includes(category)
22583
22538
  ];
22584
22539
  const filteredTemplates = flowTemplates.filter((template) => {
22585
- for (let i = 0; i < filters.length; i++) {
22586
- if (!filters[i](template)) {
22540
+ for (const filter of filters) {
22541
+ if (!filter(template)) {
22587
22542
  return false;
22588
22543
  }
22589
22544
  }
@@ -22660,7 +22615,7 @@ function WorkflowsHome({ isOnModal, basePath }) {
22660
22615
  size: "md",
22661
22616
  children: "No templates found"
22662
22617
  }
22663
- ) : filteredTemplates.map((template, i) => /* @__PURE__ */ jsx2(
22618
+ ) : filteredTemplates.map((template) => /* @__PURE__ */ jsx2(
22664
22619
  Template_default,
22665
22620
  {
22666
22621
  category: template.category,
@@ -22668,7 +22623,7 @@ function WorkflowsHome({ isOnModal, basePath }) {
22668
22623
  id: template.id,
22669
22624
  name: template.name
22670
22625
  },
22671
- i
22626
+ template.id
22672
22627
  )) })
22673
22628
  ]
22674
22629
  }
@@ -22870,108 +22825,90 @@ function WorkflowsTable({ workflowsQuery, state }) {
22870
22825
  tag
22871
22826
  );
22872
22827
  }) }) }),
22873
- /* @__PURE__ */ jsx2(
22874
- "td",
22828
+ /* @__PURE__ */ jsx2("td", { children: /* @__PURE__ */ jsx2(
22829
+ import_design_system_react_components79.Tooltip,
22875
22830
  {
22876
- onClick: (e) => {
22877
- e.stopPropagation();
22878
- },
22879
- children: /* @__PURE__ */ jsx2(
22880
- import_design_system_react_components79.Tooltip,
22831
+ triggerClassName: "tooltip-trigger",
22832
+ triggerOnHover: true,
22833
+ triggerRenderer: /* @__PURE__ */ jsx2(import_developer_studio_ui_react41.StopPropagation, { children: /* @__PURE__ */ jsx2(
22834
+ import_design_system_react_components79.Switch,
22881
22835
  {
22882
- triggerClassName: "tooltip-trigger",
22883
- triggerOnHover: true,
22884
- triggerRenderer: /* @__PURE__ */ jsx2(
22885
- import_design_system_react_components79.Switch,
22886
- {
22887
- css: css`
22888
- vertical-align: bottom;
22889
- `,
22890
- on: (_e = workflow.active) != null ? _e : false,
22891
- onChange: (e) => __async(this, null, function* () {
22892
- e.stopPropagation();
22893
- yield activateWorkflowAction.mutateAsync({
22894
- id: workflow.id,
22895
- active: !workflow.active
22896
- });
22897
- }),
22898
- state: activateWorkflowAction.isLoading && ((_f = activateWorkflowAction.variables) == null ? void 0 : _f.id) === workflow.id ? "loading" : workflow.draft ? "locked" : "regular"
22899
- }
22900
- ),
22901
- children: workflow.draft ? "Publish the draft to activate this workflow" : workflow.active ? "Deactivate flow" : "Activate flow"
22836
+ css: css`
22837
+ vertical-align: bottom;
22838
+ `,
22839
+ on: (_e = workflow.active) != null ? _e : false,
22840
+ onChange: (e) => {
22841
+ e.stopPropagation();
22842
+ void activateWorkflowAction.mutateAsync({
22843
+ id: workflow.id,
22844
+ active: !workflow.active
22845
+ });
22846
+ },
22847
+ state: activateWorkflowAction.isLoading && ((_f = activateWorkflowAction.variables) == null ? void 0 : _f.id) === workflow.id ? "loading" : workflow.draft ? "locked" : "regular"
22902
22848
  }
22903
- )
22849
+ ) }),
22850
+ children: workflow.draft ? "Publish the draft to activate this workflow" : workflow.active ? "Deactivate flow" : "Activate flow"
22904
22851
  }
22905
- ),
22906
- /* @__PURE__ */ jsx2(
22907
- "td",
22852
+ ) }),
22853
+ /* @__PURE__ */ jsx2("td", { children: !workflow.draft && /* @__PURE__ */ jsx2(
22854
+ import_design_system_react_components79.Button,
22908
22855
  {
22856
+ icon: /* @__PURE__ */ jsx2(import_design_system_react_components79.Icon, { source: import_design_system_icons39.Info }),
22857
+ kind: "plain",
22909
22858
  onClick: (e) => {
22910
22859
  e.stopPropagation();
22911
- },
22912
- children: !workflow.draft && /* @__PURE__ */ jsx2(
22913
- import_design_system_react_components79.Button,
22914
- {
22915
- icon: /* @__PURE__ */ jsx2(import_design_system_react_components79.Icon, { source: import_design_system_icons39.Info }),
22916
- kind: "plain",
22917
- onClick: () => {
22918
- navigate(`${workflow.id}/info`);
22919
- }
22920
- }
22921
- )
22860
+ navigate(`${workflow.id}/info`);
22861
+ }
22922
22862
  }
22923
- ),
22924
- /* @__PURE__ */ jsx2(
22925
- "td",
22863
+ ) }),
22864
+ /* @__PURE__ */ jsx2("td", { align: "right", children: /* @__PURE__ */ jsx2(import_developer_studio_ui_react41.StopPropagation, { children: /* @__PURE__ */ jsx2(
22865
+ import_design_system_react_components79.ActionMenu,
22926
22866
  {
22927
- align: "right",
22928
- onClick: (e) => {
22929
- e.stopPropagation();
22930
- },
22931
- children: /* @__PURE__ */ jsx2(
22932
- import_design_system_react_components79.ActionMenu,
22867
+ options: [
22933
22868
  {
22934
- options: [
22869
+ key: "run",
22870
+ element: /* @__PURE__ */ jsx2(
22871
+ import_design_system_react_components79.ActionMenuItem,
22935
22872
  {
22936
- key: "run",
22937
- element: /* @__PURE__ */ jsx2(
22938
- import_design_system_react_components79.ActionMenuItem,
22939
- {
22940
- leftNode: /* @__PURE__ */ jsx2(import_design_system_react_components79.Icon, { source: import_design_system_icons39.PlayArrow }),
22941
- children: "Trigger manually"
22942
- }
22943
- ),
22944
- onClick: () => {
22945
- navigate(`/workflow/${workflow.id}/execute`);
22946
- }
22947
- },
22948
- {
22949
- key: "delete",
22950
- element: /* @__PURE__ */ jsx2(import_design_system_react_components79.ActionMenuItem, { leftNode: /* @__PURE__ */ jsx2(import_design_system_react_components79.Icon, { source: import_design_system_icons39.Delete }), children: "Delete" }),
22951
- onClick: () => __async(this, null, function* () {
22952
- amplitudeWorkflowsJourney.workflow.delete.actions.click(
22953
- "list"
22954
- );
22955
- yield deleteAction.mutateAsync(workflow);
22956
- notifications.showSuccess(
22957
- "Workflow has been deleted successfully"
22958
- );
22959
- })
22873
+ leftNode: /* @__PURE__ */ jsx2(import_design_system_react_components79.Icon, { source: import_design_system_icons39.PlayArrow }),
22874
+ children: "Trigger manually"
22960
22875
  }
22961
- ],
22962
- triggerRenderer: /* @__PURE__ */ jsx2(
22963
- import_design_system_react_components79.Button,
22876
+ ),
22877
+ onClick: () => {
22878
+ navigate(`/workflow/${workflow.id}/execute`);
22879
+ }
22880
+ },
22881
+ {
22882
+ key: "delete",
22883
+ element: /* @__PURE__ */ jsx2(
22884
+ import_design_system_react_components79.ActionMenuItem,
22964
22885
  {
22965
- icon: /* @__PURE__ */ jsx2(import_design_system_react_components79.Icon, { source: import_design_system_icons39.MoreHoriz }),
22966
- kind: "text",
22967
- loading: deleteAction.isLoading ? ((_g = deleteAction.variables) == null ? void 0 : _g.id) === workflow.id : void 0,
22968
- size: "compact"
22886
+ leftNode: /* @__PURE__ */ jsx2(import_design_system_react_components79.Icon, { source: import_design_system_icons39.Delete }),
22887
+ children: "Delete"
22969
22888
  }
22970
- )
22889
+ ),
22890
+ onClick: () => void (() => __async(this, null, function* () {
22891
+ amplitudeWorkflowsJourney.workflow.delete.actions.click(
22892
+ "list"
22893
+ );
22894
+ yield deleteAction.mutateAsync(workflow);
22895
+ notifications.showSuccess(
22896
+ "Workflow has been deleted successfully"
22897
+ );
22898
+ }))()
22899
+ }
22900
+ ],
22901
+ triggerRenderer: /* @__PURE__ */ jsx2(
22902
+ import_design_system_react_components79.Button,
22903
+ {
22904
+ icon: /* @__PURE__ */ jsx2(import_design_system_react_components79.Icon, { source: import_design_system_icons39.MoreHoriz }),
22905
+ kind: "text",
22906
+ loading: deleteAction.isLoading ? ((_g = deleteAction.variables) == null ? void 0 : _g.id) === workflow.id : void 0,
22907
+ size: "compact"
22971
22908
  }
22972
22909
  )
22973
22910
  }
22974
- )
22911
+ ) }) })
22975
22912
  ]
22976
22913
  },
22977
22914
  workflow.id