123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223 |
- import React from 'react';
- import { s as styleInject } from '../style-inject.es-1f59c1d0.js';
- import { _ as _defineProperty } from '../defineProperty-18999f8e.js';
- import { c as classnames } from '../index-e3cf212a.js';
- import { e as exportStyleSizeClass } from '../utils-6b513b37.js';
-
- var img = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAKAAAABECAYAAAAGGj65AAAOu0lEQVR42u1dCZgU1REeEEVAjggG1CgqhKhAuNTPfj2zzB7sskk4VNCgmEPjGo05JCoGNeKZmBijnyZKIkSNVxZ2l92FZVmW5WYFQQEF5EYW5GbOvY9OVU/30jPzeub1MbMzQ9f31ccx3W96+v1d9arqr9c2myWWWGKJJZZYYoklllhiiSWWnNNClvsy0lf6Vgwqc/t6FblbbflnhITU+a62fsXulmFLPa7J6/0l0zY2DrVmL5ml1NtvZIV3S8ICLop2LXC15a7xl9vyhfOsyUwyGVzuGzqg1O1PVvApdUyl92jWJqG3NavJIkWuPgA+TyqAT1a+yrsvlrfM6XT2A70KNTst7WrUXIfjknMFMll2+zVOnr85TJ3OAZoHG7HMW5VK4JN1+kb/q7G4+emETBpLuFZQIUh57gMzxs/Nze0KY+138sSl1HSe+4vWsTIcjtFw7oJg5d4y4R7MC/v94j3gH9Y0UM9C75DOsJhPRQBescjTZBOEzqYDkOefpd98cwAIluQu2vjwvUN1XOsPwq+THDJ6jWMJmWsKAG+q9L6diuCT9YHNtXnJBkCY3HUU0FTpvFZmAObk5FycabcPYVG0pPSHhHsx2rnj0tK+O3Xq1AvELx2yxHMw1iD43hKPcMs6f5gOX+qJOQBvq/ZXJRMAMx2O79PGzrDbb4k1AOHYWdTfFQN1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ABJRU5ErkJggg==";
-
- var css = ".PayPlatformOptions_flexContainer__b-T24 {\n display: flex;\n justify-content: space-around;\n align-items: center;\n}\n.PayPlatformOptions_label__3uVHv {\n font-size: 14px;\n font-weight: 400;\n color: #616A79;\n}\n.PayPlatformOptions_payChannelBox__3_kPR {\n padding: 20px 10px 10px 10px;\n text-align: center;\n}\n.PayPlatformOptions_payChannelBox__3_kPR .PayPlatformOptions_paymentImage__1Jwya {\n display: inline-block;\n margin: 0;\n width: 60%;\n vertical-align: middle;\n}\n.PayPlatformOptions_payChannelBox__3_kPR .PayPlatformOptions_paymentImage-before__2mPbW {\n display: inline-block;\n height: 100%;\n vertical-align: middle;\n}\n.PayPlatformOptions_payChannelBox__3_kPR .PayPlatformOptions_payChannelBlock__3YbXL {\n display: flex;\n justify-content: center;\n align-items: center;\n cursor: pointer;\n border: 1px solid transparent;\n height: 66px;\n line-height: 66px;\n}\n.PayPlatformOptions_payChannelBox__3_kPR .PayPlatformOptions_payChannelBlock__3YbXL .PayPlatformOptions_platformName__U1hFh {\n text-align: center;\n white-space: nowrap;\n}\n.PayPlatformOptions_payChannelBox__3_kPR .PayPlatformOptions_payChannelBlock__3YbXL.PayPlatformOptions_small__rnqDt {\n width: 88px;\n height: 36px;\n line-height: 36px;\n}\n.PayPlatformOptions_payChannelBox__3_kPR .PayPlatformOptions_payChannelBlock__3YbXL.PayPlatformOptions_small__rnqDt .PayPlatformOptions_paymentImage__1Jwya {\n margin: 0;\n}\n.PayPlatformOptions_payChannelBox__3_kPR .PayPlatformOptions_payChannelBlock__3YbXL.PayPlatformOptions_normal__12jfT {\n width: 132px;\n}\n.PayPlatformOptions_payChannelBox__3_kPR .PayPlatformOptions_payChannelBlock__3YbXL.PayPlatformOptions_large__Q_Mjs {\n width: 162px;\n}\n.PayPlatformOptions_payChannelBox__3_kPR .PayPlatformOptions_payChannelBlock__3YbXL.PayPlatformOptions_active__3wAdi {\n border-radius: 5px;\n border-color: #1790FF;\n box-shadow: 0px 2px 6px 0px rgba(163, 163, 163, 0.3);\n}\n.PayPlatformOptions_payChannelBox__3_kPR .PayPlatformOptions_payChannelBlock__3YbXL.PayPlatformOptions_en__Ns_g7 {\n font-size: 12px;\n}\n.PayPlatformOptions_payChannelBox__3_kPR.PayPlatformOptions_mobile__3Ckag {\n padding: 8px 10px 10px 8px;\n}\n.PayPlatformOptions_payChannelBox__3_kPR.PayPlatformOptions_mobile__3Ckag .PayPlatformOptions_payChannelBlock__3YbXL {\n display: inline-flex;\n flex-direction: column;\n justify-content: space-around;\n width: 78px;\n height: 80px;\n line-height: initial;\n border: 1px solid transparent;\n}\n.PayPlatformOptions_payChannelBox__3_kPR.PayPlatformOptions_mobile__3Ckag .PayPlatformOptions_payChannelBlock__3YbXL.PayPlatformOptions_active__3wAdi {\n border-radius: 4px;\n border-color: #1790FF;\n}\n.PayPlatformOptions_payChannelBox__3_kPR.PayPlatformOptions_mobile__3Ckag .PayPlatformOptions_payChannelBlock__3YbXL .PayPlatformOptions_paymentImage__1Jwya {\n display: inline-block;\n width: 34px;\n height: 34px;\n}\n@media (max-width: 768px) {\n .PayPlatformOptions_payChannelBlock__3YbXL {\n cursor: pointer;\n border: 1px solid transparent;\n }\n .PayPlatformOptions_payChannelBlock__3YbXL.PayPlatformOptions_active__3wAdi {\n border-radius: 5px;\n border-color: #1790FF;\n }\n}\n";
- var styles = {
- "flexContainer": "PayPlatformOptions_flexContainer__b-T24",
- "label": "PayPlatformOptions_label__3uVHv",
- "payChannelBox": "PayPlatformOptions_payChannelBox__3_kPR",
- "paymentImage": "PayPlatformOptions_paymentImage__1Jwya",
- "paymentImage-before": "PayPlatformOptions_paymentImage-before__2mPbW",
- "payChannelBlock": "PayPlatformOptions_payChannelBlock__3YbXL",
- "platformName": "PayPlatformOptions_platformName__U1hFh",
- "small": "PayPlatformOptions_small__rnqDt",
- "normal": "PayPlatformOptions_normal__12jfT",
- "large": "PayPlatformOptions_large__Q_Mjs",
- "active": "PayPlatformOptions_active__3wAdi",
- "en": "PayPlatformOptions_en__Ns_g7",
- "mobile": "PayPlatformOptions_mobile__3Ckag",
- "paymentImageBefore": "PayPlatformOptions_paymentImage-before__2mPbW"
- };
- styleInject(css);
-
- function ownKeys(object, enumerableOnly) {
- var keys = Object.keys(object);
-
- if (Object.getOwnPropertySymbols) {
- var symbols = Object.getOwnPropertySymbols(object);
- if (enumerableOnly) symbols = symbols.filter(function (sym) {
- return Object.getOwnPropertyDescriptor(object, sym).enumerable;
- });
- keys.push.apply(keys, symbols);
- }
-
- return keys;
- }
-
- function _objectSpread(target) {
- for (var i = 1; i < arguments.length; i++) {
- var source = arguments[i] != null ? arguments[i] : {};
-
- if (i % 2) {
- ownKeys(Object(source), true).forEach(function (key) {
- _defineProperty(target, key, source[key]);
- });
- } else if (Object.getOwnPropertyDescriptors) {
- Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
- } else {
- ownKeys(Object(source)).forEach(function (key) {
- Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
- });
- }
- }
-
- return target;
- }
- var PAY_CHANNEL = {
- PAYPAL: "PAYPAL_PAYPAL",
- ALI_WEB: "ALI_WEB",
- ALI_WAP: "ALI_WAP",
- WX_WAP: "WX_WAP",
- WX_NATIVE: "WX_NATIVE"
- };
- var PAY_CHANNEL_CATEGORY = {
- ALI: "Alipay",
- WX: "Wechat",
- PAYPAL: "Paypal"
- };
- var PAY_CHANNEL_INSTANCE = [{
- image: {
- desktop: img,
- mobile: img$3
- },
- text: {
- zh: "支付宝",
- en: "Alipay"
- },
- key: PAY_CHANNEL_CATEGORY.ALI
- }, {
- image: {
- desktop: img$1,
- mobile: img$4
- },
- text: {
- zh: "微信",
- en: "WeChat"
- },
- key: PAY_CHANNEL_CATEGORY.WX
- }, {
- image: {
- desktop: img$2,
- mobile: img$5
- },
- text: {
- zh: "PayPal",
- en: "PayPal"
- },
- key: PAY_CHANNEL_CATEGORY.PAYPAL
- }];
-
- var PayPlatformBlock = function PayPlatformBlock(_ref) {
- var _ref$isMobile = _ref.isMobile,
- isMobile = _ref$isMobile === void 0 ? false : _ref$isMobile,
- _ref$isActive = _ref.isActive,
- isActive = _ref$isActive === void 0 ? false : _ref$isActive,
- _ref$size = _ref.size,
- size = _ref$size === void 0 ? "normal" : _ref$size,
- onClick = _ref.onClick,
- text = _ref.text,
- image = _ref.image,
- _ref$locale = _ref.locale,
- locale = _ref$locale === void 0 ? "zh" : _ref$locale;
- var showText = text[locale];
-
- if (isMobile) {
- return React.createElement("div", {
- className: styles.flexItem
- }, React.createElement("div", {
- className: classnames(styles.payChannelBlock, _objectSpread(_defineProperty({}, styles.active, isActive), exportStyleSizeClass(styles, size)), styles[locale]),
- onClick: onClick
- }, React.createElement("img", {
- src: image.mobile,
- alt: showText,
- className: styles.paymentImage
- }), React.createElement("div", {
- className: styles.platformName
- }, showText)));
- }
-
- return React.createElement("div", {
- className: styles.flexItem
- }, React.createElement("div", {
- className: classnames(styles.payChannelBlock, _objectSpread(_defineProperty({}, styles.active, isActive), exportStyleSizeClass(styles, size)), styles[locale]),
- onClick: onClick
- }, React.createElement("span", {
- className: styles["payment-method-before"]
- }), React.createElement("img", {
- src: image.desktop,
- alt: showText,
- className: styles.paymentImage
- })));
- };
-
- var PayPlatformOptions = function PayPlatformOptions(_ref2) {
- var payChannel = _ref2.payChannel,
- onPayChannelChange = _ref2.onPayChannelChange,
- _ref2$size = _ref2.size,
- size = _ref2$size === void 0 ? "normal" : _ref2$size,
- _ref2$isMobile = _ref2.isMobile,
- isMobile = _ref2$isMobile === void 0 ? false : _ref2$isMobile,
- _ref2$withTitle = _ref2.withTitle,
- withTitle = _ref2$withTitle === void 0 ? true : _ref2$withTitle,
- titleText = _ref2.titleText,
- _ref2$locale = _ref2.locale,
- locale = _ref2$locale === void 0 ? "zh" : _ref2$locale;
- var titleDOM = null;
- var payListDOM = [{
- valueKey: PAY_CHANNEL.ALI_WEB,
- categoryKey: PAY_CHANNEL_CATEGORY.ALI
- }, {
- valueKey: PAY_CHANNEL.WX_NATIVE,
- categoryKey: PAY_CHANNEL_CATEGORY.WX
- }, {
- valueKey: PAY_CHANNEL.PAYPAL,
- categoryKey: PAY_CHANNEL_CATEGORY.PAYPAL
- }].map(function (v) {
- var valueKey = v.valueKey,
- categoryKey = v.categoryKey;
- var targetInstance = PAY_CHANNEL_INSTANCE.find(function (ins) {
- return ins.key === categoryKey;
- });
-
- if (targetInstance) {
- var text = targetInstance.text,
- image = targetInstance.image;
- return React.createElement(PayPlatformBlock, Object.assign({
- key: valueKey
- }, {
- isMobile: isMobile,
- locale: locale,
- size: size
- }, {
- onClick: function onClick() {
- return onPayChannelChange(valueKey);
- },
- isActive: valueKey === payChannel,
- text: text,
- image: image
- }));
- }
- });
-
- if (withTitle) {
- titleDOM = React.createElement("div", {
- className: styles.label
- }, titleText || locale === "zh" ? "支付方式" : "Payment");
- }
-
- return React.createElement("div", null, titleDOM, React.createElement("div", {
- className: classnames(styles.payChannelBox, _defineProperty({}, styles.mobile, isMobile))
- }, React.createElement("div", {
- className: styles.flexContainer
- }, payListDOM)));
- };
-
- export default PayPlatformOptions;
- export { PAY_CHANNEL, PAY_CHANNEL_CATEGORY };
- //# sourceMappingURL=index.js.map
|