"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const device_source_1 = __importDefault(require("../../lib/device_source"));
exports.default = {
    provide: 'device',
    isSticky: true,
    shouldTrack: true,
    getValue: async (inputs) => {
        // TODO: convert parsedUA to a lazy property of inputs
        return device_source_1.default.getDevice(inputs.metadata.parsedUA?.device);
    },
};
