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AO,QACnF,EAEA,aAAc,SAAU,EAAQ,EAAiB,GAC7C,OAAO,KAAK,uBAAuB,CAAE,WAAY,GAAU,EAAiB,EAChF,EACA,6BAA8B,SAAU,EAAiB,GACrD,OAAO,KAAK,yBAAyB,EAAiB,EAC1D,EACA,8BAA+B,SAAU,EAAiB,GACtD,OAAO,KAAK,8BAA6B,EAAO,EAAiB,EACrE,EACA,sBAAuB,SAAU,EAAiB,GAC9C,OAAO,KAAK,2BAA2B,EAAiB,EAC5D,EACA,uBAAwB,SAAU,EAAiB,GAC/C,OAAO,KAAK,4BAA4B,EAAiB,EAC7D,EACA,0BAA2B,SAAU,EAAiB,GAClD,OAAO,KAAK,8BAA8B,EAAiB,EAC/D,GAGJ,QAAQ,QAAU,QAAQ,WAEC,IAAhB,cACP,YAAY,MAAQ,QAAQ,OAGV,oBAAX,QAA0B,OAAO,UACxC,OAAO,QAAU,QAAQ,MACzB,OAAO,QAAQ,MAAQ,QAAQ,MAC/B,OAAO,QAAQ,eAAiB,QAAQ,eACxC,OAAO,QAAQ,QAAU,QAAQ","file":"/npm/cordova-uxcam@3.8.0/dist/index.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.39.0.\n * Original file: /npm/cordova-uxcam@3.8.0/dist/index.js\n *\n * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files\n */\n","\"use strict\";\nvar __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {\n    if (k2 === undefined) k2 = k;\n    var desc = Object.getOwnPropertyDescriptor(m, k);\n    if (!desc || (\"get\" in desc ? !m.__esModule : desc.writable || desc.configurable)) {\n      desc = { enumerable: true, get: function() { return m[k]; } };\n    }\n    Object.defineProperty(o, k2, desc);\n}) : (function(o, m, k, k2) {\n    if (k2 === undefined) k2 = k;\n    o[k2] = m[k];\n}));\nvar __exportStar = (this && this.__exportStar) || function(m, exports) {\n    for (var p in m) if (p !== \"default\" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.UXCam = exports.UXCamCapacitor = void 0;\nconst globalScope = (typeof globalThis !== 'undefined'\n    ? globalThis\n    : typeof window !== 'undefined'\n        ? window\n        : {});\nfunction isCapacitorNative(capacitor) {\n    if (!capacitor)\n        return false;\n    if (typeof capacitor.isNativePlatform === 'function') {\n        return capacitor.isNativePlatform();\n    }\n    const platform = typeof capacitor.getPlatform === 'function'\n        ? capacitor.getPlatform()\n        : capacitor.platform;\n    if (typeof platform === 'string') {\n        return platform !== 'web';\n    }\n    return true;\n}\nfunction getCapacitorPlugin() {\n    const capacitor = globalScope.Capacitor;\n    if (!capacitor || !isCapacitorNative(capacitor)) {\n        return null;\n    }\n    if (capacitor.Plugins?.UXCam) {\n        return capacitor.Plugins.UXCam;\n    }\n    if (typeof capacitor.registerPlugin === 'function') {\n        const pluginAvailable = typeof capacitor.isPluginAvailable === 'function'\n            ? capacitor.isPluginAvailable('UXCam')\n            : true;\n        if (!pluginAvailable && globalScope.cordova?.exec) {\n            return null;\n        }\n        return capacitor.registerPlugin('UXCam');\n    }\n    return null;\n}\nfunction createCordovaAdapter(exec) {\n    const execPromise = (method, args = []) => new Promise((resolve, reject) => {\n        exec((result) => resolve(result), (error) => {\n            const message = typeof error === 'string' ? error : error?.message || `${method} failed`;\n            reject(new Error(message));\n        }, 'UXCam', method, args);\n    });\n    return {\n        async startWithConfiguration(options) {\n            const result = await execPromise('startWithConfiguration', [options.configuration]);\n            return { sessionUrl: result || '' };\n        },\n        async applyOcclusion(options) {\n            await execPromise('applyOcclusion', [options.occlusion]);\n        },\n        async removeOcclusion(options) {\n            await execPromise('removeOcclusion', [options?.occlusion]);\n        },\n        async stopSessionAndUploadData() {\n            await execPromise('stopSessionAndUploadData', []);\n        },\n        async allowShortBreakForAnotherApp(options) {\n            await execPromise('allowShortBreakForAnotherApp', [options.continueSession]);\n        },\n        async startNewSession() {\n            await execPromise('startNewSession', []);\n        },\n        async cancelCurrentSession() {\n            await execPromise('cancelCurrentSession', []);\n        },\n        async isRecording() {\n            const result = await execPromise('isRecording', []);\n            return { isRecording: result };\n        },\n        async pauseScreenRecording() {\n            await execPromise('pauseScreenRecording', []);\n        },\n        async resumeScreenRecording() {\n            await execPromise('resumeScreenRecording', []);\n        },\n        async pendingUploads() {\n            const result = await execPromise('pendingUploads', []);\n            return { count: result };\n        },\n        async deletePendingUploads() {\n            await execPromise('deletePendingUploads', []);\n        },\n        async pendingSessionCount() {\n            const result = await execPromise('pendingSessionCount', []);\n            return { count: result };\n        },\n        async uploadPendingSession() {\n            const result = await execPromise('uploadPendingSession', []);\n            return { success: result };\n        },\n        async occludeAllTextFields(options) {\n            await execPromise('occludeAllTextFields', [options.occlude]);\n        },\n        async tagScreenName(options) {\n            await execPromise('tagScreenName', [options.screenName]);\n        },\n        async setUserIdentity(options) {\n            await execPromise('setUserIdentity', [options.identity]);\n        },\n        async setUserProperty(options) {\n            await execPromise('setUserProperty', [options.key, options.value]);\n        },\n        async logEvent(options) {\n            await execPromise('logEvent', [options.eventName]);\n        },\n        async logEventWithProperties(options) {\n            await execPromise('logEventWithProperties', [options.eventName, options.properties]);\n        },\n        async urlForCurrentUser() {\n            const result = await execPromise('urlForCurrentUser', []);\n            return { url: result || '' };\n        },\n        async urlForCurrentSession() {\n            const result = await execPromise('urlForCurrentSession', []);\n            return { url: result || '' };\n        },\n        async optOutOverall() {\n            await execPromise('optOutOverall', []);\n        },\n        async optOutOfSchematicRecordings() {\n            await execPromise('optOutOfSchematicRecordings', []);\n        },\n        async optInOverall() {\n            await execPromise('optInOverall', []);\n        },\n        async optIntoSchematicRecordings() {\n            await execPromise('optIntoSchematicRecordings', []);\n        },\n        async optInOverallStatus() {\n            const result = await execPromise('optInOverallStatus', []);\n            return { status: result };\n        },\n        async optInSchematicRecordingStatus() {\n            const result = await execPromise('optInSchematicRecordingStatus', []);\n            return { status: result };\n        }\n    };\n}\nfunction createWebAdapter() {\n    const warn = (method) => {\n        console.warn(`[UXCam] ${method} is not supported on web`);\n    };\n    return {\n        async startWithConfiguration() {\n            warn('startWithConfiguration');\n            return { sessionUrl: '' };\n        },\n        async applyOcclusion() {\n            warn('applyOcclusion');\n        },\n        async removeOcclusion() {\n            warn('removeOcclusion');\n        },\n        async stopSessionAndUploadData() {\n            warn('stopSessionAndUploadData');\n        },\n        async allowShortBreakForAnotherApp() {\n            warn('allowShortBreakForAnotherApp');\n        },\n        async startNewSession() {\n            warn('startNewSession');\n        },\n        async cancelCurrentSession() {\n            warn('cancelCurrentSession');\n        },\n        async isRecording() {\n            warn('isRecording');\n            return { isRecording: false };\n        },\n        async pauseScreenRecording() {\n            warn('pauseScreenRecording');\n        },\n        async resumeScreenRecording() {\n            warn('resumeScreenRecording');\n        },\n        async pendingUploads() {\n            warn('pendingUploads');\n            return { count: 0 };\n        },\n        async deletePendingUploads() {\n            warn('deletePendingUploads');\n        },\n        async pendingSessionCount() {\n            warn('pendingSessionCount');\n            return { count: 0 };\n        },\n        async uploadPendingSession() {\n            warn('uploadPendingSession');\n            return { success: false };\n        },\n        async occludeAllTextFields() {\n            warn('occludeAllTextFields');\n        },\n        async tagScreenName() {\n            warn('tagScreenName');\n        },\n        async setUserIdentity() {\n            warn('setUserIdentity');\n        },\n        async setUserProperty() {\n            warn('setUserProperty');\n        },\n        async logEvent() {\n            warn('logEvent');\n        },\n        async logEventWithProperties() {\n            warn('logEventWithProperties');\n        },\n        async urlForCurrentUser() {\n            warn('urlForCurrentUser');\n            return { url: '' };\n        },\n        async urlForCurrentSession() {\n            warn('urlForCurrentSession');\n            return { url: '' };\n        },\n        async optOutOverall() {\n            warn('optOutOverall');\n        },\n        async optOutOfSchematicRecordings() {\n            warn('optOutOfSchematicRecordings');\n        },\n        async optInOverall() {\n            warn('optInOverall');\n        },\n        async optIntoSchematicRecordings() {\n            warn('optIntoSchematicRecordings');\n        },\n        async optInOverallStatus() {\n            warn('optInOverallStatus');\n            return { status: false };\n        },\n        async optInSchematicRecordingStatus() {\n            warn('optInSchematicRecordingStatus');\n            return { status: false };\n        }\n    };\n}\nlet cordovaAdapter = null;\nlet cachedPlugin = null;\nlet cachedKind = null;\nexports.UXCamCapacitor = getCapacitorPlugin();\nasync function getPlugin() {\n    if (cachedPlugin && cachedKind !== 'web') {\n        return cachedPlugin;\n    }\n    if (!exports.UXCamCapacitor) {\n        exports.UXCamCapacitor = getCapacitorPlugin();\n    }\n    if (exports.UXCamCapacitor) {\n        cachedPlugin = exports.UXCamCapacitor;\n        cachedKind = 'capacitor';\n        return cachedPlugin;\n    }\n    if (globalScope.cordova?.exec) {\n        if (!cordovaAdapter) {\n            cordovaAdapter = createCordovaAdapter(globalScope.cordova.exec);\n        }\n        cachedPlugin = cordovaAdapter;\n        cachedKind = 'cordova';\n        return cachedPlugin;\n    }\n    if (!cachedPlugin || cachedKind !== 'web') {\n        cachedPlugin = createWebAdapter();\n        cachedKind = 'web';\n    }\n    return cachedPlugin;\n}\nfunction handlePromise(promise, successCallback, errorCallback, mapResult) {\n    if (successCallback || errorCallback) {\n        promise\n            .then(result => successCallback?.(mapResult ? mapResult(result) : result))\n            .catch(error => errorCallback?.(error?.message || error));\n        return;\n    }\n    return promise;\n}\n// Export types\n__exportStar(require(\"./definitions\"), exports);\n/**\n * UXCam wrapper that provides both Capacitor (Promise-based) and\n * legacy Cordova (callback-based) APIs\n */\nexports.UXCam = {\n    startWithConfiguration: function (configuration, successCallback, errorCallback) {\n        const promise = getPlugin().then(plugin => plugin.startWithConfiguration({ configuration }));\n        return handlePromise(promise, successCallback, errorCallback, result => result.sessionUrl);\n    },\n    applyOcclusion: function (occlusion, successCallback, errorCallback) {\n        const promise = getPlugin().then(plugin => plugin.applyOcclusion({ occlusion }));\n        return handlePromise(promise, successCallback, errorCallback);\n    },\n    removeOcclusion: function (occlusion, successCallback, errorCallback) {\n        const promise = getPlugin().then(plugin => plugin.removeOcclusion(occlusion ? { occlusion } : undefined));\n        return handlePromise(promise, successCallback, errorCallback);\n    },\n    stopSessionAndUploadData: function (successCallback, errorCallback) {\n        const promise = getPlugin().then(plugin => plugin.stopSessionAndUploadData());\n        return handlePromise(promise, successCallback, errorCallback);\n    },\n    startNewSession: function (successCallback, errorCallback) {\n        const promise = getPlugin().then(plugin => plugin.startNewSession());\n        return handlePromise(promise, successCallback, errorCallback);\n    },\n    cancelCurrentSession: function (successCallback, errorCallback) {\n        const promise = getPlugin().then(plugin => plugin.cancelCurrentSession());\n        return handlePromise(promise, successCallback, errorCallback);\n    },\n    isRecording: function (successCallback, errorCallback) {\n        const promise = getPlugin().then(plugin => plugin.isRecording());\n        return handlePromise(promise, successCallback, errorCallback, result => result.isRecording);\n    },\n    pauseScreenRecording: function (successCallback, errorCallback) {\n        const promise = getPlugin().then(plugin => plugin.pauseScreenRecording());\n        return handlePromise(promise, successCallback, errorCallback);\n    },\n    resumeScreenRecording: function (successCallback, errorCallback) {\n        const promise = getPlugin().then(plugin => plugin.resumeScreenRecording());\n        return handlePromise(promise, successCallback, errorCallback);\n    },\n    allowShortBreakForAnotherApp: function (continueSession, successCallback, errorCallback) {\n        const promise = getPlugin().then(plugin => plugin.allowShortBreakForAnotherApp({ continueSession }));\n        return handlePromise(promise, successCallback, errorCallback);\n    },\n    pendingUploads: function (successCallback, errorCallback) {\n        const promise = getPlugin().then(plugin => plugin.pendingUploads());\n        return handlePromise(promise, successCallback, errorCallback, result => result.count);\n    },\n    deletePendingUploads: function (successCallback, errorCallback) {\n        const promise = getPlugin().then(plugin => plugin.deletePendingUploads());\n        return handlePromise(promise, successCallback, errorCallback);\n    },\n    pendingSessionCount: function (successCallback, errorCallback) {\n        const promise = getPlugin().then(plugin => plugin.pendingSessionCount());\n        return handlePromise(promise, successCallback, errorCallback, result => result.count);\n    },\n    uploadPendingSession: function (successCallback, errorCallback) {\n        const promise = getPlugin().then(plugin => plugin.uploadPendingSession());\n        return handlePromise(promise, successCallback, errorCallback, result => result.success);\n    },\n    occludeAllTextFields: function (occlude, successCallback, errorCallback) {\n        const promise = getPlugin().then(plugin => plugin.occludeAllTextFields({ occlude }));\n        return handlePromise(promise, successCallback, errorCallback);\n    },\n    // Alias for occludeAllTextFields\n    occludeAllTextView: function (occlude, successCallback, errorCallback) {\n        return this.occludeAllTextFields(occlude, successCallback, errorCallback);\n    },\n    tagScreenName: function (screenName, successCallback, errorCallback) {\n        const promise = getPlugin().then(plugin => plugin.tagScreenName({ screenName }));\n        return handlePromise(promise, successCallback, errorCallback);\n    },\n    setUserIdentity: function (identity, successCallback, errorCallback) {\n        const promise = getPlugin().then(plugin => plugin.setUserIdentity({ identity }));\n        return handlePromise(promise, successCallback, errorCallback);\n    },\n    setUserProperty: function (key, value, successCallback, errorCallback) {\n        const promise = getPlugin().then(plugin => plugin.setUserProperty({ key, value }));\n        return handlePromise(promise, successCallback, errorCallback);\n    },\n    logEvent: function (eventName, successCallback, errorCallback) {\n        const promise = getPlugin().then(plugin => plugin.logEvent({ eventName }));\n        return handlePromise(promise, successCallback, errorCallback);\n    },\n    logEventWithProperties: function (eventName, properties, successCallback, errorCallback) {\n        const promise = getPlugin().then(plugin => plugin.logEventWithProperties({ eventName, properties }));\n        return handlePromise(promise, successCallback, errorCallback);\n    },\n    urlForCurrentUser: function (successCallback, errorCallback) {\n        const promise = getPlugin().then(plugin => plugin.urlForCurrentUser());\n        return handlePromise(promise, successCallback, errorCallback, result => result.url);\n    },\n    urlForCurrentSession: function (successCallback, errorCallback) {\n        const promise = getPlugin().then(plugin => plugin.urlForCurrentSession());\n        return handlePromise(promise, successCallback, errorCallback, result => result.url);\n    },\n    optOutOverall: function (successCallback, errorCallback) {\n        const promise = getPlugin().then(plugin => plugin.optOutOverall());\n        return handlePromise(promise, successCallback, errorCallback);\n    },\n    optOutOfSchematicRecordings: function (successCallback, errorCallback) {\n        const promise = getPlugin().then(plugin => plugin.optOutOfSchematicRecordings());\n        return handlePromise(promise, successCallback, errorCallback);\n    },\n    optInOverall: function (successCallback, errorCallback) {\n        const promise = getPlugin().then(plugin => plugin.optInOverall());\n        return handlePromise(promise, successCallback, errorCallback);\n    },\n    optIntoSchematicRecordings: function (successCallback, errorCallback) {\n        const promise = getPlugin().then(plugin => plugin.optIntoSchematicRecordings());\n        return handlePromise(promise, successCallback, errorCallback);\n    },\n    optInOverallStatus: function (successCallback, errorCallback) {\n        const promise = getPlugin().then(plugin => plugin.optInOverallStatus());\n        return handlePromise(promise, successCallback, errorCallback, result => result.status);\n    },\n    optInSchematicRecordingStatus: function (successCallback, errorCallback) {\n        const promise = getPlugin().then(plugin => plugin.optInSchematicRecordingStatus());\n        return handlePromise(promise, successCallback, errorCallback, result => result.status);\n    },\n    // Legacy aliases\n    startWithKey: function (appKey, successCallback, errorCallback) {\n        return this.startWithConfiguration({ userAppKey: appKey }, successCallback, errorCallback);\n    },\n    stopApplicationAndUploadData: function (successCallback, errorCallback) {\n        return this.stopSessionAndUploadData(successCallback, errorCallback);\n    },\n    resumeShortBreakForAnotherApp: function (successCallback, errorCallback) {\n        return this.allowShortBreakForAnotherApp(false, successCallback, errorCallback);\n    },\n    optIntoVideoRecording: function (successCallback, errorCallback) {\n        return this.optIntoSchematicRecordings(successCallback, errorCallback);\n    },\n    optOutOfVideoRecording: function (successCallback, errorCallback) {\n        return this.optOutOfSchematicRecordings(successCallback, errorCallback);\n    },\n    optInVideoRecordingStatus: function (successCallback, errorCallback) {\n        return this.optInSchematicRecordingStatus(successCallback, errorCallback);\n    }\n};\n// Default export\nexports.default = exports.UXCam;\n// Set window.UXCam for backward compatibility with Cordova-style usage\nif (typeof globalScope !== 'undefined') {\n    globalScope.UXCam = exports.UXCam;\n}\n// Ensure Cordova clobbers receive the UXCam object as the module export.\nif (typeof module !== 'undefined' && module.exports) {\n    module.exports = exports.UXCam;\n    module.exports.UXCam = exports.UXCam;\n    module.exports.UXCamCapacitor = exports.UXCamCapacitor;\n    module.exports.default = exports.UXCam;\n}\n"]}