"use strict";
// Copyright (c) Rotorz Limited and portions by original markdown-it-video authors
// Licensed under the MIT license. See LICENSE file in the project root.
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const VideoServiceBase_1 = __importDefault(require("./VideoServiceBase"));
class PreziService extends VideoServiceBase_1.default {
    getDefaultOptions() {
        return { width: 550, height: 400 };
    }
    extractVideoID(reference) {
        let match = reference.match(/^https:\/\/prezi.com\/(.[^/]+)/);
        return match ? match[1] : reference;
    }
    getVideoUrl(videoID) {
        let escapedVideoID = this.env.md.utils.escapeHtml(videoID);
        return "https://prezi.com/embed/" + escapedVideoID
            + "/?bgcolor=ffffff&amp;lock_to_path=0&amp;autoplay=0&amp;autohide_ctrls=0&amp;"
            + "landing_data=bHVZZmNaNDBIWnNjdEVENDRhZDFNZGNIUE43MHdLNWpsdFJLb2ZHanI5N1lQVHkxSHFxazZ0UUNCRHloSXZROHh3PT0&amp;"
            + "landing_sign=1kD6c0N6aYpMUS0wxnQjxzSqZlEB8qNFdxtdjYhwSuI";
    }
}
exports.default = PreziService;
//# sourceMappingURL=PreziService.js.map