randmarcomps 1.535.0 → 1.536.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.js +306 -318
- package/dist/randmarcomps.umd.cjs +20 -20
- package/package.json +1 -1
package/dist/randmarcomps.js
CHANGED
|
@@ -16946,7 +16946,7 @@ const emptySplitApi = createApi({
|
|
|
16946
16946
|
})
|
|
16947
16947
|
}),
|
|
16948
16948
|
overrideExisting: !1
|
|
16949
|
-
}), { useGetV4PartnerByApplicationIdAccountQuery, useLazyGetV4PartnerByApplicationIdAccountQuery, useGetV4PartnerByApplicationIdAccountLogoQuery, useGetV4PartnerByApplicationIdAccountLogoExistsQuery, useGetV4PartnerByApplicationIdAccountManufacturerQuery, useGetV4PartnerByApplicationIdAccountResellerQuery, usePostV4PartnerByApplicationIdAccountFeedbackMutation, usePostV4PartnerByApplicationIdAccountDebugFeedbackMutation, usePostV4PartnerByApplicationIdAccountManufacturerAndFieldNameMutation, usePostV4PartnerByApplicationIdAccountResellerAndFieldNameMutation, usePostV4PartnerByApplicationIdAccountResellerCreditLimitMutation, usePostV4PartnerByRouteApplicationIdBusinessDevelopmentConversationPartnerAndPartnerIdMutation, useGetV4PartnerByRouteApplicationIdBusinessDevelopmentConversationsQuery, useLazyGetV4PartnerByRouteApplicationIdBusinessDevelopmentConversationAndConversationIdMessagesQuery, useGetV4PartnerByRouteApplicationIdBusinessDevelopmentConversationAndConversationIdLinksQuery, useGetV4PartnerByRouteApplicationIdBusinessDevelopmentConversationAndConversationIdPeopleQuery, useDeleteV4PartnerByRouteApplicationIdBusinessDevelopmentConversationLinkAndLinkIdMutation, usePostV4PartnerByRouteApplicationIdBusinessDevelopmentConversationAndConversationIdLinkMutation, useGetV4PartnerByRouteApplicationIdBusinessDevelopmentConversationsHasUnreadsQuery, usePostV4PartnerByRouteApplicationIdBusinessDevelopmentConversationAndConversationIdReadMutation, useGetV4UserQuery, usePostV4UserByFieldNameMutation, useLazyGetV4ResellerByRouteResellerIdDocumentAndDocumentNumberPdfQuery, usePostV4ResellerByRouteResellerIdDocumentStatementEmailMutation, useGetV4ManufacturerByRouteManufacturerIdDocumentsActiveOrderDetailsQuery, usePostV4PartnerByApplicationIdGenerationRandmarAssistantMutation, useLazyGetV4PartnerByApplicationIdGenerationRandmarAssistantInstructionsQuery, usePostV4PartnerByApplicationIdGenerationUploadMutation, useGetV4ManufacturerByRouteManufacturerIdInventoryValueQuery, usePostV4ResellerByRouteResellerIdManufacturerAndManufacturerIdShopifyMutation, useGetV4ResellerByRouteResellerIdManufacturerAndManufacturerIdCategoryCodeQuery, usePostV4ResellerByRouteResellerIdManufacturerAndManufacturerIdCategoryCodeShopifyMutation, useGetV4PartnerByRouteApplicationIdManufacturersQuery, useGetV4ManufacturerByRouteManufacturerIdOpportunitiesQuery, usePostV4ResellerByRouteResellerIdOpportunityAndManufacturerIdBidNumberEmailMutation, usePutV4ResellerByRouteResellerIdOpportunityAndManufacturerIdDefaultMutation, usePutV4ManufacturerByRouteManufacturerIdOpportunityAndBidNumberResellerResellerIdMutation, useGetV4PartnerByRouteApplicationIdPartnerAndPartnerIdQuery, useLazyGetV4PartnerByRouteApplicationIdPartnerAndPartnerIdQuery, usePostV4ResellerByRouteResellerIdProductAndRandmarSkuShopifyMutation, usePutV4ResellerByRouteResellerIdProductAndRandmarSkuRequisitionMutation, useGetV4PartnerByRouteApplicationIdProductAndRandmarSkuQuery, useLazyGetV4PartnerByRouteApplicationIdProductAndRandmarSkuQuery, useLazyGetV4PartnerByRouteApplicationIdProductsQuery, useGetProductByRandmarSkuImageQuery, useGetProductByProductNumberImageExistsQuery, useGetProductByProductNumberVideoQuery, useGetProductByProductNumberVideoExistsQuery, usePostV4ManufacturerByRouteManufacturerIdPurchaseOrderAndPurchaseOrderNumberEditItemRandmarSkuMutation, usePostV4ResellerByRouteResellerIdReportProductsEmailMutation, usePostV4ResellerByRouteResellerIdReportInvoicesEmailMutation, usePostV4ResellerByRouteResellerIdReportOpenOrdersEmailMutation, usePostV4ResellerByRouteResellerIdReportAmazonTrackingFileEmailMutation, usePostV4ResellerByRouteResellerIdReportWalmartTrackingFileEmailMutation, usePostV4ManufacturerByRouteManufacturerIdReportReorderEmailMutation, usePostV4ManufacturerByRouteManufacturerIdReportSalesEmailMutation, usePostV4ManufacturerByRouteManufacturerIdReportSalesAndResellerIdEmailMutation, usePostV4ManufacturerByRouteManufacturerIdReportInventoryEmailMutation, usePostV4ManufacturerByRouteManufacturerIdReportOpenOrdersEmailMutation, usePostV4ManufacturerByRouteManufacturerIdReportProductsEmailMutation, usePostV4ManufacturerByRouteManufacturerIdReportPurchasedOrdersEmailMutation, useDeleteV4ManufacturerByRouteManufacturerIdRequisitionAndRequisitionNumberMutation, useGetV4ManufacturerByRouteManufacturerIdResellerAndResellerIdQuery, usePutV4ManufacturerByRouteManufacturerIdResellerAndResellerIdQualificationMutation, useDeleteV4ManufacturerByRouteManufacturerIdResellerAndResellerIdQualificationMutation, usePutV4PartnerByRouteApplicationIdUserAndEmailAddressNotificationNotificationTypeMutation, useDeleteV4PartnerByRouteApplicationIdUserAndEmailAddressNotificationNotificationTypeMutation } = injectedRtkApi;
|
|
16949
|
+
}), { useGetV4PartnerByApplicationIdAccountQuery, useLazyGetV4PartnerByApplicationIdAccountQuery, useGetV4PartnerByApplicationIdAccountLogoQuery, useGetV4PartnerByApplicationIdAccountLogoExistsQuery, useGetV4PartnerByApplicationIdAccountVideoExistsQuery, useGetV4PartnerByApplicationIdAccountManufacturerQuery, useGetV4PartnerByApplicationIdAccountResellerQuery, usePostV4PartnerByApplicationIdAccountFeedbackMutation, usePostV4PartnerByApplicationIdAccountDebugFeedbackMutation, usePostV4PartnerByApplicationIdAccountManufacturerAndFieldNameMutation, usePostV4PartnerByApplicationIdAccountResellerAndFieldNameMutation, usePostV4PartnerByApplicationIdAccountResellerCreditLimitMutation, usePostV4PartnerByRouteApplicationIdBusinessDevelopmentConversationPartnerAndPartnerIdMutation, useGetV4PartnerByRouteApplicationIdBusinessDevelopmentConversationsQuery, useLazyGetV4PartnerByRouteApplicationIdBusinessDevelopmentConversationAndConversationIdMessagesQuery, useGetV4PartnerByRouteApplicationIdBusinessDevelopmentConversationAndConversationIdLinksQuery, useGetV4PartnerByRouteApplicationIdBusinessDevelopmentConversationAndConversationIdPeopleQuery, useDeleteV4PartnerByRouteApplicationIdBusinessDevelopmentConversationLinkAndLinkIdMutation, usePostV4PartnerByRouteApplicationIdBusinessDevelopmentConversationAndConversationIdLinkMutation, useGetV4PartnerByRouteApplicationIdBusinessDevelopmentConversationsHasUnreadsQuery, usePostV4PartnerByRouteApplicationIdBusinessDevelopmentConversationAndConversationIdReadMutation, useGetV4UserQuery, usePostV4UserByFieldNameMutation, useLazyGetV4ResellerByRouteResellerIdDocumentAndDocumentNumberPdfQuery, usePostV4ResellerByRouteResellerIdDocumentStatementEmailMutation, useGetV4ManufacturerByRouteManufacturerIdDocumentsActiveOrderDetailsQuery, usePostV4PartnerByApplicationIdGenerationRandmarAssistantMutation, useLazyGetV4PartnerByApplicationIdGenerationRandmarAssistantInstructionsQuery, usePostV4PartnerByApplicationIdGenerationUploadMutation, useGetV4ManufacturerByRouteManufacturerIdInventoryValueQuery, usePostV4ResellerByRouteResellerIdManufacturerAndManufacturerIdShopifyMutation, useGetV4ResellerByRouteResellerIdManufacturerAndManufacturerIdCategoryCodeQuery, usePostV4ResellerByRouteResellerIdManufacturerAndManufacturerIdCategoryCodeShopifyMutation, useGetV4PartnerByRouteApplicationIdManufacturersQuery, useGetV4ManufacturerByRouteManufacturerIdOpportunitiesQuery, usePostV4ResellerByRouteResellerIdOpportunityAndManufacturerIdBidNumberEmailMutation, usePutV4ResellerByRouteResellerIdOpportunityAndManufacturerIdDefaultMutation, usePutV4ManufacturerByRouteManufacturerIdOpportunityAndBidNumberResellerResellerIdMutation, useGetV4PartnerByRouteApplicationIdPartnerAndPartnerIdQuery, useLazyGetV4PartnerByRouteApplicationIdPartnerAndPartnerIdQuery, usePostV4ResellerByRouteResellerIdProductAndRandmarSkuShopifyMutation, usePutV4ResellerByRouteResellerIdProductAndRandmarSkuRequisitionMutation, useGetV4PartnerByRouteApplicationIdProductAndRandmarSkuQuery, useLazyGetV4PartnerByRouteApplicationIdProductAndRandmarSkuQuery, useLazyGetV4PartnerByRouteApplicationIdProductsQuery, useGetProductByRandmarSkuImageQuery, useGetProductByProductNumberImageExistsQuery, useGetProductByProductNumberVideoQuery, useGetProductByProductNumberVideoExistsQuery, usePostV4ManufacturerByRouteManufacturerIdPurchaseOrderAndPurchaseOrderNumberEditItemRandmarSkuMutation, usePostV4ResellerByRouteResellerIdReportProductsEmailMutation, usePostV4ResellerByRouteResellerIdReportInvoicesEmailMutation, usePostV4ResellerByRouteResellerIdReportOpenOrdersEmailMutation, usePostV4ResellerByRouteResellerIdReportAmazonTrackingFileEmailMutation, usePostV4ResellerByRouteResellerIdReportWalmartTrackingFileEmailMutation, usePostV4ManufacturerByRouteManufacturerIdReportReorderEmailMutation, usePostV4ManufacturerByRouteManufacturerIdReportSalesEmailMutation, usePostV4ManufacturerByRouteManufacturerIdReportSalesAndResellerIdEmailMutation, usePostV4ManufacturerByRouteManufacturerIdReportInventoryEmailMutation, usePostV4ManufacturerByRouteManufacturerIdReportOpenOrdersEmailMutation, usePostV4ManufacturerByRouteManufacturerIdReportProductsEmailMutation, usePostV4ManufacturerByRouteManufacturerIdReportPurchasedOrdersEmailMutation, useDeleteV4ManufacturerByRouteManufacturerIdRequisitionAndRequisitionNumberMutation, useGetV4ManufacturerByRouteManufacturerIdResellerAndResellerIdQuery, usePutV4ManufacturerByRouteManufacturerIdResellerAndResellerIdQualificationMutation, useDeleteV4ManufacturerByRouteManufacturerIdResellerAndResellerIdQualificationMutation, usePutV4PartnerByRouteApplicationIdUserAndEmailAddressNotificationNotificationTypeMutation, useDeleteV4PartnerByRouteApplicationIdUserAndEmailAddressNotificationNotificationTypeMutation } = injectedRtkApi;
|
|
16950
16950
|
injectedRtkApi.enhanceEndpoints({
|
|
16951
16951
|
addTagTypes: ["Cart", "Conversation", "ConvoLinks", "Account", "Product", "Reseller", "Unread", "Warehouse", "WarehouseList", "Users", "Integration", "Shopify", "Logs", "Manufacturer"],
|
|
16952
16952
|
endpoints: {
|
|
@@ -43062,10 +43062,6 @@ var Type;
|
|
|
43062
43062
|
(function(e) {
|
|
43063
43063
|
e.TYPE_UNSPECIFIED = "TYPE_UNSPECIFIED", e.STRING = "STRING", e.NUMBER = "NUMBER", e.INTEGER = "INTEGER", e.BOOLEAN = "BOOLEAN", e.ARRAY = "ARRAY", e.OBJECT = "OBJECT", e.NULL = "NULL";
|
|
43064
43064
|
})(Type || (Type = {}));
|
|
43065
|
-
var Mode;
|
|
43066
|
-
(function(e) {
|
|
43067
|
-
e.MODE_UNSPECIFIED = "MODE_UNSPECIFIED", e.MODE_DYNAMIC = "MODE_DYNAMIC";
|
|
43068
|
-
})(Mode || (Mode = {}));
|
|
43069
43065
|
var ApiSpec;
|
|
43070
43066
|
(function(e) {
|
|
43071
43067
|
e.API_SPEC_UNSPECIFIED = "API_SPEC_UNSPECIFIED", e.SIMPLE_SEARCH = "SIMPLE_SEARCH", e.ELASTIC_SEARCH = "ELASTIC_SEARCH";
|
|
@@ -43082,6 +43078,18 @@ var PhishBlockThreshold;
|
|
|
43082
43078
|
(function(e) {
|
|
43083
43079
|
e.PHISH_BLOCK_THRESHOLD_UNSPECIFIED = "PHISH_BLOCK_THRESHOLD_UNSPECIFIED", e.BLOCK_LOW_AND_ABOVE = "BLOCK_LOW_AND_ABOVE", e.BLOCK_MEDIUM_AND_ABOVE = "BLOCK_MEDIUM_AND_ABOVE", e.BLOCK_HIGH_AND_ABOVE = "BLOCK_HIGH_AND_ABOVE", e.BLOCK_HIGHER_AND_ABOVE = "BLOCK_HIGHER_AND_ABOVE", e.BLOCK_VERY_HIGH_AND_ABOVE = "BLOCK_VERY_HIGH_AND_ABOVE", e.BLOCK_ONLY_EXTREMELY_HIGH = "BLOCK_ONLY_EXTREMELY_HIGH";
|
|
43084
43080
|
})(PhishBlockThreshold || (PhishBlockThreshold = {}));
|
|
43081
|
+
var Behavior;
|
|
43082
|
+
(function(e) {
|
|
43083
|
+
e.UNSPECIFIED = "UNSPECIFIED", e.BLOCKING = "BLOCKING", e.NON_BLOCKING = "NON_BLOCKING";
|
|
43084
|
+
})(Behavior || (Behavior = {}));
|
|
43085
|
+
var DynamicRetrievalConfigMode;
|
|
43086
|
+
(function(e) {
|
|
43087
|
+
e.MODE_UNSPECIFIED = "MODE_UNSPECIFIED", e.MODE_DYNAMIC = "MODE_DYNAMIC";
|
|
43088
|
+
})(DynamicRetrievalConfigMode || (DynamicRetrievalConfigMode = {}));
|
|
43089
|
+
var FunctionCallingConfigMode;
|
|
43090
|
+
(function(e) {
|
|
43091
|
+
e.MODE_UNSPECIFIED = "MODE_UNSPECIFIED", e.AUTO = "AUTO", e.ANY = "ANY", e.NONE = "NONE", e.VALIDATED = "VALIDATED";
|
|
43092
|
+
})(FunctionCallingConfigMode || (FunctionCallingConfigMode = {}));
|
|
43085
43093
|
var ThinkingLevel;
|
|
43086
43094
|
(function(e) {
|
|
43087
43095
|
e.THINKING_LEVEL_UNSPECIFIED = "THINKING_LEVEL_UNSPECIFIED", e.LOW = "LOW", e.MEDIUM = "MEDIUM", e.HIGH = "HIGH", e.MINIMAL = "MINIMAL";
|
|
@@ -43154,22 +43162,10 @@ var FeatureSelectionPreference;
|
|
|
43154
43162
|
(function(e) {
|
|
43155
43163
|
e.FEATURE_SELECTION_PREFERENCE_UNSPECIFIED = "FEATURE_SELECTION_PREFERENCE_UNSPECIFIED", e.PRIORITIZE_QUALITY = "PRIORITIZE_QUALITY", e.BALANCED = "BALANCED", e.PRIORITIZE_COST = "PRIORITIZE_COST";
|
|
43156
43164
|
})(FeatureSelectionPreference || (FeatureSelectionPreference = {}));
|
|
43157
|
-
var Behavior;
|
|
43158
|
-
(function(e) {
|
|
43159
|
-
e.UNSPECIFIED = "UNSPECIFIED", e.BLOCKING = "BLOCKING", e.NON_BLOCKING = "NON_BLOCKING";
|
|
43160
|
-
})(Behavior || (Behavior = {}));
|
|
43161
|
-
var DynamicRetrievalConfigMode;
|
|
43162
|
-
(function(e) {
|
|
43163
|
-
e.MODE_UNSPECIFIED = "MODE_UNSPECIFIED", e.MODE_DYNAMIC = "MODE_DYNAMIC";
|
|
43164
|
-
})(DynamicRetrievalConfigMode || (DynamicRetrievalConfigMode = {}));
|
|
43165
43165
|
var Environment;
|
|
43166
43166
|
(function(e) {
|
|
43167
43167
|
e.ENVIRONMENT_UNSPECIFIED = "ENVIRONMENT_UNSPECIFIED", e.ENVIRONMENT_BROWSER = "ENVIRONMENT_BROWSER";
|
|
43168
43168
|
})(Environment || (Environment = {}));
|
|
43169
|
-
var FunctionCallingConfigMode;
|
|
43170
|
-
(function(e) {
|
|
43171
|
-
e.MODE_UNSPECIFIED = "MODE_UNSPECIFIED", e.AUTO = "AUTO", e.ANY = "ANY", e.NONE = "NONE", e.VALIDATED = "VALIDATED";
|
|
43172
|
-
})(FunctionCallingConfigMode || (FunctionCallingConfigMode = {}));
|
|
43173
43169
|
var SafetyFilterLevel;
|
|
43174
43170
|
(function(e) {
|
|
43175
43171
|
e.BLOCK_LOW_AND_ABOVE = "BLOCK_LOW_AND_ABOVE", e.BLOCK_MEDIUM_AND_ABOVE = "BLOCK_MEDIUM_AND_ABOVE", e.BLOCK_ONLY_HIGH = "BLOCK_ONLY_HIGH", e.BLOCK_NONE = "BLOCK_NONE";
|
|
@@ -43228,7 +43224,7 @@ var FileState;
|
|
|
43228
43224
|
})(FileState || (FileState = {}));
|
|
43229
43225
|
var FileSource;
|
|
43230
43226
|
(function(e) {
|
|
43231
|
-
e.SOURCE_UNSPECIFIED = "SOURCE_UNSPECIFIED", e.UPLOADED = "UPLOADED", e.GENERATED = "GENERATED";
|
|
43227
|
+
e.SOURCE_UNSPECIFIED = "SOURCE_UNSPECIFIED", e.UPLOADED = "UPLOADED", e.GENERATED = "GENERATED", e.REGISTERED = "REGISTERED";
|
|
43232
43228
|
})(FileSource || (FileSource = {}));
|
|
43233
43229
|
var TurnCompleteReason;
|
|
43234
43230
|
(function(e) {
|
|
@@ -44314,12 +44310,12 @@ function functionCallToMldev$4(e) {
|
|
|
44314
44310
|
return t;
|
|
44315
44311
|
}
|
|
44316
44312
|
function functionCallingConfigToMldev$2(e) {
|
|
44317
|
-
const t = {}, n = getValueByPath(e, [
|
|
44318
|
-
n != null && setValueByPath(t, ["mode"], n);
|
|
44319
|
-
const a = getValueByPath(e, [
|
|
44313
|
+
const t = {}, n = getValueByPath(e, [
|
|
44320
44314
|
"allowedFunctionNames"
|
|
44321
44315
|
]);
|
|
44322
|
-
|
|
44316
|
+
n != null && setValueByPath(t, ["allowedFunctionNames"], n);
|
|
44317
|
+
const a = getValueByPath(e, ["mode"]);
|
|
44318
|
+
if (a != null && setValueByPath(t, ["mode"], a), getValueByPath(e, ["streamFunctionCallArguments"]) !== void 0)
|
|
44323
44319
|
throw new Error("streamFunctionCallArguments parameter is not supported in Gemini API.");
|
|
44324
44320
|
return t;
|
|
44325
44321
|
}
|
|
@@ -44471,7 +44467,9 @@ function imageConfigToMldev$1(e) {
|
|
|
44471
44467
|
const t = {}, n = getValueByPath(e, ["aspectRatio"]);
|
|
44472
44468
|
n != null && setValueByPath(t, ["aspectRatio"], n);
|
|
44473
44469
|
const a = getValueByPath(e, ["imageSize"]);
|
|
44474
|
-
if (a != null && setValueByPath(t, ["imageSize"], a), getValueByPath(e, ["
|
|
44470
|
+
if (a != null && setValueByPath(t, ["imageSize"], a), getValueByPath(e, ["personGeneration"]) !== void 0)
|
|
44471
|
+
throw new Error("personGeneration parameter is not supported in Gemini API.");
|
|
44472
|
+
if (getValueByPath(e, ["outputMimeType"]) !== void 0)
|
|
44475
44473
|
throw new Error("outputMimeType parameter is not supported in Gemini API.");
|
|
44476
44474
|
if (getValueByPath(e, ["outputCompressionQuality"]) !== void 0)
|
|
44477
44475
|
throw new Error("outputCompressionQuality parameter is not supported in Gemini API.");
|
|
@@ -44599,41 +44597,42 @@ function safetySettingToMldev$1(e) {
|
|
|
44599
44597
|
}
|
|
44600
44598
|
function toolConfigToMldev$2(e) {
|
|
44601
44599
|
const t = {}, n = getValueByPath(e, [
|
|
44602
|
-
"
|
|
44600
|
+
"retrievalConfig"
|
|
44603
44601
|
]);
|
|
44604
|
-
n != null && setValueByPath(t, ["
|
|
44602
|
+
n != null && setValueByPath(t, ["retrievalConfig"], n);
|
|
44605
44603
|
const a = getValueByPath(e, [
|
|
44606
|
-
"
|
|
44604
|
+
"functionCallingConfig"
|
|
44607
44605
|
]);
|
|
44608
|
-
return a != null && setValueByPath(t, ["
|
|
44606
|
+
return a != null && setValueByPath(t, ["functionCallingConfig"], functionCallingConfigToMldev$2(a)), t;
|
|
44609
44607
|
}
|
|
44610
44608
|
function toolToMldev$4(e) {
|
|
44611
|
-
const t = {}
|
|
44609
|
+
const t = {};
|
|
44610
|
+
if (getValueByPath(e, ["retrieval"]) !== void 0)
|
|
44611
|
+
throw new Error("retrieval parameter is not supported in Gemini API.");
|
|
44612
|
+
const n = getValueByPath(e, ["computerUse"]);
|
|
44613
|
+
n != null && setValueByPath(t, ["computerUse"], n);
|
|
44614
|
+
const a = getValueByPath(e, ["fileSearch"]);
|
|
44615
|
+
a != null && setValueByPath(t, ["fileSearch"], a);
|
|
44616
|
+
const s = getValueByPath(e, [
|
|
44617
|
+
"codeExecution"
|
|
44618
|
+
]);
|
|
44619
|
+
if (s != null && setValueByPath(t, ["codeExecution"], s), getValueByPath(e, ["enterpriseWebSearch"]) !== void 0)
|
|
44620
|
+
throw new Error("enterpriseWebSearch parameter is not supported in Gemini API.");
|
|
44621
|
+
const o = getValueByPath(e, [
|
|
44612
44622
|
"functionDeclarations"
|
|
44613
44623
|
]);
|
|
44614
|
-
if (
|
|
44615
|
-
let A =
|
|
44624
|
+
if (o != null) {
|
|
44625
|
+
let A = o;
|
|
44616
44626
|
Array.isArray(A) && (A = A.map((R) => R)), setValueByPath(t, ["functionDeclarations"], A);
|
|
44617
44627
|
}
|
|
44618
|
-
|
|
44619
|
-
|
|
44620
|
-
const
|
|
44628
|
+
const l = getValueByPath(e, ["googleMaps"]);
|
|
44629
|
+
l != null && setValueByPath(t, ["googleMaps"], googleMapsToMldev$4(l));
|
|
44630
|
+
const c = getValueByPath(e, ["googleSearch"]);
|
|
44631
|
+
c != null && setValueByPath(t, ["googleSearch"], googleSearchToMldev$4(c));
|
|
44632
|
+
const f = getValueByPath(e, [
|
|
44621
44633
|
"googleSearchRetrieval"
|
|
44622
44634
|
]);
|
|
44623
|
-
|
|
44624
|
-
const s = getValueByPath(e, ["computerUse"]);
|
|
44625
|
-
s != null && setValueByPath(t, ["computerUse"], s);
|
|
44626
|
-
const o = getValueByPath(e, ["fileSearch"]);
|
|
44627
|
-
o != null && setValueByPath(t, ["fileSearch"], o);
|
|
44628
|
-
const l = getValueByPath(e, [
|
|
44629
|
-
"codeExecution"
|
|
44630
|
-
]);
|
|
44631
|
-
if (l != null && setValueByPath(t, ["codeExecution"], l), getValueByPath(e, ["enterpriseWebSearch"]) !== void 0)
|
|
44632
|
-
throw new Error("enterpriseWebSearch parameter is not supported in Gemini API.");
|
|
44633
|
-
const c = getValueByPath(e, ["googleMaps"]);
|
|
44634
|
-
c != null && setValueByPath(t, ["googleMaps"], googleMapsToMldev$4(c));
|
|
44635
|
-
const f = getValueByPath(e, ["googleSearch"]);
|
|
44636
|
-
f != null && setValueByPath(t, ["googleSearch"], googleSearchToMldev$4(f));
|
|
44635
|
+
f != null && setValueByPath(t, ["googleSearchRetrieval"], f);
|
|
44637
44636
|
const g = getValueByPath(e, ["urlContext"]);
|
|
44638
44637
|
return g != null && setValueByPath(t, ["urlContext"], g), t;
|
|
44639
44638
|
}
|
|
@@ -45182,20 +45181,17 @@ function functionCallToMldev$3(e) {
|
|
|
45182
45181
|
return t;
|
|
45183
45182
|
}
|
|
45184
45183
|
function functionCallingConfigToMldev$1(e) {
|
|
45185
|
-
const t = {}, n = getValueByPath(e, [
|
|
45186
|
-
n != null && setValueByPath(t, ["mode"], n);
|
|
45187
|
-
const a = getValueByPath(e, [
|
|
45184
|
+
const t = {}, n = getValueByPath(e, [
|
|
45188
45185
|
"allowedFunctionNames"
|
|
45189
45186
|
]);
|
|
45190
|
-
|
|
45187
|
+
n != null && setValueByPath(t, ["allowedFunctionNames"], n);
|
|
45188
|
+
const a = getValueByPath(e, ["mode"]);
|
|
45189
|
+
if (a != null && setValueByPath(t, ["mode"], a), getValueByPath(e, ["streamFunctionCallArguments"]) !== void 0)
|
|
45191
45190
|
throw new Error("streamFunctionCallArguments parameter is not supported in Gemini API.");
|
|
45192
45191
|
return t;
|
|
45193
45192
|
}
|
|
45194
45193
|
function functionDeclarationToVertex$2(e) {
|
|
45195
|
-
const t = {};
|
|
45196
|
-
if (getValueByPath(e, ["behavior"]) !== void 0)
|
|
45197
|
-
throw new Error("behavior parameter is not supported in Vertex AI.");
|
|
45198
|
-
const n = getValueByPath(e, ["description"]);
|
|
45194
|
+
const t = {}, n = getValueByPath(e, ["description"]);
|
|
45199
45195
|
n != null && setValueByPath(t, ["description"], n);
|
|
45200
45196
|
const a = getValueByPath(e, ["name"]);
|
|
45201
45197
|
a != null && setValueByPath(t, ["name"], a);
|
|
@@ -45210,7 +45206,9 @@ function functionDeclarationToVertex$2(e) {
|
|
|
45210
45206
|
const c = getValueByPath(e, [
|
|
45211
45207
|
"responseJsonSchema"
|
|
45212
45208
|
]);
|
|
45213
|
-
|
|
45209
|
+
if (c != null && setValueByPath(t, ["responseJsonSchema"], c), getValueByPath(e, ["behavior"]) !== void 0)
|
|
45210
|
+
throw new Error("behavior parameter is not supported in Vertex AI.");
|
|
45211
|
+
return t;
|
|
45214
45212
|
}
|
|
45215
45213
|
function getCachedContentParametersToMldev(e, t) {
|
|
45216
45214
|
const n = {}, a = getValueByPath(t, ["name"]);
|
|
@@ -45332,73 +45330,74 @@ function partToMldev$3(e) {
|
|
|
45332
45330
|
}
|
|
45333
45331
|
function toolConfigToMldev$1(e) {
|
|
45334
45332
|
const t = {}, n = getValueByPath(e, [
|
|
45335
|
-
"
|
|
45333
|
+
"retrievalConfig"
|
|
45336
45334
|
]);
|
|
45337
|
-
n != null && setValueByPath(t, ["
|
|
45335
|
+
n != null && setValueByPath(t, ["retrievalConfig"], n);
|
|
45338
45336
|
const a = getValueByPath(e, [
|
|
45339
|
-
"
|
|
45337
|
+
"functionCallingConfig"
|
|
45340
45338
|
]);
|
|
45341
|
-
return a != null && setValueByPath(t, ["
|
|
45339
|
+
return a != null && setValueByPath(t, ["functionCallingConfig"], functionCallingConfigToMldev$1(a)), t;
|
|
45342
45340
|
}
|
|
45343
45341
|
function toolToMldev$3(e) {
|
|
45344
|
-
const t = {}
|
|
45342
|
+
const t = {};
|
|
45343
|
+
if (getValueByPath(e, ["retrieval"]) !== void 0)
|
|
45344
|
+
throw new Error("retrieval parameter is not supported in Gemini API.");
|
|
45345
|
+
const n = getValueByPath(e, ["computerUse"]);
|
|
45346
|
+
n != null && setValueByPath(t, ["computerUse"], n);
|
|
45347
|
+
const a = getValueByPath(e, ["fileSearch"]);
|
|
45348
|
+
a != null && setValueByPath(t, ["fileSearch"], a);
|
|
45349
|
+
const s = getValueByPath(e, [
|
|
45350
|
+
"codeExecution"
|
|
45351
|
+
]);
|
|
45352
|
+
if (s != null && setValueByPath(t, ["codeExecution"], s), getValueByPath(e, ["enterpriseWebSearch"]) !== void 0)
|
|
45353
|
+
throw new Error("enterpriseWebSearch parameter is not supported in Gemini API.");
|
|
45354
|
+
const o = getValueByPath(e, [
|
|
45345
45355
|
"functionDeclarations"
|
|
45346
45356
|
]);
|
|
45347
|
-
if (
|
|
45348
|
-
let A =
|
|
45357
|
+
if (o != null) {
|
|
45358
|
+
let A = o;
|
|
45349
45359
|
Array.isArray(A) && (A = A.map((R) => R)), setValueByPath(t, ["functionDeclarations"], A);
|
|
45350
45360
|
}
|
|
45351
|
-
|
|
45352
|
-
|
|
45353
|
-
const
|
|
45361
|
+
const l = getValueByPath(e, ["googleMaps"]);
|
|
45362
|
+
l != null && setValueByPath(t, ["googleMaps"], googleMapsToMldev$3(l));
|
|
45363
|
+
const c = getValueByPath(e, ["googleSearch"]);
|
|
45364
|
+
c != null && setValueByPath(t, ["googleSearch"], googleSearchToMldev$3(c));
|
|
45365
|
+
const f = getValueByPath(e, [
|
|
45354
45366
|
"googleSearchRetrieval"
|
|
45355
45367
|
]);
|
|
45356
|
-
|
|
45357
|
-
const s = getValueByPath(e, ["computerUse"]);
|
|
45358
|
-
s != null && setValueByPath(t, ["computerUse"], s);
|
|
45359
|
-
const o = getValueByPath(e, ["fileSearch"]);
|
|
45360
|
-
o != null && setValueByPath(t, ["fileSearch"], o);
|
|
45361
|
-
const l = getValueByPath(e, [
|
|
45362
|
-
"codeExecution"
|
|
45363
|
-
]);
|
|
45364
|
-
if (l != null && setValueByPath(t, ["codeExecution"], l), getValueByPath(e, ["enterpriseWebSearch"]) !== void 0)
|
|
45365
|
-
throw new Error("enterpriseWebSearch parameter is not supported in Gemini API.");
|
|
45366
|
-
const c = getValueByPath(e, ["googleMaps"]);
|
|
45367
|
-
c != null && setValueByPath(t, ["googleMaps"], googleMapsToMldev$3(c));
|
|
45368
|
-
const f = getValueByPath(e, ["googleSearch"]);
|
|
45369
|
-
f != null && setValueByPath(t, ["googleSearch"], googleSearchToMldev$3(f));
|
|
45368
|
+
f != null && setValueByPath(t, ["googleSearchRetrieval"], f);
|
|
45370
45369
|
const g = getValueByPath(e, ["urlContext"]);
|
|
45371
45370
|
return g != null && setValueByPath(t, ["urlContext"], g), t;
|
|
45372
45371
|
}
|
|
45373
45372
|
function toolToVertex$2(e) {
|
|
45374
|
-
const t = {}, n = getValueByPath(e, [
|
|
45373
|
+
const t = {}, n = getValueByPath(e, ["retrieval"]);
|
|
45374
|
+
n != null && setValueByPath(t, ["retrieval"], n);
|
|
45375
|
+
const a = getValueByPath(e, ["computerUse"]);
|
|
45376
|
+
if (a != null && setValueByPath(t, ["computerUse"], a), getValueByPath(e, ["fileSearch"]) !== void 0)
|
|
45377
|
+
throw new Error("fileSearch parameter is not supported in Vertex AI.");
|
|
45378
|
+
const s = getValueByPath(e, [
|
|
45379
|
+
"codeExecution"
|
|
45380
|
+
]);
|
|
45381
|
+
s != null && setValueByPath(t, ["codeExecution"], s);
|
|
45382
|
+
const o = getValueByPath(e, [
|
|
45383
|
+
"enterpriseWebSearch"
|
|
45384
|
+
]);
|
|
45385
|
+
o != null && setValueByPath(t, ["enterpriseWebSearch"], o);
|
|
45386
|
+
const l = getValueByPath(e, [
|
|
45375
45387
|
"functionDeclarations"
|
|
45376
45388
|
]);
|
|
45377
|
-
if (
|
|
45378
|
-
let R =
|
|
45389
|
+
if (l != null) {
|
|
45390
|
+
let R = l;
|
|
45379
45391
|
Array.isArray(R) && (R = R.map((V) => functionDeclarationToVertex$2(V))), setValueByPath(t, ["functionDeclarations"], R);
|
|
45380
45392
|
}
|
|
45381
|
-
const
|
|
45382
|
-
|
|
45383
|
-
const
|
|
45393
|
+
const c = getValueByPath(e, ["googleMaps"]);
|
|
45394
|
+
c != null && setValueByPath(t, ["googleMaps"], c);
|
|
45395
|
+
const f = getValueByPath(e, ["googleSearch"]);
|
|
45396
|
+
f != null && setValueByPath(t, ["googleSearch"], f);
|
|
45397
|
+
const g = getValueByPath(e, [
|
|
45384
45398
|
"googleSearchRetrieval"
|
|
45385
45399
|
]);
|
|
45386
|
-
|
|
45387
|
-
const o = getValueByPath(e, ["computerUse"]);
|
|
45388
|
-
if (o != null && setValueByPath(t, ["computerUse"], o), getValueByPath(e, ["fileSearch"]) !== void 0)
|
|
45389
|
-
throw new Error("fileSearch parameter is not supported in Vertex AI.");
|
|
45390
|
-
const l = getValueByPath(e, [
|
|
45391
|
-
"codeExecution"
|
|
45392
|
-
]);
|
|
45393
|
-
l != null && setValueByPath(t, ["codeExecution"], l);
|
|
45394
|
-
const c = getValueByPath(e, [
|
|
45395
|
-
"enterpriseWebSearch"
|
|
45396
|
-
]);
|
|
45397
|
-
c != null && setValueByPath(t, ["enterpriseWebSearch"], c);
|
|
45398
|
-
const f = getValueByPath(e, ["googleMaps"]);
|
|
45399
|
-
f != null && setValueByPath(t, ["googleMaps"], f);
|
|
45400
|
-
const g = getValueByPath(e, ["googleSearch"]);
|
|
45401
|
-
g != null && setValueByPath(t, ["googleSearch"], g);
|
|
45400
|
+
g != null && setValueByPath(t, ["googleSearchRetrieval"], g);
|
|
45402
45401
|
const A = getValueByPath(e, ["urlContext"]);
|
|
45403
45402
|
return A != null && setValueByPath(t, ["urlContext"], A), t;
|
|
45404
45403
|
}
|
|
@@ -46256,10 +46255,7 @@ function functionCallToMldev$2(e) {
|
|
|
46256
46255
|
return t;
|
|
46257
46256
|
}
|
|
46258
46257
|
function functionDeclarationToVertex$1(e) {
|
|
46259
|
-
const t = {};
|
|
46260
|
-
if (getValueByPath(e, ["behavior"]) !== void 0)
|
|
46261
|
-
throw new Error("behavior parameter is not supported in Vertex AI.");
|
|
46262
|
-
const n = getValueByPath(e, ["description"]);
|
|
46258
|
+
const t = {}, n = getValueByPath(e, ["description"]);
|
|
46263
46259
|
n != null && setValueByPath(t, ["description"], n);
|
|
46264
46260
|
const a = getValueByPath(e, ["name"]);
|
|
46265
46261
|
a != null && setValueByPath(t, ["name"], a);
|
|
@@ -46274,7 +46270,9 @@ function functionDeclarationToVertex$1(e) {
|
|
|
46274
46270
|
const c = getValueByPath(e, [
|
|
46275
46271
|
"responseJsonSchema"
|
|
46276
46272
|
]);
|
|
46277
|
-
|
|
46273
|
+
if (c != null && setValueByPath(t, ["responseJsonSchema"], c), getValueByPath(e, ["behavior"]) !== void 0)
|
|
46274
|
+
throw new Error("behavior parameter is not supported in Vertex AI.");
|
|
46275
|
+
return t;
|
|
46278
46276
|
}
|
|
46279
46277
|
function generationConfigToVertex$1(e) {
|
|
46280
46278
|
const t = {}, n = getValueByPath(e, [
|
|
@@ -46661,64 +46659,65 @@ function sessionResumptionConfigToMldev$1(e) {
|
|
|
46661
46659
|
return t;
|
|
46662
46660
|
}
|
|
46663
46661
|
function toolToMldev$2(e) {
|
|
46664
|
-
const t = {}
|
|
46662
|
+
const t = {};
|
|
46663
|
+
if (getValueByPath(e, ["retrieval"]) !== void 0)
|
|
46664
|
+
throw new Error("retrieval parameter is not supported in Gemini API.");
|
|
46665
|
+
const n = getValueByPath(e, ["computerUse"]);
|
|
46666
|
+
n != null && setValueByPath(t, ["computerUse"], n);
|
|
46667
|
+
const a = getValueByPath(e, ["fileSearch"]);
|
|
46668
|
+
a != null && setValueByPath(t, ["fileSearch"], a);
|
|
46669
|
+
const s = getValueByPath(e, [
|
|
46670
|
+
"codeExecution"
|
|
46671
|
+
]);
|
|
46672
|
+
if (s != null && setValueByPath(t, ["codeExecution"], s), getValueByPath(e, ["enterpriseWebSearch"]) !== void 0)
|
|
46673
|
+
throw new Error("enterpriseWebSearch parameter is not supported in Gemini API.");
|
|
46674
|
+
const o = getValueByPath(e, [
|
|
46665
46675
|
"functionDeclarations"
|
|
46666
46676
|
]);
|
|
46667
|
-
if (
|
|
46668
|
-
let A =
|
|
46677
|
+
if (o != null) {
|
|
46678
|
+
let A = o;
|
|
46669
46679
|
Array.isArray(A) && (A = A.map((R) => R)), setValueByPath(t, ["functionDeclarations"], A);
|
|
46670
46680
|
}
|
|
46671
|
-
|
|
46672
|
-
|
|
46673
|
-
const
|
|
46681
|
+
const l = getValueByPath(e, ["googleMaps"]);
|
|
46682
|
+
l != null && setValueByPath(t, ["googleMaps"], googleMapsToMldev$2(l));
|
|
46683
|
+
const c = getValueByPath(e, ["googleSearch"]);
|
|
46684
|
+
c != null && setValueByPath(t, ["googleSearch"], googleSearchToMldev$2(c));
|
|
46685
|
+
const f = getValueByPath(e, [
|
|
46674
46686
|
"googleSearchRetrieval"
|
|
46675
46687
|
]);
|
|
46676
|
-
|
|
46677
|
-
const s = getValueByPath(e, ["computerUse"]);
|
|
46678
|
-
s != null && setValueByPath(t, ["computerUse"], s);
|
|
46679
|
-
const o = getValueByPath(e, ["fileSearch"]);
|
|
46680
|
-
o != null && setValueByPath(t, ["fileSearch"], o);
|
|
46681
|
-
const l = getValueByPath(e, [
|
|
46682
|
-
"codeExecution"
|
|
46683
|
-
]);
|
|
46684
|
-
if (l != null && setValueByPath(t, ["codeExecution"], l), getValueByPath(e, ["enterpriseWebSearch"]) !== void 0)
|
|
46685
|
-
throw new Error("enterpriseWebSearch parameter is not supported in Gemini API.");
|
|
46686
|
-
const c = getValueByPath(e, ["googleMaps"]);
|
|
46687
|
-
c != null && setValueByPath(t, ["googleMaps"], googleMapsToMldev$2(c));
|
|
46688
|
-
const f = getValueByPath(e, ["googleSearch"]);
|
|
46689
|
-
f != null && setValueByPath(t, ["googleSearch"], googleSearchToMldev$2(f));
|
|
46688
|
+
f != null && setValueByPath(t, ["googleSearchRetrieval"], f);
|
|
46690
46689
|
const g = getValueByPath(e, ["urlContext"]);
|
|
46691
46690
|
return g != null && setValueByPath(t, ["urlContext"], g), t;
|
|
46692
46691
|
}
|
|
46693
46692
|
function toolToVertex$1(e) {
|
|
46694
|
-
const t = {}, n = getValueByPath(e, [
|
|
46693
|
+
const t = {}, n = getValueByPath(e, ["retrieval"]);
|
|
46694
|
+
n != null && setValueByPath(t, ["retrieval"], n);
|
|
46695
|
+
const a = getValueByPath(e, ["computerUse"]);
|
|
46696
|
+
if (a != null && setValueByPath(t, ["computerUse"], a), getValueByPath(e, ["fileSearch"]) !== void 0)
|
|
46697
|
+
throw new Error("fileSearch parameter is not supported in Vertex AI.");
|
|
46698
|
+
const s = getValueByPath(e, [
|
|
46699
|
+
"codeExecution"
|
|
46700
|
+
]);
|
|
46701
|
+
s != null && setValueByPath(t, ["codeExecution"], s);
|
|
46702
|
+
const o = getValueByPath(e, [
|
|
46703
|
+
"enterpriseWebSearch"
|
|
46704
|
+
]);
|
|
46705
|
+
o != null && setValueByPath(t, ["enterpriseWebSearch"], o);
|
|
46706
|
+
const l = getValueByPath(e, [
|
|
46695
46707
|
"functionDeclarations"
|
|
46696
46708
|
]);
|
|
46697
|
-
if (
|
|
46698
|
-
let R =
|
|
46709
|
+
if (l != null) {
|
|
46710
|
+
let R = l;
|
|
46699
46711
|
Array.isArray(R) && (R = R.map((V) => functionDeclarationToVertex$1(V))), setValueByPath(t, ["functionDeclarations"], R);
|
|
46700
46712
|
}
|
|
46701
|
-
const
|
|
46702
|
-
|
|
46703
|
-
const
|
|
46713
|
+
const c = getValueByPath(e, ["googleMaps"]);
|
|
46714
|
+
c != null && setValueByPath(t, ["googleMaps"], c);
|
|
46715
|
+
const f = getValueByPath(e, ["googleSearch"]);
|
|
46716
|
+
f != null && setValueByPath(t, ["googleSearch"], f);
|
|
46717
|
+
const g = getValueByPath(e, [
|
|
46704
46718
|
"googleSearchRetrieval"
|
|
46705
46719
|
]);
|
|
46706
|
-
|
|
46707
|
-
const o = getValueByPath(e, ["computerUse"]);
|
|
46708
|
-
if (o != null && setValueByPath(t, ["computerUse"], o), getValueByPath(e, ["fileSearch"]) !== void 0)
|
|
46709
|
-
throw new Error("fileSearch parameter is not supported in Vertex AI.");
|
|
46710
|
-
const l = getValueByPath(e, [
|
|
46711
|
-
"codeExecution"
|
|
46712
|
-
]);
|
|
46713
|
-
l != null && setValueByPath(t, ["codeExecution"], l);
|
|
46714
|
-
const c = getValueByPath(e, [
|
|
46715
|
-
"enterpriseWebSearch"
|
|
46716
|
-
]);
|
|
46717
|
-
c != null && setValueByPath(t, ["enterpriseWebSearch"], c);
|
|
46718
|
-
const f = getValueByPath(e, ["googleMaps"]);
|
|
46719
|
-
f != null && setValueByPath(t, ["googleMaps"], f);
|
|
46720
|
-
const g = getValueByPath(e, ["googleSearch"]);
|
|
46721
|
-
g != null && setValueByPath(t, ["googleSearch"], g);
|
|
46720
|
+
g != null && setValueByPath(t, ["googleSearchRetrieval"], g);
|
|
46722
46721
|
const A = getValueByPath(e, ["urlContext"]);
|
|
46723
46722
|
return A != null && setValueByPath(t, ["urlContext"], A), t;
|
|
46724
46723
|
}
|
|
@@ -47165,20 +47164,17 @@ function functionCallToMldev$1(e) {
|
|
|
47165
47164
|
return t;
|
|
47166
47165
|
}
|
|
47167
47166
|
function functionCallingConfigToMldev(e) {
|
|
47168
|
-
const t = {}, n = getValueByPath(e, [
|
|
47169
|
-
n != null && setValueByPath(t, ["mode"], n);
|
|
47170
|
-
const a = getValueByPath(e, [
|
|
47167
|
+
const t = {}, n = getValueByPath(e, [
|
|
47171
47168
|
"allowedFunctionNames"
|
|
47172
47169
|
]);
|
|
47173
|
-
|
|
47170
|
+
n != null && setValueByPath(t, ["allowedFunctionNames"], n);
|
|
47171
|
+
const a = getValueByPath(e, ["mode"]);
|
|
47172
|
+
if (a != null && setValueByPath(t, ["mode"], a), getValueByPath(e, ["streamFunctionCallArguments"]) !== void 0)
|
|
47174
47173
|
throw new Error("streamFunctionCallArguments parameter is not supported in Gemini API.");
|
|
47175
47174
|
return t;
|
|
47176
47175
|
}
|
|
47177
47176
|
function functionDeclarationToVertex(e) {
|
|
47178
|
-
const t = {};
|
|
47179
|
-
if (getValueByPath(e, ["behavior"]) !== void 0)
|
|
47180
|
-
throw new Error("behavior parameter is not supported in Vertex AI.");
|
|
47181
|
-
const n = getValueByPath(e, ["description"]);
|
|
47177
|
+
const t = {}, n = getValueByPath(e, ["description"]);
|
|
47182
47178
|
n != null && setValueByPath(t, ["description"], n);
|
|
47183
47179
|
const a = getValueByPath(e, ["name"]);
|
|
47184
47180
|
a != null && setValueByPath(t, ["name"], a);
|
|
@@ -47193,7 +47189,9 @@ function functionDeclarationToVertex(e) {
|
|
|
47193
47189
|
const c = getValueByPath(e, [
|
|
47194
47190
|
"responseJsonSchema"
|
|
47195
47191
|
]);
|
|
47196
|
-
|
|
47192
|
+
if (c != null && setValueByPath(t, ["responseJsonSchema"], c), getValueByPath(e, ["behavior"]) !== void 0)
|
|
47193
|
+
throw new Error("behavior parameter is not supported in Vertex AI.");
|
|
47194
|
+
return t;
|
|
47197
47195
|
}
|
|
47198
47196
|
function generateContentConfigToMldev(e, t, n) {
|
|
47199
47197
|
const a = {}, s = getValueByPath(t, [
|
|
@@ -47971,7 +47969,9 @@ function imageConfigToMldev(e) {
|
|
|
47971
47969
|
const t = {}, n = getValueByPath(e, ["aspectRatio"]);
|
|
47972
47970
|
n != null && setValueByPath(t, ["aspectRatio"], n);
|
|
47973
47971
|
const a = getValueByPath(e, ["imageSize"]);
|
|
47974
|
-
if (a != null && setValueByPath(t, ["imageSize"], a), getValueByPath(e, ["
|
|
47972
|
+
if (a != null && setValueByPath(t, ["imageSize"], a), getValueByPath(e, ["personGeneration"]) !== void 0)
|
|
47973
|
+
throw new Error("personGeneration parameter is not supported in Gemini API.");
|
|
47974
|
+
if (getValueByPath(e, ["outputMimeType"]) !== void 0)
|
|
47975
47975
|
throw new Error("outputMimeType parameter is not supported in Gemini API.");
|
|
47976
47976
|
if (getValueByPath(e, ["outputCompressionQuality"]) !== void 0)
|
|
47977
47977
|
throw new Error("outputCompressionQuality parameter is not supported in Gemini API.");
|
|
@@ -47983,13 +47983,17 @@ function imageConfigToVertex(e) {
|
|
|
47983
47983
|
const a = getValueByPath(e, ["imageSize"]);
|
|
47984
47984
|
a != null && setValueByPath(t, ["imageSize"], a);
|
|
47985
47985
|
const s = getValueByPath(e, [
|
|
47986
|
-
"
|
|
47986
|
+
"personGeneration"
|
|
47987
47987
|
]);
|
|
47988
|
-
s != null && setValueByPath(t, ["
|
|
47988
|
+
s != null && setValueByPath(t, ["personGeneration"], s);
|
|
47989
47989
|
const o = getValueByPath(e, [
|
|
47990
|
+
"outputMimeType"
|
|
47991
|
+
]);
|
|
47992
|
+
o != null && setValueByPath(t, ["imageOutputOptions", "mimeType"], o);
|
|
47993
|
+
const l = getValueByPath(e, [
|
|
47990
47994
|
"outputCompressionQuality"
|
|
47991
47995
|
]);
|
|
47992
|
-
return
|
|
47996
|
+
return l != null && setValueByPath(t, ["imageOutputOptions", "compressionQuality"], l), t;
|
|
47993
47997
|
}
|
|
47994
47998
|
function imageFromMldev(e) {
|
|
47995
47999
|
const t = {}, n = getValueByPath(e, [
|
|
@@ -48384,73 +48388,74 @@ function segmentImageSourceToVertex(e, t) {
|
|
|
48384
48388
|
}
|
|
48385
48389
|
function toolConfigToMldev(e) {
|
|
48386
48390
|
const t = {}, n = getValueByPath(e, [
|
|
48387
|
-
"
|
|
48391
|
+
"retrievalConfig"
|
|
48388
48392
|
]);
|
|
48389
|
-
n != null && setValueByPath(t, ["
|
|
48393
|
+
n != null && setValueByPath(t, ["retrievalConfig"], n);
|
|
48390
48394
|
const a = getValueByPath(e, [
|
|
48391
|
-
"
|
|
48395
|
+
"functionCallingConfig"
|
|
48392
48396
|
]);
|
|
48393
|
-
return a != null && setValueByPath(t, ["
|
|
48397
|
+
return a != null && setValueByPath(t, ["functionCallingConfig"], functionCallingConfigToMldev(a)), t;
|
|
48394
48398
|
}
|
|
48395
48399
|
function toolToMldev$1(e) {
|
|
48396
|
-
const t = {}
|
|
48400
|
+
const t = {};
|
|
48401
|
+
if (getValueByPath(e, ["retrieval"]) !== void 0)
|
|
48402
|
+
throw new Error("retrieval parameter is not supported in Gemini API.");
|
|
48403
|
+
const n = getValueByPath(e, ["computerUse"]);
|
|
48404
|
+
n != null && setValueByPath(t, ["computerUse"], n);
|
|
48405
|
+
const a = getValueByPath(e, ["fileSearch"]);
|
|
48406
|
+
a != null && setValueByPath(t, ["fileSearch"], a);
|
|
48407
|
+
const s = getValueByPath(e, [
|
|
48408
|
+
"codeExecution"
|
|
48409
|
+
]);
|
|
48410
|
+
if (s != null && setValueByPath(t, ["codeExecution"], s), getValueByPath(e, ["enterpriseWebSearch"]) !== void 0)
|
|
48411
|
+
throw new Error("enterpriseWebSearch parameter is not supported in Gemini API.");
|
|
48412
|
+
const o = getValueByPath(e, [
|
|
48397
48413
|
"functionDeclarations"
|
|
48398
48414
|
]);
|
|
48399
|
-
if (
|
|
48400
|
-
let A =
|
|
48415
|
+
if (o != null) {
|
|
48416
|
+
let A = o;
|
|
48401
48417
|
Array.isArray(A) && (A = A.map((R) => R)), setValueByPath(t, ["functionDeclarations"], A);
|
|
48402
48418
|
}
|
|
48403
|
-
|
|
48404
|
-
|
|
48405
|
-
const
|
|
48419
|
+
const l = getValueByPath(e, ["googleMaps"]);
|
|
48420
|
+
l != null && setValueByPath(t, ["googleMaps"], googleMapsToMldev$1(l));
|
|
48421
|
+
const c = getValueByPath(e, ["googleSearch"]);
|
|
48422
|
+
c != null && setValueByPath(t, ["googleSearch"], googleSearchToMldev$1(c));
|
|
48423
|
+
const f = getValueByPath(e, [
|
|
48406
48424
|
"googleSearchRetrieval"
|
|
48407
48425
|
]);
|
|
48408
|
-
|
|
48409
|
-
const s = getValueByPath(e, ["computerUse"]);
|
|
48410
|
-
s != null && setValueByPath(t, ["computerUse"], s);
|
|
48411
|
-
const o = getValueByPath(e, ["fileSearch"]);
|
|
48412
|
-
o != null && setValueByPath(t, ["fileSearch"], o);
|
|
48413
|
-
const l = getValueByPath(e, [
|
|
48414
|
-
"codeExecution"
|
|
48415
|
-
]);
|
|
48416
|
-
if (l != null && setValueByPath(t, ["codeExecution"], l), getValueByPath(e, ["enterpriseWebSearch"]) !== void 0)
|
|
48417
|
-
throw new Error("enterpriseWebSearch parameter is not supported in Gemini API.");
|
|
48418
|
-
const c = getValueByPath(e, ["googleMaps"]);
|
|
48419
|
-
c != null && setValueByPath(t, ["googleMaps"], googleMapsToMldev$1(c));
|
|
48420
|
-
const f = getValueByPath(e, ["googleSearch"]);
|
|
48421
|
-
f != null && setValueByPath(t, ["googleSearch"], googleSearchToMldev$1(f));
|
|
48426
|
+
f != null && setValueByPath(t, ["googleSearchRetrieval"], f);
|
|
48422
48427
|
const g = getValueByPath(e, ["urlContext"]);
|
|
48423
48428
|
return g != null && setValueByPath(t, ["urlContext"], g), t;
|
|
48424
48429
|
}
|
|
48425
48430
|
function toolToVertex(e) {
|
|
48426
|
-
const t = {}, n = getValueByPath(e, [
|
|
48431
|
+
const t = {}, n = getValueByPath(e, ["retrieval"]);
|
|
48432
|
+
n != null && setValueByPath(t, ["retrieval"], n);
|
|
48433
|
+
const a = getValueByPath(e, ["computerUse"]);
|
|
48434
|
+
if (a != null && setValueByPath(t, ["computerUse"], a), getValueByPath(e, ["fileSearch"]) !== void 0)
|
|
48435
|
+
throw new Error("fileSearch parameter is not supported in Vertex AI.");
|
|
48436
|
+
const s = getValueByPath(e, [
|
|
48437
|
+
"codeExecution"
|
|
48438
|
+
]);
|
|
48439
|
+
s != null && setValueByPath(t, ["codeExecution"], s);
|
|
48440
|
+
const o = getValueByPath(e, [
|
|
48441
|
+
"enterpriseWebSearch"
|
|
48442
|
+
]);
|
|
48443
|
+
o != null && setValueByPath(t, ["enterpriseWebSearch"], o);
|
|
48444
|
+
const l = getValueByPath(e, [
|
|
48427
48445
|
"functionDeclarations"
|
|
48428
48446
|
]);
|
|
48429
|
-
if (
|
|
48430
|
-
let R =
|
|
48447
|
+
if (l != null) {
|
|
48448
|
+
let R = l;
|
|
48431
48449
|
Array.isArray(R) && (R = R.map((V) => functionDeclarationToVertex(V))), setValueByPath(t, ["functionDeclarations"], R);
|
|
48432
48450
|
}
|
|
48433
|
-
const
|
|
48434
|
-
|
|
48435
|
-
const
|
|
48451
|
+
const c = getValueByPath(e, ["googleMaps"]);
|
|
48452
|
+
c != null && setValueByPath(t, ["googleMaps"], c);
|
|
48453
|
+
const f = getValueByPath(e, ["googleSearch"]);
|
|
48454
|
+
f != null && setValueByPath(t, ["googleSearch"], f);
|
|
48455
|
+
const g = getValueByPath(e, [
|
|
48436
48456
|
"googleSearchRetrieval"
|
|
48437
48457
|
]);
|
|
48438
|
-
|
|
48439
|
-
const o = getValueByPath(e, ["computerUse"]);
|
|
48440
|
-
if (o != null && setValueByPath(t, ["computerUse"], o), getValueByPath(e, ["fileSearch"]) !== void 0)
|
|
48441
|
-
throw new Error("fileSearch parameter is not supported in Vertex AI.");
|
|
48442
|
-
const l = getValueByPath(e, [
|
|
48443
|
-
"codeExecution"
|
|
48444
|
-
]);
|
|
48445
|
-
l != null && setValueByPath(t, ["codeExecution"], l);
|
|
48446
|
-
const c = getValueByPath(e, [
|
|
48447
|
-
"enterpriseWebSearch"
|
|
48448
|
-
]);
|
|
48449
|
-
c != null && setValueByPath(t, ["enterpriseWebSearch"], c);
|
|
48450
|
-
const f = getValueByPath(e, ["googleMaps"]);
|
|
48451
|
-
f != null && setValueByPath(t, ["googleMaps"], f);
|
|
48452
|
-
const g = getValueByPath(e, ["googleSearch"]);
|
|
48453
|
-
g != null && setValueByPath(t, ["googleSearch"], g);
|
|
48458
|
+
g != null && setValueByPath(t, ["googleSearchRetrieval"], g);
|
|
48454
48459
|
const A = getValueByPath(e, ["urlContext"]);
|
|
48455
48460
|
return A != null && setValueByPath(t, ["urlContext"], A), t;
|
|
48456
48461
|
}
|
|
@@ -48763,7 +48768,7 @@ function uploadToFileSearchStoreResumableResponseFromMldev(e) {
|
|
|
48763
48768
|
* Copyright 2025 Google LLC
|
|
48764
48769
|
* SPDX-License-Identifier: Apache-2.0
|
|
48765
48770
|
*/
|
|
48766
|
-
const CONTENT_TYPE_HEADER = "Content-Type", SERVER_TIMEOUT_HEADER = "X-Server-Timeout", USER_AGENT_HEADER = "User-Agent", GOOGLE_API_CLIENT_HEADER = "x-goog-api-client", SDK_VERSION = "1.
|
|
48771
|
+
const CONTENT_TYPE_HEADER = "Content-Type", SERVER_TIMEOUT_HEADER = "X-Server-Timeout", USER_AGENT_HEADER = "User-Agent", GOOGLE_API_CLIENT_HEADER = "x-goog-api-client", SDK_VERSION = "1.35.0", LIBRARY_LABEL = `google-genai-sdk/${SDK_VERSION}`, VERTEX_AI_API_DEFAULT_VERSION = "v1beta1", GOOGLE_AI_API_DEFAULT_VERSION = "v1beta";
|
|
48767
48772
|
class ApiClient {
|
|
48768
48773
|
constructor(t) {
|
|
48769
48774
|
var n, a;
|
|
@@ -50278,7 +50283,7 @@ class Models extends BaseModule {
|
|
|
50278
50283
|
* console.log(response1?.generatedImages?.[0]?.image?.imageBytes);
|
|
50279
50284
|
*
|
|
50280
50285
|
* const response2 = await ai.models.recontextImage({
|
|
50281
|
-
* model: 'virtual-try-on-
|
|
50286
|
+
* model: 'virtual-try-on-001',
|
|
50282
50287
|
* source: {
|
|
50283
50288
|
* personImage: personImage,
|
|
50284
50289
|
* productImages: [productImage],
|
|
@@ -50969,32 +50974,33 @@ function sessionResumptionConfigToMldev(e) {
|
|
|
50969
50974
|
return t;
|
|
50970
50975
|
}
|
|
50971
50976
|
function toolToMldev(e) {
|
|
50972
|
-
const t = {}
|
|
50977
|
+
const t = {};
|
|
50978
|
+
if (getValueByPath(e, ["retrieval"]) !== void 0)
|
|
50979
|
+
throw new Error("retrieval parameter is not supported in Gemini API.");
|
|
50980
|
+
const n = getValueByPath(e, ["computerUse"]);
|
|
50981
|
+
n != null && setValueByPath(t, ["computerUse"], n);
|
|
50982
|
+
const a = getValueByPath(e, ["fileSearch"]);
|
|
50983
|
+
a != null && setValueByPath(t, ["fileSearch"], a);
|
|
50984
|
+
const s = getValueByPath(e, [
|
|
50985
|
+
"codeExecution"
|
|
50986
|
+
]);
|
|
50987
|
+
if (s != null && setValueByPath(t, ["codeExecution"], s), getValueByPath(e, ["enterpriseWebSearch"]) !== void 0)
|
|
50988
|
+
throw new Error("enterpriseWebSearch parameter is not supported in Gemini API.");
|
|
50989
|
+
const o = getValueByPath(e, [
|
|
50973
50990
|
"functionDeclarations"
|
|
50974
50991
|
]);
|
|
50975
|
-
if (
|
|
50976
|
-
let A =
|
|
50992
|
+
if (o != null) {
|
|
50993
|
+
let A = o;
|
|
50977
50994
|
Array.isArray(A) && (A = A.map((R) => R)), setValueByPath(t, ["functionDeclarations"], A);
|
|
50978
50995
|
}
|
|
50979
|
-
|
|
50980
|
-
|
|
50981
|
-
const
|
|
50996
|
+
const l = getValueByPath(e, ["googleMaps"]);
|
|
50997
|
+
l != null && setValueByPath(t, ["googleMaps"], googleMapsToMldev(l));
|
|
50998
|
+
const c = getValueByPath(e, ["googleSearch"]);
|
|
50999
|
+
c != null && setValueByPath(t, ["googleSearch"], googleSearchToMldev(c));
|
|
51000
|
+
const f = getValueByPath(e, [
|
|
50982
51001
|
"googleSearchRetrieval"
|
|
50983
51002
|
]);
|
|
50984
|
-
|
|
50985
|
-
const s = getValueByPath(e, ["computerUse"]);
|
|
50986
|
-
s != null && setValueByPath(t, ["computerUse"], s);
|
|
50987
|
-
const o = getValueByPath(e, ["fileSearch"]);
|
|
50988
|
-
o != null && setValueByPath(t, ["fileSearch"], o);
|
|
50989
|
-
const l = getValueByPath(e, [
|
|
50990
|
-
"codeExecution"
|
|
50991
|
-
]);
|
|
50992
|
-
if (l != null && setValueByPath(t, ["codeExecution"], l), getValueByPath(e, ["enterpriseWebSearch"]) !== void 0)
|
|
50993
|
-
throw new Error("enterpriseWebSearch parameter is not supported in Gemini API.");
|
|
50994
|
-
const c = getValueByPath(e, ["googleMaps"]);
|
|
50995
|
-
c != null && setValueByPath(t, ["googleMaps"], googleMapsToMldev(c));
|
|
50996
|
-
const f = getValueByPath(e, ["googleSearch"]);
|
|
50997
|
-
f != null && setValueByPath(t, ["googleSearch"], googleSearchToMldev(f));
|
|
51003
|
+
f != null && setValueByPath(t, ["googleSearchRetrieval"], f);
|
|
50998
51004
|
const g = getValueByPath(e, ["urlContext"]);
|
|
50999
51005
|
return g != null && setValueByPath(t, ["urlContext"], g), t;
|
|
51000
51006
|
}
|
|
@@ -66669,31 +66675,11 @@ function PartnerCard({
|
|
|
66669
66675
|
withAbout: s = !1,
|
|
66670
66676
|
withVoice: o = !0
|
|
66671
66677
|
}) {
|
|
66672
|
-
const [l, c] = useState(!
|
|
66673
|
-
|
|
66674
|
-
|
|
66675
|
-
|
|
66676
|
-
|
|
66677
|
-
if (!Ye || n) return;
|
|
66678
|
-
R(null);
|
|
66679
|
-
const et = async () => {
|
|
66680
|
-
try {
|
|
66681
|
-
const at = await fetch(Ye.videoExistsUrl);
|
|
66682
|
-
if (at.ok) {
|
|
66683
|
-
const ot = await at.text();
|
|
66684
|
-
c(ot.toLowerCase() === "true");
|
|
66685
|
-
} else
|
|
66686
|
-
throw new Error(`Failed to check video: ${at.status}`);
|
|
66687
|
-
} catch (at) {
|
|
66688
|
-
console.error("Failed to check if video exists:", at), c(!1);
|
|
66689
|
-
}
|
|
66690
|
-
};
|
|
66691
|
-
(async () => {
|
|
66692
|
-
et();
|
|
66693
|
-
})();
|
|
66694
|
-
}, [Ye, n]);
|
|
66695
|
-
const rt = () => {
|
|
66696
|
-
g(!1);
|
|
66678
|
+
const [l, c] = useState(!0), [f, g] = useState(!1), A = e == null ? void 0 : e.ApplicationId, R = A ? `https://api.randmar.io/V4/Partner/${A}/Account/Video` : null, { data: V } = useGetV4PartnerByApplicationIdAccountVideoExistsQuery(
|
|
66679
|
+
{ applicationId: A ?? "" },
|
|
66680
|
+
{ skip: !A || n }
|
|
66681
|
+
), Ve = typeof V == "boolean" ? V : typeof V == "string" ? V.toLowerCase() === "true" : !1, Ye = () => {
|
|
66682
|
+
c(!1);
|
|
66697
66683
|
};
|
|
66698
66684
|
return n || !e ? /* @__PURE__ */ jsxs(Card, { className: `flex flex-col h-full ${a}`, children: [
|
|
66699
66685
|
/* @__PURE__ */ jsx(CardHeader, { className: "flex flex-row items-start justify-between space-y-0 pb-2 pt-4", children: /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-3", children: [
|
|
@@ -66745,71 +66731,73 @@ function PartnerCard({
|
|
|
66745
66731
|
publicName: e.PublicName
|
|
66746
66732
|
}
|
|
66747
66733
|
),
|
|
66748
|
-
/* @__PURE__ */
|
|
66749
|
-
|
|
66750
|
-
|
|
66751
|
-
|
|
66752
|
-
|
|
66753
|
-
|
|
66754
|
-
|
|
66734
|
+
/* @__PURE__ */ jsx(CardContent, { className: "pb-2 flex-grow", children: /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-4", children: [
|
|
66735
|
+
(e.IsManufacturer || e.IsReseller || e.IsSalesAgency) && /* @__PURE__ */ jsxs("div", { className: "flex flex-wrap gap-2", children: [
|
|
66736
|
+
e.IsManufacturer && /* @__PURE__ */ jsx(Badge, { className: "manufacturer-theme", children: "Manufacturer" }),
|
|
66737
|
+
e.IsReseller && /* @__PURE__ */ jsx(Badge, { className: "reseller-theme", children: "Reseller" }),
|
|
66738
|
+
e.IsSalesAgency && /* @__PURE__ */ jsx(Badge, { children: "Agency" })
|
|
66739
|
+
] }),
|
|
66740
|
+
s && e.About && /* @__PURE__ */ jsx(
|
|
66741
|
+
"div",
|
|
66742
|
+
{
|
|
66743
|
+
className: "prose prose-sm max-w-none",
|
|
66744
|
+
dangerouslySetInnerHTML: { __html: e.About ?? "" }
|
|
66745
|
+
}
|
|
66746
|
+
),
|
|
66747
|
+
o && /* @__PURE__ */ jsx("div", { className: "p-3 bg-slate-50 rounded-md", children: /* @__PURE__ */ jsxs("div", { className: "grid grid-cols-1 @lg:grid-cols-3 gap-2", children: [
|
|
66748
|
+
/* @__PURE__ */ jsxs("div", { children: [
|
|
66749
|
+
/* @__PURE__ */ jsx("div", { className: "text-sm text-muted-foreground", children: "Voice Name" }),
|
|
66750
|
+
/* @__PURE__ */ jsx("div", { className: "font-medium", children: e.VoiceName ?? "Regular" })
|
|
66755
66751
|
] }),
|
|
66756
|
-
|
|
66757
|
-
"div",
|
|
66758
|
-
{
|
|
66759
|
-
|
|
66760
|
-
|
|
66761
|
-
}
|
|
66762
|
-
|
|
66763
|
-
o && /* @__PURE__ */ jsx("div", { className: "p-3 bg-slate-50 rounded-md", children: /* @__PURE__ */ jsxs("div", { className: "grid grid-cols-1 @lg:grid-cols-3 gap-2", children: [
|
|
66764
|
-
/* @__PURE__ */ jsxs("div", { children: [
|
|
66765
|
-
/* @__PURE__ */ jsx("div", { className: "text-sm text-muted-foreground", children: "Voice Name" }),
|
|
66766
|
-
/* @__PURE__ */ jsx("div", { className: "font-medium", children: e.VoiceName ?? "Regular" })
|
|
66767
|
-
] }),
|
|
66768
|
-
/* @__PURE__ */ jsxs("div", { children: [
|
|
66769
|
-
/* @__PURE__ */ jsx("div", { className: "text-sm text-muted-foreground", children: "Voice Style" }),
|
|
66770
|
-
/* @__PURE__ */ jsx("div", { className: "font-medium", children: e.VoiceStyle ?? "Regular" })
|
|
66771
|
-
] }),
|
|
66772
|
-
/* @__PURE__ */ jsxs("div", { children: [
|
|
66773
|
-
/* @__PURE__ */ jsx("div", { className: "text-sm text-muted-foreground", children: "Scene Name" }),
|
|
66774
|
-
/* @__PURE__ */ jsx("div", { className: "font-medium", children: e.SceneName ?? "N/A" })
|
|
66775
|
-
] })
|
|
66776
|
-
] }) })
|
|
66777
|
-
] })
|
|
66778
|
-
] }),
|
|
66779
|
-
/* @__PURE__ */ jsxs(CardFooter, { className: "px-6 py-4 flex justify-between gap-2 mt-auto", children: [
|
|
66780
|
-
l && Ye ? /* @__PURE__ */ jsxs(Dialog, { open: V, onOpenChange: Ve, children: [
|
|
66781
|
-
/* @__PURE__ */ jsx(DialogTrigger, { asChild: !0, children: /* @__PURE__ */ jsxs(Button$1, { variant: "outline", className: "flex items-center gap-2", children: [
|
|
66782
|
-
/* @__PURE__ */ jsx(Video, { className: "h-4 w-4" }),
|
|
66783
|
-
/* @__PURE__ */ jsx("span", { children: "Watch Video" })
|
|
66784
|
-
] }) }),
|
|
66785
|
-
/* @__PURE__ */ jsxs(DialogContent, { className: "@sm:max-w-[360px]", children: [
|
|
66786
|
-
/* @__PURE__ */ jsx(DialogHeader, { children: /* @__PURE__ */ jsxs(DialogTitle, { children: [
|
|
66787
|
-
e.PublicName,
|
|
66788
|
-
" Video"
|
|
66789
|
-
] }) }),
|
|
66790
|
-
/* @__PURE__ */ jsxs("div", { className: "w-full h-[640px] rounded-md overflow-hidden", children: [
|
|
66791
|
-
f && /* @__PURE__ */ jsx(Skeleton, { className: "w-full h-full" }),
|
|
66792
|
-
/* @__PURE__ */ jsx(
|
|
66793
|
-
"video",
|
|
66794
|
-
{
|
|
66795
|
-
src: Ye.videoUrl,
|
|
66796
|
-
controls: !0,
|
|
66797
|
-
preload: "auto",
|
|
66798
|
-
playsInline: !0,
|
|
66799
|
-
autoPlay: !0,
|
|
66800
|
-
"aria-label": `Video for ${e.PublicName}`,
|
|
66801
|
-
className: `w-full h-full object-cover ${f ? "invisible" : "visible"}`,
|
|
66802
|
-
style: {
|
|
66803
|
-
objectPosition: "center",
|
|
66804
|
-
imageRendering: "auto"
|
|
66805
|
-
},
|
|
66806
|
-
onLoadedData: rt,
|
|
66807
|
-
onError: () => g(!1)
|
|
66808
|
-
}
|
|
66809
|
-
)
|
|
66810
|
-
] })
|
|
66752
|
+
/* @__PURE__ */ jsxs("div", { children: [
|
|
66753
|
+
/* @__PURE__ */ jsx("div", { className: "text-sm text-muted-foreground", children: "Voice Style" }),
|
|
66754
|
+
/* @__PURE__ */ jsx("div", { className: "font-medium", children: e.VoiceStyle ?? "Regular" })
|
|
66755
|
+
] }),
|
|
66756
|
+
/* @__PURE__ */ jsxs("div", { children: [
|
|
66757
|
+
/* @__PURE__ */ jsx("div", { className: "text-sm text-muted-foreground", children: "Scene Name" }),
|
|
66758
|
+
/* @__PURE__ */ jsx("div", { className: "font-medium", children: e.SceneName ?? "N/A" })
|
|
66811
66759
|
] })
|
|
66812
|
-
] })
|
|
66760
|
+
] }) })
|
|
66761
|
+
] }) }),
|
|
66762
|
+
/* @__PURE__ */ jsxs(CardFooter, { className: "px-6 py-4 flex justify-between gap-2 mt-auto", children: [
|
|
66763
|
+
Ve && R ? /* @__PURE__ */ jsxs(
|
|
66764
|
+
Dialog,
|
|
66765
|
+
{
|
|
66766
|
+
open: f,
|
|
66767
|
+
onOpenChange: (rt) => {
|
|
66768
|
+
g(rt), rt && c(!0);
|
|
66769
|
+
},
|
|
66770
|
+
children: [
|
|
66771
|
+
/* @__PURE__ */ jsx(DialogTrigger, { asChild: !0, children: /* @__PURE__ */ jsxs(Button$1, { variant: "outline", className: "flex items-center gap-2", children: [
|
|
66772
|
+
/* @__PURE__ */ jsx(Video, { className: "h-4 w-4" }),
|
|
66773
|
+
/* @__PURE__ */ jsx("span", { children: "Watch Video" })
|
|
66774
|
+
] }) }),
|
|
66775
|
+
/* @__PURE__ */ jsxs(DialogContent, { className: "@sm:max-w-[360px]", children: [
|
|
66776
|
+
/* @__PURE__ */ jsx(DialogHeader, { children: /* @__PURE__ */ jsxs(DialogTitle, { children: [
|
|
66777
|
+
e.PublicName,
|
|
66778
|
+
" Video"
|
|
66779
|
+
] }) }),
|
|
66780
|
+
/* @__PURE__ */ jsxs("div", { className: "w-full h-[640px] rounded-md overflow-hidden", children: [
|
|
66781
|
+
l && /* @__PURE__ */ jsx(Skeleton, { className: "w-full h-full" }),
|
|
66782
|
+
/* @__PURE__ */ jsx(
|
|
66783
|
+
"video",
|
|
66784
|
+
{
|
|
66785
|
+
src: R,
|
|
66786
|
+
controls: !0,
|
|
66787
|
+
preload: "auto",
|
|
66788
|
+
playsInline: !0,
|
|
66789
|
+
autoPlay: !0,
|
|
66790
|
+
"aria-label": `Video for ${e.PublicName}`,
|
|
66791
|
+
className: `w-full h-full object-cover object-center ${l ? "invisible" : "visible"}`,
|
|
66792
|
+
onLoadedData: Ye,
|
|
66793
|
+
onError: () => c(!1)
|
|
66794
|
+
}
|
|
66795
|
+
)
|
|
66796
|
+
] })
|
|
66797
|
+
] })
|
|
66798
|
+
]
|
|
66799
|
+
}
|
|
66800
|
+
) : /* @__PURE__ */ jsx("div", {}),
|
|
66813
66801
|
t || /* @__PURE__ */ jsxs(Button$1, { className: "flex items-center gap-2", children: [
|
|
66814
66802
|
/* @__PURE__ */ jsx(ExternalLink, { className: "h-4 w-4" }),
|
|
66815
66803
|
"Go to Partner Dashboard"
|