@fonixtree/magic-design 0.1.78 → 0.1.80
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/assets/fonts/Trueno-Light.otf +0 -0
- package/es/assets/fonts/Trueno-Regular.otf +0 -0
- package/es/assets/fonts/TruenoBd.otf +0 -0
- package/es/assets/fonts/magic-box-iconfont.css +31 -3
- package/es/assets/fonts/magic-box-iconfont.css.bak +31 -3
- package/es/assets/fonts/magic-box-iconfont.js +1 -1
- package/es/assets/fonts/magic-box-iconfont.js.bak +1 -1
- package/es/assets/fonts/magic-box-iconfont.ttf +0 -0
- package/es/assets/fonts/magic-box-iconfont.woff +0 -0
- package/es/assets/fonts/magic-box-iconfont.woff2 +0 -0
- package/es/assets/images/base64/index.js +36 -2
- package/es/assets/images/layout-icon/walletLayout2.png +0 -0
- package/es/assets/images/layout-icon/walletNuriLayout1.png +0 -0
- package/es/assets/less/cylon-antd.less +7246 -1686
- package/es/assets/less/font.less +22 -0
- package/es/common/AffiliateProductModal/index.js +582 -0
- package/es/common/AffiliateProductModal/index.less +146 -0
- package/es/common/CardCarousel/index.js +171 -0
- package/es/common/CardCarousel/index.less +28 -0
- package/es/common/GroupList/index.less +3 -0
- package/es/common/ImagePicker/index.js +1 -3
- package/es/common/LinkModal/FilteredProductModal/index.js +1 -1
- package/es/common/LinkModal/FunctionTable/index.js +2 -1
- package/es/common/LinkModal/index.js +14 -2
- package/es/common/MyModal/index.js +417 -0
- package/es/common/MyModal/index.less +74 -0
- package/es/common/ProductModal/index.js +2 -3
- package/es/common/ProductSource/index.js +42 -10
- package/es/common/UrlPicker/index.js +3 -1
- package/es/common/index.js +16 -0
- package/es/composite-comp/bol/components/Banner/mobile/index.js +4 -1
- package/es/composite-comp/bol/components/ImageText/pc/index.js +2 -2
- package/es/composite-comp/bol/components/Video/index.js +1 -2
- package/es/composite-comp/bol/components/Wallet/defaultJSON.js +112 -88
- package/es/composite-comp/bol/components/Wallet/index.js +11 -15
- package/es/composite-comp/bol/components/Wallet/mobile/index.js +314 -64
- package/es/composite-comp/bol/components/Wallet/mobile/index.less +89 -13
- package/es/composite-comp/bol/components/Wallet/pc/index.js +0 -2
- package/es/composite-comp/bol/components/Wallet/pc/index.less +1 -40
- package/es/composite-comp/bol/components/WalletNuri/defaultJSON.js +148 -0
- package/es/composite-comp/bol/components/WalletNuri/index.js +84 -0
- package/es/composite-comp/bol/components/WalletNuri/mobile/index.js +366 -0
- package/es/composite-comp/bol/components/WalletNuri/mobile/index.less +22 -0
- package/es/composite-comp/bol/config-panels/WalletConfig/WalletConfigImageGroup/index.js +1 -6
- package/es/composite-comp/bol/config-panels/WalletConfig/WalletConfigSetting/index.js +201 -0
- package/es/composite-comp/bol/config-panels/WalletConfig/WalletConfigSetting/index.less +9 -0
- package/es/composite-comp/bol/config-panels/WalletConfig/index.js +11 -2
- package/es/composite-comp/bol/config-panels/WalletNuriConfig/GroupList/defaultImg.png +0 -0
- package/es/composite-comp/bol/config-panels/WalletNuriConfig/GroupList/index.js +100 -0
- package/es/composite-comp/bol/config-panels/WalletNuriConfig/GroupList/index.less +72 -0
- package/es/composite-comp/bol/config-panels/WalletNuriConfig/WalletNuriConfigImageGroup/index.js +123 -0
- package/es/composite-comp/bol/config-panels/WalletNuriConfig/WalletNuriConfigImageGroup/index.less +0 -0
- package/es/composite-comp/bol/config-panels/WalletNuriConfig/imgs/defaultImg.png +0 -0
- package/es/composite-comp/bol/config-panels/WalletNuriConfig/index.js +61 -0
- package/es/composite-comp/bol/second-config-panels/ImageTextSecondConfig/index.js +8 -6
- package/es/composite-comp/bol/second-config-panels/WalletNuriSecondConfig/index.js +152 -0
- package/es/composite-comp/bol/second-config-panels/WalletSecondConfig/index.js +58 -82
- package/es/composite-comp/bol/second-config-panels/WalletSecondConfig/index.less +2 -0
- package/es/composite-comp/common/components/AffiliateProductItem/imgs/icon-Balance2.svg +9 -0
- package/es/composite-comp/common/components/AffiliateProductItem/imgs/icon-Koin.svg +40 -0
- package/es/composite-comp/common/components/AffiliateProductItem/index.js +177 -0
- package/es/composite-comp/common/components/AffiliateProductItem/index.less +129 -0
- package/es/composite-comp/common/components/ImageLabel/index.less +9 -3
- package/es/composite-comp/common/components/ProductItem/index.js +25 -17
- package/es/composite-comp/common/components/ProductItem/index.less +17 -8
- package/es/composite-comp/common/config-panels/CustomizeConfig/index.js +13 -0
- package/es/composite-comp/common/config-panels/CustomizeConfig/index.less +3 -2
- package/es/composite-comp/dito/components/AffiliateRecommend/defaultJSON.js +243 -0
- package/es/composite-comp/dito/components/AffiliateRecommend/index.js +90 -0
- package/es/composite-comp/dito/components/AffiliateRecommend/mobile/index.js +660 -0
- package/es/composite-comp/dito/components/AffiliateRecommend/mobile/index.less +84 -0
- package/es/composite-comp/dito/components/AffiliateRecommend/pc/index.js +728 -0
- package/es/composite-comp/dito/components/AffiliateRecommend/pc/index.less +124 -0
- package/es/composite-comp/dito/components/FlashDeal/mobile/index.js +8 -6
- package/es/composite-comp/dito/components/FlashDeal/pc/index.js +8 -6
- package/es/composite-comp/dito/components/HeadNavigation/defaultJSON.js +97 -0
- package/es/composite-comp/dito/components/HeadNavigation/index.js +84 -0
- package/es/composite-comp/dito/components/HeadNavigation/mobile/index.js +112 -0
- package/es/composite-comp/dito/components/HeadNavigation/mobile/index.less +34 -0
- package/es/composite-comp/dito/components/MenuNavigation/MenuNavMetaImage/index.js +206 -0
- package/es/composite-comp/dito/components/MenuNavigation/MenuNavMetaImage/index.less +25 -0
- package/es/composite-comp/dito/components/MenuNavigation/defaultJSON.js +107 -0
- package/es/composite-comp/dito/components/MenuNavigation/index.js +84 -0
- package/es/composite-comp/dito/components/MenuNavigation/mobile/index.js +87 -0
- package/es/composite-comp/dito/components/MenuNavigation/mobile/index.less +8 -0
- package/es/composite-comp/dito/components/Recommend/mobile/index.js +10 -9
- package/es/composite-comp/dito/components/Recommend/pc/index.js +12 -11
- package/es/composite-comp/dito/components/SearchBar/mobile/index.js +1 -1
- package/es/composite-comp/dito/config-panels/AffiliateRecommendConfig/RecommendConfigContent/index.js +102 -0
- package/es/composite-comp/dito/config-panels/AffiliateRecommendConfig/RecommendConfigContent/index.less +0 -0
- package/es/composite-comp/dito/config-panels/AffiliateRecommendConfig/RecommendConfigGroup/index.js +148 -0
- package/es/composite-comp/dito/config-panels/AffiliateRecommendConfig/RecommendConfigGroup/index.less +16 -0
- package/es/composite-comp/dito/config-panels/AffiliateRecommendConfig/imgs/defaultImg.png +0 -0
- package/es/composite-comp/dito/config-panels/AffiliateRecommendConfig/index.js +141 -0
- package/es/composite-comp/dito/config-panels/HeadNavigationConfig/GroupList/index.js +203 -0
- package/es/composite-comp/dito/config-panels/HeadNavigationConfig/GroupList/index.less +72 -0
- package/es/composite-comp/dito/config-panels/HeadNavigationConfig/HeadNavConfigImageGroup/index.js +142 -0
- package/es/composite-comp/dito/config-panels/HeadNavigationConfig/index.js +123 -0
- package/es/composite-comp/dito/config-panels/HeadNavigationConfig/index.less +23 -0
- package/es/composite-comp/dito/config-panels/MenuNavigationConfig/GroupList/index.js +203 -0
- package/es/composite-comp/dito/config-panels/MenuNavigationConfig/GroupList/index.less +72 -0
- package/es/composite-comp/dito/config-panels/MenuNavigationConfig/MenuNavConfigImageGroup/index.js +137 -0
- package/es/composite-comp/dito/config-panels/MenuNavigationConfig/MenuNavConfigImageGroup/index.less +6 -0
- package/es/composite-comp/dito/config-panels/MenuNavigationConfig/index.js +40 -0
- package/es/composite-comp/dito/config-panels/RecommendConfig/RecommendConfigGroup/index.js +15 -11
- package/es/composite-comp/dito/second-config-panels/AffiliateRecommendSecondConfig/AIRecommendation/index.js +431 -0
- package/es/composite-comp/dito/second-config-panels/AffiliateRecommendSecondConfig/index.js +214 -0
- package/es/composite-comp/dito/second-config-panels/AffiliateRecommendSecondConfig/index.less +15 -0
- package/es/composite-comp/dito/second-config-panels/HeadNavigationSecondConfig/index.js +127 -0
- package/es/composite-comp/dito/second-config-panels/MenuNavigationSecondConfig/index.js +127 -0
- package/es/constants/component-types.js +27 -3
- package/es/constants/index.js +26 -1
- package/es/constants/layout.js +48 -1
- package/es/core/Designer/ChatRobot/components/SearchCondition/index.js +110 -0
- package/es/core/Designer/ChatRobot/components/SearchCondition/index.less +33 -0
- package/es/core/Designer/ChatRobot/index.js +36 -14
- package/es/core/Designer/ChatRobot/index.less +69 -28
- package/es/core/Designer/ConfigPanel/index.js +8 -3
- package/es/core/Designer/History/index.js +2 -2
- package/es/core/Designer/PageCompList/index.js +8 -5
- package/es/core/Designer/QuickMenuBar/index.js +5 -3
- package/es/core/Designer/QuickMenuBar/index.less +4 -0
- package/es/core/Designer/RenderHtml/index.js +18 -15
- package/es/core/Designer/RenderHtml/index.less +1 -1
- package/es/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/images/AlignCenterSVG.js +19 -6
- package/es/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/images/AlignLeftSVG.js +19 -6
- package/es/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/images/AlignRightSVG.js +19 -6
- package/es/core/Designer/ToolBarModal/ToolBtn/components/BulletPicker/index.js +27 -6
- package/es/core/Designer/ToolBarModal/ToolBtn/components/BulletPicker/index.less +4 -20
- package/es/core/Designer/ToolBarModal/ToolBtn/components/ColorPickerBtn/UnderlineSelectPicker/index.js +77 -0
- package/es/core/Designer/ToolBarModal/ToolBtn/components/ColorPickerBtn/UnderlineSelectPicker/index.less +27 -0
- package/es/core/Designer/ToolBarModal/ToolBtn/components/ColorPickerBtn/index.js +36 -5
- package/es/core/Designer/ToolBarModal/ToolBtn/components/ColorPickerBtn/index.less +17 -16
- package/es/core/Designer/ToolBarModal/ToolBtn/components/OrderedPicker/index.js +27 -6
- package/es/core/Designer/ToolBarModal/ToolBtn/components/OrderedPicker/index.less +4 -20
- package/es/core/Designer/ToolBarModal/ToolBtn/images/AlignCenterSVG.js +40 -0
- package/es/core/Designer/ToolBarModal/ToolBtn/images/AlignLeftSVG.js +40 -0
- package/es/core/Designer/ToolBarModal/ToolBtn/images/AlignRightSVG.js +40 -0
- package/es/core/Designer/ToolBarModal/ToolBtn/index.js +28 -3
- package/es/core/Designer/ToolBarModal/ToolBtn/index.less +2 -1
- package/es/core/Designer/ToolBarModal/index.js +68 -22
- package/es/core/Designer/ToolBarModal/index.less +3 -2
- package/es/core/Designer/index.js +12 -1
- package/es/core/Renderer/index.js +55 -8
- package/es/decorator/compositeDecorator.js +23 -0
- package/es/locale/en/en.json +6 -1
- package/es/locale/es/es.json +6 -1
- package/es/locale/id/id.json +6 -1
- package/es/meta-comp/components/Image/index.js +31 -25
- package/es/meta-comp/components/Text/formats/textAlign.js +58 -0
- package/es/meta-comp/components/Text/index.js +20 -1
- package/es/meta-comp/components/Text/index.less +8 -0
- package/es/meta-comp/config-panels/ButtonConfig/index.js +5 -5
- package/es/meta-comp/config-panels/ImageConfig/index.js +48 -44
- package/es/mobx/Frame.js +17 -2
- package/es/utils/businessUtil.js +17 -6
- package/es/utils/commonUtil.js +54 -4
- package/es/utils/currencyUtil.js +9 -2
- package/lib/assets/fonts/Trueno-Light.otf +0 -0
- package/lib/assets/fonts/Trueno-Regular.otf +0 -0
- package/lib/assets/fonts/TruenoBd.otf +0 -0
- package/lib/assets/fonts/magic-box-iconfont.css +31 -3
- package/lib/assets/fonts/magic-box-iconfont.css.bak +31 -3
- package/lib/assets/fonts/magic-box-iconfont.js +1 -1
- package/lib/assets/fonts/magic-box-iconfont.js.bak +1 -1
- package/lib/assets/fonts/magic-box-iconfont.ttf +0 -0
- package/lib/assets/fonts/magic-box-iconfont.woff +0 -0
- package/lib/assets/fonts/magic-box-iconfont.woff2 +0 -0
- package/lib/assets/images/base64/index.js +36 -2
- package/lib/assets/images/layout-icon/walletLayout2.png +0 -0
- package/lib/assets/images/layout-icon/walletNuriLayout1.png +0 -0
- package/lib/assets/less/cylon-antd.less +7246 -1686
- package/lib/assets/less/font.less +22 -0
- package/lib/common/AffiliateProductModal/index.js +582 -0
- package/lib/common/AffiliateProductModal/index.less +146 -0
- package/lib/common/CardCarousel/index.js +171 -0
- package/lib/common/CardCarousel/index.less +28 -0
- package/lib/common/GroupList/index.less +3 -0
- package/lib/common/ImagePicker/index.js +1 -3
- package/lib/common/LinkModal/FilteredProductModal/index.js +1 -1
- package/lib/common/LinkModal/FunctionTable/index.js +2 -1
- package/lib/common/LinkModal/index.js +14 -2
- package/lib/common/MyModal/index.js +417 -0
- package/lib/common/MyModal/index.less +74 -0
- package/lib/common/ProductModal/index.js +2 -3
- package/lib/common/ProductSource/index.js +42 -10
- package/lib/common/UrlPicker/index.js +3 -1
- package/lib/common/index.js +16 -0
- package/lib/composite-comp/bol/components/Banner/mobile/index.js +4 -1
- package/lib/composite-comp/bol/components/ImageText/pc/index.js +2 -2
- package/lib/composite-comp/bol/components/Video/index.js +1 -2
- package/lib/composite-comp/bol/components/Wallet/defaultJSON.js +112 -88
- package/lib/composite-comp/bol/components/Wallet/index.js +11 -15
- package/lib/composite-comp/bol/components/Wallet/mobile/index.js +314 -64
- package/lib/composite-comp/bol/components/Wallet/mobile/index.less +89 -13
- package/lib/composite-comp/bol/components/Wallet/pc/index.js +0 -2
- package/lib/composite-comp/bol/components/Wallet/pc/index.less +1 -40
- package/lib/composite-comp/bol/components/WalletNuri/defaultJSON.js +148 -0
- package/lib/composite-comp/bol/components/WalletNuri/index.js +84 -0
- package/lib/composite-comp/bol/components/WalletNuri/mobile/index.js +366 -0
- package/lib/composite-comp/bol/components/WalletNuri/mobile/index.less +22 -0
- package/lib/composite-comp/bol/config-panels/WalletConfig/WalletConfigImageGroup/index.js +1 -6
- package/lib/composite-comp/bol/config-panels/WalletConfig/WalletConfigSetting/index.js +201 -0
- package/lib/composite-comp/bol/config-panels/WalletConfig/WalletConfigSetting/index.less +9 -0
- package/lib/composite-comp/bol/config-panels/WalletConfig/index.js +11 -2
- package/lib/composite-comp/bol/config-panels/WalletNuriConfig/GroupList/defaultImg.png +0 -0
- package/lib/composite-comp/bol/config-panels/WalletNuriConfig/GroupList/index.js +100 -0
- package/lib/composite-comp/bol/config-panels/WalletNuriConfig/GroupList/index.less +72 -0
- package/lib/composite-comp/bol/config-panels/WalletNuriConfig/WalletNuriConfigImageGroup/index.js +123 -0
- package/lib/composite-comp/bol/config-panels/WalletNuriConfig/WalletNuriConfigImageGroup/index.less +0 -0
- package/lib/composite-comp/bol/config-panels/WalletNuriConfig/imgs/defaultImg.png +0 -0
- package/lib/composite-comp/bol/config-panels/WalletNuriConfig/index.js +61 -0
- package/lib/composite-comp/bol/second-config-panels/ImageTextSecondConfig/index.js +8 -6
- package/lib/composite-comp/bol/second-config-panels/WalletNuriSecondConfig/index.js +152 -0
- package/lib/composite-comp/bol/second-config-panels/WalletSecondConfig/index.js +58 -82
- package/lib/composite-comp/bol/second-config-panels/WalletSecondConfig/index.less +2 -0
- package/lib/composite-comp/common/components/AffiliateProductItem/imgs/icon-Balance2.svg +9 -0
- package/lib/composite-comp/common/components/AffiliateProductItem/imgs/icon-Koin.svg +40 -0
- package/lib/composite-comp/common/components/AffiliateProductItem/index.js +177 -0
- package/lib/composite-comp/common/components/AffiliateProductItem/index.less +129 -0
- package/lib/composite-comp/common/components/ImageLabel/index.less +9 -3
- package/lib/composite-comp/common/components/ProductItem/index.js +25 -17
- package/lib/composite-comp/common/components/ProductItem/index.less +17 -8
- package/lib/composite-comp/common/config-panels/CustomizeConfig/index.js +13 -0
- package/lib/composite-comp/common/config-panels/CustomizeConfig/index.less +3 -2
- package/lib/composite-comp/dito/components/AffiliateRecommend/defaultJSON.js +243 -0
- package/lib/composite-comp/dito/components/AffiliateRecommend/index.js +90 -0
- package/lib/composite-comp/dito/components/AffiliateRecommend/mobile/index.js +660 -0
- package/lib/composite-comp/dito/components/AffiliateRecommend/mobile/index.less +84 -0
- package/lib/composite-comp/dito/components/AffiliateRecommend/pc/index.js +728 -0
- package/lib/composite-comp/dito/components/AffiliateRecommend/pc/index.less +124 -0
- package/lib/composite-comp/dito/components/FlashDeal/mobile/index.js +8 -6
- package/lib/composite-comp/dito/components/FlashDeal/pc/index.js +8 -6
- package/lib/composite-comp/dito/components/HeadNavigation/defaultJSON.js +97 -0
- package/lib/composite-comp/dito/components/HeadNavigation/index.js +84 -0
- package/lib/composite-comp/dito/components/HeadNavigation/mobile/index.js +112 -0
- package/lib/composite-comp/dito/components/HeadNavigation/mobile/index.less +34 -0
- package/lib/composite-comp/dito/components/MenuNavigation/MenuNavMetaImage/index.js +206 -0
- package/lib/composite-comp/dito/components/MenuNavigation/MenuNavMetaImage/index.less +25 -0
- package/lib/composite-comp/dito/components/MenuNavigation/defaultJSON.js +107 -0
- package/lib/composite-comp/dito/components/MenuNavigation/index.js +84 -0
- package/lib/composite-comp/dito/components/MenuNavigation/mobile/index.js +87 -0
- package/lib/composite-comp/dito/components/MenuNavigation/mobile/index.less +8 -0
- package/lib/composite-comp/dito/components/Recommend/mobile/index.js +10 -9
- package/lib/composite-comp/dito/components/Recommend/pc/index.js +12 -11
- package/lib/composite-comp/dito/components/SearchBar/mobile/index.js +1 -1
- package/lib/composite-comp/dito/config-panels/AffiliateRecommendConfig/RecommendConfigContent/index.js +102 -0
- package/lib/composite-comp/dito/config-panels/AffiliateRecommendConfig/RecommendConfigContent/index.less +0 -0
- package/lib/composite-comp/dito/config-panels/AffiliateRecommendConfig/RecommendConfigGroup/index.js +148 -0
- package/lib/composite-comp/dito/config-panels/AffiliateRecommendConfig/RecommendConfigGroup/index.less +16 -0
- package/lib/composite-comp/dito/config-panels/AffiliateRecommendConfig/imgs/defaultImg.png +0 -0
- package/lib/composite-comp/dito/config-panels/AffiliateRecommendConfig/index.js +141 -0
- package/lib/composite-comp/dito/config-panels/HeadNavigationConfig/GroupList/index.js +203 -0
- package/lib/composite-comp/dito/config-panels/HeadNavigationConfig/GroupList/index.less +72 -0
- package/lib/composite-comp/dito/config-panels/HeadNavigationConfig/HeadNavConfigImageGroup/index.js +142 -0
- package/lib/composite-comp/dito/config-panels/HeadNavigationConfig/index.js +123 -0
- package/lib/composite-comp/dito/config-panels/HeadNavigationConfig/index.less +23 -0
- package/lib/composite-comp/dito/config-panels/MenuNavigationConfig/GroupList/index.js +203 -0
- package/lib/composite-comp/dito/config-panels/MenuNavigationConfig/GroupList/index.less +72 -0
- package/lib/composite-comp/dito/config-panels/MenuNavigationConfig/MenuNavConfigImageGroup/index.js +137 -0
- package/lib/composite-comp/dito/config-panels/MenuNavigationConfig/MenuNavConfigImageGroup/index.less +6 -0
- package/lib/composite-comp/dito/config-panels/MenuNavigationConfig/index.js +40 -0
- package/lib/composite-comp/dito/config-panels/RecommendConfig/RecommendConfigGroup/index.js +15 -11
- package/lib/composite-comp/dito/second-config-panels/AffiliateRecommendSecondConfig/AIRecommendation/index.js +431 -0
- package/lib/composite-comp/dito/second-config-panels/AffiliateRecommendSecondConfig/index.js +214 -0
- package/lib/composite-comp/dito/second-config-panels/AffiliateRecommendSecondConfig/index.less +15 -0
- package/lib/composite-comp/dito/second-config-panels/HeadNavigationSecondConfig/index.js +127 -0
- package/lib/composite-comp/dito/second-config-panels/MenuNavigationSecondConfig/index.js +127 -0
- package/lib/constants/component-types.js +27 -3
- package/lib/constants/index.js +26 -1
- package/lib/constants/layout.js +48 -1
- package/lib/core/Designer/ChatRobot/components/SearchCondition/index.js +110 -0
- package/lib/core/Designer/ChatRobot/components/SearchCondition/index.less +33 -0
- package/lib/core/Designer/ChatRobot/index.js +36 -14
- package/lib/core/Designer/ChatRobot/index.less +69 -28
- package/lib/core/Designer/ConfigPanel/index.js +8 -3
- package/lib/core/Designer/History/index.js +2 -2
- package/lib/core/Designer/PageCompList/index.js +8 -5
- package/lib/core/Designer/QuickMenuBar/index.js +5 -3
- package/lib/core/Designer/QuickMenuBar/index.less +4 -0
- package/lib/core/Designer/RenderHtml/index.js +18 -15
- package/lib/core/Designer/RenderHtml/index.less +1 -1
- package/lib/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/images/AlignCenterSVG.js +19 -6
- package/lib/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/images/AlignLeftSVG.js +19 -6
- package/lib/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/images/AlignRightSVG.js +19 -6
- package/lib/core/Designer/ToolBarModal/ToolBtn/components/BulletPicker/index.js +27 -6
- package/lib/core/Designer/ToolBarModal/ToolBtn/components/BulletPicker/index.less +4 -20
- package/lib/core/Designer/ToolBarModal/ToolBtn/components/ColorPickerBtn/UnderlineSelectPicker/index.js +77 -0
- package/lib/core/Designer/ToolBarModal/ToolBtn/components/ColorPickerBtn/UnderlineSelectPicker/index.less +27 -0
- package/lib/core/Designer/ToolBarModal/ToolBtn/components/ColorPickerBtn/index.js +36 -5
- package/lib/core/Designer/ToolBarModal/ToolBtn/components/ColorPickerBtn/index.less +17 -16
- package/lib/core/Designer/ToolBarModal/ToolBtn/components/OrderedPicker/index.js +27 -6
- package/lib/core/Designer/ToolBarModal/ToolBtn/components/OrderedPicker/index.less +4 -20
- package/lib/core/Designer/ToolBarModal/ToolBtn/images/AlignCenterSVG.js +40 -0
- package/lib/core/Designer/ToolBarModal/ToolBtn/images/AlignLeftSVG.js +40 -0
- package/lib/core/Designer/ToolBarModal/ToolBtn/images/AlignRightSVG.js +40 -0
- package/lib/core/Designer/ToolBarModal/ToolBtn/index.js +28 -3
- package/lib/core/Designer/ToolBarModal/ToolBtn/index.less +2 -1
- package/lib/core/Designer/ToolBarModal/index.js +68 -22
- package/lib/core/Designer/ToolBarModal/index.less +3 -2
- package/lib/core/Designer/index.js +12 -1
- package/lib/core/Renderer/index.js +55 -8
- package/lib/decorator/compositeDecorator.js +23 -0
- package/lib/locale/en/en.json +6 -1
- package/lib/locale/es/es.json +6 -1
- package/lib/locale/id/id.json +6 -1
- package/lib/meta-comp/components/Image/index.js +31 -25
- package/lib/meta-comp/components/Text/formats/textAlign.js +58 -0
- package/lib/meta-comp/components/Text/index.js +20 -1
- package/lib/meta-comp/components/Text/index.less +8 -0
- package/lib/meta-comp/config-panels/ButtonConfig/index.js +5 -5
- package/lib/meta-comp/config-panels/ImageConfig/index.js +48 -44
- package/lib/mobx/Frame.js +17 -2
- package/lib/utils/businessUtil.js +17 -6
- package/lib/utils/commonUtil.js +54 -4
- package/lib/utils/currencyUtil.js +9 -2
- package/package.json +1 -1
|
@@ -0,0 +1,152 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = void 0;
|
|
7
|
+
|
|
8
|
+
var _react = _interopRequireDefault(require("react"));
|
|
9
|
+
|
|
10
|
+
var _locale = require("../../../../locale");
|
|
11
|
+
|
|
12
|
+
var _common = require("../../../../common");
|
|
13
|
+
|
|
14
|
+
var _TextConfig = _interopRequireDefault(require("../../../../meta-comp/config-panels/TextConfig"));
|
|
15
|
+
|
|
16
|
+
var _ImageConfig = _interopRequireDefault(require("../../../../meta-comp/config-panels/ImageConfig"));
|
|
17
|
+
|
|
18
|
+
var _BaseConfig = _interopRequireDefault(require("../../../../meta-comp/config-panels/BaseConfig"));
|
|
19
|
+
|
|
20
|
+
var _coreUtil = require("../../../../utils/coreUtil");
|
|
21
|
+
|
|
22
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
23
|
+
|
|
24
|
+
var __extends = void 0 && (void 0).__extends || function () {
|
|
25
|
+
var _extendStatics = function extendStatics(d, b) {
|
|
26
|
+
_extendStatics = Object.setPrototypeOf || {
|
|
27
|
+
__proto__: []
|
|
28
|
+
} instanceof Array && function (d, b) {
|
|
29
|
+
d.__proto__ = b;
|
|
30
|
+
} || function (d, b) {
|
|
31
|
+
for (var p in b) {
|
|
32
|
+
if (b.hasOwnProperty(p)) d[p] = b[p];
|
|
33
|
+
}
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
return _extendStatics(d, b);
|
|
37
|
+
};
|
|
38
|
+
|
|
39
|
+
return function (d, b) {
|
|
40
|
+
_extendStatics(d, b);
|
|
41
|
+
|
|
42
|
+
function __() {
|
|
43
|
+
this.constructor = d;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
47
|
+
};
|
|
48
|
+
}();
|
|
49
|
+
|
|
50
|
+
var WalletSecondConfig =
|
|
51
|
+
/** @class */
|
|
52
|
+
function (_super) {
|
|
53
|
+
__extends(WalletSecondConfig, _super);
|
|
54
|
+
|
|
55
|
+
function WalletSecondConfig() {
|
|
56
|
+
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
57
|
+
|
|
58
|
+
_this.state = {};
|
|
59
|
+
|
|
60
|
+
_this.reRender = function () {
|
|
61
|
+
(0, _coreUtil.renderPreview)();
|
|
62
|
+
|
|
63
|
+
_this.setState({});
|
|
64
|
+
};
|
|
65
|
+
|
|
66
|
+
_this.getContentPanel = function () {
|
|
67
|
+
var panelProps = _this.props.panelProps;
|
|
68
|
+
|
|
69
|
+
var iconSetting = /*#__PURE__*/_react["default"].createElement(_common.Field, {
|
|
70
|
+
title: ""
|
|
71
|
+
}, /*#__PURE__*/_react["default"].createElement(_common.IconPicker, {
|
|
72
|
+
onChange: function onChange(icon) {
|
|
73
|
+
panelProps.tip.url = icon;
|
|
74
|
+
|
|
75
|
+
_this.reRender();
|
|
76
|
+
},
|
|
77
|
+
value: panelProps.tip.url
|
|
78
|
+
}));
|
|
79
|
+
|
|
80
|
+
var defaultSource = [{
|
|
81
|
+
key: panelProps.logo.id,
|
|
82
|
+
name: (0, _locale.i18n)('LOGO'),
|
|
83
|
+
value: /*#__PURE__*/_react["default"].createElement(_ImageConfig["default"], {
|
|
84
|
+
data: panelProps.logo,
|
|
85
|
+
needHover: false
|
|
86
|
+
}),
|
|
87
|
+
metaOption: panelProps.logo
|
|
88
|
+
}, {
|
|
89
|
+
key: panelProps.title.id,
|
|
90
|
+
name: (0, _locale.i18n)('TITLE'),
|
|
91
|
+
value: /*#__PURE__*/_react["default"].createElement(_TextConfig["default"], {
|
|
92
|
+
data: panelProps.title
|
|
93
|
+
}),
|
|
94
|
+
metaOption: panelProps.title
|
|
95
|
+
}, {
|
|
96
|
+
key: panelProps.amount.id,
|
|
97
|
+
name: (0, _locale.i18n)('AMOUNT'),
|
|
98
|
+
value: /*#__PURE__*/_react["default"].createElement(_TextConfig["default"], {
|
|
99
|
+
data: panelProps.amount
|
|
100
|
+
}),
|
|
101
|
+
metaOption: panelProps.amount
|
|
102
|
+
}, {
|
|
103
|
+
key: panelProps.text.id,
|
|
104
|
+
name: (0, _locale.i18n)('TEXT'),
|
|
105
|
+
value: /*#__PURE__*/_react["default"].createElement(_TextConfig["default"], {
|
|
106
|
+
data: panelProps.text
|
|
107
|
+
}),
|
|
108
|
+
metaOption: panelProps.text
|
|
109
|
+
}, {
|
|
110
|
+
key: panelProps.tip.id,
|
|
111
|
+
name: (0, _locale.i18n)('TIPS'),
|
|
112
|
+
value: iconSetting,
|
|
113
|
+
metaOption: panelProps.tip
|
|
114
|
+
}];
|
|
115
|
+
return /*#__PURE__*/_react["default"].createElement(_common.Collapse, {
|
|
116
|
+
divider: "dashed",
|
|
117
|
+
headerSize: "middle",
|
|
118
|
+
onRefresh: function onRefresh() {
|
|
119
|
+
return (0, _coreUtil.renderPreview)();
|
|
120
|
+
},
|
|
121
|
+
showActiveColor: true,
|
|
122
|
+
source: defaultSource,
|
|
123
|
+
type: "switch"
|
|
124
|
+
});
|
|
125
|
+
};
|
|
126
|
+
|
|
127
|
+
return _this;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
WalletSecondConfig.prototype.render = function () {
|
|
131
|
+
var panelProps = this.props.panelProps;
|
|
132
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
133
|
+
className: "Wallet_second_conf_wrap"
|
|
134
|
+
}, /*#__PURE__*/_react["default"].createElement(_common.Collapse, {
|
|
135
|
+
divider: "bold",
|
|
136
|
+
headerSize: "large",
|
|
137
|
+
source: [{
|
|
138
|
+
key: panelProps.id || 'walletNuriContent',
|
|
139
|
+
name: (0, _locale.i18n)('CONTENT'),
|
|
140
|
+
value: this.getContentPanel()
|
|
141
|
+
}]
|
|
142
|
+
}));
|
|
143
|
+
};
|
|
144
|
+
|
|
145
|
+
WalletSecondConfig.defaultProps = {
|
|
146
|
+
panelProps: {}
|
|
147
|
+
};
|
|
148
|
+
return WalletSecondConfig;
|
|
149
|
+
}(_BaseConfig["default"]);
|
|
150
|
+
|
|
151
|
+
var _default = WalletSecondConfig;
|
|
152
|
+
exports["default"] = _default;
|
|
@@ -9,16 +9,22 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
9
9
|
|
|
10
10
|
var _antd = require("antd");
|
|
11
11
|
|
|
12
|
+
var _mobx = require("../../../../mobx");
|
|
13
|
+
|
|
12
14
|
var _locale = require("../../../../locale");
|
|
13
15
|
|
|
14
16
|
var _common = require("../../../../common");
|
|
15
17
|
|
|
16
|
-
var _ImageConfig = _interopRequireDefault(require("../../../../meta-comp/config-panels/ImageConfig"));
|
|
17
|
-
|
|
18
18
|
var _TextConfig = _interopRequireDefault(require("../../../../meta-comp/config-panels/TextConfig"));
|
|
19
19
|
|
|
20
|
+
var _ButtonConfig = _interopRequireDefault(require("../../../../meta-comp/config-panels/ButtonConfig"));
|
|
21
|
+
|
|
22
|
+
var _constants = require("../../../../constants");
|
|
23
|
+
|
|
20
24
|
var _BaseConfig = _interopRequireDefault(require("../../../../meta-comp/config-panels/BaseConfig"));
|
|
21
25
|
|
|
26
|
+
var _BackgroundConfig = _interopRequireDefault(require("../../../common/config-panels/BackgroundConfig"));
|
|
27
|
+
|
|
22
28
|
var _coreUtil = require("../../../../utils/coreUtil");
|
|
23
29
|
|
|
24
30
|
require("./index.less");
|
|
@@ -51,22 +57,6 @@ var __extends = void 0 && (void 0).__extends || function () {
|
|
|
51
57
|
};
|
|
52
58
|
}();
|
|
53
59
|
|
|
54
|
-
var __assign = void 0 && (void 0).__assign || function () {
|
|
55
|
-
__assign = Object.assign || function (t) {
|
|
56
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
57
|
-
s = arguments[i];
|
|
58
|
-
|
|
59
|
-
for (var p in s) {
|
|
60
|
-
if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
return t;
|
|
65
|
-
};
|
|
66
|
-
|
|
67
|
-
return __assign.apply(this, arguments);
|
|
68
|
-
};
|
|
69
|
-
|
|
70
60
|
var WalletSecondConfig =
|
|
71
61
|
/** @class */
|
|
72
62
|
function (_super) {
|
|
@@ -81,26 +71,41 @@ function (_super) {
|
|
|
81
71
|
var panelProps = _this.props.panelProps;
|
|
82
72
|
var defaultSource = [{
|
|
83
73
|
key: 'defaultSource_1',
|
|
84
|
-
name: (0, _locale.i18n)('IMAGE'),
|
|
85
|
-
value: /*#__PURE__*/_react["default"].createElement(_ImageConfig["default"], {
|
|
86
|
-
data: panelProps.image
|
|
87
|
-
}),
|
|
88
|
-
metaOption: panelProps.image
|
|
89
|
-
}, {
|
|
90
|
-
key: 'defaultSource_2',
|
|
91
74
|
name: (0, _locale.i18n)('TITLE'),
|
|
92
75
|
value: /*#__PURE__*/_react["default"].createElement(_TextConfig["default"], {
|
|
93
76
|
data: panelProps.title
|
|
94
77
|
}),
|
|
95
78
|
metaOption: panelProps.title
|
|
96
79
|
}, {
|
|
97
|
-
key: '
|
|
80
|
+
key: 'defaultSource_2',
|
|
98
81
|
name: (0, _locale.i18n)('AMOUNT'),
|
|
99
82
|
value: /*#__PURE__*/_react["default"].createElement(_TextConfig["default"], {
|
|
100
83
|
data: panelProps.amount
|
|
101
84
|
}),
|
|
102
85
|
metaOption: panelProps.amount
|
|
103
86
|
}];
|
|
87
|
+
var defaultSource2 = [{
|
|
88
|
+
key: 'defaultSource_3',
|
|
89
|
+
name: (0, _locale.i18n)('TEXT'),
|
|
90
|
+
value: /*#__PURE__*/_react["default"].createElement(_TextConfig["default"], {
|
|
91
|
+
data: panelProps.text
|
|
92
|
+
}),
|
|
93
|
+
metaOption: panelProps.text
|
|
94
|
+
}, {
|
|
95
|
+
key: 'defaultSource_4',
|
|
96
|
+
name: (0, _locale.i18n)('BUTTON'),
|
|
97
|
+
value: /*#__PURE__*/_react["default"].createElement(_ButtonConfig["default"], {
|
|
98
|
+
data: panelProps.button
|
|
99
|
+
}),
|
|
100
|
+
metaOption: panelProps.button
|
|
101
|
+
}, {
|
|
102
|
+
key: 'defaultSource_5',
|
|
103
|
+
name: (0, _locale.i18n)('PEEK'),
|
|
104
|
+
value: /*#__PURE__*/_react["default"].createElement(_TextConfig["default"], {
|
|
105
|
+
data: panelProps.peek
|
|
106
|
+
}),
|
|
107
|
+
metaOption: panelProps.peek
|
|
108
|
+
}];
|
|
104
109
|
return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement(_common.Collapse, {
|
|
105
110
|
divider: "dashed",
|
|
106
111
|
headerSize: "middle",
|
|
@@ -116,88 +121,59 @@ function (_super) {
|
|
|
116
121
|
title: (0, _locale.i18n)('SOURCE_OF_AMOUNT')
|
|
117
122
|
}, /*#__PURE__*/_react["default"].createElement(_antd.Select, {
|
|
118
123
|
onChange: function onChange(v) {
|
|
124
|
+
_mobx.frameStore.textModalState.close();
|
|
125
|
+
|
|
119
126
|
panelProps.sourceType = v;
|
|
120
127
|
panelProps.title.text = v;
|
|
128
|
+
panelProps.title.html = '';
|
|
121
129
|
|
|
122
130
|
_this.selfRender();
|
|
123
131
|
},
|
|
124
132
|
value: panelProps.sourceType
|
|
125
133
|
}, /*#__PURE__*/_react["default"].createElement(_antd.Select.Option, {
|
|
126
|
-
value:
|
|
127
|
-
}, (0, _locale.i18n)('
|
|
128
|
-
value:
|
|
134
|
+
value: _constants.walletType.BALANCE
|
|
135
|
+
}, (0, _locale.i18n)('Balance')), /*#__PURE__*/_react["default"].createElement(_antd.Select.Option, {
|
|
136
|
+
value: _constants.walletType.B2B
|
|
137
|
+
}, (0, _locale.i18n)('B2B PayLater')), /*#__PURE__*/_react["default"].createElement(_antd.Select.Option, {
|
|
138
|
+
value: _constants.walletType.CENDUIT
|
|
139
|
+
}, (0, _locale.i18n)('CenDuit')), /*#__PURE__*/_react["default"].createElement(_antd.Select.Option, {
|
|
140
|
+
value: _constants.walletType.BNPL
|
|
141
|
+
}, (0, _locale.i18n)('BNPL')), /*#__PURE__*/_react["default"].createElement(_antd.Select.Option, {
|
|
142
|
+
value: _constants.walletType.CREDIT
|
|
129
143
|
}, (0, _locale.i18n)('Credit')), /*#__PURE__*/_react["default"].createElement(_antd.Select.Option, {
|
|
130
|
-
value:
|
|
131
|
-
}, (0, _locale.i18n)('
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
}
|
|
144
|
+
value: _constants.walletType.CASHBACK
|
|
145
|
+
}, (0, _locale.i18n)('Cashback'))))), /*#__PURE__*/_react["default"].createElement(_common.Collapse, {
|
|
146
|
+
divider: "dashed",
|
|
147
|
+
headerSize: "middle",
|
|
148
|
+
onRefresh: function onRefresh() {
|
|
149
|
+
return (0, _coreUtil.renderPreview)();
|
|
150
|
+
},
|
|
151
|
+
showActiveColor: true,
|
|
152
|
+
source: defaultSource2,
|
|
153
|
+
type: "switch"
|
|
154
|
+
}));
|
|
142
155
|
};
|
|
143
156
|
|
|
144
157
|
return _this;
|
|
145
158
|
}
|
|
146
159
|
|
|
147
160
|
WalletSecondConfig.prototype.render = function () {
|
|
148
|
-
var _this = this;
|
|
149
|
-
|
|
150
161
|
var panelProps = this.props.panelProps;
|
|
151
|
-
|
|
152
|
-
var hoverPanel = /*#__PURE__*/_react["default"].createElement(_common.Collapse, {
|
|
153
|
-
divider: "dashed",
|
|
154
|
-
noChange: true,
|
|
155
|
-
onRefresh: function onRefresh() {
|
|
156
|
-
return (0, _coreUtil.renderPreview)();
|
|
157
|
-
},
|
|
158
|
-
source: [{
|
|
159
|
-
key: 'hoverSetting_1',
|
|
160
|
-
name: (0, _locale.i18n)('IMAGE'),
|
|
161
|
-
value: /*#__PURE__*/_react["default"].createElement(_ImageConfig["default"], {
|
|
162
|
-
data: panelProps.hover.image
|
|
163
|
-
}),
|
|
164
|
-
metaOption: panelProps.hover.image
|
|
165
|
-
}, {
|
|
166
|
-
key: 'hoverSetting_2',
|
|
167
|
-
name: (0, _locale.i18n)('TITLE'),
|
|
168
|
-
value: /*#__PURE__*/_react["default"].createElement(_TextConfig["default"], {
|
|
169
|
-
data: panelProps.hover.title
|
|
170
|
-
}),
|
|
171
|
-
metaOption: panelProps.hover.title
|
|
172
|
-
}, {
|
|
173
|
-
key: 'hoverSetting_3',
|
|
174
|
-
name: (0, _locale.i18n)('AMOUNT'),
|
|
175
|
-
value: /*#__PURE__*/_react["default"].createElement(_TextConfig["default"], {
|
|
176
|
-
data: panelProps.hover.amount
|
|
177
|
-
}),
|
|
178
|
-
metaOption: panelProps.hover.amount
|
|
179
|
-
}],
|
|
180
|
-
type: "switch"
|
|
181
|
-
});
|
|
182
|
-
|
|
183
162
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
184
163
|
className: "Wallet_second_conf_wrap"
|
|
185
164
|
}, /*#__PURE__*/_react["default"].createElement(_common.Collapse, {
|
|
186
165
|
divider: "bold",
|
|
187
166
|
headerSize: "large",
|
|
188
|
-
onRefresh: function onRefresh() {
|
|
189
|
-
return _this.resetHover();
|
|
190
|
-
},
|
|
191
167
|
source: [{
|
|
192
168
|
key: '1',
|
|
193
169
|
name: (0, _locale.i18n)('CONTENT'),
|
|
194
170
|
value: this.getContentPanel()
|
|
195
171
|
}, {
|
|
196
172
|
key: '2',
|
|
197
|
-
name: (0, _locale.i18n)('
|
|
198
|
-
value:
|
|
199
|
-
|
|
200
|
-
|
|
173
|
+
name: (0, _locale.i18n)('BACKGROUND'),
|
|
174
|
+
value: /*#__PURE__*/_react["default"].createElement(_BackgroundConfig["default"], {
|
|
175
|
+
data: panelProps.background
|
|
176
|
+
})
|
|
201
177
|
}]
|
|
202
178
|
}));
|
|
203
179
|
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
<svg width="14" height="14" viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<g id="balance-02 4">
|
|
3
|
+
<path id="Vector" d="M6.29612 7.51894C6.27534 6.80062 6.53358 6.10217 7.01665 5.57014C7.52439 5.03348 8.24492 4.74601 9.10172 4.73948L11.2932 4.72454C11.1735 4.42166 10.9655 4.16179 10.6962 3.97869C10.4269 3.7956 10.1087 3.69775 9.78305 3.69788H2.54225C2.32566 3.69788 2.11794 3.78392 1.96478 3.93707C1.81163 4.09023 1.72559 4.29795 1.72559 4.51454V10.6195C1.72559 10.8361 1.81163 11.0438 1.96478 11.1969C2.11794 11.3501 2.32566 11.4361 2.54225 11.4361H9.78399C10.1171 11.4359 10.4421 11.3333 10.7149 11.1421C10.9877 10.951 11.1951 10.6805 11.3091 10.3675L9.04292 10.3833C7.68585 10.3815 6.31012 9.49574 6.29612 7.51894Z" fill="#269E2C"/>
|
|
4
|
+
<path id="Vector_2" d="M8.25924 6.86653C8.06604 7.03733 7.97364 7.28653 7.97924 7.62907C7.97924 8.1956 8.41604 8.5344 9.13844 8.5344L11.412 8.51853V6.56973L9.25138 6.58467C8.79964 6.5884 8.46644 6.68267 8.25924 6.86653Z" fill="#269E2C"/>
|
|
5
|
+
<path id="Vector_3" d="M11.5072 4.90092L9.10292 4.91865C7.40052 4.93079 6.46345 6.10585 6.47372 7.51892C6.48678 9.38559 7.79438 10.2135 9.06278 10.2041L11.509 10.1873H11.524C11.722 10.1873 11.9119 10.1087 12.052 9.96863C12.192 9.8286 12.2706 9.63868 12.2706 9.44065C12.2706 9.24262 12.192 9.05271 12.052 8.91268C11.9119 8.77265 11.722 8.69399 11.524 8.69399H11.4736L9.15238 8.71079C8.29558 8.71639 7.80278 8.27492 7.79812 7.62999C7.79252 6.86185 8.23492 6.41665 9.24758 6.40639L11.4876 6.39052H11.5286C11.7267 6.39052 11.9166 6.31185 12.0566 6.17183C12.1966 6.0318 12.2753 5.84188 12.2753 5.64385C12.2753 5.44582 12.1966 5.25591 12.0566 5.11588C11.9166 4.97585 11.7267 4.89719 11.5286 4.89719L11.5072 4.90092Z" fill="#FF5B00"/>
|
|
6
|
+
<path id="Vector_4" d="M6.44623 7.98895C6.73941 7.8857 6.89338 7.56434 6.79014 7.27116C6.68689 6.97798 6.36553 6.82401 6.07235 6.92726C5.77917 7.0305 5.6252 7.35187 5.72844 7.64504C5.83169 7.93822 6.15305 8.09219 6.44623 7.98895Z" fill="white"/>
|
|
7
|
+
<path id="Vector_5" d="M2.61328 3.472H9.54048C9.33328 3.26667 9.11675 2.93907 8.86662 2.56573C6.47448 2.86813 5.00355 3.17333 2.61328 3.472Z" fill="#269E2C"/>
|
|
8
|
+
</g>
|
|
9
|
+
</svg>
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
<svg width="14" height="14" viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<g id="Koin">
|
|
3
|
+
<g id="Group">
|
|
4
|
+
<g id="rank icon">
|
|
5
|
+
<path id="Vector" d="M7 12.25C9.8995 12.25 12.25 9.89946 12.25 6.99997C12.25 4.10047 9.8995 1.74997 7 1.74997C4.10051 1.74997 1.75 4.10047 1.75 6.99997C1.75 9.89946 4.10051 12.25 7 12.25Z" fill="url(#paint0_linear_4487_10245)"/>
|
|
6
|
+
<g id="Group_2" opacity="0.9">
|
|
7
|
+
<path id="Vector_2" d="M7.00512 11.7405C9.62051 11.7405 11.7407 9.62027 11.7407 7.00487C11.7407 4.38948 9.62051 2.26929 7.00512 2.26929C4.38973 2.26929 2.26953 4.38948 2.26953 7.00487C2.26953 9.62027 4.38973 11.7405 7.00512 11.7405Z" fill="url(#paint1_radial_4487_10245)"/>
|
|
8
|
+
<g id="Group_3">
|
|
9
|
+
<g id="Group_4" style="mix-blend-mode:screen">
|
|
10
|
+
<path id="Vector_3" d="M7.00512 11.7405C9.62051 11.7405 11.7407 9.62027 11.7407 7.00487C11.7407 4.38948 9.62051 2.26929 7.00512 2.26929C4.38973 2.26929 2.26953 4.38948 2.26953 7.00487C2.26953 9.62027 4.38973 11.7405 7.00512 11.7405Z" fill="#020202"/>
|
|
11
|
+
</g>
|
|
12
|
+
</g>
|
|
13
|
+
</g>
|
|
14
|
+
<path id="Vector_4" d="M5.93809 4.50593V7.45313C6.41413 6.83039 6.88088 6.19898 7.44791 5.65794C7.74133 5.3831 8.03413 5.33729 8.42783 5.33729H9.13229V5.3831C8.7844 5.67652 7.64043 6.97586 7.12787 7.62584C7.52157 8.11054 7.90599 8.61629 8.34488 9.06261C8.79368 9.51141 8.99487 9.60241 9.29695 9.70331C9.16881 10.097 8.96763 10.3075 8.46436 10.3075C8.16317 10.2994 7.87598 10.1786 7.65962 9.96888C7.02759 9.31889 6.47851 8.58658 5.93871 7.86417V10.2716L5.54501 10.2809C4.97797 10.2895 4.70312 9.98745 4.70312 9.41422V3.69128H5.09683C5.6911 3.69128 5.93809 4.02866 5.93809 4.50593Z" fill="#F95812"/>
|
|
15
|
+
<g id="Clip path group">
|
|
16
|
+
<mask id="mask0_4487_10245" style="mask-type:luminance" maskUnits="userSpaceOnUse" x="2" y="2" width="10" height="10">
|
|
17
|
+
<g id="clip-path">
|
|
18
|
+
<path id="Vector_5" d="M7.00512 11.7405C9.62051 11.7405 11.7407 9.62027 11.7407 7.00487C11.7407 4.38948 9.62051 2.26929 7.00512 2.26929C4.38973 2.26929 2.26953 4.38948 2.26953 7.00487C2.26953 9.62027 4.38973 11.7405 7.00512 11.7405Z" fill="white"/>
|
|
19
|
+
</g>
|
|
20
|
+
</mask>
|
|
21
|
+
<g mask="url(#mask0_4487_10245)">
|
|
22
|
+
<g id="Group_5">
|
|
23
|
+
<path id="Vector_6" opacity="0.2" d="M0.0784104 1.79022C0.508637 3.06976 1.12333 3.96673 1.67675 4.58577C4.34168 7.55711 9.29764 8.23805 14.3898 6.67747L12.4993 10.7055C11.3659 11.6642 10.009 12.3215 8.55418 12.6165C6.17463 13.0931 4.2383 12.4425 3.31408 12.0426C2.48149 11.6799 0.199121 10.6931 -0.905849 8.23309C-1.7044 6.45338 -2.00463 3.64298 -0.556096 2.2483C-0.366832 2.06696 -0.153288 1.91279 0.0784104 1.79022Z" fill="#FDECD7"/>
|
|
24
|
+
</g>
|
|
25
|
+
</g>
|
|
26
|
+
</g>
|
|
27
|
+
</g>
|
|
28
|
+
</g>
|
|
29
|
+
</g>
|
|
30
|
+
<defs>
|
|
31
|
+
<linearGradient id="paint0_linear_4487_10245" x1="2.4526" y1="9.62528" x2="11.5474" y2="4.37466" gradientUnits="userSpaceOnUse">
|
|
32
|
+
<stop stop-color="#F78B54"/>
|
|
33
|
+
<stop offset="1" stop-color="#F8BC7F"/>
|
|
34
|
+
</linearGradient>
|
|
35
|
+
<radialGradient id="paint1_radial_4487_10245" cx="0" cy="0" r="1" gradientUnits="userSpaceOnUse" gradientTransform="translate(7.00512 7.00487) scale(4.73559)">
|
|
36
|
+
<stop stop-color="#FDECD7"/>
|
|
37
|
+
<stop offset="1" stop-color="#F8C486"/>
|
|
38
|
+
</radialGradient>
|
|
39
|
+
</defs>
|
|
40
|
+
</svg>
|
|
@@ -0,0 +1,177 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = void 0;
|
|
7
|
+
|
|
8
|
+
var _react = _interopRequireDefault(require("react"));
|
|
9
|
+
|
|
10
|
+
var _classnames = _interopRequireDefault(require("classnames"));
|
|
11
|
+
|
|
12
|
+
var _iconBalance = _interopRequireDefault(require("./imgs/icon-Balance2.svg"));
|
|
13
|
+
|
|
14
|
+
var _iconKoin = _interopRequireDefault(require("./imgs/icon-Koin.svg"));
|
|
15
|
+
|
|
16
|
+
var _currencyUtil = require("../../../../utils/currencyUtil");
|
|
17
|
+
|
|
18
|
+
var _components = require("../../../../meta-comp/components");
|
|
19
|
+
|
|
20
|
+
var _NewImg = _interopRequireDefault(require("../../../../common/NewImg"));
|
|
21
|
+
|
|
22
|
+
require("./index.less");
|
|
23
|
+
|
|
24
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
25
|
+
|
|
26
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
27
|
+
|
|
28
|
+
var __extends = void 0 && (void 0).__extends || function () {
|
|
29
|
+
var _extendStatics = function extendStatics(d, b) {
|
|
30
|
+
_extendStatics = Object.setPrototypeOf || {
|
|
31
|
+
__proto__: []
|
|
32
|
+
} instanceof Array && function (d, b) {
|
|
33
|
+
d.__proto__ = b;
|
|
34
|
+
} || function (d, b) {
|
|
35
|
+
for (var p in b) {
|
|
36
|
+
if (b.hasOwnProperty(p)) d[p] = b[p];
|
|
37
|
+
}
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
return _extendStatics(d, b);
|
|
41
|
+
};
|
|
42
|
+
|
|
43
|
+
return function (d, b) {
|
|
44
|
+
_extendStatics(d, b);
|
|
45
|
+
|
|
46
|
+
function __() {
|
|
47
|
+
this.constructor = d;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
51
|
+
};
|
|
52
|
+
}();
|
|
53
|
+
|
|
54
|
+
var __assign = void 0 && (void 0).__assign || function () {
|
|
55
|
+
__assign = Object.assign || function (t) {
|
|
56
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
57
|
+
s = arguments[i];
|
|
58
|
+
|
|
59
|
+
for (var p in s) {
|
|
60
|
+
if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
return t;
|
|
65
|
+
};
|
|
66
|
+
|
|
67
|
+
return __assign.apply(this, arguments);
|
|
68
|
+
};
|
|
69
|
+
|
|
70
|
+
var __rest = void 0 && (void 0).__rest || function (s, e) {
|
|
71
|
+
var t = {};
|
|
72
|
+
|
|
73
|
+
for (var p in s) {
|
|
74
|
+
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
78
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
|
79
|
+
}
|
|
80
|
+
return t;
|
|
81
|
+
};
|
|
82
|
+
|
|
83
|
+
var AffiliateProductItem =
|
|
84
|
+
/** @class */
|
|
85
|
+
function (_super) {
|
|
86
|
+
__extends(AffiliateProductItem, _super);
|
|
87
|
+
|
|
88
|
+
function AffiliateProductItem() {
|
|
89
|
+
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
90
|
+
|
|
91
|
+
_this.state = {};
|
|
92
|
+
return _this;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
AffiliateProductItem.prototype.render = function () {
|
|
96
|
+
var _a;
|
|
97
|
+
|
|
98
|
+
var _b = this.props,
|
|
99
|
+
data = _b.data,
|
|
100
|
+
panelProps = _b.panelProps,
|
|
101
|
+
onItemClick = _b.onItemClick,
|
|
102
|
+
fixHeight = _b.fixHeight,
|
|
103
|
+
layout = _b.layout,
|
|
104
|
+
imgHeight = _b.imgHeight,
|
|
105
|
+
imgWidth = _b.imgWidth,
|
|
106
|
+
customFont = _b.customFont,
|
|
107
|
+
rest = __rest(_b, ["data", "panelProps", "onItemClick", "fixHeight", "layout", "imgHeight", "imgWidth", "customFont"]);
|
|
108
|
+
|
|
109
|
+
var imgStyle = {};
|
|
110
|
+
if (imgWidth) imgStyle.width = imgWidth;
|
|
111
|
+
if (imgHeight) imgStyle.height = imgHeight;
|
|
112
|
+
return /*#__PURE__*/_react["default"].createElement("div", _extends({
|
|
113
|
+
className: (0, _classnames["default"])('m-product-item-wrap', {
|
|
114
|
+
fixHeight: fixHeight,
|
|
115
|
+
horizontal: layout === 'horizontal'
|
|
116
|
+
}),
|
|
117
|
+
onClick: function onClick() {
|
|
118
|
+
return onItemClick();
|
|
119
|
+
},
|
|
120
|
+
style: {
|
|
121
|
+
width: imgWidth + 2
|
|
122
|
+
}
|
|
123
|
+
}, rest), /*#__PURE__*/_react["default"].createElement(_NewImg["default"], {
|
|
124
|
+
className: "product-img",
|
|
125
|
+
lazy: true,
|
|
126
|
+
src: (data === null || data === void 0 ? void 0 : data.imgUrls) && ((_a = data === null || data === void 0 ? void 0 : data.imgUrls) === null || _a === void 0 ? void 0 : _a.length) > 0 && data.imgUrls[0],
|
|
127
|
+
style: imgStyle
|
|
128
|
+
}), /*#__PURE__*/_react["default"].createElement("div", {
|
|
129
|
+
className: "contentWrap"
|
|
130
|
+
}, panelProps.productName.open && /*#__PURE__*/_react["default"].createElement("div", {
|
|
131
|
+
className: "productItemContent"
|
|
132
|
+
}, /*#__PURE__*/_react["default"].createElement(_components.MetaText, {
|
|
133
|
+
className: "producItemName",
|
|
134
|
+
data: __assign(__assign({}, panelProps.productName), {
|
|
135
|
+
text: data.productName
|
|
136
|
+
}),
|
|
137
|
+
readonly: true
|
|
138
|
+
})), /*#__PURE__*/_react["default"].createElement("div", {
|
|
139
|
+
className: "cashBackBox"
|
|
140
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
141
|
+
className: "cashBackBox_cashBack"
|
|
142
|
+
}, /*#__PURE__*/_react["default"].createElement("img", {
|
|
143
|
+
alt: "",
|
|
144
|
+
src: _iconBalance["default"]
|
|
145
|
+
}), /*#__PURE__*/_react["default"].createElement("div", {
|
|
146
|
+
className: "cashBackBox_text " + (customFont ? 'custom_font' : '')
|
|
147
|
+
}, "Cashback Saldo", /*#__PURE__*/_react["default"].createElement("span", null, (0, _currencyUtil.formatCurrencyWithSymbolNotSpace)(data.buyCommission || 0)))), /*#__PURE__*/_react["default"].createElement("div", {
|
|
148
|
+
className: "cashBackBox_koin"
|
|
149
|
+
}, /*#__PURE__*/_react["default"].createElement("img", {
|
|
150
|
+
alt: "",
|
|
151
|
+
src: _iconKoin["default"]
|
|
152
|
+
}), /*#__PURE__*/_react["default"].createElement("div", {
|
|
153
|
+
className: "cashBackBox_text " + (customFont ? 'custom_font' : '')
|
|
154
|
+
}, "Cashback", /*#__PURE__*/_react["default"].createElement("span", null, (0, _currencyUtil.formatCurrency)(data.giftCommission || 0)), "Koin"))), panelProps.salesPrice.open && /*#__PURE__*/_react["default"].createElement(_components.MetaText, {
|
|
155
|
+
className: "producItemPrice",
|
|
156
|
+
data: __assign(__assign({}, panelProps.salesPrice), {
|
|
157
|
+
text: (0, _currencyUtil.formatCurrencyWithSymbolNotSpace)(data.productPrice || 0)
|
|
158
|
+
}),
|
|
159
|
+
readonly: true,
|
|
160
|
+
style: {
|
|
161
|
+
color: panelProps.salesPrice.content.color
|
|
162
|
+
}
|
|
163
|
+
})));
|
|
164
|
+
};
|
|
165
|
+
|
|
166
|
+
AffiliateProductItem.defaultProps = {
|
|
167
|
+
data: {},
|
|
168
|
+
panelProps: {},
|
|
169
|
+
fixHeight: false,
|
|
170
|
+
layout: 'vertical',
|
|
171
|
+
customFont: false
|
|
172
|
+
};
|
|
173
|
+
return AffiliateProductItem;
|
|
174
|
+
}(_react["default"].Component);
|
|
175
|
+
|
|
176
|
+
var _default = AffiliateProductItem;
|
|
177
|
+
exports["default"] = _default;
|