UNPKG

infinity-forge

Version:
48 lines 2.93 kB
"use strict"; var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { if (k2 === undefined) k2 = k; var desc = Object.getOwnPropertyDescriptor(m, k); if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { desc = { enumerable: true, get: function() { return m[k]; } }; } Object.defineProperty(o, k2, desc); }) : (function(o, m, k, k2) { if (k2 === undefined) k2 = k; o[k2] = m[k]; })); var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { Object.defineProperty(o, "default", { enumerable: true, value: v }); }) : function(o, v) { o["default"] = v; }); var __importStar = (this && this.__importStar) || (function () { var ownKeys = function(o) { ownKeys = Object.getOwnPropertyNames || function (o) { var ar = []; for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; return ar; }; return ownKeys(o); }; return function (mod) { if (mod && mod.__esModule) return mod; var result = {}; if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); __setModuleDefault(result, mod); return result; }; })(); Object.defineProperty(exports, "__esModule", { value: true }); exports.PixSucess = PixSucess; var jsx_runtime_1 = require("react/jsx-runtime"); var ui_1 = require("../../../../ui/index.js"); var S = __importStar(require("./styles.js")); function PixSucess(_a) { var isPaid = _a.isPaid, isSucess = _a.isSucess, isDelivery = _a.isDelivery, fastCheckout = _a.fastCheckout; return ((0, jsx_runtime_1.jsx)(ui_1.Error, { name: 'PixSucess', children: (0, jsx_runtime_1.jsx)(S.PixSucess, { children: (0, jsx_runtime_1.jsxs)(ui_1.Container, { children: [(0, jsx_runtime_1.jsx)("div", { className: 'image', children: (0, jsx_runtime_1.jsx)(ui_1.NextImage, { src: '/images/check.png' }) }), (0, jsx_runtime_1.jsxs)("div", { className: 'text', children: [(0, jsx_runtime_1.jsx)("h2", { children: isDelivery ? 'Pedido em processamento pela loja' : isSucess || (isPaid !== undefined && isPaid === true) ? 'Pagamento confirmado' : 'Aguardando pagamento' }), fastCheckout && ((0, jsx_runtime_1.jsxs)("p", { children: ["Para acessar a \u00E1rea restrita, entre com o seu ", (0, jsx_runtime_1.jsx)("strong", { children: "e-mail " }), "no local de", (0, jsx_runtime_1.jsx)("strong", { children: " login" }), " e com o seu ", (0, jsx_runtime_1.jsx)("strong", { children: "cpf" }), " no campo de ", (0, jsx_runtime_1.jsx)("strong", { children: "senha" }), "."] }))] })] }) }) })); } //# sourceMappingURL=index.js.map