@weareconceptstudio/account 1.0.5 → 2.0.1
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/dist/AccountProvider.d.ts.map +1 -1
- package/dist/AccountProvider.js +36 -9
- package/dist/AccountProvider.js.map +1 -1
- package/dist/components/AccountButton/style.d.ts +1 -1
- package/dist/components/AccountButton/style.d.ts.map +1 -1
- package/dist/components/AccountButton/style.js.map +1 -1
- package/dist/components/AccountContainer/style.d.ts +1 -1
- package/dist/components/AccountContainer/style.d.ts.map +1 -1
- package/dist/components/AccountCounter/index.js +2 -2
- package/dist/components/AccountCounter/index.js.map +1 -1
- package/dist/components/AccountCounter/style.d.ts +1 -1
- package/dist/components/AccountCounter/style.d.ts.map +1 -1
- package/dist/components/AccountCounter/style.js +5 -5
- package/dist/components/CustomCheckbox/style.d.ts +1 -1
- package/dist/components/CustomCheckbox/style.d.ts.map +1 -1
- package/dist/components/CustomCheckbox/style.js.map +1 -1
- package/dist/components/FormInputCode/style.d.ts +1 -1
- package/dist/components/FormInputCode/style.d.ts.map +1 -1
- package/dist/components/FormInputCode/style.js.map +1 -1
- package/dist/components/Loader/style.d.ts +1 -1
- package/dist/components/Loader/style.d.ts.map +1 -1
- package/dist/components/Loader/style.js +1 -1
- package/dist/components/Pagination/style.d.ts +1 -1
- package/dist/components/Pagination/style.d.ts.map +1 -1
- package/dist/components/Pagination/style.js.map +1 -1
- package/dist/components/Sequence/Skeleton/style.d.ts +1 -1
- package/dist/components/Sequence/Skeleton/style.d.ts.map +1 -1
- package/dist/components/Sequence/Skeleton/style.js.map +1 -1
- package/dist/components/Sequence/style.d.ts +1 -1
- package/dist/components/Sequence/style.d.ts.map +1 -1
- package/dist/components/SkeletonModel/style.d.ts +1 -1
- package/dist/components/SkeletonModel/style.d.ts.map +1 -1
- package/dist/components/SkeletonModel/style.js +2 -1
- package/dist/components/SkeletonModel/style.js.map +1 -1
- package/dist/components/TotalCheckout/BalanceComp/index.js +6 -5
- package/dist/components/TotalCheckout/BalanceComp/index.js.map +1 -1
- package/dist/components/TotalCheckout/BalanceComp/style.d.ts +1 -1
- package/dist/components/TotalCheckout/BalanceComp/style.d.ts.map +1 -1
- package/dist/components/TotalCheckout/CommentComp/index.js +1 -1
- package/dist/components/TotalCheckout/CommentComp/index.js.map +1 -1
- package/dist/components/TotalCheckout/CommentComp/style.d.ts +1 -1
- package/dist/components/TotalCheckout/CommentComp/style.d.ts.map +1 -1
- package/dist/components/TotalCheckout/CommentComp/style.js.map +1 -1
- package/dist/components/TotalCheckout/FreeShippingComp/index.d.ts.map +1 -1
- package/dist/components/TotalCheckout/FreeShippingComp/index.js +5 -5
- package/dist/components/TotalCheckout/FreeShippingComp/index.js.map +1 -1
- package/dist/components/TotalCheckout/FreeShippingComp/style.d.ts +1 -1
- package/dist/components/TotalCheckout/FreeShippingComp/style.d.ts.map +1 -1
- package/dist/components/TotalCheckout/FreeShippingComp/style.js.map +1 -1
- package/dist/components/TotalCheckout/GiftComp/index.d.ts.map +1 -1
- package/dist/components/TotalCheckout/GiftComp/index.js +6 -4
- package/dist/components/TotalCheckout/GiftComp/index.js.map +1 -1
- package/dist/components/TotalCheckout/GiftComp/style.d.ts +1 -1
- package/dist/components/TotalCheckout/GiftComp/style.d.ts.map +1 -1
- package/dist/components/TotalCheckout/GiftComp/style.js.map +1 -1
- package/dist/components/TotalCheckout/PromoCodeComp/AppliedPromotion/index.d.ts.map +1 -1
- package/dist/components/TotalCheckout/PromoCodeComp/AppliedPromotion/index.js.map +1 -1
- package/dist/components/TotalCheckout/PromoCodeComp/index.d.ts.map +1 -1
- package/dist/components/TotalCheckout/PromoCodeComp/index.js +1 -1
- package/dist/components/TotalCheckout/PromoCodeComp/index.js.map +1 -1
- package/dist/components/TotalCheckout/PromoCodeComp/style.d.ts +1 -1
- package/dist/components/TotalCheckout/PromoCodeComp/style.d.ts.map +1 -1
- package/dist/components/TotalCheckout/Skeleton/style.d.ts +1 -1
- package/dist/components/TotalCheckout/Skeleton/style.d.ts.map +1 -1
- package/dist/components/TotalCheckout/index.d.ts.map +1 -1
- package/dist/components/TotalCheckout/index.js +23 -19
- package/dist/components/TotalCheckout/index.js.map +1 -1
- package/dist/components/TotalCheckout/style.d.ts +1 -1
- package/dist/components/TotalCheckout/style.d.ts.map +1 -1
- package/dist/components/TotalCheckout/style.js +16 -1
- package/dist/components/TotalCheckout/style.js.map +1 -1
- package/dist/components/WarningMessage/style.d.ts +1 -1
- package/dist/components/WarningMessage/style.d.ts.map +1 -1
- package/dist/components/WarningMessage/style.js.map +1 -1
- package/dist/components/WarningMessageForPopup/index.d.ts.map +1 -1
- package/dist/components/WarningMessageForPopup/index.js.map +1 -1
- package/dist/components/WarningMessageForPopup/style.d.ts +1 -1
- package/dist/components/WarningMessageForPopup/style.d.ts.map +1 -1
- package/dist/components/WarningMessageForPopup/style.js.map +1 -1
- package/dist/components/index.js +2 -0
- package/dist/components/index.js.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/modules/account/AccountBalanceTemplate/HeroBalance/ProgressBalance/ProgressComponent/index.d.ts +1 -1
- package/dist/modules/account/AccountBalanceTemplate/HeroBalance/ProgressBalance/ProgressComponent/index.d.ts.map +1 -1
- package/dist/modules/account/AccountBalanceTemplate/HeroBalance/ProgressBalance/ProgressComponent/index.js +1 -1
- package/dist/modules/account/AccountBalanceTemplate/HeroBalance/ProgressBalance/ProgressComponent/index.js.map +1 -1
- package/dist/modules/account/AccountBalanceTemplate/HeroBalance/ProgressBalance/ProgressComponent/style.d.ts +1 -1
- package/dist/modules/account/AccountBalanceTemplate/HeroBalance/ProgressBalance/ProgressComponent/style.d.ts.map +1 -1
- package/dist/modules/account/AccountBalanceTemplate/HeroBalance/ProgressBalance/ProgressComponent/style.js.map +1 -1
- package/dist/modules/account/AccountBalanceTemplate/HeroBalance/ProgressBalance/index.d.ts +3 -3
- package/dist/modules/account/AccountBalanceTemplate/HeroBalance/ProgressBalance/index.d.ts.map +1 -1
- package/dist/modules/account/AccountBalanceTemplate/HeroBalance/ProgressBalance/index.js +5 -7
- package/dist/modules/account/AccountBalanceTemplate/HeroBalance/ProgressBalance/index.js.map +1 -1
- package/dist/modules/account/AccountBalanceTemplate/HeroBalance/ProgressBalance/style.d.ts +1 -1
- package/dist/modules/account/AccountBalanceTemplate/HeroBalance/ProgressBalance/style.d.ts.map +1 -1
- package/dist/modules/account/AccountBalanceTemplate/HeroBalance/ProgressBalance/style.js.map +1 -1
- package/dist/modules/account/AccountBalanceTemplate/HeroBalance/index.d.ts +1 -3
- package/dist/modules/account/AccountBalanceTemplate/HeroBalance/index.d.ts.map +1 -1
- package/dist/modules/account/AccountBalanceTemplate/HeroBalance/index.js +18 -8
- package/dist/modules/account/AccountBalanceTemplate/HeroBalance/index.js.map +1 -1
- package/dist/modules/account/AccountBalanceTemplate/HeroBalance/style.d.ts +1 -1
- package/dist/modules/account/AccountBalanceTemplate/HeroBalance/style.d.ts.map +1 -1
- package/dist/modules/account/AccountBalanceTemplate/HeroBalance/style.js.map +1 -1
- package/dist/modules/account/AccountBalanceTemplate/HistoryBalance/ItemHistory/index.d.ts.map +1 -1
- package/dist/modules/account/AccountBalanceTemplate/HistoryBalance/ItemHistory/index.js.map +1 -1
- package/dist/modules/account/AccountBalanceTemplate/HistoryBalance/ItemHistory/style.d.ts +1 -1
- package/dist/modules/account/AccountBalanceTemplate/HistoryBalance/ItemHistory/style.d.ts.map +1 -1
- package/dist/modules/account/AccountBalanceTemplate/HistoryBalance/ItemHistory/style.js.map +1 -1
- package/dist/modules/account/AccountBalanceTemplate/HistoryBalance/index.d.ts.map +1 -1
- package/dist/modules/account/AccountBalanceTemplate/HistoryBalance/index.js +5 -1
- package/dist/modules/account/AccountBalanceTemplate/HistoryBalance/index.js.map +1 -1
- package/dist/modules/account/AccountBalanceTemplate/HistoryBalance/style.d.ts +1 -1
- package/dist/modules/account/AccountBalanceTemplate/HistoryBalance/style.d.ts.map +1 -1
- package/dist/modules/account/AccountBalanceTemplate/HistoryBalance/style.js.map +1 -1
- package/dist/modules/account/AccountBalanceTemplate/StatusBalance/ItemStatus/index.d.ts +2 -2
- package/dist/modules/account/AccountBalanceTemplate/StatusBalance/ItemStatus/index.js +3 -3
- package/dist/modules/account/AccountBalanceTemplate/StatusBalance/ItemStatus/index.js.map +1 -1
- package/dist/modules/account/AccountBalanceTemplate/StatusBalance/index.d.ts.map +1 -1
- package/dist/modules/account/AccountBalanceTemplate/StatusBalance/index.js +4 -2
- package/dist/modules/account/AccountBalanceTemplate/StatusBalance/index.js.map +1 -1
- package/dist/modules/account/AccountBalanceTemplate/StatusBalance/style.d.ts +1 -1
- package/dist/modules/account/AccountBalanceTemplate/StatusBalance/style.d.ts.map +1 -1
- package/dist/modules/account/AccountBalanceTemplate/StatusBalance/style.js +5 -1
- package/dist/modules/account/AccountBalanceTemplate/StatusBalance/style.js.map +1 -1
- package/dist/modules/account/AccountBalanceTemplate/Voucher/style.d.ts +1 -1
- package/dist/modules/account/AccountBalanceTemplate/Voucher/style.d.ts.map +1 -1
- package/dist/modules/account/AccountBalanceTemplate/Voucher/style.js.map +1 -1
- package/dist/modules/account/AccountBalanceTemplate/index.d.ts +1 -2
- package/dist/modules/account/AccountBalanceTemplate/index.d.ts.map +1 -1
- package/dist/modules/account/AccountBalanceTemplate/index.js +2 -2
- package/dist/modules/account/AccountBalanceTemplate/index.js.map +1 -1
- package/dist/modules/account/AccountBalanceTemplate/style.d.ts +1 -1
- package/dist/modules/account/AccountBalanceTemplate/style.d.ts.map +1 -1
- package/dist/modules/account/AccountBalanceTemplate/style.js.map +1 -1
- package/dist/modules/account/AccountSettingsTemplate/AccountInfo/index.d.ts.map +1 -1
- package/dist/modules/account/AccountSettingsTemplate/AccountInfo/index.js +37 -3
- package/dist/modules/account/AccountSettingsTemplate/AccountInfo/index.js.map +1 -1
- package/dist/modules/account/AccountSettingsTemplate/AccountInfo/style.d.ts +1 -1
- package/dist/modules/account/AccountSettingsTemplate/AccountInfo/style.d.ts.map +1 -1
- package/dist/modules/account/AccountSettingsTemplate/AccountInfo/style.js.map +1 -1
- package/dist/modules/account/AccountSettingsTemplate/AccountPassword/style.d.ts +1 -1
- package/dist/modules/account/AccountSettingsTemplate/AccountPassword/style.d.ts.map +1 -1
- package/dist/modules/account/AccountSettingsTemplate/AccountPassword/style.js.map +1 -1
- package/dist/modules/account/AccountSettingsTemplate/Subscription/style.d.ts +1 -1
- package/dist/modules/account/AccountSettingsTemplate/Subscription/style.d.ts.map +1 -1
- package/dist/modules/account/AccountSettingsTemplate/index.d.ts.map +1 -1
- package/dist/modules/account/AccountSettingsTemplate/index.js +2 -2
- package/dist/modules/account/AccountSettingsTemplate/index.js.map +1 -1
- package/dist/modules/account/AccountSettingsTemplate/style.d.ts +1 -1
- package/dist/modules/account/AccountSettingsTemplate/style.d.ts.map +1 -1
- package/dist/modules/account/AccountTemplate/index.js +1 -1
- package/dist/modules/account/AccountTemplate/index.js.map +1 -1
- package/dist/modules/account/AccountTemplate/style.d.ts +1 -1
- package/dist/modules/account/AccountTemplate/style.d.ts.map +1 -1
- package/dist/modules/address/AddressForm/index.d.ts.map +1 -1
- package/dist/modules/address/AddressForm/index.js +21 -3
- package/dist/modules/address/AddressForm/index.js.map +1 -1
- package/dist/modules/address/AddressForm/style.d.ts +1 -1
- package/dist/modules/address/AddressForm/style.d.ts.map +1 -1
- package/dist/modules/address/AddressForm/style.js.map +1 -1
- package/dist/modules/address/AddressItem/index.d.ts.map +1 -1
- package/dist/modules/address/AddressItem/index.js +12 -6
- package/dist/modules/address/AddressItem/index.js.map +1 -1
- package/dist/modules/address/AddressItem/style.d.ts +1 -1
- package/dist/modules/address/AddressItem/style.d.ts.map +1 -1
- package/dist/modules/address/AddressItem/style.js.map +1 -1
- package/dist/modules/address/AddressProvider.d.ts.map +1 -1
- package/dist/modules/address/AddressProvider.js +109 -20
- package/dist/modules/address/AddressProvider.js.map +1 -1
- package/dist/modules/address/AddressWrap/index.d.ts.map +1 -1
- package/dist/modules/address/AddressWrap/index.js +4 -2
- package/dist/modules/address/AddressWrap/index.js.map +1 -1
- package/dist/modules/address/AddressesTemplate/index.js +2 -2
- package/dist/modules/address/AddressesTemplate/index.js.map +1 -1
- package/dist/modules/address/AddressesTemplate/style.d.ts +1 -1
- package/dist/modules/address/AddressesTemplate/style.d.ts.map +1 -1
- package/dist/modules/address/AddressesTemplate/style.js.map +1 -1
- package/dist/modules/address/SelectAddress/Skeleton/style.d.ts +1 -1
- package/dist/modules/address/SelectAddress/Skeleton/style.d.ts.map +1 -1
- package/dist/modules/address/SelectAddress/Skeleton/style.js.map +1 -1
- package/dist/modules/address/SelectAddressPopup/index.d.ts.map +1 -1
- package/dist/modules/address/SelectAddressPopup/index.js +29 -21
- package/dist/modules/address/SelectAddressPopup/index.js.map +1 -1
- package/dist/modules/address/SelectAddressPopup/style.d.ts +1 -1
- package/dist/modules/address/SelectAddressPopup/style.d.ts.map +1 -1
- package/dist/modules/address/SelectAddressPopup/style.js.map +1 -1
- package/dist/modules/address/ShippingBillingForm/index.js +2 -2
- package/dist/modules/address/ShippingBillingForm/index.js.map +1 -1
- package/dist/modules/address/ShippingBillingForm/style.d.ts +1 -1
- package/dist/modules/address/ShippingBillingForm/style.d.ts.map +1 -1
- package/dist/modules/address/ShippingBillingForm/style.js.map +1 -1
- package/dist/modules/address/ShippingBillingInfo/index.d.ts.map +1 -1
- package/dist/modules/address/ShippingBillingInfo/index.js +10 -3
- package/dist/modules/address/ShippingBillingInfo/index.js.map +1 -1
- package/dist/modules/address/ShippingBillingInfo/style.d.ts +1 -1
- package/dist/modules/address/ShippingBillingInfo/style.d.ts.map +1 -1
- package/dist/modules/address/ShippingBillingInfo/style.js.map +1 -1
- package/dist/modules/auth/ForgotPasswordTemplate/index.d.ts.map +1 -1
- package/dist/modules/auth/ForgotPasswordTemplate/index.js +3 -1
- package/dist/modules/auth/ForgotPasswordTemplate/index.js.map +1 -1
- package/dist/modules/auth/ForgotPasswordTemplate/style.d.ts +1 -1
- package/dist/modules/auth/ForgotPasswordTemplate/style.d.ts.map +1 -1
- package/dist/modules/auth/ForgotPasswordTemplate/style.js.map +1 -1
- package/dist/modules/auth/ResetPasswordTemplate/ExpiredLink/index.js +1 -1
- package/dist/modules/auth/ResetPasswordTemplate/ExpiredLink/style.d.ts +1 -1
- package/dist/modules/auth/ResetPasswordTemplate/ExpiredLink/style.d.ts.map +1 -1
- package/dist/modules/auth/ResetPasswordTemplate/ExpiredLink/style.js.map +1 -1
- package/dist/modules/auth/ResetPasswordTemplate/style.d.ts +1 -1
- package/dist/modules/auth/ResetPasswordTemplate/style.d.ts.map +1 -1
- package/dist/modules/auth/SignInTemplate/index.d.ts +1 -2
- package/dist/modules/auth/SignInTemplate/index.d.ts.map +1 -1
- package/dist/modules/auth/SignInTemplate/index.js +4 -4
- package/dist/modules/auth/SignInTemplate/index.js.map +1 -1
- package/dist/modules/auth/SignInTemplate/style.d.ts +1 -1
- package/dist/modules/auth/SignInTemplate/style.d.ts.map +1 -1
- package/dist/modules/auth/SignInTemplate/style.js.map +1 -1
- package/dist/modules/auth/SignUpTemplate/index.d.ts +1 -2
- package/dist/modules/auth/SignUpTemplate/index.d.ts.map +1 -1
- package/dist/modules/auth/SignUpTemplate/index.js +4 -4
- package/dist/modules/auth/SignUpTemplate/index.js.map +1 -1
- package/dist/modules/auth/SignUpTemplate/style.d.ts +1 -1
- package/dist/modules/auth/SignUpTemplate/style.d.ts.map +1 -1
- package/dist/modules/auth/SignUpTemplate/style.js +1 -0
- package/dist/modules/auth/SignUpTemplate/style.js.map +1 -1
- package/dist/modules/auth/VerifyEmailAddressTemplate/style.d.ts +1 -1
- package/dist/modules/auth/VerifyEmailAddressTemplate/style.d.ts.map +1 -1
- package/dist/modules/auth/VerifyEmailAddressTemplate/style.js.map +1 -1
- package/dist/modules/cart/CartTemplate/Skeleton/SkeletonItem/index.d.ts.map +1 -1
- package/dist/modules/cart/CartTemplate/Skeleton/SkeletonItem/index.js +1 -1
- package/dist/modules/cart/CartTemplate/Skeleton/SkeletonItem/index.js.map +1 -1
- package/dist/modules/cart/CartTemplate/Skeleton/SkeletonItem/style.d.ts +1 -1
- package/dist/modules/cart/CartTemplate/Skeleton/SkeletonItem/style.d.ts.map +1 -1
- package/dist/modules/cart/CartTemplate/Skeleton/SkeletonItem/style.js.map +1 -1
- package/dist/modules/cart/CartTemplate/Skeleton/index.js +1 -1
- package/dist/modules/cart/CartTemplate/Skeleton/index.js.map +1 -1
- package/dist/modules/cart/CartTemplate/Skeleton/style.d.ts +1 -1
- package/dist/modules/cart/CartTemplate/Skeleton/style.d.ts.map +1 -1
- package/dist/modules/cart/CartTemplate/Skeleton/style.js.map +1 -1
- package/dist/modules/cart/CartTemplate/index.d.ts.map +1 -1
- package/dist/modules/cart/CartTemplate/index.js +15 -10
- package/dist/modules/cart/CartTemplate/index.js.map +1 -1
- package/dist/modules/cart/CartTemplate/style.d.ts +1 -1
- package/dist/modules/cart/CartTemplate/style.d.ts.map +1 -1
- package/dist/modules/cart/EmptyCart/index.d.ts.map +1 -1
- package/dist/modules/cart/EmptyCart/index.js +5 -3
- package/dist/modules/cart/EmptyCart/index.js.map +1 -1
- package/dist/modules/cart/EmptyCart/style.d.ts +1 -1
- package/dist/modules/cart/EmptyCart/style.d.ts.map +1 -1
- package/dist/modules/cart/EmptyCart/style.js +11 -10
- package/dist/modules/cart/EmptyCart/style.js.map +1 -1
- package/dist/modules/cart/components/CartItems/Item/EditButton.d.ts +11 -0
- package/dist/modules/cart/components/CartItems/Item/EditButton.d.ts.map +1 -0
- package/dist/modules/cart/components/CartItems/Item/EditButton.js +17 -0
- package/dist/modules/cart/components/CartItems/Item/EditButton.js.map +1 -0
- package/dist/modules/cart/components/CartItems/Item/ItemActions.d.ts +11 -0
- package/dist/modules/cart/components/CartItems/Item/ItemActions.d.ts.map +1 -0
- package/dist/modules/cart/components/CartItems/Item/ItemActions.js +17 -0
- package/dist/modules/cart/components/CartItems/Item/ItemActions.js.map +1 -0
- package/dist/modules/cart/components/CartItems/Item/ItemAttributes.d.ts +8 -0
- package/dist/modules/cart/components/CartItems/Item/ItemAttributes.d.ts.map +1 -0
- package/dist/modules/cart/components/CartItems/Item/ItemAttributes.js +38 -0
- package/dist/modules/cart/components/CartItems/Item/ItemAttributes.js.map +1 -0
- package/dist/modules/cart/components/CartItems/Item/ItemImage.d.ts +9 -0
- package/dist/modules/cart/components/CartItems/Item/ItemImage.d.ts.map +1 -0
- package/dist/modules/cart/components/CartItems/Item/ItemImage.js +12 -0
- package/dist/modules/cart/components/CartItems/Item/ItemImage.js.map +1 -0
- package/dist/modules/cart/components/CartItems/Item/ItemTitle.d.ts +10 -0
- package/dist/modules/cart/components/CartItems/Item/ItemTitle.d.ts.map +1 -0
- package/dist/modules/cart/components/CartItems/Item/ItemTitle.js +10 -0
- package/dist/modules/cart/components/CartItems/Item/ItemTitle.js.map +1 -0
- package/dist/modules/cart/components/CartItems/Item/OutOfStockBadge.d.ts +6 -0
- package/dist/modules/cart/components/CartItems/Item/OutOfStockBadge.d.ts.map +1 -0
- package/dist/modules/cart/components/CartItems/Item/OutOfStockBadge.js +9 -0
- package/dist/modules/cart/components/CartItems/Item/OutOfStockBadge.js.map +1 -0
- package/dist/modules/cart/components/CartItems/Item/PriceDisplay.d.ts +7 -0
- package/dist/modules/cart/components/CartItems/Item/PriceDisplay.d.ts.map +1 -0
- package/dist/modules/cart/components/CartItems/Item/PriceDisplay.js +25 -0
- package/dist/modules/cart/components/CartItems/Item/PriceDisplay.js.map +1 -0
- package/dist/modules/cart/components/CartItems/Item/QuantitySelector.d.ts +14 -0
- package/dist/modules/cart/components/CartItems/Item/QuantitySelector.d.ts.map +1 -0
- package/dist/modules/cart/components/CartItems/Item/QuantitySelector.js +31 -0
- package/dist/modules/cart/components/CartItems/Item/QuantitySelector.js.map +1 -0
- package/dist/modules/cart/components/CartItems/Item/TotalDisplay.d.ts +7 -0
- package/dist/modules/cart/components/CartItems/Item/TotalDisplay.d.ts.map +1 -0
- package/dist/modules/cart/components/CartItems/Item/TotalDisplay.js +25 -0
- package/dist/modules/cart/components/CartItems/Item/TotalDisplay.js.map +1 -0
- package/dist/modules/cart/components/CartItems/Item/index.d.ts.map +1 -1
- package/dist/modules/cart/components/CartItems/Item/index.js +39 -69
- package/dist/modules/cart/components/CartItems/Item/index.js.map +1 -1
- package/dist/modules/cart/components/CartItems/ItemMobile/MobileItemActions.d.ts +14 -0
- package/dist/modules/cart/components/CartItems/ItemMobile/MobileItemActions.d.ts.map +1 -0
- package/dist/modules/cart/components/CartItems/ItemMobile/MobileItemActions.js +22 -0
- package/dist/modules/cart/components/CartItems/ItemMobile/MobileItemActions.js.map +1 -0
- package/dist/modules/cart/components/CartItems/ItemMobile/MobileItemAttributes.d.ts +8 -0
- package/dist/modules/cart/components/CartItems/ItemMobile/MobileItemAttributes.d.ts.map +1 -0
- package/dist/modules/cart/components/CartItems/ItemMobile/MobileItemAttributes.js +35 -0
- package/dist/modules/cart/components/CartItems/ItemMobile/MobileItemAttributes.js.map +1 -0
- package/dist/modules/cart/components/CartItems/ItemMobile/MobileItemImage.d.ts +9 -0
- package/dist/modules/cart/components/CartItems/ItemMobile/MobileItemImage.d.ts.map +1 -0
- package/dist/modules/cart/components/CartItems/ItemMobile/MobileItemImage.js +12 -0
- package/dist/modules/cart/components/CartItems/ItemMobile/MobileItemImage.js.map +1 -0
- package/dist/modules/cart/components/CartItems/ItemMobile/MobileItemPrice.d.ts +8 -0
- package/dist/modules/cart/components/CartItems/ItemMobile/MobileItemPrice.d.ts.map +1 -0
- package/dist/modules/cart/components/CartItems/ItemMobile/MobileItemPrice.js +38 -0
- package/dist/modules/cart/components/CartItems/ItemMobile/MobileItemPrice.js.map +1 -0
- package/dist/modules/cart/components/CartItems/ItemMobile/MobileItemQuantity.d.ts +14 -0
- package/dist/modules/cart/components/CartItems/ItemMobile/MobileItemQuantity.d.ts.map +1 -0
- package/dist/modules/cart/components/CartItems/ItemMobile/MobileItemQuantity.js +47 -0
- package/dist/modules/cart/components/CartItems/ItemMobile/MobileItemQuantity.js.map +1 -0
- package/dist/modules/cart/components/CartItems/ItemMobile/MobileItemTitle.d.ts +10 -0
- package/dist/modules/cart/components/CartItems/ItemMobile/MobileItemTitle.d.ts.map +1 -0
- package/dist/modules/cart/components/CartItems/ItemMobile/MobileItemTitle.js +10 -0
- package/dist/modules/cart/components/CartItems/ItemMobile/MobileItemTitle.js.map +1 -0
- package/dist/modules/cart/components/CartItems/ItemMobile/MobileItemTotal.d.ts +7 -0
- package/dist/modules/cart/components/CartItems/ItemMobile/MobileItemTotal.d.ts.map +1 -0
- package/dist/modules/cart/components/CartItems/ItemMobile/MobileItemTotal.js +41 -0
- package/dist/modules/cart/components/CartItems/ItemMobile/MobileItemTotal.js.map +1 -0
- package/dist/modules/cart/components/CartItems/ItemMobile/MobileOutOfStockBadge.d.ts +6 -0
- package/dist/modules/cart/components/CartItems/ItemMobile/MobileOutOfStockBadge.d.ts.map +1 -0
- package/dist/modules/cart/components/CartItems/ItemMobile/MobileOutOfStockBadge.js +10 -0
- package/dist/modules/cart/components/CartItems/ItemMobile/MobileOutOfStockBadge.js.map +1 -0
- package/dist/modules/cart/components/CartItems/ItemMobile/index.d.ts.map +1 -1
- package/dist/modules/cart/components/CartItems/ItemMobile/index.js +36 -70
- package/dist/modules/cart/components/CartItems/ItemMobile/index.js.map +1 -1
- package/dist/modules/cart/components/CartItems/index.d.ts.map +1 -1
- package/dist/modules/cart/components/CartItems/index.js +10 -6
- package/dist/modules/cart/components/CartItems/index.js.map +1 -1
- package/dist/modules/cart/components/CartItems/style.d.ts +1 -1
- package/dist/modules/cart/components/CartItems/style.d.ts.map +1 -1
- package/dist/modules/cart/components/CartItems/style.js +67 -7
- package/dist/modules/cart/components/CartItems/style.js.map +1 -1
- package/dist/modules/cart/index.d.ts +0 -1
- package/dist/modules/cart/index.d.ts.map +1 -1
- package/dist/modules/cart/index.js +3 -1
- package/dist/modules/cart/index.js.map +1 -1
- package/dist/modules/checkout/CheckoutTemplate/StepReview/index.d.ts.map +1 -1
- package/dist/modules/checkout/CheckoutTemplate/StepReview/index.js +4 -5
- package/dist/modules/checkout/CheckoutTemplate/StepReview/index.js.map +1 -1
- package/dist/modules/checkout/CheckoutTemplate/StepShipping/index.d.ts +4 -1
- package/dist/modules/checkout/CheckoutTemplate/StepShipping/index.d.ts.map +1 -1
- package/dist/modules/checkout/CheckoutTemplate/StepShipping/index.js +13 -4
- package/dist/modules/checkout/CheckoutTemplate/StepShipping/index.js.map +1 -1
- package/dist/modules/checkout/CheckoutTemplate/index.d.ts.map +1 -1
- package/dist/modules/checkout/CheckoutTemplate/index.js +41 -5
- package/dist/modules/checkout/CheckoutTemplate/index.js.map +1 -1
- package/dist/modules/checkout/CheckoutTemplate/style.d.ts +1 -1
- package/dist/modules/checkout/CheckoutTemplate/style.d.ts.map +1 -1
- package/dist/modules/checkout/PaymentFailedTemplate/index.js +1 -1
- package/dist/modules/checkout/PaymentFailedTemplate/index.js.map +1 -1
- package/dist/modules/checkout/PaymentFailedTemplate/style.d.ts +1 -1
- package/dist/modules/checkout/PaymentFailedTemplate/style.d.ts.map +1 -1
- package/dist/modules/checkout/PaymentFailedTemplate/style.js.map +1 -1
- package/dist/modules/checkout/ThankYouTemplate/index.js +1 -1
- package/dist/modules/checkout/ThankYouTemplate/index.js.map +1 -1
- package/dist/modules/checkout/ThankYouTemplate/style.d.ts +1 -1
- package/dist/modules/checkout/ThankYouTemplate/style.d.ts.map +1 -1
- package/dist/modules/checkout/ThankYouTemplate/style.js.map +1 -1
- package/dist/modules/index.d.ts +1 -1
- package/dist/modules/index.js +2 -1
- package/dist/modules/index.js.map +1 -1
- package/dist/modules/order/EmptyOrders/style.d.ts +1 -1
- package/dist/modules/order/EmptyOrders/style.d.ts.map +1 -1
- package/dist/modules/order/EmptyOrders/style.js.map +1 -1
- package/dist/modules/order/OrderDetails/index.d.ts.map +1 -1
- package/dist/modules/order/OrderDetails/index.js +14 -14
- package/dist/modules/order/OrderDetails/index.js.map +1 -1
- package/dist/modules/order/OrderDetails/style.d.ts +1 -1
- package/dist/modules/order/OrderDetails/style.d.ts.map +1 -1
- package/dist/modules/order/OrderDetails/style.js.map +1 -1
- package/dist/modules/order/OrderHistoryTemplate/style.d.ts +1 -1
- package/dist/modules/order/OrderHistoryTemplate/style.d.ts.map +1 -1
- package/dist/modules/order/OrderIndividualTemplate/index.d.ts.map +1 -1
- package/dist/modules/order/OrderIndividualTemplate/index.js +5 -3
- package/dist/modules/order/OrderIndividualTemplate/index.js.map +1 -1
- package/dist/modules/order/OrderIndividualTemplate/style.d.ts +1 -1
- package/dist/modules/order/OrderIndividualTemplate/style.d.ts.map +1 -1
- package/dist/modules/order/OrderRatePopup/style.d.ts +1 -1
- package/dist/modules/order/OrderRatePopup/style.d.ts.map +1 -1
- package/dist/modules/order/OrderRateReview/style.d.ts +1 -1
- package/dist/modules/order/OrderRateReview/style.d.ts.map +1 -1
- package/dist/modules/order/OrderReview/style.d.ts +1 -1
- package/dist/modules/order/OrderReview/style.d.ts.map +1 -1
- package/dist/modules/order/OrderReviewPopup/style.d.ts +1 -1
- package/dist/modules/order/OrderReviewPopup/style.d.ts.map +1 -1
- package/dist/modules/order/OrderReviewPopup/style.js +1 -1
- package/dist/modules/order/OrderReviewTemplate/style.d.ts +1 -1
- package/dist/modules/order/OrderReviewTemplate/style.d.ts.map +1 -1
- package/dist/modules/order/OrderStatus/style.d.ts +1 -1
- package/dist/modules/order/OrderStatus/style.d.ts.map +1 -1
- package/dist/modules/order/OrderedItems/Item/index.d.ts.map +1 -1
- package/dist/modules/order/OrderedItems/Item/index.js +36 -31
- package/dist/modules/order/OrderedItems/Item/index.js.map +1 -1
- package/dist/modules/order/OrderedItems/ItemMobile/index.d.ts.map +1 -1
- package/dist/modules/order/OrderedItems/ItemMobile/index.js +32 -29
- package/dist/modules/order/OrderedItems/ItemMobile/index.js.map +1 -1
- package/dist/modules/order/OrderedItems/Review/Popup/index.d.ts +4 -0
- package/dist/modules/order/OrderedItems/Review/Popup/index.d.ts.map +1 -0
- package/dist/modules/order/OrderedItems/Review/Popup/index.js +70 -0
- package/dist/modules/order/OrderedItems/Review/Popup/index.js.map +1 -0
- package/dist/modules/order/OrderedItems/Review/Popup/style.d.ts +3 -0
- package/dist/modules/order/OrderedItems/Review/Popup/style.d.ts.map +1 -0
- package/dist/modules/order/OrderedItems/Review/Popup/style.js +326 -0
- package/dist/modules/order/OrderedItems/Review/Popup/style.js.map +1 -0
- package/dist/modules/order/OrderedItems/Review/index.d.ts +9 -0
- package/dist/modules/order/OrderedItems/Review/index.d.ts.map +1 -0
- package/dist/modules/order/OrderedItems/Review/index.js +57 -0
- package/dist/modules/order/OrderedItems/Review/index.js.map +1 -0
- package/dist/modules/order/OrderedItems/index.d.ts +2 -1
- package/dist/modules/order/OrderedItems/index.d.ts.map +1 -1
- package/dist/modules/order/OrderedItems/index.js +14 -6
- package/dist/modules/order/OrderedItems/index.js.map +1 -1
- package/dist/modules/order/OrderedItems/style.d.ts +1 -1
- package/dist/modules/order/OrderedItems/style.d.ts.map +1 -1
- package/dist/modules/order/OrderedItems/style.js +48 -12
- package/dist/modules/order/OrderedItems/style.js.map +1 -1
- package/dist/modules/order/OrderedItems/util.d.ts +4 -0
- package/dist/modules/order/OrderedItems/util.d.ts.map +1 -1
- package/dist/modules/order/OrderedItems/util.js +21 -0
- package/dist/modules/order/OrderedItems/util.js.map +1 -1
- package/dist/modules/order/OrdersList/Item/index.d.ts.map +1 -1
- package/dist/modules/order/OrdersList/Item/index.js +6 -7
- package/dist/modules/order/OrdersList/Item/index.js.map +1 -1
- package/dist/modules/order/OrdersList/ItemMobile/index.d.ts.map +1 -1
- package/dist/modules/order/OrdersList/ItemMobile/index.js +7 -7
- package/dist/modules/order/OrdersList/ItemMobile/index.js.map +1 -1
- package/dist/modules/order/OrdersList/index.d.ts.map +1 -1
- package/dist/modules/order/OrdersList/index.js +6 -4
- package/dist/modules/order/OrdersList/index.js.map +1 -1
- package/dist/modules/order/OrdersList/style.d.ts +1 -1
- package/dist/modules/order/OrdersList/style.d.ts.map +1 -1
- package/dist/modules/order/OrdersList/style.js +7 -7
- package/dist/modules/order/OrdersList/style.js.map +1 -1
- package/dist/modules/order/index.d.ts +1 -0
- package/dist/modules/order/index.d.ts.map +1 -1
- package/dist/modules/order/index.js +1 -0
- package/dist/modules/order/index.js.map +1 -1
- package/dist/modules/payment/AddNewCard/index.js +1 -1
- package/dist/modules/payment/AddNewCard/index.js.map +1 -1
- package/dist/modules/payment/AddNewCard/style.d.ts +1 -1
- package/dist/modules/payment/AddNewCard/style.d.ts.map +1 -1
- package/dist/modules/payment/AddNewCard/style.js +4 -1
- package/dist/modules/payment/AddNewCard/style.js.map +1 -1
- package/dist/modules/payment/Card/index.js +1 -1
- package/dist/modules/payment/Card/index.js.map +1 -1
- package/dist/modules/payment/Card/style.d.ts +1 -1
- package/dist/modules/payment/Card/style.d.ts.map +1 -1
- package/dist/modules/payment/Card/style.js +4 -1
- package/dist/modules/payment/Card/style.js.map +1 -1
- package/dist/modules/payment/Cards/style.d.ts +1 -1
- package/dist/modules/payment/Cards/style.d.ts.map +1 -1
- package/dist/modules/payment/Cards/style.js.map +1 -1
- package/dist/modules/payment/Payment/index.js +1 -1
- package/dist/modules/payment/Payment/index.js.map +1 -1
- package/dist/modules/payment/Payment/style.d.ts +1 -1
- package/dist/modules/payment/Payment/style.d.ts.map +1 -1
- package/dist/modules/payment/Payment/style.js.map +1 -1
- package/dist/modules/payment/PaymentMethodItem/style.d.ts +1 -1
- package/dist/modules/payment/PaymentMethodItem/style.d.ts.map +1 -1
- package/dist/modules/payment/PaymentMethodItem/style.js.map +1 -1
- package/dist/modules/payment/PaymentMethods/style.d.ts +1 -1
- package/dist/modules/payment/PaymentMethods/style.d.ts.map +1 -1
- package/dist/modules/payment/PaymentMethods/style.js.map +1 -1
- package/dist/modules/payment/PaymentMethodsTemplate/style.d.ts +1 -1
- package/dist/modules/payment/PaymentMethodsTemplate/style.d.ts.map +1 -1
- package/dist/modules/payment/PaymentWrap/style.d.ts +1 -1
- package/dist/modules/payment/PaymentWrap/style.d.ts.map +1 -1
- package/dist/modules/payment/PaymentWrap/style.js.map +1 -1
- package/dist/modules/payment/SelectPaymentMethodPopup/index.js +1 -1
- package/dist/modules/payment/SelectPaymentMethodPopup/index.js.map +1 -1
- package/dist/modules/payment/SelectPaymentMethodPopup/style.d.ts +1 -1
- package/dist/modules/payment/SelectPaymentMethodPopup/style.d.ts.map +1 -1
- package/dist/modules/payment/SelectPaymentMethodPopup/style.js.map +1 -1
- package/dist/modules/payment/SelectedPayment/index.js +1 -1
- package/dist/modules/payment/SelectedPayment/index.js.map +1 -1
- package/dist/translations/en.d.ts +23 -2
- package/dist/translations/en.d.ts.map +1 -1
- package/dist/translations/en.js +23 -2
- package/dist/translations/en.js.map +1 -1
- package/dist/translations/hy.d.ts +23 -2
- package/dist/translations/hy.d.ts.map +1 -1
- package/dist/translations/hy.js +23 -2
- package/dist/translations/hy.js.map +1 -1
- package/dist/translations/index.d.ts +374 -5
- package/dist/translations/index.d.ts.map +1 -1
- package/dist/translations/index.js +2 -1
- package/dist/translations/index.js.map +1 -1
- package/dist/translations/it.d.ts +309 -0
- package/dist/translations/it.d.ts.map +1 -0
- package/dist/translations/it.js +308 -0
- package/dist/translations/it.js.map +1 -0
- package/dist/translations/ru.d.ts +21 -1
- package/dist/translations/ru.d.ts.map +1 -1
- package/dist/translations/ru.js +25 -5
- package/dist/translations/ru.js.map +1 -1
- package/dist/utils/config.d.ts +48 -4
- package/dist/utils/config.d.ts.map +1 -1
- package/dist/utils/config.js +42 -7
- package/dist/utils/config.js.map +1 -1
- package/package.json +14 -6
- package/dist/modules/cart/CartProvider.d.ts +0 -79
- package/dist/modules/cart/CartProvider.d.ts.map +0 -1
- package/dist/modules/cart/CartProvider.js +0 -376
- package/dist/modules/cart/CartProvider.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/modules/cart/CartTemplate/Skeleton/SkeletonItem/index.js"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/modules/cart/CartTemplate/Skeleton/SkeletonItem/index.js"],"names":[],"mappings":";AAaA,uDAsCC;kBAnDiB,OAAO"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { useUi } from '@weareconceptstudio/core';
|
|
3
|
-
import { skeletonMobileCart, skeletonCart, skeletonCart1, skeletonCart2, skeletonCart3, skeletonCartBottom2, skeletonCartBottom1 } from '../icons';
|
|
3
|
+
import { skeletonMobileCart, skeletonCart, skeletonCart1, skeletonCart2, skeletonCart3, skeletonCartBottom2, skeletonCartBottom1, } from '../icons';
|
|
4
4
|
import SkeletonItemCartStyle from './style';
|
|
5
5
|
const SkeletonItemCart = () => {
|
|
6
6
|
const { winWidth } = useUi();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/cart/CartTemplate/Skeleton/SkeletonItem/index.js"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,KAAK,EAAE,MAAM,0BAA0B,CAAC;AACjD,OAAO,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/cart/CartTemplate/Skeleton/SkeletonItem/index.js"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,KAAK,EAAE,MAAM,0BAA0B,CAAC;AACjD,OAAO,EACN,kBAAkB,EAClB,YAAY,EACZ,aAAa,EACb,aAAa,EACb,aAAa,EACb,mBAAmB,EACnB,mBAAmB,GACnB,MAAM,UAAU,CAAC;AAClB,OAAO,qBAAqB,MAAM,SAAS,CAAC;AAE5C,MAAM,gBAAgB,GAAG,GAAG,EAAE;IAC7B,MAAM,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAE,CAAC;IAE7B,OAAO,CACN,oBAAC,qBAAqB;QACrB,6BAAK,SAAS,EAAC,uBAAuB;YACrC,6BAAK,SAAS,EAAC,MAAM,GAAG;YAExB,6BAAK,SAAS,EAAC,uBAAuB,IACpC,QAAQ,GAAG,GAAG,CAAC,CAAC,CAAC,CACjB,kBAAkB,CAClB,CAAC,CAAC,CAAC,QAAQ,GAAG,IAAI,CAAC,CAAC,CAAC,CACrB,6BAAK,SAAS,EAAC,sBAAsB,IAAE,YAAY,CAAO,CAC1D,CAAC,CAAC,CAAC,CACH;gBACC,6BAAK,SAAS,EAAC,sBAAsB;oBACpC,iCAAM,aAAa,CAAO;oBAC1B,iCAAM,aAAa,CAAO;oBAE1B;wBACC,6BAAK,SAAS,EAAC,wCAAwC,IAAE,aAAa,CAAO,CACxE;oBAEN;wBACC,6BAAK,SAAS,EAAC,sBAAsB,IAAE,aAAa,CAAO,CACtD,CACD;gBAEN,6BAAK,SAAS,EAAC,qBAAqB;oBAClC,mBAAmB;oBACnB,mBAAmB,CACf,CACJ,CACH,CACI,CACD,CACiB,CACxB,CAAC;AACH,CAAC,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export default SkeletonItemCartStyle;
|
|
2
|
-
declare const SkeletonItemCartStyle: import("styled-components
|
|
2
|
+
declare const SkeletonItemCartStyle: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>>;
|
|
3
3
|
//# sourceMappingURL=style.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"style.d.ts","sourceRoot":"","sources":["../../../../../../src/modules/cart/CartTemplate/Skeleton/SkeletonItem/style.js"],"names":[],"mappings":";AAEA,
|
|
1
|
+
{"version":3,"file":"style.d.ts","sourceRoot":"","sources":["../../../../../../src/modules/cart/CartTemplate/Skeleton/SkeletonItem/style.js"],"names":[],"mappings":";AAEA,oPAuHE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"style.js","sourceRoot":"","sources":["../../../../../../src/modules/cart/CartTemplate/Skeleton/SkeletonItem/style.js"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,mBAAmB,CAAC;AAEvC,MAAM,qBAAqB,GAAG,MAAM,CAAC,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;sCAyBF,CAAC,KAAK,EAAE,EAAE,
|
|
1
|
+
{"version":3,"file":"style.js","sourceRoot":"","sources":["../../../../../../src/modules/cart/CartTemplate/Skeleton/SkeletonItem/style.js"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,mBAAmB,CAAC;AAEvC,MAAM,qBAAqB,GAAG,MAAM,CAAC,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;sCAyBF,CAAC,KAAK,EAAE,EAAE,CAC7C,KAAK,CAAC,KAAK,CAAC,OAAO,CAAC,UAAU,CAAC,wBAAwB,qBAAqB,CAAC,KAAK,EAAE,EAAE,CACtF,KAAK,CAAC,KAAK,CAAC,OAAO,CAAC,UAAU,CAAC,oBAAoB;;;;sCAIhB,CAAC,KAAK,EAAE,EAAE,CAC7C,KAAK,CAAC,KAAK,CAAC,OAAO,CAAC,UAAU,CAAC,uBAAuB,qBAAqB,CAAC,KAAK,EAAE,EAAE,CACrF,KAAK,CAAC,KAAK,CAAC,OAAO,CAAC,UAAU,CAAC,oBAAoB;;;;sCAIhB,CAAC,KAAK,EAAE,EAAE,CAC7C,KAAK,CAAC,KAAK,CAAC,OAAO,CAAC,UAAU,CAAC,uBAAuB,qBAAqB,CAAC,KAAK,EAAE,EAAE,CACrF,KAAK,CAAC,KAAK,CAAC,OAAO,CAAC,UAAU,CAAC,oBAAoB;;;;;;;;;sCAShB,CAAC,KAAK,EAAE,EAAE,CAC7C,KAAK,CAAC,KAAK,CAAC,OAAO,CAAC,UAAU,CAAC,uBAAuB,qBAAqB,CAAC,KAAK,EAAE,EAAE,CACrF,KAAK,CAAC,KAAK,CAAC,OAAO,CAAC,UAAU,CAAC,qBAAqB;;;;;;;;;;;;;;;;;sCAiBjB,CAAC,KAAK,EAAE,EAAE,CAC7C,KAAK,CAAC,KAAK,CAAC,OAAO,CAAC,UAAU,CAAC,wBAAwB,qBAAqB,CAAC,KAAK,EAAE,EAAE,CACtF,KAAK,CAAC,KAAK,CAAC,OAAO,CAAC,UAAU,CAAC,kBAAkB;;;;;;;;;;;;;;;;;sCAiBd,CAAC,KAAK,EAAE,EAAE,CAC7C,KAAK,CAAC,KAAK,CAAC,OAAO,CAAC,UAAU,CAAC,qBAAqB,qBAAqB,CAAC,KAAK,EAAE,EAAE,CACnF,KAAK,CAAC,KAAK,CAAC,OAAO,CAAC,UAAU,CAAC,mBAAmB;;;;;;;;;;;;;;;;;sCAiBf,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,KAAK,CAAC,OAAO,CAAC,UAAU,CAAC,sBAAsB;;;;;;;;;;;;;;CAcrG,CAAC;AACF,eAAe,qBAAqB,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { useUi } from '@weareconceptstudio/core';
|
|
3
3
|
import { useAccountContext } from '../../../../AccountProvider';
|
|
4
|
-
import { useCart } from '
|
|
4
|
+
import { useCart } from '@weareconceptstudio/cart';
|
|
5
5
|
import { skeletonCategoryName, skeletonMenuTitle, skeletonShopUrl, skeletonCategoryNameAdapting } from './icons';
|
|
6
6
|
import SkeletonItemCart from './SkeletonItem';
|
|
7
7
|
import SkeletonCartTemplateStyle from './style';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/cart/CartTemplate/Skeleton/index.js"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,KAAK,EAAE,MAAM,0BAA0B,CAAC;AACjD,OAAO,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AAChE,OAAO,EAAE,OAAO,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/cart/CartTemplate/Skeleton/index.js"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,KAAK,EAAE,MAAM,0BAA0B,CAAC;AACjD,OAAO,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AAChE,OAAO,EAAE,OAAO,EAAE,MAAM,0BAA0B,CAAC;AAEnD,OAAO,EAAE,oBAAoB,EAAE,iBAAiB,EAAE,eAAe,EAAE,4BAA4B,EAAE,MAAM,SAAS,CAAC;AACjH,OAAO,gBAAgB,MAAM,gBAAgB,CAAC;AAE9C,OAAO,yBAAyB,MAAM,SAAS,CAAC;AAEhD,MAAM,oBAAoB,GAAG,GAAG,EAAE;IACjC,MAAM,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAE,CAAC;IAC7B,MAAM,EAAE,OAAO,EAAE,GAAG,iBAAiB,EAAE,CAAC;IACxC,MAAM,EAAE,cAAc,EAAE,GAAG,OAAO,EAAE,CAAC;IAErC,OAAO,CACN,oBAAC,yBAAyB,IAAC,SAAS,EAAE,cAAc,CAAC,CAAC,CAAC,gBAAgB,CAAC,CAAC,CAAC,EAAE;QAC3E,6BAAK,SAAS,EAAC,UAAU;YACvB,OAAO,CAAC,CAAC,CAAC,6BAAK,SAAS,EAAC,aAAa,IAAE,eAAe,CAAO,CAAC,CAAC,CAAC,yCAAK;YAEvE,6BAAK,SAAS,EAAC,aAAa;gBAC3B,6BAAK,SAAS,EAAC,eAAe,IAAE,iBAAiB,CAAO;gBAEvD,cAAc,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,6BAAK,SAAS,EAAC,iBAAiB,GAAO;gBAE/D,QAAQ,GAAG,IAAI,CAAC,CAAC,CAAC,CAClB,6BAAK,SAAS,EAAC,eAAe,IAAE,4BAA4B,CAAO,CACnE,CAAC,CAAC,CAAC,CACH,6BAAK,SAAS,EAAC,eAAe,IAC5B,KAAK,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE;oBACvC,OAAO,6BAAK,GAAG,EAAE,CAAC,IAAG,oBAAoB,CAAO,CAAC;gBAClD,CAAC,CAAC,CACG,CACN,CACI;YAEL,KAAK,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE;gBACvC,OAAO,oBAAC,gBAAgB,IAAC,GAAG,EAAE,CAAC,GAAI,CAAC;YACrC,CAAC,CAAC;YAEF,6BAAK,SAAS,EAAC,MAAM,GAAG,CACnB,CACqB,CAC5B,CAAC;AACH,CAAC,CAAC;AAEF,eAAe,oBAAoB,CAAC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export default SkeletonCartTemplateStyle;
|
|
2
|
-
declare const SkeletonCartTemplateStyle: import("styled-components
|
|
2
|
+
declare const SkeletonCartTemplateStyle: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, never>>;
|
|
3
3
|
//# sourceMappingURL=style.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"style.d.ts","sourceRoot":"","sources":["../../../../../src/modules/cart/CartTemplate/Skeleton/style.js"],"names":[],"mappings":";AAEA
|
|
1
|
+
{"version":3,"file":"style.d.ts","sourceRoot":"","sources":["../../../../../src/modules/cart/CartTemplate/Skeleton/style.js"],"names":[],"mappings":";AAEA,kPA6LE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"style.js","sourceRoot":"","sources":["../../../../../src/modules/cart/CartTemplate/Skeleton/style.js"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,mBAAmB,CAAC;AAEvC,MAAM,yBAAyB,GAAG,MAAM,CAAC,OAAO,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sCAyEV,CAAC,KAAK,EAAE,EAAE,
|
|
1
|
+
{"version":3,"file":"style.js","sourceRoot":"","sources":["../../../../../src/modules/cart/CartTemplate/Skeleton/style.js"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,mBAAmB,CAAC;AAEvC,MAAM,yBAAyB,GAAG,MAAM,CAAC,OAAO,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sCAyEV,CAAC,KAAK,EAAE,EAAE,CAC7C,KAAK,CAAC,KAAK,CAAC,OAAO,CAAC,UAAU,CAAC,wBAAwB,qBAAqB,CAAC,KAAK,EAAE,EAAE,CACtF,KAAK,CAAC,KAAK,CAAC,OAAO,CAAC,UAAU,CAAC,oBAAoB;;;;;;;sCAOhB,CAAC,KAAK,EAAE,EAAE,CAC7C,KAAK,CAAC,KAAK,CAAC,OAAO,CAAC,UAAU,CAAC,uBAAuB,qBAAqB,CAAC,KAAK,EAAE,EAAE,CACrF,KAAK,CAAC,KAAK,CAAC,OAAO,CAAC,UAAU,CAAC,oBAAoB;;;;;;;sCAOhB,CAAC,KAAK,EAAE,EAAE,CAC7C,KAAK,CAAC,KAAK,CAAC,OAAO,CAAC,UAAU,CAAC,uBAAuB,qBAAqB,CAAC,KAAK,EAAE,EAAE,CACrF,KAAK,CAAC,KAAK,CAAC,OAAO,CAAC,UAAU,CAAC,oBAAoB;;;;;;;;;;;;sCAYhB,CAAC,KAAK,EAAE,EAAE,CAC7C,KAAK,CAAC,KAAK,CAAC,OAAO,CAAC,UAAU,CAAC,uBAAuB,qBAAqB,CAAC,KAAK,EAAE,EAAE,CACrF,KAAK,CAAC,KAAK,CAAC,OAAO,CAAC,UAAU,CAAC,qBAAqB;;;;;;;;;;;;;;;;;;;;sCAoBjB,CAAC,KAAK,EAAE,EAAE,CAC7C,KAAK,CAAC,KAAK,CAAC,OAAO,CAAC,UAAU,CAAC,wBAAwB,qBAAqB,CAAC,KAAK,EAAE,EAAE,CACtF,KAAK,CAAC,KAAK,CAAC,OAAO,CAAC,UAAU,CAAC,kBAAkB;;;;;;;;;;;;;;;;;;;;sCAoBd,CAAC,KAAK,EAAE,EAAE,CAC7C,KAAK,CAAC,KAAK,CAAC,OAAO,CAAC,UAAU,CAAC,qBAAqB,qBAAqB,CAAC,KAAK,EAAE,EAAE,CACnF,KAAK,CAAC,KAAK,CAAC,OAAO,CAAC,UAAU,CAAC,mBAAmB;;;;;;;;;;;;;;;;;;;;sCAoBf,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,KAAK,CAAC,OAAO,CAAC,UAAU,CAAC,sBAAsB;;;;;;;;;;;;;;;;;;CAkBrG,CAAC;AAEF,eAAe,yBAAyB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/modules/cart/CartTemplate/index.js"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/modules/cart/CartTemplate/index.js"],"names":[],"mappings":";AAgCA;;;;;sBA2EC;kBA3GwC,OAAO"}
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import React, { useEffect, useRef } from 'react';
|
|
2
2
|
import { Page, useTranslation } from '@weareconceptstudio/core';
|
|
3
|
-
import {
|
|
3
|
+
import { useCart } from '@weareconceptstudio/cart';
|
|
4
|
+
import { CartItems, EmptyCart } from '..';
|
|
4
5
|
import { TotalCheckout, AccountButton } from '../../../components';
|
|
5
6
|
import { useAccountContext } from '../../../AccountProvider';
|
|
6
7
|
import AccountContainer from '../../../components/AccountContainer';
|
|
7
8
|
//* SVG
|
|
8
9
|
const leftArrow = (React.createElement("svg", { fill: 'none', viewBox: '0 0 16 16', xmlns: 'http://www.w3.org/2000/svg' },
|
|
9
|
-
React.createElement("path", { d: 'M6.11061 7.98292L11.0193 12.8916L9.91087 14L5.00219 9.09133L6.11061 7.98292Z', fill: 'var(--
|
|
10
|
-
React.createElement("path", { d: 'M4.99977 6.90868L9.90845 2L11.0169 3.10841L6.10818 8.01709L4.99977 6.90868Z', fill: 'var(--
|
|
10
|
+
React.createElement("path", { d: 'M6.11061 7.98292L11.0193 12.8916L9.91087 14L5.00219 9.09133L6.11061 7.98292Z', fill: 'var(--account_primaryColor14)' }),
|
|
11
|
+
React.createElement("path", { d: 'M4.99977 6.90868L9.90845 2L11.0169 3.10841L6.10818 8.01709L4.99977 6.90868Z', fill: 'var(--account_primaryColor14)' })));
|
|
11
12
|
//* Styles
|
|
12
13
|
import CartTemplateStyle from './style';
|
|
13
14
|
//* Skeleton
|
|
@@ -15,8 +16,15 @@ import SkeletonCartTemplate from './Skeleton';
|
|
|
15
16
|
import AccountPageWrapper from '../../../components/AccountPageWrapper';
|
|
16
17
|
const CartTemplate = ({ children, checkoutUrl = '/checkout/', moreMenu, emptyCartIcon }) => {
|
|
17
18
|
const { translate } = useTranslation();
|
|
18
|
-
const { shopUrl } = useAccountContext();
|
|
19
|
-
const { itemsCount, loading, toggleCartItem, deleteCartItem } = useCart();
|
|
19
|
+
const { shopUrl, cart } = useAccountContext();
|
|
20
|
+
const { itemsCount, loading, toggleCartItem, deleteCartItem, getCart, mergeCart, isLoggedIn } = useCart();
|
|
21
|
+
// Fetch cart when component mounts (like old version)
|
|
22
|
+
useEffect(() => {
|
|
23
|
+
getCart();
|
|
24
|
+
if (isLoggedIn) {
|
|
25
|
+
mergeCart();
|
|
26
|
+
}
|
|
27
|
+
}, []);
|
|
20
28
|
return (React.createElement(AccountPageWrapper, { title: 'account.cart_checkout.myCart' },
|
|
21
29
|
React.createElement(Page, { className: 'cart use-account' },
|
|
22
30
|
React.createElement(AccountContainer, { className: `second-version` },
|
|
@@ -28,14 +36,11 @@ const CartTemplate = ({ children, checkoutUrl = '/checkout/', moreMenu, emptyCar
|
|
|
28
36
|
shopUrl ? (React.createElement(AccountButton, { url: shopUrl, btnType: `purple-text`, className: `back-to-shop` },
|
|
29
37
|
leftArrow,
|
|
30
38
|
translate('account.general_actions.backToShop'))) : null,
|
|
31
|
-
React.createElement(CartItems, {
|
|
39
|
+
React.createElement(CartItems, { className: `cart-st-wrap`, title: 'account.cart_checkout.myCart', actions: {
|
|
32
40
|
add: toggleCartItem,
|
|
33
41
|
delete: deleteCartItem,
|
|
34
42
|
}, additionalParameters: {
|
|
35
|
-
|
|
36
|
-
select: true,
|
|
37
|
-
horizontalLine: true,
|
|
38
|
-
edit: { list: false },
|
|
43
|
+
...cart.item,
|
|
39
44
|
} }),
|
|
40
45
|
shopUrl ? (React.createElement(AccountButton, { url: shopUrl, btnType: `purple-text`, className: `continue-shop-text`, text: `account.general_actions.continueShopping` })) : null,
|
|
41
46
|
moreMenu || null)) : (React.createElement(EmptyCart, { emptyCartIcon: emptyCartIcon }))) : (React.createElement(SkeletonCartTemplate, null))),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/modules/cart/CartTemplate/index.js"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AACjD,OAAO,EAAE,IAAI,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAChE,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/modules/cart/CartTemplate/index.js"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AACjD,OAAO,EAAE,IAAI,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAChE,OAAO,EAAE,OAAO,EAAE,MAAM,0BAA0B,CAAC;AACnD,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,IAAI,CAAC;AAC1C,OAAO,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACnE,OAAO,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAC7D,OAAO,gBAAgB,MAAM,sCAAsC,CAAC;AAEpE,OAAO;AACP,MAAM,SAAS,GAAG,CACjB,6BACC,IAAI,EAAC,MAAM,EACX,OAAO,EAAC,WAAW,EACnB,KAAK,EAAC,4BAA4B;IAClC,8BACC,CAAC,EAAC,8EAA8E,EAChF,IAAI,EAAC,+BAA+B,GACnC;IACF,8BACC,CAAC,EAAC,6EAA6E,EAC/E,IAAI,EAAC,+BAA+B,GACnC,CACG,CACN,CAAC;AAEF,UAAU;AACV,OAAO,iBAAiB,MAAM,SAAS,CAAC;AAExC,YAAY;AACZ,OAAO,oBAAoB,MAAM,YAAY,CAAC;AAC9C,OAAO,kBAAkB,MAAM,wCAAwC,CAAC;AAExE,MAAM,YAAY,GAAG,CAAC,EAAE,QAAQ,EAAE,WAAW,GAAG,YAAY,EAAE,QAAQ,EAAE,aAAa,EAAE,EAAE,EAAE;IAC1F,MAAM,EAAE,SAAS,EAAE,GAAG,cAAc,EAAE,CAAC;IACvC,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,GAAG,iBAAiB,EAAE,CAAC;IAC9C,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,cAAc,EAAE,cAAc,EAAE,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,GAAG,OAAO,EAAE,CAAC;IAE1G,sDAAsD;IACtD,SAAS,CAAC,GAAG,EAAE;QACd,OAAO,EAAE,CAAC;QACV,IAAI,UAAU,EAAE,CAAC;YAChB,SAAS,EAAE,CAAC;QACb,CAAC;IACF,CAAC,EAAE,EAAE,CAAC,CAAC;IAEP,OAAO,CACN,oBAAC,kBAAkB,IAAC,KAAK,EAAE,8BAA8B;QACxD,oBAAC,IAAI,IAAC,SAAS,EAAE,kBAAkB;YAClC,oBAAC,gBAAgB,IAAC,SAAS,EAAE,gBAAgB;gBAC5C,oBAAC,iBAAiB;oBACjB,oBAAC,aAAa,IACb,WAAW,EAAE;4BACZ,GAAG,EAAE,WAAW;4BAChB,IAAI,EAAE,yCAAyC;yBAC/C,IACA,CAAC,OAAO,CAAC,CAAC,CAAC,CACX,UAAU,GAAG,CAAC,CAAC,CAAC,CAAC,CAChB;wBACE,OAAO,CAAC,CAAC,CAAC,CACV,oBAAC,aAAa,IACb,GAAG,EAAE,OAAO,EACZ,OAAO,EAAE,aAAa,EACtB,SAAS,EAAE,cAAc;4BACxB,SAAS;4BACT,SAAS,CAAC,oCAAoC,CAAC,CACjC,CAChB,CAAC,CAAC,CAAC,IAAI;wBAER,oBAAC,SAAS,IACT,SAAS,EAAE,cAAc,EACzB,KAAK,EAAE,8BAA8B,EACrC,OAAO,EAAE;gCACR,GAAG,EAAE,cAAc;gCACnB,MAAM,EAAE,cAAc;6BACtB,EACD,oBAAoB,EAAE;gCACrB,GAAG,IAAI,CAAC,IAAI;6BACZ,GACA;wBAED,OAAO,CAAC,CAAC,CAAC,CACV,oBAAC,aAAa,IACb,GAAG,EAAE,OAAO,EACZ,OAAO,EAAE,aAAa,EACtB,SAAS,EAAE,oBAAoB,EAC/B,IAAI,EAAE,0CAA0C,GAC/C,CACF,CAAC,CAAC,CAAC,IAAI;wBAEP,QAAQ,IAAI,IAAI,CACf,CACH,CAAC,CAAC,CAAC,CACH,oBAAC,SAAS,IAAC,aAAa,EAAE,aAAa,GAAI,CAC3C,CACD,CAAC,CAAC,CAAC,CACH,oBAAC,oBAAoB,OAAG,CACxB,CACc;oBAEf,QAAQ;oBAET,6BAAK,SAAS,EAAC,YAAY,GAAG,CACX,CACF,CACb,CACa,CACrB,CAAC;AACH,CAAC,CAAC;AAEF,eAAe,YAAY,CAAC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export default CartTemplateStyle;
|
|
2
|
-
declare const CartTemplateStyle: import("styled-components
|
|
2
|
+
declare const CartTemplateStyle: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, never>>;
|
|
3
3
|
//# sourceMappingURL=style.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"style.d.ts","sourceRoot":"","sources":["../../../../src/modules/cart/CartTemplate/style.js"],"names":[],"mappings":";AAEA,
|
|
1
|
+
{"version":3,"file":"style.d.ts","sourceRoot":"","sources":["../../../../src/modules/cart/CartTemplate/style.js"],"names":[],"mappings":";AAEA,0OAoHE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/modules/cart/EmptyCart/index.js"],"names":[],"mappings":";AAUA;;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/modules/cart/EmptyCart/index.js"],"names":[],"mappings":";AAUA;;sBAgCC;kBA1CiB,OAAO"}
|
|
@@ -6,10 +6,12 @@ import { useAccountContext } from '../../../AccountProvider';
|
|
|
6
6
|
//* Style
|
|
7
7
|
import EmptyCartStyle from './style';
|
|
8
8
|
const EmptyCart = ({ emptyCartIcon }) => {
|
|
9
|
-
const { shopUrl } = useAccountContext();
|
|
10
|
-
return (React.createElement(EmptyCartStyle,
|
|
9
|
+
const { shopUrl, globalSettings } = useAccountContext();
|
|
10
|
+
return (React.createElement(EmptyCartStyle, { "$hasEmptyCartIcon": globalSettings.hasEmptyCartIcon },
|
|
11
11
|
React.createElement("div", { className: `empty-cart-wrap` },
|
|
12
|
-
|
|
12
|
+
globalSettings.hasEmptyCartIcon
|
|
13
|
+
? emptyCartIcon || React.createElement("div", { className: 'wrapper-icon' }, emptyCartIconDefault)
|
|
14
|
+
: null,
|
|
13
15
|
React.createElement(Text, { tag: `h4`, className: `account-h6 account-font-bold account-primary-color1 empty-cart-title`, text: `account.cart_checkout.cartEmpty` }),
|
|
14
16
|
React.createElement(Text, { className: `account-p account-p2 account-font-regular account-primary-color1 empty-cart-description`, text: `account.cart_checkout.cartEmptyDesc` }),
|
|
15
17
|
shopUrl ? (React.createElement(AccountButton, { url: shopUrl, btnType: 'purple-text', className: 'empty-cart-btn', text: `account.general_actions.shopNow` })) : null)));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/modules/cart/EmptyCart/index.js"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,IAAI,EAAE,MAAM,0BAA0B,CAAC;AAChD,OAAO,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAC;AAC/C,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACpD,OAAO,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAE7D,SAAS;AACT,OAAO,cAAc,MAAM,SAAS,CAAC;AAErC,MAAM,SAAS,GAAG,CAAC,EAAE,aAAa,EAAE,EAAE,EAAE;IACvC,MAAM,EAAE,OAAO,EAAE,GAAG,iBAAiB,EAAE,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/modules/cart/EmptyCart/index.js"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,IAAI,EAAE,MAAM,0BAA0B,CAAC;AAChD,OAAO,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAC;AAC/C,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACpD,OAAO,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAE7D,SAAS;AACT,OAAO,cAAc,MAAM,SAAS,CAAC;AAErC,MAAM,SAAS,GAAG,CAAC,EAAE,aAAa,EAAE,EAAE,EAAE;IACvC,MAAM,EAAE,OAAO,EAAE,cAAc,EAAE,GAAG,iBAAiB,EAAE,CAAC;IAExD,OAAO,CACN,oBAAC,cAAc,yBAAoB,cAAc,CAAC,gBAAgB;QACjE,6BAAK,SAAS,EAAE,iBAAiB;YAC/B,cAAc,CAAC,gBAAgB;gBAC/B,CAAC,CAAC,aAAa,IAAI,6BAAK,SAAS,EAAC,cAAc,IAAE,oBAAoB,CAAO;gBAC7E,CAAC,CAAC,IAAI;YAEP,oBAAC,IAAI,IACJ,GAAG,EAAE,IAAI,EACT,SAAS,EAAE,sEAAsE,EACjF,IAAI,EAAE,iCAAiC,GACtC;YAEF,oBAAC,IAAI,IACJ,SAAS,EAAE,yFAAyF,EACpG,IAAI,EAAE,qCAAqC,GAC1C;YAED,OAAO,CAAC,CAAC,CAAC,CACV,oBAAC,aAAa,IACb,GAAG,EAAE,OAAO,EACZ,OAAO,EAAE,aAAa,EACtB,SAAS,EAAE,gBAAgB,EAC3B,IAAI,EAAE,iCAAiC,GACtC,CACF,CAAC,CAAC,CAAC,IAAI,CACH,CACU,CACjB,CAAC;AACH,CAAC,CAAC;AAEF,eAAe,SAAS,CAAC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export default EmptyCartStyle;
|
|
2
|
-
declare const EmptyCartStyle: import("styled-components
|
|
2
|
+
declare const EmptyCartStyle: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, never>>;
|
|
3
3
|
//# sourceMappingURL=style.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"style.d.ts","sourceRoot":"","sources":["../../../../src/modules/cart/EmptyCart/style.js"],"names":[],"mappings":";AAEA,
|
|
1
|
+
{"version":3,"file":"style.d.ts","sourceRoot":"","sources":["../../../../src/modules/cart/EmptyCart/style.js"],"names":[],"mappings":";AAEA,uOAgHE"}
|
|
@@ -6,7 +6,7 @@ const EmptyCartStyle = styled.section `
|
|
|
6
6
|
--account_imageHeight: fit-content;
|
|
7
7
|
--account_imageWidth: 41.4%;
|
|
8
8
|
--account_emptyWrapMTop: var(--sp22x);
|
|
9
|
-
--
|
|
9
|
+
--account_emptyTitleMTop: var(--sp10x);
|
|
10
10
|
|
|
11
11
|
.empty-cart-wrap {
|
|
12
12
|
margin-top: var(--account_emptyWrapMTop);
|
|
@@ -14,7 +14,7 @@ const EmptyCartStyle = styled.section `
|
|
|
14
14
|
width: 100%;
|
|
15
15
|
|
|
16
16
|
.empty-cart-title {
|
|
17
|
-
margin-top: var(--
|
|
17
|
+
margin-top: ${(props) => (props.$hasEmptyCartIcon ? 'var(--account_emptyTitleMTop)' : '0')};
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
.empty-cart-description {
|
|
@@ -29,8 +29,9 @@ const EmptyCartStyle = styled.section `
|
|
|
29
29
|
.wrapper-icon {
|
|
30
30
|
display: flex;
|
|
31
31
|
height: fit-content;
|
|
32
|
+
|
|
32
33
|
svg {
|
|
33
|
-
fill: var(--
|
|
34
|
+
fill: var(--account_primaryColor1);
|
|
34
35
|
max-width: var(--account_imageWidth);
|
|
35
36
|
height: var(--account_imageHeight);
|
|
36
37
|
}
|
|
@@ -41,7 +42,7 @@ const EmptyCartStyle = styled.section `
|
|
|
41
42
|
--account_descriptionMTop: var(--sp2x);
|
|
42
43
|
--account_btnWrapMTop: var(--sp5x);
|
|
43
44
|
--account_emptyWrapMTop: var(--sp18x);
|
|
44
|
-
--
|
|
45
|
+
--account_emptyTitleMTop: var(--sp8x);
|
|
45
46
|
--account_imageWidth: 41.8%;
|
|
46
47
|
}
|
|
47
48
|
|
|
@@ -50,7 +51,7 @@ const EmptyCartStyle = styled.section `
|
|
|
50
51
|
--account_descriptionMTop: var(--sp2x);
|
|
51
52
|
--account_btnWrapMTop: var(--sp4x);
|
|
52
53
|
--account_emptyWrapMTop: var(--sp9x);
|
|
53
|
-
--
|
|
54
|
+
--account_emptyTitleMTop: var(--sp6x);
|
|
54
55
|
--account_imageWidth: 30.8%;
|
|
55
56
|
}
|
|
56
57
|
|
|
@@ -59,7 +60,7 @@ const EmptyCartStyle = styled.section `
|
|
|
59
60
|
--account_descriptionMTop: var(--sp2x);
|
|
60
61
|
--account_btnWrapMTop: var(--sp4x);
|
|
61
62
|
--account_emptyWrapMTop: var(--sp8x);
|
|
62
|
-
--
|
|
63
|
+
--account_emptyTitleMTop: var(--sp5x);
|
|
63
64
|
--account_imageWidth: 34.8%;
|
|
64
65
|
}
|
|
65
66
|
|
|
@@ -68,7 +69,7 @@ const EmptyCartStyle = styled.section `
|
|
|
68
69
|
--account_descriptionMTop: var(--sp2x);
|
|
69
70
|
--account_btnWrapMTop: var(--sp3x);
|
|
70
71
|
--account_emptyWrapMTop: var(--sp11x);
|
|
71
|
-
--
|
|
72
|
+
--account_emptyTitleMTop: var(--sp6x);
|
|
72
73
|
--account_imageWidth: 32.5%;
|
|
73
74
|
}
|
|
74
75
|
|
|
@@ -77,7 +78,7 @@ const EmptyCartStyle = styled.section `
|
|
|
77
78
|
--account_descriptionMTop: var(--sp2x);
|
|
78
79
|
--account_btnWrapMTop: var(--sp3x);
|
|
79
80
|
--account_emptyWrapMTop: var(--sp9x);
|
|
80
|
-
--
|
|
81
|
+
--account_emptyTitleMTop: var(--sp5x);
|
|
81
82
|
--account_imageWidth: 32.5%;
|
|
82
83
|
}
|
|
83
84
|
|
|
@@ -86,7 +87,7 @@ const EmptyCartStyle = styled.section `
|
|
|
86
87
|
--account_descriptionMTop: var(--sp2x);
|
|
87
88
|
--account_btnWrapMTop: var(--sp3x);
|
|
88
89
|
--account_emptyWrapMTop: var(--sp19x);
|
|
89
|
-
--
|
|
90
|
+
--account_emptyTitleMTop: var(--sp5x);
|
|
90
91
|
--account_imageWidth: 24.8%;
|
|
91
92
|
}
|
|
92
93
|
|
|
@@ -95,7 +96,7 @@ const EmptyCartStyle = styled.section `
|
|
|
95
96
|
--account_descriptionMTop: var(--sp1x);
|
|
96
97
|
--account_btnWrapMTop: var(--sp3x);
|
|
97
98
|
--account_emptyWrapMTop: var(--sp16x);
|
|
98
|
-
--
|
|
99
|
+
--account_emptyTitleMTop: var(--sp5x);
|
|
99
100
|
--account_imageWidth: 29.1%;
|
|
100
101
|
}
|
|
101
102
|
`;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"style.js","sourceRoot":"","sources":["../../../../src/modules/cart/EmptyCart/style.js"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,mBAAmB,CAAC;AAEvC,MAAM,cAAc,GAAG,MAAM,CAAC,OAAO,CAAA
|
|
1
|
+
{"version":3,"file":"style.js","sourceRoot":"","sources":["../../../../src/modules/cart/EmptyCart/style.js"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,mBAAmB,CAAC;AAEvC,MAAM,cAAc,GAAG,MAAM,CAAC,OAAO,CAAA;;;;;;;;;;;;;;;iBAepB,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC,KAAK,CAAC,iBAAiB,CAAC,CAAC,CAAC,+BAA+B,CAAC,CAAC,CAAC,GAAG,CAAC;;;;;;;;;;;;;;;;;;;;;;;sCAuBvD,CAAC,KAAK,EAAE,EAAE,CAC7C,KAAK,CAAC,KAAK,CAAC,OAAO,CAAC,UAAU,CAAC,wBAAwB,qBAAqB,CAAC,KAAK,EAAE,EAAE,CACtF,KAAK,CAAC,KAAK,CAAC,OAAO,CAAC,UAAU,CAAC,oBAAoB;;;;;;;;;sCAShB,CAAC,KAAK,EAAE,EAAE,CAC7C,KAAK,CAAC,KAAK,CAAC,OAAO,CAAC,UAAU,CAAC,uBAAuB,qBAAqB,CAAC,KAAK,EAAE,EAAE,CACrF,KAAK,CAAC,KAAK,CAAC,OAAO,CAAC,UAAU,CAAC,oBAAoB;;;;;;;;;sCAShB,CAAC,KAAK,EAAE,EAAE,CAC7C,KAAK,CAAC,KAAK,CAAC,OAAO,CAAC,UAAU,CAAC,uBAAuB,qBAAqB,CAAC,KAAK,EAAE,EAAE,CACrF,KAAK,CAAC,KAAK,CAAC,OAAO,CAAC,UAAU,CAAC,oBAAoB;;;;;;;;;sCAShB,CAAC,KAAK,EAAE,EAAE,CAC7C,KAAK,CAAC,KAAK,CAAC,OAAO,CAAC,UAAU,CAAC,uBAAuB,qBAAqB,CAAC,KAAK,EAAE,EAAE,CACrF,KAAK,CAAC,KAAK,CAAC,OAAO,CAAC,UAAU,CAAC,qBAAqB;;;;;;;;;sCASjB,CAAC,KAAK,EAAE,EAAE,CAC7C,KAAK,CAAC,KAAK,CAAC,OAAO,CAAC,UAAU,CAAC,wBAAwB,qBAAqB,CAAC,KAAK,EAAE,EAAE,CACtF,KAAK,CAAC,KAAK,CAAC,OAAO,CAAC,UAAU,CAAC,kBAAkB;;;;;;;;;sCASd,CAAC,KAAK,EAAE,EAAE,CAC7C,KAAK,CAAC,KAAK,CAAC,OAAO,CAAC,UAAU,CAAC,qBAAqB,qBAAqB,CAAC,KAAK,EAAE,EAAE,CACnF,KAAK,CAAC,KAAK,CAAC,OAAO,CAAC,UAAU,CAAC,mBAAmB;;;;;;;;;sCASf,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,KAAK,CAAC,OAAO,CAAC,UAAU,CAAC,sBAAsB;;;;;;;;CAQrG,CAAC;AAEF,eAAe,cAAc,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export default EditButton;
|
|
2
|
+
declare function EditButton({ edit, isOutOfStock, hasVariants, openPopup, data, isCartPage }: {
|
|
3
|
+
edit: any;
|
|
4
|
+
isOutOfStock: any;
|
|
5
|
+
hasVariants: any;
|
|
6
|
+
openPopup: any;
|
|
7
|
+
data: any;
|
|
8
|
+
isCartPage: any;
|
|
9
|
+
}): React.JSX.Element | "";
|
|
10
|
+
import React from 'react';
|
|
11
|
+
//# sourceMappingURL=EditButton.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EditButton.d.ts","sourceRoot":"","sources":["../../../../../../src/modules/cart/components/CartItems/Item/EditButton.js"],"names":[],"mappings":";AAKA;;;;;;;2BAsCC;kBA3CiB,OAAO"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Text } from '@weareconceptstudio/core';
|
|
3
|
+
import { AccountButton } from '../../../../../components';
|
|
4
|
+
import { ProductPopup } from '@weareconceptstudio/shop';
|
|
5
|
+
const EditButton = ({ edit, isOutOfStock, hasVariants, openPopup, data, isCartPage }) => {
|
|
6
|
+
if (edit && !isOutOfStock) {
|
|
7
|
+
return (React.createElement("div", { className: `edit-btn-wrap empty` }, hasVariants ? (React.createElement(AccountButton, { text: 'account.general_actions.edit', btnType: `green-small-text`, onClick: () => openPopup(React.createElement(ProductPopup, { qty: data.qty, itemId: data.id, selectedOption: data.selectedOption, selectedVariant: data.selectedVariant, ...data.product }), {
|
|
8
|
+
className: 'custom-product-popup',
|
|
9
|
+
}) })) : null));
|
|
10
|
+
}
|
|
11
|
+
if (isCartPage) {
|
|
12
|
+
return (React.createElement(Text, { className: `account-p account-p3 account-font-bold account-primary-color3 underline opacity-zero empty`, text: 'empty' }));
|
|
13
|
+
}
|
|
14
|
+
return '';
|
|
15
|
+
};
|
|
16
|
+
export default EditButton;
|
|
17
|
+
//# sourceMappingURL=EditButton.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EditButton.js","sourceRoot":"","sources":["../../../../../../src/modules/cart/components/CartItems/Item/EditButton.js"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,IAAI,EAAE,MAAM,0BAA0B,CAAC;AAChD,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAC1D,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAExD,MAAM,UAAU,GAAG,CAAC,EAAE,IAAI,EAAE,YAAY,EAAE,WAAW,EAAE,SAAS,EAAE,IAAI,EAAE,UAAU,EAAE,EAAE,EAAE;IACvF,IAAI,IAAI,IAAI,CAAC,YAAY,EAAE,CAAC;QAC3B,OAAO,CACN,6BAAK,SAAS,EAAE,qBAAqB,IACnC,WAAW,CAAC,CAAC,CAAC,CACd,oBAAC,aAAa,IACb,IAAI,EAAE,8BAA8B,EACpC,OAAO,EAAE,kBAAkB,EAC3B,OAAO,EAAE,GAAG,EAAE,CACb,SAAS,CACR,oBAAC,YAAY,IACZ,GAAG,EAAE,IAAI,CAAC,GAAG,EACb,MAAM,EAAE,IAAI,CAAC,EAAE,EACf,cAAc,EAAE,IAAI,CAAC,cAAc,EACnC,eAAe,EAAE,IAAI,CAAC,eAAe,KACjC,IAAI,CAAC,OAAO,GACf,EACF;gBACC,SAAS,EAAE,sBAAsB;aACjC,CACD,GAED,CACF,CAAC,CAAC,CAAC,IAAI,CACH,CACN,CAAC;IACH,CAAC;IAED,IAAI,UAAU,EAAE,CAAC;QAChB,OAAO,CACN,oBAAC,IAAI,IACJ,SAAS,EAAE,4FAA4F,EACvG,IAAI,EAAE,OAAO,GACZ,CACF,CAAC;IACH,CAAC;IAED,OAAO,EAAE,CAAC;AACX,CAAC,CAAC;AAEF,eAAe,UAAU,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export default ItemActions;
|
|
2
|
+
declare function ItemActions({ favorite, remove, data, CartItemEditFavoriteButton, hasVariants, actions }: {
|
|
3
|
+
favorite: any;
|
|
4
|
+
remove: any;
|
|
5
|
+
data: any;
|
|
6
|
+
CartItemEditFavoriteButton: any;
|
|
7
|
+
hasVariants: any;
|
|
8
|
+
actions: any;
|
|
9
|
+
}): React.JSX.Element;
|
|
10
|
+
import React from 'react';
|
|
11
|
+
//# sourceMappingURL=ItemActions.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ItemActions.d.ts","sourceRoot":"","sources":["../../../../../../src/modules/cart/components/CartItems/Item/ItemActions.js"],"names":[],"mappings":";AAGA;;;;;;;sBAmCC;kBAtCiB,OAAO"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { AccountButton } from '../../../../../components';
|
|
3
|
+
const ItemActions = ({ favorite, remove, data, CartItemEditFavoriteButton, hasVariants, actions }) => {
|
|
4
|
+
return (React.createElement("div", { className: `favorite-and-remove-wrap` },
|
|
5
|
+
favorite && !data.product?.out_of_stock && (React.createElement("div", { className: `favorite-btn-wrap` },
|
|
6
|
+
React.createElement(CartItemEditFavoriteButton, { type: `withText`, productId: data?.product?.id, optionId: data?.selectedOption?.id, variantId: data?.selectedVariant?.id, qty: data?.qty }))),
|
|
7
|
+
remove && !data?.is_gift && (React.createElement("div", { className: `remove-btn-wrap` },
|
|
8
|
+
React.createElement(AccountButton, { btnType: `green-small-text`, className: 'cart-remove-btn', text: 'account.general_actions.remove', onClick: () => hasVariants
|
|
9
|
+
? actions.delete({
|
|
10
|
+
productId: data?.product.id,
|
|
11
|
+
variantId: data?.selectedVariant?.id,
|
|
12
|
+
optionId: data?.selectedOption?.id,
|
|
13
|
+
})
|
|
14
|
+
: actions.delete({ productId: data?.product.id }) })))));
|
|
15
|
+
};
|
|
16
|
+
export default ItemActions;
|
|
17
|
+
//# sourceMappingURL=ItemActions.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ItemActions.js","sourceRoot":"","sources":["../../../../../../src/modules/cart/components/CartItems/Item/ItemActions.js"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAE1D,MAAM,WAAW,GAAG,CAAC,EAAE,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,0BAA0B,EAAE,WAAW,EAAE,OAAO,EAAE,EAAE,EAAE;IACpG,OAAO,CACN,6BAAK,SAAS,EAAE,0BAA0B;QACxC,QAAQ,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE,YAAY,IAAI,CAC3C,6BAAK,SAAS,EAAE,mBAAmB;YAClC,oBAAC,0BAA0B,IAC1B,IAAI,EAAE,UAAU,EAChB,SAAS,EAAE,IAAI,EAAE,OAAO,EAAE,EAAE,EAC5B,QAAQ,EAAE,IAAI,EAAE,cAAc,EAAE,EAAE,EAClC,SAAS,EAAE,IAAI,EAAE,eAAe,EAAE,EAAE,EACpC,GAAG,EAAE,IAAI,EAAE,GAAG,GACb,CACG,CACN;QAEA,MAAM,IAAI,CAAC,IAAI,EAAE,OAAO,IAAI,CAC5B,6BAAK,SAAS,EAAE,iBAAiB;YAChC,oBAAC,aAAa,IACb,OAAO,EAAE,kBAAkB,EAC3B,SAAS,EAAE,iBAAiB,EAC5B,IAAI,EAAE,gCAAgC,EACtC,OAAO,EAAE,GAAG,EAAE,CACb,WAAW;oBACV,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC;wBACf,SAAS,EAAE,IAAI,EAAE,OAAO,CAAC,EAAE;wBAC3B,SAAS,EAAE,IAAI,EAAE,eAAe,EAAE,EAAE;wBACpC,QAAQ,EAAE,IAAI,EAAE,cAAc,EAAE,EAAE;qBAClC,CAAC;oBACH,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC,EAAE,SAAS,EAAE,IAAI,EAAE,OAAO,CAAC,EAAE,EAAE,CAAC,GAElD,CACG,CACN,CACI,CACN,CAAC;AACH,CAAC,CAAC;AAEF,eAAe,WAAW,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export default ItemAttributes;
|
|
2
|
+
declare function ItemAttributes({ selectedVariant, selectedOption, product }: {
|
|
3
|
+
selectedVariant: any;
|
|
4
|
+
selectedOption: any;
|
|
5
|
+
product: any;
|
|
6
|
+
}): React.JSX.Element;
|
|
7
|
+
import React from 'react';
|
|
8
|
+
//# sourceMappingURL=ItemAttributes.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ItemAttributes.d.ts","sourceRoot":"","sources":["../../../../../../src/modules/cart/components/CartItems/Item/ItemAttributes.js"],"names":[],"mappings":";AAGA;;;;sBAmEC;kBAtEiB,OAAO"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Text, useTranslation } from '@weareconceptstudio/core';
|
|
3
|
+
const ItemAttributes = ({ selectedVariant, selectedOption, product }) => {
|
|
4
|
+
const { translate } = useTranslation();
|
|
5
|
+
const renderFirstAttribute = () => {
|
|
6
|
+
if (selectedVariant?.color.name) {
|
|
7
|
+
return (React.createElement("div", { className: `right-first-item-wrap` },
|
|
8
|
+
React.createElement(Text, { className: `account-p account-p3 account-font-medium account-primary-color1` },
|
|
9
|
+
translate('account.general_actions.color'),
|
|
10
|
+
": \u00A0"),
|
|
11
|
+
React.createElement(Text, { className: `account-p account-p3 account-font-medium account-primary-color1 capitalize`, text: selectedVariant.color.name })));
|
|
12
|
+
}
|
|
13
|
+
if (product.short_info_1) {
|
|
14
|
+
return (React.createElement("div", { className: `right-first-item-wrap` },
|
|
15
|
+
React.createElement(Text, { className: `account-p account-p3 account-font-regular account-primary-color1`, text: product.short_info_1 })));
|
|
16
|
+
}
|
|
17
|
+
return null;
|
|
18
|
+
};
|
|
19
|
+
const renderSecondAttribute = () => {
|
|
20
|
+
if (selectedOption?.size.name) {
|
|
21
|
+
return (React.createElement("div", { className: `right-second-item-wrap` },
|
|
22
|
+
React.createElement(Text, { className: `account-p account-p3 account-font-medium account-primary-color1` },
|
|
23
|
+
translate('account.general_actions.size'),
|
|
24
|
+
": \u00A0"),
|
|
25
|
+
React.createElement(Text, { className: `account-p account-p3 account-font-medium account-primary-color1`, text: selectedOption.size.name })));
|
|
26
|
+
}
|
|
27
|
+
if (product.short_info_2) {
|
|
28
|
+
return (React.createElement("div", { className: `right-second-item-wrap` },
|
|
29
|
+
React.createElement(Text, { className: `account-p account-p3 account-font-bold account-primary-color1`, text: product.short_info_2 })));
|
|
30
|
+
}
|
|
31
|
+
return null;
|
|
32
|
+
};
|
|
33
|
+
return (React.createElement(React.Fragment, null,
|
|
34
|
+
renderFirstAttribute(),
|
|
35
|
+
renderSecondAttribute()));
|
|
36
|
+
};
|
|
37
|
+
export default ItemAttributes;
|
|
38
|
+
//# sourceMappingURL=ItemAttributes.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ItemAttributes.js","sourceRoot":"","sources":["../../../../../../src/modules/cart/components/CartItems/Item/ItemAttributes.js"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,IAAI,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAEhE,MAAM,cAAc,GAAG,CAAC,EAAE,eAAe,EAAE,cAAc,EAAE,OAAO,EAAE,EAAE,EAAE;IACvE,MAAM,EAAE,SAAS,EAAE,GAAG,cAAc,EAAE,CAAC;IAEvC,MAAM,oBAAoB,GAAG,GAAG,EAAE;QACjC,IAAI,eAAe,EAAE,KAAK,CAAC,IAAI,EAAE,CAAC;YACjC,OAAO,CACN,6BAAK,SAAS,EAAE,uBAAuB;gBACtC,oBAAC,IAAI,IAAC,SAAS,EAAE,iEAAiE;oBAChF,SAAS,CAAC,+BAA+B,CAAC;+BACrC;gBACP,oBAAC,IAAI,IACJ,SAAS,EAAE,4EAA4E,EACvF,IAAI,EAAE,eAAe,CAAC,KAAK,CAAC,IAAI,GAC/B,CACG,CACN,CAAC;QACH,CAAC;QAED,IAAI,OAAO,CAAC,YAAY,EAAE,CAAC;YAC1B,OAAO,CACN,6BAAK,SAAS,EAAE,uBAAuB;gBACtC,oBAAC,IAAI,IACJ,SAAS,EAAE,kEAAkE,EAC7E,IAAI,EAAE,OAAO,CAAC,YAAY,GACzB,CACG,CACN,CAAC;QACH,CAAC;QAED,OAAO,IAAI,CAAC;IACb,CAAC,CAAC;IAEF,MAAM,qBAAqB,GAAG,GAAG,EAAE;QAClC,IAAI,cAAc,EAAE,IAAI,CAAC,IAAI,EAAE,CAAC;YAC/B,OAAO,CACN,6BAAK,SAAS,EAAE,wBAAwB;gBACvC,oBAAC,IAAI,IAAC,SAAS,EAAE,iEAAiE;oBAChF,SAAS,CAAC,8BAA8B,CAAC;+BACpC;gBACP,oBAAC,IAAI,IACJ,SAAS,EAAE,iEAAiE,EAC5E,IAAI,EAAE,cAAc,CAAC,IAAI,CAAC,IAAI,GAC7B,CACG,CACN,CAAC;QACH,CAAC;QAED,IAAI,OAAO,CAAC,YAAY,EAAE,CAAC;YAC1B,OAAO,CACN,6BAAK,SAAS,EAAE,wBAAwB;gBACvC,oBAAC,IAAI,IACJ,SAAS,EAAE,+DAA+D,EAC1E,IAAI,EAAE,OAAO,CAAC,YAAY,GACzB,CACG,CACN,CAAC;QACH,CAAC;QAED,OAAO,IAAI,CAAC;IACb,CAAC,CAAC;IAEF,OAAO,CACN;QACE,oBAAoB,EAAE;QACtB,qBAAqB,EAAE,CACtB,CACH,CAAC;AACH,CAAC,CAAC;AAEF,eAAe,cAAc,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export default ItemImage;
|
|
2
|
+
declare function ItemImage({ isGift, hasVariants, selectedVariant, product }: {
|
|
3
|
+
isGift: any;
|
|
4
|
+
hasVariants: any;
|
|
5
|
+
selectedVariant: any;
|
|
6
|
+
product: any;
|
|
7
|
+
}): React.JSX.Element;
|
|
8
|
+
import React from 'react';
|
|
9
|
+
//# sourceMappingURL=ItemImage.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ItemImage.d.ts","sourceRoot":"","sources":["../../../../../../src/modules/cart/components/CartItems/Item/ItemImage.js"],"names":[],"mappings":";AAIA;;;;;sBAaC;kBAjBiB,OAAO"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Image } from '@weareconceptstudio/core';
|
|
3
|
+
import { defaultIconGift } from '../util';
|
|
4
|
+
const ItemImage = ({ isGift, hasVariants, selectedVariant, product }) => {
|
|
5
|
+
const imageSrc = hasVariants ? selectedVariant?.images?.[0].src : product?.image?.src;
|
|
6
|
+
const imageAlt = hasVariants ? selectedVariant?.images?.[0].alt : product?.image?.alt;
|
|
7
|
+
return (React.createElement("div", { className: `image-wrapper` },
|
|
8
|
+
isGift && React.createElement("div", { className: 'wrapper-gift-icon' }, defaultIconGift),
|
|
9
|
+
React.createElement(Image, { src: imageSrc, alt: imageAlt })));
|
|
10
|
+
};
|
|
11
|
+
export default ItemImage;
|
|
12
|
+
//# sourceMappingURL=ItemImage.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ItemImage.js","sourceRoot":"","sources":["../../../../../../src/modules/cart/components/CartItems/Item/ItemImage.js"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,KAAK,EAAE,MAAM,0BAA0B,CAAC;AACjD,OAAO,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAE1C,MAAM,SAAS,GAAG,CAAC,EAAE,MAAM,EAAE,WAAW,EAAE,eAAe,EAAE,OAAO,EAAE,EAAE,EAAE;IACvE,MAAM,QAAQ,GAAG,WAAW,CAAC,CAAC,CAAC,eAAe,EAAE,MAAM,EAAE,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,OAAO,EAAE,KAAK,EAAE,GAAG,CAAC;IACtF,MAAM,QAAQ,GAAG,WAAW,CAAC,CAAC,CAAC,eAAe,EAAE,MAAM,EAAE,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,OAAO,EAAE,KAAK,EAAE,GAAG,CAAC;IAEtF,OAAO,CACN,6BAAK,SAAS,EAAE,eAAe;QAC7B,MAAM,IAAI,6BAAK,SAAS,EAAC,mBAAmB,IAAE,eAAe,CAAO;QACrE,oBAAC,KAAK,IACL,GAAG,EAAE,QAAQ,EACb,GAAG,EAAE,QAAQ,GACZ,CACG,CACN,CAAC;AACH,CAAC,CAAC;AAEF,eAAe,SAAS,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export default ItemTitle;
|
|
2
|
+
declare function ItemTitle({ product, hasVariants, handleProductClick, isCartPage, isCheckoutPage }: {
|
|
3
|
+
product: any;
|
|
4
|
+
hasVariants: any;
|
|
5
|
+
handleProductClick: any;
|
|
6
|
+
isCartPage: any;
|
|
7
|
+
isCheckoutPage: any;
|
|
8
|
+
}): React.JSX.Element;
|
|
9
|
+
import React from 'react';
|
|
10
|
+
//# sourceMappingURL=ItemTitle.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ItemTitle.d.ts","sourceRoot":"","sources":["../../../../../../src/modules/cart/components/CartItems/Item/ItemTitle.js"],"names":[],"mappings":";AAGA;;;;;;sBAqBC;kBAxBiB,OAAO"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { AccountButton } from '../../../../../components';
|
|
3
|
+
const ItemTitle = ({ product, hasVariants, handleProductClick, isCartPage, isCheckoutPage }) => {
|
|
4
|
+
if (hasVariants) {
|
|
5
|
+
return (React.createElement(AccountButton, { text: product?.name, btnType: `green-large-text`, className: `capitalize title-btn`, url: product?.url, target: isCartPage || isCheckoutPage ? '_blank' : '_self' }));
|
|
6
|
+
}
|
|
7
|
+
return (React.createElement(AccountButton, { text: product?.name, btnType: `green-large-text`, className: `capitalize title-btn`, onClick: () => handleProductClick(product) }));
|
|
8
|
+
};
|
|
9
|
+
export default ItemTitle;
|
|
10
|
+
//# sourceMappingURL=ItemTitle.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ItemTitle.js","sourceRoot":"","sources":["../../../../../../src/modules/cart/components/CartItems/Item/ItemTitle.js"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAE1D,MAAM,SAAS,GAAG,CAAC,EAAE,OAAO,EAAE,WAAW,EAAE,kBAAkB,EAAE,UAAU,EAAE,cAAc,EAAE,EAAE,EAAE;IAC9F,IAAI,WAAW,EAAE,CAAC;QACjB,OAAO,CACN,oBAAC,aAAa,IACb,IAAI,EAAE,OAAO,EAAE,IAAI,EACnB,OAAO,EAAE,kBAAkB,EAC3B,SAAS,EAAE,sBAAsB,EACjC,GAAG,EAAE,OAAO,EAAE,GAAG,EACjB,MAAM,EAAE,UAAU,IAAI,cAAc,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,OAAO,GACxD,CACF,CAAC;IACH,CAAC;IAED,OAAO,CACN,oBAAC,aAAa,IACb,IAAI,EAAE,OAAO,EAAE,IAAI,EACnB,OAAO,EAAE,kBAAkB,EAC3B,SAAS,EAAE,sBAAsB,EACjC,OAAO,EAAE,GAAG,EAAE,CAAC,kBAAkB,CAAC,OAAO,CAAC,GACzC,CACF,CAAC;AACH,CAAC,CAAC;AAEF,eAAe,SAAS,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"OutOfStockBadge.d.ts","sourceRoot":"","sources":["../../../../../../src/modules/cart/components/CartItems/Item/OutOfStockBadge.js"],"names":[],"mappings":";AAGA;;sBASC;kBAZiB,OAAO"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Text } from '@weareconceptstudio/core';
|
|
3
|
+
const OutOfStockBadge = ({ isOutOfStock }) => {
|
|
4
|
+
if (!isOutOfStock)
|
|
5
|
+
return null;
|
|
6
|
+
return (React.createElement(Text, { className: `account-p account-p3 account-font-bold account-error-color out-of-stock-styles`, text: 'account.general_actions.outOfStock' }));
|
|
7
|
+
};
|
|
8
|
+
export default OutOfStockBadge;
|
|
9
|
+
//# sourceMappingURL=OutOfStockBadge.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"OutOfStockBadge.js","sourceRoot":"","sources":["../../../../../../src/modules/cart/components/CartItems/Item/OutOfStockBadge.js"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,IAAI,EAAE,MAAM,0BAA0B,CAAC;AAEhD,MAAM,eAAe,GAAG,CAAC,EAAE,YAAY,EAAE,EAAE,EAAE;IAC5C,IAAI,CAAC,YAAY;QAAE,OAAO,IAAI,CAAC;IAE/B,OAAO,CACN,oBAAC,IAAI,IACJ,SAAS,EAAE,gFAAgF,EAC3F,IAAI,EAAE,oCAAoC,GACzC,CACF,CAAC;AACH,CAAC,CAAC;AAEF,eAAe,eAAe,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PriceDisplay.d.ts","sourceRoot":"","sources":["../../../../../../src/modules/cart/components/CartItems/Item/PriceDisplay.js"],"names":[],"mappings":";AAIA;;;sBA0DC;kBA9DiB,OAAO"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Text, useTranslation } from '@weareconceptstudio/core';
|
|
3
|
+
import UpcomingGift from '../UpcomingGift';
|
|
4
|
+
const PriceDisplay = ({ data, hasVariants }) => {
|
|
5
|
+
const { translate } = useTranslation();
|
|
6
|
+
const hasDiscount = (data?.selectedOption?.sale_price || data?.product?.sale_price || data?.product?.discount) && !data?.is_gift;
|
|
7
|
+
if (hasDiscount) {
|
|
8
|
+
return (React.createElement("div", null,
|
|
9
|
+
React.createElement(Text, { className: `account-p account-p3 account-font-bold account-secondary-color2 cart-sale-price` }, hasVariants ? data?.selectedOption?.formatted_sale_price : data?.product?.formatted_sale_price),
|
|
10
|
+
React.createElement("div", { className: 'wrapper-discount' },
|
|
11
|
+
data?.product.discount ? (React.createElement(Text, { className: `account-p account-p3 account-font-medium account-primary-color2 discount-text` },
|
|
12
|
+
data?.product?.discount?.formatted_value,
|
|
13
|
+
"\u00A0",
|
|
14
|
+
React.createElement("span", { className: 'lowercase' }, translate('account.order_balance.discount')))) : null,
|
|
15
|
+
React.createElement(UpcomingGift, { className: `account-p account-p3 account-font-medium account-primary-color2 discount-text`, requiredQtyForGift: data?.product.required_qty_for_gift, giftMessage: data?.product.gift_message }),
|
|
16
|
+
React.createElement(Text, { className: `account-p account-p3 account-font-regular account-primary-color2 line-through value cart-price1` }, hasVariants ? data?.selectedOption?.formatted_price : data?.product?.formatted_price))));
|
|
17
|
+
}
|
|
18
|
+
return (React.createElement(Text, { className: `account-p account-p3 account-font-bold account-primary-color1 cart-price2` }, data?.is_gift ? (React.createElement(React.Fragment, null,
|
|
19
|
+
data?.formatted_total,
|
|
20
|
+
React.createElement("span", { className: 'gift-name-text' }, data?.appliedPromotion?.name))) : (React.createElement(React.Fragment, null,
|
|
21
|
+
hasVariants ? data?.selectedOption?.formatted_price : data?.product?.formatted_price,
|
|
22
|
+
React.createElement(UpcomingGift, { className: `account-p account-p3 account-font-medium account-primary-color2 discount-text`, requiredQtyForGift: data?.product.required_qty_for_gift, giftMessage: data?.product.gift_message })))));
|
|
23
|
+
};
|
|
24
|
+
export default PriceDisplay;
|
|
25
|
+
//# sourceMappingURL=PriceDisplay.js.map
|