"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const location_1 = __importDefault(require("../../lib/location"));
exports.default = {
    provide: 'location',
    getValue: async (inputs) => {
        if (inputs.visitorIp) {
            return location_1.default.getByIp(inputs.visitorIp);
        }
    },
};
