/**
 * Minified by jsDelivr using Terser v5.48.0.
 * Original file: /npm/react-native-kochava-measurement@5.0.0/lib/module/index.js
 *
 * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files
 */
"use strict";import{KochavaMeasurementImpl}from"./KochavaMeasurementImpl";export let KochavaMeasurementLogLevel=function(e){return e.None="none",e.Error="error",e.Warn="warn",e.Info="info",e.Debug="debug",e.Trace="trace",e}({});export let KochavaMeasurementEventType=function(e){return e.Achievement="Achievement",e.AddToCart="Add to Cart",e.AddToWishList="Add to Wish List",e.CheckoutStart="Checkout Start",e.LevelComplete="Level Complete",e.Purchase="Purchase",e.Rating="Rating",e.RegistrationComplete="Registration Complete",e.Search="Search",e.TutorialComplete="Tutorial Complete",e.View="View",e.AdView="Ad View",e.PushReceived="Push Received",e.PushOpened="Push Opened",e.ConsentGranted="Consent Granted",e.Deeplink="_Deeplink",e.AdClick="Ad Click",e.StartTrial="Start Trial",e.Subscribe="Subscribe",e}({});export class KochavaMeasurementEvent{_eventData={};_appleAppStoreReceiptBase64String=null;_androidGooglePlayReceiptData=null;_androidGooglePlayReceiptSignature=null;constructor(e){this._eventName=e}send(){KochavaMeasurement.instance.sendEventWithEvent(this)}setCustomStringValue(e,t){e&&t&&"string"==typeof t&&(this._eventData[e]=t)}setCustomBoolValue(e,t){e&&null!=t&&"boolean"==typeof t&&(this._eventData[e]=t)}setCustomNumberValue(e,t){e&&null!=t&&"number"==typeof t&&(this._eventData[e]=t)}_setCustomDictionaryValue(e,t){e&&null!=t&&"object"==typeof t&&(this._eventData[e]=t)}setAndroidGooglePlayReceipt(e,t){e&&"string"==typeof e&&t&&"string"==typeof t&&(this._androidGooglePlayReceiptData=e,this._androidGooglePlayReceiptSignature=t)}setiOSAppStoreReceipt(e){this.setAppleAppStoreReceipt(e)}setAppleAppStoreReceipt(e){e&&"string"==typeof e&&(this._appleAppStoreReceiptBase64String=e)}setAction(e){this.setCustomStringValue("action",e)}setBackground(e){this.setCustomBoolValue("background",e)}setCheckoutAsGuest(e){this.setCustomStringValue("checkout_as_guest",e)}setCompleted(e){this.setCustomBoolValue("completed",e)}setContentId(e){this.setCustomStringValue("content_id",e)}setContentType(e){this.setCustomStringValue("content_type",e)}setCurrency(e){this.setCustomStringValue("currency",e)}setDate(e){this.setCustomStringValue("date",e)}setDescription(e){this.setCustomStringValue("description",e)}setDestination(e){this.setCustomStringValue("destination",e)}setDuration(e){this.setCustomNumberValue("duration",e)}setEndDate(e){this.setCustomStringValue("end_date",e)}setItemAddedFrom(e){this.setCustomStringValue("item_added_from",e)}setLevel(e){this.setCustomStringValue("level",e)}setMaxRatingValue(e){this.setCustomNumberValue("max_rating_value",e)}setName(e){this.setCustomStringValue("name",e)}setOrderId(e){this.setCustomStringValue("order_id",e)}setOrigin(e){this.setCustomStringValue("origin",e)}setPayload(e){this._setCustomDictionaryValue("payload",e)}setPrice(e){this.setCustomNumberValue("price",e)}setQuantity(e){this.setCustomNumberValue("quantity",e)}setRatingValue(e){this.setCustomNumberValue("rating_value",e)}setReceiptId(e){this.setCustomStringValue("receipt_id",e)}setReferralFrom(e){this.setCustomStringValue("referral_from",e)}setRegistrationMethod(e){this.setCustomStringValue("registration_method",e)}setResults(e){this.setCustomStringValue("results",e)}setScore(e){this.setCustomStringValue("score",e)}setSearchTerm(e){this.setCustomStringValue("search_term",e)}setSource(e){this.setCustomStringValue("source",e)}setSpatialX(e){this.setCustomNumberValue("spatial_x",e)}setSpatialY(e){this.setCustomNumberValue("spatial_y",e)}setSpatialZ(e){this.setCustomNumberValue("spatial_z",e)}setStartDate(e){this.setCustomStringValue("start_date",e)}setSuccess(e){this.setCustomStringValue("success",e)}setUri(e){this.setCustomStringValue("uri",e)}setUserId(e){this.setCustomStringValue("user_id",e)}setUserName(e){this.setCustomStringValue("user_name",e)}setValidated(e){this.setCustomStringValue("validated",e)}setAdCampaignId(e){this.setCustomStringValue("ad_campaign_id",e)}setAdCampaignName(e){this.setCustomStringValue("ad_campaign_name",e)}setAdDeviceType(e){this.setCustomStringValue("device_type",e)}setAdGroupId(e){this.setCustomStringValue("ad_group_id",e)}setAdGroupName(e){this.setCustomStringValue("ad_group_name",e)}setAdMediationName(e){this.setCustomStringValue("ad_mediation_name",e)}setAdNetworkName(e){this.setCustomStringValue("ad_network_name",e)}setAdPlacement(e){this.setCustomStringValue("placement",e)}setAdSize(e){this.setCustomStringValue("ad_size",e)}setAdType(e){this.setCustomStringValue("ad_type",e)}getData(){return{eventName:this._eventName,eventData:this._eventData,appleAppStoreReceiptBase64String:this._appleAppStoreReceiptBase64String,androidGooglePlayReceiptData:this._androidGooglePlayReceiptData,androidGooglePlayReceiptSignature:this._androidGooglePlayReceiptSignature}}}export class KochavaMeasurementInstallAttribution{constructor(e){null==e?(this.retrieved=!1,this.raw={},this.attributed=!1,this.firstInstall=!1):(this.retrieved=e.retrieved??!1,this.raw=e.raw??{},this.attributed=e.attributed??!1,this.firstInstall=e.firstInstall??!1)}}export class KochavaMeasurementDeeplink{constructor(e){null==e?(this.destination="",this.raw={}):(this.destination=e.destination??"",this.raw=e.raw??{})}}export class KochavaMeasurementInit{constructor(e){this.consentGdprApplies=e.consentGdprApplies}}export class KochavaMeasurementConfig{constructor(e){this.consentGdprApplies=null!=e&&(e.consentGdprApplies??!1)}}export class KochavaMeasurement{static instance=new KochavaMeasurement;_api=new KochavaMeasurementImpl;_startParameters={};executeAdvancedInstruction(e,t){this._api.executeAdvancedInstruction(e,t)}executeAdvancedInstructionWithCallback(e,t,i,s){this._api.executeAdvancedInstructionWithCallback(e,t,i,s)}setLogLevel(e){this._api.setLogLevel(e)}setSleep(e){this._api.setSleep(e)}setAppLimitAdTracking(e){this._api.setAppLimitAdTracking(e)}registerCustomDeviceIdentifier(e,t){this._api.registerCustomDeviceIdentifier(e,t)}registerCustomStringValue(e,t){this._api.registerCustomStringValue(e,t)}registerCustomBoolValue(e,t){this._api.registerCustomBoolValue(e,t)}registerCustomNumberValue(e,t){this._api.registerCustomNumberValue(e,t)}registerIdentityLink(e,t){this._api.registerIdentityLink(e,t)}enableiOSAppClips(e){this._api.enableAppleAppClips(e)}enableAppleAppClips(e){this._api.enableAppleAppClips(e)}enableiOSAtt(){this.enableAppleAtt()}enableAppleAtt(){this._api.enableAppleAtt()}setiOSAttAuthorizationWaitTime(e){this.setAppleAttAuthorizationWaitTime(e)}setAppleAttAuthorizationWaitTime(e){this._api.setAppleAttAuthorizationWaitTime(e)}setiOSAttAuthorizationAutoRequest(e){this.setAppleAttAuthorizationAutoRequest(e)}setAppleAttAuthorizationAutoRequest(e){this._api.setAppleAttAuthorizationAutoRequest(e)}setAppleAttAuthorizationCustomPrompt(e){this._api.setAppleAttAuthorizationCustomPrompt(e)}appleAttAuthorizationCustomPromptDidComplete(){this._api.appleAttAuthorizationCustomPromptDidComplete()}registerPrivacyProfile(e,t){this._api.registerPrivacyProfile(e,t)}setPrivacyProfileEnabled(e,t){this._api.setPrivacyProfileEnabled(e,t)}setInitCompletedListener(e){null==e?this._api.setConfigCompletedListener(null):this._api.setConfigCompletedListener(t=>{e(new KochavaMeasurementInit(t))})}setConfigCompletedListener(e){this._api.setConfigCompletedListener(e)}setIntelligentConsentGranted(e){this._api.setIntelligentConsentGranted(e)}getStarted(){return this._api.getStarted()}registerAndroidAppGuid(e){this._startParameters.androidAppGuid=e}registerIosAppGuid(e){this.registerAppleAppGuid(e)}registerAppleAppGuid(e){this._startParameters.appleAppGuid=e}registerVegaAppGuid(e){this._startParameters.vegaAppGuid=e}registerPartnerName(e){this._startParameters.partnerName=e}start(){this.executeAdvancedInstruction("wrapper",JSON.stringify({name:"ReactNative",version:"5.0.0",build_date:"2026-08-31T17:26:31Z"})),this._api.start(this._startParameters)}shutdown(e){this._startParameters={},this._api.shutdown(e)}retrieveInstallId(){return this._api.retrieveInstallId()}retrieveInstallAttribution(){return this._api.retrieveInstallAttribution()}processDeeplink(e,t){return"boolean"!=typeof t?Promise.reject(new Error("processDeeplink: eventAutoSend is required and must be a boolean as of v5.0.0.")):this._api.processDeeplink(e,t)}processDeeplinkWithOverrideTimeout(e,t,i){return"boolean"!=typeof t?Promise.reject(new Error("processDeeplinkWithOverrideTimeout: eventAutoSend is required and must be a boolean as of v5.0.0.")):this._api.processDeeplinkWithOverrideTimeout(e,t,i)}registerDeeplinkWrapperDomain(e){this._api.registerDeeplinkWrapperDomain(e)}registerDefaultEventStringParameter(e,t){this._api.registerDefaultEventStringParameter(e,t)}registerDefaultEventBoolParameter(e,t){this._api.registerDefaultEventBoolParameter(e,t)}registerDefaultEventNumberParameter(e,t){this._api.registerDefaultEventNumberParameter(e,t)}registerDefaultEventUserId(e){this._api.registerDefaultEventUserId(e)}sendEvent(e){this._api.sendEvent(e)}sendEventWithString(e,t){this._api.sendEventWithString(e,t)}sendEventWithDictionary(e,t){this._api.sendEventWithDictionary(e,t)}sendEventWithEvent(e){this._api.sendEventWithEvent(e)}buildEventWithEventType(e){return new KochavaMeasurementEvent(e)}buildEventWithEventName(e){return new KochavaMeasurementEvent(e)}}
//# sourceMappingURL=/sm/952a973ffa39c3d567c55d8da5a8e2afca450dfd9fc8bb213efea66b517828c6.map