@fonixtree/magic-design 2.0.190 → 3.0.3
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/magic-box-iconfont.css +3 -3
- package/es/assets/fonts/magic-box-iconfont.css.bak +3 -3
- 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 +2 -8
- package/es/assets/images/layout-icon/banner-slide-layout1.png +0 -0
- package/es/assets/images/layout-icon/banner-slide-layout2.png +0 -0
- package/es/assets/images/layout-icon/bundleLayout1.png +0 -0
- package/es/assets/images/layout-icon/center.png +0 -0
- package/es/assets/images/layout-icon/imageGalleryLayout2.png +0 -0
- package/es/assets/images/layout-icon/imageGalleryLayout3.png +0 -0
- package/es/assets/images/layout-icon/imageTextLeft.svg +6 -0
- package/es/assets/images/layout-icon/imageTextRight.svg +6 -0
- package/es/assets/images/layout-icon/interestLayout1.png +0 -0
- package/es/assets/images/layout-icon/layout-imagetext-m1-1.png +0 -0
- package/es/assets/images/layout-icon/layout-imagetext-m1-2.png +0 -0
- package/es/assets/images/layout-icon/layout-imagetext-m1-3.png +0 -0
- package/es/assets/images/layout-icon/layout-imagetext-m2.png +0 -0
- package/es/assets/images/layout-icon/layout-imagetext-m3.png +0 -0
- package/es/assets/images/layout-icon/layout-imagetext-p1.png +0 -0
- package/es/assets/images/layout-icon/layout-imagetext-p2.png +0 -0
- package/es/assets/images/layout-icon/layout-imagetext-p3.png +0 -0
- package/es/assets/images/layout-icon/layout-imagetext-p4.png +0 -0
- package/es/assets/images/layout-icon/layout-recommend-2.png +0 -0
- package/es/assets/images/layout-icon/layout-recommend-3.png +0 -0
- package/es/assets/images/layout-icon/layout-recommend-4.png +0 -0
- package/es/assets/images/layout-icon/layout-recommend-5.png +0 -0
- package/es/assets/images/layout-icon/layout-recommend-mobile-1.png +0 -0
- package/es/assets/images/layout-icon/layout-recommend-mobile-2.png +0 -0
- package/es/assets/images/layout-icon/layout-recommend-mobile-3.png +0 -0
- package/es/assets/images/layout-icon/layout-recommend-mobile-4.png +0 -0
- package/es/assets/images/layout-icon/layout-search.png +0 -0
- package/es/assets/images/layout-icon/left.png +0 -0
- package/es/assets/images/layout-icon/locationLayout.png +0 -0
- package/es/assets/images/layout-icon/merchantSalesLayout1.png +0 -0
- package/es/assets/images/layout-icon/monpaySignBoardLayout1.png +0 -0
- package/es/assets/images/layout-icon/right.png +0 -0
- package/es/assets/images/layout-icon/textLayout1.png +0 -0
- package/es/assets/less/common.less +3 -40
- package/es/common/Field/index.js +2 -5
- package/es/common/Field/index.less +0 -5
- package/es/common/LinkModal/index.js +0 -7
- package/es/common/MyModal/index.less +4 -12
- package/es/composite-comp/bol/components/Location/defaultJSON.js +60 -0
- package/{lib/composite-comp/public → es/composite-comp/bol}/components/Location/index.js +20 -4
- package/es/composite-comp/bol/components/Location/index.less +15 -0
- package/{lib/composite-comp/ashita/components/WalletAshita → es/composite-comp/bol/components/Wallet}/defaultJSON.js +1 -1
- package/{lib/composite-comp/public → es/composite-comp/bol}/config-panels/LocationConfig/index.js +52 -10
- package/{lib/composite-comp/ashita/config-panels/WalletAshitaConfig → es/composite-comp/bol/config-panels/WalletConfig}/WalletConfigImageGroup/index.js +1 -1
- package/es/composite-comp/common/components/MonpayProductItem/index.js +3 -3
- package/es/composite-comp/common/components/MonpayProductItem/index.less +6 -6
- package/es/composite-comp/dito/components/SearchBar/mobile/index.less +0 -1
- package/es/composite-comp/dito/config-panels/BargainConfig/FlashDealConfigContent/index.js +1 -1
- package/es/composite-comp/monpay/components/MonpayFlashDeal/index.js +5 -1
- package/es/composite-comp/monpay/components/MonpayFlashDeal/mobile/index.js +1 -2
- package/es/composite-comp/monpay/components/MonpayFlashDeal/pc/imgs/defImg.png +0 -0
- package/es/composite-comp/monpay/components/MonpayFlashDeal/pc/imgs/defImg1.png +0 -0
- package/es/composite-comp/monpay/components/MonpayFlashDeal/pc/imgs/defImg2.png +0 -0
- package/es/composite-comp/monpay/components/MonpayFlashDeal/pc/imgs/defImg3.png +0 -0
- package/es/composite-comp/monpay/components/MonpayFlashDeal/pc/index.js +584 -0
- package/es/composite-comp/monpay/components/MonpayFlashDeal/pc/index.less +150 -0
- package/es/composite-comp/monpay/components/MonpayRecommend/defaultJSON.js +8 -8
- package/es/composite-comp/monpay/components/MonpayRecommend/index.js +5 -1
- package/es/composite-comp/monpay/components/MonpayRecommend/mobile/index.js +14 -15
- package/es/composite-comp/monpay/components/MonpayRecommend/mobile/index.less +0 -11
- package/es/composite-comp/monpay/components/MonpayRecommend/pc/index.js +809 -0
- package/es/composite-comp/monpay/components/MonpayRecommend/pc/index.less +129 -0
- package/es/constants/component-types.js +13 -23
- package/es/constants/index.js +2 -12
- package/es/constants/layout.js +16 -29
- package/es/core/Designer/ConfigPanel/TerminalSelect/index.js +1 -1
- package/es/core/Designer/QuickMenuBar/index.js +1 -1
- package/es/decorator/compositeDecorator.js +1 -27
- package/es/locale/en/en.json +1 -16
- package/es/locale/es/es.json +1 -16
- package/es/locale/index.js +1 -5
- package/es/locale/mn/mn.json +1 -16
- package/es/meta-comp/components/Text/index.less +0 -6
- package/es/meta-comp/config-panels/ButtonConfig/index.js +8 -7
- package/es/utils/androidUtil.js +1 -2
- package/es/utils/businessUtil.js +2 -27
- package/es/utils/commonUtil.js +10 -26
- package/es/utils/coreUtil.js +1 -3
- package/lib/assets/fonts/magic-box-iconfont.css +3 -3
- package/lib/assets/fonts/magic-box-iconfont.css.bak +3 -3
- 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 +2 -8
- package/lib/assets/images/layout-icon/banner-slide-layout1.png +0 -0
- package/lib/assets/images/layout-icon/banner-slide-layout2.png +0 -0
- package/lib/assets/images/layout-icon/bundleLayout1.png +0 -0
- package/lib/assets/images/layout-icon/center.png +0 -0
- package/lib/assets/images/layout-icon/imageGalleryLayout2.png +0 -0
- package/lib/assets/images/layout-icon/imageGalleryLayout3.png +0 -0
- package/lib/assets/images/layout-icon/imageTextLeft.svg +6 -0
- package/lib/assets/images/layout-icon/imageTextRight.svg +6 -0
- package/lib/assets/images/layout-icon/interestLayout1.png +0 -0
- package/lib/assets/images/layout-icon/layout-imagetext-m1-1.png +0 -0
- package/lib/assets/images/layout-icon/layout-imagetext-m1-2.png +0 -0
- package/lib/assets/images/layout-icon/layout-imagetext-m1-3.png +0 -0
- package/lib/assets/images/layout-icon/layout-imagetext-m2.png +0 -0
- package/lib/assets/images/layout-icon/layout-imagetext-m3.png +0 -0
- package/lib/assets/images/layout-icon/layout-imagetext-p1.png +0 -0
- package/lib/assets/images/layout-icon/layout-imagetext-p2.png +0 -0
- package/lib/assets/images/layout-icon/layout-imagetext-p3.png +0 -0
- package/lib/assets/images/layout-icon/layout-imagetext-p4.png +0 -0
- package/lib/assets/images/layout-icon/layout-recommend-2.png +0 -0
- package/lib/assets/images/layout-icon/layout-recommend-3.png +0 -0
- package/lib/assets/images/layout-icon/layout-recommend-4.png +0 -0
- package/lib/assets/images/layout-icon/layout-recommend-5.png +0 -0
- package/lib/assets/images/layout-icon/layout-recommend-mobile-1.png +0 -0
- package/lib/assets/images/layout-icon/layout-recommend-mobile-2.png +0 -0
- package/lib/assets/images/layout-icon/layout-recommend-mobile-3.png +0 -0
- package/lib/assets/images/layout-icon/layout-recommend-mobile-4.png +0 -0
- package/lib/assets/images/layout-icon/layout-search.png +0 -0
- package/lib/assets/images/layout-icon/left.png +0 -0
- package/lib/assets/images/layout-icon/locationLayout.png +0 -0
- package/lib/assets/images/layout-icon/merchantSalesLayout1.png +0 -0
- package/lib/assets/images/layout-icon/monpaySignBoardLayout1.png +0 -0
- package/lib/assets/images/layout-icon/right.png +0 -0
- package/lib/assets/images/layout-icon/textLayout1.png +0 -0
- package/lib/assets/less/common.less +3 -40
- package/lib/common/Field/index.js +2 -5
- package/lib/common/Field/index.less +0 -5
- package/lib/common/LinkModal/index.js +0 -7
- package/lib/common/MyModal/index.less +4 -12
- package/lib/composite-comp/bol/components/Location/defaultJSON.js +60 -0
- package/{es/composite-comp/public → lib/composite-comp/bol}/components/Location/index.js +20 -4
- package/lib/composite-comp/bol/components/Location/index.less +15 -0
- package/{es/composite-comp/ashita/components/WalletAshita → lib/composite-comp/bol/components/Wallet}/defaultJSON.js +1 -1
- package/{es/composite-comp/public → lib/composite-comp/bol}/config-panels/LocationConfig/index.js +52 -10
- package/{es/composite-comp/ashita/config-panels/WalletAshitaConfig → lib/composite-comp/bol/config-panels/WalletConfig}/WalletConfigImageGroup/index.js +1 -1
- package/lib/composite-comp/common/components/MonpayProductItem/index.js +3 -3
- package/lib/composite-comp/common/components/MonpayProductItem/index.less +6 -6
- package/lib/composite-comp/dito/components/SearchBar/mobile/index.less +0 -1
- package/lib/composite-comp/dito/config-panels/BargainConfig/FlashDealConfigContent/index.js +1 -1
- package/lib/composite-comp/monpay/components/MonpayFlashDeal/index.js +5 -1
- package/lib/composite-comp/monpay/components/MonpayFlashDeal/mobile/index.js +1 -2
- package/lib/composite-comp/monpay/components/MonpayFlashDeal/pc/imgs/defImg.png +0 -0
- package/lib/composite-comp/monpay/components/MonpayFlashDeal/pc/imgs/defImg1.png +0 -0
- package/lib/composite-comp/monpay/components/MonpayFlashDeal/pc/imgs/defImg2.png +0 -0
- package/lib/composite-comp/monpay/components/MonpayFlashDeal/pc/imgs/defImg3.png +0 -0
- package/lib/composite-comp/monpay/components/MonpayFlashDeal/pc/index.js +584 -0
- package/lib/composite-comp/monpay/components/MonpayFlashDeal/pc/index.less +150 -0
- package/lib/composite-comp/monpay/components/MonpayRecommend/defaultJSON.js +8 -8
- package/lib/composite-comp/monpay/components/MonpayRecommend/index.js +5 -1
- package/lib/composite-comp/monpay/components/MonpayRecommend/mobile/index.js +14 -15
- package/lib/composite-comp/monpay/components/MonpayRecommend/mobile/index.less +0 -11
- package/lib/composite-comp/monpay/components/MonpayRecommend/pc/index.js +809 -0
- package/lib/composite-comp/monpay/components/MonpayRecommend/pc/index.less +129 -0
- package/lib/constants/component-types.js +13 -23
- package/lib/constants/index.js +2 -12
- package/lib/constants/layout.js +16 -29
- package/lib/core/Designer/ConfigPanel/TerminalSelect/index.js +1 -1
- package/lib/core/Designer/QuickMenuBar/index.js +1 -1
- package/lib/decorator/compositeDecorator.js +1 -27
- package/lib/locale/en/en.json +1 -16
- package/lib/locale/es/es.json +1 -16
- package/lib/locale/index.js +1 -5
- package/lib/locale/mn/mn.json +1 -16
- package/lib/meta-comp/components/Text/index.less +0 -6
- package/lib/meta-comp/config-panels/ButtonConfig/index.js +8 -7
- package/lib/utils/androidUtil.js +1 -2
- package/lib/utils/businessUtil.js +2 -27
- package/lib/utils/commonUtil.js +10 -26
- package/lib/utils/coreUtil.js +1 -3
- package/package.json +1 -1
- package/es/assets/images/layout-icon/layout-imagetext-p5.png +0 -0
- package/es/assets/images/layout-icon/storesLayout1.png +0 -0
- package/es/assets/images/layout-icon/storesLayout2.png +0 -0
- package/es/common/LinkModal/BizType/index.js +0 -274
- package/es/composite-comp/ashita/components/WalletAshita/index.js +0 -84
- package/es/composite-comp/public/components/Location/defaultJSON.js +0 -104
- package/es/composite-comp/public/components/Location/mobile/img/img-circle.png +0 -0
- package/es/composite-comp/public/components/Location/mobile/index.js +0 -133
- package/es/composite-comp/public/components/Location/mobile/index.less +0 -21
- package/es/composite-comp/public/components/Stores/defaultJSON.js +0 -348
- package/es/composite-comp/public/components/Stores/index.js +0 -86
- package/es/composite-comp/public/components/Stores/mobile/StoreItem/index.js +0 -250
- package/es/composite-comp/public/components/Stores/mobile/StoreItem/index.less +0 -81
- package/es/composite-comp/public/components/Stores/mobile/index.js +0 -335
- package/es/composite-comp/public/components/Stores/mobile/index.less +0 -33
- package/es/composite-comp/public/components/Wallet/defaultJSON.js +0 -149
- package/es/composite-comp/public/components/Wallet/mobile/index.js +0 -353
- package/es/composite-comp/public/components/Wallet/mobile/index.less +0 -22
- package/es/composite-comp/public/config-panels/LocationConfig/ConfigContent/index.js +0 -153
- package/es/composite-comp/public/config-panels/LocationConfig/index.less +0 -17
- package/es/composite-comp/public/config-panels/StoresConfig/ConfigContent/index.js +0 -176
- package/es/composite-comp/public/config-panels/StoresConfig/ConfigTitle/index.js +0 -103
- package/es/composite-comp/public/config-panels/StoresConfig/index.js +0 -134
- package/es/composite-comp/public/config-panels/WalletConfig/index.js +0 -61
- package/es/locale/ar/ar.json +0 -362
- package/es/meta-comp/config-panels/ButtonConfig/BorderRadiusInput/index.js +0 -207
- package/es/meta-comp/config-panels/ButtonConfig/BorderRadiusInput/index.less +0 -81
- package/lib/assets/images/layout-icon/layout-imagetext-p5.png +0 -0
- package/lib/assets/images/layout-icon/storesLayout1.png +0 -0
- package/lib/assets/images/layout-icon/storesLayout2.png +0 -0
- package/lib/common/LinkModal/BizType/index.js +0 -274
- package/lib/composite-comp/ashita/components/WalletAshita/index.js +0 -84
- package/lib/composite-comp/ashita/config-panels/WalletAshitaConfig/WalletConfigImageGroup/index.less +0 -0
- package/lib/composite-comp/nuri/config-panels/WalletNuriConfig/GroupList/defaultImg.png +0 -0
- package/lib/composite-comp/nuri/config-panels/WalletNuriConfig/GroupList/index.js +0 -100
- package/lib/composite-comp/nuri/config-panels/WalletNuriConfig/GroupList/index.less +0 -72
- package/lib/composite-comp/nuri/config-panels/WalletNuriConfig/WalletNuriConfigImageGroup/index.js +0 -123
- package/lib/composite-comp/nuri/config-panels/WalletNuriConfig/WalletNuriConfigImageGroup/index.less +0 -0
- package/lib/composite-comp/nuri/config-panels/WalletNuriConfig/imgs/defaultImg.png +0 -0
- package/lib/composite-comp/nuri/second-config-panels/WalletNuriSecondConfig/index.js +0 -152
- package/lib/composite-comp/public/components/Location/defaultJSON.js +0 -104
- package/lib/composite-comp/public/components/Location/mobile/img/img-circle.png +0 -0
- package/lib/composite-comp/public/components/Location/mobile/index.js +0 -133
- package/lib/composite-comp/public/components/Location/mobile/index.less +0 -21
- package/lib/composite-comp/public/components/Stores/defaultJSON.js +0 -348
- package/lib/composite-comp/public/components/Stores/index.js +0 -86
- package/lib/composite-comp/public/components/Stores/mobile/StoreItem/index.js +0 -250
- package/lib/composite-comp/public/components/Stores/mobile/StoreItem/index.less +0 -81
- package/lib/composite-comp/public/components/Stores/mobile/index.js +0 -335
- package/lib/composite-comp/public/components/Stores/mobile/index.less +0 -33
- package/lib/composite-comp/public/components/Wallet/defaultJSON.js +0 -149
- package/lib/composite-comp/public/components/Wallet/mobile/index.js +0 -353
- package/lib/composite-comp/public/components/Wallet/mobile/index.less +0 -22
- package/lib/composite-comp/public/config-panels/LocationConfig/ConfigContent/index.js +0 -153
- package/lib/composite-comp/public/config-panels/LocationConfig/index.less +0 -17
- package/lib/composite-comp/public/config-panels/StoresConfig/ConfigContent/index.js +0 -176
- package/lib/composite-comp/public/config-panels/StoresConfig/ConfigContent/index.less +0 -0
- package/lib/composite-comp/public/config-panels/StoresConfig/ConfigTitle/index.js +0 -103
- package/lib/composite-comp/public/config-panels/StoresConfig/index.js +0 -134
- package/lib/composite-comp/public/config-panels/WalletConfig/GroupList/defaultImg.png +0 -0
- package/lib/composite-comp/public/config-panels/WalletConfig/GroupList/index.js +0 -100
- package/lib/composite-comp/public/config-panels/WalletConfig/GroupList/index.less +0 -72
- package/lib/composite-comp/public/config-panels/WalletConfig/WalletConfigImageGroup/index.js +0 -123
- package/lib/composite-comp/public/config-panels/WalletConfig/WalletConfigImageGroup/index.less +0 -0
- package/lib/composite-comp/public/config-panels/WalletConfig/imgs/defaultImg.png +0 -0
- package/lib/composite-comp/public/config-panels/WalletConfig/index.js +0 -61
- package/lib/composite-comp/public/second-config-panels/WalletSecondConfig/index.js +0 -152
- package/lib/locale/ar/ar.json +0 -362
- package/lib/meta-comp/config-panels/ButtonConfig/BorderRadiusInput/index.js +0 -207
- package/lib/meta-comp/config-panels/ButtonConfig/BorderRadiusInput/index.less +0 -81
- /package/es/composite-comp/{public → bol}/components/Wallet/index.js +0 -0
- /package/es/composite-comp/{ashita/components/WalletAshita → bol/components/Wallet}/mobile/index.js +0 -0
- /package/es/composite-comp/{ashita/components/WalletAshita → bol/components/Wallet}/mobile/index.less +0 -0
- /package/es/composite-comp/{ashita/components/WalletAshita → bol/components/Wallet}/pc/index.js +0 -0
- /package/es/composite-comp/{ashita/components/WalletAshita → bol/components/Wallet}/pc/index.less +0 -0
- /package/es/composite-comp/{nuri → bol}/components/WalletNuri/defaultJSON.js +0 -0
- /package/es/composite-comp/{nuri → bol}/components/WalletNuri/index.js +0 -0
- /package/es/composite-comp/{nuri → bol}/components/WalletNuri/mobile/index.js +0 -0
- /package/es/composite-comp/{nuri → bol}/components/WalletNuri/mobile/index.less +0 -0
- /package/es/composite-comp/{ashita/config-panels/WalletAshitaConfig → bol/config-panels/WalletConfig}/WalletConfigContent/index.js +0 -0
- /package/es/composite-comp/{ashita/config-panels/WalletAshitaConfig → bol/config-panels/WalletConfig}/WalletConfigContent/index.less +0 -0
- /package/es/composite-comp/{ashita/config-panels/WalletAshitaConfig → bol/config-panels/WalletConfig}/WalletConfigImageGroup/index.less +0 -0
- /package/es/composite-comp/{ashita/config-panels/WalletAshitaConfig → bol/config-panels/WalletConfig}/WalletConfigSetting/index.js +0 -0
- /package/es/composite-comp/{ashita/config-panels/WalletAshitaConfig → bol/config-panels/WalletConfig}/WalletConfigSetting/index.less +0 -0
- /package/es/composite-comp/{ashita/config-panels/WalletAshitaConfig → bol/config-panels/WalletConfig}/imgs/defaultImg.png +0 -0
- /package/es/composite-comp/{ashita/config-panels/WalletAshitaConfig → bol/config-panels/WalletConfig}/index.js +0 -0
- /package/es/composite-comp/{nuri → bol}/config-panels/WalletNuriConfig/GroupList/defaultImg.png +0 -0
- /package/es/composite-comp/{nuri → bol}/config-panels/WalletNuriConfig/GroupList/index.js +0 -0
- /package/es/composite-comp/{nuri → bol}/config-panels/WalletNuriConfig/GroupList/index.less +0 -0
- /package/es/composite-comp/{nuri → bol}/config-panels/WalletNuriConfig/WalletNuriConfigImageGroup/index.js +0 -0
- /package/es/composite-comp/{nuri → bol}/config-panels/WalletNuriConfig/WalletNuriConfigImageGroup/index.less +0 -0
- /package/es/composite-comp/{nuri → bol}/config-panels/WalletNuriConfig/imgs/defaultImg.png +0 -0
- /package/es/composite-comp/{nuri → bol}/config-panels/WalletNuriConfig/index.js +0 -0
- /package/es/composite-comp/{nuri → bol}/second-config-panels/WalletNuriSecondConfig/index.js +0 -0
- /package/es/composite-comp/{ashita/second-config-panels/WalletAshitaSecondConfig → bol/second-config-panels/WalletSecondConfig}/index.js +0 -0
- /package/es/composite-comp/{ashita/second-config-panels/WalletAshitaSecondConfig → bol/second-config-panels/WalletSecondConfig}/index.less +0 -0
- /package/es/{assets/images/common/product.png → composite-comp/monpay/components/MonpayRecommend/pc/imgs/card.png} +0 -0
- /package/lib/composite-comp/{public → bol}/components/Wallet/index.js +0 -0
- /package/lib/composite-comp/{ashita/components/WalletAshita → bol/components/Wallet}/mobile/index.js +0 -0
- /package/lib/composite-comp/{ashita/components/WalletAshita → bol/components/Wallet}/mobile/index.less +0 -0
- /package/lib/composite-comp/{ashita/components/WalletAshita → bol/components/Wallet}/pc/index.js +0 -0
- /package/lib/composite-comp/{ashita/components/WalletAshita → bol/components/Wallet}/pc/index.less +0 -0
- /package/lib/composite-comp/{nuri → bol}/components/WalletNuri/defaultJSON.js +0 -0
- /package/lib/composite-comp/{nuri → bol}/components/WalletNuri/index.js +0 -0
- /package/lib/composite-comp/{nuri → bol}/components/WalletNuri/mobile/index.js +0 -0
- /package/lib/composite-comp/{nuri → bol}/components/WalletNuri/mobile/index.less +0 -0
- /package/lib/composite-comp/{ashita/config-panels/WalletAshitaConfig → bol/config-panels/WalletConfig}/WalletConfigContent/index.js +0 -0
- /package/{es/composite-comp/public/config-panels/StoresConfig/ConfigContent → lib/composite-comp/bol/config-panels/WalletConfig/WalletConfigContent}/index.less +0 -0
- /package/{es/composite-comp/public → lib/composite-comp/bol}/config-panels/WalletConfig/WalletConfigImageGroup/index.less +0 -0
- /package/lib/composite-comp/{ashita/config-panels/WalletAshitaConfig → bol/config-panels/WalletConfig}/WalletConfigSetting/index.js +0 -0
- /package/lib/composite-comp/{ashita/config-panels/WalletAshitaConfig → bol/config-panels/WalletConfig}/WalletConfigSetting/index.less +0 -0
- /package/{es/composite-comp/public/config-panels/WalletConfig/GroupList → lib/composite-comp/bol/config-panels/WalletConfig/imgs}/defaultImg.png +0 -0
- /package/lib/composite-comp/{ashita/config-panels/WalletAshitaConfig → bol/config-panels/WalletConfig}/index.js +0 -0
- /package/{es/composite-comp/public/config-panels/WalletConfig/imgs → lib/composite-comp/bol/config-panels/WalletNuriConfig/GroupList}/defaultImg.png +0 -0
- /package/{es/composite-comp/public/config-panels/WalletConfig → lib/composite-comp/bol/config-panels/WalletNuriConfig}/GroupList/index.js +0 -0
- /package/{es/composite-comp/public/config-panels/WalletConfig → lib/composite-comp/bol/config-panels/WalletNuriConfig}/GroupList/index.less +0 -0
- /package/{es/composite-comp/public/config-panels/WalletConfig/WalletConfigImageGroup → lib/composite-comp/bol/config-panels/WalletNuriConfig/WalletNuriConfigImageGroup}/index.js +0 -0
- /package/lib/composite-comp/{ashita/config-panels/WalletAshitaConfig/WalletConfigContent → bol/config-panels/WalletNuriConfig/WalletNuriConfigImageGroup}/index.less +0 -0
- /package/lib/composite-comp/{ashita/config-panels/WalletAshitaConfig → bol/config-panels/WalletNuriConfig}/imgs/defaultImg.png +0 -0
- /package/lib/composite-comp/{nuri → bol}/config-panels/WalletNuriConfig/index.js +0 -0
- /package/{es/composite-comp/public/second-config-panels/WalletSecondConfig → lib/composite-comp/bol/second-config-panels/WalletNuriSecondConfig}/index.js +0 -0
- /package/lib/composite-comp/{ashita/second-config-panels/WalletAshitaSecondConfig → bol/second-config-panels/WalletSecondConfig}/index.js +0 -0
- /package/lib/composite-comp/{ashita/second-config-panels/WalletAshitaSecondConfig → bol/second-config-panels/WalletSecondConfig}/index.less +0 -0
- /package/lib/{assets/images/common/product.png → composite-comp/monpay/components/MonpayRecommend/pc/imgs/card.png} +0 -0
|
@@ -1,348 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.getDefaultJSON = void 0;
|
|
7
|
-
|
|
8
|
-
var _uuid = require("uuid");
|
|
9
|
-
|
|
10
|
-
var _constants = require("../../../../constants");
|
|
11
|
-
|
|
12
|
-
var _index = require("../../../../assets/images/base64/index");
|
|
13
|
-
|
|
14
|
-
var getDefaultJSON = function getDefaultJSON() {
|
|
15
|
-
var _a;
|
|
16
|
-
|
|
17
|
-
var groupId = (0, _uuid.v4)();
|
|
18
|
-
var defaultFontFamily = _constants.projectFontFamily[(_a = window.systemParams) === null || _a === void 0 ? void 0 : _a.projectCode] || 'Open Sans';
|
|
19
|
-
return {
|
|
20
|
-
id: groupId,
|
|
21
|
-
type: 'STORES',
|
|
22
|
-
title: {
|
|
23
|
-
name: {
|
|
24
|
-
id: (0, _uuid.v4)(),
|
|
25
|
-
open: true,
|
|
26
|
-
type: 'TEXT',
|
|
27
|
-
specialContent: [],
|
|
28
|
-
text: 'Free Delivery',
|
|
29
|
-
content: {
|
|
30
|
-
sizeType: 'Customize font styles',
|
|
31
|
-
fontFamily: defaultFontFamily,
|
|
32
|
-
fontWeight: 600,
|
|
33
|
-
fontSize: 14,
|
|
34
|
-
color: '#1B1B1B'
|
|
35
|
-
},
|
|
36
|
-
underline: {
|
|
37
|
-
open: false,
|
|
38
|
-
textDecorationColor: '',
|
|
39
|
-
textDecorationStyle: 'solid'
|
|
40
|
-
},
|
|
41
|
-
vertical: {
|
|
42
|
-
open: false,
|
|
43
|
-
lineHeight: 18
|
|
44
|
-
}
|
|
45
|
-
},
|
|
46
|
-
seeAll: {
|
|
47
|
-
id: (0, _uuid.v4)(),
|
|
48
|
-
open: true,
|
|
49
|
-
type: 'BUTTON',
|
|
50
|
-
text: 'See All',
|
|
51
|
-
content: {
|
|
52
|
-
url: '',
|
|
53
|
-
backgroundColor: 'transparent'
|
|
54
|
-
},
|
|
55
|
-
buttonText: {
|
|
56
|
-
sizeType: 'Customize font styles',
|
|
57
|
-
fontFamily: defaultFontFamily,
|
|
58
|
-
fontWeight: 400,
|
|
59
|
-
fontSize: 14,
|
|
60
|
-
fontStyle: 'normal',
|
|
61
|
-
color: '#61096B'
|
|
62
|
-
},
|
|
63
|
-
buttonBorder: {
|
|
64
|
-
open: true,
|
|
65
|
-
borderColor: '',
|
|
66
|
-
borderRadius: 0
|
|
67
|
-
},
|
|
68
|
-
spacing: {
|
|
69
|
-
mobile: {
|
|
70
|
-
paddingTop: 0,
|
|
71
|
-
paddingBottom: 0,
|
|
72
|
-
paddingLeft: 5,
|
|
73
|
-
paddingRight: 5
|
|
74
|
-
}
|
|
75
|
-
},
|
|
76
|
-
buttonIcon: {
|
|
77
|
-
iconUrl: '',
|
|
78
|
-
layout: 'right'
|
|
79
|
-
},
|
|
80
|
-
hover: null
|
|
81
|
-
}
|
|
82
|
-
},
|
|
83
|
-
content: {
|
|
84
|
-
storeName: {
|
|
85
|
-
id: (0, _uuid.v4)(),
|
|
86
|
-
open: true,
|
|
87
|
-
type: 'TEXT',
|
|
88
|
-
specialContent: [],
|
|
89
|
-
text: '',
|
|
90
|
-
content: {
|
|
91
|
-
sizeType: 'Customize font styles',
|
|
92
|
-
fontFamily: defaultFontFamily,
|
|
93
|
-
fontWeight: 600,
|
|
94
|
-
fontSize: 14,
|
|
95
|
-
color: '#1B1B1B',
|
|
96
|
-
urlDisabled: true
|
|
97
|
-
},
|
|
98
|
-
underline: {
|
|
99
|
-
open: false,
|
|
100
|
-
textDecorationColor: '',
|
|
101
|
-
textDecorationStyle: 'solid'
|
|
102
|
-
},
|
|
103
|
-
vertical: {
|
|
104
|
-
open: false,
|
|
105
|
-
lineHeight: 18
|
|
106
|
-
}
|
|
107
|
-
},
|
|
108
|
-
storeDesc: {
|
|
109
|
-
id: (0, _uuid.v4)(),
|
|
110
|
-
open: true,
|
|
111
|
-
type: 'TEXT',
|
|
112
|
-
specialContent: [],
|
|
113
|
-
text: '',
|
|
114
|
-
content: {
|
|
115
|
-
sizeType: 'Customize font styles',
|
|
116
|
-
fontFamily: defaultFontFamily,
|
|
117
|
-
fontWeight: 400,
|
|
118
|
-
fontSize: 12,
|
|
119
|
-
color: '#545454',
|
|
120
|
-
urlDisabled: true
|
|
121
|
-
},
|
|
122
|
-
underline: {
|
|
123
|
-
open: false,
|
|
124
|
-
textDecorationColor: '',
|
|
125
|
-
textDecorationStyle: 'solid'
|
|
126
|
-
},
|
|
127
|
-
vertical: {
|
|
128
|
-
open: false,
|
|
129
|
-
lineHeight: 18
|
|
130
|
-
}
|
|
131
|
-
},
|
|
132
|
-
freeDeliveryLabel: {
|
|
133
|
-
id: (0, _uuid.v4)(),
|
|
134
|
-
open: true,
|
|
135
|
-
type: 'BUTTON',
|
|
136
|
-
text: 'Free delivery',
|
|
137
|
-
content: {
|
|
138
|
-
url: '',
|
|
139
|
-
backgroundColor: '#86BF31'
|
|
140
|
-
},
|
|
141
|
-
buttonText: {
|
|
142
|
-
sizeType: 'Customize font styles',
|
|
143
|
-
fontFamily: defaultFontFamily,
|
|
144
|
-
fontWeight: 600,
|
|
145
|
-
fontSize: 12,
|
|
146
|
-
fontStyle: 'normal',
|
|
147
|
-
color: '#fff'
|
|
148
|
-
},
|
|
149
|
-
buttonBorder: {
|
|
150
|
-
open: true,
|
|
151
|
-
borderColor: '',
|
|
152
|
-
borderRadius: '0px 5px 5px 0px'
|
|
153
|
-
},
|
|
154
|
-
spacing: {
|
|
155
|
-
mobile: {
|
|
156
|
-
paddingTop: 5,
|
|
157
|
-
paddingBottom: 5,
|
|
158
|
-
paddingLeft: 5,
|
|
159
|
-
paddingRight: 5
|
|
160
|
-
}
|
|
161
|
-
},
|
|
162
|
-
buttonIcon: {
|
|
163
|
-
iconUrl: '',
|
|
164
|
-
layout: 'right'
|
|
165
|
-
},
|
|
166
|
-
hover: null
|
|
167
|
-
},
|
|
168
|
-
minOrder: {
|
|
169
|
-
id: (0, _uuid.v4)(),
|
|
170
|
-
open: true,
|
|
171
|
-
type: 'TEXT',
|
|
172
|
-
specialContent: [],
|
|
173
|
-
text: '',
|
|
174
|
-
content: {
|
|
175
|
-
sizeType: 'Customize font styles',
|
|
176
|
-
fontFamily: defaultFontFamily,
|
|
177
|
-
fontWeight: 400,
|
|
178
|
-
fontSize: 12,
|
|
179
|
-
color: '#545454',
|
|
180
|
-
urlDisabled: true
|
|
181
|
-
},
|
|
182
|
-
underline: {
|
|
183
|
-
open: false,
|
|
184
|
-
textDecorationColor: '',
|
|
185
|
-
textDecorationStyle: 'solid'
|
|
186
|
-
},
|
|
187
|
-
vertical: {
|
|
188
|
-
open: false,
|
|
189
|
-
lineHeight: 18
|
|
190
|
-
}
|
|
191
|
-
},
|
|
192
|
-
evaluateScore: {
|
|
193
|
-
id: (0, _uuid.v4)(),
|
|
194
|
-
open: true,
|
|
195
|
-
type: 'BUTTON',
|
|
196
|
-
text: 'Button',
|
|
197
|
-
content: {
|
|
198
|
-
url: '',
|
|
199
|
-
backgroundColor: 'transparent'
|
|
200
|
-
},
|
|
201
|
-
buttonText: {
|
|
202
|
-
sizeType: 'Customize font styles',
|
|
203
|
-
fontFamily: defaultFontFamily,
|
|
204
|
-
fontWeight: 400,
|
|
205
|
-
fontSize: 12,
|
|
206
|
-
fontStyle: 'normal',
|
|
207
|
-
color: '#545454'
|
|
208
|
-
},
|
|
209
|
-
buttonBorder: {
|
|
210
|
-
open: true,
|
|
211
|
-
borderColor: '',
|
|
212
|
-
borderRadius: 0
|
|
213
|
-
},
|
|
214
|
-
spacing: {
|
|
215
|
-
mobile: {
|
|
216
|
-
paddingTop: 0,
|
|
217
|
-
paddingBottom: 0,
|
|
218
|
-
paddingLeft: 0,
|
|
219
|
-
paddingRight: 0
|
|
220
|
-
}
|
|
221
|
-
},
|
|
222
|
-
buttonIcon: {
|
|
223
|
-
iconUrl: _index.starIcon,
|
|
224
|
-
layout: 'left'
|
|
225
|
-
},
|
|
226
|
-
hover: null
|
|
227
|
-
},
|
|
228
|
-
sold: {
|
|
229
|
-
id: (0, _uuid.v4)(),
|
|
230
|
-
open: true,
|
|
231
|
-
type: 'TEXT',
|
|
232
|
-
specialContent: [],
|
|
233
|
-
text: '',
|
|
234
|
-
content: {
|
|
235
|
-
sizeType: 'Customize font styles',
|
|
236
|
-
fontFamily: defaultFontFamily,
|
|
237
|
-
fontWeight: 400,
|
|
238
|
-
fontSize: 12,
|
|
239
|
-
color: '#545454',
|
|
240
|
-
urlDisabled: true
|
|
241
|
-
},
|
|
242
|
-
underline: {
|
|
243
|
-
open: false,
|
|
244
|
-
textDecorationColor: '',
|
|
245
|
-
textDecorationStyle: 'solid'
|
|
246
|
-
},
|
|
247
|
-
vertical: {
|
|
248
|
-
open: false,
|
|
249
|
-
lineHeight: 18
|
|
250
|
-
}
|
|
251
|
-
},
|
|
252
|
-
deliveryTime: {
|
|
253
|
-
id: (0, _uuid.v4)(),
|
|
254
|
-
open: true,
|
|
255
|
-
type: 'BUTTON',
|
|
256
|
-
text: 'Button',
|
|
257
|
-
content: {
|
|
258
|
-
url: '',
|
|
259
|
-
backgroundColor: 'transparent'
|
|
260
|
-
},
|
|
261
|
-
buttonText: {
|
|
262
|
-
sizeType: 'Customize font styles',
|
|
263
|
-
fontFamily: defaultFontFamily,
|
|
264
|
-
fontWeight: 400,
|
|
265
|
-
fontSize: 12,
|
|
266
|
-
fontStyle: 'normal',
|
|
267
|
-
color: '#545454'
|
|
268
|
-
},
|
|
269
|
-
buttonBorder: {
|
|
270
|
-
open: true,
|
|
271
|
-
borderColor: '',
|
|
272
|
-
borderRadius: 0
|
|
273
|
-
},
|
|
274
|
-
spacing: {
|
|
275
|
-
mobile: {
|
|
276
|
-
paddingTop: 0,
|
|
277
|
-
paddingBottom: 0,
|
|
278
|
-
paddingLeft: 0,
|
|
279
|
-
paddingRight: 0
|
|
280
|
-
}
|
|
281
|
-
},
|
|
282
|
-
buttonIcon: {
|
|
283
|
-
iconUrl: _index.timeIcon,
|
|
284
|
-
layout: 'left'
|
|
285
|
-
},
|
|
286
|
-
hover: null
|
|
287
|
-
},
|
|
288
|
-
distance: {
|
|
289
|
-
id: (0, _uuid.v4)(),
|
|
290
|
-
open: true,
|
|
291
|
-
type: 'BUTTON',
|
|
292
|
-
text: 'Button',
|
|
293
|
-
content: {
|
|
294
|
-
url: '',
|
|
295
|
-
backgroundColor: 'transparent'
|
|
296
|
-
},
|
|
297
|
-
buttonText: {
|
|
298
|
-
sizeType: 'Customize font styles',
|
|
299
|
-
fontFamily: defaultFontFamily,
|
|
300
|
-
fontWeight: 400,
|
|
301
|
-
fontSize: 12,
|
|
302
|
-
fontStyle: 'normal',
|
|
303
|
-
color: '#545454'
|
|
304
|
-
},
|
|
305
|
-
buttonBorder: {
|
|
306
|
-
open: true,
|
|
307
|
-
borderColor: '',
|
|
308
|
-
borderRadius: 0
|
|
309
|
-
},
|
|
310
|
-
spacing: {
|
|
311
|
-
mobile: {
|
|
312
|
-
paddingTop: 0,
|
|
313
|
-
paddingBottom: 0,
|
|
314
|
-
paddingLeft: 0,
|
|
315
|
-
paddingRight: 0
|
|
316
|
-
}
|
|
317
|
-
},
|
|
318
|
-
buttonIcon: {
|
|
319
|
-
iconUrl: _index.bikeIcon,
|
|
320
|
-
layout: 'left'
|
|
321
|
-
},
|
|
322
|
-
hover: null
|
|
323
|
-
},
|
|
324
|
-
sourceType: '1',
|
|
325
|
-
maxProdNum: 5
|
|
326
|
-
},
|
|
327
|
-
spacing: {
|
|
328
|
-
mobile: {
|
|
329
|
-
paddingTop: 20,
|
|
330
|
-
paddingBottom: 20,
|
|
331
|
-
paddingLeft: 0,
|
|
332
|
-
paddingRight: 0,
|
|
333
|
-
marginBottom: window.magicDesign.compSpacing
|
|
334
|
-
}
|
|
335
|
-
},
|
|
336
|
-
customize: {
|
|
337
|
-
layout: 'layout1'
|
|
338
|
-
},
|
|
339
|
-
background: {
|
|
340
|
-
opacity: 100,
|
|
341
|
-
color: '#fff',
|
|
342
|
-
image: '',
|
|
343
|
-
bgType: 'color'
|
|
344
|
-
}
|
|
345
|
-
};
|
|
346
|
-
};
|
|
347
|
-
|
|
348
|
-
exports.getDefaultJSON = getDefaultJSON;
|
|
@@ -1,86 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports["default"] = void 0;
|
|
7
|
-
|
|
8
|
-
var _react = _interopRequireWildcard(require("react"));
|
|
9
|
-
|
|
10
|
-
var _mobile = _interopRequireDefault(require("./mobile"));
|
|
11
|
-
|
|
12
|
-
var _defaultJSON = require("./defaultJSON");
|
|
13
|
-
|
|
14
|
-
var _coreUtil = require("../../../../utils/coreUtil");
|
|
15
|
-
|
|
16
|
-
var _compositeDecorator = _interopRequireDefault(require("../../../../decorator/compositeDecorator"));
|
|
17
|
-
|
|
18
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
19
|
-
|
|
20
|
-
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
21
|
-
|
|
22
|
-
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
23
|
-
|
|
24
|
-
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
25
|
-
|
|
26
|
-
var __extends = void 0 && (void 0).__extends || function () {
|
|
27
|
-
var _extendStatics = function extendStatics(d, b) {
|
|
28
|
-
_extendStatics = Object.setPrototypeOf || {
|
|
29
|
-
__proto__: []
|
|
30
|
-
} instanceof Array && function (d, b) {
|
|
31
|
-
d.__proto__ = b;
|
|
32
|
-
} || function (d, b) {
|
|
33
|
-
for (var p in b) {
|
|
34
|
-
if (b.hasOwnProperty(p)) d[p] = b[p];
|
|
35
|
-
}
|
|
36
|
-
};
|
|
37
|
-
|
|
38
|
-
return _extendStatics(d, b);
|
|
39
|
-
};
|
|
40
|
-
|
|
41
|
-
return function (d, b) {
|
|
42
|
-
_extendStatics(d, b);
|
|
43
|
-
|
|
44
|
-
function __() {
|
|
45
|
-
this.constructor = d;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
49
|
-
};
|
|
50
|
-
}();
|
|
51
|
-
|
|
52
|
-
var __decorate = void 0 && (void 0).__decorate || function (decorators, target, key, desc) {
|
|
53
|
-
var c = arguments.length,
|
|
54
|
-
r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,
|
|
55
|
-
d;
|
|
56
|
-
if ((typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {
|
|
57
|
-
if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
58
|
-
}
|
|
59
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
60
|
-
};
|
|
61
|
-
|
|
62
|
-
var AComponent =
|
|
63
|
-
/** @class */
|
|
64
|
-
function (_super) {
|
|
65
|
-
__extends(AComponent, _super);
|
|
66
|
-
|
|
67
|
-
function AComponent() {
|
|
68
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
AComponent.prototype.render = function () {
|
|
72
|
-
var nodeData = this.props.nodeData;
|
|
73
|
-
return /*#__PURE__*/_react["default"].createElement("div", null, (0, _coreUtil.isPc)() ? null : /*#__PURE__*/_react["default"].createElement(_mobile["default"], {
|
|
74
|
-
panelProps: nodeData
|
|
75
|
-
}));
|
|
76
|
-
};
|
|
77
|
-
|
|
78
|
-
AComponent.defaultProps = {};
|
|
79
|
-
AComponent.type = 'STORES';
|
|
80
|
-
AComponent.getDefaultJSON = _defaultJSON.getDefaultJSON;
|
|
81
|
-
AComponent = __decorate([_compositeDecorator["default"]], AComponent);
|
|
82
|
-
return AComponent;
|
|
83
|
-
}(_react.Component);
|
|
84
|
-
|
|
85
|
-
var _default = AComponent;
|
|
86
|
-
exports["default"] = _default;
|
|
@@ -1,250 +0,0 @@
|
|
|
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 _commonUtil = require("../../../../../../utils/commonUtil");
|
|
13
|
-
|
|
14
|
-
var _currencyUtil = require("../../../../../../utils/currencyUtil");
|
|
15
|
-
|
|
16
|
-
var _common = require("../../../../../../common");
|
|
17
|
-
|
|
18
|
-
var _components = require("../../../../../../meta-comp/components");
|
|
19
|
-
|
|
20
|
-
var _locale = require("../../../../../../locale");
|
|
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 StoreItem =
|
|
84
|
-
/** @class */
|
|
85
|
-
function (_super) {
|
|
86
|
-
__extends(StoreItem, _super);
|
|
87
|
-
|
|
88
|
-
function StoreItem() {
|
|
89
|
-
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
90
|
-
|
|
91
|
-
_this.state = {};
|
|
92
|
-
return _this;
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
StoreItem.prototype.render = function () {
|
|
96
|
-
var _a = this.props,
|
|
97
|
-
data = _a.data,
|
|
98
|
-
panelProps = _a.panelProps,
|
|
99
|
-
onItemClick = _a.onItemClick,
|
|
100
|
-
layout = _a.layout,
|
|
101
|
-
rest = __rest(_a, ["data", "panelProps", "onItemClick", "layout"]);
|
|
102
|
-
|
|
103
|
-
var soldNumber = data.salesCnt > 250 ? "" + (data.salesCnt - data.salesCnt % 250) : data.salesCnt || 0;
|
|
104
|
-
var storeName = panelProps.storeName,
|
|
105
|
-
storeDesc = panelProps.storeDesc,
|
|
106
|
-
freeDeliveryLabel = panelProps.freeDeliveryLabel,
|
|
107
|
-
minOrder = panelProps.minOrder,
|
|
108
|
-
evaluateScore = panelProps.evaluateScore,
|
|
109
|
-
sold = panelProps.sold,
|
|
110
|
-
deliveryTime = panelProps.deliveryTime,
|
|
111
|
-
distance = panelProps.distance;
|
|
112
|
-
return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, layout === 'layout1' ? /*#__PURE__*/_react["default"].createElement("div", _extends({
|
|
113
|
-
className: (0, _classnames["default"])('m-store-item-wrap', {
|
|
114
|
-
horizontal: true
|
|
115
|
-
}),
|
|
116
|
-
onClick: function onClick() {
|
|
117
|
-
return onItemClick();
|
|
118
|
-
}
|
|
119
|
-
}, rest), /*#__PURE__*/_react["default"].createElement("div", {
|
|
120
|
-
className: "img-wrap"
|
|
121
|
-
}, /*#__PURE__*/_react["default"].createElement(_common.NewImg, {
|
|
122
|
-
className: "product-img",
|
|
123
|
-
lazy: true,
|
|
124
|
-
src: (0, _commonUtil.convertImageUrl)(data.storePosterUrl || data.storeLogoUrl)
|
|
125
|
-
}), freeDeliveryLabel.open && data.freeShipping === 'Y' && /*#__PURE__*/_react["default"].createElement(_components.MetaButton, {
|
|
126
|
-
className: "flag",
|
|
127
|
-
data: freeDeliveryLabel
|
|
128
|
-
})), /*#__PURE__*/_react["default"].createElement("div", {
|
|
129
|
-
className: "content-wrap"
|
|
130
|
-
}, storeName.open && /*#__PURE__*/_react["default"].createElement(_components.MetaText, {
|
|
131
|
-
className: "name",
|
|
132
|
-
data: __assign(__assign({}, storeName), {
|
|
133
|
-
text: data.storeName
|
|
134
|
-
}),
|
|
135
|
-
readonly: true
|
|
136
|
-
}), minOrder.open && /*#__PURE__*/_react["default"].createElement(_components.MetaText, {
|
|
137
|
-
className: "minOrder no-reversed",
|
|
138
|
-
data: __assign(__assign({}, minOrder), {
|
|
139
|
-
text: (0, _commonUtil.reverseStrArr)([(0, _locale.i18n)('MIN_ORDER'), ':', (data.minOrderAmount || 0) + " IQD"])
|
|
140
|
-
}),
|
|
141
|
-
readonly: true
|
|
142
|
-
}), /*#__PURE__*/_react["default"].createElement("div", {
|
|
143
|
-
className: "row"
|
|
144
|
-
}, evaluateScore.open && /*#__PURE__*/_react["default"].createElement(_components.MetaButton, {
|
|
145
|
-
className: "score",
|
|
146
|
-
data: __assign(__assign({}, evaluateScore), {
|
|
147
|
-
text: (0, _currencyUtil.numberToFixed)(Number(data.comEvalRate), 1)
|
|
148
|
-
}),
|
|
149
|
-
readonly: true
|
|
150
|
-
}), evaluateScore.open && deliveryTime.open && /*#__PURE__*/_react["default"].createElement("div", {
|
|
151
|
-
className: "line1"
|
|
152
|
-
}), sold.open && /*#__PURE__*/_react["default"].createElement(_components.MetaText, {
|
|
153
|
-
className: "sold no-reversed",
|
|
154
|
-
data: __assign(__assign({}, sold), {
|
|
155
|
-
text: (0, _commonUtil.reverseStrArr)([(0, _locale.i18n)('SOLD'), soldNumber, '+'])
|
|
156
|
-
}),
|
|
157
|
-
readonly: true
|
|
158
|
-
}), deliveryTime.open && /*#__PURE__*/_react["default"].createElement(_components.MetaButton, {
|
|
159
|
-
className: "time",
|
|
160
|
-
data: __assign(__assign({}, deliveryTime), {
|
|
161
|
-
text: data.deliveryTime || '17 mins'
|
|
162
|
-
}),
|
|
163
|
-
readonly: true
|
|
164
|
-
}), distance.open && /*#__PURE__*/_react["default"].createElement(_components.MetaButton, {
|
|
165
|
-
className: "distance",
|
|
166
|
-
data: __assign(__assign({}, distance), {
|
|
167
|
-
text: data.distance || '1 km'
|
|
168
|
-
}),
|
|
169
|
-
readonly: true
|
|
170
|
-
})))) : /*#__PURE__*/_react["default"].createElement("div", _extends({
|
|
171
|
-
className: (0, _classnames["default"])('m-store-item-wrap'),
|
|
172
|
-
onClick: function onClick() {
|
|
173
|
-
return onItemClick();
|
|
174
|
-
}
|
|
175
|
-
}, rest), /*#__PURE__*/_react["default"].createElement("div", {
|
|
176
|
-
className: "img-wrap"
|
|
177
|
-
}, /*#__PURE__*/_react["default"].createElement(_common.NewImg, {
|
|
178
|
-
className: "product-img",
|
|
179
|
-
lazy: true,
|
|
180
|
-
src: (0, _commonUtil.convertImageUrl)(data.storePosterUrl || data.storeLogoUrl)
|
|
181
|
-
}), freeDeliveryLabel.open && data.freeShipping === 'Y' && /*#__PURE__*/_react["default"].createElement(_components.MetaButton, {
|
|
182
|
-
className: "flag",
|
|
183
|
-
data: freeDeliveryLabel
|
|
184
|
-
})), /*#__PURE__*/_react["default"].createElement("div", {
|
|
185
|
-
className: "content-wrap"
|
|
186
|
-
}, storeName.open && /*#__PURE__*/_react["default"].createElement(_components.MetaText, {
|
|
187
|
-
className: "name",
|
|
188
|
-
data: __assign(__assign({}, storeName), {
|
|
189
|
-
text: data.storeName
|
|
190
|
-
}),
|
|
191
|
-
readonly: true
|
|
192
|
-
}), storeDesc.open && /*#__PURE__*/_react["default"].createElement(_components.MetaText, {
|
|
193
|
-
className: "desc",
|
|
194
|
-
data: __assign(__assign({}, storeDesc), {
|
|
195
|
-
text: data.comments
|
|
196
|
-
}),
|
|
197
|
-
readonly: true
|
|
198
|
-
}), /*#__PURE__*/_react["default"].createElement("div", {
|
|
199
|
-
className: "row"
|
|
200
|
-
}, minOrder.open && /*#__PURE__*/_react["default"].createElement(_components.MetaText, {
|
|
201
|
-
className: "minOrder no-reversed",
|
|
202
|
-
data: __assign(__assign({}, minOrder), {
|
|
203
|
-
text: (0, _commonUtil.reverseStrArr)([(0, _locale.i18n)('MIN_ORDER'), ':', (data.minOrderAmount || 0) + " IQD"])
|
|
204
|
-
}),
|
|
205
|
-
readonly: true
|
|
206
|
-
}), minOrder.open && sold.open && /*#__PURE__*/_react["default"].createElement("div", {
|
|
207
|
-
className: "line1"
|
|
208
|
-
}), sold.open && /*#__PURE__*/_react["default"].createElement(_components.MetaText, {
|
|
209
|
-
className: "sold no-reversed",
|
|
210
|
-
data: __assign(__assign({}, sold), {
|
|
211
|
-
text: (0, _commonUtil.reverseStrArr)([(0, _locale.i18n)('SOLD'), soldNumber, '+'])
|
|
212
|
-
}),
|
|
213
|
-
readonly: true
|
|
214
|
-
})), /*#__PURE__*/_react["default"].createElement("div", {
|
|
215
|
-
className: "row"
|
|
216
|
-
}, evaluateScore.open && /*#__PURE__*/_react["default"].createElement(_components.MetaButton, {
|
|
217
|
-
className: "score",
|
|
218
|
-
data: __assign(__assign({}, evaluateScore), {
|
|
219
|
-
text: (0, _currencyUtil.numberToFixed)(Number(data.comEvalRate), 1)
|
|
220
|
-
}),
|
|
221
|
-
readonly: true
|
|
222
|
-
}), evaluateScore.open && deliveryTime.open && /*#__PURE__*/_react["default"].createElement("div", {
|
|
223
|
-
className: "line2"
|
|
224
|
-
}), deliveryTime.open && /*#__PURE__*/_react["default"].createElement(_components.MetaButton, {
|
|
225
|
-
className: "time",
|
|
226
|
-
data: __assign(__assign({}, deliveryTime), {
|
|
227
|
-
text: data.deliveryTime || '17 mins'
|
|
228
|
-
}),
|
|
229
|
-
readonly: true
|
|
230
|
-
}), deliveryTime.open && distance.open && /*#__PURE__*/_react["default"].createElement("div", {
|
|
231
|
-
className: "line2"
|
|
232
|
-
}), distance.open && /*#__PURE__*/_react["default"].createElement(_components.MetaButton, {
|
|
233
|
-
className: "distance",
|
|
234
|
-
data: __assign(__assign({}, distance), {
|
|
235
|
-
text: data.distance || '1 km'
|
|
236
|
-
}),
|
|
237
|
-
readonly: true
|
|
238
|
-
})))));
|
|
239
|
-
};
|
|
240
|
-
|
|
241
|
-
StoreItem.defaultProps = {
|
|
242
|
-
data: {},
|
|
243
|
-
panelProps: {},
|
|
244
|
-
layout: 'vertical'
|
|
245
|
-
};
|
|
246
|
-
return StoreItem;
|
|
247
|
-
}(_react["default"].Component);
|
|
248
|
-
|
|
249
|
-
var _default = StoreItem;
|
|
250
|
-
exports["default"] = _default;
|