var __rest = (this && this.__rest) || function (s, e) {
    var t = {};
    for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
        t[p] = s[p];
    if (s != null && typeof Object.getOwnPropertySymbols === "function")
        for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
            if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
                t[p[i]] = s[p[i]];
        }
    return t;
};
import React from 'react';
import { ModalProvider } from '../../components/Modal/Context';
import InstructionsModal from '../../components/Modal/Instructions';
import InstructionsAmericanas from '../../components/Modal/InstructionsAmericanas';
import InstructionsMolduraMinuto from '../../components/Modal/InstructionsMolduraMinuto';
import InstructionsYDigital from '../../components/Modal/InstructionsYDigital';
import InstructionsYDigitalVideo from '../../components/Modal/InstructionsYDigitalVideo';
const getInstructions = ({ customerId, sku, }) => {
    switch (customerId) {
        case '89e502ed-f9ae-4147-82e1-f0868d2bb74b':
            switch (sku) {
                case 'rav4':
                    return InstructionsYDigital;
                case 'vodacom-portal':
                    return InstructionsYDigitalVideo;
                default:
                    return InstructionsModal;
            }
        case '701ba5cb-152f-4724-9a5f-bb5b1c42d81c':
            return InstructionsAmericanas;
        case '60f02fd9ff756f00088eb928':
            return InstructionsMolduraMinuto;
        default:
            return InstructionsModal;
    }
};
const InstructionsScreen = (_a) => {
    var { openerElement, openerEvent, customerId, sku } = _a, instructionsProps = __rest(_a, ["openerElement", "openerEvent", "customerId", "sku"]);
    const Instructions = getInstructions({ customerId, sku });
    return (React.createElement(ModalProvider, { openerElement: openerElement, openerEvent: openerEvent },
        React.createElement(Instructions, Object.assign({}, instructionsProps, (customerId === '89e502ed-f9ae-4147-82e1-f0868d2bb74b' ||
            customerId === 'c46943ac-ac1a-4170-8f52-c8705b963538'
            ? { hasWaterMark: false }
            : {})))));
};
export default InstructionsScreen;
//# sourceMappingURL=index.js.map