randmarcomps 1.243.0 → 1.245.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/randmarcomps.d.ts +15 -0
- package/dist/randmarcomps.js +521 -122
- package/dist/randmarcomps.umd.cjs +6 -6
- package/package.json +2 -2
package/dist/randmarcomps.js
CHANGED
|
@@ -14894,23 +14894,23 @@ const emptySplitApi = createApi({
|
|
|
14894
14894
|
url: `/V4/Reseller/${e.routeResellerId}/Billing/StatementDetails`
|
|
14895
14895
|
})
|
|
14896
14896
|
}),
|
|
14897
|
-
|
|
14897
|
+
postV4PartnerByRouteApplicationIdBusinessDevelopmentConversationPartnerAndPartnerId: t.mutation({
|
|
14898
14898
|
query: (e) => ({
|
|
14899
|
-
url: `/V4/Partner/${e.
|
|
14899
|
+
url: `/V4/Partner/${e.routeApplicationId}/BusinessDevelopment/Conversation/Partner/${e.partnerId}`,
|
|
14900
14900
|
method: "POST",
|
|
14901
14901
|
params: {
|
|
14902
14902
|
message: e.message
|
|
14903
14903
|
}
|
|
14904
14904
|
})
|
|
14905
14905
|
}),
|
|
14906
|
-
|
|
14906
|
+
getV4PartnerByRouteApplicationIdBusinessDevelopmentConversations: t.query({
|
|
14907
14907
|
query: (e) => ({
|
|
14908
|
-
url: `/V4/Partner/${e.
|
|
14908
|
+
url: `/V4/Partner/${e.routeApplicationId}/BusinessDevelopment/Conversations`
|
|
14909
14909
|
})
|
|
14910
14910
|
}),
|
|
14911
|
-
|
|
14911
|
+
getV4PartnerByRouteApplicationIdBusinessDevelopmentConversationAndConversationIdMessages: t.query({
|
|
14912
14912
|
query: (e) => ({
|
|
14913
|
-
url: `/V4/Partner/${e.
|
|
14913
|
+
url: `/V4/Partner/${e.routeApplicationId}/BusinessDevelopment/Conversation/${e.conversationId}/Messages`
|
|
14914
14914
|
})
|
|
14915
14915
|
}),
|
|
14916
14916
|
getV4ResellerByRouteResellerIdCartAndCartName: t.query({
|
|
@@ -15235,27 +15235,27 @@ const emptySplitApi = createApi({
|
|
|
15235
15235
|
method: "PUT"
|
|
15236
15236
|
})
|
|
15237
15237
|
}),
|
|
15238
|
-
|
|
15238
|
+
putV4PartnerByRouteApplicationIdIntegrationKeyAndKeyName: t.mutation({
|
|
15239
15239
|
query: (e) => ({
|
|
15240
|
-
url: `/V4/Partner/${e.
|
|
15240
|
+
url: `/V4/Partner/${e.routeApplicationId}/IntegrationKey/${e.keyName}`,
|
|
15241
15241
|
method: "PUT"
|
|
15242
15242
|
})
|
|
15243
15243
|
}),
|
|
15244
|
-
|
|
15244
|
+
postV4PartnerByRouteApplicationIdIntegrationKeyAndKeyName: t.mutation({
|
|
15245
15245
|
query: (e) => ({
|
|
15246
|
-
url: `/V4/Partner/${e.
|
|
15246
|
+
url: `/V4/Partner/${e.routeApplicationId}/IntegrationKey/${e.keyName}`,
|
|
15247
15247
|
method: "POST"
|
|
15248
15248
|
})
|
|
15249
15249
|
}),
|
|
15250
|
-
|
|
15250
|
+
deleteV4PartnerByRouteApplicationIdIntegrationKeyAndKeyName: t.mutation({
|
|
15251
15251
|
query: (e) => ({
|
|
15252
|
-
url: `/V4/Partner/${e.
|
|
15252
|
+
url: `/V4/Partner/${e.routeApplicationId}/IntegrationKey/${e.keyName}`,
|
|
15253
15253
|
method: "DELETE"
|
|
15254
15254
|
})
|
|
15255
15255
|
}),
|
|
15256
|
-
|
|
15256
|
+
getV4PartnerByRouteApplicationIdIntegrationKeys: t.query({
|
|
15257
15257
|
query: (e) => ({
|
|
15258
|
-
url: `/V4/Partner/${e.
|
|
15258
|
+
url: `/V4/Partner/${e.routeApplicationId}/IntegrationKeys`
|
|
15259
15259
|
})
|
|
15260
15260
|
}),
|
|
15261
15261
|
getV4ManufacturerByRouteManufacturerIdInventoryValue: t.query({
|
|
@@ -15277,14 +15277,14 @@ const emptySplitApi = createApi({
|
|
|
15277
15277
|
body: e.body
|
|
15278
15278
|
})
|
|
15279
15279
|
}),
|
|
15280
|
-
|
|
15280
|
+
getV4PartnerByRouteApplicationIdJobs: t.query({
|
|
15281
15281
|
query: (e) => ({
|
|
15282
|
-
url: `/V4/Partner/${e.
|
|
15282
|
+
url: `/V4/Partner/${e.routeApplicationId}/Jobs`
|
|
15283
15283
|
})
|
|
15284
15284
|
}),
|
|
15285
|
-
|
|
15285
|
+
getV4PartnerByRouteApplicationIdLogs: t.query({
|
|
15286
15286
|
query: (e) => ({
|
|
15287
|
-
url: `/V4/Partner/${e.
|
|
15287
|
+
url: `/V4/Partner/${e.routeApplicationId}/Logs`,
|
|
15288
15288
|
params: {
|
|
15289
15289
|
startDate: e.startDate
|
|
15290
15290
|
}
|
|
@@ -15330,12 +15330,9 @@ const emptySplitApi = createApi({
|
|
|
15330
15330
|
}
|
|
15331
15331
|
})
|
|
15332
15332
|
}),
|
|
15333
|
-
|
|
15333
|
+
getV4PartnerByRouteApplicationIdManufacturerAndManufacturerIdCategoryCode: t.query({
|
|
15334
15334
|
query: (e) => ({
|
|
15335
|
-
url: `/V4/Partner/${e.
|
|
15336
|
-
params: {
|
|
15337
|
-
routeResellerId: e.routeResellerId
|
|
15338
|
-
}
|
|
15335
|
+
url: `/V4/Partner/${e.routeApplicationId}/Manufacturer/${e.manufacturerId}/${e.categoryCode}`
|
|
15339
15336
|
})
|
|
15340
15337
|
}),
|
|
15341
15338
|
getV4ResellerByRouteResellerIdManufacturers: t.query({
|
|
@@ -15346,9 +15343,9 @@ const emptySplitApi = createApi({
|
|
|
15346
15343
|
}
|
|
15347
15344
|
})
|
|
15348
15345
|
}),
|
|
15349
|
-
|
|
15346
|
+
getV4PartnerByRouteApplicationIdManufacturers: t.query({
|
|
15350
15347
|
query: (e) => ({
|
|
15351
|
-
url: `/V4/Partner/${e.
|
|
15348
|
+
url: `/V4/Partner/${e.routeApplicationId}/Manufacturers`,
|
|
15352
15349
|
params: {
|
|
15353
15350
|
withSpecification: e.withSpecification
|
|
15354
15351
|
}
|
|
@@ -15374,41 +15371,41 @@ const emptySplitApi = createApi({
|
|
|
15374
15371
|
body: e.convertToShortModel
|
|
15375
15372
|
})
|
|
15376
15373
|
}),
|
|
15377
|
-
|
|
15374
|
+
getV4PartnerByRouteApplicationIdMediaShorts: t.query({
|
|
15378
15375
|
query: (e) => ({
|
|
15379
|
-
url: `/V4/Partner/${e.
|
|
15376
|
+
url: `/V4/Partner/${e.routeApplicationId}/Media/Shorts`
|
|
15380
15377
|
})
|
|
15381
15378
|
}),
|
|
15382
|
-
|
|
15379
|
+
getV4PartnerByRouteApplicationIdMediaShortAndFileName: t.query({
|
|
15383
15380
|
query: (e) => ({
|
|
15384
|
-
url: `/V4/Partner/${e.
|
|
15381
|
+
url: `/V4/Partner/${e.routeApplicationId}/Media/Short/${e.fileName}`
|
|
15385
15382
|
})
|
|
15386
15383
|
}),
|
|
15387
|
-
|
|
15384
|
+
postV4PartnerByRouteApplicationIdMediaShortAndFileName: t.mutation({
|
|
15388
15385
|
query: (e) => ({
|
|
15389
|
-
url: `/V4/Partner/${e.
|
|
15386
|
+
url: `/V4/Partner/${e.routeApplicationId}/Media/Short/${e.fileName}`,
|
|
15390
15387
|
method: "POST",
|
|
15391
15388
|
params: {
|
|
15392
15389
|
newValue: e.newValue
|
|
15393
15390
|
}
|
|
15394
15391
|
})
|
|
15395
15392
|
}),
|
|
15396
|
-
|
|
15393
|
+
deleteV4PartnerByRouteApplicationIdMediaShortAndFileName: t.mutation({
|
|
15397
15394
|
query: (e) => ({
|
|
15398
|
-
url: `/V4/Partner/${e.
|
|
15395
|
+
url: `/V4/Partner/${e.routeApplicationId}/Media/Short/${e.fileName}`,
|
|
15399
15396
|
method: "DELETE"
|
|
15400
15397
|
})
|
|
15401
15398
|
}),
|
|
15402
|
-
|
|
15399
|
+
putV4PartnerByRouteApplicationIdMediaTextToSpeech: t.mutation({
|
|
15403
15400
|
query: (e) => ({
|
|
15404
|
-
url: `/V4/Partner/${e.
|
|
15401
|
+
url: `/V4/Partner/${e.routeApplicationId}/Media/TextToSpeech`,
|
|
15405
15402
|
method: "PUT",
|
|
15406
15403
|
body: e.textToSpeechModel
|
|
15407
15404
|
})
|
|
15408
15405
|
}),
|
|
15409
|
-
|
|
15406
|
+
putV4PartnerByRouteApplicationIdMediaShortsFromLong: t.mutation({
|
|
15410
15407
|
query: (e) => ({
|
|
15411
|
-
url: `/V4/Partner/${e.
|
|
15408
|
+
url: `/V4/Partner/${e.routeApplicationId}/Media/ShortsFromLong`,
|
|
15412
15409
|
method: "PUT",
|
|
15413
15410
|
body: e.shortsFromLongModel
|
|
15414
15411
|
})
|
|
@@ -15731,9 +15728,9 @@ const emptySplitApi = createApi({
|
|
|
15731
15728
|
url: `/V4/Reseller/${e.routeResellerId}/Orders/Shipments`
|
|
15732
15729
|
})
|
|
15733
15730
|
}),
|
|
15734
|
-
|
|
15731
|
+
getV4PartnerByRouteApplicationIdPartnerAndPartnerId: t.query({
|
|
15735
15732
|
query: (e) => ({
|
|
15736
|
-
url: `/V4/Partner/${e.
|
|
15733
|
+
url: `/V4/Partner/${e.routeApplicationId}/Partner/${e.partnerId}`,
|
|
15737
15734
|
params: {
|
|
15738
15735
|
withSpecification: e.withSpecification
|
|
15739
15736
|
}
|
|
@@ -15794,18 +15791,18 @@ const emptySplitApi = createApi({
|
|
|
15794
15791
|
method: "PUT"
|
|
15795
15792
|
})
|
|
15796
15793
|
}),
|
|
15797
|
-
|
|
15794
|
+
getV4PartnerByRouteApplicationIdProductAndRandmarSku: t.query({
|
|
15798
15795
|
query: (e) => ({
|
|
15799
|
-
url: `/V4/Partner/${e.
|
|
15796
|
+
url: `/V4/Partner/${e.routeApplicationId}/Product/${e.randmarSku}`,
|
|
15800
15797
|
params: {
|
|
15801
15798
|
withSpecification: e.withSpecification,
|
|
15802
15799
|
shopifyHostName: e.shopifyHostName
|
|
15803
15800
|
}
|
|
15804
15801
|
})
|
|
15805
15802
|
}),
|
|
15806
|
-
|
|
15803
|
+
putV4PartnerByRouteApplicationIdProductAndRandmarSkuShort: t.mutation({
|
|
15807
15804
|
query: (e) => ({
|
|
15808
|
-
url: `/V4/Partner/${e.
|
|
15805
|
+
url: `/V4/Partner/${e.routeApplicationId}/Product/${e.randmarSku}/Short`,
|
|
15809
15806
|
method: "PUT",
|
|
15810
15807
|
body: e.productConvertToShortModel
|
|
15811
15808
|
})
|
|
@@ -16015,9 +16012,9 @@ const emptySplitApi = createApi({
|
|
|
16015
16012
|
getProductByProductNumber: t.query({
|
|
16016
16013
|
query: (e) => ({ url: `/Product/${e.productNumber}` })
|
|
16017
16014
|
}),
|
|
16018
|
-
|
|
16015
|
+
getProductByRandmarSkuImage: t.query({
|
|
16019
16016
|
query: (e) => ({
|
|
16020
|
-
url: `/Product/${e.
|
|
16017
|
+
url: `/Product/${e.randmarSku}/Image`,
|
|
16021
16018
|
params: {
|
|
16022
16019
|
width: e.width,
|
|
16023
16020
|
height: e.height
|
|
@@ -16681,26 +16678,26 @@ const emptySplitApi = createApi({
|
|
|
16681
16678
|
method: "DELETE"
|
|
16682
16679
|
})
|
|
16683
16680
|
}),
|
|
16684
|
-
|
|
16681
|
+
getV4PartnerByRouteApplicationIdShopify: t.query({
|
|
16685
16682
|
query: (e) => ({
|
|
16686
|
-
url: `/V4/Partner/${e.
|
|
16683
|
+
url: `/V4/Partner/${e.routeApplicationId}/Shopify`,
|
|
16687
16684
|
params: {
|
|
16688
16685
|
withToken: e.withToken
|
|
16689
16686
|
}
|
|
16690
16687
|
})
|
|
16691
16688
|
}),
|
|
16692
|
-
|
|
16689
|
+
postV4PartnerByRouteApplicationIdShopifyValidate: t.mutation({
|
|
16693
16690
|
query: (e) => ({
|
|
16694
|
-
url: `/V4/Partner/${e.
|
|
16691
|
+
url: `/V4/Partner/${e.routeApplicationId}/Shopify/Validate`,
|
|
16695
16692
|
method: "POST",
|
|
16696
16693
|
params: {
|
|
16697
16694
|
shopifyHostName: e.shopifyHostName
|
|
16698
16695
|
}
|
|
16699
16696
|
})
|
|
16700
16697
|
}),
|
|
16701
|
-
|
|
16698
|
+
postV4PartnerByRouteApplicationIdShopifySynchronizationAndSynchronizationType: t.mutation({
|
|
16702
16699
|
query: (e) => ({
|
|
16703
|
-
url: `/V4/Partner/${e.
|
|
16700
|
+
url: `/V4/Partner/${e.routeApplicationId}/Shopify/Synchronization/${e.synchronizationType}`,
|
|
16704
16701
|
method: "POST",
|
|
16705
16702
|
params: {
|
|
16706
16703
|
shopifyHostName: e.shopifyHostName,
|
|
@@ -16708,9 +16705,9 @@ const emptySplitApi = createApi({
|
|
|
16708
16705
|
}
|
|
16709
16706
|
})
|
|
16710
16707
|
}),
|
|
16711
|
-
|
|
16708
|
+
postV4PartnerByRouteApplicationIdShopifyAndPropertyName: t.mutation({
|
|
16712
16709
|
query: (e) => ({
|
|
16713
|
-
url: `/V4/Partner/${e.
|
|
16710
|
+
url: `/V4/Partner/${e.routeApplicationId}/Shopify/${e.propertyName}`,
|
|
16714
16711
|
method: "POST",
|
|
16715
16712
|
params: {
|
|
16716
16713
|
shopifyHostName: e.shopifyHostName,
|
|
@@ -16718,9 +16715,9 @@ const emptySplitApi = createApi({
|
|
|
16718
16715
|
}
|
|
16719
16716
|
})
|
|
16720
16717
|
}),
|
|
16721
|
-
|
|
16718
|
+
postV4PartnerByRouteApplicationIdShopifyDefaultShippingSlipComment: t.mutation({
|
|
16722
16719
|
query: (e) => ({
|
|
16723
|
-
url: `/V4/Partner/${e.
|
|
16720
|
+
url: `/V4/Partner/${e.routeApplicationId}/Shopify/DefaultShippingSlipComment`,
|
|
16724
16721
|
method: "POST",
|
|
16725
16722
|
params: {
|
|
16726
16723
|
shopifyHostName: e.shopifyHostName,
|
|
@@ -16728,145 +16725,145 @@ const emptySplitApi = createApi({
|
|
|
16728
16725
|
}
|
|
16729
16726
|
})
|
|
16730
16727
|
}),
|
|
16731
|
-
|
|
16728
|
+
putV4PartnerByRouteApplicationIdShopifyWebhookAndModuleStatus: t.mutation({
|
|
16732
16729
|
query: (e) => ({
|
|
16733
|
-
url: `/V4/Partner/${e.
|
|
16730
|
+
url: `/V4/Partner/${e.routeApplicationId}/Shopify/Webhook/${e.module}/${e.status}`,
|
|
16734
16731
|
method: "PUT",
|
|
16735
16732
|
params: {
|
|
16736
16733
|
shopifyHostName: e.shopifyHostName
|
|
16737
16734
|
}
|
|
16738
16735
|
})
|
|
16739
16736
|
}),
|
|
16740
|
-
|
|
16737
|
+
deleteV4PartnerByRouteApplicationIdShopifyWebhookAndModuleStatus: t.mutation({
|
|
16741
16738
|
query: (e) => ({
|
|
16742
|
-
url: `/V4/Partner/${e.
|
|
16739
|
+
url: `/V4/Partner/${e.routeApplicationId}/Shopify/Webhook/${e.module}/${e.status}`,
|
|
16743
16740
|
method: "DELETE",
|
|
16744
16741
|
params: {
|
|
16745
16742
|
shopifyHostName: e.shopifyHostName
|
|
16746
16743
|
}
|
|
16747
16744
|
})
|
|
16748
16745
|
}),
|
|
16749
|
-
|
|
16746
|
+
putV4PartnerByRouteApplicationIdUserAndEmailAddress: t.mutation({
|
|
16750
16747
|
query: (e) => ({
|
|
16751
|
-
url: `/V4/Partner/${e.
|
|
16748
|
+
url: `/V4/Partner/${e.routeApplicationId}/User/${e.emailAddress}`,
|
|
16752
16749
|
method: "PUT"
|
|
16753
16750
|
})
|
|
16754
16751
|
}),
|
|
16755
|
-
|
|
16752
|
+
deleteV4PartnerByRouteApplicationIdUserAndEmailAddress: t.mutation({
|
|
16756
16753
|
query: (e) => ({
|
|
16757
|
-
url: `/V4/Partner/${e.
|
|
16754
|
+
url: `/V4/Partner/${e.routeApplicationId}/User/${e.emailAddress}`,
|
|
16758
16755
|
method: "DELETE"
|
|
16759
16756
|
})
|
|
16760
16757
|
}),
|
|
16761
|
-
|
|
16758
|
+
postV4PartnerByRouteApplicationIdUserAndEmailAddressActive: t.mutation({
|
|
16762
16759
|
query: (e) => ({
|
|
16763
|
-
url: `/V4/Partner/${e.
|
|
16760
|
+
url: `/V4/Partner/${e.routeApplicationId}/User/${e.emailAddress}/Active`,
|
|
16764
16761
|
method: "POST",
|
|
16765
16762
|
params: {
|
|
16766
16763
|
newValue: e.newValue
|
|
16767
16764
|
}
|
|
16768
16765
|
})
|
|
16769
16766
|
}),
|
|
16770
|
-
|
|
16767
|
+
putV4PartnerByRouteApplicationIdUserAndEmailAddressNotificationNotificationType: t.mutation({
|
|
16771
16768
|
query: (e) => ({
|
|
16772
|
-
url: `/V4/Partner/${e.
|
|
16769
|
+
url: `/V4/Partner/${e.routeApplicationId}/User/${e.emailAddress}/Notification/${e.notificationType}`,
|
|
16773
16770
|
method: "PUT"
|
|
16774
16771
|
})
|
|
16775
16772
|
}),
|
|
16776
|
-
|
|
16773
|
+
deleteV4PartnerByRouteApplicationIdUserAndEmailAddressNotificationNotificationType: t.mutation({
|
|
16777
16774
|
query: (e) => ({
|
|
16778
|
-
url: `/V4/Partner/${e.
|
|
16775
|
+
url: `/V4/Partner/${e.routeApplicationId}/User/${e.emailAddress}/Notification/${e.notificationType}`,
|
|
16779
16776
|
method: "DELETE"
|
|
16780
16777
|
})
|
|
16781
16778
|
}),
|
|
16782
|
-
|
|
16779
|
+
getV4PartnerByRouteApplicationIdUsers: t.query({
|
|
16783
16780
|
query: (e) => ({
|
|
16784
|
-
url: `/V4/Partner/${e.
|
|
16781
|
+
url: `/V4/Partner/${e.routeApplicationId}/Users`
|
|
16785
16782
|
})
|
|
16786
16783
|
}),
|
|
16787
|
-
|
|
16784
|
+
getV4PartnerByRouteApplicationIdWarehouseAndWarehouseId: t.query({
|
|
16788
16785
|
query: (e) => ({
|
|
16789
|
-
url: `/V4/Partner/${e.
|
|
16786
|
+
url: `/V4/Partner/${e.routeApplicationId}/Warehouse/${e.warehouseId}`
|
|
16790
16787
|
})
|
|
16791
16788
|
}),
|
|
16792
|
-
|
|
16789
|
+
getV4PartnerByRouteApplicationIdWarehouseAndWarehouseIdPurchaseOrders: t.query({
|
|
16793
16790
|
query: (e) => ({
|
|
16794
|
-
url: `/V4/Partner/${e.
|
|
16791
|
+
url: `/V4/Partner/${e.routeApplicationId}/Warehouse/${e.warehouseId}/PurchaseOrders`
|
|
16795
16792
|
})
|
|
16796
16793
|
}),
|
|
16797
|
-
|
|
16794
|
+
getV4PartnerByRouteApplicationIdWarehouseAndWarehouseIdReturns: t.query({
|
|
16798
16795
|
query: (e) => ({
|
|
16799
|
-
url: `/V4/Partner/${e.
|
|
16796
|
+
url: `/V4/Partner/${e.routeApplicationId}/Warehouse/${e.warehouseId}/Returns`
|
|
16800
16797
|
})
|
|
16801
16798
|
}),
|
|
16802
|
-
|
|
16799
|
+
getV4PartnerByRouteApplicationIdWarehouseAndWarehouseIdOrders: t.query({
|
|
16803
16800
|
query: (e) => ({
|
|
16804
|
-
url: `/V4/Partner/${e.
|
|
16801
|
+
url: `/V4/Partner/${e.routeApplicationId}/Warehouse/${e.warehouseId}/Orders`
|
|
16805
16802
|
})
|
|
16806
16803
|
}),
|
|
16807
|
-
|
|
16804
|
+
getV4PartnerByRouteApplicationIdWarehouseAndWarehouseIdShipments: t.query({
|
|
16808
16805
|
query: (e) => ({
|
|
16809
|
-
url: `/V4/Partner/${e.
|
|
16806
|
+
url: `/V4/Partner/${e.routeApplicationId}/Warehouse/${e.warehouseId}/Shipments`
|
|
16810
16807
|
})
|
|
16811
16808
|
}),
|
|
16812
|
-
|
|
16809
|
+
getV4PartnerByRouteApplicationIdWarehouseAndWarehouseIdRequisitions: t.query({
|
|
16813
16810
|
query: (e) => ({
|
|
16814
|
-
url: `/V4/Partner/${e.
|
|
16811
|
+
url: `/V4/Partner/${e.routeApplicationId}/Warehouse/${e.warehouseId}/Requisitions`
|
|
16815
16812
|
})
|
|
16816
16813
|
}),
|
|
16817
|
-
|
|
16814
|
+
postV4PartnerByRouteApplicationIdWarehouseAndWarehouseIdFieldName: t.mutation({
|
|
16818
16815
|
query: (e) => ({
|
|
16819
|
-
url: `/V4/Partner/${e.
|
|
16816
|
+
url: `/V4/Partner/${e.routeApplicationId}/Warehouse/${e.warehouseId}/${e.fieldName}`,
|
|
16820
16817
|
method: "POST",
|
|
16821
16818
|
params: {
|
|
16822
16819
|
newValue: e.newValue
|
|
16823
16820
|
}
|
|
16824
16821
|
})
|
|
16825
16822
|
}),
|
|
16826
|
-
|
|
16823
|
+
putV4PartnerByRouteApplicationIdWarehouseAndWarehouseIdCarrierIntegration: t.mutation({
|
|
16827
16824
|
query: (e) => ({
|
|
16828
|
-
url: `/V4/Partner/${e.
|
|
16825
|
+
url: `/V4/Partner/${e.routeApplicationId}/Warehouse/${e.warehouseId}/CarrierIntegration`,
|
|
16829
16826
|
method: "PUT",
|
|
16830
16827
|
body: e.body
|
|
16831
16828
|
})
|
|
16832
16829
|
}),
|
|
16833
|
-
|
|
16830
|
+
deleteV4PartnerByRouteApplicationIdWarehouseAndWarehouseIdCarrierIntegrationCarrierCode: t.mutation({
|
|
16834
16831
|
query: (e) => ({
|
|
16835
|
-
url: `/V4/Partner/${e.
|
|
16832
|
+
url: `/V4/Partner/${e.routeApplicationId}/Warehouse/${e.warehouseId}/CarrierIntegration/${e.carrierCode}`,
|
|
16836
16833
|
method: "DELETE"
|
|
16837
16834
|
})
|
|
16838
16835
|
}),
|
|
16839
|
-
|
|
16836
|
+
postV4PartnerByRouteApplicationIdWarehouseAndWarehouseIdCarrierIntegrationCarrierCode: t.mutation({
|
|
16840
16837
|
query: (e) => ({
|
|
16841
|
-
url: `/V4/Partner/${e.
|
|
16838
|
+
url: `/V4/Partner/${e.routeApplicationId}/Warehouse/${e.warehouseId}/CarrierIntegration/${e.carrierCode}`,
|
|
16842
16839
|
method: "POST",
|
|
16843
16840
|
params: {
|
|
16844
16841
|
isActive: e.isActive
|
|
16845
16842
|
}
|
|
16846
16843
|
})
|
|
16847
16844
|
}),
|
|
16848
|
-
|
|
16845
|
+
putV4PartnerByRouteApplicationIdWarehouse: t.mutation({
|
|
16849
16846
|
query: (e) => ({
|
|
16850
|
-
url: `/V4/Partner/${e.
|
|
16847
|
+
url: `/V4/Partner/${e.routeApplicationId}/Warehouse`,
|
|
16851
16848
|
method: "PUT",
|
|
16852
16849
|
body: e.body
|
|
16853
16850
|
})
|
|
16854
16851
|
}),
|
|
16855
|
-
|
|
16852
|
+
getV4PartnerByRouteApplicationIdWarehouses: t.query({
|
|
16856
16853
|
query: (e) => ({
|
|
16857
|
-
url: `/V4/Partner/${e.
|
|
16854
|
+
url: `/V4/Partner/${e.routeApplicationId}/Warehouses`
|
|
16858
16855
|
})
|
|
16859
16856
|
})
|
|
16860
16857
|
}),
|
|
16861
16858
|
overrideExisting: !1
|
|
16862
|
-
}), { useGetV4PartnerByApplicationIdAccountQuery, useLazyGetV4PartnerByApplicationIdAccountQuery, useGetV4PartnerByApplicationIdAccountLogoExistsQuery, useGetV4PartnerByApplicationIdAccountManufacturerQuery, useGetV4PartnerByApplicationIdAccountResellerQuery, usePostV4PartnerByApplicationIdAccountDebugFeedbackMutation, usePostV4PartnerByApplicationIdAccountManufacturerAndFieldNameMutation, usePostV4PartnerByApplicationIdAccountResellerAndFieldNameMutation,
|
|
16859
|
+
}), { useGetV4PartnerByApplicationIdAccountQuery, useLazyGetV4PartnerByApplicationIdAccountQuery, useGetV4PartnerByApplicationIdAccountLogoExistsQuery, useGetV4PartnerByApplicationIdAccountManufacturerQuery, useGetV4PartnerByApplicationIdAccountResellerQuery, usePostV4PartnerByApplicationIdAccountDebugFeedbackMutation, usePostV4PartnerByApplicationIdAccountManufacturerAndFieldNameMutation, usePostV4PartnerByApplicationIdAccountResellerAndFieldNameMutation, usePostV4PartnerByRouteApplicationIdBusinessDevelopmentConversationPartnerAndPartnerIdMutation, useGetV4PartnerByRouteApplicationIdBusinessDevelopmentConversationsQuery, useLazyGetV4PartnerByRouteApplicationIdBusinessDevelopmentConversationAndConversationIdMessagesQuery, usePostV4ResellerByRouteResellerIdDocumentStatementEmailMutation, usePostV4ManufacturerByRouteManufacturerIdDocumentAndDocumentNumberEmailMutation, useGetV4ManufacturerByRouteManufacturerIdDocumentsActiveOrderDetailsQuery, useGetV4ManufacturerByRouteManufacturerIdInventoryValueQuery, usePostV4ResellerByRouteResellerIdManufacturerAndManufacturerIdShopifyMutation, useGetV4ResellerByRouteResellerIdManufacturerAndManufacturerIdCategoryCodeQuery, usePostV4ResellerByRouteResellerIdManufacturerAndManufacturerIdCategoryCodeShopifyMutation, useGetV4PartnerByRouteApplicationIdManufacturersQuery, usePostV4ResellerByRouteResellerIdOpportunityAndManufacturerIdBidNumberEmailMutation, usePutV4ResellerByRouteResellerIdOpportunityAndManufacturerIdDefaultMutation, useGetV4PartnerByRouteApplicationIdPartnerAndPartnerIdQuery, usePostV4ResellerByRouteResellerIdProductAndRandmarSkuShopifyMutation, usePutV4ResellerByRouteResellerIdProductAndRandmarSkuRequisitionMutation, useGetV4PartnerByRouteApplicationIdProductAndRandmarSkuQuery, usePostV4ResellerByRouteResellerIdReportProductsEmailMutation, usePostV4ResellerByRouteResellerIdReportInvoicesEmailMutation, usePostV4ResellerByRouteResellerIdReportOpenOrdersEmailMutation, usePostV4ResellerByRouteResellerIdReportAmazonTrackingFileEmailMutation, usePostV4ResellerByRouteResellerIdReportWalmartTrackingFileEmailMutation } = injectedRtkApi;
|
|
16863
16860
|
injectedRtkApi.enhanceEndpoints({
|
|
16864
16861
|
addTagTypes: ["Conversations"],
|
|
16865
16862
|
endpoints: {
|
|
16866
|
-
|
|
16863
|
+
getV4PartnerByRouteApplicationIdBusinessDevelopmentConversations: {
|
|
16867
16864
|
providesTags: ["Conversations"]
|
|
16868
16865
|
},
|
|
16869
|
-
|
|
16866
|
+
postV4PartnerByRouteApplicationIdBusinessDevelopmentConversationPartnerAndPartnerId: {
|
|
16870
16867
|
invalidatesTags: ["Conversations"]
|
|
16871
16868
|
}
|
|
16872
16869
|
}
|
|
@@ -16927,13 +16924,13 @@ function ExploreManufacturers({ appID: t, manufPath: e, withBot: n }) {
|
|
|
16927
16924
|
const [o, l] = useState(!1), {
|
|
16928
16925
|
data: d,
|
|
16929
16926
|
isLoading: f
|
|
16930
|
-
} =
|
|
16931
|
-
|
|
16927
|
+
} = useGetV4PartnerByRouteApplicationIdManufacturersQuery({
|
|
16928
|
+
routeApplicationId: t ?? "",
|
|
16932
16929
|
withSpecification: !1
|
|
16933
16930
|
}), {
|
|
16934
16931
|
data: g
|
|
16935
|
-
} =
|
|
16936
|
-
|
|
16932
|
+
} = useGetV4PartnerByRouteApplicationIdManufacturersQuery({
|
|
16933
|
+
routeApplicationId: t ?? "",
|
|
16937
16934
|
withSpecification: !0
|
|
16938
16935
|
}), b = useMemo(() => {
|
|
16939
16936
|
const z = g || d;
|
|
@@ -53274,7 +53271,7 @@ const DebugMessageDisplay = ({ debugMessages: t }) => {
|
|
|
53274
53271
|
}) });
|
|
53275
53272
|
}, ASSISTANT_ID = "RandmarAIChatAssistant", ChatLayout = forwardRef(
|
|
53276
53273
|
({ userId: t, userName: e, apiKey: n, inputRef: o }, l) => {
|
|
53277
|
-
const { data: d, refetch: f } =
|
|
53274
|
+
const { data: d, refetch: f } = useGetV4PartnerByRouteApplicationIdBusinessDevelopmentConversationsQuery({ routeApplicationId: t }), [g] = useLazyGetV4PartnerByApplicationIdAccountQuery(), [b] = usePostV4PartnerByApplicationIdAccountDebugFeedbackMutation(), [S, { isLoading: _ }] = usePostV4PartnerByRouteApplicationIdBusinessDevelopmentConversationPartnerAndPartnerIdMutation(), [C, E] = useState(!1), R = useRef(null), [A] = usePostV4PartnerByRouteApplicationIdBusinessDevelopmentConversationPartnerAndPartnerIdMutation(), [I] = useLazyGetV4PartnerByRouteApplicationIdBusinessDevelopmentConversationAndConversationIdMessagesQuery(), {
|
|
53278
53275
|
handleSubmitToBot: M,
|
|
53279
53276
|
botMessages: O,
|
|
53280
53277
|
clearBotMessages: q,
|
|
@@ -53371,7 +53368,7 @@ const DebugMessageDisplay = ({ debugMessages: t }) => {
|
|
|
53371
53368
|
return;
|
|
53372
53369
|
}
|
|
53373
53370
|
I({
|
|
53374
|
-
|
|
53371
|
+
routeApplicationId: t,
|
|
53375
53372
|
conversationId: ct.conversationID
|
|
53376
53373
|
}).unwrap().then((Mt) => {
|
|
53377
53374
|
const Ht = Mt.map((yt) => ({
|
|
@@ -53457,11 +53454,11 @@ const DebugMessageDisplay = ({ debugMessages: t }) => {
|
|
|
53457
53454
|
body: Mt
|
|
53458
53455
|
});
|
|
53459
53456
|
}, dt = async () => {
|
|
53460
|
-
R.current && (R.current.disabled = !0), await A({
|
|
53457
|
+
R.current && (R.current.disabled = !0), await A({ routeApplicationId: t, partnerId: "2" }), await f();
|
|
53461
53458
|
}, pt = () => {
|
|
53462
53459
|
Fe((ct) => ct.map((Ht) => Ht.partner1 !== ASSISTANT_ID && Ht.partner2 !== ASSISTANT_ID ? Ht : { ...Ht, messages: [] })), rt([]), j();
|
|
53463
53460
|
}, ft = () => {
|
|
53464
|
-
se && S({
|
|
53461
|
+
se && S({ routeApplicationId: t, partnerId: se[0] == t ? se[1] : se[0] }).then(() => {
|
|
53465
53462
|
ae("approved");
|
|
53466
53463
|
});
|
|
53467
53464
|
}, ut = getActiveChatObject(Oe, se), qt = Oe.filter((ct) => ct.pending).length;
|
|
@@ -54996,7 +54993,7 @@ Defaulting to 2020, but this will stop working in the future.`)), ne.ecmaVersion
|
|
|
54996
54993
|
var je = this.enterClassBody(), Ge = this.startNode(), ot = !1;
|
|
54997
54994
|
for (Ge.body = [], this.expect(j.braceL); this.type !== j.braceR; ) {
|
|
54998
54995
|
var lt = this.parseClassElement(V.superClass !== null);
|
|
54999
|
-
lt && (Ge.body.push(lt), lt.type === "MethodDefinition" && lt.kind === "constructor" ? (ot && this.raiseRecoverable(lt.start, "Duplicate constructor in the same class"), ot = !0) : lt.key && lt.key.type === "PrivateIdentifier" &&
|
|
54996
|
+
lt && (Ge.body.push(lt), lt.type === "MethodDefinition" && lt.kind === "constructor" ? (ot && this.raiseRecoverable(lt.start, "Duplicate constructor in the same class"), ot = !0) : lt.key && lt.key.type === "PrivateIdentifier" && Rr(je, lt) && this.raiseRecoverable(lt.key.start, "Identifier '#" + lt.key.name + "' has already been declared"));
|
|
55000
54997
|
}
|
|
55001
54998
|
return this.strict = Ve, this.next(), V.body = this.finishNode(Ge, "ClassBody"), this.exitClassBody(), this.finishNode(V, ne ? "ClassDeclaration" : "ClassExpression");
|
|
55002
54999
|
}, yt.parseClassElement = function(V) {
|
|
@@ -55013,7 +55010,7 @@ Defaulting to 2020, but this will stop working in the future.`)), ne.ecmaVersion
|
|
|
55013
55010
|
(this.eatContextual("get") || this.eatContextual("set")) && (this.isClassElementNameStart() ? lt = It : je = It);
|
|
55014
55011
|
}
|
|
55015
55012
|
if (je ? (Ve.computed = !1, Ve.key = this.startNodeAt(this.lastTokStart, this.lastTokStartLoc), Ve.key.name = je, this.finishNode(Ve.key, "Identifier")) : this.parseClassElementName(Ve), ne < 13 || this.type === j.parenL || lt !== "method" || Ge || ot) {
|
|
55016
|
-
var Kt = !Ve.static &&
|
|
55013
|
+
var Kt = !Ve.static && Tr(Ve, "constructor"), Wt = Kt && V;
|
|
55017
55014
|
Kt && lt !== "method" && this.raise(Ve.key.start, "Constructor can't have get/set modifier"), Ve.kind = Kt ? "constructor" : lt, this.parseClassMethod(Ve, Ge, ot, Wt);
|
|
55018
55015
|
} else
|
|
55019
55016
|
this.parseClassField(Ve);
|
|
@@ -55024,11 +55021,11 @@ Defaulting to 2020, but this will stop working in the future.`)), ne.ecmaVersion
|
|
|
55024
55021
|
this.type === j.privateId ? (this.value === "constructor" && this.raise(this.start, "Classes can't have an element named '#constructor'"), V.computed = !1, V.key = this.parsePrivateIdent()) : this.parsePropertyName(V);
|
|
55025
55022
|
}, yt.parseClassMethod = function(V, ne, Ve, je) {
|
|
55026
55023
|
var Ge = V.key;
|
|
55027
|
-
V.kind === "constructor" ? (ne && this.raise(Ge.start, "Constructor can't be a generator"), Ve && this.raise(Ge.start, "Constructor can't be an async method")) : V.static &&
|
|
55024
|
+
V.kind === "constructor" ? (ne && this.raise(Ge.start, "Constructor can't be a generator"), Ve && this.raise(Ge.start, "Constructor can't be an async method")) : V.static && Tr(V, "prototype") && this.raise(Ge.start, "Classes may not have a static property named prototype");
|
|
55028
55025
|
var ot = V.value = this.parseMethod(ne, Ve, je);
|
|
55029
55026
|
return V.kind === "get" && ot.params.length !== 0 && this.raiseRecoverable(ot.start, "getter should have no params"), V.kind === "set" && ot.params.length !== 1 && this.raiseRecoverable(ot.start, "setter should have exactly one param"), V.kind === "set" && ot.params[0].type === "RestElement" && this.raiseRecoverable(ot.params[0].start, "Setter cannot use rest params"), this.finishNode(V, "MethodDefinition");
|
|
55030
55027
|
}, yt.parseClassField = function(V) {
|
|
55031
|
-
if (
|
|
55028
|
+
if (Tr(V, "constructor") ? this.raise(V.key.start, "Classes can't have a field named 'constructor'") : V.static && Tr(V, "prototype") && this.raise(V.key.start, "Classes can't have a static field named 'prototype'"), this.eat(j.eq)) {
|
|
55032
55029
|
var ne = this.currentThisScope(), Ve = ne.inClassFieldInit;
|
|
55033
55030
|
ne.inClassFieldInit = !0, V.value = this.parseMaybeAssign(), ne.inClassFieldInit = Ve;
|
|
55034
55031
|
} else
|
|
@@ -55057,11 +55054,11 @@ Defaulting to 2020, but this will stop working in the future.`)), ne.ecmaVersion
|
|
|
55057
55054
|
Fe(ne, lt.name) || (Ge ? Ge.used.push(lt) : this.raiseRecoverable(lt.start, "Private field '#" + lt.name + "' must be declared in an enclosing class"));
|
|
55058
55055
|
}
|
|
55059
55056
|
};
|
|
55060
|
-
function
|
|
55057
|
+
function Rr(V, ne) {
|
|
55061
55058
|
var Ve = ne.key.name, je = V[Ve], Ge = "true";
|
|
55062
55059
|
return ne.type === "MethodDefinition" && (ne.kind === "get" || ne.kind === "set") && (Ge = (ne.static ? "s" : "i") + ne.kind), je === "iget" && Ge === "iset" || je === "iset" && Ge === "iget" || je === "sget" && Ge === "sset" || je === "sset" && Ge === "sget" ? (V[Ve] = "true", !1) : je ? !0 : (V[Ve] = Ge, !1);
|
|
55063
55060
|
}
|
|
55064
|
-
function
|
|
55061
|
+
function Tr(V, ne) {
|
|
55065
55062
|
var Ve = V.computed, je = V.key;
|
|
55066
55063
|
return !Ve && (je.type === "Identifier" && je.name === ne || je.type === "Literal" && je.value === ne);
|
|
55067
55064
|
}
|
|
@@ -55878,13 +55875,13 @@ Defaulting to 2020, but this will stop working in the future.`)), ne.ecmaVersion
|
|
|
55878
55875
|
12: Jr,
|
|
55879
55876
|
13: Zr,
|
|
55880
55877
|
14: wn
|
|
55881
|
-
},
|
|
55878
|
+
}, Rn = "Basic_Emoji Emoji_Keycap_Sequence RGI_Emoji_Modifier_Sequence RGI_Emoji_Flag_Sequence RGI_Emoji_Tag_Sequence RGI_Emoji_ZWJ_Sequence RGI_Emoji", Tn = {
|
|
55882
55879
|
9: "",
|
|
55883
55880
|
10: "",
|
|
55884
55881
|
11: "",
|
|
55885
55882
|
12: "",
|
|
55886
55883
|
13: "",
|
|
55887
|
-
14:
|
|
55884
|
+
14: Rn
|
|
55888
55885
|
}, en = "Cased_Letter LC Close_Punctuation Pe Connector_Punctuation Pc Control Cc cntrl Currency_Symbol Sc Dash_Punctuation Pd Decimal_Number Nd digit Enclosing_Mark Me Final_Punctuation Pf Format Cf Initial_Punctuation Pi Letter L Letter_Number Nl Line_Separator Zl Lowercase_Letter Ll Mark M Combining_Mark Math_Symbol Sm Modifier_Letter Lm Modifier_Symbol Sk Nonspacing_Mark Mn Number N Open_Punctuation Ps Other C Other_Letter Lo Other_Number No Other_Punctuation Po Other_Symbol So Paragraph_Separator Zp Private_Use Co Punctuation P punct Separator Z Space_Separator Zs Spacing_Mark Mc Surrogate Cs Symbol S Titlecase_Letter Lt Unassigned Cn Uppercase_Letter Lu", tn = "Adlam Adlm Ahom Anatolian_Hieroglyphs Hluw Arabic Arab Armenian Armn Avestan Avst Balinese Bali Bamum Bamu Bassa_Vah Bass Batak Batk Bengali Beng Bhaiksuki Bhks Bopomofo Bopo Brahmi Brah Braille Brai Buginese Bugi Buhid Buhd Canadian_Aboriginal Cans Carian Cari Caucasian_Albanian Aghb Chakma Cakm Cham Cham Cherokee Cher Common Zyyy Coptic Copt Qaac Cuneiform Xsux Cypriot Cprt Cyrillic Cyrl Deseret Dsrt Devanagari Deva Duployan Dupl Egyptian_Hieroglyphs Egyp Elbasan Elba Ethiopic Ethi Georgian Geor Glagolitic Glag Gothic Goth Grantha Gran Greek Grek Gujarati Gujr Gurmukhi Guru Han Hani Hangul Hang Hanunoo Hano Hatran Hatr Hebrew Hebr Hiragana Hira Imperial_Aramaic Armi Inherited Zinh Qaai Inscriptional_Pahlavi Phli Inscriptional_Parthian Prti Javanese Java Kaithi Kthi Kannada Knda Katakana Kana Kayah_Li Kali Kharoshthi Khar Khmer Khmr Khojki Khoj Khudawadi Sind Lao Laoo Latin Latn Lepcha Lepc Limbu Limb Linear_A Lina Linear_B Linb Lisu Lisu Lycian Lyci Lydian Lydi Mahajani Mahj Malayalam Mlym Mandaic Mand Manichaean Mani Marchen Marc Masaram_Gondi Gonm Meetei_Mayek Mtei Mende_Kikakui Mend Meroitic_Cursive Merc Meroitic_Hieroglyphs Mero Miao Plrd Modi Mongolian Mong Mro Mroo Multani Mult Myanmar Mymr Nabataean Nbat New_Tai_Lue Talu Newa Newa Nko Nkoo Nushu Nshu Ogham Ogam Ol_Chiki Olck Old_Hungarian Hung Old_Italic Ital Old_North_Arabian Narb Old_Permic Perm Old_Persian Xpeo Old_South_Arabian Sarb Old_Turkic Orkh Oriya Orya Osage Osge Osmanya Osma Pahawh_Hmong Hmng Palmyrene Palm Pau_Cin_Hau Pauc Phags_Pa Phag Phoenician Phnx Psalter_Pahlavi Phlp Rejang Rjng Runic Runr Samaritan Samr Saurashtra Saur Sharada Shrd Shavian Shaw Siddham Sidd SignWriting Sgnw Sinhala Sinh Sora_Sompeng Sora Soyombo Soyo Sundanese Sund Syloti_Nagri Sylo Syriac Syrc Tagalog Tglg Tagbanwa Tagb Tai_Le Tale Tai_Tham Lana Tai_Viet Tavt Takri Takr Tamil Taml Tangut Tang Telugu Telu Thaana Thaa Thai Thai Tibetan Tibt Tifinagh Tfng Tirhuta Tirh Ugaritic Ugar Vai Vaii Warang_Citi Wara Yi Yiii Zanabazar_Square Zanb", rn = tn + " Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd", nn = rn + " Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho", an = nn + " Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi", sn = an + " Cypro_Minoan Cpmn Old_Uyghur Ougr Tangsa Tnsa Toto Vithkuqi Vith", An = sn + " Hrkt Katakana_Or_Hiragana Kawi Nag_Mundari Nagm Unknown Zzzz", In = {
|
|
55889
55886
|
9: tn,
|
|
55890
55887
|
10: rn,
|
|
@@ -55896,7 +55893,7 @@ Defaulting to 2020, but this will stop working in the future.`)), ne.ecmaVersion
|
|
|
55896
55893
|
function kn(V) {
|
|
55897
55894
|
var ne = on[V] = {
|
|
55898
55895
|
binary: Le(En[V] + " " + en),
|
|
55899
|
-
binaryOfStrings: Le(
|
|
55896
|
+
binaryOfStrings: Le(Tn[V]),
|
|
55900
55897
|
nonBinary: {
|
|
55901
55898
|
General_Category: Le(en),
|
|
55902
55899
|
Script: Le(In[V])
|
|
@@ -61575,7 +61572,7 @@ const salesChannels = [
|
|
|
61575
61572
|
{ id: "other-market", label: "Other (please specify)" }
|
|
61576
61573
|
];
|
|
61577
61574
|
function ManufacturerGetStartedButton({ applicationId: t, manufacturer: e }) {
|
|
61578
|
-
const { toast: n } = useToast(), [o, l] = useState(!1), [d, f] = useState(!1), [g, b] = useState(!1), [S, _] = useState(""), [C, E] = useState(""), [R, A] = useState(!1), [I, M] = useState(""), [O, q] = useState(""), [z, Q] = useState([]), [F, j] = useState(""), [te, ae] = useState(""), [se, ge] = useState([]), [oe, Ae] = useState(""), [Ne, $e] = useState(""), [Oe] =
|
|
61575
|
+
const { toast: n } = useToast(), [o, l] = useState(!1), [d, f] = useState(!1), [g, b] = useState(!1), [S, _] = useState(""), [C, E] = useState(""), [R, A] = useState(!1), [I, M] = useState(""), [O, q] = useState(""), [z, Q] = useState([]), [F, j] = useState(""), [te, ae] = useState(""), [se, ge] = useState([]), [oe, Ae] = useState(""), [Ne, $e] = useState(""), [Oe] = usePostV4PartnerByRouteApplicationIdBusinessDevelopmentConversationPartnerAndPartnerIdMutation(), { sendMessage: Fe } = useChat(), Ue = () => {
|
|
61579
61576
|
_(""), E("");
|
|
61580
61577
|
}, Be = () => {
|
|
61581
61578
|
M(""), q(""), Q([]), j(""), ae(""), ge([]), Ae(""), $e("");
|
|
@@ -61588,7 +61585,7 @@ function ManufacturerGetStartedButton({ applicationId: t, manufacturer: e }) {
|
|
|
61588
61585
|
return;
|
|
61589
61586
|
}
|
|
61590
61587
|
b(!0), Oe({
|
|
61591
|
-
|
|
61588
|
+
routeApplicationId: t,
|
|
61592
61589
|
partnerId: e.ManufacturerId ?? "",
|
|
61593
61590
|
message: `Hello! I'd like to get started with you. Here's my Qualification ID: ${S}`
|
|
61594
61591
|
}).then((Xe) => {
|
|
@@ -61623,7 +61620,7 @@ function ManufacturerGetStartedButton({ applicationId: t, manufacturer: e }) {
|
|
|
61623
61620
|
|
|
61624
61621
|
`);
|
|
61625
61622
|
A(!0), Oe({
|
|
61626
|
-
|
|
61623
|
+
routeApplicationId: t,
|
|
61627
61624
|
partnerId: e.ManufacturerId ?? "",
|
|
61628
61625
|
message: it
|
|
61629
61626
|
}).then((st) => {
|
|
@@ -64137,8 +64134,8 @@ function createFormControl(t = {}) {
|
|
|
64137
64134
|
if (!yt && Jt && E.state.next({ ...n }), e.resolver) {
|
|
64138
64135
|
const { errors: mr } = await te([Ze]);
|
|
64139
64136
|
if (ft(Ht), dt) {
|
|
64140
|
-
const Er = schemaErrorLookup(n.errors, o, Ze),
|
|
64141
|
-
ct =
|
|
64137
|
+
const Er = schemaErrorLookup(n.errors, o, Ze), Rr = schemaErrorLookup(mr, o, Er.name || Ze);
|
|
64138
|
+
ct = Rr.error, Ze = Rr.name, Mt = isEmptyObject$1(mr);
|
|
64142
64139
|
}
|
|
64143
64140
|
} else
|
|
64144
64141
|
M([Ze], !0), ct = (await validateField(pt, g.disabled, d, R, e.shouldUseNativeValidation))[Ze], M([Ze]), ft(Ht), dt && (ct ? Mt = !1 : (_.isValid || C.isValid) && (Mt = await se(o, !0)));
|
|
@@ -67989,8 +67986,8 @@ function PartnerRelationshipPage({
|
|
|
67989
67986
|
isSuperAdmin: l
|
|
67990
67987
|
}) {
|
|
67991
67988
|
var I, M, O;
|
|
67992
|
-
const { data: d, isLoading: f } =
|
|
67993
|
-
|
|
67989
|
+
const { data: d, isLoading: f } = useGetV4PartnerByRouteApplicationIdPartnerAndPartnerIdQuery({
|
|
67990
|
+
routeApplicationId: t,
|
|
67994
67991
|
partnerId: e,
|
|
67995
67992
|
withSpecification: !0
|
|
67996
67993
|
}), { toast: g } = useToast(), [b] = usePostV4ResellerByRouteResellerIdManufacturerAndManufacturerIdShopifyMutation(), [S, _] = useState(!1), [C, E] = useState(!1), R = async () => {
|
|
@@ -84118,6 +84115,10 @@ function ResellerOpportunitiesTable({
|
|
|
84118
84115
|
return /* @__PURE__ */ jsx("span", { className: "text-xs text-muted-foreground", children: "Actions unavailable" });
|
|
84119
84116
|
const se = ae.BidNumber, ge = ($e = l[se]) == null ? void 0 : $e.isSettingDefault, oe = (_ == null ? void 0 : _.BidNumber) === se && ((Oe = l[se]) == null ? void 0 : Oe.isSendingReport), Ae = ge || oe, Ne = ae.CanBeSetAsDefault === !0;
|
|
84120
84117
|
return /* @__PURE__ */ jsxs("div", { className: "flex space-x-2", children: [
|
|
84118
|
+
/* @__PURE__ */ jsx("a", { href: `https://reseller.randmar.io/${t}/Opportunity/${ae.ManufacturerId}/${ae.BidNumber}`, target: "_blank", children: /* @__PURE__ */ jsxs(Button, { variant: "outline", size: "sm", className: "flex items-center", children: [
|
|
84119
|
+
/* @__PURE__ */ jsx(Star, { className: "mr-2 h-4 w-4" }),
|
|
84120
|
+
" View"
|
|
84121
|
+
] }) }),
|
|
84121
84122
|
/* @__PURE__ */ jsxs(Button, { variant: "outline", size: "sm", onClick: () => A(ae), disabled: Ae || !Ne, title: Ne ? "Set as default" : "This opportunity cannot be set as default", className: "flex items-center", children: [
|
|
84122
84123
|
ge ? /* @__PURE__ */ jsx(LoaderCircle, { className: "mr-2 h-4 w-4 animate-spin" }) : /* @__PURE__ */ jsx(Star, { className: "mr-2 h-4 w-4" }),
|
|
84123
84124
|
" Set Default"
|
|
@@ -84205,6 +84206,403 @@ function ResellerOpportunitiesTable({
|
|
|
84205
84206
|
] }) })
|
|
84206
84207
|
] });
|
|
84207
84208
|
}
|
|
84209
|
+
function formatYYYYMMDDIntToDateString$1(t) {
|
|
84210
|
+
if (t === null || typeof t > "u")
|
|
84211
|
+
return "N/A";
|
|
84212
|
+
const e = t.toString();
|
|
84213
|
+
return e.length === 8 ? `${e.substring(0, 4)}-${e.substring(4, 6)}-${e.substring(6, 8)}` : e;
|
|
84214
|
+
}
|
|
84215
|
+
function formatCurrency(t) {
|
|
84216
|
+
return t === null || typeof t > "u" ? "N/A" : t.toLocaleString(void 0, { style: "currency", currency: "CAD" });
|
|
84217
|
+
}
|
|
84218
|
+
function OrdersTable({
|
|
84219
|
+
orders: t = null,
|
|
84220
|
+
loading: e = !1,
|
|
84221
|
+
title: n = "Order Details"
|
|
84222
|
+
}) {
|
|
84223
|
+
const o = useMemo(
|
|
84224
|
+
() => [
|
|
84225
|
+
{
|
|
84226
|
+
accessorKey: "DocumentNumber",
|
|
84227
|
+
header: "Document Number",
|
|
84228
|
+
cell: ({ row: f }) => f.original.DocumentNumber ?? "N/A",
|
|
84229
|
+
enableSorting: !0,
|
|
84230
|
+
enableFiltering: !0
|
|
84231
|
+
},
|
|
84232
|
+
{
|
|
84233
|
+
accessorKey: "DocumentDate",
|
|
84234
|
+
header: "Document Date",
|
|
84235
|
+
cell: ({ row: f }) => formatYYYYMMDDIntToDateString$1(f.original.DocumentDate),
|
|
84236
|
+
enableSorting: !0,
|
|
84237
|
+
enableFiltering: !1
|
|
84238
|
+
},
|
|
84239
|
+
{
|
|
84240
|
+
accessorKey: "OrderNumber",
|
|
84241
|
+
header: "Order Number",
|
|
84242
|
+
cell: ({ row: f }) => f.original.OrderNumber ?? "N/A",
|
|
84243
|
+
enableSorting: !0,
|
|
84244
|
+
enableFiltering: !0
|
|
84245
|
+
},
|
|
84246
|
+
{
|
|
84247
|
+
accessorKey: "PONumber",
|
|
84248
|
+
header: "PO Number",
|
|
84249
|
+
cell: ({ row: f }) => f.original.PONumber ?? "N/A",
|
|
84250
|
+
enableSorting: !0,
|
|
84251
|
+
enableFiltering: !0
|
|
84252
|
+
},
|
|
84253
|
+
{
|
|
84254
|
+
accessorKey: "WarehouseCode",
|
|
84255
|
+
header: "Warehouse",
|
|
84256
|
+
cell: ({ row: f }) => f.original.WarehouseCode ?? "N/A",
|
|
84257
|
+
enableSorting: !0,
|
|
84258
|
+
enableFiltering: !0
|
|
84259
|
+
},
|
|
84260
|
+
{
|
|
84261
|
+
accessorKey: "Quantity",
|
|
84262
|
+
header: "Quantity",
|
|
84263
|
+
cell: ({ row: f }) => f.original.Quantity ?? "N/A",
|
|
84264
|
+
enableSorting: !0,
|
|
84265
|
+
enableFiltering: !1
|
|
84266
|
+
},
|
|
84267
|
+
{
|
|
84268
|
+
accessorKey: "ShipToName",
|
|
84269
|
+
header: "Name",
|
|
84270
|
+
cell: ({ row: f }) => /* @__PURE__ */ jsx("div", { className: "min-w-[150px]", children: f.original.ShipToName ?? "N/A" }),
|
|
84271
|
+
enableSorting: !0,
|
|
84272
|
+
enableFiltering: !0
|
|
84273
|
+
},
|
|
84274
|
+
{
|
|
84275
|
+
accessorKey: "UnitPrice",
|
|
84276
|
+
header: "Unit Price",
|
|
84277
|
+
cell: ({ row: f }) => formatCurrency(f.original.UnitPrice),
|
|
84278
|
+
enableSorting: !0,
|
|
84279
|
+
enableFiltering: !1
|
|
84280
|
+
// Currency filtering usually needs range
|
|
84281
|
+
}
|
|
84282
|
+
],
|
|
84283
|
+
[]
|
|
84284
|
+
), l = useMemo(() => {
|
|
84285
|
+
const f = {};
|
|
84286
|
+
if (t) {
|
|
84287
|
+
const g = Array.from(
|
|
84288
|
+
new Set(t.map((E) => E.WarehouseCode).filter((E) => E != null))
|
|
84289
|
+
);
|
|
84290
|
+
f.WarehouseCode = g;
|
|
84291
|
+
const b = Array.from(
|
|
84292
|
+
new Set(t.map((E) => E.ShipToName).filter((E) => E != null))
|
|
84293
|
+
);
|
|
84294
|
+
f.ShipToName = b;
|
|
84295
|
+
const S = Array.from(
|
|
84296
|
+
new Set(t.map((E) => E.DocumentNumber).filter((E) => E != null))
|
|
84297
|
+
);
|
|
84298
|
+
f.DocumentNumber = S;
|
|
84299
|
+
const _ = Array.from(
|
|
84300
|
+
new Set(t.map((E) => E.OrderNumber).filter((E) => E != null))
|
|
84301
|
+
);
|
|
84302
|
+
f.OrderNumber = _;
|
|
84303
|
+
const C = Array.from(
|
|
84304
|
+
new Set(t.map((E) => E.PONumber).filter((E) => E != null))
|
|
84305
|
+
);
|
|
84306
|
+
f.PONumber = C;
|
|
84307
|
+
}
|
|
84308
|
+
return f;
|
|
84309
|
+
}, [t]), d = t || [];
|
|
84310
|
+
return e ? /* @__PURE__ */ jsxs(Card, { className: "w-full", children: [
|
|
84311
|
+
/* @__PURE__ */ jsxs(CardHeader, { children: [
|
|
84312
|
+
" ",
|
|
84313
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-7 w-48" }),
|
|
84314
|
+
" "
|
|
84315
|
+
] }),
|
|
84316
|
+
/* @__PURE__ */ jsxs(CardContent, { className: "space-y-4", children: [
|
|
84317
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-12 w-full rounded-md border" }),
|
|
84318
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-10 w-full rounded-md border" }),
|
|
84319
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-10 w-full rounded-md border" }),
|
|
84320
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-10 w-full rounded-md border" }),
|
|
84321
|
+
/* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between pt-4", children: [
|
|
84322
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-9 w-[130px]" }),
|
|
84323
|
+
/* @__PURE__ */ jsxs("div", { className: "flex items-center space-x-2", children: [
|
|
84324
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-9 w-20" }),
|
|
84325
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-9 w-24" }),
|
|
84326
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-9 w-9" }),
|
|
84327
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-9 w-9" })
|
|
84328
|
+
] })
|
|
84329
|
+
] })
|
|
84330
|
+
] })
|
|
84331
|
+
] }) : /* @__PURE__ */ jsxs(Card, { className: "w-full", children: [
|
|
84332
|
+
/* @__PURE__ */ jsxs(CardHeader, { children: [
|
|
84333
|
+
" ",
|
|
84334
|
+
/* @__PURE__ */ jsx(CardTitle, { className: "text-1xl font-bold", children: n }),
|
|
84335
|
+
" "
|
|
84336
|
+
] }),
|
|
84337
|
+
/* @__PURE__ */ jsx(CardContent, { children: /* @__PURE__ */ jsx(DataTable, { columns: o, data: d, uniqueValues: l }) })
|
|
84338
|
+
] });
|
|
84339
|
+
}
|
|
84340
|
+
function formatYYYYMMDDIntToDateString(t) {
|
|
84341
|
+
if (t === null || typeof t > "u")
|
|
84342
|
+
return "N/A";
|
|
84343
|
+
const e = t.toString();
|
|
84344
|
+
return e.length === 8 ? `${e.substring(0, 4)}-${e.substring(4, 6)}-${e.substring(6, 8)}` : e;
|
|
84345
|
+
}
|
|
84346
|
+
function ReceiptsTable({
|
|
84347
|
+
receipts: t = null,
|
|
84348
|
+
loading: e = !1,
|
|
84349
|
+
title: n = "Latest Warehouse Receivings"
|
|
84350
|
+
}) {
|
|
84351
|
+
const o = useMemo(
|
|
84352
|
+
() => [
|
|
84353
|
+
{
|
|
84354
|
+
accessorKey: "Location",
|
|
84355
|
+
header: "Location",
|
|
84356
|
+
cell: ({ row: f }) => /* @__PURE__ */ jsx("div", { className: "min-w-[150px]", children: f.original.Location ?? "N/A" }),
|
|
84357
|
+
enableSorting: !0,
|
|
84358
|
+
enableFiltering: !0
|
|
84359
|
+
},
|
|
84360
|
+
{
|
|
84361
|
+
accessorKey: "ReceiptDate",
|
|
84362
|
+
header: "Date",
|
|
84363
|
+
cell: ({ row: f }) => formatYYYYMMDDIntToDateString(f.original.ReceiptDate),
|
|
84364
|
+
enableSorting: !0,
|
|
84365
|
+
enableFiltering: !0
|
|
84366
|
+
},
|
|
84367
|
+
{
|
|
84368
|
+
accessorKey: "Quantity",
|
|
84369
|
+
header: "Quantity",
|
|
84370
|
+
cell: ({ row: f }) => f.original.Quantity ?? "N/A",
|
|
84371
|
+
enableSorting: !0,
|
|
84372
|
+
enableFiltering: !0
|
|
84373
|
+
}
|
|
84374
|
+
],
|
|
84375
|
+
[]
|
|
84376
|
+
), l = useMemo(() => {
|
|
84377
|
+
const f = {};
|
|
84378
|
+
if (t) {
|
|
84379
|
+
const g = Array.from(
|
|
84380
|
+
new Set(t.map((S) => S.Location).filter((S) => S != null))
|
|
84381
|
+
);
|
|
84382
|
+
f.Location = g;
|
|
84383
|
+
const b = Array.from(
|
|
84384
|
+
new Set(t.map((S) => formatYYYYMMDDIntToDateString(S.ReceiptDate)).filter((S) => S !== "N/A" && S !== "Invalid Date"))
|
|
84385
|
+
).sort((S, _) => new Date(_).getTime() - new Date(S).getTime());
|
|
84386
|
+
f.ReceiptDate = b;
|
|
84387
|
+
}
|
|
84388
|
+
return f;
|
|
84389
|
+
}, [t]), d = t || [];
|
|
84390
|
+
return e ? /* @__PURE__ */ jsxs(Card, { className: "w-full", children: [
|
|
84391
|
+
/* @__PURE__ */ jsxs(CardHeader, { children: [
|
|
84392
|
+
" ",
|
|
84393
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-7 w-56" }),
|
|
84394
|
+
" "
|
|
84395
|
+
] }),
|
|
84396
|
+
/* @__PURE__ */ jsxs(CardContent, { className: "space-y-4", children: [
|
|
84397
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-12 w-full rounded-md border" }),
|
|
84398
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-10 w-full rounded-md border" }),
|
|
84399
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-10 w-full rounded-md border" }),
|
|
84400
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-10 w-full rounded-md border" }),
|
|
84401
|
+
/* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between pt-4", children: [
|
|
84402
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-9 w-[130px]" }),
|
|
84403
|
+
/* @__PURE__ */ jsxs("div", { className: "flex items-center space-x-2", children: [
|
|
84404
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-9 w-20" }),
|
|
84405
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-9 w-24" }),
|
|
84406
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-9 w-9" }),
|
|
84407
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-9 w-9" })
|
|
84408
|
+
] })
|
|
84409
|
+
] })
|
|
84410
|
+
] })
|
|
84411
|
+
] }) : /* @__PURE__ */ jsxs(Card, { className: "w-full", children: [
|
|
84412
|
+
/* @__PURE__ */ jsxs(CardHeader, { children: [
|
|
84413
|
+
" ",
|
|
84414
|
+
/* @__PURE__ */ jsx(CardTitle, { className: "text-1xl font-bold", children: n }),
|
|
84415
|
+
" "
|
|
84416
|
+
] }),
|
|
84417
|
+
/* @__PURE__ */ jsx(CardContent, { children: /* @__PURE__ */ jsx(DataTable, { columns: o, data: d, uniqueValues: l }) })
|
|
84418
|
+
] });
|
|
84419
|
+
}
|
|
84420
|
+
function ProductOverviewPage({
|
|
84421
|
+
applicationId: t,
|
|
84422
|
+
sku: e,
|
|
84423
|
+
productDefaultOpportunityNumber: n = "",
|
|
84424
|
+
productOnAddToCart: o,
|
|
84425
|
+
productAddingToCart: l = !1,
|
|
84426
|
+
productShopifyHostname: d,
|
|
84427
|
+
productCustomAction: f = /* @__PURE__ */ jsx(Fragment$1, {})
|
|
84428
|
+
}) {
|
|
84429
|
+
const {
|
|
84430
|
+
data: g
|
|
84431
|
+
} = useGetV4PartnerByApplicationIdAccountQuery({
|
|
84432
|
+
applicationId: t
|
|
84433
|
+
}, {
|
|
84434
|
+
skip: !t || !e
|
|
84435
|
+
}), {
|
|
84436
|
+
data: b,
|
|
84437
|
+
isLoading: S
|
|
84438
|
+
} = useGetV4PartnerByRouteApplicationIdProductAndRandmarSkuQuery({
|
|
84439
|
+
routeApplicationId: t,
|
|
84440
|
+
randmarSku: e,
|
|
84441
|
+
withSpecification: !1
|
|
84442
|
+
}, {
|
|
84443
|
+
skip: !t || !e
|
|
84444
|
+
}), {
|
|
84445
|
+
data: _,
|
|
84446
|
+
isLoading: C
|
|
84447
|
+
} = useGetV4PartnerByRouteApplicationIdProductAndRandmarSkuQuery({
|
|
84448
|
+
routeApplicationId: t,
|
|
84449
|
+
randmarSku: e,
|
|
84450
|
+
withSpecification: !0
|
|
84451
|
+
}, {
|
|
84452
|
+
skip: !b
|
|
84453
|
+
});
|
|
84454
|
+
return /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
84455
|
+
/* @__PURE__ */ jsxs("div", { className: "grid gap-4 grid-cols-1 md:grid-cols-2 lg:grid-cols-3", children: [
|
|
84456
|
+
/* @__PURE__ */ jsx("div", { className: "lg:col-span-2", children: /* @__PURE__ */ jsx(
|
|
84457
|
+
ProductCard,
|
|
84458
|
+
{
|
|
84459
|
+
applicationId: t,
|
|
84460
|
+
product: _ || b,
|
|
84461
|
+
defaultOpportunityNumber: n,
|
|
84462
|
+
onAddToCart: o,
|
|
84463
|
+
addingToCart: l,
|
|
84464
|
+
shopifyHostname: d,
|
|
84465
|
+
customAction: f
|
|
84466
|
+
}
|
|
84467
|
+
) }),
|
|
84468
|
+
/* @__PURE__ */ jsxs(Card, { children: [
|
|
84469
|
+
/* @__PURE__ */ jsx(CardHeader, { children: /* @__PURE__ */ jsxs(CardTitle, { children: [
|
|
84470
|
+
/* @__PURE__ */ jsx(Info, { className: "h-5 w-5 inline mr-2" }),
|
|
84471
|
+
" Additionnal information"
|
|
84472
|
+
] }) }),
|
|
84473
|
+
/* @__PURE__ */ jsx(CardContent, { children: S ? /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
84474
|
+
/* @__PURE__ */ jsxs("div", { className: "flex justify-between", children: [
|
|
84475
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-5 w-32" }),
|
|
84476
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-5 w-24" })
|
|
84477
|
+
] }),
|
|
84478
|
+
/* @__PURE__ */ jsxs("div", { className: "flex justify-between mt-2", children: [
|
|
84479
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-5 w-32" }),
|
|
84480
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-5 w-24" })
|
|
84481
|
+
] }),
|
|
84482
|
+
/* @__PURE__ */ jsxs("div", { className: "flex justify-between mt-2", children: [
|
|
84483
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-5 w-32" }),
|
|
84484
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-5 w-24" })
|
|
84485
|
+
] }),
|
|
84486
|
+
/* @__PURE__ */ jsxs("div", { className: "flex justify-between mt-2", children: [
|
|
84487
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-5 w-32" }),
|
|
84488
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-5 w-24" })
|
|
84489
|
+
] }),
|
|
84490
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-1 w-full my-6" }),
|
|
84491
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-5 w-24" }),
|
|
84492
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-4 w-full mt-2" }),
|
|
84493
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-4 w-full mt-1" })
|
|
84494
|
+
] }) : /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
84495
|
+
/* @__PURE__ */ jsxs("div", { className: "flex justify-between", children: [
|
|
84496
|
+
/* @__PURE__ */ jsx("span", { className: "text-muted-foreground", children: "Cateory Name" }),
|
|
84497
|
+
/* @__PURE__ */ jsx("span", { className: "font-medium", children: (b == null ? void 0 : b.ProductType) || "N/A" })
|
|
84498
|
+
] }),
|
|
84499
|
+
/* @__PURE__ */ jsxs("div", { className: "flex justify-between mt-2", children: [
|
|
84500
|
+
/* @__PURE__ */ jsx("span", { className: "text-muted-foreground", children: "Master Carton" }),
|
|
84501
|
+
/* @__PURE__ */ jsx("span", { className: "font-medium", children: (b == null ? void 0 : b.MasterCarton) || "N/A" })
|
|
84502
|
+
] }),
|
|
84503
|
+
/* @__PURE__ */ jsxs("div", { className: "flex justify-between mt-2", children: [
|
|
84504
|
+
/* @__PURE__ */ jsx("span", { className: "text-muted-foreground", children: "Skid Quantity" }),
|
|
84505
|
+
/* @__PURE__ */ jsx("span", { className: "font-medium", children: (b == null ? void 0 : b.SkidQuantity) || "N/A" })
|
|
84506
|
+
] }),
|
|
84507
|
+
/* @__PURE__ */ jsxs("div", { className: "flex justify-between mt-2", children: [
|
|
84508
|
+
/* @__PURE__ */ jsx("span", { className: "text-muted-foreground", children: "Automatic Reorder" }),
|
|
84509
|
+
/* @__PURE__ */ jsx("span", { className: "font-medium", children: b != null && b.AutoUpdate ? "Yes" : "No" })
|
|
84510
|
+
] }),
|
|
84511
|
+
((b == null ? void 0 : b.VoiceoverCaption) || (b == null ? void 0 : b.BodyHTML)) && /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
84512
|
+
/* @__PURE__ */ jsx("hr", { className: "my-6" }),
|
|
84513
|
+
/* @__PURE__ */ jsx("div", { className: "text-muted-foreground mb-2", children: "Description" }),
|
|
84514
|
+
/* @__PURE__ */ jsxs("div", { className: "max-h-44 overflow-scroll", children: [
|
|
84515
|
+
(b == null ? void 0 : b.VoiceoverCaption) && /* @__PURE__ */ jsx("div", { children: b == null ? void 0 : b.VoiceoverCaption }),
|
|
84516
|
+
(b == null ? void 0 : b.BodyHTML) && /* @__PURE__ */ jsx(
|
|
84517
|
+
"div",
|
|
84518
|
+
{
|
|
84519
|
+
className: "prose prose-sm max-w-none",
|
|
84520
|
+
dangerouslySetInnerHTML: { __html: (b == null ? void 0 : b.BodyHTML) ?? "" }
|
|
84521
|
+
}
|
|
84522
|
+
)
|
|
84523
|
+
] })
|
|
84524
|
+
] })
|
|
84525
|
+
] }) })
|
|
84526
|
+
] })
|
|
84527
|
+
] }),
|
|
84528
|
+
/* @__PURE__ */ jsx("div", { className: "my-4", children: S ? /* @__PURE__ */ jsx("div", { className: "mx-auto flex justify-center items-center h-32", children: /* @__PURE__ */ jsx(LoaderCircle, { className: "h-8 w-8 animate-spin text-primary" }) }) : /* @__PURE__ */ jsxs(Tabs, { defaultValue: "stats", children: [
|
|
84529
|
+
/* @__PURE__ */ jsxs(TabsList, { className: "inline-flex h-auto items-center justify-center rounded-none border-b bg-transparent p-0", children: [
|
|
84530
|
+
/* @__PURE__ */ jsx(
|
|
84531
|
+
TabsTrigger,
|
|
84532
|
+
{
|
|
84533
|
+
value: "stats",
|
|
84534
|
+
className: "relative h-12 rounded-none border-b-2 border-b-transparent bg-transparent px-4 pb-3 pt-2 text-sm font-medium text-muted-foreground shadow-none transition-none hover:text-foreground data-[state=active]:border-b-primary data-[state=active]:text-foreground data-[state=active]:shadow-none cursor-pointer",
|
|
84535
|
+
children: "Statistics"
|
|
84536
|
+
}
|
|
84537
|
+
),
|
|
84538
|
+
(g == null ? void 0 : g.IsReseller) && /* @__PURE__ */ jsx(
|
|
84539
|
+
TabsTrigger,
|
|
84540
|
+
{
|
|
84541
|
+
value: "opportunities",
|
|
84542
|
+
className: "relative h-12 rounded-none border-b-2 border-b-transparent bg-transparent px-4 pb-3 pt-2 text-sm font-medium text-muted-foreground shadow-none transition-none hover:text-foreground data-[state=active]:border-b-primary data-[state=active]:text-foreground data-[state=active]:shadow-none cursor-pointer",
|
|
84543
|
+
children: "Opportunities"
|
|
84544
|
+
}
|
|
84545
|
+
),
|
|
84546
|
+
/* @__PURE__ */ jsx(
|
|
84547
|
+
TabsTrigger,
|
|
84548
|
+
{
|
|
84549
|
+
value: "orders",
|
|
84550
|
+
className: "relative h-12 rounded-none border-b-2 border-b-transparent bg-transparent px-4 pb-3 pt-2 text-sm font-medium text-muted-foreground shadow-none transition-none hover:text-foreground data-[state=active]:border-b-primary data-[state=active]:text-foreground data-[state=active]:shadow-none cursor-pointer",
|
|
84551
|
+
children: "Orders"
|
|
84552
|
+
}
|
|
84553
|
+
),
|
|
84554
|
+
/* @__PURE__ */ jsx(
|
|
84555
|
+
TabsTrigger,
|
|
84556
|
+
{
|
|
84557
|
+
value: "warehouse",
|
|
84558
|
+
className: "relative h-12 rounded-none border-b-2 border-b-transparent bg-transparent px-4 pb-3 pt-2 text-sm font-medium text-muted-foreground shadow-none transition-none hover:text-foreground data-[state=active]:border-b-primary data-[state=active]:text-foreground data-[state=active]:shadow-none cursor-pointer",
|
|
84559
|
+
children: "Latest Warehouse Receiving"
|
|
84560
|
+
}
|
|
84561
|
+
)
|
|
84562
|
+
] }),
|
|
84563
|
+
/* @__PURE__ */ jsx(TabsContent, { value: "stats", children: /* @__PURE__ */ jsx("div", { className: "mt-4", children: /* @__PURE__ */ jsx(
|
|
84564
|
+
SalesChart,
|
|
84565
|
+
{
|
|
84566
|
+
salesData: (_ == null ? void 0 : _.SalesStatistics) ?? [],
|
|
84567
|
+
isLoading: C
|
|
84568
|
+
}
|
|
84569
|
+
) }) }),
|
|
84570
|
+
(g == null ? void 0 : g.IsReseller) && /* @__PURE__ */ jsx(TabsContent, { value: "opportunities", children: /* @__PURE__ */ jsx("div", { className: "mt-4", children: /* @__PURE__ */ jsx(
|
|
84571
|
+
ResellerOpportunitiesTable,
|
|
84572
|
+
{
|
|
84573
|
+
applicationId: t,
|
|
84574
|
+
opportunities: b == null ? void 0 : b.Opportunities,
|
|
84575
|
+
loading: S
|
|
84576
|
+
}
|
|
84577
|
+
) }) }),
|
|
84578
|
+
/* @__PURE__ */ jsxs(TabsContent, { value: "orders", children: [
|
|
84579
|
+
/* @__PURE__ */ jsx("div", { className: "mt-4", children: /* @__PURE__ */ jsx(
|
|
84580
|
+
OrdersTable,
|
|
84581
|
+
{
|
|
84582
|
+
title: "Open Orders",
|
|
84583
|
+
orders: _ == null ? void 0 : _.ActiveOrderDetails,
|
|
84584
|
+
loading: C
|
|
84585
|
+
}
|
|
84586
|
+
) }),
|
|
84587
|
+
/* @__PURE__ */ jsx("div", { className: "mt-4", children: /* @__PURE__ */ jsx(
|
|
84588
|
+
OrdersTable,
|
|
84589
|
+
{
|
|
84590
|
+
title: "Completed Orders",
|
|
84591
|
+
orders: _ == null ? void 0 : _.CompletedOrderDetails,
|
|
84592
|
+
loading: C
|
|
84593
|
+
}
|
|
84594
|
+
) })
|
|
84595
|
+
] }),
|
|
84596
|
+
/* @__PURE__ */ jsx(TabsContent, { value: "warehouse", children: /* @__PURE__ */ jsx("div", { className: "mt-4", children: /* @__PURE__ */ jsx(
|
|
84597
|
+
ReceiptsTable,
|
|
84598
|
+
{
|
|
84599
|
+
receipts: _ == null ? void 0 : _.Receipts,
|
|
84600
|
+
loading: C
|
|
84601
|
+
}
|
|
84602
|
+
) }) })
|
|
84603
|
+
] }) })
|
|
84604
|
+
] });
|
|
84605
|
+
}
|
|
84208
84606
|
export {
|
|
84209
84607
|
ActiveOrdersCard,
|
|
84210
84608
|
AiGeneratedContent,
|
|
@@ -84299,6 +84697,7 @@ export {
|
|
|
84299
84697
|
ProductCard,
|
|
84300
84698
|
ProductImage,
|
|
84301
84699
|
ProductInventoryGrid,
|
|
84700
|
+
ProductOverviewPage,
|
|
84302
84701
|
Progress,
|
|
84303
84702
|
RadioGroup$1 as RadioGroup,
|
|
84304
84703
|
RadioGroupItem,
|